1 2015-12-28 Nathan Sidwell <nathan@acm.org>
3 * config/nvptx/nvptx.c (nvptx_output_call_insn): Expect hard regs.
4 * config/nvptx/nvptx.md (nvptx_reg_or_mem_operand): Rename to ...
5 (nvptx_nonimmediate_operand): ... here. Update all uses.
6 (call_insn_operand): Use REG_P.
7 (call_operation): Allow hard regs.
9 2015-12-25 Jan Hubicka <hubicka@ucw.cz>
11 * ipa-visibility.c (function_and_variable_visibility): Do not
12 dissolve comdat groups when in LTO mode.
14 2015-12-25 Andreas Tobler <andreast@gcc.gnu.org>
16 * config/rs6000/freebsd64.h: Delete FREEBSD_DYNAMIC_LINKER32/64
17 defines. Use FBSD_DYNAMIC_LINKER instead.
18 Rename and simplify LINK_OS_FREEBSD_SPEC_DEF32/64 to
19 LINK_OS_FREEBSD_SPEC_DEF.
21 2015-12-24 Aditya Kumar <aditya.k7@samsung.com>
23 * graphite-sese-to-poly.c (build_loop_iteration_domains): Use ref instead of value.
24 * sese.c (invariant_in_sese_p_rec): Use const ref instead of value.
25 (scalar_evolution_in_region): Same
26 * sese.h (bb_in_region): Same
28 (stmt_in_sese_p): Same.
29 (defined_in_sese_p): Same.
30 (loop_in_sese_p): Same.
32 2015-12-24 Aditya Kumar <aditya.k7@samsung.com>
34 * graphite-scop-detection.c
35 (scop_detection::get_nearest_dom_with_single_entry): Check l == l2.
36 (scop_detection::get_nearest_pdom_with_single_exit): Same.
37 (scop_detection::merge_sese): Whitespace.
38 (scop_detection::add_scop): Comment.
39 (build_scops): Whitespace.
41 2015-12-24 Kirill Yukhin <kirill.yukhin@intel.com>
43 * common/config/i386/i386-common.c (OPTION_MASK_ISA_PKU_SET): New.
44 (OPTION_MASK_ISA_PKU_UNSET): Ditto.
45 (ix86_handle_option): Handle OPT_mpku.
46 * config.gcc: Add pkuintrin.h to i[34567]86-*-* and x86_64-*-*
48 * config/i386/cpuid.h (host_detect_local_cpu): Detect PKU feature.
49 * config/i386/i386-c.c (ix86_target_macros_internal): Handle PKU ISA
51 * config/i386/i386.c (ix86_target_string): Add "-mpku" to
53 (ix86_option_override_internal): Define PTA_PKU, mention new key
54 in skylake-avx512. Handle new ISA bits.
55 (ix86_valid_target_attribute_inner_p): Add "pku".
56 (enum ix86_builtins): Add IX86_BUILTIN_RDPKRU and IX86_BUILTIN_WRPKRU.
57 (builtin_description bdesc_special_args[]): Add new built-ins.
58 * config/i386/i386.h (define TARGET_PKU): New.
59 (define TARGET_PKU_P): Ditto.
60 * config/i386/i386.md (define_c_enum "unspecv"): Add UNSPEC_PKU.
61 (define_expand "rdpkru"): New.
62 (define_insn "*rdpkru"): Ditto.
63 (define_expand "wrpkru"): Ditto.
64 (define_insn "*wrpkru"): Ditto.
65 * config/i386/i386.opt (mpku): Ditto.
66 * config/i386/pkuintrin.h: New file.
67 * config/i386/x86intrin.h: Include pkuintrin.h
68 * doc/extend.texi: Describe new built-ins.
69 * doc/invoke.texi: Describe new switches.
71 2015-12-23 Richard Henderson <rth@redhat.com>
74 * tree-cfg.c (make_edges_bb): Add abort edge for outer transactions.
76 2015-12-23 Nathan Sidwell <nathan@acm.org>
78 * cgraph.h (decl_in_symtab_p): Revert check DECL_IN_CONSTANT_POOL.
80 2015-12-23 Nathan Sidwell <nathan@acm.org>
82 * config/nvptx/nvptx-protos.h
83 (nvptx_maybe_convert_symbolic_operand): Delete prototype.
84 * config/nvptx/nvptx.c (nvptx_maybe_convert_symbolic_operand): Delete.
85 (nvptx_output_mov_insn): Record fnsym here.
86 (nvptx_wpropagate): Don't create UNSPEC_TO_GENERIC unspec.
87 * config/nvptx/nvptx.md (UNSPEC_TO_GENERIC): Delete.
88 (symbolic_operand): Delete predicate.
89 (nvptx_nonimmediate_operand): Delete predicate.
90 (mov<mode>): Hard regs are perfectly ok here.
91 (convaddr_<mode>): Delete.
93 2015-12-23 Nathan Sidwell <nathan@acm.org>
95 * alias.c (compare_base_decls): Simplify in-symtab check.
96 * cgraph.h (decl_in_symtab_p): Check DECL_IN_CONSTANT_POOL.
98 2015-12-23 Dominik Vogt <vogt@linux.vnet.ibm.com>
100 * config/s390/predicates.md ("larl_operand"): Remove now superfluous
101 const_int and const_double.
102 * genrecog.c (safe_predicate_mode): Return false for VOIDmode
103 LABEL_REFs even if the predicate does not handle const_int,
104 const_double or const_wide_int.
105 * genpreds.c (add_mode_tests): Treat LABEL_REF like CONST_INT.
107 2015-12-23 Thomas Schwinge <thomas@codesourcery.com>
109 * tree-core.h (enum omp_clause_code): Merge OMP_CLAUSE_USE_DEVICE
110 into OMP_CLAUSE_USE_DEVICE_PTR. Adjust all users.
112 2015-12-23 David Sherwood <david.sherwood@arm.com>
114 * config/arm/iterators.md (VMAXMINFNM): New int iterator.
115 (fmaxmin): New int attribute.
116 (fmaxmin_op): Likewise.
117 * config/arm/unspecs.md (UNSPEC_VMAXNM): New unspec.
118 (UNSPEC_VMINNM): Likewise.
119 * config/arm/neon.md (fmaxmin): New pattern.
120 * config/arm/vfp.md (fmaxmin): Likewise.
122 2015-12-23 H.J. Lu <hongjiu.lu@intel.com>
125 * config/i386/constraints.md (Bs): Allow GOT slot for x32 with
129 * config/i386/predicates.md (call_insn_operand): Likewise.
130 (sibcall_insn_operand): Likewise.
132 2015-12-22 David Malcolm <dmalcolm@redhat.com>
135 * diagnostic-show-locus.c (layout::layout): Make loc_range const.
136 Sanitize the layout_range against ranges that finish before they
139 2015-12-22 Jeff Law <law@redhat.com>
141 * gimple-ssa-split-paths.c (split_paths): Avoid unnecessary block
144 2015-12-22 Jakub Jelinek <jakub@redhat.com>
147 * fold-const.c (size_low_cst): Removed.
148 (fold_comparison): For POINTER_PLUS_EXPR where base is ADDR_EXPR
149 call get_inner_reference and handle INDIRECT_REF base of it. Use
150 offset_int for computation of the bitpos.
151 (fold_binary_loc) <case EQ_EXPR, NE_EXPR>: Formatting
152 fixes for X +- Y CMP X and C - X CMP X folding. Add X CMP X +- Y
153 and X CMP C - X folding.
155 2015-12-22 Richard Henderson <rth@redhat.com>
158 * gimple.h (struct gtransaction): Add label_norm, label_uninst;
159 replace label with label_over.
160 (gimple_build_transaction): Remove label parameter.
161 (gimple_transaction_label_norm): New.
162 (gimple_transaction_label_uninst): New.
163 (gimple_transaction_label_over): Rename from gimple_transaction_label.
164 (gimple_transaction_label_norm_ptr): New.
165 (gimple_transaction_label_uninst_ptr): New.
166 (gimple_transaction_label_over_ptr): Rename from
167 gimple_transaction_label_ptr.
168 (gimple_transaction_set_label_norm): New.
169 (gimple_transaction_set_label_uninst): New.
170 (gimple_transaction_set_label_over): Rename from
171 gimple_transaction_set_label.
172 * gimple-pretty-print.c (dump_gimple_transaction): Update.
173 * gimple-streamer-in.c (input_gimple_stmt) [GIMPLE_TRANSACTION]: Same.
174 * gimple-streamer-out.c (output_gimple_stmt) [GIMPLE_TRANSACTION]: Same.
175 * gimple-walk.c (walk_gimple_op) [GIMPLE_TRANSACTION]: Same.
176 * tree-cfg.c (make_edges_bb) [GIMPLE_TRANSACTION]: Same.
177 (cleanup_dead_labels) [GIMPLE_TRANSACTION]: Same.
178 (verify_gimple_transaction): Same.
179 (gimple_redirect_edge_and_branch) [GIMPLE_TRANSACTION]: Same.
180 * tree-inline.c (remap_gimple_stmt) [GIMPLE_TRANSACTION]: Same.
181 * gimple.c (gimple_build_transaction): Remove label parameter;
182 initialize all three label memebers.
183 * gimplify.c (gimplify_transaction): Update call
184 to gimple_build_transaction.
185 * trans-mem.c (make_tm_uninst): New.
186 (lower_transaction): Create uninstrumented code path here...
187 (ipa_tm_scan_calls_transaction): ... not here.
188 (ipa_uninstrument_transaction): Remove.
190 * tree-eh.c (honor_protect_cleanup_actions): Do not wrap eh_else
191 in a must-not-throw; set ehp_region for it too.
193 2015-12-22 Peter Bergner <bergner@vnet.ibm.com>
196 * config/rs6000/rs6000.h (ASM_CPU_SPEC): For -mcpu=powerpc64le,
197 pass %(asm_cpu_power8).
199 2015-12-22 H.J. Lu <hongjiu.lu@intel.com>
202 * config/i386/i386.c (ix86_function_ok_for_sibcall): Count
203 call to global function via GOT slot as indirect call.
204 * config/i386/i386.md (*sibcall_GOT_32): New pattern.
205 (*sibcall_value_GOT_32): Likewise.
206 * config/i386/predicates.md (sibcall_memory_operand): Rewrite.
207 Allow 32-bit GOT slot only with pseudo register as GOT base.
208 (GOT32_symbol_operand): New predicate.
210 2015-12-22 Sujoy Saraswati <sujoy.saraswati@hpe.com>
212 * fold-const.c (const_binop): Convert sNaN to qNaN when
213 flag_signaling_nans is off.
214 (const_unop): Avoid the operation, other than NEGATE and
215 ABS, if flag_signaling_nans is on and the operand is an sNaN.
216 (fold_convert_const_real_from_real): Avoid the operation if
217 flag_signaling_nans is on and the operand is an sNaN.
218 (integer_valued_real_unary_p): Update comment stating it
219 returns false for sNaN values.
220 (integer_valued_real_binary_p, integer_valued_real_call_p): Same.
221 (integer_valued_real_single_p): Same.
222 (integer_valued_real_invalid_p, integer_valued_real_p): Same.
223 * fold-const-call.c (fold_const_pow): Avoid the operation
224 if flag_signaling_nans is on and the operand is an sNaN.
225 (fold_const_builtin_load_exponent) Same.
226 (fold_const_call_sss): Same for CASE_CFN_POWI.
227 * gimple-fold.c (gimple_assign_integer_valued_real_p): Same.
228 (gimple_call_integer_valued_real_p): Same.
229 (gimple_phi_integer_valued_real_p): Same.
230 (gimple_stmt_integer_valued_real_p): Same.
231 * simplify-rtx.c (simplify_const_unary_operation): Avoid the
232 operation if flag_signaling_nans is on and the operand is an sNaN.
233 (simplify_const_binary_operation): Same.
234 * tree-ssa-math-opts.c (gimple_expand_builtin_pow): Avoid the
235 operation if flag_signaling_nans is on and the operand is an sNaN.
237 2015-12-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
239 * combine.c (simplify_comparison): Convert preprocessor check of
240 WORD_REGISTER_OPERATIONS into runtime check.
242 2015-12-22 Eric Botcazou <ebotcazou@adacore.com>
245 * var-tracking.c (tracked_record_parameter_p): New predicate.
246 (track_expr_p): Invoke it.
247 (add_stores): Likewise.
249 2015-12-21 Jeff Law <law@redhat.com>
251 * dbgcnt.def (dom_unreachable_edges): New debug counter.
252 * tree-ssa-dom.c: Include dbgcnt.h
253 (dom_opt_dom_walker::before_dom_children): Handle the new counter.
255 2015-12-21 Andrew Pinski <apinski@cavium.com>
257 * config/aarch64/aarch64-option-extensions.def (LSE): Change
258 FEAT_STRING to "atomics".
260 2015-12-21 Pierre-Marie de Rodat <derodat@adacore.com>
262 * dwarf2out.c (add_data_member_location_attribute): Do not
263 disable dynamic data member offsets descriptions for TREE_BINFO
266 2015-12-21 Eric Botcazou <ebotcazou@adacore.com>
268 PR tree-optimization/65337
269 * tree-ssa-pre.c (eliminate): Also clean up abnormal edges if need be.
271 2015-12-21 Dominik Vogt <vogt@linux.vnet.ibm.com>
273 * config/s390/s390.c (s390_emit_prologue): Fix base reg condition.
275 2015-12-21 Claudiu Zissulescu <claziss@synopsys.com>
277 * config/arc/builtins.def: New file.
278 * config/arc/arc.c (arc_init_simd_builtins): Remove.
279 (arc_builtins): Likewise.
280 (TARGET_BUILTIN_DECL): Define.
281 (arc_builtin_id): New enum.
282 (arc_builtin_description): New structure.
283 (arc_bdesc): New variable.
284 (arc_tolower): New function.
285 (def_mbuiltin): Remove.
286 (arc_builtin_decl): New function.
287 (arc_expand_builtin_aligned ): Likewise.
288 (apply_GEN_FCN): Likewise.
289 (arc_init_builtins): Refurbish.
290 (arc_expand_builtin): Likewise.
291 (simd_insn_args_type): Remove.
292 (builtin_description): Likewise
293 (arc_simd_builtin_desc_list): Likewise.
294 (arc_expand_simd_builtin): Likewise.
295 (arc_process_double_reg_moves): Use the new builtin name format.
296 * config/arc/arc.md (unspec): New builtin function UNSPEC codes.
297 (vunspec): New builtin function VUNSPEC codes.
298 (UNSPEC_SWAP, UNSPEC_MUL64, UNSPEC_MULU64, UNSPEC_DIVAW)
299 (UNSPEC_DIRECT, UNSPEC_LP, UNSPEC_CASESI, VUNSPEC_RTIE)
300 (VUNSPEC_SYNC, VUNSPEC_BRK, VUNSPEC_FLAG, VUNSPEC_SLEEP)
301 (VUNSPEC_SWI, VUNSPEC_CORE_READ, VUNSPEC_CORE_WRITE, VUNSPEC_LR)
302 (VUNSPEC_SR, VUNSPEC_TRAP_S, VUNSPEC_UNIMP_S, VUNSPEC_NOP)
303 (UNSPEC_ARC_MEMBAR,VUNSPEC_ARC_CAS, VUNSPEC_ARC_LL)
304 (VUNSPEC_ARC_SC, VUNSPEC_ARC_EX, VUNSPEC_DEXCL)
305 (VUNSPEC_DEXCL_NORES, VUNSPEC_LR_HIGH): Remove.
306 (mul64, mulu64): Remove patterns.
307 (store_direct, *movdf_insn_nolrsr, casesi, casesi_load)
308 (casesi_compact_jump, nopv, swap, divaw, flag, brk, rtie, sync)
309 (swi, sleep, core_read, core_write, lr, sr, trap_s, unimp_s)
310 (doloop_begin_i): Use new builtin function code naming.
311 (kflag, clri, ffs, ffs_f, ffssi2, fls, seti): New patterns.
312 * config/arc/builtins.def: New file.
313 * config/arc/fpx.md: Use new builtin function code naming.
314 * config/arc/simdext.md: New SIMD builtin function UNSPEC
315 codes. Use them in the SIMD patterns.
317 2015-12-21 Sujoy Saraswati <sujoy.saraswati@hpe.com>
319 PR tree-optimization/61441
320 * real.c (do_add): Make resulting NaN value to be qNaN.
321 (do_multiply, do_divide, do_fix_trunc): Same.
322 (real_arithmetic, real_ldexp, real_convert): Same.
323 (real_isinteger): Updated comment stating it returns false for sNaN.
325 2015-12-20 Jeff Law <law@redhat.com>
327 PR tree-optimization/64910
328 * config/i386/i386.md (testqi_ext_3): Allow HImode.
330 2015-12-20 Andrew Pinsi <apinski@cavium.com>
332 * config/aarch64/atomics.md
333 (aarch64_atomic_<atomic_optab>_fetch<mode>_lse): Add early clobber
334 to the scratch register.
336 2015-12-20 Sujoy Saraswati <sujoy.saraswati@hpe.com>
338 PR tree-optimization/61441
339 * match.pd (f(x) -> x): Removed flag_errno_math check for RINT.
341 2015-12-20 Sujoy Saraswati <sujoy.saraswati@hpe.com>
343 PR tree-optimization/61441
344 * fold-const.c (const_binop): Use REAL_VALUE_ISSIGNALING_NAN instead
345 of REAL_VALUE_ISNAN to avoid the operation for sNaN operands.
346 * simplify-rtx.c (simplify_const_binary_operation): Same.
348 2015-12-19 Jan Hubicka <hubicka@ucw.cz>
350 PR tree-optimization/65337
351 * tree-ssa-dce.c (bb_postorder): New static var.
352 (mark_stmt_necessary): Add guard for setting bb_contains_live_stmts.
353 (forward_edge_to_pdom): Remove.
354 (remove_dead_stmt): Instead of redirecting edges only keep an edge
355 on a path to nearest live BB.
356 (eliminate_unnecessary_stmts): Free bb_postorder.
357 * cfganal.c (dfs_find_deadend): Add START_POINTES.
358 * cfganal.h (inverted_post_order_compute): Update prototype.
360 2015-12-19 Eric Botcazou <ebotcazou@adacore.com>
362 PR rtl-optimization/68910
363 * emit-rtl.c (set_unique_reg_note) <REG_EQUAL>: Add bypass for USEs.
364 * config/sparc/sparc.md (anddi3): Enable only in 64-bit mode.
367 (one_cmpldi2): Likewise.
368 (*anddi3_sp32): Delete.
369 (*and_not_di_sp32): Likewise.
370 (*iordi3_sp32): Likewise.
371 (*or_not_di_sp32): Likewise.
372 (*xordi3_sp32): Likewise.
373 (*xor_not_di_sp32): Likewise.
374 (32-bit DImode logical operations splitter): Likewise.
375 (*one_cmpldi2_sp32): Likewise.
377 2015-12-19 Andrew Burgess <andrew.burgess@embecosm.com>
379 * config/arc/arc.md (*storeqi_update): Use 'any_mem_operand' and
380 fix RTL pattern to include the plus.
381 (*storehi_update): Likewise.
382 (*storesi_update): Likewise.
383 (*storesf_update): Likewise.
384 * config/arc/predicates.md (store_update_operand): Delete.
386 2015-12-19 Andrew Burgess <andrew.burgess@embecosm.com>
388 * config/arc/arc.md (*loadqi_update): Use new 'any_mem_operand'
389 and fix RTL pattern to include the plus.
390 (*load_zeroextendqisi_update): Likewise.
391 (*load_signextendqisi_update): Likewise.
392 (*loadhi_update): Likewise.
393 (*load_zeroextendhisi_update): Likewise.
394 (*load_signextendhisi_update): Likewise.
395 (*loadsi_update): Likewise.
396 (*loadsf_update): Likewise.
397 * config/arc/predicates.md (load_update_operand): Delete.
398 (any_mem_operand): New predicate.
400 2015-12-19 Sujoy Saraswati <sujoy.saraswati@hpe.com>
402 PR tree-optimization/61441
403 * real.c (real_issignaling_nan): New.
404 * real.h (real_issignaling_nan, REAL_VALUE_ISSIGNALING_NAN): New.
406 2015-13-18 John David Anglin <danglin@gcc.gnu.org>
409 * config/pa/pa.c (pa_emit_move_sequence): Reorganize handling of
410 floating-point reloads. Only reload operands that are not valid
411 floating-point memory operands.
413 2015-12-18 Jakub Jelinek <jakub@redhat.com>
416 * ipa-split.c (split_function): Only perform caller side
417 modifications for decl_debug_args here.
418 * cgraph.c: Include gimplify.h.
419 (cgraph_edge::redirect_call_stmt_to_callee): Add caller side
420 debug stmts for decl_debug_args. Spelling fix in a comment.
421 * tree-inline.c (tree_function_versioning): Populate decl_debug_args
422 for args_to_skip arguments and add callee side debug stmts.
423 Formatting fixes. Avoid shadowing i variable.
425 2015-12-18 Nathan Sidwell <nathan@acm.org>
427 * config/nvptx/nvptx.c (nvptx_maybe_convert_symbolic_operand):
428 Remove UNSPEC_TO_GENERIC generation.
429 (nvptx_output_mov_insn): Generate cvta for symbolic src.
430 * config/nvptx/nvptx.md (nvptx_register_operand): Allow hard reg.
431 (nvptx_reg_or_mem_operand): Likewise.
432 (nvptx_nonmemory_operand): Likewise.
433 (nvptx_general_operand): Delete.
434 (*mov<mode>_insn): Use nonimmediate_operand, permit hardregs.
435 (oacc_fork, oacc_join): Use general_operand.
437 2015-12-18 Daniel Kahn Gillmor <dkg@fifthhorseman.net>
439 * dwarf2out.c (gen_producer_string): Ignore -fdebug-prefix-map.
441 2015-12-18 Nathan Sidwell <nathan@acm.org>
443 * config/nvptx/nvptx.c (nvptx_option_override): Emit sorry for
445 (nvptx_assemble_undefined_decl): Use nvptx_assemble_decl_end.
447 2015-12-18 Jeff Law <law@redhat.com>
449 PR rtl-optimization/49847
450 * cse.c (record_jump_equiv): Handle fold_rtx returning NULL_RTX.
452 2015-12-18 Nathan Sidwell <nathan@acm.org>
454 * config/nvptx/nvptx.c (worker_bcast_name, worker_red_name): Delete.
455 (nvptx_option_override): Adjust worker symbol creation.
456 (nvptx_gen_wcast): Wrap worker address in UNSPEC_TO_GENERIC.
457 (write_worker_buffer): New.
458 (nvptx_file_end): Call write_worker_buffer.
459 * config/nvptx/nvptx.md (UNSPEC_SHARED_DATA): Delete.
460 (worker_load<mode>, worker_store<mode>): Delete.
462 2015-12-18 Richard Biener <rguenther@suse.de>
465 * tree-vect-patterns.c (struct vect_recog_func): New.
466 (vect_vect_recog_func_ptrs): Make an array of function name pairs.
467 (vect_pattern_recog_1): Print the recognized pattern name. Return
468 true if a pattern was recognized.
469 (vect_pattern_recog): Adjust. Stop iterating over pattern recognition
470 functions on a stmt if a pattern was recognized.
472 2015-12-18 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
474 * ira.c (ira_setup_alts): Move the scan for commutative modifier
475 to the first loop to make it work even with disabled alternatives.
477 2015-12-18 Dominik Vogt <vogt@linux.vnet.ibm.com>
479 * config/s390/s390.c (s390_init_frame_layout): Try r4 to r2 for the
480 literal pool pointer.
482 2015-12-18 Yuri Rumyantsev <ysrumyan@gmail.com>
484 PR tree-optimization/68906
485 * tree-ssa-loop-unswitch.c (tree_unswitch_outer_loop): Add check
486 that an exit block belongs to LOOP.
488 2015-12-18 Ilya Enkovich <enkovich.gnu@gmail.com>
490 PR tree-optimization/68956
491 * tree-vect-stmts.c (vect_init_vector): Fix constants
492 used for boolean vectors.
494 2015-12-18 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
496 PR rtl-optimization/68796
497 * config/aarch64/aarch64.md (*and<mode>3nr_compare0_zextract):
499 * config/aarch64/aarch64.c (aarch64_select_cc_mode): Handle
500 ZERO_EXTRACT comparison with zero.
501 (aarch64_mask_from_zextract_ops): New function.
502 * config/aarch64/aarch64-protos.h (aarch64_mask_from_zextract_ops):
505 2015-12-18 Robin Dapp <rdapp@linux.vnet.ibm.com>
507 * config/s390/predicates.md: Change and rename
508 constm1_operand to all_ones_operand
509 * config/s390/s390.c (s390_expand_vcond): Use all_ones_operand
510 * config/s390/vector.md: Likewise
512 2015-12-18 Robin Dapp <rdapp@linux.vnet.ibm.com>
514 * config/s390/s390.c (s390_expand_vcond): Convert vector
515 conditional into shift.
516 * config/s390/vector.md: Change operand predicate.
518 2015-12-18 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
520 * config/s390/driver-native.c (s390_host_detect_local_cpu): Pick
521 z900 -march -mtune even on g5 and g6 machines.
522 * config/s390/s390.c (s390_option_override_internal): New argument
523 to distingiush between options and target attributes. Emit
524 deprecation warning for g5 and g6 arch/tune options.
525 (s390_option_override): Set new s390_option_override_internal
527 (s390_valid_target_attribute_tree): Set new
528 s390_option_override_internal argument to false.
529 * config/s390/s390.h: Default to z900 in the driver.
530 * doc/invoke.texi: Document the deprecation of g5 and g6.
532 2015-12-18 Andris Pavenis <andris.pavenis@iki.fi>
534 * config/i386/djgpp-stdint.h: update typedefs for integer types
536 2015-12-17 Jeff Law <law@redhat.com>
538 * passes.def: Put the split-paths pass immediately before the
541 * doc/invoke.texi (-O2 options): Remove -fsplit-paths.
542 (-O3 options): Add -fsplit-paths.
543 * gimple-ssa-split-paths.c: Include predict.h
544 (split_paths): Only split paths in a loop that should be
546 * opts.c (default_options_table): Move -fsplit-paths from -O2 to
549 2015-12-17 Nathan Sidwell <nathan@acm.org>
551 * ipa-icf.c (sem_item_optimizer::merge): Don't pick 'main' as the
554 2015-12-17 Sebastian Pop <s.pop@samsung.com>
556 * Makefile.in: Replace ISL with isl.
558 * configure: Regenerate.
559 * configure.ac: Same.
560 * doc/install.texi: Same.
561 * doc/invoke.texi: Same.
562 * graphite-isl-ast-to-gimple.c: Same.
563 * graphite-scop-detection.c: Same.
564 * graphite-sese-to-poly.c: Same.
568 * testsuite/gcc.dg/graphite/fuse-1.c: Same.
569 * testsuite/gcc.dg/graphite/fuse-2.c: Same.
570 * testsuite/gcc.dg/graphite/interchange-1.c: Same.
571 * testsuite/gcc.dg/graphite/pr35356-1.c: Same.
574 2015-12-17 Sebastian Pop <s.pop@samsung.com>
576 * graphite-dependences.c: Move all isl include files to...
577 * graphite-isl-ast-to-gimple.c: Same.
578 * graphite-optimize-isl.c: Same.
579 * graphite-poly.c: Same.
580 * graphite-scop-detection.c: Same.
582 * graphite.h: ... here.
584 2015-12-17 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
586 * config/avr/avr.h (MOVE_MAX): Set value to 1.
587 (MOVE_MAX_PIECES): Define.
588 (MOVE_RATIO): Define.
589 * config/avr/avr.c (TARGET_USE_BY_PIECES_INFRASTRUCTURE_P):
591 (avr_use_by_pieces_infrastructure_p): New function.
593 2015-12-17 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
595 * config.gcc: mark *-interix* as obsolete.
597 2015-12-17 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
599 * config.gcc: Mark openbsd 2.0 and 3.X as obsolete.
601 2015-12-17 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
603 * config.gcc: Mark knetbsd targets as obsolete.
605 2015-12-17 Nathan Sidwell <nathan@acm.org>
607 * config/nvptx/nvptx.h (NVPTX_RETURN_REGNUM, FRAME_POINTER_REGNUM,
608 ARG_POINTER_REGNUM, STATIC_CHAIN_REGNUM): Renumber.
609 (REGISTER_NAMES): Update and rename.
610 (FIXED_REGISTERS, CALL_USED_REGISTERS): Update.
611 (enum_reg_class, REG_CLASS_NAMES, REG_CLASS_CONTENTS): Reformat.
613 2015-12-17 Richard Biener <rguenther@suse.de>
615 PR tree-optimization/68946
616 * tree-vect-slp.c (vect_slp_analyze_node_operations): Push
617 SLP def type to stmt operands one stmt at a time.
619 2015-12-17 Pierre-Marie de Rodat <derodat@adacore.com>
621 * langhooks.h (struct lang_hooks_for_types): New get_bias_field.
622 * langhooks-def.h (LANG_HOOKS_GET_TYPE_BIAS): New.
623 (LANG_HOOKS_FOR_TYPES_INITIALIZER): Initialize the
626 (base_type_die): In non-strict DWARF mode, invoke the
627 get_type_bias language hook for INTEGER_TYPE nodes. If it
628 returns a bias, emit an attribute for it.
629 (subrange_type_die): Change signature to handle bias. If
630 non-strict DWARF mode, emit an attribute for it, if one passed.
631 (modified_type_die): For subrange types, invoke the
632 get_type_bias langage hook and pass the bias to
635 2015-12-17 Pierre-Marie de Rodat <derodat@adacore.com>
637 * dwarf2out.h (DWARF2OUT_ARRAY_DESCR_INFO_MAX_DIMEN): New macro.
638 (struct array_descr_info): Use it for the dimensions array's
640 * dwarf2out.c (gen_type_die_with_usage): Check that the array
641 descr. language hook does not return an array with more
642 dimensions that it should.
644 2015-12-17 Pierre-Marie de Rodat <derodat@adacore.com>
646 * langhooks.h (struct lang_hooks_for_types): Add a
647 get_fixed_point_type_info field.
648 * langhooks-def.h (LANG_HOOKS_GET_FIXED_POINT_TYPE_INFO): New
650 (LANG_HOOKS_FOR_TYPES_INITIALIZER): Initialize the
651 get_fixed_point_type_info field.
652 * dwarf2out.h (enum fixed_point_scale_factor): New.
653 (struct fixed_point_type_info): New.
654 * dwarf2out.c (base_type_die): In DWARFv3 or non-strict DWARF
655 mode, get fixed-point type information using the debugging hook
656 and describe it in DWARF, if any.
658 2015-12-17 Pierre-Marie de Rodat <derodat@adacore.com>
660 * langhooks.h (struct lang_hooks_for_types): Add a
661 get_debug_type field.
662 * langhooks-def.h (LANG_HOOKS_GET_DEBUG_TYPE): New macro.
663 (LANG_HOOKS_FOR_TYPES_INITIALIZER): Initialize the
664 get_debug_type field.
665 * dwarf2out.h (struct array_descr_info): Add an array-wide
667 * dwarf2out.c (modified_type_die): Invoke the get_debug_type
668 language hook, process its result instead, if any.
669 (gen_descr_array_type_die): Add array-wide stride processing.
671 2015-12-17 Pierre-Marie de Rodat <derodat@adacore.com>
673 * debug.h (struct gcc_debug_hooks): Add a new size_function
675 * debug.c (do_nothing_debug_hooks): Set the size_function field
677 * dbxout.c (dbx_debug_hooks, xcoff_debug_hooks): Likewise.
678 * sdbout.c (sdb_debug_hooks): Likewise.
679 * vmsdbgout.c (vmsdbg_debug_hooks): Likewise.
680 * stor-layout.c (finalize_size_functions): Let the debug info
681 back-end know about the implementation of size functions.
682 * dwarf2out.h (dw_discr_list_ref): New typedef.
683 (enum dw_val_class): Add value classes for discriminant values
684 and discriminant lists.
685 (struct dw_discr_value): New structure.
686 (struct dw_val_node): Add discriminant values and discriminant
688 (struct dw_loc_descr_node): Add frame_offset_rel and
689 dw_loc_frame_offset (only for checking) fields to handle DWARF
690 procedures generation.
691 (struct dw_discr_list_node): New structure.
692 * dwarf2out.c (dwarf2out_size_function): New.
693 (dwarf2_debug_hooks): Set the size_function field to
694 dwarf2out_size_function.
695 (dwarf2_lineno_debug_hooks): Set the size_function field to
697 (new_loc_descr): Initialize the
698 dw_loc_frame_offset field.
699 (dwarf_proc_stack_usage_map): New.
700 (dw_val_equal_p): Handle discriminants.
701 (size_of_discr_value): New.
702 (size_of_discr_list): New.
703 (size_of_die): Handle discriminants.
704 (add_loc_descr_to_each): New.
706 (print_discr_value): New.
707 (print_dw_val): Handle discriminants.
708 (value_format): Handle discriminants.
709 (output_discr_value): New.
710 (output_die): Handle discriminants.
711 (output_loc_operands): Handle DW_OP_call2 and DW_OP_call4.
712 (uint_loc_descriptor): New.
713 (uint_comparison_loc_list): New.
714 (loc_list_from_uint_comparison): New.
715 (add_discr_value): New.
716 (add_discr_list): New.
717 (AT_discr_list): New.
718 (loc_descr_to_next_no_op): New.
719 (free_loc_descr): New.
720 (loc_descr_without_nops): New.
721 (struct loc_descr_context): Add a dpi field.
722 (struct dwarf_procedure_info): New helper structure.
723 (new_dwarf_proc_die): New.
724 (is_handled_procedure_type): New.
725 (resolve_args_picking_1): New.
726 (resolve_args_picking): New.
727 (function_to_dwarf_procedure): New.
728 (copy_dwarf_procedure): New.
729 (copy_dwarf_procs_ref_in_attrs): New.
730 (copy_dwarf_procs_ref_in_dies): New.
731 (break_out_comdat_types): Copy DWARF procedures along with the
732 types that reference them.
733 (loc_list_from_tree): Rename into loc_list_from_tree_1. Handle
734 CALL_EXPR in the cases suitable for DWARF procedures. Handle
735 for PARM_DECL when generating a location description for a DWARF
736 procedure. Handle big unsigned INTEGER_CST nodes. Handle
737 NON_LVALUE_EXPR, EXACT_DIV_EXPR and all unsigned comparison
738 operators. Add a wrapper for loc_list_from_tree that strips
739 DW_OP_nop operations from the result.
740 (type_byte_size): New.
741 (struct vlr_context): New helper structure.
742 (field_byte_offset): Change signature to return either a
743 constant offset or a location description for dynamic ones.
744 Handle dynamic byte offsets with constant bit offsets and handle
745 fields in variant parts.
746 (add_data_member_location): Change signature to handle dynamic
747 member offsets and fields in variant parts. Update call to
748 field_byte_offset. Handle location lists. Emit a variable data
749 member location only when -fgnat-encodings=minimal.
750 (add_bound_info): Emit self-referential bounds only when
751 -fgnat-encodings=minimal.
752 (add_byte_size_attribute): Use type_byte_size in order to handle
753 dynamic type sizes. Emit variable byte size only when
754 -fgnat-encodings=minimal and when the target DWARF version
756 (add_bit_offset_attribute): Change signature to handle
757 variable-length records. Update call to field_byte_offset.
758 (gen_descr_array_type_die): Update call to gen_field_die.
759 Update loc_descr_context literal.
760 (gen_type_die_for_member): Likewise.
761 (gen_subprogram_die): Update calls to get_decl_die.
762 (gen_field_die): Change signature to handle variable-length
763 records. Update calls to add_bit_offset_attribute and
764 add_data_member_location_attribute.
765 (gen_inheritance_die): Update call to
766 add_data_member_location_attribute.
767 (gen_decl_die): Change signature to handle variable-length
768 records. Update call to gen_field_die.
769 (gen_inheritance_die): Change signature to handle
770 variable-length records. Update call to
771 add_data_member_location_attribute.
772 (is_variant_part): New.
773 (analyze_discr_in_predicate): New.
774 (get_discr_value): New.
775 (analyze_variants_discr): New.
776 (gen_variant_part): New.
777 (gen_member_die): Update calls to gen_decl_die. Call instead
778 gen_variant_part for variant parts.
779 (gen_type_die_with_usage): Update calls to gen_decl_die.
780 (process_scope_var): Likewise.
781 (force_decl_die): Likewise.
782 (declare_in_namespace): Likewise.
783 (dwarf2out_decl): Likewise.
784 (prune_unused_types_walk_loc_descr): New.
785 (prune_unused_types_walk_attribs): Mark DIEs referenced by
786 location descriptions and loc. descr. lists.
787 (prune_unused_types_walk): Don't mark DWARF procedures by
788 default. Mark variant parts since nothing is supposed to
790 (dwarf2out_init): Allocate dwarf_proc_stack_usage_map.
791 (dwarf2out_c_finalize): Deallocate and reset
792 dwarf_proc_stack_usage_map.
794 2015-12-17 Pierre-Marie de Rodat <derodat@adacore.com>
796 * common.opt (gnat_encodings): New variable
797 (dwarf_gnat_encodings): New enum type.
798 (fgnat_encodings): New option.
799 * flag-types.h (enum dwarf_gnat_encodings): New.
801 2015-12-17 Christian Bruel <christian.bruel@st.com>
803 * tree.h (TYPE_MODE_RAW): New macro.
804 * tree-streamer-out.c (pack_ts_type_common_value_fields):
805 Replace TYPE_MODE by TYPE_MODE_RAW.
807 2015-12-17 Jakub Jelinek <jakub@redhat.com>
809 PR tree-optimization/68835
810 * tree.c (get_int_cst_ext_nunits): Return
811 cst.get_precision () / HOST_BITS_PER_WIDE_INT + 1
812 for all unsigned wi::neg_p (cst) constants.
813 (build_new_int_cst): If cst.get_precision is not a multiple
814 of HOST_BITS_PER_WIDE_INT, zero extend -1 to the precision
815 % HOST_BITS_PER_WIDE_INT.
817 2015-12-17 Richard Biener <rguenther@suse.de>
819 PR tree-optimization/68951
820 * tree-vect-data-refs.c (vect_peeling_hash_get_lowest_cost):
821 Ignore strided non-group accesses.
823 2015-12-17 Andrew Burgess <andrew.burgess@embecosm.com>
825 * config/arc/arc.c (arc_loop_hazard): Don't convert the jump label
826 rtx to an rtx_insn until we confirm it's not a return rtx.
828 2015-12-17 Richard Biener <rguenther@suse.de>
830 * gimple-ssa.h (struct gimple_df): Remove modified_noreturn_calls
832 * tree-ssa.c (delete_tree_ssa): Do not zero it.
834 2015-12-17 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
837 * configure.ac (gcc_cv_as_stabs_directive): New test.
838 * configure: Regenerate.
839 * config.in: Regenerate.
840 * config/darwin.h (DBX_DEBUGGING_INFO): Wrap in
841 HAVE_AS_STABS_DIRECTIVE.
842 (PREFERRED_DEBUGGING_TYPE): Likewise.
843 * config/i386/darwin.h (PREFERRED_DEBUGGING_TYPE): Only include
844 DBX_DEBUG if HAVE_AS_STABS_DIRECTIVE.
846 * doc/sourcebuild.texi (Effective-Target Keywords, Environment
847 attributes): Document stabs.
849 2015-12-16 Martin Sebor <msebor@redhat.com>
852 * ginclude/stdatomic.h (atomic_init): Use atomic_store instead
855 2015-12-15 Michael Meissner <meissner@linux.vnet.ibm.com>
858 * config/rs6000/rs6000.c (rs6000_gen_le_vsx_permute): Use ROTATE
859 instead of VEC_SELECT for TImode.
861 * config/rs6000/vsx.md (VSX_LE): Move TImode from VSX_LE to
862 VSX_LE_128, so that we use ROTATE to swap the 64-bit words instead
864 (VSX_LE_128): Likewise.
865 (define_peephole2): Add peephole to eliminate double xxpermdi when
868 2015-12-16 John David Anglin <danglin@gcc.gnu.org>
871 * config/pa/pa.md (atomic_loaddi): Honor -mdisable-fpregs.
872 (atomic_loaddi_1): Likewise.
873 (atomic_storedi): Likewise.
874 (atomic_storedi_1): Likewise.
875 (atomic_loaddf): Likewise.
876 (atomic_loaddf_1): Likewise.
877 (atomic_storedf): Likewise.
878 (atomic_storedf_1): Likewise.
879 Move all atomic patterns to end of file.
881 2015-12-16 Abderrazek Zaafrani <a.zaafrani@samsung.com>
883 * graphite-isl-ast-to-gimple.c: Include isl/schedule_node.h.
884 (set_separate_option): New.
885 (translate_isl_ast_to_gimple::set_options_for_schedule_tree): New.
886 (translate_isl_ast_to_gimple::scop_to_isl_ast): Use scop->schedule.
887 * graphite-optimize-isl.c (optimize_isl): Set scop->schedule, do not
888 free the computed schedule tree.
889 * graphite-poly.c (new_scop): Initialize scop->schedule.
890 * graphite.h: Include isl/schedule.h.
891 (struct scop): Add field schedule.
893 2015-12-16 Nathan Sidwell <nathan@acm.org>
895 * ipa-visibility.c (can_replace_by_local_alias): Make static,
896 check ASM_OUTPUT_DEF.
897 (can_replace_by_local_alias_in_vtable): Make static.
898 (function_and_variable_visibility): Reformat overlong comment.
900 2015-12-16 Jeff Law <law@redhat.com>
902 * ree.c (add_removable_extension): Use reg_overlap_mentioned_p
903 rather than testing hard register #s.
905 2015-12-16 Nathan Sidwell <nathan@acm.org>
907 * config/nvptx/nvptx.h (OUTGOING_STATIC_CHAIN_REGNUM): Remove.
908 (REGISTER_NAMES): Adjust.
909 * config/nvptx/nvptx.c (nvptx_pass_by_reference): Avoid long line.
910 (nvptx_static_hain): Delete.
911 (write_arg_mode): Don't emit initializer if argno < 0.
912 (write_arg_type): Fix whitespace.
913 (init_frame): Initialize reg to zero if frame is zero-sized.
914 (nvptx_declare_function_name): Use write_arg_type to emit chain
916 (nvptx_output_call_insn): Adjust static chain emission.
917 (nvptx_goacc_reduction): Make static.
918 (TARGET_STATIC_CHAIN): Don't override.
920 2015-12-16 Aditya Kumar <aditya.k7@samsung.com>
922 * graphite-dependences.c (scop_get_dependences): Use local pointers.
923 * graphite-isl-ast-to-gimple.c
924 (translate_isl_ast_to_gimple::scop_to_isl_ast): Use scop->dependence.
925 * graphite-optimize-isl.c (optimize_isl): Same.
926 * graphite-poly.c (new_scop): Remove initialization of removed
929 * graphite.h (struct scop): Remove individial dependence pointers and
930 add a scop::dependence to contain all the dependence.
932 2015-12-16 Aditya Kumar <aditya.k7@samsung.com>
934 * graphite-sese-to-poly.c (build_poly_sr): Use refs.
936 2015-12-16 Aditya Kumar <aditya.k7@samsung.com>
937 Sebastian Pop <s.pop@samsung.com>
939 * config.in: Regenerate.
940 * configure: Regenerate.
941 * configure.ac: Remove checks for functions that exist in isl 0.13
943 * graphite-isl-ast-to-gimple.c: Remove #ifdefs and code for isl 0.12.
944 * graphite-optimize-isl.c: Same.
945 * graphite-poly.c: Same.
946 * graphite-sese-to-poly.c: Same.
947 * graphite.h: Add comment for isl 0.14.
948 * toplev.c (print_version): Print isl version.
950 2015-12-10 Jan Hubicka <hubicka@ucw.cz>
952 * ipa-cp.c (ipa_get_indirect_edge_target_1): Use can_refer; do not
953 speculate to impossible targets.
954 * ipa-prop.c (try_make_edge_direct_virtual_call): Likewise.
956 2015-12-16 Aditya Kumar <aditya.k7@samsung.com>
957 Sebastian Pop <s.pop@samsung.com>
959 * graphite-dependences.c (scop_get_reads): Add more dumps.
960 (scop_get_must_writes): Same.
961 (scop_get_may_writes): Same.
962 * graphite-poly.c (new_poly_dr): Same.
963 * graphite-scop-detection.c (build_cross_bb_scalars_def): Same.
964 (gather_bbs::before_dom_children): Same.
966 2015-12-16 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
968 * config/aarch64/aarch64.c (aarch64_extend_bitfield_pattern_p):
970 (aarch64_rtx_costs, ZERO_EXTEND, SIGN_EXTEND cases): Use the above
971 to handle extend+shift rtxes.
973 2015-12-16 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
976 * config/aarch64/aarch64-simd.md (*aarch64_simd_bsl<mode>_alt):
978 (aarch64_simd_bsl<mode>_internal): Update comment to reflect
981 2015-12-16 Richard Biener <rguenther@suse.de>
983 PR tree-optimization/68870
984 * tree-cfgcleanup.c (cleanup_control_expr_graph): Add first_p
985 parameter, if set only perform trivial constant folding.
986 Queue other blocks with conditions for later processing.
987 (cleanup_control_flow_bb): Add first_p parameter and pass it through.
988 (cleanup_tree_cfg_1): Pass true for the first iteration
989 cleanup_control_expr_graph.
991 2015-12-16 Nathan Sidwell <nathan@acm.org>
993 * config/nvptx/nvptx-protos.h (nvptx_hard_regno_mode_ok): Delete.
994 * config/nvptx/nvptx.h (struct machine_function):
995 Reimplement. Adjust all users.
996 * config/nvptx/nvptx.c (nvptx_declare_function_name): Move stack
997 and frame array generation earlier.
998 (nvptx_call_args): Reimplement.
999 (nvptx_expand_call): Adjust.
1000 (nvptx_hard_reno_mode_ok): Delete.
1001 (nvptx_reorg): Revert scan of hard regs.
1003 2015-12-16 Tom de Vries <tom@codesourcery.com>
1005 * opts.c (default_options_optimization): Set fipa-pta on by
1006 default for fopenacc.
1007 * passes.def: Move kernels pass group to pass_ipa_oacc.
1008 * tree-pass.h (make_pass_oacc_kernels2): Remove.
1009 (make_pass_ipa_oacc, make_pass_ipa_oacc_kernels): Declare.
1010 * tree-ssa-loop.c (pass_oacc_kernels2, make_pass_oacc_kernels2):
1012 (pass_ipa_oacc, pass_ipa_oacc_kernels): New pass.
1013 (make_pass_ipa_oacc, make_pass_ipa_oacc_kernels): New function.
1014 * tree-ssa-structalias.c (pass_ipa_pta::clone): New function.
1016 2015-12-16 Richard Biener <rguenther@suse.de>
1018 PR tree-optimization/68861
1019 * tree-vect-slp.c (vect_build_slp_tree): Properly handle
1020 duplicate stmts when applying swapping to stmts.
1022 2015-12-16 Kirill Yukhin <kirill.yukhin@intel.com>
1024 * config/i386/i386-c.c (ix86_target_macros_internal): Remove
1025 duplicate check (__CLZERO__).
1027 2015-12-16 Matthew Wahab <matthew.wahab@arm.com>
1029 * config/arm/arm_neon.h (vqrdmlahq_lane_s16): New.
1030 (vqrdmlahq_lane_s32): New.
1031 (vqrdmlah_lane_s16): New.
1032 (vqrdmlah_lane_s32): New.
1033 (vqrdmlshq_lane_s16): New.
1034 (vqrdmlshq_lane_s32): New.
1035 (vqrdmlsh_lane_s16): New.
1036 (vqrdmlsh_lane_s32): New.
1037 * config/arm/arm_neon_builtins.def: Add "vqrdmlah_lane" and
1040 2015-12-16 Matthew Wahab <matthew.wahab@arm.com>
1042 * config/arm/arm_neon.h (vqrdmlah_s16, vqrdmlah_s32): New.
1043 (vqrdmlahq_s16, vqrdmlahq_s32): New.
1044 (vqrdmlsh_s16, vqrdmlsh_s32): New.
1045 (vqrdmlahq_s16, vqrdmlshq_s32): New.
1046 * config/arm/arm_neon_builtins.def: Add "vqrdmlah" and "vqrdmlsh".
1048 2015-12-16 Matthew Wahab <matthew.wahab@arm.com>
1050 * doc/sourcebuild.texi (ARM-specific attributes): Add
1051 "arm_v8_1a_neon_ok" and "arm_v8_1a_neon_hw".
1053 2015-12-16 Matthew Wahab <matthew.wahab@arm.com>
1055 * config/arm/arm-c.c (arm_cpu_builtins): Define
1056 __ARM_FEATURE_QRDMX. Clean up some trailing whitespace.
1058 2015-12-16 Matthew Wahab <matthew.wahab@arm.com>
1060 * config/arm/iterators.md (VQRDMLH_AS): New.
1061 (neon_rdma_as): New.
1062 * config/arm/neon.md
1063 (neon_vqrdml<VQRDMLH_AS:neon_rdma_as>h<mode>): New.
1064 (neon_vqrdml<VQRDMLH_AS:neon_rdma_as>h_lane<mode>): New.
1065 * config/arm/unspecs.md (UNSPEC_VQRDMLAH): New.
1066 (UNSPEC_VQRDMLSH): New.
1068 2015-12-16 Matthew Wahab <matthew.wahab@arm.com>
1070 * config/arm/t-aprofile: Make "armv8.1-a" and "armv8.1-a+crc"
1071 matches for "armv8-a".
1073 2015-12-16 Matthew Wahab <matthew.wahab@arm.com>
1075 * config/arm/arm-arches.def: Add "armv8.1-a" and "armv8.1-a+crc".
1076 * config/arm/arm-protos.h (FL2_ARCH8_1): New.
1077 (FL2_FOR_ARCH8_1A): New.
1078 * config/arm/arm-tables.opt: Regenerate.
1079 * config/arm/arm.c (arm_arch8_1): New.
1080 (arm_option_override): Set arm_arch8_1.
1081 * config/arm/arm.h (TARGET_NEON_RDMA): New.
1082 (arm_arch8_1): Declare.
1083 * doc/invoke.texi (ARM Options, -march): Add "armv8.1-a" and
1085 (ARM Options, -mfpu): Fix a typo.
1087 2015-12-16 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
1090 * config/arm/arm.md (*andsi_iorsi3_notsi): Try to simplify
1091 the complement of operands[3] during splitting.
1093 2015-12-16 Richard Biener <rguenther@suse.de>
1095 PR tree-optimization/68892
1096 * tree-vect-slp.c (vect_analyze_slp_cost_1): Properly compute
1097 cost for permuted loads.
1099 2015-12-16 Jakub Jelinek <jakub@redhat.com>
1101 PR rtl-optimization/65980
1102 * jump.c (rtx_renumbered_equal_p) <case LABEL_REF>: Use
1103 next_nonnote_nondebug_insn instead of next_real_insn and
1104 skip over CODE_LABELs too.
1106 2015-12-10 Jan Hubicka <hubicka@ucw.cz>
1108 * symtab.c (symtab_node::fixup_same_cpp_alias_visibility):
1109 Do not copy DECL_VIRTUAL_P.
1111 2015-12-15 Martin Sebor <msebor@redhat.com>
1114 * tree-chkp.c (chkp_find_bound_slots_1): Handle flexible array
1116 * tree.c (type_contains_placeholder_1): Avoid assuming type has
1117 a non-null domain or an upper bound to handle flexible array
1119 * varasm.c (output_constructor_regular_field): Same.
1120 (output_constructor): Set min_index to integer_zero_node rather
1121 than null when a type has no domain to avoid crashing later.
1123 2015-12-15 Nathan Sidwell <nathan@acm.org>
1125 * config/nvptx/nvptx.c (write_one_arg): Rename to ...
1126 (write_arg_mode): ... here. Update callers.
1127 (write_arg): Rename to ...
1128 (write__arg_type): ... here. Update callers.
1129 (write_return_mode): New fn, broken out of ...
1130 (write_return): ... here. Rename to ...
1131 (write_return_type): ... here. Call it. Update callers.
1132 (write_fn_proto_from_insn): Use write_arg_mode and
1134 (init_frame): New fn.
1135 (nvptx_declare_function_name): Call it for frame and varargs. Only
1136 emit outgoing static chain, if it's live.
1137 (nvptx_output_return): Use reg_names for return reg name.
1138 (nvptx_output_call_insn): Likewise.
1139 (nvptx_reorg): Mark unused hard regs too.
1141 2015-12-15 Nathan Sidwell <nathan@acm.org>
1143 * config/nvptx/nvptx.md (nvptx_register_operand): Don't accept and
1144 then reject subregs.
1145 (nvptx_reg_or_mem_operand): Likewise.
1146 (nvptx_nonmemory_operand): Likewise.
1147 (call_insn_operand): A regular predicate, check SYMBOL_REF_FUNCTION_P.
1148 (call_insn, call_value_insn): Address is not SImode.
1149 * config/nvptx/nvptx.h (FIXED_REGISTERS): Make return reg fixed.
1150 (enum reg_class, REG_CLASS_NAMES, REG_CLASS_CONTENTS): Remove
1152 (REGNO_REG_CLASS): Alwaus ALL_REGS.
1153 (PROMOTE_MODE): QI and HI are the only smaller than SI int modes.
1154 (HARD_FRAME_POINTER_REGNUM): Delete.
1155 (REGISTER_NAMES): Move earlier.
1156 (struct nvptx_args): Remove 'off'.
1157 (INIT_CUMULATIVE_ARGS): Don't initialize 'off'.
1158 (ELIMINABLE_REGS): Remove HARD_FRAME_POINTER_REGNUM.
1159 * config/nvptx/nvptx.c (arg_promotion): Delete.
1160 (nvptx_expand_call): Remove check for funtype being an fntype.
1162 2015-12-15 Jason Merrill <jason@redhat.com>
1164 * hash-map.h, hash-table.h: Make copy constructors explicit.
1166 2015-12-15 Ilya Verbin <ilya.verbin@intel.com>
1168 * cgraphunit.c (output_in_order): Do not assemble "omp declare target
1169 link" variables in ACCEL_COMPILER.
1170 * gimplify.c (gimplify_adjust_omp_clauses): Do not remove mapping of
1171 "omp declare target link" variables.
1172 * omp-low.c (scan_sharing_clauses): Do not remove mapping of "omp
1173 declare target link" variables.
1174 (add_decls_addresses_to_decl_constructor): For "omp declare target
1175 link" variables output address of the artificial pointer instead
1176 of address of the variable. Set most significant bit of the size
1178 (pass_data_omp_target_link): New pass_data.
1179 (pass_omp_target_link): New class.
1180 (find_link_var_op): New static function.
1181 (make_pass_omp_target_link): New function.
1182 * passes.def: Add pass_omp_target_link.
1183 * tree-pass.h (make_pass_omp_target_link): Declare.
1184 * varpool.c (symbol_table::output_variables): Do not assemble "omp
1185 declare target link" variables in ACCEL_COMPILER.
1187 2015-12-15 Bernd Schmidt <bschmidt@redhat.com>
1190 * gensupport.c (collect_insn_data): Look for number of alternatives
1193 2015-12-15 Nathan Sidwell <nathan@acm.org>
1195 * config/nvptx/nvptx.h (HARD_REGNO_NREGS): Reformat.
1196 (CANNOT_CHANGE_MODE_CLASS): Always return true.
1197 (HARD_REGNO_MODE_OK): Reformat.
1198 * config/nvptx/nvptx.md (define_expand mov<mode>): No
1199 RETURN_REGNUM handling here.
1200 * config/nvptx/nvptx.c (nvptx_function_value): Set ret_reg_mode
1202 (write_one_arg): No QI or HI mode args.
1203 (write_fn_proto_from_insn): No argument promotion here.
1204 (nvptx_output_return_insn): No return promotion here.
1205 (nvptx_output_mov_insn): No RETURN_REGNUM handling needed.
1206 (nvptx_output_call_insn): No return promotion here.
1208 2015-12-15 Martin Jambor <mjambor@suse.cz>
1211 * cgraph.c (collect_callers_of_node_1): Do not collect thunks.
1212 * cgraph.h (cgraph_node): Change comment of collect_callers.
1214 2015-12-15 Jakub Jelinek <jakub@redhat.com>
1216 PR tree-optimization/66688
1217 * tree-cfgcleanup.c (cleanup_control_flow_bb): Handle
1218 noreturn call followed only by debug stmts by removing
1219 the debug stmts and handling it the same as if the noreturn
1220 call is the last stmt.
1222 2015-12-14 Steve Ellcey <sellcey@imgtec.com>
1224 * config/mips/mips.c (mips_promote_function_mode): New function.
1225 (TARGET_PROMOTE_FUNCTION_MODE): Define as above function.
1226 (TARGET_PROMOTE_PROTOTYPES): Remove.
1228 2015-12-14 Jason Merrill <jason@redhat.com>
1231 * hash-table.h: Add copy constructor.
1232 * hash-map.h: Add copy constructor.
1234 2015-12-14 Tom de Vries <tom@codesourcery.com>
1237 * gimple-pretty-print.c (dump_ssaname_info_to_file): New function.
1238 * gimple-pretty-print.h (dump_ssaname_info_to_file): Declare.
1239 * tree-cfg.c (dump_default_def): New function.
1240 (dump_function_to_file): Dump default defs for arguments, static chain,
1241 and decl-by-reference.
1243 2015-12-14 Nathan Sidwell <nathan@acm.org>
1245 * config/nvptx/nvptx.h (PARM_BOUNDARY): Set to 32.
1246 * config/nvptx/nvptx.c (PASS_IN_REG_P, RETURN_IN_REG_P): Delete.
1247 (pass_in_memory, promote_arg, promote_return): New.
1248 (nvptx_function_arg_boundary): Delete.
1249 (nvptx_function_value): Use promote_return.
1250 (nvptx_pass_by_reference): Use pass_in_memory.
1251 (nvptx_return_in_memory): Use pass_in_memory.
1252 (nvptx_promote_function_mode): Use promote_arg.
1253 (write_arg): Adjust arg splitting logic.
1254 (write_return): Check and clear ret_reg_mode, if needed.
1255 (write_fn_proto, nvptx_declare_function_name): Adust write_return
1257 (TARGET_RUNCTION_ARG_BOUNDARY,
1258 TARGET_FUNCTION_ARG_ROUND_BOUNDARY): Don't override.
1260 2015-12-14 Jakub Jelinek <jakub@redhat.com>
1263 * common.opt (Wmissing-noreturn): Add Warning option.
1264 * opts-common.c (control_warning_option): If opt is
1265 alias_target with alias_arg, set arg to it.
1267 2015-12-14 Segher Boessenkool <segher@kernel.crashing.org>
1271 * config/rs6000/rs6000.md (cstore_si_as_di): Force all operands
1274 2015-12-14 Richard Biener <rguenther@suse.de>
1276 Revert accidentially applied
1277 PR tree-optimization/68707
1278 PR tree-optimization/67323
1279 * tree-vect-slp.c (vect_analyze_slp_instance): Drop SLP instances
1280 if they can be vectorized using load/store-lane instructions.
1282 2015-12-14 Richard Biener <rguenther@suse.de>
1284 PR tree-optimization/68852
1285 * tree-vectorizer.h (struct _slp_tree): Add def_type member.
1286 (SLP_TREE_DEF_TYPE): New accessor.
1287 * tree-vect-stmts.c (vect_is_simple_use): Remove BB vectorization
1289 * tree-vect-slp.c (vect_create_new_slp_node): Initialize
1291 (vect_build_slp_tree): When a node is to be built up from scalars
1292 do not push a NULL as child but instead set its def_type to
1294 (vect_analyze_slp_cost_1): Check for child def-type instead
1296 (vect_detect_hybrid_slp_stmts): Likewise.
1297 (vect_bb_slp_scalar_cost): Likewise.
1298 (vect_get_slp_defs): Likewise.
1299 (vect_slp_analyze_node_operations): Likewise. Before
1300 processing node push the children def-types to the underlying
1301 stmts vinfo and restore it afterwards.
1302 (vect_schedule_slp_instance): Likewise.
1303 (vect_slp_analyze_bb_1): Do not mark stmts not in SLP instances
1304 as not vectorizable.
1306 2015-12-14 Richard Biener <rguenther@suse.de>
1308 PR tree-optimization/68775
1309 * tree-vect-slp.c (vect_build_slp_tree): Make sure to apply
1310 a operand swapping even if replacing the op with scalars.
1312 2015-12-14 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
1314 * combine.c (change_zero_ext): Do not create a shift of zero length.
1316 2015-12-14 Claudiu Zissulescu <claziss@synopsys.com>
1318 * config/arc/arc.c (TARGET_NO_SPECULATION_IN_DELAY_SLOTS_P):
1319 Provide target hook.
1320 (arc_no_speculation_in_delay_slots_p): New function.
1322 2015-12-14 Claudiu Zissulescu <claziss@synopsys.com>
1323 Andrew Burgess <andrew.burgess@embecosm.com>
1325 * config/arc/arc.c (frame_move): Set frame related flag.
1326 (arc_save_restore): Emit epilogue related DWARF2 information.
1327 (arc_expand_epilogue): Likewise.
1328 * config/arc/arc.opt (mno-epilogue-cfi): Remove.
1329 (mepilogue-cfi): Likewise.
1330 * doc/invoke.texi: Remove -m[no]-epilogue-cfi documentation.
1332 2015-12-14 Martin Jambor <mjambor@suse.cz>
1335 * ipa-cp.c (propagate_constants_accross_call): Move thuk check...
1336 (call_passes_through_thunk_p): ...here.
1337 (find_more_scalar_values_for_callers_subset): Perform thunk checks
1338 like propagate_constants_accross_call does.
1340 2015-12-14 Jakub Jelinek <jakub@redhat.com>
1342 PR rtl-optimization/68730
1343 * cfgrtl.c (cfg_layout_finalize): Free dominators.
1345 2015-12-13 Alexandre Oliva <aoliva@redhat.com>
1348 * var-tracking.c (reverse_op): Don't add dummy zero to reverse
1349 ops that simplify back to the original value.
1350 * alias.c (refs_newer_value_p): Cut off recursion for
1351 expressions containing the original value.
1353 2015-12-13 Kazu Kirata <kazu@gcc.gnu.org>
1355 * config/m68k/m68k.md (load feeding clear byte): New peephole2.
1357 2015-12-13 Tom de Vries <tom@codesourcery.com>
1359 * tree-ssa-structalias.c (find_func_clobbers): Handle sizes and kinds
1360 parameters of GOACC_paralllel.
1362 2015-12-10 Jan Hubicka <hubicka@ucw.cz>
1364 * cgraph.c (cgraph_node::get_untransformed_body): Pass compressed
1365 flag to lto_get_section_data.
1366 * varpool.c (varpool_node::get_constructor): Likewise.
1367 * lto-section-in.c (lto_get_section_data): Add new flag decompress.
1368 (lto_free_section_data): Likewise.
1369 (lto_get_raw_section_data): New function.
1370 (lto_free_raw_section_data): New function.
1371 (copy_function_or_variable): Copy sections w/o decompressing.
1372 (lto_output_decl_state_refs): Picke compressed bit.
1373 * lto-streamer.h (lto_in_decl_state): New flag compressed.
1374 (lto_out_decl_state): Likewise.
1375 (lto_get_section_data, lto_free_section_data): Update prototypes
1376 (lto_get_raw_section_data, lto_free_raw_section_data): Declare.
1377 (lto_write_raw_data): Declare.
1378 (lto_begin_section): Remove FIXME.
1379 (lto_write_raw_data): New function.
1380 (lto_write_stream): Remove FIXME.
1381 (lto_new_out_decl_state): Set compressed flag.
1383 2015-12-10 Jan Hubicka <hubicka@ucw.cz>
1385 * tree.c (free_lang_data_in_type, find_decls_types_r): Also free
1386 unnecesary type decls.
1387 * tree.h (is_redundant_typedef): Declare.
1388 * dwarf2out.c (is_redundant_typedef): Export; booleanize
1390 2015-12-12 Eric Botcazou <ebotcazou@adacore.com>
1392 * config/sparc/sparc.h (TARGET_SUPPORTS_WIDE_INT): Define to 1.
1393 * config/sparc/sparc.c (sparc_emit_set_const64): Remove code
1394 conditionalized on HOST_BITS_PER_WIDE_INT == 32.
1395 (sparc_cannot_force_const_mem) <CONST_WIDE_INT>: New case.
1396 <CONST_DOUBLE>: Remove VOIDmode test.
1397 (epilogue_renumber) <CONST_WIDE_INT>: New case.
1398 (sparc_print_operand): Remove support for CONST_DOUBLE with VOIDmode.
1399 (sparc_assemble_integer): Likewise.
1400 (set_extends): Likewise.
1401 (sparc_rtx_costs) <CONST_INT>: Use SMALL_INT.
1402 <CONST_WIDE_INT>: New case.
1403 <CONST_DOUBLE>: Remove support for VOIDmode.
1404 <MULT>: Remove support for CONST_DOUBLE with VOIDmode.
1405 * config/sparc/predicates.md (const_zero_operand): Add const_wide_int.
1406 (const_all_ones_operand): Likewise.
1407 (uns_small_int_operand): Remove const_double and code conditionalized
1408 on HOST_BITS_PER_WIDE_INT == 32.
1409 (arith_double_operand): Likewise.
1410 (arith_double_add_operand): Likewise.
1411 (input_operand): Remove support for CONST_DOUBLE with DImode.
1412 * config/sparc/sparc.md (DImode CONST_INT splitter): Remove code
1413 conditionalized on HOST_BITS_PER_WIDE_INT == 32.
1414 (DFmode CONST_DOUBLE splitter): Likewise.
1415 (*adddi3_insn_sp32): Likewise.
1416 (*subdi3_insn_sp32): Likewise.
1417 (DImode logical splitter): Likewise.
1418 (DImode CONST_DOUBLE splitter): Delete.
1420 2015-12-12 Paolo Bonzini <bonzini@gnu.org>
1423 * c-family/c-ubsan.c (ubsan_instrument_shift): Disable
1424 sanitization of left shifts for wrapping signed types as well.
1426 2015-12-11 Eric Botcazou <ebotcazou@adacore.com>
1429 * tree-vect-generic.c (tree_vec_extract): Remove GSI parameter.
1430 Do not gimplify the result.
1431 (do_unop): Adjust call to tree_vec_extract.
1432 (do_binop): Likewise.
1433 (do_compare): Likewise.
1434 (do_plus_minus): Likewise.
1435 (do_negate): Likewise.
1436 (expand_vector_condition): Likewise.
1437 (do_cond): Likewise.
1439 2015-12-11 Nathan Sidwell <nathan@acm.org>
1441 * config/nvptx/nvptx.h (RETURN_ADDR_REGNO): Delete.
1442 (OUTGOING_ARG_POINTER_REGNUM): Delete.
1443 (ASM_OUTPUT_COMMON, ASM_OUTPUT_LOCAL): Delete.
1444 (REGISTER_NAMES): Name static chain regs.
1445 * config/nvptx/nvptx.c (nvptx_function_arg): Add ARG_UNUSED, merge
1447 (nvptx_incoming_arg): Merge ifs.
1448 (nvptx_function_arg_boundary): Reimplement to avoid mixing units.
1449 (nvptx_function_value): Tail call nvptx_libcall_value.
1450 (nvptx_pass_by_reference): Add ARG_UNUSED.
1451 (nvptx_static_chain): Use conditional op.
1452 (nvptx_handle_kernel_attribute): Use VOID_TYPE_P.
1454 2015-12-11 Jan-Benedict Glaw <jbglaw@lug-owl.de>
1455 Dominique d'Humieres <dominiq@lps.ens.fr>
1460 * config/darwin.c (darwin_use_anchors_for_symbol_p): Fix indention and
1461 trailing whitespace.
1463 2015-12-11 Jan Beulich <jbeulich@suse.com>
1465 * cfgexpand.c (expand_one_var): Exit early for static and
1466 external variables when adjusting stack alignment related.
1468 2015-12-11 Dominik Vogt <vogt@linux.vnet.ibm.com>
1470 * config/s390/s390.c (s390_rtx_costs)
1471 (s390_cannot_force_const_mem, legitimate_pic_operand_p)
1472 (s390_preferred_reload_class, s390_reload_symref_address)
1473 (legitimate_reload_constant_p, print_operand): Wide int support.
1474 * config/s390/predicates.md ("const0_operand", "constm1_operand")
1475 ("consttable_operand"): Likewise.
1476 ("larl_operand"): Add a comment.
1477 * config/s390/s390.h (TARGET_SUPPORTS_WIDE_INT): Enable wide int
1480 2015-12-11 Nathan Sidwell <nathan@acm.org>
1482 * config/nvptx/nvptx.h (TARGET_SUPPORTS_WIDE_INT): Define.
1483 * config/nvptx/nvptx.c (nvptxx_assemble_integer): Return false for
1486 2015-12-11 Tom de Vries <tom@codesourcery.com>
1488 * passes.def: Remove unpaired TERMINATE_PASS_LIST.
1490 2015-12-11 Michael Matz <matz@suse.de>
1492 * hash-map.h (hash_map::hash_map): Gather statistics only
1493 when GATHER_STATISTICS is true.
1494 * hash-set.h (hash_set::hash_set): Ditto.
1495 * hash-table.h (hash_table::hash_table): Ditto.
1496 (hash_table::create_ggc): Ditto.
1498 2015-12-11 Martin Jambor <mjambor@suse.cz>
1501 * ipa-prop.c (ipa_compute_jump_functions_for_edge): Add checking
1502 assert that align is nonzero.
1504 2015-12-11 Dominik Vogt <vogt@linux.vnet.ibm.com>
1506 * config/s390/s390.c (s390_expand_setmem): Use new expanders.
1507 * config/s390/s390.md ("*setmem_long")
1508 ("*setmem_long_and", "*setmem_long_31z"): Fix warnings.
1509 ("*setmem_long_and_31z"): New define_insn.
1510 ("setmem_long_<P:mode>"): New expanders.
1511 * (<modesize>): New mode attribute
1513 2015-12-11 Dominik Vogt <vogt@linux.vnet.ibm.com>
1515 * config/s390/s390.md ("movstr", "*movstr"): Fix warning.
1516 ("movstr<P:mode>"): New indirect expanders used by "movstr".
1518 2015-12-11 Martin Liska <mliska@suse.cz>
1519 Uros Bizjak <ubizjak@gmail.com>
1522 * config/i386/i386.c (ix86_valid_target_attribute_tree):
1523 Use ggc_strdup to copy option_strings to opts->x_ix86_arch_string and
1524 opts->x_ix86_tune_string.
1526 2015-12-11 Richard Biener <rguenther@suse.de>
1528 * lto-streamer.h (lto_simple_header_with_strings): Remove
1529 main_size field already in lto_simple_header.
1531 2015-12-11 Ilya Enkovich <enkovich.gnu@gmail.com>
1533 * tree-vect-stmts.c (vectorizable_mask_load_store): Check
1536 2015-12-11 Ilya Enkovich <enkovich.gnu@gmail.com>
1538 * config/i386/i386.c (ix86_get_mask_mode): Use scalar
1539 modes for 32 and 16 byte boolean vectors when possible.
1541 2015-12-11 Segher Boessenkool <segher@kernel.crashing.org>
1543 PR rtl-optimization/67778
1544 PR rtl-optimization/68634
1545 * shrink-wrap.c (try_shrink_wrapping): Add a comment about why we want
1546 to put the prologue earlier. When determining if an earlier block is
1547 suitable, make sure it dominates every block reachable from it.
1549 2015-12-11 Segher Boessenkool <segher@kernel.crashing.org>
1551 PR rtl-optimization/68814
1552 * rtlanal.c (set_noop_p): Use BITS_BIG_ENDIAN instead of
1555 2015-12-10 Nathan Sidwell <nathan@acm.org>
1557 * config/nvptx/nvptx.c (nvptx_function_arg,
1558 nvptx_function_incoming_arg, nvptx_function_arg_advance,
1559 nvptx_strict_argument_naming, nvptx_function_arg_boundary,
1560 nvptx_libcall_value, nvptx_function_value,
1561 nvptx_function_value_regno_p, nvptx_pass_by_reference,
1562 nvptx_return_in_memory, nvptx_promote_function_mode,
1563 nvptx_static_chain): Move earlier.
1564 (write_one_arg): Break out as helper fn for ...
1565 (write_arg): ... this new function. Adjust all callers.
1567 2015-12-10 Jan Hubicka <hubicka@ucw.cz>
1569 * lto-streamer-out.c (wrap_refs): Only wrap public decls.
1571 2015-12-10 Jan Hubicka <hubicka@ucw.cz>
1573 * ipa-cp.c (ipcp_cloning_candidate_p): Use node->optimize_for_size_p.
1574 (good_cloning_opportunity_p): Likewise.
1575 (gather_context_independent_values): Do not return true when
1576 polymorphic call context is known or when we have known aggregate
1577 value of unused parameter.
1578 (estimate_local_effects): Try to create clone for all context
1579 when either some params are substituted or devirtualization is possible
1580 or some params can be removed; use local flag instead of
1581 node->will_be_removed_from_program_if_no_direct_calls_p.
1582 (identify_dead_nodes): Likewise.
1584 2015-12-10 David Malcolm <dmalcolm@redhat.com>
1586 * doc/invoke.texi (-Wall): Add -Wmisleading-indentation to the
1588 (-Wmisleading-indentation): Update documentation to reflect
1589 being enabled by -Wall in C/C++.
1591 2015-12-10 Vladimir Makarov <vmakarov@redhat.com>
1593 PR rtl-optimization/68691
1594 * lra-spills.c (lra_final_code_change): Check pseudo occurrence
1595 number in non-debug insns and remove debug insns if necessary.
1597 2015-12-10 Martin Sebor <msebor@redhat.com>
1599 * invoke.texi (Warning Options): Update -Wall options. Clarify
1600 when some -Wextra options are enabled. Add -Wplacement-new example.
1602 2015-12-10 Uros Bizjak <ubizjak@gmail.com>
1604 * graphite-scop-detection.c (gather_bbs::before_dom_children):
1605 Change return type to an edge. Always return NULL.
1607 2015-12-10 Jeff Law <law@redhat.com>
1609 PR tree-optimization/68619
1610 * tree-ssa-dom.c (dom_opt_dom_walker::before_dom_children): Propgate
1611 return value from optimize_stmt.
1612 (dom_opt_dom_walker): Add new argument to dom_walker constructor.
1613 (pass_dominator:execute): If a block has an unreachable edge,
1614 remove all jump threads through any successor of the affected block.
1615 (record_equivalences_from_phis): Ignore alternative if the edge
1616 does not have EDGE_EXECUTABLE set.
1617 (single_incoming_edge_ignoring_loop_edges): Similarly.
1618 (optimize_stmt): If a gimple_code has a compile-time constant
1619 condition, return the edge taken for that constant value. Also
1620 change the condition to true/false as necessary.
1621 * domwalk.h (dom_walker::dom_walker): Add new argument
1622 skip_unreachable_blocks. Don't provide empty constructor body.
1623 (dom_walker::before_dom_children): Change return type.
1624 (dom_walker::bb_reachable): Declare new private method.
1625 (dom_walker::propagate_unreachable_to_edges): Likewise.
1626 (dom_walker::m_unreachable_dom): Declare new private data member.
1627 (dom_walker::m_skip_unreachable_blocks): Likewise.
1628 * domwalk.c: Include dumpfile.h.
1629 (dom_walker::dom_walker): New constructor. Initialize private data
1630 members. If needed, set EDGE_EXECUTABLE for all edges in the CFG,
1631 extracted from tree-ssa-sccvn.c.
1632 (dom_walker::bb_reachable): New method extracted from tree-ssa-sccvn.c
1633 (dom_walker::propagate_unreachable_to_edges): Likewise.
1634 (dom_walker::walk): Only call before_dom_children on reachable
1635 blocks. If before_dom_children returns an edge, then clear
1636 EDGE_EXECUTABLE for all other outgoing edges from the same block.
1637 For unreachable blocks, call propagate_unreachable_to_edges.
1638 Similarly, only call after_dom_children on reachable blocks. For
1639 unreachable blocks, conditionally clear m_unreachable_dom.
1640 * tree-ssa-sccvn.c (sccvn_dom_walker::unreachable_dom): Remove
1641 private data member.
1642 (sccvn_dom_walker::after_dom_children): Use methods from dom_walker
1644 (run_scc_vn): Likewise.
1645 (sccvn_dom_walker::before_dom_children): Likewise. Return the taken
1646 outgoing edge if a COND, SWITCH, or GOTO are optimized.
1647 * compare-elim.c (find_comparison_dom_walker::before_dom_children):
1648 Change return type to an edge. Always return NULL.
1649 * fwprop.c (single_def_use_dom_walker::before_dom_children): Likewise.
1650 * gimple-ssa-strength-reduction.c
1651 (find_candidates_dom_walker::before_dom_children): Likewise.
1652 * ipa-prop.c (analysis_dom_walker::before_dom_children): Likewise.
1653 (ipcp_modif_dom_walker::before_dom_children): Likewise.
1654 * tree-into-ssa.c (rewrite_dom_walker::before_dom_children): Likewise.
1655 (rewrite_update_dom_walker::before_dom_children): Likewise.
1656 (mark_def_dom_children::before_dom_children): Likewise.
1657 * tree-ssa-dse.c (dse_dom_walker::before_dom_children): Likewise.
1658 * tree-ssa-loop-im.c
1659 (invariantness_dom_walker::before_dom_children): Likewise.
1660 (move_computations_dom_walker::before_dom_walker): Likewise.
1662 (nontrapping_dom_walker::before_dom_children): Likewise.
1664 (eliminate_dom_walker::before_dom_children): Likewise.
1665 * tree-ssa-propagate.c
1666 (substitute_and_fold_dom_walker::before_dom_children): Likewise.
1668 (strlen_dom_walker::before_dom_children): Likewise.
1669 * tree-ssa-uncprop.c
1670 (uncprop_dom_walker::before_dom_children): Likewise.
1672 2015-12-10 Jakub Jelinek <jakub@redhat.com>
1674 PR rtl-optimization/68376
1675 PR rtl-optimization/68670
1676 * ifcvt.c (noce_try_abs): For one_cmpl allow < 0, >= 0
1677 or > -1 conditions regardless of negate, and disallow
1678 all other conditions.
1680 2015-12-10 Ilya Enkovich <enkovich.gnu@gmail.com>
1682 * tree-chkp.c (chkp_call_returns_bounds_p): Return true
1684 (chkp_fixup_inlined_call): New.
1685 * tree-chkp.h (chkp_fixup_inlined_call): New.
1686 * tree-stdarg.c: Include tree-chkp.h.
1687 (expand_ifn_va_arg_1): Fixup bndret calls for removed
1690 2015-12-10 Martin Jambor <mjambor@suse.cz>
1692 * tree-inline.c (duplicate_remap_omp_clause_seq): New function.
1693 (replace_locals_op): Duplicate gimple sequences in OMP clauses.
1695 2015-12-10 David Malcolm <dmalcolm@redhat.com>
1697 * graphite-optimize-isl.c (scop_get_domains): Fix indentation.
1699 2015-12-10 David Malcolm <dmalcolm@redhat.com>
1701 * ifcvt.c (noce_try_inverse_constants): Fix indentation.
1703 2015-12-10 David Malcolm <dmalcolm@redhat.com>
1705 * regrename.c (scan_rtx_address): Fix indentation.
1707 2015-12-10 David Malcolm <dmalcolm@redhat.com>
1709 * function.c (locate_and_pad_parm): Fix indentation.
1711 2015-12-10 Richard Biener <rguenther@suse.de>
1713 * tree-ssa-structalias.c (struct variable_info): Add
1714 is_ipa_escape_point flag.
1715 (new_var_info): Initialize to false.
1716 (find_func_aliases): Generate escape constraints for stores
1717 properly in IPA mode.
1718 (ipa_pta_execute): Compute is_ipa_escape_point for globals.
1720 2015-12-10 Claudiu Zissulescu <claziss@synopsys.com>
1722 * config/arc/atomic.md: Add new file.
1724 2015-12-10 Claudiu Zissulescu <claziss@synopsys.com>
1726 * config/arc/arc-protos.h (arc_expand_atomic_op): Prototype.
1727 (arc_split_compare_and_swap): Likewise.
1728 (arc_expand_compare_and_swap): Likewise.
1729 * config/arc/arc.c (arc_init): Check usage atomic option.
1730 (arc_pre_atomic_barrier): New function.
1731 (arc_post_atomic_barrier): Likewise.
1732 (emit_unlikely_jump): Likewise.
1733 (arc_expand_compare_and_swap_qh): Likewise.
1734 (arc_expand_compare_and_swap): Likewise.
1735 (arc_split_compare_and_swap): Likewise.
1736 (arc_expand_atomic_op): Likewise.
1737 * config/arc/arc.h (TARGET_CPU_CPP_BUILTINS): New C macro.
1738 (ASM_SPEC): Enable mlock option when matomic is used.
1739 * config/arc/arc.md (UNSPEC_ARC_MEMBAR): Define.
1740 (VUNSPEC_ARC_CAS): Likewise.
1741 (VUNSPEC_ARC_LL): Likewise.
1742 (VUNSPEC_ARC_SC): Likewise.
1743 (VUNSPEC_ARC_EX): Likewise.
1744 * config/arc/arc.opt (matomic): New option.
1745 * config/arc/constraints.md (ATO): New constraint.
1746 * config/arc/predicates.md (mem_noofs_operand): New predicate.
1747 * doc/invoke.texi: Document -matomic.
1748 * config/arc/atomic.md: New file.
1750 2015-12-10 Richard Biener <rguenther@suse.de>
1752 PR tree-optimization/68817
1753 * tree-vect-slp.c (vect_attempt_slp_rearrange_stmts): Detect
1756 2015-12-10 Ilya Enkovich <enkovich.gnu@gmail.com>
1758 * tree-vect-stmts.c (vectorizable_assignment): Support
1759 useless boolean conversion.
1761 2015-12-10 Alan Lawrence <alan.lawrence@arm.com>
1763 * doc/install.texi: Add note against GNAT 4.8 on ARM targets.
1765 2015-12-10 Jakub Jelinek <jakub@redhat.com>
1767 PR tree-optimization/68785
1768 * gimple-fold.c (fold_ctor_reference): Pass return value from
1769 native_encode_expr to native_interpret_expr.
1770 * tree-ssa-sccvn.c (fully_constant_vn_reference_p): Likewise.
1772 2015-12-10 Richard Biener <rguenther@suse.de>
1775 * tree-ssa-structalias.c (set_uids_in_ptset): Add fndecl
1776 parameter and make vars_contains_nonlocal properly have
1777 function-scope semantics in IPA mode.
1778 (find_what_var_points_to): Add fndecl parameter.
1779 (find_what_p_points_to): Likewise.
1780 (pt_solution_includes_global): Remove IPA PTA early out.
1781 (compute_points_to_sets): Adjust.
1782 (ipa_pta_execute): Likewise. Clear final_solutions after
1785 2015-12-10 Tom de Vries <tom@codesourcery.com>
1788 * doc/include/fdl.texi: Add nodefaultgnufreedocumentationlicensenode
1789 ifdef to allow disabling default @node GNU Free Documentation License.
1791 2015-12-10 Richard Biener <rguenther@suse.de>
1793 * tree-ssa-structalias.c (create_function_info_for): Add missing
1794 constraint from nonlocal for DECL_RESULT.
1796 2015-12-10 Richard Biener <rguenther@suse.de>
1798 * tree-if-conv.c: Include params.h.
1799 (ifcvt_memrefs_wont_trap): Use PARAM_ALLOW_STORE_DATA_RACES
1800 instead of flag_tree_loop_if_convert_stores to guard cases
1801 we'd introduce store-data-races.
1803 2015-12-10 Richard Biener <rguenther@suse.de>
1806 * ipa-split.c (split_function): Record return value properly
1807 when the split part doesn't set it.
1809 2015-12-10 Richard Biener <rguenther@suse.de>
1811 PR tree-optimization/68806
1812 * tree-vect-loop.c (vect_analyze_loop_2): Properly detect
1813 reduction chains and ignore SLP reductions.
1815 2015-12-10 Richard Biener <rguenther@suse.de>
1817 * tree-if-conv.c (if_convertible_loop_p_1): Do not compute
1819 (if_convertible_loop_p): Adjust.
1821 2015-12-10 Tom de Vries <tom@codesourcery.com>
1823 * tree-ssa-structalias.c (find_func_aliases_for_builtin_call): Remove
1826 2015-12-10 Martin Liska <mliska@suse.cz>
1828 * tree-vect-data-refs.c: Free an overwritten dataref.
1830 2015-12-09 John David Anglin <danglin@gcc.gnu.org>
1833 * config/pa/pa.c (pa_emit_move_sequence): Don't check that mode is
1834 consistent with modes of the input and output operands when doing
1835 reloads to and from floating point registers. Do reload for all
1838 2015-12-08 Jan Hubicka <hubicka@ucw.cz>
1842 * tree-ssa-alias.c (ptr_deref_may_alias_decl_p): Use compare_base_decls
1843 (nonoverlapping_component_refs_of_decl_p): Update sanity check.
1844 (decl_refs_may_alias_p): Use compare_base_decls.
1845 * alias.c: Include cgraph.h
1846 (get_alias_set): Add cut-off for recursion.
1847 (rtx_equal_for_memref_p): Use rtx_equal_for_memref_p.
1848 (compare_base_decls): New function.
1849 (base_alias_check): Likewise.
1850 (memrefs_conflict_p): Likewise.
1851 (nonoverlapping_memrefs_p): Likewise.
1852 * alias.h (compare_base_decls): Declare.
1854 2015-12-08 Jan Hubicka <hubicka@ucw.cz>
1857 * ipa-visibility.c (function_and_variable_visibility): Fix vtable
1860 2015-12-08 Jan Hubicka <hubicka@ucw.cz>
1864 * ipa-reference.c (ipa_reference_get_not_read_global,
1865 ipa_reference_get_not_read_global): Fix WRT aliases.
1866 (is_improper): Break out from ...
1867 (is_proper_for_analysis): ... here; fix WRT aliases.
1868 (analyze_function, generate_summary,
1869 ipa_reference_write_optimization_summary,
1870 ipa_reference_read_optimization_summary): Use ipa_reference_var_uid.
1871 * ipa-refrence.h (ipa_reference_var_uid): New inline.
1872 * tree-ssa-alias.c: Revert my accidental previous commit.
1873 (ref_maybe_used_by_call_p_1,
1874 call_may_clobber_ref_p_1): Use ipa_reference_var_uid.
1876 2015-12-09 Andreas Tobler <andreast@gcc.gnu.org>
1878 * config/rs6000/freebsd64.h: Remove the redefinition of WCHAR_TYPE.
1880 2015-12-09 Aditya Kumar <aditya.k7@samsung.com>
1881 Sebastian Pop <s.pop@samsung.com>
1883 * graphite-optimize-isl.c: Include isl/ast_build.h
1884 (optimize_isl): Set several isl_options_set_* options.
1886 2015-12-09 Aditya Kumar <aditya.k7@samsung.com>
1887 Sebastian Pop <s.pop@samsung.com>
1889 * graphite-sese-to-poly.c (pdr_add_memory_accesses): Iterate in
1890 the same order as adding data reference access functions.
1892 2015-12-09 Aditya Kumar <aditya.k7@samsung.com>
1893 Sebastian Pop <s.pop@samsung.com>
1895 * graphite-optimize-isl.c (optimize_isl): Improve dump message.
1897 2015-12-09 Marek Polacek <polacek@redhat.com>
1899 PR tree-optimization/66949
1900 * tree-ssa-phiopt.c (tree_ssa_phiopt_worker): Don't call
1901 single_non_singleton_phi_for_edges to get the PHI from
1902 factor_out_conditional_conversion. Use NULL_TREE instead of NULL.
1903 (factor_out_conditional_conversion): Adjust declaration. Make it
1904 return the newly-created PHI.
1906 2015-12-09 James Greenhalgh <james.greenhalgh@arm.com>
1908 * config/aarch64/aarch64-protos.h
1909 (aarch64_cannot_change_mode_class): Bring back.
1910 * config/aarch64/aarch64.c
1911 (aarch64_cannot_change_mode_class): Likewise.
1912 * config/aarch64/aarch64.h (CANNOT_CHANGE_MODE_CLASS): Likewise.
1913 * config/aarch64/aarch64.md (aarch64_movdi_<mode>low): Use
1914 zero_extract rather than truncate.
1915 (aarch64_movdi_<mode>high): Likewise.
1917 2015-12-09 Jakub Jelinek <jakub@redhat.com>
1919 PR tree-optimization/68786
1920 * tree-if-conv.c: Include builtins.h.
1921 (predicate_mem_writes): Put result of get_object_alignment (ref)
1922 into second argument's value.
1923 * tree-vect-stmts.c (vectorizable_mask_load_store): Put minimum
1924 pointer alignment into second argument's value.
1925 * tree-data-ref.c (get_references_in_stmt): Use value of second
1926 argument for build_aligned_type, and only the type to build
1927 a zero second argument for MEM_REF.
1928 * internal-fn.c (expand_mask_load_optab_fn,
1929 expand_mask_store_optab_fn): Likewise.
1931 2015-12-09 Richard Biener <rguenther@suse.de>
1933 PR tree-optimization/68583
1934 * tree-if-conv.c (if_convertible_phi_p): Drop
1935 flag_tree_loop_if_convert_stores check in favor of the
1936 existing any_mask_load_store check.
1937 (insert_gimplified_predicates): Likewise.
1938 (combine_blocks): Likewise.
1939 (tree_if_conversion): Likewise.
1940 (ifcvt_memrefs_wont_trap): Properly check
1941 flag_tree_loop_if_convert_stores in all places that can end
1942 up introducing store-data-races.
1943 (if_convertible_gimple_assign_stmt_p): Remove restriction
1944 on flag_tree_loop_if_convert_stores for stores we can if-convert
1945 without introducing store-data-races. Force versioning for
1946 all if-converted stores.
1948 2015-12-09 Tom de Vries <tom@codesourcery.com>
1950 PR tree-optimization/68716
1951 * tree-ssa-structalias.c (find_func_clobbers): Fix handling of
1952 BUILT_IN_GOMP_PARALLEL and BUILT_IN_GOACC_PARALLEL.
1954 2015-12-09 Martin Liska <mliska@suse.cz>
1956 * hash-traits.h (struct typed_delete_remove): New function.
1957 (typed_delete_remove ::remove): Likewise.
1958 * tree-ssa-loop-ivopts.c (struct iv_common_cand): Replace
1960 (record_common_cand): Replace XNEW with operator new.
1962 2015-12-09 Martin Liska <mliska@suse.cz>
1964 * tree-if-conv.c (ifcvt_local_dce): Replace vec with auto_vec.
1966 2015-12-09 Martin Liska <mliska@suse.cz>
1969 * ipa-icf.c (sem_function::param_used_p): Return true
1970 if ipa_node_params_sum equals to NULL.
1972 2015-12-09 Richard Biener <rguenther@suse.de>
1974 PR tree-optimization/68583
1975 * tree-if-conv.c (ifc_dr): Make flags bool, add w_unconditionally
1976 flag and rename predicates to w_predicate, rw_predicate and
1978 (DR_WRITTEN_AT_LEAST_ONCE): Rename to ...
1979 (DR_BASE_W_UNCONDITIONALLY): ... this.
1980 (DR_W_UNCONDITIONALLY): Add.
1981 (hash_memrefs_baserefs_and_store_DRs_read): Adjust. Compute
1982 unconditionally written separately from read or written.
1983 (ifcvt_memrefs_wont_trap): Properly treat reads.
1984 (ifcvt_could_trap_p): Inline ...
1985 (if_convertible_gimple_assign_stmt_p): ... here. Refactor
1986 to avoid code duplication.
1987 (if_convertible_loop_p_1): Adjust and properly initialize
1990 2015-12-09 Richard Biener <rguenther@suse.de>
1992 * tree-vect-stmts.c (vectorizable_load): Set new vinfo only
1993 if it was not yet set.
1994 * tree-vectorizer.h (set_vinfo_for_stmt): Assert we don't
1995 overwrite an existing entry.
1997 2015-12-09 Chung-Lin Tang <cltang@codesourcery.com>
1999 * c-family/c-omp.c (c_finish_oacc_wait): Remove add_stmt() call.
2000 * c/c-parser.c (c_parser_oacc_wait): Add add_stmt() call.
2001 * cp/parser.c (cp_parser_oacc_wait): Add finish_expr_stmt() call.
2003 2015-12-08 Jan Hubicka <hubicka@ucw.cz>
2006 * symtab.c (symtab_node::equal_address_to): New parameter
2008 * cgraph.h (symtab_node::equal_address_to): Update prototype.
2010 2015-12-08 DJ Delorie <dj@redhat.com>
2012 * config/rx/rx.opt (-mjsr): Add.
2013 * config/rx/predicates.md (rx_call_operand): Avoid overflowing
2015 * config/rx/rx.c (rx_function_ok_for_sibcall): Likewise for
2017 * doc/invoke.texi (-mjsr): Document it.
2019 2015-12-08 Jan Hubicka <hubicka@ucw.cz>
2022 * lto-streamer.h (lto_symtab_merge_decls, lto_symtab_merge_symbols,
2023 lto_symtab_prevailing_decl): MOve to lto-symtab.h.
2024 * lto-streamer-out.c (DFS::DFS_write_tree_body): Check that
2025 DECL_ABSTRACT_ORIGIN is not error_mark_node.
2027 2015-12-08 David Malcolm <dmalcolm@redhat.com>
2029 * tree-nested.c (convert_tramp_reference_stmt): Fix indentation.
2031 2015-12-08 David Malcolm <dmalcolm@redhat.com>
2033 * tree-ssa-loop-unswitch.c (tree_unswitch_outer_loop): Fix
2036 2015-12-08 Jan Hubicka <hubicka@ucw.cz>
2039 * lto-cgraph.c (compute_ltrans_boundary): Add transparent alias targets
2042 2015-12-08 Jan Hubicka <hubicka@ucw.cz>
2045 * varpool.c (varpool_node::get_availability): Recurse only on
2046 weakrefs with definition in the target.
2047 (symbol_table::remove_unreferenced_decls): Keep aliases in the boundary.
2049 2015-12-08 Jan Hubicka <hubicka@ucw.cz>
2052 * ipa-visibility.c (can_replace_by_local_alias): Look through
2053 transparent aliases; refuse weakrefs.
2054 (update_visibility_by_resolution_info): Skip transparent aliases in the
2057 2015-12-08 Jan Hubicka <hubicka@ucw.cz>
2060 * symtab.c (symtab_node::verify_base): Fix thinko in a conditional.
2061 (symtab_node::noninterposable_alias): Do not accept transparent
2064 2015-12-08 Nathan Sidwell <nathan@acm.org>
2066 * config/nvptx/nvptx.c (decl_chunk_size, decl_chunk_mode,
2067 decl_offset, init_part, object_size, object_finished): Replace
2069 (struct init_frag): ... this new struct variable.
2070 (begin_decl_field, output_decl_chunk): Replace with ...
2071 (output_init_frag): ... this new function.
2072 (nvptx_assemble_value): Reimplement.
2073 (nvptx_assemble_integer, nvptx_output_skip): Adjust.
2074 (nvptx_assemble_decl_begin, nvptx_assemble_decl_end): Adjust.
2075 (nvptx_output_aligned_decl): Call nvptx_assemble_decl_end.
2077 2015-12-08 Eric Botcazou <ebotcazou@adacore.com>
2081 * cfgexpand.c (set_rtl): Always accept mode mismatch for SSA names
2082 with BLKmode promoted mode based on RESULT_DECLs.
2084 2015-12-08 Uros Bizjak <ubizjak@gmail.com>
2087 * config/i386/i386.c (ix86_option_override_internal): Enable
2088 -maccumulate-outgoing-args when %ebp is fixed due to stack
2089 realignment requirements.
2091 2015-12-08 Tom de Vries <tom@codesourcery.com>
2093 PR tree-optimization/68640
2094 * omp-low.c (install_var_field): Clear the restrict qualifier on the var
2097 2015-12-08 Kirill Yukhin <kirill.yukhin@intel.com>
2099 * config/i386/sse.md (define_insn "<avx512>_vec_dup<mode>_1"): Fix
2100 assembler to make source always 128bit.
2102 2015-12-08 Jakub Jelinek <jakub@redhat.com>
2106 * common.opt (Wframe-larger-than=): Add Warning.
2107 * opts.h (control_warning_option): Add ARG argument.
2108 * opts-common.c (cmdline_handle_error): New function.
2109 (read_cmdline_option): Use it.
2110 (control_warning_option): Likewise. Add ARG argument.
2111 If non-NULL, decode it if needed and pass through
2112 to handle_generated_option. Handle CLVC_ENUM like
2114 * opts.c (common_handle_option): Adjust control_warning_option
2116 (enable_warning_as_error): Likewise.
2118 2015-12-08 Matthew Wahab <matthew.wahab@arm.com>
2120 * config/aarch64/aarch64-options-extensions.def: Remove
2121 AARCH64_FL_RDMA from "fp" and "simd". Remove "pan", "lor",
2123 * config/aarch64/aarch64.h (AARCH64_FL_PAN): Remove.
2124 (AARCH64_FL_LOR): Remove.
2125 (AARCH64_FL_RDMA): Remove.
2126 (AARCH64_FL_V8_1): New.
2127 (AARCH64_FL_FOR_AARCH8_1): Replace AARCH64_FL_PAN, AARCH64_FL_LOR
2128 and AARCH64_FL_RDMA with AARCH64_FL_V8_1.
2129 (AARCH64_ISA_RDMA): Replace AARCH64_FL_RDMA with AARCH64_FL_V8_1.
2130 * doc/invoke.texi (AArch64 -march): Rewrite initial paragraph and
2131 section on -march=native. Group descriptions of permitted
2132 architecture names together. Expand description of
2134 (AArch64 -mtune): Slightly rework section on -march=native.
2135 (AArch64 -mcpu): Slightly rework section on -march=native.
2136 (AArch64 Feature Modifiers): Remove "pan", "lor" and "rdma".
2137 State that -march=armv8.1-a enables "crc" and "lse".
2139 2015-12-08 Eric Botcazou <ebotcazou@adacore.com>
2141 * doc/invoke.texi (SPARC options): Fix typo.
2143 2015-12-08 Eric Botcazou <ebotcazou@adacore.com>
2145 * config/ia64/ia64.c (ia64_emit_probe_stack_range): Adjust.
2146 (output_probe_stack_range): Rotate the loop and simplify.
2148 2015-12-08 Uros Bizjak <ubizjak@gmail.com>
2150 * config/i386/i386.c (ix86_emit_swsqrtsf): Cleanup
2151 infinity filterning code.
2153 2015-12-08 Ilya Enkovich <enkovich.gnu@gmail.com>
2155 PR tree-optimization/68766
2156 * tree-vectorizer.c (vectorize_loops): Check for
2157 if-converted loops when debug counters are used.
2159 2015-12-07 DJ Delorie <dj@redhat.com>
2161 * config/rl78/constraints.md (Wfr): Change to be a non-memory
2163 * config/rl78/rl78-protos.h (rl78_one_far_p): Declare.
2164 * config/rl78/rl78.c (rl78_one_far_p): Define.
2165 * config/rl78/rl78-virt (movqi_virt): Fix far memory
2167 (movhi_virt): Likewise.
2168 (zero_extendqihi2_virt): Likewise.
2169 (extendqihi2_virt): Likewise.
2170 (add<mode>3_virt): Likewise.
2171 (sub<mode>3_virt): Likewise.
2172 (andqi3_virt): Likewise.
2173 (iorqi3_virt): Likewise.
2174 (xorqi3_virt): Likewise.
2175 * config/rl78/rl78-real.md (bf,br): Use long forms to avoid reloc
2176 overflow in large files.
2178 2015-12-07 Eric Botcazou <ebotcazou@adacore.com>
2181 * doc/invoke.texi (SPARC options): Document -mstd-struct-return.
2182 * config/sparc/sparc.c (sparc_struct_value_rtx): Minor tweaks.
2183 * config/sparc/sparc.h (CALL_REALLY_USED_REGISTERS): Define.
2184 * config/sparc/sparc.opt (mstd-struct-return): Accept negative.
2186 2015-12-07 Steve Ellcey <sellcey@imgtec.com>
2188 * reorg.c (optimize_skip): Do not put frame related instructions
2189 in annulled delay slots.
2190 (steal_delay_list_from_target): Ditto.
2191 (fill_slots_from_thread): Ditto.
2193 2015-12-07 Evandro Menezes <e.menezes@samsung.com>
2195 * config/aarch64/aarch64-cores.def: Use the Exynos M1 sched model.
2196 * config/aarch64/aarch64.md: Include "exynos-m1.md".
2197 * config/arm/arm.md: Likewise.
2198 * config/arm/exynos-m1.md: New file.
2200 2015-12-07 Jan Hubicka <hubicka@ucw.cz>
2202 * fold-const.c (operand_equal_p): Drop flag_strict_aliasing check.
2204 2015-12-07 Nathan Sidwell <nathan@acm.org>
2206 * config//nvptx/nvptx.c (write_return): New.
2207 (write_fn_proto, nvptx_declare_function_name): Call it.
2209 2015-12-07 Jan Hubicka <hubicka@ucw.cz>
2212 * symtab.c (ultimate_transparent_alias_target): New inline function.
2213 (symbol_table::assembler_names_equal_p): New method; break out from ...
2214 (symbol_table::decl_assembler_name_equal): ... here.
2215 (symbol_table::change_decl_assembler_name): Also update names and
2216 translation links of transparent aliases.
2217 (symtab_node::dump_base): Dump transparent_alias.
2218 (symtab_node::verify_base): Implement basic transparent alias
2220 (symtab_node::make_decl_local): Support localization of weakrefs;
2221 recurse to transparent aliases; set TREE_STATIC.
2222 (symtab_node::ultimate_alias_target_1): Handle visibility of
2223 transparent aliases.
2224 (symtab_node::resolve_alias): New parmaeter transparent; handle
2225 transparent aliases; recurse to aliases of aliases to fix comdat
2227 (symtab_node::get_partitioning_class): Handle transparent aliases.
2228 * ipa-visibility.c (cgraph_externally_visible_p,
2229 varpool_node::externally_visible_p): Visibility of transparent alias
2230 depends on its target.
2231 (function_and_variable_visibility): Do not tweak visibility of
2232 transparent laiases.
2233 (function_and_variable_visibility): Likewise.
2234 * ipa.c (symbol_table::remove_unreachable_nodes): Clear
2235 transparent_alias flag.
2236 * alias.c (cgraph_node::create_alias, cgraph_node::get_availability):
2237 Support transparent aliases.
2238 * cgraph.h (symtab_node): Update prototype of resolve_alias;
2239 add transparent_alias flag.
2240 (symbol_table: Add assembler_names_equal_p.
2241 (symtab_node::real_symbol_p): Skip transparent aliases.
2242 * cgraphunit.c (cgraph_node::reset): Reset transparent_alias flag.
2243 (handle_alias_pairs): Set transparent_alias for weakref.
2244 (cgraph_node::assemble_thunks_and_aliases): Do not asemble transparent
2246 * lto-cgraph.c (lto_output_node): When outputting same_comdat_group
2247 skip symbols not put into boundary; stream transparent_alias.
2248 (lto_output_varpool_node): Likewise.
2249 (input_overwrite_node, input_varpool_node): Stream transparent alias.
2250 * varpool.c (ctor_for_folding, varpool_node::get_availability,
2251 varpool_node::assemble_aliases,
2252 symbol_table::remove_unreferenced_decls): Handle transparent aliase.
2253 (varpool_node::create_alias): Set transparent_alias.
2255 2015-12-07 Eric Botcazou <ebotcazou@adacore.com>
2259 * cfgexpand.c (set_rtl): Always accept PARALLELs with BLKmode for
2260 SSA names based on RESULT_DECLs.
2261 * function.c (expand_function_start): Do not create BLKmode REGs
2262 for GIMPLE registers when coalescing is enabled.
2264 2015-12-07 Bernd Edlinger <bernd.edlinger@hotmail.de>
2266 * final.c (shorten_branches): Fix check for basic asm.
2267 * ipa-icf-gimple.c (func_checker::compare_gimple_asm): Add check for
2270 2015-12-07 Nathan Sidwell <nathan@acm.org>
2272 * config/nvptx/nvptx.c (nvptx_output_call_insn): Emit trap after no
2275 2015-12-07 David Malcolm <dmalcolm@redhat.com>
2277 * pretty-print.c (text_info::set_range): Rename to...
2278 (text_info::set_location): ...this, converting 2nd param
2279 from source_range to a location_t.
2280 * pretty-print.h (text_info::set_location): Convert
2281 from inline function to external definition.
2282 (text_info::set_range): Delete.
2284 2015-12-07 Nathan Sidwell <nathan@acm.org>
2286 * config/nvptx/nvptx.c (nvptx_assemble_decl_begin): Look inside
2287 complex and vector types. Cope with packed structs.
2289 2015-12-07 Kirill Yukhin <kirill.yukhin@intel.com>
2292 * config/i386/sse.md: Make 'v' alternative work on 'avx512f' ISA only.
2293 Force destination to 512 bits register.
2295 2015-12-07 Kirill Yukhin <kirill.yukhin@intel.com>
2298 * config/i386/sse.md (define_insn "kunpckhi"): Fix operands order.
2299 (define_insn "kunpcksi"): Ditto.
2300 (define_insn "kunpckdi"): Ditto.
2302 2015-12-06 Kaz Kojima <kkojima@gcc.gnu.org>
2304 * config/sh/sh.md (rsqrtsf2): Adjust for canonical form with unspec.
2306 2015-12-06 Victoria Stepanyan <victoria.stepanyan@amd.com>
2308 * common/config/i386/i386-common.c
2309 (OPTION_MASK_ISA_CLZERO_SET): New.
2310 (ix86_handle_option): Handle clzero.
2311 * config.gcc (i[34567]86-*-*): Add clzerointrin.h,
2312 (x86_64-*-*): Likewise.
2313 * config/i386/clzerointrin.h: New header.
2314 * config/i386/cpuid.h (bit_CLZERO): Define.
2315 * config/i386/driver-i386.c (host_detect_local_cpu): Detect
2317 * config/i386/i386.opt (clzero): New.
2318 * config/i386/i386-c.c: Define __CLZERO__ if needed.
2319 * config/i386/i386.c (ix86_target_string): Define -mclzero option.
2321 (ix86_option_override_internal): Handle new option.
2322 (processor_alias_table): Added PTA_CLZERO.
2323 (ix86_valid_target_attribute_inner_p): Add OPT_mclzero.
2324 (ix86_builtins): Add IX86_BUILTIN_CLZERO, IX86_BUILTIN_CLZERO.
2325 (ix86_expand_builtin): Handle IX86_BUILTIN_CLZERO and
2326 IX86_BUILTIN_CLZERO built-ins.
2327 * config/i386/i386.h (TARGET_CLZERO): New.
2328 * config/i386/i386.md (unspecv): Add UNSPEC_CLZERO.
2329 (clzero): New pattern.
2330 (clzero_<mode>): New pattern.
2331 * config/i386/x86intrin.h: Include clzerointrin.h.
2332 * doc/extend.texi: Document clzero builtins.
2333 * doc/invoke.texi: Document -mclzero option.
2335 2015-12-05 Jan Hubicka <hubicka@ucw.cz>
2337 * ipa-icf.c (sem_function::merge): Check that local_original exists.
2339 2015-12-05 David Edelsohn <dje.gcc@gmail.com>
2342 * config/rs6000/rs6000-protos.h (rs6000_emit_swsqrt): Rename and add
2344 * config/rs6000/rs6000.c (rs6000_emit_swsqrt): Rename. Add
2345 non-reciporcal path.
2346 * config/rs6000/rs6000.md (rsqrt<mode>2): Call new function name.
2347 (sqrt<mode>2): Replace define_insn with define_expand that may call
2350 2015-12-04 Aditya Kumar <aditya.k7@samsung.com>
2351 Sebastian Pop <s.pop@samsung.com>
2353 * graphite-isl-ast-to-gimple.c (translate_isl_ast_node_user):
2355 (get_rename_from_scev): Check that all the ops in an expression
2356 have their uses dominated by corresponding defs.
2358 2015-12-04 Aditya Kumar <aditya.k7@samsung.com>
2359 Sebastian Pop <s.pop@samsung.com>
2361 PR tree-optimization/68693
2362 * graphite-scop-detection.c (dot_all_sese): New
2363 (dot_all_scops_1): Renamed to dot_all_sese.
2364 (dot_all_scops): Removed.
2367 (scop_detection::get_nearest_dom_with_single_entry): Check that
2368 preds are from different loop levels.
2369 (scop_detection::get_nearest_pdom_with_single_exit): Check that
2370 succs are from different loop levels.
2371 (scop_detection::print_sese): Inlined.
2372 (scop_detection::print_edge): New.
2373 (scop_detection::merge_sese): Added dumps.
2374 * graphite.h: Add declarations.
2376 2015-12-04 James Greenhalgh <james.greenhalgh@arm.com>
2378 * config/aarch64/aarch64.md (add<mode>3_pluslong): Add register
2381 2015-12-04 Vladimir Makarov <vmakarov@redhat.com>
2383 PR rtl-optimization/68349
2384 * lra-eliminations.c (move_plus_up): New function.
2385 (lra_eliminate_regs_1): Use the function.
2387 2015-12-04 Nathan Sidwell <nathan@acm.org>
2389 * config/nvptx/nvptx.c (nvptx_assemble_decl_begin): New, replacing ...
2390 (init_output_initializer): ... this.
2391 (nvptx_output_aligned_decl, nvptx_asm_declare_constant_name,
2392 nvptx_declare_object_name, nvptx_assemble_undefined_decl): Use
2393 nvptx_assemble_decl_begin.
2395 2015-12-04 Dmitry Vyukov <dvyukov@google.com>
2397 * sancov.c: New file.
2398 * Makefile.in (OBJS): Add sancov.o.
2399 * invoke.texi (-fsanitize-coverage=trace-pc): Describe.
2400 * passes.def (sancov_pass): Add.
2401 * tree-pass.h (sancov_pass): Add.
2402 * common.opt (-fsanitize-coverage=trace-pc): Add.
2403 * sanitizer.def (BUILT_IN_SANITIZER_COV_TRACE_PC): Add.
2404 * builtins.def (DEF_SANITIZER_BUILTIN): Enable for
2405 flag_sanitize_coverage.
2407 2015-12-04 Eric Botcazou <ebotcazou@adacore.com>
2410 * config/arm/unspecs.md (unspec): Remove UNSPEC_PROBE_STACK_RANGE.
2411 (unspecv): Add VUNSPEC_PROBE_STACK_RANGE.
2412 * config/arm/arm.md (probe_stack_range): Adjust.
2413 * config/aarch64/aarch64.md (unspec): Remove UNSPEC_PROBE_STACK_RANGE.
2414 (unspecv): Add UNSPECV_PROBE_STACK_RANGE.
2415 (probe_stack_range_<PTR:mode>): Adjust.
2417 2015-12-04 David Malcolm <dmalcolm@redhat.com>
2419 * convert.c (convert_to_real_1): When converting from a
2420 REAL_TYPE, preserve the location of EXPR in the result.
2421 * tree.c (get_pure_location): Make non-static.
2422 (set_source_range): Return the resulting location_t.
2423 (make_location): New function.
2424 * tree.h (get_pure_location): New decl.
2425 (get_finish): New inline function.
2426 (set_source_range): Convert return type from void to location_t.
2427 (make_location): New decl.
2429 2015-12-04 Jakub Jelinek <jakub@redhat.com>
2432 * toplev.c (init_asm_output): Pass UNKNOWN_LOCATION instead of
2433 input_location to inform.
2434 (process_options): Use warning_at (UNKNOWN_LOCATION instead of
2435 warning ( and error_at (UNKNOWN_LOCATION instead of error (.
2436 Pass UNKNOWN_LOCATION instead of input_location to fatal_error.
2438 2015-12-04 Jan Hubicka <hubicka@ucw.cz>
2440 * ipa-inline.c (can_inline_edge_p) Use merged_comdat.
2441 * cgraphclones.c (cgraph_node::create_clone): Use merged_comdat.
2442 * cgraph.c (cgraph_node::dump): Dump merged_comdat.
2443 * ipa-icf.c (sem_function::merge): Drop merged_comdat when merging
2444 comdat and non-comdat.
2445 * cgraph.h (cgraph_node): Rename merged to merged_comdat.
2446 * ipa-inline-analysis.c (simple_edge_hints): Check both merged_comdat
2449 2015-12-04 Segher Boessenkool <segher@kernel.crashing.org>
2451 * config/rs6000/rs6000.md (cstore<mode>4_unsigned): Use gpc_reg_operand
2452 instead of register_operand. Remove empty constraints. Use std::swap.
2453 (cstore_si_as_di, cstore<mode>4_signed_imm,
2454 cstore<mode>4_unsigned_imm, cstore<mode>4 for GPR): Use
2455 gpc_reg_operand instead of register_operand.
2456 (cstore<mode>4 for FP): Use gpc_reg_operand instead of
2457 register_operand. Remove empty constraints.
2459 2015-12-04 Nick Clifton <nickc@redhat.com>
2461 * config.gcc (extra_gcc_objs): Define for MSP430.
2462 * common/config/msp430/msp430-common.c (msp430_handle_option):
2463 Pass both -mmcu and -mcpu on to the back end if they are both defined.
2464 * config/msp430/msp430.c (hwmult_name): New function.
2465 (msp430_option_override): If an unrecognised MCU name is
2466 detected only warn if the user has not provided suitable
2467 -mhwmult and -mcpu options. Use msp430_warn_mcu to control
2468 warning messages. Generate warnings about conflicts between
2469 -mmcu and -mcpu and -mhwmult options.
2470 If neither -mcpu nor -mmcu have been specified but -mhwmult=
2471 f5series has the select the 430X isa.
2472 (msp430_no_hwmult): If -mmcu has not been specified and
2473 msp430_hwmult_type is AUTO then return true.
2474 * config/msp430/msp430.h (EXTRA_SPEC_FUNCTIONS): Define.
2475 (LIB_SPEC): Add hardware multiply library selection.
2476 * config/msp430/t-msp430: Delete hardware multiply multilibs.
2477 Add rule to build driver-msp430.o
2478 * config/msp430/driver-msp430.c: New file.
2479 * config/msp430/msp430.opt (warn-mcu): New option.
2480 * doc/invoke.texi: Update description of -mhwmult=auto.
2481 Document -mwarn-mcu option.
2483 2015-12-04 Segher Boessenkool <segher&kernel.crashing.org>
2485 * config/rs6000/rs6000.md (cstore<mode>4_signed): New expander.
2486 (cstore<mode>4): Call it.
2488 2015-12-04 Jakub Jelinek <jakub@redhat.com>
2490 * tree-tailcall.c (find_tail_calls): Ignore GIMPLE_NOPs.
2492 PR tree-optimization/68680
2493 * calls.c (special_function_p): Return ECF_MAY_BE_ALLOCA for
2494 BUILT_IN_ALLOCA{,_WITH_ALIGN}. Don't check for __builtin_alloca
2497 PR tree-optimization/68671
2498 * tree-ssa-reassoc.c (maybe_optimize_range_tests): For basic
2499 blocks starting with the successor of first bb we've modified
2500 and ending with last_bb call reset_flow_sensitive_info_in_bb.
2502 2015-12-04 Jeff Law <law@redhat.com>
2504 * tree-ssa-reassoc.c (maybe_optimize_range_tests): Return boolean
2505 indicating if a gimple conditional was optimized to true/false.
2506 (reassociate_bb): Bubble up return value from
2507 maybe_optimize_range_tests.
2508 (do_reassoc): Similarly, but for reassociate_bb.
2509 (execute_reassoc): Return TODO_cleanup_cfg as needed.
2511 2015-12-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2513 * config/aarch64/aarch64.c (aarch64_override_options_internal):
2514 Do not alter target_flags due to TARGET_GENERAL_REGS_ONLY_P.
2515 * doc/invoke.texi (AArch64 options): Mention that -mgeneral-regs-only
2516 does not affect the assembler directives.
2518 2015-12-04 Dominik Vogt <vogt@linux.vnet.ibm.com>
2520 * config/s390/s390.c (s390_asm_file_start): Implement hook function to
2521 emit .machine and .machinemode to the top of the assembler file.
2522 (TARGET_ASM_FILE_START): Provide target hook.
2523 (s390_asm_output_machine_for_arch): Protect with
2524 HAVE_AS_MACHINE_MACHINEMODE instead of S390_USE_TARGET_ATTRIBUTE.
2526 2015-12-04 Dominik Vogt <vogt@linux.vnet.ibm.com>
2528 * config/s390/s390.opt (s390_arch_string): Remove.
2529 (s390_tune_string): Likewise.
2530 (s390_cost_pointer): Add Variable.
2531 (s390_tune_flags): Add TargetVariable.
2532 (s390_arch_flags, march=, mbackchain, mdebug, mesa, mhard-dfp),
2533 (mhard-float, mlong-double-128, mlong-double-64, mhtm, mvx),
2534 (mpacked-stack, msmall-exec, msoft-float, mstack-guard=, mstack-size=),
2535 (mtune=, mmvcle, mzvector, mzarch, mbranch-cost=, mwarn-dynamicstack),
2536 (mwarn-framesize=): Save option.
2537 (mno-stack-guard, mno-stack-guard): New option.
2538 (mwarn-dynamicstack): Allow mno-warn-dynamicstack.
2539 (mwarn-framesize=): Convert to UInteger (negative values are rejected
2541 * config/s390/s390-c.c (s390_cpu_cpp_builtins_internal): Split setting
2542 macros changeable through the GCC target pragma into a separate
2544 (s390_cpu_cpp_builtins): Likewise.
2545 (s390_pragma_target_parse): New function, implement GCC target pragma
2547 (s390_register_target_pragmas): Register s390_pragma_target_parse if
2549 * common/config/s390/s390-common.c (s390_handle_option):
2551 Move setting s390_arch_flags to s390.c.
2552 Remove s390_tune_flags.
2553 Allow 0 as argument to -mstack-size (switch to default value).
2554 Allow 0 as argument to -mstack-guard (switch off).
2555 Remove now unnecessary explicit parsing code for -mwarn-framesize.
2556 * config/s390/s390-protos.h (s390_handle_option): Export.
2557 (s390_valid_target_attribute_tree): Export.
2558 (s390_reset_previous_fndecl): Export.
2559 * config/s390/s390-builtins.def: Use new macro B_GROUP to mark the start
2560 and end of HTM and VX builtins.
2561 (s390_asm_output_function_prefix): Declare hook.
2562 (s390_asm_declare_function_size): Likewise.
2563 * config/s390/s390-builtins.h (B_GROUP): Use macro.
2564 * config/s390/s390-opts.h: Add comment about processor_type usage.
2565 * config/s390/s390.h (TARGET_CPU_IEEE_FLOAT_P, TARGET_CPU_ZARCH_P),
2566 (TARGET_CPU_LONG_DISPLACEMENT_P, TARGET_CPU_EXTIMM_P, TARGET_CPU_DFP_P),
2567 (TARGET_CPU_Z10_P, TARGET_CPU_Z196_P, TARGET_CPU_ZEC12_P),
2568 (TARGET_CPU_HTM_P, TARGET_CPU_Z13_P, TARGET_CPU_VX_P),
2569 (TARGET_HARD_FLOAT_P, TARGET_LONG_DISPLACEMENT_P, TARGET_EXTIMM_P),
2570 (TARGET_DFP_P, TARGET_Z10_P, TARGET_Z196_P, TARGET_ZEC12_P),
2571 (TARGET_HTM_P, TARGET_Z13_P, TARGET_VX_P, TARGET_CPU_EXTIMM),
2572 (TARGET_CPU_DFP, TARGET_CPU_Z10, TARGET_CPU_Z196, TARGET_CPU_ZEC12),
2573 (TARGET_CPU_HTM, TARGET_CPU_Z13, TARGET_LONG_DISPLACEMENT),
2574 (TARGET_EXTIMM, TARGET_DFP, TARGET_Z10, TARGET_Z196, TARGET_ZEC12),
2575 (TARGET_Z13, TARGET_VX, S390_USE_TARGET_ATTRIBUTE),
2576 (S390_USE_ARCHITECTURE_MODIFIERS, SWITCHABLE_TARGET),
2577 (ASM_DECLARE_FUNCTION_SIZE, ASM_OUTPUT_FUNCTION_PREFIX): Likewise.
2578 * config/s390/vecintrin.h: Use vector definitions even if __VEC__ is
2580 (vec_all_nan): Rewrite as macro using statement expressions to avoid
2581 that the vector keyword needs to be defined when including the file.
2582 (vec_all_numeric): Likewise.
2583 (vec_any_nan): Likewise.
2584 (vec_any_numeric): Likewise.
2585 * config/s390/s390.c (s390_previous_fndecl): New static variable.
2586 (s390_set_current_function): New function.
2587 (s390_cost): Wrapper macro to allow defining the cost table pointer in
2589 (processor_table): Table for march= and mtune= parsing.
2590 (s390_init_builtins): Enable all builtins and types unconditionally.
2591 (s390_expand_builtin): Generate an error message if builtin is not
2592 supported by current options.
2593 Correct an error message.
2594 (s390_function_specific_restore): New function to set s390_cost.
2595 (s390_asm_output_machine_for_arch): New function for emitting .machine
2596 and .machinmode directives to the assembler file.
2597 (s390_asm_output_function_prefix): Likewise.
2598 (s390_asm_declare_function_size): Likewise.
2599 (s390_asm_output_function_label): Add mdebug output for feature testing.
2600 (s390_option_override): Move implementation into internal function.
2601 (s390_option_override_internal): Likewise.
2602 Implement option overriding based on current options.
2603 (s390_valid_target_attribute_inner_p): New function implementing target
2605 (s390_valid_target_attribute_tree): Likewise.
2606 (s390_valid_target_attribute_p): Likewise.
2607 (s390_reset_previous_fndecl): Likewise.
2608 (s390_set_current_function): Likewise.
2609 (TARGET_SET_CURRENT_FUNCTION): Provide target hook function.
2610 (TARGET_OPTION_VALID_ATTRIBUTE_P): Likewise.
2611 (TARGET_OPTION_RESTORE): Likewise.
2612 * doc/extend.texi: S390: Document target attribute and pragma.
2613 * config.in: Regenerated.
2614 * configure: Regenerated.
2615 * configure.ac: S390: Check for .machinemode and .machine in gas.
2616 S390: Check for architecture modifiers support in gas.
2618 2015-12-04 Kirill Yukhin <kirill.yukhin@intel.com>
2620 * doc/extend.texi ("simd"): Describe new flags.
2622 2015-12-04 Ilya Enkovich <enkovich.gnu@gmail.com>
2624 * config/i386/sse.md (<avx512>_store<mode>_mask): Fix
2625 operand checked for alignment.
2627 2015-12-04 Nathan Sidwell <nathan@acm.org>
2629 * config/nvptx/nvptx.c (write_one_arg): Deal with prologue
2630 emission too. Change 'no_arg_types' to 'prototyped'.
2631 (write_fn_proto): Use write_one_arg for stdarg, static chain &
2633 (nvptx_declare_function_name): Use write_one_arg for prologue copies.
2635 2015-12-04 Richard Biener <rguenther@suse.de>
2637 * tree-ssa-sccvn.c (sccvn_dom_walker): Add unreachable_dom
2638 member and initialize it.
2639 (sccvn_dom_walker::after_dom_children): Reset unreachable_dom
2641 (sccvn_dom_walker::before_dom_children): If unreachable_dom
2642 is set BB is not reachable either. Set unreachable_dom
2643 if not set and BB is unreachable.
2645 2015-12-04 Richard Biener <rguenther@suse.de>
2647 * bitmap.c (bitmap_find_bit): Guard the bitmap descriptor
2648 query with GATHER_STATISTICS.
2650 2015-12-04 Eric Botcazou <ebotcazou@adacore.com>
2653 * gimplify.c (struct gimplify_ctx): Turn boolean fields into 1-bit
2654 fields, add keep_stack and reorder them.
2655 (gimplify_bind_expr): Save gimplify_ctxp->keep_stack on entry then
2656 set it to false. Do not insert a stack save/restore pair if it has
2657 been set to true by the gimplification of the statements.
2658 Restore it to the saved value on exit if it is still false.
2659 (gimplify_vla_decl): Do not set gimplify_ctxp->save_stack here.
2660 (gimplify_call_expr) <BUILT_IN_ALLOCA[_WITH_ALIGN]>: New case. Set
2661 either save_stack or keep_stack depending on CALL_ALLOCA_FOR_VAR_P.
2662 * doc/extend.texi (Variable Length): Document new behavior.
2663 * doc/generic.texi (Blocks): Document new handling of VLAs.
2665 2015-12-04 Eric Botcazou <ebotcazou@adacore.com>
2666 Tristan Gingold <gingold@adacore.com>
2669 * config/aarch64/aarch64-protos.h (aarch64_output_probe_stack-range):
2671 * config/aarch64/aarch64.md: Declare UNSPECV_BLOCKAGE and
2672 UNSPEC_PROBE_STACK_RANGE.
2673 (blockage): New instruction.
2674 (probe_stack_range_<PTR:mode>): Likewise.
2675 * config/aarch64/aarch64.c (aarch64_emit_probe_stack_range): New
2677 (aarch64_output_probe_stack_range): Likewise.
2678 (aarch64_expand_prologue): Invoke aarch64_emit_probe_stack_range if
2679 static builtin stack checking is enabled.
2680 * config/aarch64/aarch64-linux.h (STACK_CHECK_STATIC_BUILTIN):
2683 2015-12-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2686 * config/arm/arm.md (*call_mem): Delete pattern.
2687 (*call_value_mem): Likewise.
2688 * config/arm/arm.c (output_call_mem): Delete.
2689 * config/arm/arm-protos.h (output_call_mem): Delete prototype.
2691 2015-12-04 Bin Cheng <bin.cheng@arm.com>
2693 * config/aarch64/atomics.md (atomic_store<mode>): Use predicate
2694 aarch64_sync_memory_operand.
2696 2015-12-04 Jakub Jelinek <jakub@redhat.com>
2699 * config/i386/i386.c (canonicalize_vector_int_perm): New function.
2700 (expand_vec_perm_1): Use it and recurse if everything else
2701 failed. Use nd.perm instead of perm2.
2702 (expand_vec_perm_even_odd_1): If testing_p, use gen_raw_REG
2703 instead of gen_lowpart for the target.
2704 (ix86_expand_vec_perm_const_1): Use canonicalize_vector_int_perm
2705 and recurse if everything else failed.
2707 2015-12-04 Richard Biener <rguenther@suse.de>
2710 * builtins.c (get_pointer_alignment_1): Take care of byte to
2711 bit alignment computation overflow.
2713 2015-12-04 Richard Biener <rguenther@suse.de>
2716 * match.pd: Guard ~X cmp ~Y -> Y cmp X and the variant with
2717 a constant with single_use.
2719 2015-12-04 Bin Cheng <bin.cheng@arm.com>
2720 Jiong Wang <jiong.wang@arm.com>
2722 * config/aarch64/aarch64.c (aarch64_legitimize_address): legitimize
2723 address expressions like Ra + Rb + CONST and Ra + Rb<<SCALE + CONST.
2725 2015-12-03 Jan Hubicka <hubicka@ucw.cz>
2727 * alias.c (alias_set_subset_of, alias_sets_must_conflict_p):
2728 Add short circuit for !flag_strict_aliasing
2729 (get_alias_set): Remove flag_strict_aliasing check.
2730 (new_alias_set): Likewise.
2732 2015-12-03 Evandro Menezes <e.menezes@samsung.com>
2734 * config/aarch64/aarch64-cores.def: Use the Exynos M1 cost model.
2735 * config/aarch64/aarch64.c (exynosm1_addrcost_table): New variable.
2736 (exynosm1_regmove_cost): Likewise.
2737 (exynosm1_vector_cost): Likewise.
2738 (exynosm1_tunings): Likewise.
2739 * config/arm/aarch-cost-tables.h (exynosm1_extra_costs): Likewise.
2740 * config/arm/arm.c (arm_exynos_m1_tune): Likewise.
2742 2015-12-03 Alan Lawrence <alan.lawrence@arm.com>
2743 Richard Biener <richard.guenther@gmail.com>
2745 * cfgexpand.c (pass_expand::execute): Replace call to
2746 redirect_edge_var_map_destroy with redirect_edge_var_map_empty.
2747 * tree-ssa.c (delete_tree_ssa): Likewise.
2748 * function.c (set_cfun): Call redirect_edge_var_map_empty.
2749 * passes.c (execute_one_ipa_transform_pass, execute_one_pass): Likewise.
2750 * tree-ssa.h (redirect_edge_var_map_destroy): Remove.
2751 (redirect_edge_var_map_empty): New.
2752 * tree-ssa.c (redirect_edge_var_map_destroy): Remove.
2753 (redirect_edge_var_map_empty): New.
2755 2015-12-03 Jeff Law <law@redhat.com>
2757 PR tree-optimization/68599
2758 * loop-init.c (rtl_loop_init): Set LOOPS_HAVE_RECORDED_EXITS
2759 in call to loop_optimizer_init.
2760 * loop-iv.c (get_simple_loop_desc): Only allow unsafe loop
2761 optimization to drop the assumptions/infinite notations if
2762 the loop has a single exit.
2764 2015-12-03 Richard Sandiford <richard.sandiford@arm.com>
2766 * doc/md.texi (vec_load_lanes@var{m}@var{n}): Document that
2767 the pattern cannot FAIL.
2768 (vec_store_lanes@var{m}@var{n}): Likewise.
2769 (maskload@var{m}@var{n}): Likewise.
2770 (maskstore@var{m}@var{n}): Likewise. Fix a cut-&-paste error
2771 in the name of the pattern.
2772 (rsqrt@var{m}2): Document that mode m must be a scalar or vector
2773 floating-point mode and that all operands have that mode.
2774 (fmin@var{m}3, fmax@var{m}3): Likewise. Document that the
2775 pattern cannot FAIL.
2776 (sqrt@var{m}2): Document that mode m must be a scalar or vector
2777 floating-point mode, that all operands have that mode, and that
2778 the patterns cannot FAIL. Remove previous documentation referring
2779 to @code{double} and @code{float}.
2780 (fmod@var{m}3, remainder@var{m}3, cos@var{m}2, sin@var{m}2)
2781 (sincos@var{m}3, log@var{m}2, pow@var{m}3, atan2@var{m}3)
2782 (copysign@var{m}3): Likewise.
2783 (exp@var{m}2): Likewise. Explicitly state the base.
2784 (floor@var{m}2): As for sqrt@var{m}2, but also specify the operands.
2785 (btrunc@var{m}2, rint@var{m}2): Likewise.
2786 (round@var{m}2): Likewise. Fix incorrect description of rounding
2788 (ceil@var{m}2): As for round@var{m}2.
2789 (nearbyint@var{m}2): As for floor@var{m}2, but also mention that
2790 the instruction must not raise an inexact condition.
2791 (scalb@var{m}3): Document previously-undocumented pattern
2792 (ldexp@var{m}3, tan@var{m}2, asin@var{m}2, acos@var{m}2)
2793 (atan@var{m}2, expm1@var{m}2, exp10@var{m}2, exp2@var{m}2)
2794 (log1p@var{m}2, log10@var{m}2, log2@var{m}2, logb@var{m}2)
2795 (significand@var{m}2): Likewise.
2796 (ffs@var{m}2): Fix the description of the modes, so that operand 1 has
2797 mode m and operand 0 is defined more freely. Document that @var{m}
2798 can be a scalar or vector integer mode and that the pattern is not
2800 (clz@var{m}2, ctz@var{m}2, popcount@var{m}2, parity@var{m}2): Likewise.
2801 (clrsb@var{m}2): Likewise, except that the description of the
2802 mode was missing in this case.
2804 2015-12-03 Richard Sandiford <richard.sandiford@arm.com>
2806 * internal-fn.def (RSQRT): New function.
2807 * optabs.def (rsqrt_optab): New optab.
2808 * doc/md.texi (rsqrtM2): Document.
2809 * target.def (builtin_reciprocal): Replace gcall argument with
2810 a function decl. Restrict hook to machine functions.
2811 * doc/tm.texi: Regenerate.
2812 * targhooks.h (default_builtin_reciprocal): Update prototype.
2813 * targhooks.c (default_builtin_reciprocal): Likewise.
2814 * tree-ssa-math-opts.c: Include internal-fn.h.
2815 (internal_fn_reciprocal): New function.
2816 (pass_cse_reciprocals::execute): Call it, and build a call to an
2817 internal function on success. Only call targetm.builtin_reciprocal
2818 for machine functions.
2819 * config/aarch64/aarch64-protos.h (aarch64_builtin_rsqrt): Remove
2821 * config/aarch64/aarch64-builtins.c (aarch64_expand_builtin_rsqrt):
2822 Rename aarch64_rsqrt_<mode>2 to rsqrt<mode>2.
2823 (aarch64_builtin_rsqrt): Remove md_fn argument and only handle
2825 * config/aarch64/aarch64.c (use_rsqrt_p): New function.
2826 (aarch64_builtin_reciprocal): Replace gcall argument with a
2827 function decl. Use use_rsqrt_p. Remove optimize_size check.
2828 Only handle machine functions. Update call to aarch64_builtin_rsqrt.
2829 (aarch64_optab_supported_p): New function.
2830 (TARGET_OPTAB_SUPPORTED_P): Define.
2831 * config/aarch64/aarch64-simd.md (aarch64_rsqrt_<mode>2): Rename to...
2832 (rsqrt<mode>2): ...this.
2833 * config/i386/i386.c (use_rsqrt_p): New function.
2834 (ix86_builtin_reciprocal): Replace gcall argument with a
2835 function decl. Use use_rsqrt_p. Remove optimize_insn_for_size_p
2836 check. Only handle machine functions.
2837 (ix86_optab_supported_p): Handle rsqrt_optab.
2838 * config/rs6000/rs6000.c (TARGET_OPTAB_SUPPORTED_P): Define.
2839 (rs6000_builtin_reciprocal): Replace gcall argument with a
2840 function decl. Remove optimize_insn_for_size_p check.
2841 Only handle machine functions.
2842 (rs6000_optab_supported_p): New function.
2844 2015-12-03 Bernd Schmidt <bschmidt@redhat.com>
2848 * config/i386/i386.c (ix86_mitigate_rop): Don't call
2849 compute_bb_for_insn again. Call df_insn_rescan_all.
2850 * config/i386/i386.md (set_got_rex64): Override modrm_class.
2852 * regrename.c (build_def_use): Ignore stack regs if regstack_completed.
2854 2015-12-03 Nathan Sidwell <nathan@acm.org>
2856 * config/nvptx/nvptx-protos.h (npvptx_section_from_addr_space): Delete.
2857 * config/nvptx/nvptx.c (enum nvptx_data_area): New.
2858 (SYMBOL_DATA_AREA, SET_SYMBOL_DATA_AREA): New defines.
2859 (nvptx_option_override): Set data ares for worker vars.
2860 (nvptx_addr_space_from_sym): Delete.
2861 (nvptx_encode_section_info): New.
2862 (section_for_sym, section_for_decl): New.
2863 (nvptx_maybe_convert_symbolic_operand): Get data area from symbol flags.
2864 (nvptx_section_from_addr_space): Delete.
2865 (nvptx_section_for_decl): Delete.
2866 (nvptx_output_aligned, nvptx_declare_object_name,
2867 nvptx_assemble_undefined_decl): Use section_for_decl, remove
2869 (nvptx_print_operand): Add 'D', adjust 'A'.
2870 (nvptx_expand_worker_addr): Adjust unspec generation.
2871 (TARGET_ENCODE_SECTION_INFO): Override.
2872 * config/nvptx/nvptx.h (ADDR_SPACE_GLOBAL, ADDR_SPACE_SHARED,
2873 ADDR_SPACE_CONST, ADDR_SPACE_LOCAL, ADDR_SPACE_PARAM): Delete.
2874 * config/nvptx/nvptx.md (UNSPEC_FROM_GLOBAL, UNSPEC_FROM_LOCAL,
2875 UNSPEC_FROM_PARAM, UNSPEC_FROM_SHARED, UNSPEC_FROM_CONST,
2876 UNSPEC_TO_GLOBAL, UNSPEC_TO_LOCAL, UNSPEC_TO_PARAM,
2877 UNSPEC_TO_SHARED, UNSPEC_TO_CONST): Delete.
2878 (UNSPEC_TO_GENERIC): New.
2879 (nvptx_register_or_symbolic_operand): Delete.
2880 (cvt_code, cvt_name, cvt_str): Delete.
2881 (convaddr_<cvt_name><mode> [P]): Delete.
2882 (convaddr_<mode> [P]): New.
2884 2015-12-03 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2886 PR rtl-optimization/68624
2887 * ifcvt.c (noce_try_cmove_arith): Check clobbers of temp regs in both
2888 blocks if they exist and simplify the logic choosing the order to emit
2891 2015-12-03 Richard Biener <rguenther@suse.de>
2893 PR tree-optimization/66051
2894 * tree-vect-slp.c (vect_build_slp_tree_1): Remove restriction
2895 on load group size. Do not pass in vectorization_factor.
2896 (vect_transform_slp_perm_load): Do not require any permute support.
2897 (vect_build_slp_tree): Do not pass in vectorization factor.
2898 (vect_analyze_slp_instance): Do not compute vectorization
2899 factor estimate. Use vector size instead of vectorization factor
2900 estimate to split store groups for BB vectorization.
2902 2015-12-03 Ilya Enkovich <enkovich.gnu@gmail.com>
2904 * cfgexpand.c (expand_gimple_stmt_1): Return statement with
2905 DECL as return value is allowed to have NULL bounds.
2907 2015-12-03 Tom de Vries <tom@codesourcery.com>
2909 * graphite-isl-ast-to-gimple.c (binary_op_to_tree)
2910 (gcc_expression_from_isl_expr_op): Guard isl_ast_op_zdiv_r usage with
2911 HAVE_ISL_OPTIONS_SET_SCHEDULE_SERIALIZE_SCCS.
2913 2015-12-03 Richard Biener <rguenther@suse.de>
2915 PR tree-optimization/67800
2916 PR tree-optimization/68333
2917 * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Restore
2918 restriction to reduction contexts but allow SLP reductions as well.
2919 (vect_recog_sad_pattern): Likewise.
2920 (vect_recog_widen_sum_pattern): Likewise.
2922 2015-12-03 Richard Biener <rguenther@suse.de>
2924 PR tree-optimization/68639
2925 * tree-vect-data-refs.c (dr_group_sort_cmp): Split groups
2926 belonging to different loops.
2927 (vect_analyze_data_ref_accesses): Likewise.
2929 2015-12-02 Kirill Yukhin <kirill.yukhin@intel.com>
2931 * config/i386/sse.md (define_insn "vec_extract_hi_<mode>_maskm"):
2932 Remove "prefix_extra".
2933 (define_insn "vec_extract_hi_<mode>_mask"): New.
2934 (define_insn "vec_extract_hi_<mode>"): Remove masking.
2936 2015-12-02 Jan Hubicka <hubicka@ucw.cz>
2938 * ipa-pure-const.c (ignore_edge_for_pure_const): New function.
2939 (propagate_pure_const): Use it; fix comments and optimize loops.
2941 2015-12-02 Jan Hubicka <hubicka@ucw.cz>
2943 * ipa-pure-const.c (ignore_edge): Rename to ...
2944 (ignore_edge_for_nothrow) ... this one; also ignore eges to
2945 interposable functions or ones that can not throw.
2946 (propagate_nothrow): Fix handling of availability.
2948 2015-12-02 Jan Hubicka <hubicka@ucw.cz>
2951 * cgraphunit.c (cgraph_node::analyze): Set can_throw_external.
2953 2015-12-02 Aditya Kumar <aditya.k7@samsung.com>
2954 Sebastian Pop <s.pop@samsung.com>
2956 * graphite-isl-ast-to-gimple.c (binary_op_to_tree): Handle
2958 (gcc_expression_from_isl_expr_op): Same.
2960 2015-12-02 Aditya Kumar <aditya.k7@samsung.com>
2961 Sebastian Pop <s.pop@samsung.com>
2963 * graphite-isl-ast-to-gimple.c (copy_bb_and_scalar_dependences): Check
2964 that insertion point is still in the region.
2966 2015-12-02 Aditya Kumar <aditya.k7@samsung.com>
2967 Sebastian Pop <s.pop@samsung.com>
2969 PR tree-optimization/68550
2970 * graphite-isl-ast-to-gimple.c (copy_loop_phi_nodes): Add dump.
2971 (copy_bb_and_scalar_dependences): Do not code generate loop peeled
2974 2015-12-02 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
2976 * configure.ac: Check assembler support for R_PPC64_ENTRY relocation.
2977 * configure: Regenerate.
2978 * config.in: Regenerate.
2979 * config/rs6000/rs6000.c (rs6000_global_entry_point_needed_p): New
2981 (rs6000_output_function_prologue): Use it instead of checking
2982 cfun->machine->r2_setup_needed. Use internal labels instead of
2983 GNU as local label extension. Handle ELFv2 large code model.
2984 (rs6000_output_mi_thunk): Do not set cfun->machine->r2_setup_needed.
2985 (rs6000_elf_declare_function_name): Handle ELFv2 large code model.
2987 2015-12-02 Jakub Jelinek <jakub@redhat.com>
2990 * optabs.c (expand_doubleword_popcount, expand_doubleword_parity):
2992 (expand_unop): Use them.
2994 2015-12-02 Marek Polacek <polacek@redhat.com>
2997 * tree.c (nonnull_arg_p): Allow OFFSET_TYPE.
2999 2015-12-02 Nathan Sidwell <nathan@acm.org>
3001 * config/nvptx/nvptx.c (enum nvptx_shuffle_kind): New. Absorb
3003 (nvptx_gen_shuffle, nvptx_print_operand, nvptx_expand_shuffle): Adjust.
3005 2015-12-02 Aditya Kumar <aditya.k7@samsung.com>
3006 Sebastian Pop <s.pop@samsung.com>
3008 * graphite-dependences.c (scop_get_reads): Add extra dumps.
3009 (scop_get_must_writes): Same.
3010 (scop_get_may_writes): Same.
3011 (compute_deps): Same.
3012 * graphite-sese-to-poly.c (bounds_are_valid): New.
3013 (pdr_add_data_dimensions): Call bounds_are_valid.
3015 2015-12-02 Aditya Kumar <aditya.k7@samsung.com>
3016 Sebastian Pop <s.pop@samsung.com>
3018 * common.opt (flag_loop_optimize_isl): Renamed flag_loop_nest_optimize.
3019 * graphite-poly.c (apply_poly_transforms): Same.
3020 * graphite.c (gate_graphite_transforms): Same.
3021 * toplev.c (process_options): Same.
3023 2015-12-02 Eric Botcazou <ebotcazou@adacore.com>
3025 * config/mips/mips.c (mips_emit_probe_stack_range): Adjust.
3026 (mips_output_probe_stack_range): Rotate the loop and simplify.
3028 2015-12-02 David Sherwood <david.sherwood@arm.com>
3030 * config/aarch64/aarch64.md: New pattern.
3031 * config/aarch64/aarch64-simd.md: Likewise.
3032 * config/aarch64/iterators.md: New unspecs, iterators.
3034 2015-12-02 Pierre-Marie de Rodat <derodat@adacore.com>
3036 * dwarf2out.c (dwar2out_var_location): In addition to notes,
3037 process indirect calls whose target is compile-time known.
3038 Enhance pattern matching to get the SYMBOL_REF they embed.
3039 (gen_subprogram_die): Handle such calls.
3040 * final.c (final_scan_insn): For call instructions, invoke the
3041 var_location debug hook only after the call has been emitted.
3043 2015-12-02 Tom de Vries <tom@codesourcery.com>
3045 * gimplify.c (enum gimplify_omp_var_data): Add enum value
3047 (oacc_default_clause): Fix default for scalars in oacc kernels.
3048 (gimplify_adjust_omp_clauses_1): Handle GOVD_MAP_FORCE.
3050 2015-12-02 Tom de Vries <tom@codesourcery.com>
3052 * omp-low.c (install_var_field, scan_sharing_clauses): Add and handle
3053 parameter base_pointers_restrict.
3054 (omp_target_base_pointers_restrict_p): New function.
3055 (scan_omp_target): Call scan_sharing_clauses with
3056 base_pointers_restrict arg.
3058 2015-12-02 Nathan Sidwell <nathan@acm.org>
3060 * config/nvptx/nvptx-protos.h (nvptx_output_mov_insn): Declare.
3061 (nvptx_underlying_object_mode): Delete.
3062 * config/nvptx/nvptx.c (nvptx_underlying_object_mode): Delete.
3064 (nvptx_declare_function_name): Use output_reg. Remove punning buffer.
3065 (nvptx_output_mov_insn): New.
3066 (nvptx_print_operand): Separate SUBREG handling, remove 'f' case,
3067 Use output_reg. Merge 't' and 'u' handling.
3068 * config/nvptx/nvptx.h (NVPTX_PUNNING_BUFFER_REGNUM): Delete.
3069 (struct machine_function): Remvoe punning_buffer_size.
3070 (REGISTER_NAMES): Remove %punbuffer.
3071 * config/nvptx/nvptx.md (UNSPEC_CPLX_LOWPART,
3072 UNSPEC_CPLX_HIGHPART): Delete.
3073 (*mov<mode>_insn [QHSDIM): Remove unnecessary constraints, use
3074 nvptx_output_mov_insn.
3075 (*mov<mode>_insn [SDFM): Reorder constraints to match integer moc.
3076 Use nvptx_output_mov_insn.
3077 (highpartscsf2, set_highpartscsf2, lowpartscsf2, set_lowpartscsf2):
3079 (mov<mode> [SDCM]): Delete.
3081 2015-12-02 Richard Biener <rguenther@suse.de>
3083 * tree.h (tree_invariant_p): Declare.
3084 * tree.c (tree_invariant_p): Export.
3085 * genmatch.c (dt_simplify::gen_1): For GENERIC code-gen never
3086 create SAVE_EXPRs but reject patterns if we would need to.
3088 2015-12-02 Tom de Vries <tom@codesourcery.com>
3090 * tree-ssa-structalias.c (find_func_aliases_for_builtin_call)
3091 (find_func_clobbers, ipa_pta_execute): Handle BUILT_IN_GOACC_PARALLEL.
3093 2015-12-02 Segher Boessenkool <segher@kernel.crashing.org>
3095 * config/rs6000/rs6000.md (cstore_si_as_di): New expander.
3096 (cstore<mode>4): Use it.
3098 2015-12-02 Richard Biener <rguenther@suse.de>
3100 PR tree-optimization/68625
3101 * tree-cfgcleanup.c (cleanup_tree_cfg_bb): Do not call
3102 cleanup_control_flow_bb.
3103 (cleanup_tree_cfg_1): First perform cleanup_control_flow_bb
3104 on all BBs, then cleanup_tree_cfg_bb and finally iterate
3105 over the worklist doing both.
3107 2015-12-02 Richard Sandiford <richard.sandiford@arm.com>
3109 PR tree-optimization/68432
3110 * coretypes.h (optimization_type): New enum.
3111 * doc/tm.texi.in (TARGET_OPTAB_SUPPORTED_P): New hook.
3112 * doc/tm.texi: Regenerate.
3113 * target.def (optab_supported_p): New hook.
3114 * targhooks.h (default_optab_supported_p): Declare.
3115 * targhooks.c (default_optab_supported_p): New function.
3116 * predict.h (function_optimization_type): Declare.
3117 (bb_optimization_type): Likewise.
3118 * predict.c (function_optimization_type): New function.
3119 (bb_optimization_type): Likewise.
3120 * optabs-query.h (convert_optab_handler): Define an overload
3121 that takes an optimization type.
3122 (direct_optab_handler): Likewise.
3123 * optabs-query.c (convert_optab_handler): Likewise.
3124 (direct_optab_handler): Likewise.
3125 * internal-fn.h (direct_internal_fn_supported_p): Take an
3126 optimization_type argument.
3127 * internal-fn.c (direct_optab_supported_p): Likewise.
3128 (multi_vector_optab_supported_p): Likewise.
3129 (direct_internal_fn_supported_p): Likewise.
3130 * builtins.c (replacement_internal_fn): Update call to
3131 direct_internal_fn_supported_p.
3132 * gimple-match-head.c (build_call_internal): Likewise.
3133 * tree-vect-patterns.c (vect_recog_pow_pattern): Likewise.
3134 * tree-vect-stmts.c (vectorizable_internal_function): Likewise.
3135 * tree.c (maybe_build_call_expr_loc): Likewise.
3136 * config/i386/i386.c (ix86_optab_supported_p): New function.
3137 (TARGET_OPTAB_SUPPORTED_P): Define.
3138 * config/i386/i386.md (asinxf2): Remove optimize_insn_for_size_p check.
3139 (asin<mode>2, acosxf2, acos<mode>2, log1pxf2, log1p<mode>2)
3140 (expNcorexf3, expxf2, exp<mode>2, exp10xf2, exp10<mode>2, exp2xf2)
3141 (exp2<mode>2, expm1xf2, expm1<mode>2, ldexpxf3, ldexp<mode>3)
3142 (scalbxf3, scalb<mode>3, rint<mode>2, round<mode>2)
3143 (<rounding_insn>xf2, <rounding_insn><mode>2): Likewise.
3145 2015-12-02 Richard Sandiford <richard.sandiford@arm.com>
3147 * Makefile.in (GENSUPPORT_H): New macro.
3148 (build/gensupport.o, build/read-rtl.o, build/genattr.o)
3149 (build/genattr-common.o, build/genattrtab.o, build/genautomata.o)
3150 (build/gencodes.o, build/genconditions.o, build/genconfig.o)
3151 (build/genconstants.o, build/genextract.o, build/genflags.o)
3152 (build/gentarget-def.o): Use it.
3153 (build/genemit.o): Likewise. Depend on internal-fn.def.
3154 * genopinit.c: Move block comment to optabs.def.
3155 (optab_tag, optab_def): Move to gensupport.h
3156 (pattern): Likewise, renaming to optab_pattern.
3157 (match_pattern): Move to gensupport.c
3158 (gen_insn): Use find_optab.
3159 (patterns, pattern_cmp): Replace pattern with optab_pattern.
3160 (main): Likewise. Use num_optabs.
3161 * optabs.def: Add comment that was previously in genopinit.c.
3162 * gensupport.h (optab_tag): Moved from genopinit.c
3163 (optab_def): Likewise, expanding commentary.
3164 (optab_pattern): Likewise, after renaming from pattern.
3165 (optabs, num_optabs, find_optab): Declare.
3166 * gensupport.c (optabs): Moved from genopinit.c.
3167 (num_optabs): New variable.
3168 (match_pattern): Moved from genopinit.c.
3169 (find_optab): New function, extracted from genopinit.c:gen_insn.
3170 * genemit.c (nofail_optabs): New variable.
3171 (emit_c_code): New function.
3172 (gen_expand): Check whether the instruction is an optab that isn't
3173 allowed to fail. Call emit_c_code.
3174 (gen_split): Call emit_c_code here too.
3175 (main): Initialize nofail_optabs. Don't emit FAIL and DONE here.
3177 2015-12-02 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
3179 * config/s390/predicates.md (const_mask_operand): New predicate.
3180 * config/s390/s390-builtins.def: Set a smaller bitmask
3182 * config/s390/vector.md: Change predicate from immediate_operand
3183 to either const_int_operand or const_mask_operand. Add special
3184 insn conditions on patterns which have to exclude certain values.
3185 * config/s390/vx-builtins.md: Likewise.
3187 2015-12-02 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
3189 * config/s390/vector.md ("*vec_set<mode>"): Change shift count
3192 2015-12-02 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
3194 * config/s390/s390-builtin-types.def: New builtin types added.
3195 * config/s390/s390-builtins.def: Add s390_vec_splat_* definitions.
3196 * config/s390/s390.c (s390_expand_builtin): Always truncate
3197 constants to the mode in the pattern.
3198 * config/s390/vecintrin.h: Let the vec_splat_* macros point to the
3199 respective builtin __builtin_s390_vec_splat_*.
3201 2015-12-02 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
3203 * config/s390/s390-builtin-types.def: Sort builtin types.
3205 2015-12-02 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
3207 * config/s390/s390-c.c (s390_get_vstring_flags): Invert the
3208 condition for the RT flag.
3210 2015-12-02 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
3212 * config/s390/constraints.md ("jKK"): New constraint.
3213 * config/s390/s390.c (tm-constrs.h): Include for
3214 satisfies_constraint_*.
3215 (s390_legitimate_constant_p): Allow jKK constants. Use
3216 satisfies_constraint_* also for the others.
3217 (legitimate_reload_vector_constant_p): Likewise.
3218 (print_operand): Allow h output modifier on vectors.
3219 * config/s390/vector.md ("mov<mode>"): Add vrepi.
3221 2015-12-02 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
3223 * config/s390/vector.md ("*vec_splats<mode>"): Fix constraint
3226 2015-12-02 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
3228 * config/s390/s390.md ("bswap<mode>2"): Add support for strv and strvg.
3229 ("bswaphi2"): New pattern.
3230 New splitter for HI reg-reg bswap.
3232 2015-11-27 Jiri Engelthaler <engycz@gmail.com>
3235 * opts-common.c (prune_options): Don't ignore -fdiagnostics-color
3236 if it is the first parameter.
3238 2015-12-01 Richard Sandiford <richard.sandiford@arm.com>
3240 PR tree-optimization/68577
3241 * tree-vect-stmts.c (simple_integer_narrowing): New function.
3242 (vectorizable_call): Restrict internal function handling
3243 to NONE and NARROW cases, using simple_integer_narrowing
3244 to test for the latter. Add cost of narrowing operation
3245 and insert it where necessary.
3247 2015-12-01 Andreas Tobler <andreast@gcc.gnu.org>
3249 * config/rs6000/freebsd64.h (ELFv2_ABI_CHECK): Add new macro.
3250 (SUBSUBTARGET_OVERRIDE_OPTIONS): Use it to decide whether to set
3251 rs6000_current_abi to ABI_AIX or ABI_ELFv2.
3253 2015-12-01 Nathan Sidwell <nathan@acm.org>
3255 * config/nvptx/nvptx-protos.h (nvptx_output_aligned_decl): Declare.
3256 * config/nvptx/nvptx.h (ASM_OUTPUT_ALIGNED_DECL_COMMON,
3257 ASM_OUTPUT_ALIGNED_DECL_LOCAL): Forward to nvptx_output_aligned_decl.
3258 * config/nvptx/nvptx.c (write_fn_marker, write_var_marker): New.
3259 (write_fn_proto, write_fn_proto_from_insn): Call write_fn_marker.
3260 (init_output_initializer): Call write_var_marker.
3261 (nvptx_output_aligned_decl): New.
3262 (nvptx_assemble_undefined_decl, nvptx_file_end): Call write_var_marker.
3264 2015-12-01 Jan Hubicka <hubicka@ucw.cz>
3266 * c-common.c (parse_optimize_options): Do not silently ignore
3267 -fstrict-aliasing changes.
3269 2015-12-01 Jan Hubicka <hubicka@ucw.cz>
3271 * lto-streamer-out.c (hash_tree): Do not stream TYPE_ALIAS_SET.
3272 * tree-streamer-out.c (pack_ts_type_common_value_fields): Do not
3273 stream TYPE_ALIAS_SET.
3274 * tree-streamer-in.c (unpack_ts_type_common_value_fields): Do not
3275 stream TYPE_ALIAS_SET.
3277 2015-12-01 Nathan Sidwell <nathan@acm.org>
3279 * config/nvptx/nvptx.c (nvptx_function_arg_advance): Don't
3282 2015-12-01 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
3284 * config/rs6000/rs6000.c (const_load_sequence_p): Handle extra
3285 indirection for large and small code models.
3286 (adjust_vperm): Likewise.
3288 2015-12-01 Julian Brown <julian@codesourcery.com>
3289 Cesar Philippidis <cesar@codesourcery.com>
3290 James Norris <James_Norris@mentor.com>
3292 * gimple-pretty-print.c (dump_gimple_omp_target): Add host_data support.
3293 * gimple.h (gf_mask): Add GF_OMP_TARGET_KIND_OACC_HOST_DATA.
3294 (is_gimple_omp_oacc): Add support for above.
3295 * gimplify.c (omp_region_type): Add ORT_ACC_HOST_DATA.
3296 (omp_notice_variable): Diagnose undefined implicit uses of
3297 use_device variables in offloaded regions.
3298 (gimplify_scan_omp_clauses): Add host_data, use_device
3299 support. Diagnose undefined mapping of use_device variables in
3301 (gimplify_omp_workshare): Add host_data support.
3302 (gimplify_expr): Likewise.
3303 * omp-builtins.def (BUILT_IN_GOACC_HOST_DATA): New.
3304 * omp-low.c (lookup_decl_in_outer_ctx)
3305 (maybe_lookup_decl_in_outer_ctx): Add optional argument to skip
3307 (scan_sharing_clauses): Support use_device.
3308 (check_omp_nesting_restrictions): Support host_data.
3309 (expand_omp_target): Support host_data.
3310 (lower_omp_target): Skip over outer host_data regions when looking
3311 up decls. Support use_device.
3312 (make_gimple_omp_edges): Support host_data.
3313 * tree-nested.c (convert_nonlocal_omp_clauses): Add use_device clause.
3315 2015-12-01 Marek Polacek <polacek@redhat.com>
3318 * cgraphunit.c (check_global_declaration): Only depend
3319 on TREE_THIS_VOLATILE for VAR_DECLs.
3321 2015-12-01 Richard Sandiford <richard.sandiford@arm.com>
3323 PR tree-optimization/68474
3324 * tree-call-cdce.c (use_internal_fn): Protect call to
3325 gen_shrink_wrap_conditions.
3327 2015-12-01 Christian Bruel <christian.bruel@st.com>
3330 * config/arm/arm.opt (unaligned_access): Save.
3331 * config/arm/arm-c.c (__ARM_FEATURE_UNALIGNED): Conditionally define.
3332 * config/arm/arm.c (arm_option_override): Move unaligned_access setting.
3333 (arm_option_override_internal): ... here.
3334 * config/arm/arm.h (TARGET_32BIT_P): New macro.
3336 2015-12-01 Richard Biener <rguenther@suse.de>
3338 PR tree-optimization/68379
3339 * tree-vect-stmts.c (vectorizable_load): For BB vectorization
3340 always base loads on the first used DR of a group.
3341 * tree-vect-data-refs.c (vect_slp_analyze_and_verify_node_alignment):
3342 Compute alignment of the first scalar element unconditionally.
3344 2015-12-01 Richard Biener <rguenther@suse.de>
3347 * genmatch.c (struct capture_info): Add match_use_count.
3348 (capture_info::walk_match): Increment match_use_count.
3349 (dt_simplify::gen_1): For GENERIC, only wrap multi-use
3350 replacements in a save_expr if they occur more often than
3351 in the original expression.
3353 2015-12-01 Richard Biener <rguenther@suse.de>
3356 * ipa-split.c (split_function): Handle main part not returning.
3358 2015-12-01 Ilya Enkovich <enkovich.gnu@gmail.com>
3361 * tree-vect-stmts.c (vect_init_vector): Cast boolean
3362 scalars to a proper value before building a vector.
3364 2015-12-01 Richard Sandiford <richard.sandiford@arm.com>
3366 * genattrtab.c (check_attr_test): Take an attr_desc instead of
3367 an is_const flag. Put the file_location argument first.
3368 Update recursive calls. Improve error messages.
3369 (check_attr_value): Take a file location and use it instead
3370 of attr->loc. Improve error messages. Update calls to
3372 (check_defs): Update call to check_attr_value.
3373 (make_canonical): Likewise.
3374 (gen_attr): Likewise.
3376 (gen_insn_reserv): Update call to check_attr_test.
3378 2015-12-01 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
3380 * config/aarch64/aarch64.c (aarch64_builtin_reciprocal): Fix typo.
3382 2015-12-01 Richard Biener <rguenther@suse.de>
3385 * match.pd: Merge (eq @0 @0) and (ge/le @0 @0) patterns.
3387 2015-12-01 Jan Hubicka <hubicka@ucw.cz>
3389 * ipa-devirt.c (type_with_linkage_p, type_in_anonymous_namespace_p,
3390 odr_type_p): Move to ...
3391 * ipa-utils.h (type_with_linkage_p, type_in_anonymous_namespace_p,
3392 odr_type_p): here; miscro-optimize.
3394 2015-12-01 Bin Cheng <bin.cheng@arm.com>
3396 PR tree-optimization/68529
3397 * tree-ssa-loop-niter.c (number_of_iterations_ne): Add new param.
3398 Compute no-overflow information for control iv.
3399 (number_of_iterations_lt, number_of_iterations_le): Add new param.
3400 (number_of_iterations_cond): Pass new argument to above functions.
3402 2015-11-30 Jan Hubicka <hubicka@ucw.cz>
3404 * ipa-inline-transform.c (inline_call): Drop -fstrict-aliasing when
3405 inlining -fno-strict-aliasing into -fstrict-aliasing body.
3407 2015-11-30 Aditya Kumar <aditya.k7@samsung.com>
3408 Sebastian Pop <s.pop@samsung.com>
3410 PR tree-optimization/68565
3411 * graphite-isl-ast-to-gimple.c (binary_op_to_tree): Early return on
3412 codegen_error. Fail when rhs of division operations is integer_zerop.
3413 (ternary_op_to_tree): Early return on codegen_error.
3414 (unary_op_to_tree): Same.
3415 (nary_op_to_tree): Same.
3416 (gcc_expression_from_isl_expr_op): Same.
3417 (gcc_expression_from_isl_expression): Same.
3418 (graphite_create_new_loop): On codegen_error continue generating
3420 (graphite_create_new_loop_guard): Same.
3421 (build_iv_mapping): Same.
3422 (graphite_create_new_guard): Same.
3424 2015-11-30 Aditya Kumar <aditya.k7@samsung.com>
3425 Sebastian Pop <s.pop@samsung.com>
3427 * graphite-isl-ast-to-gimple.c: Fix dump messages.
3428 * graphite-scop-detection.c: Same.
3429 * graphite-sese-to-poly.c (isl_id_for_ssa_name): Do not call get_name.
3431 2015-11-30 Cesar Philippidis <cesar@codesourcery.com>
3433 * tree-nested.c (convert_nonlocal_omp_clauses): Add support for
3434 OMP_CLAUSE_{NUM_GANGS,NUM_VECTORS,VECTOR_LENGTH,SEQ}.
3435 (convert_local_omp_clauses): Likewise.
3437 2015-11-30 Tom de Vries <tom@codesourcery.com>
3439 PR tree-optimization/46032
3440 * tree-ssa-structalias.c (find_func_aliases_for_call_arg): New function,
3442 (find_func_aliases_for_call): ... here.
3443 (find_func_aliases_for_builtin_call, find_func_clobbers): Handle
3444 BUILT_IN_GOMP_PARALLEL.
3445 (ipa_pta_execute): Same. Handle node->parallelized_function as a local
3448 2015-11-30 Jakub Jelinek <jakub@redhat.com>
3450 PR tree-optimization/68501
3451 * target.def (builtin_reciprocal): Replace the 3 arguments with
3452 a gcall * one, adjust description.
3453 * targhooks.h (default_builtin_reciprocal): Replace the 3 arguments
3455 * targhooks.c (default_builtin_reciprocal): Likewise.
3456 * tree-ssa-math-opts.c (pass_cse_reciprocals::execute): Use
3457 targetm.builtin_reciprocal even on internal functions, adjust
3458 the arguments and allow replacing an internal function with normal
3460 * config/i386/i386.c (ix86_builtin_reciprocal): Replace the 3 arguments
3461 with a gcall * one. Handle internal fns too.
3462 * config/rs6000/rs6000.c (rs6000_builtin_reciprocal): Likewise.
3463 * config/aarch64/aarch64.c (aarch64_builtin_reciprocal): Likewise.
3464 * doc/tm.texi (builtin_reciprocal): Document.
3466 2015-11-30 Richard Biener <rguenther@suse.de>
3468 PR tree-optimization/68592
3469 * tree-vect-loop.c (vect_analyze_loop_2): Reset SLP type also
3470 on the pattern def sequence.
3472 2015-11-30 Nathan Sidwell <nathan@acm.org>
3474 * config/nvptx/nvptx.c (nvptx_name_replacement): Move earlier.
3475 (write_one_arg): Reorder parms, add 'sep' param.
3476 (nvptx_write_function_decl): Rename to ...
3477 (write_fn_proto): ... here. Do name replacement. Emit linaer
3478 comment marker. Deal with both decls and defns. Simplify argument
3480 (write_function_decl_and_comment): Delete.
3481 (write_func_decl_from_insn): Rename to ...
3482 (write_fn_proto_from_insn): ... here. Don't do name replacement.
3483 (nvptx_record_fndecl): Call write_fn_proto.
3484 (nvptx_record_libfunc): Call write_fn_proto_from_insn.
3485 (nvptx_declare_function_name): Adjust for write_fn_proto changes.
3486 (nvotx_output_call_insn): Call write_fn_prot_from_insn.
3488 2015-11-30 Kirill Yukhin <kirill.yukhin@intel.com>
3490 * config/i386/i386.md (define_mode_iterator SWI1248_AVX512BW): New.
3491 (define_insn "*k<logic><mode>"): Use new iterator.
3493 2015-11-30 Eric Botcazou <ebotcazou@adacore.com>
3496 * config/sparc/sparc.c (supersparc_adjust_cost): Fix thinko.
3497 (sparc_adjust_cost): Add missing space.
3499 2015-11-30 Richard Biener <rguenther@suse.de>
3502 * dwarf2out.c (gen_type_die_with_usage): Keep variant types of arrays.
3504 2015-11-30 Venkataramanan Kumar <Venkataramanan.Kumar@amd.com>
3506 * tree-if-conv.c (struct ifc_dr): Add new tree base_predicate field.
3507 (hash_memrefs_baserefs_and_store_DRs_read_written_info): Hash
3508 base ref, DR pairs and store base_predicate for write type DRs.
3509 (ifcvt_memrefs_wont_trap): Guard checks with
3510 -ftree-loop-if-convert-stores flag.
3512 2015-11-29 Jan Hubicka <hubicka@ucw.cz>
3514 * cgraph.c (cgraph_node::make_local): No name is unique during
3515 incremental linking.
3516 * cgraph.h (can_be_discarded_p): Update comment; also common and
3517 WEAK in named sections can be discarded; when doing incremental
3518 link do not rely on resolution being the final one.
3519 * varasm.c (default_binds_local_p_3, decl_binds_to_current_def_p):
3520 When symbol can be discarded, do not rely on resolution info.
3521 * symtab.c (symtab_node::nonzero_address): Take into account that
3522 symbol can be discarded.
3523 * ipa-visibility.c (update_visibility_by_resolution_info): Handle
3524 definition correctly.
3525 (function_and_variable_visibility): Do not set unique_name when
3526 incrementally linking.
3528 2015-11-29 Nathan Sidwell <nathan@acm.org>
3530 * config/nvptx/nvptx.md (const_0_operand, global_mem_operand,
3531 const_mem_operand, param_mem_operand, shared_mem_operand): Delete.
3532 (ctrap<mode>): Use const0_operand.
3534 2015-11-29 Jan Hubicka <hubicka@ucw.cz>
3536 * ipa-devirt.c (add_type_duplicate): Remove redundant
3539 2015-11-29 David Edelsohn <dje.gcc@gmail.com>
3542 * config/rs6000/rs6000.c (rs6000_adjust_cost): Correct
3543 recog_memoized test for insn and check recog_memoized for dep_insn.
3545 2015-11-28 Nathan Sidwell <nathan@acm.org>
3547 * config/nvptx/nvptx.h (FIRST_PARM_OFFSET): Add void cast.
3548 (FRAME_POINTER_CFA_OFFSET): Define.
3549 (struct nvptx_args): Use 'tree' type.
3550 (INIT_CUMULATIVE_ARGS): Remove unnecessary do...while.
3552 2015-11-28 Tom de Vries <tom@codesourcery.com>
3554 * lto-wrapper.c (run_gcc): Handle -flinker-output argument.
3556 2015-11-27 Jonathan Wakely <jwakely@redhat.com>
3558 * doc/invoke.texi (Option Summary): Use negative form of
3559 -Waggressive-loop-optimizations, remove redundant -Wpedantic-ms-format,
3560 sort alphabetically and re-justify.
3562 2015-11-27 Vladimir Makarov <vmakarov@redhat.com>
3564 PR rtl-optimization/68536
3565 * lra.c (lra_emit_add): Add code for null base.
3566 * lra-constraints.c (curr_insn_transform): Skip operators for
3569 2015-11-27 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3572 2015-11-27 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3574 * ifcvt.c (insn_valid_noce_process_p): Reject insn if it satisfies
3576 (noce_try_cmove_arith): Add checking asserts that orig_a and orig_b
3577 are not modified by the final modified insns in the basic blocks.
3579 2015-11-27 Nathan Sidwell <nathan@acm.org>
3581 * config/nvptx/nvptx-protos.h (nvptx_addr_space_from_address):
3583 * config/nvptx/nvptx.c (nvptx_addr_space_from_sym): New.
3584 (nvptx_maybe_convert_symbolic_operand): Simplify.
3585 (nvptx_addr_space_from_address): Delete.
3586 (nvptx_print_operand): Adjust 'A' case.
3588 2015-11-27 Richard Biener <rguenther@suse.de>
3590 PR tree-optimization/68559
3591 * tree-vect-data-refs.c (vect_analyze_group_access_1): Move
3592 peeling for gap checks ...
3593 * tree-vect-stmts.c (vectorizable_load): ... here and relax for SLP.
3594 * tree-vect-loop.c (vect_analyze_loop_2): Re-set
3595 LOOP_VINFO_PEELING_FOR_GAPS before re-trying without SLP.
3597 2015-11-27 Nathan Sidwell <nathan@acm.org>
3599 * config/nvptx/nvptx-protos.h (nvptx_record_needed_decl): Don't declare.
3600 * config/nvptx/nvptx.c (write_func_decl_from_insn): Move earlier.
3601 (nvptx_record_fndecl): Don't return value, remove force
3602 argument. Require fndecl.
3603 (nvptx_record_libfunc): New.
3604 (nvptx_record_needed_decl): Deteermine how to record decl here.
3605 (nvptx_maybe_record_fnsym): New.
3606 (nvptx_expand_call): Don't record libfuncs here,
3607 (nvptx_maybe_convert_symbolic_operand): Use
3608 nvptx_maye_record_fnsym.
3609 (nvptx_assemble_integer): Reimplement with single switch.
3610 (nvptx_output_call_insn): Register libfuncs here.
3611 (nvptx_file_end): Adjust nvptx_record_fndecl call.
3612 * config/nvptx/nvptx.md (expand_movdi): Don't call
3613 nvptx_record_needed_decl.
3615 2015-11-27 Richard Biener <rguenther@suse.de>
3617 PR tree-optimization/68553
3618 * tree-vect-slp.c (vect_create_mask_and_perm): Skip VEC_PERM_EXPR
3619 generation for 1:1 permutations.
3620 (vect_transform_slp_perm_load): Detect 1:1 permutations.
3622 2015-11-27 Bernd Schmidt <bschmidt@redhat.com>
3624 * gimple.h (nonbarrier_call_p): Declare.
3625 * gimple.c (nonbarrier_call_p): New function.
3626 * tree-ssa-phiopt.c (nontrapping_dom_walker::before_dom_children):
3627 Also increment call phase for ASMs with vdef and potential barrier
3630 2015-11-27 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3632 * ifcvt.c (insn_valid_noce_process_p): Reject insn if it satisfies
3634 (noce_try_cmove_arith): Add checking asserts that orig_a and orig_b
3635 are not modified by the final modified insns in the basic blocks.
3637 2015-11-27 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3639 PR rtl-optimization/68506
3640 * ifcvt.c (noce_try_cmove_arith): Try emitting the else basic block
3641 first if emit_a exists or then_bb modifies 'b'. Reindent if-else
3644 2015-11-27 Martin Liska <mliska@suse.cz>
3647 * vec.h (release_vec_vec): New function.
3649 2015-11-27 Jakub Jelinek <jakub@redhat.com>
3651 PR tree-optimization/68552
3652 * optabs.c (expand_vec_perm_1): Move vec_shr handling from here...
3653 (expand_vec_perm): ... here. Do it regardless of vec_perm_const_optab
3654 or whether v0 == v1.
3656 2015-11-27 Martin Liska <mliska@suse.cz>
3658 * tree-ssa-uninit.c: Fix whitespaces in the source file.
3659 The change is just automatical.
3661 2015-11-27 Martin Liska <mliska@suse.cz>
3663 * tree-chkp.c (chkp_make_static_bounds): Release buffer
3666 2015-11-27 Martin Liska <mliska@suse.cz>
3668 * tree-vect-loop-manip.c (vect_create_cond_for_alias_checks):
3669 Do not release memory for comp_alias_ddrs.
3670 * tree-vect-loop.c (destroy_loop_vec_info): Release
3671 the memory for all loop_vec_info.
3673 2015-11-27 Martin Liska <mliska@suse.cz>
3675 * ipa-devirt.c (ipa_devirt): Use auto_vec instead
3676 of a local-scope vec.
3677 (struct final_warning_record): Use auto_vec instead of vec.
3679 2015-11-27 Richard Biener <rguenther@suse.de>
3681 PR tree-optimization/68553
3682 * tree-vect-slp.c (vect_get_mask_element): Remove.
3683 (vect_transform_slp_perm_load): Implement in a simpler way.
3685 2015-11-26 Alexandre Oliva <aoliva@redhat.com>
3687 PR rtl-optimization/67753
3688 PR rtl-optimization/64164
3689 * function.c (assign_parm_setup_block): Right-shift
3690 upward-padded big-endian args when bypassing the stack slot.
3692 2015-11-26 Maciej W. Rozycki <macro@imgtec.com>
3694 * doc/invoke.texi (Option Summary) <MIPS Options>: Reorder
3695 `-mcompact-branches='.
3696 (MIPS Options): Likewise.
3698 2015-11-26 Jakub Jelinek <jakub@redhat.com>
3700 * Makefile.in (build/genmatch.o): Depend on internal-fn.def.
3702 2015-11-26 David Edelsohn <dje.gcc@gmail.com>
3704 * doc/install.texi (Prerequisites): Increase ISL requirement to
3707 2015-11-26 Matthew Wahab <matthew.wahab@arm.com>
3709 * config/aarch64/arm_neon.h
3710 (vqrdmlah_laneq_s16, vqrdmlah_laneq_s32): New.
3711 (vqrdmlahq_laneq_s16, vqrdmlahq_laneq_s32): New.
3712 (vqrdmlsh_lane_s16, vqrdmlsh_lane_s32): New.
3713 (vqrdmlshq_laneq_s16, vqrdmlshq_laneq_s32): New.
3714 (vqrdmlah_lane_s16, vqrdmlah_lane_s32): New.
3715 (vqrdmlahq_lane_s16, vqrdmlahq_lane_s32): New.
3716 (vqrdmlahh_s16, vqrdmlahh_lane_s16, vqrdmlahh_laneq_s16): New.
3717 (vqrdmlahs_s32, vqrdmlahs_lane_s32, vqrdmlahs_laneq_s32): New.
3718 (vqrdmlsh_lane_s16, vqrdmlsh_lane_s32): New.
3719 (vqrdmlshq_lane_s16, vqrdmlshq_lane_s32): New.
3720 (vqrdmlshh_s16, vqrdmlshh_lane_s16, vqrdmlshh_laneq_s16): New.
3721 (vqrdmlshs_s32, vqrdmlshs_lane_s32, vqrdmlshs_laneq_s32): New.
3723 2015-11-26 Matthew Wahab <matthew.wahab@arm.com>
3725 * config/aarch64/arm_neon.h (vqrdmlah_s16, vqrdmlah_s32): New.
3726 (vqrdmlahq_s16, vqrdmlahq_s32): New.
3727 (vqrdmlsh_s16, vqrdmlsh_s32): New.
3728 (vqrdmlshq_s16, vqrdmlshq_s32): New.
3730 2015-11-26 Matthew Wahab <matthew.wahab@arm.com>
3732 * config/aarch64/aarch64-c.c (aarch64_update_cpp_builtins): Add
3735 2015-11-26 Pierre-Marie de Rodat <derodat@adacore.com>
3738 * tree-nested.c (finalize_nesting_tree_1): Append a field to
3739 hold the frame base address.
3740 * dwarf2out.c (gen_subprogram_die): Generate for
3741 DW_AT_static_link a location description that computes the value
3744 2015-11-26 Tom de Vries <tom@codesourcery.com>
3747 2015-11-25 Tom de Vries <tom@codesourcery.com>
3749 * cfgloop.c (find_single_latch): New function, factored out of ...
3750 (flow_loops_find): ... here.
3751 (verify_loop_structure): Improve verification of loop->latch.
3752 * cfgloop.h (find_single_latch): Declare.
3753 * omp-low.c (expand_omp_for_generic): Initialize latch of orig_loop.
3755 2015-11-26 Matthew Wahab <matthew.wahab@arm.com>
3757 * config/aarch64/aarch64-simd-builtins.def:
3758 Add missing changes from r230962.
3760 2015-11-26 Nathan Sidwell <nathan@acm.org>
3762 * config/nvptx/nvptx.c (write_func_decl_from_insn): Replace callee
3763 arg with name. Don't deal with split regs. Tweak formatting.
3764 (nvptx_expand_call): Adjust write_func_decl_from_insn call.
3765 (nvptx_output_call_insn): Don't deal with split regs here.
3767 2015-11-26 Matthew Wahab <matthew.wahab@arm.com>
3769 * config/aarch64/aarch64-simd-builtins.def
3770 (sqrdmlah, sqrdmlsh): New.
3771 (sqrdmlah_lane, sqrdmlsh_lane): New.
3772 (sqrdmlah_laneq, sqrdmlsh_laneq): New.
3774 2015-11-26 Matthew Wahab <matthew.wahab@arm.com>
3776 * config/aarch64/aarch64-simd.md
3777 (aarch64_sqmovun<mode>): Fix some white-space.
3778 (aarch64_<sur>qmovun<mode>): Likewise.
3779 (aarch64_sqrdml<SQRDMLH_AS:rdma_as>h<mode>): New.
3780 (aarch64_sqrdml<SQRDMLH_AS:rdma_as>h_lane<mode>): New.
3781 (aarch64_sqrdml<SQRDMLH_AS:rdma_as>h_laneq<mode>): New.
3782 * config/aarch64/iterators.md (UNSPEC_SQRDMLAH): New.
3783 (UNSPEC_SQRDMLSH): New.
3787 2015-11-26 Richard Biener <rguenther@suse.de>
3789 PR tree-optimization/66721
3790 * tree-vect-loop.c (vect_analyze_loop_2): Compute scalar
3791 iteration cost earlier. Re-do analysis without SLP when
3792 vectorization using SLP fails and without has a chance to succeed.
3794 2015-11-26 Richard Biener <rguenther@suse.de>
3796 * genmatch.c (dt_simplify::gen_1): For generic wrap all
3797 multi-result-use captures in a SAVE_EXPR.
3799 2015-11-26 Matthew Wahab <matthew.wahab@arm.com>
3801 * config/aarch64/aarch64.h (AARCH64_ISA_RDMA): New.
3802 (TARGET_SIMD_RDMA): New.
3804 2015-11-26 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3806 * combine.c (subst): Do not return clobber of zero in widening mult
3807 case. Just return x unchanged if it is a no-op substitution.
3809 2015-11-26 Vladimir Makarov <vmakarov@redhat.com>
3812 * config/i386/i386.h (enum reg_class): Add
3813 bounds registers to ALL_REGS.
3815 2015-11-26 Jakub Jelinek <jakub@redhat.com>
3817 PR tree-optimization/68128
3818 * tree.h (OMP_CLAUSE_SHARED_READONLY): Define.
3819 * gimplify.c: Include gimple-walk.h.
3820 (enum gimplify_omp_var_data): Add GOVD_WRITTEN.
3821 (omp_notice_variable): Set flags to n->value if n already
3822 exists in target region, but we need to jump to do_outer.
3823 (omp_shared_to_firstprivate_optimizable_decl_p,
3824 omp_mark_stores, omp_find_stores_op, omp_find_stores_stmt): New
3826 (gimplify_adjust_omp_clauses_1): Set OMP_CLAUSE_SHARED_READONLY
3827 on OMP_CLAUSE_SHARED if it is a scalar non-addressable that is
3828 not modified in the body. Call omp_mark_stores for outer
3829 contexts on OMP_CLAUSE_SHARED clauses if they could be written
3830 in the body or on OMP_CLAUSE_LASTPRIVATE.
3831 (gimplify_adjust_omp_clauses): Add body argument, call
3832 omp_find_stores_{stmt,op} on the body through walk_gimple_seq.
3833 Set OMP_CLAUSE_SHARED_READONLY
3834 on OMP_CLAUSE_SHARED if it is a scalar non-addressable that is
3835 not modified in the body. Call omp_mark_stores for outer
3836 contexts on OMP_CLAUSE_SHARED clauses if they could be written
3837 in the body or on OMP_CLAUSE_LASTPRIVATE or on OMP_CLAUSE_LINEAR
3838 without OMP_CLAUSE_LINEAR_NO_COPYOUT or on OMP_CLAUSE_REDUCTION.
3839 (gimplify_oacc_cache, gimplify_omp_parallel, gimplify_omp_task,
3840 gimplify_omp_for, gimplify_omp_workshare, gimplify_omp_target_update,
3841 gimplify_expr): Adjust gimplify_adjust_omp_clauses callers.
3842 * tree-nested.c (convert_nonlocal_omp_clauses,
3843 convert_local_omp_clauses): Clear OMP_CLAUSE_SHARED_READONLY on
3844 non-local vars or local vars referenced from nested routines.
3845 * omp-low.c (scan_sharing_clauses): For OMP_CLAUSE_SHARED_READONLY
3846 attempt to optimize it into OMP_CLAUSE_FIRSTPRIVATE. Even for
3847 TREE_READONLY, don't call use_pointer_for_field with non-NULL
3848 second argument until we are sure we are keeping OMP_CLAUSE_SHARED.
3850 2015-11-26 Paolo Bonzini <bonzini@gnu.org>
3852 * doc/implement-c.texi (Integers Implementation): Make GCC's promises
3853 about signed left shift stronger and clarify the cases when they're
3856 2015-11-26 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3857 Bernd Schmidt <bschmidt@redhat.com>
3859 PR rtl-optimization/67226
3860 * calls.c (store_one_arg): Take into account
3861 crtl->args.pretend_args_size when checking for overlap between
3862 arg->value and argblock + arg->locate.offset during sibcall
3865 2015-11-26 Wilco Dijkstra <wdijkstr@arm.com>
3867 * config/aarch64/aarch64.md (cbranch<mode>4): Use
3868 aarch64_fp_compare_operand.
3869 (store_pairsf): Use aarch64_reg_or_fp_zero.
3870 (store_pairdf): Likewise.
3871 (cstore<mode>4): Use aarch64_fp_compare_operand.
3872 (cmov<mode>6): Likewise.
3873 * config/aarch64/aarch64-ldpstp.md: Use aarch64_reg_or_fp_zero.
3875 2015-11-25 Aditya Kumar <aditya.k7@samsung.com>
3876 Sebastian Pop <s.pop@samsung.com>
3878 PR tree-optimization/68453
3879 * graphite-isl-ast-to-gimple.c (translate_isl_ast_for_loop): Do
3880 not redirect edges already pointing to their destination.
3881 (translate_isl_ast_node_for): Split edges after loops to create
3882 basic blocks for close phi nodes. Save merge points at the end of
3884 (translate_isl_ast_node_if): Save merge points at the end of the
3886 (add_close_phis_to_outer_loops): New.
3887 (add_close_phis_to_merge_points): New.
3888 (copy_loop_close_phi_args): Call add_close_phis_to_merge_points.
3889 (copy_bb_and_scalar_dependences): Do not split basic blocks on
3890 loop close phi locations.
3892 2015-11-25 Jan Hubicka <jh@suse.cz>
3894 * ipa-visibility.c (cgraph_externally_visible_p,
3895 varpool_node::externally_visible_p): When doing incremental linking,
3896 hidden symbols may be still used later.
3897 (update_visibility_by_resolution_info): Do not drop weak during
3899 (function_and_variable_visibility): Fix formating.
3900 * flag-types.h (lto_linker_output): Declare.
3901 * common.opt 9flag_incremental_link): New flag.
3903 2015-11-25 Michael Meissner <meissner@linux.vnet.ibm.com>
3905 * config/rs6000/constraints.md (wb constraint): New constraint for
3906 ISA 3.0 d-form scalar addressing.
3908 * config/rs6000/rs6000.c (mode_supports_vmx_dform): Add support
3909 for ISA 3.0 D-form addressing to load SFmode/DFmode scalars into
3910 Altivec registers. Add wb constraint for Altivec registers with
3911 D-form addressing. If we have ISA 3.0 d-form support, undo
3912 secondary reload support for using FPR registers if we want to do
3914 (rs6000_debug_reg_global): Likewise.
3915 (rs6000_setup_reg_addr_masks): Likewise.
3916 (rs6000_init_hard_regno_mode_ok): Likewise.
3917 (rs6000_secondary_reload): Likewise.
3918 (rs6000_preferred_reload_class): Likewise.
3919 (rs6000_secondary_reload_class): Likewise.
3921 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Add wb
3924 * config/rs6000/rs6000.md (f32_lr2 mode attribute): Add support
3925 for ISA 3.0 SFmode/DFmode d-form addressing to Altivec registers.
3926 (f32_lm2): Likewise.
3927 (f32_li2): Likewise.
3928 (f32_sr2): Likewise.
3929 (f32_sm2): Likewise.
3930 (f32_si2): Likewise.
3932 (extendsfdf2_fpr): Likewise.
3933 (mov<mode>_hardfloat): Likewise.
3934 (mov<mode>_hardfloat32): Likewise.
3935 (mov<mode>_hardfloat64): Likewise.
3937 * doc/md.texi (RS/6000 constraints): Document wb constraint.
3938 Fixup we constraint documentation.
3940 2015-11-25 Tom de Vries <tom@codesourcery.com>
3942 * omp-low.c (pass_expand_omp_ssa::clone): New function.
3943 * passes.def: Add pass_oacc_kernels pass group.
3944 * tree-ssa-loop-ch.c (pass_ch::clone): New function.
3946 2015-11-25 Tom de Vries <tom@codesourcery.com>
3948 * tree-pass.h (make_pass_oacc_kernels, make_pass_oacc_kernels2):
3950 * tree-ssa-loop.c (gate_oacc_kernels): New static function.
3951 (pass_data_oacc_kernels, pass_data_oacc_kernels2): New pass_data.
3952 (class pass_oacc_kernels, class pass_oacc_kernels2): New pass.
3953 (make_pass_oacc_kernels, make_pass_oacc_kernels2): New function.
3955 2015-11-25 Jan Hubicka <hubicka@ucw.cz>
3957 * timevar.def (TV_IPA_LTO_DECOMPRESS, TV_IPA_LTO_COMPRESS,
3958 TV_IPA_LTO_OUTPUT): New.
3959 * lto-compress.c: Include timevar.h
3960 (lto_end_compression, lto_end_uncompression): Add timers.
3961 * langhooks.c: Include timevar.h.
3962 (lhd_append_data): Add timer.
3964 2015-11-25 Jan Hubicka <hubicka@ucw.cz>
3966 * varasm.c (default_elf_asm_output_limited_string,
3967 default_elf_asm_output_ascii): Replace fprintf by putc.
3969 2015-11-25 Vladimir Makarov <vmakarov@redhat.com>
3971 PR rtl-optimization/67954
3972 * lra-constraints.c (curr_insn_transform): Add check on scratch
3973 pseudo when change class to NO_REGS. Add an assert.
3975 2015-11-25 Nathan Sidwell <nathan@acm.org>
3977 * config/nvptx/nvptx.md (load_arg_reg<mode>): Arg number
3979 * config/nvptx/nvptx.c (write_one_arg): Use 'i' directly as arg number.
3980 (nvptx_write_function_decl): Number args from 0.
3981 (nvptx_declare_function_name): Likewise.
3982 (nvptx_function_incoming_arg): Likewise.
3983 (nvptx_output_call_insn): Correct formatting.
3985 2015-11-25 David Sherwood <david.sherwood@arm.com>
3987 * optabs.def: Add new optabs fmax_optab/fmin_optab.
3988 * internal-fn.def: Add new fmax/fmin internal functions.
3989 * doc/md.texi: Add fmin and fmax patterns.
3991 2015-11-25 Jason Merrill <jason@redhat.com>
3994 * tree.c (integer_zerop, integer_onep, integer_each_onep)
3995 (integer_all_onesp, integer_minus_onep, integer_pow2p)
3996 (integer_nonzerop, integer_truep, tree_log2, tree_floor_log2)
3997 (real_zerop, real_onep, real_minus_onep): Remove STRIP_NOPS.
3999 2015-11-25 Richard Biener <rguenther@suse.de>
4002 * fold-const.c (fold_binary_loc): Do not call negate_expr_p
4003 on stripped operands.
4005 2015-11-25 Nathan Sidwell <nathan@acm.org>
4007 * config/nvptx/nvptx.c (walk_args_for_params): Delete.
4008 (nvptx_declare_function_name): Move assignments next to register
4009 declarations, and process params here.
4011 2015-11-25 David Edelsohn <dje.gcc@gmail.com>
4013 * config/rs6000/rs6000.c (rs6000_declare_alias): Rename and globalize
4014 both the symbol and the "dot" symbol for function descriptors. Fix
4015 inversion for rename of symbols with dollar sign.
4017 2015-11-25 Tom de Vries <tom@codesourcery.com>
4019 * cfgloop.c (find_single_latch): New function, factored out of ...
4020 (flow_loops_find): ... here.
4021 (verify_loop_structure): Improve verification of loop->latch.
4022 * cfgloop.h (find_single_latch): Declare.
4023 * omp-low.c (expand_omp_for_generic): Initialize latch of orig_loop.
4025 2015-11-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4027 * config/sol2.h (SUPPORTS_INIT_PRIORITY): Move up.
4028 (STARTFILE_VTV_SPEC, ENDFILE_VTV_SPEC): Define.
4029 (STARTFILE_SPEC): Use %(startfile_vtv).
4030 (ENDFILE_SPEC): Use %(endfile_vtv).
4031 (SUBTARGET_EXTRA_SPECS): Handle STARTFILE_VTV_SPEC,
4034 * gcc.c (LINK_COMMAND_SPEC): Move VTABLE_VERIFICATION_SPEC after %{L*}.
4036 2015-11-25 Bernd Schmidt <bschmidt@redhat.com>
4038 * ifcvt.c (noce_mem_write_may_trap_or_fault_p,
4039 noce_can_store_speculate): Delete.
4040 (noce_process_if_block): Don't try to handle single MEM stores.
4041 * rtl.h (memory_must_be_modified_in_insn_p): Don't declare.
4042 * alias.c (memory_must_be_modified_in_insn_p): Delete.
4044 2015-11-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
4046 PR rtl-optimization/68435
4047 * ifcvt.c (noce_try_cmove_arith): Skip final insn when checking
4048 for conflicts between a, b and the set destinations.
4050 2015-11-25 Richard Biener <rguenther@suse.de>
4052 PR tree-optimization/68517
4053 * tree-vect-data-refs.c (vect_analyze_data_ref_accesses):
4054 Properly handle zero-sized types.
4056 2015-11-24 Jan Hubicka <hubicka@ucw.cz>
4058 * ipa-inline-analysis.c: Include gimplify.h
4059 (set_cond_stmt_execution_predicate,
4060 set_switch_stmt_execution_predicate): Be sure to not leak locations
4063 2015-11-25 Jakub Jelinek <jakub@redhat.com>
4066 * tree-ssa-math-opts.c (uaddsub_overflow_check_p,
4067 match_uaddsub_overflow): New functions.
4068 (pass_optimize_widening_mul::execute): Call match_uaddsub_overflow.
4070 2015-11-25 Richard Biener <rguenther@suse.de>
4072 PR tree-optimization/68492
4073 * tree-vect-slp.c (vect_build_slp_tree): Consistently build up
4074 op from scalars after operand swapping.
4076 2015-11-25 Richard Biener <rguenther@suse.de>
4078 PR tree-optimization/68502
4079 * tree-vect-data-refs.c (vect_analyze_group_access_1): Restore
4080 check that the step is a multiple of the type size.
4082 2015-11-24 Michael Collison <michael.collison@linaro.org>
4084 * config/aarch64/aarch64-simd.md (widen_ssum, widen_usum)
4085 (aarch64_<ANY_EXTEND:su><ADDSUB:optab>w<mode>_internal): New patterns
4086 * config/aarch64/iterators.md (Vhalf, VDBLW): New mode attributes.
4088 2015-11-24 Steve Ellcey <sellcey@imgtec.com>
4090 * frame-header-opt.c (gate): Check for optimize > 0.
4091 (has_inlined_assembly): New function.
4092 (needs_frame_header_p): Remove is_leaf_function check,
4093 add argument type check.
4094 (callees_functions_use_frame_header): Add is_leaf_function
4095 and has_inlined_assembly calls..
4096 (set_callers_may_not_allocate_frame): New function.
4097 (frame_header_opt): Add is_leaf_function call, add
4098 set_callers_may_not_allocate_frame call.
4099 * config/mips/mips.c (mips_compute_frame_info): Add check
4100 to see if callee saved regs can be put in frame header.
4101 (mips_expand_prologue): Add check to see if step1 is zero,
4102 fix cfa restores when using frame header to store regs.
4103 (mips_can_use_return_insn): Check to see if registers are
4104 stored in frame header.
4105 * config/mips/mips.h (machine_function): Add
4106 callers_may_not_allocate_frame and
4107 use_frame_header_for_callee_saved_regs fields.
4109 2015-11-24 Segher Boessenkool <segher@kernel.crashing.org>
4111 PR rtl-optimization/68520
4112 * shrink-wrap.c (try_shrink_wrapping): Don't push a block to VEC if
4113 its bit was already set in BB_WITH.
4115 2015-11-24 Jan Hubicka <hubicka@ucw.cz>
4117 * alias.c (get_alias_set): Before checking TYPE_ALIAS_SET_KNOWN_P
4118 double check that type is main variant.
4119 * tree.c (build_variant_type_copy): Clear TYPE_ALIAS_SET when producing
4121 (verify_type_variant): Verify that variants have no
4122 TYPE_ALIAS_SET_KNOWN_P set
4123 * tree-streamer-out.c (pack_ts_type_common_value_fields): Reorder
4124 streaming so constant fields come first; stream TYPE_ALIAS_SET==0
4125 only for main variants; stream TYPE_ALIAS_SET as a bit.
4126 * tree-streamer-in.c (unpack_ts_type_common_value_fields): Update
4129 2015-11-24 Jan Hubicka <hubicka@ucw.cz>
4131 * tree.c (make_vector_type): Properly compute canonical type of the
4133 (verify_type): Verify that TYPE_CANONICAL of TYPE_MAIN_VARIANT is
4136 2015-11-24 Nathan Sidwell <nathan@acm.org>
4138 * config/nvptx/nvptx.c (maybe_split_mode): Return new mode or
4139 VOIDmode, don't alter incoming mode.
4140 (nvptx_split_reg_p): Delete.
4141 (write_one_arg, walk_args_for_param, nvptx_declare_function_name,
4142 write_func_decl_from_insn, nvptx_output_call_insn): Adjust
4143 maybe_split_mode calls.
4144 (nvptx_print_operand): Use maybe_split_mode.
4146 2015-11-24 Jan Hubicka <hubicka@ucw.cz>
4148 * lto-streamer-in.c (lto_read_body_or_constructor): Set TYPE_CANONICAL
4149 only for types where LTO sets them.
4150 * tree.c (build_array_type_1): Do ont set TYPE_CANONICAL for LTO.
4151 (make_vector_type): Likewise.
4152 (gimple_canonical_types_compatible_p): Use canonical_type_used_p.
4153 * tree.h (canonical_type_used_p): New inline.
4154 * alias.c (get_alias_set): Handle structural equality for all
4155 types that pass canonical_type_used_p.
4156 (record_component_aliases): Look through all types with
4157 record_component_aliases for possible pointers; sanity check that
4158 the alias sets match.
4160 2015-11-24 Michael Meissner <meissner@linux.vnet.ibm.com>
4162 * config/rs6000/rs6000.md (lround<mode>di2): Remove constraints.
4164 2015-11-24 Jan Hubicka <hubicka@ucw.cz>
4166 * tree.c (free_node): New function.
4167 (type_hash_canon): Use it.
4168 * tree.h (free_node): Declare.
4170 2015-11-24 David Edelsohn <dje.gcc@gmail.com>
4171 Michael Meissner <meissner@linux.vnet.ibm.com>
4173 * config/rs6000/rs6000.md (UNSPEC_XSRDPI): New unspec.
4174 (Fv2): New mode attribute to be used when ISA 2.07 instructions
4175 are used on SF values, and ISA 2.06 instructions on DF values.
4176 (add<mode>3_fpr): Use <Fv2> instead of <Fv>.
4177 (sub<mode>3_fpr): Use <Fv2> instead of <Fv>.
4178 (mul<mode>3_fpr): Use <Fv2> instead of <Fv>.
4179 (div<mode>3_fpr): Use <Fv2> instead of <Fv>.
4180 (sqrt<mode>2): Use <Fv2> instead of <Fv>.
4181 (fre<Fs>): Use <Fv2> instead of <Fv>.
4182 (rsqrt<mode>2): Use <Fv2> instead of <Fv>.
4183 (cmp<mode>_fpr): Use <Fv2> instead of <Fv>.
4184 (xsrdpi<mode>): Add support for the lround function.
4185 (lround<mode>di2): Likewise.
4186 (fma<mode>4_fpr): Use <Fv2> instead of <Fv>.
4187 (fms<mode>4_fpr): Use <Fv2> instead of <Fv>.
4188 (nfma<mode>4_fpr): Use <Fv2> instead of <Fv>.
4189 (nfms<mode>4_fpr): Use <Fv2> instead of <Fv>.
4191 2015-11-24 Aditya Kumar <aditya.k7@samsung.com>
4192 Sebastian Pop <s.pop@samsung.com>
4194 PR tree-optimization/67984
4195 * graphite-isl-ast-to-gimple.c (is_constant): New.
4196 (get_rename): Call is_constant.
4197 (get_new_name): Same.
4199 2015-11-24 Aditya Kumar <aditya.k7@samsung.com>
4200 Sebastian Pop <s.pop@samsung.com>
4202 * graphite-dependences.c: Only include graphite.h.
4203 * graphite-isl-ast-to-gimple.c: Same.
4204 * graphite-optimize-isl.c: Same.
4205 * graphite-poly.c: Same.
4206 * graphite-scop-detection.c: Same.
4207 * graphite-sese-to-poly.c: Same.
4209 * graphite-isl-ast-to-gimple.h: Move to graphite.h.
4210 * graphite-poly.h: Same.
4211 * graphite-scop-detection.h: Same.
4214 2015-11-24 Pierre-Marie de Rodat <derodat@adacore.com>
4216 * dwarf2out.c (gen_decl_die): Generate DW_TAG_imported_* instead of
4217 DW_TAG_namespace for IMPORTED_DECL declarations. Call
4218 dwarf2out_imported_module_or_decl_1 for all DWARF versions as this
4219 function already takes care of checking what it can emit.
4221 2015-11-24 Szabolcs Nagy <szabolcs.nagy@arm.com>
4223 * doc/invoke.texi (-fpic): Add the AArch64 limit.
4224 (-fPIC): Add AArch64.
4226 2015-11-24 Tom de Vries <tom@codesourcery.com>
4228 * tree-ssa-loop-im.c (tree_ssa_lim): Make static.
4229 (pass_lim::execute): Allow to run outside pass_tree_loop.
4231 2015-11-24 Wilco Dijkstra <wdijkstr@arm.com>
4233 * config/aarch64/aarch64.md (add<mode>3):
4234 Block early expansion into 2 add instructions.
4235 (add<mode>3_pluslong): New pattern to combine complex
4236 immediates into 2 additions.
4238 2015-11-24 Segher Boessenkool <segher@kernel.crashing.org>
4243 * config/rs6000/predicates.md (and_operand): Check that the operand
4244 is a const_int before calling rs6000_is_valid_and_mask.
4246 2015-11-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
4248 * config/aarch64/aarch64.md (*condjump): Rename to...
4249 (condjump): ... This.
4250 (*compare_condjump<mode>): New define_insn_and_split.
4251 (*compare_cstore<mode>_insn): Likewise.
4252 (*cstore<mode>_insn): Rename to...
4253 (cstore<mode>_insn): ... This.
4254 * config/aarch64/iterators.md (CMP): Handle ne code.
4255 * config/aarch64/predicates.md (aarch64_imm24): New predicate.
4257 2015-11-24 Mikhail Maltsev <maltsevm@gmail.com>
4260 * config/i386/i386.c (output_387_binary_op): Fix assertion for
4263 2015-11-24 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
4265 * tree-ssa-uncprop.c (struct val_ssa_equiv_hash_traits): Remove.
4266 (val_ssa_equiv_hash_traits::remove): Likewise.
4267 (pass_uncprop::execute): Adjust.
4269 2015-11-24 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
4271 * hash-map-traits.h (simple_hashmap_traits ::remove): call
4272 destructors on values that are being removed.
4273 * mem-stats.h (hash_map): Pass type of values to
4274 simple_hashmap_traits.
4275 * tree-sra.c (sra_deinitialize): Remove work around for hash
4276 maps not destructing values.
4277 * genmatch.c (sinfo_hashmap_traits): Adjust.
4278 * tree-ssa-uncprop.c (val_ssa_equiv_hash_traits): Likewise.
4280 2015-11-24 Richard Biener <rguenther@suse.de>
4281 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
4284 * cfgloop.c (get_loop_body_in_bfs_order): Restructure loop to avoid
4287 2015-11-24 Jakub Jelinek <jakub@redhat.com>
4290 * tree-vect-generic.c (lower_vec_perm): If VEC_PERM_EXPR
4291 is valid vec_shr pattern, don't lower it even if can_vec_perm_p
4293 * optabs.c (shift_amt_for_vec_perm_mask): Return NULL_RTX
4294 whenever first is nelt or above. Don't mask expected with
4297 2015-11-24 Ilya Enkovich <enkovich.gnu@gmail.com>
4300 * gimple-fold.c: Include ipa-chkp.h.
4301 (gimple_fold_builtin_memory_op): Don't fold call if we
4302 are going to instrument it and it may copy pointers.
4304 2015-11-24 Bernd Schmidt <bschmidt@redhat.com>
4305 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
4307 PR rtl-optimization/68194
4308 PR rtl-optimization/68328
4309 PR rtl-optimization/68185
4310 * ree.c (combine_reaching_defs): Reject copy_needed case if
4311 copies_list is not empty.
4313 2015-11-24 Richard Biener <rguenther@suse.de>
4316 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Properly
4319 2015-11-24 Segher Boessenkool <segher@kernel.crashing.org>
4321 PR rtl-optimization/68381
4322 * combine.c (is_parallel_of_n_reg_sets): Return false if the pattern
4325 2015-11-23 Nick Clifton <nickc@redhat.com>
4326 Jeff Law <law@redhat.com>
4328 * ree.c (add_removable_extension): Avoid mis-optimizing cases where
4329 the source/dest of the target extension require a different number of
4331 (combine_set_extension): Remove #if 0 code.
4333 2015-11-23 Aditya Kumar <aditya.k7@samsung.com>
4334 Sebastian Pop <s.pop@samsung.com>
4336 PR tree-optimization/68314
4337 * graphite-optimize-isl.c (optimize_isl): Do not call
4338 isl_union_map_is_equal.
4339 * graphite-poly.c (new_scop): Remove original_schedule.
4341 * graphite-poly.h (struct scop): Same.
4342 * graphite-sese-to-poly.c (build_pbb_minimal_scattering_polyhedrons):
4344 (build_pbb_scattering_polyhedrons): Add back.
4345 (build_scop_minimal_scattering): Remove.
4346 (build_scop_scattering): Add back.
4347 (build_scop_original_schedule): Remove.
4348 (build_poly_scop): Revert to only call build_scop_scattering.
4350 2015-11-23 Aditya Kumar <aditya.k7@samsung.com>
4351 Sebastian Pop <s.pop@samsung.com>
4353 PR tree-optimization/68493
4354 * graphite-isl-ast-to-gimple.c (translate_pending_phi_nodes): Add
4355 missing early return when codegen_error is set.
4357 2015-11-23 Aditya Kumar <aditya.k7@samsung.com>
4358 Sebastian Pop <s.pop@samsung.com>
4360 PR tree-optimization/68279
4361 * graphite-poly.c (new_scop): Remove poly_scop_p.
4362 * graphite-poly.h (struct scop): Same.
4363 (build_poly_scop): Declare.
4364 * graphite-sese-to-poly.c: Do not include graphite-sese-to-poly.h.
4365 (cleanup_loop_iter_dom): New.
4366 (build_loop_iteration_domains): Early return when scev analysis fails.
4367 (create_pw_aff_from_tree): Same.
4368 (add_condition_to_pbb): Same.
4369 (add_conditions_to_domain): Same.
4370 (add_conditions_to_constraints): Same.
4371 (build_scop_iteration_domain): Same.
4372 (build_poly_scop): Same. Do not initialize poly_scop_p.
4373 * graphite-sese-to-poly.h: Remove.
4374 * graphite.c: Do not include graphite-sese-to-poly.h.
4375 (graphite_transform_loops): Stop before code generation when
4376 build_poly_scop fails.
4377 * sese.c (scalar_evolution_in_region): Add fixme note about scev
4380 2015-11-23 Aditya Kumar <aditya.k7@samsung.com>
4381 Sebastian Pop <s.pop@samsung.com>
4383 * graphite-isl-ast-to-gimple.c (translate_isl_ast_node_user):
4384 Remove call to update_ssa.
4385 * sese.c (sese_insert_phis_for_liveouts): Same.
4387 2015-11-23 Marek Polacek <polacek@redhat.com>
4389 PR tree-optimization/68455
4390 * tree-vrp.c (extract_range_from_binary_expr_1): Don't call
4391 extract_range_from_multiplicative_op_1 on symbolic ranges.
4393 2015-11-23 Richard Henderson <rth@redhat.com>
4395 * optabs.def (uaddv4_optab, usubv4_optab): New.
4396 * internal-fn.c (expand_addsub_overflow): Use them.
4397 * doc/md.texi (Standard Names): Add uaddv<m>4, usubv<m>4.
4399 * config/i386/i386.c (ix86_cc_mode): Extend add overflow check
4400 to reversed operands.
4401 * config/i386/i386.md (uaddv<SWI>4, usubv<SWI>4): New.
4402 (*add<SWI>3_cconly_overflow_1): Rename *add<SWI>3_cconly_overflow.
4403 (*add<SWI>3_cc_overflow_1): Rename *add<SWI>3_cc_overflow.
4404 (*addsi3_zext_cc_overflow_1): Rename *add3_zext_cc_overflow.
4405 (*add<SWI>3_cconly_overflow_2): New.
4406 (*add<SWI>3_cc_overflow_2): New.
4407 (*addsi3_zext_cc_overflow_2): New.
4409 2015-11-23 Richard Biener <rguenther@suse.de>
4411 PR tree-optimization/68465
4412 * tree-ssa-sccvn.c (sccvn_dom_walker::before_dom_children):
4413 Also record equalities from multiple predecessor blocks if
4414 only one non-backedge exists.
4416 2015-11-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
4419 * config/aarch64/aarch64.c (aarch64_madd_needs_nop): Reject arguments
4420 that are not INSN_P.
4422 2015-11-23 Bilyan Borisov <bilyan.borisov@arm.com>
4424 * config/aarch64/aarch64-builtins.c
4425 (aarch64_gimple_fold_builtin): Fold FMULX.
4427 2015-11-23 David Edelsohn <dje.gcc@gmail.com>
4429 * system.h: Don't poison calloc and strdup if USES_ISL is defined.
4430 * graphite-dependences.c: Define USES_ISL. Include ISL header files
4431 after GCC header files and before graphite header files.
4432 * graphite-dependences.c: Same.
4433 * graphite-isl-ast-to-gimple.c: Same.
4434 * graphite-optimize-isl.c: Same.
4435 * graphite-poly.c: Same.
4436 * graphite-scop-detection.c: Same.
4437 * graphite-sese-to-poly.c: Same.
4440 2015-11-23 Richard Biener <rguenth@gcc.gnu.org>
4441 Jiong Wang <jiong.wang@arm.com>
4443 PR tree-optimization/68317
4444 PR tree-optimization/68326
4445 * tree-vrp.c (adjust_range_with_scev): Call drop_tree_overflow if the
4446 final min and max are not infinity.
4448 2015-11-23 Ilya Enkovich <enkovich.gnu@gmail.com>
4449 Richard Biener <rguenther@suse.de>
4451 PR tree-optimization/68327
4452 * tree-vect-loop.c (vect_determine_vectorization_factor): Don't
4453 compute vectype for non-relevant mask producers.
4454 * tree-vect-stmts.c (vectorizable_comparison): Check stmt
4457 2015-11-23 Tom de Vries <tom@codesourcery.com>
4459 PR tree-optimization/68460
4460 * tree-parloops.c (gather_scalar_reductions): Also call
4461 free_stmt_vec_info_vec if simple_loop_info == NULL.
4463 2015-11-23 Maxim Ostapenko <m.ostapenko@partner.samsung.com>
4465 * opts.c (finish_options): Allow -fsanitize-recover=address for
4466 userspace sanitization.
4467 * asan.c (asan_expand_check_ifn): Redefine recover_p.
4468 * doc/invoke.texi (fsanitize-recover): Update documentation.
4470 2015-11-23 Tom de Vries <tom@codesourcery.com>
4472 * omp-low.c (build_receiver_ref): Mark by_ref mem_ref as non-trapping.
4474 2015-11-23 Richard Biener <rguenther@suse.de>
4476 PR tree-optimization/68445
4477 * tree-vect-slp.c (vect_create_mask_and_perm): Properly use
4478 two different strides.
4480 2015-11-23 Robin Dapp <rdapp@linux.vnet.ibm.com>
4482 * config/s390/s390.h: Add new symref flags, _NOTALIGN2 etc.
4483 * config/s390/s390.c (s390_check_symref_alignment): Use new
4484 symref flags, early abort on wrong alignment
4485 (s390_secondary_reload): Use new symref flags.
4486 (s390_encode_section_info): Likewise.
4487 * config/s390/predicates.md: Likewise.
4489 2015-11-23 Kugan Vivekanandarajah <kuganv@linaro.org>
4492 * config/arm/arm.c (arm_function_ok_for_sibcall): Get function type
4493 for indirect function call.
4495 2015-11-22 Bilyan Borisov <bilyan.borisov@arm.com>
4497 * config/aarch64/aarch64-simd.md
4498 (*aarch64_mulx_elt_<vswap_width_name><mode>, VDQSF): New.
4499 (*aarch64_mulx_elt<mode>, VDQF): Likewise.
4500 (*aarch64_mulx_elt_to_64v2df): Likewise.
4501 (*aarch64_vgetfmulx<mode>, VDQF_DF): Likewise.
4502 * config/aarch64/arm_neon.h (vmulx_lane_f32): New.
4503 (vmulx_lane_f64): Likewise.
4504 (vmulxq_lane_f32): Refactored & moved.
4505 (vmulxq_lane_f64): Likewise.
4506 (vmulx_laneq_f32): New.
4507 (vmulx_laneq_f64): Likewise.
4508 (vmulxq_laneq_f32): Likewise.
4509 (vmulxq_laneq_f64): Likewise.
4510 (vmulxs_lane_f32): Likewise.
4511 (vmulxs_laneq_f32): Likewise.
4512 (vmulxd_lane_f64): Likewise.
4513 (vmulxd_laneq_f64): Likewise.
4515 2015-11-21 Jan Hubicka <hubicka@ucw.cz>
4517 * tree.c (build_pointer_type_for_mode,build_reference_type_for_mode):
4518 In LTO we do not compute TYPE_CANONICAL of pointers.
4519 (gimple_canonical_types_compatible_p): Improve coments; sanity check
4520 that pointers do not have canonical type that would make us believe
4522 * alias.c (get_alias_set): Do structural type equality on pointers;
4523 enable pointer path for LTO; also glob pointer to vector with pointer
4524 to vector element; glob pointers and references for LTO; do more strict
4525 sanity checking about build_pointer_type returning the canonical type
4526 which is also the main variant.
4527 (record_component_aliases): When component type is pointer and we
4528 do LTO; record void_type_node alias set.
4530 2015-11-21 Nathan Sidwell <nathan@acm.org>
4532 * config/nvptx/nvptx.md (clz<mode>2): Use operand 1 for type.
4534 * config/nvptx/nvptx.c (write_function_decl_and_comment): Print
4536 (write_func_decl_from_insn): Likewise.
4537 (init_output_initializer, nvptx_assemble_undefined_decl): Likewise.
4538 (nvptx_file_end): Likewise.
4539 (nvptx_function_end): Undent output.
4540 (nvptx_expand_call): Fix formatting.
4541 (nvptx_output_call_insn): Indent output.
4542 * config/nvptx/nvptx.h (ASM_OUTPUT_ALIGNED_DECL_COMMON,
4543 ASM__OUTPUT_ALIGNED_DECL_LOCAL): Print leading blank line.
4545 2015-11-21 Jakub Jelinek <jakub@redhat.com>
4548 * tree-inline.c (copy_debug_stmt): If
4549 gimple_debug_source_bind_get_value is DECL_ORIGIN of a PARM_DECL
4550 in decl_debug_args, don't call remap_gimple_op_r on it.
4552 2015-11-07 Jan Hubicka <hubicka@ucw.cz>
4554 * ipa-icf.c (sem_item::add_type): Do not look for TYPE_CANONICAL;
4555 do not check AGGREGATE_TYPE_P when adding TYPE_MODE;
4556 Check that all record types are complete.
4557 * ipa-icf-gimple.c (func_checker::compatible_types_p): Do not
4558 compare alias sets for types w/o alias sets.
4560 2015-11-20 Eric Botcazou <ebotcazou@adacore.com>
4562 * config/sparc/sparc.md (umulxhi_vis): Move around.
4563 (*umulxhi_sp64): Likewise.
4564 (umulxhi_v8plus): Likewise.
4565 (xmulx_vis): Likewise.
4566 (*xmulx_sp64): Likewise.
4567 (xmulx_v8plus): Likewise.
4568 (xmulxhi_vis): Likewise.
4569 (*xmulxhi_sp64): Likewise.
4570 (xmulxhi_v8plus): Likewise.
4572 2015-11-20 David Malcolm <dmalcolm@redhat.com>
4575 * diagnostic-show-locus.c (colorizer::set_fixit_hint): New.
4576 (class layout): Update comment
4577 (layout::print_any_fixits): New method.
4578 (layout::move_to_column): New method.
4579 (diagnostic_show_locus): Add call to layout.print_any_fixits.
4581 2015-11-20 Jakub Jelinek <jakub@redhat.com>
4584 * omp-low.c (lower_rec_input_clauses): If C/C++ array reduction
4585 has non-zero bias, subtract it in integer type instead of
4586 pointer plus of negated bias.
4589 * omp-low.c (expand_simd_clones): Call node->get_body () before
4590 allocating stuff in GC.
4592 2015-11-20 Jim Wilson <jim.wilson@linaro.org>
4594 * tree-vect-data-refs.c (compare_tree): Call STRIP_NOPS.
4596 2015-11-20 Evandro Menezes <e.menezes@samsung.com>
4598 * config/aarch64/aarch64.md (predicated): Copy attribute from
4600 * config/arm/arm.md (predicated): Added description.
4602 2015-11-20 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
4604 * config/arm/arm.c (arm_option_override): Require TARGET_32BIT
4605 for unaligned_access.
4606 * config/arm/arm.md (unaligned_loadsi): Remove redundant TARGET_32BIT
4607 from matching condition.
4608 (unaligned_loadhis): Likewise.
4609 (unaligned_loadhiu): Likewise.
4610 (unaligned_storesi): Likewise.
4611 (unaligned_storehi): Likewise.
4613 2015-11-20 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
4616 * config/arm/arm.md (unaligned_loaddi): Delete.
4617 (unaligned_storedi): Likewise.
4618 * config/arm/arm.c (gen_movmem_ldrd_strd): Don't generate
4619 unaligned DImode memory ops. Instead perform two back-to-back
4620 unaligned SImode ops.
4622 2015-11-20 Nathan Sidwell <nathan@codesourcery.com>
4623 James Norris <jnorris@codesourcery.com>
4625 * config/nvptx/nvptx.c (nvptx_use_anchors_for_symbol_p): New.
4626 (TARGET_USE_ANCHORS_FOR_SYMBOL_P): Override.
4628 2015-11-20 Alan Hayward <alan.hayward@arm.com>
4630 PR tree-optimization/68413
4631 * tree-vect-loop.c (vect_analyze_scalar_cycles_1): Cache
4633 (vectorizable_reduction): Use cached base
4635 2015-11-20 Tom de Vries <tom@codesourcery.com>
4637 * tree-parloops.c (build_new_reduction): Fix trailing whitespace in
4639 (try_create_reduction_list): Same. Fix typo in dump-file string.
4641 2015-11-20 Eric Botcazou <ebotcazou@adacore.com>
4643 * doc/md.texi (Standard Names): Move entry for addptr3 around,
4644 add entries for addv4, subv4, mulv4, umulv4 and negv3, fixes
4645 glitch in entries for cbranch4 and jump.
4647 2015-11-20 Tom de Vries <tom@codesourcery.com>
4649 PR tree-optimization/68373
4650 * tree-scalar-evolution.c (final_value_replacement_loop): Factor out
4652 (scev_const_prop): ... here.
4653 * tree-scalar-evolution.h (final_value_replacement_loop): Declare.
4654 * tree-parloops.c (try_create_reduction_list): Call
4655 final_value_replacement_loop.
4657 2015-11-20 Bin Cheng <bin.cheng@arm.com>
4659 PR tree-optimization/52272
4660 * tree-ssa-loop-ivopts.c (struct iv_common_cand): New struct.
4661 (struct iv_common_cand_hasher): New struct.
4662 (iv_common_cand_hasher::hash): New function.
4663 (iv_common_cand_hasher::equal): New function.
4664 (struct ivopts_data): New fields, iv_common_cand_tab and
4666 (tree_ssa_iv_optimize_init): Initialize above fields.
4667 (record_common_cand, common_cand_cmp): New functions.
4668 (add_iv_candidate_derived_from_uses): New function.
4669 (add_iv_candidate_for_use): Record iv_common_cands derived from
4670 iv use in hash table, instead of adding candidates directly.
4671 (add_iv_candidate_for_uses): Call add_iv_candidate_derived_from_uses.
4672 (record_important_candidates): Add important candidates to iv uses'
4673 related_cands. Always keep related_cands for future use.
4674 (try_add_cand_for): Use iv uses' related_cands.
4675 (free_loop_data, tree_ssa_iv_optimize_finalize): Release new fields
4676 in struct ivopts_data, iv_common_cand_tab and iv_common_cands.
4678 2015-11-20 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
4680 * config/s390/s390.md ("bswaphi2"): New pattern.
4682 2015-11-20 Dominik Vogt <vogt@linux.vnet.ibm.com>
4684 * config/s390/s390.md (GPR1_REGNUM): New constant.
4685 ("*trunc<BFP:mode><DFP_ALL:mode>2")
4686 ("*trunc<DFP_ALL:mode><BFP:mode>2")
4687 ("trunc<BFP:mode><DFP_ALL:mode>2")
4688 ("trunc<DFP_ALL:mode><BFP:mode>2")
4689 ("*extend<BFP:mode><DFP_ALL:mode>2")
4690 ("*extend<DFP_ALL:mode><BFP:mode>2")
4691 ("extend<BFP:mode><DFP_ALL:mode>2")
4692 ("extend<DFP_ALL:mode><BFP:mode>2"): Clobber r1.
4694 2015-11-19 Aditya Kumar <aditya.k7@samsung.com>
4695 Sebastian Pop <s.pop@samsung.com>
4697 PR tree-optimization/68428
4698 * graphite-scop-detection.c (harmful_stmt_in_region): Do not iterate
4699 over basic blocks outside the scop.
4701 2015-11-19 Aditya Kumar <aditya.k7@samsung.com>
4702 Sebastian Pop <s.pop@samsung.com>
4704 PR tree-optimization/68341
4705 * graphite-isl-ast-to-gimple.c (get_rename_from_scev): Remove
4706 gcc_unreachable and safely fail codegen.
4707 (copy_loop_close_phi_args): Do not insert merge phis in a basic
4708 block with loop phi nodes.
4709 (edge_for_new_close_phis): New.
4710 (copy_bb_and_scalar_dependences): Call edge_for_new_close_phis.
4712 2015-11-19 Nathan Sidwell <nathan@acm.org>
4714 * config/nvptx/nvptx.h (SUPPORTS_WEAK): Define.
4715 * config/nvptx/nvptx.c (nvptx_write_function_decl): Support DECL_WEAK.
4716 (nvptx_declare_objec_name): Likewise.
4718 2015-11-19 Aditya Kumar <aditya.k7@samsung.com>
4720 * graphite-isl-ast-to-gimple.c (get_true_edge_from_guard_bb): Move...
4721 (get_false_edge_from_guard_bb): Move...
4722 * sese.c (get_false_edge_from_guard_bb)
4723 (get_true_edge_from_guard_bb): ... here.
4725 2015-11-19 David Edelsohn <dje.gcc@gmail.com>
4728 2015-11-18 Alan Modra <amodra@gmail.com>
4730 * config/rs6000/rs6000.c (use_toc_relative_ref): Ignore
4731 type-limits warning.
4734 2015-11-19 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
4736 * tree.h (desired_pro_or_demotion_p): New function.
4737 * tree-vrp.c (simplify_cond_using_ranges): Call it.
4739 2015-11-19 Michael Matz <matz@suse.de>
4741 PR rtl-optimization/68392
4742 * fwprop.c (update_uses): Use flag_checking instead of
4743 gcc_checking_assert.
4745 2015-11-19 David Malcolm <dmalcolm@redhat.com>
4747 * doc/gty.texi (Support for inheritance): Fix missing
4748 parentheses in example.
4750 2015-11-19 Marek Polacek <polacek@redhat.com>
4752 PR tree-optimization/68431
4753 * tree-vrp.c (extract_range_from_binary_expr_1): Fix condition.
4755 2015-11-19 Nathan Sidwell <nathan@acm.org>
4757 * config/nvptx/nvptx.md (atomic_compare_and_swap<mode>_1,
4758 atomic_exchange<mode>): Input values can be immediates.
4760 2015-11-19 Eric Botcazou <ebotcazou@adacore.com>
4763 * configure.ac (PLUGIN_LD_SUFFIX): Do not touch the value specified
4765 * configure: Regenerate.
4767 2015-11-19 Eric Botcazou <ebotcazou@adacore.com>
4770 * config/sparc/sp-elf.h (CTORS_SECTION_ASM_OP): Undefine.
4771 (DTORS_SECTION_ASM_OP): Likewise.
4773 2015-11-19 Jakub Jelinek <jakub@redhat.com>
4775 PR rtl-optimization/68376
4776 * ifcvt.c (noce_try_abs): Disable one_cmpl optimization if
4777 encountering x <= 0 ? ~x : x or x > 0 ? ~x : x.
4779 2015-11-19 Richard Biener <rguenther@suse.de>
4782 * tree-ssa.c (delete_tree_ssa): Revert removal of call to
4783 redirect_edge_var_map_destroy.
4785 2015-11-19 Jakub Jelinek <jakub@redhat.com>
4788 * config/i386/i386.md (simple_return): Disable if
4789 ix86_static_chain_on_stack is true.
4791 2015-11-19 Richard Sandiford <richard.sandiford@arm.com>
4794 * internal-fn.c (expand_direct_optab_fn): Handle SUBREG_PROMOTED_VAR_P
4797 2015-11-18 Jeff Law <law@redhat.com>
4799 PR tree-optimization/68198
4800 * tree-ssa-threadupdate.c (valid_jump_thread_path): Distinguish
4801 between threading a multi-way branch and a thread path that contains
4802 a multi-way branch. Disallow the case where a path contains a
4803 multi-way branch and does not thread a multi-way branch.
4804 (thread_through_all_blocks): Update comment.
4806 2015-11-18 Joseph Myers <joseph@codesourcery.com>
4809 * ginclude/stdatomic.h (atomic_thread_fence, atomic_signal_fence)
4810 (atomic_flag_test_and_set, atomic_flag_test_and_set_explicit)
4811 (atomic_flag_clear, atomic_flag_clear_explicit): Declare as
4812 functions before defining as macros.
4814 2015-11-18 Nathan Sidwell <nathan@codesourcery.com>
4816 * config/nvptx/nvptx.c (nvptx_process_pars): Fix whitespace.
4817 (nvptx_record_offload_symbol): Remove code compensating for lack
4818 of default dimension handling.
4819 (nvptx_goacc_validate_dims): Remove incorrect ARG_UNUSED markers.
4821 2015-11-18 Aditya Kumar <aditya.k7@samsung.com>
4823 * graphite-isl-ast-to-gimple.c (copy_loop_phi_args): Change the return
4824 type to bool for early exit.
4825 (translate_isl_ast_to_gimple::copy_loop_phi_nodes): Early return
4827 (translate_isl_ast_to_gimple::copy_loop_close_phi_args): Same.
4828 (add_phi_arg_for_new_expr): Enable codegen for if-block where one
4829 predecessor dominates the other.
4830 (translate_isl_ast_to_gimple::copy_cond_phi_args): Fix. When the
4831 element is not found it returns -1.
4832 (translate_isl_ast_to_gimple::translate_pending_phi_nodes): Bail
4833 out early when codegen fails.
4834 (graphite_regenerate_ast_isl): Remove codegen region when pending
4835 phis could not be generated.
4837 2015-11-18 Aditya Kumar <aditya.k7@samsung.com>
4839 * graphite-isl-ast-to-gimple.c (struct ast_build_info): Remove
4841 (class translate_isl_ast_to_gimple): Indentation.
4842 (translate_pending_phi_nodes): Comment.
4843 (add_parameters_to_ivs_params): Moved from sese.c inside class
4844 translate_isl_ast_to_gimple.
4845 (get_max_schedule_dimensions): Same.
4846 (generate_isl_context): Same.
4847 (extend_schedule): Same.
4848 (generate_isl_schedule): Same.
4849 (set_options): Same.
4850 (scop_to_isl_ast): Same.
4851 (is_valid_rename): Same.
4853 (get_rename_from_scev): Same.
4854 (get_def_bb_for_const): Same.
4855 (get_new_name): Same.
4856 (collect_all_ssa_names): Same.
4857 (copy_loop_phi_args): Same.
4858 (copy_loop_phi_nodes): Same.
4859 (copy_loop_close_phi_args): Same.
4860 (copy_loop_close_phi_nodes): Same.
4861 (copy_cond_phi_args): Same.
4862 (copy_cond_phi_nodes): Same.
4863 (graphite_copy_stmts_from_block): Same.
4864 (copy_bb_and_scalar_dependences): Same.
4865 (add_phi_arg_for_new_expr): Same.
4866 (rename_uses): Same.
4868 (set_rename_for_each_def): Same.
4869 (gsi_insert_earliest): Same.
4870 (rename_all_uses): Same.
4871 (codegen_error_p): Same.
4872 (print_isl_ast_node): Same.
4873 (translate_isl_ast_for_loop): Call function codegen_error_p.
4874 (translate_isl_ast_to_gimple::translate_isl_ast): Same.
4875 (translate_isl_ast_node_user): Make nb_loops const and release
4877 (get_true_edge_from_guard_bb): Move all free-functions early.
4878 (get_false_edge_from_guard_bb): Same.
4879 (bb_contains_loop_close_phi_nodes): Same.
4880 (bb_contains_loop_phi_nodes): Same.
4881 (is_loop_closed_ssa_use): Same.
4882 (number_of_phi_nodes): Same.
4883 (phi_uses_name): Same.
4884 (later_of_the_two): Same.
4885 (substitute_ssa_name):
4888 (get_loop_init_value): Same.
4889 (find_init_value): Same.
4890 (find_init_value_close_phi): Same.
4891 (ast_build_before_for): Same.
4892 (graphite_regenerate_ast_isl): Formatting changes.
4893 * graphite-scop-detection.c (build_cross_bb_scalars_use): Same.
4894 * sese.c (get_rename): Move to graphite-isl-ast-to-gimple.c
4896 (gsi_insert_earliest): Same.
4897 (collect_all_ssa_names): Same.
4898 (rename_all_uses): Same.
4899 (rename_uses): Same.
4900 (get_def_bb_for_const): Same.
4901 (copy_loop_phi_nodes): Same.
4902 (copy_loop_close_phi_args): Same.
4903 (copy_loop_close_phi_nodes): Same.
4904 (copy_cond_phi_args): Same.
4905 (copy_cond_phi_nodes): Same.
4906 (set_rename_for_each_def): Same.
4907 (graphite_copy_stmts_from_block): Same.
4908 (copy_bb_and_scalar_dependences): Same.
4909 (if_region_set_false_region): Same.
4910 (scev_analyzable_p): Same.
4911 * sese.h: Delete extern functions moved to graphite-isl-ast-to-gimple.c.
4913 2015-11-18 Andreas Tobler <andreast@gcc.gnu.org>
4915 * config/i386/freebsd.h (ASM_OUTPUT_MAX_SKIP_ALIGN): Bring in the
4916 commit from r125920 for FreeBSD.
4918 2015-11-18 Jason Merrill <jason@redhat.com>
4920 * ggc-page.c (ggc_globals): Change finalizers and vec_finalizers
4922 (add_finalizer): Split out from ggc_internal_alloc.
4923 (ggc_handle_finalizers): Run finalizers for the current depth.
4924 (init_ggc, ggc_pch_read): Reserve space for finalizers.
4926 2015-11-18 Sandra Loosemore <sandra@codesourcery.com>
4929 * config/nios2/nios2.c (cdx_and_immed): Remove duplicate tests
4932 2015-11-18 Pitchumani Sivanupandi <pitchumani.s@atmel.com>
4934 * config/avr/avr-mcus.def: Add new avr4 devices atmega48pb and
4935 atmega88pb. Add new avr5 devices ata5791, ata8210, ata8510, atmega168pb
4937 * doc/avr-mmcu.texi: Regenerate.
4939 2015-11-18 Nathan Sidwell <nathan@codesourcery.com>
4941 * config/nvptx/nvptx.c (bb_pair_t, bb_pair_vec_t): New types.
4942 (pseudo_node_t, struct bracket, bracket_vec_t): New types.
4943 (struct bb_sese): New struct.
4944 (bb_sese::~bb_sese, bb_sese::append, bb_sese::remove): New.
4945 (BB_GET_SESE, BB_SET_SESE): Define.
4946 (nvptx_sese_number, nvptx_sese_pseudo, nvptx_sese_color): New.
4947 (nvptx_find_sese): New.
4948 (nvptx_neuter_pars): Find SESE regions when optimizing.
4950 2015-11-18 Alan Modra <amodra@gmail.com>
4952 * config/rs6000/rs6000.c (use_toc_relative_ref): Ignore
4953 type-limits warning.
4955 2015-11-18 Richard Sandiford <richard.sandiford@arm.com>
4958 * hash-set.h (hash_set::traverse): Expand Key typedef.
4960 2015-11-18 Martin Liska <mliska@suse.cz>
4962 * config/arm/arm.c (arm_valid_target_attribute_p): Finalize
4965 2015-11-18 Nathan Sidwell <nathan@codesourcery.com>
4967 * config/nvptx/nvptx.c (global_lock_var): New.
4968 (nvptx_global_lock_addr): New.
4969 (nvptx_lockless_update): Recomment and adjust for clarity.
4970 (nvptx_lockfull_update): New.
4971 (nvptx_reduction_update): New.
4972 (nvptx_goacc_reduction_fini): Call it.
4974 2015-11-18 Bernd Schmidt <bschmidt@redhat.com>
4976 * regrename.h (struct du_head): Add target_data_1 and target_data_2
4978 * regrename.c (create_new_chain): Clear entire struct after allocating.
4980 * config/i386/i386.opt (mmitigate-rop): New option.
4981 * doc/invoke.texi (mmitigate-rop): Document.
4982 * config/i386/i386.c: Include "regrename.h".
4983 (ix86_rop_should_change_byte_p, reg_encoded_number,
4984 ix86_get_modrm_for_rop, set_rop_modrm_reg_bits, ix86_mitigate_rop): New
4986 (ix86_reorg): Call ix86_mitigate_rop if -fmitigate-rop.
4987 * config/i386/i386.md (attr "modrm_class"): New.
4988 (cmp<mode>_ccno_1, mov<mode>_xor, movstrict<mode>_xor,
4989 x86_mov<mode>cc_0_m1. x86_mov<mode>cc_0_m1_se)
4990 (x86_mov<mode>cc_0_m1_neg): Override modrm_class attribute.
4992 2015-11-18 Ilya Enkovich <enkovich.gnu@gmail.com>
4995 * config/i386/i386.c (ix86_expand_mask_vec_cmp): Add missing break.
4997 2015-11-18 Jakub Jelinek <jakub@redhat.com>
4999 PR tree-optimization/68157
5000 * tree-ssa-reassoc.c (attempt_builtin_powi): Set uid of
5001 pow_stmt or mul_stmt from stmt's uid.
5002 (reassociate_bb): Set uid of mul_stmt from stmt's uid.
5004 2015-11-18 Martin Liska <mliska@suse.cz>
5006 * haifa-sched.c (haifa_finish_h_i_d): Release reg_set_list.
5008 2015-11-18 Martin Liska <mliska@suse.cz>
5010 * tree-ssa-uninit.c (convert_control_dep_chain_into_preds):
5011 Fix GNU coding style.
5012 (find_def_preds): Use auto_vec.
5013 (destroy_predicate_vecs): Change signature of the function.
5014 (prune_uninit_phi_opnds_in_unrealizable_paths): Use the
5016 (simplify_preds_4): Use destroy_predicate_vecs instread of
5017 just releasing preds vector.
5018 (normalize_preds): Likewise.
5019 (is_use_properly_guarded): Use new signature of
5020 destroy_predicate_vecs.
5021 (find_uninit_use): Likewise.
5023 2015-11-18 Richard Biener <rguenther@suse.de>
5025 PR tree-optimization/67790
5026 * tree-vect-loop.c (vect_is_simple_reduction_1): Remove
5027 IL rewrite for MINUS_EXPR reductions, rename back to ...
5028 (vect_is_simple_reduction): ... this, removing the wrapper.
5029 (vect_force_simple_reduction): Adjust.
5030 (vectorizable_reduction): Adjust reduc_index for MINUS_EXPR
5031 reductions and make use if reduc_index in all places. For
5032 the final reduction of MINUS_EXPR use PLUS_EXPR.
5034 2015-11-18 Alan Modra <amodra@gmail.com>
5036 * configure.ac (POWERPC64_TOC_POINTER_ALIGNMENT): Pass -z norelro
5038 * configure: Regenerate.
5040 2015-11-17 Tom de Vries <tom@codesourcery.com>
5042 * tree-ssa-loop.c (pass_tree_loop_init::execute): Improve comments.
5044 2015-11-17 Tom de Vries <tom@codesourcery.com>
5046 * tree-scalar-evolution.c (scev_const_prop): Dump details if replacing
5047 uses of ssa_name with constant.
5049 2015-11-17 Tom de Vries <tom@codesourcery.com>
5051 * tree-ssa-ccp.c (do_ssa_ccp): Clear LOOP_CLOSED_SSA in loops state if
5054 2015-11-17 Tom de Vries <tom@codesourcery.com>
5056 * cfgloop.h (struct loop): Add in_oacc_kernels_region field.
5057 * omp-low.c (mark_loops_in_oacc_kernels_region): New function.
5058 (expand_omp_target): Call mark_loops_in_oacc_kernels_region.
5060 2015-11-17 Bernd Schmidt <bschmidt@redhat.com>
5062 * regrename.c (regrename_find_superclass): New function, code moved
5064 (rename_chains): ... here. Call it.
5065 * regrename.h (regrename_find_superclass): Declare.
5067 * regrename.c (record_out_operands): Terminate earlyclobbered
5071 * regrename.c (record_operand_use): Keep track of failed operands
5072 and stop appending if we see any.
5073 * regrename.h (struct operand_rr_info): Add a failed field and shrink
5076 2015-11-17 Sandra Loosemore <sandra@codesourcery.com>
5079 * doc/extend.texi (Common Function Attributes) [visibility]:
5080 Add cross-references to matching variable and type attributes.
5081 (Common Variable Attributes) [visibility]: Add missing entry.
5083 2015-11-17 Richard Sandiford <richard.sandiford@arm.com>
5085 * config/rs6000/rs6000.c (rs6000_builtin_vectorized_function): Remove
5086 entries that map directly to optabs.
5088 2015-11-17 Richard Sandiford <richard.sandiford@arm.com>
5090 * config/i386/i386.c (ix86_builtin_vectorized_function): Remove
5091 entries that map directly to optabs.
5093 2015-11-17 Richard Sandiford <richard.sandiford@arm.com>
5095 * internal-fn.h (direct_internal_fn_info): Add vectorizable flag.
5096 * internal-fn.c (direct_internal_fn_array): Update accordingly.
5097 * tree-vectorizer.h (vectorizable_function): Delete.
5098 * tree-vect-stmts.c: Include internal-fn.h.
5099 (vectorizable_internal_function): New function.
5100 (vectorizable_function): Inline into...
5101 (vectorizable_call): ...here. Explicitly reject calls that read
5102 from or write to memory. Try using an internal function before
5103 falling back on the old vectorizable_function behavior.
5105 2015-11-17 Richard Sandiford <richard.sandiford@arm.com>
5107 * target.def (builtin_vectorized_function): Take a combined_fn (in
5108 the form of an unsigned int) rather than a function decl.
5109 (builtin_md_vectorized_function): New.
5110 * targhooks.h (default_builtin_vectorized_function): Replace the
5111 fndecl argument with an unsigned int.
5112 (default_builtin_md_vectorized_function): Declare.
5113 * targhooks.c (default_builtin_vectorized_function): Replace the
5114 fndecl argument with an unsigned int.
5115 (default_builtin_md_vectorized_function): New function.
5116 * doc/tm.texi.in (TARGET_VECTORIZE_BUILTIN_MD_VECTORIZED_FUNCTION):
5118 * doc/tm.texi: Regenerate.
5119 * tree-vect-stmts.c (vectorizable_function): Update call to
5120 builtin_vectorized_function, also passing internal functions.
5121 Call builtin_md_vectorized_function for target-specific builtins.
5122 * config/aarch64/aarch64-protos.h
5123 (aarch64_builtin_vectorized_function): Replace fndecl argument
5124 with an unsigned int.
5125 * config/aarch64/aarch64-builtins.c: Include case-cfn-macros.h.
5126 (aarch64_builtin_vectorized_function): Update after above changes.
5128 * config/arm/arm-protos.h (arm_builtin_vectorized_function): Replace
5129 fndecl argument with an unsigned int.
5130 * config/arm/arm-builtins.c: Include case-cfn-macros.h
5131 (arm_builtin_vectorized_function): Update after above changes.
5133 * config/i386/i386.c: Include case-cfn-macros.h
5134 (ix86_veclib_handler): Take a combined_fn rather than a
5136 (ix86_veclibabi_svml, ix86_veclibabi_acml): Likewise. Use
5137 mathfn_built_in rather than calling builtin_decl_implicit directly.
5138 (ix86_builtin_vectorized_function) Update after above changes.
5140 * config/rs6000/rs6000.c: Include case-cfn-macros.h
5141 (rs6000_builtin_vectorized_libmass): Replace fndecl argument
5142 with a combined_fn. Use CASE_CFN_*. Use mathfn_built_in rather
5143 than calling builtin_decl_implicit directly.
5144 (rs6000_builtin_vectorized_function): Update after above changes.
5145 Use CASE_CFN_*. Move BUILT_IN_MD to...
5146 (rs6000_builtin_md_vectorized_function): ...this new function.
5147 (TARGET_VECTORIZE_BUILTIN_MD_VECTORIZED_FUNCTION): Define.
5149 2015-11-17 Richard Sandiford <richard.sandiford@arm.com>
5151 * tree-vect-patterns.c: Include internal-fn.h.
5152 (vect_recog_pow_pattern): Use IFN_SQRT instead of BUILT_IN_SQRT*.
5154 2015-11-17 Richard Sandiford <richard.sandiford@arm.com>
5156 * tree.h (BUILTIN_EXP10_P, BUILTIN_EXPONENT_P, BUILTIN_SQRT_P)
5157 (BUILTIN_CBRT_P, BUILTIN_ROOT_P): Delete.
5159 2015-11-17 Richard Sandiford <richard.sandiford@arm.com>
5161 * builtins.c (expand_errno_check, expand_builtin_mathfn)
5162 (expand_builtin_mathfn_2): Delete.
5163 (expand_builtin): Remove handling of functions with
5164 internal function equivalents.
5165 * internal-fn.def (SET_EDOM): New internal function.
5166 * internal-fn.h (set_edom_supported_p): Declare.
5167 * internal-fn.c (expand_SET_EDOM): New function.
5168 (set_edom_supported_p): Likewise.
5169 * tree-call-cdce.c: Include builtins.h and internal-fn.h.
5170 Rewrite comment at head of file.
5171 (is_call_dce_candidate): Rename to...
5172 (can_test_argument_range): ...this. Don't check gimple_call_lhs
5173 or gimple_call_builtin_p here.
5174 (edom_only_function): New function.
5175 (shrink_wrap_one_built_in_call_with_conds): New function, split out
5177 (shrink_wrap_one_built_in_call): ...here.
5178 (can_use_internal_fn, use_internal_fn): New functions.
5179 (shrink_wrap_conditional_dead_built_in_calls): Call use_internal_fn
5180 for calls that have an lhs.
5181 (pass_call_cdce::gate): Remove optimize_function_for_speed_p check.
5182 (pass_call_cdce::execute): Skip blocks that are optimized for size.
5183 Check gimple_call_builtin_p here. Use can_use_internal_fn for
5185 * opts.c (default_options_table): Enable -ftree-builtin-call-cdce
5188 2015-11-17 Richard Sandiford <richard.sandiford@arm.com>
5190 * builtins.h (called_as_built_in): Declare.
5191 * builtins.c (called_as_built_in): Make external.
5192 * internal-fn.h (expand_internal_call): Define a variant that
5193 specifies the internal function explicitly.
5194 * internal-fn.c (expand_load_lanes_optab_fn)
5195 (expand_store_lanes_optab_fn, expand_ANNOTATE, expand_GOMP_SIMD_LANE)
5196 (expand_GOMP_SIMD_VF, expand_GOMP_SIMD_LAST_LANE)
5197 (expand_GOMP_SIMD_ORDERED_START, expand_GOMP_SIMD_ORDERED_END)
5198 (expand_UBSAN_NULL, expand_UBSAN_BOUNDS, expand_UBSAN_VPTR)
5199 (expand_UBSAN_OBJECT_SIZE, expand_ASAN_CHECK, expand_TSAN_FUNC_EXIT)
5200 (expand_UBSAN_CHECK_ADD, expand_UBSAN_CHECK_SUB)
5201 (expand_UBSAN_CHECK_MUL, expand_ADD_OVERFLOW, expand_SUB_OVERFLOW)
5202 (expand_MUL_OVERFLOW, expand_LOOP_VECTORIZED)
5203 (expand_mask_load_optab_fn, expand_mask_store_optab_fn)
5204 (expand_ABNORMAL_DISPATCHER, expand_BUILTIN_EXPECT, expand_VA_ARG)
5205 (expand_UNIQUE, expand_GOACC_DIM_SIZE, expand_GOACC_DIM_POS)
5206 (expand_GOACC_LOOP, expand_GOACC_REDUCTION, expand_direct_optab_fn)
5207 (expand_unary_optab_fn, expand_binary_optab_fn): Add an internal_fn
5209 (internal_fn_expanders): Update prototype.
5210 (expand_internal_call): Define a variant that specifies the
5211 internal function explicitly. Use it to implement the previous
5213 * cfgexpand.c (expand_call_stmt): Try to expand calls to built-in
5214 functions as calls to internal functions.
5216 2015-11-17 Richard Sandiford <richard.sandiford@arm.com>
5218 * Makefile.in (MOSTLYCLEANFILES): Add cfn-operators.pd.
5219 (generated_files): Likewise.
5220 (s-cfn-operators, cfn-operators.pd): New rules.
5221 (s-match): Depend on cfn-operators.pd.
5222 * gencfn-macros.c: Expand comment to describe -o behavior.
5223 (print_define_operator_list): New function.
5224 (main): Accept -o. Call print_define_operator_list.
5225 * genmatch.c (main): Add the current directory to the include path.
5226 * match.pd (DEFINE_MATH_FN): Delete. Include cfn-operators.pd
5229 2015-11-17 Richard Sandiford <richard.sandiford@arm.com>
5231 * doc/match-and-simplify.texi: Document the "null" identifier.
5232 * genmatch.c (id_base::NULL_ID): New kind.
5233 (null_id): New variable.
5234 (get_operator): Add a parameter that says whether null identifiers
5236 (contains_id): New function.
5237 (lower_for): Skip substitutions that would have a null_id in
5238 either the match or the result.
5239 (parser::parse_for): Allow the null identifier to be used.
5240 (parser::parse_operator_list): Likewise.
5241 (main): Initialize null_id.
5243 2015-11-17 Richard Sandiford <richard.sandiford@arm.com>
5245 * match.pd: Use HYPOT and COS rather than hypot and cos.
5246 Use CASE_CFN_* macros. Guard log/exp folds with
5247 SCALAR_FLOAT_TYPE_P.
5248 * genmatch.c (internal_fn): New enum.
5249 (fn_id::fn): Change to an unsigned int.
5250 (fn_id::fn_id): Accept internal_fn too.
5251 (add_builtin): Rename to...
5252 (add_function): ...this and turn into a template.
5253 (get_operator): Only try one variation if the original name fails.
5254 Only add _EXPR if the original name was all lower case.
5255 Try converting internal and built-in function names to their
5257 (expr::gen_transform): Use maybe_build_call_expr_loc for generic.
5258 (dt_simplify::gen_1): Likewise.
5259 (dt_node::gen_kids_1): Use gimple_call_combined_fn for gimple
5260 and get_call_combined_fn for generic.
5261 (dt_simplify::gen): Use combined_fn as the type of fn_ids.
5262 (decision_tree::gen): Likewise.
5263 (main): Use lower case in the strings for {VIEW_,}CONVERT[012].
5264 Use add_function rather than add_builtin. Register internal
5266 * generic-match-head.c: Include case-cfn-macros.h.
5267 * gimple-fold.c (replace_stmt_with_simplification): Use
5268 gimple_call_combined_fn to test whether we can keep an
5270 * gimple-match.h (code_helper): Replace built_in_function
5272 * gimple-match-head.c: Include fold-const-call.h, internal-fn.h
5273 and case-fn-macros.h.
5274 (gimple_resimplify1): Use fold_const_call.
5275 (gimple_resimplify2, gimple_resimplify3): Likewise.
5276 (build_call_internal, build_call): New functions.
5277 (maybe_push_res_to_seq): Use them.
5278 (gimple_simplify): Use fold_const_call. Set *rcode to a combined_fn
5279 rather than a built-in function.
5280 * tree.h (build_call_expr_internal_loc): Declare.
5281 (maybe_build_call_expr_loc): Likewise.
5282 * tree.c (build_call_expr_internal_loc_array): New function.
5283 (maybe_build_call_expr_loc): Likewise.
5285 2015-11-17 Richard Sandiford <richard.sandiford@arm.com>
5287 * builtins.h (mathfn_built_in): Add a variant that takes
5289 * builtins.c: Include case-cfn-macros.h.
5290 (CASE_MATHFN): Use CASE_CFN_*.
5291 (CASE_MATHFN_REENT): Use CFN_ codes.
5292 (mathfn_built_in_2, mathfn_built_in_1): Replace built_in_function
5293 argument with a combined_fn.
5294 (mathfn_built_in): Add a variant that takes a combined_fn.
5295 (expand_builtin_int_roundingfn_2): Update callers accordingly.
5296 (fold_builtin_sincos, fold_builtin_classify): Likewise.
5298 2015-11-17 Richard Sandiford <richard.sandiford@arm.com>
5300 * tree-vect-patterns.c: Include case-cfn-macros.h.
5301 (vect_recog_pow_pattern): Use combined_fn instead of built-in codes.
5303 2015-11-17 Richard Sandiford <richard.sandiford@arm.com>
5305 * tree-ssa-math-opts.c: Include case-cfn-macros.h.
5306 (execute_cse_sincos_1): Use combined_fn instead of built-in codes.
5307 (pass_cse_sincos::execute): Likewise.
5309 2015-11-17 Richard Sandiford <richard.sandiford@arm.com>
5311 * tree-ssa-reassoc.c: Include case-cfn-macros.h.
5312 (stmt_is_power_of_op): Use combined_fn instead of built-in codes.
5313 (decrement_power, acceptable_pow_call): Likewise.
5314 (attempt_builtin_copysign): Likewise.
5316 2015-11-17 Richard Sandiford <richard.sandiford@arm.com>
5318 * tree-vrp.c: Include case-cfn-macros.h.
5319 (extract_range_basic): Switch on combined_fn rather than handling
5320 built-in functions and internal functions separately.
5322 2015-11-17 Richard Sandiford <richard.sandiford@arm.com>
5324 * fold-const.h (negate_mathfn_p): Take a combined_fn rather
5325 than a built_in_function.
5326 (tree_call_nonnegative_warnv_p): Take a combined_fn rather than
5328 (integer_valued_real_call_p): Likewise.
5329 * fold-const.c: Include case-cfn-macros.h
5330 (negate_mathfn_p): Take a combined_fn rather than a built_in_function.
5331 (negate_expr_p): Update accordingly.
5332 (tree_call_nonnegative_warnv_p): Take a combined_fn rather than
5334 (integer_valued_real_call_p): Likewise.
5335 (tree_invalid_nonnegative_warnv_p): Update accordingly.
5336 (integer_valued_real_p): Likewise.
5337 * gimple-fold.c (gimple_call_nonnegative_warnv_p): Update call
5338 to tree_call_nonnegative_warnv_p.
5339 (gimple_call_integer_valued_real_p): Likewise
5340 integer_valued_real_call_p.
5341 * gimple-ssa-backprop.c: Include case-cfn-macros.h.
5342 (backprop::process_builtin_call_use): Extend to combined_fn.
5343 (strip_sign_op_1): Likewise.
5344 (backprop::process_use): Don't check for built-in calls here.
5345 (backprop::execute): Likewise.
5346 (backprop::optimize_builtin_call): Update call to negate_mathfn_p.
5348 2015-11-17 Richard Sandiford <richard.sandiford@arm.com>
5350 * fold-const-call.h (fold_const_call): Replace built_in_function
5351 arguments with combined_fn arguments.
5352 * fold-const-call.c: Include case-cfn-macros.h.
5353 (fold_const_call_ss, fold_const_call_cs, fold_const_call_sc)
5354 (fold_const_call_cc, fold_const_call_sss, fold_const_call_ccc)
5355 (fold_const_call_ssss, fold_const_call_1, fold_const_call): Replace
5356 built_in_function arguments with combined_fn arguments.
5357 * builtins.c (fold_builtin_sincos, fold_builtin_1, fold_builtin_2)
5358 (fold_builtin_3): Update calls to fold_const_call.
5360 2015-11-17 Richard Sandiford <richard.sandiford@arm.com>
5362 * Makefile.in (HASH_TABLE_H): Add GGC_H.
5363 (MOSTLYCLEANFILES, generated_files): Add case-fn-macros.h.
5364 (s-case-cfn-macros, case-cfn-macros.h, build/gencfn-macros.o)
5365 (build/gencfn-macros$(build_exeext): New rules.
5366 (genprogerr): Add cfn-macros.
5367 * hash-set.h (hash_set): Use the traits value_type as the key.
5368 * gencfn-macros.c: New file.
5370 2015-11-17 Richard Sandiford <richard.sandiford@arm.com>
5372 * internal-fn.def (DEF_INTERNAL_INT_FN): New macro.
5373 (CLRSB, CLZ, CTZ, FFS, PARITY, POPCOUNT): New functions.
5374 * builtins.c (associated_internal_fn): Handle them.
5376 2015-11-17 Richard Sandiford <richard.sandiford@arm.com>
5378 * builtins.h (associated_internal_fn): Declare.
5379 (replacement_internal_fn): Likewise.
5380 * builtins.c: Include internal-fn.h
5381 (associated_internal_fn, replacement_internal_fn): New functions.
5382 * internal-fn.def (DEF_INTERNAL_FLT_FN): New macro.
5383 (ACOS, ASIN, ATAN, COS, EXP, EXP10, EXP2, EXPM1, LOG, LOG10, LOG1P)
5384 (LOG2, LOGB, SIGNIFICAND, SIN, SQRT, TAN, CEIL, FLOOR, NEARBYINT)
5385 (RINT, ROUND, TRUNC, ATAN2, COPYSIGN, FMOD, POW, REMAINDER, SCALB)
5386 (LDEXP): New functions.
5387 * internal-fn.c: Include recog.h.
5388 (unary_direct, binary_direct): New macros.
5389 (expand_direct_optab_fn): New function.
5390 (expand_unary_optab_fn): New macro.
5391 (expand_binary_optab_fn): Likewise.
5392 (direct_unary_optab_supported_p): Likewise.
5393 (direct_binary_optab_supported_p): Likewise.
5395 2015-11-17 Richard Sandiford <richard.sandiford@arm.com>
5397 * coretypes.h (tree_pair): New type.
5398 * internal-fn.def (DEF_INTERNAL_OPTAB_FN): New macro. Use it
5399 for MASK_LOAD, LOAD_LANES, MASK_STORE and STORE_LANES.
5400 * internal-fn.h (direct_internal_fn_info): New structure.
5401 (direct_internal_fn_array): Declare.
5402 (direct_internal_fn_p, direct_internal_fn): New functions.
5403 (direct_internal_fn_types, direct_internal_fn_supported_p): Declare.
5404 * internal-fn.c (not_direct, mask_load_direct, load_lanes_direct)
5405 (mask_store_direct, store_lanes_direct): New macros.
5406 (direct_internal_fn_array) New array.
5407 (get_multi_vector_move): Return the optab handler without asserting
5408 that it is available.
5409 (expand_LOAD_LANES): Rename to...
5410 (expand_load_lanes_optab_fn): ...this and add an optab argument.
5411 (expand_STORE_LANES): Rename to...
5412 (expand_store_lanes_optab_fn): ...this and add an optab argument.
5413 (expand_MASK_LOAD): Rename to...
5414 (expand_mask_load_optab_fn): ...this and add an optab argument.
5415 (expand_MASK_STORE): Rename to...
5416 (expand_mask_store_optab_fn): ...this and add an optab argument.
5417 (direct_internal_fn_types, direct_optab_supported_p)
5418 (multi_vector_optab_supported_p, direct_internal_fn_supported_p)
5419 (direct_internal_fn_supported_p): New functions.
5420 (direct_mask_load_optab_supported_p): New macro.
5421 (direct_load_lanes_optab_supported_p): Likewise.
5422 (direct_mask_store_optab_supported_p): Likewise.
5423 (direct_store_lanes_optab_supported_p): Likewise.
5425 2015-11-17 Richard Sandiford <richard.sandiford@arm.com>
5427 * tree-core.h (internal_fn): Move immediately after the definition
5428 of built_in_function.
5429 (combined_fn): New enum.
5430 * tree.h (as_combined_fn, builtin_fn_p, as_builtin_fn)
5431 (internal_fn_p, as_internal_fn): New functions.
5432 (get_call_combined_fn, combined_fn_name): Declare.
5433 * tree.c (get_call_combined_fn): New function.
5434 (combined_fn_name): Likewise.
5435 * gimple.h (gimple_call_combined_fn): Declare.
5436 * gimple.c (gimple_call_combined_fn): New function.
5438 2015-11-17 Martin Sebor <msebor@redhat.com>
5441 * cp/init.c (build_new_1): Check for expression constness
5444 2015-11-17 Sandra Loosemore <sandra@codesourcery.com>
5447 * doc/invoke.texi (Option Summary): Add -mms-bitfields to x86
5449 (x86 Options): Add -mms-bitfields and -mno-ms-bitfields. Move
5450 discussion of the Microsoft structure layout details here from
5451 its former home in extend.texi.
5452 * doc/extend.texi (x86 Variable Attributes): Replace detailed
5453 discussion with pointer to its new location. Add cross-reference
5454 to corresponding type attributes.
5455 (x86 Type Attributes): Add cross-references to command-line options
5456 and variable attributes.
5458 2015-11-17 Ilya Enkovich <enkovich.gnu@gmail.com>
5461 * targhooks.c (default_get_mask_mode): Filter out
5462 scalar modes returned by mode_for_vector.
5464 2015-11-17 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5467 * config/arm/arm.c (arm_block_set_unaligned_vect): Keep track of
5468 offset from dstbase and use it appropriately in
5469 adjust_automodify_address.
5470 (arm_block_set_aligned_vect): Likewise.
5472 2015-11-17 Eric Botcazou <ebotcazou@adacore.com>
5474 * config/visium/t-visium (MULTILIB_OPTIONS): Add muser-mode.
5475 (MULTILIB_DIRNAMES): Adjust accordingly.
5477 2015-11-17 James Greenhalgh <james.greenhalgh@arm.com>
5479 * config/aarch64/aarch64-cores.def (cortex-a35): New.
5480 * config/aarch64/aarch64.c (cortexa35_tunings): New.
5481 * config/aarch64/aarch64-tune.md: Regenerate.
5482 * doc/invoke.texi (-mcpu): Add Cortex-A35
5484 2015-11-17 Uros Bizjak <ubizjak@gmail.com>
5487 * config/i386/i386.h (BIGGEST_ALIGNMENT): Always define
5489 * config/i386/sse.md (*mov<mode>_internal): Always enable
5490 AVX and SSE unaligned moves for IAMCU.
5492 2015-11-17 Venkataramanan Kumar <Venkataramanan.Kumar@amd.com>
5494 * tree-if-conv.c: Include varasm.h
5495 (ref_DR_map): Define.
5496 (baseref_DR_map): Like wise
5497 (struct ifc_dr): Add new tree predicate field.
5498 (hash_memrefs_baserefs_and_store_DRs_read_written_info): New function.
5499 (memrefs_read_or_written_unconditionally): Remove.
5500 (write_memrefs_written_at_least_once): Remove.
5501 (ifcvt_memrefs_wont_trap): Use hash maps to query
5502 unconditional read/written information.
5503 (if_convertible_loop_p_1): Initialize hash maps and predicates
5504 before hashing data references and delete hashmaps at the end.
5506 2015-11-16 Thomas Preud'homme <thomas.preudhomme@arm.com>
5509 * doc/invoke.texi (Optimize Options): Move @end table to the right
5512 2015-11-16 Sandra Loosemore <sandra@codesourcery.com>
5515 * doc/extend.texi (__builtin_assume_aligned): Fix formatting of
5518 2015-11-16 Michael Meissner <meissner@linux.vnet.ibm.com>
5520 * config/rs6000/vsx.md (VSX_L): Do not include IBM extended double
5521 128-bit types, just types that fit in a single vector.
5522 * config/rs6000/rs6000.md (FMOVE128_GPR): Likewise.
5524 2015-11-16 David Wohlferd <dw@LimeGreenSocks.com>
5526 * doc/md.texi ('#' and '*' constraint modifiers): Do not include these
5527 in the user documentation.
5528 (define_peephole2, define_split): Similarly.
5530 2015-11-16 Andris Pavenis <andris.pavenis@iki.fi>
5532 * lto-streamer-out.c (write_global_references): Adjust integer type.
5533 (lto_output_decl_state_refs): Likewise.
5535 2015-11-16 James Greenhalgh <james.greenhalgh@arm.com>
5537 * config/arm/arm-cores.def (cortex-a35): New.
5538 * config/arm/arm.c (arm_cortex_a35_tune): New.
5539 * config/arm/arm-tables.opt: Regenerate.
5540 * config/arm/arm-tune.md: Regenerate.
5541 * config/arm/bpabi.h (BE8_LINK_SPEC): Add cortex-a35.
5542 * config/arm/t-aprofile: Likewise.
5543 * doc/invoke.texi (-mcpu): Likewise.
5545 2015-11-16 Jim Wilson <jim.wilson@linaro.org>
5547 * config/arm/t-aprofile (MULTILIB_MATCHES): Add lines for exynos-m1
5548 and qdf24xx and xgene1 to match -march=armv8-a.
5550 2015-11-16 Segher Boessenkool <segher@kernel.crashing.org>
5552 PR rtl-optimization/68330
5553 * simplify-rtx.c (simplify_unary_operation_1): Simplify SIGN_EXTEND
5554 of LSHIFTRT by a non-zero constant integer.
5556 2015-11-16 Richard Biener <rguenther@suse.de>
5558 PR tree-optimization/68306
5559 * tree-vect-data-refs.c (vect_verify_datarefs_alignment): Fix
5560 bogus copying from verify_data_ref_alignment and use continue
5563 2015-11-16 Oleg Endo <olegendo@gcc.gnu.org>
5564 Kaz Kojima <kkojima@gcc.gnu.org>
5567 * config/sh/sh.md (addsi3_scr): Handle reg overlap of operands[0] and
5569 (*addsi3): Add another insn_and_split variant for reload.
5571 2015-11-16 Richard Biener <rguenther@suse.de>
5574 * cfgexpand.c (pass_expand::execute): Destroy the edge
5575 redirection var map before setting RTL CFG hooks.
5577 2015-11-16 Alan Lawrence <alan.lawrence@arm.com>
5579 * config/i386/sse.md (reduc_splus_v8df): Rename to...
5580 (reduc_plus_scal_v8df): ...here; reduce to temp and extract scalar.
5582 (reduc_splus_v4df): Rename to...
5583 (reduc_plus_scal_v4df): ...here; reduce to temp and extract scalar.
5585 (reduc_splus_v2df): Rename to...
5586 (reduc_plus_scal_v2df): ...here; reduce to temp and extract scalar.
5588 (reduc_splus_v16sf): Rename to...
5589 (reduc_plus_scal_v16sf): ...here; reduce to temp and extract scalar.
5591 (reduc_splus_v8sf): Rename to...
5592 (reduc_plus_scal_v8sf): ...here; reduce to temp and extract scalar.
5594 (reduc_splus_v4sf): Rename to...
5595 (reduc_plus_scal_v4sf): ...here; reduce to temp and extract scalar.
5597 (reduc_<code>_<mode>, all 3 variants): Rename each to...
5598 (reduc_<code>_scal_<mode>): ...here; reduce to temp and extract scalar.
5600 (reduc_umin_v8hf): Rename to...
5601 (reduc_umin_scal_v8hf): ...here; reduce to temp and extract scalar.
5603 2015-11-16 Kirill Yukhin <kirill.yukhin@intel.com>
5605 * omp-low.c (pass_omp_simd_clone::gate): If target allows - call
5606 without additional conditions.
5607 * doc/extend.texi (@item simd): New.
5609 2015-11-16 Tom de Vries <tom@codesourcery.com>
5611 * passes.c (first_pass_instance): Remove variable.
5612 (execute_todo): Remove setting of first_pass_instance.
5613 * tree-pass.h (first_pass_instance): Remove declaration.
5615 2015-11-16 Tom de Vries <tom@codesourcery.com>
5617 * passes.def: Add arg to pass_ccp pass instantiation.
5618 * tree-ssa-ccp.c (ccp_finalize): Add param nonzero_p. Use nonzero_p
5619 instead of first_pass_instance.
5620 (do_ssa_ccp): Add and handle param nonzero_p.
5621 (pass_ccp::pass_ccp): Initialize nonzero_p.
5622 (pass_ccp::set_pass_param): New member function. Set nonzero_p.
5623 (pass_ccp::execute): Call do_ssa_ccp with extra arg.
5624 (pass_ccp::nonzero_p): New private member.
5626 2015-11-16 Tom de Vries <tom@codesourcery.com>
5628 * passes.def: Add arg to pass_object_sizes pass instantiation.
5629 * tree-object-size.c (pass_object_sizes::pass_object_sizes): Initialize
5631 (pass_object_sizes::set_pass_param): New member function. Set
5633 (pass_object_sizes::insert_min_max_p): New private member.
5634 (pass_object_sizes::execute): Use insert_min_max_p instead of
5635 first_pass_instance.
5637 2015-11-16 Tom de Vries <tom@codesourcery.com>
5639 * passes.def: Add arg to pass_dominator pass instantiation.
5640 * tree-pass.h (first_pass_instance): Remove pass_dominator-related bit
5642 * tree-ssa-dom.c (pass_dominator::pass_dominator): Initialize
5643 may_peel_loop_headers_p.
5644 (pass_dominator::set_pass_param): New member function. Set
5645 may_peel_loop_headers_p.
5646 (pass_dominator::may_peel_loop_headers_p): New private member.
5647 (pass_dominator::execute): Use may_peel_loop_headers_p instead of
5648 first_pass_instance.
5650 2015-11-16 Tom de Vries <tom@codesourcery.com>
5652 * passes.def: Add arg to pass_reassoc pass instantiation.
5653 * tree-ssa-reassoc.c (reassoc_insert_powi_p): New static variable.
5654 (acceptable_pow_call, reassociate_bb): Use reassoc_insert_powi_p instead
5655 of first_pass_instance.
5656 (execute_reassoc): Add and handle insert_powi_p parameter.
5657 (pass_reassoc::insert_powi_p): New private member.
5658 (pass_reassoc::pass_reassoc): Initialize insert_powi_p.
5659 (pass_reassoc::set_pass_param): New member function. Set insert_powi_p.
5660 (pass_reassoc::execute): Call execute_reassoc with extra arg.
5662 2015-11-16 Tom de Vries <tom@codesourcery.com>
5664 * gdbhooks.py (class PassNames): Handle extra arg NEXT_PASS argument.
5665 * gen-pass-instances.awk (handle_line): Same.
5666 * pass_manager.h (class pass_manager): Define and undefine
5668 * passes.c (opt_pass::set_pass_param): New function.
5669 (pass_manager::pass_manager): Define and undefine NEXT_PASS_WITH_ARG.
5670 * passes.def: Add extra arg to NEXT_PASS (pass_vrp).
5671 * tree-pass.h (gimple_opt::set_pass_param): Declare.
5672 * tree-vrp.c (vrp_finalize, execute_vrp): Add and handle
5673 warn_array_bounds_p parameter.
5674 (pass_vrp::pass_vrp): Initialize warn_array_bounds_p.
5675 (pass_vrp::set_pass_param): New function.
5676 (pass_vrp::execute): Add warn_array_bounds_p arg to execute_vrp call.
5677 (pass_vrp::warn_array_bounds_p): New private member.
5679 2015-11-16 Eric Botcazou <ebotcazou@adacore.com>
5681 * config/sparc/sparc.c (sparc_emit_probe_stack_range): Adjust.
5682 (output_probe_stack_range): Rotate the loop and simplify.
5684 2015-11-16 Eric Botcazou <ebotcazou@adacore.com>
5686 * config/rs6000/rs6000.c (rs6000_emit_probe_stack_rang): Adjust.
5687 (output_probe_stack_range): Rotate the loop and simplify.
5689 2015-11-16 Eric Botcazou <ebotcazou@adacore.com>
5691 * config/i386/i386.c (ix86_adjust_stack_and_probe): Adjust and use
5692 an lea instruction when possible.
5693 (output_adjust_stack_and_probe): Rotate the loop and simplify.
5694 (ix86_emit_probe_stack_range): Adjust.
5695 (output_probe_stack_range): Rotate the loop and simplify.
5697 2015-11-16 Christian Bruel <christian.bruel@st.com>
5699 * config/arm/arm_neon.h: Remove #ifndef check on __ARM_NEON.
5700 Replace #ifdef __ARM_FEATURE_CRYPTO, __ARM_FEATURE_FMA, __ARM_FP
5701 with appropriate pragma GCC target.
5703 2015-11-16 Christian Bruel <christian.bruel@st.com>
5706 * config/arm/arm-c.c (arm_cpu_builtins): Conditionally set and reset
5707 __ARM_FEATURE_FMA and __ARM_NEON_FP, __ARM_FP.
5709 2015-11-16 James Greenhalgh <james.greenhalgh@arm.com>
5711 * config/aarch64/aarch64.c (cortexa57_branch_costs): New.
5712 (cortexa57_tunings): Use it.
5714 2015-11-16 Christian Bruel <christian.bruel@st.com>
5717 * config/arm/arm-c.c (arm_cpu_builtins): Set or reset
5718 __ARM_FEATURE_CRYPTO, __VFP_FP__, __ARM_NEON__
5719 (arm_pragma_target_parse): Change check for arm_cpu_builtins.
5721 * config/arm/arm.c (arm_can_inline_p): Check FPUs.
5722 (arm_valid_target_attribute_rec): Handle -mfpu attribute target.
5723 * doc/invoke.texi (-mfpu=): Mention attribute and pragma.
5724 * doc/extend.texi (-mfpu=): Describe attribute.
5726 2015-11-16 Christian Bruel <christian.bruel@st.com>
5729 * config/arm/arm-protos.h (arm_init_neon_builtins): Declare.
5730 * config/arm/arm.c (arm_valid_target_attribute_tree): Call
5731 arm_init_neon_builtins.
5732 * config/arm/arm-builtins.c (arm_init_neon_builtins): Split into...
5733 (arm_init_neon_builtins_internal)
5734 (arm_init_crypto_builtins_internal):
5735 Test and set neon_set_p, neon_crypto_set_p.
5736 (neon_set_p, neon_crypto_set_p): New static booleans.
5738 2015-11-16 Christian Bruel <christian.bruel@st.com>
5741 * config/arm/arm.c (arm_fpu_desc): Remove.
5742 (all_fpus): Make global.
5743 (arm_option_override): Use FPU TARGET accessors.
5744 (arm_declare_function_name): Likewise.
5745 * config/arm/arm.h (TARGET_VFP, TARGET_VFPD32, TARGET_VFP5)
5746 (TARGET_VFP_SINGLE, TARGET_VFP_DOUBLE, TARGET_NEON_FP16)
5747 (TARGET_FP16, TARGET_FMA, TARGET_FPU_ARMV8, TARGET_CRYPTO)
5748 (TARGET_NEON): Likewise.
5749 (all_fpus): Declare extern.
5750 (TARGET_FPU_NAME, TARGET_FPU_MODEL, TARGET_FPU_REV)
5751 (TARGET_FPU_REGS, TARGET_FPU_FEATURES): Define all_fpus accessors.
5753 2015-11-15 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
5756 * sdbout.c: Include emit-rtl.h and function.h.
5758 2015-11-15 Gerald Pfeifer <gerald@pfeifer.com>
5760 * config/i386/freebsd.h (SUBTARGET32_DEFAULT_CPU): Change to i586.
5761 Remove support for FreeBSD 5 and earlier.
5763 2015-11-14 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
5765 * configure: Regenerate.
5766 * configure.ac: Always define ENABLE_OFFLOADING.
5767 * cgraph.c (cgraph_node::create): Adjust.
5768 * gcc.c (process_command): Likewise.
5769 * omp-low.c (create_omp_child_function): Likewise.
5770 (expand_omp_target): Likewise.
5771 * varpool.c (varpool_node::get_create): Likewise.
5773 2015-11-14 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
5775 * defaults.h (EH_RETURN_HANDLER_RTX): New default definition.
5776 * df-scan.c (df_get_exit_block_use_set): Adjust.
5777 * except.c (expand_eh_return): Likewise.
5779 2015-11-14 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
5781 * config/i386/i386.h (TARGET_PECOFF): Remove define.
5782 * defaults.h (TARGET_PECOFF): New default definition.
5783 * varasm.c (handle_vtv_comdat_section): Adjust.
5785 2015-11-14 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
5787 * defaults.h: New definition of SDB_DEBUGGING_INFO.
5788 * doc/tm.texi: Regenerate.
5789 * doc/tm.texi.in: Adjust.
5790 * final.c (rest_of_clean_state): Remove check if
5791 SDB_DEBUGGING_INFO is defined.
5792 * function.c (number_blocks): Likewise.
5793 * output.h: Likewise.
5794 * sdbout.c: Likewise.
5795 * toplev.c (process_options): Likewise.
5797 2015-11-14 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
5799 * gsyms.h (enum sdb_type): Remove code for EXTENDED_SDB_BASIC_TYPES.
5800 (enum sdb_masks): Likewise.
5801 * sdbout.c (plain_type_1): Likewise.
5802 * system.h: Poison EXTENDED_SDB_BASIC_TYPES macro.
5804 2015-11-14 Jakub Jelinek <jakub@redhat.com>
5806 * omp-low.c (lower_omp_ordered): Add argument to GOMP_SMD_ORDERED_*
5807 internal calls - 0 if ordered simd and 1 for ordered threads simd.
5808 * tree-vectorizer.c (adjust_simduid_builtins): If GOMP_SIMD_ORDERED_*
5809 argument is 1, replace it with GOMP_ordered_* call instead of removing
5812 2015-11-13 Rich Felker <dalias@libc.org>
5814 * config/sh/sh.md (symGOT_load): Suppress __stack_chk_guard
5815 address loading hack for FDPIC targets.
5817 2015-11-13 Ajit Agarwal <ajitkum@xilinx.com>
5818 Jeff Law <law@redhat.com>
5820 * Makefile.in (OBJS): Add gimple-ssa-split-paths.o
5821 * common.opt (-fsplit-paths): New flag controlling path splitting.
5822 * doc/invoke.texi (fsplit-paths): Document.
5823 * opts.c (default_options_table): Add -fsplit-paths to -O2.
5824 * passes.def: Add split_paths pass.
5825 * timevar.def (TV_SPLIT_PATHS): New timevar.
5826 * tracer.c: Include "tracer.h"
5827 (ignore_bb_p): No longer static.
5828 (transform_duplicate): New function, broken out of tail_duplicate.
5829 (tail_duplicate): Use transform_duplicate.
5830 * tracer.h (ignore_bb_p): Declare
5831 (transform_duplicate): Likewise.
5832 * tree-pass.h (make_pass_split_paths): Declare.
5833 * gimple-ssa-split-paths.c: New file.
5835 2015-11-13 Kai Tietz <ktietz70@googlemail.com>
5836 Marek Polacek <polacek@redhat.com>
5837 Jason Merrill <jason@redhat.com>
5839 * convert.c (maybe_fold_build1_loc): New.
5840 (maybe_fold_build2_loc): New.
5841 (convert_to_pointer_1): Split out from convert_to_pointer.
5842 (convert_to_pointer_nofold): New.
5843 (convert_to_real_1): Split out from convert_to_real.
5844 (convert_to_real_nofold): New.
5845 (convert_to_integer_1): Split out from convert_to_integer.
5846 (convert_to_integer_nofold): New.
5847 (convert_to_complex_1): Split out from convert_to_complex.
5848 (convert_to_complex_nofold): New.
5849 * convert.h: Declare new functions.
5850 * tree-complex.c (create_one_component_var): Break up line to
5851 avoid sequence point issues.
5853 2015-11-13 Jason Merrill <jason@redhat.com>
5855 * fold-const.c (fold_convert_const): Fold changing cv-quals on
5858 * hash-map.h (hash_map::empty): New.
5860 2015-11-13 Nathan Sidwell <nathan@codesourcery.com>
5862 * omp-low.c (scan_sharing_clauses): Accept INDEPENDENT, AUTO & SEQ.
5863 (oacc_loop_fixed_partitions): Correct return type to bool.
5864 (oacc_loop_auto_partitions): New.
5865 (oacc_loop_partition): Take mask argument, call
5866 oacc_loop_auto_partitions.
5867 (execute_oacc_device_lower): Provide mask to oacc_loop_partition.
5869 2015-11-13 Michael Meissner <meissner@linux.vnet.ibm.com>
5871 * config/rs6000/constraints.md (we constraint): New constraint for
5872 64-bit power9 vector support.
5873 (wL constraint): New constraint for the element in a vector that
5874 can be addressed by the MFVSRLD instruction.
5876 * config/rs6000/rs6000-protos.h (convert_float128_to_int): Add
5878 (convert_int_to_float128): Likewise.
5879 (rs6000_generate_compare): Add support for ISA 3.0 (power9)
5880 hardware support for IEEE 128-bit floating point.
5881 (rs6000_expand_float128_convert): Likewise.
5882 (convert_float128_to_int): Likewise.
5883 (convert_int_to_float128): Likewise.
5885 * config/rs6000/rs6000.md (UNSPEC_ROUND_TO_ODD): New unspecs for
5886 ISA 3.0 hardware IEEE 128-bit floating point.
5887 (UNSPEC_IEEE128_MOVE): Likewise.
5888 (UNSPEC_IEEE128_CONVERT): Likewise.
5889 (FMA_F): Add support for IEEE 128-bit floating point hardware support.
5890 (Ff): Add support for DImode.
5892 (any_fix code iterator): New and updated iterators for IEEE
5893 128-bit floating point hardware support.
5894 (any_float code iterator): Likewise.
5895 (s code attribute): Likewise.
5896 (su code attribute): Likewise.
5897 (az code attribute): Likewise.
5898 (uns code attribute): Likewise.
5899 (neg<mode>2, FLOAT128 iterator): Add support for IEEE 128-bit
5900 floating point hardware support.
5901 (abs<mode>2, FLOAT128 iterator): Likewise.
5902 (add<mode>3, IEEE128 iterator): New insns for IEEE 128-bit
5903 floating point hardware.
5904 (sub<mode>3, IEEE128 iterator): Likewise.
5905 (mul<mode>3, IEEE128 iterator): Likewise.
5906 (div<mode>3, IEEE128 iterator): Likewise.
5907 (copysign<mode>3, IEEE128 iterator): Likewise.
5908 (sqrt<mode>2, IEEE128 iterator): Likewise.
5909 (neg<mode>2, IEEE128 iterator): Likewise.
5910 (abs<mode>2, IEEE128 iterator): Likewise.
5911 (nabs<mode>2, IEEE128 iterator): Likewise.
5912 (fma<mode>4_hw, IEEE128 iterator): Likewise.
5913 (fms<mode>4_hw, IEEE128 iterator): Likewise.
5914 (nfma<mode>4_hw, IEEE128 iterator): Likewise.
5915 (nfms<mode>4_hw, IEEE128 iterator): Likewise.
5916 (extend<SFDF:mode><IEEE128:mode>2_hw): Likewise.
5917 (trunc<mode>df2_hw, IEEE128 iterator): Likewise.
5918 (trunc<mode>sf2_hw, IEEE128 iterator): Likewise.
5919 (fix_fixuns code attribute): Likewise.
5920 (float_floatuns code attribute): Likewise.
5921 (fix<uns>_<mode>si2_hw): Likewise.
5922 (fix<uns>_<mode>di2_hw): Likewise.
5923 (float<uns>_<mode>si2_hw): Likewise.
5924 (float<uns>_<mode>di2_hw): Likewise.
5925 (xscvqp<su>wz_<mode>): Likewise.
5926 (xscvqp<su>dz_<mode>): Likewise.
5927 (xscv<su>dqp_<mode): Likewise.
5928 (ieee128_mfvsrd): Likewise.
5929 (ieee128_mfvsrwz): Likewise.
5930 (ieee128_mtvsrw): Likewise.
5931 (ieee128_mtvsrd): Likewise.
5932 (trunc<mode>df2_odd): Likewise.
5933 (cmp<mode>_h): Likewise.
5934 (128-bit GPR splitters): Don't split a 128-bit move that is a
5935 direct move between GPR and vector registers using ISA 3.0 direct
5937 (maddld4): Add support for the ISA 3.0 integer multiply-add
5940 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Add ISA 3.0
5942 (rs6000_init_hard_regno_mode_ok): If ISA 3.0 and 64-bit, enable we
5943 constraint. Disable the VSX<->GPR direct move helpers if we have
5944 the MFVSRLD and MTVSRDD instructions.
5945 (rs6000_secondary_reload_simple_move): Add support for doing
5946 vector direct moves directly without additional scratch registers
5947 if we have ISA 3.0 instructions.
5948 (rs6000_secondary_reload_direct_move): Update comments.
5949 (rs6000_output_move_128bit): Add support for ISA 3.0 vector
5952 * config/rs6000/vsx.md (vsx_mov<mode>): Add support for ISA 3.0
5953 direct move instructions.
5954 (vsx_movti_64bit): Likewise.
5955 (vsx_extract_<mode>): Likewise.
5957 * config/rs6000/rs6000.h (VECTOR_ELEMENT_MFVSRLD_64BIT): New
5958 macros for ISA 3.0 direct move instructions.
5959 (TARGET_DIRECT_MOVE_128): Likewise.
5960 (TARGET_MADDLD): Add support for the ISA 3.0 integer multiply-add
5963 * doc/md.texi (RS/6000 constraints): Document we, wF, wG, wL
5964 constraints. Update wa documentation to say not to use %x<n> on
5965 instructions that only take Altivec registers.
5967 2015-11-13 David Malcolm <dmalcolm@redhat.com>
5969 * Makefile.in (OBJS): Add gcc-rich-location.o.
5970 * diagnostic.c (diagnostic_append_note): Pass line_table to
5972 (emit_diagnostic): Likewise.
5974 (inform_n): Likewise.
5975 (warning): Likewise.
5976 (warning_at): Likewise.
5977 (warning_n): Likewise.
5978 (pedwarn): Likewise.
5979 (permerror): Likewise.
5981 (error_n): Likewise.
5982 (error_at): Likewise.
5984 (fatal_error): Likewise.
5985 (internal_error): Likewise.
5986 (internal_error_no_backtrace): Likewise.
5987 (source_range::debug): Likewise.
5988 * gcc-rich-location.c: New file.
5989 * gcc-rich-location.h: New file.
5990 * genmatch.c (fatal_at): Pass line_table to rich_location ctor.
5991 (warning_at): Likewise.
5992 * gimple.h (gimple_set_block): Use set_block function.
5993 * input.c (dump_line_table_statistics): Dump stats on how many
5994 ranges were optimized vs how many needed ad-hoc table.
5995 (write_digit_row): Add "map" param; use its range_bits
5996 to calculate the per-character offset.
5997 (dump_location_info): Print the range and column bits for each
5998 ordinary map. Use the range bits to calculate the per-character
5999 offset. Pass the map as a new param to the various calls to
6000 write_digit_row. Eliminate uses of
6001 ORDINARY_MAP_NUMBER_OF_COLUMN_BITS.
6002 * print-tree.c (print_node): Print any source range information.
6003 * rtl-error.c (diagnostic_for_asm): Likewise.
6004 * toplev.c (general_init): Initialize line_table's
6006 * tree-cfg.c (move_block_to_fn): Likewise.
6007 (move_block_to_fn): Likewise.
6008 * tree-inline.c (copy_phis_for_bb): Likewise.
6009 * tree.c (tree_set_block): Likewise.
6010 (get_pure_location): New function.
6011 (set_source_range): New functions.
6012 (set_block): New function.
6013 (set_source_range): New functions.
6014 * tree.h (CAN_HAVE_RANGE_P): New.
6015 (EXPR_LOCATION_RANGE): New.
6016 (EXPR_HAS_RANGE): New.
6017 (get_expr_source_range): New inline function.
6018 (DECL_LOCATION_RANGE): New.
6019 (set_source_range): New decls.
6020 (get_decl_source_range): New inline function.
6022 2015-11-13 Alan Lawrence <alan.lawrence@arm.com>
6024 PR tree-optimization/67682
6025 * tree-vect-slp.c (vect_split_slp_store_group): New.
6026 (vect_analyze_slp_instance): During basic block SLP, recurse on
6027 subgroups if vect_build_slp_tree fails after 1st vector.
6029 2015-11-13 Christian Bruel <christian.bruel@st.com>
6032 * config/arm/arm.c (arm_option_override): Move NEON check...
6033 (arm_option_check_internal): here
6034 (arm_file_start): Move .fpu print...
6035 (arm_declare_function_name): here
6036 (arm_option_print): Dump current fpu name.
6037 * config/arm/arm.opt (arm_fpu_index): Mark Save.
6039 2015-11-13 Segher Boessenkool <segher@kernel.crashing.org>
6040 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
6042 * combine.c (subst): Don't substitute or simplify when
6043 handling register-wise widening multiply.
6044 (force_to_mode): Likewise.
6046 2015-11-13 Richard Sandiford <richard.sandiford@arm.com>
6048 PR tree-optimization/68264
6049 * tree-call-cdce.c (gen_one_condition): Update commentary.
6050 (gen_conditions_for_pow_int_base): Invert the sense of the tests
6051 passed to gen_one_condition.
6052 (gen_conditions_for_domain): Likewise. Use unordered comparisons.
6053 (shrink_wrap_one_built_in_call): Invert the sense of the tests,
6054 using EDGE_FALSE_VALUE for edges to the call block and
6055 EDGE_TRUE_VALUE for the others.
6057 2015-11-13 Nathan Sidwell <nathan@codesourcery.com>
6059 * config/nvptx/nvptx.c (nvptx_generate_vector_shuffle): Deal with
6062 2015-11-13 Nathan Sidwell <nathan@codesourcery.com>
6064 * gimplify.c (oacc_default_clause): Use inform for enclosing scope.
6066 2015-11-13 Tom de Vries <tom@codesourcery.com>
6068 * gen-pass-instances.awk (handle_line): Rename prefix_len var to
6071 2015-11-13 Tom de Vries <tom@codesourcery.com>
6073 * gen-pass-instances.awk (handle_line): Add args_str variable.
6075 2015-11-13 Martin Liska <mliska@suse.cz>
6077 * graphite-poly.c (free_scop): Release scop->drs vector.
6078 * graphite-scop-detection.c (scop_detection::harmful_stmt_in_region):
6080 (try_generate_gimple_bb): Use vNULL as a default initialization
6083 2015-11-13 Martin Liska <mliska@suse.cz>
6086 * ipa-icf.c (sem_item_optimizer::traverse_congruence_split):
6087 Replace array initialization (using a variable post-increment)
6088 that possible triggers multiple unsequenced modifications
6089 with a pair of pushes to a vector.
6091 2015-11-13 Richard Biener <rguenther@suse.de>
6093 PR tree-optimization/68306
6094 * tree-vect-data-refs.c (verify_data_ref_alignment): Move
6095 loop related checks ...
6096 (vect_verify_datarefs_alignment): ... here.
6097 (vect_slp_analyze_and_verify_node_alignment): Compute and
6098 verify alignment of the single DR that it matters.
6099 * tree-vect-stmts.c (vectorizable_store): Add an assert.
6100 (vectorizable_load): Add a comment.
6101 * tree-vect-slp.c (vect_analyze_slp_cost_1): Fix DR used
6102 for determining load cost.
6104 2015-11-13 Ilya Enkovich <enkovich.gnu@gmail.com>
6106 * tree-vect-loop.c (vect_determine_vectorization_factor): Check
6107 mix of boolean and integer vectors in a single statement.
6108 * tree-vect-slp.c (vect_mask_constant_operand_p): New.
6109 (vect_get_constant_vectors): Use vect_mask_constant_operand_p to
6110 determine constant type.
6111 * tree-vect-stmts.c (vectorizable_comparison): Provide vectype
6112 for loop invariants.
6114 2015-11-13 Alan Hayward <alan.hayward@arm.com>
6116 PR tree-optimization/66558
6117 * tree-vect-loop.c (is_integer_induction):Add.
6118 (vectorizable_reduction): Add integer induction checks.
6120 2015-11-13 Christophe Lyon <christophe.lyon@linaro.org>
6122 Revert [ARM] Remove neon-testgen.ml and generated tests.
6124 2015-11-12 Christophe Lyon <christophe.lyon@linaro.org>
6126 [ARM] Remove neon-testgen.ml and generated tests.
6128 * config/arm/neon-testgen.ml: Remove.
6130 2015-11-13 Richard Biener <rguenther@suse.de>
6132 * tree-vect-loop.c (vect_analyze_loop_2): Add fatal parameter.
6133 Signal fatal failure if early checks fail.
6134 (vect_analyze_loop): If vect_analyze_loop_2 fails fatally
6135 do not bother testing further vector sizes.
6137 2015-11-13 Uros Bizjak <ubizjak@gmail.com>
6139 * config/i386/predicates.md (misaligned_operand): Return true if
6140 operand is aligned to less than its natural alignmnet.
6142 2015-11-13 Ilya Enkovich <enkovich.gnu@gmail.com>
6144 * doc/md.texi (vec_cmp@var{m}@var{n}): New item.
6145 (vec_cmpu@var{m}@var{n}): New item.
6146 (vcond@var{m}@var{n}): Specify comparison is signed.
6147 (vcondu@var{m}@var{n}): New item.
6148 (vcond_mask_@var{m}@var{n}): New item.
6149 (maskload@var{m}@var{n}): New item.
6150 (maskstore@var{m}@var{n}): New item.
6152 2015-11-13 Ilya Enkovich <enkovich.gnu@gmail.com>
6154 * tree-vect-stmts.c (vectorizable_mask_load_store): Check
6155 types of stored value and storage are compatible.
6157 2015-11-13 Andris Pavenis <andris.pavenis@iki.fi>
6159 * gcc.c (POST_LINK_SPEC): Define if not already defined.
6160 (LINK_COMMAND_SPEC): Use post_link.
6161 (post_link_spec): New, initialize to POST_LINK_SPEC.
6162 (post_link): Initialize new static spec.
6163 * doc/tm.texi.in (POST_LINK_SPEC): Document.
6164 * doc/tm.texi: Regenerated.
6166 2015-11-13 David Malcolm <dmalcolm@redhat.com>
6169 * Makefile.in (GCC_OBJS): Add spellcheck.o.
6170 (OBJS): Add spellcheck-tree.o.
6171 * gcc.c: Include "spellcheck.h".
6172 (suggest_option): New function.
6173 (driver::handle_unrecognized_options): Call suggest_option to
6174 provide a hint about misspelled options.
6175 * spellcheck.c: Update file comment.
6176 (levenshtein_distance): Convert 4-param implementation from static
6177 to extern scope. Remove note about unit tests from leading
6178 comment for const char * implementation. Move tree
6179 implementation to...
6180 * spellcheck-tree.c: New file.
6181 * spellcheck.h (levenshtein_distance): Add 4-param decl.
6183 2015-11-13 David Malcolm <dmalcolm@redhat.com>
6185 * Makefile.in (OBJS): Add spellcheck.o.
6186 * spellcheck.c: New file.
6187 * spellcheck.h: New file.
6189 2015-11-13 James Bowman <james.bowman@ftdichip.com>
6191 * config/ft32/ft32.md (*sne): New insn pattern.
6193 2015-11-12 Brad Lucier <lucier@math.purdue.edu>
6195 * cprop.c (is_too_expensive): Remove.
6197 (one_cprop_pass): Call gcse_or_cprop_is_too_expensive, not
6199 * gcse.h (gcse_or_cprop_is_too_expensive): Declare.
6200 * gcse.c (is_too_expensive): Rename to ...
6201 (gcse_or_cprop_is_too_expensive): ... this.
6202 Expand warning to add required size of max-gcse-memory.
6203 (one_pre_gcse_pass): Use it.
6204 (one_code_hoisting_pass): Use it.
6205 * params.def (max-gcse-memory): Increase from 50MB to 128MB.
6207 2015-11-12 James Norris <jnorris@codesourcery.com>
6208 Joseph Myers <joseph@codesourcery.com>
6210 * gimple-pretty-print.c (dump_gimple_omp_target): Handle
6211 GF_OMP_TARGET_KIND_OACC_DECLARE.
6212 * gimple.h (enum gf_mask): Add GF_OMP_TARGET_KIND_OACC_DECLARE.
6213 (is_gomple_omp_oacc): Handle GF_OMP_TARGET_KIND_OACC_DECLARE.
6214 * gimplify.c (oacc_declare_returns): New.
6215 (gimplify_bind_expr): Prepend 'exit' stmt to cleanup.
6216 (device_resident_p): New function.
6217 (oacc_default_clause): Handle device_resident clause.
6218 (gimplify_oacc_declare_1, gimplify_oacc_declare): New functions.
6219 (gimplify_expr): Handle OACC_DECLARE.
6220 * omp-builtins.def (BUILT_IN_GOACC_DECLARE): New builtin.
6221 * omp-low.c (expand_omp_target): Handle
6222 GF_OMP_TARGET_KIND_OACC_DECLARE and BUILTIN_GOACC_DECLARE.
6223 (build_omp_regions_1): Handlde GF_OMP_TARGET_KIND_OACC_DECLARE.
6224 (lower_omp_target): Handle GF_OMP_TARGET_KIND_OACC_DECLARE,
6225 GOMP_MAP_DEVICE_RESIDENT and GOMP_MAP_LINK.
6226 (make_gimple_omp_edges): Handle GF_OMP_TARGET_KIND_OACC_DECLARE.
6227 * tree-pretty-print.c (dump_omp_clause): Handle GOMP_MAP_LINK and
6228 GOMP_MAP_DEVICE_RESIDENT.
6230 2015-11-12 Christophe Lyon <christophe.lyon@linaro.org>
6232 [ARM] Remove neon-testgen.ml and generated tests.
6234 * config/arm/neon-testgen.ml: Remove.
6236 2015-11-12 Jim Wilson <jim.wilson@linaro.org>
6238 * config/aarch64/aarch64-cores.def (qdf24xx): New.
6239 * config/aarch64/aarch64-tune.md: Regenerated.
6240 * config/arm/arm-cores.def (qdf24xx): New.
6241 * config/arm/arm-tables.opt, config/arm/arm-tune.md: Regenerated.
6242 * config/arm/bpabi.h (BE8_LINK_SPEC): Add qdf24xx support.
6243 * doc/invoke.texi (AArch64 Options/-mtune): Add "qdf24xx".
6244 (ARM Options/-mtune): Likewise.
6246 2015-11-12 Martin Liska <mliska@suse.cz>
6248 * config/i386/i386.c (ix86_valid_target_attribute_p):
6249 Finalize options at the of the function.
6250 * gcc.c (driver_get_configure_time_options): Call newly
6251 introduced init_opts_obstack.
6252 * lto-wrapper.c (main): Likewise.
6253 * opts.c (init_opts_obstack): New function.
6254 (init_options_struct): Call newly introduced init_opts_obstack.
6255 * opts.h (init_options_struct): Declare.
6257 2015-11-12 Martin Liska <mliska@suse.cz>
6260 * ipa-icf.c (void sem_item::set_hash): New function.
6261 (sem_function::get_hash): Use renamed m_hash member variable.
6262 (sem_item::update_hash_by_addr_refs): Utilize get_hash.
6263 (sem_item::update_hash_by_local_refs): Likewise.
6264 (sem_variable::get_hash): Use renamed m_hash member variable.
6265 (sem_item_optimizer::update_hash_by_addr_refs): Utilize get_hash.
6266 (sem_item_optimizer::build_hash_based_classes): Utilize set_hash.
6267 (sem_item_optimizer::build_graph): As the hash value of an item
6268 is lazy initialized, force the calculation.
6269 * ipa-icf.h (set_hash): Declare new function and rename hash member
6272 2015-11-12 Richard Biener <rguenther@suse.de>
6274 * tree-vectorizer.h (vect_slp_analyze_data_ref_dependences):
6275 Rename to vect_slp_analyze_instance_dependence.
6276 * tree-vect-data-refs.c (vect_slp_analyze_data_ref_dependence):
6277 Remove WAR special-case.
6278 (vect_slp_analyze_node_dependences): Instead add more specific
6279 code here, not relying on other instances being vectorized.
6280 (vect_slp_analyze_instance_dependence): Adjust accordingly.
6281 * tree-vect-slp.c (vect_build_slp_tree_1): Remove excessive
6282 vertical space in dump files.
6283 (vect_print_slp_tree): Likewise.
6284 (vect_analyze_slp_instance): Dump a header for the final SLP tree.
6285 (vect_slp_analyze_bb_1): Delay computing relevant stmts and
6286 not vectorized stmts until after dependence analysis removed
6287 instances. Merge alignment and dependence checks.
6288 * tree-vectorizer.c (pass_slp_vectorize::execute): Clear visited
6291 2015-11-12 Evandro Menezes <e.menezes@samsung.com>
6293 * config/aarch64/aarch64-protos.h (tune_params): Add new members
6294 "max_case_values" and "cache_line_size".
6295 * config/aarch64/aarch64.c (aarch64_case_values_threshold): New
6297 (aarch64_override_options_internal): Tune heuristics based on new
6298 members in "tune_params".
6299 (TARGET_CASE_VALUES_THRESHOLD): Define macro.
6301 2015-11-12 Richard Biener <rguenther@suse.de>
6303 PR tree-optimization/68306
6304 * tree-vect-data-refs.c (verify_data_ref_alignment): Remove
6305 relevant and vectorizable checks here.
6306 (vect_verify_datarefs_alignment): Add relevant check here.
6308 2015-11-12 Nathan Sidwell <nathan@codesourcery.com>
6310 * gimplify.c (oacc_default_clause): New.
6311 (omp_notice_variable): Call it.
6313 2015-11-12 Ilya Enkovich <enkovich.gnu@gmail.com>
6315 PR tree-optimization/68305
6316 * tree-vect-slp.c (vect_get_constant_vectors): Support
6317 COND_EXPR with SSA_NAME as a condition.
6319 2015-11-12 Eric Botcazou <ebotcazou@adacore.com>
6321 * config/visium/visium-protos.h (notice_update_cc): Delete.
6322 (print_operand): Likewise.
6323 (print_operand_address): Likewise.
6325 2015-11-12 Uros Bizjak <ubizjak@gmail.com>
6327 * config/alpha/alpha.h (FUNCTION_VALUE, LIBCALL_VALUE,
6328 FUNCTION_VALUE_REGNO_P): Remove.
6329 * config/alpha/alpha-protos.h (function_value): Remove.
6330 * config/alpha/alpha.c (function_value): Rename to...
6331 (alpha_function_value_1): ... this. Make static.
6332 (alpha_function_value, alpha_libcall_value,
6333 alpha_function_value_regno_p): New functions.
6334 (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
6335 TARGET_FUNCTION_VALUE_REGNO_P): Define.
6337 2015-11-12 Uros Bizjak <ubizjak@gmail.com>
6339 * config/alpha/alpha.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST): Remove.
6340 * config/alpha/alpha.c (alpha_memory_latency): Make static.
6341 (alpha_register_move_cost, alpha_memory_move_cost): New functions.
6342 (TARGET_REGISTER_MOVE_COST, TARGET_MEMORY_MOVE_COST): Define.
6344 2015-11-12 Eric Botcazou <ebotcazou@adacore.com>
6347 * config/i386/i386.c (ix86_adjust_stack_and_probe): Remove obsolete
6348 assertion on the CFA register.
6350 2015-11-12 Ilya Enkovich <enkovich.gnu@gmail.com>
6352 * expr.c (do_store_flag): Expand vector comparison as
6353 VEC_COND_EXPR if vector comparison is not supported by target.
6355 2015-11-12 Renlin Li <renlin.li@arm.com>
6357 * config/arm/arm.md (addsi3_compare_op2): Make the order of
6358 assembly pattern consistent with constraint order.
6360 2015-11-12 Tom de Vries <tom@codesourcery.com>
6362 * gen-pass-instances.awk (handle_line): Simplify match regexp.
6364 2015-11-12 Tom de Vries <tom@codesourcery.com>
6366 * gen-pass-instances.awk (handle_line): Simplify init of
6369 2015-11-12 Tom de Vries <tom@codesourcery.com>
6371 * gen-pass-instances.awk (handle_line): Rename var where to
6374 2015-11-12 Claudiu Zissulescu <claziss@synopsys.com>
6376 * config/arc/arc.c (gen_compare_reg): Swap operands also when we
6377 do not expand to rtl.
6379 2015-11-12 Richard Biener <rguenther@suse.de>
6381 PR tree-optimization/58497
6382 * tree-vect-generic.c: Include gimplify.h.
6383 (tree_vec_extract): Lookup constant/constructor DEFs.
6384 (do_cond): Unshare cond.
6386 2015-11-12 Uros Bizjak <ubizjak@gmail.com>
6388 * config/i386/i386.c (ix86_legitimate_combined_insn): Reject
6389 combined insn if the alignment of vector mode memory operand
6390 is less than ssememalign.
6392 2015-11-12 Tom de Vries <tom@codesourcery.com>
6394 * gen-pass-instances.awk (handle_line): Print parentheses and
6395 pass_name explicitly.
6397 2015-11-12 Tom de Vries <tom@codesourcery.com>
6399 * gen-pass-instances.awk (handle_line): Add pass_num, prefix
6402 2015-11-12 Tom de Vries <tom@codesourcery.com>
6404 * gen-pass-instances.awk (handle_line): Add comments.
6406 2015-11-12 Tom de Vries <tom@codesourcery.com>
6408 * gen-pass-instances.awk (handle_line): Rename len_of_end to
6411 2015-11-12 Tom de Vries <tom@codesourcery.com>
6413 * gen-pass-instances.awk (handle_line): Add len_of_call variable.
6415 2015-11-12 Tom de Vries <tom@codesourcery.com>
6417 * gen-pass-instances.awk (handle_line): Restructure using early-out.
6419 2015-11-12 Tom de Vries <tom@codesourcery.com>
6421 * gen-pass-instances.awk (handle_line): Unify semicolon use.
6423 2015-11-12 Tom de Vries <tom@codesourcery.com>
6425 * gen-pass-instances.awk (handle_line): Remove unused var line_length.
6427 2015-11-12 Tom de Vries <tom@codesourcery.com>
6429 * gen-pass-instances.awk: Add emacs indent setting.
6431 2015-11-12 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
6433 * fold-const.c (fold_binary_loc) : Move Convert A/B/C to A/(B*C)
6435 Move Convert A/(B/C) to (A/B)*C to match.pd.
6436 Move Convert C1/(X*C2) into (C1/C2)/X to match.pd.
6437 Move Optimize (X & (-A)) / A where A is a power of 2, to
6438 X >> log2(A) to match.pd.
6440 * match.pd (rdiv (rdiv:s @0 @1) @2): New simplifier.
6441 (rdiv @0 (rdiv:s @1 @2)): New simplifier.
6442 (div (convert? (bit_and @0 INTEGER_CST@1)) INTEGER_CST@2):
6444 (rdiv REAL_CST@0 (mult @1 REAL_CST@2)): New simplifier.
6446 2015-11-12 Charles Baylis <charles.baylis@linaro.org>
6448 * config/arm/neon.md: (neon_vld2_lane<mode>): Remove unused max
6450 (neon_vst2_lane<mode>): Likewise.
6451 (neon_vld3_lane<mode>): Likewise.
6452 (neon_vst3_lane<mode>): Likewise.
6453 (neon_vld4_lane<mode>): Likewise.
6454 (neon_vst4_lane<mode>): Likewise.
6456 2015-11-11 Aditya Kumar <aditya.k7@samsung.com>
6457 Sebastian Pop <s.pop@samsung.com>
6459 * graphite-isl-ast-to-gimple.c (class translate_isl_ast_to_gimple):
6460 New member codegen_error
6461 (translate_isl_ast_for_loop): Remove call to single_succ_edge and
6463 (translate_isl_ast_node_user): Early return in case of error.
6464 (translate_isl_ast_to_gimple::translate_isl_ast): Same.
6465 (translate_isl_ast_to_gimple::translate_pending_phi_nodes): New.
6466 (add_parameters_to_ivs_params): Remove macro.
6467 (graphite_regenerate_ast_isl): Add if_region pointer to region.
6468 * graphite-poly.c (new_poly_dr): Remove macro.
6470 (new_gimple_poly_bb): Same.
6471 (free_gimple_poly_bb): Same.
6472 (print_scop_params): Same.
6473 * graphite-poly.h (struct poly_dr): Same.
6474 (struct poly_bb): Add new_bb.
6475 (gbb_from_bb): Remove dead code.
6476 (pbb_from_bb): Same.
6477 * graphite-scop-detection.c (parameter_index_in_region_1): Same.
6478 (parameter_index_in_region): Same.
6479 (find_scop_parameters): Same.
6480 (build_cross_bb_scalars_def): New.
6481 (build_cross_bb_scalars_use): New.
6482 (graphite_find_cross_bb_scalar_vars): New
6483 (try_generate_gimple_bb): Reads and Writes.
6484 (build_alias_set): Move.
6485 (gather_bbs::before_dom_children): Gather bbs visited.
6486 (build_scops): call build_alias_set.
6487 * graphite-sese-to-poly.c (phi_arg_in_outermost_loop): Delete.
6488 (remove_simple_copy_phi): Delete.
6489 (remove_invariant_phi): Delete.
6490 (simple_copy_phi_p): Delete.
6491 (reduction_phi_p): Delete.
6492 (isl_id_for_dr): Remove unused param.
6493 (parameter_index_in_region_1): Remove macro usage.
6494 (set_scop_parameter_dim): Same.
6495 (add_param_constraints): Same.
6496 (add_conditions_to_constraints): Same
6497 (build_scop_iteration_domain): Same.
6498 (pdr_add_alias_set): Comment.
6499 (add_scalar_version_numbers): New.
6500 (build_poly_dr): ISL id.
6501 (build_scop_drs): Move.
6502 (build_poly_sr_1): Same.
6503 (insert_stmts): Remove.
6504 (build_poly_sr): New.
6505 (new_pbb_from_pbb): Delete.
6506 (insert_out_of_ssa_copy_on_edge): Delete.
6507 (create_zero_dim_array): Delete.
6508 (scalar_close_phi_node_p): Delete.
6509 (propagate_expr_outside_region): Delete.
6510 (rewrite_close_phi_out_of_ssa): Delete.
6511 (rewrite_phi_out_of_ssa): Delete.
6512 (rewrite_degenerate_phi): Delete.
6513 (rewrite_reductions_out_of_ssa): Delete.
6514 (rewrite_cross_bb_scalar_dependence): Delete.
6515 (handle_scalar_deps_crossing_scop_limits):
6516 (rewrite_cross_bb_scalar_deps): Delete.
6517 (build_poly_scop): Remove calls to out-of-ssa functions.
6518 * graphite.c (graphite_transform_loops): Early return in case of
6520 * sese.c (debug_rename_map_1): Delete.
6521 (debug_rename_map): Delete.
6522 (sese_record_loop): Remove macro.
6523 (build_sese_loop_nests): Same.
6524 (new_sese_info): Same.
6525 (free_sese_info): Same.
6526 (sese_insert_phis_for_liveouts):
6527 (is_loop_closed_ssa_use): New.
6528 (number_of_phi_nodes): New.
6529 (bb_contains_loop_close_phi_nodes): New.
6530 (bb_contains_loop_phi_nodes): New.
6531 (phi_uses_name): New.
6533 (get_rename): Add old_bb and loop_phi for more precise matching of
6535 (set_rename): Pass region.
6536 (later_of_the_two): New.
6537 (gsi_insert_earliest): New.
6538 (collect_all_ssa_names): New.
6539 (substitute_ssa_name): New.
6540 (rename_all_uses): New.
6541 (get_rename_from_scev): New.
6542 (rename_uses): Pass old_bb for more precise matching of exprs.
6543 (get_def_bb_for_const): New.
6544 (get_new_name): New.
6547 (copy_loop_phi_args): New.
6548 (copy_loop_phi_nodes): New.
6549 (get_loop_init_value): New.
6550 (find_init_value): New.
6551 (find_init_value_close_phi): New.
6552 (copy_loop_close_phi_args): New.
6553 (copy_loop_close_phi_nodes): New.
6554 (add_phi_arg_for_new_expr): New.
6555 (copy_cond_phi_args): New.
6556 (copy_cond_phi_nodes): New.
6557 (copy_phi_nodes): New.
6558 (should_copy_to_new_region): New.
6559 (set_rename_for_each_def): New.
6560 (graphite_copy_stmts_from_block): Early return in case of error.
6561 (copy_bb_and_scalar_dependences): Same.
6562 * sese.h (vec_find): New.
6563 (SESE_PARAMS): Delete.
6564 (SESE_LOOPS): Delete.
6565 (SESE_LOOP_NEST): Delete.
6566 (sese_contains_loop): Remove macro usage.
6567 (sese_nb_params): Same.
6568 (struct gimple_poly_bb): Added read_scalar_refs, write_scalar_refs.
6570 2015-11-11 Abderrazek Zaafrani <a.zaafrani@samsung.com>
6572 * graphite-sese-to-poly.c (build_scop_original_schedule): Call
6573 isl_union_map_add_map on every pbb->schedule.
6575 2015-11-11 Tom de Vries <tom@codesourcery.com>
6577 * tree-parloops.c (create_parallel_loop): Return void.
6579 2015-11-11 Tom de Vries <tom@codesourcery.com>
6581 * tree-parloops.c (transform_to_exit_first_loop_alt): Insert new exit
6582 block only when needed.
6584 2015-11-11 Uros Bizjak <ubizjak@gmail.com>
6586 * config/alpha/alpha-protos.h (print_operand): Remove.
6587 (print_operand_address): Remove.
6588 * config/alpha/alpha.h (PRINT_OPERAND): Remove.
6589 (PRINT_OPERAND_ADDRESS): Remove.
6590 (PRINT_OPERAND_PUNCT_VALID_P): Remove.
6591 * config/alpha/alpha.c (TARGET_PRINT_OPERAND): New hook define.
6592 (TARGET_PRINT_OPERAND_ADDRESS): New hook define.
6593 (TARGET_PRINT_OPERAND_PUNCT_VALID_P): New hook define.
6594 (print_operand_address): Rename to...
6595 (alpha_print_operand_address): ...this and make static.
6596 (print_operand): Rename to...
6597 (alpha_print_operand): ...this and make static.
6598 (alpha_print_operand_punct_valid_p): New static function.
6600 2015-11-11 Richard Biener <rguenther@suse.de>
6602 * tree-vectorizer.h (vect_slp_analyze_and_verify_instance_alignment):
6604 (vect_analyze_data_refs_alignment): Make loop vect specific.
6605 (vect_verify_datarefs_alignment): Likewise.
6606 * tree-vect-data-refs.c (vect_slp_analyze_data_ref_dependences):
6607 Add missing continue.
6608 (vect_compute_data_ref_alignment): Export.
6609 (vect_compute_data_refs_alignment): Merge into...
6610 (vect_analyze_data_refs_alignment): ... this.
6611 (verify_data_ref_alignment): Split out from ...
6612 (vect_verify_datarefs_alignment): ... here.
6613 (vect_slp_analyze_and_verify_node_alignment): New function.
6614 (vect_slp_analyze_and_verify_instance_alignment): Likewise.
6615 * tree-vect-slp.c (vect_supported_load_permutation_p): Remove
6616 misplaced checks on alignment.
6617 (vect_slp_analyze_bb_1): Add fatal output parameter. Do
6618 alignment analysis after SLP discovery and do it per instance.
6619 (vect_slp_bb): When vect_slp_analyze_bb_1 fatally failed do not
6620 bother to re-try using different vector sizes.
6622 2015-11-11 Nathan Sidwell <nathan@codesourcery.com>
6623 Cesar Philippidis <cesar@codesourcery.com>
6625 * gimplify.c (enum omp_region_type): Add ORT_ACC,
6626 ORT_ACC_DATA, ORT_ACC_PARALLEL, ORT_ACC_KERNELS. Adjust ORT_NONE.
6627 (gimple_add_tmp_var): Add ORT_ACC checks.
6628 (gimplify_var_or_parm_decl): Likewise.
6629 (omp_firstprivatize_variable): Likewise. Use ORT_TARGET_DATA as a mask.
6630 (omp_add_variable): Look in outer contexts for openacc and allow
6631 reductions with other sharing. Add ORT_ACC and ORT_TARGET_DATA checks.
6632 (omp_notice_variable, omp_is_private, omp_check_private): Add
6634 (gimplify_scan_omp_clauses: Treat ORT_ACC as ORT_WORKSHARE.
6635 Permit private openacc reductions.
6636 (gimplify_oacc_cache): Specify ORT_ACC.
6637 (gimplify_omp_workshare): Adjust OpenACC region types.
6638 (gimplify_omp_target_update): Likewise.
6639 * omp-low.c (scan_sharing_clauses): Remove Openacc firstprivate sorry.
6640 (lower-rec_input_clauses): Don't handle openacc firstprivate
6642 (lower_omp_target): Emit initializers for openacc firstprivate vars.
6644 2015-11-11 Eric Botcazou <ebotcazou@adacore.com>
6647 * ira.c (ira_setup_eliminable_regset): Do not necessarily create the
6648 frame pointer for stack checking if non-call exceptions aren't used.
6649 * config/i386/i386.c (ix86_finalize_stack_realign_flags): Likewise.
6651 2015-11-11 Segher Boessenkool <segher@kernel.crashing.org>
6653 * simplify-rtx.c (simplify_truncation): Simplify TRUNCATE of AND of
6656 2015-11-11 Martin Liska <mliska@suse.cz>
6657 Richard Biener <rguenther@suse.de>
6659 PR rtl-optimization/68287
6660 * lra-lives.c (lra_create_live_ranges_1): Reserve the right
6663 2015-11-11 Simon Dardis <simon.dardis@imgtec.com>
6665 * config/mips/mips.c (mips_breakable_sequence_p): New function.
6666 (mips_break_sequence): New function.
6667 (mips_reorg_process_insns): Use them. Use compact branches in selected
6670 2015-11-11 Alan Lawrence <alan.lawrence@arm.com>
6672 * fold-const.c (get_array_ctor_element_at_index): Fix whitespace, typo.
6674 2015-11-11 Jiong Wang <jiong.wang@arm.com>
6675 Jim Wilson <wilson@gcc.gnu.org>
6678 * config/arm/arm.md (neon_vector_mem_operand): Return FALSE if strict
6679 be true and eliminable registers mentioned.
6681 2015-11-11 Claudiu Zissulescu <claziss@synopsys.com>
6683 * common/config/arc/arc-common.c (arc_handle_option): Handle ARCv2
6685 * config/arc/arc-opts.h: Add ARCv2 CPUs.
6686 * config/arc/arc-protos.h (arc_secondary_reload_conv): Prototype.
6687 * config/arc/arc.c (arc_secondary_reload): Handle subreg (reg)
6688 situation, and store instructions with large offsets.
6689 (arc_secondary_reload_conv): New function.
6690 (arc_init): Add ARCv2 options.
6691 (arc_conditional_register_usage): Select the proper register usage
6692 for ARCv2 processors.
6693 (arc_handle_interrupt_attribute): ILINK2 is only valid for ARCv1
6695 (arc_compute_function_type): Likewise.
6696 (arc_print_operand): Handle new ARCv2 punctuation characters.
6697 (arc_return_in_memory): ARCv2 ABI returns in registers up to 16 bytes.
6698 (workaround_arc_anomaly, arc_asm_insn_p, arc_loop_hazard): New
6700 (arc_reorg, arc_hazard): Use it.
6701 * config/arc/arc.h (TARGET_CPU_CPP_BUILTINS): Define __HS__ and __EM__.
6702 (ASM_SPEC): Add ARCv2 options.
6703 (TARGET_NORM): ARC HS has norm instructions by default.
6704 (TARGET_OPTFPE): Use optimized floating point emulation for ARC HS.
6705 (TARGET_AT_DBR_CONDEXEC): Only for ARC600 family.
6706 (TARGET_EM, TARGET_HS, TARGET_V2, TARGET_MPYW, TARGET_MULTI): Define.
6707 (SIGNED_INT16, TARGET_MPY, TARGET_ARC700_MPY, TARGET_ANY_MPY):
6709 (TARGET_ARC600_FAMILY, TARGET_ARCOMPACT_FAMILY): Likewise.
6710 (TARGET_LP_WR_INTERLOCK): Likewise.
6712 (commutative_binary_mult_comparison_result_used, movsicc_insn)
6713 (mulsi3, mulsi3_600_lib, mulsidi3, mulsidi3_700, mulsi3_highpart)
6714 (umulsi3_highpart_i, umulsi3_highpart_int, umulsi3_highpart)
6715 (umulsidi3, umulsidi3_700, cstoresi4, simple_return, p_return_i):
6717 (mulhisi3, mulhisi3_imm, mulhisi3_reg, umulhisi3, umulhisi3_imm)
6718 (umulhisi3_reg, umulhisi3_reg, mulsi3_v2, nopv, bswapsi2)
6719 (prefetch, divsi3, udivsi3 modsi3, umodsi3, arcset, arcsetltu)
6720 (arcsetgeu, arcsethi, arcsetls, reload_*_load, reload_*_store)
6721 (extzvsi): New pattern.
6722 * config/arc/arc.opt: New ARCv2 options.
6723 * config/arc/arcEM.md: New file.
6724 * config/arc/arcHS.md: Likewise.
6725 * config/arc/constraints.md (C3p): New constraint, accepts 1 and 2
6727 (Cm2): A signed 9-bit integer constant constraint.
6728 (C62): An unsigned 6-bit integer constant constraint.
6729 (C16): A signed 16-bit integer constant constraint.
6730 * config/arc/predicates.md (mult_operator): Add ARCv2 processort.
6731 (short_const_int_operand): New predicate.
6732 * config/arc/t-arc-newlib: Add ARCv2 multilib options.
6733 * doc/invoke.texi: Add documentation for -mcpu=<archs/arcem>
6734 -mcode-density and -mdiv-rem.
6736 2015-11-11 Julia Koval <julia.koval@intel.com>
6738 * config/i386/i386.c (m_SKYLAKE_AVX512): Fix typo.
6740 2015-11-11 Julia Koval <julia.koval@intel.com>
6742 * config/i386/i386.c: Handle "skylake" and "skylake-avx512".
6744 2015-11-11 Martin Liska <mliska@suse.cz>
6746 * gimple-ssa-strength-reduction.c (create_phi_basis):
6748 * passes.c (release_dump_file_name): New function.
6749 (pass_init_dump_file): Used from this function.
6750 (pass_fini_dump_file): Likewise.
6751 * tree-sra.c (convert_callers_for_node): Use xstrdup_for_dump.
6752 * var-tracking.c (vt_initialize): Use pool_allocator.
6754 2015-11-11 Richard Biener <rguenth@gcc.gnu.org>
6755 Jiong Wang <jiong.wang@arm.com>
6757 PR tree-optimization/68234
6758 * tree-vrp.c (vrp_visit_phi_node): Extend SCEV check to those loop PHI
6759 node which estimiated to be VR_VARYING initially.
6761 2015-11-11 Robert Suchanek <robert.suchanek@imgtec.com>
6763 * regname.c (scan_rtx_reg): Check the matching number of consecutive
6764 registers when tying chains.
6765 (build_def_use): Move terminated_this_insn earlier in the function.
6767 2015-11-10 Mike Frysinger <vapier@gentoo.org>
6769 * configure.ac: Use = with test and not ==.
6770 * configure: Regenerated.
6772 2015-11-11 David Edelsohn <dje.gcc@gmail.com>
6774 * config/rs6000/aix.h (TARGET_OS_AIX_CPP_BUILTINS): Add cpu and
6775 machine asserts. Update defines for 64 bit.
6777 2015-11-11 Charles Baylis <charles.baylis@linaro.org>
6780 * config/arm/neon.md (neon_vld1_lane<mode>): Remove error for invalid
6782 (neon_vst1_lane<mode>): Likewise.
6783 (neon_vld2_lane<mode>): Likewise.
6784 (neon_vst2_lane<mode>): Likewise.
6785 (neon_vld3_lane<mode>): Likewise.
6786 (neon_vst3_lane<mode>): Likewise.
6787 (neon_vld4_lane<mode>): Likewise.
6788 (neon_vst4_lane<mode>): Likewise.
6790 2015-11-11 Charles Baylis <charles.baylis@linaro.org>
6793 * config/arm/arm-builtins.c: (arm_load1_qualifiers) Use
6794 qualifier_struct_load_store_lane_index.
6795 (arm_storestruct_lane_qualifiers) Likewise.
6796 * config/arm/neon.md: (neon_vld1_lane<mode>) Reverse lane numbers for
6798 (neon_vst1_lane<mode>) Likewise.
6799 (neon_vld2_lane<mode>) Likewise.
6800 (neon_vst2_lane<mode>) Likewise.
6801 (neon_vld3_lane<mode>) Likewise.
6802 (neon_vst3_lane<mode>) Likewise.
6803 (neon_vld4_lane<mode>) Likewise.
6804 (neon_vst4_lane<mode>) Likewise.
6806 2015-11-11 Charles Baylis <charles.baylis@linaro.org>
6809 * config/arm/arm-builtins.c (enum arm_type_qualifiers): New enumerator
6810 qualifier_struct_load_store_lane_index.
6811 (builtin_arg): New enumerator NEON_ARG_STRUCT_LOAD_STORE_LANE_INDEX.
6812 (arm_expand_neon_args): New parameter. Remove ellipsis. Handle NEON
6813 argument qualifiers.
6814 (arm_expand_neon_builtin): Handle new NEON argument qualifier.
6815 * config/arm/arm.h (NEON_ENDIAN_LANE_N): New macro.
6817 2015-11-10 Nathan Sidwell <nathan@codesourcery.com>
6819 * config/nvptx/nvptx.opt (moptimize): New flag.
6820 * config/nvptx/nvptx.c (nvptx_option_override): Set nvptx_optimize
6822 (nvptx_optimize_inner): New.
6823 (nvptx_process_pars): Call it when optimizing.
6824 * doc/invoke.texi (Nvidia PTX Options): Document -moptimize.
6826 2015-11-10 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
6828 * config/rs6000/rs6000.c (rs6000_secondary_reload_direct_move):
6829 Remove redundant code.
6831 2015-11-10 Jeff Law <law@redhat.com>
6833 * config/ft32/ft32.c (ft32_print_operand): Supply mode to
6834 call to output_address.
6835 * config/moxie/moxie.c (moxie_print_operand_address): Similarly.
6836 Add unnamed machine_mode argument.
6838 2015-11-10 Michael Meissner <meissner@linux.vnet.ibm.com>
6840 * config.gcc (powerpc*-*-*, rs6000*-*-*): Add power9 to hosts that
6843 2015-11-10 Uros Bizjak <ubizjak@gmail.com>
6845 * config/i386/i386.md (*movabs<mode>_1): Add explicit
6846 size directives for -masm=intel.
6847 (*movabs<mode>_2): Ditto.
6849 2015-11-10 Uros Bizjak <ubizjak@gmail.com>
6851 * config/i386/i386.c (ix86_print_operand): Remove dead code that
6852 tried to avoid (%rip) for call operands.
6854 2015-11-10 Uros Bizjak <ubizjak@gmail.com>
6856 * config/i386/i386.c (ix86_print_operand_address_as): Add no_rip
6857 argument. Do not use RIP relative addressing when no_rip is set.
6858 (ix86_print_operand): Update call to ix86_print_operand_address_as.
6859 (ix86_print_operand_address): Ditto.
6860 * config/i386/i386.md (*movabs<mode>_1): Use %P modifier for
6861 absolute movabs operand 0. Add square braces for -masm=intel.
6862 (*movabs<mode>_2): Ditto for operand 1.
6864 2015-11-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
6866 * config/arm/arm.c (arm_new_rtx_costs, FIX case): Handle
6867 combine_vcvtf2i pattern.
6869 2015-11-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
6871 * config/arm/arm.c (neon_valid_immediate): Remove integer
6872 CONST_DOUBLE handling. It should never occur.
6874 2015-11-10 Matthew Wahab <matthew.wahab@arm.com>
6876 * config/aarch64/atomics.md (unspecv): Move to iterators.md.
6877 (ATOMIC_LDOP): Likewise.
6878 (atomic_ldop): Likewise.
6879 * config/aarch64/iterators.md (unspecv): Moved from atomics.md.
6880 (ATOMIC_LDOP): Likewise.
6881 (atomic_ldop): Likewise.
6883 2015-11-10 Martin Liska <mliska@suse.cz>
6885 * alloc-pool.h (allocate_raw): New function.
6886 (operator new (size_t, object_allocator<T> &a)): Use the
6887 function instead of object_allocator::allocate).
6889 2015-11-10 Ilya Enkovich <enkovich.gnu@gmail.com>
6891 * config/i386/sse.md (HALFMASKMODE): New attribute.
6892 (DOUBLEMASKMODE): New attribute.
6893 (vec_pack_trunc_qi): New.
6894 (vec_pack_trunc_<mode>): New.
6895 (vec_unpacks_lo_hi): New.
6896 (vec_unpacks_lo_si): New.
6897 (vec_unpacks_lo_di): New.
6898 (vec_unpacks_hi_hi): New.
6899 (vec_unpacks_hi_<mode>): New.
6901 2015-11-10 Ilya Enkovich <enkovich.gnu@gmail.com>
6903 * optabs.c (expand_binop_directly): Allow scalar mode for
6904 vec_pack_trunc_optab.
6905 * tree-vect-loop.c (vect_determine_vectorization_factor): Skip
6906 boolean vector producers from pattern sequence when computing VF.
6907 * tree-vect-patterns.c (vect_vect_recog_func_ptrs) Add
6908 vect_recog_mask_conversion_pattern.
6909 (search_type_for_mask): Choose the smallest
6910 type if different size types are mixed.
6911 (build_mask_conversion): New.
6912 (vect_recog_mask_conversion_pattern): New.
6913 (vect_pattern_recog_1): Allow scalar mode for boolean vectype.
6914 * tree-vect-stmts.c (vectorizable_mask_load_store): Support masked
6916 (vectorizable_conversion): Support boolean vectors.
6917 (free_stmt_vec_info): Allow patterns for statements with no lhs.
6918 * tree-vectorizer.h (NUM_PATTERNS): Increase to 14.
6920 2015-11-10 Ilya Enkovich <enkovich.gnu@gmail.com>
6922 * config/i386/i386-protos.h (ix86_expand_sse_movcc): New.
6923 * config/i386/i386.c (ix86_expand_sse_movcc): Make public.
6924 Cast mask to FP mode if required.
6925 * config/i386/sse.md (vcond_mask_<mode><avx512fmaskmodelower>): New.
6926 (vcond_mask_<mode><avx512fmaskmodelower>): New.
6927 (vcond_mask_<mode><sseintvecmodelower>): New.
6928 (vcond_mask_<mode><sseintvecmodelower>): New.
6929 (vcond_mask_v2div2di): New.
6930 (vcond_mask_<mode><sseintvecmodelower>): New.
6931 (vcond_mask_<mode><sseintvecmodelower>): New.
6933 2015-11-10 Ilya Enkovich <enkovich.gnu@gmail.com>
6935 * optabs-query.h (get_vcond_mask_icode): New.
6936 * optabs-tree.c (expand_vec_cond_expr_p): Use
6937 get_vcond_mask_icode for VEC_COND_EXPR with mask.
6938 * optabs.c (expand_vec_cond_mask_expr): New.
6939 (expand_vec_cond_expr): Use get_vcond_mask_icode when possible.
6940 * optabs.def (vcond_mask_optab): New.
6941 * tree-vect-patterns.c (vect_recog_bool_pattern): Don't
6942 generate redundant comparison for COND_EXPR.
6943 * tree-vect-stmts.c (vect_is_simple_cond): Allow SSA_NAME
6945 (vectorizable_condition): Likewise.
6946 * tree-vect-slp.c (vect_get_and_check_slp_defs): Allow
6947 cond_exp with no embedded comparison.
6948 (vect_build_slp_tree_1): Likewise.
6950 2015-11-10 Ilya Enkovich <enkovich.gnu@gmail.com>
6952 * config/i386/sse.md (maskload<mode>): Rename to ...
6953 (maskload<mode><sseintvecmodelower>): ... this.
6954 (maskstore<mode>): Rename to ...
6955 (maskstore<mode><sseintvecmodelower>): ... this.
6956 (maskload<mode><avx512fmaskmodelower>): New.
6957 (maskstore<mode><avx512fmaskmodelower>): New.
6959 2015-11-10 Ilya Enkovich <enkovich.gnu@gmail.com>
6961 * internal-fn.c (expand_MASK_LOAD): Adjust to maskload optab changes.
6962 (expand_MASK_STORE): Adjust to maskstore optab changes.
6963 * optabs-query.c (can_vec_mask_load_store_p): Add MASK_MODE arg.
6964 Adjust to maskload, maskstore optab changes.
6965 * optabs-query.h (can_vec_mask_load_store_p): Add MASK_MODE arg.
6966 * optabs.def (maskload_optab): Transform into convert optab.
6967 (maskstore_optab): Likewise.
6968 * tree-if-conv.c (ifcvt_can_use_mask_load_store): Adjust to
6969 can_vec_mask_load_store_p signature change.
6970 (predicate_mem_writes): Use boolean mask.
6971 * tree-vect-stmts.c (vectorizable_mask_load_store): Adjust to
6972 can_vec_mask_load_store_p signature change. Allow invariant masks.
6973 (vectorizable_operation): Ignore type precision for boolean vectors.
6975 2015-11-10 Ilya Enkovich <enkovich.gnu@gmail.com>
6977 * expr.c (do_store_flag): Use expand_vec_cmp_expr for mask results.
6978 (const_vector_mask_from_tree): New.
6979 (const_vector_from_tree): Use const_vector_mask_from_tree
6980 for boolean vectors.
6981 * optabs-query.h (get_vec_cmp_icode): New.
6982 * optabs-tree.c (expand_vec_cmp_expr_p): New.
6983 * optabs-tree.h (expand_vec_cmp_expr_p): New.
6984 * optabs.c (vector_compare_rtx): Add OPNO arg.
6985 (expand_vec_cond_expr): Adjust to vector_compare_rtx change.
6986 (expand_vec_cmp_expr): New.
6987 * optabs.def (vec_cmp_optab): New.
6988 (vec_cmpu_optab): New.
6989 * optabs.h (expand_vec_cmp_expr): New.
6990 * tree-vect-generic.c (expand_vector_comparison): Add vector
6991 comparison optabs check.
6992 * tree-vect-loop.c (vect_determine_vectorization_factor): Ignore mask
6993 operations for VF. Add mask type computation.
6994 * tree-vect-stmts.c (get_mask_type_for_scalar_type): New.
6995 (vectorizable_comparison): New.
6996 (vect_analyze_stmt): Add vectorizable_comparison.
6997 (vect_transform_stmt): Likewise.
6998 (vect_init_vector): Support boolean vector invariants.
6999 (vect_get_vec_def_for_operand): Add VECTYPE arg.
7000 (vectorizable_condition): Directly provide vectype for invariants
7002 * tree-vectorizer.h (get_mask_type_for_scalar_type): New.
7003 (enum vect_var_kind): Add vect_mask_var.
7004 (enum stmt_vec_info_type): Add comparison_vec_info_type.
7005 (vectorizable_comparison): New.
7006 (vect_get_vec_def_for_operand): Add VECTYPE arg.
7007 * tree-vect-data-refs.c (vect_get_new_vect_var): Support vect_mask_var.
7008 (vect_create_destination_var): Likewise.
7009 * tree-vect-patterns.c (check_bool_pattern): Check fails
7010 if we can vectorize comparison directly.
7011 (search_type_for_mask): New.
7012 (vect_recog_bool_pattern): Support cases when bool pattern check fails.
7013 * tree-vect-slp.c (vect_build_slp_tree_1): Allow
7014 comparison statements.
7015 (vect_get_constant_vectors): Support boolean vector constants.
7016 * config/i386/i386-protos.h (ix86_expand_mask_vec_cmp): New.
7017 (ix86_expand_int_vec_cmp): New.
7018 (ix86_expand_fp_vec_cmp): New.
7019 * config/i386/i386.c (ix86_expand_sse_cmp): Allow NULL for
7020 op_true and op_false.
7021 (ix86_int_cmp_code_to_pcmp_immediate): New.
7022 (ix86_fp_cmp_code_to_pcmp_immediate): New.
7023 (ix86_cmp_code_to_pcmp_immediate): New.
7024 (ix86_expand_mask_vec_cmp): New.
7025 (ix86_expand_fp_vec_cmp): New.
7026 (ix86_expand_int_sse_cmp): New.
7027 (ix86_expand_int_vcond): Use ix86_expand_int_sse_cmp.
7028 (ix86_expand_int_vec_cmp): New.
7029 (ix86_get_mask_mode): New.
7030 (TARGET_VECTORIZE_GET_MASK_MODE): New.
7031 * config/i386/sse.md (avx512fmaskmodelower): New.
7032 (vec_cmp<mode><avx512fmaskmodelower>): New.
7033 (vec_cmp<mode><sseintvecmodelower>): New.
7034 (vec_cmpv2div2di): New.
7035 (vec_cmpu<mode><avx512fmaskmodelower>): New.
7036 (vec_cmpu<mode><sseintvecmodelower>): New.
7037 (vec_cmpuv2div2di): New.
7039 2015-11-10 Richard Biener <rguenther@suse.de>
7041 PR tree-optimization/68240
7042 * tree-ssa-sccvn.c (cond_stmts_equal_p): Handle commutative compares
7044 (visit_phi): For PHIs with just a single executable edge
7045 take its value directly.
7046 (expressions_equal_p): Handle VN_TOP properly.
7048 2015-11-10 Richard Biener <rguenther@suse.de>
7050 * tree-vect-data-refs.c (vect_slp_analyze_node_dependences):
7051 Handle memory using/clobbering stmts without a STMT_VINFO_DATA_REF
7054 2015-11-10 Richard Biener <rguenther@suse.de>
7056 PR tree-optimization/56118
7057 * tree-vect-slp.c (vect_bb_vectorization_profitable_p): Make equal
7058 cost favor vectorized version.
7060 2015-11-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7062 * config/aarch64/aarch64.md (<neg_not_op><mode>cc): New define_expand.
7063 * config/aarch64/iterators.md (NEG_NOT): New code iterator.
7064 (neg_not_op): New code attribute.
7066 2015-11-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7068 * ifcvt.c (noce_try_inverse_constants): New function.
7069 (noce_process_if_block): Call it.
7070 * optabs.h (emit_conditional_neg_or_complement): Declare prototype.
7071 * optabs.def (negcc_optab, notcc_optab): Declare.
7072 * optabs.c (emit_conditional_neg_or_complement): New function.
7073 * doc/tm.texi (Standard Names): Document negcc, notcc names.
7075 2015-11-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7077 PR rtl-optimization/68236
7078 * haifa-sched.c (autopref_multipass_dfa_lookahead_guard): Return 0
7079 if insn_queue doesn't exist.
7080 (haifa_sched_finish): Reset insn_queue to NULL.
7082 2015-11-10 Robert Suchanek <robert.suchanek@imgtec.com>
7084 * regrename.c (create_new_chain): Initialize renamed and tied_chain.
7085 (build_def_use): Initialize terminated_this_insn.
7086 (find_best_rename_reg): Pick and check register from the tied chain.
7087 (regrename_do_replace): Mark head as renamed.
7088 (struct du_head *terminated_this_insn). New static variable.
7089 (scan_rtx_reg): Tie chains in move insns. Set terminated_this_insn.
7090 * regrename.h (struct du_head): Add tied_chain, renamed members.
7092 2015-11-10 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
7095 * config/aarch64/aarch64.c (aarch64_use_constant_blocks_p):
7098 2015-11-09 Eric Botcazou <ebotcazou@adacore.com>
7101 * config/sparc/sparc.c (sparc_function_value_1): In 32-bit mode, do
7102 not promote the mode for aggregate types.
7104 2015-11-09 Nathan Sidwell <nathan@codesourcery.com>
7106 * omp-low.h (replace_oacc_fn_attrib, build_oacc_routine_dims): Declare.
7107 * omp-low.c (build_oacc_routine_dims): New.
7109 2015-11-09 Michael Meissner <meissner@linux.vnet.ibm.com>
7111 * config/rs6000/constraints.md (wF constraint): New constraints
7112 for power9/toc fusion.
7113 (wG constraint): Likewise.
7115 * config/rs6000/predicates.md (u6bit_cint_operand): New
7116 predicate, recognize 0..63.
7117 (upper16_cint_operand): New predicate for power9 and toc fusion.
7118 (fpr_reg_operand): Likewise.
7119 (toc_fusion_or_p9_reg_operand): Likewise.
7120 (toc_fusion_mem_raw): Likewise.
7121 (toc_fusion_mem_wrapped): Likewise.
7122 (fusion_gpr_addis): If power9 fusion, allow fusion for a larger
7124 (fusion_gpr_mem_combo): Delete, use fusion_addis_mem_combo_load
7126 (fusion_addis_mem_combo_load): Add support for power9 fusion of
7127 floating point loads, floating point stores, and gpr stores.
7128 (fusion_addis_mem_combo_store): Likewise.
7129 (fusion_offsettable_mem_operand): Likewise.
7131 * config/rs6000/rs6000-protos.h (emit_fusion_addis): Add declarations.
7132 (emit_fusion_load_store): Likewise.
7133 (fusion_p9_p): Likewise.
7134 (expand_fusion_p9_load): Likewise.
7135 (expand_fusion_p9_store): Likewise.
7136 (emit_fusion_p9_load): Likewise.
7137 (emit_fusion_p9_store): Likewise.
7138 (fusion_wrap_memory_address): Likewise.
7140 * config/rs6000/rs6000.c (struct rs6000_reg_addr): Add new
7141 elements for power9 fusion.
7142 (rs6000_debug_print_mode): Rework debug information to print more
7143 information about fusion.
7144 (rs6000_init_hard_regno_mode_ok): Setup for power9 fusion support.
7145 (rs6000_legitimate_address_p): Recognize toc fusion as a valid
7146 offsettable memory address.
7147 (rs6000_rtx_costs): Update costs for new ISA 3.0 instructions.
7148 (emit_fusion_gpr_load): Move most of the code from
7149 emit_fusion_gpr_load into emit_fusion-addis that handles both
7150 power8 and power9 fusion.
7151 (emit_fusion_addis): Likewise.
7152 (emit_fusion_load_store): Likewise.
7153 (fusion_wrap_memory_address): Add support for TOC fusion.
7154 (fusion_split_address): Likewise.
7155 (fusion_p9_p): Add support for power9 fusion.
7156 (expand_fusion_p9_load): Likewise.
7157 (expand_fusion_p9_store): Likewise.
7158 (emit_fusion_p9_load): Likewise.
7159 (emit_fusion_p9_store): Likewise.
7161 * config/rs6000/rs6000.h (TARGET_EXTSWSLI): Macros for support for
7162 new instructions in ISA 3.0.
7163 (TARGET_CTZ): Likewise.
7164 (TARGET_TOC_FUSION_INT): Macros for power9 fusion support.
7165 (TARGET_TOC_FUSION_FP): Likewise.
7167 * config/rs6000/rs6000.md (UNSPEC_FUSION_P9): New power9/toc
7169 (UNSPEC_FUSION_ADDIS): Likewise.
7170 (QHSI mode iterator): New iterator for power9 fusion.
7171 (GPR_FUSION): Likewise.
7172 (FPR_FUSION): Likewise.
7173 (mod<mode>3): Add support for ISA 3.0 modulus instructions.
7174 (umod<mode>3): Likewise.
7175 (divmod peephole): Likewise.
7176 (udivmod peephole): Likewise.
7177 (ctz<mode>2): Add support for ISA 3.0 count trailing zeros scalar
7179 (ctz<mode>2_h): Likewise.
7180 (ashdi3_extswsli): Add support for ISA 3.0 EXTSWSLI instruction.
7181 (ashdi3_extswsli_dot): Likewise.
7182 (ashdi3_extswsli_dot2): Likewise.
7183 (power9 fusion splitter): New power9/toc fusion support.
7184 (toc_fusionload_<mode>): Likewise.
7185 (toc_fusionload_di): Likewise.
7186 (fusion_gpr_load_<mode>): Update predicate function.
7187 (power9 fusion peephole2s): New power9/toc fusion support.
7188 (fusion_gpr_<P:mode>_<GPR_FUSION:mode>_load): Likewise.
7189 (fusion_gpr_<P:mode>_<GPR_FUSION:mode>_store): Likewise.
7190 (fusion_fpr_<P:mode>_<FPR_FUSION:mode>_load): Likewise.
7191 (fusion_fpr_<P:mode>_<FPR_FUSION:mode>_store): Likewise.
7192 (fusion_p9_<mode>_constant): Likewise.
7194 2015-11-09 Steve Ellcey <sellcey@imgtec.com>
7196 * optabs.c (prepare_libcall_arg): New function.
7197 (expand_fixed_convert): Add call to prepare_libcall_arg.
7199 2015-11-09 Nikolai Bozhenov <n.bozhenov@samsung.com>
7201 * sched-int.h (dump_rgn_dependencies_dot): Declare
7202 * sched-rgn.c (dump_rgn_dependencies_dot): New function
7203 * print-rtl.h (print_insn): Add prototype
7205 * haifa-sched.c (setup_sched_dump): Don't redirect output to stderr.
7206 * common.opt (-fsched-verbose): Set default value to 1.
7207 * invoke.texi (-fsched-verbose): Update the option's description.
7209 2015-11-09 Eric Botcazou <ebotcazou@adacore.com>
7211 * config/visium/visium.h (PRINT_OPERAND): Delete.
7212 (PRINT_OPERAND_PUNCT_VALID_P): Likewise.
7213 (PRINT_OPERAND_ADDRESS): Likewise.
7214 * config/visium/visium.c (TARGET_PRINT_OPERAND_PUNCT_VALID_P): Define
7216 (visium_print_operand_punct_valid_p): ...this. New function.
7217 (TARGET_PRINT_OPERAND): Define to...
7218 (print_operand): Rename to...
7219 (visium_print_operand): ...this.
7220 (TARGET_PRINT_OPERAND_ADDRESS): Define to...
7221 (visium_output_address): Rename to...
7222 (visium_print_operand_address): ...this.
7223 (print_operand_address): Delete.
7225 2015-11-09 Eric Botcazou <ebotcazou@adacore.com>
7228 * tree.h (reverse_storage_order_for_component_p) <COMPONENT_REF>:
7229 Check that the type of the first operand is an aggregate type.
7231 2015-11-09 Nathan Sidwell <nathan@codesourcery.com>
7233 * omp-low.c: Fix some OpenACC comment typos.
7234 (lower_reduction_clauses): Remove BUILT_IN_GOACC_GET_THREAD_NUM call.
7235 * omp-builtins.def (BUILT_IN_GOACC_GET_THREAD_NUM,
7236 BUILT_IN_GOACC_GET_NUM_THREADS): Delete.
7238 2015-11-09 Uros Bizjak <ubizjak@gmail.com>
7240 * config/i386/i386.md (*strmovqi_1): Fix insn enable condition.
7242 2015-11-09 Jeff Law <law@redhat.com>
7244 * tree-ssanames.c (verify_ssaname_freelists): Simplify check for
7245 being in gimple/ssa form. Remove redundant check for SSA_NAME.
7248 2015-11-09 Michael Meissner <meissner@linux.vnet.ibm.com>
7249 Peter Bergner <bergner@vnet.ibm.com>
7251 * config/rs6000/rs6000.opt (-mpower9-fusion): Add new switches for
7253 (-mpower9-vector): Likewise.
7254 (-mpower9-dform): Likewise.
7255 (-mpower9-minmax): Likewise.
7256 (-mtoc-fusion): Likewise.
7257 (-mmodulo): Likewise.
7258 (-mfloat128-hardware): Likewise.
7260 * config/rs6000/rs6000-cpus.def (ISA_3_0_MASKS_SERVER): Add option
7261 mask for ISA 3.0 (power9).
7262 (POWERPC_MASKS): Add new ISA 3.0 switches.
7263 (power9 cpu): Add power9 cpu.
7265 * config/rs6000/rs6000.h (ASM_CPU_POWER9_SPEC): Add support for power9.
7266 (ASM_CPU_SPEC): Likewise.
7267 (EXTRA_SPECS): Likewise.
7269 * config/rs6000/rs6000-opts.h (enum processor_type): Add
7272 * config/rs6000/rs6000.c (power9_cost): Initial cost setup for power9.
7273 (rs6000_debug_reg_global): Add support for power9 fusion.
7274 (rs6000_setup_reg_addr_masks): Cache mode size.
7275 (rs6000_option_override_internal): Until real power9 tuning is
7276 added, use -mtune=power8 for -mcpu=power9.
7277 (rs6000_setup_reg_addr_masks): Do not allow pre-increment,
7278 pre-decrement, or pre-modify on SFmode/DFmode if we allow the use
7279 of Altivec registers.
7280 (rs6000_option_override_internal): Add support for ISA 3.0 switches.
7281 (rs6000_loop_align): Add support for power9 cpu.
7282 (rs6000_file_start): Likewise.
7283 (rs6000_adjust_cost): Likewise.
7284 (rs6000_issue_rate): Likewise.
7285 (insn_must_be_first_in_group): Likewise.
7286 (insn_must_be_last_in_group): Likewise.
7287 (force_new_group): Likewise.
7288 (rs6000_register_move_cost): Likewise.
7289 (rs6000_opt_masks): Likewise.
7291 * config/rs6000/rs6000.md (cpu attribute): Add power9.
7292 * config/rs6000/rs6000-tables.opt: Regenerate.
7294 * config/rs6000/rs6000-c.c (rs6000_target_modify_macros): Define
7295 _ARCH_PWR9 if power9 support is available.
7297 * config/rs6000/aix61.h (ASM_CPU_SPEC): Add power9.
7298 * config/rs6000/aix53.h (ASM_CPU_SPEC): Likewise.
7300 * configure.ac: Determine if the assembler supports the ISA 3.0
7302 * config.in (HAVE_AS_POWER9): Likewise.
7303 * configure: Regenerate.
7305 * doc/invoke.texi (RS/6000 and PowerPC Options): Document ISA 3.0
7308 2015-11-09 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7310 * config/aarch64/aarch64.c (aarch64_simd_valid_immediate):
7311 Remove integer CONST_DOUBLE handling. It should never occur.
7313 2015-11-09 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7316 * config/aarch64/aarch64.h (TARGET_SUPPORTS_WIDE_INT): Define to 1.
7317 * config/aarch64/aarch64.c (aarch64_print_operand, CONST_DOUBLE):
7318 Delete VOIDmode case. Assert that mode is not VOIDmode.
7319 * config/aarch64/predicates.md (const0_operand): Remove const_double
7322 2015-11-09 Martin Liska <mliska@suse.cz>
7324 * ipa-inline-analysis.c (estimate_function_body_sizes): Call
7325 body_info release function.
7326 * ipa-prop.c (ipa_release_body_info): New function.
7327 (ipa_analyze_node): Call the function.
7328 (ipa_node_params::~ipa_node_params): Release known_csts.
7329 * ipa-prop.h (ipa_release_body_info): Declare.
7331 2015-11-09 Martin Liska <mliska@suse.cz>
7333 * gcc.c (record_temp_file): Release name string.
7334 * ifcvt.c (noce_convert_multiple_sets): Use auto_vec instead of vec.
7335 * lra-lives.c (free_live_range_list): Utilize
7336 lra_live_range_pool for allocation and deallocation.
7337 (create_live_range): Likewise.
7338 (copy_live_range): Likewise.
7339 (lra_merge_live_ranges): Likewise.
7340 (remove_some_program_points_and_update_live_ranges): Likewise.
7341 (lra_create_live_ranges_1): Release point_freq_vec that can
7342 be not freed from previous iteration of the function.
7343 * tree-eh.c (lower_try_finally_switch): Use auto_vec instead of vec.
7344 * tree-sra.c (sra_deinitialize): Release all vectors in
7346 * tree-ssa-dom.c (free_dom_edge_info): Make the function extern.
7347 * tree-ssa-threadupdate.c (remove_ctrl_stmt_and_useless_edges):
7348 Release edge_info for a removed edge.
7349 (thread_through_all_blocks): Free region vector.
7350 * tree-ssa.h (free_dom_edge_info): Declare function extern.
7352 2015-11-09 Ilya Enkovich <enkovich.gnu@gmail.com>
7354 * optabs.c (expand_vec_cond_expr): Always get sign from type.
7355 * tree.c (wide_int_to_tree): Support negative values for boolean.
7356 (build_nonstandard_boolean_type): Use signed type for booleans.
7358 2015-11-09 Richard Biener <rguenther@suse.de>
7360 PR tree-optimization/68248
7361 * tree-vect-generic.c (expand_vector_operations_1): Handle scalar rhs2.
7363 2015-11-09 Richard Biener <rguenther@suse.de>
7365 PR tree-optimization/56118
7366 * tree-vectorizer.h (vect_find_last_scalar_stmt_in_slp): Declare.
7367 * tree-vect-slp.c (vect_find_last_scalar_stmt_in_slp): Export.
7368 * tree-vect-data-refs.c (vect_slp_analyze_node_dependences): New
7370 (vect_slp_analyze_data_ref_dependences): Instead of computing
7371 all dependences of the region DRs just analyze the code motions
7372 SLP vectorization will perform. Remove SLP instances that
7373 cannot have their store/load motions applied.
7374 (vect_analyze_data_refs): Allow DRs without a vectype
7375 in BB vectorization.
7377 2015-11-09 Julian Brown <julian@codesourcery.com>
7379 * final.c (output_asm_insn): Pass VOIDmode to output_address.
7380 (output_address): Add MODE argument. Pass to print_operand_address
7382 * targhooks.c (default_print_operand_address): Add MODE argument.
7383 * targhooks.h (default_print_operand_address): Update prototype.
7384 * output.h (output_address): Update prototype.
7385 * target.def (print_operand_address): Add MODE argument.
7386 * config/vax/vax.c (print_operand_address): Pass VOIDmode to
7388 (print_operand): Pass access mode to output_address.
7389 * config/mcore/mcore.c (mcore_print_operand_address): Add MODE
7391 (mcore_print_operand): Update calls to mcore_print_operand_address.
7392 * config/fr30/fr30.c (fr30_print_operand): Pass VOIDmode to
7394 * config/lm32/lm32.c (lm32_print_operand): Pass mode in calls to
7396 * config/tilegx/tilegx.c (output_memory_reference_mode): Remove
7398 (tilegx_print_operand): Don't set above global. Update calls to
7400 (tilegx_print_operand_address): Add MODE argument. Use instead of
7401 output_memory_reference_mode global.
7402 * config/frv/frv.c (frv_print_operand_address): Add MODE argument.
7403 (frv_print_operand): Pass mode to frv_print_operand_address calls.
7404 * config/mn10300/mn10300.c (mn10300_print_operand): Pass mode to
7406 * config/cris/cris.c (cris_print_operand_address): Add MODE argument.
7407 (cris_print_operand): Pass mode to output_address calls.
7408 * config/spu/spu.c (print_operand): Pass mode to output_address calls.
7409 * config/aarch64/aarch64.h (aarch64_print_operand)
7410 (aarch64_print_operand_address): Remove prototypes.
7411 * config/aarch64/aarch64.c (aarch64_memory_reference_mode): Delete
7413 (aarch64_print_operand): Make static. Update calls to output_address.
7414 (aarch64_print_operand_address): Add MODE argument. Use instead of
7415 aarch64_memory_reference_mode global.
7416 (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS): Define target
7418 * config/aarch64/aarch64.h (PRINT_OPERAND, PRINT_OPERAND_ADDRESS):
7419 Delete macro definitions.
7420 * config/pa/pa.c (pa_print_operand): Pass mode in output_address calls.
7421 * config/xtensa/xtensa.c (print_operand): Pass mode in
7422 output_address calls.
7423 * config/h8300/h8300.c (h8300_print_operand_address): Add MODE
7425 (h83000_print_operand): Update calls to h8300_print_operand_address
7427 * config/ia64/ia64.c (ia64_print_operand_address): Add MODE argument.
7428 * config/tilepro/tilepro.c (output_memory_reference_mode): Delete
7430 (tilepro_print_operand): Pass mode to output_address.
7431 (tilepro_print_operand_address): Add MODE argument. Use instead of
7432 output_memory_reference_mode.
7433 * config/nvptx/nvptx.c (output_decl_chunk, nvptx_assemble_integer)
7434 (nvptx_output_call_insn, nvptx_print_address_operand): Pass VOIDmode
7435 to output_address calls.
7436 (nvptx_print_operand_address): Add MODE argument.
7437 * config/alpha/alpha.c (print_operand): Pass mode argument in
7438 output_address calls.
7439 * config/m68k/m68k.c (print_operand): Pass mode argument in
7440 output_address call.
7441 * config/avr/avr.c (avr_print_operand_address): Add MODE argument.
7442 (avr_print_operand): Update calls to avr_print_operand_address.
7443 * config/sparc/sparc.c (sparc_print_operand_address): Add MODE
7444 argument. Update calls to output_address.
7445 (sparc_print_operand): Pass mode to output_address.
7446 * config/iq2000/iq2000.c (iq2000_print_operand_address): Add MODE
7448 (iq2000_print_operand): Pass mode in output_address calls.
7449 * config/stormy16/stormy16.c (xstormy16_print_operand_address): Add
7451 (xstormy16_print_operand): Pass mode to
7452 xstormy16_print_operand_address calls.
7453 * config/mips/mips.c (mips_print_operand): Update calls to
7455 (mips_print_operand_address): Add MODE argument.
7456 * config/epiphany/epiphany.c (epiphany_print_operand): Update calls
7458 (epiphany_print_operand_address): Add MODE argument. Add FIXME note.
7459 * config/pdp11/pdp11.c (pdp11_asm_print_operand): Update call to
7461 * config/rx/rx.c (rx_print_operand_address): Add MODE argument.
7462 (rx_print_operand): Update calls to output_address,
7463 rx_print_operand_address.
7464 * config/nds32/nds32.c (nds32_print_operand): Update calls to
7466 (nds32_print_operand_address): Add MODE argument.
7467 * config/rs6000/rs6000.c (print_operand): Pass mem mode to
7468 output_address calls.
7469 * config/c6x/c6x.c (print_address_offset): Pass mem mode to
7470 output_address call.
7471 (c6x_print_address_operand): Update calls to output_address.
7472 (c6x_print_operand_address): Pass mode to above.
7473 * config/v850/v850.c (v850_print_operand_address): Add MODE argument.
7474 (v850_print_operand): Pass mode to v850_print_operand_address,
7476 * config/mmix/mmix.c (mmix_print_operand_address): Add MODE argument.
7477 (mmix_print_operand): Pass mode in output_address calls.
7478 * config/sh/sh.c (sh_print_operand_address): Add MODE argument.
7479 (sh_print_operand): Pass mem mode to output_address,
7480 sh_print_operand_address.
7481 * config/cr16/cr16.c (cr16_print_operand_address): Add MODE argument.
7482 (cr16_print_operand): Pass mode to output_address,
7483 cr16_print_operand_address.
7484 * config/bfin/bfin.c (print_address_operand): Pass VOIDmode to
7486 * config/microblaze/microblaze.c (print_operand): Pass mode to
7488 * config/nios2/nios2.c (nios2_print_operand): Pass VOIDmode to
7490 (nios2_print_operand_address): Add MODE argument. Update call to
7491 nios2_print_operand_address.
7492 * config/s390/s390.c (print_operand): Pass mode to output_address.
7493 * config/m32c/m32c.c (m32c_print_operand_address): Add MODE argument.
7494 * config/arc/arc.c (arc_print_operand): Pass VOIDmode to
7496 * config/arm/arm.c (arm_print_operand_address): Add MODE argument.
7497 Use instead of output_memory_reference_mode.
7498 (output_memory_reference_mode): Delete global.
7499 (arm_print_operand): Pass mem mode to output_address.
7500 * config/m32r/m32r.c (m32r_print_operand_address): Add MODE argument.
7501 (m32r_print_operand): Pass mode to output_address.
7502 * config/msp430/msp430.c (msp430_print_operand_addr): Add MODE
7504 (msp430_print_operand): Pass mode to msp430_print_operand_addr.
7505 * config/i386/i386.c (ix86_print_operand): Pass mode to
7506 output_address calls.
7507 (ix86_print_operand_address): Add MODE argument.
7509 2015-11-09 Eric Botcazou <ebotcazou@adacore.com>
7512 * tree-core.h (REF_REVERSE_STORAGE_ORDER): Move around.
7513 * tree.h (REF_REVERSE_STORAGE_ORDER): Change to default_def_flag.
7514 * tree-streamer-in.c (unpack_ts_base_value_fields): Adjust.
7515 * tree-streamer-out.c (pack_ts_base_value_fields): Likewise.
7517 2015-11-09 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7519 PR rtl-optimization/67749
7520 * ifcvt.c (noce_try_cmove_arith): Do not emit move in IF-ELSE
7521 case before emitting the two blocks. Instead modify the register
7522 in the corresponding final insn of the basic block.
7524 2015-11-09 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7526 * acinclude.m4 (gcc_AC_INITFINI_ARRAY): Allow for differences in
7529 Define HAVE_INITFINI_ARRAY_SUPPORT as 0/1.
7531 * config/sol2.h (SUPPORTS_INIT_PRIORITY): Define to
7532 HAVE_INITFINI_ARRAY_SUPPORT.
7533 * config/initfini-array.h: Check HAVE_INITFINI_ARRAY_SUPPORT value.
7535 * configure.ac (gcc_cv_as_sparc_nobits): Remove.
7536 * config/sparc/sparc.c (sparc_solaris_elf_asm_named_section):
7537 Don't check HAVE_AS_SPARC_NOBITS.
7538 Heed SECTION_NOTYPE.
7540 * configure: Regenerate.
7541 * config.in: Regenerate.
7543 2015-11-09 Eric Botcazou <ebotcazou@adacore.com>
7546 * fold-const.c (fold_truth_andor_1): Initialize new variables to 0.
7548 2015-11-09 Richard Henderson <rth@redhat.com>
7550 * config/i386/i386-c.c (ix86_target_macros): Define __SEG_FS,
7551 __SEG_GS, __SEG_TLS.
7552 (ix86_register_pragmas): Register address spaces __seg_fs,
7553 __seg_gs, __seg_tls.
7554 * config/i386/i386-protos.h (enum ix86_address_seg): Remove.
7555 (ADDR_SPACE_SEG_FS, ADDR_SPACE_SEG_GS, ADDR_SPACE_SEG_TLS): New.
7556 (struct ix86_address): Use addr_space_t instead of ix86_address_seg.
7557 * config/i386/i386.c (ix86_decompose_address): Likewise.
7558 (ix86_legitimate_address_p): Likewise.
7559 (memory_address_length): Likewise. Check mem address space too.
7560 (ix86_print_operand): Use ix86_print_operand_address_as.
7561 (ix86_print_operand_address_as): Rename from
7562 ix86_print_operand_address, add new addr_space_t parameter.
7563 Validate that either the parameter or the ix86_address segment
7564 is default address space. Handle ADDR_SPACE_SEG_TLS.
7565 (ix86_print_operand_address): New.
7566 (ix86_addr_space_subset_p, TARGET_ADDR_SPACE_SUBSET_P): New.
7567 (ix86_addr_space_convert, TARGET_ADDR_SPACE_CONVERT): New.
7568 (ix86_addr_space_debug, TARGET_ADDR_SPACE_DEBUG): New.
7569 (ix86_addr_space_zero_address_valid): New.
7570 (TARGET_ADDR_SPACE_ZERO_ADDRESS_VALID): New.
7571 * config/i386/i386.h (DEFAULT_TLS_SEG_REG): Use addr_space_t constants.
7572 * config/i386/rdos.h (DEFAULT_TLS_SEG_REG): Likewise.
7573 * config/i386/predicates.md (address_no_seg_operand): Likewise.
7574 (vsib_address_operand): Likewise.
7575 (address_mpx_no_base_operand): Likewise.
7576 (address_mpx_no_index_operand): Likewise.
7577 * doc/extend.texi (x86 Named Address Spaces): New section.
7579 * config/i386/i386.c (ix86_check_no_addr_space): New.
7580 (decide_alg): Add have_as parameter.
7581 (alg_usable_p): Likewise; disable rep algorithms if set.
7582 (ix86_expand_set_or_movmem): Notice if either MEM has a
7583 non-default address space.
7584 (ix86_expand_strlen): Likewise.
7585 * config/i386/i386.md (strmov, strset): Likewise.
7586 (*strmovdi_rex_1): Use ix86_check_no_addr_space.
7587 (*strmovsi_1, *strmovqi_1, *rep_movdi_rex64, *rep_movsi, *rep_movqi,
7588 *strsetdi_rex_1, *strsetsi_1, *strsethi_1, *strsetqi_1,
7589 *rep_stosdi_rex64, *rep_stossi, *rep_stosqi, *cmpstrnqi_nz_1,
7590 *cmpstrnqi_1, *strlenqi_1): Likewise.
7592 * config/i386/i386.md (*movabs<mode>_1): Print the full memory rtx.
7593 (*movabs<mode>_2): Likewise.
7595 * dwarf2out.c (modified_type_die): Pass the address space number
7596 through TARGET_ADDR_SPACE_DEBUG to produce the dwarf address class.
7597 * target.def (TARGET_ADDR_SPACE_DEBUG): New.
7598 * targhooks.c (default_addr_space_debug): New.
7599 * targhooks.h (default_addr_space_debug): Declare.
7600 * doc/tm.texi.in (TARGET_ADDR_SPACE_DEBUG): Mark it.
7601 * doc/tm.texi: Rebuild.
7603 * gimple.c (check_loadstore): Return false when 0 is a valid address.
7604 * fold-const.c (const_unop) [ADDR_SPACE_CONVERT_EXPR]: Do not fold
7605 null when 0 is valid in the source address space.
7606 * target.def (TARGET_ADDR_SPACE_ZERO_ADDRESS_VALID): New.
7607 * targhooks.c (default_addr_space_zero_address_valid): New.
7608 * targhooks.h (default_addr_space_zero_address_valid): Declare.
7609 * doc/tm.texi.in (TARGET_ADDR_SPACE_ZERO_ADDRESS_VALID): Mark it.
7610 * doc/tm.texi: Rebuild.
7612 * cselib.c (add_mem_for_addr): Compare address spaces when
7614 (cselib_lookup_mem): Likewise.
7615 * fold-const.c (operand_equal_p): Check address spaces of
7616 pointer types before checking integer constants.
7619 * tree-ssa-address.c (create_mem_ref_raw): Use a pointer of
7620 the correct type for the base.
7622 2015-11-09 Jeff Law <law@redhat.com>
7624 * tree-into-ssa.c (names_to_release): No longer static.
7625 * tree-into-ssa.h (names_to_release): Declare.
7626 * tree-ssanames.c (verify_ssaname_freelists): New debug function.
7627 (release_free_names_and_compact_live_names): New function extracted
7628 from pass_release_ssa_names::execute.
7629 (pass_release_ssa_names::execute): Use it.
7631 2015-11-09 Alan Modra <amodra@gmail.com>
7633 * gensupport.c (add_mnemonic_string): Make len param a size_t.
7634 (gen_mnemonic_setattr): Make "size" var a size_t. Use
7635 obstack_blank_fast to shrink obstack. Cast obstack_next_free
7638 2015-11-09 Segher Boessenkool <segher@kernel.crashing.org>
7640 PR rtl-optimization/68182
7641 * bb-reorder.c (reorder_basic_blocks_simple): Treat a conditional
7642 branch with only one successor just like unconditional branches.
7644 2015-11-08 Jeff Law <law@redhat.com>
7646 * tree-ssa-threadupdate.c (register_jump_thraed): Assert that a
7647 non-FSM path has no edges marked with EDGE_DFS_BACK.
7648 (ssa_redirect_edges): No longer call mark_loop_for_removal.
7649 (thread_single_edge, def_split_header_continue_p): Remove.
7650 (bb_ends_with_multiway_branch): Likewise.
7651 (thread_through_loop_header): Remove cases of threading from
7652 latch through the header. Simplify knowing we won't thread
7654 (thread_through_all_blocks): Simplify knowing that only the FSM
7655 threader needs to handle backedges.
7657 2015-11-08 Eric Botcazou <ebotcazou@adacore.com>
7659 * doc/extend.texi (type attributes): Document scalar_storage_order.
7660 (Structure-Packing Pragmas): Rename into...
7661 (Structure-Layout Pragmas): ...this. Document scalar_storage_order.
7662 * doc/invoke.texi (C Dialect Options): Document -fsso-struct
7663 (Warnings): Document -Wno-scalar-storage-order.
7664 * flag-types.h (enum scalar_storage_order_kind): New enumeration.
7665 * calls.c (store_unaligned_arguments_into_pseudos): Adjust calls to
7666 extract_bit_field and store_bit_field.
7667 (initialize_argument_information): Adjust call to store_expr.
7668 (load_register_parameters): Adjust call to extract_bit_field.
7669 * expmed.c (check_reverse_storage_order_support): New function.
7670 (check_reverse_float_storage_order_support): Likewise.
7671 (flip_storage_order): Likewise.
7672 (store_bit_field_1): Add REVERSE parameter. Flip the storage order
7673 of the value if it is true. Pass REVERSE to recursive call after
7674 adjusting the target offset.
7675 Do not use extraction or movstrict instruction if REVERSE is true.
7676 Pass REVERSE to store_fixed_bit_field.
7677 (store_bit_field): Add REVERSE parameter and pass to it to above.
7678 (store_fixed_bit_field): Add REVERSE parameter and pass to it to
7679 store_split_bit_field and store_fixed_bit_field_1.
7680 (store_fixed_bit_field_1): Add REVERSE parameter. Flip the storage
7681 order of the value if it is true and adjust the target offset.
7682 (store_split_bit_field): Add REVERSE parameter and pass it to
7683 store_fixed_bit_field. Adjust the target offset if it is true.
7684 (extract_bit_field_1): Add REVERSE parameter. Flip the storage order
7685 of the value if it is true. Pass REVERSE to recursive call after
7686 adjusting the target offset.
7687 Do not use extraction or subreg instruction if REVERSE is true.
7688 Pass REVERSE to extract_fixed_bit_field.
7689 (extract_bit_field): Add REVERSE parameter and pass to it to above.
7690 (extract_fixed_bit_field): Add REVERSE parameter and pass to it to
7691 extract_split_bit_field and extract_fixed_bit_field_1.
7692 (extract_fixed_bit_field_1): Add REVERSE parameter. Flip the storage
7693 order of the value if it is true and adjust the target offset.
7694 (extract_split_bit_field): Add REVERSE parameter and pass it to
7695 extract_fixed_bit_field. Adjust the target offset if it is true.
7696 * expmed.h (flip_storage_order): Declare.
7697 (store_bit_field): Adjust prototype.
7698 (extract_bit_field): Likewise.
7699 * expr.c (emit_group_load_1): Adjust calls to extract_bit_field.
7700 (emit_group_store): Adjust call to store_bit_field.
7701 (copy_blkmode_from_reg): Likewise.
7702 (copy_blkmode_to_reg): Likewise.
7703 (write_complex_part): Likewise.
7704 (read_complex_part): Likewise.
7705 (optimize_bitfield_assignment_op): Add REVERSE parameter. Assert
7706 that it isn't true if the target is a register.
7707 <PLUS_EXPR>: If it is, do not optimize unless bitsize is equal to 1,
7708 and flip the storage order of the value.
7709 <BIT_IOR_EXPR>: Flip the storage order of the value.
7710 (get_bit_range): Adjust call to get_inner_reference.
7711 (expand_assignment): Adjust calls to get_inner_reference, store_expr,
7712 optimize_bitfield_assignment_op and store_field. Handle MEM_EXPRs
7713 with reverse storage order.
7714 (store_expr_with_bounds): Add REVERSE parameter and pass it to
7715 recursive calls and call to store_bit_field. Force the value into a
7716 register if it is true and then flip the storage order of the value.
7717 (store_expr): Add REVERSE parameter and pass it to above.
7718 (categorize_ctor_elements_1): Adjust call to
7719 initializer_constant_valid_p.
7720 (store_constructor_field): Add REVERSE parameter and pass it to
7721 recursive calls and call to store_field.
7722 (store_constructor): Add REVERSE parameter and pass it to calls to
7723 store_constructor_field and store_expr. Set it to true for an
7724 aggregate type with TYPE_REVERSE_STORAGE_ORDER.
7725 (store_field): Add REVERSE parameter and pass it to recursive calls
7726 and calls to store_expr and store_bit_field. Temporarily flip the
7727 storage order of the value with record type and integral mode and
7728 adjust the shift if it is true.
7729 (get_inner_reference): Add PREVERSEP parameter and set it to true
7730 upon encoutering a reference with reverse storage order.
7731 (expand_expr_addr_expr_1): Adjust call to get_inner_reference.
7732 (expand_constructor): Adjust call to store_constructor.
7733 (expand_expr_real_2) <CASE_CONVERT>: Pass TYPE_REVERSE_STORAGE_ORDER
7734 of the union type to store_expr in the MEM case and assert that it
7735 isn't set in the REG case. Adjust call to store_field.
7736 (expand_expr_real_1) <MEM_REF>: Handle reverse storage order.
7737 <normal_inner_ref>: Add REVERSEP variable and adjust calls to
7738 get_inner_reference and extract_bit_field. Temporarily flip the
7739 storage order of the value with record type and integral mode and
7740 adjust the shift if it is true. Flip the storage order of the value
7741 at the end if it is true.
7742 <VIEW_CONVERT_EXPR>: Add REVERSEP variable and adjust call to
7743 get_inner_reference. Do not fetch an inner reference if it is true.
7744 * expr.h (store_expr_with_bounds): Ajust prototype.
7745 (store_expr): Likewise.
7746 * fold-const.c (make_bit_field_ref): Add REVERSEP parameter and set
7747 REF_REVERSE_STORAGE_ORDER on the reference according to it.
7748 (optimize_bit_field_compare): Deal with reverse storage order.
7749 Adjust calls to get_inner_reference and make_bit_field_ref.
7750 (decode_field_reference): Add PREVERSEP parameter and adjust call to
7751 get_inner_reference.
7752 (fold_truth_andor_1): Deal with reverse storage order. Adjust calls
7753 to decode_field_reference and make_bit_field_ref.
7754 (fold_unary_loc) <CASE_CONVERT>: Adjust call to get_inner_reference.
7755 <VIEW_CONVERT_EXPR>: Propagate the REF_REVERSE_STORAGE_ORDER flag.
7756 (fold_comparison): Adjust call to get_inner_reference.
7757 (split_address_to_core_and_offset): Adjust call to
7758 get_inner_reference.
7759 * gimple-expr.c (useless_type_conversion_p): Return false for array
7760 types with different TYPE_REVERSE_STORAGE_ORDER flag.
7761 * gimplify.c (gimplify_expr) <MEM_REF>: Propagate the
7762 REF_REVERSE_STORAGE_ORDER flag.
7763 * lto-streamer-out.c (hash_tree): Deal with TYPE_REVERSE_STORAGE_ORDER.
7764 * output.h (assemble_real): Adjust prototype.
7765 * print-tree.c (print_node): Convey TYPE_REVERSE_STORAGE_ORDER.
7766 * stor-layout.c (finish_record_layout): Propagate the
7767 TYPE_REVERSE_STORAGE_ORDER flag to the variants.
7768 * tree-core.h (TYPE_REVERSE_STORAGE_ORDER): Document.
7769 (TYPE_SATURATING): Adjust.
7770 (REF_REVERSE_STORAGE_ORDER): Document.
7771 * tree-dfa.c (get_ref_base_and_extent): Add PREVERSE parameter and
7772 set it to true upon encoutering a reference with reverse storage order.
7773 * tree-dfa.h (get_ref_base_and_extent): Adjust prototype.
7774 * tree-inline.c (remap_gimple_op_r): Propagate the
7775 REF_REVERSE_STORAGE_ORDER flag.
7776 (copy_tree_body_r): Likewise.
7777 * tree-outof-ssa.c (insert_value_copy_on_edge): Adjust call to
7779 * tree-streamer-in.c (unpack_ts_base_value_fields): Deal with
7780 TYPE_REVERSE_STORAGE_ORDER and REF_REVERSE_STORAGE_ORDER.
7781 * tree-streamer-out.c (pack_ts_base_value_fields): Likewise.
7782 * tree.c (stabilize_reference) <BIT_FIELD_REF>: Propagate the
7783 REF_REVERSE_STORAGE_ORDER flag.
7784 (verify_type_variant): Deal with TYPE_REVERSE_STORAGE_ORDER.
7785 (gimple_canonical_types_compatible_p): Likewise.
7786 * tree.h (TYPE_REVERSE_STORAGE_ORDER): New flag.
7787 (TYPE_SATURATING): Adjust.
7788 (REF_REVERSE_STORAGE_ORDER): New flag.
7789 (reverse_storage_order_for_component_p): New inline predicate.
7790 (storage_order_barrier_p): Likewise.
7791 (get_inner_reference): Adjust prototype.
7792 * varasm.c: Include expmed.h.
7793 (assemble_variable_contents): Adjust call to output_constant.
7794 (assemble_real): Add REVERSE parameter. Flip the storage
7795 order of the value if REVERSE is true.
7796 (compare_constant) <CONSTRUCTOR>: Compare TYPE_REVERSE_STORAGE_ORDER.
7797 (assemble_constant_contents): Adjust call to output_constant.
7798 (output_constant_pool_2): Adjust call to assemble_real.
7799 (initializer_constant_valid_p_1) <CONSTRUCTOR>: Deal with
7800 TYPE_REVERSE_STORAGE_ORDER.
7801 (initializer_constant_valid_p): Add REVERSE parameter.
7802 (output_constant): Add REVERSE parameter.
7803 <INTEGER_TYPE>: Flip the storage order of the value if REVERSE is true.
7804 <REAL_TYPE>: Adjust call to assemble_real.
7805 <COMPLEX_TYPE>: Pass it to recursive calls.
7806 <ARRAY_TYPE>: Likewise. Adjust call to output_constructor.
7807 <RECORD_TYPE>: Likewise. Adjust call to output_constructor.
7808 (struct oc_local_state): Add REVERSE field.
7809 (output_constructor_array_range): Adjust calls to output_constant.
7810 (output_constructor_regular_field): Likewise.
7811 (output_constructor_bitfield): Adjust call to output_constructor.
7812 Flip the storage order of the value if REVERSE is true.
7813 (output_constructor): Add REVERSE parameter. Set it to true for an
7814 aggregate type with TYPE_REVERSE_STORAGE_ORDER. Adjust call to
7815 output_constructor_bitfield.
7816 * varasm.h (initializer_constant_valid_p): Default REVERSE to false.
7817 * asan.c (instrument_derefs): Adjust call to get_inner_reference.
7818 * builtins.c (get_object_alignment_2): Likewise.
7819 * cfgexpand.c (expand_debug_expr): Adjust call to get_inner_reference
7820 and get_ref_base_and_extent.
7821 * dbxout.c (dbxout_expand_expr): Likewise.
7822 * dwarf2out.c (add_var_loc_to_decl): Likewise.
7823 (loc_list_for_address_of_addr_expr_of_indirect_ref): Likewise.
7824 (loc_list_from_tree): Likewise.
7825 (fortran_common): Likewise.
7826 * gimple-fold.c (gimple_fold_builtin_memory_op): Adjust calls to
7827 get_ref_base_and_extent.
7828 (get_base_constructor): Likewise.
7829 (fold_const_aggregate_ref_1): Likewise.
7830 * gimple-laddress.c (pass_laddress::execute): Adjust call to
7831 get_inner_reference.
7832 * gimple-ssa-strength-reduction.c (slsr_process_ref): Adjust call to
7833 get_inner_reference and bail out on reverse storage order.
7834 * ifcvt.c (noce_emit_move_insn): Adjust calls to store_bit_field.
7835 * ipa-cp.c (ipa_get_jf_ancestor_result): Adjust call to
7836 build_ref_for_offset.
7837 * ipa-polymorphic-call.c (set_by_invariant): Adjust call to
7838 get_ref_base_and_extent.
7839 (ipa_polymorphic_call_context): Likewise.
7840 (extr_type_from_vtbl_ptr_store): Likewise.
7841 (check_stmt_for_type_change): Likewise.
7842 (get_dynamic_type): Likewise.
7843 * ipa-prop.c (ipa_load_from_parm_agg_1): Adjust call to
7844 get_ref_base_and_extent.
7845 (compute_complex_assign_jump_func): Likewise.
7846 (get_ancestor_addr_info): Likewise.
7847 (compute_known_type_jump_func): Likewise.
7848 (determine_known_aggregate_parts): Likewise.
7849 (ipa_get_adjustment_candidate): Likewise.
7850 (ipa_modify_call_arguments): Set REF_REVERSE_STORAGE_ORDER on MEM_REF.
7851 * ipa-prop.h (ipa_parm_adjustment): Add REVERSE field.
7852 (build_ref_for_offset): Adjust prototype.
7853 * simplify-rtx.c (delegitimize_mem_from_attrs): Adjust call to
7854 get_inner_reference.
7855 * tree-affine.c (tree_to_aff_combination): Adjust call to
7856 get_inner_reference.
7857 (get_inner_reference_aff): Likewise.
7858 * tree-data-ref.c (split_constant_offset_1): Likewise.
7859 (dr_analyze_innermost): Likewise. Bail out if reverse storage order.
7860 * tree-scalar-evolution.c (interpret_rhs_expr): Adjust call to
7861 get_inner_reference.
7862 * tree-sra.c (struct access): Add REVERSE and move WRITE around.
7863 (dump_access): Print new fields.
7864 (create_access): Adjust call to get_ref_base_and_extent and set the
7865 REVERSE flag according to the result.
7866 (completely_scalarize_record): Set the REVERSE flag.
7867 (scalarize_elem): Add REVERSE parameter.
7868 (build_access_from_expr_1): Preserve storage order barriers.
7869 (build_accesses_from_assign): Likewise.
7870 (build_ref_for_offset): Add REVERSE parameter and set the
7871 REF_REVERSE_STORAGE_ORDER flag accordingly.
7872 (build_ref_for_model): Adjust call to build_ref_for_offset and clear
7873 the REF_REVERSE_STORAGE_ORDER flag if there are components.
7874 (analyze_access_subtree): Likewise.
7875 (create_artificial_child_access): Set the REVERSE flag.
7876 (get_access_for_expr): Adjust call to get_ref_base_and_extent.
7877 (turn_representatives_into_adjustments): Propagate REVERSE flag.
7878 (ipa_sra_check_caller): Adjust call to get_inner_reference.
7879 * tree-ssa-alias.c (ao_ref_base): Adjust call to
7880 get_ref_base_and_extent.
7881 (aliasing_component_refs_p): Likewise.
7882 (stmt_kills_ref_p_1): Likewise.
7883 * tree-ssa-dce.c (mark_aliased_reaching_defs_necessary_1): Likewise.
7884 * tree-ssa-loop-ivopts.c (may_be_nonaddressable_p) <MEM_REF>: New.
7885 Return true if reverse storage order.
7886 <BIT_FIELD_REF>: Likewise.
7887 <COMPONENT_REF>: Likewise.
7888 <ARRAY_REF>: Likewise.
7889 <ARRAY_RANGE_REF>: Likewise.
7890 (split_address_cost): Likewise. Bail out if reverse storage order.
7891 * tree-ssa-math-opts.c (find_bswap_or_nop_load): Adjust call to
7892 get_inner_reference. Bail out if reverse storage order.
7893 (bswap_replace): Adjust call to get_inner_reference.
7894 * tree-ssa-pre.c (create_component_ref_by_pieces_1) <MEM_REF>: Set
7895 the REF_REVERSE_STORAGE_ORDER flag.
7896 <BIT_FIELD_REF>: Likewise.
7897 * tree-ssa-sccvn.c (vn_reference_eq): Return false on storage order
7899 (copy_reference_ops_from_ref) <MEM_REF>: Set REVERSE field according
7900 to the REF_REVERSE_STORAGE_ORDER flag.
7901 <BIT_FIELD_REF>: Likewise.
7902 <VIEW_CONVERT_EXPR>: Set it for storage order barriers.
7903 (contains_storage_order_barrier_p): New predicate.
7904 (vn_reference_lookup_3): Adjust calls to get_ref_base_and_extent.
7905 Punt on storage order barriers if necessary.
7906 * tree-ssa-sccvn.h (struct vn_reference_op_struct): Add REVERSE.
7907 * tree-ssa-structalias.c (get_constraint_for_component_ref): Adjust
7908 call to get_ref_base_and_extent.
7909 (do_structure_copy): Likewise.
7910 * tree-vect-data-refs.c (vect_check_gather): Adjust call to
7911 get_inner_reference.
7912 (vect_analyze_data_refs): Likewise. Bail out if reverse storage order.
7913 * tsan.c (instrument_expr): Adjust call to get_inner_reference.
7914 * ubsan.c (instrument_bool_enum_load): Likewise.
7915 (instrument_object_size): Likewise.
7916 * var-tracking.c (track_expr_p): Adjust call to
7917 get_ref_base_and_extent.
7918 * config/mips/mips.c (r10k_safe_mem_expr_p): Adjust call to
7919 get_inner_reference.
7920 * config/s390/s390.c (s390_expand_atomic): Adjust call to
7922 * config/tilegx/tilegx.c (tilegx_expand_unaligned_load): Adjust call to
7924 * config/tilepro/tilepro.c (tilepro_expand_unaligned_load): Likewise.
7926 2015-11-07 Eric Botcazou <ebotcazou@adacore.com>
7928 * config/sparc/sparc.opt (mfix-at697f): Add final period.
7930 2015-11-07 Segher Boessenkool <segher@kernel.crashing.org>
7932 PR rtl-optimization/67864
7933 * common/config/i386/i386-common.c (ix86_option_optimization_table)
7934 <OPT_freorder_blocks_algorithm_>: Use REORDER_BLOCKS_ALGORITHM_STC
7937 2015-11-07 Richard Sandiford <richard.sandiford@arm.com>
7939 * trans-mem.c (is_tm_pure_call): Use gimple_call_flags for
7942 2015-11-07 Richard Sandiford <richard.sandiford@arm.com>
7944 * builtins.def: #undef DEF_BUILTIN and DEF_BUILTIN_CHKP
7945 * builtins.c, genmatch.c, tree-core.h: Don't undef them here.
7947 2015-11-07 Richard Sandiford <richard.sandiford@arm.com>
7949 * internal-fn.def: #undef DEF_INTERNAL_FN at the end.
7950 * internal-fn.c: Don't undef it here.
7951 * tree-core.h: Likewise.
7953 2015-11-07 Richard Sandiford <richard.sandiford@arm.com>
7955 * builtins.c (fold_builtin_nan): Delete.
7956 (fold_builtin_memcmp): Remove case where both arguments are constant.
7957 (fold_builtin_strcmp, fold_builtin_strncmp): Likewise.
7958 (fold_builtin_strspn, fold_builtin_strcspn): Likewise.
7959 (fold_builtin_1): Remove BUILT_IN_NAN* handling.
7960 * fold-const-call.c: Include fold-const.h.
7961 (host_size_t_cst_p): New function.
7962 (build_cmp_result, fold_const_builtin_nan): Likewise.
7963 (fold_const_call_1): New function, split out from...
7964 (fold_const_call): ...here (for all three interfaces). Handle
7965 constant nan, nans, strlen, strcmp, strncmp, strspn and strcspn.
7967 2015-11-07 Richard Sandiford <richard.sandiford@arm.com>
7969 * builtins.c (fold_builtin_bitop, fold_builtin_bswap): Delete.
7970 (fold_builtin_1): Don't call them.
7971 * fold-const-call.c: Include tm.h.
7972 (fold_const_call_ss): New variant for integer-to-integer folds.
7973 (fold_const_call): Call it.
7975 2015-11-07 Richard Sandiford <richard.sandiford@arm.com>
7977 * builtins.c (fold_builtin_classify): Move constant cases to...
7978 * fold-const-call.c (fold_const_call_ss): ...here.
7980 2015-11-07 Richard Sandiford <richard.sandiford@arm.com>
7982 * builtins.h (c_getstr): Move to...
7983 * fold-const.h (c_getstr): ...here.
7984 * builtins.c (c_getstr): Move to...
7985 * fold-const.c (c_getstr): ...here.
7987 2015-11-07 Richard Sandiford <richard.sandiford@arm.com>
7989 * builtins.def (BUILTIN_RINT, BUILTIN_RINTF, BUILTIN_RINTL): Use
7990 ATTR_MATHFN_FPROUNDING rather than ATTR_MATHFN_FPROUNDING_ERRNO.
7992 2015-11-07 Richard Sandiford <richard.sandiford@arm.com>
7994 * tree-call-cdce.c (shrink_wrap_one_built_in_call): Try to update
7995 the dominance info; free it if we can't.
7996 (pass_call_cdce::execute): Don't free the dominance info here.
7998 2015-11-06 Jeff Law <law@redhat.com>
8000 * tree-ssa-threadedge.c (dummy_simplify): Remove.
8001 (thread_around_empty_blocks): Remove backedge_seen_p argument.
8002 If we thread to a backedge, then return false. Update recursive
8003 call to eliminate backedge_seen_p argument.
8004 (thread_through_normal_block): Remove backedge_seen_p argument.
8005 Remove backedge_seen_p argument from calls to
8006 thread_around_empty_blocks. Remove checks on backedge_seen_p.
8007 If we thread to a backedge, then return 0.
8008 (thread_across_edge): Remove bookkeeping for backedge_seen. Don't
8009 pass it to thread_through_normal_block or thread_through_empty_blocks.
8010 For joiner handling, if we see a backedge, do not try normal
8013 2015-11-06 Abderrazek Zaafrani <a.zaafrani@samsung.com>
8015 * graphite-optimize-isl.c (optimize_isl): Call isl_union_map_is_equal.
8016 * graphite-poly.c (new_scop): Initialize original_schedule.
8017 (free_scop): Free original_schedule.
8018 * graphite-poly.h (struct scop): Add field original_schedule.
8019 * graphite-sese-to-poly.c (build_scop_original_schedule): New.
8020 (build_poly_scop): Call build_scop_original_schedule.
8022 2015-11-06 Abderrazek Zaafrani <a.zaafrani@samsung.com>
8024 * graphite-sese-to-poly.c (build_pbb_scattering_polyhedrons): Remove.
8025 (build_pbb_minimal_scattering_polyhedrons): New.
8026 (build_scop_scattering): Remove.
8027 (build_scop_minimal_scattering): New.
8028 (build_scop_scattering): Call build_pbb_minimal_scattering_polyhedrons.
8029 (build_poly_scop): Call build_scop_minimal_scattering.
8031 2015-11-06 Jeff Law <law@redhat.com>
8033 * cfg-flags.def (IGNORE): New edge flag.
8034 * tree-vrp.c (identify_jump_threads): Mark and clear edges
8035 scheduled for removal with EDGE_IGNORE around call into
8036 jump threader. Do no thread across edges with EDGE_IGNORE,
8037 but do allow threading across those with EDGE_DFS_BACK.
8039 2015-11-06 David Wohlferd <dw@LimeGreenSocks.com>
8041 * doc/md.texi (multi-alternative constraints): Don't document
8042 alternatives inherently tied to reload for the user documentation.
8044 2015-11-06 Michael Collison <michael.collison@linaro.org>
8045 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
8048 2015-08-01 Michael Collison <michael.collison@linaro.org
8049 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
8051 * config/arm/arm.md (*arm_smin_cmp): New pattern.
8052 (*arm_umin_cmp): Likewise.
8054 2015-11-06 Jakub Jelinek <jakub@redhat.com>
8056 * gimplify.c (gimplify_omp_ordered): Fix up diagnostics wording.
8057 * omp-low.c (check_omp_nesting_restrictions): Update for the
8058 various new OpenMP 4.5 nesting restrictions, clarified
8059 nesting glossary, closely nested region relationship clarified
8060 to mean explicit or implicit parallel regions (target/teams),
8061 use %</%> or %qs where appropriate.
8063 2015-11-06 Aditya Kumar <aditya.k7@samsung.com>
8064 Sebastian Pop <s.pop@samsung.com>
8066 * graphite-scop-detection.c (loop_is_valid_scop): Call
8067 optimize_loop_nest_for_speed_p.
8069 2015-11-06 Aditya Kumar <aditya.k7@samsung.com>
8070 Sebastian Pop <s.pop@samsung.com>
8072 * graphite-optimize-isl.c (optimize_isl): Call
8073 isl_options_set_schedule_maximize_band_depth.
8075 2015-11-06 Aditya Kumar <aditya.k7@samsung.com>
8076 Sebastian Pop <s.pop@samsung.com>
8078 * graphite-scop-detection.c (scop_detection::merge_sese): Entry
8079 and exit edges should not be a part of irreducible loop.
8080 (scop_detection::can_represent_loop_1): Loops should not be
8082 (scop_detection::harmful_stmt_in_region): All the basic block
8083 should belong to reducible loops.
8085 2015-11-06 Christophe Lyon <christophe.lyon@linaro.org>
8087 * config/aarch64/aarch64-simd-builtins.def: Update builtins
8088 tables: add tbl3v16qi, qtbl[34]*, tbx4v16qi, qtbx[34]*.
8089 * config/aarch64/aarch64-simd.md (aarch64_tbl3v8qi): Rename to...
8090 (aarch64_tbl3<mode>) ... this, which supports v16qi too.
8091 (aarch64_tbx4v8qi): Rename to...
8092 aarch64_tbx4<mode>): ... this.
8093 (aarch64_qtbl3<mode>): New pattern.
8094 (aarch64_qtbx3<mode>): New pattern.
8095 (aarch64_qtbl4<mode>): New pattern.
8096 (aarch64_qtbx4<mode>): New pattern.
8097 * config/aarch64/arm_neon.h (vqtbl2_s8, vqtbl2_u8, vqtbl2_p8)
8098 (vqtbl2q_s8, vqtbl2q_u8, vqtbl2q_p8, vqtbl3_s8, vqtbl3_u8)
8099 (vqtbl3_p8, vqtbl3q_s8, vqtbl3q_u8, vqtbl3q_p8, vqtbl4_s8)
8100 (vqtbl4_u8, vqtbl4_p8, vqtbl4q_s8, vqtbl4q_u8, vqtbl4q_p8)
8101 (vqtbx2_s8, vqtbx2_u8, vqtbx2_p8, vqtbx2q_s8, vqtbx2q_u8)
8102 (vqtbx2q_p8, vqtbx3_s8, vqtbx3_u8, vqtbx3_p8, vqtbx3q_s8)
8103 (vqtbx3q_u8, vqtbx3q_p8, vqtbx4_s8, vqtbx4_u8, vqtbx4_p8)
8104 (vqtbx4q_s8, vqtbx4q_u8, vqtbx4q_p8): Rewrite using builtin
8107 2015-11-06 Mike Stump <mikestump@comcast.net>
8110 * dwarf2out.c (get_full_len): Return a value based upon the actual
8111 precision needed for the value.
8112 (add_const_value_attribute): Use a maximal wide-int for
8113 CONST_WIDE_INTs, not VOIDmode.
8114 (output_die): Don't ever output NULL with printf.
8116 * rtl.h (get_precision of rtx_mode_t): Ensure we never process
8117 BLKmode nor VOIDmode values.
8119 2015-11-06 David Malcolm <dmalcolm@redhat.com>
8121 * diagnostic-color.c (color_dict): Eliminate "caret"; add "range1"
8123 (parse_gcc_colors): Update comment to describe default GCC_COLORS.
8124 * diagnostic-core.h (warning_at_rich_loc): New declaration.
8125 (error_at_rich_loc): New declaration.
8126 (permerror_at_rich_loc): New declaration.
8127 (inform_at_rich_loc): New declaration.
8128 * diagnostic-show-locus.c (adjust_line): Delete.
8129 (struct point_state): New struct.
8130 (class colorizer): New class.
8131 (class layout_point): New class.
8132 (class layout_range): New class.
8133 (struct line_bounds): New.
8134 (class layout): New class.
8135 (colorizer::colorizer): New ctor.
8136 (colorizer::~colorizer): New dtor.
8137 (layout::layout): New ctor.
8138 (layout::print_source_line): New method.
8139 (layout::print_annotation_line): New method.
8140 (layout::get_state_at_point): New method.
8141 (layout::get_x_bound_for_row): New method.
8142 (diagnostic_show_locus): Reimplement in terms of class layout.
8143 (diagnostic_print_caret_line): Delete.
8144 * diagnostic.c (diagnostic_initialize): Replace
8145 MAX_LOCATIONS_PER_MESSAGE with rich_location::MAX_RANGES.
8146 (diagnostic_set_info_translated): Convert param from location_t
8147 to rich_location *. Eliminate calls to set_location on the
8148 message in favor of storing the rich_location ptr there.
8149 (diagnostic_set_info): Convert param from location_t to
8151 (diagnostic_build_prefix): Break out array into...
8152 (diagnostic_kind_color): New variable.
8153 (diagnostic_get_color_for_kind): New function.
8154 (diagnostic_report_diagnostic): Colorize the option_text
8155 using the color for the severity.
8156 (diagnostic_append_note): Update for change in signature of
8157 diagnostic_set_info.
8158 (diagnostic_append_note_at_rich_loc): New function.
8159 (emit_diagnostic): Update for change in signature of
8160 diagnostic_set_info.
8162 (inform_at_rich_loc): New function.
8163 (inform_n): Update for change in signature of diagnostic_set_info.
8164 (warning): Likewise.
8165 (warning_at): Likewise.
8166 (warning_at_rich_loc): New function.
8167 (warning_n): Update for change in signature of diagnostic_set_info.
8168 (pedwarn): Likewise.
8169 (permerror): Likewise.
8170 (permerror_at_rich_loc): New function.
8171 (error): Update for change in signature of diagnostic_set_info.
8172 (error_n): Likewise.
8173 (error_at): Likewise.
8174 (error_at_rich_loc): New function.
8175 (sorry): Update for change in signature of diagnostic_set_info.
8176 (fatal_error): Likewise.
8177 (internal_error): Likewise.
8178 (internal_error_no_backtrace): Likewise.
8179 (source_range::debug): New function.
8180 * diagnostic.h (struct diagnostic_info): Eliminate field
8181 "override_column". Add field "richloc".
8182 (struct diagnostic_context): Add field "colorize_source_p".
8183 (diagnostic_override_column): Delete.
8184 (diagnostic_set_info): Convert param from location_t to
8186 (diagnostic_set_info_translated): Likewise.
8187 (diagnostic_append_note_at_rich_loc): New function.
8188 (diagnostic_num_locations): New function.
8189 (diagnostic_expand_location): Get the location from the
8191 (diagnostic_print_caret_line): Delete.
8192 (diagnostic_get_color_for_kind): New declaration.
8193 * genmatch.c (linemap_client_expand_location_to_spelling_point): New.
8194 (error_cb): Update for change in signature of "error" callback.
8195 (fatal_at): Likewise.
8196 (warning_at): Likewise.
8197 * input.c (linemap_client_expand_location_to_spelling_point): New.
8198 * pretty-print.c (text_info::set_range): New method.
8199 (text_info::get_location): New method.
8200 * pretty-print.h (MAX_LOCATIONS_PER_MESSAGE): Eliminate this macro.
8201 (struct text_info): Eliminate "locations" array in favor of
8202 "m_richloc", a rich_location *.
8203 (textinfo::set_location): Add a "caret_p" param, and reimplement
8204 in terms of a call to set_range.
8205 (textinfo::get_location): Eliminate inline implementation in favor of
8206 an out-of-line reimplementation.
8207 (textinfo::set_range): New method.
8208 * rtl-error.c (diagnostic_for_asm): Update for change in signature
8209 of diagnostic_set_info.
8210 * tree-diagnostic.c (default_tree_printer): Update for new
8211 "caret_p" param for textinfo::set_location.
8212 * tree-pretty-print.c (percent_K_format): Likewise.
8214 2015-11-06 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
8217 2015-11-05 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
8218 * config/aarch64/aarch64.c
8219 (aarch64_can_use_per_function_literal_pools_p): New.
8220 (aarch64_use_blocks_for_constant_p): Adjust declaration
8221 and use aarch64_can_use_function_literal_pools_p.
8222 (aarch64_select_rtx_section): Update.
8224 2015-11-06 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
8226 * config/arm/arm-ldmstm.ml: Rewrite to generate unified asm templates.
8227 * config/arm/arm.c (arm_asm_trampoline_template): Make unified asm safe.
8228 (arm_output_multireg_pop): Likewise.
8229 (output_move_double): Likewise.
8230 (output_move_quad): Likewise.
8231 (output_return_instruction): Likewise.
8232 (arm_print_operand): Remove support for %( and %. print modifiers.
8233 (arm_output_shift): Make unified asm.
8234 (arm_declare_function_name): Likewise.
8235 * config/arm/arm.h (TARGET_UNIFIED_ASM): Delete.
8236 (ASM_APP_OFF): Adjust.
8237 (ASM_OUTPUT_REG_PUSH): Undo special casing for TARGET_ARM.
8238 (ASM_OUTPUT_REG_POP): Likewise.
8239 * config/arm/arm.md: Adjust uses of %., %(, %)
8240 * config/arm/sync.md: Likewise.
8241 * config/arm/thumb2.md: Likewise.
8242 * config/arm/ldmstm.md: Regenerate.
8243 * config/arm/arm.opt (masm-unified-syntax): Do not special case Thumb.
8244 * doc/invoke.texi (masm-unified-syntax): Update documentation.
8246 2015-11-06 David Malcolm <dmalcolm@redhat.com>
8248 * input.c (dump_line_table_statistics): Dump stats on adhoc table.
8250 2015-11-07 Jan Hubicka <hubicka@ucw.cz>
8252 * tree-core.h (size_type_kind): Remove OEP_CONSTANT_ADDRESS_OF and
8253 add OEP_MATCH_SIDE_EFFECTS.
8254 * fold-const.c (operand_equal_p): Update documentation; handle
8255 OEP_MATCH_SIDE_EFFECTS.
8256 * tree-ssa-tail-merge.c (gimple_operand_equal_value_p): Use
8257 OEP_MATCH_SIDE_EFFECTS.
8259 2015-11-06 Benedikt Huber <benedikt.huber@theobroma-systems.com>
8260 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
8262 * config/aarch64/aarch64-builtins.c: Builtins for rsqrt and rsqrtf.
8263 * config/aarch64/aarch64-protos.h: Declare.
8264 * config/aarch64/aarch64-simd.md: Matching expressions for frsqrte and
8266 * config/aarch64/aarch64-tuning-flags.def: Added recip_sqrt.
8267 * config/aarch64/aarch64.c: New functions. Emit rsqrt estimation
8268 code when applicable.
8269 * config/aarch64/aarch64.md: Added enum entries.
8270 * config/aarch64/aarch64.opt: Added option -mlow-precision-recip-sqrt.
8272 2015-11-07 Jan Hubicka <hubicka@ucw.cz>
8276 * ipa-polymorphic-call.c
8277 (ipa_polymorphic_call_context::restrict_to_inner_type): Fix ordering
8278 issue when offset is out of range.
8279 (contains_type_p): Fix out of range check, clear dynamic flag.
8281 2015-11-06 Arnout Vandecappelle <arnout@mind.be>
8283 * config.gcc (e6500): Fix cpu_is_64bit typo.
8285 2015-11-06 Alan Lawrence <alan.lawrence@arm.com>
8287 * tree-sra.c (completely_scalarize): Properly handle negative array
8288 indices using offset_int.
8290 2015-11-06 Richard Biener <rguenther@suse.de>
8292 * alloc-pool.h (object_allocator::allocate): Default-initialize
8295 2015-11-06 Richard Biener <rguenther@suse.de>
8297 * tree-ssa-sccvn.c (class sccvn_dom_walker): Add destructor.
8298 * lra.c (init_reg_info): Truncate copy_vec instead of
8299 re-allocating a new one and leaking the old.
8300 * ipa-inline-analysis.c (estimate_function_body_sizes): Free
8302 * sched-deps.c (sched_deps_finish): Free the dn/dl pools.
8303 * postreload-gcse.c (free_mem): Free modify_mem_list and
8304 canon_modify_mem_list.
8306 2015-11-06 Ilya Enkovich <enkovich.gnu@gmail.com>
8308 PR tree-optimization/68145
8309 * tree-vect-stmts.c (vectorizable_operation): Fix
8310 determination for booleans.
8312 2015-11-06 Tom de Vries <tom@codesourcery.com>
8314 * tree-cfg.c (gimple_split_block_before_cond_jump): Split before
8315 cond_jump, instead of split after last nondebug insn before cond_jump.
8316 * tree-parloops.c (transform_to_exit_first_loop_alt): Verify ssa before
8319 2015-11-06 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
8322 * config/arm/aarch-common.c (aarch_accumulator_forwarding): Strip
8323 subregs from accumulator and make sure it's a register.
8325 2015-11-06 Simon Dardis <simon.dardis@imgtec.com>
8327 * config/mips/loongson.md (vec_loongson_extract_lo_<mode>): New, extract
8329 (reduc_uplus_<mode>): Remove.
8330 (reduc_plus_scal_<mode>): Rename from reduc_splus_<mode>, Use vec
8331 loongson_extract_lo_<mode>.
8332 (reduc_smax_scal_<mode>, reduc_smin_scal_<mode>): Rename from
8333 reduc_smax_<mode>, reduc_smax_<mode>, use vec
8334 loongson_extract_lo_<mode>.
8335 (reduc_umax_scal_<mode>, reduc_umin_scal_<mode>): Rename.
8337 2015-11-06 Richard Biener <rguenther@suse.de>
8339 * tree-vectorizer.h (struct _bb_vec_info): Add region_begin/end
8341 (vect_stmt_in_region_p): Declare.
8342 * tree-vect-slp.c (new_bb_vec_info): Work on a region.
8343 (destroy_bb_vec_info): Likewise.
8344 (vect_bb_slp_scalar_cost): Use vect_stmt_in_region_p.
8345 (vect_get_and_check_slp_defs): Likewise.
8346 (vect_slp_analyze_bb_1): Refactor to make it work on sub-BBs.
8347 (vect_slp_bb): Likewise.
8348 * tree-vect-patterns.c (vect_same_loop_or_bb_p): Implement
8349 in terms of vect_stmt_in_region_p.
8350 (vect_pattern_recog): Iterate over the BB region.
8351 * tree-vect-stmts.c (vect_is_simple_use): Use vect_stmt_in_region_p.
8352 * tree-vectorizer.c (vect_stmt_in_region_p): New function.
8353 (pass_slp_vectorize::execute): Initialize all stmt UIDs to -1.
8354 * config/i386/i386.c: Include gimple-iterator.h.
8355 * config/aarch64/aarch64.c: Likewise.
8357 2015-11-06 Alexandre Oliva <aoliva@redhat.com>
8359 PR rtl-optimization/67753
8360 PR rtl-optimization/64164
8361 * function.c (assign_parm_setup_block): Avoid allocating a
8362 stack slot if we don't have an ABI-reserved one. Emit the
8363 copy to target_reg in the conversion seq if the copy from
8364 entry_parm is in it too. Don't use the conversion seq to copy
8365 a PARALLEL to a REG or a CONCAT.
8367 2015-11-06 Richard Biener <rguenther@suse.de>
8369 * tree-hash-traits.h (tree_operand_hash): Provide equal, not
8372 2015-11-05 Cesar Philippidis <cesar@codesourcery.com>
8373 Thomas Schwinge <thomas@codesourcery.com>
8374 James Norris <jnorris@codesourcery.com>
8377 * gimplify.c (gimplify_scan_omp_clauses): Add support for
8378 OMP_CLAUSE_TILE. Update handling of OMP_CLAUSE_INDEPENDENT.
8379 (gimplify_adjust_omp_clauses): Likewise.
8380 * omp-low.c (scan_sharing_clauses): Add support for OMP_CLAUSE_TILE.
8381 * tree-core.h (enum omp_clause_code): Add OMP_CLAUSE_TILE.
8382 * tree-pretty-print.c (dump_omp_clause): Handle OMP_CLAUSE_TILE.
8383 * tree.c (omp_clause_num_ops): Add an entry for OMP_CLAUSE_TILE.
8384 (omp_clause_code_name): Likewise.
8385 (walk_tree_1): Handle OMP_CLAUSE_TILE.
8386 * tree.h (OMP_TILE_LIST): New macro.
8388 2015-11-05 Martin Sebor <msebor@redhat.com>
8391 * doc/invoke.texi (-Wplacement-new): Document new option.
8393 2015-11-05 Alan Lawrence <alan.lawrence@arm.com>
8395 PR tree-optimization/65963
8396 * tree-scalar-evolution.c (interpret_rhs_expr): Try to handle
8397 LSHIFT_EXPRs as equivalent unsigned MULT_EXPRs.
8399 2015-11-05 James Greenhalgh <james.greenhalgh@arm.com>
8401 * ifcvt.c (bb_ok_for_noce_convert_multiple_sets): New.
8402 (noce_convert_multiple_sets): Likewise.
8403 (noce_process_if_block): Call them.
8405 2015-11-05 Nathan Sidwell <nathan@codesourcery.com>
8407 * gimple-fold.c: Include omp-low.h.
8408 (fold_internal_goacc_dim): New.
8409 (gimple_fold_call): Call it.
8411 2015-11-05 Jakub Jelinek <jakub@redhat.com>
8412 Ilya Verbin <ilya.verbin@intel.com>
8415 (BT_FN_VOID_INT_OMPFN_SIZE_PTR_PTR_PTR_UINT_PTR): Remove.
8416 (BT_FN_VOID_INT_OMPFN_SIZE_PTR_PTR_PTR_UINT_PTR_INT_INT): New.
8417 * cgraph.h (enum cgraph_simd_clone_arg_type): Add
8418 SIMD_CLONE_ARG_TYPE_LINEAR_REF_VARIABLE_STEP,
8419 SIMD_CLONE_ARG_TYPE_LINEAR_UVAL_VARIABLE_STEP and
8420 SIMD_CLONE_ARG_TYPE_LINEAR_VAL_VARIABLE_STEP.
8421 (struct cgraph_simd_clone_arg): Adjust comment.
8422 * omp-builtins.def (BUILT_IN_GOMP_TARGET): Rename GOMP_target_41
8423 to GOMP_target_ext. Add num_teams and thread_limit arguments.
8424 (BUILT_IN_GOMP_TARGET_DATA): Rename GOMP_target_data_41
8425 to GOMP_target_data_ext.
8426 (BUILT_IN_GOMP_TARGET_UPDATE): Rename GOMP_target_update_41
8427 to GOMP_target_update_ext.
8428 (BUILT_IN_GOMP_LOOP_NONMONOTONIC_DYNAMIC_START,
8429 BUILT_IN_GOMP_LOOP_NONMONOTONIC_GUIDED_START,
8430 BUILT_IN_GOMP_LOOP_NONMONOTONIC_DYNAMIC_NEXT,
8431 BUILT_IN_GOMP_LOOP_NONMONOTONIC_GUIDED_NEXT,
8432 BUILT_IN_GOMP_LOOP_ULL_NONMONOTONIC_DYNAMIC_START,
8433 BUILT_IN_GOMP_LOOP_ULL_NONMONOTONIC_GUIDED_START,
8434 BUILT_IN_GOMP_LOOP_ULL_NONMONOTONIC_DYNAMIC_NEXT,
8435 BUILT_IN_GOMP_LOOP_ULL_NONMONOTONIC_GUIDED_NEXT,
8436 BUILT_IN_GOMP_PARALLEL_LOOP_NONMONOTONIC_DYNAMIC,
8437 BUILT_IN_GOMP_PARALLEL_LOOP_NONMONOTONIC_GUIDED): New built-ins.
8438 * tree-core.h (enum omp_clause_schedule_kind): Add
8439 OMP_CLAUSE_SCHEDULE_MASK, OMP_CLAUSE_SCHEDULE_MONOTONIC,
8440 OMP_CLAUSE_SCHEDULE_NONMONOTONIC and change
8441 OMP_CLAUSE_SCHEDULE_LAST value.
8442 * tree.def (OMP_SIMD, CILK_SIMD, CILK_FOR, OMP_DISTRIBUTE,
8443 OMP_TASKLOOP, OACC_LOOP): Add OMP_FOR_ORIG_DECLS argument.
8444 * tree.h (OMP_FOR_ORIG_DECLS): Use OMP_LOOP_CHECK instead of
8445 OMP_FOR_CHECK. Remove comment.
8446 * tree-pretty-print.c (dump_omp_clause): Handle
8447 GOMP_MAP_FIRSTPRIVATE_REFERENCE and GOMP_MAP_ALWAYS_POINTER.
8448 Simplify. Print schedule clause modifiers.
8449 * tree-vect-stmts.c (vectorizable_simd_clone_call): Add
8450 SIMD_CLONE_ARG_TYPE_LINEAR_{REF,VAL,UVAL}_VARIABLE_STEP
8452 * gimplify.c (enum gimplify_omp_var_data): Add GOVD_MAP_ALWAYS_TO.
8453 (omp_default_clause): Tweak for
8454 private/firstprivate/is_device_ptr variables on target
8455 construct and use_device_ptr on target data.
8456 (omp_check_private): Likewise.
8457 (omp_notice_variable): For references check whether what it refers
8458 to has mappable type, rather than the reference itself.
8459 (omp_is_private): Diagnose linear iteration variables on non-simd
8461 (omp_no_lastprivate): Return true only for Fortran.
8462 (gimplify_scan_omp_clauses): Or in GOVD_MAP_ALWAYS_TO for
8463 GOMP_MAP_ALWAYS_TO or GOMP_MAP_ALWAYS_TOFROM kinds.
8464 Add support for GOMP_MAP_FIRSTPRIVATE_REFERENCE and
8465 GOMP_MAP_ALWAYS_POINTER, remove old handling of structure element
8466 based array sections. Use GOMP_MAP_ALWAYS_P. Fix up handling of
8467 lastprivate and linear when combined with distribute. Gimplify
8468 variable low-bound for array reduction. Look through
8469 POINTER_PLUS_EXPR when looking for ADDR_EXPR for array section
8471 (gimplify_adjust_omp_clauses_1): For implicit references to
8472 variables with reference type and when not ref to scalar or
8473 ref to pointer, map what they refer to using tofrom and
8474 use GOMP_MAP_FIRSTPRIVATE_REFERENCE for the reference.
8475 (gimplify_adjust_omp_clauses): Remove GOMP_MAP_ALWAYS_POINTER
8476 from target exit data. Handle GOMP_MAP_FIRSTPRIVATE_REFERENCE.
8477 Drop OMP_CLAUSE_MAP_PRIVATE support. Use GOMP_MAP_ALWAYS_P.
8478 Diagnose the same var on both firstprivate and lastprivate on
8479 distribute construct.
8480 (gimplify_omp_for): Fix up handling of predetermined
8481 lastprivate or linear iter vars when combined with distribute.
8482 (find_omp_teams, computable_teams_clause, optimize_target_teams): New
8484 (gimplify_omp_workshare): Call optimize_target_teams.
8485 * omp-low.c (struct omp_region): Add sched_modifiers field.
8486 (struct omp_for_data): Likewise.
8487 (omp_any_child_fn_dumped): New variable.
8488 (extract_omp_for_data): Fill in sched_modifiers, and mask out
8489 OMP_CLAUSE_SCHEDULE_KIND bits outside of OMP_CLAUSE_SCHEDULE_MASK
8491 (determine_parallel_type): Use only OMP_CLAUSE_SCHEDULE_MASK
8492 bits of OMP_CLAUSE_SCHED_KIND.
8493 (scan_sharing_clauses): Handle GOMP_MAP_FIRSTPRIVATE_REFERENCE,
8494 drop OMP_CLAUSE_MAP_PRIVATE support. Look through POINTER_PLUS_EXPR
8495 for array section reductions.
8496 (add_taskreg_looptemp_clauses): Add one extra _looptemp_ clause even
8497 for distribute parallel for, if there are lastprivate clauses on the
8499 (lower_rec_input_clauses): Handle non-zero low-bound on array
8501 (lower_reduction_clauses): Likewise.
8502 (lower_send_clauses): Look through POINTER_PLUS_EXPR
8503 for array section reductions.
8504 (expand_parallel_call): Use nonmonotonic entrypoints for
8505 nonmonotonic: dynamic/guided.
8506 (expand_omp_taskreg): Call assign_assembler_name_if_neeeded on
8507 child_fn if current_function_decl has assembler name set, but child_fn
8508 does not. Dump the header and IL of the child function when not in SSA
8510 (expand_omp_target): Likewise. Pass num_teams and thread_limit
8511 arguments to BUILT_IN_GOMP_TARGET.
8512 (expand_omp_for_static_nochunk, expand_omp_for_static_chunk):
8513 Initialize the extra _looptemp_ clause to fd->loop.n2.
8514 (expand_omp_for): Use nonmonotonic entrypoints for
8515 nonmonotonic: dynamic/guided. Initialize region->sched_modifiers.
8516 (expand_omp): Clear omp_any_child_fn_dumped. Dump function header
8517 again if we have dumped any child functions.
8518 (lower_omp_for_lastprivate): Determine the right count variable
8519 for distribute simd, or distribute parallel for{, simd}.
8520 (lower_omp_target): Handle GOMP_MAP_FIRSTPRIVATE_REFERENCE
8521 and GOMP_MAP_ALWAYS_POINTER. Drop OMP_CLAUSE_MAP_PRIVATE
8523 (simd_clone_clauses_extract): Handle variable step
8524 for references and arguments passed by reference.
8525 (simd_clone_mangle): Mangle ref/uval/val variable steps.
8526 (simd_clone_adjust_argument_types): Handle
8527 SIMD_CLONE_ARG_TYPE_LINEAR_UVAL_VARIABLE_STEP like
8528 SIMD_CLONE_ARG_TYPE_LINEAR_UVAL_CONSTANT_STEP and
8529 SIMD_CLONE_ARG_TYPE_LINEAR_VAL_VARIABLE_STEP like
8530 SIMD_CLONE_ARG_TYPE_LINEAR_VAL_CONSTANT_STEP.
8531 (simd_clone_linear_addend): New function.
8532 (simd_clone_adjust): Handle variable step like similarly
8533 to constant step, use simd_clone_linear_addend to determine
8534 the actual step at runtime.
8536 2015-11-05 Nathan Sidwell <nathan@codesourcery.com>
8538 * target.def (goacc.dim_limit): New hook.
8539 * targhooks.h (default_goacc_dim_limit): Declare.
8540 * doc/tm.texi.in (TARGET_GOACC_DIM_LIMIT): Add.
8541 * doc/tm.texi: Rebuilt.
8542 * omp-low.h (get_oacc_fn_dim_size, get_oacc_ifn_dim_arg): Declare.
8543 * omp-low.c (get_oacc_fn_dim_size, get_oacc_ifn_dim_arg): New.
8544 (default_goacc_dim_limit): New.
8545 * config/nvptx/nvptx.c (PTX_VECTOR_LENGTH, PTX_WORKER_LENGTH): New.
8546 (nvptx_goacc_dim_limit) New.
8547 (TARGET_GOACC_DIM_LIMIT): Override.
8548 * tree-vrp.c: Include omp-low.h, target.h.
8549 (extract_range_basic): Add handling for IFN_GOACC_DIM_SIZE &
8552 2015-11-05 Ilya Enkovich <enkovich.gnu@gmail.com>
8554 * tree-vect-generic.c (do_compare): Use -1 for true
8555 result instead of 1.
8557 2015-11-05 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
8559 * config/aarch64/aarch64.c
8560 (aarch64_can_use_per_function_literal_pools_p): New.
8561 (aarch64_use_blocks_for_constant_p): Adjust declaration
8562 and use aarch64_can_use_function_literal_pools_p.
8563 (aarch64_select_rtx_section): Update.
8565 2015-11-05 Ilya Enkovich <enkovich.gnu@gmail.com>
8567 * targhooks.c (default_get_mask_mode): Use BLKmode in
8568 case target doesn't support required vector mode.
8569 * stor-layout.c (layout_type); Check for BLKmode.
8571 2015-11-04 Aditya Kumar <aditya.k7@samsung.com>
8572 Sebastian Pop <s.pop@samsung.com>
8574 * graphite-isl-ast-to-gimple.c (gcc_expression_from_isl_ast_expr_id):
8575 Remove use of parameter_rename_map.
8577 (copy_internal_parameters): Remove.
8578 (graphite_regenerate_ast_isl): Remove call to copy_internal_parameters.
8579 * sese.c (new_sese_info): Do not initialize parameter_rename_map.
8580 (free_sese_info): Do not free parameter_rename_map.
8581 (set_rename): Do not use parameter_rename_map.
8582 (rename_uses): Update call to set_rename.
8583 (graphite_copy_stmts_from_block): Do not use parameter_rename_map.
8584 * sese.h (parameter_rename_map_t): Remove.
8585 (struct sese_info_t): Remove field parameter_rename_map.
8587 2015-11-04 Aditya Kumar <aditya.k7@samsung.com>
8588 Sebastian Pop <s.pop@samsung.com>
8590 * graphite-isl-ast-to-gimple.c: Include tree-cfg.h.
8591 (translate_isl_ast_node_user): Add more dumps: call print_loops_bb.
8592 * graphite-scop-detection.c (dot_all_scops_1): Moved out of
8593 anonymous namespace.
8594 * graphite-sese-to-poly.c (ssa_name_version_typesize): Remove.
8595 (isl_id_for_pbb): Use a buffer of size 10.
8596 (isl_id_for_ssa_name): Same.
8597 * sese.c (set_rename): Add more dumps.
8599 2015-11-04 Nathan Sidwell <nathan@codesourcery.com>
8601 * omp-low.c (struct omp_context): Remove reduction_map field.
8602 (lookup_oacc_reduction, maybe_lookup_oacc_reduction): Delete.
8603 (new_omp_context, delete_omp_context, scan_omp_target): Remove
8604 reduction_map handling.
8605 (lower_omp_target): Remove obsolete openacc reduction handling.
8607 2015-11-04 Nathan Sidwell <nathan@codesourcery.com>
8609 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims): Add checking.
8611 2015-11-04 Nathan Sidwell <nathan@codesourcery.com>
8612 Cesar Philippidis <cesar@codesourcery.com>
8614 * config/nvptx/nvptx.c: Include gimple headers.
8615 (worker_red_size, worker_red_align, worker_red_name,
8616 worker_red_sym): New.
8617 (nvptx_option_override): Initialize worker reduction buffer.
8618 (nvptx_file_end): Write out worker reduction buffer var.
8619 (nvptx_expand_shuffle, nvptx_expand_worker_addr,
8620 nvptx_expand_cmp_swap): New builtin expanders.
8621 (enum nvptx_builtins): New.
8622 (nvptx_builtin_decls): New.
8623 (nvptx_builtin_decl, nvptx_init_builtins, nvptx_expand_builtin): New
8624 (PTX_VECTOR_LENGTH, PTX_WORKER_LENGTH): New.
8625 (nvptx_get_worker_red_addr, nvptx_generate_vector_shuffle,
8626 nvptx_lockless_update): New helpers.
8627 (nvptx_goacc_reduction_setup, nvptx_goacc_reduction_init,
8628 nvptx_goacc_reduction_fini, nvptx_goacc_reduction_teaddown): New.
8629 (nvptx_goacc_reduction): New.
8630 (TARGET_INIT_BUILTINS, TARGET_EXPAND_BUILTIN,
8631 TARGET_BUILTIN_DECL): Override.
8632 (TARGET_GOACC_REDUCTION): Override.
8634 2015-11-04 Nathan Sidwell <nathan@codesourcery.com>
8635 Cesar Philippidis <cesar@codesourcery.com>
8637 * internal-fn.def (GOACC_REDUCTION): New.
8638 * internal-fn.h (enum ifn_goacc_reduction_kind): New.
8639 * internal-fn.c (expand_GOACC_REDUCTION): New.
8640 * target.def (goacc.reduction): New OpenACC hook.
8641 * targhooks.h (default_goacc_reduction): Declare.
8642 * doc/tm.texi.in: Add TARGET_GOACC_REDUCTION.
8643 * doc/tm.texi: Rebuilt.
8644 * omp-low.c (oacc_get_reduction_array_id, oacc_max_threads,
8645 scan_sharing_clauses): Remove oacc reduction handling here.
8646 (lower_rec_input_clauses): Don't handle OpenACC reductions here.
8647 (oacc_lower_reduction_var_helper): Delete.
8648 (lower_oacc_reductions): New.
8649 (lower_reduction_clauses): Don't handle OpenACC reductions here.
8650 (lower_oacc_head_tail): Call lower_oacc_reductions.
8651 (oacc_gimple_assign, oacc_init_reduction_array,
8652 oacc_initialize_reduction_data, oacc_finalize_reduction_data,
8653 oacc_process_reduction_data): Delete.
8654 (lower_omp_target): Remove old OpenACC reduction handling. Insert
8655 dummy OpenACC gang reduction for reductions at outer level.
8656 (oacc_loop_xform_head_tail): Transform IFN_GOACC_REDUCTION.
8657 (default_goacc_reduction): New.
8658 (execute_oacc_device_lower): Handle IFN_GOACC_REDUCTION.
8660 2015-11-04 Martin Liska <mliska@suse.cz>
8662 * cgraphunit.c (cgraph_node::expand_thunk): Call
8663 allocate_struct_function before init_function_start.
8664 (cgraph_node::expand): Use push_cfun and pop_cfun.
8665 * config/i386/i386.c (ix86_code_end): Call
8666 allocate_struct_function before init_function_start.
8667 * config/rs6000/rs6000.c (rs6000_code_end): Likewise.
8668 * function.c (init_function_start): Move preamble to all
8670 * passes.c (do_per_function_toporder): Use push_cfun and pop_cfun.
8671 (execute_one_pass): Handle newly added TODO_discard_function.
8672 (execute_pass_list_1): Terminate if cfun equals to NULL.
8673 (execute_pass_list): Do not push and pop cfun, expect that
8675 * tree-pass.h (TODO_discard_function): Define.
8677 2015-11-04 Mikhail Maltsev <maltsevm@gmail.com>
8679 * cfganal.c (inverted_post_order_compute): Remove conditional
8680 compilation, use flag_checking.
8681 * config.in: Regenerate.
8682 * configure: Regenerate.
8683 * configure.ac: Remove ENABLE_CHECKING.
8684 * genconditions.c: Do not #undef ENABLE_CHECKING.
8685 * sese.h (bb_in_region): Comment out broken check.
8686 * tree-ssa-loop-manip.c (rewrite_into_loop_closed_ssa_1): Remove
8687 conditional compilation, use flag_checking.
8689 2015-11-04 Tom de Vries <tom@codesourcery.com>
8691 PR tree-optimization/67742
8692 * tree-ssa-structalias.c (struct fieldoff): Add restrict_pointed_type
8694 (push_fields_onto_fieldstack): Handle restrict_pointed_type field.
8695 (create_variable_info_for_1): Add and handle handle_param parameter.
8696 Add restrict handling.
8697 (create_variable_info_for): Call create_variable_info_for_1 with extra
8699 (make_param_constraints): Drop restrict_name parameter. Ignore
8700 vi->only_restrict_pointers.
8701 (intra_create_variable_infos): Call create_variable_info_for_1 with
8702 extra arg. Remove restrict handling. Call make_param_constraints with
8705 2015-11-04 Tom de Vries <tom@codesourcery.com>
8707 * tree-ssa-structalias.c (create_variable_info_for_1): Use decl_type
8710 2015-11-03 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
8712 * config/arm/coff.h: Remove.
8714 2015-11-03 Eric Botcazou <ebotcazou@adacore.com>
8716 * gimple-expr.c (useless_type_conversion_p): Reinstate type canonical
8717 check for aggregate types and beef up comment for mode check.
8719 2015-11-03 Richard Biener <rguenther@suse.de>
8721 * tree-vect-data-refs.c (vect_analyze_data_refs): Do not collect
8722 data references here.
8723 * tree-vect-loop.c: Include cgraph.h.
8724 (vect_analyze_loop_2): Collect data references here.
8725 * tree-vect-slp.c (find_bb_location): Inline ...
8726 (vect_slp_bb): ... here. Renamed from vect_slp_analyze_bb.
8727 Factor in vect_slp_transform_bb.
8728 (vect_slp_transform_bb): Removed.
8729 (vect_slp_analyze_bb_1): Collect data references here.
8730 * tree-vectorizer.c (pass_slp_vectorize::execute): Call
8732 * tree-vectorizer.h (vect_slp_bb): Declare.
8733 (vect_slp_analyze_bb): Remove.
8734 (vect_slp_transform_bb): Remove.
8735 (find_bb_location): Remove.
8736 (vect_analyze_data_refs): Remove stmt count reference parameter.
8738 2015-11-03 Evgeny Stupachenko <evstupac@gmail.com>
8740 * multiple_target.c (create_dispatcher_calls): Add target check
8742 (create_target_clone): Change assembler name for versioned declarations.
8744 2015-11-03 Thomas Schwinge <thomas@codesourcery.com>
8745 Chung-Lin Tang <cltang@codesourcery.com>
8747 * builtins.def (DEF_GOMP_BUILTIN): Enable for flag_openacc.
8748 * omp-low.c (check_omp_nesting_restrictions): Allow
8749 GIMPLE_OMP_ATOMIC_LOAD, GIMPLE_OMP_ATOMIC_STORE inside OpenACC
8752 2015-11-03 Bilyan Borisov <bilyan.borisov@arm.com>
8754 * config/aarch64/aarch64-simd-builtins.def (fmulx): New.
8755 * config/aarch64/aarch64-simd.md (aarch64_fmulx<mode>): New.
8756 * config/aarch64/arm_neon.h (vmulx_f32): Rewrite to call fmulx
8758 (vmulxq_f32): Likewise.
8760 (vmulxq_f64): Rewrite to call fmulx builtin.
8761 (vmulxs_f32): Likewise.
8762 (vmulxd_f64): Likewise.
8763 (vmulx_lane_f32): Remove.
8764 * config/aarch64/iterators.md (UNSPEC): Add fmulx.
8766 2015-11-03 Alan Lawrence <alan.lawrence@arm.com>
8768 * config/aarch64/aarch64.md (*movhf_aarch64): Use
8769 aarch64_reg_or_fp_zero for second operand.
8771 2015-11-03 Alexandre Oliva <aoliva@redhat.com>
8773 * gimple-expr.c: Include hash-set.h and rtl.h.
8774 (mark_addressable_queue): New var.
8775 (mark_addressable): Factor actual marking into...
8776 (mark_addressable_1): ... this. Queue it up during expand.
8777 (mark_addressable_2): New.
8778 (flush_mark_addressable_queue): New.
8779 * gimple-expr.h (flush_mark_addressable_queue): Declare.
8780 * cfgexpand.c: Include gimple-expr.h.
8781 (pass_expand::execute): Flush mark_addressable queue.
8783 2015-11-02 Alexandre Oliva <aoliva@redhat.com>
8785 * tree-ssa-ifcombine.c (tree_ssa_ifcombine_bb_1): Factor out
8786 bb_no_side_effects_p tests...
8787 (tree_ssa_ifcombine_bb): ... here.
8789 PR tree-optimization/68083
8790 * tree-ssa-ifcombine.c: Include tree-ssa.h.
8791 (bb_no_side_effects_p): Test for undefined uses too.
8792 * tree-ssa.c (gimple_uses_undefined_value_p): New.
8793 * tree-ssa.h (gimple_uses_undefined_value_p): Declare.
8795 2015-11-02 Jeff Law <law@redhat.com>
8797 * tree-ssa-threadupdate.c (valid_jump_thread_path): Also detect
8798 cases where the loop latch edge is in the middle of an FSM path.
8800 2015-11-03 Tom de Vries <tom@codesourcery.com>
8802 * tree-ssa-structalias.c (make_restrict_var_constraints): Rename to ...
8803 (make_param_constraints): ... this. Add and handle restrict_name
8804 parameter. Handle is_full_var case.
8805 (intra_create_variable_infos): Use make_param_constraints.
8807 2015-11-03 Tom de Vries <tom@codesourcery.com>
8809 * tree-ssa-structalias.c (make_restrict_var_constraints): Replace
8810 make_copy_constraint call with make_constraint_from call.
8812 2015-11-02 Andreas Tobler <andreast@gcc.gnu.org>
8814 * config/rs6000/freebsd64.h (ASM_SPEC32): Adust spec to handle
8817 2015-11-02 Richard Sandiford <richard.sandiford@arm.com>
8819 * builtins.h (fold_fma): Move to fold-const-call.h.
8820 * builtins.c: Include fold-const-call.h.
8821 (mathfn_built_in_2): New function, split out from...
8822 (mathfn_built_in_1): ...here.
8823 (do_real_to_int_conversion, fold_const_builtin_pow)
8824 (fold_const_builtin_logb, fold_const_builtin_significand)
8825 (fold_const_builtin_load_exponent, do_mpfr_arg1, do_mpfr_arg2)
8826 (do_mpfr_arg3, do_mpfr_sincos, do_mpfr_bessel_n, do_mpc_arg1): Delete.
8827 (fold_builtin_sincos): Use fold_const_call to handle constants.
8828 (fold_builtin_1, fold_builtin_2, fold_builtin_3): Add explicit
8829 checks for ERROR_MARK. Use fold_const_call to handle constant
8830 folds for math functions.
8831 (fold_fma): Move to fold-const-call.c.
8832 * fold-const.c: Include fold-const-call.h.
8833 * Makefile.in (OBJS): Add fold-const-call.o.
8834 (PLUGIN_HEADERS): Add fold-const-call.h.
8835 * realmpfr.h (real_from_mpfr): Allow the format to be specified
8837 * realmpfr.c (real_from_mpfr): Likewise.
8838 * fold-const-call.h, fold-const-call.c: New files.
8840 2015-11-02 Julian Brown <julian@codesourcery.com>
8842 * config/arm/neon-testgen.ml (emit_epilogue): Remove extraneous
8843 brackets and semicolon.
8845 2015-11-02 Alan Lawrence <alan.lawrence@arm.com>
8848 2015-10-27 Alan Lawrence <alan.lawrence@arm.com>
8850 PR tree-optimization/65963
8851 * tree-scalar-evolution.c (interpret_rhs_expr): Handle some
8852 LSHIFT_EXPRs as equivalent MULT_EXPRs.
8854 2015-11-02 Thomas Schwinge <thomas@codesourcery.com>
8857 * fold-const.c: Include "md5.h".
8859 2015-11-01 Jeff Law <law@redhat.com>
8861 * vmsdbgout.c: Revert unused header file reduction patch.
8863 * config/mcore/mcore.c: Include regs.h.
8865 2015-10-31 Segher Boessenkool <segher@kernel.crashing.org>
8867 * config/rs6000/rs6000.c (rs6000_reg_live_or_pic_offset_p): Rewrite.
8869 2015-10-31 Segher Boessenkool <segher@kernel.crashing.org>
8871 * config/rs6000/rs6000.c (rs6000_reg_live_or_pic_offset_p): Use the
8872 same condition for testing whether RS6000_PIC_OFFSET_TABLE_REGNUM is
8873 live as for using it elsewhere, for TARGET_MINIMAL_TOC.
8875 2015-10-31 Markus Trippelsdorf <markus@trippelsdorf.de>
8877 * ggc-common.c: Restore needed header for checking=release.
8879 2015-10-31 Tom de Vries <tom@codesourcery.com>
8881 * fold-const.c (fold_unary_loc): Tune POINTER_PLUS_EXPR folding.
8883 2015-10-31 Tom de Vries <tom@codesourcery.com>
8885 * tree-ssa-structalias.c (intra_create_variable_infos): Don't expect
8886 existing varinfo for arguments.
8888 2015-10-31 Tom de Vries <tom@codesourcery.com>
8890 * tree-ssa-structalias.c (ipa_pta_execute): Add extra arg to call to
8891 create_function_info_for. Dump constraints generated during
8892 create_function_info_for. Move intra_create_variable_infos call and
8893 function-return-values-escape bit to ...
8894 (create_function_info_for): ... here, and merge
8895 intra_create_variable_infos call with argument loop. Add and handle
8896 nonlocal_p parameter.
8898 2015-10-31 Tom de Vries <tom@codesourcery.com>
8900 * tree-ssa-structalias.c (create_function_info_for): Make sure prev_vi
8901 updating is alap, and seperated from preceding code. Make sure
8902 insert_vi_for_tree is seperated from surrounding code.
8904 2015-10-31 Tom de Vries <tom@codesourcery.com>
8906 * tree-ssa-structalias.c (ipa_pta_execute): Use make_copy_constraint.
8908 2015-10-30 Jeff Law <law@redhat.com>
8909 Nathan Sidwell <nathan@acm.org>
8911 * config/nvptx/nvptx.h (HARD_REGNO_NREGS): Avoid warning on unused
8913 (MOVE_MAX): Set to 8.
8915 2015-10-30 Cesar Philippidis <cesar@codesourcery.com>
8917 * cgraph.c: Include context.h for offloading.
8918 * varpool.c: Include context.h and omp-low.h.
8920 2015-10-30 Anatoly Sokolov <aesok@post.ru>
8922 * rtl.h (contains_symbol_ref_p): Declare.
8923 (SYMBOL_REF_P): Define.
8924 * rtlanal.c (contains_symbol_ref_p: New function.
8925 * lra-constraints.c (contains_symbol_ref_p): Remove.
8926 * var-tracking.c (contains_symbol_ref): Remove.
8927 (track_expr_p): Use contains_symbol_ref_p instead of
8928 contains_symbol_ref.
8930 2015-10-30 Alan Lawrence <alan.lawrence@arm.com>
8932 * gimple-fold.c (fold_array_ctor_reference): Move searching code to:
8933 * fold-const.c (get_array_ctor_element_at_index): New.
8934 (fold): Remove binary-search through CONSTRUCTOR, call previous.
8936 * fold-const.h (get_array_ctor_element_at_index): New.
8938 2015-10-30 Evgeny Stupachenko <evstupac@gmail.com>
8940 * Makefile.in (OBJS): Add multiple_target.o.
8941 * attrib.c (make_attribute): Moved from config/i386/i386.c
8942 * config/i386/i386.c (make_attribute): Deleted.
8943 * multiple_target.c (create_dispatcher_calls): New.
8944 (get_attr_len): Ditto.
8945 (get_attr_str): Ditto.
8946 (separate_attrs): Ditto.
8947 (is_valid_asm_symbol): Ditto.
8948 (create_new_asm_name): Ditto.
8949 (create_target_clone): Ditto.
8950 (expand_target_clones): Ditto.
8951 (ipa_target_clone): Ditto.
8952 (ipa_dispatcher_calls): Ditto.
8953 * passes.def (pass_target_clone): Two new ipa passes.
8954 * tree-pass.h (make_pass_target_clone): Ditto.
8955 * doc/extend.texi (target_clones): New attribute description.
8957 2015-10-30 Vladimir Makarov <vmakarov@redhat.com>
8959 PR rtl-optimization/68106
8960 * lra-remat.c (input_regno_present_p): Process hard regs
8961 explicitly present in machine description insns.
8962 (call_used_input_regno_present_p): Ditto.
8963 (calculate_gen_cands): Ditto.
8966 2015-10-30 Jim Wilson <jim.wilson@linaro.org>
8968 * config/arm/neon-testgen.ml: Fix comment typo.
8970 2015-10-30 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
8972 * rtlanal.c (reg_set_p): Expand function comment.
8974 2015-10-30 Andrew MacLeod <amacleod@redhat.com>
8976 * alias.c: Remove unused headers.
8978 * attribs.c: Likewise.
8979 * auto-inc-dec.c: Likewise.
8980 * auto-profile.c: Likewise.
8981 * bb-reorder.c: Likewise.
8982 * bitmap.c: Likewise.
8983 * bt-load.c: Likewise.
8984 * builtins.c: Likewise.
8985 * caller-save.c: Likewise.
8986 * calls.c: Likewise.
8989 * cfganal.c: Likewise.
8990 * cfgbuild.c: Likewise.
8991 * cfgcleanup.c: Likewise.
8992 * cfgexpand.c: Likewise.
8993 * cfghooks.c: Likewise.
8994 * cfgloop.c: Likewise.
8995 * cfgloopanal.c: Likewise.
8996 * cfgloopmanip.c: Likewise.
8997 * cfgrtl.c: Likewise.
8998 * cgraph.c: Likewise.
8999 * cgraphbuild.c: Likewise.
9000 * cgraphclones.c: Likewise.
9001 * cgraphunit.c: Likewise.
9002 * cilk-common.c: Likewise.
9003 * combine-stack-adj.c: Likewise.
9004 * combine.c: Likewise.
9005 * compare-elim.c: Likewise.
9006 * convert.c: Likewise.
9007 * coverage.c: Likewise.
9008 * cppbuiltin.c: Likewise.
9009 * cprop.c: Likewise.
9011 * cselib.c: Likewise.
9012 * data-streamer-in.c: Likewise.
9013 * data-streamer-out.c: Likewise.
9014 * data-streamer.c: Likewise.
9015 * dbxout.c: Likewise.
9018 * debug.c: Likewise.
9019 * df-core.c: Likewise.
9020 * df-problems.c: Likewise.
9021 * df-scan.c: Likewise.
9023 * dojump.c: Likewise.
9024 * dominance.c: Likewise.
9025 * domwalk.c: Likewise.
9026 * double-int.c: Likewise.
9028 * dumpfile.c: Likewise.
9029 * dwarf2asm.c: Likewise.
9030 * dwarf2cfi.c: Likewise.
9031 * dwarf2out.c: Likewise.
9032 * emit-rtl.c: Likewise.
9033 * except.c: Likewise.
9034 * explow.c: Likewise.
9035 * expmed.c: Likewise.
9037 * final.c: Likewise.
9038 * fixed-value.c: Likewise.
9039 * fold-const.c: Likewise.
9040 * function.c: Likewise.
9041 * fwprop.c: Likewise.
9043 * generic-match-head.c: Likewise.
9044 * ggc-common.c: Likewise.
9045 * gimple-builder.c: Likewise.
9046 * gimple-expr.c: Likewise.
9047 * gimple-fold.c: Likewise.
9048 * gimple-iterator.c: Likewise.
9049 * gimple-low.c: Likewise.
9050 * gimple-match-head.c: Likewise.
9051 * gimple-pretty-print.c: Likewise.
9052 * gimple-ssa-isolate-paths.c: Likewise.
9053 * gimple-ssa-strength-reduction.c: Likewise.
9054 * gimple-streamer-in.c: Likewise.
9055 * gimple-streamer-out.c: Likewise.
9056 * gimple-walk.c: Likewise.
9057 * gimple.c: Likewise.
9058 * gimplify-me.c: Likewise.
9059 * gimplify.c: Likewise.
9060 * godump.c: Likewise.
9061 * graph.c: Likewise.
9062 * graphds.c: Likewise.
9063 * haifa-sched.c: Likewise.
9064 * hw-doloop.c: Likewise.
9065 * ifcvt.c: Likewise.
9066 * init-regs.c: Likewise.
9067 * internal-fn.c: Likewise.
9068 * ipa-chkp.c: Likewise.
9069 * ipa-comdats.c: Likewise.
9070 * ipa-cp.c: Likewise.
9071 * ipa-devirt.c: Likewise.
9072 * ipa-icf-gimple.c: Likewise.
9073 * ipa-icf.c: Likewise.
9074 * ipa-inline-analysis.c: Likewise.
9075 * ipa-inline-transform.c: Likewise.
9076 * ipa-inline.c: Likewise.
9077 * ipa-polymorphic-call.c: Likewise.
9078 * ipa-profile.c: Likewise.
9079 * ipa-prop.c: Likewise.
9080 * ipa-pure-const.c: Likewise.
9081 * ipa-ref.c: Likewise.
9082 * ipa-reference.c: Likewise.
9083 * ipa-split.c: Likewise.
9084 * ipa-utils.c: Likewise.
9085 * ipa-visibility.c: Likewise.
9087 * ira-build.c: Likewise.
9088 * ira-color.c: Likewise.
9089 * ira-conflicts.c: Likewise.
9090 * ira-costs.c: Likewise.
9091 * ira-emit.c: Likewise.
9092 * ira-lives.c: Likewise.
9095 * langhooks.c: Likewise.
9097 * lists.c: Likewise.
9098 * loop-doloop.c: Likewise.
9099 * loop-init.c: Likewise.
9100 * loop-invariant.c: Likewise.
9101 * loop-iv.c: Likewise.
9102 * loop-unroll.c: Likewise.
9103 * lower-subreg.c: Likewise.
9104 * lra-assigns.c: Likewise.
9105 * lra-coalesce.c: Likewise.
9106 * lra-constraints.c: Likewise.
9107 * lra-eliminations.c: Likewise.
9108 * lra-lives.c: Likewise.
9109 * lra-remat.c: Likewise.
9110 * lra-spills.c: Likewise.
9112 * lto-cgraph.c: Likewise.
9113 * lto-compress.c: Likewise.
9114 * lto-opts.c: Likewise.
9115 * lto-section-in.c: Likewise.
9116 * lto-section-out.c: Likewise.
9117 * lto-streamer-in.c: Likewise.
9118 * lto-streamer-out.c: Likewise.
9119 * lto-streamer.c: Likewise.
9121 * mode-switching.c: Likewise.
9122 * modulo-sched.c: Likewise.
9123 * optabs.c: Likewise.
9124 * opts-global.c: Likewise.
9125 * passes.c: Likewise.
9126 * plugin.c: Likewise.
9127 * postreload-gcse.c: Likewise.
9128 * postreload.c: Likewise.
9129 * predict.c: Likewise.
9130 * print-tree.c: Likewise.
9131 * profile.c: Likewise.
9133 * realmpfr.c: Likewise.
9134 * recog.c: Likewise.
9136 * reg-stack.c: Likewise.
9137 * regcprop.c: Likewise.
9138 * reginfo.c: Likewise.
9139 * regrename.c: Likewise.
9140 * regstat.c: Likewise.
9141 * reload.c: Likewise.
9142 * reload1.c: Likewise.
9143 * reorg.c: Likewise.
9144 * resource.c: Likewise.
9145 * rtl-chkp.c: Likewise.
9146 * rtl-error.c: Likewise.
9147 * rtlanal.c: Likewise.
9148 * rtlhooks.c: Likewise.
9149 * sanopt.c: Likewise.
9150 * sched-deps.c: Likewise.
9151 * sched-ebb.c: Likewise.
9152 * sched-rgn.c: Likewise.
9153 * sdbout.c: Likewise.
9154 * sel-sched-dump.c: Likewise.
9155 * sel-sched-ir.c: Likewise.
9156 * sel-sched.c: Likewise.
9158 * shrink-wrap.c: Likewise.
9159 * simplify-rtx.c: Likewise.
9160 * stack-ptr-mod.c: Likewise.
9161 * statistics.c: Likewise.
9163 * stor-layout.c: Likewise.
9164 * store-motion.c: Likewise.
9165 * stringpool.c: Likewise.
9166 * symtab.c: Likewise.
9167 * target-globals.c: Likewise.
9168 * targhooks.c: Likewise.
9169 * toplev.c: Likewise.
9170 * tracer.c: Likewise.
9171 * trans-mem.c: Likewise.
9172 * tree-affine.c: Likewise.
9173 * tree-call-cdce.c: Likewise.
9174 * tree-cfg.c: Likewise.
9175 * tree-cfgcleanup.c: Likewise.
9176 * tree-chkp-opt.c: Likewise.
9177 * tree-chkp.c: Likewise.
9178 * tree-chrec.c: Likewise.
9179 * tree-complex.c: Likewise.
9180 * tree-data-ref.c: Likewise.
9181 * tree-dfa.c: Likewise.
9182 * tree-diagnostic.c: Likewise.
9183 * tree-dump.c: Likewise.
9184 * tree-eh.c: Likewise.
9185 * tree-emutls.c: Likewise.
9186 * tree-if-conv.c: Likewise.
9187 * tree-inline.c: Likewise.
9188 * tree-into-ssa.c: Likewise.
9189 * tree-iterator.c: Likewise.
9190 * tree-loop-distribution.c: Likewise.
9191 * tree-nested.c: Likewise.
9192 * tree-nrv.c: Likewise.
9193 * tree-object-size.c: Likewise.
9194 * tree-outof-ssa.c: Likewise.
9195 * tree-parloops.c: Likewise.
9196 * tree-phinodes.c: Likewise.
9197 * tree-predcom.c: Likewise.
9198 * tree-pretty-print.c: Likewise.
9199 * tree-profile.c: Likewise.
9200 * tree-scalar-evolution.c: Likewise.
9201 * tree-sra.c: Likewise.
9202 * tree-ssa-address.c: Likewise.
9203 * tree-ssa-alias.c: Likewise.
9204 * tree-ssa-ccp.c: Likewise.
9205 * tree-ssa-coalesce.c: Likewise.
9206 * tree-ssa-copy.c: Likewise.
9207 * tree-ssa-dce.c: Likewise.
9208 * tree-ssa-dse.c: Likewise.
9209 * tree-ssa-forwprop.c: Likewise.
9210 * tree-ssa-ifcombine.c: Likewise.
9211 * tree-ssa-live.c: Likewise.
9212 * tree-ssa-loop-ch.c: Likewise.
9213 * tree-ssa-loop-im.c: Likewise.
9214 * tree-ssa-loop-ivcanon.c: Likewise.
9215 * tree-ssa-loop-ivopts.c: Likewise.
9216 * tree-ssa-loop-manip.c: Likewise.
9217 * tree-ssa-loop-niter.c: Likewise.
9218 * tree-ssa-loop-prefetch.c: Likewise.
9219 * tree-ssa-loop-unswitch.c: Likewise.
9220 * tree-ssa-loop.c: Likewise.
9221 * tree-ssa-math-opts.c: Likewise.
9222 * tree-ssa-operands.c: Likewise.
9223 * tree-ssa-phiopt.c: Likewise.
9224 * tree-ssa-phiprop.c: Likewise.
9225 * tree-ssa-pre.c: Likewise.
9226 * tree-ssa-propagate.c: Likewise.
9227 * tree-ssa-reassoc.c: Likewise.
9228 * tree-ssa-scopedtables.c: Likewise.
9229 * tree-ssa-sink.c: Likewise.
9230 * tree-ssa-strlen.c: Likewise.
9231 * tree-ssa-structalias.c: Likewise.
9232 * tree-ssa-tail-merge.c: Likewise.
9233 * tree-ssa-ter.c: Likewise.
9234 * tree-ssa-threadupdate.c: Likewise.
9235 * tree-ssa-uncprop.c: Likewise.
9236 * tree-ssa-uninit.c: Likewise.
9237 * tree-ssa.c: Likewise.
9238 * tree-ssanames.c: Likewise.
9239 * tree-stdarg.c: Likewise.
9240 * tree-streamer-in.c: Likewise.
9241 * tree-streamer-out.c: Likewise.
9242 * tree-streamer.c: Likewise.
9243 * tree-switch-conversion.c: Likewise.
9244 * tree-tailcall.c: Likewise.
9245 * tree-vect-data-refs.c: Likewise.
9246 * tree-vect-generic.c: Likewise.
9247 * tree-vect-loop-manip.c: Likewise.
9248 * tree-vect-loop.c: Likewise.
9249 * tree-vect-patterns.c: Likewise.
9250 * tree-vect-slp.c: Likewise.
9251 * tree-vect-stmts.c: Likewise.
9252 * tree-vectorizer.c: Likewise.
9253 * tree-vrp.c: Likewise.
9256 * ubsan.c: Likewise.
9257 * value-prof.c: Likewise.
9258 * var-tracking.c: Likewise.
9259 * varasm.c: Likewise.
9260 * varpool.c: Likewise.
9261 * vmsdbgout.c: Likewise.
9262 * vtable-verify.c: Likewise.
9264 * wide-int-print.cc: Likewise.
9265 * wide-int.cc: Likewise.
9266 * xcoffout.c: Likewise.
9268 2015-10-30 James Greenhalgh <james.greenhalgh@arm.com>
9270 * doc/invoke.texi (fdump-rtl-@var{pass}): Clarify relationship
9271 between pass numbering and execution order.
9273 2015-10-30 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
9275 * config/arm/arm.c (cortex_a9_sched_adjust_cost): Use reg_set_p to
9276 check for dependencies.
9278 2015-10-30 Richard Sandiford <richard.sandiford@arm.com>
9280 * tree-ssa-math-opts.c (pass_cse_sincos::execute): Don't free
9283 2015-10-30 Richard Sandiford <richard.sandiford@arm.com>
9285 * real.h (format_helper): New.
9286 (real_convert, exact_real_truncate, real_from_string3, real_to_target)
9287 (real_from_target, real_nan, real_2expN, real_value_truncate)
9288 (significand_size, real_from_string2, exact_real_inverse)
9289 (exact_real_inverse, real_powi, real_trunc, real_floor, real_ceil)
9290 (real_round, real_isinteger, real_from_integer): Replace
9291 machine_mode arguments with format_helper arguments.
9292 * real.c (exact_real_inverse, real_from_string2, real_from_string3)
9293 (real_from_integer, real_nan, real_2expN, real_convert)
9294 (real_value_truncate, exact_real_truncate, real_to_target)
9295 (real_from_target, significand_size, real_powi, real_trunc)
9296 (real_floor, real_ceil, real_round, real_isinteger): Replace
9297 machine_mode arguments with format_helper arguments.
9298 (real_to_target_fmt, real_from_target_fmt): Delete.
9299 * dfp.h (decimal_real_convert): Replace mode argument with real_format.
9300 * dfp.c (decimal_to_binary, decimal_real_convert): Replace mode
9301 argument with real_format.
9302 * builtins.c (do_real_to_int_conversion): Update type of fn argument.
9304 2015-10-30 Richard Sandiford <richard.sandiford@arm.com>
9306 * fixed-value.c (check_real_for_fixed_mode, fixed_from_string)
9307 (fixed_to_decimal, fixed_convert_from_real)
9308 (real_convert_from_fixed): Fix mode arguments to real_2expN.
9310 2015-10-30 Richard Sandiford <richard.sandiford@arm.com>
9312 * real.h (REAL_MODE_FORMAT): Abort if the mode isn't a
9313 SCALAR_FLOAT_MODE_P.
9315 2015-10-30 Alan Lawrence <alan.lawrence@arm.com>
9317 * tree-sra.c (scalarizable_type_p): Comment variable-length arrays.
9318 (completely_scalarize): Comment zero-length arrays.
9319 (get_access_replacement): Correct comment re. precondition.
9321 2015-10-30 Venkataramanan Kumar <venkataramanan.kumar@amd.com>
9323 * config/i386/i386.c (get_builtin_code_for_version): Set priority
9324 for PROCESSOR_ZNVER1.
9325 (enum processor_model): Add M_AMDFAM17H_znver1.
9326 (struct arch_names_table): Likewise.
9327 * doc/extend.texi: ADD znver1.
9329 2015-10-30 Richard Biener <rguenther@suse.de>
9331 * gimple-fold.c (fold_gimple_assign): Do not dispatch to
9332 fold () on single RHSs. Allow CONSTRUCTORS with trailing
9333 zeros to be folded to VECTOR_CSTs.
9334 * tree.c (build_vector_from_ctor): Handle VECTOR_CST elements.
9335 * fold-const.c (fold): Use build_vector_from_ctor.
9337 2015-10-30 Evandro Menezes <e.menezes@samsung.com>
9339 * config/aarch64/aarch64.md (*movhf_aarch64): Change the type of
9340 "mov %0.h[0], %1.h[0] to "neon_move".
9341 (*movtf_aarch64): Change the type of "fmov %s0, wzr" to "f_mcr".
9342 (*cmov<mode>_insn): Change the types of "mov %<w>0, {-1,1}" to
9344 (*cmovsi_insn_uxtw): Likewise.
9346 2015-10-30 Tom de Vries <tom@codesourcery.com>
9348 * tree-ssa-structalias.c (ipa_pta_execute): Declare variable from as
9349 unsigned, and initialize, and use initial value instead of hardcoded
9350 constant. Add generic constraints dumping section. Don't dump global
9351 initializers constraints dumping section if empty. Don't update
9352 variable from if unused.
9354 2015-10-29 Mikhail Maltsev <maltsevm@gmail.com>
9356 * config/alpha/alpha.c (alpha_function_arg): Use gcc_checking_assert,
9357 flag_checking and/or CHECKING_P to eliminate conditional compilation
9359 * config/arm/arm.c (arm_unwind_emit_sequence): Likewise.
9360 * config/bfin/bfin.c (hwloop_optimize): Likewise.
9361 * config/i386/i386.c (ix86_print_operand_address): Likewise.
9362 (output_387_binary_op): Likewise.
9363 * config/ia64/ia64.c (ia64_sched_init, bundling): Likewise.
9364 * config/m68k/m68k.c (m68k_sched_md_init_global): Likewise.
9365 * config/rs6000/rs6000.c (htm_expand_builtin, rs6000_emit_prologue):
9367 * config/rs6000/rs6000.h: Likewise.
9368 * config/visium/visium.c (visium_setup_incoming_varargs): Likewise.
9370 2015-10-29 Kaz Kojima <kkojima@gcc.gnu.org>
9372 * config/sh/sh.opt (mfdpic): Add missing period.
9374 2015-08-29 Anatoly Sokolov <aesok@post.ru>
9376 * config/mcore/mcore.h (REG_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P,
9377 BASE_REGISTER_RTX_P, INDEX_REGISTER_RTX_P,
9378 GO_IF_LEGITIMATE_ADDRESS): Remove macros.
9379 * config/mcore/mcore.c (mcore_reg_ok_for_base_p,
9380 mcore_base_register_rtx_p, mcore_legitimate_index_p,
9381 mcore_legitimate_address_p): New functions.
9382 (TARGET_ADDR_SPACE_LEGITIMATE_ADDRESS_P): Define.
9384 2015-10-29 Jeff Law <law@redhat.com>
9386 * tree-ssa-scopedtables.h (const_and_copies): Remove invalidate
9388 * tree-ssa-scopedtables.h (const_and_copies::invalidate): Remove.
9389 * tree-ssa-threadedge.c
9390 (record_temporary_equivalences_from_stmts_at_dest): Remove
9391 backedge_seen argument and associated code which invalidated
9392 equivalences based on the value of that argument.
9393 (thread_through_normal_block): Corresponding changes.
9395 2015-10-29 Segher Boessenkool <segher@kernel.crashing.org>
9397 * config/rs6000/rs6000.c (rs6000_reg_live_or_pic_offset_p): Move this
9398 function earlier in the file.
9399 (first_reg_to_save): Use rs6000_reg_live_or_pic_offset_p instead of
9400 df_regs_ever_live_p.
9402 2015-10-29 Segher Boessenkool <segher@kernel.crashing.org>
9404 * lra-constraints.c (process_address_1): Handle (mem:BLK (scratch))
9407 2015-10-29 Richard Henderson <rth@redhat.com>
9411 * config/i386/i386.c (ix86_cannot_change_mode_class): Tighten
9412 sse check to the exact conditions of PR 67609.
9414 2015-10-29 Michael Meissner <meissner@linux.vnet.ibm.com>
9416 * config/rs6000/rs6000.c (rs6000_init_libfuncs): Split libfunc
9417 setup into 3 functions: init_float128_ibm, init_float128_ieee, and
9418 rs6000_init_libfuncs. If -mfloat128, add IFmode functions for all
9419 of the traditional names that TFmode uses for handling IEEE
9420 extended double. If -mfloat128, add KFmode functions for all of
9421 the emulation functions. If -mabi=ieeelongdouble and -mfloat128,
9422 make TFmode use the same emulation functions as KFmode.
9423 (init_float128_ibm): Likewise.
9424 (init_float128_ieee): Likewise.
9425 (rs6000_generate_compare): For IEEE 128-bit floating point
9426 comparisons, call the unordered comparison function instead of the
9427 ordered comparison function.
9428 (rs6000_expand_float128_convert): Deal with operands that are
9429 memory operands. Restructure the code to use a switch statement on
9430 the mode. Add support for TFmode defaulting to either IBM extended
9431 double or IEEE 128-bit floating point. If the underlying types are
9432 the same, use a move instead of a conversion function.
9433 (TARGET_C_MODE_FOR_SUFFIX): Define 'q' and 'Q' as the suffix to
9434 use for IEEE 128-bit floating point constants with -mfloat128.
9435 (rs6000_c_mode_for_suffix): Likewise.
9436 (TARGET_INVALID_BINARY_OP): Do not allow inter-mixing of IEEE
9437 128-bit floating point with IBM extended double floating point.
9438 (rs6000_invalid_binary_op): Likewise.
9439 (rs6000_gen_le_vsx_permute): On little endian systems generate a
9440 ROTATE insn instead of VEC_SELECT for IEEE 128-bit floating point
9441 types that can go in vector registers.
9442 (chain_contains_only_swaps): Properly swap IEEE 128-bit floating
9443 point types that can go in vector registers on little endian
9445 (mark_swaps_for_removal): Likewise.
9446 (rs6000_analyze_swaps): Likewise.
9447 (rs6000_mangle_type): Use U10__float128 for IEEE 128-bit floating point.
9449 * config/rs6000/rs6000.md (FLOAT128_SFDFTF): Delete iterator,
9450 rework IEEE 128-bit floating point insns to deal with TFmode being
9451 either IBM extended double or IEEE 128-bit floating point.
9453 (IBM128): Update iterator to add condition that the mode is IBM
9455 (IEEE128): New iterator for IEEE 128-bit floating point.
9456 (TFIFKF): Rename TFIFKF iterator to FLOAT128.
9457 (FLOAT128): Likewise.
9458 (signbit<mode>2): FLOAT128_IBM_P condition test moved into IBM128
9460 (neg<mode>2): Replace TFIFKF iterator with FLOAT128. Add support
9461 for TFmode being IEEE 128-bit floating point. Use IEEE128 iterator
9462 instead of hard coding TFmode or KFmode.
9463 (negtf2_internal): Likewise.
9464 (neg<mode>2_internal): Likewise.
9465 (abs<mode>2): Likewise.
9466 (abstf2_internal): Likewise.
9467 (abs<mode>2_internal): Likewise.
9468 (ieee_128bit_neg<mode>2): Likewise.
9469 (ieee_128bit_neg<mode>2_internal): Likewise.
9470 (ieee_128bit_abs<mode>2): Likewise.
9471 (ieee_128bit_abs<mode>2_internal): Likewise.
9472 (ieee_128bit_nabs<mode>2): Likewise.
9473 (ieee_128bit_nabs<mode>2_internal): Likewise.
9474 (extendiftf2): Add explicit conversions between 128-bit floating
9475 point types. Drop the old conversions that had become unwieldy.
9476 (extend<FLOAT128_SFDFTF:mode><IFKF:mode>2): Likewise.
9477 (extendifkf2): Likewise.
9478 (trunc<IFKF:mode><FLOAT128_SFDFTF:mode>2): Likewise.
9479 (extendtfkf2): Likewise.
9480 (fix_trunc<IFKF:mode><SDI:mode>2): Likewise.
9481 (trunciftf2): Likewise.
9482 (fixuns_trunc<IFKF:mode><SDI:mode>2): Likewise.
9483 (truncifkf2): Likewise.
9484 (float<SDI:mode><IFKF:mode>2): Likewise.
9485 (trunckftf2): Likewise.
9486 (floatuns<SDI:mode><IFKF:mode>2): Likewise.
9487 (trunctfif2): Likewise.
9488 (FP iterator): Allow TFmode to be IEEE 128-bit floating point.
9489 (extenddftf2): Rework 128-bit floating point conversions to
9490 properly handle -mabi=ieeelongdouble. Merge IFmode, TFmode, and
9491 KFmode expanders into one function.
9492 (extenddf<mode>2): Likewise.
9493 (extenddftf2_fprs): Likewise.
9494 (extenddf<mode>2_fprs): Likewise.
9495 (extenddftf2_vsx): Likewise.
9496 (extenddf<mode>2_vsx): Likewise.
9497 (extendsftf2): Likewise.
9498 (extendsf<mode>2): Likewise.
9499 (trunctfdf2): Likewise.
9500 (trunc<mode>df2): Likewise.
9501 (trunctfdf2_internal1): Likewise.
9502 (trunc<mode>df2_internal1): Likewise.
9503 (trunctfdf2_internal2): Likewise.
9504 (trunc<mode>df2_internal2): Likewise.
9505 (trunctfsf2): Likewise.
9506 (trunc<mode>sf2): Likewise.
9507 (trunctfsf2_fprs): Likewise.
9508 (trunc<mode>sf2_fprs): Likewise.
9509 (floatsit2f): Likewise.
9510 (floatsi<mode>2): Likewise.
9511 (fix_trunc_helper): Likewise.
9512 (fix_trunc_helper<mode>): Likewise.
9513 (fix_trunctfsi2): Likewise.
9514 (fix_trunc<mode>si2): Likewise.
9515 (fix_trunctfsi2_fprs): Likewise.
9516 (fix_trunc<mode>si2_fprs): Likewise.
9517 (fix_trunctfsi2_internal): Likewise.
9518 (fix_trunc<mode>si2_internal): Likewise.
9519 (fix_trunctfdi2): Likewise.
9520 (fix_trunc<mode>di2): Likewise.
9521 (fixuns_trunctf<mode>2): Likewise.
9522 (fixuns_trunc<IEEE128:mode><SDI:mode>2): Likewise.
9523 (floatditf2): Likewise.
9524 (floatdi<mode>2): Likewise.
9525 (floatuns<mode>tf2): Likewise.
9526 (floatuns<SDI:mode><IEEE128:mode>): Likewise.
9527 (cmptf_internal1): Use a mode iterator to add support for both
9528 types (IFmode, TFmode) that support IBM extended double.
9529 (cmp<mode>_internal1): Likewise.
9530 (cmptf_internal2): Likewise.
9531 (cmp<mode>_internal2): Likewise.
9533 * doc/extend.texi (Floating Types): Document __ibm128 and
9534 __float128 on PowerPC.
9536 * doc/invoke.texi (RS/6000 and PowerPC Options): Document
9537 -mfloat128 and -mno-float128.
9539 2015-10-29 Michael Meissner <meissner@linux.vnet.ibm.com>
9541 * config/rs6000/rs6000.h (ALTIVEC_VECTOR_MODE): Add IEEE 128-bit
9542 floating point modes that can go in vector registers.
9543 (MODES_TIEABLE_P): Move tests for vector modes before tests for
9544 scalar floating point, so that IEEE 128-bit floating point that
9545 can go in vector registers bind with vectors and not FP.
9546 (struct rs6000_args): Add libcall field.
9548 * config/rs6000/rs6000.opt (-mfloat128-*): Delete -mfloat128-none
9549 and -mfloat128-software switches. Replace them with a binary
9551 (-mfloat128): Likewise.
9553 * config/rs6000/rs6000.c (rs6000_hard_regno_mode_ok): Allow
9554 128-bit floating point types in GPRs, even if the appropriate
9555 option enabling the type was not used.
9556 (rs6000_debug_reg_global): Remove -mfloat128-{software,none}
9558 (rs6000_setup_reg_addr_masks): Do not allow pre-increment and
9559 pre-decrement on IEEE 128-bit floating point values.
9560 (rs6000_init_hard_regno_mode_ok): Change test for whether TFmode
9561 is IEEE 128-bit floating point.
9562 (rs6000_init_hard_regno_mode_ok): Add reload handlers for IEEE
9563 128-bit floating point types that can go in vector registers.
9564 (rs6000_option_override_internal): Change -mfloat128-none and
9565 -mfloat128-software to -mfloat128, and move code to be near other
9566 VSX option handling.
9567 (rs6000_option_override_internal): Disable -mfloat128 if we don't
9568 have the Altivec ABI.
9569 (rs6000_init_builtins): Don't make TFmode use either IFmode or
9570 KFmode floating point nodes. Instead, have three separate nodes.
9571 (rs6000_scalar_mode_supported_p): Add support for IFmode to allow
9572 eventually moving the long double default to IEEE 128-bit floating
9574 (rs6000_opt_masks): Add -mfloat128.
9575 (struct rs6000_opt_var): Fix typo in comment.
9576 (init_cumulative_args): Initialize libcall field in
9578 (rs6000_function_arg): Treat library functions as if they had
9579 prototypes to prevent IEEE 128-bit support functions from passing
9580 arguments in both GPRs and vector registers.
9581 (rs6000_arg_partial_bytes): Likewise.
9583 * config/rs6000/rs6000-cpus.def (POWERPC_MASKS): Add -mfloat128 as
9584 an option that can be turned on via -mcpu=<xxx>.
9586 * config/rs6000/rs6000-opts.h (enum float128_type_t): Delete, no
9589 * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Define
9590 __FLOAT128__ if -mfloat128. Define __LONG_DOUBLE_IEEE128__ if long
9591 double is IEEE 128-bit. Define __LONG_DOUBLE_IBM128__ if long
9592 double is IBM extended double.
9594 * config/rs6000/predicates.md (reg_or_indexed_operand): Allow
9597 2015-10-29 Mikhail Maltsev <maltsevm@gmail.com>
9599 * genautomata.c: Use CHECKING_P instead of ENABLE_CHECKING.
9600 * genconditions.c: Define CHECKING_P in the generated code.
9601 * genextract.c: Use flag_checking in insn_extract.
9602 * gengtype.c (main): Remove conditional compilation.
9603 * gengtype.h: Likewise.
9605 2015-10-29 Jeff Law <law@redhat.com>
9607 PR tree-optimization/67892
9608 * tree-ssa-threadedge.c (simplify_controL_stmt_condition): Fix typo
9610 (thread_through_normal_block): If we have seen a backedge, then
9611 do nothing. No longer call find_jump_threads_backwards here.
9612 (thread_across_edge): Use find_jump_threads_backwards to find
9613 jump threads if the old style threader was not successful.
9614 * tree-ssa-threadbackward.c (get_gimple_control_stmt): Use
9615 gsi_last_nondebug_bb. Return NULL if the block does not end
9616 with a control statement.
9617 (find_jump_threads_backwards): Setup code moved here from
9618 tree-ssa-threadedge.c::thread_through_normal_block. Accept
9619 single edge argument instead of name & block.
9620 * tree-ssa-threadbackward.h (find_jump_threads_backwards): Update
9623 2015-10-29 Tom de Vries <tom@codesourcery.com>
9625 * fold-const.c (fold_unary_loc): Remove folding inhibition for restrict
9628 2015-10-29 Nathan Sidwell <nathan@codesourcery.com>
9630 * omp-low.c (lower_omp_target): Remove unreachable code & merge
9633 2015-10-29 Marc Glisse <marc.glisse@inria.fr>
9635 * match.pd (X-(X/Y)*Y): Properly handle conversions and commutativity.
9637 2015-10-29 Richard Sandiford <richard.sandiford@arm.com>
9639 * tree-call-cdce.c (shrink_wrap_one_built_in_call): Remove
9640 guard_bb0 and use guard_bb throughout.
9642 2015-10-29 Richard Sandiford <richard.sandiford@arm.com>
9644 * tree-call-cdce.c (shrink_wrap_one_built_in_call): Remove
9647 2015-10-29 Richard Biener <rguenther@suse.de>
9650 * fold-const.c (extract_muldiv_1): Avoid introducing undefined
9653 2015-10-29 Andrew MacLeod <amacleod@redhat.com>
9655 * alias.c: Reorder #include statements and remove duplicates.
9657 * attribs.c: Likewise.
9658 * auto-inc-dec.c: Likewise.
9659 * auto-profile.c: Likewise.
9660 * bb-reorder.c: Likewise.
9661 * bt-load.c: Likewise.
9662 * builtins.c: Likewise.
9663 * caller-save.c: Likewise.
9664 * calls.c: Likewise.
9667 * cfganal.c: Likewise.
9668 * cfgbuild.c: Likewise.
9669 * cfgcleanup.c: Likewise.
9670 * cfgexpand.c: Likewise.
9671 * cfghooks.c: Likewise.
9672 * cfgloop.c: Likewise.
9673 * cfgloopanal.c: Likewise.
9674 * cfgloopmanip.c: Likewise.
9675 * cfgrtl.c: Likewise.
9676 * cgraph.c: Likewise.
9677 * cgraphbuild.c: Likewise.
9678 * cgraphclones.c: Likewise.
9679 * cgraphunit.c: Likewise.
9680 * cilk-common.c: Likewise.
9681 * combine-stack-adj.c: Likewise.
9682 * combine.c: Likewise.
9683 * compare-elim.c: Likewise.
9684 * convert.c: Likewise.
9685 * coverage.c: Likewise.
9686 * cppbuiltin.c: Likewise.
9687 * cprop.c: Likewise.
9689 * cselib.c: Likewise.
9690 * data-streamer-in.c: Likewise.
9691 * data-streamer-out.c: Likewise.
9692 * data-streamer.c: Likewise.
9693 * dbxout.c: Likewise.
9696 * debug.c: Likewise.
9697 * df-core.c: Likewise.
9698 * df-problems.c: Likewise.
9699 * df-scan.c: Likewise.
9701 * dojump.c: Likewise.
9702 * dominance.c: Likewise.
9703 * double-int.c: Likewise.
9705 * dumpfile.c: Likewise.
9706 * dwarf2asm.c: Likewise.
9707 * dwarf2cfi.c: Likewise.
9708 * dwarf2out.c: Likewise.
9709 * emit-rtl.c: Likewise.
9710 * except.c: Likewise.
9711 * explow.c: Likewise.
9712 * expmed.c: Likewise.
9714 * final.c: Likewise.
9715 * fixed-value.c: Likewise.
9716 * fold-const.c: Likewise.
9717 * function.c: Likewise.
9718 * fwprop.c: Likewise.
9720 * generic-match-head.c: Likewise.
9721 * ggc-common.c: Likewise.
9722 * gimple-builder.c: Likewise.
9723 * gimple-expr.c: Likewise.
9724 * gimple-fold.c: Likewise.
9725 * gimple-iterator.c: Likewise.
9726 * gimple-low.c: Likewise.
9727 * gimple-match-head.c: Likewise.
9728 * gimple-pretty-print.c: Likewise.
9729 * gimple-ssa-isolate-paths.c: Likewise.
9730 * gimple-ssa-strength-reduction.c: Likewise.
9731 * gimple-streamer-in.c: Likewise.
9732 * gimple-streamer-out.c: Likewise.
9733 * gimple-walk.c: Likewise.
9734 * gimple.c: Likewise.
9735 * gimplify-me.c: Likewise.
9736 * gimplify.c: Likewise.
9737 * godump.c: Likewise.
9738 * graph.c: Likewise.
9739 * graphite-poly.c: Likewise.
9740 * haifa-sched.c: Likewise.
9741 * hw-doloop.c: Likewise.
9742 * ifcvt.c: Likewise.
9743 * incpath.c: Likewise.
9744 * init-regs.c: Likewise.
9745 * internal-fn.c: Likewise.
9746 * ipa-chkp.c: Likewise.
9747 * ipa-comdats.c: Likewise.
9748 * ipa-cp.c: Likewise.
9749 * ipa-devirt.c: Likewise.
9750 * ipa-icf-gimple.c: Likewise.
9751 * ipa-icf.c: Likewise.
9752 * ipa-inline-analysis.c: Likewise.
9753 * ipa-inline-transform.c: Likewise.
9754 * ipa-inline.c: Likewise.
9755 * ipa-polymorphic-call.c: Likewise.
9756 * ipa-profile.c: Likewise.
9757 * ipa-prop.c: Likewise.
9758 * ipa-pure-const.c: Likewise.
9759 * ipa-ref.c: Likewise.
9760 * ipa-reference.c: Likewise.
9761 * ipa-split.c: Likewise.
9762 * ipa-utils.c: Likewise.
9763 * ipa-visibility.c: Likewise.
9765 * ira-build.c: Likewise.
9766 * ira-color.c: Likewise.
9767 * ira-conflicts.c: Likewise.
9768 * ira-costs.c: Likewise.
9769 * ira-emit.c: Likewise.
9770 * ira-lives.c: Likewise.
9773 * langhooks.c: Likewise.
9775 * lists.c: Likewise.
9776 * loop-doloop.c: Likewise.
9777 * loop-init.c: Likewise.
9778 * loop-invariant.c: Likewise.
9779 * loop-iv.c: Likewise.
9780 * loop-unroll.c: Likewise.
9781 * lower-subreg.c: Likewise.
9782 * lra-assigns.c: Likewise.
9783 * lra-coalesce.c: Likewise.
9784 * lra-constraints.c: Likewise.
9785 * lra-eliminations.c: Likewise.
9786 * lra-lives.c: Likewise.
9787 * lra-remat.c: Likewise.
9788 * lra-spills.c: Likewise.
9790 * lto-cgraph.c: Likewise.
9791 * lto-compress.c: Likewise.
9792 * lto-opts.c: Likewise.
9793 * lto-section-in.c: Likewise.
9794 * lto-section-out.c: Likewise.
9795 * lto-streamer-in.c: Likewise.
9796 * lto-streamer-out.c: Likewise.
9797 * lto-streamer.c: Likewise.
9798 * mode-switching.c: Likewise.
9799 * modulo-sched.c: Likewise.
9800 * omp-low.c: Likewise.
9801 * optabs.c: Likewise.
9802 * opts-global.c: Likewise.
9803 * passes.c: Likewise.
9804 * plugin.c: Likewise.
9805 * postreload-gcse.c: Likewise.
9806 * postreload.c: Likewise.
9807 * predict.c: Likewise.
9808 * print-tree.c: Likewise.
9809 * profile.c: Likewise.
9811 * realmpfr.c: Likewise.
9812 * recog.c: Likewise.
9814 * reg-stack.c: Likewise.
9815 * regcprop.c: Likewise.
9816 * reginfo.c: Likewise.
9817 * regrename.c: Likewise.
9818 * regstat.c: Likewise.
9819 * reload.c: Likewise.
9820 * reload1.c: Likewise.
9821 * reorg.c: Likewise.
9822 * resource.c: Likewise.
9823 * rtl-chkp.c: Likewise.
9824 * rtl-error.c: Likewise.
9825 * rtlanal.c: Likewise.
9826 * rtlhooks.c: Likewise.
9827 * sanopt.c: Likewise.
9828 * sched-deps.c: Likewise.
9829 * sched-ebb.c: Likewise.
9830 * sched-rgn.c: Likewise.
9832 * shrink-wrap.c: Likewise.
9833 * simplify-rtx.c: Likewise.
9834 * stack-ptr-mod.c: Likewise.
9835 * statistics.c: Likewise.
9837 * stor-layout.c: Likewise.
9838 * store-motion.c: Likewise.
9839 * stringpool.c: Likewise.
9840 * symtab.c: Likewise.
9841 * target-globals.c: Likewise.
9842 * targhooks.c: Likewise.
9843 * toplev.c: Likewise.
9844 * tracer.c: Likewise.
9845 * trans-mem.c: Likewise.
9846 * tree-affine.c: Likewise.
9847 * tree-call-cdce.c: Likewise.
9848 * tree-cfg.c: Likewise.
9849 * tree-cfgcleanup.c: Likewise.
9850 * tree-chkp-opt.c: Likewise.
9851 * tree-chkp.c: Likewise.
9852 * tree-chrec.c: Likewise.
9853 * tree-complex.c: Likewise.
9854 * tree-data-ref.c: Likewise.
9855 * tree-dfa.c: Likewise.
9856 * tree-diagnostic.c: Likewise.
9857 * tree-dump.c: Likewise.
9858 * tree-eh.c: Likewise.
9859 * tree-emutls.c: Likewise.
9860 * tree-if-conv.c: Likewise.
9861 * tree-inline.c: Likewise.
9862 * tree-into-ssa.c: Likewise.
9863 * tree-iterator.c: Likewise.
9864 * tree-loop-distribution.c: Likewise.
9865 * tree-nested.c: Likewise.
9866 * tree-nrv.c: Likewise.
9867 * tree-object-size.c: Likewise.
9868 * tree-outof-ssa.c: Likewise.
9869 * tree-parloops.c: Likewise.
9870 * tree-phinodes.c: Likewise.
9871 * tree-predcom.c: Likewise.
9872 * tree-pretty-print.c: Likewise.
9873 * tree-profile.c: Likewise.
9874 * tree-scalar-evolution.c: Likewise.
9875 * tree-sra.c: Likewise.
9876 * tree-ssa-address.c: Likewise.
9877 * tree-ssa-alias.c: Likewise.
9878 * tree-ssa-ccp.c: Likewise.
9879 * tree-ssa-coalesce.c: Likewise.
9880 * tree-ssa-copy.c: Likewise.
9881 * tree-ssa-dce.c: Likewise.
9882 * tree-ssa-dom.c: Likewise.
9883 * tree-ssa-dse.c: Likewise.
9884 * tree-ssa-forwprop.c: Likewise.
9885 * tree-ssa-ifcombine.c: Likewise.
9886 * tree-ssa-live.c: Likewise.
9887 * tree-ssa-loop-ch.c: Likewise.
9888 * tree-ssa-loop-im.c: Likewise.
9889 * tree-ssa-loop-ivcanon.c: Likewise.
9890 * tree-ssa-loop-ivopts.c: Likewise.
9891 * tree-ssa-loop-manip.c: Likewise.
9892 * tree-ssa-loop-niter.c: Likewise.
9893 * tree-ssa-loop-prefetch.c: Likewise.
9894 * tree-ssa-loop-unswitch.c: Likewise.
9895 * tree-ssa-loop.c: Likewise.
9896 * tree-ssa-math-opts.c: Likewise.
9897 * tree-ssa-operands.c: Likewise.
9898 * tree-ssa-phiopt.c: Likewise.
9899 * tree-ssa-phiprop.c: Likewise.
9900 * tree-ssa-pre.c: Likewise.
9901 * tree-ssa-propagate.c: Likewise.
9902 * tree-ssa-reassoc.c: Likewise.
9903 * tree-ssa-sccvn.c: Likewise.
9904 * tree-ssa-scopedtables.c: Likewise.
9905 * tree-ssa-sink.c: Likewise.
9906 * tree-ssa-strlen.c: Likewise.
9907 * tree-ssa-structalias.c: Likewise.
9908 * tree-ssa-tail-merge.c: Likewise.
9909 * tree-ssa-ter.c: Likewise.
9910 * tree-ssa-threadedge.c: Likewise.
9911 * tree-ssa-threadupdate.c: Likewise.
9912 * tree-ssa-uncprop.c: Likewise.
9913 * tree-ssa-uninit.c: Likewise.
9914 * tree-ssa.c: Likewise.
9915 * tree-ssanames.c: Likewise.
9916 * tree-stdarg.c: Likewise.
9917 * tree-streamer-in.c: Likewise.
9918 * tree-streamer-out.c: Likewise.
9919 * tree-streamer.c: Likewise.
9920 * tree-switch-conversion.c: Likewise.
9921 * tree-tailcall.c: Likewise.
9922 * tree-vect-data-refs.c: Likewise.
9923 * tree-vect-generic.c: Likewise.
9924 * tree-vect-loop-manip.c: Likewise.
9925 * tree-vect-loop.c: Likewise.
9926 * tree-vect-patterns.c: Likewise.
9927 * tree-vect-slp.c: Likewise.
9928 * tree-vect-stmts.c: Likewise.
9929 * tree-vectorizer.c: Likewise.
9930 * tree-vrp.c: Likewise.
9933 * ubsan.c: Likewise.
9934 * value-prof.c: Likewise.
9935 * var-tracking.c: Likewise.
9936 * varasm.c: Likewise.
9937 * varpool.c: Likewise.
9938 * vtable-verify.c: Likewise.
9940 * wide-int-print.cc: Likewise.
9941 * wide-int.cc: Likewise.
9942 * xcoffout.c: Likewise.
9944 2015-10-29 H.J. Lu <hongjiu.lu@intel.com>
9946 * Makefile.in (NO_PIE_CFLAGS): New.
9947 (NO_PIE_FLAG): Likewise.
9948 (NO_PIE_CFLAGS_FOR_BUILD): Likewise.
9949 (NO_PIE_FLAG_FOR_BUILD): Likewise.
9950 (BUILD_NO_PIE_CFLAGS): Likewise.
9951 (BUILD_NO_PIE_FLAG): Likewise.
9952 (COMPILER): Replace @NO_PIE_CFLAGS@ with $(NO_PIE_CFLAGS).
9953 (LINKER): Replace @NO_PIE_FLAG@ with $(NO_PIE_FLAG).
9954 (BUILD_CFLAGS): Replace @NO_PIE_CFLAGS@ with
9955 $(BUILD_NO_PIE_CFLAGS).
9956 (BUILD_CXXFLAGS): Likewise.
9957 (BUILD_LDFLAGS ): Replace @NO_PIE_FLAG@ with
9958 $(BUILD_NO_PIE_FLAG).
9959 * configure.ac (BUILD_NO_PIE_CFLAGS): New. AC_SUBST.
9960 (BUILD_NO_PIE_FLAG): Likewise.
9961 (NO_PIE_CFLAGS_FOR_BUILD): Likewise.
9962 (NO_PIE_FLAG_FOR_BUILD): Likewise.
9963 * configure: Regenerated.
9965 2015-10-29 Richard Biener <rguenther@suse.de>
9968 * fold-const.c (fold_cond_expr_with_comparison): Do not fold
9969 unsigned conditonal negation to ABS_EXPR.
9971 2015-10-29 Richard Biener <rguenther@suse.de>
9973 * gimple-match-head.c (gimple_simplify): Remove premature checking
9974 of builtin_decl_implicit of function calls we simplify.
9976 2015-10-29 Bin Cheng <bin.cheng@arm.com>
9978 * tree-ssa-loop-ivopts.c (split_address_cost): Check depends_on.
9979 (get_computation_cost_at): Ditto.
9980 (determine_use_iv_cost_address): Pass NULL for arguments depends_on
9983 2015-10-28 Tom de Vries <tom@codesourcery.com>
9985 * tree-ssa-structalias.c (intra_create_variable_infos): Remove
9988 2015-10-28 Jason Merrill <jason@redhat.com>
9990 * Makefile.in (TAGS): Include libcpp and libiberty.
9992 2015-10-28 Nathan Sidwell <nathan@codesourcery.com>
9994 * omp-low.c (MASK_GANG, MASK_WORKER, MASK_VECTOR): Delete.
9995 (extract_omp_for_data): Remove OpenACC special handling of
9998 * config/nvptx/nvptx.c (nvptx_print_operand): Remove 'd' case.
9999 (struct parallel): Update comment.
10000 (nvptx_reorg): Likewise.
10001 (nvptx_neuter): Cleanup whitespace.
10003 2015-10-28 Richard Henderson <rth@redhat.com>
10005 * tree-eh.c (mark_reachable_handlers): Fix typo in assert.
10007 2015-10-05 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
10010 * config/avr/predicates.md (low_io_address_operand): Don't
10011 consider MODE when computing upper bound.
10012 (io_address_operand): Likewise.
10014 2015-10-28 Jan Hubicka <hubicka@ucw.cz>
10016 * fold-const.c (operand_equal_p): Do not verify that types are
10017 compatible for MEM_REFs.
10019 2015-10-28 Richard Biener <rguenther@suse.de>
10021 * gimple-match-head.c (gimple_simplify): Allow VECTOR_CSTs
10022 in simplifying VEC_COND_EXPR conditions.
10024 2015-10-28 Tom de Vries <tom@codesourcery.com>
10026 * tree-ssa-structalias.c (intra_create_variable_infos): Don't iterate
10027 into vi_next of a full_var.
10029 2015-10-28 Tom de Vries <tom@codesourcery.com>
10031 * tree-ssa-structalias.c (new_var_info, make_heapvar)
10032 (make_constraint_from_restrict, make_constraint_from_global_restrict)
10033 (create_function_info_for, create_variable_info_for_1)
10034 (create_variable_info_for): Add and handle add_id parameter.
10035 (get_call_vi, new_scalar_tmp_constraint_exp, handle_rhs_call)
10036 (init_base_vars): Add extra argument to calls to new_var_info.
10037 (get_vi_for_tree): Add extra argument to call to
10038 create_variable_info_for.
10039 (process_constraint, do_deref, process_all_all_constraints): Add extra
10040 argument to calls to new_scalar_tmp_constraint_exp.
10041 (handle_lhs_call, find_func_aliases_for_builtin_call): Add extra
10042 argument to calls to make_heapvar.
10043 (make_restrict_var_constraints): Add extra argument to call to
10044 make_constraint_from_global_restrict.
10045 (intra_create_variable_infos): Add extra argument to call to
10046 create_variable_info_for_1.
10047 (ipa_pta_execute): Add extra argument to call to
10048 create_function_info_for.
10050 2015-10-28 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
10052 * config/aarch64/aarch64.md (call, call_value, sibcall): Handle noplt.
10053 (sibcall_value): Likewise.
10055 2015-10-28 Nathan Sidwell <nathan@codesourcery.com>
10057 * config/nvptx/nvptx.h (struct machine_function): Add
10059 * config/nvptx/nvptx-protos.h (nvptx_expand_oacc_fork,
10060 nvptx_expand_oacc_join): Declare.
10061 * config/nvptx/nvptx.md (UNSPEC_NTID, UNSPEC_TID): Delete.
10062 (UNSPEC_DIM_SIZE, UNSPEC_SHARED_DATA, UNSPEC_BIT_CONV,
10063 UNSPEC_SHUFFLE, UNSPEC_BR_UNIFIED): New.
10064 (UNSPECV_BARSYNC, UNSPECV_DIM_POS, UNSPECV_FORK, UNSPECV_FORKED,
10065 UNSPECV_JOINING, UNSPECV_JOIN): New.
10066 (BITS, BITD): New mode iterators.
10067 (br_true_uni, br_false_uni): New.
10068 (*oacc_ntid_insn, oacc_ntid, *oacc_tid_insn, oacc_tid): Delete.
10069 (oacc_dim_size, oacc_dim_pos): New.
10070 (nvptx_fork, nvptx_forked, nvptx_joining, nvptx_join): New.
10071 (oacc_fork, oacc_join): New.
10072 (nvptx_shuffle<mode>, unpack<mode>si2, packsi<mode>2): New.
10073 (worker_load<mode>, worker_store<mode>): New.
10074 (nvptx_barsync): New.
10075 * config/nvptx/nvptx.c: Include gimple.h & dumpfile.h.
10076 (SHUFFLE_UP, SHUFFLE_DOWN, SHUFFLE_BFLY, SHUFFLE_IDX): Define.
10077 (worker_bcast_hwm, worker_bcast_align, worker_bcast_name,
10078 worker_bcast_sym): New.
10079 (nvptx_option_override): Initialize worker broadcast buffer.
10080 (nvptx_emit_forking, nvptx_emit_joining): New.
10081 (nvptx_init_axis_predicate): New.
10082 (nvptx_declare_function_name): Init axis predicates.
10083 (nvptx_expand_call): Add fork/join markers around routine call.
10084 (nvptx_expand_oacc_fork, nvptx_expand_oacc_join): New.
10085 (nvptx_gen_unpack, nvptx_gen_pack, nvptx_gen_shuffle): New.
10086 (nvptx_gen_vcast): New.
10087 (struct wcast_data_t): New.
10088 (enum propagate_mask): New.
10089 (nvptx_gen_wcast): New.
10090 (nvptx_print_operand): Add 'S' case.
10091 (struct parallel): New.
10092 (parallel::parallel, parallel::~parallel): New.
10093 (bb_insn_map_t, insn_bb_t, insn_bb_vec_t): New typedefs.
10094 (nvptx_split_blocks, nvptx_discover_pre, nvptx_dump_pars,
10095 nvptx_find_par, nvptx_discover_pars): New.
10096 (nvptx_propagate): New.
10097 (vprop_gen, nvptx_vpropagate): New.
10098 (wprop_gen, nvptx_wpropagate): New.
10099 (nvptx_wsync): New.
10100 (nvptx_single, nvptx_skip_par): New.
10101 (nvptx_process_pars, nvptx_neuter_pars): New.
10102 (ntptx_reorg): Split blocks, generate parallel structure, apply
10104 (nvptx_cannot_copy_insn_p): New.
10105 (nvptx_file_end): Emit worker broadcast decl.
10106 (nvptx_goacc_fork_join): New.
10107 (TARGET_CANNOT_COPY_INSN_P): Override.
10108 (TARGET_GOACC_FORK_JOIN): Override.
10110 2015-10-28 Richard Biener <rguenther@suse.de>
10112 * fold-const.c (negate_expr_p): Adjust the division case to
10113 properly avoid introducing undefined overflow.
10114 (fold_negate_expr): Likewise.
10116 2015-10-28 Richard Biener <rguenther@suse.de>
10118 PR tree-optimization/65962
10119 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children):
10120 Avoid creating loop carried dependences also for outer loops
10121 of the loop a use to replace is in.
10123 2015-10-28 Richard Biener <rguenther@suse.de>
10125 * common.opt (fchecking): New flag controlling flag_checking.
10126 * passes.c (verify_curr_properties): Drop DEBUG_FUNCTION.
10127 * timevar.c (timer::print): Adjust output.
10128 * doc/invoke.texi (fchecking): Document.
10130 2015-10-28 Richard Biener <rguenther@suse.de>
10132 PR middle-end/68067
10133 * fold-const.c (negate_expr_p): We cannot negate plus or minus
10134 if overflow is not wrapping. Likewise multiplication unless
10135 one operand is constant and not power of two.
10136 (fold_negate_expr): Adjust accordingly.
10138 2015-10-27 Nathan Sidwell <nathan@codesourcery.com>
10140 * omp-low.c (struct omp_context): Remove gwv_below, gwv_this
10142 (is_oacc_parallel, is_oacc_kernels): New.
10143 (enclosing_target_ctx): May return NULL.
10144 (ctx_in_oacc_kernels_region): New.
10145 (check_oacc_kernel_gwv): New.
10146 (oacc_loop_or_target_p): Delete.
10147 (scan_omp_for): Don't calculate gwv mask. Check parallel clause
10148 operands. Strip reductions fro kernels.
10149 (scan_omp_target): Don't calculate gwv mask.
10150 (lower_oacc_head_mark, lower_oacc_loop_marker,
10151 lower_oacc_head_tail): New.
10152 (struct oacc_collapse): New.
10153 (expand_oacc_collapse_init, expand_oacc_collapse_vars): New.
10154 (expand_omp_for_static_nochunk, expand_omp_for_static_chunk):
10155 Remove OpenACC handling.
10156 (expand_oacc_for): New.
10157 (expand_omp_for): Call expand_oacc_for.
10158 (lower_omp_for): Call lower_oacc_head_tail.
10160 2015-10-27 Mikhail Maltsev <maltsevm@gmail.com>
10162 * attribs.c (check_attribute_tables): New function, broken out from...
10163 (init_attributes): Use it.
10164 * cfgcleanup.c (try_optimize_cfg): Use flag_checking, CHECKING_P
10165 gcc_checking_assert and checking_* functions to eliminate
10166 ENABLE_CHECKING conditionals.
10167 * cfgexpand.c (expand_goto, expand_debug_expr): Likewise.
10168 (pass_expand::execute): Likewise.
10169 * cgraphclones.c (symbol_table::materialize_all_clones): Likewise.
10170 * cgraphunit.c (mark_functions_to_output): Likewise.
10171 (cgraph_node::expand_thunk): Likewise.
10172 (symbol_table::compile): Likewise.
10173 * ddg.c (add_cross_iteration_register_deps): Likewise.
10174 (create_ddg_all_sccs): Likewise.
10175 * df-core.c (df_finish_pass, df_analyze): Likewise.
10176 * diagnostic-core.h: Likewise.
10177 * diagnostic.c (diagnostic_report_diagnostic): Likewise.
10178 * dominance.c (calculate_dominance_info): Likewise.
10179 * dwarf2out.c (add_AT_die_ref): Likewise.
10180 (const_ok_for_output_1, mem_loc_descriptor): Likewise.
10181 (loc_list_from_tree, gen_lexical_block_die): Likewise.
10182 gen_type_die_with_usage, gen_type_die): Likewise.
10183 (dwarf2out_decl): Likewise.
10184 * emit-rtl.c (verify_rtx_sharing, reorder_insns_nobb): Likewise.
10185 * except.c (duplicate_eh_regions): Likewise.
10186 * fwprop.c (register_active_defs, update_df_init): Likewise.
10187 (fwprop_init, fwprop_done): Likewise.
10188 (update_uses): Likewise.
10189 * ggc-page.c (ggc_grow): Likewise.
10190 * gimplify.c (gimplify_body): Likewise.
10191 (gimplify_hasher::equal): Likewise.
10192 * graphite-isl-ast-to-gimple.c (graphite_verify): Likewise.
10193 * graphite-scop-detection.c (canonicalize_loop_closed_ssa_form):
10195 * graphite-sese-to-poly.c (rewrite_reductions_out_of_ssa): Likewise.
10196 (rewrite_cross_bb_scalar_deps_out_of_ssa): Likwise.
10197 * hash-table.h (::find_empty_slot_for_expand): Likewise.
10198 * ifcvt.c (if_convert): Likewise.
10199 * ipa-cp.c (ipcp_propagate_stage): Likewise.
10200 * ipa-devirt.c (type_in_anonymous_namespace_p): Likewise.
10201 (odr_type_p, odr_types_equivalent_p): Likewise.
10202 (add_type_duplicate, get_odr_type): Likewise.
10203 * ipa-icf.c (sem_item_optimizer::execute): Likewise.
10204 (sem_item_optimizer::subdivide_classes_by_equality): Likewise.
10205 (sem_item_optimizer::verify_classes): Likewise.
10206 (sem_item_optimizer::traverse_congruence_split): Likewise.
10207 (sem_item_optimizer::checking_verify_classes): New.
10208 * ipa-icf.h (sem_item_optimizer::checking_verify_classes): Add new
10210 * cfgrtl.c (commit_edge_insertions): Likewise.
10211 (fixup_reorder_chain, cfg_layout_finalize): Likewise.
10212 (rtl_flow_call_edges_add): Likewise.
10213 * cgraph.c (symbol_table::create_edge): Likewise.
10214 (cgraph_edge::redirect_call_stmt_to_callee): Likewise.
10215 * cgraph.h (symtab_node): Likewise.
10216 (symtab_node::checking_verify_symtab_nodes): Define.
10217 (cgraph_node::checking_verify_cgraph_nodes): Define.
10218 * cfghooks.h (checking_verify_flow_info): Define.
10219 * cfgloop.h (checking_verify_loop_structure): Define.
10220 * dominance.h (checking_verify_dominators): Define.
10221 * et-forest.c: Fix comment.
10222 * ipa-inline-analysis.c (compute_inline_parameters): Use flag_checking,
10223 CHECKING_P gcc_checking_assert and checking_* functions to eliminate
10224 ENABLE_CHECKING conditionals.
10225 * ipa-inline-transform.c (save_inline_function_body): Likewise.
10226 * ipa-inline.c (inline_small_functions): Likewise.
10227 (early_inliner): Likewise.
10228 * ipa-inline.h (estimate_edge_growth): Likewise.
10229 * ipa-visibility.c (function_and_variable_visibility): Likewise.
10230 * ipa.c (symbol_table::remove_unreachable_nodes): Likewise.
10231 (ipa_single_use): Likewise.
10232 * ira-int.h: Likewise.
10233 * ira.c (ira): Likewise.
10234 * loop-doloop.c (doloop_optimize_loops): Likewise.
10235 * loop-init.c (loop_optimizer_init, fix_loop_structure): Likewise.
10236 * loop-invariant.c (move_loop_invariants): Likewise.
10237 * lra-assigns.c (lra_assign): Likewise.
10238 * lra-constraints.c (lra_constraints): Likewise.
10239 * lra-eliminations.c (lra_eliminate): Likewise.
10240 * lra-int.h (struct lra_reg): Likewise.
10241 * lra-lives.c (check_pseudos_live_through_calls): Likewise.
10242 (lra_create_live_ranges_1): Likewise.
10243 * lra-remat.c (create_remat_bb_data): Likewise.
10244 * lra.c (lra_update_insn_recog_data, restore_scratches): Likewise.
10246 (check_rtl): Always define. Remove incorrect guard around
10247 extract_constrain_insn call.
10248 * lto-cgraph.c (input_cgraph_1: Use flag_checking,
10249 CHECKING_P gcc_checking_assert and checking_* functions to eliminate
10250 ENABLE_CHECKING conditionals.
10251 * lto-streamer-out.c (DFS::DFS): Likewise.
10252 (lto_output): Likewise.
10253 * lto-streamer.c (lto_streamer_init): Likewise.
10254 * omp-low.c (scan_omp_target, expand_omp_taskreg): Likewise.
10255 expand_omp_target, execute_expand_omp): Likewise.
10256 (lower_omp_target): Likewise.
10257 * passes.c (execute_function_todo): Likewise.
10258 (execute_todo, execute_one_pass): Likewise.
10259 (verify_curr_properties): Always define.
10260 * predict.c (tree_estimate_probability: Use flag_checking,
10261 CHECKING_P gcc_checking_assert and checking_* functions to eliminate
10262 ENABLE_CHECKING conditionals.
10263 (propagate_freq): Likewise.
10264 * pretty-print.c (pp_format): Likewise.
10265 * real.c (real_to_decimal_for_mode): Likewise.
10266 * recog.c (split_all_insns): Likewise.
10267 * regcprop.c (kill_value_one_regno): Likewise.
10268 (copy_value): Likewise.
10269 (validate_value_data): Define unconditionally.
10270 * reload.c: Fix comment.
10271 * timevar.c: Include options.h
10272 * tree-ssa.h (checking_verify_ssa): Define.
10273 * tree-ssa-loop-manip.h (checking_verify_loop_closed_ssa): Define.
10274 * sched-deps.c (CHECK): Remove unused macro.
10275 (add_or_update_dep_1, sd_add_dep: Use flag_checking, CHECKING_P
10276 gcc_checking_assert and checking_* functions to eliminate
10277 ENABLE_CHECKING conditionals.
10278 * sel-sched-ir.c (free_regset_pool, tidy_control_flow): Likewise.
10279 * sel-sched.c (struct moveop_static_params): Likewise.
10280 (find_best_reg_for_expr, move_cond_jump): Likewise.
10281 (move_op_orig_expr_not_found): Likewise.
10282 (code_motion_process_successors, move_op): Likewise.
10283 * ssa-iterators.h (first_readonly_imm_use): Likewise.
10284 (next_readonly_imm_use): Likewise.
10285 * store-motion.c (compute_store_table): Likewise.
10286 * symbol-summary.h (function_summary::function_summary): Likewise.
10287 * target.h (cumulative_args_t): Likewise.
10288 (get_cumulative_args, pack_cumulative_args): Likewise.
10289 * timevar.c: (timer::print): Likewise.
10290 * trans-mem.c (ipa_tm_execute): Likewise.
10291 * tree-cfg.c (move_stmt_op): Likewise.
10292 (move_sese_region_to_fn): Likewise.
10293 (gimple_flow_call_edges_add): Likewise.
10294 * tree-cfgcleanup.c (cleanup_tree_cfg_noloop, repair_loop_structures):
10296 * tree-eh.c (remove_unreachable_handlers): Likewise.
10297 * tree-if-conv.c (pass_if_conversion::execute): Likewise.
10298 * tree-inline.c (expand_call_inline, optimize_inline_calls): Likewise.
10299 * tree-into-ssa.c (update_ssa): Likewise.
10300 * tree-loop-distribution.c (pass_loop_distribution::execute): Likewise.
10301 * tree-outof-ssa.c (eliminate_useless_phis, rewrite_trees): Likewise.
10302 * tree-parloops.c (pass_parallelize_loops::execute): Likewise.
10303 * tree-predcom.c (suitable_component_p): Likewise.
10304 * tree-profile.c (gimple_gen_const_delta_profiler): Likewise.
10305 * tree-ssa-alias.c (refs_may_alias_p_1): Likewise.
10306 * tree-ssa-live.c (verify_live_on_entry): Likewise.
10307 * tree-ssa-live.h (register_ssa_partition): Likewise.
10308 * tree-ssa-loop-ivcanon.c (tree_unroll_loops_completely): Likewise.
10309 * tree-ssa-loop-manip.c (add_exit_phi): Likewise.
10310 (tree_transform_and_unroll_loop): Likewise.
10311 * tree-ssa-math-opts.c (pass_cse_reciprocals::execute): Likewise.
10312 * tree-ssa-operands.c (get_expr_operands): Likewise.
10313 * tree-ssa-propagate.c (replace_exp_1): Likewise.
10314 * tree-ssa-structalias.c (rewrite_constraints): Likewise.
10315 * tree-ssa-ter.c (free_temp_expr_table): Likewise.
10316 * tree-ssa-threadupdate.c (duplicate_thread_path): Likewise.
10317 * tree-ssanames.c (release_ssa_name_fn): Likewise.
10318 * tree-stdarg.c (expand_ifn_va_arg): Likewise.
10319 * tree-vect-loop-manip.c
10320 (slpeel_tree_duplicate_loop_to_edge_cfg): Likewise.
10321 (slpeel_checking_verify_cfg_after_peeling): Likewise.
10322 (vect_do_peeling_for_loop_bound): Likewise.
10323 (vect_do_peeling_for_alignment): Likewise.
10324 * tree-vrp.c (supports_overflow_infinity): Likewise.
10325 (set_value_range): Likewise.
10326 * tree.c (free_lang_data_in_cgraph): Likewise.
10327 * value-prof.c (gimple_remove_histogram_value): Likewise.
10328 (free_hist): Likewise.
10329 * var-tracking.c (canonicalize_values_star): Likewise.
10330 (compute_bb_dataflow, vt_find_locations, vt_emit_notes): Likewise.
10332 2015-10-27 Nathan Sidwell <nathan@codesourcery.com>
10334 * internal-fn.def (IFN_GOACC_DIM_SIZE, IFN_GOACC_DIM_POS,
10335 IFN_GOACC_LOOP): New.
10336 * internal-fn.h (enum ifn_unique_kind): Add IFN_UNIQUE_OACC_FORK,
10337 IFN_UNIQUE_OACC_JOIN, IFN_UNIQUE_OACC_HEAD_MARK,
10338 IFN_UNIQUE_OACC_TAIL_MARK.
10339 (enum ifn_goacc_loop_kind): New.
10340 * internal-fn.c (expand_UNIQUE): Add IFN_UNIQUE_OACC_FORK,
10341 IFN_UNIQUE_OACC_JOIN cases.
10342 (expand_GOACC_DIM_SIZE, expand_GOACC_DIM_POS): New.
10343 (expand_GOACC_LOOP): New.
10344 * target-insns.def (oacc_dim_pos, oacc_dim_size): New.
10345 * omp-low.c: Include gimple-pretty-print.h.
10346 (struct oacc_loop): New.
10347 (enum oacc_loop_flags): New.
10348 (oacc_thread_numbers): New.
10349 (oacc_xform_loop): New.
10350 (new_oacc_loop_raw, new_oacc_loop_outer, new_oacc_loop,
10351 new_oacc_loop_routine, finish_oacc_loop, free_oacc_loop): New,
10352 (dump_oacc_loop_part, dump_oacc_loop, debug_oacc_loop): New,
10353 (oacc_loop_discover_walk, oacc_loop_sibling_nrevers,
10354 oacc_loop_discovery): New.
10355 (oacc_loop_xform_head_tail, oacc_loop_xform_loop,
10356 oacc_loop_process): New.
10357 (oacc_loop_fixed_partitions, oacc_loop_partition): New.
10358 (execute_oacc_device_lower): Discover & process loops. Process
10360 * target.def (goacc.fork_join): Change sense of hook, clarify
10362 * doc/tm.texi: Regenerated.
10364 2015-10-27 Nathan Sidwell <nathan@codesourcery.com>
10366 * target-insns.def (oacc_fork, oacc_join): Define.
10367 * target.def (goacc.validate_dims): Adjust doc to avoid warning.
10368 (goacc.fork_join): New GOACC hook.
10369 * targhooks.h (default_goacc_fork_join): Declare.
10370 * omp-low.c (default_goacc_forkjoin): New.
10371 * doc/tm.texi.in (TARGET_GOACC_FORK_JOIN): Add.
10372 * doc/tm.texi: Regenerate.
10374 2015-10-27 Nathan Sidwell <nathan@codesourcery.com>
10376 * omp-low.c (oacc_init_rediction_array): New.
10377 (oacc_initialize_reduction_data): Initialize array.
10379 2015-10-27 Nathan Sidwell <nathan@codesourcery.com>
10381 * omp-low.c (pass_oacc_device_lower::execute): Ignore errors.
10383 2015-10-27 Nathan Sidwell <nathan@codesourcery.com>
10385 * internal-fn.c (expand_UNIQUE): New.
10386 * internal-fn.h (enum ifn_unique_kind): New.
10387 * internal-fn.def (IFN_UNIQUE): New.
10388 * target-insns.def (unique): Define.
10389 * gimple.h (gimple_call_internal_unique_p): New.
10390 * gimple.c (gimple_call_same_target_p): Check internal fn
10392 * tracer.c (ignore_bb_p): Check for IFN_UNIQUE call.
10393 * tree-ssa-threadedge.c
10394 (record_temporary_equivalences_from_stmts): Likewise.
10395 * tree-cfg.c (gmple_call_initialize_ctrl_altering): Likewise.
10397 2015-10-27 Richard Henderson <rth@redhat.com>
10400 * config/i386/i386.c (ix86_cannot_change_mode_class): Disallow
10401 narrowing subregs on SSE and MMX registers.
10402 * doc/tm.texi.in (CANNOT_CHANGE_MODE_CLASS): Clarify when subregs that
10403 appear to be sub-words of multi-register pseudos must be rejected.
10404 * doc/tm.texi: Regenerate.
10406 2015-10-27 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
10409 * config/aarch64/aarch64.md (*movsi_aarch64): Check that
10410 operands[0] is a reg before taking its REGNO in split condition.
10411 (*movdi_aarch64): Likewise.
10413 2015-10-27 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
10415 * config/aarch64/aarch64.c (aarch64_output_simd_mov_immediate):
10416 Handle floating point inner modes properly.
10418 2015-10-27 Alan Hayward <alan.hayward@arm.com>
10420 * tree-vect-looop.c
10421 (vectorizable_live_operation): Change iterator.
10423 2015-10-27 Abderrazek Zaafrani <a.zaafrani@samsung.com>
10424 Aditya Kumar <aditya.k7@samsung.com>
10426 * graphite-optimize-isl.c (get_schedule_for_node_st): New callback
10427 function to schedule based on isl_schedule_node.
10428 (get_schedule_map_st): New schedule optimizer based on
10430 (scop_get_domains): New. Return the isl_union_set containing the
10431 domains of all the pbbs.
10432 (optimize_isl): Call the new function get_schedule_map_st for isl-0.15
10434 2015-10-27 H.J. Lu <hongjiu.lu@intel.com>
10437 * calls.c (prepare_call_address): Don't handle -fno-plt here.
10438 * config/i386/i386.c (ix86_expand_call): Generate indirect call
10439 via GOT for -fno-plt. Support indirect call via GOT for x32.
10440 * config/i386/predicates.md (sibcall_memory_operand): Allow
10441 GOT memory operand.
10443 2015-10-27 Richard Biener <rguenther@suse.de>
10445 PR tree-optimization/68104
10446 * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Move
10447 strided access check ...
10448 (vect_compute_data_refs_alignment): ... here.
10450 2015-10-27 Daniel Jacobowitz <dan@codesourcery.com>
10451 Joseph Myers <joseph@codesourcery.com>
10452 Mark Shinwell <shinwell@codesourcery.com>
10453 Andrew Stubbs <ams@codesourcery.com>
10454 Rich Felker <dalias@libc.org>
10456 * config.gcc: Handle --enable-fdpic.
10457 * config/sh/constraints.md (Ccl): New constraint.
10458 * config/sh/linux.h (SUBTARGET_LINK_EMUL_SUFFIX): Handle -mfdpic.
10459 * config/sh/sh-c.c (sh_cpu_cpp_builtins): Add __FDPIC__ and
10461 * config/sh/sh-mem.cc (expand_block_move): Support FDPIC for calls to
10463 * config/sh/sh-protos.h (function_symbol_result): New struct.
10464 (function_symbol): Return function_symbol_result.
10465 (sh_get_fdpic_reg_initial_val, sh_load_function_descriptor): New
10467 * config/sh/sh.c (TARGET_ASM_INTEGER, sh_assemble_integer): Implement
10469 (TARGET_CANNOT_FORCE_CONST_MEM, sh_cannot_force_const_mem_p): Likewise.
10470 (sh_option_override): Force -fPIC if FDPIC is in effect.
10471 (sh_asm_output_addr_const_extra): Add UNSPEC_GOTFUNCDESC and
10472 UNSPEC_GOTOFFFUNCDESC cases.
10473 (prepare_move_operands): Use FDPIC initial GOT register for
10474 TLS-related GOT access; inhibit cross-section address offset constants
10476 (sh_assemble_integer): New function.
10477 (sh_cannot_copy_insn_p): Inhibit copying insns that are FDPIC
10478 PC-relative call sites.
10479 (expand_ashiftrt): Adapt invocation of function_symbol.
10480 (sh_expand_prologue): Inhibit PC-relative GOT address load for FDPIC.
10481 (nonpic_symbol_mentioned_p): Add cases for UNSPEC_GOTFUNCDESC and
10482 UNSPEC_GOTOFFFUNCDESC.
10483 (legitimize_pic_address): Resolve function symbols to function
10484 descriptors for FDPIC. Do not use GOT-relative addressing for local
10485 data that may be read-only on FDPIC.
10486 (sh_emit_storesi, sh_emit_storehi): New functions.
10487 (sh_trampoline_init): Generate FDPIC trampolines.
10488 (sh_function_ok_for_sibcall): Add TARGET_FDPIC check.
10489 (sh_expand_sym_label2reg): Don't assume sibcalls are local.
10490 (sh_output_mi_thunk): Generate FDPIC call.
10491 (function_symbol): Return function_symbol_result. For SFUNC_STATIC on
10492 FDPIC, generate call site labels to use PC-relative addressing rather
10493 than GOT-relative addressing.
10494 (sh_conditional_register_usage): Make PIC register fixed and call used
10495 when FDPIC is in effect.
10496 (sh_legitimate_constant_p): Impose FDPIC constant constraints.
10497 (sh_cannot_force_const_mem_p, sh_load_function_descriptor,
10498 sh_get_fdpic_reg_initial_val): New functions.
10499 * config/sh/sh.h (SUBTARGET_ASM_SPEC, SUBTARGET_LINK_EMUL_SUFFIX):
10501 (FDPIC_SELF_SPECS, SUBTARGET_DRIVER_SELF_SPECS,
10502 PIC_OFFSET_TABLE_REG_CALL_CLOBBERED,
10503 SH_OFFSETS_MUST_BE_WITHIN_SECTIONS_P): New macros.
10504 (DRIVER_SELF_SPECS): Add SUBTARGET_DRIVER_SELF_SPECS and
10506 (TRAMPOLINE_SIZE): Select trampoline size for FDPIC.
10507 (ASM_PREFERRED_EH_DATA_FORMAT): Add EH format constraints for FDPIC.
10508 (ASM_MAYBE_OUTPUT_ENCODED_ADDR_RTX): Handle FDPIC case.
10509 * config/sh/sh.md (UNSPEC_GOTFUNCDESC, UNSPEC_GOTOFFFUNCDESC): New
10511 (calli_fdpic, call_valuei_fdpic, sibcalli_fdpic, sibcalli_pcrel_fdpic,
10512 sibcall_pcrel_fdpic, sibcall_valuei_fdpic, sibcall_valuei_pcrel_fdpic,
10513 sibcall_value_pcrel_fdpic, sym2GOTFUNCDESC, symGOTFUNCDESC2reg,
10514 sym2GOTOFFFUNCDESC, symGOTOFFFUNCDESC2reg): New patterns.
10515 (udivsi3_i1, udivsi3_i4, udivsi3_i4_single, udivsi3,
10516 *divsi_inv_call_combine, divsi3_i4, divsi3_i4_single, divsi3, ashlsi3,
10517 ashlsi3_d_call, ashrsi3_n, lshrsi3, lshrsi3_d_call, calli, call_valuei,
10518 call, call_value, sibcalli, sibcalli_pcrel, sibcall_pcrel, sibcall,
10519 sibcall_valuei, sibcall_valuei_pcrel, sibcall_value_pcrel,
10520 sibcall_value, GOTaddr2picreg, symGOT_load, symGOTOFF2reg,
10521 block_move_real, block_lump_real, block_move_real_i4,
10522 block_lump_real_i4): Add support for FDPIC calls.
10523 (mulsi3, ic_invalidate_line, initialize_trampoline, call_pop,
10524 call_value_pop): Adjust for new function_symbol signature.
10525 * config/sh/sh.opt (-mfdpic): New option.
10526 * doc/install.texi (Options specification): Document --enable-fdpic.
10527 * doc/invoke.texi (SH Options): Document -mfdpic.
10530 2015-10-27 Alan Lawrence <alan.lawrence@arm.com>
10532 PR tree-optimization/65963
10533 * tree-scalar-evolution.c (interpret_rhs_expr): Handle some
10534 LSHIFT_EXPRs as equivalent MULT_EXPRs.
10536 2015-10-27 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
10539 * config/arm/arm.c (vfp3_const_double_for_bits): Rewrite.
10540 * config/arm/constraints.md (Dp): Update callsite.
10541 * config/arm/predicates.md (const_double_vcvt_power_of_two): Likewise.
10543 2015-10-27 Richard Sandiford <richard.sandiford@arm.com>
10545 * builtins.c (fold_builtin_load_exponent): Rename to...
10546 (fold_const_builtin_load_exponent): ...this and only handle
10547 constant arguments.
10548 (fold_builtin_2): Update accordingly.
10549 * match.pd: Add rules previously handled by fold_builtin_load_exponent.
10551 2015-10-27 Richard Sandiford <richard.sandiford@arm.com>
10553 * builtins.c (fold_builtin_logb): Rename to...
10554 (fold_const_builtin_logb): ...this and remove STRIP_NOPS call.
10555 (fold_builtin_significand): Rename to...
10556 (fold_const_builtin_significand): ...this and remove STRIP_NOPS call.
10557 (fold_builtin_1): Update accordingly.
10559 2015-10-27 Richard Sandiford <richard.sandiford@arm.com>
10561 * builtins.c (fold_builtin_fmin_fmax): Delete.
10562 (fold_builtin_2): Handle constant fmin and fmax arguments here.
10563 * match.pd: Add rules previously handled by fold_builtin_fmin_fmax.
10565 2015-10-27 Evandro Menezes <e.menezes@samsung.com>
10567 * config/aarch64/aarch64-protos.h (cpu_addrcost_table): Split member
10568 for register extension into sign and zero register extension.
10569 * config/aarch64/aarch64.c (generic_addrcost_table): Infer values
10570 for sign and zero register extension.
10571 (cortexa57_addrcost_table): Likewise.
10572 (xgene1_addrcost_table): Likewise.
10574 2015-10-27 Richard Sandiford <richard.sandiford@arm.com>
10576 * fold-const.c (fold_minmax): Delete.
10577 (fold_binary_loc): Don't call it.
10578 * match.pd: Add rules previously handled by fold_minmax.
10580 2015-10-27 Richard Sandiford <richard.sandiford@arm.com>
10582 * builtins.c (fold_builtin_fma): Remove constant handling.
10583 (fold_builtin_3): Handle constant fma arguments here.
10585 2015-10-27 Richard Sandiford <richard.sandiford@arm.com>
10587 * builtins.c (fold_builtin_fabs): Remove constant handling.
10588 (fold_builtin_abs): Likewise.
10590 2015-10-27 Richard Sandiford <richard.sandiford@arm.com>
10592 * builtins.c (fold_builtin_copysign): Delete.
10593 (fold_builtin_2): Handle constant copysign arguments here.
10594 * match.pd: Add rules previously handled by fold_builtin_copysign.
10596 2015-10-27 Richard Sandiford <richard.sandiford@arm.com>
10598 * builtins.c (fold_builtin_signbit): Delete.
10599 (fold_builtin_2): Handle constant signbit arguments here.
10600 * match.pd: Add rules previously handled by fold_builtin_signbit.
10602 2015-10-27 Richard Sandiford <richard.sandiford@arm.com>
10604 * match.pd: Handle sqrt(x) cmp 0 specially.
10606 2015-10-27 Ilya Enkovich <enkovich.gnu@gmail.com>
10608 * tree-vect-generic.c (expand_vector_operations_1): Check
10609 optab type before using it.
10611 2015-10-27 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
10613 * config/aarch64/aarch64-protos.h
10614 (struct tune_params): Add autoprefetcher_model field.
10615 * config/aarch64/aarch64.c: Include params.h
10616 (generic_tunings): Specify autoprefetcher_model value.
10617 (cortexa53_tunings): Likewise.
10618 (cortexa57_tunings): Likewise.
10619 (cortexa72_tunings): Likewise.
10620 (thunderx_tunings): Likewise.
10621 (xgene1_tunings): Likewise.
10622 (aarch64_first_cycle_multipass_dfa_lookahead_guard): New function.
10623 (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD): Define.
10624 (aarch64_override_options_internal): Set
10625 PARAM_SCHED_AUTOPREF_QUEUE_DEPTH param.
10627 2015-10-27 Richard Sandiford <richard.sandiford@arm.com>
10629 * builtins.c (fold_builtin_exponent): Delete.
10630 (fold_builtin_2): Handle constant expN arguments here.
10631 * match.pd: Fold expN(logN(x)) -> x.
10633 2015-10-27 Richard Sandiford <richard.sandiford@arm.com>
10635 * builtins.c (fold_builtin_powi): Delete.
10636 (fold_builtin_2): Handle constant powi arguments here.
10637 * match.pd: Add rules previously handled by fold_builtin_powi.
10639 2015-10-27 Richard Sandiford <richard.sandiford@arm.com>
10641 * builtins.c (fold_builtin_pow): Delete in favor of...
10642 (fold_const_builtin_pow): ...this new function. Only handle constant
10644 (fold_builtin_2): Update accordingly.
10645 * match.pd: Add rules previously handled by fold_builtin_pow.
10647 2015-10-27 Richard Sandiford <richard.sandiford@arm.com>
10649 * builtins.c (fold_builtin_hypot): Delete.
10650 (fold_builtin_2): Handle constant hypot arguments here.
10651 * match.pd: Fold hypot(x, 0) and hypot(0, x) to x. Canonicalize
10652 hypot(x, x) to fabs(x)*sqrt(2).
10654 2015-10-27 Richard Sandiford <richard.sandiford@arm.com>
10656 * gimple-match-head.c (maybe_push_res_to_seq): Use create_tmp_reg
10657 instead of make_ssa_name if not yet in SSA form.
10659 2015-10-27 Richard Biener <rguenther@suse.de>
10661 * cfg.c (free_edge): Add function argument and use it instead of cfun.
10662 (clear_edges): Likewise.
10663 * cfg.h (clear_edges): Adjust prototype.
10664 * cfgexpand.c (pass_expand::execute): Adjust.
10665 * cfgloop.c (release_recorded_exits): Add function argument and use
10666 it instead of cfun.
10667 * cfgloop.h (release_recorded_exits): Adjust prototype.
10668 (loops_state_satisfies_p): Add overload with function argument.
10669 (loops_state_set): Likewise.
10670 (loops_state_clear): Likewise.
10671 (struct loop_iterator): Add function argument to constructor
10672 and iterator and use it instead of cfun.
10673 (FOR_EACH_LOOP_FN): New macro.
10674 (loop_optimizer_finalize): Add overload with function argument.
10675 * loop-init.c (loop_optimizer_init): Adjust.
10676 (fix_loop_structure): Likewise.
10677 (loop_optimizer_finaliz): Add function argument and use it
10679 * tree-cfg.c (delete_tree_cfg_annotations): Likewise.
10680 * tree-cfg.h (delete_tree_cfg_annotations): Adjust prototype.
10681 * cgraph.c (release_function_body): Do not push/pop cfun.
10682 * final.c (rest_of_clean_state): Adjust.
10683 * graphite.c (graphite_finalize): Likewise.
10684 * tree-ssa-copy.c (fini_copy_prop): Likewise.
10685 * tree-ssa-dce.c (perform_tree_ssa_dce): Likewise.
10686 * tree-ssa-loop-ivcanon.c (canonicalize_induction_variables): Likewise.
10687 (tree_unroll_loops_completely): Likewise.
10688 (pass_complete_unrolli::execute): Likewise.
10689 * tree-ssa-loop-niter.c (free_numbers_of_iterations_estimates):
10690 Add function argument and use it instead of cfun.
10691 * tree-ssa-loop-niter.h (free_numbers_of_iterations_estimates):
10693 * tree-ssa-loop.c (tree_ssa_loop_done): Adjust.
10694 * tree-ssa.c (delete_tree_ssa): Add function argument and use it
10696 * tree-ssa.h (delete_tree_ssa): Adjust prototype.
10697 * tree-ssanames.c (fini_ssanames): Add function argument and use it
10699 * tree-ssanames.c (fini_ssanames): Adjust prototype.
10700 * tree-vrp.c (execute_vrp): Adjust.
10701 * value-prof.c (free_histograms): Add function argument and use it
10703 * value-prof.h (free_histograms): Adjust prototype.
10705 2015-10-27 Thomas Schwinge <thomas@codesourcery.com>
10707 * tree.h (OACC_PARALLEL_BODY, OACC_PARALLEL_CLAUSES)
10708 (OACC_KERNELS_BODY, OACC_KERNELS_CLAUSES, OACC_KERNELS_COMBINED)
10709 (OACC_PARALLEL_COMBINED): Don't define macros. Adjust all users.
10711 2015-10-27 Tom de Vries <tom@codesourcery.com>
10713 * tree-ssa-structalias.c (push_fields_onto_fieldstack): Add and use var
10716 2015-10-27 Bin Cheng <bin.cheng@arm.com>
10718 * loop-invariant.c (struct def): New field can_prop_to_addr_uses.
10719 (inv_can_prop_to_addr_use): New function.
10720 (record_use): Call can_prop_to_addr_uses, set the new field.
10721 (get_inv_cost): Count cost if inv can't be propagated into its
10724 2015-10-26 Doug Evans <dje@google.com>
10726 * config/linux.h (INCLUDE_DEFAULTS): Add INCLUDE_DEFAULTS_MUSL_LOCAL.
10728 2015-10-26 Eric Botcazou <ebotcazou@adacore.com>
10730 * match.pd (fold_widened_comparison): Apply simplifications to all
10733 2015-10-26 Simon Dardis <simon.dardis@imgtec.com>
10735 * target.def (TARGET_NO_SPECULATION_IN_DELAY_SLOTS_P): New hook.
10736 * doc/tm.texi.in (TARGET_NO_SPECULATION_IN_DELAY_SLOTS_P): Document.
10737 * doc/tm.texi: Regenerated.
10738 * reorg.c (dbr_schedule): Use new hook.
10739 * config/mips/mips.c (mips_no_speculation_in_delay_slots_p): New.
10741 2015-10-26 Jeff Law <law@redhat.com>
10743 PR tree-optimization/68013
10744 * tree-ssa-threadbackward.c (fsm_find_control_statement_thread_paths):
10745 Make sure the first block in the path is in VISITED_BBs.
10747 2015-10-26 Richard Biener <rguenther@suse.de>
10748 Dominik Vogt <vogt@linux.vnet.ibm.com>
10750 PR middle-end/67443
10751 * alias.c (ao_ref_from_mem): Remove promoted subreg handling.
10752 Properly prune ref->ref for accesses outside of ref.
10754 2015-10-26 Richard Sandiford <richard.sandiford@arm.com>
10756 * gimple-fold.c (replace_stmt_with_simplification): Don't allow
10757 new statements to be inserted if inplace. Allow calls to have
10758 nonempty sequences.
10760 2015-10-26 Richard Biener <rguenther@suse.de>
10762 * tree-object-size.c: Remove builtins.h include, include tree-cfg.h.
10763 (do_valueize): New function.
10764 (pass_object_sizes::execute): Use gimple_fold_stmt_to_constant and
10766 * tree-ssa-threadedge.c: Remove builtins.h include, include
10768 (fold_assignment_stmt): Remove.
10769 (threadedge_valueize): New function.
10770 (record_temporary_equivalences_from_stmts): Use
10771 gimple_fold_stmt_to_constant_1, note additional cleanup
10774 2015-10-26 Richard Biener <rguenther@suse.de>
10776 * match.pd ((A & ~B) - (A & B) -> (A ^ B) - B): Add missing :c.
10777 ( (X & ~Y) | (~X & Y) -> X ^ Y): Remove redundant :c.
10779 2015-10-26 Alan Hayward <alan.hayward@arm.com>
10781 * tree-vect-loop.c (vect_create_epilog_for_reduction): Fix
10782 VEC_COND_EXPR types.
10784 2015-10-26 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
10786 * auto-inc-dec.c (insert_move_insn_before): Delete.
10787 (attempt_change): Remember to cost the simple move in the
10788 FORM_PRE_ADD and FORM_POST_ADD cases.
10790 2015-10-26 Kaz Kojima <kkojima@gcc.gnu.org>
10793 * config/sh/sh.c (sh_vector_mode_supported_p): Use
10794 TARGET_SHMEDIA_FPU instead of TARGET_FPU_ANY.
10796 2015-10-26 Tom de Vries <tom@codesourcery.com>
10798 * tree-ssa-structalias.c (make_restrict_var_constraints): New function,
10799 factored out of ...
10800 (intra_create_variable_infos): ... here.
10802 2015-10-26 Tom de Vries <tom@codesourcery.com>
10804 * tree-ssa-structalias.c (intra_create_variable_infos): Add
10805 restrict_pointer_p and recursive_restrict_p variables.
10807 2015-10-26 Tom de Vries <tom@codesourcery.com>
10809 * tree-ssa-structalias.c (intra_create_variable_infos): Inline
10810 get_vi_for_tree call.
10812 2015-10-26 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
10814 PR middle-end/67989
10815 * optabs.c (expand_atomic_compare_and_swap): Handle case when
10816 ptarget_oval or ptarget_bool are const0_rtx.
10818 2015-10-26 Christian Bruel <christian.bruel@st.com>
10820 * function.h (MINIMUM_METHOD_BOUNDARY): New macro.
10821 * cp/decl.c (grokfndecl): Set DECL_ALIGN with MINIMUM_METHOD_BOUNDARY.
10822 * cp/method.c (implicitly_declare_fn): Likewise.
10823 * cp/lambda.c (maybe_add_lambda_conv_op): Likewise. Remove VBIT setting.
10824 * java/class.c (add_method_1): Likewise.
10826 2015-10-26 Richard Biener <rguenther@suse.de>
10828 * alloc-pool.h (base_pool_allocator): Use placement new.
10829 (base_pool_allocator::remove): Likewise. Compute size outside of
10832 2015-10-26 Richard Sandiford <richard.sandiford@arm.com>
10834 * builtins.c (do_real_to_int_conversion): New function.
10835 (fold_fixed_mathfn, fold_builtin_int_roundingfn): Delete.
10836 (fold_builtin_1): Handle constant {i,l,ll}{ceil,floor,round}{f,,l}
10838 * match.pd: Add rules previously handled by fold_fixed_mathfn
10839 and fold_builtin_int_roundingfn.
10841 2015-10-26 Richard Sandiford <richard.sandiford@arm.com>
10843 * match.pd: Use macros to define built-in operator lists.
10845 2015-10-20 Richard Sandiford <richard.sandiford@arm.com>
10846 Richard Biener <rguenther@suse.de>
10848 * genmatch.c (dt_simplify::gen): Skip captures that are
10849 part of the result.
10850 (parser::parse_expr): Allow captures in results too.
10851 * builtins.c (fold_builtin_cexp): Delete.
10852 (fold_builtin_1): Handle constant cexp arguments here.
10853 * match.pd: Fold cexp(x+yi) to exp(x) * cexpi(y).
10855 2015-10-26 Mikhail Maltsev <maltsevm@gmail.com>
10857 * alloc-pool.h (base_pool_allocator::initialize, ::allocate): Remove
10858 conditional compilation.
10859 (base_pool_allocator::remove): Use flag_checking.
10861 2015-10-25 John David Anglin <danglin@gcc.gnu.org>
10863 * config/pa/som.h (EH_FRAME_THROUGH_COLLECT2): Define.
10865 PR middle-end/68079
10866 * dojump.c (do_compare_and_jump): Canonicalize both function and
10869 2015-10-25 Uros Bizjak <ubizjak@gmail.com>
10872 * config/i386/i386.c (ix86_md_asm_adjust) [case 'a']: Use NE code
10875 2015-10-23 Jan Hubicka <hubicka@ucw.cz>
10878 * ipa-polymorphic-call.c
10879 (ipa_polymorphic_call_context::get_dynamic_type): Do not confuse
10880 instance offset with offset of outer type.
10882 2015-10-23 Jan Hubicka <hubicka@ucw.cz>
10884 * fold-const.c (operand_equal_p): Handle VIEW_CONVERT_EXPR.
10886 2015-10-23 Caroline Tice <cmtice@google.com>
10888 (from Richard Biener
10889 * tree.c (int_cst_hasher::hash): Replace XOR with more efficient
10890 call to iterative_hash_host_wide_int.
10892 2015-10-23 David Edelsohn <dje.gcc@gmail.com>
10894 * config.gcc (powerpc-ibm-aix[6789]) [default_use_cxa_atexit]:
10897 2015-10-23 Ilya Enkovich <enkovich.gnu@gmail.com>
10899 * tree-vect-generic.c (expand_vector_operations_1): Check
10900 optab exists before use it.
10902 2015-10-23 Ilya Enkovich <enkovich.gnu@gmail.com>
10904 * tree-vect-generic.c (expand_vector_condition): Avoid
10905 uninitialized variable warning.
10907 2015-10-23 Jeff Law <law@redhat.com>
10909 * passes.c (execute_function_todo): Do not call flush_ssaname_freelist
10911 (execute_todo): Call it here.
10912 * tree-ssanames.c (make_ssa_name_fn): Unconditionally gather reuse
10914 (pass_release_ssa_names::execute): Do not call flusH_ssaname_freelist.
10916 2015-10-23 Gregor Richards <gregor.richards@uwaterloo.ca>
10917 Szabolcs Nagy <szabolcs.nagy@arm.com>
10919 * config.gcc (enable_secureplt): Add *-linux*-musl*.
10921 2015-10-23 Jeff Law <law@redhat.com>
10923 PR tree-optimization/67830
10924 * match.pd ((bit_and (plus/minus (convert @0) (convert @1)) mask)):
10925 Explicitly verify the mask has no bits outside the type of
10926 the innermost operands.
10928 2015-10-23 Gregor Richards <gregor.richards@uwaterloo.ca>
10929 Szabolcs Nagy <szabolcs.nagy@arm.com>
10931 * config/rs6000/linux64.h (MUSL_DYNAMIC_LINKER32): Define.
10932 (MUSL_DYNAMIC_LINKER64): Define.
10933 (GNU_USER_DYNAMIC_LINKER32): Update.
10934 (GNU_USER_DYNAMIC_LINKER64): Update.
10935 (CHOOSE_DYNAMIC_LINKER): Update.
10937 * config/rs6000/sysv4.h (GNU_USER_DYNAMIC_LINKER): Update.
10938 (MUSL_DYNAMIC_LINKER, MUSL_DYNAMIC_LINKER_E,)
10939 (INCLUDE_DEFAULTS_MUSL_GPP, INCLUDE_DEFAULTS_MUSL_LOCAL,)
10940 (INCLUDE_DEFAULTS_MUSL_PREFIX, INCLUDE_DEFAULTS_MUSL_CROSS,)
10941 (INCLUDE_DEFAULTS_MUSL_TOOL, INCLUDE_DEFAULTS_MUSL_NATIVE): Define.
10942 (CHOOSE_DYNAMIC_LINKER): Update.
10943 (INCLUDE_DEFAULTS): Redefine.
10945 * config/rs6000/sysv4le.h (MUSL_DYNAMIC_LINKER_E): Define.
10947 2015-10-23 Jan Hubicka <hubicka@ucw.cz>
10949 * fold-const.c (operand_equal_p): Do not compare TYPE_MODE when
10950 comparing addresses.
10952 2015-10-23 Jan Hubicka <hubicka@ucw.cz>
10954 * fold-const.c (operand_equal_p): Handle matching of vector
10957 2015-10-23 David Edelsohn <dje.gcc@gmail.com>
10959 * doc/install.texi (*-ibm-aix*): Additional information for AIX 7.1.
10961 2015-10-23 Steve Ellcey <sellcey@imgtec.com>
10962 Andrew Pinski <apinski@cavium.com>
10964 PR rtl-optimization/67736
10965 * combine.c (simplify_comparison): Use gen_lowpart_or_truncate instead
10968 2015-10-23 Ilya Enkovich <enkovich.gnu@gmail.com>
10970 PR middle-end/68066
10971 * tree.c (build_truth_vector_type): Support BLK mode
10972 returned for boolean vector.
10974 2015-10-23 Alan Hayward <alan.hayward@arm.com>
10976 PR tree-optimization/65947
10978 (vect_is_simple_reduction_1): Find condition reductions.
10979 (vect_model_reduction_cost): Add condition reduction costs.
10980 (get_initial_def_for_reduction): Add condition reduction initial var.
10981 (vect_create_epilog_for_reduction): Add condition reduction epilog.
10982 (vectorizable_reduction): Condition reduction support.
10983 * tree-vect-stmts.c (vectorizable_condition): Add vect reduction arg
10984 * doc/sourcebuild.texi (Vector-specific attributes): Document
10987 2015-10-23 Richard Biener <rguenther@suse.de>
10989 * Makefile.in (build/genmatch.o): Properly depend on is-a.h, tree.def
10992 2015-10-23 Richard Biener <rguenther@suse.de>
10993 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
10995 * fold-const.c (fold_binary_loc) : Move Fold (A & ~B) - (A & B)
10996 into (A ^ B) - B to match.pd
10997 Move (X & ~Y) | (~X & Y) is X ^ Y to match.pd.
10999 * match.pd (minus (bit_and:cs @0 (bit_not @1)) (bit_and:s @0 @1)):
11001 (minus (bit_and:s @0 INTEGER_CST@2) (bit_and:s @0 INTEGER_CST@1)):
11003 (minus (bit_and:s @0 @1) (bit_and:cs @0 (bit_not @1))):
11005 (bit_ior:c (bit_and:c @0 (bit_not @1)) (bit_and:c (bit_not @0) @1)):
11007 (bit_ior:c (bit_and @0 INTEGER_CST@2) (bit_and (bit_not @0)
11008 INTEGER_CST@1)): New simplifier.
11010 2015-10-23 Richard Sandiford <richard.sandiford@arm.com>
11012 * builtins.c (integer_valued_real_p): Move to fold-const.c.
11013 (fold_trunc_transparent_mathfn, fold_builtin_trunc, fold_builtin_floor)
11014 (fold_builtin_ceil, fold_builtin_round): Delete.
11015 (fold_builtin_1): Handle constant trunc, floor, ceil and round
11017 * convert.c (convert_to_real): Remove narrowing of rounding
11019 * fold-const.h (integer_valued_real_unary_p)
11020 (integer_valued_real_binary_p, integer_valued_real_call_p)
11021 (integer_valued_real_single_p, integer_valued_real_p): Declare.
11022 * fold-const.c (tree_single_nonnegative_warnv_p): Move
11023 name_registered_for_update_p check to SSA_NAME case statement.
11024 Don't call tree_simple_nonnegative_warnv_p for SSA names.
11025 (integer_valued_real_unary_p, integer_valued_real_binary_p)
11026 (integer_valued_real_call_p, integer_valued_real_single_p)
11027 (integer_valued_real_invalid_p): New functions.
11028 (integer_valued_real_p): Move from fold-const.c and rework
11029 to call the functions above. Handle SSA names.
11030 * gimple-fold.h (gimple_stmt_integer_valued_real_p): Declare.
11031 * gimple-fold.c (gimple_assign_integer_valued_real_p)
11032 (gimple_call_integer_valued_real_p, gimple_phi_integer_valued_real_p)
11033 (gimple_stmt_integer_valued_real_p): New functions.
11034 * match.pd: Fold f(f(x))->f(x) for fp->fp rounding functions f.
11035 Fold f(x)->x for the same f if x is known to be integer-valued.
11036 Fold f(extend(x))->extend(f'(x)) if doing so doesn't affect
11037 the result. Canonicalize floor(x) as trunc(x) if x is
11040 2015-10-23 Tom de Vries <tom@codesourcery.com>
11042 * tree-ssa-structalias.c (intra_create_variable_infos): Use
11043 make_constraint_from.
11045 2015-10-23 Tom de Vries <tom@codesourcery.com>
11047 * tree-ssa-structalias.c (create_variable_info_for_1): Add missing
11048 setting of is_full_var in case of a single field.
11050 2015-10-22 Martin Sebor <msebor@redhat.com>
11053 * config/i386/i386.opt: Add missing periods to the ends of sentences.
11054 * config/msp430/msp430.opt: Same.
11056 2015-10-21 David Wohlferd <dw@LimeGreenSocks.com>
11058 * doc/extend.exp (Global Register Variables): Rewrite.
11060 2015-10-22 Jeff Law <law@redhat.com>
11062 * genattrtab.c (main): If we do not have any annul-true or annul-false
11063 slots, then write out a dummy eligible_for_annul_true or
11064 eligible_for_annul_false as needed.
11066 2015-10-22 Nick Clifton <nickc@redhat.com>
11068 * config/msp430/msp430.opt: Add -msilicon-errata and
11069 -msilicon-errata-warn.
11070 * config/msp430/msp430.h (ASM_SPEC): Pass new options on to
11072 * doc/invoke.texi: Document new options.
11074 2015-10-22 Richard Biener <rguenther@suse.de>
11076 PR tree-optimization/58497
11077 * tree-vect-generic.c (ssa_uniform_vector_p): New helper.
11078 (expand_vector_operations_1): Use it. Lower operations on
11079 all uniform vectors to scalar operations if the HW supports it.
11081 2015-10-22 Richard Biener <rguenther@suse.de>
11083 PR tree-optimization/19049
11084 PR tree-optimization/65962
11085 * tree-vect-data-refs.c (vect_analyze_group_access_1): Fall back
11086 to strided accesses if single-element interleaving doesn't work.
11088 2015-10-22 Richard Biener <rguenther@suse.de>
11090 PR middle-end/68046
11091 PR middle-end/61893
11092 * optabs.c (emit_libcall_block_1): Allow a NULL_RTX equiv.
11093 (expand_binop): For -ftrapv optabs do not record an REG_EQUAL note.
11094 (expand_unop): Likewise.
11096 2015-10-22 Richard Biener <rguenther@suse.de>
11098 * fold-const.c (fold_addr_of_array_ref_difference): Properly
11099 convert operands before folding a MINUS_EXPR.
11100 (fold_binary_loc): Move simplification of MINUS_EXPR on
11101 converted POINTER_PLUS_EXPRs ...
11102 * match.pd: ... here.
11104 2015-10-22 Richard Sandiford <richard.sandiford@arm.com>
11106 * builtins.c (fold_builtin_tan): Delete.
11107 (fold_builtin_1): Handle constant tan arguments here.
11108 * match.pd: Simplify (tan (atan x)) to x.
11110 2015-10-22 Richard Sandiford <richard.sandiford@arm.com>
11112 * builtins.c (fold_builtin_cproj): Delete.
11113 (fold_builtin_1): Handle constant arguments here.
11114 (build_complex_cproj): Move and rename to...
11115 * tree.c: (build_complex_inf): ...this.
11116 * tree.h (build_complex_inf): Declare.
11117 * match.pd: Fold cproj(x)->x if x has no infinity.
11118 Use build_complex_inf for existing cproj rules.
11120 2015-10-22 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
11123 * config/s390/s390.md (mov<mode>cc): Emit compare only if we don't
11124 already have a comparison result.
11126 2015-10-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
11129 * config/aarch64/aarch64.c (aarch64_nopcrelative_literal_loads): New.
11130 (aarch64_expand_mov_immediate): Use aarch64_nopcrelative_literal_loads.
11131 (aarch64_classify_address): Likewise.
11132 (aarch64_secondary_reload): Likewise.
11133 (aarch64_override_options_after_change_1): Adjust.
11134 * config/aarch64/aarch64.md (aarch64_reload_movcp<GPF_TF:mode><P:mode>):
11135 Use aarch64_nopcrelative_literal_loads.
11136 (aarch64_reload_movcp<VALL:mode><P:mode>): Likewise.
11137 * config/aarch64/aarch64-protos.h (aarch64_nopcrelative_literal_loads):
11140 2015-10-21 Martin Sebor <msebor@redhat.com>
11143 * opts.c (undocumented_msg, use_diagnosed_msg): New globals.
11144 (print_filtered_help): Reference aliased option's name and encourage
11145 readers to use it in preference to the alias if the former is not
11146 documented. Mention when using an option is diagnosed.
11147 * gcc.c (display_help): End each sentence with a period.
11149 * common.opt: End each sentence that describes an option with
11151 * config/aarch64/aarch64.opt: Same.
11152 * config/alpha/alpha.opt: Same.
11153 * config/arc/arc.opt: Same.
11154 * config/arm/arm.opt: Same.
11155 * config/avr/avr.opt: Same.
11156 * config/bfin/bfin.opt: Same.
11157 * config/c6x/c6x.opt: Same.
11158 * config/cr16/cr16.opt: Same.
11159 * config/cris/cris.opt: Same.
11160 * config/cris/linux.opt: Same.
11161 * config/darwin.opt: Same.
11162 * config/epiphany/epiphany.opt: Same.
11163 * config/fr30/fr30.opt: Same.
11164 * config/frv/frv.opt: Same.
11165 * config/ft32/ft32.opt: Same.
11166 * config/g.opt: Same.
11167 * config/h8300/h8300.opt: Same.
11168 * config/i386/cygming.opt: Same.
11169 * config/i386/djgpp.opt: Same.
11170 * config/i386/i386.opt: Same.
11171 * config/i386/interix.opt: Same.
11172 * config/i386/mingw-w64.opt: Same.
11173 * config/i386/mingw.opt: Same.
11174 * config/ia64/ia64.opt: Same.
11175 * config/ia64/ilp32.opt: Same.
11176 * config/iq2000/iq2000.opt: Same.
11177 * config/linux.opt: Same.
11178 * config/lm32/lm32.opt: Same.
11179 * config/lynx.opt: Same.
11180 * config/m32c/m32c.opt: Same.
11181 * config/m32r/m32r.opt: Same.
11182 * config/m68k/ieee.opt: Same.
11183 * config/m68k/m68k.opt: Same.
11184 * config/mcore/mcore.opt: Same.
11185 * config/mep/mep.opt: Same.
11186 * config/microblaze/microblaze.opt: Same.
11187 * config/mips/mips.opt: Same.
11188 * config/mmix/mmix.opt: Same.
11189 * config/mn10300/mn10300.opt: Same.
11190 * config/moxie/moxie.opt: Same.
11191 * config/msp430/msp430.opt: Same.
11192 * config/nios2/elf.opt: Same.
11193 * config/nios2/nios2.opt: Same.
11194 * config/nvptx/nvptx.opt: Same.
11195 * config/pa/pa-hpux.opt: Same.
11196 * config/pa/pa-hpux1010.opt: Same.
11197 * config/pa/pa-hpux1111.opt: Same.
11198 * config/pa/pa-hpux1131.opt: Same.
11199 * config/pa/pa.opt: Same.
11200 * config/pa/pa64-hpux.opt: Same.
11201 * config/pdp11/pdp11.opt: Same.
11202 * config/rl78/rl78.opt: Same.
11203 * config/rs6000/476.opt: Same.
11204 * config/rs6000/aix64.opt: Same.
11205 * config/rs6000/darwin.opt: Same.
11206 * config/rs6000/linux64.opt: Same.
11207 * config/rs6000/rs6000.opt: Same.
11208 * config/rs6000/sysv4.opt: Same.
11209 * config/s390/s390.opt: Same.
11210 * config/s390/tpf.opt: Same.
11211 * config/sh/sh.opt: Same.
11212 * config/sol2.opt: Same.
11213 * config/sparc/long-double-switch.opt: Same.
11214 * config/sparc/sparc.opt: Same.
11215 * config/spu/spu.opt: Same.
11216 * config/stormy16/stormy16.opt: Same.
11217 * config/tilegx/tilegx.opt: Same.
11218 * config/tilepro/tilepro.opt: Same.
11219 * config/v850/v850.opt: Same.
11220 * config/vax/vax.opt: Same.
11221 * config/visium/visium.opt: Same.
11222 * config/vms/vms.opt: Same.
11223 * config/vxworks.opt: Same.
11224 * config/xtensa/xtensa.opt: Same.
11226 2015-10-21 Aditya Kumar <aditya.k7@samsung.com>
11227 Sebastian Pop <s.pop@samsung.com>
11229 * graphite-scop-detection.c (parameter_index_in_region): Update call to
11230 invariant_in_sese_p_rec.
11231 * graphite-sese-to-poly.c (extract_affine): Same.
11232 * sese.c (invariant_in_sese_p_rec): Pass in an extra
11233 parameter has_vdefs.
11234 (scalar_evolution_in_region): Return chrec_dont_know when the scalar
11235 variable depends on virtual definitions in the current region.
11236 * sese.h (invariant_in_sese_p_rec): Update declaration.
11238 2015-10-21 Aditya Kumar <aditya.k7@samsung.com>
11239 Sebastian Pop <s.pop@samsung.com>
11241 * graphite-scop-detection.c (build_scops): Do not handle scops
11242 with more than PARAM_GRAPHITE_MAX_ARRAYS_PER_SCOP arrays.
11243 * params.def (PARAM_GRAPHITE_MAX_ARRAYS_PER_SCOP): New.
11245 2015-10-21 Mikhail Maltsev <maltsevm@gmail.com>
11247 * config.in: Regenerate.
11248 * configure: Regenerate.
11249 * configure.ac (CHECKING_P): Define.
11250 * system.h: Use CHECKING_P.
11252 2015-10-11 Jan Hubicka <hubicka@ucw.cz>
11255 * ipa-polymorphic-call.c (possible_placement_new): If cur_offset
11256 is negative we don't know the type.
11257 (check_stmt_for_type_change): Skip constructors of non-polymorphic
11258 types as those won't help devirutalization.
11260 2015-10-11 Jan Hubicka <hubicka@ucw.cz>
11262 * fold-const.c (operand_equal_p): Add code matching empty constructors.
11264 2015-10-21 Eric Botcazou <ebotcazou@adacore.com>
11266 * tree.def (CEIL_DIV_EXPR, FLOOR_DIV_EXPR, ROUND_DIV_EXPR): Tweak
11268 (TRUNC_MOD_EXPR, CEIL_MOD_EXPR, FLOOR_MOD_EXPR, ROUND_MOD_EXPR):
11269 Add comments on sign of the result.
11270 * fold-const.c (tree_binary_nonnegative_warnv_p) <FLOOR_MOD_EXPR>:
11271 Recurse on operand #1 instead of operand #0.
11272 <CEIL_MOD_EXPR>: Do not recurse.
11273 <ROUND_MOD_EXPR>: Likewise.
11275 2015-10-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
11277 * cfgrtl.c (pass_free_cfg::execute): Adjust.
11278 * final.c (dbr_sequence_length): Always define.
11279 (shorten_branches): Adjust.
11280 * genattr-common.c (main): Always define DELAY_SLOTS.
11281 * genattr.c (main): Unconditionally declare functions and define
11282 macros related to delay slots.
11283 * genattrtab.c (write_eligible_delay): Adjust.
11284 (main): Always write out delay slot functions.
11285 * opts.c (default_options_table): Adjust.
11286 * reorg.c (redirect_with_delay_slots_safe_p): Likewise.
11287 (redirect_with_delay_list_safe_p): Likewise.
11288 (fill_simple_delay_slots): Likewise.
11289 (fill_slots_from_thread): Likewise.
11290 (make_return_insns): Likewise.
11291 (dbr_schedule): Likewise.
11292 (rest_of_handle_delay_slots): Likewise.
11293 (pass_delay_slots::gate): Likewise.
11294 * toplev.c (process_options): Likewise.
11296 2015-10-21 Richard Henderson <rth@redhat.com>
11298 * targhooks.c (default_addr_space_pointer_mode): Remove check
11299 for generic address space.
11300 (default_addr_space_address_mode): Likewise.
11301 (default_addr_space_valid_pointer_mode): Likewise.
11302 (default_addr_space_legitimate_address_p): Likewise.
11303 (default_addr_space_legitimize_address): Likewise.
11304 * target.def (addr_space.pointer_mode): Update documentation
11305 of default behavior.
11306 (addr_space.address_mode): Likewise.
11309 * expr.c (expand_expr_real_2): Use convert_modes on disjoint
11312 2015-10-21 Richard Sandiford <richard.sandiford@arm.com>
11314 * builtins.c (fold_builtin_cabs): Delete.
11315 (fold_builtin_1): Update accordingly. Handle constant arguments here.
11316 * match.pd: Add rules previously handled by fold_builtin_cabs.
11318 2015-10-21 Richard Sandiford <richard.sandiford@arm.com>
11320 * fold-const.h (fold_strip_sign_ops): Delete.
11321 * fold-const.c (fold_strip_sign_ops): Likewise.
11322 (fold_unary_loc, fold_binary_loc): Remove calls to it.
11323 * builtins.c (fold_builtin_cos, fold_builtin_cosh)
11324 (fold_builtin_ccos): Delete.
11325 (fold_builtin_pow): Don't call fold_strip_sign_ops.
11326 (fold_builtin_hypot, fold_builtin_copysign): Likewise.
11327 Remove fndecl argument.
11328 (fold_builtin_1): Update calls accordingly. Handle constant
11329 cos, cosh, ccos and ccosh here.
11331 2015-10-21 Richard Sandiford <richard.sandiford@arm.com>
11333 * doc/invoke.texi (-fdump-tree-backprop, -fssa-backprop): Document.
11334 * Makefile.in (OBJS): Add gimple-ssa-backprop.o.
11335 * common.opt (fssa-backprop): New option.
11336 * fold-const.h (negate_mathfn_p): Declare.
11337 * fold-const.c (negate_mathfn_p): Make public.
11338 * timevar.def (TV_TREE_BACKPROP): New.
11339 * tree-pass.h (make_pass_backprop): Declare.
11340 * passes.def (pass_backprop): Add.
11341 * gimple-ssa-backprop.c: New file.
11343 2015-10-21 Aditya Kumar <aditya.k7@samsung.com>
11344 Sebastian Pop <s.pop@samsung.com>
11346 * graphite-isl-ast-to-gimple.c (graphite_create_new_loop_guard):
11347 Do not call create_empty_if_region_on_edge when cond_expr is true.
11348 (translate_isl_ast_node_for): Check whether a guard has been generated.
11350 2015-10-21 Aditya Kumar <aditya.k7@samsung.com>
11352 * graphite-poly.h (struct dr_info): Added invalid_alias_set number.
11353 (operator=): Removed.
11354 (dr_info): Make alias_set number the last argument with default
11355 value of invalid_alias_set.
11356 * graphite-sese-to-poly.c (build_scop_drs): Update constructor
11358 (rewrite_reductions_out_of_ssa): Iterate only through the
11359 basic blocks which are inside region.
11360 (rewrite_cross_bb_scalar_deps_out_of_ssa): Same.
11361 * sese.h (struct sese_l): Removed assignment operator.
11362 (split_region_for_bb): Removed dead code.
11364 2015-10-21 Aditya Kumar <aditya.k7@samsung.com>
11366 * graphite-poly.h (struct dr_info): Removed conversion constructor.
11367 (struct scop): Renamed scop::region to scop::scop_info
11368 (scop_set_region): Same.
11369 (SCOP_REGION): Removed
11370 (SCOP_CONTEXT): Removed.
11371 (POLY_SCOP_P): Removed.
11372 * graphite-isl-ast-to-gimple.c (translate_isl_ast_node_user):
11373 Rename scop->region to scop->scop_info.
11374 (add_parameters_to_ivs_params): Same.
11375 (graphite_regenerate_ast_isl): Same.
11376 * graphite-poly.c (new_scop): Same.
11378 (print_scop_params): Same.
11379 * graphite-scop-detection.c (scop_detection::remove_subscops): Same.
11380 (scop_detection::remove_intersecting_scops): Use pointer to sese_l.
11381 (dot_all_scops_1): Rename scop->region to scop->scop_info.
11382 (scop_detection::nb_pbbs_in_loops): Same.
11383 (find_scop_parameters): Same.
11384 (try_generate_gimple_bb): Same.
11385 (gather_bbs::before_dom_children): Same.
11386 (gather_bbs::after_dom_children): Same.
11387 (build_scops): Same.
11388 * graphite-sese-to-poly.c (build_scop_scattering): Same.
11389 (extract_affine_chrec): Same.
11390 (extract_affine): Same.
11391 (set_scop_parameter_dim): Same.
11392 (build_loop_iteration_domains): Same.
11393 (create_pw_aff_from_tree): Same.
11394 (add_param_constraints): Same.
11395 (build_scop_iteration_domain): Same.
11396 (build_scop_drs): Same.
11397 (analyze_drs_in_stmts): Same.
11398 (insert_out_of_ssa_copy_on_edge): Same.
11399 (rewrite_close_phi_out_of_ssa):Same.
11400 (rewrite_reductions_out_of_ssa):Same.
11401 (handle_scalar_deps_crossing_scop_limits):Same.
11402 (rewrite_cross_bb_scalar_deps):Same.
11403 (rewrite_cross_bb_scalar_deps_out_of_ssa):Same.
11404 (build_poly_scop):Same.
11405 (build_alias_set): Use pointer to dr_info.
11406 * graphite.c (print_graphite_scop_statistics):
11407 (graphite_transform_loops):
11408 * sese.h (struct sese_l): Remove conversion constructor.
11410 2015-10-11 Jan Hubicka <hubicka@ucw.cz>
11412 PR middle-end/67966
11413 * tree.c (verify_type): Verify that TYPE_MODE match
11414 between TYPE_CANONICAL and type.
11415 * expr.c (store_expr_with_bounds): Revert my previous change.
11416 * expmed.c (store_bit_field_1): Revert prevoius change.
11417 * gimple-expr.c (useless_type_conversion_p): Require TYPE_MODE
11418 to match for all types.
11420 2015-10-21 Nathan Sidwell <nathan@codesourcery.com>
11422 * omp-low.c (check_omp_nesting_restrictions): Check OpenACC loop
11425 2015-10-21 Ilya Enkovich <enkovich.gnu@gmail.com>
11427 * doc/tm.texi: Regenerated.
11428 * doc/tm.texi.in (TARGET_VECTORIZE_GET_MASK_MODE): New.
11429 * stor-layout.c (layout_type): Use mode to get vector mask size.
11430 * target.def (get_mask_mode): New.
11431 * targhooks.c (default_get_mask_mode): New.
11432 * targhooks.h (default_get_mask_mode): New.
11433 * tree-vect-stmts.c (get_same_sized_vectype): Add special case
11434 for boolean vector.
11435 * tree.c (MAX_BOOL_CACHED_PREC): New.
11436 (nonstandard_boolean_type_cache): New.
11437 (build_nonstandard_boolean_type): New.
11438 (make_vector_type): Vector mask has no canonical type.
11439 (build_truth_vector_type): New.
11440 (build_same_sized_truth_vector_type): New.
11441 (truth_type_for): Support vector masks.
11442 * tree.h (VECTOR_BOOLEAN_TYPE_P): New.
11443 (build_truth_vector_type): New.
11444 (build_same_sized_truth_vector_type): New.
11445 (build_nonstandard_boolean_type): New.
11446 * tree-cfg.c (verify_gimple_comparison) Require boolean
11447 vector type for vector comparison.
11448 (verify_gimple_assign_ternary): Likewise.
11449 * optabs.c (expand_vec_cond_expr): Accept boolean vector as
11451 * tree-vect-stmts.c (vectorizable_condition): Use boolean
11452 vector type for vector comparison.
11453 * tree-vect-generic.c (elem_op_func): Add new operand to hold
11455 (do_unop): Adjust to modified function type.
11456 (do_binop): Likewise.
11457 (do_plus_minus): Likewise.
11458 (do_negate); Likewise.
11459 (expand_vector_piecewise): Likewise.
11460 (do_cond): Likewise.
11461 (do_compare): Use comparison instead of condition.
11462 (expand_vector_divmod): Use boolean vector type for comparison.
11463 (expand_vector_operations_1): Skip scalar mask operations.
11465 2015-10-21 Ilya Enkovich <enkovich.gnu@gmail.com>
11467 * omp-low.c (simd_clone_create): Set in_other_partition
11468 for created clones.
11470 2015-10-21 David Wohlferd <dw@LimeGreenSocks.com>
11472 * doc/extend.exp (Local Register Variables): Rewrite.
11474 2015-10-21 Richard Sandiford <richard.sandiford@arm.com>
11476 * match.pd: Add rules to simplify ccos, ccosh, hypot, copysign
11477 and x*x in cases where the operands are sign ops. Extend these
11478 rules to handle copysign as a sign op (including for cos, cosh
11479 and pow, which already treated negate and abs as sign ops).
11481 2015-10-21 Uros Bizjak <ubizjak@gmail.com>
11484 * config/i386/i386.c (ix86_compute_frame_layout): Realign the stack
11485 for 64-bit MS_ABI targets also when default incoming stack boundary
11488 2015-10-21 Richard Biener <rguenther@suse.de>
11490 * tree-ssa-sccvn.c (cond_stmts_equal_p): Compare two GIMPLE
11491 cond stmts, enhanced and split out from ...
11492 (vn_phi_eq): ... here.
11494 2015-10-21 Richard Biener <rguenther@suse.de>
11496 PR middle-end/68031
11497 * fold-const.c: Include tree-ssa-operands.h and tree-into-ssa.h.
11498 (tree_ssa_name_nonnegative_warnv_p): Fold into ...
11499 (tree_single_nonnegative_warnv_p): ... here. For SSA names
11500 make sure they are not registered for update.
11502 2015-10-21 Richard Biener <rguenther@suse.de>
11504 PR tree-optimization/68026
11505 * tree-ssa-ccp.c (get_value_for_expr): Zero-extend mask for
11506 unsigned VARYING values.
11508 2015-10-21 Maxim Ostapenko <m.ostapenko@partner.samsung.com>
11510 * asan.c (asan_emit_stack_protection): Don't pass local stack to
11511 asan_stack_malloc_[n] anymore. Check if asan_stack_malloc_[n] returned
11512 NULL and use local stack than.
11513 (asan_finish_file): Insert __asan_version_mismatch_check_v[n] call
11514 in addition to __asan_init.
11515 * sanitizer.def (BUILT_IN_ASAN_INIT): Rename to __asan_init.
11516 (BUILT_IN_ASAN_VERSION_MISMATCH_CHECK): Add new builtin call.
11517 * asan.h (asan_intercepted_p): Handle new string builtins.
11518 * ubsan.c (ubsan_use_new_style_p): New function.
11519 (ubsan_instrument_float_cast): If location is unknown, assign
11520 input_location to loc. Propagate loc to ubsan_create_data if
11521 ubsan_use_new_style_p returned true.
11523 2015-10-21 Jeff Law <law@redhat.com>
11525 * Makefile.in (OBJS): Remove sched-vis.c
11526 * sched-vis.c: Removed. Code moved into...
11527 * print-rtl.c: Here. Include cfg.h, pretty-print.h and print-rtl.h.
11528 * rtl.h: Remove prototypes for functions now living in print-rtl.c
11529 * print-rtl.h Add prototypes for new functions in print-rtl.c.
11530 * auto-inc-dec.c: Include print-rtl.h
11531 * cfgrtl.c, combine.c, final.c haifa-sched.c: Likewise.
11532 * ira.c, lra-constraints.c, lra.c, sel-sched-dump.c: Likewise.
11534 * varasm.c (handle_vtv_comdat_section): Mark 2nd parameter with
11537 2015-10-21 Richard Biener <rguenther@suse.de>
11538 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
11540 * fold-const.c (fold_binary_loc) : Move (-A) * (-B) -> A * B
11542 * doc/implement-c.texi (Integers Implementation): Make GCC's promises
11543 about signed left shift stronger and clarify the cases when they're
11545 Move (a * (1 << b)) is (a << b) to match.pd.
11546 Move convert (C1/X)*C2 into (C1*C2)/X to match.pd.
11547 Move ~X & X, (X == 0) & X, and !X & X are zero to match.pd.
11548 Move X & ~X , X & (X == 0), and X & !X are zero to match.pd.
11550 * match.pd (mult:c @0 (convert? (lshift integer_onep@1 @2))):
11552 (mult (rdiv:s REAL_CST@0 @1) REAL_CST@2): New simplifier.
11553 (bit_and:c (convert? @0) (convert? (bit_not @0))): New simplifier.
11554 (bit_ior (bit_and:s @0 (bit_not:s @1)) (bit_and:s (bit_not:s @0) @1))
11556 (mult:c (convert1? (negate @0)) (convert2? negate_expr_p@1)):
11558 (match (logical_inverted_value @0) (truth_not @0)) : New Predicate.
11560 2015-10-21 Gregor Richards <gregor.richards@uwaterloo.ca>
11561 Szabolcs Nagy <szabolcs.nagy@arm.com>
11562 Alan Modra <amodra@gmail.com>
11564 * config/rs6000/secureplt.h (LINK_SECURE_PLT_DEFAULT_SPEC): Define.
11565 * config/rs6000/sysv4.h (LINK_SECURE_PLT_SPEC): Define.
11566 (LINK_SPEC): Add %(link_secure_plt).
11567 (SUBTARGET_EXTRA_SPECS): Add "link_secure_plt".
11568 * config/rs6000/linux64.h (LINK_SECURE_PLT_SPEC): Redefine.
11570 2015-10-20 Gregor Richards <gregor.richards@uwaterloo.ca>
11571 Szabolcs Nagy <szabolcs.nagy@arm.com>
11573 * config/sh/linux.h (MUSL_DYNAMIC_LINKER): Define.
11574 (MUSL_DYNAMIC_LINKER_E, MUSL_DYNAMIC_LINKER_FP): Define.
11576 2015-10-20 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
11578 * config/aarch64/aarch64.c (aarch64_mode_valid_for_sched_fusion_p):
11580 (fusion_load_store): Use it.
11581 * config/aarch64/aarch64-ldpstp.md: Add new peephole2s for
11582 ldp and stp in VD modes.
11583 * config/aarch64/aarch64-simd.md (load_pair<mode>, VD): New pattern.
11584 (store_pair<mode>, VD): Likewise.
11586 2015-10-20 Vladimir Makarov <vmakarov@redhat.com>
11588 PR rtl-optimization/67609
11589 * lra-splill.c (lra_final_code_change): Don't remove all
11592 2015-10-20 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
11594 * simplify-rtx.c (simplify_binary_operation): If either operand was
11595 a constant pool reference use them if all other simplifications failed.
11597 2015-10-20 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
11599 * config/aarch64/aarch64.md
11600 (*aarch64_fcvt<su_optab><GPF:mode><GPI:mode>2_mult): New pattern.
11601 * config/aarch64/aarch64-simd.md
11602 (*aarch64_fcvt<su_optab><VDQF:mode><fcvt_target>2_mult): Likewise.
11603 * config/aarch64/aarch64.c (aarch64_rtx_costs): Handle above patterns.
11604 (aarch64_fpconst_pow_of_2): New function.
11605 (aarch64_vec_fpconst_pow_of_2): Likewise.
11606 * config/aarch64/aarch64-protos.h (aarch64_fpconst_pow_of_2): Declare
11608 (aarch64_vec_fpconst_pow_of_2): Likewise.
11609 * config/aarch64/predicates.md (aarch64_fp_pow2): New predicate.
11610 (aarch64_fp_vec_pow2): Likewise.
11612 2015-10-20 Uros Bizjak <ubizjak@gmail.com>
11614 * config/alpha/alpha.h (HARD_REGNO_NREGS): Use CEIL macro.
11615 (ALPHA_ARG_SIZE): Ditto. Remove unused NAMED argument.
11616 * config/alpha/alpha.c (alpha_function_arg_advance): Update
11617 ALPHA_ARG_SIZE usage.
11618 (alpha_arg_partial_bytes): Ditto.
11620 2015-10-20 H.J. Lu <hongjiu.lu@intel.com>
11623 * cgraphbuild.c (pass_build_cgraph_edges::execute): Skip local
11624 error_mark_node decls.
11626 2015-10-20 H.J. Lu <hongjiu.lu@intel.com>
11630 * common/config/i386/i386-common.c (ix86_handle_option): Remove
11631 OPT_miamcu handling.
11632 * config/i386/i386.c (PTA_NO_80387): New macro.
11633 (processor_alias_table): Add PTA_NO_80387 to lakemont.
11634 (ix86_option_override_internal): Update MASK_80387 from
11635 PTA_NO_80387. Don't warn x87/MMX/SSE/AVX for -miamcu. Warn
11636 SSE math only if 80387 is supported. Don't change
11637 MASK_FLOAT_RETURNS.
11638 (ix86_valid_target_attribute_tree): Enable FPMATH_387 only if
11639 80387 is supported.
11640 * config/i386/i386.h (TARGET_FLOAT_RETURNS_IN_80387): True only
11641 if TARGET_80387 is true and TARGET_IAMCU is false.
11642 (TARGET_FLOAT_RETURNS_IN_80387_P): True only if TARGET_80387_P
11643 is true and TARGET_IAMCU_P is false.
11645 2015-10-20 Richard Biener <rguenther@suse.de>
11647 PR tree-optimization/68017
11648 * tree-tailcall.c (eliminate_tail_call): Remove stmts backwards.
11650 2015-10-20 Martin Liska <mliska@suse.cz>
11652 * cgraphclones.c (cgraph_node::create_virtual_clone):
11653 Verify cgraph_node.local.versionable instead of calling
11654 tree_versionable_function_p.
11655 * ipa-cp.c (determine_versionability): Save the information
11656 to ipa_node_params summary.
11657 (ipcp_versionable_function_p): Use it.
11658 (ipcp_propagate_stage): Pass IPA_NODE_REF to a called function.
11659 (ipcp_generate_summary): Do not compute cgraph_node
11661 * ipa-inline-analysis.c (inline_generate_summary): Compute
11662 versionability for all cgraph nodes.
11663 * ipa-prop.c (ipa_node_params_t::duplicate): Duplicate
11664 ipa_node_params::versionability.
11665 * ipa-prop.h (struct ipa_node_params): Declare it.
11667 2015-10-20 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
11670 * varasm.c (assemble_variable): Move special vtv handling to..
11671 (handle_vtv_comdat_sections): .. here. New function.
11672 (output_object_block): Handle vtv sections.
11674 2015-10-20 Szabolcs Nagy <szabolcs.nagy@arm.com>
11677 * varasm.c (default_binds_local_p_2): Turn on extern_protected_data.
11679 2015-10-20 Arkadiusz Drabczyk <arkadiusz@drabczyk.org>
11681 * doc/extend.texi: Update documentation WRT inline functions.
11683 2015-10-20 Alan Modra <amodra@gmail.com>
11686 * config/rs6000/sysv4.h (TARGET_CAN_SPLIT_STACK_64BIT): Don't define.
11687 * config/rs6000/linux64.h (TARGET_CAN_SPLIT_STACK): Define.
11688 (TARGET_CAN_SPLIT_STACK_64BIT): Define.
11690 2015-10-19 Pierre-Marie de Rodat <derodat@adacore.com>
11692 PR rtl-optimization/66790
11693 * df.h (DF_MIR): New macro.
11694 (DF_LAST_PROBLEM_PLUS1): Update to be past DF_MIR
11695 (DF_MIR_INFO_BB): New macro.
11696 (DF_MIR_IN, DF_MIR_OUT): New macros.
11697 (struct df_mir_bb_info): New.
11698 (df_mir): New macro.
11699 (df_mir_add_problem, df_mir_simulate_one_insn): New forward
11701 (df_mir_get_bb_info): New.
11702 * df-problems.c (struct df_mir_problem_data): New.
11703 (df_mir_free_bb_info, df_mir_alloc, df_mir_reset,
11704 df_mir_bb_local_compute, df_mir_local_compute, df_mir_init,
11705 df_mir_confluence_0, df_mir_confluence_n,
11706 df_mir_transfer_function, df_mir_free, df_mir_top_dump,
11707 df_mir_bottom_dump, df_mir_verify_solution_start,
11708 df_mir_verify_solution_end): New.
11709 (problem_MIR): New.
11710 (df_mir_add_problem, df_mir_simulate_one_insn): New.
11711 * timevar.def (TV_DF_MIR): New.
11712 * ree.c: Include bitmap.h
11713 (add_removable_extension): Add an INIT_REGS parameter. Use it
11714 to skip zero-extensions that may get an uninitialized register.
11715 (find_removable_extensions): Compute must-initialized registers
11716 using the MIR dataflow problem. Update the call to
11717 add_removable_extension.
11718 (find_and_remove_re): Call df_mir_add_problem.
11720 2015-10-19 Segher Boessenkool <segher@kernel.crashing.org>
11722 * common/config/mn10300/mn10300-common.c
11723 (mn10300_option_optimization_table) <OPT_freorder_blocks_algorithm_>:
11724 Use REORDER_BLOCKS_ALGORITHM_STC at -Os and up.
11726 2015-10-19 David Wohlferd <dw@LimeGreenSocks.com>
11728 * doc/extend.texi (Explicit Register Variables): Simplify and
11729 avoid unnecessary and confusion abbreviations. Update cross
11731 doc/implement-c.tex: Update cross reference.
11733 2015-10-19 Jeff Law <law@redhat.com>
11735 * tree-ssa-threadupdate.c (valid_jump_thread_path): Reject paths
11736 that create irreducible loops unless the path elimiantes a multiway
11739 2015-10-19 Richard Biener <rguenther@suse.de>
11741 PR tree-optimization/67975
11742 * tree-cfg.h (extract_true_false_controlled_edges): Declare.
11743 * tree-cfg.c (extract_true_false_controlled_edges): Split out
11744 core worker from ...
11745 * tree-ssa-loop-im.c (extract_true_false_args_from_phi): ... here.
11746 * tree-ssa-sccvn.c (vn_phi_compute_hash): Hash number of args
11747 instead of block number for PHIs with two or one args.
11748 (vn_phi_eq): Compare edge predicates of PHIs that are in different
11751 2015-10-19 Richard Biener <rguenther@suse.de>
11753 * gimple-fold.c (gimple_phi_nonnegative_warnv_p): New function.
11754 (gimple_stmt_nonnegative_warnv_p): Use it.
11755 * match.pd (CPROJ): New operator list.
11756 (cproj (complex ...)): Move simplifications from ...
11757 * builtins.c (fold_builtin_cproj): ... here.
11759 2015-10-19 H.J. Lu <hongjiu.lu@intel.com>
11761 * config/i386/i386.c (ix86_expand_vector_move): Use
11762 GET_MODE_BITSIZE for IA MCU psABI to get vector natural
11765 2015-10-19 H.J. Lu <hongjiu.lu@intel.com>
11767 * doc/invoke.texi: Replace @optindex with @opindex.
11769 2015-10-19 H.J. Lu <hongjiu.lu@intel.com>
11772 * config/i386/i386.c (ix86_valid_target_attribute_tree): If
11773 arch= is set, clear all bits in x_ix86_isa_flags, except for
11774 ISA_64BIT, ABI_64, ABI_X32, and CODE16.
11776 2015-10-19 Joost VandeVondele <vondele@gnu.gcc.org>
11778 PR middle-end/68002
11779 * common.opt (fkeep-static-functions): New option.
11780 * doc/invoke.texi: Document it.
11781 * cgraphunit.c (cgraph_node::finalize_function): Use it.
11783 2015-10-19 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
11785 * sched-int.h (struct autopref_multipass_data_): Remove offset
11786 field. Add min_offset, max_offset, multi_mem_insn_p fields.
11787 * haifa-sched.c (analyze_set_insn_for_autopref): New function.
11788 (autopref_multipass_init): Use it. Handle PARALLEL sets.
11789 (autopref_rank_data): New function.
11790 (autopref_rank_for_schedule): Use it.
11791 (autopref_multipass_dfa_lookahead_guard_1): Likewise.
11793 2015-10-18 Mikhail Maltsev <maltsevm@gmail.com>
11796 * gengtype.c (dump_type): Handle TYPE_UNDEFINED correctly.
11798 2015-10-18 Iain Sandoe <iain@codesourcery.com>
11800 * config/darwin.h (TARGET_SYSTEM_ROOT): Remove this from here,
11801 (HAVE_LD_SYSROOT): New. (SYSROOT_SPEC): New.
11802 (LINK_SYSROOT_SPEC): Revise to remove the default for target sysroot.
11803 (STANDARD_STARTFILE_PREFIX_1): New.
11804 (STANDARD_STARTFILE_PREFIX_2): New.
11806 2015-10-18 Iain Sandoe <iain@codesourcery.com>
11808 * config/darwin-driver.c (darwin_default_min_version): Refactor code.
11809 (darwin_driver_init): Note a version-min when provided on the c/l.
11810 * config/darwin.h (%darwin_minversion): Remove.
11811 * config/i386/darwin.h: Likewise.
11812 * config/rs6000/darwin.h: Likewise.
11813 * config/darwin.opt (mmacosx-version-min=): Use the configured default,
11814 rather than an arbitrary constant.
11816 2015-10-18 Iain Sandoe <iain@codesourcery.com>
11818 * config/darwin-driver.c (darwin_driver_init): Handle '-arch' for
11819 PPC, detect conflicts between -arch and multilib settings. Detect
11820 and warn about conflicts between multiple -arch definitions.
11822 2015-10-18 Iain Sandoe <iain@codesourcery.com>
11824 * config/darwin-driver.c: Adjust includes to add diagnostic-core.
11826 2015-10-16 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
11828 * lra-constraints.c (add_next_usage_insn): Change argument type
11829 from rtx to rtx_insn *.
11831 2015-10-16 H.J. Lu <hongjiu.lu@intel.com>
11833 * i386/x86-tune.def (X86_TUNE_ALWAYS_FANCY_MATH_387): Disable
11836 2015-10-16 Andrew MacLeod <amacleod@redhat.com>
11838 * config/tilepro/gen-mul-tables.cc: Adjust include files.
11839 * config/tilegx/mul-tables.c: Regenerate.
11840 * config/tilepro/mul-tables.c: Regenerate.
11842 * config/tilegx/tilegx-c.c: Adjust include files.
11843 * config/tilegx/tilegx.c: Likewise.
11844 * config/tilepro/tilepro-c.c: Likewise.
11845 * config/tilepro/tilepro.c: Likewise.
11846 * config/aarch64/aarch64-builtins.c: Likewise.
11847 * config/aarch64/aarch64.c: Likewise.
11848 * config/aarch64/cortex-a57-fma-steering.c: Likewise.
11849 * config/alpha/alpha.c: Likewise.
11850 * config/arc/arc.c: Likewise.
11851 * config/arm/aarch-common.c: Likewise.
11852 * config/arm/arm-builtins.c: Likewise.
11853 * config/arm/arm-c.c: Likewise.
11854 * config/arm/arm.c: Likewise.
11855 * config/avr/avr-c.c: Likewise.
11856 * config/avr/avr-devices.c: Likewise.
11857 * config/avr/avr-log.c: Likewise.
11858 * config/avr/avr.c: Likewise.
11859 * config/bfin/bfin.c: Likewise.
11860 * config/c6x/c6x.c: Likewise.
11861 * config/cr16/cr16.c: Likewise.
11862 * config/cris/cris.c: Likewise.
11863 * config/darwin-c.c: Likewise.
11864 * config/darwin-driver.c: Likewise.
11865 * config/darwin.c: Likewise.
11866 * config/default-c.c: Likewise.
11867 * config/epiphany/epiphany.c: Likewise.
11868 * config/epiphany/mode-switch-use.c: Likewise.
11869 * config/epiphany/resolve-sw-modes.c: Likewise.
11870 * config/fr30/fr30.c: Likewise.
11871 * config/frv/frv.c: Likewise.
11872 * config/ft32/ft32.c: Likewise.
11873 * config/glibc-c.c: Likewise.
11874 * config/h8300/h8300.c: Likewise.
11875 * config/i386/host-cygwin.c: Likewise.
11876 * config/i386/host-mingw32.c: Likewise.
11877 * config/i386/i386-c.c: Likewise.
11878 * config/i386/i386.c: Likewise.
11879 * config/i386/msformat-c.c: Likewise.
11880 * config/i386/winnt-cxx.c: Likewise.
11881 * config/i386/winnt-stubs.c: Likewise.
11882 * config/i386/winnt.c: Likewise.
11883 * config/ia64/ia64-c.c: Likewise.
11884 * config/ia64/ia64.c: Likewise.
11885 * config/iq2000/iq2000.c: Likewise.
11886 * config/lm32/lm32.c: Likewise.
11887 * config/m32c/m32c-pragma.c: Likewise.
11888 * config/m32c/m32c.c: Likewise.
11889 * config/m32r/m32r.c: Likewise.
11890 * config/mcore/mcore.c: Likewise.
11891 * config/mep/mep-pragma.c: Likewise.
11892 * config/mep/mep.c: Likewise.
11893 * config/microblaze/microblaze-c.c: Likewise.
11894 * config/microblaze/microblaze.c: Likewise.
11895 * config/mips/mips-tables.opt
11896 * config/mips/mips.c: Likewise.
11897 * config/mmix/mmix.c: Likewise.
11898 * config/mn10300/mn10300.c: Likewise.
11899 * config/moxie/moxie.c: Likewise.
11900 * config/msp430/msp430-c.c: Likewise.
11901 * config/msp430/msp430.c: Likewise.
11902 * config/nds32/nds32-cost.c: Likewise.
11903 * config/nds32/nds32-fp-as-gp.c: Likewise.
11904 * config/nds32/nds32-intrinsic.c: Likewise.
11905 * config/nds32/nds32-isr.c: Likewise.
11906 * config/nds32/nds32-md-auxiliary.c: Likewise.
11907 * config/nds32/nds32-memory-manipulation.c: Likewise.
11908 * config/nds32/nds32-pipelines-auxiliary.c: Likewise.
11909 * config/nds32/nds32-predicates.c: Likewise.
11910 * config/nds32/nds32.c: Likewise.
11911 * config/nios2/nios2.c: Likewise.
11912 * config/nvptx/mkoffload.c: Likewise.
11913 * config/nvptx/nvptx.c: Likewise.
11914 * config/pa/pa.c: Likewise.
11915 * config/pdp11/pdp11.c: Likewise.
11916 * config/rl78/rl78-c.c: Likewise.
11917 * config/rl78/rl78.c: Likewise.
11918 * config/rs6000/host-darwin.c: Likewise.
11919 * config/rs6000/rs6000-c.c: Likewise.
11920 * config/rs6000/rs6000-linux.c: Likewise.
11921 * config/rs6000/rs6000.c: Likewise.
11922 * config/rx/rx.c: Likewise.
11923 * config/s390/s390-c.c: Likewise.
11924 * config/s390/s390.c: Likewise.
11925 * config/sh/sh-c.c: Likewise.
11926 * config/sh/sh-mem.cc: Likewise.
11927 * config/sh/sh.c: Likewise.
11928 * config/sh/sh_optimize_sett_clrt.cc: Likewise.
11929 * config/sh/sh_treg_combine.cc: Likewise.
11930 * config/sol2-c.c: Likewise.
11931 * config/sol2-cxx.c: Likewise.
11932 * config/sol2-stubs.c: Likewise.
11933 * config/sol2.c: Likewise.
11934 * config/sparc/sparc-c.c: Likewise.
11935 * config/sparc/sparc.c: Likewise.
11936 * config/spu/spu-c.c: Likewise.
11937 * config/spu/spu.c: Likewise.
11938 * config/stormy16/stormy16.c: Likewise.
11939 * config/v850/v850-c.c: Likewise.
11940 * config/v850/v850.c: Likewise.
11941 * config/vax/vax.c: Likewise.
11942 * config/visium/visium.c: Likewise.
11943 * config/vms/vms-c.c: Likewise.
11944 * config/vms/vms.c: Likewise.
11945 * config/vxworks.c: Likewise.
11946 * config/winnt-c.c: Likewise.
11947 * config/xtensa/xtensa.c: Likewise.
11949 2015-10-16 Christian Bruel <christian.bruel@st.com>
11952 * config/arm/arm.h (FUNCTION_BOUNDARY): Use FUNCTION_BOUNDARY_P.
11953 (FUNCTION_BOUNDARY_P): New macro:
11954 * config/arm/arm.c (TARGET_RELAYOUT_FUNCTION, arm_relayout_function):
11956 * doc/tm.texi.in (TARGET_RELAYOUT_FUNCTION): Document.
11957 * doc/tm.texi (TARGET_RELAYOUT_FUNCTION): New hook.
11958 * target.def (TARGET_RELAYOUT_FUNCTION): Likewise.
11959 * function.c (allocate_struct_function): Call
11960 relayout_function hook.
11961 * passes.c (rest_of_decl_compilation): Likewise.
11963 2015-10-16 Christian Bruel <christian.bruel@st.com>
11966 * config/arm/arm.h (FUNCTION_BOUNDARY): Move optimize_size condition to:
11967 * config/arm/arm.c (arm_option_override_internal): Call
11968 arm_override_options_after_change_1.
11969 (arm_override_options_after_change): New function.
11970 (arm_override_options_after_change_1): Likewise.
11971 (TARGET_OVERRIDE_OPTIONS_AFTER_CHANGE): Define hook.
11973 2015-10-11 Jan Hubicka <hubicka@ucw.cz>
11976 * ipa-icf-gimple.c (func_checker::compare_operand): Compare only
11977 empty constructors.
11979 2015-10-16 Eric Botcazou <ebotcazou@adacore.com>
11981 * tree.c (recompute_tree_invariant_for_addr_expr): Assert that the
11982 argument is an ADDR_EXPR.
11984 2015-10-16 Richard Biener <rguenther@suse.de>
11986 * gimple-fold.c (gimple_fold_builtin_memory_op): Use gimple_build
11987 and get rid of force_gimple_operand_gsi.
11988 (gimple_fold_builtin_memory_chk): Likewise.
11989 (gimple_fold_builtin_stxcpy_chk): Likewise.
11990 (rewrite_to_defined_overflow): Likewise.
11991 (gimple_convert_to_ptrofftype): New function.
11992 * gimple-fold.h (gimple_convert_to_ptrofftype): New overload, declare.
11994 2015-10-16 Richard Biener <rguenther@suse.de>
11996 * tree-nested.h (build_addr): Adjust prototype.
11997 * tree-nested.c (build_addr): Remove context argument and use
11999 (get_static_chain): Adjust calls to build_addr.
12000 (convert_nl_goto_reference): Likewise.
12001 (convert_tramp_reference_op): Likewise.
12002 (finalize_nesting_tree_1): Likewise.
12003 * value-prof.c (gimple_ic): Likewise.
12004 * gimple-low.c (lower_builtin_setjmp): Likewise.
12005 * tree-parloops.c (take_address_of): Likewise.
12006 (create_call_for_reduction_1): Likewise.
12007 * tree-profile.c (gimple_gen_interval_profiler): Likewise.
12008 (gimple_gen_ic_func_profiler): Likewise.
12010 2015-10-11 Jan Hubicka <hubicka@ucw.cz>
12012 * ipa-icf-gimple.c (func_checker::compare_operand): Compare only
12013 empty constructors.
12015 2015-10-16 Michael Collison <michael.collison@linaro.org>
12016 Andrew Pinski <andrew.pinski@caviumnetworks.com>
12018 * match.pd ((x < y) && (x < z) -> x < min (y,z),
12019 (x > y) and (x > z) -> x > max (y,z))
12021 2015-10-15 Gregor Richards <gregor.richards@uwaterloo.ca>
12022 Szabolcs Nagy <szabolcs.nagy@arm.com>
12024 * config/microblaze/linux.h (MUSL_DYNAMIC_LINKER): Define.
12025 (DYNAMIC_LINKER): Renamed to ...
12026 (GLIBC_DYNAMIC_LINKER): This.
12027 (SUBTARGET_EXTRA_SPECS): Use GNU_USER_DYNAMIC_LINKER.
12029 2015-10-15 Marek Polacek <polacek@redhat.com>
12031 * tree-ssa-reassoc.c (attempt_builtin_copysign): Call
12032 gimple_call_builtin instead of is_gimple_call.
12034 2015-10-15 Richard Biener <rguenther@suse.de>
12036 * tree-vect-stmts.c (vect_init_vector): Remove unused vars.
12038 2015-10-15 Richard Biener <rguenther@suse.de>
12040 * tree-vectorizer.h (vect_get_new_ssa_name): Declare.
12041 * tree-vect-data-refs.c (vect_get_new_ssa_name): New helper.
12042 * tree-vect-loop.c (get_initial_def_for_induction): Drop
12043 use of force_gimple_operand in favor of gimple_build.
12044 Use vect_get_new_ssa_name.
12045 * tree-vect-stmts.c (vect_init_vector): Use vect_get_new_ssa_name.
12046 (vectorizable_mask_load_store): Likewise.
12047 (vectorizable_call): Likewise.
12048 (vectorizable_store): Likewise.
12049 (vectorizable_load): Likewise.
12050 (vect_get_vec_def_for_stmt_copy): Remove redundant stmt.
12052 2015-10-15 Richard Sandiford <richard.sandiford@arm.com>
12054 PR tree-optimization/67945
12055 * tree-pass.h (PROP_gimple_opt_math): New property flag.
12056 * generic-match-head.c (canonicalize_math_p): New function.
12057 * gimple-match-head.c: Include tree-pass.h.
12058 (canonicalize_math_p): New function.
12059 * match.pd: Group math built-in rules into simplifications
12060 and canonicalizations. Guard the latter with canonicalize_math_p.
12061 * tree-ssa-math-opts.c (pass_data_cse_sincos): Provide the
12062 PROP_gimple_opt_math property.
12064 2015-10-15 Marek Polacek <polacek@redhat.com>
12066 PR tree-optimization/67953
12067 * match.pd (X - (X / Y) * Y): Don't change signedness of @0.
12069 2015-10-15 Jiong Wang <jiong.wang@arm.com>
12071 * config.gcc: Recognize "." in architecture base name for AArch64.
12073 2015-10-14 Uros Bizjak <ubizjak@gmail.com>
12075 * config/mips/mips.h (MIPS_STACK_ALIGN): Implement using
12077 * config/mips/mips.c (mips_setup_incoming_varargs): Use
12078 ROUND_DOWN to calculate off.
12079 (mips_gimplify_va_arg_expr): Use ROUND_UP to calculate rsize.
12080 (mips_emit_probe_stack_range): Use ROUND_DOWN to calculate
12083 2015-10-14 Eric Botcazou <ebotcazou@adacore.com>
12085 * gimplify.c (gimplify_addr_expr) <MEM_REF>: New case.
12087 2015-10-14 Peter Bergner <bergner@vnet.ibm.com>
12088 Torvald Riegel <triegel@redhat.com>
12091 * config/rs6000/htm.md (UNSPEC_HTM_FENCE): New.
12092 (tabort, tabort<wd>c, tabort<wd>ci, tbegin, tcheck, tend,
12093 trechkpt, treclaim, tsr, ttest): Rename define_insns from this...
12094 (*tabort, *tabort<wd>c, *tabort<wd>ci, *tbegin, *tcheck, *tend,
12095 *trechkpt, *treclaim, *tsr, *ttest): ...to this. Add memory barrier.
12096 (tabort, tabort<wd>c, tabort<wd>ci, tbegin, tcheck, tend,
12097 trechkpt, treclaim, tsr, ttest): New define_expands.
12098 * config/rs6000/rs6000-c.c (rs6000_target_modify_macros): Define
12099 __TM_FENCE__ for htm.
12100 * doc/extend.texi: Update documentation for htm builtins.
12102 2015-10-14 Uros Bizjak <ubizjak@gmail.com>
12105 * config/i386/i386.c (ix86_emit_save_reg_using_mov): Do not add
12106 REG_CFA_EXPRESSION to aligned SSE stores.
12108 2015-10-14 Jeff Law <law@redhat.com>
12110 * tree-ssa-threadupdate.c (thread_through_all_blocks): Bump
12111 num_threaded_edges for successful FSM threads too.
12113 2015-10-14 Richard Biener <rguenther@suse.de>
12115 * tree-vectorizer.h (vect_is_simple_use): Remove unused parameters.
12116 (vect_is_simple_use_1): Likewise. Make overload of vect_is_simple_use.
12117 (vect_get_vec_def_for_operand): Remove unused parameter.
12118 * tree-vect-loop.c (get_initial_def_for_induction): Adjust.
12119 (vect_create_epilog_for_reduction): Likewise.
12120 (vectorizable_reduction): Likewise.
12121 (vectorizable_live_operation): Likewise.
12122 * tree-vect-patterns.c (type_conversion_p): Likewise.
12123 (vect_recog_vector_vector_shift_pattern): Likewise.
12124 (check_bool_pattern): Likewise.
12125 * tree-vect-slp.c (vect_get_and_check_slp_defs): Likewise.
12126 (vect_analyze_slp_cost_1): Likewise.
12127 * tree-vect-stmts.c (process_use): Likewise.
12128 (vect_get_vec_def_for_operand): Do not handle reductions.
12129 (vect_get_vec_defs): Adjust.
12130 (vectorizable_mask_load_store): Likewise.
12131 (vectorizable_call): Likewise.
12132 (vectorizable_simd_clone_call): Likewise.
12133 (vect_get_loop_based_defs): Likewise.
12134 (vectorizable_conversion): Likewise.
12135 (vectorizable_assignment): Likewise.
12136 (vectorizable_shift): Likewise.
12137 (vectorizable_operation): Likewise.
12138 (vectorizable_store): Likewise.
12139 (vectorizable_load): Likewise.
12140 (vect_is_simple_cond): Likewise.
12141 (vectorizable_condition): Likewise.
12142 (vect_is_simple_use): Remove unused parameters.
12143 (vect_is_simple_use_1): Adjust and rename.
12145 2015-10-14 Richard Biener <rguenther@suse.de>
12147 PR tree-optimization/67915
12148 * match.pd: Handle comparisons of addresses of STRING_CSTs.
12149 * gimplify.c (gimplify_cond_expr): Fold the GIMPLE conds we build.
12150 * tree-cfgcleanup.c (cleanup_control_expr_graph): Remove GENERIC
12151 stmt folding in favor of GIMPLE one.
12153 2015-10-14 Marek Polacek <polacek@redhat.com>
12155 PR tree-optimization/67815
12156 * tree-ssa-reassoc.c (attempt_builtin_copysign): New function.
12157 (reassociate_bb): Call it.
12159 2015-10-14 Richard Biener <rguenther@suse.de>
12161 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment):
12162 Reset info at start.
12163 (vect_analyze_group_access_1): Add debug print.
12164 * tree-vect-loop.c (vect_get_single_scalar_iteration_cost): Rename ...
12165 (vect_compute_single_scalar_iteration_cost): ... to this.
12166 (vect_analyze_loop_2): Adjust.
12167 * tree-vect-slp.c (struct _slp_oprnd_info): Move from ...
12168 * tree-vectorizer.h: ... here.
12169 (add_stmt_info_to_vec): Remove.
12170 * tree-vect-stmts.c (record_stmt_cost): Inline add_stmt_info_to_vec.
12172 2015-10-14 Dominik Vogt <vogt@linux.vnet.ibm.com>
12174 * targhooks.c (default_target_option_pragma_parse): Do not warn if
12175 called on behalf of "#pragma GCC pop_options".
12177 2015-10-14 Tom de Vries <tom@codesourcery.com>
12179 * cfganal.c (verify_no_unreachable_blocks): New function.
12180 (inverted_post_order_compute) [ENABLE_CHECKING]: Call
12181 verify_no_unreachable_blocks.
12182 cfganal.h (verify_no_unreachable_blocks): Declare.
12184 2015-10-13 Mikhail Maltsev <maltsevm@gmail.com>
12186 * common.opt: Add flag_checking.
12187 * system.h (CHECKING_P): Define.
12189 2015-10-13 Jakub Jelinek <jakub@redhat.com>
12190 Aldy Hernandez <aldyh@redhat.com>
12191 Ilya Verbin <ilya.verbin@intel.com>
12193 * builtin-types.def (BT_FN_BOOL_UINT_LONGPTR_LONGPTR_LONGPTR,
12194 BT_FN_BOOL_UINT_ULLPTR_ULLPTR_ULLPTR,
12195 BT_FN_BOOL_UINT_LONGPTR_LONG_LONGPTR_LONGPTR,
12196 BT_FN_BOOL_UINT_ULLPTR_ULL_ULLPTR_ULLPTR,
12197 BT_FN_VOID_INT_SIZE_PTR_PTR_PTR_UINT_PTR,
12198 BT_FN_VOID_INT_OMPFN_SIZE_PTR_PTR_PTR_UINT_PTR,
12199 BT_FN_VOID_OMPFN_PTR_OMPCPYFN_LONG_LONG_BOOL_UINT_PTR_INT,
12200 BT_FN_VOID_OMPFN_PTR_OMPCPYFN_LONG_LONG_UINT_LONG_INT_LONG_LONG_LONG,
12201 BT_FN_VOID_OMPFN_PTR_OMPCPYFN_LONG_LONG_UINT_LONG_INT_ULL_ULL_ULL,
12202 BT_FN_VOID_LONG_VAR, BT_FN_VOID_ULL_VAR): New.
12203 (BT_FN_VOID_INT_PTR_SIZE_PTR_PTR_PTR,
12204 BT_FN_VOID_INT_OMPFN_PTR_SIZE_PTR_PTR_PTR,
12205 BT_FN_VOID_OMPFN_PTR_OMPCPYFN_LONG_LONG_BOOL_UINT_PTR): Remove.
12206 * cgraph.h (enum cgraph_simd_clone_arg_type): Add
12207 SIMD_CLONE_ARG_TYPE_LINEAR_REF_CONSTANT_STEP,
12208 SIMD_CLONE_ARG_TYPE_LINEAR_UVAL_CONSTANT_STEP and
12209 SIMD_CLONE_ARG_TYPE_LINEAR_VAL_CONSTANT_STEP.
12210 (struct cgraph_simd_clone_arg): Adjust comment.
12211 * coretypes.h (struct gomp_ordered): New forward decl.
12212 * gimple.c (gimple_build_omp_critical): Add CLAUSES argument,
12213 set critical clauses to it.
12214 (gimple_build_omp_ordered): Return gomp_ordered * instead of
12215 gimple *. Add CLAUSES argument, set ordered clauses to it.
12216 (gimple_copy): Unshare clauses on GIMPLE_OMP_CRITICAL and
12217 GIMPLE_OMP_ORDERED.
12218 * gimple.def (GIMPLE_OMP_ORDERED): Change from GSS_OMP to
12219 GSS_OMP_SINGLE_LAYOUT, move it after GIMPLE_OMP_TEAMS.
12220 * gimple.h (enum gf_mask): Add GF_OMP_TASK_TASKLOOP. Add another bit
12221 to GF_OMP_FOR_KIND_MASK mask. Add GF_OMP_FOR_KIND_TASKLOOP, renumber
12222 GF_OMP_FOR_KIND_CILKFOR and GF_OMP_FOR_KIND_OACC_LOOP. Adjust
12223 GF_OMP_FOR_SIMD, GF_OMP_FOR_COMBINED and GF_OMP_FOR_COMBINED_INTO.
12224 Add another bit to GF_OMP_TARGET_KIND_MASK mask. Add
12225 GF_OMP_TARGET_KIND_ENTER_DATA and GF_OMP_TARGET_KIND_EXIT_DATA,
12227 GF_OMP_TARGET_KIND_OACC_{PARALLEL,KERNELS,DATA,UPDATE,ENTER_EXIT_DATA}.
12228 (gomp_critical): Add clauses field.
12229 (gomp_ordered): New struct.
12230 (is_a_helper <gomp_ordered *>::test): New inline.
12231 (gimple_build_omp_critical): Add CLAUSES argument.
12232 (gimple_build_omp_ordered): Likewise. Return gomp_ordered *
12233 instead of gimple *.
12234 (gimple_omp_critical_clauses, gimple_omp_critical_clauses_ptr,
12235 gimple_omp_critical_set_clauses, gimple_omp_ordered_clauses,
12236 gimple_omp_ordered_clauses_ptr, gimple_omp_ordered_set_clauses,
12237 gimple_omp_task_taskloop_p, gimple_omp_task_set_taskloop_p): New
12239 * gimple-pretty-print.c (dump_gimple_omp_for): Handle taskloop.
12240 (dump_gimple_omp_target): Handle enter data and exit data.
12241 (dump_gimple_omp_block): Don't handle GIMPLE_OMP_ORDERED here.
12242 (dump_gimple_omp_critical): Print clauses.
12243 (dump_gimple_omp_ordered): New function.
12244 (dump_gimple_omp_task): Handle taskloop.
12245 (pp_gimple_stmt_1): Use dump_gimple_omp_ordered for
12246 GIMPLE_OMP_ORDERED.
12247 * gimple-walk.c (walk_gimple_op): Walk clauses on
12248 GIMPLE_OMP_CRITICAL and GIMPLE_OMP_ORDERED.
12249 * gimplify.c (enum gimplify_omp_var_data): Add GOVD_MAP_0LEN_ARRAY.
12250 (enum omp_region_type): Add ORT_COMBINED_TARGET and ORT_NONE.
12251 (struct gimplify_omp_ctx): Add loop_iter_var,
12252 target_map_scalars_firstprivate, target_map_pointers_as_0len_arrays
12253 and target_firstprivatize_array_bases fields.
12254 (delete_omp_context): Release loop_iter_var.
12255 (gimplify_bind_expr): Handle ORT_NONE.
12256 (maybe_fold_stmt): Adjust check for ORT_TARGET for the addition of
12257 ORT_COMBINED_TARGET.
12258 (is_gimple_stmt): Return true for OMP_TASKLOOP, OMP_TEAMS and
12259 OMP_TARGET{,_DATA,_UPDATE,_ENTER_DATA,_EXIT_DATA}.
12260 (omp_firstprivatize_variable): Handle ORT_NONE. Adjust check for
12261 ORT_TARGET for the addition of ORT_COMBINED_TARGET. Handle
12262 ctx->target_map_scalars_firstprivate.
12263 (omp_add_variable): Handle ORT_NONE. Allow map clause together with
12264 data sharing clauses. For data sharing clause with VLA decl
12265 on omp target/target data don't add firstprivate for the pointer.
12266 Call omp_notice_variable on TYPE_SIZE_UNIT only if it is a DECL_P.
12267 (omp_notice_threadprivate_variable): Adjust check for ORT_TARGET for
12268 the addition of ORT_COMBINED_TARGET.
12269 (omp_notice_variable): Handle ORT_NONE. Adjust check for ORT_TARGET
12270 for the addition of ORT_COMBINED_TARGET. Handle implicit mapping of
12271 pointers as zero length array sections and
12272 ctx->target_map_scalars_firstprivate mapping of scalars as firstprivate
12274 (omp_check_private): Handle omp_member_access_dummy_var vars.
12275 (find_decl_expr): New function.
12276 (gimplify_scan_omp_clauses): Add CODE argument. For OMP_CLAUSE_IF
12277 complain if OMP_CLAUSE_IF_MODIFIER is present and does not match code.
12278 Handle OMP_CLAUSE_GANG separately. Handle
12279 OMP_CLAUSE_{PRIORITY,GRAINSIZE,NUM_TASKS,NOGROUP,THREADS,SIMD,SIMDLEN}
12280 clauses. Diagnose linear clause on combined
12281 distribute {, parallel for} simd construct, unless it is the loop
12282 iterator. Handle struct element GOMP_MAP_FIRSTPRIVATE_POINTER.
12283 Handle map clauses with COMPONENT_REF. Initialize
12284 ctx->target_map_scalars_firstprivate,
12285 ctx->target_firstprivatize_array_bases and
12286 ctx->target_map_pointers_as_0len_arrays. Add firstprivate for
12287 linear clause even to target region if combined. Remove
12288 map clauses with GOMP_MAP_FIRSTPRIVATE_POINTER kind from
12289 OMP_TARGET_{,ENTER_,EXIT_}DATA. For GOMP_MAP_FIRSTPRIVATE_POINTER
12290 map kind with non-INTEGER_CST OMP_CLAUSE_SIZE firstprivatize the bias.
12291 Handle OMP_CLAUSE_DEPEND_{SINK,SOURCE}. Handle
12292 OMP_CLAUSE_{{USE,IS}_DEVICE_PTR,DEFAULTMAP,HINT}.
12293 For linear clause on worksharing loop combined with parallel add
12294 shared clause on the parallel. Handle OMP_CLAUSE_REDUCTION
12295 with MEM_REF OMP_CLAUSE_DECL. Set DECL_NAME on
12296 omp_member_access_dummy_var vars. Add lastprivate clause to outer
12297 taskloop if needed.
12298 (gimplify_adjust_omp_clauses_1): Handle GOVD_MAP_0LEN_ARRAY.
12299 If gimplify_omp_ctxp->target_firstprivatize_array_bases, use
12300 GOMP_MAP_FIRSTPRIVATE_POINTER map kind instead of
12302 (gimplify_adjust_omp_clauses): Add CODE argument. Handle removal
12303 of GOMP_MAP_FIRSTPRIVATE_POINTER struct elements for struct not seen
12304 in target body. Handle removal of struct mapping if struct is not
12305 seen in target body. Remove GOMP_MAP_STRUCT map clause on
12306 OMP_TARGET_EXIT_DATA. Adjust check for ORT_TARGET for the
12307 addition of ORT_COMBINED_TARGET. Use GOMP_MAP_FIRSTPRIVATE_POINTER
12308 instead of GOMP_MAP_POINTER if ctx->target_firstprivatize_array_bases
12309 for VLAs. Set OMP_CLAUSE_MAP_PRIVATE if both data sharing and map
12310 clause appear together. Handle
12311 OMP_CLAUSE_{{USE,IS}_DEVICE_PTR,DEFAULTMAP,HINT}. Don't remove map
12312 clause if it has map-type-modifier always. Handle
12313 OMP_CLAUSE_{PRIORITY,GRAINSIZE,NUM_TASKS,NOGROUP,THREADS,SIMD,SIMDLEN}
12315 (gimplify_oacc_cache, gimplify_omp_parallel, gimplify_omp_task):
12316 Adjust gimplify_scan_omp_clauses and gimplify_adjust_omp_clauses
12318 (gimplify_omp_for): Likewise. Handle OMP_TASKLOOP. Initialize
12319 loop_iter_var. Use OMP_FOR_ORIG_DECLS. Fix handling of lastprivate
12320 iterators in doacross loops.
12321 (gimplify_omp_workshare): Adjust gimplify_scan_omp_clauses and
12322 gimplify_adjust_omp_clauses callers. Use ORT_COMBINED_TARGET
12323 for OMP_TARGET_COMBINED. Adjust check for ORT_TARGET
12324 for the addition of ORT_COMBINED_TARGET.
12325 (gimplify_omp_target_update): Adjust gimplify_scan_omp_clauses and
12326 gimplify_adjust_omp_clauses callers. Handle OMP_TARGET_ENTER_DATA
12327 and OMP_TARGET_EXIT_DATA.
12328 (gimplify_omp_ordered): New function.
12329 (gimplify_expr): Handle OMP_TASKLOOP, OMP_TARGET_ENTER_DATA and
12330 OMP_TARGET_EXIT_DATA. Use gimplify_omp_ordered for OMP_ORDERED.
12331 Gimplify clauses on OMP_CRITICAL.
12332 * internal-fn.c (expand_GOMP_SIMD_ORDERED_START,
12333 expand_GOMP_SIMD_ORDERED_END): New functions.
12334 * internal-fn.def (GOMP_SIMD_ORDERED_START,
12335 GOMP_SIMD_ORDERED_END): New internal functions.
12336 * omp-builtins.def (BUILT_IN_GOMP_LOOP_DOACROSS_STATIC_START,
12337 BUILT_IN_GOMP_LOOP_DOACROSS_DYNAMIC_START,
12338 BUILT_IN_GOMP_LOOP_DOACROSS_GUIDED_START,
12339 BUILT_IN_GOMP_LOOP_DOACROSS_RUNTIME_START,
12340 BUILT_IN_GOMP_LOOP_ULL_DOACROSS_STATIC_START,
12341 BUILT_IN_GOMP_LOOP_ULL_DOACROSS_DYNAMIC_START,
12342 BUILT_IN_GOMP_LOOP_ULL_DOACROSS_GUIDED_START,
12343 BUILT_IN_GOMP_LOOP_ULL_DOACROSS_RUNTIME_START,
12344 BUILT_IN_GOMP_DOACROSS_POST, BUILT_IN_GOMP_DOACROSS_WAIT,
12345 BUILT_IN_GOMP_DOACROSS_ULL_POST, BUILT_IN_GOMP_DOACROSS_ULL_WAIT,
12346 BUILT_IN_GOMP_TARGET_ENTER_EXIT_DATA, BUILT_IN_GOMP_TASKLOOP,
12347 BUILT_IN_GOMP_TASKLOOP_ULL): New built-ins.
12348 (BUILT_IN_GOMP_TASK): Add INT argument to the end.
12349 (BUILT_IN_GOMP_TARGET): Rename from GOMP_target to GOMP_target_41,
12351 (BUILT_IN_GOMP_TARGET_DATA): Rename from GOMP_target_data to
12352 GOMP_target_data_41, adjust type.
12353 (BUILT_IN_GOMP_TARGET_UPDATE): Rename from GOMP_target_update to
12354 GOMP_target_update_41, adjust type.
12355 * omp-low.c (struct omp_region): Adjust comments, add ord_stmt
12357 (struct omp_for_data): Add ordered and simd_schedule fields.
12358 (omp_member_access_dummy_var, unshare_and_remap_1,
12359 unshare_and_remap, is_taskloop_ctx): New functions.
12360 (is_taskreg_ctx): Use is_parallel_ctx and is_task_ctx.
12361 (extract_omp_for_data): Handle taskloops and doacross loops
12362 and simd schedule modifier.
12363 (omp_adjust_chunk_size): New function.
12364 (get_ws_args_for): Use it.
12365 (lookup_sfield): Change first argument to splay_tree_key,
12366 add overload with first argument tree.
12367 (maybe_lookup_field): Likewise.
12368 (use_pointer_for_field): Handle omp_member_access_dummy_var.
12369 (omp_copy_decl_2): If var is TREE_ADDRESSABLE listed in
12370 task_shared_vars, clear TREE_ADDRESSABLE on the copy.
12371 (build_outer_var_ref): Add LASTPRIVATE argument, handle
12372 taskloops and omp_member_access_dummy_var vars.
12373 (build_sender_ref): Change first argument to splay_tree_key,
12374 add overload with first argument tree.
12375 (install_var_field): For mask & 8 use &DECL_UID as key instead
12376 of the tree itself.
12377 (fixup_child_record_type): Const qualify *.omp_data_i.
12378 (scan_sharing_clauses): Handle OMP_CLAUSE_SHARED_FIRSTPRIVATE,
12379 C/C++ array reductions, OMP_CLAUSE_{IS,USE}_DEVICE_PTR clauses,
12380 OMP_CLAUSE_{PRIORITY,GRAINSIZE,NUM_TASKS,SIMDLEN,THREADS,SIMD} and
12381 OMP_CLAUSE_{NOGROUP,DEFAULTMAP} clauses, OMP_CLAUSE__LOOPTEMP_ clause
12382 on taskloop, GOMP_MAP_FIRSTPRIVATE_POINTER, OMP_CLAUSE_MAP_PRIVATE.
12383 (create_omp_child_function): Set TREE_READONLY on .omp_data_i.
12384 (find_combined_for): Allow searching for different GIMPLE_OMP_FOR
12386 (add_taskreg_looptemp_clauses): New function.
12387 (scan_omp_parallel): Use it.
12388 (scan_omp_task): Likewise.
12389 (finish_taskreg_scan): Handle OMP_CLAUSE_SHARED_FIRSTPRIVATE.
12390 For taskloop, move fields for the first two _LOOPTEMP_ clauses first.
12391 (check_omp_nesting_restrictions): Handle GF_OMP_TARGET_KIND_ENTER_DATA
12392 and GF_OMP_TARGET_KIND_EXIT_DATA. Formatting fixes. Allow the
12393 sandwiched taskloop constructs. Type check
12394 OMP_CLAUSE_DEPEND_{KIND,SOURCE}. Allow ordered simd inside of simd
12395 region. Diagnose depend(source) or depend(sink:...) on
12396 target constructs or task/taskloop.
12397 (handle_simd_reference): Use get_name.
12398 (lower_rec_input_clauses): Likewise. Ignore all
12399 OMP_CLAUSE_LASTPRIVATE_FIRSTPRIVATE clauses on taskloop construct.
12400 Allow _LOOPTEMP_ clause on GOMP_TASK. Unshare new_var
12401 before passing it to omp_clause_{default,copy}_ctor. Handle
12402 OMP_CLAUSE_REDUCTION with MEM_REF OMP_CLAUSE_DECL. Set
12403 lastprivate_firstprivate flag for linear that needs copyin and
12404 copyout. Use BUILT_IN_ALLOCA_WITH_ALIGN instead of BUILT_IN_ALLOCA.
12405 (lower_lastprivate_clauses): For OMP_CLAUSE_LASTPRIVATE_FIRSTPRIVATE
12406 on taskloop lookup decl in outer context. Pass true to
12407 build_outer_var_ref lastprivate argument. Handle
12408 OMP_CLAUSE_LASTPRIVATE_TASKLOOP_IV lastprivate if the decl is global
12409 outside of outer taskloop for.
12410 (lower_reduction_clauses): Handle OMP_CLAUSE_REDUCTION with MEM_REF
12412 (lower_send_clauses): Ignore first two _LOOPTEMP_ clauses in taskloop
12413 GOMP_TASK. Handle OMP_CLAUSE_SHARED_FIRSTPRIVATE. Handle
12414 omp_member_access_dummy_var vars. Handle OMP_CLAUSE_REDUCTION
12415 with MEM_REF OMP_CLAUSE_DECL. Use new lookup_sfield overload.
12416 (lower_send_shared_vars): Ignore fields with NULL or FIELD_DECL
12417 abstract origin. Handle omp_member_access_dummy_var vars.
12418 (expand_parallel_call): Use expand_omp_build_assign.
12419 (expand_task_call): Handle taskloop construct expansion. Add
12420 REGION argument. Use GOMP_TASK_* defines instead of hardcoded
12421 integers. Add priority argument to GOMP_task* calls. Or in
12422 GOMP_TASK_FLAG_PRIORITY into flags if priority is present for
12424 (expand_omp_build_assign): Add prototype. Add AFTER
12425 argument, if true emit statements after *GSI_P and continue linking.
12426 (expand_omp_taskreg): Adjust expand_task_call caller.
12427 (expand_omp_for_init_counts): Rename zero_iter_bb argument to
12428 zero_iter1_bb and first_zero_iter to first_zero_iter1, add
12429 zero_iter2_bb and first_zero_iter2 arguments, handle computation
12430 of counts even for ordered loops.
12431 (expand_omp_for_init_vars): Handle GOMP_TASK inner_stmt.
12432 (expand_omp_ordered_source, expand_omp_ordered_sink,
12433 expand_omp_ordered_source_sink, expand_omp_for_ordered_loops): New
12435 (expand_omp_for_generic): Use omp_adjust_chunk_size. Handle linear
12436 clauses on worksharing loop. Handle DOACROSS loop expansion.
12437 (expand_omp_for_static_nochunk): Handle linear clauses on
12438 worksharing loop. Adjust expand_omp_for_init_counts
12440 (expand_omp_for_static_chunk): Likewise. Use omp_adjust_chunk_size.
12441 (expand_omp_simd): Handle addressable fd->loop.v. Adjust
12442 expand_omp_for_init_counts callers.
12443 (expand_omp_taskloop_for_outer, expand_omp_taskloop_for_inner): New
12445 (expand_omp_for): Call expand_omp_taskloop_for_* for taskloop.
12446 Handle doacross loops.
12447 (expand_omp_target): Handle GF_OMP_TARGET_KIND_ENTER_DATA and
12448 GF_OMP_TARGET_KIND_EXIT_DATA. Pass flags and depend arguments to
12449 GOMP_target_{41,update_41,enter_exit_data} libcalls.
12450 (expand_omp): Don't expand ordered depend constructs here, record
12451 ord_stmt instead for later expand_omp_for_generic.
12452 (build_omp_regions_1): Handle GF_OMP_TARGET_KIND_ENTER_DATA and
12453 GF_OMP_TARGET_KIND_EXIT_DATA. Treat GIMPLE_OMP_ORDERED with depend
12454 clause as stand-alone directive.
12455 (lower_omp_ordered_clauses): New function.
12456 (lower_omp_ordered): Handle OMP_CLAUSE_SIMD, for OMP_CLAUSE_DEPEND
12457 don't lower anything.
12458 (lower_omp_for_lastprivate): Use last _looptemp_ clause
12459 on taskloop for comparison.
12460 (lower_omp_for): Handle taskloop constructs. Adjust OMP_CLAUSE_DECL
12461 and OMP_CLAUSE_LINEAR_STEP so that expand_omp_for_* can use it during
12462 expansion for linear adjustments.
12463 (create_task_copyfn): Handle OMP_CLAUSE_SHARED_FIRSTPRIVATE.
12464 (lower_depend_clauses): Assert not seeing sink/source depend kinds.
12465 Set TREE_ADDRESSABLE on array. Change first argument from gimple *
12466 to tree * pointing to the stmt's clauses.
12467 (lower_omp_taskreg): Adjust lower_depend_clauses caller.
12468 (lower_omp_target): Handle GF_OMP_TARGET_KIND_ENTER_DATA
12469 and GF_OMP_TARGET_KIND_EXIT_DATA, depend clauses,
12470 GOMP_MAP_{RELEASE,ALWAYS_{TO,FROM,TOFROM},FIRSTPRIVATE_POINTER,STRUCT}
12471 map kinds, OMP_CLAUSE_{FIRSTPRIVATE,PRIVATE,{IS,USE}_DEVICE_PTR
12472 clauses. Always use short kind and 8-bit align shift.
12473 (lower_omp_regimplify_p): Use IS_TYPE_OR_DECL_P macro.
12474 (struct lower_omp_regimplify_operands_data): New type.
12475 (lower_omp_regimplify_operands_p, lower_omp_regimplify_operands):
12477 (lower_omp_1): Use lower_omp_regimplify_operands instead of
12478 gimple_regimplify_operands.
12479 (make_gimple_omp_edges): Handle GF_OMP_TARGET_KIND_ENTER_DATA and
12480 GF_OMP_TARGET_KIND_EXIT_DATA. Treat GIMPLE_OMP_ORDERED with depend
12481 clause as stand-alone directive.
12482 (simd_clone_clauses_extract): Honor OMP_CLAUSE_LINEAR_KIND.
12483 (simd_clone_mangle): Mangle the various linear kinds
12485 (simd_clone_adjust_argument_types): Handle
12486 SIMD_CLONE_ARG_TYPE_LINEAR_*_CONSTANT_STEP.
12487 (simd_clone_init_simd_arrays): Don't do anything for uval.
12488 (simd_clone_adjust): Handle
12489 SIMD_CLONE_ARG_TYPE_LINEAR_REF_CONSTANT_STEP like
12490 SIMD_CLONE_ARG_TYPE_LINEAR_CONSTANT_STEP.
12491 Handle SIMD_CLONE_ARG_TYPE_LINEAR_UVAL_CONSTANT_STEP.
12492 * omp-low.h (omp_member_access_dummy_var): New prototype.
12493 * passes.def (pass_simduid_cleanup): Schedule another copy of the
12494 pass after all optimizations.
12495 * tree.c (omp_clause_code_name): Add entries for
12496 OMP_CLAUSE_{TO_DECLARE,LINK,{USE,IS}_DEVICE_PTR,DEFAULTMAP,HINT}
12497 and OMP_CLAUSE_{PRIORITY,GRAINSIZE,NUM_TASKS,NOGROUP,THREADS,SIMD}.
12498 (omp_clause_num_ops): Likewise. Bump number of OMP_CLAUSE_REDUCTION
12499 arguments to 5 and for OMP_CLAUSE_ORDERED to 1.
12500 (walk_tree_1): Adjust for OMP_CLAUSE_ORDERED having 1 argument and
12501 OMP_CLAUSE_REDUCTION 5 arguments. Handle
12502 OMP_CLAUSE_{TO_DECLARE,LINK,{USE,IS}_DEVICE_PTR,DEFAULTMAP,HINT}
12503 and OMP_CLAUSE_{PRIORITY,GRAINSIZE,NUM_TASKS,NOGROUP,THREADS,SIMD}
12505 * tree-core.h (enum omp_clause_linear_kind): New.
12506 (struct tree_omp_clause): Change type of map_kind
12507 from unsigned char to unsigned int. Add subcode.if_modifier
12508 and subcode.linear_kind fields.
12509 (enum omp_clause_code): Add
12510 OMP_CLAUSE_{TO_DECLARE,LINK,{USE,IS}_DEVICE_PTR,DEFAULTMAP,HINT}
12511 and OMP_CLAUSE_{PRIORITY,GRAINSIZE,NUM_TASKS,NOGROUP,THREADS,SIMD}.
12512 (OMP_CLAUSE_REDUCTION): Document
12513 OMP_CLAUSE_REDUCTION_DECL_PLACEHOLDER.
12514 (enum omp_clause_depend_kind): Add OMP_CLAUSE_DEPEND_{SOURCE,SINK}.
12515 * tree.def (OMP_FOR): Add OMP_FOR_ORIG_DECLS operand.
12516 (OMP_CRITICAL): Move before OMP_SINGLE. Add OMP_CRITICAL_CLAUSES
12518 (OMP_ORDERED): Move before OMP_SINGLE. Add OMP_ORDERED_CLAUSES
12520 (OMP_TASKLOOP, OMP_TARGET_ENTER_DATA, OMP_TARGET_EXIT_DATA): New tree
12522 * tree.h (OMP_BODY): Replace OMP_CRITICAL with OMP_TASKGROUP.
12523 (OMP_CLAUSE_SET_MAP_KIND): Cast to unsigned int rather than unsigned
12525 (OMP_CRITICAL_NAME): Adjust to be 3rd operand instead of 2nd.
12526 (OMP_CLAUSE_NUM_TASKS_EXPR): Formatting fix.
12527 (OMP_STANDALONE_CLAUSES): Adjust to cover OMP_TARGET_{ENTER,EXIT}_DATA.
12528 (OMP_CLAUSE_DEPEND_SINK_NEGATIVE, OMP_TARGET_COMBINED,
12529 OMP_CLAUSE_MAP_PRIVATE, OMP_FOR_ORIG_DECLS, OMP_CLAUSE_IF_MODIFIER,
12530 OMP_CLAUSE_MAP_MAYBE_ZERO_LENGTH_ARRAY_SECTION, OMP_CRITICAL_CLAUSES,
12531 OMP_CLAUSE_PRIVATE_TASKLOOP_IV, OMP_CLAUSE_LASTPRIVATE_TASKLOOP_IV,
12532 OMP_CLAUSE_HINT_EXPR, OMP_CLAUSE_SCHEDULE_SIMD,
12533 OMP_CLAUSE_LINEAR_KIND, OMP_CLAUSE_REDUCTION_DECL_PLACEHOLDER,
12534 OMP_CLAUSE_SHARED_FIRSTPRIVATE, OMP_ORDERED_CLAUSES,
12535 OMP_TARGET_ENTER_DATA_CLAUSES, OMP_TARGET_EXIT_DATA_CLAUSES,
12536 OMP_CLAUSE_NUM_TASKS_EXPR, OMP_CLAUSE_GRAINSIZE_EXPR,
12537 OMP_CLAUSE_PRIORITY_EXPR, OMP_CLAUSE_ORDERED_EXPR): Define.
12538 * tree-inline.c (remap_gimple_stmt): Handle clauses on
12539 GIMPLE_OMP_ORDERED and GIMPLE_OMP_CRITICAL. For
12540 IFN_GOMP_SIMD_ORDERED_{START,END} set has_simduid_loops.
12541 * tree-nested.c (convert_nonlocal_omp_clauses): Handle
12542 OMP_CLAUSE_{TO_DECLARE,LINK,{USE,IS}_DEVICE_PTR,SIMDLEN,PRIORITY,SIMD}
12543 and OMP_CLAUSE_{GRAINSIZE,NUM_TASKS,HINT,NOGROUP,THREADS,DEFAULTMAP}
12544 clauses. Handle OMP_CLAUSE_REDUCTION_DECL_PLACEHOLDER.
12545 (convert_local_omp_clauses): Likewise.
12546 * tree-pretty-print.c (dump_omp_clause): Handle
12547 OMP_CLAUSE_{TO_DECLARE,LINK,{USE,IS}_DEVICE_PTR,SIMDLEN,PRIORITY,SIMD}
12548 and OMP_CLAUSE_{GRAINSIZE,NUM_TASKS,HINT,NOGROUP,THREADS,DEFAULTMAP}
12549 clauses. Handle OMP_CLAUSE_IF_MODIFIER, OMP_CLAUSE_ORDERED_EXPR,
12550 OMP_CLAUSE_SCHEDULE_SIMD, OMP_CLAUSE_LINEAR_KIND,
12551 OMP_CLAUSE_DEPEND_{SOURCE,SINK}. Use "delete" for
12552 GOMP_MAP_FORCE_DEALLOC. Handle
12553 GOMP_MAP_{ALWAYS_{TO,FROM,TOFROM},RELEASE,FIRSTPRIVATE_POINTER,STRUCT}.
12554 (dump_generic_node): Handle OMP_TASKLOOP, OMP_TARGET_{ENTER,EXIT}_DATA
12555 and clauses on OMP_ORDERED and OMP_CRITICAL.
12556 * tree-vectorizer.c (adjust_simduid_builtins): Adjust comment.
12557 Remove IFN_GOMP_SIMD_ORDERED_{START,END}.
12558 (vectorize_loops): Adjust comments.
12559 (pass_simduid_cleanup::execute): Likewise.
12560 * tree-vect-stmts.c (vectorizable_simd_clone_call): Handle
12561 SIMD_CLONE_ARG_TYPE_LINEAR_{REF,VAL,UVAL}_CONSTANT_STEP.
12562 * wide-int.h (wi::gcd): New.
12564 2015-10-13 Uros Bizjak <ubizjak@gmail.com>
12566 * config/i386/i386.c (classify_argument): Use CEIL where applicable.
12567 (ix86_function_arg_advance): Ditto.
12568 (ix86_function_arg): Ditto.
12569 (ix86_gimplify_va_arg): Ditto.
12570 (ix86_class_max_nregs): Ditto.
12571 (inline_memory_move_cost): Ditto.
12572 (ix86_set_reg_reg_cost): Ditto.
12573 * config/i386/i386.h (HARD_REGNO_NREGS): Ditto.
12575 2015-10-13 Alexandre Oliva <aoliva@redhat.com>
12577 PR middle-end/67912
12578 * expmed.c (store_bit_field_1): Adjust mode of BLKmode inputs.
12580 2015-10-13 Uros Bizjak <ubizjak@gmail.com>
12582 * config/sparc/sparc.h (SPARC_STACK_ALIGN): Implement using
12583 ROUND_UP macro and UNITS_PER_WORD * 2.
12584 * config/sparc/sparc.c (sparc_compute_frame_size):
12585 Use ROUND_UP and ROUND_DOWN macros where applicable.
12586 (function_arg_record_value, function_arg_record_value_1)
12587 (function_arg_record_value_1): Ditto.
12588 (emit_save_or_restore_regs): Use ROUND_DOWN to preserve offset
12589 alignment to double-word.
12590 (sparc_gimplify_va_arg): Use ROUND_UP to calculate rsize.
12591 (sparc_emit_probe_stack_range): Use ROUND_DOWN to calculate
12594 2015-10-13 Nikolai Bozhenov <n.bozhenov@samsung.com>
12596 * rtl.h (print_insn): Fix prototype.
12598 2015-10-13 Tom de Vries <tom@codesourcery.com>
12600 * tree-parloops.c (reduction_phi): Handle cases that gimple_uid is 0 or
12601 -1. Add assert that returned entry matches phi argument.
12602 (parallelize_loops): Move calls to init_stmt_vec_info_vec and
12603 free_stmt_vec_info_vec ...
12604 (gather_scalar_reductions): ... here. Initialize gimple_uids of phis
12607 2014-10-13 Yuri Rumyantsev <ysrumyan@gmail.com>
12609 PR tree-optimization/67909, 67947
12610 * tree-ssa-loop-unswitch.c (find_loop_guard): Add check that GUARD_EDGE
12611 really skip the inner loop.
12613 2015-10-13 Jeff Law <law@redhat.com>
12615 * tree-ssa-threadbackward.c (fsm_find_control_statement_thread_paths):
12616 Allow single block jump threading paths.
12618 2015-10-13 Tom de Vries <tom@codesourcery.com>
12620 PR tree-optimization/67476
12621 * doc/invoke.texi (@item parloops-schedule): New item.
12622 * params.def (PARAM_PARLOOPS_SCHEDULE): New DEFPARAMENUM5.
12623 * tree-parloops.c: Include params-enum.h.
12624 (create_parallel_loop): Handle PARAM_PARLOOPS_SCHEDULE.
12626 2015-10-13 Tom de Vries <tom@codesourcery.com>
12628 * Makefile.in (PARAMS_H, PLUGIN_HEADERS): Add params-enum.h.
12629 * params-enum.h: New file.
12630 * opts.c (handle_param): Handle case that param arg is a string.
12631 * params-list.h: Handle DEFPARAMENUM5 in params.def.
12632 * params.c (find_param): New function, factored out of ...
12633 (set_param_value): ... here.
12634 (param_string_value_p): New function.
12635 * params.h (struct param_info): Add value_names field.
12636 (find_param, param_string_value_p): Declare.
12638 2015-10-13 Tom de Vries <tom@codesourcery.com>
12640 PR tree-optimization/67476
12641 * omp-low.c (expand_omp_for_generic): Handle original loop tree.
12643 2015-10-13 Richard Biener <rguenther@suse.de>
12645 * tree-vect-data-refs.c (vect_analyze_data_ref_dependences): Allocate
12646 the data dependence vector.
12647 (vect_peeling_hash_insert): Get the peeling hash table as argument.
12648 (vect_peeling_hash_get_lowest_cost): Likewise.
12649 (vect_enhance_data_refs_alignment): Adjust.
12650 (struct _vect_peel_info, struct _vect_peel_extended_info,
12651 struct peel_info_hasher): Move from ...
12652 * tree-vectorizer.h: ... here.
12653 (LOOP_VINFO_COST_MODEL_MIN_ITERS): Remove.
12654 (LOOP_VINFO_PEELING_HTAB): Likewise.
12655 (struct _loop_vec_info): Remove min_profitable_iters and
12656 peeling_htab members.
12657 * tree-vect-loop.c (new_loop_vec_info): Do not allocate vectors
12659 (destroy_loop_vec_info): Adjust.
12660 (vect_analyze_loop_2): Do not set LOOP_VINFO_COST_MODEL_MIN_ITERS.
12661 (vect_estimate_min_profitable_iters): Use LOOP_VINFO_COMP_ALIAS_DDRS
12662 to estimate alias versioning cost.
12663 * tree-vect-slp.c (vect_analyze_slp_cost): Dump header.
12665 2015-10-13 Richard Sandiford <richard.sandiford@arm.com>
12667 * real.h (real_isinteger): Declare.
12668 * real.c (real_isinteger): New function.
12669 * match.pd: Simplify pow(|x|,y) and pow(-x,y) to pow(x,y)
12670 if y is an even integer.
12672 2015-10-11 Jan Hubicka <hubicka@ucw.cz>
12675 2015-10-11 Jan Hubicka <hubicka@ucw.cz>
12676 * cgraphbuild.c (compute_call_stmt_bb_frequency): Use
12677 counts when these are more informative.
12679 2015-10-12 Jeff Law <law@redhat.com>
12681 * tree-ssa-threadbackward.c (get_gimple_control_stmt): New function.
12682 (fsm_find_control_stmt_paths): Change name of first argument to
12683 more accurately relfect what it really is. Handle simplification
12684 of GIMPLE_COND after finding a thread path for NAME.
12685 * tree-ssa-threadedge.c (simplify_control_stmt_condition): Allow
12686 nontrivial conditions to be handled by FSM threader.
12687 (thread_through_normal_block): Extract the name to looup via
12688 FSM threader from COND_EXPR.
12690 * tree-ssa-threadbackward.c (fsm_find_thread_path): Remove
12691 restriction that traced SSA_NAME is a user variable.
12693 2015-10-12 Tom de Vries <tom@codesourcery.com>
12695 PR tree-optimization/67476
12696 * omp-low.c (expand_omp_for_generic): Add missing phis.
12698 2015-10-12 Tom de Vries <tom@codesourcery.com>
12700 PR tree-optimization/67476
12701 * omp-low.c (expand_omp_for_generic): Handle simple latch.
12703 2015-10-12 Christophe Lyon <christophe.lyon@linaro.org>
12705 * config/aarch64/aarch64-simd-builtins.def: Update builtins
12706 tables: add tbl3 and tbx4.
12707 * config/aarch64/aarch64-simd.md (aarch64_tbl3v8qi): New.
12708 (aarch64_tbx4v8qi): New.
12709 * config/aarch64/arm_neon.h (vtbl3_s8, vtbl3_u8, vtbl3_p8)
12710 (vtbl4_s8, vtbl4_u8, vtbl4_p8, vtbx4_s8, vtbx4_u8, vtbx4_p8):
12711 Rewrite using builtin functions.
12712 * config/aarch64/iterators.md (UNSPEC_TBX): New.
12714 2015-10-12 Uros Bizjak <ubizjak@gmail.com>
12716 * config/rs6000/rs6000.h (RS6000_ALIGN): Implement using
12718 * config/rs6000/rs6000.c (rs6000_darwin64_record_arg_advance_flush):
12719 Use ROUND_UP and ROUND_DOWN macros where applicable.
12720 (rs6000_darwin64_record_arg_flush): Ditto.
12721 (rs6000_function_arg): Use ROUND_UP to calculate align_words.
12722 (rs6000_emit_probe_stack_range): Use ROUND_DOWN to calculate
12725 2015-10-12 Uros Bizjak <ubizjak@gmail.com>
12727 * config/aarch/aarch64.h (AARCH64_ROUND_UP): Remove.
12728 (AARCH64_ROUND_DOWN): Ditto.
12729 * config/aarch64/aarch64.c: Use ROUND_UP instead of AARCH64_ROUND_UP.
12731 2015-10-12 Richard Biener <rguenther@suse.de>
12734 * ipa-inline-analysis.c (estimate_function_body_sizes): Re-add
12735 code that analyzes IVs on each stmt but in a cheaper way avoiding
12736 quadratic behavior.
12738 2015-10-12 Nick Clifton <nickc@redhat.com>
12740 * config/msp430/msp430.c (msp430_mcu_names): Rename to
12741 msp430_mcu_data, add fields for ISA and hardware multiply
12742 support. Import latest data from the devices.csv file.
12743 (msp430_override_option): Use the data from the new array.
12744 (msp430_use_f5_series_hwmult): Likewise.
12745 (use_32bit_hwmult): Likewise.
12746 (msp430_no_hwmult): Likewise.
12747 * config/msp430/t-msp430 (MULTILIB_MATCHES): Add matches for new
12749 * doc/invoke.texi (MSP430 Options): Note that if the MCU name is
12750 not recognised then no hardware multiply support is assumed and
12751 that only the MSP430 ISA is allowed.
12753 2015-10-12 Richard Biener <rguenther@suse.de>
12755 * tree-vect-loop.c (vect_analyze_loop_operations): Move cost
12757 (vect_analyze_loop_2): ... here.
12759 2015-10-11 Jason Merrill <jason@redhat.com>
12762 * expr.c (store_field): Call store_constructor directly when
12763 storing a CONSTRUCTOR into a target smaller than its type.
12764 Guard against unsafe bitwise copy.
12766 2015-10-11 Jan Hubicka <hubicka@ucw.cz>
12768 * cgraphbuild.c (compute_call_stmt_bb_frequency): Use
12769 counts when these are more informative.
12771 2015-10-11 Jan Hubicka <hubicka@ucw.cz>
12773 * tree-profile.c (tree_profiling): Do not clear
12774 pure/const when not instrumenting.
12775 (pass tree_profile): Add dump of symtab.
12777 2015-10-11 Jan Hubicka <hubicka@ucw.cz>
12779 * fold-const.c (fold_comparsion): Pass OEP_ADDRESS_OF when comparing
12781 (fold_addr_of_array_ref_difference): Likewise.
12783 2015-10-11 Jeff Law <law@redhat.com>
12785 * tree-ssa-threadedge.c (fsm_find_thread_path): Moved from here into
12786 tree-ssa-threadbackward.c.
12787 (fsm_find_control_statement_thread_paths): Likewise.
12788 (thread_through_normal_block): Break out FSM bits and move them
12789 into a new function in tree-ssa-threadbackward.c. Call new function
12791 Minimize header file usage.
12792 * tree-ssa-threadbackward.h: New file.
12793 * tree-ssa-threadbackward.c: Likewise.
12794 * Makefile.in (OBJS): Add tree-ssa-threadbackward.o
12796 2015-10-11 Uros Bizjak <ubizjak@gmail.com>
12798 * config/alpha/alpha.h (ALPHA_ROUND): Implement using ROUND_UP macro.
12800 2015-10-11 Segher Boessenkool <segher@kernel.crashing.org>
12802 PR rtl-optimization/67864
12803 * bb-reorder (reorder_basic_blocks_simple): Prefer existing
12804 fallthrough edges for conditional jumps. Don't sort candidate
12805 edges if not optimizing for speed.
12807 2015-10-10 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
12809 * defaults.h (REVERSE_CONDITION): New default definition.
12810 * jump.c (reversed_comparison_code_parts): Adjust.
12812 2015-10-10 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
12814 * builtins.c (expand_builtin_setjmp_receiver): Don't use #if to
12815 check HARD_FRAME_POINTER_IS_ARG_POINTER.
12817 2015-10-10 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
12819 * defaults.h (FRAME_ADDR_RTX): New default definition.
12820 * builtins.c (expand_builtin_return_addr): Adjust.
12822 2015-10-10 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
12824 * defaults.h (DYNAMIC_CHAIN_ADDRESS): New default definition.
12825 * builtins.c (expand_builtin_return_addr): Adjust.
12827 2015-10-10 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
12829 * defaults.h (SETUP_FRAME_ADDRESSES): New default definition.
12830 * builtins.c (expand_builtin_return_addr): Adjust.
12831 * doc/tm.texi: Likewise.
12832 * doc/tm.texi.in: Likewise.
12833 * except.c (expand_builtin_unwind_init): Likewise.
12835 2015-10-10 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
12837 * builtins.c (expand_builtin_return_addr): Adjust.
12838 * defaults.h (INITIAL_FRAME_ADDRESS_RTX): New default definition.
12840 2015-10-10 Jan Hubicka <hubicka@ucw.cz>
12842 * tree.c (type_with_interoperable_signedness): New.
12843 (gimple_canonical_types_compatible_p): Use it.
12844 * tree.h (type_with_interoperable_signedness): Declare
12846 2015-10-10 Jan Hubicka <hubicka@ucw.cz>
12848 * fold-const.c (operand_equal_p): Document OEP_ADDRESS_OF
12849 and OEP_CONSTANT_ADDRESS_OF; skip type compatibility checks
12850 when OEP_ADDRESS_OF is se.
12852 2015-10-10 Aditya Kumar <aditya.k7@samsung.com>
12853 Sebastian Pop <s.pop@samsung.com>
12855 * graphite-dependences.c (scop_get_dependences): Add dump of the
12856 data dependence graph.
12857 * graphite-poly.c (print_isl_union_map): New.
12858 (debug_isl_union_map): New.
12859 * graphite-poly.h (print_isl_union_map): Declare.
12860 (debug_isl_union_map): Declare.
12862 2015-10-10 Aditya Kumar <aditya.k7@samsung.com>
12863 Sebastian Pop <s.pop@samsung.com>
12865 * graphite-poly.c (print_iteration_domain): Remove verbosity.
12866 Remove OpenScop formatting.
12867 (print_iteration_domains): Same.
12868 (debug_iteration_domain): Same.
12869 (debug_iteration_domains): Same.
12872 (dump_gbb_cases): Same.
12873 (dump_gbb_conditions): Same.
12874 (print_pdrs): Same.
12875 (debug_pdrs): Same.
12876 (print_pbb_body): Same.
12878 (print_scop_params): Same.
12879 (print_scop_context): Same.
12880 (print_scop): Same.
12881 (debug_pbb_domain): Same.
12883 (debug_scop_context): Same.
12884 (debug_scop): Same.
12885 (debug_scop_params): Same.
12886 * graphite-poly.h: Same.
12887 * graphite.c (graphite_transform_loops): Same.
12889 2015-10-10 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
12891 * function.c (stack_protect_epilogue): Remove as_a<rtx_insn *> ()
12892 call that isn't needed.
12894 2015-10-09 Jeff Law <law@redhat.com>
12896 * tree-ssanames.c (flush_ssaname_freelist): Use splice and truncate
12897 rather than moving each name to the freelist individually.
12899 2015-10-09 Steve Ellcey <sellcey@imgtec.com>
12901 * config.gcc (mips*-*-*): Add frame-header-opt.o to extra_objs.
12902 * frame-header-opt.c: New file.
12903 * config/mips/mips-proto.h (mips_register_frame_header_opt):
12905 * config/mips/mips.c (mips_compute_frame_info): Check
12906 optimize_call_stack flag.
12907 (mips_option_override): Register new frame_header_opt pass.
12908 (mips_frame_info, mips_int_mask, mips_shadow_set,
12909 machine_function): Move these types to...
12910 * config/mips/mips.h: here.
12911 (machine_function): Add does_not_use_frame_header and
12912 optimize_call_stack fields.
12913 * config/mips/t-mips (frame-header-opt.o): Add new make rule.
12914 * doc/invoke.texi (-mframe-header-opt, -mno-frame-header-opt):
12915 Document new flags.
12916 * config/mips/mips.opt (mframe-header-opt): Add new option.
12918 2015-10-09 Uros Bizjak <ubizjak@gmail.com>
12920 * config/i386/i386.c
12921 (expand_set_or_movmem_prologue_epilogue_by_misaligned_moves): Use
12922 ROUND_DOWN where applicable.
12924 2015-10-09 Jeff Law <law@redhat.com>
12926 * tree-vect-stmts.c (free_stmt_vec_info): Free the LHS of the
12929 2015-10-09 Renlin Li <renlin.li@arm.com>
12931 * config/arm/neon.md (neon_vuzp<mode>_insn): Add & modifier for
12932 operands[0] and operands[2].
12933 (neon_vtrn<mode>_insn): Likewise.
12934 (neon_vzip<mode>_insn): Likewise.
12936 2015-10-09 Andre Vieira <andre.simoesdiasvieira@arm.com>
12938 * match.pd: ((X inner_op C0) outer_op C1) New pattern.
12939 ((X & C2) << C1): Expand to...
12940 (X {&,^,|} C2 << C1): ...This.
12941 ((X & C2) >> C1): Expand to...
12942 (X {&,^,|} C2 >> C1): ...This.
12944 2015-10-09 Alexander Fomin <alexander.fomin@intel.com>
12947 * config/i386/sse.md (define_insn "sse_cvtsi2ss<round_name>"):
12948 Adjust embedded rounding/SAE specifier position.
12949 (define_insn "sse_cvtsi2ssq<round_name>"): Likewise.
12950 (define_insn "cvtusi2<ssescalarmodesuffix>32<round_name>"): Likewise.
12951 (define_insn "cvtusi2<ssescalarmodesuffix>64<round_name>"): Likewise.
12952 (define_insn "sse2_cvtsi2sdq<round_name>"): Likewise.
12953 (define_insn "avx512dq_rangep<mode><mask_name><round_saeonly_name>"):
12955 (define_insn "avx512dq_ranges<mode><round_saeonly_name>"): Likewise.
12957 2015-10-09 Martin Jambor <mjambor@suse.cz>
12959 tree-optimization/67794
12960 * tree-sra.c (replace_removed_params_ssa_names): Do not distinguish
12961 between types of state,ents but accept original definitions as a
12963 (ipa_sra_modify_function_body): Use FOR_EACH_SSA_DEF_OPERAND to
12964 iterate over definitions.
12966 2015-10-09 James Norris <jnorris@codesourcery.com>
12968 * config/rs6000/rs6000.c (rs6000_offload_options): New.
12969 (TARGET_OFFLOAD_OPTIONS): New.
12971 2015-10-09 Alexandre Oliva <aoliva@redhat.com>
12973 PR middle-end/67891
12974 * cfgexpand.c (set_parm_rtl): Drop is_gimple_reg test.
12976 PR middle-end/67766
12977 * function.c (expand_function_end): Move return value
12978 promotion past the handling of PARALLELs and CONCATs.
12980 PR rtl-optimization/67828
12981 * tree-ssa-loop-unswitch.c: Include tree-ssa.h.
12982 (tree_may_unswitch_on): Don't unswitch on expressions
12983 involving undefined values.
12985 2015-10-09 Richard Biener <rguenther@suse.de>
12987 * genmatch.c (print_operand): Fix formatting.
12988 (dt_node::append_simplify): Warn for multiple simplifiers
12989 that match the same pattern.
12990 * match.pd (log (exp @0)): Remove duplicates.
12992 2015-10-09 Richard Biener <rguenth@suse.de>
12995 * gimple-fold.c (optabs-query.h): Include
12996 (gimple_fold_builtin_memory_op): Allow unaligned stores
12997 when movmisalign_optabs are available.
12999 2015-10-09 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
13002 * config/arm/arm.md (movmisalign<mode>): New.
13003 * config/arm/iterators.md (HSI): New.
13005 2015-10-09 Richard Biener <rguenther@suse.de>
13007 PR tree-optimization/67891
13008 * gimple-match.h (gimple_simplified_result_is_gimple_val):
13010 (gimple_resimplify1): Declare.
13011 (gimple_resimplify2): Likewise.
13012 (gimple_resimplify3): Likewise.
13013 * gimple-match-head.c (gimple_resimplify1): Export.
13014 (gimple_resimplify2): Likewise.
13015 (gimple_resimplify3): Likewise.
13016 (maybe_push_res_to_seq): Use gimple_simplified_result_is_gimple_val.
13017 * gimple-fold.c (gimple_fold_stmt_to_constant_1): Likewise.
13018 * tree-ssa-sccvn.c (visit_reference_op_load): Use gimple_resimplify1
13019 to avoid creating stmts without VN info.
13021 2015-10-08 Jan Hubicka <hubicka@ucw.cz>
13023 * ipa-icf.c (sem_item::compare_symbol_references): Fix use
13026 2015-10-08 Jeff Law <law@redhat.com>
13028 * value-prof.c (gimple_ic): Add missing calls to unlink_stmt_vdef
13029 and release_ssa_name in two places.
13030 (gimple_stringop_fixed_value): Similarly.
13032 * tree-ssa-loop-im.c (rewrite_bittest): Add missing call to
13035 * tree-stdarg.c (expand_ifn_va_arg_1): Add missing call to
13036 unlink_stmt_vdef and release_ssa_name_fn.
13038 * tree-ssa-dse.c (dse_optimize_stmt): Add missing call to
13041 2015-10-08 H.J. Lu <hongjiu.lu@intel.com>
13043 * config/i386/i386.c (ix86_compute_frame_layout): Round up the
13044 SSE register save area to 16 bytes only if the incoming stack
13045 boundary is no less than 16 bytes.
13047 2015-10-08 Jeff Law <law@redhat.com>
13049 * tree-ssa-phiopt.c (factor_out_conversion): Add missing calls to
13050 release_ssa_name. Fix typo in comment.
13052 2015-10-08 Nathan Sidwell <nathan@acm.org>
13054 * config/nvptx/nvptx.h (struct machine_function): Add comment.
13055 * config/nvptx/nvptx.c (nvptx_declare_function_name): Functions
13056 may return pointer as well as in memory.
13057 (nvptx_output_return): Likewise.
13059 2015-10-08 Richard Sandiford <richard.sandiford@arm.com>
13061 * builtins.c (fold_builtin_sqrt, fold_builtin_cbrt): Delete.
13062 (fold_builtin_1): Update accordingly. Handle constant arguments here.
13063 * match.pd: Add rules previously handled by fold_builtin_sqrt
13064 and fold_builtin_cbrt.
13066 2015-10-08 Richard Sandiford <richard.sandiford@arm.com>
13068 * params.def (PARAM_MAX_SSA_NAME_QUERY_DEPTH): New param.
13069 * doc/invoke.texi (--param max-ssa-name-query-depth): Document.
13070 * fold-const.h (tree_unary_nonnegative_warnv_p)
13071 (tree_single_nonnegative_warnv_p, tree_call_nonnegative_warnv_p)
13072 (tree_expr_nonnegative_warnv_p): Add depth parameters.
13073 * fold-const.c: Include gimple-fold.h and params.h.
13074 (tree_ssa_name_nonnegative_warnv_p): New function.
13075 (tree_unary_nonnegative_warnv_p, tree_binary_nonnegative_warnv_p)
13076 (tree_single_nonnegative_warnv_p, tree_call_nonnegative_warnv_p)
13077 (tree_invalid_nonnegative_warnv_p, tree_expr_nonnegative_warnv_p):
13078 Add a depth parameter and increment it for recursive calls to
13079 tree_expr_nonnegative_warnv_p. Use tree_ssa_name_nonnegative_warnv_p
13080 to handle SSA names.
13081 * gimple-fold.h (gimple_val_nonnegative_real_p): Delete.
13082 (gimple_stmt_nonnegative_warnv_p): Declare.
13083 * tree-vrp.c (remove_range_assertions): Remove assert that condition
13084 cannot be proven false.
13085 (gimple_assign_nonnegative_warnv_p, gimple_call_nonnegative_warnv_p)
13086 (gimple_stmt_nonnegative_warnv_p): Move to...
13087 * gimple-fold.c: ...here. Add depth parameters and pass them
13088 down to the tree routines. Accept statements that aren't
13089 assignments or calls but just return false for them.
13090 (gimple_val_nonnegative_real_p): Delete.
13091 * tree-ssa-math-opts.c (gimple_expand_builtin_pow): Use
13092 tree_expr_nonnegative_p instead of gimple_val_nonnegative_real_p.
13093 Check HONOR_NANs first.
13095 2015-10-08 Martin Jambor <mjambor@suse.cz>
13097 * ipa-cp.c (meet_with_1): Make the argument of abs signed. Remove
13100 2015-10-08 Yuri Rumyantsev <ysrumyan@gmail.com>
13102 * tree-vect-loop.c (vect_analyze_loop_operations): Skip virtual phi
13103 in the tail of outer-loop.
13105 2015-10-08 David Edelsohn <dje.gcc@gmail.com>
13107 * config/rs6000/rs6000.c (rs6000_xcoff_debug_unwind_info): Always
13110 2015-10-08 Yuri Rumyantsev <ysrumyan@gmail.com>
13112 * tree-ssa-loop-unswitch.c: Include "gimple-iterator.h" and
13113 "cfghooks.h", add prototypes for introduced new functions.
13114 (tree_ssa_unswitch_loops): Use from innermost loop iterator, move all
13115 checks on ability of loop unswitching to tree_unswitch_single_loop;
13116 invoke tree_unswitch_single_loop or tree_unswitch_outer_loop depending
13117 on innermost loop check.
13118 (tree_unswitch_single_loop): Add all required checks on ability of
13119 loop unswitching under zero recursive level guard.
13120 (tree_unswitch_outer_loop): New function.
13121 (find_loop_guard): Likewise.
13122 (empty_bb_without_guard_p): Likewise.
13123 (used_outside_loop_p): Likewise.
13124 (get_vop_from_header): Likewise.
13125 (hoist_guard): Likewise.
13126 (check_exit_phi): Likewise.
13128 2015-10-08 Marek Polacek <polacek@redhat.com>
13130 * tree-ssa-reassoc.c (dump_ops_vector): Print newline after each
13133 2015-10-08 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
13136 * config/s390/s390.c (s390_atomic_assign_expand_fenv): Use
13137 create_tmp_var_raw instead of create_tmp_var.
13139 2015-10-07 Jan Hubicka <hubicka@ucw.cz>
13141 * expr.c (store_expr_with_bounds): Handle aggregate moves from
13143 * gimple-expr.c (useless_type_conversion_p): Do not use TYPE_CANONICAL
13144 to define gimple type system; compare aggregates only by size.
13146 2015-10-07 Jeff Law <law@redhat.com>
13148 * tree-ssa-dom.c (optimize_stmt): Don't set LOOPS_NEED_FIXUP here.
13149 * tree-ssa-threadupdate.c (remove_ctrl_stmt_and_useless_edges): Do it
13150 here instead. Tighten test to avoid setting LOOPS_NEED_FIXUP
13153 2015-10-07 Aditya Kumar <aditya.k7@samsung.com>
13154 Sebastian Pop <s.pop@samsung.com>
13156 * graphite-dependences.c (scop_get_dependences): Do not use SCOP_BBS.
13157 * graphite-isl-ast-to-gimple.c (get_max_schedule_dimensions): Same.
13158 (generate_isl_schedule): Same.
13159 * graphite-optimize-isl.c (scop_get_domains): Same.
13160 (apply_schedule_map_to_scop): Same.
13161 * graphite-poly.c (print_iteration_domains): Same.
13162 (remove_gbbs_in_scop): Same.
13165 (print_scop): Same.
13166 * graphite-poly.h (struct scop): Rename bbs to pbbs.
13167 (SCOP_BBS): Remove.
13168 * graphite-scop-detection.c (compare_bb_depths): Remove.
13169 (graphite_sort_dominated_info): Remove.
13170 (try_generate_gimple_bb): Move out of scop_detection.
13171 (all_non_dominated_preds_marked_p): Remove.
13172 (build_scop_bbs_1): Remove.
13173 (build_scop_bbs): Remove.
13174 (nb_pbbs_in_loops): Do not use SCOP_BBS.
13175 (find_scop_parameters): Same.
13176 (sese_dom_walker): Rename gather_bbs.
13177 (before_dom_children): Call try_generate_gimple_bb and collect gbb
13179 (build_scops): Call gather_bbs.
13180 * graphite-sese-to-poly.c (build_scop_scattering): Do not use SCOP_BBS.
13181 (add_conditions_to_constraints): Same.
13182 (build_scop_iteration_domain): Same.
13183 (build_scop_drs): Same.
13184 (new_pbb_from_pbb): Same.
13185 * sese.c (new_sese_info): Create bbs.
13186 * sese.h (struct sese_info_t): Add bbs.
13188 2015-10-07 David Edelsohn <dje.gcc@gmail.com>
13190 * config/rs6000/xcoff.h (ASM_PREFERRED_EH_DATA_FORMAT): Use 64-bit
13191 encoding in 64-bit mode.
13193 2015-10-07 Uros Bizjak <ubizjak@gmail.com>
13196 * config/i386/i386.c (ix86_option_override_internal): Always use
13197 8-byte minimum stack boundary in 64-bit mode.
13198 (ix86_compute_frame_layout): Remove assert on INCOMING_STACK_BOUNDARY.
13199 (ix86_emit_save_reg_using_mov): Support unaligned SSE store.
13200 Add a REG_CFA_EXPRESSION note if needed.
13201 (ix86_emit_restore_sse_regs_using_mov): Support unaligned SSE load.
13202 (ix86_handle_force_align_arg_pointer_attribute): New.
13203 (ix86_minimum_incoming_stack_boundary): Remove TARGET_64BIT check.
13204 (ix86_attribute_table): Set ix86_force_align_arg_pointer_string
13205 with ix86_handle_force_align_arg_pointer_attribute.
13206 * config/i386/i386.h (MIN_STACK_BOUNDARY): Set to BITS_PER_WORD.
13208 2015-10-07 Aditya Kumar <aditya.k7@samsung.com>
13209 Sebastian Pop <s.pop@samsung.com>
13211 * graphite-scop-detection.c (parameter_index_in_region): Remove
13212 use of SESE_ADD_PARAMS.
13213 (find_scop_parameters): Same.
13214 * sese.c (new_sese_info): Same.
13215 * sese.h (struct sese_info_t): Remove add_params.
13216 (SESE_ADD_PARAMS): Remove.
13218 2015-10-07 Aditya Kumar <aditya.k7@samsung.com>
13219 Sebastian Pop <s.pop@samsung.com>
13221 * graphite-isl-ast-to-gimple.c (translate_isl_ast_to_gimple): Use
13224 (copy_internal_parameters): Same.
13225 (translate_isl_ast_to_gimple): Use an sese_l.
13226 (build_iv_mapping): Same.
13227 * graphite-poly.c (new_sese): Rename new_sese_info.
13228 (free_sese): Rename free_sese_info.
13229 * graphite-poly.h (struct scop): Use an sese_info_p.
13230 (scop_set_region): Same.
13231 * graphite-scop-detection.c (struct sese_l): Moved...
13232 (get_entry_bb): Moved...
13233 (get_exit_bb): Moved...
13234 (parameter_index_in_region_1): Use an sese_info_p.
13235 (parameter_index_in_region): Same.
13236 (scan_tree_for_params): Same.
13237 (find_params_in_bb): Same.
13238 (sese_dom_walker): Use an sese_l.
13239 * graphite-sese-to-poly.c (remove_invariant_phi): Same.
13240 (reduction_phi_p): Same.
13241 (parameter_index_in_region_1): Use an sese_info_p.
13242 (propagate_expr_outside_region): Use an sese_l.
13243 * graphite.c: Replace uses of SCOP_REGION.
13244 * sese.c (sese_record_loop): Use an sese_info_p.
13245 (build_sese_loop_nests): Same.
13246 (sese_build_liveouts_use): Same.
13247 (sese_build_liveouts_bb): Same.
13248 (sese_build_liveouts_bb): Same.
13249 (sese_bad_liveouts_use): Same.
13250 (sese_reset_debug_liveouts_bb): Same.
13251 (sese_build_liveouts): Same.
13252 (new_sese): Renamed new_sese_info.
13253 (free_sese): Renamed free_sese_info.
13254 (set_rename): Use an sese_info_p.
13255 (graphite_copy_stmts_from_block): Same.
13256 (copy_bb_and_scalar_dependences): Same.
13257 (outermost_loop_in_sese_1): Use an sese_l.
13258 (outermost_loop_in_sese): Same.
13259 (if_region_set_false_region): Use an sese_info_p.
13260 (move_sese_in_condition): Same.
13261 (scalar_evolution_in_region): Use an sese_l.
13262 * sese.h (struct sese_l): ... here.
13263 (SESE_ENTRY): Remove.
13264 (SESE_ENTRY_BB): Remove.
13265 (SESE_EXIT): Remove.
13266 (SESE_EXIT_BB): Remove.
13267 (sese_contains_loop): Use an sese_info_p.
13268 (sese_nb_params): Same.
13269 (bb_in_sese_p): Use an sese_l.
13270 (stmt_in_sese_p): Same.
13271 (defined_in_sese_p): Same.
13272 (loop_in_sese_p): Same.
13273 (sese_loop_depth): Same.
13274 (struct ifsese_s): Use an sese_info_p.
13275 (gbb_loop_at_index): Use an sese_l.
13276 (nb_common_loops): Same.
13277 (scev_analyzable_p): Same.
13279 2015-10-07 H.J. Lu <hongjiu.lu@intel.com>
13281 * config/i386/i386.c (ix86_conditional_register_usage): Use
13282 CALL_USED_REGISTERS_MASK.
13283 * config/i386/i386.h (CALL_USED_REGISTERS_MASK): New macro.
13285 2015-10-07 H.J. Lu <hongjiu.lu@intel.com>
13288 * configure.ac (gcc_cv_readelf): Check $READELF_FOR_TARGET.
13289 * configure: Regenerated.
13291 2015-10-07 H.J. Lu <hongjiu.lu@intel.com>
13294 * config/i386/i386.c (ix86_maybe_switch_abi): Merged with ...
13295 (ix86_set_current_function): This.
13296 (TARGET_EXPAND_TO_RTL_HOOK): Removed.
13298 2015-10-07 Richard Biener <rguenther@suse.de>
13300 * tree-vectorizer.h (stmt_vec_info_vec): Use vec<stmt_vec_info>.
13301 (vinfo_for_stmt): Adjust.
13302 (set_vinfo_for_stmt): Likewise.
13303 * tree-vectorizer.c (stmt_vec_info_vec): Likewise.
13304 * tree-vect-stmts.c (free_stmt_vec_info_vec): Likewise.
13305 * tree-vect-loop.c (new_loop_vec_info): Remove special-casing
13307 (vect_analyze_loop_1): Remove.
13308 (vect_analyze_loop_form_1): Avoid building a loop_vec_info for
13309 inner loop when vectorizing an outer loop by splitting out from ...
13310 (vect_analyze_loop_form): ... here.
13312 2015-10-07 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
13315 * config/arm/arm-builtins.c (arm_atomic_assign_expand_fenv):
13316 Use create_tmp_var_raw instead of create_tmp_var.
13318 2015-10-07 Richard Sandiford <richard.sandiford@arm.com>
13320 * real.h (dconst_quarter, dconst_sixth, dconst_ninth): New macros.
13321 (dconst_quarter_ptr, dconst_sixth_ptr, dconst_ninth_ptr): Declare.
13322 * real.c (CACHED_FRACTION): New helper macro.
13323 (dconst_third_ptr): Use it.
13324 (dconst_quarter_ptr, dconst_sixth_ptr, dconst_ninth_ptr): New.
13325 * builtins.c (fold_builtin_sqrt): Use dconst_quarter and
13327 (fold_builtin_cbrt): Use dconst_sixth and dconst_ninth.
13329 2015-10-06 Jeff Law <law@redhat.com>
13331 PR tree-optimization/67816
13332 * tree-ssa-threadupdate.h (remove_jump_threads_including): Renamed
13333 from remove_jump_threads_starting_at. Accept an edge rather than
13335 * tree-ssa-threadupdate.c (removed_edges): New hash table.
13336 (remove_jump_threads_including): Note edges that get removed from
13337 the CFG for later pruning of jump threading paths including them.
13338 (thread_through_all_blocks): Remove paths which include edges that
13340 * tree-ssa-dom.c (optimize_stmt): Call remove_jump_threads_including
13341 on each outgoing edges when optimizing away a control statement.
13343 2015-10-06 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
13345 * reorg.c (emit_delay_sequence): Store list of delay slot insns
13346 in a vector instead of rtx_insn_list.
13347 (add_to_delay_list): Likewise.
13348 (delete_from_delay_slot): Likewise.
13349 (optimize_skip): Likewise.
13350 (redirect_with_delay_list_safe_p): Likewise.
13351 (check_annul_list_true_false): Likewise.
13352 (steal_delay_list_from_target): Likewise.
13353 (steal_delay_list_from_fallthrough): Likewise.
13354 (redundant_insn): Likewise.
13355 (fill_simple_delay_slots): Likewise.
13356 (fill_slots_from_thread): Likewise.
13357 (fill_eager_delay_slots): Likewise.
13358 (relax_delay_slots): Likewise.
13360 2015-10-06 Sandra Loosemore <sandra@codesourcery.com>
13362 * config/nios2/nios2.c (nios2_symbol_ref_in_small_data_p):
13363 For -mgpopt=local, also exclude unintialized common symbols.
13364 * doc/invoke.texi (Nios II Options): Document the change.
13366 2015-10-07 Kugan Vivekanandarajah <kuganv@linaro.org>
13368 * config/aarch64/iterators.md (vwcore): Add missing cases for
13371 2015-10-06 Aditya Kumar <aditya.k7@samsung.com>
13372 Sebastian Pop <s.pop@samsung.com>
13374 * graphite-poly.c (new_scop): Initialize drs.
13375 * graphite-poly.h (struct dr_info): New.
13376 (struct scop): Add drs.
13377 * graphite-sese-to-poly.c (pdr_add_alias_set): Use dr_info.
13378 (pdr_add_memory_accesses): Same.
13379 (build_poly_dr): Same.
13380 (build_alias_set): Same.
13381 (build_scop_drs): Same.
13382 (build_pbb_drs): Remove.
13383 * tree-data-ref.c (create_data_ref): Do not initialize alias_set.
13384 * tree-data-ref.h (data_reference): Remove alias_set.
13386 2015-10-06 Aditya Kumar <aditya.k7@samsung.com>
13387 Sebastian Pop <s.pop@samsung.com>
13389 * graphite-poly.c (free_data_refs_aux): Remove.
13390 (free_gimple_poly_bb): Do not call free_data_refs_aux.
13391 * graphite-poly.h (struct base_alias_pair): Remove.
13392 * graphite-sese-to-poly.c (pdr_add_alias_set): Remove all uses of
13393 base_alias_pair and dr->aux.
13394 (build_alias_set): Same.
13395 * tree-data-ref.c (create_data_ref): Initialize alias_set.
13396 * tree-data-ref.h (data_reference): Add alias_set.
13398 2015-10-06 Aditya Kumar <aditya.k7@samsung.com>
13399 Sebastian Pop <s.pop@samsung.com>
13401 * graphite-poly.c (new_poly_dr): Remove dr_base_object_set.
13402 Do not set PDR_BASE_OBJECT_SET.
13403 * graphite-poly.h (poly_dr): Same.
13404 (PDR_BASE_OBJECT_SET): Remove.
13405 (new_poly_dr): Update decl.
13406 * graphite-sese-to-poly.c (build_poly_dr): Update call to
13408 (write_alias_graph_to_ascii_dimacs): Remove.
13409 (write_alias_graph_to_ascii_dot): Remove.
13410 (write_alias_graph_to_ascii_ecc): Remove.
13411 (dr_same_base_object_p): Remove.
13412 (build_alias_set_optimal_p): Rename build_alias_set. Remove dead
13414 (build_base_obj_set_for_drs): Remove.
13415 (dump_alias_graphs): Remove.
13416 (build_scop_drs): Remove dead code.
13418 2015-10-05 Michael Meissner <meissner@linux.vnet.ibm.com>
13419 Peter Bergner <bergner@vnet.ibm.com>
13422 * config/rs6000/rs6000.md (extenddftf2): In the expander, only
13423 allow registers, but provide insns for the combiner to create for
13424 loads from memory. Separate VSX code from non-VSX code. For
13425 non-VSX code, combine extenddftf2_fprs into extenddftf2 and rename
13426 externaldftf2_internal to externaldftf2_fprs. Reorder constraints
13427 so that registers come before memory operations. Drop support from
13428 converting DFmode to TFmode, if the DFmode value is in a GPR
13430 (extenddftf2_fprs): Likewise.
13431 (extenddftf2_internal): Likewise.
13432 (extenddftf2_vsx): Likewise.
13433 (extendsftf2): In the expander, only allow registers, but provide
13434 insns for the combiner to create for stores and loads.
13436 2015-10-06 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
13438 * varasm.c (default_elf_asm_named_section): Remove ATTRIBUTE_UNUSED
13439 from the decl parameter.
13441 2015-10-06 Nathan Sidwell <nathan@codesourcery.com>
13444 * gimple-fold.c (gimple_fold_builtin): Add break after
13445 BUILT_IN_PRINTF_CHK, BUILT_IN_VPRINTF_CHK folding.
13447 2015-10-06 H.J. Lu <hongjiu.lu@intel.com>
13449 * graphite-optimize-isl.c (optimize_isl): Rename scop->ctx
13450 to scop->isl_context.
13452 2015-10-06 Eric Botcazou <ebotcazou@adacore.com>
13454 * config/arm/arm.c (arm_emit_probe_stack_range): Adjust comment.
13455 (output_probe_stack_range): Rotate the loop and simplify.
13456 (thumb1_expand_prologue): Tweak sorry message.
13457 * config/arm/arm.md (probe_stack): Use bare string.
13459 2015-10-06 Nick Clifton <nickc@redhat.com>
13461 * config.gcc (lm32-elf): Add newlib-stdint.h to tm_file.
13463 2015-10-06 Nick Clifton <nickc@redhat.com>
13465 * config/msp430/msp430.c (ATTR_NOINIT): New constant.
13466 (ATTR_PERSIST): New constant.
13467 (msp430_data_attr): New function - verifies an attribute that only
13468 applies to variables.
13469 (msp430_attributes): Add noinit and persistent attributes.
13470 (noinit_section): New variable.
13471 (presis_section): New variable.
13472 (TARGET_ASM_INIT_SECTIONS): Define.
13473 (msp430_init_sections): New function - initialises the noinit and
13474 persist section variables.
13475 (msp430_select_section): Add support for noinit and persist
13477 (msp430_section_type_flags): Likewise.
13478 * doc/extend.texi: Document the reent, critical, wakeup, noinit
13479 and persistent attributes.
13481 2015-10-05 Aditya Kumar <aditya.k7@samsung.com>
13482 Sebastian Pop <s.pop@samsung.com>
13484 * graphite-dependences.c (scop_get_transformed_schedule): Remove.
13485 (no_violations): Remove.
13486 (subtract_commutative_associative_deps): Remove.
13487 (compute_deps): Do not call subtract_commutative_associative_deps.
13488 (transform_is_safe): Remove.
13489 (graphite_legal_transform): Remove.
13490 * graphite-poly.h (graphite_legal_transform): Remove.
13492 2015-10-05 Aditya Kumar <hiraditya@msn.com>
13494 * graphite-sese-to-poly.c (build_loop_iteration_domains): Only loops
13495 which are in this region are passed so gcc_assert and remove redundant
13497 * sese.c (sese_build_liveouts): Pass only those bbs which are not
13499 (sese_bad_liveouts_use): Only BBs which are not in region are passed so
13500 gcc_assert on that and remove unnecessary computation.
13501 (sese_build_liveouts_use): Same.
13503 2015-10-05 Aditya Kumar <aditya.k7@samsung.com>
13505 * graphite-dependences.c (scop_get_reads): Renamed scop->context
13506 to scop->param_context.
13507 (scop_get_must_writes): Same.
13508 (scop_get_may_writes): Same.
13509 (scop_get_original_schedule): Same.
13510 (scop_get_transformed_schedule): Same.
13511 (subtract_commutative_associative_deps): Same.
13512 * graphite-isl-ast-to-gimple.c (add_parameters_to_ivs_params): Same.
13513 (generate_isl_context): Same.
13514 (generate_isl_schedule): Same.
13515 (scop_to_isl_ast): Same.
13516 (graphite_regenerate_ast_isl): Same.
13517 * graphite-optimize-isl.c (scop_get_domains): Same.
13518 (optimize_isl): Renamed scop->context to scop->param_context.
13519 * graphite-poly.c (new_poly_bb): Change the type of argument to
13521 (new_scop): Renamed scop->context to scop->param_context.
13523 (print_scop_context): Same.
13524 * graphite-poly.h (new_poly_dr): Change the type of argument from
13525 void* to data_reference_p.
13526 (struct poly_bb): Change the type of black_box to gimple_poly_bb_p.
13527 (new_poly_bb): Change the type of argument from void* to
13529 (pbb_set_black_box): Same.
13530 (struct scop): Rename context to param_context, ctx to isl_context.
13531 * graphite-scop-detection.c (scop_detection::build_scop_bbs_1):
13532 Move declarations closer to assignment.
13533 (find_params_in_bb): Same.
13534 (find_scop_parameters): Same.
13535 * graphite-sese-to-poly.c (unsigned ssa_name_version_typesize):
13536 Global to be used for statement IDs.
13537 (isl_id_for_pbb): Use ssa_name_version_typesize.
13538 (simple_copy_phi_p): Move declarations closer to assignment.
13539 (build_pbb_scattering_polyhedrons): Same.
13540 (build_scop_scattering): Same.
13541 (isl_id_for_ssa_name): Same.
13542 (extract_affine_name): Same.
13543 (extract_affine_int): Same.
13544 (extract_affine): Same.
13545 (set_scop_parameter_dim): Use renamed member.
13546 (build_loop_iteration_domains): Same.
13547 (add_param_constraints): Same.
13548 (build_scop_iteration_domain): Same.
13549 (pdr_add_data_dimensions): Same.
13550 (build_poly_dr): Same.
13551 (build_scop_drs): Move declarations closer to assignment.
13552 (analyze_drs_in_stmts): Same.
13553 (insert_out_of_ssa_copy): Same.
13554 (insert_out_of_ssa_copy_on_edge): Same.
13555 (propagate_expr_outside_region): Same.
13556 (rewrite_phi_out_of_ssa): Same.
13557 (rewrite_degenerate_phi): Same.
13558 (rewrite_reductions_out_of_ssa): Same.
13559 (rewrite_cross_bb_scalar_dependence): Same.
13560 (handle_scalar_deps_crossing_scop_limits): Same.
13561 (rewrite_cross_bb_scalar_deps): Same.
13562 * graphite.c (graphite_transform_loops): Use renamed member.
13564 2015-10-06 Uros Bizjak <ubizjak@gmail.com>
13567 * config/alpha/alpha.c (alpha_atomic_assign_expand_fenv): Use
13568 create_tmp_var_raw instead of create_tmp_var.
13570 2015-10-06 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
13573 * config/aarch64/aarch64-builtins.c (aarch64_atomic_assign_expand_fenv):
13574 Use create_tmp_var_raw instead of create_tmp_var.
13576 2015-10-06 Alexander Fomin <alexander.fomin@intel.com>
13579 * config/i386/sse.md (define_split vec_select/V8FI): Restrict
13580 split for upper-bank registers when target does not support
13582 (define_insn "vec_extract_lo_<mode><mask_name>"): Restrict
13583 split when target does not support AVX512VL.
13585 2015-10-06 David Edelsohn <dje.gcc@gmail.com>
13588 * config/rs6000/rs6000.c (rs6000_atomic_assign_expand_fenv):
13589 Adjust to use create_tmp_var_raw instead of create_tmp_var.
13591 2015-10-06 Nick Clifton <nickc@redhat.com>
13593 * config/rl78/rl78.c (rl78_rtx_costs): Improve cost estimates for
13596 2015-10-06 Venkataramanan Kumar <Venkataramanan.kumar@amd.com>
13598 * config.gcc (i[34567]86-*-linux* | ...): Add znver1.
13599 (case ${target}): Add znver1.
13600 * config/i386/cpuid.h(bit_CLZERO): Define.
13601 * config/i386/driver-i386.c: (host_detect_local_cpu): Let
13602 -march=native recognize znver1 processors.
13603 * config/i386/i386-c.c (ix86_target_macros_internal): Add
13604 znver1, clzero def_and_undef.
13605 * config/i386/i386.c (struct processor_costs znver1_cost): New.
13606 (m_znver1): New definition.
13607 (m_AMD_MULTIPLE): Includes m_znver1.
13608 (processor_target_table): Add znver1 entry.
13609 (ix86_target_string) : Add clzero entry.
13610 (static const char *const cpu_names): Add znver1 entry.
13611 (ix86_option_override_internal): Add znver1 instruction sets.
13612 (PTA_CLZERO) : New definition.
13613 (ix86_option_override_internal): Handle new clzerooption.
13614 (ix86_issue_rate): Add znver1.
13615 (ix86_adjust_cost): Add znver1.
13616 (ia32_multipass_dfa_lookahead): Add znver1.
13617 (has_dispatch): Add znver1.
13618 * config/i386/i386.h (TARGET_znver1): New definition.
13619 (TARGET_CLZERO): Define.
13620 (TARGET_CLZERO_P): Define.
13621 (struct ix86_size_cost): Add TARGET_ZNVER1.
13622 (enum processor_type): Add PROCESSOR_znver1.
13623 * config/i386/i386.md (define_attr "cpu"): Add znver1.
13624 (set_attr znver1_decode): New definitions for znver1.
13625 * config/i386/i386.opt (flag_dispatch_scheduler): Add znver1.
13627 * config/i386/mmx.md (set_attr znver1_decode): New definitions
13629 * config/i386/sse.md (set_attr znver1_decode): Likewise.
13630 * config/i386/x86-tune.def: Add znver1 tunings.
13631 * config/i386/znver1.md: Introduce znver1 cpu and include new md file.
13632 * doc/invoke.texi: Add details about znver1
13634 2015-10-06 Richard Biener <rguenther@suse.de>
13636 PR tree-optimization/67859
13637 * tree-ssa-pre.c (create_expression_by_pieces): Properly
13638 discard not inserted stmts.
13640 2015-10-06 Jonathan Wakely <jwakely@redhat.com>
13642 * doc/extend.texi (Template Instantiation): Reorder options and
13643 de-emphasize -frepo.
13644 * doc/invoke.texi (C++ Dialect Options): Use -fstrict-enums in
13645 example instead of -frepo.
13647 2015-10-06 Eric Botcazou <ebotcazou@adacore.com>
13650 * config/sparc/sparc.c (sparc_atomic_assign_expand_fenv): Adjust to
13651 use create_tmp_var_raw rather than create_tmp_var.
13653 2015-10-06 Richard Biener <rguenther@suse.de>
13655 * tree-vectorizer.h (vec_info): New base class for...
13656 (_loop_vec_info): ... this and ...
13657 (_bb_vec_info): ... this.
13658 (vect_is_simple_use, vect_is_simple_use_1, new_stmt_vec_info,
13659 vect_analyze_data_refs_alignment, vect_verify_datarefs_alignment,
13660 vect_analyze_data_ref_accesses, vect_analyze_data_refs,
13661 vect_schedule_slp, vect_analyze_slp, vect_pattern_recog,
13662 vect_destroy_datarefs): Adjust interface to take a vec_info *
13663 rather than both a loop_vec_info and a bb_vec_info argument.
13664 * tree-vect-data-refs.c (vect_compute_data_refs_alignment,
13665 vect_verify_datarefs_alignment, vect_enhance_data_refs_alignment,
13666 vect_analyze_data_refs_alignment, vect_analyze_data_ref_accesses,
13667 vect_analyze_data_refs, vect_create_data_ref_ptr): Adjust
13669 * tree-vect-loop.c (new_loop_vec_info): Initialize base class.
13670 (destroy_loop_vec_info, vect_analyze_loop_2,
13671 vect_is_simple_reduction_1, get_initial_def_for_induction,
13672 vect_create_epilog_for_reduction, vectorizable_reduction,
13673 vectorizable_live_operation, vect_transform_loop): Adjust.
13674 * tree-vect-patterns.c (type_conversion_p,
13675 vect_recog_widen_mult_pattern, vect_recog_widen_shift_pattern,
13676 vect_recog_rotate_pattern, vect_recog_vector_vector_shift_pattern,
13677 vect_recog_divmod_pattern, vect_recog_mixed_size_cond_pattern,
13678 check_bool_pattern, vect_recog_bool_pattern,
13679 vect_mark_pattern_stmts, vect_pattern_recog): Likewise.
13680 * tree-vect-slp.c (vect_get_and_check_slp_defs,
13681 vect_build_slp_tree_1, vect_build_slp_tree, vect_analyze_slp_cost_1,
13682 vect_analyze_slp_instance, vect_analyze_slp, destroy_bb_vec_info,
13683 vect_slp_analyze_bb_1, vect_schedule_slp): Likewise.
13684 (new_bb_vec_info): Initialize base classs.
13685 * tree-vect-stmts.c (record_stmt_cost, process_use,
13686 vect_get_vec_def_for_operand, vect_finish_stmt_generation,
13687 vectorizable_mask_load_store, vectorizable_call,
13688 vectorizable_simd_clone_call, vectorizable_conversion,
13689 vectorizable_assignment, vectorizable_shift,
13690 vectorizable_operation, vectorizable_store,
13691 vectorizable_load, vect_is_simple_cond, vectorizable_condition,
13692 new_stmt_vec_info, vect_is_simple_use, vect_is_simple_use_1): Likewise.
13693 * tree-vectorizer.c (vect_destroy_datarefs): Likewise.
13695 2015-10-05 Kaz Kojima <kkojima@gcc.gnu.org>
13698 * config/sh/sh.c (sh_atomic_assign_expand_fenv): Adjust to use
13699 create_tmp_var_raw rather than create_tmp_var.
13701 2015-10-05 Marek Polacek <polacek@redhat.com>
13703 * tree-ssa-loop-im.c
13704 (move_computations_dom_walker::before_dom_children): Don't set
13705 SSA_NAME_ANTI_RANGE_P.
13706 * tree-ssa-phiopt.c (value_replacement): Likewise.
13708 2015-10-05 Aditya Kumar <aditya.k7@samsung.com>
13709 Sebastian Pop <s.pop@samsung.com>
13711 * params.def (PARAM_GRAPHITE_MAX_NB_SCOP_PARAMS): Increase to 7.
13713 2015-10-05 Aditya Kumar <aditya.k7@samsung.com>
13714 Sebastian Pop <s.pop@samsung.com>
13716 * graphite-poly.c (new_gimple_poly_bb): ... here.
13717 (free_data_refs_aux): ... here.
13718 (free_gimple_poly_bb): ... here.
13719 (remove_gbbs_in_scop): ... here.
13720 (new_scop): Call new_sese.
13721 (free_scop): Call remove_gbbs_in_scop and free_sese.
13722 * graphite-poly.h (base_alias_pair): ... here.
13723 (new_gimple_poly_bb): Declare.
13724 (free_gimple_poly_bb): Declare.
13725 * graphite-scop-detection.c (parameter_index_in_region_1):
13726 (parameter_index_in_region): ... here.
13727 (scan_tree_for_params): ... here.
13728 (find_params_in_bb): ... here.
13729 (find_scop_parameters): ... here.
13730 (build_scops): Call find_scop_parameters.
13731 * graphite-sese-to-poly.c (free_gimple_poly_bb): Move...
13732 (free_scops): Move...
13733 (single_pred_cond_non_loop_exit): Move...
13734 (sese_dom_walker::before_dom_children): Move...
13735 (sese_dom_walker::after_dom_children): Move...
13736 (build_poly_scop): Move...
13737 * graphite-sese-to-poly.h (base_alias_pair): Move...
13738 * graphite.c (free_scops): ... here.
13740 2015-10-05 Aditya Kumar <aditya.k7@samsung.com>
13741 Sebastian Pop <s.pop@samsung.com>
13743 * graphite-scop-detection.c: Include domwalk.h and tree-cfg.h.
13744 (trivially_empty_bb_p): Move...
13745 (same_close_phi_node): Move...
13746 (new_gimple_poly_bb): Move...
13747 (compare_bb_depths): Move...
13748 (graphite_sort_dominated_info): Move...
13749 (remove_duplicate_close_phi): Move...
13750 (make_close_phi_nodes_unique): Move...
13751 (canonicalize_loop_closed_ssa): Move...
13752 (canonicalize_loop_closed_ssa_form): Move...
13753 (loop_ivs_can_be_represented): Move...
13754 (single_pred_cond_non_loop_exit): Move...
13755 (graphite_can_represent_init): Move...
13756 (graphite_can_represent_scev): Move...
13757 (stmt_has_simple_data_refs_p): Move...
13758 (stmt_has_side_effects): Move...
13759 (graphite_can_represent_stmt): Move...
13760 (scop_detection): ... here.
13761 (sese_dom_walker): ... and here.
13762 (build_scops): Call all moved functions.
13763 * graphite-sese-to-poly.c (try_generate_gimple_bb): Move...
13764 (all_non_dominated_preds_marked_p): Move...
13765 (build_scop_bbs_1): Move...
13766 (build_scop_bbs): Move...
13767 (set_scop_parameter_dim): Move...
13768 (nb_pbbs_in_loops): Move...
13769 (build_poly_scop): Do not call all the moved functions.
13771 2015-10-05 Martin Jambor <mjambor@suse.cz>
13772 Jan Hubicka <hubicka@ucw.cz>
13774 * ipa-cp.c (ipcp_alignment_lattice): New type.
13775 (ipcp_param_lattices): Use the above to represent alignment.
13776 (ipcp_alignment_lattice::print): New function.
13777 (print_all_lattices): Use it to print alignment information.
13778 (ipcp_alignment_lattice::top_p): New function.
13779 (ipcp_alignment_lattice::bottom_p): Likewise.
13780 (ipcp_alignment_lattice::set_to_bottom): Likewise.
13781 (ipcp_alignment_lattice::meet_with_1): Likewise.
13782 (ipcp_alignment_lattice::meet_with): Two new overloaded functions.
13783 (set_all_contains_variable): Use set_to_bottom of alignment lattice.
13784 (initialize_node_lattices): Likewise.
13785 (propagate_alignment_accross_jump_function): Work with the new class
13786 for alignment lattices.
13787 (propagate_constants_accross_call): Pass only the alignment lattice to
13788 propagate_alignment_accross_jump_function.
13789 (ipcp_store_alignment_results): Work with the new class for alignment
13792 2015-10-05 Marek Polacek <polacek@redhat.com>
13794 PR tree-optimization/67821
13795 * tree-ssanames.c (duplicate_ssa_name_range_info): Remove an assert.
13797 2015-10-05 Thomas Schwinge <thomas@codesourcery.com>
13800 * config/i386/intelmic-mkoffload.c (mkoffload_atexit): Rename
13802 (mkoffload_cleanup): ... this. Adjust all users.
13803 (maybe_unlink): Look at save_temps and verbose flags instead of
13805 (main): Parse "-save-temps" flag.
13806 (generate_target_descr_file, generate_target_offloadend_file)
13807 (generate_host_descr_file, prepare_target_image): Pass it on.
13808 * config/nvptx/mkoffload.c (tool_cleanup): Implement.
13809 (mkoffload_cleanup): New function.
13810 (maybe_unlink): Look at save_temps and verbose flags instead of
13812 (main): Instead of calling utils_cleanup, register atexit handler
13813 for mkoffload_cleanup.
13814 (main): Parse "-save-temps" flag.
13815 (compile_native, main): Pass it on.
13816 * lto-wrapper.c (compile_offload_image): Likewise.
13818 2015-10-05 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
13820 * gimple.h (gimple_op_ptr): Require a non const gimple *.
13821 (gimple_assign_lhs_ptr): Likewise.
13822 (gimple_assign_rhs1_ptr): Likewise.
13823 (gimple_assign_rhs2_ptr): Likewise.
13824 (gimple_assign_rhs3_ptr): Likewise.
13825 (gimple_call_lhs_ptr): Likewise.
13826 (gimple_call_fn_ptr): Likewise.
13827 (gimple_call_chain_ptr): Likewise.
13828 (gimple_call_arg_ptr): Likewise.
13829 (gimple_cond_lhs_ptr): Likewise.
13830 (gimple_cond_rhs_ptr): Likewise.
13831 (gimple_switch_index_ptr): Likewise.
13832 (gimple_return_retval_ptr): Likewise.
13834 2015-10-05 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
13836 * gimple.h (gimple_asm_input_op_ptr): Remove.
13837 (gimple_asm_output_op_ptr): Likewise.
13839 2015-10-05 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
13841 * gimple.h (gimple_location_ptr): Remove.
13842 * tree-vrp.c (check_all_array_refs): Adjust.
13844 2015-10-05 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
13846 * tree-ssa-operands.c (build_uses): store tree * instead of
13848 (finalize_ssa_uses): Adjust.
13849 (append_use): Likewise.
13850 (verify_ssa_operands): Likewise.
13852 2015-10-05 Richard Sandiford <richard.sandiford@arm.com>
13854 * real.h (build_real_truncate): Declare.
13855 * tree.c (build_real_truncate): New function.
13856 (strip_float_extensions): Use it.
13857 * builtins.c (fold_builtin_cabs, fold_builtin_sqrt, fold_builtin_cbrt)
13858 (fold_builtin_hypot, fold_builtin_pow): Likewise.
13859 * match.pd: Likewise.
13861 2015-10-05 James Greenhalgh <james.greenhalgh@arm.com>
13862 Jiong Wang <jiong.wang@arm.com>
13864 * config/aarch64/aarch64.md (tlsie_tiny_sidi): Replace "<w>" with "w".
13866 2015-10-05 Richard Sandiford <richard.sandiford@arm.com>
13868 * real.h (REAL_VALUE_FROM_CONST_DOUBLE): Delete.
13869 * config/aarch64/aarch64.c (aarch64_float_const_zero_rtx_p)
13870 (aarch64_print_operand, aarch64_float_const_representable_p)
13871 (aarch64_output_simd_mov_immediate): Use CONST_DOUBLE_REAL_VALUE
13872 instead of REAL_VALUE_FROM_CONST_DOUBLE.
13873 * config/arc/arc.c (arc_print_operand): Likewise.
13874 * config/arm/arm.c (arm_const_double_rtx, vfp3_const_double_index)
13875 (neon_valid_immediate, arm_print_operand, arm_emit_fp16_const)
13876 (vfp3_const_double_for_fract_bits, vfp3_const_double_for_bits):
13878 * config/arm/arm.md (*arm32_movhf, consttable_4, consttable_8)
13879 (consttable_16): Likewise.
13880 * config/arm/vfp.md (*movhf_vfp_neon, *movhf_vfp): Likewise.
13881 * config/avr/avr.c (avr_print_operand): Likewise.
13882 * config/bfin/bfin.md: Likewise (in a define_split).
13883 * config/c6x/c6x.md: Likewise (in a define_split).
13884 * config/cr16/cr16.c (cr16_const_double_ok): Likewise.
13885 (cr16_print_operand): Likewise.
13886 * config/cris/cris.c (cris_print_operand): Likewise.
13887 * config/epiphany/epiphany.c (epiphany_print_operand): Likewise.
13888 * config/fr30/fr30.c (fr30_print_operand): Likewise.
13889 (fr30_const_double_is_zero): Likewise.
13890 * config/frv/frv.c (frv_print_operand, output_move_single): Likewise.
13891 * config/frv/frv.md: Likewise (in a define_split).
13892 * config/frv/predicates.md (int_2word_operand): Likewise.
13893 * config/h8300/h8300.c (h8300_print_operand): Likewise.
13894 * config/i386/i386.c (standard_80387_constant_p): Likewise.
13895 (ix86_print_operand, ix86_split_to_parts): Likewise.
13896 * config/i386/i386.md: Likewise (in a define_split).
13897 * config/ia64/ia64.c (ia64_split_tmode, ia64_print_operand): Likewise.
13898 * config/iq2000/iq2000.md (movsf_lo_sum, movsf_high): Likewise.
13899 * config/m32r/m32r.c (easy_df_const, m32r_print_operand): Likewise.
13900 * config/m68k/m68k.c (handle_move_double, standard_68881_constant_p)
13901 (print_operand): Likewise.
13902 * config/m68k/m68k.md (movsf_cf_hard, movdf_cf_hard): Likewise.
13903 * config/mep/mep.md: Likewise (in define_split).
13904 * config/microblaze/microblaze.c (microblaze_const_double_ok)
13905 (print_operand): Likewise.
13906 * config/mips/mips.md (consttable_float): Likewise.
13907 * config/mmix/mmix.c (mmix_intval): Likewise.
13908 * config/mn10300/mn10300.c (mn10300_print_operand): Likewise.
13909 * config/nvptx/nvptx.c (nvptx_print_operand): Likewise.
13910 * config/pa/pa.c (pa_singlemove_string): Likewise.
13911 * config/pdp11/pdp11.c (pdp11_expand_operands): Likewise.
13912 (pdp11_asm_print_operand, legitimate_const_double_p): Likewise.
13913 * config/rs6000/rs6000.c (num_insns_constant, rs6000_emit_cmove)
13914 (output_toc): Likewise.
13915 * config/rs6000/rs6000.md: Likewise (in define_splits).
13916 * config/rx/rx.c (rx_print_operand): Likewise.
13917 * config/s390/s390.c (s390_output_pool_entry): Likewise.
13918 * config/sh/sh.c (fp_zero_operand, fp_one_operand): Likewise.
13919 * config/sh/sh.md (consttable_sf, consttable_df): Likewise
13920 (and also in define_splits).
13921 * config/sparc/sparc.c (fp_sethi_p, fp_mov_p): Likewise.
13922 (fp_high_losum_p): Likewise.
13923 * config/sparc/sparc.md (*movsf_insn, *movsf_lo_sum): Likewise.
13924 (*movsf_high): Likewise.
13925 * config/spu/spu.c (const_double_to_hwint): Likewise.
13926 * config/v850/v850.c (const_double_split): Likewise.
13927 * config/vax/vax.c (vax_float_literal): Likewise.
13928 * config/visium/visium.c (visium_expand_copysign): Likewise.
13929 * config/visium/visium.md: Likewise (in define_split).
13930 * config/xtensa/predicates.md (const_float_1_operand): Likewise.
13931 * config/xtensa/xtensa.c (print_operand): Likewise.
13932 (xtensa_output_literal): Likewise.
13933 * cprop.c (implicit_set_cond_p): Likewise.
13934 * dwarf2out.c (insert_float): Likewise.
13935 * expmed.c (expand_mult, make_tree): Likewise.
13936 * expr.c (compress_float_constant): Likewise.
13937 * rtlanal.c (split_double): Likewise.
13938 * simplify-rtx.c (avoid_constant_pool_reference): Likewise.
13939 (simplify_const_unary_operation, simplify_binary_operation_1)
13940 (simplify_const_binary_operation): Likewise.
13941 (simplify_const_relational_operation): Likewise.
13942 * varasm.c (output_constant_pool_2): Likewise.
13944 2015-10-05 Richard Sandiford <richard.sandiford@arm.com>
13946 * real.h (CONST_DOUBLE_ATOF): Use const_double_from_real_value
13947 instead of CONST_DOUBLE_FROM_REAL_VALUE.
13948 (CONST_DOUBLE_FROM_REAL_VALUE): Delete.
13949 * config/c6x/c6x.md (divsf3, divdf3): Use const_double_from_real_value
13950 instead of CONST_DOUBLE_FROM_REAL_VALUE.
13951 * config/epiphany/epiphany.md (fixuns_truncsfsi2): Likewise.
13952 * config/i386/i386.c (standard_80387_constant_rtx): Likewise.
13953 (ix86_expand_builtin, ix86_emit_i387_log1p, ix86_emit_i387_round)
13954 (ix86_emit_swsqrtsf): Likewise.
13955 * config/ia64/ia64.c (ia64_expand_builtin): Likewise.
13956 * config/mips/mips.md (fixuns_truncdfsi2, fixuns_truncdfdi2)
13957 (fixuns_truncsfsi2, fixuns_truncsfdi2): Likewise.
13958 * config/pa/pa.c (pa_expand_builtin): Likewise.
13959 * config/rs6000/rs6000.c (rs6000_load_constant_and_splat): Likewise.
13960 (rs6000_scale_v2df): Likewise.
13961 * config/rs6000/rs6000.md (*cmptf_internal2): Likewise.
13962 * config/s390/s390.md (fixuns_truncdddi2, fixuns_trunctddi2)
13963 (fixuns_trunc<BFP:mode><GPR:mode>2): Likewise.
13964 * config/s390/vx-builtins.md (vec_ctd_s64, vec_ctd_u64, vec_ctsl)
13965 (vec_ctul): Likewise.
13966 * config/sparc/sparc.c (sparc_emit_fixunsdi): Likewise.
13967 * config/spu/spu.c (hwint_to_const_double, spu_float_const): Likewise.
13968 * config/spu/spu.md (floatunsdisf2, floatunstisf2): Likewise.
13969 * cse.c (fold_rtx): Likewise.
13970 * emit-rtl.c (immed_double_const): Likewise (in comments).
13971 (init_emit_once): Likewise.
13972 * expr.c (compress_float_constant, expand_expr_real_1)
13973 (const_vector_from_tree): Likewise.
13974 * optabs.c (expand_float, expand_fix): Likewise.
13975 * reg-stack.c (reg_to_stack): Likewise.
13976 * simplify-rtx.c (avoid_constant_pool_reference): Likewise.
13977 (simplify_const_unary_operation, simplify_binary_operation_1)
13978 (simplify_const_binary_operation, simplify_relational_operation)
13979 (simplify_immed_subreg): Likewise.
13981 2015-10-05 Richard Sandiford <richard.sandiford@arm.com>
13983 * doc/tm.texi.in (REAL_ARITHMETIC): Delete.
13984 * doc/tm.texi: Regenerate.
13985 * real.h (REAL_ARITHMETIC): Delete.
13986 * config/i386/i386.c (ix86_expand_lround, ix86_expand_round)
13987 (ix86_expand_round_sse4): Use real_arithmetic instead of
13989 * config/i386/sse.md (round<mode>2): Likewise.
13990 * rtl.h (rtx_to_tree_code): Likewise (in comment).
13991 * explow.c (rtx_to_tree_code): Likewise (in comment).
13992 * match.pd: Likewise.
13993 * simplify-rtx.c (simplify_binary_operation_1): Likewise.
13994 * tree-ssa-math-opts.c (representable_as_half_series_p): Likewise.
13995 (expand_pow_as_sqrts): Likewise.
13996 * tree-pretty-print.c (dump_generic_node): Remove code that
13997 was conditional on REAL_ARITHMETIC being undefined.
13999 2015-10-05 Richard Sandiford <richard.sandiford@arm.com>
14001 * doc/tm.texi.in (REAL_VALUES_LESS): Delete.
14002 * doc/tm.texi: Regenerate.
14003 * real.h (real_less): Declare.
14004 (REAL_VALUES_LESS): Delete.
14005 * real.c (real_less): New function.
14006 (real_compare): Use it.
14007 * config/m68k/m68k.c (floating_exact_log2): Use real_less instead
14008 of REAL_VALUES_LESS.
14009 * config/microblaze/microblaze.c (microblaze_const_double_ok):
14011 * fold-const.c (fold_convert_const_int_from_real): Likewise.
14012 * simplify-rtx.c (simplify_const_unary_operation): Likewise.
14013 (simplify_const_relational_operation): Likewise.
14014 * tree-call-cdce.c (check_pow): Likewise.
14015 (gen_conditions_for_pow_cst_base): Likewise.
14017 2015-10-05 Richard Sandiford <richard.sandiford@arm.com>
14019 * real.h (REAL_VALUES_IDENTICAL): Delete.
14020 * config/m68k/m68k.c (standard_68881_constant_p): Use real_identical
14021 instead of REAL_VALUES_IDENTICAL.
14022 * fold-const.c (operand_equal_p): Likewise.
14023 * ipa-icf.c (sem_variable::equals): Likewise.
14024 * tree-complex.c (some_nonzerop): Likewise.
14025 (expand_complex_multiplication): Likewise.
14026 * tree.c (simple_cst_equal): Likewise.
14027 * varasm.c (compare_constant): Likewise.
14029 2015-10-05 Richard Sandiford <richard.sandiford@arm.com>
14031 * real.h (real_equal): Declare.
14032 (REAL_VALUES_EQUAL): Delete.
14033 * real.c (real_equal): New function.
14034 (real_compare): Use it.
14035 * doc/tm.texi.in (REAL_VALUES_EQUAL): Delete.
14036 * doc/tm.texi: Regenerate.
14037 * builtins.c (fold_builtin_pow, fold_builtin_load_exponent): Use
14038 real_equal instead of REAL_VALUES_EQUAL.
14039 * config/aarch64/aarch64.c (aarch64_float_const_zero_rtx_p): Likewise.
14040 * config/arm/arm.c (arm_const_double_rtx, neon_valid_immediate)
14041 (fp_const_from_val): Likewise.
14042 * config/fr30/fr30.c (fr30_const_double_is_zero): Likewise.
14043 * config/m68k/m68k.c (standard_68881_constant_p): Likewise.
14044 (floating_exact_log2): Likewise.
14045 * config/sh/sh.c (fp_zero_operand, fp_one_operand): Likewise.
14046 * config/vax/vax.c (vax_float_literal): Likewise.
14047 * config/xtensa/predicates.md (const_float_1_operand): Likewise.
14048 * cprop.c (implicit_set_cond_p): Likewise.
14049 * expmed.c (expand_mult): Likewise.
14050 * fold-const.c (const_binop): Likewise.
14051 * simplify-rtx.c (simplify_binary_operation_1): Likewise.
14052 (simplify_const_binary_operation): Likewise.
14053 (simplify_const_relational_operation): Likewise.
14054 * tree-call-cdce.c (check_pow): Likewise.
14055 (gen_conditions_for_pow_cst_base): Likewise.
14056 * tree-inline.c (estimate_num_insns): Likewise.
14057 * tree-ssa-dom.c (record_equality): Likewise.
14058 * tree-ssa-math-opts.c (representable_as_half_series_p): Likewise.
14059 (gimple_expand_builtin_pow): Likewise.
14060 (pass_optimize_widening_mul::execute): Likewise.
14061 * tree-ssa-uncprop.c (associate_equivalences_with_edges): Likewise.
14062 * tree-vect-patterns.c (vect_recog_pow_pattern): Likewise.
14063 * tree.c (real_zerop, real_onep, real_minus_onep): Likewise.
14065 2015-10-05 Richard Biener <rguenther@suse.de>
14068 * ipa-inline-analysis.c (estimate_function_body_sizes): Only
14069 consider loop header PHI defs as IVs.
14071 2015-10-05 Richard Biener <rguenther@suse.de>
14073 * tree-ssa-pre.c (create_component_ref_by_pieces_1): Move
14075 (create_expression_by_pieces): ... here and build GIMPLE
14076 calls directly. Use gimple_build API and avoid force_gimple_operand.
14077 (insert_into_preds_of_block): Simplify.
14078 (do_regular_insertion): Add comment.
14080 2015-10-04 Jason Merrill <jason@redhat.com>
14082 * builtins.def (BUILT_IN_ABORT): Add transaction_pure attribute.
14084 2015-10-04 Uros Bizjak <ubizjak@gmail.com>
14086 * config/i386/i386.c (ix86_nsaved_regs): Use GENERAL_REGNO_P to
14087 check for general register.
14088 (ix86_emit_save_regs): Ditto.
14089 (ix86_emit_save_regs_using_mov): Ditto.
14090 (ix86_emit_restore_regs_using_pop): Ditto.
14091 (ix86_emit_restore_regs_using_mov): Ditto.
14093 2015-10-03 Marek Polacek <polacek@redhat.com>
14095 * Makefile.in (insn-latencytab.o): Remove -Wno-duplicated-cond.
14096 (insn-dfatab.o): Likewise.
14098 2015-10-03 Max Filippov <jcmvbkbc@gmail.com>
14100 * config.gcc (xtensa*-*-uclinux*): New configuration.
14101 * config/xtensa/uclinux.h: New file.
14102 * config/xtensa/uclinux.opt: New file.
14104 2015-10-03 Jonathan Wakely <jwakely@redhat.com>
14106 * doc/cpp.texi (Standard Predefined Macros): Document value of
14107 __cplusplus for C++14.
14109 2015-10-02 Bernd Schmidt <bernds@codesourcery.com>
14111 * gcc.c (process_command): Use spec_machine rather than
14112 spec_host_machine to build tooldir_prefix2.
14114 2015-10-02 Thomas Schwinge <thomas@codesourcery.com>
14115 Bernd Schmidt <bernds@codesourcery.com>
14117 * config/nvptx/mkoffload.c (Kind, Vis): Remove enums.
14118 (Token, Stmt): Remove structs.
14119 (decls, vars, fns): Remove variables.
14120 (alloc_comment, append_stmt, is_keyword): Remove macros.
14121 (tokenize, write_token, write_tokens, alloc_stmt, rev_stmts)
14122 (write_stmt, write_stmts, parse_insn, parse_list_nosemi)
14123 (parse_init, parse_file): Remove functions.
14124 (read_file): Accept a pointer to a length and store into it.
14125 (process): Don't try to parse the input file, just write it out as
14126 a string, but looking for maps. Also write out the length.
14127 (main): Don't use "-S" to compile PTX code.
14129 2015-10-02 Jeff Law <law@redhat.com>
14131 * tree-ssa-dom.c (optimize_stmt): Note when loop structures need
14134 2015-10-02 Thomas Schwinge <thomas@codesourcery.com>
14137 * config/nvptx/mkoffload.c (main): Scan the argument vector for
14138 -fopenmp, and skip generating an offloading image if specified.
14140 2015-10-02 Uros Bizjak <ubizjak@gmail.com>
14142 * system.h (ROUND_UP): New macro definition.
14143 (ROUND_DOWN): Ditto.
14144 * ggc-page.c (ROUND_UP): Remove local macro definition.
14145 (PAGE_ALIGN): Implement using ROUND_UP macro.
14147 * config/i386/i386.h (PUSH_ROUNDING): Implement using ROUND_UP macro.
14148 * config/i386/i386.c (function_arg_advance_64): Use ROUND_UP macro
14150 (ix86_compute_frame_layout): Ditto.
14151 (ix86_expand_prologue): Ditto.
14152 (ix86_adjust_stack_and_probe): Use ROUND_DOWN macro
14153 to round down values.
14154 (expand_set_or_movmem_via_rep): Ditto.
14156 2015-10-02 Marek Polacek <polacek@redhat.com>
14158 * genemit.c (gen_exp): Remove -Wduplicated-cond hack.
14160 2015-10-02 Aditya Kumar <aditya.k7@samsung.com>
14162 * graphite-scop-detection.c (loop_ivs_can_be_represented): New.
14163 (loop_body_is_valid_scop): Call loop_ivs_can_be_represented.
14164 * graphite-sese-to-poly.c (new_gimple_bb): Renamed new_gimple_poly_bb.
14165 (free_gimple_bb): Renamed free_gimple_poly_bb.
14166 (try_generate_gimple_bb): Hoist loop invariant code.
14167 (analyze_drs_in_stmts): Same.
14168 (build_scop_drs): Call renamed functions.
14169 (new_pbb_from_pbb): Same.
14170 (scop_ivs_can_be_represented): Delete as functionality now moved to
14171 graphite-scop-detection.c
14172 (build_poly_scop): Remove call to scop_ivs_can_be_represented.
14174 2015-10-02 Aditya Kumar <hiraditya@msn.com>
14176 * graphite-scop-detection.c (stmt_has_side_effects): New function
14177 outlined from stmt_simple_for_scop_p.
14178 (graphite_can_represent_stmt): Same.
14179 (stmt_simple_for_scop_p): Moved code out of this function for better
14182 2015-10-02 Kirill Yukhin <kirill.yukhin@intel.com>
14184 * config/i386/i386.c (processor_features): Add F_AVX512VBMI,
14186 (isa_names_table): Handle F_AVX512VBMI and F_AVX512IFMA.
14188 2015-10-02 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
14190 * config/aarch64/aarch64-elf.h (TARGET_ASM_NAMED_SECTION): Delete.
14192 2015-10-02 Vladimir Makarov <vmakarov@redhat.com>
14194 PR rtl-optimization/67756
14195 * lra-constraints.c (match_reload): Add a new parameter. Use it
14196 for creating a pseudo with the same value.
14197 (curr_insn_transform): Pass a new argument to match_reload.
14199 2015-10-02 Kirill Yukhin <kirill.yukhin@intel.com>
14201 * config/i386/i386.c (expand_vec_perm_even_odd_trunc): New.
14202 (expand_vec_perm_even_odd_1): Handle V64QImode.
14203 (ix86_expand_vec_perm_const_1): Try expansion with
14204 expand_vec_perm_even_odd_trunc as well.
14205 * config/i386/sse.md (VI124_AVX512F): Rename to ...
14206 (define_mode_iterator VI124_AVX2_24_AVX512F_1_AVX512BW): This. Extend
14208 (define_mode_iterator VI248_AVX2_8_AVX512F): Rename to ...
14209 (define_mode_iterator VI248_AVX2_8_AVX512F_24_AVX512BW): This. Extend
14210 to V32HI and V16SI.
14211 (define_insn "avx512bw_<code>v32hiv32qi2"): Unhide pattern name.
14212 (define_expand "vec_pack_trunc_<mode>"): Update iterator name.
14213 (define_expand "vec_unpacks_lo_<mode>"): Ditto.
14214 (define_expand "vec_unpacks_hi_<mode>"): Ditto.
14215 (define_expand "vec_unpacku_lo_<mode>"): Ditto.
14216 (define_expand "vec_unpacku_hi_<mode>"): Ditto.
14218 2015-10-02 Kirill Yukhin <kirill.yukhin@intel.com>
14220 * doc/invoke.texi: Mention -mavx512vl, -mavx512bw, -mavx512dq,
14221 -mavx521vbmi, -mavx512ifma. Add missing opindex-es.
14223 2015-10-02 Jason Merrill <jason@redhat.com>
14226 * trans-mem.c (volatile_lvalue_p): Rename from volatile_var_p.
14227 (diagnose_tm_1_op): Also diagnose volatile accesses in
14228 transaction_safe function.
14230 2015-10-02 Jonathan Wakely <jwakely@redhat.com>
14232 * system.h (malloc.h): Don't include obsolete header.
14234 2015-10-02 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
14236 * config/aarch64/aarch64.c (aarch64_elf_asm_named_section): Delete.
14237 (TLS_SECTION_ASM_FLAG): Delete.
14239 2015-10-02 Marek Polacek <polacek@redhat.com>
14242 * doc/invoke.texi: Document -Wduplicated-cond.
14243 * Makefile.in (insn-latencytab.o): Use -Wno-duplicated-cond.
14244 (insn-dfatab.o): Likewise.
14245 * genemit.c (gen_exp): Rewrite condition to avoid -Wduplicated-cond
14248 2015-10-02 Oleg Endo <olegendo@gcc.gnu.org>
14250 * config/sh/sh.md: Add new unnamed split pattern to handle movt-movt
14253 2015-10-02 Renlin Li <renlin.li@arm.com>
14255 * config/aarch64/aarch64.md (csneg3_insn_uxtw): New pattern.
14257 2015-10-02 Renlin Li <renlin.li@arm.com>
14260 * config/aarch64/aarch64.md (cmovdi_insn_uxtw): New pattern.
14262 2015-10-02 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
14264 PR rtl-optimization/67786
14265 PR rtl-optimization/67787
14266 * ifcvt.c (bb_valid_for_noce_process_p): Reject basic block if
14267 it modifies a reg used in the condition calculation.
14269 2015-10-02 James Greenhalgh <james.greenhalgh@arm.com>
14271 * config/aarch64/aarch64-simd.md (*aarch64_combinez<mode>): Add
14272 alternatives for reads from memory and moves from general-purpose
14274 (*aarch64_combinez_be<mode>): Likewise.
14276 2015-10-02 Kai Tietz <ktietz70@googlemail.com>
14279 * config/i386/winnt.c (ix86_handle_selectany_attribute): Handle
14280 selectany within this function without need to keep attribute.
14281 (i386_pe_encode_section_info): Remove selectany-code.
14283 2015-10-02 Richard Biener <rguenther@suse.de>
14285 * tree-ssa-sccvn.c (has_VN_INFO): New function.
14286 (free_scc_vn): Use it.
14287 (visit_use): Remove dead code and refactor to use gassign
14288 and use less indentation.
14290 2015-10-01 Segher Boessenkool <segher@kernel.crashing.org>
14294 * config/rs6000/rs6000.c (TARGET_CANNOT_COPY_INSN_P): New.
14295 (rs6000_cannot_copy_insn_p): New function.
14296 * config/rs6000/rs6000.md (cannot_copy): New attribute.
14297 (load_toc_v4_PIC_1_normal): Set cannot_copy.
14298 (load_toc_v4_PIC_1_476): Ditto.
14300 2015-10-01 Aditya Kumar <aditya.k7@samsung.com>
14302 * graphite-scop-detection.c (struct sese_l): New conversion constructor
14303 so that this type can be pushed into a vec.
14304 (class scop_builder): use sese_l to collect scops.
14305 (get_scops): New getter function.
14306 (remove_intersecting_scops): Use sese_l instead of scops_p.
14307 (intersects): Same.
14310 (remove_subscops): Same.
14311 (build_scops): Add scops to vec<scops_p> once all the scops have been
14314 2015-10-01 Aditya Kumar <aditya.k7@samsung.com>
14316 * graphite-isl-ast-to-gimple.c (class translate_isl_ast_to_gimple):
14317 Renamed type from gimple_bb_p to gimple_poly_bb_p.
14318 (translate_isl_ast_node_user): Same.
14319 * graphite-poly.c (new_poly_bb): Same.
14320 * graphite-poly.h (gbb_from_bb): Same.
14322 * graphite-sese-to-poly.c (new_gimple_bb):
14323 gimple_bb_p -> gimple_poly_bb_p
14324 (build_scop_scattering): Same.
14325 (find_params_in_bb): Same.
14326 (add_conditions_to_domain): Same.
14327 (sese_dom_walker::before_dom_children): Same.
14328 (analyze_drs_in_stmts): Same.
14329 (new_pbb_from_pbb): Same.
14330 (free_data_refs_aux): New pointer to type base_alias_pair.
14331 * graphite-sese-to-poly.h: Same.
14332 * sese.c (if_region_set_false_region): Fixed Indentation.
14333 (move_sese_in_condition): Same.
14335 2015-10-01 Sebastian Pop <s.pop@samsung.com>
14336 Aditya Kumar <aditya.k7@samsung.com>
14338 PR tree-optimization/66980
14339 * graphite-scop-detection.c (stmt_has_simple_data_refs_p): Return false
14340 when data reference analysis has failed.
14342 2015-10-01 Sebastian Pop <s.pop@samsung.com>
14343 Aditya Kumar <aditya.k7@samsung.com>
14345 PR tree-optimization/67754
14346 * graphite-scop-detection.c (stmt_has_simple_data_refs_p): Call
14347 scev analysis on the same loop nest as analyze_drs_in_stmts.
14348 * graphite-sese-to-poly.c (outermost_loop_in_sese_1): Moved and
14350 (try_generate_gimple_bb): Call outermost_loop_in_sese.
14351 (analyze_drs_in_stmts): Same.
14352 * sese.c (outermost_loop_in_sese): ...here.
14354 2015-10-01 Sebastian Pop <s.pop@samsung.com>
14355 Aditya Kumar <aditya.k7@samsung.com>
14357 PR tree-optimization/67754
14358 * graphite-scop-detection.c (loop_body_is_valid_scop): Add missing
14359 recursion on the inner loops.
14361 2015-10-01 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
14363 * cfganal.c, compare-elim.c, coverage.c, cprop.c, df-scan.c,
14364 function.c, read-rtl.c, statistics.c, trans-mem.c, tree-if-conv.c,
14365 tree-into-ssa.c, tree-loop-distribution.c, tree-ssa-coalesce.c,
14366 tree-ssa-loop-ivopts.c, tree-ssa-reassoc.c, tree-ssa-strlen.c,
14367 tree-ssa-tail-merge.c, tree-vrp.c, var-tracking.c: Remove
14369 2015-10-01 Marek Polacek <polacek@redhat.com>
14372 * config/i386/i386.c (ix86_atomic_assign_expand_fenv): Adjust to use
14373 create_tmp_var_raw rather than create_tmp_var.
14375 2015-10-01 Marek Polacek <polacek@redhat.com>
14377 PR tree-optimization/67769
14378 * tree-ssa-phiopt.c (conditional_replacement): Call
14379 reset_flow_sensitive_info_in_bb.
14380 (minmax_replacement): Likewise.
14381 (abs_replacement): Likewise.
14383 2015-10-01 Nathan Sidwell <nathan@codesourcery.com>
14385 * builtins.c: Don't include gomp-constants.h.
14386 (fold_builtin_1): Don't fold acc_on_device here.
14387 * gimple-fold.c: Include gomp-constants.h.
14388 (gimple_fold_builtin_acc_on_device): New.
14389 (gimple_fold_builtin): Call it.
14391 2015-10-01 H.J. Lu <hongjiu.lu@intel.com>
14393 * config/i386/x86-tune.def (X86_TUNE_USE_BT): Enable for Lakemont.
14394 (X86_TUNE_ZERO_EXTEND_WITH_AND): Disable for Lakemont.
14396 2015-10-01 James Greenhalgh <james.greenhalgh@arm.com>
14398 * config/arm/aarch-common-protos.h
14399 (aarch_accumulator_forwarding): New.
14400 (aarch_forward_to_shift_is_not_shifted_reg): Likewise.
14401 * config/arm/aarch-common.c (aarch_accumulator_forwarding): New.
14402 (aarch_forward_to_shift_is_not_shifted_reg): Likewise.
14403 * config/arm/cortex-a53.md: Rewrite.
14405 2015-10-01 Richard Biener <rguenther@suse.de>
14407 * gimple-match.h (mprts_hook): Declare.
14408 * gimple-match.head.c (mprts_hook): Define.
14409 (maybe_push_res_to_seq): Use new hook.
14410 * gimple-fold.c (gimple_fold_stmt_to_constant_1): Likewise.
14411 * tree-ssa-sccvn.h (vn_ssa_aux::expr): Change to a gimple_seq.
14412 (vn_ssa_aux::has_constants): Remove.
14413 * tree-ssa-sccvn.c: Include gimple-match.h.
14414 (VN_INFO_GET): Assert we don't re-use SSA names.
14415 (vn_get_expr_for): Remove.
14416 (expr_has_constants): Likewise.
14417 (stmt_has_constants): Likewise.
14418 (simplify_binary_expression): Likewise.
14419 (simplify_unary_expression): Likewise.
14420 (vn_lookup_simplify_result): New hook.
14421 (visit_copy): Adjust.
14422 (visit_reference_op_call): Likewise.
14423 (visit_phi): Likewise.
14424 (visit_use): Likewise.
14425 (process_scc): Likewise.
14426 (init_scc_vn): Likewise.
14427 (visit_reference_op_load): Likewise. Use match-and-simplify and
14428 a gimple seq for inserted expressions.
14429 (try_to_simplify): Remove GENERIC stmt combining code.
14430 (sccvn_dom_walker::before_dom_children): Use match-and-simplify.
14431 * tree-ssa-pre.c (eliminate_insert): Adjust.
14432 (eliminate_dom_walker::before_dom_children): Likewise.
14434 2015-10-01 Segher Boessenkool <segher@kernel.crashing.org>
14436 * doc/invoke.texi (Optimization Options): Add
14437 -freorder-blocks-algorithm=.
14438 (Optimize Options) <-O>: Add -freorder-blocks.
14439 <-O2>: Remove -freorder-blocks. Add -freorder-blocks-algorithm=stc.
14440 <-Os>: Add -freorder-blocks-algorithm=stc as not enabled.
14441 <-freorder-blocks>: Also enabled at levels -O and -Os.
14442 <-freorder-blocks-algorithm=>: Document new option.
14444 2015-10-01 Segher Boessenkool <segher@kernel.crashing.org>
14446 * bb-reorder.c (reorder_basic_blocks): Use the algorithm selected
14447 with flag_reorder_blocks_algorithm.
14448 * common.opt (freorder-blocks-algorithm=): New flag.
14449 (reorder_blocks_algorithm): New enum.
14450 * flag-types.h (reorder_blocks_algorithm): New enum.
14451 * opts.c (default_options_table): Use -freorder-blocks at -O1 and up,
14452 and -freorder-blocks-algorithm=stc at -O2 and up (not at -Os).
14454 2015-10-01 Segher Boessenkool <segher@kernel.crashing.org>
14456 * bb-reorder.c: Add intro comment.
14457 (reorder_basic_blocks_software_trace_cache): Print a header to
14459 (edge_order): New function.
14460 (reorder_basic_blocks_simple): New function.
14461 (reorder_basic_blocks): Choose between the STC and the simple
14462 algorithms (always choose the former).
14464 2015-10-01 Segher Boessenkool <segher@kernel.crashing.org>
14466 * bb-reorder.c (reorder_basic_blocks_software_trace_cache): New
14467 function, factored out from ...
14468 (reorder_basic_blocks): ... here.
14470 2015-10-01 Tom de Vries <tom@codesourcery.com>
14472 * tree-cfg.c (dump_function_to_file): Dump function attributes using
14473 __attribute__(()) string. Move dumping of function attributes to before
14476 2015-10-01 Lynn Boger <laboger@linux.vnet.ibm.com>
14479 * config/rs6000/sysv4.h (TARGET_CAN_SPLIT_STACK_64BIT): Define.
14480 * configure.ac: Define HAVE_GOLD_ALTERNATE_SPLIT_STACK on Power
14481 based on gold linker version.
14482 * gcc.c: Add -fuse-ld=gold to STACK_SPLIT_SPEC if
14483 HAVE_GOLD_ALTERNATE_SPLIT_STACK defined.
14484 * configure, config.in: Regenerate.
14486 2015-10-01 Alan Modra <amodra@gmail.com>
14488 * config/rs6000/rs6000.c (rs6000_emit_prologue): Don't set
14489 r2_setup_needed when TARGET_SINGLE_PIC_BASE.
14490 (rs6000_output_mi_thunk): Likewise.
14492 2015-09-30 Nathan Sidwell <nathan@codesourcery.com>
14494 * config/nvptx/mkoffload.c (process): Change offload data format.
14496 2015-09-30 Jeff Law <law@redhat.com>
14498 * tree-ssa-dom.c (optimize_stmt): Collapse control flow statements
14499 with constant conditions.
14500 * tree-ssa-threadupdate.c (remove_jump_threads_starting_at): New.
14501 (remove_ctrl_stmt_and_useless_edges): No longer static.
14502 * tree-ssa-threadupdate.h (remove_jump_threads_starting_at): Prototype.
14503 (remove_ctrl_stmt_and_useless_edges): Likewise.
14505 2015-09-30 Nathan Sidwell <nathan@codesourcery.com>
14506 Cesar Philippidis <cesar@codesourcery.com>
14508 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims): New.
14509 (TARGET_GOACC_VALIDATE_DIMS): Override.
14510 * target.def (TARGET_GOACC): New target hook prefix.
14511 (validate_dims): New hook.
14512 * targhooks.h (default_goacc_validate_dims): New.
14513 * omp-low.c (oacc_validate_dims): New.
14514 (execute_oacc_device_lower): New.
14515 (default_goacc_validate_dims): New.
14516 (pass_data_oacc_device_lower): New.
14517 (pass_oacc_device_lower): New pass.
14518 (make_pass_oacc_device_lower): New.
14519 * tree-pass.h (make_pass_oacc_device_lower): Declare.
14520 * passes.def (pass_oacc_device_lower): Add it.
14521 * doc/tm.texi: Rebuilt.
14522 * doc/tm.texi.in (TARGET_GOACC_VALIDATE_DIMS): Add hook.
14523 * doc/invoke.texi (oaccdevlow): Document tree dump flag.
14525 2015-09-30 Bernd Edlinger <bernd.edlinger@hotmail.de>
14527 PR rtl-optimization/67037
14528 * lra-constraints.c (process_addr_reg): Use copy_rtx when necessary.
14530 2015-09-30 Bernd Schmidt <bernds@redhat.com>
14532 * gimple-ssa.h (gimple_df): Add free_ssanames_queue field.
14533 * passes.c: Include tree-ssanames.h.
14534 (execute_function_todo): Flush the pending free SSA_NAMEs after
14535 eliminating unreachable basic blocks.
14536 * tree-ssanames.c (FREE_SSANAMES_QUEUE): new.
14537 (init_ssanames): Initialize FREE_SSANAMES_QUEUE.
14538 (fini_ssanames): Finalize FREE_SSANAMES_QUEUE.
14539 (flush_ssanames_freelist): New function.
14540 (release_ssaname_fn): Put released names on the queue.
14541 (pass_release_ssa_names::execute): Call flush_ssanames_freelist.
14542 * tree-ssanames.h (flush_ssanames_freelist): Declare.
14544 2015-09-30 Thomas Schwinge <thomas@codesourcery.com>
14546 * config/i386/intelmic-mkoffload.c (main): Parse "-v" flag.
14547 (generate_target_descr_file, generate_target_offloadend_file)
14548 (generate_host_descr_file, prepare_target_image): Pass it on.
14549 * config/nvptx/mkoffload.c (main): Parse "-v" flag.
14550 (compile_native, main): Pass it on.
14551 * lto-wrapper.c (compile_offload_image): Likewise.
14553 2015-09-30 Thomas Schwinge <thomas@codesourcery.com>
14554 Ilya Verbin <ilya.verbin@intel.com>
14555 Andrey Turetskiy <andrey.turetskiy@intel.com>
14557 * config/i386/intelmic-mkoffload.c (generate_host_descr_file)
14558 (prepare_target_image, main): Refactor argv building to use
14561 2015-09-30 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
14563 * config/spu/spu-protos.h (spu_expand_atomic_op): Add prototype.
14564 * config/spu/spu.c (spu_expand_atomic_op): New function.
14565 * config/spu/spu.md (AINT): New mode iterator.
14566 (ATOMIC): New code iterator.
14567 (atomic_name, atomic_pred): New code predicates.
14568 ("atomic_load<mode>", "atomic_store<mode>"): New expanders.
14569 ("atomic_compare_and_swap<mode>", "atomic_exchange<mode>"): Likewise.
14570 (""atomic_<atomic_name><mode>", "atomic_fetch_<atomic_name><mode>",
14571 "atomic_<atomic_name>_fetch<mode>"): Likewise.
14573 2015-09-30 Ilya Enkovich <enkovich.gnu@gmail.com>
14575 * config/i386/i386.c (scalar_chain::analyze_register_chain): Ignore
14577 (scalar_chain::convert_reg): Likewise.
14579 2015-09-30 Richard Biener <rguenther@suse.de>
14581 * builtins.c: Add comment that no new simplifications should
14584 2015-09-30 Marek Polacek <polacek@redhat.com>
14586 PR tree-optimization/67690
14587 * tree-ssa-ifcombine.c (pass_tree_ifcombine::execute): Call
14588 reset_flow_sensitive_info_in_bb.
14589 * tree-ssa-tail-merge.c (replace_block_by): Likewise.
14590 * tree-ssanames.c: Include "gimple-iterator.h".
14591 (reset_flow_sensitive_info_in_bb): New function.
14592 * tree-ssanames.h (reset_flow_sensitive_info_in_bb): Declare.
14594 2015-09-30 Thomas Schwinge <thomas@codesourcery.com>
14596 * config/i386/intelmic-mkoffload.c (target_ilp32): Remove
14597 variable, replacing it with...
14598 (offload_abi): ... this new variable. Adjust all users.
14599 * config/nvptx/mkoffload.c (target_ilp32, offload_abi): Likewise.
14601 2015-09-30 Matthias Klose <doko@ubuntu.com>
14603 * configure.ac: Remove extraneous ;;.
14604 * configure: Regenerate.
14606 2015-09-29 James Bowman <james.bowman@ftdichip.com>
14608 * config/ft32/predicates.md (ft32_imm_operand): New predicate.
14609 * config/ft32/ft32.md (movmemsi, setmemsi): Use ft32_imm_operand
14610 predicate, disallow register for operand 2.
14612 2015-09-29 Aditya Kumar <aditya.k7@samsung.com>
14614 * graphite-dependences.c (scop_get_dependences): Moved in down
14615 in order to be visible to its caller.
14616 * graphite-poly.h: Removed compute_deps, and extend_schedule.
14618 2015-09-29 Sebastian Pop <s.pop@samsung.com>
14619 Aditya Kumar <aditya.k7@samsung.com>
14621 PR tree-optimization/67754
14622 * graphite-optimize-isl.c (optimize_isl): Call
14623 isl_options_set_schedule_fuse with ISL_SCHEDULE_FUSE_MIN for ISL-14.
14625 2015-09-29 Nathan Sidwell <nathan@codesourcery.com>
14627 * builtins.c (expand_builtin_acc_on_device): Delete.
14628 (expand_builtin): Don't call it.
14629 (fold_builtin_1): Fold acc_on_device.
14631 2015-09-29 H.J. Lu <hongjiu.lu@intel.com>
14633 * config/i386/i386.c (ix86_function_arg): Fix typo in comments.
14634 (ix86_nsaved_sseregs): Likewise.
14636 2015-09-29 Jeff Law <law@redhat.com>
14638 * config/microblaze/microblaze.c (microblaze_version_to_int): Remove
14639 computation of unused value.
14641 * config/pdp11/pdp11.c (pdp11_branch_cost): New function.
14642 * config/pdp11/pdp11.h (BRANCH_COST): Call function rather than
14643 inline macro expansion.
14645 * config/i386/t-interix (winnt-stubs.o): Fix compilation rule.
14647 * config/sh/sh.c (gen_shl_and): Fix undefined left shift behaviour.
14648 (gen_shl_sext): Likewise.
14649 * config/sh/sh.md (divsi3): Likewise.
14650 (imm->ext_dest_operand splitter): Likewise.
14652 2015-09-29 Sebastian Pop <s.pop@samsung.com>
14653 Aditya Kumar <aditya.k7@samsung.com>
14655 * graphite-sese-to-poly.c (gsi_for_phi_node): Remove.
14656 (nb_data_writes_in_bb): Remove.
14657 (split_pbb): Remove.
14658 (split_reduction_stmt): Remove.
14659 (is_reduction_operation_p): Remove.
14660 (phi_contains_arg): Remove.
14661 (follow_ssa_with_commutative_ops): Remove.
14662 (detect_commutative_reduction_arg): Remove.
14663 (detect_commutative_reduction_assign): Remove.
14664 (follow_inital_value_to_phi): Remove.
14665 (edge_initial_value_for_loop_phi): Remove.
14666 (initial_value_for_loop_phi): Remove.
14667 (used_outside_reduction): Remove.
14668 (detect_commutative_reduction): Remove.
14669 (translate_scalar_reduction_to_array_for_stmt): Remove.
14670 (remove_phi): Remove.
14671 (dr_indices_valid_in_loop): Remove.
14672 (close_phi_written_to_memory): Remove.
14673 (translate_scalar_reduction_to_array): Remove.
14674 (rewrite_commutative_reductions_out_of_ssa_close_phi): Remove.
14675 (rewrite_commutative_reductions_out_of_ssa_loop): Remove.
14676 (rewrite_commutative_reductions_out_of_ssa): Remove.
14677 (build_poly_scop): Remove call to
14678 rewrite_commutative_reductions_out_of_ssa.
14680 2015-09-29 Evandro Menezes <e.menezes@samsung.com>
14682 * config/arm/types.md (neon_ldp, neon_ldp_q, neon_stp, neon_stp_q):
14683 Add new insn types for vector load and store pairs.
14684 * config/arm/cortex-a53.md (cortex_a53_f_load_2reg): Add insn
14685 types "neon_ldp{,_q}".
14686 * config/arm/cortex-a57.md (neon_load_c): Add insn types
14688 (neon_store_complex): Add insn types "neon_stp{,_q}".
14689 * config/aarch64/aarch64-simd.md (aarch64_be_movoi): Add insn types
14690 "neon_{ldp,stp}_q".
14692 2015-09-29 Jeff Law <law@redhat.com>
14694 * config/rx/constraints.md (Int08): Fix undefined left shift
14696 (Sint08, Sint16, Sint24): Likewise.
14697 * config/rx/rx.c (rx_get_stack_layout): Likewise.
14699 * config/rl78/rl78-expand.md (movqi): Fix undefined left shift
14702 * config/msp430/msp430.c (msp430_legitimate_constant): Fix undefined
14703 left shift behaviour.
14704 * config/msp430/constraints.md ('L' constraint): Similarly.
14705 ('Ys' constraint): Similarly.
14707 2015-09-29 Richard Biener <rguenther@suse.de>
14709 PR tree-optimization/67170
14710 * tree-ssa-alias.h (get_continuation_for_phi): Adjust
14711 the translate function pointer parameter to get the
14712 bool whether to disambiguate only by reference.
14713 (walk_non_aliased_vuses): Likewise.
14714 * tree-ssa-alias.c (maybe_skip_until): Adjust.
14715 (get_continuation_for_phi_1): Likewise.
14716 (get_continuation_for_phi): Likewise.
14717 (walk_non_aliased_vuses): Likewise.
14718 * tree-ssa-sccvn.c (const_parms): New bitmap.
14719 (vn_reference_lookup_3): Adjust for interface change.
14720 Disambiguate parameters pointing to readonly memory.
14721 (free_scc_vn): Free const_parms.
14722 (run_scc_vn): Initialize const_parms from a fn spec attribute.
14724 2015-09-29 Richard Biener <rguenther@suse.de>
14726 PR tree-optimization/67741
14727 * tree-ssa-math-opts.c (pass_cse_sincos::execute): Only recognize
14728 builtin calls with correct signature.
14730 2015-09-29 Ilya Enkovich <enkovich.gnu@gmail.com>
14733 * config/i386/i386.c: Include dbgcnt.h.
14734 (has_non_address_hard_reg): New.
14735 (convertible_comparison_p): New.
14736 (scalar_to_vector_candidate_p): New.
14737 (remove_non_convertible_regs): New.
14738 (scalar_chain): New.
14739 (scalar_chain::scalar_chain): New.
14740 (scalar_chain::~scalar_chain): New.
14741 (scalar_chain::add_to_queue): New.
14742 (scalar_chain::mark_dual_mode_def): New.
14743 (scalar_chain::analyze_register_chain): New.
14744 (scalar_chain::add_insn): New.
14745 (scalar_chain::build): New.
14746 (scalar_chain::compute_convert_gain): New.
14747 (scalar_chain::replace_with_subreg): New.
14748 (scalar_chain::replace_with_subreg_in_insn): New.
14749 (scalar_chain::emit_conversion_insns): New.
14750 (scalar_chain::make_vector_copies): New.
14751 (scalar_chain::convert_reg): New.
14752 (scalar_chain::convert_op): New.
14753 (scalar_chain::convert_insn): New.
14754 (scalar_chain::convert): New.
14755 (convert_scalars_to_vector): New.
14756 (pass_data_stv): New.
14758 (make_pass_stv): New.
14759 (ix86_option_override): Created and register stv pass.
14760 (flag_opts): Add -mstv.
14761 (ix86_option_override_internal): Likewise.
14762 * config/i386/i386.md (SWIM1248x): New.
14763 (*movdi_internal): Add xmm to mem alternative for TARGET_STV.
14764 (and<mode>3): Use SWIM1248x iterator instead of SWIM.
14765 (*anddi3_doubleword): New.
14766 (*zext<mode>_doubleword): New.
14767 (*zextsi_doubleword): New.
14768 (<code><mode>3): Use SWIM1248x iterator instead of SWIM.
14769 (*<code>di3_doubleword): New.
14770 * config/i386/i386.opt (mstv): New.
14771 * dbgcnt.def (stv_conversion): New.
14773 2015-09-29 Tom de Vries <tom@codesourcery.com>
14775 * tree-cfg.c (dump_function_to_file): Dump function attributes.
14777 2015-09-29 Kaz Kojima <kkojima@gcc.gnu.org>
14780 * config/sh/sh.c (sh_override_options_after_change): New.
14781 (TARGET_OVERRIDE_OPTIONS_AFTER_CHANGE): Define.
14782 (sh_option_override): Move align_loops, align_jumps and
14783 align_functions handling into sh_override_options_after_change.
14785 2015-09-28 Nathan Sidwell <nathan@codesourcery.com>
14787 * config/nvptx/nvptx.c: Include omp-low.h and gomp-constants.h.
14788 (nvptx_record_offload_symbol): Record function execution geometry.
14789 * config/nvptx/mkoffload.c (process): Include launch geometry in
14791 * omp-low.c (oacc_launch_pack): New.
14792 (replace_oacc_fn_attrib): New.
14793 (set_oacc_fn_attrib): New.
14794 (get_oacc_fn_attrib): New.
14795 (expand_omp_target): Create keyed varargs for GOACC_parallel call
14797 * omp-low.h (get_oacc_fn_attrib): Declare.
14798 * builtin-types.def (DEF_FUNCTION_TyPE_VAR_6): New.
14799 (DEF_FUNCTION_TYPE_VAR_11): Delete.
14800 * tree.h (OMP_CLAUSE_EXPR): New.
14801 * omp-builtins.def (BUILT_IN_GOACC_PARALLEL): Change target fn name.
14803 2015-09-28 Aditya Kumar <aditya.k7@samsung.com>
14804 Sebastian Pop <s.pop@samsung.com>
14806 * sese.c (invariant_in_sese_p_rec): Remove unused variable.
14808 2015-09-28 Aditya Kumar <aditya.k7@samsung.com>
14809 Sebastian Pop <s.pop@samsung.com>
14811 * graphite-optimize-isl.c (optimize_isl): Use ISL_SCHEDULE_FUSE_MAX.
14812 * graphite-scop-detection.c (struct sese_l): New type.
14813 (get_entry_bb): API for getting entry bb of SESE.
14814 (get_exit_bb): API for getting exit bb of SESE.
14815 (class debug_printer): New type. Simple printer in debug mode.
14816 (trivially_empty_bb_p): New. Return true when BB is empty or
14817 contains only debug instructions.
14818 (graphite_can_represent_expr): Call scalar_evoution_in_region
14819 instead of analyze_scalar_evolution. Pass in scop instead of only
14821 (stmt_has_simple_data_refs_p): Pass in scop instead of only the
14823 (stmt_simple_for_scop_p): Same.
14824 (harmful_stmt_in_bb): Same.
14825 (graphite_can_represent_loop): Deleted.
14826 (struct scopdet_info): Deleted.
14827 (scopdet_basic_block_info): Deleted.
14828 (build_scops_1): Deleted.
14829 (bb_in_sd_region): Deleted.
14830 (find_single_entry_edge): Deleted.
14831 (find_single_exit_edge): Deleted.
14832 (create_single_entry_edge): Deleted.
14833 (sd_region_without_exit): Deleted.
14834 (create_single_exit_edge): Deleted.
14835 (unmark_exit_edges): Deleted.
14836 (mark_exit_edges): Deleted.
14837 (create_sese_edges): Deleted.
14838 (build_graphite_scops): Deleted.
14839 (canonicalize_loop_closed_ssa): Recompute all dominators at the end.
14840 (build_scops): Use the new scop_builder to build scops.
14841 (dot_all_scops_1): Use the new pretty printer. Print loop father
14843 (loop_body_is_valid_scop): New. Return true if loop body is a
14845 (class scop_builder): New. Builds SCoPs for polyhedral
14847 (scop_builder): New constructor.
14848 (static sese_l invalid_sese): sese_l with invalid edges.
14849 (get_sese): Get an sese (from a loop) if possible, invalid_sese
14851 (get_nearest_dom_with_single_entry): Get nearest dominator of a
14852 basic_block with single entry. Return NULL if we get to the
14853 beginning of a function.
14854 (get_nearest_pdom_with_single_exit): Get nearest post-dominator of
14855 a basic_block with single exit. Return NULL if we get to the
14856 beginning of a function.
14857 (print_sese): Pretty-print SESE.
14858 (merge_sese): Merge two SESEs if possible and return the new SESE.
14859 (build_scop_depth): Start building the SCoP within a loop nest.
14860 (build_scop_breadth): Start building the SCoP at a single loop
14861 depth. Merge adjacent SESEs if valid.
14862 (can_represent_loop_1): Returns true if Graphite can represent
14863 loop inside SCoP. Helper for can_represent_loop.
14864 (can_represent_loop): Returns true if Graphite can represent LOOP
14865 and all its nested loops in SCoP.
14866 (loop_is_valid_scop): Returns true if LOOP and all its nests
14867 constitute a valid SCoP.
14868 (region_has_one_loop): Returns true of a region has only one loop.
14869 (add_scop): Add SCoP to the list of valid scops. Removes an
14870 already existing scop if it intersects with or subsumed by this one.
14871 (harmful_stmt_in_region): Returns true if SCoP has any statment
14872 which cannot be represented by Graphite.
14873 (subsumes): Returns true of SCoP S1 subsumes SCoP S2.
14874 (remove_subscops): Remove any SCoP from the list of already found
14875 SCoPs, if subsumed by S1.
14876 (intersects): Return true if region bounded by SCoPs S1 and S2
14878 (remove_intersecting_scops): Remove any SCoP which intersects with S1.
14879 * graphite.c (print_graphite_scop_statistics):
14880 (print_graphite_statistics): Print SCoP info while debugging.
14881 (graphite_initialize): Early exit in case number of loops in a
14882 function is less than PARAM_GRAPHITE_MIN_LOOPS_PER_FUNCTION or
14883 basic blocks are more than PARAM_GRAPHITE_MAX_BBS_PER_FUNCTION.
14884 (graphite_finalize):
14885 * params.def: Add PARAM_GRAPHITE_MIN_LOOPS_PER_FUNCTION.
14886 * sese.h (sese_loop_depth): Remove unnecessary gcc_assert.
14887 (recompute_all_dominators): Recalculate POST_DOMINATORS.
14888 * tree-cfg.c (print_loops): Print the function name while printing
14891 2015-09-28 Aditya Kumar <aditya.k7@samsung.com>
14892 Sebastian Pop <s.pop@samsung.com>
14894 PR tree-optimization/67700
14895 * graphite-sese-to-poly.c (parameter_index_in_region): Call
14896 invariant_in_sese_p_rec.
14897 (extract_affine): Same.
14898 (rewrite_cross_bb_scalar_deps): Call update_ssa.
14899 * sese.c (invariant_in_sese_p_rec): Export. Handle vdefs and vuses.
14900 * sese.h (invariant_in_sese_p_rec): Declare.
14902 2015-09-28 David Wohlferd <dw@LimeGreenSocks.com>
14904 * doc/extend.texi (Asm Labels): Break out text for data vs functions.
14906 2015-09-28 Jiong Wang <jiong.wang@arm.com>
14909 2015-08-06 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
14910 Jiong Wang <jiong.wang@arm.com>
14912 * config/aarch64/aarch64.d (tlsdesc_small_pseudo_<mode>): New pattern.
14913 * config/aarch64/aarch64.h (reg_class): New enumeration FIXED_REG0.
14914 (REG_CLASS_NAMES): Likewise.
14915 (REG_CLASS_CONTENTS): Likewise.
14916 * config/aarch64/aarch64.c (aarch64_class_max_nregs): Likewise.
14917 (aarch64_register_move_cost): Likewise.
14918 (aarch64_load_symref_appropriately): Invoke the new added pattern if
14920 * config/aarch64/constraints.md (Uc0): New constraint.
14922 2015-09-28 Daniel Hellstrom <daniel@gaisler.com>
14924 * config/sparc/t-rtems: Remove -muser-mode. Add ut699, at697f and leon.
14926 2015-09-28 David Edelsohn <dje.gcc@gmail.com>
14928 * config/rs6000/rs6000.c (rs6000_xcoff_asm_named_section): Place
14929 SECTION_EXCLUDE in XO mapping class.
14931 2015-09-28 Oleg Endo <olegendo@gcc.gnu.org>
14934 * config/sh/predicates.md (t_reg_operand, negt_reg_operand): Allow
14935 and handle ne and eq codes.
14936 * config/sh/sh.c (sh_rtx_costs): Adjust matching of tst #imm,r0 insn.
14937 (sh_recog_treg_set_expr): Early accept negt_reg_operand. Eearly reject
14938 CONST_INT_P. Use reverse_condition.
14939 (sh_split_treg_set_expr): Likewise.
14941 2015-09-28 James Greenhalgh <james.greenhalgh@arm.com>
14943 * config/arm/types.md (type): Add rotate_imm.
14944 * config/aarch64/aarch64.md (*ror<mode>3_insn): Split out the
14945 ROR immediate case.
14946 (*rorsi3_insn_uxtw): Likewise.
14947 * config/aarch64/thunderx.md (thunderx_shift): Add rotate_imm.
14948 * config/arm/cortex-a53.md (cortex_a53_alu_shift): Add rotate_imm.
14949 * config/arm/cortex-a57.md (cortex_a53_alu): Add rotate_imm.
14951 2015-09-28 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
14953 PR rtl-optimization/67481
14954 * ifcvt.c (contains_ccmode_rtx_p): New function.
14955 (insn_valid_noce_process_p): Use it.
14957 2015-09-28 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
14959 PR rtl-optimization/67456
14960 PR rtl-optimization/67464
14961 PR rtl-optimization/67465
14962 * ifcvt.c (noce_try_cmove_arith): Bail out if cannot conditionally
14963 move in the mode of x. Handle combination of complex and simple
14964 block pairs as well as the case when one is empty.
14966 2015-09-28 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
14968 * doc/gimple.texi: Update references to gimple_statement_base.
14969 * gdbhooks.py: Likewise.
14970 * gimple.h: Likewise.
14972 2015-09-28 Daniel Cederman <cederman@gaisler.com>
14974 * config/sparc/driver-sparc.c: map LEON to leon3
14976 2015-09-28 Daniel Cederman <cederman@gaisler.com>
14978 * config/sparc/sparc.opt: Rename mask from USER_MODE to SV_MODE
14979 and make it inverse to change default
14980 * config/sparc/sync.md: Only use supervisor ASI for CASA when in
14982 * doc/invoke.texi: Document change of default
14984 2015-09-28 Daniel Cederman <cederman@gaisler.com>
14986 * config/sparc/sparc.c (sparc_function_value_regno_p): Do not return
14987 true on %f0 for a target without FPU.
14988 * config/sparc/sparc.md (untyped_call): Do not save %f0 for a target
14990 (untyped_return): Do not load %f0 for a target without FPU.
14992 2015-09-28 Andrew Pinski <apinski@cavium.com>
14994 * config/aarch64/aarch64.md (prefetch):
14995 Change the predicate of operand 0 to register_operand.
14997 2015-09-27 Uros Bizjak <ubizjak@gmail.com>
14999 * config/i386/predicates.md (register_sse4nonimm_operand): New
15001 * config/i386/sse.md (PEXTR_MODE12): New mode iterator.
15002 (*vec_extract<mode>): Use PEXTR_MODE12 instead of VI12_128 mode.
15003 Use register_sse4nonimm_operand as operand 0 predicate.
15004 (*vec_extractv8hi_sse2): Remove insn pattern.
15005 (*vec_extract<PEXTR_MODE12:mode>_zext): Merge insn pattern from
15006 *vec_extractv8hi_zext and *vec_extractv16qi_zext patterns.
15008 2015-09-27 Oleg Endo <olegendo@gcc.gnu.org>
15009 Kaz Kojima <kkojima@gcc.gnu.org>
15012 * config/sh/sh-protos.h (sh_lra_p): Declare.
15013 * config/sh/sh.c (sh_lra_p): Make non-static.
15014 * config/sh/sh.md (addsi3): Use arith_reg_dest for operands[0] and
15015 arith_reg_operand for operands[1]. Remove TARGET_SHMEDIA case.
15016 Expand into addsi3_scr if operands[2] if needed.
15017 (*addsi3_compact): Rename to *addsi3_compact_lra. Use
15018 arith_reg_operand for operands[1]. Allow it only when LRA is enabled.
15019 (addsi3_scr, *addsi3): New insn_and_split patterns.
15021 2015-09-27 Alexandre Oliva <aoliva@redhat.com>
15023 PR rtl-optimization/64164
15024 PR tree-optimization/67312
15025 PR middle-end/67340
15026 PR middle-end/67490
15028 * cfgexpand.c (parm_in_stack_slot_p): Remove.
15029 (ssa_default_def_partition): Remove.
15030 (get_rtl_for_parm_ssa_default_def): Remove.
15031 (set_rtl): Check that RTL assignments match expectations.
15032 Loop on SUBREGs, CONCATs and PARALLELs subexprs. Set only the
15033 default def location for params and results. Record SSA names
15034 or types in REG and MEM attrs, respectively.
15035 (set_parm_rtl): New.
15036 (expand_one_ssa_partition): Drop logic that assigned MEMs with
15037 unassigned addresses.
15038 (adjust_one_expanded_partition_var): Don't accept NULL RTL on
15039 deferred stack alloc vars.
15040 (expand_used_vars): Skip partitions holding parm default defs.
15041 Move adjust_one_expanded_partition_var loop...
15042 (pass_expand::execute): ... here. Drop redundant assert.
15043 Adjust comments before the final loop over all ssa names.
15044 Require assigned rtl of parms and results to match exactly.
15045 Reset its attributes to match them, not any other variables in
15046 the same partition.
15047 (expand_debug_expr): Use entry value for PARM's default defs
15048 only iff they have zero nondebug uses.
15049 * cfgexpand.h (parm_in_stack_slot_p): Remove.
15050 (get_rtl_for_parm_ssa_default_def): Remove.
15051 (set_parm_rtl): Declare.
15052 * doc/invoke.texi: Improve wording.
15053 * explow.c (promote_decl_mode): Fix promote_function_mode for
15054 result decls not by reference.
15055 (promote_ssa_mode): Disregard BLKmode from promote_decl, and
15056 bypass TYPE_MODE to get the actual vector mode.
15057 * function.c: Include tree-dfa.h. Revert 2015-08-14's and
15058 2015-08-19's changes as follows. Drop include of
15059 basic-block.h and df.h.
15060 (rtl_for_parm): Remove.
15061 (maybe_reset_rtl_for_parm): Remove.
15062 (parm_in_unassigned_mem_p): Remove.
15063 (use_register_for_decl): Add logic for RESULT_DECLs matching
15064 assign_parms' behavior.
15065 (split_complex_args): Revert.
15066 (assign_parms_augmented_arg_list): Revert. Add comment
15067 referencing the logic above.
15068 (assign_parm_adjust_stack_rtl): Revert.
15069 (assign_parm_setup_block): Revert. Use set_parm_rtl instead
15070 of SET_DECL_RTL. Set up a REG if the parm demands so.
15071 (assign_parm_setup_reg): Revert. Consolidated SET_DECL_RTL
15072 calls into a single set_parm_rtl. Set up a temporary RTL
15073 temporarily for expand_assignment.
15074 (assign_parm_setup_stack): Revert. Use set_parm_rtl.
15075 (assign_parms_unsplit_complex): Revert. Use set_parm_rtl.
15076 (assign_bounds): Revert.
15077 (assign_parms): Revert. Use set_parm_rtl.
15078 (allocate_struct_function): Relayout result and parms of
15079 non-abstruct functions.
15080 (expand_function_start): Revert. Use set_parm_rtl. If the
15081 result is not a hard reg, create a pseudo from the promoted
15082 mode of the default def. Promote static chain mode.
15083 * tree-outof-ssa.c (remove_ssa_form): Drop unused
15084 partition_has_default_def. Set up
15085 partitions_for_parm_default_defs.
15086 (finish_out_of_ssa): Remove partition_has_default_def.
15087 Release partitions_for_parm_default_defs.
15088 * tree-outof-ssa.h (struct ssaexpand): Remove
15089 partition_has_default_def. Add
15090 partitions_for_parm_default_defs.
15091 * tree-ssa-coalesce.c: Include tree-dfa.h, tm_p.h and
15093 (build_ssa_conflict_graph): Fix conflict-detection of default
15094 defs of even unused default defs of params and results.
15095 (for_all_parms): New.
15096 (create_default_def): New.
15097 (register_default_def): New.
15098 (coalesce_with_default): New.
15099 (create_outofssa_var_map): Create default defs for all parms
15100 and results, and register their partitions. Add GIMPLE_RETURN
15101 operands as coalesce candidates with results. Add default
15102 defs of each parm or result as coalesce candidates with its
15103 other defs. Mark each result def, and each default def of
15104 parms, as used_in_copy.
15105 (gimple_can_coalesce_p): Call it. Call use_register_for_decl
15106 with the ssa names, even anonymous ones. Drop
15107 parm_in_stack_slot_p calls. Require same signedness and
15109 (coalesce_ssa_name): Add coalesce candidates for all defs of
15110 each parm and result, even unused ones.
15111 (parm_default_def_partition_arg): New type.
15112 (set_parm_default_def_partition): New.
15113 (get_parm_default_def_partitions): New.
15114 * tree-ssa-coalesce.h (get_parm_default_def_partitions): New.
15115 * tree-ssa-live.c (partition_view_init): Regard unused defs of
15116 parms and results as used.
15117 (verify_live_on_entry): Don't error out just because they're
15120 2015-09-26 David Edelsohn <dje.gcc@gmail.com>
15122 * dwarf2out.c (XCOFF_DEBUGGING_INFO): Default 0 definition.
15123 (HAVE_XCOFF_DWARF_EXTRAS): Default to 0 definition.
15124 (output_fde): Don't output length for debug_frame on AIX.
15125 (output_call_frame_info): Don't output length for debug_frame on AIX.
15126 (have_macinfo): Force to False for XCOFF_DEBUGGING_INFO and not
15127 HAVE_XCOFF_DWARF_EXTRAS.
15128 (add_AT_loc_list): Return early if XCOFF_DEBUGGING_INFO and not
15129 HAVE_XCOFF_DWARF_EXTRAS.
15130 (output_compilation_unit_header): Don't output length on AIX.
15131 (output_pubnames): Don't output length on AIX.
15132 (output_aranges): Delete argument. Compute length locally. Don't
15133 output length on AIX.
15134 (output_line_info): Don't output length on AIX.
15135 (dwarf2out_finish): Don't compute aranges_length.
15136 * dwarf2asm.c (XCOFF_DEBUGGING_INFO): Default 0 definition.
15137 (dw2_asm_output_nstring): Emit .byte not .ascii on AIX.
15138 * config/rs6000/rs6000.c (rs6000_output_dwarf_dtprel): Emit correct
15139 symbol decoration for AIX.
15140 (rs6000_xcoff_debug_unwind_info): New.
15141 (rs6000_xcoff_asm_named_section): Emit .dwsect pseudo-op
15143 (rs6000_xcoff_declare_function_name): Emit different
15144 .function pseudo-op when DWARF2_DEBUG. Don't call
15145 xcoffout_declare_function for DWARF2_DEBUG.
15146 * config/rs6000/xcoff.h (TARGET_DEBUG_UNWIND_INFO):
15148 * config/rs6000/aix71.h: New.
15149 * configure.ac (gcc_cv_as_aix_dwloc): Check AIX as for DWARF
15151 * configure: Regenerate.
15152 * config.gcc (powerpc-ibm-aix[789]+): New stanza for AIX 7.1+ with
15155 2015-09-26 Jeff Law <law@redhat.com>
15157 * config/arc/arc.c (arc_output_addsi): Fix left shift undefined
15159 * config/arc/constraints.md (Cca, C2a): Fix left shift undefined
15162 * config/sh/sh.h (CONST_OK_FOR_J16): Fix left shift undefined
15165 * config/mips/mips.c (mips_compute_frame_info): Fix left shift
15166 undefined behaviour.
15168 * config/cris/cris.md (asrandb): Fix left shift undefined
15170 (asrandw): Likewise.
15172 2015-09-25 Vladimir Makarov <vmakarov@redhat.com>
15175 * lra-constarints.c (match_reload): Check presence of the input pseudo
15176 in the output operand.
15178 2015-09-25 Tobias Burnus <burnus@net-b.de>
15180 * doc/invoke.texi (-fsanitize): Minor wording tweak.
15182 2015-09-25 Tobias Burnus <burnus@net-b.de>
15184 * doc/invoke.texi (-fsanitize): Update URLs.
15186 2015-09-25 Teresa Johnson <tejohnson@google.com>
15188 * opts.c (finish_options): Unset -freorder-blocks-and-partition
15189 if not using profile.
15191 2015-09-25 Manuel López-Ibáñez <manu@gcc.gnu.org>
15193 PR pretty-print/67567
15194 * pretty-print.c (pp_string): Add gcc_checking_assert.
15195 * pretty-print.h (output_buffer_append_r): Likewise.
15197 2015-09-25 Oleg Endo <olegendo@gcc.gnu.org>
15200 * config/sh/sh-mem.cc (sh_expand_cmpstr): Check alignment of addr1 and
15201 addr2 individually. Don't emit logical or insn if one is known to
15202 be aligned approriately.
15203 (sh_expand_cmpnstr): Likewise.
15205 2015-09-25 Richard Sandiford <richard.sandiford@arm.com>
15207 * config/aarch64/aarch64-builtins.c (aarch64_expand_builtin): Force
15208 __builtin_aarch64_fp[sc]r arguments into a register.
15210 2015-09-25 H.J. Lu <hongjiu.lu@intel.com>
15212 * config.gcc (x86_archs): Replace lakemount with lakemont.
15213 (with_cpu): Likewise.
15214 (with_arch): Likewise.
15215 * config/i386/i386-c.c (ix86_target_macros_internal): Replace
15216 PROCESSOR_LAKEMOUNT with PROCESSOR_LAKEMONT. Replace
15217 __tune_lakemount__ with __tune_lakemont__.
15218 * config/i386/i386.c (lakemount_cost): Renamed to ...
15219 (lakemont_cost): This.
15220 (m_LAKEMOUNT): Renamed to ...
15221 (m_LAKEMONT): This.
15222 (initial_ix86_arch_features): Replace m_LAKEMOUNT with m_LAKEMONT.
15223 (processor_target_table): Replace "lakemount" with "lakemont".
15224 (processor_alias_table): Likewise.
15225 (ix86_issue_rate): Replace PROCESSOR_LAKEMOUNT with
15226 PROCESSOR_LAKEMONT.
15227 (ix86_adjust_cost): Likewise.
15228 (ia32_multipass_dfa_lookahead): Likewise.
15229 * config/i386/i386.h (processor_type): Likewise.
15230 * config/i386/x86-tune.def: Replace m_LAKEMOUNT with m_LAKEMONT.
15231 * doc/invoke.texi: Replace lakemount with lakemont. Replace
15232 Lakemount with Lakemont.
15234 2015-09-24 H.J. Lu <hongjiu.lu@intel.com>
15236 * config.gcc (x86_archs): Replace iamcu with lakemount.
15237 (with_cpu): Likewise.
15238 (with_arch): Likewise.
15239 * doc/invoke.texi: Likewise.
15240 * config/i386/i386-c.c (ix86_target_macros_internal): Replace
15241 PROCESSOR_IAMCU with PROCESSOR_LAKEMOUNT. Replace
15242 __tune_iamcu__ with __tune_lakemount__.
15243 * config/i386/i386.c (iamcu_cost): Renamed to ...
15244 (lakemount_cost): This.
15245 (m_IAMCU): Renamed to ...
15246 (m_LAKEMOUNT): This.
15247 (initial_ix86_arch_features): Replace m_IAMCU with m_LAKEMOUNT.
15248 (processor_target_table): Replace "iamcu" with "lakemount".
15249 (processor_alias_table): Likewise.
15250 (ix86_issue_rate): Replace PROCESSOR_IAMCU with
15251 PROCESSOR_LAKEMOUNT.
15252 (ix86_adjust_cost): Likewise.
15253 (ia32_multipass_dfa_lookahead): Likewise.
15254 * config/i386/i386.h (processor_type): Likewise.
15255 * config/i386/x86-tune.def: Replace m_IAMCU with m_LAKEMOUNT.
15257 2015-09-24 John David Anglin <danglin@gcc.gnu.org>
15259 * config/pa/pa-linux.h (HAVE_sync_compare_and_swapdi): Define.
15260 * config/pa/pa-protos.h (pa_maybe_emit_compare_and_swap_exchange_loop):
15262 * config/pa/pa.c (pa_init_libfuncs): Init sync libfuncs up to 8 bytes.
15263 (pa_expand_compare_and_swap_loop): New.
15264 (pa_maybe_emit_compare_and_swap_exchange_loop): New.
15265 * config/pa/pa.md (atomic_storeqi, atomic_storehi, atomic_storesi,
15266 atomic_storesf, atomic_loaddf, atomic_storedf): New expanders.
15267 (atomic_loaddf_1, atomic_storedf_1): New insn patterns.
15268 (atomic_loaddi, atomic_loaddi_1, atomic_storedi, atomic_storedi_1):
15271 2015-09-24 Michael Collison <michael.collison@linaro.org>
15274 * read-md.c (read_name): Allow mode iterators inside angle
15275 brackets in rtl expressions.
15277 2015-09-24 Vladimir Makarov <vmakarov@redhat.com>
15280 * ira-color.c (update_allocno_cost): Add parameter.
15281 (update_costs_from_allocno): Decrease conflict cost. Pass the new
15284 2015-09-24 Manuel López-Ibáñez <manu@gcc.gnu.org>
15287 * opts-common.c (prune_options): Discard all -fdiagnostics-color
15288 but the last one, which is moved to the front to be processed
15290 * opts.c (enable_warning_as_error): Reject options that do not
15293 2015-09-24 Jiong Wang <jiong.wang@arm.com>
15295 * config/aarch64/aarch64.c (aarch64_print_operand): Add "CONST" support.
15297 2015-09-24 Jiong Wang <jiong.wang@arm.com>
15299 * config/aarch64/aarch64-protos.h (aarch64_symbol_context): Delete.
15300 * config/aarch64/aarch64.c (aarch64_expand_mov_immediate): Likewise.
15301 (aarch64_cannot_force_const_mem): Likewise.
15302 (aarch64_classify_address): Likewise.
15303 (aarch64_classify_symbolic_expression): Likewise.
15304 (aarch64_print_operand): Likewise.
15305 (aarch64_classify_symbol): Likewise.
15306 (aarch64_mov_operand_p): Likewise.
15307 * config/aarch64/predicates.md (aarch64_valid_symref): Likewise.
15308 (aarch64_mov_operand): Likewise.
15310 2015-09-24 Segher Boessenkool <segher@kernel.crashing.org>
15312 * config/rs6000/rs6000.c (debug_stack_info): Invert the test
15313 for info->spe_gp_size.
15315 2015-09-24 Richard Biener <rguenther@suse.de>
15318 * lto-cgraph.c (compute_ltrans_boundary): Do not stream
15321 2015-09-24 Thomas Schwinge <thomas@codesourcery.com>
15323 * tree-object-size.c (plus_stmt_object_size)
15324 (cond_expr_object_size): Change the formal parameters from gimple
15326 * tree-ssa-sccvn.h (vn_nary_op_insert_stmt): Likewise.
15327 * tree-ssa-sccvn.c (vn_nary_op_insert_stmt): Make it static.
15328 * tree-ssa-sccvn.h (vn_nary_op_insert_stmt): Don't declare.
15330 2015-09-24 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
15332 * configure.ac (gcc_cv_ld_pie): Check for gld >= 2.26 on Solaris.
15333 Check for ld -type pie on Solaris 11.x and 12.
15334 * configure: Regenerate.
15335 * config.in: Regenerate.
15337 * gcc.c (LD_PIE_SPEC): Allow redefinition.
15339 * config/sol2.h (STARTFILE_CRTBEGIN_SPEC): Define.
15340 (STARTFILE_SPEC): Use it.
15341 (ENDFILE_CRTEND_SPEC): Define.
15342 (ENDFILE_SPEC): Use it and ENDFILE_ARCH_SPEC.
15343 (SUBTARGET_EXTRA_SPECS): Add STARTFILE_CRTBEGIN_SPEC,
15344 ENDFILE_ARCH_SPEC, ENDFILE_CRTEND_SPEC.
15345 [HAVE_LD_PIE && HAVE_SOLARIS_CRTS] (LD_PIE_SPEC): Define.
15346 (!(HAVE_LD_PIE && HAVE_SOLARIS_CRTS)] (LINK_PIE_SPEC): Define.
15347 * config/i386/sol2.h (ENDFILE_SPEC): Remove.
15348 (ENDFILE_ARCH_SPEC): Define.
15349 * config/sparc/sol2.h (ENDFILE_ARCH_SPEC): Define.
15351 2015-09-24 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
15353 * configure.ac (gcc_cv_solaris_crts): New test.
15354 * configure. Regenerate.
15355 * config.in: Regenerate.
15356 * config/sol2.h (STARTFILE_SPEC): Simplify, provide
15357 HAVE_SOLARIS_CRTS variant.
15359 2015-09-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
15361 * tree-inline.h (count_insns_seq): Delete prototype.
15362 (estimate_num_insns_seq): Define prototype.
15363 * tree-inline.c (count_insns_seq): Delete.
15364 (estimate_num_insns_seq): Remove static qualifier.
15365 * tree-eh.c (decide_copy_try_finally): Replace use of count_insns_seq
15366 with estimate_num_insns_seq.
15368 2015-09-24 Richard Biener <rguenther@suse.de>
15370 * tree-ssa-sccvn.h (vn_reference_op_struct): Add clique and base
15372 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Record clique
15373 and base for MEM_REF and TARGET_MEM_REF. Handle BIT_FIELD_REF
15375 (ao_ref_init_from_vn_reference): Record clique and base in the
15377 * tree-ssa-pre.c (create_component_ref_by_pieces_1): Likewise
15379 2015-09-24 Richard Biener <rguenther@suse.de>
15381 PR tree-optimization/48885
15382 * tree-ssa-structalias.c (visit_loadstore): Handle default defs
15383 as not including any restrict tags from other pointers.
15385 2015-09-23 Thomas Schwinge <thomas@codesourcery.com>
15387 * gcc.c (handle_foffload_option): Don't lose the trailing NUL
15388 character when appending to offload_targets.
15390 * configure.ac (offload_targets, OFFLOAD_TARGETS): Separate
15391 offload targets by commas, not colons.
15392 * config.in: Regenerate.
15393 * configure: Likewise.
15394 * gcc.c (driver::maybe_putenv_COLLECT_LTO_WRAPPER): Due to that,
15395 instead of setting up the default offload targets here...
15396 (process_command): ..., do it here.
15398 * plugin/configfrag.ac (OFFLOAD_TARGETS): Clarify that offload
15399 targets are separated by commas.
15400 * config.h.in: Regenerate.
15402 2015-09-23 Thomas Schwinge <thomas@codesourcery.com>
15403 Nathan Sidwell <nathan@codesourcery.com>
15405 * omp-low.h (omp_reduction_init_op): Declare.
15406 * omp-low.c (omp_reduction_init_op): New, broken out of ...
15407 (omp_reduction_init): ... here. Call it.
15408 * tree-parloops.c (initialize_reductions): Use
15409 omp_reduction_init_op.
15411 2015-09-23 Richard Biener <rguenther@suse.de>
15413 PR middle-end/67662
15414 * fold-const.c (fold_binary_loc): Do not reassociate two vars with
15415 undefined overflow unless they will cancel out.
15417 2015-09-23 Kirill Yukhin <kirill.yukhin@intel.com>
15419 * config/i386/i386.md (define_insn "*<mshift><mode>3"): Fix
15422 2015-09-23 Manuel López-Ibáñez <manu@gcc.gnu.org>
15425 * opts.h (write_langs): Declare.
15426 * opts-global.c (write_langs): Make it extern.
15428 2015-09-23 Oleg Endo <olegendo@gcc.gnu.org>
15431 * config/sh/sh.md (addsi3, *addsi3_compact): Don't check for
15432 overlapping regs when matching the pattern.
15434 2015-09-23 James Greenhalgh <james.greenhalgh@arm.com>
15436 * config/aarch64/aarch64-simd.md
15437 (aarch64_float_truncate_hi_v4sf): Rewrite as an expand.
15438 (aarch64_float_truncate_hi_v4sf_le): New.
15439 (aarch64_float_truncate_hi_v4sf_be): Likewise.
15441 2015-09-23 Richard Biener <rguenther@suse.de>
15443 * tree-ssa-structalias.c (intra_create_variable_infos): Build
15444 representatives for all restrict qualified pointer destinations.
15446 2015-09-23 Kirill Yukhin <kirill.yukhin@intel.com>
15448 * config/i386/i386.md (define_code_attr mshift): New.
15449 (define_mode_iterator SWI1248_AVX512BW): Rename ...
15450 (SWI1248_AVX512BW): ... to this. Make QI enabled for TARGET_AVX512DQ
15452 (define_insn "*k<logic><mode>"): Use new iterator name.
15453 (define_insn "*<mshift><mode>3"): New.
15455 2015-09-23 Mikhail Maltsev <maltsevm@gmail.com>
15457 PR middle-end/67649
15458 * memory-block.h (memory_block_pool::allocate): Use valgrind API to
15459 mark the block as accessible.
15461 2015-09-22 Segher Boessenkool <segher@kernel.crashing.org>
15463 * function.c (thread_prologue_and_epilogue_insns): Delete
15464 orig_entry_edge argument to try_shrink_wrapping.
15465 * shrink-wrap.c (can_get_prologue): New function.
15466 (can_dup_for_shrink_wrapping): Also handle EDGE_CROSSING.
15467 (try_shrink_wrapping): Delete orig_entry_edge argument. Use
15468 can_get_prologue where needed. Remove code that finds a single
15469 edge for the prologue. Remove code that tests if any reg clobbered
15470 by the prologue is live on the prologue edge. Remove code that finds
15471 the new prologue edge after duplicating blocks. Make a new prologue
15473 * shrink-wrap.h (try_shrink_wrapping): Delete orig_entry_edge argument.
15475 2015-09-22 Jeff Law <law@redhat.com>
15477 * config/pa/pa.h (MIN_LEGIT_64BIT_CONST_INT): Avoid undefined
15480 2015-09-22 Nathan Sidwell <nathan@codesourcery.com>
15482 * doc/invoke.texi (-Wmultiple-inheritance, -Wvirtual-inheritance,
15483 -Wtemplates, -Wnamespaces): Document.
15485 2015-09-22 Tom de Vries <tom@codesourcery.com>
15487 PR tree-optimization/67671
15488 * tree-ssa-structalias.c (create_variable_info_for_1): Handle restrict
15489 pointer references as restrict.
15491 2015-09-22 Chung-Lin Tang <cltang@codesourcery.com>
15493 * config/nios2/nios2.c (nios2_legitimize_address): When handling
15494 'reg + reloc' cases, allow first operand to be non-REG, and use
15495 force_reg() to enforce address pattern.
15497 2015-09-22 Alexander Fomin <alexander.fomin@intel.com>
15500 * config/i386/sse.md (define_mode_iterator VI48_AVX_AVX512F): New.
15501 (define_mode_iterator VI12_AVX_AVX512F): New.
15502 (define_insn "<mask_codefor><code><mode>3<mask_name>"): Change
15503 all iterators to VI48_AVX_AVX512F. Extract remaining modes ...
15504 (define_insn "*<code><mode>3"): ... Into new pattern using
15505 VI12_AVX_AVX512F iterators without masking.
15507 2015-09-22 Kirill Yukhin <kirill.yukhin@intel.com>
15509 * config.gcc: Support "skylake-avx512".
15510 * config/i386/i386-c.c (ix86_target_macros_internal): Handle
15511 PROCESSOR_SKYLAKE_AVX512.
15512 * config/i386/i386.c (m_SKYLAKE_AVX512): Define.
15513 (processor_target_table): Add "skylake-avx512".
15514 (PTA_SKYLAKE_AVX512): Define.
15515 (ix86_option_override_internal): Add "skylake_avx512".
15516 (fold_builtin_cpu): Handle "skylake_avx512", add F_AVX512VL
15517 F_AVX512BW, F_AVX512DQ, F_AVX512ER, F_AVX512PF, F_AVX512CD.
15518 * config/i386/i386.h (TARGET_SKYLAKE_AVX512): Define.
15519 (processor_type): Add PROCESSOR_SKYLAKE_AVX512.
15520 * doc/invoke.texi (skylake-avx512): New.
15522 2015-09-22 Kirill Yukhin <kirill.yukhin@intel.com>
15524 * config/i386/i386.md (define_insn "kunpckhi"): Fix
15525 operand in pattern.
15526 (define_insn "kunpcksi"): Ditto.
15527 (define_insn "kunpckdi"): Ditto.
15529 2015-09-22 Kirill Yukhin <kirill.yukhin@intel.com>
15531 * config/i386/i386.md (define_split not/xor SWI1248x): Use
15532 iterator instead of fixed modes.
15534 2015-09-22 Matthew Wahab <matthew.wahab@arm.com>
15536 * config/aarch64/aarch64-protos.h (aarch64_gen_atomic_ldop):
15537 Adjust declaration.
15538 * config/aarch64/aarch64.c (aarch64_emit_bic): New.
15539 (aarch64_gen_atomic_ldop): Adjust comment. Add parameter
15540 out_result. Update to support update-fetch operations.
15541 * config/aarch64/atomics.md (aarch64_atomic_exchange<mode>_lse):
15542 Adjust for change to aarch64_gen_atomic_ldop.
15543 (aarch64_atomic_<atomic_optab><mode>_lse): Likewise.
15544 (aarch64_atomic_fetch_<atomic_optab><mode>_lse): Likewise.
15545 (atomic_<atomic_optab>_fetch<mode>): Change to an expander.
15546 (aarch64_atomic_<atomic_optab>_fetch<mode>): New.
15547 (aarch64_atomic_<atomic_optab>_fetch<mode>_lse): New.
15549 2015-09-22 Matthew Wahab <matthew.wahab@arm.com>
15551 * config/aarch64/aarch64-protos.h
15552 (aarch64_atomic_ldop_supported_p): Declare.
15553 * config/aarch64/aarch64.c (aarch64_atomic_ldop_supported_p): New.
15554 (enum aarch64_atomic_load_op_code): New.
15555 (aarch64_emit_atomic_load_op): New.
15556 (aarch64_gen_atomic_ldop): Update to support load-operate
15558 * config/aarch64/atomics.md (atomic_<atomic_optab><mode>): Change
15560 (aarch64_atomic_<atomic_optab><mode>): New.
15561 (aarch64_atomic_<atomic_optab><mode>_lse): New.
15562 (atomic_fetch_<atomic_optab><mode>): Change to an expander.
15563 (aarch64_atomic_fetch_<atomic_optab><mode>): New.
15564 (aarch64_atomic_fetch_<atomic_optab><mode>_lse): New.
15566 2015-09-22 Matthew Wahab <matthew.wahab@arm.com>
15568 * config/aarch64/aarch64/atomics.md (UNSPECV_ATOMIC_LDOP): New.
15569 (UNSPECV_ATOMIC_LDOP_OR): New.
15570 (UNSPECV_ATOMIC_LDOP_BIC): New.
15571 (UNSPECV_ATOMIC_LDOP_XOR): New.
15572 (UNSPECV_ATOMIC_LDOP_PLUS): New.
15573 (ATOMIC_LDOP): New.
15574 (atomic_ldop): New.
15575 (aarch64_atomic_load<atomic_ldop><mode>): New.
15577 2015-09-22 Matthew Wahab <matthew.wahab@arm.com>
15579 * config/aarch64/aarch64.md
15580 (<LOGICAL:optab>_one_cmpl_<SHIFT:optab><mode>3): Make a named
15583 2015-09-22 Matthew Wahab <matthew.wahab@arm.com>
15585 * config/aarch64/aarch64-protos.h (aarch64_gen_atomic_ldop):
15587 * config/aarch64/aarch64.c (aarch64_emit_atomic_swap): New.
15588 (aarch64_gen_atomic_ldop): New.
15589 (aarch64_split_atomic_op): Fix whitespace and add a comment.
15590 * config/aarch64/atomics.md (UNSPECV_ATOMIC_SWP): New.
15591 (aarch64_compare_and_swap<mode>_lse): Fix some whitespace.
15592 (atomic_exchange<mode>): Replace with an expander.
15593 (aarch64_atomic_exchange<mode>): New.
15594 (aarch64_atomic_exchange<mode>_lse): New.
15595 (aarch64_atomic_<atomic_optab><mode>): Fix some whitespace.
15596 (aarch64_atomic_swp<mode>): New.
15598 2015-09-22 Manuel López-Ibáñez <manu@gcc.gnu.org>
15600 * tree-inline.c (expand_call_inline): Use inform for extra note.
15601 Do not give a note with UNKNOWN_LOCATION.
15602 Replace input_location with gimple_location (stmt).
15603 Use true/false instead of TRUE/FALSE.
15605 2015-09-22 Tom de Vries <tom@codesourcery.com>
15607 PR tree-optimization/67666
15608 * tree-ssa-structalias.c (create_variable_info_for_1): Handle struct
15609 with single field non-conservative.
15611 2015-09-21 David S. Miller <davem@davemloft.net>
15615 2015-09-11 David S. Miller <davem@davemloft.net>
15617 * config/sparc/constraints.md: Make "U" constraint a real register
15619 * config/sparc/sparc.c (TARGET_LRA_P): Define.
15620 (D_MODES, DF_MODES): Add missing cast.
15621 (TF_MODES, TF_MODES_NO_S): Include T_MODE.
15622 (OF_MODES, OF_MODES_NO_S): Include O_MODE.
15623 (sparc_register_move_cost): Decrease Niagara/UltrsSPARC memory
15625 * config/sparc/sparc.h (PROMOTE_MODE): Define.
15626 * config/sparc/sparc.md (*movsi_lo_sum, *movsi_high): Do not
15627 provide these insn when flag_pic.
15629 2015-09-17 David S. Miller <davem@davemloft.net>
15631 * config/sparc/sparc-protos.h (sparc_secondary_memory_needed):
15633 * config/sparc/sparc.c (sparc_secondary_memory_needed): New
15635 * config/sparc/sparc.h (SECONDARY_MEMORY_NEEDED): Use it.
15636 (HARD_REGNO_CALLER_SAVE_MODE): Define.
15637 * config/sparc/sparc.md (sethi_di_medlow, losum_di_medlow, seth44)
15638 (setm44, setl44, sethh, setlm, sethm, setlo, embmedany_sethi)
15639 (embmedany_losum, embmedany_brsum, embmedany_textuhi)
15640 (embmedany_texthi, embmedany_textulo, embmedany_textlo): Do not
15641 provide when flag_pic.
15643 2015-09-21 Jeff Law <law@redhat.com>
15645 * config/h8300/h8300.md (andsi3_ashift_n_lower): Avoid undefined
15648 2015-09-21 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
15650 * config/spu/spu.c (spu_expand_insv): Avoid undefined behavior.
15652 2015-09-21 Richard Biener <rguenther@suse.de>
15654 * passes.c (rest_of_decl_compilation): Do not call
15655 dwarf2out_early_global_decl for aliases.
15657 2015-09-21 Richard Biener <rguenther@suse.de>
15660 * dwarf2out.c (add_location_or_const_value_attribute): Remove
15661 attribute parameter. Early exit if either DW_AT_const_value
15662 or DW_AT_location are present already.
15663 (gen_variable_die): Adjust caller.
15664 (dwarf2out_late_global_decl): Likewise.
15666 2015-09-21 Oleg Endo <olegendo@gcc.gnu.org>
15669 * config/sh/sh.c (sh_remove_overlapping_post_inc,
15670 sh_peephole_emit_move_insn): Add new functions.
15671 * config/sh/sh-protos.h (sh_remove_overlapping_post_inc,
15672 sh_peephole_emit_move_insn): Declere them.
15673 * config/sh/sh.md: Use them in various peephole2 patterns.
15675 2015-09-21 Richard Biener <rguenther@suse.de>
15677 PR middle-end/67651
15678 * rtlanal.c (nonzero_address_p): SYMBOL_REFs may have zero
15679 address with -fno-delete-null-pointer-checks.
15681 2015-09-21 Alan Lawrence <alan.lawrence@arm.com>
15683 * config/rs6000/altivec.md (reduc_splus_<mode>): Rename to...
15684 (reduc_plus_scal_<mode>): ...this, add rs6000_expand_vector_extract.
15685 (reduc_uplus_v16qi): Remove.
15687 * config/rs6000/vector.md (VEC_reduc_name): Change "splus" to "plus".
15688 (reduc_<VEC_reduc_name>_v2df): Remove.
15689 (reduc_<VEC_reduc_name>_v4sf): Remove.
15690 (reduc_<VEC_reduc:VEC_reduc_name>_scal_<VEC_F:name>): New.
15692 * config/rs6000/vsx.md (vsx_reduc_<VEC_reduc_name>_v2df): Declare
15693 gen_ function by removing * prefix.
15694 (vsx_reduc_<VEC_reduc_name>_v4sf): Likewise.
15696 2015-09-21 Manuel López-Ibáñez <manu@gcc.gnu.org>
15698 PR middle-end/60832
15699 * tree-ssa-loop-niter.c (do_warn_aggressive_loop_optimizations):
15700 Print i_bound without converting it to a tree.
15702 2015-09-21 Bilyan Borisov <bilyan.borisov@arm.com>
15704 * config/arm/arm.c (thumb_output_move_mem_multiple): Replaced
15705 operands[4] operands[5] swap with std::swap, removed tmp variable.
15706 (arm_evpc_neon_vzip): Replaced in0/in1 and
15707 out0/out1 swaps with std::swap, removed x variable.
15708 (arm_evpc_neon_vtrn): Replaced in0/int1 and
15709 out0/out1 swaos with std::swap, removed x variable.
15710 (arm_expand_vec_perm_const_1): Replaced
15711 d->op0/d->op1 swap with std::swap, removed x variable.
15712 (arm_evpc_neon_vuzp): Replaced in0/in1 and
15713 out0/out1 swaps with std::swap, removed x variable.
15715 2015-09-21 Jonathan Yong <10walls@gmail.com>
15717 * config/i386/cygwin.h (STARTFILE_SPEC): Explicitly search
15718 sysroot/usr/lib/32api for additional win32 libraries,
15719 fixes failing Cygwin bootstrapping.
15721 2015-09-21 Oleg Endo <olegendo@gcc.gnu.org>
15723 * doc/invoke.texi (SH Options): Undocument SH5/SH64 related options.
15725 2015-09-21 Oleg Endo <olegendo@gcc.gnu.org>
15728 * config/sh/sh.md (*reg_lsb_t): Emit bld insn on SH2A.
15729 (*mov_t_msb_neg): Rewrite negc pattern.
15731 2015-09-20 Wilco Dijkstra <wdijkstr@arm.com>
15733 * config/aarch64/aarch64.c (aarch64_internal_mov_immediate): Cleanup
15734 immediate generation code.
15736 2015-09-20 Wilco Dijkstra <wdijkstr@arm.com>
15738 * config/aarch64/aarch64.c (aarch64_internal_mov_immediate): Remove
15739 redundant immediate generation code.
15741 2015-09-20 Wilco Dijkstra <wdijkstr@arm.com>
15743 * config/aarch64/aarch64.c (aarch64_bitmasks): Remove.
15744 (AARCH64_NUM_BITMASKS): Remove.
15745 (aarch64_bitmasks_cmp): Remove.
15746 (aarch64_build_bitmask_table): Remove.
15748 2015-09-20 Wilco Dijkstra <wdijkstr@arm.com>
15750 * config/aarch64/aarch64.c (aarch64_internal_mov_immediate): Replace
15751 slow immediate matching loops with a faster algorithm.
15753 2015-09-20 Wilco Dijkstra <wdijkstr@arm.com>
15755 * config/aarch64/aarch64.c (aarch64_bitmask_imm): Reimplement using
15758 2015-09-20 Jeff Law <law@redhat.com>
15760 PR tree-optimization/47679
15761 * tree-ssa-dom.c (record_temporary_equivalences): No longer static.
15762 * tree-ssa-dom.h (record_temporary_equivalences): Add prototype.
15763 * tree-ssa-threadedge.c: Include tree-ssa-dom.h.
15764 (thread_through_normal_block): Use record_temporary_equivalences.
15766 2015-09-19 Trevor Saunders <tbsaunde@tbsaunde.org>
15768 * coretypes.h (gimple): Change typedef to be a forward declaration.
15769 * gimple.h (gimple_statement_base): rename to gimple.
15770 * (all functions and types using gimple): Adjust.
15771 * *.[ch]: Likewise.
15773 2015-09-19 Andrew Dixie <andrewd@gentrack.com>
15774 David Edelsohn <dje.gcc@gmail.com>
15776 * config/rs6000/xcoff.h (EH_FRAME_IN_DATA_SECTION): Delete.
15777 (ASM_PREFERRED_EH_DATA_FORMAT): Define.
15778 (EH_FRAME_THROUGH_COLLECT2): Define.
15779 (EH_TABLES_CAN_BE_READ_ONLY): Define.
15780 (ASM_OUTPUT_DWARF_PCREL): Define.
15781 (ASM_OUTPUT_DWARF_DATAREL): Define.
15783 2015-09-19 John David Anglin <danglin@gcc.gnu.org>
15785 * config/pa/pa.c (pa_function_ok_for_sibcall): Remove special treatment
15788 2015-09-18 Jeff Law <law@redhat.com>
15790 PR tree-optimization/47679
15791 * tree-ssa-dom.c (avail_exprs_stack): No longer file scoped. Move
15793 (dom_opt_dom_walker): New private member holding the avail_exprs_stack
15794 object. Update constructor.
15795 (pass_dominator::execute): Corresponding chagnes to declaration
15796 and initialization of avail_exprs_stack. Update constructor call
15797 for dom_opt_dom_walker object.
15798 (lookup_avail_expr, record_cond): Accept additional argument. Pass
15799 it down to children as needed.
15800 (record_equivalences_from_incoming_edge): Likewise.
15801 (eliminate_redundant_computations): Likewise.
15802 (record_equivalences_from_stmt): Likewise.
15803 (simplify_stmt_for_jump_threading): Likewise.
15804 (record_temporary_equivalences): Likewise.
15805 (optimize_stmt): Likewise.
15806 (dom_opt_dom_walker::thread_across_edge): Update access to
15807 avail_exprs_stack object and pass it to children as needed.
15808 (dom_opt_dom_walker::before_dom_children): Similarly.
15809 (dom_opt_dom_walker::after_dom_children): Similarly.
15810 * tree-ssa-threadedge.c (pfn_simplify): New typedef.
15811 (record_temporary_equivalences_from_stmts_at_dest): Use new typedef.
15812 Add avail_expr_stack argument. Pass it to children as needed.
15813 (dummy_simplify): Likewise.
15814 (simplify_control_stmt_condition): Likewise.
15815 (thread_around_empty_blocks): Likewise.
15816 (thread_through_normal_block): Likewise.
15817 (thread_across_edge): Likewise.
15818 * tree-ssa-threadedge.h (thread_across_edge): Update prototype.
15819 * tree-vrp.c (simplify_stmt_for_jump_threading): Update.
15821 PR tree-optimization/47679
15822 * tree-ssa-dom.c (const_and_copies): No longer file scoped. Move
15824 (dom_opt_dom_walker): New private member holding the const_and_copies
15825 object. Update constructor.
15826 (pass_dominator::execute): Corresponding changes to declaration
15827 and initialization of const_and_copies. Update constructor call
15828 for the dom_opt_dom_walker object.
15829 (record_temporary_equivalences): Accept const_and_copies argument
15830 pass it down to children as needed.
15831 (record_equality): Likewise.
15832 (record_equivalences_from_incoming_edge): Likewise.
15833 (cprop_into_successor_phis, optimize_stmt): Likewise.
15834 (eliminate_redundant_computations): Likewise.
15835 (dom_opt_dom_walker::thread_across_edge): Update access to
15836 const_and_copies object and pass it to children as needed.
15837 (dom_opt_dom_walker::before_dom_children): Similarly.
15838 (dom_opt_dom_walker::after_dom_children): Similarly.
15840 PR tree-optimization/47679
15841 * tree-ssa-dom.c (avail_exprs): No longer file scoped. Bury
15842 it into the avail_exprs_stack class.
15843 (pass_dominator::execute): Corresponding changes to declaration
15844 and initialization of avail_exprs. Pass avail_exprs to
15845 dump_dominator_optimization_stats.
15846 (record_cond): Extract avail_exprs from avail_exprs_stack.
15847 (lookup_avail_expr): Similarly.
15848 (htab_staticstics): Remove unnecessary prototype. Move to earlier
15850 (dump_dominator_optimization_stats): Make static and prototype.
15851 Add argument for the hash table to dump.
15852 (debug_dominator_optimization_stats): Remove.
15853 * tree-ssa-dom.h (dump_dominator_optimization_stats): Remove
15855 (debug_dominator_optimization_stats): Similarly.
15856 * tree-ssa-scopedtables.h (class avail_exprs_stack): Add missing
15857 "void" in prototype for pop_to_marker method. Add accessor method
15858 for the underlying avail_exprs table.
15860 * tree-ssa-threadedge.c: Remove trailing whitespace.
15862 2014-09-18 John David Anglin <danglin@gcc.gnu.org>
15864 * config/pa/pa-protos.h (pa_cint_ok_for_move): Change argument type to
15866 (pa_ldil_cint_p): Likewise.
15867 * config/pa/pa.c (pa_cint_ok_for_move): likewise.
15868 (pa_ldil_cint_p): Likewise. Change signed casts to unsigned.
15870 * config/pa/pa.md: Likewise.
15872 2015-09-18 David Malcolm <dmalcolm@redhat.com>
15874 * Makefile.in (OBJS-libcommon): Add diagnostic-show-locus.o.
15875 * diagnostic.c (adjust_line): Move to diagnostic-show-locus.c.
15876 (diagnostic_show_locus): Likewise.
15877 (diagnostic_print_caret_line): Likewise.
15878 * diagnostic-show-locus.c: New file.
15880 2015-09-18 David Edelsohn <dje.gcc@gmail.com>
15882 * dwarf2out.c (switch_to_eh_frame_section): Add ATTRIBUTE_UNUSED to
15883 "back" parameter. Declare label in #if block.
15885 2015-09-18 Uros Bizjak <ubizjak@gmail.com>
15887 PR middle-end/67619
15888 * except.c (expand_builtin_eh_return): Use copy_addr_to_reg to copy
15889 the address to a register.
15891 2015-09-18 Jeff Law <law@redhat.com>
15893 PR tree-optimization/47679
15894 * Makefile.in (OBJS): Add tree-ssa-phionlycprop.o
15895 * tree-ssa-dom.c: Remove unnecessary header includes.
15896 (remove_stmt_or_phi): Moved from here into tree-ssa-phionlycprop.c
15897 (get_rhs_or_phi_arg, get_lhs_or_phi_result): Likewise.
15898 (propagate_rhs_into_lhs, eliminate_const_or_copy): Likewise.
15899 (eliminate_degenerate_phis_1, pass_phi_only_cprop): Likewise.
15900 (pass_phi_only_cprop::execute): Likewise.
15901 (make_pass_phi_only_cprop): Likewise.
15902 * tree-ssa-phionlycprop.c: New file with moved code. Eliminate
15903 uses of file scoped statics by passing the required objects
15904 as parameters wherever needed.
15906 2015-09-18 Andrew Dixie <andrewd@gentrack.com>
15907 David Edelsohn <dje.gcc@gmail.com>
15909 * defaults.h (EH_FRAME_SECTION_NAME): Depend on
15910 EH_FRAME_THROUGH_COLLECT2.
15911 * dwarf2asm.c (dw2_asm_output_encoded_addr_rtx): Add case for
15913 * dwarf2out.c (switch_to_eh_frame_section): Use a read-only section
15914 even if EH_FRAME_SECTION_NAME is undefined. Restrict special
15915 collect2 labels to EH_FRAME_THROUGH_COLLECT2.
15916 * except.c (switch_to_exception_section): Use a read-only section
15917 even if EH_FRAME_SECTION_NAME is undefined.
15918 * system.h (EH_FRAME_IN_DATA_SECTION): Poison.
15919 * collect2.c (write_c_file_stat): Provide dbase on AIX.
15920 (scan_prog_file): Don't export __dso_handle nor
15921 __gcc_unwind_dbase.
15922 * config/rs6000/aix.h (ASM_PREFERRED_EH_DATA_FORMAT): Define.
15923 (EH_TABLES_CAN_BE_READ_ONLY): Define.
15924 (ASM_OUTPUT_DWARF_PCREL): Define.
15925 (ASM_OUTPUT_DWARF_DATAREL): Define.
15926 (EH_FRAME_THROUGH_COLLECT2): Define.
15927 (EH_FRAME_IN_DATA_SECTION): Delete.
15928 * config/rs6000/aix61.h (STARTFILE_SPEC): Add crtdbase.o.
15929 * config/rs6000/rs6000-protos.h (rs6000_asm_output_dwarf_pcrel):
15931 (rs6000_asm_output_dwarf_datarel): Declare.
15932 * config/rs6000/rs6000.c (rs6000_aix_asm_output_dwarf_pcrel): New.
15933 (rs6000_aix_asm_output_dwarf_datarel): New.
15934 (rs6000_xcoff_asm_init_sections): Don't set exception_section.
15935 * config/spu/spu-elf.h (EH_FRAME_IN_DATA_SECTION): Delete.
15936 (EH_FRAME_THROUGH_COLLECT2): Define.
15937 * config/i386/i386-interix.h (EH_FRAME_IN_DATA_SECTION): Delete.
15938 (EH_FRAME_THROUGH_COLLECT2): Define.
15939 (EH_TABLES_CAN_BE_READ_ONLY): Define.
15940 * doc/tm.texi.in (EH_FRAME_IN_DATA_SECTION): Delete.
15941 (EH_FRAME_THROUGH_COLLECT2): New.
15942 (ASM_OUTPUT_DWARF_DATAREL): New.
15943 * doc/tm.texi: Regenerate.
15945 2015-09-18 Richard Biener <rguenther@suse.de>
15947 * dwarf2out.c (append_entry_to_tmpl_value_parm_die_table): Assert
15948 we're in early phase.
15949 (schedule_generic_params_dies_gen): Likewise.
15950 (gen_remaining_tmpl_value_param_die_attribute): Do only as much
15951 work as possible, retaining unhandled cases.
15952 (gen_scheduled_generic_parms_dies): Set early-dwarf flag and
15953 clear out generic_type_instances at the end.
15954 (dwarf2out_finish): Move call to gen_scheduled_generic_parms_dies...
15955 (dwarf2out_early_finish): ... here. Do most of
15956 gen_remaining_tmpl_value_param_die_attribute here.
15958 2015-09-18 Alan Lawrence <alan.lawrence@arm.com>
15960 PR tree-optimization/67283
15961 * tree-sra.c (type_consists_of_records_p): Rename to...
15962 (scalarizable_type_p): ...this, add case for ARRAY_TYPE.
15963 (completely_scalarize_record): Rename to...
15964 (completely_scalarize): ...this, add ARRAY_TYPE case, move some code to:
15965 (scalarize_elem): New.
15966 (analyze_all_variable_accesses): Follow renamings.
15968 2015-09-18 Richard Biener <rguenther@suse.de>
15970 * dwarf2out.c (add_location_or_const_value_attribute): Do nothing
15973 2015-09-18 Richard Biener <rguenther@suse.de>
15975 PR tree-optimization/66142
15976 * fold-const.c (operand_equal_p): When OEP_ADDRESS_OF
15977 treat MEM[&x] and x the same.
15978 * tree-ssa-sccvn.h (vn_reference_fold_indirect): Remove.
15979 * tree-ssa-sccvn.c (vn_reference_fold_indirect): Return true
15980 when we simplified sth.
15981 (vn_reference_maybe_forwprop_address): Likewise.
15982 (valueize_refs_1): When we simplified through
15983 vn_reference_fold_indirect or vn_reference_maybe_forwprop_address
15984 set valueized_anything to true.
15985 (vn_reference_lookup_3): Use stmt_kills_ref_p to see whether
15986 one ref kills the other instead of just a offset-based test.
15987 * tree-ssa-alias.c (stmt_kills_ref_p): Use OEP_ADDRESS_OF
15988 for the operand_equal_p test to compare bases and also compare
15991 2015-09-17 Christian Bruel <christian.bruel@st.com>
15993 * config/arm/arm.md (*call_value_symbol): Fix operand for interworking.
15995 2015-09-17 Richard Henderson <rth@redhat.com>
15998 * builtins.c (fold_builtin_atomic_always_lock_free): Handle fake
15999 pointers that encode the alignment of the object.
16001 2015-09-17 Eric Botcazou <ebotcazou@adacore.com>
16003 PR rtl-optimization/66790
16004 * df-problems.c (LIVE): Amend documentation.
16006 2015-09-17 Richard Sandiford <richard.sandiford@arm.com>
16008 * Makefile.in (OBJS): Add optabs-libfuncs.o, optabs-query.o
16010 (GTFILES): Replace optabs.c with optabs-libfunc.c.
16011 * genopinit.c (main): Add an include guard to insn-opinit.h.
16012 Protect the rtx_code parts with NUM_RTX_CODE.
16013 * optabs.h: Split parts out to...
16014 * optabs-libfuncs.h, optabs-query.h, optabs-tree.h: ...these new files.
16015 * optabs.c: Split parts out to...
16016 * optabs-libfuncs.c, optabs-query.c, optabs-tree.c: ...these new files.
16017 * cilk-common.c: Include optabs-query.h rather than optabs.h.
16018 * fold-const.c: Likewise.
16019 * target-globals.c: Likewise.
16020 * tree-if-conv.c: Likewise.
16021 * tree-ssa-forwprop.c: Likewise.
16022 * tree-ssa-loop-prefetch.c: Likewise.
16023 * tree-ssa-math-opts.c: Include optabs-tree.h rather than optabs.h.
16024 Remove unncessary include files.
16025 * tree-ssa-phiopt.c: Likewise.
16026 * tree-ssa-reassoc.c: Likewise.
16027 * tree-switch-conversion.c: Likewise.
16028 * tree-vect-data-refs.c: Likewise.
16029 * tree-vect-generic.c: Likewise.
16030 * tree-vect-loop.c: Likewise.
16031 * tree-vect-patterns.c: Likewise.
16032 * tree-vect-slp.c: Likewise.
16033 * tree-vect-stmts.c: Likewise.
16034 * tree-vrp.c: Likewise.
16035 * toplev.c: Include optabs-query.h and optabs-libfuncs.h
16036 rather than optabs.h.
16037 * expr.c: Include optabs-tree.h.
16038 * function.c: Likewise.
16040 2015-09-17 Eric Botcazou <ebotcazou@adacore.com>
16042 PR middle-end/65958
16043 * config/arm/linux-elf.h (STACK_CHECK_STATIC_BUILTIN): Define.
16044 * config/arm/arm-protos.h (output_probe_stack_range): Declare.
16045 * config/arm/arm.c: Include common/common-target.h.
16046 (use_return_insn): Return 0 if the static chain register was saved
16047 above a non-APCS frame.
16048 (arm_compute_static_chain_stack_bytes): Adjust for stack checking.
16049 (struct scratch_reg): New.
16050 (get_scratch_register_on_entry): New function.
16051 (release_scratch_register_on_entry): Likewise.
16052 (arm_emit_probe_stack_range): Likewise.
16053 (output_probe_stack_range): Likewise.
16054 (arm_expand_prologue): Factor out code dealing with the IP register
16055 for nested function and adjust it for stack checking.
16056 Invoke arm_emit_probe_stack_range if static builtin stack checking
16058 (thumb1_expand_prologue): Sorry out if static builtin stack checking
16060 (arm_expand_epilogue): Add the saved static chain register, if any, to
16061 the amount of pre-pushed registers to pop.
16062 (arm_frame_pointer_required): Return true if static stack checking is
16063 enabled and we want to catch the exception with the EABI unwinder.
16064 * config/arm/unspecs.md (UNSPEC_PROBE_STACK): New constant.
16065 (UNSPEC_PROBE_STACK_RANGE): Likewise.
16066 * config/arm/arm.md (probe_stack): New insn.
16067 (probe_stack_range): Likewise.
16069 2015-09-17 Richard Biener <rguenther@suse.de>
16071 * genmatch.c (parser::parse_expr): Improve error message
16072 for mis-placed flags.
16074 2015-09-17 Richard Biener <rguenther@suse.de>
16076 * passes.c (rest_of_decl_compilation): Always call early_global_decl
16077 debug hook when we created a varpool node.
16078 * dwarf2out.c (dwarf2out_late_global_decl): When in LTO call
16079 dwarf2out_early_global_decl, when not just add location or
16080 value attributes to existing DIEs.
16082 2015-09-17 James Greenhalgh <james.greenhalgh@arm.com>
16084 * config/aarch64/aarch64.md (copysigndf3): New.
16085 (copysignsf3): Likewise.
16087 2015-09-17 David S. Miller <davem@davemloft.net>
16089 * config/sparc/sparc-protos.h (sparc_secondary_memory_needed): Declare.
16090 * config/sparc/sparc.c (sparc_secondary_memory_needed): New function.
16091 * config/sparc/sparc.h (SECONDARY_MEMORY_NEEDED): Use it.
16092 (HARD_REGNO_CALLER_SAVE_MODE): Define.
16093 * config/sparc/sparc.md (sethi_di_medlow, losum_di_medlow, seth44)
16094 (setm44, setl44, sethh, setlm, sethm, setlo, embmedany_sethi)
16095 (embmedany_losum, embmedany_brsum, embmedany_textuhi)
16096 (embmedany_texthi, embmedany_textulo, embmedany_textlo): Do not
16097 provide when flag_pic.
16099 2015-09-17 Kaz Kojima <kkojima@gcc.gnu.org>
16101 * config/sh/sh.c (label_ref_list_d_pool): Adjust to
16102 object_allocator change.
16104 2015-09-17 Bin Cheng <bin.cheng@arm.com>
16106 PR tree-optimization/66388
16107 * tree-ssa-loop-ivopts.c (struct iv, iv_cand, ivopts_data): New fields.
16108 (dump_iv): Dump no_overflow information.
16109 (alloc_iv): Initialize new field for struct iv.
16110 (mark_bivs): Count number of no_overflow bivs.
16111 (find_deriving_biv_for_expr, record_biv_for_address_use): New
16113 (idx_find_step): Call new functions above.
16114 (add_candidate_1, add_candidate): New paramter.
16115 (add_iv_candidate_for_biv): Add sizetype cand for BIV.
16116 (get_computation_aff): Simplify convertion of cand for BIV.
16117 (get_computation_cost_at): Step cand's base if necessary.
16119 2015-09-17 Bin Cheng <bin.cheng@arm.com>
16121 * tree-ssa-loop-niter.c (tree_simplify_using_condition_1): New
16123 (tree_simplify_using_condition): Ditto.
16124 (simplify_using_initial_conditions): Ditto.
16125 (loop_exits_before_overflow): Pass new argument to function
16126 simplify_using_initial_conditions. Remove case for type conversions
16128 * tree-ssa-loop-niter.h (simplify_using_initial_conditions): New
16130 * tree-scalar-evolution.c (simple_iv): Simplify type conversions
16131 in iv base using loop initial conditions.
16133 2015-09-16 Jeff Law <law@redhat.com>
16135 PR tree-optimization/47679
16136 * tree-ssa-dom.c (free_edge_info): Factored out of free_all_edge_infos.
16137 (free_all_edge_infos): Use it.
16138 (allocate_edge_info): Free preexisting edge info data.
16139 (pass_dominator::execute): Set up initial edge info structures.
16140 (dom_opt_dom_walker::thread_across_edge): Pass avail_expr_stack to
16141 thread_across_edge.
16142 * tree-ssa-threadedge.c (thread_across_edge): Accept new argument.
16143 If non-null, then push/pop markers appropriately.
16144 * tree-ssa-threadedge.h (thread_across_edge): Update prototype.
16145 * tree-vrp.c (identify_jump_threads): Pass NULL for new argument to
16146 thread-across_edge.
16148 2015-09-16 James Bowman <james.bowman@ftdichip.com>
16150 * config/ft32/ft32.c: Fix the memory address space predicate.
16152 2015-09-16 Kaz Kojima <kkojima@gcc.gnu.org>
16155 * config/sh/sh.md (call_pcrel): Add early clobber to scratch operand.
16156 (call_value_pcrel, sibcall_pcrel, sibcall_value_pcrel): Likewise.
16158 2015-09-16 Manuel López-Ibáñez <manu@gcc.gnu.org>
16160 * toplev.h (check_global_declaration): Remove declaration.
16161 * toplev.c (check_global_declaration): Move to ...
16162 * cgraphunit.c: ... here. Make it static and pass a symtab_node *.
16163 (analyze_functions): Update call.
16165 2015-09-16 David S. Miller <davem@davemloft.net>
16167 * lra-constraints.c (simplify_operand_subreg): Do not assume that
16168 lowpart of a SUBREG has offset zero.
16170 2015-09-16 Jeff Law <law@redhat.com>
16172 PR tree-optimization/47679
16173 * tree-ssa-dom.c (enum expr_kind): Moved from here to
16174 tree-ssa-scopedtables.h.
16175 (struct hashable_expr, class expr_hash_elt): Likewise.
16176 (struct expr_elt_hasher, class avail_exprs_stack): Likewise.
16177 Move associated methods into tree-ssa-scopedtables.c.
16178 (avail_expr_hash, initialize_expr_from_cond): Similarly.
16179 (hashable_expr_equal_p, add_expr_commutative): Likewise.
16180 (add_hashable_expr): Likewise.
16181 (record_cond): Delete element directly.
16182 * tree-ssa-scopedtables.h (avail_expr_stack, const_and_copies): Add
16183 private copy ctor and assignment operator methods.
16184 (expr_elt_hasher): Inline trivial methods.
16185 (initialize_expr_from_cond): Prototype.
16186 * tree-ssa-scopedtables.c: Add necessary includes, functions and
16187 methods that were previously in tree-ssa-dom.c. Improve various
16190 2015-09-16 Paolo Carlini <paolo.carlini@oracle.com>
16192 * doc/invoke.texi ([Wsubobject-linkage]): Extend documentation.
16194 2015-09-16 Segher Boessenkool <segher@kernel.crashing.org>
16197 * function.c (rest_of_handle_thread_prologue_and_epilogue): Call
16200 2015-09-16 Richard Biener <rguenther@suse.de>
16202 PR middle-end/67253
16203 * cfgexpand.c (expand_gimple_stmt_1): Do not clobber
16204 location of possibly shared trees.
16206 2015-09-16 Richard Biener <rguenther@suse.de>
16208 PR middle-end/67271
16209 * fold-const.c (native_encode_expr): Bail out on bogus offsets.
16211 2015-09-16 Eric Botcazou <ebotcazou@adacore.com>
16213 * tree-ssa-sccvn.c (ao_ref_init_from_vn_reference): Use offset_int for
16214 offset and size computations instead of HOST_WIDE_INT.
16216 2015-09-16 Richard Biener <rguenther@suse.de>
16218 PR middle-end/67442
16219 * fold-const.c (extract_muldiv_1): Properly extend multiplication
16220 result before builting a tree via wide_int_to_tree.
16222 2015-09-16 Mikhail Maltsev <maltsevm@gmail.com>
16224 * Makefile.in: Add memory-block.cc
16225 (pool_allocator::initialize): Use fixed block size.
16226 (pool_allocator::release): Use memory_block_pool.
16227 (pool_allocator::allocate): Likewise.
16228 * asan.c (asan_mem_ref_pool): Adjust to use common block size in all
16230 * cfg.c (initialize_original_copy_tables): Likewise.
16231 * cselib.c (elt_list_pool, elt_loc_list_pool,
16232 cselib_val_pool): Likewise.
16233 * df-problems.c (df_chain_alloc): Likewise.
16234 * df-scan.c (df_scan_alloc): Likewise.
16235 * dse.c (cse_store_info_pool, rtx_store_info_pool,
16236 read_info_type_pool, insn_info_type_pool, bb_info_pool,
16237 group_info_pool, deferred_change_pool): Likewise.
16238 * et-forest.c (et_nodes, et_occurrences): Likewise.
16239 * ipa-cp.c (ipcp_cst_values_pool, ipcp_sources_pool,
16240 ipcp_agg_lattice_pool): Likewise.
16241 * ipa-inline-analysis.c (edge_predicate_pool): Likewise.
16242 * ipa-profile.c (histogram_pool): Likewise.
16243 * ipa-prop.c (ipa_refdesc_pool): Likewise.
16244 * ira-build.c (live_range_pool, allocno_pool, object_pool,
16245 initiate_cost_vectors, pref_pool, copy_pool): Likewise.
16246 * ira-color.c (update_cost_record_pool): Likewise.
16247 * lra-lives.c (lra_live_range_pool): Likewise.
16248 * lra.c (lra_insn_reg_pool, lra_copy_pool): Likewise.
16249 * memory-block.cc: New file.
16250 * memory-block.h: New file.
16251 * regcprop.c (queued_debug_insn_change_pool): Use common block size.
16252 * sched-deps.c (sched_deps_init): Likewise.
16253 * sel-sched-ir.c (sched_lists_pool): Likewise.
16254 * stmt.c (expand_case, expand_sjlj_dispatch_table): Likewise.
16255 * tree-sra.c (access_pool): Likewise.
16256 * tree-ssa-math-opts.c (pass_cse_reciprocals::execute): Likewise.
16257 * tree-ssa-pre.c (pre_expr_pool, bitmap_set_pool): Likewise.
16258 * tree-ssa-reassoc.c (operand_entry_pool): Likewise.
16259 * tree-ssa-sccvn.c (allocate_vn_table): Likewise.
16260 * tree-ssa-strlen.c (strinfo_pool): Likewise.
16261 * tree-ssa-structalias.c (variable_info_pool): Likewise.
16262 * var-tracking.c (attrs_def_pool, var_pool, valvar_pool,
16263 location_chain_pool, shared_hash_pool, loc_exp_dep_pool): Likewise.
16265 2015-09-15 Max Filippov <jcmvbkbc@gmail.com>
16267 * config/xtensa/xtensa.h (DWARF_ALT_FRAME_RETURN_COLUMN): New
16269 (DWARF_FRAME_REGISTERS): Reserve space for one extra register in
16272 2015-09-15 Max Filippov <jcmvbkbc@gmail.com>
16274 * config/xtensa/xtensa.c (xtensa_call_tls_desc): Use a10 or a2
16275 to pass TLS call argument, according to current ABI.
16276 * config/xtensa/xtensa.md (tls_call pattern): Use callx8 or
16277 callx0 for TLS call, according to current ABI.
16279 2015-09-15 Eric Botcazou <ebotcazou@adacore.com>
16281 * tree-eh.c (lower_try_finally_dup_block): Clear location information
16282 on stack restore statements.
16283 (decide_copy_try_finally): Do not consider a stack restore statement as
16284 coming from sources.
16286 2015-09-15 Uros Bizjak <ubizjak@gmail.com>
16288 * config/alpha/alpha.c (alpha_expand_block_clear): Use
16289 HOST_WIDE_INT_M1U instead of ~(HOST_WIDE_INT)0 when shifting.
16291 2015-09-15 Jeff Law <law@redhat.com>
16293 PR tree-optimization/47679
16294 * tree-ssa-dom.c (expr_hash_elt): Now a class with ctors/dtors,
16295 methods and private members.
16296 (avail_exprs_stack): Similarly. Change type of global
16297 from a pair of expr_hash_elt_t to the new class.
16298 (expr_elt_hasher::hash): Corresponding changes.
16299 (expr_elt_hasher::equal): Similarly.
16300 (avail_expr_hash): Similarly.
16301 (pass_dominator::execute): Similarly.
16302 (dom_opt_dom_walker::thread_across_edge): Similarly.
16303 (record_cond): Similarly.
16304 (dom_opt_dom_walker::before_dom_children): Similarly.
16305 (dom_opt_dom_walker::after_dom_children): Similarly.
16306 (lookup_avail_expr): Likewise.
16307 (initialize_hash_element): Now a expr_hash_elt constructor.
16308 (initialize_hash_element_from_expr): Similarly.
16309 (free_expr_hash_elt_contents): Now a dtor for class expr_hash_elt.
16310 (free_expr_hash_elt): Call dtor for the element.
16311 (remove_local_expressions_from_table): Now the "pop_to_marker"
16312 method in the available_exprs_stack class.
16313 (avail_expr_stack::record_expr): Method factored out.
16314 (print_expr_hash_elt): Now a method in the expr_hash_elt class.
16316 (hashable_expr_equal_p): Fix formatting.
16318 2015-09-15 David Malcolm <dmalcolm@redhat.com>
16320 * input.h (location_get_source_line): Drop "expanded_location"
16321 param in favor of a file and line number.
16322 * input.c (location_get_source_line): Likewise.
16323 (dump_location_info): Update for change in signature of
16324 location_get_source_line.
16325 * diagnostic.c (diagnostic_print_caret_line): Likewise.
16327 2015-09-15 Eric Botcazou <ebotcazou@adacore.com>
16329 * defaults.h (STACK_OLD_CHECK_PROTECT): Adjust for -fno-exceptions.
16330 Bump to 4KB for SJLJ exceptions.
16331 (STACK_CHECK_PROTECT): Likewise. Bump to 8KB for SJLJ exceptions.
16332 * doc/tm.texi.in (STACK_CHECK_PROTECT): Adjust.
16333 * doc/tm.texi: Regenerate.
16335 2015-09-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
16337 * config/arm/arm.c (arm_gen_constant): Use HOST_WIDE_INT_M1U instead
16338 of -1 when shifting. Change type of val to unsigned HOST_WIDE_INT.
16341 2015-09-15 Richard Biener <rguenther@suse.de>
16343 PR tree-optimization/67470
16344 * tree-ssa-loop-im.c (execute_sm_if_changed): Preserve PHI
16345 structure for PHI hoisting by inserting a forwarder block
16348 2015-09-15 Christian Bruel <christian.bruel@st.com>
16350 * config/arm/arm.c (TARGET_OPTION_PRINT): Define.
16351 (arm_option_print): New function.
16353 2015-09-15 Christian Bruel <christian.bruel@st.com>
16356 * config/arm/arm.c (arm_option_params_internal): Remove opts parameter.
16357 * config/arm/arm-c.c (arm_cpu_builtins): Declare static.
16358 Remove flags parameter.
16359 * config/arm/arm.h (TARGET_32BIT_P, TARGET_ARM_QBIT_P)
16360 (TARGET_ARM_SAT_P, TARGET_IDIV_P, TARGET_HAVE_LDREX_P)
16361 (TARGET_HAVE_LDREXBH_P, TARGET_HAVE_LDREXD_P, TARGET_DSP_MULTIPLY_P)
16362 (TARGET_ARM_FEATURE_LDREX_P, TARGET_INT_SIMD_P): Redefine macros with...
16363 (TARGET_ARM_SAT, TARGET_IDIV, TARGET_HAVE_LDREX)
16364 (TARGET_HAVE_LDREXBH, TARGET_HAVE_LDREXD, TARGET_ARM_FEATURE_LDREX)
16365 (TARGET_DSP_MULTIPLY, TARGET_INT_SIMD): Redefined macros.
16366 * config/arm/arm-protos.h (arm_cpu_builtins): Remove declaration.
16368 2015-09-15 Alan Lawrence <alan.lawrence@arm.com>
16370 * config/aarch64/aarch64.h (AARCH64_VALID_SIMD_DREG_MODE): New.
16372 * config/aarch64/aarch64.c (aarch64_array_mode_supported_p): Add
16373 AARCH64_VALID_SIMD_DREG_MODE.
16375 2015-09-15 Alan Lawrence <alan.lawrence@arm.com>
16377 * config/aarch64/aarch64-simd.md (aarch64_ld2r<mode>,
16378 aarch64_ld3r<mode>, aarch64_ld4r<mode>): Combine together, making...
16379 (aarch64_simd_ld<VSTRUCT:nregs>r<VALLDIF:mode>): ...this.
16380 (aarch64_ld2_lane<mode>, aarch64_ld3_lane<mode>,
16381 aarch64_ld4_lane<mode>): Combine together, making...
16382 (aarch64_ld<VSTRUCT:nregs>_lane<VALLDIF:mode>): ...this.
16383 (aarch64_st2_lane<mode>, aarch64_st3_lane<mode>,
16384 aarch64_st4_lane<mode>): Combine together, making...
16385 (aarch64_st<VSTRUCT:nregs>_lane<VALLDIF:mode>): ...this.
16386 * config/aarch64/iterators.md (nregs): Add comment.
16388 2015-09-15 Alan Lawrence <alan.lawrence@arm.com>
16390 * config/aarch64/aarch64-simd.md (aarch64_simd_ld2r<mode>):
16391 Change operand mode from <V_TWO_ELEM> to BLK.
16392 (aarch64_vec_load_lanesoi_lane<mode>): Likewise.
16393 (aarch64_vec_store_lanesoi_lane<mode): Likewise
16394 (aarch64_ld2r<mode>): Generate MEM rtx with BLKmode, call set_mem_size.
16395 (aarch64_ld2_lane<mode>): Likewise.
16396 (aarch64_st2_lane<VQ:mode>): Likewise.
16397 * config/aarch64/iterators.md (V_TWO_ELEM): Remove.
16399 2015-09-15 Alan Lawrence <alan.lawrence@arm.com>
16401 * config/aarch64/aarch64-simd.md (aarch64_simd_ld4r<mode>):
16402 Change operand mode from <V_FOUR_ELEM> to BLK.
16403 (aarch64_vec_load_lanesxi_lane<mode>): Likewise.
16404 (aarch64_vec_store_lanesxi_lane<mode): Likewise.
16405 (aarch64_ld4r<mode>): Generate MEM rtx with BLKmode, call set_mem_size.
16406 (aarch64_ld4_lane<mode>): Likewise.
16407 (aarch64_st4_lane<mode>): Likewise.
16408 * config/aarch64/iterators.md (V_FOUR_ELEM): Remove.
16410 2015-09-15 Richard Biener <rguenther@suse.de>
16412 PR middle-end/67563
16413 * gimple-fold.c (gimplify_and_update_call_from_tree): Do not
16414 transfer EH info from old to new stmt.
16415 (replace_call_with_value): Likewise.
16416 (replace_call_with_call_and_fold): Likewise.
16417 (gimple_fold_builtin_memory_op): Likewise.
16418 (gimple_fold_builtin_memset): Likewise.
16419 (gimple_fold_builtin_stpcpy): Likewise.
16420 (gimple_fold_call): Likewise.
16422 2015-09-15 Alan Lawrence <alan.lawrence@arm.com>
16424 * config/aarch64/aarch64.c (aarch64_simd_attr_length_rglist): Update
16426 * config/aarch64/aarch64-builtins.c (ei_UP): Remove.
16427 (aarch64_simd_intEI_type_node): Likewise.
16428 (aarch64_simd_builtin_std_type): Remove EImode case.
16429 (aarch64_init_simd_builtin_types): Don't create/add intEI_type_node.
16430 * config/aarch64/aarch64-modes.def: Remove EImode.
16432 2015-09-15 Alan Lawrence <alan.lawrence@arm.com>
16434 * config/aarch64/aarch64-simd.md (aarch64_simd_ld3r<mode>):
16435 Change operand mode from <V_THREE_ELEM> to BLK.
16436 (aarch64_vec_load_lanesci_lane<mode>): Likewise.
16437 (aarch64_vec_store_lanesci_lane<mode>): Likewise.
16438 (aarch64_ld3r<mode>): Generate MEM rtx with BLKmode, call set_mem_size.
16439 (aarch64_ld3_lane<mode>): Likewise.
16440 (aarch64_st3_lane<mode>): Likewise.
16441 * config/aarch64/iterators.md (V_THREE_ELEM): Remove.
16443 2015-09-15 Alan Lawrence <alan.lawrence@arm.com>
16445 * config/aarch64/aarch64-simd.md
16446 (aarch64_ld2<mode>_dreg VD & DX, aarch64_st2<mode>_dreg VD & DX ):
16447 Change all TImode operands to BLKmode.
16448 (aarch64_ld3<mode>_dreg VD & DX, aarch64_st3<mode>_dreg VD & DX):
16449 Change all EImode operands to BLKmode.
16450 (aarch64_ld4<mode>_dreg VD & DX, aarch64_st4<mode>_dreg VD & DX):
16451 Change all OImode operands to BLKmode.
16453 (aarch64_ld<VSTRUCT:nregs><VDC:mode>): Generate MEM rtx with BLKmode
16454 and call set_mem_size.
16455 (aarch64_st<VSTRUCT:nregs><VDC:mode>): Likewise.
16457 * config/aarch64/iterators.md (VSTRUCT_DREG): Remove.
16459 2015-09-15 Alan Lawrence <alan.lawrence@arm.com>
16461 * config/aarch64/aarch64-simd.md (vec_store_lanesoi_lane<mode>): Rename
16463 (aarch64_vec_store_lanesoi_lane<mode>): ...this.
16465 (vec_store_lanesci_lane<mode>): Rename to...
16466 (aarch64_vec_store_lanesci_lane<mode>): ...this.
16468 (vec_store_lanesxi_lane<mode>): Rename to...
16469 (aarch64_vec_store_lanesxi_lane<mode>): ...this.
16471 (aarch64_st2_lane<mode>, aarch64_st3_lane<mode>,
16472 aarch64_st4_lane<mode>): Follow renaming.
16474 2015-09-15 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
16476 * config/s390/s390.c (s390_const_operand_ok): Add missing
16479 2015-09-15 Richard Biener <rguenther@suse.de>
16482 * lto-streamer.h (lto_location_cache::current_sysp): Properly
16484 * lto-streamer-out.c (clear_line_info): Likewise.
16486 2015-09-15 Richard Biener <rguenther@suse.de>
16488 * doc/match-and-simplify.texi: Fix wording.
16490 2015-09-15 Bin Cheng <bin.cheng@arm.com>
16492 * tree-ssa-loop-ivopts.c (get_shiftadd_cost): Strip
16493 unnecessary type conversion in op1.
16495 2015-09-14 Segher Boessenkool <segher@kernel.crashing.org>
16497 * shrink-wrap.c (requires_stack_frame_p): Fix formatting.
16498 (dup_block_and_redirect): Delete function.
16499 (can_dup_for_shrink_wrapping): New function.
16500 (fix_fake_fallthrough_edge): New function.
16501 (try_shrink_wrapping): Rewrite function.
16502 (convert_to_simple_return): Call fix_fake_fallthrough_edge.
16504 2015-09-14 Rich Felker <dalias@libc.org>
16506 * configure.ac: Change target pattern for sh TLS support
16507 test from "sh[34]-*-*" to "sh[123456789lbe]*-*-*".
16508 * configure: Regenerate.
16510 2015-09-14 Jeff Law <law@redhat.com>
16512 PR tree-optimization/47679
16513 * tree-ssa-dom.c (avail_expr_hash): Pass a pointer to a real
16514 type rather than void *.
16516 2015-09-14 Manuel López-Ibáñez <manu@gcc.gnu.org>
16519 * diagnostic.c (diagnostic_initialize): Do not set
16520 some_warnings_are_errors.
16521 (diagnostic_finish): Use DK_WERROR count instead.
16522 (diagnostic_report_diagnostic): Do not set
16523 some_warnings_are_errors.
16524 * diagnostic.h (struct diagnostic_context): Remove
16525 some_warnings_are_errors.
16527 2015-09-14 Richard Sandiford <richard.sandiford@arm.com>
16529 * config/sparc/predicates.md (const_all_ones_operand): Use
16530 CONSTM1_RTX to simplify definition.
16532 2015-09-14 Oleg Endo <olegendo@gcc.gnu.org>
16535 * config/sh/sh-protos.h (sh_find_set_of_reg): Simplfiy for-loop.
16538 2015-09-14 Chung-Lin Tang <cltang@codesourcery.com>
16540 * lto-wrapper.c (merge_and_complain): Add OPT_fdiagnostics_show_caret,
16541 OPT_fdiagnostics_show_option, OPT_fdiagnostics_show_location_, and
16542 OPT_fshow_column to handled saved option cases.
16543 (append_compiler_options): Do not skip the above added options.
16545 2015-09-14 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
16548 * config/aarch64/aarch64.c (aarch64_expand_mov_immediate): Handle
16549 nopcrelative_literal_loads.
16550 (aarch64_classify_address): Likewise.
16551 (aarch64_constant_pool_reload_icode): Define.
16552 (aarch64_secondary_reload): Handle secondary reloads for
16554 (aarch64_override_options): Handle nopcrelative_literal_loads.
16555 (aarch64_classify_symbol): Handle nopcrelative_literal_loads.
16556 * config/aarch64/aarch64.md (aarch64_reload_movcp<GPF_TF:mode><P:mode>):
16558 (aarch64_reload_movcp<VALL:mode><P:mode>): Likewise.
16559 * config/aarch64/aarch64.opt (mpc-relative-literal-loads): New option.
16560 * config/aarch64/predicates.md (aarch64_constant_pool_symref): New
16562 * doc/invoke.texi (mpc-relative-literal-loads): Document.
16564 2015-09-14 John David Anglin <danglin@gcc.gnu.org>
16566 PR middle-end/67401
16567 * optabs.c (expand_atomic_compare_and_swap): Move result of emitting
16568 sync_compare_and_swap_optab libcall to target_oval.
16570 2015-09-14 Marek Polacek <polacek@redhat.com>
16572 * rtlanal.c (split_double): Cast to unsigned when shifting a negative
16574 * sched-int.h (UNKNOWN_DEP_COST): Likewise.
16576 2015-09-11 Mark Wielaard <mjw@redhat.com>
16579 * toplev.c (check_global_declaration): Check and use
16580 warn_unused_const_variable.
16581 * doc/invoke.texi (Warning Options): Add -Wunused-const-variable.
16582 (-Wunused-variable): Remove non-constant. For C implies
16583 -Wunused-const-variable.
16584 (-Wunused-const-variable): New.
16586 2015-09-14 Richard Biener <rguenther@suse.de>
16588 * doc/match-and-simplify.texi: Update for changed syntax
16589 of inner ifs and the new switch expression.
16591 2015-09-14 Yuri Rumyantsev <ysrumyan@gmail.com>
16593 * config/i386/haswell.md: New file describing Haswell pipeline.
16594 * config/i386/i386.c (processor_alias_table): Use CPU_HASWELL for
16595 haswell-like processors.
16596 (ix86_reassociation_width): Increase reassociation width for 64-bit
16597 Haswell processor family.
16598 * config/i386/i386.md: Introduce haswell cpu and include new md file.
16600 2015-09-14 Richard Biener <rguenther@suse.de>
16602 * doc/match-and-simplify.texi: Fixup some formatting issues
16603 and document the 's' flag.
16605 2015-09-13 Olivier Hainque <hainque@adacore.com>
16606 Eric Botcazou <ebotcazou@adacore.com>
16608 * config.gcc (visium-*-*): Enable --with-cpu option, accept gr5 and
16609 gr6 as possible values, defaulting to gr5. Set target_cpu_default2.
16610 * config/visium/visium.h (OPTION_DEFAULT_SPECS): Define.
16611 (TARGET_CPU_gr5): Likewise.
16612 (TARGET_CPU_gr6): Likewise.
16613 (MULTILIB_DEFAULTS): Likewise.
16614 * config/visium/t-visium (MULTILIB_OPTIONS): Request distinct variants
16615 for mcpu=gr5 and mcpu=gr6.
16616 (MULTILIB_DIRNAMES): Adjust accordingly.
16618 2015-09-13 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
16620 * tree-ssa-loop-im.c (mem_ref_loc_p): Remove typedef.
16621 (mem_ref_p): Likewise.
16622 (outermost_indep_loop): Adjust.
16623 (mem_ref_in_stmt): Likewise.
16624 (determine_max_movement): Likewise.
16625 (mem_ref_alloc): Likewise.
16626 (record_mem_ref_loc): Likewise.
16627 (set_ref_stored_in_loop): Likewise.
16628 (mark_ref_stored): Likewise.
16629 (gather_mem_refs_stmt): Likewise.
16630 (mem_refs_may_alias_p): Likewise.
16631 (for_all_locs_in_loop): Likewise.
16632 (struct rewrite_mem_ref_loc): Likewise.
16633 (rewrite_mem_refs): Likewise.
16634 (struct first_mem_ref_loc_1): Likewise.
16635 (first_mem_ref_loc): Likewise.
16636 (struct sm_set_flag_if_changed): Likewise.
16637 (execute_sm_if_changed_flag_set): Likewise.
16638 (execute_sm): Likewise.
16639 (hoist_memory_references):
16640 (struct ref_always_accessed): Likewise.
16641 (ref_always_accessed_p): Likewise.
16642 (refs_independent_p): Likewise.
16643 (record_dep_loop): Likewise.
16644 (ref_indep_loop_p_1): Likewise.
16645 (ref_indep_loop_p_2): Likewise.
16646 (ref_indep_loop_p): Likewise.
16647 (can_sm_ref_p): Likewise.
16648 (find_refs_for_sm): Likewise.
16649 (tree_ssa_lim_finalize): Likewise.
16651 2015-09-13 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
16653 * dwarf2out.c (dw_attr_ref): Remove typedef.
16654 (dw_line_info_ref): Likewise.
16655 (pubname_ref): Likewise.
16656 (dw_ranges_ref): Likewise.
16657 (dw_ranges_by_label_ref): Likewise.
16658 (comdat_type_node_ref): Likewise.
16660 (get_AT_low_pc): Likewise.
16661 (get_AT_hi_pc): Likewise.
16662 (get_AT_string): Likewise.
16663 (get_AT_flag): Likewise.
16664 (get_AT_unsigned): Likewise.
16665 (get_AT_ref): Likewise.
16666 (get_AT_file): Likewise.
16667 (remove_AT): Likewise.
16668 (print_die): Likewise.
16669 (check_die): Likewise.
16670 (die_checksum): Likewise.
16671 (attr_checksum_ordered): Likewise.
16672 (struct checksum_attributes): Likewise.
16673 (collect_checksum_attributes): Likewise.
16674 (die_checksum_ordered): Likewise.
16675 (same_die_p): Likewise.
16676 (is_declaration_die): Likewise.
16677 (clone_die): Likewise.
16678 (clone_as_declaration): Likewise.
16679 (copy_declaration_context): Likewise.
16680 (break_out_comdat_types): Likewise.
16681 (copy_decls_walk): Likewise.
16682 (output_location_lists): Likewise.
16683 (external_ref_hasher::hash): Likewise.
16684 (optimize_external_refs_1): Likewise.
16685 (build_abbrev_table): Likewise.
16686 (size_of_die): Likewise.
16687 (unmark_all_dies): Likewise.
16688 (size_of_pubnames): Likewise.
16689 (output_die_abbrevs): Likewise.
16690 (output_die): Likewise.
16691 (output_pubnames): Likewise.
16692 (add_ranges_num): Likewise.
16693 (add_ranges_by_labels): Likewise.
16694 (add_high_low_attributes): Likewise.
16695 (gen_producer_string): Likewise.
16696 (dwarf2out_set_name): Likewise.
16697 (new_line_info_table): Likewise.
16698 (prune_unused_types_walk_attribs): Likewise.
16699 (prune_unused_types_update_strings): Likewise.
16700 (prune_unused_types): Likewise.
16701 (resolve_addr): Likewise.
16702 (optimize_location_lists_1): Likewise.
16703 (index_location_lists): Likewise.
16704 (dwarf2out_finish): Likewise.
16706 2015-09-13 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
16708 * dwarf2cfi.c (dw_trace_info_ref): Remove typedef.
16710 2015-09-13 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
16712 * tree-vrp.c (struct assert_locus_d): Rename to assert_locus.
16713 (dump_asserts_for): Adjust.
16714 (register_new_assert_for): Likewise.
16715 (process_assert_insertions): Likewise.
16716 (insert_range_assertions): Likewise.
16718 2015-09-13 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
16720 * tree-ssa-ter.c (temp_expr_table_d): Rename to temp_expr_table
16721 and remove typedef.
16722 (new_temp_expr_table): Adjust.
16723 (free_temp_expr_table): Likewise.
16724 (version_to_be_replaced_p): Likewise.
16725 (make_dependent_on_partition): Likewise.
16726 (add_to_partition_kill_list): Likewise.
16727 (remove_from_partition_kill_list): Likewise.
16728 (add_dependence): Likewise.
16729 (finished_with_expr): Likewise.
16730 (process_replaceable): Likewise.
16731 (kill_expr): Likewise.
16732 (kill_virtual_exprs): Likewise.
16733 (mark_replaceable): Likewise.
16734 (find_replaceable_in_bb): Likewise.
16735 (find_replaceable_exprs): Likewise.
16736 (debug_ter): Likewise.
16738 2015-09-13 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
16740 * bt-load.c (struct btr_def_group): Rename from btr_def_group_s.
16741 (struct btr_user): Rename from btr_user_s.
16742 (struct btr_def): Rename from btr_def_s.
16743 (find_btr_def_group): Adjust.
16744 (add_btr_def): Likewise.
16745 (new_btr_user): Likewise.
16746 (note_other_use_this_block): Likewise.
16747 (compute_defs_uses_and_gen): Likewise.
16748 (link_btr_uses): Likewise.
16749 (build_btr_def_use_webs): Likewise.
16750 (block_at_edge_of_live_range_p): Likewise.
16751 (btr_def_live_range): Likewise.
16752 (combine_btr_defs): Likewise.
16753 (move_btr_def): Likewise.
16754 (migrate_btr_def): Likewise.
16755 (migrate_btr_defs): Likewise.
16757 2015-09-13 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
16759 * var-tracking.c (shared_hash_def): Rename to shared_hash.
16760 (shared_hash): Remove typedef.
16761 (struct dataflow_set): Adjust.
16762 (shared_hash_unshare): Likewise.
16763 (dataflow_set_merge): Likewise.
16764 (vt_initialize): Likewise.
16765 (vt_finalize): Likewise.
16767 2015-09-13 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
16769 * var-tracking.c (struct location_chain): Rename from
16770 location_chain_def.
16771 (struct variable_part): Adjust.
16772 (variable_htab_free): Likewise.
16773 (unshare_variable): Likewise.
16774 (get_init_value): Likewise.
16775 (get_addr_from_local_cache): Likewise.
16776 (drop_overlapping_mem_locs): Likewise.
16777 (val_reset): Likewise.
16778 (struct variable_union_info): Likewise.
16779 (variable_union): Likewise.
16780 (find_loc_in_1pdv): Likewise.
16781 (insert_into_intersection): Likewise.
16782 (intersect_loc_chains): Likewise.
16783 (canonicalize_loc_order_check): Likewise.
16784 (canonicalize_values_mark): Likewise.
16785 (canonicalize_values_star): Likewise.
16786 (canonicalize_vars_star): Likewise.
16787 (variable_merge_over_cur): Likewise.
16788 (remove_duplicate_values): Likewise.
16789 (variable_post_merge_new_vals): Likewise.
16790 (variable_post_merge_perm_vals): Likewise.
16791 (find_mem_expr_in_1pdv): Likewise.
16792 (dataflow_set_preserve_mem_locs): Likewise.
16793 (dataflow_set_remove_mem_locs): Likewise.
16794 (variable_part_different_p): Likewise.
16795 (onepart_variable_different_p): Likewise.
16796 (find_src_set_src): Likewise.
16797 (dump_var): Likewise.
16798 (set_slot_part): Likewise.
16799 (clobber_slot_part): Likewise.
16800 (delete_slot_part): Likewise.
16801 (vt_expand_var_loc_chain): Likewise.
16802 (emit_note_insn_var_location): Likewise.
16803 (vt_finalize): Likewise.
16805 2015-09-13 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
16807 * dse.c (store_info_t): Remove typedef.
16808 (group_info_t): Likewise.
16809 (const_group_info_t): Likewise.
16810 (deferred_change_t): Likewise.
16811 (get_group_info): Adjust.
16812 (free_store_info): Likewise.
16813 (canon_address): Likewise.
16814 (clear_rhs_from_active_local_stores): Likewise.
16815 (record_store): Likewise.
16816 (replace_read): Likewise.
16817 (check_mem_read_rtx): Likewise.
16818 (scan_insn): Likewise.
16819 (remove_useless_values): Likewise.
16820 (dse_step1): Likewise.
16821 (dse_step2_init): Likewise.
16822 (dse_step2_nospill): Likewise.
16823 (scan_stores_nospill): Likewise.
16824 (scan_reads_nospill): Likewise.
16825 (dse_step3_exit_block_scan): Likewise.
16826 (dse_step3): Likewise.
16827 (dse_step5_nospill): Likewise.
16828 (dse_step6): Likewise.
16830 2015-09-13 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
16832 * alias.c (alias_set_entry_d): Rename to alias_set_entry.
16833 (alias_set_entry): Remove typedef.
16834 (alias_set_subset_of): Adjust.
16835 (alias_sets_conflict_p): Likewise.
16836 (init_alias_set_entry): Likewise.
16837 (get_alias_set): Likewise.
16838 (new_alias_set): Likewise.
16839 (record_alias_subset): Likewise.
16841 2015-09-13 Gerald Pfeifer <gerald@pfeifer.com>
16843 * doc/install.texi (Downloading the source): Mark up
16844 contrib/download_prerequisites properly and drop leading "./".
16846 2015-09-12 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
16848 * config/arc/arc.h: Remove define of STRUCT_VALUE.
16849 * config/lm32/lm32.h: Likewise.
16850 * config/mep/mep.h: Likewise.
16851 * config/visium/visium.h: Likewise.
16852 * system.h: Poison STRUCT_VALUE macro.
16854 2015-09-12 John David Anglin <danglin@gcc.gnu.org>
16856 * config/pa/pa.c (pa_output_move_double): Enhance to handle HIGH
16857 CONSTANT_P operands.
16859 2015-09-11 David S. Miller <davem@davemloft.net>
16861 * config/sparc/constraints.md: Make "U" constraint a real register
16863 * config/sparc/sparc.c (TARGET_LRA_P): Define.
16864 (D_MODES, DF_MODES): Add missing cast.
16865 (TF_MODES, TF_MODES_NO_S): Include T_MODE.
16866 (OF_MODES, OF_MODES_NO_S): Include O_MODE.
16867 (sparc_register_move_cost): Decrease Niagara/UltrsSPARC memory
16869 * config/sparc/sparc.h (PROMOTE_MODE): Define.
16870 * config/sparc/sparc.md (*movsi_lo_sum, *movsi_high): Do not
16871 provide these insn when flag_pic.
16873 2015-09-11 Jeff Law <law@redhat.com>
16875 PR tree-optimization/47679
16876 * tree-ssa-dom.c (struct cond_equivalence): Update comment.
16877 * tree-ssa-scopedtables.h (class const_and_copies): Prefix data
16878 member with m_. Update inline member functions as necessary. Add
16880 * tree-ssa-scopedtables.c: Update const_and_copies's member
16881 functions to use m_ prefix to access the stack.
16883 2015-09-11 Aditya Kumar <aditya.k7@samsung.com>
16885 * graphite-optimize-isl.c (disable_tiling): Remove.
16886 (get_schedule_for_band): Do not use disable_tiling.
16887 (get_prevector_map): Delete function.
16888 (enable_polly_vector): Remove.
16889 (get_schedule_for_band_list): Remove dead code.
16891 2015-09-11 Aditya Kumar <aditya.k7@samsung.com>
16893 * graphite-optimize-isl.c (get_tile_map): Refactor.
16894 (get_schedule_for_band): Same.
16895 (getScheduleForBand): Same.
16896 (get_prevector_map): Same.
16897 (get_schedule_for_band_list): Same.
16898 (get_schedule_map): Same.
16899 (get_single_map): Same.
16900 (apply_schedule_map_to_scop): Same.
16901 (optimize_isl): Same.
16903 2015-09-10 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
16906 * config/aarch64/aarch.md (mov<mode>:GPF_F16): Use GPF_TF_F16.
16908 * config/aarch64/iterators.md (GPF_TF_F16): New.
16911 2015-09-10 Nathan Sidwell <nathan@acm.org>
16913 * config/nvptx/nvptx.c (nvptx_expand_call): Add spacing.
16914 (nvptx_reorg): Adjust comments.
16916 2015-09-15 John David Anglin <danglin@gcc.gnu.org>
16919 * configure.ac: Check if setenv and unsetenv are declared.
16920 * configure: Rebuild.
16921 * config.in: Rebuild.
16922 * system.h: Declare setenv and unsetenv if not declared.
16924 2015-09-10 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
16926 * config/rs6000/rs6000.c (swap_web_entry): Update preceding
16927 commentary to simplify permute mask adjustment equation.
16928 (special_handling_values): Add SH_VPERM.
16929 (const_load_sequence_p): New function.
16930 (insn_is_swappable_p): Add logic to recognize an UNSPEC_VPERM with
16931 the mask loaded from the constant pool.
16932 (adjust_vperm): New function.
16933 (handle_special_swappables): Call adjust_vperm.
16934 (dump_swap_insn_table): Handle SH_VPERM.
16936 2015-09-10 H.J. Lu <hongjiu.lu@intel.com>
16938 * shrink-wrap.c (requires_stack_frame_p): Remove static.
16939 * shrink-wrap.h (requires_stack_frame_p): Put back.
16941 2015-09-10 Richard Sandiford <richard.sandiford@arm.com>
16943 * reload1.c (elimination_costs_in_insn): Locally turn
16944 -Wmaybe-uninitialized into a warning.
16946 2015-09-10 Segher Boessenkool <segher@kernel.crashing.org>
16948 * shrink-wrap.c (requires_stack_frame_p): Make static.
16949 (prepare_shrink_wrap): Likewise.
16950 (dup_block_and_redirect): Likewise.
16951 * shrink-wrap.h: Remove declarations of those functions.
16953 2015-09-10 Mark Wielaard <mjw@redhat.com>
16955 * doc/invoke.texi (Wnonnull): Also warns when comparing against NULL.
16957 2015-09-10 Oleg Endo <olegendo@gcc.gnu.org>
16960 * config/sh/sh.c (sh_extending_set_of_reg::use_as_extended_reg): Add
16961 missing simplify_gen_subreg.
16963 2015-09-10 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
16965 * config/s390/s390.c (s390_contiguous_bitmask_vector_p): Reject if
16966 the vector element is bigger than 64 bit.
16968 2015-09-10 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
16970 * config/s390/vx-builtins.md ("vec_vmal<mode>", "vec_vmah<mode>")
16971 ("vec_vmalh<mode>"): Change mode iterator from VI_HW to VI_HW_QHS.
16973 2015-09-10 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
16975 * config/s390/s390.c: Add V1TImode to constant pool modes.
16977 2015-09-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
16980 * config/arm/arm.md (*arm32_movhf): Remove !arm_restrict_it from
16981 predicate. Set predicable_short_it attr to "no".
16983 2015-09-10 Jiong Wang <jiong.wang@arm.com>
16985 PR rtl-optimization/67421
16986 * expr.c (expand_expr_real_2): Cost instrcution sequences when doing
16987 left wide shift tranformation.
16989 2015-09-10 Claudiu Zissulescu <claziss@synopsys.com>
16991 * common/config/arc/arc-common.c: Remove references to A5.
16992 * config/arc/arc-opts.h: Likewise.
16993 * config/arc/arc.c, config/arc/arc.h, config/arc/arc.md: Likewise.
16994 * config/arc/arc.opt, config/arc/constraints.md: Likewise.
16995 * config/arc/t-arc-newlib: Likewise.
16997 2015-09-10 Claudiu Zissulescu <claziss@synopsys.com>
16999 * config/arc/arc.md (length): Fix attribute length for conditional
17000 executed instructions with long immediate.
17002 2015-09-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
17004 * config/aarch64/aarch64.md (*and<mode>3nr_compare0): Use logics_imm
17005 type for second alternative.
17007 2015-09-10 Markus Trippelsdorf <markus@trippelsdorf.de>
17009 * doc/invoke.texi (Downloading GCC): Mention
17010 contrib/download_prerequisites script.
17012 2015-09-10 Jakub Jelinek <jakub@redhat.com>
17015 * gimplify.c (gimplify_omp_for): If inner stmt is not found
17016 for combined loop, assert seen_error () and return GS_ERROR.
17018 PR middle-end/67521
17019 * gimplify.c (gimplify_omp_for): Don't call omp_add_variable
17020 if decl is already in outer->variables.
17022 PR middle-end/67517
17023 * gimplify.c (gimplify_scan_omp_clauses): Instead of
17024 asserting that decl is not specified in octx->variables,
17025 break out of the loop if it is.
17028 * gimplify.c (gimplify_omp_for): For loop SIMD construct, if
17029 iterator is not explicitly determined, but is defined inside
17030 of the combined workshare region, handle it like if it has
17031 DECL_EXPR in OMP_FOR_PRE_BODY.
17033 2015-09-09 Nathan Sidwell <nathan@acm.org>
17035 * config/nvptx/nvptx.md (call_operation): Move bound out of loop.
17036 (*cmp<mode>): Add assembler spacing.
17037 (setcc_int<mode>, set_cc_float<mode>): Likewise.
17038 * config/nvptx/nvptx.c (nvptx_option_override): Override debug
17040 (write_func_decl_from_insn): Refactor argument loops & comma emission.
17041 (nvptx_expand_call): Likewise.
17042 (nvptx_output_call_insn): Likewise.
17043 (nvptx_reorg_subreg): Add spacing.
17045 2015-09-09 Marek Polacek <polacek@redhat.com>
17047 PR middle-end/67512
17048 * tree-ssa-uninit.c (pred_equal_p): Only call invert_tree_comparison
17051 2015-09-09 Paolo Carlini <paolo.carlini@oracle.com>
17054 * doc/invoke.texi ([Wsubobject-linkage]): Document.
17056 2015-09-09 Tom de Vries <tom@codesourcery.com>
17058 * params-list.h: Add missing copyright notice.
17060 2015-09-09 Nathan Sidwell <nathan@acm.org>
17062 * config/nvptx/nvptx.md (atomic_compare_and_swap<mode>): Use
17063 sel_truesi, not andsi.
17065 2015-09-09 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
17067 * config/arm/arm.md (*subsi3_compare0): Rename to...
17068 (subsi3_compare0): ... This.
17069 (modsi3): New define_expand.
17070 * config/arm/arm.c (arm_new_rtx_costs, MOD case): Handle case
17071 when operand is power of 2.
17073 2015-09-09 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
17075 * config/aarch64/aarch64.md (mod<mode>3): New define_expand.
17076 (*neg<mode>2_compare0): Rename to...
17077 (neg<mode>2_compare0): ... This.
17078 * config/aarch64/aarch64.c (aarch64_rtx_costs, MOD case):
17079 Move check for speed inside the if-then-elses. Reflect
17080 CSNEG sequence in MOD by power of 2 case.
17082 2015-09-09 Alan Modra <amodra@gmail.com>
17085 * config/rs6000/rs6000.c (rs6000_secondary_reload_gpr): Find
17086 reload replacement for PRE_MODIFY address reg.
17088 2015-09-09 Sebastian Pop <s.pop@samsung.com>
17090 PR tree-optimization/53852
17091 * config.in: Regenerate.
17092 * configure: Regenerate.
17093 * configure.ac (HAVE_ISL_CTX_MAX_OPERATIONS): Detect.
17094 * graphite-optimize-isl.c (optimize_isl): Stop computation when
17095 PARAM_MAX_ISL_OPERATIONS is reached.
17096 * params.def (PARAM_MAX_ISL_OPERATIONS): Add.
17097 * graphite-dependences.c (extend_schedule): Remove gcc_asserts on
17098 result equal to isl_stat_ok as the status now can be isl_error_quota.
17099 (subtract_commutative_associative_deps): Same.
17100 (compute_deps): Same.
17102 2015-09-08 Aditya Kumar <hiraditya@msn.com>
17103 Sebastian Pop <s.pop@samsung.com>
17105 * graphite-isl-ast-to-gimple.c (gcc_expression_from_isl_ast_expr_id):
17106 Return the parameter if it was saved in corresponding
17107 parameter_rename_map of the region.
17108 (copy_def): Copy def from sese region to the newly created region.
17109 (copy_internal_parameters): Copy all the internal parameters defined
17110 within a region to the newly created region.
17111 (graphite_regenerate_ast_isl): Copy parameters to the new region before
17112 translating isl to gimple.
17113 * graphite-scop-detection.c (graphite_can_represent_loop): Bail out if
17114 the loop-nest does not have any data-references.
17115 (build_graphite_scops): Create a scop only when there is at least one
17117 (contains_only_close_phi_nodes): Deleted.
17118 (print_graphite_scop_statistics): Deleted
17119 (print_graphite_statistics): Deleted
17120 (limit_scops): Deleted.
17121 (build_scops): Removed call to limit_scops.
17122 * sese.c (new_sese): Construct.
17123 (free_sese): Destruct.
17124 (sese_add_exit_phis_edge): update_stmt after exit phi edge has been
17126 (set_rename): Pass sese region so that parameters inside the region can
17127 be added to its parameter_rename_map.
17128 (rename_uses): Pass sese region.
17129 (graphite_copy_stmts_from_block): Do not copy parameters that have been
17130 generated in the header of the scop. For each SSA_NAME in the
17131 parameter_rename_map rename its usage.
17132 (invariant_in_sese_p_rec): Return false if tree t is defined outside
17134 (scalar_evolution_in_region): If the tree t is invariant just return t.
17135 * sese.h: Added a parameter renamne map (parameter_rename_map_t) to
17136 struct sese to keep track of all the parameters which need renaming.
17137 * tree-data-ref.c (loop_nest_has_data_refs): Check if a loop nest has
17139 * tree-data-ref.h: Declaration of loop_nest_has_data_refs.
17141 2015-09-08 Tom de Vries <tom@codesourcery.com>
17143 * Makefile.in (generated_files): Add params.list.
17144 (params.list, s-params.list): Add rule.
17145 * params.h (enum compiler_param): Include params-list.h. Move define
17146 DEFPARAM, include params.def and undef DEFPARAM ...
17147 * params-list.h: ... here. New file.
17149 2015-09-08 David Malcolm <dmalcolm@redhat.com>
17151 * pretty-print.h (printer_fn): Fix typo in comment.
17153 2015-09-07 Jeff Law <law@redhat.com>
17155 * tree-ssa-scopedtables.h (class const_and_copies): Fix comment typo.
17157 2015-09-08 Alan Lawrence <alan.lawrence@arm.com>
17159 * doc/sourcebuild.texi (arm_neon_fp16): Correct cross-reference.
17160 (arm_neon_fp16_ok): Document adding of -mfp16-format=ieee flag.
17161 (arm_neon_fp16_hw): New.
17163 2015-09-08 Alan Lawrence <alan.lawrence@arm.com>
17165 * fold-const.c (native_interpret_real): Fix HFmode for bigendian where
17166 UNITS_PER_WORD >= 4.
17168 2015-09-08 Alan Lawrence <alan.lawrence@arm.com>
17170 * config/aarch64/aarch64-simd.md (aarch64_simd_vec_unpacks_lo_<mode>,
17171 aarch64_simd_vec_unpacks_hi_<mode>): New insn.
17172 (vec_unpacks_lo_v4sf, vec_unpacks_hi_v4sf): Delete insn.
17173 (vec_unpacks_lo_<mode>, vec_unpacks_hi_<mode>): New expand.
17174 (aarch64_float_extend_lo_v2df): Rename to...
17175 (aarch64_float_extend_lo_<Vwide>): this, using VDF and so adding V4SF.
17177 * config/aarch64/aarch64-simd-builtins.def (vec_unpacks_hi): Add v8hf.
17178 (float_extend_lo): Add v4sf.
17180 * config/aarch64/arm_neon.h (vcvt_f32_f16, vcvt_high_f32_f16): New.
17181 * config/aarch64/iterators.md (VQ_HSF): New iterator.
17182 (VWIDE, Vwtype, Vhalftype): Add V8HF, V4SF.
17183 (Vwide): New mode_attr.
17185 2015-09-08 Alan Lawrence <alan.lawrence@arm.com>
17187 * config/aarch64/aarch64-simd.md (aarch64_simd_dup<mode>,
17188 aarch64_dup_lane<mode>, aarch64_dup_lane_<vswap_width_name><mode>,
17189 aarch64_simd_vec_set<mode>, vec_set<mode>, vec_perm_const<mode>,
17190 vec_init<mode>, *aarch64_simd_ld1r<mode>, vec_extract<mode>): Add
17191 V4HF and V8HF variants to iterator.
17193 * config/aarch64/aarch64.c (aarch64_evpc_dup): Add V4HF and V8HF cases.
17195 * config/aarch64/iterators.md (VDQF_F16): New.
17196 (VSWAP_WIDTH, vswap_width_name): Add V4HF and V8HF cases.
17198 2015-09-08 Alan Lawrence <alan.lawrence@arm.com>
17200 * config/aarch64/arm_neon.h (vreinterpret_p8_f16, vreinterpret_p16_f16,
17201 vreinterpret_f16_f64, vreinterpret_f16_s8, vreinterpret_f16_s16,
17202 vreinterpret_f16_s32, vreinterpret_f16_s64, vreinterpret_f16_f32,
17203 vreinterpret_f16_u8, vreinterpret_f16_u16, vreinterpret_f16_u32,
17204 vreinterpret_f16_u64, vreinterpret_f16_p8, vreinterpret_f16_p16,
17205 vreinterpretq_f16_f64, vreinterpretq_f16_s8, vreinterpretq_f16_s16,
17206 vreinterpretq_f16_s32, vreinterpretq_f16_s64, vreinterpretq_f16_f32,
17207 vreinterpretq_f16_u8, vreinterpretq_f16_u16, vreinterpretq_f16_u32,
17208 vreinterpretq_f16_u64, vreinterpretq_f16_p8, vreinterpretq_f16_p16,
17209 vreinterpret_f32_f16, vreinterpret_f64_f16, vreinterpret_s64_f16,
17210 vreinterpret_u64_f16, vreinterpretq_u64_f16, vreinterpret_s8_f16,
17211 vreinterpret_s16_f16, vreinterpret_s32_f16, vreinterpret_u8_f16,
17212 vreinterpret_u16_f16, vreinterpret_u32_f16, vreinterpretq_p8_f16,
17213 vreinterpretq_p16_f16, vreinterpretq_f32_f16, vreinterpretq_f64_f16,
17214 vreinterpretq_s64_f16, vreinterpretq_s8_f16, vreinterpretq_s16_f16,
17215 vreinterpretq_s32_f16, vreinterpretq_u8_f16, vreinterpretq_u16_f16,
17216 vreinterpretq_u32_f16, vget_low_f16, vget_high_f16, vld1_dup_f16,
17217 vld1q_dup_f16): New.
17219 2015-09-08 Alan Lawrence <alan.lawrence@arm.com>
17221 * config/aarch64/aarch64-simd.md (aarch64_float_truncate_lo_v2sf):
17222 Reparameterize to...
17223 (aarch64_float_truncate_lo_<mode>): ...this, for both V2SF and V4HF.
17224 (aarch64_float_truncate_hi_v4sf): Reparameterize to...
17225 (aarch64_float_truncate_hi_<Vdbl>): ...this, for both V4SF and V8HF.
17227 * config/aarch64/aarch64-simd-builtins.def (float_truncate_hi_): Add
17229 (float_truncate_lo_): Use BUILTIN_VDF iterator.
17231 * config/aarch64/arm_neon.h (vcvt_f16_f32, vcvt_high_f16_f32): New.
17233 * config/aarch64/iterators.md (VDF, Vdtype): New.
17234 (VWIDE, Vmwtype): Add cases for V4HF and V2SF.
17236 2015-09-08 Alan Lawrence <alan.lawrence@arm.com>
17238 * config/aarch64/aarch64.c (aarch64_split_simd_combine): Add V4HFmode.
17239 * config/aarch64/aarch64-builtins.c (VAR13, VAR14): New.
17240 (aarch64_scalar_builtin_types, aarch64_init_simd_builtin_scalar_types):
17241 Add __builtin_aarch64_simd_hf.
17242 * config/aarch64/arm_neon.h (float16x4x2_t, float16x8x2_t,
17243 float16x4x3_t, float16x8x3_t, float16x4x4_t, float16x8x4_t,
17244 vcombine_f16, vst2_lane_f16, vst2q_lane_f16, vst3_lane_f16,
17245 vst3q_lane_f16, vst4_lane_f16, vst4q_lane_f16, vld2_f16, vld2q_f16,
17246 vld3_f16, vld3q_f16, vld4_f16, vld4q_f16, vld2_dup_f16, vld2q_dup_f16,
17247 vld3_dup_f16, vld3q_dup_f16, vld4_dup_f16, vld4q_dup_f16,
17248 vld2_lane_f16, vld2q_lane_f16, vld3_lane_f16, vld3q_lane_f16,
17249 vld4_lane_f16, vld4q_lane_f16, vst2_f16, vst2q_f16, vst3_f16,
17250 vst3q_f16, vst4_f16, vst4q_f16, vcreate_f16): New.
17252 * config/aarch64/iterators.md (VALLDIF, Vtype, Vetype, Vbtype,
17253 V_cmp_result, v_cmp_result): Add cases for V4HF and V8HF.
17254 (VDC, Vdbl): Add V4HF.
17256 2015-09-08 Alan Lawrence <alan.lawrence@arm.com>
17258 * config/aarch64/aarch64.c (aarch64_vector_mode_supported_p): Support
17259 V4HFmode and V8HFmode.
17260 (aarch64_split_simd_move): Add case for V8HFmode.
17261 * config/aarch64/aarch64-builtins.c (v4hf_UP, v8hf_UP): Define.
17262 (aarch64_simd_builtin_std_type): Handle HFmode.
17263 (aarch64_init_simd_builtin_types): Include Float16x4_t and Float16x8_t.
17265 * config/aarch64/aarch64-simd.md (mov<mode>, aarch64_get_lane<mode>,
17266 aarch64_ld1<VALL:mode>, aarch64_st1<VALL:mode): Use VALL_F16 iterator.
17267 (aarch64_be_ld1<mode>, aarch64_be_st1<mode>): Use VALLDI_F16 iterator.
17269 * config/aarch64/aarch64-simd-builtin-types.def: Add Float16x4_t,
17272 * config/aarch64/aarch64-simd-builtins.def (ld1, st1): Use VALL_F16.
17273 * config/aarch64/arm_neon.h (float16x4_t, float16x8_t, float16_t):
17275 (vget_lane_f16, vgetq_lane_f16, vset_lane_f16, vsetq_lane_f16,
17276 vld1_f16, vld1q_f16, vst1_f16, vst1q_f16, vst1_lane_f16,
17277 vst1q_lane_f16): New.
17278 * config/aarch64/iterators.md (VD, VQ, VQ_NO2E): Add vectors of HFmode.
17279 (VALLDI_F16, VALL_F16): New.
17280 (Vmtype, VEL, VCONQ, VHALF, V_TWO_ELEM, V_THREE_ELEM, V_FOUR_ELEM, q):
17281 Add cases for V4HF and V8HF.
17282 (VDBL, VRL2, VRL3, VRL4): Add V4HF case.
17284 2015-09-08 Alan Lawrence <alan.lawrence@arm.com>
17286 * config/arm/arm-builtins.c (VAR11, VAR12): New.
17287 * config/arm/arm_neon_builtins.def (vcombine, vld2_dup, vld3_dup,
17288 vld4_dup): Add v4hf variant.
17289 (vget_high, vget_low): Add v8hf variant.
17290 (vld1, vst1, vst1_lane, vld2, vld2_lane, vst2, vst2_lane, vld3,
17291 vld3_lane, vst3, vst3_lane, vld4, vld4_lane, vst4, vst4_lane): Add
17292 v4hf and v8hf variants.
17294 * config/arm/iterators.md (VD_LANE, VD_RE, VQ2, VQ_HS): New.
17296 (V_DOUBLE): Add case for V4HF.
17298 (V_HALF): Add case for V8HF.
17299 (VDQX): Add V4HF, V8HF.
17300 (V_elem, V_two_elem, V_three_elem, V_four_elem, V_cmp_result,
17301 V_uf_sclr, V_sz_elem, V_mode_nunits, q): Add cases for V4HF & V8HF.
17303 * config/arm/neon.md (vec_set<mode>internal, vec_extract<mode>,
17304 neon_vget_lane<mode>_sext_internal, neon_vget_lane<mode>_zext_internal,
17305 vec_load_lanesoi<mode>, neon_vld2<mode>, vec_store_lanesoi<mode>,
17306 neon_vst2<mode>, vec_load_lanesci<mode>, neon_vld3<mode>,
17307 neon_vld3qa<mode>, neon_vld3qb<mode>, vec_store_lanesci<mode>,
17308 neon_vst3<mode>, neon_vst3qa<mode>, neon_vst3qb<mode>,
17309 vec_load_lanesxi<mode>, neon_vld4<mode>, neon_vld4qa<mode>,
17310 neon_vld4qb<mode>, vec_store_lanesxi<mode>, neon_vst4<mode>,
17311 neon_vst4qa<mode>, neon_vst4qb<mode>): Change VQ iterator to VQ2.
17313 (neon_vcreate, neon_vreinterpretv8qi<mode>,
17314 neon_vreinterpretv4hi<mode>, neon_vreinterpretv2si<mode>,
17315 neon_vreinterpretv2sf<mode>, neon_vreinterpretdi<mode>):
17316 Change VDX to VD_RE.
17318 (neon_vld2_lane<mode>, neon_vst2_lane<mode>, neon_vld3_lane<mode>,
17319 neon_vst3_lane<mode>, neon_vld4_lane<mode>, neon_vst4_lane<mode>):
17320 Change VD iterator to VD_LANE, and VMQ iterator to VQ_HS.
17322 * config/arm/arm_neon.h (float16x4x2_t, float16x8x2_t, float16x4x3_t,
17323 float16x8x3_t, float16x4x4_t, float16x8x4_t, vcombine_f16,
17324 vget_high_f16, vget_low_f16, vld1_f16, vld1q_f16, vst1_f16, vst1q_f16,
17325 vst1_lane_f16, vst1q_lane_f16, vld2_f16, vld2q_f16, vld2_lane_f16,
17326 vld2q_lane_f16, vld2_dup_f16, vst2_f16, vst2q_f16, vst2_lane_f16,
17327 vst2q_lane_f16, vld3_f16, vld3q_f16, vld3_lane_f16, vld3q_lane_f16,
17328 vld3_dup_f16, vst3_f16, vst3q_f16, vst3_lane_f16, vst3q_lane_f16,
17329 vld4_f16, vld4q_f16, vld4_lane_f16, vld4q_lane_f16, vld4_dup_f16,
17330 vst4_f16, vst4q_f16, vst4_lane_f16, vst4q_lane_f16): New.
17332 2015-09-08 Alan Lawrence <alan.lawrence@arm.com>
17334 * config/arm/arm_neon.h (vgetq_lane_f16, vsetq_lane_f16, vld1q_lane_f16,
17335 vld1q_dup_f16, vreinterpretq_p8_f16, vreinterpretq_p16_f16,
17336 vreinterpretq_f16_p8, vreinterpretq_f16_p16, vreinterpretq_f16_f32,
17337 vreinterpretq_f16_p64, vreinterpretq_f16_p128, vreinterpretq_f16_s64,
17338 vreinterpretq_f16_u64, vreinterpretq_f16_s8, vreinterpretq_f16_s16,
17339 vreinterpretq_f16_s32, vreinterpretq_f16_u8, vreinterpretq_f16_u16,
17340 vreinterpretq_f16_u32, vreinterpretq_f32_f16, vreinterpretq_p64_f16,
17341 vreinterpretq_p128_f16, vreinterpretq_s64_f16, vreinterpretq_u64_f16,
17342 vreinterpretq_s8_f16, vreinterpretq_s16_f16, vreinterpretq_s32_f16,
17343 vreinterpretq_u8_f16, vreinterpretq_u16_f16, vreinterpretq_u32_f16):
17346 2015-09-08 Alan Lawrence <alan.lawrence@arm.com>
17348 * config/arm/arm.h (VALID_NEON_QREG_MODE): Add V8HFmode.
17350 * config/arm/arm.c (arm_vector_mode_supported_p): Support V8HFmode.
17352 * config/arm/arm-builtins.c (v8hf_UP): New.
17353 (arm_init_simd_builtin_types): Initialise Float16x8_t.
17355 * config/arm/arm-simd-builtin-types.def (Float16x8_t): New.
17357 * config/arm/arm_neon.h (float16x8_t): New typedef.
17359 2015-09-08 Alan Lawrence <alan.lawrence@arm.com>
17361 * config/arm/arm_neon.h (float16_t, vget_lane_f16, vset_lane_f16,
17362 vcreate_f16, vld1_lane_f16, vld1_dup_f16, vreinterpret_p8_f16,
17363 vreinterpret_p16_f16, vreinterpret_f16_p8, vreinterpret_f16_p16,
17364 vreinterpret_f16_f32, vreinterpret_f16_p64, vreinterpret_f16_s64,
17365 vreinterpret_f16_u64, vreinterpret_f16_s8, vreinterpret_f16_s16,
17366 vreinterpret_f16_s32, vreinterpret_f16_u8, vreinterpret_f16_u16,
17367 vreinterpret_f16_u32, vreinterpret_f32_f16, vreinterpret_p64_f16,
17368 vreinterpret_s64_f16, vreinterpret_u64_f16, vreinterpret_s8_f16,
17369 vreinterpret_s16_f16, vreinterpret_s32_f16, vreinterpret_u8_f16,
17370 vreinterpret_u16_f16, vreinterpret_u32_f16): New.
17372 2015-09-07 Ilya Verbin <ilya.verbin@intel.com>
17374 * config/i386/intelmic-mkoffload.c (prepare_target_image): Handle all
17375 non-alphanumeric characters in the symbol name.
17377 2015-09-07 Marek Polacek <polacek@redhat.com>
17379 PR inline-asm/67448
17380 * gimplify.c (gimplify_asm_expr): Don't allow MODIFY_EXPR as
17383 2015-09-07 Marek Polacek <polacek@redhat.com>
17385 * system.h (INTTYPE_MINIMUM): Rewrite to avoid shift warning.
17387 2015-09-04 Paolo Bonzini <bonzini@gnu.org>
17389 * config/i386/cygming.h (SUBTARGET_OVERRIDE_OPTIONS): Do
17392 2015-09-04 Jakub Jelinek <jakub@redhat.com>
17394 PR middle-end/67452
17395 * tree-ssa-live.c: Include cfgloop.h.
17396 (remove_unused_locals): Clear loop->simduid if simduid is about
17397 to be removed from cfun->local_decls.
17399 2015-09-02 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
17402 * config/avr/avr.c (avr_eval_addr_attrib): Look for io_low
17405 2015-09-04 Tom de Vries <tom@codesourcery.com>
17407 * doc/invoke.texi (@item -ftrapv, @item -fwrapv): Document interaction.
17409 2015-09-04 Jeff Law <law@redhat.com>
17411 * tree-ssa-scopedtables.c (const_and_copies::const_and_copies): Remove
17412 unnecessary constructor. It's now trivial and implemented inside...
17413 * tree-ssa-scopedtables.h (const_and_copies): Implement trivial
17414 constructor. Add comments to various methods. Remove unused
17416 * tree-ssa-dom.c (pass_dominator::execute): Corresponding changes.
17417 * tree-vrp.c (identify_jump_threads): Likewise.
17418 * tree-ssa-threadedge.c (thread_through_normal_block): Fix minor
17419 indentation issues.
17420 (thread_across_edge): Similarly.
17421 (record_temporary_equivalences_from_stmts_at_dest): Remove unused
17422 arguments in constructor call.
17424 2015-09-04 Jonas Hahnfeld <Hahnfeld@itc.rwth-aachen.de>
17426 * config/i386/intelmic-mkoffload.c (prepare_target_image): Fix if the
17427 temp path contains a '-'.
17429 2015-09-04 Andrey Turetskiy <andrey.turetskiy@intel.com>
17430 Petr Murzin <petr.murzin@intel.com>
17431 Kirill Yukhin <kirill.yukhin@intel.com>
17433 * config/i386/i386-builtin-types.def
17434 (VOID_PFLOAT_HI_V8DI_V16SF_INT): New.
17435 (VOID_PDOUBLE_QI_V16SI_V8DF_INT): Ditto.
17436 (VOID_PINT_HI_V8DI_V16SI_INT): Ditto.
17437 (VOID_PLONGLONG_QI_V16SI_V8DI_INT): Ditto.
17438 * config/i386/i386.c
17439 (ix86_builtins): Add IX86_BUILTIN_SCATTERALTSIV8DF,
17440 IX86_BUILTIN_SCATTERALTDIV16SF, IX86_BUILTIN_SCATTERALTSIV8DI,
17441 IX86_BUILTIN_SCATTERALTDIV16SI.
17442 (ix86_init_mmx_sse_builtins): Define __builtin_ia32_scatteraltsiv8df,
17443 __builtin_ia32_scatteraltdiv8sf, __builtin_ia32_scatteraltsiv8di,
17444 __builtin_ia32_scatteraltdiv8si.
17445 (ix86_expand_builtin): Handle IX86_BUILTIN_SCATTERALTSIV8DF,
17446 IX86_BUILTIN_SCATTERALTDIV16SF, IX86_BUILTIN_SCATTERALTSIV8DI,
17447 IX86_BUILTIN_SCATTERALTDIV16SI.
17448 (ix86_vectorize_builtin_scatter): New.
17449 (TARGET_VECTORIZE_BUILTIN_SCATTER): Define as
17450 ix86_vectorize_builtin_scatter.
17452 2015-09-04 Andrey Turetskiy <andrey.turetskiy@intel.com>
17453 Petr Murzin <petr.murzin@intel.com>
17454 Kirill Yukhin <kirill.yukhin@intel.com>
17456 * doc/tm.texi.in (TARGET_VECTORIZE_BUILTIN_SCATTER): New.
17457 * doc/tm.texi: Regenerate.
17458 * target.def: Add scatter builtin.
17459 * tree-vectorizer.h: Rename gather_p to gather_scatter_p and use it
17460 for loads/stores in case of gather/scatter accordingly.
17461 (STMT_VINFO_GATHER_SCATTER_P(S)): Use it instead of
17462 STMT_VINFO_GATHER_P(S).
17463 (vect_check_gather): Rename to ...
17464 (vect_check_gather_scatter): this.
17465 * tree-vect-data-refs.c (vect_analyze_data_ref_dependence): Use
17466 STMT_VINFO_GATHER_SCATTER_P instead of STMT_VINFO_SCATTER_P.
17467 (vect_check_gather_scatter): Use it instead of vect_check_gather.
17468 (vect_analyze_data_refs): Add gatherscatter enum and maybe_scatter
17469 variable and new checkings for it accordingly.
17470 * tree-vect-stmts.c
17471 (STMT_VINFO_GATHER_SCATTER_P(S)): Use it instead of
17472 STMT_VINFO_GATHER_P(S).
17473 (vect_check_gather_scatter): Use it instead of vect_check_gather.
17474 (vectorizable_store): Add checkings for STMT_VINFO_GATHER_SCATTER_P.
17476 2015-09-03 Bill Schmidt <wschmidt@vnet.linux.ibm.com>
17478 * config/rs6000/altivec.md (altivec_vperm_v8hiv16qi): New
17480 (mulv16qi3): New define_expand.
17482 2015-09-03 Martin Sebor <msebor@redhat.com>
17485 * doc/extend.texi (Other Builtins): Document when the address
17486 of a built-in function can be taken.
17488 2015-09-03 Richard Biener <rguenther@suse.de>
17490 * dwarf2out.c (flush_limbo_die_list): Split out from ...
17491 (dwarf2out_early_finish): ... here.
17492 (dwarf2out_finish): Do not call dwarf2out_early_finish but
17493 flush_limbo_die_list. Assert we have no deferred asm names.
17495 2015-09-03 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
17497 * optabs.c (expand_binop): Don't create a broadcast vector with a
17498 source element wider than the inner mode.
17500 2015-09-03 Richard Biener <rguenther@suse.de>
17502 * varasm.c (output_constant): Use fold_convert instead of
17505 2015-09-03 Tom de Vries <tom@codesourcery.com>
17507 PR tree-optimization/65637
17508 * omp-low.c (expand_omp_for_static_chunk): Handle case that
17509 fin_bb has 2 predecessors.
17511 2015-09-03 Tom de Vries <tom@codesourcery.com>
17513 PR tree-optimization/65637
17514 * omp-low.c (find_phi_with_arg_on_edge): New function.
17515 (expand_omp_for_static_chunk): Fix inner loop phi.
17517 2015-09-03 Tom de Vries <tom@codesourcery.com>
17519 PR tree-optimization/65637
17520 * omp-low.c (expand_omp_for_static_chunk): Fix gcc_assert for the case
17523 2015-09-03 Tom de Vries <tom@codesourcery.com>
17525 * omp-low.c (expand_omp_for_static_chunk): Handle simple latch bb.
17527 2015-09-03 Tom de Vries <tom@codesourcery.com>
17529 * doc/invoke.texi (parloops-chunk-size): Add item.
17530 * params.def (PARAM_PARLOOPS_CHUNK_SIZE): Add DEFPARAM.
17531 * tree-parloops.c: Include params.h.
17532 (create_parallel_loop): Set chunk-size of schedule of omp-for loop, if
17533 param parloops-chunk-size is used.
17535 2015-09-03 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
17537 PR middle-end/67351
17538 * fold-const.c (fold_binary_loc) : Move
17539 Transform (x >> c) << c into x & (-1<<c) or
17540 transform (x << c) >> c into x & ((unsigned)-1 >> c) for unsigned
17541 types using simplify and match.
17542 * match.pd (lshift (rshift @0 INTEGER_CST@1) @1) : New simplifier.
17543 (rshift (lshift @0 INTEGER_CST@1) @1) : New Simplifier
17545 2015-09-03 Richard Biener <rguenther@suse.de>
17548 * tree-ssa-structalias.c (ctor_for_analysis): New function.
17549 (create_variable_info_for_1): Use ctor_for_analysis instead
17550 of get_constructor.
17551 (create_variable_info_for): Likewise.
17553 2015-09-02 Charles Baylis <charles.baylis@linaro.org>
17556 * cgraphunit.c (cgraph_node::create_wrapper): Set can_throw_external
17557 in new callgraph edge.
17559 2015-09-02 Christophe Lyon <christophe.lyon@linaro.org>
17564 * config/aarch64/aarch64-simd.md
17565 (aarch64_ld<VSTRUCT:nregs><VQ:mode>): Call
17566 gen_aarch64_simd_ld<VSTRUCT:nregs><VQ:mode>.
17567 (aarch64_st<VSTRUCT:nregs><VQ:mode>): Call
17568 gen_aarch64_simd_st<VSTRUCT:nregs><VQ:mode>.
17570 2015-09-02 Alan Modra <amodra@gmail.com>
17572 * config/rs6000/sysv4le.h (LINK_TARGET_SPEC): Don't define.
17573 * config/rs6000/sysv4.h (LINK_TARGET_SPEC): Likewise.
17574 (LINK_SPEC, SUBTARGET_EXTRA_SPECS): Delete link_target.
17576 2015-09-02 Alan Modra <amodra@gmail.com>
17579 * config/rs6000/predicates.md (current_file_function_operand): Don't
17580 return true for weak symbols.
17581 * config/rs6000/rs6000.c (rs6000_function_ok_for_sibcall): Likewise.
17583 2015-09-01 Matthew Fortune <matthew.fortune@imgtec.com>
17584 Andrew Bennett <andrew.bennett@imgtec.com>
17586 * config/mips/mips-opts.h (mips_cb_setting): New enum.
17587 * config/mips/mips-protos.h: Add definitions for
17588 mips_output_jump and mips_output_equal_conditional_branch
17589 * config/mips/mips.c (MIPS_JR): Change to support the
17591 (mips_emit_compare): Add support for the MIPS R6 conditional
17593 (mips_process_sync_loop): Likewise.
17594 (mips_output_order_conditional_branch): Likewise.
17595 (mips16_build_call_stub): Change MIPS_CALL to
17597 (mips_print_operand_punctuation): Update 's' case to only
17598 apply to micromips r2.
17599 (mips_adjust_insn_length): Add support for forbidden slot
17601 (mips_avoid_hazard): Likewise.
17602 (mips_reorg_process_insns): Likewise.
17603 (mips_output_jump): New function.
17604 (mips_output_equal_conditional_branch): Likewise.
17605 (mips_output_conditional_branch): Use jrc/bc if compact
17606 branch support is enabled. Ensure the forbidden slots
17607 between the two branch instructions is filled with a nop.
17608 (mips_option_override): Add support to process the compact
17609 branch option and set the correct defaults. Prevent
17610 non-explict relocs being using for MIPS R6.
17611 (mips_trampoline_init): Add compact branch support.
17612 (mips_mult_zero_zero_cost): Allow zero initialisation of
17613 accumulators with TARGET_DSP.
17614 * config/mips/mips.h (TARGET_CB_NEVER): New define.
17615 (TARGET_CB_MAYBE): New define.
17616 (TARGET_CB_ALWAYS): New define.
17617 (ISA_HAS_DELAY_SLOTS): New define.
17618 (ISA_HAS_COMPACT_BRANCHES): New define.
17619 (ISA_HAS_JRC): New define.
17620 (MIPS_BRANCH_C): New define.
17621 (MIPS_CALL): Removed.
17622 (MICROMIPS_J): Removed.
17623 * config/mips/mips.md (compact_form): New attr.
17624 (hazard): Add support for forbidden slots.
17625 (define_delay): Add support for compact branches.
17626 (*branch_order<mode>): Likewise.
17627 (*branch_order<mode>_inverted): Likewise.
17628 (*branch_equality<mode>): Likewise.
17629 (*branch_equality<mode>_inverted): Likewise.
17630 (*jump_absolute): Likewise.
17631 (*jump_pic): Likewise.
17632 (indirect_jump): Use mips_output_jump to produce assembly output.
17633 (tablejump_<mode>"): Likewise.
17634 (*<optab>"): Likewise.
17635 (<optab>_internal): Likewise.
17636 (sibcall_internal): Likewise.
17637 (sibcall_value_internal): Likewise.
17638 (sibcall_value_multiple_internal): Likewise.
17639 (call_internal): Likewise.
17640 (call_split): Likewise.
17641 (call_internal_direct): Likewise.
17642 (call_direct_split): Likewise.
17643 (call_value_internal): Likewise.
17644 (call_value_split): Likewise.
17645 (call_value_internal_direct): Likewise.
17646 (call_value_direct_split): Likewise.
17647 (call_value_multiple_internal): Likewise.
17648 (call_value_multiple_split): Likewise.
17649 (mips_get_fcsr_mips16_<mode>): Likewise.
17650 (mips_set_fcsr_mips16_<mode>): Likewise.
17651 (tls_get_tp_mips16_<mode>): Likewise.
17652 * config/mips/mips.opt: Add -mcompact-branches option.
17653 * config/mips/predicates.md (order_operator): Ensure the
17654 conditional compact branches are only used if the ISA them.
17655 * doc/invoke.texi: Document -mcompact-branches option.
17657 2015-09-01 Vladimir Makarov <vmakarov@redhat.com>
17660 * lra-lives.c (process_bb_lives): Process move pseudos with the
17661 same value for copies and preferences
17662 * lra-constraints.c (match_reload): Create match reload pseudo
17663 with the same value from single dying input pseudo.
17665 2015-09-01 Ilya Enkovich <enkovich.gnu@gmail.com>
17668 * tree-chkp.c (chkp_find_bound_slots_1): Add NULL check.
17670 2015-09-01 Aldy Hernandez <aldyh@redhat.com>
17672 * trans-mem.c: Add contributed-by.
17673 * trans-mem.h: Same.
17675 2015-09-01 Richard Biener <rguenther@suse.de>
17677 * expr.c (expand_expr_real_1): For expanding TERed defs
17678 set the current location to that of the def if not UNKNOWN.
17680 2015-09-01 David Sherwood <david.sherwood@arm.com>
17682 * genmodes.c: Add CONST_MODE_UNIT_SIZE modifier.
17684 2015-09-01 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
17686 * ifcvt.c (struct noce_if_info): Add then_simple, else_simple,
17687 then_cost, else_cost fields. Change branch_cost field to unsigned int.
17688 (end_ifcvt_sequence): Call set_used_flags on each insn in the sequence.
17689 Include rtl-iter.h.
17690 (noce_simple_bbs): New function.
17691 (noce_try_move): Bail if basic blocks are not simple.
17692 (noce_try_store_flag): Likewise.
17693 (noce_try_store_flag_constants): Likewise.
17694 (noce_try_addcc): Likewise.
17695 (noce_try_store_flag_mask): Likewise.
17696 (noce_try_cmove): Likewise.
17697 (noce_try_minmax): Likewise.
17698 (noce_try_abs): Likewise.
17699 (noce_try_sign_mask): Likewise.
17700 (noce_try_bitop): Likewise.
17701 (bbs_ok_for_cmove_arith): New function.
17702 (noce_emit_all_but_last): Likewise.
17703 (noce_emit_insn): Likewise.
17704 (noce_emit_bb): Likewise.
17705 (noce_try_cmove_arith): Handle non-simple basic blocks.
17706 (insn_valid_noce_process_p): New function.
17707 (contains_mem_rtx_p): Likewise.
17708 (bb_valid_for_noce_process_p): Likewise.
17709 (noce_process_if_block): Allow non-simple basic blocks
17712 2015-08-31 Alan Lawrence <alan.lawrence@arm.com>
17714 * tree-ssa-dom.c (record_equivalences_from_phis,
17715 record_equivalences_from_stmt, optimize_stmt): Use dom_valueize.
17716 (lookup_avail_expr): Likewise, and remove comment and unused temp.
17718 2015-09-01 Nick Clifton <nickc@redhat.com>
17720 * config/msp430/msp430.opt (mcpu): Fix typo.
17722 2015-09-01 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
17724 * config/aarch64/aarch64.c (aarch64_set_current_function):
17725 Re-layout any vector parameters have non-simd layout.
17726 * config/aarch64/aarch64-builtins.c (aarch64_relayout_simd_param):
17728 (aarch64_simd_expand_args): Delete call to the above.
17730 2015-08-31 Mike Frysinger <vapier@gentoo.org>
17732 * doc/invoke.texi (asan-stack): Add space before option.
17734 2015-08-31 Marc Glisse <marc.glisse@inria.fr>
17736 * tree.h (zerop): New function.
17737 * tree.c (zerop): Likewise.
17738 (element_precision): Handle expressions.
17739 * match.pd (define_predicates): Add zerop.
17740 (x <= +Inf): Fix comment.
17741 (abs (x) == 0, A & C == C, A & C != 0): Converted from ...
17742 * fold-const.c (fold_binary_loc): ... here. Remove.
17744 2015-08-31 Richard Biener <rguenther@suse.de>
17746 PR middle-end/67381
17747 * genmatch.c (dt_node::gen_kids): Also treat matches as barrier.
17749 2015-08-31 Marc Glisse <marc.glisse@inria.fr>
17751 * match.pd (SIN, COS, TAN, COSH): Reorder for consistency.
17752 (CEXPI): New operator list.
17753 (real (conj (x)), imag (conj (x)), real (x +- y), real (cexpi (x)),
17754 imag (cexpi (x)), conj (conj (x)), conj (complex (x, y))):
17756 * fold-const.c (fold_unary_loc, fold_binary_loc): ... here. Remove.
17758 2015-08-31 Tom de Vries <tom@codesourcery.com>
17760 * tree-ssa-loop-manip.c (find_uses_to_rename_stmt)
17761 (find_uses_to_rename_bb, find_uses_to_rename): Add and handle use_flags
17763 (find_uses_to_rename_def, find_uses_to_rename_in_loop): New function.
17764 (rewrite_into_loop_closed_ssa_1): New function, factored out of ...
17765 (rewrite_into_loop_closed_ssa): ... here.
17766 (replace_uses_in_dominated_bbs): Remove function.
17767 (rewrite_virtuals_into_loop_closed_ssa): Reimplement using
17768 rewrite_into_loop_closed_ssa_1.
17770 2015-08-31 Michael Matz <matz@suse.de>
17772 * cfganal.c (pre_and_rev_post_order_compute_fn): Correctly
17773 enter entry and exit blocks for reverse post order.
17775 2015-08-31 Richard Biener <rguenther@suse.de>
17777 * lto-streamer.h (lto_location_cache::cached_location::sysp): Add.
17778 (lto_location_cache::current_sysp): Likewise.
17779 (output_block::current_sysp): Likewise.
17780 * lto-streamer-in.c (lto_location_cache::cmp_loc): Compare sysp.
17781 (lto_location_cache::apply_location_cache): Properly record
17782 system header locations.
17783 (lto_location_cache::input_location): Input whether a file
17784 is a system header.
17785 * lto-streamer-out.c (lto_output_location): Stream whether a file
17786 is a system header.
17788 2015-08-31 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
17791 * gcc.c (env_manager::xput): Replace strndup by xstrndup.
17793 2015-08-31 Tom de Vries <tom@codesourcery.com>
17795 * tree-ssa-loop-manip.c (find_uses_to_rename_use)
17796 (find_uses_to_rename_stmt, find_uses_to_rename_bb, find_uses_to_rename):
17797 Improve function header comments.
17799 2015-08-30 Michael Collison <michael.collison@linaro.org>
17802 * doc.md.texi: Rename [su]sum_widen to widen_[su]sum to reflect correct
17805 2015-08-30 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
17807 * config/rs6000/rs6000.c (swap_web_entry): Enlarge
17808 special_handling bitfield.
17809 (special_handling_values): Add SH_XXPERMDI and SH_CONCAT.
17810 (rtx_is_swappable_p): Add handling for vec_select/vec_concat form
17811 that represents a general xxpermdi.
17812 (insn_is_swappable_p): Add handling for vec_concat of two
17813 doublewords, which maps to a specific xxpermdi.
17814 (adjust_xxpermdi): New function.
17815 (adjust_concat): Likewise.
17816 (handle_special_swappables): Call adjust_xxpermdi and
17818 (dump_swap_insn_table): Handle SH_XXPERMDI and SH_CONCAT.
17820 2015-08-30 Rich Felker <dalias@libc.org>
17822 * config.gcc (supported_defaults): Handle sh[123456ble]*-*-*
17823 case instead of sh[123456ble]-*-*.
17825 2015-08-29 Anatoly Sokolov <aesok@post.ru>
17827 * ira.c (print_unform_and_important_classes,
17828 print_translated_classes): Remove reg_class_names static array.
17829 (print_unform_and_important_classes): Rename to ...
17830 (print_uniform_and_important_classes): ... this.
17831 (ira_debug_allocno_classes): Update accordingly.
17833 2015-08-29 Tom de Vries <tom@codesourcery.com>
17835 PR tree-optimization/46193
17836 * omp-low.c (omp_reduction_init): Handle pointer type for min or max
17839 2015-08-28 Jeff Law <law@redhat.com>
17842 * tree-ssa-threadedge.c (simplify_conrol_stmt_condition): If we are
17843 unable to find X NE 0 in the tables, return X as the simplified
17845 (fsm_find_control_statement_thread_paths): If nodes in NEXT_PATH are
17846 in VISISTED_BBS, then return failure. Else add nodes from NEXT_PATH
17848 * tree-ssa-threadupdate.c (duplicate_thread_path): Fix up edge flags
17849 after removing the control flow statement and unnecessary edges.
17851 2015-08-28 Alan Lawrence <alan.lawrence@arm.com>
17854 2015-08-27 Alan Lawrence <alan.lawrence@arm.com>
17856 PR tree-optimization/67283
17857 * tree-sra.c (type_consists_of_records_p): Rename to...
17858 (scalarizable_type_p): ...this, add case for ARRAY_TYPE.
17860 (completely_scalarize_record): Rename to...
17861 (completely_scalarize): ...this, add ARRAY_TYPE case, move some
17863 (scalarize_elem): New.
17865 2015-08-28 Jiong Wang <jiong.wang@arm.com>
17867 * config/aarch64/aarch64-protos.h (aarch64_symbol_context): Rename
17868 SYMBOL_SMALL_GOTTPREL to SYMBOL_SMALL_TLSIE.
17869 (aarch64_symbol_type): Likewise.
17870 * config/aarch64/aarch64.c (aarch64_load_symref_appropriately):
17872 (aarch64_expand_mov_immediate): Likewise.
17873 (aarch64_print_operand): Likewise.
17874 (aarch64_classify_tls_symbol): Likewise.
17876 2015-08-28 Richard Biener <rguenther@suse.de>
17878 * cgraphunit.c (symbol_table::compile): Move early debug generation
17880 (symbol_table::finalize_compilation_unit): ... back here and
17881 add a !seen_error () guard.
17883 2015-08-27 Sebastian Pop <s.pop@samsung.com>
17885 * toplev.c (process_options): Do not use flag_loop_block,
17886 flag_loop_interchange, and flag_loop_strip_mine. Add check for
17887 flag_loop_optimize_isl.
17889 2015-08-27 Sebastian Pop <s.pop@samsung.com>
17891 * Makefile.in (OBJS): Remove graphite-blocking.o and
17892 graphite-interchange.o.
17893 * common.opt (floop-strip-mine, floop-interchange, floop-block):
17894 Alias of floop-nest-optimize.
17895 * doc/invoke.texi (floop-strip-mine, floop-interchange, floop-block):
17896 Document as alias of -floop-nest-optimize.
17897 * graphite-blocking.c: Remove.
17898 * graphite-interchange.c: Remove.
17899 * graphite-optimize-isl.c: Include dumpfile.h.
17900 (getScheduleForBand): Add dump for tiled loops. Use
17901 PARAM_LOOP_BLOCK_TILE_SIZE instead of hard coded constant.
17902 * graphite-poly.c (scop_max_loop_depth): Remove.
17903 (print_scattering_function_1): Remove.
17904 (print_scattering_function): Remove.
17905 (print_scattering_functions): Remove.
17906 (debug_scattering_function): Remove.
17907 (debug_scattering_functions): Remove.
17908 (apply_poly_transforms): Remove use of flag_loop_block,
17909 flag_loop_strip_mine, and flag_loop_interchange.
17910 (new_poly_bb): Remove use of PBB_TRANSFORMED, PBB_SAVED, and
17912 (print_pdr_access_layout): Remove.
17913 (print_pdr): Print ISL representation.
17914 (new_scop): Remove use of SCOP_ORIGINAL_SCHEDULE,
17915 SCOP_TRANSFORMED_SCHEDULE, and SCOP_SAVED_SCHEDULE.
17917 (openscop_print_pbb_domain): Remove.
17918 (print_pbb): Remove call to print_scattering_function.
17919 (openscop_print_scop_context): Remove.
17920 (print_scop_context): Do not print matrices anymore.
17921 (print_scop): Do not print SCOP_ORIGINAL_SCHEDULE and
17922 SCOP_TRANSFORMED_SCHEDULE.
17923 (print_isl_set): Add printing of a new line.
17924 (print_isl_map): Same.
17925 (print_isl_aff): Same.
17926 (print_isl_constraint): Same.
17927 (loop_to_lst): Remove.
17928 (scop_to_lst): Remove.
17929 (lst_indent_to): Remove.
17930 (print_lst): Remove.
17931 (debug_lst): Remove.
17932 (dot_lst_1): Remove.
17934 (reverse_loop_at_level): Remove.
17935 (reverse_loop_for_pbbs): Remove.
17936 * graphite-poly.h (pdr_dim_iter_domain): Remove.
17937 (pdr_nb_params): Remove.
17938 (pdr_alias_set_dim): Remove.
17939 (pdr_subscript_dim): Remove.
17940 (pdr_iterator_dim): Remove.
17941 (pdr_parameter_dim): Remove.
17942 (same_pdr_p): Remove.
17943 (struct poly_scattering): Remove.
17944 (struct poly_bb): Remove _original, _transformed, _saved.
17945 (PBB_DOMAIN, PBB_ORIGINAL, PBB_ORIGINAL_SCATTERING): Remove.
17946 (PBB_TRANSFORMED, PBB_TRANSFORMED_SCATTERING, PBB_SAVED): Remove.
17947 (PBB_NB_LOCAL_VARIABLES): Remove.
17948 (PBB_NB_SCATTERING_TRANSFORM): Remove.
17949 (schedule_to_scattering): Remove.
17950 (number_of_write_pdrs): Remove.
17951 (pbb_dim_iter_domain): Remove.
17952 (pbb_nb_params): Remove.
17953 (pbb_nb_scattering_orig): Remove.
17954 (pbb_nb_scattering_transform): Remove.
17955 (pbb_nb_dynamic_scattering_transform): Remove.
17956 (pbb_nb_local_vars): Remove.
17957 (pbb_iterator_dim): Remove.
17958 (pbb_parameter_dim): Remove.
17959 (psco_scattering_dim): Remove.
17960 (psct_scattering_dim): Remove.
17961 (psct_local_var_dim): Remove.
17962 (psco_iterator_dim): Remove.
17963 (psct_iterator_dim): Remove.
17964 (psco_parameter_dim): Remove.
17965 (psct_parameter_dim): Remove.
17966 (psct_dynamic_dim): Remove.
17967 (psct_static_dim): Remove.
17968 (psct_add_local_variable): Remove.
17969 (new_lst_loop): Remove.
17970 (new_lst_stmt): Remove.
17971 (free_lst): Remove.
17972 (copy_lst): Remove.
17973 (lst_add_loop_under_loop): Remove.
17974 (lst_depth): Remove.
17975 (lst_dewey_number): Remove.
17976 (lst_dewey_number_at_depth): Remove.
17977 (lst_pred): Remove.
17978 (lst_succ): Remove.
17979 (lst_find_pbb): Remove.
17980 (find_lst_loop): Remove.
17981 (lst_find_first_pbb): Remove.
17982 (lst_empty_p): Remove.
17983 (lst_find_last_pbb): Remove.
17984 (lst_contains_p): Remove.
17985 (lst_contains_pbb): Remove.
17986 (lst_create_nest): Remove.
17987 (lst_remove_from_sequence): Remove.
17988 (lst_remove_loop_and_inline_stmts_in_loop_father): Remove.
17989 (lst_niter_for_loop): Remove.
17990 (pbb_update_scattering): Remove.
17991 (lst_update_scattering_under): Remove.
17992 (lst_update_scattering): Remove.
17993 (lst_insert_in_sequence): Remove.
17994 (lst_replace): Remove.
17995 (lst_substitute_3): Remove.
17996 (lst_distribute_lst): Remove.
17997 (lst_remove_all_before_including_pbb): Remove.
17998 (lst_remove_all_before_excluding_pbb): Remove.
17999 (struct scop): Remove original_schedule, transformed_schedule, and
18001 (SCOP_ORIGINAL_SCHEDULE, SCOP_TRANSFORMED_SCHEDULE): Remove.
18002 (SCOP_SAVED_SCHEDULE): Remove.
18003 (poly_scattering_new): Remove.
18004 (poly_scattering_free): Remove.
18005 (poly_scattering_copy): Remove.
18006 (store_scattering_pbb): Remove.
18007 (store_lst_schedule): Remove.
18008 (restore_lst_schedule): Remove.
18009 (store_scattering): Remove.
18010 (restore_scattering_pbb): Remove.
18011 (restore_scattering): Remove.
18012 * graphite-sese-to-poly.c (build_pbb_scattering_polyhedrons):
18013 Remove scattering_dimensions. Do not use pbb_dim_iter_domain:
18014 compute the scattering polyhedron dimension from the dimension of
18016 (build_scop_scattering): Update call to
18017 build_pbb_scattering_polyhedrons.
18018 (build_poly_scop): Remove call to scop_to_lst.
18019 * graphite.c (graphite_transform_loops): Add call to print_scop.
18020 (gate_graphite_transforms): Remove use of flag_loop_block,
18021 flag_loop_interchange, and flag_loop_strip_mine.
18023 2015-08-27 Sebastian Pop <s.pop@samsung.com>
18025 * common.opt (floop-unroll-and-jam): Make alias of floop-nest-optimize.
18026 * doc/invoke.texi (-floop-unroll-and-jam): Document as alias of
18027 -floop-nest-optimize.
18028 * graphite-isl-ast-to-gimple.c (generate_luj_sepclass_opt): Remove.
18029 (generate_luj_sepclass): Remove.
18030 (generate_luj_options): Remove.
18031 (set_options): Remove opt_luj.
18032 (scop_to_isl_ast): Remove opt_luj.
18033 * graphite-optimize-isl.c (getScheduleForBand): Remove check for
18034 flag_loop_unroll_jam.
18035 (getPrevectorMap_full): Remove.
18036 (getScheduleForBandList): Remove map_sepcl.
18037 (getScheduleMap): Same.
18038 (apply_schedule_map_to_scop): Remove sepcl.
18039 (optimize_isl): Same.
18040 * graphite-poly.c (apply_poly_transforms): Remove check for
18041 flag_loop_unroll_jam.
18042 (new_poly_bb): Remove map_sepclass.
18043 * graphite-poly.h (struct poly_bb): Same.
18044 * graphite.c (gate_graphite_transforms): Remove flag_loop_unroll_jam.
18045 * params.def (PARAM_LOOP_UNROLL_JAM_SIZE)
18046 (PARAM_LOOP_UNROLL_JAM_DEPTH): Remove.
18047 * toplev.c (process_options): Remove flag_loop_unroll_jam.
18049 2015-08-27 Uros Bizjak <ubizjak@gmail.com>
18052 * config/i386/i386.md (*add<mode>3_cc): Remove insn pattern.
18053 (addqi3_cc): Ditto.
18054 (UNSPEC_ADD_CARRY): Remove.
18055 (addqi3_cconly_overflow): New expander.
18056 (*add<dwi>3_doubleword): Split to add<mode>3_cconly_overflow.
18057 Adjust for changed add<mode>3_carry.
18058 (*neg<dwi>2_doubleword): Adjust for changed add<mode>3_carry.
18059 (*sub<dwi>3_doubleword): Adjust for changed sub<mode>3_carry.
18060 (<plusminus_insn><mode>3_carry): Remove expander.
18061 (*<plusminus_insn><mode>3_carry): Split insn pattern to
18062 add<mode>3_carry and sub<mode>3_carry.
18063 (plusminus_carry_mnemonic): Remove code attribute.
18064 (add<mode>3_carry): Canonicalize insn pattern.
18065 (*addsi3_carry_zext): Ditto.
18066 (sub<mode>3_carry): Ditto.
18067 (*subsi3_carry_zext): Ditto.
18068 (adcx<mode>3): Remove insn pattern.
18069 (addcarry<mode>): New insn pattern.
18070 (subborrow<mode>): Ditto.
18071 * config/i386/i386.c (ix86_expand_strlensi_unroll_1): Use
18072 gen_addqi3_cconly_overflow instead of gen_addqi3_cc.
18073 (ix86_expand_builtin) <case IX86_BUILTIN_SBB32,
18074 case IX86_BUILTIN_SBB64, case IX86_BUILTIN_ADDCARRY32,
18075 case IX86_BUILTIN_ADDCARRY64>: Use CODE_FOR_subborrowsi,
18076 CODE_FOR_subborrowdi, CODE_FOR_addcarrysi and CODE_FOR_addcarrydi.
18077 Rewrite expander to not clobber carry flag chains.
18079 2015-08-27 Pat Haugen <pthaugen@us.ibm.com>
18081 * config/rs6000/vector.md (vec_shr_<mode>): Fix to do a shift
18082 instead of a rotate.
18084 2015-08-27 Marek Polacek <polacek@redhat.com>
18086 PR middle-end/67005
18087 * tree-ssa-dce.c (remove_dead_stmt): Also schedule fixup if removing
18088 an entry into an irreducible region.
18090 2015-08-27 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
18092 * configure: Regenerate.
18094 2015-08-27 Alan Lawrence <alan.lawrence@arm.com>
18096 PR tree-optimization/67283
18097 * tree-sra.c (type_consists_of_records_p): Rename to...
18098 (scalarizable_type_p): ...this, add case for ARRAY_TYPE.
18100 (completely_scalarize_record): Rename to...
18101 (completely_scalarize): ...this, add ARRAY_TYPE case, move some code to:
18102 (scalarize_elem): New.
18104 2015-08-27 Alan Lawrence <alan.lawrence@arm.com>
18106 * tree-sra.c (completely_scalarize_var): Rename to...
18107 (create_total_scalarization_access): ... Here. Drop call to
18108 completely_scalarize_record.
18110 (analyze_all_variable_accesses): Replace completely_scalarize_var
18111 with create_total_scalarization_access and completely_scalarize_record.
18113 2015-08-27 Alan Modra <amodra@gmail.com>
18116 * config/rs6000/rs6000.md (ior<mode>_mask): Use constraint "0"
18119 2015-08-27 Richard Biener <rguenther@suse.de>
18121 * passes.c (rest_of_decl_compilation): Guard early_global_decl
18122 call with !seen_error ().
18123 * cgraphunit.c (symbol_table::finalize_compilation_unit): Move
18124 early debug generation and finish...
18125 (symbol_table::compile): ... here to put it after a !seen_error ()
18128 2015-08-27 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
18130 * config.gcc (*-*-solaris2*): Enable default_use_cxa_atexit on
18133 2015-08-27 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
18134 Andre Vieira <andre.simoesdiasvieira@arm.com>
18136 * config/aarch64/aarch64.md (*condjump): Handle functions > 1 MiB.
18137 (*cb<optab><mode>1): Likewise.
18138 (*tb<optab><mode>1): Likewise.
18139 (*cb<optab><mode>1): Likewise.
18140 * config/aarch64/iterators.md (inv_cb): New code attribute.
18141 (inv_tb): Likewise.
18142 * config/aarch64/aarch64.c (aarch64_gen_far_branch): New.
18143 * config/aarch64/aarch64-protos.h (aarch64_gen_far_branch): New.
18145 2015-08-27 Richard Biener <rguenther@suse.de>
18147 * ipa.c (cgraph_build_static_cdtor_1): Set DECL_IGNORED_P.
18149 2015-08-27 Dominik Vogt <vogt@linux.vnet.ibm.com>
18151 * config/s390/s390.c (s390_emit_prologue): Add emit_barrier() after
18154 2015-08-26 Michael Meissner <meissner@linux.vnet.ibm.com>
18156 * config/rs6000/rs6000-protos.h (rs6000_expand_float128_convert):
18159 * config/rs6000/rs6000.c (rs6000_emit_le_vsx_store): Fix a
18161 (rs6000_cannot_change_mode_class): Add support for IEEE 128-bit
18162 floating point in VSX registers.
18163 (rs6000_output_move_128bit): Always print out the set insn if we
18164 can't generate an appropriate 128-bit move.
18165 (rs6000_generate_compare): Add support for IEEE 128-bit floating
18166 point in VSX registers comparisons.
18167 (rs6000_expand_float128_convert): Likewise.
18169 * config/rs6000/predicates.md (int_reg_operand_not_pseudo): New
18170 predicate for only GPR hard registers.
18172 * config/rs6000/rs6000.md (FP): Add IEEE 128-bit floating point
18173 modes to iterators. Add new iterators for moving 128-bit values in
18174 scalar FPR registers and VSX registers.
18175 (FMOVE128): Likewise.
18176 (FMOVE128_FPR): Likewise.
18177 (FMOVE128_GPR): Likewise.
18178 (FMOVE128_VSX): Likewise.
18179 (FLOAT128_SFDFTF): New iterators for IEEE 128-bit floating point
18182 (IBM128): Likewise.
18183 (TFIFKF): Likewise.
18184 (RELOAD): Add IEEE 128-bit floating point modes.
18185 (signbittf2): Convert TF insns to add support for new IEEE 128-bit
18186 floating point in VSX registers modes.
18187 (signbit<mode>2, IBM128 iterator): Likewise.
18188 (mov<mode>_64bit_dm, FMOVE128_FPR iterator): Likewise.
18189 (mov<mode>_32bit, FMOVE128_FPR iterator): Likewise.
18190 (negtf2): Likewise.
18191 (neg<mode>2, TFIFKF iterator): Likewise.
18192 (negtf2_internal): Likewise.
18193 (abstf2): Likewise.
18194 (abs<mode>2, TFIFKF iterator): Likewise.
18195 (ieee_128bit_negative_zero): New IEEE 128-bit floating point in
18196 VSX insn support for negate, absolute value, and negative absolute
18198 (ieee_128bit_vsx_neg<mode>2): Likewise.
18199 (ieee_128bit_vsx_neg<mode>2_internal): Likewise.
18200 (ieee_128bit_vsx_abs<mode>2): Likewise.
18201 (ieee_128bit_vsx_abs<mode>2_internal): Likewise.
18202 (ieee_128bit_vsx_nabs<mode>2): Likewise.
18203 (ieee_128bit_vsx_nabs<mode>2_internal): Likewise.
18204 (FP128_64): Update pack/unpack 128-bit insns for IEEE 128-bit
18205 floating point in VSX registers.
18206 (unpack<mode>_dm): Likewise.
18207 (unpack<mode>_nodm): Likewise.
18208 (pack<mode>): Likewise.
18209 (unpackv1ti): Likewise.
18210 (unpack<mode>, FMOVE128_VSX iterator): Likewise.
18211 (packv1ti): Likewise.
18212 (pack<mode>, FMOVE128_VSX iterator): Likewise.
18213 (extenddftf2): Add support for IEEE 128-bit floating point in VSX
18215 (extenddftf2_internal): Likewise.
18216 (trunctfdf2): Likewise.
18217 (trunctfdf2_internal2): Likewise.
18218 (fix_trunc_helper): Likewise.
18219 (fix_trunctfdi2"): Likewise.
18220 (floatditf2): Likewise.
18221 (floatuns<mode>tf2): Likewise.
18222 (extend<FLOAT128_SFDFTF:mode><IFKF:mode>2): Likewise.
18223 (trunc<IFKF:mode><FLOAT128_SFDFTF:mode>2): Likewise.
18224 (fix_trunc<IFKF:mode><SDI:mode>2): Likewise.
18225 (fixuns_trunc<IFKF:mode><SDI:mode>2): Likewise.
18226 (float<SDI:mode><IFKF:mode>2): Likewise.
18227 (floatuns<SDI:mode><IFKF:mode>2): Likewise.
18229 2015-08-26 Renlin Li <renlin.li@arm.com>
18231 * config/aarch64/aarch64.md (*aarch64_bfi<GPI:mode><ALLX:mode>4): New.
18233 2015-08-26 Marcus Shawcroft <marcus.shawcroft@arm.com>
18234 Jiong Wang <jiong.wang@arm.com>
18236 * config/aarch64/aarch64.md (UNSPEC_GOTTINYTLS): New UNSPEC.
18237 (tlsie_tiny_<mode>): New define_insn.
18238 (tlsie_tiny_sidi): Likewise.
18239 * config/aarch64/aarch64-protos.h (aarch64_symbol_type): Define
18241 (aarch64_symbol_context): New comment for SYMBOL_TINY_TLSIE.
18242 * config/aarch64/aarch64.c (aarch64_load_symref_appropriately): Support
18244 (aarch64_expand_mov_immediate): Likewise.
18245 (aarch64_print_operand): Likewise.
18246 (arch64_classify_tls_symbol): Likewise.
18248 2015-08-26 Matthew Wahab <matthew.wahab@arm.com>
18250 * config/arm/arm-arches.def: Replace single value flags with
18251 an initializer built from ARM_FSET_MAKE_CPU1.
18252 * config/arm/arm-cores.def: Likewise.
18253 * config/arm/arm.c: (all_cores): Remove ARM_FSET_MAKE_CPU1
18254 derivation from the ARM_CORE macro definition, use the given value
18256 (all_architectures): Remove ARM_FSET_MAKE_CPU1 derivation from the
18257 ARM_ARCH macro definition, use the given value instead.
18259 2015-08-26 Matthew Wahab <matthew.wahab@arm.com>
18261 * config/arm/arm-builtins.c (def_mbuiltin): Test all flags in a
18263 (struct builtin_description): Replace field mask with field
18265 (IWMMXT_BUILTIN): Use ARM_FSET macros for feature flags.
18266 (IWMMXT2_BUILTIN): Likewise.
18267 (IWMMXT2_BUILTIN2): Likewise.
18268 (FP_BUILTIN): Likewise.
18269 (CRC32_BUILTIN): Likewise.
18270 (CRYPTO_BUILTIN): Likewise.
18271 (iwmmx_mbuiltin): Likewise.
18272 (iwmmx2_mbuiltin): Likewise.
18273 (arm_init_iwmmxt_builtins): Likewise. Also, update for change to
18274 struct builtin_description.
18276 2015-08-26 Matthew Wahab <matthew.wahab@arm.com>
18278 * config/arm/arm-builtins.c (def_mbuiltin): Use ARM_FSET macro.
18279 (struct builtin_description): Change type of mask to unsigned
18281 * config/arm/arm-protos.h (insn_flags): Declare as type
18283 (tune_flags): Likewise.
18284 * config/arm/arm.c (feature_count): New.
18285 (insn_flags): Define as type arm_feature_set.
18286 (tune_flags): Likewise.
18287 (struct processors): Define field flags as type arm_feature_set.
18288 (all_cores): Update for change to struct processors.
18289 (all_architectures): Likewise.
18290 (arm_option_check_internal): Use arm_feature_set and ARM_FSET
18292 (arm_option_override_internal): Likewise.
18293 (arm_option_override): Likewise.
18295 2015-08-26 Marcus Shawcroft <marcus.shawcroft@arm.com>
18296 Jiong Wang <jiong.wang@arm.com>
18298 * config/aarch64/aarch64.c (initialize_aarch64_tls_size): Set default
18299 tls size for tiny, small, large memory model.
18300 (aarch64_load_symref_appropriately): Support new symbol types.
18301 (aarch64_expand_mov_immediate): Likewise.
18302 (aarch64_print_operand): Likewise.
18303 (aarch64_classify_tls_symbol): Likewise.
18304 * config/aarch64/aarch64-protos.h (aarch64_symbol_context): Likewise.
18305 (aarch64_symbol_type): Likewise.
18306 * config/aarch64/aarch64.md (tlsle): Deleted.
18307 (tlsle12_<mode>): New define_insn.
18308 (tlsle24_<mode>): Likewise.
18309 (tlsle32_<mode>): Likewise.
18310 (tlsle48_<mode>): Likewise.
18311 * doc/sourcebuild.texi (AArch64-specific attributes): Document
18314 2015-08-26 Matthew Wahab <matthew.wahab@arm.com>
18316 * config/arm/arm-protos.h (FL_NONE): New.
18318 (arm_feature_set): New.
18319 (ARM_FSET_MAKE): New.
18320 (ARM_FSET_MAKE_CPU1): New.
18321 (ARM_FSET_MAKE_CPU2): New.
18322 (ARM_FSET_CPU1): New.
18323 (ARM_FSET_CPU2): New.
18324 (ARM_FSET_EMPTY): New.
18325 (ARM_FSET_ANY): New.
18326 (ARM_FSET_HAS_CPU1): New.
18327 (ARM_FSET_HAS_CPU2): New.
18328 (ARM_FSET_HAS_CPU): New.
18329 (ARM_FSET_ADD_CPU1): New.
18330 (ARM_FSET_ADD_CPU2): New.
18331 (ARM_FSET_DEL_CPU1): New.
18332 (ARM_FSET_DEL_CPU2): New.
18333 (ARM_FSET_UNION): New.
18334 (ARM_FSET_INTER): New.
18335 (ARM_FSET_XOR): New.
18336 (ARM_FSET_EXCLUDE): New.
18337 (AFM_FSET_IS_EMPTY): New.
18338 (ARM_FSET_CPU_SUBSET): New.
18340 2015-08-26 Jiong Wang <jiong.wang@arm.com>
18342 * config/aarch64/aarch64-protos.h (aarch64_symbol_type): Rename
18343 SYMBOL_TLSLE to SYMBOL_TLSLE24.
18344 * config/aarch64/aarch64.c (aarch64_load_symref_appropriately):
18346 (aarch64_expand_mov_immediate): Likewise.
18347 (aarch64_print_operand): Likewise.
18348 (aarch64_classify_symbol): Likewise.
18350 2015-08-26 Jiong Wang <jiong.wang@arm.com>
18352 * config/aarch64/aarch64.opt (mtls-size): New entry.
18353 * config/aarch64/aarch64.c (initialize_aarch64_tls_size): New function.
18354 (aarch64_override_options_internal): Call initialize_aarch64_tls_size.
18355 * doc/invoke.texi (AArch64 Options): Document -mtls-size.
18357 2015-08-26 Matthew Wahab <matthew.wahab@arm.com>
18359 * config/arm/arm-cores.def: Add FL_FOR_ARCH flag for each
18360 ARM_CORE entry. Fix some white-space.
18361 * config/arm/arm.c: Remove FL_FOR_ARCH derivation from
18362 ARM_CORE definition.
18364 2015-08-26 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
18366 * fold-const.c (fold_binary_loc) : Move Optimize
18367 root(x)*root(y) as root(x*y) to match.pd.
18368 Move Optimize expN(x)*expN(y) as expN(x+y) to match.pd.
18369 Move Optimize pow(x,y)*pow(x,z) as pow(x,y+z) to match.pd.
18370 Move Optimize a/root(b/c) into a*root(c/b) to match.pd.
18371 Move Optimize x/expN(y) into x*expN(-y) to match.pd.
18372 * match.pd (mult (root:s @0) (root:s @1)): New simplifier.
18373 (mult (POW:s @0 @1) (POW:s @0 @2)) : New simplifier.
18374 (mult (exps:s @0) (exps:s @1)) : New simplifier.
18375 (rdiv @0 (root:s (rdiv:s @1 @2))) : New simplifier.
18376 (rdiv @0 (exps:s @1)) : New simplifier.
18378 2015-08-25 Joseph Myers <joseph@codesourcery.com>
18380 * gcc.c (driver::finalize): Only assign to extra_specs if
18383 2015-08-25 Marek Polacek <polacek@redhat.com>
18385 PR middle-end/67330
18386 * varasm.c (declare_weak): Return after giving an error.
18388 2015-08-25 David Malcolm <dmalcolm@redhat.com>
18390 * gcc-main.c (main): Add params to driver ctor.
18391 * gcc.c (class env_manager): New.
18393 (env_manager::init): New.
18394 (env_manager::get): New.
18395 (env_manager::xput): New.
18396 (env_manager::restore): New.
18397 Poison getenv and putenv.
18398 (DEFAULT_TARGET_SYSTEM_ROOT): New.
18399 (target_system_root): Update initialization to use
18400 DEFAULT_TARGET_SYSTEM_ROOT.
18401 (struct spec_list): Add field "default_ptr".
18402 (INIT_STATIC_SPEC): Initialize new field "default_ptr".
18403 (init_spec): Likewise.
18404 (set_spec): Clear field "default_ptr".
18405 (read_specs): Free "spec" and "buffer".
18406 (xputenv): Reimplement in terms of env_manager.
18407 (process_command): Replace ::getenv calls with calls to the
18408 env_manager singleton.
18409 (process_brace_body): Free string in three places.
18410 (driver::driver): New.
18411 (driver::~driver): New.
18412 (used_arg): Convert from a function to...
18413 (class used_arg_t): ...this class, and...
18414 (used_arg): ...this new global instance.
18415 (used_arg_t::finalize): New function.
18416 (getenv_spec_function): Add "const" to local "value". Replace
18417 ::getenv call with call to the env_manager singleton.
18418 (path_prefix_reset): New function.
18419 (driver::finalize): New function.
18420 * gcc.h (driver::driver): New.
18421 (driver::~driver): New.
18422 (driver::finalize): New.
18424 2015-08-25 Nathan Sidwell <nathan@acm.org>
18426 * optabs.c (emit_indirect_jump): Don't try an emit a jump if the
18427 target doesn't have one.
18429 2015-08-25 Segher Boessenkool <segher@kernel.crashing.org>
18432 * config/rs6000/rs6000.md (*ior<mode>_mask): Use a match_scratch.
18434 2015-08-25 Segher Boessenkool <segher@kernel.crashing.org>
18437 * config/rs6000/rs6000.md (*and<mode>3_imm_dot_shifted): Change to
18438 a define_insn, remove second alternative.
18440 2015-08-25 Thomas Schwinge <thomas@codesourcery.com>
18441 Joseph Myers <joseph@codesourcery.com>
18443 * gcc.c (struct switchstr): Expand comment.
18445 2015-08-25 Nathan Sidwell <nathan@acm.org>
18447 * config/nvptx/nvptx.c (nvptx_write_function_decl): Reformat.
18448 (nvptx_reorg_subreg): Pass insn pattern to asm_operands.
18450 2015-08-25 Richard Biener <rguenther@suse.de>
18452 PR middle-end/67306
18453 * genmatch.c (expr::gen_transform): Verify the result of
18454 builtin_decl_implicit.
18455 (dt_simplify::gen_1): Likewise.
18457 2015-08-25 Thomas Preud'homme <thomas.preudhomme@arm.com>
18459 * config/arm/constraints.md: Also list Cs and US ARM-specific
18460 constraints as used.
18462 2015-08-24 Kaz Kojima <kkojima@gcc.gnu.org>
18465 * config/sh/sh.c (sh_asm_output_addr_const_extra): Handle
18467 (nonpic_symbol_mentioned_p): Likewise.
18468 (sh_delegitimize_address): Likewise.
18469 (sh_function_ok_for_sibcall): Take into account weak symbols.
18470 (sh_expand_sym_label2reg): New.
18471 * config/sh/sh-protos.h (sh_expand_sym_label2reg): Declare.
18472 * config/sh/sh.md (UNSPEC_PCREL): New enum.
18473 (call_pcrel): Use sh_expand_sym_label2reg.
18474 (call_value_pcrel, sibcall_pcrel, sibcall_value_pcrel): Likewise.
18475 (symPCREL_label2reg) New expand.
18477 2015-08-24 Aditya Kumar <aditya.k7@samsung.com>
18479 * graphite-poly.c: Change type of region from void* to sese.
18480 * graphite-poly.h (struct scop): Changing the type of scop::region
18481 from void* to sese. Change accessor macro accordingly.
18482 * graphite-sese-to-poly.c (extract_affine_chrec): Use accessor macro.
18484 2015-08-24 Aditya Kumar <aditya.k7@samsung.com>
18486 * graphite-scop-detection.c (stmt_simple_for_scop_p):
18487 Constrain only on INTEGER_TYPE.
18489 2015-08-24 Michael Meissner <meissner@linux.vnet.ibm.com>
18492 * config/rs6000/rs6000-cpus.def (ISA_2_7_MASKS_SERVER): Set
18493 -mefficient-unaligned-vsx on ISA 2.7.
18495 * config/rs6000/rs6000.opt (-mefficient-unaligned-vsx): Convert
18496 option to a masked option.
18498 * config/rs6000/rs6000.c (rs6000_option_override_internal): Rework
18499 logic for -mefficient-unaligned-vsx so that it is set via an arch
18500 ISA option, instead of being set if -mtune=power8 is set. Move
18501 -mefficient-unaligned-vsx and -mallow-movmisalign handling to be
18502 near other default option handling.
18504 2015-08-24 Richard Sandiford <richard.sandiford@arm.com>
18506 * genflags.c (gen_macro): Delete.
18507 (gen_proto): Don't create GEN.*CALL.* macros.
18508 * gensupport.h (get_file_location): Declare.
18509 * gensupport.c (rtx_locs): New variable.
18510 (read_md_rtx): Record rtx locations.
18511 (get_file_location): New function.
18512 * target-insns.def (call, call_pop, call_value, call_value_pop)
18513 (sibcall, sibcall_value): New patterns.
18514 * gentarget-def.c (parse_argument): New function.
18515 (def_target_insn): Use it. Handle optional operands. Raise an
18516 error if an .md pattern has the wrong number of operands for the
18517 pattern name. Remove the names of unused operands from the prototype.
18518 * builtins.c (expand_builtin_apply): Use targetm functions
18519 instead of HAVE_call_value and GEN_CALL_VALUE.
18520 * calls.c (emit_call_1): Likewise. Remove support for sibcall_pop
18521 and sibcall_value_pop.
18522 * config/aarch64/aarch64.md (untyped_call): Use gen_call instead
18524 * config/alpha/alpha.md (untyped_call): Likewise.
18525 * config/iq2000/iq2000.md (untyped_call): Likewise.
18526 * config/m68k/m68k.md (untyped_call): Likewise.
18527 * config/mips/mips.md (untyped_call): Likewise.
18528 * config/pa/pa.md (untyped_call): Likewise.
18529 * config/rs6000/rs6000.md (untyped_call): Likewise.
18530 * config/sparc/sparc.md (untyped_call): Likewise.
18531 * config/tilegx/tilegx.md (untyped_call): Likewise.
18532 * config/tilepro/tilepro.md (untyped_call): Likewise.
18533 * config/visium/visium.md (untyped_call): Likewise.
18534 * config/alpha/alpha.c (alpha_emit_xfloating_libcall): Use
18535 gen_call_value instead of GEN_CALL_VALUE.
18536 * config/arm/arm.md (untyped_call): Likewise.
18537 * config/cr16/cr16.c (cr16_function_arg): Remove reference to
18540 2015-08-24 Richard Sandiford <richard.sandiford@arm.com>
18542 * ifcvt.c (HAVE_incscc, HAVE_decscc, HAVE_cbranchcc4): Delete.
18543 (have_cbranchcc4): New variable.
18544 (cc_in_cond, noce_emit_cmove, noce_get_alt_condition)
18545 (noce_get_condition): Use it instead of HAVE_cbranchcc4.
18546 (if_convert): Initialize have_cbranchcc4.
18548 2015-08-24 Richard Sandiford <richard.sandiford@arm.com>
18550 * builtins.c (expand_cmpstrn): Rename to...
18551 (expand_cmpstrn_or_cmpmem): ...this.
18552 (expand_builtin_strcmp, expand_builtin_strncmp): Update accordingly.
18553 (expand_builtin_memcmp): Use optabs instead of HAVE_cmpmem/gen_cmpmem.
18554 Remove mode argument.
18555 (expand_builtin): Update accordingly.
18557 2015-08-24 Richard Sandiford <richard.sandiford@arm.com>
18559 * builtins.c (expand_cmpstr, expand_cmpstrn): New functions.
18560 (expand_builtin_strcmp, expand_builtin_strncmp): Use them. Remove
18561 references to HAVE_cmpstr{,n}si and CODE_FOR_cmpstr{,n}si.
18562 * config/m32c/blkmov.md (cmpstrsi): Fix predicates of operands 1 and 2.
18563 Add predicates for operands 0 and 3.
18564 * config/rx/rx.md (cmpstrnsi): Remove force_operand for the length
18566 * config/sh/sh.md (cmpstrnsi): Change the length predicate from
18567 immediate_operand to nonmemory_operand.
18569 2015-08-24 Richard Sandiford <richard.sandiford@arm.com>
18571 * df-scan.c (df_insn_info_init_fields): New function, split out
18573 (df_insn_create_insn_record): ...here.
18574 (df_insn_info_free_fields): New function, split out from...
18575 (df_insn_info_delete): ...here.
18576 (df_insn_rescan): Use the new functions instead of freeing and
18577 reallocating the df_insn_info.
18579 2015-08-24 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
18581 * doc/install.texi (Binaries): Remove links no longer valid.
18583 2015-08-24 Nathan Sidwell <nathan@codesourcery.com>
18585 * config/nvptx/mkoffload.c (process): Replace
18586 GOMP_offload_{,un}register with GOMP_offload_{,un}register_ver.
18588 2015-08-24 H.J. Lu <hongjiu.lu@intel.com>
18591 * config/i386/i386.c (iamcu_cost): Set MOVE_RATIO cost to 9.
18593 2015-08-24 Renlin Li <renlin.li@arm.com>
18595 * config/arm/arm-protos.h (arm_valid_symbolic_address_p): Declare.
18596 * config/arm/arm.c (arm_valid_symbolic_address_p): Define.
18597 * config/arm/arm.md (arm_movt): Use arm_valid_symbolic_address_p.
18598 * config/arm/constraints.md ("j"): Add check for high code.
18600 2015-08-24 Tom de Vries <tom@codesourcery.com>
18602 PR tree-optimization/65468
18603 * omp-low.c (expand_omp_for_static_chunk): Remove inner loop if
18606 2015-08-24 Nathan Sidwell <nathan@acm.org>
18608 * config/nvptx/nvptx.c (walk_args_for_param): Revert previous
18609 change to nvptx_type_from_mode call. Use arg_promotion for both
18610 split and non-split args.
18612 2015-08-24 Richard Sandiford <richard.sandiford@arm.com>
18614 * target-insns.def (movstr): New pattern.
18615 * builtins.c (HAVE_movstr, CODE_FOR_movstr): Delete.
18616 (expand_movstr): Use targetm rather than HAVE_movstr/
18619 2015-08-24 Richard Sandiford <richard.sandiford@arm.com>
18621 * config/microblaze/microblaze.c (microblaze_classify_unspec): Fix
18624 2015-08-24 Andrew Pinski <apinski@cavium.com>
18626 * config/aarch64/aarch64-tuning-flags.def: Remove all index to
18627 AARCH64_EXTRA_TUNING_OPTION.
18628 * config/aarch64/aarch64-protos.h (aarch64_extra_tuning_flags_index):
18630 (aarch64_extra_tuning_flags): Base the shifted value on the index
18631 instead of the argument to AARCH64_EXTRA_TUNING_OPTION.
18632 * config/aarch64/aarch64.c: Remove the last argument to
18633 AARCH64_EXTRA_TUNING_OPTION.
18635 2015-08-23 Nathan Sidwell <nathan@acm.org>
18637 * config/nvptx/nvptx.c (walk_args_for_param): Promote arg reg
18639 (nvptx_declare_function_name): Insert formatting tabs for
18642 2015-08-23 Tom de Vries <tom@codesourcery.com>
18644 * omp-low.c (expand_omp_taskreg): If in ssa, set rhs of parcopy stmt to
18645 parm_decl, rather than generating a dummy default def in cfun.
18646 * tree-cfg.c (replace_ssa_name): Assume no default defs. Make sure
18647 ssa_name from cfun and child_fn do not share a stmt as def stmt.
18648 (move_stmt_op): Handle PARM_DECl.
18649 (gather_ssa_name_hash_map_from): New function.
18650 (move_sese_region_to_fn): Add default defs for function params, and add
18651 them to vars_map. Release copied ssa names.
18652 * tree-cfg.h (gather_ssa_name_hash_map_from): Declare.
18654 2015-08-23 Tom de Vries <tom@codesourcery.com>
18656 * doc/sourcebuild.texi: Rename vect_no_int_max with
18657 vect_no_int_min_max. Update description.
18659 2015-08-22 Andrew Pinski <apinski@cavium.com>
18661 * aarch64-fusion-pairs.def: Remove all index to AARCH64_FUSION_PAIR.
18662 * config/aarch64/aarch64-protos.h
18663 (aarch64_fusion_pairs_index): New enum.
18664 (aarch64_fusion_pairs): Base the shifted value on the index instead
18665 Rewrite AARCH64_FUSE_ALL to be based on the end index.
18666 of the argument to AARCH64_FUSION_PAIR.
18667 * config/aarch64/aarch64.c: Remove the last argument to
18668 AARCH64_FUSION_PAIR.
18670 2015-08-22 Mikhail Maltsev <maltsevm@gmail.com>
18672 * dominance.c (new_zero_array): Define.
18673 (dom_info): Redefine as class with proper encapsulation.
18674 (dom_info::m_n_basic_blocks, m_reverse, m_start_block, m_end_block):
18676 (dom_info::dom_info, ~dom_info): Define. Use new/delete for memory
18677 allocations/deallocations. Pass function as parameter (instead of
18679 (dom_info::get_idom): Define accessor method.
18680 (dom_info::calc_dfs_tree_nonrec, calc_dfs_tree, compress, eval,
18681 link_roots, calc_idoms): Redefine as class members. Do not use cfun.
18682 (calculate_dominance_info): Adjust to use dom_info class.
18683 (verify_dominators): Likewise.
18685 2015-08-21 Alexandre Oliva <aoliva@redhat.com>
18687 * print-rtl.c (print_rtx): Check the correct range for
18688 flag_dump_unnumbered_links to behave as documented.
18690 PR rtl-optimization/67227
18691 PR rtl-optimization/64164
18692 * alias.c (memrefs_conflict_p): Handle VALUEs in PLUS better.
18693 (nonoverlapping_memrefs_p): Test offsets and sizes when given
18694 identical gimple_reg exprs.
18696 2015-08-21 Nathan Sidwell <nathan@acm.org>
18698 * config/nvptx/nvptx.md (allocate_stack): Emit sorry during
18700 * config/nvptx/nvptx.c (nvptx_declare_function_name): Look at
18701 crtl->stack_alignment_needed to determine alignment.
18702 (nvptx_get_drap_rtx): New.
18703 (TARGET_GET_DRAP_RTX): Override.
18704 * config/nvptx/nvptx.h (MAX_STACK_ALIGNMENT): Set.
18706 2015-08-21 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
18708 * config.build: Remove case for m68000-hp-hpux* | m68k-hp-hpux*.
18710 2015-08-21 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
18712 * configure.ac: Remove uwin* cases.
18713 * config.build: Remove cases for i370-*-opened*, i370-*-mvs*,
18714 i[34567]86-*-sco3.2v5*, i[34567]86-sequent-ptx4*,
18715 i[34567]86-sequent-sysv4*, i[34567]86-*-sysv4*,
18716 i[34567]86-*-udk*, i[34567]86-*-uwin*, i386-*-vsta.
18717 * config.host: Remove cases for i370-*-opened*, i370-*-mvs*,
18718 i[34567]86-*-uwin*, powerpc-*-beos*.
18720 2015-08-21 Richard Sandiford <richard.sandiford@arm.com>
18722 * gencodes.c (gencodes): Print the comma for the preceding
18723 enum value rather than the current one. Use aliased enum values
18724 rather than #defines for compiled-out patterns.
18725 (main): Update accordingly. Replace LAST_INSN_CODE with
18727 * lra.c (insn_code_data): Update accordingly.
18728 (finish_insn_code_data_once, get_static_insn_data): Likewise.
18729 * recog.h (target_recog): Likewise.
18730 (preprocess_insn_constraints): Change parameter to unsigned int.
18731 * recog.c (preprocess_insn_constraints): Likewise.
18732 (recog_init): Replace LAST_INSN_CODE with NUM_INSN_CODES.
18733 * tree-vect-stmts.c (vectorizable_operation): Simplify.
18735 2015-08-21 Markus Trippelsdorf <markus@trippelsdorf.de>
18737 PR rtl-optimization/61657
18738 * loop-iv.c (iv_number_of_iterations): Declare up and down as
18739 unsigned. Remove superflous uint64_t cast.
18741 2014-08-21 Felix Yang <felix.yang@huawei.com>
18742 Jiji Jiang <jiangjiji@huawei.com>
18744 * value-prof.c (interesting_stringop_to_profile_p): Removed FNDECL
18745 argument and get builtin function code directly from CALL.
18746 (gimple_stringop_fixed_value): Modified accordingly.
18747 (gimple_stringops_transform, gimple_stringops_values_to_profile):
18748 Modified accordingly and only accept BUILT_IN_NORMAL string operations.
18750 2015-08-21 Dominik Vogt <vogt@linux.vnet.ibm.com>
18752 * config/s390/s390-builtins.def: Fix value range of vec_load_bndry.
18754 2015-08-21 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
18756 * fold-const.c (fold_binary_loc) : Move sqrt(x)*sqrt(x) as x
18758 Move Optimize pow(x,y)*pow(z,y) as pow(x*z,y)to match.pd.
18759 Move Optimize tan(x)*cos(x) as sin(x) to match.pd.
18760 Move Optimize x*pow(x,c) as pow(x,c+1) to match.pd.
18761 Move Optimize pow(x,c)*x as pow(x,c+1) to match.pd.
18762 Move Optimize sin(x)/cos(x) as tan(x) to match.pd.
18763 Move Optimize cos(x)/sin(x) as 1.0/tan(x) to match.pd.
18764 Move Optimize sin(x)/tan(x) as cos(x) to match.pd.
18765 Move Optimize tan(x)/sin(x) as 1.0/cos(x) to match.pd.
18766 Move Optimize pow(x,c)/x as pow(x,c-1) to match.pd.
18767 Move Optimize x/pow(y,z) into x*pow(y,-z) to match.pd.
18769 * match.pd (SIN ) : New Operator.
18770 (TAN) : New Operator.
18771 (mult (SQRT@1 @0) @1) : New simplifier.
18772 (mult (POW:s @0 @1) (POW:s @2 @1)) : New simplifier.
18773 (mult:c (TAN:s @0) (COS:s @0)) : New simplifier.
18774 (mult:c (TAN:s @0) (COS:s @0)) : New simplifier.
18775 (rdiv (SIN:s @0) (COS:s @0)) : New simplifier.
18776 (rdiv (COS:s @0) (SIN:s @0)) : New simplifier.
18777 (rdiv (SIN:s @0) (TAN:s @0)) : New simplifier.
18778 (rdiv (TAN:s @0) (SIN:s @0)) : New simplifier.
18779 (rdiv (POW:s @0 REAL_CST@1) @0) : New simplifier.
18780 (rdiv @0 (SQRT:s (rdiv:s @1 @2))) : New simplifier.
18781 (rdiv @0 (POW:s @1 @2)) : New simplifier.
18783 2015-08-21 Bin Cheng <bin.cheng@arm.com>
18785 * tree-ssa-loop-niter.c (simplify_using_initial_conditions): Break
18786 loop if EXPR is simplified to const value.
18788 2015-08-21 Yury Gribov <y.gribov@samsung.com>
18790 * sanitizer.def (BUILT_IN_UBSAN_HANDLE_NONNULL_ARG,
18791 BUILT_IN_UBSAN_HANDLE_NONNULL_ARG): Fix builtin types.
18793 2015-08-21 Richard Biener <rguenther@suse.de>
18795 PR middle-end/67285
18796 * gimple-fold.c (replace_stmt_with_simplification): Assert
18797 seq is empty when replacing a call with itself but different
18799 * gimple-match-head.c (maybe_push_res_to_seq): When pushing
18800 a call require that it is const.
18802 2015-08-20 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
18804 * defaults.h (CONSTANT_ALIGNMENT): New macro definition.
18805 * builtins.c (get_object_alignment_2): Adjust.
18806 * varasm.c (align_variable): Likewise.
18807 (get_variable_align): Likewise.
18808 (build_constant_desc): Likewise.
18809 (force_const_mem): Likewise.
18810 * doc/tm.texi.in: Likewise.
18811 * doc/tm.texi: Regenerate.
18813 2015-08-20 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
18815 * genconfig.c (main): Always define HAVE_cc0.
18816 * recog.c (rest_of_handle_peephole2): Adjust.
18818 2015-08-20 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
18820 * reorg.c (relax_delay_slots): Don't use #if to check value of
18823 2015-08-20 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
18825 * genconfig.c (main): Always define HAVE_CONDITIONAL_EXECUTION.
18826 * targhooks.c (default_have_conditional_execution): Adjust.
18828 2015-08-20 Richard Sandiford <richard.sandiford@arm.com>
18830 * rtl.h (rtvec_all_equal_p): Declare.
18831 (const_vec_duplicate_p, unwrap_const_vec_duplicate): New functions.
18832 * rtl.c (rtvec_all_equal_p): New function.
18833 * expmed.c (expand_mult): Use unwrap_const_vec_duplicate.
18834 * config/aarch64/aarch64.c (aarch64_vect_float_const_representable_p)
18835 (aarch64_simd_dup_constant): Use const_vec_duplicate_p.
18836 * config/arm/arm.c (neon_vdup_constant): Likewise.
18837 * config/s390/s390.c (s390_contiguous_bitmask_vector_p): Likewise.
18838 * config/tilegx/constraints.md (W, Y): Likewise.
18839 * config/tilepro/constraints.md (W, Y): Likewise.
18840 * config/spu/spu.c (spu_legitimate_constant_p): Likewise.
18841 (classify_immediate): Use unwrap_const_vec_duplicate.
18842 * config/tilepro/predicates.md (reg_or_v4s8bit_operand): Likewise.
18843 (reg_or_v2s8bit_operand): Likewise.
18844 * config/tilegx/predicates.md (reg_or_v8s8bit_operand): Likewise.
18845 (reg_or_v4s8bit_operand): Likewise.
18847 2015-08-20 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
18849 * config/rs6000/altivec.h (vec_pmsum_be): New #define.
18850 (vec_shasigma_be): New #define.
18851 * config/rs6000/rs6000-builtin.def (VPMSUMB): New BU_P8V_AV2_2.
18852 (VPMSUMH): Likewise.
18853 (VPMSUMW): Likewise.
18854 (VPMSUMD): Likewise.
18855 (VPMSUM): New BU_P8V_OVERLOAD_2.
18856 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): New
18857 entries for VEC_MADD and VEC_VPMSUM.
18859 2015-08-20 Georg-Johann Lay <avr@gjlay.de>
18861 * config/avr/avr.c (avr_insert_attributes): In diagnostic essage:
18862 Multiply argument avr_n_flash by 64 to match unit of "KiB".
18863 (avr_pgm_check_var_decl): Same.
18865 2015-08-20 Alan Lawrence <alan.lawrence@arm.com>
18867 * config/arm/arm-builtins.c (arm_init_simd_builtin_types): Move
18868 initialization of HFmode scalar type (float16_t) to...
18869 (arm_init_fp16_builtins): ... Here. Combine with __fp16 initialization
18872 (arm_init_builtins): Call arm_init_fp16_builtins earlier and always.
18874 * config/arm/arm_neon.h (vcvt_f16_f32, vcvt_f32_f16): Condition on
18875 having an -mfp16-format.
18877 2015-08-20 Richard Sandiford <richard.sandiford@arm.com>
18879 * config/i386/predicates.md (vector_all_ones_operand): Use
18880 CONSTM1_RTX to simplify definition.
18882 2015-08-20 Richard Biener <rguenther@suse.de>
18884 * toplev.c (compile_file): Remove loop calling late_global_decl
18886 * varpool.c (varpool_node::assemble_decl): Call late_global_decl
18887 on decls we assembled.
18889 2015-08-20 James Greenhalgh <james.greenhalgh@arm.com>
18891 * common/config/aarch64/aarch64-common.c
18892 (AARCH64_CPU_NAME_LENGTH): Delete.
18893 (aarch64_option_extension): New.
18894 (all_extensions): Likewise.
18895 (processor_name_to_arch): Likewise.
18896 (arch_to_arch_name): Likewise.
18898 (all_architectures): Likewise.
18899 (aarch64_get_extension_string_for_isa_flags): Likewise.
18900 (aarch64_rewrite_selected_cpu): Change to rewrite CPU names to
18901 architecture names.
18902 * config/aarch64/aarch64-protos.h
18903 (aarch64_get_extension_string_for_isa_flags): New.
18904 * config/aarch64/aarch64.c (aarch64_print_extension): Delete.
18905 (aarch64_option_print): Get the string to print from
18906 aarch64_get_extension_string_for_isa_flags.
18907 (aarch64_declare_function_name): Likewise.
18908 * config/aarch64/aarch64.h (BIG_LITTLE_SPEC): Rename to...
18909 (MCPU_TO_MARCH_SPEC): This.
18910 (ASM_CPU_SPEC): Use it.
18911 (BIG_LITTLE_SPEC_FUNCTIONS): Rename to...
18912 (MCPU_TO_MARCH_SPEC_FUNCTIONS): ...This.
18913 (EXTRA_SPEC_FUNCTIONS): Use it.
18915 2015-08-20 Simon Dardis <simon.dardis@imgtec.com>
18917 * config/mips/mips.c (mips_expand_block_move): Enable inline memcpy
18918 expansion when !ISA_HAS_LWL_LWR.
18919 (mips_block_move_straight): Update the size of elements copied to
18920 account for alignment when !ISA_HAS_LWL_LWR.
18921 * config/mips/mips.h (MIPS_MIN_MOVE_MEM_ALIGN): New macro.
18923 2015-08-19 Jiong Wang <jiong.wang@arm.com>
18925 * expr.c (expand_expr_real_2): Check gimple statement during
18926 LSHIFT_EXPR expand.
18928 2015-08-19 Magnus Granberg <zorry@gentoo.org>
18930 * common.opt (fstack-protector): Initialize to -1.
18931 (fstack-protector-all): Likewise.
18932 (fstack-protector-strong): Likewise.
18933 (fstack-protector-explicit): Likewise.
18934 * configure.ac: Add --enable-default-ssp.
18935 * defaults.h (DEFAULT_FLAG_SSP): New. Default SSP to strong.
18936 * opts.c (finish_options): Update opts->x_flag_stack_protect if it is
18938 * doc/install.texi: Document --enable-default-ssp.
18939 * config.in: Regenerated.
18940 * configure: Likewise.
18942 2015-08-19 Alexandre Oliva <aoliva@redhat.com>
18944 PR rtl-optimization/64164
18945 * cfgexpand.c (parm_maybe_byref_p): Renamed to...
18946 (parm_in_stack_slot_p): ... this. Disregard mode, what
18947 matters is whether the parm will live in a pseudo or a stack
18949 (expand_one_ssa_partition): Deal with params without a default
18950 def. Disregard mode.
18951 * cfgexpand.h: Renamed function declaration.
18952 * tree-ssa-coalesce.c: Adjust.
18953 * function.c (split_complex_args): Allocate stack slot for
18954 unassigned parms before splitting.
18955 (parm_in_unassigned_mem_p): New. Use it instead of
18956 parm_maybe_byref_p throughout this file.
18957 (assign_parm_setup_block): Use it. Accept pseudos in the
18958 expand-assigned rtl.
18959 (assign_parm_setup_reg): Drop BLKmode requirement.
18960 (assign_parm_setup_stack): Allocate and fill in the address of
18961 unassigned MEM parms.
18963 2015-08-19 David Sherwood <david.sherwood@arm.com>
18965 * genmodes.c (emit_mode_unit_size_inline): New function.
18966 (emit_mode_unit_precision_inline): New function.
18967 (emit_insn_modes_h): Emit new #define. Emit new functions.
18968 (emit_mode_unit_size): New function.
18969 (emit_mode_unit_precision): New function.
18970 (emit_mode_adjustments): Add mode_unit_size adjustments.
18971 (emit_insn_modes_c): Emit new arrays.
18972 * machmode.h (GET_MODE_UNIT_SIZE, GET_MODE_UNIT_PRECISION): Update to
18973 use new inline methods.
18975 2015-08-19 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
18977 * config/aarch64/aarch64.c (bit_count): Delete prototype
18979 (aarch64_print_operand): Use popcount_hwi instead of the above.
18981 2015-08-19 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
18983 * config/aarch64/aarch64-option-extensions.def: Delete obsolete
18986 2015-08-19 Marek Polacek <polacek@redhat.com>
18988 PR middle-end/67133
18989 * gimple-ssa-isolate-paths.c
18990 (insert_trap_and_remove_trailing_statements): Rename to ...
18991 (insert_trap): ... this. Don't remove trailing statements; split
18993 (find_explicit_erroneous_behaviour): Don't remove all outgoing edges.
18995 2015-08-19 Mikael Morin <mikael@gcc.gnu.org>
18998 * hwint.h (sext_hwi): Switch to unsigned for the left shift, and
18999 conditionalize the whole on __GNUC__. Add fallback code
19000 depending neither on undefined nor implementation-defined behaviour.
19002 2015-08-19 Jiong Wang <jiong.wang@arm.com>
19004 * config/aarch64/aarch64.c (aarch64_load_symref_appropriately): Replace
19005 whitespaces with tab.
19007 2015-08-19 Florian Weimer <fweimer@redhat.com>
19009 * prj.adb (For_Every_Project_Imported_Context.Recursive_Check_Context):
19010 Move Name_Id_Set instantiation to the Prj package, to avoid trampolines.
19011 * prj-proc.adb (Process.Process_Expression_Variable_Decl):
19012 Move Name_Ids instantiation to the Prj.Proc package, to avoid
19015 2015-08-19 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
19017 * config/arm/arm.c (bounds_check): Use %wd print format
19018 for HOST_WIDE_INT arguments.
19020 2015-08-18 Trevor Saunders <tbsaunde@tbsaunde.org>
19022 * bb-reorder.c, cfgloop.h, collect2.c, combine.c, dse.c,
19023 dwarf2cfi.c, gcse-common.h, genopinit.c, ggc-page.c, machmode.h,
19024 mcf.c, modulo-sched.c, omp-low.c, read-rtl.c, sched-rgn.c,
19025 signop.h, tree-call-cdce.c, tree-dfa.c, tree-diagnostic.c,
19026 tree-inline.h, tree-scalar-evolution.c, tree-ssa-address.c,
19027 tree-ssa-loop-niter.c, tree-ssa-loop.h, tree-ssa-pre.c,
19028 tree-ssa-reassoc.c, tree-ssa-sccvn.h, tree-ssa-structalias.c,
19029 tree-ssa-uninit.c, tree-ssa.h, tree-vect-loop-manip.c,
19030 tree-vectorizer.h, tree-vrp.c, var-tracking.c: Remove useless
19033 2015-08-18 trevor Saunders <tbsaunde@tbsaunde.org>
19035 * bt-load.c, cgraph.h, dwarf2out.c, dwarf2out.h, final.c,
19036 function.c, graphite-scop-detection.c, haifa-sched.c,
19037 ipa-devirt.c, ipa-split.c, recog.c, ree.c, stmt.c,
19038 tree-data-ref.c, tree-ssa-dom.c, tree-ssa-loop-ivopts.c,
19039 varasm.c: Remove typedefs of structs.
19041 2015-08-18 Bill Schmidt <wschmidt@vnet.linux.ibm.com>
19043 * config/rs6000/altivec.h (vec_adde): New define.
19044 (vec_addec): Likewise.
19045 (vec_double): Likewise.
19046 (vec_bperm): Likewise.
19047 (vec_gb): Likewise.
19048 * config/rs6000/rs6000-builtin.def (ADDE): New
19049 BU_ALTIVEC_OVERLOAD_3.
19051 (DOUBLE): New BU_VSX_OVERLOAD_1.
19052 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add new
19053 entries for ALTIVEC_BUILTIN_VEC_ADDC, ALTIVEC_BUILTIN_VEC_ADDE,
19054 ALTIVEC_BUILTIN_VEC_ADDEC, ALTIVEC_BUILTIN_VEC_ANDC,
19055 VSX_BUILTIN_VEC_DOUBLE, ALTIVEC_BUILTIN_VEC_MERGEH,
19056 ALTIVEC_BUILTIN_VEC_MERGEL, ALTIVEC_BUILTIN_VEC_NOR,
19057 ALTIVEC_BUILTIN_VEC_OR, ALTIVEC_BUILTIN_VEC_XOR,
19058 ALTIVEC_BUILTIN_VEC_PERM, ALTIVEC_BUILTIN_VEC_SEL,
19059 P8V_BUILTIN_VEC_EQV, P8V_BUILTIN_VEC_NAND, P8V_BUILTIN_VEC_ORC,
19060 and P8V_BUILTIN_VEC_VBPERMQ.
19062 2015-08-18 Jason Merrill <jason@redhat.com>
19064 * print-tree.c (print_node): Handle TREE_BINFO.
19066 2015-08-18 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
19068 PR middle-end/36757
19069 * builtins.c (expand_builtin_signbit): Add asserts to make sure
19070 we can expand BUILT_IN_SIGNBIT inline.
19071 * builtins.def (BUILT_IN_SIGNBIT): Make type-generic.
19072 * doc/extend.texi: Document the type-generic __builtin_signbit.
19074 2015-08-18 Richard Sandiford <richard.sandiford@arm.com>
19076 PR rtl-optimization/67218
19077 * simplify-rtx.c (exact_int_to_float_conversion_p): New function.
19078 (simplify_unary_operation_1): Use it.
19080 2015-08-18 Marek Polacek <polacek@redhat.com>
19082 PR middle-end/67222
19083 * gimple-low.c (lower_stmt): Don't lower BUILT_IN_POSIX_MEMALIGN
19084 if the call isn't valid.
19085 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Check builtins using
19086 gimple_call_builtin_p.
19087 (call_may_clobber_ref_p_1): Likewise.
19088 (stmt_kills_ref_p): Likewise.
19090 2015-08-18 Robert Suchanek <robert.suchanek@imgtec.com>
19092 * config/mips/mips-protos.h (mips_hard_regno_rename_ok): New prototype.
19093 * config/mips/mips.c (mips_hard_regno_rename_ok): New function.
19094 (mips_hard_regno_scratch_ok): Likewise.
19095 (TARGET_HARD_REGNO_SCRATCH_OK): Define macro.
19096 * config/mips/mips.h (HARD_REGNO_RENAME_OK): New.
19098 2015-08-18 Bin Cheng <bin.cheng@arm.com>
19100 * tree-ssa-loop-niter.c (refine_value_range_using_guard): New.
19101 (determine_value_range): Call refine_value_range_using_guard for
19102 each loop initial condition to improve value range.
19104 2015-08-17 Aldy Hernandez <aldyh@redhat.com>
19106 * config/i386/i386.c: Remove include of fibheap.h.
19108 2015-08-17 Richard Biener <rguenther@suse.de>
19110 PR tree-optimization/67221
19111 * tree-ssa-sccvn.c (visit_phi): Keep all-TOP args TOP.
19112 (sccvn_dom_walker::before_dom_children): Mark backedges of
19113 non-executable blocks as not executable.
19115 2015-08-17 David Sherwood <david.sherwood@arm.com>
19117 * config/arm/arm.c (neon_element_bits): Replace call to
19118 GET_MODE_BITSIZE (GET_MODE_INNER (m)) with GET_MODE_UNIT_BITSIZE (m).
19119 * config/arm/neon.md (neon_vget_lane<mode>): Likewise.
19120 (neon_vget_laneu<mode>, neon_vset_lane<mode>): Likewise
19121 (neon_vdup_lane<mode>): Likewise.
19122 * config/i386/i386.c (ix86_expand_int_vcond): Likewise.
19123 (ix86_expand_multi_arg_builtin, ix86_expand_reduc): Likewise.
19124 (expand_vec_perm_palignr, ix86_expand_sse2_abs): Likewise.
19125 * config/rs6000/rs6000.c (rs6000_do_expand_vec_perm): Likewise.
19126 * config/spu/spu.c (arith_immediate_p): Likewise.
19127 * expmed.c (store_bit_field_1, extract_bit_field_1): Likewise.
19128 * expr.c (expand_expr_real_2): Likewise.
19129 * optabs.c (shift_amt_for_vec_perm_mask): Likewise.
19130 * simplify-rtx.c (simplify_immed_subreg): Likewise.
19131 * tree-cfg.c (verify_gimple_assign_ternary): Likewise.
19132 * tree-vect-patterns.c (vect_recog_mixed_size_cond_pattern): Likewise.
19134 * fold-const.c (fold_binary_loc): Replace call to
19135 GET_MODE_PRECISION (GET_MODE_INNER (m)) with
19136 GET_MODE_UNIT_PRECISION (m).
19138 2015-08-17 Mike Stump <mikestump@comcast.net>
19140 * config/arm/arm.c (arm_block_move_unaligned_straight):
19141 Emit normal move instead of unaligned load when source or destination
19142 are appropriately aligned.
19144 2015-08-17 Richard Biener <rguenther@suse.de>
19145 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
19147 PR middle-end/16107
19148 * match.pd (div (coss (op @0) : New simplifier.
19150 2015-08-14 Alexandre Oliva <aoliva@redhat.com>
19152 PR rtl-optimization/64164
19154 PR middle-end/66983
19155 PR rtl-optimization/67000
19156 PR middle-end/67034
19157 PR middle-end/67035
19158 * Makefile.in (OBJS): Drop tree-ssa-copyrename.o.
19159 * tree-ssa-copyrename.c: Removed.
19160 * opts.c (default_options_table): Drop -ftree-copyrename. Add
19161 -ftree-coalesce-vars.
19162 * passes.def: Drop all occurrences of pass_rename_ssa_copies.
19163 * common.opt (ftree-copyrename): Ignore.
19164 (ftree-coalesce-inlined-vars): Likewise.
19165 * doc/invoke.texi: Remove the ignored options above.
19166 * gimple-expr.h (gimple_can_coalesce_p): Move declaration
19167 * tree-ssa-coalesce.h: ... here.
19168 * tree-ssa-uncprop.c: Include tree-ssa-coalesce.h and other
19169 headers required by it.
19170 * gimple-expr.c (gimple_can_coalesce_p): Allow coalescing
19171 across variables when flag_tree_coalesce_vars. Check register
19172 use and promoted modes to allow coalescing. Do not coalesce
19173 maybe-byref parms with SSA_NAMEs of other variables, or
19174 anonymous SSA_NAMEs. Moved to tree-ssa-coalesce.c.
19175 * tree-ssa-live.c (struct tree_int_map_hasher): Move along
19176 with its member functions to tree-ssa-coalesce.c.
19177 (var_map_base_init): Likewise. Renamed to
19178 compute_samebase_partition_bases.
19179 (partition_view_normal): Drop want_bases parameter.
19180 (partition_view_bitmap): Likewise.
19181 * tree-ssa-live.h: Adjust declarations.
19182 * tree-ssa-coalesce.c: Include explow.h and cfgexpand.h.
19183 (build_ssa_conflict_graph): Process PARM_ and RESULT_DECLs's
19184 default defs at the entry point.
19185 (dump_part_var_map): New.
19186 (compute_optimized_partition_bases): New, called by...
19187 (coalesce_ssa_name): ... when flag_tree_coalesce_vars, instead
19188 of compute_samebase_partition_bases. Adjust.
19189 * alias.c (nonoverlapping_memrefs_p): Disregard gimple-regs.
19190 * cfgexpand.c (leader_merge, parm_maybe_byref_p): New.
19191 (ssa_default_def_partition): New.
19192 (get_rtl_for_parm_ssa_default_def): New.
19193 (align_local_variable, add_stack_var): Support anonymous SSA
19195 (defer_stack_allocation): Likewise. Declare earlier.
19196 (set_rtl): Merge exprs and attrs, even for MEMs and non-SSA
19197 vars. Update DECL_RTL for PARM_DECLs and RESULT_DECLs too.
19198 Do no record deferred-allocation marker in
19199 SA.partition_to_pseudo.
19200 (expand_stack_vars): Adjust check for the marker in it.
19201 (expand_one_stack_var_at): Handle anonymous SSA_NAMEs. Drop
19202 redundant MEM attr setting.
19203 (expand_one_stack_var_1): Handle anonymous SSA_NAMEs. Renamed
19205 (expand_one_stack_var): ... this. New wrapper to check and
19206 skip already expanded SSA partitions.
19207 (record_alignment_for_reg_var): New, factored out of...
19208 (expand_one_var): ... this.
19209 (expand_one_ssa_partition): New.
19210 (adjust_one_expanded_partition_var): New.
19211 (expand_one_register_var): Check and skip already expanded SSA
19213 (expand_used_vars): Don't create DECLs for anonymous SSA
19214 names. Expand all SSA partitions, then adjust all SSA names.
19215 (pass::execute): Replace the loops that set
19216 SA.partition_to_pseudo from partition leaders and cleared
19217 DECL_RTL for multi-location variables, and that which used to
19218 rename vars and set attrs, with one that clears DECL_RTL and
19219 checks that PARMs and RESULTs default_defs match DECL_RTL.
19220 * cfgexpand.h (get_rtl_for_parm_ssa_default_def): Declare.
19221 * emit-rtl.c: Include stor-layout.h.
19222 (set_reg_attrs_for_parm): Handle NULL decl.
19223 (set_reg_attrs_for_decl_rtl): Take mode from expression if
19225 * stmt.c (emit_case_decision_tree): Pass it the SSA_NAME
19226 rather than its possibly-NULL DECL.
19227 * explow.c (promote_ssa_mode): New.
19228 * explow.h (promote_ssa_mode): Declare.
19229 * expr.c (expand_expr_real_1): Handle anonymous SSA_NAMEs.
19230 (read_complex_part): Export.
19231 * expr.h (read_complex_part): Declare.
19232 * cfgexpand.h (parm_maybe_byref_p): Declare.
19233 * function.c: Include cfgexpand.h.
19234 (use_register_for_decl): Handle SSA_NAMEs, anonymous or not.
19235 (use_register_for_parm_decl): Wrapper for the above to
19236 special-case the result_ptr.
19237 (rtl_for_parm): Ditto for get_rtl_for_parm_ssa_default_def.
19238 (split_complex_args): Take assign_parm_data_all argument.
19239 Pass it to rtl_for_parm. Set up rtl and context for split
19240 args. Reset complex parm before fetching its default decl
19242 (assign_parms_unsplit_complex): Use the default-def complex
19243 parm rtl if it matches the components.
19244 (assign_parms_augmented_arg_list): Adjust.
19245 (maybe_reset_rtl_for_parm): Reset DECL_RTL of parms with
19246 multiple locations. Recognize split complex args.
19247 (assign_parm_adjust_stack_rtl): Add all and parm arguments,
19248 for rtl_for_parm. For SSA-assigned parms, zero stack_parm.
19249 (assign_parm_setup_block): Prefer SSA-assigned location, and
19250 fill in its address if the memory location of a maybe-byref
19251 parm was not assigned by cfgexpand.
19252 (assign_parm_setup_reg): Likewise. Adjust its mode as
19253 needed. Use entry_parm for equiv if stack_parm is NULL. Make
19254 sure passed_pointer parms don't need conversion. Copy address
19255 or value as needed.
19256 (assign_parm_setup_stack): Prefer SSA-assigned location.
19257 (assign_parms): Maybe reset DECL_RTL of params. Adjust stack
19258 rtl before testing for pointer bounds. Special-case result_ptr.
19259 (expand_function_start): Maybe reset DECL_RTL of result.
19260 Prefer SSA-assigned location for result and static chain.
19261 Factor out DECL_RESULT and SET_DECL_RTL. Convert static chain
19262 to Pmode if needed, from H.J. Lu <hongjiu.lu@intel.com>.
19263 * tree-outof-ssa.c (insert_value_copy_on_edge): Handle
19264 anonymous SSA names. Use promote_ssa_mode.
19265 (get_temp_reg): Likewise.
19266 (remove_ssa_form): Adjust.
19267 * stor-layout.c (layout_decl): Don't set mem attributes of
19269 * var-tracking.c (dataflow_set_clear_at_call): Take call_insn
19270 and get its reg_usage for reg invalidation.
19271 (compute_bb_dataflow): Pass it insn.
19272 (emit_notes_in_bb): Likewise.
19274 2015-08-14 Marek Polacek <polacek@redhat.com>
19276 * tree-core.h (tree_base): Fix typo.
19278 2015-08-14 Marek Polacek <polacek@redhat.com>
19280 PR middle-end/67133
19281 * gimple.c (infer_nonnull_range_by_attribute): Check that the
19282 nonnull argument position is not outside function arguments.
19284 2015-08-14 Matthew Wahab <matthew.wahab@arm.com>
19287 * config/aarch64/atomics.md (atomic_<optab><mode>): Replace
19288 'lconst_atomic' with 'const_atomic'.
19289 (atomic_fetch_<optab><mode>): Likewise.
19290 (atomic_<optab>_fetch<mode>): Likewise.
19291 * config/aarch64/iterators.md (lconst-atomic): Move below
19293 (const_atomic): New.
19295 2015-08-14 Thomas Schwinge <thomas@codesourcery.com>
19296 Bernd Schmidt <bernds@codesourcery.com>
19298 * config/nvptx/nvptx.c (nvptx_option_override): Don't override
19300 * config/nvptx/nvptx.h (DWARF2_LINENO_DEBUGGING_INFO): Define.
19301 (DWARF2_DEBUGGING_INFO): Don't define.
19302 * debug.h (dwarf2_lineno_debug_hooks): Declare.
19303 * toplev.c (process_options): Add a case for it.
19304 * dwarf2out.c (dwarf2_lineno_debug_hooks): New variable.
19305 (dwarf2out_init): Skip most initializations if
19306 DWARF2_LINENO_DEBUGGING_INFO, but set cur_line_info_table in that
19308 * defaults.h (PREFERRED_DEBUGGING_TYPE): Also use DWARF2_DEBUG if
19309 DWARF2_LINENO_DEBUGGING_INFO.
19310 * opts.c (set_debug_level): Likewise.
19312 2015-08-14 James Greenhalgh <james.greenhalgh@arm.com>
19314 * config/arm/types.md (is_neon_type): Add missing types.
19316 2015-08-14 Yuri Rumyantsev <ysrumyan@gmail.com>
19318 * config/i386/driver-i386.c (host_detect_local_cpu): Add support
19320 * config/i386/i386.c (PTA_SKYLAKE): New macros.
19321 (processor_alias_table): Add skylake description.
19322 (enum processor_model): Add skylake processor.
19323 (arch_names_table): Add skylake record.
19324 * doc/invoke.texi: Add skylake item.
19326 2015-08-13 Andrew MacLeod <amacleod@redhat.com>
19328 * ira-int.h: Include recog.h.
19329 * ira-build.c: Don't include recog.h.
19330 * ira-color.c: Likewise.
19331 * ira-conflicts.c: Likewise.
19332 * ira-costs.c: Likewise.
19333 * ira-emit.c: Likewise.
19334 * ira-lives.c: Likewise.
19336 * sched-deps.c: Likewise.
19337 * sel-sched.c: Likewise.
19338 * target-globals.c: Likewise.
19340 2015-08-13 Richard Sandiford <richard.sandiford@arm.com>
19343 * reload1.c (elimination_costs_in_insn): Make it obvious to the
19344 compiler that the n_dups and n_operands loop bounds are invariant.
19346 2015-08-13 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
19348 * ifcvt.c (noce_try_store_flag_constants): Handle PLUS-immediate
19349 expressions in A and B.
19351 2015-08-13 Richard Biener <rguenther@suse.de>
19353 * tree.c (nonnull_arg_p): Move from ...
19354 * tree-vrp.c (nonnull_arg_p): ... here.
19355 * tree.h (nonnull_arg_p): Declare.
19356 * tree-ssa-sccvn.c (init_scc_vn): Perform all lattice init
19357 here, register ptr != 0 for nonnull_arg_p pointer arguments.
19358 Properly initialize static chain and by-reference result pointer.
19359 (run_scc_vn): Adjust.
19361 2015-08-13 Robert Suchanek <robert.suchanek@imgtec.com>
19363 * config/mips/mips.h (ENABLE_LD_ST_PAIRS): Enable load/store pairs for
19366 2015-08-13 Matthew Wahab <matthew.wahab@arm.com>
19368 * config/aarch64/aarch64-protos.h
19369 (aarch64_gen_atomic_cas): Declare.
19370 * config/aarch64/aarch64.c (aarch64_expand_compare_and_swap):
19371 Choose appropriate instruction pattern for the target.
19372 (aarch64_gen_atomic_cas): New.
19373 * config/aarch64/atomics.md (UNSPECV_ATOMIC_CAS): New.
19374 (atomic_compare_and_swap<mode>_1): Rename to
19375 aarch64_compare_and_swap<mode>. Fix some indentation.
19376 (aarch64_compare_and_swap<mode>_lse): New.
19377 (aarch64_atomic_cas<mode>): New.
19379 2015-08-13 Matthew Wahab <matthew.wahab@arm.com>
19381 * config/aarch64/aarch64.h (AARCH64_ISA_LSE): New.
19384 2015-08-13 Richard Biener <rguenther@suse.de>
19386 PR tree-optimization/67191
19387 * tree-ssa-sccvn.c (sccvn_dom_walker::before_dom_children): Remove
19388 assert we value-numbered last stmts operand because it can validly
19389 trigger for unreachable code.
19391 2015-08-13 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
19393 PR rtl-optimization/67103
19394 * ifcvt.c (noce_try_store_flag_constants): Move
19395 x = (-(test != 0) & (b - a)) + a transformation to...
19396 (noce_try_cmove): ... Here. Try it if normal conditional
19399 2015-08-13 Robert Suchanek <robert.suchanek@imgtec.com>
19401 * config/mips/mips.c (mips_rtx_cost_data): Remove costs for W32 and W64
19403 * config/mips/mips.md (processor): Remove w32 and w64.
19405 2015-08-13 Richard Biener <rguenther@suse.de>
19407 PR tree-optimization/66502
19408 PR tree-optimization/67167
19409 * tree-ssa-sccvn.c (vn_phi_compute_hash): Do not include
19410 backedge arguments.
19411 (vn_phi_lookup): Adjust.
19412 (vn_phi_insert): Likewise.
19413 (visit_phi): Prefer to value-number to another PHI node
19414 over value-numbering to a PHI argument.
19415 (init_scc_vn): Mark DFS back edges.
19417 2015-08-13 Richard Biener <rguenther@suse.de>
19419 * gimple.h (gcall::code_): New constant static member.
19420 (gcond::code_): Likewise.
19421 * gimple.c (gcall::code_): Define.
19422 (gcond::code_): Likewise.
19423 (is_a_helper <const gcond *>): Add.
19424 (gimple_call_lhs): Use GIMPLE_CHECK2 in the gimple overload
19425 and forward to a new gcall overload with less checking and a
19426 cheaper way to access the operand.
19427 (gimple_call_lhs_ptr): Likewise.
19428 (gimple_call_set_lhs): Likewise.
19429 (gimple_call_internal_p): Likewise.
19430 (gimple_call_with_bounds_p): Likewise.
19431 (gimple_call_set_with_bounds): Likewise.
19432 (gimple_call_internal_fn): Likewise.
19433 (gimple_call_set_ctrl_altering): Likewise.
19434 (gimple_call_ctrl_altering_p): Likewise.
19435 (gimple_call_fntype): Likewise.
19436 (gimple_call_fn): Likewise.
19437 (gimple_call_fn_ptr): Likewise.
19438 (gimple_call_set_fndecl): Likewise.
19439 (gimple_call_fndecl): Likewise.
19440 (gimple_call_chain): Likewise.
19441 (gimple_call_num_args): Likewise.
19442 (gimple_call_arg): Likewise.
19443 (gimple_call_arg_ptr): Likewise.
19444 (gimple_call_set_arg): Likewise.
19445 (gimple_call_noreturn_p): Likewise.
19446 (gimple_cond_code): Likewise.
19447 (gimple_cond_lhs): Likewise.
19448 (gimple_cond_rhs): Likewise.
19449 (gimple_has_lhs): Reduce checking.
19451 2015-08-13 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
19453 PR middle-end/25529
19454 * match.pd (div (mult @0 @1) @1) : New simplifier.
19456 2015-08-12 Michael Meissner <meissner@linux.vnet.ibm.com>
19459 * config/rs6000/predicates.md (easy_vector_constant_vsldoi): New
19460 predicate to allow construction of vector constants using the
19461 VSLDOI vector shift instruction.
19463 * config/rs6000/rs6000-protos.h (vspltis_shifted): Add
19466 * config/rs6000/rs6000.c (vspltis_shifted): New function to return
19467 the number of bytes to be shifted left and filled in with either
19468 all zero or all one bits.
19469 (gen_easy_altivec_constant): Call vsplitis_shifted if no other
19471 (output_vec_const_move): On power8, generate XXLORC to generate
19472 a vector constant with all 1's. Do a split if we need to use a
19473 VSLDOI instruction.
19475 * config/rs6000/rs6000.h (EASY_VECTOR_MSB): Use mode mask to
19476 properly test for the MSB.
19478 * config/rs6000/altivec.md (VSLDOI splitter): Add splitter for
19479 vector constants that can be created with VSLDOI.
19481 2015-08-11 Trevor Saunders <tbsaunde@tbsaunde.org>
19484 * compare-elim.c, dce.c, dse.c, gimple-ssa-isolate-paths.c,
19485 gimple-ssa-strength-reduction.c, graphite.c, init-regs.c,
19486 ipa-pure-const.c, ipa-visibility.c, ipa.c, mode-switching.c,
19487 omp-low.c, reorg.c, sanopt.c, trans-mem.c, tree-eh.c,
19488 tree-if-conv.c, tree-ssa-copyrename.c, tree-ssa-dce.c,
19489 tree-ssa-dom.c, tree-ssa-dse.c, tree-ssa-forwprop.c,
19490 tree-ssa-sink.c, tree-ssanames.c, tree-stdarg.c, tree-tailcall.c,
19491 tree-vect-generic.c, tree.c, ubsan.c, var-tracking.c,
19492 vtable-verify.c, web.c: Use GCC_FINAL instead of the anonymous
19494 2015-08-12 Max Filippov <jcmvbkbc@gmail.com>
19496 * config/xtensa/constraints.md (define_constraint "Y"): New
19498 * config/xtensa/elf.h (ASM_SPEC): Add m(no-)auto-litpools.
19499 * config/xtensa/linux.h (ASM_SPEC): Likewise.
19500 * config/xtensa/predicates.md (move_operand): Match constants
19501 and symbols in the presence of TARGET_AUTO_LITPOOLS.
19502 * config/xtensa/xtensa.c (xtensa_valid_move): Don't allow
19503 immediate references to TLS data.
19504 (xtensa_emit_move_sequence): Don't force constants to memory in
19505 the presence of TARGET_AUTO_LITPOOLS.
19506 (print_operand): Add 'y' format, same as default, but capable of
19507 printing SF mode constants as well.
19508 * config/xtensa/xtensa.md (movsi_internal, movhi_internal)
19509 (movsf_internal): Add movi pattern that loads literal.
19510 (movsf, movdf): Don't force constants to memory in the presence
19511 of TARGET_AUTO_LITPOOLS.
19512 (movdf_internal): Add 'Y' constraint.
19513 * config/xtensa/xtensa.opt (mauto-litpools): New option.
19514 * doc/invoke.text (Xtensa options): Document -mauto-litpools.
19516 2015-08-12 Matthew Wahab <matthew.wahab@arm.com>
19518 * config/arm/arm-fpus.def: Replace booleans with feature flags.
19520 * config/arm/arm.c (ARM_FPU): Update macro.
19521 * config/arm/arm.h (TARGET_NEON_FP16): Update feature test.
19522 (TARGET_FP16): Likewise.
19523 (TARGET_CRYPTO): Likewise.
19524 (TARGET_NEON): Likewise.
19525 (struct arm_fpu_desc): Remove fields neon, fp16 and crypto. Add
19528 2015-08-12 Tom de Vries <tom@codesourcery.com>
19532 * doc/install.texi: Remove --with_host_libstdcxx item. Update
19533 --with-stage1-libs, --with-boot-ldflags and --with-boot-libs items
19534 accordingly. Mention default for --with-stage1-ldflags.
19536 2015-08-12 Matthew Wahab <matthew.wahab@arm.com>
19538 * config/arm/arm.h (arm_fpu_feature_set): New.
19539 (ARM_FPU_FSET_HAS): New.
19540 (FPU_FL_NONE): New.
19541 (FPU_FL_NEON): New.
19542 (FPU_FL_FP16): New.
19543 (FPU_FL_CRYPTO): New.
19545 2015-08-12 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
19547 * config/aarch64/aarch64.c (initialize_aarch64_code_model): Break
19548 after -mcmodel=large -fPIC sorry.
19550 2015-08-12 Richard Biener <rguenther@suse.de>
19552 * tree-ssa-sccvn.c (vn_nary_op_compute_hash): Also canonicalize
19553 comparison operand order and commutative ternary op operand order.
19554 (sccvn_dom_walker::cond_stack): New state to track temporary
19556 (sccvn_dom_walker::after_dom_children): Remove tempoary expressions
19558 (sccvn_dom_walker::record_cond): Add a single temporary conditional
19560 (sccvn_dom_walker::record_conds): Add a temporary conditional
19561 expressions and all related expressions also true/false.
19562 (sccvn_dom_walker::before_dom_children): Record temporary
19563 expressions based on the controlling condition of a single
19564 predecessor. When trying to simplify a conditional statement
19565 lookup expressions we might have inserted earlier.
19567 2015-08-12 Yvan Roux <yvan.roux@linaro.org>
19570 * config/arm/arm.md (movdi): Restrict illegitimate ldrd/strd checking
19571 to ARM core registers.
19573 2015-08-12 Nathan Sidwell <nathan@acm.org>
19575 * tree-vrp.c (simplify_min_or_max_using_ranges): New.
19576 (simplify_stmt_using_ranges): Simplify MIN and MAX exprs.
19578 2015-08-12 Simon Dardis <simon.dardis@imgtec.com>
19580 * config/mips/mips.c (mips_store_data_bypass_p): Bring code into
19581 line with comments.
19582 * config/mips/sb1.md: Update usage of mips_store_data_bypass_p.
19584 2015-08-12 Richard Biener <rguenther@suse.de>
19586 * gimple.h (remove_pointer): New trait.
19587 (GIMPLE_CHECK2): New inline template function.
19588 (gassign::code_): New constant static member.
19589 (is_a_helper<const gassign *>): Add.
19590 (gimple_assign_lhs): Use GIMPLE_CHECK2 in the gimple overload
19591 and forward to a new gassign overload with less checking and a
19592 cheaper way to access the operand.
19593 (gimple_assign_lhs_ptr): Likewise.
19594 (gimple_assign_set_lhs): Likewise.
19595 (gimple_assign_rhs1, gimple_assign_rhs1_ptr, gimple_assign_set_rhs1):
19597 (gimple_assign_rhs2, gimple_assign_rhs2_ptr, gimple_assign_set_rhs2):
19599 (gimple_assign_rhs3, gimple_assign_rhs3_ptr, gimple_assign_set_rhs3):
19601 (gimple_assign_rhs_code): Likewise.
19602 * gimple.c (gassign::code_): Define.
19604 2015-08-12 Richard Biener <rguenther@suse.de>
19606 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children):
19607 Eliminate edges marked as not executable by SCCVN.
19608 * tree-ssa-sccvn.c: Include gimple-iterator.h.
19609 (cond_dom_walker): Rename to sccvn_dom_walker.
19610 (sccvn_dom_walker::before_dom_children): Value-number defs
19612 (run_scc_vn): Remove loop value-numbering all SSA names.
19613 Drop not visited SSA names to varying.
19615 2015-08-11 Trevor Saunders <tbsaunde@tbsaunde.org>
19617 * compare-elim.c, dce.c, dse.c, gimple-ssa-isolate-paths.c,
19618 gimple-ssa-strength-reduction.c, graphite.c, init-regs.c,
19619 ipa-pure-const.c, ipa-visibility.c, ipa.c, mode-switching.c,
19620 omp-low.c, reorg.c, sanopt.c, trans-mem.c, tree-eh.c,
19621 tree-if-conv.c, tree-ssa-copyrename.c, tree-ssa-dce.c,
19622 tree-ssa-dom.c, tree-ssa-dse.c, tree-ssa-forwprop.c,
19623 tree-ssa-sink.c, tree-ssanames.c, tree-stdarg.c, tree-tailcall.c,
19624 tree-vect-generic.c, tree.c, ubsan.c, var-tracking.c,
19625 vtable-verify.c, web.c: Use GCC_FINAL instead of the anonymous
19627 2015-08-11 Uros Bizjak <ubizjak@gmail.com>
19630 * config/i386/i386.c (get_builtin_code_for_version): Add P_PCLMUL
19631 to enum feature_priority and feature_list.
19632 (fold_builtin_cpu): Add F_PCLMUL to enum processor_features
19633 and isa_names_table.
19635 2015-08-11 Yuri Rumyantsev <ysrumyan@gmail.com>
19637 * tree-vect-stmts.c (vectorizable_shift): Add missed test on
19638 vect_induction_def.
19640 2015-08-11 Manuel López-Ibáñez <manu@gcc.gnu.org>
19644 * diagnostic.c (diagnostic_classify_diagnostic): Take -Werror into
19645 account when deciding what was the command-line status.
19647 2015-08-11 Nathan Sidwell <nathan@acm.org>
19649 * tree-vrp.c (simplify_abs_using_ranges): Simplify.
19651 * tree-ssa-phiopt.c (minmax_replacement): Create new ssa name if
19652 we're not the only contributor to target phi.
19654 2015-08-11 Jiong Wang <jiong.wang@arm.com>
19656 * config/aarch64/aarch64.h (REG_CLASS_NAMES): Add the missing ',' after
19659 2015-08-11 Tom de Vries <tom@codesourcery.com>
19661 * tree-cfg.c (move_sese_region_to_fn): Add todo comment.
19663 2015-08-10 H.J. Lu <hongjiu.lu@intel.com>
19665 * config/i386/i386.c (processor_alias_table): Replace CPU_KNL
19667 * config/i386/i386.md (cpu): Remove knl.
19669 2015-08-10 Thomas Schwinge <thomas@codesourcery.com>
19672 PR middle-end/66332
19673 * builtins.c (expand_builtin_acc_on_device) [ACCEL_COMPILER]: Emit
19674 open-coded sequence.
19675 * omp-low.c (oacc_process_reduction_data): Remove handline of
19676 GOMP_DEVICE_HOST_NONSHM.
19678 * lto-streamer-in.c (lto_input_mode_table): Adjust to
19679 GET_MODE_INNER changes.
19681 2015-08-10 Thomas Schwinge <thomas@codesourcery.com>
19682 Ilya Verbin <ilya.verbin@intel.com>
19684 * lto-streamer-in.c (lto_input_mode_table): Correctly advance iterator.
19686 2015-08-09 Manuel López-Ibáñez <manu@gcc.gnu.org>
19688 * doc/options.texi (EnabledBy): Document that the argument must be
19690 * doc/invoke.texi (Wnull-dereference): Move after Wnonnull.
19691 Not enabled by -Wall.
19692 * optc-gen.awk: Give nicer error messages. Detect if the argument
19693 of EnabledBy is not a Common option.
19694 * common.opt (Wnull-dereference): Not enabled by -Wall.
19695 * opt-functions.awk (lang_enabled_by): Nicer error messages.
19697 2015-08-09 H.J. Lu <hongjiu.lu@intel.com>
19699 * config/i386/driver-i386.c (host_detect_local_cpu): Treat
19700 model == 0x4f as Broadwell.
19702 2015-08-08 Segher Boessenkool <segher@kernel.crashing.org>
19704 PR rtl-optimization/67028
19705 * combine.c (simplify_comparison): Fix comment. Rearrange code.
19706 Add test to see if a const_int fits in the new mode.
19708 2015-08-07 DJ Delorie <dj@redhat.com>
19710 * config/rx/rx.c (rx_mode_dependent_address_p): Remove unneeded asserts.
19712 2015-08-07 H.J. Lu <hongjiu.lu@intel.com>
19714 PR rtl-optimization/67029
19715 * ira-color.c: Include "recog.h" before including "ira-int.h".
19716 * target-globals.c: Likewise.
19717 * ira-lives.c (ira_implicitly_set_insn_hard_regs): Add an
19718 adds an alternative_mask argument and use it instead of
19719 preferred_alternatives.
19720 * ira.h (ira_implicitly_set_insn_hard_regs): Moved to ...
19721 * ira-int.h (ira_implicitly_set_insn_hard_regs): Here.
19722 * sched-deps.c: Include "ira-int.h" after including "ira.h".
19723 (sched_analyze_insn): Update call to
19724 ira_implicitly_set_insn_hard_regs.
19725 * sel-sched.c: Include "ira-int.h" after including "ira.h".
19726 (implicit_clobber_conflict_p): Update call to
19727 ira_implicitly_set_insn_hard_regs.
19729 2015-08-06 Uros Bizjak <ubizjak@gmail.com>
19731 * Makefile.in (.INTERMEDIATE): Add gpl.pod.
19733 2015-08-07 Kaz Kojima <kkojima@gcc.gnu.org>
19736 * config/sh/sh.c (sh_recog_treg_set_expr): Return false when
19737 currently_expanding_to_rtl is set.
19739 2015-08-06 Yaakov Selkowitz <yselkowi@redhat.com>
19741 * configure.ac: Define LIBICONV_DEP with in-tree libiconv.
19742 * configure: Regenerate.
19744 2015-08-06 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
19745 Jiong Wang <jiong.wang@arm.com>
19747 * config/aarch64/aarch64.d (tlsdesc_small_pseudo_<mode>): New pattern.
19748 * config/aarch64/aarch64.h (reg_class): New enumeration FIXED_REG0.
19749 (REG_CLASS_NAMES): Likewise.
19750 (REG_CLASS_CONTENTS): Likewise.
19751 * config/aarch64/aarch64.c (aarch64_class_max_nregs): Likewise.
19752 (aarch64_register_move_cost): Likewise.
19753 (aarch64_load_symref_appropriately): Invoke the new added pattern if
19755 * config/aarch64/constraints.md (Uc0): New constraint.
19757 2015-08-06 Jiong Wang <jiong.wang@arm.com>
19759 * config/aarch64/constraints.md (Usf): Add the test of
19760 aarch64_is_noplt_call_p.
19762 2015-08-06 Jiong Wang <jiong.wang@arm.com>
19764 * config/aarch64/aarch64-protos.h (aarch64_is_noplt_call_p): New
19766 * config/aarch64/aarch64.c (aarch64_is_noplt_call_p): New function.
19767 * config/aarch64/aarch64.md (call_value_symbol): Check noplt scenarios.
19768 (call_symbol): Likewise.
19770 2015-08-06 Venkataramanan Kumar <Venkataramanan.kumar@amd.com>
19772 * tree-vect-patterns.c (vect_recog_mult_pattern): New function
19773 for vectorizing multiplication patterns.
19774 * tree-vectorizer.h: Adjust the number of patterns.
19776 2015-08-06 Uros Bizjak <ubizjak@gmail.com>
19778 * config/i386/sse.md (*vec_concatv2df): Declare added
19779 alternatives as sselog type.
19781 2015-08-06 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
19783 * config/s390/s390.c (s390_dwarf_frame_reg_mode): Return Pmode for
19786 2015-08-06 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
19788 * config/s390/s390.c (s390_expand_tbegin): Expand either
19789 tbegin_1_z13 or tbegin_1 depending on VX flag.
19790 * config/s390/s390.md ("tbegin_1_z13"): New expander.
19792 2015-08-06 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
19794 * config/s390/s390.opt: Clarify description for -mzvector
19795 * doc/invoke.texi: Add documentation for -mhtm, -mvx, and
19798 2015-08-06 Richard Biener <rguenther@suse.de>
19800 * gimple.h (gimple_call_set_fn): Access op member directly.
19801 (gimple_call_chain_ptr): Likewise.
19802 (gimple_call_set_chain): Likewise.
19803 (gimple_cond_lhs_ptr): Likewise.
19804 (gimple_cond_set_lhs): Likewise.
19805 (gimple_cond_rhs_ptr): Likewise.
19806 (gimple_cond_set_rhs): Likewise.
19807 (gimple_cond_true_label): Likewise.
19808 (gimple_cond_set_true_label): Likewise.
19809 (gimple_cond_set_false_label): Likewise.
19810 (gimple_cond_false_label): Likewise.
19811 (gimple_label_label): Likewise.
19812 (gimple_label_set_label): Likewise.
19813 (gimple_goto_set_dest): Likewise.
19814 (gimple_asm_input_op): Likewise.
19815 (gimple_asm_input_op_ptr): Likewise.
19816 (gimple_asm_set_input_op): Likewise.
19817 (gimple_asm_output_op): Likewise.
19818 (gimple_asm_output_op_ptr): Likewise.
19819 (gimple_asm_set_output_op): Likewise.
19820 (gimple_asm_clobber_op): Likewise.
19821 (gimple_asm_set_clobber_op): Likewise.
19822 (gimple_asm_label_op): Likewise.
19823 (gimple_asm_set_label_op): Likewise.
19824 (gimple_switch_index): Likewise.
19825 (gimple_switch_index_ptr): Likewise.
19826 (gimple_return_retval_ptr): Likewise.
19827 (gimple_return_retval): Likewise.
19828 (gimple_return_set_retval): Likewise.
19829 (gimple_switch_set_index): Likewise. Remove superfluous GIMPLE_CHECK.
19830 (gimple_switch_label): Likewise.
19831 (gimple_switch_set_label): Likewise.
19833 2015-08-06 Richard Biener <rguenther@suse.de>
19835 * gimple-fold.c (gimple_fold_stmt_to_constant_1): Simplify
19836 bool comparison canonicalization and restrict to integers.
19838 2015-08-05 Andrew MacLeod <amacleod@redhat.com>
19840 * coretypes.h (enum symbol_visibility): Relocate here.
19841 * flag-types.h (enum symbol_visibility): Remove.
19842 * tree-core.h (enum symbol_visibility): Remove.
19844 2015-08-05 Lynn Boger <laboger@linux.vnet.ibm.com>
19847 * config/rs6000/rs6000.c (rs6000_emit_prologue): Check
19848 for no_split_stack function attribute along with
19850 (rs6000_expand_split_stack_prologue): Likewise.
19852 2015-08-05 Manuel López-Ibáñez <manu@gcc.gnu.org>
19853 Jeff Law <law@redhat.com>
19856 * doc/invoke.texi (Wnull-dereference): New.
19857 * tree-vrp.c (infer_value_range): Update call to infer_nonnull_range.
19858 * gimple-ssa-isolate-paths.c (find_implicit_erroneous_behaviour):
19859 Warn for potential NULL dereferences.
19860 (find_explicit_erroneous_behaviour): Warn for NULL dereferences.
19861 * ubsan.c (instrument_nonnull_arg): Call
19862 infer_nonnull_range_by_attribute.
19863 (instrument_nonnull_return): Likewise.
19864 * common.opt (Wnull-dereference); New.
19865 * gimple.c (infer_nonnull_range): Remove bool arguments.
19866 (infer_nonnull_range_by_dereference): New.
19867 (infer_nonnull_range_by_attribute): New.
19868 * gimple.h: Update declarations.
19870 2015-08-05 Richard Sandiford <richard.sandiford@arm.com>
19872 * gensupport.c (sequence_num): Replace with...
19873 (insn_sequence_num, split_sequence_num, peephole2_sequence_num):
19874 ...these new variables.
19875 (init_rtx_reader_args_cb): Update accordingly.
19876 (get_num_code_insns): Likewise.
19877 (read_md_rtx): Rework to use a while loop and get_c_test.
19878 Use the new counters. Remove redundant DEFINE_SUBST case.
19879 * genoutput.c (gen_split): Delete.
19880 (main): Don't call it.
19882 2015-08-05 Richard Sandiford <richard.sandiford@arm.com>
19884 * gensupport.h (get_c_test): Declare.
19885 * gensupport.c (get_c_test): New function.
19886 * genconditions.c (main): Use it.
19887 * genrecog.c (validate_pattern): Likewise.
19888 (match_pattern_1): Likewise. Remove c_test argument.
19889 (match_pattern): Update accordingly and remove c_test argument.
19890 (main): Update accordingly.
19892 2015-08-05 Richard Sandiford <richard.sandiford@arm.com>
19894 * gensupport.h (get_num_insn_codes): Declare.
19895 * gensupport.c (get_num_insn_codes): New function.
19896 * genattrtab.c (optimize_attrs): Rename max_insn_code to
19898 (main): Likewise. Use get_num_insn_codes.
19899 * gencodes.c (main): Remove "last" and use get_num_insn_codes.
19901 2015-08-05 Richard Sandiford <richard.sandiford@arm.com>
19903 PR middle-end/66311
19904 * wide-int.cc (wi::from_mpz): Make sure that absolute mpz value
19905 is zero- rather than sign-extended.
19907 2015-08-05 Richard Sandiford <richard.sandiford@arm.com>
19909 * target-insns.def (can_extend): Delete.
19911 2015-08-05 Richard Biener <rguenther@suse.de>
19913 PR tree-optimization/67121
19914 * tree-if-conv.c (combine_blocks): Clear range-info produced
19915 by stmts no longer executed conditionally.
19917 2015-08-05 Nick Clifton <nickc@redhat.com>
19919 * config/rl78/rl78.c (rl78_force_nonfar_3): Remove optimization
19920 to allow identical far pointers to remain.
19922 2015-08-05 Richard Biener <rguenther@suse.de>
19924 PR middle-end/67120
19925 * match.pd: Compare address bases with == if they are decls
19926 or SSA names, not operand_equal_p. Otherwise fail.
19928 2015-08-05 Richard Biener <rguenther@suse.de>
19930 PR tree-optimization/67055
19931 * tree-ssa-ccp.c (fold_builtin_alloca_with_align): Handle
19934 * g++.dg/torture/pr67055.C: New testcase.
19936 2015-08-05 Kirill Yukhin <kirill.yukhin@intel.com>
19938 * config/i386/i386.md (define_attr "isa"): Addd avx512vl and
19940 (define_attr "enabled"): Handle avx521vl and noavx512vl.
19941 * config/i386/sse.md (define_insn "vec_dupv2df<mask_name>"): Split
19942 AVX-512 alternative out of SSE.
19943 (define_insn "*vec_concatv2df"): Ditto.
19945 2015-08-05 Kirill Yukhin <kirill.yukhin@intel.com>
19947 * config/i386/i386.c (bdesc_args): Rename CODE_FOR_sse4_1_ptest into
19948 CODE_FOR_sse4_1_ptestv2di and CODE_FOR_avx_vtestps256 into
19949 CODE_FOR_avx_ptestv4di.
19950 * config/i386/sse.md (define_mode_iterator V_AVX): New.
19951 (define_mode_attr sse4_1): Extend to other 128/256-bit modes.
19952 (define_insn "avx_ptest256"): Merge this ...
19953 (define_insn "sse4_1_ptest"): And this ...
19954 (define_insn "<sse4_1>_ptest<mode>"): Into this. Use V_AVX iterator.
19956 2015-08-05 Richard Biener <rguenther@suse.de>
19958 PR tree-optimization/67109
19959 * tree-vect-data-refs.c (vect_analyze_group_access_1): Check
19960 against too big groups. Print whether this is a load or store
19961 group. Rename from ...
19962 (vect_analyze_group_access): ... this which is now a wrapper
19963 dissolving an invalid group.
19964 (vect_analyze_data_ref_accesses): Print whether this is a load
19967 2015-08-05 Richard Biener <rguenther@suse.de>
19969 PR middle-end/67107
19970 * match.pd: Guard const_binop result checking against NULL_TREE
19973 2015-08-05 Kugan Vivekanandarajah <kuganv@linaro.org>
19975 * cse.c (cse_insn): Restoring old behaviour for src_eqv
19976 when dest and value in the REG_EQUAL are same and dest
19977 is STRICT_LOW_PART.
19979 2015-08-04 Anatoly Sokolov <aesok@post.ru>
19981 * config/moxie/moxie.h (PRINT_OPERAND,
19982 PRINT_OPERAND_ADDRESS): Remove macros.
19983 * config/moxie/moxie-protos.h (moxie_print_operand,
19984 moxie_print_operand_address): Remove declaration.
19985 * config/moxie/moxie.c (TARGET_PRINT_OPERAND,
19986 TARGET_PRINT_OPERAND_ADDRESS): Define.
19987 (moxie_print_operand, moxie_print_operand_address): Make static.
19989 2015-08-04 Szabolcs Nagy <szabolcs.nagy@arm.com>
19992 * config/aarch64/aarch64.c (aarch64_rtx_costs): Fix NEG cost for FNMUL.
19993 (aarch64_rtx_mult_cost): Fix MULT cost with -frounding-math.
19995 2015-08-04 Richard Biener <rguenther@suse.de>
19997 * genmatch.c (dt_node::gen_kids_1): Use gassign and gcall in
19999 (dt_operand::gen_gimple_expr): Adjust.
20001 2015-08-04 Richard Biener <rguenther@suse.de>
20003 * gimple-fold.c (gimple_fold_stmt_to_constant_1): Canonicalize
20004 bool compares on RHS.
20005 * match.pd: Add X ==/!= !X is false/true pattern.
20007 2015-08-04 Pawel Kupidura <pawel.kupidura@arm.com>
20009 * config/aarch64/aarch64.c: Change inner loop statement cost
20010 to be consistent with other targets.
20012 2015-08-04 Christophe Lyon <christophe.lyon@linaro.org>
20014 * config/arm/neon.md (neon_vget_lanev2di): Handle big-endian
20017 2015-08-04 Nathan Sidwell <nathan@codesourcery.com>
20019 * config/nvptx/nvptx.h (struct nvptx_pseudo_info): Delete.
20020 (machine_function): Remove pseudos field.
20022 2015-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
20024 * config/aarch64/aarch64.c (aarch64_option_valid_attribute_p):
20025 Exit early and use target_option_current_node if processing current
20028 2015-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
20030 * doc/extend.texi (AArch64 Function Attributes): New node.
20031 (AArch64 Pragmas): Likewise.
20033 2015-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
20035 * config/aarch64/aarch64.c (aarch64_option_valid_attribute_p):
20036 Initialize simd builtins if TARGET_SIMD.
20037 * config/aarch64/aarch64-builtins.c (aarch64_init_simd_builtins):
20038 Make sure that the builtins are initialized only once no matter how
20039 many times the function is called.
20040 (aarch64_init_builtins): Unconditionally initialize crc builtins.
20041 (aarch64_relayout_simd_param): New function.
20042 (aarch64_simd_expand_args): Use above during argument expansion.
20043 * config/aarch64/aarch64-c.c (aarch64_pragma_target_parse): Initialize
20044 simd builtins if TARGET_SIMD.
20045 * config/aarch64/aarch64-protos.h (aarch64_init_simd_builtins): New
20047 (aarch64_relayout_simd_types): Likewise.
20049 2015-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
20051 * config.gcc (aarch64*-*-*): Specify c_target_objs and cxx_target_objs.
20052 * config/aarch64/aarch64.h (REGISTER_TARGET_PRAGMAS): Define.
20053 (TARGET_CPU_CPP_BUILTINS): Redefine to call aarch64_cpu_cpp_builtins.
20054 * config/aarch64/aarch64.c (aarch64_override_options_internal): Remove
20056 (aarch64_reset_previous_fndecl): New function.
20057 (aarch64_handle_attr_isa_flags): Handle "+nothing" in the beginning of
20059 * config/aarch64/aarch64-c.c: New file.
20060 * config/aarch64/arm_acle.h: Add pragma +crc+nofp at the top.
20061 Push and pop options at beginning and end. Remove ifdef
20062 __ARM_FEATURE_CRC32.
20063 * config/aarch64/arm_neon.h: Remove #ifdef check on __ARM_NEON.
20064 Add pragma +nothing+simd and +nothing+crypto where appropriate.
20065 * config/aarch64/t-aarch64 (aarch64-c.o): New rule.
20066 * config/aarch64/aarch64-protos.h (aarch64_cpu_cpp_builtins):
20068 (aarch64_register_pragmas): Likewise.
20069 (aarch64_reset_previous_fndecl): Likewise.
20070 (aarch64_process_target_attr): Likewise.
20071 (aarch64_override_options_internal): Likewise.
20073 2015-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
20075 * config/aarch64/aarch64.c (aarch64_tribools_ok_for_inlining_p):
20077 (aarch64_can_inline_p): Likewise.
20078 (TARGET_CAN_INLINE_P): Define.
20080 2015-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
20082 * common/config/aarch64/aarch64-common.c (aarch64_handle_option):
20083 Remove static. Handle OPT_mgeneral_regs_only,
20084 OPT_mfix_cortex_a53_835769, OPT_mstrict_align,
20085 OPT_momit_leaf_frame_pointer.
20086 * config/aarch64/aarch64.c: Include opts.h and diagnostic.h
20087 (aarch64_attr_opt_type): New enum.
20088 (aarch64_attribute_info): New struct.
20089 (aarch64_handle_attr_arch): New function.
20090 (aarch64_handle_attr_cpu): Likewise.
20091 (aarch64_handle_attr_tune): Likewise.
20092 (aarch64_handle_attr_isa_flags): Likewise.
20093 (aarch64_attributes): New table.
20094 (aarch64_process_one_target_attr): New function.
20095 (num_occurences_in_str): Likewise.
20096 (aarch64_process_target_attr): Likewise.
20097 (aarch64_option_valid_attribute_p): Likewise.
20098 (TARGET_OPTION_VALID_ATTRIBUTE_P): Define.
20099 * config/aarch64/aarch64-protos.h: Include input.h
20100 (aarch64_handle_option): Declare prototype.
20102 2015-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
20104 * config/aarch64/aarch64.h (SWITCHABLE_TARGET): Define.
20105 * config/aarch64/aarch64.c: Include target-globals.h
20106 (aarch64_previous_fndecl): New variable.
20107 (aarch64_set_current_function): New function.
20108 (TARGET_SET_CURRENT_FUNCTION): Define.
20110 2015-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
20112 * config/aarch64/aarch64.opt (explicit_tune_core): New TargetVariable.
20113 (explicit_arch): Likewise.
20114 (x_aarch64_isa_flags): Likewise.
20115 (mgeneral-regs-only): Mark as Save.
20116 (mfix-cortex-a53-835769): Likewise.
20117 (mcmodel=): Likewise.
20118 (mstrict-align): Likewise.
20119 (momit-leaf-frame-pointer): Likewise.
20120 (mtls-dialect): Likewise.
20121 (master=): Likewise.
20122 * config/aarch64/aarch64.h (ASM_DECLARE_FUNCTION_NAME): Define.
20123 (aarch64_isa_flags): Remove extern declaration.
20124 * config/aarch64/aarch64.c (aarch64_validate_mcpu): Return a bool
20125 to indicate success or failure.
20126 (aarch64_validate_march): Likewise.
20127 (aarch64_validate_mtune): Likewise.
20128 (aarch64_isa_flags): Delete.
20129 (aarch64_override_options_internal): Access opts->x_aarch64_isa_flags
20130 instead of aarch64_isa_flags.
20131 (aarch64_get_tune_cpu): New function.
20132 (aarch64_get_arch): Likewise.
20133 (aarch64_override_options): Use above and set up explicit_tune_core
20135 (aarch64_print_extension): Move earlier in file. Add isa_flags
20136 argument and use that instead of the global aarch64_isa_flags.
20137 (aarch64_option_save): New function.
20138 (aarch64_option_restore): Likewise.
20139 (aarch64_option_print): Likewise.
20140 (aarch64_declare_function_name): Likewise.
20141 (aarch64_start_file): Delete.
20142 (TARGET_ASM_FILE_START): Do not define.
20143 (TARGET_OPTION_RESTORE, TARGET_OPTION_PRINT): Define.
20144 * config/aarch64/aarch64-protos.h (aarch64_declare_function_name):
20147 2015-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
20149 * config/aarch64/aarch64.opt (momit-leaf-frame-pointer): Initialize
20150 flag_omit_leaf_frame_pointer to 2.
20152 2015-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
20154 * config/aarch64/aarch64.h (TARGET_FIX_ERR_A53_835769_DEFAULT): Always
20156 (TARGET_FIX_ERR_A53_835769): New macro.
20157 * config/aarch64/aarch64.c (aarch64_override_options_internal): Remove
20158 handling of opts->x_aarch64_fix_a53_err835769.
20159 (aarch64_madd_needs_nop): Check for TARGET_FIX_ERR_A53_835769 rather
20160 than aarch64_fix_a53_err835769.
20161 * config/aarch64/aarch64-elf-raw.h: Update for above changes.
20162 * config/aarch64/aarch64-linux.h: Likewise.
20164 2015-08-04 Uros Bizjak <ubizjak@gmail.com>
20166 * config/i386/i386.c (ix86_expand_int_movcc): Check result of
20167 ix86_expand_int_movcc as boolean.
20169 2015-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
20171 * config/aarch64/aarch64.opt (aarch64_arch_string): Delete.
20172 (aarch64_cpu_string): Likewise.
20173 (aarch64_tune_string): Likewise.
20174 * config/aarch64/aarch64.c (aarch64_parse_opt_result): New enum.
20175 (aarch64_parse_extension): Return aarch64_parse_opt_result.
20176 Add extra argument to put result into.
20177 (aarch64_parse_arch): Likewise. Do not set selected_cpu.
20178 (aarch64_parse_cpu): Add arguments to put results into. Return
20179 aarch64_parse_opt_result.
20180 (aarch64_parse_tune): Likewise.
20181 (aarch64_override_options_after_change_1): New function.
20182 (aarch64_override_options_internal): New function.
20183 (aarch64_validate_mcpu): Likewise.
20184 (aarch64_validate_march): Likewise.
20185 (aarch64_validate_mtune): Likewise.
20186 (aarch64_override_options): Update to reflect above changes.
20187 Move some logic into aarch64_override_options_internal.
20188 Initialize target_option_default_node and target_option_current_node.
20189 (aarch64_override_options_after_change): Move logic into
20190 aarch64_override_options_after_change_1 and call it with global_options.
20191 (initialize_aarch64_code_model): Take a gcc_options pointer and use the
20192 flag values from that.
20194 2015-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
20196 * config/aarch64/aarch64.h (TARGET_CPU_CPP_BUILTINS): Define
20197 __ARM_ARCH_8A directly rather than with cpp_define_formatted.
20198 * config/aarch64/aarch64.c (struct processor): Add arch field.
20199 (all_architectures): Handle above, move above all_cores.
20200 (all_cores): Handle above.
20201 (aarch64_parse_arch): Handle above changes.
20202 * config/aarch64/aarch64-arches.def (armv8-a): Extend according to
20203 above. Update comments.
20204 (armv8.1-a): Likewise.
20205 * config/aarch64/aarch64-cores.def: Update according to above.
20206 * config/aarch64/aarch64-opts.h (aarch64_arch): New enum.
20207 * config/aarch64/driver-aarch64.c (struct aarch64_arch): Rename to
20208 aarch64_arch_driver_info.
20210 2015-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
20212 * config/aarch64/aarch64.c (struct processor): Add ident field.
20213 Rename core sched_core.
20214 (all_cores): Handle above changes.
20215 (all_architectures): Likewise.
20216 (aarch64_parse_arch): Likewise.
20217 (aarch64_override_options): Likewise.
20219 2015-08-04 Richard Biener <rguenther@suse.de>
20221 * gimple-fold.c (gimple_fold_stmt_to_constant_1): Remove
20222 dispatching to fold_binary for GIMPLE_BINARY_RHS and for
20223 comparisons embedded in [VEC_]COND_EXPRs.
20225 2015-08-03 Abe Skolnik <a.skolnik@samsung.com>
20227 * tree-if-conv.c: Fix various typos in comments.
20228 * tree-vect-stmts.c: Likewise.
20230 2015-08-04 Thomas Preud'homme <thomas.preudhomme@arm.com>
20232 PR tree-optimization/67043
20233 * loop-invariant.c (move_invariant_reg): Recompute luids in loop
20234 preheader after hoisting invariant in it.
20235 (find_defs): Force recomputation of all luids.
20237 2015-08-03 Peter Bergner <bergner@vnet.ibm.com>
20239 * config/rs6000/htm.md (tabort.): Restrict the source operand to
20240 using a base register.
20242 2015-08-03 David Malcolm <dmalcolm@redhat.com>
20244 * main.c (main): Pass in NULL for toplev's external_timer.
20245 * timevar.c: Include coretypes.h.
20246 (class timer::named_items): New.
20247 (timer::named_items::named_items): New.
20248 (timer::named_items::~named_items): New.
20249 (timer::named_items::push): New.
20250 (timer::named_items::pop): New.
20251 (timer::named_items::print): New.
20252 (timer::timer): Initialize field "m_jit_client_items".
20253 (timer::~timer): New.
20254 (timer::push): Move bulk of implementation to...
20255 (timer::push_internal): ...here. New function.
20256 (timer::pop): Move bulk of implementation to...
20257 (timer::pop_internal): ...here. New function.
20258 (timer::push_client_item): New.
20259 (timer::pop_client_item): New.
20260 (timer::print_row): New function, taken from timer::print.
20261 (timer::print): Print "GCC items" header if we also have client
20262 items. Move row-printing to timer::print_row. Print any client
20264 (timer::get_topmost_item_name): New method.
20265 * timevar.def (TV_JIT_ACQUIRING_MUTEX): New.
20266 (TV_JIT_CLIENT_CODE): New.
20267 * timevar.h (timer::push_client_item): New declaration.
20268 (timer::pop_client_item): New declaration.
20269 (timer::get_topmost_item_name): New method.
20270 (timer::push_internal): New declaration.
20271 (timer::pop_internal): New declaration.
20272 (timer::print_row): New declaration.
20273 (timer::named_items): New declaration.
20274 (timer::m_jit_client_items): New field.
20275 (timer): Add friend class named_items.
20276 (auto_timevar::auto_timevar): Add timer param.
20277 (auto_timevar::~auto_timevar): Use field "m_timer".
20278 (auto_timevar::m_timer): New field.
20279 * toplev.c (initialize_rtl): Add g_timer as param when
20280 constructing auto_timevar instance.
20281 (toplev::toplev): Add "external_timer" param, and use it to
20282 initialize the "g_timer" global if non-NULL.
20283 (toplev::~toplev): If this created "g_timer", delete it.
20284 * toplev.h (toplev::toplev): Replace "use_TV_TOTAL" bool param
20285 with "external_timer" timer *.
20287 2015-08-03 Alexander Basov <coohpt@gmail.com>
20289 PR middle-end/64744
20290 PR middle-end/48470
20291 PR middle-end/43404
20292 * cfgexpand.c (expand_one_var): Add check if stack is going to
20293 be used in naked function.
20294 * expr.c (expand_expr_addr_expr_1): Remove excess checking
20295 whether expression should not reside in MEM.
20296 * function.c (use_register_for_decl): Do not use registers for
20297 non-register things (volatile, float, BLKMode) in naked functions.
20299 2015-08-03 John David Anglin <danglin@gcc.gnu.org>
20302 * config/pa/pa.md (call_reg_64bit): Remove reg:DI 1 clobber.
20303 Adjust splits to match new pattern.
20305 2015-08-03 Michael Meissner <meissner@linux.vnet.ibm.com>
20307 * config/rs6000/vector.md (VEC_L): Add KFmode and TFmode.
20310 (mov<mode>, VEC_M iterator): Add support for IEEE 128-bit floating
20311 point in VSX registers.
20313 * config/rs6000/constraints.md (wb constraint): Document unused
20315 (we constraint): Likewise.
20316 (wo constraint): Likewise.
20317 (wp constraint): New constraint for IEEE 128-bit floating point in
20319 (wq constraint): Likewise.
20321 * config/rs6000/predicates.md (easy_fp_constant): Add support for
20322 IEEE 128-bit floating point in VSX registers.
20323 (easy_scalar_constant): Likewise.
20325 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Add new
20326 constraints (wp, wq) for IEEE 128-bit floating point in VSX
20328 (rs6000_init_hard_regno_mode_ok): Likewise.
20330 * config/rs6000/vsx.md (VSX_LE_128): Add support for IEEE 128-bit
20331 floating point in VSX registers.
20334 (VSX_M2): Likewise.
20340 (vsx_le_permute_<mode>): Add support to properly swap bytes for
20341 IEEE 128-bit floating point in VSX registers on little endian.
20342 (vsx_le_undo_permute_<mode>): Likewise.
20343 (vsx_le_perm_load_<mode>): Likewise.
20344 (vsx_le_perm_store_<mode>): Likewise.
20345 (splitters for IEEE 128-bit fp moves): Likewise.
20347 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Add wp and
20350 * config/rs6000/altivec.md (VM): Add support for IEEE 128-bit
20351 floating point in VSX registers.
20354 * doc/md.text (Machine Constraints): Document wp and wq
20355 constraints on PowerPC.
20357 2015-08-03 Jeff Law <law@redhat.com>
20359 PR middle-end/66314
20360 PR gcov-profile/66899
20361 * tree-ssa-threadupdate.c (mark_threaded_blocks): Correctly
20362 iterate over the jump threading paths when an element in the
20363 jump threading paths array is eliminated.
20365 2015-08-03 Segher Boessenkool <segher@kernel.crashing.org>
20367 * Makefile.in (OBJS): Put gimple-match.o and generic-match.o first.
20369 2015-08-03 Patrick Palka <ppalka@gcc.gnu.org>
20371 * tree-ssa-uninit.c (find_uninit_use): Declare and pass to
20372 is_use_properly_guarded the variable def_preds. Free its
20373 contents before returning.
20374 (prune_uninit_phi_opnds_in_unrealizable_paths): Same.
20375 (is_use_properly_guarded): Replace local variable def_preds with
20376 a parameter. Adjust accordingly. Only update *def_preds if it's
20379 2015-08-03 Richard Biener <rguenther@suse.de>
20381 * genmatch.c (simplify::for_subst_vec): New member.
20382 (binary_ok): New helper for for lowering.
20383 (lower_for): Delay substituting operators into result expressions
20384 if we can merge the results eventually again.
20385 (capture_info::walk_result): Adjust for user_id appearing as
20386 result expression operator.
20387 (expr::gen_transform): Likewise.
20388 (dt_simplify::gen_1): Likewise.
20389 (dt_simplify::gen): Pass not substituted operators to tail
20390 functions or initialize local variable with it.
20391 (decision_tree::gen): Adjust function signature.
20392 * match.pd: Fix tests against global code and add default
20393 cases to switch stmts.
20395 2015-08-03 Richard Biener <rguenther@suse.de>
20397 * genmatch.c (dt_simplify::gen): Create captures array
20398 with an initializer.
20400 2015-08-03 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
20402 * configure.ac: Set aliasing_flags to -fno-strict-aliasing if
20403 the host compiler is affected by placement new aliasing bug.
20404 * configure: Regenerate.
20405 * Makefile.in (ALIASING_FLAGS): New variable.
20406 (ALL_CXXFLAGS): Add $(ALIASING_FLAGS).
20408 2015-08-03 Szabolcs Nagy <szabolcs.nagy@arm.com>
20411 * config/arm/vfp.md (negmuldf3_vfp): Add new pattern.
20412 (negmulsf3_vfp): Likewise.
20413 (muldf3negdf_vfp): Disable for -frounding-math.
20414 (mulsf3negsf_vfp): Likewise.
20415 * config/arm/arm.c (arm_new_rtx_costs): Fix NEG cost for VNMUL,
20416 fix MULT cost with -frounding-math.
20418 2015-08-03 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
20420 * ifcvt.c (noce_try_store_flag_constants): Make logic of the case
20421 when diff == STORE_FLAG_VALUE or diff == -STORE_FLAG_VALUE more
20422 explicit. Prefer to add the flag whenever possible.
20423 (noce_process_if_block): Try noce_try_store_flag_constants before
20426 2015-08-03 Richard Biener <rguenther@suse.de>
20428 * genmatch.c (struct sinfo, struct sinfo_hashmap_traits, sinfo_map_t):
20429 New hash-map to record equivalent transforms.
20430 (dt_node::analyze): Populate the equivalent transforms hash-map.
20431 (dt_simplify::info): Add reference to hash-map entry.
20432 (dt_simplify::gen): If we have split out a function for the
20433 transform, generate a call to it.
20434 (sinfo_hashmap_traits::hash): New function.
20435 (compare_op): New helper function for ...
20436 (sinfo_hashmap_traits::equal_keys): ... this new function.
20437 (decision_tree::gen): Split out common equivalent transforms
20440 2015-08-03 Richard Biener <rguenther@suse.de>
20442 * gimple-fold.c (fold_gimple_assign): Remove folding of
20443 the comparison in COND_EXPRs.
20445 2015-08-03 Richard Biener <rguenther@suse.de>
20447 * gimple-match-head.c (gimple_simplify): For [VEC_]COND_EXPRs
20448 on the rhs of assignments first simplify the embedded
20451 2015-08-03 Richard Biener <rguenther@suse.de>
20453 PR tree-optimization/66917
20454 * tree-vectorizer.h (struct dataref_aux): Add base_element_aligned
20456 (DR_VECT_AUX): New macro.
20457 (set_dr_misalignment): Adjust.
20458 (dr_misalignment): Likewise.
20459 * tree-vect-data-refs.c (vect_compute_data_ref_alignment):
20460 Compute whether the base is at least element aligned.
20461 * tree-vect-stmts.c (ensure_base_align): Adjust.
20462 (vectorizable_store): If the base is not element aligned
20463 preserve alignment of the original access if misalignment is unknown.
20464 (vectorizable_load): Likewise.
20466 2015-08-02 Martin Sebor <msebor@redhat.com>
20468 * doc/invoke.texi (Wframe-address): Document it.
20469 * doc/extend.texi (__builtin_frame_address, __builtin_return_address):
20470 Clarify possible effects of calling the functions with non-zero
20471 arguments and mention -Wframe-address.
20472 * builtins.c (expand_builtin_frame_address): Handle -Wframe-address.
20474 2015-08-01 Michael Collison <michael.collison@linaro.org
20475 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
20477 * config/arm/arm.md (*arm_smin_cmp): New pattern.
20478 (*arm_umin_cmp): Likewise.
20480 2015-08-01 Caroline Tice <cmtice@google.com>
20483 * vtable-verify.c (vtbl_mangled_name_types, vtbl_mangled_name_ids): New
20485 (vtbl_find_mangled_name): New function.
20486 (vtbl_register_mangled_name): New function.
20487 (vtbl_map_get_node): If DECL_ASSEMBLER_NAME is "<anon>", look up
20488 mangled name in mangled name vectors.
20489 (find_or_create_vtbl_map_node): Ditto.
20490 (var_is_used_for_virtual_call_p): Add recursion_depth parameter;
20491 update recursion_depth on function entry; pass it to every recursive
20492 call; automatically exit if depth > 25 (give up looking at that point).
20493 (verify_bb_vtables): Initialize recursion_depth and pass it to
20494 var_is_used_for_virtual_call_p.
20495 * vtable-verify.h (vtbl_mangbled_name_types, vtbl_mangled_name_ids): New
20496 global variable decls.
20497 (vtbl_register_mangled_name): New extern function decl.
20499 2015-08-01 Tom de Vries <tom@codesourcery.com>
20501 * tree.c (operation_can_overflow, operation_no_trapping_overflow): New
20503 * tree.h (operation_can_overflow, operation_no_trapping_overflow):
20505 * tree-vect-loop.c (vect_is_simple_reduction_1): Use
20506 operation_no_trapping_overflow. Allow non-overflow operations.
20507 * graphite-sese-to-poly.c (is_reduction_operation_p): Allow non-overflow
20510 2015-07-31 Kaz Kojima <kkojima@gcc.gnu.org>
20513 * config/sh/sh.md (GOTaddr2picreg): Fix typo.
20515 2015-07-31 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
20517 * config/arm/arm.md (*if_neg_move): Convert to insn_and_split.
20518 Enable for TARGET_32BIT.
20519 (*if_move_neg): Likewise.
20521 2015-07-31 Nick Clifton <nickc@redhat.com>
20523 * config/m32r/m32r.c (m32r_attribute_identifier): New function.
20524 Returns true for __model__.
20525 (TARGET_ATTRIBUTE_TAKES_IDENTIFIER_P): Define.
20527 2015-07-31 Alan Modra <amodra@gmail.com>
20530 * config/rs6000/rs6000.c (machine_function): Add split_stack_argp_used.
20531 (rs6000_emit_prologue): Set it.
20532 (rs6000_set_up_by_prologue): Specify r12 when split_stack_argp_used.
20534 2015-07-31 Richard Biener <rguenther@suse.de>
20536 * fold-const.c (fold_binary_loc): Remove X ^ C1 == C2
20537 -> X == (C1 ^ C2) which is already implemented in match.pd.
20538 Remove redundant dispatching to fold_relational_const.
20539 Move unordered self and NaN compares ...
20540 * match.pd: ... as patterns here. Remove some stray captures
20543 2015-07-31 Petr Murzin <petr.murzin@intel.com>
20545 * config/i386/i386.c
20546 (bdesc_special_args): Convert mask type from signed to unsigned for
20548 (ix86_expand_args_builtin): Do not handle UINT_FTYPE_V2DF,
20549 UINT64_FTYPE_V2DF, UINT64_FTYPE_V4SF, V16QI_FTYPE_V8DI,
20550 V16HI_FTYPE_V16SI, V16SI_FTYPE_V16SI, V16SF_FTYPE_FLOAT,
20551 V8HI_FTYPE_V8DI, V8UHI_FTYPE_V8UHI, V8SI_FTYPE_V8DI, V8SF_FTYPE_V8DF,
20552 V8DI_FTYPE_INT64, V8DI_FTYPE_V4DI, V8DI_FTYPE_V8DI, V8DF_FTYPE_DOUBLE,
20553 V8DF_FTYPE_V8SI, V16SI_FTYPE_V16SI_V16SI, V16SF_FTYPE_V16SF_V16SI,
20554 V8DI_FTYPE_V8DI_V8DI, V8DF_FTYPE_V8DF_V8DI, V4SI_FTYPE_V4SF_V4SF,
20555 V4SF_FTYPE_V4SF_UINT64, V2UDI_FTYPE_V4USI_V4USI, V2DI_FTYPE_V2DF_V2DF,
20556 V2DF_FTYPE_V2DF_UINT64, V4UDI_FTYPE_V8USI_V8USI, QI_FTYPE_V8DI_V8DI,
20557 HI_FTYPE_V16SI_V16SI, HI_FTYPE_HI_INT, V16SF_FTYPE_V16SF_V16SF_V16SF,
20558 V16SF_FTYPE_V16SF_V16SI_V16SF, V16SF_FTYPE_V16SI_V16SF_HI,
20559 V16SF_FTYPE_V16SI_V16SF_V16SF, V16SI_FTYPE_V16SF_V16SI_HI,
20560 V8DI_FTYPE_V8SF_V8DI_QI, V8SF_FTYPE_V8DI_V8SF_QI, V8DI_FTYPE_PV4DI,
20561 V8DF_FTYPE_V8DI_V8DF_QI, V16SI_FTYPE_V16SI_V16SI_V16SI,
20562 V2DI_FTYPE_V2DI_V2DI_V2DI, V8DI_FTYPE_V8DF_V8DI_QI, V8DF_FTYPE_PV4DF,
20563 V8SI_FTYPE_V8SI_V8SI_V8SI, V8DF_FTYPE_V8DF_V8DF_V8DF, UINT_FTYPE_V4SF,
20564 V8DF_FTYPE_V8DF_V8DI_V8DF, V8DF_FTYPE_V8DI_V8DF_V8DF,
20565 V8DF_FTYPE_V8SF_V8DF_QI, V8DI_FTYPE_V8DI_V8DI_V8DI, V16SF_FTYPE_PV4SF,
20566 V8SF_FTYPE_V8DF_V8SF_QI, V8SI_FTYPE_V8DF_V8SI_QI, V16SI_FTYPE_PV4SI,
20567 V2DF_FTYPE_V2DF_V4SF_V2DF_QI, V4SF_FTYPE_V4SF_V2DF_V4SF_QI,
20568 V8DI_FTYPE_V8DI_SI_V8DI_V8DI, QI_FTYPE_V8DF_V8DF_INT_QI,
20569 HI_FTYPE_V16SF_V16SF_INT_HI, V16SF_FTYPE_V16SF_V16SF_V16SI_INT_HI,
20570 VOID_FTYPE_PDOUBLE_V2DF_QI, VOID_FTYPE_PFLOAT_V4SF_QI,
20571 V2DF_FTYPE_PCDOUBLE_V2DF_QI, V4SF_FTYPE_PCFLOAT_V4SF_QI.
20572 * config/i386/i386-builtin-types.def
20573 (V16QI_FTYPE_V16SI): Remove.
20574 (V8DF_FTYPE_V8SI): Ditto.
20575 (V8HI_FTYPE_V8DI): Ditto.
20576 (V8SI_FTYPE_V8DI): Ditto.
20577 (V8SF_FTYPE_V8DF): Ditto.
20578 (V8SF_FTYPE_V8DF_V8SF_QI): Ditto.
20579 (V16HI_FTYPE_V16SI): Ditto.
20580 (V16SF_FTYPE_V16HI): Ditto.
20581 (V16SF_FTYPE_V16HI_V16SF_HI): Ditto.
20582 (V16SF_FTYPE_V16SI): Ditto.
20583 (V4DI_FTYPE_V4DI): Ditto.
20584 (V16SI_FTYPE_V16SF): Ditto.
20585 (V16SF_FTYPE_FLOAT): Ditto.
20586 (V8DF_FTYPE_DOUBLE): Ditto.
20587 (V8DI_FTYPE_INT64): Ditto.
20588 (V8DI_FTYPE_V4DI): Ditto.
20589 (V16QI_FTYPE_V8DI): Ditto.
20590 (UINT_FTYPE_V4SF): Ditto.
20591 (UINT64_FTYPE_V4SF): Ditto.
20592 (UINT_FTYPE_V2DF): Ditto.
20593 (UINT64_FTYPE_V2DF): Ditto.
20594 (V16SI_FTYPE_V16SI): Ditto.
20595 (V8DI_FTYPE_V8DI): Ditto.
20596 (V16SI_FTYPE_PV4SI): Ditto.
20597 (V16SF_FTYPE_PV4SF): Ditto.
20598 (V8DI_FTYPE_PV2DI): Ditto.
20599 (V8DF_FTYPE_PV2DF): Ditto.
20600 (V4DI_FTYPE_PV2DI): Ditto.
20601 (V4DF_FTYPE_PV2DF): Ditto.
20602 (V16SI_FTYPE_PV2SI): Ditto.
20603 (V16SF_FTYPE_PV2SF): Ditto.
20604 (V8DI_FTYPE_PV4DI): Ditto.
20605 (V8DF_FTYPE_PV4DF): Ditto.
20606 (V8SF_FTYPE_FLOAT): Ditto.
20607 (V4SF_FTYPE_FLOAT): Ditto.
20608 (V4DF_FTYPE_DOUBLE): Ditto.
20609 (V8SF_FTYPE_PV4SF): Ditto.
20610 (V8SI_FTYPE_PV4SI): Ditto.
20611 (V4SI_FTYPE_PV2SI): Ditto.
20612 (V8SF_FTYPE_PV2SF): Ditto.
20613 (V8SI_FTYPE_PV2SI): Ditto.
20614 (V16SF_FTYPE_PV8SF): Ditto.
20615 (V16SI_FTYPE_PV8SI): Ditto.
20616 (V8DI_FTYPE_V8SF): Ditto.
20617 (V4DI_FTYPE_V4SF): Ditto.
20618 (V2DI_FTYPE_V4SF): Ditto.
20619 (V64QI_FTYPE_QI): Ditto.
20620 (V32HI_FTYPE_HI): Ditto.
20621 (V8UHI_FTYPE_V8UHI): Ditto.
20622 (V16UHI_FTYPE_V16UHI): Ditto.
20623 (V32UHI_FTYPE_V32UHI): Ditto.
20624 (V2UDI_FTYPE_V2UDI): Ditto.
20625 (V4UDI_FTYPE_V4UDI): Ditto.
20626 (V8UDI_FTYPE_V8UDI): Ditto.
20627 (V4USI_FTYPE_V4USI): Ditto.
20628 (V8USI_FTYPE_V8USI): Ditto.
20629 (V16USI_FTYPE_V16USI): Ditto.
20630 (V2DF_FTYPE_V2DF_UINT64): Ditto.
20631 (V2DI_FTYPE_V2DF_V2DF): Ditto.
20632 (V2UDI_FTYPE_V4USI_V4USI): Ditto.
20633 (V8DF_FTYPE_V8DF_V8DI): Ditto.
20634 (V4SF_FTYPE_V4SF_UINT64): Ditto.
20635 (V4SI_FTYPE_V4SF_V4SF): Ditto.
20636 (V16SF_FTYPE_V16SF_V16SI): Ditto.
20637 (V64QI_FTYPE_V32HI_V32HI): Ditto.
20638 (V32HI_FTYPE_V16SI_V16SI): Ditto.
20639 (V8DF_FTYPE_V8DF_V8DF_V8DI_INT_QI): Ditto.
20640 (V16SF_FTYPE_V16SF_V16SF_V16SI_INT_HI): Ditto.
20641 (V32HI_FTYPE_V64QI_V64QI): Ditto.
20642 (V32HI_FTYPE_V32HI_V32HI): Ditto.
20643 (V16HI_FTYPE_V16HI_V16HI_INT_V16HI_HI): Ditto.
20644 (V16SI_FTYPE_V16SI_V4SI): Ditto.
20645 (V16SI_FTYPE_V16SI_V16SI): Ditto.
20646 (V16SI_FTYPE_V32HI_V32HI): Ditto.
20647 (V16SI_FTYPE_V16SI_SI): Ditto.
20648 (V8DI_FTYPE_V8DI_V8DI): Ditto.
20649 (V4UDI_FTYPE_V8USI_V8USI): Ditto.
20650 (V8DI_FTYPE_V16SI_V16SI): Ditto.
20651 (V8DI_FTYPE_V8DI_V2DI): Ditto.
20652 (QI_FTYPE_QI): Ditto.
20653 (SI_FTYPE_SI): Ditto.
20654 (DI_FTYPE_DI): Ditto.
20655 (QI_FTYPE_QI_QI): Ditto.
20656 (QI_FTYPE_QI_INT): Ditto.
20657 (HI_FTYPE_HI_INT): Ditto.
20658 (SI_FTYPE_SI_INT): Ditto.
20659 (DI_FTYPE_DI_INT): Ditto.
20660 (HI_FTYPE_V16QI_V16QI): Ditto.
20661 (SI_FTYPE_V32QI_V32QI): Ditto.
20662 (DI_FTYPE_V64QI_V64QI): Ditto.
20663 (QI_FTYPE_V8HI_V8HI): Ditto.
20664 (HI_FTYPE_V16HI_V16HI): Ditto.
20665 (SI_FTYPE_V32HI_V32HI): Ditto.
20666 (QI_FTYPE_V4SI_V4SI): Ditto.
20667 (QI_FTYPE_V8SI_V8SI): Ditto.
20668 (QI_FTYPE_V2DI_V2DI): Ditto.
20669 (QI_FTYPE_V4DI_V4DI): Ditto.
20670 (QI_FTYPE_V8DI_V8DI): Ditto.
20671 (HI_FTYPE_V16SI_V16SI): Ditto.
20672 (HI_FTYPE_V16SI_V16SI_INT_HI): Ditto.
20673 (QI_FTYPE_V8DF_V8DF_INT_QI): Ditto.
20674 (HI_FTYPE_V16SF_V16SF_INT_HI): Ditto.
20675 (V32HI_FTYPE_V32HI_V32HI_V32HI): Ditto.
20676 (V4SF_FTYPE_V4SF_V2DF_V4SF_QI): Ditto.
20677 (V8DF_FTYPE_V8DF_V8DF_V8DF): Ditto.
20678 (V16SF_FTYPE_V16SF_V16SF_V16SF): Ditto.
20679 (V8DF_FTYPE_V8SF_V8DF_QI): Ditto.
20680 (V8DI_FTYPE_V8DF_V8DI_QI): Ditto.
20681 (V8DF_FTYPE_V8DI_V8DF_V8DF): Ditto.
20682 (V2DF_FTYPE_V2DF_V4SF_V2DF_QI): Ditto.
20683 (V16SF_FTYPE_V16SI_V16SF_HI): Ditto.
20684 (V16SF_FTYPE_V16SI_V16SF_V16SF): Ditto.
20685 (V8SI_FTYPE_V8DF_V8SI_QI): Ditto.
20686 (V8DI_FTYPE_PCCHAR_V8DI_QI): Ditto.
20687 (V8SF_FTYPE_PCFLOAT_V8SF_QI): Ditto.
20688 (V4SF_FTYPE_PCFLOAT_V4SF_QI): Ditto.
20689 (V4DF_FTYPE_PCDOUBLE_V4DF_QI): Ditto.
20690 (V2DF_FTYPE_PCDOUBLE_V2DF_QI): Ditto.
20691 (V8SI_FTYPE_PCCHAR_V8SI_QI): Ditto.
20692 (V4SI_FTYPE_PCCHAR_V4SI_QI): Ditto.
20693 (V4DI_FTYPE_PCCHAR_V4DI_QI): Ditto.
20694 (V2DI_FTYPE_PCCHAR_V2DI_QI): Ditto.
20695 (V16SF_FTYPE_PCV8SF_V16SF_HI): Ditto.
20696 (V16SI_FTYPE_PCV8SI_V16SI_HI): Ditto.
20697 (V8DF_FTYPE_PCV2DF_V8DF_QI): Ditto.
20698 (V8SF_FTYPE_PCV4SF_V8SF_QI): Ditto.
20699 (V8DI_FTYPE_PCV2DI_V8DI_QI): Ditto.
20700 (V8SI_FTYPE_PCV4SI_V8SI_QI): Ditto.
20701 (V4DF_FTYPE_PCV2DF_V4DF_QI): Ditto.
20702 (V4DI_FTYPE_PCV2DI_V4DI_QI): Ditto.
20703 (VOID_FTYPE_PDOUBLE_V2DF_QI): Ditto.
20704 (VOID_FTYPE_PFLOAT_V4SF_QI): Ditto.
20705 (V16SI_FTYPE_V16SF_V16SI_HI): Ditto.
20706 (V8DI_FTYPE_V8SF_V8DI_QI): Ditto.
20707 (V8SF_FTYPE_V8DI_V8SF_QI): Ditto.
20708 (V8DF_FTYPE_V8DI_V8DF_QI): Ditto.
20709 (V2DF_FTYPE_V2DF_V2DF_V2DI): Ditto.
20710 (V4SF_FTYPE_V4SF_V4SF_V4SI): Ditto.
20711 (V2UDI_FTYPE_V2UDI_V2UDI_V2UDI): Ditto.
20712 (V4USI_FTYPE_V4USI_V4USI_V4USI): Ditto.
20713 (V8UHI_FTYPE_V8UHI_V8UHI_V8UHI): Ditto.
20714 (V16UQI_FTYPE_V16UQI_V16UQI_V16UQI): Ditto.
20715 (V4DF_FTYPE_V4DF_V4DF_V4DI): Ditto.
20716 (V8SF_FTYPE_V8SF_V8SF_V8SI): Ditto.
20717 (V8DI_FTYPE_V8DI_V8DI_V8DI): Ditto.
20718 (V16SI_FTYPE_V16SI_V16SI_V16SI): Ditto.
20719 (V2DF_FTYPE_V2DF_V2DI_V2DF): Ditto.
20720 (V4DF_FTYPE_V4DF_V4DI_V4DF): Ditto.
20721 (V8DF_FTYPE_V8DF_V8DI_V8DF): Ditto.
20722 (V4SF_FTYPE_V4SF_V4SI_V4SF): Ditto.
20723 (V8SF_FTYPE_V8SF_V8SI_V8SF): Ditto.
20724 (V16SF_FTYPE_V16SF_V16SI_V16SF): Ditto.
20725 (V8DI_FTYPE_V8DI_SI_V8DI_V8DI): Ditto.
20726 (PVOID_FTYPE_PVOID_PVOID_ULONG): Ditto.
20727 (V4SF_FTYPE_V2DF_V4SF_QI): Convert mask type from signed to unsigned.
20728 (V4SF_FTYPE_V4DF_V4SF_QI): Ditto.
20729 (V4SF_FTYPE_V8HI_V4SF_QI): Ditto.
20730 (V8SF_FTYPE_V8HI_V8SF_QI): Ditto.
20731 (V16SI_FTYPE_V16SI_V16SI_HI): Ditto.
20732 (V8DI_FTYPE_V8DI_V8DI_QI): Ditto.
20733 (V2DF_FTYPE_V4DF_INT_V2DF_QI): Ditto.
20734 (V2DF_FTYPE_V8DF_INT_V2DF_QI): Ditto.
20735 (V2DI_FTYPE_V2DI_INT_V2DI_QI): Ditto.
20736 (V4DF_FTYPE_V8DF_INT_V4DF_QI): Ditto.
20737 (V4SF_FTYPE_V8SF_INT_V4SF_QI): Ditto.
20738 (V4SI_FTYPE_V2DF_V4SI_QI): Ditto.
20739 (V4SI_FTYPE_V4SI_INT_V4SI_QI): Ditto.
20740 (V4SI_FTYPE_V8HI_V8HI_V4SI_QI): Ditto.
20741 (V4SI_FTYPE_V8SI_INT_V4SI_QI): Ditto.
20742 (V8HI_FTYPE_V16QI_V16QI_V8HI_QI): Ditto.
20743 (V8HI_FTYPE_V8SF_INT_V8HI_QI): Ditto.
20744 (V8HI_FTYPE_V4SF_INT_V8HI_QI): Ditto.
20745 (V8SF_FTYPE_V16SF_INT_V8SF_QI): Ditto.
20746 (V4SF_FTYPE_V16SF_INT_V4SF_QI): Ditto.
20747 (V8DF_FTYPE_V8DF_V2DF_INT_V8DF_QI): Ditto.
20748 (V8DF_FTYPE_V8DF_V4DF_INT_V8DF_QI): Ditto.
20749 (V8DF_FTYPE_V8DF_V8DF_INT_V8DF_QI): Ditto.
20750 (V8DF_FTYPE_V8DF_INT_V8DF_QI): Ditto.
20751 (V4DF_FTYPE_V4DF_V4DF_V4DI_INT_QI): Ditto.
20752 (V2DF_FTYPE_V2DF_V2DF_V2DI_INT_QI): Ditto.
20753 (V16SF_FTYPE_V16SF_V16SF_INT_V16SF_HI): Ditto.
20754 (V16SF_FTYPE_V16SF_INT_V16SF_HI): Ditto.
20755 (V16SI_FTYPE_V16SI_V4SI_INT_V16SI_HI): Ditto.
20756 (V8SF_FTYPE_V8SF_V8SF_V8SI_INT_QI): Ditto.
20757 (V4SF_FTYPE_V4SF_V4SF_V4SI_INT_QI): Ditto.
20758 (V16SF_FTYPE_V16SF_V4SF_INT_V16SF_HI): Ditto.
20759 (V16SF_FTYPE_V16SF_V8SF_INT_V16SF_HI): Ditto.
20760 (V16HI_FTYPE_V32QI_V32QI_V16HI_HI): Ditto.
20761 (V32HI_FTYPE_V64QI_V64QI_V32HI_SI): Ditto.
20762 (V16HI_FTYPE_V16SF_INT_V16HI_HI): Ditto.
20763 (V16SI_FTYPE_V16SI_V8SI_INT_V16SI_HI): Ditto.
20764 (V4SI_FTYPE_V16SI_INT_V4SI_QI): Ditto.
20765 (V16SI_FTYPE_V16SI_V16SI_INT_V16SI_HI): Ditto.
20766 (V8SI_FTYPE_V16HI_V16HI_V8SI_QI): Ditto.
20767 (V16SI_FTYPE_V32HI_V32HI_V16SI_HI): Ditto.
20768 (V8SI_FTYPE_V8SI_INT_V8SI_QI): Ditto.
20769 (V8SI_FTYPE_V16SI_INT_V8SI_QI): Ditto.
20770 (V16SI_FTYPE_V16SI_V4SI_V16SI_HI): Ditto.
20771 (V16SI_FTYPE_V16SI_INT_V16SI_HI): Ditto.
20772 (V8DI_FTYPE_V8DI_V8DI_INT_V8DI_QI): Ditto.
20773 (V8DI_FTYPE_V8DI_V8DI_INT_V8DI_DI): Ditto.
20774 (V4DI_FTYPE_V4DI_V4DI_INT_V4DI_SI): Ditto.
20775 (V2DI_FTYPE_V2DI_V2DI_INT_V2DI_HI): Ditto.
20776 (V8DI_FTYPE_V8DI_V2DI_INT_V8DI_QI): Ditto.
20777 (V8DI_FTYPE_V8DI_V4DI_INT_V8DI_QI): Ditto.
20778 (V4DI_FTYPE_V8DI_INT_V4DI_QI): Ditto.
20779 (V8DI_FTYPE_V8DI_V2DI_V8DI_QI): Ditto.
20780 (V8DI_FTYPE_V8DI_INT_V8DI_QI): Ditto.
20781 (V4DI_FTYPE_V4DI_INT_V4DI_QI): Ditto.
20782 (V2DI_FTYPE_V4DI_INT_V2DI_QI): Ditto.
20783 (V2DI_FTYPE_V8DI_INT_V2DI_QI): Ditto.
20784 (HI_FTYPE_HI): Ditto.
20785 (HI_FTYPE_V16QI): Ditto.
20786 (SI_FTYPE_V32QI): Ditto.
20787 (DI_FTYPE_V64QI): Ditto.
20788 (QI_FTYPE_V8HI): Ditto.
20789 (HI_FTYPE_V16HI): Ditto.
20790 (SI_FTYPE_V32HI): Ditto.
20791 (QI_FTYPE_V4SI): Ditto.
20792 (QI_FTYPE_V8SI): Ditto.
20793 (HI_FTYPE_V16SI): Ditto.
20794 (QI_FTYPE_V2DI): Ditto.
20795 (QI_FTYPE_V4DI): Ditto.
20796 (QI_FTYPE_V8DI): Ditto.
20797 (V16QI_FTYPE_HI): Ditto.
20798 (V32QI_FTYPE_SI): Ditto.
20799 (V64QI_FTYPE_DI): Ditto.
20800 (V8HI_FTYPE_QI): Ditto.
20801 (V16HI_FTYPE_HI): Ditto.
20802 (V32HI_FTYPE_SI): Ditto.
20803 (V4SI_FTYPE_QI): Ditto.
20804 (V4SI_FTYPE_HI): Ditto.
20805 (V8SI_FTYPE_QI): Ditto.
20806 (V8SI_FTYPE_HI): Ditto.
20807 (V2DI_FTYPE_QI): Ditto.
20808 (V4DI_FTYPE_QI): Ditto.
20809 (HI_FTYPE_HI_HI): Ditto.
20810 (SI_FTYPE_SI_SI): Ditto.
20811 (DI_FTYPE_DI_DI): Ditto.
20812 (HI_FTYPE_V16QI_V16QI_HI): Ditto.
20813 (HI_FTYPE_V16QI_V16QI_INT_HI): Ditto.
20814 (SI_FTYPE_V32QI_V32QI_SI): Ditto.
20815 (SI_FTYPE_V32QI_V32QI_INT_SI): Ditto.
20816 (DI_FTYPE_V64QI_V64QI_DI): Ditto.
20817 (DI_FTYPE_V64QI_V64QI_INT_DI): Ditto.
20818 (QI_FTYPE_V8HI_V8HI_QI): Ditto.
20819 (QI_FTYPE_V8HI_V8HI_INT_QI): Ditto.
20820 (HI_FTYPE_V16HI_V16HI_HI): Ditto.
20821 (HI_FTYPE_V16HI_V16HI_INT_HI): Ditto.
20822 (SI_FTYPE_V32HI_V32HI_SI): Ditto.
20823 (SI_FTYPE_V32HI_V32HI_INT_SI): Ditto.
20824 (QI_FTYPE_V4SI_V4SI_QI): Ditto.
20825 (QI_FTYPE_V4SI_V4SI_INT_QI): Ditto.
20826 (QI_FTYPE_V8SI_V8SI_QI): Ditto.
20827 (QI_FTYPE_V8SI_V8SI_INT_QI): Ditto.
20828 (QI_FTYPE_V2DI_V2DI_QI): Ditto.
20829 (QI_FTYPE_V2DI_V2DI_INT_QI): Ditto.
20830 (QI_FTYPE_V4DI_V4DI_QI): Ditto.
20831 (QI_FTYPE_V4DI_V4DI_INT_QI): Ditto.
20832 (QI_FTYPE_V8DI_V8DI_QI): Ditto.
20833 (HI_FTYPE_V16SI_V16SI_HI): Ditto.
20834 (QI_FTYPE_V8DI_V8DI_INT): Ditto.
20835 (QI_FTYPE_V8DI_V8DI_INT_QI): Ditto.
20836 (HI_FTYPE_V16SI_V16SI_INT): Ditto.
20837 (HI_FTYPE_V16SI_V16SI_INT _HI): Ditto.
20838 (QI_FTYPE_V8DF_V8DF_INT): Ditto.
20839 (QI_FTYPE_V8DF_V8DF_INT_QI_INT): Ditto.
20840 (HI_FTYPE_V16SF_V16SF_INT): Ditto.
20841 (HI_FTYPE_V16SF_V16SF_INT_HI_INT): Ditto.
20842 (QI_FTYPE_V2DF_V2DF_INT): Ditto.
20843 (QI_FTYPE_V2DF_V2DF_INT_QI): Ditto.
20844 (QI_FTYPE_V2DF_V2DF_INT_QI_INT): Ditto.
20845 (QI_FTYPE_V4SF_V4SF_INT): Ditto.
20846 (QI_FTYPE_V4SF_V4SF_INT_QI): Ditto.
20847 (QI_FTYPE_V4SF_V4SF_INT_QI_INT): Ditto.
20848 (V16SI_FTYPE_HI): Ditto.
20849 (V8DI_FTYPE_QI): Ditto.
20850 (V2DF_FTYPE_V2DI_V2DF_V2DF_QI): Ditto.
20851 (V2DF_FTYPE_V2DF_V2DI_V2DF_QI): Ditto.
20852 (V4DF_FTYPE_V4DF_V2DF_INT_V4DF_QI): Ditto.
20853 (V4SF_FTYPE_V4SI_V4SF_V4SF_QI): Ditto.
20854 (V4SF_FTYPE_V4SF_V4SI_V4SF_QI): Ditto.
20855 (V4SF_FTYPE_V4SF_V4SF_V4SF_QI): Ditto.
20856 (V8SF_FTYPE_V8SF_V4SF_INT_V8SF_QI): Ditto.
20857 (V8SI_FTYPE_V8SI_V4SI_INT_V8SI_QI): Ditto.
20858 (V4DI_FTYPE_V4DI_V2DI_INT_V4DI_QI): Ditto.
20859 (V2DF_FTYPE_V2DF_V2DF_QI): Ditto.
20860 (V2DF_FTYPE_V4SF_V2DF_QI): Ditto.
20861 (V2DF_FTYPE_V4SI_V2DF_QI): Ditto.
20862 (V4DF_FTYPE_V4DF_V4DF_QI): Ditto.
20863 (V4DF_FTYPE_V4SF_V4DF_QI): Ditto.
20864 (V4DF_FTYPE_V4SI_V4DF_QI): Ditto.
20865 (V8DF_FTYPE_V8DF_V8DF_QI): Ditto.
20866 (V8DF_FTYPE_V8SI_V8DF_QI): Ditto.
20867 (V2DI_FTYPE_V4SI_V2DI_QI): Ditto.
20868 (V2DI_FTYPE_V8HI_V2DI_QI): Ditto.
20869 (V4DI_FTYPE_V4DF_V4DI_QI): Ditto.
20870 (V2DI_FTYPE_V2DF_V2DI_QI): Ditto.
20871 (V2DI_FTYPE_V2DI_V2DI_V2DI_QI): Ditto.
20872 (V2DI_FTYPE_V2DI_V2DI_INT_V2DI_QI): Ditto.
20873 (V4DI_FTYPE_V4DI_V4DI_V4DI_QI): Ditto.
20874 (V4DI_FTYPE_V4DI_V4DI_INT_V4DI_QI): Ditto.
20875 (V8DI_FTYPE_V8SI_V8DI_QI): Ditto.
20876 (V8DI_FTYPE_V8HI_V8DI_QI): Ditto.
20877 (V8DI_FTYPE_V16QI_V8DI_QI): Ditto.
20878 (V2DI_FTYPE_V16QI_V2DI_QI): Ditto.
20879 (V4DI_FTYPE_V16QI_V4DI_QI): Ditto.
20880 (V4DI_FTYPE_V4DI_V4DI_QI): Ditto.
20881 (V4DI_FTYPE_V4SI_V4DI_QI): Ditto.
20882 (V4DI_FTYPE_V8HI_V4DI_QI): Ditto.
20883 (V8DI_FTYPE_V8DI_V8DI_V8DI_QI): Ditto.
20884 (V8DF_FTYPE_V8DI_V8DF_V8DF_QI): Ditto.
20885 (V8DF_FTYPE_V8DF_V8DI_V8DF_QI): Ditto.
20886 (V4DF_FTYPE_V4DI_V4DF_V4DF_QI): Ditto.
20887 (V4DF_FTYPE_V4DF_V4DI_V4DF_QI): Ditto.
20888 (V4DF_FTYPE_V4DF_V4DF_V4DF_QI): Ditto.
20889 (V8DF_FTYPE_V8DF_V8DF_V8DF_QI): Ditto.
20890 (V16QI_FTYPE_V16QI_V16QI_V16QI_HI): Ditto.
20891 (V16HI_FTYPE_V16HI_V16HI_V16HI_HI): Ditto.
20892 (V16SI_FTYPE_V16SI_V16SI_V16SI_HI): Ditto.
20893 (V2DF_FTYPE_V2DF_V2DF_V2DF_QI): Ditto.
20894 (V32HI_FTYPE_V32HI_V32HI_V32HI_SI): Ditto.
20895 (V64QI_FTYPE_V64QI_V64QI_V64QI_DI): Ditto.
20896 (V32QI_FTYPE_V32QI_V32QI_V32QI_SI): Ditto.
20897 (V8HI_FTYPE_V8HI_V8HI_V8HI_QI): Ditto.
20898 (V4SF_FTYPE_V4SF_V4SF_QI): Ditto.
20899 (V4SF_FTYPE_V4SI_V4SF_QI): Ditto.
20900 (V8SF_FTYPE_V8SF_V8SF_QI): Ditto.
20901 (V8SF_FTYPE_V8SI_V8SF_QI): Ditto.
20902 (V16SF_FTYPE_V16SF_V16SF_HI): Ditto.
20903 (V4SI_FTYPE_V16QI_V4SI_QI): Ditto.
20904 (V4SI_FTYPE_V8HI_V4SI_QI): Ditto.
20905 (V8SI_FTYPE_V8SI_V8SI_QI): Ditto.
20906 (V8SI_FTYPE_V8HI_V8SI_QI): Ditto.
20907 (V8SI_FTYPE_V16QI_V8SI_QI): Ditto.
20908 (V4SI_FTYPE_V4SI_V4SI_V4SI_QI): Ditto.
20909 (V4SI_FTYPE_V4SI_V4SI_INT_V4SI_QI): Ditto.
20910 (V8SF_FTYPE_V8SF_V8SF_V8SF_QI): Ditto.
20911 (V8SF_FTYPE_V8SI_V8SF_V8SF_QI): Ditto.
20912 (V8SF_FTYPE_V8SF_V8SI_V8SF_QI): Ditto.
20913 (V8SI_FTYPE_V8SI_V8SI_V8SI_QI): Ditto.
20914 (V8SI_FTYPE_V8SI_V8SI_INT_V8SI_QI): Ditto.
20915 (V16SF_FTYPE_V16SF_V16SF_V16SF_HI): Ditto.
20916 (V16SF_FTYPE_V16SI_V16SF_V16SF_HI): Ditto.
20917 (V16SF_FTYPE_V16SF_V16SI_V16SF_HI): Ditto.
20918 (V16SF_FTYPE_V8SF_V16SF_HI): Ditto.
20919 (V16SF_FTYPE_V4SF_V16SF_HI): Ditto.
20920 (V8DF_FTYPE_V4DF_V8DF_QI): Ditto.
20921 (V8DF_FTYPE_V2DF_V8DF_QI): Ditto.
20922 (V16SI_FTYPE_V8SI_V16SI_HI): Ditto.
20923 (V16SI_FTYPE_V4SI_V16SI_HI): Ditto.
20924 (V16SI_FTYPE_SI_V16SI_HI): Ditto.
20925 (V16SI_FTYPE_V16HI_V16SI_HI): Ditto.
20926 (V16SI_FTYPE_V16QI_V16SI_HI): Ditto.
20927 (V8DI_FTYPE_V4DI_V8DI_QI): Ditto.
20928 (V4SI_FTYPE_V4DF_V4SI_QI): Ditto.
20929 (V8DI_FTYPE_V2DI_V8DI_QI): Ditto.
20930 (V8DI_FTYPE_DI_V8DI_QI): Ditto.
20931 (V16QI_FTYPE_V16SI_V16QI_HI): Ditto.
20932 (V16QI_FTYPE_V8DI_V16QI_QI): Ditto.
20933 (V32HI_FTYPE_V32HI_V32HI_SI): Ditto.
20934 (V32HI_FTYPE_V32QI_V32HI_SI): Ditto.
20935 (V16HI_FTYPE_V16HI_V16HI_HI): Ditto.
20936 (V16HI_FTYPE_V16QI_V16HI_HI): Ditto.
20937 (V8HI_FTYPE_V16QI_V8HI_QI): Ditto.
20938 (V8SF_FTYPE_V4SF_V8SF_QI): Ditto.
20939 (V4DF_FTYPE_V2DF_V4DF_QI): Ditto.
20940 (V8SI_FTYPE_V4SI_V8SI_QI): Ditto.
20941 (V8SI_FTYPE_SI_V8SI_QI): Ditto.
20942 (V4SI_FTYPE_V4SI_V4SI_QI): Ditto.
20943 (V4SI_FTYPE_SI_V4SI_QI): Ditto.
20944 (V4DI_FTYPE_V2DI_V4DI_QI): Ditto.
20945 (V4DI_FTYPE_DI_V4DI_QI): Ditto.
20946 (V2DI_FTYPE_V2DI_V2DI_QI): Ditto.
20947 (V2DI_FTYPE_DI_V2DI_QI): Ditto.
20948 (V64QI_FTYPE_V64QI_V64QI_DI): Ditto.
20949 (V64QI_FTYPE_V16QI_V64QI_DI): Ditto.
20950 (V64QI_FTYPE_QI_V64QI_DI): Ditto.
20951 (V32QI_FTYPE_V32QI_V32QI_SI): Ditto.
20952 (V32QI_FTYPE_V16QI_V32QI_SI): Ditto.
20953 (V32QI_FTYPE_QI_V32QI_SI): Ditto.
20954 (V16QI_FTYPE_V16QI_V16QI_HI): Ditto.
20955 (V16QI_FTYPE_QI_V16QI_HI): Ditto.
20956 (V32HI_FTYPE_V8HI_V32HI_SI): Ditto.
20957 (V32HI_FTYPE_HI_V32HI_SI): Ditto.
20958 (V16HI_FTYPE_V8HI_V16HI_HI): Ditto.
20959 (V16HI_FTYPE_HI_V16HI_HI): Ditto.
20960 (V8HI_FTYPE_V8HI_V8HI_QI): Ditto.
20961 (V8HI_FTYPE_HI_V8HI_QI): Ditto.
20962 (V64QI_FTYPE_PCV64QI_V64QI_DI): Ditto.
20963 (V32HI_FTYPE_PCV32HI_V32HI_SI): Ditto.
20964 (V32QI_FTYPE_PCV32QI_V32QI_SI): Ditto.
20965 (V16SF_FTYPE_PCV16SF_V16SF_HI): Ditto.
20966 (V8DF_FTYPE_PCV8DF_V8DF_QI): Ditto.
20967 (V16SI_FTYPE_PCV16SI_V16SI_HI): Ditto.
20968 (V16HI_FTYPE_PCV16HI_V16HI_HI): Ditto.
20969 (V16QI_FTYPE_PCV16QI_V16QI_HI): Ditto.
20970 (V8SF_FTYPE_PCV8SF_V8SF_QI): Ditto.
20971 (V8DI_FTYPE_PCV8DI_V8DI_QI): Ditto.
20972 (V8SI_FTYPE_PCV8SI_V8SI_QI): Ditto.
20973 (V8HI_FTYPE_PCV8HI_V8HI_QI): Ditto.
20974 (V4DF_FTYPE_PCV4DF_V4DF_QI): Ditto.
20975 (V4SF_FTYPE_PCV4SF_V4SF_QI): Ditto.
20976 (V4DI_FTYPE_PCV4DI_V4DI_QI): Ditto.
20977 (V4SI_FTYPE_PCV4SI_V4SI_QI): Ditto.
20978 (V2DF_FTYPE_PCV2DF_V2DF_QI): Ditto.
20979 (V2DI_FTYPE_PCV2DI_V2DI_QI): Ditto.
20980 (V16HI_FTYPE_V16SI_V16HI_HI): Ditto.
20981 (V8SI_FTYPE_V8DI_V8SI_QI): Ditto.
20982 (V8HI_FTYPE_V8DI_V8HI_QI): Ditto.
20983 (V16QI_FTYPE_V8HI_V16QI_QI): Ditto.
20984 (V16QI_FTYPE_V16HI_V16QI_HI): Ditto.
20985 (V16QI_FTYPE_V4SI_V16QI_QI): Ditto.
20986 (V16QI_FTYPE_V8SI_V16QI_QI): Ditto.
20987 (V8HI_FTYPE_V4SI_V8HI_QI): Ditto.
20988 (V8HI_FTYPE_V8SI_V8HI_QI): Ditto.
20989 (V16QI_FTYPE_V2DI_V16QI_QI): Ditto.
20990 (V16QI_FTYPE_V4DI_V16QI_QI): Ditto.
20991 (V8HI_FTYPE_V2DI_V8HI_QI): Ditto.
20992 (V8HI_FTYPE_V4DI_V8HI_QI): Ditto.
20993 (V4SI_FTYPE_V2DI_V4SI_QI): Ditto.
20994 (V4SI_FTYPE_V4DI_V4SI_QI): Ditto.
20995 (V32QI_FTYPE_V32HI_V32QI_SI): Ditto.
20996 (V2DF_FTYPE_V2DF_INT_V2DF_QI): Ditto.
20997 (V4DF_FTYPE_V4DF_INT_V4DF_QI): Ditto.
20998 (V4SF_FTYPE_V4SF_INT_V4SF_QI): Ditto.
20999 (V8SF_FTYPE_V8SF_INT_V8SF_QI): Ditto.
21000 (V4DF_FTYPE_V4DF_V4DF_INT_V4DF_QI): Ditto.
21001 (V2DF_FTYPE_V2DF_V2DF_INT_V2DF_QI): Ditto.
21002 (V8SF_FTYPE_V8SF_V8SF_INT_V8SF_QI): Ditto.
21003 (V4SF_FTYPE_V4SF_V4SF_INT_V4SF_QI): Ditto.
21004 (VOID_FTYPE_PV8DF_V8DF_QI): Ditto.
21005 (VOID_FTYPE_PV8SI_V8DI_QI): Ditto.
21006 (VOID_FTYPE_PV8HI_V8DI_QI): Ditto.
21007 (VOID_FTYPE_PV8HI_V4DI_QI): Ditto.
21008 (VOID_FTYPE_PV8HI_V2DI_QI): Ditto.
21009 (VOID_FTYPE_PV4SI_V4DI_QI): Ditto.
21010 (VOID_FTYPE_PV4SI_V2DI_QI): Ditto.
21011 (VOID_FTYPE_PV8HI_V8SI_QI): Ditto.
21012 (VOID_FTYPE_PV8HI_V4SI_QI): Ditto.
21013 (VOID_FTYPE_PV4DF_V4DF_QI): Ditto.
21014 (VOID_FTYPE_PV2DF_V2DF_QI): Ditto.
21015 (VOID_FTYPE_PV16SF_V16SF_HI): Ditto.
21016 (VOID_FTYPE_PV8SF_V8SF_QI): Ditto.
21017 (VOID_FTYPE_PV4SF_V4SF_QI): Ditto.
21018 (VOID_FTYPE_PV8DI_V8DI_QI): Ditto.
21019 (VOID_FTYPE_PV4DI_V4DI_QI): Ditto.
21020 (VOID_FTYPE_PV2DI_V2DI_QI): Ditto.
21021 (VOID_FTYPE_PV16SI_V16SI_HI): Ditto.
21022 (VOID_FTYPE_PV16HI_V16SI_HI): Ditto.
21023 (VOID_FTYPE_PV16QI_V16SI_HI): Ditto.
21024 (VOID_FTYPE_PV16QI_V8SI_QI): Ditto.
21025 (VOID_FTYPE_PV16QI_V4SI_QI): Ditto.
21026 (VOID_FTYPE_PV16QI_V8DI_QI): Ditto.
21027 (VOID_FTYPE_PV16QI_V4DI_QI): Ditto.
21028 (VOID_FTYPE_PV16QI_V2DI_QI): Ditto.
21029 (VOID_FTYPE_PV8SI_V8SI_QI): Ditto.
21030 (VOID_FTYPE_PV4SI_V4SI_QI): Ditto.
21031 (VOID_FTYPE_PV32HI_V32HI_SI): Ditto.
21032 (VOID_FTYPE_PV16HI_V16HI_HI): Ditto.
21033 (VOID_FTYPE_PV8HI_V8HI_QI): Ditto.
21034 (VOID_FTYPE_PV64QI_V64QI_DI): Ditto.
21035 (VOID_FTYPE_PV32QI_V32QI_SI): Ditto.
21036 (VOID_FTYPE_PV16QI_V16QI_HI): Ditto.
21037 (V8DI_FTYPE_V8DI_V8DI_V8DI_INT_QI): Ditto.
21038 (V8SI_FTYPE_V8SF_V8SI_QI): Ditto.
21039 (V4SI_FTYPE_V4SF_V4SI_QI): Ditto.
21040 (V4DI_FTYPE_V4SF_V4DI_QI): Ditto.
21041 (V2DI_FTYPE_V4SF_V2DI_QI): Ditto.
21042 (V4SF_FTYPE_V4DI_V4SF_QI): Ditto.
21043 (V4SF_FTYPE_V2DI_V4SF_QI): Ditto.
21044 (V4DF_FTYPE_V4DI_V4DF_QI): Ditto.
21045 (V2DF_FTYPE_V2DI_V2DF_QI): Ditto.
21046 (V32HI_FTYPE_V32HI_INT_V32HI_SI): Ditto.
21047 (V32HI_FTYPE_V32HI_V8HI_V32HI_SI): Ditto.
21048 (V16HI_FTYPE_V16HI_INT_V16HI_HI): Ditto.
21049 (V16HI_FTYPE_V16HI_V8HI_V16HI_HI): Ditto.
21050 (V8HI_FTYPE_V8HI_INT_V8HI_QI): Ditto.
21051 (V32HI_FTYPE_V64QI_V64QI_INT_V32HI_SI): Ditto.
21052 (V16HI_FTYPE_V32QI_V32QI_INT_V16HI_HI): Ditto.
21053 (V8HI_FTYPE_V16QI_V16QI_INT_V8HI_QI): Ditto.
21054 (V64QI_FTYPE_V32HI_V32HI_V64QI_DI): Ditto.
21055 (V32QI_FTYPE_V16HI_V16HI_V32QI_SI): Ditto.
21056 (V16QI_FTYPE_V8HI_V8HI_V16QI_HI): Ditto.
21057 (V32HI_FTYPE_V16SI_V16SI_V32HI_SI): Ditto.
21058 (V16HI_FTYPE_V8SI_V8SI_V16HI_HI): Ditto.
21059 (V8HI_FTYPE_V4SI_V4SI_V8HI_QI): Ditto.
21060 (V8DI_FTYPE_V16SI_V16SI_V8DI_QI): Ditto.
21061 (V4DI_FTYPE_V8SI_V8SI_V4DI_QI): Ditto.
21062 (V2DI_FTYPE_V4SI_V4SI_V2DI_QI): Ditto.
21063 (V16SI_FTYPE_V16SI_V16SI_V16SI_INT_HI): Ditto.
21064 (V8SI_FTYPE_V8SI_V8SI_V8SI_INT_QI): Ditto.
21065 (V4DI_FTYPE_V4DI_V4DI_V4DI_INT_QI): Ditto.
21066 (V4SI_FTYPE_V4SI_V4SI_V4SI_INT_QI): Ditto.
21067 (V2DI_FTYPE_V2DI_V2DI_V2DI_INT_QI): Ditto.
21068 (V8SI_FTYPE_V8SI_V4SI_V8SI_QI): Ditto.
21069 (V4DI_FTYPE_V4DI_V2DI_V4DI_QI): Ditto.
21070 (QI_FTYPE_V4DF_V4DF_INT_QI): Ditto.
21071 (QI_FTYPE_V8SF_V8SF_INT_QI): Ditto.
21072 (QI_FTYPE_V8DF_INT_QI): Ditto.
21073 (QI_FTYPE_V4DF_INT_QI): Ditto.
21074 (QI_FTYPE_V2DF_INT_QI): Ditto.
21075 (HI_FTYPE_V16SF_INT_HI): Ditto.
21076 (QI_FTYPE_V8SF_INT_QI): Ditto.
21077 (QI_FTYPE_V4SF_INT_QI): Ditto.
21078 (V8DF_FTYPE_V8DF_V8DF_V8DF_QI_INT): Ditto.
21080 2015-07-31 Richard Biener <rguenther@suse.de>
21082 * gimple-fold.c (fold_gimple_assign): Remove folding of
21085 2015-07-31 Tom de Vries <tom@codesourcery.com>
21087 PR tree-optimization/66846
21088 * omp-low.c (expand_omp_taskreg) [ENABLE_CHECKING]: Call
21089 verify_loop_structure for child_cfun if !LOOPS_NEED_FIXUP.
21090 (expand_omp_target) [ENABLE_CHECKING]: Same.
21091 (execute_expand_omp) [ENABLE_CHECKING]: Call verify_loop_structure for
21092 cfun if !LOOPS_NEED_FIXUP.
21093 (expand_omp_for_static_nochunk): Handle simple latch bb. Handle case
21094 that omp_for already has its own loop struct.
21095 * tree-parloops.c (create_phi_for_local_result)
21096 (create_call_for_reduction): Handle simple latch bb.
21097 (create_parallel_loop): Add simple latch bb to preserve
21098 LOOPS_HAVE_SIMPLE_LATCHES. Record new exit. Handle simple latch bb.
21099 (gen_parallel_loop): Remove call to cancel_loop_tree.
21100 (parallelize_loops): Skip loops that are inner loops of parallelized
21102 (pass_parallelize_loops::execute) [ENABLE_CHECKING]: Call
21103 verify_loop_structure.
21105 2015-07-30 Anatoly Sokolov <aesok@post.ru>
21107 * config/v850/v850.h (LIBCALL_VALUE): Remove macros.
21108 * config/v850/v850.md (RV_REGNUM): New constants.
21109 * config/v850/v850.c (v850_libcall_value): New functions.
21110 (v850_function_value_regno_p, v850_function_value): Use RV_REGNUM.
21111 (TARGET_LIBCALL_VALUE): Define.
21113 2015-07-30 Anatoly Sokolov <aesok@post.ru>
21115 * rtl.h (lowpart_subreg): Move in file.
21116 * loop-iv.c (lowpart_subreg): Move to...
21117 * simplify-rtx.c (lowpart_subreg): ...here.
21118 (simplify_binary_operation_1): Use lowpart_subreg instead of
21119 simplify_gen_subreg.
21120 * expr.c (expand_expr_real_2): Ditto.
21121 * emit-rtl.c (gen_lowpart_common): Ditto.
21122 * combine.c (gen_lowpart_for_combine): Ditto.
21123 * cfgexpand.c (convert_debug_memory_address, expand_debug_expr,
21124 expand_debug_source_expr): Ditto.
21126 2015-07-30 Richard Sandiford <richard.sandiford@arm.com>
21128 * builtins.c (HAVE_atomic_clear, gen_atomic_clear): Delete.
21129 (expand_builtin_atomic_clear): Remove support for atomic_clear
21132 2015-07-30 Richard Biener <rguenther@suse.de>
21134 * gimple-fold.c (fold_gimple_assign): Only fold !tcc_comparison
21135 binaries. Move X == 0, X == 1, X != 0, and X != 1 canonicalization ...
21136 (fold_stmt_1): ... here and work on GIMPLE directly. Remove
21137 redundant operand canonicalization.
21139 2015-07-30 David Sherwood <david.sherwood@arm.com>
21141 * config/aarch64/aarch64-simd.md (aarch64_ext<mode>): Replace call to
21142 GET_MODE_SIZE (GET_MODE_INNER (m)) with GET_MODE_UNIT_SIZE (m).
21143 * config/aarch64/aarch64.c (aarch64_simd_valid_immediate): Likewise.
21144 * config/arm/arm.c (neon_valid_immediate): Likewise.
21145 * config/i386/i386.c (classify_argument, ix86_expand_int_vcond)
21146 (expand_vec_perm_blend, expand_vec_perm_pshufb): Likewise.
21147 (expand_vec_perm_pshufb2, expand_vec_perm_vpshufb2_vpermq): Likewise.
21148 (expand_vec_perm_vpshufb2_vpermq): Likewise.
21149 (expand_vec_perm_vpshufb2_vpermq_even_odd): Likewise.
21150 (expand_vec_perm_vpshufb4_vpermq2): Likewise.
21151 * config/i386/sse.md
21152 (<extract_type>_vinsert<shuffletype><extract_suf>_mask): Likewise.
21153 (*ssse3_palignr<mode>_perm): Likewise.
21154 * config/rs6000/rs6000.c (rs6000_complex_function_value): Likewise.
21155 * config/spu/spu.c (arith_immediate_p): Likewise.
21156 * simplify-rtx.c (simplify_const_unary_operation): Likewise.
21157 (simplify_binary_operation_1, simplify_ternary_operation): Likewise.
21159 2015-07-30 Richard Biener <rguenther@suse.de>
21161 * genmatch.c (decision_tree::gen_gimple): Merge with ...
21162 (decision_tree::gen_generic): ... this into ...
21163 (decision_tree::gen): ... this.
21164 (main): Adjust callers.
21166 2015-07-30 Richard Biener <rguenther@suse.de>
21168 * genmatch.c (verbose): New global.
21169 (warning_at): Add overload with source_location.
21170 (capture_info::capture_info): Add bool whether generating gimple
21171 or generic. Add gimple member.
21172 (capture_info::cinfo): Add capture member.
21173 (capture_info::walk_match): Record capture. Warn on
21174 non-captured leafs.
21175 (capture_info::walk_c_expr): Add more fragments captures cannot
21176 escape through. Warn on escaped captures.
21177 (dt_simplify::gen_1): Warn on operands we force to have no
21179 (main): Initialize verbose.
21180 * match.pd: Add integer_nonzerop and HONOR_NANS predicates.
21182 2015-07-30 Richard Biener <rguenther@suse.de>
21184 PR middle-end/67053
21185 * match.pd: Allow both operands to independently have conversion
21186 when simplifying compares of addresses.
21188 2015-07-29 Segher Boessenkool <segher@kernel.crashing.org>
21192 * config/rs6000/rs6000.md (and<mode>3): Put a CONST_INT_P check
21193 around those cases that need one.
21195 2015-07-29 Aditya Kumar <hiraditya@msn.com>
21197 * params.def (PARAM_GRAPHITE_MAX_NB_SCOP_PARAMS): Default to 3.
21199 2015-07-29 H.J. Lu <hongjiu.lu@intel.com>
21201 * config/i386/iamcu.h (TARGET_ASM_FILE_START_FILE_DIRECTIVE):
21202 New. Copied from config/i386/gnu-user.h.
21203 (ASM_COMMENT_START): Likewise.
21204 (DBX_REGISTER_NUMBER): Likewise.
21206 2015-07-29 Richard Biener <rguenther@suse.de>
21208 * gimple-fold.c (fold_gimple_cond): Remove.
21209 (fold_stmt_1): Do not call it.
21211 2015-07-29 Alan Lawrence <alan.lawrence@arm.com>
21213 * config/aarch64/aarch64-builtins.c (aarch64_fp16_type_node): New.
21214 (aarch64_init_builtins): Make aarch64_fp16_type_node, use for __fp16.
21216 * config/aarch64/aarch64-modes.def: Add HFmode.
21218 * config/aarch64/aarch64.h (TARGET_CPU_CPP_BUILTINS): Define
21219 __ARM_FP16_FORMAT_IEEE and __ARM_FP16_ARGS. Set bit 1 of __ARM_FP.
21221 * config/aarch64/aarch64.c (aarch64_init_libfuncs,
21222 aarch64_promoted_type): New.
21224 (aarch64_float_const_representable_p): Disable HFmode.
21225 (aarch64_mangle_type): Mangle half-precision floats to "Dh".
21226 (TARGET_PROMOTED_TYPE): Define to aarch64_promoted_type.
21227 (TARGET_INIT_LIBFUNCS): Define to aarch64_init_libfuncs.
21229 * config/aarch64/aarch64.md (mov<mode>): Include HFmode using GPF_F16.
21230 (movhf_aarch64, extendhfsf2, extendhfdf2, truncsfhf2, truncdfhf2): New.
21232 * config/aarch64/iterators.md (GPF_F16): New.
21234 2015-07-29 Richard Biener <rguenther@suse.de>
21236 * match.pd: Merge address comparison patterns and make them
21237 handle some more cases.
21239 2015-07-29 Richard Biener <rguenther@suse.de>
21241 * genmatch.c (c_expr::gen_transform): Error on unknown captures.
21242 (parser::parse_capture): Add bool argument on whether to reject
21244 (parser::parse_expr): Adjust.
21245 (parser::parse_op): Likewise.
21246 (parser::parse_pattern): Likewise.
21248 2015-07-29 Richard Biener <rguenther@suse.de>
21250 * gimple-fold.c (has_use_on_stmt): New function.
21251 (replace_stmt_with_simplification): Use it to allow
21252 abnormals originally referenced in the stmt.
21253 (fold_stmt_1): Canonicalize operand order.
21255 2015-07-28 David Sherwood <david.sherwood@arm.com>
21257 * config/arm/arm.c (neon_element_bits, neon_valid_immediate): Call
21258 GET_MODE_INNER unconditionally.
21259 * config/spu/spu.c (arith_immediate_p): Likewise.
21260 * config/i386/i386.c (ix86_build_signbit_mask): Likewise.
21261 * expmed.c (synth_mult): Remove check for VOIDmode result from
21263 (expand_mult_const): Likewise.
21264 * fold-const.c (fold_binary_loc): Replace call to element_precision
21265 with call to GET_MODE_PRECISION.
21266 * genmodes.c (emit_mode_inner_inline): Replace void_mode->name with
21268 (emit_mode_inner): Likewise.
21269 * lto-streamer-out.c (lto_write_mode_table): Update GET_MODE_INNER
21271 * machmode.h (GET_MODE_UNIT_SIZE): Simplify.
21272 (GET_MODE_UNIT_PRECISION): Likewise.
21273 * rtlanal.c (subreg_get_info): Call GET_MODE_INNER unconditionally.
21274 * simplify-rtx.c (simplify_immed_subreg): Likewise.
21275 * stor-layout.c (bitwise_type_for_mode): Update assert.
21276 (element_precision): Remove.
21278 2015-07-28 Richard Sandiford <richard.sandiford@arm.com>
21280 * target-insns.def (reload_load_address): New targetm instruction
21282 * reload1.c (gen_reload): Use it instead of HAVE_*/gen_* interface.
21284 2015-07-28 Richard Sandiford <richard.sandiford@arm.com>
21286 * target-insns.def (atomic_test_and_set): New targetm instruction
21288 * optabs.c (maybe_emit_atomic_test_and_set): Use it instead of
21289 HAVE_*/gen_* interface.
21291 2015-07-28 Richard Sandiford <richard.sandiford@arm.com>
21293 * target-insns.def (can_extend, ptr_extend): New targetm instruction
21295 * optabs.c (can_extend_p): Use them instead of HAVE_*/gen_* interface.
21296 * simplify-rtx.c (simplify_unary_operation_1): Likewise.
21297 * emit-rtl.c (set_reg_attrs_from_value): Likewise.
21298 * rtlanal.c (nonzero_bits1): Likewise.
21299 (num_sign_bit_copies1): Likewise.
21301 2015-07-28 Richard Sandiford <richard.sandiford@arm.com>
21303 * target-insns.def (eh_return): New targetm instruction pattern.
21304 * except.c (expand_eh_return): Use it instead of HAVE_*/gen_*
21306 * function.c (thread_prologue_and_epilogue_insns): Remove
21307 preprocessor condition.
21309 2015-07-28 Richard Sandiford <richard.sandiford@arm.com>
21311 * target-insns.def (indirect_jump): New targetm instruction pattern.
21312 * optabs.c (emit_indirect_jump): Use it instead of HAVE_*/gen_*
21315 2015-07-28 Richard Sandiford <richard.sandiford@arm.com>
21317 * config/fr30/fr30.md (indirect_jump): Use pmode_register_operand
21318 instead of nonimmediate_operand. Remove C condiition.
21320 2015-07-28 Richard Biener <rguenther@suse.de>
21322 * match.pd: Add more simplification of address comparisons.
21324 2015-07-28 Richard Biener <rguenther@suse.de>
21326 * match.pd: Re-order two cases in comparison with max/min
21327 value simplification to make it apply for bools.
21329 2015-07-28 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
21331 * config/aarch64/aarch64.c (aarch64_rtx_arith_op_extract_p):
21332 Handle simple SIGN_EXTEND or ZERO_EXTEND.
21333 (aarch64_rtx_costs): Properly strip extend or extract before
21334 passing down to rtx costs again.
21336 2015-07-28 Nick Clifton <nickc@redhat.com>
21338 * config/rl78/rl78.c (rl78_addsi3_internal): New function.
21339 Optimizes the case where -mes0 is active and a constant symbolic
21341 * config/rl78/rl78-protos.h: Prototype the new function.
21342 * config/rl78/rl78.md (addsi3_internal_real): Call new function.
21344 2015-07-28 Tom de Vries <tom@codesourcery.com>
21346 * tree-parloops.c (reduc_stmt_res): New function.
21347 (initialize_reductions, add_field_for_reduction)
21348 (create_phi_for_local_result, create_loads_for_reductions)
21349 (create_stores_for_reduction, build_new_reduction): Handle case that
21350 reduc_stmt is a phi.
21351 (gather_scalar_reductions): Allow double_reduc reductions.
21353 2015-07-28 Richard Biener <rguenther@suse.de>
21355 * fold-const.c (fold_comparison): Remove equality folding
21356 of decl addresses ...
21357 * match.pd: ... here and merge with existing pattern.
21359 2015-07-28 Thomas Preud'homme <thomas.preudhomme@arm.com>
21361 PR tree-optimization/66828
21362 * tree-ssa-math-opts.c (perform_symbolic_merge): Change type of inc
21363 from int64_t to uint64_t.
21365 2015-07-28 Dominik Vogt <vogt@linux.vnet.ibm.com>
21367 * opts-common.c (read_cmdline_option): List DriverOnly enum values
21368 as valid only in the error message of the driver, not in the
21369 messages of the language compilers.
21371 2015-07-27 Tom de Vries <tom@codesourcery.com>
21373 * tree-parloops.c (gather_scalar_reductions): Simplify function
21376 2015-07-27 Marek Polacek <polacek@redhat.com>
21378 * ipa-devirt.c (types_same_for_odr): Fix typo.
21380 2015-07-27 Jason Merrill <jason@redhat.com>
21383 * dwarf2out.c (gen_inlined_subroutine_die): Check
21384 cgraph_function_possibly_inlined_p.
21386 2015-07-27 Wilco Dijkstra <wdijkstr@arm.com>
21388 * config/aarch64/aarch64.md (aarch64_lshr_sisd_or_int_<mode>3):
21389 Place integer variant first.
21390 (aarch64_ashr_sisd_or_int_<mode>3): Likewise.
21392 2015-07-27 Alan Lawrence <alan.lawrence@arm.com>
21395 * config/arm/arm-builtins.c (enum arm_builtins):
21396 Add ARM_BUILTIN_NEON_BASE and ARM_BUILTIN_NEON_LANE_CHECK.
21397 (ARM_BUILTIN_NEON_BASE): Rename macro to....
21398 (ARM_BUILTIN_NEON_PATTERN_START): ...this.
21399 (arm_init_neon_builtins): Register __builtin_arm_lane_check.
21400 (arm_expand_neon_builtin): Handle ARM_BUILTIN_NEON_LANE_CHECK.
21402 2015-07-27 Alan Lawrence <alan.lawrence@arm.com>
21405 * config/arm/arm-builtins.c (enum arm_type_qualifiers):
21406 Add qualifier_lane_index.
21407 (arm_binop_imm_qualifiers, BINOP_IMM_QUALIFIERS): New.
21408 (arm_getlane_qualifiers): Use qualifier_lane_index.
21409 (arm_lanemac_qualifiers): Rename to...
21410 (arm_mac_n_qualifiers): ...this.
21411 (LANEMAC_QUALIFIERS): Rename to...
21412 (MAC_N_QUALIFIERS): ...this.
21413 (arm_mac_lane_qualifiers, MAC_LANE_QUALIFIERS): New.
21414 (arm_setlane_qualifiers): Use qualifier_lane_index.
21415 (arm_ternop_imm_qualifiers, TERNOP_IMM_QUALIFIERS): New.
21416 (enum builtin_arg): Add NEON_ARG_LANE_INDEX.
21417 (arm_expand_neon_args): Handle NEON_ARG_LANE_INDEX.
21418 (arm_expand_neon_builtin): Handle qualifier_lane_index.
21420 * config/arm/arm-protos.h (neon_lane_bounds): Add const_tree parameter.
21421 * config/arm/arm.c (bounds_check): Likewise, improve error message.
21422 (neon_lane_bounds, neon_const_bounds): Add arguments to bounds_check.
21423 * config/arm/arm_neon_builtins.def (vshrs_n, vshru_n, vrshrs_n,
21424 vrshru_n, vshrn_n, vrshrn_n, vqshrns_n, vqshrnu_n, vqrshrns_n,
21425 vqrshrnu_n, vqshrun_n, vqrshrun_n, vshl_n, vqshl_s_n, vqshl_u_n,
21426 vqshlu_n, vshlls_n, vshllu_n): Change qualifiers to BINOP_IMM.
21427 (vsras_n, vsrau_n, vrsras_n, vrsrau_n, vsri_n, vsli_n): Change
21428 qualifiers to TERNOP_IMM.
21429 (vdup_lane): Change qualifiers to GETLANE.
21430 (vmla_lane, vmlals_lane, vmlalu_lane, vqdmlal_lane, vmls_lane,
21431 vmlsls_lane, vmlslu_lane, vqdmlsl_lane): Change qualifiers to MAC_LANE.
21432 (vmla_n, vmlals_n, vmlalu_n, vqdmlal_n, vmls_n, vmlsls_n, vmlslu_n,
21433 vqdmlsl_n): Change qualifiers to MAC_N.
21435 * config/arm/neon.md (neon_vget_lane<mode>, neon_vget_laneu<mode>,
21436 neon_vget_lanedi, neon_vget_lanev2di, neon_vset_lane<mode>,
21437 neon_vset_lanedi, neon_vdup_lane<mode>, neon_vdup_lanedi,
21438 neon_vdup_lanev2di, neon_vmul_lane<mode>, neon_vmul_lane<mode>,
21439 neon_vmull<sup>_lane<mode>, neon_vqdmull_lane<mode>,
21440 neon_vq<r>dmulh_lane<mode>, neon_vq<r>dmulh_lane<mode>,
21441 neon_vmla_lane<mode>, neon_vmla_lane<mode>, neon_vmlal<sup>_lane<mode>,
21442 neon_vqdmlal_lane<mode>, neon_vmls_lane<mode>, neon_vmls_lane<mode>,
21443 neon_vmlsl<sup>_lane<mode>, neon_vqdmlsl_lane<mode>):
21444 Remove call to neon_lane_bounds.
21446 2015-07-27 Wilco Dijkstra <wdijkstr@arm.com>
21448 * config/aarch64/aarch64.md (aarch64_ashl_sisd_or_int_<mode>3):
21449 Place integer variant first.
21451 2015-07-27 Matthew Wahab <matthew.wahab@arm.com>
21453 * config/arm/arm-arches.def: Add "armv6kz". Replace 6ZK with 6KZ
21454 and FL_FOR_ARCH6ZK with FL_FOR_ARCH6KZ.
21455 * config/arm/arm-c.c (arm_cpu_builtins): Emit "__ARM_ARCH_6ZK__"
21456 for armv6kz targets.
21457 * config/arm/arm-cores.def: Replace 6ZK with 6KZ.
21458 * config/arm/arm-protos.h (FL_ARCH6KZ): New.
21459 (FL_FOR_ARCH6ZK): Remove.
21460 (FL_FOR_ARCH6KZ): New.
21461 (arm_arch6zk): New declaration.
21462 * config/arm/arm-tables.opt: Regenerate.
21463 * config/arm/arm.c (arm_arch6kz): New.
21464 (arm_option_override): Set arm_arch6kz.
21465 * config/arm/arm.h (BASE_ARCH_6ZK): Rename to BASE_ARCH_6KZ.
21466 * config/arm/driver-arm.c: Add comment to "armv6zk" entry.
21467 * doc/invoke.texi: Replace "armv6zk" with "armv6kz".
21469 2015-07-27 Marek Polacek <polacek@redhat.com>
21473 * doc/invoke.texi: Document -Wtautological-compare.
21475 2015-07-27 Richard Biener <rguenther@suse.de>
21477 * genmatch.c (decision_tree::gen_gimple): Split out large
21478 subtrees into separate functions.
21479 (decision_tree::gen_generic): Likewise.
21481 2015-07-26 Uros Bizjak <ubizjak@gmail.com>
21483 * config/alpha/alpha.c: Use SUBREG_P predicate.
21484 * config/alpha/predicates.md: Ditto.
21486 2015-07-25 Dominik Vogt <vogt@linux.vnet.ibm.com>
21488 * config.host (s390*-*-*): Include driver-native.c only when
21489 building with s390* as host *and* target.
21491 2015-07-25 Oleg Endo <olegendo@gcc.gnu.org>
21494 * config/sh/sh.c (sh_split_movrt_negc_to_movt_xor): Add missing
21495 T bit register modified_between_p check.
21497 2015-07-25 Uros Bizjak <ubizjak@gmail.com>
21499 * config/i386/i386.c: Use SUBREG_P predicate.
21500 * config/i386/i386.md: Ditto.
21501 * config/i386/sse.md: Ditto.
21502 * config/i386/predicates.md: Ditto.
21504 2015-07-25 Uros Bizjak <ubizjak@gmail.com>
21507 * config/i386/i386.h (ADJUST_INSN_LENGTH): Use NONDEBUG_INSN_P (INSN)
21508 predicate and INSN_CODE (INSN) >= 0 to check for valid instruction.
21510 2015-07-25 Sebastian Pop <s.pop@samsung.com>
21512 * Makefile.in: Remove use of TREEBROWSER.
21513 * config.in: Regenerated.
21514 * configure: Regenerated.
21515 * configure.ac: Remove definition of TREEBROWSER.
21516 * tree-browser.c: Removed.
21517 * tree-browser.def: Removed.
21519 2015-07-25 Sebastian Pop <s.pop@samsung.com>
21521 * graphite-scop-detection.c: Include gimple-pretty-print.h.
21522 (stmt_simple_for_scop_p): Print when a stmt is not handled in
21524 (scopdet_basic_block_info): Print when a loop or bb cannot be
21525 represented in Graphite.
21527 2015-07-25 Uros Bizjak <ubizjak@gmail.com>
21530 * config/i386/i386.c (ix86_expand_set_or_movmem): Emit main loop
21531 execution guard when min_size is less than size_needed.
21533 2015-07-25 Sebastian Pop <s.pop@samsung.com>
21535 * doc/install.texi: Document supported versions of ISL.
21537 2015-07-25 Jeff Law <law@redhat.com>
21541 * tree-ssa-threadedge.c (simplify_conrol_stmt_condition): If we are
21542 unable to find X NE 0 in the tables, return X as the simplified
21544 (fsm_find_control_statement_thread_paths): If nodes in NEXT_PATH are
21545 in VISISTED_BBS, then return failure. Else add nodes from NEXT_PATH
21546 to VISISTED_BBS. */
21547 * tree-ssa-threadupdate.c (duplicate_thread_path): Fix up edge flags
21548 after removing the control flow statement and unnecessary edges.
21550 2015-07-25 David Edelsohn <dje.gcc@gmail.com>
21553 2015-07-23 Alexandre Oliva <aoliva@redhat.com>
21555 PR rtl-optimization/64164
21556 * Makefile.in (OBJS): Drop tree-ssa-copyrename.o.
21557 * tree-ssa-copyrename.c: Removed.
21558 * opts.c (default_options_table): Drop -ftree-copyrename. Add
21559 -ftree-coalesce-vars.
21560 * passes.def: Drop all occurrences of pass_rename_ssa_copies.
21561 * common.opt (ftree-copyrename): Ignore.
21562 (ftree-coalesce-inlined-vars): Likewise.
21563 * doc/invoke.texi: Remove the ignored options above.
21564 * gimple-expr.h (gimple_can_coalesce_p): Move declaration
21565 * tree-ssa-coalesce.h: ... here.
21566 * tree-ssa-uncprop.c: Include tree-ssa-coalesce.h and other
21567 headers required by it.
21568 * gimple-expr.c (gimple_can_coalesce_p): Allow coalescing
21569 across variables when flag_tree_coalesce_vars. Check register
21570 use and promoted modes to allow coalescing. Moved to
21571 tree-ssa-coalesce.c.
21572 * tree-ssa-live.c (struct tree_int_map_hasher): Move along
21573 with its member functions to tree-ssa-coalesce.c.
21574 (var_map_base_init): Likewise. Renamed to
21575 compute_samebase_partition_bases.
21576 (partition_view_normal): Drop want_bases parameter.
21577 (partition_view_bitmap): Likewise.
21578 * tree-ssa-live.h: Adjust declarations.
21579 * tree-ssa-coalesce.c: Include explow.h.
21580 (build_ssa_conflict_graph): Process PARM_ and RESULT_DECLs's
21581 default defs at the entry point.
21582 (dump_part_var_map): New.
21583 (compute_optimized_partition_bases): New, called by...
21584 (coalesce_ssa_name): ... when flag_tree_coalesce_vars, instead
21585 of compute_samebase_partition_bases. Adjust.
21586 * alias.c (nonoverlapping_memrefs_p): Disregard gimple-regs.
21587 * cfgexpand.c (leader_merge): New.
21588 (get_rtl_for_parm_ssa_default_def): New.
21589 (set_rtl): Merge exprs and attrs, even for MEMs and non-SSA
21590 vars. Update DECL_RTL for PARM_DECLs and RESULT_DECLs too.
21591 (expand_one_stack_var_at): Handle anonymous SSA_NAMEs. Drop
21592 redundant MEM attr setting.
21593 (expand_one_stack_var_1): Handle anonymous SSA_NAMEs. Renamed
21595 (expand_one_stack_var): ... this. New wrapper to check and
21596 skip already expanded SSA partitions.
21597 (record_alignment_for_reg_var): New, factored out of...
21598 (expand_one_var): ... this.
21599 (expand_one_ssa_partition): New.
21600 (adjust_one_expanded_partition_var): New.
21601 (expand_one_register_var): Check and skip already expanded SSA
21603 (expand_used_vars): Don't create DECLs for anonymous SSA
21604 names. Expand all SSA partitions, then adjust all SSA names.
21605 (pass::execute): Replace the loops that set
21606 SA.partition_to_pseudo from partition leaders and cleared
21607 DECL_RTL for multi-location variables, and that which used to
21608 rename vars and set attrs, with one that clears DECL_RTL and
21609 checks that PARMs and RESULTs default_defs match DECL_RTL.
21610 * cfgexpand.h (get_rtl_for_parm_ssa_default_def): Declare.
21611 * emit-rtl.c (set_reg_attrs_for_parm): Handle NULL decl.
21612 * explow.c (promote_ssa_mode): New.
21613 * explow.h (promote_ssa_mode): Declare.
21614 * expr.c (expand_expr_real_1): Handle anonymous SSA_NAMEs.
21615 * function.c: Include cfgexpand.h.
21616 (use_register_for_decl): Handle SSA_NAMEs, anonymous or not.
21617 (use_register_for_parm_decl): Wrapper for the above to
21618 special-case the result_ptr.
21619 (rtl_for_parm): Ditto for get_rtl_for_parm_ssa_default_def.
21620 (split_complex_args): Take assign_parm_data_all argument.
21621 Pass it to rtl_for_parm. Set up rtl and context for split
21623 (assign_parms_augmented_arg_list): Adjust.
21624 (maybe_reset_rtl_for_parm): Reset DECL_RTL of parms with
21625 multiple locations. Recognize split complex args.
21626 (assign_parm_adjust_stack_rtl): Add all and parm arguments,
21627 for rtl_for_parm. For SSA-assigned parms, zero stack_parm.
21628 (assign_parm_setup_block): Prefer SSA-assigned location.
21629 (assign_parm_setup_reg): Likewise. Use entry_parm for equiv
21630 if stack_parm is NULL.
21631 (assign_parm_setup_stack): Prefer SSA-assigned location.
21632 (assign_parms): Maybe reset DECL_RTL of params. Adjust stack
21633 rtl before testing for pointer bounds. Special-case result_ptr.
21634 (expand_function_start): Maybe reset DECL_RTL of result.
21635 Prefer SSA-assigned location for result and static chain.
21636 Factor out DECL_RESULT and SET_DECL_RTL.
21637 * tree-outof-ssa.c (insert_value_copy_on_edge): Handle
21638 anonymous SSA names. Use promote_ssa_mode.
21639 (get_temp_reg): Likewise.
21640 (remove_ssa_form): Adjust.
21641 * stor-layout.c (layout_decl): Don't set mem attributes of
21643 * var-tracking.c (dataflow_set_clear_at_call): Take call_insn
21644 and get its reg_usage for reg invalidation.
21645 (compute_bb_dataflow): Pass it insn.
21646 (emit_notes_in_bb): Likewise.
21648 2015-07-25 Uros Bizjak <ubizjak@gmail.com>
21650 * config/i386/i386.c (ix86_va_start): Remove
21651 unneeded !TARGET_64BIT check.
21652 (ix86_gimplify_va_arg): Ditto.
21654 2015-07-24 Tom de Vries <tom@codesourcery.com>
21656 * graphite-sese-to-poly.c (build_poly_scop): Always call
21657 rewrite_commutative_reductions_out_of_ssa.
21659 2015-07-24 Tom de Vries <tom@codesourcery.com>
21661 * graphite-sese-to-poly.c (is_reduction_operation_p): Limit
21662 flag_associative_math to FLOAT_TYPE_P. Honour
21663 TYPE_OVERFLOW_WRAPS for INTEGRAL_TYPE_P. Don't allow any other types.
21665 2015-07-24 Manuel López-Ibáñez <manu@gcc.gnu.org>
21668 * toplev.c (check_global_declaration): Use DECL_SOURCE_LOCATION
21669 and "%qD" in warning_at instead of "%q+D" in warning.
21671 2015-07-24 Uros Bizjak <ubizjak@gmail.com>
21673 * config/i386/i386.c (ix86_call_abi_override): Call ix86_function_abi.
21674 (ix86_function_abi): Cleanup.
21676 2015-07-24 Michael Darling <darlingm@gmail.com>
21679 * acinclude.m4: Reflects renaming of configure.in to configure.ac
21680 * configure: Likewise
21681 * configure.ac: Likewise
21682 * doc/install.texi: Likewise
21683 * doc/tm.texi: Likewise
21684 * doc/tm.texi.in: Likewise
21686 2015-07-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
21688 * alias.c (nonoverlapping_memrefs_p): Use std::swap instead of
21689 manually swapping values.
21690 * cse.c (fold_rtx): Likewise.
21691 * lra-eliminations.c (form_sum): Likewise.
21693 2015-07-24 Uros Bizjak <ubizjak@gmail.com>
21696 * config/i386/i386.h (ADJUST_INSN_LENGTH): New define.
21697 * config/i386/i386.md (maybe_prefix_bnd): New attribute.
21698 (*jcc_1, *jcc_2, jump, simple_return_internal)
21699 (simple_return_pop_internal): Set attribute maybe_prefix_bnd.
21700 Set length_nobnd attribute instead of length attribute.
21701 (indirect_jump, *tablejump_1): Set attribute maybe_prefix_bnd.
21702 (length_nobnd): Remove attribute.
21703 (length): Remove length_nobnd processing.
21705 2015-07-24 Nathan Sidwell <nathan@codesourcery.com>
21707 * gimplify.c (omp_default_clause): New function. Reorganize flow
21708 for clarity. Broken out of ...
21709 (omp_notice_variable): ... here.
21711 2015-07-24 Gary Funck <gary@intrepid.com>
21713 PR middle-end/66984
21714 * fold-const.c (fold_binary_loc): Call fold_convert on arguments to
21715 fold_build2 for CEIL_DIV_EXPR and FLOOR_DIV_EXPR optimization.
21717 2015-07-24 Tom de Vries <tom@codesourcery.com>
21719 * tree-parloops.c (gen_parallel_loop): Add debug print for alternative
21720 exit-first loop transform.
21722 2015-07-24 Cesar Philippidis <cesar@codesourcery.com>
21725 * tree-cfg.c (struct replace_decls_d): New struct.
21726 (replace_block_vars_by_duplicates_1): New function.
21727 (replace_block_vars_by_duplicates): Use it to replace the decls
21728 in the value exprs by duplicates.
21730 2015-07-24 Szabolcs Nagy <szabolcs.nagy@arm.com>
21732 * config/aarch64/aarch64-elf-raw.h (LINK_SPEC): Handle -h, -static,
21733 -shared, -symbolic, -rdynamic.
21735 2015-07-24 Szabolcs Nagy <szabolcs.nagy@arm.com>
21738 * config/aarch64/aarch64-linux.h (LINUX_TARGET_LINK_SPEC): Move
21739 -dynamic-linker within %{!static %{!shared, and -rdynamic within
21742 2015-07-24 Ilya Enkovich <enkovich.gnu@gmail.com>
21745 * ipa-inline-analysis.c (estimate_calls_size_and_time): Check
21746 edge summary is available.
21748 2015-07-24 Richard Biener <rguenther@suse.de>
21750 * genmatch.c (struct dt_node): Add statistic fields.
21751 (dt_node::analyze): New method.
21752 (decision_tree::gen_gimple): Call analyze on the root node
21753 and print statistics to stderr.
21754 (decision_tree::gen_generic): Likewise.
21756 2015-07-24 Richard Biener <rguenther@suse.de>
21758 * fold-const.c (fold_binary_loc): Move simplifying of comparisons
21759 against the highest or lowest possible integer ...
21760 * match.pd: ... as patterns here.
21762 2015-07-24 Richard Biener <rguenther@suse.de>
21764 * genmatch.c (struct capture_info): Add same_as field.
21765 (capture_info::capture_info): Initialize same_as.
21766 (capture_info::walk_match): Compute same_as.
21767 (capture_info::walk_result): Compute stuff for the leader.
21768 (capture_info::walk_c_expr): Likewise.
21769 (dt_simplify::gen_1): Only look at leaders when deciding
21770 to force no side-effects or emit side-effects of omitted operands.
21772 2015-07-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
21774 * config/s390/s390.c (s390_save_gprs_to_fprs): Add CFA_REGISTER
21775 reg note to the GPR -> FPR save instructions.
21777 2015-07-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
21779 * config/s390/s390.c (s390_rtx_costs): Make risbg patterns
21781 (s390_expand_insv): Don't generate risbg pattern for constant zero
21783 * config/s390/s390.md ("*insv<mode>_zEC12_appendbitsleft")
21784 ("*insv<mode>_z10_appendbitsleft"): New pattern definitions. New
21787 2015-07-24 Dominik Vogt <vogt@linux.vnet.ibm.com>
21789 * config/s390/s390.c (s390_reorg): Clean up handling of processors
21792 (s390_issue_rate): Likewise.
21793 (s390_sched_reorder): Likewise.
21794 (s390_sched_variable_issue): Likewise.
21795 (s390_loop_unroll_adjust): Likewise.
21796 (s390_option_override): Likewise.
21798 2015-07-24 Dominik Vogt <vogt@linux.vnet.ibm.com>
21800 * config/s390/driver-native.c (s390_host_detect_local_cpu): Handle
21801 processor capabilities with -march=native.
21802 * config/s390/s390.h (MARCH_MTUNE_NATIVE_SPECS): Likewise.
21803 (DRIVER_SELF_SPECS): Likewise. Join specs for 31 and 64 bit.
21804 (S390_TARGET_BITS_STRING): Macro to simplify specs.
21806 2015-07-24 Dominik Vogt <vogt@linux.vnet.ibm.com>
21808 * config/s390/s390.c (s390_issue_rate): Handle
21809 PROCESSOR_2094_Z9_EC.
21810 (s390_option_override): Likewise.
21811 (s390_adjust_priority): Likewise.
21813 2015-07-24 Dominik Vogt <vogt@linux.vnet.ibm.com>
21815 * config/s390/s390.h: S390: Do not define EXTRA_SPEC_FUNCTIONS
21816 when cross compiling.
21818 2015-07-24 Richard Biener <rguenther@suse.de>
21820 * fold-const.c (maybe_canonicalize_comparison_1): Move
21821 A code CST canonicalization ...
21822 * match.pd: ... to a pattern here.
21824 2015-07-24 Jiong Wang <jiong.wang@arm.com>
21827 2015-07-22 Jiong Wang <jiong.wang@arm.com>
21829 * config/aarch64/aarch64.h (REG_ALLOC_ORDER): Define.
21830 (HONOR_REG_ALLOC_ORDER): Define.
21832 2015-07-24 Richard Biener <rguenther@suse.de>
21834 * genmatch.c (add_operator): Allow SSA_NAME as predicate.
21835 * fold-const.c (fold_comparison): Move parameter does not
21836 alias &local simplification ...
21837 * match.pd: ... as a pattern here.
21839 2015-07-24 Richard Biener <rguenther@suse.de>
21841 * gimple-fold.c (replace_stmt_with_simplification): Special-case
21842 valueizing call operands.
21843 * gimple-match-head.c (maybe_push_res_to_seq): Take
21844 number of call arguments from ops array.
21845 (do_valueize): New function.
21846 (gimple_simplify): Return true if valueization changed
21847 any operand even if the result didn't simplify further.
21849 2015-07-24 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
21851 PR middle-end/25530
21852 * match.pd (mult (trunc_div @0 integer_pow2p@1) @1) : New simplifier.
21854 2015-07-24 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
21856 PR middle-end/25529
21857 * match.pd (trunc_div (mult @0 integer_pow2p@1) @1) : New simplifier.
21859 2015-07-23 Kugan Vivekanandarajah <kuganv@linaro.org>
21861 * config/arm/arm.c (arm_emit_movpair): Add REG_EQUAL notes to
21864 2015-07-23 Kugan Vivekanandarajah <kuganv@linaro.org>
21866 * cse.c (cse_insn): Fix missing check for STRICT_LOW_PART and minor
21869 2015-07-23 Uros Bizjak <ubizjak@gmail.com>
21871 * config/i386/i386.c (ix86_build_builtin_va_list_64): Rename
21872 from ix86_build_builtin_va_list_abi. Handle only 64bit non-MS_ABI
21874 (ix86_build_builtin_va_list): Rewrite sysv_va_list_type_node and
21875 ms_va_list_type_node initialization.
21877 2015-07-23 Jeff Law <law@redhat.com>
21880 * tree-ssa-threadedge.c (simplify_conrol_stmt_condition): If we are
21881 unable to find X NE 0 in the tables, return X as the simplified
21883 (fsm_find_control_statement_thread_paths): If nodes in NEXT_PATH are
21884 in VISISTED_BBS, then return failure. Else add nodes from NEXT_PATH
21885 to VISISTED_BBS. */
21886 * tree-ssa-threadupdate.c (duplicate_thread_path): Fix up edge flags
21887 after removing the control flow statement and unnecessary edges.
21889 2015-07-23 Bernd Edlinger <bernd.edlinger@hotmail.de>
21891 * tree-pass.h (get_current_pass_name): Removed.
21893 2015-07-23 Alexandre Oliva <aoliva@redhat.com>
21895 PR rtl-optimization/64164
21896 * Makefile.in (OBJS): Drop tree-ssa-copyrename.o.
21897 * tree-ssa-copyrename.c: Removed.
21898 * opts.c (default_options_table): Drop -ftree-copyrename. Add
21899 -ftree-coalesce-vars.
21900 * passes.def: Drop all occurrences of pass_rename_ssa_copies.
21901 * common.opt (ftree-copyrename): Ignore.
21902 (ftree-coalesce-inlined-vars): Likewise.
21903 * doc/invoke.texi: Remove the ignored options above.
21904 * gimple-expr.h (gimple_can_coalesce_p): Move declaration
21905 * tree-ssa-coalesce.h: ... here.
21906 * tree-ssa-uncprop.c: Include tree-ssa-coalesce.h and other
21907 headers required by it.
21908 * gimple-expr.c (gimple_can_coalesce_p): Allow coalescing
21909 across variables when flag_tree_coalesce_vars. Check register
21910 use and promoted modes to allow coalescing. Moved to
21911 tree-ssa-coalesce.c.
21912 * tree-ssa-live.c (struct tree_int_map_hasher): Move along
21913 with its member functions to tree-ssa-coalesce.c.
21914 (var_map_base_init): Likewise. Renamed to
21915 compute_samebase_partition_bases.
21916 (partition_view_normal): Drop want_bases parameter.
21917 (partition_view_bitmap): Likewise.
21918 * tree-ssa-live.h: Adjust declarations.
21919 * tree-ssa-coalesce.c: Include explow.h.
21920 (build_ssa_conflict_graph): Process PARM_ and RESULT_DECLs's
21921 default defs at the entry point.
21922 (dump_part_var_map): New.
21923 (compute_optimized_partition_bases): New, called by...
21924 (coalesce_ssa_name): ... when flag_tree_coalesce_vars, instead
21925 of compute_samebase_partition_bases. Adjust.
21926 * alias.c (nonoverlapping_memrefs_p): Disregard gimple-regs.
21927 * cfgexpand.c (leader_merge): New.
21928 (get_rtl_for_parm_ssa_default_def): New.
21929 (set_rtl): Merge exprs and attrs, even for MEMs and non-SSA
21930 vars. Update DECL_RTL for PARM_DECLs and RESULT_DECLs too.
21931 (expand_one_stack_var_at): Handle anonymous SSA_NAMEs. Drop
21932 redundant MEM attr setting.
21933 (expand_one_stack_var_1): Handle anonymous SSA_NAMEs. Renamed
21935 (expand_one_stack_var): ... this. New wrapper to check and
21936 skip already expanded SSA partitions.
21937 (record_alignment_for_reg_var): New, factored out of...
21938 (expand_one_var): ... this.
21939 (expand_one_ssa_partition): New.
21940 (adjust_one_expanded_partition_var): New.
21941 (expand_one_register_var): Check and skip already expanded SSA
21943 (expand_used_vars): Don't create DECLs for anonymous SSA
21944 names. Expand all SSA partitions, then adjust all SSA names.
21945 (pass::execute): Replace the loops that set
21946 SA.partition_to_pseudo from partition leaders and cleared
21947 DECL_RTL for multi-location variables, and that which used to
21948 rename vars and set attrs, with one that clears DECL_RTL and
21949 checks that PARMs and RESULTs default_defs match DECL_RTL.
21950 * cfgexpand.h (get_rtl_for_parm_ssa_default_def): Declare.
21951 * emit-rtl.c (set_reg_attrs_for_parm): Handle NULL decl.
21952 * explow.c (promote_ssa_mode): New.
21953 * explow.h (promote_ssa_mode): Declare.
21954 * expr.c (expand_expr_real_1): Handle anonymous SSA_NAMEs.
21955 * function.c: Include cfgexpand.h.
21956 (use_register_for_decl): Handle SSA_NAMEs, anonymous or not.
21957 (use_register_for_parm_decl): Wrapper for the above to
21958 special-case the result_ptr.
21959 (rtl_for_parm): Ditto for get_rtl_for_parm_ssa_default_def.
21960 (split_complex_args): Take assign_parm_data_all argument.
21961 Pass it to rtl_for_parm. Set up rtl and context for split
21963 (assign_parms_augmented_arg_list): Adjust.
21964 (maybe_reset_rtl_for_parm): Reset DECL_RTL of parms with
21965 multiple locations. Recognize split complex args.
21966 (assign_parm_adjust_stack_rtl): Add all and parm arguments,
21967 for rtl_for_parm. For SSA-assigned parms, zero stack_parm.
21968 (assign_parm_setup_block): Prefer SSA-assigned location.
21969 (assign_parm_setup_reg): Likewise. Use entry_parm for equiv
21970 if stack_parm is NULL.
21971 (assign_parm_setup_stack): Prefer SSA-assigned location.
21972 (assign_parms): Maybe reset DECL_RTL of params. Adjust stack
21973 rtl before testing for pointer bounds. Special-case result_ptr.
21974 (expand_function_start): Maybe reset DECL_RTL of result.
21975 Prefer SSA-assigned location for result and static chain.
21976 Factor out DECL_RESULT and SET_DECL_RTL.
21977 * tree-outof-ssa.c (insert_value_copy_on_edge): Handle
21978 anonymous SSA names. Use promote_ssa_mode.
21979 (get_temp_reg): Likewise.
21980 (remove_ssa_form): Adjust.
21981 * stor-layout.c (layout_decl): Don't set mem attributes of
21983 * var-tracking.c (dataflow_set_clear_at_call): Take call_insn
21984 and get its reg_usage for reg invalidation.
21985 (compute_bb_dataflow): Pass it insn.
21986 (emit_notes_in_bb): Likewise.
21988 2015-07-23 Segher Boessenkool <segher@kernel.crashing.org>
21991 * config/rs6000/rs6000-protos.h (rs6000_emit_2insn_and): Change
21993 * config/rs6000/rs6000.c (rs6000_emit_dot_insn): New function.
21994 (rs6000_emit_2insn_and): Handle dot forms.
21995 * config/rs6000/rs6000.md (and<mode>3): Adjust.
21996 (*and<mode>3_2insn): Remove TODO. Adjust. Add "type" attr.
21997 (*and<mode>3_2insn_dot, *and<mode>3_2insn_dot2): New.
21999 2015-07-23 Richard Biener <rguenther@suse.de>
22001 * generic-match-head.c: Include cgraph.h.
22002 * gimple-match-head.c: Likewise.
22003 * tree-ssa-sccvn.c (free_scc_vn): Guard against newly created
22005 * fold-const.c (fold_binary_loc): Move &A ==/!= &B simplification...
22006 * match.pd: ...to a pattern here. Add &A ==/!= 0 simplification
22009 2015-07-23 Richard Biener <rguenther@suse.de>
22011 * gimple-fold.c (fold_gimple_cond): Do not require folding
22012 results to pass valid_gimple_rhs_p.
22013 * tree-cfg.h (fold_cond_expr_cond): Remove.
22014 * tree-cfg.c (fold_cond_expr_cond): Likewise.
22015 (make_edges): Do not call it.
22016 * tree-inline.c (tree_function_versioning): Likewise.
22018 2015-07-23 Tom de Vries <tom@codesourcery.com>
22020 * tree-parloops.c (gather_scalar_reductions): Add arg to call to
22021 vect_force_simple_reduction.
22022 * tree-vect-loop.c (vect_analyze_scalar_cycles_1): Same.
22023 (vect_is_simple_reduction_1): Add and handle
22024 need_wrapping_integral_overflow parameter.
22025 (vect_is_simple_reduction, vect_force_simple_reduction): Add and pass
22026 need_wrapping_integral_overflow parameter.
22027 (vectorizable_reduction): Add arg to call to vect_is_simple_reduction.
22028 * tree-vectorizer.h (vect_force_simple_reduction): Add parameter to
22031 2015-07-23 Yuri Rumyantsev <ysrumyan@gmail.com>
22033 PR tree-optimization/66926,66951
22034 * tree-vect-loop-manip.c (slpeel_tree_peel_loop_to_edge): Delete
22035 INNER_LOOP and fix up condition for renaming virtual operands.
22037 2015-07-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
22039 * combine.c (try_combine): Use std::swap instead of manually
22042 2015-07-23 Prachi Godbole <prachi.godbole@imgtec.com>
22044 * config/mips/i6400.md: New file.
22045 * config/mips/mips-cpus.def (mips32r6): Change to PROCESSOR_I6400.
22046 (mips64r6): Likewise.
22048 * config/mips/mips-tables.opt: Regenerate.
22049 * config/mips/mips.c (mips_rtx_cost_data): Add I6400 processor.
22050 (mips_issue_rate): Add support for i6400.
22051 (mips_multipass_dfa_lookahead): Likewise.
22052 * config/mips/mips.h (TUNE_I6400): Define.
22053 * config/mips/mips.md: Include i6400.md.
22054 (processor): Add i6400.
22055 * doc/invoke.texi (-march=@var{arch}): Add i6400.
22057 2015-07-23 Richard Biener <rguenther@suse.de>
22059 PR middle-end/66916
22060 * match.pd: Guard widen and sign-change comparison simplification
22063 2015-07-23 Richard Biener <rguenther@suse.de>
22065 PR tree-optimization/66945
22066 * tree-ssa-propagate.c (substitute_and_fold_dom_walker
22067 ::before_dom_children): Force the propagators idea of
22068 non-executable edges to materialize, not what the folder
22071 2015-07-23 Richard Biener <rguenther@suse.de>
22073 * gimple.h (gimple_cond_make_false): Use 0 != 0.
22074 (gimple_cond_make_true): Use 1 != 0.
22076 2015-07-22 DJ Delorie <dj@redhat.com>
22078 * config/msp430/t-msp430 (MULTILIB_DIRNAMES): Remove trailing
22081 * config/msp430/msp430.md (ashlhi3): Optimize shifts of subregs.
22082 (ashrhi3): Likewise.
22083 (lshrhi3): Likewise.
22084 (movhi): Take advantage of zero-extend to load small constants.
22085 (movpsi): Likewise.
22086 (and<mode>3): Likewise.
22087 (zero_extendqihi2): Likewise.
22088 (zero_extendqisi2): New.
22089 * config/msp430/constraints.md (N,O): New.
22090 * config/msp430/msp430.h (WORD_REGISTER_OPERATIONS): Define.
22092 2015-07-22 Uros Bizjak <ubizjak@gmail.com>
22095 * config/i386/i386.c (get_builtin_code_for_version): Add P_AES
22096 to enum feature_priority and feature_list.
22097 (fold_builtin_cpu): Add F_AES to enum processor_features
22098 and isa_names_table.
22100 2015-07-22 Ilya Enkovich <enkovich.gnu@gmail.com>
22103 * config/i386/linux-common.h (MPX_SPEC): Use linker option
22104 for 64bit target only.
22106 2015-07-22 Bernd Schmidt <bernds@codesourcery.com>
22108 * config/nvptx/nvptx.c: Expand some comments.
22110 2015-07-22 James Greenhalgh <james.greenhalgh@arm.com>
22112 * config/arm/cortex-a53 (cortex_53_advsimd): Rename to...
22113 (cortex_a53_advsimd): ...This.
22115 2015-07-22 Richard Biener <rguenther@suse.de>
22117 * genmatch.c (expr::gen_transform): Clarify error message
22118 and display location.
22120 2015-07-22 Richard Biener <rguenther@suse.de>
22122 * genmatch.c (struct operand): Add location member.
22123 (predicate, expr, c_expr, capture, if_expr, with_expr): Adjust
22125 (struct simplify): Remove match_location and result_location
22127 (elsehwere): Adjust.
22129 2015-07-22 Prachi Godbole <prachi.godbole@imgtec.com>
22131 * config/mips/m5100.md: New file.
22132 * config/mips/mips-cpus.def (m5100, m5101): Define.
22133 * config/mips/mips-tables.opt: Regenerate.
22134 * config/mips/mips.c (mips_rtx_cost_data): Add costs for m5100.
22135 * config/mips/mips.h (MIPS_ISA_LEVEL_SPEC): Map -march=m5100 and
22136 -march=m5101 to -mips32r5.
22137 (MIPS_ARCH_FLOAT_SPEC): Map -m5101 to -msoft-float.
22138 (MIPS_ISA_NAN2008_SPEC): Map -march=m51* to -mnan=2008 if
22140 * config/mips/mips.md: Include m5100.md.
22141 (processor): Add m5100.
22142 * doc/invoke.texi (-march=@var{arch}): Add m5100, m5101.
22144 2015-07-22 Robert Suchanek <robert.suchanek@imgtec.com>
22146 * config/mips/mips-cpus.def (interaptiv): Define.
22147 * config/mips/mips-tables.opt: Regenerate.
22148 * config/mips/mips.h (MIPS_ISA_LEVEL_SPEC): Map -march=interaptiv to
22150 (BASE_DRIVER_SELF_SPECS): Likewise but map to -mdsp.
22151 * doc/invoke.texi (-march=@var{arch}): Add interaptiv.
22153 2015-07-22 Jiong Wang <jiong.wang@arm.com>
22156 * config/aarch64/aarch64.h (REG_ALLOC_ORDER): Define.
22157 (HONOR_REG_ALLOC_ORDER): Define.
22159 2015-07-22 Richard Biener <rguenther@suse.de>
22161 PR tree-optimization/66952
22162 * tree-ssa-ifcombine.c (pass_tree_ifcombine::execute): For
22163 blocks we end up executing unconditionally reset all SSA
22164 info such as range and alignment.
22165 * tree-ssanames.h (reset_flow_sensitive_info): Declare.
22166 * tree-ssanames.c (reset_flow_sensitive_info): New function.
22168 2015-07-22 Charles Baylis <charles.baylis@linaro.org>
22170 * config/aarch64/aarch64-simd.md (vec_store_lanesoi_lane<mode>): Fix
22173 2015-07-22 Richard Biener <rguenther@suse.de>
22175 * genmatch.c (parser::parse_result): Properly handle
22176 match with result operands and conditions.
22178 2015-07-22 Charles Baylis <charles.baylis@linaro.org>
22181 * config/aarch64/aarch64-builtins.c (enum aarch64_type_qualifiers):
22182 Add qualifier_struct_load_store_lane_index.
22183 (aarch64_types_loadstruct_lane_qualifiers): Use
22184 qualifier_struct_load_store_lane_index for lane index argument for
22186 (aarch64_types_storestruct_lane_qualifiers): Ditto.
22187 (builtin_simd_arg): Add SIMD_ARG_STRUCT_LOAD_STORE_LANE_INDEX.
22188 (aarch64_simd_expand_args): Add new argument describing mode of
22189 builtin. Check lane bounds for arguments with
22190 SIMD_ARG_STRUCT_LOAD_STORE_LANE_INDEX.
22191 (aarch64_simd_expand_builtin): Emit error for incorrect lane indices
22192 if marked with SIMD_ARG_STRUCT_LOAD_STORE_LANE_INDEX.
22193 (aarch64_simd_expand_builtin): Handle arguments with
22194 qualifier_struct_load_store_lane_index. Pass machine mode of builtin to
22195 aarch64_simd_expand_args.
22196 * config/aarch64/aarch64-simd-builtins.def: Declare ld[234]_lane and
22197 vst[234]_lane with BUILTIN_VALLDIF.
22198 * config/aarch64/aarch64-simd.md:
22199 (aarch64_vec_load_lanesoi_lane<mode>): Use VALLDIF iterator. Perform
22200 endianness reversal on lane index.
22201 (aarch64_vec_load_lanesci_lane<mode>): Ditto.
22202 (aarch64_vec_load_lanesxi_lane<mode>): Ditto.
22203 (vec_store_lanesoi_lane<mode>): Use VALLDIF iterator.
22204 (vec_store_lanesci_lane<mode>): Ditto.
22205 (vec_store_lanesxi_lane<mode>): Ditto.
22206 (aarch64_ld2_lane<mode>): Use VALLDIF iterator. Remove endianness
22207 reversal of lane index.
22208 (aarch64_ld3_lane<mode>): Ditto.
22209 (aarch64_ld4_lane<mode>): Ditto.
22210 (aarch64_st2_lane<mode>): Ditto.
22211 (aarch64_st3_lane<mode>): Ditto.
22212 (aarch64_st4_lane<mode>): Ditto.
22213 * config/aarch64/arm_neon.h (__LD2_LANE_FUNC): Rename mode parameter
22214 to qmode. Add new mode parameter. Update uses.
22215 (__LD3_LANE_FUNC): Ditto.
22216 (__LD4_LANE_FUNC): Ditto.
22217 (__ST2_LANE_FUNC): Ditto.
22218 (__ST3_LANE_FUNC): Ditto.
22219 (__ST4_LANE_FUNC): Ditto.
22221 2015-07-22 Jonathan Wakely <jwakely@redhat.com>
22223 * doc/invoke.texi (Language Independent Options): Rename node to
22224 Diagnostic Message Formatting Options.
22226 2015-07-21 Vladimir Makarov <vmakarov@redhat.com>
22229 * lra-remat.c (operand_to_remat): Prevent using insns with input
22230 subregs processed separately by IRA.
22232 2015-07-21 Andrew MacLeod <amacleod@redhat.com>
22234 * ssa-iterators.h (has_zero_uses, has_single_use): Implement as
22236 (single_imm_use): Check for iterator node.
22237 (num_imm_uses): Likewise.
22238 * tree-ssa-operands.c (has_zero_uses_1): Delete.
22239 (single_imm_use_1): Check for iterator node.
22241 2015-07-21 Mike Frysinger <vapier@gentoo.org>
22242 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
22244 * configure.ac: Add check for new options in isl-0.15.
22245 * config.in, configure: Rebuilt.
22246 * graphite-blocking.c: Include <isl/constraint.h>
22247 * graphite-interchange.c, graphite-poly.c: Likewise.
22248 * graphhite-scop-detection.c, graphite-sese-to-poly.c: Likewise.
22249 * graphite.c: Likewise.
22250 * graphite-isl-ast-to-gimple.c: Include <isl/constraint.h> and
22252 * graphite-dependences.c: Include <isl/constraint.h>.
22253 (max_number_of_out_dimensions): Returns isl_stat.
22254 (extend_schedule_1): Likewise
22255 (extend_schedule): Corresponding changes.
22256 * graphite-optimize-isl.c: Include <isl/constraint.h> and
22258 (getSingleMap): Change return type of isl_stat.
22259 (optimize_isl): Conditionally use
22260 isl_options_set_schedule_serialize_sccs.
22261 * graphite-poly.h (isl_stat, isl_stat_ok): Define fallbacks
22262 if not HAVE_ISL_OPTIONS_SET_SCHEDULE_SERIALIZE_SCCS.
22264 2015-07-21 Georg-Johann Lay <avr@gjlay.de>
22267 * config/avr/avr-dimode.md (<extend_u>mulsidi3_insn)
22268 (<extend_u>mulsidi3): Don't use if !AVR_HAVE_MUL.
22270 2015-07-21 Richard Biener <rguenther@suse.de>
22272 PR tree-optimization/66948
22273 * genmatch.c (capture_info::walk_match): Also recurse to
22274 captures. Properly compute expr state from captures of
22276 * match.pd: Add single-use guards to
22277 (X & C2) >> C1 into (X >> C1) & (C2 >> C1) transform.
22279 2015-07-21 Nathan Sidwell <nathan@codesourcery.com>
22281 * config/nvptx/mkoffload.c (process): Add static destructor call.
22283 2015-07-21 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
22285 PR middle-end/66915
22286 * match.pd (A - B -> A + (-B)): Don't allow folding
22287 when type if a fixed-point type.
22289 2015-07-20 DJ Delorie <dj@redhat.com>
22291 * config/rl78/rl78-real.md (andqi3_real): Expand operands for clr1.
22292 (iorqi3_real): Likewise for set1.
22294 2015-07-20 Uros Bizjak <ubizjak@gmail.com>
22296 * config/i386/i386.c (ix86_md_asm_adjust): Handle DImode dest_mode
22299 2015-07-20 Aditya Kumar <hiraditya@msn.com>
22301 * graphite-isl-ast-to-gimple.c:
22302 Refactor so that each function can access 'region'. This will help
22303 maintain a parameter rename_map within a region.
22305 2015-07-20 Segher Boessenkool <segher@kernel.crashing.org>
22307 * config/rs6000/rs6000.md (*lt0_disi): New.
22309 2015-07-20 Segher Boessenkool <segher@kernel.crashing.org>
22312 * config/rs6000/constraints.md ("S", "T", "t"): Delete. Update
22313 "available letters" comment.
22314 * config/rs6000/predicates.md (mask_operand, mask_operand_wrap,
22315 mask64_operand, mask64_2_operand, any_mask_operand, and64_2_operand,
22316 and_2rld_operand): Delete.
22317 (and_operand): Adjust.
22318 (rotate_mask_operator): New.
22319 * config/rs6000/rs6000-protos.h (build_mask64_2_operands,
22320 includes_lshift_p, includes_rshift_p, includes_rldic_lshift_p,
22321 includes_rldicr_lshift_p, insvdi_rshift_rlwimi_p, extract_MB,
22322 extract_ME): Delete.
22323 (rs6000_is_valid_mask, rs6000_is_valid_and_mask,
22324 rs6000_is_valid_shift_mask, rs6000_is_valid_insert_mask,
22325 rs6000_insn_for_and_mask, rs6000_insn_for_shift_mask,
22326 rs6000_insn_for_insert_mask, rs6000_is_valid_2insn_and,
22327 rs6000_emit_2insn_and): New.
22328 * config/rs6000/rs6000.c (num_insns_constant): Adjust.
22329 (build_mask64_2_operands, includes_lshift_p, includes_rshift_p,
22330 includes_rldic_lshift_p, includes_rldicr_lshift_p,
22331 insvdi_rshift_rlwimi_p, extract_MB, extract_ME): Delete.
22332 (rs6000_is_valid_mask, rs6000_is_valid_and_mask,
22333 rs6000_insn_for_and_mask, rs6000_is_valid_shift_mask,
22334 s6000_insn_for_shift_mask, rs6000_is_valid_insert_mask,
22335 rs6000_insn_for_insert_mask, rs6000_is_valid_2insn_and,
22336 rs6000_emit_2insn_and): New.
22337 (print_operand) <'b', 'B', 'm', 'M', 's', 'S', 'W'>: Delete.
22338 (rs6000_rtx_costs) <CONST_INT>: Delete mask_operand and mask64_operand
22340 <NOT>: Don't fall through to next case.
22341 <AND>: Handle the various rotate-and-mask cases directly.
22342 <IOR>: Always cost as one insn.
22343 * config/rs6000/rs6000.md (splitter for bswap:SI): Adjust.
22344 (and<mode>3): Adjust expander for the new patterns.
22345 (and<mode>3_imm, and<mode>3_imm_dot, and<mode>3_imm_dot2,
22346 and<mode>3_imm_mask_dot, and<mode>3_imm_mask_dot2): Adjust condition.
22347 (*and<mode>3_imm_dot_shifted): New.
22348 (*and<mode>3_mask): Delete, rewrite as ...
22349 (and<mode>3_mask): ... New.
22350 (*and<mode>3_mask_dot, *and<mode>3_mask_dot): Rewrite.
22351 (andsi3_internal0_nomc): Delete.
22352 (*andsi3_internal6): Delete.
22353 (*and<mode>3_2insn): New.
22354 (insv, insvsi_internal, *insvsi_internal1, *insvsi_internal2,
22355 *insvsi_internal3, *insvsi_internal4, *insvsi_internal5,
22356 *insvsi_internal6, insvdi_internal, *insvdi_internal2,
22357 *insvdi_internal3): Delete.
22358 (*rotl<mode>3_mask, *rotl<mode>3_mask_dot, *rotl<mode>3_mask_dot2,
22359 *rotl<mode>3_insert, *rotl<mode>3_insert_2, *rotl<mode>3_insert_3,
22360 *rotl<mode>3_insert_4, two splitters for multi-precision shifts,
22361 *ior<mode>_mask): New.
22362 (extzv, extzvdi_internal, *extzvdi_internal1, *extzvdi_internal2,
22363 *rotlsi3_mask, *rotlsi3_mask_dot, *rotlsi3_mask_dot2,
22364 *ashlsi3_imm_mask, *ashlsi3_imm_mask_dot, *ashlsi3_imm_mask_dot2,
22365 *lshrsi3_imm_mask, *lshrsi3_imm_mask_dot, *lshrsi3_imm_mask_dot2):
22367 (ashr<mode>3): Delete expander.
22368 (*ashr<mode>3): Rename to ...
22369 (ashr<mode>3): ... This.
22370 (ashrdi3_no_power, *ashrdisi3_noppc64be): Delete.
22371 (*rotldi3_internal4, *rotldi3_internal5 and split,
22372 *rotldi3_internal6 and split, *ashldi3_internal4, ashldi3_internal5
22373 and split, *ashldi3_internal6 and split, *ashldi3_internal7,
22374 ashldi3_internal8 and split, *ashldi3_internal9 and split): Delete.
22375 (*anddi3_2rld, *anddi3_2rld_dot, *anddi3_2rld_dot2): Delete.
22376 (splitter for loading a mask): Adjust.
22377 * doc/md.texi (Machine Constraints): Remove q, S, T, t constraints.
22379 2015-07-20 Marek Polacek <polacek@redhat.com>
22381 * genemit.c (print_code, gen_exp, gen_insn, gen_expand, gen_split,
22382 output_add_clobbers, output_added_clobbers_hard_reg_p,
22383 gen_rtx_scratch): Remove declarations.
22385 2015-07-20 Marek Polacek <polacek@redhat.com>
22388 * doc/invoke.texi: Document -Wshift-overflow and -Wshift-overflow=.
22390 2015-07-20 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
22392 * simplify-rtx.c (simplify_unary_operation_1, NEG case):
22393 (neg (x ? (neg y) : y)) -> !x ? (neg y) : y.
22395 2015-07-20 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
22397 * combine.c (combine_simplify_rtx): Move simplification step
22398 before various transformations/substitutions.
22400 2015-07-20 Mikhail Maltsev <maltsevm@gmail.com>
22402 * wide-int.h (struct binary_traits): Fix partial specialization syntax.
22403 (struct int_traits): Likewise.
22405 2015-07-18 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
22407 * vmsdbgout.c (vmsdbgout_decl): Change name of prototyped
22408 function to vmsdbgout_function_decl.
22410 2015-07-18 Uros Bizjak <ubizjak@gmail.com>
22413 * config/i386/i386.c (ix86_expand_pextr): Reject extractions
22414 from misaligned positions.
22415 (ix86_expand_pinsr): Reject insertions to misaligned positions.
22417 2015-07-18 Sebastian Pop <s.pop@samsung.com>
22419 PR middle-end/46851
22420 PR middle-end/60340
22421 * Makefile.in: Removed omega.o.
22422 * common.opt: Document flag fcheck-data-deps as deprecated.
22423 * doc/invoke.texi: Remove documentation for fcheck-data-deps and
22424 its associated params: omega-max-vars, omega-max-geqs,
22425 omega-max-eqs, omega-max-wild-cards, omega-hash-table-size,
22426 omega-max-keys, omega-eliminate-redundant-constraints.
22427 * doc/loop.texi: Remove all the section on Omega.
22428 * graphite-blocking.c: Include missing params.h: it used to be
22429 included through tree-data-ref.h and omega.h.
22430 * graphite-isl-ast-to-gimple.c: Same.
22431 * graphite-optimize-isl.c: Same.
22432 * graphite-sese-to-poly.c: Same.
22433 * graphite.c: Same.
22436 * params.def: Removed PARAM_OMEGA_MAX_VARS, PARAM_OMEGA_MAX_GEQS,
22437 PARAM_OMEGA_MAX_EQS, PARAM_OMEGA_MAX_WILD_CARDS,
22438 PARAM_OMEGA_HASH_TABLE_SIZE, PARAM_OMEGA_MAX_KEYS, and
22439 PARAM_OMEGA_ELIMINATE_REDUNDANT_CONSTRAINTS.
22440 * passes.def: Remove pass_check_data_deps.
22441 * tree-data-ref.c (dump_affine_function): Declare DEBUG_FUNCTION.
22442 (dump_conflict_function): Same.
22443 (dump_subscript): Same.
22444 (print_direction_vector): Same.
22445 (print_dir_vectors): Same.
22446 (print_lambda_vector): Same.
22447 (print_dist_vectors): Same.
22448 (dump_data_dependence_relation): Same.
22449 (dump_data_dependence_relations): Same.
22450 (dump_dist_dir_vectors): Same.
22452 (init_omega_eq_with_af): Removed.
22453 (omega_extract_distance_vectors): Removed.
22454 (omega_setup_subscript): Removed.
22455 (init_omega_for_ddr_1): Removed.
22456 (init_omega_for_ddr): Removed.
22457 (ddr_consistent_p): Removed.
22458 (compute_affine_dependence): Do not use omega to check data
22460 (compute_data_dependences_for_bb): Removed.
22461 (analyze_all_data_dependences): Removed.
22462 (tree_check_data_deps): Removed.
22463 * tree-data-ref.h: Do not include omega.h.
22464 (compute_data_dependences_for_bb): Removed.
22465 (tree_check_data_deps): Removed.
22466 * tree-ssa-loop.c (pass_check_data_deps): Removed.
22467 (make_pass_check_data_deps): Removed.
22468 * tree-ssa-phiopt.c: Include params.h.
22469 * tree-vect-data-refs.c: Same.
22470 * tree-vect-slp.c: Same.
22472 2015-07-18 Uros Bizjak <ubizjak@gmail.com>
22474 * config/i386/i386.md (pushsf splitter): Pass curr_insn to
22475 find_constant_src. FAIL if find_constant_src returns NULL_RTX.
22476 (mem->fpreg splitters): Ditto.
22477 (general_operand->nonimmediate_operand splitter): Use explicit modes.
22478 Disable DFmode for TARGET_64BIT.
22480 2015-07-17 H.J. Lu <hongjiu.lu@intel.com>
22483 * config/i386/i386.c (ix86_expand_prologue): Replicate static
22484 chain on the stack.
22486 2015-07-17 Nathan Sidwell <nathan@codesourcery.com>
22488 * config/nvptx/mkoffload.c (process): Constify host data.
22489 * config/i386/intelmic-mkoffload.c (generate_target_descr_file):
22490 Constify host data.
22491 (generate_host_descr_file): Likewise.
22493 2015-07-17 Aditya Kumar <aditya.k7@samsung.com>
22494 Sebastian Pop <s.pop@samsung.com>
22496 PR middle-end/61929
22497 * graphite-dependences.c (add_pdr_constraints): Renamed
22498 pdr->extent to pdr->subscript_sizes.
22499 * graphite-interchange.c (build_linearized_memory_access): Add
22500 back all gcc_assert's that the "isl_int to isl_val conversion"
22501 patch has removed. Refactored.
22502 (pdr_stride_in_loop): Renamed pdr->extent to pdr->subscript_sizes.
22503 * graphite-poly.c (new_poly_dr): Same.
22504 (free_poly_dr): Same.
22505 * graphite-poly.h (struct poly_dr): Same.
22506 * graphite-scop-detection.c (stmt_has_simple_data_refs_p): Ignore
22507 all data references other than ARRAY_REF, MEM_REF, and COMPONENT_REF.
22508 * graphite-scop-detection.h: Fix space.
22509 * graphite-sese-to-poly.c (build_pbb_scattering_polyhedrons): Add
22510 back all gcc_assert's removed by a previous patch.
22511 (wrap): Remove the_isl_ctx global variable that the same patch has
22513 (build_loop_iteration_domains): Same.
22514 (add_param_constraints): Same.
22515 (pdr_add_data_dimensions): Same. Refactored.
22516 (build_poly_dr): Renamed extent to subscript_sizes.
22518 2015-07-17 Marek Polacek <polacek@redhat.com>
22520 * fold-const.c (fold_binary_loc): Move A - (A & B) into ~B & A ...
22521 * match.pd: ... here.
22523 2015-07-17 Nathan Sidwell <nathan@codesourcery.com>
22525 * config/nvptx/mkoffload.c (process): Constify target data.
22526 * config/i386/intelmic-mkoffload.c (generate_target_descr_file):
22527 Constify target data.
22528 (generate_target_offloadend_file): Likewise.
22530 2015-07-17 Yuri Rumyantsev <ysrumyan@gmail.com>
22532 * tree-vect-loop-manip.c (rename_variables_in_bb): Add argument
22533 to allow renaming of PHI arguments on edges incoming from outer
22534 loop header, add corresponding check before start PHI iterator.
22535 (slpeel_tree_duplicate_loop_to_edge_cfg): Introduce new bool
22536 variable DUPLICATE_OUTER_LOOP and set it to true for outer loops
22537 with true force_vectorize. Set-up dominator for outer loop too.
22538 Pass DUPLICATE_OUTER_LOOP as argument to rename_variables_in_bb.
22539 (slpeel_can_duplicate_loop_p): Allow duplicate of outer loop if it
22540 was marked with force_vectorize and has restricted cfg.
22541 (slpeel_tree_peel_loop_to_edge): Do not rename exit PHI uses in
22543 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment): Do not
22544 do peeling for outer loops.
22546 2015-07-17 Yvan Roux <yvan.roux@linaro.org>
22547 Matthias Klose <doko@ubuntu.com>
22549 * configure.ac: Move AC_ARG_WITH checks for native-system-header-dir,
22550 build-sysroot, sysroot from the `Miscenalleous configure options' to
22551 the `Directories' section and strip trailing `/' from with_sysroot.
22552 (gcc_gxx_include_dir): Don't strip a `/' sysroot value.
22553 * configure: Regenerated.
22555 2015-07-17 Uros Bizjak <ubizjak@gmail.com>
22558 * config/i386/i386.h (TARGET_HARD_SF_REGS): New define.
22559 (TARGET_HARD_DF_REGS): Ditto.
22560 (TARGET_HARD_XF_REGS): Ditto.
22561 * config/i386/i386.md (*movxf_internal): Add alternatives 9 and 10.
22562 Enable alternatives 9 and 10 only for !TARGET_HARD_XF_REG target.
22563 (*movdf_internal): Add alternatives 22, 23, 24 and 25. Enable
22564 alternatives 22, 23, 24 and 25 only for !TARGET_HARD_DF_REG target.
22565 (*movsf_internal): Add alternatives 16 and 17. Enable
22566 alternatives 16 and 17 only for !TARGET_HARD_SF_REG target.
22568 2015-07-17 Uros Bizjak <ubizjak@gmail.com>
22570 PR rtl-optimization/66891
22571 * calls.c (expand_call): Wrap precompute_register_parameters with
22572 NO_DEFER_POP/OK_DEFER_POP to prevent deferred pops.
22574 2015-07-16 Nathan Sidwell <nathan@codesourcery.com>
22576 * config/nvptx/mkoffload.c (process): Constify mapping variables.
22577 Define target data struct and initialize it.
22579 2015-07-16 Vladimir Makarov <vmakarov@redhat.com>
22581 PR rtl-optimization/66626
22582 * ira.h (emit-rtl.h): Include.
22583 (non_spilled_static_chain_regno_p): New.
22584 * ira-color.c (setup_profitable_hard_regs): Clear profitable regs
22585 unless it is non spilled static chain pseudo.
22586 (assign_hard_rego): Spill memory profitable allocno unless it is
22587 non spilled static chain pseudo.
22588 (allocno_spill_priority_compare): Put non spilled static chain
22589 pseudo at the end of sorted array.
22590 (improve_allocation): Do nothing if we have static chain and
22592 (allocno__priority_compare_func): Put non spilled static chain
22593 pseudo at the beginning of sorted array.
22594 (move_spill_restore): Ignore non spilled static chain pseudo.
22595 * ira-costs.c (find_costs_and_classes): Don't assign class NO_REGS
22596 to non spilled static chain pseudo.
22597 * lra-assigns.c (pseudo_compare_func): Put non spilled static chain
22598 pseudo at the beginning of sorted array.
22599 (spill_for): Spill non spilled static chain pseudo last.
22600 * lra-constraints.c (lra_constraints): Remove static chain pseudo
22601 check for equivalence.
22603 2015-07-16 Martin Liska <mliska@suse.cz>
22606 * ipa-prop.c (update_jump_functions_after_inlining): Create properly
22607 dst_ctx if it does not exist.
22609 2015-07-16 Martin Liska <mliska@suse.cz>
22611 * hash-set.h (remove): New function.
22612 (iterator): New iteration class for hash_set.
22614 2015-07-16 Richard Sandiford <richard.sandiford@arm.com>
22616 * genattrtab.c (make_canonical): Add a file_location parameter.
22617 Use fatal_at rather than fatal.
22618 (get_attr_value): Likewise. Update call to make_canonical.
22619 (fill_attr, make_length_attrs, optimize_attrs, gen_attr)
22620 (make_internal_attr): Update calls accordingly.
22622 2015-07-16 Richard Sandiford <richard.sandiford@arm.com>
22624 * read-md.h (message_with_line, error_with_line): Delete.
22625 * read-md.c (message_with_line, error_with_line): Delete.
22626 * gensupport.h: Include read-md.h.
22627 (md_rtx_info): New structure.
22628 (read_md_rtx): Use it. Return a bool success value.
22629 * gensupport.c (read_md_rtx): Likewise.
22630 * genattr-common.c (gen_attr): Take an md_rtx_info rather than an rtx.
22631 (main): Update after interface changes.
22632 * genattr.c (gen_attr): Take an md_rtx_info rather than an rtx.
22633 (main): Update after interface changes.
22634 * genattrtab.c (insn_code_number): Delete.
22635 (optimize_attrs): Add a max_insn_code parameter and use it instead
22636 of insn_code_number.
22637 (gen_attr): Take an md_rtx_info rather than an rtx and lineno.
22638 Use *_at rather than *_with_line functions.
22639 (gen_insn): Likewise.
22640 (gen_delay): Likewise.
22641 (gen_insn_reserv): Likewise.
22642 (gen_bypass): Take an md_rtx_info rather than an rtx.
22643 (main): Update after interface changes. Use a local max_insn_code
22644 variable instead of insn_code_number.
22645 * genautomata.c (gen_cpu_unit): Take an md_rtx_info rather than
22646 an rtx. Use fatal_at rather than fatal.
22647 (gen_query_cpu_unit, gen_bypass, gen_excl_set)
22648 (gen_presence_absence_set, gen_presence_set, gen_final_presence_set)
22649 (gen_absence_set, gen_final_absence_set, gen_automaton)
22650 (gen_automata_option, gen_reserv, gen_insn_reserv): Likewise.
22651 (main): Update after interface changes.
22652 * gencodes.c (gen_insn): Take an md_rtx_info rather than an rtx
22654 (main): Update after interface changes.
22655 * genconditions.c (main): Use new read_md_rtx interface.
22656 * genconfig.c (gen_insn): Take an md_rtx_info rather than an rtx.
22657 (gen_expand, gen_split, gen_peephole, gen_peephole2): Likewise.
22658 (main): Update after interface changes.
22659 * genemit.c (insn_code_number, insn_index_number): Delete.
22660 (gen_insn): Take an md_rtx_info rather than an rtx and lineno.
22661 Use fatal_at rather than fatal.
22662 (gen_expand): Take an md_rtx_info rather than an rtx. Use fatal_at
22664 (gen_split): Likewise.
22665 (main): Update after interface changes.
22666 * genextract.c (line_no): Delete.
22667 (gen_insn): Take an md_rtx_info rather than an rtx and lineno.
22668 Update call to walk_rtx.
22669 (VEC_safe_set_locstr): Add an md_rtx_info argument. Use message_at
22670 rather than message_with_line.
22671 (walk_rtx): Add an md_rtx_info argument. Update call to
22672 VEC_safe_set_locstr.
22673 (main): Update after interface changes.
22674 * genflags.c (gen_insn): Take an md_rtx_info rather than an rtx
22675 and lineno. Use error_at rather than separate message_with_line
22676 calls and have_error assignments.
22677 (main): Update after interface changes.
22678 * genmddump.c (main): Use new read_md_rtx interface.
22679 * genopinit.c (insn): Take an md_rtx_info rather than an rtx.
22680 (main): Update after interface changes.
22681 * genoutput.c (next_code_number): Delete.
22682 (gen_insn): Take an md_rtx_info rather than an rtx and lineno.
22683 (gen_peephole, gen_expand, gen_split): Likewise.
22684 (note_constraint): Likewise. Use *_at rather than *_with_line
22686 (main): Update after interface changes.
22687 * genpeep.c (gen_peephole): Take an md_rtx_info rather than an
22689 (main): Update after interface changes.
22690 * genpreds.c (process_define_predicate): Take an md_rtx_info rather
22691 than an rtx and lineno.
22692 (process_define_constraint): Likewise.
22693 (process_define_register_constraint): Likewise.
22694 (main): Update after interface changes.
22695 * genrecog.c (next_insn_code, pattern_lineno): Delete.
22696 (validate_pattern): Replace top-level rtx with an md_rtx_info.
22697 Use *_at rather than *_with_line functions.
22698 (match_pattern_2): Likewise.
22699 (match_pattern_1, match_pattern): Add an md_rtx_info parameter.
22700 (get_peephole2_pattern): Take an md_rtx_info rather than an rtvec.
22701 Use *_at rather than *_with_line functions.
22702 * gentarget-def.c (add_insn): New function.
22703 (main): Use it. Use new read_md_rtx interface.
22705 2015-07-16 Richard Sandiford <richard.sandiford@arm.com>
22707 * gensupport.h (compute_test_codes): Take a file_location rather
22708 than a line number.
22709 * gensupport.c (compute_test_codes): Likewise. Use *_at functions
22710 rather than *_with_line functions.
22711 (process_define_predicate): Update call to compute_test_codes.
22712 * genpreds.c (validate_exp): Take a file_location rather than a
22713 line number. Use *_at functions rather than *_with_line functions.
22714 (process_define_predicate): Update call to validate_exp.
22715 (constraint_data): Replace lineno field with a file_location.
22716 (add_constraint): Take a file_location rather than a line number.
22717 Use *_at functions rather than *_with_line functions. Fix error
22718 message for address constraints. Update after changes to
22719 validate_exp, constraint_data and compute_test_codes.
22720 (process_define_constraint): Update accordingly.
22721 (process_define_register_constraint): Likewise.
22723 2015-07-16 Richard Sandiford <richard.sandiford@arm.com>
22725 * genoutput.c (data): Use a file_location to record the source
22728 (idata, idata_end): Remove initialization.
22729 (constraint_data): Replace lineno with a file_location.
22730 (output_insn_data): Update after changes to data.
22731 (gen_insn, gen_peephole, gen_expand, gen_split): Likewise.
22732 (scan_operands): Likewise, using *_at rather than *_with_line
22734 (process_template): Likewise.
22735 (validate_insn_alternatives): Likewise.
22736 (validate_insn_operands): Likewise.
22737 (validate_optab_operands): Likewise.
22738 (init_insn_for_nothing): Initialize idata and idata_end.
22739 (note_constraint): Update after changes to constraint_data,
22740 using at rather than with_line functions.
22741 (mdep_constraint_len): Take a file_location rather than a
22742 line number. Use at rather than with_line functions.
22744 2015-07-16 Richard Sandiford <richard.sandiford@arm.com>
22746 * read-md.h (fatal_at): Declare.
22747 * read-md.c (fatal_at): New function.
22748 * genattrtab.c (insn_def, attr_desc, delay_desc): Use a file_location
22749 to record the source position.
22750 (check_attr_test): Take a file_location instead of a line number.
22751 Use fatal_at instead of fatal.
22752 (check_attr_value): Update after above changes, using "at"
22753 rather than "with_line" reporting functions.
22754 (convert_set_attr_alternative): Likewise.
22755 (gen_attr): Likewise.
22756 (check_defs): Likewise. Don't assign to read_md_filename.
22757 (gen_insn): Update initialization after above changes.
22758 (gen_delay): Likewise.
22759 (write_insn_cases): Print the filename for a define_peephole.
22760 (gen_insn_reserv): Take a line number as argument and update
22761 the call to check_attr_test.
22762 (main): Pass a line number to gen_insn_reserv.
22764 2015-07-16 Richard Sandiford <richard.sandiford@arm.com>
22766 * read-md.h (file_location): New structure.
22767 (directive_handler_t): Take a file_location rather than a line number.
22768 (message_at, error_at): Declare.
22769 (read_skip_construct): Delete.
22770 * read-md.c (message_with_line_1): Replace with...
22771 (message_at_1): ...this new function.
22772 (message_at, error_at): New functions.
22773 (message_with_line, error_with_line): Update to use message_at_1.
22774 (handle_enum): Take a file_location rather than a line number
22775 and use error_at for error reporting.
22776 (handle_include): Likewise.
22777 (read_skip_construct): Likewise. Make static.
22778 (handle_file): Update after above changes. Pass a file_location
22779 rather than a line number to handle_directive.
22780 * gensupport.c (queue_elem): Replace separate filename and lineno
22781 with a file_location.
22782 (queue_pattern): Replace filename and lineno arguments with a
22783 file_location. Update after change to queue_elem.
22784 (process_define_predicate): Replace lineno argument with a
22785 file_location and use error_at for error reporting. Update
22786 after above changes.
22787 (process_rtx): Likewise.
22788 (subst_pattern_match): Likewise.
22789 (get_alternatives_number): Likewise.
22790 (alter_predicate_for_insn): Likewise.
22791 (rtx_handle_directive): Likewise.
22792 (is_predicable): Update after above changes, using error_at rather
22793 than error_with_line.
22794 (has_subst_attribute): Likewise.
22795 (identify_predicable_attribute): Likewise.
22796 (alter_attrs_for_subst_insn): Likewise.
22797 (process_one_cond_exec): Likewise.
22798 (process_substs_on_one_elem): Likewise.
22799 (process_define_subst): Likewise.
22800 (check_define_attr_duplicates): Likewise.
22801 (read_md_rtx): Update after change to queue_elem.
22803 2015-07-16 Richard Sandiford <richard.sandiford@arm.com>
22805 * genoutput.c (next_index_number): Delete.
22806 (data): Remove index_number.
22807 (gen_insn, gen_peephole, gen_expand, gen_split): Update accordingly.
22808 (main): Remove manipulation of next_index_number.
22810 2015-07-16 Richard Sandiford <richard.sandiford@arm.com>
22812 * genattrtab.c (check_attr_value): Remove handling of null attrs.
22813 (make_canonical): Likewise.
22815 2015-07-16 Eric Botcazou <ebotcazou@adacore.com>
22817 * config/sparc/sparc.md (save_stack_nonlocal): Use adjust_address
22818 instead of adjust_address_nv.
22819 (restore_stack_nonlocal): Likewise.
22820 (nonlocal_goto): Likewise.
22822 2015-07-16 Tom de Vries <tom@codesourcery.com>
22824 * tree-parloops.c (create_parallel_loop): Handle case that exit phi does
22825 not have a corresponding loop header phi.
22827 2015-07-16 Tom de Vries <tom@codesourcery.com>
22829 * tree-parloops.c (create_loads_for_reductions): Handle case that
22830 reduction is unused.
22832 2015-07-16 Richard Biener <rguenther@suse.de>
22834 PR tree-optimization/66894
22835 * tree-vrp.c (register_edge_assert_for_2): Fix bad assumption
22836 about deriving NE_EXPR from truncated values.
22838 2015-07-16 Martin Liska <mliska@suse.cz>
22841 (object_allocator): Add new class.
22842 (pool_allocator::initialize): Use the underlying class.
22843 (pool_allocator::allocate): Likewise.
22844 (pool_allocator::remove): Likewise.
22845 (operator new): A new generic allocator.
22846 * asan.c (struct asan_mem_ref): Remove unused members.
22847 (asan_mem_ref_new): Replace new operator with
22848 object_allocator::allocate.
22849 (free_mem_ref_resources): Change deallocation.
22850 * cfg.c (initialize_original_copy_tables): Replace pool_allocator
22851 with object_allocator.
22852 * config/sh/sh.c (add_constant): Replace new operator with
22853 object_allocator::allocate.
22854 (sh_reorg): Change call to a release method.
22855 * cselib.c (struct elt_list): Remove unused members.
22856 (new_elt_list): Replace new operator with
22857 object_allocator::allocate.
22858 (new_elt_loc_list): Likewise.
22859 (new_cselib_val): Likewise.
22860 (unchain_one_elt_list): Change delete operator with remove method.
22861 (unchain_one_elt_loc_list): Likewise.
22862 (unchain_one_value): Likewise.
22863 (cselib_finish): Release newly added static allocators.
22864 * cselib.h (struct cselib_val): Remove unused members.
22865 (struct elt_loc_list): Likewise.
22866 * df-problems.c (df_chain_alloc): Replace pool_allocator with
22868 * df-scan.c (struct df_scan_problem_data): Likewise.
22869 (df_scan_alloc): Likewise.
22870 * df.h (struct dataflow): Likewise.
22871 * dse.c (struct read_info_type): Likewise.
22872 (struct insn_info_type): Likewise.
22873 (struct dse_bb_info_type): Likewise.
22874 (struct group_info): Likewise.
22875 (struct deferred_change): Likewise.
22876 (get_group_info): Likewise.
22877 (delete_dead_store_insn): Likewise.
22878 (free_read_records): Likewise.
22879 (replace_read): Likewise.
22880 (check_mem_read_rtx): Likewise.
22881 (scan_insn): Likewise.
22882 (dse_step1): Likewise.
22883 (dse_step7): Likewise.
22884 * et-forest.c (struct et_occ): Remove unused members.
22885 (et_new_occ): Use allocate instead of new operator.
22886 (et_new_tree): Likewise.
22887 (et_free_tree): Call release method explicitly.
22888 (et_free_tree_force): Likewise.
22889 (et_free_pools): Likewise.
22890 (et_split): Use remove instead of delete operator.
22891 * et-forest.h (struct et_node): Remove unused members.
22892 * ipa-cp.c: Change pool_allocator to object_allocator.
22893 * ipa-inline-analysis.c: Likewise.
22894 * ipa-profile.c: Likewise.
22895 * ipa-prop.c: Likewise.
22896 * ipa-prop.h: Likewise.
22897 * ira-build.c (initiate_cost_vectors): Cast return value.
22898 (ira_allocate_cost_vector): Likewise.
22899 * ira-color.c (struct update_cost_record): Remove unused members.
22900 * lra-int.h (struct lra_live_range): Likewise.
22901 (struct lra_copy): Likewise.
22902 (struct lra_insn_reg): Likewise.
22903 * lra-lives.c (lra_live_ranges_finish): Release new static allocator.
22904 * lra.c (new_insn_reg): Replace new operator with allocate method.
22905 (free_insn_regs): Same for operator delete.
22906 (finish_insn_regs): Release new static allocator.
22907 (finish_insn_recog_data): Likewise.
22908 (lra_free_copies): Replace delete operator with remove method.
22909 (lra_create_copy): Replace operator new with allocate method.
22910 (invalidate_insn_data_regno_info): Same for remove method.
22911 * regcprop.c (struct queued_debug_insn_change): Remove unused members.
22912 (free_debug_insn_changes): Replace delete operator with remove method.
22913 (replace_oldest_value_reg): Replace operator new with allocate method.
22914 (pass_cprop_hardreg::execute): Release new static variable.
22915 * sched-deps.c (sched_deps_init): Change pool_allocator to
22917 * sel-sched-ir.c: Likewise.
22918 * sel-sched-ir.h: Likewise.
22919 * stmt.c (expand_case): Likewise.
22920 (expand_sjlj_dispatch_table): Likewise.
22921 * tree-sra.c (struct access): Remove unused members.
22922 (struct assign_link): Likewise.
22923 (sra_deinitialize): Release newly added static pools.
22924 (create_access_1):Replace operator new with allocate method.
22925 (build_accesses_from_assign): Likewise.
22926 (create_artificial_child_access): Likewise.
22927 * tree-ssa-math-opts.c (pass_cse_reciprocals::execute): Change
22928 pool_allocator to object_allocator.
22929 * tree-ssa-pre.c: Likewise.
22930 * tree-ssa-reassoc.c: Likewise.
22931 * tree-ssa-sccvn.c (allocate_vn_table): Likewise.
22932 * tree-ssa-strlen.c: Likewise.
22933 * tree-ssa-structalias.c: Likewise.
22934 * var-tracking.c (onepart_pool_allocate): New function.
22935 (unshare_variable): Use the newly added function.
22936 (variable_merge_over_cur): Likewise.
22937 (variable_from_dropped): Likewise.
22938 (variable_was_changed): Likewise.
22939 (set_slot_part): Likewise.
22940 (emit_notes_for_differences_1): Likewise.
22941 (vt_finalize): Release newly added static pools.
22943 2015-07-16 Martin Jambor <mjambor@suse.cz>
22945 * ipa-prop.h (param_aa_status): Rename to ipa_param_aa_status. Adjust
22946 all uses. Fix two typos in its general comment.
22947 (func_body_info): Rename to ipa_func_body_info. Adjust all uses.
22949 2015-07-16 Ilya Enkovich <enkovich.gnu@gmail.com>
22951 * config/i386/linux-common.h (LINK_MPX): New.
22952 (MPX_SPEC): Use LINK_MPX instead of %(link_mpx).
22953 * configure.ac: Add HAVE_LD_BNDPLT_SUPPORT macro
22954 indicating '-z bndplt' support by linker.
22955 * configure: Regenerate.
22956 * config.in: Regenerate.
22958 2015-07-16 Richard Biener <rguenther@suse.de>
22960 * fold-const.c (fold_widened_comparison): Remove.
22961 (fold_sign_changed_comparison): Likewise.
22962 (fold_comparison): Move widened and sign-changed comparison
22964 * match.pd: ... to patterns here.
22965 * generic-match-head.c: Include target.h.
22966 * gimple-match-head.c: Likewise.
22968 2015-07-16 Richard Biener <rguenther@suse.de>
22970 * tree-ssa-dom.c (dom_valueize): New function.
22971 (record_temporary_equivalences): Also record equivalences
22972 for dominating stmts that have uses of equivalences we are
22975 2015-07-16 Bin Cheng <bin.cheng@arm.com>
22977 * tree-ssa-loop-ivopts.c (add_candidate): Remove call to
22978 add_autoinc_candidates.
22979 (add_iv_candidate_for_biv): Rename to add_iv_candidate_for_biv.
22980 (add_iv_candidate_for_biv): Rename from add_iv_candidate_for_biv.
22981 (add_old_ivs_candidates): Rename to add_iv_candidate_for_bivs.
22982 (add_iv_candidate_for_bivs): Rename from add_old_ivs_candidates.
22984 (add_iv_value_candidates): Rename to add_iv_candidate_for_use.
22985 (add_iv_candidate_for_use): Rename from add_iv_value_candidates.
22986 Remove parameter struct iv*. Call add_autoinc_candidates here.
22987 (add_derived_ivs_candidates): Rename to add_iv_candidate_for_uses.
22988 (add_iv_candidate_for_uses): Rename from add_derived_ivs_candidates.
22990 (find_iv_candidates): Call new functions.
22992 2015-07-16 Sandra Loosemore <sandra@codesourcery.com>
22994 * config/nios2/nios2.c (nios2_emit_stack_limit_check): Fix
22995 uninitialized-variable warning.
22997 2015-07-16 Kaz Kojima <kkojima@gcc.gnu.org>
23000 * config/sh/sh.md (movdi): Split simple reg move to two movsi
23001 when the destination is R0.
23003 2015-07-16 Uros Bizjak <ubizjak@gmail.com>
23006 * config/i386/i386-protos.h (ix86_expand_pextr): New prototype.
23007 * config/i386/i386.c (ix86_expand_pextr): New function.
23008 (ix86_expand_pinsr): Handle V1TI and TI modes. Call ix86_expand_pextr
23009 for non-lowpart subregs.
23010 * config/i386/i386.md (extzv<mode>): Expand with ix86_expand_pextr.
23011 (insv<mode>): Use SWI248 mode iterator.
23012 (insv<mode>_1): Ditto.
23014 2015-07-15 Aditya Kumar <aditya.k7@samsung.com>
23015 Sebastian Pop <s.pop@samsung.com>
23017 * graphite-sese-to-poly.c (rewrite_cross_bb_scalar_deps): Point
23018 iterator to use_stmt.
23020 2015-07-15 Aditya Kumar <aditya.k7@samsung.com>
23021 Sebastian Pop <s.pop@samsung.com>
23023 * graphite-scop-detection.c (build_scops_1): Discard scops for
23026 2015-07-15 Aditya Kumar <aditya.k7@samsung.com>
23027 Sebastian Pop <s.pop@samsung.com>
23029 * graphite-scop-detection.c (stmt_simple_for_scop_p): Bail out in
23030 case of a return statement in scop.
23032 2015-07-15 Aditya Kumar <aditya.k7@samsung.com>
23033 Sebastian Pop <s.pop@samsung.com>
23035 * graphite-sese-to-poly.c (parameter_index_in_region): Only handle
23036 INTEGER_TYPE parameters.
23037 (scan_tree_for_params): Handle REAL_CST, COMPLEX_CST, and
23038 VECTOR_CST in scan_tree_for_params.
23039 (add_conditions_to_domain): Only constrain on INTEGER_TYPE.
23041 2015-07-15 Andrew MacLeod <amacleod@redhat.com>
23043 * gimple-pretty-print.h: Don't include pretty-print.h.
23044 * tree-streamer.h: Don't include lto-streamer.h.
23045 * gimple-streamer.h: Include tree-streamer.h rather than lto-streamer.h.
23046 * gimple-streamer-in.c: Remove redundant includes.
23047 * gimple-streamer-out.c: Likewise.
23048 * ipa-devirt.c: Likewise.
23049 * ipa-icf.c: Likewise.
23050 * ipa-inline-analysis.c: Likewise.
23051 * ipa-polymorphic-call.c: Likewise.
23052 * ipa-profile.c: Likewise.
23053 * ipa-prop.c: Likewise.
23054 * ipa-pure-const.c: Likewise.
23055 * lto-cgraph.c: Likewise.
23056 * lto-streamer-in.c: Likewise.
23057 * lto-streamer-out.c: Likewise.
23058 * lto-streamer.c: Likewise.
23059 * tree-streamer-in.c: Likewise.
23060 * tree-streamer-out.c: Likewise.
23061 * tree-streamer.c: Likewise.
23063 2015-07-15 Andrew MacLeod <amacleod@redhat.com>
23065 * opth-gen.awk: Check for UNKNOWN_LOCATION rather than GCC_TM_H, don't
23067 * opts.c: Remove multiline #include comment.
23069 2015-07-15 Nathan Sidwell <nathan@codesourcery.com>
23071 * config/nvptx/mkoffload.c (process): Add C++ protection to
23074 2015-07-14 Michael Meissner <meissner@linux.vnet.ibm.com>
23077 * config/rs6000/rs6000.c (rs6000_pass_by_reference): Move test for
23078 null before IEEE 128-bit floating point support patch.
23080 2015-07-15 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
23082 * simplify-rtx.c (simplify_ternary_operation): Add simplification
23083 for (!c) != {0,...,0} ? a : b for vector modes.
23085 2015-07-15 Paolo Bonzini <bonzini@gnu.org>
23086 Martin Jambor <mjambor@suse.cz>
23088 * ipa-inline-analysis.c (unmodified_parm_or_parm_agg_item): Accept
23089 struct func_body_info* instead of struct ipa_node_params*, expecting
23090 fbi->info to be filled in. Replace throughout. Adjust call to
23091 ipa_load_from_parm_agg.
23092 (set_cond_stmt_execution_predicate): Accept struct func_body_info*
23093 instead of struct ipa_node_params*. Adjust calls to other functions
23094 so that they pass either fbi or fbi->info.
23095 (set_switch_stmt_execution_predicate): Likewise.
23096 (will_be_nonconstant_predicate): Likewise.
23097 (compute_bb_predicates): Likewise.
23098 (estimate_function_body_sizes): Move asserts earlier. Fill in
23099 struct func_body_info, replace parms_info with fbi.info. Adjust
23100 calls to functions that now accept struct func_body_info.
23101 * ipa-prop.c (param_aa_status, struct ipa_bb_info): Move to ipa-prop.h.
23102 (struct func_body_info): Likewise.
23103 (ipa_load_from_parm_agg_1): Rename to ipa_load_from_parm_agg,
23104 remove static. Adjust callers.
23105 (ipa_load_from_parm_agg): Remove.
23106 * ipa-prop.h (param_aa_status, ipa_bb_info): Move from ipa-prop.c.
23107 (func_body_info): Likewise.
23108 (ipa_load_from_parm_agg): Adjust prototype.
23110 2015-07-12 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
23112 * gensupport.c (rtx_handle_directive): Adjust.
23113 * read-rtl.c (apply_iterators): Take vector to add rtxs to
23114 instead of expr list rtx.
23115 (add_define_attr_for_define_subst): Likewise.
23116 (add_define_subst_attr): Likewise.
23117 (read_subst_mapping): Likewise.
23118 (read_rtx): Likewise.
23119 * rtl.h (read_rtx): Adjust.
23121 2015-07-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
23123 * config/aarch64/aarch64.md (*csinc2<mode>_insn): Use cinc mnemonic.
23125 2015-07-15 Uros Bizjak <ubizjak@gmail.com>
23128 * config/i386/i386.md (*tls_global_dynamic_64_<mode>): Depend on SP_REG.
23129 (*tls_local_dynamic_base_64_<mode>): Ditto.
23130 (*tls_local_dynamic_base_64_largepic): Ditto.
23131 (tls_global_dynamic_64_<mode>): Update expander pattern.
23132 (tls_local_dynamic_base_64_<mode>): Ditto.
23134 2015-07-15 Richard Biener <rguenther@suse.de>
23136 * fold-const.c (fold_binary_loc): Move bool_var != 0 -> bool_var
23137 and bool_var == 1 -> bool_var simplifications ...
23138 * match.pd: ... to patterns here. Factor out negate_expr_p
23139 cases from the A - B -> A + (-B) patterns as negate_expr_p
23140 predicate and add a -(A + B) -> (-B) - A pattern.
23142 2015-07-15 Robert Suchanek <robert.suchanek@imgtec.com>
23144 * config/mips/mips.c (mips_emit_save_slot_move): Fix typo.
23146 2015-07-15 Matthew Fortune <matthew.fortune@imgtec.com>
23147 Robert Suchanek <robert.suchanek@imgtec.com>
23149 * config/mips/mips.c (mips_int_mask): New enum.
23150 (mips_shadow_set): Likewise.
23151 (int_mask): New variable.
23152 (use_shadow_register_set_p): Change type to enum mips_shadow_set.
23153 (machine_function): Add int_mask and use_shadow_register_set.
23154 (mips_attribute_table): Add attribute handlers for interrupt and
23155 use_shadow_register_set.
23156 (mips_interrupt_mask): New static function.
23157 (mips_handle_interrupt_attr): Likewise.
23158 (mips_handle_use_shadow_register_set_attr): Likewise.
23159 (mips_use_shadow_register_set): Change return type to enum
23160 mips_shadow_set. Add argument handling for use_shadow_register_set
23162 (mips_interrupt_extra_called_saved_reg_p): Update the conditional to
23163 compare with mips_shadow_set enum.
23164 (mips_compute_frame_info): Add interrupt mask and
23165 use_shadow_register_set to per-function information structure.
23166 Add a stack slot for EPC unconditionally.
23167 (mips_expand_prologue): Compare use_shadow_register_set value
23168 with mips_shadow_set enum. Save EPC always in K1, clobber only K1 for
23169 masked interrupt register but in EIC mode use K0 and save Cause in K0.
23170 EPC saved and restored unconditionally. Use PMODE_INSN macro when
23171 copying the stack pointer from the shadow register set.
23172 * config/mips/mips.h (SR_IM0): New define.
23173 * config/mips/mips.md (mips_rdpgpr): Rename to...
23174 (mips_rdpgpr_<mode>): ...this. Use the Pmode iterator.
23175 * doc/extend.texi (Declaring Attributes of Functions): Document
23176 optional arguments for interrupt and use_shadow_register_set
23179 2015-07-15 Robert Suchanek <robert.suchanek@imgtec.com>
23181 * config/mips/mips.c (mips_compute_frame_info): Allow -mhard-float in
23182 interrupt attribute.
23183 (mips_expand_prologue): Disable the floating point unit in an ISR.
23184 * config/mips/mips.h (SR_COP1): New define.
23186 2015-07-15 Richard Biener <rguenther@suse.de>
23188 * genmatch.c (parser::peek, parser::peek_ident): Add argument
23189 to tell how many tokens to peek ahead (default 1).
23190 (parser::eat_token, parser::eat_ident): Return token consumed.
23191 (parser::parse_result): Parse new switch statement.
23192 * match.pd: Use case statements where appropriate.
23194 2015-07-15 Uros Bizjak <ubizjak@gmail.com>
23196 PR rtl-optimization/58066
23197 * calls.c (expand_call): Precompute register parameters before stack
23198 alignment is performed.
23200 2015-07-15 Uros Bizjak <ubizjak@gmail.com>
23202 PR rtl-optimization/66838
23203 * postreload.c (reload_cse_move2add): Also process
23204 CALL_INSN_FUNCTION_USAGE when resetting information of
23205 call-clobbered registers.
23207 2015-07-14 Sandra Loosemore <sandra@codesourcery.com>
23208 Cesar Philippidis <cesar@codesourcery.com>
23209 Chung-Lin Tang <cltang@codesourcery.com>
23211 * config/nios2/constraints.md (U, v): New constraints.
23212 * config/nios2/predicates.md (rdprs_dcache_operand): New.
23213 (ldstex_memory_operand): New.
23214 * config/nios2/sync.md: New file.
23215 * config/nios2/nios2.md (unspecv): Add new builtin function
23217 (rdprs, flushd, flushda, wrpie, eni): New patterns.
23218 (top-level): Include sync.md.
23219 * config/nios2/nios2.c (N2_FTYPES): Add function types for
23221 (N2_BUILTINS): Add arch field setting, add new builtins.
23222 (enum nios2_builtin_code,nios2_builtins): Update N2_BUILTIN_DEF
23224 (nios2_expand_ldst_builtin): Rename from nios2_expand_ldstio_builtin.
23225 Also handle ldex/stex/ldsex/stsex builtins.
23226 (nios2_expand_rdprs_builtin): New function.
23227 (nios2_expand_cache_builtin): New function.
23228 (nios2_expand_wrpie_builtin): New function.
23229 (nios2_expand_eni_builtin): New function.
23230 (nios2_expand_builtin): Add arch field handling and new builtin
23232 * doc/extend.texi (Altera Nios II Built-in Functions): Document
23234 * doc/md.texi (Machine Constraints): Document U and v constraints.
23236 2015-07-14 Sandra Loosemore <sandra@codesourcery.com>
23237 Cesar Philippidis <cesar@codesourcery.com>
23238 Chung-Lin Tang <cltang@codesourcery.com>
23240 * config/nios2/nios2-protos.h (nios2_expand_return): Declare.
23241 * config/nios2/nios2.c (struct GTY (()) machine_function): Add
23242 callee_save_reg_size and uses_anonymous_args fields.
23243 (nios2_compute_frame_layout): Update for CDX push.n/pop.n usage.
23244 (nios2_create_cfa_notes): New function.
23245 (nios2_adjust_stack): New function for adjusting stack.
23246 (nios2_expand_prologue): Update for CDX push.n/pop.n usage.
23247 Use nios2_adjust_stack.
23248 (nios2_expand_epilogue): Likewise.
23249 (nios2_expand_return): New function.
23250 (nios2_can_use_return_insn): Update for CDX pop.n usage.
23251 (nios2_setup_incoming_varargs): Set uses_anonymous_args flag.
23252 If TARGET_HAS_CDX, defer pushing regs to nios2_expand_prologue.
23253 * config/nios2/nios2.md (return): Use nios2_expand_return.
23255 2015-07-14 Sandra Loosemore <sandra@codesourcery.com>
23256 Cesar Philippidis <cesar@codesourcery.com>
23257 Chung-Lin Tang <cltang@codesourcery.com>
23259 * config/nios2/predicates.md (pop_operation): New.
23260 (ldwm_operation, stwm_operation): New.
23261 (nios2_hard_register_operand): New.
23262 * config/nios2/nios2-protos.h (pop_operation_p): Declare.
23263 (ldstwm_operation_p): Declare.
23264 (gen_ldstwm_peep): Declare.
23265 * config/nios2/nios2.c: (nios2_ldst_parallel): Declare.
23266 (base_reg_adjustment_p): New.
23267 (pop_operation_p): New.
23268 (CDX_LDSTWM_VALID_REGS_0, CDX_LDSTWM_VALID_REGS_1): Define.
23269 (nios2_ldstwm_regset_p): New.
23270 (ldstwm_operation_p): New.
23272 (nios2_ldst_parallel): New.
23273 (struct ldswm_operand): Declare.
23274 (compare_ldstwm_operands): New.
23275 (can_use_cdx_ldstw): New.
23276 (gen_ldstwm_peep): New.
23277 * config/nios2/nios2-ldstwm.sml: New.
23278 * config/nios2/nios2.md: Include ldstwm.md.
23279 * config/nios2/ldstwm.md: Generated.
23281 2015-07-14 Sandra Loosemore <sandra@codesourcery.com>
23282 Cesar Philippidis <cesar@codesourcery.com>
23283 Chung-Lin Tang <cltang@codesourcery.com>
23285 * config/nios2/nios2.h (LABEL_ALIGN): Define.
23286 (REG_ALLOC_ORDER): Define.
23287 (ADJUST_REG_ALLOC_ORDER): Define.
23288 (HONOR_REG_ALLOC_ORDER): Define.
23289 (CDX_REG_P): Define.
23290 (ANDCLEAR_INT): Define.
23291 * config/nios2/nios2-protos.h (nios2_add_insn_asm): Declare.
23292 (nios2_label_align): Declare.
23293 (nios2_cdx_narrow_form_p): Declare.
23294 (nios2_adjust_reg_alloc_order): Declare.
23295 * config/nios2/nios2.c (nios2_rtx_costs): Adjust for BMX zero-extract
23297 (nios2_large_unspec_reloc_p): New function, split from...
23298 (nios2_legitimate_pic_operand_p): ...here.
23299 (nios2_emit_move_sequence): Add *high/*lo_sum constant expand code.
23300 (nios2_print_operand_punct_valid_p): New.
23301 (nios2_print_operand): Add %., %!, %x, %y, %A. Remove %U.
23302 (split_mem_address): New.
23303 (split_alu_insn): New.
23305 (cdx_add_immed, cdx_and_immed, cdx_mov_immed, cdx_shift_immed): New.
23306 (enum nios2_add_insn_kind): New.
23307 (nios2_add_insn_names, nios2_add_insn_narrow): New.
23308 (nios2_add_insn_classify): New.
23309 (nios2_add_insn_asm): New.
23310 (nios2_cdx_narrow_form_p): New.
23311 (label_align, min_labelno, max_labelno): New.
23312 (nios2_reorg): New.
23313 (nios2_label_align): New.
23314 (nios2_adjust_reg_alloc_order): New.
23315 (TARGET_PRINT_OPERAND_PUNCT_VALID_P): Define.
23316 (TARGET_MACHINE_DEPENDENT_REORG): Define.
23317 * config/nios2/constraints.md (P): New constraint.
23318 * config/nios2/predicates.md (const_and_operand): New.
23319 (and_operand): New.
23320 (stack_memory_operand): New.
23321 * config/nios2/nios2.md (SP_REGNO): Define stack pointer regno.
23322 (length): Update to use nios2_cdx_narrow_form_p().
23323 (type): Add new insn type values.
23324 (control, alu, st, ld, shift): Update insn reservations with
23325 new insn type values.
23326 (*high, *lo_sum): Define new insn patterns for constant generation.
23327 (movqi_internal, movhi_internal, movsi_internal): Reduce
23328 alternatives, update asm template to handle CDX variants, update
23330 (zero_extendhisi2, zero_extendqi<mode>2): Add CDX variants to asm
23331 template, update type attributes.
23332 (extendhisi2, extendqi<mode>2): Likewise.
23333 (addsi3): Change to use function for asm string.
23334 (subsi3): Add CDX notation to asm template, update type attributes.
23335 (negsi3, one_cmplsi3): Likewise.
23336 (andsi3): New pattern, specialized from logical patterns.
23337 (<code>si3): Remove and case, combine alternatives, update asm
23339 (<shift_op>si3): Add CDX notation, update type attributes.
23340 (rotrsi3): Update type attribute.
23341 (*merge, extzv, insv): New insn patterns.
23342 (return): Change to define_expand.
23343 (simple_return): Add CDX notation, update type attributes.
23344 (indirect_jump): Add CDX notation.
23345 (jump): Update asm cases, update length attribute expression.
23346 (*call, *call_value, *sibcall, *sibcall_value): Add CDX variant.
23347 (nios2_cbranch): Update asm cases and length attribute expression
23348 to handle CDX variants.
23349 (nios2_cmp<code>): Update asm template.
23350 (nop): Add CDX notation, update type attributes.
23351 (trap): Add CDX notation.
23352 (ctrapsi4): Update asm cases and length attribute expression to
23353 handle CDX variant.
23354 * doc/md.texi (Machine Constraints): Document P constraint.
23356 2015-07-14 Sandra Loosemore <sandra@codesourcery.com>
23357 Cesar Philippidis <cesar@codesourcery.com>
23358 Chung-Lin Tang <cltang@codesourcery.com>
23360 * config/nios2/nios2.h (SMALL_INT12): New macro.
23361 * config/nios2/nios2.c (nios2_valid_addr_offset_p): New function.
23362 (nios2_valid_addr_expr_p): Use it.
23363 (nios2_symbol_ref_in_small_data_p): Disallow GP-relative addressing
23364 with implicit "io" instructions on R2.
23365 * config/nios2/constraints.md (w): New constraint.
23366 * config/nios2/predicates.md (ldstio_memory_operand): New.
23367 * config/nios2/nios2.md (ld<bhw_uns>io, ld<bh>io): Update memory
23368 operand predicate and constraint.
23369 (ld<bh>io_signed, st<bhw>io>): Likewise.
23370 * doc/md.texi (Machine Constraints): Document w constraint.
23372 2015-07-14 Sandra Loosemore <sandra@codesourcery.com>
23373 Cesar Philippidis <cesar@codesourcery.com>
23374 Chung-Lin Tang <cltang@codesourcery.com>
23376 * config/nios2/nios2.opt (march, mbmx, mcdx): New options.
23377 * config/nios2/nios2-opts.h (enum nios2_arch_type): New enum for
23378 Nios II architecture level.
23379 * config/nios2/nios2.h (TARGET_ARCH_R2): New define.
23380 (TARGET_CPU_CPP_BUILTINS): Add definition of __nios2_arch__ symbol.
23381 (OPTION_DEFAULT_SPECS): Define.
23382 (ASM_SPEC): Add -march= spec strings.
23383 * config/nios2/nios2.c (nios2_option_override): Check for
23384 conflicts involving new options.
23385 * config.gcc (nios2*-*-*): Support --with-arch=.
23386 * doc/invoke.texi (Option Summary, Nios II Options): Document
23387 -march=, -mbmx, and -mcdx.
23389 2015-07-14 Vladimir Makarov <vmakarov@redhat.com>
23391 PR rtl-optimization/66626
23392 * lra-constraints.c (lra_constraints): Prevent equivalence
23393 substitution for static chain pseudo in functions with nonlocal
23396 2015-07-14 Sandra Loosemore <sandra@codesourcery.com>
23398 * config/nios2/nios2.c (TEMP_REG_NUM): Move define up in file.
23399 (nios2_emit_stack_limit_check): Add size parameter. Handle
23400 -fstack-limit-symbol as well as -fstack-limit-register.
23401 (nios2_expand_prologue): Emit only a single stack limit check,
23402 even if multiple stack adjustments are required.
23403 (nios2_option_override): Diagnose unsupported combination of -fpic
23404 and -stack-limit-symbol.
23406 2015-07-14 H.J. Lu <hongjiu.lu@intel.com>
23408 * Makefile.in (top_srcdir): New.
23409 * configure.ac: Use AM_ZLIB.
23410 * configure: Regeneated.
23412 2015-07-14 Matthias Klose <doko@ubuntu.com>
23415 * config/rs6000/t-rs6000 (TM_H): Add rs6000-cpus.def.
23417 2015-07-14 Richard Biener <rguenther@suse.de>
23419 PR tree-optimization/66863
23420 * tree-vrp.c (register_edge_assert_for_2): Properly restrict
23421 what we record for conversion use stmt lhs inequalities.
23423 2015-07-14 Richard Biener <rguenther@suse.de>
23425 * genmatch.c (dt_node::gen_kids_1): Fix case label indenting.
23426 (decision_tree::gen_gimple): Likewise.
23428 2015-07-14 Tom de Vries <tom@codesourcery.com>
23430 * gcc.c (greater_than_spec_func): Declare forward.
23431 (LINK_COMMAND_SPEC, GOMP_SELF_SPECS): Use gt to ignore
23432 -ftree-parallelize-loops={0,1}.
23433 (static_spec_functions): Add greater_than_spec_func function with name
23435 (greater_than_spec_func): New function.
23437 2015-07-14 Richard Biener <rguenther@suse.de>
23439 * tree-ssa-dom.c (record_temporary_equivalences): Merge
23440 wideing type conversion case from record_equivalences_from_incoming_edge
23441 and use record_equality to record equivalences.
23442 (record_equivalences_from_incoming_edge): Call
23443 record_temporary_equivalences.
23445 2015-07-14 Richard Biener <rguenther@suse.de>
23447 * genmatch.c (struct operand): Add OP_IF and OP_WITH op_types.
23448 (struct if_expr): New.
23449 (struct with_expr): Likewise.
23450 (is_a_helper): Add helpers for if_expr and with_expr.
23451 (struct simplify): Add simplify_kind enum and member. Remove
23453 (simplify::simplify): Adjust.
23454 (lower_commutative): Adjust.
23455 (lower_opt_convert): Likewise.
23456 (lower_cond): Likewise.
23457 (replace_id): Handle with_expr and if_expr.
23458 (lower_for): Adjust.
23459 (dt_simplify::gen_1): New recursive worker, split out from ...
23460 (dt_simplify::gen): ... here. Deal with if and with expansion
23462 (capture_info::capture_info): Take context argument
23463 (capture_info::walk_result): Only analyze specific result.
23464 (parser::parse_result): New function.
23465 (parser::parse_simplify): Adjust to parse ifs with then end
23467 (parser::parse_if): Simplify.
23468 (parser::parse_pattern): Pass down simplify kind.
23469 * match.pd: Convert if structure to new syntax.
23471 2015-07-13 Marek Polacek <polacek@redhat.com>
23473 * rtl.c (rtx_equal_p_cb): Fix typo.
23475 2015-07-13 Andrew MacLeod <amacleod@redhat.com>
23477 * omega.h: Don't include config.h, don't include params.h again if
23478 omega.h has already been included.
23479 * graphite-poly.h: Include sese.h.
23480 * graphite.c: Don't include sese.h, remove needless includes and
23481 minimize includes outside #ifdef HAVE_isl block.
23482 * graphite-blocking.c: Don't include sese.h, remove needless includes,
23483 and wrap entire file in #ifdef HAVE_isl
23484 * graphite-dependences.c: Likewise.
23485 * graphite-interchange.c: Likewise.
23486 * graphite-isl-ast-to-gimple.c: Likewise.
23487 * graphite-optimize-isl.c: Likewise.
23488 * graphite-poly.c: Likewise.
23489 * graphite-scop-detection.c: Likewise.
23490 * graphite-sese-to-poly.c: Likewise.
23492 2015-07-13 Tom de Vries <tom@codesourcery.com>
23494 * omp-low.c (build_receiver_ref): Mark *.omp_data_i as non-trapping.
23496 2015-07-13 Renlin Li <renlin.li@arm.com>
23499 * simplify-rtx.c (simplify_const_relational_operation): Add
23500 side_effects_p checks.
23502 2015-07-12 Aldy Hernandez <aldyh@redhat.com>
23504 * bitmap.h: Fix double word typos.
23505 * builtins.c: Same.
23507 * cfgloopmanip.c: Same.
23510 * cgraphclones.c: Same.
23512 * config/aarch64/aarch64-protos.h: Same.
23513 * config/aarch64/aarch64.c: Same.
23514 * config/aarch64/aarch64.md: Same.
23515 * config/arm/arm.md: Same.
23516 * config/arm/arm1020e.md: Same.
23517 * config/arm/arm1026ejs.md: Same.
23518 * config/arm/arm926ejs.md: Same.
23519 * config/arm/fa526.md: Same.
23520 * config/arm/fa606te.md: Same.
23521 * config/arm/fa626te.md: Same.
23522 * config/arm/fa726te.md: Same.
23523 * config/arm/fmp626.md: Same.
23524 * config/darwin.c: Same.
23525 * config/epiphany/epiphany.c: Same.
23526 * config/frv/frv.c: Same.
23527 * config/ft32/ft32.c: Same.
23528 * config/gnu-user.h: Same.
23529 * config/h8300/constraints.md: Same.
23530 * config/i386/i386.c: Same.
23531 * config/i386/i386.md: Same.
23532 * config/iq2000/iq2000.md: Same.
23533 * config/mips/mips.c: Same.
23534 * config/mmix/mmix.md: Same.
23535 * config/moxie/moxie.c: Same.
23536 * config/nds32/nds32.md: Same.
23537 * config/pa/pa.h: Same.
23538 * config/rs6000/aix.h: Same.
23539 * config/rs6000/rs6000.h: Same.
23540 * config/sh/sh.c: Same.
23541 * config/tilegx/tilegx.md: Same.
23542 * config/tilepro/gen-mul-tables.cc: Same.
23545 * doc/invoke.texi: Same.
23547 * dwarf2out.c: Same.
23550 * genmatch.c: Same.
23551 * gimplify.c: Same.
23552 * hash-table.h: Same.
23553 * internal-fn.c: Same.
23555 * ipa-devirt.c: Same.
23558 * ipa-profile.c: Same.
23559 * ipa-prop.c: Same.
23560 * ipa-prop.h: Same.
23563 * reg-stack.c: Same.
23564 * regcprop.c: Same.
23569 * tree-inline.c: Same.
23570 * tree-sra.c: Same.
23571 * tree-ssa-dom.c: Same.
23572 * tree-ssa-loop-ivopts.c: Same.
23573 * tree-ssa-structalias.c: Same.
23574 * tree-ssa-tail-merge.c: Same.
23575 * tree-ssa-ter.c: Same.
23576 * tree-ssa-threadupdate.c: Same.
23577 * tree-ssa-uninit.c: Same.
23578 * tree-ssanames.c: Same.
23579 * tree-vect-loop-manip.c: Same.
23580 * tree-vrp.c: Same.
23582 * valtrack.c: Same.
23585 2015-07-12 Kugan Vivekanandarajah <kuganv@linaro.org>
23587 PR middle-end/66726
23588 * tree-ssa-phiopt.c(factor_out_conditional_conversion): New function.
23589 tree_ssa_phiopt_worker): Call it.
23591 2015-07-12 Kugan Vivekanandarajah <kuganv@linaro.org>
23593 * cse.c (cse_insn): Calculate src_eqv for ZERO_EXTRACT.
23594 * emit-rtl.c (set_for_reg_notes): Allow ZERO_EXTRACT to set
23597 2015-07-11 Marek Polacek <polacek@redhat.com>
23599 PR middle-end/66353
23600 * basic-block.h (has_abnormal_call_or_eh_pred_edge_p): New function.
23601 * ira-lives.c (bb_has_abnormal_call_pred): Remove function.
23602 (process_bb_node_lives): Call has_abnormal_call_or_eh_pred_edge_p
23603 rather than bb_has_abnormal_call_pred.
23604 * lra-lives.c (bb_has_abnormal_call_pred): Remove function.
23605 (process_bb_lives): Call has_abnormal_call_or_eh_pred_edge_p
23606 rather than bb_has_abnormal_call_pred.
23608 2015-07-10 Anatoly Sokolov <aesok@post.ru>
23610 * config/v850/v850.h (REG_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P,
23611 REG_OK_FOR_BASE_P_STRICT, REG_OK_FOR_INDEX_P_STRICT, STRICT,
23612 RTX_OK_FOR_BASE_P, GO_IF_LEGITIMATE_ADDRESS): Remove macros.
23613 * config/v850/v850.c (v850_reg_ok_for_base_, v850_rtx_ok_for_base_p,
23614 v850_legitimate_address_p): New functions.
23615 (TARGET_ADDR_SPACE_LEGITIMATE_ADDRESS_P): Define.
23617 2015-07-10 H.J. Lu <hongjiu.lu@intel.com>
23620 * config/i386/i386.c (ix86_function_ok_for_sibcall): Allow
23621 indirect sibcall with register arguments if register available
23622 for argument passing.
23623 (init_cumulative_args): Set cfun->machine->arg_reg_available
23624 to (cum->nregs > 0) or to true if function has a variable
23626 (function_arg_advance_32): Set cfun->machine->arg_reg_available
23627 to false if cum->nregs <= 0.
23628 * config/i386/i386.h (machine_function): Add arg_reg_available.
23630 2015-07-10 Uros Bizjak <ubizjak@gmail.com>
23632 * config/i386/sse.md (movdi_to_sse): Use gen_lowpart
23633 and gen_higpart instead of gen_rtx_SUBREG.
23634 * config/i386/i386.md
23635 (floatdi<X87MODEF:mode>2_i387_with_xmm splitter): Ditto.
23636 (read-modify peephole2): Use gen_lowpart instead of
23637 gen_rtx_SUBREG for operand 5.
23639 2015-07-10 Andrew MacLeod <amacleod@redhat.com>
23641 * config/tilepro/gen-mul-tables.cc (main): Change include list for
23643 * config/tilepro/mul-tables.c: Regenerate.
23644 * config/tilegx/mul-tables.c: Regenerate.
23646 2015-07-10 Richard Biener <rguenther@suse.de>
23648 * fold-const.c (distribute_bit_expr): Remove.
23649 (fold_binary_loc): Move simplifying (A & C1) + (B & C2)
23650 to (A & C1) | (B & C2), distributing (A & B) | (A & C)
23651 to A & (B | C) and simplifying A << C1 << C2 to ...
23652 * match.pd: ... patterns here.
23654 2015-07-10 Jiong Wang <jiong.wang@arm.com>
23656 * config/aarch64/aarch64.c (aarch64_load_symref_appropriately):
23657 Mark mem as READONLY and NOTRAP for PIC symbol.
23659 2015-07-10 Andrew MacLeod <amacleod@redhat.com>
23661 * gimple-predict.h: New file.
23662 (gimple_predict_predictor, gimple_predict_set_predictor,
23663 gimple_predict_outcome, gimple_predict_set_outcome,
23664 gimple_build_predict): Relocate here.
23665 * gimple.h (gimple_predict_predictor, gimple_predict_set_predictor,
23666 gimple_predict_outcome, gimple_predict_set_outcome): Move to
23668 * gimple.c (gimple_build_predict): Move to gimple-predict.h
23669 * basic-block.h: Don't include cfghooks.h.
23670 * backend.h: Don't include predict.h.
23671 * cfghooks.h: Include predict.h.
23672 * gimple-pretty-print.c: Include gimple-predict.h.
23673 * gimplify.c: Likwise.
23674 * predict.c: Adjust includes.
23675 * tree-inline.c: Likewise.
23676 * asan.c: Likewise.
23677 * auto-inc-dec.c: Likewise.
23678 * auto-profile.c: Likewise.
23679 * bb-reorder.c: Likewise.
23680 * builtins.c: Likewise.
23681 * caller-save.c: Likewise.
23682 * calls.c: Likewise.
23683 * cfganal.c: Likewise.
23684 * cfgbuild.c: Likewise.
23686 * cfgcleanup.c: Likewise.
23687 * cfgexpand.c: Likewise.
23688 * cfghooks.c: Likewise.
23689 * cfgloopanal.c: Likewise.
23690 * cfgloop.c: Likewise.
23691 * cfgloopmanip.c: Likewise.
23692 * cfgrtl.c: Likewise.
23693 * cgraph.c: Likewise.
23694 * cgraphunit.c: Likewise.
23695 * combine.c: Likewise.
23696 * cprop.c: Likewise.
23699 * dojump.c: Likewise.
23701 * except.c: Likewise.
23702 * expmed.c: Likewise.
23703 * expr.c: Likewise.
23704 * final.c: Likewise.
23705 * fold-const.c: Likewise.
23706 * function.c: Likewise.
23707 * fwprop.c: Likewise.
23708 * gcc-plugin.h: Likewise.
23709 * gcse.c: Likewise.
23710 * genattrtab.c: Likewise.
23711 * genemit.c: Likewise.
23712 * gengtype.c: Likewise.
23713 * genopinit.c: Likewise.
23714 * genoutput.c: Likewise.
23715 * genpreds.c: Likewise.
23716 * genrecog.c: Likewise.
23717 * gimple-fold.c: Likewise.
23718 * gimple-iterator.c: Likewise.
23719 * gimple-ssa-isolate-paths.c: Likewise.
23720 * gimple-ssa-strength-reduction.c: Likewise.
23721 * graph.c: Likewise.
23722 * graphite-blocking.c: Likewise.
23723 * graphite.c: Likewise.
23724 * graphite-dependences.c: Likewise.
23725 * graphite-interchange.c: Likewise.
23726 * graphite-isl-ast-to-gimple.c: Likewise.
23727 * graphite-optimize-isl.c: Likewise.
23728 * graphite-poly.c: Likewise.
23729 * graphite-scop-detection.c: Likewise.
23730 * graphite-sese-to-poly.c: Likewise.
23731 * haifa-sched.c: Likewise.
23732 * ifcvt.c: Likewise.
23733 * internal-fn.c: Likewise.
23734 * ipa-cp.c: Likewise.
23735 * ipa-profile.c: Likewise.
23736 * ipa-split.c: Likewise.
23737 * ipa-utils.c: Likewise.
23738 * ira-build.c: Likewise.
23739 * ira-color.c: Likewise.
23740 * ira-conflicts.c: Likewise.
23741 * ira-costs.c: Likewise.
23742 * ira-emit.c: Likewise.
23743 * ira-lives.c: Likewise.
23744 * jump.c: Likewise.
23745 * loop-doloop.c: Likewise.
23746 * loop-init.c: Likewise.
23747 * loop-invariant.c: Likewise.
23748 * loop-unroll.c: Likewise.
23749 * lower-subreg.c: Likewise.
23750 * lra-assigns.c: Likewise.
23752 * lra-coalesce.c: Likewise.
23753 * lra-constraints.c: Likewise.
23754 * lra-lives.c: Likewise.
23755 * lto-cgraph.c: Likewise.
23756 * lto-streamer-in.c: Likewise.
23757 * mode-switching.c: Likewise.
23758 * modulo-sched.c: Likewise.
23759 * omp-low.c: Likewise.
23760 * optabs.c: Likewise.
23761 * passes.c: Likewise.
23762 * postreload.c: Likewise.
23763 * postreload-gcse.c: Likewise.
23764 * profile.c: Likewise.
23765 * recog.c: Likewise.
23766 * regstat.c: Likewise.
23767 * reload1.c: Likewise.
23768 * reorg.c: Likewise.
23769 * rtlanal.c: Likewise.
23770 * sched-ebb.c: Likewise.
23771 * sel-sched-ir.c: Likewise.
23772 * sese.c: Likewise.
23773 * shrink-wrap.c: Likewise.
23774 * simplify-rtx.c: Likewise.
23775 * stmt.c: Likewise.
23776 * store-motion.c: Likewise.
23777 * tracer.c: Likewise.
23778 * trans-mem.c: Likewise.
23779 * tree-call-cdce.c: Likewise.
23780 * tree-cfg.c: Likewise.
23781 * tree-cfgcleanup.c: Likewise.
23782 * tree-chkp.c: Likewise.
23783 * tree-complex.c: Likewise.
23784 * tree-eh.c: Likewise.
23785 * tree-if-conv.c: Likewise.
23786 * tree-loop-distribution.c: Likewise.
23787 * tree-outof-ssa.c: Likewise.
23788 * tree-parloops.c: Likewise.
23789 * tree-predcom.c: Likewise.
23790 * tree-pretty-print.c: Likewise.
23791 * tree-profile.c: Likewise.
23792 * tree-sra.c: Likewise.
23793 * tree-ssa.c: Likewise.
23794 * tree-ssa-coalesce.c: Likewise.
23795 * tree-ssa-dce.c: Likewise.
23796 * tree-ssa-dom.c: Likewise.
23797 * tree-ssa-forwprop.c: Likewise.
23798 * tree-ssa-ifcombine.c: Likewise.
23799 * tree-ssa-loop-ch.c: Likewise.
23800 * tree-ssa-loop-im.c: Likewise.
23801 * tree-ssa-loop-ivcanon.c: Likewise.
23802 * tree-ssa-loop-ivopts.c: Likewise.
23803 * tree-ssa-loop-manip.c: Likewise.
23804 * tree-ssa-loop-prefetch.c: Likewise.
23805 * tree-ssa-loop-unswitch.c: Likewise.
23806 * tree-ssa-math-opts.c: Likewise.
23807 * tree-ssa-phiopt.c: Likewise.
23808 * tree-ssa-pre.c: Likewise.
23809 * tree-ssa-reassoc.c: Likewise.
23810 * tree-ssa-sink.c: Likewise.
23811 * tree-ssa-tail-merge.c: Likewise.
23812 * tree-ssa-threadedge.c: Likewise.
23813 * tree-ssa-threadupdate.c: Likewise.
23814 * tree-switch-conversion.c: Likewise.
23815 * tree-tailcall.c: Likewise.
23816 * tree-vect-data-refs.c: Likewise.
23817 * tree-vect-loop.c: Likewise.
23818 * tree-vect-loop-manip.c: Likewise.
23819 * tree-vectorizer.c: Likewise.
23820 * tree-vrp.c: Likewise.
23821 * ubsan.c: Likewise.
23822 * value-prof.c: Likewise.
23823 * varasm.c: Likewise.
23824 * var-tracking.c: Likewise.
23825 * config/aarch64/aarch64-builtins.c: Likewise.
23826 * config/aarch64/aarch64.c: Likewise.
23827 * config/aarch64/cortex-a57-fma-steering.c: Likewise.
23828 * config/alpha/alpha.c: Likewise.
23829 * config/arc/arc.c: Likewise.
23830 * config/arm/arm.c: Likewise.
23831 * config/avr/avr.c: Likewise.
23832 * config/bfin/bfin.c: Likewise.
23833 * config/c6x/c6x.c: Likewise.
23834 * config/cr16/cr16.c: Likewise.
23835 * config/cris/cris.c: Likewise.
23836 * config/darwin.c: Likewise.
23837 * config/darwin-c.c: Likewise.
23838 * config/epiphany/epiphany.c: Likewise.
23839 * config/epiphany/mode-switch-use.c: Likewise.
23840 * config/epiphany/resolve-sw-modes.c: Likewise.
23841 * config/fr30/fr30.c: Likewise.
23842 * config/frv/frv.c: Likewise.
23843 * config/ft32/ft32.c: Likewise.
23844 * config/h8300/h8300.c: Likewise.
23845 * config/i386/i386.c: Likewise.
23846 * config/i386/winnt.c: Likewise.
23847 * config/ia64/ia64.c: Likewise.
23848 * config/iq2000/iq2000.c: Likewise.
23849 * config/lm32/lm32.c: Likewise.
23850 * config/m32c/m32c.c: Likewise.
23851 * config/m32r/m32r.c: Likewise.
23852 * config/m68k/m68k.c: Likewise.
23853 * config/mcore/mcore.c: Likewise.
23854 * config/mep/mep.c: Likewise.
23855 * config/microblaze/microblaze.c: Likewise.
23856 * config/mips/mips.c: Likewise.
23857 * config/mmix/mmix.c: Likewise.
23858 * config/mn10300/mn10300.c: Likewise.
23859 * config/moxie/moxie.c: Likewise.
23860 * config/msp430/msp430.c: Likewise.
23861 * config/nds32/nds32.c: Likewise.
23862 * config/nds32/nds32-cost.c: Likewise.
23863 * config/nds32/nds32-fp-as-gp.c: Likewise.
23864 * config/nds32/nds32-intrinsic.c: Likewise.
23865 * config/nds32/nds32-isr.c: Likewise.
23866 * config/nds32/nds32-md-auxiliary.c: Likewise.
23867 * config/nds32/nds32-memory-manipulation.c: Likewise.
23868 * config/nds32/nds32-pipelines-auxiliary.c: Likewise.
23869 * config/nds32/nds32-predicates.c: Likewise.
23870 * config/nios2/nios2.c: Likewise.
23871 * config/nvptx/nvptx.c: Likewise.
23872 * config/pa/pa.c: Likewise.
23873 * config/pdp11/pdp11.c: Likewise.
23874 * config/rl78/rl78.c: Likewise.
23875 * config/rs6000/rs6000.c: Likewise.
23876 * config/rx/rx.c: Likewise.
23877 * config/s390/s390.c: Likewise.
23878 * config/sh/sh.c: Likewise.
23879 * config/sh/sh-mem.cc: Likewise.
23880 * config/sh/sh_optimize_sett_clrt.cc: Likewise.
23881 * config/sh/sh_treg_combine.cc: Likewise.
23882 * config/sparc/sparc.c: Likewise.
23883 * config/spu/spu.c: Likewise.
23884 * config/stormy16/stormy16.c: Likewise.
23885 * config/tilegx/tilegx.c: Likewise.
23886 * config/tilepro/tilepro.c: Likewise.
23887 * config/v850/v850.c: Likewise.
23888 * config/vax/vax.c: Likewise.
23889 * config/visium/visium.c: Likewise.
23890 * config/xtensa/xtensa.c: Likewise.
23892 2015-07-10 Richard Biener <rguenther@suse.de>
23894 * genmatch.c (dt_node::gen_kids_1): Fix indenting of case labels.
23895 (decision_tree::gen_gimple): Likewise.
23896 (decision_tree::gen_generic): Likewise.
23898 2015-07-10 Uros Bizjak <ubizjak@gmail.com>
23901 * config/i386/i386.c (ix86_md_asm_adjust): Emit movstrictqi
23902 sequence for TARGET_ZERO_EXTEND_WITH_AND targets.
23904 2015-07-10 Jakub Jelinek <jakub@redhat.com>
23906 PR middle-end/66820
23907 * gimplify.c (maybe_fold_stmt): Don't fold in ORT_PARALLEL
23908 or ORT_TASK contexts.
23909 * omp-low.c (lower_omp): Call fold_stmt even if taskreg_nesting_level
23912 2015-07-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
23914 * expr.c (expand_cond_expr_using_cmove): Fix typos in comment
23917 2015-07-10 Tom de Vries <tom@codesourcery.com>
23919 * tree-parloops.c (try_transform_to_exit_first_loop_alt): If not found,
23920 insert nit + 1 bound.
23922 2015-07-10 Richard Biener <rguenther@suse.de>
23924 * tree-if-conv.c (if_convertible_gimple_assign_stmt_p):
23925 Use ifcvt_could_trap_p also when not flag_tree_loop_if_convert_stores.
23926 (if_convertible_loop_p_1): For this always compute bb predicates.
23927 (if_convertible_loop_p): And free them.
23929 2015-07-10 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
23931 * ipa-icf.c (sem_item_optimizer::do_congruence_step): Fix typo
23934 2015-07-10 Richard Biener <rguenther@suse.de>
23936 PR tree-optimization/66823
23937 * tree-if-conv.c (memrefs_read_or_written_unconditionally): Fix
23938 inverted predicate.
23940 2015-07-09 Steve Ellcey <sellcey@imgtec.com>
23942 * config/mips/mti-linux.h (MIPS_SYSVERSION_SPEC): Update
23943 to handle mips[32|64]r3 and mips[32|64]r5.
23945 2015-07-09 Jakub Jelinek <jakub@redhat.com>
23947 PR middle-end/66633
23948 * tree-nested.c (get_static_chain): Or in a flag into
23949 info->static_chain_added.
23950 (get_frame_field, get_nonlocal_debug_decl): Likewise.
23951 (convert_nonlocal_omp_clauses, convert_local_omp_clauses): Revert
23952 2015-07-01 changes.
23953 (convert_tramp_reference_stmt): If a frame_decl or chain_decl
23954 is needed newly inside of GIMPLE_OMP_{PARALLEL,TASK,TARGET} body,
23957 PR tree-optimization/66718
23958 * tree-vect-stmts.c (struct simd_call_arg_info): Add simd_lane_linear
23960 (vect_simd_lane_linear): New function.
23961 (vectorizable_simd_clone_call): Support using linear arguments for
23962 addresses of arrays elements indexed by GOMP_SIMD_LANE result.
23964 2015-07-09 H.J. Lu <hongjiu.lu@intel.com>
23967 * config/i386/i386.c (iamcu_cost): Adjust variable shift costs.
23969 2015-07-09 Michael Meissner <meissner@linux.vnet.ibm.com>
23971 * config/rs6000/rs6000-protos.h (rs6000_secondary_reload_memory):
23972 Use machine mode, not enum machine_mode in the prototype.
23974 * config/rs6000/rs6000.h (FLOAT128_IEEE_P): New helper macros to
23975 classify 128-bit floating point support.
23976 (FLOAT128_IBM_P): Likewise.
23977 (FLOAT128_VECTOR_P): Likewise.
23978 (FLOAT128_2REG_P): Likewise.
23979 (SCALAR_FLOAT_MODE_NOT_VECTOR_P): Likewise.
23980 (SLOW_UNALIGNED_ACCESS): Add IEEE 128-bit floating point support.
23981 (HARD_REGNO_CALLER_SAVE_MODE): Likewise.
23982 (HARD_REGNO_CALL_PART_CLOBBERED): Likewise.
23984 * config/rs6000/rs6000.c (rs6000_hard_regno_nregs_internal): Drop
23985 tests against TFmode/TDmode, since those modes do not use VSX
23987 (rs6000_hard_regno_mode_ok): Add IEEE 128-bit floating point
23989 (rs6000_init_hard_regno_mode_ok): Use new helper macros instead of
23990 tests against TFmode, etc.
23991 (invalid_e500_subreg): Add tests against IFmode/KFmode.
23992 (reg_offset_addressing_ok_p): Likewise.
23993 (rs6000_legitimate_offset_address_p): Likewise.
23994 (rs6000_legitimize_address): Likewise.
23995 (rs6000_legitimize_reload_address): Likewise.
23996 (rs6000_legitimate_address_p): Clean up tests against TFmode and
23997 TDmode to use the new helper macros, which will include IFmode and
23999 (rs6000_emit_move): Likewise.
24000 (rs6000_darwin64_record_arg_recurse): Likewise.
24001 (print_operand): Likewise.
24002 (rs6000_member_type_forces_blk): Treat IEEE 128-bit floating point
24003 that uses a single vector register as a vector and not as a
24004 floating point register in terms of the calling sequence.
24005 (rs6000_discover_homogeneous_aggregate): Likewise.
24006 (rs6000_return_in_memory): Likewise.
24007 (init_cumulative_args): Likewise.
24008 (rs6000_function_arg_boundary): Likewise.
24009 (rs6000_function_arg_advance_1): Likewise.
24010 (rs6000_function_arg): Likewise.
24011 (rs6000_pass_by_reference): Likewise.
24012 (rs6000_gimplify_va_arg): Likewise.
24013 (rs6000_secondary_reload_memory): Use machine_mode not enum
24015 (rs6000_split_multireg_move): Use new helper macros.
24016 (spe_func_has_64bit_regs_p): Likewise.
24017 (rs6000_output_function_epilogue): Add IFmode/KFmode support.
24018 (output_toc): Use new helper macros.
24019 (rs6000_register_move_cost): Likewise.
24020 (rs6000_function_value): Add IEEE 128-bit floating point calling
24022 (rs6000_libcall_value): Likewise.
24023 (rs6000_scalar_mode_supported_p): Add support for IEEE 128-bit
24024 floating point support.
24025 (rs6000_vector_mode_supported_p): Likewise.
24027 2015-07-09 Vladimir Makarov <vmakarov@redhat.com>
24029 PR rtl-optimization/66782
24030 * lra-int.h (struct lra_insn_recog_data): Add comment about
24031 clobbered hard regs for arg_hard_regs.
24032 * lra.c (lra_set_insn_recog_data): Add clobbered hard regs.
24033 * lra-lives.c (process_bb_lives): Process clobbered hard regs.
24034 Add condition for processing used hard regs.
24035 * lra-constraints.c (update_ebb_live_info, inherit_in_ebb):
24036 Process clobbered hard regs.
24038 2015-07-09 Michael Matz <matz@suse.de>
24040 * genmatch.c (fprintf_indent): New function.
24041 (operand::gen_transform): Add indent parameter.
24042 (expr::gen_transform, c_expr::gen_transform,
24043 capture::gen_transform): Ditto and use fprintf_indent.
24044 (dt_node::gen, dt_node::gen_kids, dt_node::gen_kids_1): Ditto.
24045 (dt_operand::gen, dt_operand::gen_predicate,
24046 dt_operand::gen_match_op, dt_operand::gen_gimple_expr,
24047 dt_operand::gen_generic_expr, dt_simplify::gen): Ditto.
24048 (decision_tree::gen_gimple): Adjust calls and indent generated
24050 (decision_tree::gen_generic): Ditto.
24051 (write_predicate): Ditto.
24053 2015-07-08 Uros Bizjak <ubizjak@gmail.com>
24056 * config/i386/predicates.md (nonimmediate_gr_operand): New predicate.
24057 * config/i386/i386.md (not peephole2): Use nonimmediate_gr_operand.
24058 (varous peephole2s): Use {GENERAL,SSE,MMX}_REGNO_P instead of
24059 {GENERAL,SSE,MMX}_REG_P where appropriate.
24061 2015-07-09 Andrew MacLeod <amacleod@redhat.com>
24063 * lto-streamer.h: Don't include target.h and alloc-pool.h.
24064 * builtins.c: Adjust includes.
24065 * gimple.c: Likewise.
24066 * ipa-icf.c: Likewise.
24067 * lto-opts.c: Likewise.
24068 * ipa-reference.c: Likewise.
24069 * lto-section-out.c: Likewise.
24070 * lto-streamer-in.c: Likewise.
24071 * lto-streamer-out.c: Likewise.
24072 * opts-global.c: Likewise.
24073 * symtab.c: Likewise.
24074 * tree-chkp.c: Likewise.
24075 * tree-ssa-live.c: Likewise.
24076 * tree-streamer-in.c: Likewise.
24077 * tree-streamer-out.c: Likewise.
24078 * config/darwin.c: Likewise.
24079 * config/i386/winnt.c: Likewise.
24081 2015-07-09 Richard Biener <rguenther@suse.de>
24083 * genmatch.c (struct expr): Add force_single_use flag.
24084 (expr::expr): Add copy constructor.
24085 (capture_info::walk_match): Gather force_single_use captures.
24086 (expr::gen_transform): Use possibly NULLified sequence.
24087 (dt_simplify::gen): Apply single-use restrictions by NULLifying
24088 seq if any constrained expr is not single-use.
24089 (parser::parse_expr): Refactor to allow multiple flags. Handle
24090 's' flag to force an expression have a single-use if the pattern
24091 simplifies to more than one statement.
24092 * match.pd: Convert most single_use conditionals to :s flags.
24094 2015-07-09 H.J. Lu <hongjiu.lu@intel.com>
24096 * config/i386/iamcu.h (ASM_OUTPUT_ALIGNED_BSS): New.
24097 (ASM_OUTPUT_MAX_SKIP_ALIGN): Likewise.
24098 (ASM_MAYBE_OUTPUT_ENCODED_ADDR_RTX): Likewise.
24100 2015-07-09 Andrew MacLeod <amacleod@redhat.com>
24102 * flags.h: Don't include flag-types.h or options.h.
24103 * opts-common.c: Adjust includes.
24104 * opts-global.c: Likewise.
24105 * common/config/epiphany/epiphany-common.c: Likewise.
24107 2015-07-09 H.J. Lu <hongjiu.lu@intel.com>
24110 * config/i386/i386.h (ATTRIBUTE_ALIGNED_VALUE): Defined to 32
24113 2015-07-09 H.J. Lu <hongjiu.lu@intel.com>
24116 * config/i386/i386.c (ix86_return_in_memory): Return true
24117 if int_size_in_bytes returns negative for IA MCU.
24119 2015-07-09 Marek Polacek <polacek@redhat.com>
24121 PR tree-optimization/66718
24122 * Makefile.in (OBJS): Add gimple-laddress.o.
24123 * passes.def: Schedule pass_laddress.
24124 * timevar.def (DEFTIMEVAR): Add TV_GIMPLE_LADDRESS.
24125 * tree-pass.h (make_pass_laddress): Declare.
24126 * gimple-laddress.c: New file.
24128 2015-07-09 Richard Biener <rguenther@suse.de>
24130 * toplev.c (compile_file): Reset maximum_field_alignment after parsing.
24132 2015-07-09 Richard Biener <rguenther@suse.de>
24134 PR tree-optimization/66807
24135 * tree-chkp-opt.c (chkp_opt_fini): Free post dominator info.
24137 2015-07-08 Kito Cheng <kito.cheng@gmail.com>
24139 * function.c (stack_protect_epilogue): Use if rather than switch for
24140 check targetm.have_stack_protect_test.
24142 2015-07-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
24144 * defaults.h: Provide default for WORD_REGISTER_OPERATIONS.
24145 * config/alpha/alpha.h: Define WORD_REGISTER_OPERATIONS to 1.
24146 * config/arc/arc.h: Likewise.
24147 * config/arm/arm.h: Likewise.
24148 * config/bfin/bfin.h: Likewise.
24149 * config/epiphany/epiphany.h: Likewise.
24150 * config/frv/frv.h: Likewise.
24151 * config/ia64/ia64.h: Likewise.
24152 * config/iq2000/iq2000.h: Likewise.
24153 * config/lm32/lm32.h: Likewise.
24154 * config/m32r/m32r.h: Likewise.
24155 * config/mcore/mcore.h: Likewise.
24156 * config/mep/mep.h: Likewise.
24157 * config/microblaze/microblaze.h: Likewise.
24158 * config/mips/mips.h: Likewise.
24159 * config/mmix/mmix.h: Likewise.
24160 * config/mn10300/mn10300.h: Likewise.
24161 * config/nds32/nds32.h: Likewise.
24162 * config/nios2/nios2.h: Likewise.
24163 * config/pa/pa.h: Likewise.
24164 * config/rl78/rl78.h: Likewise.
24165 * config/sh/sh.h: Likewise.
24166 * config/sparc/sparc.h: Likewise.
24167 * config/stormy16/stormy16.h: Likewise.
24168 * config/tilegx/tilegx.h: Likewise.
24169 * config/tilepro/tilepro.h: Likewise.
24170 * config/v850/v850.h: Likewise.
24171 * config/xtensa/xtensa.h: Likewise.
24172 * doc/tm.texi: Regenerate.
24173 * doc/tm.texi.in: Adjust.
24174 * combine.c (simplify_set): Likewise.
24175 (simplify_comparison): Likewise.
24176 * expr.c (store_constructor): Likewise.
24177 * internal-fn.c (expand_arith_overflow): Likewise.
24178 * reload.c (push_reload): Likewise.
24179 (find_reloads): Likewise.
24180 (find_reloads_subreg_address): Likewise.
24181 * reload1.c (eliminate_regs_1): Likewise.
24182 * rtlanal.c (nonzero_bits1): Likewise.
24183 (num_sign_bit_copies1): Likewise.
24184 * simplify-rtx.c (simplify_truncation): Likewise.
24186 2015-07-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
24188 * auto-inc-dec.c (pass_inc_dec::execute): Don't check the value
24189 of AUTO_INC_DEC with the preprocessor.
24190 * combine.c (combine_instructions): Likewise.
24191 (can_combine_p): Likewise.
24192 (try_combine): Likewise.
24193 * emit-rtl.c (try_split): Likewise.
24194 * loop-invariant.c (calculate_loop_reg_pressure): Likewise.
24195 * lower-subreg.c (resolve_simple_move): Likewise.
24196 * lra.c (update_inc_notes): Likewise.
24197 * recog.c (asm_operand_ok): Likewise.
24198 (constrain_operands): Likewise.
24199 * regrename.c (scan_rtx_address): Likewise.
24200 * reload.c (update_auto_inc_notes): Likewise.
24201 (reg_inc_found_and_valid_p): Likewise.
24202 * reload1.c (reload): Likewise.
24203 (emit_input_reload_insns): Likewise.
24204 (delete_output_reload): Likewise.
24205 * sched-deps.c (init_insn_reg_pressure_info): Likewise.
24206 * valtrack.c (cleanup_auto_inc_dec): Likewise.
24208 2015-07-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
24210 * rtl.h: Always define AUTO_INC_DEC.
24211 * auto-inc-dec.c (pass_inc_dec::execute): Adjust.
24212 * combine.c (combine_instructions): Likewise.
24213 (can_combine_p): Likewise.
24214 (try_combine): Likewise.
24215 * emit-rtl.c (try_split): Likewise.
24216 * loop-invariant.c (calculate_loop_reg_pressure): Likewise.
24217 * lower-subreg.c (resolve_simple_move): Likewise.
24218 * lra.c (update_inc_notes): Likewise.
24219 * recog.c (asm_operand_ok): Likewise.
24220 (constrain_operands): Likewise.
24221 * regrename.c (scan_rtx_address): Likewise.
24222 * reload.c (update_auto_inc_notes): Likewise.
24223 (find_equiv_reg): Likewise.
24224 * reload1.c (reload): Likewise.
24225 (reload_as_needed): Likewise.
24226 (choose_reload_regs): Likewise.
24227 (emit_input_reload_insns): Likewise.
24228 (delete_output_reload): Likewise.
24229 * sched-deps.c (init_insn_reg_pressure_info): Likewise.
24230 * valtrack.c (cleanup_auto_inc_dec): Likewise.
24232 2015-07-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
24234 * combine.c (can_combine_def_p): Don't check the value of
24235 HARD_FRAME_POINTER_IS_FRAME_POINTER with the preprocessor.
24236 (combinable_i3pat): Likewise.
24237 (mark_used_regs_combine): Likewise.
24238 * regrename.c (rename_chains): Likewise.
24239 * reload.c (find_reloads_address): Likewise.
24240 * sel-sched.c (mark_unavailable_hard_regs): Likewise.
24242 2015-07-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
24244 * combine.c (update_rsp_from_reg_equal): Don't check if
24245 SHORT_IMMEDIATES_SIGN_EXTEND is defined.
24246 (reg_nonzero_bits_for_combine): Likewise.
24247 * config/alpha/alpha.h: Define SHORT_IMMEDIATES_SIGN_EXTEND to
24249 * config/frv/frv.h: Likewise.
24250 * config/lm32/lm32.h: Likewise.
24251 * config/mep/mep.h: Likewise.
24252 * config/mips/mips.h: Likewise.
24253 * config/rs6000/rs6000.h: Likewise.
24254 * config/sh/sh.h: Likewise.
24255 * config/tilegx/tilegx.h (enum reg_class): Likewise.
24256 * config/tilepro/tilepro.h: Likewise.
24257 * defaults.h: Add default for SHORT_IMMEDIATES_SIGN_EXTEND.
24258 * doc/tm.texi: Regenerate.
24259 * doc/tm.texi.in: Adjust.
24260 * rtlanal.c (nonzero_bits1): Likewise.
24262 2015-07-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
24264 * combine.c (do_SUBST_MODE): Don't check the value of HAVE_cc0
24265 with the preprocessor.
24266 (combine_instructions): Likewise.
24267 (try_combine): Likewise.
24269 (distribute_notes): Likewise.
24271 2015-07-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
24273 * combine.c (try_combine): Don't check if LOAD_EXTEND_OP is
24275 (simplify_set): Likewise.
24276 * cse.c (cse_insn): Likewise.
24277 * fold-const.c (fold_single_bit_test): Likewise.
24278 (fold_unary_loc): Likewise.
24279 * postreload.c (reload_cse_simplify_set): Likewise.
24280 (reload_cse_simplify_operands): Likewise.
24282 2015-07-08 Jiong Wang <jiong.wang@arm.com>
24284 * config/aarch64/aarch64.c (aarch64_unspec_may_trap_p): New function.
24285 (TARGET_UNSPEC_MAY_TRAP_P): Define as aarch64_unspec_may_trap_p.
24287 2015-07-08 H.J. Lu <hongjiu.lu@intel.com>
24290 * config/i386/x86intrin.h: Include <adxintrin.h> even if
24291 __iamcu__ is defined.
24293 2015-07-08 Uros Bizjak <ubizjak@gmail.com>
24295 * config/i386/predicates.md (general_reg_operand): Use GENERAL_REGNO_P.
24297 2015-07-08 Iain Sandoe <iain@codesourcery.com>
24300 * config/darwin.c (darwin_mark_decl_preserved): Exclude 'L' label
24301 names from preservation.
24303 2015-07-08 H.J. Lu <hongjiu.lu@intel.com>
24306 * config/i386/i386.c (type_natural_mode): Don't warn vector ABI
24308 (function_arg_advance_32): Don't pass vectors in registers for
24310 (function_arg_32): Likewise.
24311 (ix86_return_in_memory): Don't return vectors in registers for
24314 2015-07-08 Vladimir Makarov <vmakarov@redhat.com>
24316 PR middle-end/66334
24317 * ira-lives.c (process_bb_node_lives): Make conflicts with PIC
24318 hard regno live at the start of BB with incoming abnormal edges.
24319 * lra-lives.c (process_bb_lives): Ditto.
24321 2015-07-08 Thomas Schwinge <thomas@codesourcery.com>
24324 * config/nvptx/mkoffload.c (main): Create an offload image only in
24325 64-bit configurations.
24327 2015-07-08 Martin Liska <mliska@suse.cz>
24330 * tree-sra.c (create_access_1): Call ctor without brackets.
24331 (create_artificial_child_access): Likewise.
24333 2015-07-08 Richard Biener <rguenther@suse.de>
24335 PR tree-optimization/66793
24336 * gimple-ssa-isolate-paths.c (insert_trap_and_remove_trailing_statemen):
24337 Properly split the block after stmts ending it.
24339 2015-07-08 Richard Biener <rguenther@suse.de>
24341 PR tree-optimization/66794
24342 * passes.c (execute_function_todo): Assert that post-dominators
24344 * gimple-ssa-isolate-paths.c (gimple_ssa_isolate_erroneous_paths):
24345 Free post-dominators.
24347 2015-07-08 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
24349 * config/s390/s390.c (s390_init_frame_layout): Replace assertion
24352 2015-07-08 Uros Bizjak <ubizjak@gmail.com>
24354 * config/i386/i386.md (*jcc_bt<mode>): Only allow const_int values
24355 more than or equal 8 and less than 32 when optimizing for size.
24357 2015-07-08 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
24359 * config/arm/arm.c (arm_new_rtx_costs): Initialise cost to
24360 COSTS_N_INSNS (1) and increment it appropriately throughout the
24363 2015-07-08 Richard Biener <rguenther@suse.de>
24365 * fold-const.c (fold_widened_comparison): Fix inverted comparison.
24367 2015-07-08 Alan Modra <amodra@gmail.com>
24369 * target.def (rtx_costs): Remove "code" param, add "mode".
24370 * rtl.h (rtx_cost, get_full_rtx_cost): Update prototype.
24371 (set_src_cost, get_full_set_src_cost): Likewise. Move later in file.
24372 (set_rtx_cost, get_full_set_rtx_cost): Move later in file.
24373 * rtlanal.c (rtx_cost): Add "mode" parameter. Update targetm.rtx_costs
24374 call. Track mode when given in rtx.
24375 (get_full_rtx_cost): Add "mode" parameter. Update rtx_cost calls.
24376 (default_address_cost): Pass Pmode to rtx_cost.
24377 (insn_rtx_cost): Pass dest mode of set to set_src_cost.
24378 * cprop.c (try_replace_reg): Ensure set_rtx_cost is not called
24380 * cse.c (COST, COST_IN): Add MODE param. Update all uses.
24381 (notreg_cost): Add mode param. Use it.
24382 * gcse.c (want_to_gcse_p): Delete forward declaration. Add
24383 mode param and pass to set_src_cost. Update all calls.
24384 (hash_scan_set): Formatting.
24385 * hooks.c (hook_bool_rtx_int_int_int_intp_bool_false): Delete.
24386 (hook_bool_rtx_mode_int_int_intp_bool_false): New function.
24388 * expmed.c (init_expmed_one_conv, init_expmed_one_mode,
24389 init_expmed, expand_mult, mult_by_coeff_cost, expand_smod_pow2,
24390 emit_store_flag): Update set_src_cost and rtx_cost calls.
24391 * auto-inc-dec.c (attempt_change): Likewise.
24392 * calls.c (precompute_register_parameters): Likewise.
24393 * combine.c (expand_compound_operation, make_extraction,
24394 force_to_mode, distribute_and_simplify_rtx): Likewise.
24395 * dojump.c (prefer_and_bit_test): Likewise.
24396 * dse.c (find_shift_sequence): Likewise.
24397 * expr.c (compress_float_constant): Likewise.
24398 * fwprop.c (should_replace_address, try_fwprop_subst): Likewise.
24399 * ifcvt.c (noce_try_sign_mask): Likewise.
24400 * loop-doloop.c (doloop_optimize): Likewise.
24401 * loop-invariant.c (create_new_invariant): Likewise.
24402 * lower-subreg.c (shift_cost, compute_costs): Likewise.
24403 * optabs.c (avoid_expensive_constant, prepare_cmp_insn,
24404 lshift_cheap_p): Likewise.
24405 * postreload.c (reload_cse_simplify_set, reload_cse_simplify_operands,
24406 try_replace_in_use, reload_cse_move2add): Likewise.
24407 * reload1.c (calculate_elim_costs_all_insns, note_reg_elim_costly):
24409 * simplify-rtx.c (simplify_binary_operation_1): Likewise.
24410 * tree-ssa-loop-ivopts.c (computation_cost): Likewise.
24411 * tree-ssa-reassoc.c (optimize_range_tests_to_bit_test): Likewise.
24412 * tree-switch-conversion.c (emit_case_bit_tests): Likewise.
24413 * config/aarch64/aarch64.c (aarch64_rtx_costs): Delete "code" param,
24414 add "mode" param. Use "mode: in place of GET_MODE (x). Pass mode
24416 * config/alpha/alpha.c (alpha_rtx_costs): Likewise.
24417 * config/arc/arc.c (arc_rtx_costs): Likewise.
24418 * config/arm/arm.c (arm_rtx_costs): Likewise.
24419 * config/avr/avr.c (avr_rtx_costs, avr_rtx_costs_1): Likewise.
24420 * config/bfin/bfin.c (bfin_rtx_costs): Likewise.
24421 * config/c6x/c6x.c (c6x_rtx_costs): Likewise.
24422 * config/cris/cris.c (cris_rtx_costs): Likewise.
24423 * config/epiphany/epiphany.c (epiphany_rtx_costs): Likewise.
24424 * config/frv/frv.c (frv_rtx_costs): Likewise.
24425 * config/h8300/h8300.c (h8300_rtx_costs): Likewise.
24426 * config/i386/i386.c (ix86_rtx_costs): Likewise.
24427 * config/ia64/ia64.c (ia64_rtx_costs): Likewise.
24428 * config/iq2000/iq2000.c (iq2000_rtx_costs): Likewise.
24429 * config/lm32/lm32.c (lm32_rtx_costs): Likewise.
24430 * config/m32c/m32c.c (m32c_rtx_costs): Likewise.
24431 * config/m32r/m32r.c (m32r_rtx_costs): Likewise.
24432 * config/m68k/m68k.c (m68k_rtx_costs): Likewise.
24433 * config/mcore/mcore.c (mcore_rtx_costs): Likewise.
24434 * config/mep/mep.c (mep_rtx_cost): Likewise.
24435 * config/microblaze/microblaze.c (microblaze_rtx_costs): Likewise.
24436 * config/mips/mips.c (mips_rtx_costs): Likewise.
24437 * config/mmix/mmix.c (mmix_rtx_costs): Likewise.
24438 * config/mn10300/mn10300.c (mn10300_rtx_costs): Likewise.
24439 * config/msp430/msp430.c (msp430_rtx_costs): Likewise.
24440 * config/nds32/nds32-cost.c (nds32_rtx_costs_impl): Likewise.
24441 * config/nds32/nds32-protos.h (nds32_rtx_costs_impl): Likewise.
24442 * config/nds32/nds32.c (nds32_rtx_costs): Likewise.
24443 * config/nios2/nios2.c (nios2_rtx_costs): Likewise.
24444 * config/pa/pa.c (hppa_rtx_costs): Likewise.
24445 * config/pdp11/pdp11.c (pdp11_rtx_costs): Likewise.
24446 * config/rl78/rl78.c (rl78_rtx_costs): Likewise.
24447 * config/rs6000/rs6000.c (rs6000_rtx_costs): Likewise.
24448 * config/s390/s390.c (s390_rtx_costs): Likewise.
24449 * config/sh/sh.c (sh_rtx_costs): Likewise.
24450 * config/sparc/sparc.c (sparc_rtx_costs): Likewise.
24451 * config/spu/spu.c (spu_rtx_costs): Likewise.
24452 * config/stormy16/stormy16.c (xstormy16_rtx_costs): Likewise.
24453 * config/tilegx/tilegx.c (tilegx_rtx_costs): Likewise.
24454 * config/tilepro/tilepro.c (tilepro_rtx_costs): Likewise.
24455 * config/v850/v850.c (v850_rtx_costs): Likewise.
24456 * config/vax/vax.c (vax_rtx_costs): Likewise.
24457 * config/visium/visium.c (visium_rtx_costs): Likewise.
24458 * config/xtensa/xtensa.c (xtensa_rtx_costs): Likewise.
24459 * config/aarch64/aarch64.c (aarch64_rtx_mult_cost): Change type of
24460 "code" param, and pass as outer_code to first rtx_cost call. Pass
24461 mode to rtx_cost calls.
24462 (aarch64_address_cost, aarch64_if_then_else_costs): Update rtx_cost
24464 (aarch64_rtx_costs_wrapper): Update.
24465 * config/arm/arm.c (arm_rtx_costs_1, arm_size_rtx_costs,
24466 arm_unspec_cost, arm_new_rtx_costs, arm_slowmul_rtx_costs): Update
24468 * config/avr/avr.c (avr_final_prescan_insn): Update set_src_cost
24469 and rtx_cost calls.
24470 (avr_operand_rtx_cost): Similarly.
24471 (avr_rtx_costs_1): Correct mode passed to avr_operand_rtx_cost
24472 for subexpressions of ZERO_EXTEND, SIGN_EXTEND and COMPARE.
24473 * config/mips/mips.c (mips_stack_address_p): Comment typo.
24474 (mips_binary_cost): Update rtx_cost and set_src_cost calls.
24475 (mips_rtx_costs): Use GET_MODE (x) to detect const_int.
24476 * config/mn10300/mn10300.c (mn10300_address_cost): Pass Pmode to
24478 (mn10300_rtx_costs): Correct mode passed to mn10300_address_cost.
24479 * config/rs6000/rs6000.c (rs6000_debug_rtx_costs): Update.
24480 * config/sh/sh.c (and_xor_ior_costs): Update rtx_cost call.
24481 * doc/tm.texi: Regenerate.
24483 2015-07-07 Andrew MacLeod <amacleod@redhat.com>
24485 * tree-core.h: Include symtab.h.
24486 * rtl.h: Include hard-reg-set.h but not flags.h.
24487 (HARD_CONST): Remove condition compilation involving HARD_CONST since
24488 hard-reg-set.h is always included.
24489 * regs.h: Don't include hard-reg-set.h or rtl.h.
24490 * cfg.h: Include dominance.h.
24491 * gimple.h: Include tree-ssa-alias.h and gimple-expr.h.
24492 * backend.h: New. Aggregate commonly used backend header files.
24493 * gimple-ssa.h: Don't include tree-hasher.h.
24494 * ssa.h: New. Aggregate commonly used SSA header files.
24495 * regset.h: Remove bitmap.h and hard-reg-set.h #includes.
24496 * sel-sched-ir.h: Flatten includes.
24497 * lra-int.h: Flatten completely.
24498 * sel-sched-dump.h: Flatten includes.
24499 * ira-int.h: Flatten includes.
24500 * gimple-streamer.h: Remove all includes.
24501 * cfgloop.h: Remove all #includes except cfgloopmanip.h.
24502 * resource.h: Flatten hard-reg-set.h and df.h.
24503 * sched-int.h: Flatten insn-arrt.h and df.h.
24504 * valtrack.h: flatten bitmap.h, df.h, and rtl.h
24505 * df.h: Flatten includes, leaving regset.h, alloc-pool.h and timevar.h.
24506 * genattrtab.c (write_header): Adjust generated includes.
24507 * genautomata.c (main): Likewise.
24508 * genconditions.c (write-header): Likewise.
24509 * genemit.c (main): Likewise.
24510 * gengtype.c (open_base_files): Likewise.
24511 * genopinit.c (main): Likewise.
24512 * genoutput.c (output_prologue): Likewise.
24513 * genpeep.c (main): Likewise.
24514 * genpreds.c (write_insn_preds_c): Likewise.
24515 * genrecog.c (write_header): Likewise.
24516 * alias.c: Adjust includes.
24517 * asan.c: Likewise.
24518 * attribs.c: Likewise.
24519 * auto-inc-dec.c: Likewise.
24520 * auto-profile.c: Likewise.
24521 * bb-reorder.c: Likewise.
24522 * bt-load.c: Likewise.
24523 * builtins.c: Likewise.
24524 * caller-save.c: Likewise.
24525 * calls.c: Likewise.
24526 * ccmp.c: Likewise.
24528 * cfganal.c: Likewise.
24529 * cfgbuild.c: Likewise.
24530 * cfgcleanup.c: Likewise.
24531 * cfgexpand.c: Likewise.
24532 * cfghooks.c: Likewise.
24533 * cfgloop.c: Likewise.
24534 * cfgloopanal.c: Likewise.
24535 * cfgloopmanip.c: Likewise.
24536 * cfgrtl.c: Likewise.
24537 * cgraph.c: Likewise.
24538 * cgraphbuild.c: Likewise.
24539 * cgraphclones.c: Likewise.
24540 * cgraphunit.c: Likewise.
24541 * cilk-common.c: Likewise.
24542 * combine-stack-adj.c: Likewise.
24543 * combine.c: Likewise.
24544 * compare-elim.c: Likewise.
24545 * convert.c: Likewise.
24546 * coverage.c: Likewise.
24547 * cppbuiltin.c: Likewise.
24548 * cprop.c: Likewise.
24550 * cselib.c: Likewise.
24551 * data-streamer-in.c: Likewise.
24552 * data-streamer-out.c: Likewise.
24553 * data-streamer.c: Likewise.
24554 * dbxout.c: Likewise.
24557 * debug.c: Likewise.
24558 * df-core.c: Likewise.
24559 * df-problems.c: Likewise.
24560 * df-scan.c: Likewise.
24562 * dojump.c: Likewise.
24563 * dominance.c: Likewise.
24564 * domwalk.c: Likewise.
24565 * double-int.c: Likewise.
24567 * dumpfile.c: Likewise.
24568 * dwarf2asm.c: Likewise.
24569 * dwarf2cfi.c: Likewise.
24570 * dwarf2out.c: Likewise.
24571 * emit-rtl.c: Likewise.
24572 * et-forest.c: Likewise.
24573 * except.c: Likewise.
24574 * explow.c: Likewise.
24575 * expmed.c: Likewise.
24576 * expr.c: Likewise.
24577 * final.c: Likewise.
24578 * fixed-value.c: Likewise.
24579 * fold-const.c: Likewise.
24580 * function.c: Likewise.
24581 * fwprop.c: Likewise.
24582 * gcc-plugin.h: Likewise.
24583 * gcse-common.c: Likewise.
24584 * gcse.c: Likewise.
24585 * generic-match-head.c: Likewise.
24586 * ggc-page.c: Likewise.
24587 * gimple-builder.c: Likewise.
24588 * gimple-expr.c: Likewise.
24589 * gimple-fold.c: Likewise.
24590 * gimple-iterator.c: Likewise.
24591 * gimple-low.c: Likewise.
24592 * gimple-match-head.c: Likewise.
24593 * gimple-pretty-print.c: Likewise.
24594 * gimple-ssa-isolate-paths.c: Likewise.
24595 * gimple-ssa-strength-reduction.c: Likewise.
24596 * gimple-streamer-in.c: Likewise.
24597 * gimple-streamer-out.c: Likewise.
24598 * gimple-walk.c: Likewise.
24599 * gimple.c: Likewise.
24600 * gimplify-me.c: Likewise.
24601 * gimplify.c: Likewise.
24602 * godump.c: Likewise.
24603 * graph.c: Likewise.
24604 * graphite-blocking.c: Likewise.
24605 * graphite-dependences.c: Likewise.
24606 * graphite-interchange.c: Likewise.
24607 * graphite-isl-ast-to-gimple.c: Likewise.
24608 * graphite-optimize-isl.c: Likewise.
24609 * graphite-poly.c: Likewise.
24610 * graphite-scop-detection.c: Likewise.
24611 * graphite-sese-to-poly.c: Likewise.
24612 * graphite.c: Likewise.
24613 * haifa-sched.c: Likewise.
24614 * hw-doloop.c: Likewise.
24615 * ifcvt.c: Likewise.
24616 * init-regs.c: Likewise.
24617 * internal-fn.c: Likewise.
24618 * ipa-chkp.c: Likewise.
24619 * ipa-comdats.c: Likewise.
24620 * ipa-cp.c: Likewise.
24621 * ipa-devirt.c: Likewise.
24622 * ipa-icf-gimple.c: Likewise.
24623 * ipa-icf.c: Likewise.
24624 * ipa-inline-analysis.c: Likewise.
24625 * ipa-inline-transform.c: Likewise.
24626 * ipa-inline.c: Likewise.
24627 * ipa-polymorphic-call.c: Likewise.
24628 * ipa-profile.c: Likewise.
24629 * ipa-prop.c: Likewise.
24630 * ipa-pure-const.c: Likewise.
24631 * ipa-ref.c: Likewise.
24632 * ipa-reference.c: Likewise.
24633 * ipa-split.c: Likewise.
24634 * ipa-utils.c: Likewise.
24635 * ipa-visibility.c: Likewise.
24637 * ira-build.c: Likewise.
24638 * ira-color.c: Likewise.
24639 * ira-conflicts.c: Likewise.
24640 * ira-costs.c: Likewise.
24641 * ira-emit.c: Likewise.
24642 * ira-lives.c: Likewise.
24644 * jump.c: Likewise.
24645 * langhooks.c: Likewise.
24647 * loop-doloop.c: Likewise.
24648 * loop-init.c: Likewise.
24649 * loop-invariant.c: Likewise.
24650 * loop-iv.c: Likewise.
24651 * loop-unroll.c: Likewise.
24652 * lower-subreg.c: Likewise.
24653 * lra-assigns.c: Likewise.
24654 * lra-coalesce.c: Likewise.
24655 * lra-constraints.c: Likewise.
24656 * lra-eliminations.c: Likewise.
24657 * lra-lives.c: Likewise.
24658 * lra-remat.c: Likewise.
24659 * lra-spills.c: Likewise.
24661 * lto-cgraph.c: Likewise.
24662 * lto-compress.c: Likewise.
24663 * lto-opts.c: Likewise.
24664 * lto-section-in.c: Likewise.
24665 * lto-section-out.c: Likewise.
24666 * lto-streamer-in.c: Likewise.
24667 * lto-streamer-out.c: Likewise.
24668 * lto-streamer.c: Likewise.
24670 * mode-switching.c: Likewise.
24671 * modulo-sched.c: Likewise.
24672 * omega.c: Likewise.
24673 * omp-low.c: Likewise.
24674 * optabs.c: Likewise.
24675 * opts-global.c: Likewise.
24676 * passes.c: Likewise.
24677 * plugin.c: Likewise.
24678 * postreload-gcse.c: Likewise.
24679 * postreload.c: Likewise.
24680 * predict.c: Likewise.
24681 * print-rtl.c: Likewise.
24682 * print-tree.c: Likewise.
24683 * profile.c: Likewise.
24684 * real.c: Likewise.
24685 * realmpfr.c: Likewise.
24686 * recog.c: Likewise.
24688 * reg-stack.c: Likewise.
24689 * regcprop.c: Likewise.
24690 * reginfo.c: Likewise.
24691 * regrename.c: Likewise.
24692 * regstat.c: Likewise.
24693 * reload.c: Likewise.
24694 * reload1.c: Likewise.
24695 * reorg.c: Likewise.
24696 * resource.c: Likewise.
24697 * rtl-chkp.c: Likewise.
24698 * rtlanal.c: Likewise.
24699 * rtlhooks.c: Likewise.
24700 * sanopt.c: Likewise.
24701 * sched-deps.c: Likewise.
24702 * sched-ebb.c: Likewise.
24703 * sched-rgn.c: Likewise.
24704 * sched-vis.c: Likewise.
24705 * sdbout.c: Likewise.
24706 * sel-sched-dump.c: Likewise.
24707 * sel-sched-ir.c: Likewise.
24708 * sel-sched.c: Likewise.
24709 * sese.c: Likewise.
24710 * shrink-wrap.c: Likewise.
24711 * simplify-rtx.c: Likewise.
24712 * stack-ptr-mod.c: Likewise.
24713 * stmt.c: Likewise.
24714 * stor-layout.c: Likewise.
24715 * store-motion.c: Likewise.
24716 * stringpool.c: Likewise.
24717 * symtab.c: Likewise.
24718 * target-globals.c: Likewise.
24719 * targhooks.c: Likewise.
24720 * toplev.c: Likewise.
24721 * tracer.c: Likewise.
24722 * trans-mem.c: Likewise.
24723 * tree-affine.c: Likewise.
24724 * tree-browser.c: Likewise.
24725 * tree-call-cdce.c: Likewise.
24726 * tree-cfg.c: Likewise.
24727 * tree-cfgcleanup.c: Likewise.
24728 * tree-chkp-opt.c: Likewise.
24729 * tree-chkp.c: Likewise.
24730 * tree-chrec.c: Likewise.
24731 * tree-complex.c: Likewise.
24732 * tree-data-ref.c: Likewise.
24733 * tree-dfa.c: Likewise.
24734 * tree-diagnostic.c: Likewise.
24735 * tree-dump.c: Likewise.
24736 * tree-eh.c: Likewise.
24737 * tree-emutls.c: Likewise.
24738 * tree-if-conv.c: Likewise.
24739 * tree-inline.c: Likewise.
24740 * tree-into-ssa.c: Likewise.
24741 * tree-iterator.c: Likewise.
24742 * tree-loop-distribution.c: Likewise.
24743 * tree-nested.c: Likewise.
24744 * tree-nrv.c: Likewise.
24745 * tree-object-size.c: Likewise.
24746 * tree-outof-ssa.c: Likewise.
24747 * tree-parloops.c: Likewise.
24748 * tree-phinodes.c: Likewise.
24749 * tree-predcom.c: Likewise.
24750 * tree-pretty-print.c: Likewise.
24751 * tree-profile.c: Likewise.
24752 * tree-scalar-evolution.c: Likewise.
24753 * tree-sra.c: Likewise.
24754 * tree-ssa-address.c: Likewise.
24755 * tree-ssa-alias.c: Likewise.
24756 * tree-ssa-ccp.c: Likewise.
24757 * tree-ssa-coalesce.c: Likewise.
24758 * tree-ssa-copy.c: Likewise.
24759 * tree-ssa-copyrename.c: Likewise.
24760 * tree-ssa-dce.c: Likewise.
24761 * tree-ssa-dom.c: Likewise.
24762 * tree-ssa-dse.c: Likewise.
24763 * tree-ssa-forwprop.c: Likewise.
24764 * tree-ssa-ifcombine.c: Likewise.
24765 * tree-ssa-live.c: Likewise.
24766 * tree-ssa-loop-ch.c: Likewise.
24767 * tree-ssa-loop-im.c: Likewise.
24768 * tree-ssa-loop-ivcanon.c: Likewise.
24769 * tree-ssa-loop-ivopts.c: Likewise.
24770 * tree-ssa-loop-manip.c: Likewise.
24771 * tree-ssa-loop-niter.c: Likewise.
24772 * tree-ssa-loop-prefetch.c: Likewise.
24773 * tree-ssa-loop-unswitch.c: Likewise.
24774 * tree-ssa-loop.c: Likewise.
24775 * tree-ssa-math-opts.c: Likewise.
24776 * tree-ssa-operands.c: Likewise.
24777 * tree-ssa-phiopt.c: Likewise.
24778 * tree-ssa-phiprop.c: Likewise.
24779 * tree-ssa-pre.c: Likewise.
24780 * tree-ssa-propagate.c: Likewise.
24781 * tree-ssa-reassoc.c: Likewise.
24782 * tree-ssa-sccvn.c: Likewise.
24783 * tree-ssa-scopedtables.c: Likewise.
24784 * tree-ssa-sink.c: Likewise.
24785 * tree-ssa-strlen.c: Likewise.
24786 * tree-ssa-structalias.c: Likewise.
24787 * tree-ssa-tail-merge.c: Likewise.
24788 * tree-ssa-ter.c: Likewise.
24789 * tree-ssa-threadedge.c: Likewise.
24790 * tree-ssa-threadupdate.c: Likewise.
24791 * tree-ssa-uncprop.c: Likewise.
24792 * tree-ssa-uninit.c: Likewise.
24793 * tree-ssa.c: Likewise.
24794 * tree-ssanames.c: Likewise.
24795 * tree-stdarg.c: Likewise.
24796 * tree-streamer-in.c: Likewise.
24797 * tree-streamer-out.c: Likewise.
24798 * tree-streamer.c: Likewise.
24799 * tree-switch-conversion.c: Likewise.
24800 * tree-tailcall.c: Likewise.
24801 * tree-vect-data-refs.c: Likewise.
24802 * tree-vect-generic.c: Likewise.
24803 * tree-vect-loop-manip.c: Likewise.
24804 * tree-vect-loop.c: Likewise.
24805 * tree-vect-patterns.c: Likewise.
24806 * tree-vect-slp.c: Likewise.
24807 * tree-vect-stmts.c: Likewise.
24808 * tree-vectorizer.c: Likewise.
24809 * tree-vrp.c: Likewise.
24810 * tree.c: Likewise.
24811 * tsan.c: Likewise.
24812 * ubsan.c: Likewise.
24813 * valtrack.c: Likewise.
24814 * value-prof.c: Likewise.
24815 * var-tracking.c: Likewise.
24816 * varasm.c: Likewise.
24817 * varpool.c: Likewise.
24818 * vmsdbgout.c: Likewise.
24819 * vtable-verify.c: Likewise.
24821 * wide-int.cc: Likewise.
24822 * xcoffout.c: Likewise.
24823 * config/aarch64/aarch64-builtins.c: Likewise.
24824 * config/aarch64/aarch64.c: Likewise.
24825 * config/aarch64/cortex-a57-fma-steering.c: Likewise.
24826 * config/alpha/alpha.c: Likewise.
24827 * config/arc/arc.c: Likewise.
24828 * config/arm/aarch-common.c: Likewise.
24829 * config/arm/arm-builtins.c: Likewise.
24830 * config/arm/arm-c.c: Likewise.
24831 * config/arm/arm.c: Likewise.
24832 * config/avr/avr-c.c: Likewise.
24833 * config/avr/avr-log.c: Likewise.
24834 * config/avr/avr.c: Likewise.
24835 * config/bfin/bfin.c: Likewise.
24836 * config/c6x/c6x.c: Likewise.
24837 * config/cr16/cr16.c: Likewise.
24838 * config/cris/cris.c: Likewise.
24839 * config/darwin-c.c: Likewise.
24840 * config/darwin.c: Likewise.
24841 * config/epiphany/epiphany.c: Likewise.
24842 * config/epiphany/mode-switch-use.c: Likewise.
24843 * config/epiphany/resolve-sw-modes.c: Likewise.
24844 * config/fr30/fr30.c: Likewise.
24845 * config/frv/frv.c: Likewise.
24846 * config/ft32/ft32.c: Likewise.
24847 * config/h8300/h8300.c: Likewise.
24848 * config/i386/i386-c.c: Likewise.
24849 * config/i386/i386.c: Likewise.
24850 * config/i386/msformat-c.c: Likewise.
24851 * config/i386/winnt-cxx.c: Likewise.
24852 * config/i386/winnt-stubs.c: Likewise.
24853 * config/i386/winnt.c: Likewise.
24854 * config/ia64/ia64-c.c: Likewise.
24855 * config/ia64/ia64.c: Likewise.
24856 * config/iq2000/iq2000.c: Likewise.
24857 * config/lm32/lm32.c: Likewise.
24858 * config/m32c/m32c-pragma.c: Likewise.
24859 * config/m32c/m32c.c: Likewise.
24860 * config/m32r/m32r.c: Likewise.
24861 * config/m68k/m68k.c: Likewise.
24862 * config/mcore/mcore.c: Likewise.
24863 * config/mep/mep-pragma.c: Likewise.
24864 * config/mep/mep.c: Likewise.
24865 * config/microblaze/microblaze-c.c: Likewise.
24866 * config/microblaze/microblaze.c: Likewise.
24867 * config/mips/mips.c: Likewise.
24868 * config/mmix/mmix.c: Likewise.
24869 * config/mn10300/mn10300.c: Likewise.
24870 * config/moxie/moxie.c: Likewise.
24871 * config/msp430/msp430-c.c: Likewise.
24872 * config/msp430/msp430.c: Likewise.
24873 * config/nds32/nds32-cost.c: Likewise.
24874 * config/nds32/nds32-fp-as-gp.c: Likewise.
24875 * config/nds32/nds32-intrinsic.c: Likewise.
24876 * config/nds32/nds32-isr.c: Likewise.
24877 * config/nds32/nds32-md-auxiliary.c: Likewise.
24878 * config/nds32/nds32-memory-manipulation.c: Likewise.
24879 * config/nds32/nds32-pipelines-auxiliary.c: Likewise.
24880 * config/nds32/nds32-predicates.c: Likewise.
24881 * config/nds32/nds32.c: Likewise.
24882 * config/nios2/nios2.c: Likewise.
24883 * config/nvptx/nvptx.c: Likewise.
24884 * config/pa/pa.c: Likewise.
24885 * config/pdp11/pdp11.c: Likewise.
24886 * config/rl78/rl78-c.c: Likewise.
24887 * config/rl78/rl78.c: Likewise.
24888 * config/rs6000/rs6000-c.c: Likewise.
24889 * config/rs6000/rs6000.c: Likewise.
24890 * config/rx/rx.c: Likewise.
24891 * config/s390/s390-c.c: Likewise.
24892 * config/s390/s390.c: Likewise.
24893 * config/sh/sh-c.c: Likewise.
24894 * config/sh/sh-mem.cc: Likewise.
24895 * config/sh/sh.c: Likewise.
24896 * config/sh/sh_optimize_sett_clrt.cc: Likewise.
24897 * config/sh/sh_treg_combine.cc: Likewise.
24898 * config/sol2-c.c: Likewise.
24899 * config/sol2-cxx.c: Likewise.
24900 * config/sol2-stubs.c: Likewise.
24901 * config/sol2.c: Likewise.
24902 * config/sparc/sparc-c.c: Likewise.
24903 * config/sparc/sparc.c: Likewise.
24904 * config/spu/spu-c.c: Likewise.
24905 * config/spu/spu.c: Likewise.
24906 * config/stormy16/stormy16.c: Likewise.
24907 * config/tilegx/mul-tables.c: Likewise.
24908 * config/tilegx/tilegx-c.c: Likewise.
24909 * config/tilegx/tilegx.c: Likewise.
24910 * config/tilepro/mul-tables.c: Likewise.
24911 * config/tilepro/tilepro-c.c: Likewise.
24912 * config/tilepro/tilepro.c: Likewise.
24913 * config/v850/v850-c.c: Likewise.
24914 * config/v850/v850.c: Likewise.
24915 * config/vax/vax.c: Likewise.
24916 * config/visium/visium.c: Likewise.
24917 * config/vms/vms-c.c: Likewise.
24918 * config/vms/vms.c: Likewise.
24919 * config/vxworks.c: Likewise.
24920 * config/xtensa/xtensa.c: Likewise.
24922 2015-07-07 Uros Bizjak <ubizjak@gmail.com>
24924 * config/i386/i386.md (*jcc_bt<mode>): Only split before reload.
24925 Remove operand constraints. Change operand 2 predicate to
24926 nonmemory operand. Limit const_int values to mode bitsize. Only
24927 allow const_int values less than 32 when optimizing for size.
24928 (*jcc_bt<mode>_1, *jcc_bt<mode>_mask): Only split before reload.
24929 Remove operand constraints.
24930 (*bt<mode>): Use SImode for const_int values less than 32.
24931 (regmode): Remove mode attribute.
24933 2015-07-07 Anatoly Sokolov <aesok@post.ru>
24935 * config/moxie/moxie.h (GO_IF_LEGITIMATE_ADDRESS): Remove macros.
24936 * config/moxie/moxie.c (moxie_reg_ok_for_base_p,
24937 moxie_legitimate_address_p): New functions.
24938 (TARGET_ADDR_SPACE_LEGITIMATE_ADDRESS_P): Define.
24940 2015-07-07 Tom de Vries <tom@codesourcery.com>
24942 PR tree-optimization/66642
24943 * tree-parloops.c (transform_to_exit_first_loop_alt): Update function
24944 header comment. Rename split_edge variable to edge_at_split. Split
24945 exit edge to create new loop exit bb. Insert loop exit phis in new
24948 2015-07-07 Tom de Vries <tom@codesourcery.com>
24950 * tree-cfg.c (get_virtual_phi): New function.
24951 * tree-cfg.h (get_virtual_phi): Declare.
24952 * tree-ssa-loop-manip.c (replace_uses_in_dominated_bbs)
24953 (rewrite_virtuals_into_loop_closed_ssa): New function.
24954 * tree-ssa-loop-manip.h (rewrite_virtuals_into_loop_closed_ssa):
24956 * tree-parloops.c (replace_uses_in_bbs_by): Remove.
24957 (transform_to_exit_first_loop_alt): Use
24958 rewrite_virtuals_into_loop_closed_ssa.
24960 2015-07-07 Richard Biener <rguenther@suse.de>
24962 * fold-const.c (fold_binary_loc): Move
24963 (X & C2) << C1 -> (X << C1) & (C2 << C1) simplification ...
24964 * match.pd: ... here.
24965 Add (X * C1) % C2 -> 0 simplification pattern derived from
24968 2015-07-07 Kaz Kojima <kkojima@gcc.gnu.org>
24971 * config/sh/sh.md (symGOT_load): Revert a part of 2015-03-03
24972 change for target/65249.
24974 2015-07-07 Paulo Matos <pmatos@broadcom.com>
24976 * symtab.c (address_matters_1): Fix typo in comment above.
24977 (can_increase_alignment_p): Likewise.
24979 2015-07-07 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
24981 * function.c (free_after_compilation): Clear PROP_cfg in
24982 f->curr_properties.
24984 2015-07-07 Richard Biener <rguenther@suse.de>
24986 * tree-ssa-propagate.c (add_ssa_edge): Dump what edge list we
24988 (add_control_edge): Remove excessive vertical space in dumping.
24989 (process_ssa_edge_worklist): Simulate at most one statement and
24990 return whether we did. Do not simulate PHIs if they are in a
24991 BB not yet simulated.
24992 (ssa_propagate): Adjust to always drain the BB worklist whenever
24993 a BB is available there, likewise the VARYING edges list before
24994 the interesting edge list.
24996 2015-07-07 Christian Bruel <christian.bruel@st.com>
24999 * config/arm/elf.h (TARGET_ASM_FILE_START_APP_OFF): Delete.
25001 2015-07-07 Richard Biener <rguenther@suse.de>
25003 PR middle-end/66739
25004 * match.pd: Condition A - B ==/!= 0 -> A ==/!= B on single-use
25007 2015-07-06 Uros Bizjak <ubizjak@gmail.com>
25009 * config/i386/i386.md (insv<mode>): Rename from insv. Use SWI48
25010 modes for operands 0 and 3. Use SImode for operands 2 and 3.
25011 Copy operand 0 to a temporary if !ext_register_operand. Remove
25012 ancient extract_bit_field workaround.
25013 (insv<mode>_1): Rename from mov<mode>_insv_1.
25014 (*insvqi): Rename from *movqi_insv_2.
25015 * config/i386/i386.c (emit_i386_cw_initialization): Update calls
25016 for renamed insvsi_1.
25017 (promote_duplicated_reg): Ditto for renamed insv<mode>_1.
25019 2015-07-06 Nathan Sidwell <nathan@codesourcery.com>
25021 * config/nvptx/nvptx.c (nvptx_reorg): Remove unused vars. Fix
25022 call to nvptx_reorg_subreg.
25024 2015-07-06 Jim Wilson <jim.wilson@linaro.org>
25026 * graphite-blocking.c (HAVE_isl): Include <stddef.h>.
25027 * graphite-dependencies.c, graphite-interchange.c,
25028 graphite-isl-ast-to-gimple.c, graphite-optimize-isl.c, graphite-poly.c,
25029 graphite-scop-detection.c, graphite-sese-to-poly.c, graphite.c:
25032 2015-07-06 Marc Glisse <marc.glisse@inria.fr>
25034 * match.pd: Remove element_mode inside HONOR_*.
25035 (~ (-A) -> A - 1, ~ (A - 1) -> -A): Handle complex types.
25036 (~X | X -> -1, ~X ^ X -> -1): Merge.
25037 * tree.c (build_each_one_cst): New function.
25038 * tree.h (build_each_one_cst): Likewise.
25040 2015-07-06 H.J. Lu <hongjiu.lu@intel.com>
25042 * config/i386/i386-c.c (ix86_target_macros_internal): Handle
25045 2015-07-06 Steve Ellcey <sellcey@imgtec.com>
25047 * config.gcc <mips*-*-*>: Add fused-madd.opt.
25048 * config/mips/mips.opt (mfused-madd): Remove.
25049 * config/mips/mips.c (mips_rtx_costs): Update cost calculations.
25050 * config/mips/mips.h (TARGET_MIPS8000): New.
25051 (ISA_HAS_FP_MADD4_MSUB4): Remove.
25052 (ISA_HAS_FP_MADDF_MSUBF): Remove.
25053 (ISA_HAS_FP_MADD3_MSUB3): Remove.
25054 (ISA_HAS_NMADD4_NMSUB4): Remove.
25055 (ISA_HAS_NMADD3_NMSUB3): Remove.
25056 (ISA_HAS_FUSED_MADD4): New.
25057 (ISA_HAS_UNFUSED_MADD4): New.
25058 (ISA_HAS_FUSED_MADDF): New.
25059 (ISA_HAS_FUSED_MADD3): New.
25060 * config/mips/mips.md: (fma<mode>4) Change from insn to expand.
25061 (*fma<mode>4_madd3) New.
25062 (*fma<mode>4_madd4) New.
25063 (*fma<mode>4_maddf) New.
25065 (*fms<mode>4_msub3) New.
25066 (*fms<mode>4_msub4) New.
25068 (*fnma<mode>4_nmadd3) New.
25069 (*fnma<mode>4_nmadd4) New.
25071 (*fnms<mode>4_nmsub3) New.
25072 (*fnms<mode>4_nmsub4) New.
25073 (*madd4<mode>) Modify to be unfused only.
25074 (*msub4<mode>) Modify to be unfused only.
25075 (*nmadd4<mode>) Modify to be unfused only.
25076 (*nmsub4<mode>) Modify to be unfused only.
25077 (*madd3<mode>) Remove.
25078 (*msub3<mode>) Remove.
25079 (*nmadd3<mode>) Remove.
25080 (*nmsub3<mode>) Remove.
25081 (*nmadd3<mode>_fastmath) Remove.
25082 (*nmsub3<mode>_fastmath) Remove.
25083 (*nmadd4<mode>_fastmath) Update condition.
25084 (*nmsub4<mode>_fastmath) Update condition.
25086 2015-07-06 Alan Lawrence <alan.lawrence@arm.com>
25089 * config/arm/arm.c (arm_needs_doubleword_align): Drop any outer
25090 alignment attribute, exploring one level down for records and arrays.
25092 2015-07-06 Uros Bizjak <ubizjak@gmail.com>
25094 * config/i386/i386.md (extv<mode>): Rename from extv. Use SWI24
25095 modes for operands 0 and 1. Use SImode for operands 2 and 3.
25096 Copy operand 1 to a temporary if !ext_register_operand. Remove
25097 ancient extract_bit_field workaround.
25098 (*extv<mode>): Rename from *mov<mode>_extv_1.
25099 (*extvqi): Rename from *movqi_extv_1.
25100 (extzv<mode>): Rename from extzv. Use SWI248 modes for
25101 operands 0 and 1. Use SImode for operands 2 and 3. Copy operand 1
25102 to a temporary if !ext_register_operand. Remove ancient
25103 extract_bit_field workaround.
25104 (*extzv<mode>): Rename from *mov<mode>_extzv_1.
25105 (*extzvqi): Rename from *movqi_extzv_2.
25106 (*testqi_ext_3): Remove modes from const_int_operand predicated
25107 operands. Add "n" constraint.
25108 (*btsq, *btrq, *btcq): Remove mode from const_0_to_63 predicated
25109 operand. Add "J" constraint.
25110 (*btsq, *btrq, *btcq peephole2s): Remove mode from
25111 const_0_to_63 predicated operand.
25112 (regmode): New insn attribute.
25113 (*bt<mode>): Use SImode for operand 1. Change operand 1 predicate
25114 to nonmemory_operand. Use regmode insn attribute.
25115 (*jcc_bt<mode>_1): Convert operand 2 to SImode.
25116 (*jcc_bt<mode>_mask): Remove mode from operand 3.
25117 (*jcc_btsi_1, *jcc_btsi_mask_1): Remove patterns.
25118 (tbm_bextri_<mode>): Remove modes from const_0_to_255 predicated
25119 operands. Use "N" constraint instead of "n".
25121 2015-07-06 Alan Lawrence <alan.lawrence@arm.com>
25123 * config/arm/arm.md (movdi): Avoid odd-number ldrd/strd in ARM state.
25125 2015-07-06 H.J. Lu <hongjiu.lu@intel.com>
25128 * config/i386/i386.c (iamcu_cost): New.
25129 (m_IAMCU): Likewise.
25130 (initial_ix86_arch_features): Disable X86_ARCH_CMOV for m_IAMCU.
25131 (processor_target_table): Add an entry for "iamcu".
25132 (processor_alias_table): Likewise.
25133 (ix86_issue_rate): Handle PROCESSOR_IAMCU.
25134 (ix86_adjust_cost): Likewise.
25135 (ia32_multipass_dfa_lookahead): Likewise.
25136 * config/i386/i386.h (processor_type): Add PROCESSOR_IAMCU.
25137 * config/i386/x86-tune.def: Updated for m_IAMCU.
25139 2015-07-06 Richard Biener <rguenther@suse.de>
25141 PR tree-optimization/66772
25142 * tree-ssa-ccp.c (ccp_visit_phi_node): Make sure that copy
25143 values are available in the PHI node BB when there are
25144 still unexecutable edges.
25146 2015-07-06 Richard Biener <rguenther@suse.de>
25148 PR tree-optimization/66767
25149 * tree-vect-loop-manip.c (vect_create_cond_for_align_checks):
25150 Make sure to build the alignment test on a SSA name without
25151 final alignment info valid only if the alignment test
25154 2015-07-06 Bernd Schmidt <bernds@codesourcery.com>
25157 * config/bfin/bfin.c (hwloop_optimize): Create new bb between jump and
25158 loop start when inserting LSETUP.
25160 2015-07-06 H.J. Lu <hongjiu.lu@intel.com>
25163 * config/i386/i386.c (ix86_option_override_internal): Allow
25164 -mincoming-stack-boundary=3 for 64-bit if SSE is disabled.
25166 2015-07-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
25168 * read-md.c (decimal_string): Rename to ...
25169 (md_decimal_string): ... this.
25170 (handle_enum): Reflect this.
25172 2015-07-06 Szabolcs Nagy <szabolcs.nagy@arm.com>
25175 * config/aarch64/aarch64.md (fnmul<mode>3): Handle -frounding-math.
25177 2015-07-06 Richard Biener <rguenther@suse.de>
25179 PR middle-end/66759
25180 * match.pd: Add missing constraint of y to REAL_CST in
25181 REAL_CST - x CMP y to y - CST CMP x simplification.
25183 2015-07-06 Eric Botcazou <ebotcazou@adacore.com>
25185 PR tree-optimization/66757
25186 * match.pd: Add missing condition to ~X ^ C -> X ^ ~C.
25188 2015-07-05 Chung-Lin Tang <cltang@codesourcery.com>
25189 Sandra Loosemore <sandra@codesourcery.com>
25191 * config/nios2/nios2-protos.h (nios2_symbol_ref_in_small_data_p):
25192 Delete extern declaration.
25193 (gprel_constant_p): Add extern declaration.
25194 * config/nios2/constraints.md ("S"): Use gprel_constant_p
25195 instead of nios2_symbol_ref_in_small_data_p.
25196 * config/nios2/nios2.c (nios2_legitimate_address_p): Likewise.
25197 (nios2_symbol_ref_in_small_data_p): Make static.
25198 (gprel_constant_p): Make non-static.
25200 2015-07-05 Gerald Pfeifer <gerald@pfeifer.com>
25202 * doc/fragments.texi (Target Fragment): Convert debian.org
25204 * doc/install.texi (Configuration): Ditto.
25206 2015-07-05 Jakub Jelinek <jakub@redhat.com>
25208 PR tree-optimization/66718
25209 * tree-vect-stmts.c (vectorizable_call): Replace uses of
25210 GOMP_SIMD_LANE outside of loop with vf - 1 rather than 0.
25212 PR tree-optimization/66718
25213 * tree-vect-stmts.c (vectorizable_assignment, vectorizable_store,
25214 vectorizable_load, vectorizable_condition): Move vectype,
25215 nunits, ncopies computation after checking what kind of statement
25218 2015-07-05 Richard Sandiford <richard.sandiford@arm.com>
25220 * target-insns.def (extv, extzv, insv): New targetm instruction
25222 * optabs.c (get_extraction_insn): Use them instead of HAVE_*/gen_*
25224 * recog.c (simplify_while_replacing): Likewise.
25226 2015-07-05 Richard Sandiford <richard.sandiford@arm.com>
25228 * target-insns.def (doloop_begin, doloop_end): New targetm
25229 instruction patterns.
25230 * loop-init.c: Include target.h.
25231 (pass_loop2::gate): Use the new targetm patterns instead of
25232 HAVE_*/gen_* interface.
25233 (pass_rtl_doloop::gate): Likewise.
25234 (pass_rtl_doloop::execute): Remove preprocessor condition.
25235 * hw-doloop.c: Build unconditionally.
25236 * loop-doloop.c: Likewise.
25237 (doloop_optimize): Use the new targetm patterns instead of
25238 HAVE_*/gen_* interface.
25239 (doloop_modify): Likewise. Change type of doloop_seq to rtx_insn *.
25240 * modulo-sched.c (doloop_register_get): Likewise.
25242 2015-07-05 Richard Sandiford <richard.sandiford@arm.com>
25244 * target-insns.def (clear_cache): New targetm instruction pattern.
25245 * builtins.c (expand_builtin___clear_cache): Use it instead of
25246 HAVE_*/gen_* interface.
25248 2015-07-05 Richard Sandiford <richard.sandiford@arm.com>
25250 * target-insns.def (allocate_stack, check_stack, probe_stack)
25251 (probe_stack_address, split_stack_prologue, split_stack_space_check):
25252 New targetm instruction patterns.
25253 * explow.c (allocate_dynamic_stack_space): Use them instead of
25254 HAVE_*/gen_* interface.
25255 (emit_stack_probe): Likewise.
25256 (probe_stack_range): Likewise.
25257 * function.c (thread_prologue_and_epilogue_insns): Likewise.
25259 2015-07-05 Richard Sandiford <richard.sandiford@arm.com>
25261 * target-insns.def (stack_protect_set, stack_protect_test): New
25262 targetm instruction patterns.
25263 * cfgexpand.c (stack_protect_prologue): Use them instead of
25264 HAVE_*/gen_* interface.
25265 * function.c (stack_protect_epilogue): Likewise.
25267 2015-07-05 Richard Sandiford <richard.sandiford@arm.com>
25269 * expr.h (gen_move_insn_uncast): Delete.
25270 * expr.c (gen_move_insn_uncast): Delete.
25272 2015-07-05 Richard Sandiford <richard.sandiford@arm.com>
25274 * target-insns.def (restore_stack_block, restore_stack_function)
25275 (restore_stack_nonlocal, save_stack_block, save_stack_function)
25276 (save_stack_nonlocal): New targetm instruction patterns.
25277 * builtins.c (expand_builtin_apply): Use them instead of
25278 HAVE_*/gen_* interface.
25279 * explow.c (emit_stack_save, emit_stack_restore): Likewise.
25281 2015-07-05 Richard Sandiford <richard.sandiford@arm.com>
25283 * target-insns.def (trap): New targetm instruction pattern.
25284 * builtins.c (expand_builtin_trap): Use it instead of HAVE_*/gen_*
25286 * explow.c (allocate_dynamic_stack_space): Likewise.
25287 * ifcvt.c (find_if_header): Likewise.
25289 2015-07-05 Richard Sandiford <richard.sandiford@arm.com>
25291 * target-insns.def (prefetch): New targetm instruction pattern.
25292 * tree-ssa-loop-prefetch.c: Include targeth.
25293 (tree_ssa_prefetch_arrays): Use prefetch targetm pattern instead
25294 of HAVE_*/gen_* interface.
25295 * builtins.c (expand_builtin_prefetch): Likewise.
25296 * toplev.c (process_options): Likewise.
25298 2015-07-05 Richard Sandiford <richard.sandiford@arm.com>
25300 * target-insns.def (untyped_call, untyped_return): New targetm
25301 instruction patterns.
25302 * builtins.c (expand_builtin_apply): Use them instead of
25303 HAVE_*/gen_* interface.
25304 (result_vector): Define unconditionally.
25306 2015-07-05 Richard Sandiford <richard.sandiford@arm.com>
25308 * target-insns.def (builtin_longjmp, builtin_setjmp_receiver)
25309 (builtin_setjmp_setup, exception_receiver, nonlocal_goto)
25310 (nonlocal_goto_receiver): New targetm instruction patterns.
25311 * builtins.c (expand_builtin_setjmp_setup): Use them instead
25312 of HAVE_*/gen_* interface.
25313 (expand_builtin_setjmp_receiver): Likewise.
25314 (expand_builtin_longjmp, expand_builtin_nonlocal_goto): Likewise.
25315 * except.c (expand_dw2_landing_pad_for_region): Likewise.
25317 2015-07-05 Richard Sandiford <richard.sandiford@arm.com>
25319 * target.def: Add code_for_* hooks.
25320 * gentarget-def.c (def_target_insn): Add TARGET_CODE_FOR_* macros.
25321 * defaults.h (HAVE_tablejump, gen_tablejump): Delete.
25322 * target-insns.def (casesi, tablejump): New targetm instruction
25324 * expr.c (try_casesi): Use them instead of HAVE_*/gen_* interface.
25325 (do_tablejump): Likewise.
25326 * stmt.c (expand_switch_as_decision_tree_p): Likewise.
25327 (expand_sjlj_dispatch_table): Likewise.
25328 * targhooks.c (default_case_values_threshold): Likewise.
25330 2015-07-04 Sandra Loosemore <sandra@codesourcery.com>
25332 * config/nios2/nios2.c (save_reg, restore_reg): Use plus_constant.
25333 Use rtx_insn * instead of rtx.
25334 (nios2_emit_add_constant): Use rtx_insn * instead of rtx.
25335 (nios2_expand_prologue, nios2_expand_epilogue): Likewise.
25336 (nios2_call_tls_get_addr): Likewise.
25337 (nios2_emit_expensive_div): Likewise.
25338 (nios2_emit_move_sequence): Change return type to bool.
25339 * config/nios2/nios2-protos.h (nios2_emit_move_sequence):
25340 Change return type to bool.
25342 2015-07-04 Bernd Edlinger <bernd.edlinger@hotmail.de>
25345 * config/mips/mips.c (mips_find_gp_ref): Handle instruction sequences.
25347 2015-07-04 John David Anglin <danglin@gcc.gnu.org>
25350 * config/pa/pa.md (indirect_jump): Use pmode_register_operand instead
25351 of register_operand. Remove constraint.
25353 2015-07-04 Marc Glisse <marc.glisse@inria.fr>
25355 * tree-cfg.c (verify_gimple_assign_ternary) <VEC_COND_EXPR>: Check
25356 the first argument.
25358 2015-07-03 Paolo Carlini <paolo.carlini@oracle.com>
25360 * attribs.c (decl_attributes): Guard inform with the return value
25361 of the preceding warning.
25363 2015-07-03 James Greenhalgh <james.greenhalgh@arm.com>
25365 * doc/invoke.texi (moverride): Move to correct section.
25367 2015-07-03 Richard Biener <rguenther@suse.de>
25369 * genmatch.c (commutative_tree_code, commutative_ternary_tree_code):
25371 (dt_operand::gen_gimple_expr): After valueizing operands
25372 re-canonicalize operand order for commutative tree codes.
25374 2015-07-03 H.J. Lu <hongjiu.lu@intel.com>
25377 * config/i386/ia32intrin.h (__crc32b): Don't define if __iamcu__
25379 (__crc32w): Likewise.
25380 (__crc32d): Likewise.
25381 (__rdpmc): Likewise.
25382 (__rdtscp): Likewise.
25383 (_rdpmc): Likewise.
25384 (_rdtscp): Likewise.
25385 * config/i386/x86intrin.h: Only include ia32intrin.h if __iamcu__
25388 2015-07-03 Richard Biener <rguenther@suse.de>
25390 * fold-const.c (fold_mathfn_compare): Remove.
25391 (fold_inf_compare): Likewise.
25392 (fold_comparison): Move floating point comparison simplifications...
25393 * match.pd: ... to patterns here. Introduce simple_comparisons
25394 operator list and use it for patterns formerly in fold_comparison.
25396 2015-07-03 James Greenhalgh <james.greenhalgh@arm.com>
25398 PR tree-optimization/66119
25399 * toplev.c (process_options): Don't set up default values for
25400 the sra_max_scalarization_size_{speed,size} parameters.
25401 * tree-sra (analyze_all_variable_accesses): If no values
25402 have been set for the sra_max_scalarization_size_{speed,size}
25403 parameters, call get_move_ratio to get target defaults.
25405 2015-07-03 Richard Biener <rguenther@suse.de>
25407 * fold-const.c (fold_binary_loc): Move (T)ptr & CST folding...
25408 * match.pd: ... here.
25410 2015-07-03 Gerald Pfeifer <gerald@pfeifer.com>
25413 * doc/invoke.texi (i386 and x86-64 Options): -mno-fancy-math-387
25414 is not actually the default on FreeBSD.
25416 2015-07-02 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
25418 * config/rs6000/rs6000-builtin.def (CMPGE_16QI): New built-in
25420 (CMPGE_8HI): Likewise.
25421 (CMPGE_4SI): Likewise.
25422 (CMPGE_2DI): Likewise.
25423 (CMPGE_U16QI): Likewise.
25424 (CMPGE_U8HI): Likewise.
25425 (CMPGE_U4SI): Likewise.
25426 (CMPGE_U2DI): Likewise.
25427 (CMPLE_16QI): Likewise.
25428 (CMPLE_8HI): Likewise.
25429 (CMPLE_4SI): Likewise.
25430 (CMPLE_2DI): Likewise.
25431 (CMPLE_U16QI): Likewise.
25432 (CMPLE_U8HI): Likewise.
25433 (CMPLE_U4SI): Likewise.
25434 (CMPLE_U2DI): Likewise.
25435 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
25436 overloads for ALTIVEC_BUILTIN_VEC_CMPGE and
25437 ALTIVEC_BUILTIN_VEC_CMPLE.
25438 * config/rs6000/vector.md (vector_ge<mode>): Restrict to
25439 floating-point vector modes.
25440 (vector_nlt<mode>): New define_expand.
25441 (vector_nltu<mode>): Likewise.
25442 (vector_ngt<mode>): Likewise.
25443 (vector_ngtu<mode>): Likewise.
25445 2015-07-02 Segher Boessenkool <segher@kernel.crashing.org>
25447 PR rtl-optimization/66706
25448 * combine.c (make_compound_operation): If an AND of SUBREG of
25449 LSHIFTRT does not simplify, see if just the AND of SUBREG does.
25451 2015-07-02 Alan Lawrence <alan.lawrence@arm.com>
25453 * tree-pass.h (make_pass_ch_vect): New.
25454 * passes.def: Add pass_ch_vect just before pass_if_conversion.
25456 * tree-ssa-loop-ch.c (ch_base, pass_ch_vect, pass_data_ch_vect,
25457 pass_ch::process_loop_p, pass_ch_vect::process_loop_p,
25458 make_pass_ch_vect): New.
25459 (pass_ch): Extend ch_base.
25461 (pass_ch::execute): Move all but loop_optimizer_init/finalize to...
25462 (ch_base::copy_headers): ...here.
25464 2015-07-02 Richard Biener <rguenther@suse.de>
25466 * builtins.c (get_pointer_alignment_1): Handle POINTER_PLUS_EXPR.
25467 * fold-const.c (get_pointer_modulus_and_residue): Remove.
25468 (fold_binary_loc): Implement (T)ptr & CST in terms of
25469 get_pointer_alignment_1.
25470 * tree-vect-loop-manip.c (vect_gen_niters_for_prolog_loop):
25471 Make sure to build the alignment test on a SSA name without
25472 final alignment info valid only after the prologue.
25474 2015-07-02 Hans-Peter Nilsson <hp@axis.com>
25476 * config/cris/cris.md ("epilogue"): Remove condition.
25477 ("prologue"): Ditto.
25479 2015-07-02 Richard Biener <rguenther@suse.de>
25481 * tree-ssa-dom.c (build_and_record_new_cond): Add optional
25482 parameter to record a condition that is false.
25483 (record_conditions): When recording an extra NE_EXPR that is
25484 true also record a EQ_EXPR that is false.
25486 2015-07-02 Bin Cheng <bin.cheng@arm.com>
25488 * tree-ssa-loop-ivopts.c (struct ivopts_data): New field iv_obstack.
25489 (tree_ssa_iv_optimize_init): Initialize iv_obstack.
25490 (alloc_iv): New parameter. Allocate struct iv using obstack_alloc.
25491 (set_iv, find_interesting_uses_address, add_candidate_1): New
25492 argument to alloc_iv.
25493 (find_interesting_uses_op, find_interesting_uses_cond): Don't
25494 duplicate struct iv.
25495 (free_loop_data): Don't free struct iv explicitly.
25496 (tree_ssa_iv_optimize_finalize): Free iv_obstack.
25498 2015-07-01 DJ Delorie <dj@redhat.com>
25500 * config/s390/tpf.h (LIBSTDCXX): Change to CPP1.
25502 (SUPPORTS_DISCRIMINATOR): Define.
25504 2015-07-01 Richard Sandiford <richard.sandiford@arm.com>
25507 * rtl.c (classify_insn): Only return JUMP_INSN for parallel returns if
25508 there are no CALLs in the same pattern.
25510 2015-07-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
25512 PR rtl-optimization/61047
25513 * rtlanal.c (get_initial_register_offset): New function.
25514 (rtx_addr_can_trap_p_1): Check offsets of stack references.
25516 2015-07-01 Richard Biener <rguenther@suse.de>
25518 * fold-const.c (fold_comparison): Move X - Y CMP 0 -> X CMP Y,
25519 X * C1 CMP 0 -> X CMP 0, X CMP X, ~X CMP ~Y -> Y CMP X and
25520 ~X CMP C -> X CMP' ~C to ...
25521 * match.pd: ... patterns here.
25523 2015-07-01 Nick Clifton <nickc@redhat.com>
25525 * config/msp430/msp430.md (zero_extendhipsi2): Use MOVX.A to store
25526 a 16-bit value into a 20-bit memory slot.
25528 2015-07-01 Jiong Wang <jiong.wang@arm.com>
25530 * doc/sourcebuild.texi (AArch64-specific attributes): Document
25531 "aarch64_tiny", "aarch64_small", "aarch64_large",
25532 "aarch64_little_endian", "aarch64_big_endian".
25534 2015-07-01 Jiong Wang <jiong.wang@arm.com>
25536 * doc/sourcebuild.texi (AArch64-specific attributes): New subsection.
25537 Document "aarch64_small_fpic".
25539 2015-07-01 Jiong Wang <jiong.wang@arm.com>
25541 * configure.ac: Add check for aarch64 assembler -fpic relocation
25543 * configure: Regenerate.
25544 * config.in: Regenerate.
25545 * config/aarch64/aarch64.c (initialize_aarch64_code_model): Fall back
25546 to -fPIC if not support of -fpic relocation modifier in assembler.
25548 2015-07-01 Richard Sandiford <richard.sandiford@arm.com>
25551 * rtl.c (classify_insn): Handle returns in PARALLELs.
25553 2015-07-01 Eric Botcazou <ebotcazou@adacore.com>
25555 PR middle-end/66633
25556 * tree-nested.c (convert_nonlocal_omp_clauses): Initialize need_chain
25557 to true if the function is nested and if not optimizing.
25558 (convert_local_omp_clauses): Initialize need_frame to true if the
25559 function contains nested functions and if not optimizing.
25561 2015-07-01 Richard Biener <rguenther@suse.de>
25563 * fold-const.c (fold_binary_loc): Move ~X ^ X -> -1 and
25564 (X & Y) ^ Y -> ~X & Y transforms to ...
25565 * match.pd: ... here.
25567 2015-07-01 Richard Biener <rguenther@suse.de>
25569 * genmatch.c (expr::gen_transform): Shortcut re-simplifying
25570 of converts to avoid uninteresting noise from the conversion
25571 simplifying patterns.
25573 2015-06-30 Sandra Loosemore <sandra@codesourcery.com>
25575 * config/c6x/c6x.c (try_rename_operands): Do not depend on
25576 gcc_assert evaluating its argument for side-effect.
25578 2015-06-30 Kaz Kojima <kkojima@gcc.gnu.org>
25581 * config/sh/sh.md (casesi_worker_1): Set length to 8 when
25584 2015-06-30 Eric Botcazou <ebotcazou@adacore.com>
25586 * lto-streamer-out.c (class DFS): Adjust hash_scc method.
25587 (DFS::DFS): Pass this_ref_p and ref_p to hash_scc.
25588 (hash_scc): Add this_ref_p and ref_p parameters and pass them
25589 to the inner DFS walk.
25591 2015-06-30 Richard Sandiford <richard.sandiford@arm.com>
25593 * target-insns.def (jump): New targetm instruction pattern.
25594 * bb-reorder.c (get_uncond_jump_length): Use targetm.gen_jump
25595 instead of gen_jump.
25596 (fix_up_crossing_landing_pad): Likewise.
25597 (add_labels_and_missing_jumps): Likewise.
25598 (fix_crossing_conditional_branches): Likewise.
25599 * cfgrtl.c (try_redirect_by_replacing_jump): Likewise.
25600 (force_nonfallthru_and_redirect): Likewise.
25601 * cse.c (cse_insn): Likewise.
25602 * expmed.c (expand_divmod): Likewise.
25603 * expr.c (store_expr_with_bounds, expand_expr_real_2): Likewise.
25604 * haifa-sched.c (init_before_recovery): Likewise.
25605 (sched_create_recovery_edges): Likewise.
25606 * ifcvt.c (find_cond_trap): Likewise.
25607 * optabs.c (expand_doubleword_shift, expand_doubleword_clz): Likewise.
25608 (expand_float, expand_fix): Likewise.
25609 * stmt.c (emit_jump): Likewise.
25611 2015-06-30 Richard Sandiford <richard.sandiford@arm.com>
25613 * defaults.h (HAVE_load_multiple, gen_load_multiple)
25614 (HAVE_store_multiple, gen_store_multiple): Delete.
25615 * target-insns.def (load_multiple, store_multiple): New targetm
25616 instruction patterns.
25617 * expr.c (move_block_to_reg, move_block_from_reg): Use them instead
25618 of HAVE_*/gen_* interface.
25620 2015-06-30 Richard Sandiford <richard.sandiford@arm.com>
25622 * defaults.h (HAVE_mem_thread_fence, gen_mem_thread_fence)
25623 (HAVE_memory_barrier, gen_memory_barrier, HAVE_mem_signal_fence)
25624 (gen_mem_signal_fence): Delete.
25625 * target-insns.def (mem_signal_fence, mem_thread_fence)
25626 (memory_barrier): New targetm instruction patterns.
25627 * optabs.c (expand_mem_thread_fence): Use them instead of HAVE_*/gen_*
25629 (expand_mem_signal_fence): Likewise.
25631 2015-06-30 Richard Sandiford <richard.sandiford@arm.com>
25633 * defaults.h (HAVE_epilogue, gen_epilogue): Delete.
25634 * target-insns.def (epilogue, prologue, sibcall_prologue): New
25635 targetm instruction patterns.
25636 * alias.c (init_alias_analysis): Use them instead of HAVE_*/gen_*
25638 * calls.c (expand_call): Likewise.
25639 * cfgrtl.c (cfg_layout_finalize): Likewise.
25640 * df-scan.c (df_get_entry_block_def_set): Likewise.
25641 (df_get_exit_block_use_set): Likewise.
25642 * dwarf2cfi.c (pass_dwarf2_frame::gate): Likewise.
25643 * final.c (final_start_function): Likewise.
25644 * function.c (thread_prologue_and_epilogue_insns): Likewise.
25645 (reposition_prologue_and_epilogue_notes): Likewise.
25646 * reorg.c (find_end_label): Likewise.
25647 * toplev.c (process_options): Likewise.
25649 2015-06-30 David Malcolm <dmalcolm@redhat.com>
25651 * typed-splay-tree.h: New file.
25653 2015-06-30 Vladimir Makarov <vmakarov@redhat.com>
25656 * lra-int.h (lra_substitute_pseudo): Add a parameter.
25657 (lra_substitute_pseudo_within_insn): Ditto.
25658 * lra.c (lra_substitute_pseudo): Add a parameter. Simplify subreg
25660 (lra_substitute_pseudo_within_insn): Add a parameter. Transfer it
25661 to lra_substitute_pseudo.
25662 * lra-lives.c (process_bb_lives): Add an argument to
25663 lra_substitute_pseudo_within_insn call.
25664 * lra-constraints.c (inherit_reload_reg, split_reg): Add an
25665 argument to lra_substitute_pseudo and
25666 lra_substitute_pseudo_within_insn calls.
25667 (remove_inheritance_pseudos, undo_optional_reloads): Ditto.
25669 2015-06-30 H.J. Lu <hongjiu.lu@intel.com>
25671 * configure: Regenerated.
25673 2015-06-30 H.J. Lu <hongjiu.lu@intel.com>
25675 * config.gcc: Support i[34567]86-*-elfiamcu target.
25676 * config/i386/iamcu.h: New.
25677 * config/i386/i386.opt: Add -miamcu.
25678 * doc/invoke.texi: Document -miamcu.
25679 * common/config/i386/i386-common.c (ix86_handle_option): Turn
25680 off x87/MMX/SSE/AVX codegen for -miamcu.
25681 * config/i386/i386-c.c (ix86_target_macros_internal): Define
25682 __iamcu/__iamcu__ for -miamcu.
25683 * config/i386/i386.h (PREFERRED_STACK_BOUNDARY_DEFAULT): Set
25684 to MIN_STACK_BOUNDARY if TARGET_IAMCU is true.
25685 (BIGGEST_ALIGNMENT): Set to 32 if TARGET_IAMCU is true.
25686 * config/i386/i386.c (ix86_option_override_internal): Ignore and
25687 warn -mregparm for Intel MCU. Turn on -mregparm=3 for Intel
25688 MCU by default. Default long double to 64-bit for Intel MCU.
25689 Turn on -freg-struct-return for Intel MCU. Issue an error when
25690 -miamcu is used in 64-bit or x32 mode or if x87, MMX, SSE or
25692 (function_arg_advance_32): Pass value whose size is no larger
25693 than 8 bytes in registers for Intel MCU.
25694 (function_arg_32): Likewise.
25695 (ix86_return_in_memory): Return value whose size is no larger
25696 than 8 bytes in registers for Intel MCU.
25697 (iamcu_alignment): New function.
25698 (ix86_data_alignment): Call iamcu_alignment if TARGET_IAMCU is
25700 (ix86_local_alignment): Don't increase alignment for Intel MCU.
25701 (x86_field_alignment): Return iamcu_alignment if TARGET_IAMCU is
25704 2015-06-30 Marek Polacek <polacek@redhat.com>
25706 * match.pd (X - (X / Y) * Y): Use convert1 and convert2. Convert
25707 both operands of the resulting expression.
25709 * match.pd (~x | x): Don't use tree_nop_conversion_p. Build
25710 the final expression with the operand's type and then convert
25711 it to the type of the expression.
25713 2015-06-30 Richard Biener <rguenther@suse.de>
25715 * fold-const.c (fold_binary_loc): Move ~x & ~y -> ~(x | y) and
25716 ~x | ~y -> ~(x & y), (x & CST) ^ (x & CST2) -> (x & CST) | (x & CST2),
25717 (X | Y) ^ X -> Y & ~ X, ~X ^ ~Y to X ^ Y and ~X ^ C to X ^ ~C ...
25718 * match.pd: ... to patterns here.
25720 2015-06-30 Richard Biener <rguenther@suse.de>
25722 PR tree-optimization/66704
25723 * tree-vect-data-refs.c (vect_setup_realignment): Use
25724 make_ssa_name for non-SSA name source.
25726 2015-06-30 Jakub Jelinek <jakub@redhat.com>
25728 PR middle-end/66702
25729 * omp-low.c (simd_clone_adjust): Handle addressable linear
25730 or uniform parameters or non-gimple type uniform parameters.
25732 2015-06-30 Richard Biener <rguenther@suse.de>
25734 * fold-const.c (fold_unary_loc): Move abs(abs(x)) -> abs(x),
25735 ~ (-A) to A - 1, ~ (A - 1) or ~ (A + -1) to -A and some cases of
25736 ~(X ^ Y) to ~X ^ Y or X ^ ~Y if ~X or ~Y simplify to ...
25737 * match.pd: ... here.
25738 Add a few cases of A - B -> A + (-B) when B "easily" negates.
25739 Move (x & y) | x -> x and friends before
25740 (x | CST1) & CST2 -> (x & CST2) | (CST1 & CST2).
25742 2015-06-30 Eric Botcazou <ebotcazou@adacore.com>
25744 * config/sparc/leon.md (leon_load): Enable for all LEON variants if
25745 -mfix-ut699 is not specified.
25746 (leon3_load): Rename into...
25747 (ut699_load): ...this. Enable for all LEON variants if -mfix-ut699
25750 2015-06-30 Marek Polacek <polacek@redhat.com>
25752 * fold-const.c (fold_binary_loc): Move ~X | X folding ...
25753 * match.pd: ... here.
25755 2015-06-30 Richard Biener <rguenther@suse.de>
25757 * target-insns.def (canonicalize_funcptr_for_compare): Add.
25758 * fold-const.c (build_range_check): Replace uses of
25759 HAVE_canonicalize_funcptr_for_compare.
25760 (fold_widened_comparison): Likewise.
25761 (fold_sign_changed_comparison): Likewise.
25762 * dojump.c: Include "target.h".
25763 (do_compare_and_jump): Replace uses of
25764 HAVE_canonicalize_funcptr_for_compare and
25765 gen_canonicalize_funcptr_for_compare.
25766 * expr.c (do_store_flag): Likewise.
25768 2015-06-30 Tom de Vries <tom@codesourcery.com>
25770 PR tree-optimization/66652
25771 * tree-parloops.c (try_transform_to_exit_first_loop_alt): Use
25772 max_loop_iterations to determine if nit + 1 overflows.
25774 2015-06-30 Richard Biener <rguenther@suse.de>
25776 * tree-vrp.c (register_edge_assert_for_2): Also register
25777 asserts for dominating conversion results.
25779 2015-06-30 Bin Cheng <bin.cheng@arm.com>
25781 * tree-ssa-loop-ivopts.c (record_sub_use): Don't reset ssa_name
25782 field in struct iv.
25784 2015-06-29 Jack Howarth <howarth.at.gcc@gmail.com>
25787 * configure.ac: Fix filds and fildq test for 64-bit.
25788 * configure: Regenerated.
25790 2015-06-29 Nathan Sidwell <nathan@codesourcery.com>
25792 * config/nvptx/nvptx.md (nvptx_reorg_subreg): New fn, broken out of ...
25793 (nvptx_reorg): Here. Keep the non-subreg pieces.
25795 2015-06-29 H.J. Lu <hongjiu.lu@intel.com>
25797 * config/gnu-user.h (GNU_USER_TARGET_ENDFILE_SPEC): Use
25798 PIE_SPEC and NO_PIE_SPEC if HAVE_LD_PIE is defined.
25800 2015-06-29 Uros Bizjak <ubizjak@gmail.com>
25802 * config/i386/i386.md (*jcc_1): Use %! in asm template.
25803 Set attribute "length_nobnd" instead of "length".
25806 (*jcc_1_bnd, *jcc_2_bnd, jump_bnd): Remove insn patterns.
25808 2015-06-29 Sandra Loosemore <sandra@codesourcery.com>
25810 * config/nios2/nios2.c (nios2_delegitimize_address): Make
25811 assert less restrictive.
25813 2015-06-29 Manuel López-Ibáñez <manu@gcc.gnu.org>
25816 * cgraphunit.c (cgraph_node::finalize_function): Do not call
25817 do_warn_unused_parameter.
25818 * function.c (do_warn_unused_parameter): Move from here.
25819 * function.h (do_warn_unused_parameter): Do not declare.
25821 2015-06-29 Matthew Wahab <matthew.wahab@arm.com>
25824 * gcc.target/arm/armv-sync-comp-swap.c: New.
25825 * gcc.target/arm/armv-sync-op-acquire.c: New.
25826 * gcc.target/arm/armv-sync-op-full.c: New.
25827 * gcc.target/arm/armv-sync-op-release.c: New.
25829 2015-06-29 Matthew Wahab <matthew.wahab@arm.com>
25832 * config/armc/arm.c (arm_split_compare_and_swap): For ARMv8, replace an
25833 initial acquire barrier with final barrier.
25835 2015-06-29 Matthew Wahab <matthew.wahab@arm.com>
25838 * config/armc/arm.c (arm_split_atomic_op): For ARMv8, replace an
25839 initial acquire barrier with final barrier.
25841 2015-06-29 Richard Henderson <rth@redhat.com>
25843 * config/i386/constraints.md (Bf): New constraint.
25844 * config/i386/i386-c.c (ix86_target_macros): Define
25845 __GCC_ASM_FLAG_OUTPUTS__.
25846 * config/i386/i386.c (ix86_md_asm_adjust): Handle =@cc* constraints
25848 * doc/extend.texi (FlagOutputOperands): Document them.
25850 2015-06-29 Jiong Wang <jiong.wang@arm.com>
25852 * config/arch64/aarch64.md (UNSPEC_TLSLE): New enumeration.
25853 * config/arch64/aarch64.md (tlsle_small): Rename to tlsle and use new
25855 (tlsle_small_<mode>): Rename to tlsle_<mode> and use new unspec name.
25856 * config/arch64/aarch64-protos.h (arch64_symbol_type): Rename
25857 SYMBOL_SMALL_TPREL to SYMBOL_TLSLE.
25858 (aarch64_symbol_context): Ditto.
25859 * config/aarch64/aarch64.c (aarch64_load_symref_appropriately): Ditto
25860 and use new pattern name.
25861 (aarch64_expand_mov_immediate): Ditto.
25862 (aarch64_print_operand): Ditto.
25863 (aarch64_classify_tls_symbol): Ditto.
25865 2015-06-29 Marek Polacek <polacek@redhat.com>
25866 Marc Glisse <marc.glisse@inria.fr>
25868 * fold-const.c (fold_binary_loc): Move X - (X / Y) * Y -> X % Y to ...
25869 * match.pd: ... pattern here.
25871 2015-06-29 Tom de Vries <tom@codesourcery.com>
25873 * tree-parloops.c (try_transform_to_exit_first_loop_alt): Simplify
25874 function structure.
25876 2015-06-29 Matthew Wahab <matthew.wahab@arm.com>
25878 * doc/invoke.texi (Aarch64 Options, -march): Split out arch and
25879 feature description, split out the native option, add a link to
25880 the feature documentation, rearrange and slightly rewrite text.
25881 (Aarch64 options, -mcpu): Likewise.
25882 (Aarch64 options, Feature Modifiers): Add an anchor. Mention
25883 +rdma implies Adv. SIMD.
25885 2015-06-29 Marek Polacek <polacek@redhat.com>
25888 * function.c (stack_protect_epilogue): Remove a cast to int.
25889 * doc/invoke.texi: Update -Wswitch-bool description.
25891 2015-06-29 Richard Biener <rguenther@suse.de>
25893 * genmatch.c (add_operator): Treat ADDR_EXPR as atom.
25894 * fold-const.c (fold_binary_loc): Move &A - &B simplification
25895 via ptr_difference_const ...
25896 * match.pd: ... here.
25897 When matching (X ^ Y) == Y also match with swapped operands.
25899 2015-06-29 Richard Biener <rguenther@suse.de>
25901 * lto-streamer.h (LTO_major_version): Bump to 5.
25903 2015-06-29 Richard Biener <rguenther@suse.de>
25905 PR tree-optimization/66677
25906 * tree-vect-stmts.c (vect_transform_stmt): Make assert about
25907 STMT_VINFO_VEC_STMT clobbering less strict.
25909 2015-06-29 Kugan Vivekanandarajah <kuganv@linaro.org>
25911 PR middle-end/64130
25912 * tree-vrp.c (extract_range_from_binary_expr_1): For unsigned
25913 division, compute max and min when value ranges for dividend and
25914 divisor are available.
25916 2015-06-28 Chung-Lin Tang <cltang@codesourcery.com>
25917 Sandra Loosemore <sandra@codesourcery.com>
25919 * regrename.h (regrename_do_replace): Change to return bool.
25920 * regrename.c (rename_chains): Check return value of
25921 regname_do_replace.
25922 (regrename_do_replace): Re-validate the modified insns and
25923 return bool status.
25924 * config/aarch64/cortex-a57-fma-steering.c (rename_single_chain):
25925 Update to match rename_chains changes.
25926 * config/c6x/c6x.c (try_rename_operands): Assert that
25927 regrename_do_replace returns true.
25929 2015-06-28 Uros Bizjak <ubizjak@gmail.com>
25931 * config/i386/i386.md (<mode>_ldx): Do not zero-extend non-Pmode
25932 operand 2 here. Use copy_addr_to_reg to copy non-index
25933 register operand 2 to a temporary.
25934 (<mode>_stx): Ditto for operand 1.
25935 (*<mode>_ldx, *<mode>_stx): Remove enclosing parallel.
25936 * config/i386/i386.c (ix86_load_bounds): Zero-extend non-Pmode ptr here.
25937 (ix86_store_bounds): Ditto.
25939 2015-06-27 Patrick Palka <ppalka@gcc.gnu.org>
25941 * print-tree.c (print_node) [TREE_VEC]: Print its length.
25943 2015-06-26 Andrew MacLeod <amacleod@redhat.com>
25945 * gimple.c (gimple_call_set_fndecl): Remove.
25946 * gimple.h (gimple_call_set_fndecl): Relocate to gimple.h and call
25947 build1_loc directly instead of build_fold_addr_expr_loc.
25949 2015-06-26 Richard Sandiford <richard.sandiford@arm.com>
25951 * hash-map.h (hash_map::traverse): Use the definition of the
25952 Key typedef rather than the typedef itself.
25954 2015-06-26 Martin Jambor <mjambor@suse.cz>
25957 * tree-ssa-pre.c (before_dom_children): Check that dump_file is not
25958 NULL instead of calling dump_enabled_p.
25960 2015-06-26 James Greenhalgh <james.greenhalgh@arm.com>
25962 * config/aarch64/aarch64.opt: (override): New.
25963 * doc/invoke.texi (override): Document.
25964 * config/aarch64/aarch64.c (aarch64_flag_desc): New
25965 (aarch64_fusible_pairs): Likewise.
25966 (aarch64_tuning_flags): Likewise.
25967 (aarch64_tuning_override_function): Likewise.
25968 (aarch64_tuning_override_functions): Likewise.
25969 (aarch64_parse_one_option_token): Likewise.
25970 (aarch64_parse_boolean_options): Likewise.
25971 (aarch64_parse_fuse_string): Likewise.
25972 (aarch64_parse_tune_string): Likewise.
25973 (aarch64_parse_one_override_token): Likewise.
25974 (aarch64_parse_override_string): Likewise.
25975 (aarch64_override_options): Parse the -override string if it
25978 2015-06-26 James Greenhalgh <james.greenhalgh@arm.com>
25980 * config/aarch64/aarch64-protos.h (tune_params): Remove
25981 const from members.
25982 (aarch64_tune_params): Remove const, change to no longer be
25984 * config/aarch64/aarch64.c (aarch64_tune_params): Remove const,
25985 change to no longer be a pointer, initialize to generic_tunings.
25986 (aarch64_min_divisions_for_recip_mul): Change dereference of
25987 aarch64_tune_params to member access.
25988 (aarch64_reassociation_width): Likewise.
25989 (aarch64_rtx_mult_cost): Likewise.
25990 (aarch64_address_cost): Likewise.
25991 (aarch64_branch_cost): Likewise.
25992 (aarch64_rtx_costs): Likewise.
25993 (aarch64_register_move_cost): Likewise.
25994 (aarch64_memory_move_cost): Likewise.
25995 (aarch64_sched_issue_rate): Likewise.
25996 (aarch64_builtin_vectorization_cost): Likewise.
25997 (aarch64_override_options): Take a copy of the selected tuning
25998 struct in to aarch64_tune_params, rather than just setting
25999 a pointer, change dereferences of aarch64_tune_params to member
26001 (aarch64_override_options_after_change): Change dereferences of
26002 aarch64_tune_params to member access.
26003 (aarch64_macro_fusion_p): Likewise.
26004 (aarch_macro_fusion_pair_p): Likewise.
26005 * config/aarch64/cortex-a57-fma-steering.c (gate): Likewise.
26007 2015-06-26 James Greenhalgh <james.greenhalgh@arm.com>
26009 * config/aarch64/aarch64.h (AARCH64_FL_USE_FMA_STEERING_PASS): Delete.
26010 (aarch64_tune_flags): Likewise.
26011 (AARCH64_TUNE_FMA_STEERING): Likewise.
26012 * config/aarch64/aarch64-cores.def (cortex-a57): Remove reference
26013 to AARCH64_FL_USE_FMA_STEERING_PASS.
26014 (cortex-a57.cortex-a53): Likewise.
26015 (cortex-a72): Use cortexa72_tunings.
26016 (cortex-a72.cortex-a53): Likewise.
26017 (exynos-m1): Likewise.
26018 * config/aarch64/aarch64-protos.h (tune_params): Add
26019 a field: extra_tuning_flags.
26020 * config/aarch64/aarch64-tuning-flags.def: New.
26021 * config/aarch64/aarch64-protos.h (AARCH64_EXTRA_TUNING_OPTION): New.
26022 (aarch64_extra_tuning_flags): Likewise.
26023 (aarch64_tune_params): Declare here.
26024 * config/aarch64/aarch64.c (generic_tunings): Set extra_tuning_flags.
26025 (cortexa53_tunings): Likewise.
26026 (cortexa57_tunings): Likewise.
26027 (thunderx_tunings): Likewise.
26028 (xgene1_tunings): Likewise.
26029 (cortexa72_tunings): New.
26030 * config/aarch64/cortex-a57-fma-steering.c: Include aarch64-protos.h.
26031 (gate): Check against aarch64_tune_params.
26032 * config/aarch64/t-aarch64 (cortex-a57-fma-steering.o): Depend on
26035 2015-06-26 James Greenhalgh <james.greenhalgh@arm.com>
26037 * config/aarch64/aarch64-fusion-pairs.def: New.
26038 * config/aarch64/aarch64-protos.h (aarch64_fusion_pairs): New.
26039 * config/aarch64/aarch64.c (AARCH64_FUSE_NOTHING): Move to
26040 aarch64_fusion_pairs.
26041 (AARCH64_FUSE_MOV_MOVK): Likewise.
26042 (AARCH64_FUSE_ADRP_ADD): Likewise.
26043 (AARCH64_FUSE_MOVK_MOVK): Likewise.
26044 (AARCH64_FUSE_ADRP_LDR): Likewise.
26045 (AARCH64_FUSE_CMP_BRANCH): Likewise.
26047 2015-06-26 Jiong Wang <jiong.wang@arm.com>
26049 * config/aarch64/aarch64-protos.h (aarch64_symbol_type): New type
26050 SYMBOL_SMALL_GOT_28K.
26051 * config/aarch64/aarch64.md: (ldr_got_small_<mode>): Support new GOT
26052 relocation modifiers.
26053 (unspec): New enum "UNSPEC_GOTMALLPIC28K.
26054 (ldr_got_small_28k_<mode>): New.
26055 (ldr_got_small_28k_sidi): New.
26056 * config/aarch64/iterators.md (got_modifier): New mode iterator.
26057 * config/aarch64/aarch64-otps.h (aarch64_code_model): New model.
26058 * config/aarch64/aarch64.c (aarch64_load_symref_appropriately): Support
26059 SYMBOL_SMALL_GOT_28K.
26060 (aarch64_rtx_costs): Add costs for new instruction sequences.
26061 (initialize_aarch64_code_model): Initialize new model.
26062 (aarch64_classify_symbol): Recognize new model and new symbol classification.
26063 (aarch64_asm_preferred_eh_data_format): Support new model.
26064 (aarch64_load_symref_appropriately): Generate new instruction
26065 sequences for -fpic.
26066 (TARGET_USE_PSEUDO_PIC_REG): New definition.
26067 (aarch64_use_pseudo_pic_reg): New function.
26069 2015-06-26 Jiong Wang <jiong.wang@arm.com>
26071 * config/aarch64/aarch64-protos.h (aarch64_symbol_type): Rename
26072 SYMBOL_SMALL_GOT to SYMBOL_SMALL_GOT_4G.
26073 * config/aarch64/aarch64.c (aarch64_load_symref_appropriately): Ditto.
26074 (aarch64_expand_mov_immediate): Ditto.
26075 (aarch64_print_operand): Ditto.
26076 (aarch64_classify_symbol): Ditto.
26078 2015-06-26 Nathan Sidwell <nathan@codesourcery.com>
26080 * config/nvptx/nvptx.md (call_operation): Remove unused variables.
26082 2015-06-26 Bin Cheng <bin.cheng@arm.com>
26085 * tree-ssa-loop-niter.c (loop_exits_before_overflow): Skip if
26086 assertion failed. Remove assertion itself.
26088 2015-06-26 Richard Biener <rguenther@suse.de>
26090 * fold-const.c (fold_binary_loc): Remove -A CMP -B -> A CMP B
26091 and -A CMP CST -> A CMP -CST which is redundant with a pattern
26093 Move (A | C) == D where C & ~D != 0 -> 0, (X ^ Y) ==/!= 0 -> X ==/!= Y,
26094 (X ^ Y) ==/!= {Y,X} -> {X,Y} ==/!= 0 and
26095 (X ^ C1) op C2 -> X op (C1 ^ C2) to ...
26096 * match.pd: ... patterns here.
26098 2015-06-26 Marek Polacek <polacek@redhat.com>
26100 * match.pd ((x | y) & ~(x & y) -> x ^ y,
26101 (x | y) & (~x ^ y) -> x & y): New patterns.
26103 2015-06-26 Richard Sandiford <richard.sandiford@arm.com>
26105 * rtl.h (emit): Add an optional boolean parameter to control
26106 whether barriers are emitted.
26107 * emit-rtl.c (emit): Likewise.
26108 * gensupport.c (get_emit_function): Return null rather than "emit".
26109 * genemit.c (gen_emit_seq): Handle the null return value.
26110 Don't emit barriers after the final instruction in the sequence.
26111 * gentarget-def.c (main): Don't emit barriers after the instruction.
26113 2015-06-26 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
26115 * config/arm/arm.c (arm_output_multireg_pop): Fix use of
26116 TARGET_UNIFIED_ASM.
26118 2015-06-26 Richard Biener <rguenther@suse.de>
26120 * match.pd: Allow associating FLOAT_TYPE_P when flag_associative_math.
26122 2015-06-26 Richard Biener <rguenther@suse.de>
26124 * match.pd: Allow (p +p off1) +p off2 to (p +p (off1 + off2))
26125 irrespective on whether the inner operation has a single use
26126 of both off are constant.
26128 2015-06-26 Uros Bizjak <ubizjak@gmail.com>
26129 Segher Boessenkool <segher@kernel.crashing.org>
26132 * config/i386/i386.md (various splitters): Use shallow_copy_rtx
26133 before doing PUT_MODE or PUT_CODE on operands to avoid
26134 in-place RTX modification.
26136 2015-06-25 H.J. Lu <hongjiu.lu@intel.com>
26138 * gentarget-def.c (def_target_insn): Cast return of strtol to
26141 2015-06-25 Andrew MacLeod <amacleod@redhat.com>
26143 * gimple.h (gimple_call_set_fn): Move inline function.
26144 * gimple.c (gimple_call_set_fn): Relocate here.
26146 2015-06-25 Oleg Endo <olegendo@gcc.gnu.org>
26150 * config/sh/sh.md (tstsi_t peephole2): Use insn_invalid_p to check if
26151 the replacement insn will work.
26153 2015-06-25 H.J. Lu <hongjiu.lu@intel.com>
26155 * gcc.c (driver_handle_option): Validate -pie if PIE is enabled
26158 2015-06-25 Andrew MacLeod <amacleod@redhat.com>
26160 * function.h (ipa_opt_pass, ipa_opt_pass_d): Move forward declarations.
26161 * cgraph.h: Include ipa-ref.h and plugin-api.h.
26162 (ipa_opt_pass, ipa_opt_pass_d)): Relocate forward declarations here.
26163 (symtab_node::address_can_be_compared_p): Move function.
26164 * cgraph.c (symtab_node::address_can_be_compared_p): Relocate function
26166 * asan.c: Remove ipa-ref.h and plugin-api.h from include list.
26167 * auto-profile.c: Likewise.
26168 * bb-reorder.c: Likewise.
26169 * builtins.c: Likewise.
26170 * calls.c: Likewise.
26171 * cfgexpand.c: Likewise.
26172 * cgraphbuild.c: Likewise.
26173 * cgraphclones.c: Likewise.
26174 * cgraphunit.c: Likewise.
26175 * combine.c: Likewise.
26176 * coverage.c: Likewise.
26177 * data-streamer-in.c: Likewise.
26178 * data-streamer-out.c: Likewise.
26179 * data-streamer.c: Likewise.
26180 * dbxout.c: Likewise.
26181 * dwarf2out.c: Likewise.
26182 * except.c: Likewise.
26183 * expr.c: Likewise.
26184 * final.c: Likewise.
26185 * fold-const.c: Likewise.
26186 * ggc-page.c: Likewise.
26187 * gimple-fold.c: Likewise.
26188 * gimple-iterator.c: Likewise.
26189 * gimple-pretty-print.c: Likewise.
26190 * gimple-streamer-in.c: Likewise.
26191 * gimple-streamer-out.c: Likewise.
26192 * gimple.c: Likewise.
26193 * gimplify.c: Likewise.
26194 * ipa-chkp.c: Likewise.
26195 * ipa-comdats.c: Likewise.
26196 * ipa-cp.c: Likewise.
26197 * ipa-devirt.c: Likewise.
26198 * ipa-icf-gimple.c: Likewise.
26199 * ipa-icf.c: Likewise.
26200 * ipa-inline-analysis.c: Likewise.
26201 * ipa-inline-transform.c: Likewise.
26202 * ipa-inline.c: Likewise.
26203 * ipa-polymorphic-call.c: Likewise.
26204 * ipa-profile.c: Likewise.
26205 * ipa-prop.c: Likewise.
26206 * ipa-pure-const.c: Likewise.
26207 * ipa-ref.c: Likewise.
26208 * ipa-reference.c: Likewise.
26209 * ipa-split.c: Likewise.
26210 * ipa-utils.c: Likewise.
26211 * ipa-visibility.c: Likewise.
26213 * langhooks.c: Likewise.
26214 * lto-cgraph.c: Likewise.
26215 * lto-compress.c: Likewise.
26216 * lto-opts.c: Likewise.
26217 * lto-section-in.c: Likewise.
26218 * lto-section-out.c: Likewise.
26219 * lto-streamer-in.c: Likewise.
26220 * lto-streamer-out.c: Likewise.
26221 * lto-streamer.c: Likewise.
26222 * omp-low.c: Likewise.
26223 * opts-global.c: Likewise.
26224 * passes.c: Likewise.
26225 * predict.c: Likewise.
26226 * print-tree.c: Likewise.
26227 * profile.c: Likewise.
26229 * sanopt.c: Likewise.
26230 * stor-layout.c: Likewise.
26231 * symtab.c: Likewise.
26232 * toplev.c: Likewise.
26233 * trans-mem.c: Likewise.
26234 * tree-cfg.c: Likewise.
26235 * tree-chkp.c: Likewise.
26236 * tree-eh.c: Likewise.
26237 * tree-emutls.c: Likewise.
26238 * tree-inline.c: Likewise.
26239 * tree-nested.c: Likewise.
26240 * tree-parloops.c: Likewise.
26241 * tree-pretty-print.c: Likewise.
26242 * tree-profile.c: Likewise.
26243 * tree-sra.c: Likewise.
26244 * tree-ssa-alias.c: Likewise.
26245 * tree-ssa-live.c: Likewise.
26246 * tree-ssa-loop-ivcanon.c: Likewise.
26247 * tree-ssa-loop-ivopts.c: Likewise.
26248 * tree-ssa-pre.c: Likewise.
26249 * tree-ssa-sccvn.c: Likewise.
26250 * tree-ssa-strlen.c: Likewise.
26251 * tree-ssa-structalias.c: Likewise.
26252 * tree-streamer-in.c: Likewise.
26253 * tree-streamer-out.c: Likewise.
26254 * tree-streamer.c: Likewise.
26255 * tree-switch-conversion.c: Likewise.
26256 * tree-tailcall.c: Likewise.
26257 * tree-vect-data-refs.c: Likewise.
26258 * tree-vect-stmts.c: Likewise.
26259 * tree-vectorizer.c: Likewise.
26260 * tree.c: Likewise.
26261 * tsan.c: Likewise.
26262 * ubsan.c: Likewise.
26263 * value-prof.c: Likewise.
26264 * varasm.c: Likewise.
26265 * varpool.c: Likewise.
26266 * config/arm/arm.c: Likewise.
26267 * config/bfin/bfin.c: Likewise.
26268 * config/c6x/c6x.c: Likewise.
26269 * config/cris/cris.c: Likewise.
26270 * config/darwin-c.c: Likewise.
26271 * config/darwin.c: Likewise.
26272 * config/i386/i386.c: Likewise.
26273 * config/i386/winnt.c: Likewise.
26274 * config/microblaze/microblaze.c: Likewise.
26275 * config/mips/mips.c: Likewise.
26276 * config/rs6000/rs6000.c: Likewise.
26277 * config/rx/rx.c: Likewise.
26278 * config/s390/s390.c: Likewise.
26279 * config/tilegx/mul-tables.c: Likewise.
26281 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
26283 * config/aarch64/aarch64.c, config/alpha/alpha.c,
26284 config/arm/arm.c, config/avr/avr.c, config/bfin/bfin.c,
26285 config/c6x/c6x.c, config/cr16/cr16.c, config/cris/cris.c,
26286 config/fr30/fr30.c, config/frv/frv.c, config/h8300/h8300.c,
26287 config/i386/i386.c, config/ia64/ia64.c, config/iq2000/iq2000.c,
26288 config/lm32/lm32.c, config/m32c/m32c.c, config/m32r/m32r.c,
26289 config/m68k/m68k.c, config/mcore/mcore.c, config/mep/mep.c,
26290 config/microblaze/microblaze.c, config/mips/mips.c,
26291 config/mmix/mmix.c, config/mn10300/mn10300.c,
26292 config/moxie/moxie.c, config/msp430/msp430.c,
26293 config/nds32/nds32.c, config/nios2/nios2.c, config/nvptx/nvptx.c,
26294 config/pa/pa.c, config/pdp11/pdp11.c, config/rl78/rl78.c,
26295 config/rs6000/rs6000.c, config/rx/rx.c, config/s390/s390.c,
26296 config/sh/sh.c, config/sparc/sparc.c, config/spu/spu.c,
26297 config/stormy16/stormy16.c, config/tilegx/tilegx.c,
26298 config/tilepro/tilepro.c, config/v850/v850.c, config/vax/vax.c,
26299 config/visium/visium.c, config/xtensa/xtensa.c: Add comment above
26300 target-def.h include.
26301 * config/ft32/ft32.c: Likewise. Fix misapplied hunk.
26303 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
26305 * Makefile.in (TARGET_DEF): Add target-insns.def.
26306 (.PRECIOUS, simple_rtl_generated_h): Add insn-target-def.h.
26307 (build/gentarget-def.o): New rule.
26308 (genprogrtl): Add target-def.
26309 * target-insns.def, gentarget-def.c: New files.
26310 * target.def: Add targetm.have_* and targetm.gen_* hooks,
26311 based on the contents of target-insns.def.
26312 * defaults.h (HAVE_simple_return, gen_simple_return): Delete.
26313 (HAVE_return, gen_return): Delete.
26314 * target-def.h: Include insn-target-def.h.
26315 * cfgrtl.c (force_nonfallthru_and_redirect): Use targetm interface
26316 instead of direct calls. Rely on them to do the appropriate assertions.
26317 * function.c (gen_return_pattern): Likewise. Return an rtx_insn *.
26318 (convert_jumps_to_returns): Use targetm interface instead of
26320 (thread_prologue_and_epilogue_insns): Likewise.
26321 * reorg.c (find_end_label, dbr_schedule): Likewise.
26322 * shrink-wrap.h (SHRINK_WRAPPING_ENABLED): Likewise.
26323 * shrink-wrap.c (convert_to_simple_return): Likewise.
26324 (try_shrink_wrapping): Use SHRINK_WRAPPING_ENABLED.
26326 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
26328 * config/aarch64/aarch64.c, config/alpha/alpha.c, config/arm/arm.c,
26329 config/avr/avr.c, config/bfin/bfin.c, config/c6x/c6x.c,
26330 config/cr16/cr16.c, config/cris/cris.c, config/fr30/fr30.c,
26331 config/frv/frv.c, config/ft32/ft32.c, config/h8300/h8300.c,
26332 config/i386/i386.c, config/ia64/ia64.c, config/iq2000/iq2000.c,
26333 config/lm32/lm32.c, config/m32c/m32c.c, config/m32r/m32r.c,
26334 config/m68k/m68k.c, config/mcore/mcore.c, config/mep/mep.c,
26335 config/microblaze/microblaze.c, config/mips/mips.c, config/mmix/mmix.c,
26336 config/mn10300/mn10300.c, config/moxie/moxie.c, config/msp430/msp430.c,
26337 config/nds32/nds32.c, config/nios2/nios2.c, config/nvptx/nvptx.c,
26338 config/pa/pa.c, config/pdp11/pdp11.c, config/rl78/rl78.c,
26339 config/rs6000/rs6000.c, config/rx/rx.c, config/s390/s390.c,
26340 config/sh/sh.c, config/sparc/sparc.c, config/spu/spu.c,
26341 config/stormy16/stormy16.c, config/tilegx/tilegx.c,
26342 config/tilepro/tilepro.c, config/v850/v850.c, config/vax/vax.c,
26343 config/visium/visium.c, config/xtensa/xtensa.c: Move target-def.h
26346 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
26348 * hash-map-traits.h (simple_hashmap_traits::key_type): New typedef.
26349 (unbounded_int_hashmap_traits::key_type): Likewise.
26350 * hash-map.h (hash_map): Get the key type from the traits.
26351 * hash-traits.h (default_hash_traits): By default, inherit from the
26352 template parameter.
26353 * alias.c (alias_set_traits): Delete.
26354 (alias_set_entry_d::children): Use alias_set_hash as the first
26355 template parameter.
26356 (record_alias_subset): Update accordingly.
26357 * except.c (tree_hash_traits): Delete.
26358 (type_to_runtime_map): Use tree_hash as the first template parameter.
26359 (init_eh): Update accordingly.
26360 * genmatch.c (capture_id_map_hasher): Delete.
26361 (cid_map_t): Use nofree_string_hash as first template parameter.
26362 * ipa-icf.h (symbol_compare_hashmap_traits): Delete.
26363 * ipa-icf.c (sem_item_optimizer::subdivide_classes_by_sensitive_refs):
26364 Use symbol_compare_hash as the first template parameter in
26365 subdivide_hash_map.
26366 * mem-stats.h (mem_usage_pair::mem_alloc_hashmap_traits): Delete.
26367 (mem_usage_pair::mem_map_t): Use mem_location_hash as the first
26368 template parameter.
26369 * passes.c (pass_registry_hasher): Delete.
26370 (name_to_pass_map): Use nofree_string_hash as the first template
26372 (register_pass_name): Update accordingly.
26373 * sanopt.c (sanopt_tree_map_traits): Delete.
26374 (sanopt_tree_triplet_map_traits): Delete.
26375 (sanopt_ctx::asan_check_map): Use tree_operand_hash as the first
26376 template parameter.
26377 (sanopt_ctx::vptr_check_map): Use sanopt_tree_triplet_hash as
26378 the first template parameter.
26379 * sese.c (rename_map_hasher): Delete.
26380 (rename_map_type): Use tree_ssa_name_hash as the first template
26382 * symbol-summary.h (function_summary::summary_hashmap_traits): Delete.
26383 (function_summary::m_map): Use map_hash as the first template
26385 (function_summary::release): Update accordingly.
26386 * tree-if-conv.c (phi_args_hash_traits): Delete.
26387 (predicate_scalar_phi): Use tree_operand_hash as the first template
26388 parameter to phi_arg_map.
26389 * tree-inline.h (dependence_hasher): Delete.
26390 (copy_body_data::dependence_map): Use dependence_hash as the first
26391 template parameter.
26392 * tree-inline.c (remap_dependence_clique): Update accordingly.
26393 * tree-ssa-strlen.c (stridxlist_hash_traits): Delete.
26394 (decl_to_stridxlist_htab): Use tree_decl_hash as the first template
26396 (addr_stridxptr): Update accordingly.
26397 * value-prof.c (profile_id_traits): Delete.
26398 (cgraph_node_map): Use profile_id_hash as the first template
26400 (init_node_map): Update accordingly.
26401 * config/alpha/alpha.c (string_traits): Delete.
26402 (machine_function::links): Use nofree_string_hash as the first
26403 template parameter.
26404 (alpha_use_linkage, alpha_write_linkage): Update accordingly.
26405 * config/m32c/m32c.c (pragma_traits): Delete.
26406 (pragma_htab): Use nofree_string_hash as the first template parameter.
26407 (m32c_note_pragma_address): Update accordingly.
26408 * config/mep/mep.c (pragma_traits): Delete.
26409 (pragma_htab): Use nofree_string_hash as the first template parameter.
26410 (mep_note_pragma_flag): Update accordingly.
26411 * config/mips/mips.c (mips16_flip_traits): Delete.
26412 (mflip_mips16_htab): Use nofree_string_hash as the first template
26414 (mflip_mips16_use_mips16_p): Update accordingly.
26415 (local_alias_traits): Delete.
26416 (mips16_local_aliases): Use nofree_string_hash as the first template
26418 (mips16_local_alias): Update accordingly.
26420 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
26422 * hash-map-traits.h (default_hashmap_traits): Delete.
26424 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
26426 * hash-map-traits.h (unbounded_hashmap_traits): New class.
26427 (unbounded_int_hashmap_traits): Likewise.
26428 * cfgexpand.c (part_traits): Use unbounded_int_hashmap_traits.
26430 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
26432 * ipa-icf.h (symbol_compare_hash): New class.
26433 (symbol_compare_hashmap_traits): Use it.
26434 * mem-stats.h (mem_alloc_description::mem_location_hash): New class.
26435 (mem_alloc_description::mem_alloc_hashmap_traits): Use it.
26436 (mem_alloc_description::reverse_mem_map_t): Remove redundant
26437 default_hashmap_traits.
26438 * sanopt.c (sanopt_tree_triplet_hash): New class.
26439 (sanopt_tree_triplet_map_traits): Use it.
26441 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
26443 * gengtype-parse.c (require_template_declaration): Allow '+' in
26444 template parameters. Consolidate cases.
26445 * hash-traits.h (int_hash): New class.
26446 * alias.c (alias_set_hash): New structure.
26447 (alias_set_traits): Use it.
26448 * symbol-summary.h (function_summary::map_hash): New class.
26449 (function_summary::summary_hashmap_traits): Use it.
26450 * tree-inline.h (dependence_hash): New class.
26451 (dependence_hasher): Use it.
26452 * tree-ssa-reassoc.c (oecount_hasher): Use int_hash.
26453 * value-prof.c (profile_id_hash): New class.
26454 (profile_id_traits): Use it.
26456 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
26458 * config/mips/mips.c (mips16_flip_traits): Use it.
26459 (local_alias_traits, mips16_local_aliases): Convert from a map of
26460 rtxes to a map of symbol names.
26461 (mips16_local_alias): Update accordingly.
26463 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
26465 * hash-traits.h (string_hash, nofree_string_hash): New classes.
26466 * genmatch.c (capture_id_map_hasher): Use nofree_string_hash.
26467 * passes.c (pass_registry_hasher): Likewise.
26468 * config/alpha/alpha.c (string_traits): Likewise.
26469 * config/i386/winnt.c (i386_find_on_wrapper_list): Likewise.
26470 * config/m32c/m32c.c (pragma_traits): Likewise.
26471 * config/mep/mep.c (pragma_traits): Likewise.
26473 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
26475 * tree-hash-traits.h (tree_hash): New class.
26476 * except.c: Include tree-hash-traits.h.
26477 (tree_hash_traits): Use tree_hash.
26479 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
26481 * tree-hash-traits.h (tree_ssa_name_hasher): New class.
26482 * sese.c: Include tree-hash-traits.h.
26483 (rename_map_hasher): Use tree_ssa_name_hasher.
26485 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
26487 * tree-hash-traits.h (tree_decl_hash): New class.
26488 * tree-ssa-strlen.c: Include tree-hash-traits.h.
26489 (stridxlist_hash_traits): Use tree_decl_hash.
26491 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
26493 * tree-hash-traits.h: New file.
26494 (tree_operand_hash): New class.
26495 * sanopt.c: Include tree-hash-traits.h.
26496 (sanopt_tree_map_traits): Use tree_operand_hash.
26497 * tree-if-conv.c: Include tree-hash-traits.h.
26498 (phi_args_hash_traits): Use tree_operand_hash.
26499 * tree-ssa-uncprop.c: Include tree-hash-traits.h.
26500 (val_ssa_equiv_hash_traits): Use tree_operand_hash.
26502 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
26504 * hash-map-traits.h: Include hash-traits.h.
26505 (simple_hashmap_traits): New class.
26506 * mem-stats.h (hash_map): Change the default traits to
26507 simple_hashmap_traits<default_hash_traits<Key> >.
26509 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
26511 * hash-table.h: Update comments.
26513 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
26515 * hash-traits.h (default_hash_traits): New structure.
26516 * hash-set.h (default_hashset_traits): Delete.
26517 (hash_set): Use default_hash_traits<Key> instead of
26518 default_hashset_traits. Delete hash_entry type and use Key directly.
26519 * ipa-devirt.c (pair_traits): Delete.
26520 (default_hash_traits <type_pair>): Override.
26521 (odr_subtypes_equivalent_p): Remove pair_types template parameter.
26522 (odr_types_equivalent_p, add_type_duplicate): Likewise.
26524 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
26526 * hash-traits.h (typed_noop_remove): Don't require a pointer type.
26528 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
26530 * hash-table.h (has_is_deleted, is_deleted_helper): Delete.
26531 (has_is_empty, is_empty_helper): Delete.
26532 (has_mark_deleted, mark_deleted_helper): Delete.
26533 (has_mark_empty, mark_empty_helper): Delete.
26534 (hash_table::is_deleted): Call the Descriptor unconditionally.
26535 (hash_table::is_empty): Likewise.
26536 (hash_table::mark_deleted): Likewise.
26537 (hash_table::mark_empty): Likewise.
26539 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
26541 * cgraph.h (asmname_hasher): Inherit from ggc_ptr_hash. Remove
26542 redundant typedefs and members.
26543 * coverage.c (counts_entry): Inherit from pointer_hash. Remove
26544 redundant typedefs.
26545 * dwarf2out.c (cu_hash_table_entry_hasher): Likewise.
26546 * ipa-devirt.c (odr_name_hasher): Likewise.
26547 (polymorphic_call_target_hasher): Likewise.
26548 * ira-costs.c (cost_classes_hasher): Likewise.
26549 * statistics.c (stats_counter_hasher): Likewise.
26550 * trans-mem.c (log_entry_hasher): Likewise.
26551 * tree-ssa-dom.c (expr_elt_hasher): Likewise.
26552 * tree-ssa-sccvn.c (vn_phi_hasher, vn_reference_hasher): Likewise.
26553 * tree-ssa-tail-merge.c (same_succ_def): Likewise.
26554 * var-tracking.c (variable_hasher): Likewise.
26555 * valtrack.h (dead_debug_hash_descr): Inherit from free_ptr_hash.
26556 Remove redundant typedefs and members.
26558 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
26560 * hash-traits.h (ggc_cache_hasher): Rename to...
26561 (ggc_cache_remove): ...this and remove typedefs.
26562 (ggc_cache_ptr_hash): New class.
26563 * hash-table.h: Update commentary.
26564 * emit-rtl.c (const_int_hasher): Inherit from ggc_cache_ptr_hash
26565 rather than ggc_cache_hasher.
26566 (const_wide_int_hasher, reg_attr_hasher): Likewise.
26567 (const_double_hasher, const_fixed_hasher): Likewise.
26568 * function.c (insn_cache_hasher): Likewise.
26569 * trans-mem.c (tm_wrapper_hasher): Likewise.
26570 * tree.h (tree_decl_map_cache_hasher): Likewise.
26571 * tree.c (type_cache_hasher, int_cst_hasher): Likewise.
26572 (cl_option_hasher, tree_vec_map_cache_hasher): Likewise.
26573 * ubsan.c (tree_type_map_cache_hasher): Likewise.
26574 * varasm.c (tm_clone_hasher): Likewise.
26575 * config/i386/i386.c (dllimport_hasher): Likewise.
26576 * config/nvptx/nvptx.c (declared_libfunc_hasher): Likewise.
26577 (tree_hasher): Likewise.
26579 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
26581 * hash-traits.h (ggc_hasher): Rename to...
26582 (ggc_remover): ...this and remove typedefs.
26583 (ggc_cache_hasher): Update accordingly. Add typedefs.
26584 (ggc_ptr_hash): New class.
26585 * hash-table.h: Update comment.
26586 * cfgloop.h (loop_exit_hasher): Inherit from ggc_ptr_hash rather than
26588 * cgraph.h (section_name_hasher, cgraph_edge_hasher): Likewise.
26589 (tree_descriptor_hasher): Likewise.
26590 * cgraph.c (function_version_hasher): Likewise.
26591 * dwarf2out.c (indirect_string_hasher, dwarf_file_hasher): Likewise.
26592 (decl_die_hasher, block_die_hasher, decl_loc_hasher): Likewise.
26593 (dw_loc_list_hasher, addr_hasher): Likewise.
26594 * function.h (used_type_hasher): Likewise.
26595 * function.c (temp_address_hasher): Likewise.
26596 * gimple-ssa.h (tm_restart_hasher, ssa_name_hasher): Likewise.
26597 * libfuncs.h (libfunc_hasher): Likewise.
26598 * lto-streamer.h (decl_state_hasher): Likewise.
26599 * optabs.c (libfunc_decl_hasher): Likewise.
26600 * tree-scalar-evolution.c (scev_info_hasher): Likewise.
26601 * varasm.c (section_hasher, object_block_hasher): Likewise.
26602 (const_rtx_desc_hasher): Likewise.
26603 * config/darwin.c (indirection_hasher, cfstring_hasher): Likewise.
26604 * config/rs6000/rs6000.c (toc_hasher, builtin_hasher): Likewise.
26606 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
26608 * hash-traits.h (free_ptr_hash): New class.
26609 * dwarf2out.c (decl_table_entry_hasher): Inherit from free_ptr_hash
26610 rather than typed_free_remove. Remove redudant typedefs.
26611 (external_ref_hasher): Likewise.
26612 * except.c (action_record_hasher, ttypes_filter_hasher): Likewise.
26613 (ehspec_hasher): Likewise.
26614 * ggc-common.c (saving_hasher): Likewise.
26615 * gimplify.c (gimplify_hasher): Likewise.
26616 * haifa-sched.c (delay_i2_hasher): Likewise.
26617 * loop-invariant.c (invariant_expr_hasher): Likewise.
26618 * loop-iv.c (biv_entry_hasher): Likewise.
26619 * loop-unroll.c (iv_split_hasher, var_expand_hasher): Likewise.
26620 * trans-mem.c (tm_mem_map_hasher, tm_memop_hasher): Likewise.
26621 * tree-cfg.c (locus_discrim_hasher): Likewise.
26622 * tree-eh.c (finally_tree_hasher): Likewise.
26623 * tree-into-ssa.c (var_info_hasher): Likewise.
26624 * tree-parloops.c (reduction_hasher, name_to_copy_hasher): Likewise.
26625 * tree-ssa-loop-ivopts.c (iv_inv_expr_hasher): Likewise.
26626 * tree-ssa-phiopt.c (ssa_names_hasher): Likewise.
26627 * tree-ssa-pre.c (expr_pred_trans_d): Likewise.
26628 * tree-ssa-sccvn.c (vn_constant_hasher): Likewise.
26629 * tree-ssa-structalias.c (equiv_class_hasher): Likewise.
26630 (shared_bitmap_hasher): Likewise.
26631 * tree-ssa-threadupdate.c (redirection_data): Likewise.
26632 * tree-vectorizer.h (peel_info_hasher): Likewise.
26633 * tree-vectorizer.c (simduid_to_vf, simd_array_to_simduid): Likewise.
26634 * config/mips/mips.c (mips_lo_sum_offset_hasher): Likewise.
26636 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
26638 * hash-table.h: Update comments.
26639 * hash-traits.h (pointer_hash): Don't inherit from typed_noop_remove.
26640 (nofree_ptr_hash): New class.
26641 * asan.c (asan_mem_ref_hasher): Inherit from nofree_ptr_hash rather
26642 than typed_noop_remove. Remove redudant typedefs.
26643 * attribs.c (attribute_hasher): Likewise.
26644 * cfg.c (bb_copy_hasher): Likewise.
26645 * cselib.c (cselib_hasher): Likewise.
26646 * dse.c (invariant_group_base_hasher): Likewise.
26647 * dwarf2cfi.c (trace_info_hasher): Likewise.
26648 * dwarf2out.c (macinfo_entry_hasher): Likewise.
26649 (comdat_type_hasher, loc_list_hasher): Likewise.
26650 * gcse.c (pre_ldst_expr_hasher): Likewise.
26651 * genmatch.c (id_base): Likewise.
26652 * genrecog.c (test_pattern_hasher): Likewise.
26653 * gimple-ssa-strength-reduction.c (cand_chain_hasher): Likewise.
26654 * haifa-sched.c (delay_i1_hasher): Likewise.
26655 * hard-reg-set.h (simplifiable_subregs_hasher): Likewise.
26656 * ipa-icf.h (congruence_class_group_hash): Likewise.
26657 * ipa-profile.c (histogram_hash): Likewise.
26658 * ira-color.c (allocno_hard_regs_hasher): Likewise.
26659 * lto-streamer.h (string_slot_hasher): Likewise.
26660 * lto-streamer.c (tree_entry_hasher): Likewise.
26661 * plugin.c (event_hasher): Likewise.
26662 * postreload-gcse.c (expr_hasher): Likewise.
26663 * store-motion.c (st_expr_hasher): Likewise.
26664 * tree-sra.c (uid_decl_hasher): Likewise.
26665 * tree-ssa-coalesce.c (coalesce_pair_hasher): Likewise.
26666 (ssa_name_var_hash): Likewise.
26667 * tree-ssa-live.c (tree_int_map_hasher): Likewise.
26668 * tree-ssa-loop-im.c (mem_ref_hasher): Likewise.
26669 * tree-ssa-pre.c (pre_expr_d): Likewise.
26670 * tree-ssa-sccvn.c (vn_nary_op_hasher): Likewise.
26671 * vtable-verify.h (registration_hasher): Likewise.
26672 * vtable-verify.c (vtbl_map_hasher): Likewise.
26673 * config/arm/arm.c (libcall_hasher): Likewise.
26674 * config/i386/winnt.c (wrapped_symbol_hasher): Likewise.
26675 * config/ia64/ia64.c (bundle_state_hasher): Likewise.
26676 * config/sol2.c (comdat_entry_hasher): Likewise.
26677 * fold-const.c (fold): Use nofree_ptr_hash instead of pointer_hash.
26678 (print_fold_checksum, fold_checksum_tree): Likewise.
26679 (debug_fold_checksum, fold_build1_stat_loc): Likewise.
26680 (fold_build2_stat_loc, fold_build3_stat_loc): Likewise.
26681 (fold_build_call_array_loc): Likewise.
26682 * tree-ssa-ccp.c (gimple_htab): Likewise.
26683 * tree-browser.c (tree_upper_hasher): Inherit from nofree_ptr_hash
26684 rather than pointer_type.
26686 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
26688 * hash-traits.h (pointer_hash::mark_deleted, pointer_hash::mark_empty)
26689 (pointer_hash::is_deleted, pointer_hash::is_empty): New functions.
26691 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
26693 * hash-traits.h (ggc_hasher::remove): Take a reference parameter.
26694 (ggc_hasher::ggc_mx): Likewise.
26695 (ggc_cache_hasher): Inherit from ggc_hasher. Remove definitions
26696 that duplicate ggc_hasher ones.
26698 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
26700 * hash-table.h (hash_table): Add gt_cleare_cache as a friend.
26701 (gt_cleare_cache): Check here for deleted and empty entries.
26702 Replace handle_cache_entry with a call to keep_cache_entry.
26703 * hash-traits.h (ggc_cache_hasher::handle_cache_entry): Delete.
26704 (ggc_cache_hasher::keep_cache_entry): New function.
26705 * trans-mem.c (tm_wrapper_hasher::handle_cache_entry): Delete.
26706 (tm_wrapper_hasher::keep_cache_entry): New function.
26707 * tree.h (tree_decl_map_cache_hasher::handle_cache_entry): Delete.
26708 (tree_vec_map_cache_hasher::keep_cache_entry): New function.
26709 * tree.c (type_cache_hasher::handle_cache_entry): Delete.
26710 (type_cache_hasher::keep_cache_entry): New function.
26711 (tree_vec_map_cache_hasher::handle_cache_entry): Delete.
26712 (tree_vec_map_cache_hasher::keep_cache_entry): New function.
26713 * ubsan.c (tree_type_map_cache_hasher::handle_cache_entry): Delete.
26714 (tree_type_map_cache_hasher::keep_cache_entry): New function.
26715 * varasm.c (tm_clone_hasher::handle_cache_entry): Delete.
26716 (tm_clone_hasher::keep_cache_entry): New function.
26717 * config/i386/i386.c (dllimport_hasher::handle_cache_entry): Delete.
26718 (dllimport_hasher::keep_cache_entry): New function.
26720 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
26722 * hash-table.h: Include hash-traits.h.
26723 (typed_free_remove, typed_noop_remove, pointer_hash, ggc_hasher)
26724 (ggc_cache_hasher): Move to...
26725 * hash-traits.h: ...this new file.
26727 2015-06-25 Andrew MacLeod <amacleod@redhat.com>
26729 * tree-core.h (struct tree_optimization_option): Make opts a pointer to
26730 struct cl_optimization.
26731 * tree.h (TREE_OPTIMIZATION): Return the pointer, not the address of it.
26732 * tree.c (make_node_stat): Allocate cl_optimization struct.
26733 (copy_node_stat): Allocate and copy cl_optimization struct.
26735 2015-06-25 Andrew MacLeod <amacleod@redhat.com>
26737 * function.h (struct incoming_args): Move struct.
26738 (pass_by_reference, reference_callee_copied): Remove prototypes.
26739 * emit-rtl.h (struct incoming_args): Relocate struct here.
26740 * calls.h (pass_by_reference, reference_callee_copied): Relocate
26742 * function.c (pass_by_reference, reference_callee_copied): Move.
26743 * calls.c (pass_by_reference, reference_callee_copied): Relocate here.
26744 * cfgloop.h: Don't include tm.h or hard-reg-set.h.
26745 * ipa-chkp.c: Include calls.h.
26747 2015-06-25 Andrew Macleod <amacleod@redhat.com>
26749 * alias.h (alias_set_type): Move typedef.
26750 * coretypes.h (alias_set_type): Relocate typedef here.
26751 * rtl.h: Don't include alias.h.
26753 2015-06-25 Andrew MacLeod <amacleod@redhat.com>
26755 * cgraph.h (cgraph_rtl_info): Move to rtl.h
26756 (cgraph_node): Maintain pointer to struct cgraph_rtl_info instead of
26758 * rtl.h (struct cgraph_rtl_info): Define when HARD_REG_SET available.
26759 * cgraph.c (cgraph_node::rtl_info): Allocate cgraph_rtl_info if one
26761 * calls.c: Include hard-reg-set.h before rtl.h.
26764 2015-06-25 Zhouyi Zhou <yizhouzhou@ict.ac.cn>
26765 Vladimir Makarov <vmakarov@redhat.com>
26767 * ira-color.c (assign_hard_reg): Remove unecessary bitmap check.
26770 2015-06-25 Richard Biener <rguenther@suse.de>
26772 * fold-const.c (fold_binary_loc): Move simplification of
26773 (X <<>> C1) & C2 ...
26774 * match.pd: ... here.
26776 2015-06-25 Eric Botcazou <ebotcazou@adacore.com>
26778 * lto-streamer-out.c (DFS::hash_scc): Fix typos & formatting glitches.
26780 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
26782 * match.pd: Add patterns for vec_conds between 1 and 0.
26784 2015-06-25 Richard Biener <rguenther@suse.de>
26786 * tree-vect-stmts.c (vectorizable_conversion): Do not set
26787 STMT_VINFO_VEC_STMT for SLP.
26788 (vectorizable_store): Likewise.
26789 (vectorizable_load): Likewise.
26790 (vect_transform_stmt): Catch SLP vectorization clobbering
26791 STMT_VINFO_VEC_STMT.
26793 2015-06-25 Richard Biener <rguenther@suse.de>
26795 * tree-vect-slp.c (vect_detect_hybrid_slp_stmts): Improve debug
26797 (vect_create_mask_and_perm): Do not set STMT_VINFO_VEC_STMT and
26798 cleanup resulting dead code and parameters.
26799 (vect_transform_slp_perm_load): Adjust.
26801 2015-06-25 Nick Clifton <nickc@redhat.com>
26803 * config/bfin/bfin.c (bfin_expand_prologue): Set
26804 current_function_static_stack_size if flag_stack_usage_info is set.
26805 * config/ft32/ft32.c (ft32_expand_prologue): Likewise.
26806 * config/h8300/h8300.c (h8300_expand_prologue): Likewise.
26807 * config/iq2000/iq2000.c (iq2000_expand_prologue): Likewise.
26808 * config/m32c/m32c.c (m32c_emit_prologue): Likewise.
26810 2015-06-25 Tom de Vries <tom@codesourcery.com>
26812 * tree-ssa-loop-manip.c (canonicalize_loop_ivs): Don't claim in header
26813 comment that the generated IV is unsigned.
26815 2015-06-25 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
26818 * config/arm/arm.c (arm_dbx_register_number): Return
26819 DWARF_FRAME_REGISTERS by default.
26821 2015-06-25 Tom de Vries <tom@codesourcery.com>
26823 * dominance.c (calculate_dominance_info): Fix verify_dominators call
26824 argument. Call verify_dominator when reusing dominator info.
26826 2015-06-24 Kaz Kojima <kkojima@gcc.gnu.org>
26829 * config/sh/sh.md (GOTaddr2picreg): Add a new operand for
26830 an additional element of the unspec vector. Modify indices
26832 (builtin_setjmp_receiver): Pass const0_rtx to gen_GOTaddr2picreg.
26833 * config/sh/sh.c (prepare_move_operands): Pass incremented
26834 const_int to gen_GOTaddr2picreg.
26835 (sh_expand_prologue): Pass const0_rtx to gen_GOTaddr2picreg.
26837 2015-06-24 Alan Lawrence <alan.lawrence@arm.com>
26839 * config/aarch64/aarch64.md (<optab><fcvt_target><GPF:mode>2):
26840 Condition on TARGET_FLOAT.
26842 2015-06-24 Alan Lawrence <alan.lawrence@arm.com>
26844 * doc/invoke.texi: Clarify AArch64 feature modifiers (no)fp, (no)simd
26847 2015-06-24 Alan Lawrence <alan.lawrence@arm.com>
26849 * config/aarch64/aarch64-protos.h (aarch64_err_no_fpadvsimd): New.
26851 * config/aarch64/aarch64.md (mov<mode>/GPF, movtf): Use
26852 aarch64_err_no_fpadvsimd.
26854 * config/aarch64/aarch64.c (aarch64_err_no_fpadvsimd): New.
26855 (aarch64_layout_arg, aarch64_init_cumulative_args): Use
26856 aarch64_err_no_fpadvsimd if !TARGET_FLOAT and we need FP regs.
26857 (aarch64_expand_builtin_va_start, aarch64_setup_incoming_varargs):
26858 Turn error into assert, test TARGET_FLOAT.
26859 (aarch64_gimplify_va_arg_expr): Use aarch64_err_no_fpadvsimd, test
26862 2015-06-24 Aldy Hernandez <aldyh@redhat.com>
26865 * dwarf2out.c (gen_formal_parameter_die): Remove assert.
26867 2015-06-24 Ilya Enkovich <enkovich.gnu@gmail.com>
26869 * tree-vect-slp.c (vect_build_slp_tree_1): Init vectype.
26871 2015-06-24 Renlin Li <renlin.li@arm.com>
26873 * config/aarch64/aarch64.h(TARGET_CPU_CPP_BUILTINS): Add
26874 __ARM_ALIGN_MAX_PWR, __ARM_ALIGN_MAX_STACK_PWR.
26876 2015-06-24 Richard Biener <rguenther@suse.de>
26878 * genmatch.c (enum tree_code): Add VIEW_CONVERT[012].
26880 (lower_opt_convert): Support lowering of conditional view_convert.
26881 (parser::parse_operation): Likewise.
26882 (parser::parse_for): Likewise.
26884 2015-06-24 Renlin Li <renlin.li@arm.com>
26886 * varasm.c (emit_local): Use unsigned int for align variable.
26888 2015-06-24 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
26891 * config/arm/arm.c (vfp3_const_double_for_fract_bits): Disable
26892 for negative numbers.
26894 2015-06-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
26896 PR rtl-optimization/66306
26897 * reload.c (find_reloads): Swap the match_dup info for
26898 commutative operands.
26900 2015-06-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
26902 * config/s390/vx-builtins.md
26903 ("vec_scatter_element<mode>_<non_vec_int>")
26904 ("vec_scatter_element<V_HW_64:mode>_SI"): Replace gf mode
26905 attribute with bhfgq.
26907 2015-06-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
26909 * config/s390/s390-builtins.def: Fix vpopct instruction comments.
26911 2015-06-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
26913 * config/s390/s390-builtin-types.def: Add flag to indicate the
26914 options under which the function type is needed.
26915 * config/s390/s390-builtins.def: Add flag to indicate the options
26916 under which the builtin is enabled.
26917 * config/s390/s390-builtins.h: Add flags parameter to macro
26919 (bflags_for_builtin): New function.
26920 (flags_for_builtin): Renamed to ...
26921 (opflags_for_builtin): ... this.
26922 * config/s390/s390-c.c (s390_resolve_overloaded_builtin): Rename
26923 flags_for_builtin to bflags_for_builtin and
26924 flags_overloaded_builtin_var to opflags_overloaded_builtin_var.
26925 * config/s390/s390.c: Add initialization of bflags_builtin and
26926 opflags_builtin arrays.
26927 Remove code for flags_builtin.
26928 (s390_init_builtins): Only create builtin function types if one of
26929 their flags is active.
26930 Only create builtins if all of their flags are active.
26931 (s390_expand_builtin): Rename flags_for_builtin to
26932 opflags_for_builtin.
26934 2015-06-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
26936 * config/s390/vecintrin.h: Remove internal builtins.
26938 2015-06-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
26940 * config/s390/s390.c (s390_secondary_reload): Fix check for
26941 GENERAL_REGS register class.
26943 2015-06-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
26945 * config/s390/s390.c (s390_support_vector_misalignment): Call
26946 default implementation for !TARGET_VX.
26948 2015-06-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
26950 * config/s390/s390.c (s390_legitimate_constant_p): Add
26953 2015-06-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
26955 * config/s390/s390.c (s390_vector_abi): New variable definition.
26956 (s390_check_type_for_vector_abi): New function.
26957 (TARGET_ASM_FILE_END): New macro definition.
26958 (s390_asm_file_end): New function.
26959 (s390_function_arg): Call s390_check_type_for_vector_abi.
26960 (s390_gimplify_va_arg): Likewise.
26961 * configure: Regenerate.
26962 * configure.ac: Check for .gnu_attribute Binutils feature.
26964 2015-06-23 Chen Gang <gang.chen.5i5j@gmail.com>
26967 * config/bfin/bfin.c (hwloop_optimize): Initialize
26968 JUMP_LABEL for newly created jump.
26970 2015-06-23 Tristan Gingold <gingold@adacore.com>
26972 * collect-utils.c (collect_wait): Unlink the response file here
26974 (do_wait): ...here.
26975 (utils_cleanup): ...and here.
26977 2015-06-23 Richard Sandiford <richard.sandiford@arm.com>
26979 * df-scan.c: Don't include target-def.h.
26980 * targhooks.c: Likewise.
26981 * config/arm/arm-c.c: Likewise.
26982 * config/i386/i386-c.c: Likewise.
26983 * config/nds32/nds32-cost.c: Likewise.
26984 * config/nds32/nds32-fp-as-gp.c: Likewise.
26985 * config/nds32/nds32-intrinsic.c: Likewise.
26986 * config/nds32/nds32-isr.c: Likewise.
26987 * config/nds32/nds32-md-auxiliary.c: Likewise.
26988 * config/nds32/nds32-memory-manipulation.c: Likewise.
26989 * config/nds32/nds32-pipelines-auxiliary.c: Likewise.
26990 * config/nds32/nds32-predicates.c: Likewise.
26992 2015-06-23 Richard Biener <rguenther@suse.de>
26994 PR tree-optimization/66636
26995 * tree-vect-stmts.c (vectorizable_store): Properly compute the
26996 def type for further defs for strided stores.
26998 2015-06-23 Nathan Sidwell <nathan@codesourcery.com>
27000 * config/nvptx/nvptx.md (sel_true<mode>, sel_false<mode>): New
27001 conditional selects.
27002 (setcc_int<mode>, setcc_float<mode>): Reformat.
27004 2015-06-23 Marek Polacek <polacek@redhat.com>
27006 * match.pd ((x + y) - (x | y) -> x & y,
27007 (x + y) - (x & y) -> x | y): New patterns.
27009 2015-06-23 Ludovic Courtès <ludo@gnu.org>
27012 * config/arm/linux-elf.h (LINUX_TARGET_LINK_SPEC): Move
27013 '-dynamic-linker' within %{!shared: ...}.
27015 2015-06-23 Uros Bizjak <ubizjak@gmail.com>
27018 * config/i386/predicates.md (addsub_vm_operator): New predicate.
27019 (addsub_vs_operator): Ditto.
27020 (addsub_vs_parallel): Ditto.
27021 * config/i386/sse.md (ssedoublemode): Add V4SF and V2DF modes.
27022 (avx_addsubv4df3, avx_addsubv8sf3, sse3_addsubv2df3, sse3_addsubv4sf3):
27023 Put minus RTX before plus and adjust vec_merge selector.
27024 (*avx_addsubv4df3_1, *avx_addsubv4df3_1s, *sse3_addsubv2df3_1)
27025 (*sse_addsubv2df3_1s, *avx_addsubv8sf3_1, *avx_addsubv8sf3_1s)
27026 (*sse3_addsubv4sf3_1, *sse_addsubv4sf3_1s): Remove insn patterns.
27027 (addsub vec_merge splitters): New combiner splitters.
27028 (addsub vec_select/vec_concat splitters): Ditto.
27030 2015-06-23 Bin Cheng <bin.cheng@arm.com>
27032 PR tree-optimization/66449
27033 * tree-ssa-loop-niter.c (loop_exits_before_overflow): Use
27034 POINTER_PLUS_EXPR for pointers.
27036 2015-06-23 Alan Modra <amodra@gmail.com>
27038 * rtlanal.c (commutative_operand_precedence): Correct comments.
27039 * simplify-rtx.c (simplify_plus_minus_op_data_cmp): Delete forward
27040 declaration. Return an int. Distinguish REG,REG return from
27042 (struct simplify_plus_minus_op_data): Make local to function.
27043 (simplify_plus_minus): Don't set canonicalized if merely sorting
27044 registers. Avoid packing ops if nothing changes. White space fixes.
27046 2015-06-22 Pierre-Marie de Rodat <derodat@adacore.com>
27048 * gcc.c (default_compilers): Pass "-o %g.s" to cc1 for headers even if
27049 -fdump-ada-spec is passed but not if -fsyntax-only is.
27051 2015-06-22 Vladimir Makarov <vmakarov@redhat.com>
27054 * lra-lives.c (process_bb_lives): Check insn copying the same
27055 reload pseudo and don't create a copy for it.
27057 2015-06-22 Tom de Vries <tom@codesourcery.com>
27059 * tree-parloops.c (transform_to_exit_first_loop_alt): Add update_stmt
27062 2015-06-22 Tom de Vries <tom@codesourcery.com>
27064 * builtins.def (DEF_GOMP_BUILTIN): Test
27065 'flag_tree_parallelize_loops > 1' instead of
27066 'flag_tree_parallelize_loops'. Test flag_cilkplus.
27068 2015-06-22 Tom de Vries <tom@codesourcery.com>
27070 * dominance.c (calculate_dominance_info): Verify dominators if
27073 2015-06-22 Marek Polacek <polacek@redhat.com>
27075 * match.pd ((x ^ y) ^ (x | y) -> x & y,
27076 (x & y) + (x ^ y) -> x | y, (x & y) | (x ^ y) -> x | y,
27077 (x & y) ^ (x ^ y) -> x | y, (x & y) + (x | y) -> x + y,
27078 (x | y) - (x ^ y) -> x & y, (x | y) - (x & y) -> x ^ y): New patterns.
27080 2015-06-22 Uros Bizjak <ubizjak@gmail.com>
27083 * config/i386/i386.c (ix86_rtx_costs) <case COMPARE>: Ignore the
27084 cost of embedded comparison.
27086 2015-06-22 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
27089 * config/rs6000/predicates.md (altivec_register_operand): Permit
27090 virtual stack registers.
27091 (vsx_register_operand): Likewise.
27092 (vfloat_operand): Likewise.
27093 (vint_operand): Likewise.
27094 (vlogical_operand): Likewise.
27096 2015-06-22 Richard Biener <rguenther@suse.de>
27098 * tree-vectorizer.h (_loop_vec_info): Add scalar_cost_vec
27099 and single_scalar_iteration_cost members.
27100 (LOOP_VINFO_SCALAR_ITERATION_COST): New.
27101 (LOOP_VINFO_SINGLE_SCALAR_ITERATION_COST): Likewise.
27102 (vect_get_single_scalar_iteration_cost): Remove.
27103 * tree-vect-data-refs.c (vect_peeling_hash_get_lowest_cost):
27104 Use LOOP_VINFO_SCALAR_ITERATION_COST.
27105 * tree-vect-loop.c (destroy_loop_vec_info): Free
27107 (vect_get_single_scalar_iteration_cost): Compute result into
27108 LOOP_VINFO_SINGLE_SCALAR_ITERATION_COST and
27109 LOOP_VINFO_SCALAR_ITERATION_COST. Make static.
27110 (vect_analyze_loop_2): Call vect_get_single_scalar_iteration_cost.
27111 (vect_estimate_min_profitable_iters): Use them.
27113 2015-06-22 Christian Bruel <christian.bruel@st.com>
27116 * config/arm/arm.c (add_attribute, arm_insert_attributes): New functions
27117 (TARGET_INSERT_ATTRIBUTES): Define.
27118 (thumb_flipper): New var.
27119 * config/arm/arm.opt (-mflip-thumb): New switch.
27121 2015-06-22 Jan Hubicka <hubicka@ucw.cz>
27122 Martin Liska <mliska@suse.cz>
27125 * ipa-icf.c (sem_item::target_supports_symbol_aliases): Remove
27126 construction of arg_types.
27127 (sem_function::sem_function): Likewise.
27128 (sem_function::~sem_function): Remove destruction of arg_types.
27129 (sem_function::compatible_parm_types_p): New function.
27130 (sem_function::equals_wpa): Reorg matching of return values
27131 and parameter types.
27132 (sem_function::equals_private): Reorg mathcing of argument types.
27133 (sem_function::parse_tree_args): Remove.
27134 * ipa-icf.h (init_wpa): Do not call it.
27135 (parse_tree_args): Remove.
27136 (compatible_parm_types_p): Declare.
27137 (result_type): Remove.
27138 (arg_types): Remove.
27140 2015-06-22 Jan Hubicka <hubicka@ucw.cz>
27143 * ipa-polymorphic-call.c
27144 (ipa_polymorphic_call_context::get_dynamic_type): Fix thinko when
27145 initializing alias oracle; fix formating; set base_alias_set if it
27148 2015-06-22 Mikhail Maltsev <maltsevm@gmail.com>
27150 * auto-inc-dec.c (reverse_mem, reverse_inc): Remove.
27151 (parse_add_or_inc): Use std::swap instead of reverse_{mem,inc}.
27152 (find_inc): Likewise.
27153 * combine.c (combine_simplify_rtx): Use std::swap instead of manually
27155 * df-core.c (df_worklist_dataflow_doublequeue): Likewise.
27156 * df-scan.c (df_swap_refs): Remove.
27157 (df_sort_and_compress_refs): Use std::swap instead of df_swap_refs.
27158 * dominance.c (link_roots): Use std::swap instead of manually swapping.
27159 * expr.c (expand_expr_real_2, do_store_flag): Likewise.
27160 * fold-const.c (fold_relational_const): Likewise.
27161 * genattrtab.c (simplify_test_exp): Likewise.
27162 * gimple-match-head.c (gimple_resimplify2, gimple_resimplify3,
27163 gimple_simplify): Likewise.
27164 * ifcvt.c (noce_try_abs, find_if_header): Likewise.
27165 * internal-fn.c (expand_addsub_overflow, expand_mul_overflow): Likewise.
27166 * ipa-devirt.c (add_type_duplicate): Likewise.
27167 * loop-iv.c (get_biv_step_1, iv_number_of_iterations): Likewise.
27168 * lra-lives.c (lra_setup_reload_pseudo_preferenced_hard_reg): Likewise.
27169 * lra.c (lra_create_copy): Likewise.
27170 * lto-streamer-out.c (DFS::DFS): Likewise.
27171 * modulo-sched.c (get_sched_window): Likewise.
27172 * omega.c (omega_pretty_print_problem): Likewise.
27173 * optabs.c (prepare_float_lib_cmp, expand_mult_highpart): Likewise.
27174 * reload1.c (reloads_unique_chain_p): Likewise.
27175 * sel-sched-ir.c (exchange_lv_sets, exchange_av_sets): Remove.
27176 (exchange_data_sets): Move logic from exchange_{av,lv}_sets here and
27178 * simplify-rtx.c (simplify_unary_operation_1): Use std::swap instead of
27180 * tree-if-conv.c (is_cond_scalar_reduction, predicate_scalar_phi,
27181 predicate_mem_writes): Likewise.
27182 * tree-loop-distribution.c (pg_add_dependence_edges): Likewise.
27183 * tree-predcom.c (combine_chains): Likewise.
27184 * tree-ssa-alias.c (nonoverlapping_component_refs_p,
27185 refs_may_alias_p_1): Likewise.
27186 * tree-ssa-ifcombine.c (recognize_if_then_else): Likewise.
27187 * tree-ssa-loop-ivopts.c (extract_cond_operands): Likewise.
27188 * tree-ssa-loop-niter.c (refine_bounds_using_guard,
27189 number_of_iterations_cond): Likewise.
27190 * tree-ssa-phiopt.c (tree_ssa_phiopt_worker): Likewise.
27191 * tree-ssa-sccvn.c (vn_nary_op_compute_hash): Likewise.
27192 * tree-vect-slp.c (vect_build_slp_tree): Likewise.
27193 * tree-vect-stmts.c (supportable_widening_operation): Likewise.
27194 * tree-vrp.c (extract_range_from_binary_expr_1,
27195 extract_range_from_unary_expr_1): Likewise.
27197 2015-06-20 Marek Polacek <polacek@redhat.com>
27199 * common.opt (fsanitize-undefined-trap-on-error): Add Driver.
27201 2015-06-19 Kaz Kojima <kkojima@gcc.gnu.org>
27204 * config/sh/sh.c (prepare_move_operands): Replace subreg
27205 index term with R0 for base and index addressing.
27207 2015-06-19 Jim Wilson <jim.wilson@linaro.org>
27209 * config/aarch64/aarch64.md (mov<mode>:GPF): Don't call force_reg if
27211 (movsf_aarch64): Change condition from register_operand to
27212 aarch64_reg_or_fp_zero for op1. Change type for alternative 6 to
27213 load1. Change type for alternative 7 to store1.
27214 (movdf_aarch64): Likewise.
27216 2015-06-19 James Greenhalgh <james.greenhalgh@arm.com>
27218 * config/vax/vax.md: Adjust sign/zero extend patterns to
27219 handle SUBREGs in operands[1].
27221 2015-06-19 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
27223 * config/i386/i386.c (ix86_function_versions): Use std::swap instead
27224 of manually swapping.
27225 (expand_vec_perm_interleave2): Likewise.
27227 2015-06-19 Ilya Enkovich <enkovich.gnu@gmail.com>
27229 * tree-chkp.c (chkp_compute_bounds_for_assignment): Don't
27230 reuse bounds created for abnormal ssa names.
27232 2015-06-19 Jakub Jelinek <jakub@redhat.com>
27234 * config/nvptx/nvptx.md (allocate_stack): Rename to...
27235 (allocate_stack_<mode>): ... this, and add :P on both
27236 match_operand and unspec.
27237 (allocate_stack): New expander.
27239 2015-06-19 Christian Bruel <christian.bruel@st.com>
27243 * config/arm/arm.c (arm_set_current_function): Handle
27244 explicit default options.
27246 2015-06-18 Uros Bizjak <ubizjak@gmail.com>
27248 * config/i386/i386.md (*movsicc_noc_zext): New insn.
27249 (zero-extended cmove with mem peephole2): New pattern.
27250 (cmove with mem peephole2): Merge patterns.
27252 2015-06-18 Segher Boessenkool <segher@kernel.crashing.org>
27254 * config/rs6000/rs6000.h (WORD_REGISTER_OPERATIONS): Delete.
27256 2015-06-18 Steve Ellcey <sellcey@imgtec.com>
27258 * config/mips/mips.c (mips_rtx_costs): Remove HONOR_NAN check.
27259 * config/mips/mips.md (*madd4<mode>): Ditto.
27260 (*nmadd3<mode>) Ditto.
27261 (*nmadd4<mode>_fastmath): Ditto.
27262 (*nmadd3<mode>_fastmath): Ditto.
27263 (*nmsub4<mode>): Ditto.
27264 (*nmsub3<mode>): Ditto.
27265 (*nmsub4<mode>_fastmath): Ditto.
27266 (*nmsub3<mode>_fastmath): Ditto.
27268 2015-06-18 Michael Matz <matz@suse.de>
27270 PR middle-end/66253
27271 * tree-vect-stmts.c (vectorizable_store): Implement non-SLP
27272 grouped strided stores.
27273 (vectorizable_load): Don't use the DR from first_stmt in
27274 the non-SLP grouped strided case.
27276 2015-06-18 Ilya Enkovich <enkovich.gnu@gmail.com>
27279 * function.c (assign_bounds): Add arguments assign_regs,
27280 assign_special, assign_bt.
27281 (assign_parms): For vararg functions handle bounds in BT
27282 and special slots after incoming vararg bounds.
27284 2015-06-18 Ilya Enkovich <enkovich.gnu@gmail.com>
27286 PR middle-end/66568
27287 * cfgexpand.c (expand_return): Handle missing bounds.
27288 (expand_gimple_stmt_1): Likewise.
27289 * tree-chkp.c (chkp_expand_zero_bounds): New.
27290 * tree-chkp.h (chkp_expand_zero_bounds): New.
27292 2015-06-18 Ilya Enkovich <enkovich.gnu@gmail.com>
27294 PR middle-end/66567
27295 * ipa-chkp.c (chkp_maybe_create_clone): Require
27296 functions to be instrumentable.
27297 * tree-chkp.c (chkp_replace_function_pointer): Use
27298 chkp_instrumentable_p instead of attribute check.
27300 2015-06-18 Richard Biener <rguenther@suse.de>
27302 PR tree-optimization/66510
27303 * tree-vect-stmts.c (vectorizable_load): Properly compute the
27304 number of vector loads for SLP permuted loads.
27305 * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Also
27306 check the stride for loop vectorization.
27307 (vect_enhance_data_refs_alignment): Deal with SLP adjusted
27308 vectorization factor.
27309 (vect_analyze_group_access): If the group size is not a power
27310 of two require a epilogue loop.
27311 * tree-vect-loop.c (vect_analyze_loop_2): Move alignment
27312 compute and optimizing and alias test pruning after final
27313 vectorization factor computation.
27314 * tree-vect-slp.c (vect_build_slp_tree_1): Remove check on
27316 (vect_transform_slp_perm_load): Properly compute the original
27317 number of vector load stmts.
27319 2015-06-18 Uros Bizjak <ubizjak@gmail.com>
27321 * doc/invoke.texi (-fsanitize-sections): Split @var to avoid
27322 "unlikely character , in @var" warning.
27324 2015-06-17 Uros Bizjak <ubizjak@gmail.com>
27326 * config/i386/i386.c (ix86_function_arg): Nest TARGET_64BIT code.
27327 (ix86_function_arg_advance): Ditto.
27328 (ix86_pass_by_reference): Ditto. Rewrite MS_ABI part.
27330 2015-06-17 Andrew MacLeod <amacleod@redhat.com>
27332 * function.h (struct rtl_data): Remove struct and accessor macros.
27333 * emit-rtl.h (struct rtl_data): Relocate to here.
27334 * Makefile.in (GTFILES): Add emit-rtl.h.
27335 * df-core.c: Include emit-rtl.h.
27336 * genattrtab.c: Likewise.
27337 * genconditions.c: Likewise.
27338 * genpreds.c: Likewise.
27339 * genrecog.c: Likewise.
27340 * regcprop.c: Likewise.
27341 * resource.c: Likewise.
27342 * sched-rgn.c: Likewise.
27343 * config/aarch64/cortex-a57-fma-steering.c: Likewise.
27344 * config/i386/winnt.c: Likewise.
27346 2015-06-17 Jakub Jelinek <jakub@redhat.com>
27348 PR middle-end/66429
27349 * omp-low.c (expand_omp_taskreg, expand_omp_target): Use child_cfun
27350 instead of DECL_STRUCT_FUNCTION (child_fn). Or in has_simduid_loops
27351 and has_force_vectorize_loops flags from cfun into
27353 (expand_omp_simd): For broken loop, set cfun->has_simduid_loops
27354 if simduid is non-NULL.
27355 * tree-pass.h (make_pass_simduid_cleanup): New prototype.
27356 * passes.def (pass_simduid_cleanup): Add new pass after loop
27358 * tree-vectorizer.c (adjust_simduid_builtins): Remove one unnecessary
27359 indirection from htab argument's type.
27360 (shrink_simd_arrays): New function.
27361 (vectorize_loops): Use it. Adjust adjust_simduid_builtins caller.
27362 Don't call adjust_simduid_builtins if there are no loops.
27363 (pass_data_simduid_cleanup, pass_simduid_cleanup): New variables.
27364 (pass_simduid_cleanup::execute): New method.
27365 (make_pass_simduid_cleanup): New function.
27367 2017-06-17 Andrew MacLeod <amacleod@redhat.com>
27369 * tree-core.h (tree_target_option): Make opts field a pointer to a
27370 cl_target_option instead of an instance of the struct.
27371 * tree.h (TREE_TARGET_OPTION): Return the pointer, not an address of
27373 * tree.c (make_node_stat ): Allocate a cl_target_option struct for
27374 TARGET_OPTION_NODE.
27375 (copy_node_stat): Allocate and copy struct cl_target_option.
27377 2015-06-17 Andrew MacLeod <amacleod@redhat.com>
27379 * tree.h (merge_dllimport_decl_attributes, handle_dll_attribute):
27380 Remove conditional exposure of prototypes.
27381 (ANON_AGGRNAME_FORMAT, ANON_AGGRNAME_P): Delete.
27382 * tree.c (anon_aggrname_format, anon_aggrname_p): New. Replace macro
27383 definitions in tree.h with functions.
27384 * lto-streamer-out.c (DFS_write_tree_body, hash_tree): Use
27386 * tree-streamer-out.c (write_ts_decl_minimal_tree_pointers): Likewise.
27388 2015-06-17 Segher Boessenkool <segher@kernel.crashing.org>
27390 * config/rs6000/rs6000.md (*cmp<mode>_internal1): Rename to...
27391 (*cmp<mode>_signed): ... this.
27392 (*cmpsi_internal2, *cmpdi_internal2): Merge, rename to...
27393 (*cmp<mode>_unsigned): ... this. Remove %b.
27395 2015-06-17 Andrew MacLeod <amacleod@redhat.com>
27397 * coretypes.h: Include input.h and as-a.h.
27398 * rtl.h: Include input.h and as-a.h for generator files.
27399 * hwint.c: Include coretypes.h, don't include diagnostic-core.h.
27400 * vec.c: Don't include diagnostic-core.h.
27401 * alias.c: Do not include input.h, line-map.h or is-a.h.
27402 * asan.c: Likewise.
27403 * attribs.c: Likewise.
27404 * auto-inc-dec.c: Likewise.
27405 * auto-profile.c: Likewise.
27406 * bb-reorder.c: Likewise.
27407 * bt-load.c: Likewise.
27408 * builtins.c: Likewise.
27409 * caller-save.c: Likewise.
27410 * calls.c: Likewise.
27411 * ccmp.c: Likewise.
27413 * cfganal.c: Likewise.
27414 * cfgbuild.c: Likewise.
27415 * cfgcleanup.c: Likewise.
27416 * cfgexpand.c: Likewise.
27417 * cfghooks.c: Likewise.
27418 * cfgloop.c: Likewise.
27419 * cfgloop.h: Likewise.
27420 * cfgloopanal.c: Likewise.
27421 * cfgloopmanip.c: Likewise.
27422 * cfgrtl.c: Likewise.
27423 * cgraph.c: Likewise.
27424 * cgraphbuild.c: Likewise.
27425 * cgraphclones.c: Likewise.
27426 * cgraphunit.c: Likewise.
27427 * cilk-common.c: Likewise.
27428 * combine-stack-adj.c: Likewise.
27429 * combine.c: Likewise.
27430 * compare-elim.c: Likewise.
27431 * convert.c: Likewise.
27432 * coverage.c: Likewise.
27433 * cppbuiltin.c: Likewise.
27434 * cprop.c: Likewise.
27436 * cselib.c: Likewise.
27437 * data-streamer-in.c: Likewise.
27438 * data-streamer-out.c: Likewise.
27439 * data-streamer.c: Likewise.
27440 * dbxout.c: Likewise.
27443 * debug.c: Likewise.
27444 * df-core.c: Likewise.
27445 * df-problems.c: Likewise.
27446 * df-scan.c: Likewise.
27449 * diagnostic-core.h: Likewise.
27450 * diagnostic.c: Likewise.
27451 * dojump.c: Likewise.
27452 * dominance.c: Likewise.
27453 * domwalk.c: Likewise.
27454 * double-int.c: Likewise.
27456 * dumpfile.c: Likewise.
27457 * dumpfile.h: Likewise.
27458 * dwarf2asm.c: Likewise.
27459 * dwarf2cfi.c: Likewise.
27460 * dwarf2out.c: Likewise.
27461 * emit-rtl.c: Likewise.
27462 * et-forest.c: Likewise.
27463 * except.c: Likewise.
27464 * explow.c: Likewise.
27465 * expmed.c: Likewise.
27466 * expr.c: Likewise.
27467 * final.c: Likewise.
27468 * fixed-value.c: Likewise.
27469 * fold-const.c: Likewise.
27470 * function.c: Likewise.
27471 * fwprop.c: Likewise.
27472 * gcc-plugin.h: Likewise.
27473 * gcse.c: Likewise.
27474 * generic-match-head.c: Likewise.
27475 * ggc-page.c: Likewise.
27476 * gimple-builder.c: Likewise.
27477 * gimple-expr.c: Likewise.
27478 * gimple-fold.c: Likewise.
27479 * gimple-iterator.c: Likewise.
27480 * gimple-low.c: Likewise.
27481 * gimple-match-head.c: Likewise.
27482 * gimple-pretty-print.c: Likewise.
27483 * gimple-ssa-isolate-paths.c: Likewise.
27484 * gimple-ssa-strength-reduction.c: Likewise.
27485 * gimple-streamer-in.c: Likewise.
27486 * gimple-streamer-out.c: Likewise.
27487 * gimple-streamer.h: Likewise.
27488 * gimple-walk.c: Likewise.
27489 * gimple.c: Likewise.
27490 * gimplify-me.c: Likewise.
27491 * gimplify.c: Likewise.
27492 * godump.c: Likewise.
27493 * graph.c: Likewise.
27494 * graphite-blocking.c: Likewise.
27495 * graphite-dependences.c: Likewise.
27496 * graphite-interchange.c: Likewise.
27497 * graphite-isl-ast-to-gimple.c: Likewise.
27498 * graphite-optimize-isl.c: Likewise.
27499 * graphite-poly.c: Likewise.
27500 * graphite-scop-detection.c: Likewise.
27501 * graphite-sese-to-poly.c: Likewise.
27502 * graphite.c: Likewise.
27503 * haifa-sched.c: Likewise.
27504 * hw-doloop.c: Likewise.
27505 * ifcvt.c: Likewise.
27506 * init-regs.c: Likewise.
27507 * input.c: Likewise.
27508 * internal-fn.c: Likewise.
27509 * ipa-chkp.c: Likewise.
27510 * ipa-comdats.c: Likewise.
27511 * ipa-cp.c: Likewise.
27512 * ipa-devirt.c: Likewise.
27513 * ipa-icf-gimple.c: Likewise.
27514 * ipa-icf.c: Likewise.
27515 * ipa-inline-analysis.c: Likewise.
27516 * ipa-inline-transform.c: Likewise.
27517 * ipa-inline.c: Likewise.
27518 * ipa-polymorphic-call.c: Likewise.
27519 * ipa-profile.c: Likewise.
27520 * ipa-prop.c: Likewise.
27521 * ipa-pure-const.c: Likewise.
27522 * ipa-ref.c: Likewise.
27523 * ipa-reference.c: Likewise.
27524 * ipa-split.c: Likewise.
27525 * ipa-utils.c: Likewise.
27526 * ipa-visibility.c: Likewise.
27528 * ira-build.c: Likewise.
27529 * ira-color.c: Likewise.
27530 * ira-conflicts.c: Likewise.
27531 * ira-costs.c: Likewise.
27532 * ira-emit.c: Likewise.
27533 * ira-lives.c: Likewise.
27535 * jump.c: Likewise.
27536 * langhooks.c: Likewise.
27538 * loop-doloop.c: Likewise.
27539 * loop-init.c: Likewise.
27540 * loop-invariant.c: Likewise.
27541 * loop-iv.c: Likewise.
27542 * loop-unroll.c: Likewise.
27543 * lower-subreg.c: Likewise.
27544 * lra-assigns.c: Likewise.
27545 * lra-coalesce.c: Likewise.
27546 * lra-constraints.c: Likewise.
27547 * lra-eliminations.c: Likewise.
27548 * lra-lives.c: Likewise.
27549 * lra-remat.c: Likewise.
27550 * lra-spills.c: Likewise.
27552 * lto-cgraph.c: Likewise.
27553 * lto-compress.c: Likewise.
27554 * lto-opts.c: Likewise.
27555 * lto-section-in.c: Likewise.
27556 * lto-section-out.c: Likewise.
27557 * lto-streamer-in.c: Likewise.
27558 * lto-streamer-out.c: Likewise.
27559 * lto-streamer.c: Likewise.
27561 * mode-switching.c: Likewise.
27562 * modulo-sched.c: Likewise.
27563 * omega.c: Likewise.
27564 * omp-low.c: Likewise.
27565 * optabs.c: Likewise.
27566 * opts-global.c: Likewise.
27567 * opts.h: Likewise.
27568 * passes.c: Likewise.
27569 * plugin.c: Likewise.
27570 * postreload-gcse.c: Likewise.
27571 * postreload.c: Likewise.
27572 * predict.c: Likewise.
27573 * pretty-print.h: Likewise.
27574 * print-rtl.c: Likewise.
27575 * print-tree.c: Likewise.
27576 * profile.c: Likewise.
27577 * real.c: Likewise.
27578 * realmpfr.c: Likewise.
27579 * recog.c: Likewise.
27581 * reg-stack.c: Likewise.
27582 * regcprop.c: Likewise.
27583 * reginfo.c: Likewise.
27584 * regrename.c: Likewise.
27585 * regstat.c: Likewise.
27586 * reload.c: Likewise.
27587 * reload1.c: Likewise.
27588 * reorg.c: Likewise.
27589 * resource.c: Likewise.
27590 * rtl-chkp.c: Likewise.
27591 * rtl-error.c: Likewise.
27592 * rtlanal.c: Likewise.
27593 * rtlhooks.c: Likewise.
27594 * sanopt.c: Likewise.
27595 * sched-deps.c: Likewise.
27596 * sched-ebb.c: Likewise.
27597 * sched-rgn.c: Likewise.
27598 * sched-vis.c: Likewise.
27599 * sdbout.c: Likewise.
27600 * sel-sched-dump.c: Likewise.
27601 * sel-sched-ir.c: Likewise.
27602 * sel-sched.c: Likewise.
27603 * sese.c: Likewise.
27604 * shrink-wrap.c: Likewise.
27605 * simplify-rtx.c: Likewise.
27606 * stack-ptr-mod.c: Likewise.
27607 * statistics.c: Likewise.
27608 * stmt.c: Likewise.
27609 * stor-layout.c: Likewise.
27610 * store-motion.c: Likewise.
27611 * streamer-hooks.c: Likewise.
27612 * stringpool.c: Likewise.
27613 * symtab.c: Likewise.
27614 * target-globals.c: Likewise.
27615 * targhooks.c: Likewise.
27616 * toplev.c: Likewise.
27617 * tracer.c: Likewise.
27618 * trans-mem.c: Likewise.
27619 * tree-affine.c: Likewise.
27620 * tree-browser.c: Likewise.
27621 * tree-call-cdce.c: Likewise.
27622 * tree-cfg.c: Likewise.
27623 * tree-cfgcleanup.c: Likewise.
27624 * tree-chkp-opt.c: Likewise.
27625 * tree-chkp.c: Likewise.
27626 * tree-chrec.c: Likewise.
27627 * tree-complex.c: Likewise.
27628 * tree-data-ref.c: Likewise.
27629 * tree-dfa.c: Likewise.
27630 * tree-diagnostic.c: Likewise.
27631 * tree-dump.c: Likewise.
27632 * tree-eh.c: Likewise.
27633 * tree-emutls.c: Likewise.
27634 * tree-if-conv.c: Likewise.
27635 * tree-inline.c: Likewise.
27636 * tree-into-ssa.c: Likewise.
27637 * tree-iterator.c: Likewise.
27638 * tree-loop-distribution.c: Likewise.
27639 * tree-nested.c: Likewise.
27640 * tree-nrv.c: Likewise.
27641 * tree-object-size.c: Likewise.
27642 * tree-outof-ssa.c: Likewise.
27643 * tree-parloops.c: Likewise.
27644 * tree-phinodes.c: Likewise.
27645 * tree-predcom.c: Likewise.
27646 * tree-pretty-print.c: Likewise.
27647 * tree-profile.c: Likewise.
27648 * tree-scalar-evolution.c: Likewise.
27649 * tree-sra.c: Likewise.
27650 * tree-ssa-address.c: Likewise.
27651 * tree-ssa-alias.c: Likewise.
27652 * tree-ssa-ccp.c: Likewise.
27653 * tree-ssa-coalesce.c: Likewise.
27654 * tree-ssa-copy.c: Likewise.
27655 * tree-ssa-copyrename.c: Likewise.
27656 * tree-ssa-dce.c: Likewise.
27657 * tree-ssa-dom.c: Likewise.
27658 * tree-ssa-dse.c: Likewise.
27659 * tree-ssa-forwprop.c: Likewise.
27660 * tree-ssa-ifcombine.c: Likewise.
27661 * tree-ssa-live.c: Likewise.
27662 * tree-ssa-loop-ch.c: Likewise.
27663 * tree-ssa-loop-im.c: Likewise.
27664 * tree-ssa-loop-ivcanon.c: Likewise.
27665 * tree-ssa-loop-ivopts.c: Likewise.
27666 * tree-ssa-loop-manip.c: Likewise.
27667 * tree-ssa-loop-niter.c: Likewise.
27668 * tree-ssa-loop-prefetch.c: Likewise.
27669 * tree-ssa-loop-unswitch.c: Likewise.
27670 * tree-ssa-loop.c: Likewise.
27671 * tree-ssa-math-opts.c: Likewise.
27672 * tree-ssa-operands.c: Likewise.
27673 * tree-ssa-phiopt.c: Likewise.
27674 * tree-ssa-phiprop.c: Likewise.
27675 * tree-ssa-pre.c: Likewise.
27676 * tree-ssa-propagate.c: Likewise.
27677 * tree-ssa-reassoc.c: Likewise.
27678 * tree-ssa-sccvn.c: Likewise.
27679 * tree-ssa-scopedtables.c: Likewise.
27680 * tree-ssa-sink.c: Likewise.
27681 * tree-ssa-strlen.c: Likewise.
27682 * tree-ssa-structalias.c: Likewise.
27683 * tree-ssa-tail-merge.c: Likewise.
27684 * tree-ssa-ter.c: Likewise.
27685 * tree-ssa-threadedge.c: Likewise.
27686 * tree-ssa-threadupdate.c: Likewise.
27687 * tree-ssa-uncprop.c: Likewise.
27688 * tree-ssa-uninit.c: Likewise.
27689 * tree-ssa.c: Likewise.
27690 * tree-ssanames.c: Likewise.
27691 * tree-stdarg.c: Likewise.
27692 * tree-streamer-in.c: Likewise.
27693 * tree-streamer-out.c: Likewise.
27694 * tree-streamer.c: Likewise.
27695 * tree-switch-conversion.c: Likewise.
27696 * tree-tailcall.c: Likewise.
27697 * tree-vect-data-refs.c: Likewise.
27698 * tree-vect-generic.c: Likewise.
27699 * tree-vect-loop-manip.c: Likewise.
27700 * tree-vect-loop.c: Likewise.
27701 * tree-vect-patterns.c: Likewise.
27702 * tree-vect-slp.c: Likewise.
27703 * tree-vect-stmts.c: Likewise.
27704 * tree-vectorizer.c: Likewise.
27705 * tree-vrp.c: Likewise.
27706 * tree.c: Likewise.
27707 * tsan.c: Likewise.
27708 * ubsan.c: Likewise.
27709 * valtrack.c: Likewise.
27710 * value-prof.c: Likewise.
27711 * var-tracking.c: Likewise.
27712 * varasm.c: Likewise.
27713 * varpool.c: Likewise.
27714 * vmsdbgout.c: Likewise.
27715 * vtable-verify.c: Likewise.
27717 * wide-int.cc: Likewise.
27718 * xcoffout.c: Likewise.
27719 * common/common-target.h: Do not include input.h, line-map.h or is-a.h.
27720 * common/common-targhooks.c: Likewise.
27721 * config/aarch64/aarch64-builtins.c: Likewise.
27722 * config/aarch64/aarch64.c: Likewise.
27723 * config/alpha/alpha.c: Likewise.
27724 * config/arc/arc.c: Likewise.
27725 * config/arm/aarch-common.c: Likewise.
27726 * config/arm/arm-builtins.c: Likewise.
27727 * config/arm/arm-c.c: Likewise.
27728 * config/arm/arm.c: Likewise.
27729 * config/avr/avr-c.c: Likewise.
27730 * config/avr/avr-log.c: Likewise.
27731 * config/avr/avr.c: Likewise.
27732 * config/bfin/bfin.c: Likewise.
27733 * config/c6x/c6x.c: Likewise.
27734 * config/cr16/cr16.c: Likewise.
27735 * config/cris/cris.c: Likewise.
27736 * config/darwin-c.c: Likewise.
27737 * config/darwin.c: Likewise.
27738 * config/default-c.c: Likewise.
27739 * config/epiphany/epiphany.c: Likewise.
27740 * config/epiphany/mode-switch-use.c: Likewise.
27741 * config/epiphany/resolve-sw-modes.c: Likewise.
27742 * config/fr30/fr30.c: Likewise.
27743 * config/frv/frv.c: Likewise.
27744 * config/ft32/ft32.c: Likewise.
27745 * config/glibc-c.c: Likewise.
27746 * config/h8300/h8300.c: Likewise.
27747 * config/i386/i386-c.c: Likewise.
27748 * config/i386/i386.c: Likewise.
27749 * config/i386/msformat-c.c: Likewise.
27750 * config/i386/winnt-cxx.c: Likewise.
27751 * config/i386/winnt-stubs.c: Likewise.
27752 * config/i386/winnt.c: Likewise.
27753 * config/ia64/ia64-c.c: Likewise.
27754 * config/ia64/ia64.c: Likewise.
27755 * config/iq2000/iq2000.c: Likewise.
27756 * config/lm32/lm32.c: Likewise.
27757 * config/m32c/m32c-pragma.c: Likewise.
27758 * config/m32c/m32c.c: Likewise.
27759 * config/m32r/m32r.c: Likewise.
27760 * config/m68k/m68k.c: Likewise.
27761 * config/mcore/mcore.c: Likewise.
27762 * config/mep/mep-pragma.c: Likewise.
27763 * config/mep/mep.c: Likewise.
27764 * config/microblaze/microblaze-c.c: Likewise.
27765 * config/microblaze/microblaze.c: Likewise.
27766 * config/mips/mips.c: Likewise.
27767 * config/mmix/mmix.c: Likewise.
27768 * config/mn10300/mn10300.c: Likewise.
27769 * config/moxie/moxie.c: Likewise.
27770 * config/msp430/msp430-c.c: Likewise.
27771 * config/msp430/msp430.c: Likewise.
27772 * config/nds32/nds32-cost.c: Likewise.
27773 * config/nds32/nds32-fp-as-gp.c: Likewise.
27774 * config/nds32/nds32-intrinsic.c: Likewise.
27775 * config/nds32/nds32-isr.c: Likewise.
27776 * config/nds32/nds32-md-auxiliary.c: Likewise.
27777 * config/nds32/nds32-memory-manipulation.c: Likewise.
27778 * config/nds32/nds32-pipelines-auxiliary.c: Likewise.
27779 * config/nds32/nds32-predicates.c: Likewise.
27780 * config/nds32/nds32.c: Likewise.
27781 * config/nios2/nios2.c: Likewise.
27782 * config/nvptx/nvptx.c: Likewise.
27783 * config/pa/pa.c: Likewise.
27784 * config/pdp11/pdp11.c: Likewise.
27785 * config/rl78/rl78-c.c: Likewise.
27786 * config/rl78/rl78.c: Likewise.
27787 * config/rs6000/rs6000-c.c: Likewise.
27788 * config/rs6000/rs6000.c: Likewise.
27789 * config/rx/rx.c: Likewise.
27790 * config/s390/s390-c.c: Likewise.
27791 * config/s390/s390.c: Likewise.
27792 * config/sh/sh-c.c: Likewise.
27793 * config/sh/sh-mem.cc: Likewise.
27794 * config/sh/sh.c: Likewise.
27795 * config/sh/sh_optimize_sett_clrt.cc: Likewise.
27796 * config/sh/sh_treg_combine.cc: Likewise.
27797 * config/sol2-c.c: Likewise.
27798 * config/sol2-cxx.c: Likewise.
27799 * config/sol2-stubs.c: Likewise.
27800 * config/sol2.c: Likewise.
27801 * config/sparc/sparc-c.c: Likewise.
27802 * config/sparc/sparc.c: Likewise.
27803 * config/spu/spu-c.c: Likewise.
27804 * config/spu/spu.c: Likewise.
27805 * config/stormy16/stormy16.c: Likewise.
27806 * config/tilegx/mul-tables.c: Likewise.
27807 * config/tilegx/tilegx-c.c: Likewise.
27808 * config/tilegx/tilegx.c: Likewise.
27809 * config/tilepro/mul-tables.c: Likewise.
27810 * config/tilepro/tilepro-c.c: Likewise.
27811 * config/tilepro/tilepro.c: Likewise.
27812 * config/v850/v850-c.c: Likewise.
27813 * config/v850/v850.c: Likewise.
27814 * config/vax/vax.c: Likewise.
27815 * config/visium/visium.c: Likewise.
27816 * config/vms/vms-c.c: Likewise.
27817 * config/vms/vms.c: Likewise.
27818 * config/vxworks.c: Likewise.
27819 * config/winnt-c.c: Likewise.
27820 * config/xtensa/xtensa.c: Likewise.
27822 2015-06-17 Robert Suchanek <robert.suchanek@imgtec.com>
27824 * config/mips/mips.c (mips_ira_change_pseudo_allocno_class): New
27826 (TARGET_IRA_CHANGE_PSEUDO_ALLOCNO_CLASS): Define macro.
27828 2015-06-17 Richard Biener <rguenther@suse.de>
27830 PR tree-optimization/66251
27831 * tree-vect-stmts.c (vectorizable_store): Fix gathering of vectorized
27832 stmts for SLP strided stores.
27835 2015-05-22 Richard Biener <rguenther@suse.de>
27837 PR tree-optimization/66251
27838 * tree-vect-stmts.c (vectorizable_conversion): Properly
27839 set STMT_VINFO_VEC_STMT even for the SLP case.
27841 2015-05-26 Michael Matz <matz@suse.de>
27843 PR middle-end/66251
27844 * tree-vect-stmts.c (vect_create_vectorized_demotion_stmts): Always set
27845 STMT_VINFO_VEC_STMT, also with SLP.
27847 2015-06-16 Uros Bizjak <ubizjak@gmail.com>
27850 * config/i386/sse.md (*avx_addsubv4df3_1): New insn pattern.
27851 (*avx_addsubv4df3_1s): Ditto.
27852 (*sse3_addsubv2df3_1): Ditto.
27853 (*sse3_addsubv2df3_1s): Ditto.
27854 (*avx_addsubv8sf3_1): Ditto.
27855 (*avx_addsubv8sf3_1s): Ditto.
27856 (*sse3_addsubv4sf3_1): Ditto.
27857 (*sse3_addsubv4sf3_1s): Ditto.
27859 2015-06-16 Steve Ellcey <sellcey@imgtec.com>
27861 * config/mips/mti-linux.h (MIPS_SYSVERSION_SPEC): New.
27862 (SYSROOT_SUFFIX_SPEC): Update.
27863 (SYSROOT_HEADERS_SUFFIX_SPEC): New.
27864 (STARTFILE_PREFIX_SPEC): Update.
27865 * config/mips/t-mti-linux (MULTILIB_EXCEPTIONS): Remove.
27866 (MULTILIB_REQUIRED): New.
27867 (MULTILIB_OSDIRNAMES): New.
27868 * config/mips/t-img-linux (MULTILIB_EXCEPTIONS): Remove.
27869 (MULTILIB_REQUIRED): New.
27870 (MULTILIB_OSDIRNAMES): New.
27872 2015-06-16 Matthew Wahab <matthew.wahab@arm.com>
27874 * config/aarch64/aarch64-arches.def: Add "armv8.1-a".
27875 * config/aarch64/aarch64-options-extensions.def: Update "fP",
27876 "simd" and "crypto". Add "lse", "pan", "lor" and "rdma".
27877 * config/aarch64/aarch64.h (AARCH64_FL_LSE): New.
27878 (AARCH64_FL_PAN): New.
27879 (AARCH64_FL_LOR): New.
27880 (AARCH64_FL_RDMA): New.
27881 (AARCH64_FL_FOR_ARCH8_1): New.
27882 * doc/invoke.texi (AArch64 Options): Add "armv8.1-a" to
27883 -march. Add "lse", "pan", "lor", "rdma" to feature modifiers.
27885 2015-06-16 Martin Liska <mliska@suse.cz>
27887 * bitmap.c (dump_bitmap_statistics): Fix GNU coding style.
27888 * hash-table.c (void dump_hash_table_loc_statistics): Add missing
27891 2015-06-16 Richard Biener <rguenther@suse.de>
27893 * tree-vect-stmts.c (vectorizable_store): Adjust.
27894 (vectorizable_load): Likewise.
27895 * tree-vect-data-refs.c (vect_create_addr_base_for_vector_ref):
27897 (vect_create_data_ref_ptr): Likewise.
27898 (bump_vector_ptr): Adjust.
27900 2015-06-16 Richard Biener <rguenther@suse.de>
27902 * tree-vect-stmts.c (vectorizable_load): Properly start loads
27903 with the first element if this is grouped loads.
27905 2015-06-16 James Greenhalgh <james.greenhalgh@arm.com>
27907 * config/arm/arm-protos.h (struct tune_params): Rename
27908 log_op_non_sc to log_op_non_short_circuit, and rename enum
27909 values to expand SC to SHORT_CIRCUIT.
27910 * config/arm/arm.c (arm_slowmul_tune): Expand LOG_OP_NON_SC
27911 to LOG_OP_NON_SHORT_CIRCUIT.
27912 (arm_fastmul_tune):Likewise
27913 (arm_strongarm_tune): Likewise.
27914 (arm_xscale_tune): Likewise.
27915 (arm_9e_tune): Likewise.
27916 (arm_marvell_pj4_tune): Likewise.
27917 (arm_v6t2_tune): Likewise.
27918 (arm_cortex_tune): Likewise.
27919 (arm_cortex_a8_tune): Likewise.
27920 (arm_cortex_a7_tune): Likewise.
27921 (arm_cortex_a15_tune): Likewise.
27922 (arm_cortex_a53_tune): Likewise.
27923 (arm_cortex_a57_tune): Likewise.
27924 (arm_xgene1_tune): Likewise.
27925 (arm_cortex_a5_tune): Likewise.
27926 (arm_cortex_a9_tune): Likewise.
27927 (arm_cortex_a12_tune): Likewise.
27928 (arm_v7m_tune): Likewise.
27929 (arm_cortex_m7_tune): Likewise.
27930 (arm_v6m_tune): Likewise.
27931 (arm_fa726te_tune): Likewise.
27933 2015-06-15 David Edelsohn <dje.gcc@gmail.com>
27935 * altivec.md: Delete UNSPEC_VMLADDUHM.
27936 (mulv4si3_p8): New pattern.
27937 (mulv4si3): Use it for POWER8.
27938 (mulv8hi3): Use vmladduhm with zero addend.
27939 (altivec_vmladduhm): Descriptive RTL.
27941 2015-06-15 Jim Wilson <jim.wilson@linaro.org>
27943 * config/aarch64/aarch64.md (mov<mode>_aarch64): Change alternative 2
27944 to use neon_move instead of mov_imm.
27945 (movdi_aarch64): Change alternative 14 to use neon_move not fmov.
27946 (movtf_aarch64): Change alternative 4 to use neon_move_q not fconstd.
27948 * config/aarch64/aarch64.c (aarch64_valid_floating_const): Move
27949 aarch64_float_const_zero_rtx_p check before TFmode check.
27950 * config/aarch64/aarch64.md (movtf): Don't call force_reg if op1 is
27952 (movtf_aarch64): Separate ?rY alternative into two. Adjust assembly
27953 code and attributes to match. Change condition from register_operand
27954 to aarch64_reg_or_fp_zero for op1. Change type for ldp from
27955 neon_load1_2reg to load2. Change type for stp from neon_store1_2reg
27958 2015-06-15 Aldy Hernandez <aldyh@redhat.com>
27961 * dwarf2out.c (gen_subprogram_die): Do not check a parent's tag if
27962 there is no parent.
27964 2015-06-14 Shiva Chen <shiva0217@gmail.com>
27966 * aarch64.c (aarch64_simd_lane_bounds): Change %ld to %wd for
27967 HOST_WIDE_INT parameter.
27969 2015-06-14 Jan Hubicka <hubicka@ucw.cz>
27972 * lto-streamer-out.c (hash_tree): Do not hash TYPE_NO_FORCE_BLK.
27973 * tree-streamer-out.c (pack_ts_type_common_value_fields): Do not stream
27975 * tree-streamer-in.c (unpack_ts_type_common_value_fields): Likewise.
27977 2015-06-14 Richard Sandiford <richard.sandiford@arm.com>
27979 * rtl.h (classify_insn): Declare.
27980 * emit-rtl.c (classify_insn): Move to...
27981 * rtl.c: ...here and add generator support.
27982 * gensupport.h (get_emit_function, needs_barrier_p): Declare.
27983 * gensupport.c (get_emit_function, needs_barrier_p): New functions.
27984 * genemit.c (gen_emit_seq): New function.
27985 (gen_expand, gen_split): Use it.
27987 2015-06-13 Patrick Palka <ppalka@gcc.gnu.org>
27989 * tree.c (make_vector_stat): Fix comment to state that the
27990 function returns a VECTOR_CST.
27992 2015-06-13 Richard Sandiford <richard.sandiford@arm.com>
27994 * gensupport.h (add_implicit_parallel): Declare.
27995 * genrecog.c (add_implicit_parallel): Move to...
27996 * gensupport.c (add_implicit_parallel): ...here.
27997 (process_one_cond_exec): Use it.
27998 * genemit.c (gen_insn): Likewise.
28000 2015-06-13 Iain Sandoe <iain@codesourcery.com>
28003 * passes.c (rest_of_decl_compilation): Do not register globals for
28004 early debug if they are declared in built-ins.
28006 2015-06-12 Aldy Hernandez <aldyh@redhat.com>
28008 * dwarf2out.c (check_die): Protect with ENABLE_CHECKING.
28010 2015-06-12 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
28012 * ifcvt.c (noce_try_store_flag_constants): Use std::swap instead of
28014 (noce_try_cmove_arith): Likewise.
28015 (noce_get_alt_condition): Likewise.
28017 2015-06-12 Venkataramanan Kumar <venkataramanan.kumar@amd.com>
28019 * common/config/i386/i386-common.c
28020 (OPTION_MASK_ISA_MWAITX_SET): New.
28021 (ix86_handle_option): Handle mwaitx.
28022 * config.gcc (i[34567]86-*-*): Add mwaitxintrin.h,
28023 (x86_64-*-*): Likewise.
28024 * config/i386/mwaitxintrin.h: New header.
28025 * config/i386/cpuid.h (bit_MWAITX): Define.
28026 * config/i386/driver-i386.c (host_detect_local_cpu): Detect
28028 * config/i386/i386.opt (mwaitx): New.
28029 * config/i386/i386-builtin-types.def
28030 (VOID_FTYPE_UNSIGNED_ UNSIGNED_UNSIGNED): New function type.
28031 * config/i386/i386-c.c: Define __MWAITX__ if needed.
28032 * config/i386/i386.c (ix86_target_string): Define -mmwaitx option.
28034 (ix86_option_override_internal): Handle new option.
28035 (processor_alias_table): Added PTA_MWAITX.
28036 (ix86_valid_target_attribute_inner_p): Add OPT_mmwaitx.
28037 (ix86_builtins): Add IX86_BUILTIN_MWAITX, IX86_BUILTIN_MONITORX.
28038 (ix86_expand_builtin): Handle IX86_BUILTIN_MWAITX and
28039 IX86_BUILTIN_MONITORX built-ins.
28040 * config/i386/i386.h (TARGET_MWAITX): New.
28041 * config/i386/i386.md (unspecv): Add UNSPEC_MWAITX and
28043 (mwaitx): New pattern.
28044 (monitorx_<mode>): New pattern.
28045 * config/i386/x86intrin.h: Include mwaitxintrin.h.
28046 * doc/extend.texi: Document monitorx and mwaitx builtins.
28047 * doc/invoke.texi: Document -mmwaitx option.
28049 2015-06-12 Uros Bizjak <ubizjak@gmail.com>
28051 * emit-rtl.c (need_atomic_barrier_p): Mask model with
28052 MEMMODEL_BASE_MASK. Remove MEMMODEL_SYNC_* cases.
28054 2015-06-11 David Edelsohn <dje.gcc@gmail.com>
28056 * dbxout.c (xcoff_debug_hooks): Provide a function for
28057 register_main_translation_unit hook.
28059 2015-06-11 David Edelsohn <dje.gcc@gmail.com>
28061 * config/rs6000/rs6000.c (rs6000_pre_atomic_barrier): Remove SYNC
28062 variants cases from switch.
28063 (rs6000_post_atomic_barrier): Same.
28064 (rs6000_expand_atomic_compare_and_swap): Use memmodel_base.
28065 (rs6000_expand_atomic_exchange): Same.
28066 (rs6000_expand_atomic_op): Same.
28067 * config/rs6000/sync.md (mem_thread_fence): Use memodel_base. Remove
28068 SYNC variants cases from switch.
28069 (atomic_load): Same.
28070 (atomic_store): Same.
28072 2015-06-11 John David Anglin <danglin@gcc.gnu.org>
28074 * config/pa/pa.c (pa_output_global_address): Handle LABEL_REF plus
28075 CONST_INT for goto.
28077 2015-06-11 Aldy Hernandez <aldyh@redhat.com>
28080 * dwarf2out.c (check_die): Check for common duplicate attributes.
28081 (add_location_or_const_value_attribute): Do not add duplicate
28083 (gen_formal_parameter_die): Do not add DW_AT_artificial the second
28085 (gen_struct_or_union_type_die): Bail early if TREE_ASM_WRITTEN.
28086 (gen_type_die_with_usage): Call check_die.
28087 (dwarf2out_decl): Only call check_die() when ENABLE_CHECKING.
28089 2015-06-11 Jason Merrill <jason@redhat.com>
28091 * dwarf2out.c (prune_unused_types): Handle unused top-level limbo
28094 2015-06-11 Marek Polacek <polacek@redhat.com>
28096 * match.pd ((x & y) ^ (x | y)): Don't check for single_use.
28098 2015-06-11 Eric Botcazou <ebotcazou@adacore.com>
28101 * config/sparc/sparc.c (hard_regno_mode_classes): Add ??? comment.
28102 * config/sparc/sparc.md (zero_extendsidi2_insn_sp32): Use single order.
28103 (*addx_extend_sp32): Fix pasto.
28104 (*subx_extend): Rename into...
28105 (*subx_extend_sp32): ...this.
28106 (*adddi3_extend_sp32): Add earlyclobber.
28107 (*subdi3_insn_sp32): Likewise.
28108 (*subdi3_extend_sp32): Likewise.
28109 (*and_not_di_sp32): Likewise.
28110 (*or_not_di_sp32): Likewise.
28111 (*xor_not_di_sp32): Likewise.
28112 (*negdi2_sp32): Likewise.
28113 (*one_cmpldi2_sp32): Likewise.
28115 2015-06-11 Pierre-Marie de Rodat <derodat@adacore.com>
28117 * debug.h (struct gcc_debug_hooks): Add a
28118 register_main_translation_unit hook.
28119 * debug.c (do_nothing_debug_hooks): Provide a function for this
28121 * dbxout.c (dbx_debug_hooks): Likewise.
28122 * sdbout.c (sdb_debug_hooks): Likewise.
28123 * vmsdbgout.c (vmsdbg_debug_hooks): Likewise.
28124 * dwarf2out.c (main_translation_unit): New global variable.
28125 (dwarf2out_register_main_translation_unit): New function
28126 implementing the new hook.
28127 (dwarf2_debug_hooks): Assign
28128 dwarf2out_register_main_translation_unit to this new hook.
28129 (dwarf2out_init): Associate any main translation unit to
28132 2015-06-11 Marek Polacek <polacek@redhat.com>
28134 * match.pd ((x & y) ^ (x | y) -> x ^ y): New pattern.
28136 2015-06-11 Marek Polacek <polacek@redhat.com>
28138 * match.pd: Use single_use throughout.
28140 2015-06-11 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
28142 * config/arm/arm.c (arm_option_params_internal): When optimising
28143 for speed set max_insns_skipped when arm_restrict_it.
28145 2015-06-11 Christian Bruel <christian.bruel@st.com>
28148 * config/arm/arm-c.c (arm_cpu_cpp_builtins): Conditionally define
28150 (arm_cpu_builtins): New function.
28151 (arm_pragma_target_parse): Call arm_cpu_builtins.
28152 * config/arm/arm-protos.h (arm_cpu_builtins): Declare.
28153 (arm_register_target_pragmas): Likewise.
28154 * config/arm/arm.h (REGISTER_TARGET_PRAGMAS):
28155 Call arm_register_target_pragmas.
28156 * config/arm/arm-c.c (arm_register_target_pragmas): New function.
28157 (arm_pragma_target_parse): Likewise.
28159 2015-06-10 Kaz Kojima <kkojima@gcc.gnu.org>
28161 * config/sh/sh.md (tstsi_t): Add '?' modifier to 'r' alternative
28162 of the second operand.
28164 2015-06-10 Uros Bizjak <ubizjak@gmail.com>
28167 * config/i386/i386.c (ix86_expand_vector_set): Use gen_int_mode
28168 to prepare mask operand for AVX512 modes.
28170 2015-06-10 Michael Meissner <meissner@linux.vnet.ibm.com>
28173 * doc/md.texi (Machine Constraints): Document that on the PowerPC
28174 if you use a constraint that targets a VSX register, you must use
28175 %x<n> in the template.
28177 2015-06-10 Max Filippov <jcmvbkbc@gmail.com>
28179 * config/xtensa/xtensa.h (TARGET_DEBUG): New definition.
28180 * config/xtensa/xtensa.md (define_attr "type"): New type "trap".
28181 (define_insn "trap"): New definition.
28183 2015-06-10 Richard Biener <rguenther@suse.de>
28185 * tree-vect-slp.c (vect_attempt_slp_rearrange_stmts): Split
28187 (vect_supported_load_permutation_p): ... here. Handle
28188 supportable permutations in reductions.
28189 * tree-vect-stmts.c (vectorizable_load): Handle SLP permutations
28190 for vectorizing strided group loads.
28192 2015-06-10 Jakub Jelinek <jakub@redhat.com>
28195 * config/i386/i386.c (ix86_split_long_move): For collisions
28196 involving direct tls segment refs, move the UNSPEC_TP possibly
28197 wrapped in ZERO_EXTEND out of the address for lea, to each of
28200 2015-06-10 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
28202 * config/arm/sync.md (*memory_barrier): Use dmb ish instead of
28203 dmb sy. Adjust tabs.
28205 2015-06-10 Tom de Vries <tom@codesourcery.com>
28207 * omp-low.c (expand_omp_target): Remove duplicate declaration of node.
28209 2015-06-10 Martin Liska <mliska@suse.cz>
28212 * mem-stats-traits.h (enum mem_alloc_origin): Add _ORIGIN suffix for
28213 all enum values in mem_alloc_origin.
28214 * alloc-pool.c (dump_alloc_pool_statistics): Use newly changed enum
28216 * alloc-pool.h (pool_allocator::pool_allocator): Likewise.
28217 * bitmap.c (bitmap_register): Likewise.
28218 (dump_bitmap_statistics): Likewise.
28219 * ggc-common.c (dump_ggc_loc_statistics): Likewise.
28220 (ggc_record_overhead): Likewise.
28221 * hash-map.h: Likewise.
28222 * hash-set.h: Likewise.
28223 * hash-table.c (void dump_hash_table_loc_statistics): Likewise.
28224 * hash-table.h: Likewise.
28225 * vec.c (vec_prefix::register_overhead): Likewise.
28226 (vec_prefix::release_overhead): Likewise.
28227 (dump_vec_loc_statistics): Likewise.
28229 2015-06-09 Christian Bruel <christian.bruel@st.com>
28232 * config/arm/arm.opt (THUMB, arm_restrict_it, inline_asm_unified): Save.
28233 * config/arm/arm-protos.h (arm_valid_target_attribute_tree): Declare.
28234 (arm_reset_previous_fndecl, arm_change_mode_p): Likewise.
28235 * config/arm/arm.h (SWITCHABLE_TARGET): Define.
28236 * config/arm/arm.c (arm_reset_previous_fndecl): New functions.
28237 (arm_valid_target_attribute_tree, arm_change_mode_p): Likewise.
28238 (arm_valid_target_attribute_p): Likewise.
28239 (arm_set_current_function, arm_can_inline_p): Likewise.
28240 (arm_valid_target_attribute_rec): Likewise.
28241 (arm_previous_fndecl): New variable.
28242 (TARGET_SET_CURRENT_FUNCTION, TARGET_OPTION_VALID_ATTRIBUTE_P): Define.
28243 (TARGET_CAN_INLINE_P): Define.
28244 (arm_asm_trampoline_template): Emit mode.
28245 (arm_file_start): Don't set unified syntax.
28246 (arm_declare_function_name): Set unified syntax and mode.
28247 (arm_option_override): Init target_option_default_node.
28248 and target_option_current_node.
28249 * config/arm/arm.md (*call_value_symbol): Set mode when possible.
28250 (*call_symbol): Likewise.
28251 * doc/extend.texi: Document ARM/Thumb target attribute.
28252 * doc/invoke.texi: Likewise.
28254 2015-06-09 Alexandre Oliva <aoliva@redhat.com>
28257 2015-06-09 Alexandre Oliva <aoliva@redhat.com>
28258 PR rtl-optimization/64164
28259 * Makefile.in (OBJS): Drop tree-ssa-copyrename.o.
28260 * tree-ssa-copyrename.c: Removed.
28261 * opts.c (default_options_table): Drop -ftree-copyrename. Add
28262 -ftree-coalesce-vars.
28263 * passes.def: Drop all occurrences of pass_rename_ssa_copies.
28264 * common.opt (ftree-copyrename): Ignore.
28265 (ftree-coalesce-inlined-vars): Likewise.
28266 * doc/invoke.texi: Remove the ignored options above.
28267 * gimple-expr.h (gimple_can_coalesce_p): Move declaration
28268 * tree-ssa-coalesce.h: ... here.
28269 * tree-ssa-uncprop.c: Include tree-ssa-coalesce.h and other
28270 headers required by it.
28271 * gimple-expr.c (gimple_can_coalesce_p): Allow coalescing
28272 across variables when flag_tree_coalesce_vars. Check register
28273 use and promoted modes to allow coalescing. Moved to
28274 tree-ssa-coalesce.c.
28275 * tree-ssa-live.c (struct tree_int_map_hasher): Move along
28276 with its member functions to tree-ssa-coalesce.c.
28277 (var_map_base_init): Likewise. Renamed to
28278 compute_samebase_partition_bases.
28279 (partition_view_normal): Drop want_bases parameter.
28280 (partition_view_bitmap): Likewise.
28281 * tree-ssa-live.h: Adjust declarations.
28282 * tree-ssa-coalesce.c: Include explow.h.
28283 (build_ssa_conflict_graph): Process PARM_ and RESULT_DECLs's
28284 default defs at the entry point.
28285 (dump_part_var_map): New.
28286 (compute_optimized_partition_bases): New, called by...
28287 (coalesce_ssa_name): ... when flag_tree_coalesce_vars, instead
28288 of compute_samebase_partition_bases. Adjust.
28289 * alias.c (nonoverlapping_memrefs_p): Disregard gimple-regs.
28290 * cfgexpand.c (leader_merge): New.
28291 (get_rtl_for_parm_ssa_default_def): New.
28292 (set_rtl): Merge exprs and attrs, even for MEMs and non-SSA
28293 vars. Update DECL_RTL for PARM_DECLs and RESULT_DECLs too.
28294 (expand_one_stack_var_at): Handle anonymous SSA_NAMEs. Drop
28295 redundant MEM attr setting.
28296 (expand_one_stack_var_1): Handle anonymous SSA_NAMEs. Renamed
28298 (expand_one_stack_var): ... this. New wrapper to check and
28299 skip already expanded SSA partitions.
28300 (record_alignment_for_reg_var): New, factored out of...
28301 (expand_one_var): ... this.
28302 (expand_one_ssa_partition): New.
28303 (adjust_one_expanded_partition_var): New.
28304 (expand_one_register_var): Check and skip already expanded SSA
28306 (expand_used_vars): Don't create DECLs for anonymous SSA
28307 names. Expand all SSA partitions, then adjust all SSA names.
28308 (pass::execute): Replace the loops that set
28309 SA.partition_to_pseudo from partition leaders and cleared
28310 DECL_RTL for multi-location variables, and that which used to
28311 rename vars and set attrs, with one that clears DECL_RTL and
28312 checks that PARMs and RESULTs default_defs match DECL_RTL.
28313 * cfgexpand.h (get_rtl_for_parm_ssa_default_def): Declare.
28314 * emit-rtl.c (set_reg_attrs_for_parm): Handle NULL decl.
28315 * explow.c (promote_ssa_mode): New.
28316 * explow.h (promote_ssa_mode): Declare.
28317 * expr.c (expand_expr_real_1): Handle anonymous SSA_NAMEs.
28318 * function.c: Include cfgexpand.h.
28319 (use_register_for_decl): Handle SSA_NAMEs, anonymous or not.
28320 (use_register_for_parm_decl): Wrapper for the above to
28321 special-case the result_ptr.
28322 (rtl_for_parm): Ditto for get_rtl_for_parm_ssa_default_def.
28323 (maybe_reset_rtl_for_parm): Reset DECL_RTL of parms with
28324 multiple locations.
28325 (assign_parm_adjust_stack_rtl): Add all and parm arguments,
28326 for rtl_for_parm. For SSA-assigned parms, zero stack_parm.
28327 (assign_parm_setup_block): Prefer SSA-assigned location.
28328 (assign_parm_setup_reg): Likewise. Use entry_parm for equiv
28329 if stack_parm is NULL.
28330 (assign_parm_setup_stack): Prefer SSA-assigned location.
28331 (assign_parms): Maybe reset DECL_RTL of params. Adjust stack
28332 rtl before testing for pointer bounds. Special-case result_ptr.
28333 (expand_function_start): Maybe reset DECL_RTL of result.
28334 Prefer SSA-assigned location for result and static chain.
28335 Factor out DECL_RESULT and SET_DECL_RTL.
28336 * tree-outof-ssa.c (insert_value_copy_on_edge): Handle
28337 anonymous SSA names. Use promote_ssa_mode.
28338 (get_temp_reg): Likewise.
28339 (remove_ssa_form): Adjust.
28340 * var-tracking.c (dataflow_set_clear_at_call): Take call_insn
28341 and get its reg_usage for reg invalidation.
28342 (compute_bb_dataflow): Pass it insn.
28343 (emit_notes_in_bb): Likewise.
28344 * tree-ssa-loop-niter.c (loop_exits_before_overflow): Don't
28345 fail assert on conversion between unsigned types.
28347 2015-06-09 Tom de Vries <tom@codesourcery.com>
28349 PR tree-optimization/65460
28350 * omp-low.c (expand_omp_target): Set parallelized_function on
28351 cgraph_node for child_fn.
28353 2015-06-09 Tom de Vries <tom@codesourcery.com>
28355 * omp-low.c (finalize_task_copyfn, expand_omp_taskreg): Mark function
28356 parallelized_function before add_new_function.
28358 2015-06-09 Andrew MacLeod <amacleod@redhat.com>
28360 * gcc-plugin.h: Move decls to plugin.h and include it.
28361 * plugin.h: Relocate decls from gcc-plugin.h
28362 * ggc-page.c: Include required header files.
28363 * passes.c: Likewise.
28364 * cgraphunit.c: Likewise.
28366 2015-06-09 Tom de Vries <tom@codesourcery.com>
28368 * tree-stdarg.c (expand_ifn_va_arg_1): Handle location.
28370 2015-06-09 Jason Merrill <jason@redhat.com>
28373 * toplev.c (check_global_declaration): Don't warn about a clone.
28375 2015-06-09 Marek Polacek <polacek@redhat.com>
28377 PR tree-optimization/66299
28378 * match.pd ((CST1 << A) == CST2 -> A == ctz (CST2) - ctz (CST1)
28379 ((CST1 << A) != CST2 -> A != ctz (CST2) - ctz (CST1)): New
28382 2015-06-09 Richard Biener <rguenther@suse.de>
28384 * tree-vect-slp.c (vect_build_slp_tree_1): Remove bailout on gaps.
28385 (vect_analyze_slp_instance): Instead do not falsely drop
28388 2015-06-09 Richard Biener <rguenther@suse.de>
28390 PR middle-end/66423
28391 * match.pd: Handle A % (unsigned)(1 << B).
28393 2015-06-09 Aldy Hernandez <aldyh@redhat.com>
28395 * varasm.c (output_object_block_htab): Remove.
28396 (output_object_block_compare): New.
28397 (output_object_blocks): Sort named object_blocks before outputting
28400 2015-06-09 Richard Biener <rguenther@suse.de>
28402 PR tree-optimization/66419
28403 * tree-vect-slp.c (vect_supported_load_permutation_p): Properly
28404 consider GROUP_GAP when detecting a perfect subchain.
28406 2015-06-09 Nick Clifton <nickc@redhat.com>
28408 * config/rl78/rl78.c (rl78_select_section): When -mes0 is active
28409 place read only data in the .frodata section.
28411 2015-06-09 Shiva Chen <shiva0217@gmail.com>
28413 * sync.md (atomic_load<mode>): Add conditional code for lda/ldr
28414 (atomic_store<mode>): Likewise.
28416 2015-06-09 Richard Biener <rguenther@suse.de>
28418 * cfgloop.c (get_loop_body_in_bfs_order): Fix assert.
28420 2015-06-09 Richard Biener <rguenther@suse.de>
28422 PR middle-end/66413
28423 * tree-inline.c (insert_init_debug_bind): Unshare value.
28425 2015-06-09 Richard Biener <rguenther@suse.de>
28427 PR tree-optimization/66396
28428 * graphite-isl-ast-to-gimple.c (graphite_regenerate_ast_isl):
28429 Rename virtual operands.
28431 2015-06-09 Tom de Vries <tom@codesourcery.com>
28433 * gimple-iterator.h (gimple_seq_nondebug_singleton_p): Don't
28434 always return false.
28436 2015-06-09 Alexandre Oliva <aoliva@redhat.com>
28438 PR rtl-optimization/64164
28439 * Makefile.in (OBJS): Drop tree-ssa-copyrename.o.
28440 * tree-ssa-copyrename.c: Removed.
28441 * opts.c (default_options_table): Drop -ftree-copyrename. Add
28442 -ftree-coalesce-vars.
28443 * passes.def: Drop all occurrences of pass_rename_ssa_copies.
28444 * common.opt (ftree-copyrename): Ignore.
28445 (ftree-coalesce-inlined-vars): Likewise.
28446 * doc/invoke.texi: Remove the ignored options above.
28447 * gimple-expr.h (gimple_can_coalesce_p): Move declaration
28448 * tree-ssa-coalesce.h: ... here.
28449 * tree-ssa-uncprop.c: Include tree-ssa-coalesce.h and other
28450 headers required by it.
28451 * gimple-expr.c (gimple_can_coalesce_p): Allow coalescing
28452 across variables when flag_tree_coalesce_vars. Check register
28453 use and promoted modes to allow coalescing. Moved to
28454 tree-ssa-coalesce.c.
28455 * tree-ssa-live.c (struct tree_int_map_hasher): Move along
28456 with its member functions to tree-ssa-coalesce.c.
28457 (var_map_base_init): Likewise. Renamed to
28458 compute_samebase_partition_bases.
28459 (partition_view_normal): Drop want_bases parameter.
28460 (partition_view_bitmap): Likewise.
28461 * tree-ssa-live.h: Adjust declarations.
28462 * tree-ssa-coalesce.c: Include explow.h.
28463 (build_ssa_conflict_graph): Process PARM_ and RESULT_DECLs's
28464 default defs at the entry point.
28465 (dump_part_var_map): New.
28466 (compute_optimized_partition_bases): New, called by...
28467 (coalesce_ssa_name): ... when flag_tree_coalesce_vars, instead
28468 of compute_samebase_partition_bases. Adjust.
28469 * alias.c (nonoverlapping_memrefs_p): Disregard gimple-regs.
28470 * cfgexpand.c (leader_merge): New.
28471 (get_rtl_for_parm_ssa_default_def): New.
28472 (set_rtl): Merge exprs and attrs, even for MEMs and non-SSA
28473 vars. Update DECL_RTL for PARM_DECLs and RESULT_DECLs too.
28474 (expand_one_stack_var_at): Handle anonymous SSA_NAMEs. Drop
28475 redundant MEM attr setting.
28476 (expand_one_stack_var_1): Handle anonymous SSA_NAMEs. Renamed
28478 (expand_one_stack_var): ... this. New wrapper to check and
28479 skip already expanded SSA partitions.
28480 (record_alignment_for_reg_var): New, factored out of...
28481 (expand_one_var): ... this.
28482 (expand_one_ssa_partition): New.
28483 (adjust_one_expanded_partition_var): New.
28484 (expand_one_register_var): Check and skip already expanded SSA
28486 (expand_used_vars): Don't create DECLs for anonymous SSA
28487 names. Expand all SSA partitions, then adjust all SSA names.
28488 (pass::execute): Replace the loops that set
28489 SA.partition_to_pseudo from partition leaders and cleared
28490 DECL_RTL for multi-location variables, and that which used to
28491 rename vars and set attrs, with one that clears DECL_RTL and
28492 checks that PARMs and RESULTs default_defs match DECL_RTL.
28493 * cfgexpand.h (get_rtl_for_parm_ssa_default_def): Declare.
28494 * emit-rtl.c (set_reg_attrs_for_parm): Handle NULL decl.
28495 * explow.c (promote_ssa_mode): New.
28496 * explow.h (promote_ssa_mode): Declare.
28497 * expr.c (expand_expr_real_1): Handle anonymous SSA_NAMEs.
28498 * function.c: Include cfgexpand.h.
28499 (use_register_for_decl): Handle SSA_NAMEs, anonymous or not.
28500 (use_register_for_parm_decl): Wrapper for the above to
28501 special-case the result_ptr.
28502 (rtl_for_parm): Ditto for get_rtl_for_parm_ssa_default_def.
28503 (maybe_reset_rtl_for_parm): Reset DECL_RTL of parms with
28504 multiple locations.
28505 (assign_parm_adjust_stack_rtl): Add all and parm arguments,
28506 for rtl_for_parm. For SSA-assigned parms, zero stack_parm.
28507 (assign_parm_setup_block): Prefer SSA-assigned location.
28508 (assign_parm_setup_reg): Likewise. Use entry_parm for equiv
28509 if stack_parm is NULL.
28510 (assign_parm_setup_stack): Prefer SSA-assigned location.
28511 (assign_parms): Maybe reset DECL_RTL of params. Adjust stack
28512 rtl before testing for pointer bounds. Special-case result_ptr.
28513 (expand_function_start): Maybe reset DECL_RTL of result.
28514 Prefer SSA-assigned location for result and static chain.
28515 Factor out DECL_RESULT and SET_DECL_RTL.
28516 * tree-outof-ssa.c (insert_value_copy_on_edge): Handle
28517 anonymous SSA names. Use promote_ssa_mode.
28518 (get_temp_reg): Likewise.
28519 (remove_ssa_form): Adjust.
28520 * var-tracking.c (dataflow_set_clear_at_call): Take call_insn
28521 and get its reg_usage for reg invalidation.
28522 (compute_bb_dataflow): Pass it insn.
28523 (emit_notes_in_bb): Likewise.
28524 * tree-ssa-loop-niter.c (loop_exits_before_overflow): Don't
28525 fail assert on conversion between unsigned types.
28527 2015-06-09 Alexandre Oliva <aoliva@redhat.com>
28530 * tree-inline.c (reset_debug_binding): New.
28531 (reset_debug_bindings): Likewise.
28532 (expand_call_inline): Call it.
28534 2015-06-08 Jan Hubicka <hubicka@ucw.cz>
28536 * tree.c (gimple_canonical_types_compatible_p): Drop comparsion of
28539 2015-06-08 Jan Hubicka <hubicka@ucw.cz>
28541 * lto-streamer-out.c (lto_output_location): Stream
28542 reserved locations correctly.
28543 * lto-streamer-in.c (lto_output_location): Likewise.
28545 2015-06-08 Andrew MacLeod <amacleod@redhat.com>
28547 * coretypes.h: Include hash-table.h and hash-set.h for host files.
28548 * ggc.h: Don't include statistics.h>
28549 * hash-map.h: Remove all includes.
28550 * hash-set.h: Likewise.
28551 * hash-table.h: Add statistics.h, inchash.h and hash-map-traits.h to
28552 the include list. Remove <new>.
28553 * inchash.h: Remove all includes.
28554 * mem-stats.h: Likewise.
28555 * vec.h: No special processing for generators or ggc.
28556 * alias.c : Adjust include files.
28557 * alloc-pool.c : Likewise.
28558 * alloc-pool.h : Likewise.
28559 * asan.c : Likewise.
28560 * attribs.c : Likewise.
28561 * auto-inc-dec.c : Likewise.
28562 * auto-profile.c : Likewise.
28563 * bb-reorder.c : Likewise.
28564 * bitmap.c : Likewise.
28565 * bitmap.h : Likewise.
28566 * bt-load.c : Likewise.
28567 * builtins.c : Likewise.
28568 * caller-save.c : Likewise.
28569 * calls.c : Likewise.
28570 * ccmp.c : Likewise.
28571 * cfg.c : Likewise.
28572 * cfganal.c : Likewise.
28573 * cfgbuild.c : Likewise.
28574 * cfgcleanup.c : Likewise.
28575 * cfgexpand.c : Likewise.
28576 * cfghooks.c : Likewise.
28577 * cfgloop.c : Likewise.
28578 * cfgloop.h : Likewise.
28579 * cfgloopanal.c : Likewise.
28580 * cfgloopmanip.c : Likewise.
28581 * cfgrtl.c : Likewise.
28582 * cgraph.c : Likewise.
28583 * cgraphbuild.c : Likewise.
28584 * cgraphclones.c : Likewise.
28585 * cgraphunit.c : Likewise.
28586 * cilk-common.c : Likewise.
28587 * combine-stack-adj.c : Likewise.
28588 * combine.c : Likewise.
28589 * compare-elim.c : Likewise.
28590 * context.c : Likewise.
28591 * convert.c : Likewise.
28592 * coverage.c : Likewise.
28593 * cppbuiltin.c : Likewise.
28594 * cprop.c : Likewise.
28595 * cse.c : Likewise.
28596 * cselib.c : Likewise.
28597 * data-streamer-in.c : Likewise.
28598 * data-streamer-out.c : Likewise.
28599 * data-streamer.c : Likewise.
28600 * data-streamer.h : Likewise.
28601 * dbxout.c : Likewise.
28602 * dce.c : Likewise.
28603 * ddg.c : Likewise.
28604 * debug.c : Likewise.
28605 * df-core.c : Likewise.
28606 * df-problems.c : Likewise.
28607 * df-scan.c : Likewise.
28609 * dfp.c : Likewise.
28610 * dojump.c : Likewise.
28611 * dominance.c : Likewise.
28612 * domwalk.c : Likewise.
28613 * double-int.c : Likewise.
28614 * dse.c : Likewise.
28615 * dumpfile.c : Likewise.
28616 * dwarf2asm.c : Likewise.
28617 * dwarf2cfi.c : Likewise.
28618 * dwarf2out.c : Likewise.
28619 * emit-rtl.c : Likewise.
28620 * et-forest.c : Likewise.
28621 * except.c : Likewise.
28622 * except.h : Likewise.
28623 * explow.c : Likewise.
28624 * expmed.c : Likewise.
28625 * expr.c : Likewise.
28626 * final.c : Likewise.
28627 * fixed-value.c : Likewise.
28628 * fold-const.c : Likewise.
28629 * function.c : Likewise.
28630 * fwprop.c : Likewise.
28631 * gcc-plugin.h : Likewise.
28632 * gcc.c : Likewise.
28633 * gcse-common.c : Likewise.
28634 * gcse.c : Likewise.
28635 * genattrtab.c : Likewise.
28636 * genautomata.c : Likewise.
28637 * genconditions.c : Likewise.
28638 * genemit.c : Likewise.
28639 * generic-match-head.c : Likewise.
28640 * genextract.c : Likewise.
28641 * gengtype-state.c : Likewise.
28642 * gengtype.c : Likewise.
28643 * genhooks.c : Likewise.
28644 * genmatch.c : Likewise.
28645 * genmodes.c : Likewise.
28646 * genrecog.c : Likewise.
28647 * gensupport.c : Likewise.
28648 * ggc-common.c : Likewise.
28649 * ggc-internal.h : Likewise.
28650 * ggc-none.c : Likewise.
28651 * ggc-page.c : Likewise.
28652 * gimple-builder.c : Likewise.
28653 * gimple-expr.c : Likewise.
28654 * gimple-fold.c : Likewise.
28655 * gimple-iterator.c : Likewise.
28656 * gimple-low.c : Likewise.
28657 * gimple-match-head.c : Likewise.
28658 * gimple-pretty-print.c : Likewise.
28659 * gimple-ssa-isolate-paths.c : Likewise.
28660 * gimple-ssa-strength-reduction.c : Likewise.
28661 * gimple-ssa.h : Likewise.
28662 * gimple-streamer-in.c : Likewise.
28663 * gimple-streamer-out.c : Likewise.
28664 * gimple-streamer.h : Likewise.
28665 * gimple-walk.c : Likewise.
28666 * gimple.c : Likewise.
28667 * gimplify-me.c : Likewise.
28668 * gimplify.c : Likewise.
28669 * godump.c : Likewise.
28670 * graph.c : Likewise.
28671 * graphds.c : Likewise.
28672 * graphite-blocking.c : Likewise.
28673 * graphite-dependences.c : Likewise.
28674 * graphite-interchange.c : Likewise.
28675 * graphite-isl-ast-to-gimple.c : Likewise.
28676 * graphite-optimize-isl.c : Likewise.
28677 * graphite-poly.c : Likewise.
28678 * graphite-scop-detection.c : Likewise.
28679 * graphite-sese-to-poly.c : Likewise.
28680 * graphite.c : Likewise.
28681 * haifa-sched.c : Likewise.
28682 * hard-reg-set.h : Likewise.
28683 * hw-doloop.c : Likewise.
28684 * ifcvt.c : Likewise.
28685 * inchash.c : Likewise.
28686 * incpath.c : Likewise.
28687 * init-regs.c : Likewise.
28688 * input.c : Likewise.
28689 * internal-fn.c : Likewise.
28690 * ipa-chkp.c : Likewise.
28691 * ipa-comdats.c : Likewise.
28692 * ipa-cp.c : Likewise.
28693 * ipa-devirt.c : Likewise.
28694 * ipa-icf-gimple.c : Likewise.
28695 * ipa-icf.c : Likewise.
28696 * ipa-inline-analysis.c : Likewise.
28697 * ipa-inline-transform.c : Likewise.
28698 * ipa-inline.c : Likewise.
28699 * ipa-polymorphic-call.c : Likewise.
28700 * ipa-profile.c : Likewise.
28701 * ipa-prop.c : Likewise.
28702 * ipa-pure-const.c : Likewise.
28703 * ipa-ref.c : Likewise.
28704 * ipa-reference.c : Likewise.
28705 * ipa-split.c : Likewise.
28706 * ipa-utils.c : Likewise.
28707 * ipa-visibility.c : Likewise.
28708 * ipa.c : Likewise.
28709 * ira-build.c : Likewise.
28710 * ira-color.c : Likewise.
28711 * ira-conflicts.c : Likewise.
28712 * ira-costs.c : Likewise.
28713 * ira-emit.c : Likewise.
28714 * ira-lives.c : Likewise.
28715 * ira.c : Likewise.
28716 * jump.c : Likewise.
28717 * langhooks.c : Likewise.
28718 * lcm.c : Likewise.
28719 * libfuncs.h : Likewise.
28720 * lists.c : Likewise.
28721 * loop-doloop.c : Likewise.
28722 * loop-init.c : Likewise.
28723 * loop-invariant.c : Likewise.
28724 * loop-iv.c : Likewise.
28725 * loop-unroll.c : Likewise.
28726 * lower-subreg.c : Likewise.
28727 * lra-assigns.c : Likewise.
28728 * lra-coalesce.c : Likewise.
28729 * lra-constraints.c : Likewise.
28730 * lra-eliminations.c : Likewise.
28731 * lra-lives.c : Likewise.
28732 * lra-remat.c : Likewise.
28733 * lra-spills.c : Likewise.
28734 * lra.c : Likewise.
28735 * lto-cgraph.c : Likewise.
28736 * lto-compress.c : Likewise.
28737 * lto-opts.c : Likewise.
28738 * lto-section-in.c : Likewise.
28739 * lto-section-out.c : Likewise.
28740 * lto-streamer-in.c : Likewise.
28741 * lto-streamer-out.c : Likewise.
28742 * lto-streamer.c : Likewise.
28743 * lto-streamer.h : Likewise.
28744 * mcf.c : Likewise.
28745 * mode-switching.c : Likewise.
28746 * modulo-sched.c : Likewise.
28747 * omega.c : Likewise.
28748 * omp-low.c : Likewise.
28749 * optabs.c : Likewise.
28750 * opts-global.c : Likewise.
28751 * opts.h : Likewise.
28752 * passes.c : Likewise.
28753 * plugin.c : Likewise.
28754 * postreload-gcse.c : Likewise.
28755 * postreload.c : Likewise.
28756 * predict.c : Likewise.
28757 * print-rtl.c : Likewise.
28758 * print-tree.c : Likewise.
28759 * profile.c : Likewise.
28760 * read-md.c : Likewise.
28761 * read-md.h : Likewise.
28762 * read-rtl.c : Likewise.
28763 * real.c : Likewise.
28764 * realmpfr.c : Likewise.
28765 * recog.c : Likewise.
28766 * ree.c : Likewise.
28767 * reg-stack.c : Likewise.
28768 * regcprop.c : Likewise.
28769 * reginfo.c : Likewise.
28770 * regrename.c : Likewise.
28771 * regstat.c : Likewise.
28772 * reload.c : Likewise.
28773 * reload1.c : Likewise.
28774 * reorg.c : Likewise.
28775 * resource.c : Likewise.
28776 * rtl-chkp.c : Likewise.
28777 * rtl.c : Likewise.
28778 * rtl.h : Likewise.
28779 * rtlanal.c : Likewise.
28780 * rtlhash.c : Likewise.
28781 * rtlhash.h : Likewise.
28782 * rtlhooks.c : Likewise.
28783 * sanopt.c : Likewise.
28784 * sched-deps.c : Likewise.
28785 * sched-ebb.c : Likewise.
28786 * sched-rgn.c : Likewise.
28787 * sched-vis.c : Likewise.
28788 * sdbout.c : Likewise.
28789 * sel-sched-dump.c : Likewise.
28790 * sel-sched-ir.c : Likewise.
28791 * sel-sched-ir.h : Likewise.
28792 * sel-sched.c : Likewise.
28793 * sese.c : Likewise.
28794 * shrink-wrap.c : Likewise.
28795 * shrink-wrap.h : Likewise.
28796 * simplify-rtx.c : Likewise.
28797 * stack-ptr-mod.c : Likewise.
28798 * statistics.c : Likewise.
28799 * stmt.c : Likewise.
28800 * stor-layout.c : Likewise.
28801 * store-motion.c : Likewise.
28802 * stringpool.c : Likewise.
28803 * symtab.c : Likewise.
28804 * target-globals.c : Likewise.
28805 * targhooks.c : Likewise.
28806 * tlink.c : Likewise.
28807 * toplev.c : Likewise.
28808 * tracer.c : Likewise.
28809 * trans-mem.c : Likewise.
28810 * tree-affine.c : Likewise.
28811 * tree-affine.h : Likewise.
28812 * tree-browser.c : Likewise.
28813 * tree-call-cdce.c : Likewise.
28814 * tree-cfg.c : Likewise.
28815 * tree-cfgcleanup.c : Likewise.
28816 * tree-chkp-opt.c : Likewise.
28817 * tree-chkp.c : Likewise.
28818 * tree-chrec.c : Likewise.
28819 * tree-complex.c : Likewise.
28820 * tree-data-ref.c : Likewise.
28821 * tree-dfa.c : Likewise.
28822 * tree-diagnostic.c : Likewise.
28823 * tree-dump.c : Likewise.
28824 * tree-eh.c : Likewise.
28825 * tree-eh.h : Likewise.
28826 * tree-emutls.c : Likewise.
28827 * tree-hasher.h : Likewise.
28828 * tree-if-conv.c : Likewise.
28829 * tree-inline.c : Likewise.
28830 * tree-inline.h : Likewise.
28831 * tree-into-ssa.c : Likewise.
28832 * tree-iterator.c : Likewise.
28833 * tree-loop-distribution.c : Likewise.
28834 * tree-nested.c : Likewise.
28835 * tree-nrv.c : Likewise.
28836 * tree-object-size.c : Likewise.
28837 * tree-outof-ssa.c : Likewise.
28838 * tree-parloops.c : Likewise.
28839 * tree-phinodes.c : Likewise.
28840 * tree-predcom.c : Likewise.
28841 * tree-pretty-print.c : Likewise.
28842 * tree-profile.c : Likewise.
28843 * tree-scalar-evolution.c : Likewise.
28844 * tree-sra.c : Likewise.
28845 * tree-ssa-address.c : Likewise.
28846 * tree-ssa-alias.c : Likewise.
28847 * tree-ssa-ccp.c : Likewise.
28848 * tree-ssa-coalesce.c : Likewise.
28849 * tree-ssa-copy.c : Likewise.
28850 * tree-ssa-copyrename.c : Likewise.
28851 * tree-ssa-dce.c : Likewise.
28852 * tree-ssa-dom.c : Likewise.
28853 * tree-ssa-dse.c : Likewise.
28854 * tree-ssa-forwprop.c : Likewise.
28855 * tree-ssa-ifcombine.c : Likewise.
28856 * tree-ssa-live.c : Likewise.
28857 * tree-ssa-loop-ch.c : Likewise.
28858 * tree-ssa-loop-im.c : Likewise.
28859 * tree-ssa-loop-ivcanon.c : Likewise.
28860 * tree-ssa-loop-ivopts.c : Likewise.
28861 * tree-ssa-loop-manip.c : Likewise.
28862 * tree-ssa-loop-niter.c : Likewise.
28863 * tree-ssa-loop-prefetch.c : Likewise.
28864 * tree-ssa-loop-unswitch.c : Likewise.
28865 * tree-ssa-loop.c : Likewise.
28866 * tree-ssa-math-opts.c : Likewise.
28867 * tree-ssa-operands.c : Likewise.
28868 * tree-ssa-phiopt.c : Likewise.
28869 * tree-ssa-phiprop.c : Likewise.
28870 * tree-ssa-pre.c : Likewise.
28871 * tree-ssa-propagate.c : Likewise.
28872 * tree-ssa-reassoc.c : Likewise.
28873 * tree-ssa-sccvn.c : Likewise.
28874 * tree-ssa-scopedtables.c : Likewise.
28875 * tree-ssa-sink.c : Likewise.
28876 * tree-ssa-strlen.c : Likewise.
28877 * tree-ssa-structalias.c : Likewise.
28878 * tree-ssa-tail-merge.c : Likewise.
28879 * tree-ssa-ter.c : Likewise.
28880 * tree-ssa-threadedge.c : Likewise.
28881 * tree-ssa-threadupdate.c : Likewise.
28882 * tree-ssa-uncprop.c : Likewise.
28883 * tree-ssa-uninit.c : Likewise.
28884 * tree-ssa.c : Likewise.
28885 * tree-ssanames.c : Likewise.
28886 * tree-stdarg.c : Likewise.
28887 * tree-streamer-in.c : Likewise.
28888 * tree-streamer-out.c : Likewise.
28889 * tree-streamer.c : Likewise.
28890 * tree-streamer.h : Likewise.
28891 * tree-switch-conversion.c : Likewise.
28892 * tree-tailcall.c : Likewise.
28893 * tree-vect-data-refs.c : Likewise.
28894 * tree-vect-generic.c : Likewise.
28895 * tree-vect-loop-manip.c : Likewise.
28896 * tree-vect-loop.c : Likewise.
28897 * tree-vect-patterns.c : Likewise.
28898 * tree-vect-slp.c : Likewise.
28899 * tree-vect-stmts.c : Likewise.
28900 * tree-vectorizer.c : Likewise.
28901 * tree-vectorizer.h : Likewise.
28902 * tree-vrp.c : Likewise.
28903 * tree.c : Likewise.
28904 * tsan.c : Likewise.
28905 * ubsan.c : Likewise.
28906 * valtrack.c : Likewise.
28907 * valtrack.h : Likewise.
28908 * value-prof.c : Likewise.
28909 * var-tracking.c : Likewise.
28910 * varasm.c : Likewise.
28911 * varpool.c : Likewise.
28913 * vmsdbgout.c : Likewise.
28914 * vtable-verify.c : Likewise.
28915 * vtable-verify.h : Likewise.
28916 * web.c : Likewise.
28917 * wide-int.cc : Likewise.
28918 * xcoffout.c : Likewise.
28919 * config/aarch64/aarch64-builtins.c : Likewise.
28920 * config/aarch64/aarch64.c : Likewise.
28921 * config/aarch64/cortex-a57-fma-steering.c : Likewise.
28922 * config/alpha/alpha.c : Likewise.
28923 * config/arc/arc.c : Likewise.
28924 * config/arm/aarch-common.c : Likewise.
28925 * config/arm/arm-builtins.c : Likewise.
28926 * config/arm/arm-c.c : Likewise.
28927 * config/arm/arm.c : Likewise.
28928 * config/avr/avr-c.c : Likewise.
28929 * config/avr/avr-log.c : Likewise.
28930 * config/avr/avr.c : Likewise.
28931 * config/bfin/bfin.c : Likewise.
28932 * config/c6x/c6x.c : Likewise.
28933 * config/cr16/cr16.c : Likewise.
28934 * config/cris/cris.c : Likewise.
28935 * config/darwin-c.c : Likewise.
28936 * config/darwin.c : Likewise.
28937 * config/default-c.c : Likewise.
28938 * config/epiphany/epiphany.c : Likewise.
28939 * config/epiphany/mode-switch-use.c : Likewise.
28940 * config/epiphany/resolve-sw-modes.c : Likewise.
28941 * config/fr30/fr30.c : Likewise.
28942 * config/frv/frv.c : Likewise.
28943 * config/ft32/ft32.c : Likewise.
28944 * config/glibc-c.c : Likewise.
28945 * config/h8300/h8300.c : Likewise.
28946 * config/i386/i386-c.c : Likewise.
28947 * config/i386/i386.c : Likewise.
28948 * config/i386/msformat-c.c : Likewise.
28949 * config/i386/winnt-cxx.c : Likewise.
28950 * config/i386/winnt-stubs.c : Likewise.
28951 * config/i386/winnt.c : Likewise.
28952 * config/ia64/ia64-c.c : Likewise.
28953 * config/ia64/ia64.c : Likewise.
28954 * config/iq2000/iq2000.c : Likewise.
28955 * config/lm32/lm32.c : Likewise.
28956 * config/m32c/m32c-pragma.c : Likewise.
28957 * config/m32c/m32c.c : Likewise.
28958 * config/m32r/m32r.c : Likewise.
28959 * config/m68k/m68k.c : Likewise.
28960 * config/mcore/mcore.c : Likewise.
28961 * config/mep/mep-pragma.c : Likewise.
28962 * config/mep/mep.c : Likewise.
28963 * config/microblaze/microblaze-c.c : Likewise.
28964 * config/microblaze/microblaze.c : Likewise.
28965 * config/mips/mips.c : Likewise.
28966 * config/mmix/mmix.c : Likewise.
28967 * config/mn10300/mn10300.c : Likewise.
28968 * config/moxie/moxie.c : Likewise.
28969 * config/msp430/msp430-c.c : Likewise.
28970 * config/msp430/msp430.c : Likewise.
28971 * config/nds32/nds32-cost.c : Likewise.
28972 * config/nds32/nds32-fp-as-gp.c : Likewise.
28973 * config/nds32/nds32-intrinsic.c : Likewise.
28974 * config/nds32/nds32-isr.c : Likewise.
28975 * config/nds32/nds32-md-auxiliary.c : Likewise.
28976 * config/nds32/nds32-memory-manipulation.c : Likewise.
28977 * config/nds32/nds32-pipelines-auxiliary.c : Likewise.
28978 * config/nds32/nds32-predicates.c : Likewise.
28979 * config/nds32/nds32.c : Likewise.
28980 * config/nios2/nios2.c : Likewise.
28981 * config/nvptx/nvptx.c : Likewise.
28982 * config/pa/pa.c : Likewise.
28983 * config/pdp11/pdp11.c : Likewise.
28984 * config/rl78/rl78-c.c : Likewise.
28985 * config/rl78/rl78.c : Likewise.
28986 * config/rs6000/rs6000-c.c : Likewise.
28987 * config/rs6000/rs6000.c : Likewise.
28988 * config/rx/rx.c : Likewise.
28989 * config/s390/s390-c.c : Likewise.
28990 * config/s390/s390.c : Likewise.
28991 * config/sh/sh-c.c : Likewise.
28992 * config/sh/sh-mem.cc : Likewise.
28993 * config/sh/sh.c : Likewise.
28994 * config/sh/sh_optimize_sett_clrt.cc : Likewise.
28995 * config/sh/sh_treg_combine.cc : Likewise.
28996 * config/sol2-c.c : Likewise.
28997 * config/sol2-cxx.c : Likewise.
28998 * config/sol2-stubs.c : Likewise.
28999 * config/sol2.c : Likewise.
29000 * config/sparc/sparc-c.c : Likewise.
29001 * config/sparc/sparc.c : Likewise.
29002 * config/spu/spu-c.c : Likewise.
29003 * config/spu/spu.c : Likewise.
29004 * config/stormy16/stormy16.c : Likewise.
29005 * config/tilegx/mul-tables.c : Likewise.
29006 * config/tilegx/tilegx-c.c : Likewise.
29007 * config/tilegx/tilegx.c : Likewise.
29008 * config/tilepro/mul-tables.c : Likewise.
29009 * config/tilepro/tilepro-c.c : Likewise.
29010 * config/tilepro/tilepro.c : Likewise.
29011 * config/v850/v850-c.c : Likewise.
29012 * config/v850/v850.c : Likewise.
29013 * config/vax/vax.c : Likewise.
29014 * config/visium/visium.c : Likewise.
29015 * config/vms/vms-c.c : Likewise.
29016 * config/vms/vms.c : Likewise.
29017 * config/vxworks.c : Likewise.
29018 * config/winnt-c.c : Likewise.
29019 * config/xtensa/xtensa.c : Likewise.
29021 2015-06-08 Jan Hubicka <hubicka@ucw.cz>
29024 * ipa-utils.h (warn_types_mismatch): Update prototype.
29025 * ipa-devirt.c (odr_types_equivalent_p): Add loc1/loc2
29027 (type_mismatch_p): New function.
29028 (warn_types_mismatch): Reorg to work better on non-C++ types.
29029 (odr_types_equivalent_p): Add loc1/loc2 parameters.
29030 (add_type_duplicate): Update.
29032 2015-06-08 Tom de Vries <tom@codesourcery.com>
29034 PR rtl-optimization/66444
29035 * postreload.c (reload_combine): Use get_call_reg_set_usage instead of
29038 2015-06-08 Richard Biener <rguenther@suse.de>
29040 PR tree-optimization/66422
29041 * tree-ssa-loop-ivcanon.c (remove_exits_and_undefined_stmts): Split
29042 block after inserted gcc_unreachable.
29044 2015-06-08 Nick Clifton <nickc@redhat.com>
29046 * config/rx/rx.c (rx_function_value): Do not promote vector types.
29047 (rx_promote_function_mode): Likewise.
29048 * config/rx/rx.h (LIBCALL_VALUE): Likewise.
29050 2015-06-08 Jakub Jelinek <jakub@redhat.com>
29052 * genattrtab.c (insn_alternatives): Change type from int *
29054 (check_attr_test): Shift ((uint64_t) 1) instead of 1 up.
29055 (get_attr_value): Change type of num_alt to uint64_t.
29056 (compute_alternative_mask): Change return type from
29057 int to uint64_t, shift ((uint64_t) 1) instead of 1 up.
29058 (make_alternative_compare, mk_attr_alt): Change argument type
29059 from int to uint64_t.
29060 (simplify_test_exp): Change type of i from int to uint64_t.
29061 Shift ((uint64_t) 1) instead of 1 up.
29062 (main): Adjust oballocvec first argument from int to uint64_t.
29063 Shift ((uint64_t) 1) instead of 1 up.
29065 2015-06-08 Jan Kratochvil <jan.kratochvil@redhat.com>
29068 * gdbhooks.py: Import sys.
29069 (intptr): New function. Replace int(...) by intptr(...).
29071 2015-06-08 Richard Biener <rguenther@suse.de>
29073 * tree-vect-stmts.c (vectorizable_load): Compute the pointer
29074 adjustment for gaps at the end of a SLP load group properly.
29075 * tree-vect-slp.c (vect_supported_load_permutation_p): Allow
29076 all permutations we can generate.
29077 (vect_transform_slp_perm_load): Use the correct group-size.
29079 2015-06-08 Marc Glisse <marc.glisse@inria.fr>
29081 * genmatch.c (expr::gen_transform): For conditions, guess the type
29082 from the second operand.
29084 2015-06-08 Tom de Vries <tom@codesourcery.com>
29086 PR tree-optimization/66442
29087 * gimple-iterator.h (gimple_seq_nondebug_singleton_p): Add function.
29088 * tree-parloops.c (try_transform_to_exit_first_loop_alt): Return false
29089 if the loop latch is not a singleton. Use
29090 gimple_seq_nondebug_singleton_p instead of gimple_seq_singleton_p.
29092 2015-06-08 Marek Polacek <polacek@redhat.com>
29095 * toplev.c (check_global_declaration): Don't warn about artificial
29098 2015-06-08 Tom de Vries <tom@codesourcery.com>
29100 PR tree-optimization/66436
29101 * cgraphunit.c (cgraph_node::analyze): Don't dump function to gimple
29103 * gimplify.c: Add tree-dump.h include.
29104 (gimplify_function_tree): Dump function to gimple dump file.
29105 * stor-layout.c (finalize_size_functions): Don't dump function to gimple
29108 2015-06-08 Tom de Vries <tom@codesourcery.com>
29110 PR tree-optimization/66435
29111 * cgraphunit.c (cgraph_node::add_new_function): Dump message on new
29114 2015-06-06 Jan Hubicka <hubicka@ucw.cz>
29116 * alias.c (get_alias_set): Be ready for TYPE_CANONICAL
29117 of ptr_type_node to not be ptr_to_node.
29118 * tree.c (gimple_types_compatible_p): Do not match TREE_CODE of
29119 TREE_TYPE of pointers.
29120 * gimple-expr.c (useless_type_conversion): Reorder the check for
29121 function pointers and TYPE_CANONICAL.
29123 2015-06-06 John David Anglin <danglin@gcc.gnu.org>
29126 * config/pa/pa-hpux10.h (TARGET_OS_CPP_BUILTINS): Rearrange builtin
29127 defines. Define _LARGEFILE_SOURCE and _LARGEFILE64_SOURCE for c++.
29128 Define _XOPEN_UNIX and _XOPEN_SOURCE_EXTENDED for c++ if unix95 or
29130 * config/pa/pa-hpux11.h (TARGET_OS_CPP_BUILTINS): Likewise.
29131 Define _INCLUDE_STDC_SOURCE_PRE_199901, _INCLUDE_STDC_SOURCE_199901,
29132 _INCLUDE_XOPEN_SOURCE_PRE_500, _INCLUDE_XOPEN_SOURCE_520,
29133 _INCLUDE_XOPEN_SOURCE_PRE_600 and _INCLUDE_XOPEN_SOURCE_600 for c++
29134 and non iso if unix2003.
29136 2015-06-06 Aldy Hernandez <aldyh@redhat.com>
29138 * dwarf2out.c (gen_lexical_block_die): Initialize stmt_die.
29140 2015-06-06 Richard Sandiford <richard.sandiford@arm.com>
29142 * emit-rtl.c, expr.c, gcse.c, optabs.c, optabs.h, print-rtl.c,
29143 rtl.h, bb-reorder.c, builtins.c, calls.c, cfgbuild.c, cfgexpand.c,
29144 cfgrtl.c, cilk-common.c, config/i386/i386.md, cse.c, dwarf2cfi.c,
29145 except.c, final.c, function.c, gcse-common.c, genemit.c,
29146 haifa-sched.c, ifcvt.c, jump.c, loop-invariant.c, loop-iv.c,
29147 lra-constraints.c, lra.c, reload1.c, resource.c, rtlanal.c,
29148 sched-deps.c, sched-ebb.c, sel-sched-ir.c, sel-sched.c,
29149 shrink-wrap.c, stmt.c, store-motion.c: Replace rtx base types with
29152 2015-06-06 Mikhail Maltsev <maltsevm@gmail.com>
29154 * combine.c (combine_split_insns): Remove cast.
29155 * config/bfin/bfin.c (hwloop_fail): Add cast in try_split call.
29156 * config/sh/sh.c (sh_try_split_insn_simple): Remove cast.
29157 * config/sh/sh_treg_combine.cc (sh_treg_combine::execute): Add cast.
29158 * emit-rtl.c (try_split): Promote type of trial argument to rtx_insn.
29159 * genemit.c (gen_split): Change return type of generated functions to
29161 * genrecog.c (get_failure_return): Use NULL instead of NULL_RTX.
29162 (print_subroutine_start): Promote rtx to rtx_insn in gen_split_* and
29163 gen_peephole2_* functions.
29164 (print_subroutine, main): Likewise.
29165 * recog.c (peephole2_optimize): Remove cast.
29166 (peep2_next_insn): Promote return type to rtx_insn.
29167 * recog.h (peep2_next_insn): Fix prototype.
29168 * rtl.h (try_split, split_insns): Likewise.
29170 2015-06-06 DJ Delorie <dj@redhat.com>
29172 * config/msp430/msp430.c (msp430_asm_integer): Support addition
29173 and subtraction too.
29175 2015-06-05 Kaz Kojima <kkojima@gcc.gnu.org>
29178 * config/sh/constraints.md (Sid, Ssd): New memory constraints.
29179 * config/sh/sh.md (*mov<mode>): Use Sid and Ssd alternatives
29180 instead of Snd. Disparage Sid/z alternative with '^'.
29182 2015-06-05 Aldy Hernandez <aldyh@redhat.com>
29184 * dwarf2out.c: Remove deferred_locations*.
29185 (dwarf2_debug_hooks): Add early_finish hook.
29186 Remove global_decl hook.
29187 Add early_global_decl and late_global_decl hook.
29188 New global early_dwarf.
29189 New structure set_early_dwarf.
29190 (output_die): Indicate whether a DIE was generated early
29191 when generating assembly with -dA.
29192 (struct limbo_die_struct): Document created_for field.
29193 Remove file_table_last_lookup.
29194 (remove_AT): Return TRUE if successful.
29195 (remove_child_TAG): Clear die_parent.
29196 (reparent_child): New function abstracted from...
29197 (splice_child_die): ...here.
29198 (new_die): ICE if a DIE ends up in limbo too late.
29200 (defer_location): Remove.
29201 (add_subscript_info): Reuse DW_TAG_subrange_type if available.
29202 (fill_variable_array_bounds): New.
29203 (decl_start_label): Call fill_variable_array_bounds.
29204 (gen_formal_parameter_die): Rewrite to reuse previously generated
29206 (gen_subprogram_die): Same.
29207 (gen_variable_die): Same.
29208 (gen_const_die): Same.
29209 (gen_label_die): Same.
29210 (gen_lexical_block_die): Same.
29211 (decl_will_get_specification_p): New.
29212 (local_function_static): New.
29213 (gen_struct_or_union_type_die): Fill in variable-length fields.
29214 (gen_typedef_die): Fill in variable-length typedefs.
29215 (gen_tagged_type_die): Gracefully return on error_mark_node.
29216 Handle re-entrancy.
29217 (gen_type_die_with_usage): Handle variable-length types.
29218 Remove duplicate code for ARRAY_TYPE case.
29219 (process_scope_var): Only process imported modules during early
29221 (dwarf2out_early_global_decl): New.
29222 (dwarf2out_late_global_decl): Rename from dwarf2out_global_decl.
29223 (dwarf2out_type_decl): Set early_dwarf while calling
29225 (dwarf2out_decl): Verify that we did not recreate a previously
29227 Do not return on DECL_EXTERNALs in VAR_DECLs.
29228 Abstract some code to local_function_static.
29229 (lookup_filename): Remove use of file_table_last_lookup.
29230 Gracefully exit on missing file_name.
29231 (dwarf2out_finish): Verify limbo list.
29232 Remove deferred_locations_list use.
29233 Move deferred_asm_name and limbo flushing to...
29234 (dwarf2out_early_finish): ...here. New.
29235 (dwarf2out_c_finalize): Remove set of deferred_location_list,
29236 deferred_asm_name, and file_table_last_lookup.
29237 * cgraph.h (referred_to_p): Add default argument.
29238 * cgraphunit.c (referred_to_p): Add and handle include_self
29240 (analyze_functions): Add first_time argument.
29241 Call check_global_declaration for all symbols.
29242 Call late_global_decl for nodes for moribund nodes.
29243 (finalize_compilation_unit): Add new argument to
29245 Call early_global_decl for functions.
29246 Call early_finish debug hook.
29247 * dbxout.c (dbxout_early_global_decl): New.
29248 (dbxout_late_global_decl): New. Adapted from dbxout_global_decl.
29249 (dbx_debug_hooks): Add new hooks.
29250 (xcoff_debug_hooks): Same.
29251 * debug.c (do_nothing_debug_hooks): Add early_finish field.
29252 Add early and late debug hooks.
29253 Remove global_decl hook.
29254 * debug.h (struct gcc_debug_hooks): Add early_finish,
29255 early_global_decl, and late_global_decl fields.
29256 Remove global_decl field.
29257 Document gcc_debug_hooks.
29258 * gengtype.c (output_typename): Remove.
29259 * godump.c (go_early_global_decl): New.
29260 (go_late_global_decl): New.
29261 (go_global_decl): Remove.
29262 (dump_go_spec_init): Remove global_decl. Add
29263 {early,late}_global_decl.
29264 * langhooks-def.h (LANG_HOOKS_WRITE_GLOBALS): Remove.
29265 (LANG_HOOKS_POST_COMPILATION_PARSING_CLEANUPS): New.
29266 * langhooks.c (lhd_warn_unused_global_decl): Adjust comment.
29267 (write_global_declarations): Remove.
29268 (global_decl_processing): New.
29269 * langhooks.h (struct lang_hooks_for_decls): Remove
29270 final_write_globals field.
29271 Add post_compilation_parsing_cleanups field.
29272 * passes.c (rest_of_decl_compilation): Call early_global_decl.
29273 * sdbout.c: Add early and late_global_decl hooks. Remove
29274 sdbout_global_decl hook.
29275 Add early_finish field for sdb_debug_hooks.
29276 (sdbout_global_decl): Remove.
29277 (sdbout_early_global_decl): New.
29278 (sdbout_late_global_decl): New.
29279 * timevar.def (TV_PHASE_LATE_PARSING_CLEANUPS): New.
29280 * toplev.c (check_global_declaration): Rename from
29281 check_global_declaration_1.
29282 Adapt to use symtab infrastructure.
29283 (check_global_declarations): Remove.
29284 (emit_debug_global_declarations): Remove.
29285 (compile_file): Remove call to final_write_globals langhook.
29286 Run the actual compilation process.
29287 Perform any post compilation parser cleanups.
29288 Generate late debug info.
29289 * toplev.h (check_global_declaration): New.
29290 (check_global_declaration_1): Remove.
29291 (check_global_declarations): Remove.
29292 (write_global_declarations): Remove.
29293 (emit_debug_global_declarations): Remove.
29294 (global_decl_processing): New.
29295 * tree-core.h (struct tree_block): Add DIE field.
29296 * tree.h (BLOCK_DIE): New.
29297 * vmsdbgout.c (vmsdbgout_global_decl): Remove function and its use
29299 (vmsdbgout_early_global_decl): New.
29300 (vmsdbgout_late_global_decl): New.
29301 Add early_finish debug hook field to vmsdbg_debug_hooks.
29302 Remove vmsdbgout_decl to vmsdbgout_function_decl.
29303 Add early and late_global_decl debug hooks.
29305 2015-06-05 Julian Brown <julian@codesourcery.com>
29306 Sandra Loosemore <sandra@codesourcery.com>
29308 * config/print-sysroot-suffix.sh: Handle MULTILIB_REUSE settings.
29309 * config/t-sysroot-suffix (sysroot-suffix.h): Pass MULTILIB_REUSE
29310 to print-sysroot-suffix.sh script.
29312 2015-06-05 Tom de Vries <tom@codesourcery.com>
29314 merge from gomp4 branch:
29315 2015-05-28 Tom de Vries <tom@codesourcery.com>
29317 PR tree-optimization/65443
29318 * tree-parloops.c (replace_imm_uses, replace_uses_in_bb_by)
29319 (replace_uses_in_bbs_by, transform_to_exit_first_loop_alt)
29320 (try_transform_to_exit_first_loop_alt): New function.
29321 (transform_to_exit_first_loop): Use
29322 try_transform_to_exit_first_loop_alt.
29324 2015-06-05 James Greenhalgh <james.greenhalgh@arm.com>
29326 * builtins.c (expand_builtin_atomic_compare_exchange): Call
29327 emit_cmp_and_jump_insns with the mode of target.
29329 2015-06-05 Venkataramanan Kumar <venkataramanan.kumar@amd.com>
29331 * config/i386/sse.md (sse3_mwait): Swap the operand constriants.
29333 2015-06-04 DJ Delorie <dj@redhat.com>
29335 * config/msp430/msp430.md (movsi_s): New. Special case for
29336 storing a 20-bit symbol into a 32-bit register.
29337 * config/msp430/msp430.c (msp430_subreg): Add support for it.
29338 * config/msp430/predicates.md (msp430_symbol_operand): New.
29340 2015-06-04 Sriraman Tallam <tmsriram@google.com>
29342 * calls.c (prepare_call_address): Check for noplt
29344 * config/i386/i386.c (ix86_expand_call): Check
29345 for noplt attribute.
29346 (ix86_nopic_noplt_attribute_p): New function.
29347 (ix86_output_call_insn): Output indirect call for non-pic
29349 * doc/extend.texi (noplt): Document new attribute.
29350 * doc/invoke.texi: Document new attribute.
29352 2015-06-04 Andrew MacLeod <amacleod@redhat.com>
29354 * coretypes.h: Include machmode.h, signop.h, wide-int.h, double-int.h,
29355 real.h, and fixed-value.h when included in host source files.
29356 * double-int.h: Remove redundant #includes listed above.
29357 * fixed-value.h: Likewise.
29358 * real.h: Likewise.
29359 * wide-int.h: Likewise.
29360 * inchash.h: Likewise.
29361 * rtl.h: Add some include files When included from a generator file.
29362 * target.h: Remove wide-int.h and insn-modes.h from the include list.
29363 * internal-fn.h: Don't include coretypes.h.
29364 * alias.c: Adjust includes for restructured coretypes.h.
29365 * asan.c: Likewise.
29366 * attribs.c: Likewise.
29367 * auto-inc-dec.c: Likewise.
29368 * auto-profile.c: Likewise.
29369 * bb-reorder.c: Likewise.
29370 * bt-load.c: Likewise.
29371 * builtins.c: Likewise.
29372 * caller-save.c: Likewise.
29373 * calls.c: Likewise.
29374 * ccmp.c: Likewise.
29376 * cfganal.c: Likewise.
29377 * cfgbuild.c: Likewise.
29378 * cfgcleanup.c: Likewise.
29379 * cfgexpand.c: Likewise.
29380 * cfghooks.c: Likewise.
29381 * cfgloop.c: Likewise.
29382 * cfgloop.h: Likewise.
29383 * cfgloopanal.c: Likewise.
29384 * cfgloopmanip.c: Likewise.
29385 * cfgrtl.c: Likewise.
29386 * cgraph.c: Likewise.
29387 * cgraphbuild.c: Likewise.
29388 * cgraphclones.c: Likewise.
29389 * cgraphunit.c: Likewise.
29390 * cilk-common.c: Likewise.
29391 * combine-stack-adj.c: Likewise.
29392 * combine.c: Likewise.
29393 * compare-elim.c: Likewise.
29394 * convert.c: Likewise.
29395 * coverage.c: Likewise.
29396 * cppbuiltin.c: Likewise.
29397 * cprop.c: Likewise.
29399 * cselib.c: Likewise.
29400 * data-streamer-in.c: Likewise.
29401 * data-streamer-out.c: Likewise.
29402 * data-streamer.c: Likewise.
29403 * dbxout.c: Likewise.
29406 * debug.c: Likewise.
29407 * df-core.c: Likewise.
29408 * df-problems.c: Likewise.
29409 * df-scan.c: Likewise.
29412 * dojump.c: Likewise.
29413 * dominance.c: Likewise.
29414 * domwalk.c: Likewise.
29415 * double-int.c: Likewise.
29417 * dumpfile.c: Likewise.
29418 * dwarf2asm.c: Likewise.
29419 * dwarf2cfi.c: Likewise.
29420 * dwarf2out.c: Likewise.
29421 * dwarf2out.h: Likewise.
29422 * emit-rtl.c: Likewise.
29423 * et-forest.c: Likewise.
29424 * except.c: Likewise.
29425 * explow.c: Likewise.
29426 * expmed.c: Likewise.
29427 * expr.c: Likewise.
29428 * final.c: Likewise.
29429 * fixed-value.c: Likewise.
29430 * fold-const.c: Likewise.
29431 * function.c: Likewise.
29432 * fwprop.c: Likewise.
29433 * gcc-plugin.h: Likewise.
29434 * gcse.c: Likewise.
29435 * generic-match-head.c: Likewise.
29436 * ggc-page.c: Likewise.
29437 * gimple-builder.c: Likewise.
29438 * gimple-expr.c: Likewise.
29439 * gimple-fold.c: Likewise.
29440 * gimple-iterator.c: Likewise.
29441 * gimple-low.c: Likewise.
29442 * gimple-match-head.c: Likewise.
29443 * gimple-pretty-print.c: Likewise.
29444 * gimple-ssa-isolate-paths.c: Likewise.
29445 * gimple-ssa-strength-reduction.c: Likewise.
29446 * gimple-streamer-in.c: Likewise.
29447 * gimple-streamer-out.c: Likewise.
29448 * gimple-streamer.h: Likewise.
29449 * gimple-walk.c: Likewise.
29450 * gimple.c: Likewise.
29451 * gimplify-me.c: Likewise.
29452 * gimplify.c: Likewise.
29453 * godump.c: Likewise.
29454 * graph.c: Likewise.
29455 * graphite-blocking.c: Likewise.
29456 * graphite-dependences.c: Likewise.
29457 * graphite-interchange.c: Likewise.
29458 * graphite-isl-ast-to-gimple.c: Likewise.
29459 * graphite-optimize-isl.c: Likewise.
29460 * graphite-poly.c: Likewise.
29461 * graphite-scop-detection.c: Likewise.
29462 * graphite-sese-to-poly.c: Likewise.
29463 * graphite.c: Likewise.
29464 * haifa-sched.c: Likewise.
29465 * hooks.h: Likewise.
29466 * hw-doloop.c: Likewise.
29467 * ifcvt.c: Likewise.
29468 * incpath.c: Likewise.
29469 * init-regs.c: Likewise.
29470 * internal-fn.c: Likewise.
29471 * ipa-chkp.c: Likewise.
29472 * ipa-comdats.c: Likewise.
29473 * ipa-cp.c: Likewise.
29474 * ipa-devirt.c: Likewise.
29475 * ipa-icf-gimple.c: Likewise.
29476 * ipa-icf.c: Likewise.
29477 * ipa-inline-analysis.c: Likewise.
29478 * ipa-inline-transform.c: Likewise.
29479 * ipa-inline.c: Likewise.
29480 * ipa-polymorphic-call.c: Likewise.
29481 * ipa-profile.c: Likewise.
29482 * ipa-prop.c: Likewise.
29483 * ipa-pure-const.c: Likewise.
29484 * ipa-ref.c: Likewise.
29485 * ipa-reference.c: Likewise.
29486 * ipa-split.c: Likewise.
29487 * ipa-utils.c: Likewise.
29488 * ipa-visibility.c: Likewise.
29490 * ira-build.c: Likewise.
29491 * ira-color.c: Likewise.
29492 * ira-conflicts.c: Likewise.
29493 * ira-costs.c: Likewise.
29494 * ira-emit.c: Likewise.
29495 * ira-lives.c: Likewise.
29497 * jump.c: Likewise.
29498 * langhooks.c: Likewise.
29500 * loop-doloop.c: Likewise.
29501 * loop-init.c: Likewise.
29502 * loop-invariant.c: Likewise.
29503 * loop-iv.c: Likewise.
29504 * loop-unroll.c: Likewise.
29505 * lower-subreg.c: Likewise.
29506 * lra-assigns.c: Likewise.
29507 * lra-coalesce.c: Likewise.
29508 * lra-constraints.c: Likewise.
29509 * lra-eliminations.c: Likewise.
29510 * lra-lives.c: Likewise.
29511 * lra-remat.c: Likewise.
29512 * lra-spills.c: Likewise.
29514 * lto-cgraph.c: Likewise.
29515 * lto-compress.c: Likewise.
29516 * lto-opts.c: Likewise.
29517 * lto-section-in.c: Likewise.
29518 * lto-section-out.c: Likewise.
29519 * lto-streamer-in.c: Likewise.
29520 * lto-streamer-out.c: Likewise.
29521 * lto-streamer.c: Likewise.
29523 * mode-switching.c: Likewise.
29524 * modulo-sched.c: Likewise.
29525 * omega.c: Likewise.
29526 * omp-low.c: Likewise.
29527 * optabs.c: Likewise.
29528 * opts-global.c: Likewise.
29529 * passes.c: Likewise.
29530 * plugin.c: Likewise.
29531 * postreload-gcse.c: Likewise.
29532 * postreload.c: Likewise.
29533 * predict.c: Likewise.
29534 * print-rtl.c: Likewise.
29535 * print-tree.c: Likewise.
29536 * profile.c: Likewise.
29537 * real.c: Likewise.
29538 * realmpfr.c: Likewise.
29539 * realmpfr.h: Likewise.
29540 * recog.c: Likewise.
29542 * reg-stack.c: Likewise.
29543 * regcprop.c: Likewise.
29544 * reginfo.c: Likewise.
29545 * regrename.c: Likewise.
29546 * regs.h: Likewise.
29547 * regstat.c: Likewise.
29548 * reload.c: Likewise.
29549 * reload1.c: Likewise.
29550 * reorg.c: Likewise.
29551 * resource.c: Likewise.
29552 * rtl-chkp.c: Likewise.
29553 * rtlanal.c: Likewise.
29554 * rtlhooks.c: Likewise.
29555 * sanopt.c: Likewise.
29556 * sched-deps.c: Likewise.
29557 * sched-ebb.c: Likewise.
29558 * sched-rgn.c: Likewise.
29559 * sched-vis.c: Likewise.
29560 * sdbout.c: Likewise.
29561 * sel-sched-dump.c: Likewise.
29562 * sel-sched-ir.c: Likewise.
29563 * sel-sched.c: Likewise.
29564 * sese.c: Likewise.
29565 * shrink-wrap.c: Likewise.
29566 * shrink-wrap.h: Likewise.
29567 * simplify-rtx.c: Likewise.
29568 * stack-ptr-mod.c: Likewise.
29569 * statistics.c: Likewise.
29570 * stmt.c: Likewise.
29571 * stor-layout.c: Likewise.
29572 * store-motion.c: Likewise.
29573 * stringpool.c: Likewise.
29574 * symtab.c: Likewise.
29575 * target-globals.c: Likewise.
29576 * targhooks.c: Likewise.
29577 * toplev.c: Likewise.
29578 * tracer.c: Likewise.
29579 * trans-mem.c: Likewise.
29580 * tree-affine.c: Likewise.
29581 * tree-affine.h: Likewise.
29582 * tree-browser.c: Likewise.
29583 * tree-call-cdce.c: Likewise.
29584 * tree-cfg.c: Likewise.
29585 * tree-cfgcleanup.c: Likewise.
29586 * tree-chkp-opt.c: Likewise.
29587 * tree-chkp.c: Likewise.
29588 * tree-chrec.c: Likewise.
29589 * tree-complex.c: Likewise.
29590 * tree-data-ref.c: Likewise.
29591 * tree-dfa.c: Likewise.
29592 * tree-diagnostic.c: Likewise.
29593 * tree-dump.c: Likewise.
29594 * tree-eh.c: Likewise.
29595 * tree-emutls.c: Likewise.
29596 * tree-if-conv.c: Likewise.
29597 * tree-inline.c: Likewise.
29598 * tree-into-ssa.c: Likewise.
29599 * tree-iterator.c: Likewise.
29600 * tree-loop-distribution.c: Likewise.
29601 * tree-nested.c: Likewise.
29602 * tree-nrv.c: Likewise.
29603 * tree-object-size.c: Likewise.
29604 * tree-outof-ssa.c: Likewise.
29605 * tree-parloops.c: Likewise.
29606 * tree-phinodes.c: Likewise.
29607 * tree-predcom.c: Likewise.
29608 * tree-pretty-print.c: Likewise.
29609 * tree-pretty-print.h: Likewise.
29610 * tree-profile.c: Likewise.
29611 * tree-scalar-evolution.c: Likewise.
29612 * tree-sra.c: Likewise.
29613 * tree-ssa-address.c: Likewise.
29614 * tree-ssa-alias.c: Likewise.
29615 * tree-ssa-ccp.c: Likewise.
29616 * tree-ssa-coalesce.c: Likewise.
29617 * tree-ssa-copy.c: Likewise.
29618 * tree-ssa-copyrename.c: Likewise.
29619 * tree-ssa-dce.c: Likewise.
29620 * tree-ssa-dom.c: Likewise.
29621 * tree-ssa-dse.c: Likewise.
29622 * tree-ssa-forwprop.c: Likewise.
29623 * tree-ssa-ifcombine.c: Likewise.
29624 * tree-ssa-live.c: Likewise.
29625 * tree-ssa-loop-ch.c: Likewise.
29626 * tree-ssa-loop-im.c: Likewise.
29627 * tree-ssa-loop-ivcanon.c: Likewise.
29628 * tree-ssa-loop-ivopts.c: Likewise.
29629 * tree-ssa-loop-manip.c: Likewise.
29630 * tree-ssa-loop-niter.c: Likewise.
29631 * tree-ssa-loop-prefetch.c: Likewise.
29632 * tree-ssa-loop-unswitch.c: Likewise.
29633 * tree-ssa-loop.c: Likewise.
29634 * tree-ssa-loop.h: Likewise.
29635 * tree-ssa-math-opts.c: Likewise.
29636 * tree-ssa-operands.c: Likewise.
29637 * tree-ssa-phiopt.c: Likewise.
29638 * tree-ssa-phiprop.c: Likewise.
29639 * tree-ssa-pre.c: Likewise.
29640 * tree-ssa-propagate.c: Likewise.
29641 * tree-ssa-reassoc.c: Likewise.
29642 * tree-ssa-sccvn.c: Likewise.
29643 * tree-ssa-scopedtables.c: Likewise.
29644 * tree-ssa-sink.c: Likewise.
29645 * tree-ssa-strlen.c: Likewise.
29646 * tree-ssa-structalias.c: Likewise.
29647 * tree-ssa-tail-merge.c: Likewise.
29648 * tree-ssa-ter.c: Likewise.
29649 * tree-ssa-threadedge.c: Likewise.
29650 * tree-ssa-threadupdate.c: Likewise.
29651 * tree-ssa-uncprop.c: Likewise.
29652 * tree-ssa-uninit.c: Likewise.
29653 * tree-ssa.c: Likewise.
29654 * tree-ssanames.c: Likewise.
29655 * tree-stdarg.c: Likewise.
29656 * tree-streamer-in.c: Likewise.
29657 * tree-streamer-out.c: Likewise.
29658 * tree-streamer.c: Likewise.
29659 * tree-switch-conversion.c: Likewise.
29660 * tree-tailcall.c: Likewise.
29661 * tree-vect-data-refs.c: Likewise.
29662 * tree-vect-generic.c: Likewise.
29663 * tree-vect-loop-manip.c: Likewise.
29664 * tree-vect-loop.c: Likewise.
29665 * tree-vect-patterns.c: Likewise.
29666 * tree-vect-slp.c: Likewise.
29667 * tree-vect-stmts.c: Likewise.
29668 * tree-vectorizer.c: Likewise.
29669 * tree-vrp.c: Likewise.
29670 * tree.c: Likewise.
29671 * tsan.c: Likewise.
29672 * ubsan.c: Likewise.
29673 * valtrack.c: Likewise.
29674 * value-prof.c: Likewise.
29675 * var-tracking.c: Likewise.
29676 * varasm.c: Likewise.
29677 * varpool.c: Likewise.
29678 * vmsdbgout.c: Likewise.
29679 * vtable-verify.c: Likewise.
29681 * wide-int-print.cc: Likewise.
29682 * wide-int-print.h: Likewise.
29683 * wide-int.cc: Likewise.
29684 * xcoffout.c: Likewise.
29685 * config/aarch64/aarch64-builtins.c: Likewise.
29686 * config/aarch64/aarch64.c: Likewise.
29687 * config/aarch64/cortex-a57-fma-steering.c: Likewise.
29688 * config/alpha/alpha.c: Likewise.
29689 * config/arc/arc.c: Likewise.
29690 * config/arm/aarch-common.c: Likewise.
29691 * config/arm/arm-builtins.c: Likewise.
29692 * config/arm/arm-c.c: Likewise.
29693 * config/arm/arm.c: Likewise.
29694 * config/avr/avr-c.c: Likewise.
29695 * config/avr/avr-log.c: Likewise.
29696 * config/avr/avr.c: Likewise.
29697 * config/bfin/bfin.c: Likewise.
29698 * config/c6x/c6x.c: Likewise.
29699 * config/cr16/cr16.c: Likewise.
29700 * config/cris/cris.c: Likewise.
29701 * config/darwin-c.c: Likewise.
29702 * config/darwin.c: Likewise.
29703 * config/default-c.c: Likewise.
29704 * config/epiphany/epiphany.c: Likewise.
29705 * config/epiphany/mode-switch-use.c: Likewise.
29706 * config/epiphany/resolve-sw-modes.c: Likewise.
29707 * config/fr30/fr30.c: Likewise.
29708 * config/frv/frv.c: Likewise.
29709 * config/ft32/ft32.c: Likewise.
29710 * config/glibc-c.c: Likewise.
29711 * config/h8300/h8300.c: Likewise.
29712 * config/i386/i386-c.c: Likewise.
29713 * config/i386/i386.c: Likewise.
29714 * config/i386/msformat-c.c: Likewise.
29715 * config/i386/winnt-cxx.c: Likewise.
29716 * config/i386/winnt-stubs.c: Likewise.
29717 * config/i386/winnt.c: Likewise.
29718 * config/ia64/ia64-c.c: Likewise.
29719 * config/ia64/ia64.c: Likewise.
29720 * config/iq2000/iq2000.c: Likewise.
29721 * config/lm32/lm32.c: Likewise.
29722 * config/m32c/m32c-pragma.c: Likewise.
29723 * config/m32c/m32c.c: Likewise.
29724 * config/m32r/m32r.c: Likewise.
29725 * config/m68k/m68k.c: Likewise.
29726 * config/mcore/mcore.c: Likewise.
29727 * config/mep/mep-pragma.c: Likewise.
29728 * config/mep/mep.c: Likewise.
29729 * config/microblaze/microblaze-c.c: Likewise.
29730 * config/microblaze/microblaze.c: Likewise.
29731 * config/mips/mips.c: Likewise.
29732 * config/mmix/mmix.c: Likewise.
29733 * config/mn10300/mn10300.c: Likewise.
29734 * config/moxie/moxie.c: Likewise.
29735 * config/msp430/msp430-c.c: Likewise.
29736 * config/msp430/msp430.c: Likewise.
29737 * config/nds32/nds32-cost.c: Likewise.
29738 * config/nds32/nds32-fp-as-gp.c: Likewise.
29739 * config/nds32/nds32-intrinsic.c: Likewise.
29740 * config/nds32/nds32-isr.c: Likewise.
29741 * config/nds32/nds32-md-auxiliary.c: Likewise.
29742 * config/nds32/nds32-memory-manipulation.c: Likewise.
29743 * config/nds32/nds32-pipelines-auxiliary.c: Likewise.
29744 * config/nds32/nds32-predicates.c: Likewise.
29745 * config/nds32/nds32.c: Likewise.
29746 * config/nios2/nios2.c: Likewise.
29747 * config/nvptx/nvptx.c: Likewise.
29748 * config/pa/pa.c: Likewise.
29749 * config/pdp11/pdp11.c: Likewise.
29750 * config/rl78/rl78-c.c: Likewise.
29751 * config/rl78/rl78.c: Likewise.
29752 * config/rs6000/rs6000-c.c: Likewise.
29753 * config/rs6000/rs6000.c: Likewise.
29754 * config/rx/rx.c: Likewise.
29755 * config/s390/s390-c.c: Likewise.
29756 * config/s390/s390.c: Likewise.
29757 * config/sh/sh-c.c: Likewise.
29758 * config/sh/sh-mem.cc: Likewise.
29759 * config/sh/sh.c: Likewise.
29760 * config/sh/sh_optimize_sett_clrt.cc: Likewise.
29761 * config/sh/sh_treg_combine.cc: Likewise.
29762 * config/sol2-c.c: Likewise.
29763 * config/sol2-cxx.c: Likewise.
29764 * config/sol2-stubs.c: Likewise.
29765 * config/sol2.c: Likewise.
29766 * config/sparc/sparc-c.c: Likewise.
29767 * config/sparc/sparc.c: Likewise.
29768 * config/spu/spu-c.c: Likewise.
29769 * config/spu/spu.c: Likewise.
29770 * config/stormy16/stormy16.c: Likewise.
29771 * config/tilegx/mul-tables.c: Likewise.
29772 * config/tilegx/tilegx-c.c: Likewise.
29773 * config/tilegx/tilegx.c: Likewise.
29774 * config/tilepro/mul-tables.c: Likewise.
29775 * config/tilepro/tilepro-c.c: Likewise.
29776 * config/tilepro/tilepro.c: Likewise.
29777 * config/v850/v850-c.c: Likewise.
29778 * config/v850/v850.c: Likewise.
29779 * config/vax/vax.c: Likewise.
29780 * config/visium/visium.c: Likewise.
29781 * config/vms/vms-c.c: Likewise.
29782 * config/vms/vms.c: Likewise.
29783 * config/vxworks.c: Likewise.
29784 * config/winnt-c.c: Likewise.
29785 * config/xtensa/xtensa.c: Likewise.
29786 * common/config/bfin/bfin-common.c: Likewise.
29788 2015-06-04 Jan Hubicka <hubicka@ucw.cz>
29790 * tree.h (tree_code_for_canonical_type_merging): New function.
29791 * tree.c (gimple_canonical_types_compatible_p): Use
29792 tree_code_for_canonical_type_merging..
29794 2015-06-04 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
29798 * doc/tm.texi: Regenerate.
29799 * doc/tm.texi.in (TARGET_RELAXED_ORDERING): Delete.
29800 * target.def (TARGET_RELAXED_ORDERING): Likewise.
29801 * config/alpha/alpha.c (TARGET_RELAXED_ORDERING): Likewise.
29802 * config/ia64/ia64.c (TARGET_RELAXED_ORDERING): Likewise.
29803 * config/rs6000/rs6000.c (TARGET_RELAXED_ORDERING): Likewise.
29804 * config/sparc/linux.h (SPARC_RELAXED_ORDERING): Likewise.
29805 * config/sparc/linux64.h (SPARC_RELAXED_ORDERING): Likewise.
29806 * config/sparc/sparc.c (TARGET_RELAXED_ORDERING): Likewise.
29807 * config/sparc/sparc.h (SPARC_RELAXED_ORDERING): Likewise.
29809 2015-06-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
29811 * config/aarch64/aarch64.c (aarch64_override_options): Unconditionally
29812 register fma steering pass.
29813 * config/aarch64/cortex-a57-fma-steering.c (gate): Add gating on
29814 AARCH64_TUNE_FMA_STEERING.
29816 2015-06-03 Jan Hubicka <hubicka@ucw.cz>
29818 * tree.c (verify_type_variant): Verify that type and variant is
29820 (gimple_canonical_types_compatible_p): Look for main variants.
29822 2015-06-03 Michael Meissner <meissner@linux.vnet.ibm.com>
29824 * config.gcc (powerpc*-*-*): Add support for a new configure
29825 option --with-advance-toolchain=<xxx> which overrides using the
29826 default header files, libraries and dynamic linker.
29828 * config/rs6000/linux64.h (SUBSUBTARGET_EXTRA_SPECS): Add new
29829 specs to support the configure --with-advance-toolchain=<xxx>
29831 (INCLUDE_EXTRA_SPEC): Likewise.
29832 (LINK_OS_EXTRA_SPEC32): Likewise.
29833 (LINK_OK_EXTRA_SPEC64): Likewise.
29834 (LINK_OS_NEW_DTAGS_SPEC): Likewise.
29835 (DYNAMIC_LINKER_PREFIX): Likewise.
29836 (CPP_OS_DEFAULT_SPEC): Use the new specs for providing advance
29838 (GLIBC_DYNAMIC_LINKER32): Likewise.
29839 (GLIBC_DYNAMIC_LINKER64): Likewise.
29840 (LINK_OS_LINUX_SPEC32): Likewise.
29841 (LINK_OS_LINUX_SPEC64): Likewise.
29843 * doc/install.texi (--enable-advance-toolchain=<xx>): Document new
29844 configuration option.
29846 2015-06-03 Uros Bizjak <ubizjak@gmail.com>
29849 * config/i386/i386.c (ix86_function_arg_regno): Use ix86_cfun_abi
29850 to determine current function ABI.
29851 (ix86_function_value_regno_p): Ditto.
29853 2015-06-03 Martin Liska <mliska@suse.cz>
29855 * alloc-pool.h (struct pool_usage): Correct GNU coding style.
29856 * bitmap.h (struct bitmap_usage): Likewise.
29857 * ggc-common.c (struct ggc_usage): Likewise.
29858 * mem-stats.h (struct mem_location): Likewise.
29859 (struct mem_usage): Likewise.
29860 * vec.c (struct vec_usage): Likewise.
29862 2015-06-03 Benigno B. Junior <bbj@gentoo.org>
29864 * config/netbsd-elf.h (NETBSD_LINK_SPEC_ELF): Turn -symbolic into
29867 2015-06-02 Andres Tiraboschi <andres.tiraboschi@tallertechnologies.com>
29869 * doc/plugins.texi (enum plugin_event): New event.
29870 * plugin.c (register_callback): Handle PLUGIN_START_PARSE_FUNCTION
29871 and PLUGIN_FINISH_FUNCTION.
29872 * plugin.def (PLUGIN_START_PARSE_FUNCTION): Add plugin event
29873 (PLUGIN_FINISH_PARSE_FUNCTION): Likewise.
29875 2015-06-03 Richard Biener <rguenther@suse.de>
29877 * tree-vect-data-refs.c (vect_analyze_group_access): Properly
29878 compute GROUP_GAP for the first element.
29879 * tree-vect-slp.c (vect_build_slp_tree_1): Remove restriction
29882 2015-06-03 Nick Clifton <nickc@redhat.com>
29884 * config/rl78/rl78-real.md: Add peepholes to avoid a register
29885 copy when calling a function.
29886 * config/rl78/rl78.c (need_to_save): Do not push the frame
29887 pointer in an interrupt handler prologue if it is never used.
29889 2015-06-03 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
29891 * ifcvt (end_ifcvt_sequence): Fix typo in comment above.
29893 2015-06-03 Ilya Enkovich <ilya.enkovich@intel.com>
29895 * ipa-chkp.c (chkp_maybe_create_clone): Create alias
29896 reference when cloning alias node.
29898 2015-06-03 Martin Liska <mliska@suse.cz>
29900 * alloc-pool.h (struct pool_usage): Correct space padding.
29901 * ggc-page.c (ggc_print_statistics): Align columns in a report.
29902 * mem-stats.h (struct mem_usage): Add argument to print_dash_line.
29903 * tree.c (dump_tree_statistics): Align columns in a report.
29905 2015-06-03 Martin Liska <mliska@suse.cz>
29907 * alloc-pool.c (allocate_pool_descriptor): Remove.
29908 (struct pool_output_info): Likewise.
29909 (print_alloc_pool_statistics): Likewise.
29910 (dump_alloc_pool_statistics): Likewise.
29911 * alloc-pool.h (struct pool_usage): New struct.
29912 (pool_allocator::initialize): Change usage of memory statistics
29913 to a new interface.
29914 (pool_allocator::release): Likewise.
29915 (pool_allocator::allocate): Likewise.
29916 (pool_allocator::remove): Likewise.
29917 * mem-stats-traits.h (enum mem_alloc_origin): Add new enum value
29918 for a pool allocator.
29919 * mem-stats.h (struct mem_location): Add new ctor.
29920 (struct mem_usage): Add counter for number of
29922 (mem_alloc_description::register_descriptor): New overload of
29923 * mem-stats.h (mem_location::to_string): New function.
29924 * bitmap.h (struct bitmap_usage): Use this new function.
29925 * ggc-common.c (struct ggc_usage): Likewise.
29928 2015-06-03 Richard Sandiford <richard.sandiford@arm.com>
29930 * defaults.h (SWITCHABLE_TARGET, TARGET_SUPPORTS_WIDE_INT): Move out
29931 of GCC_INSN_FLAGS_H block.
29933 2015-06-03 Andrew Bennett <andrew.bennett@imgtec.com>
29935 * explow.c (plus_constant): Update check after force_const_mem call
29936 to see if the value returned is not a NULL_RTX.
29938 2015-06-03 Ilya Enkovich <ilya.enkovich@intel.com>
29940 * ipa.c (symbol_table::remove_unreachable_nodes): Don't
29941 remove instumentation thunks calling reachable functions.
29942 * lto-cgraph.c (output_refs): Always output IPA_REF_CHKP.
29943 * lto/lto-partition.c (privatize_symbol_name_1): New.
29944 (privatize_symbol_name): Privatize both decl and orig_decl
29945 names for instrumented functions.
29946 * cgraph.c (cgraph_node::verify_node): Add transparent
29947 alias chain check for instrumented node.
29949 2015-06-03 Marek Polacek <polacek@redhat.com>
29953 * tree.c (attribute_value_equal): Handle attribute format.
29954 (cmp_attrib_identifiers): Factor out of lookup_ident_attribute.
29956 2015-06-03 Richard Biener <rguenther@suse.de>
29958 PR tree-optimization/63916
29959 * tree-ssa-sccvn.c (vn_reference_maybe_forwprop_address):
29960 Forward-propagate non-invariant addresses by splicing their
29961 reference ops if the result isn't going to be used by PRE.
29962 (vn_reference_lookup_3): Remove pointless assert.
29964 2015-06-03 Richard Biener <rguenther@suse.de>
29966 PR tree-optimization/66375
29967 * tree-scalar-evolution.c (follow_ssa_edge_binary): First
29968 add to the evolution before following SSA edges.
29970 2015-06-03 Bin Cheng <bin.cheng@arm.com>
29972 * tree-ssa-loop-ivopts.c (dump_iv): New parameter.
29973 (dump_use, dump_cand, find_induction_variables): Pass new argument
29975 (record_use): Preserve the ssa name information in IV.
29977 2015-06-03 Richard Sandiford <richard.sandiford@arm.com>
29979 * genpreds.c (mark_mode_tests): Mark all MATCH_CODEs as
29981 (add_mode_tests): Don't add mode tests if the predicate only
29982 accepts scalar constant integers. Otherwise, allow the mode
29983 of "op" to be VOIDmode if the predicate does accept such integers.
29985 2015-06-02 Jim Wilson <jim.wilson@linaro.org>
29988 * config/aarch64/aarch64.c (aarch64_function_value_regno_p): Change
29989 !TARGET_GENERAL_REGS_ONLY to TARGET_FLOAT.
29990 (aarch64_secondary_reload): Likewise
29991 (aarch64_expand_builtin_va_start): Change TARGET_GENERAL_REGS_ONLY
29993 (aarch64_gimplify_va_arg_expr, aarch64_setup_incoming_varargs):
29996 2015-06-03 Kugan Vivekanandarajah <kuganv@linaro.org>
29997 Zhenqiang Chen <zhenqiang.chen@linaro.org>
30000 * cprop.c (try_replace_reg): Check cost of constants before propagating.
30002 2015-06-02 Michael Meissner <meissner@linux.vnet.ibm.com>
30004 * config/rs6000/rs6000-modes.def (IFmode): Define IFmode to
30005 provide access to the IBM extended double floating point mode if
30006 long double is IEEE 128-bit floating point.
30007 (KFmode): Define KFmode to provide access to IEEE 128-bit floating
30008 point if long double is the IBM extended double type.
30010 * config/rs6000/rs6000.opt (-mfloat128-none): New switches to
30011 enable adding IEEE 128-bit floating point support.
30012 (-mfloat128-software): Likewise.
30013 (-mfloat128-sw): Likewise.
30015 * config/rs6000/rs6000.c (rs6000_hard_regno_mode_ok): Do not allow
30016 128-bit floating point types to occupy any register if
30017 -mlong-double-64. Do not allow use of IFmode/KFmode unless
30018 -mfloat128-software is enabled.
30019 (rs6000_debug_reg_global): Add IEEE 128-bit floating point debug
30021 (rs6000_option_override_internal): Add -mfloat128-* support.
30022 (rs6000_init_builtins): Setup __ibm128 and __float128 type modes.
30024 * config/rs6000/rs6000.h (rs6000_builtin_type_index): Add ibm128
30025 and float128 type nodes.
30026 (ieee128_float_type_node): Likewise.
30027 (ibm128_float_type_node): Likewise.
30029 2015-06-02 Szabolcs Nagy <szabolcs.nagy@arm.com>
30032 * config/aarch64/geniterators.sh: Rewrite in awk.
30034 2015-06-02 Martin Liska <mliska@suse.cz>
30036 * alloc-pool.h (pool_allocator::pool_allocator): Set implicit
30037 values to avoid -Wmaybe-uninitialized errors.
30039 2015-06-02 Richard Biener <rguenther@suse.de>
30042 * dwarf2out.c (lookup_context_die): New function.
30043 (resolve_addr): Avoid forcing a full DIE for the
30044 target of a DW_TAG_GNU_call_site during late compilation.
30045 Instead create a stub DIE without a type if we have a
30046 context DIE present.
30048 2015-06-02 Uros Bizjak <ubizjak@gmail.com>
30050 * df-scan.c (df_scan_start_dump): Add space between regno and regname.
30052 2015-06-02 Bin Cheng <bin.cheng@arm.com>
30054 PR tree-optimization/48052
30055 * cfgloop.h (struct control_iv): New.
30056 (struct loop): New field control_ivs.
30057 * tree-ssa-loop-niter.c : Include "stor-layout.h".
30058 (number_of_iterations_lt): Set no_overflow information.
30059 (number_of_iterations_exit): Init control iv in niter struct.
30060 (record_control_iv): New.
30061 (estimate_numbers_of_iterations_loop): Call record_control_iv.
30062 (loop_exits_before_overflow): New. Interface factored out of
30063 scev_probably_wraps_p.
30064 (scev_probably_wraps_p): Factor loop niter related code into
30065 loop_exits_before_overflow.
30066 (free_numbers_of_iterations_estimates_loop): Free control ivs.
30067 * tree-ssa-loop-niter.h (free_loop_control_ivs): New.
30069 2015-06-02 Eric Botcazou <ebotcazou@adacore.com>
30071 * gimplify.c (gimplify_modify_expr): Do not create a DECL_DEBUG_EXPR if
30072 the target doesn't belong to the current function.
30074 2015-06-02 Marek Polacek <polacek@redhat.com>
30076 PR middle-end/66345
30077 * gimple-fold.c (gimple_fold_builtin_snprintf): Return false if
30078 get_maxval_strlen does not produce an INTEGER_CST.
30080 2015-06-02 Richard Sandiford <richard.sandiford@arm.com>
30082 * config/arc/constraints.md: Use lower-case names in match_code.
30083 * config/mmix/constraints.md: Likewise.
30085 2015-06-02 Richard Biener <rguenther@suse.de>
30087 PR tree-optimization/65961
30088 * tree-vect-slp.c (vect_get_and_check_slp_defs): Remove bogus
30089 check and clarify dump message.
30090 (vect_build_slp_tree): If all children are built up from scalars
30091 build up the parent from scalars instead.
30092 * tree-vect-stmts.c (vect_is_simple_use): Cleanup.
30094 2015-06-02 Jan Kratochvil <jan.kratochvil@redhat.com>
30097 * gdbhooks.py: Use int(...) instead of long(...). Use print(...)
30098 instead of print ... .
30100 2015-06-02 Alan Modra <amodra@gmail.com>
30102 * config/rs6000/vsx.md (vsx_extract_v4sf): Revert accidental
30105 2015-06-02 Bin Cheng <bin.cheng@arm.com>
30107 PR tree-optimization/52563
30108 PR tree-optimization/62173
30109 * tree-ssa-loop-ivopts.c (struct iv): New field. Reorder fields.
30110 (alloc_iv, set_iv): New parameter.
30111 (determine_biv_step): Delete.
30112 (find_bivs): Inline original determine_biv_step. Pass new
30113 argument to set_iv.
30114 (idx_find_step): Use no_overflow information for conversion.
30115 * tree-scalar-evolution.c (analyze_scalar_evolution_in_loop): Let
30116 resolve_mixers handle folded_casts.
30117 (instantiate_scev_name): Change bool parameter to bool pointer.
30118 (instantiate_scev_poly, instantiate_scev_binary): Ditto.
30119 (instantiate_array_ref, instantiate_scev_not): Ditto.
30120 (instantiate_scev_3, instantiate_scev_2): Ditto.
30121 (instantiate_scev_1, instantiate_scev_r): Ditto.
30122 (instantiate_scev_convert, ): Change parameter. Pass argument
30123 to chrec_convert_aggressive.
30124 (instantiate_scev): Change argument.
30125 (resolve_mixers): New parameter and set it.
30126 (scev_const_prop): New argument.
30127 * tree-scalar-evolution.h (resolve_mixers): New parameter.
30128 * tree-chrec.c (convert_affine_scev): Call chrec_convert instead
30130 (chrec_convert): New parameter. Move definition below.
30131 (chrec_convert_aggressive): New parameter and set it. Call
30132 convert_affine_scev.
30133 * tree-chrec.h (chrec_convert): New parameter.
30134 (chrec_convert_aggressive): Ditto.
30136 2015-06-01 Eric Botcazou <ebotcazou@adacore.com>
30138 * gimplify.c (gimplify_modify_expr_rhs): Use simple test on the size.
30139 * cgraph.c (cgraph_redirect_edge_call_stmt_to_callee): Do not remove
30140 the LHS of a no-return call if its type has variable size.
30141 * tree-cfgcleanup.c (fixup_noreturn_call): Likewise.
30142 * tree-cfg.c (verify_gimple_call): Accept these no-return calls.
30144 2015-06-01 Andreas Tobler <andreast@gcc.gnu.org>
30146 * read-rtl.c: Adapt to use HAVE_DECL_ATOLL instead of HAVE_ATOLL.
30147 * config.in: Regenerate.
30149 2015-06-01 Yuri Rumyantsev <ysrumyan@gmail.com>
30151 * tree-vect-data-refs.c (vect_analyze_data_ref_access): Allow
30152 consecutive accesses within outer-loop with force_vectorize
30153 for references with zero step in inner-loop.
30155 2015-06-01 Vidya Praveen <vidyapraveen@arm.com>
30157 * Makefile.in: Pick up gcov-dump dependencies from gcc/ directory
30158 rather than from gcc/build directory.
30160 2015-06-01 Matthew Wahab <matthew.wahab@arm.com>
30163 * config/aarch64/aarch64.c (aarch64_split_compare_and_swap): Check
30164 for __sync memory models, emit initial loads and final barriers as
30167 2015-06-01 Matthew Wahab <matthew.wahab@arm.com>
30170 * config/aarch64/aarch64.c (aarch64_emit_post_barrier):New.
30171 (aarch64_split_atomic_op): Check for __sync memory models, emit
30172 appropriate initial loads and final barriers.
30174 2015-06-01 Vidya Praveen <vidyapraveen@arm.com>
30176 * Makefile.in: Fix gcov dependencies that should
30177 not point to a build folder.
30179 2015-06-01 Richard Biener <rguenther@suse.de>
30182 2015-05-29 Richard Biener <rguenther@suse.de>
30184 PR tree-optimization/66314
30185 * tree-ssa-threadupdate.c (create_block_for_threading): Add
30186 parameter that says which loop the new block belongs to.
30187 (ssa_create_duplicates): Blocks duplicated for the threaded
30188 path belong to the loop of the thread destination.
30190 2015-06-01 Martin Liska <mliska@suse.cz>
30192 * sched-deps.c: Include pool-alloc.h before
30193 cselib.h header file is included.
30195 2015-06-01 Richard Biener <rguenther@suse.de>
30197 * tree-ssa-structalias.c (ipa_pta_execute): Handle address-taken
30200 2015-06-01 Martin Liska <mliska@suse.cz>
30202 * alloc-pool.h: Add ATTRIBUTE_UNUSED for
30203 a function local variable.
30205 2015-06-01 Martin Liska <mliska@suse.cz>
30207 * alloc-pool.c (create_alloc_pool): Remove.
30208 (empty_alloc_pool): Likewise.
30209 (free_alloc_pool): Likewise.
30210 (free_alloc_pool_if_empty): Likewise.
30211 (pool_alloc): Likewise.
30212 (pool_free): Likewise.
30213 * alloc-pool.h: Remove old declarations.
30215 2015-06-01 Martin Liska <mliska@suse.cz>
30217 * ira-build.c (initiate_allocnos): Use new type-based pool allocator.
30218 (ira_create_object): Likewise.
30219 (ira_create_allocno): Likewise.
30220 (ira_create_live_range): Likewise.
30221 (copy_live_range): Likewise.
30222 (ira_finish_live_range): Likewise.
30223 (ira_free_allocno_costs): Likewise.
30224 (finish_allocno): Likewise.
30225 (finish_allocnos): Likewise.
30226 (initiate_prefs): Likewise.
30227 (ira_create_pref): Likewise.
30228 (finish_pref): Likewise.
30229 (finish_prefs): Likewise.
30230 (initiate_copies): Likewise.
30231 (ira_create_copy): Likewise.
30232 (finish_copy): Likewise.
30233 (finish_copies): Likewise.
30234 (finish_prefs): Likewise.
30236 2015-06-01 Martin Liska <mliska@suse.cz>
30238 * ipa-cp.c (ipcp_value::add_source): Use new type-based pool allocator.
30239 (allocate_and_init_ipcp_value): Likewise.
30240 (ipcp_lattice::add_value): Likewise.
30241 (merge_agg_lats_step): Likewise.
30242 (ipcp_driver): Likewise.
30243 * ipa-prop.c (ipa_free_all_structures_after_ipa_cp): Likewise.
30244 (ipa_free_all_structures_after_iinln): Likewise.
30245 * ipa-prop.h: Likewise.
30247 2015-06-01 Martin Liska <mliska@suse.cz>
30249 * ipa-inline-analysis.c (edge_set_predicate): Use new type-based
30251 (set_hint_predicate): Likewise.
30252 (inline_summary_alloc): Likewise.
30253 (reset_inline_edge_summary): Likewise.
30254 (reset_inline_summary): Likewise.
30255 (set_cond_stmt_execution_predicate): Likewise.
30256 (set_switch_stmt_execution_predicate): Likewise.
30257 (compute_bb_predicates): Likewise.
30258 (estimate_function_body_sizes): Likewise.
30259 (inline_free_summary): Likewise.
30261 2015-06-01 Martin Liska <mliska@suse.cz>
30263 * ipa-prop.c (ipa_set_jf_constant): Use new type-based pool allocator.
30264 (ipa_edge_duplication_hook): Likewise.
30265 (ipa_free_all_structures_after_ipa_cp): Likewise.
30266 (ipa_free_all_structures_after_iinln): Likewise.
30268 2015-06-01 Martin Liska <mliska@suse.cz>
30270 * ipa-profile.c (account_time_size): Use new type-based pool allocator.
30271 (ipa_profile_generate_summary): Likewise.
30272 (ipa_profile_read_summary): Likewise.
30273 (ipa_profile): Likewise.
30275 2015-06-01 Martin Liska <mliska@suse.cz>
30277 * tree-ssa-structalias.c (new_var_info): Use new type-based
30279 (new_constraint): Likewise.
30280 (init_alias_vars): Likewise.
30281 (delete_points_to_sets): Likewise.
30283 2015-06-01 Martin Liska <mliska@suse.cz>
30285 * tree-ssa-strlen.c (new_strinfo): Use new type-based pool allocator.
30286 (free_strinfo): Likewise.
30287 (pass_strlen::execute): Likewise.
30289 2015-06-01 Martin Liska <mliska@suse.cz>
30291 * tree-ssa-sccvn.c (vn_reference_insert): Use new type-based
30293 (vn_reference_insert_pieces): Likewise.
30294 (vn_phi_insert): Likewise.
30295 (visit_reference_op_call): Likewise.
30296 (copy_phi): Likewise.
30297 (copy_reference): Likewise.
30298 (process_scc): Likewise.
30299 (allocate_vn_table): Likewise.
30300 (free_vn_table): Likewise.
30302 2015-06-01 Martin Liska <mliska@suse.cz>
30304 * tree-ssa-reassoc.c (add_to_ops_vec): Use new type-based
30306 (add_repeat_to_ops_vec): Likewise.
30307 (get_ops): Likewise.
30308 (maybe_optimize_range_tests): Likewise.
30309 (init_reassoc): Likewise.
30310 (fini_reassoc): Likewise.
30312 2015-06-01 Martin Liska <mliska@suse.cz>
30314 * tree-ssa-pre.c (get_or_alloc_expr_for_name): Use new type-based
30316 (bitmap_set_new): Likewise.
30317 (get_or_alloc_expr_for_constant): Likewise.
30318 (get_or_alloc_expr_for): Likewise.
30319 (phi_translate_1): Likewise.
30320 (compute_avail): Likewise.
30321 (init_pre): Likewise.
30322 (fini_pre): Likewise.
30324 2015-06-01 Martin Liska <mliska@suse.cz>
30326 * sched-deps.c (create_dep_node): Use new type-based pool allocator.
30327 (delete_dep_node): Likewise.
30328 (create_deps_list): Likewise.
30329 (free_deps_list): Likewise.
30330 (sched_deps_init): Likewise.
30331 (sched_deps_finish): Likewise.
30333 2015-06-01 Martin Liska <mliska@suse.cz>
30335 * regcprop.c (free_debug_insn_changes): Use new type-based
30337 (replace_oldest_value_reg): Likewise.
30338 (pass_cprop_hardreg::execute): Likewise.
30340 2015-06-01 Martin Liska <mliska@suse.cz>
30342 * ira-build.c (initiate_cost_vectors): Use new type-based
30344 (ira_allocate_cost_vector): Likewise.
30345 (ira_free_cost_vector): Likewise.
30346 (finish_cost_vectors): Likewise.
30348 2015-06-01 Martin Liska <mliska@suse.cz>
30350 * sel-sched-ir.c (alloc_sched_pools): Use new type-based
30352 (free_sched_pools): Likewise.
30353 * sel-sched-ir.h (_list_alloc): Likewise.
30354 (_list_remove): Likewise.
30356 2015-06-01 Martin Liska <mliska@suse.cz>
30358 * stmt.c (add_case_node): Use new type-based pool allocator.
30359 (expand_case): Likewise.
30360 (expand_sjlj_dispatch_table): Likewise.
30362 2015-06-01 Martin Liska <mliska@suse.cz>
30364 * tree-ssa-math-opts.c (occ_new): Use new type-based pool allocator.
30365 (free_bb): Likewise.
30366 (pass_cse_reciprocals::execute): Likewise.
30368 2015-06-01 Martin Liska <mliska@suse.cz>
30370 * tree-sra.c (sra_initialize): Use new type-based pool allocator.
30371 (sra_deinitialize) Likewise.
30372 (create_access_1) Likewise.
30373 (build_accesses_from_assign) Likewise.
30374 (create_artificial_child_access) Likewise.
30376 2015-06-01 Martin Liska <mliska@suse.cz>
30378 * dse.c (get_group_info):Use new type-based pool allocator.
30379 (dse_step0) Likewise.
30380 (free_store_info) Likewise.
30381 (delete_dead_store_insn) Likewise.
30382 (free_read_records) Likewise.
30383 (record_store) Likewise.
30384 (replace_read) Likewise.
30385 (check_mem_read_rtx) Likewise.
30386 (scan_insn) Likewise.
30387 (dse_step1) Likewise.
30388 (dse_step7) Likewise.
30390 2015-06-01 Martin Liska <mliska@suse.cz>
30392 * df-scan.c (struct df_scan_problem_data):Use new type-based
30394 (df_scan_free_internal) Likewise.
30395 (df_scan_alloc) Likewise.
30396 (df_grow_reg_info) Likewise.
30397 (df_free_ref) Likewise.
30398 (df_insn_create_insn_record) Likewise.
30399 (df_mw_hardreg_chain_delete) Likewise.
30400 (df_insn_info_delete) Likewise.
30401 (df_free_collection_rec) Likewise.
30402 (df_mw_hardreg_chain_delete_eq_uses) Likewise.
30403 (df_sort_and_compress_mws) Likewise.
30404 (df_ref_create_structure) Likewise.
30405 (df_ref_record) Likewise.
30407 2015-06-01 Martin Liska <mliska@suse.cz>
30409 * df-problems.c (df_chain_create):Use new type-based pool allocator.
30410 (df_chain_unlink_1) Likewise.
30411 (df_chain_unlink) Likewise.
30412 (df_chain_remove_problem) Likewise.
30413 (df_chain_alloc) Likewise.
30414 (df_chain_free) Likewise.
30415 * df.h (struct dataflow) Likewise.
30417 2015-06-01 Martin Liska <mliska@suse.cz>
30419 * cselib.c (new_elt_list):Use new type-based pool allocator.
30420 (new_elt_loc_list) Likewise.
30421 (unchain_one_elt_list) Likewise.
30422 (unchain_one_elt_loc_list) Likewise.
30423 (unchain_one_value) Likewise.
30424 (new_cselib_val) Likewise.
30425 (cselib_init) Likewise.
30426 (cselib_finish) Likewise.
30428 2015-06-01 Martin Liska <mliska@suse.cz>
30430 * config/sh/sh.c (add_constant):Use new type-based pool allocator.
30431 (sh_reorg) Likewise.
30433 2015-06-01 Martin Liska <mliska@suse.cz>
30435 * cfg.c (initialize_original_copy_tables):Use new type-based
30437 (free_original_copy_tables) Likewise.
30438 (copy_original_table_clear) Likewise.
30439 (copy_original_table_set) Likewise.
30441 2015-06-01 Martin Liska <mliska@suse.cz>
30443 * asan.c (asan_mem_ref_get_alloc_pool):Use new type-based
30445 (asan_mem_ref_new) Likewise.
30446 (free_mem_ref_resources) Likewise.
30448 2015-06-01 Martin Liska <mliska@suse.cz>
30450 * var-tracking.c (variable_htab_free):Use new type-based
30452 (attrs_list_clear) Likewise.
30453 (attrs_list_insert) Likewise.
30454 (attrs_list_copy) Likewise.
30455 (shared_hash_unshare) Likewise.
30456 (shared_hash_destroy) Likewise.
30457 (unshare_variable) Likewise.
30458 (var_reg_delete_and_set) Likewise.
30459 (var_reg_delete) Likewise.
30460 (var_regno_delete) Likewise.
30461 (drop_overlapping_mem_locs) Likewise.
30462 (variable_union) Likewise.
30463 (insert_into_intersection) Likewise.
30464 (canonicalize_values_star) Likewise.
30465 (variable_merge_over_cur) Likewise.
30466 (dataflow_set_merge) Likewise.
30467 (remove_duplicate_values) Likewise.
30468 (variable_post_merge_new_vals) Likewise.
30469 (dataflow_set_preserve_mem_locs) Likewise.
30470 (dataflow_set_remove_mem_locs) Likewise.
30471 (variable_from_dropped) Likewise.
30472 (variable_was_changed) Likewise.
30473 (set_slot_part) Likewise.
30474 (clobber_slot_part) Likewise.
30475 (delete_slot_part) Likewise.
30476 (loc_exp_insert_dep) Likewise.
30477 (notify_dependents_of_changed_value) Likewise.
30478 (emit_notes_for_differences_1) Likewise.
30479 (vt_emit_notes) Likewise.
30480 (vt_initialize) Likewise.
30481 (vt_finalize) Likewise.
30483 2015-06-01 Martin Liska <mliska@suse.cz>
30485 * ira-color.c (init_update_cost_records):Use new type-based
30487 (get_update_cost_record) Likewise.
30488 (free_update_cost_record_list) Likewise.
30489 (finish_update_cost_records) Likewise.
30490 (initiate_cost_update) Likewise.
30492 2015-06-01 Martin Liska <mliska@suse.cz>
30494 * lra.c (init_insn_regs): Use new type-based pool allocator.
30495 (new_insn_reg) Likewise.
30496 (free_insn_reg) Likewise.
30497 (free_insn_regs) Likewise.
30498 (finish_insn_regs) Likewise.
30499 (init_insn_recog_data) Likewise.
30500 (init_reg_info) Likewise.
30501 (finish_reg_info) Likewise.
30502 (lra_free_copies) Likewise.
30503 (lra_create_copy) Likewise.
30504 (invalidate_insn_data_regno_info) Likewise.
30506 2015-06-01 Martin Liska <mliska@suse.cz>
30508 * lra-lives.c (free_live_range): Use new type-based pool allocator.
30509 (free_live_range_list) Likewise.
30510 (create_live_range) Likewise.
30511 (copy_live_range) Likewise.
30512 (lra_merge_live_ranges) Likewise.
30513 (remove_some_program_points_and_update_live_ranges) Likewise.
30514 (lra_live_ranges_init) Likewise.
30515 (lra_live_ranges_finish) Likewise.
30517 2015-06-01 Martin Liska <mliska@suse.cz>
30519 * et-forest.c (et_new_occ): Use new type-based pool allocator.
30520 (et_new_tree): Likewise.
30521 (et_free_tree): Likewise.
30522 (et_free_tree_force): Likewise.
30523 (et_free_pools): Likewise.
30524 (et_split): Likewise.
30526 2015-06-01 Martin Liska <mliska@suse.cz>
30528 * alloc-pool.c (struct alloc_pool_descriptor): Move definition
30530 * alloc-pool.h (pool_allocator::pool_allocator): New function.
30531 (pool_allocator::release): Likewise.
30532 (inline pool_allocator::release_if_empty): Likewise.
30533 (inline pool_allocator::~pool_allocator): Likewise.
30534 (pool_allocator::allocate): Likewise.
30535 (pool_allocator::remove): Likewise.
30537 2015-06-01 James Greenhalgh <james.greenhalgh@arm.com>
30539 * sched-deps.c (sched_analyze_2): Replace fuseable with fusible
30542 2015-06-01 James Greenhalgh <james.greenhalgh@arm.com>
30544 * config/arm/arm-protos.h (tune_params): Rename fuseable_ops
30546 * config/arm/arm.c (arm_print_tune_info): Likewise.
30547 (arm_macro_fusion_p): Likewise.
30548 (arm_macro_fusion_pair_p): Likewise.
30550 2015-06-01 James Greenhalgh <james.greenhalgh@arm.com>
30552 * config/aarch64/aarch64-protos.h (tune_params): Rename
30553 fuseable_ops to fusible_ops.
30554 * config/aarch64/aarch64.c (generic_tunings): Rename
30555 fuseable_ops to fusible_ops.
30556 (cortexa53_tunings): Likewise.
30557 (cortexa57_tunings): Likewise.
30558 (thunderx_tunings): Likewise.
30559 (xgene1_tunings): Likewise.
30560 (aarch64_macro_fusion_p): Likewise.
30561 (aarch64_macro_fusion_pair_p): Likewise.
30563 2015-06-01 Dominik Vogt <vogt@linux.vnet.ibm.com>
30565 * config/s390/driver-native.c: New file.
30566 * config/s390/x-native: New file.
30567 * config.host: Add new files for s390.
30568 * config/s390/s390.h (DRIVER_SELF_SPECS): Add support for -mtune=native
30570 * config.gcc: Likewise.
30571 * config/s390/s390.opt (march): Likewise; add PROCESSOR_NATIVE
30572 * config/s390/s390-opts.h (enum processor_type): Ditto.
30573 * config/s390/s390.c (s390_option_override): Catch unhandled
30576 2015-06-01 Ilya Enkovich <ilya.enkovich@intel.com>
30579 * cgraph.c (cgraph_edge::redirect_call_stmt_to_callee): Add
30580 redirection for instrumented calls.
30581 * lto-wrapper.c (merge_and_complain): Merge -fcheck-pointer-bounds.
30582 (append_compiler_options): Append -fcheck-pointer-bounds.
30583 * tree-chkp.h (chkp_copy_call_skip_bounds): New.
30584 (chkp_redirect_edge): New.
30585 * tree-chkp.c (chkp_copy_call_skip_bounds): New.
30586 (chkp_redirect_edge): New.
30588 2015-06-01 Richard Biener <rguenther@suse.de>
30590 PR tree-optimization/66280
30591 * tree-vect-slp.c (vect_detect_hybrid_slp_stmts): Fix pattern
30594 2015-06-01 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
30596 * config/aarch64/aarch64.md
30597 (*<LOGICAL:optab>_one_cmpl_<SHIFT:optab><mode>3): Change type to
30600 2015-06-01 Eric Botcazou <ebotcazou@adacore.com>
30602 * config/i386/winnt.c (i386_pe_encode_section_info) <FUNCTION_DECL>:
30603 Remove obsolete kludge.
30605 2015-06-01 Richard Biener <rguenther@suse.de>
30607 * tree-ssa-reassoc.c (get_rank): Simplify.
30609 2015-05-31 H.J. Lu <hongjiu.lu@intel.com>
30611 * configure.ac (NO_PIE_CFLAGS): Check CXXFLAGS instead of CFLAGS.
30612 * configure: Regenerated.
30614 2015-05-31 Mikhail Maltsev <maltsevm@gmail.com>
30616 * config/cris/cris.h (CRIS_ARCH_CPP_DEFAULT): Fix C++11 compatibility
30617 issue (add space between string literal and macro).
30618 * config/i386/mingw32.h (REAL_LIBGCC_SPEC): Likewise.
30620 2015-05-30 Andreas Schwab <schwab@linux-m68k.org>
30622 * config/m68k/m68k.h (ASM_PCREL_SPEC): Pass --pcrel also for
30623 implict or explicit -fPIE or -fpie.
30625 2015-05-30 Mike Frysinger <vapier@gentoo.org>
30627 * config/alpha/elf.h (ASM_SPEC): Add %{mcpu=*:-m%*}.
30629 2015-05-28 DJ Delorie <dj@redhat.com>
30631 * expmed.c (extract_bit_field_1): Avoid clobbering a
30632 yet-to-be-used base/index register.
30634 2015-05-30 Jan Hubicka <hubicka@ucw.cz>
30636 * alias.c (alias_set_entry_d): Add is_pointer and has_pointer.
30637 (alias_stats): Add num_universal.
30638 (alias_set_subset_of): Special case pointers; be ready for NULL
30640 (alias_sets_conflict_p): Special case pointers; be ready for NULL
30642 (init_alias_set_entry): Break out from ...
30643 (record_alias_subset): ... here; propagate new fields;
30644 allocate children only when really needed.
30645 (get_alias_set): Do less generous pointer globbing.
30646 (dump_alias_stats_in_alias_c): Update statistics.
30648 2015-05-30 Alan Modra <amodra@gmail.com>
30650 * config/rs6000/rs6000.c (split_stack_arg_pointer_used_p): Scan
30651 correct block for use of r12.
30652 (rs6000_expand_split_stack_prologue): Error on r29 asm global reg.
30654 2015-05-29 Dominik Vogt <vogt@linux.vnet.ibm.com>
30657 * config/s390/s390.c (s390_reorg): Fix placement of post-label NOPs
30660 2015-05-29 Jakub Jelinek <jakub@redhat.com>
30662 PR tree-optimization/66142
30663 * tree-if-conv.c (if_convertible_phi_p): Don't give up on
30664 virtual phis that feed themselves.
30666 2015-05-29 Richard Biener <rguenther@suse.de>
30668 PR tree-optimization/66314
30669 * tree-ssa-threadupdate.c (create_block_for_threading): Add
30670 parameter that says which loop the new block belongs to.
30671 (ssa_create_duplicates): Blocks duplicated for the threaded
30672 path belong to the loop of the thread destination.
30674 2015-05-29 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
30676 * config/arm/neon-testgen.ml (emit_epilogue): Remove manual call
30677 to cleanup-saved-temps.
30678 * doc/sourcebuild.texi (Clean up generated test files): Expand
30680 (dg-keep-saved-temps): Document new proc.
30681 (cleanup-ipa-dump, cleanup-rtl-dump, cleanup-tree-dump,
30682 cleanup-saved-temps): Remove.
30684 2015-05-28 Andreas Tobler <andreast@gcc.gnu.org>
30686 * configure.ac: Move the atoll check from AC_CHECK_FUNCS to
30687 gcc_AC_CHECK_DECLS.
30688 * configure: Regenerate.
30690 2015-05-28 Mike Frysinger <vapier@gentoo.org>
30692 * config/nios2/linux.h (CPP_SPEC): Define.
30694 2015-05-28 Mike Frysinger <vapier@gentoo.org>
30696 * config/microblaze/linux.h (CPP_SPEC): Define.
30698 2015-05-28 Mike Frysinger <vapier@gentoo.org>
30700 * config/pa/pa-linux.h (CPP_SPEC): Change so -D_REENTRANT is used when
30701 -pthread is specified.
30703 2015-05-28 Richard Biener <rguenther@suse.de>
30705 * tree-vect-loop.c (vect_fixup_reduc_chain): New function.
30706 (vect_fixup_scalar_cycles_with_patterns): Likewise.
30707 (vect_analyze_loop_2): Call vect_fixup_scalar_cycles_with_patterns
30708 after pattern recog.
30709 (vect_create_epilog_for_reduction): Properly handle reductions
30711 (vectorizable_reduction): Likewise.
30712 * tree-vect-slp.c (vect_analyze_slp_instance): Properly mark
30714 (vect_get_constant_vectors): Create the correct number of
30715 initial values for reductions.
30716 (vect_schedule_slp_instance): Handle reduction chains that are
30717 type changing properly.
30718 * tree-vect-stmts.c (vect_analyze_stmt): Adjust.
30720 2015-05-28 Richard Biener <rguenther@suse.de>
30722 PR tree-optimization/66142
30723 * tree-ssa-sccvn.c (vn_reference_lookup_3): Handle non-GIMPLE
30724 values better in memcpy destination handling. Handle non-aliasing
30727 2015-05-28 Lawrence Velázquez <vq@larryv.me>
30730 * config/darwin-c.c (version_components): New global enum.
30731 (parse_version, version_as_legacy_macro)
30732 (version_as_modern_macro, macosx_version_as_macro): New functions.
30733 (version_as_macro): Remove.
30734 (darwin_cpp_builtins): Use new function.
30736 2015-05-28 H.J. Lu <hongjiu.lu@intel.com>
30738 * builtins.c (expand_builtin_acc_on_device): Mark parameters
30739 with ATTRIBUTE_UNUSED.
30741 2015-05-28 Julian Brown <julian@codesourcery.com>
30745 * builtins.c (expand_builtin_acc_on_device): Don't use open-coded
30746 sequence for !ACCEL_COMPILER.
30748 2015-05-28 Nick Clifton <nickc@redhat.com>
30750 * config/rx/rx.c (push_regs): New function. Extracts code from...
30751 (rx_expand_prologue): ... here. Use push_regs to push even small
30752 spans of registers.
30753 (pop_regs): New function.
30754 (rx_expand_epilogue): Use pop_regs to pop even small spans of
30757 2015-05-28 Richard Biener <rguenther@suse.de>
30759 * tree-vectorizer.h (struct _slp_instance): Remove body_cost_vec
30761 (SLP_INSTANCE_BODY_COST_VEC): Remove.
30762 (vect_update_slp_costs_according_to_vf): Likewise.
30763 (vect_slp_analyze_operations): Update prototype.
30764 * tree-vect-loop.c (vect_analyze_loop_2): Remove call to
30765 vect_update_slp_costs_according_to_vf, adjust.
30766 * tree-vect-slp.c (vect_free_slp_instance): Adjust.
30767 (vect_analyze_slp_cost_1): Likewise.
30768 (vect_analyze_slp_cost): Likewise. Properly deal with
30769 widening reduction ops. Commit body costs.
30770 (vect_analyze_slp_instance): Adjust. Do not analyze SLP
30771 cost for loops from here.
30772 (vect_slp_analyze_operations): But do it from here when
30773 the vectorization factor is known and stmts are analyzed.
30774 (vect_bb_vectorization_profitable_p): Simplify.
30775 (vect_slp_analyze_bb_1): Do not compute SLP cost here.
30776 (vect_update_slp_costs_according_to_vf): Remove.
30778 2015-05-27 Magnus Granberg <zorry@gentoo.org>
30779 H.J. Lu <hongjiu.lu@intel.com>
30781 * Makefile.in (COMPILER): Add @NO_PIE_CFLAGS@.
30782 (BUILD_CFLAGS): Likewise.
30783 (BUILD_CXXFLAGS): Likewise.
30784 (LINKER): Add @NO_PIE_FLAG@.
30785 (BUILD_LDFLAGS): Likewise.
30786 (libgcc.mvars): Set NO_PIE_CFLAGS to -fno-PIE for
30787 --enable-default-pie.
30788 * common.opt (fPIE): Initialize to -1.
30790 (no-pie): New option.
30791 (pie): Replace "Negative(shared)" with "Negative(no-pie)".
30792 * configure.ac: Add --enable-default-pie.
30793 (NO_PIE_CFLAGS): New. Check if -fno-PIE works. AC_SUBST.
30794 (NO_PIE_FLAG): New. Check if -no-pie works. AC_SUBST.
30795 * defaults.h (DEFAULT_FLAG_PIE): New. Default PIE to -fPIE.
30796 * gcc.c (NO_PIE_SPEC): New.
30797 (PIE_SPEC): Likewise.
30798 (NO_FPIE1_SPEC): Likewise.
30799 (FPIE1_SPEC): Likewise.
30800 (NO_FPIE2_SPEC): Likewise.
30801 (FPIE2_SPEC): Likewise.
30802 (NO_FPIE2_SPEC): Likewise.
30803 (FPIE_SPEC): Likewise.
30804 (NO_FPIE_SPEC): Likewise.
30805 (NO_FPIC1_SPEC): Likewise.
30806 (FPIC1_SPEC): Likewise.
30807 (NO_FPIC2_SPEC): Likewise.
30808 (FPIC2_SPEC): Likewise.
30809 (NO_FPIC2_SPEC): Likewise.
30810 (FPIC_SPEC): Likewise.
30811 (NO_FPIC_SPEC): Likewise.
30812 (NO_FPIE1_AND_FPIC1_SPEC): Likewise.
30813 (FPIE1_OR_FPIC1_SPEC): Likewise.
30814 (NO_FPIE2_AND_FPIC2_SPEC): Likewise.
30815 (FPIE2_OR_FPIC2_SPEC): Likewise.
30816 (NO_FPIE_AND_FPIC_SPEC): Likewise.
30817 (FPIE_OR_FPIC_SPEC): Likewise.
30818 (LD_PIE_SPEC): Likewise.
30819 (LINK_PIE_SPEC): Handle -no-pie. Use PIE_SPEC and LD_PIE_SPEC.
30820 * opts.c (finish_options): Update opts->x_flag_pie if it is -1.
30821 * config/darwin.h (PIE_SPEC): Renamed to ...
30822 (DARWIN_PIE_SPEC): This.
30823 (LINK_SPEC): Replace PIE_SPEC with DARWIN_PIE_SPEC.
30824 * config/darwin9.h (PIE_SPEC): Renamed to ...
30825 (DARWIN_PIE_SPEC): This.
30826 * config/gnu-user.h (GNU_USER_TARGET_STARTFILE_SPEC): Use
30827 PIE_SPEC and NO_PIE_SPEC if HAVE_LD_PIE is defined.
30828 * config/openbsd.h (ASM_SPEC): Use FPIE1_OR_FPIC1_SPEC and
30829 FPIE2_OR_FPIC2_SPEC.
30830 * config/m68k/netbsd-elf.h (ASM_SPEC): Likewise.
30831 * config/m68k/openbsd.h (ASM_SPEC): Likewise.
30832 * config/sol2.h (ASM_PIC_SPEC): Likewise.
30833 * config/arm/freebsd.h (SUBTARGET_EXTRA_ASM_SPEC): Likewise.
30834 * config/arm/netbsd-elf.h (SUBTARGET_EXTRA_ASM_SPEC): Likewise.
30835 * config/arm/semi.h (SUBTARGET_EXTRA_ASM_SPEC): Likewise.
30836 * config/cris/linux.h (CRIS_ASM_SUBTARGET_SPEC): Likewise.
30837 * config/m32r/m32r.h (ASM_SPEC): Likewise.
30838 * config/m68k/uclinux.h (DRIVER_SELF_SPECS): Likewise.
30839 * config/rs6000/linux64.h (ASM_SPEC32): Likewise.
30840 * config/rs6000/sysv4.h (ASM_SPEC): Likewise.
30841 * config/sparc/freebsd.h (ASM_SPEC): Likewise.
30842 * config/sparc/linux.h (ASM_SPEC): Likewise.
30843 * config/sparc/linux64.h (ASM_SPEC): Likewise.
30844 * config/sparc/netbsd-elf.h (ASM_SPEC): Likewise.
30845 * config/sparc/openbsd64.h (ASM_SPEC): Likewise.
30846 * config/sparc/sp-elf.h (ASM_SPEC): Likewise.
30847 * config/sparc/sp64-elf.h (ASM_SPEC): Likewise.
30848 * config/sparc/sparc.h (ASM_SPEC): Likewise.
30849 * config/sparc/sysv4.h (ASM_SPEC): Likewise.
30850 * config/sparc/vxworks.h (ASM_SPEC): Likewise.
30851 * config/c6x/elf-common.h (ASM_SPEC): Use NO_FPIC2_SPEC,
30852 FPIC2_SPEC, FPIC1_SPEC and FPIC2_SPEC.
30853 * config/c6x/uclinux-elf.h (LINK_SPEC): Use FPIE_SPEC.
30854 * config/frv/frv.h (DRIVER_SELF_SPECS): Use FPIC_SPEC,
30855 NO_FPIC_SPEC and NO_FPIE1_AND_FPIC1_SPEC.
30856 (ASM_SPEC): Use FPIE1_OR_FPIC1_SPEC and FPIE2_OR_FPIC2_SPEC.
30857 * config/m68k/m68k.h (ASM_PCREL_SPEC): Use FPIC_SPEC and NO_FPIC_SPEC.
30858 * config/mips/gnu-user.h (NO_SHARED_SPECS): Use NO_FPIE_AND_FPIC_SPEC.
30859 * config/mips/vxworks.h (SUBTARGET_ASM_SPEC): Use FPIC_SPEC.
30860 * config/rs6000/freebsd64.h (ASM_SPEC32): Likewise.
30861 * config/rs6000/vxworks.h (ASM_SPEC): Likewise.
30862 * config/vax/linux.h (ASM_SPEC): Likewise.
30863 * doc/install.texi: Document --enable-default-pie.
30864 * doc/invoke.texi: Document -no-pie.
30865 * config.in: Regenerated.
30866 * configure: Likewise.
30868 2015-05-28 Thomas Preud'homme <thomas.preudhomme@arm.com>
30870 PR rtl-optimization/66168
30871 * loop-invariant.c (move_invariant_reg): Pass dest rather than reg to
30872 can_move_invariant_reg.
30874 2015-05-27 John David Anglin <danglin@gcc.gnu.org>
30877 * config/pa/pa.c (pa_emit_move_sequence): Correct placement of
30878 REG_EQUAL note when doing insert.
30880 * config/pa/pa.c (pa_print_operand): Use HOST_WIDE_INT_PRINT_DEC
30881 instead of "%d" for 'o' operand.
30883 2015-05-27 Nathan Sidwell <nathan@acm.org>
30886 * tree.c (build_pointer_type_for_mode): Canonical type does not
30887 inherit can_alias_all.
30888 (build_reference_type_for_mode): Likewise.
30890 2015-05-27 Eric Botcazou <ebotcazou@adacore.com>
30892 * expr.h (array_at_struct_end_p): Move to...
30893 (array_ref_element_size): Likewise.
30894 (component_ref_field_offset): Likewise.
30895 * tree.h (array_ref_element_size): ...here.
30896 (array_at_struct_end_p): Likewise.
30897 (component_ref_field_offset): Likewise.
30898 * expr.c (array_ref_element_size): Move to...
30899 (array_ref_low_bound): Likewise.
30900 (array_at_struct_end_p): Likewise.
30901 (array_ref_up_bound): Likewise.
30902 (component_ref_field_offset): Likewise.
30903 * tree.c (array_ref_element_size): ...here.
30904 (array_ref_low_bound): Likewise.
30905 (array_ref_up_bound): Likewise.
30906 (array_at_struct_end_p): Likewise.
30907 (component_ref_field_offset): Likewise.
30909 2015-05-27 Gregor Richards <gregor.richards@uwaterloo.ca>
30910 Szabolcs Nagy <szabolcs.nagy@arm.com>
30912 * config/aarch64/aarch64-linux.h (MUSL_DYNAMIC_LINKER): Define.
30914 2015-05-27 Jason Merrill <jason@redhat.com>
30917 * configure.ac: Use ACX_PROG_CXX_WARNING_OPTS,
30918 ACX_PROG_CXX_WARNING_ALMOST_PEDANTIC, and
30919 ACX_PROG_CXX_WARNINGS_ARE_ERRORS.
30921 2015-05-22 Aditya Kumar <hiraditya@msn.com>
30923 * auto-profile.c (afdo_calculate_branch_prob): Break once has_sample
30926 * statistics.c (statistics_fini_pass): Print pass name.
30928 2015-05-27 Richard Biener <rguenther@suse.de>
30930 PR tree-optimization/66272
30932 2014-08-15 Richard Biener <rguenther@suse.de>
30934 PR tree-optimization/62031
30935 * tree-data-ref.c (dr_analyze_indices): Do not set
30936 DR_UNCONSTRAINED_BASE.
30937 (dr_may_alias_p): All indirect accesses have to go the
30938 formerly DR_UNCONSTRAINED_BASE path.
30939 * tree-data-ref.h (struct indices): Remove
30940 unconstrained_base member.
30941 (DR_UNCONSTRAINED_BASE): Remove.
30943 2015-05-27 Aldy Hernandez <aldyh@redhat.com>
30945 * dwarf2out.c: Remove block_map.
30946 (gen_call_site_die): Replace block_map use with BLOCK_DIE.
30947 (gen_lexical_block_die): Same.
30948 (dwarf2out_function_decl): Remove block_map use.
30949 (dwarf2out_c_finalize): Same.
30950 * tree-core.h (struct tree_block): Add die field.
30951 * tree.h (BLOCK_DIE): New.
30953 2015-05-27 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
30956 * expr.c (memory_load_overlap): New function.
30957 (emit_push_insn): When pushing partial args to the stack would
30958 clobber the register part load the overlapping part into a pseudo
30959 and put it into the hard reg after pushing. Change return type
30960 to bool. Add bool argument.
30961 * expr.h (emit_push_insn): Change return type to bool.
30963 * calls.c (expand_call): Cancel sibcall optimization when encountering
30964 partial argument on targets with ARGS_GROW_DOWNWARD and
30965 !STACK_GROWS_DOWNWARD.
30966 (emit_library_call_value_1): Update callsite of emit_push_insn.
30967 (store_one_arg): Likewise.
30969 2015-05-27 Gregor Richards <gregor.richards@uwaterloo.ca>
30971 * config/arm/linux-eabi.h (MUSL_DYNAMIC_LINKER): Define.
30973 2015-05-27 Martin Liska <mliska@suse.cz>
30975 * Makefile.in: Add additional dependencies related to memory report
30977 * alloc-pool.c (allocate_pool_descriptor): Use new ctor.
30978 * bitmap.c (struct bitmap_descriptor_d): Remove.
30979 (struct loc): Likewise.
30980 (struct bitmap_desc_hasher): Likewise.
30981 (bitmap_desc_hasher::hash): Likewise.
30982 (bitmap_desc_hasher::equal): Likewise.
30983 (get_bitmap_descriptor): Likewise.
30984 (bitmap_register): User new memory descriptor API.
30985 (register_overhead): Likewise.
30986 (bitmap_find_bit): Register nsearches and search_iter statistics.
30987 (struct bitmap_output_info): Remove.
30988 (print_statistics): Likewise.
30989 (dump_bitmap_statistics): Use new memory descriptor.
30990 * bitmap.h (struct bitmap_usage): New class.
30991 * genmatch.c: Extend header file inclusion.
30992 * genpreds.c: Likewise.
30993 * ggc-common.c (struct ggc_usage): New class.
30994 (struct ggc_loc_desc_hasher): Remove.
30995 (ggc_loc_desc_hasher::hash): Likewise.
30996 (ggc_loc_desc_hasher::equal): Likewise.
30997 (struct ggc_ptr_hash_entry): Likewise.
30998 (struct ptr_hash_hasher): Likewise.
30999 (ptr_hash_hasher::hash): Likewise.
31000 (ptr_hash_hasher::equal): Likewise.
31001 (make_loc_descriptor): Likewise.
31002 (ggc_prune_ptr): Likewise.
31003 (dump_ggc_loc_statistics): Use new memory descriptor.
31004 (ggc_record_overhead): Likewise.
31005 (ggc_free_overhead): Likewise.
31006 (final_cmp_statistic): Remove.
31007 (cmp_statistic): Likewise.
31008 (ggc_add_statistics): Liekwise.
31009 (ggc_prune_overhead_list): Likewise.
31010 * hash-map-traits.h: New file.
31011 * hash-map.h (struct default_hashmap_traits): Move the traits to a
31012 separate header file.
31013 * hash-set.h: Pass memory statistics info to ctor.
31014 * hash-table.c (void dump_hash_table_loc_statistics): New function.
31015 * hash-table.h (hash_table::hash_table): Add new ctor arguments.
31016 (hash_table::~hash_table): Register memory release operation.
31017 (hash_table::alloc_entries): Handle memory allocation operation.
31018 (hash_table::expand): Likewise.
31019 * inchash.c (iterative_hash_hashval_t): Move implementation to header
31021 (iterative_hash_host_wide_int): Likewise.
31022 * inchash.h (class hash): Likewise.
31023 * mem-stats-traits.h: New file.
31024 * mem-stats.h: New file.
31025 (mem_location): Add new class.
31026 (mem_usage): Likewise.
31027 (mem_alloc_description): Likewise.
31028 * sese.c: Add new header file inclusision.
31029 * toplev.c (dump_memory_report): Add report for hash_table, hash_map
31031 * tree-sra.c: Add new header file inclusision.
31032 * vec.c (struct vec_descriptor): Remove.
31033 (hash_descriptor): Likewise.
31034 (struct vec_usage): Likewise.
31035 (struct ptr_hash_entry): Likewise.
31036 (hash_ptr): Likewise.
31037 (eq_ptr): Likewise.
31038 (vec_prefix::register_overhead): Use new memory descriptor API.
31039 (vec_prefix::release_overhead): Likewise.
31040 (add_statistics): Remove.
31041 (dump_vec_loc_statistics): Use new memory descriptor API.
31042 * vec.h (struct vec_prefix): Likewise.
31043 (va_heap::reserve): Likewise.
31044 (va_heap::release): Likewise.
31045 * emit-rtl.c (gen_raw_REG): Fix passing MEM_STAT.
31047 2015-05-27 Richard Biener <rguenther@suse.de>
31049 * tree-vect-stmts.c (vectorizable_load): Initialize slp_perm
31050 earlier and remove ??? comment.
31051 (vect_analyze_stmt): If we are analyzing a pure SLP stmt
31052 and got called from loop analysis bail out. Always pass the SLP
31053 node to the vectorizable_* functions.
31054 * tree-vect-loop.c (vect_analyze_loop_operations): Remove
31055 the premature SLP check here.
31056 * tree-vect-slp.c (vect_detect_hybrid_slp_stmts): Dump hybrid
31057 detected SLP stmts.
31058 (vect_detect_hybrid_slp_1): Likewise.
31060 2015-05-26 Jeff Law <law@redhat.com>
31062 * combine.c (find_split_point): Verify that the shift count is a
31063 constant when choosing (plus (ashift ...)) as a split point.
31065 * tree-ssa-threadupdate.c: Replace 8 space sequences with tabs.
31066 No functional changes.
31068 2015-05-26 Jan Hubicka <hubicka@ucw.cz>
31070 * ipa-polymorphic-call.c
31071 (ipa_polymorphic_call_context::get_dynamic_type): Short circuit the
31072 case when call target is already known.
31074 2015-05-26 Oleg Endo <olegendo@gcc.gnu.org>
31077 * config/sh/sh.md (tstsi_t peephole2): Use gen_rtx_SET and
31078 take into account the case that operands[1] and operands[2]
31079 are the same register.
31081 2015-05-26 Michael Matz <matz@suse.de>
31083 PR middle-end/66251
31085 * tree-vect-stmts.c (vect_model_store_cost): Handled strided group
31087 (vect_create_vectorized_demotion_stmts): Always set
31088 STMT_VINFO_VEC_STMT, also with SLP.
31089 (vectorizable_store): Handle strided group stores.
31091 2015-05-26 Venkataramanan Kumar <venkataramanan.kumar@amd.com>
31094 * config/aarch64/aarch64.md
31095 (*adds_shift_imm_<mode>): New pattern.
31096 (*subs_shift_imm_<mode>): Likewise.
31097 (*adds_<optab><ALLX:mode>_shift_<GPI:mode>): Likewise.
31098 (*subs_<optab><ALLX:mode>_shift_<GPI:mode>): Likewise.
31099 (*add_uxt<mode>_shift2): Likewise.
31100 (*add_uxtsi_shift2_uxtw): Likewise.
31101 (*sub_uxt<mode>_shift2): Likewise.
31102 (*sub_uxtsi_shift2_uxtw): Likewise.
31104 2015-05-26 David Edelsohn <dje.gcc@gmail.com>
31106 * config/rs6000/constraints.md (Y, U): Use match_test.
31108 2015-05-26 Christian Bruel <christian.bruel@st.com>
31111 * config/arm/arm.c (arm_option_check_internal)
31112 (arm_option_params_internal): Check opts->target_flags to set macros.
31113 (TREE_TARGET_ARM, TREE_TARGET_THUMB)
31114 (TREE_TARGET_THUMB1, TREE_TARGET_THUMB2) Replace with...
31115 (TARGET_ARM_P, TARGET_THUMB_P, TARGET_THUMB1_P, TARGET_THUMB2_P)
31116 (builtin_define): Replaced with def_or_undef_macro.
31117 * config/arm/arm.h (TREE_TARGET_ARM, TREE_TARGET_THUMB)
31118 TREE_TARGET_THUMB1, TREE_TARGET_THUMB2) Redefine with...
31119 (TARGET_ARM_P, TARGET_THUMB_P, TARGET_THUMB1_P, TARGET_THUMB2_P)
31120 (TARGET_32BIT_P, TARGET_ARM_QBIT_P, TARGET_ARM_SAT_P, TARGET_IDIV_P)
31121 (TARGET_HAVE_LDREX_P, TARGET_HAVE_LDREXBH_P, TARGET_HAVE_LDREXD_P)
31122 (TARGET_ARM_FEATURE_LDREX_P)
31123 (TARGET_DSP_MULTIPLY_P, TARGET_INT_SIMD_P): New macros.
31124 * config/arm/arm-c.c (def_or_undef_macro): New function.
31125 (arm_cpu_cpp_builtins): Use def_or_undef_macro for macros definition.
31127 2015-05-26 Christian Bruel <christian.bruel@st.com>
31129 * c-common.h (builtin_define_with_int_value)
31130 (builtin_define_type_sizeof): Declare.
31131 * c-cppbuiltin.c (builtin_define_with_int_value)
31132 (builtin_define_type_sizeof): Externalize.
31133 (builtin_define_std): Cleanup declaration.
31134 * config/arm/arm-protos.h (arm_cpu_cpp_builtins): Declare.
31135 * config/arm/arm.h (TARGET_CPU_CPP_BUILTINS): Move macro defines into...
31136 * config/arm/arm-c.c (arm_cpu_cpp_builtins): New function.
31137 (builtin_define, builtin_assert): New macros.
31139 2015-05-26 Richard Biener <rguenther@suse.de>
31141 PR tree-optimization/66142
31142 * tree-ssa-sccvn.c (vn_reference_lookup_3): Manually compare
31143 MEM_REFs for the same base address.
31145 2015-05-26 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
31148 * tree.c (verify_type_variant): Do not check TYPE_NO_FORCE_BLK.
31150 2015-05-26 Jason Merrill <jason@redhat.com>
31152 * configure.ac: Set CXXFLAGS for ISL test.
31153 * configure: Regenerate.
31155 * configure.ac: Use C++ for all tests. Use AC_CHECK_DECLS for
31156 strstr and basename.
31157 * configure: Regenerate.
31159 2015-05-26 Richard Biener <rguenther@suse.de>
31161 * fold-const.c (fold_binary_loc): Move X % -Y -> X % Y and
31162 X % C -> X & (C - 1) for C being a power-of two to ...
31163 * match.pd: ... patterns.
31165 2015-05-26 Marc Glisse <marc.glisse@inria.fr>
31167 * match.pd (swapped_tcc_comparison): New operator list.
31168 (-A CMP -B): New simplification.
31169 * fold-const.c (fold_comparison): Remove corresponding code.
31171 2015-05-26 Richard Sandiford <richard.sandiford@arm.com>
31173 * caller-save.c (init_caller_save): Base temporary register numbers
31174 on LAST_VIRTUAL_REGISTER + 1 rather than FIRST_PSEUDO_REGISTER.
31175 * cfgloopanal.c (init_set_costs): Likewise.
31176 * dojump.c (prefer_and_bit_test): Likewise.
31177 * expr.c (init_expr_target): Likewise.
31178 * ira.c (setup_prohibited_mode_move_regs): Likewise.
31179 * lower-subreg.c (init_lower_subreg): Likewise.
31180 * postreload.c (reload_cse_regs_1): Likewise.
31182 2015-05-26 Richard Sandiford <richard.sandiford@arm.com>
31184 * gensupport.h (compute_test_codes): Declare.
31185 * gensupport.c (compute_predicate_codes): Rename to...
31186 (compute_test_codes): ...this. Generalize error message.
31187 (process_define_predicate): Update accordingly.
31188 * genpreds.c (compute_maybe_allows): Delete.
31189 (add_constraint): Use compute_test_codes to determine whether
31190 something can accept a SUBREG, REG or MEM.
31192 2015-05-26 Torvald Riegel <triegel@redhat.com>
31194 * doc/extend.texi (__atomic Builtins): Use 'memory order' instead of
31195 'memory model' to align with C++11; fix description of memory orders;
31198 2015-05-26 Richard Biener <rguenther@suse.de>
31200 * tree-vect-loop.c (vect_update_vf_for_slp): Split out from ...
31201 (vect_analyze_loop_operations): ... here. Remove slp parameter,
31202 detect whether we apply SLP. Remove call to
31203 vect_update_slp_costs_according_to_vf.
31204 (vect_analyze_loop_2): Call vect_update_vf_for_slp and
31205 vect_update_slp_costs_according_to_vf from here. Dispatch
31206 to vect_slp_analyze_operations to analyze SLP stmts.
31207 * tree-vect-slp.c (vect_slp_analyze_node_operations): Drop
31208 unused bb_vec_info parameter, adjust assert.
31209 (vect_slp_analyze_operations): Pass in the slp instance tree
31210 instead of bb_vec_info.
31211 (vect_slp_analyze_bb_1): Adjust call to vect_slp_analyze_operations.
31212 * tree-vectorizer.h (vect_slp_analyze_operations): Declare.
31214 2015-05-25 Alexander Monakov <amonakov@ispras.ru>
31216 * config/i386/i386.h (enum reg_class): Move CLOBBERED_REGS prior to
31217 Q_REGS. Expand comment.
31218 (REG_CLASS_NAMES): Ditto.
31219 (REG_CLASS_CONTENTS): Ditto.
31221 2015-05-25 Uros Bizjak <ubizjak@gmail.com>
31224 * config/i386/i386.c (print_reg): Only print "r" for TARGET_64BIT
31225 when LEGACY_INT_REGNO_P is processed.
31227 2015-05-25 Alexander Monakov <amonakov@ispras.ru>
31229 * config/i386/i386.c (ix86_function_ok_for_sibcall): Check flag_plt.
31231 2015-05-25 Pitchumani Sivanupandi <pitchumani.s@atmel.com>
31233 * config/avr/avr.c (avr_out_load_psi_reg_no_disp_tiny): Restore base
31234 register if not marked dead/unused, before return.
31236 2015-05-24 Jan Hubicka <hubicka@ucw.cz>
31239 * ipa-devirt.c (type_with_linkage): Check that TYPE_STUB_DECL
31240 is set; check for assembler name at LTO time.
31241 (type_in_anonymous_namespace): Remove hacks, check that all
31242 anonymous types are called "<anon>"
31243 (odr_type_p): Simplify; add check for "<anon>"
31244 (odr_subtypes_equivalent): Add odr_type_p check.
31245 * tree.c (need_assembler_name_p): Even anonymous namespace needs
31248 2015-05-24 Jan Hubicka <hubicka@ucw.cz>
31250 * ipa-utils.h (method_class_type): Remove.
31251 * cgraphunit.c (walk_polymorphic_call_targets): Use
31252 TYPE_METHOD_BASETYPE.
31253 * ipa-devirt.c (type_in_anonymous_namespace_p): Check that it is called
31254 on main variants only.
31255 (method_class_type): Remove.
31256 (update_type_inheritance_graph): Use TYPE_METHOD_BASETYPE.
31257 (build_type_inheritance_graph): Likewise.
31258 * ipa-icf.c (sem_function::equals_wpa): Likewise.
31259 * pa-polymorphic-call.c (decl_maybe_in_construction_p,
31260 check_stmt_for_type_change): Use TYPE_METHOD_BASETYPE.
31262 2015-05-24 Jan Hubicka <hubicka@ucw.cz>
31264 * tree.c (prototype_p, virtual_method_call_p, obj_type_ref_class,
31265 is_typedef_decl, typedef_variant_p): Constify.
31266 * tree.h (prototype_p, virtual_method_call_p, obj_type_ref_class,
31267 is_typedef_decl, typedef_variant_p): Constify.
31269 2015-05-23 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
31271 * defaults.h (gen_tablejump): New function.
31272 (HAVE_tablejump): Add default value.
31274 * stmt.c: Likewise.
31276 2015-05-23 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
31278 * defaults.h (gen_store_multiple): New function.
31279 (HAVE_store_multiple): Add default value.
31280 * expr.c (move_block_from_reg): Adjust.
31282 2015-05-23 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
31284 * defaults.h (gen_load_multiple): New function.
31285 (HAVE_load_multiple): Add default value.
31286 * expr.c (move_block_to_reg): Adjust.
31288 2015-05-23 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
31290 * defaults.h (gen_mem_signal_fence): New function.
31291 (HAVE_mem_signal_fence): Add default value.
31292 * optabs.c: Adjust.
31294 2015-05-23 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
31296 * defaults.h (gen_memory_barrier): New function.
31297 (HAVE_memory_barrier): Add default value.
31298 * optabs.c: Adjust.
31300 2015-05-23 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
31302 * defaults.h (gen_mem_thread_fence): New function.
31303 (HAVE_mem_thread_fence): Add default definition.
31304 * optabs.c: Adjust.
31306 2015-05-23 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
31308 * combine.c (find_split_point): Check the value of HAVE_lo_sum
31309 instead of if it is defined.
31310 (combine_simplify_rtx): Likewise.
31311 * lra-constraints.c (process_address_1): Likewise.
31312 * config/darwin.c: Adjust.
31313 * genconfig.c (main): Always define HAVE_lo_sum.
31315 2015-05-23 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
31317 * genmatch.c (parser::parse_operation): Reject expanding
31318 operator-list inside 'for'.
31320 2015-05-23 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
31322 * genmatch.c (parser::parse_for): Reject iterator if used as
31325 2015-05-23 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
31327 * genmatch.c (parser::parse_operator_list): Check for CPP_CLOSE_PAREN
31328 after end of id-list.
31330 2015-05-22 Jan Hubicka <hubicka@ucw.cz>
31332 * tree.c (gimple_canonical_types_compatible_p): Sanity check that
31333 we do not try to compute canonical type for type that does not need
31335 (verify_type): Drop FIXME for METHOD_TYPE, update FIXME for
31337 * tree.h (type_with_alias_set_p): New.
31339 2015-05-22 Jan Hubicka <hubicka@ucw.cz>
31341 * tree.c (gimple_canonical_types_compatible_p): Do not compare
31342 function attributes.
31343 (verify_type): Remove METHOD_TYPE FIXME; update FUNCTION_TYPE.
31345 2015-05-22 Jim Wilson <jim.wilson@linaro.org>
31347 * Makefile.in (check_gcc_parallelize): Delete.
31348 (lang_checks_parallelized): Update comment.
31350 2015-05-22 Mikhail Maltsev <maltsevm@gmail.com>
31352 PR rtl-optimization/66237
31353 * bb-reorder.c (fix_crossing_conditional_branches): Fix wrong
31354 location of an "as_a" cast.
31356 2015-05-22 Jeff Law <law@redhat.com>
31358 * config/pa/pa.md (non-canonical shift-add insns): Remove.
31359 (peepholes with non-canonical RTL sources): Remove.
31360 (peepholes for indexed stores of FP regs in integer modes): Match and
31361 generate canonical RTL.
31363 2015-05-22 Marc Glisse <marc.glisse@inria.fr>
31365 PR tree-optimization/63387
31366 * match.pd ((X /[ex] A) * A -> X): Remove unnecessary condition.
31367 ((x ord x) & (y ord y) -> (x ord y),
31368 (x ord x) & (x ord y) -> (x ord y)): New simplifications.
31369 * fold-const.c (tree_unary_nonnegative_warnv_p) <ABS_EXPR>: Handle
31370 vectors like scalars.
31372 2015-05-22 Marc Glisse <marc.glisse@inria.fr>
31374 * convert.c (convert_to_integer, convert_to_vector): Include the
31375 types in the error message.
31377 2015-05-22 Marc Glisse <marc.glisse@inria.fr>
31379 * match.pd ((x | y) & ~x -> y & ~x, (x & y) | ~x -> y | ~x): New
31382 2015-05-22 Jeff Law <law@redhat.com>
31384 * config/pa/pa.md (integer_indexed_store splitters): Use
31385 mem_shadd_operand. Use ASHIFT rather than MULT in the resulting
31386 insns -- adjusting the constant 2nd operand accordingly.
31388 * combine.c (try_combine): Canonicalize (plus (mult X pow2) Y) into
31389 (plus (ashift X log2) Y) if it is a split point.
31391 * config/pa/pa.c (mem_shadd_or_shadd_rtx_p): New function factoredx
31392 out of hppa_legitimize_address to handle both forms of a multiply
31394 (hppa_legitimize_address): Use mem_shadd_or_shadd_rtx_p.
31395 Always generate the ASHIFT variant as the result is not directly
31396 used in a MEM. Update comments and refactor slightly to improve
31399 2015-05-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
31402 * config/aarch64/aarch64.c (aarch64_short_vector_p): Move above
31403 aarch64_composite_type_p. Remove check for aarch64_composite_type_p.
31404 (aarch64_composite_type_p): Return false if given type and mode are
31405 for a short vector.
31407 2015-05-22 Richard Biener <rguenther@suse.de>
31409 * tree-vectorizer.h (struct _slp_oprnd_info): Add second_pattern
31411 * tree-vect-loop.c (vect_analyze_loop_operations): Look at
31412 patterns when determining whether SLP is pure.
31413 (vect_is_slp_reduction): Remove check for pattern stmts.
31414 (vect_is_simple_reduction_1): Remove dead code.
31415 * tree-vect-slp.c (vect_create_oprnd_info): Initialize second_pattern.
31416 (vect_get_and_check_slp_defs): Pass in the stmt number.
31417 Allow the first def in a reduction to be not a pattern stmt when
31418 the rest of the stmts def are patterns.
31419 (vect_build_slp_tree_1): Allow tcc_expression codes like
31420 SAD_EXPR and DOT_PROD_EXPR.
31421 (vect_build_slp_tree): Adjust.
31422 (vect_analyze_slp): Refactor and move BB vect error message ...
31423 (vect_slp_analyze_bb_1): ... here.
31425 2015-05-22 Aldy Hernandez <aldyh@redhat.com>
31427 * tree-switch-conversion.c (build_one_array): Set DECL_IGNORED_P
31428 for CSWTCH temporary.
31430 2015-05-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
31432 * config/arm/arm.c (arm_new_rtx_costs): Handle UNSPEC_VOLATILE.
31433 (arm_unspec_cost): Allow UNSPEC_VOLATILE. Do not recurse inside
31436 2015-05-22 Richard Biener <rguenther@suse.de>
31438 PR tree-optimization/66251
31439 * tree-vect-stmts.c (vectorizable_conversion): Properly
31440 set STMT_VINFO_VEC_STMT even for the SLP case.
31442 2015-05-22 Marek Polacek <polacek@redhat.com>
31444 * doc/extend.texi: Use @pxref instead of @xref.
31446 2015-05-22 hiraditya <hiraditya@msn.com>
31448 * gimple.h (gimple_expr_type): Refactor to make it concise. Remove
31451 2015-05-22 Richard Biener <rguenther@suse.de>
31453 PR tree-optimization/65701
31454 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment):
31455 Move peeling cost models into one place. Peel for alignment
31456 for single loads only if an aligned load is cheaper than
31459 2015-05-22 Marek Polacek <polacek@redhat.com>
31462 * doc/extend.texi (Enumerator Attributes): New section.
31463 Document syntax of enumerator attributes.
31465 2015-05-22 Richard Biener <rguenther@suse.de>
31467 * tree-vect-loop.c (get_reduction_op): New function.
31468 (vect_model_reduction_cost): Use it, add reduc_index parameter.
31469 Make ready for BB reductions.
31470 (vect_create_epilog_for_reduction): Use get_reduction_op.
31471 (vectorizable_reduction): Init reduc_index to a valid value.
31472 Adjust vect_model_reduction_cost call.
31473 * tree-vect-slp.c (vect_get_constant_vectors): Use the proper
31474 operand for reduction defaults. Add SAD_EXPR support.
31475 Assert we have a neutral op for SLP reductions.
31476 * tree-vect-stmts.c (vect_mark_stmts_to_be_vectorized): When
31477 walking pattern stmt ops only recurse to SSA names.
31479 2015-05-22 Richard Biener <rguenther@suse.de>
31481 * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Replace
31482 assert with guard, remove check on detected reduction.
31483 (vect_recog_sad_pattern): Likewise.
31484 (vect_recog_widen_sum_pattern): Likewise.
31486 2015-05-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
31488 * config/aarch64/arm_neon.h (vaeseq_u8): Add __extension__ and
31489 __always_inline__ attribute.
31490 (vaesdq_u8): Likewise.
31491 (vaesmcq_u8): Likewise.
31492 (vaesimcq_u8): Likewise.
31493 (vsha1cq_u32): Likewise.
31494 (vsha1mq_u32): Likewise.
31495 (vsha1pq_u32): Likewise.
31496 (vsha1h_u32): Likewise.
31497 (vsha1su0q_u32): Likewise.
31498 (vsha1su1q_u32): Likewise.
31499 (vsha256hq_u32): Likewise.
31500 (vsha256h2q_u32): Likewise.
31501 (vsha256su0q_u32): Likewise.
31502 (vsha256su1q_u32): Likewise.
31503 (vmull_p64): Likewise.
31504 (vmull_high_p64): Likewise.
31506 2015-05-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
31508 * final.c (final_scan_insn): Don't check HAVE_peephole with the
31510 * output.h: Likewise.
31511 * genconfig.c (main): Alwways define HAVE_peephole.
31512 * genpeep.c: Don't emit checks of HAVE_peephole.
31514 2015-05-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
31516 * combine.c, expmed.c, expr.c, optabs.c optabs.h, toplev.c: DOn't
31517 check HAVE_conditional_move with the preprocessor.
31519 2015-05-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
31521 * genconfig.c (main): Always define HAVE_conditional_move.
31522 * combine.c, expmed.c, expr.c, ifcvt.c, optabs.c, optabs.h,
31523 toplev.c, tree-ssa-phiopt.c: Don't check if HAVE_conditional_move
31526 2015-05-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
31528 * combine.c, df-problems.c, df-scan.c, emit-rtl.c, reginfo.c,
31529 reload.c, rtlanal.c: Remove comparison of ARG_FRAME_POINTER_REGNUM
31530 and FRAME_POINTER_REGNUM with the preprocessor.
31532 2015-05-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
31534 * defaults.h: Add default for STACK_PUSH_CODE.
31535 * expr.c: Don't redefine STACK_PUSH_CODE.
31536 * recog.c: Likewise.
31538 2015-05-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
31540 * builtins.c, dwarf2cfi.c, explow.c, expr.c, recog.c,
31541 sched-deps.c: Use if instead of preprocessor checks with
31542 STACK_GROWS_DOWNWARD.
31544 2015-05-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
31546 * *.c: Check the value of STACK_GROWS_DOWNWARD rather than if it
31548 * config/**/*.h: Define STACK_GROWS_DOWNWARD to an integer.
31549 * defaults.h: Provide default for STACK_GROWS_DOWNWARD.
31550 * doc/tm.texi.in: Update references to STACK_GROWS_DOWNWARD.
31551 * doc/tm.texi: Regenerate.
31553 2015-05-21 H.J. Lu <hongjiu.lu@intel.com>
31556 * config/i386/constraints.md (Bg): New constraint for GOT memory
31558 * config/i386/i386.md (*call_got_x32): New pattern.
31559 (*call_value_got_x32): Likewise.
31560 * config/i386/predicates.md (GOT_memory_operand): New predicate.
31562 2015-05-21 Jakub Jelinek <jakub@redhat.com>
31564 PR tree-optimization/66233
31565 * match.pd (ocvt (icvt@1 @0)): Don't handle vector types.
31568 2015-05-21 Jeff Law <law@redhat.com>
31570 * config/pa/pa.md (add-with-constant splitter): Use ASHIFT rather
31571 than MULT for shadd sequences.
31573 2015-05-08 Jan Hubicka <hubicka@ucw.cz>
31575 * alias.c (alias_stats): New static var.
31576 (alias_sets_conflict_p, alias_sets_must_conflict_p): Update stats.
31577 (dump_alias_stats_in_alias_c): New function.
31578 * alias.h (dump_alias_stats_in_alias_c): Declare.
31579 * tree-ssa-alias.c (dump_alias_stats): Call it.
31581 2015-05-08 Michael Matz <matz@suse.de>
31583 * tree-vectorizer.h (struct _stmt_vec_info): Rename stride_load_p
31585 (STMT_VINFO_STRIDE_LOAD_P): Rename to ...
31586 (STMT_VINFO_STRIDED_P): ... this.
31587 * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Adjust.
31588 (vect_verify_datarefs_alignment): Likewise.
31589 (vect_enhance_data_refs_alignment): Likewise.
31590 (vect_analyze_data_ref_access): Likewise.
31591 (vect_analyze_data_refs): Accept strided stores.
31592 * tree-vect-stmts.c (vect_model_store_cost): Count strided stores.
31593 (vect_model_load_cost): Adjust for macro rename.
31594 (vectorizable_mask_load_store): Likewise.
31595 (vectorizable_load): Likewise.
31596 (vectorizable_store): Open code strided stores.
31598 2015-05-21 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
31600 * doc/sourcebuild.texi (7.2.3.9 Other hardware attributes):
31601 Document sqrt_insn.
31603 2015-05-21 Richard Biener <rguenther@suse.de>
31606 * match.pd: Guard pattern optimzing (int)(float)int
31607 conversions to apply only on GIMPLE.
31609 2015-05-21 Jeff Law <law@redhat.com>
31611 * combine.c (find_split_point): Handle ASHIFT like MULT to encourage
31612 multiply-accumulate/shift-add insn generation.
31614 2015-05-21 Oleg Endo <olegendo@gcc.gnu.org>
31617 * config/sh/sh.md (*round_int_even): Reject pattern if operands[0] and
31618 operands[1] are the same.
31620 2015-05-21 Ilya Enkovich <enkovich.gnu@gmail.com>
31622 PR middle-end/66221
31623 * ipa-chkp.c (chkp_copy_function_type_adding_bounds): Use
31624 build_distinct_type_copy to copy bounds.
31626 2015-05-21 Thomas Schwinge <thomas@codesourcery.com>
31628 * genrecog.c (MAX_DEPTH, MIN_NUM_STATEMENTS, MAX_NUM_STATEMENTS):
31629 Change to unsigned int.
31631 2015-05-20 Jeff Law <law@redhat.com>
31633 * config/pa/pa.c (pa_print_operand): New 'o' output modifier.
31634 (pa_mem_shadd_constant_p): Renamed from pa_shadd_constant_p.
31635 (pa_shadd_constant_p): Allow constants for shadd insns rather
31636 than valid scaling constants for memory addresses.
31637 * config/pa/pa-protos.h (pa_mem_shadd_constant_p): Add prototype.
31638 * config/pa/predicates.md (mem_shadd_operand): New predicate.
31639 * config/pa/pa.md (shift-add insns using MULT): Use mem_shadd_operand.
31640 (shift-add insns using ASHIFT): New patterns.
31642 2015-05-20 Mikhail Maltsev <maltsevm@gmail.com>
31644 * bb-reorder.c (set_edge_can_fallthru_flag): Use rtx_jump_insn where
31646 (fix_up_fall_thru_edges): Likewise.
31647 (fix_crossing_conditional_branches): Likewise. Promote jump targets
31648 from to rtx_insn to rtx_code_label where feasible.
31649 * bt-load.c (move_btr_def): Remove as-a cast of the value returned by
31650 gen_move_insn (returned type changed to rtx_insn).
31651 * builtins.c (expand_errno_check): Fix arguments of
31652 do_compare_rtx_and_jump (now expects rtx_code_label).
31653 (expand_builtin_acc_on_device): Likewise.
31654 * cfgcleanup.c (try_simplify_condjump): Add cast when calling
31655 invert_jump (now exprects rtx_jump_insn).
31656 * cfgexpand.c (label_rtx_for_bb): Promote return type to rtx_code_label.
31657 (construct_init_block): Use rtx_code_label.
31658 * cfgrtl.c (block_label): Promote return type to rtx_code_label.
31659 (try_redirect_by_replacing_jump): Use cast to rtx_jump_insn when
31660 calling redirect_jump.
31661 (patch_jump_insn): Likewise.
31662 (redirect_branch_edge): Likewise.
31663 (force_nonfallthru_and_redirect): Likewise.
31664 (fixup_reorder_chain): Explicitly use rtx_jump_insn instead of rtx_insn
31666 (rtl_lv_add_condition_to_bb): Update call of do_compare_rtx_and_jump.
31667 * cfgrtl.h: Promote return type of block_label to rtx_code_label.
31668 * config/bfin/bfin.c (hwloop_optimize): Fix call of emit_label_before.
31669 * config/i386/i386.c (ix86_emit_cmove): Explicitly use rtx_code_label
31670 to store the value retured by gen_label_rtx.
31671 * config/mips/mips.c (mips16_split_long_branches): Promote rtx_insn to
31673 * config/sh/sh.c (gen_far_branch): Likewise. Fix call of invert_jump.
31674 (split_branches): Fix calls of redirect_jump.
31675 * dojump.c (jumpifnot): Promote argument type from rtx to
31677 (jumpifnot_1): Likewise.
31678 (jumpif): Likewise.
31679 (jumpif_1): Likewise.
31680 (do_jump_1): Likewise.
31681 (do_jump): Likewise. Use rtx_code_label when feasible.
31682 (do_jump_by_parts_greater_rtx): Likewise.
31683 (do_jump_by_parts_zero_rtx): Likewise.
31684 (do_jump_by_parts_equality_rtx): Likewise.
31685 (do_compare_rtx_and_jump): Likewise.
31686 * dojump.h: Update function prototypes.
31687 * dse.c (emit_inc_dec_insn_before): Remove case (gen_move_insn now
31689 * emit-rtl.c (emit_jump_insn_before_noloc): Promote return type to
31691 (emit_label_before): Likewise.
31692 (emit_jump_insn_after_noloc): Likewise.
31693 (emit_jump_insn_after_setloc): Likewise.
31694 (emit_jump_insn_after): Likewise
31695 (emit_jump_insn_before_setloc): Likewise.
31696 (emit_jump_insn_before): Likewise.
31697 (emit_label_before): Promote return type to rtx_code_label.
31698 (emit_label): Likewise.
31699 * except.c (sjlj_emit_dispatch_table): Use jump_target_rtx.
31700 * explow.c (emit_stack_save): Use gen_move_insn_uncast instead of
31702 (emit_stack_restore): Likewise.
31703 * expmed.c (emit_store_flag_force): Fix calls of do_compare_rtx_and_jump.
31704 (do_cmp_and_jump): Likewise.
31705 * expr.c (expand_expr_real_2): Likewise. Promote some local variables
31706 from rtx to rtx_code_label.
31707 (gen_move_insn_uncast): New function.
31708 * expr.h: Update return type of gen_move_insn (promote to rtx_insn).
31709 * function.c (convert_jumps_to_returns): Fix call of redirect_jump.
31710 * gcse.c (pre_insert_copy_insn): Use rtx_insn instead of rtx.
31711 * ifcvt.c (dead_or_predicable): Use rtx_jump_insn when calling
31712 invert_jump_1 and redirect_jump_1.
31713 * internal-fn.c (expand_arith_overflow_result_store): Fix call of
31714 do_compare_rtx_and_jump.
31715 (expand_addsub_overflow): Likewise.
31716 (expand_neg_overflow): Likewise.
31717 (expand_mul_overflow): Likewise.
31718 * ira.c (split_live_ranges_for_shrink_wrap): Use rtx_insn for
31719 return value of gen_move_insn.
31720 * jump.c (redirect_jump): Promote argument from rtx to rtx_jump_insn.
31721 * loop-doloop.c (add_test): Use rtx_code_label.
31722 (doloop_modify): Likewise.
31723 (doloop_optimize): Likewise.
31724 * loop-unroll.c (compare_and_jump_seq): Promote rtx to rtx_code_label.
31725 * lra-constraints.c (emit_spill_move): Remove cast of value returned
31727 (inherit_reload_reg): Add cast when calling dump_insn_slim.
31728 (split_reg): Likewise.
31729 * modulo-sched.c (schedule_reg_moves): Remove cast of value returned by
31731 * optabs.c (expand_binop_directly): Remove casts of values returned by
31733 (expand_unop_direct): Likewise.
31734 (expand_abs): Likewise.
31735 (maybe_emit_unop_insn): Likewise.
31736 (maybe_gen_insn): Promote return type to rtx_insn.
31737 * optabs.h: Update prototype of maybe_gen_insn.
31738 * postreload-gcse.c (eliminate_partially_redundant_load): Remove
31740 * recog.c (struct peep2_insn_data): Promote type of insn field to
31742 (peep2_reinit_state): Use NULL instead of NULL_RTX.
31743 (peep2_attempt): Remove casts of insn in peep2_insn_data.
31744 (peep2_fill_buffer): Promote argument from rtx to rtx_insn
31745 * recog.h (struct insn_gen_fn): Promote return types of function
31746 pointers and operator ().from rtx to rtx_insn.
31747 * reorg.c (fill_simple_delay_slots): Promote rtx_insn to rtx_jump_insn.
31748 (fill_eager_delay_slots): Likewise.
31749 (relax_delay_slots): Likewise.
31750 (make_return_insns): Likewise.
31751 (dbr_schedule): Likewise.
31752 (optimize_skips): Likewise.
31753 (reorg_redirect_jump): Likewise.
31754 (fill_slots_from_thread): Likewise.
31755 * reorg.h: Update prototypes.
31756 * resource.c (find_dead_or_set_registers): Use dyn_cast to
31757 rtx_jump_insn instead of check. Use it's jump_target method.
31758 * rtl.h (rtx_jump_insn::jump_label): Define new method.
31759 (rtx_jump_insn::jump_target): Define new method.
31760 (rtx_jump_insn::set_jump_target): Define new method.
31761 * rtlanal.c (tablejump_p): Promote type of one local variable.
31762 * sched-deps.c (sched_analyze_2): Promote rtx to rtx_insn_list.
31763 (sched_analyze_insn): Likewise.
31764 * sched-vis.c (print_insn_with_notes): Promote rtx to rtx_insn.
31765 (print_insn): Likewise.
31766 * stmt.c (label_rtx): Promote return type to rtx_insn.
31767 (force_label_rtx): Likewise.
31768 (jump_target_rtx): Define new function.
31769 (expand_label): Use it, get rid of one cast.
31770 (expand_naked_return): Promote rtx to rtx_code_label.
31771 (do_jump_if_equal): Fix do_compare_rtx_and_jump call.
31772 (expand_case): Use rtx_code_label instread of rtx where feasible.
31773 (expand_sjlj_dispatch_table): Likewise.
31774 (emit_case_nodes): Likewise.
31775 * stmt.h: Declare jump_target_rtx. Update prototypes. Fix comments.
31776 * store-motion.c (insert_store): Make use of new return type of
31777 gen_move_insn and remove a cast.
31778 (replace_store_insn): Likewise.
31780 2015-05-20 Max Filippov <jcmvbkbc@gmail.com>
31782 * config/xtensa/xtensa.c (init_alignment_context): Replace MULT
31783 by BITS_PER_UNIT with ASHIFT by exact_log2 (BITS_PER_UNIT).
31785 2015-05-20 Jeff Law <law@redhat.com>
31787 * tree-ssa-threadupdate.c (mark_threaded_blocks): Properly
31788 dispose of the jump thread path when the jump threading
31789 opportunity is cancelled.
31791 2015-05-20 Manuel López-Ibáñez <manu@gcc.gnu.org>
31793 * diagnostic.c (diagnostic_print_caret_line): Fix off-by-one error
31794 when printing the caret character.
31796 2015-05-20 Marek Polacek <polacek@redhat.com>
31798 * cfgexpand.c (expand_debug_expr): Use UNARY_CLASS_P.
31800 2015-05-20 Marek Polacek <polacek@redhat.com>
31802 * expr.c (expand_cond_expr_using_cmove): Use COMPARISON_CLASS_P.
31803 * gimple-expr.c (gimple_cond_get_ops_from_tree): Likewise.
31804 * gimple-fold.c (canonicalize_bool): Likewise.
31805 (same_bool_result_p): Likewise.
31806 * tree-if-conv.c (parse_predicate): Likewise.
31808 2015-05-20 Marek Polacek <polacek@redhat.com>
31810 * gimple-fold.c (fold_const_aggregate_ref_1): Use DECL_P.
31811 * gimplify.c (gimplify_modify_expr_rhs): Likewise.
31813 2015-05-20 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
31815 * config/aarch64/aarch64.c (aarch64_class_max_nregs):
31816 Use UNITS_PER_VREG and UNITS_PER_WORD instead of their direct
31819 2015-05-20 Robert Suchanek <robert.suchanek@imgtec.com>
31821 * config/mips/mips.h (micromips_globals): Declare.
31823 2015-05-20 David Malcolm <dmalcolm@redhat.com>
31825 * timevar.def (TV_INITIALIZE_RTL): New.
31826 * toplev.c (initialize_rtl): Use an auto_timevar to account this
31827 function's time to TV_INITIALIZE_RTL.
31829 2015-05-20 Ilya Enkovich <enkovich.gnu@gmail.com>
31831 * tree-chkp.c (chkp_maybe_copy_and_register_bounds): Remove useless
31832 gimple_build_nop calls.
31833 (chkp_find_bounds_for_elem): Likewise.
31834 (chkp_get_zero_bounds): Likewise.
31835 (chkp_get_none_bounds): Likewise.
31836 (chkp_get_bounds_by_definition): Likewise.
31837 (chkp_generate_extern_var_bounds): Likewise.
31838 (chkp_get_bounds_for_decl_addr): Likewise.
31839 (chkp_get_bounds_for_string_cst): Likewise.
31841 2015-05-20 Bin Cheng <bin.cheng@arm.com>
31843 PR tree-optimization/65447
31844 * tree-ssa-loop-ivopts.c (struct iv_use): New fields.
31845 (dump_use, dump_uses): Support to dump sub use.
31846 (record_use): New parameters to support sub use. Remove call to
31848 (record_sub_use, record_group_use): New functions.
31849 (compute_max_addr_offset, split_all_small_groups): New functions.
31850 (group_address_uses, rewrite_use_address): New functions.
31851 (strip_offset): New declaration.
31852 (find_interesting_uses_address): Call record_group_use.
31853 (add_candidate): New assertion.
31854 (infinite_cost_p): Move definition forward.
31855 (add_costs): Check INFTY cost and return immediately.
31856 (get_computation_cost_at): Clear setup cost and dependent bitmap
31858 (determine_use_iv_cost_address): Compute cost for sub uses.
31859 (rewrite_use_address_1): Rename from old rewrite_use_address.
31860 (free_loop_data): Free sub uses.
31861 (tree_ssa_iv_optimize_loop): Call group_address_uses.
31863 2015-05-20 Kugan Vivekanandarajah <kuganv@linaro.org>
31864 Jim Wilson <jim.wilson@linaro.org>
31866 * config/arm/aarch-common-protos.h (struct mem_cost_table): Added
31867 new fields loadv and storev.
31868 * config/aarch64/aarch64-cost-tables.h (thunderx_extra_costs):
31869 Initialize loadv and storev.
31870 * config/arm/aarch-cost-tables.h (generic_extra_costs): Likewise.
31871 (cortexa53_extra_costs): Likewise.
31872 (cortexa57_extra_costs): Likewise.
31873 (xgene1_extra_costs): Likewise.
31874 * config/aarch64/aarch64.c (aarch64_rtx_costs): Update vector
31877 2015-05-20 Kugan Vivekanandarajah <kuganv@linaro.org>
31879 * config/arm/arm.c (cortexa9_extra_costs): Initialize loadv and
31881 (cortexa8_extra_costs): Likewise.
31882 (cortexa5_extra_costs): Likewise.
31883 (cortexa7_extra_costs): Likewise.
31884 (cortexa12_extra_costs): Likewise.
31885 (cortexa15_extra_costs): Likewise.
31886 (v7m_extra_costs): Likewise.
31888 2015-05-20 Jeff Law <law@redhat.com>
31890 * tree-ssa-threadupdate.c (thread_single_edge): Use delete_jump_thread
31891 instead of open-coded version. Also delete the jump thread created
31892 within this function.
31894 2015-05-20 Alan Modra <amodra@gmail.com>
31896 * config/rs6000/rs6000.c (rs6000_emit_allocate_stack): Return
31897 stack adjusting insn. Formatting.
31898 (rs6000_emit_prologue): Track stack adjusting insn, and use of
31899 r12. If possible, emit first -fsplit-stack arg pointer insn
31900 before stack adjust. Don't use r12 to save cr if split-stack.
31902 2015-05-20 Alan Modra <amodra@gmail.com>
31904 * common/config/rs6000/rs6000-common.c (TARGET_SUPPORTS_SPLIT_STACK):
31906 (rs6000_supports_split_stack): New function.
31907 * config/rs6000/rs6000.c (machine_function): Add
31908 split_stack_arg_pointer.
31909 (TARGET_EXTRA_LIVE_ON_ENTRY, TARGET_INTERNAL_ARG_POINTER): Define.
31910 (setup_incoming_varargs): Use crtl->args.internal_arg_pointer
31911 rather than virtual_incoming_args_rtx.
31912 (rs6000_va_start): Likewise.
31913 (split_stack_arg_pointer_used_p): New function.
31914 (rs6000_emit_prologue): Set up arg pointer for -fsplit-stack.
31915 (morestack_ref): New var.
31916 (gen_add3_const, rs6000_expand_split_stack_prologue,
31917 rs6000_internal_arg_pointer, rs6000_live_on_entry,
31918 rs6000_split_stack_space_check): New functions.
31919 (rs6000_elf_file_end): Call file_end_indicate_split_stack.
31920 * config/rs6000/rs6000.md (UNSPEC_STACK_CHECK): Define.
31921 (UNSPECV_SPLIT_STACK_RETURN): Define.
31922 (split_stack_prologue, load_split_stack_limit,
31923 load_split_stack_limit_di, load_split_stack_limit_si,
31924 split_stack_return, split_stack_space_check): New expands and insns.
31925 * config/rs6000/rs6000-protos.h
31926 (rs6000_expand_split_stack_prologue): Declare.
31927 (rs6000_split_stack_space_check): Declare.
31929 2015-05-20 Alan Modra <amodra@gmail.com>
31931 * config/rs6000/rs6000.c (struct rs6000_stack): Correct comments.
31932 (direct_return): Test vrsave_size rather than vrsave_mask.
31933 (rs6000_emit_prologue): Likewise. Remove redundant altivec tests.
31934 (rs6000_emit_epilogue): Likewise.
31936 2015-05-20 Alan Modra <amodra@gmail.com>
31938 * config/rs6000/rs6000.c (rs6000_stack_info): Don't zero offsets
31939 when not saving registers.
31940 (debug_stack_info): Adjust to omit printing unused offsets,
31942 (rs6000_emit_epilogue): Adjust use_backchain_to_restore_sp
31945 2015-05-19 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
31948 * config/i386/winnt.c (struct wrapped_symbol_hasher): Change
31949 value_type to const char *.
31951 2015-05-19 Sandra Loosemore <sandra@codesourcery.com>
31953 * config.gcc [powerpc*-*-linux*]: Allow --enable-targets=all
31954 to build a biarch toolchain again.
31956 2015-05-19 Jan Hubicka <hubicka@ucw.cz>
31958 * ipa-devirt.c (type_in_anonymous_namespace_p): Return true
31959 or implicit declarations.
31960 (odr_type_p): Check that TYPE_NAME is TYPE_DECL before looking
31962 (get_odr_type): Check type has linkage before adding bases.
31963 (register_odr_type): Check that type has linkage before adding it.
31964 (type_known_to_have_no_deriavations_p): Rename to ..
31965 (type_known_to_have_no_derivations_p): This one.
31966 * ipa-utils.h (type_known_to_have_no_deriavations_p): Rename to ..
31967 (type_known_to_have_no_derivations_p): This one.
31968 * ipa-polymorphic-call.c
31969 (ipa_polymorphic_call_context::restrict_to_inner_type): Check that
31972 2015-05-19 Eric Botcazou <ebotcazou@adacore.com>
31974 * stor-layout.c (finalize_type_size): Use AGGREGATE_TYPE_P.
31975 (layout_type): Use RECORD_OR_UNION_TYPE_P.
31977 2015-05-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
31979 * config/s390/s390.c (s390_vector_bool_type_p): New function.
31980 (s390_invalid_binary_op): New function.
31981 (TARGET_INVALID_BINARY_OP): Define macro.
31983 2015-05-19 David Sherwood <david.sherwood@arm.com>
31985 * loop-invariant.c (create_new_invariant): Don't calculate address cost
31986 if mode is not a scalar integer.
31987 (get_inv_cost): Increase computational cost for unused invariants.
31989 2015-05-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
31991 * config.gcc: Add vecintrin.h to extra_headers. Add s390-c.o to
31992 c_target_objs and cxx_target_objs. Add t-s390 to tmake_file.
31993 * config/s390/s390-builtin-types.def: New file.
31994 * config/s390/s390-builtins.def: New file.
31995 * config/s390/s390-builtins.h: New file.
31996 * config/s390/s390-c.c: New file.
31997 * config/s390/s390-modes.def: Add modes CCVEQANY, CCVH,
31998 CCVHANY, CCVHU, CCVHUANY, CCVFHANY, CCVFHEANY.
31999 * config/s390/s390-protos.h (s390_expand_vec_compare_cc)
32000 (s390_cpu_cpp_builtins, s390_register_target_pragmas): Add
32002 * config/s390/s390.c (s390-builtins.h, s390-builtins.def):
32004 (flags_builtin, flags_overloaded_builtin_var, s390_builtin_types)
32005 (s390_builtin_fn_types, s390_builtin_decls, code_for_builtin): New
32006 variable definitions.
32007 (s390_const_operand_ok): New function.
32008 (s390_expand_builtin): Rewrite.
32009 (s390_init_builtins): New function.
32010 (s390_handle_vectorbool_attribute): New function.
32011 (s390_attribute_table): Add s390_vector_bool attribute.
32012 (s390_match_ccmode_set): Handle new cc modes CCVH, CCVHU.
32013 (s390_branch_condition_mask): Generate masks for new modes.
32014 (s390_expand_vec_compare_cc): New function.
32015 (s390_mangle_type): Add mangling for vector bool types.
32016 (enum s390_builtin): Remove.
32017 (s390_atomic_assign_expand_fenv): Rename constants for sfpc and
32019 * config/s390/s390.h (TARGET_CPU_CPP_BUILTINS): Call
32020 s390_cpu_cpp_builtins.
32021 (REGISTER_TARGET_PRAGMAS): New macro.
32022 * config/s390/s390.md: Define more UNSPEC_VEC_* constants.
32023 (insn_cmp mode attribute): Add new CC modes.
32024 (s390_sfpc, s390_efpc): Rename patterns to sfpc and efpc.
32025 (lcbb): New pattern definition.
32026 * config/s390/s390intrin.h: Include vecintrin.h.
32027 * config/s390/t-s390: New file.
32028 * config/s390/vecintrin.h: New file.
32029 * config/s390/vector.md: Include vx-builtins.md.
32030 * config/s390/vx-builtins.md: New file.S/390 zvector builtin
32033 2015-05-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
32035 * config/s390/s390-modes.def: Add new modes CCVEQ, CCVFH, and
32037 * config/s390/s390.c (s390_match_ccmode_set): Handle new modes.
32038 (s390_select_ccmode): Likewise.
32039 (s390_canonicalize_comparison): Swap operands if necessary.
32040 (s390_expand_vec_compare_scalar): Expand DFmode compare using
32041 single element vector instructions.
32042 (s390_emit_compare): Call s390_expand_vec_compare_scalar.
32043 (s390_branch_condition_mask): Generate CC masks for the new modes.
32044 * config/s390/s390.md (v0, vf, vd): New mode attributes.
32045 (VFCMP, asm_fcmp, insn_cmp): New mode iterator and attributes.
32046 (*vec_cmp<insn_cmp>df_cconly, *fixuns_truncdfdi2_z13)
32047 (*fix_trunc<BFP:mode><GPR:mode>2_bfp, *floatunsdidf2_z13)
32048 (*floatuns<GPR:mode><FP:mode>2, *extendsfdf2_z13)
32049 (*extend<DSF:mode><BFP:mode>2): New insn definition.
32050 (fix_trunc<BFP:mode><GPR:mode>2_bfp, loatuns<GPR:mode><FP:mode>2)
32051 (extend<DSF:mode><BFP:mode>2): Turn into expander.
32052 (floatdi<mode>2, truncdfsf2, add<mode>3, sub<mode>3, mul<mode>3)
32053 (div<mode>3, *neg<mode>2, *abs<mode>2, *negabs<mode>2)
32054 (sqrt<mode>2): Add vector instruction.
32056 2015-05-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
32058 * config/s390/constraints.md (j00, jm1, jxx, jyy, v): New
32060 * config/s390/predicates.md (const0_operand, constm1_operand)
32061 (constable_operand): Accept vector operands.
32062 * config/s390/s390-modes.def: Add supported vector modes.
32063 * config/s390/s390-protos.h (s390_cannot_change_mode_class)
32064 (s390_function_arg_vector, s390_contiguous_bitmask_vector_p)
32065 (s390_bytemask_vector_p, s390_expand_vec_strlen)
32066 (s390_expand_vec_compare, s390_expand_vcond)
32067 (s390_expand_vec_init): Add prototypes.
32068 * config/s390/s390.c (VEC_ARG_NUM_REG): New macro.
32069 (s390_vector_mode_supported_p): New function.
32070 (s390_contiguous_bitmask_p): Mask out the irrelevant bits.
32071 (s390_contiguous_bitmask_vector_p): New function.
32072 (s390_bytemask_vector_p): New function.
32073 (s390_split_ok_p): Vector regs don't work either.
32074 (regclass_map): Add VEC_REGS.
32075 (s390_legitimate_constant_p): Handle vector constants.
32076 (s390_cannot_force_const_mem): Handle CONST_VECTOR.
32077 (legitimate_reload_vector_constant_p): New function.
32078 (s390_preferred_reload_class): Handle CONST_VECTOR.
32079 (s390_reload_symref_address): Likewise.
32080 (s390_secondary_reload): Vector memory instructions only support
32081 short displacements. Rename reload*_nonoffmem* to reload*_la*.
32082 (s390_emit_ccraw_jump): New function.
32083 (s390_expand_vec_strlen): New function.
32084 (s390_expand_vec_compare): New function.
32085 (s390_expand_vcond): New function.
32086 (s390_expand_vec_init): New function.
32087 (s390_dwarf_frame_reg_mode): New function.
32088 (print_operand): Handle addresses with 'O' and 'R' constraints.
32089 (NR_C_MODES, constant_modes): Add vector modes.
32090 (s390_output_pool_entry): Handle vector constants.
32091 (s390_hard_regno_mode_ok): Handle vector registers.
32092 (s390_class_max_nregs): Likewise.
32093 (s390_cannot_change_mode_class): New function.
32094 (s390_invalid_arg_for_unprototyped_fn): New function.
32095 (s390_function_arg_vector): New function.
32096 (s390_function_arg_float): Remove size variable.
32097 (s390_pass_by_reference): Handle vector arguments.
32098 (s390_function_arg_advance): Likewise.
32099 (s390_function_arg): Likewise.
32100 (s390_return_in_memory): Vector values are returned in a VR if
32102 (s390_function_and_libcall_value): Handle vector arguments.
32103 (s390_gimplify_va_arg): Likewise.
32104 (s390_call_saved_register_used): Consider the arguments named.
32105 (s390_conditional_register_usage): Disable v16-v31 for non-vec
32107 (s390_preferred_simd_mode): New function.
32108 (s390_support_vector_misalignment): New function.
32109 (s390_vector_alignment): New function.
32110 (TARGET_STRICT_ARGUMENT_NAMING, TARGET_DWARF_FRAME_REG_MODE)
32111 (TARGET_VECTOR_MODE_SUPPORTED_P)
32112 (TARGET_INVALID_ARG_FOR_UNPROTOTYPED_FN)
32113 (TARGET_VECTORIZE_PREFERRED_SIMD_MODE)
32114 (TARGET_VECTORIZE_SUPPORT_VECTOR_MISALIGNMENT)
32115 (TARGET_VECTOR_ALIGNMENT): Define target macro.
32116 * config/s390/s390.h (FUNCTION_ARG_PADDING): Define macro.
32117 (FIRST_PSEUDO_REGISTER): Increase value.
32118 (VECTOR_NOFP_REGNO_P, VECTOR_REGNO_P, VECTOR_NOFP_REG_P)
32119 (VECTOR_REG_P): Define macros.
32120 (FIXED_REGISTERS, CALL_USED_REGISTERS)
32121 (CALL_REALLY_USED_REGISTERS, REG_ALLOC_ORDER)
32122 (HARD_REGNO_CALL_PART_CLOBBERED, REG_CLASS_NAMES)
32123 (FUNCTION_ARG_REGNO_P, FUNCTION_VALUE_REGNO_P, REGISTER_NAMES):
32124 Add vector registers.
32125 (CANNOT_CHANGE_MODE_CLASS): Call C function.
32126 (enum reg_class): Add VEC_REGS, ADDR_VEC_REGS, GENERAL_VEC_REGS.
32127 (SECONDARY_MEMORY_NEEDED): Allow SF<->SI mode moves without
32129 (DBX_REGISTER_NUMBER, FIRST_VEC_ARG_REGNO, LAST_VEC_ARG_REGNO)
32130 (SHORT_DISP_IN_RANGE, VECTOR_STORE_FLAG_VALUE): Define macro.
32131 * config/s390/s390.md (UNSPEC_VEC_*): New constants.
32132 (VR*_REGNUM): New constants.
32133 (ALL): New mode iterator.
32134 (INTALL): Remove mode iterator.
32136 (movti): Implement TImode moves for VRs.
32137 Disable TImode splitter for VR targets.
32138 Implement splitting TImode GPR<->VR moves.
32139 (reload*_tomem_z10, reload*_toreg_z10): Replace INTALL with ALL.
32140 (reload<mode>_nonoffmem_in, reload<mode>_nonoffmem_out): Rename to
32141 reload<mode>_la_in, reload<mode>_la_out.
32142 (*movdi_64, *movsi_zarch, *movhi, *movqi, *mov<mode>_64dfp)
32143 (*mov<mode>_64, *mov<mode>_31): Add vector instructions.
32144 (TD/TF mode splitter): Enable for GPRs only (formerly !FP).
32145 (mov<mode> SF SD): Prefer lder, lde for loading.
32146 Add lrl and strl instructions.
32147 Add vector instructions.
32148 (strlen<mode>): Rename old strlen<mode> to strlen_srst<mode>.
32149 Call s390_expand_vec_strlen on z13.
32150 (*cc_to_int): Change predicate to nonimmediate_operand.
32151 (addti3): Rename to *addti3. New expander.
32152 (subti3): Rename to *subti3. New expander.
32153 * config/s390/vector.md: New file.
32155 2015-05-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
32157 * common/config/s390/s390-common.c (processor_flags_table): Add
32159 * config.gcc: Add z13.
32160 * config/s390/s390-opts.h (enum processor_type): Add
32161 PROCESSOR_2964_Z13.
32162 * config/s390/s390.c (s390_adjust_priority): Check for
32163 PROCESSOR_2964_Z13.
32164 (s390_reorg): Likewise.
32165 (s390_sched_reorder): Likewise.
32166 (s390_sched_variable_issue): Likewise.
32167 (s390_loop_unroll_adjust): Likewise.
32168 (s390_option_override): Likewise. Default to -mvx when available.
32169 * config/s390/s390.h (enum processor_flags): Add PF_Z13 and PF_VX.
32170 (TARGET_CPU_Z13, TARGET_CPU_VX, TARGET_Z13, TARGET_VX)
32171 (TARGET_VX_ABI): Define macros.
32173 (TARGET_DEFAULT): Add MASK_OPT_VX.
32174 * config/s390/s390.md ("cpu" attribute): Add z13.
32175 ("cpu_facility" attribute): Add vec.
32176 * config/s390/s390.opt (processor_type): Add z13.
32177 (mvx): New options.
32178 * doc/invoke.texi: Add z13 option for -march.
32180 2015-05-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
32182 * config/s390/predicates.md (shift_count_or_setmem_operand): Add
32183 mode check to make sure that only scalar integer values are
32186 2015-05-19 Jan Hubicka <hubicka@ucw.cz>
32188 * tree.c (verify_type_variant): Fix #undef.
32189 (gimple_canonical_types_compatible_p): Move here from lto.c
32190 (verify_type): Verify TYPE_CANONICAL compatibility.
32191 * tree.h (gimple_canonical_types_compatible_p): Declare.
32193 2015-05-19 Jakub Jelinek <jakub@redhat.com>
32195 PR middle-end/66199
32196 * tree.h (OMP_TEAMS_COMBINED): Define.
32197 * gimplify.c (enum gimplify_omp_var_data): Add
32198 GOVD_LINEAR_LASTPRIVATE_NO_OUTER.
32199 (enum omp_region_type): Add ORT_COMBINED_TEAMS.
32200 (omp_notice_variable): Accept both ORT_TEAMS
32201 and ORT_COMBINED_TEAMS. Don't recurse if
32202 GOVD_LINEAR_LASTPRIVATE_NO_OUTER is set and either
32203 GOVD_LINEAR is set, or GOVD_LASTPRIVATE without
32205 (omp_no_lastprivate): New function.
32206 (gimplify_scan_omp_clauses): For OMP_CLAUSE_LASTPRIVATE
32207 and OMP_CLAUSE_LINEAR, if omp_no_lastprivate, don't
32208 notice_outer and set appropriate bits, otherwise make
32209 sure default(none) combined constructs won't complain.
32210 (gimplify_adjust_omp_clauses): Remove OMP_CLAUSE_LINEAR
32211 outer special casing, for OMP_CLAUSE_LASTPRIVATE if
32212 omp_no_lastprivate either remove the clause or turn it
32213 into OMP_CLAUSE_PRIVATE.
32214 (gimplify_omp_for): Fix up handling of implicit
32215 lastprivate or linear iterators.
32216 (gimplify_omp_workshare): For OMP_TEAMS_COMBINED use
32217 ORT_COMBINED_TEAMS.
32218 * omp-low.c (lower_omp_for_lastprivate): For combined
32219 for simd use fd.loop.n2 from the for rather than simd.
32221 2015-05-19 Richard Sandiford <richard.sandiford@arm.com>
32223 * config/cris/cris.c (cris_expand_prologue): Use gen_raw_REG
32224 instead of gen_rtx_raw_REG.
32225 (cris_expand_epilogue): Likewise.
32226 * config/microblaze/microblaze.c (microblaze_classify_address):
32228 * config/sparc/sparc.md: Likewise.
32230 2015-05-19 Uros Bizjak <ubizjak@gmail.com>
32232 * config/alpha/alpha.c (alpha_legitimize_reload_address)
32233 (alpha_preferred_reload_class, alpha_legitimate_constant_p): Use
32234 CONST_INT_P, CONST_SCALAR_INT_P and CONST_DOUBLE_P predicates.
32235 (alpha_split_reload_pair) <case CONST_INT, case CONST_WIDE_INT>:
32236 Use CASE_CONST_SCALAR_INT.
32237 (print_operand) <case 'M'>: Use mode_width_operand to check the
32238 value of the constant.
32239 * config/alpha/alpha.md (movti): Use CONST_SCALAR_INT_P predicate.
32240 * config/alpha/predicates.md (input_operand): Use general_operand
32241 instead of match_code as operand check.
32242 (symbolic_operand): Use match_code with subexpression digits.
32243 * config/alpha/constraints.md (Q): Ditto.
32245 2015-05-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
32247 * optabs.c (expand_vec_perm): Don't re-use SEL as target operand.
32249 2015-05-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
32251 * config/s390/s390.c (s390_secondary_reload): Fix check for
32252 load/store relative.
32254 2015-05-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
32256 * recog.h: Increase MAX_RECOG_ALTERNATIVES. Change type of
32257 alternative_mask to uint64_t.
32259 2015-05-19 Jakub Jelinek <jakub@redhat.com>
32261 PR tree-optimization/66187
32262 * match.pd ((bit_and (plus/minus (convert @0) (convert @1)) mask)):
32263 Pass TYPE_SIGN to tree_int_cst_min_precision. If
32264 !TYPE_OVERFLOW_WRAPS, ensure @4 is non-negative.
32266 2015-05-19 David Malcolm <dmalcolm@redhat.com>
32268 * diagnostic.c (diagnostic_report_current_module): Strengthen
32269 local "new_map" from const line_map * to
32270 const line_map_ordinary *.
32271 * genmatch.c (error_cb): Likewise for local "map".
32272 (output_line_directive): Likewise for local "map".
32273 * input.c (expand_location_1): Likewise for local "map".
32274 Pass NULL rather than &map to
32275 linemap_unwind_to_first_non_reserved_loc, since the value is never
32276 read from there, and the value written back not read from here.
32277 (is_location_from_builtin_token): Strengthen local "map" from
32278 const line_map * to const line_map_ordinary *.
32279 (dump_location_info): Strengthen locals "map" from
32280 line_map *, one to const line_map_ordinary *, the other
32281 to const line_map_macro *.
32282 * tree-diagnostic.c (loc_map_pair): Strengthen field "map" from
32283 const line_map * to const line_map_macro *.
32284 (maybe_unwind_expanded_macro_loc): Add a call to
32285 linemap_check_macro when writing to the "map" field of the
32287 Introduce local const line_map_ordinary * "ord_map", using it in
32288 place of "map" in the part of the function where we know we have
32289 an ordinary map. Strengthen local "m" from const line_map * to
32290 const line_map_ordinary *.
32292 2015-05-19 Nick Clifton <nickc@redhat.com>
32295 * config/msp430/msp430.md (zero_extendhisi2): Add support for
32296 separate source and destination registers.
32298 2015-05-19 Richard Biener <rguenther@suse.de>
32300 PR tree-optimization/66165
32301 * tree-vect-slp.c (vect_supported_load_permutation_p): Add guard
32302 for no load permutation.
32304 PR tree-optimization/66185
32305 * tree-vect-slp.c (vect_build_slp_tree): Properly roll back
32306 when building the SLP node from scalars.
32308 2015-05-19 Eric Botcazou <ebotcazou@adacore.com>
32309 Tristan Gingold <gingold@adacore.com>
32311 * insn-notes.def (UPDATE_SJLJ_CONTEXT): New note.
32312 * builtins.c (expand_builtin_update_setjmp_buf): Make global.
32313 (expand_stack_restore): Call record_new_stack_level.
32314 (expand_stack_save): Do not call do_pending_stack_adjust.
32315 * builtins.h (expand_builtin_update_setjmp_buf): Declare.
32316 * calls.c (expand_call): Call record_new_stack_level for alloca.
32317 * except.c (sjlj_mark_call_sites): Expand builtin_update_setjmp_buf
32318 wherever a NOTE_INSN_UPDATE_SJLJ_CONTEXT note is present.
32319 (update_sjlj_context): New global function.
32320 * except.h (update_sjlj_context): Declare.
32321 * explow.c (record_new_stack_level): New global function.
32322 (allocate_dynamic_stack_space): Call record_new_stack_level.
32323 * explow.h (record_new_stack_level): Declare.
32324 * final.c (final_scan_insn): Deal with NOTE_INSN_UPDATE_SJLJ_CONTEXT.
32325 * cfgrtl.c (duplicate_insn_chain): Likewise.
32327 2015-05-19 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
32329 * calls.c: Always define STACK_GROWS_DOWNWARD as 0 or 1.
32330 (mem_overlaps_already_clobbered_arg_p): Rewrite ifdef
32331 STACK_GROWS_DOWNWARD as normal if.
32332 (expand_call): Likewise.
32334 2015-05-19 Oleg Endo <olegendo@gcc.gnu.org>
32337 * config/sh/sh.md (*round_int_even): New insn_and_split and
32338 accompanying new unnamed split.
32340 2015-05-19 Richard Sandiford <richard.sandiford@arm.com>
32342 * bitmap.c (bitmap_set_range): Handle count==1 specially.
32343 (bitmap_clear_range): Likewise.
32344 * cfgcleanup.c (mark_effect): Use bitmap_clear_range and
32345 bitmap_set_range unconditionally.
32346 * df-problems.c (df_simulate_one_insn_forwards): Likewise.
32347 * df-scan.c (df_mark_reg): Likewise.
32348 * haifa-sched.c (setup_ref_regs): Likewise.
32349 * sched-rgn.c (update_live_1): Likewise.
32351 2015-05-19 Richard Sandiford <richard.sandiford@arm.com>
32353 * regs.h (END_HARD_REGNO): Delete.
32354 (END_REGNO): Move to...
32356 * bt-load.c (note_btr_set): Use END_REGNO instead of END_HARD_REGNO.
32357 * caller-save.c (mark_set_regs): Likewise.
32358 * combine.c (move_deaths, distribute_notes): Likewise.
32359 * cse.c (invalidate, invalidate_for_call): Likewise.
32360 * df-scan.c (df_ref_record): Likewise.
32361 * postreload-gcse.c (reg_changed_after_insn_p): Likewise.
32362 (record_last_reg_set_info): Likewise.
32363 * reg-stack.c (convert_regs_exit): Likewise.
32364 * reload.c (reg_overlap_mentioned_for_reload_p): Likewise.
32365 * resource.c (update_live_status): Likewise.
32366 * rtlanal.c (find_reg_fusage, find_regno_fusage): Likewise.
32368 2015-05-19 Richard Sandiford <richard.sandiford@arm.com>
32370 * rtl.h (reg_info): Add an nregs field.
32371 (REG_NREGS): Use it.
32372 (SET_REGNO_RAW): Delete.
32373 (set_regno_raw): New function.
32374 * regs.h (END_HARD_REGNO): Make equivalent to END_REGNO.
32375 (END_REGNO): Redefine in terms of REG_NREGS.
32376 * read-rtl.c (read_rtx_code): Call set_regno_raw instead of
32378 * emit-rtl.c (set_mode_and_regno): Likewise.
32379 * df-scan.c (df_ref_change_reg_with_loc): Use set_mode_and_regno
32380 instead of SET_REGNO_RAW.
32382 2015-05-19 Richard Sandiford <richard.sandiford@arm.com>
32384 * rtl.h (PUT_MODE_RAW): New macro.
32385 (PUT_REG_NOTE_KIND): Use it.
32386 (set_mode_and_regno): Declare.
32387 (gen_raw_REG): Change regno to "unsigned int".
32388 (gen_rtx_REG): Change "unsigned" to "unsigned int".
32389 (PUT_MODE): Forward to PUT_MODE_RAW for generators, otherwise
32390 use set_mode_and_regno to change the mode of registers.
32391 * gengenrtl.c (gendef): Use PUT_MODE_RAW.
32392 * emit-rtl.c (set_mode_and_regno): New function.
32393 (gen_raw_REG): Change regno to unsigned int. Use set_mode_and_regno.
32394 * caller-save.c (reg_save_code): Use set_mode_and_regno.
32395 * expr.c (init_expr_target): Likewise.
32396 * ira.c (setup_prohibited_mode_move_regs): Likewise.
32397 * postreload.c (reload_cse_simplify_operands): Likewise.
32399 2015-05-19 Richard Sandiford <richard.sandiford@arm.com>
32401 * caller-save.c (init_caller_save): Use word_mode and
32402 FIRST_PSEUDO_REGISTER when creating temporary rtxes.
32403 * expr.c (init_expr_target): Likewise.
32404 * ira.c (setup_prohibited_mode_move_regs): Likewise.
32405 * postreload.c (reload_cse_regs_1): Likewise.
32407 2015-05-19 Richard Sandiford <richard.sandiford@arm.com>
32409 * rtl.def (REG): Change format to "r".
32410 * rtl.h (rtunion): Remove rt_reg.
32411 (reg_info): New structure.
32412 (rtx_def): Add reg field to main union.
32413 (X0REGATTR): Delete.
32414 (REG_CHECK): New macro.
32415 (SET_REGNO_RAW, rhs_regno, REG_ATTRS): Use it.
32416 * rtl.c (rtx_format): Document "r".
32417 (rtx_code_size): Handle REG specially.
32418 * gengenrtl.c (special_format): Return true for formats
32420 * gengtype.c (adjust_field_rtx_def): Handle 'r' fields.
32421 Deal with REG_ATTRS after the field loop.
32422 * emit-rtl.c (gen_raw_REG): Call rtx_alloc_stat directly.
32423 * expmed.c (init_expmed): Call gen_raw_REG instead of
32425 * expr.c (init_expr_target): Likewise.
32426 * regcprop.c (maybe_mode_change): Likewise.
32427 * varasm.c (make_decl_rtl): Likewise.
32428 * final.c (leaf_renumber_regs_insn): Return early after
32430 * genemit.c (gen_exp): Handle 'r' fields.
32431 * genpeep.c (match_rtx): Likewise.
32432 * gensupport.c (subst_pattern_match): Likewise.
32433 (get_alternatives_number, collect_insn_data, alter_predicate_for_insn)
32434 (alter_constraints, subst_dup): Likewise.
32435 * read-rtl.c (read_rtx_code): Likewise.
32436 * print-rtl.c (print_rtx): Likewise.
32437 * genrecog.c (find_operand, find_matching_operand): Likewise.
32438 (validate_pattern, match_pattern_2): Likewise.
32439 (parameter::UINT, rtx_test::REGNO_FIELD): New enum values.
32440 (rtx_test::regno_field): New function.
32441 (operator ==, safe_to_hoist_p, transition_parameter_type)
32442 (parameter_type_string, print_parameter_value)
32443 (print_nonbool_test, print_test): Handle new enum values.
32444 * cselib.c (rtx_equal_for_cselib_1): Handle REG specially.
32445 * lra-constraints.c (operands_match_p): Likewise.
32447 2015-05-19 Richard Sandiford <richard.sandiford@arm.com>
32449 * df.h (df_ref_change_reg_with_loc): Remove old_regno parameter.
32450 Change type of new_regno to unsigned int.
32451 * df-scan.c (df_ref_change_reg_with_loc_1): Change type of
32452 new_regno to unsigned int.
32453 (df_ref_change_reg_with_loc): Remove old_regno parameter.
32454 Change type of new_regno to unsigned int. Use SET_REGNO_RAW.
32455 * rtl.h (SET_REGNO): Update call to df_ref_change_reg_with_loc.
32456 (SET_REGNO_RAW): Add space after ",".
32458 2015-05-19 Richard Sandiford <richard.sandiford@arm.com>
32460 * rtl.h (REG_NREGS): New macro
32461 * alias.c (record_set): Use it.
32462 * cfgcleanup.c (mark_effect): Likewise.
32463 * combine.c (likely_spilled_retval_1): Likewise.
32464 (likely_spilled_retval_p, can_change_dest_mode): Likewise.
32465 (move_deaths, distribute_notes): Likewise.
32466 * cselib.c (cselib_record_set): Likewise.
32467 * df-problems.c (df_simulate_one_insn_forwards): Likewise.
32468 * df-scan.c (df_mark_reg): Likewise.
32469 * dse.c (look_for_hardregs): Likewise.
32470 * dwarf2out.c (reg_loc_descriptor): Likewise.
32471 (multiple_reg_loc_descriptor): Likewise.
32472 * expr.c (write_complex_part, read_complex_part): Likewise.
32473 (emit_move_complex): Likewise.
32474 * haifa-sched.c (setup_ref_regs): Likewise.
32475 * ira-lives.c (mark_hard_reg_live): Likewise.
32476 * lra.c (lra_set_insn_recog_data): Likewise.
32477 * mode-switching.c (create_pre_exit): Likewise.
32478 * postreload.c (reload_combine_recognize_const_pattern): Likewise.
32479 (reload_combine_recognize_pattern): Likewise.
32480 (reload_combine_note_use, move2add_record_mode): Likewise.
32481 (reload_cse_move2add): Likewise.
32482 * reg-stack.c (subst_stack_regs_pat): Likewise.
32483 * regcprop.c (kill_value, copy_value): Likewise.
32484 (copyprop_hardreg_forward_1): Likewise.
32485 * regrename.c (verify_reg_in_set, scan_rtx_reg): Likewise.
32486 (build_def_use): Likewise.
32487 * sched-deps.c (mark_insn_reg_birth, mark_reg_death): Likewise.
32488 (deps_analyze_insn): Likewise.
32489 * sched-rgn.c (check_live_1, update_live_1): Likewise.
32490 * sel-sched.c (count_occurrences_equiv): Likewise.
32491 * valtrack.c (dead_debug_insert_temp): Likewise.
32493 2015-05-19 Richard Sandiford <richard.sandiford@arm.com>
32495 * cfgcleanup.c (mentions_nonequal_regs): Use END_REGNO.
32496 * dse.c (note_add_store): Likewise.
32497 * ira-lives.c (mark_hard_reg_dead): Likewise.
32498 * loop-invariant.c (mark_reg_store): Likewise.
32499 (mark_reg_death): Likewise.
32500 * postreload.c (reload_combine): Likewise.
32501 (reload_combine_note_store): Likewise.
32502 (reload_combine_note_use): Likewise.
32503 * recog.c (peep2_reg_dead_p): Likewise.
32505 2015-05-19 Alan Modra <amodra@gmail.com>
32507 * config/rs6000/predicates.md (gpc_reg_operand): Don't allow all
32508 hard registers numbered greater or equal to ARG_POINTER_REGNUM.
32509 (reg_or_neg_short_operand, fix_trunc_dest_operand): Delete
32511 * config/rs6000/altivec.md (save_vregs_*, restore_vregs_*):
32512 Use altivec_register_operand. Make insn predicate TARGET_ALTIVEC.
32513 * config/rs6000/rs6000.md (extzvdi_internal2): Use cc_reg_operand.
32514 * config/rs6000/vsx.md (vsx_float<VSi><mode>2): Expand comment.
32516 2015-05-19 Sameera Deshpande <Sameera.Deshpande@imgtec.com>
32518 * config/mips/mips.md (JOIN_MODE): New mode iterator.
32519 (join2_load_Store<JOIN_MODE:mode>): New pattern.
32520 (join2_loadhi): Likewise.
32521 (define_peehole2): Add peephole2 patterns to join 2 HI/SI/SF/DF-mode
32522 load-load and store-stores.
32523 * config/mips/mips.opt (mload-store-pairs): New option.
32524 (TARGET_LOAD_STORE_PAIRS): New macro.
32525 * config/mips/mips.h (ENABLE_LD_ST_PAIRS): Likewise.
32526 * config/mips/mips-protos.h (mips_load_store_bonding_p): New prototype.
32527 * config/mips/mips.c (mips_load_store_bonding_p): New function.
32529 2015-05-19 Mikhail Maltsev <maltsevm@gmail.com>
32531 * bb-reorder.c (fix_up_fall_thru_edges): Use std::swap instead of
32533 * dojump.c (do_compare_rtx_and_jump): Likewise.
32534 * expmed.c (emit_store_flag_1): Likewise.
32535 * fibonacci_heap.h (fibonacci_heap::union_with): Likewise.
32536 * final.c (sprint_ul): Use std::reverse for reversing a string.
32537 * fold-const.c (extract_muldiv_1): Use std::swap.
32538 * genmodes.c (emit_mode_int_n): Likewise.
32539 * ifcvt.c (dead_or_predicable): Likewise.
32540 * ira-build.c (ira_merge_live_ranges): Likewise.
32541 (swap_allocno_copy_ends_if_necessary): Likewise.
32542 * ira.c (ira_setup_alts): Likewise.
32543 * loop-iv.c (iv_analyze_expr): Likewise.
32544 (implies_p): Likewise.
32545 (canon_condition): Likewise.
32546 * lra-constraints.c (swap_operands): Likewise.
32547 * lra-lives.c (lra_merge_live_ranges): Likewise.
32548 * omega.c (swap): Remove.
32550 (omega_unprotect_1): Use std::swap.
32551 (omega_solve_geq): Likewise.
32552 * optabs.c (expand_binop_directly): Likewise.
32553 (expand_binop): Likewise.
32554 (emit_conditional_move): Likewise.
32555 (emit_conditional_add): Likewise.
32556 * postreload.c (reload_cse_simplify_operands): Likewise.
32557 * reg-stack.c (emit_swap_insn): Likewise.
32558 (swap_to_top): Likewise.
32559 (compare_for_stack_reg): Likewise.
32560 (subst_asm_stack_regs): Likewise.
32561 * reload.c (find_reloads): Likewise.
32562 * reload1.c (gen_reload_chain_without_interm_reg_p): Likewise.
32563 * sel-sched.c (invoke_reorder_hooks): Likewise.
32564 (create_block_for_bookkeeping): Likewise.
32565 * tree-data-ref.c (lambda_matrix_row_exchange): Remove.
32566 (lambda_matrix_right_hermite): Use std::swap.
32567 * tree-ssa-coalesce.c (sort_coalesce_list): Likewise.
32568 * tree-ssa-ifcombine.c (ifcombine_ifandif): Likewise.
32569 * tree-ssa-loop-ivopts.c (iv_ca_delta_reverse): Likewise.
32570 * tree-ssa-math-opts.c (is_widening_mult_p): Likewise.
32571 * tree-ssa-phiopt.c (hoist_adjacent_loads): Likewise.
32572 * tree-ssa-reassoc.c (linearize_expr_tree): Likewise.
32573 * tree-ssa-threadedge.c (simplify_control_stmt_condition): Likewise.
32574 * tree-vrp.c (compare_ranges): Likewise.
32575 * var-tracking.c (add_with_sets): Likewise.
32576 (vt_find_locations): Likewise.
32578 2015-05-18 Andreas Tobler <andreast@gcc.gnu.org>
32580 * config/freebsd-spec.h (FBSD_STARTFILE_SPEC): Add the bits to build
32582 (FBSD_ENDFILE_SPEC): Likewise.
32583 * config/i386/freebsd.h (STARTFILE_SPEC): Remove and use the one from
32584 config/freebsd-spec.h.
32585 (ENDFILE_SPEC): Likewise.
32587 2015-05-18 Uros Bizjak <ubizjak@gmail.com>
32588 Richard Henderson <rth@redhat.com>
32591 * config/alpha/constraints.md (Q): Rewrite as define_memory_constraint.
32592 Check for a memory location that is not a reference (using an AND)
32593 to an unaligned location here.
32594 * config/alpha/predicates.md (normal_memory_operand): Remove.
32596 2015-05-18 Alex Velenko <Alex.Velenko@arm.com>
32598 * config/arm/arm.md (andsi_not_shiftsi_si_scc): New pattern.
32599 (andsi_not_shiftsi_si_scc_no_reuse): New pattern.
32601 2015-05-18 Robert Suchanek <robert.suchanek@imgtec.com>
32603 * config/mips/mips.c (micromips_globals): New variable.
32604 (mips_set_compression_mode): Save and reinitialize target-dependent
32605 state for microMIPS.
32607 2015-05-18 Martin Liska <mliska@suse.cz>
32609 * dbgcnt.def: Add new counter.
32610 * ipa-icf.c (sem_item_optimizer::merge_classes): Use the counter.
32612 2015-05-18 Martin Liska <mliska@suse.cz>
32614 * dbgcnt.def: Sort counters.
32615 * opts.c (common_handle_option): Do not compile if
32616 -fdbg-cnt-list is enabled.
32618 2015-05-18 Tom de Vries <tom@codesourcery.com>
32620 * gimplify.c (gimplify_modify_expr): Remove do_deref handling.
32621 (gimplify_va_arg_expr): Remove do_deref handling. Remove adding of
32622 address operator to va_list operand.
32623 * tree-stdarg.c (expand_ifn_va_arg_1): Do deref of va_list operand
32625 * config/i386/i386.c (ix86_gimplify_va_arg): Remove deref on va_list
32627 * config/rs6000/rs6000.c (rs6000_gimplify_va_arg): Same.
32628 * config/s390/s390.c (s390_gimplify_va_arg): Same.
32629 * config/spu/spu.c (spu_gimplify_va_arg_expr): Same.
32631 2015-05-18 Tom de Vries <tom@codesourcery.com>
32633 * tree-ssa-tail-merge.c: Fix whitespace.
32635 2015-05-17 Jim Wilson <jim.wilson@linaro.org>
32637 * doc/invoke.texi (ARM Options, mtune): Add generic-armv7-a,
32638 cortex-a17, and cortex-a17.cortex-a7.
32640 2015-05-17 Oleg Endo <olegendo@gcc.gnu.org>
32643 * config/sh/sh.md (*addc_2r_t): Use ashift instead of mult.
32645 2015-05-17 Uros Bizjak <ubizjak@gmail.com>
32648 * config/i386/i386.c (expand_vec_perm_blend): Enable HImode and
32649 QImode inner modes for TARGET_AVX512BW. Force mask operand
32650 to a register for AVX512F modes.
32652 2015-05-16 Jan Hubicka <hubicka@ucw.cz>
32654 * toplev.c (emit_debug_global_declarations): Do not output debug info
32655 when doing slim LTO objects.
32657 2015-05-16 Jan Hubicka <hubicka@ucw.cz>
32659 * ipa-utils.h (warn_types_mismatch, odr_or_derived_type_p,
32660 odr_types_equivalent_p): Declare.
32661 (odr_type_p): Use gcc_checking_assert.
32662 (type_in_anonymous_namespace_p) Declare.
32663 (type_with_linkage_p): Declare.
32664 * common.opt (Wlto-type-mismatch): New warning.
32665 * ipa-devirt.c (compound_type_base): New function.
32666 (odr_or_derived_type_p): New function.
32667 (odr_types_equivalent_p): New function.
32668 (add_type_duplicate): Simplify.
32669 (type_with_linkage_p): Add hack to prevent false positives on C types
32670 (type_in_anonymous_namespace_p): Likewise.
32671 * tree.c (need_assembler_name_p): Use type_with_linkage.
32672 * tree.h (type_in_anonymous_namespace_p): Remove.
32673 * doc/invoke.texi (-Wlto-type-mismatch): Document
32675 2015-05-16 Jan Hubicka <hubicka@ucw.cz>
32677 * tree.c (verify_type_variant): Verify tree_base and type_common flags.
32678 (verify_type): Verify STRING_FLAG.
32680 2015-05-16 Manuel López-Ibáñez <manu@gcc.gnu.org>
32683 * tree-pretty-print.c (percent_K_format): Replace locus pointer
32684 with accessor function.
32685 * tree-diagnostic.c (diagnostic_report_current_function): Use
32686 diagnostic_location function.
32687 (maybe_unwind_expanded_macro_loc): Likewise.
32688 (virt_loc_aware_diagnostic_finalizer): Likewise.
32689 (default_tree_printer): Replace locus pointer with accessor function.
32690 * diagnostic.c (diagnostic_initialize): Initialize caret_chars array.
32691 (diagnostic_set_info_translated): Initialize second location.
32692 (diagnostic_build_prefix): Use CARET_LINE_MARGIN.
32693 (diagnostic_show_locus): Handle two locations. Call
32694 diagnostic_print_caret_line.
32695 (diagnostic_print_caret_line): New.
32696 (default_diagnostic_starter): Use diagnostic_location function.
32697 (diagnostic_report_diagnostic): Use diagnostic_location function.
32698 (verbatim): Do not set text.locus.
32699 * diagnostic.h (struct diagnostic_info): Remove location field.
32700 (struct diagnostic_context): Make caret_chars an array of two.
32701 (diagnostic_location): New inline.
32702 (diagnostic_expand_location): Handle two locations.
32703 (diagnostic_same_line): New inline.
32704 (diagnostic_print_caret_line): Declare.
32705 (CARET_LINE_MARGIN): New constant.
32706 * pretty-print.c (pp_printf): Do not set text.locus.
32707 (pp_verbatim): Do not set text.locus.
32708 * pretty-print.h (MAX_LOCATIONS_PER_MESSAGE): New constant.
32709 (struct text_info): Replace locus pointer with locations
32710 array. Add accessor functions.
32712 2015-05-16 Kugan Vivekanandarajah <kuganv@linaro.org>
32713 Zhenqiang Chen <zhenqiang.chen@linaro.org>
32716 * config/arm/arm.h (DONT_EARLY_SPLIT_CONSTANT): New macro.
32717 * config/arm/arm.md (subsi3, andsi3, iorsi3, xorsi3, movsi): Keep some
32718 large constants in register instead of splitting them.
32720 2015-05-16 Uros Bizjak <ubizjak@gmail.com>
32723 * config/alpha/alpha.c (get_aligned_mem): Also look for reload
32724 replacements in memory addresses.
32725 (get_unaligned_address): Ditto.
32727 2015-05-16 James Bowman <james.bowman@ftdichip.com>
32729 * config/ft32/*: New files for FT32 port.
32730 * doc/install.texi: Add FT32 information.
32731 * doc/invoke.texi: Add FT32 information.
32732 * doc/md.texi: Add FT32 information.
32733 * doc/contrib.texi: Self added.
32735 2015-05-15 Marc Glisse <marc.glisse@inria.fr>
32737 PR tree-optimization/64454
32738 * match.pd ((X % Y) % Y, (X % Y) < Y): New patterns.
32739 (-1 - A -> ~A): Remove unnecessary condition.
32741 2015-05-15 Gregor Richards <gregor.richards@uwaterloo.ca>
32743 * config/i386/linux.h (MUSL_DYNAMIC_LINKER): Define.
32744 * config/i386/linux64.h (MUSL_DYNAMIC_LINKER32): Define.
32745 (MUSL_DYNAMIC_LINKER64, MUSL_DYNAMIC_LINKERX32): Define.
32747 2015-05-15 Ilya Enkovich <ilya.enkovich@intel.com>
32749 * ipa-chkp.h (chkp_wrap_function): New.
32750 * ipa-chkp.c (chkp_wrap_function): Remove 'static'.
32751 (chkp_wrap_function_name): New.
32752 (chkp_build_instrumented_fndecl): Use chkp_wrap_function_name
32753 to get wrapper name.
32754 * lto-cgraph.c: Include ipa-chkp.h.
32755 (input_cgraph_1): Avoid alias chain for wrappers.
32757 2015-05-15 Ilya Enkovich <enkovich.gnu@gmail.com>
32759 PR middle-end/66134
32760 * tree-chkp.c (chkp_get_orginal_bounds_for_abnormal_copy): New.
32761 (chkp_maybe_copy_and_register_bounds): Don't copy abnormal copy.
32763 2015-05-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
32765 * config/aarch64/aarch64.h (AARCH64_TUNE_SLOWMUL): Delete.
32766 (AARCH64_FL_SLOWMUL): Delete.
32767 (AARCH64_FL_CRC): Redefine to 1<<3.
32768 (AARCH64_FL_USE_FMA_STEERING_PASS): Redefine to 1<<4.
32770 2015-05-15 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
32772 * config/arm/arm.h (LOGICAL_OP_NON_SHORT_CIRCUIT): Add appropriate
32775 2015-05-15 Uros Bizjak <ubizjak@gmail.com>
32777 * config/alpha/alpha.md (extendqidi2): Use general_operand
32778 instead of some_operand for operand[1] predicate.
32779 (extendhidi2): Ditto.
32780 (cbranchdi4): Use general_operand instead of some_operand
32781 for operand[1] and operands[2] predicates.
32782 (cstoredi4): Ditto.
32783 * config/alpha/predicates.md (some_operand): Remove unused predicate.
32784 (some_ni_operand): Ditto.
32786 2015-05-15 Uros Bizjak <ubizjak@gmail.com>
32788 * config/alpha/alpha.c (alpha_extract_integer): Do not handle
32789 CONST_WIDE_INT and CONST_DOUBLE. Assert CONST_INT_P (x).
32790 (alpha_legitimate_constant_p) <case CONST_WIDE_INT>: Check high and
32791 low part of the constant using alpha_emit_set_const_1.
32792 (alpha_expand_mov): Do not handle CONST_WIDE_INT and CONST_DOUBLE.
32794 2015-05-14 Rohit Arul Raj <rohitrulraj@freescale.com>
32796 * varasm.c (output_constant_pool_1): Pass down alignment from
32797 constant pool entry's descriptor to output_constant_pool_2.
32798 (output_object_block): Add comment prior to call to
32799 output_constant_pool_1.
32801 2015-05-14 Vladimir Makarov <vmakarov@redhat.com>
32803 PR rtl-optimization/65862
32804 * target.def (ira_change_pseudo_allocno_class): New hook.
32805 * targhooks.c (default_ira_change_pseudo_allocno_class): Default
32807 * targhooks.h (default_ira_change_pseudo_allocno_class): New extern.
32808 * doc/tm.texi.in (TARGET_IRA_CHANGE_PSEUDO_ALLOCNO_CLASS): Add the
32810 * ira-costs.c (find_costs_and_classes): Call the hook and change
32811 classes when it is necessary.
32812 * doc/tm.texi: Update.
32814 2015-05-14 Alexander Monakov <amonakov@ispras.ru>
32816 * config/i386/i386.md (sibcall_memory): Check that register with
32817 callee address is not also used as one of the arguments, instead
32818 of checking that it is not live after the sibcall.
32819 (sibcall_pop_memory): Ditto.
32820 (sibcall_value_memory): Ditto.
32821 (sibcall_value_pop_memory): Ditto.
32823 2015-05-14 Marc Glisse <marc.glisse@inria.fr>
32825 * generic-match-head.c (types_match): Handle non-types.
32826 * gimple-match-head.c (types_match): Likewise.
32827 * match.pd: Remove unnecessary TREE_TYPE for types_match.
32829 2015-05-14 Wilco Dijkstra <wdijkstr@arm.com>
32831 * config/aarch64/aarch64.md (absdi2): Optimize abs expansion.
32832 (csneg3<mode>_insn): Enable expansion of pattern.
32834 2015-05-14 Nick Clifton <nickc@redhat.com>
32836 * config/rl78/rl78.c (rl78_select_section): Select the correct
32837 default section based upon the category of the decl.
32839 2015-05-13 Segher Boessenkool <segher@kernel.crashing.org>
32841 PR rtl-optimization/30967
32842 * config/rs6000/rs6000.c (rs6000_rtx_costs): Don't consider
32843 destination mode for the cost of scc patterns.
32845 2015-05-13 Uros Bizjak <ubizjak@gmail.com>
32847 * config/i386/i386.md (*mul<mode>3_1): Merge with *mulhi3_1
32848 using SWIM248 mode iterator.
32849 (*mulv<mode>4): Use x86_64_sext_operand for operand[2] constraint.
32850 (*mulvhi4): mark operand[1] as commutative. Use nonimmediate_operand
32851 for operand[2] constraint.
32852 (*mulv<mode>4_1): Merge with *mulvhi4_1 using SWI248 mode iterator.
32854 2015-05-13 Jakub Jelinek <jakub@redhat.com>
32856 PR middle-end/66133
32857 * omp-low.c (expand_omp_taskreg): For GIMPLE_OMP_TASK expansion,
32858 make sure it is never noreturn, even when the task body does not
32860 (lower_omp_taskreg): For GIMPLE_OMP_TASK, emit GIMPLE_OMP_CONTINUE
32861 right before GIMPLE_OMP_RETURN.
32862 (make_gimple_omp_edges): Accept GIMPLE_OMP_CONTINUE as ->cont
32863 for GIMPLE_OMP_TASK. For GIMPLE_OMP_RETURN corresponding to
32864 GIMPLE_OMP_TASK add an EDGE_ABNORMAL edge from entry to exit.
32866 2015-05-13 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
32868 * params.def (PARAM_MAX_POW_SQRT_DEPTH): New param.
32869 * tree-ssa-math-opts.c: Include params.h
32870 (pow_synth_sqrt_info): New struct.
32871 (representable_as_half_series_p): New function.
32872 (get_fn_chain): Likewise.
32873 (print_nested_fn): Likewise.
32874 (dump_fractional_sqrt_sequence): Likewise.
32875 (dump_integer_part): Likewise.
32876 (expand_pow_as_sqrts): Likewise.
32877 (gimple_expand_builtin_pow): Use above to attempt to expand
32878 pow as series of square roots. Removed now unused variables.
32880 2015-05-13 Uros Bizjak <ubizjak@gmail.com>
32882 * config/alpha/alpha.c (alpha_emit_set_long_const): Remove c1 argument.
32883 (alpha_extract_integer): Redeclare as static HOST_WIDE_INT.
32884 Remove *p0 and *p1 arguments. Rewrite function.
32885 (alpha_legitimate_constant_p): Update call to alpha_extract_integer.
32886 (alpha_split_const_mov): Update calls to alpha_extract_integer and
32887 alpha_emit_set_long_const.
32888 (alpha_expand_epilogue): Update calls to alpha_emit_set_long_const.
32889 (alpha_output_mi_thunk_osf): Ditto.
32890 * config/alpha/alpha.md (movti): Do not check operands[1]
32893 2015-05-13 Richard Biener <rguenther@suse.de>
32895 PR tree-optimization/66129
32896 * tree-vect-slp.c (vect_build_slp_tree): Make sure all ops are
32898 (vect_schedule_slp_instance): Fix typo.
32900 2015-05-13 David Malcolm <dmalcolm@redhat.com>
32902 * common.opt (fdump-internal-locations): New option.
32903 * input.c: Include diagnostic-core.h.
32904 (get_end_location): New function.
32905 (write_digit): New function.
32906 (write_digit_row): New function.
32907 (dump_location_range): New function.
32908 (dump_labelled_location_range): New function.
32909 (dump_location_info): New function.
32910 * input.h (dump_location_info): New prototype.
32911 * toplev.c (compile_file): Handle flag_dump_locations.
32913 2015-05-13 Eric Botcazou <ebotcazou@adacore.com>
32915 * gimple-expr.h (is_gimple_constant): Reorder.
32916 * tree-ssa-propagate.c (before_dom_children): Use inline accessor.
32918 2015-05-13 Segher Boessenkool <segher@kernel.crashing.org>
32920 * combine.c (simplify_set): When generating a CC set, if the
32921 source already is in the correct mode, do not wrap it in a
32922 compare. Simplify the rest of that code.
32924 2015-05-13 Richard Biener <rguenther@suse.de>
32926 PR tree-optimization/66123
32927 * tree-ssa-dom.c (propagate_rhs_into_lhs): Check if we found
32930 2015-05-13 Richard Biener <rguenther@suse.de>
32932 PR middle-end/66110
32933 * alias.c (alias_sets_conflict_p): Do not treat has_zero_child
32935 * Makefile.in (dfp.o-warn): Add -Wno-strict-aliasing.
32937 2015-05-13 Michael Haubenwallner <michael.haubenwallner@ssi-schaefer.com>
32939 * doc/install.texi: Bump latest automake 1.11 version to 1.11.6.
32940 * aclocal.m4: Regenerated with automake-1.11.6.
32942 2015-05-13 Tom de Vries <tom@codesourcery.com>
32944 PR tree-optimization/66010
32945 * gimplify.h (gimplify_va_arg_internal): Remove declaration.
32946 * gimplify.c (gimplify_va_arg_internal): Remove and inline into ...
32947 * tree-stdarg.c (expand_ifn_va_arg_1): ... here. Choose between lval
32948 and rval based on do_deref.
32950 2015-05-13 Ilya Enkovich <ilya.enkovich@intel.com>
32953 * config/i386/i386.c (ix86_rtx_costs): We want to propagate
32954 link time constants into adress expressions and therefore set
32957 2015-05-13 Jakub Jelinek <jakub@redhat.com>
32960 * config/i386/i386.md (mulv<mode>4, umulv<mode>4, *umulv<mode>4):
32961 Use SWI248 iterator instead of SWI.
32962 (*mulv<mode>4_1): Use SWI48 instead of SWI. Simplify output template.
32963 Use eq_attr "alternative" "0" instead of match_test in
32964 length_immediate attribute computation.
32965 (*mulvhi4, *mulvhi4_1): New define_insns.
32968 * internal-fn.c (get_min_precision): Use UNSIGNED instead of
32969 SIGNED to get precision of non-negative value.
32971 2015-05-13 Ilya Enkovich <ilya.enkovich@intel.com>
32974 * function.c (diddle_return_value_1): Process bounds first.
32975 * config/i38/i386.c (ix86_function_value_regno_p): Add bnd1
32978 2015-05-13 Thomas Preud'homme <thomas.preudhomme@arm.com>
32980 PR rtl-optimization/64616
32981 * loop-invariant.c (can_move_invariant_reg): New.
32982 (move_invariant_reg): Call above new function to decide whether
32983 instruction can just be moved, skipping creation of temporary
32986 2015-05-12 Jan Hubicka <hubicka@ucw.cz>
32988 PR target/pr66047.c
32989 * i386.c (ix86_function_sseregparm): Only return -1 if local function
32990 with implied regparm is called from -mno-sse function.
32991 (init_cumulative_args): Output error if ix86_function_sseregparm
32992 return -1 and SSE register would be needed.
32993 (function_arg_advance_32): Likewise.
32994 (function_arg_32): Likewise.
32995 * i386.h (ix86_args): Add decl field.
32997 2015-05-12 Jan Hubicka <hubicka@ucw.cz>
33000 * ipa-inline.c (can_inline_edge_p): Allow early inlining of always
33001 inlines across optimization boundary.
33003 2015-05-12 Jason Merrill <jason@redhat.com>
33005 * config/mmix/mmix.c, config/msp430/msp430.c: Add space between
33006 string literal and macro name.
33008 2015-05-12 Steve Ellcey <sellcey@imgtec.com>
33010 * config/mips/mips.c (mips_print_operand): Remove 'y' operand code.
33011 * config/mips/mips.md (<GPR:d>lsa): Rewrite with shift operator.
33012 * config/mips/predicates.md (const_immlsa_operand): Remove log call.
33014 2015-05-12 David Malcolm <dmalcolm@redhat.com>
33016 * doc/invoke.texi (Warning Options): Add -Wmisleading-indentation.
33017 (-Wmisleading-indentation): New option.
33018 * Makefile.in (C_COMMON_OBJS): Add c-family/c-indentation.o.
33020 2015-05-12 Uros Bizjak <ubizjak@gmail.com>
33022 * config/alpha/alpha.h (TARGET_SUPPORTS_WIDE_INT): New define.
33023 * config/alpha/alpha.c (alpha_rtx_costs): Handle CONST_WIDE_INT.
33024 (alpha_extract_integer): Ditto.
33025 (alpha_legitimate_constant_p): Ditto.
33026 (alpha_split_tmode_pair): Ditto.
33027 (alpha_preferred_reload_class): Add CONST_WIDE_INT.
33028 (alpha_expand_mov): Ditto.
33029 (print_operand): Remove handling of 'H' modifier.
33030 <case 'm'>: Remove CONST_DOUBLE handling.
33031 (summarize_insn): Handle CONST_WIDE_INT.
33032 * config/alpha/alpha.md (*andsi_internal): Remove H constraint.
33034 (movti): Handle CONST_WIDE_INT.
33035 * config/alpha/constraints.md ('H'): Remove constraint definition.
33036 ('G'): Do not match MODE_FLOAT class.
33037 * config/alpha/predicates.md (const0_operand): Also match
33039 (non_add_const_operand): Ditto.
33040 (non_zero_const_operand): Ditto.
33041 (some_operand): Ditto.
33042 (input_operand): Ditto. Handle CONST_WIDE_INT.
33043 (and_operand): Do not match const_double.
33044 * config/alpha/sync.md (fetchop_constr): Remove H constraint.
33046 2015-05-12 Andrew MacLeod <amacleod@redhat.com>
33049 * coretypes.h (MEMMODEL_SYNC, MEMMODEL_BASE_MASK): New macros.
33050 (enum memmodel): Add SYNC_{ACQUIRE,RELEASE,SEQ_CST}.
33051 * tree.h (memmodel_from_int, memmodel_base, is_mm_relaxed,
33052 is_mm_consume,is_mm_acquire, is_mm_release, is_mm_acq_rel,
33053 is_mm_seq_cst, is_mm_sync): New accessor functions.
33054 * builtins.c (expand_builtin_sync_operation,
33055 expand_builtin_compare_and_swap): Use MEMMODEL_SYNC_SEQ_CST.
33056 (expand_builtin_sync_lock_release): Use MEMMODEL_SYNC_RELEASE.
33057 (get_memmodel, expand_builtin_atomic_compare_exchange,
33058 expand_builtin_atomic_load, expand_builtin_atomic_store,
33059 expand_builtin_atomic_clear): Use new accessor routines.
33060 (expand_builtin_sync_synchronize): Use MEMMODEL_SYNC_SEQ_CST.
33061 * optabs.c (expand_compare_and_swap_loop): Use MEMMODEL_SYNC_SEQ_CST.
33062 (maybe_emit_sync_lock_test_and_set): Use new accessors and
33063 MEMMODEL_SYNC_ACQUIRE.
33064 (expand_sync_lock_test_and_set): Use MEMMODEL_SYNC_ACQUIRE.
33065 (expand_mem_thread_fence, expand_mem_signal_fence, expand_atomic_load,
33066 expand_atomic_store): Use new accessors.
33067 * emit-rtl.c (need_atomic_barrier_p): Add additional enum cases.
33068 * tsan.c (instrument_builtin_call): Update check for memory model beyond
33069 final enum to use MEMMODEL_LAST.
33070 * c-family/c-common.c: Use new accessor for memmodel_base.
33071 * config/aarch64/aarch64.c (aarch64_expand_compare_and_swap): Use new
33073 * config/aarch64/atomics.md (atomic_load<mode>,atomic_store<mode>,
33074 arch64_load_exclusive<mode>, aarch64_store_exclusive<mode>,
33075 mem_thread_fence, *dmb): Likewise.
33076 * config/alpha/alpha.c (alpha_split_compare_and_swap,
33077 alpha_split_compare_and_swap_12): Likewise.
33078 * config/arm/arm.c (arm_expand_compare_and_swap,
33079 arm_split_compare_and_swap, arm_split_atomic_op): Likewise.
33080 * config/arm/sync.md (atomic_load<mode>, atomic_store<mode>,
33081 atomic_loaddi): Likewise.
33082 * config/i386/i386.c (ix86_destroy_cost_data, ix86_memmodel_check):
33084 * config/i386/sync.md (mem_thread_fence, atomic_store<mode>): Likewise.
33085 * config/ia64/ia64.c (ia64_expand_atomic_op): Add new memmodel cases and
33087 * config/ia64/sync.md (mem_thread_fence, atomic_load<mode>,
33088 atomic_store<mode>, atomic_compare_and_swap<mode>,
33089 atomic_exchange<mode>): Use new accessors.
33090 * config/mips/mips.c (mips_process_sync_loop): Likewise.
33091 * config/pa/pa.md (atomic_loaddi, atomic_storedi): Likewise.
33092 * config/rs6000/rs6000.c (rs6000_pre_atomic_barrier,
33093 rs6000_post_atomic_barrier): Add new cases.
33094 (rs6000_expand_atomic_compare_and_swap): Use new accessors.
33095 * config/rs6000/sync.md (mem_thread_fence): Add new cases.
33096 (atomic_load<mode>): Add new cases and use new accessors.
33097 (store_quadpti): Add new cases.
33098 * config/s390/s390.md (mem_thread_fence, atomic_store<mode>): Use new
33100 * config/sparc/sparc.c (sparc_emit_membar_for_model): Use new accessors.
33101 * doc/extend.texi: Update docs to indicate 16 bits are used for memory
33104 2015-05-12 Jan Hubicka <hubicka@ucw.cz>
33106 * ipa-devirt.c (type_with_linkage_p): New function.
33107 (type_in_anonymous_namespace_p): Move here from tree.c; assert that
33109 (odr_type_p): Move here from ipa-utils.h; use type_with_linkage_p.
33110 (can_be_name_hashed_p): Simplify.
33111 (hash_odr_name): Check that type has linkage before checking if it is
33113 (types_same_for_odr): Likewise.
33114 (odr_name_hasher::equal): Likewise.
33115 (odr_subtypes_equivalent_p): Likewise.
33116 (warn_types_mismatch): Likewise.
33117 (get_odr_type): Likewise.
33118 (odr_types_equivalent_p): Fix checking of TYPE_MAIN_VARIANT.
33119 * ipa-utils.h (odr_type_p): Move offline.
33120 * tree.c (need_assembler_name_p): Fix handling of types
33122 (type_in_anonymous_namespace_p): Move to ipa-devirt.c
33124 2015-05-12 David Malcolm <dmalcolm@redhat.com>
33126 * timevar.c (timevar_enable): Delete in favor of...
33127 (g_timer): New global.
33128 (struct timevar_def): Move to timevar.h inside class timer.
33129 (struct timevar_stack_def): Likewise.
33130 (timevars): Delete global in favor of field "m_timevars" within
33131 class timer in timevar.h
33132 (stack): Likewise, in favor of field "m_stack".
33133 (unused_stack_instances): Likewise, in favor of field
33134 "m_unused_stack_instances".
33135 (start_time): Likewise, in favor of field "m_start_time".
33136 (get_time): Eliminate check for timevar_enable.
33137 (timer::timer): New function, built from part of timevar_init.
33138 (timevar_init): Rewrite idempotency test from using
33139 "timevar_enable" bool to using dynamic allocation of "g_timer".
33140 Move rest of implementation into timer's constructor.
33141 (timevar_push_1): Rename to...
33142 (timer::push): ...this, adding "m_" prefixes to variables that
33143 are now fields of timer.
33144 (timevar_pop_1): Likewise, rename to...
33145 (timer::pop): ...this, and add "m_" prefixes.
33146 (timevar_start): Replace test for "timevar_enable" with one for
33147 "g_timer", and move bulk of implementation to...
33148 (timer::start): ...here, adding "m_" prefixes.
33149 (timevar_stop): Likewise, from here...
33150 (timer::stop): ...to here.
33151 (timevar_cond_start): Likewise, from here...
33152 (timer::cond_start): ...to here.
33153 (timevar_cond_stop): Likewise, from here...
33154 (timer::cond_stop): ...to here.
33155 (validate_phases): Rename to...
33156 (timer::validate_phases): ...this, and add "m_" prefixes. Make
33157 locals "total" and "tv" const.
33158 (timevar_print): Rename to...
33159 (timer::print): ...this, and add "m_" prefixes. Make locals
33160 "total" and "tv" const. Eliminate test for timevar_enable.
33161 * timevar.h (timevar_enable): Eliminate.
33162 (g_timer): New declaration.
33163 (timevar_push_1): Eliminate.
33164 (timevar_pop_1): Eliminate.
33165 (timevar_print): Eliminate.
33166 (class timer): New class.
33167 (timevar_push): Rewrite to use g_timer.
33168 (timevar_pop): Likewise.
33169 * toplev.c (toplev::~toplev): Likewise.
33171 2015-05-12 Richard Earnshaw <rearnsha@arm.com>
33173 * arm-protos.h (arm_sched_autopref): Delete.
33174 (tune_params): Re-organize, use enums for flag values.
33175 (FUSE_OPS): New macro.
33176 * arm.c (ARM_PREFETCH_NOT_BENEFICIAL): Update.
33177 (ARM_PREFETCH_BENEFICIAL): Likewise.
33178 (ARM_FUSE_NOTHING, ARM_FUSE_MOVW_MOVT): Delete.
33179 (arm_slowmul_tune, arm_fastmul_tune, arm_strongarm_tune)
33180 (arm_xscale_tune, arm_9e_tune, arm_marvell_pj4_tune)
33181 (arm_v6t2_tune, arm_cortex_tune, arm_cortex_a8_tune)
33182 (arm_cortex_a7_tune, arm_cortex_a15_tune, arm_cortex_a53_tune)
33183 (arm_cortex_a57_tune, arm_xgene1_tune, arm_cortex_a5_tune)
33184 (arm_cortex_a9_tune, arm_cortex_a12_tune, arm_v7m_tune)
33185 (arm_cortex_m7_tune, arm_v6m_tune, arm_fa726te_tune): Use new
33187 (arm_option_override, thumb2_reorg, arm_print_tune_info)
33188 (aarch_macro_fusion_pair_p): Update uses of current_tune.
33189 * arm.h (LOGICAL_OP_NON_SHORT_CIRCUIT): Likewise.
33191 2015-05-12 Sandra Loosemore <sandra@codesourcery.com>
33193 * config/nios2/nios2.md (trap, ctrapsi4): Use "trap" instead of
33196 2015-05-12 Chung-Lin Tang <cltang@codesourcery.com>
33197 Sandra Loosemore <sandra@codesourcery.com>
33199 * config/nios2/nios2.h (enum reg_class): Add IJMP_REGS enum
33201 (REG_CLASS_NAMES): Add "IJMP_REGS".
33202 (REG_CLASS_CONTENTS): Add new entry for IJMP_REGS.
33203 * config/nios2/nios2.md (indirect_jump,*tablejump): Adjust to
33204 use new "c" register constraint.
33205 * config/nios2/constraint.md (c): New register constraint
33206 corresponding to IJMP_REGS.
33208 2015-05-12 Segher Boessenkool <segher@kernel.crashing.org>
33210 * config/rs6000/rs6000.md (*rotlsi3_internal4, *rotlsi3_internal5,
33211 *rotlsi3_internal6, rlwinm, 5 unnamed define_insns, and 6
33212 define_splits): Delete, revamp, transmogrify into ...
33213 (*rotlsi3_mask, *rotlsi3_mask_dot, *rotlsi3_mask_dot2,
33214 *ashlsi3_imm_mask, *ashlsi3_imm_mask_dot, *ashlsi3_imm_mask_dot2,
33215 *lshrsi3_imm_mask, *lshrsi3_imm_mask_dot, *lshrsi3_imm_mask_dot2):
33218 2015-05-12 Segher Boessenkool <segher@kernel.crashing.org>
33220 * config/rs6000/rs6000.md (rs6000_adjust_atomic_subword): Use
33221 gen_ashlsi3 and gen_andsi3 instead of gen_rlwinm.
33223 2015-05-12 Segher Boessenkool <segher@kernel.crashing.org>
33225 * config/rs6000/rs6000.md (extzv): FAIL for SImode.
33226 (extzvsi_internal, *extzvsi_internal1, *extzvsi_internal2,
33227 *rotlsi3_internal7le, *rotlsi3_internal7be, *rotlsi3_internal8le,
33228 *rotlsi3_internal8be, *rotlsi3_internal9le, *rotlsi3_internal9be,
33229 *rotlsi3_internal10le, *rotlsi3_internal10be, *rotlsi3_internal11le,
33230 *rotlsi3_internal11be, *rotlsi3_internal12le, *rotlsi3_internal12be,
33231 *lshiftrt_internal1le, *lshiftrt_internal1be, *lshiftrt_internal2le,
33232 *lshiftrt_internal2be, *lshiftrt_internal3le, *lshiftrt_internal3be,
33233 *lshiftrt_internal4le, *lshiftrt_internal4be, *lshiftrt_internal5le,
33234 *lshiftrt_internal5be, *lshiftrt_internal5le, *lshiftrt_internal5be,
33235 *rotldi3_internal7le, *rotldi3_internal7be, *rotldi3_internal8le,
33236 *rotldi3_internal8be, *rotldi3_internal9le, *rotldi3_internal9be,
33237 *rotldi3_internal10le, *rotldi3_internal10be, *rotldi3_internal11le,
33238 *rotldi3_internal11be, *rotldi3_internal12le, *rotldi3_internal12be,
33239 *rotldi3_internal13le, *rotldi3_internal13be, *rotldi3_internal14le,
33240 *rotldi3_internal14be, *rotldi3_internal15le, *rotldi3_internal15be,
33241 and 30 corresponding splitters): Delete.
33243 2015-05-12 Segher Boessenkool <segher@kernel.crashing.org>
33245 * config/rs6000/rs6000.md (define_split for bswaphi): Don't use
33248 2015-05-12 Segher Boessenkool <segher@kernel.crashing.org>
33250 * combine.c (recog_for_combine_1): New function, factored out
33251 from recog_for_combine.
33252 (change_zero_ext): New function.
33253 (recog_for_combine): If recog fails, try again with the pattern
33254 modified by change_zero_ext; if that still fails, restore the
33257 2015-05-12 Segher Boessenkool <segher@kernel.crashing.org>
33259 * combine.c (get_undo_marker): New function.
33260 (undo_to_marker): New function, largely factored out from ...
33261 (undo_all): ... this. Adjust.
33263 2015-05-12 Richard Biener <rguenther@suse.de>
33265 PR tree-optimization/66101
33266 * tree-ssa-dce.c (remove_dead_stmt): Properly mark loops for
33267 fixup if we turn a loop exit edge to a fallthru edge.
33269 2015-05-12 Richard Biener <rguenther@suse.de>
33271 PR tree-optimization/37021
33272 * tree-vectorizer.h (struct _slp_tree): Add two_operators flag.
33273 (SLP_TREE_TWO_OPERATORS): New define.
33274 * tree-vect-slp.c (vect_create_new_slp_node): Initialize
33275 SLP_TREE_TWO_OPERATORS.
33276 (vect_build_slp_tree_1): Allow two mixing plus/minus in an
33278 (vect_build_slp_tree): Adjust.
33279 (vect_analyze_slp_cost_1): Likewise.
33280 (vect_schedule_slp_instance): Vectorize mixing plus/minus by
33281 emitting two vector stmts and mixing the results.
33283 2015-05-12 Dominik Vogt <vogt@linux.vnet.ibm.com>
33285 * call.c (print_z_candidates): Remove dead code.
33287 2015-05-12 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
33289 * config/s390/2827.md: Split zEC12_simple into zEC12_simple_int
33290 and zEC12_simple_fp.
33291 * config/s390/s390.c (s390_issue_rate): Set issue rate for zEC12
33294 2015-05-12 Tom de Vries <tom@codesourcery.com>
33296 PR tree-optimization/66010
33297 * gimplify.c (gimplify_modify_expr): Handle new do_deref argument of
33299 * gimplify.h (gimplify_va_arg_internal): Remove loc parameter.
33300 (gimplify_va_arg_internal): Remove loc parameter. Assert no array-typed
33301 va_lists are passed, and remove corresponding handling.
33302 (gimplify_va_arg_expr): Only take address of ap if necessary. Add
33303 do_deref argument to ifn_va_arg.
33304 * tree-stdarg.c (expand_ifn_va_arg_1): Handle new do_deref argument of
33307 2015-05-12 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
33310 * config/arm/arm.md (movcond_addsi): Check that operands[2] is a
33311 REG before taking its REGNO.
33313 2015-05-12 Thomas Preud'homme <thomas.preudhomme@arm.com>
33315 * combine.c i(set_nonzero_bits_and_sign_copies): Split code updating
33316 rsp->sign_bit_copies and rsp->nonzero_bits into ...
33317 (update_rsp_from_reg_equal): This. Also use REG_EQUAL note on src if
33318 present to get more accurate information about the number of sign bit
33319 copies and non zero bits.
33321 2015-05-12 Richard Biener <rguenther@suse.de>
33323 * tree-vect-slp.c (vect_build_slp_tree_1): For BB vectorization
33324 do not allow unrolling.
33326 2015-05-11 Richard Henderson <rth@redhat.com>
33328 * config/i386/i386-modes.def (CCP): New.
33329 * config/i386/i386.c (put_condition_code): Handle it.
33330 (ix86_match_ccmode, ix86_cc_modes_compatible): Likewise.
33332 2015-05-11 Richard Henderson <rth@redhat.com>
33334 * target.def (md_asm_clobbers): Replace with...
33335 (md_asm_adjust): this.
33336 * tm.texi.in (TARGET_MD_ASM_CLOBBERS): Remove.
33337 (TARGET_MD_ASM_ADJUST): New.
33338 * tm.texi: Rebuild.
33339 * hooks.c (hook_tree_tree_tree_tree_3rd_identity): Remove.
33340 * hooks.h (hook_tree_tree_tree_tree_3rd_identity): Remove.
33341 * system.h (TARGET_MD_ASM_CLOBBERS): Poison.
33343 * cfgexpand.c (check_operand_nalternatives): Accept vector of
33344 constraints instead of lists of outputs and inputs.
33345 (expand_asm_stmt): Save and restore input_location around the
33346 body of the function. Move asm data into vectors instead of
33347 building tree lists. Generate cleanup sequences as needed,
33348 rather than waiting til the end. Use new md_asm_adjust hook.
33350 * config/vxworks.c: Include vec.h before target.h.
33351 * gimple.c: Likewise.
33352 * incpath.c: Likewise.
33353 * mode-switching.c: Likewise.
33355 * config/cris/cris.c (cris_md_asm_clobbers): Convert to...
33356 (cris_md_asm_adjust): this.
33357 (TARGET_MD_ASM_CLOBBERS): Remove.
33358 (TARGET_MD_ASM_ADJUST): New.
33359 * config/i386/i386.c (ix86_md_asm_clobbers): Convert to...
33360 (ix86_md_asm_adjust): this.
33361 (TARGET_MD_ASM_CLOBBERS): Remove.
33362 (TARGET_MD_ASM_ADJUST): New.
33363 * config/mn10300/mn10300.c (mn10300_md_asm_clobbers): Convert to...
33364 (mn10300_md_asm_adjust): this.
33365 (TARGET_MD_ASM_CLOBBERS): Remove.
33366 (TARGET_MD_ASM_ADJUST): New.
33367 * config/rs6000/rs6000.c (rs6000_md_asm_clobbers): Convert to...
33368 (rs6000_md_asm_adjust): this.
33369 (TARGET_MD_ASM_CLOBBERS): Remove.
33370 (TARGET_MD_ASM_ADJUST): New.
33371 * config/visium/visium.c (visium_md_asm_clobbers): Convert to...
33372 (visium_md_asm_adjust): this.
33373 (TARGET_MD_ASM_CLOBBERS): Remove.
33374 (TARGET_MD_ASM_ADJUST): New.
33376 2015-05-11 Richard Henderson <rth@redhat.com>
33378 * gimplify.c (gimplify_asm_expr): Set gimple_asm_volatile_p
33379 if noutputs is zero.
33380 * cfgexpand.c (expand_asm_stmt): Use gimple_asm_volatile_p unchanged.
33382 * cfgexpand.c (expand_asm_operands): Merge into...
33383 (expand_asm_stmt): ... here.
33385 * cfgexpand.c (expand_asm_operands): Don't call
33386 resolve_asm_operand_names.
33387 * stmt.c (resolve_asm_operand_names): Clarify block comment.
33389 2015-05-11 Jan Hubicka <hubicka@ucw.cz>
33391 * dwarf2out.c (gen_member_die): Sanity check that we access
33392 TYPE_MAIN_VARIANT for TYPE_METHODS.
33393 * function.c (use_register_for_decl): Look for TYPE_MAIN_VARIANT when
33394 checking TYPE_METHODS.
33395 * tree.c (free_lang_data_in_type): See TYPE_METHODS to error_mark_node
33397 (build_distinct_type_copy): Clear TYPE_METHODS.
33398 (verify_type_variant): Verify that TYPE_METHODS is NULL for variants.
33399 (verify_type): Allow TYPE_METHODS to be error_mark_node.
33400 * tree.def: Update docs of TYPE_STUB_DECL and TYPE_METHODS.
33402 2015-05-11 Eric Botcazou <ebotcazou@adacore.com>
33404 * emit-rtl.c (emit_pattern_after_setloc): Add missing guard.
33405 (emit_pattern_before_setloc): Likewise.
33407 2015-05-11 Richard Sandiford <richard.sandiford@arm.com>
33409 * genrecog.c (match_pattern_1): Expect the pattern to be a SEQUENCE
33410 for define_peephole2s.
33411 (get_peephole2_pattern): New function.
33412 (main): Use it. Call validate_pattern.
33414 2015-05-11 Pitchumani Sivanupandi <pitchumani.s@atmel.com>
33416 * config/avr/avr.c (avr_hard_regno_call_part_clobbered): Use
33417 LAST_CALLEE_SAVED_REG instead of hard-coded register number.
33418 (Last callee saved reg is different for AVR_TINY architecture)
33420 2015-05-11 Uros Bizjak <ubizjak@gmail.com>
33422 * config/i386/i386.c (ix86_loop_unroll_adjust): Use PATTERN (insn)
33423 when looking for memory references.
33425 2015-05-11 Alexander Monakov <amonakov@ispras.ru>
33428 * config/i386/i386.c (ix86_function_ok_for_sibcall): Allow PIC sibcalls
33429 via function pointers.
33431 2015-05-11 Alexander Monakov <amonakov@ispras.ru>
33433 * calls.c (prepare_call_address): Transform PLT call to GOT lookup and
33434 indirect call by forcing address into a pseudo with -fno-plt.
33435 * common.opt (flag_plt): New option.
33436 * doc/invoke.texi (Code Generation Options): Add -fno-plt.
33437 ([-fno-plt]): Document.
33439 2015-05-11 Markus Trippelsdorf <markus@trippelsdorf.de>
33442 * config/rs6000/option-defaults.h: Add space between string literal
33445 2015-05-11 Thomas Preud'homme <thomas.preudhomme@arm.com>
33447 * gcc.target/arm/pr64616.c: Test dump rather than assembly to work
33448 accross ARM targets.
33450 2015-05-11 Christian Bruel <christian.bruel@st.com>
33452 * config/arm/arm-protos.h (thumb_code, thumb1_code): Remove.
33453 * config/arm/vxworks.h (thumb_code): Replace with TARGET_THUMB.
33455 2015-05-11 Richard Sandiford <richard.sandiford@arm.com>
33457 PR rtl-optimization/66076
33458 * rtlanal.c (generic_subrtx_iterator <T>::add_single_to_queue):
33459 Don't grow the heap array if it is already big enough from a
33460 previous iteration.
33462 2015-05-11 Christian Bruel <christian.bruel@st.com>
33464 * config/arm/arm-protos.h (arm_declare_function_name): Declare.
33465 (is_called_in_ARM_mode): Remove.
33466 * config/arm/arm.c (is_called_in_ARM_mode): Declare static bool.
33467 (arm_declare_function_name): Moved from from ARM_DECLARE_FUNCTION_NAME.
33468 * config/arm/arm.h (ARM_DECLARE_FUNCTION_NAME): Call
33469 arm_declare_function_name.
33471 2015-05-11 Christian Bruel <christian.bruel@st.com>
33473 * config/arm/arm.c (arm_option_override): Reoganized and split into :
33474 (arm_option_params_internal); New function.
33475 (arm_option_check_internal): New function.
33476 (arm_option_override_internal): New function.
33477 (thumb_code, thumb1_code): Remove.
33478 * config/arm/arm.h (TREE_TARGET_THUMB, TREE_TARGET_THUMB1): New macros.
33479 (TREE_TARGET_THUM2, TREE_TARGET_ARM): Likewise.
33480 (thumb_code, thumb1_code): Remove.
33481 * config/arm/arm.md (is_thumb, is_thumb1): Check TARGET flag.
33483 2015-05-11 Uros Bizjak <ubizjak@gmail.com>
33485 * config/alpha/alpha.c (alpha_emit_set_const_1)
33486 (alpha_emit_set_long_const, alpha_extract_integer)
33487 (alpha_legitimate_constant_p, alpha_split_const_mov)
33488 (alpha_expand_block_clear, alpha_expand_zap_mask, print_operand):
33489 [HOST_BITS_PER_WIDE_INT < 64]: Remove dead code.
33490 (alpha_emit_set_const_1): Change "(HOST_WIDE_INT) 1" to
33492 * config/alpha/predicates.md (mode_mask_operand): Do not match
33494 [HOST_BITS_PER_WIDE_INT < 64]: Remove dead code.
33495 * config/alpha/alpha.md (abstf, *abstf_internal, UNSPEC_ZAP splitter):
33496 Change "(HOST_WIDE_INT) 1" to HOST_WIDE_INT_1U.
33497 [HOST_BITS_PER_WIDE_INT < 64]: Remove dead code.
33498 (*negtf_internal): Use gen_int_mode instead of immed_double_const.
33500 2015-05-11 Jakub Jelinek <jakub@redhat.com>
33503 * config/s390/linux.h (TARGET_BINDS_LOCAL_P): Define to
33504 default_binds_local_p_2.
33505 * config/arm/linux-elf.h (TARGET_BINDS_LOCAL_P): Likewise.
33506 * config/aarch64/aarch64-linux.h (TARGET_BINDS_LOCAL_P): Likewise.
33508 2015-05-09 Jan Hubicka <hubicka@ucw.cz>
33510 * tree.c (verify_type_variant): Check TYPE_VALUES_RAW and TYPE_PRECISION
33512 2015-05-09 Jan Hubicka <hubicka@ucw.cz>
33514 Patch by Richard Biener
33515 * coverage.c (coverage_obj_init): Delay building of type variant
33516 until the type is finished.
33518 2015-05-09 Jan Hubicka <hubicka@ucw.cz>
33520 * ipa-devirt.c (warn_types_mismatch): Do not ICE when warning about
33521 mismatch between C and C++ type; compoare correctly ARG_TYPES
33522 for non-prototypes and output correctly parameter index for METHOD_TYPE.
33523 (odr_types_equivalent_p): Fix wording of warning about attributes;
33524 it is OK to match prototype and non-prototype.
33526 2015-05-09 Jan Hubicka <hubicka@ucw.cz>
33528 * tree.c (free_lang_data_in_type): Free TREE_PURPOSE of
33529 TYPE_ARG_TYPES list.
33530 (verify_type): Permit non-NULL TREE_PURPOSE in non-LTO builds.
33531 * tree.def (FUNCTION_TYPE): Document TREE_PURPOSE in TYPE_ARG_TYPES
33533 2015-05-09 Jan Hubicka <hubicka@ucw.cz>
33535 * tree.c (verify_type): Verify TYPE_BINFO and TYPE_VALUES_RAW.
33536 * tree.h (is_lang_specific): Constify.
33538 2015-05-09 Marc Glisse <marc.glisse@inria.fr>
33540 PR tree-optimization/64454
33541 * tree-vrp.c (extract_range_from_binary_expr_1) <TRUNC_MOD_EXPR>:
33544 2015-05-08 Jason Merrill <jason@redhat.com>
33546 * bitmap.c, c/c-aux-info.c, cfg.c, cfghooks.c, cgraph.c,
33547 config/aarch64/aarch64.md config/alpha/vms.h, config/darwin.c,
33548 config/darwin.h, config/darwin9.h, config/elfos.h,
33549 config/i386/bsd.h, config/ia64/ia64.c, config/lm32/lm32.h,
33550 config/microblaze/microblaze.h, config/mips/mips.h,
33551 config/mmix/mmix.c, config/msp430/msp430.c, config/nios2/nios2.h,
33552 config/nvptx/nvptx.c, config/nvptx/nvptx.h, config/pa/pa.c,
33553 config/pa/pa.h, config/rs6000/rs6000.c, config/rs6000/sysv4.h,
33554 config/rs6000/xcoff.h, config/rx/rx.h, config/s390/s390.h,
33555 config/sparc/sol2.h, config/sparc/sparc.h, config/visium/visium.h,
33556 cppbuiltin.c, defaults.h, doc/invoke.texi, dwarf2cfi.c,
33557 dwarf2out.c, final.c, gcc.c, gcov-dump.c, gcov.c, ipa-cp.c,
33558 ipa-inline.c, ipa-polymorphic-call.c, ipa-profile.c, ipa-prop.c,
33559 ira-color.c, ira.c, loop-doloop.c, loop-iv.c, mcf.c,
33560 modulo-sched.c, predict.c, profile.c, stor-layout.c, toplev.c,
33561 tree-ssa-reassoc.c, value-prof.c, wide-int-print.cc: Add space
33562 between string literal and macro name.
33564 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
33566 * jump.c: Change argument types to rtx_insn *.
33569 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
33571 * lra-constraints.c: Change argument type to rtx_insn *.
33573 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
33575 * df-problems.c: Change argument type to rtx_insn *.
33577 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
33579 * combine.c: Change argument type to rtx_insn *.
33581 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
33584 * rtlanal.c: Change argument type to rtx_insn *.
33586 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
33588 * sched-deps.c: Change argument types to rtx_insn *.
33589 * sched-int.h: Adjust.
33591 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
33593 * dwarf2cfi.c: Change argument type to rtx_insn *.
33595 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
33597 * ira.c (decrease_live_ranges_number): Changetype of local
33598 variable to rtx_insn *.
33599 * recog.c: Change argument types to rtx_insn *.
33602 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
33604 * reorg.c: Change argument types to rtx_insn *.
33606 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
33608 * ira-color.c: Change argument types to rtx_insn *.
33609 * lra-eliminations.c: Likewise.
33612 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
33614 * gcse.c: Change argument types to rtx_insn *.
33616 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
33618 * cse.c (cse_change_cc0_mode): Change argument type to rtx_insn *.
33620 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
33622 * emit-rtl.c (emit_debug_insn_before): Change argument type to
33626 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
33628 * emit-rtl.c (emit_note_before): Change argument type to rtx_insn *.
33631 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
33633 * emit-rtl.c (emit_note_after): Change argument type to rtx_insn *.
33636 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
33638 * emit-rtl.c (prev_cc0_setter): Change argument type to rtx_insn *.
33641 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
33643 * rtlanal.c (noop_move_p): Change argument type to rtx_insn *.
33646 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
33648 * rtlanal.c (add_shallow_copy_of_reg_note): Change argument type
33652 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
33654 * rtlanal.c (remove_reg_equal_equiv_notes): Change argument type
33658 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
33660 * except.c (can_nonlocal_goto): Change type of argument to
33664 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
33666 * rtlanal.c (computed_jump_p): Cange argument type to rtx_insn *.
33669 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
33671 * rtlanal.c (in_insn_list_p): Renamed from in_expr_list_p.
33672 * cfgrtl.c (can_delete_label_p): Adjust.
33675 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
33677 * reorg.c (stop_search_p): Change argument to rtx_insn *.
33679 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
33681 * except.c (make_reg_eh_region_note): Change argument to
33683 (make_reg_eh_region_note_nothrow_nononlocal): Likewise.
33684 * except.h: Adjust.
33686 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
33688 * mode-switching.c (commit_mode_sets): Change type of local
33689 variable from rtx to rtx_insn *.
33691 2015-05-08 Jim Wilson <jim.wilson@linaro.org>
33693 * doc/install.texi (--enable-languages): Add missing jit and lto info.
33694 Add ^ to grep command.
33695 * doc/match-and-simplify.texi (GIMPLE API): Add missing fourth tree
33696 arg to last gimple_simplify declaration. Add missing gimple_build
33697 declaration for built-in function case with four tree args.
33699 2015-05-08 Gregor Richards <gregor.richards@uwaterloo.ca>
33700 Szabolcs Nagy <szabolcs.nagy@arm.com>
33702 * config/mips/linux.h (MUSL_DYNAMIC_LINKER32): Define.
33703 (MUSL_DYNAMIC_LINKER64, MUSL_DYNAMIC_LINKERN32): Define.
33704 (GNU_USER_DYNAMIC_LINKERN32): Update.
33706 2015-05-08 Richard Biener <rguenther@suse.de>
33708 PR tree-optimization/66036
33709 * tree-vect-data-refs.c (vect_compute_data_ref_alignment):
33710 Handle strided group loads.
33711 (vect_verify_datarefs_alignment): Likewise.
33712 (vect_enhance_data_refs_alignment): Likewise.
33713 (vect_analyze_group_access): Likewise.
33714 (vect_analyze_data_ref_access): Likewise.
33715 (vect_analyze_data_ref_accesses): Likewise.
33716 * tree-vect-stmts.c (vect_model_load_cost): Likewise.
33717 (vectorizable_load): Likewise.
33719 2015-05-08 Segher Boessenkool <segher@kernel.crashing.org>
33721 * config/rs6000/rs6000.md: Require operand inequality in one
33724 2015-05-08 Richard Sandiford <richard.sandiford@arm.com>
33725 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
33727 * config/i386/i386.md (<mode>_ldx, *<mode>_ldx): Remove mode
33729 * config/rx/rx.md (movdi, movdf): Likewise.
33730 Likewise for define_peephole2s.
33732 2015-05-08 Alan Lawrence <alan.lawrence@arm.com>
33734 * config/aarch64/arm_neon.h (vceq_s64, vceq_u64, vceqz_s64, vceqz_u64,
33735 vcge_s64, vcge_u64, vcgez_s64, vcgt_s64, vcgt_u64, vcgtz_s64, vcle_s64,
33736 vcle_u64, vclez_s64, vclt_s64, vclt_u64, vcltz_s64, vtst_s64,
33737 vtst_u64): Rewrite using gcc vector extensions.
33739 2015-05-08 Alan Lawrence <alan.lawrence@arm.com>
33741 * config/aarch64/aarch64-simd.md (aarch64_vcond_internal<mode><mode>,
33742 vcond<mode><mode>, vcondu<mode><mode>): Add DImode variant.
33744 2015-05-08 Alan Lawrence <alan.lawrence@arm.com>
33746 * optabs.c (vector_compare_rtx): Handle RTL operands having VOIDmode.
33748 2015-05-08 Szabolcs Nagy <szabolcs.nagy@arm.com>
33750 * config/glibc-stdint.h (OPTION_MUSL): Define.
33751 (INT_FAST16_TYPE, INT_FAST32_TYPE, UINT_FAST16_TYPE, UINT_FAST32_TYPE):
33752 Change the definition based on OPTION_MUSL for 64 bit targets.
33753 * config/linux.h (OPTION_MUSL): Redefine.
33754 * config/alpha/linux.h (OPTION_MUSL): Redefine.
33755 * config/rs6000/linux.h (OPTION_MUSL): Redefine.
33756 * config/rs6000/linux64.h (OPTION_MUSL): Redefine.
33758 2015-05-08 Gregor Richards <gregor.richards@uwaterloo.ca>
33759 Szabolcs Nagy <szabolcs.nagy@arm.com>
33761 * config.gcc (LIBC_MUSL): New tm_defines macro.
33762 * config/linux.h (OPTION_MUSL): Define.
33763 (MUSL_DYNAMIC_LINKER, MUSL_DYNAMIC_LINKER32,)
33764 (MUSL_DYNAMIC_LINKER64, MUSL_DYNAMIC_LINKERX32,)
33765 (INCLUDE_DEFAULTS_MUSL_GPP, INCLUDE_DEFAULTS_MUSL_LOCAL,)
33766 (INCLUDE_DEFAULTS_MUSL_PREFIX, INCLUDE_DEFAULTS_MUSL_CROSS,)
33767 (INCLUDE_DEFAULTS_MUSL_TOOL, INCLUDE_DEFAULTS_MUSL_NATIVE): Define.
33768 * config/linux.opt (mmusl): New option.
33769 * doc/invoke.texi (GNU/Linux Options): Document -mmusl.
33770 * configure.ac (gcc_cv_libc_provides_ssp): Add *-*-musl*.
33771 (gcc_cv_target_dl_iterate_phdr): Add *-linux-musl*.
33772 * configure: Regenerate.
33774 2015-05-08 H.J. Lu <hongjiu.lu@intel.com>
33775 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
33778 * config.gcc (x86_64-*-knetbsd*-gnu): Add i386/knetbsd-gnu64.h.
33779 * config/i386/knetbsd-gnu64.h: New file.
33781 2015-05-08 Marek Polacek <polacek@redhat.com>
33784 * doc/invoke.texi: Document -Woverride-init-side-effects.
33786 2015-05-07 Marek Polacek <polacek@redhat.com>
33789 * doc/invoke.texi: Document -Wshift-negative-value.
33791 2015-05-06 Aditya Kumar <hiraditya@msn.com>
33793 * gcov-tool.c (do_merge): Refactore to remove int ret.
33794 * ipa-icf.c (sem_item::hash_referenced_symbol_properties): Change
33795 !type == FUNC to type != FUNC.
33796 * reload.h (struct target_reload): Changee to type of
33797 x_spill_indirect_levels from bool to unsigned char.
33799 2015-05-07 Richard Sandiford <richard.sandiford@arm.com>
33801 * rtl.h (always_void_p): New function.
33802 * gengenrtl.c (always_void_p): Likewise.
33803 (genmacro): Don't add a mode parameter to gen_rtx_foo if rtxes
33804 with code foo are always VOIDmode.
33805 * genemit.c (gen_exp): Update gen_rtx_foo calls accordingly.
33806 * builtins.c, caller-save.c, calls.c, cfgexpand.c, combine.c,
33807 compare-elim.c, config/aarch64/aarch64.c,
33808 config/aarch64/aarch64.md, config/alpha/alpha.c,
33809 config/alpha/alpha.md, config/arc/arc.c, config/arc/arc.md,
33810 config/arm/arm-fixed.md, config/arm/arm.c, config/arm/arm.md,
33811 config/arm/ldrdstrd.md, config/arm/thumb2.md, config/arm/vfp.md,
33812 config/avr/avr.c, config/bfin/bfin.c, config/c6x/c6x.c,
33813 config/c6x/c6x.md, config/cr16/cr16.c, config/cris/cris.c,
33814 config/cris/cris.md, config/darwin.c, config/epiphany/epiphany.c,
33815 config/epiphany/epiphany.md, config/fr30/fr30.c, config/frv/frv.c,
33816 config/frv/frv.md, config/h8300/h8300.c, config/i386/i386.c,
33817 config/i386/i386.md, config/i386/sse.md, config/ia64/ia64.c,
33818 config/ia64/vect.md, config/iq2000/iq2000.c,
33819 config/iq2000/iq2000.md, config/lm32/lm32.c, config/lm32/lm32.md,
33820 config/m32c/m32c.c, config/m32r/m32r.c, config/m68k/m68k.c,
33821 config/m68k/m68k.md, config/mcore/mcore.c, config/mcore/mcore.md,
33822 config/mep/mep.c, config/microblaze/microblaze.c,
33823 config/mips/mips.c, config/mips/mips.md, config/mmix/mmix.c,
33824 config/mn10300/mn10300.c, config/msp430/msp430.c,
33825 config/nds32/nds32-memory-manipulation.c, config/nds32/nds32.c,
33826 config/nds32/nds32.md, config/nios2/nios2.c, config/nvptx/nvptx.c,
33827 config/pa/pa.c, config/pa/pa.md, config/rl78/rl78.c,
33828 config/rs6000/altivec.md, config/rs6000/rs6000.c,
33829 config/rs6000/rs6000.md, config/rs6000/vector.md,
33830 config/rs6000/vsx.md, config/rx/rx.c, config/rx/rx.md,
33831 config/s390/s390.c, config/s390/s390.md, config/sh/sh.c,
33832 config/sh/sh.md, config/sh/sh_treg_combine.cc,
33833 config/sparc/sparc.c, config/sparc/sparc.md, config/spu/spu.c,
33834 config/spu/spu.md, config/stormy16/stormy16.c,
33835 config/tilegx/tilegx.c, config/tilegx/tilegx.md,
33836 config/tilepro/tilepro.c, config/tilepro/tilepro.md,
33837 config/v850/v850.c, config/v850/v850.md, config/vax/vax.c,
33838 config/visium/visium.c, config/xtensa/xtensa.c, cprop.c, dse.c,
33839 expr.c, gcse.c, ifcvt.c, ira.c, jump.c, lower-subreg.c,
33840 lra-constraints.c, lra-eliminations.c, lra.c, postreload.c, ree.c,
33841 reg-stack.c, reload.c, reload1.c, reorg.c, sel-sched.c,
33842 var-tracking.c: Update calls accordingly.
33844 2015-05-07 Segher Boessenkool <segher@kernel.crashing.org>
33847 PR middle-end/54303
33848 * varasm.c (function_mergeable_rodata_prefix): New function.
33849 (mergeable_string_section): Use it.
33850 (mergeable_constant_section): Use it.
33852 2015-05-07 Jeff Law <law@redhat.com>
33855 * match.pd (bit_and (plus/minus (convert @0) (convert @1) mask): New
33856 simplifier to narrow arithmetic.
33857 * generic-match-head.c: (types_match, single_use): New functions.
33858 * gimple-match-head.c: (types_match, single_use): New functions.
33860 2015-05-07 Venkataramanan Kumar <venkataramanan.kumar@amd.com>
33862 * combine.c (make_compound_operation): Remove checks for PLUS/MINUS
33865 2015-05-07 Richard Biener <rguenther@suse.de>
33867 PR tree-optimization/66002
33868 * passes.def: Schedule another pass_merge_phi after ifcombine, right
33871 2015-05-07 Marek Polacek <polacek@redhat.com>
33872 Martin Uecker <uecker@eecs.berkeley.edu>
33874 * doc/invoke.texi: Document -fsanitize=bounds-strict.
33875 * flag-types.h (enum sanitize_code): Add SANITIZE_BOUNDS_STRICT, or it
33876 into SANITIZE_NONDEFAULT.
33877 * opts.c (common_handle_option): Handle -fsanitize=bounds-strict.
33879 2015-05-07 Uros Bizjak <ubizjak@gmail.com>
33882 * config/alpha/alpha.c (alpha_override_options_after_change): New.
33883 (TARGET_OVERRIDE_OPTIONS_AFTER_CHANGE): New.
33884 (alpha_override_options): Move align_loops, align_jumps and
33885 align_functions handling into alpha_override_options_after_change.
33887 2015-05-06 Sandra Loosemore <sandra@codesourcery.com>
33888 Chris Jones <chrisj@nvidia.com>
33889 Joshua Conner <jconner@nvidia.com>
33891 * config/arm/unknown-elf.h (STARTFILE_SPEC): Add conditional
33892 linking of crtfastmath.o.
33893 * config/arm/linux-eabi.h (STARTFILE_SPEC): Likewise.
33895 2015-05-06 Segher Boessenkool <segher@kernel.crashing.org>
33897 * config/rs6000/rs6000.md (cstore<mode>4_signed_imm): New expander.
33898 (cstore<mode>4_unsigned_imm): New expander.
33899 (cstore<mode>4): Remove empty constraint strings. Use the new
33902 2015-05-06 Yvan Roux <yvan.roux@linaro.org>
33905 * config/arm/iwmmxt.md ("*iwmmxt_arm_movdi"): Cleanup redundant
33908 2015-05-06 Szabolcs Nagy <szabolcs.nagy@arm.com>
33910 * config/aarch64/geniterators.sh: Use standard BRE in sed.
33912 2015-05-06 Alan Modra <amodra@gmail.com>
33915 * config/rs6000/rs6000.md (nop): Use an unspec pattern.
33916 (UNSPEC_NOP): Define.
33917 (reload_vsx_from_gpr<mode>): Add missing DONE.
33918 (reload_gpr_from_vsx<mode>): Likewise.
33919 * config/rs6000/vsx.md (vsx_mul_v2di): Likewise.
33920 (vsx_div_v2di, vsx_udiv_v2di): Likewise.
33922 2015-05-06 Christian Bruel <christian.bruel@st.com>
33925 * config/aarch64/aarch64.c (aarch64_override_options): Move align_loops,
33926 align_jumps, align_functions into aarch64_override_options_after_change.
33928 2015-05-06 Richard Biener <rguenther@suse.de>
33930 * tree-vect-slp.c (vect_supported_load_permutation_p): Use
33931 vect_transform_slp_perm_load to check if we support a permutation
33932 for basic-block vectorization.
33934 2015-05-06 Nick Clifton <nickc@redhat.com>
33936 * config/rl78/rl78.c (need_to_save): Save register 22 if it is
33937 used, even if it is not being used as a frame pointer.
33939 2015-05-05 Jason Merrill <jason@redhat.com>
33941 * dwarf2out.c (gen_member_die): Don't emit anything for an
33942 anonymous class constructor.
33944 2015-05-05 David Malcolm <dmalcolm@redhat.com>
33946 * auto-profile.c (afdo_find_equiv_class): Fix indentation so
33947 that it reflects the block structure.
33948 (afdo_propagate_edge): Likewise.
33949 (afdo_calculate_branch_prob): Likewise.
33950 (afdo_annotate_cfg): Likewise.
33951 * cfgcleanup.c (equal_different_set_p): Likewise.
33952 (try_crossjump_to_edge): Likewise.
33953 * cgraph.c (cgraph_node::verify_node): Likewise.
33954 * cgraphunit.c (expand_all_functions): Likewise.
33955 * config/i386/i386.c (ix86_expand_copysign): Likewise.
33956 (exact_dependency_1): Likewise.
33957 * dwarf2asm.c (dw2_output_indirect_constants): Likewise.
33958 * dwarf2out.c (tree_add_const_value_attribute_for_decl): Likewise.
33959 * gensupport.c (process_define_subst): Likewise.
33960 * lto-wrapper.c (merge_and_complain): Likewise.
33961 * tree-if-conv.c (if_convertible_bb_p): Likewise.
33962 * tree-ssa-loop-prefetch.c (find_or_create_group): Likewise.
33963 * tree-ssa-tail-merge.c (gsi_advance_fw_nondebug_nonlocal): Likewise.
33964 * tree-vect-data-refs.c (vect_grouped_load_supported): Likewise.
33965 * tree-vect-loop.c (vectorizable_reduction): Likewise.
33966 * tree-vect-slp.c (vect_transform_slp_perm_load): Likewise.
33967 * tree-vect-stmts.c (vectorizable_shift): Likewise.
33968 * tree-vrp.c (vrp_finalize): Likewise.
33969 * tree.c (variably_modified_type_p): Likewise.
33971 2015-05-05 Jack Howarth <howarth.at.gcc@gmail.com>
33973 * config.gcc: Use darwin9.h, darwin10.h and darwin12.h
33974 on darwin12 and later.
33975 * config/darwin12.h (LINK_GCC_C_SEQUENCE_SPEC): Add
33976 file to pass -rdynamic on darwin12 and later.
33977 * config/darwin.opt (rdynamic): Add.
33979 2015-05-05 Uros Bizjak <ubizjak@gmail.com>
33981 * doc/extend.texi (C Extensions): Update menu for moved Variable
33982 Attributes and Type Attributes sections.
33984 2015-05-05 Uros Bizjak <ubizjak@gmail.com>
33987 * config/i386/i386.c (ix86_parse_stringop_strategy_string): Error out
33988 if rep_8byte stringop strategy was specified for 32-bit target.
33990 2015-05-05 Ilya Tocar <ilya.tocar@intel.com>
33993 * config/i386/i386.md (vector convert to float spltiter): Check for
33994 xmm16+, when splitting scalar float conversion.
33995 * config/i386/sse.md (sse2_cvtsi2sd): Support EVEX version.
33997 2015-05-05 Nick Clifton <nickc@redhat.com>
33999 * config/msp430/msp430-opts.h (enum msp430_regions): New.
34000 * config/msp430/msp430.c (msp430_override_options): Complain if
34001 -mcode-region or -mdata-region is used on a non MSP430X.
34002 (msp430_section_attr): New function. Checks lower, upper and
34004 (msp430_attribute_table): Add lower, upper and either.
34005 (gen_prefix): New function. Generates a prefix for a section
34007 (msp430_select_section): New function - handles the choice of
34008 section for an object. Takes into account memory region
34009 attributes and options.
34010 (msp430_function_section): Use gen_prefix.
34011 (TARGET_SECTION_TYPE_FLAGS): Define.
34012 (msp430_section_type_flags): New function.
34013 (TARGET_ASM_UNIQUE_SECTION): Define.
34014 (msp430_unique_section): New function.
34015 (msp430_output_aligned_decl_common): New function.
34016 (msp430_do_not_relax_short_jumps): New function.
34017 * config/msp430/msp430.h (USE_SELECT_SECTION_FOR_FUNCTIONS):
34019 (ASM_OUTPUT_ALIGNED_DECL_COMMON): Define.
34020 * config/msp430/msp430-protos.h
34021 (msp430_do_not_relax_short_jumps): New prototype.
34022 (msp430_output_aligned_decl_common): New prototype.
34023 * config/msp430/msp430.md (length): New attribute.
34024 (cbranchhi4_real): If msp430_do_not_relax_short_jumps is true
34025 then use a long code sequence for short jumps.
34026 * config/msp430/msp430.opt (mcode-region): New.
34027 (mdata-region): New.
34028 * doc/invoke.texi: Document new options.
34029 * doc/extend.texi: Document new attributes.
34031 2015-05-05 Matthew Wahab <matthew.wahab@arm.com>
34033 * config/aarch64-protos.h (struct cpu_branch_cost): New.
34034 (tune_params): Add field branch_costs.
34035 (aarch64_branch_cost): Declare.
34036 * config/aarch64.c (generic_branch_cost): New.
34037 (generic_tunings): Set field cpu_branch_cost to generic_branch_cost.
34038 (cortexa53_tunings): Likewise.
34039 (cortexa57_tunings): Likewise.
34040 (thunderx_tunings): Likewise.
34041 (xgene1_tunings): Likewise.
34042 (aarch64_branch_cost): Define.
34043 * config/aarch64/aarch64.h (BRANCH_COST): Redefine.
34045 2015-05-05 Uros Bizjak <ubizjak@gmail.com>
34047 * config/i386/i386.c: Use HOST_WIDE_INT_1 instead of (HOST_WIDE_INT) 1
34048 and HOST_WIDE_INT_1U instead of (unsigned HOST_WIDE_INT) 1.
34049 * config/i386/i386.md: Ditto.
34050 * config/i386/winnt.c: Ditto.
34052 2015-05-05 Matthew Wahab <matthew.wahab@arm.com>
34054 * doc/extend.texi (__atomic Builtins): Move implementation details
34055 to the end of the description, rewrite opening paragraphs, state
34056 difference with __sync builtins, state C11/C++11 assumptions,
34057 weaken itemized descriptions, add explanation of memory model
34058 behaviour, expand description of compare-exchange, simplify text.
34060 2015-05-05 Renlin Li <renlin.li@arm.com>
34062 * config/aarch64/aarch64.md (add<mode>3): Use mov when allowed.
34064 2015-05-05 Yvan Roux <yvan.roux@linaro.org>
34066 * config/aarch64/aarch64-elf-raw.h (CA53_ERR_843419_SPEC): Define.
34067 (LINK_SPEC): Include CA53_ERR_843419_SPEC.
34068 * config/aarch64/aarch64-linux.h (CA53_ERR_843419_SPEC): Define.
34069 (LINK_SPEC): Include CA53_ERR_843419_SPEC.
34070 * config/aarch64/aarch64.opt (mfix-cortex-a53-843419): New option.
34071 * configure: Regenerate.
34072 * configure.ac: Add --enable-fix-cortex-a53-843419 option.
34073 * doc/install.texi (aarch64*-*-*): Document new
34074 --enable-fix-cortex-a53-843419 option.
34075 * doc/invoke.texi (AArch64 Options): Document -mfix-cortex-a53-843419
34076 and -mno-fix-cortex-a53-843419 options.
34078 2015-05-05 Uros Bizjak <ubizjak@gmail.com>
34081 * config/i386/i386.md (*bmi_andn_<mode>_ccno): New pattern.
34083 2015-05-04 Jan Hubicka <hubicka@ucw.cz>
34085 * tree.c (verify_type): Check various uses of TYPE_MAXVAL;
34086 fix overactive TYPE_MIN_VALUE check and add FIXME for type
34087 compatibility problems.
34089 2015-05-04 Ajit Agarwal <ajitkum@xilinx.com>
34091 * config/microblaze/microblaze.md (cbranchsi4): Added immediate
34093 (cbranchsi4_reg): New.
34094 * config/microblaze/microblaze.c
34095 (microblaze_expand_conditional_branch_reg): New.
34096 * config/microblaze/microblaze-protos.h
34097 (microblaze_expand_conditional_branch_reg): New prototype.
34099 2015-05-04 Ajit Agarwal <ajitkum@xilinx.com>
34101 * config/microblaze/microblaze.md (peephole2): New.
34103 2015-05-04 Jeff Law <law@redhat.com>
34106 2015-05-04 Jeff Law <law@redhat.com>
34108 * match.pd (bit_and (plus/minus (convert @0) (convert @1) mask): New
34109 simplifier to narrow arithmetic.
34110 * generic-match-head.c: (types_match, single_use): New functions.
34111 * gimple-match-head.c: (types_match, single_use): New functions.
34113 2015-05-04 Kaz Kojima <kkojima@gcc.gnu.org>
34116 * config/sh/sh.c (output_far_jump): Take into account crossing jumps.
34117 (split_branches): Likewise.
34119 2015-05-04 Sandra Loosemore <sandra@codesourcery.com>
34121 * common.opt (fdelete-null-pointer-checks): Init to -1.
34122 * config/nios2/elf.h (SUBTARGET_OVERRIDE_OPTIONS): Define to
34123 override flag_delete_null_pointer_checks default.
34124 * doc/invoke.texi (-fdelete-null-pointer-checks): Clarify
34125 behavior re address zero. Better document target-specific behavior.
34126 (-fisolate-errneous-paths-dereference): Mention relationship to
34127 -fdelete-null-pointer-checks.
34129 2015-05-04 Jakub Jelinek <jakub@redhat.com>
34131 PR tree-optimization/65984
34132 * ubsan.c: Include tree-cfg.h.
34133 (instrument_bool_enum_load): Use stmt_ends_bb_p instead of
34134 stmt_could_throw_p test, rename can_throw variable to ends_bb.
34136 2015-05-04 Uros Bizjak <ubizjak@gmail.com>
34138 * config/i386/i386.c: Change GET_CODE (...) == CONST_DOUBLE check
34139 to CONST_DOUBLE_P predicate.
34140 (standard_sse_constant_p): Return 0 for !TARGET_SSE.
34141 (ix86_legitimate_constant_p) <case CONST_WIDE_INT>: For 32bit targets,
34142 allow only operands that satisfy standard_sse_constant_p predicate.
34143 * config/i386/i386.md: Change GET_CODE (...) == CONST_DOUBLE check
34144 to CONST_DOUBLE_P predicate.
34146 2015-05-04 Jeff Law <law@redhat.com>
34148 * match.pd (bit_and (plus/minus (convert @0) (convert @1) mask): New
34149 simplifier to narrow arithmetic.
34150 * generic-match-head.c: (types_match, single_use): New functions.
34151 * gimple-match-head.c: (types_match, single_use): New functions.
34153 2015-05-04 Andreas Tobler <andreast@gcc.gnu.org>
34155 * config/arm/arm.c: Restore bootstrap.
34157 2015-05-04 Uros Bizjak <ubizjak@gmail.com>
34159 * config/i386/i386.h (TARGET_SUPPORTS_WIDE_INT): New define.
34160 * config/i386/i386.c (ix86_legitimate_constant_p): Handle TImode
34161 as CONST_WIDE_INT, not CONST_DOUBLE.
34162 (ix86_cannot_force_const_mem): Handle CONST_WIDE_INT.
34163 (output_pic_addr_const): Do not handle VOIDmode CONST_DOUBLEs.
34164 (ix86_find_base_term): Do not check for CONST_DOUBLE.
34165 (ix86_print_operand): Do not handle non-FPmode CONST_DOUBLEs.
34166 (ix86_build_signbit_mask): Rewrite using wide ints.
34167 (ix86_split_to_parts) [HOST_BITS_PER_WIDE_INT < 64]: Remove.
34168 (ix86_rtx_costs): Handle CONST_WIDE_INT.
34169 (find_constant): Ditto.
34170 * config/i386/i386.md (bts, btr, btc peepholes): Rewrite
34171 using gen_int_mode.
34172 * config/i386/predicates.md (x86_64_immediate_operand)
34173 <case CONST_INT>: Remove HOST_BITS_PER_WIDE_INT == 32 code.
34174 (x86_64_zext_immediate_operand): Remove CONST_DOUBLE handling.
34175 <case CONST_INT>: Remove HOST_BITS_PER_WIDE_INT == 32 code.
34176 (const0_operand): Also match const_wide_int.
34177 (constm1_operand): Ditto.
34178 (const1_operand): Ditto.
34180 2015-05-04 Richard Biener <rguenther@suse.de>
34182 PR tree-optimization/65965
34183 * tree-vect-data-refs.c (vect_analyze_data_ref_accesses): Split
34184 store groups at gaps.
34186 2015-05-04 Richard Biener <rguenther@suse.de>
34188 PR tree-optimization/65935
34189 * tree-vect-slp.c (vect_build_slp_tree): If we swapped operands
34190 then make sure to apply that swapping to the IL.
34192 2015-05-04 Jakub Jelinek <jakub@redhat.com>
34194 * Makefile.in (PATCHLEVEL_c): New variable.
34195 (DATESTAMP_s, REVISION_s): If PATCHLEVEL_c is not 0,
34196 expand the same way as if DEVPHASE_c was non-empty.
34198 2015-05-04 Kai Tietz <ktietz@redhat.com>
34201 * lto-wrapper.c (run_gcc): Open filename
34204 2015-05-03 Sandra Loosemore <sandra@codesourcery.com>
34206 * doc/extend.texi (Variable Attributes, Type Attributes): Move
34207 sections up in file, to immediately after the Function Attributes
34210 2015-05-02 Jan Hubicka <hubicka@ucw.cz>
34212 * tree.c (verify_type): Check various uses of TYPE_MINVAL.
34214 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
34216 * tree-outof-ssa.c (emit_partition_copy): Return rtx_insn *.
34217 (insert_partition_copy_on_edge): Adjust.
34218 (insert_rtx_to_part_on_edge): Likewise.
34219 (insert_part_to_rtx_on_edge): Likewise.
34221 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
34223 * function.c (set_return_jump_label): Change type of argument to
34225 * function.h (set_return_jump_label): Adjust.
34227 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
34229 * reload.h (struct reg_equivs_t): Change type of init to
34231 * ira.c (fix_reg_equiv_init): Adjust.
34232 * reload1.c (eliminate_regs_1): Likewise.
34233 (init_eliminable_invariants): Likewise.
34235 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
34237 * cselib.c (fp_setter_insn): Take a rtx_insn *.
34238 * cselib.h (fp_setter_insn): Adjust.
34240 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
34242 * recog.c (struct validate_replace_src_data): Change type of
34243 insn field to rtx_insn *.
34244 (validate_replace_src_group): Change type of argument to rtx_insn *.
34245 * recog.h (validate_replace_src_group): Adjust.
34247 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
34249 * haifa-sched.c: Change the type of some variables to rtx_insn *.
34250 * sched-deps.c: Likewise.
34251 * sched-int.h: Likewise.
34252 * sched-rgn.c: Likewise.
34253 * sel-sched.c: Likewise.
34255 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
34258 * config/i386/i386.c: Change the type of some arguments to
34260 * config/arm/arm.c: Likewise.
34262 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
34264 * lra-constraints.c: Change type of some arguments to rtx_insn *.
34266 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
34268 * regcprop.c (kill_autoinc_value): Change type of argument to
34271 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
34273 * genrecog.c (print_subroutine): Adjust.
34274 * recog.c (get_bool_attr_mask_uncached): Likewise.
34275 * recog.h (struct recog_data_d): Change the type of insn to
34278 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
34280 * dwarf2cfi.c (add_cfi_insn): Change type to rtx_insn *.
34282 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
34284 * df-problems.c (df_set_note): Change type of argument to
34287 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
34289 * builtins.c (expand_builtin_trap): Change type of local
34290 variable to rtx_insn *.
34291 (add_sched_insns_for_speculation): Likewise.
34292 (ix86_emit_save_regs): Likewise.
34293 (get_scratch_register_on_entry): Likewise.
34294 (ix86_emit_restore_reg_using_pop): Likewise.
34295 (ix86_emit_leave): Likewise.
34296 (ix86_emit_restore_regs_using_mov): Likewise.
34297 (ix86_expand_epilogue): Likewise.
34299 (rl78_alloc_physical_registers_umul): Likewise.
34300 * cselib.c (discard_useless_locs): Likewise.
34301 (cselib_invalidate_regno): Likewise.
34302 (cselib_invalidate_mem): Likewise.
34303 * function.c (expand_function_start): Likewise.
34304 (emit_use_return_register_into_block): Likewise.
34305 * gcse.c: Likewise.
34306 * haifa-sched.c (ok_for_early_queue_removal): Likewise.
34307 * ifcvt.c (noce_get_alt_condition): Likewise.
34308 * loop-doloop.c (doloop_condition_get): Likewise.
34309 * lra-constraints.c (inherit_in_ebb): Likewise.
34310 * modulo-sched.c (sms_schedule_by_order): Likewise.
34311 * recog.c (next_insn_tests_no_inequality): Likewise.
34312 * reorg.c (emit_delay_sequence): Likewise.
34313 (update_reg_dead_notes): Likewise.
34314 (fix_reg_dead_note): Likewise.
34315 (fill_slots_from_thread): Likewise.
34316 (delete_computation): Likewise.
34318 2015-05-01 Sandra Loosemore <sandra@codesourcery.com>
34320 * doc/extend.texi (Variable Attributes): Add menu and proper
34321 @nodes to subsections. Move Microsoft Windows attributes to
34322 their own subsection.
34323 (Type Attributes): Reorganize introduction to remove duplicate
34324 list of attributes. Add menu and proper @nodes to subsections.
34325 Alphabetize the main table of common attributes.
34327 2015-05-01 Rasmus Villemoes <rv@rasmusvillemoes.dk>
34329 * match.pd: New simplification patterns.
34330 (x + (x & 1)) -> ((x + 1) & ~1)
34331 (x & ~(x & y)) -> ((x & ~y))
34332 (x | ~(x | y)) -> ((x | ~y))
34334 2015-05-01 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
34336 * target.def (attribute_table): Mention that struct attribute_spec
34337 is defined in tree-core.h rather than tree.h
34338 * doc/tm.texi: Regenerate.
34340 2015-05-01 Richard Sandiford <richard.sandiford@arm.com>
34342 * genrecog.c (test): Rename to rtx_test. Update rest of file
34345 2015-05-01 Andreas Schwab <schwab@linux-m68k.org>
34347 PR translation/65959
34348 * params.h (DEFPARAM): Rename msgid to nocmsgid.
34350 2015-05-01 Wilco Dijkstra <wdijkstr@arm.com>
34352 * config/aarch64/aarch64-protos.h (tune_params):
34353 Add min_div_recip_mul_sf and min_div_recip_mul_df fields.
34354 * config/aarch64/aarch64.c (aarch64_min_divisions_for_recip_mul):
34355 Return value depending on target.
34356 (generic_tunings): Initialize new target settings.
34357 (cortexa53_tunings): Likewise.
34358 (cortexa57_tunings): Likewise.
34359 (thunderx_tunings): Likewise.
34360 (xgene1_tunings): Likewise.
34362 2015-05-01 Wilco Dijkstra <wdijkstr@arm.com>
34364 * config/arm/aarch-cost-tables.h (cortexa53_extra_costs):
34365 Make Cortex-A53 shift costs more accurate.
34367 2015-05-01 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
34369 * config/aarch64/aarch64.c (aarch64_rtx_costs): Handle FLOAT and
34372 2015-05-01 Wilco Dijkstra <wdijkstr@arm.com>
34374 * config/aarch64/aarch64.c (aarch64_rtx_costs):
34375 Calculate cost of op0 and op1 in PLUS and MINUS cases.
34377 2015-05-01 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
34379 * config/aarch64/aarch64.c (aarch64_rtx_costs, COMPARE case):
34380 Add cost of op0 in the compare-with-fpzero case.
34382 2015-04-30 David Malcolm <dmalcolm@redhat.com>
34384 * builtins.c (fold_builtin_1): Remove spurious second
34386 * cgraph.h (symtab_node::get_availability): Likewise.
34387 * opts.c (common_handle_option): Remove spurious second semicolon.
34388 * tree-ssa-loop-ivopts.c (extract_cond_operands): Likewise.
34389 * tree-ssa-loop-niter.c (derive_constant_upper_bound_ops): Likewise.
34391 2015-04-30 Caroline Tice <cmtice@google.com>
34393 PR gcov-profile/65929
34394 * config/elfos.h (ASM_DECLARE_COLD_FUNCTION_NAME): New macro definition.
34395 (ASM_DECLARE_COLD_FUNCTION_SIZE): New macro definition.
34396 * doc/tm.texi.in (ASM_DECLARE_COLD_FUNCTION_NAME): Document new macro.
34397 (ASM_DECLARE_COLD_FUNCTION_SIZE): Document new macro.
34398 * doc/tm.texi: Regenerate.
34399 * final.c (final_scan_insn): Use ASM_DECLARE_COLD_FUNCTION_NAME
34400 instead of ASM_DECLARE_FUNCTION_NAME for cold partition name.
34401 * varasm.c (assemble_end_function): Use ASM_DECLARE_COLD_FUNCTION_SIZE
34402 instead of ASM_DECLARE_FUNCTION_SIZE for cold partition size.
34404 2015-04-30 Marek Polacek <polacek@redhat.com>
34406 * varasm.c (handle_cache_entry): Fix logic.
34408 2015-04-30 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
34410 * config/aarch64/aarch64.md (*extr<mode>5_insn_alt): New pattern.
34411 (*extrsi5_insn_uxtw_alt): Likewise.
34412 * config/aarch64/aarch64.c (aarch64_extr_rtx_p): New function.
34413 (aarch64_rtx_costs, IOR case): Use above to properly cost extr
34416 2015-04-30 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
34418 * config/aarch64/aarch64.c (aarch64_rtx_costs): Handle pattern for
34421 2015-04-30 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
34423 * config/aarch64/aarch64.md
34424 (*eor_one_cmpl_<SHIFT:optab><mode>3_alt): New pattern.
34425 (*eor_one_cmpl_<SHIFT:optab>sidi3_alt_ze): Likewise.
34426 * config/aarch64/aarch64.c (aarch64_rtx_costs): Handle MVN-shift
34427 appropriately. Handle alternative EON form.
34429 2015-04-30 Renlin Li <renlin.li@arm.com>
34431 * config/aarch64/aarch64-simd.md (vec_shr): Defined as an unspec.
34432 * config/aarch64/iterators.md (unspec): Add UNSPEC_VEC_SHR.
34434 2015-04-30 Jan Hubicka <hubicka@ucw.cz>
34437 * ipa-inline.c (can_inline_edge_p): It is safe to inline across
34438 -fstrict-aliasing boundaries.
34440 2015-04-30 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
34442 * config/aarch64/aarch64.c (aarch64_rtx_mult_cost): Handle MNEG
34443 and [SU]MNEGL patterns.
34445 2015-04-30 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
34447 * config/aarch64/aarch64.c (aarch64_shift_p): New function.
34448 (aarch64_rtx_mult_cost): Update comment to reflect that it also handles
34449 combined arithmetic-shift ops. Properly handle all shift and extend
34450 operations that can occur in combination with PLUS/MINUS.
34451 Rename maybe_fma to compound_p.
34452 (aarch64_rtx_costs): Use aarch64_shift_p when costing compound
34453 arithmetic and shift operations.
34455 2015-04-30 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
34457 * config/aarch64/aarch64.c (aarch64_rtx_costs): Use extend_arith
34458 rather than arith_shift cost when costing ADD/MINUS of an
34461 2015-04-30 Jan Hubicka <hubicka@ucw.cz>
34464 * ipa-devirt.c (odr_types_equivalent_p): NULLPTR_TYPE is equivalent
34467 2015-04-30 Richard Sandiford <richard.sandiford@arm.com>
34469 * genrecog.c (simplify_tests): Check that CONST_INT and XWINT tests
34470 are for the same position.
34472 2015-04-29 Aditya Kumar <hiraditya@hotmail.com>
34474 * tree-vectorizer.c (set_uid_loop_bbs): New. Factored out of
34476 (vectorize_loops): Use it.
34478 2015-04-29 Jan Hubicka <hubicka@ucw.cz>
34480 * ipa-devirt.c (odr_subtypes_equivalent_p): Compare TYPE_NAME only
34481 for aggregate types.
34482 (register_odr_type): Be ready for MAIN_VARIANT of ODR type
34483 type to be non_ODR.
34484 * tree.c (need_assembler_name_p): Compute mangled name for
34485 non-fundamental types and integer types.
34487 2015-04-29 Mikhail Maltsev <maltsevm@gmail.com>
34489 * dojump.c (do_compare_rtx_and_jump): Use std::swap instead of
34491 * expr.c (expand_expr_real_2): Likewise.
34493 2015-04-29 Jan Hubicka <hubicka@ucw.cz>
34495 * tree.c (build_common_builtin_nodes): Do not build
34496 __builtin_alloca_with_align as equivalent of library alloca.
34498 2015-04-29 Jan Hubicka <hubicka@ucw.cz>
34500 * dwarf2out.c (gen_type_die_with_usage): Call verify_type.
34501 * ipa-chkp.c (chkp_copy_function_type_adding_bounds): Do not produce
34503 * tree.c: Include print-tree.h and ipa-utils.h
34504 (free_lang_data_in_type): Clear TYPE_VFIELD leaked by C FE.
34505 (free_lang_data_in_cgraph): Call verify_type.
34506 (verify_type_variant): New function.
34507 (verify_type): New function.
34508 * tree.h (verify_type): Declare.
34510 2015-04-29 Steve Ellcey <sellcey@imgtec.com>
34512 * config/mips/mips-cpus.def: (mips4): Change default processor
34513 from PROCESSOR_R8000 to PROCESSOR_R10000.
34515 2015-04-29 Petar Jovanovic <petar.jovanovic@rt-rk.com>
34517 * config/mips/mips.h (CRT_CALL_STATIC_FUNCTION): Fix the macro to use
34518 la/jalr instead of jal.
34520 2015-04-29 Uros Bizjak <ubizjak@gmail.com>
34523 * config/i386/i386.md (*bmi_bextr_<mode>_ccz): New pattern.
34524 (*bmi2_bzhi_<mode>3_1_ccz): Ditto.
34525 (setcc+movzbl peephole2): Check also clobbered reg.
34526 (setcc+andl peephole2): Ditto.
34528 2015-04-29 Thomas Schwinge <thomas@codesourcery.com>
34531 * config/nvptx/mkoffload.c (target_ilp32): New variable.
34532 (main): Set it depending on "-foffload-abi=[...]".
34533 (compile_native, main): Use it to pass "-m32" or "-m64" to the
34536 2015-04-29 Alan Lawrence <alan.lawrence@arm.com>
34539 * config/aarch64/aarch64-simd.md (vec_store_lanesoi_lane<mode>,
34540 vec_store_lanesci_lane<mode>, vec_store_lanesxi_lane<mode>):
34541 Flip lane index back at assembly time for bigendian.
34543 2015-04-29 Thomas Schwinge <thomas@codesourcery.com>
34545 * tree.h (OMP_STANDALONE_CLAUSES): New macro.
34546 * gimplify.c (gimplify_omp_workshare): Use it.
34548 2015-04-29 Richard Sandiford <richard.sandiford@arm.com>
34550 * Makefile.in (build/genrecog.o): Depend on inchash.h.
34551 (build/genrecog$(build_exeext): Depend on build/hash-table.o and
34553 * genrecog.c: Rewrite most of the code except for the third page.
34555 2015-04-29 Richard Sandiford <richard.sandiford@arm.com>
34557 * inchash.h, inchash.c: Include bconfig.h for build objects.
34558 * Makefile.in (build/inchash.o): New rule.
34560 2015-04-29 Yvan Roux <yvan.roux@linaro.org>
34563 * config/arm/thumb2.md (*thumb2_addsi3_compare0_scratch): Fix operand
34564 number in type attribute expression.
34566 2015-04-29 Richard Sandiford <richard.sandiford@arm.com>
34568 * loop-iv.c (canon_condition): Generalize to all types of integer
34571 2015-04-29 Bernhard Reuther-Fischer <aldot@gcc.gnu.org>
34573 * gimple-walk.c: Prune duplicate or unneeded includes.
34574 (walk_gimple_asm): Only call parse_input_constraint or
34575 parse_output_constraint if their findings are used.
34576 Honour parse_input_constraint and parse_output_constraint
34579 2015-04-29 Alan Lawrence <alan.lawrence@arm.com>
34581 * config/arm/neon.md (vec_shl<mode>, vec_shr<mode>): Remove.
34583 2015-04-29 Tom de Vries <tom@codesourcery.com>
34585 PR tree-optimization/65893
34586 * passes.def (pass_all_optimizations): Move pass_stdarg to after
34589 2015-04-29 Richard Biener <rguenther@suse.de>
34591 * tree-vect-data-refs.c (vect_analyze_group_access): Properly
34592 compute GROUP_SIZE for basic-block SLP.
34593 * tree-vect-slp.c (vect_get_place_in_interleaving_chain): Properly
34594 take into account gaps.
34595 (vect_get_mask_element): Properly reject references to previous
34597 (vect_transform_slp_perm_load): Likewise.
34599 2015-04-29 Christian Bruel <christian.bruel@st.com>
34602 * config/i386/i386.c (ix86_default_align): New function.
34603 (ix86_override_options_after_change): Call ix86_default_align.
34604 (TARGET_OVERRIDE_OPTIONS_AFTER_CHANGE): New hook.
34605 (ix86_override_options_after_change): New function.
34607 2015-04-28 Jeff Law <law@redhat.com>
34609 * tree-ssa-dom.c (record_equality); Fix comment typos.
34611 2015-04-28 Tom de Vries <tom@codesourcery.com>
34613 PR tree-optimization/65887
34614 * gimplify.c (gimplify_modify_expr): Remove ifn_va_arg ap fixup.
34616 2015-04-28 Sandra Loosemore <sandra@codesourcery.com>
34618 * doc/extend.texi (Declaring Attributes of Functions): Split into
34619 subsections by target. Alphabetize the table of common attributes.
34620 Rewrite some of the introductory text to reflect the new structure.
34621 Update some cross-references to point to the new subsections.
34622 (Attribute Syntax): Put paragraph about "__" naming here. Remove
34623 duplicate copies in the discussion of function, label, and type
34626 2015-04-28 Dominique d'Humieres <dominiq@lps.ens.fr>
34629 * varasm.c (assemble_end_function): Guard ASM_DECLARE_FUNCTION_SIZE.
34631 2015-04-28 Jason Merrill <jason@redhat.com>
34634 * stor-layout.c (layout_type): Layout the TYPE_MAIN_VARIANT.
34635 (finalize_type_size): Respect TYPE_USER_ALIGN.
34636 (layout_type) [ARRAY_TYPE]: Likewise.
34638 2015-04-28 Yvan Roux <yvan.roux@linaro.org>
34640 * config/arm/arm.md (*arm_movt): Fix type attribute.
34641 (*cmpsi_shiftsi): Likewise.
34642 (*cmpsi_shiftsi_swp): Likewise.
34643 (*movsicc_insn): Likewise.
34644 (*cond_move): Likewise.
34645 (*if_plus_move): Likewise.
34646 (*if_move_plus): Likewise.
34647 (*if_arith_move): Likewise.
34648 (*if_move_arith): Likewise.
34649 (*if_shift_move): Likewise.
34650 (*if_move_shift): Likewise.
34651 (*arm_movtas_ze): Likewise.
34652 * config/arm/thumb2.md (*thumb2_movsicc_insn): Fix alternative
34653 redundancy and type attribute.
34654 (*thumb2_movsi_insn): Fix type attribute.
34655 (*thumb2_addsi_short): Likewise.
34656 (thumb2_addsi3_compare0): Likewise.
34657 (*thumb2_addsi3_compare0_scratch): Merge alternatives and fix
34658 attributes accordingly.
34660 2015-04-28 Markus Trippelsdorf <markus@trippelsdorf.de>
34663 * function.c (pad_to_arg_alignment): Add parentheses.
34665 2015-04-28 Uros Bizjak <ubizjak@gmail.com>
34667 * config/frv/frv.h (CRT_GET_RFIB_DATA): Move definition to
34668 libgcc/config/frv/elf-lib.h.
34670 2015-04-28 Tom de Vries <tom@codesourcery.com>
34672 * tree-call-cdce.c: Fix example in header comment.
34674 2015-04-28 Richard Biener <rguenther@suse.de>
34676 PR tree-optimization/62283
34677 * tree-vect-slp.c (vect_build_slp_tree): When the SLP build
34678 fails fatally and we are vectorizing a basic-block simply
34679 cause the child to be constructed piecewise.
34680 (vect_analyze_slp_cost_1): Adjust.
34681 (vect_detect_hybrid_slp_stmts): Likewise.
34682 (vect_bb_slp_scalar_cost): Likewise.
34683 (vect_get_constant_vectors): For piecewise constructed
34684 constants place them after the last def.
34685 (vect_get_slp_defs): Adjust.
34686 * tree-vect-stmts.c (vect_is_simple_use): Detect in-BB
34687 externals for basic-block vectorization.
34689 2015-04-28 Thomas Preud'homme <thomas.preudhomme@arm.com>
34692 * config.gcc: Add cortex-a57-fma-steering.o to extra_objs for
34694 * config/aarch64/t-aarch64: Add a rule for cortex-a57-fma-steering.o.
34695 * config/aarch64/aarch64.h (AARCH64_FL_USE_FMA_STEERING_PASS): Define.
34696 (AARCH64_TUNE_FMA_STEERING): Likewise.
34697 * config/aarch64/aarch64-cores.def: Set
34698 AARCH64_FL_USE_FMA_STEERING_PASS for cores with dynamic steering of
34699 FMUL/FMADD instructions.
34700 * config/aarch64/aarch64.c (aarch64_register_fma_steering): Declare.
34701 (aarch64_override_options): Include cortex-a57-fma-steering.h. Call
34702 aarch64_register_fma_steering () if AARCH64_TUNE_FMA_STEERING is true.
34703 * config/aarch64/cortex-a57-fma-steering.h: New file.
34704 * config/aarch64/cortex-a57-fma-steering.c: Likewise.
34706 2015-04-28 Richard Sandiford <richard.sandiford@arm.com>
34708 * gensupport.c (std_preds): Add missing codes to address_operand entry.
34710 2015-04-28 Richard Biener <rguenther@suse.de>
34712 PR tree-optimization/65851
34713 * tree-ssa-ccp.c (set_lattice_value): Perform a meet when
34714 changing CONSTANT to CONSTANT non-copy. Get new_val by reference.
34715 (ccp_lattice_meet): Remove stray argument. Use operand_equal_p
34716 rather than simple_cst_equal as the latter doesn't handle COMPLEX_CST.
34717 (ccp_visit_phi_node): Adjust.
34718 (evaluate_stmt): For simplifications to SSA names return its
34719 lattice value if that isn't VARYING. Return immediately when
34720 simplified to a constant.
34721 (visit_assignment): Adjust.
34722 (ccp_visit_stmt): Likewise.
34724 2015-04-28 Tom de Vries <tom@codesourcery.com>
34726 PR tree-optimization/65818
34727 * tree-stdarg.c (expand_ifn_va_arg_1): Ensure that side-effects are
34730 2015-04-27 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
34732 * calls.c (save_fixed_argument_area): Don't check
34733 ARGS_GROW_DOWNWARD with the preprocessor.
34734 (restore_fixed_argument_area): Likewise.
34735 (mem_overlaps_already_clobbered_arg_p): Likewise.
34736 (check_sibcall_argument_overlap): Likewise.
34737 (expand_call): Likewise.
34738 (emit_library_call_value_1): Likewise.
34739 (store_one_arg): Likewise.
34740 * function.c (assign_parms): Likewise.
34741 (locate_and_pad_parm): Likewise.
34742 (pad_to_arg_alignment): Likewise.
34743 * targhooks.c (std_gimplify_va_arg_expr): Likewise.
34745 2015-04-27 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
34747 * config/pa/pa.h (ARGS_GROW_DOWNWARD): Define to 1.
34748 * defaults.h (ARGS_GROW_DOWNWARD): Define it to 0 by default.
34749 * calls.c (save_fixed_argument_area): Don't chekc if
34750 ARGS_GROW_DOWNWARD is defined.
34751 (restore_fixed_argument_area): Likewise.
34752 (mem_overlaps_already_clobbered_arg_p): Likewise.
34753 (check_sibcall_argument_overlap): Likewise.
34754 (expand_call): Likewise.
34755 (emit_library_call_value_1): Likewise.
34756 (store_one_arg): Likewise.
34757 * function.c (assign_parms): Likewise.
34758 (locate_and_pad_parm): Likewise.
34759 (pad_to_arg_alignment): Likewise.
34760 * targhooks.c (std_gimplify_va_arg_expr): Likewise.
34762 2015-04-27 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
34764 * defaults.h (gen_epilogue): New function.
34765 * alias.c (init_alias_analysis): don't check if HAVE_epilogue is
34767 * cfgrtl.c (cfg_layout_finalize): Likewise.
34768 * df-scan.c: Likewise.
34769 * function.c (thread_prologue_and_epilogue_insns): Likewise.
34770 (reposition_prologue_and_epilogue_notes): Likewise.
34771 * reorg.c (find_end_label): Likewise.
34772 * toplev.c: Likewise.
34774 2015-04-27 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
34776 * bb-reorder.c (HAVE_return): Don't check if its undefined.
34777 * defaults.h (gen_simple_return): New function.
34778 (gen_simple_return): Likewise.
34779 (HAVE_return): Add default definition to false.
34780 (HAVE_simple_return): Likewise.
34781 * cfgrtl.c (force_nonfallthru_and_redirect): Remove checks if
34782 HAVE_return and HAVE_simple_return are defined.
34783 * function.c (gen_return_pattern): Likewise.
34784 (convert_jumps_to_returns): Likewise.
34785 (thread_prologue_and_epilogue_insns): Likewise.
34786 * reorg.c (find_end_label): Likewise.
34787 (dbr_schedule): Likewise.
34788 * shrink-wrap.c: Likewise.
34789 * shrink-wrap.h: Likewise.
34791 2015-04-27 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
34793 * defaults.h (EPILOGUE_USES): Add default definition of false.
34794 * df-scan.c (EPILOGUE_USES): Remove check if its undefined.
34795 * resource.c (init_resource_info): Likewise.
34797 2015-04-27 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
34799 * defaults.h (PCC_BITFIELD_TYPE_MATTERS): Add default definition
34801 * dwarf2out.c (field_byte_offset): REmove check if
34802 PCC_BITFIELD_TYPE_MATTERS is defined.
34803 * stor-layout.c (layout_decl): Likewise.
34804 (update_alignment_for_field): Likewise.
34805 (place_field): Likewise.
34807 2015-04-27 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
34809 * defaults.h (HARD_REGNO_RENAME_OK): Add default definition to
34811 * regrename.c (check_new_reg_p): Remove check if
34812 HARD_REGNO_RENAME_OK is defined.
34813 * sel-sched.c (sel_hard_regno_rename_ok): Likewise.
34815 2015-04-27 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
34817 * calls.c (prepare_call_address): Remove ifdef NO_FUNCTION_CSE.
34818 * cse.c (fold_rtx): Likewise.
34819 * config/alpha/alpha.h (NO_FUNCTION_CSE): Define to 1.
34820 * config/arc/arc.h (NO_FUNCTION_CSE): Likewise.
34821 * config/avr/avr.h (NO_FUNCTION_CSE): Likewise.
34822 * config/cr16/cr16.h (NO_FUNCTION_CSE): Likewise.
34823 * config/epiphany/epiphany.h (NO_FUNCTION_CSE): Likewise.
34824 * config/frv/frv.h (NO_FUNCTION_CSE): Likewise.
34825 * config/h8300/h8300.h (NO_FUNCTION_CSE): Likewise.
34826 * config/i386/i386.h (NO_FUNCTION_CSE): Likewise.
34827 * config/ia64/ia64.h (NO_FUNCTION_CSE): Likewise.
34828 * config/lm32/lm32.h (enum reg_class) (NO_FUNCTION_CSE):
34830 * config/m32r/m32r.h (NO_FUNCTION_CSE): Likewise.
34831 * config/mep/mep.h (NO_FUNCTION_CSE): Likewise.
34832 * config/mn10300/mn10300.h (NO_FUNCTION_CSE): Likewise.
34833 * config/nds32/nds32.h (NO_FUNCTION_CSE): Likewise.
34834 * config/nios2/nios2.h (NO_FUNCTION_CSE): Likewise.
34835 * config/pa/pa.h (NO_FUNCTION_CSE): Likewise.
34836 * config/rs6000/rs6000.h (NO_FUNCTION_CSE): Likewise.
34837 * config/s390/s390.h (NO_FUNCTION_CSE): Likewise.
34838 * config/sparc/sparc.h (NO_FUNCTION_CSE): Likewise.
34839 * config/spu/spu.h (NO_FUNCTION_CSE): Likewise.
34840 * config/stormy16/stormy16.h (NO_FUNCTION_CSE): Likewise.
34841 * config/v850/v850.h (NO_FUNCTION_CSE): Likewise.
34842 * defaults.h (NO_FUNCTION_CSE): Provide default definition to 0.
34843 * doc/tm.texi: Regenerate.
34844 * doc/tm.texi.in: Document NO_FUNCTION_CSE is always defined to
34845 either true or false.
34847 2015-04-27 Jeff Law <law@redhat.com>
34849 PR tree-optimization/65217
34850 * tree-ssa-dom.c (record_equality): Given two SSA_NAMEs, if just one
34851 of them has a single use, make sure it is the LHS of the implied
34854 2015-04-28 Alan Modra <amodra@gmail.com>
34857 * config/rs6000/rs6000.c (POWERPC64_TOC_POINTER_ALIGNMENT): Define.
34858 (offsettable_ok_by_alignment): Use minimum of decl and toc
34859 pointer alignment. Replace dead code with assertion.
34860 (use_toc_relative_ref): Add mode arg. Return false in -mcmodel=medium
34861 case if size exceeds toc pointer alignment.
34862 (rs6000_legitimize_reload_address): Update use_toc_relative_ref call.
34863 (rs6000_emit_move): Likewise.
34864 * configure.ac: Add linker toc pointer alignment check.
34865 * configure: Regenerate.
34866 * config.in: Regenerate.
34868 2015-04-27 Yoshinori Sato <ysato@users.sourceforge.jp>
34870 * config.gcc: Add h8300-*-linux.
34871 * config/h8300/linux.h: New.
34872 * config/h8300/t-linux: New.
34873 * config/h8300/h8300.c (h8300_option_override): Normal mode
34874 is not supported for h8300-*-linux.
34875 (h8300_file_start): Target priority change.
34876 (get_shift_alg): Likewise.
34877 (h8300_shift_need_scratch_p): Likewise.
34878 * config/h8300/h8300.h (TARGET_CPU_CPP_BUILTINS): Likewise.
34879 * config/h8300/h8300.md (define_peephole2): Remove duplicate condition.
34881 2015-04-27 Caroline Tice <cmtice@google.com>
34883 * final.c (final_scan_insn): Output cold_function_name as function
34885 * varasm.c (cold_function_name): Make global.
34886 (assemble_start_function): Re-set cold_function_name.
34887 (assemble_end_function): Output cold partition size.
34888 * varasm.h (cold_function_name): Declare global.
34890 2015-04-27 Ilya Tocar <ilya.tocar@intel.com>
34892 * config/i386/i386.h (EXT_REX_SSE_REG_P): New.
34893 * config/i386/i386.md (*cmpi<FPCMP:unord><MODEF:mode>_mixed): Use "v"
34895 (*movxi_internal_avx512f): Ditto.
34896 (define_split): Check for xmm16+, when splitting scalar float_extend.
34897 (*extendsfdf2_mixed): Use "v" constraint.
34898 (define_split): Check for xmm16+, when splitting scalar float_truncate.
34899 (*truncdfsf_fast_sse): Use "v" constraint.
34900 (fix_trunc<MODEF:mode><SWI48:mode>_sse): Ditto.
34901 (*float<SWI48:mode><MODEF:mode>2_sse): Ditto.
34902 (define_peephole2): Check for xmm16+, when converting scalar
34904 (define_peephole2): Check for xmm16+, when converting scalar
34906 (*fop_<mode>_comm_mixed): Use "v" constraint.
34907 (*fop_<mode>_comm_sse): Ditto.
34908 (*fop_<mode>_1_mixed): Ditto.
34909 (*sqrt<mode>2_sse): Ditto.
34910 (*ieee_s<ieee_maxmin><mode>3): Ditto.
34912 2015-04-27 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
34914 * combine.c (simplify_if_then_else): Use std::swap instead
34915 of manually swapping.
34916 (known_cond): Likewise.
34917 (simplify_comparison): Likewise.
34919 2015-04-27 Peter Bergner <bergner@vnet.ibm.com>
34922 * config/rs6000/htm.md: Remove all define_expands.
34923 (UNSPECV_HTM_TABORTDC, UNSPECV_HTM_TABORTDCI, UNSPECV_HTM_TABORTWC,
34924 UNSPECV_HTM_TABORTWCI): Remove.
34925 (UNSPECV_HTM_TABORTXC, UNSPECV_HTM_TABORTXCI, UNSPECV_HTM_TTEST): New.
34926 (tabort_internal, tbegin_internal, tcheck_internal, tend_internal,
34927 trechkpt_internal, treclaim_internal, tsr_internal): Rename from this...
34928 (tabort, tbegin, tcheck, tend, trechkpt, treclaim, tsr): ...to this.
34929 (tabortdc_internal, tabortdci_internal, tabortwc_internal,
34930 tabortwci_internal): Remove define_insns.
34931 (tabort<wd>c, tabort<wd>ci): New define_insns.
34932 (tabort): Use gpc_reg_operand.
34933 (tcheck): Remove operand.
34934 (htm_mfspr_<mode>, htm_mtspr_<mode>): Use GPR mode macro.
34935 * config/rs6000/htmxlintrin.h (__TM_end): Use _HTM_TRANSACTIONAL as
34937 * config/rs6000/rs6000-builtin.def (BU_HTM_SPR0): Remove.
34938 (BU_HTM_SPR1): Rename to BU_HTM_V1. Remove use of RS6000_BTC_SPR.
34939 (tabort, tabortdc, tabortdci, tabortwc, tabortwci, tbegin,
34940 tcheck, tend, tendall, trechkpt, treclaim, tresume, tsuspend,
34941 tsr, ttest): Pass in the RS6000_BTC_CR attribute.
34942 (get_tfhar, set_tfhar, get_tfiar, set_tfiar, get_texasr, set_texasr,
34943 get_texasru, set_texasru): Pass in the RS6000_BTC_SPR attribute.
34944 (tcheck): Remove builtin argument.
34945 * config/rs6000/rs6000.c (rs6000_htm_spr_icode): Use TARGET_POWERPC64
34947 (htm_expand_builtin): Fix usage of expandedp. Disallow usage of the
34948 tabortdc and tabortdci builtins when not in 64-bit mode.
34949 Modify code to handle the loss of the HTM define_expands.
34950 Emit code to copy the CR register to TARGET.
34951 (htm_init_builtins): Modify code to handle the loss of the HTM
34953 * config/rs6000/rs6000.h (RS6000_BTC_32BIT): Delete.
34954 (RS6000_BTC_64BIT): Likewise.
34955 (RS6000_BTC_CR): New macro.
34956 * doc/extend.texi: Update documentation for htm builtins.
34958 2015-04-27 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
34960 * simplify-rtx.c (simplify_gen_binary): Use std::swap instead
34961 of manually swapping.
34962 (simplify_associative_operation): Likewise.
34963 (simplify_binary_operation): Likewise.
34964 (simplify_plus_minus): Likewise.
34965 (simplify_relational_operation): Likewise.
34966 (simplify_ternary_operation): Likewise.
34968 2015-04-27 Richard Sandiford <richard.sandiford@arm.com>
34970 * config/stormy16/predicates.md (xs_hi_general_operand): Delete.
34971 (xs_hi_nonmemory_operand): Remove error.
34972 * config/stormy16/stormy16.md (movhi, movhi_internal): Use
34973 general_operand rather than xs_hi_general_operand.
34975 2015-04-27 Richard Biener <rguenther@suse.de>
34977 * tree-ssa-dom.c (record_equivalences_from_phis): Valueize PHI arg.
34978 (record_equivalences_from_stmt): Valueize rhs.
34979 (record_equality): Canonicalize x and y order via
34980 tree_swap_operands_p. Do not swap operands for same loop depth.
34982 2015-04-27 Georg-Johann Lay <avr@gjlay.de>
34986 * config/avr/gen-avr-mmcu-specs.c (print_mcu): Close file.
34987 Add hint how to use own spec file.
34989 2015-04-27 Jakub Jelinek <jakub@redhat.com>
34991 PR tree-optimization/65875
34992 * tree-vrp.c (update_value_range): If in is_new case setting
34993 old_vr to VR_VARYING, also set new_vr to it. Remove
34994 old_vr->type == VR_VARYING test.
34995 (vrp_visit_phi_node): Return SSA_PROP_VARYING instead of
34996 SSA_PROP_INTERESTING if update_value_range returned true,
34997 but new range is VR_VARYING.
34999 2015-04-27 Thomas Preud'homme <thomas.preudhomme@arm.com>
35001 * combine.c (sign_extend_short_imm): New.
35002 (set_nonzero_bits_and_sign_copies): Use above new function for sign
35003 extension of src short immediate.
35004 (reg_nonzero_bits_for_combine): Likewise for tem.
35006 2015-04-27 Eric Botcazou <ebotcazou@adacore.com>
35008 * stor-layout.c (self_referential_component_ref_p): New predicate.
35009 (copy_self_referential_tree_r): Use it.
35010 (self_referential_size): Punt for simple operations directly involving
35011 self-referential component references.
35012 * tree-cfg.c (dump_function_to_file): Add missing final curly bracket.
35014 2015-04-27 Eric Botcazou <ebotcazou@adacore.com>
35016 * ipa-icf.c (icf_handled_component_p): Remove redundant tests.
35018 2015-04-27 Richard Sandiford <richard.sandiford@arm.com>
35020 * vec.h (vec): Make splice arguments const. Update definitions
35023 2015-04-27 Yvan Roux <yvan.roux@linaro.org>
35025 * config/arm/arm.md (*arm_subsi3_insn): Fixed redundant
35028 2015-04-26 Tom de Vries <tom@codesourcery.com>
35030 PR tree-optimization/65826
35031 * internal-fn.def: Mark VA_ARG with ECF_LEAF.
35033 2015-04-24 Steve Ellcey <sellcey@imgtec.com>
35035 * config/mips/mips.md: (*madd4<mode>) Remove accum_in attribute.
35036 (*madd3<mode>): Ditto.
35037 (*msub4<mode>): Ditto.
35038 (*msub3<mode>): Ditto.
35039 (*nmadd4<mode>): Ditto.
35040 (*nmadd3<mode>): Ditto.
35041 (*nmadd4<mode>_fastmath): Ditto.
35042 (*nmadd3<mode>_fastmath): Ditto.
35043 (*nmsub4<mode>): Ditto.
35044 (*nmsub3<mode>): Ditto.
35045 (*nmsub4<mode>_fastmath): Ditto.
35046 (*nmsub3<mode>_fastmath): Ditto.
35048 2015-04-24 Jason Merrill <jason@redhat.com>
35051 * tree.c (build_reference_type_for_mode): Don't pass can_alias_all
35052 down when building TYPE_CANONICAL.
35053 (build_pointer_type_for_mode): Likewise.
35055 2015-04-24 Chen Gang <gang.chen.5i5j@gmail.com>
35057 * genrecog.c (validate_pattern): Check matching constraint refers
35058 to a lower numbered operand.
35060 2015-04-24 Michael Meissner <meissner@linux.vnet.ibm.com>
35063 * config/rs6000/rs6000.opt (-mvsx-align-128): Make options that
35064 save to independent variables use the Save attribute. This will
35065 allow these options to be modified with the #pragma/attribute
35067 (-mallow-movmisalign): Likewise.
35068 (-mallow-df-permute): Likewise.
35069 (-msched-groups): Likewise.
35070 (-malways-hint): Likewise.
35071 (-malign-branch-targets): Likewise.
35072 (-mvectorize-builtins): Likewise.
35073 (-msave-toc-indirect): Likewise.
35075 * config/rs6000/rs6000.c (rs6000_opt_masks): Add more options that
35076 can be set via the #pragma/attribute target support.
35077 (rs6000_opt_vars): Likewise.
35078 (rs6000_inner_target_options): If VSX was set, also set
35079 -mno-avoid-indexed-addresses.
35081 2015-04-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
35083 * config/arm/iterators.md (shiftable_ops): Rename to...
35084 (SHIFTABLE_OPS): ... This. Update use in comments.
35085 (ior_xor): Rename to...
35086 (IOR_XOR): ... This.
35087 (vqh_ops): Rename to...
35088 (VQH_OPS): ... This.
35089 (vqhs_ops): Rename to...
35090 (VQHS_OPS): ... This.
35091 (rshifts): Rename to...
35092 (RSHIFTS): ... This.
35093 (returns): Rename to...
35094 (RETURNS): ... This.
35095 * config/arm/arm.md: Update uses of the above.
35096 * config/arm/neon.md: Likewise.
35098 2014-04-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
35100 * config.host (case ${host}): Add aarch64*-*-linux case.
35101 * config/aarch64/aarch64-cores.def: Add IMPLEMENTER_ID and PART_NUMBER
35102 fields to all the cores.
35103 * config/aarch64/aarch64-elf.h (DRIVER_SELF_SPECS):
35104 Add MCPU_MTUNE_NATIVE_SPECS.
35105 * config/aarch64/aarch64-option-extensions.def: Add FEATURE_STRING
35106 field to all extensions.
35107 * config/aarch64/aarch64-opts.h: Adjust definition of AARCH64_CORE.
35108 * config/aarch64/aarch64.c: Adjust definition of AARCH64_CORE.
35109 Adjust definition of AARCH64_OPT_EXTENSION.
35110 * config/aarch64/aarch64.h: Adjust definition of AARCH64_CORE.
35111 (MCPU_MTUNE_NATIVE_SPECS): Define.
35112 * config/aarch64/driver-aarch64.c: New file.
35113 * config/aarch64/x-arch64: New file.
35114 * doc/invoke.texi (AArch64 Options): Document native value for -mcpu,
35117 2015-04-24 Uros Bizjak <ubizjak@gmail.com>
35118 Wei Mi <wmi@google.com>
35120 * config/i386/i386-protos.h (ix86_operands_ok_for_move_multiple): New.
35121 * config/i386/i386.c (extract_base_offset_in_addr): New function.
35122 (ix86_operands_ok_for_move_multiple): Ditto.
35123 * config/i386/sse.md (movsd/movhpd to movupd peephole2): New pattern.
35124 (movlpd/movhpd to movupd peephole2): Ditto.
35126 2015-04-24 Marek Polacek <polacek@redhat.com>
35129 * input.h (from_macro_expansion_at): Define.
35132 * doc/invoke.texi: Update description of -Wlogical-op.
35134 2015-04-24 Thomas Preud'homme <thomas.preudhomme@arm.com>
35136 * config/arm/unknown-elf.h (ASM_OUTPUT_ALIGNED_DECL_LOCAL): fix
35137 ternary operator in fprintf and harmonize spacing.
35139 2015-04-24 Uros Bizjak <ubizjak@gmail.com>
35141 * config/i386/sse.md (*vec_widen_smult_even_v8si<mask_name>):
35142 Mark operand1 commutative.
35144 2015-04-24 Uros Bizjak <ubizjak@gmail.com>
35146 * config/i386/sse.md (*vec_concatv2sf_sse4_1): Do not allow both
35147 input operands in memory.
35148 (*vec_concatv2si_sse4_1): Ditto.
35149 (*vec_concatv2df): Ditto, except for SSE3 and equal input operands.
35150 (vec_extract_lo_<mode><mask_name>): Change operand 1 predicate to
35152 (vec_extract_hi_v32hi): Ditto.
35153 (vec_extract_hi_v64hi): Ditto.
35154 (<mask_codefor>avx512f_unpckhpd512<mask_name>): Ditto.
35156 2015-04-24 Thomas Preud'homme <thomas.preudhomme@arm.com>
35157 Steven Bosscher <steven@gcc.gnu.org>
35159 PR rtl-optimization/34503
35160 * cprop.c (cprop_reg_p): New.
35161 (hash_scan_set): Use above function to check if register can be
35163 (find_avail_set): Return up to two sets, one whose source is a
35164 register and one whose source is a constant. Sets are returned in an
35165 array passed as parameter rather than as a return value.
35166 (cprop_insn): Use a do while loop rather than a goto. Try each of the
35167 sets returned by find_avail_set, starting with the one whose source is
35168 a constant. Use cprop_reg_p to check if register can be propagated.
35169 (do_local_cprop): Use cprop_reg_p to check if register can be
35171 (implicit_set_cond_p): Likewise.
35173 2015-04-23 Jan Hubicka <hubicka@ucw.cz>
35175 * ipa-icf.c (sem_function::equals_wpa): Compare thunk info.
35176 (sem_function::equals): IGNORED_NODES parameter is now unused;
35177 update call of equals_private.
35178 (sem_function::equals_private): Do not call equals_wpa; skip
35179 gimple body matching if there is no body.
35180 (sem_function::init): Add logic to hash tthunk info.
35181 (sem_function::parse): Also parse thunks.
35182 * ipa-icf.h (equals_private): Update declaration.
35184 2015-04-23 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
35186 * config/rs6000/altivec.md (*altivec_lvx_<mode>_internal): Remove
35187 asterisk from name so this can be generated directly.
35188 (*altivec_stvx_<mode>_internal): Likewise.
35189 * config/rs6000/rs6000.c (rs6000_emit_le_vsx_store): Add assert
35190 that this is never called during or after reload/lra.
35191 (rs6000_frame_related): Remove split_reg
35192 argument and logic that references it.
35193 (emit_frame_save): Remove last parameter from call to
35194 rs6000_frame_related.
35195 (rs6000_emit_prologue): Remove last parameter from eight calls to
35196 rs6000_frame_related. Force generation of stvx instruction for
35197 Altivec register saves. Remove split_reg handling, which is no
35199 (rs6000_emit_epilogue): Force generation of lvx instruction for
35200 Altivec register restores.
35202 2015-04-23 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
35204 * config/rs6000/rs6000.opt (mcrypto): Change option description to
35205 match category changes in ISA 2.07B.
35207 2015-04-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
35209 * config/arm/iterators.md (GTGE, GTUGEU, COMPARISONS): New code
35211 (cmp_op, cmp_type): New code attributes.
35212 (NEON_VCMP, NEON_VACMP): New int iterators.
35213 (cmp_op_unsp): New int attribute.
35214 * config/arm/neon.md (neon_vc<cmp_op><mode>): New define_expand.
35215 (neon_vceq<mode>): Delete.
35216 (neon_vc<cmp_op><mode>_insn): New pattern.
35217 (neon_vc<cmp_op_unsp><mode>_insn_unspec): Likewise.
35218 (neon_vcgeu<mode>): Delete.
35219 (neon_vcle<mode>): Likewise.
35220 (neon_vclt<mode>: Likewise.
35221 (neon_vcage<mode>): Likewise.
35222 (neon_vcagt<mode>): Likewise.
35223 (neon_vca<cmp_op><mode>): New define_expand.
35224 (neon_vca<cmp_op><mode>_insn): New pattern.
35225 (neon_vca<cmp_op_unsp><mode>_insn_unspec): Likewise.
35227 2015-04-23 Jan Hubicka <hubicka@ucw.cz>
35229 * tree.h (attribute_value_equal): Declare.
35230 * tree.c (attribute_value_equal): Export.
35232 2015-04-23 Jan Hubicka <hubicka@ucw.cz>
35234 * ipa-icf.c (sem_item::compare_attributes): New function.
35235 (sem_item::compare_referenced_symbol_properties): Compare variable
35237 (sem_item::hash_referenced_symbol_properties): Record DECL_ALIGN.
35238 (sem_function::param_used_p): New function.
35239 (sem_function::equals_wpa): Fix attribute comparsion; match
35240 parameter type codes; do not compare paremter flags when
35241 they are not used; compare edge flags; compare indirect calls.
35242 (sem_item::update_hash_by_addr_refs): Hash reference type.
35243 (sem_function::equals_private): Do not match DECL_ATTRIBUTES.
35244 (sem_variable::equals_wpa): Do not match DECL_ALIGN; match
35245 reference use type.
35246 (sem_item_optimizer::update_hash_by_addr_refs): Use param_used_p.
35247 * ipa-icf.h (compare_attributes, param_used_p): Declare.
35249 2015-04-23 Jan Hubicka <hubicka@ucw.cz>
35251 * ipa-icf.c (symbol_compare_collection::symbol_compare_collection):
35253 (sem_function::get_hash): Do not hash DECL_DISREGARD_INLINE_LIMITS,
35254 DECL_DECLARED_INLINE_P and DECL_IS_OPERATOR_NEW.
35255 (sem_item::compare_referenced_symbol_properties): New.
35256 (sem_item::hash_referenced_symbol_properties): New.
35257 (sem_item::compare_cgraph_references): Rename to ...
35258 (sem_item::compare_symbol_references): ... this one; use
35259 compare_referenced_symbol_properties.
35260 (sem_function::equals_wpa): Do not compare
35261 DECL_DISREGARD_INLINE_LIMITS, DECL_DECLARED_INLINE_P,
35262 DECL_IS_OPERATOR_NEW; compare pointer sizes.
35263 (sem_item::update_hash_by_addr_refs): Call
35264 hash_referenced_symbol_properties.
35265 (sem_item::update_hash_by_local_refs): Cleanup.
35266 (sem_function::merge): Do not mix up symbol properties.
35267 (sem_variable::equals_wpa): Use compare_symbol_references.
35268 * ipa-icf.h (sem_item::compare_referenced_symbol_properties): New.
35269 (sem_item::hash_referenced_symbol_properties): New.
35270 (sem_item::compare_symbol_references): New.
35271 (sem_item::compare_cgraph_references): Remove.
35273 2015-04-23 Kwok Cheung Yeung <kcy@codesourcery.com>
35276 * config/arm/unknown-elf.h (ASM_OUTPUT_ALIGNED_DECL_LOCAL):
35277 Emit size of local.
35279 2015-04-23 Nick Clifton <nickc@redhat.com>
35281 * config/rl78/rl78.c (rl78_preferred_reload_class): Add
35282 ATTRIBUTE_UNUSED to x parameter.
35283 * config/rl78/rl78-opts.h (enum rl78_mul_types): Remove unused MUL_RL78.
35285 2015-04-23 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
35287 * config/rs6000/crypto.md (crypto_vpmsum<CR_char>): Change
35288 TARGET_CRYPTO to TARGET_P8_VECTOR>
35289 (crypto_vpermxor_<mode>): Likewise.
35290 * config/rs6000/rs6000-builtin.def (BU_CRYPTO_2A): New #define.
35291 (BU_CRYPTO_3A): Likewise.
35292 (BU_CRYPTO_OVERLOAD_2A): Rename from BU_CRYPTO_OVERLOAD_2.
35293 (BU_CRYPTO_OVERLOAD_3A): New #define.
35294 (VPMSUMB): Change from BU_CRYPTO_2 to BU_CRYPTO_2A.
35295 (VPMSUMH): Likewise.
35296 (VPMSUMW): Likewise.
35297 (VPMSUMD): Likewise.
35298 (VPERMXOR_V2DI): Change from BU_CRYPTO_3 to BU_CRYPTO_3A.
35299 (VPERMXOR_V4SI): Likewise.
35300 (VPERMXOR_V8HI): Likewise.
35301 (VPERMXOR_V16QI): Likewise.
35302 (VPMSUM): Change from BU_CRYPTO_OVERLOAD_2 to
35303 BU_CRYPTO_OVERLOAD_2A.
35304 (VPERMXOR): Change from BU_CRYPTO_OVERLOAD3 to
35305 BU_CRYPTO_OVERLOAD_3A.
35306 * config/rs6000/rs6000.opt (mcrypto): Change description of
35309 2015-04-23 Richard Biener <rguenther@suse.de>
35311 * passes.def: Remove copy propagation passes run directly after CCP.
35312 * tree-ssa-ccp.c (get_value_for_expr): Fall back to a COPY for
35314 (ccp_visit_phi_node): Rework to handle first executable edge
35317 2015-04-23 Matthew Wahab <matthew.wahab@arm.com>
35319 * config/arm/arm.h (LEGITIMIZE_RELOAD_ADDRESS): Remove.
35320 (ARM_LEGITIMIZE_RELOAD_ADDRESS): Remove.
35321 (THUMB_LEGITIMIZE_RELOAD_ADDRESS): Remove.
35322 * config/arm/arm.c (arm_legimitimize_reload_address): Remove.
35323 (thumb_legimitimize_reload_address): Remove.
35324 * config/arm/arm-protos.h (arm_legimitimize_reload_address):
35326 (thumb_legimitimize_reload_address): Remove.
35328 2015-04-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
35330 * conditions.h (CC_STATUS_INIT): Gate on #ifndef CC_STATUS_INIT.
35332 2015-04-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
35334 * config/arm/arm.md (load_multiple): Reject operand 2 greater than
35336 (store_multiple): Likewise.
35338 2015-04-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
35340 * config/arm/arm-protos.h (struct tune_params): Add issue_rate field.
35341 * config/arm/arm.c (arm_slowmul_tune, arm_fastmul_tune,
35342 arm_strongarm_tune, arm_xscale_tune, arm_9e_tune, arm_v6t2_tune,
35343 arm_cortex_tune, arm_cortex_a8_tune, arm_cortex_a7_tune,
35344 arm_cortex_a15_tune, arm_cortex_a53_tune, arm_cortex_a57_tune,
35345 arm_cortex_a9_tune, arm_cortex_a12_tune, arm_v7m_tune, arm_v6m_tune,
35346 arm_fa726te_tune arm_cortex_a5_tune, arm_xgene1_tune):
35347 Specify issue_rate value.
35348 (arm_issue_rate): Look up issue rate from tuning structs. Remove
35349 large switch statement.
35350 (arm_marvell_pj4_tune): New struct.
35351 * config/arm/arm-cores.def (marvell-pj4): Use arm_marvell_pj4_tune
35354 2015-04-23 Richard Biener <rguenther@suse.de>
35356 * tree-vect-slp.c (vect_find_first_load_in_slp_instance): Remove.
35357 (vect_find_last_store_in_slp_instance): Rename to ...
35358 (vect_find_last_scalar_stmt_in_slp): ... this and generalize.
35359 (vect_analyze_slp_cost_1): Use vector_load for constant defs
35360 and vec_construct for external defs when estimating prologue cost.
35361 (vect_analyze_slp_instance): Do not init SLP_INSTANCE_FIRST_LOAD_STMT.
35362 Compute costs here only when vectorizing loops.
35363 (vect_slp_analyze_bb_1): Compute SLP cost here, after vector types
35364 have been determined.
35365 (vect_schedule_slp_instance): Simplify vectorized code placement
35366 and prepare for in-BB external defs.
35367 * tree-vectorizer.h (struct _slp_instance): Remove first_load member.
35368 (SLP_INSTANCE_FIRST_LOAD_STMT): Remove.
35369 * tree-vect-stmts.c (vect_model_store_cost): Remove PURE_SLP_STMT
35371 (vect_model_load_cost): Likewise.
35372 (vectorizable_store): Instead add it here.
35373 (vectorizable_load): Likewise.
35374 (vect_is_simple_use): Dump def type textually.
35376 2015-04-23 Richard Biener <rguenther@suse.de>
35378 * cfgexpand.c (expand_gimple_stmt_1): Use ops.code.
35379 * cfgloop.c (verify_loop_structure): Verify the root loop node.
35380 * except.c (duplicate_eh_regions): Call get_eh_region_from_lp_number_fn
35381 instead of get_eh_region_from_lp_number.
35382 * loop-init.c (fix_loop_structure): If we removed a loop, reset
35385 2015-04-23 Anton Blanchard <anton@samba.org>
35387 * config/rs6000/rs6000.c (rs6000_output_function_prologue): No
35388 need for -mprofile-kernel to save LR to stack.
35390 2015-04-22 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
35392 * config/rs6000/rs6000.c (rtx_is_swappable_p): Commentary
35394 (insn_is_swappable_p): Return 1 for a convert from double to
35395 single precision when all of its uses are splats of BE element
35398 2015-04-23 Kugan Vivekanandarajah <kuganv@linaro.org>
35400 * ira-costs.c (record_operand_costs): Fix typo (remove redundant code).
35402 2015-04-22 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
35405 * config/rs6000/rs6000.c (rs6000_option_override_internal): For
35406 VSX + POWER8, enable TARGET_ALLOW_MOVMISALIGN and
35407 TARGET_EFFICIENT_UNALIGNED_VSX if not selected by command line
35409 (rs6000_builtin_mask_for_load): Return 0 for targets with
35410 efficient unaligned VSX accesses so that the vectorizer will use
35411 direct unaligned loads.
35412 (rs6000_builtin_support_vector_misalignment): Always return true
35413 for targets with efficient unaligned VSX accesses.
35414 (rs6000_builtin_vectorization_cost): Cost of unaligned loads and
35415 stores on targets with efficient unaligned VSX accesses is almost
35416 always the same as the cost of an aligned load or store, so model
35418 * config/rs6000/rs6000.h (SLOW_UNALIGNED_ACCESS): Return 0 for
35419 unaligned vectors if we have efficient unaligned VSX accesses.
35420 * config/rs6000/rs6000.opt (mefficient-unaligned-vector): New
35421 undocumented option.
35423 2015-04-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
35426 2015-04-22 Gregor Richards <gregor.richards@uwaterloo.ca>
35428 * config.gcc (LIBC_MUSL): New tm_defines macro.
35429 * config/linux.h (OPTION_MUSL): Define.
35430 (INCLUDE_DEFAULTS_MUSL_GPP, INCLUDE_DEFAULTS_MUSL_LOCAL,)
35431 (INCLUDE_DEFAULTS_MUSL_PREFIX, INCLUDE_DEFAULTS_MUSL_CROSS,)
35432 (INCLUDE_DEFAULTS_MUSL_TOOL, INCLUDE_DEFAULTS_MUSL_NATIVE): Define.
35434 * config/linux.opt (mmusl): New option.
35435 * configure.ac (gcc_cv_libc_provides_ssp): Add *-*-musl*.
35436 (gcc_cv_target_dl_iterate_phdr): Add *-linux-musl*.
35438 * configure: Regenerate.
35440 2015-04-22 Gregor Richards <gregor.richards@uwaterloo.ca>
35442 * config.gcc (LIBC_MUSL): New tm_defines macro.
35443 * config/linux.h (OPTION_MUSL): Define.
35444 (INCLUDE_DEFAULTS_MUSL_GPP, INCLUDE_DEFAULTS_MUSL_LOCAL,)
35445 (INCLUDE_DEFAULTS_MUSL_PREFIX, INCLUDE_DEFAULTS_MUSL_CROSS,)
35446 (INCLUDE_DEFAULTS_MUSL_TOOL, INCLUDE_DEFAULTS_MUSL_NATIVE): Define.
35448 * config/linux.opt (mmusl): New option.
35449 * configure.ac (gcc_cv_libc_provides_ssp): Add *-*-musl*.
35450 (gcc_cv_target_dl_iterate_phdr): Add *-linux-musl*.
35452 * configure: Regenerate.
35454 2015-04-22 Yury Gribov <y.gribov@samsung.com>
35456 * doc/invoke.texi (-fsanitize-sections): Update description.
35457 * asan.c (set_sanitized_sections): Parse incoming arg.
35458 (section_sanitized_p): Support wildcards.
35460 2015-04-22 Tom de Vries <tom@codesourcery.com>
35462 PR tree-optimization/65823
35463 * gimplify.c (gimplify_modify_expr): Use operand_equal_p to test for
35464 equality between ap_copy and ap.
35466 2015-04-22 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
35469 * config/openbsd-oldgas.h (OBSD_LIB_SPEC): Add.
35471 2015-04-22 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
35474 * config.gcc (vax-*-openbsd*): Fix name of pthread spec header.
35476 2015-04-22 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
35479 * config.gcc (bfin*-linux-uclibc*): Prepend tmake_file and
35480 remove already contained t-files.
35482 2015-04-22 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
35484 * tree-tailcall.c (suitable_for_tail_opt_p, find_tail_calls):
35485 Remove unneeded forward declarations.
35486 (suitable_for_tail_call_opt_p): Commentary typo fix.
35488 2015-04-22 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
35490 * varasm.c (emit_bss): Remove redundant guard.
35492 2015-04-22 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
35494 * config/c6x/c6x.h (TARGET_CPU_CPP_BUILTINS): Add unk_isa.
35496 2015-04-22 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
35498 * config/bfin/bfin.h (TARGET_CPU_CPP_BUILTINS): Add BFIN_CPU_UNKNOWN.
35500 2015-04-22 Hale Wang <hale.wang@arm.com>
35501 Terry Guo <terry.guo@arm.com>
35503 PR rtl-optimization/64818
35504 * combine.c (can_combine_p): Don't combine user-specified
35505 register if it is in an asm input.
35507 2015-04-21 Jan Hubicka <hubicka@ucw.cz>
35510 * passes.def (early_optimizations): Add pass_dse.
35512 2015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
35514 * defaults.h (INSN_REFERENCES_ARE_DELAYED): New definition.
35515 * reorg.c (redundant_insn): Remove ifdef
35516 INSN_REFERENCES_ARE_DELAYED.
35517 * resource.c (mark_referenced_resources): Likewise.
35519 2015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
35521 * defaults.h (INSN_SETS_ARE_DELAYED): New definition.
35522 * reorg.c (redundant_insn): Remove ifdef INSN_SETS_ARE_DELAYED.
35523 * resource.c (mark_set_resources): Likewise.
35525 2015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
35527 * caller-save.c (insert_one_insn): Remove ifdef HAVE_cc0.
35528 * cfgcleanup.c (flow_find_cross_jump): Likewise.
35529 (flow_find_head_matching_sequence): Likewise.
35530 (try_head_merge_bb): Likewise.
35531 * combine.c (can_combine_p): Likewise.
35532 (try_combine): Likewise.
35533 (distribute_notes): Likewise.
35534 * df-problems.c (can_move_insns_across): Likewise.
35535 * final.c (final): Likewise.
35536 * gcse.c (insert_insn_end_basic_block): Likewise.
35537 * ira.c (find_moveable_pseudos): Likewise.
35538 * reorg.c (try_merge_delay_insns): Likewise.
35539 (fill_simple_delay_slots): Likewise.
35540 (fill_slots_from_thread): Likewise.
35541 * sched-deps.c (sched_analyze_2): Likewise.
35543 2015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
35545 * df-scan.c (df_get_entry_block_def_set): Remove #ifdef
35546 PIC_OFFSET_TABLE_REGNUM.
35548 2015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
35550 * alias.c (init_alias_target): Remove ifdef
35551 * HARD_FRAME_POINTER_IS_FRAME_POINTER.
35552 * df-scan.c (df_insn_refs_collect): Likewise.
35553 (df_get_regular_block_artificial_uses): Likewise.
35554 (df_get_eh_block_artificial_uses): Likewise.
35555 (df_get_entry_block_def_set): Likewise.
35556 (df_get_exit_block_use_set): Likewise.
35557 * emit-rtl.c (gen_rtx_REG): Likewise.
35558 * ira.c (ira_setup_eliminable_regset): Likewise.
35559 * reginfo.c (init_reg_sets_1): Likewise.
35560 * regrename.c (rename_chains): Likewise.
35561 * reload1.c (reload): Likewise.
35562 (eliminate_regs_in_insn): Likewise.
35563 * resource.c (mark_referenced_resources): Likewise.
35564 (init_resource_info): Likewise.
35566 2015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
35568 * defaults.h (MASK_RETURN_ADDR): New definition.
35569 * except.c (expand_builtin_extract_return_addr): Remove ifdef
35572 2015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
35574 * defaults.h (RETURN_ADDR_OFFSET): New definition.
35575 * except.c (expand_builtin_extract_return_addr): Remove ifdef
35576 RETURN_ADDR_OFFSET.
35577 (expand_builtin_frob_return_addr): Likewise.
35579 2015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
35581 * cfgrtl.c (rtl_merge_blocks): Change #if HAVE_cc0 to if (HAVE_cc0)
35582 (try_redirect_by_replacing_jump): Likewise.
35583 (rtl_tidy_fallthru_edge): Likewise.
35584 * combine.c (insn_a_feeds_b): Likewise.
35585 (find_split_point): Likewise.
35586 (simplify_set): Likewise.
35587 * cprop.c (cprop_jump): Likewise.
35588 * cse.c (cse_extended_basic_block): Likewise.
35589 * df-problems.c (can_move_insns_across): Likewise.
35590 * function.c (emit_use_return_register_into_block): Likewise.
35591 * haifa-sched.c (sched_init): Likewise.
35592 * ira.c (find_moveable_pseudos): Likewise.
35593 * loop-invariant.c (find_invariant_insn): Likewise.
35594 * lra-constraints.c (curr_insn_transform): Likewise.
35595 * postreload.c (reload_combine_recognize_const_pattern):
35597 * reload.c (find_reloads): Likewise.
35598 * reorg.c (delete_scheduled_jump): Likewise.
35599 (steal_delay_list_from_target): Likewise.
35600 (steal_delay_list_from_fallthrough): Likewise.
35601 (redundant_insn): Likewise.
35602 (fill_simple_delay_slots): Likewise.
35603 (fill_slots_from_thread): Likewise.
35604 (delete_computation): Likewise.
35605 * sched-rgn.c (add_branch_dependences): Likewise.
35607 2015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
35609 * genconfig.c (main): Always define HAVE_cc0.
35610 * caller-save.c (insert_one_insn): Change ifdef HAVE_cc0 to #if
35612 * cfgcleanup.c (flow_find_cross_jump): Likewise.
35613 (flow_find_head_matching_sequence): Likewise.
35614 (try_head_merge_bb): Likewise.
35615 * cfgrtl.c (rtl_merge_blocks): Likewise.
35616 (try_redirect_by_replacing_jump): Likewise.
35617 (rtl_tidy_fallthru_edge): Likewise.
35618 * combine.c (do_SUBST_MODE): Likewise.
35619 (insn_a_feeds_b): Likewise.
35620 (combine_instructions): Likewise.
35621 (can_combine_p): Likewise.
35622 (try_combine): Likewise.
35623 (find_split_point): Likewise.
35625 (simplify_set): Likewise.
35626 (distribute_notes): Likewise.
35627 * cprop.c (cprop_jump): Likewise.
35628 * cse.c (cse_extended_basic_block): Likewise.
35629 * df-problems.c (can_move_insns_across): Likewise.
35630 * final.c (final): Likewise.
35631 (final_scan_insn): Likewise.
35632 * function.c (emit_use_return_register_into_block): Likewise.
35633 * gcse.c (insert_insn_end_basic_block): Likewise.
35634 * haifa-sched.c (sched_init): Likewise.
35635 * ira.c (find_moveable_pseudos): Likewise.
35636 * loop-invariant.c (find_invariant_insn): Likewise.
35637 * lra-constraints.c (curr_insn_transform): Likewise.
35638 * optabs.c (prepare_cmp_insn): Likewise.
35639 * postreload.c (reload_combine_recognize_const_pattern):
35641 * reload.c (find_reloads): Likewise.
35642 (find_reloads_address_1): Likewise.
35643 * reorg.c (delete_scheduled_jump): Likewise.
35644 (steal_delay_list_from_target): Likewise.
35645 (steal_delay_list_from_fallthrough): Likewise.
35646 (try_merge_delay_insns): Likewise.
35647 (redundant_insn): Likewise.
35648 (fill_simple_delay_slots): Likewise.
35649 (fill_slots_from_thread): Likewise.
35650 (delete_computation): Likewise.
35651 (relax_delay_slots): Likewise.
35652 * sched-deps.c (sched_analyze_2): Likewise.
35653 * sched-rgn.c (add_branch_dependences): Likewise.
35655 2015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
35657 * combine.c (find_single_use): Remove HAVE_cc0 ifdef for code
35658 that is trivially ded on non cc0 targets.
35659 (simplify_set): Likewise.
35660 (mark_used_regs_combine): Likewise.
35661 * cse.c (new_basic_block): Likewise.
35662 (fold_rtx): Likewise.
35663 (cse_insn): Likewise.
35664 (cse_extended_basic_block): Likewise.
35665 (set_live_p): Likewise.
35666 * rtlanal.c (canonicalize_condition): Likewise.
35667 * simplify-rtx.c (simplify_binary_operation_1): Likewise.
35669 2015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
35671 * conditions.h: Define macros even if HAVE_cc0 is undefined.
35672 * emit-rtl.c: Define functions even if HAVE_cc0 is undefined.
35673 * final.c: Likewise.
35674 * jump.c: Likewise.
35675 * recog.c: Likewise.
35676 * recog.h: Declare functions even when HAVE_cc0 is undefined.
35677 * sched-deps.c (sched_analyze_2): Always compile case for cc0.
35679 2015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
35681 * defaults.h: New definition of EH_RETURN_DATA_REGNO.
35682 * except.c: Remove definition of EH_RETURN_DATA_REGNO.
35683 * builtins.c (expand_builtin): Remove check if
35684 EH_RETURN_DATA_REGNO is defined.
35685 * df-scan.c (df_bb_refs_collect): Likewise.
35686 (df_get_exit_block_use_set): Likewise.
35687 * haifa-sched.c (initiate_bb_reg_pressure_info): Likewise.
35688 * ira-lives.c (process_bb_node_lives): Likewise.
35689 * lra-lives.c (process_bb_lives): Likewise.
35691 2015-04-21 Uros Bizjak <ubizjak@gmail.com>
35693 * config/i386/i386.md (ARGP_REG, FRAME_REG, BND2_REG, BND3_REG,
35694 FIRST_PSEUDO_REG): New.
35695 * config/i386/i386.h (STACK_POINTER_REGNUM): Define to SP_REG.
35696 (ARG_POINTER_REGNUM): Define to ARGP_REG.
35697 (FRAME_POINTER_REGNUM): Define to FRAME_REG.
35698 (HARD_FRAME_POINTER_REGNUM): Define to BP_REG.
35699 (FIRST_PSEUDO_REGISTER): Define to FIRST_PSEUDO_REG.
35700 (FIRST_INT_REG): New.
35701 (LAST_INT_REG): New.
35702 (FIRST_*_REG): Define using *_REG.
35703 (LAST_*_REG): Ditto.
35704 (QI_REGNO_P): Define using FIRST_QU_REG and LAST_QI_REG.
35705 (LEGACY_INT_REGNO_P): Define using FIRST_INT_REG and LAST_INT_REG.
35706 (FIRST_FLOAT_REG): Define to FIRST_STACK_REG.
35708 2015-04-21 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
35710 * expmed.c: (synth_mult): Only assume overlapping
35711 shift with previous steps in alg_sub_t_m2 case.
35713 2015-04-21 Richard Biener <rguenther@suse.de>
35715 PR tree-optimization/65650
35716 * tree-ssa-ccp.c (valid_lattice_transition): Allow lattice
35717 transitions involving copies.
35718 (set_lattice_value): Adjust for copy lattice state.
35719 (ccp_lattice_meet): Do not merge UNDEFINED and a copy to the copy
35720 if that doesn't dominate the merge point.
35721 (bit_value_unop): Adjust what we treat as varying mask.
35722 (bit_value_binop): Likewise.
35723 (bit_value_assume_aligned): Likewise.
35724 (evaluate_stmt): When we simplified to a SSA name record a copy
35725 instead of dropping to varying.
35726 (visit_assignment): Simplify.
35728 * gimple-match.h (gimple_simplify): Add another callback.
35729 * gimple-fold.c (fold_stmt_1): Adjust caller.
35730 (gimple_fold_stmt_to_constant_1): Likewise - pass valueize
35731 for the 2nd callback.
35732 * gimple-match-head.c (gimple_simplify): Add a callback that is
35733 used to valueize the stmt operands and use it that way.
35735 2015-04-21 Richard Biener <rguenther@suse.de>
35737 PR tree-optimization/65788
35738 * tree-ssa-ccp.c (evaluate_stmt): Evaluate to UNDEFINED early.
35740 2015-04-21 Richard Biener <rguenther@suse.de>
35742 * config/i386/i386.c (ix86_builtin_vectorization_cost): Scale
35743 vec_construct cost by vec_stmt_cost.
35745 2015-04-21 Richard Biener <rguenther@suse.de>
35747 * cfghooks.h (create_basic_block): Replace with two overloads
35748 for RTL and GIMPLE.
35749 (split_block): Likewise.
35750 * cfghooks.c (split_block): Rename to ...
35751 (split_block_1): ... this.
35752 (split_block): Add two type-safe overloads for RTL and GIMPLE.
35753 (split_block_after_labels): Call split_block_1.
35754 (create_basic_block): Rename to ...
35755 (create_basic_block_1): ... this.
35756 (create_basic_block): Add two type-safe overloads for RTL and GIMPLE.
35757 (create_empty_bb): Call create_basic_block_1.
35758 * cfgrtl.c (fixup_fallthru_exit_predecessor): Use
35759 split_block_after_labels.
35760 * omp-low.c (expand_parallel_call): Likewise.
35761 (expand_omp_target): Likewise.
35762 (simd_clone_adjust): Likewise.
35763 * tree-chkp.c (chkp_get_entry_block): Likewise.
35764 * cgraphunit.c (init_lowered_empty_function): Use the GIMPLE
35765 create_basic_block overload.
35766 (cgraph_node::expand_thunk): Likewise.
35767 * tree-cfg.c (make_blocks): Likewise.
35768 (handle_abnormal_edges): Likewise.
35769 * tree-inline.c (copy_bb): Likewise.
35771 2015-04-21 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
35773 * config/aarch64/aarch64.md (*<NLOGICAL:optab>_one_cmplsidi3_ze):
35775 (*xor_one_cmplsidi3_ze): Likewise.
35777 2015-04-21 Thomas Preud'homme <thomas.preudhomme@arm.com>
35779 * df-core.c (df_finish_pass): Iterate over df->problems_by_index[] and
35780 use df_remove_problem rather than manually removing problems, leaving
35781 holes in df->problems_in_order[].
35783 2015-04-21 Tom de Vries <tom@codesourcery.com>
35785 PR tree-optimization/65802
35786 * internal-fn.def (VA_ARG): Add ECF_NOTROW to flags.
35788 2015-04-21 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
35790 * common/config/aarch64/aarch64-common.c (AARCH64_CPU_NAME_LENGTH):
35792 (aarch64_rewrite_selected_cpu): Do not chop off extensions starting
35793 at '.'. Assert that there's enough space for everything.
35795 2015-04-21 Uros Bizjak <ubizjak@gmail.com>
35797 PR tree-optimization/64950
35799 2010-08-02 Uros Bizjak <ubizjak@gmail.com>
35802 * config/alpha/alpha.c (alpha_build_builtin_va_list): Mark __offset
35805 2015-04-20 Shiva Chen <shiva0217@gmail.com>
35807 PR rtl-optimization/64916
35808 * cfgcleanup.c (values_equal_p): New function.
35809 (can_replace_by): Use it.
35811 2015-04-20 Paolo Carlini <paolo.carlini@oracle.com>
35814 * doc/invoke.texi ([-Wnarrowing]): Update.
35816 2015-04-20 Jeff Law <law@redhat.com>
35818 PR tree-optimization/65658
35819 * tree-ssa-threadupdate.c (redirection_block_p): Remove
35820 redundant test for GIMPLE_ASSIGN in last change.
35822 2015-04-20 Uros Bizjak <ubizjak@gmail.com>
35824 * config/i386/i386.c (set_pic_reg_ever_live): Remove.
35825 (legitimize_pic_address): Do not call set_pic_reg_ever_live.
35826 (legitimize_tls_address): Ditto.
35827 (ix86_expand_move): Ditto.
35828 (ix86_expand_binary_operator): Remove reload_in_progress checks.
35829 (ix86_expand_unary_operator): Ditto.
35830 * config/i386/predicates.md (index_register_operand): Ditto.
35832 2015-04-20 Selim Belbachir <selim.belbachir@fr.thalesgroup.com>
35834 * reorg.c (try_merge_delay_insns): Improve correctness checking
35835 for targets with multiple delay slots.
35837 2015-04-20 Jeff Law <law@redhat.com>
35839 PR tree-optimization/65658
35840 * tree-ssa-threadupdate.c (redirection_block_p): Ignore clobber
35843 2015-04-20 Alan Lawrence <alan.lawrence@arm.com>
35845 * config/aarch64/aarch64.c (aarch64_simd_emit_pair_result_insn): Delete.
35846 * config/aarch64/aarch64-protos.h (aarch64_simd_emit_pair_result_insn):
35849 2015-04-20 Jakub Jelinek <jakub@redhat.com>
35852 * dwarf2out.c (add_AT_wide): Clear attr.dw_attr_val.val_entry.
35854 2015-04-20 Richard Biener <rguenther@suse.de>
35856 * gimple-fold.h (gimple_build): Remove optional valueize arguments.
35857 * gimple-fold.c (gimple_build_valueize): New function.
35858 (gimple_build): Always use gimple_build_valueize as valueize hook.
35860 2015-04-20 Alan Lawrence <alan.lawrence@arm.com>
35863 * config/aarch64/aarch64.c (aarch64_expand_vector_init): Load constant
35864 and overwrite variable parts if <= 1/2 the elements are variable.
35866 2015-04-19 Vladimir Makarov <vmakarov@redhat.com>
35868 PR rtl-optimization/65805
35869 * lra-eliminations.c (lra_eliminate_regs_1): Add new assert.
35870 Don't use difference of offset and previous offset if
35871 update_sp_offset is non-zero.
35872 (eliminate_regs_in_insn): Ditto.
35873 * lra-spills.c (remove_pseudos): Exchange 4th and 6th args in
35874 lra_eliminate_regs_1 call.
35875 * lra-constraints.c (get_equiv_with_elimination): Ditto.
35877 2015-04-18 Trevor Saunders <tsaunders@mozilla.com>
35879 * hash-table.h: Remove version of hash_table that stored value_type *.
35880 * asan.c, attribs.c, bitmap.c, cfg.c, cgraph.h, config/arm/arm.c,
35881 config/i386/winnt.c, config/ia64/ia64.c, config/mips/mips.c,
35882 config/sol2.c, coverage.c, cselib.c, dse.c, dwarf2cfi.c,
35883 dwarf2out.c, except.c, gcse.c, genmatch.c, ggc-common.c,
35884 gimple-ssa-strength-reduction.c, gimplify.c, haifa-sched.c,
35885 hard-reg-set.h, hash-map.h, hash-set.h, ipa-devirt.c, ipa-icf.h,
35886 ipa-profile.c, ira-color.c, ira-costs.c, loop-invariant.c,
35887 loop-iv.c, loop-unroll.c, lto-streamer.h, plugin.c, postreload-gcse.c,
35888 reginfo.c, statistics.c, store-motion.c, trans-mem.c, tree-cfg.c,
35889 tree-eh.c, tree-hasher.h, tree-into-ssa.c, tree-parloops.c,
35890 tree-sra.c, tree-ssa-coalesce.c, tree-ssa-dom.c, tree-ssa-live.c,
35891 tree-ssa-loop-im.c, tree-ssa-loop-ivopts.c, tree-ssa-phiopt.c,
35892 tree-ssa-pre.c, tree-ssa-reassoc.c, tree-ssa-sccvn.c,
35893 tree-ssa-structalias.c, tree-ssa-tail-merge.c,
35894 tree-ssa-threadupdate.c, tree-vectorizer.c, tree-vectorizer.h,
35895 valtrack.h, var-tracking.c, vtable-verify.c, vtable-verify.h: Adjust.
35897 2015-04-17 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
35898 Jakub Jelinek <jakub@redhat.com>
35901 * config/rs6000/rs6000.c (rtx_is_swappable_p): Ensure that a
35902 subsequent SH_NONE operand does not overwrite an existing *special
35904 (adjust_extract): Handle case where a vec_extract operation is
35905 wrapped in a PARALLEL.
35907 2015-04-17 H.J. Lu <hongjiu.lu@intel.com>
35910 * config/i386/i386.c (ix86_binds_local_p): Define only if
35911 TARGET_MACHO and TARGET_DLLIMPORT_DECL_ATTRIBUTES are false.
35913 2015-04-17 Jeff Law <law@redhat.com>
35915 PR tree-optimization/47679
35916 * Makefile.in (OBJS); Add tree-ssa-scopedtables.o.
35917 * tree-ssa-scopedtables.c: New file.
35918 * tree-ssa-scopedtables.h: New file.
35919 * tree-ssa-dom.c: Include tree-ssa-scopedtables.h.
35920 (const_and_copies): Change name/type.
35921 (record_const_or_copy): Move into tree-ssa-scopedtables.c
35922 (record_const_or_copy_1): Similarly.
35923 (restore_vars_to_original_value): Similarly.
35924 (pass_dominator::execute): Create and destroy const_and_copies table.
35925 (thread_across_edge): Update passing of const_and_copies.
35926 (record_temporary_equivalence): Use method calls rather than
35927 manipulating const_and_copies directly.
35928 (record_equality, cprop_into_successor_phis): Similarly.
35929 (dom_opt_dom_walker::before_dom_children): Similarly.
35930 (dom_opt_dom_walker::after_dom_children): Similarly.
35931 (eliminate_redundant_computations): Similarly.
35932 * tree-ssa-threadedge.c (remove_temporary_equivalences): Delete.
35933 (record_temporary_equivalence): Likewise.
35934 (invalidate_equivalences): Likewise.
35935 (record_temporary_equivalences_from_phis): Update due to type
35936 change of const_and_copies. Use method calls rather than
35937 manipulating the stack directly.
35938 (record_temporary_equivalences_from_stmts_at_dest): Likewise.
35939 (thread_through_normal_block, thread_across_edge): Likewise.
35940 (thread_across_edge): Likewise.
35941 * tree-ssa-threadedge.h (thread_across_edge): Update prototype.
35942 * tree-vrp.c: Include tree-ssa-scopedtables.h. Change type
35944 (identify_jump_threads): Update due to type change of equiv_stack.
35945 (finalize_jump_threads): Delete the equiv_stack when complete.
35947 2015-04-17 Uros Bizjak <ubizjak@gmail.com>
35949 * config/i386/i386.h (LEGITIMIZE_RELOAD_ADDRESS): Remove.
35950 * config/i386/i386.c (ix86_legitimize_reload_address): Ditto.
35951 * config/i386/i386-protos.h (ix86_legitimize_reload_address): Ditto.
35953 2015-04-17 Andreas Tobler <andreast@gcc.gnu.org>
35956 * config.gcc: Exit with a comment when we do not have a major version
35957 number for the FreeBSD target.
35959 2015-04-17 Jakub Jelinek <jakub@redhat.com>
35962 * genpreds.c (struct constraint_data): Add maybe_allows_reg and
35963 maybe_allows_mem bitfields.
35964 (maybe_allows_none_start, maybe_allows_none_end,
35965 maybe_allows_reg_start, maybe_allows_reg_end, maybe_allows_mem_start,
35966 maybe_allows_mem_end): New variables.
35967 (compute_maybe_allows): New function.
35968 (add_constraint): Use it to initialize maybe_allows_reg and
35969 maybe_allows_mem fields.
35970 (choose_enum_order): Sort the non-is_register/is_const_int/is_memory/
35971 is_address constraints such that those that allow neither mem nor
35972 reg come first, then those that only allow reg but not mem, then
35973 those that only allow mem but not reg, then the rest.
35974 (write_allows_reg_mem_function): New function.
35975 (write_tm_preds_h): Call it.
35976 * stmt.c (parse_output_constraint, parse_input_constraint): Use
35977 the generated insn_extra_constraint_allows_reg_mem function
35978 instead of always setting *allows_reg = true; *allows_mem = true;
35979 for unknown extra constraints.
35981 2015-04-17 H.J. Lu <hongjiu.lu@intel.com>
35984 * output.h (default_binds_local_p_3): New.
35985 * varasm.c (default_binds_local_p_3): Make it public. Take an
35986 argument to indicate if common symbol may be local. If common
35987 symbol may be local, treat non-external variable as defined
35989 (default_binds_local_p_2): Pass !flag_pic to default_binds_local_p_3.
35990 (default_binds_local_p_1): Pass false to default_binds_local_p_3.
35991 * config/i386/i386.c (ix86_binds_local_p): New.
35992 (TARGET_BINDS_LOCAL_P): Replace default_binds_local_p_2 with
35993 ix86_binds_local_p.
35995 2015-04-17 Jakub Jelinek <jakub@redhat.com>
35998 * dwarf2out.c (mem_loc_descriptor): For CONST, fallback to
35999 trying mem_loc_descriptor on XEXP (rtl, 0).
36001 2015-04-17 Martin Liska <mliska@suse.cz>
36003 * ipa-icf.c (sem_item_optimizer::subdivide_classes_by_sensitive_refs):
36004 Release symbol_compare_collection.
36005 * ipa-reference.c: Add TODO that a vector should be released.
36007 2015-04-17 Sivanupandi Pitchumani <Pitchumani.Sivanupandi@atmel.com>
36010 * config/avr/gen-avr-mmcu-specs.c (*avrlibc_startfile): Adjust
36011 to new AVR-LibC file layout (bug #44574).
36012 (*avrlibc_devicelib): Same.
36013 * config/avr/avr-mcus.def: Adjust comments.
36014 * config/avr/avr.opt (nodevicelib): Adjust help.
36016 2015-04-17 Alan Lawrence <alan.lawrence@arm.com>
36018 * config/aarch64/arm_neon.h (vdup_n_f32): Remove forward declaration.
36020 2015-04-17 Patrick Palka <ppalka@gcc.gnu.org>
36023 * gimplify.c (gimplify_init_constructor): Always emit a
36024 side-effecting constructor.
36026 2015-04-17 Tom de Vries <tom@codesourcery.com>
36028 PR tree-optimization/64950
36029 * gimplify.c (gimplify_function_tree): Tentatively set PROP_gimple_lva
36030 in cfun->curr_properties.
36031 (gimplify_va_arg_expr): Clear PROP_gimple_lva in cfun->curr_properties
36032 if we generate an IFN_VA_ARG.
36033 * tree-inline.c (expand_call_inline): Reset PROP_gimple_lva in dest
36034 function if PROP_gimple_lva is not set in src function.
36036 2015-04-17 Tom de Vries <tom@codesourcery.com>
36037 Michael Matz <matz@suse.de>
36039 PR tree-optimization/64950
36040 * gimple-iterator.c (update_modified_stmts): Remove static.
36041 * gimple-iterator.h (update_modified_stmts): Declare.
36042 * gimplify.c (gimplify_modify_expr): Handle IFN_VA_ARG.
36043 (gimplify_va_arg_internal): New function.
36044 (gimplify_va_arg_expr): Use IFN_VA_ARG.
36045 * gimplify.h (gimplify_va_arg_internal): Declare.
36046 * internal-fn.c (expand_VA_ARG): New unreachable function.
36047 * internal-fn.def (VA_ARG): New DEF_INTERNAL_FN.
36048 * tree-stdarg.c (gimple_call_ifn_va_arg_p, expand_ifn_va_arg_1)
36049 (expand_ifn_va_arg): New function.
36050 (pass_data_stdarg): Add PROP_gimple_lva to properties_provided field.
36051 (pass_stdarg::execute): Call expand_ifn_va_arg.
36052 (pass_data_lower_vaarg): New pass_data.
36053 (pass_lower_vaarg): New gimple_opt_pass.
36054 (pass_lower_vaarg::gate, pass_lower_vaarg::execute)
36055 (make_pass_lower_vaarg): New function.
36056 * cfgexpand.c (pass_data_expand): Add PROP_gimple_lva to
36057 properties_required field.
36058 * passes.def (all_passes): Add pass_lower_vaarg.
36059 * tree-pass.h (PROP_gimple_lva): Add define.
36060 (make_pass_lower_vaarg): Declare.
36062 2015-04-17 Tom de Vries <tom@codesourcery.com>
36064 * fold-const.c (operand_equal_p): Handle INTERNAL_FNs.
36065 * calls.c (call_expr_flags): Same.
36067 2015-04-17 Tom de Vries <tom@codesourcery.com>
36069 * tree-stdarg.c (optimize_va_list_gpr_fpr_size): Factor out of ...
36070 (pass_stdarg::execute): ... here.
36072 2015-04-17 Tom de Vries <tom@codesourcery.com>
36073 Michael Matz <matz@suse.de>
36075 * tree-cfg.c (make_blocks_1): Factor out of ...
36076 (make_blocks): ... here.
36077 (make_edges_bb): Factor out of ...
36078 (make_edges): ... here.
36079 (gimple_find_sub_bbs): New function.
36080 * tree-cfg.h (gimple_find_sub_bbs): Declare.
36082 2015-04-17 Tom de Vries <tom@codesourcery.com>
36084 * tree.c (free_lang_data): Disable lang_hooks.gimplify_expr.
36086 2015-04-17 Yury Gribov <y.gribov@samsung.com>
36088 * asan.c (set_sanitized_sections): New function.
36089 (section_sanitized_p): Ditto.
36090 (asan_protect_global): Optionally sanitize user-defined
36092 * asan.h (set_sanitized_sections): Declare new function.
36093 * common.opt (fsanitize-sections): New option.
36094 * doc/invoke.texi (-fsanitize-sections): Document new option.
36095 * opts-global.c (handle_common_deferred_options): Handle new
36098 2015-04-17 Jakub Jelinek <jakub@redhat.com>
36101 * dwarf2out.c (loc_list_from_tree): Return NULL
36102 for DEBUG_EXPR_DECL.
36104 2015-04-17 Christian Bruel <christian.bruel@st.com>
36106 * ipa-inline.c (can_inline_edge_p): Allow inlining of functions with
36109 2015-04-16 Zhouyi Zhou <yizhouzhou@ict.ac.cn>
36111 * ira-color.c (setup_left_conflict_sizes_p): Do not process
36112 node itself when computing left conflict subnode size.
36114 2015-04-16 Uros Bizjak <ubizjak@gmail.com>
36116 * config/i386/predicates.md (register_mixssei387nonimm_operand): New.
36117 * config/i386/i386.md (*fop_<mode>_1_mixed): Merge with
36118 *fop_<mode>_1_sse using enabled attribute. Use
36119 register_mixssei387nonimm_operand operand 1 predicate. Change
36120 alternative 3 constraints from "x" to "v".
36122 2015-04-16 Richard Biener <rguenther@suse.de>
36124 PR tree-optimization/65774
36125 * tree-ssa-ccp.c (evaluate_stmt): Constrain types we invoke
36126 bit-value tracking on.
36128 2015-04-16 Richard Biener <rguenther@suse.de>
36130 PR tree-optimization/64277
36131 * tree-vrp.c (check_array_ref): Fix anti-range handling,
36132 simplify upper bound handling.
36133 (search_for_addr_array): Simplify.
36134 (check_array_bounds): Handle ADDR_EXPRs here.
36135 (check_all_array_refs): Simplify.
36137 2015-04-16 Uros Bizjak <ubizjak@gmail.com>
36139 * config/i386/i386.c (print_reg): Rewrite function.
36141 2015-04-16 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
36143 * config/s390/s390.h (IRA_HARD_REGNO_ADD_COST_MULTIPLIER):
36144 Invert the condition.
36146 2015-04-16 Renlin Li <renlin.li@arm.com>
36148 * simplify-rtx.c (simplify_unary_operation_1): Fix a typo. Enable two
36149 simplifications for UNSIGNED_FLOAT.
36151 2015-04-16 Nick Clifton <nickc@redhat.com>
36153 * config/rl78/rl78-opts.h (enum rl78_mul_types): Add MUL_G14 and
36155 (enum rl78_cpu_type): New.
36156 * config/rl78/rl78-virt.md (attr valloc): Add divhi and divsi.
36157 (umulhi3_shift_virt): Remove m constraint from operand 1.
36158 (umulqihi3_virt): Likewise.
36159 * config/rl78/rl78.c (rl78_option_override): Add code to process
36160 -mcpu and -mmul options.
36161 (rl78_alloc_physical_registers): Add code to handle divhi and
36162 divsi valloc attributes.
36163 (set_origin): Likewise.
36164 * config/rl78/rl78.h (RL78_MUL_G14): Define.
36165 (TARGET_G10, TARGET_G13, TARGET_G14): Define.
36166 (TARGET_CPU_CPP_BUILTINS): Define __RL78_MUL_xxx__ and
36168 (ASM_SPEC): Pass -mcpu on to assembler.
36169 * config/rl78/rl78.md (mulqi3): Add a clobber of AX.
36170 (mulqi3_rl78): Likewise.
36171 (mulhi3_g13): Likewise.
36172 (mulhi3): Generate the G13 or G14 versions of the insn directly.
36173 (mulsi3): Likewise.
36174 (mulhi3_g14): Add clobbers of AX and BC.
36175 (mulsi3_g14): Likewise.
36176 (mulsi3_g13): Likewise.
36177 (udivmodhi4, udivmodhi4_g14, udivmodsi4): New patterns.
36178 (udivmodsi4_g14, udivmodsi4_g13): New patterns.
36179 * config/rl78/rl78.opt (mmul): Initialise value to
36181 (mcpu): New option.
36182 (m13, m14, mrl78): New option aliases.
36183 * config/rl78/t-rl78 (MULTILIB_OPTIONS): Add mg13 and mg14.
36184 (MULTILIB_DIRNAMES): Add g13 and g14.
36185 * doc/invoke.texi: Document -mcpu and -mmul options.
36187 2015-04-16 Richard Biener <rguenther@suse.de>
36189 * tree-ssa-ccp.c (likely_value): See if we have operands that
36190 are marked as never simulate again and return CONSTANT in this
36192 * tree-ssa-propagate.c (simulate_stmt): Mark stmts that do
36193 not have any operands that will be simulated again as
36194 not being simulated again.
36196 2015-04-15 Uros Bizjak <ubizjak@gmail.com>
36198 * config/i386/i386.md (*cmpi<FPCMP:unord><MODEF:mode>_mixed):
36199 Merge with *cmpi<FPCMP:unord><MODEF:mode>_sse using enabled attribute.
36200 (*extendsfdf2_mixed): Merge with *extendsfdf2_sse using enabled
36202 (*truncdfsf_fast_mixed): Merge with *truncdfsf_fast_sse using
36204 (*float<SWI48:mode><MODEF:mode>2_mixed): Rename from
36205 *float<SWI48:mode><MODEF:mode>2_sse.
36206 (*absneg<mode>2_mixed): Merge with *absneg<mode>2_sse using
36208 (*fop_<mode>_comm_mixed): Merge with *fop_<mode>_comm_sse using
36211 2015-04-15 Tom de Vries <tom@codesourcery.com>
36214 * function.c (push_dummy_function): New function.
36215 (init_dummy_function_start): Use push_dummy_function.
36216 (pop_dummy_function): New function. Factored out of ...
36217 (expand_dummy_function_end): ... here.
36218 * function.h (push_dummy_function, pop_dummy_function): Declare.
36219 * passes.c (pass_manager::dump_passes): Use push_dummy_function and
36220 pop_dummy_function.
36221 * tree-chkp.c (chkp_gate): Handle cgraph_node::get (cfun->decl) == NULL.
36223 2015-04-15 Jeff Law <law@redhat.com>
36225 PR tree-optimization/47679
36226 * tree-ssa-dom.c (build_and_record_new_cond): Moved to avoid
36227 need for forward declaration in upcoming changes.
36228 (record_conditions, record_edge_info): Likewise.
36230 PR rtl-optimization/42522
36231 * cse.c (fold_rtx): Try to simplify a ZERO_EXTRACT or
36232 SIGN_EXTRACT as a whole object rather than simplifying
36235 2015-04-15 Jakub Jelinek <jakub@redhat.com>
36238 * ipa-icf-gimple.c (func_checker::compare_bb): For GIMPLE_NOP
36239 and GIMPLE_PREDICT use break instead of return true. For
36240 GIMPLE_EH_DISPATCH, compare dispatch region.
36242 2015-04-14 Matthew Wahab <matthew.wahab@arm.com>
36244 * doc/extend.texi (__sync Builtins): Simplify some text. Update
36245 details about the implementation. Make clear preference for
36246 __atomic builtins. Reduce possibility of future change.
36248 2015-04-15 Nick Clifton <nickc@redhat.com>
36250 * config/rx/rx.opt (mallow-string-insns): New option.
36251 * config/rx/rx.c (RX_BUILTIN_RMPA): Disable the use of this
36252 builtin if string instructions are denied.
36253 * config/rx/rx.h (TARGET_CPU_CPP_BUILTINS): Define
36254 __RX_ALLOW_STRING_INSNS__ or __RX_DISALLOW_STRING_INSNS__, as
36256 (ASM_SPEC): Pass -mno-allow-string-insns on to the assembler.
36257 * config/rx/rx.md (movstr): Enable pattern only if string
36258 instructions are allowed.
36259 (rx_movstr, rx_strend, movmemsi, rx_movmem): Likewise.
36260 (cmpstrnsi, cmpstrsi, rx_cmpstrn, rmpa): Likewise.
36261 * config/rx/t-rx (MULTILIB_OPTIONS): Add mno-allow-string-insns.
36262 (MULTILIB_DIRNAMES): Add no-strings.
36263 * doc/invoke.texi: Document -mno-allow-string-insns.
36265 2015-04-15 Alan Modra <amodra@gmail.com>
36269 PR middle-end/36043
36270 * calls.c (load_register_parameters): Don't load past end of
36271 mem unless suitably aligned.
36273 2015-04-15 Nick Clifton <nickc@redhat.com>
36275 * config/rl78/rl78.c (rl78_expand_prologue): Mark large stack
36276 decrement instruction as being frame related.
36277 (rl78_print_operand_1): Handle 'p' modifier to add +0 to HL
36279 If zero extending a function address enclose the operation in
36281 (rl78_preferred_reload_class): New function.
36282 (TARGET_PREFERRED_RELOAD_CLASS): Define.
36283 * config/rl78/rl78.md: Remove useless constraints in expanders.
36284 (mulqi3_rl78): Remove + qualifier on input-only operand 1.
36285 (mulhi3_rl78): Likewise.
36286 (mulhi3_g13): Likewise.
36287 (mulsi3_rl78): Likewise.
36288 (es_addr): Move to before the multiply patterns.
36290 2015-04-15 Alan Modra <amodra@gmail.com>
36292 * function.h (struct emit_status): Delete x_first_insn, x_last_insn
36293 and sequence_stack. Add seq.
36294 (seq_stack): Delete.
36295 * function.c (prepare_function_start): Don't access x_last_insn.
36296 * emit-rtl.h (get_current_sequence, get_topmost_sequence): New.
36297 (get_insns, set_first_insn, get_last_insn, set_last_insn): Use them.
36298 * emit_rtl.c (start_sequence, push_topmost_sequence,
36299 pop_topmost_sequence, end_sequence, in_sequence_p, init_emit): Use
36300 sequence accessors.
36301 (get_last_insn_anywhere, add_insn_after_nobb, add_insn_before_nobb,
36302 remove_insn): Likewise. Simplify.
36303 * config/m32c/m32c.c (m32c_leaf_function_p): Use push_topmost_sequence
36304 and pop_topmost_sequence.
36305 (m32c_function_needs_enter): Use get_topmost_sequence. Ignore
36307 * config/rs6000/rs6000.c (rs6000_call_aix): Use get_current_sequence.
36309 2015-04-14 Yvan Roux <yvan.roux@linaro.org>
36312 * lra-constraints.c (prohibited_class_reg_set_mode_p): Restore and fix
36315 2015-04-14 Uros Bizjak <ubizjak@gmail.com>
36317 * config/i386/i386.h (LEGACY_INT_REG_P): New define.
36318 (LEGACY_INT_REGNO_P): Ditto.
36319 (GENERAL_REGNO_P): Use LEGACY_INT_REGNO_P.
36320 (ANY_MASK_REG_P): Remove.
36321 (BND_REG_P): Rename from ANY_BND_REG_P.
36322 * config/i386/i386.c (print_reg): Use LEGACY_INT_REG_P to print
36323 legacy integer registers. Do not handle MMX_REG_P in a special way.
36324 Merge 64byte and 32byte SSE handling.
36326 2015-04-14 Nick Clifton <nickc@redhat.com>
36328 * expr.c (expand_assignment): Force an address offset computation
36329 into a register before changing its mode.
36330 (expand_expr_real_1): Likewise.
36332 2015-04-14 Alan Lawrence <alan.lawrence@arm.com>
36334 * config/aarch64/arm_neon.h (vst1_lane_f32, vst1_lane_f64,
36335 vst1_lane_p8, vst1_lane_p16, vst1_lane_s8, vst1_lane_s16,
36336 vst1_lane_s32, vst1_lane_s64, vst1_lane_u8, vst1_lane_u16,
36337 vst1_lane_u32, vst1_lane_u64, vst1q_lane_f32, vst1q_lane_f64,
36338 vst1q_lane_p8, vst1q_lane_p16, vst1q_lane_s8, vst1q_lane_s16,
36339 vst1q_lane_s32, vst1q_lane_s64, vst1q_lane_u8, vst1q_lane_u16,
36340 vst1q_lane_u32, vst1q_lane_u64): Reimplement with pointer dereference
36341 and __aarch64_vget_lane_any.
36343 2015-04-14 Jakub Jelinek <jakub@redhat.com>
36345 PR rtl-optimization/65761
36346 * cfgrtl.c (rtl_split_edge): For EDGE_CROSSING split, use
36347 get_last_bb_insn (after) instead of NEXT_INSN (BB_END (after)).
36349 2015-04-14 Richard Biener <rguenther@suse.de>
36351 * graphite-scop-detection.c: Do not include cp/cp-tree.h.
36352 (graphite_can_represent_scev): Use POINTER_TYPE_P.
36354 2015-04-14 Richard Biener <rguenther@suse.de>
36356 PR tree-optimization/65758
36357 * tree-ssa-ccp.c (get_value_from_alignment): Adjust mask test
36359 (ccp_lattice_meet): Likewise.
36360 (bit_value_unop): Likewise.
36361 (bit_value_binop): Likewise.
36362 (bit_value_assume_aligned): Likewise.
36364 2015-04-14 Christian Bruel <christian.bruel@st.com>
36366 * execute_dwarf2_frame (dw_frame_pointer_regnum): Reinitialize for each
36369 2015-04-14 Marc Glisse <marc.glisse@inria.fr>
36371 PR tree-optimization/63387
36372 * match.pd ((x unord x) | (y unord y) -> (x unord y),
36373 (x unord x) | (x unord y) -> (x unord y)): New simplifications.
36375 2015-04-14 Uros Bizjak <ubizjak@gmail.com>
36377 * config/i386/predicates.md (any_QIreg_operand): Rename from
36378 q_regs_operand. Do not process subregs.
36379 (QIreg_operand): Use QI_REGNO_P predicate.
36380 (ext_QIreg_operand): Ditto.
36381 (ext_register_operand): Ditto.
36382 * config/i386/i386.md (TEST splitters): Use QIreg_operand predicate.
36383 (AND splitters): Ditto.
36384 (AND with -65536 splitter): Add SWI48 mode for operand 0.
36385 (AND with -256 splitter): Use any_QIreg_operand predicate and
36386 SWI248 mode for operand 0.
36387 (AND with -65281 splitter): Use QIreg_operand predicate and SWI248
36388 mode for operand 0.
36389 (SETCC + MOVZBL peepholes): Update for renamed any_QIreg_operand.
36391 2015-04-13 Gerald Pfeifer <gerald@pfeifer.com>
36393 * doc/plugins.texi: Rewrite first introductory paragraph.
36395 2015-04-12 Jan Hubicka <hubicka@ucw.cz>
36397 * tree-vrp.c (nonnull_arg_p): THIS pointers and references are non-zero.
36398 (gimple_stmt_nonzero_warnv_p): Reference return values are non-zero.
36400 2015-04-12 Jan Hubicka <hubicka@ucw.cz>
36402 * ipa-profie.c (ipa_profile): Check number of parameters
36403 and possible polymorphic call targets before
36406 2015-04-13 Uros Bizjak <ubizjak@gmail.com>
36408 * config/i386/i386.md (*bmi2_umul<mode><dwi>3_1): Merge from
36409 *bmi2_umulsidi3_1 and *bmi2_umulditi3_1 using DWIH mode iterator.
36411 2015-04-13 Richard Biener <rguenther@suse.de>
36413 PR tree-optimization/65204
36414 * tree-ssa-ccp.c (evaluate_stmt): Always evaluate address
36415 takens for bit-CCP.
36417 2015-04-13 Richard Biener <rguenther@suse.de>
36420 * config/i386/i386.c (bdver1_cost): Double cond_taken_branch_cost
36421 and cond_not_taken_branch_cost to 4 and 2.
36422 (bdver2_cost): Likewise.
36423 (bdver3_cost): Likewise.
36424 (bdver4_cost): Likewise.
36426 2015-04-12 Jan Hubicka <hubicka@ucw.cz>
36428 * hash-table.h (hash_table constructor): Add mem stats.
36429 (alloc_entries): Likewise.
36431 2015-04-12 Jan Hubicka <hubicka@ucw.cz>
36433 * ipa-cp.c (ipcp_driver): Relase prev_edge.
36434 * passes.c (execute_one_pass): Only add transform if pass has one.
36436 2015-04-12 Joseph Myers <joseph@codesourcery.com>
36438 * config/i386/i386.c (ix86_option_override_internal): Don't set
36439 -fprefetch-loop-arrays if optimizing for size.
36441 2015-04-12 Jan Hubicka <hubicka@ucw.cz>
36442 Gerald Pfeifer <gerald@pfeifer.com>
36444 * doc/contrib.texi (Contributors): Add Martin Jambor and
36447 2015-04-12 Jakub Jelinek <jakub@redhat.com>
36449 * BASE-VER: Set to 6.0.0.
36451 PR tree-optimization/65747
36452 * ipa-icf-gimple.c (func_checker::compare_operand): Use compare_operand
36453 rather than compare_ssa_name for OBJ_TYPE_REF_OBJECT.
36455 2015-04-12 Gerald Pfeifer <gerald@pfeifer.com>
36457 * doc/invoke.texi (-Wmemset-transposed-args): Break a long
36458 sentence. Improve grammar.
36460 2015-04-12 Gerald Pfeifer <gerald@pfeifer.com>
36462 * doc/contrib.texi (Contributors): Add Maxim Kuvyrkov.
36464 2015-04-11 Jan Hubicka <hubicka@ucw.cz>
36467 * ipa-inline-transform.c (speculation_removed): Remove static var.
36468 (check_speculations): New function.
36469 (clone_inlined_nodes): Do not check spculations.
36470 (inline_call): Call check_speculations.
36471 * ipa-prop.c (ipa_make_edge_direct_to_target): Do not
36472 consider non-invariants.
36474 2015-04-11 Jan Hubicka <hubicka@ucw.cz>
36475 Martin Liska <mliska@suse.cz>
36478 * ipa-icf.c (sem_item::compare_cgraph_references): function and
36479 variable can not match.
36480 (sem_item::update_hash_by_addr_refs): Fix handling of virtual tables.
36481 (sem_variable::equals_wpa): Fix checking of DECL_FINAL_P patch.
36483 2015-04-11 Jakub Jelinek <jakub@redhat.com>
36485 PR tree-optimization/65735
36486 * tree-ssa-threadedge.c (fsm_find_control_statement_thread_paths):
36487 Remove visited_phis argument, add visited_bbs, avoid recursing into the
36488 same bb rather than just into the same phi node.
36489 (thread_through_normal_block): Adjust caller.
36491 2015-04-11 Gerald Pfeifer <gerald@pfeifer.com>
36493 * doc/contrib.texi (Contributors): Add Ira Rosen.
36495 2015-04-11 Benno Schulenberg <bensberg@justemail.net>
36497 * gcov.c (find_source): Fix miswording in error message.
36498 * config/i386/i386.c (ix86_handle_cconv_attribute): Likewise.
36499 (ix86_expand_sse_comi_round): Fix typo in error message.
36501 2015-04-11 Gerald Pfeifer <gerald@pfeifer.com>
36503 * doc/contrib.texi (Contributors): Add Laurynas Biveinis.
36505 2015-04-10 Gerald Pfeifer <gerald@pfeifer.com>
36507 * doc/contrib.texi (Contributors): Update Joe Buck's entry.
36509 2015-04-10 Vladimir Makarov <vmakarov@redhat.com>
36512 * lra-assigns.c (spill_for): Update smallest_bad_spills_num.
36513 Print bad_spills_num and insn_pseudos_num.
36515 2015-04-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
36518 * config/arm/arm.c (arm_canonicalize_comparison): Use ARM_SIGN_EXTEND
36519 when creating +1 values for SImode.
36521 2015-04-10 Vladimir Makarov <vmakarov@redhat.com>
36524 * lra-constraints.c (prohibited_class_reg_set_mode_p): Comment the
36527 2015-04-10 Jakub Jelinek <jakub@redhat.com>
36528 Iain Sandoe <iain@codesourcery.com>
36531 * configure: Regenerate.
36533 2015-04-09 Kirill Yukhin <kirill.yukhin@intel.com>
36536 * config/i386/sse.md: Generate vextract32x4 if AVX-512DQ is disabled.
36538 2015-04-09 Gerald Pfeifer <gerald@pfeifer.com>
36540 * doc/contrib.texi (Contributors): Add John Marino.
36542 2015-04-09 Jakub Jelinek <jakub@redhat.com>
36544 PR tree-optimization/65709
36545 * ubsan.c (instrument_mem_ref): Use TREE_TYPE (base) instead of
36546 TREE_TYPE (TREE_TYPE (t)).
36548 2015-04-09 Vladimir Makarov <vmakarov@redhat.com>
36551 * lra-int.h (lra_bad_spill_regno_start): New.
36552 * lra.c (lra_bad_spill_regno_start): New.
36553 (lra): Set up lra_bad_spill_regno_start. Set up
36554 lra_constraint_new_regno_start unconditionally.
36555 * lra-assigns.c (spill_for): Use lra_bad_spill_regno_start for
36558 2015-04-09 Marek Polacek <polacek@redhat.com>
36559 Jakub Jelinek <jakub@redhat.com>
36561 PR middle-end/65554
36562 * gimple-fold.c (gimple_fold_builtin_memory_op): Update comment.
36563 (fold_ctor_reference): Use STRIP_USELESS_TYPE_CONVERSION instead
36566 2015-04-09 Segher Boessenkool <segher@kernel.crashing.org>
36568 PR rtl-optimization/65693
36569 * combine.c (is_parallel_of_n_reg_sets): Move outside of
36572 2015-04-09 Georg-Johann Lay <avr@gjlay.de>
36575 * config/avr/driver-avr.c (avr_devicespecs_file): Don't specify a
36576 device specs file if "device-specs%s" didn't resolve to a path.
36578 2015-04-09 Kirill Yukhin <kirill.yukhin@intel.com>
36581 * config/i386/i386.c (fixup_modeless_constant): New.
36582 (ix86_expand_args_builtin): Fixup modeless constant operand.
36583 (ix86_expand_round_builtin): Ditto.
36584 (ix86_expand_special_args_builtin): Ditto.
36585 (ix86_expand_builtin): Ditto.
36587 2015-04-09 Jakub Jelinek <jakub@redhat.com>
36590 * config/i386/i386.md (*udivmod<mode>4_pow2): Allow
36591 any pow2 integer in between 2 and 0x80000000U inclusive.
36593 2015-04-08 Segher Boessenkool <segher@kernel.crashing.org>
36595 PR rtl-optimization/65693
36596 * combine.c (is_parallel_of_n_reg_sets): Change first argument
36597 from an rtx_insn * to an rtx.
36598 (try_combine): Adjust both callers. Use it once more.
36600 2015-04-08 Ilya Enkovich <ilya.enkovich@intel.com>
36602 * tree-chkp.c (chkp_find_const_bounds_var): Remove.
36603 (chkp_make_static_const_bounds): Search existing
36604 symbol by assembler name. Use make_decl_one_only.
36605 (chkp_get_zero_bounds_var): Remove node search which
36606 is now performed in chkp_make_static_const_bounds.
36607 (chkp_get_none_bounds_var): Likewise.
36609 2015-04-08 Michael Witten <mfwitten@gmail.com>
36611 * doc/extend.texi (Attribute Syntax): Add a trailing semicolon
36614 2015-04-08 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
36616 * tree.h (CONVERT_EXPR_P): Commentary typo fix.
36618 2015-04-08 Gerald Pfeifer <gerald@pfeifer.com>
36620 * doc/extend.texi (__sync Builtins): Fix grammar.
36622 2015-04-08 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
36624 * doc/cfg.texi (GIMPLE statement iterators): Fix typo.
36626 2015-04-08 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
36628 * varasm.c (emit_local): Move definition of align.
36630 2015-04-08 Julian Brown <julian@codesourcery.com>
36632 * config/nvptx/mkoffload.c (process): Support variable mapping.
36634 2015-03-27 Trevor Saunders <tbsaunde@tbsaunde.org>
36636 * config/alpha/alpha.c (alpha_use_linkage): Change type of slot to
36638 (alpha_write_one_linkage): Correct typo.
36640 2015-04-08 Ilya Enkovich <ilya.enkovich@intel.com>
36642 * ipa-comdats.c (propagate_comdat_group): Walk through thunks.
36644 2015-04-08 Gerald Pfeifer <gerald@pfeifer.com>
36646 * doc/install.texi (bootstrap-lto-noplugin): Rewrite.
36648 2015-04-08 Ilya Enkovich <ilya.enkovich@intel.com>
36650 * tree-chkp.h (chkp_insert_retbnd_call): New.
36651 * tree-chkp.c (chkp_insert_retbnd_call): New.
36652 * ipa-split.c (insert_bndret_call_after): Remove.
36653 (split_function): Use chkp_insert_retbnd_call.
36654 * cgraphunit.c (cgraph_node::expand_thunk): Build returned
36655 bounds for instrumented functions.
36657 2015-04-07 Jan Hubicka <hubicka@ucw.cz>
36660 * calls.c (initialize_argument_information): When producing tail
36661 call also turn SSA_NAMES passed by references to original PARM_DECLs
36663 2015-04-07 Vladimir Makarov <vmakarov@redhat.com>
36666 * lra-remat.c (do_remat): Process input and non-input insn
36667 registers separately.
36669 2015-04-07 Jakub Jelinek <jakub@redhat.com>
36672 * valtrack.c (debug_lowpart_subreg): New function.
36673 (dead_debug_insert_temp): Use it.
36675 PR middle-end/65680
36676 * expr.c (get_inner_reference): Handle bit_offset that doesn't fit
36677 into signed HOST_WIDE_INT the same as negative bit_offset.
36679 2015-04-07 Ilya Enkovich <ilya.enkovich@intel.com>
36681 * ipa-comdats.c (ipa_comdats): Visit all thunks
36682 to set proper comdat group.
36684 2015-04-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
36687 * config/arm/arm.c (arm_legitimate_constant_p_1): Remove restriction
36688 on constants for NEON VSTRUCT modes.
36690 2015-04-07 Jakub Jelinek <jakub@redhat.com>
36691 Iain Sandoe <iain@codesourcery.com>
36694 * configure: Regenerate.
36696 2015-04-06 Michael Meissner <meissner@linux.vnet.ibm.com>
36699 * config/rs6000/rs6000.c (struct processor_costs): Add cost field
36700 for SF->DF conversions to make FLOAT_EXTEND more expensive, so
36701 that LFD is used to load double constants instead of LFS. Add
36702 defaults for all costs structures. Add comments for missing
36703 initialization fields.
36704 (size32_cost): Likewise.
36705 (size64_cost): Likewise.
36706 (rs64a_cost): Likewise.
36707 (mpccore_cost): Likewise.
36708 (ppc403_cost): Likewise.
36709 (ppc405_cost): Likewise.
36710 (ppc440_cost): Likewise.
36711 (ppc476_cost): Likewise.
36712 (ppc601_cost): Likewise.
36713 (ppc603_cost): Likewise.
36714 (ppc604_cost): Likewise.
36715 (ppc604e_cost): Likewise.
36716 (ppc620_cost): Likewise.
36717 (ppc630_cost): Likewise.
36718 (ppccell_cost): Likewise.
36719 (ppc750_cost): Likewise.
36720 (ppc7450_cost): Likewise.
36721 (ppc8540_cost): Likewise.
36722 (ppce300c2c3_cost): Likewise.
36723 (ppce500mc_cost): Likewise.
36724 (ppce500mc64_cost): Likewise.
36725 (ppce5500_cost): Likewise.
36726 (ppce6500_cost): Likewise.
36727 (titan_cost): Likewise.
36728 (power4_cost): Likewise.
36729 (power6_cost): Likewise.
36730 (power7_cost): Likewise.
36731 (power8_cost): Likewise.
36732 (ppca2_cost): Likewise.
36733 (rs6000_rtx_costs): Make FLOAT_EXTEND use SFDF_convert field.
36735 * config/rs6000/rs6000.md (extendsfdf2_fpr): Generate XSCPSGNDP
36736 instead of XXLOR to copy SFmode to clear out dirty bits created
36737 when SFmode denormals are generated.
36738 (mov<mode>_hardfloat, FMOVE32 case): Likewise.
36739 (truncdfsf2_fpr): Add support for ISA 2.07 XSRSP instruction.
36741 2015-04-06 Evandro Menezes <e.menezes@samsung.com>
36743 * doc/invoke.texi (AARCH64/mtune): Add exynos-m1 as an option.
36744 * config/aarch64/aarch64-cores.def (exynos-m1): New core.
36745 * config/aarch64/aarch64-tune.md: Regenerate.
36747 2015-04-06 Evandro Menezes <e.menezes@samsung.com>
36749 * doc/invoke.texi (ARM/mtune): Add "exynos-m1" as an option.
36750 * config/arm/arm.c (arm_issue_rate): Specify "3" for "exynosm1".
36751 * config/arm/arm-cores.def (exynos-m1): New core.
36752 * config/arm/arm-tune.md: Regenerate.
36753 * config/arm/arm-tables.opt: Add entry for "exynos-m1".
36754 * config/arm/bpabi.h: Likewise.
36756 2015-04-06 Ilya Enkovich <ilya.enkovich@intel.com>
36758 * ipa-cp (set_single_call_flag): Remove too
36759 restrictive assert.
36761 2015-04-06 Ilya Verbin <ilya.verbin@intel.com>
36763 * config/i386/intelmic-mkoffload.c (generate_host_descr_file): Call
36764 GOMP_offload_unregister from the destructor.
36766 2015-04-06 Ilya Enkovich <ilya.enkovich@intel.com>
36768 * ipa-chkp.c (chkp_maybe_create_clone): Reset cdtor
36769 flags for instrumentation thunk.
36770 (chkp_produce_thunks): Likewise.
36772 2015-04-05 Martin Liska <mliska@suse.cz>
36775 * ipa-icf.c (sem_function::equals_wpa): Verify that IPA CP
36776 has computed data structure.
36777 (sem_item_optimizer::update_hash_by_addr_refs): Likewise.
36779 2015-04-04 Jan Hubicka <hubicka@ucw.cz>
36781 * invoke.texi (inline-unit-growth): Increase growth to 20%
36782 * params.def (PARAM_INLINE_UNIT_GROWTH): Likewise.
36784 2015-04-04 Vladimir Makarov <vmakarov@redhat.com>
36787 * lra-int.h (LRA_MAX_REMATERIALIZATION_PASSES): New. Add its
36789 (lra_rematerialization_iter): New.
36790 * lra.c (lra): Initialize lra_rematerialization_iter.
36791 Stop updating lra_constraint_new_regno_start after switching of
36792 inheritance and rematerialization.
36793 * lra-remat.c (lra_rematerialization_iter): New.
36794 (lra_remat): Add printing pass iteration. Do rematerialization
36795 only first LRA_MAX_REMATERIALIZATION_PASSES iterations.
36797 2015-04-04 Richard Biener <rguenther@suse.de>
36799 PR tree-optimization/64909
36800 PR tree-optimization/65660
36801 * tree-vectorizer.h (vect_get_known_peeling_cost): Adjust
36802 to take a cost vector for scalar iteration cost.
36803 (vect_get_single_scalar_iteration_cost): Likewise.
36804 * tree-vect-loop.c (vect_get_single_scalar_iteration_cost):
36805 Compute the scalar iteration cost into a cost vector.
36806 (vect_get_known_peeling_cost): Use the scalar cost vector to
36807 account for the cost of the peeled iterations.
36808 (vect_estimate_min_profitable_iters): Likewise.
36809 * tree-vect-data-refs.c (vect_peeling_hash_get_lowest_cost):
36812 2015-04-04 Alan Modra <amodra@gmail.com>
36816 * config/rs6000/predicates.md (zero_reg_mem_operand): Exclude
36817 0.0 constant unless TARGET_VSX.
36818 * config/rs6000/rs6000.md (extenddftf2_internal): Remove last
36821 2015-04-03 Jan Hubicka <hubicka@ucw.cz>
36824 * ipa-inline-transform.c (inline_call): Skip sanity check to work
36827 2015-04-03 Jan Hubicka <hubicka@ucw.cz>
36830 * ipa-inline-analysis.c (edge_set_predicate): Do not redirect
36831 speculative indirect edges to avoid ordering issue.
36833 2015-04-03 Jan Hubicka <hubicka@ucw.cz>
36836 * ipa-inline.c (edge_badness): Add combined size to the denominator.
36838 2015-04-03 Jakub Jelinek <jakub@redhat.com>
36840 * omp-low.c (scan_omp_parallel, scan_omp_task, scan_omp_target): Set
36841 TYPE_ARTIFICIAL on the .omp_data* types.
36843 2015-04-02 Ilya Enkovich <ilya.enkovich@intel.com>
36845 * cgraphunit.c (cgraph_node::expand_thunk): Don't expand
36846 instrumentation thunks.
36848 2015-04-02 Ilya Enkovich <ilya.enkovich@intel.com>
36850 * config/i386/i386.c (ix86_expand_call): Avoid nested
36851 PARALLEL in returned call value.
36853 2015-04-02 Ilya Enkovich <ilya.enkovich@intel.com>
36855 * lto-cgraph.c (input_cgraph_1): Always link instrumented
36856 assembler name with original one.
36858 2015-04-02 Uros Bizjak <ubizjak@gmail.com>
36860 * config/i386/i386.c (ix86_register_priority): Use AX_REG.
36862 2015-04-02 Uros Bizjak <ubizjak@gmail.com>
36864 Revert parts of r216820.
36865 * config/i386/i386.md (movqi_internal): Correct type calculation
36866 for alternatives 3 and 5.
36868 2015-04-02 Jakub Jelinek <jakub@redhat.com>
36870 PR preprocessor/61977
36871 * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Don't
36872 predefine __vector/__bool/__pixel macros nor context sensitive
36873 macros for CLK_ASM.
36874 * config/spu/spu-c.c (spu_cpu_cpp_builtins): Similarly.
36876 2015-04-02 John David Anglin <danglin@gcc.gnu.org>
36878 * config/pa/pa.c (pa_output_move_double): Directly handle register
36879 indexed memory operand. Simplify handling of scaled register indexed
36882 2015-04-02 Ilya Enkovich <ilya.enkovich@intel.com>
36885 * config/i386/linux-common.h (MPX_SPEC): New.
36886 (CHKP_SPEC): Add MPX_SPEC.
36887 * doc/invoke.texi (-fcheck-pointer-boudns): Document
36888 possible issues with '-z bndplt' support in linker.
36890 2015-04-02 Uros Bizjak <ubizjak@gmail.com>
36892 * config/i386/sync.md (UNSPEC_FILD_ATOMIC, UNSPEC_FIST_ATOMIC): New.
36893 (loaddi_via_fpu): Use UNSPEC_FILD_ATOMIC.
36894 (storedi_via_fpu): Use UNSPEC_FIST_ATOMIC.
36895 * reg-stack.c (get_true_reg): Change UNSPEC_LDA to UNSPEC_FILD_ATOMIC.
36896 (subst_stack_regs_pat): Change UNSPEC_STA to UNSPEC_FIST_ATOMIC.
36898 2015-04-01 Uros Bizjak <ubizjak@gmail.com>
36900 * config/i386/sync.md (UNSPEC_MOVA): Remove.
36901 (atomic_load<mode>): Change operand 0 predicate to
36902 nonimmediate_operand and fix up the destination when needed.
36904 (atomic_loaddi_fpu): Use UNSPEC_LDA.
36905 (atomic_store<mode>): Change operand 1 predicate to
36906 nonimmendate_operand and move the source to register when needed.
36908 (atomic_store<mode>_1): Use UNSPEC_STA.
36909 (atomic_storedi_fpu): Change operand 1 to nonimmediate_operand.
36910 Fix moves from memory operand. Use UNSPEC_STA.
36912 2015-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
36914 * expmed.c (strict_volatile_bitfield_p): Check that the access will
36915 not cross a MODESIZE boundary.
36916 (store_bit_field, extract_bit_field): Added assertions in the
36917 strict volatile bitfields code path.
36919 2015-04-01 Max Ostapenko <m.ostapenko@partner.samsung.com>
36922 * config/aarch64/aarch64-builtins.c (aarch64_simd_expand_builtin):
36923 Increase args array size by one to avoid buffer overflow.
36925 2015-03-31 Jan Hubicka <hubicka@ucw.cz>
36927 * lto-cgraph.c (lto_output_node, input_overwrite_node): Stream
36929 * ipa-inline.c (edge_badness): Add wrapper penalty.
36930 (sum_callers): Move up.
36931 (inline_small_functions): Set single_caller.
36932 * ipa-inline.h (inline_summary): Add single_caller.
36933 * ipa-split.c (split_function): Set split_part.
36934 (cgraph_node::create_clone): Do not shadow decl; copy split_part.
36935 * cgraph.h (cgraph_node): Add split_part.
36937 2015-03-31 Uros Bizjak <ubizjak@gmail.com>
36940 * config/i386/sync.md (atomic_compare_and_swap<dwi>_doubleword):
36941 Do not split operands 0 and operands 2 to halfmode.
36942 (atomic_compare_and_swap<mode>): Update for
36943 atomic_compare_and_swap<dwi>_doubleword changes.
36945 2015-03-31 Jan Hubicka <hubicka@ucw.cz>
36947 * tree.c (need_assembler_name_p): Artificial types have no ODR names.
36948 * ipa-devirt.c (warn_odr): Do not try to apply ODR cache when
36949 no caching is done.
36951 2015-03-31 Martin Liska <mliska@suse.cz>
36954 * ipa-icf.c (sem_function::equals_wpa): Check if IPA CP
36955 has already filled up function summary.
36956 (sem_item_optimizer::update_hash_by_addr_refs): Likewise.
36958 2015-03-31 Richard Biener <rguenther@suse.de>
36960 * tree-sra.c (create_access_replacement): Drop under-/over-alignment
36963 2015-03-31 Dominik Vogt <vogt@linux.vnet.ibm.com>
36965 * config/s390/s390.c (s390_function_num_hotpatch_hw): Allow hotpatching
36967 (s390_reorg): Adapt to new signature of s390_function_num_hotpatch_hw.
36968 (s390_asm_output_function_label): Adapt to new signature of
36969 s390_function_num_hotpatch_hw
36970 Optimise the code generating assembler output.
36971 Add comments to assembler file.
36973 2015-03-31 Richard Biener <rguenther@suse.de>
36975 PR middle-end/65626
36976 * tree-cfgcleanup.c (fixup_noreturn_call): Only split the block
36977 of the noreturn call so it is last and cleanup_control_flow_bb
36978 can do the CFG part.
36980 2015-03-31 Ilya Enkovich <ilya.enkovich@intel.com>
36983 * ipa-chkp.c (chkp_maybe_create_clone): Don't set
36984 same_comdat_group for external symbols.
36985 * symtab.c (symtab_node::verify_symtab_nodes): Avoid
36986 infinite same_comdat_group traversal loop.
36988 2015-03-31 Jakub Jelinek <jakub@redhat.com>
36991 * Makefile.in (install-plugin): Add all gcc/*.{h,def} files
36992 automatically to $headers.
36994 2015-03-30 Jakub Jelinek <jakub@redhat.com>
36997 * ipa-utils.h (inlined_polymorphic_ctor_dtor_block_p): Declare.
36998 * ipa-polymorphic-call.c (inlined_polymorphic_ctor_dtor_block_p): New
37000 (decl_maybe_in_construction_p, noncall_stmt_may_be_vtbl_ptr_store):
37002 * ipa-prop.c (param_type_may_change_p): Likewise.
37003 * tree-ssa-live.c: Include ipa-utils.h and its dependencies.
37004 (remove_unused_scope_block_p): Add in_ctor_dtor_block
37005 argument. Before inlining, preserve
37006 inlined_polymorphic_ctor_dtor_block_p blocks and the outermost block
37007 with FUNCTION_DECL BLOCK_ABSTRACT_ORIGIN inside of them. Adjust
37009 (remove_unused_locals): Adjust remove_unused_scope_block_p caller.
37011 2015-03-27 Jan Hubicka <hubicka@ucw.cz>
37014 * ipa-inline.c (edge_badness): Base denominator on callee's
37017 2015-03-27 Martin Jambor <mjambor@suse.cz>
37020 * params.def (PARAM_IPA_CP_RECURSION_PENALTY) : New.
37021 (PARAM_IPA_CP_SINGLE_CALL_PENALTY): Likewise.
37022 * ipa-prop.h (ipa_node_params): New flags node_within_scc and
37023 node_calling_single_call.
37024 * ipa-cp.c (count_callers): New function.
37025 (set_single_call_flag): Likewise.
37026 (initialize_node_lattices): Count callers and set single_flag_call if
37028 (incorporate_penalties): New function.
37029 (good_cloning_opportunity_p): Use it, dump new flags.
37030 (propagate_constants_topo): Set node_within_scc flag if appropriate.
37031 * doc/invoke.texi (ipa-cp-recursion-penalty,
37032 ipa-cp-single-call-pentalty): Document.
37034 2015-03-27 Jan Hubicka <hubicka@ucw.cz>
37037 * symtab.c (symtab_node::get_partitioning_class): Register vars
37039 * varpool.c (symbol_table::output_variables) Do not assemble unefined
37040 decls for non-symbols.
37042 2015-03-27 H.J. Lu <hongjiu.lu@intel.com>
37045 * output.h (default_binds_local_p_2): New.
37046 * varasm.c (default_binds_local_p_2): Renamed to ...
37047 (default_binds_local_p_3): This. Don't return true on protected
37048 data symbol if protected data may be external.
37049 (default_binds_local_p): Use default_binds_local_p_3.
37050 (default_binds_local_p_1): Likewise.
37051 (default_binds_local_p_2): New.
37052 * config/i386/i386.c (TARGET_BINDS_LOCAL_P): Set to
37053 default_binds_local_p_2 if TARGET_MACHO is undefined.
37055 2015-03-27 Jakub Jelinek <jakub@redhat.com>
37058 * config/i386/i386.c (legitimize_pic_address): If base
37059 is SYMBOL_REF or LABEL_REF using %rip addressing, force
37060 it to reg to avoid PLUS of SYMBOL_REF/LABEL_REF and register.
37062 2015-03-27 Jan Hubicka <hubicka@ucw.cz>
37065 * symtab.c (symtab_node::verify_symtab_nodes): Fix verification of
37068 2015-03-27 Jan Hubicka <hubicka@ucw.cz>
37071 * cgraph.c (cgraph_update_edges_for_call_stmt_node): Fix the case
37072 of optimized out indirect call.
37073 (redirect_to_unreachable): Always build symbol table node for
37074 BUILT_IN_UNREACHABLE
37076 2015-03-27 Vladimir Makarov <vmakarov@redhat.com>
37079 * ira-costs.c (record_reg_classes): Process all constraint string
37082 2015-03-27 Bernd Schmidt <bernds@codesourcery.com>
37084 * config/c6x/c6x.md (movmisalign<mode>): Use MEM_P, not
37088 * config/c6x/constraints.md (S3): New constraint.
37089 * config/c6x/c6x.md (real_jump): Use it.
37091 2015-03-26 Jan Hubicka <hubicka@ucw.cz>
37093 PR middle-end/65595
37094 * cgraph.c (cgraph_update_edges_for_call_stmt_node): Only
37095 do redirection if the call is not optimized out.
37097 2015-03-27 Ilya Enkovich <ilya.enkovich@intel.com>
37100 * c-family/c.opt (fcheck-pointer-bounds): List supported languages.
37101 (fchkp-check-incomplete-type): Add LTO.
37102 (fchkp-zero-input-bounds-for-main): Likewise.
37103 (fchkp-first-field-has-own-bounds): Likewise.
37104 (fchkp-narrow-bounds): Likewise.
37105 (fchkp-narrow-to-innermost-array): Likewise.
37106 (fchkp-use-static-bounds): Likewise.
37107 (fchkp-use-static-const-bounds): Likewise.
37108 (fchkp-treat-zero-dynamic-size-as-infinite): Likewise.
37110 2015-03-27 Marek Polacek <polacek@redhat.com>
37112 * gimple-iterator.h (gsi_prev_nondebug): Fix typo.
37114 2015-03-27 Marek Polacek <polacek@redhat.com>
37117 * ubsan.c (ubsan_create_edge): New function.
37118 (instrument_bool_enum_load): Call it.
37119 (instrument_nonnull_arg): Likewise.
37120 (instrument_nonnull_return): Likewise.
37121 (instrument_object_size): Likewise.
37123 2015-03-26 Jan Hubicka <hubicka@ucw.cz>
37125 * lto-streamer.h (class lto_location_cache): Turn loc_cache into
37128 2015-03-26 Jan Hubicka <hubicka@ucw.cz>
37131 * lto-streamer.h (class lto_location_cache): New.
37132 (struct data_in): Add location_cache.
37133 (lto_input_location): Update prototype.
37134 (stream_input_location_now): New.
37135 * streamer-hooks.h (struct streamer_hooks): Make input_location to take
37136 pointer to location.
37137 (stream_input_location): Update.
37138 * ipa-devirt.c: Include streamer-hooks.h and lto-streamer.h
37139 (warn_odr): Apply location cache before warning.
37140 (lto_input_location): Update prototype.
37141 * gimple-streamer-in.c (input_phi, input_gimple_stmt):
37142 Use stream_input_location_now.
37143 * lto-streamer-in.c (lto_location_cache::current_cache): New static
37145 (lto_location_cache::cmp_loc): New function.
37146 (lto_location_cache::apply_location_cache): New function.
37147 (lto_location_cache::accept_location_cache): New function.
37148 (lto_location_cache::revert_location_cache): New function.
37149 (lto_location_cache::input_location): New function.
37150 (lto_input_location): Do location caching.
37151 (stream_input_location_now): New function.
37152 (input_eh_region, input_struct_function_base): Use
37153 stream_input_location_now.
37154 (lto_data_in_create): use new.
37155 (lto_data_in_delete): Use delete.
37156 * tree-streamer-in.c (unpack_ts_block_value_fields,
37157 unpack_ts_omp_clause_value_fields, streamer_read_tree_bitfields,
37158 lto_input_ts_exp_tree_pointers): Update for cached location api.
37160 2015-03-26 Jan Hubicka <hubicka@ucw.cz>
37163 * passes.def: Add pass_nothrow.
37164 * ipa-pure-const.c: (pass_data_nothrow): New.
37165 (pass_nothrow): New.
37166 (pass_nothrow::execute): New.
37167 (make_pass_nothrow): New.
37168 * tree-pass.h (make_pass_nothrow): Declare.
37170 2015-03-26 Jan Hubicka <hubicka@ucw.cz>
37172 * ipa-inline-analysis.c (redirect_to_unreachable): Be prepared for
37173 edge to change by speculation resolution or redirection.
37174 (edge_set_predicate): Likewise.
37175 (inline_summary_t::duplicate): Likewise.
37176 (remap_edge_summaries): Likewise.
37178 2015-03-26 Jan Hubicka <hubicka@ucw.cz>
37180 * ipa-inline.c (check_maybe_up, check_maybe_down, check_match):
37182 (can_inline_edge_p): Relax option matching for always inline functions.
37184 2015-03-26 Uros Bizjak <ubizjak@gmail.com>
37187 * config/i386/sse.md (avx512dq_vextract<shuffletype>64x2_1_maskm):
37188 Check operand 4 and operand 0 for equality.
37189 (avx512f_vextract<shuffletype>32x4_1_maskm):
37190 Check operand 6 and operand 0 for equality.
37191 (vec_extract_lo_<mode>_maskm): Check operand 2 and operand 0
37193 (vec_extract_hi_<mode>_maskm): Ditto.
37195 2015-03-26 Jan Hubicka <hubicka@ucw.cz>
37197 * cgraph.c (cgraph_update_edges_for_call_stmt_node): Do not bring
37198 dead calls back to live.
37199 (cgraph_edge::verify_count_and_frequency): Move cgraph/cfg frequency
37201 (cgraph_node::verify_node): ... here; verify only callee edges,
37203 * cif-code.def (CILK_SPAWN): New code.
37205 2015-03-26 Jan Hubicka <hubicka@ucw.cz>
37207 * ipa-inline-analysis.c (redirect_to_unreachable): New function.
37208 (edge_set_predicate): Use it to mark unreachable edges.
37209 (inline_summary_t::duplicate): Remove unnecesary code.
37210 (remap_edge_summaries): Likewise.
37211 (dump_inline_summary): Report contains_cilk_spawn.
37212 (compute_inline_parameters): Compute contains_cilk_spawn.
37213 (inline_read_section, inline_write_summary): Stream
37214 contains_cilk_spawn.
37215 * ipa-inline.c (can_inline_edge_p): Do not touch
37216 DECL_STRUCT_FUNCTION that may not be available;
37217 use CIF_CILK_SPAWN for cilk; fix optimization attribute checks;
37218 remove check for callee_fun->can_throw_non_call_exceptions and
37219 replace it by optimization attribute check; check for flag_exceptions.
37220 * ipa-inline-transform.c (inline_call): Maintain
37221 DECL_FUNCTION_PERSONALITY
37222 * ipa-inline.h (inline_summary): Add contains_cilk_spawn.
37224 2015-03-26 Jakub Jelinek <jakub@redhat.com>
37226 PR tree-optimization/65551
37227 * tree-ssa-sccvn.c (fully_constant_vn_reference_p): Use
37228 TYPE_PRECISION only for INTEGRAL_TYPE_P types.
37230 2015-03-26 Richard Biener <rguenther@suse.de>
37232 PR middle-end/65555
37233 * tree-cfg.c (verify_gimple_call): Do not require a call to
37234 have no LHS if it wasn't recognized as control altering yet.
37236 2015-03-26 Jakub Jelinek <jakub@redhat.com>
37238 PR tree-optimization/64715
37239 * passes.def: Add another instance of pass_object_sizes before ccp1.
37240 * tree-object-size.c (pass_object_sizes::execute): In
37241 first_pass_instance, only handle __bos (, 1) and __bos (, 3)
37242 calls, and keep the call in the IL, as {MIN,MAX}_EXPR of the
37243 __bos result and the computed constant. Remove redundant
37244 checks, obsoleted by gimple_call_builtin_p test.
37246 * var-tracking.c (variable_tracking_main_1): Don't track
37247 variables for targetm.no_register_allocation targets.
37249 2015-03-26 Oleg Endo <olegendo@gcc.gnu.org>
37251 * config/sh/t-linux (DEFAULT_ENDIAN, MULTILIB_EXCEPTIONS): Remove.
37252 * config/sh/t-sh (MULTILIB_EXCEPTIONS): Handle default endian.
37254 2015-03-25 Michael Meissner <meissner@linux.vnet.ibm.com>
37257 * config/rs6000/rs6000.md (extenddftf2_fprs): On VSX systems use
37258 XXLXOR to create 0.0. On pre-VSX systems make sure the constant
37259 0.0 is correctly setup.
37260 (extenddftf2_internal): Likewise.
37262 2015-03-25 Sebastian Pop <s.pop@samsung.com>
37264 PR tree-optimization/65177
37265 * tree-ssa-threadupdate.c (verify_seme): Renamed verify_jump_thread.
37267 (duplicate_seme_region): Renamed duplicate_thread_path. Redirect all
37268 edges not adjacent on the path to the original code.
37270 2015-03-25 Uros Bizjak <ubizjak@gmail.com>
37273 * doc/install.texi (Building a native compiler): Document new
37274 bootstrap-lto-noplugin configuration. Mention that bootstrap-lto
37275 configuration assumes that the host supports the linker plugin.
37277 2015-03-25 Ilya Enkovich <ilya.enkovich@intel.com>
37280 * tree-chkp.c (chkp_add_bounds_to_call_stmt): Set static
37281 chain for generated call.
37283 2015-03-25 Richard Biener <rguenther@suse.de>
37285 * passes.c (pass_manager::execute_early_local_passes): Guard
37286 execution of pass_chkp_instrumentation_passes with
37287 flag_check_pointer_bounds.
37288 (pass_chkp_instrumentation_passes::gate): Likewise.
37290 2015-03-25 Martin Liska <mliska@suse.cz>
37292 PR tree-optimization/65538
37293 * symbol-summary.h (function_summary::~function_summary):
37294 Relese memory for allocated summaries.
37295 (function_summary::release): New function.
37297 2015-03-25 Jakub Jelinek <jakub@redhat.com>
37300 * lto-streamer-out.c (DFS::worklist): New struct.
37301 (DFS::worklist_vec): New data member.
37302 (DFS::next_dfs_num): Remove.
37303 (DFS::DFS): Rewritten using worklist instead of recursion,
37304 using most of code from DFS::DFS_write_tree.
37305 (DFS::DFS_write_tree_body): Remove SINGLE_P argument, don't
37306 pass it to DFS_write_tree calls.
37307 (DFS::DFS_write_tree): Remove SINGLE_P argument, after
37308 quick initial checks push it into worklist_vec and return.
37310 2015-03-25 Richard Biener <rguenther@suse.de>
37312 PR middle-end/65519
37313 * genmatch.c (expr::gen_transform): Re-write to avoid
37314 using gimple_build.
37316 2015-03-25 Bin Cheng <bin.cheng@arm.com>
37318 * doc/sourcebuild.texi (arm_tune_string_ops_prefer_neon): New.
37320 2015-03-25 Bin Cheng <bin.cheng@arm.com>
37322 * config/arm/arm.opt (print_tune_info): New option.
37323 * config/arm/arm.c (arm_print_tune_info): New function.
37324 (arm_file_start): Call arm_print_tune_info.
37325 * config/arm/arm-protos.h (struct tune_params): Add comment.
37326 * doc/invoke.texi (@item -mprint-tune-info): New item.
37327 (-mtune): mention it in ARM Option Summary.
37329 2015-03-25 DJ Delorie <dj@redhat.com>
37331 * config/rl78/rl78.c (rl78_print_operand_1): Move 'p' test to
37334 2015-03-24 Jan Hubicka <hubicka@ucw.cz>
37335 Martin Liska <mliska@suse.cz>
37337 * ipa-icf-gimple.h (return_with_result): Add missing colon to dump.
37338 * ipa-icf.c (sem_function::get_hash): Hash new declaration properties.
37339 (sem_item::add_type): New function.
37340 (sem_function::hash_stmt): Add TREE_TYPE of gimple_op.
37341 (sem_function::compare_polymorphic_p): Do not consider indirect calls.
37342 (sem_item_optimizer::update_hash_by_addr_refs): Add ODR type to hash.
37343 (sem_function::equals_wpa): Fix typo.
37344 * ipa-icf.h (sem_item::add_type): New function.
37345 (symbol_compare_hashmap_traits): Replace hashing of pointer with symbol
37348 2015-03-24 Jakub Jelinek <jakub@redhat.com>
37350 PR tree-optimization/65533
37351 * tree-vect-slp.c (vect_build_slp_tree): Before re-trying
37352 with swapped operands, call vect_free_slp_tree on
37353 SLP_TREE_CHILDREN of child and truncate the SLP_TREE_CHILDREN
37356 2015-03-24 Richard Biener <rguenther@suse.de>
37358 PR middle-end/65517
37359 * tree-cfg.c (remove_edge_and_dominated_blocks): Mark loops
37360 for fixup if necessary.
37362 2015-03-23 Sandra Loosemore <sandra@codesourcery.com>
37364 * doc/extend.texi (Function Attributes): Add @cindex entries
37365 for all attributes and regularize their format. Delete text
37366 about long-obsolete 68HC11 and 68HC12 targets. Move misplaced
37367 information about "eightbit_data", "tiny_data", and "model"
37368 variable attributes to the Variable Attributes section. Fix
37369 some obvious typos and copy-editing issues.
37370 (Variable Attributes, Type Attributes): Likewise add/fix
37371 @cindex entries for all attributes.
37373 2015-03-23 Jakub Jelinek <jakub@redhat.com>
37376 * tree-chkp.c (chkp_build_returned_bound): Ignore
37377 ERF_RETURNS_ARG calls if they have fewer than needed arguments.
37379 2015-03-23 Oleg Endo <olegendo@gcc.gnu.org>
37382 * config/sh/predicates.md (simple_mem_operand,
37383 displacement_mem_operand): Add test for reg.
37384 (short_displacement_mem_operand): Test for displacement_mem_operand
37385 before invoking sh_disp_addr_displacement.
37386 * config/sh/constraints.md (Sdd, Sra): Simplify.
37387 * config/sh/sync.md (atomic_mem_operand_0, atomic_mem_operand_1):
37388 Remove redundant displacement_mem_operand tests.
37390 2015-03-23 Georg-Johann Lay <avr@gjlay.de>
37393 * config/avr/driver-avr.c (avr_devicespecs_file): Allow to specify
37394 the same -mmcu=MCU more than once.
37396 2015-03-23 Jakub Jelinek <jakub@redhat.com>
37399 * ipa-devirt.c: Remove duplicate demangle.h include.
37402 * config/i386/i386.c (ix86_copy_addr_to_reg): Set REG_POINTER
37404 (expand_set_or_movmem_prologue_epilogue_by_misaligned_moves): Set
37405 REG_POINTER on *destptr after adjusting it for prologue size.
37408 * ipa-icf.c (sem_item::update_hash_by_addr_refs): Hash
37409 ultimate_alias_target ()->order ints instead of
37410 ultimate_alias_target () pointers.
37412 2015-03-23 Richard Biener <rguenther@suse.de>
37414 PR tree-optimization/65518
37415 * tree-vect-stmts.c (vectorizable_load): Reject single-element
37416 interleaving cases we generate absymal code for.
37418 2015-03-23 Richard Biener <rguenther@suse.de>
37420 PR tree-optimization/65494
37421 * tree-vect-slp.c (vect_build_slp_tree): Do not (re-)allocate
37423 (vect_analyze_slp_instance): But do that here, always and once.
37425 2015-03-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
37427 * expmed.c (synth_mult): Fix comment about multiplying by T-1 and
37428 adding T or multiplying by T+1 and subracting T.
37430 2015-03-22 Jeff Law <law@redhat.com>
37432 PR rtl-optimization/64317
37433 * Makefile.in (OBJS): Add gcse-common.c
37434 * gcse.c: Include gcse-common.h
37435 (struct modify_pair_s): Move structure definition to gcse-common.h
37436 (compute_transp): Move function to gcse-common.c.
37437 (canon_list_insert): Similarly.
37438 (record_last_mem_set_info): Break out some code and put it into
37439 gcse-common.c. Call into the new common code.
37440 (compute_local_properties): Pass additional arguments to compute_transp.
37441 * postreload-gcse.c: Include gcse-common.h and df.h
37442 (modify_mem_list_set, blocks_with_calls): New variables.
37443 (modify_mem_list, canon_modify_mem_list, transp): Likewise.
37444 (get_bb_avail_insn): Pass in the expression index too.
37445 (alloc_mem): Allocate memory for the new bitmaps and lists.
37446 (free_mem): Free memory for the new bitmaps and lists.
37447 (insert_expr_in_table): Record a bitmap index for each entry we
37449 (record_last_mem_set_info): Call into common code in gcse-common.c.
37450 (get_bb_avail_insn): If no available insn was found in the requested
37451 BB. If BB has a single predecessor, see if the expression is
37452 transparent in BB and available in that single predecessor.
37453 (compute_expr_transp): New wrapper for compute_transp.
37454 (eliminate_partially_redundant_load): Pass expression's bitmap_index
37455 to get_bb_avail_insn. Compute next_pred_bb_end a bit later.
37456 (gcse_after_reload_main): If there are elements in the hash table,
37457 then compute transparency for all the elements in the hash table.
37458 * gcse-common.h: New file.
37459 * gcse-common.c: New file.
37461 2015-03-22 Sandra Loosemore <sandra@codesourcery.com>
37463 * doc/cpp.texi (Search Path): Hyphenate "command-line" when used
37465 (System Headers): Likewise.
37467 (Traditional macros): Likewise.
37468 (Invocation): Likewise.
37469 (Option Index): Likewise.
37470 * doc/cppopts.texi (-M): Likewise.
37471 (-finput-charset): Likewise.
37472 (--help): Likewise.
37473 * doc.invoke.texi (AVR Options): Likewise.
37474 (V850 Options): Likewise.
37476 2015-03-22 Jan Hubicka <hubicka@ucw.cz>
37479 * ipa-devirt.c: Include demangle.h
37480 (odr_type_d): Add field rtti_broken.
37481 (odr_subtypes_equivalent_p): Do not require name to match.
37482 (compare_virtual_tables): Fix typo; if type already has ODR violation,
37483 bypass the tests; be ready for function referneces in vtables that are
37484 not DECL_VIRTUAL; make warnings to be OPT_Wodr.
37485 (warn_odr): Give up for nameless types.
37486 (warn_types_mismatch): Report mismatch in mangled names;
37487 report mismatch in anonymous namespaces; look into component types to
37488 give useful error; report when mismatch is dragged in from other ODR
37490 (odr_types_equivalent_p): Match types for being polymorphic; avoid
37491 duplicated diagnostics.
37492 (add_type_duplicate): Reorder checks so more informative ones come
37493 first; fix typo; do not output "the extra base is defined here" when
37495 (BINFO_N_BASE_BINFOS): Relax sanity check.
37497 2015-03-22 Martin Liska <mliska@suse.cz>
37498 Jakub Jelinek <jakub@redhat.com>
37500 * config/i386/i386.c (def_builtin): Set deferred_isa_values for
37501 masks that can potentially include a builtin.
37502 (ix86_add_new_builtins): Introduce fast filter for isa values
37503 that cannot trigger builtin inclusion.
37505 2015-03-22 Martin Liska <mliska@suse.cz>
37507 * ipa-icf.c (sem_item::update_hash_by_addr_refs): New function.
37508 (sem_item::update_hash_by_local_refs): Likewise.
37509 (sem_variable::get_hash): Empty line is fixed.
37510 (sem_item_optimizer::execute): Include adding of hash references.
37511 (sem_item_optimizer::update_hash_by_addr_refs): New function.
37512 (sem_item_optimizer::build_hash_based_classes): Use local hash.
37513 * ipa-icf.h (sem_item::update_hash_by_addr_refs): New function.
37514 (sem_item::update_hash_by_local_refs): Likewise.
37516 2015-03-20 Jan Hubicka <hubicka@ucw.cz>
37519 * ipa-comdats.c (enqueue_references): Walk through thunks.
37520 (ipa_comdats): Likewise.
37521 (set_comdat_group_1): New function.
37523 2015-03-20 Jan Hubicka <hubicka@ucw.cz>
37526 * ipa-devirt.c (add_type_duplicate): Prevail polymorphic type over
37529 2015-03-22 Dave Korn <dave.korn.cygwin@gmail.com>
37530 Gerald Pfeifer <gerald@pfeifer.com>
37532 * doc/contrib.texi (Contributors): Update entry for Danny Smith.
37534 2015-03-21 Chung-Lin Tang <cltang@codesourcery.com>
37535 Sandra Loosemore <sandra@codesourcery.com>
37537 * config/nios2/nios2-protos.h (nios2_adjust_call_address): Adjust
37538 function parameter declaration.
37539 * config/nios2/nios2.md (call,call_value,sibcall,sibcall_value):
37540 Update arguments to nios2_adjust_call_address().
37541 (sibcall_internal): Rename from *sibcall.
37542 (sibcall_value_internal): Rename from *sibcall_value.
37543 * config/nios2/nios2.c (nios2_emit_add_constant): New function.
37544 (nios2_large_got_address): Add target temp reg parameter.
37545 (nios2_got_address): Adjust call to nios2_large_got_address, add
37546 force_reg around it.
37547 (nios2_load_pic_address): Add target temp reg parameter, replace call
37548 to nios2_got_address with corresponding code.
37549 (nios2_legitimize_constant_address): Update call to
37550 nios2_load_pic_address.
37551 (nios2_adjust_call_address): Add temp reg parameter, update PIC case
37552 to use temp reg for PIC loading purposes.
37553 (nios2_asm_output_mi_thunk): Implement TARGET_ASM_OUTPUT_MI_THUNK.
37554 (TARGET_ASM_CAN_OUTPUT_MI_THUNK): Define.
37555 (TARGET_ASM_OUTPUT_MI_THUNK): Likewise.
37557 2015-03-21 Sandra Loosemore <sandra@codesourcery.com>
37559 * doc/invoke.texi (-fno-diagnostics-show-caret): Fix
37560 usage of "the @option{...}".
37561 (-Wopenmp-simd): Likewise.
37562 (-fsanitize-recover): Likewise.
37563 (-fsanitize-undefined-trap-on-error): Likewise.
37565 (tracer-dynamic-coverage-feedback): Likewise.
37566 (reorder-block-duplicate-feedback): Likewise.
37567 (loop-unroll-jam-size): Likewise.
37570 (-mabs=legacy): Likewise.
37571 (-mupper-regs-df): Likewise.
37572 (-mupper-regs-sf): Likewise.
37573 (-mpointers-to-nested-functions): Likewise.
37575 2015-03-21 Sandra Loosemore <sandra@codesourcery.com>
37577 * doc/extend.texi (Cilk Plus Builtins): Add markup.
37579 2015-03-21 Sandra Loosemore <sandra@codesourcery.com>
37581 * doc/invoke.texi (-fcheck-pointer-bounds): Copy-edit, add
37582 additional index entries and cross-references.
37583 (-fchkp-check-incomplete-type): Likewise.
37584 (-fchkp-first-field-has-own-bounds): Likewise.
37585 (-fchkp-narrow-to-innermost-array): Likewise.
37586 (-fchkp-use-fast-string-functions): Likewise.
37587 (-fchkp-use-nochk-string-functions): Likewise.
37588 (-fchkp-use-static-const-bounds): Likewise.
37589 (-fchkp-treat-zero-dynamic-size-as-infinite): Likewise.
37590 (-fchkp-instrument-marked-only): Likewise.
37591 (-fchkp-use-wrappers): Likewise.
37592 (-static-libmpx): Likewise.
37593 (-static-libmpxwrappers): Likewise.
37594 * doc/extend.texi (bnd_legacy): Likewise.
37595 (bnd_instrument): Likewise.
37596 (bnd_variable_size): Likewise.
37597 (Pointer Bounds Checker builtins): Likewise.
37599 2015-03-21 Tom de Vries <tom@codesourcery.com>
37601 PR tree-optimization/65458
37602 * cgraph.c (cgraph_node::dump): Handle parallelized_function field.
37603 * cgraph.h (cgraph_node): Add parallelized_function field.
37604 * lto-cgraph.c (lto_output_node): Write parallelized_function field.
37605 (input_overwrite_node): Read parallelized_function field.
37606 * omp-low.c (expand_omp_taskreg, finalize_task_copyfn): Set
37607 parallelized_function on cgraph_node for child_fn.
37608 * tree-parloops.c: Add include of plugin-api.h, ipa-ref.h and cgraph.h.
37609 Remove include of gt-tree-parloops.h.
37610 (parallelized_functions): Remove static variable.
37611 (parallelized_function_p): Rewrite using parallelized_function field of
37613 (create_loop_fn): Remove adding to parallelized_functions.
37614 * Makefile.in (GTFILES): Remove tree-parloops.c
37616 2015-03-20 Vladimir Makarov <vmakarov@redhat.com>
37618 PR rtl-optimization/64366
37619 * lra.c (lra_update_insn_regno_info): Consider regs in
37620 CALL_INSN_FUNCTION_USAGE memory.
37622 2015-03-20 Richard Biener <rguenther@suse.de>
37624 PR middle-end/64715
37625 * tree-chrec.c (chrec_fold_poly_cst): Use useless_type_conversion_p
37626 for type comparison and gcc_checking_assert.
37627 (chrec_fold_plus_poly_poly): Likewise.
37628 (chrec_fold_multiply_poly_poly): Likewise.
37629 (chrec_convert_1): Likewise.
37630 * gimplify.c (gimplify_expr): Remove premature folding of
37631 &X + CST to &MEM[&X, CST].
37633 2015-03-20 Jan Hubicka <hubicka@ucw.cz>
37635 * ipa-inline.c (can_inline_edge_p): Short circuit if inline_failed
37637 (ipa_inline): Recompute inline_failed codes.
37638 * cif-code.def (FUNCTION_NOT_OPTIMIZED, REDEFINED_EXTERN_INLINE,
37639 USES_COMDAT_LOCAL, ATTRIBUTE_MISMATCH, UNREACHABLE): Declare as
37642 2015-03-20 Uros Bizjak <ubizjak@gmail.com>
37644 PR rtl-optimization/60851
37645 * recog.c (constrain_operands): Accept a pseudo register before reload
37646 for LRA enabled targets.
37648 2015-03-19 Michael Meissner <meissner@linux.vnet.ibm.com>
37651 * config/rs6000/predicates.md (easy_fp_constant): Remove special
37652 -ffast-math handling that kept non-0 constants live in the RTL
37653 until reload. Remove logic testing the number of instructions it
37654 took to create a constant in a GPR that was never used, due to a
37655 test for soft-float earlier.
37656 (memory_fp_constant): Delete, no longer used.
37658 * config/rs6000/rs6000.md (mov<MODE>_hardfloat): Remove
37659 alternatives for loading non-0 constants into GPRs for hard
37660 floating point that is no longer needed due to changes in
37661 easy_fp_constant. Add support for loading 0.0 into GPRs.
37662 (mov<mode>_hardfloat32): Likewise.
37663 (mov<mode>_hardfloat64): Likewise.
37664 (mov<mode>_64bit_dm): Likewise.
37665 (movtd_64bit_nodm): Likewise.
37666 (pre-reload move FP constant define_split): Delete define_split,
37667 since it is no longer used.
37668 (extenddftf2_internal): Remove GHF constraints that are not valid
37671 2015-03-19 Vladimir Makarov <vmakarov@redhat.com>
37673 PR rtl-optimization/63491
37674 * lra-constraints.c (check_and_process_move): Use src instead of
37675 sreg. Remove some dead code.
37677 2015-03-19 Jan Hubicka <hubicka@ucw.cz>
37680 * ipa-icf.c (sem_function::merge): Do not merge DECL_EXTERNAL symbols.
37681 (sem_variable::merge): Likewise.
37683 2015-03-19 Martin Liska <mliska@suse.cz>
37686 * cgraphunit.c (cgraph_node::create_wrapper): Correctly reset
37687 all fields of cgraph_thunk_info.
37689 2015-03-19 Ilya Enkovich <ilya.enkovich@intel.com>
37691 * ipa-chkp.c (chkp_maybe_create_clone): Don't try to
37692 clone instrumented thunks.
37694 2015-03-19 Richard Biener <rguenther@suse.de>
37697 2015-03-10 Richard Biener <rguenther@suse.de>
37699 PR middle-end/63155
37700 * tree-ssa-coalesce.h (verify_ssa_coalescing): Declare.
37701 * tree-ssa-coalesce.c: Include timevar.h.
37702 (attempt_coalesce): Handle graph being NULL.
37703 (coalesce_partitions): Call verify_ssa_coalescing if ENABLE_CHECKING.
37704 Split out abnormal coalescing to ...
37705 (perform_abnormal_coalescing): ... this function.
37706 (coalesce_ssa_name): Perform abnormal coalescing without computing
37708 (verify_ssa_coalescing_worker): New function.
37709 (verify_ssa_coalescing): Likewise.
37711 2015-03-19 Bernd Edlinger <bernd.edlinger@hotmail.de>
37712 Jakub Jelinek <jakub@redhat.com>
37715 * tsan.c (instrument_gimple): Clear tail call flag on
37718 2015-03-19 Jakub Jelinek <jakub@redhat.com>
37721 * ipa-split.c (find_return_bb): Allow TSAN_FUNC_EXIT internal
37722 call in the return bb.
37723 (find_split_points): Add RETURN_BB argument, don't call
37725 (split_function): Likewise. Add ADD_TSAN_FUNC_EXIT argument,
37726 if true append TSAN_FUNC_EXIT internal call after the call to
37727 the split off function.
37728 (execute_split_functions): Call find_return_bb here.
37729 Don't optimize if TSAN_FUNC_EXIT is found in unexpected places.
37730 Adjust find_split_points and split_function calls.
37732 2015-03-18 DJ Delorie <dj@redhat.com>
37734 * config/rl78/rl78-virt.md (andqi3_virt): Allow far operands.
37735 (iorqi3_virt): Likewise.
37737 2015-03-18 Tom de Vries <tom@codesourcery.com>
37739 * tree-parloops.c (parallelize_loops): Make static.
37740 * tree-parloops.h (parallelize_loops): Remove extern declaration.
37742 2015-03-18 Andrew Stubbs <ams@codesourcery.com>
37744 PR middle-end/64491
37746 2014-11-20 Andrew Stubbs <ams@codesourcery.com>
37748 * tree-ssa-loop-niter.c (maybe_lower_iteration_bound): Warn if a loop
37749 condition would be removed due to undefined behaviour.
37751 2015-03-18 Martin Liska <mliska@suse.cz>
37754 * cgraph.c (cgraph_node::get_create): Remove unnecessary
37755 xstrdup_for_dump wrapper.
37756 * ipa-icf.c (sem_item::dump): Use symtab_node::name instead of
37758 (sem_function::equals): Wrap symtab_node::name and symtab_node::asm_name
37759 with xstrdup_for_dump.
37760 (sem_variable::equals): Likewise.
37761 (sem_item_optimizer::read_section): Use symtab_node::name instead of
37763 (sem_item_optimizer::parse_funcs_and_vars): Likewise.
37764 (sem_item_optimizer::merge_classes): Wrap symtab_node::name and
37765 symtab_node::asm_name with xstrdup_for_dump.
37766 (congruence_class::dump): Use symtab_node::name instead of
37768 * ipa-icf.h (symtab_node::name): Remove.
37769 (symtab_node::asm_name): Likewise.
37771 2015-03-18 Jakub Jelinek <jakub@redhat.com>
37773 PR tree-optimization/65450
37774 * tree-vect-data-refs.c (vect_duplicate_ssa_name_ptr_info): New
37776 (vect_create_addr_base_for_vector_ref, vect_create_data_ref_ptr): Use
37777 it instead of duplicate_ssa_name_ptr_info.
37780 * doc/invoke.texi: Add knl as x86 -march=/-mtune= CPU type.
37782 2015-03-18 Richard Biener <rguenther@suse.de>
37784 * tree-data-ref.h (struct access_matrix): Remove.
37785 (AM_LOOP_NEST, AM_NB_INDUCTION_VARS, AM_PARAMETERS, AM_MATRIX,
37786 AM_NB_PARAMETERS, AM_CONST_COLUMN_INDEX, AM_NB_COLUMNS,
37787 AM_GET_SUBSCRIPT_ACCESS_VECTOR, AM_GET_ACCESS_MATRIX_ELEMENT): Likewise.
37788 (am_vector_index_for_loop): Likewise.
37789 (struct data_reference): Remove access_matrix member.
37790 (DR_ACCESS_MATRIX): Remove.
37791 (lambda_vector_new): Add comment.
37792 (lambda_matrix_new): Use XOBNEWVEC.
37794 2015-03-18 Richard Biener <rguenther@suse.de>
37796 * tree-ssa-loop-ch.c (pass_data_ch): Remove TODO_cleanup_cfg.
37797 (pass_ch::execute): Cleanup the CFG only if we did sth.
37798 * tree-vect-generic.c (pass_data_lower_vector): Remove TODO_cleanup_cfg.
37800 2015-03-18 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
37802 * expmed.c (synth_mult): Use std::swap instead of manually
37803 swapping algorithms.
37805 2015-03-18 Jakub Jelinek <jakub@redhat.com>
37808 * config/i386/sse.md (movsi/movdi -> vec_extract_*_0 splitter): New.
37810 2015-03-16 Georg-Johann Lay <avr@gjlay.de>
37813 * config/avr/avr.opt (-nodevicelib): New option.
37814 * doc/invoke.texi (AVR Options): Document it.
37815 * config/avr/avrlibc.h (LIB_SPEC, LIBGCC_SPEC) [avr1]: Don't link
37816 libgcc.a, libc.a, libm.a.
37817 * config/avr/specs.h: Same.
37818 * config/avr/gen-avr-mmcu-specs.c (print_mcu): Don't print specs
37819 which don't (directly) depend on the device. Print more help.
37820 (*avrlibc_devicelib) [-nodevicelib]: Don't link libdev.a.
37821 (*cpp): Don't define __AVR_DEV_LIB_NAME__.
37822 * config/avr/driver-avr.c: Remove -nodevicelib from option list in
37824 (avr_devicespecs_file): Use suffix "%s" instead of absolute path
37825 for specs file name.
37826 * config/avr/avr-arch.h (avr_mcu_t) [.library_name]: Remove.
37827 * config/avr/avr-mcus.def: Adjust initializers and comments.
37829 2015-03-16 Jan Hubicka <hubicka@ucw.cz>
37831 * tree-sra.c (ipa_sra_preliminary_function_checks): Use
37832 DECL_ONE_ONLY to check if decl is one only.
37833 * ipa-split.c (consider_split): Limit splitt of one only functions.
37835 2015-03-16 Jakub Jelinek <jakub@redhat.com>
37837 PR tree-optimization/65427
37838 * tree-vect-generic.c (do_cond, expand_vector_scalar_condition): New
37840 (expand_vector_operations_1): Handle BLKmode vector COND_EXPR.
37842 2015-03-16 Marek Polacek <polacek@redhat.com>
37844 * cgraph.h (add_new_static_var): Remove declaration.
37845 * varpool.c (add_new_static_var): Remove function.
37847 2015-03-16 Jakub Jelinek <jakub@redhat.com>
37849 * omp-low.c (expand_omp_target): Use auto_vec<tree, 11>
37850 instead of vec<tree> * with vec_alloc and release for args.
37853 PR middle-end/65431
37854 * omp-low.c (delete_omp_context): Only splay_tree_delete
37855 reduction_map in GIMPLE_OMP_TARGET is_gimple_omp_offloaded
37856 is_gimple_omp_oacc contexts. Don't look at ctx->outer.
37858 2015-03-16 Max Ostapenko <m.ostapenko@partner.samsung.com>
37861 * cfgexpand.c (align_base): New function.
37862 (alloc_stack_frame_space): Call it.
37863 (expand_stack_vars): Align prev_frame to be sure
37864 data->asan_vec elements aligned properly.
37866 2015-03-16 Eric Botcazou <ebotcazou@adacore.com>
37868 PR middle-end/65409
37869 * expr.c (store_field): Do not do a direct block copy if the source is
37870 a PARALLEL with BLKmode.
37872 2015-03-16 Tom de Vries <tom@codesourcery.com>
37874 PR middle-end/65414
37876 2015-03-12 Tom de Vries <tom@codesourcery.com>
37878 PR rtl-optimization/64895
37879 * lra-lives.c (check_pseudos_live_through_calls): Use
37880 actual_call_used_reg_set instead of call_used_reg_set, if available.
37882 2015-03-16 Alan Modra <amodra@gmail.com>
37885 * config/rs6000/rs6000.md (bswapdi2): Remove one scratch reg.
37886 Modify Z->r bswapdi splitter to use dest in place of scratch.
37887 In r->Z and Z->r bswapdi splitter rename word_high, word_low
37888 to word1, word2 and rearrange logic to suit.
37889 (bswapdi2_64bit): Remove early clobber on Z->r alternative.
37890 (bswapdi2_ldbrx): Likewise. Remove '??' on r->r.
37891 (bswapdi2_32bit): Remove early clobber on Z->r alternative.
37892 Add one '?' on r->r. Modify Z->r splitter to avoid need for
37895 2015-03-14 Jakub Jelinek <jakub@redhat.com>
37897 PR tree-optimization/65369
37898 * tree-vect-stmts.c (vectorizable_load) <case dr_explicit_realign>:
37899 Set bump to vs * TYPE_SIZE_UNIT (elem_type) - 1 instead of
37900 (vs - 1) * TYPE_SIZE_UNIT (elem_type).
37902 PR tree-optimization/65418
37903 * tree-ssa-reassoc.c (extract_bit_test_mask): If there
37904 are casts in the first PLUS_EXPR operand, ensure tbias and
37905 *totallowp are in the inner type.
37907 PR rtl-optimization/65401
37908 * combine.c (rtx_equal_for_field_assignment_p): Add widen_x
37909 argument. If true, adjust_address_nv of x with big-endian
37910 correction for the mode widening to GET_MODE (y).
37911 (make_field_assignment): Don't do MEM mode widening here.
37912 Use MEM_P instead of GET_CODE == MEM.
37914 2015-03-13 Ilya Verbin <ilya.verbin@intel.com>
37916 * varpool.c (varpool_node::get_create): Don't set 'offloadable' flag for
37917 the external decls.
37919 2015-03-13 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
37922 * config/arm/arm.c (arm_gen_constant, AND case): Use
37923 ARM_SIGN_EXTEND when constructing AND mask.
37925 2015-03-13 Thomas Preud'homme <thomas.preudhomme@arm.com>
37927 * graph.c (print_graph_cfg): Make function names visible and append
37928 parenthesis to it. Also make groups of basic blocks belonging to the
37929 same function visible.
37931 2015-03-12 Richard Biener <rguenther@suse.de>
37933 PR middle-end/44563
37934 * tree-inline.c (gimple_expand_calls_inline): Walk BB backwards
37935 to avoid quadratic behavior with inline expansion splitting blocks.
37936 * tree-cfgcleanup.c (cleanup_tree_cfg_bb): Do not merge block
37937 with the successor if the predecessor will be merged with it.
37938 * tree-cfg.c (gimple_can_merge_blocks_p): We can't merge the
37939 entry block with its successor.
37941 2015-03-13 Richard Biener <rguenther@suse.de>
37943 PR middle-end/44563
37944 * tree-cfgcleanup.c (split_bb_on_noreturn_calls): Remove.
37945 (cleanup_tree_cfg_1): Do not call it.
37946 (execute_cleanup_cfg_post_optimizing): Fixup the CFG here.
37947 (fixup_noreturn_call): Mark the stmt as control altering.
37948 * tree-cfg.c (execute_fixup_cfg): Do not dump the function
37950 (pass_data_fixup_cfg): Produce a dump file.
37951 * tree-ssa-dom.c: Include tree-cfgcleanup.h.
37952 (need_noreturn_fixup): New global.
37953 (pass_dominator::execute): Fixup queued noreturn calls.
37954 (optimize_stmt): Queue calls that became noreturn for fixup.
37955 * tree-ssa-forwprop.c (pass_forwprop::execute): Likewise.
37956 * tree-ssa-pre.c: Include tree-cfgcleanup.h.
37957 (el_to_fixup): New global.
37958 (eliminate_dom_walker::before_dom_childre): Queue calls that
37959 became noreturn for fixup.
37960 (eliminate): Fixup queued noreturn calls.
37961 * tree-ssa-propagate.c: Include tree-cfgcleanup.h.
37962 (substitute_and_fold_dom_walker): New member stmts_to_fixup.
37963 (substitute_and_fold_dom_walker::before_dom_children): Queue
37964 alls that became noreturn for fixup.
37965 (substitute_and_fold): Fixup queued noreturn calls.
37967 2015-03-12 Jan Hubicka <hubicka@ucw.cz>
37969 * ipa-icf.c (sem_function::equals_wpa): Match CXX_CONSTRUCTOR_P
37970 and CXX_DESTURCTOR_P. For consutrctors match ODR type of class they
37971 are building; for methods check ODR type of class they belong to if
37972 they may lead to a polymorphic call.
37973 (sem_function::compare_polymorphic_p): Be bit smarter about testing
37974 when function may lead to a polymorphic call.
37975 (sem_function::compare_type_list): Remove.
37976 (sem_variable::equals): Update use of compatible_types_p.
37977 (sem_variable::parse_tree_refs): Remove.
37978 (sem_item_optimizer::filter_removed_items): Do not filter out CXX
37980 * ipa-icf-gimple.c (func_checker::compare_decl): Do polymorphic
37982 (func_checker::compatible_polymorphic_types_p): Break out from ...
37983 (unc_checker::compatible_types_p): ... here.
37984 * ipa-icf-gimple.h (func_checker::compatible_polymorphic_types_p):
37986 (unc_checker::compatible_types_p): Update.
37987 * ipa-icf.h (compare_type_list, parse_tree_refs, compare_sections):
37990 2015-03-12 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
37992 PR rtl-optimization/65235
37993 * simplify-rtx.c (simplify_binary_operation_1, VEC_SELECT case):
37994 When first element of vec_concat is const_int, calculate its size
37995 using second element.
37997 2015-03-12 Richard Biener <rguenther@suse.de>
37999 PR middle-end/65270
38000 * fold-const.c (operand_equal_p): Fix ordering of resetting
38001 OEP_ADDRESS_OF and checking for it in the [TARGET_]MEM_REF case.
38003 2015-03-12 Dominik Vogt <vogt@linux.vnet.ibm.com>
38005 * config/s390/s390.c (s390_reorg): Move code to output nops after label
38007 (s390_asm_output_function_label): Likewise.
38008 * config/s390/s390.c (s390_asm_output_function_label):
38009 Fix function label alignment with -mhtopatch.
38010 * config/s390/s390.md ("unspecv"): New values UNSPECV_NOP_2_BYTE,
38011 UNSPECV_NOP_4_BYTE and UNSPECV_NOP_6_BYTE
38012 ("nop_2_byte"): New define_insn.
38013 ("nop_4_byte"): Likewise.
38014 ("nop_6_byte"): Likewise.
38015 * doc/extend.texi (hotpatch): hotpatch attribute doc fixes.
38016 * doc/invoke.texi (-mhotpatch): -mhotpatch doc fixes.
38018 2015-03-12 Ilya Enkovich <ilya.enkovich@intel.com>
38021 * config/i386/i386.c (ix86_address_cost): Fix cost of a PIC
38024 2015-03-12 Ilya Enkovich <ilya.enkovich@intel.com>
38027 * toplev.c (process_options): Restrict Pointer Bounds Checker
38028 usage with Address Sanitizer.
38030 2015-03-12 Richard Biener <rguenther@suse.de>
38032 * tree-cfg.c (gimple_split_block): Remove loop finding stmt
38034 * omp-low.c (expand_omp_taskreg): Split block before removing
38036 (expand_omp_target): Likewise.
38037 * ubsan.c (ubsan_expand_null_ifn): Adjust stmt if we replaced it.
38038 * tree-parloops.c (create_call_for_reduction_1): Pass a proper
38039 stmt to split_block.
38041 2015-03-12 Tom de Vries <tom@codesourcery.com>
38043 PR rtl-optimization/64895
38044 * lra-lives.c (check_pseudos_live_through_calls): Use
38045 actual_call_used_reg_set instead of call_used_reg_set, if available.
38047 2015-03-10 Jan Hubicka <hubicka@ucw.cz>
38049 * cgraph.c (cgraph_node::release_body): Free function_in_decl_state.
38050 (cgraph_node::remove): Likewise.
38051 (cgraph_node::get_untransformed_body): Likewise.
38052 * varpool.c (varpool_node::remove): Likewise.
38053 (varpool_node::get_constructor): Add sanity check.
38055 2015-03-11 Sandra Loosemore <sandra@codesourcery.com>
38057 * doc/invoke.texi (-fgnu89-inline): Remove discussion about
38059 (-fabi-compat-version): Likewise.
38060 (-ffriend-injection): Likewise.
38061 (-Wdeclaration-after-statement): Likewise.
38062 (-fomit-frame-pointer): Likewise.
38063 (-ftree-coalesce-inlined-vars): Likewise.
38064 (-fvisibility=): Likewise.
38065 * doc/extend.texi (Typeof): Likewise.
38066 (Zero Length): Likewise.
38067 (Escaped Newlines): Likewise.
38068 (Compound Literals): Likewise.
38069 (Function Attributes): Likewise.
38070 (Label Attributes): Likewise.
38071 (Type Attributes): Likewise.
38072 (Function Names): Likewise.
38073 (Other Builtins): Likewise.
38074 (Function Specific Option Pragmas): Likewise.
38075 (C++ Interface): Likewise.
38077 2015-03-11 Thomas Schwinge <thomas@codesourcery.com>
38079 * config/nvptx/nvptx.h (LIBSTDCXX): Define to "gcc".
38081 2015-03-11 Marek Polacek <polacek@redhat.com>
38083 PR tree-optimization/65388
38084 * tree-ssa-tail-merge.c (same_succ_def::equal): Fix typo in comparison.
38086 2015-03-10 Georg-Johann Lay <avr@gjlay.de>
38089 * configure.ac [avr]: Check as for options -mrmw, --mlink-relax.
38090 * configure: Regenerate.
38091 * config.in: Regenerate.
38092 * doc/invoke.texi (AVR Options) [-mrmw]: Document it.
38093 [-mn-flash]: Document it.
38094 [__AVR_ARCH__]: Document avrtiny.
38096 * config/avr/gen-avr-mmcu-specs.c (config.h): Include it.
38097 (*asm_relax): Only define spec if HAVE_AS_AVR_MLINK_RELAX_OPTION.
38098 (*asm_rmw): Only define spec if HAVE_AS_AVR_MRMW_OPTION.
38100 2015-03-11 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
38102 * doc/invoke.texi: Add missing cpu values (z196, zEC12).
38104 2015-03-11 Michael Meissner <meissner@linux.vnet.ibm.com>
38107 * config/rs6000/rs6000.c (rs6000_preferred_reload_class): Do not
38108 allow reloads of PLUS in floating point/VSX registers.
38110 2015-03-11 Junmo Park <junmoz.park@samsung.com>
38112 * config/arm/cortex-a57.md (cortex_a57_crypto_simple): Add
38113 crypto_sha256_fast.
38114 (cortex_a57_crypto_complex): Add crypto_sha256_slow.
38116 2015-03-11 Richard Biener <rguenther@suse.de>
38118 PR tree-optimization/65310
38119 * tree-sra.c (build_ref_for_offset): Also preserve larger
38122 2015-03-11 Marat Zakirov <m.zakirov@samsung.com>
38124 * asan.c (instrument_derefs): Disable instrumentation on asan-globals=0.
38126 2015-03-10 Jakub Jelinek <jakub@redhat.com>
38129 * config/i386/i386.md (bmi2_bzhi_<mode>3): Removed define_insn,
38131 (*bmi2_bzhi_<mode>3, *bmi2_bzhi_<mode>3_1): New define_insns.
38133 2015-03-10 Jan Hubicka <hubicka@ucw.cz>
38135 * ipa-icf.c (sem_function::equals_wpa): Move here some checks from ...
38136 (sem_function::equals_wpa): ... here.
38138 2015-03-10 Marek Polacek <polacek@redhat.com>
38139 Jakub Jelinek <jakub@redhat.com>
38142 * ubsan.c (ubsan_expand_objsize_ifn): Update GSI instead of GSI_ORIG
38143 when only removing the statement. Handle expanding UBSAN_OBJECT_SIZE
38146 2015-03-10 Jakub Jelinek <jakub@redhat.com>
38149 * config/rs6000/t-linux: For powerpc64* target set
38150 MULTILIB_OSDIRNAMES instead of MULTIARCH_DIRNAME.
38152 2015-03-10 Richard Biener <rguenther@suse.de>
38154 PR middle-end/44563
38155 * tree-inline.c (copy_cfg_body): Skip block mapped to entry/exit
38156 for redirect_all_calls.
38158 2015-03-10 Marek Polacek <polacek@redhat.com>
38160 * gdbinit.in (pcfun): Define and document.
38162 2015-03-10 Ilya Verbin <ilya.verbin@intel.com>
38164 * config/i386/intelmic-mkoffload.c: Include intelmic-offload.h instead
38165 of libgomp-plugin.h.
38166 (find_target_compiler): Support a case when the path to gcc is
38167 specified in the PATH env var, so COLLECT_GCC doesn't contain a path.
38168 (generate_host_descr_file): Use GOMP_DEVICE_INTEL_MIC from
38169 intelmic-offload.h instead of OFFLOAD_TARGET_TYPE_INTEL_MIC from
38171 (main): Use GCC_INSTALL_NAME as target_driver_name.
38172 * config/i386/t-intelmic (CFLAGS-mkoffload.o): Add GCC_INSTALL_NAME
38174 (mkoffload.o): Remove obsolete include path and defines.
38175 (mkoffload$(exeext)): Use $(LINKER) instead of $(COMPILER).
38177 2015-03-10 Richard Biener <rguenther@suse.de>
38179 PR middle-end/63155
38180 * tree-ssa-coalesce.h (verify_ssa_coalescing): Declare.
38181 * tree-ssa-coalesce.c: Include timevar.h.
38182 (attempt_coalesce): Handle graph being NULL.
38183 (coalesce_partitions): Call verify_ssa_coalescing if ENABLE_CHECKING.
38184 Split out abnormal coalescing to ...
38185 (perform_abnormal_coalescing): ... this function.
38186 (coalesce_ssa_name): Perform abnormal coalescing without computing
38188 (verify_ssa_coalescing_worker): New function.
38189 (verify_ssa_coalescing): Likewise.
38191 2015-03-10 Georg-Johann Lay <avr@gjlay.de>
38194 * config.gcc (extra_options) [avr]: Remove.
38195 (extra_gcc_objs) [avr]: Use driver-avr.o, avr-devices.o.
38196 (tm_file) [avr]: Add avr/specs.h after avr/avr.h.
38197 (tm_defines) [avr-*-rtems*]: Add WITH_RTEMS.
38199 * config/avr/avr.opt (config/avr/avr-arch.h): Remove include.
38200 (-mmcu=): Add Var and MissingArgError properties.
38202 * config/avr/genmultilib.awk: Use -mmcu= instead of -march=.
38203 * config/avr/t-multilib: Regenerate.
38204 * config/avr/specs.h: New file.
38205 * config/avr/driver-avr.c: New file.
38206 * config/avr/genopt.sh: Remove file.
38207 * config/avr/avr-tables.opt: Remove file.
38208 * config/avr/predicates.md (avr_current_arch): Rename to avr_arch.
38209 * config/avr/avr-c.c: Same.
38210 * avr-arch.h: Same.
38211 (avr_current_device): Remove proto.
38212 * config/avr/avr.h (avr_current_arch): Rename to avr_arch.
38213 (AVR_HAVE_8BIT_SP): Don't depend on avr_current_device.
38214 (EXTRA_SPEC_FUNCTIONS): Define.
38215 (avr_devicespecs_file): New specs function proto.
38216 (DRIVER_SELF_SPECS): Use device-specs-file spec function.
38217 * config/avr/avr.c (avr_current_arch): Rename to avr_arch.
38218 (avr_current_device): Remove definition and usage.
38219 (avr_set_core_architecture): New static function.
38220 (avr_option_override): Use it.
38221 * config/avr/avr-devices.c (diagnostic.h, avr-arch.h): Include them.
38222 (mcu_name): New static array.
38223 (comparator, avr_archs_str, avr_mcus_str): New static functions.
38224 (avr_inform_devices, avr_inform_core_architectures): New functions.
38225 * config/avr/gen-avr-mmcu-specs.c (avr-arch.h, specs.h): Include.
38226 (avrlibc.h) [WITH_AVRLIBC]: Include.
38227 (../rtems.h, rtems.h) [WITH_RTEMS]: Include.
38228 (print_mcu): Rewrite from scratch.
38229 * config/avr/avrlibc.h (LIB_SPEC, LIBGCC_SPEC, STARTFILE_SPEC):
38230 Forward to avr-specific specs defined in device-specs file.
38231 * config/avr/t-avr (driver-avr.o): New rule.
38232 (avr-devices.o): Depend on avr-arch.h.
38233 (avr-mcus): No more depend on avr-tables.opt.
38234 (avr-tables.opt): Remove rule.
38235 (install-device-specs): Use INSTALL_DATA, not INSTALL_PROGRAM.
38237 2015-03-10 Ilya Enkovich <ilya.enkovich@intel.com>
38239 * c-family/c.opt (fchkp-use-wrappers): New.
38240 * ipa-chkp.c (CHKP_WRAPPER_SYMBOL_PREFIX): New.
38241 (chkp_wrap_function): New.
38242 (chkp_build_instrumented_fndecl): Support wrapped
38244 * doc/invoke.texi (-fcheck-pointer-bounds): New.
38245 (-fchkp-check-incomplete-type): New.
38246 (-fchkp-first-field-has-own-bounds): New.
38247 (-fchkp-narrow-bounds): New.
38248 (-fchkp-narrow-to-innermost-array): New.
38249 (-fchkp-optimize): New.
38250 (-fchkp-use-fast-string-functions): New.
38251 (-fchkp-use-nochk-string-functions): New.
38252 (-fchkp-use-static-bounds): New.
38253 (-fchkp-use-static-const-bounds): New.
38254 (-fchkp-treat-zero-dynamic-size-as-infinite): New.
38255 (-fchkp-check-read): New.
38256 (-fchkp-check-write): New.
38257 (-fchkp-store-bounds): New.
38258 (-fchkp-instrument-calls): New.
38259 (-fchkp-instrument-marked-only): New.
38260 (-fchkp-use-wrappers): New.
38261 (-static-libmpx): New.
38262 (-static-libmpxwrappers): New.
38264 2015-03-10 Ilya Enkovich <ilya.enkovich@intel.com>
38266 * config/i386/linux-common.h (LIBMPX_WRAPPERSSPEC): New.
38267 (CHKP_SPEC): Add wrappers library.
38268 * c-family/c.opt (static-libmpxwrappers): New.
38270 2015-03-10 Ilya Enkovich <ilya.enkovich@intel.com>
38272 * config/i386/linux-common.h (LIBMPX_LIBS): New.
38273 (LIBMPX_SPEC): New.
38275 * gcc.c (CHKP_SPEC): New.
38276 (LINK_COMMAND_SPEC): Add CHKP_SPEC.
38277 * c-family/c.opt (static-libmpx): New.
38279 2015-03-10 Richard Biener <rguenther@suse.de>
38281 PR middle-end/44563
38282 * cgraph.h (struct cgraph_edge_hasher): Add hash overload
38284 * cgraph.c (cgraph_edge_hasher::hash): Inline htab_hash_pointer.
38285 (cgraph_update_edge_in_call_site_hash): Use cgraph_edge_hasher::hash.
38286 (cgraph_add_edge_to_call_site_hash): Likewise.
38287 (cgraph_node::get_edge): Likewise.
38288 (cgraph_edge::set_call_stmt): Likewise.
38289 (cgraph_edge::remove_caller): Likewise.
38291 2015-03-10 Chung-Ju Wu <jasonwucj@gmail.com>
38293 * config/nds32/nds32.h (callee_saved_regs_size): Rename to ...
38294 (callee_saved_gpr_regs_size): ... this.
38295 (callee_saved_regs_first_regno): Rename to ...
38296 (callee_saved_first_gpr_regno): ... this.
38297 (callee_saved_regs_last_regno) Rename to ...
38298 (callee_saved_last_gpr_regno): ... this.
38299 * config/nds32/nds32.c (nds32_compute_stack_frame): Adjust renamed
38301 (nds32_initial_elimination_offset): Likewise.
38302 (nds32_expand_prologue): Likewise.
38303 (nds32_expand_epilogue): Likewise.
38304 (nds32_expand_prologue_v3push): Likewise.
38305 (nds32_expand_epilogue_v3pop): Likewise.
38306 * config/nds32/nds32-md-auxiliary.c (nds32_output_stack_push):
38307 Adjust renamed variables.
38308 (nds32_output_stack_pop): Likewise.
38310 2015-03-10 Thomas Preud'homme <thomas.preudhomme@arm.com>
38312 * dominance.c (nearest_common_dominator_for_set): Fix A_Dominated_by_B
38315 2015-03-10 Jakub Jelinek <jakub@redhat.com>
38317 PR rtl-optimization/65321
38318 * cfgexpand.c (expand_debug_expr): Ensure shift amount isn't wider
38320 * var-tracking.c (use_narrower_mode): Likewise.
38322 2015-03-10 Jan Hubicka <hubicka@ucw.cz>
38324 PR tree-optimization/65355
38325 * varasm.c (notice_global_symbol): Do not produce RTL.
38326 * symtab.c (symtab_node::can_increase_alignment_p): Check for section
38328 * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Do not
38329 check for section anchors.
38331 2015-03-10 Alan Modra <amodra@gmail.com>
38334 * config.gcc (powerpc*-*-linux*): Arrange for powerpc64le-linux
38335 to be single-arch by default. Set cpu_is_64bit for powerpc64
38336 given --with-cpu=native.
38337 * config/rs6000/t-fprules: Do not set default MULTILIB vars.
38338 * config/rs6000/t-linux (MULTIARCH_DIRNAME): Support powerpc64
38340 * config/rs6000/linux64.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Test
38341 rs6000_isa_flags rather than TARGET_64BIT.
38343 2015-03-09 Yoshinori Sato <ysato@users.sourceforge.jp>
38344 Kaz Kojima <kkojima@gcc.gnu.org>
38346 * config/sh/t-linux (MULTILIB_EXCEPTIONS): Define for m2a cases.
38348 2015-03-09 Jakub Jelinek <jakub@redhat.com>
38351 * ipa-devirt.c (add_type_duplicate): Don't use DECL_CONTEXT
38352 on a TREE_BINFO, instead use BINFO_TYPE.
38354 2015-03-09 Richard Biener <rguenther@suse.de>
38356 PR middle-end/65270
38357 * tree-core.h (enum operand_equal_flag): Add OEP_ADDRESS_OF.
38358 * fold-const.c (operand_equal_p): When recursing for ADDR_EXPRs
38359 operand set OEP_ADDRESS_OF. Clear it when recursing to non-bases
38360 of that. When comparing dereferences compare alignment.
38361 When comparing MEM_REFs or TARGET_MEM_REFs compare dependence info.
38363 2015-03-08 Jan Hubicka <hubicka@ucw.cz>
38365 * ipa-inline-analysis.c (check_callers): Check
38366 node->can_remove_if_no_direct_calls_and_refs_p.
38367 (growth_likely_positive): Reorganize to call
38368 can_remove_if_no_direct_calls_p later.
38369 * cgraph.h (will_be_removed_from_program_if_no_direct_calls_p,
38370 will_be_removed_from_program_if_no_direct_calls_p): Add
38371 will_inline parameter.
38372 * cgraph.c (cgraph_node::can_remove_if_no_direct_calls_p,
38373 cgraph_node::will_be_removed_from_program_if_no_direct_calls_p):
38374 Handle inliner case correctly.
38376 2015-03-09 Thomas Preud'homme <thomas.preudhomme@arm.com>
38378 PR tree-optimization/63743
38379 * cfgexpand.c (reorder_operands): Also reorder if only second operand
38380 had its definition forwarded by TER.
38382 2015-03-08 Jan Hubicka <hubicka@ucw.cz>
38385 * ipa-utils.h (types_odr_comparable): Add strict argument.
38386 * ipa-devirt.c: Fix whitespace;
38387 (odr_hasher): Remove.
38388 (odr_name_hasher, odr_vtable_hasher): New hashers.
38389 (can_be_name_hashed_p): New predicate.
38390 (hash_type_name): remove.
38391 (hash_odr_name): New.
38392 (odr_name_hasher::hash): new.
38393 (can_be_vtable_hashed_p): New.
38394 (hash_odr_vtable): New.
38395 (odr_vtable_hasher::hash): New.
38396 (types_same_for_odr): Add strict parameter.
38397 (types_odr_comparable): Likewise.
38398 (odr_name_hasher::equal): New.
38399 (odr_vtable_hasher::equal): New.
38400 (odr_name_hasher::remove): New.
38401 (odr_hash_type): Change to hash_table<odr_name_hasher>.
38402 (odr_vtable_hash_type): New.
38403 (odr_vtable_hash): New.
38404 (odr_subtypes_equivalent_p): Do strict comparsion.
38405 (add_type_duplicate): Merge type names; cleanup; avoid type
38407 (register_odr_type): Initialize vtable hash.
38408 (build_type_inheritance_graph): Likewise
38409 (get_odr_type): Reorg to use two hashes.
38410 (dump_possible_polymorphic_call_targets): Move sanity check after debug
38412 (ipa_devirt): Dump type_inheritance_graph.
38413 (types_same_for_odr): Add strict mode.
38415 2015-03-05 Jan Hubicka <hubicka@ucw.cz>
38418 * cgraph.h (symtab_node): Add definition_alignment,
38419 can_increase_alignment_p and increase_alignment.
38420 * symtab.c (symtab_node::can_increase_alignment_p,
38421 increase_alignment_1, symtab_node::increase_alignment,
38422 symtab_node::definition_alignment): New.
38423 * tree-vect-data-refs.c (vect_can_force_dr_alignment_p): Use
38424 can_increase_alignment_p.
38425 * tree-vectorizer.c (increase_alignment): Use increase_alignment.
38426 * tree-vect-stmts.c (ensure_base_align): Likewise.
38427 * varasm.c (function_section_1): Use definition_alignment.
38428 (assemble_start_function): Likewise.
38429 (emit_local): likewise.
38430 (build_constant_desc): Likewsie.
38431 (output_constant_def_contents): Likewise.
38432 (place_block_symbol): Likewise.
38433 (output_object_block): Likewise.
38435 2015-03-05 Jan Hubicka <hubicka@ucw.cz>
38438 * tree.c (free_lang_data_in_type): Be sure to keep BINFO_VTABLE
38439 when outputting debug.
38441 2015-03-07 Marek Polacek <polacek@redhat.com>
38442 Martin Uecker <uecker@eecs.berkeley.edu>
38445 * doc/invoke.texi: Update description of -fsanitize=bounds.
38447 2015-03-06 Wilco Dijkstra <wilco.dijkstra@arm.com>
38449 * tree-ssa-phiopt.c (neg_replacement): Remove.
38450 (tree_ssa_phiopt_worker): Remove negate optimization.
38452 2015-03-05 Jan Hubicka <hubicka@ucw.cz>
38455 * value-prof.c (gimple_ic): Pure dead eh edges when needed.
38457 2015-03-06 Richard Biener <rguenther@suse.de>
38459 PR middle-end/64928
38460 * tree-ssa-live.h (struct tree_live_info_d): Add livein_obstack
38461 and liveout_obstack members.
38462 (calculate_live_on_exit): Remove.
38463 (calculate_live_ranges): Change declaration.
38464 * tree-ssa-live.c (liveness_bitmap_obstack): Remove global var.
38465 (new_tree_live_info): Adjust.
38466 (calculate_live_ranges): Delete livein when not wanted.
38467 (calculate_live_ranges): Do not initialize liveness_bitmap_obstack.
38468 Deal with partly deleted live info.
38469 (loe_visit_block): Remove temporary bitmap by using
38470 bitmap_ior_and_compl_into.
38471 (live_worklist): Adjust accordingly.
38472 (calculate_live_on_exit): Make static.
38473 * tree-ssa-coalesce.c (coalesce_ssa_name): Tell calculate_live_ranges
38474 we do not need livein.
38476 2015-03-06 Jonathan Wakely <jwakely@redhat.com>
38478 * real.c (real_from_string): Fix typo in assertion.
38480 2015-03-06 Alex Velenko <alex.velenko@arm.com>
38482 * ChangeLog (2015-03-05): Reflect Richard Henderson as actual author of
38485 2015-03-05 Jan Hubicka <hubicka@ucw.cz>
38487 * ipa-icf.c (sem_variable::equals_wpa): Check FINAL flags.
38489 2015-03-05 Vladimir Makarov <vmakarov@redhat.com>
38492 * lra-assigns.c (find_hard_regno_for): Rename to
38493 find_hard_regno_for_1. Add a new parameter.
38494 (find_hard_regno_for): New function using find_hard_regno_for_1.
38496 2015-03-05 Bernd Edlinger <bernd.edlinger@hotmail.de>
38498 PR rtl-optimization/65067
38499 * expmed.c (store_bit_field, extract_bit_field): Reworked the
38500 strict volatile bitfield handling.
38502 2015-03-05 Martin Liska <mliska@suse.cz>
38505 * ipa-icf.c (sem_variable::equals): Compare variables types.
38507 2015-03-05 Richard Henderson <rth@redhat.com>
38510 * config/arm/arm.c (arm_function_in_section_p): Fix predicate to
38511 correctly check weak symbol binding.
38513 2015-03-05 Steve Ellcey <sellcey@imgtec.com>
38515 PR middle-end/65315
38516 * cfgexpand.c (expand_stack_vars): Update large_align to maximum
38519 2015-03-05 Martin Liska <mliska@suse.cz>
38521 * ipa-inline.c (inline_small_functions): Set default value to
38522 prevent warning during bootstrap.
38523 * tree.h: Add pragma guard that ignores false positives during
38526 2015-03-05 Richard Biener <rguenther@suse.de>
38528 PR tree-optimization/65310
38529 * tree-vect-data-refs.c (vect_compute_data_ref_alignment):
38530 Properly preserve alignment of the base of the access.
38532 2015-03-05 Richard Biener <rguenther@suse.de>
38535 * ipa-icf-gimple.c (func_checker::compare_memory_operand):
38536 Compare dependence info.
38538 2015-03-05 Richard Biener <rguenther@suse.de>
38540 PR middle-end/65233
38541 * ipa-polymorphic-call.c: Include tree-ssa-operands.h and
38543 (walk_ssa_copies): Revert last chage. Instead do not walk
38544 SSA names registered for SSA update.
38546 2015-03-03 Jan Hubicka <hubicka@ucw.cz>
38549 * ipa-icf.c (sem_item::compare_cgraph_references): Compare
38550 vtable references for their containing type.
38551 (sem_function::equals_wpa): Compare TYPE_RESTRICT
38552 and type attributes.
38554 2015-03-04 Eric Botcazou <ebotcazou@adacore.com>
38556 * fold-const.c (round_up_loc): Cast divisor to signed on all paths
38557 before negating it.
38558 * stor-layout.c (finalize_record_size): Revert latest change.
38560 2015-03-04 Andreas Tobler <andreast@gcc.gnu.org>
38562 * config/rs6000/t-freebsd64: Remove 32-bit soft-float multilibs.
38564 2015-03-03 Jan Hubicka <hubicka@ucw.cz>
38566 * cgraph.c (cgraph_node::can_remove_if_no_direct_calls_p): Rewrite
38567 for correct comdat handling.
38568 (cgraph_node::will_be_removed_from_program_if_no_direct_calls_p):
38570 * cgraph.h (call_for_symbol_and_aliases): Fix formating.
38571 (used_from_object_file_p_worker): Remove.
38572 (cgraph_node::only_called_directly_or_alised): Add
38573 used_from_object_file_p.
38574 * ipa-inline-analysis.c (growth_likely_positive): Optimie.
38575 * ipa-inline-transform.c (can_remove_node_now_p_1): Use
38576 can_remove_if_no_direct_calls_and_refs_p.
38578 2015-03-04 Nick Clifton <nickc@redhat.com>
38580 * config/rl78/rl78.h (enum reg_class): Remove real registers from
38581 General register class.
38582 * config/rl78/rl78-real.md: Replace general register constraints
38583 with real+virtual register constraints.
38585 2015-03-04 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
38587 * config/s390/s390.c (s390_expand_builtin): Exlude non-htm builtins
38588 from checking for -mhtm option.
38590 2015-03-03 Jan Hubicka <hubicka@ucw.cz>
38592 * tree-sra.c (convert_callers): Use call_for_symbol_and_aliases.
38593 (struct ipa_sra_check_caller_data): Add has_thunk field.
38594 (ipa_sra_check_caller): Check for thunk.
38595 (ipa_sra_preliminary_function_checks): Give up on function with
38597 (ipa_early_sra): Use call_for_symbol_and_aliases.
38599 2015-03-03 Kaz Kojima <kkojima@gcc.gnu.org>
38602 * config/sh/sh.md (symGOT_load): Use R0 reg for operands[2] when
38603 called for __stack_chk_guard symbol.
38605 2015-03-03 DJ Delorie <dj@redhat.com>
38607 * config/rl78/rl78-real.md (*addqi_real): Allow SADDR types for
38609 (*addhi3_real): Likewise.
38610 * config/rl78/rl78-virt.md (*inc<mode>3_virt): Additional
38611 pattern to match incrementing memory.
38612 * config/rl78/predicates.md (rl78_1_2_operand): New.
38613 * config/rl78/rl78.c (rl78_force_nonfar_3): Allow far mem-mem if
38614 it's the same and only mem.
38615 (rl78_alloc_physical_registers_op2): If there's effectively only
38616 one MEM, transcode it into HL.
38617 (rl78_far_p): Reject addresses that aren't legitimate.
38619 2015-03-03 Eric Botcazou <ebotcazou@adacore.com>
38621 * fold-const.c (round_up_loc): Cast divisor to HOST_WIDE_INT before
38624 * tree-sra.c (pa_sra_preliminary_function_checks): Fix typo in message.
38626 2015-03-03 Max Filippov <jcmvbkbc@gmail.com>
38628 Implement call0 ABI for xtensa
38629 * config/xtensa/constraints.md ("a" constraint): Include stack
38630 pointer in case of call0 ABI.
38631 ("q" constraint): Make empty in case of call0 ABI.
38632 ("D" constraint): Include stack pointer in case of call0 ABI.
38633 * config/xtensa/xtensa-protos.h (xtensa_set_return_address,
38634 xtensa_expand_epilogue, xtensa_regno_to_class): Add new function
38636 * config/xtensa/xtensa.c (xtensa_callee_save_size): New
38638 (xtensa_regno_to_class): Make it a local variable in the
38639 function xtensa_regno_to_class.
38640 (xtensa_function_epilogue, TARGET_ASM_FUNCTION_EPILOGUE): Remove
38641 macro, function prototype and implementation.
38642 (reg_nonleaf_alloc_order): Make it a local variable in the
38643 function order_regs_for_local_alloc.
38644 (xtensa_conditional_register_usage): New function.
38645 (TARGET_CONDITIONAL_REGISTER_USAGE): Define macro.
38646 (xtensa_valid_move): Allow direct moves to stack pointer
38647 register in call0 ABI.
38648 (xtensa_setup_frame_addresses): Only spill register windows in
38650 (xtensa_emit_call): Emit call(x)8 or call(x)0 in windowed and
38651 call0 ABI respectively.
38652 (xtensa_function_arg_1): Only mark a7 register for copying in
38654 (xtensa_call_save_reg): New function.
38655 (compute_frame_size): Add space for callee saved register
38656 storage to the frame size in call0 ABI.
38657 (xtensa_expand_prologue): Generate code to set up stack frame
38658 and save callee-saved registers in call0 ABI.
38659 (xtensa_expand_epilogue): New function.
38660 (xtensa_set_return_address): New function.
38661 (xtensa_return_addr): Calculate return address in call0 ABI.
38662 (xtensa_builtin_saveregs): Only mark a7 register for copying and
38663 emit copying code in windowed ABI.
38664 (order_regs_for_local_alloc): Add preferred register allocation
38665 order for non-leaf function in call0 ABI.
38666 (xtensa_static_chain): Add atatic chain passing for call0 ABI.
38667 (xtensa_asm_trampoline_template): Add trampoline generation for
38669 (xtensa_trampoline_init): Add trampoline initialization for
38671 (xtensa_conditional_register_usage, xtensa_regno_to_class): New
38673 * config/xtensa/xtensa.h (TARGET_WINDOWED_ABI): New macro.
38674 (TARGET_CPU_CPP_BUILTINS): Add built-in define for call0 ABI.
38675 (CALL_USED_REGISTERS): Modify to encode both windowed and call0
38676 ABI call-used registers.
38677 (HARD_FRAME_POINTER_REGNUM): Add frame pointer for call0 ABI.
38678 (INCOMING_REGNO, OUTGOING_REGNO): Use argument unchanged in
38680 (REG_CLASS_CONTENTS): Include all registers into the preferred
38681 reload registers set, adjust the set in the
38682 xtensa_conditional_register_usage.
38683 (xtensa_regno_to_class): Drop variable declaration.
38684 (REGNO_REG_CLASS): Redefine to use xtensa_regno_to_class
38686 (WINDOW_SIZE): Define as 8 or 0 for windowed and call0 ABI
38688 (FUNCTION_PROFILER): Add _mcount call for call0 ABI.
38689 (TRAMPOLINE_SIZE): Define trampoline size for call0 ABI.
38690 (RETURN_ADDR_IN_PREVIOUS_FRAME): Define to 0 in call0 ABI.
38691 (ASM_OUTPUT_POOL_PROLOGUE): Always generate literal pool
38692 location in call0 ABI.
38693 (EH_RETURN_STACKADJ_RTX): New definition, use a10 for passing
38694 stack adjustment size when handling exception.
38695 (CRT_CALL_STATIC_FUNCTION): Add definition for call0 ABI.
38696 * config/xtensa/xtensa.md (A9_REG, UNSPECV_BLOCKAGE): New
38698 ("return" pattern): Generate ret.n/ret in call0 ABI.
38699 ("epilogue" pattern): Expand epilogue.
38700 ("nonlocal_goto" pattern): Use default in call0 ABI.
38701 ("eh_return" pattern): Move implementation to eh_set_a0_windowed,
38702 emit eh_set_a0_* depending on ABI.
38703 ("eh_set_a0_windowed" pattern): Former eh_return pattern.
38704 ("eh_set_a0_call0", "blockage"): New patterns.
38706 2015-03-03 Martin Liska <mliska@suse.cz>
38709 * ipa-icf.c (sem_variable::parse): Skip all alias variables.
38711 2015-03-03 Michael Meissner <meissner@linux.vnet.ibm.com>
38714 * config/rs6000/rs6000-tables.opt: Regenerate table.
38716 2015-03-03 Renlin Li <renlin.li@arm.com>
38718 * doc/md.texi (@item ^): Change ? into ^.
38720 2015-03-03 H.J. Lu <hongjiu.lu@intel.com>
38722 * doc/tm.texi: Regenerated.
38724 2015-03-03 Max Filippov <jcmvbkbc@gmail.com>
38726 * builtins.c (expand_builtin_return_addr): Add
38727 RETURN_ADDR_IN_PREVIOUS_FRAME to 'if' condition, remove
38728 surrounding #ifdef.
38729 * config/sparc/sparc.h (RETURN_ADDR_IN_PREVIOUS_FRAME): Change
38731 * config/xtensa/xtensa.h (RETURN_ADDR_IN_PREVIOUS_FRAME):
38733 * defaults.h (RETURN_ADDR_IN_PREVIOUS_FRAME): Define to 0 if
38735 * doc/tm.texi.in (RETURN_ADDR_IN_PREVIOUS_FRAME): Update
38738 2015-03-03 Martin Jambor <mjambor@suse.cz>
38739 Eric Botcazou <ebotcazou@adacore.com>
38741 * tree-sra.c (ipa_sra_check_caller_data): New type.
38742 (has_caller_p): Removed.
38743 (ipa_sra_check_caller): New function.
38744 (ipa_sra_preliminary_function_checks): Use it.
38746 2015-03-03 Martin Liska <mliska@suse.cz>
38748 * ipa-icf.c (sem_item_optimizer::merge_classes): Use bit or
38749 instead of if branch.
38751 2015-03-03 Martin Liska <mliska@suse.cz>
38754 * ipa-icf.c (sem_variable::equals): Fix wrong condition.
38756 2015-03-23 Jeff Law <law@redhat.com>
38758 PR tree-optimization/65241
38759 * tree-ssa-dom.c (lookup_avail_expr): Only modify the avail_expr
38760 hash table if INSERT is true.
38762 2015-03-03 Georg-Johann Lay <avr@gjlay.de>
38765 * config.gcc (extra_gcc_objs) [avr-*-rtems*]: Remove.
38767 2015-03-03 Georg-Johann Lay <avr@gjlay.de>
38770 * config/avr/avr.c (context.h, tree-pass.h): Include them.
38771 (avr_pass_data_recompute_notes): New static variable.
38772 (avr_pass_recompute_notes): New class.
38773 (avr_register_passes): New static function.
38774 (avr_option_override): Call it.
38776 2015-03-03 Georg-Johann Lay <avr@gjlay.de>
38778 Fix various problems with specs file generation.
38781 * config.gcc (extra_gcc_objs) [avr]: Remove.
38782 * config/avr/driver-avr.c: Remove file.
38783 * config/avr/t-avr (driver-avr.o): Remove rule.
38784 (gen-avr-mmcu-specs): Use CXX_FOR_BUILD, CXXFLAGS_FOR_BUILD and
38785 INCLUDES to build. Depend on TM_H.
38786 * config/avr/gen-avr-mmcu-specs.c: Tidy up code. Fix various
38787 build warnings. Fix non-matching types and non-existing %-codes.
38789 (*lib) [!WITH_AVRLIBC]: Don't link libdev.a.
38790 (*libgcc) [WITH_AVRLIBC]: Add "-lm".
38791 * config/avr/avrlibc.h (LIBGCC_SPEC): Remove definition.
38792 * config/avr/avr.h (DRIVER_SELF_SPECS): Fix handling of -march=.
38793 (CPP_SPEC, CC1PLUS_SPEC, ASM_SPEC, LINK_SPEC, LIB_SPEC)
38794 (LIBGCC_SPEC): Remove definitions.
38796 2015-03-03 Eric Botcazou <ebotcazou@adacore.com>
38798 * config/ia64/ia64.c (expand_vec_perm_interleave_2): Use gen_raw_REG
38799 to create a register in testing mode.
38801 2015-03-03 Martin Liska <mliska@suse.cz>
38802 Jan Hubicka <hubicka@ucw.cz>
38805 * cgraph.c (cgraph_node::has_thunk_p): New function.
38806 * cgraph.h (cgraph_node::has_thunk_p: Likewise.
38807 * ipa-icf.c (redirect_all_callers): Do not redirect thunks.
38808 (sem_function::merge): Assert is changed.
38810 2015-03-03 Martin Liska <mliska@suse.cz>
38811 Martin Jambor <mjambor@suse.cz>
38814 * ipa-icf.c (sem_item_optimizer::execute): Change function
38815 return value to boolean.
38816 (sem_item_optimizer::merge_classes): Likewise.
38817 (ipa_icf_driver): Return TODO_remove_functions in case there's
38818 a merge operation processed.
38819 * ipa-icf.h: Change function return value to boolean.
38821 2015-03-02 Michael Meissner <meissner@linux.vnet.ibm.com>
38824 * config/rs6000/rs6000-cpus.def (powerpc64le): Add new generic
38825 processor type for 64-bit little endian PowerPC.
38827 * config/rs6000/rs6000.c (rs6000_option_override_internal): If
38828 -mdebug=reg, print TARGET_DEFAULT. Fix logic to use
38829 TARGET_DEFAULT if there is no default cpu. Fix -mdebug=reg
38830 printing built-in mask so it does not pass NULL pointers.
38832 * doc/invoke.texi (IBM RS/6000 and PowerPC options): Document
38835 2015-03-02 Steve Ellcey <sellcey@imgtec.com>
38838 * config/mips/mips.md (mov<mode>cc): Change ISA_HAS_SEL check to
38839 !ISA_HAS_FP_CONDMOVE.
38841 2015-03-02 Aldy Hernandez <aldyh@redhat.com>
38843 * config/i386/i386.md (*udivmod<mode>4_pow2): Remove
38846 2015-03-02 Ulrich Drepper <drepper@gmail.com>
38848 * doc/invoke.texi (Options for Code Generation Conventions):
38849 Fix URL of DSO paper.
38851 2015-03-02 Jan Hubicka <hubicka@ucw.cz>
38854 * ipa-inline.c (check_callers): Looks for recursion.
38855 (inline_to_all_callers): Give up on uninlinable or recursive edges.
38856 * ipa-inline-analysis.c (inline_summary_t::duplicate): Do not update
38857 summary of inline clones.
38858 (do_estimate_growth_1): Fix recursion check.
38860 2015-03-02 Jan Hubicka <hubicka@ucw.cz>
38863 * ipa-inline-transform.c (clone_inlined_nodes): Do not dissolve
38866 2015-03-02 Jan Hubicka <hubicka@ucw.cz>
38867 Aldy Hernandez <aldyh@redhat.com>
38870 * ipa-devirt.c (add_type_duplicate): Remove odr_violated assert
38871 when checking TYPE_BINFO.
38873 2015-03-02 Richard Biener <rguenther@suse.de>
38876 * ipa-icf-gimple.c: Include builtins.h.
38877 (func_checker::compare_memory_operand): Compare base alignment.
38879 2015-03-02 Ilya Enkovich <ilya.enkovich@intel.com>
38882 * config/i386/i386.c (ix86_pass_by_reference): Bounds are never
38883 passed by reference.
38885 2015-03-02 Ilya Enkovich <ilya.enkovich@intel.com>
38888 * tree-chkp.c (chkp_check_lower): Don't check against
38889 zero bounds for already instrumented functions.
38890 (chkp_check_upper): Likewise.
38891 (chkp_fini): Clean pass local data to avoid wrong reusage.
38893 2015-02-28 Martin Liska <mliska@suse.cz>
38894 Jan Hubicka <hubicka@ucw.cz>
38896 * ipa-icf.c (sem_variable::equals): Improve debug output;
38897 get variable constructor.
38898 (sem_variable::parse): Do not filter out too early; give up on
38899 volatile and register vars.
38900 (sem_item_optimizer::filter_removed_items): Filter out nonreadonly
38902 * ipa-icf.h (sem_variable::init): Do not set ctor.
38903 (sem_variable::ctor): Remove.
38905 2015-03-01 Aldy Hernandez <aldyh@redhat.com>
38907 PR middle-end/65233
38908 * ipa-polymorphic-call.c (walk_ssa_copies): Handle empty PHIs.
38910 2015-02-28 Jan Hubicka <hubicka@ucw.cz>
38912 * ipa-icf.c: Include stor-layout.h
38913 (sem_function::compare_cgraph_references): Rename to ...
38914 (sem_item::compare_cgraph_references): ... this one.
38915 (sem_variable::equals_wpa): New function
38916 (sem_variable::equals): Do not check stuff already verified by
38918 (sem_variable::equals): Reorg based on varasm.c:compare_constant.
38919 * ipa-icf.h (sem_item): Add compare_cgraph_references.
38920 (sem_function): Remove compare_cgraph_references.
38921 (sem_variable): Turns equals_wpa into non-inline.
38923 2015-02-28 Jan Hubicka <hubicka@ucw.cz>
38925 * ipa-icf.c (sem_function::init): Fix formating; skip GIMPLE_PREDICT.
38926 (sem_item::add_expr): New function.
38927 (sem_function::hash_stmt): Handle operands of most statements.
38928 (sem_variable::get_hash): Hash the actual constructor.
38929 * ipa-icf.h (sem_item): Add add_expr.
38930 (sem_function): Update prototype of hash_stmt
38932 2015-02-28 Martin Liska <mliska@suse.cz>
38933 Jan Hubicka <hubicka@ucw.cz>
38936 * ipa-icf-gimple.c (func_checker::compare_function_decl):
38938 (func_checker::compare_variable_decl): Skip symtab vars.
38939 (func_checker::compare_cst_or_decl): Update.
38940 * ipa-icf.c (sem_function::parse): Do not consider aliases.
38941 (sem_function::compare_cgraph_references): Add ADDRESS parameter;
38942 use correct symtab predicates.
38943 (sem_function::equals_wpa): Update uses of compare_cgraph_references.
38944 (sem_variable::parse): Update comment.
38945 (sem_item_optimizer::build_graph): Consider ultimate aliases
38948 2015-02-28 Jan Hubicka <hubicka@ucw.cz>
38950 * ipa-icf-gimple.c (func_checker::compare_operand): Fix handling
38953 2015-02-28 Jan Hubicka <hubicka@ucw.cz>
38955 * ipa-icf.c (sem_function::merge): Fix handling of COMDAT.
38956 (sem_variable::merge) Likewise.
38958 2015-02-28 Jan Hubicka <hubicka@ucw.cz>
38960 * ipa-inline.c (can_inline_edge_p): Match opt_for_fn on inline
38961 target; also match flag_ipa_devirt.
38963 2015-03-01 Martin Liska <mliska@suse.cz>
38964 Jan Hubicka <hubicka@ucw.cz>
38966 * ipa-icf-gimple.c (func_checker::compare_variable_decl):
38967 Validate variable alignment.
38968 * ipa-icf.c (sem_function::equals_private): Be more precise
38969 about non-common function attributes.
38970 (sem_variable::equals): Likewise.
38972 2015-02-28 Jan Hubicka <hubicka@ucw.cz>
38975 * ipa-icf.c (sem_function::merge): Do not attempt to produce alias
38976 across COMDAT group boundary.
38978 2015-02-28 Jan Hubicka <hubicka@ucw.cz>
38981 * ipa-icf.c (clear_decl_rtl): New function.
38982 (sem_function::merge): Clear RTL before forming alias.
38983 (sem_variable::merge): Clear RTL before forming alias.
38985 2015-02-28 Jan Hubicka <hubicka@ucw.cz>
38988 * cgraphunit.c (cgraph_node::expand_thunk): Enable return slot opt.
38990 2015-02-28 Xingxing Pan <xxingpan@marvell.com>
38992 * config/aarch64/aarch64.md: (mov<mode>_aarch64): Change type
38995 2015-02-27 Vladimir Makarov <vmakarov@redhat.com>
38997 * params.def (PARAM_LRA_INHERITANCE_EBB_PROBABILITY_CUTOFF): Fix
38998 a typo in the description.
39000 2015-02-27 Vladimir Makarov <vmakarov@redhat.com>
39003 * params.def (PARAM_LRA_INHERITANCE_EBB_PROBABILITY_CUTOFF): New.
39004 * params.h (LRA_INHERITANCE_EBB_PROBABILITY_CUTOFF): New.
39005 * lra-constraints.c: Include "params.h".
39006 (EBB_PROBABILITY_CUTOFF): Use
39007 LRA_INHERITANCE_EBB_PROBABILITY_CUTOFF.
39008 (lra_inheritance): Use '<' instead of '<=' for
39009 EBB_PROBABILITY_CUTOFF.
39010 * doc/invoke.texi (lra-inheritance-ebb-probability-cutoff):
39013 2015-02-27 Martin Liska <mliska@suse.cz>
39015 * ipa-icf.h (struct symbol_compare_hashmap_traits): Add missing
39016 vector length condition.
39018 2015-02-27 Sandra Loosemore <sandra@codesourcery.com>
39020 * doc/extend.texi (x86 transactional memory intrinsics):
39021 Reorganize discussion of _xbegin. Clarify that the return
39022 value is a bit mask. Expand example and move to end of section.
39024 2015-02-26 Jakub Jelinek <jakub@redhat.com>
39025 Aldy Hernandez <aldyh@redhat.com>
39027 PR rtl-optimization/65220
39028 * config/i386/i386.md (*udivmod<mode>4_pow2): New.
39030 2015-02-27 Vladimir Makarov <vmakarov@redhat.com>
39033 * lra-remat.c (update_scratch_ops): New.
39034 (do_remat): Call it.
39035 * lra.c (lra_register_new_scratch_op): New. Take code from ...
39036 (remove_scratches): ... here.
39037 * lra-int.h (lra_register_new_scratch_op): New prototype.
39039 2015-02-27 Marek Polacek <polacek@redhat.com>
39042 * doc/invoke.texi: Update to reflect that -Wformat=2 doesn't enable
39043 -Wformat-signedness anymore.
39045 2015-02-27 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
39047 * config/s390/s390.c: (s390_atomic_assign_expand_fenv): New
39049 (TARGET_ATOMIC_ASSIGN_EXPAND_FENV): Define macro.
39051 2015-02-27 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
39053 * config/s390/s390.c (enum s390_builtin):
39054 Add S390_BUILTIN_S390_SFPC and S390_BUILTIN_S390_EFPC.
39055 (code_for_builtin): Add CODE_FOR_s390_sfpc and CODE_FOR_s390_efpc.
39056 (s390_init_builtins): Generate new builtin functions.
39057 * config/s390/s390.md (UNSPECV_SFPC, UNSPECV_EFPC): New constants.
39058 (s390_sfpc, s390_efpc): New pattern definitions.
39060 2015-02-27 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
39062 * config/s390/s390.c: (enum s390_builtin, s390_expand_builtin):
39063 Rename S390_BUILTIN_max to S390_BUILTIN_MAX.
39064 (s390_builtin_decls): New array.
39065 (s390_init_builtins): Put builtin decls into s390_builtin_decls.
39066 (s390_builtin_decl): New function.
39067 (TARGET_BUILTIN_DECL): Define macro.
39069 2015-02-27 Richard Biener <rguenther@suse.de>
39071 PR middle-end/63175
39072 * builtins.c (get_object_alignment_2): Make sure to re-apply
39073 the ANDed mask after recursing to its operand gets us a new
39074 misalignment bit position.
39076 2015-02-26 Jan Hubicka <hubicka@ucw.cz>
39077 Martin Liska <mliska@suse.cz>
39080 * ipa-icf.c (symbol_compare_collection::symbol_compare_colleciton):
39081 Use address_matters_p.
39082 (redirect_all_callers, set_addressable): New functions.
39083 (sem_function::merge): Reorganize and fix merging issues.
39084 (sem_variable::merge): Likewise.
39085 (sem_variable::compare_sections): Remove.
39086 * common.opt (fmerge-all-constants, fmerge-constants): Remove
39088 * symtab.c (symtab_node::resolve_alias): When alias has aliases,
39090 (symtab_node::make_decl_local): Set ADDRESSABLE bit when
39092 (address_matters_1): New function.
39093 (symtab_node::address_matters_p): New function.
39094 * cgraph.c (cgraph_edge::verify_corresponds_to_fndecl): Fix
39095 check for merged flag.
39096 * cgraph.h (address_matters_p): Declare.
39097 (symtab_node::address_taken_from_non_vtable_p): Remove.
39098 (symtab_node::address_can_be_compared_p): New method.
39099 (ipa_ref::address_matters_p): Move here from ipa-ref.c; simplify.
39100 * ipa-visibility.c (symtab_node::address_taken_from_non_vtable_p):
39102 (comdat_can_be_unshared_p_1) Use address_matters_p.
39103 (update_vtable_references): Fix formating.
39104 * ipa-ref.c (ipa_ref::address_matters_p): Move inline.
39105 * cgraphunit.c (cgraph_node::create_wrapper): Drop UNINLINABLE flag.
39106 * cgraphclones.c: Preserve merged and icf_merged flags.
39108 2015-02-26 Sandra Loosemore <sandra@codesourcery.com>
39110 * doc/extend.texi (Function Attributes): Fix spelling and typos.
39111 (Label Attributes): Likewise.
39112 (Cilk Plus Builtins): Likewise.
39113 (ARC SIMD Built-in Functions): Likewise.
39114 (ARM C Language Extensions (ACLE)): Likewise.
39115 (PowerPC Built-in Functions): Likewise.
39116 (PowerPC Hardware Transactional Memory Built-in Functions):
39119 2015-02-26 Jakub Jelinek <jakub@redhat.com>
39121 PR tree-optimization/65216
39122 * tree-ssa-reassoc.c (rewrite_expr_tree): Force creation of
39123 new stmt and new SSA_NAME for lhs whenever the arguments have
39124 changed and weren't just swapped. Fix comment typo.
39126 PR tree-optimization/65215
39127 * tree-ssa-math-opts.c (find_bswap_or_nop_load): Return false
39128 for PDP endian targets.
39129 (perform_symbolic_merge, find_bswap_or_nop_1, find_bswap_or_nop):
39130 Fix up formatting issues.
39131 (bswap_replace): Likewise. For BYTES_BIG_ENDIAN, if the final access
39132 size is smaller than the original, adjust MEM_REF offset by the
39133 difference of sizes. Use is_gimple_mem_ref_addr instead of
39134 is_gimple_min_invariant test to avoid adding address temporaries.
39136 2015-02-26 Martin Liska <mliska@suse.cz>
39137 Jan Hubicka <hubicka@ucw.cz>
39140 * ipa-icf.c (symbol_compare_collection::symbol_compare_collection): New.
39141 (sem_item_optimizer::subdivide_classes_by_sensitive_refs): New function.
39142 (sem_item_optimizer::process_cong_reduction): Include division by
39143 sensitive references.
39144 * ipa-icf.h (struct symbol_compare_hashmap_traits): New class.
39145 * ipa-ref.c (ipa_ref::address_matters_p): New function.
39146 * ipa-ref.h (ipa_ref::address_matters_p): Likewise.
39148 2015-02-26 Georg-Johann Lay <avr@gjlay.de>
39151 * config/avr/avr-protos.h (tiny_valid_direct_memory_access_range):
39153 * config/avr/avr.c: Same.
39154 (avr_legitimate_address_p) <AVR_TINY, CONSTANT_ADDRESS_P>:
39155 Refuse any constant address not in 0..0xbf.
39156 * config/avr/avr.md (*mov<mode>, *movsf): Remove
39157 tiny_valid_direct_memory_access_range from insn conditions.
39158 (mov<mode>): Don't special-case expansion of avrtiny addresses.
39160 2015-02-26 Oleg Endo <olegendo@gcc.gnu.org>
39163 * config/sh/sh.c (sh_check_add_incdec_notes): New function.
39164 * config/sh/sh-protos.h (sh_check_add_incdec_notes): Declare it.
39165 * config/sh/predicates.md (const_logical_operand): New predicate.
39166 * config/sh/sh.md: Add new peephole2 patterns.
39168 2015-02-26 Marek Polacek <polacek@redhat.com>
39171 * ipa-inline.c (early_inliner): Recompute inline parameters.
39173 2015-02-26 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
39176 * config/rs6000/rs6000.c (rs6000_analyze_swaps): Ensure
39177 instructions with TImode operands are included in the analysis.
39179 2015-02-26 Sebastian Pop <s.pop@samsung.com>
39181 * tree-ssa-threadupdate.c (dump_jump_thread_path): Print all edges
39182 of an EDGE_FSM_THREAD.
39184 2015-02-25 Adhemerval Zanella <azanella@linux.vnet.ibm.com>
39186 * config/rs6000/htm.md (tcheck): Fix assembly encoding.
39188 2015-02-25 Aldy Hernandez <aldyh@redhat.com>
39191 * dwarf2out.c (dwarf2out_init): Disable -feliminate-dwarf2-dups.
39193 2015-02-26 Sebastian Pop <s.pop@samsung.com>
39195 PR tree-optimization/65048
39196 * tree-ssa-threadupdate.c (valid_jump_thread_path): New.
39197 (thread_through_all_blocks): Call valid_jump_thread_path.
39198 Remove invalid FSM jump-thread paths.
39200 2015-02-26 Jakub Jelinek <jakub@redhat.com>
39202 * passes.c (ipa_write_summaries_1): Call lto_output_init_mode_table.
39203 (ipa_write_optimization_summaries): Likewise.
39204 * tree-streamer.h: Include data-streamer.h.
39205 (streamer_mode_table): Declare extern variable.
39206 (bp_pack_machine_mode, bp_unpack_machine_mode): New inline functions.
39207 * lto-streamer-out.c (lto_output_init_mode_table,
39208 lto_write_mode_table): New functions.
39209 (produce_asm_for_decls): Call lto_write_mode_table when streaming
39211 * lto-section-in.c (lto_section_name): Add "mode_table" entry.
39212 (lto_create_simple_input_block): Add mode_table argument to the
39213 lto_input_block constructors.
39214 * ipa-prop.c (ipa_prop_read_section, read_replacements_section):
39216 * data-streamer-in.c (string_for_index): Likewise.
39217 * ipa-inline-analysis.c (inline_read_section): Likewise.
39218 * ipa-icf.c (sem_item_optimizer::read_section): Likewise.
39219 * lto-cgraph.c (input_cgraph_opt_section): Likewise.
39220 * lto-streamer-in.c (lto_read_body_or_constructor,
39221 lto_input_toplevel_asms): Likewise.
39222 (lto_input_mode_table): New function.
39223 * tree-streamer-out.c (pack_ts_fixed_cst_value_fields,
39224 pack_ts_decl_common_value_fields, pack_ts_type_common_value_fields):
39225 Use bp_pack_machine_mode.
39226 * real.h (struct real_format): Add name field.
39227 * lto-streamer.h (enum lto_section_type): Add LTO_section_mode_table.
39228 (class lto_input_block): Add mode_table member.
39229 (lto_input_block::lto_input_block): Add mode_table_ argument,
39230 initialize mode_table.
39231 (struct lto_file_decl_data): Add mode_table field.
39232 (lto_input_mode_table, lto_output_init_mode_table): New prototypes.
39233 * tree-streamer-in.c (unpack_ts_fixed_cst_value_fields,
39234 unpack_ts_decl_common_value_fields,
39235 unpack_ts_type_common_value_fields): Call bp_unpack_machine_mode.
39236 * tree-streamer.c (streamer_mode_table): New variable.
39237 * real.c (ieee_single_format, mips_single_format,
39238 motorola_single_format, spu_single_format, ieee_double_format,
39239 mips_double_format, motorola_double_format,
39240 ieee_extended_motorola_format, ieee_extended_intel_96_format,
39241 ieee_extended_intel_128_format, ieee_extended_intel_96_round_53_format,
39242 ibm_extended_format, mips_extended_format, ieee_quad_format,
39243 mips_quad_format, vax_f_format, vax_d_format, vax_g_format,
39244 decimal_single_format, decimal_double_format, decimal_quad_format,
39245 ieee_half_format, arm_half_format, real_internal_format): Add name
39247 * config/pdp11/pdp11.c (pdp11_f_format, pdp11_d_format): Likewise.
39249 2015-02-26 Yuri Rumyantsev <ysrumyan@gmail.com>
39252 * config/i386/i386.c (ix86_sched_reorder): Skip instruction
39253 reordering for selective scheduling.
39255 2015-02-26 Terry Guo <terry.guo@arm.com>
39257 * config/arm/arm-cores.def (cortex-m7): Add flag FL_NO_VOLATILE_CE.
39258 * config/arm/arm-protos.h (FL_NO_VOLATILE_CE): New flag.
39259 (arm_arch_no_volatile_ce): Declare new global variable.
39260 * config/arm/arm.c (arm_arch_no_volatile_ce): New global variable.
39261 (arm_option_override): Assign value to arm_arch_no_volatile_ce.
39262 * config/arm/arm.h (arm_arch_no_volatile_ce): Declare it.
39263 (TARGET_NO_VOLATILE_CE): New macro.
39264 * config/arm/arm.md (arm_comparison_operator): Disabled if not allow
39265 volatile memory access in IT block
39267 2015-02-25 Kai Tietz <ktietz@redhat.com>
39269 PR tree-optimization/61917
39270 * tree-vect-loop.c (vectorizable_reduction): Handle obvious case
39271 that reduc_def_stmt is null.
39273 2015-02-25 Martin Liska <mliska@suse.cz>
39275 * ipa-icf-gimple.c (func_checker::compare_variable_decl): Compare
39276 hard register variables.
39278 2015-02-25 Kai Tietz <ktietz@redhat.com>
39281 * symtab.c (symtab::make_decl_local): Set DECL_IMPORT_P explicit to 0.
39282 (symtab::noninterposable_alias): Likewise.
39284 2015-02-25 Ilya Enkovich <ilya.enkovich@intel.com>
39287 * config/i386/i386.c (ix86_function_arg_regno_p): Support
39289 (avoid_func_arg_motion): Add dependencies for BNDSTX insns.
39291 2015-02-25 Alan Lawrence <alan.lawrence@arm.com>
39294 * config/aarch64/aarch64.md (*xor_one_cmpl<mode>3): Use FP_REGNUM_P
39295 as split condition; force split via '#' in output pattern.
39297 2015-02-25 Richard Biener <rguenther@suse.de>
39298 Kai Tietz <ktietz@redhat.com>
39300 PR tree-optimization/61917
39301 * tree-vect-loop.c (vectorizable_reduction): Allow
39302 vect_internal_def without reduction to exit graceful.
39304 2015-02-25 Georg-Johann Lay <avr@gjlay.de>
39307 * config/avr/avr.c (avr_adjust_insn_length): Call recog_memoized
39308 only with NONDEBUG_INSN_P.
39310 2015-02-25 Georg-Johann Lay <avr@gjlay.de>
39312 Use variadic macros with avr-log.c.
39314 * config/avr/avr-protos.h (avr_vdump): New prototype.
39315 (avr_log_set_caller_e, avr_log_set_caller_f): Remove protos.
39316 (avr_edump, avr_fdump, avr_dump): (Re)define to use avr_vdump.
39317 * config/avr/avr-log.c: Adjust comments.
39318 (avr_vdump): New function.
39319 (avr_vadump): Pass caller as 2nd argument instead of format string.
39320 (avr_log_caller, avr_log_fdump_e, avr_log_fdump_f)
39321 (avr_log_set_caller_e, avr_log_set_caller_f): Remove.
39323 2015-02-25 Jakub Jelinek <jakub@redhat.com>
39326 * target.def (target_option_stream_in): New target hook.
39327 * tree-streamer-in.c (streamer_read_tree_bitfields): Invoke
39328 targetm.target_option.post_stream_in if non-NULL.
39329 * doc/tm.texi.in: Add @hook TARGET_OPTION_POST_STREAM_IN.
39330 * doc/tm.texi: Updated.
39331 * config/i386/i386.c (ix86_function_specific_post_stream_in): New
39333 (TARGET_OPTION_POST_STREAM_IN): Redefine.
39335 2015-02-24 Jeff Law <law@redhat.com>
39338 * config/xtensa/xtensa.md (zero_cost_loop_start): Reverse numbering
39339 of operand 0 and operand 2.
39340 (zero_cost_loop_end, loop_end): Similarly.
39342 2015-02-24 Aldy Hernandez <aldyh@redhat.com>
39344 * gimple.h (gimple_build_assign): Rename CXX_MEM_STAT_DECL to
39347 2015-02-24 DJ Delorie <dj@redhat.com>
39349 * config/rl78/rl78-protos.h (rl78_split_movsi): Accept a mode as well.
39350 * config/rl78/rl78-expand.md (movsf): New, same as movsi.
39351 * config/rl78/rl78.c (rl78_split_movsi): Accept a mode, use it
39352 instead of hardcoding SImode.
39354 2015-02-24 Bernd Schmidt <bernds@codesourcery.com>
39356 * omp-low.c (create_omp_child_function): Tag entrypoint
39357 functions with a special attribute.
39359 2015-02-24 Michael Haubenwallner <michael.haubenwallner@ssi-schaefer.com>
39362 * config/rs6000/xcoff.h (ASM_OUTPUT_EXTERNAL): Drop unused variable.
39364 2015-02-24 Vladimir Makarov <vmakarov@redhat.com>
39366 PR rtl-optimization/65123
39367 * lra-remat.c (operand_to_remat): Check hard regs in insn
39370 2015-02-24 Nick Clifton <nickc@redhat.com>
39372 * config/v850/v850.h (ASM_SPEC): Pass -msoft-float/-mhard-float on
39375 2015-02-24 Thomas Schwinge <thomas@codesourcery.com>
39378 * omp-builtins.def (BUILT_IN_GOACC_DATA_START): Specify as
39379 BT_FN_VOID_INT_SIZE_PTR_PTR_PTR, not
39380 BT_FN_VOID_INT_PTR_SIZE_PTR_PTR_PTR.
39381 (BUILT_IN_GOACC_ENTER_EXIT_DATA, BUILT_IN_GOACC_UPDATE): Specify as
39382 BT_FN_VOID_INT_SIZE_PTR_PTR_PTR_INT_INT_VAR, not
39383 BT_FN_VOID_INT_PTR_SIZE_PTR_PTR_PTR_INT_INT_VAR.
39384 (BUILT_IN_GOACC_PARALLEL): Specify as
39385 BT_FN_VOID_INT_OMPFN_SIZE_PTR_PTR_PTR_INT_INT_INT_INT_INT_VAR, not
39386 BT_FN_VOID_INT_OMPFN_PTR_SIZE_PTR_PTR_PTR_INT_INT_INT_INT_INT_VAR.
39387 * builtin-types.def
39388 (BT_FN_VOID_INT_PTR_SIZE_PTR_PTR_PTR_INT_INT_VAR)
39389 (BT_FN_VOID_INT_OMPFN_PTR_SIZE_PTR_PTR_PTR_INT_INT_INT_INT_INT_VAR):
39390 Remove function types.
39391 (BT_FN_VOID_INT_SIZE_PTR_PTR_PTR)
39392 (BT_FN_VOID_INT_SIZE_PTR_PTR_PTR_INT_INT_VAR)
39393 (BT_FN_VOID_INT_OMPFN_SIZE_PTR_PTR_PTR_INT_INT_INT_INT_INT_VAR):
39394 New function types.
39396 2015-02-24 Georg-Johann Lay <avr@gjlay.de>
39398 * config/avr/stdfix.h [__WITH_AVRLIBC__]: Include <stdfix-avrlibc.h>.
39400 2015-02-24 Jakub Jelinek <jakub@redhat.com>
39402 PR tree-optimization/65170
39403 * wide-int.cc (wi::mul_internal): For the umul_ppmm optimization,
39404 if val[1] < 0, clear also val[2] and return 3.
39406 2015-02-24 Alan Modra <amodra@gmail.com>
39409 * config/rs6000/rs6000.c (get_memref_parts): Only return true
39410 when *base is a reg. Handle nested plus addresses. Simplify
39413 2015-02-22 Max Filippov <jcmvbkbc@gmail.com>
39415 * config/xtensa/xtensa.h (CONSTANT_ALIGNMENT, DATA_ALIGNMENT):
39416 use natural alignment when optimizing for size.
39418 2015-02-23 Kaz Kojima <kkojima@gcc.gnu.org>
39421 * config/sh/sh.md (movsicc_true+3): Remove peephole.
39422 * config/sh/sh-protos.h (replace_n_hard_rtx): Don't declare.
39423 * config/sh/sh.c (replace_n_hard_rtx): Remove.
39425 2015-02-23 Richard Sandiford <richard.sandiford@arm.com>
39428 * wide-int.cc (wi::from_mpz): Cope with unwrapped values that are
39429 too big for a wide_int. Implement missing wrapping operation.
39431 2015-02-23 Oleg Endo <olegendo@gcc.gnu.org>
39434 * config/sh/sh.md (swapbsi2, related peephole2): Use const_int -65536
39435 instead of const_int 4294901760.
39437 2015-02-23 Georg-Johann Lay <avr@gjlay.de>
39439 * config/avr/t-avr: Fix typo in comment.
39441 2015-02-21 Richard Sandiford <richard.sandiford@arm.com>
39443 * doc/rtl.texi (fma): Clarify documentation.
39445 2015-02-20 Aldy Hernandez <aldyh@redhat.com>
39448 * gimplify.c (gimplify_expr): Prefer location of TRY_FINALLY_EXPR
39449 over input_location.
39451 2015-02-20 Bernd Schmidt <bernds@codesourcery.com>
39453 * tree-streamer-in.c (unpack_ts_decl_common_value_fields,
39454 unpack_ts_type_common_value_fields): If ACCEL_COMPILER,
39455 restrict alignments to absolute_biggest_alignment.
39456 * config/i386/i386.c (TARGET_ABSOLUTE_BIGGEST_ALIGNMENT):
39458 * doc/tm.texi.in (TARGET_ABSOLUTE_BIGGEST_ALIGNMENT): Add.
39459 * doc/tm.texi: Regenerate.
39460 * target.def (absolute_biggest_alignment): New DEFHOOKPOD.
39462 2015-02-20 Vladimir Makarov <vmakarov@redhat.com>
39465 * ira-color.c (color_pass): Prevent splitting multi-register pseudos.
39467 2015-02-20 Richard Biener <rguenther@suse.de>
39469 PR tree-optimization/65136
39470 * tree-ssa-propagate.c: Include cfgloop.h.
39471 (replace_phi_args_in): Avoid replacing loop latch edge PHI
39472 arguments with constants.
39474 2015-02-20 Jakub Jelinek <jakub@redhat.com>
39475 Martin Liska <mliska@suse.cz>
39478 * ipa-icf.c (sem_function::merge): If DECL_COMDAT_GROUP (alias->decl),
39479 don't try to create_thunk if stdarg_p. If
39480 !sem_item::target_supports_symbol_aliases_p (), similarly, and try to
39481 redirect_callers if possible.
39482 (sem_item_optimizer::execute): Call unregister_hooks here...
39483 (ipa_icf_driver): ... instead of here.
39485 2015-02-20 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
39487 * config/aarch64/aarch64.md (*aarch64_lshr_sisd_or_int_<mode>3):
39488 Mark operand 0 as earlyclobber in 2nd alternative.
39489 (1st define_split below *aarch64_lshr_sisd_or_int_<mode>3):
39490 Write negated shift amount into QI lowpart operand 0 and use it
39492 (2nd define_split below *aarch64_lshr_sisd_or_int_<mode>3): Likewise.
39494 2015-02-20 Bernd Schmidt <bernds@codesourcery.com>
39496 * cgraph.h (clone_function_name_1): Declare.
39497 * cgraphclones.c (clone_function_name_1): New function.
39498 (clone_function_name): Use it.
39499 * lto-partition.c: Include "stringpool.h".
39500 (must_not_rename, maybe_rewrite_identifier)
39501 (validize_symbol_for_target): New static functions.
39502 (privatize_symbol_name): Use must_not_rename.
39503 (promote_symbol): Call validize_symbol_for_target.
39504 (lto_promote_cross_file_statics): Likewise.
39505 (lto_promote_statics_nonwpa): Likewise.
39507 2015-02-20 Georg-Johann Lay <avr@gjlay.de>
39510 * config/avr/avr.md (pushhi_insn): New insn.
39511 (push<mode>1): Push virtual regs in one chunk using pushhi1_insn.
39513 2015-02-20 Bernd Schmidt <bernds@codesourcery.com>
39514 Jakub Jelinek <jakub@redhat.com>
39516 * tree-streamer.c (preload_common_nodes): Don't preload
39517 TI_VA_LIST* for offloading.
39518 * tree-stdarg.c (pass_stdarg::gate): Disable for ACCEL_COMPILER
39521 2015-02-19 John David Anglin <danlgin@gcc.gnu.org>
39523 * config/pa/pa.c (pa_emit_move_sequence): Always force
39524 (const (plus (symbol) (const_int))) to const mem. Put REG_EQUAL
39527 * config/pa/pa.c (pa_reloc_rw_mask): New function.
39528 (TARGET_ASM_RELOC_RW_MASK): Define.
39529 (pa_cannot_force_const_mem): Revert previous change.
39531 2015-02-19 Martin Jambor <mjmabor@suse.cz>
39532 Jan Hubicka <hubicka@ucw.cz>
39535 * ipa-cp.c (propagate_alignment_accross_jump_function): Fix propagation
39536 across jump functions.
39538 2015-02-19 Uros Bizjak <ubizjak@gmail.com>
39540 * config/alpha/alpha.c (alpha_in_small_data_p): Reject common symbols.
39542 2015-02-19 Sandra Loosemore <sandra@codesourcery.com>
39544 * doc/extend.texi (x86 transactional memory intrinsics): Copy-edit.
39546 2015-02-19 Richard Henderson <rth@redhat.com>
39548 PR middle-end/65074
39549 * varasm.c (default_binds_local_p_2): Don't test node->definition;
39550 test DECL_EXTERNAL independent of symtab_node.
39552 2015-02-19 Jakub Jelinek <jakub@redhat.com>
39555 * varpool.c (varpool_node::get_constructor): Return early
39556 if this->lto_file_data is NULL.
39558 2015-02-19 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
39560 * haifa-sched.c (enum rfs_decision, rfs_str): Remove RFS_DEBUG.
39561 (rank_for_schedule_debug): Update.
39562 (ready_sort): Make static. Move sorting logic to ...
39563 (ready_sort_debug, ready_sort_real): New static functions.
39564 (schedule_block): Sort both debug insns and real insns in preparation
39565 for ready list trimming. Improve debug output.
39566 * sched-int.h (ready_sort): Remove global declaration.
39568 2015-02-18 Trevor Saunders <tsaunders@mozilla.com>
39570 * ipa-icf.c (sem_function::equals_private): Adjust.
39571 (sem_function::bb_dict_test): Take a vec<int> * instead of
39573 * ipa-icf.h (bb_dict_test): Likewise.
39575 2015-02-18 Jakub Jelinek <jakub@redhat.com>
39577 PR gcov-profile/64634
39578 * tree-eh.c (frob_into_branch_around): Fix up typos
39579 in function comment.
39580 (lower_catch): Put eh_seq resulting from EH lowering of
39581 the cleanup sequence after the cleanup rather than before it.
39583 2015-02-18 Tom de Vries <tom@codesourcery.com>
39585 * common.opt (fstdarg-opt): New option.
39586 * tree-stdarg.c (pass_stdarg::gate): Use flag_stdarg_opt.
39587 * doc/invoke.texi (@item Optimization Options): Add -fstdarg-opt.
39588 (@item -fstdarg-opt): New item.
39590 2015-02-18 H.J. Lu <hongjiu.lu@intel.com>
39593 * config/ia64/predicates.md (sdata_symbolic_operand): Return false
39594 for common symbols.
39596 2015-02-18 Jakub Jelinek <jakub@redhat.com>
39598 * config/i386/t-intelmic (mkoffload.o): Remove dependency on
39600 (ALL_HOST_OBJS): Add mkoffload.o.
39601 * config/nvptx/t-nvptx (ALL_HOST_OBJS): Likewise.
39603 2015-02-18 Jan Hubicka <hubicka@ucw.cz>
39605 * ipa-devirt.c (odr_subtypes_equivalent_p): Fix formating.
39606 (compare_virtual_tables): Be smarter about skipping typeinfos;
39607 do sane output on virtual table table mismatch.
39608 (warn_odr): Be ready for forward declarations of enums;
39609 output sane info on base mismatch and virtual table mismatch.
39610 (add_type_duplicate): Fix code choosing prevailing type; do not ICE
39611 when only one type is polymorphic.
39612 (get_odr_type): Fix hashtable corruption.
39613 (dump_odr_type): Dump mangled names.
39615 2015-02-18 Richard Biener <rguenther@suse.de>
39617 PR tree-optimization/65063
39618 * tree-predcom.c (determine_unroll_factor): Return 1 if we
39619 have replaced looparound PHIs.
39621 2015-02-18 Martin Liska <mliska@suse.cz>
39623 * lto-streamer.c (lto_streamer_init): Encapsulate
39624 streamer_check_handled_ts_structures with checking macro.
39626 2015-02-18 Jakub Jelinek <jakub@redhat.com>
39629 * cgraphclones.c (cgraph_node::create_virtual_clone): Only copy
39630 section if !implicit_section.
39631 (cgraph_node::create_version_clone_with_body): Likewise.
39632 * trans-mem.c (ipa_tm_create_version): Likewise.
39634 2015-02-18 Richard Biener <rguenther@suse.de>
39636 PR tree-optimization/62217
39637 * tree-ssa-dom.c (cprop_operand): Avoid propagating copies
39640 2015-02-18 Marek Polacek <polacek@redhat.com>
39643 * ubsan.c (OBJSZ_MAX_OFFSET): Define.
39644 (ubsan_expand_objsize_ifn): Don't emit run-time check if the offset
39645 is in range [-16K, -1]. Don't issue run-time error if
39646 (ptr > ptr + offset).
39648 2015-02-18 Thomas Schwinge <thomas@codesourcery.com>
39650 * doc/install.texi (nvptx-*-none): New section.
39651 * doc/invoke.texi (Nvidia PTX Options): Likewise.
39652 * config/nvptx/nvptx.opt: Update.
39654 * config/nvptx/mkoffload.c (parse_env_var, free_array_of_ptrs)
39655 (access_check): New functions, copied from
39656 config/i386/intelmic-mkoffload.c.
39657 (main): For non-installed testing, look in all COMPILER_PATHs for
39660 * config/nvptx/nvptx.h (GOMP_SELF_SPECS): Define macro.
39662 2015-02-18 Andrew Pinski <apinski@cavium.com>
39663 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
39665 * config/aarch64/aarch64.c (*aarch64_load_symref_appropriately):
39666 Check whether the destination of SYMBOL_SMALL_TPREL is Pmode.
39668 2015-02-17 Jan Hubicka <hubicka@ucw.cz>
39670 * ipa-visibility.c (function_and_variable_visibility): Only
39671 check locality if node is not already local.
39672 * ipa-inline.c (want_inline_function_to_all_callers_p): Use
39673 call_for_symbol_and_aliases instead of
39674 call_for_symbol_thunks_and_aliases.
39675 (ipa_inline): Likewise.
39676 * cgraph.c (cgraph_node::call_for_symbol_thunks_and_aliases):
39677 first walk aliases.
39678 * ipa.c (symbol_table::remove_unreachable_nodes): Use
39679 call_for_symbol_and_aliases.
39680 * ipa-profile.c (ipa_propagate_frequency_data): Add function_symbol.
39681 (ipa_propagate_frequency_1): Use it; use opt_for_fn
39682 (ipa_propagate_frequency): Update.
39683 (ipa_profile): Add opt_for_fn gueards.
39685 2015-02-17 Oleg Endo <olegendo@gcc.gnu.org>
39687 * config/sh/sh.opt (mcbranch-force-delay-slot): New option.
39688 * doc/invoke.texi (SH options): Document it.
39689 * config/sh/sh.c (sh_insn_length_adjustment): Check
39690 TARGET_CBRANCH_FORCE_DELAY_SLOT instead of sh_cpu_attr == CPU_SH2E.
39692 2015-02-17 H.J. Lu <hongjiu.lu@intel.com>
39694 * common.opt (fipa-cp-alignment): New.
39695 * ipa-cp.c (ipcp_store_alignment_results): Check
39696 flag_ipa_cp_alignment.
39697 * opts.c (default_options_table): Enable -fipa-cp-alignment for
39699 (enable_fdo_optimizations): Set x_flag_ipa_cp_alignment.
39700 * doc/invoke.texi: Document -fipa-cp-alignment.
39702 2015-02-17 Oleg Endo <olegendo@gcc.gnu.org>
39705 * config/sh/sh.md (cbranch define_delay): Set annulled true branch insn
39706 to nil. Adjust comments.
39708 2015-02-17 Jan Hubicka <hubicka@ucw.cz>
39710 * ipa-visibility.c (function_and_variable_visibility): Only
39711 check locality if node is not already local.
39712 * ipa-inline.c (want_inline_function_to_all_callers_p): Use
39713 call_for_symbol_and_aliases instead of
39714 call_for_symbol_thunks_and_aliases.
39715 (ipa_inline): Likewise.
39716 * cgraph.c (cgraph_node::call_for_symbol_thunks_and_aliases):
39717 first walk aliases.
39718 * ipa.c (symbol_table::remove_unreachable_nodes): Use
39719 call_for_symbol_and_aliases.
39720 * ipa-profile.c (ipa_propagate_frequency_data): Add function_symbol.
39721 (ipa_propagate_frequency_1): Use it; use opt_for_fn
39722 (ipa_propagate_frequency): Update.
39723 (ipa_profile): Add opt_for_fn guards.
39725 2015-02-17 Thomas Schwinge <thomas@codesourcery.com>
39727 * config/nvptx/mkoffload.c (parse_file): Fix logic error in
39728 skipping of "strange" tokens.
39730 2015-02-17 Jeff Law <law@redhat.com>
39732 * tree-vrp.c (identify_jump_threads): Use last_stmt. Remove
39735 2015-02-17 James Greenhalgh <james.greenhalgh@arm.com>
39737 * haifa-sched.c (recompute_todo_spec): Treat SCHED_GROUP_P
39738 as forcing a HARD_DEP between instructions, thereby
39739 disallowing rewriting to break dependencies.
39741 2015-02-16 Jan Hubicka <hubicka@ucw.cz>
39743 * symtab.c (symtab_node::verify_base): Verify body_removed->!definiton
39744 * lto-cgraph.c (lto_output_varpool_node): Do not keep definition of
39745 variables in boundary that have no inlitalizer encoded and are
39747 * varasm.c (default_binds_local_p_2): External definitions do not
39748 count as definitions here.
39750 2015-02-16 Jeff Law <law@redhat.com>
39752 PR tree-optimization/64823
39753 * tree-vrp.c (identify_jump_threads): Handle blocks with no real
39755 * tree-ssa-threadedge.c (potentially_threadable_block): Allow
39756 threading through blocks with PHIs, but no statements.
39757 (thread_through_normal_block): Distinguish between blocks where
39758 we did not process all the statements and blocks with no statements.
39760 2015-02-16 Jakub Jelinek <jakub@redhat.com>
39761 James Greenhalgh <james.greenhalgh@arm.com>
39764 * cgraphclones.c (cgraph_node::create_virtual_clone): Copy
39765 section if not linkonce. Fix up formatting.
39766 (cgraph_node::create_version_clone_with_body): Copy section.
39767 * trans-mem.c (ipa_tm_create_version): Likewise.
39769 2015-02-16 Richard Biener <rguenther@suse.de>
39771 PR tree-optimization/65077
39772 * tree-ssa-structalias.c (get_constraint_for_1): Handle
39773 IMAGPART_EXPR, REALPART_EXPR and BIT_FIELD_REF.
39774 (find_func_aliases): Allow float values to carry pointers again.
39776 2015-02-16 James Greenhalgh <james.greenhalgh@arm.com>
39778 * doc/install.texi (Specific): Reorder targets list to put
39779 aarch64 in alphabetical order. Add a link to aarch64*-*-*
39782 2015-02-16 Michael Haubenwallner <michael.haubenwallner@ssi-schaefer.com>
39783 David Edelsohn <dje.gcc@gmail.com>
39786 * config/rs6000/rs6000.c (rs6000_output_symbol_ref): Append storage
39787 mapping class to external variable or function reference.
39788 * config/rs6000/xcoff.h (ASM_OUTPUT_EXTERNAL): Do not append storage
39791 2015-02-16 David Eelsohn <dje.gcc@gmail.com>
39794 * config/rs6000/rs6000.c (rs6000_declare_alias): Only use
39795 ASM_WEAKEN_DECL if defined.
39797 2015-02-16 Richard Biener <rguenther@suse.de>
39800 * varasm.c (default_file_start): For LTO produced units
39801 emit <artificial> as file directive.
39803 2015-02-16 Richard Biener <rguenther@suse.de>
39805 PR tree-optimization/63593
39806 * tree-predcom.c (execute_pred_commoning_chain): Delay removing
39807 stmts and releasing SSA names until...
39808 (execute_pred_commoning): ... after processing all chains.
39810 2015-02-16 Jan Hubicka <hubicka@ucw.cz>
39813 * ipa-comdats.c (ipa_comdats): Do not categorize thunks to
39814 external functions.
39816 2015-02-15 Sandra Loosemore <sandra@codesourcery.com>
39818 * doc/bugreport.texi: Adjust section titles throughout the file
39819 to use "Title Case".
39820 * doc/extend.texi: Likewise.
39821 * doc/gcov.texi: Likewise.
39822 * doc/implement-c.texi: Likewise.
39823 * doc/implement-cxx.texi: Likewise.
39824 * doc/invoke.texi: Likewise.
39825 * doc/objc.texi: Likewise.
39826 * doc/standards.texi: Likewise.
39827 * doc/trouble.texi: Likewise.
39829 2015-02-15 Jan Hubicka <hubicka@ucw.cz>
39831 * cgraph.h (symtab_node::has_aliases_p): Simplify.
39832 (symtab_node::call_for_symbol_and_aliases): Use has_aliases_p
39833 * tree.c (lookup_binfo_at_offset): Make static.
39834 (get_binfo_at_offset): Do not shadow offset; add explanatory
39837 2015-02-15 John David Anglin <danglin@gcc.gnu.org>
39839 * config/pa/pa.c (pa_secondary_reload): Request a secondary reload
39840 for all floading point loads and stores except those using a register
39842 * config/pa/pa.md: Add new patterns to load a lo_sum DLT operand
39845 2015-02-14 Jan Hubicka <hubicka@ucw.cz>
39847 * ipa-inline-analysis.c (growth_data): Add uninlinable field.
39848 (do_estimate_growth_1): Record if any uninlinable edge was seen.
39849 (estimate_growth): Handle uninlinable edges correctly.
39850 (check_callers): New.
39851 (growth_likely_positive): Handle aliases correctly.
39853 2015-02-14 Jan Hubicka <hubicka@ucw.cz>
39855 * ipa-chkp.c: Use iterate_direct_aliases.
39856 * symtab.c (resolution_used_from_other_file_p): Move inline.
39857 (symtab_node::create_reference): Fix formating.
39858 (symtab_node::has_aliases_p): Move inline; use iterate_direct_aliases.
39859 (symtab_node::iterate_reference): Move inline.
39860 (symtab_node::iterate_referring): Move inline.
39861 (symtab_node::iterate_direct_aliases): Move inline.
39862 (symtab_node::used_from_object_file_p_worker): Inline into ...
39863 (symtab_node::used_from_object_file_p): ... this one; move inline.
39864 (symtab_node::call_for_symbol_and_aliases): Move inline;
39865 use iterate_direct_aliases.
39866 (symtab_node::call_for_symbol_and_aliases_1): New method.
39867 (cgraph_node::call_for_symbol_and_aliases): Move inline;
39868 use iterate_direct_aliases.
39869 (cgraph_node::call_for_symbol_and_aliases_1): New method.
39870 (varpool_node::call_for_node_and_aliases): Rename to ...
39871 (varpool_node::call_for_symbol_and_aliases): ... this one; Move inline;
39872 use iterate_direct_aliases.
39873 (varpool_node::call_for_symbol_and_aliases_1): New method.
39874 * ipa.c (ipa_single_use): Use iterate_direct_aliases.
39875 (ipa_discover_readonly_nonaddressable_var): Update.
39876 * ipa-devirt.c: Fix formating.
39877 * cgraph.c (cgraph_node::can_remove_if_no_direct_calls_and_refs_p):
39879 (cgraph_node::call_for_symbol_and_aliases): Move inline.
39880 (cgraph_node::call_for_symbol_and_aliases_1): New function..
39881 * cgraph.h (used_from_object_file_p_worker): Remove.
39882 (resolution_used_from_other_file_p): Move inline.
39883 (symtab_node::has_aliases_p): Move inline; use iterate_direct_aliases.
39884 (symtab_node::iterate_reference): Move inline.
39885 (symtab_node::iterate_referring): Move inline.
39886 (symtab_node::iterate_direct_aliases): Move inline.
39887 (symtab_node::used_from_object_file_p_worker): Inline into ...
39888 (symtab_node::used_from_object_file_p): Move inline.
39889 * tree-emutls.c (ipa_lower_emutls): Update.
39890 * varpool.c (varpool_node::call_for_symbol_and_aliases_1): New method.
39891 (varpool_node::call_for_node_and_aliases): Remove.
39893 2015-02-14 Jakub Jelinek <jakub@redhat.com>
39895 PR tree-optimization/62209
39896 * tree-ssa-reassoc.c (update_range_test): If stmt is a PHI and
39897 op == range->exp, insert seq and gimplified code after labels
39898 instead of after the phi.
39900 2015-02-13 Jeff Law <law@redhat.com>
39903 Revert my change for tree-optimization/64823.
39905 2015-02-13 Jakub Jelinek <jakub@redhat.com>
39907 PR tree-optimization/65053
39908 * tree-ssa-phiopt.c (value_replacement): When moving assign before
39909 cond, either reset VR on lhs or set it to phi result VR.
39911 2015-02-13 Jeff Law <law@redhat.com>
39913 PR tree-optimization/64823
39914 * tree-vrp.c (identify_jump_threads): Handle blocks with no statements.
39915 * tree-ssa-threadedge.c (potentially_threadable_block): Allow
39916 threading through blocks with PHIs, but no statements.
39917 (thread_through_normal_block): Distinguish between blocks where
39918 we did not process all the statements and blocks with no statements.
39920 PR rtl-optimization/47477
39921 * match.pd (convert (plus/minus (convert @0) (convert @1): New
39922 simplifier to narrow arithmetic.
39924 2015-02-13 Jan Hubicka <hubicka@ucw.cz>
39927 * ipa-prop.c (update_indirect_edges_after_inlining): Do not drop
39928 polymorphic call info when type is not known to be preserved.
39930 2015-02-13 Maritn Jambor <mjambor@suse.cz>
39933 * ipa-inline-transform.c (mark_all_inlined_calls_cdtor): New function.
39934 (inline_call): Use it.
39936 2015-02-13 Thomas Schwinge <thomas@codesourcery.com>
39938 * config/nvptx/offload.h (ACCEL_COMPILER_acc_device): Define to
39939 GOMP_DEVICE_NVIDIA_PTX.
39941 2015-02-13 Jakub Jelinek <jakub@redhat.com>
39944 * stmt.c (emit_case_nodes): Use void_type_node instead of
39945 NULL_TREE as LABEL_DECL type.
39947 2015-02-13 John David Anglin <danglin@gcc.gnu.org>
39949 * config/pa/constraints.md: Change "Q" and "T" constraints to memory
39951 * config/pa/pa.c (pa_cannot_force_const_mem): Don't allow constant
39952 symbolic references to data to be forced to constant memory on the
39955 2015-02-13 Ilya Enkovich <ilya.enkovich@intel.com>
39957 PR tree-optimization/65002
39958 * tree-cfg.c (pass_data_fixup_cfg): Don't update
39960 * tree-sra.c (some_callers_have_no_vuse_p): New.
39961 (ipa_early_sra): Reject functions whose callers
39962 assume function is read only.
39964 2015-02-13 Richard Biener <rguenther@suse.de>
39967 * dwarf2out.c (dwarf2out_finish): Use <artificial> as DW_AT_name
39968 for LTO produced CUs.
39970 2015-02-13 Bin Cheng <bin.cheng@arm.com>
39972 PR tree-optimization/64705
39973 * tree-ssa-loop-niter.h (expand_simple_operations): New parameter.
39974 * tree-ssa-loop-niter.c (expand_simple_operations): New parameter.
39975 * tree-ssa-loop-ivopts.c (extract_single_var_from_expr): New.
39976 (find_bivs, find_givs_in_stmt_scev): Pass new argument to
39977 expand_simple_operations.
39979 2015-02-13 H.J. Lu <hongjiu.lu@intel.com>
39980 Richard Henderson <rth@redhat.com>
39983 * cgraphunit.c (cgraph_node::finalize_function): Set definition
39984 before notice_global_symbol.
39985 (varpool_node::finalize_decl): Likewise.
39986 * varasm.c (default_binds_local_p_2): Rename from
39987 default_binds_local_p_1, add weak_dominate argument. Use direct
39988 returns instead of assigning to local variable. Unify varpool and
39989 cgraph paths via symtab_node. Reject undef weak variables before
39990 testing visibility. Reorder tests for simplicity.
39991 (default_binds_local_p): Use default_binds_local_p_2.
39992 (default_binds_local_p_1): Likewise.
39993 (decl_binds_to_current_def_p): Unify varpool and cgraph paths
39995 (default_elf_asm_output_external): Emit visibility when specified.
39997 2015-02-13 Alan Modra <amodra@gmail.com>
39999 * config/rs6000/rs6000.c (rs6000_emit_epilogue): Fix typo in
40000 code setting up r11 for out-of-line fp restore.
40002 2015-02-13 Eric Botcazou <ebotcazou@adacore.com>
40004 * config/visium/visium.opt (msv-mode): Add RejectNegative and Report.
40005 (muser-mode): Likewise.
40007 2015-02-13 Alan Modra <amodra@gmail.com>
40009 * config/rs6000/rs6000.c (rs6000_emit_epilogue): Use addsi3_carry
40010 or adddi3_carry when restoring frame_reg_rtx from r0 after restvr.
40012 2015-02-12 David Howells <dhowells@redhat.com>
40014 * tree-sra.c (dump_dereferences_table): Avoid -Wformat-security
40016 * tree-ssa-uninit.c (dump_predicates): Likewise.
40017 * opts.c (print_filtered_help): Likewise.
40019 2015-02-12 Jakub Jelinek <jakub@redhat.com>
40021 * dwarf2out.c (output_die): Use "%s", name instead of name to
40022 avoid -Wformat-security warning.
40024 * dwarf2asm.c (dw2_asm_output_vms_delta): Only define
40025 if ASM_OUTPUT_DWARF_VMS_DELTA is defined.
40026 * dwarf2out.c (output_die): Use dw2_asm_output_vms_delta
40027 only if ASM_OUTPUT_DWARF_VMS_DELTA is defined.
40029 2015-02-12 Jason Merrill <jason@redhat.com>
40031 * common.opt (-flifetime-dse): New.
40033 2015-02-12 Jakub Jelinek <jakub@redhat.com>
40036 * ubsan.c (ubsan_expand_objsize_ifn): Always return true.
40038 PR tree-optimization/65014
40039 * fold-const.c (fold_binary_loc): When creating {L,R}ROTATE_EXPR,
40040 use original second operand of arg0 or arg1 instead of
40041 that adjusted by STRIP_NOPS.
40043 2015-02-11 Jeff Law <law@redhat.com>
40046 * haifa-sched.c (prune_ready_list): If we have a SCHED_GROUP_P insn
40047 that needs to be queued, just queue it for a single cycle.
40049 2015-02-11 Jan Hubicka <hubicka@ucw.cz>
40051 * ipa.c (symbol_table::remove_unreachable_nodes): Avoid releasing
40052 bodies of thunks; comment on why.
40053 * symtab.c (symtab_node::get_partitioning_class): Aliases of extern
40054 symbols are extern.
40056 2015-02-11 Richard Henderson <rth@redhat.com>
40059 * tree-eh.c (mark_reachable_handlers): Mark source and destination
40060 regions of __builtin_eh_copy_values.
40062 2015-02-11 Jakub Jelinek <jakub@redhat.com>
40064 PR middle-end/65003
40065 * varasm.c (place_block_symbol): Assert that DECL_RTL of the
40066 ultimate alias is MEM with SYMBOL_REF satisfying
40067 SYMBOL_REF_HAS_BLOCK_INFO_P as its operand. Don't pass the MEM
40068 to place_block_symbol, but instead pass the SYMBOL_REF operand of it.
40070 2015-02-11 Thomas Schwinge <thomas@codesourcery.com>
40072 * config/nvptx/mkoffload.c: Include "diagnostic.h" instead of
40073 "diagnostic-core.h".
40074 (main): Initialize progname, and call diagnostic_initialize.
40076 * config/nvptx/mkoffload.c (process): Refer to __OFFLOAD_TABLE__
40077 instead of __OPENMP_TARGET__.
40079 * config/nvptx/mkoffload.c: Include "gomp-constants.h".
40080 (process): Use its GOMP_DEVICE_NVIDIA_PTX instead of (wrongly)
40081 hard-coding PTX_ID.
40083 2015-02-11 H.J. Lu <hongjiu.lu@intel.com>
40085 * doc/sourcebuild.texi (pie_enabled): Document.
40087 2015-02-11 Martin Liska <mliska@suse.cz>
40090 * cgraphunit.c (cgraph_node::expand_thunk): Do not create
40091 a return value for call to a function that is noreturn.
40093 2015-02-11 Richard Biener <rguenther@suse.de>
40096 * dwarf2out.c (gen_producer_string): Drop -fltrans-output-list
40099 2015-02-11 Andrew Pinski <apinski@cavium.com>
40102 * config/aarch64/aarch64-builtins.c (aarch64_init_simd_builtins):
40103 Change the first argument type to size_type_node and add another
40105 (aarch64_simd_expand_builtin): Handle the new argument to
40106 AARCH64_SIMD_BUILTIN_LANE_CHECK and don't ICE but rather
40107 print an out when the first two arguments are not
40108 nonzero integer constants.
40109 * config/aarch64/arm_neon.h (__AARCH64_LANE_CHECK):
40110 Pass the sizeof directly to __builtin_aarch64_im_lane_boundsi.
40112 2015-02-11 Jakub Jelinek <jakub@redhat.com>
40115 * config/i386/i386.c (ix86_reset_to_default_globals): Removed.
40116 (ix86_reset_previous_fndecl): Restore it here, unconditionally.
40117 (ix86_set_current_function): Rewritten.
40118 (ix86_add_new_builtins): Temporarily clear current_target_pragma
40119 when creating builtin fndecls.
40121 2015-02-10 Jan Hubicka <hubicka@ucw.cz>
40124 * ipa-visibility.c (cgraph_node::non_local_p): Turn into static
40126 * symtab.c (symtab_node::verify_base): Remove check that non-definitions
40127 have no comdat group.
40128 * lto-cgraph.c (lto_output_node): Always output thunk and alias info.
40129 (lto_output_varpool_node): Always output alias info.
40130 (output_refs): Output refs of boundary aliases, too.
40131 (compute_ltrans_boundary): Add alias and thunk target into boundaries.
40132 (output_symtab): Output call eges in thunks in boundary.
40133 (get_alias_symbol): Remove.
40134 (input_node, input_varpool_node): Do not special case weakrefs.
40135 * ipa.c (symbol_table::remove_unreachable_nodes): Do not remove
40136 alias and thunks targets in the boundary; do not take removed symbols
40137 from their comdat groups.
40138 * cgraph.c (cgraph_node::local_info): Look through aliases and thunks.
40139 (cgraph_node::global_info): Remove.
40140 (cgraph_node::rtl_info): Look through aliases and thunks.
40141 * cgrpah.h (global_info): Remove.
40142 (non_local_p): Remove.
40144 2015-02-10 David Wohlferd <dw@LimeGreenSocks.com>
40145 Sandra Loosemore <sandra@codesourcery.com>
40147 * doc/invoke.texi (x86 Options [-masm=dialect]): Add cross-references
40148 to inline asm. List dialects in proper order.
40150 2015-02-10 David Wohlferd <dw@LimeGreenSocks.com>
40151 Sandra Loosemore <sandra@codesourcery.com>
40153 * doc/extend.texi (Loop-Specific Pragmas): Fix grammar error.
40155 2015-02-10 David Wohlferd <dw@LimeGreenSocks.com>
40157 * doc/extend.texi (Symbol-Renaming Pragmas): Restore (slightly
40158 modified) reference to Solaris.
40160 2015-02-10 Sandra Loosemore <sandra@codesourcery.com>
40162 * doc/extend.texi (Extended Asm): Fix typos.
40164 2015-02-10 Jakub Jelinek <jakub@redhat.com>
40167 * ubsan.c (ubsan_expand_vptr_ifn): Always return true.
40169 2015-02-10 Oleg Endo <olegendo@gcc.gnu.org>
40172 * config/sh/sh-protos.h (TARGET_ATOMIC_ANY, TARGET_ATOMIC_STRICT,
40173 TARGET_ATOMIC_SOFT_GUSA, TARGET_ATOMIC_HARD_LLCS,
40174 TARGET_ATOMIC_SOFT_TCB, TARGET_ATOMIC_SOFT_IMASK): Add parentheses.
40175 * config/sh/constraints.md (Ara, Add): New constraints.
40176 * config/sh/sync.md (atomic_mem_operand_0, atomic_mem_operand_1): New
40178 (atomic_compare_and_swap<mode>, atomic_exchange<mode>): Use
40179 atomic_mem_operand_0. Don't use force_reg on the memory address.
40180 (atomic_compare_and_swapsi_hard): Use atomic_mem_operand_0 predicate and
40181 Sra constraint. Convert to insn_and_split. Add workaround for
40183 (atomic_compare_and_swap<mode>_hard): Copy to
40184 atomic_compare_and_swap<mode>_hard_1. Convert to insn_and_split.
40185 Use atomic_mem_operand_0 predicate.
40186 (atomic_compare_and_swap<mode>_soft_gusa,
40187 atomic_exchange<mode>_soft_gusa): Use atomic_mem_operand_0 predicate and
40188 AraAdd constraints.
40189 (atomic_compare_and_swap<mode>_soft_tcb,
40190 atomic_compare_and_swap<mode>_soft_imask,
40191 atomic_exchange<mode>_soft_tcb, atomic_exchange<mode>_soft_imask): Use
40192 atomic_mem_operand_0 predicate and SraSdd constraints.
40193 (atomic_exchangesi_hard) Use atomic_mem_operand_0 predicate and Sra
40195 (atomic_exchange<mode>_hard): Copy to atomic_exchange<mode>_hard_1.
40196 Convert to insn_and_split. Use atomic_mem_operand_0 predicate.
40197 (atomic_fetch_<fetchop_name><mode>, atomic_fetch_nand<mode>,
40198 atomic_<fetchop_name>_fetch<mode>): Use atomic_mem_operand_1. Don't use
40199 force_reg on the memory address.
40200 (atomic_fetch_<fetchop_name>si_hard, atomic_fetch_notsi_hard,
40201 atomic_fetch_nandsi_hard, atomic_<fetchop_name>_fetchsi_hard,
40202 atomic_not_fetchsi_hard, atomic_nand_fetchsi_hard): Use
40203 atomic_mem_operand_1 predicate and Sra constraint.
40204 (atomic_fetch_<fetchop_name><mode>_hard): Copy to
40205 atomic_fetch_<fetchop_name><mode>_hard_1. Convert to insn_and_split.
40206 Use atomic_mem_operand_1 predicate.
40207 (atomic_<fetchop_name><mode>_hard): Copy to
40208 atomic_<fetchop_name><mode>_hard_1. Convert to insn_and_split.
40209 Use atomic_mem_operand_1 predicate.
40210 (atomic_fetch_nand<mode>_hard): Copy to atomic_fetch_nand<mode>_hard_1.
40211 Convert to insn_and_split. Use atomic_mem_operand_1 predicate.
40212 (atomic_nand<mode>_hard): Copy to atomic_nand<mode>_hard_1. Convert to
40213 insn_and_split. Use atomic_mem_operand_1 predicate.
40214 (atomic_<fetchop_name>_fetch<mode>_hard): Copy to
40215 atomic_<fetchop_name>_fetch<mode>_hard_1. Convert to insn_and_split.
40216 Use atomic_mem_operand_1 predicate.
40217 (atomic_nand_fetch<mode>_hard): Copy to atomic_nand_fetch<mode>_hard_1.
40218 Convert to insn_and_split. Use atomic_mem_operand_1 predicate.
40219 (atomic_fetch_not<mode>_hard, atomic_not_fetch<mode>_hard): Replace mems
40220 in generated insn with original mem operand before emitting the insn.
40221 (atomic_fetch_<fetchop_name><mode>_soft_gusa,
40222 atomic_fetch_not<mode>_soft_gusa, atomic_fetch_nand<mode>_soft_gusa,
40223 atomic_<fetchop_name>_fetch<mode>_soft_gusa,
40224 atomic_not_fetch<mode>_soft_gusa, atomic_nand_fetch<mode>_soft_gusa):
40225 Use atomic_mem_operand_1 predicate and AraAdd constraints.
40226 (atomic_fetch_<fetchop_name><mode>_soft_tcb,
40227 atomic_<fetchop_name><mode>_soft_tcb, atomic_fetch_not<mode>_soft_tcb,
40228 atomic_not<mode>_soft_tcb, atomic_fetch_<fetchop_name><mode>_soft_imask,
40229 atomic_fetch_not<mode>_soft_imask, atomic_fetch_nand<mode>_soft_tcb,
40230 atomic_nand<mode>_soft_tcb, atomic_fetch_nand<mode>_soft_imask,
40231 atomic_<fetchop_name>_fetch<mode>_soft_tcb,
40232 atomic_not_fetch<mode>_soft_tcb,
40233 atomic_<fetchop_name>_fetch<mode>_soft_imask,
40234 atomic_not_fetch<mode>_soft_imask, atomic_nand_fetch<mode>,
40235 atomic_nand_fetch<mode>_soft_tcb, atomic_nand_fetch<mode>_soft_imask):
40236 Use atomic_mem_operand_1 predicate and SraSdd constraints.
40238 2015-02-10 Uros Bizjak <ubizjak@gmail.com>
40240 * config/alpha/alpha.md (reload_out<mode>_aligned): Make operands 2
40241 and 3 earlyclobber operands.
40243 2015-02-10 Jan Hubicka <hubicka@ucw.cz>
40245 * common.opt (fstack-reuse): Mark as optimization.
40247 2015-02-10 Jan Hubicka <hubicka@ucw.cz>
40250 * cgraphunit.c (cgraph_node::expand_thunk): Look for stdarg thunks.
40252 2015-02-10 Trevor Saunders <tsaunders@mozilla.com>
40254 PR tree-optimization/64326
40255 * cfghooks.c (make_forwarder_block): Cap frequency of created block.
40257 2015-02-10 Rainer Emrich <rainer@emrich-ebersheim.de>
40259 PR gcov-profile/61889
40260 * gcov-tool.c: Remove wrong #if !defined(_WIN32)
40262 2015-02-10 Richard Biener <rguenther@suse.de>
40264 PR tree-optimization/64995
40265 * tree-ssa-sccvn.c (set_ssa_val_to): Assert that the
40266 value we use is final.
40267 (visit_reference_op_store): Always valueize op.
40268 (visit_use): Properly valueize vuses.
40270 2015-02-10 Richard Biener <rguenther@suse.de>
40272 PR tree-optimization/64909
40273 * tree-vect-loop.c (vect_estimate_min_profitable_iters): Properly
40274 pass a scalar-stmt count estimate to the cost model.
40275 * tree-vect-data-refs.c (vect_peeling_hash_get_lowest_cost): Likewise.
40277 2015-02-10 Alexander Monakov <amonakov@ispras.ru>
40279 * doc/invoke.texi (-fvar-tracking-assignments): Clarify that VTA is
40280 enabled by default together with var-tracking.
40282 2015-02-10 Nick Clifton <nickc@redhat.com>
40284 * config/rl78/rl78.c: Remove DIV attribute code accidentally
40285 included in previous rl78 commit.
40287 2015-02-10 Richard Biener <rguenther@suse.de>
40289 * tree-streamer.h (streamer_read_tree_bitfields): Adjust.
40290 * tree-streamer-in.c (streamer_read_tree_bitfields): Do not
40291 return the bitpack.
40293 2015-02-09 Trevor Saunders <tsaunders@mozilla.com>
40295 PR gcov-profile/61889
40296 * config.in: regenerate.
40297 * configure.in: Likewise.
40298 * configure.ac: Check for ftw.h.
40299 * gcov-tool.c: Check for ftw.h before using nftw.
40301 2015-02-09 Trevor Saunders <tsaunders@mozilla.com>
40304 * ipa-visibility.c (update_visibility_by_resolution_info): Only
40305 assert when not in lto mode.
40307 2015-02-09 Zhouyi Zhou <yizhouzhou@ict.ac.cn>
40309 * ira-color.c (setup_left_conflict_sizes_p): Simplify
40310 initialization/assignment of conflict_size.
40312 2015-02-09 Jan Hubicka <hubicka@ucw.cz>
40315 * ipa-cp.c (gather_caller_stats): Skip thunks.
40316 (propagate_constants_topo): Skip aliases.
40318 2015-02-09 Kaz Kojima <kkojima@gcc.gnu.org>
40321 * config/sh/sh.c (sh_option_override): Don't change
40322 -freorder-blocks-and-partition to -freorder-blocks even when
40323 unwinding is enabled.
40324 (sh_can_follow_jump): Return false if the followee jump is
40325 a crossing jump when -freorder-blocks-and-partition is specified.
40326 * config/sh/sh.md (*jump_compact_crossing): New insn.
40328 2015-02-09 Joern Rennecke <joern.rennecke@embecosm.com>
40329 Kaz Kojima <kkojima@gcc.gnu.org>
40332 * config/sh/sh-protos.h (sh_can_redirect_branch): Don't declare.
40333 * config/sh/sh.c (TARGET_CAN_FOLLOW_JUMP): Redefine.
40334 (sh_can_redirect_branch): Rename to ...
40335 (sh_can_follow_jump): ... this. Constify argument types.
40336 * config/sh/sh.h (MD_CAN_REDIRECT_BRANCH): Don't define.
40337 * doc/tm.texi.in (MD_CAN_REDIRECT_BRANCH): Remove documentation.
40338 * reorg.c (steal_delay_list_from_target): Use targetm.can_follow_jump.
40339 * doc/tm.texi: Regenerate.
40341 2015-02-09 Jakub Jelinek <jakub@redhat.com>
40344 * builtins.c (expand_builtin): Call targetm.expand_builtin
40345 for BUILT_IN_MD builtins regardless of asan_intercepted_p.
40347 2015-02-08 Jan Hubicka <hubicka@ucw.cz>
40350 * tree-emutls.c (ipa_lower_emutls): Avoid duplicates in TLS_VARS.
40352 2015-02-08 Jan Hubicka <hubicka@ucw.cz>
40355 * ipa-icf.c (set_local): New function.
40356 (sem_function::merge): Use it.
40358 2015-02-08 Jan Hubicka <hubicka@ucw.cz>
40360 * ipa-devirt.c (odr_types_equivalent_p): Fix formating.
40361 (add_type_duplicate): Fix comparison of BINFOs.
40363 2015-02-08 Jan Hubicka <hubicka@ucw.cz>
40365 * ipa-polymorphic-call.c (ipa_polymorphic_call_context): Avoid ICE
40366 on getting VOID pointer.
40368 2015-02-09 Jakub Jelinek <jakub@redhat.com>
40371 * tree-stdarg.c (pass_stdarg::execute): Scan phi node args for
40374 2015-02-09 Richard Biener <rguenther@suse.de>
40376 * genmatch.c (replace_id): Copy expr_type.
40378 2015-02-09 Richard Biener <rguenther@suse.de>
40380 * tree-streamer.h (streamer_pack_tree_bitfields): Remove.
40381 (streamer_write_tree_bitfields): Declare.
40382 * tree-streamer-in.c (unpack_ts_base_value_fields): Inline,
40383 properly unpack padding.
40384 (unpack_value_fields): Inline ...
40385 (streamer_read_tree_bitfields): ... here.
40386 * tree-streamer-out.c (pack_ts_base_value_fields): Inline
40387 and properly add padding bits.
40388 (streamer_pack_tree_bitfields): Fold into ...
40389 (streamer_write_tree_bitfields): ... this new function,
40390 exposing the bitpack object.
40391 * lto-streamer-out.c (lto_write_tree_1): Call
40392 streamer_write_tree_bitfields.
40394 2015-02-09 Richard Biener <rguenther@suse.de>
40396 PR tree-optimization/54000
40397 * tree-ssa-looo-ivopts.c: Include tree-vectorizer.h.
40398 (struct ivopts_data): Add loop_loc member.
40399 (tree_ssa_iv_optimize_loop): Dump loop location.
40400 (create_new_ivs): Likewise, also dump number of IVs generated.
40402 2015-02-09 Martin Liska <mliska@suse.cz>
40404 * ipa-icf.c (sem_item_optimizer::register_hooks): Register hooks
40405 just if not yet registered.
40406 (ipa_icf_generate_summary): Register callgraph hooks.
40408 2015-02-08 Andrew Pinski <apinski@cavium.com>
40410 * config/aarch64/aarch64.c (gty_dummy): Delete.
40412 2015-02-08 Jan Hubicka <hubicka@ucw.cz>
40415 * ipa-visibility.c (cgraph_node::non_local_p): Accept aliases.
40416 (cgraph_node::local_p): Remove thunk related FIXME.
40418 2015-02-08 Jan Hubicka <hubicka@ucw.cz>
40421 * i386.c (ix86_function_regparm): Look through aliases to see if callee
40422 is local and optimized.
40423 (ix86_function_sseregparm): Likewise; also use target's SSE math
40424 settings; error out instead of silently generating wrong code
40426 (init_cumulative_args): Look through aliases.
40428 2015-02-08 Jan Hubicka <hubicka@ucw.cz>
40431 * ipa-split.c (execute_split_functions): Split if function has aliases.
40433 2015-02-08 Jan Hubicka <hubicka@ucw.cz>
40436 * cgraphunit.c (cgraph_node::analyze): Be sure target of thunk is
40437 aliases before trying to expand it.
40438 (cgraph_node::expand_thunk): Fix formating.
40440 2015-02-07 Sandra Loosemore <sandra@codesourcery.com>
40442 * doc/extend.texi (Function Attributes [naked]): Copy-edit.
40443 (Using Assembly Language with C): Expand introduction.
40444 (Basic Asm): Copy-edit. Add more information about uses of
40446 (Extended Asm): Copy-edit. Document new escape syntax and
40448 (Global Reg Vars): Copy-edit.
40449 (Local Reg Vars): Likewise.
40451 2015-02-06 David Edelsohn <dje.gcc@gmail.com>
40455 * xcoffout.h (DBX_CONTIN_LENGTH): Define as 16384.
40456 (DBX_CONTIN_CHAR): Define.
40458 2015-02-06 Sebastian Pop <s.pop@samsung.com>
40459 Brian Rzycki <b.rzycki@samsung.com>
40461 PR tree-optimization/64878
40462 * tree-ssa-threadedge.c: Include tree-ssa-loop.h.
40463 (fsm_find_control_statement_thread_paths): Add parameter seen_loop_phi.
40464 Stop recursion at loop phi nodes after having visited a loop phi node.
40466 2015-02-06 Jakub Jelinek <jakub@redhat.com>
40468 * toplev.c (process_options): Change flag_ipa_ra before creating
40469 optimization_{default,current}_node.
40472 * cgraphunit.c (cgraph_node::expand_thunk): If
40473 restype is not is_gimple_reg_type nor the thunk_fndecl
40474 returns aggregate_value_p, set restmp to a temporary variable
40475 instead of resdecl.
40477 2015-02-06 Vladimir Makarov <vmakarov@redhat.com>
40479 * lra.c (lra_emit_add): Fix a typo in using disp instead of base.
40481 2015-02-06 Michael Meissner <meissner@linux.vnet.ibm.com>
40484 * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Do not
40485 add a general secondary reload handler for SDmode, unless we have
40486 both read/write support for SDmode.
40488 2015-02-06 Jakub Jelinek <jakub@redhat.com>
40490 PR middle-end/64937
40491 * dwarf2out.c (set_block_abstract_flags, set_decl_abstract_flags):
40492 Replace setting argument with abstract_vec, always set BLOCK_ABSTRACT
40493 or DECL_ABSTRACT_P flags to 1 rather than to setting, and if it wasn't
40494 1 before, push it to abstract_vec.
40495 (dwarf2out_abstract_function): Adjust caller. Don't call
40496 set_decl_abstract_flags second time, instead clear BLOCK_ABSTRACT or
40497 DECL_ABSTRACT_P flags for all abstract_vec elts.
40499 2015-02-06 Renlin Li <renlin.li@arm.com>
40501 * tree-ssa-forwprop.c (execute): Keep location info while rewrite
40503 * tree-ssa.c (execute_update_addresses_taken): Likewise.
40505 2015-02-06 Jeff Law <law@redhat.com>
40508 * config/h8300/h8300.c (push): New argument "in_prologue".
40509 Pass "in_prologue" along to "F".
40510 (h8300_push_pop): Corresponding changes.
40511 (h8300_expand_prologue): Likewise.
40512 (h8300_swap_into_er6): Likewise. Do not set RTX_FRAME_RELATED_P.
40514 2015-02-06 Jakub Jelinek <jakub@redhat.com>
40516 PR rtl-optimization/64957
40518 * simplify-rtx.c (simplify_binary_operation_1): Use ~cval for
40519 IOR rather than for AND.
40521 2015-02-06 Eric Botcazou <ebotcazou@adacore.com>
40524 * tree-ssa-loop-ivopts.c (get_shiftadd_cost): Use the mininum of costs
40525 of shift-add and (add + shift) operations. Rename local variable.
40527 2015-02-05 Jeff Law <law@redhat.com>
40530 * config/h8300/constraints.md (U): Correctly dectect
40531 "eightbit_data" memory addresses.
40532 * config/h8300/h8300.c (eightbit_constant_address_p): Also
40533 handle (const (plus (symbol_ref (x)))) where x is declared
40534 as an 8-bit data memory address.
40535 * config/h8300/h8300.md (call, call_value): Correctly detect
40536 "funcvec" functions.
40539 * config/h8300/h8300.c (get_shift_alg): Fix ASHIFTRT by
40540 24 to 28 bits for the H8/300.
40542 2015-02-06 Alan Modra <amodra@gmail.com>
40545 * config/rs6000/rs6000.c (chain_already_loaded): New function.
40546 (rs6000_call_aix): Use it.
40548 2015-02-05 Jan Hubicka <hubicka@ucw.cz>
40550 * ipa-cp.c (ipa_value_from_jfunc, ipa_context_from_jfunc): Add bounds
40553 2015-02-05 Joern Rennecke <joern.rennecke@embecosm.com>
40555 * config/h8300/constraints.md ("U" constraint): Use strict
40556 variant of REG_OK_FOR_BASE_P after reload has started.
40558 2015-02-04 Mantas Mikaitis <mantas.mikaitis@arm.com>
40560 * config/arm/arm.h (TARGET_NEON_FP): Removed conditional definition,
40561 define to zero if !TARGET_NEON.
40562 (TARGET_ARM_FP): Added !TARGET_SOFT_FLOAT into conditional definition.
40564 2015-02-04 Jan Hubicka <hubicka@ucw.cz>
40565 Trevor Saunders <tsaunders@mozilla.com>
40568 * tree-emultls.c (new_emutls_decl): Resolve alias after creating it.
40570 2015-02-04 Jan Hubicka <hubicka@ucw.cz>
40573 * ipa.c (symbol_table::remove_unreachable_nodes): Fix ordering issue
40574 when removing varpool nodes.
40576 2015-02-04 Jan Hubicka <hubicka@ucw.cz>
40579 * varpool.c (varpool_node::remove): Fix order of variables.
40581 2015-02-04 Jan Hubicka <hubicka@ucw.cz>
40584 * ipa-inline.c (inline_small_functions): Fix ordering issue between
40585 speculation resolution and key updates.
40587 2015-02-04 Jan Hubicka <hubicka@ucw.cz>
40589 * ipa-prop.c (update_indirect_edges_after_inlining): By more careful
40590 about not letting any speculative edges unupdated.
40592 2015-02-04 Jan Hubicka <hubicka@ucw.cz>
40595 * gcov-io.c (gcov_var): Export.
40597 2015-02-04 Jan Hubicka <hubicka@ucw.cz>
40599 PR middle-end/64922
40600 * ipa-prop.c (update_indirect_edges_after_inlining): Correctly update
40601 edges that become speculative.
40603 2015-02-04 Jakub Jelinek <jakub@redhat.com>
40605 * dwarf2out.c (is_fortran): Also return true for DW_LANG_Fortran03
40606 or DW_LANG_Fortran08.
40607 (lower_bound_default): Return 1 for DW_LANG_Fortran03 or
40609 (gen_compile_unit_die): Handle "GNU Fortran2003" and
40610 "GNU Fortran2008" language strings.
40611 * dbxout.c (get_lang_number): Use lang_GNU_Fortran.
40612 * langhooks.h (lang_GNU_Fortran): New prototype.
40613 * langhooks.c (lang_GNU_Fortran): New function.
40614 * config/rs6000/rs6000.c (rs6000_output_function_epilogue): Use
40617 2015-02-04 Eric Botcazou <ebotcazou@adacore.com>
40619 * config/sparc/sparc.c (RTX_OK_FOR_OFFSET_P): Fix off-by-one error.
40620 (RTX_OK_FOR_OLO10_P): Likewise.
40622 2015-02-04 Eric Botcazou <ebotcazou@adacore.com>
40624 * tree-ssa-loop-ivopts.c (get_address_cost): Use right mode for offset.
40626 2015-02-04 Jan Hubicka <hubicka@ucw.cz>
40628 PR middle-end/64922
40629 * gimple.c: Include gimple-ssa.h.
40630 (maybe_remove_unused_call_args): New function.
40631 * gimple.h (maybe_remove_unused_call_args): Declare.
40632 * cgraph.c (cgraph_edge::redirect_call_stmt_to_callee): Use it.
40633 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children): Likewise.
40634 * gimple-fold.c (gimple_fold_call): Likewise.
40636 2015-02-04 H.J. Lu <hongjiu.lu@intel.com>
40638 PR rtl-optimization/64905
40639 * lra-eliminations.c (setup_can_eliminate): Clear hard frame
40640 pointer alignment if it isn't needed.
40642 2015-02-04 Matthew Wahab <matthew.wahab@arm.com>
40644 * config/aarch64/aarch64-cores.def: Add cortex-a72 and
40645 cortex-a72.cortex-a53.
40646 * config/aarch64/aarch64-tune.md: Regenerate.
40647 * doc/invoke.texi (AArch64 Options/-mtune): Add "cortex-a72".
40649 2015-02-04 Nick Clifton <nickc@redhat.com>
40651 * config/rl78/rl78.c (rl78_note_reg_set): Note the use of REGs
40654 2015-02-04 Jakub Jelinek <jakub@redhat.com>
40656 * builtins.def (DEF_BUILTIN_CHKP): Define if not defined.
40657 (DEF_LIB_BUILTIN_CHKP, DEF_EXT_LIB_BUILTIN_CHKP): Redefine.
40658 (DEF_CHKP_BUILTIN): Define using DEF_BUILTIN_CHKP instead
40660 (BUILT_IN_MEMCPY, BUILT_IN_MEMMOVE, BUILT_IN_MEMSET, BUILT_IN_STRCAT,
40661 BUILT_IN_STRCHR, BUILT_IN_STRCPY, BUILT_IN_STRLEN): Use
40662 DEF_LIB_BUILTIN_CHKP macro instead of DEF_LIB_BUILTIN.
40663 (BUILT_IN_MEMCPY_CHK, BUILT_IN_MEMMOVE_CHK, BUILT_IN_MEMPCPY_CHK,
40664 BUILT_IN_MEMPCPY, BUILT_IN_MEMSET_CHK, BUILT_IN_STPCPY_CHK,
40665 BUILT_IN_STPCPY, BUILT_IN_STRCAT_CHK, BUILT_IN_STRCPY_CHK): Use
40666 DEF_EXT_LIB_BUILTIN_CHKP macro instead of DEF_EXT_LIB_BUILTIN.
40667 * tree-core.h (enum built_in_function): In between
40668 BEGIN_CHKP_BUILTINS and END_CHKP_BUILTINS only define enum values
40669 for builtins that use DEF_BUILTIN_CHKP macro.
40671 2015-02-04 Alexandre Oliva <aoliva@redhat.com>
40674 * cfgexpand.c (expand_debug_expr): Compute unsignedp from
40675 operands for tcc_comparison exprs. Fix typos.
40678 * simplify-rtx.c (simplify_binary_operation_1): Simplify one
40679 of two XORs that have an intervening AND or IOR.
40682 * simplify-rtx.c (simplify_binary_operation_1): Rewrite
40683 simplification of XOR of AND to not allocate new rtx before
40684 committing to a simplification.
40686 2015-02-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
40688 * config/aarch64/aarch64-ldpstp.md: Use std::swap instead of
40689 manual swaps in all peepholes.
40691 2015-02-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
40693 * config/aarch64/aarch64.c (aarch64_evpc_ext): Use std::swap instead
40694 of manual swapping implementation.
40695 (aarch64_expand_vec_perm_const_1): Likewise.
40697 2015-02-04 James Greenhalgh <james.greenhalgh@arm.com>
40699 * config/aarch64/aarch64.c (NAMED_PARAM): Delete it.
40700 (generic_addrcost_table): Remove NAMED_PARAM.
40701 (cortexa57_addrcost_table): Likewise.
40702 (xgene1_addrcost_table): Likewise.
40703 (generic_regmove_table): Likewise.
40704 (cortexa53_regmove_table): Likewise.
40705 (xgene1_regmove_table): Likewise.
40706 (generic_vector_table): Likewise.
40707 (cortexa57_vector_table): Likewise.
40708 (xgene1_vector_table): Likewise.
40709 (generic_tunings): Likewise.
40710 (cortexa53_tunings): Likewise.
40711 (cortexa57_tunings): Likewise.
40712 (xgene1_tunings): Likewise.
40714 2015-02-04 Matthew Wahab <matthew.wahab@arm.com>
40716 * config/arm/arm-cores.def: Add cortex-a72 and
40717 cortex-a72.cortex-a53.
40718 * config/arm/bpabi.h (BE8_LINK_SPEC): Likewise.
40719 * config/arm/t-aprofile (MULTILIB_MATCHES): Likewise.
40720 * config/arm/arm-tune.md: Regenerate.
40721 * config/arm/arm-tables.opt: Add entries for "cortex-a72" and
40722 "cortex-a72.cortex-a53".
40723 * doc/invoke.texi (ARM Options/-mtune): Likewise.
40725 2015-02-04 Nick Clifton <nickc@redhat.com>
40728 * config/fr30/predicates.md (di_operand): Add SUBREG to the list
40730 (nonimmediate_di_operand): Likewise.
40732 * config/msp430/msp430.c (msp430_use_f5_series_hwmult): Add more
40733 prefixes of known F5 using MSP430 MCUs.
40735 2015-02-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
40737 * config/aarch64/aarch64-simd-builtins.def (sqrt): Use BUILTIN_VDQF_DF.
40738 * config/aarch64/arm_neon.h (vsqrt_f64): Use __builtin_aarch64_sqrtdf
40739 instead of __builtin_sqrt.
40741 2015-02-04 Ilya Enkovich <ilya.enkovich@intel.com>
40743 * varasm.c (do_assemble_alias): Follow transparent alias
40745 (default_assemble_visibility): Follow transparent alias
40746 chain for decl name.
40748 2015-02-04 Thomas Preud'homme <thomas.preudhomme@arm.com>
40750 PR middle-end/62103
40751 * tree-ssa-sccvn.c (fully_constant_vn_reference_p): Use TYPE_PRECISION
40752 to compute size of referenced value in the constant case.
40754 2015-02-03 Jakub Jelinek <jakub@redhat.com>
40756 PR rtl-optimization/64756
40757 * cse.c (invalidate_dest): New function.
40758 (cse_insn): Use it. If dest != SET_DEST (sets[i].rtl) and
40759 HASH (SET_DEST (sets[i].rtl), mode) computation sets do_not_record,
40760 invalidate and do not record it.
40762 2015-02-03 Oleg Endo <olegendo@gcc.gnu.org>
40765 * config/sh/sync.md (atomic_<fetchop_name><mode>_hard,
40766 atomic_not<mode>_hard, atomic_<fetchop_name><mode>_soft_tcb,
40767 atomic_not<mode>_soft_tcb, atomic_nand<mode>_hard,
40768 atomic_nand<mode>_soft_tcb): New insns.
40769 (atomic_fetch_<fetchop_name>si_hard): Convert to insn_and_split.
40770 Split into atomic_<fetchop_name>_fetchsi_hard if operands[0] is unused.
40771 (define_insn "atomic_fetch_notsi_hard): Convert to insn_and_split.
40772 Split into atomic_not_fetchsi_hard if operands[0] is unused.
40773 (atomic_fetch_<fetchop_name><mode>_hard): Convert to insn_and_split.
40774 Split into atomic_<fetchop_name><mode>_hard if operands[0] is unused.
40775 (atomic_fetch_not<mode>_hard): Convert to insn_and_split. Split into
40776 atomic_not<mode>_hard if operands[0] is unused.
40777 (atomic_fetch_<fetchop_name><mode>_soft_gusa): Convert to
40778 insn_and_split. Split into atomic_<fetchop_name>_fetch<mode>_soft_gusa
40779 if operands[0] is unused.
40780 (atomic_fetch_not<mode>_soft_gusa): Convert to insn_and_split. Split
40781 into atomic_not_fetch<mode>_soft_gusa if operands[0] is unused.
40782 (atomic_fetch_<fetchop_name><mode>_soft_tcb): Convert to insn_and_split.
40783 Split into atomic_<fetchop_name><mode>_soft_tcb if operands[0] is
40785 (atomic_fetch_not<mode>_soft_tcb): Convert to insn_and_split. Split
40786 into atomic_not<mode>_soft_tcb if operands[0] is unused.
40787 (atomic_fetch_<fetchop_name><mode>_soft_imask): Convert to
40788 insn_and_split. Split into atomic_<fetchop_name>_fetch<mode>_soft_imask
40789 if operands[0] is unused.
40790 (atomic_fetch_not<mode>_soft_imask): Convert to insn_and_split. Split
40791 into atomic_not_fetch<mode>_soft_imask is operands[0] is unused.
40792 (atomic_fetch_nandsi_hard): Convert to insn_and_split. Split into
40793 atomic_nand_fetchsi_hard if operands[0] is unused.
40794 (atomic_fetch_nand<mode>_hard): Convert to insn_and_split. Split into
40795 atomic_nand<mode>_hard if operands[0] is unused.
40796 (atomic_fetch_nand<mode>_soft_gusa): Convert to insn_and_split. Split
40797 into atomic_nand_fetch<mode>_soft_gusa if operands[0] is unused.
40798 (atomic_fetch_nand<mode>_soft_tcb): Convert to insn_and_split. Split
40799 into atomic_nand<mode>_soft_tcb if operands[0] is unused.
40800 (atomic_fetch_nand<mode>_soft_imask): Convert to insn_and_split. Split
40801 into atomic_nand_fetch<mode>_soft_imask if operands[0] is unused.
40802 (atomic_<fetchop_name>_fetch<mode>_hard): Convert to insn_and_split.
40803 Split into atomic_<fetchop_name><mode>_hard if operands[0] is unused.
40804 (atomic_not_fetch<mode>_hard): Convert to insn_and_split. Split into
40805 atomic_not<mode>_hard if operands[0] is unused.
40806 (atomic_<fetchop_name>_fetch<mode>_soft_tcb): Convert to insn_and_split.
40807 Split into atomic_<fetchop_name><mode>_soft_tcb if operands[0] is
40809 (atomic_not_fetch<mode>_soft_tcb): Convert to insn_and_split. Split
40810 into atomic_not<mode>_soft_tcb if operands[0] is unused.
40811 (atomic_nand_fetch<mode>_hard): Convert to insn_and_split. Split into
40812 atomic_nand<mode>_hard if operands[0] is unused.
40813 (atomic_nand_fetch<mode>_soft_tcb): Convert to insn_and_split. Split
40814 into atomic_nand<mode>_soft_tcb if operands[0] is unused.
40816 2015-02-03 David Malcolm <dmalcolm@redhat.com>
40819 * Makefile.in (GCC_OBJS): Add gcc-main.o.
40820 * gcc-main.c: New file, containing "main" taken from gcc.c.
40821 * gcc.c (do_self_spec): Free decoded_options.
40822 (class driver): Move declaration to gcc.h.
40823 (main): Move declaration and implementation to new file
40825 (driver_get_configure_time_options): New function.
40826 * gcc.h (class driver): Move this declaration here, from
40828 (driver_get_configure_time_options): New declaration.
40830 2015-02-03 Jan Hubicka <hubicka@ucw.cz>
40832 * ipa-inline-analysis.c (simple_edge_hints): Fix check for
40833 cross-module inlining.
40834 * cgraph.h (cgraph_node): Add flag merged.
40835 * ipa-icf.c (sem_function::merge): Maintain it.
40837 2015-02-03 Richard Sandiford <richard.sandiford@arm.com>
40839 * config/arm/arm.c (thumb2_reorg): Test UNARY_P and BINARY_P
40840 instead of OBJECT_P.
40842 2015-02-03 Eric Botcazou <ebotcazou@adacore.com>
40845 * config/sparc/sparc.h (TARGET_HARD_MUL): Remove TARGET_V8PLUS.
40846 (TARGET_HARD_MUL32): Rewrite based on TARGET_HARD_MUL.
40847 * config/sparc/sparc.c (sparc_rtx_costs) <MULT>: Return costs based on
40848 int_mulX for integers in 64-bit mode if TARGET_HARD_MUL is not set.
40850 2015-02-03 Jakub Jelinek <jakub@redhat.com>
40853 * combine.c (reg_n_sets_max): New variable.
40854 (can_change_dest_mode, reg_nonzero_bits_for_combine,
40855 reg_num_sign_bit_copies_for_combine, get_last_value_validate,
40856 get_last_value): Use REG_N_SETS only on pseudos < reg_n_sets_max.
40857 (try_combine): Use INC_REG_N_SETS only on pseudos < reg_n_sets_max.
40858 (rest_of_handle_combine): Initialize reg_n_sets_max.
40860 2015-02-02 Jan Hubicka <hubicka@ucw.cz>
40862 * ipa-inline.c (early_inliner): Skip inlining only in always_inlined;
40863 if some always_inline was inlined, apply changes before inlining
40866 2015-02-02 David Malcolm <dmalcolm@redhat.com>
40869 * config/arm/arm.c (arm_option_override): Set
40870 arm_selected_arch/cpu/tune to NULL on entry.
40872 2015-02-02 Tejas Belagod <tejas.belagod@arm.com>
40873 Andrew Pinski <pinskia@gcc.gnu.org>
40874 Jakub Jelinek <jakub@gcc.gnu.org>
40877 * config/aarch64/aarch64.c (aarch64_classify_symbol): Fix large
40878 integer typing for small model. Use IN_RANGE.
40880 2015-02-02 Richard Biener <rguenther@suse.de>
40882 * tree-ssa-ccp.c (valueize_op_1): Always allow valueizing default-defs.
40883 * tree-vrp.c (vrp_valueize_1): Likewise.
40885 2015-02-02 Alan Modra <amodra@gmail.com>
40887 * config/rs6000/rs6000.c (rs6000_call_aix): Use unspec rather
40888 than mem for toc_restore.
40889 * config/rs6000/rs6000.md (UNSPEC_TOCSLOT): Define.
40890 (call_indirect_aix, call_value_indirect_aix): Adjust to suit.
40891 (call_indirect_elfv2, call_value_indirect_elfv2): Likewise.
40893 2015-02-01 David Edelsohn <dje.gcc@gmail.com>
40896 * config/rs6000/rs6000.c (rs6000_set_current_function): Handle
40897 explicit default options.
40899 2015-02-01 Jan Hubicka <hubicka@ucw.cz>
40902 * ipa-utils.c (ipa_merge_profiles): Add release argument.
40903 * ipa-icf.c (sem_function::merge): Do not release body when merging.
40904 * ipa-utils.h (ipa_merge_profiles): Update prototype.
40906 2015-02-01 Jakub Jelinek <jakub@redhat.com>
40909 * cfgexpand.c (deep_ter_debug_map): New variable.
40910 (avoid_deep_ter_for_debug): New function.
40911 (expand_debug_expr): If TERed SSA_NAME is in
40912 deep_ter_debug_map, use the corresponding DEBUG_EXPR_DECL
40913 instead of trying to expand SSA_NAME's def stmt.
40914 (expand_debug_locations): When expanding debug bind
40915 of a DEBUG_EXPR_DECL to corresponding SSA_NAME,
40916 temporarily remove the DEBUG_EXPR_DECL from deep_ter_debug_map's
40918 (pass_expand::execute): Call avoid_deep_ter_for_debug on
40919 all debug bind stmts. Delete deep_ter_debug_map after
40920 expand_debug_location if non-NULL and clear it.
40922 2015-02-01 Oleg Endo <olegendo@gcc.gnu.org>
40925 * config/sh/sync.md (atomic_fetch_notsi_hard,
40926 atomic_fetch_not<mode>_hard, atomic_fetch_not<mode>_soft_gusa,
40927 atomic_fetch_not<mode>_soft_tcb, atomic_fetch_not<mode>_soft_imask,
40928 atomic_not_fetchsi_hard, atomic_not_fetch<mode>_hard,
40929 atomic_not_fetch<mode>_soft_gusa, atomic_not_fetch<mode>_soft_tcb,
40930 atomic_not_fetch<mode>_soft_imask): New insns.
40932 2015-02-01 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
40934 * haifa-sched.c (INSN_RFS_DEBUG_ORIG_ORDER): New access macro.
40935 (rank_for_schedule_debug): Split from ...
40936 (rank_for_schedule): ... this.
40937 (ready_sort): Sort DEBUG_INSNs separately from normal INSNs.
40938 * sched-int.h (struct _haifa_insn_data): New field rfs_debug_orig_order.
40940 2015-01-31 Sandra Loosemore <sandra@codesourcery.com>
40942 * doc/md.texi (Machine Constraints): Alphabetize table by target.
40943 * doc/extend.texi (x86 Variable Attributes): Move section to
40944 correct alphabetization after renaming.
40945 (x86 Type Attributes): Likewise.
40946 (Target Builtins): Re-alphabetize menu.
40947 (x86 Built-in Functions): Move section to correct alphabetization
40949 (x86 transactional memory intrinsics): Likewise.
40950 * doc/invoke.texi (Option Summary): Re-alphabetize x86 Options
40951 and x86 Windows Options in table and menu.
40952 (x86 Options): Move section to correct alphabetization after
40954 (x86 Windows Options): Likewise.
40956 2015-01-31 Sandra Loosemore <sandra@codesourcery.com>
40958 * doc/extend.texi: Use "x86", "x86-32", and "x86-64" as the
40959 preferred names of the architecture and its 32- and 64-bit
40961 * doc/invoke.texi: Likewise.
40962 * doc/md.texi: Likewise.
40964 2015-01-31 Uros Bizjak <ubizjak@gmail.com>
40967 * config/i386/predicates.md (address_no_seg_operand): Reject
40968 non-CONST_INT_P operands in invalid mode.
40970 2015-01-31 Uros Bizjak <ubizjak@gmail.com>
40972 * config/i386/i386.md (*prefetch_prefetchw1): Remove mode of
40973 address_operand 0. Rename from *prefetch_prefetchwt1_<mode>.
40974 * config/i386/predicates.md (address_no_seg_operand): Call
40975 address_operand with VOIDmode.
40976 (vsib_address_operand): Ditto.
40977 (address_mpx_no_base_operand): Ditto.
40978 (address_mpx_no_index_operand): Ditto.
40980 2015-01-30 Vladimir Makarov <vmakarov@redhat.com>
40983 * lra-constraints.c (original_subreg_reg_mode): New.
40984 (simplify_operand_subreg): Try to simplify subreg of const. Use
40985 original_subreg_reg_mode for it.
40986 (swap_operands): Update original_subreg_reg_mode.
40987 (curr_insn_transform): Set up original_subreg_reg_mode.
40989 2015-01-30 Vladimir Makarov <vmakarov@redhat.com>
40992 * lra-constraints.c (prohibited_class_reg_set_mode_p): New
40994 (process_alt_operands): Use it.
40995 (curr_insn_transform): Check the optional reload pseudo class is
40998 2015-01-30 Joseph Myers <joseph@codesourcery.com>
41000 * diagnostic.c (fatal_error (const char *, ...)): Remove function.
41001 * diagnostic-core.h (fatal_error (const char *, ...)): Remove
41003 * toplev.h (init_asm_output): Update comment on use of
41004 UNKNOWN_LOCATION with fatal_error.
41005 * cgraph.c, collect-utils.c, collect2.c, config/arc/arc.c,
41006 config/arc/arc.md, config/avr/avr.c, config/c6x/c6x.h,
41007 config/darwin.c, config/host-darwin.c, config/i386/host-cygwin.c,
41008 config/i386/intelmic-mkoffload.c, config/nios2/nios2.c,
41009 config/nvptx/mkoffload.c, config/nvptx/nvptx.h,
41010 config/rs6000/host-darwin.c, config/rs6000/rs6000.c,
41011 config/s390/s390.c, gcc.c, gcov-io.h, gcov-tool.c, ggc-common.c,
41012 ggc-page.c, graph.c, ipa-inline-analysis.c, ipa-reference.c,
41013 lto-cgraph.c, lto-section-in.c, lto-streamer-in.c, lto-streamer.c,
41014 lto-wrapper.c, objc/objc-act.c, opts.c, passes.c, plugin.c,
41015 tlink.c, toplev.c, tree-streamer-in.c, varpool.c: All callers of
41016 fatal_error changed to pass input_location as first argument.
41018 2015-01-30 Martin Liska <mliska@suse.cz>
41020 * tree.h: Change GCC_VERSION >= 4004 to GCC_VERSION >= 4006
41021 in #pragma GCC diagnostic guards.
41023 2015-01-30 Richard Biener <rguenther@suse.de>
41025 PR tree-optimization/64829
41026 * tree-vect-patterns.c (vect_handle_widen_op_by_const): Do
41027 not add a widening conversion pattern but hand off extra
41028 widenings to callers.
41029 (vect_recog_widen_mult_pattern): Handle extra widening produced
41030 by vect_handle_widen_op_by_const.
41031 (vect_recog_widen_shift_pattern): Likewise.
41032 (vect_pattern_recog_1): Remove excess vertical space in dumping.
41033 * tree-vect-stmts.c (vect_mark_stmts_to_be_vectorized): Likewise.
41034 (vect_init_vector_1): Likewise.
41035 (vect_get_vec_def_for_operand): Likewise.
41036 (vect_finish_stmt_generation): Likewise.
41037 (vectorizable_load): Likewise.
41038 (vect_analyze_stmt): Likewise.
41039 (vect_is_simple_use): Likewise.
41041 2015-01-29 Jeff Law <law@redhat.com>
41043 * combine.c (try_combine): Fix typo in comment.
41045 2015-01-29 Segher Boessenkool <segher@kernel.crashing.org>
41048 * config.rs6000/rs6000.c (compute_vrsave_mask): Reverse loop order.
41049 (rs6000_stack_info): Add assert.
41050 (rs6000_output_savres_externs): New function, split off from...
41051 (rs6000_output_function_prologue): ... here. Do not call it for
41054 2015-01-29 Jeff Law <law@redhat.com>
41057 * combine.c (try_combine): If I0 is a memory load and I3 a store
41058 to a related address, increase the "goodness" of doing a 4-insn
41059 combination with I0-I3.
41060 (make_field_assignment): Handle SUBREGs in the ior+and case.
41062 2015-01-29 Yuri Rumyantsev <ysrumyan@gmail.com>
41064 PR tree-optimization/64746
41065 * tree-if-conv.c (mask_exists): New function.
41066 (predicate_mem_writes): Save created mask with given size for further
41068 (stmt_is_root_of_bool_pattern): Remove argument VAR and store to it.
41069 (ifcvt_repair_bool_pattern): Collect all statements that are root
41070 of bool pattern and use iterative algorithm to remove multiple uses
41071 of predicates, display number of required iterations.
41073 2015-01-29 Richard Biener <rguenther@suse.de>
41075 PR tree-optimization/64853
41076 * tree-vrp.c (vrp_valueize_1): Do not return anything if the
41077 stmt will get simulated again.
41078 * tree-ssa-ccp.c (valueize_op_1): Likewise.
41080 2015-01-29 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
41082 * config/arm/arm.c (arm_emit_multi_reg_pop): Simplify definition of
41083 return_in_pc. Remove redundant assignments.
41084 (thumb2_emit_ldrd_pop): Simplify definition of return_in_pc.
41085 (arm_expand_epilogue): Don't compare boolean with true in if condition.
41087 2015-01-29 Uros Bizjak <ubizjak@gmail.com>
41089 * config/i386/i386.c (ix86_mode_after): Make static.
41091 2015-01-29 Richard Biener <rguenther@suse.de>
41093 PR tree-optimization/64844
41094 * tree-vect-loop.c (vect_estimate_min_profitable_iters): Always
41095 dump cost model analysis.
41096 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment):
41097 Do not register adjusted load/store costs here.
41099 2015-01-29 Ilya Enkovich <ilya.enkovich@intel.com>
41100 Uros Bizjak <ubizjak@gmail.com>
41102 * config/i386/i386-protos.h (ix86_use_pseudo_pic_reg): New.
41103 * config/i386/i386.h (PIC_OFFSET_TABLE_REGNUM): Simplify by
41104 using x86_use_pseudo_pic_reg.
41105 * config/i386/i386.c (ix86_conditional_register_usage): Remove
41106 support for fixed PIC register.
41107 (ix86_use_pseudo_pic_reg): Not static any more.
41109 2015-01-29 Ilya Enkovich <ilya.enkovich@intel.com>
41111 PR middle-end/64805
41112 * ipa-inline.c (early_inliner): Rebuild IPA_REF_CHKP reference
41113 to avoid error in cgraph node verification.
41115 2015-01-29 Marek Polacek <polacek@redhat.com>
41117 * doc/standards.texi: Reflect that the default for C is gnu11.
41119 2015-01-29 Kaz Kojima <kkojima@gcc.gnu.org>
41122 * reorg.c (switch_text_sections_between_p): New function.
41123 (relax_delay_slots): Call it when testing if the jump insn
41124 is removable. Use targetm.can_follow_jump when testing if
41125 the conditional branch can follow an unconditional jump.
41127 2015-01-27 Caroline Tice <cmtice@google.com>
41129 Committing VTV Cywin/Ming patch for Patrick Wollgast
41130 * config/i386/cygwin.h (STARTFILE_SPEC): Add vtv_start.o,
41131 if -fvtable-verify=preinit/std is used.
41132 * config/i386/mingw-w64.h (STARTFILE_SPEC): Likewise.
41133 * config/i386/mingw32.h (STARTFILE_SPEC): Likewise.
41134 * config/i386/cygwin.h (ENDFILE_SPEC): Add vtv_end.o,
41135 if -fvtable-verify=preinit/std is used.
41136 * config/i386/mingw32.h (ENDFILE_SPEC): Likewise.
41137 * config/i386/cygwin.h (LIB_SPEC): Pass -lvtv and -lpsapi,
41138 if -fvtable-verify=preinit/std is used.
41139 * config/i386/mingw-w64.h (LIB_SPEC): Likewise.
41140 * config/i386/mingw32.h (LIB_SPEC): Likewise.
41141 * varasm.c (assemble_variable): Add code to properly set the comdat
41142 section and name for the .vtable_map_vars section in case the
41143 target is PE or COFF.
41145 2015-01-29 Jan Hubicka <hubicka@ucw.cz>
41148 * cgraphunit.c (init_lowered_empty_function): Add CoUNT parameter;
41149 make sane BB profile.
41150 (cgraph_node::expand_thunk): Make sane BB profile.
41151 (cgraph_node::create_wrapper): Do not set call_stmt_cannot_inline_p.
41152 * cgraph.h (init_lowered_empty_function): Update prototype.
41153 * config/i386/i386.c (make_resolver_func): Update call.
41154 * predict.c (gate): Disable branch prediction pass if
41155 profile is already there.
41157 2015-01-29 Jan Hubicka <hubicka@ucw.cz>
41159 * optc-save-gen.awk: flag_fp_contract_mode is no longer speical.
41160 * opth-gen.awk: Likewise.
41161 * common.opt: Mark flag_fp_contract_mode as Optimization.
41163 2015-01-29 Bernd Edlinger <bernd.edlinger@hotmail.de>
41165 * config/i386/cygwin.h (LIBGCJ_SONAME): Set libgcj version to -16.
41166 * config/i386/mingw32.h (LIBGCJ_SONAME): Set libgcj version to -16.
41168 2015-01-28 Oleg Endo <olegendo@gcc.gnu.org>
41171 * config/sh/predicates.md (atomic_arith_operand,
41172 atomic_logical_operand): Remove.
41173 * config/sh/sync.md (fetchop_predicate, fetchop_constraint): Remove.
41174 (atomic_arith_operand_0): New predicate.
41175 (atomic_compare_and_swap<mode>): Use arith_reg_dest for output values.
41176 Use atomic_arith_operand_0 for input values.
41177 (atomic_compare_and_swapsi_hard, atomic_compare_and_swap<mode>_hard,
41178 atomic_compare_and_swap<mode>_soft_gusa,
41179 atomic_compare_and_swap<mode>_soft_tcb,
41180 atomic_compare_and_swap<mode>_soft_imask): Use arith_reg_dest and
41181 arith_reg_operand instead of register_operand.
41182 (atomic_exchange<mode>): Use arith_reg_dest for output value. Use
41183 atomic_arith_operand_0 for newval input.
41184 (atomic_exchangesi_hard, atomic_exchange<mode>_hard,
41185 atomic_exchange<mode>_soft_gusa, atomic_exchange<mode>_soft_tcb,
41186 atomic_exchange<mode>_soft_imask): Use arith_reg_dest and
41187 arith_reg_operand instead of register_operand.
41188 (atomic_arith_operand_1, atomic_logical_operand_1): New predicates.
41189 fetchop_predicate_1, fetchop_constraint_1_llcs,
41190 fetchop_constraint_1_gusa, fetchop_constraint_1_tcb,
41191 fetchop_constraint_1_imask): New code iterator attributes.
41192 (atomic_fetch_<fetchop_name><mode>): Use arith_reg_dest instead of
41193 register_operand. Use fetchop_predicate_1.
41194 (atomic_fetch_<fetchop_name>si_hard,
41195 atomic_fetch_<fetchop_name><mode>_hard): Use arith_reg_dest instead of
41196 register_operand. Use fetchop_predicate_1, fetchop_constraint_1_llcs.
41197 (atomic_fetch_<fetchop_name><mode>_soft_gusa): Use arith_reg_dest
41198 and arith_reg_operand instead of register_operand. Use
41199 fetchop_predicate_1, fetchop_constraint_1_gusa.
41200 (atomic_fetch_<fetchop_name><mode>_soft_tcb): Use arith_reg_dest
41201 and arith_reg_operand instead of register_operand. Use
41202 fetchop_predicate_1, fetchop_constraint_1_tcb. Adjust asm sequence
41204 (atomic_fetch_<fetchop_name><mode>_soft_imask): Use arith_reg_dest
41205 and arith_reg_operand instead of register_operand. Use
41206 fetchop_predicate_1, fetchop_constraint_1_imask. Adjust asm sequence
41208 (atomic_fetch_nand<mode>): Use arith_reg_dest instead of
41209 register_operand. Use atomic_logical_operand_1.
41210 (atomic_fetch_nandsi_hard, atomic_fetch_nand<mode>_hard,
41211 atomic_fetch_nand<mode>_soft_gusa): Use arith_reg_dest and
41212 arith_reg_operand instead of register_operand.
41213 (atomic_fetch_nand<mode>_soft_tcb, atomic_fetch_nand<mode>_soft_imask):
41214 Use arith_reg_dest and arith_reg_operand instead of register_operand.
41215 Use logical_operand and rK08. Adjust asm sequence to allow R0 usage.
41216 (atomic_<fetchop_name>_fetch<mode>): Use arith_reg_dest instead of
41217 register_operand. Use fetchop_predicate_1.
41218 (atomic_<fetchop_name>_fetchsi_hard,
41219 atomic_<fetchop_name>_fetch<mode>_hard): Use arith_reg_dest and
41220 arith_reg_operand instead of register_operand. Use fetchop_predicate_1,
41221 fetchop_constraint_1_llcs.
41222 (atomic_<fetchop_name>_fetch<mode>_soft_gusa): Use arith_reg_dest and
41223 arith_reg_operand instead of register_operand. Use fetchop_predicate_1,
41224 fetchop_constraint_1_gusa.
41225 (atomic_<fetchop_name>_fetch<mode>_soft_tcb): Use arith_reg_dest and
41226 arith_reg_operand instead of register_operand. Use fetchop_predicate_1,
41227 fetchop_constraint_1_tcb. Adjust asm sequence to allow R0 usage.
41228 (atomic_<fetchop_name>_fetch<mode>_soft_imask): Use arith_reg_dest and
41229 arith_reg_operand instead of register_operand. Use fetchop_predicate_1,
41230 fetchop_constraint_1_imask. Adjust asm sequence to allow R0 usage.
41231 (atomic_nand_fetch<mode>): Use arith_reg_dest instead of
41232 register_operand. Use atomic_logical_operand_1.
41233 (atomic_nand_fetchsi_hard, atomic_nand_fetch<mode>_hard,
41234 atomic_nand_fetch<mode>_soft_gusa): Use arith_reg_dest and
41235 arith_reg_operand instead of register_operand.
41236 (atomic_nand_fetch<mode>_soft_tcb): Use arith_reg_dest and
41237 arith_reg_operand instead of register_operand. Use logical_operand
41238 and K08. Adjust asm sequence to allow R0 usage.
41239 (atomic_nand_fetch<mode>_soft_imask): Use arith_reg_dest and
41240 arith_reg_operand instead of register_operand. Use logical_operand
41243 2015-01-28 Jakub Jelinek <jakub@redhat.com>
41246 * dwarf2out.c (add_AT_wide, mem_loc_descriptor, loc_descriptor):
41247 Use ggc_alloc<wide_int> instead of ggc_cleared_alloc<wide_int>.
41248 (attr_checksum, attr_checksum_ordered, hash_loc_operands): Checksum
41249 only get_full_len HOST_WIDE_INTs from get_val () array rather than
41250 all bits in *val_wide.
41252 2015-01-28 Jan Hubicka <hubicka@ucw.cz>
41254 * varpool.c (tls_model_names): Fix names.
41255 (varpool_node::dump): Dump tls- prefix for tls models.
41257 2015-01-28 Thomas Schwinge <thomas@codesourcery.com>
41258 Bernd Schmidt <bernds@codesourcery.com>
41259 Nathan Sidwell <nathan@codesourcery.com>
41261 * config/nvptx/mkoffload.c: New file.
41262 * config/nvptx/t-nvptx: Add build rules for it.
41263 * config.gcc <nvptx-*> [$enable_as_accelerator = yes]
41264 (extra_programs): Add mkoffload.
41265 * config/nvptx/nvptx.c (nvptx_record_offload_symbol): New
41267 (TARGET_RECORD_OFFLOAD_SYMBOL): Define macro to use it.
41269 2015-01-28 Yuri Rumyantsev <ysrumyan@gmail.com>
41271 PR middle-end/64809
41272 * cfgexpand.c (reorder_operands): Skip debug gimples.
41274 2015-01-28 Ilya Enkovich <ilya.enkovich@intel.com>
41276 PR tree-optimization/64277
41277 * tree-ssa-loop-niter.c (record_nonwrapping_iv): Use base
41278 range info when possible to refine estimation.
41280 2015-01-28 Thomas Preud'homme <thomas.preudhomme@arm.com>
41282 PR tree-optimization/64718
41283 * tree-ssa-math-opts.c (pass_optimize_bswap::execute): Make bswap_type
41284 be a 16bit unsigned integer when n->range is 16.
41285 (bswap_replace): Convert src to that type if necessary for all bswap
41286 sizes. Fix rotation right notation in nearby comment. Use bswap_type
41287 set in pass_optimize_bswap::execute ().
41289 2015-01-28 James Greenhalgh <james.greenhalgh@arm.com>
41291 * config/aarch64/aarch64-simd.md (aarch64_abs<mode>): New.
41292 * config/aarch64/aarch64-simd-builtins.def (abs): Split by
41293 integer and floating point variants.
41294 * config/aarch64/iterators.md (unspec): Add UNSPEC_ABS.
41296 2015-01-28 Robert Suchanek <robert.suchanek@imgtec.com>
41298 * config/mips/mips.c (mips_hard_regno_mode_ok_p): Prohibit accumulators
41299 for all vector modes.
41301 2015-01-28 Jakub Jelinek <jakub@redhat.com>
41304 * doc/sourcebuild.texi (comdat_group): Document.
41306 2015-01-28 Terry Guo <terry.guo@arm.com>
41308 * config/arm/thumb1.md (*thumb1_movpc_insn): New insn pattern.
41310 2015-01-27 David Malcolm <dmalcolm@redhat.com>
41312 * toplev.c (print_version): Add param "show_global_state", and
41313 only print GGC and plugin information if it is true.
41314 (init_asm_output): Pass in "true" for the new param when calling
41316 (process_options): Likewise.
41317 (toplev::main): Likewise.
41318 * toplev.h (print_version): Add new param to decl.
41320 2015-01-27 Jan Hubicka <hubicka@ucw.cz>
41324 * tree.c (lookup_binfo_at_offset): New function.
41325 (get_binfo_at_offset): Use it.
41327 2015-01-27 Jan Hubicka <hubicka@ucw.cz>
41330 * gimple-fold.c (gimple_get_virt_method_for_vtable): Remove assert
41331 on vtable being vtable.
41333 2015-01-27 Dominik Vogt <vogt@linux.vnet.ibm.com>
41335 * doc/extend.texi: s/390: Update documentation of hotpatch attribute.
41336 * doc/invoke.texi (-mhotpatch): s/390: Update documentation of
41337 -mhotpatch= option.
41338 * config/s390/s390.opt (mhotpatch): s/390: Remove -mhotpatch and
41339 -mno-hotpatch options. Change syntax of -mhotpatch= option.
41340 * config/s390/s390.c (s390_hotpatch_trampoline_halfwords_default):
41342 (s390_hotpatch_trampoline_halfwords_max): Renamed.
41343 (s390_hotpatch_hw_max): New name.
41344 (s390_hotpatch_trampoline_halfwords): Renamed.
41345 (s390_hotpatch_hw_before_label): New name.
41346 (get_hotpatch_attribute): Removed.
41347 (s390_hotpatch_hw_after_label): New name.
41348 (s390_handle_hotpatch_attribute): Add second parameter to hotpatch
41350 (s390_attribute_table): Ditto.
41351 (s390_function_num_hotpatch_trampoline_halfwords): Renamed.
41352 (s390_function_num_hotpatch_hw): New name.
41353 Remove special handling of inline functions and hotpatching.
41354 Return number of nops before and after the function label.
41355 (s390_can_inline_p): Removed.
41356 (s390_asm_output_function_label): Emit a configurable number of nops
41357 after the function label.
41358 (s390_option_override): Update -mhotpatch= syntax and remove -mhotpatch.
41359 (TARGET_CAN_INLINE_P) Removed.
41360 (TARGET_FUNCTION_ATTRIBUTE_INLINABLE_P): New.
41362 2015-01-27 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
41363 Jiong Wang <jiong.wang@arm.com>
41365 * config/aarch64/aarch64.md (tb<optab><mode>1): Clobber CC reg instead
41367 (cb<optab><mode>1): Likewise.
41368 * config/aarch64/iterators.md (bcond): New define_code_attr.
41370 2015-01-27 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
41372 * config/s390/s390.c (s390_memory_move_cost): Increase costs for
41375 2015-01-27 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
41377 * config/s390/s390.c (s390_register_move_cost): Increase costs for
41380 2015-01-27 Richard Biener <rguenther@suse.de>
41382 * tree-vrp.c (update_value_range): Intersect the range with
41383 old recorded SSA name range information.
41385 2015-01-27 Nick Clifton <nickc@redhat.com>
41387 * config/rl78/rl78.c (rl78_expand_prologue): In G10 mode push the
41388 BC, DE and HL registers directly, not via AX.
41389 When decrementing the stack pointer by a large amount, transfer SP
41390 into AX and perform the subtraction there.
41391 (rl78_expand_epilogue): Perform the inverse of the above
41394 2015-01-27 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
41396 * config/i386/sysv4.h (CRT_GET_RFIB_DATA): Remove.
41398 2015-01-27 Jakub Jelinek <jakub@redhat.com>
41399 Yury Gribov <y.gribov@samsung.com>
41402 * ubsan.c (ubsan_source_location): Refactor code.
41403 (ubsan_type_descriptor): Update type size. Refactor code.
41405 2015-01-27 Richard Biener <rguenther@suse.de>
41407 PR tree-optimization/56273
41408 PR tree-optimization/59124
41409 PR tree-optimization/64277
41410 * tree-vrp.c (vrp_finalize): Emit array-bound warnings only
41411 from the first VRP pass.
41413 2015-01-27 Jakub Jelinek <jakub@redhat.com>
41416 * cgraphunit.c (cgraph_node::expand_thunk): If not this_adjusting,
41417 handle the first argument in the same loop as all the other arguments.
41419 PR rtl-optimization/61058
41420 * jump.c (cleanup_barriers): Update basic block boundaries
41421 if BLOCK_FOR_INSN is non-NULL on PREV.
41423 2015-01-27 Ilya Enkovich <ilya.enkovich@intel.com>
41425 * tree-chkp.c (chkp_call_returns_bounds_p): Fix handling of
41426 bounds narrowing, already instrumented calls and calls to
41427 not instrumentable functions.
41429 2015-01-27 Jakub Jelinek <jakub@redhat.com>
41431 PR tree-optimization/64807
41432 * wide-int.cc (wi::divmod_internal): Clear
41433 b_dividend[dividend_blocks_needed].
41435 2015-01-26 DJ Delorie <dj@redhat.com>
41437 * config/rl78/rl78.c (move_elim_pass): Don't optimize away
41438 volatile memory references.
41440 2015-01-26 Oleg Endo <olegendo@gcc.gnu.org>
41443 * config/sh/sh.c (sh_split_treg_set_expr): Invoke emit_insn before
41445 * config/sh/sh.md (tstsi_t): Don't try to optimize constant with right
41446 shifts if it already fits into K08.
41448 2015-01-26 Jakub Jelinek <jakub@redhat.com>
41451 * ipa-inline.c (inline_small_functions): Print "unknown" even
41452 if edge->call_stmt is non-NULL, but has builtins or unknown
41455 PR middle-end/64421
41456 * omp-low.c (simd_clone_mangle): If DECL_ASSEMBLER_NAME starts
41457 with asterisk, skip the first character.
41459 2015-01-26 H.J. Lu <hongjiu.lu@intel.com>
41462 * config/i386/i386 (feature_priority): Revert the last P_POPCNT
41465 2015-01-26 Uros Bizjak <ubizjak@gmail.com>
41468 * config/i386/i386.md (*movdi_internal): Also check operand 0
41469 to determine TYPE_LEA operand.
41470 (*movsi_internal): Ditto.
41472 2015-01-26 Jakub Jelinek <jakub@redhat.com>
41474 * config/rs6000/rs6000-cpus.def (POWERPC_MASKS): Add
41475 OPTION_MASK_QUAD_MEMORY_ATOMIC.
41477 2015-01-26 Renlin Li <renlin.li@arm.com>
41479 * config/aarch64/aarch64.c (aarch64_load_symref_appropriately): Correct
41481 * config/aarch64/aarch64.md (tlsle_small_<mode>): Add left shift 12-bit
41484 2015-01-26 Richard Biener <rguenther@suse.de>
41486 PR middle-end/64764
41487 * tree-ssa-uninit.c (is_pred_expr_subset_of): Handle
41488 combining two BIT_AND_EXPR predicates.
41490 2015-01-26 H.J. Lu <hongjiu.lu@intel.com>
41493 * tree-ssa-structalias.c (new_var_info): Initialize ruid.
41495 2015-01-26 Terry Guo <terry.guo@arm.com>
41497 * config/arm/arm.c (arm_file_start): Update the assignment of
41498 Tag_ABI_HardFP_use.
41500 2015-01-25 James Greenhalgh <james.greenhalgh@arm.com>
41502 * config/arm/arm-cores.def (cortex-a57): Use the new Cortex-A57
41504 config/arm/arm.md: Include the new Cortex-A57 model.
41505 (generic_sched): Don't use generic_sched when tuning for
41508 2015-01-25 Allan Sandfeld Jensen <sandfeld@kde.org>
41509 Uros Bizjak <ubizjak@gmail.com>
41511 * config/i386/i386.c (get_builtin_code_for_version): Add
41512 support for BMI and BMI2 multiversion functions.
41514 2015-01-25 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
41516 * emit-rtl.h (store_bit_field): Move prototype to expmed.h.
41517 (extract_bit_field): Likewise.
41518 (extract_low_bits): Likewise.
41519 (expand_mult): Likewise.
41520 (expand_mult_highpart_adjust): Likewise.
41522 2015-01-24 H.J. Lu <hongjiu.lu@intel.com>
41524 * config/i386/driver-i386.c (host_detect_local_cpu): Check new
41525 Silvermont, Haswell, Broadwell and Knights Landing model numbers.
41526 * config/i386/i386.c (processor_model): Add
41527 M_INTEL_COREI7_BROADWELL.
41528 (arch_names_table): Add "broadwell".
41530 2015-01-24 Oleg Endo <olegendo@gcc.gnu.org>
41539 * config/sh/sh-protos.h
41540 (sh_extending_set_of_reg::can_use_as_unextended_reg,
41541 sh_extending_set_of_reg::use_as_unextended_reg,
41542 sh_is_nott_insn, sh_movt_set_dest, sh_movrt_set_dest, sh_is_movt_insn,
41543 sh_is_movrt_insn, sh_insn_operands_modified_between_p,
41544 sh_reg_dead_or_unused_after_insn, sh_in_recog_treg_set_expr,
41545 sh_recog_treg_set_expr, sh_split_treg_set_expr): New functions.
41546 (sh_treg_insns): New class.
41547 * config/sh/sh.c (TARGET_LEGITIMATE_COMBINED_INSN): Define target hook.
41548 (scope_counter): New class.
41549 (sh_legitimate_combined_insn, sh_is_nott_insn, sh_movt_set_dest,
41550 sh_movrt_set_dest, sh_reg_dead_or_unused_after_insn,
41551 sh_extending_set_of_reg::can_use_as_unextended_reg,
41552 sh_extending_set_of_reg::use_as_unextended_reg, sh_recog_treg_set_expr,
41553 sh_in_recog_treg_set_expr, sh_try_split_insn_simple,
41554 sh_split_treg_set_expr): New functions.
41555 (addsubcosts): Handle treg_set_expr.
41556 (sh_rtx_costs): Handle IF_THEN_ELSE and ZERO_EXTRACT.
41557 (sh_rtx_costs): Use arith_reg_operand in SIGN_EXTEND and ZERO_EXTEND.
41558 (sh_rtx_costs): Handle additional bit test patterns in EQ and AND cases.
41559 (sh_insn_operands_modified_between_p): Make non-static.
41560 * config/sh/predicates.md (zero_extend_movu_operand): Allow
41561 simple_mem_operand in addition to displacement_mem_operand.
41562 (zero_extend_operand): Don't allow zero_extend_movu_operand.
41563 (treg_set_expr, treg_set_expr_not_const01,
41564 arith_reg_or_treg_set_expr): New predicates.
41565 * config/sh/sh.md (tstsi_t): Use arith_reg_operand and
41566 arith_or_int_operand instead of logical_operand. Convert to
41567 insn_and_split. Try to optimize constant operand in splitter.
41568 (tsthi_t, tstqi_t): Fold into *tst<mode>_t. Convert to insn_and_split.
41569 (*tstqi_t_zero): Delete.
41570 (*tst<mode>_t_subregs): Add !sh_in_recog_treg_set_expr split condition.
41571 (tstsi_t_and_not): Delete.
41572 (tst<mode>_t_zero_extract_eq): Rename to *tst<mode>_t_zero_extract.
41573 Convert to insn_and_split.
41574 (unnamed split, tstsi_t_zero_extract_xor,
41575 tstsi_t_zero_extract_subreg_xor_little,
41576 tstsi_t_zero_extract_subreg_xor_big): Delete.
41577 (*tstsi_t_shift_mask): New insn_and_split.
41578 (cmpeqsi_t, cmpgesi_t): Add new split for const_int 0 operands and try
41579 to recombine with surrounding insns when splitting.
41580 (*negtstsi): Add !sh_in_recog_treg_set_expr condition.
41581 (cmp_div0s_0, cmp_div0s_1, *cmp_div0s_0, *cmp_div0s_1): Rewrite as ...
41582 (cmp_div0s, *cmp_div0s_1, *cmp_div0s_2, *cmp_div0s_3, *cmp_div0s_4,
41583 *cmp_div0s_5, *cmp_div0s_6): ... these new insn_and_split patterns.
41584 (*cbranch_div0s: Delete.
41585 (*addc): Convert to insn_and_split. Use treg_set_expr as 3rd operand.
41586 Try to recombine with surrounding insns when splitting. Add operand
41588 (*addc_t_r, *addc_r_t): Use treg_set_expr_not_const01.
41589 (*addc_r_r_1, *addc_r_lsb, *addc_r_r_lsb, *addc_r_lsb_r, *addc_r_msb,
41590 *addc_r_r_msb, *addc_2r_msb): Delete.
41591 (*addc_2r_lsb): Rename to *addc_2r_t. Use treg_set_expr. Add operand
41593 (*addc_negreg_t): New insn_and_split.
41594 (*subc): Convert to insn_and_split. Use treg_set_expr as 3rd operand.
41595 Try to recombine with surrounding insns when splitting.
41596 Add operand order variants.
41597 (*subc_negt_reg, *subc_negreg_t, *reg_lsb_t, *reg_msb_t): New
41598 insn_and_split patterns.
41599 (*rotcr): Use arith_reg_or_treg_set_expr. Try to recombine with
41600 surrounding insns when splitting.
41601 (unnamed rotcr split): Use arith_reg_or_treg_set_expr.
41602 (*rotcl): Likewise. Add zero_extract variant.
41603 (*ashrsi2_31): New insn_and_split.
41604 (*negc): Convert to insn_and_split. Use treg_set_expr.
41605 (*zero_extend<mode>si2_disp_mem): Update comment.
41606 (movrt_negc, *movrt_negc, nott): Add !sh_in_recog_treg_set_expr split
41608 (*mov_t_msb_neg, mov_neg_si_t): Use treg_set_expr. Try to recombine
41609 with surrounding insns when splitting.
41610 (any_treg_expr_to_reg): New insn_and_split.
41611 (*neg_zero_extract_0, *neg_zero_extract_1, *neg_zero_extract_2,
41612 *neg_zero_extract_3, *neg_zero_extract_4, *neg_zero_extract_5,
41613 *neg_zero_extract_6, *zero_extract_0, *zero_extract_1,
41614 *zero_extract_2): New single bit zero extract patterns.
41615 (bld_reg, *bld_regqi): Fold into bld<mode>_reg.
41616 (*get_thread_pointersi, store_gbr, *mov<mode>_gbr_load,
41617 *mov<mode>_gbr_load, *mov<mode>_gbr_load, *mov<mode>_gbr_load,
41618 *movdi_gbr_load): Use arith_reg_dest instead of register_operand for
41620 (set_thread_pointersi, load_gbr): Use arith_reg_operand instead of
41621 register_operand for set source.
41623 2015-01-23 Jan Hubicka <hubicka@ucw.cz>
41625 * i386.opt (prefetch_sse): New targetsave.
41626 * i386.c (ix86_function_specific_save): Save prefetch_sse.
41627 (ix86_function_specific_restore): Restore prefetch_sse and initialize
41628 ix86_cost/ix86_tune_cost.
41630 2015-01-23 David Malcolm <dmalcolm@redhat.com>
41632 * config/rs6000/rs6000.c (rs6000_output_function_epilogue):
41633 Support the JIT by using 0 as the language type.
41635 2015-01-23 Vladimir Makarov <vmakarov@redhat.com>
41638 * lra-lives.c (make_hard_regno_born): Add parameter. Don't make
41639 REAL_PIC_OFFSET_TABLE_REGNUM conflicting with pic offset pseudo.
41640 (mark_regno_live, process_bb_lives): Pass new parameter value to
41641 make_hard_regno_born.
41643 2015-01-23 Jakub Jelinek <jakub@redhat.com>
41645 PR rtl-optimization/63637
41646 PR rtl-optimization/60663
41647 * cse.c (merge_equiv_classes): Set new_elt->cost to MAX_COST
41648 if elt->cost is MAX_COST for ASM_OPERANDS.
41649 (find_sets_in_insn): Fix up comment typo.
41650 (cse_insn): Don't set src_volatile for all non-volatile
41651 ASM_OPERANDS in PARALLELs, but just those with multiple outputs
41652 or with "memory" clobber. Set elt->cost to MAX_COST
41653 for ASM_OPERANDS in PARALLEL. Set src_elt->cost to MAX_COST
41654 if new_src is ASM_OPERANDS and elt->cost is MAX_COST.
41656 2015-01-23 Uros Bizjak <ubizjak@gmail.com>
41658 * config/i386/sse.md (sse2_loadld): Set attribute isa to sse2 for
41661 2015-01-23 Uros Bizjak <ubizjak@gmail.com>
41663 * config/i386/gnu-user.h (CRT_GET_RFIB_DATA): Move definition to
41664 libgcc/config/i386/elf-lib.h.
41666 2015-01-23 Jakub Jelinek <jakub@redhat.com>
41669 * gcc.c (print_configuration): Don't print a blank line at the end
41671 (run_attempt): ... but here unstead.
41673 PR middle-end/64734
41674 * omp-low.c (scan_sharing_clauses): Don't ignore
41675 OMP_CLAUSE_MAP_ZERO_BIAS_ARRAY_SECTION GOMP_MAP_POINTER clauses
41676 on target data/update constructs.
41678 2015-01-23 Bernd Edlinger <bernd.edlinger@hotmail.de>
41681 * config/m32c/m32c.c (encode_pattern_1): Removed gcc_unreachable here.
41682 (DEBUG_RELOAD): Removed define.
41683 (m32c_limit_reload_class): Enable traces with if DEBUG0.
41684 (m32c_function_arg): Added a type cast.
41685 (m32c_legitimize_reload_address): Push A_REGS reload with PSImode.
41686 * config/m32c/addsub.md (addsi3_1): Specify the mode of all arguments.
41687 * config/m32c/bitops.md (andqi3_16): Likewise.
41688 * config/m32c/mov.md (m32c_immd_dbl_mov): Likewise.
41689 (push_a01_l): Likewise.
41691 2015-01-23 David Malcolm <dmalcolm@redhat.com>
41694 * main.c (main): Construct toplev instances with init_signals=true.
41695 * toplev.c (general_init): Add param "init_signals", and use it to
41696 conditionalize the calls to signal and host_hooks.extra_signals.
41697 (toplev::toplev): Add param "init_signals".
41698 (toplev::main): When invoking general_init, pass m_init_signals
41699 to control whether signal-handlers are installed.
41700 * toplev.h (toplev::toplev): Add param "init_signals".
41701 (toplev::m_init_signals): New field.
41703 2015-01-23 David Malcolm <dmalcolm@redhat.com>
41706 * emit-rtl.c (init_emit_regs): Set pic_offset_table_rtx to
41707 NULL_RTX before testing PIC_OFFSET_TABLE_REGNUM, since the
41708 latter may be affected by the former (e.g. on i686).
41710 2015-01-23 Martin Liska <mliska@suse.cz>
41712 * tree.h (tree_vec_elt_check): Workaround -Wstrict-overflow
41713 false positive during profiledbootstrap.
41715 2015-01-23 Tom de Vries <tom@codesourcery.com>
41718 * lto-opts.c (lto_write_options): Output non-explicit conservative
41720 * lto-wrapper.c (merge_and_complain): Handle merging -fopenacc.
41721 (append_compiler_options): Pass -fopenacc through.
41723 2015-01-23 Tom de Vries <tom@codesourcery.com>
41726 * lto-opts.c (lto_write_options): Output non-explicit conservative
41728 * lto-wrapper.c (merge_and_complain): Handle merging -fopenmp.
41729 (append_compiler_options): Pass -fopenmp through.
41731 2015-01-23 Jakub Jelinek <jakub@redhat.com>
41734 * dwarf2out.c (struct dw_loc_descr_node): Add chain_next
41737 * diagnostic-core.h (internal_error_no_backtrace): New prototype.
41738 * diagnostic.def (DK_ICE_NOBT): New kind.
41739 * diagnostic.c (diagnostic_action_after_output): Handle DK_ICE_NOBT
41740 like DK_ICE, but never print backtrace.
41741 (diagnostic_report_diagnostic): Handle DK_ICE_NOBT like DK_ICE.
41742 (internal_error_no_backtrace): New function.
41743 * gcc.c (execute): Use internal_error_no_backtrace instead of
41746 2015-01-22 Jeff Law <law@redhat.com>
41749 * config/m68k/m68k.md (xorsi3_internal): Twiddle constraints to
41750 improve code density for small immediate to memory case.
41751 (insv): Better handle bitfield assignments when the field is
41752 being set to all ones.
41753 * config/m68k/predicates.md (reg_or_pow2_m1_operand): New
41756 2015-01-22 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
41757 Jakub Jelinek <jakub@redhat.com>
41759 PR middle-end/64729
41760 * gcc.c (LINK_SSP_SPEC): Handle -fstack-protector-explicit
41761 for !TARGET_LIBC_PROVIDES_SSP version and
41762 -fstack-protector-{all,strong,explicit} otherwise.
41763 * config/freebsd.h (LINK_SSP_SPEC): Handle
41764 -fstack-protector-{strong,explicit}.
41766 2015-01-22 Jan Hubicka <hubicka@ucw.cz>
41767 H.J. Lu <hongjiu.lu@intel.com>
41770 * ipa-inline.c (inline_small_functions): Fix thinko in maintenance of
41773 2015-01-22 Wei Mi <wmi@google.com>
41775 PR rtl-optimization/64557
41776 * dse.c (record_store): Call get_addr for mem_addr.
41777 (check_mem_read_rtx): Likewise.
41779 2015-01-22 Eric Botcazou <ebotcazou@adacore.com>
41781 * fold-const.c (const_binop): Add early return for non-tcc_binary.
41783 2015-01-22 Chen Gang <gang.chen.5i5j@gmail.com>
41785 * toplev.c (init_local_tick): Process the failure when read
41786 fails for random_seed.
41788 * ubsan.c (ubsan_type_descriptor): Use 'pretty_print' for
41789 'pretty_name' to avoid memory overflow.
41791 2015-01-22 Richard Biener <rguenther@suse.de>
41793 PR middle-end/64728
41794 * tree-ssa-coalesce.c (coalesce_partitions): Do not perform
41795 abnormal coalescing on undefined SSA names.
41797 2015-22-01 Uros Bizjak <ubizjak@gmail.com>
41801 * config/i386/sse.md (vec_set<mode>_0): Use (Yi/r/C) constraints
41803 (*vec_dup<mode>): Use (Yi/$r) constraints for alternative 1.
41805 2015-01-22 Trevor Saunders <tsaunders@mozilla.com>
41807 PR middle-end/63325
41808 * fold-const.c (fold_checksum_tree): Don't include value of
41809 expr->decl_with_vis.symtab_node in the checksum.
41811 2015-01-22 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
41813 * config/s390/s390.md (atomic code attribute): Fix typo "ior" -> "or".
41815 2015-01-22 Max Ostapenko <m.ostapenko@partner.samsung.com>
41818 * gcc.c (insert_comments): New function.
41819 (try_generate_repro): Call it.
41820 (append_text): Removed.
41822 2015-01-22 Richard Biener <rguenther@suse.de>
41824 * ipa-inline.c (can_inline_edge_p): Disable inlining of edges
41825 with IL incompatible options. Properly honor user optimize
41828 2015-01-21 Segher Boessenkool <segher@kernel.crashing.org>
41830 PR rtl-optimization/64682
41831 * combine.c (distribute_notes): When moving a death note for
41832 a register that is set in the new I2, make sure to put it
41833 before that new I2.
41835 2015-01-21 David Edelsohn <dje.gcc@gmail.com>
41837 * config/rs6000/rs6000.c (rs6000_file_start): Use rs6000_isa_flags
41838 not TARGET_DEFAULT.
41840 2015-01-21 Jakub Jelinek <jakub@redhat.com>
41843 * simplify-rtx.c (simplify_relational_operation_1): Don't try to
41844 optimize (eq/ne (and (side_effects) (const_int 0)) (const_int 0))
41845 into (eq/ne (and (not (side_effects)) (const_int 0)) (const_int 0)).
41848 * doc/invoke.texi (-fsanitize=vptr): Document.
41850 PR rtl-optimization/62078
41851 * dse.c: Include cfgcleanup.h.
41852 (rest_of_handle_dse): For -fnon-call-exceptions, if DSE removed
41853 anything call purge_all_dead_edges and cleanup_cfg at the end
41856 2015-01-21 Jan Hubicka <hubicka@ucw.cz>
41858 * ipa-utils.c (ipa_merge_profiles): Avoid ICE on mismatch in indirect
41861 2015-01-21 Bernd Edlinger <bernd.edlinger@hotmail.de>
41863 * gimplify.c (gimplify_function_tree): Check the no_sanitize_thread
41866 2015-01-21 David Sherwood <david.sherwood@arm.com>
41867 Tejas Belagod <Tejas.Belagod@arm.com>
41869 * config/aarch64/aarch64.h (CANNOT_CHANGE_MODE_CLASS): Removed.
41870 * config/aarch64/aarch64.c (aarch64_cannot_change_mode_class): Removed.
41871 * config/aarch64/aarch64-protos.h (aarch64_cannot_change_mode_class):
41874 2015-01-21 David Sherwood <david.sherwood@arm.com>
41875 Tejas Belagod <Tejas.Belagod@arm.com>
41877 * config/aarch64/aarch64-protos.h (aarch64_simd_attr_length_rglist)
41878 (aarch64_reverse_mask): New decls.
41879 * config/aarch64/iterators.md (UNSPEC_REV_REGLIST): New enum.
41880 (insn_count): New mode_attr.
41881 * config/aarch64/aarch64-simd.md (vec_store_lanesoi, vec_store_lanesci)
41882 (vec_store_lanesxi, vec_load_lanesoi, vec_load_lanesci)
41883 (vec_load_lanesxi): Made ABI compliant for Big Endian targets.
41884 (aarch64_rev_reglist, aarch64_simd_ld2, aarch64_simd_ld3)
41885 (aarch64_simd_ld4, aarch64_simd_st2, aarch64_simd_st3)
41886 (aarch64_simd_st4): New patterns.
41887 * config/aarch64/aarch64.c (aarch64_simd_attr_length_rglist)
41888 (aarch64_reverse_mask): New functions.
41890 2015-01-21 Alan Hayward <alan.hayward@arm.com>
41892 * config/aarch64/aarch64-protos.h (aarch64_simd_disambiguate_copy):
41894 * config/aarch64/aarch64.c (aarch64_classify_address): Allow extra
41895 addressing modes for BE.
41896 (aarch64_print_operand): Add 'R' specifier.
41897 (aarch64_simd_disambiguate_copy): Delete.
41898 (aarch64_simd_emit_reg_reg_move): New function.
41899 * config/aarch64/aarch64-simd.md: Use aarch64_simd_emit_reg_reg_move
41900 in define_splits for structural moves.
41901 (mov<mode>): Use less restrictive predicates.
41902 (*aarch64_mov<mode>): Simplify and only allow for LE.
41903 (*aarch64_be_movoi, *aarch64_be_movci, *aarch64_be_movxi): New.
41905 2015-01-21 Alan Hayward <alan.hayward@arm.com>
41907 * rtlanal.c (subreg_get_info): Exit early for simple and common cases.
41909 2015-01-21 Richard Henderson <rth@redhat.com>
41912 * ccmp.c (used_in_cond_stmt_p): Remove.
41913 (expand_ccmp_expr): Don't use it.
41915 2015-01-21 Nick Clifton <nickc@redhat.com>
41917 * config/rl78/rl78.c (rl78_calculate_death_notes): Look inside
41920 2015-01-21 Richard Biener <rguenther@suse.de>
41922 PR middle-end/64313
41923 * tree-core.h (builtin_info, builtin_info_type): Turn from
41924 an object with two arrays into an array of an object with
41925 decl and two flags, implicit_p and declared_p.
41926 * tree.h (builtin_decl_explicit, builtin_decl_implicit,
41927 set_builtin_decl, set_builtin_decl_implicit_p,
41928 builtin_decl_explicit_p, builtin_decl_implicit_p): Adjust.
41929 (set_builtin_decl_declared_p, builtin_decl_declared_p): New functions.
41930 * builtins.c (builtin_info): Adjust.
41931 * gimplify.c (gimplify_addr_expr): References to builtins
41932 that have been declared by the user makes them eligible for
41933 use by the compiler. Call set_builtin_decl_implicit_p on them.
41935 2015-01-20 Jeff Law <law@redhat.com>
41938 * config/m68k/m68k.md (Comparison expanders and patterns): Do not
41939 allow pc-relative addresses in operand predicates or constraints.
41941 2015-01-21 Bin Cheng <bin.cheng@arm.com>
41943 * config/arm/arm.c (arm_cortex_a53_tune, arm_cortex_a57_tune): Prefer
41944 neon on aarch32 processors for stringops.
41946 2015-01-19 Jan Hubicka <hubicka@ucw.cz>
41949 * ipa-utils.c (ipa_merge_profiles): Merge speculative edges.
41951 2015-01-19 Jan Hubicka <hubicka@ucw.cz>
41954 * ipa-inline.c: Include lto-streamer.h
41955 (report_inline_failed_reason): Output source file differences and
41956 flags on optimization/target node mismatch.
41957 (can_inline_edge_p): Consider caller to be the outer inline function;
41958 be less restrictive about matching opimize and optimize_size attributes.
41959 (inline_account_function_p): Break out from ...
41960 (inline_small_functions): ... here.
41961 * ipa-inline-transform.c (clone_inlined_nodes): Use
41962 inline_account_function_p.
41963 (inline_call): Use optimize attribution; use inline_account_function_p.
41964 (inline_transform): Use opt_for_fn.
41965 * ipa-inline.h (inline_account_function_p): Declare.
41967 2015-01-20 Jakub Jelinek <jakub@redhat.com>
41970 * dwarf2out.c (decl_piece_node): Don't put bitsize into
41971 mode if bitsize <= 0.
41972 (decl_piece_bitsize, adjust_piece_list, add_var_loc_to_decl,
41973 dw_sra_loc_expr): Use HOST_WIDE_INT instead of int for bit
41974 sizes and positions.
41976 2015-01-20 Chung-Lin Tang <cltang@codesourcery.com>
41978 * config/nios2/nios2.c (nios2_asm_file_end): Implement
41979 TARGET_ASM_FILE_END hook for adding .note.GNU-stack section when
41981 (TARGET_ASM_FILE_END): Define.
41983 2015-01-20 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
41985 * config/arm/arm-protos.h (enum arm_sched_autopref): New constants.
41986 (struct tune_params): Use the enum.
41987 * arm.c (arm_*_tune): Update.
41988 (arm_option_override): Update.
41990 2015-01-20 Richard Biener <rguenther@suse.de>
41993 * ipa-reference.c (add_static_var): Inline ...
41994 (analyze_function): ... here after splitting out from ...
41995 (is_proper_for_analysis): ... this.
41997 2015-01-20 Matthew Wahab <matthew.wahab@arm.com>
42000 * config/arm/arm.opt: Remove lra option and arm_lra_flag variablesle.
42001 * config/arm/arm.h (MODE_BASE_REG_CLASS): Remove use of arm_lra_flagag,
42002 replace the conditional with it's true branch.
42003 * config/arm/arm.config (TARGET_LRA_P): Set to hook_bool_void_true.
42004 (arm_lra_p): Remove.
42006 2015-01-20 Eric Botcazou <ebotcazou@adacore.com>
42008 * config/visium/visium.h (LIB_SPEC): Adjust in default case.
42010 2015-01-20 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
42012 * config/tilegx/mul-tables.c: Move symtab.h include after
42013 coretypes.h include.
42014 * config/tilepro/mul-tables.c: Add includes hashtab.h, hash-set.h,
42015 vec.h, machmode.h, tm.h, hard-reg-set.h, input.h, function.h, rtl.h,
42016 flags.h, statistics.h, double-int.h, real.h, fixed-value.h, alias.h,
42017 wide-int.h, inchash.h, tree.h, insn-config.h, expmed.h, dojump.h,
42018 explow.h, calls.h, emit-rtl.h, varasm.h, stmt.h.
42020 2015-01-20 Igor Zamyatin <igor.zamyatin@intel.com>
42024 2015-01-19 Igor Zamyatin <igor.zamyatin@intel.com>
42026 PR rtl-optimization/64081
42027 * loop-iv.c (def_pred_latch_p): New function.
42028 (latch_dominating_def): Allow specific cases with non-single
42030 (iv_get_reaching_def): Likewise.
42031 (check_complex_exit_p): New function.
42032 (check_simple_exit): Use check_complex_exit_p to allow certain cases
42033 with exits not executing on any iteration.
42035 2015-01-19 Jan Hubicka <hubicka@ucw.cz>
42038 * i386.c (ix86_option_override_internal): Use ix86_tune_cost
42039 to set branch cost.
42041 2015-01-19 Jan Hubicka <hubicka@ucw.cz>
42044 * i386.c (gate): Check flag_expensive_optimizations and
42046 (ix86_option_override_internal): Drop optimize_size condition
42047 on MASK_ACCUMULATE_OUTGOING_ARGS, MASK_VZEROUPPER,
42048 MASK_AVX256_SPLIT_UNALIGNED_LOAD, MASK_AVX256_SPLIT_UNALIGNED_STORE,
42049 MASK_PREFER_AVX128.
42050 (ix86_avx256_split_vector_move_misalign,
42051 ix86_avx256_split_vector_move_misalign): Check optimize_insn_for_speed.
42052 * sse.md (all uses of TARGET_PREFER_AVX128): Add
42053 optimize_insn_for_speed_p check.
42055 2015-01-19 Matthew Fortune <matthew.fortune@imgtec.com>
42057 * config/mips/mips.h (FP_ASM_SPEC): New define.
42058 (ASM_SPEC): Remove floating-point options and use FP_ASM_SPEC
42061 2015-01-19 Oleg Endo <olegendo@gcc.gnu.org>
42064 * config/sh/sh-protos.h (sh_find_set_of_reg): Make sure not to return
42065 nullptr for insn when reaching the first insn.
42066 * config/sh/sh.c (sh_unspec_insn_p): Rewrite using subrtx_iterator.
42067 (sh_insn_operands_modified_between_p): Add nullptr check.
42068 (sh_find_extending_set_of_reg): Fix log message. Don't accept
42069 sign extending mem load if the insn contains any UNSPEC or
42072 2015-01-19 Jan Hubicka <hubicka@ucw.cz>
42074 * params.def (inline-unit-growth): Drop to 15%.
42075 * invoke.texi (inline-unit-growth): Document change.
42077 2015-01-19 Martin Liska <mliska@suse.cz>
42080 * ipa-icf-gimple.c (func_checker::compare_operand): Call proper
42081 function for second argument of OBJ_TYPE_REF.
42083 2015-01-19 Jan Hubicka <hubicka@ucw.cz>
42086 * ipa-inline.c (want_inline_function_to_all_callers_p): Fix check
42087 whether function is an alias.
42089 2015-01-19 Jan Hubicka <hubicka@ucw.cz>
42091 * ipa-devirt.c (ipa_devirt): Drop polymorphic call info in hopeless
42094 2015-01-19 Vladimir Makarov <vmakarov@redhat.com>
42096 PR rtl-optimization/64671
42097 * lra-remat.c (operand_to_remat): Don't consider jump and call
42100 2015-01-19 David Edelsohn <dje.gcc@gmail.com>
42103 * config/rs6000/default64.h: Include rs6000-cpus.def.
42104 (TARGET_DEFAULT) [LITTLE_ENDIAN]: Use ISA 2.7 (POWER8).
42105 (TARGET_DEFAULT) [BIG_ENDIAN]: Use POWER4.
42106 * config/rs6000/driver-rs6000.c (detect_processor_aix): Add POWER7
42108 * config/rs6000/linux64.h (PROCESSOR_DEFAULT64): Always default to
42110 * config/rs6000/rs6000.c (rs6000_file_start): Emit .machine
42111 pseudo-op to specify assembler dialect.
42113 2015-01-19 Martin Liska <mliska@suse.cz>
42116 * ipa-icf.c (sem_item_optimizer::filter_removed_items):
42117 Handle safe potentially removed nodes during filtering.
42119 2015-01-19 Martin Liska <mliska@suse.cz>
42121 * doc/extend.texi (no_icf): Add new attribute description.
42122 * ipa-icf.c (sem_item_optimizer::merge_classes): Handle cases
42123 where the pass attempts to merge a function with no_icf attribute.
42125 2015-01-19 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
42128 * doc/md.texi (ARM Options): Document register constraints.
42130 2015-01-19 Jiong Wang <jiong.wang@arm.com>
42131 Andrew Pinski <apinski@cavium.com>
42134 * config/aarch64/aarch64.md (define_insn "*ashl<mode>3_insn"): Deleted.
42135 (ashl<mode>3): Don't expand if operands[2] is not constant.
42137 2015-01-19 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
42140 * config/aarch64/aarch64-simd.md (aarch64_simd_bsl<mode>_internal):
42141 Match xor-and-xor RTL pattern.
42143 2015-01-19 Igor Zamyatin <igor.zamyatin@intel.com>
42145 PR rtl-optimization/64081
42146 * loop-iv.c (def_pred_latch_p): New function.
42147 (latch_dominating_def): Allow specific cases with non-single
42149 (iv_get_reaching_def): Likewise.
42150 (check_complex_exit_p): New function.
42151 (check_simple_exit): Use check_complex_exit_p to allow certain cases
42152 with exits not executing on any iteration.
42154 2015-01-19 Jakub Jelinek <jakub@redhat.com>
42156 * common.opt (fgraphite): Fix a typo.
42158 2015-01-19 Felix Yang <felix.yang@huawei.com>
42160 * config/aarch64/aarch64-simd.md (aarch64_<maxmin_uns>p<mode>): New
42162 * config/aarch64/aarch64-simd-builtins.def (smaxp, sminp, umaxp,
42163 uminp, smax_nanp, smin_nanp): New builtins.
42164 * config/aarch64/arm_neon.h (vpmax_s8, vpmax_s16, vpmax_s32,
42165 vpmax_u8, vpmax_u16, vpmax_u32, vpmaxq_s8, vpmaxq_s16, vpmaxq_s32,
42166 vpmaxq_u8, vpmaxq_u16, vpmaxq_u32, vpmax_f32, vpmaxq_f32, vpmaxq_f64,
42167 vpmaxqd_f64, vpmaxs_f32, vpmaxnm_f32, vpmaxnmq_f32, vpmaxnmq_f64,
42168 vpmaxnmqd_f64, vpmaxnms_f32, vpmin_s8, vpmin_s16, vpmin_s32, vpmin_u8,
42169 vpmin_u16, vpmin_u32, vpminq_s8, vpminq_s16, vpminq_s32, vpminq_u8,
42170 vpminq_u16, vpminq_u32, vpmin_f32, vpminq_f32, vpminq_f64, vpminqd_f64,
42171 vpmins_f32, vpminnm_f32, vpminnmq_f32, vpminnmq_f64, vpminnmqd_f64,
42172 vpminnms_f32): Rewrite using builtin functions.
42174 2015-01-19 Thomas Schwinge <thomas@codesourcery.com>
42177 * omp-low.c (offload_symbol_decl): Remove variable.
42178 (get_offload_symbol_decl): Remove function.
42179 (expand_omp_target): For BUILT_IN_GOMP_TARGET,
42180 BUILT_IN_GOMP_TARGET_DATA, BUILT_IN_GOMP_TARGET_UPDATE pass NULL
42181 instead of &__OFFLOAD_TABLE__, for BUILT_IN_GOACC_DATA_START,
42182 BUILT_IN_GOACC_ENTER_EXIT_DATA, BUILT_IN_GOACC_PARALLEL,
42183 BUILT_IN_GOACC_UPDATE don't pass it at all.
42185 2015-01-19 Ilya Enkovich <ilya.enkovich@intel.com>
42187 * tree-sra.c (some_callers_have_mismatched_arguments_p): Allow thunk
42190 2015-01-19 Ilya Enkovich <ilya.enkovich@intel.com>
42192 * ipa-chkp.c (chkp_produce_thunks): Add early param
42193 to split thunks production into two passes. Keep
42194 'always_inline' function bodies after the first pass.
42195 (pass_data_ipa_chkp_early_produce_thunks): New.
42196 (pass_ipa_chkp_early_produce_thunks): New.
42197 (pass_ipa_chkp_produce_thunks::execute): Adjust to new
42198 chkp_produce_thunks signature.
42199 (make_pass_ipa_chkp_early_produce_thunks): New.
42200 * passes.def (pass_ipa_chkp_early_produce_thunks): New.
42201 (pass_ipa_chkp_produce_thunks): Move after local optimizations.
42202 * tree-pass.h (make_pass_ipa_chkp_early_produce_thunks): New.
42204 2015-01-18 Jan Hubicka <hubicka@ucw.cz>
42206 * cgraph.c (cgraph_node::dump): Dump profile flags.
42208 2015-01-18 Oleg Endo <olegendo@gcc.gnu.org>
42211 * config/sh/sh.md (udivsi3_i4, divsi3_i4): Make use of sfunc address
42212 reg appear first in the parallel.
42214 2015-01-18 Jan Hubicka <hubicka@ucw.cz>
42216 * ipa-reference.c (set_reference_optimization_summary,
42217 ipa_reference_get_not_written_global): Do nothing if ipa-reference is
42219 (ignore_module_statics): New static var.
42220 (propagate_bits): If ipa-reference is disabled, do not look into local
42222 (analyze_function): Disable analysis when ipa_reference is disabled.
42223 (generate_summary): Do not dump when reference is disabled;
42224 collect vars accessed from functions with ipa-reference disabled.
42225 (get_read_write_all_from_node): When ipa-reference is disabled, use the
42227 (gate): Enable for LTO.
42228 (ignore_edge_p): New function.
42229 (propagate): Skip functions w/o ipa-reference analysis.
42230 * optc-save-gen.awk: Handle optimize_debug correctly.
42231 * opth-gen.awk: Likewise.
42232 * common.opt (fauto-inc-dec, fdelete-dead-exceptions, ffunction-cse,
42233 fgraphite, fstrict-volatile-bitfields, fira-algorithm, fira-region,
42234 fira-share-save-slots, fira-share-spill-slots,
42235 fmodulo-sched-allow-regmoves, fpartial-inlining,
42236 sched-stalled-insns, fsched-stalled-insns-dep, fstrict-overflow,
42237 ftracer, ftree-parallelize-loops, fassociative-math,
42238 freciprocal-math, fvect-cost-model, fsimd-cost-model): Mark as
42240 (fauto-profile, fcommon, fdata-sections, fipa-icf-variables,
42241 ftoplevel-reorder, funit-at-a-time, fwhole-program): Do not mark as
42243 * ipa-icf.c (gate, sem_item_optimizer::filter_removed_items):
42246 2015-01-18 Jan Hubicka <hubicka@ucw.cz>
42249 * ipa-prop.c (try_make_edge_direct_virtual_call): Clear speculative
42251 * ipa-cp.c (ipa_get_indirect_edge_target_1): Handle speculation.
42253 2015-01-18 Sandra Loosemore <sandra@codesourcery.com>
42255 * doc/invoke.texi ([-funroll-loops], [-funroll-all-loops]):
42256 Remove duplicate option listings.
42258 2015-01-18 Felix Yang <felix.yang@huawei.com>
42260 * auto-profile.c (afdo_find_equiv_class): Remove unnecessary test.
42261 (autofdo_source_profile::get_callsite_total_count,
42262 function_instance::get_function_instance_by_decl,
42263 string_table::get_index, string_table::get_index_by_decl,
42264 afdo_vpt_for_early_inline, afdo_callsite_hot_enough_for_early_inline):
42265 Fix comment typos. Reformatting and minor code rearrangement.
42267 2015-01-17 Segher Boessenkool <segher@kernel.crashing.org>
42269 * config/rs6000/rs6000.md (probe_stack): Delete.
42270 (probe_stack_address): New.
42272 2015-01-17 Segher Boessenkool <segher@kernel.crashing.org>
42274 * config/rs6000/rs6000.c (rs6000_gimplify_va_arg): Use TARGET_32BIT
42275 to test for 32-bit ABIs, not !TARGET_POWERPC64.
42277 2015-01-17 Segher Boessenkool <segher@kernel.crashing.org>
42279 * config/rs6000/rs6000.c (rs6000_parallel_return): New function.
42280 (rs6000_function_value): Use it. Handle SCmode and TCmode as well,
42281 for TARGET_32BIT && TARGET_POWERPC64. Fix another BITS_PER_WORD
42283 (rs6000_libcall_value): Use the new function.
42285 2015-01-17 Sandra Loosemore <sandra@codesourcery.com>
42287 * doc/invoke.texi ([-ftracer]): Remove duplicate option listing.
42289 2015-01-17 Eric Botcazou <ebotcazou@adacore.com>
42291 * reorg.c (fill_simple_delay_slots): If TARGET_FLAGS_REGNUM is valid,
42292 implement a more precise life analysis for it during backward scan.
42294 2015-01-17 Jan Kratochvil <jan.kratochvil@redhat.com>
42296 * dwarf2out.c (gen_producer_string): Ignore also OPT_fpreprocessed.
42298 2015-01-17 Bernd Schmidt <bernds@codesourcery.com>
42300 PR rtl-optimization/52773
42301 * calls.c (emit_library_call_value): When pushing arguments use
42302 stack_pointer_rtx rather than virtual_outgoing_args_rtx in
42303 CALL_INSN_FUNCTION_USAGE. Only emit one of use of the magic
42304 stack pointer reference into CALL_INSN_FUNCTION_USAGE.
42306 2015-01-17 Jeff Law <law@redhat.com>
42308 PR rtl-optimization/32790
42309 * reginfo.c (reg_scan_mark_refs): Look for ZERO_EXTRACT,
42310 not ZERO_EXTEND in SET_DESTs.
42312 2015-01-17 Alan Modra <amodra@gmail.com>
42314 * cprop.c (do_local_cprop): Revert last change.
42316 2015-01-16 DJ Delorie <dj@redhat.com>
42317 Nick Clifton <nickc@redhat.com>
42319 * config/rl78/rl78-real.md (addqi3_real): Allow volatiles.
42320 (addhi3_real): Likewise. Fix [HL+0] syntax.
42321 (subqi3_real): Likewise.
42322 (subhi3_real): Likewise.
42323 (cbranchqi4_real): Likewise. Allow saddr,#imm.
42324 (cbranchhi4_real): Likewise.
42325 (cbranchhi4_real_inverted): Likewise.
42326 (cbranchsi4_real_lt): Likewise.
42327 (cbranchsi4_real_ge): Likewise.
42328 (cbranchsi4_real_ge): Likewise.
42329 * config/rl78/rl78-virt.md (add<mode>3_virt): Likewise.
42330 (sub<mode>3_virt): Likewise.
42331 (cbranchqi4_virt): Likewise.
42332 (cbranchhi4_virt): Likewise.
42333 * config/rl78/rl78.c (rl78_print_operand_1): 'p' modifier means
42334 always use '[reg+imm]' even when imm is zero.
42335 * config/rl78/predicates.md (rl78_volatile_memory_operand): New.
42336 (rl78_general_operand): New.
42337 (rl78_nonimmediate_operand): New.
42338 (rl78_nonfar_operand): Use them.
42339 (rl78_nonfar_nonimm_operand): Likewise.
42340 (rl78_stack_based_mem): Fix.
42341 * config/rl78/constraints.md (Ibqi): New.
42346 * config/rl78/rl78-expand.md (andqi3): Accept volatiles.
42347 (iorqi3): Likewise.
42348 (xorqi3): Likewise.
42349 * config/rl78/rl78-protos.h (rl78_sfr_p): New.
42351 * config/rl78/constrains (Qs8): New constraint.
42352 * config/rl78/rl78.c (rl78_flags_already_set): New function.
42353 * config/rl78/rl78-protos.h (rl78_flags_already_set): New prototype.
42354 * config/rl78/rl78-real.md (update_Z): New attribute.
42355 Update patterns to set it.
42356 (cbranchqi4_real): Call rl78_flags_already_set() to determine if a
42357 shorter compare and branch sequence can be used.
42358 (cbranchhi4_real): Likewise.
42359 (cbranchhi4_real_inverted): Likewise.
42361 * config/rl78/predicates.md (uword_operand): Allow symbol_refs.
42362 * config/rl78/rl78-c.c (rl78_register_pragmas): Register __near
42364 * config/rl78/rl78.c (rl78_get_name_encoding): New.
42365 (rl78_option_override): Allow -mes0 only if C.
42366 (characterize_address): Support subregs of symbol_refs.
42367 (rl78_addr_space_address_mode): Move. Add __near.
42368 (rl78_far_p): Likewise.
42369 (rl78_addr_space_pointer_mode): Likewise.
42370 (rl78_as_legitimate_address): Likewise.
42371 (rl78_addr_space_subset_p): Likewise.
42372 (rl78_addr_space_convert): Likewise.
42373 (rl78_print_operand_1): Support 16-bit addressing of 32-bit
42374 symbols with -mes0.
42375 (transcode_memory_rtx): Don't copy ES if -mes0. Allow symbol[BC]
42377 (rl78_alloc_physical_registers_op1): Change logic to prefer
42378 symbol[BC] addressing.
42379 (frodata_section): New.
42380 (rl78_asm_init_sections): Initialize it.
42381 (rl78_select_section): Put __far readonly symbols in .frodata.
42382 (rl78_make_type_far): New.
42383 (rl78_insert_attributes): Force all readonly symbols to be
42385 (rl78_asm_out_integer): New.
42386 * config/rl78/rl78.h (ADDR_SPACE_NEAR): New.
42387 * config/rl78/rl78.opt (-mes0): New.
42389 * config/rl78/rl78.h (ASM_OUTPUT_LABELREF): New.
42390 (ASM_OUTPUT_ALIGNED_DECL_COMMON): New.
42391 (ASM_OUTPUT_ALIGNED_DECL_LOCAL): New.
42392 * config/rl78/rl78-protos.h (rl78_output_labelref): New.
42393 (rl78_saddr_p): New.
42394 (rl78_output_aligned_common): New.
42395 * config/rl78/rl78.c (rl78_output_symbol_ref): Strip encodings.
42396 (rl78_handle_saddr_attribute): New.
42397 (rl78_handle_naked_attribute): New.
42398 (rl78_attribute_table): Add saddr.
42399 (rl78_print_operand_1): Don't print '!' on saddr operands.
42400 (rl78_print_operand_1): Strip encodings.
42402 (rl78_strip_name_encoding): New.
42403 (rl78_attrlist_to_encoding): New.
42404 (rl78_encode_section_info): New.
42405 (rl78_asm_init_sections): New.
42406 (rl78_select_section): New.
42407 (rl78_output_labelref): New.
42408 (rl78_output_aligned_common): New.
42409 (rl78_asm_out_integer): New.
42410 (rl78_asm_ctor_dtor): New.
42411 (rl78_asm_constructor): New.
42412 (rl78_asm_destructor): New.
42414 * config/rl78/rl78-real.md (movqi_es): Rename to movqi_to_es.
42415 * config/rl78/rl78.c (rl78_expand_epilogue): Update.
42416 (transcode_memory_rtx): Update.
42417 (rl78_expand_epilogue): Use A_REG instead of 0.
42419 2015-01-17 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
42421 * config/arm/arm-protos.h (struct tune_params): New field
42422 sched_autopref_queue_depth.
42423 * config/arm/arm.c (sched-int.h): Include header.
42424 (arm_first_cycle_multipass_dfa_lookahead_guard,)
42425 (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD): Define hook.
42426 (arm_slowmul_tune, arm_fastmul_tune, arm_strongarm_tune,)
42427 (arm_xscale_tune, arm_9e_tune, arm_v6t2_tune, arm_cortex_tune,)
42428 (arm_cortex_a8_tune, arm_cortex_a7_tune, arm_cortex_a15_tune,)
42429 (arm_cortex_a53_tune, arm_cortex_a57_tune, arm_xgene1_tune,)
42430 (arm_cortex_a5_tune, arm_cortex_a9_tune, arm_cortex_a12_tune,)
42431 (arm_v7m_tune, arm_cortex_m7_tune, arm_v6m_tune, arm_fa726te_tune):
42432 Specify sched_autopref_queue_depth value. Enabled for A15 and A57.
42433 * config/arm/t-arm (arm.o): Update.
42434 * haifa-sched.c (update_insn_after_change): Update.
42435 (rank_for_schedule): Use auto-prefetcher model, if requested.
42436 (autopref_multipass_init): New static function.
42437 (autopref_rank_for_schedule): New rank_for_schedule heuristic.
42438 (autopref_multipass_dfa_lookahead_guard_started_dump_p): New static
42439 variable for debug dumps.
42440 (autopref_multipass_dfa_lookahead_guard_1): New static helper function.
42441 (autopref_multipass_dfa_lookahead_guard): New global function that
42442 implements TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD hook.
42443 (init_h_i_d): Update.
42444 * params.def (PARAM_SCHED_AUTOPREF_QUEUE_DEPTH): New tuning knob.
42445 * sched-int.h (enum autopref_multipass_data_status): New const enum.
42446 (autopref_multipass_data_): Structure for auto-prefetcher data.
42447 (autopref_multipass_data_def, autopref_multipass_data_t): New typedefs.
42448 (struct _haifa_insn_data:autopref_multipass_data): New field.
42449 (INSN_AUTOPREF_MULTIPASS_DATA): New access macro.
42450 (autopref_multipass_dfa_lookahead_guard): Declare.
42452 2015-01-17 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
42454 * rtlanal.c (get_base_term): Handle SCRATCH.
42456 2015-01-17 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
42458 * config/aarch64/aarch64.c
42459 (aarch64_sched_first_cycle_multipass_dfa_lookahead): Implement hook.
42460 (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD): Define.
42462 (arm_first_cycle_multipass_dfa_lookahead): Implement hook.
42463 (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD): Define.
42465 2015-01-17 Alan Modra <amodra@gmail.com>
42467 * cprop.c (do_local_cprop): Disallow replacement of fixed
42470 2015-01-16 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
42473 * config/arm/arm-builtins.c (arm_expand_neon_args): Call va_end before
42476 2015-01-16 Bernd Edlinger <bernd.edlinger@hotmail.de>
42478 * sanitizer.def (BUILT_IN_TSAN_VPTR_UPDATE): Fixed parameters.
42479 * tsan.c (instrument_expr): Fixed parameters of __tsan_vptr_update.
42481 2015-01-16 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
42483 * config/arm/arm.md: Move comment about splitting Thumb1 patterns to...
42484 * config/arm/thumb1.md: ... Here.
42486 2015-01-16 Segher Boessenkool <segher@kernel.crashing.org>
42488 * config/rs6000/rs6000.c (rs6000_scalar_mode_supported_p): Disallow
42489 TImode for TARGET_32BIT.
42491 2015-01-16 Segher Boessenkool <segher@kernel.crashing.org>
42493 * config/rs6000/rs6000.c (TARGET_LIBGCC_CMP_RETURN_MODE,
42494 TARGET_LIBGCC_SHIFT_COUNT_MODE, TARGET_UNWIND_WORD_MODE): Implement
42496 (rs6000_abi_word_mode): New function.
42498 2015-01-16 Segher Boessenkool <segher@kernel.crashing.org>
42500 * config/rs6000/rs6000.c (rs6000_va_start): Use MIN_UNITS_PER_WORD
42501 instead of UNITS_PER_WORD to describe the size of stack slots.
42503 2015-01-16 Segher Boessenkool <segher@kernel.crashing.org>
42505 * config/rs6000/rs6000.c (TARGET_PROMOTE_FUNCTION_MODE): Implement
42506 as rs6000_promote_function_mode. Move comment to there.
42507 (rs6000_promote_function_mode): New function.
42509 2015-01-16 Segher Boessenkool <segher@kernel.crashing.org>
42511 * config/rs6000/rs6000.h (PROMOTE_MODE): Correct test for when -m32
42512 -mpowerpc64 is active.
42514 2015-01-16 Ilya Enkovich <ilya.enkovich@intel.com>
42516 PR middle-end/64353
42517 * tree-cfg.c (pass_data_fixup_cfg): Update SSA for
42520 2015-01-16 James Greenhalgh <james.greenhalgh@arm.com>
42522 * config/arm/cortex-a57.md: Remove duplicate of file accidentally
42523 introduced in revision 219724.
42525 2015-01-16 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
42526 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
42529 * config/aarch64/aarch64.md (*movsi_aarch64): Don't split if the
42530 destination is not a GP reg.
42531 (*movdi_aarch64): Likewise.
42533 2015-01-16 David Edelsohn <dje.gcc@gmail.com>
42536 * config/rs6000/default64.h: Revert ISA change.
42538 2015-01-16 Richard Biener <rguenther@suse.de>
42540 PR middle-end/64614
42541 * tree-ssa-uninit.c: Include tree-cfg.h.
42542 (MAX_SWITCH_CASES): New define.
42543 (convert_control_dep_chain_into_preds): Handle switch statements.
42544 (is_pred_expr_subset_of): Handle x == CST vs. (x & CST) != 0.
42545 (normalize_one_pred_1): Do not split bit-manipulations.
42548 2015-01-16 Richard Biener <rguenther@suse.de>
42550 PR tree-optimization/64568
42551 * tree-ssa-forwprop.c (pass_forwprop::execute): Guard
42552 complex load rewriting for TARGET_MEM_REFs.
42554 2015-01-16 Uros Bizjak <ubizjak@gmail.com>
42556 * builtins.c (expand_builtin_acc_on_device): Check target for NULL.
42558 2015-01-16 Matthew Wahab <matthew.wahab@arm.com>
42561 * config/aarch64/aarch64.opt: Remove lra option and aarch64_lra_flag
42563 * config/aarch64/aarch64.c (TARGET_LRA_P): Set to hook_bool_void_true.
42564 (aarch64_lra_p): Remove.
42566 2015-01-16 Ilya Enkovich <ilya.enkovich@intel.com>
42569 * ipa-chkp.h (chkp_instrumentable_p): New.
42570 * ipa-chkp.c: Include tree-inline.h.
42571 (chkp_instrumentable_p): New.
42572 (chkp_maybe_create_clone): Use chkp_instrumentable_p.
42573 Fix processing of not instrumentable functions.
42574 (chkp_versioning): Use chkp_instrumentable_p. Warn about
42575 not instrumentable functions.
42576 * tree-chkp.c (chkp_add_bounds_to_call_stmt): Use
42577 chkp_instrumentable_p.
42578 * tree-inline.h (copy_forbidden): New.
42579 * tree-inline.c (copy_forbidden): Not static anymore.
42581 2015-01-16 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
42583 * optc-save-gen.awk (cl_target_option_print_diff): Mark indent,
42586 2015-01-16 Robert Suchanek <robert.suchanek@imgtec.com>
42588 * lra-constraints.c (curr_insn_transform): Change a reload pseudo of
42589 type OP_OUT to OP_INOUT.
42591 2015-01-16 Robert Suchanek <robert.suchanek@imgtec.com>
42593 * simplify-rtx.c (simplify_replace_fn_rtx): Simplify (lo_sum
42594 (high x) y) to y if x and y have the same base.
42596 2015-01-16 James Greenhalgh <james.greenhalgh@arm.com>
42598 * config/arm/cortex-a57.md: New.
42599 * config/aarch64/aarch64.md: Include it.
42600 * config/aarch64/aarch64-cores.def (cortex-a57): Tune for it.
42601 * config/aarch64/aarch64-tune.md: Regenerate.
42603 2015-01-16 Zhenqiang Chen <zhenqiang.chen@arm.com>
42606 * ccmp.c (expand_ccmp_next): New function.
42607 (expand_ccmp_expr_1, expand_ccmp_expr): Handle operand insn sequence
42608 and compare insn sequence.
42609 * config/aarch64/aarch64.c (aarch64_code_to_ccmode,
42610 aarch64_gen_ccmp_first, aarch64_gen_ccmp_next): New functions.
42611 (TARGET_GEN_CCMP_FIRST, TARGET_GEN_CCMP_NEXT): New MICRO.
42612 * config/aarch64/aarch64.md (*ccmp_and): Changed to ccmp_and<mode>.
42613 (*ccmp_ior): Changed to ccmp_ior<mode>.
42614 (cmp<mode>): New pattern.
42615 * doc/tm.texi (TARGET_GEN_CCMP_FIRST, TARGET_GEN_CCMP_NEXT): Update
42617 * target.def (gen_ccmp_first, gen_ccmp_next): Update parameters.
42619 2015-01-16 Ilya Tocar <ilya.tocar@intel.com>
42621 * config/i386/avx2intrin.h (_mm256_bslli_epi128,
42622 _mm256_bsrli_epi128): New.
42623 * config/i386/emmintrin.h (_mm_bsrli_si128, _mm_bslli_si128): Ditto.
42625 2015-01-15 Jiong Wang <jiong.wang@arm.com>
42627 * expmed.c (store_bit_field_using_insv): Improve warning message.
42628 Use %wu instead of HOST_WIDE_INT_PRINT_UNSIGNED.
42630 2015-01-15 Jiong Wang <jiong.wang@arm.com>
42632 PR rtl-optimization/64011
42633 * expmed.c (store_bit_field_using_insv): Warn and truncate bitsize when
42634 there is partial overflow.
42636 2015-01-16 Chung-Ju Wu <jasonwucj@gmail.com>
42638 * config/nds32/nds32-protos.h (nds32_expand_epilogue): Change
42640 (nds32_expand_epilogue_v3pop): Likewise.
42641 * config/nds32/nds32.md (sibcall): Define this for sibling call
42643 (sibcall_register): Likewise.
42644 (sibcall_immediate): Likewise.
42645 (sibcall_value): Likewise.
42646 (sibcall_value_register): Likewise.
42647 (sibcall_value_immediate): Likewise.
42648 (sibcall_epilogue): Likewise.
42649 (epilogue): Pass false to indicate this is not a sibcall epilogue.
42650 * config/nds32/nds32.c (nds32_expand_epilogue): Consider sibcall case.
42651 (nds32_expand_epilogue_v3pop): Likewise.
42653 2015-01-16 Chung-Ju Wu <jasonwucj@gmail.com>
42655 * config/nds32/nds32-protos.h (nds32_can_use_return_insn): New.
42656 * config/nds32/nds32.md (unspec_volatile_func_return): Remove.
42657 (return_internal): New.
42658 (return): Define this named pattern.
42659 (simple_return): Define this named pattern.
42660 * config/nds32/nds32.c (nds32_expand_epilogue): Emit return_internal
42661 pattern instead of unspec_volatile_func_return.
42662 (nds32_expand_epilogue_v3pop): Likewise.
42663 (nds32_can_use_return_insn): New function.
42665 2015-01-16 Chung-Ju Wu <jasonwucj@gmail.com>
42667 * config/nds32/constants.md (UNSPEC_VOLATILE_POP25_RETURN): New.
42668 * config/nds32/nds32.md (pop25return): New.
42669 * config/nds32/nds32.c (nds32_expand_epilogue_v3pop): Emit
42670 pop25return pattern.
42672 2015-01-16 Chung-Ju Wu <jasonwucj@gmail.com>
42674 * doc/invoke.texi (NDS32 Options): Remove -mforce-fp-as-gp,
42675 -mforbid-fp-as-gp, and -mex9 options.
42677 2015-01-16 Chung-Ju Wu <jasonwucj@gmail.com>
42679 * doc/invoke.texi (NDS32 Options): Add -mcmodel= option and
42680 remove -mgp-direct option.
42682 2015-01-15 Jan Hubicka <hubicka@ucw.cz>
42684 * doc/invoke.texi (--param early-inlining-insns): Update default value.
42685 * params.def (PARAM_EARLY_INLINING_INSNS): Set to 14.
42687 2015-01-15 Jan Hubicka <hubicka@ucw.cz>
42689 * ipa-inline.c (inline_small_functions): Work around hints
42692 2015-01-15 Sandra Loosemore <sandra@codesourcery.com>
42695 * doc/invoke.texi (Option Summary): Document new Nios II
42697 (Nios II Options): Likewise.
42698 * config/nios2/nios2.opt: Add -mgpopt= option support.
42699 Modify existing -mgpopt and -mno-gpopt options to be aliases.
42700 * config/nios2/nios2-opts.h (enum nios2_gpopt_type): New.
42701 * config/nios2/nios2.c (nios2_option_override): Adjust
42702 -mgpopt defaulting.
42703 (nios2_in_small_data_p): Return true for explicit small data
42704 sections even with -G0.
42705 (nios2_symbol_ref_in_small_data_p): Adjust to handle new -mgpopt=
42708 2015-01-15 Jan Hubicka <hubicka@ucw.cz>
42711 * ipa-inline-transform.c (can_remove_node_now_p): Fix handling
42713 (inline_call): Fix removal of aliases.
42715 2015-01-15 Jakub Jelinek <jakub@redhat.com>
42717 * flag-types.h (enum sanitize_code): Add SANITIZE_VPTR,
42718 include SANITIZE_VPTR in SANITIZE_UNDEFINED.
42719 * opts.c (common_handle_option): Add -fsanitize=vptr.
42720 * sanitizer.def (BUILT_IN_UBSAN_HANDLE_DYNAMIC_TYPE_CACHE_MISS,
42721 BUILT_IN_UBSAN_HANDLE_DYNAMIC_TYPE_CACHE_MISS_ABORT): New.
42722 * ubsan.h (enum ubsan_null_ckind): Add UBSAN_DOWNCAST_POINTER,
42723 UBSAN_DOWNCAST_REFERENCE, UBSAN_UPCAST and UBSAN_CAST_TO_VBASE.
42724 (ubsan_expand_vptr_ifn): New prototype.
42725 * internal-fn.c (expand_ANNOTATE, expand_GOMP_SIMD_LANE,
42726 expand_GOMP_SIMD_VF, expand_GOMP_SIMD_LAST_LANE, expand_UBSAN_NULL,
42727 expand_UBSAN_BOUNDS, expand_UBSAN_OBJECT_SIZE, expand_ASAN_CHECK,
42728 expand_LOOP_VECTORIZED): Make argument nameless, remove
42730 (expand_UBSAN_VPTR): New function.
42731 * internal-fn.def (UBSAN_NULL, ASAN_CHECK): Use R instead of W
42733 (UBSAN_VPTR): New internal function.
42734 * sanopt.c (tree_map_traits): Renamed to ...
42735 (sanopt_tree_map_traits): ... this.
42736 (sanopt_tree_triplet, sanopt_tree_triplet_map_traits): New classes.
42737 (sanopt_ctx): Adjust asan_check_map type for tree_map_traits
42738 to sanopt_tree_map_traits renaming. Add vptr_check_map field.
42739 (maybe_optimize_ubsan_vptr_ifn): New function.
42740 (sanopt_optimize_walker): Handle IFN_UBSAN_VPTR.
42741 (pass_sanopt::execute): Likewise. Call sanopt_optimize even for
42743 * tree-ssa-alias.c (call_may_clobber_ref_p_1): Handle certain
42744 internal calls like pure functions for aliasing, even when they
42745 have other side-effects that prevent making them ECF_PURE.
42746 * ubsan.c (ubsan_vptr_type_cache_decl): New variable.
42747 (ubsan_expand_vptr_ifn): New function.
42749 2015-01-15 Vladimir Makarov <vmakarov@redhat.com>
42751 PR rtl-optimization/64110
42752 * stmt.c (parse_output_constraint): Process '^' and '$'.
42753 (parse_input_constraint): Ditto.
42754 * lra-constraints.c (process_alt_operands): Process the new
42756 * ira-costs.c (record_reg_classes): Process the new constraint
42758 * genoutput.c (indep_constraints): Add '^' and '$'.
42759 * config/i386/sse.md (*vec_dup<mode>): Use '$' instead of '!'.
42760 * doc/md.texi: Add description of the new constraints.
42762 2015-01-15 Thomas Schwinge <thomas@codesourcery.com>
42763 Bernd Schmidt <bernds@codesourcery.com>
42764 Cesar Philippidis <cesar@codesourcery.com>
42765 James Norris <jnorris@codesourcery.com>
42766 Tom de Vries <tom@codesourcery.com>
42767 Ilmir Usmanov <i.usmanov@samsung.com>
42768 Dmitry Bocharnikov <dmitry.b@samsung.com>
42769 Evgeny Gavrin <e.gavrin@samsung.com>
42770 Jakub Jelinek <jakub@redhat.com>
42772 * builtin-types.def (BT_FN_VOID_INT_INT_VAR)
42773 (BT_FN_VOID_INT_PTR_SIZE_PTR_PTR_PTR_INT_INT_VAR)
42774 (BT_FN_VOID_INT_OMPFN_PTR_SIZE_PTR_PTR_PTR_INT_INT_INT_INT_INT_VAR):
42775 New function types.
42776 * builtins.c: Include "gomp-constants.h".
42777 (expand_builtin_acc_on_device): New function.
42778 (expand_builtin, is_inexpensive_builtin): Handle
42779 BUILT_IN_ACC_ON_DEVICE.
42780 * builtins.def (DEF_GOACC_BUILTIN, DEF_GOACC_BUILTIN_COMPILER):
42782 * cgraph.c (cgraph_node::create): Consider flag_openacc next to
42784 * config.gcc <nvptx-*> (tm_file): Add nvptx/offload.h.
42785 <*-intelmic-* | *-intelmicemul-*> (tm_file): Add
42786 i386/intelmic-offload.h.
42787 * gcc.c (LINK_COMMAND_SPEC, GOMP_SELF_SPECS): For -fopenacc, link
42788 to libgomp and its dependencies.
42789 * config/arc/arc.h (LINK_COMMAND_SPEC): Likewise.
42790 * config/darwin.h (LINK_COMMAND_SPEC_A): Likewise.
42791 * config/i386/mingw32.h (GOMP_SELF_SPECS): Likewise.
42792 * config/ia64/hpux.h (LIB_SPEC): Likewise.
42793 * config/pa/pa-hpux11.h (LIB_SPEC): Likewise.
42794 * config/pa/pa64-hpux.h (LIB_SPEC): Likewise.
42795 * doc/generic.texi: Update for OpenACC changes.
42796 * doc/gimple.texi: Likewise.
42797 * doc/invoke.texi: Likewise.
42798 * doc/sourcebuild.texi: Likewise.
42799 * gimple-pretty-print.c (dump_gimple_omp_for): Handle
42800 GF_OMP_FOR_KIND_OACC_LOOP.
42801 (dump_gimple_omp_target): Handle GF_OMP_TARGET_KIND_OACC_KERNELS,
42802 GF_OMP_TARGET_KIND_OACC_PARALLEL, GF_OMP_TARGET_KIND_OACC_DATA,
42803 GF_OMP_TARGET_KIND_OACC_UPDATE,
42804 GF_OMP_TARGET_KIND_OACC_ENTER_EXIT_DATA.
42806 * gimple.c: Update comments for OpenACC changes.
42807 * gimple.def: Likewise.
42808 * gimple.h: Likewise.
42809 (enum gf_mask): Add GF_OMP_FOR_KIND_OACC_LOOP,
42810 GF_OMP_TARGET_KIND_OACC_PARALLEL, GF_OMP_TARGET_KIND_OACC_KERNELS,
42811 GF_OMP_TARGET_KIND_OACC_DATA, GF_OMP_TARGET_KIND_OACC_UPDATE,
42812 GF_OMP_TARGET_KIND_OACC_ENTER_EXIT_DATA.
42813 (gimple_omp_for_cond, gimple_omp_for_set_cond): Sort in the
42815 (is_gimple_omp_oacc, is_gimple_omp_offloaded): New functions.
42816 * gimplify.c: Include "gomp-constants.h".
42817 Update comments for OpenACC changes.
42818 (is_gimple_stmt): Handle OACC_PARALLEL, OACC_KERNELS, OACC_DATA,
42819 OACC_HOST_DATA, OACC_DECLARE, OACC_UPDATE, OACC_ENTER_DATA,
42820 OACC_EXIT_DATA, OACC_CACHE, OACC_LOOP.
42821 (gimplify_scan_omp_clauses, gimplify_adjust_omp_clauses): Handle
42822 OMP_CLAUSE__CACHE_, OMP_CLAUSE_ASYNC, OMP_CLAUSE_WAIT,
42823 OMP_CLAUSE_NUM_GANGS, OMP_CLAUSE_NUM_WORKERS,
42824 OMP_CLAUSE_VECTOR_LENGTH, OMP_CLAUSE_GANG, OMP_CLAUSE_WORKER,
42825 OMP_CLAUSE_VECTOR, OMP_CLAUSE_DEVICE_RESIDENT,
42826 OMP_CLAUSE_USE_DEVICE, OMP_CLAUSE_INDEPENDENT, OMP_CLAUSE_AUTO,
42828 (gimplify_adjust_omp_clauses_1, gimplify_adjust_omp_clauses): Use
42829 GOMP_MAP_* instead of OMP_CLAUSE_MAP_*. Use
42830 OMP_CLAUSE_SET_MAP_KIND.
42831 (gimplify_oacc_cache): New function.
42832 (gimplify_omp_for): Handle OACC_LOOP.
42833 (gimplify_omp_workshare): Handle OACC_KERNELS, OACC_PARALLEL,
42835 (gimplify_omp_target_update): Handle OACC_ENTER_DATA,
42836 OACC_EXIT_DATA, OACC_UPDATE.
42837 (gimplify_expr): Handle OACC_LOOP, OACC_CACHE, OACC_HOST_DATA,
42838 OACC_DECLARE, OACC_KERNELS, OACC_PARALLEL, OACC_DATA,
42839 OACC_ENTER_DATA, OACC_EXIT_DATA, OACC_UPDATE.
42840 (gimplify_body): Consider flag_openacc next to flag_openmp.
42841 * lto-streamer-out.c: Include "gomp-constants.h".
42842 * omp-builtins.def (BUILT_IN_ACC_GET_DEVICE_TYPE)
42843 (BUILT_IN_GOACC_DATA_START, BUILT_IN_GOACC_DATA_END)
42844 (BUILT_IN_GOACC_ENTER_EXIT_DATA, BUILT_IN_GOACC_PARALLEL)
42845 (BUILT_IN_GOACC_UPDATE, BUILT_IN_GOACC_WAIT)
42846 (BUILT_IN_GOACC_GET_THREAD_NUM, BUILT_IN_GOACC_GET_NUM_THREADS)
42847 (BUILT_IN_ACC_ON_DEVICE): New builtins.
42848 * omp-low.c: Include "gomp-constants.h".
42849 Update comments for OpenACC changes.
42850 (struct omp_context): Add reduction_map, gwv_below, gwv_this
42852 (extract_omp_for_data, use_pointer_for_field, install_var_field)
42853 (new_omp_context, delete_omp_context, scan_sharing_clauses)
42854 (create_omp_child_function, scan_omp_for, scan_omp_target)
42855 (check_omp_nesting_restrictions, lower_reduction_clauses)
42856 (build_omp_regions_1, diagnose_sb_0, make_gimple_omp_edges):
42857 Update for OpenACC changes.
42858 (scan_sharing_clauses): Handle OMP_CLAUSE_NUM_GANGS:
42859 OMP_CLAUSE_NUM_WORKERS: OMP_CLAUSE_VECTOR_LENGTH,
42860 OMP_CLAUSE_ASYNC, OMP_CLAUSE_WAIT, OMP_CLAUSE_GANG,
42861 OMP_CLAUSE_WORKER, OMP_CLAUSE_VECTOR, OMP_CLAUSE_DEVICE_RESIDENT,
42862 OMP_CLAUSE_USE_DEVICE, OMP_CLAUSE__CACHE_, OMP_CLAUSE_INDEPENDENT,
42863 OMP_CLAUSE_AUTO, OMP_CLAUSE_SEQ. Use GOMP_MAP_* instead of
42865 (expand_omp_for_static_nochunk, expand_omp_for_static_chunk):
42866 Handle GF_OMP_FOR_KIND_OACC_LOOP.
42867 (expand_omp_target, lower_omp_target): Handle
42868 GF_OMP_TARGET_KIND_OACC_PARALLEL, GF_OMP_TARGET_KIND_OACC_KERNELS,
42869 GF_OMP_TARGET_KIND_OACC_UPDATE,
42870 GF_OMP_TARGET_KIND_OACC_ENTER_EXIT_DATA,
42871 GF_OMP_TARGET_KIND_OACC_DATA.
42872 (pass_expand_omp::execute, execute_lower_omp)
42873 (pass_diagnose_omp_blocks::gate): Consider flag_openacc next to
42875 (offload_symbol_decl): New variable.
42876 (oacc_get_reduction_array_id, oacc_max_threads)
42877 (get_offload_symbol_decl, get_base_type, lookup_oacc_reduction)
42878 (maybe_lookup_oacc_reduction, enclosing_target_ctx)
42879 (oacc_loop_or_target_p, oacc_lower_reduction_var_helper)
42880 (oacc_gimple_assign, oacc_initialize_reduction_data)
42881 (oacc_finalize_reduction_data, oacc_process_reduction_data): New
42883 (is_targetreg_ctx): Remove function.
42884 * tree-core.h (enum omp_clause_code): Add OMP_CLAUSE__CACHE_,
42885 OMP_CLAUSE_DEVICE_RESIDENT, OMP_CLAUSE_USE_DEVICE,
42886 OMP_CLAUSE_GANG, OMP_CLAUSE_ASYNC, OMP_CLAUSE_WAIT,
42887 OMP_CLAUSE_AUTO, OMP_CLAUSE_SEQ, OMP_CLAUSE_INDEPENDENT,
42888 OMP_CLAUSE_WORKER, OMP_CLAUSE_VECTOR, OMP_CLAUSE_NUM_GANGS,
42889 OMP_CLAUSE_NUM_WORKERS, OMP_CLAUSE_VECTOR_LENGTH.
42890 * tree.c (omp_clause_code_name, walk_tree_1): Update accordingly.
42891 * tree.h (OMP_CLAUSE_GANG_EXPR, OMP_CLAUSE_GANG_STATIC_EXPR)
42892 (OMP_CLAUSE_ASYNC_EXPR, OMP_CLAUSE_WAIT_EXPR)
42893 (OMP_CLAUSE_VECTOR_EXPR, OMP_CLAUSE_WORKER_EXPR)
42894 (OMP_CLAUSE_NUM_GANGS_EXPR, OMP_CLAUSE_NUM_WORKERS_EXPR)
42895 (OMP_CLAUSE_VECTOR_LENGTH_EXPR): New macros.
42896 * tree-core.h: Update comments for OpenACC changes.
42897 (enum omp_clause_map_kind): Remove.
42898 (struct tree_omp_clause): Change type of map_kind member from enum
42899 omp_clause_map_kind to unsigned char.
42900 * tree-inline.c: Update comments for OpenACC changes.
42901 * tree-nested.c: Likewise. Include "gomp-constants.h".
42902 (convert_nonlocal_reference_stmt, convert_local_reference_stmt)
42903 (convert_tramp_reference_stmt, convert_gimple_call): Update for
42904 OpenACC changes. Use GOMP_MAP_* instead of OMP_CLAUSE_MAP_*. Use
42905 OMP_CLAUSE_SET_MAP_KIND.
42906 * tree-pretty-print.c: Include "gomp-constants.h".
42907 (dump_omp_clause): Handle OMP_CLAUSE_DEVICE_RESIDENT,
42908 OMP_CLAUSE_USE_DEVICE, OMP_CLAUSE__CACHE_, OMP_CLAUSE_GANG,
42909 OMP_CLAUSE_ASYNC, OMP_CLAUSE_AUTO, OMP_CLAUSE_SEQ,
42910 OMP_CLAUSE_WAIT, OMP_CLAUSE_WORKER, OMP_CLAUSE_VECTOR,
42911 OMP_CLAUSE_NUM_GANGS, OMP_CLAUSE_NUM_WORKERS,
42912 OMP_CLAUSE_VECTOR_LENGTH, OMP_CLAUSE_INDEPENDENT. Use GOMP_MAP_*
42913 instead of OMP_CLAUSE_MAP_*.
42914 (dump_generic_node): Handle OACC_PARALLEL, OACC_KERNELS,
42915 OACC_DATA, OACC_HOST_DATA, OACC_DECLARE, OACC_UPDATE,
42916 OACC_ENTER_DATA, OACC_EXIT_DATA, OACC_CACHE, OACC_LOOP.
42917 * tree-streamer-in.c: Include "gomp-constants.h".
42918 (unpack_ts_omp_clause_value_fields) Use GOMP_MAP_* instead of
42919 OMP_CLAUSE_MAP_*. Use OMP_CLAUSE_SET_MAP_KIND.
42920 * tree-streamer-out.c: Include "gomp-constants.h".
42921 (pack_ts_omp_clause_value_fields): Use GOMP_MAP_* instead of
42923 * tree.def (OACC_PARALLEL, OACC_KERNELS, OACC_DATA)
42924 (OACC_HOST_DATA, OACC_LOOP, OACC_CACHE, OACC_DECLARE)
42925 (OACC_ENTER_DATA, OACC_EXIT_DATA, OACC_UPDATE): New tree codes.
42926 * tree.c (omp_clause_num_ops): Update accordingly.
42927 * tree.h (OMP_BODY, OMP_CLAUSES, OMP_LOOP_CHECK, OMP_CLAUSE_SIZE):
42929 (OACC_PARALLEL_BODY, OACC_PARALLEL_CLAUSES, OACC_KERNELS_BODY)
42930 (OACC_KERNELS_CLAUSES, OACC_DATA_BODY, OACC_DATA_CLAUSES)
42931 (OACC_HOST_DATA_BODY, OACC_HOST_DATA_CLAUSES, OACC_CACHE_CLAUSES)
42932 (OACC_DECLARE_CLAUSES, OACC_ENTER_DATA_CLAUSES)
42933 (OACC_EXIT_DATA_CLAUSES, OACC_UPDATE_CLAUSES)
42934 (OACC_KERNELS_COMBINED, OACC_PARALLEL_COMBINED): New macros.
42935 * tree.h (OMP_CLAUSE_MAP_KIND): Cast it to enum gomp_map_kind.
42936 (OMP_CLAUSE_SET_MAP_KIND): New macro.
42937 * varpool.c (varpool_node::get_create): Consider flag_openacc next
42939 * config/i386/intelmic-offload.h: New file.
42940 * config/nvptx/offload.h: Likewise.
42942 2015-01-15 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
42944 * explow.h: Remove duplicate contents.
42945 * dojump.h: Likewise.
42947 2015-01-15 Richard Earnshaw <rearnsha@arm.com>
42949 * arm.c (arm_xgene_tune): Add default initializer for instruction
42952 2015-01-15 Jan Hubicka <hubicka@ucw.cz>
42956 * ipa.c (symbol_table::remove_unreachable_nodes):
42957 Do not put abstract origins into boundary.
42959 2015-01-15 Evgeny Stupachenko <evstupac@gmail.com>
42961 * config/i386/gnu-user.h (CRT_GET_RFIB_DATA): Remove EBX register usage.
42962 * config/i386/sysv4.h (CRT_GET_RFIB_DATA): Ditto.
42964 2015-01-15 Steve Ellcey <sellcey@mips.com>
42966 * Makefile.in (PLUGIN_HEADERS): Add dominance.h, cfg.h, cfgrtl.h,
42967 cfganal.h, cfgbuild.h, cfgcleanup.h, lcm.h, cfgloopmanip.h,
42968 builtins.def, and chkp-builtins.def.
42970 2015-01-15 David Edelsohn <dje.gcc@gmail.com>
42972 * config/rs6000/default64.h (TARGET_DEFAULT) [LITTLE_ENDIAN]: Use
42975 2015-01-15 Richard Biener <rguenther@suse.de>
42977 PR tree-optimization/61743
42978 * tree-ssa-pre.c (insert_into_preds_of_block): Preserve range
42979 information on PHIs for some simple cases.
42981 2015-01-15 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
42983 * config/arm/arm.md (generic_sched): Specify xgene1 in 'no' list.
42985 * config/arm/arm.c (arm_issue_rate): Specify 4 for xgene1.
42986 * config/arm/arm-cores.def (xgene1): New entry.
42987 * config/arm/arm-tables.opt: Regenerate.
42988 * config/arm/arm-tune.md: Regenerate.
42989 * config/arm/bpabi.h (BE8_LINK_SPEC): Specify mcpu=xgene1.
42991 2015-01-15 Yuri Rumyantsev <ysrumyan@gmail.com>
42993 * tree-if-conv.c: Include hash-map.h.
42994 (aggressive_if_conv): New variable.
42995 (fold_build_cond_expr): Add simplification of non-zero condition.
42996 (add_to_dst_predicate_list): Invoke add_to_predicate_list if edge
42997 destination block is not always executed.
42998 (if_convertible_phi_p): Fix commentary, allow phi nodes have more
42999 than two predecessors if AGGRESSIVE_IF_CONV is true.
43000 (if_convertible_stmt_p): Fix commentary.
43001 (all_preds_critical_p): New function.
43002 (has_pred_critical_p): New function.
43003 (if_convertible_bb_p): Fix commentary, if AGGRESSIVE_IF_CONV is true
43004 BB can have more than two predecessors and all incoming edges can be
43006 (predicate_bbs): Skip predication for loop exit block, use build2_loc
43007 to compute predicate for true edge.
43008 (find_phi_replacement_condition): Delete this function.
43009 (is_cond_scalar_reduction): Add arguments ARG_0, ARG_1 and EXTENDED.
43010 Allow interchange PHI arguments if EXTENDED is false.
43011 Change check that block containing reduction statement candidate
43012 is predecessor of phi-block since phi may have more than two arguments.
43013 (phi_args_hash_traits): New helper structure.
43014 (struct phi_args_hash_traits): New type.
43015 (phi_args_hash_traits::hash): New function.
43016 (phi_args_hash_traits::equal_keys): New function.
43017 (gen_phi_arg_condition): New function.
43018 (predicate_scalar_phi): Add handling of phi nodes with more than two
43019 arguments, delete COND and TRUE_BB arguments, insert body of
43020 find_phi_replacement_condition to predicate ordinary phi nodes.
43021 (predicate_all_scalar_phis): Skip blocks with the only predecessor,
43022 delete call of find_phi_replacement_condition and invoke
43023 predicate_scalar_phi with two arguments.
43024 (insert_gimplified_predicates): Add assert that non-predicated block
43025 don't have statements to insert.
43026 (ifcvt_split_critical_edges): New function.
43027 (ifcvt_split_def_stmt): Likewise.
43028 (ifcvt_walk_pattern_tree): Likewise.
43029 (stmt_is_root_of_bool_pattern): Likewise.
43030 (ifcvt_repair_bool_pattern): Likewise.
43031 (ifcvt_local_dce): Likewise.
43032 (tree_if_conversion): Add initialization of AGGRESSIVE_IF_CONV which
43033 is copy of inner or outer loop force_vectorize field, invoke
43034 ifcvt_split_critical_edges, ifcvt_local_dce and
43035 ifcvt_repair_bool_pattern for aggressive if-conversion.
43037 2015-01-15 Philipp Tomsich <ptomsich@theobroma-systems.com>
43039 * config/aarch64/aarch64.md: Include xgene1.md.
43040 * config/aarch64/xgene1.md: New file.
43042 2015-01-15 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
43044 * config/aarch64/aarch64-cores.def (xgene1): Update/add the
43045 xgene1 (APM XGene-1) core definition.
43046 * config/aarch64/aarch64.c: Add cost tables for APM XGene-1
43047 * config/arm/aarch-cost-tables.h: Add cost tables for APM XGene-1
43048 * doc/invoke.texi: Document -mcpu=xgene1.
43050 2015-01-15 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
43052 * dojump.h: New header file.
43053 * explow.h: Likewise.
43054 * expr.h: Remove includes.
43055 Move expmed.c prototypes to expmed.h.
43056 Move dojump.c prototypes to dojump.h.
43057 Move alias.c prototypes to alias.h.
43058 Move explow.c prototypes to explow.h.
43059 Move calls.c prototypes to calls.h.
43060 Move emit-rtl.c prototypes to emit-rtl.h.
43061 Move varasm.c prototypes to varasm.h.
43062 Move stmt.c prototypes to stmt.h.
43063 (saved_pending_stack_adjust): Move to dojump.h.
43064 (adjust_address): Move to explow.h.
43065 (adjust_address_nv): Move to emit-rtl.h.
43066 (adjust_bitfield_address): Likewise.
43067 (adjust_bitfield_address_size): Likewise.
43068 (adjust_bitfield_address_nv): Likewise.
43069 (adjust_automodify_address_nv): Likewise.
43070 * explow.c (expr_size): Move to expr.c.
43071 (int_expr_size): Likewise.
43072 (tree_expr_size): Likewise.
43073 Include calls.h dojump.h emit-rtl.h explow.h expmed.h
43074 fixed-value.h hashtab.h statistics.h stmt.h varasm.h.
43075 * genemit.c (main): Generate includes statistics.h, real.h,
43076 fixed-value.h, insn-config.h, expmed.h, dojump.h, explow.h, emit-rtl.h,
43078 * genopinit.c (main): Generate includes hashtab.h, hard-reg-set.h,
43079 function.h, statistics.h, real.h, fixed-value.h, expmed.h, dojump.h,
43080 explow.h, emit-rtl.h, stmt.h.
43081 * genoutput.c (main): Generate includes hashtab.h, statistics.h, real.h,
43082 fixed-value.h, expmed.h, dojump.h, explow.h, emit-rtl.h, stmt.h.
43083 * genemit.c (open_base_files): Generate includes flags.h, statistics.h,
43084 real.h, fixed-value.h, tree.h, expmed.h, dojump.h, explow.h, calls.h,
43085 emit-rtl.h, varasm.h, stmt.h.
43086 * config/tilepro/gen-mul-tables.cc: Generate includes hashtab.h,
43087 hash-set.h, vec.h, machmode.h, tm.h, hard-reg-set.h, input.h,
43088 function.h, rtl.h, flags.h, statistics.h, double-int.h, real.h,
43089 fixed-value.h, alias.h, wide-int.h, inchash.h, tree.h, insn-config.h,
43090 expmed.h, dojump.h, explow.h, calls.h, emit-rtl.h, varasm.h, stmt.h.
43091 * config/tilegx/mul-tables.c: Include alias.h calls.h dojump.h
43092 double-int.h emit-rtl.h explow.h expmed.h fixed-value.h flags.h
43093 function.h hard-reg-set.h hash-set.h hashtab.h inchash.h input.h
43094 insn-config.h machmode.h real.h rtl.h statistics.h stmt.h symtab.h
43095 tm.h tree.h varasm.h vec.h wide-int.h.
43096 * rtlhooks.c: Include alias.h calls.h dojump.h double-int.h emit-rtl.h
43097 explow.h expmed.h fixed-value.h flags.h function.h hard-reg-set.h
43098 hash-set.h hashtab.h inchash.h input.h insn-config.h machmode.h
43099 real.h statistics.h stmt.h tree.h varasm.h vec.h wide-int.h.
43100 * cfgloopanal.c: Include alias.h calls.h dojump.h double-int.h
43101 emit-rtl.h explow.h expmed.h fixed-value.h flags.h inchash.h
43102 insn-config.h real.h statistics.h stmt.h tree.h varasm.h wide-int.h.
43103 * loop-iv.c: Likewise.
43104 * lra-assigns.c: Include alias.h calls.h dojump.h double-int.h
43105 emit-rtl.h explow.h expmed.h fixed-value.h flags.h inchash.h real.h
43106 statistics.h stmt.h tree.h varasm.h wide-int.h.
43107 * lra-constraints.c: Likewise.
43108 * lra-eliminations.c: Likewise.
43109 * lra-lives.c: Likewise.
43110 * lra-remat.c: Likewise.
43111 * bt-load.c: Include alias.h calls.h dojump.h double-int.h emit-rtl.h
43112 explow.h expmed.h fixed-value.h inchash.h insn-config.h real.h
43113 statistics.h stmt.h tree.h varasm.h wide-int.h.
43114 * hw-doloop.c: Likewise.
43115 * ira-color.c: Likewise.
43116 * ira-emit.c: Likewise.
43117 * loop-doloop.c: Likewise.
43118 * loop-invariant.c: Likewise.
43119 * reload.c: Include alias.h calls.h dojump.h double-int.h emit-rtl.h
43120 explow.h expmed.h fixed-value.h inchash.h real.h rtl.h
43121 statistics.h stmt.h tree.h varasm.h wide-int.h.
43122 * caller-save.c: Include alias.h calls.h dojump.h double-int.h
43123 emit-rtl.h explow.h expmed.h fixed-value.h inchash.h real.h
43124 statistics.h stmt.h tree.h varasm.h wide-int.h.
43125 * combine-stack-adj.c: Likewise.
43128 * ifcvt.c: Likewise.
43129 * ira-costs.c: Likewise.
43130 * jump.c: Likewise.
43131 * lra-coalesce.c: Likewise.
43132 * lra-spills.c: Likewise.
43133 * profile.c: Include alias.h calls.h dojump.h double-int.h emit-rtl.h
43134 explow.h expmed.h fixed-value.h insn-config.h real.h statistics.h
43135 stmt.h varasm.h wide-int.h.
43136 * lra.c: Include alias.h calls.h dojump.h double-int.h emit-rtl.h
43137 explow.h expmed.h fixed-value.h real.h statistics.h stmt.h
43139 * config/sh/sh_treg_combine.cc: Include alias.h calls.h dojump.h
43140 double-int.h explow.h expmed.h fixed-value.h flags.h real.h
43141 statistics.h stmt.h varasm.h wide-int.h.
43142 * reorg.c: Include alias.h calls.h dojump.h double-int.h explow.h
43143 expmed.h fixed-value.h inchash.h real.h statistics.h stmt.h tree.h
43144 varasm.h wide-int.h.
43145 * reload1.c: Include alias.h calls.h dojump.h double-int.h explow.h
43146 expmed.h fixed-value.h real.h rtl.h statistics.h stmt.h varasm.h.
43147 * config/tilegx/tilegx.c: Include alias.h dojump.h double-int.h
43148 emit-rtl.h explow.h expmed.h fixed-value.h flags.h real.h
43149 statistics.h stmt.h.
43150 * config/tilepro/tilepro.c: Likewise.
43151 * config/mmix/mmix.c: Include alias.h dojump.h double-int.h emit-rtl.h
43152 explow.h expmed.h fixed-value.h real.h statistics.h stmt.h.
43153 * config/pdp11/pdp11.c: Likewise.
43154 * config/xtensa/xtensa.c: Likewise.
43155 * config/lm32/lm32.c: Include alias.h dojump.h double-int.h emit-rtl.h
43156 explow.h expmed.h fixed-value.h real.h statistics.h stmt.h
43158 * tree-chkp.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
43159 fixed-value.h flags.h function.h hard-reg-set.h hashtab.h
43160 insn-config.h real.h rtl.h statistics.h stmt.h tm.h.
43161 * cilk-common.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
43162 fixed-value.h flags.h function.h hard-reg-set.h hashtab.h
43163 insn-config.h real.h rtl.h statistics.h stmt.h tm.h varasm.h.
43164 * rtl-chkp.c: Likewise.
43165 * tree-chkp-opt.c: Likewise.
43166 * config/arm/arm-builtins.c: Include calls.h dojump.h emit-rtl.h
43167 explow.h expmed.h fixed-value.h flags.h function.h hard-reg-set.h
43168 hashtab.h insn-config.h real.h statistics.h stmt.h varasm.h.
43169 * ipa-icf.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
43170 fixed-value.h flags.h hashtab.h insn-config.h real.h rtl.h
43171 statistics.h stmt.h.
43172 * tree-vect-data-refs.c: Likewise.
43173 * graphite-sese-to-poly.c: Include calls.h dojump.h emit-rtl.h explow.h
43174 expmed.h fixed-value.h flags.h hashtab.h insn-config.h real.h
43175 rtl.h statistics.h stmt.h varasm.h.
43176 * internal-fn.c: Likewise.
43177 * ipa-icf-gimple.c: Likewise.
43178 * lto-section-out.c: Likewise.
43179 * tree-data-ref.c: Likewise.
43180 * tree-nested.c: Likewise.
43181 * tree-outof-ssa.c: Likewise.
43182 * tree-predcom.c: Likewise.
43183 * tree-pretty-print.c: Likewise.
43184 * tree-scalar-evolution.c: Likewise.
43185 * tree-ssa-strlen.c: Likewise.
43186 * tree-vect-loop.c: Likewise.
43187 * tree-vect-patterns.c: Likewise.
43188 * tree-vect-slp.c: Likewise.
43189 * tree-vect-stmts.c: Likewise.
43190 * tsan.c: Likewise.
43191 * targhooks.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
43192 fixed-value.h flags.h hashtab.h insn-config.h real.h statistics.h
43194 * config/sh/sh-mem.cc: Include calls.h dojump.h emit-rtl.h explow.h
43195 expmed.h fixed-value.h flags.h hashtab.h insn-config.h real.h
43196 statistics.h stmt.h varasm.h.
43197 * loop-unroll.c: Likewise.
43198 * ubsan.c: Likewise.
43199 * tree-ssa-loop-prefetch.c: Include calls.h dojump.h emit-rtl.h explow.h
43200 expmed.h fixed-value.h flags.h hashtab.h real.h rtl.h statistics.h
43202 * dse.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
43203 fixed-value.h function.h hashtab.h statistics.h stmt.h varasm.h.
43204 * tree-switch-conversion.c: Include calls.h dojump.h emit-rtl.h explow.h
43205 expmed.h fixed-value.h hashtab.h insn-config.h real.h rtl.h
43206 statistics.h stmt.h.
43207 * generic-match-head.c: Include calls.h dojump.h emit-rtl.h explow.h
43208 expmed.h fixed-value.h hashtab.h insn-config.h real.h rtl.h
43209 statistics.h stmt.h varasm.h.
43210 * gimple-match-head.c: Likewise.
43211 * lto-cgraph.c: Likewise.
43212 * lto-section-in.c: Likewise.
43213 * lto-streamer-in.c: Likewise.
43214 * lto-streamer-out.c: Likewise.
43215 * tree-affine.c: Likewise.
43216 * tree-cfg.c: Likewise.
43217 * tree-cfgcleanup.c: Likewise.
43218 * tree-if-conv.c: Likewise.
43219 * tree-into-ssa.c: Likewise.
43220 * tree-ssa-alias.c: Likewise.
43221 * tree-ssa-copyrename.c: Likewise.
43222 * tree-ssa-dse.c: Likewise.
43223 * tree-ssa-forwprop.c: Likewise.
43224 * tree-ssa-live.c: Likewise.
43225 * tree-ssa-math-opts.c: Likewise.
43226 * tree-ssa-pre.c: Likewise.
43227 * tree-ssa-sccvn.c: Likewise.
43228 * tree-tailcall.c: Likewise.
43229 * tree-vect-generic.c: Likewise.
43230 * tree-sra.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
43231 fixed-value.h hashtab.h insn-config.h real.h rtl.h stmt.h varasm.h.
43232 * stor-layout.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
43233 fixed-value.h hashtab.h insn-config.h real.h statistics.h stmt.h.
43234 * varasm.c: Likewise.
43235 * coverage.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
43236 fixed-value.h hashtab.h insn-config.h real.h statistics.h stmt.h
43238 * init-regs.c: Likewise.
43240 * omp-low.c: Likewise.
43241 * stack-ptr-mod.c: Likewise.
43242 * tree-ssa-reassoc.c: Likewise.
43243 * tree-complex.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
43244 fixed-value.h hashtab.h insn-config.h rtl.h statistics.h stmt.h
43246 * dwarf2cfi.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
43247 fixed-value.h hashtab.h insn-config.h statistics.h stmt.h varasm.h.
43248 * shrink-wrap.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
43249 fixed-value.h hashtab.h real.h rtl.h statistics.h stmt.h.
43250 * recog.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
43251 fixed-value.h hashtab.h real.h rtl.h statistics.h stmt.h varasm.h.
43252 * tree-ssa-phiopt.c: Likewise.
43253 * config/darwin.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
43254 fixed-value.h hashtab.h real.h statistics.h stmt.h.
43255 * config/fr30/fr30.c: Likewise.
43256 * config/frv/frv.c: Likewise.
43257 * expr.c: Likewise.
43258 * final.c: Likewise.
43259 * optabs.c: Likewise.
43260 * passes.c: Likewise.
43261 * simplify-rtx.c: Likewise.
43262 * stmt.c: Likewise.
43263 * toplev.c: Likewise.
43264 * var-tracking.c: Likewise.
43265 * gcse.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
43266 fixed-value.h hashtab.h real.h statistics.h stmt.h varasm.h.
43267 * lower-subreg.c: Likewise.
43268 * postreload-gcse.c: Likewise.
43270 * reginfo.c: Likewise.
43271 * store-motion.c: Likewise.
43272 * combine.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
43273 fixed-value.h hashtab.h real.h stmt.h varasm.h.
43274 * emit-rtl.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
43275 fixed-value.h hashtab.h statistics.h stmt.h.
43276 * dojump.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
43277 fixed-value.h hashtab.h statistics.h stmt.h varasm.h.
43278 * except.c: Likewise.
43279 * explow.c: Likewise.
43280 * tree-dfa.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
43281 fixed-value.h insn-config.h real.h rtl.h statistics.h stmt.h
43283 * gimple-fold.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
43284 fixed-value.h insn-config.h real.h rtl.h statistics.h varasm.h.
43285 * tree-ssa-structalias.c: Likewise.
43286 * cfgexpand.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
43287 fixed-value.h insn-config.h real.h statistics.h.
43288 * calls.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
43289 fixed-value.h insn-config.h real.h statistics.h stmt.h.
43290 * bb-reorder.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
43291 fixed-value.h insn-config.h real.h statistics.h stmt.h varasm.h.
43292 * cfgbuild.c: Likewise.
43293 * function.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
43294 fixed-value.h real.h rtl.h statistics.h stmt.h.
43295 * cfgrtl.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
43296 fixed-value.h real.h rtl.h statistics.h stmt.h varasm.h.
43297 * dbxout.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
43298 fixed-value.h real.h statistics.h stmt.h.
43299 * auto-inc-dec.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
43300 fixed-value.h real.h statistics.h stmt.h varasm.h.
43301 * cprop.c: Likewise.
43302 * modulo-sched.c: Likewise.
43303 * postreload.c: Likewise.
43304 * ccmp.c: Include calls.h dojump.h emit-rtl.h explow.h fixed-value.h
43305 flags.h function.h hard-reg-set.h hashtab.h insn-config.h real.h
43306 statistics.h stmt.h varasm.h.
43307 * gimple-ssa-strength-reduction.c: Include calls.h dojump.h emit-rtl.h
43308 explow.h fixed-value.h flags.h hashtab.h insn-config.h real.h
43309 rtl.h statistics.h stmt.h varasm.h.
43310 * tree-ssa-loop-ivopts.c: Include calls.h dojump.h emit-rtl.h explow.h
43311 fixed-value.h flags.h hashtab.h real.h rtl.h statistics.h stmt.h
43313 * expmed.c: Include calls.h dojump.h emit-rtl.h explow.h fixed-value.h
43314 function.h hard-reg-set.h hashtab.h real.h statistics.h stmt.h
43316 * target-globals.c: Include calls.h dojump.h emit-rtl.h explow.h
43317 fixed-value.h function.h hashtab.h real.h statistics.h stmt.h
43319 * tree-ssa-address.c: Include calls.h dojump.h emit-rtl.h explow.h
43320 fixed-value.h hashtab.h real.h statistics.h stmt.h varasm.h.
43321 * cfgcleanup.c: Include calls.h dojump.h explow.h expmed.h fixed-value.h
43322 function.h real.h statistics.h stmt.h varasm.h.
43323 * alias.c: Include calls.h dojump.h explow.h expmed.h fixed-value.h
43324 insn-config.h real.h statistics.h stmt.h.
43325 * dwarf2out.c: Include calls.h dojump.h explow.h expmed.h fixed-value.h
43326 statistics.h stmt.h.
43327 * config/nvptx/nvptx.c: Include dojump.h emit-rtl.h explow.h expmed.h
43328 fixed-value.h flags.h hard-reg-set.h insn-config.h real.h
43329 statistics.h stmt.h varasm.h.
43330 * gimplify.c: Include dojump.h emit-rtl.h explow.h expmed.h
43331 fixed-value.h flags.h hashtab.h insn-config.h real.h rtl.h statistics.h.
43332 * asan.c: Include dojump.h emit-rtl.h explow.h expmed.h fixed-value.h
43333 flags.h hashtab.h insn-config.h real.h rtl.h statistics.h stmt.h.
43334 * ipa-devirt.c: Include dojump.h emit-rtl.h explow.h expmed.h
43335 fixed-value.h flags.h hashtab.h insn-config.h real.h rtl.h
43336 statistics.h stmt.h varasm.h.
43337 * ipa-polymorphic-call.c: Likewise.
43338 * config/aarch64/aarch64.c: Include dojump.h emit-rtl.h explow.h
43339 expmed.h fixed-value.h flags.h hashtab.h insn-config.h real.h
43340 statistics.h stmt.h.
43341 * config/c6x/c6x.c: Likewise.
43342 * config/aarch64/aarch64-builtins.c: Include dojump.h emit-rtl.h
43343 explow.h expmed.h fixed-value.h flags.h hashtab.h insn-config.h real.h
43344 statistics.h stmt.h varasm.h.
43345 * ipa-prop.c: Include dojump.h emit-rtl.h explow.h expmed.h
43346 fixed-value.h hashtab.h insn-config.h real.h rtl.h statistics.h
43348 * ipa-split.c: Likewise.
43349 * tree-eh.c: Likewise.
43350 * tree-ssa-dce.c: Likewise.
43351 * tree-ssa-loop-niter.c: Likewise.
43352 * tree-vrp.c: Likewise.
43353 * config/nds32/nds32-cost.c: Include dojump.h emit-rtl.h explow.h
43354 expmed.h fixed-value.h hashtab.h insn-config.h real.h statistics.h
43356 * config/nds32/nds32-fp-as-gp.c: Likewise.
43357 * config/nds32/nds32-intrinsic.c: Likewise.
43358 * config/nds32/nds32-isr.c: Likewise.
43359 * config/nds32/nds32-md-auxiliary.c: Likewise.
43360 * config/nds32/nds32-memory-manipulation.c: Likewise.
43361 * config/nds32/nds32-pipelines-auxiliary.c: Likewise.
43362 * config/nds32/nds32-predicates.c: Likewise.
43363 * config/nds32/nds32.c: Likewise.
43364 * config/cris/cris.c: Include dojump.h emit-rtl.h explow.h expmed.h
43365 fixed-value.h hashtab.h real.h statistics.h.
43366 * config/alpha/alpha.c: Include dojump.h emit-rtl.h explow.h expmed.h
43367 fixed-value.h hashtab.h real.h statistics.h stmt.h.
43368 * config/arm/arm.c: Likewise.
43369 * config/avr/avr.c: Likewise.
43370 * config/bfin/bfin.c: Likewise.
43371 * config/h8300/h8300.c: Likewise.
43372 * config/i386/i386.c: Likewise.
43373 * config/ia64/ia64.c: Likewise.
43374 * config/iq2000/iq2000.c: Likewise.
43375 * config/m32c/m32c.c: Likewise.
43376 * config/m32r/m32r.c: Likewise.
43377 * config/m68k/m68k.c: Likewise.
43378 * config/mcore/mcore.c: Likewise.
43379 * config/mep/mep.c: Likewise.
43380 * config/mips/mips.c: Likewise.
43381 * config/mn10300/mn10300.c: Likewise.
43382 * config/moxie/moxie.c: Likewise.
43383 * config/pa/pa.c: Likewise.
43384 * config/rl78/rl78.c: Likewise.
43385 * config/rx/rx.c: Likewise.
43386 * config/s390/s390.c: Likewise.
43387 * config/sh/sh.c: Likewise.
43388 * config/sparc/sparc.c: Likewise.
43389 * config/spu/spu.c: Likewise.
43390 * config/stormy16/stormy16.c: Likewise.
43391 * config/v850/v850.c: Likewise.
43392 * config/vax/vax.c: Likewise.
43393 * config/cr16/cr16.c: Include dojump.h emit-rtl.h explow.h expmed.h
43394 fixed-value.h hashtab.h real.h statistics.h stmt.h varasm.h.
43395 * config/msp430/msp430.c: Likewise.
43396 * predict.c: Likewise.
43397 * value-prof.c: Likewise.
43398 * config/epiphany/epiphany.c: Include dojump.h emit-rtl.h explow.h
43399 expmed.h fixed-value.h hashtab.h statistics.h stmt.h.
43400 * config/microblaze/microblaze.c: Likewise.
43401 * config/nios2/nios2.c: Likewise.
43402 * config/rs6000/rs6000.c: Likewise.
43403 * tree.c: Include dojump.h emit-rtl.h explow.h expmed.h fixed-value.h
43404 insn-config.h real.h rtl.h statistics.h stmt.h.
43405 * cgraph.c: Include dojump.h emit-rtl.h explow.h expmed.h fixed-value.h
43406 insn-config.h real.h statistics.h stmt.h.
43407 * fold-const.c: Include dojump.h emit-rtl.h explow.h expmed.h
43408 fixed-value.h insn-config.h real.h statistics.h stmt.h varasm.h.
43409 * tree-inline.c: Include dojump.h emit-rtl.h explow.h expmed.h
43410 fixed-value.h real.h rtl.h statistics.h stmt.h varasm.h.
43411 * builtins.c: Include dojump.h emit-rtl.h explow.h expmed.h
43412 fixed-value.h real.h statistics.h stmt.h.
43413 * config/arc/arc.c: Include dojump.h emit-rtl.h explow.h expmed.h
43414 fixed-value.h statistics.h stmt.h.
43415 * config/visium/visium.c: Include dojump.h emit-rtl.h explow.h expmed.h
43418 2015-01-15 Jakub Jelinek <jakub@redhat.com>
43420 * gengtype.c (create_user_defined_type): Workaround
43421 -Wmaybe-uninitialized false positives.
43422 * cse.c (fold_rtx): Likewise.
43423 * loop-invariant.c (gain_for_invariant): Likewise.
43425 2015-01-15 Eric Botcazou <ebotcazou@adacore.com>
43427 * expr.c (expand_expr_real_1) <normal_inner_ref>: Use the expression to
43428 set the memory attributes in all cases but clear MEM_EXPR if need be.
43430 2015-01-15 Yuri Rumyantsev <ysrumyan@gmail.com>
43432 PR tree-optimization/64434
43433 * cfgexpand.c (reorder_operands): New function.
43434 (expand_gimple_basic_block): Insert call of reorder_operands if
43437 2015-01-15 Matthew Fortune <matthew.fortune@imgtec.com>
43439 * config/mips/micromips.md (*swp): Remove explicit parallel.
43440 (jraddiusp, *movep<MOVEP1:mode><MOVEP2:mode>): Likewise.
43441 * config/mips/mips-dsp.md (add<DSPV:mode>3): Likewise.
43442 (mips_add<DSP:dspfmt1>_s_<DSP:dspfmt2>, sub<DSPV:mode>3): Likewise.
43443 (mips_sub<DSP:dspfmt1>_s_<DSP:dspfmt2>, mips_addsc): Likewise.
43444 (mips_addwc, mips_absq_s_<DSPQ:dspfmt2>): Likewise.
43445 (mips_precrq_rs_ph_w, mips_precrqu_s_qb_ph): Likewise.
43446 (mips_shll_<DSPV:dspfmt2>, mips_shll_s_<DSPQ:dspfmt2>): Likewise.
43447 (mips_muleu_s_ph_qbl, mips_muleu_s_ph_qbr): Likewise.
43448 (mips_mulq_rs_ph, mips_muleq_s_w_phl, mips_muleq_s_w_phr): Likewise.
43449 (mips_dpaq_s_w_ph, mips_dpsq_s_w_ph, mips_mulsaq_s_w_ph): Likewise.
43450 (mips_dpaq_sa_l_w, mips_dpsq_sa_l_w, mips_maq_s_w_phl): Likewise.
43451 (mips_maq_s_w_phr, mips_maq_sa_w_phl, mips_maq_sa_w_phr): Likewise.
43452 (mips_extr_w, mips_extr_r_w, mips_extr_rs_w): Likewise.
43453 (mips_extr_s_h, mips_extp, mips_extpdp, mips_mthlip): Likewise.
43454 (mips_wrdsp): Likewise.
43455 * config/mips/mips-dspr2.md (mips_absq_s_qb): Remove explicit
43457 (mips_addu_ph, mips_addu_s_ph, mips_cmpgdu_eq_qb): Likewise.
43458 (mips_cmpgdu_lt_qb, mips_cmpgdu_le_qb, mulv2hi3): Likewise.
43459 (mips_mul_s_ph, mips_mulq_rs_w, mips_mulq_s_ph): Likewise.
43460 (mips_mulq_s_w, mips_subu_ph, mips_subu_s_ph): Likewise.
43461 (mips_dpaqx_s_w_ph, mips_dpaqx_sa_w_ph): Likewise.
43462 (mips_dpsqx_s_w_ph, mips_dpsqx_sa_w_ph): Likewise.
43463 * config/mips/mips-fixed.md (usadd<mode>3): Remove explicit parallel.
43464 (ssadd<mode>3, ussub<mode>3, sssub<mode>3, ssmul<mode>3): Likewise.
43465 (ssmaddsqdq4, ssmsubsqdq4): Likewise.
43467 2015-01-14 Matthew Fortune <matthew.fortune@imgtec.com>
43469 * config/mips/mips.c (mips_rtx_costs): Set costs for LSA/DLSA.
43470 (mips_print_operand): Support 'y' to print exact log2 in decimal
43472 * config/mips/mips.h (ISA_HAS_LSA): New define.
43473 (ISA_HAS_DLSA): Likewise.
43474 * config/mips/mips.md (<GPR:d>lsa): New define_insn.
43475 * config/mips/predicates.md (const_immlsa_operand): New predicate.
43477 2015-01-15 Martin Liska <mliska@suse.cz>
43480 * optc-save-gen.awk: Add support for array types.
43482 2015-01-15 Richard Biener <rguenther@suse.de>
43484 PR middle-end/64365
43485 * tree-data-ref.c (dr_analyze_indices): Make sure that accesses
43486 for MEM_REF access functions with the same base can never partially
43489 2015-01-14 Marcos Diaz <marcos.diaz@tallertechnologies.com>
43491 * common.opt: New option -fstack-protector-explicit.
43492 * cfgexpand.c (SPCT_FLAG_EXPLICIT): New enum.
43493 (stack_protect_decl_phase): Handle stack_protect attribute for
43494 explicit stack protection requests.
43495 (expand_used_vars): Similarly.
43496 * doc/cpp.texi (__SSP_EXPLICIT__): Document predefined macro.
43497 * doc/extend.texi: Add documentation for "stack_protect" attribute.
43498 * doc/invoke.texi: Add documentation for -fstack-protector-explicit.
43500 2015-01-14 Oleg Endo <olegendo@gcc.gnu.org>
43503 * config/sh/sh-protos.h (sh_find_set_of_reg): Add option to ignore
43505 (sh_extending_set_of_reg): New struct.
43506 (sh_find_extending_set_of_reg, sh_split_tst_subregs,
43507 sh_remove_reg_dead_or_unused_notes): New Declarations.
43508 * config/sh/sh.c (sh_remove_reg_dead_or_unused_notes,
43509 sh_find_extending_set_of_reg, sh_split_tst_subregs,
43510 sh_extending_set_of_reg::use_as_extended_reg): New functions.
43511 * config/sh/sh.md (*tst<mode>_t_zero): Rename to *tst<mode>_t_subregs,
43512 convert to insn_and_split and use new function sh_split_tst_subregs.
43514 2015-01-14 Sandra Loosemore <sandra@codesourcery.com>
43516 * doc/invoke.texi (Option Summary): Reclassify -fuse-ld as a linker
43518 (Optimization Options): Move -fuse-ld documentation to...
43519 (Link Options): ...here.
43521 2015-01-14 Matthew Fortune <matthew.fortune@imgtec.com>
43523 * config/mips/constraints.md (ZC): Add support for R6 LL/SC
43525 (ZD): Update to use ISA_HAS_9BIT_DISPLACEMENT.
43526 * config/mips/mips.h (ISA_HAS_PREFETCH_9BIT): Rename to...
43527 (ISA_HAS_9BIT_DISPLACEMENT): ... this. New macro.
43528 * config/mips/sync.md (sync_compare_and_swap<mode>): Use ZC
43529 instead of ZR for the memory operand of LL/SC.
43530 (compare_and_swap_12, sync_add<mode>): Likewise.
43531 (sync_<optab>_12, sync_old_<optab>_12): Likewise.
43532 (sync_new_<optab>_12, sync_nand_12): Likewise.
43533 (sync_old_nand_12, sync_new_nand_12): Likewise.
43534 (sync_sub<mode>, sync_old_add<mode>): Likewise.
43535 (sync_old_sub<mode>, sync_new_add<mode>): Likewise.
43536 (sync_new_sub<mode>, sync_<optab><mode>): Likewise.
43537 (sync_old_<optab><mode>, sync_new_<optab><mode>"): Likewise.
43538 (sync_nand<mode>, sync_old_nand<mode>): Likewise.
43539 (sync_new_nand<mode>, sync_lock_test_and_set<mode>): Likewise.
43540 (test_and_set_12, atomic_compare_and_swap<mode>): Likewise.
43541 (atomic_exchange<mode>_llsc, atomic_fetch_add<mode>_llsc): Likewise.
43542 * doc/md.texi (ZC): Update description.
43544 2015-01-14 Andrew MacLeod <amacleod@redhat.com>
43546 * builtins.c (expand_builtin_atomic_exchange): Remove error when
43547 memory model is CONSUME.
43548 (expand_builtin_atomic_compare_exchange, expand_builtin_atomic_load,
43549 expand_builtin_atomic_store): Change invalid memory model errors to
43551 (expand_builtin_atomic_clear): Change invalid model errors to warnings
43552 and issue warning for CONSUME.
43554 2015-01-14 Aldy Hernandez <aldyh@redhat.com>
43556 * lto-cgraph: Update function comments for
43557 lto_symtab_encoder_encode_*.
43559 2015-01-14 Ilya Verbin <ilya.verbin@intel.com>
43561 * Makefile.in (site.exp): Do not set ENABLE_LTO.
43563 2015-01-14 Ilya Verbin <ilya.verbin@intel.com>
43565 * cgraphunit.c (ipa_passes): Remove argument from ipa_write_summaries.
43566 * lto-cgraph.c (select_what_to_stream): Remove argument, use
43567 lto_stream_offload_p instead.
43568 * lto-streamer.h (select_what_to_stream): Remove argument.
43569 * passes.c (ipa_write_summaries): Likewise.
43570 * tree-pass.h (ipa_write_summaries): Likewise.
43572 2015-01-14 Richard Biener <rguenther@suse.de>
43574 PR tree-optimization/59354
43575 * tree-vect-slp.c (vect_build_slp_tree_1): Treat loads from
43576 groups larger than the slp group size as having gaps.
43578 2015-01-14 Andrew MacLeod <amacleod@redhat.com>
43580 PR middle-end/59448
43581 * builtins.c (get_memmodel): Promote consume to acquire always.
43583 2015-01-14 Ilya Tocar <ilya.tocar@intel.com>
43586 * config/i386/i386.c (ix86_expand_sse_cmp): Handle V64QImode,
43589 2015-01-14 Ilya Tocar <ilya.tocar@intel.com>
43592 * common/config/i386/i386-common.c (OPTION_MASK_ISA_AVX512VBMI_SET):
43594 (OPTION_MASK_ISA_AVX512BW_UNSET): Disable AVX512VBMI.
43595 * config/i386/i386.c (ix86_hard_regno_mode_ok): Don't check
43596 AVX512VBMI, as it implies AVX512BW.
43598 2015-01-14 Ilya Tocar <ilya.tocar@intel.com>
43601 * config/i386/sse.md (vec_unpacks_hi_v8sf): Fix predicate.
43602 (vec_unpacks_hi_v16sf): Ditto.
43604 2015-01-14 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
43606 * config/aarch64/arm_neon.h: Error out if AdvancedSIMD
43609 2015-01-14 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
43611 * doc/invoke.texi (mapcs): Mention deprecation.
43612 (mapcs-frame): Likewise.
43614 2015-01-14 Thomas Preud'homme <thomas.preudhomme@arm.com>
43617 * config/arm/arm.c (callee_saved_reg_p): Define.
43618 (arm_compute_save_reg0_reg12_mask): Use callee_saved_reg_p to check if
43619 register is callee saved instead of !call_used_regs[reg].
43620 (thumb1_compute_save_reg_mask): Likewise.
43622 2015-01-14 Hale Wang <hale.wang@arm.com>
43624 * config/arm/arm.c: Tune the max_cond_insns/branch_cost for
43627 2015-01-14 Richard Biener <rguenther@suse.de>
43630 * tree-inline.c (insert_debug_decl_map): Check destination
43631 function MAY_HAVE_DEBUG_STMTS.
43632 (insert_init_debug_bind): Likewise.
43633 (insert_init_stmt): Remove redundant check.
43634 (remap_gimple_stmt): Drop debug stmts if the destination
43635 function has var-tracking assignments disabled.
43637 2015-01-14 Martin Liska <mliska@suse.cz>
43639 * ipa-icf-gimple.c (func_checker::compare_operand): Add support for
43640 IMAGPART_EXPR and REALPART_EXPR and fix BIT_FIELD_REF comparison.
43642 2015-01-14 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
43645 * config/arm/arm.md (*<arith_shift_insn>_multsi): Set 'shift' to 2.
43646 (*<arith_shift_insn>_shiftsi): Set 'shift' attr to 3.
43648 2015-01-14 Matthew Fortune <matthew.fortune@imgtec.com>
43650 * config/mips/mips.h (MIPS_ISA_LEVEL_SPEC): Only infer an ISA
43651 level from an ARCH; do not inject the default.
43652 (MIPS_DEFAULT_ISA_LEVEL_SPEC): New macro split out from
43653 MIPS_ISA_LEVEL_SPEC.
43654 (MIPS_ISA_NAN2008_SPEC): Update comment.
43655 (BASE_DRIVER_SELF_SPECS): Likewise.
43656 * config/mips/elfoabi.h (DRIVER_SELF_SPECS): Add
43657 MIPS_DEFAULT_ISA_LEVEL_SPEC.
43658 * config/mips/mti-elf.h (DRIVER_SELF_SPECS): Likewise.
43659 * config/mips/mti-linux.h (DRIVER_SELF_SPECS): Likewise.
43660 * config/mips/sde.h (DRIVER_SELF_SPECS): Likewise.
43662 2015-01-14 Richard Biener <rguenther@suse.de>
43664 PR tree-optimization/64493
43665 PR tree-optimization/64495
43666 * tree-vect-loop.c (vect_finalize_reduction): For double-reductions
43667 assign the proper vectorized PHI to the inner loop exit PHIs.
43669 2015-01-14 Joey Ye <joey.ye@arm.com>
43671 * config/arm/arm.c (arm_compute_save_reg_mask):
43672 Do not save lr in case of tail call.
43673 * config/arm/thumb2.md (*thumb2_pop_single): New pattern.
43675 2015-01-14 Martin Uecker <uecker@eecs.berkeley.edu>
43677 * tree-vrp.c (check_array_ref): Emit more warnings
43678 for warn_array_bounds >= 2.
43679 * common.opt: New option -Warray-bounds=.
43680 * doc/invoke.texi: Document -Warray-bounds=.
43682 2015-01-14 Chung-Ju Wu <jasonwucj@gmail.com>
43684 * config/nds32/nds32.opt (mforce-fp-as-gp): Remove.
43685 (mforbid-fp-as-gp): Remove.
43687 * config/nds32/nds32-fp-as-gp.c (nds32_have_prologue_p): Remove.
43688 (nds32_symbol_load_store_p): Remove.
43689 (nds32_fp_as_gp_check_available): Clean up implementation.
43690 * config/nds32/nds32.h (LINK_SPEC): Remove -mforce-as-gp and -mex9
43692 * config/nds32/nds32.c (nds32_asm_file_start): No need to consider
43693 fp-as-gp and ex9 cases.
43695 2015-01-13 Jan Hubicka <hubicka@ucw.cz>
43697 * tree-profile.c (init_ic_make_global_vars): Drop workaround
43698 for bintuils bug 14342.
43699 (init_ic_make_global_vars): Likewise.
43700 (gimple_init_edge_profiler): Likewise.
43701 (gimple_gen_ic_func_profiler): Likewise.
43703 2015-01-13 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
43705 * ipa-inline.c (inline_small_functions): Swap the operands in
43708 2015-01-13 Jan Hubicka <hubicka@ucw.cz>
43711 * ipa-inline-analysis.c (node_growth_cache): Remove.
43712 (initialize_growth_caches): Do not initialize it.
43713 (free_growth_caches): Do not free it.
43714 (do_estimate_growth): Rename to ...
43715 (estimate_growth): ... this one; drop growth cache code.
43716 (growth_likely_positive): Always go the heuristics way.
43717 * ipa-inline.c (can_inline_edge_p): Walk through aliases.
43718 (reset_edge_caches): Do not reset node growth.
43719 (heap_edge_removal_hook): Do not maintain cache.
43720 (inline_small_functions): Likewise; strenghten sanity check.
43721 (ipa_inline): Do not maintain caches.
43722 * ipa-inline.h (node_growth_cache): Remove.
43723 (do_estimate_growth): Remove to ...
43724 (estimate_growth): this one; remove inline version.
43725 (reset_node_growth_cache): Remove.
43727 2015-01-13 Jan Hubicka <hubicka@ucw.cz>
43730 * ipa-inline.c (inline_small_functions): Update callee keys after
43731 resolving speculation
43732 (inline_small_functions): Always check monotonicity of the queue.
43734 2015-01-13 Marek Polacek <polacek@redhat.com>
43736 PR middle-end/64391
43737 * trans-mem.c (get_attrs_for): Return NULL_TREE if X is NULL_TREE.
43739 2015-01-13 Jakub Jelinek <jakub@redhat.com>
43741 PR rtl-optimization/64286
43742 * ree.c (combine_reaching_defs): Move part of comment earlier,
43743 remove !SCALAR_INT_MODE_P check.
43744 (add_removable_extension): Don't add vector mode
43745 extensions if all uses of the source register aren't the same
43748 2015-01-13 Renlin Li <renlin.li@arm.com>
43750 * config/arm/arm.h (CLZ_DEFINED_VALUE_AT_ZERO): Return 2.
43751 (CTZ_DEFINED_VALUE_AT_ZERO): Ditto.
43753 2015-01-13 Martin Liska <mliska@suse.cz>
43755 * ipa-icf.c (sem_function::equals_private): Call new functions
43756 cl_target_option_print_diff and cl_optimization_print_diff.
43757 * optc-save-gen.awk (cl_target_option_print_diff): New function.
43758 (cl_optimization_print_diff): Likewise.
43759 * opth-gen.awk: Likewise.
43761 2015-01-13 Richard Sandiford <richard.sandiford@arm.com>
43763 * config/aarch64/aarch64.md (subsi3, *subsi3_uxtw, subdi3)
43764 (*sub_<optab><ALLX:mode>_<GPI:mode>, *sub_<optab><SHORT:mode>_si_uxtw)
43765 (*sub_<optab><ALLX:mode>_shft_<GPI:mode>)
43766 (*sub_<optab><SHORT:mode>_shft_si_uxtw, *sub_<optab><mode>_multp2)
43767 (*sub_<optab>si_multp2_uxtw, *sub_uxt<mode>_multp2)
43768 (*sub_uxtsi_multp2_uxtw): Add stack pointer sources.
43770 2015-01-13 Andrew Pinski <apinski@cavium.com>
43772 * config/aarch64/aarch64.c (fusion_load_store): Check dest mode
43773 instead of src mode.
43775 2015-01-13 Richard Biener <rguenther@suse.de>
43778 * lto-streamer-out.c (tree_is_indexable): Guard for NULL
43781 2015-01-13 Andrew Pinski <apinski@cavium.com>
43783 * config/aarch64/aarch64.c (aarch64_operands_ok_for_ldpstp): Reject
43785 (aarch64_operands_adjust_ok_for_ldpstp): Likewise.
43787 2015-01-13 Jakub Jelinek <jakub@redhat.com>
43789 PR middle-end/63974
43790 * cfgexpand.c (expand_computed_goto): Don't call
43791 convert_memory_address here.
43793 2015-01-13 Richard Biener <rguenther@suse.de>
43795 PR tree-optimization/64406
43796 * tree-loop-distibution.c (pass_loop_distribution::execute):
43797 Reset the SCEV hashtable if we distributed anything.
43799 2015-01-13 Richard Biener <rguenther@suse.de>
43801 PR tree-optimization/64404
43802 * tree-vect-stmts.c (vectorizable_load): Reject conflicting
43803 SLP types for CSEd loads.
43805 2015-01-13 Thomas Preud'homme <thomas.preudhomme@arm.com>
43807 PR tree-optimization/64436
43808 * tree-ssa-math-opts.c (find_bswap_or_nop_1): Move code performing the
43809 merge of two symbolic numbers for a bitwise OR to ...
43810 (perform_symbolic_merge): This. Also fix computation of the range and
43811 end of the symbolic number corresponding to the result of a bitwise OR.
43813 2015-01-13 Richard Biener <rguenther@suse.de>
43815 PR tree-optimization/64568
43816 * tree-ssa-forwprop.c (pass_forwprop::execute): Properly
43817 release defs of removed stmts, avoid splitting TARGET_MEM_REFs.
43819 2015-01-13 Chung-Ju Wu <jasonwucj@gmail.com>
43821 * config/nds32/nds32.c (nds32_legitimate_address_p): Consider
43822 TARGET_CMODEL_LARGE and TARGET_CMODEL_MEDIUM cases.
43824 2015-01-13 Chung-Ju Wu <jasonwucj@gmail.com>
43826 * config/nds32/nds32.h (NDS32_SYMBOL_FLAG_RODATA): Define our own
43827 target-specific symbol_ref flag.
43828 (NDS32_SYMBOL_REF_RODATA_P): Define it to check if the symbol_ref
43829 resides in rodata section.
43830 * config/nds32/nds32.c (TARGET_ENCODE_SECTION_INFO): Define.
43831 (nds32_encode_section_info): New function.
43833 2015-01-13 Chung-Ju Wu <jasonwucj@gmail.com>
43835 * config/nds32/nds32.md (call): Use pseudo instruction bal which
43836 clobbers TA_REGNUM if large code model is specified.
43837 (call_register): Likewise.
43838 (call_immediate): Likewise.
43839 (call_value): Likewise.
43840 (call_value_register): Likewise.
43841 (call_value_immediate): Likewise.
43843 2015-01-13 Chung-Ju Wu <jasonwucj@gmail.com>
43845 * config/nds32/nds32.h (TARGET_CMODEL_SMALL): New macro.
43846 (TARGET_CMODEL_MEDIUM): New macro.
43847 (TARGET_CMODEL_LARGE): New macro.
43848 * config/nds32/nds32.c (nds32_asm_file_start): Display corresponding
43849 code model setting in assembly code.
43851 2015-01-13 Chung-Ju Wu <jasonwucj@gmail.com>
43853 * common/config/nds32/nds32-common.c (TARGET_DEFAULT_TARGET_FLAGS):
43854 Remove MASK_GP_DIRECT flag.
43855 * config/nds32/nds32.h (MULTILIB_DEFAULTS): Have -mcmodel=medium as
43856 one of the multilib default options.
43857 * config/nds32/nds32.opt (mgp-direct): Remove.
43858 * config/nds32/t-mlibs (MULTILIB_OPTIONS): Use -mcmodel instead of
43859 -mgp-direct. We also remove unnecessary -mlittle-endian/-mbig-endian.
43861 2015-01-13 Chung-Ju Wu <jasonwucj@gmail.com>
43863 * config/nds32/nds32.opt (mcmodel): Add new option.
43864 * config/nds32/nds32-opts.h (nds32_cmodel_type): Add new enum type
43865 to describe code model.
43867 2015-01-13 Oleg Endo <olegendo@gcc.gnu.org>
43870 * rtlanal.c (set_reg_p): Handle SEQUENCE constructs.
43872 2015-01-12 Kaz Kojima <kkojima@gcc.gnu.org>
43874 * config/sh/sh.c (sh_atomic_assign_expand_fenv): New function.
43875 (TARGET_ATOMIC_ASSIGN_EXPAND_FENV): Define.
43876 (sh_builtin_get_fpscr, sh_builtin_set_fpscr): New variables.
43877 (sh_init_builtins): Record decls for __builtin_sh_get_fpscr and
43878 __builtin_sh_set_fpscr.
43880 2015-01-12 Sandra Loosemore <sandra@codesourcery.com>
43882 * doc/invoke.texi ([-Wsuggest-attribute=]): Don't use parentheses
43883 after a funtion name just to indicate it is a function.
43884 ([-fsanitize-undefined-trap-on-error]): Likewise.
43885 ([-fdbg-cnt=]): Likewise.
43886 ([-mmemcpy]): Likewise.
43887 ([-mflush-func]): Likewise.
43888 ([-msynci]): Likewise.
43890 2015-01-12 Sandra Loosemore <sandra@codesourcery.com>
43892 * doc/invoke.texi ([-Wbad-function-cast]): Rewrite to avoid confusing
43895 2015-01-12 Jakub Jelinek <jakub@redhat.com>
43897 PR tree-optimization/64563
43898 * tree-vrp.c (vrp_evaluate_conditional): Check for VR_RANGE
43899 instead of != VR_VARYING.
43902 * config/i386/i386.c (ix86_expand_prologue): Add
43903 REG_FRAME_RELATED_EXPR to %rax and %r10 pushes.
43905 PR tree-optimization/64454
43906 * tree-vrp.c (simplify_div_or_mod_using_ranges): Optimize
43907 op0 % op1 into op0 if op0 is in range [-op1 + 1, op1 - 1]
43908 for signed or [0, op1 - 1] for unsigned modulo.
43909 (simplify_stmt_using_ranges): Call simplify_div_or_mod_using_ranges
43910 even if op1 does not satisfy integer_pow2p.
43913 * sreal.c (sreal::to_double): Use ldexp instead of scalbnl.
43915 2015-01-12 Jeff Law <law@redhat.com>
43918 * config/m68k/m68k.md (truncsiqi2): Disable for TARGET_COLDFIRE.
43919 (trunchiqi2, truncsihi2): Similarly.
43921 * config/h8300/h8300.c (Fpa): Use RTX_FRAME_RELATED_P directly
43922 rather than calling F.
43924 2015-01-12 Bernd Edlinger <bernd.edlinger@hotmail.de>
43926 * tsan.c (instrument_expr): Use force_gimple_operand.
43927 Use may_be_nonaddressable_p instead of is_gimple_addressable.
43929 2015-01-12 Richard Biener <rguenther@suse.de>
43931 PR tree-optimization/64530
43932 * tree-loop-distribution.c (pg_add_dependence_edges): Shuffle
43935 2015-01-12 Richard Biener <rguenther@suse.de>
43937 PR middle-end/64357
43938 * tree-cfg.c (gimple_can_merge_blocks_p): Protect simple
43941 2015-01-12 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
43943 * config/arm/arm.c (arm_cortex_a12_tune): Update entries to match
43944 Cortex-A17 tuning parameters.
43945 * config/arm/arm-cores.def (cortex-a12): Schedule for cortex-a17.
43947 2015-01-12 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
43949 * config/arm/arm-protos.h (tune_params): Add fuseable_ops field.
43950 * config/arm/arm.c (arm_macro_fusion_p): New function.
43951 (arm_macro_fusion_pair_p): Likewise.
43952 (TARGET_SCHED_MACRO_FUSION_P): Define.
43953 (TARGET_SCHED_MACRO_FUSION_PAIR_P): Likewise.
43954 (ARM_FUSE_NOTHING): Likewise.
43955 (ARM_FUSE_MOVW_MOVT): Likewise.
43956 (arm_slowmul_tune, arm_fastmul_tune, arm_strongarm_tune,
43957 arm_xscale_tune, arm_9e_tune, arm_v6t2_tune, arm_cortex_tune,
43958 arm_cortex_a8_tune, arm_cortex_a7_tune, arm_cortex_a15_tune,
43959 arm_cortex_a53_tune, arm_cortex_a57_tune, arm_cortex_a9_tune,
43960 arm_cortex_a12_tune, arm_v7m_tune, arm_v6m_tune, arm_fa726te_tune
43961 arm_cortex_a5_tune): Specify fuseable_ops value.
43963 2015-01-12 H.J. Lu <hongjiu.lu@intel.com>
43966 * configure.ac (HAVE_LD_PIE_COPYRELOC): Update Linux/x86-64 linker
43967 test for PIE with copy reloc.
43968 * configure: Regenerated.
43970 2015-01-12 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
43972 * config/arm/arm.c (arm_load_tp): Use R0_REGNUM instead of constant 0
43974 (arm_tls_descseq_addr): Likewise.
43975 (arm_gen_movmemqi): Likewise.
43976 (arm_expand_epilogue_apcs_frame): Likewise.
43977 (arm_expand_epilogue): Likewise.
43978 (arm_expand_prologue): Likewise. Use R1_REGNUM instead of constant 1
43981 2015-01-12 Martin Liska <mliska@suse.cz>
43984 * ipa-icf-gimple.c (func_checker::compare_memory_operand): Compare
43985 volatility for correct operands.
43987 2015-01-12 Martin Liska <mliska@suse.cz>
43989 * ipa-icf.c (sem_function::equals_wpa): Add indirect_calls as
43990 indication that a function is not leaf.
43991 (sem_function::compare_polymorphic_p): Likewise.
43993 2015-01-12 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
43995 * config/visium/visium.c: Add includes hashtab.h, hash-set.h,
43996 machmode.h, input.h, statistics.h, vec.h, double-int.h, real.h,
43997 fixed-value.h, alias.h, symtab.h, tree-core.h, wide-int.h, inchash.h,
43998 fold-const.h, tree-check.h.
44000 2015-01-12 Jan Hubicka <hubicka@ucw.cz>
44004 * ipa-inline.c (compute_uninlined_call_time,
44005 compute_inlined_call_time): Use counts for extra precision when
44007 (big_speedup_p): Fix formating.
44008 (RELATIVE_TIME_BENEFIT_RANGE): Remove.
44009 (relative_time_benefit): Remove.
44010 (edge_badness): Turn DECL_DISREGARD_INLINE_LIMITS into hint;
44011 merge guessed and read profile paths.
44012 (inline_small_functions): Count only !optimize_size functions into
44013 initial size; be more lax about sanity check when profile is used;
44014 be sure to update inlined function profile when profile is read.
44016 2015-01-12 Jan Hubicka <hubicka@ucw.cz>
44019 * ipa-inline-analysis.c (inline_edge_duplication_hook): Adjust
44020 cost when edge becomes direct.
44021 * ipa-prop.c (make_edge_direct): Do not adjust when speculation
44022 is resolved or when introducing new speculation.
44024 2015-01-12 Chen Gang <gang.chen.5i5j@gmail.com>
44028 * ipa-icf.c (sem_function::equals_private): Use '&&' instead of
44029 '||' to fix typo issue.
44031 * tree.h (target_opts_for_fn): Check NULL_TREE since it can
44032 accept and return NULL.
44034 2015-01-12 Martin Liska <mliska@suse.cz>
44036 * cgraph.c (cgraph_edge::remove_callee): Move function to header
44037 file for being inlined.
44038 (cgraph_set_edge_callee): Delete.
44039 (cgraph_edge::redirect_callee): Move function to header file
44041 (cgraph_edge::make_direct): Use new function.
44042 (cgraph_edge::dump_edge_flags): New function created from
44043 static dump_edge_flags function.
44044 (cgraph_node::dump): Use new function.
44045 (cgraph_edge::verify_count_and_frequency): New function created
44046 from verify_edge_count_and_frequency.
44047 (cgraph_edge::verify_corresponds_to_fndecl): New function created
44048 from verify_edge_corresponds_to_fndecl.
44049 (verify_edge_corresponds_to_fndecl): Delete.
44050 (cgraph_node::verify_node): Use new function.
44051 * cgraph.h (cgraph_edge::set_callee): New function.
44052 (cgraph_edge::dump_edge_flags): Likewise.
44053 (cgraph_edge::verify_corresponds_to_fndecl): Likewise.
44055 2015-01-11 Jan Hubicka <hubicka@ucw.cz>
44057 * ipa-utils.c (estimate_function_body_sizes): Do not
44058 free node params when called late with early=true.
44060 2015-01-11 James Greenhalgh <james.greenhalgh@arm.com>
44062 * doc/md.texi (Instruction Patterns): Rewrite text for
44064 (Example): Likewise.
44066 2015-01-10 Sandra Loosemore <sandra@codesourcery.com>
44068 * doc/invoke.texi (Option Summary): Break long lines.
44069 [(-fdiagnostics-color)]: Put long literal in @smallexample
44071 [(-fsanitize-recover)]: Likewise.
44072 [(-fdump-rtl-split*)]: Rewrite to fix over-full hbox.
44073 [(-ffast-math)]: Likewise.
44074 [(--param max-inline-insns-recursive)]: Likewise.
44075 [(--param max-inline-recursive-depth)]: Likewise.
44076 [(-mno-text-section-literals)]: Likewise.
44078 2015-01-10 Thomas Schwinge <thomas@codesourcery.com>
44080 * doc/install.texi: Update for libgomp being renamed from "GNU
44081 OpenMP Runtime Library" to "GNU Offloading and Multi Processing
44083 * doc/sourcebuild.texi: Likewise.
44085 2015-01-10 Anthony Green <green@moxielogic.com>
44087 * config/moxie/moxie.c (moxie_option_override): Fix forcing of
44088 mul.x availability for moxiebox configuration.
44090 2015-01-09 Anthony Green <green@moxielogic.com>
44092 * config/moxie/moxie.md: Tabify assembly output.
44094 2015-01-09 Anthony Green <green@moxielogic.com>
44096 * config/moxie/moxie.md (CC_REG): Correct register definition.
44098 2015-01-09 Sandra Loosemore <sandra@codesourcery.com>
44100 * doc/invoke.texi ([-fvtable-verify]): Copy-edit and fix markup.
44101 ([-fvtv-debug], [-fvtv-counts]): Likewise. Correct location
44104 2015-01-09 Andreas Tobler <andreast@gcc.gnu.org>
44106 * config/arm/arm.h (MAX_SYNC_LIBFUNC_SIZE): Delete semicolon.
44108 2015-01-09 Bernd Schmidt <bernds@codesourcery.com>
44109 Jakub Jelinek <jakub@redhat.com>
44111 PR middle-end/64412
44112 * lto-streamer.h (lto_stream_offload_p): New declaration.
44113 * lto-streamer.c (lto_stream_offload_p): New variable.
44114 * cgraphunit.c (ipa_passes): Set lto_stream_offload_p
44115 at the same time as section_name_prefix.
44116 * lto-streamer-out.c (hash_tree): Don't hash TREE_TARGET_OPTION
44117 if lto_stream_offload_p.
44118 * tree-streamer-out.c (streamer_pack_tree_bitfields): Don't
44119 stream TREE_TARGET_OPTION if lto_stream_offload_p.
44120 (write_ts_function_decl_tree_pointers): Don't
44121 stream DECL_FUNCTION_SPECIFIC_TARGET if lto_stream_offload_p.
44122 * tree-streamer-in.c (unpack_value_fields): Don't stream
44123 TREE_TARGET_OPTION in if ACCEL_COMPILER.
44124 (lto_input_ts_function_decl_tree_pointers): Don't stream
44125 DECL_FUNCTION_SPECIFIC_TARGET in if ACCEL_COMPILER.
44126 * lto-opts.c (lto_write_options): Use lto_stream_offload_p
44127 instead of section_name_prefix string comparisons.
44129 2015-01-09 Jakub Jelinek <jakub@redhat.com>
44131 PR rtl-optimization/64536
44132 * cfgrtl.c (rtl_tidy_fallthru_edge): Handle removal of degenerate
44135 2015-01-09 Michael Collison <michael.collison@linaro.org>
44137 PR tree-optimization/64322
44138 * tree-vrp.c (extract_range_from_binary_expr_1): Attempt to derive
44139 range for RSHIFT_EXPR even if vr0 range is not VR_RANGE or is symbolic.
44141 2015-01-09 Tom de Vries <tom@codesourcery.com>
44143 PR rtl-optimization/64539
44144 * regcprop.c (kill_clobbered_values): Factor out of ...
44145 (copyprop_hardreg_forward_1): ... here. Use kill_clobbered_values
44146 instead of note_stores with kill_clobbered_value.
44148 2015-01-09 Andreas Tobler <andreast@gcc.gnu.org>
44150 * ginclude/unwind-arm-common.h: Revert previous commit.
44152 2015-01-09 Andreas Tobler <andreast@gcc.gnu.org>
44154 * config.gcc (arm*-*-freebsd*): New configuration.
44155 * config/arm/freebsd.h: New file.
44156 * config.host: Add extra components for arm*-*-freebsd*.
44157 * config/arm/arm.h: Introduce MAX_SYNC_LIBFUNC_SIZE.
44158 * config/arm/arm.c (arm_init_libfuncs): Use MAX_SYNC_LIBFUNC_SIZE.
44160 2015-01-09 Sebastian Huber <sebastian.huber@embedded-brains.de>
44162 * config/rs6000/rtems.h (CPP_OS_RTEMS_SPEC): Define __PPC_CPU_E6500__
44164 * config/rs6000/t-rtems: Add e6500 multilibs.
44166 2015-01-09 Sebastian Huber <sebastian.huber@embedded-brains.de>
44168 * config/rs6000/t-rtems: Add -mno-spe to soft-float multilib for
44171 2015-01-09 Sebastian Huber <sebastian.huber@embedded-brains.de>
44173 * config/rs6000/t-rtems: Use MULTILIB_REQUIRED instead of
44174 MULTILIB_EXCEPTIONS.
44176 2015-01-09 Sebastian Huber <sebastian.huber@embedded-brains.de>
44178 * config/arm/t-rtems: Use MULTILIB_REQUIRED instead of
44179 MULTILIB_EXCEPTIONS.
44181 2015-01-09 Sebastian Huber <sebastian.huber@embedded-brains.de>
44183 * config/arm/t-rtems-eabi: Rename to...
44184 * config/arm/t-rtems: ...this.
44185 * config/arm/rtems-eabi.h: Rename to...
44186 * config/arm/rtems.h: ...this.
44187 * config.gcc (arm*-*-rtems*): Reflect changes above.
44189 2015-01-09 Richard Biener <rguenther@suse.de>
44191 PR tree-optimization/64410
44192 * tree-ssa.c (non_rewritable_lvalue_p): Allow REALPART/IMAGPART_EXPR
44194 (execute_update_addresses_taken): Deal with that.
44195 * tree-ssa-forwprop.c (pass_forwprop::execute): Use component-wise
44196 loads/stores for complex variables.
44198 2015-01-09 Martin Liska <mliska@suse.cz>
44200 * ipa-icf-gimple.c (func_checker::compare_ssa_name): Enhance SSA
44202 (func_checker::compare_memory_operand): New function.
44203 (func_checker::compare_operand): Split case to newly
44205 (func_checker::compare_cst_or_decl): New function.
44206 (func_checker::compare_gimple_call): Identify
44208 (func_checker::compare_gimple_assign): Likewise.
44209 * ipa-icf-gimple.h: New function.
44211 2015-01-09 Martin Liska <mliska@suse.cz>
44214 * sreal.c (sreal::dump): Change unsigned format to signed for
44216 (sreal::to_double): Replace exp2 with scalbln.
44218 2015-01-09 Martin Liska <mliska@suse.cz>
44220 * cgraphunit.c (cgraph_node::create_wrapper): Fix level of indentation.
44221 * ipa-icf.c (sem_function::equals_private): Add support for target and
44222 (sem_item_optimizer::merge_classes): Remove redundant function
44223 optimization flags comparison.
44224 * tree.h (target_opts_for_fn): New function.
44226 2015-01-09 Tom de Vries <tom@codesourcery.com>
44228 * omp-low.c (expand_omp_for_static_chunk): Fix assert.
44230 2015-01-09 Kito Cheng <kito@0xlab.org>
44232 PR rtl-optimization/64348
44233 * lra-constraints.c (split_reg): Fix caller-save store/restore
44234 instruction generation.
44236 2015-01-08 John David Anglin <danglin@gcc.gnu.org>
44238 PR gcov-profile/61790
44239 * gcov-tool.c (do_rewrite): Use strtoll instead of atoll if host has
44240 long long. Fallback to int64_t if host doesn't have long long and
44241 use strtol if int64_t is long. Otherwise, use sscanf for conversion.
44243 2015-01-08 Jakub Jelinek <jakub@redhat.com>
44245 PR tree-optimization/63989
44246 * params.def (PARAM_MAX_TRACKED_STRLENS): Increment default
44247 from 1000 to 10000.
44248 * tree-ssa-strlen.c (get_strinfo): Moved earlier.
44249 (get_stridx): If we don't have a record for certain SSA_NAME,
44250 but it is POINTER_PLUS_EXPR of some SSA_NAME we do with
44251 constant offset, call get_stridx_plus_constant.
44252 (get_stridx_plus_constant): New function.
44253 (zero_length_string): Don't use get_stridx here.
44256 PR middle-end/64388
44257 * dse.c (struct insn_info): Mention frame_read set also
44258 before reload for tail calls on some targets.
44259 (scan_insn): Revert 2014-12-22 change. Set frame_read
44260 also before reload for tail calls if
44261 HARD_FRAME_POINTER_IS_ARG_POINTER. Call add_wild_read
44262 instead of add_non_frame_wild_read for non-const/memset
44263 tail calls after reload.
44265 2015-01-08 Jason Merrill <jason@redhat.com>
44267 * ubsan.c (do_ubsan_in_current_function): New.
44268 (pass_ubsan::gate): Use it.
44269 * ubsan.h: Declare it.
44270 * convert.c (convert_to_integer): Use it.
44272 2015-01-08 Jakub Jelinek <jakub@redhat.com>
44275 * config/i386/i386.c (ix86_expand_int_movcc): Don't reverse
44276 compare_code when it is unconditionally overwritten afterwards.
44277 Use ix86_reverse_condition instead of reverse_condition. Don't
44278 change code if *reverse_condition* returned UNKNOWN and don't
44279 swap ct/cf and negate diff in that case.
44281 2015-01-08 Mike Stump <mikestump@comcast.net>
44283 * tsan.c (pass_tsan::gate): Add no_sanitize_thread support.
44284 (pass_tsan_O0::gate): Likewise.
44285 * extend.texi (Function Attributes): Add no_sanitize_thread
44288 2015-01-08 Thomas Schwinge <thomas@codesourcery.com>
44290 * builtins.def (DEF_GOMP_BUILTIN): Also consider flag_offload_abi
44291 for registering builtins.
44292 * config/i386/intelmic-mkoffload.c (prepare_target_image): Don't
44293 add -fopenmp to the argv_obstack used when invoking
44294 compile_for_target.
44296 * config/i386/intelmic-mkoffload.c (compile_for_target): Always
44297 add "-m32" or "-m64" to argv_obstack.
44298 (generate_host_descr_file): Likewise, when invoking host_compiler.
44299 (main): Always add "-m elf_i386" or "-m elf_x86_64" when invoking
44302 2015-01-08 Oleg Endo <olegendo@gcc.gnu.org>
44304 * config/sh/sh-mem.cc: Use constant as second operand when emitting
44307 2015-01-08 Oleg Endo <olegendo@gcc.gnu.org>
44310 * config/sh/sh.md (*addsi3_compact): Emit reg-reg copy instead of
44311 constant load if constant operand fits into I08.
44313 2015-01-08 Jakub Jelinek <jakub@redhat.com>
44316 * tree.c (build2_stat): Fix up initialization of TREE_READONLY
44317 and TREE_THIS_VOLATILE for MEM_REFs.
44318 (build5_stat): Fix up initialization of TREE_READONLY and
44319 TREE_THIS_VOLATILE for TARGET_MEM_REFs.
44321 2015-01-08 Kaz Kojima <kkojima@gcc.gnu.org>
44324 * config/sh/sh.md (*addsi3_compact): Use u constraint instead
44325 of r for the second alternative of the destination operand.
44327 2015-01-07 Segher Boessenkool <segher@kernel.crashing.org>
44330 * config/rs6000/rs6000.md (*eqsi3_ext<mode>, *nesi3_ext<mode>): New.
44332 2015-01-07 Sandra Loosemore <sandra@codesourcery.com>
44334 * doc/invoke.texi ([-fvtable-verify]): Fix markup on option
44336 ([-fivar-visibility], [-fvisibility]): Likewise.
44338 2015-01-07 Sandra Loosemore <sandra@codesourcery.com>
44340 * doc/invoke.texi: Fix incorrect uses of @samp markup throughout
44341 the file where @code, @command, etc is more appropriate.
44343 2015-01-06 Sandra Loosemore <sandra@codesourcery.com>
44345 * doc/invoke.texi (RS/6000 and PowerPC Options): Tidy formatting
44346 of -mrecip= documentation.
44348 2015-01-06 Michael Meissner <meissner@linux.vnet.ibm.com>
44351 * config/rs6000/rs6000.c (rs6000_secondary_reload): Return the
44352 correct reload handler if -m32 -mpowerpc64 is used.
44354 2015-01-06 Tom de Vries <tom@codesourcery.com>
44356 * tree-ssa-tail-merge.c: Fix typo in struct same_succ_def comment.
44358 2015-01-08 Christian Bruel <christian.bruel@st.com>
44361 * config/sh/sh-mem.cc (sh_expand_cmpnstr): Check 0 length.
44363 2015-01-06 Thomas Preud'homme <thomas.preudhomme@arm.com>
44365 PR tree-optimization/63259
44366 * tree-ssa-math-opts.c (pass_optimize_bswap::execute): Stop checking
44367 if optab exists for 16bit byteswap.
44369 2015-01-06 Jakub Jelinek <jakub@redhat.com>
44371 * opts.c (common_handle_option): Add support for
44372 -fno-sanitize=all and -f{,no-}sanitize-recover=all.
44373 * doc/invoke.texi: Document -fno-sanitize=all,
44374 -f{,no-}sanitize-recover=all. Document that
44375 -fsanitize=float-cast-overflow is not enabled
44376 by -fsanitize=undefined. Fix up documentation
44377 of -f{,no-}sanitize-recover.
44379 2015-01-06 Eric Botcazou <ebotcazou@adacore.com>
44381 * config.gcc: Add Visium support.
44382 * configure.ac: Likewise.
44383 * configure: Regenerate.
44384 * doc/extend.texi (interrupt attribute): Add Visium.
44385 * doc/invoke.texi: Document Visium options.
44386 * doc/install.texi: Document Visium target.
44387 * doc/md.texi: Document Visium constraints.
44388 * common/config/visium: New directory.
44389 * config/visium: Likewise.
44391 2015-01-05 Segher Boessenkool <segher@kernel.crashing.org>
44393 * simplify-rtx.c (simplify_binary_operation_1): Handle more cases
44394 for the "(and X (ior (not X) Y) -> (and X Y)" transform.
44396 2015-01-05 Segher Boessenkool <segher@kernel.crashing.org>
44398 * combine.c (combine_validate_cost): Do not count the cost of a
44399 split I2 twice. Do not display it twice in the dump, either.
44401 2015-01-05 Sandra Loosemore <sandra@codesourcery.com>
44403 Revert parts of r219199.
44404 * doc/invoke.texi ([-Wliteral-suffix]): Restore markup on
44406 ([-Wtraditional]): Restore markup on <limits.h>.
44408 2015-01-05 Trevor Saunders <tsaunders@mozilla.com>
44411 * doc/invoke.texi: Document -Wsuggest-override.
44413 2015-01-05 Radovan Obradovic <radovan.obradovic@imgtec.com>
44415 PR rtl-optimization/64287
44416 * toplev.c (HAVE_epilogue, HAVE_prologue): Provide default.
44417 (process_options): Disable flag_ipa_ra if profiling.
44419 2015-01-05 Eric Botcazou <ebotcazou@adacore.com>
44421 * config/nds32/nds32-peephole2.md: Do not mention define_peephole.
44423 2015-01-05 Max Filippov <jcmvbkbc@gmail.com>
44425 * config/xtensa/xtensa.c (hwloop_optimize, hwloop_fail,
44426 hwloop_pattern_reg, xtensa_doloop_hooks, xtensa_reorg_loops):
44427 put under #if TARGET_LOOPS guard.
44429 2015-01-05 Uros Bizjak <ubizjak@gmail.com>
44431 * config/i386/i386.c (output_387_binary_op): Use std::swap.
44433 2015-01-05 Oleg Endo <olegendo@gcc.gnu.org>
44435 * rtlanal.c (refers_to_regno_p): Change return value from int to bool.
44436 * rtl.h (refers_to_regno_p): Add overload.
44438 * bt-load.c: Likewise.
44439 * combine.c: Likewise.
44440 * df-scan.c: Likewise.
44441 * sched-deps.c: Likewise.
44442 * config/s390/s390.c: Likewise.
44443 * config/m32r/m32r.c: Likewise.
44444 * config/rs6000/spe.md: Likewise.
44445 * config/rs6000/rs6000.c: Likewise.
44446 * config/pa/pa.c: Likewise.
44447 * config/stormy16/stormy16.c: Likewise.
44448 * config/cris/cris.c: Likewise.
44449 * config/arc/arc.md: Likewise.
44450 * config/arc/arc.c: Likewise.
44451 * config/sh/sh.md: Likewise.
44452 * config/sh/sh.c: Likewise.
44453 * config/frv/frv.c: Likewise.
44455 2015-01-05 Jakub Jelinek <jakub@redhat.com>
44458 * gimplify.c (gimplify_function_tree): Add TSAN_FUNC_EXIT internal
44459 call as cleanup of the whole body.
44460 * internal-fn.def (TSAN_FUNC_EXIT): New internal call.
44461 * tsan.c (replace_func_exit): New function.
44462 (instrument_func_exit): Moved earlier.
44463 (instrument_memory_accesses): Adjust TSAN_FUNC_EXIT internal calls.
44464 Call instrument_func_exit if no TSAN_FUNC_EXIT internal calls have
44466 (tsan_pass): Don't call instrument_func_exit.
44467 * internal-fn.c (expand_TSAN_FUNC_EXIT): New function.
44468 * tree-inline.c (copy_bb): Drop TSAN_FUNC_EXIT internal calls during
44472 * ubsan.h (ubsan_instrument_float_cast): Add ARG argument.
44473 * ubsan.c (ubsan_instrument_float_cast): Add ARG argument, pass
44474 it to libubsan handler instead of EXPR. Fold comparisons earlier,
44475 if the result is integer_zerop, return NULL_TREE.
44476 * convert.c (convert_to_integer): Pass expr as ARG.
44478 PR tree-optimization/64465
44479 * tree-inline.c (redirect_all_calls): During inlining
44480 clean up EH stmts and EH edges if redirect_call_stmt_to_callee
44481 changed the stmt to a non-throwing call.
44483 2015-01-05 Sandra Loosemore <sandra@codesourcery.com>
44485 * doc/invoke.texi: Fix incorrect uses of @code, @option, @samp,
44486 etc markup throughout the file.
44488 2015-01-05 Bernd Edlinger <bernd.edlinger@hotmail.de>
44490 Enable experimental TSAN support for Ada.
44491 * tsan.c (instrument_expr): Handle VIEW_CONVERT_EXPR.
44493 2015-01-05 Jakub Jelinek <jakub@redhat.com>
44495 PR tree-optimization/64494
44496 * tree-ssa-loop-im.c (move_computations_dom_walker::before_dom): Also
44497 clear SSA_NAME_ANTI_RANGE_P flag.
44499 2015-01-05 Marek Polacek <polacek@redhat.com>
44501 * doc/extend.texi (Arrays of Length Zero): Add missing comma.
44503 2015-01-05 Jakub Jelinek <jakub@redhat.com>
44505 Update copyright years.
44507 * gcc.c (process_command): Update copyright notice dates.
44508 * gcov-dump.c: Ditto.
44510 * doc/cpp.texi: Bump @copying's copyright year.
44511 * doc/cppinternals.texi: Ditto.
44512 * doc/gcc.texi: Ditto.
44513 * doc/gccint.texi: Ditto.
44514 * doc/gcov.texi: Ditto.
44515 * doc/install.texi: Ditto.
44516 * doc/invoke.texi: Ditto.
44518 * auto-profile.c, auto-profile.h: Fix up Copyright line.
44520 2015-01-04 Sandra Loosemore <sandra@codesourcery.com>
44522 * doc/invoke.texi ([-fsized-deallocation]): Copy-edit to fix
44524 ([-fvtable-verify], [-fvtv-debug]): Likewise.
44525 ([-Wabi]): Likewise.
44526 ([-fmessage-length]): Likewise.
44527 ([-Wsuggest-final-types], [-Wsuggest-final-methods]): Likewise.
44528 ([-Wno-discarded-qualifiers]): Likewise.
44529 ([-Wnodiscarded-array-qualifiers]): Likewise.
44530 ([-Wno-virtual-move-assign]): Likewise.
44531 ([-fsanitize=address], [-fsanitize=thread]): Likewise.
44532 ([-fsanitize=leak], [-fsanitize=undefined]): Likewise.
44533 ([-fsanitize=unreachable], [-fsanitize-recover]): Likewise.
44534 ([-fsanitize-undefined-trap-on-error]): Likewise.
44535 ([-floop-interchange]): Likewise.
44536 ([-ftree-coalesce-inlined-vars]): Likewise.
44537 ([-fvect-cost-model]): Likewise.
44538 ([-flto]): Likewise.
44539 ([--param]): Likewise.
44540 (Spec Files): Likewise.
44541 ([-mstrict-align]): Likewise.
44542 ([-mfix-cortex-a53-835769]): Likewise.
44543 ([-march], [-mtune]): Likewise.
44544 ([-mpic-register]): Likewise.
44545 ([-munaligned-access]): Likewise.
44546 ([-msp8]): Likewise.
44547 (EIND and Devices with more than 128 Ki Bytes of Flash): Likewise.
44548 (AVR Built-in Macros): Likewise.
44549 ([-mpreferred-stack-boundary]): Likewise.
44550 ([-mtune-crtl]): Likewise.
44551 ([-mashf]): Likewise.
44552 ([-mmcu=]): Likewise.
44553 ([-minrt]): Likewise.
44554 ([-maltivec], [-maltivec=be], [-maltivec=le]): Likewise.
44555 ([-mupper-regs]): Likewise.
44556 ([-matomic-model]): Likewise.
44557 ([-mdiv]): Likewise.
44558 ([-mzdcbranch]): Likewise.
44559 ([-mdisable-callt]): Likewise.
44560 ([-msoft-float]): Likewise.
44561 ([-m8byte-align]): Likewise.
44562 ([-fstack-reuse]): Likewise.
44564 2015-01-03 Sandra Loosemore <sandra@codesourcery.com>
44566 * doc/invoke.texi ([-fprofile-generate], [-fprofile-use]):
44567 Fix markup, light copy-editing.
44568 ([-fauto-profile]): Rewrite to fix formatting and content
44571 2015-01-03 Sandra Loosemore <sandra@codesourcery.com>
44573 * doc/invoke.texi ([-fisolate-erroneous-paths-dereference]):
44574 Copy-edit description.
44575 ([-fisolate-erroneous-paths-attribute]): Likewise.
44576 * common.opt (fisolate-erroneous-paths-dereference):
44577 Copy-edit description.
44578 (fisolate-erroneous-paths-attribute): Likewise.
44580 2015-01-03 Sandra Loosemore <sandra@codesourcery.com>
44582 * doc/invoke.texi ([-fsemantic-interposition]): Fix typos and
44585 2015-01-03 Sandra Loosemore <sandra@codesourcery.com>
44587 * doc/invoke.texi ([-fplan9-extensions]): Add/fix @opindex.
44588 ([-fvtv-debug]): Likewise.
44589 ([-Wc++-compat]): Likewise.
44590 ([-Wc++11-compat]): Likewise.
44591 ([-Wc++14-compat]): Likewise.
44592 ([-Wno-sized-deallocation]): Likewise.
44593 ([-femit-class-debug-always]): Likewise.
44594 ([-femit-struct-debug-detailed]): Likewise.
44595 ([-fno-keep-inline-dllexport]): Likewise.
44596 ([-fira-algorithm]): Likewise.
44597 ([-fira-region]): Likewise.
44598 ([-flra-remat]): Likewise.
44599 ([-fipa-ra]): Likewise.
44600 ([-fhoist-adjacent-loads]): Likewise.
44601 ([-fisolate-erroneous-paths-dereference]): Likewise.
44602 ([-fisolate-erroneous-paths-attribute]): Likewise.
44603 ([-ftree-switch-conversion]): Likewise.
44604 ([-ftree-tail-merge]): Likewise.
44605 ([-ftree-loop-if-convert]): Likewise.
44606 ([-ftree-loop-if-convert-stores]): Likewise.
44607 ([-ftree-loop-distribution]): Likewise.
44608 ([-ftree-loop-distribute-patterns]): Likewise.
44609 ([-flto-compression-level]): Likewise.
44610 ([-flto-report]): Likewise.
44611 ([-flto-report-wpa]): Likewise.
44612 ([-fuse-linker-plugin]): Likewise.
44613 ([-mfix-cortex-a53-835769]): Likewise.
44614 ([-mno-fix-cortex-a53-835769]): Likewise.
44615 ([-mmmx]...[-mno-3dnow]): Remove the -mno- forms from the
44616 explicit listing; add a note to the discussion indicating they
44617 exist. Reorder table to group similar options. Add missing
44618 @opindex entries. Add @need commands throughout the table to
44619 allow it to be split across multiple pages.
44620 ([-m8bit-idiv]): Fix @opindex.
44621 ([-mavx256-split-unaligned-load]): Likewise.
44622 ([-mavx256-split-unaligned-store]): Likewise.
44623 ([-mstack-protector-guard]): Likewise.
44624 ([-mcpu=]): Likewise.
44625 ([-mcpu]): Likewise.
44626 ([-mpointer-size=]): Likewise.
44628 2015-01-03 John David Anglin <danglin@gcc.gnu.org>
44630 * config/pa/pa.md (decrement_and_branch_until_zero): Use `Q' constraint
44631 instead of `m' constraint. Likewise for unnamed movb comparison
44632 patterns using reg_before_reload_operand predicate.
44633 * config/pa/predicates.md (reg_before_reload_operand): Tighten
44634 predicate to reject register index and LO_SUM DLT memory forms
44637 2015-01-02 Sandra Loosemore <sandra@codesourcery.com>
44639 * doc/invoke.texi (Option Summary): Fix spelling of
44640 -fdevirtualize-at-ltrans.
44641 ([-fdevirtualize]): Fix markup.
44642 ([-fdevirtualize-speculatively]): Fix typo.
44643 ([-fdevirtualize-at-ltrans]): Likewise. Make description less
44644 implementor-speaky.
44645 * common.opt (fdevirtualize-at-ltrans): Likewise.
44646 * ipa-devirt.c: Fix typos in comments throughout the file.
44647 (ipa_devirt): Fix typos in format strings for dump output.
44649 2015-01-02 Sandra Loosemore <sandra@codesourcery.com>
44651 * doc/invoke.texi ([-fopt-info]): Fix markup, consolidate
44652 discussion of defaults, light copy-editing.
44654 2015-01-02 Bernd Edlinger <bernd.edlinger@hotmail.de>
44656 * tsan.c (instrument_expr): corrected previous checkin.
44658 2015-01-02 Bernd Edlinger <bernd.edlinger@hotmail.de>
44660 Instrument bit field and unaligned accesses for TSAN.
44661 * sanitizer.def (BUILT_IN_TSAN_READ_RANGE): New built-in function.
44662 (BUILT_IN_TSAN_WRITE_RANGE): New built-in function.
44663 * tsan.c (instrument_expr): Handle COMPONENT_REF and BIT_FIELD_REF.
44664 Use BUILT_IN_TSAN_READ_RANGE and BUILT_IN_TSAN_WRITE_RANGE for
44665 unaligned memory regions.
44667 2015-01-01 Anthony Green <green@moxielogic.com>
44669 * config/moxie/predicates.md (moxie_general_movsrc_operand):
44670 Restrict move source register offsets to 16 bits.
44672 Copyright (C) 2015 Free Software Foundation, Inc.
44674 Copying and distribution of this file, with or without modification,
44675 are permitted in any medium without royalty provided the copyright
44676 notice and this notice are preserved.