1 2015-12-25 Jan Hubicka <hubicka@ucw.cz>
3 * ipa-visibility.c (function_and_variable_visibility): Do not
4 dissolve comdat groups when in LTO mode.
6 2015-12-25 Andreas Tobler <andreast@gcc.gnu.org>
8 * config/rs6000/freebsd64.h: Delete FREEBSD_DYNAMIC_LINKER32/64
9 defines. Use FBSD_DYNAMIC_LINKER instead.
10 Rename and simplify LINK_OS_FREEBSD_SPEC_DEF32/64 to
11 LINK_OS_FREEBSD_SPEC_DEF.
13 2015-12-24 Aditya Kumar <aditya.k7@samsung.com>
15 * graphite-sese-to-poly.c (build_loop_iteration_domains): Use ref instead of value.
16 * sese.c (invariant_in_sese_p_rec): Use const ref instead of value.
17 (scalar_evolution_in_region): Same
18 * sese.h (bb_in_region): Same
20 (stmt_in_sese_p): Same.
21 (defined_in_sese_p): Same.
22 (loop_in_sese_p): Same.
24 2015-12-24 Aditya Kumar <aditya.k7@samsung.com>
26 * graphite-scop-detection.c
27 (scop_detection::get_nearest_dom_with_single_entry): Check l == l2.
28 (scop_detection::get_nearest_pdom_with_single_exit): Same.
29 (scop_detection::merge_sese): Whitespace.
30 (scop_detection::add_scop): Comment.
31 (build_scops): Whitespace.
33 2015-12-24 Kirill Yukhin <kirill.yukhin@intel.com>
35 * common/config/i386/i386-common.c (OPTION_MASK_ISA_PKU_SET): New.
36 (OPTION_MASK_ISA_PKU_UNSET): Ditto.
37 (ix86_handle_option): Handle OPT_mpku.
38 * config.gcc: Add pkuintrin.h to i[34567]86-*-* and x86_64-*-*
40 * config/i386/cpuid.h (host_detect_local_cpu): Detect PKU feature.
41 * config/i386/i386-c.c (ix86_target_macros_internal): Handle PKU ISA
43 * config/i386/i386.c (ix86_target_string): Add "-mpku" to
45 (ix86_option_override_internal): Define PTA_PKU, mention new key
46 in skylake-avx512. Handle new ISA bits.
47 (ix86_valid_target_attribute_inner_p): Add "pku".
48 (enum ix86_builtins): Add IX86_BUILTIN_RDPKRU and IX86_BUILTIN_WRPKRU.
49 (builtin_description bdesc_special_args[]): Add new built-ins.
50 * config/i386/i386.h (define TARGET_PKU): New.
51 (define TARGET_PKU_P): Ditto.
52 * config/i386/i386.md (define_c_enum "unspecv"): Add UNSPEC_PKU.
53 (define_expand "rdpkru"): New.
54 (define_insn "*rdpkru"): Ditto.
55 (define_expand "wrpkru"): Ditto.
56 (define_insn "*wrpkru"): Ditto.
57 * config/i386/i386.opt (mpku): Ditto.
58 * config/i386/pkuintrin.h: New file.
59 * config/i386/x86intrin.h: Include pkuintrin.h
60 * doc/extend.texi: Describe new built-ins.
61 * doc/invoke.texi: Describe new switches.
63 2015-12-23 Richard Henderson <rth@redhat.com>
66 * tree-cfg.c (make_edges_bb): Add abort edge for outer transactions.
68 2015-12-23 Nathan Sidwell <nathan@acm.org>
70 * cgraph.h (decl_in_symtab_p): Revert check DECL_IN_CONSTANT_POOL.
72 2015-12-23 Nathan Sidwell <nathan@acm.org>
74 * config/nvptx/nvptx-protos.h
75 (nvptx_maybe_convert_symbolic_operand): Delete prototype.
76 * config/nvptx/nvptx.c (nvptx_maybe_convert_symbolic_operand): Delete.
77 (nvptx_output_mov_insn): Record fnsym here.
78 (nvptx_wpropagate): Don't create UNSPEC_TO_GENERIC unspec.
79 * config/nvptx/nvptx.md (UNSPEC_TO_GENERIC): Delete.
80 (symbolic_operand): Delete predicate.
81 (nvptx_nonimmediate_operand): Delete predicate.
82 (mov<mode>): Hard regs are perfectly ok here.
83 (convaddr_<mode>): Delete.
85 2015-12-23 Nathan Sidwell <nathan@acm.org>
87 * alias.c (compare_base_decls): Simplify in-symtab check.
88 * cgraph.h (decl_in_symtab_p): Check DECL_IN_CONSTANT_POOL.
90 2015-12-23 Dominik Vogt <vogt@linux.vnet.ibm.com>
92 * config/s390/predicates.md ("larl_operand"): Remove now superfluous
93 const_int and const_double.
94 * genrecog.c (safe_predicate_mode): Return false for VOIDmode
95 LABEL_REFs even if the predicate does not handle const_int,
96 const_double or const_wide_int.
97 * genpreds.c (add_mode_tests): Treat LABEL_REF like CONST_INT.
99 2015-12-23 Thomas Schwinge <thomas@codesourcery.com>
101 * tree-core.h (enum omp_clause_code): Merge OMP_CLAUSE_USE_DEVICE
102 into OMP_CLAUSE_USE_DEVICE_PTR. Adjust all users.
104 2015-12-23 David Sherwood <david.sherwood@arm.com>
106 * config/arm/iterators.md (VMAXMINFNM): New int iterator.
107 (fmaxmin): New int attribute.
108 (fmaxmin_op): Likewise.
109 * config/arm/unspecs.md (UNSPEC_VMAXNM): New unspec.
110 (UNSPEC_VMINNM): Likewise.
111 * config/arm/neon.md (fmaxmin): New pattern.
112 * config/arm/vfp.md (fmaxmin): Likewise.
114 2015-12-23 H.J. Lu <hongjiu.lu@intel.com>
117 * config/i386/constraints.md (Bs): Allow GOT slot for x32 with
121 * config/i386/predicates.md (call_insn_operand): Likewise.
122 (sibcall_insn_operand): Likewise.
124 2015-12-22 David Malcolm <dmalcolm@redhat.com>
127 * diagnostic-show-locus.c (layout::layout): Make loc_range const.
128 Sanitize the layout_range against ranges that finish before they
131 2015-12-22 Jeff Law <law@redhat.com>
133 * gimple-ssa-split-paths.c (split_paths): Avoid unnecessary block
136 2015-12-22 Jakub Jelinek <jakub@redhat.com>
139 * fold-const.c (size_low_cst): Removed.
140 (fold_comparison): For POINTER_PLUS_EXPR where base is ADDR_EXPR
141 call get_inner_reference and handle INDIRECT_REF base of it. Use
142 offset_int for computation of the bitpos.
143 (fold_binary_loc) <case EQ_EXPR, NE_EXPR>: Formatting
144 fixes for X +- Y CMP X and C - X CMP X folding. Add X CMP X +- Y
145 and X CMP C - X folding.
147 2015-12-22 Richard Henderson <rth@redhat.com>
150 * gimple.h (struct gtransaction): Add label_norm, label_uninst;
151 replace label with label_over.
152 (gimple_build_transaction): Remove label parameter.
153 (gimple_transaction_label_norm): New.
154 (gimple_transaction_label_uninst): New.
155 (gimple_transaction_label_over): Rename from gimple_transaction_label.
156 (gimple_transaction_label_norm_ptr): New.
157 (gimple_transaction_label_uninst_ptr): New.
158 (gimple_transaction_label_over_ptr): Rename from
159 gimple_transaction_label_ptr.
160 (gimple_transaction_set_label_norm): New.
161 (gimple_transaction_set_label_uninst): New.
162 (gimple_transaction_set_label_over): Rename from
163 gimple_transaction_set_label.
164 * gimple-pretty-print.c (dump_gimple_transaction): Update.
165 * gimple-streamer-in.c (input_gimple_stmt) [GIMPLE_TRANSACTION]: Same.
166 * gimple-streamer-out.c (output_gimple_stmt) [GIMPLE_TRANSACTION]: Same.
167 * gimple-walk.c (walk_gimple_op) [GIMPLE_TRANSACTION]: Same.
168 * tree-cfg.c (make_edges_bb) [GIMPLE_TRANSACTION]: Same.
169 (cleanup_dead_labels) [GIMPLE_TRANSACTION]: Same.
170 (verify_gimple_transaction): Same.
171 (gimple_redirect_edge_and_branch) [GIMPLE_TRANSACTION]: Same.
172 * tree-inline.c (remap_gimple_stmt) [GIMPLE_TRANSACTION]: Same.
173 * gimple.c (gimple_build_transaction): Remove label parameter;
174 initialize all three label memebers.
175 * gimplify.c (gimplify_transaction): Update call
176 to gimple_build_transaction.
177 * trans-mem.c (make_tm_uninst): New.
178 (lower_transaction): Create uninstrumented code path here...
179 (ipa_tm_scan_calls_transaction): ... not here.
180 (ipa_uninstrument_transaction): Remove.
182 * tree-eh.c (honor_protect_cleanup_actions): Do not wrap eh_else
183 in a must-not-throw; set ehp_region for it too.
185 2015-12-22 Peter Bergner <bergner@vnet.ibm.com>
188 * config/rs6000/rs6000.h (ASM_CPU_SPEC): For -mcpu=powerpc64le,
189 pass %(asm_cpu_power8).
191 2015-12-22 H.J. Lu <hongjiu.lu@intel.com>
194 * config/i386/i386.c (ix86_function_ok_for_sibcall): Count
195 call to global function via GOT slot as indirect call.
196 * config/i386/i386.md (*sibcall_GOT_32): New pattern.
197 (*sibcall_value_GOT_32): Likewise.
198 * config/i386/predicates.md (sibcall_memory_operand): Rewrite.
199 Allow 32-bit GOT slot only with pseudo register as GOT base.
200 (GOT32_symbol_operand): New predicate.
202 2015-12-22 Sujoy Saraswati <sujoy.saraswati@hpe.com>
204 * fold-const.c (const_binop): Convert sNaN to qNaN when
205 flag_signaling_nans is off.
206 (const_unop): Avoid the operation, other than NEGATE and
207 ABS, if flag_signaling_nans is on and the operand is an sNaN.
208 (fold_convert_const_real_from_real): Avoid the operation if
209 flag_signaling_nans is on and the operand is an sNaN.
210 (integer_valued_real_unary_p): Update comment stating it
211 returns false for sNaN values.
212 (integer_valued_real_binary_p, integer_valued_real_call_p): Same.
213 (integer_valued_real_single_p): Same.
214 (integer_valued_real_invalid_p, integer_valued_real_p): Same.
215 * fold-const-call.c (fold_const_pow): Avoid the operation
216 if flag_signaling_nans is on and the operand is an sNaN.
217 (fold_const_builtin_load_exponent) Same.
218 (fold_const_call_sss): Same for CASE_CFN_POWI.
219 * gimple-fold.c (gimple_assign_integer_valued_real_p): Same.
220 (gimple_call_integer_valued_real_p): Same.
221 (gimple_phi_integer_valued_real_p): Same.
222 (gimple_stmt_integer_valued_real_p): Same.
223 * simplify-rtx.c (simplify_const_unary_operation): Avoid the
224 operation if flag_signaling_nans is on and the operand is an sNaN.
225 (simplify_const_binary_operation): Same.
226 * tree-ssa-math-opts.c (gimple_expand_builtin_pow): Avoid the
227 operation if flag_signaling_nans is on and the operand is an sNaN.
229 2015-12-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
231 * combine.c (simplify_comparison): Convert preprocessor check of
232 WORD_REGISTER_OPERATIONS into runtime check.
234 2015-12-22 Eric Botcazou <ebotcazou@adacore.com>
237 * var-tracking.c (tracked_record_parameter_p): New predicate.
238 (track_expr_p): Invoke it.
239 (add_stores): Likewise.
241 2015-12-21 Jeff Law <law@redhat.com>
243 * dbgcnt.def (dom_unreachable_edges): New debug counter.
244 * tree-ssa-dom.c: Include dbgcnt.h
245 (dom_opt_dom_walker::before_dom_children): Handle the new counter.
247 2015-12-21 Andrew Pinski <apinski@cavium.com>
249 * config/aarch64/aarch64-option-extensions.def (LSE): Change
250 FEAT_STRING to "atomics".
252 2015-12-21 Pierre-Marie de Rodat <derodat@adacore.com>
254 * dwarf2out.c (add_data_member_location_attribute): Do not
255 disable dynamic data member offsets descriptions for TREE_BINFO
258 2015-12-21 Eric Botcazou <ebotcazou@adacore.com>
260 PR tree-optimization/65337
261 * tree-ssa-pre.c (eliminate): Also clean up abnormal edges if need be.
263 2015-12-21 Dominik Vogt <vogt@linux.vnet.ibm.com>
265 * config/s390/s390.c (s390_emit_prologue): Fix base reg condition.
267 2015-12-21 Claudiu Zissulescu <claziss@synopsys.com>
269 * config/arc/builtins.def: New file.
270 * config/arc/arc.c (arc_init_simd_builtins): Remove.
271 (arc_builtins): Likewise.
272 (TARGET_BUILTIN_DECL): Define.
273 (arc_builtin_id): New enum.
274 (arc_builtin_description): New structure.
275 (arc_bdesc): New variable.
276 (arc_tolower): New function.
277 (def_mbuiltin): Remove.
278 (arc_builtin_decl): New function.
279 (arc_expand_builtin_aligned ): Likewise.
280 (apply_GEN_FCN): Likewise.
281 (arc_init_builtins): Refurbish.
282 (arc_expand_builtin): Likewise.
283 (simd_insn_args_type): Remove.
284 (builtin_description): Likewise
285 (arc_simd_builtin_desc_list): Likewise.
286 (arc_expand_simd_builtin): Likewise.
287 (arc_process_double_reg_moves): Use the new builtin name format.
288 * config/arc/arc.md (unspec): New builtin function UNSPEC codes.
289 (vunspec): New builtin function VUNSPEC codes.
290 (UNSPEC_SWAP, UNSPEC_MUL64, UNSPEC_MULU64, UNSPEC_DIVAW)
291 (UNSPEC_DIRECT, UNSPEC_LP, UNSPEC_CASESI, VUNSPEC_RTIE)
292 (VUNSPEC_SYNC, VUNSPEC_BRK, VUNSPEC_FLAG, VUNSPEC_SLEEP)
293 (VUNSPEC_SWI, VUNSPEC_CORE_READ, VUNSPEC_CORE_WRITE, VUNSPEC_LR)
294 (VUNSPEC_SR, VUNSPEC_TRAP_S, VUNSPEC_UNIMP_S, VUNSPEC_NOP)
295 (UNSPEC_ARC_MEMBAR,VUNSPEC_ARC_CAS, VUNSPEC_ARC_LL)
296 (VUNSPEC_ARC_SC, VUNSPEC_ARC_EX, VUNSPEC_DEXCL)
297 (VUNSPEC_DEXCL_NORES, VUNSPEC_LR_HIGH): Remove.
298 (mul64, mulu64): Remove patterns.
299 (store_direct, *movdf_insn_nolrsr, casesi, casesi_load)
300 (casesi_compact_jump, nopv, swap, divaw, flag, brk, rtie, sync)
301 (swi, sleep, core_read, core_write, lr, sr, trap_s, unimp_s)
302 (doloop_begin_i): Use new builtin function code naming.
303 (kflag, clri, ffs, ffs_f, ffssi2, fls, seti): New patterns.
304 * config/arc/builtins.def: New file.
305 * config/arc/fpx.md: Use new builtin function code naming.
306 * config/arc/simdext.md: New SIMD builtin function UNSPEC
307 codes. Use them in the SIMD patterns.
309 2015-12-21 Sujoy Saraswati <sujoy.saraswati@hpe.com>
311 PR tree-optimization/61441
312 * real.c (do_add): Make resulting NaN value to be qNaN.
313 (do_multiply, do_divide, do_fix_trunc): Same.
314 (real_arithmetic, real_ldexp, real_convert): Same.
315 (real_isinteger): Updated comment stating it returns false for sNaN.
317 2015-12-20 Jeff Law <law@redhat.com>
319 PR tree-optimization/64910
320 * config/i386/i386.md (testqi_ext_3): Allow HImode.
322 2015-12-20 Andrew Pinsi <apinski@cavium.com>
324 * config/aarch64/atomics.md
325 (aarch64_atomic_<atomic_optab>_fetch<mode>_lse): Add early clobber
326 to the scratch register.
328 2015-12-20 Sujoy Saraswati <sujoy.saraswati@hpe.com>
330 PR tree-optimization/61441
331 * match.pd (f(x) -> x): Removed flag_errno_math check for RINT.
333 2015-12-20 Sujoy Saraswati <sujoy.saraswati@hpe.com>
335 PR tree-optimization/61441
336 * fold-const.c (const_binop): Use REAL_VALUE_ISSIGNALING_NAN instead
337 of REAL_VALUE_ISNAN to avoid the operation for sNaN operands.
338 * simplify-rtx.c (simplify_const_binary_operation): Same.
340 2015-12-19 Jan Hubicka <hubicka@ucw.cz>
342 PR tree-optimization/65337
343 * tree-ssa-dce.c (bb_postorder): New static var.
344 (mark_stmt_necessary): Add guard for setting bb_contains_live_stmts.
345 (forward_edge_to_pdom): Remove.
346 (remove_dead_stmt): Instead of redirecting edges only keep an edge
347 on a path to nearest live BB.
348 (eliminate_unnecessary_stmts): Free bb_postorder.
349 * cfganal.c (dfs_find_deadend): Add START_POINTES.
350 * cfganal.h (inverted_post_order_compute): Update prototype.
352 2015-12-19 Eric Botcazou <ebotcazou@adacore.com>
354 PR rtl-optimization/68910
355 * emit-rtl.c (set_unique_reg_note) <REG_EQUAL>: Add bypass for USEs.
356 * config/sparc/sparc.md (anddi3): Enable only in 64-bit mode.
359 (one_cmpldi2): Likewise.
360 (*anddi3_sp32): Delete.
361 (*and_not_di_sp32): Likewise.
362 (*iordi3_sp32): Likewise.
363 (*or_not_di_sp32): Likewise.
364 (*xordi3_sp32): Likewise.
365 (*xor_not_di_sp32): Likewise.
366 (32-bit DImode logical operations splitter): Likewise.
367 (*one_cmpldi2_sp32): Likewise.
369 2015-12-19 Andrew Burgess <andrew.burgess@embecosm.com>
371 * config/arc/arc.md (*storeqi_update): Use 'any_mem_operand' and
372 fix RTL pattern to include the plus.
373 (*storehi_update): Likewise.
374 (*storesi_update): Likewise.
375 (*storesf_update): Likewise.
376 * config/arc/predicates.md (store_update_operand): Delete.
378 2015-12-19 Andrew Burgess <andrew.burgess@embecosm.com>
380 * config/arc/arc.md (*loadqi_update): Use new 'any_mem_operand'
381 and fix RTL pattern to include the plus.
382 (*load_zeroextendqisi_update): Likewise.
383 (*load_signextendqisi_update): Likewise.
384 (*loadhi_update): Likewise.
385 (*load_zeroextendhisi_update): Likewise.
386 (*load_signextendhisi_update): Likewise.
387 (*loadsi_update): Likewise.
388 (*loadsf_update): Likewise.
389 * config/arc/predicates.md (load_update_operand): Delete.
390 (any_mem_operand): New predicate.
392 2015-12-19 Sujoy Saraswati <sujoy.saraswati@hpe.com>
394 PR tree-optimization/61441
395 * real.c (real_issignaling_nan): New.
396 * real.h (real_issignaling_nan, REAL_VALUE_ISSIGNALING_NAN): New.
398 2015-13-18 John David Anglin <danglin@gcc.gnu.org>
401 * config/pa/pa.c (pa_emit_move_sequence): Reorganize handling of
402 floating-point reloads. Only reload operands that are not valid
403 floating-point memory operands.
405 2015-12-18 Jakub Jelinek <jakub@redhat.com>
408 * ipa-split.c (split_function): Only perform caller side
409 modifications for decl_debug_args here.
410 * cgraph.c: Include gimplify.h.
411 (cgraph_edge::redirect_call_stmt_to_callee): Add caller side
412 debug stmts for decl_debug_args. Spelling fix in a comment.
413 * tree-inline.c (tree_function_versioning): Populate decl_debug_args
414 for args_to_skip arguments and add callee side debug stmts.
415 Formatting fixes. Avoid shadowing i variable.
417 2015-12-18 Nathan Sidwell <nathan@acm.org>
419 * config/nvptx/nvptx.c (nvptx_maybe_convert_symbolic_operand):
420 Remove UNSPEC_TO_GENERIC generation.
421 (nvptx_output_mov_insn): Generate cvta for symbolic src.
422 * config/nvptx/nvptx.md (nvptx_register_operand): Allow hard reg.
423 (nvptx_reg_or_mem_operand): Likewise.
424 (nvptx_nonmemory_operand): Likewise.
425 (nvptx_general_operand): Delete.
426 (*mov<mode>_insn): Use nonimmediate_operand, permit hardregs.
427 (oacc_fork, oacc_join): Use general_operand.
429 2015-12-18 Daniel Kahn Gillmor <dkg@fifthhorseman.net>
431 * dwarf2out.c (gen_producer_string): Ignore -fdebug-prefix-map.
433 2015-12-18 Nathan Sidwell <nathan@acm.org>
435 * config/nvptx/nvptx.c (nvptx_option_override): Emit sorry for
437 (nvptx_assemble_undefined_decl): Use nvptx_assemble_decl_end.
439 2015-12-18 Jeff Law <law@redhat.com>
441 PR rtl-optimization/49847
442 * cse.c (record_jump_equiv): Handle fold_rtx returning NULL_RTX.
444 2015-12-18 Nathan Sidwell <nathan@acm.org>
446 * config/nvptx/nvptx.c (worker_bcast_name, worker_red_name): Delete.
447 (nvptx_option_override): Adjust worker symbol creation.
448 (nvptx_gen_wcast): Wrap worker address in UNSPEC_TO_GENERIC.
449 (write_worker_buffer): New.
450 (nvptx_file_end): Call write_worker_buffer.
451 * config/nvptx/nvptx.md (UNSPEC_SHARED_DATA): Delete.
452 (worker_load<mode>, worker_store<mode>): Delete.
454 2015-12-18 Richard Biener <rguenther@suse.de>
457 * tree-vect-patterns.c (struct vect_recog_func): New.
458 (vect_vect_recog_func_ptrs): Make an array of function name pairs.
459 (vect_pattern_recog_1): Print the recognized pattern name. Return
460 true if a pattern was recognized.
461 (vect_pattern_recog): Adjust. Stop iterating over pattern recognition
462 functions on a stmt if a pattern was recognized.
464 2015-12-18 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
466 * ira.c (ira_setup_alts): Move the scan for commutative modifier
467 to the first loop to make it work even with disabled alternatives.
469 2015-12-18 Dominik Vogt <vogt@linux.vnet.ibm.com>
471 * config/s390/s390.c (s390_init_frame_layout): Try r4 to r2 for the
472 literal pool pointer.
474 2015-12-18 Yuri Rumyantsev <ysrumyan@gmail.com>
476 PR tree-optimization/68906
477 * tree-ssa-loop-unswitch.c (tree_unswitch_outer_loop): Add check
478 that an exit block belongs to LOOP.
480 2015-12-18 Ilya Enkovich <enkovich.gnu@gmail.com>
482 PR tree-optimization/68956
483 * tree-vect-stmts.c (vect_init_vector): Fix constants
484 used for boolean vectors.
486 2015-12-18 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
488 PR rtl-optimization/68796
489 * config/aarch64/aarch64.md (*and<mode>3nr_compare0_zextract):
491 * config/aarch64/aarch64.c (aarch64_select_cc_mode): Handle
492 ZERO_EXTRACT comparison with zero.
493 (aarch64_mask_from_zextract_ops): New function.
494 * config/aarch64/aarch64-protos.h (aarch64_mask_from_zextract_ops):
497 2015-12-18 Robin Dapp <rdapp@linux.vnet.ibm.com>
499 * config/s390/predicates.md: Change and rename
500 constm1_operand to all_ones_operand
501 * config/s390/s390.c (s390_expand_vcond): Use all_ones_operand
502 * config/s390/vector.md: Likewise
504 2015-12-18 Robin Dapp <rdapp@linux.vnet.ibm.com>
506 * config/s390/s390.c (s390_expand_vcond): Convert vector
507 conditional into shift.
508 * config/s390/vector.md: Change operand predicate.
510 2015-12-18 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
512 * config/s390/driver-native.c (s390_host_detect_local_cpu): Pick
513 z900 -march -mtune even on g5 and g6 machines.
514 * config/s390/s390.c (s390_option_override_internal): New argument
515 to distingiush between options and target attributes. Emit
516 deprecation warning for g5 and g6 arch/tune options.
517 (s390_option_override): Set new s390_option_override_internal
519 (s390_valid_target_attribute_tree): Set new
520 s390_option_override_internal argument to false.
521 * config/s390/s390.h: Default to z900 in the driver.
522 * doc/invoke.texi: Document the deprecation of g5 and g6.
524 2015-12-18 Andris Pavenis <andris.pavenis@iki.fi>
526 * config/i386/djgpp-stdint.h: update typedefs for integer types
528 2015-12-17 Jeff Law <law@redhat.com>
530 * passes.def: Put the split-paths pass immediately before the
533 * doc/invoke.texi (-O2 options): Remove -fsplit-paths.
534 (-O3 options): Add -fsplit-paths.
535 * gimple-ssa-split-paths.c: Include predict.h
536 (split_paths): Only split paths in a loop that should be
538 * opts.c (default_options_table): Move -fsplit-paths from -O2 to
541 2015-12-17 Nathan Sidwell <nathan@acm.org>
543 * ipa-icf.c (sem_item_optimizer::merge): Don't pick 'main' as the
546 2015-12-17 Sebastian Pop <s.pop@samsung.com>
548 * Makefile.in: Replace ISL with isl.
550 * configure: Regenerate.
551 * configure.ac: Same.
552 * doc/install.texi: Same.
553 * doc/invoke.texi: Same.
554 * graphite-isl-ast-to-gimple.c: Same.
555 * graphite-scop-detection.c: Same.
556 * graphite-sese-to-poly.c: Same.
560 * testsuite/gcc.dg/graphite/fuse-1.c: Same.
561 * testsuite/gcc.dg/graphite/fuse-2.c: Same.
562 * testsuite/gcc.dg/graphite/interchange-1.c: Same.
563 * testsuite/gcc.dg/graphite/pr35356-1.c: Same.
566 2015-12-17 Sebastian Pop <s.pop@samsung.com>
568 * graphite-dependences.c: Move all isl include files to...
569 * graphite-isl-ast-to-gimple.c: Same.
570 * graphite-optimize-isl.c: Same.
571 * graphite-poly.c: Same.
572 * graphite-scop-detection.c: Same.
574 * graphite.h: ... here.
576 2015-12-17 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
578 * config/avr/avr.h (MOVE_MAX): Set value to 1.
579 (MOVE_MAX_PIECES): Define.
580 (MOVE_RATIO): Define.
581 * config/avr/avr.c (TARGET_USE_BY_PIECES_INFRASTRUCTURE_P):
583 (avr_use_by_pieces_infrastructure_p): New function.
585 2015-12-17 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
587 * config.gcc: mark *-interix* as obsolete.
589 2015-12-17 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
591 * config.gcc: Mark openbsd 2.0 and 3.X as obsolete.
593 2015-12-17 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
595 * config.gcc: Mark knetbsd targets as obsolete.
597 2015-12-17 Nathan Sidwell <nathan@acm.org>
599 * config/nvptx/nvptx.h (NVPTX_RETURN_REGNUM, FRAME_POINTER_REGNUM,
600 ARG_POINTER_REGNUM, STATIC_CHAIN_REGNUM): Renumber.
601 (REGISTER_NAMES): Update and rename.
602 (FIXED_REGISTERS, CALL_USED_REGISTERS): Update.
603 (enum_reg_class, REG_CLASS_NAMES, REG_CLASS_CONTENTS): Reformat.
605 2015-12-17 Richard Biener <rguenther@suse.de>
607 PR tree-optimization/68946
608 * tree-vect-slp.c (vect_slp_analyze_node_operations): Push
609 SLP def type to stmt operands one stmt at a time.
611 2015-12-17 Pierre-Marie de Rodat <derodat@adacore.com>
613 * langhooks.h (struct lang_hooks_for_types): New get_bias_field.
614 * langhooks-def.h (LANG_HOOKS_GET_TYPE_BIAS): New.
615 (LANG_HOOKS_FOR_TYPES_INITIALIZER): Initialize the
618 (base_type_die): In non-strict DWARF mode, invoke the
619 get_type_bias language hook for INTEGER_TYPE nodes. If it
620 returns a bias, emit an attribute for it.
621 (subrange_type_die): Change signature to handle bias. If
622 non-strict DWARF mode, emit an attribute for it, if one passed.
623 (modified_type_die): For subrange types, invoke the
624 get_type_bias langage hook and pass the bias to
627 2015-12-17 Pierre-Marie de Rodat <derodat@adacore.com>
629 * dwarf2out.h (DWARF2OUT_ARRAY_DESCR_INFO_MAX_DIMEN): New macro.
630 (struct array_descr_info): Use it for the dimensions array's
632 * dwarf2out.c (gen_type_die_with_usage): Check that the array
633 descr. language hook does not return an array with more
634 dimensions that it should.
636 2015-12-17 Pierre-Marie de Rodat <derodat@adacore.com>
638 * langhooks.h (struct lang_hooks_for_types): Add a
639 get_fixed_point_type_info field.
640 * langhooks-def.h (LANG_HOOKS_GET_FIXED_POINT_TYPE_INFO): New
642 (LANG_HOOKS_FOR_TYPES_INITIALIZER): Initialize the
643 get_fixed_point_type_info field.
644 * dwarf2out.h (enum fixed_point_scale_factor): New.
645 (struct fixed_point_type_info): New.
646 * dwarf2out.c (base_type_die): In DWARFv3 or non-strict DWARF
647 mode, get fixed-point type information using the debugging hook
648 and describe it in DWARF, if any.
650 2015-12-17 Pierre-Marie de Rodat <derodat@adacore.com>
652 * langhooks.h (struct lang_hooks_for_types): Add a
653 get_debug_type field.
654 * langhooks-def.h (LANG_HOOKS_GET_DEBUG_TYPE): New macro.
655 (LANG_HOOKS_FOR_TYPES_INITIALIZER): Initialize the
656 get_debug_type field.
657 * dwarf2out.h (struct array_descr_info): Add an array-wide
659 * dwarf2out.c (modified_type_die): Invoke the get_debug_type
660 language hook, process its result instead, if any.
661 (gen_descr_array_type_die): Add array-wide stride processing.
663 2015-12-17 Pierre-Marie de Rodat <derodat@adacore.com>
665 * debug.h (struct gcc_debug_hooks): Add a new size_function
667 * debug.c (do_nothing_debug_hooks): Set the size_function field
669 * dbxout.c (dbx_debug_hooks, xcoff_debug_hooks): Likewise.
670 * sdbout.c (sdb_debug_hooks): Likewise.
671 * vmsdbgout.c (vmsdbg_debug_hooks): Likewise.
672 * stor-layout.c (finalize_size_functions): Let the debug info
673 back-end know about the implementation of size functions.
674 * dwarf2out.h (dw_discr_list_ref): New typedef.
675 (enum dw_val_class): Add value classes for discriminant values
676 and discriminant lists.
677 (struct dw_discr_value): New structure.
678 (struct dw_val_node): Add discriminant values and discriminant
680 (struct dw_loc_descr_node): Add frame_offset_rel and
681 dw_loc_frame_offset (only for checking) fields to handle DWARF
682 procedures generation.
683 (struct dw_discr_list_node): New structure.
684 * dwarf2out.c (dwarf2out_size_function): New.
685 (dwarf2_debug_hooks): Set the size_function field to
686 dwarf2out_size_function.
687 (dwarf2_lineno_debug_hooks): Set the size_function field to
689 (new_loc_descr): Initialize the
690 dw_loc_frame_offset field.
691 (dwarf_proc_stack_usage_map): New.
692 (dw_val_equal_p): Handle discriminants.
693 (size_of_discr_value): New.
694 (size_of_discr_list): New.
695 (size_of_die): Handle discriminants.
696 (add_loc_descr_to_each): New.
698 (print_discr_value): New.
699 (print_dw_val): Handle discriminants.
700 (value_format): Handle discriminants.
701 (output_discr_value): New.
702 (output_die): Handle discriminants.
703 (output_loc_operands): Handle DW_OP_call2 and DW_OP_call4.
704 (uint_loc_descriptor): New.
705 (uint_comparison_loc_list): New.
706 (loc_list_from_uint_comparison): New.
707 (add_discr_value): New.
708 (add_discr_list): New.
709 (AT_discr_list): New.
710 (loc_descr_to_next_no_op): New.
711 (free_loc_descr): New.
712 (loc_descr_without_nops): New.
713 (struct loc_descr_context): Add a dpi field.
714 (struct dwarf_procedure_info): New helper structure.
715 (new_dwarf_proc_die): New.
716 (is_handled_procedure_type): New.
717 (resolve_args_picking_1): New.
718 (resolve_args_picking): New.
719 (function_to_dwarf_procedure): New.
720 (copy_dwarf_procedure): New.
721 (copy_dwarf_procs_ref_in_attrs): New.
722 (copy_dwarf_procs_ref_in_dies): New.
723 (break_out_comdat_types): Copy DWARF procedures along with the
724 types that reference them.
725 (loc_list_from_tree): Rename into loc_list_from_tree_1. Handle
726 CALL_EXPR in the cases suitable for DWARF procedures. Handle
727 for PARM_DECL when generating a location description for a DWARF
728 procedure. Handle big unsigned INTEGER_CST nodes. Handle
729 NON_LVALUE_EXPR, EXACT_DIV_EXPR and all unsigned comparison
730 operators. Add a wrapper for loc_list_from_tree that strips
731 DW_OP_nop operations from the result.
732 (type_byte_size): New.
733 (struct vlr_context): New helper structure.
734 (field_byte_offset): Change signature to return either a
735 constant offset or a location description for dynamic ones.
736 Handle dynamic byte offsets with constant bit offsets and handle
737 fields in variant parts.
738 (add_data_member_location): Change signature to handle dynamic
739 member offsets and fields in variant parts. Update call to
740 field_byte_offset. Handle location lists. Emit a variable data
741 member location only when -fgnat-encodings=minimal.
742 (add_bound_info): Emit self-referential bounds only when
743 -fgnat-encodings=minimal.
744 (add_byte_size_attribute): Use type_byte_size in order to handle
745 dynamic type sizes. Emit variable byte size only when
746 -fgnat-encodings=minimal and when the target DWARF version
748 (add_bit_offset_attribute): Change signature to handle
749 variable-length records. Update call to field_byte_offset.
750 (gen_descr_array_type_die): Update call to gen_field_die.
751 Update loc_descr_context literal.
752 (gen_type_die_for_member): Likewise.
753 (gen_subprogram_die): Update calls to get_decl_die.
754 (gen_field_die): Change signature to handle variable-length
755 records. Update calls to add_bit_offset_attribute and
756 add_data_member_location_attribute.
757 (gen_inheritance_die): Update call to
758 add_data_member_location_attribute.
759 (gen_decl_die): Change signature to handle variable-length
760 records. Update call to gen_field_die.
761 (gen_inheritance_die): Change signature to handle
762 variable-length records. Update call to
763 add_data_member_location_attribute.
764 (is_variant_part): New.
765 (analyze_discr_in_predicate): New.
766 (get_discr_value): New.
767 (analyze_variants_discr): New.
768 (gen_variant_part): New.
769 (gen_member_die): Update calls to gen_decl_die. Call instead
770 gen_variant_part for variant parts.
771 (gen_type_die_with_usage): Update calls to gen_decl_die.
772 (process_scope_var): Likewise.
773 (force_decl_die): Likewise.
774 (declare_in_namespace): Likewise.
775 (dwarf2out_decl): Likewise.
776 (prune_unused_types_walk_loc_descr): New.
777 (prune_unused_types_walk_attribs): Mark DIEs referenced by
778 location descriptions and loc. descr. lists.
779 (prune_unused_types_walk): Don't mark DWARF procedures by
780 default. Mark variant parts since nothing is supposed to
782 (dwarf2out_init): Allocate dwarf_proc_stack_usage_map.
783 (dwarf2out_c_finalize): Deallocate and reset
784 dwarf_proc_stack_usage_map.
786 2015-12-17 Pierre-Marie de Rodat <derodat@adacore.com>
788 * common.opt (gnat_encodings): New variable
789 (dwarf_gnat_encodings): New enum type.
790 (fgnat_encodings): New option.
791 * flag-types.h (enum dwarf_gnat_encodings): New.
793 2015-12-17 Christian Bruel <christian.bruel@st.com>
795 * tree.h (TYPE_MODE_RAW): New macro.
796 * tree-streamer-out.c (pack_ts_type_common_value_fields):
797 Replace TYPE_MODE by TYPE_MODE_RAW.
799 2015-12-17 Jakub Jelinek <jakub@redhat.com>
801 PR tree-optimization/68835
802 * tree.c (get_int_cst_ext_nunits): Return
803 cst.get_precision () / HOST_BITS_PER_WIDE_INT + 1
804 for all unsigned wi::neg_p (cst) constants.
805 (build_new_int_cst): If cst.get_precision is not a multiple
806 of HOST_BITS_PER_WIDE_INT, zero extend -1 to the precision
807 % HOST_BITS_PER_WIDE_INT.
809 2015-12-17 Richard Biener <rguenther@suse.de>
811 PR tree-optimization/68951
812 * tree-vect-data-refs.c (vect_peeling_hash_get_lowest_cost):
813 Ignore strided non-group accesses.
815 2015-12-17 Andrew Burgess <andrew.burgess@embecosm.com>
817 * config/arc/arc.c (arc_loop_hazard): Don't convert the jump label
818 rtx to an rtx_insn until we confirm it's not a return rtx.
820 2015-12-17 Richard Biener <rguenther@suse.de>
822 * gimple-ssa.h (struct gimple_df): Remove modified_noreturn_calls
824 * tree-ssa.c (delete_tree_ssa): Do not zero it.
826 2015-12-17 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
829 * configure.ac (gcc_cv_as_stabs_directive): New test.
830 * configure: Regenerate.
831 * config.in: Regenerate.
832 * config/darwin.h (DBX_DEBUGGING_INFO): Wrap in
833 HAVE_AS_STABS_DIRECTIVE.
834 (PREFERRED_DEBUGGING_TYPE): Likewise.
835 * config/i386/darwin.h (PREFERRED_DEBUGGING_TYPE): Only include
836 DBX_DEBUG if HAVE_AS_STABS_DIRECTIVE.
838 * doc/sourcebuild.texi (Effective-Target Keywords, Environment
839 attributes): Document stabs.
841 2015-12-16 Martin Sebor <msebor@redhat.com>
844 * ginclude/stdatomic.h (atomic_init): Use atomic_store instead
847 2015-12-15 Michael Meissner <meissner@linux.vnet.ibm.com>
850 * config/rs6000/rs6000.c (rs6000_gen_le_vsx_permute): Use ROTATE
851 instead of VEC_SELECT for TImode.
853 * config/rs6000/vsx.md (VSX_LE): Move TImode from VSX_LE to
854 VSX_LE_128, so that we use ROTATE to swap the 64-bit words instead
856 (VSX_LE_128): Likewise.
857 (define_peephole2): Add peephole to eliminate double xxpermdi when
860 2015-12-16 John David Anglin <danglin@gcc.gnu.org>
863 * config/pa/pa.md (atomic_loaddi): Honor -mdisable-fpregs.
864 (atomic_loaddi_1): Likewise.
865 (atomic_storedi): Likewise.
866 (atomic_storedi_1): Likewise.
867 (atomic_loaddf): Likewise.
868 (atomic_loaddf_1): Likewise.
869 (atomic_storedf): Likewise.
870 (atomic_storedf_1): Likewise.
871 Move all atomic patterns to end of file.
873 2015-12-16 Abderrazek Zaafrani <a.zaafrani@samsung.com>
875 * graphite-isl-ast-to-gimple.c: Include isl/schedule_node.h.
876 (set_separate_option): New.
877 (translate_isl_ast_to_gimple::set_options_for_schedule_tree): New.
878 (translate_isl_ast_to_gimple::scop_to_isl_ast): Use scop->schedule.
879 * graphite-optimize-isl.c (optimize_isl): Set scop->schedule, do not
880 free the computed schedule tree.
881 * graphite-poly.c (new_scop): Initialize scop->schedule.
882 * graphite.h: Include isl/schedule.h.
883 (struct scop): Add field schedule.
885 2015-12-16 Nathan Sidwell <nathan@acm.org>
887 * ipa-visibility.c (can_replace_by_local_alias): Make static,
888 check ASM_OUTPUT_DEF.
889 (can_replace_by_local_alias_in_vtable): Make static.
890 (function_and_variable_visibility): Reformat overlong comment.
892 2015-12-16 Jeff Law <law@redhat.com>
894 * ree.c (add_removable_extension): Use reg_overlap_mentioned_p
895 rather than testing hard register #s.
897 2015-12-16 Nathan Sidwell <nathan@acm.org>
899 * config/nvptx/nvptx.h (OUTGOING_STATIC_CHAIN_REGNUM): Remove.
900 (REGISTER_NAMES): Adjust.
901 * config/nvptx/nvptx.c (nvptx_pass_by_reference): Avoid long line.
902 (nvptx_static_hain): Delete.
903 (write_arg_mode): Don't emit initializer if argno < 0.
904 (write_arg_type): Fix whitespace.
905 (init_frame): Initialize reg to zero if frame is zero-sized.
906 (nvptx_declare_function_name): Use write_arg_type to emit chain
908 (nvptx_output_call_insn): Adjust static chain emission.
909 (nvptx_goacc_reduction): Make static.
910 (TARGET_STATIC_CHAIN): Don't override.
912 2015-12-16 Aditya Kumar <aditya.k7@samsung.com>
914 * graphite-dependences.c (scop_get_dependences): Use local pointers.
915 * graphite-isl-ast-to-gimple.c
916 (translate_isl_ast_to_gimple::scop_to_isl_ast): Use scop->dependence.
917 * graphite-optimize-isl.c (optimize_isl): Same.
918 * graphite-poly.c (new_scop): Remove initialization of removed
921 * graphite.h (struct scop): Remove individial dependence pointers and
922 add a scop::dependence to contain all the dependence.
924 2015-12-16 Aditya Kumar <aditya.k7@samsung.com>
926 * graphite-sese-to-poly.c (build_poly_sr): Use refs.
928 2015-12-16 Aditya Kumar <aditya.k7@samsung.com>
929 Sebastian Pop <s.pop@samsung.com>
931 * config.in: Regenerate.
932 * configure: Regenerate.
933 * configure.ac: Remove checks for functions that exist in isl 0.13
935 * graphite-isl-ast-to-gimple.c: Remove #ifdefs and code for isl 0.12.
936 * graphite-optimize-isl.c: Same.
937 * graphite-poly.c: Same.
938 * graphite-sese-to-poly.c: Same.
939 * graphite.h: Add comment for isl 0.14.
940 * toplev.c (print_version): Print isl version.
942 2015-12-10 Jan Hubicka <hubicka@ucw.cz>
944 * ipa-cp.c (ipa_get_indirect_edge_target_1): Use can_refer; do not
945 speculate to impossible targets.
946 * ipa-prop.c (try_make_edge_direct_virtual_call): Likewise.
948 2015-12-16 Aditya Kumar <aditya.k7@samsung.com>
949 Sebastian Pop <s.pop@samsung.com>
951 * graphite-dependences.c (scop_get_reads): Add more dumps.
952 (scop_get_must_writes): Same.
953 (scop_get_may_writes): Same.
954 * graphite-poly.c (new_poly_dr): Same.
955 * graphite-scop-detection.c (build_cross_bb_scalars_def): Same.
956 (gather_bbs::before_dom_children): Same.
958 2015-12-16 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
960 * config/aarch64/aarch64.c (aarch64_extend_bitfield_pattern_p):
962 (aarch64_rtx_costs, ZERO_EXTEND, SIGN_EXTEND cases): Use the above
963 to handle extend+shift rtxes.
965 2015-12-16 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
968 * config/aarch64/aarch64-simd.md (*aarch64_simd_bsl<mode>_alt):
970 (aarch64_simd_bsl<mode>_internal): Update comment to reflect
973 2015-12-16 Richard Biener <rguenther@suse.de>
975 PR tree-optimization/68870
976 * tree-cfgcleanup.c (cleanup_control_expr_graph): Add first_p
977 parameter, if set only perform trivial constant folding.
978 Queue other blocks with conditions for later processing.
979 (cleanup_control_flow_bb): Add first_p parameter and pass it through.
980 (cleanup_tree_cfg_1): Pass true for the first iteration
981 cleanup_control_expr_graph.
983 2015-12-16 Nathan Sidwell <nathan@acm.org>
985 * config/nvptx/nvptx-protos.h (nvptx_hard_regno_mode_ok): Delete.
986 * config/nvptx/nvptx.h (struct machine_function):
987 Reimplement. Adjust all users.
988 * config/nvptx/nvptx.c (nvptx_declare_function_name): Move stack
989 and frame array generation earlier.
990 (nvptx_call_args): Reimplement.
991 (nvptx_expand_call): Adjust.
992 (nvptx_hard_reno_mode_ok): Delete.
993 (nvptx_reorg): Revert scan of hard regs.
995 2015-12-16 Tom de Vries <tom@codesourcery.com>
997 * opts.c (default_options_optimization): Set fipa-pta on by
998 default for fopenacc.
999 * passes.def: Move kernels pass group to pass_ipa_oacc.
1000 * tree-pass.h (make_pass_oacc_kernels2): Remove.
1001 (make_pass_ipa_oacc, make_pass_ipa_oacc_kernels): Declare.
1002 * tree-ssa-loop.c (pass_oacc_kernels2, make_pass_oacc_kernels2):
1004 (pass_ipa_oacc, pass_ipa_oacc_kernels): New pass.
1005 (make_pass_ipa_oacc, make_pass_ipa_oacc_kernels): New function.
1006 * tree-ssa-structalias.c (pass_ipa_pta::clone): New function.
1008 2015-12-16 Richard Biener <rguenther@suse.de>
1010 PR tree-optimization/68861
1011 * tree-vect-slp.c (vect_build_slp_tree): Properly handle
1012 duplicate stmts when applying swapping to stmts.
1014 2015-12-16 Kirill Yukhin <kirill.yukhin@intel.com>
1016 * config/i386/i386-c.c (ix86_target_macros_internal): Remove
1017 duplicate check (__CLZERO__).
1019 2015-12-16 Matthew Wahab <matthew.wahab@arm.com>
1021 * config/arm/arm_neon.h (vqrdmlahq_lane_s16): New.
1022 (vqrdmlahq_lane_s32): New.
1023 (vqrdmlah_lane_s16): New.
1024 (vqrdmlah_lane_s32): New.
1025 (vqrdmlshq_lane_s16): New.
1026 (vqrdmlshq_lane_s32): New.
1027 (vqrdmlsh_lane_s16): New.
1028 (vqrdmlsh_lane_s32): New.
1029 * config/arm/arm_neon_builtins.def: Add "vqrdmlah_lane" and
1032 2015-12-16 Matthew Wahab <matthew.wahab@arm.com>
1034 * config/arm/arm_neon.h (vqrdmlah_s16, vqrdmlah_s32): New.
1035 (vqrdmlahq_s16, vqrdmlahq_s32): New.
1036 (vqrdmlsh_s16, vqrdmlsh_s32): New.
1037 (vqrdmlahq_s16, vqrdmlshq_s32): New.
1038 * config/arm/arm_neon_builtins.def: Add "vqrdmlah" and "vqrdmlsh".
1040 2015-12-16 Matthew Wahab <matthew.wahab@arm.com>
1042 * doc/sourcebuild.texi (ARM-specific attributes): Add
1043 "arm_v8_1a_neon_ok" and "arm_v8_1a_neon_hw".
1045 2015-12-16 Matthew Wahab <matthew.wahab@arm.com>
1047 * config/arm/arm-c.c (arm_cpu_builtins): Define
1048 __ARM_FEATURE_QRDMX. Clean up some trailing whitespace.
1050 2015-12-16 Matthew Wahab <matthew.wahab@arm.com>
1052 * config/arm/iterators.md (VQRDMLH_AS): New.
1053 (neon_rdma_as): New.
1054 * config/arm/neon.md
1055 (neon_vqrdml<VQRDMLH_AS:neon_rdma_as>h<mode>): New.
1056 (neon_vqrdml<VQRDMLH_AS:neon_rdma_as>h_lane<mode>): New.
1057 * config/arm/unspecs.md (UNSPEC_VQRDMLAH): New.
1058 (UNSPEC_VQRDMLSH): New.
1060 2015-12-16 Matthew Wahab <matthew.wahab@arm.com>
1062 * config/arm/t-aprofile: Make "armv8.1-a" and "armv8.1-a+crc"
1063 matches for "armv8-a".
1065 2015-12-16 Matthew Wahab <matthew.wahab@arm.com>
1067 * config/arm/arm-arches.def: Add "armv8.1-a" and "armv8.1-a+crc".
1068 * config/arm/arm-protos.h (FL2_ARCH8_1): New.
1069 (FL2_FOR_ARCH8_1A): New.
1070 * config/arm/arm-tables.opt: Regenerate.
1071 * config/arm/arm.c (arm_arch8_1): New.
1072 (arm_option_override): Set arm_arch8_1.
1073 * config/arm/arm.h (TARGET_NEON_RDMA): New.
1074 (arm_arch8_1): Declare.
1075 * doc/invoke.texi (ARM Options, -march): Add "armv8.1-a" and
1077 (ARM Options, -mfpu): Fix a typo.
1079 2015-12-16 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
1082 * config/arm/arm.md (*andsi_iorsi3_notsi): Try to simplify
1083 the complement of operands[3] during splitting.
1085 2015-12-16 Richard Biener <rguenther@suse.de>
1087 PR tree-optimization/68892
1088 * tree-vect-slp.c (vect_analyze_slp_cost_1): Properly compute
1089 cost for permuted loads.
1091 2015-12-16 Jakub Jelinek <jakub@redhat.com>
1093 PR rtl-optimization/65980
1094 * jump.c (rtx_renumbered_equal_p) <case LABEL_REF>: Use
1095 next_nonnote_nondebug_insn instead of next_real_insn and
1096 skip over CODE_LABELs too.
1098 2015-12-10 Jan Hubicka <hubicka@ucw.cz>
1100 * symtab.c (symtab_node::fixup_same_cpp_alias_visibility):
1101 Do not copy DECL_VIRTUAL_P.
1103 2015-12-15 Martin Sebor <msebor@redhat.com>
1106 * tree-chkp.c (chkp_find_bound_slots_1): Handle flexible array
1108 * tree.c (type_contains_placeholder_1): Avoid assuming type has
1109 a non-null domain or an upper bound to handle flexible array
1111 * varasm.c (output_constructor_regular_field): Same.
1112 (output_constructor): Set min_index to integer_zero_node rather
1113 than null when a type has no domain to avoid crashing later.
1115 2015-12-15 Nathan Sidwell <nathan@acm.org>
1117 * config/nvptx/nvptx.c (write_one_arg): Rename to ...
1118 (write_arg_mode): ... here. Update callers.
1119 (write_arg): Rename to ...
1120 (write__arg_type): ... here. Update callers.
1121 (write_return_mode): New fn, broken out of ...
1122 (write_return): ... here. Rename to ...
1123 (write_return_type): ... here. Call it. Update callers.
1124 (write_fn_proto_from_insn): Use write_arg_mode and
1126 (init_frame): New fn.
1127 (nvptx_declare_function_name): Call it for frame and varargs. Only
1128 emit outgoing static chain, if it's live.
1129 (nvptx_output_return): Use reg_names for return reg name.
1130 (nvptx_output_call_insn): Likewise.
1131 (nvptx_reorg): Mark unused hard regs too.
1133 2015-12-15 Nathan Sidwell <nathan@acm.org>
1135 * config/nvptx/nvptx.md (nvptx_register_operand): Don't accept and
1136 then reject subregs.
1137 (nvptx_reg_or_mem_operand): Likewise.
1138 (nvptx_nonmemory_operand): Likewise.
1139 (call_insn_operand): A regular predicate, check SYMBOL_REF_FUNCTION_P.
1140 (call_insn, call_value_insn): Address is not SImode.
1141 * config/nvptx/nvptx.h (FIXED_REGISTERS): Make return reg fixed.
1142 (enum reg_class, REG_CLASS_NAMES, REG_CLASS_CONTENTS): Remove
1144 (REGNO_REG_CLASS): Alwaus ALL_REGS.
1145 (PROMOTE_MODE): QI and HI are the only smaller than SI int modes.
1146 (HARD_FRAME_POINTER_REGNUM): Delete.
1147 (REGISTER_NAMES): Move earlier.
1148 (struct nvptx_args): Remove 'off'.
1149 (INIT_CUMULATIVE_ARGS): Don't initialize 'off'.
1150 (ELIMINABLE_REGS): Remove HARD_FRAME_POINTER_REGNUM.
1151 * config/nvptx/nvptx.c (arg_promotion): Delete.
1152 (nvptx_expand_call): Remove check for funtype being an fntype.
1154 2015-12-15 Jason Merrill <jason@redhat.com>
1156 * hash-map.h, hash-table.h: Make copy constructors explicit.
1158 2015-12-15 Ilya Verbin <ilya.verbin@intel.com>
1160 * cgraphunit.c (output_in_order): Do not assemble "omp declare target
1161 link" variables in ACCEL_COMPILER.
1162 * gimplify.c (gimplify_adjust_omp_clauses): Do not remove mapping of
1163 "omp declare target link" variables.
1164 * omp-low.c (scan_sharing_clauses): Do not remove mapping of "omp
1165 declare target link" variables.
1166 (add_decls_addresses_to_decl_constructor): For "omp declare target
1167 link" variables output address of the artificial pointer instead
1168 of address of the variable. Set most significant bit of the size
1170 (pass_data_omp_target_link): New pass_data.
1171 (pass_omp_target_link): New class.
1172 (find_link_var_op): New static function.
1173 (make_pass_omp_target_link): New function.
1174 * passes.def: Add pass_omp_target_link.
1175 * tree-pass.h (make_pass_omp_target_link): Declare.
1176 * varpool.c (symbol_table::output_variables): Do not assemble "omp
1177 declare target link" variables in ACCEL_COMPILER.
1179 2015-12-15 Bernd Schmidt <bschmidt@redhat.com>
1182 * gensupport.c (collect_insn_data): Look for number of alternatives
1185 2015-12-15 Nathan Sidwell <nathan@acm.org>
1187 * config/nvptx/nvptx.h (HARD_REGNO_NREGS): Reformat.
1188 (CANNOT_CHANGE_MODE_CLASS): Always return true.
1189 (HARD_REGNO_MODE_OK): Reformat.
1190 * config/nvptx/nvptx.md (define_expand mov<mode>): No
1191 RETURN_REGNUM handling here.
1192 * config/nvptx/nvptx.c (nvptx_function_value): Set ret_reg_mode
1194 (write_one_arg): No QI or HI mode args.
1195 (write_fn_proto_from_insn): No argument promotion here.
1196 (nvptx_output_return_insn): No return promotion here.
1197 (nvptx_output_mov_insn): No RETURN_REGNUM handling needed.
1198 (nvptx_output_call_insn): No return promotion here.
1200 2015-12-15 Martin Jambor <mjambor@suse.cz>
1203 * cgraph.c (collect_callers_of_node_1): Do not collect thunks.
1204 * cgraph.h (cgraph_node): Change comment of collect_callers.
1206 2015-12-15 Jakub Jelinek <jakub@redhat.com>
1208 PR tree-optimization/66688
1209 * tree-cfgcleanup.c (cleanup_control_flow_bb): Handle
1210 noreturn call followed only by debug stmts by removing
1211 the debug stmts and handling it the same as if the noreturn
1212 call is the last stmt.
1214 2015-12-14 Steve Ellcey <sellcey@imgtec.com>
1216 * config/mips/mips.c (mips_promote_function_mode): New function.
1217 (TARGET_PROMOTE_FUNCTION_MODE): Define as above function.
1218 (TARGET_PROMOTE_PROTOTYPES): Remove.
1220 2015-12-14 Jason Merrill <jason@redhat.com>
1223 * hash-table.h: Add copy constructor.
1224 * hash-map.h: Add copy constructor.
1226 2015-12-14 Tom de Vries <tom@codesourcery.com>
1229 * gimple-pretty-print.c (dump_ssaname_info_to_file): New function.
1230 * gimple-pretty-print.h (dump_ssaname_info_to_file): Declare.
1231 * tree-cfg.c (dump_default_def): New function.
1232 (dump_function_to_file): Dump default defs for arguments, static chain,
1233 and decl-by-reference.
1235 2015-12-14 Nathan Sidwell <nathan@acm.org>
1237 * config/nvptx/nvptx.h (PARM_BOUNDARY): Set to 32.
1238 * config/nvptx/nvptx.c (PASS_IN_REG_P, RETURN_IN_REG_P): Delete.
1239 (pass_in_memory, promote_arg, promote_return): New.
1240 (nvptx_function_arg_boundary): Delete.
1241 (nvptx_function_value): Use promote_return.
1242 (nvptx_pass_by_reference): Use pass_in_memory.
1243 (nvptx_return_in_memory): Use pass_in_memory.
1244 (nvptx_promote_function_mode): Use promote_arg.
1245 (write_arg): Adjust arg splitting logic.
1246 (write_return): Check and clear ret_reg_mode, if needed.
1247 (write_fn_proto, nvptx_declare_function_name): Adust write_return
1249 (TARGET_RUNCTION_ARG_BOUNDARY,
1250 TARGET_FUNCTION_ARG_ROUND_BOUNDARY): Don't override.
1252 2015-12-14 Jakub Jelinek <jakub@redhat.com>
1255 * common.opt (Wmissing-noreturn): Add Warning option.
1256 * opts-common.c (control_warning_option): If opt is
1257 alias_target with alias_arg, set arg to it.
1259 2015-12-14 Segher Boessenkool <segher@kernel.crashing.org>
1263 * config/rs6000/rs6000.md (cstore_si_as_di): Force all operands
1266 2015-12-14 Richard Biener <rguenther@suse.de>
1268 Revert accidentially applied
1269 PR tree-optimization/68707
1270 PR tree-optimization/67323
1271 * tree-vect-slp.c (vect_analyze_slp_instance): Drop SLP instances
1272 if they can be vectorized using load/store-lane instructions.
1274 2015-12-14 Richard Biener <rguenther@suse.de>
1276 PR tree-optimization/68852
1277 * tree-vectorizer.h (struct _slp_tree): Add def_type member.
1278 (SLP_TREE_DEF_TYPE): New accessor.
1279 * tree-vect-stmts.c (vect_is_simple_use): Remove BB vectorization
1281 * tree-vect-slp.c (vect_create_new_slp_node): Initialize
1283 (vect_build_slp_tree): When a node is to be built up from scalars
1284 do not push a NULL as child but instead set its def_type to
1286 (vect_analyze_slp_cost_1): Check for child def-type instead
1288 (vect_detect_hybrid_slp_stmts): Likewise.
1289 (vect_bb_slp_scalar_cost): Likewise.
1290 (vect_get_slp_defs): Likewise.
1291 (vect_slp_analyze_node_operations): Likewise. Before
1292 processing node push the children def-types to the underlying
1293 stmts vinfo and restore it afterwards.
1294 (vect_schedule_slp_instance): Likewise.
1295 (vect_slp_analyze_bb_1): Do not mark stmts not in SLP instances
1296 as not vectorizable.
1298 2015-12-14 Richard Biener <rguenther@suse.de>
1300 PR tree-optimization/68775
1301 * tree-vect-slp.c (vect_build_slp_tree): Make sure to apply
1302 a operand swapping even if replacing the op with scalars.
1304 2015-12-14 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
1306 * combine.c (change_zero_ext): Do not create a shift of zero length.
1308 2015-12-14 Claudiu Zissulescu <claziss@synopsys.com>
1310 * config/arc/arc.c (TARGET_NO_SPECULATION_IN_DELAY_SLOTS_P):
1311 Provide target hook.
1312 (arc_no_speculation_in_delay_slots_p): New function.
1314 2015-12-14 Claudiu Zissulescu <claziss@synopsys.com>
1315 Andrew Burgess <andrew.burgess@embecosm.com>
1317 * config/arc/arc.c (frame_move): Set frame related flag.
1318 (arc_save_restore): Emit epilogue related DWARF2 information.
1319 (arc_expand_epilogue): Likewise.
1320 * config/arc/arc.opt (mno-epilogue-cfi): Remove.
1321 (mepilogue-cfi): Likewise.
1322 * doc/invoke.texi: Remove -m[no]-epilogue-cfi documentation.
1324 2015-12-14 Martin Jambor <mjambor@suse.cz>
1327 * ipa-cp.c (propagate_constants_accross_call): Move thuk check...
1328 (call_passes_through_thunk_p): ...here.
1329 (find_more_scalar_values_for_callers_subset): Perform thunk checks
1330 like propagate_constants_accross_call does.
1332 2015-12-14 Jakub Jelinek <jakub@redhat.com>
1334 PR rtl-optimization/68730
1335 * cfgrtl.c (cfg_layout_finalize): Free dominators.
1337 2015-12-13 Alexandre Oliva <aoliva@redhat.com>
1340 * var-tracking.c (reverse_op): Don't add dummy zero to reverse
1341 ops that simplify back to the original value.
1342 * alias.c (refs_newer_value_p): Cut off recursion for
1343 expressions containing the original value.
1345 2015-12-13 Kazu Kirata <kazu@gcc.gnu.org>
1347 * config/m68k/m68k.md (load feeding clear byte): New peephole2.
1349 2015-12-13 Tom de Vries <tom@codesourcery.com>
1351 * tree-ssa-structalias.c (find_func_clobbers): Handle sizes and kinds
1352 parameters of GOACC_paralllel.
1354 2015-12-10 Jan Hubicka <hubicka@ucw.cz>
1356 * cgraph.c (cgraph_node::get_untransformed_body): Pass compressed
1357 flag to lto_get_section_data.
1358 * varpool.c (varpool_node::get_constructor): Likewise.
1359 * lto-section-in.c (lto_get_section_data): Add new flag decompress.
1360 (lto_free_section_data): Likewise.
1361 (lto_get_raw_section_data): New function.
1362 (lto_free_raw_section_data): New function.
1363 (copy_function_or_variable): Copy sections w/o decompressing.
1364 (lto_output_decl_state_refs): Picke compressed bit.
1365 * lto-streamer.h (lto_in_decl_state): New flag compressed.
1366 (lto_out_decl_state): Likewise.
1367 (lto_get_section_data, lto_free_section_data): Update prototypes
1368 (lto_get_raw_section_data, lto_free_raw_section_data): Declare.
1369 (lto_write_raw_data): Declare.
1370 (lto_begin_section): Remove FIXME.
1371 (lto_write_raw_data): New function.
1372 (lto_write_stream): Remove FIXME.
1373 (lto_new_out_decl_state): Set compressed flag.
1375 2015-12-10 Jan Hubicka <hubicka@ucw.cz>
1377 * tree.c (free_lang_data_in_type, find_decls_types_r): Also free
1378 unnecesary type decls.
1379 * tree.h (is_redundant_typedef): Declare.
1380 * dwarf2out.c (is_redundant_typedef): Export; booleanize
1382 2015-12-12 Eric Botcazou <ebotcazou@adacore.com>
1384 * config/sparc/sparc.h (TARGET_SUPPORTS_WIDE_INT): Define to 1.
1385 * config/sparc/sparc.c (sparc_emit_set_const64): Remove code
1386 conditionalized on HOST_BITS_PER_WIDE_INT == 32.
1387 (sparc_cannot_force_const_mem) <CONST_WIDE_INT>: New case.
1388 <CONST_DOUBLE>: Remove VOIDmode test.
1389 (epilogue_renumber) <CONST_WIDE_INT>: New case.
1390 (sparc_print_operand): Remove support for CONST_DOUBLE with VOIDmode.
1391 (sparc_assemble_integer): Likewise.
1392 (set_extends): Likewise.
1393 (sparc_rtx_costs) <CONST_INT>: Use SMALL_INT.
1394 <CONST_WIDE_INT>: New case.
1395 <CONST_DOUBLE>: Remove support for VOIDmode.
1396 <MULT>: Remove support for CONST_DOUBLE with VOIDmode.
1397 * config/sparc/predicates.md (const_zero_operand): Add const_wide_int.
1398 (const_all_ones_operand): Likewise.
1399 (uns_small_int_operand): Remove const_double and code conditionalized
1400 on HOST_BITS_PER_WIDE_INT == 32.
1401 (arith_double_operand): Likewise.
1402 (arith_double_add_operand): Likewise.
1403 (input_operand): Remove support for CONST_DOUBLE with DImode.
1404 * config/sparc/sparc.md (DImode CONST_INT splitter): Remove code
1405 conditionalized on HOST_BITS_PER_WIDE_INT == 32.
1406 (DFmode CONST_DOUBLE splitter): Likewise.
1407 (*adddi3_insn_sp32): Likewise.
1408 (*subdi3_insn_sp32): Likewise.
1409 (DImode logical splitter): Likewise.
1410 (DImode CONST_DOUBLE splitter): Delete.
1412 2015-12-12 Paolo Bonzini <bonzini@gnu.org>
1415 * c-family/c-ubsan.c (ubsan_instrument_shift): Disable
1416 sanitization of left shifts for wrapping signed types as well.
1418 2015-12-11 Eric Botcazou <ebotcazou@adacore.com>
1421 * tree-vect-generic.c (tree_vec_extract): Remove GSI parameter.
1422 Do not gimplify the result.
1423 (do_unop): Adjust call to tree_vec_extract.
1424 (do_binop): Likewise.
1425 (do_compare): Likewise.
1426 (do_plus_minus): Likewise.
1427 (do_negate): Likewise.
1428 (expand_vector_condition): Likewise.
1429 (do_cond): Likewise.
1431 2015-12-11 Nathan Sidwell <nathan@acm.org>
1433 * config/nvptx/nvptx.h (RETURN_ADDR_REGNO): Delete.
1434 (OUTGOING_ARG_POINTER_REGNUM): Delete.
1435 (ASM_OUTPUT_COMMON, ASM_OUTPUT_LOCAL): Delete.
1436 (REGISTER_NAMES): Name static chain regs.
1437 * config/nvptx/nvptx.c (nvptx_function_arg): Add ARG_UNUSED, merge
1439 (nvptx_incoming_arg): Merge ifs.
1440 (nvptx_function_arg_boundary): Reimplement to avoid mixing units.
1441 (nvptx_function_value): Tail call nvptx_libcall_value.
1442 (nvptx_pass_by_reference): Add ARG_UNUSED.
1443 (nvptx_static_chain): Use conditional op.
1444 (nvptx_handle_kernel_attribute): Use VOID_TYPE_P.
1446 2015-12-11 Jan-Benedict Glaw <jbglaw@lug-owl.de>
1447 Dominique d'Humieres <dominiq@lps.ens.fr>
1452 * config/darwin.c (darwin_use_anchors_for_symbol_p): Fix indention and
1453 trailing whitespace.
1455 2015-12-11 Jan Beulich <jbeulich@suse.com>
1457 * cfgexpand.c (expand_one_var): Exit early for static and
1458 external variables when adjusting stack alignment related.
1460 2015-12-11 Dominik Vogt <vogt@linux.vnet.ibm.com>
1462 * config/s390/s390.c (s390_rtx_costs)
1463 (s390_cannot_force_const_mem, legitimate_pic_operand_p)
1464 (s390_preferred_reload_class, s390_reload_symref_address)
1465 (legitimate_reload_constant_p, print_operand): Wide int support.
1466 * config/s390/predicates.md ("const0_operand", "constm1_operand")
1467 ("consttable_operand"): Likewise.
1468 ("larl_operand"): Add a comment.
1469 * config/s390/s390.h (TARGET_SUPPORTS_WIDE_INT): Enable wide int
1472 2015-12-11 Nathan Sidwell <nathan@acm.org>
1474 * config/nvptx/nvptx.h (TARGET_SUPPORTS_WIDE_INT): Define.
1475 * config/nvptx/nvptx.c (nvptxx_assemble_integer): Return false for
1478 2015-12-11 Tom de Vries <tom@codesourcery.com>
1480 * passes.def: Remove unpaired TERMINATE_PASS_LIST.
1482 2015-12-11 Michael Matz <matz@suse.de>
1484 * hash-map.h (hash_map::hash_map): Gather statistics only
1485 when GATHER_STATISTICS is true.
1486 * hash-set.h (hash_set::hash_set): Ditto.
1487 * hash-table.h (hash_table::hash_table): Ditto.
1488 (hash_table::create_ggc): Ditto.
1490 2015-12-11 Martin Jambor <mjambor@suse.cz>
1493 * ipa-prop.c (ipa_compute_jump_functions_for_edge): Add checking
1494 assert that align is nonzero.
1496 2015-12-11 Dominik Vogt <vogt@linux.vnet.ibm.com>
1498 * config/s390/s390.c (s390_expand_setmem): Use new expanders.
1499 * config/s390/s390.md ("*setmem_long")
1500 ("*setmem_long_and", "*setmem_long_31z"): Fix warnings.
1501 ("*setmem_long_and_31z"): New define_insn.
1502 ("setmem_long_<P:mode>"): New expanders.
1503 * (<modesize>): New mode attribute
1505 2015-12-11 Dominik Vogt <vogt@linux.vnet.ibm.com>
1507 * config/s390/s390.md ("movstr", "*movstr"): Fix warning.
1508 ("movstr<P:mode>"): New indirect expanders used by "movstr".
1510 2015-12-11 Martin Liska <mliska@suse.cz>
1511 Uros Bizjak <ubizjak@gmail.com>
1514 * config/i386/i386.c (ix86_valid_target_attribute_tree):
1515 Use ggc_strdup to copy option_strings to opts->x_ix86_arch_string and
1516 opts->x_ix86_tune_string.
1518 2015-12-11 Richard Biener <rguenther@suse.de>
1520 * lto-streamer.h (lto_simple_header_with_strings): Remove
1521 main_size field already in lto_simple_header.
1523 2015-12-11 Ilya Enkovich <enkovich.gnu@gmail.com>
1525 * tree-vect-stmts.c (vectorizable_mask_load_store): Check
1528 2015-12-11 Ilya Enkovich <enkovich.gnu@gmail.com>
1530 * config/i386/i386.c (ix86_get_mask_mode): Use scalar
1531 modes for 32 and 16 byte boolean vectors when possible.
1533 2015-12-11 Segher Boessenkool <segher@kernel.crashing.org>
1535 PR rtl-optimization/67778
1536 PR rtl-optimization/68634
1537 * shrink-wrap.c (try_shrink_wrapping): Add a comment about why we want
1538 to put the prologue earlier. When determining if an earlier block is
1539 suitable, make sure it dominates every block reachable from it.
1541 2015-12-11 Segher Boessenkool <segher@kernel.crashing.org>
1543 PR rtl-optimization/68814
1544 * rtlanal.c (set_noop_p): Use BITS_BIG_ENDIAN instead of
1547 2015-12-10 Nathan Sidwell <nathan@acm.org>
1549 * config/nvptx/nvptx.c (nvptx_function_arg,
1550 nvptx_function_incoming_arg, nvptx_function_arg_advance,
1551 nvptx_strict_argument_naming, nvptx_function_arg_boundary,
1552 nvptx_libcall_value, nvptx_function_value,
1553 nvptx_function_value_regno_p, nvptx_pass_by_reference,
1554 nvptx_return_in_memory, nvptx_promote_function_mode,
1555 nvptx_static_chain): Move earlier.
1556 (write_one_arg): Break out as helper fn for ...
1557 (write_arg): ... this new function. Adjust all callers.
1559 2015-12-10 Jan Hubicka <hubicka@ucw.cz>
1561 * lto-streamer-out.c (wrap_refs): Only wrap public decls.
1563 2015-12-10 Jan Hubicka <hubicka@ucw.cz>
1565 * ipa-cp.c (ipcp_cloning_candidate_p): Use node->optimize_for_size_p.
1566 (good_cloning_opportunity_p): Likewise.
1567 (gather_context_independent_values): Do not return true when
1568 polymorphic call context is known or when we have known aggregate
1569 value of unused parameter.
1570 (estimate_local_effects): Try to create clone for all context
1571 when either some params are substituted or devirtualization is possible
1572 or some params can be removed; use local flag instead of
1573 node->will_be_removed_from_program_if_no_direct_calls_p.
1574 (identify_dead_nodes): Likewise.
1576 2015-12-10 David Malcolm <dmalcolm@redhat.com>
1578 * doc/invoke.texi (-Wall): Add -Wmisleading-indentation to the
1580 (-Wmisleading-indentation): Update documentation to reflect
1581 being enabled by -Wall in C/C++.
1583 2015-12-10 Vladimir Makarov <vmakarov@redhat.com>
1585 PR rtl-optimization/68691
1586 * lra-spills.c (lra_final_code_change): Check pseudo occurrence
1587 number in non-debug insns and remove debug insns if necessary.
1589 2015-12-10 Martin Sebor <msebor@redhat.com>
1591 * invoke.texi (Warning Options): Update -Wall options. Clarify
1592 when some -Wextra options are enabled. Add -Wplacement-new example.
1594 2015-12-10 Uros Bizjak <ubizjak@gmail.com>
1596 * graphite-scop-detection.c (gather_bbs::before_dom_children):
1597 Change return type to an edge. Always return NULL.
1599 2015-12-10 Jeff Law <law@redhat.com>
1601 PR tree-optimization/68619
1602 * tree-ssa-dom.c (dom_opt_dom_walker::before_dom_children): Propgate
1603 return value from optimize_stmt.
1604 (dom_opt_dom_walker): Add new argument to dom_walker constructor.
1605 (pass_dominator:execute): If a block has an unreachable edge,
1606 remove all jump threads through any successor of the affected block.
1607 (record_equivalences_from_phis): Ignore alternative if the edge
1608 does not have EDGE_EXECUTABLE set.
1609 (single_incoming_edge_ignoring_loop_edges): Similarly.
1610 (optimize_stmt): If a gimple_code has a compile-time constant
1611 condition, return the edge taken for that constant value. Also
1612 change the condition to true/false as necessary.
1613 * domwalk.h (dom_walker::dom_walker): Add new argument
1614 skip_unreachable_blocks. Don't provide empty constructor body.
1615 (dom_walker::before_dom_children): Change return type.
1616 (dom_walker::bb_reachable): Declare new private method.
1617 (dom_walker::propagate_unreachable_to_edges): Likewise.
1618 (dom_walker::m_unreachable_dom): Declare new private data member.
1619 (dom_walker::m_skip_unreachable_blocks): Likewise.
1620 * domwalk.c: Include dumpfile.h.
1621 (dom_walker::dom_walker): New constructor. Initialize private data
1622 members. If needed, set EDGE_EXECUTABLE for all edges in the CFG,
1623 extracted from tree-ssa-sccvn.c.
1624 (dom_walker::bb_reachable): New method extracted from tree-ssa-sccvn.c
1625 (dom_walker::propagate_unreachable_to_edges): Likewise.
1626 (dom_walker::walk): Only call before_dom_children on reachable
1627 blocks. If before_dom_children returns an edge, then clear
1628 EDGE_EXECUTABLE for all other outgoing edges from the same block.
1629 For unreachable blocks, call propagate_unreachable_to_edges.
1630 Similarly, only call after_dom_children on reachable blocks. For
1631 unreachable blocks, conditionally clear m_unreachable_dom.
1632 * tree-ssa-sccvn.c (sccvn_dom_walker::unreachable_dom): Remove
1633 private data member.
1634 (sccvn_dom_walker::after_dom_children): Use methods from dom_walker
1636 (run_scc_vn): Likewise.
1637 (sccvn_dom_walker::before_dom_children): Likewise. Return the taken
1638 outgoing edge if a COND, SWITCH, or GOTO are optimized.
1639 * compare-elim.c (find_comparison_dom_walker::before_dom_children):
1640 Change return type to an edge. Always return NULL.
1641 * fwprop.c (single_def_use_dom_walker::before_dom_children): Likewise.
1642 * gimple-ssa-strength-reduction.c
1643 (find_candidates_dom_walker::before_dom_children): Likewise.
1644 * ipa-prop.c (analysis_dom_walker::before_dom_children): Likewise.
1645 (ipcp_modif_dom_walker::before_dom_children): Likewise.
1646 * tree-into-ssa.c (rewrite_dom_walker::before_dom_children): Likewise.
1647 (rewrite_update_dom_walker::before_dom_children): Likewise.
1648 (mark_def_dom_children::before_dom_children): Likewise.
1649 * tree-ssa-dse.c (dse_dom_walker::before_dom_children): Likewise.
1650 * tree-ssa-loop-im.c
1651 (invariantness_dom_walker::before_dom_children): Likewise.
1652 (move_computations_dom_walker::before_dom_walker): Likewise.
1654 (nontrapping_dom_walker::before_dom_children): Likewise.
1656 (eliminate_dom_walker::before_dom_children): Likewise.
1657 * tree-ssa-propagate.c
1658 (substitute_and_fold_dom_walker::before_dom_children): Likewise.
1660 (strlen_dom_walker::before_dom_children): Likewise.
1661 * tree-ssa-uncprop.c
1662 (uncprop_dom_walker::before_dom_children): Likewise.
1664 2015-12-10 Jakub Jelinek <jakub@redhat.com>
1666 PR rtl-optimization/68376
1667 PR rtl-optimization/68670
1668 * ifcvt.c (noce_try_abs): For one_cmpl allow < 0, >= 0
1669 or > -1 conditions regardless of negate, and disallow
1670 all other conditions.
1672 2015-12-10 Ilya Enkovich <enkovich.gnu@gmail.com>
1674 * tree-chkp.c (chkp_call_returns_bounds_p): Return true
1676 (chkp_fixup_inlined_call): New.
1677 * tree-chkp.h (chkp_fixup_inlined_call): New.
1678 * tree-stdarg.c: Include tree-chkp.h.
1679 (expand_ifn_va_arg_1): Fixup bndret calls for removed
1682 2015-12-10 Martin Jambor <mjambor@suse.cz>
1684 * tree-inline.c (duplicate_remap_omp_clause_seq): New function.
1685 (replace_locals_op): Duplicate gimple sequences in OMP clauses.
1687 2015-12-10 David Malcolm <dmalcolm@redhat.com>
1689 * graphite-optimize-isl.c (scop_get_domains): Fix indentation.
1691 2015-12-10 David Malcolm <dmalcolm@redhat.com>
1693 * ifcvt.c (noce_try_inverse_constants): Fix indentation.
1695 2015-12-10 David Malcolm <dmalcolm@redhat.com>
1697 * regrename.c (scan_rtx_address): Fix indentation.
1699 2015-12-10 David Malcolm <dmalcolm@redhat.com>
1701 * function.c (locate_and_pad_parm): Fix indentation.
1703 2015-12-10 Richard Biener <rguenther@suse.de>
1705 * tree-ssa-structalias.c (struct variable_info): Add
1706 is_ipa_escape_point flag.
1707 (new_var_info): Initialize to false.
1708 (find_func_aliases): Generate escape constraints for stores
1709 properly in IPA mode.
1710 (ipa_pta_execute): Compute is_ipa_escape_point for globals.
1712 2015-12-10 Claudiu Zissulescu <claziss@synopsys.com>
1714 * config/arc/atomic.md: Add new file.
1716 2015-12-10 Claudiu Zissulescu <claziss@synopsys.com>
1718 * config/arc/arc-protos.h (arc_expand_atomic_op): Prototype.
1719 (arc_split_compare_and_swap): Likewise.
1720 (arc_expand_compare_and_swap): Likewise.
1721 * config/arc/arc.c (arc_init): Check usage atomic option.
1722 (arc_pre_atomic_barrier): New function.
1723 (arc_post_atomic_barrier): Likewise.
1724 (emit_unlikely_jump): Likewise.
1725 (arc_expand_compare_and_swap_qh): Likewise.
1726 (arc_expand_compare_and_swap): Likewise.
1727 (arc_split_compare_and_swap): Likewise.
1728 (arc_expand_atomic_op): Likewise.
1729 * config/arc/arc.h (TARGET_CPU_CPP_BUILTINS): New C macro.
1730 (ASM_SPEC): Enable mlock option when matomic is used.
1731 * config/arc/arc.md (UNSPEC_ARC_MEMBAR): Define.
1732 (VUNSPEC_ARC_CAS): Likewise.
1733 (VUNSPEC_ARC_LL): Likewise.
1734 (VUNSPEC_ARC_SC): Likewise.
1735 (VUNSPEC_ARC_EX): Likewise.
1736 * config/arc/arc.opt (matomic): New option.
1737 * config/arc/constraints.md (ATO): New constraint.
1738 * config/arc/predicates.md (mem_noofs_operand): New predicate.
1739 * doc/invoke.texi: Document -matomic.
1740 * config/arc/atomic.md: New file.
1742 2015-12-10 Richard Biener <rguenther@suse.de>
1744 PR tree-optimization/68817
1745 * tree-vect-slp.c (vect_attempt_slp_rearrange_stmts): Detect
1748 2015-12-10 Ilya Enkovich <enkovich.gnu@gmail.com>
1750 * tree-vect-stmts.c (vectorizable_assignment): Support
1751 useless boolean conversion.
1753 2015-12-10 Alan Lawrence <alan.lawrence@arm.com>
1755 * doc/install.texi: Add note against GNAT 4.8 on ARM targets.
1757 2015-12-10 Jakub Jelinek <jakub@redhat.com>
1759 PR tree-optimization/68785
1760 * gimple-fold.c (fold_ctor_reference): Pass return value from
1761 native_encode_expr to native_interpret_expr.
1762 * tree-ssa-sccvn.c (fully_constant_vn_reference_p): Likewise.
1764 2015-12-10 Richard Biener <rguenther@suse.de>
1767 * tree-ssa-structalias.c (set_uids_in_ptset): Add fndecl
1768 parameter and make vars_contains_nonlocal properly have
1769 function-scope semantics in IPA mode.
1770 (find_what_var_points_to): Add fndecl parameter.
1771 (find_what_p_points_to): Likewise.
1772 (pt_solution_includes_global): Remove IPA PTA early out.
1773 (compute_points_to_sets): Adjust.
1774 (ipa_pta_execute): Likewise. Clear final_solutions after
1777 2015-12-10 Tom de Vries <tom@codesourcery.com>
1780 * doc/include/fdl.texi: Add nodefaultgnufreedocumentationlicensenode
1781 ifdef to allow disabling default @node GNU Free Documentation License.
1783 2015-12-10 Richard Biener <rguenther@suse.de>
1785 * tree-ssa-structalias.c (create_function_info_for): Add missing
1786 constraint from nonlocal for DECL_RESULT.
1788 2015-12-10 Richard Biener <rguenther@suse.de>
1790 * tree-if-conv.c: Include params.h.
1791 (ifcvt_memrefs_wont_trap): Use PARAM_ALLOW_STORE_DATA_RACES
1792 instead of flag_tree_loop_if_convert_stores to guard cases
1793 we'd introduce store-data-races.
1795 2015-12-10 Richard Biener <rguenther@suse.de>
1798 * ipa-split.c (split_function): Record return value properly
1799 when the split part doesn't set it.
1801 2015-12-10 Richard Biener <rguenther@suse.de>
1803 PR tree-optimization/68806
1804 * tree-vect-loop.c (vect_analyze_loop_2): Properly detect
1805 reduction chains and ignore SLP reductions.
1807 2015-12-10 Richard Biener <rguenther@suse.de>
1809 * tree-if-conv.c (if_convertible_loop_p_1): Do not compute
1811 (if_convertible_loop_p): Adjust.
1813 2015-12-10 Tom de Vries <tom@codesourcery.com>
1815 * tree-ssa-structalias.c (find_func_aliases_for_builtin_call): Remove
1818 2015-12-10 Martin Liska <mliska@suse.cz>
1820 * tree-vect-data-refs.c: Free an overwritten dataref.
1822 2015-12-09 John David Anglin <danglin@gcc.gnu.org>
1825 * config/pa/pa.c (pa_emit_move_sequence): Don't check that mode is
1826 consistent with modes of the input and output operands when doing
1827 reloads to and from floating point registers. Do reload for all
1830 2015-12-08 Jan Hubicka <hubicka@ucw.cz>
1834 * tree-ssa-alias.c (ptr_deref_may_alias_decl_p): Use compare_base_decls
1835 (nonoverlapping_component_refs_of_decl_p): Update sanity check.
1836 (decl_refs_may_alias_p): Use compare_base_decls.
1837 * alias.c: Include cgraph.h
1838 (get_alias_set): Add cut-off for recursion.
1839 (rtx_equal_for_memref_p): Use rtx_equal_for_memref_p.
1840 (compare_base_decls): New function.
1841 (base_alias_check): Likewise.
1842 (memrefs_conflict_p): Likewise.
1843 (nonoverlapping_memrefs_p): Likewise.
1844 * alias.h (compare_base_decls): Declare.
1846 2015-12-08 Jan Hubicka <hubicka@ucw.cz>
1849 * ipa-visibility.c (function_and_variable_visibility): Fix vtable
1852 2015-12-08 Jan Hubicka <hubicka@ucw.cz>
1856 * ipa-reference.c (ipa_reference_get_not_read_global,
1857 ipa_reference_get_not_read_global): Fix WRT aliases.
1858 (is_improper): Break out from ...
1859 (is_proper_for_analysis): ... here; fix WRT aliases.
1860 (analyze_function, generate_summary,
1861 ipa_reference_write_optimization_summary,
1862 ipa_reference_read_optimization_summary): Use ipa_reference_var_uid.
1863 * ipa-refrence.h (ipa_reference_var_uid): New inline.
1864 * tree-ssa-alias.c: Revert my accidental previous commit.
1865 (ref_maybe_used_by_call_p_1,
1866 call_may_clobber_ref_p_1): Use ipa_reference_var_uid.
1868 2015-12-09 Andreas Tobler <andreast@gcc.gnu.org>
1870 * config/rs6000/freebsd64.h: Remove the redefinition of WCHAR_TYPE.
1872 2015-12-09 Aditya Kumar <aditya.k7@samsung.com>
1873 Sebastian Pop <s.pop@samsung.com>
1875 * graphite-optimize-isl.c: Include isl/ast_build.h
1876 (optimize_isl): Set several isl_options_set_* options.
1878 2015-12-09 Aditya Kumar <aditya.k7@samsung.com>
1879 Sebastian Pop <s.pop@samsung.com>
1881 * graphite-sese-to-poly.c (pdr_add_memory_accesses): Iterate in
1882 the same order as adding data reference access functions.
1884 2015-12-09 Aditya Kumar <aditya.k7@samsung.com>
1885 Sebastian Pop <s.pop@samsung.com>
1887 * graphite-optimize-isl.c (optimize_isl): Improve dump message.
1889 2015-12-09 Marek Polacek <polacek@redhat.com>
1891 PR tree-optimization/66949
1892 * tree-ssa-phiopt.c (tree_ssa_phiopt_worker): Don't call
1893 single_non_singleton_phi_for_edges to get the PHI from
1894 factor_out_conditional_conversion. Use NULL_TREE instead of NULL.
1895 (factor_out_conditional_conversion): Adjust declaration. Make it
1896 return the newly-created PHI.
1898 2015-12-09 James Greenhalgh <james.greenhalgh@arm.com>
1900 * config/aarch64/aarch64-protos.h
1901 (aarch64_cannot_change_mode_class): Bring back.
1902 * config/aarch64/aarch64.c
1903 (aarch64_cannot_change_mode_class): Likewise.
1904 * config/aarch64/aarch64.h (CANNOT_CHANGE_MODE_CLASS): Likewise.
1905 * config/aarch64/aarch64.md (aarch64_movdi_<mode>low): Use
1906 zero_extract rather than truncate.
1907 (aarch64_movdi_<mode>high): Likewise.
1909 2015-12-09 Jakub Jelinek <jakub@redhat.com>
1911 PR tree-optimization/68786
1912 * tree-if-conv.c: Include builtins.h.
1913 (predicate_mem_writes): Put result of get_object_alignment (ref)
1914 into second argument's value.
1915 * tree-vect-stmts.c (vectorizable_mask_load_store): Put minimum
1916 pointer alignment into second argument's value.
1917 * tree-data-ref.c (get_references_in_stmt): Use value of second
1918 argument for build_aligned_type, and only the type to build
1919 a zero second argument for MEM_REF.
1920 * internal-fn.c (expand_mask_load_optab_fn,
1921 expand_mask_store_optab_fn): Likewise.
1923 2015-12-09 Richard Biener <rguenther@suse.de>
1925 PR tree-optimization/68583
1926 * tree-if-conv.c (if_convertible_phi_p): Drop
1927 flag_tree_loop_if_convert_stores check in favor of the
1928 existing any_mask_load_store check.
1929 (insert_gimplified_predicates): Likewise.
1930 (combine_blocks): Likewise.
1931 (tree_if_conversion): Likewise.
1932 (ifcvt_memrefs_wont_trap): Properly check
1933 flag_tree_loop_if_convert_stores in all places that can end
1934 up introducing store-data-races.
1935 (if_convertible_gimple_assign_stmt_p): Remove restriction
1936 on flag_tree_loop_if_convert_stores for stores we can if-convert
1937 without introducing store-data-races. Force versioning for
1938 all if-converted stores.
1940 2015-12-09 Tom de Vries <tom@codesourcery.com>
1942 PR tree-optimization/68716
1943 * tree-ssa-structalias.c (find_func_clobbers): Fix handling of
1944 BUILT_IN_GOMP_PARALLEL and BUILT_IN_GOACC_PARALLEL.
1946 2015-12-09 Martin Liska <mliska@suse.cz>
1948 * hash-traits.h (struct typed_delete_remove): New function.
1949 (typed_delete_remove ::remove): Likewise.
1950 * tree-ssa-loop-ivopts.c (struct iv_common_cand): Replace
1952 (record_common_cand): Replace XNEW with operator new.
1954 2015-12-09 Martin Liska <mliska@suse.cz>
1956 * tree-if-conv.c (ifcvt_local_dce): Replace vec with auto_vec.
1958 2015-12-09 Martin Liska <mliska@suse.cz>
1961 * ipa-icf.c (sem_function::param_used_p): Return true
1962 if ipa_node_params_sum equals to NULL.
1964 2015-12-09 Richard Biener <rguenther@suse.de>
1966 PR tree-optimization/68583
1967 * tree-if-conv.c (ifc_dr): Make flags bool, add w_unconditionally
1968 flag and rename predicates to w_predicate, rw_predicate and
1970 (DR_WRITTEN_AT_LEAST_ONCE): Rename to ...
1971 (DR_BASE_W_UNCONDITIONALLY): ... this.
1972 (DR_W_UNCONDITIONALLY): Add.
1973 (hash_memrefs_baserefs_and_store_DRs_read): Adjust. Compute
1974 unconditionally written separately from read or written.
1975 (ifcvt_memrefs_wont_trap): Properly treat reads.
1976 (ifcvt_could_trap_p): Inline ...
1977 (if_convertible_gimple_assign_stmt_p): ... here. Refactor
1978 to avoid code duplication.
1979 (if_convertible_loop_p_1): Adjust and properly initialize
1982 2015-12-09 Richard Biener <rguenther@suse.de>
1984 * tree-vect-stmts.c (vectorizable_load): Set new vinfo only
1985 if it was not yet set.
1986 * tree-vectorizer.h (set_vinfo_for_stmt): Assert we don't
1987 overwrite an existing entry.
1989 2015-12-09 Chung-Lin Tang <cltang@codesourcery.com>
1991 * c-family/c-omp.c (c_finish_oacc_wait): Remove add_stmt() call.
1992 * c/c-parser.c (c_parser_oacc_wait): Add add_stmt() call.
1993 * cp/parser.c (cp_parser_oacc_wait): Add finish_expr_stmt() call.
1995 2015-12-08 Jan Hubicka <hubicka@ucw.cz>
1998 * symtab.c (symtab_node::equal_address_to): New parameter
2000 * cgraph.h (symtab_node::equal_address_to): Update prototype.
2002 2015-12-08 DJ Delorie <dj@redhat.com>
2004 * config/rx/rx.opt (-mjsr): Add.
2005 * config/rx/predicates.md (rx_call_operand): Avoid overflowing
2007 * config/rx/rx.c (rx_function_ok_for_sibcall): Likewise for
2009 * doc/invoke.texi (-mjsr): Document it.
2011 2015-12-08 Jan Hubicka <hubicka@ucw.cz>
2014 * lto-streamer.h (lto_symtab_merge_decls, lto_symtab_merge_symbols,
2015 lto_symtab_prevailing_decl): MOve to lto-symtab.h.
2016 * lto-streamer-out.c (DFS::DFS_write_tree_body): Check that
2017 DECL_ABSTRACT_ORIGIN is not error_mark_node.
2019 2015-12-08 David Malcolm <dmalcolm@redhat.com>
2021 * tree-nested.c (convert_tramp_reference_stmt): Fix indentation.
2023 2015-12-08 David Malcolm <dmalcolm@redhat.com>
2025 * tree-ssa-loop-unswitch.c (tree_unswitch_outer_loop): Fix
2028 2015-12-08 Jan Hubicka <hubicka@ucw.cz>
2031 * lto-cgraph.c (compute_ltrans_boundary): Add transparent alias targets
2034 2015-12-08 Jan Hubicka <hubicka@ucw.cz>
2037 * varpool.c (varpool_node::get_availability): Recurse only on
2038 weakrefs with definition in the target.
2039 (symbol_table::remove_unreferenced_decls): Keep aliases in the boundary.
2041 2015-12-08 Jan Hubicka <hubicka@ucw.cz>
2044 * ipa-visibility.c (can_replace_by_local_alias): Look through
2045 transparent aliases; refuse weakrefs.
2046 (update_visibility_by_resolution_info): Skip transparent aliases in the
2049 2015-12-08 Jan Hubicka <hubicka@ucw.cz>
2052 * symtab.c (symtab_node::verify_base): Fix thinko in a conditional.
2053 (symtab_node::noninterposable_alias): Do not accept transparent
2056 2015-12-08 Nathan Sidwell <nathan@acm.org>
2058 * config/nvptx/nvptx.c (decl_chunk_size, decl_chunk_mode,
2059 decl_offset, init_part, object_size, object_finished): Replace
2061 (struct init_frag): ... this new struct variable.
2062 (begin_decl_field, output_decl_chunk): Replace with ...
2063 (output_init_frag): ... this new function.
2064 (nvptx_assemble_value): Reimplement.
2065 (nvptx_assemble_integer, nvptx_output_skip): Adjust.
2066 (nvptx_assemble_decl_begin, nvptx_assemble_decl_end): Adjust.
2067 (nvptx_output_aligned_decl): Call nvptx_assemble_decl_end.
2069 2015-12-08 Eric Botcazou <ebotcazou@adacore.com>
2073 * cfgexpand.c (set_rtl): Always accept mode mismatch for SSA names
2074 with BLKmode promoted mode based on RESULT_DECLs.
2076 2015-12-08 Uros Bizjak <ubizjak@gmail.com>
2079 * config/i386/i386.c (ix86_option_override_internal): Enable
2080 -maccumulate-outgoing-args when %ebp is fixed due to stack
2081 realignment requirements.
2083 2015-12-08 Tom de Vries <tom@codesourcery.com>
2085 PR tree-optimization/68640
2086 * omp-low.c (install_var_field): Clear the restrict qualifier on the var
2089 2015-12-08 Kirill Yukhin <kirill.yukhin@intel.com>
2091 * config/i386/sse.md (define_insn "<avx512>_vec_dup<mode>_1"): Fix
2092 assembler to make source always 128bit.
2094 2015-12-08 Jakub Jelinek <jakub@redhat.com>
2098 * common.opt (Wframe-larger-than=): Add Warning.
2099 * opts.h (control_warning_option): Add ARG argument.
2100 * opts-common.c (cmdline_handle_error): New function.
2101 (read_cmdline_option): Use it.
2102 (control_warning_option): Likewise. Add ARG argument.
2103 If non-NULL, decode it if needed and pass through
2104 to handle_generated_option. Handle CLVC_ENUM like
2106 * opts.c (common_handle_option): Adjust control_warning_option
2108 (enable_warning_as_error): Likewise.
2110 2015-12-08 Matthew Wahab <matthew.wahab@arm.com>
2112 * config/aarch64/aarch64-options-extensions.def: Remove
2113 AARCH64_FL_RDMA from "fp" and "simd". Remove "pan", "lor",
2115 * config/aarch64/aarch64.h (AARCH64_FL_PAN): Remove.
2116 (AARCH64_FL_LOR): Remove.
2117 (AARCH64_FL_RDMA): Remove.
2118 (AARCH64_FL_V8_1): New.
2119 (AARCH64_FL_FOR_AARCH8_1): Replace AARCH64_FL_PAN, AARCH64_FL_LOR
2120 and AARCH64_FL_RDMA with AARCH64_FL_V8_1.
2121 (AARCH64_ISA_RDMA): Replace AARCH64_FL_RDMA with AARCH64_FL_V8_1.
2122 * doc/invoke.texi (AArch64 -march): Rewrite initial paragraph and
2123 section on -march=native. Group descriptions of permitted
2124 architecture names together. Expand description of
2126 (AArch64 -mtune): Slightly rework section on -march=native.
2127 (AArch64 -mcpu): Slightly rework section on -march=native.
2128 (AArch64 Feature Modifiers): Remove "pan", "lor" and "rdma".
2129 State that -march=armv8.1-a enables "crc" and "lse".
2131 2015-12-08 Eric Botcazou <ebotcazou@adacore.com>
2133 * doc/invoke.texi (SPARC options): Fix typo.
2135 2015-12-08 Eric Botcazou <ebotcazou@adacore.com>
2137 * config/ia64/ia64.c (ia64_emit_probe_stack_range): Adjust.
2138 (output_probe_stack_range): Rotate the loop and simplify.
2140 2015-12-08 Uros Bizjak <ubizjak@gmail.com>
2142 * config/i386/i386.c (ix86_emit_swsqrtsf): Cleanup
2143 infinity filterning code.
2145 2015-12-08 Ilya Enkovich <enkovich.gnu@gmail.com>
2147 PR tree-optimization/68766
2148 * tree-vectorizer.c (vectorize_loops): Check for
2149 if-converted loops when debug counters are used.
2151 2015-12-07 DJ Delorie <dj@redhat.com>
2153 * config/rl78/constraints.md (Wfr): Change to be a non-memory
2155 * config/rl78/rl78-protos.h (rl78_one_far_p): Declare.
2156 * config/rl78/rl78.c (rl78_one_far_p): Define.
2157 * config/rl78/rl78-virt (movqi_virt): Fix far memory
2159 (movhi_virt): Likewise.
2160 (zero_extendqihi2_virt): Likewise.
2161 (extendqihi2_virt): Likewise.
2162 (add<mode>3_virt): Likewise.
2163 (sub<mode>3_virt): Likewise.
2164 (andqi3_virt): Likewise.
2165 (iorqi3_virt): Likewise.
2166 (xorqi3_virt): Likewise.
2167 * config/rl78/rl78-real.md (bf,br): Use long forms to avoid reloc
2168 overflow in large files.
2170 2015-12-07 Eric Botcazou <ebotcazou@adacore.com>
2173 * doc/invoke.texi (SPARC options): Document -mstd-struct-return.
2174 * config/sparc/sparc.c (sparc_struct_value_rtx): Minor tweaks.
2175 * config/sparc/sparc.h (CALL_REALLY_USED_REGISTERS): Define.
2176 * config/sparc/sparc.opt (mstd-struct-return): Accept negative.
2178 2015-12-07 Steve Ellcey <sellcey@imgtec.com>
2180 * reorg.c (optimize_skip): Do not put frame related instructions
2181 in annulled delay slots.
2182 (steal_delay_list_from_target): Ditto.
2183 (fill_slots_from_thread): Ditto.
2185 2015-12-07 Evandro Menezes <e.menezes@samsung.com>
2187 * config/aarch64/aarch64-cores.def: Use the Exynos M1 sched model.
2188 * config/aarch64/aarch64.md: Include "exynos-m1.md".
2189 * config/arm/arm.md: Likewise.
2190 * config/arm/exynos-m1.md: New file.
2192 2015-12-07 Jan Hubicka <hubicka@ucw.cz>
2194 * fold-const.c (operand_equal_p): Drop flag_strict_aliasing check.
2196 2015-12-07 Nathan Sidwell <nathan@acm.org>
2198 * config//nvptx/nvptx.c (write_return): New.
2199 (write_fn_proto, nvptx_declare_function_name): Call it.
2201 2015-12-07 Jan Hubicka <hubicka@ucw.cz>
2204 * symtab.c (ultimate_transparent_alias_target): New inline function.
2205 (symbol_table::assembler_names_equal_p): New method; break out from ...
2206 (symbol_table::decl_assembler_name_equal): ... here.
2207 (symbol_table::change_decl_assembler_name): Also update names and
2208 translation links of transparent aliases.
2209 (symtab_node::dump_base): Dump transparent_alias.
2210 (symtab_node::verify_base): Implement basic transparent alias
2212 (symtab_node::make_decl_local): Support localization of weakrefs;
2213 recurse to transparent aliases; set TREE_STATIC.
2214 (symtab_node::ultimate_alias_target_1): Handle visibility of
2215 transparent aliases.
2216 (symtab_node::resolve_alias): New parmaeter transparent; handle
2217 transparent aliases; recurse to aliases of aliases to fix comdat
2219 (symtab_node::get_partitioning_class): Handle transparent aliases.
2220 * ipa-visibility.c (cgraph_externally_visible_p,
2221 varpool_node::externally_visible_p): Visibility of transparent alias
2222 depends on its target.
2223 (function_and_variable_visibility): Do not tweak visibility of
2224 transparent laiases.
2225 (function_and_variable_visibility): Likewise.
2226 * ipa.c (symbol_table::remove_unreachable_nodes): Clear
2227 transparent_alias flag.
2228 * alias.c (cgraph_node::create_alias, cgraph_node::get_availability):
2229 Support transparent aliases.
2230 * cgraph.h (symtab_node): Update prototype of resolve_alias;
2231 add transparent_alias flag.
2232 (symbol_table: Add assembler_names_equal_p.
2233 (symtab_node::real_symbol_p): Skip transparent aliases.
2234 * cgraphunit.c (cgraph_node::reset): Reset transparent_alias flag.
2235 (handle_alias_pairs): Set transparent_alias for weakref.
2236 (cgraph_node::assemble_thunks_and_aliases): Do not asemble transparent
2238 * lto-cgraph.c (lto_output_node): When outputting same_comdat_group
2239 skip symbols not put into boundary; stream transparent_alias.
2240 (lto_output_varpool_node): Likewise.
2241 (input_overwrite_node, input_varpool_node): Stream transparent alias.
2242 * varpool.c (ctor_for_folding, varpool_node::get_availability,
2243 varpool_node::assemble_aliases,
2244 symbol_table::remove_unreferenced_decls): Handle transparent aliase.
2245 (varpool_node::create_alias): Set transparent_alias.
2247 2015-12-07 Eric Botcazou <ebotcazou@adacore.com>
2251 * cfgexpand.c (set_rtl): Always accept PARALLELs with BLKmode for
2252 SSA names based on RESULT_DECLs.
2253 * function.c (expand_function_start): Do not create BLKmode REGs
2254 for GIMPLE registers when coalescing is enabled.
2256 2015-12-07 Bernd Edlinger <bernd.edlinger@hotmail.de>
2258 * final.c (shorten_branches): Fix check for basic asm.
2259 * ipa-icf-gimple.c (func_checker::compare_gimple_asm): Add check for
2262 2015-12-07 Nathan Sidwell <nathan@acm.org>
2264 * config/nvptx/nvptx.c (nvptx_output_call_insn): Emit trap after no
2267 2015-12-07 David Malcolm <dmalcolm@redhat.com>
2269 * pretty-print.c (text_info::set_range): Rename to...
2270 (text_info::set_location): ...this, converting 2nd param
2271 from source_range to a location_t.
2272 * pretty-print.h (text_info::set_location): Convert
2273 from inline function to external definition.
2274 (text_info::set_range): Delete.
2276 2015-12-07 Nathan Sidwell <nathan@acm.org>
2278 * config/nvptx/nvptx.c (nvptx_assemble_decl_begin): Look inside
2279 complex and vector types. Cope with packed structs.
2281 2015-12-07 Kirill Yukhin <kirill.yukhin@intel.com>
2284 * config/i386/sse.md: Make 'v' alternative work on 'avx512f' ISA only.
2285 Force destination to 512 bits register.
2287 2015-12-07 Kirill Yukhin <kirill.yukhin@intel.com>
2290 * config/i386/sse.md (define_insn "kunpckhi"): Fix operands order.
2291 (define_insn "kunpcksi"): Ditto.
2292 (define_insn "kunpckdi"): Ditto.
2294 2015-12-06 Kaz Kojima <kkojima@gcc.gnu.org>
2296 * config/sh/sh.md (rsqrtsf2): Adjust for canonical form with unspec.
2298 2015-12-06 Victoria Stepanyan <victoria.stepanyan@amd.com>
2300 * common/config/i386/i386-common.c
2301 (OPTION_MASK_ISA_CLZERO_SET): New.
2302 (ix86_handle_option): Handle clzero.
2303 * config.gcc (i[34567]86-*-*): Add clzerointrin.h,
2304 (x86_64-*-*): Likewise.
2305 * config/i386/clzerointrin.h: New header.
2306 * config/i386/cpuid.h (bit_CLZERO): Define.
2307 * config/i386/driver-i386.c (host_detect_local_cpu): Detect
2309 * config/i386/i386.opt (clzero): New.
2310 * config/i386/i386-c.c: Define __CLZERO__ if needed.
2311 * config/i386/i386.c (ix86_target_string): Define -mclzero option.
2313 (ix86_option_override_internal): Handle new option.
2314 (processor_alias_table): Added PTA_CLZERO.
2315 (ix86_valid_target_attribute_inner_p): Add OPT_mclzero.
2316 (ix86_builtins): Add IX86_BUILTIN_CLZERO, IX86_BUILTIN_CLZERO.
2317 (ix86_expand_builtin): Handle IX86_BUILTIN_CLZERO and
2318 IX86_BUILTIN_CLZERO built-ins.
2319 * config/i386/i386.h (TARGET_CLZERO): New.
2320 * config/i386/i386.md (unspecv): Add UNSPEC_CLZERO.
2321 (clzero): New pattern.
2322 (clzero_<mode>): New pattern.
2323 * config/i386/x86intrin.h: Include clzerointrin.h.
2324 * doc/extend.texi: Document clzero builtins.
2325 * doc/invoke.texi: Document -mclzero option.
2327 2015-12-05 Jan Hubicka <hubicka@ucw.cz>
2329 * ipa-icf.c (sem_function::merge): Check that local_original exists.
2331 2015-12-05 David Edelsohn <dje.gcc@gmail.com>
2334 * config/rs6000/rs6000-protos.h (rs6000_emit_swsqrt): Rename and add
2336 * config/rs6000/rs6000.c (rs6000_emit_swsqrt): Rename. Add
2337 non-reciporcal path.
2338 * config/rs6000/rs6000.md (rsqrt<mode>2): Call new function name.
2339 (sqrt<mode>2): Replace define_insn with define_expand that may call
2342 2015-12-04 Aditya Kumar <aditya.k7@samsung.com>
2343 Sebastian Pop <s.pop@samsung.com>
2345 * graphite-isl-ast-to-gimple.c (translate_isl_ast_node_user):
2347 (get_rename_from_scev): Check that all the ops in an expression
2348 have their uses dominated by corresponding defs.
2350 2015-12-04 Aditya Kumar <aditya.k7@samsung.com>
2351 Sebastian Pop <s.pop@samsung.com>
2353 PR tree-optimization/68693
2354 * graphite-scop-detection.c (dot_all_sese): New
2355 (dot_all_scops_1): Renamed to dot_all_sese.
2356 (dot_all_scops): Removed.
2359 (scop_detection::get_nearest_dom_with_single_entry): Check that
2360 preds are from different loop levels.
2361 (scop_detection::get_nearest_pdom_with_single_exit): Check that
2362 succs are from different loop levels.
2363 (scop_detection::print_sese): Inlined.
2364 (scop_detection::print_edge): New.
2365 (scop_detection::merge_sese): Added dumps.
2366 * graphite.h: Add declarations.
2368 2015-12-04 James Greenhalgh <james.greenhalgh@arm.com>
2370 * config/aarch64/aarch64.md (add<mode>3_pluslong): Add register
2373 2015-12-04 Vladimir Makarov <vmakarov@redhat.com>
2375 PR rtl-optimization/68349
2376 * lra-eliminations.c (move_plus_up): New function.
2377 (lra_eliminate_regs_1): Use the function.
2379 2015-12-04 Nathan Sidwell <nathan@acm.org>
2381 * config/nvptx/nvptx.c (nvptx_assemble_decl_begin): New, replacing ...
2382 (init_output_initializer): ... this.
2383 (nvptx_output_aligned_decl, nvptx_asm_declare_constant_name,
2384 nvptx_declare_object_name, nvptx_assemble_undefined_decl): Use
2385 nvptx_assemble_decl_begin.
2387 2015-12-04 Dmitry Vyukov <dvyukov@google.com>
2389 * sancov.c: New file.
2390 * Makefile.in (OBJS): Add sancov.o.
2391 * invoke.texi (-fsanitize-coverage=trace-pc): Describe.
2392 * passes.def (sancov_pass): Add.
2393 * tree-pass.h (sancov_pass): Add.
2394 * common.opt (-fsanitize-coverage=trace-pc): Add.
2395 * sanitizer.def (BUILT_IN_SANITIZER_COV_TRACE_PC): Add.
2396 * builtins.def (DEF_SANITIZER_BUILTIN): Enable for
2397 flag_sanitize_coverage.
2399 2015-12-04 Eric Botcazou <ebotcazou@adacore.com>
2402 * config/arm/unspecs.md (unspec): Remove UNSPEC_PROBE_STACK_RANGE.
2403 (unspecv): Add VUNSPEC_PROBE_STACK_RANGE.
2404 * config/arm/arm.md (probe_stack_range): Adjust.
2405 * config/aarch64/aarch64.md (unspec): Remove UNSPEC_PROBE_STACK_RANGE.
2406 (unspecv): Add UNSPECV_PROBE_STACK_RANGE.
2407 (probe_stack_range_<PTR:mode>): Adjust.
2409 2015-12-04 David Malcolm <dmalcolm@redhat.com>
2411 * convert.c (convert_to_real_1): When converting from a
2412 REAL_TYPE, preserve the location of EXPR in the result.
2413 * tree.c (get_pure_location): Make non-static.
2414 (set_source_range): Return the resulting location_t.
2415 (make_location): New function.
2416 * tree.h (get_pure_location): New decl.
2417 (get_finish): New inline function.
2418 (set_source_range): Convert return type from void to location_t.
2419 (make_location): New decl.
2421 2015-12-04 Jakub Jelinek <jakub@redhat.com>
2424 * toplev.c (init_asm_output): Pass UNKNOWN_LOCATION instead of
2425 input_location to inform.
2426 (process_options): Use warning_at (UNKNOWN_LOCATION instead of
2427 warning ( and error_at (UNKNOWN_LOCATION instead of error (.
2428 Pass UNKNOWN_LOCATION instead of input_location to fatal_error.
2430 2015-12-04 Jan Hubicka <hubicka@ucw.cz>
2432 * ipa-inline.c (can_inline_edge_p) Use merged_comdat.
2433 * cgraphclones.c (cgraph_node::create_clone): Use merged_comdat.
2434 * cgraph.c (cgraph_node::dump): Dump merged_comdat.
2435 * ipa-icf.c (sem_function::merge): Drop merged_comdat when merging
2436 comdat and non-comdat.
2437 * cgraph.h (cgraph_node): Rename merged to merged_comdat.
2438 * ipa-inline-analysis.c (simple_edge_hints): Check both merged_comdat
2441 2015-12-04 Segher Boessenkool <segher@kernel.crashing.org>
2443 * config/rs6000/rs6000.md (cstore<mode>4_unsigned): Use gpc_reg_operand
2444 instead of register_operand. Remove empty constraints. Use std::swap.
2445 (cstore_si_as_di, cstore<mode>4_signed_imm,
2446 cstore<mode>4_unsigned_imm, cstore<mode>4 for GPR): Use
2447 gpc_reg_operand instead of register_operand.
2448 (cstore<mode>4 for FP): Use gpc_reg_operand instead of
2449 register_operand. Remove empty constraints.
2451 2015-12-04 Nick Clifton <nickc@redhat.com>
2453 * config.gcc (extra_gcc_objs): Define for MSP430.
2454 * common/config/msp430/msp430-common.c (msp430_handle_option):
2455 Pass both -mmcu and -mcpu on to the back end if they are both defined.
2456 * config/msp430/msp430.c (hwmult_name): New function.
2457 (msp430_option_override): If an unrecognised MCU name is
2458 detected only warn if the user has not provided suitable
2459 -mhwmult and -mcpu options. Use msp430_warn_mcu to control
2460 warning messages. Generate warnings about conflicts between
2461 -mmcu and -mcpu and -mhwmult options.
2462 If neither -mcpu nor -mmcu have been specified but -mhwmult=
2463 f5series has the select the 430X isa.
2464 (msp430_no_hwmult): If -mmcu has not been specified and
2465 msp430_hwmult_type is AUTO then return true.
2466 * config/msp430/msp430.h (EXTRA_SPEC_FUNCTIONS): Define.
2467 (LIB_SPEC): Add hardware multiply library selection.
2468 * config/msp430/t-msp430: Delete hardware multiply multilibs.
2469 Add rule to build driver-msp430.o
2470 * config/msp430/driver-msp430.c: New file.
2471 * config/msp430/msp430.opt (warn-mcu): New option.
2472 * doc/invoke.texi: Update description of -mhwmult=auto.
2473 Document -mwarn-mcu option.
2475 2015-12-04 Segher Boessenkool <segher&kernel.crashing.org>
2477 * config/rs6000/rs6000.md (cstore<mode>4_signed): New expander.
2478 (cstore<mode>4): Call it.
2480 2015-12-04 Jakub Jelinek <jakub@redhat.com>
2482 * tree-tailcall.c (find_tail_calls): Ignore GIMPLE_NOPs.
2484 PR tree-optimization/68680
2485 * calls.c (special_function_p): Return ECF_MAY_BE_ALLOCA for
2486 BUILT_IN_ALLOCA{,_WITH_ALIGN}. Don't check for __builtin_alloca
2489 PR tree-optimization/68671
2490 * tree-ssa-reassoc.c (maybe_optimize_range_tests): For basic
2491 blocks starting with the successor of first bb we've modified
2492 and ending with last_bb call reset_flow_sensitive_info_in_bb.
2494 2015-12-04 Jeff Law <law@redhat.com>
2496 * tree-ssa-reassoc.c (maybe_optimize_range_tests): Return boolean
2497 indicating if a gimple conditional was optimized to true/false.
2498 (reassociate_bb): Bubble up return value from
2499 maybe_optimize_range_tests.
2500 (do_reassoc): Similarly, but for reassociate_bb.
2501 (execute_reassoc): Return TODO_cleanup_cfg as needed.
2503 2015-12-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2505 * config/aarch64/aarch64.c (aarch64_override_options_internal):
2506 Do not alter target_flags due to TARGET_GENERAL_REGS_ONLY_P.
2507 * doc/invoke.texi (AArch64 options): Mention that -mgeneral-regs-only
2508 does not affect the assembler directives.
2510 2015-12-04 Dominik Vogt <vogt@linux.vnet.ibm.com>
2512 * config/s390/s390.c (s390_asm_file_start): Implement hook function to
2513 emit .machine and .machinemode to the top of the assembler file.
2514 (TARGET_ASM_FILE_START): Provide target hook.
2515 (s390_asm_output_machine_for_arch): Protect with
2516 HAVE_AS_MACHINE_MACHINEMODE instead of S390_USE_TARGET_ATTRIBUTE.
2518 2015-12-04 Dominik Vogt <vogt@linux.vnet.ibm.com>
2520 * config/s390/s390.opt (s390_arch_string): Remove.
2521 (s390_tune_string): Likewise.
2522 (s390_cost_pointer): Add Variable.
2523 (s390_tune_flags): Add TargetVariable.
2524 (s390_arch_flags, march=, mbackchain, mdebug, mesa, mhard-dfp),
2525 (mhard-float, mlong-double-128, mlong-double-64, mhtm, mvx),
2526 (mpacked-stack, msmall-exec, msoft-float, mstack-guard=, mstack-size=),
2527 (mtune=, mmvcle, mzvector, mzarch, mbranch-cost=, mwarn-dynamicstack),
2528 (mwarn-framesize=): Save option.
2529 (mno-stack-guard, mno-stack-guard): New option.
2530 (mwarn-dynamicstack): Allow mno-warn-dynamicstack.
2531 (mwarn-framesize=): Convert to UInteger (negative values are rejected
2533 * config/s390/s390-c.c (s390_cpu_cpp_builtins_internal): Split setting
2534 macros changeable through the GCC target pragma into a separate
2536 (s390_cpu_cpp_builtins): Likewise.
2537 (s390_pragma_target_parse): New function, implement GCC target pragma
2539 (s390_register_target_pragmas): Register s390_pragma_target_parse if
2541 * common/config/s390/s390-common.c (s390_handle_option):
2543 Move setting s390_arch_flags to s390.c.
2544 Remove s390_tune_flags.
2545 Allow 0 as argument to -mstack-size (switch to default value).
2546 Allow 0 as argument to -mstack-guard (switch off).
2547 Remove now unnecessary explicit parsing code for -mwarn-framesize.
2548 * config/s390/s390-protos.h (s390_handle_option): Export.
2549 (s390_valid_target_attribute_tree): Export.
2550 (s390_reset_previous_fndecl): Export.
2551 * config/s390/s390-builtins.def: Use new macro B_GROUP to mark the start
2552 and end of HTM and VX builtins.
2553 (s390_asm_output_function_prefix): Declare hook.
2554 (s390_asm_declare_function_size): Likewise.
2555 * config/s390/s390-builtins.h (B_GROUP): Use macro.
2556 * config/s390/s390-opts.h: Add comment about processor_type usage.
2557 * config/s390/s390.h (TARGET_CPU_IEEE_FLOAT_P, TARGET_CPU_ZARCH_P),
2558 (TARGET_CPU_LONG_DISPLACEMENT_P, TARGET_CPU_EXTIMM_P, TARGET_CPU_DFP_P),
2559 (TARGET_CPU_Z10_P, TARGET_CPU_Z196_P, TARGET_CPU_ZEC12_P),
2560 (TARGET_CPU_HTM_P, TARGET_CPU_Z13_P, TARGET_CPU_VX_P),
2561 (TARGET_HARD_FLOAT_P, TARGET_LONG_DISPLACEMENT_P, TARGET_EXTIMM_P),
2562 (TARGET_DFP_P, TARGET_Z10_P, TARGET_Z196_P, TARGET_ZEC12_P),
2563 (TARGET_HTM_P, TARGET_Z13_P, TARGET_VX_P, TARGET_CPU_EXTIMM),
2564 (TARGET_CPU_DFP, TARGET_CPU_Z10, TARGET_CPU_Z196, TARGET_CPU_ZEC12),
2565 (TARGET_CPU_HTM, TARGET_CPU_Z13, TARGET_LONG_DISPLACEMENT),
2566 (TARGET_EXTIMM, TARGET_DFP, TARGET_Z10, TARGET_Z196, TARGET_ZEC12),
2567 (TARGET_Z13, TARGET_VX, S390_USE_TARGET_ATTRIBUTE),
2568 (S390_USE_ARCHITECTURE_MODIFIERS, SWITCHABLE_TARGET),
2569 (ASM_DECLARE_FUNCTION_SIZE, ASM_OUTPUT_FUNCTION_PREFIX): Likewise.
2570 * config/s390/vecintrin.h: Use vector definitions even if __VEC__ is
2572 (vec_all_nan): Rewrite as macro using statement expressions to avoid
2573 that the vector keyword needs to be defined when including the file.
2574 (vec_all_numeric): Likewise.
2575 (vec_any_nan): Likewise.
2576 (vec_any_numeric): Likewise.
2577 * config/s390/s390.c (s390_previous_fndecl): New static variable.
2578 (s390_set_current_function): New function.
2579 (s390_cost): Wrapper macro to allow defining the cost table pointer in
2581 (processor_table): Table for march= and mtune= parsing.
2582 (s390_init_builtins): Enable all builtins and types unconditionally.
2583 (s390_expand_builtin): Generate an error message if builtin is not
2584 supported by current options.
2585 Correct an error message.
2586 (s390_function_specific_restore): New function to set s390_cost.
2587 (s390_asm_output_machine_for_arch): New function for emitting .machine
2588 and .machinmode directives to the assembler file.
2589 (s390_asm_output_function_prefix): Likewise.
2590 (s390_asm_declare_function_size): Likewise.
2591 (s390_asm_output_function_label): Add mdebug output for feature testing.
2592 (s390_option_override): Move implementation into internal function.
2593 (s390_option_override_internal): Likewise.
2594 Implement option overriding based on current options.
2595 (s390_valid_target_attribute_inner_p): New function implementing target
2597 (s390_valid_target_attribute_tree): Likewise.
2598 (s390_valid_target_attribute_p): Likewise.
2599 (s390_reset_previous_fndecl): Likewise.
2600 (s390_set_current_function): Likewise.
2601 (TARGET_SET_CURRENT_FUNCTION): Provide target hook function.
2602 (TARGET_OPTION_VALID_ATTRIBUTE_P): Likewise.
2603 (TARGET_OPTION_RESTORE): Likewise.
2604 * doc/extend.texi: S390: Document target attribute and pragma.
2605 * config.in: Regenerated.
2606 * configure: Regenerated.
2607 * configure.ac: S390: Check for .machinemode and .machine in gas.
2608 S390: Check for architecture modifiers support in gas.
2610 2015-12-04 Kirill Yukhin <kirill.yukhin@intel.com>
2612 * doc/extend.texi ("simd"): Describe new flags.
2614 2015-12-04 Ilya Enkovich <enkovich.gnu@gmail.com>
2616 * config/i386/sse.md (<avx512>_store<mode>_mask): Fix
2617 operand checked for alignment.
2619 2015-12-04 Nathan Sidwell <nathan@acm.org>
2621 * config/nvptx/nvptx.c (write_one_arg): Deal with prologue
2622 emission too. Change 'no_arg_types' to 'prototyped'.
2623 (write_fn_proto): Use write_one_arg for stdarg, static chain &
2625 (nvptx_declare_function_name): Use write_one_arg for prologue copies.
2627 2015-12-04 Richard Biener <rguenther@suse.de>
2629 * tree-ssa-sccvn.c (sccvn_dom_walker): Add unreachable_dom
2630 member and initialize it.
2631 (sccvn_dom_walker::after_dom_children): Reset unreachable_dom
2633 (sccvn_dom_walker::before_dom_children): If unreachable_dom
2634 is set BB is not reachable either. Set unreachable_dom
2635 if not set and BB is unreachable.
2637 2015-12-04 Richard Biener <rguenther@suse.de>
2639 * bitmap.c (bitmap_find_bit): Guard the bitmap descriptor
2640 query with GATHER_STATISTICS.
2642 2015-12-04 Eric Botcazou <ebotcazou@adacore.com>
2645 * gimplify.c (struct gimplify_ctx): Turn boolean fields into 1-bit
2646 fields, add keep_stack and reorder them.
2647 (gimplify_bind_expr): Save gimplify_ctxp->keep_stack on entry then
2648 set it to false. Do not insert a stack save/restore pair if it has
2649 been set to true by the gimplification of the statements.
2650 Restore it to the saved value on exit if it is still false.
2651 (gimplify_vla_decl): Do not set gimplify_ctxp->save_stack here.
2652 (gimplify_call_expr) <BUILT_IN_ALLOCA[_WITH_ALIGN]>: New case. Set
2653 either save_stack or keep_stack depending on CALL_ALLOCA_FOR_VAR_P.
2654 * doc/extend.texi (Variable Length): Document new behavior.
2655 * doc/generic.texi (Blocks): Document new handling of VLAs.
2657 2015-12-04 Eric Botcazou <ebotcazou@adacore.com>
2658 Tristan Gingold <gingold@adacore.com>
2661 * config/aarch64/aarch64-protos.h (aarch64_output_probe_stack-range):
2663 * config/aarch64/aarch64.md: Declare UNSPECV_BLOCKAGE and
2664 UNSPEC_PROBE_STACK_RANGE.
2665 (blockage): New instruction.
2666 (probe_stack_range_<PTR:mode>): Likewise.
2667 * config/aarch64/aarch64.c (aarch64_emit_probe_stack_range): New
2669 (aarch64_output_probe_stack_range): Likewise.
2670 (aarch64_expand_prologue): Invoke aarch64_emit_probe_stack_range if
2671 static builtin stack checking is enabled.
2672 * config/aarch64/aarch64-linux.h (STACK_CHECK_STATIC_BUILTIN):
2675 2015-12-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2678 * config/arm/arm.md (*call_mem): Delete pattern.
2679 (*call_value_mem): Likewise.
2680 * config/arm/arm.c (output_call_mem): Delete.
2681 * config/arm/arm-protos.h (output_call_mem): Delete prototype.
2683 2015-12-04 Bin Cheng <bin.cheng@arm.com>
2685 * config/aarch64/atomics.md (atomic_store<mode>): Use predicate
2686 aarch64_sync_memory_operand.
2688 2015-12-04 Jakub Jelinek <jakub@redhat.com>
2691 * config/i386/i386.c (canonicalize_vector_int_perm): New function.
2692 (expand_vec_perm_1): Use it and recurse if everything else
2693 failed. Use nd.perm instead of perm2.
2694 (expand_vec_perm_even_odd_1): If testing_p, use gen_raw_REG
2695 instead of gen_lowpart for the target.
2696 (ix86_expand_vec_perm_const_1): Use canonicalize_vector_int_perm
2697 and recurse if everything else failed.
2699 2015-12-04 Richard Biener <rguenther@suse.de>
2702 * builtins.c (get_pointer_alignment_1): Take care of byte to
2703 bit alignment computation overflow.
2705 2015-12-04 Richard Biener <rguenther@suse.de>
2708 * match.pd: Guard ~X cmp ~Y -> Y cmp X and the variant with
2709 a constant with single_use.
2711 2015-12-04 Bin Cheng <bin.cheng@arm.com>
2712 Jiong Wang <jiong.wang@arm.com>
2714 * config/aarch64/aarch64.c (aarch64_legitimize_address): legitimize
2715 address expressions like Ra + Rb + CONST and Ra + Rb<<SCALE + CONST.
2717 2015-12-03 Jan Hubicka <hubicka@ucw.cz>
2719 * alias.c (alias_set_subset_of, alias_sets_must_conflict_p):
2720 Add short circuit for !flag_strict_aliasing
2721 (get_alias_set): Remove flag_strict_aliasing check.
2722 (new_alias_set): Likewise.
2724 2015-12-03 Evandro Menezes <e.menezes@samsung.com>
2726 * config/aarch64/aarch64-cores.def: Use the Exynos M1 cost model.
2727 * config/aarch64/aarch64.c (exynosm1_addrcost_table): New variable.
2728 (exynosm1_regmove_cost): Likewise.
2729 (exynosm1_vector_cost): Likewise.
2730 (exynosm1_tunings): Likewise.
2731 * config/arm/aarch-cost-tables.h (exynosm1_extra_costs): Likewise.
2732 * config/arm/arm.c (arm_exynos_m1_tune): Likewise.
2734 2015-12-03 Alan Lawrence <alan.lawrence@arm.com>
2735 Richard Biener <richard.guenther@gmail.com>
2737 * cfgexpand.c (pass_expand::execute): Replace call to
2738 redirect_edge_var_map_destroy with redirect_edge_var_map_empty.
2739 * tree-ssa.c (delete_tree_ssa): Likewise.
2740 * function.c (set_cfun): Call redirect_edge_var_map_empty.
2741 * passes.c (execute_one_ipa_transform_pass, execute_one_pass): Likewise.
2742 * tree-ssa.h (redirect_edge_var_map_destroy): Remove.
2743 (redirect_edge_var_map_empty): New.
2744 * tree-ssa.c (redirect_edge_var_map_destroy): Remove.
2745 (redirect_edge_var_map_empty): New.
2747 2015-12-03 Jeff Law <law@redhat.com>
2749 PR tree-optimization/68599
2750 * loop-init.c (rtl_loop_init): Set LOOPS_HAVE_RECORDED_EXITS
2751 in call to loop_optimizer_init.
2752 * loop-iv.c (get_simple_loop_desc): Only allow unsafe loop
2753 optimization to drop the assumptions/infinite notations if
2754 the loop has a single exit.
2756 2015-12-03 Richard Sandiford <richard.sandiford@arm.com>
2758 * doc/md.texi (vec_load_lanes@var{m}@var{n}): Document that
2759 the pattern cannot FAIL.
2760 (vec_store_lanes@var{m}@var{n}): Likewise.
2761 (maskload@var{m}@var{n}): Likewise.
2762 (maskstore@var{m}@var{n}): Likewise. Fix a cut-&-paste error
2763 in the name of the pattern.
2764 (rsqrt@var{m}2): Document that mode m must be a scalar or vector
2765 floating-point mode and that all operands have that mode.
2766 (fmin@var{m}3, fmax@var{m}3): Likewise. Document that the
2767 pattern cannot FAIL.
2768 (sqrt@var{m}2): Document that mode m must be a scalar or vector
2769 floating-point mode, that all operands have that mode, and that
2770 the patterns cannot FAIL. Remove previous documentation referring
2771 to @code{double} and @code{float}.
2772 (fmod@var{m}3, remainder@var{m}3, cos@var{m}2, sin@var{m}2)
2773 (sincos@var{m}3, log@var{m}2, pow@var{m}3, atan2@var{m}3)
2774 (copysign@var{m}3): Likewise.
2775 (exp@var{m}2): Likewise. Explicitly state the base.
2776 (floor@var{m}2): As for sqrt@var{m}2, but also specify the operands.
2777 (btrunc@var{m}2, rint@var{m}2): Likewise.
2778 (round@var{m}2): Likewise. Fix incorrect description of rounding
2780 (ceil@var{m}2): As for round@var{m}2.
2781 (nearbyint@var{m}2): As for floor@var{m}2, but also mention that
2782 the instruction must not raise an inexact condition.
2783 (scalb@var{m}3): Document previously-undocumented pattern
2784 (ldexp@var{m}3, tan@var{m}2, asin@var{m}2, acos@var{m}2)
2785 (atan@var{m}2, expm1@var{m}2, exp10@var{m}2, exp2@var{m}2)
2786 (log1p@var{m}2, log10@var{m}2, log2@var{m}2, logb@var{m}2)
2787 (significand@var{m}2): Likewise.
2788 (ffs@var{m}2): Fix the description of the modes, so that operand 1 has
2789 mode m and operand 0 is defined more freely. Document that @var{m}
2790 can be a scalar or vector integer mode and that the pattern is not
2792 (clz@var{m}2, ctz@var{m}2, popcount@var{m}2, parity@var{m}2): Likewise.
2793 (clrsb@var{m}2): Likewise, except that the description of the
2794 mode was missing in this case.
2796 2015-12-03 Richard Sandiford <richard.sandiford@arm.com>
2798 * internal-fn.def (RSQRT): New function.
2799 * optabs.def (rsqrt_optab): New optab.
2800 * doc/md.texi (rsqrtM2): Document.
2801 * target.def (builtin_reciprocal): Replace gcall argument with
2802 a function decl. Restrict hook to machine functions.
2803 * doc/tm.texi: Regenerate.
2804 * targhooks.h (default_builtin_reciprocal): Update prototype.
2805 * targhooks.c (default_builtin_reciprocal): Likewise.
2806 * tree-ssa-math-opts.c: Include internal-fn.h.
2807 (internal_fn_reciprocal): New function.
2808 (pass_cse_reciprocals::execute): Call it, and build a call to an
2809 internal function on success. Only call targetm.builtin_reciprocal
2810 for machine functions.
2811 * config/aarch64/aarch64-protos.h (aarch64_builtin_rsqrt): Remove
2813 * config/aarch64/aarch64-builtins.c (aarch64_expand_builtin_rsqrt):
2814 Rename aarch64_rsqrt_<mode>2 to rsqrt<mode>2.
2815 (aarch64_builtin_rsqrt): Remove md_fn argument and only handle
2817 * config/aarch64/aarch64.c (use_rsqrt_p): New function.
2818 (aarch64_builtin_reciprocal): Replace gcall argument with a
2819 function decl. Use use_rsqrt_p. Remove optimize_size check.
2820 Only handle machine functions. Update call to aarch64_builtin_rsqrt.
2821 (aarch64_optab_supported_p): New function.
2822 (TARGET_OPTAB_SUPPORTED_P): Define.
2823 * config/aarch64/aarch64-simd.md (aarch64_rsqrt_<mode>2): Rename to...
2824 (rsqrt<mode>2): ...this.
2825 * config/i386/i386.c (use_rsqrt_p): New function.
2826 (ix86_builtin_reciprocal): Replace gcall argument with a
2827 function decl. Use use_rsqrt_p. Remove optimize_insn_for_size_p
2828 check. Only handle machine functions.
2829 (ix86_optab_supported_p): Handle rsqrt_optab.
2830 * config/rs6000/rs6000.c (TARGET_OPTAB_SUPPORTED_P): Define.
2831 (rs6000_builtin_reciprocal): Replace gcall argument with a
2832 function decl. Remove optimize_insn_for_size_p check.
2833 Only handle machine functions.
2834 (rs6000_optab_supported_p): New function.
2836 2015-12-03 Bernd Schmidt <bschmidt@redhat.com>
2840 * config/i386/i386.c (ix86_mitigate_rop): Don't call
2841 compute_bb_for_insn again. Call df_insn_rescan_all.
2842 * config/i386/i386.md (set_got_rex64): Override modrm_class.
2844 * regrename.c (build_def_use): Ignore stack regs if regstack_completed.
2846 2015-12-03 Nathan Sidwell <nathan@acm.org>
2848 * config/nvptx/nvptx-protos.h (npvptx_section_from_addr_space): Delete.
2849 * config/nvptx/nvptx.c (enum nvptx_data_area): New.
2850 (SYMBOL_DATA_AREA, SET_SYMBOL_DATA_AREA): New defines.
2851 (nvptx_option_override): Set data ares for worker vars.
2852 (nvptx_addr_space_from_sym): Delete.
2853 (nvptx_encode_section_info): New.
2854 (section_for_sym, section_for_decl): New.
2855 (nvptx_maybe_convert_symbolic_operand): Get data area from symbol flags.
2856 (nvptx_section_from_addr_space): Delete.
2857 (nvptx_section_for_decl): Delete.
2858 (nvptx_output_aligned, nvptx_declare_object_name,
2859 nvptx_assemble_undefined_decl): Use section_for_decl, remove
2861 (nvptx_print_operand): Add 'D', adjust 'A'.
2862 (nvptx_expand_worker_addr): Adjust unspec generation.
2863 (TARGET_ENCODE_SECTION_INFO): Override.
2864 * config/nvptx/nvptx.h (ADDR_SPACE_GLOBAL, ADDR_SPACE_SHARED,
2865 ADDR_SPACE_CONST, ADDR_SPACE_LOCAL, ADDR_SPACE_PARAM): Delete.
2866 * config/nvptx/nvptx.md (UNSPEC_FROM_GLOBAL, UNSPEC_FROM_LOCAL,
2867 UNSPEC_FROM_PARAM, UNSPEC_FROM_SHARED, UNSPEC_FROM_CONST,
2868 UNSPEC_TO_GLOBAL, UNSPEC_TO_LOCAL, UNSPEC_TO_PARAM,
2869 UNSPEC_TO_SHARED, UNSPEC_TO_CONST): Delete.
2870 (UNSPEC_TO_GENERIC): New.
2871 (nvptx_register_or_symbolic_operand): Delete.
2872 (cvt_code, cvt_name, cvt_str): Delete.
2873 (convaddr_<cvt_name><mode> [P]): Delete.
2874 (convaddr_<mode> [P]): New.
2876 2015-12-03 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2878 PR rtl-optimization/68624
2879 * ifcvt.c (noce_try_cmove_arith): Check clobbers of temp regs in both
2880 blocks if they exist and simplify the logic choosing the order to emit
2883 2015-12-03 Richard Biener <rguenther@suse.de>
2885 PR tree-optimization/66051
2886 * tree-vect-slp.c (vect_build_slp_tree_1): Remove restriction
2887 on load group size. Do not pass in vectorization_factor.
2888 (vect_transform_slp_perm_load): Do not require any permute support.
2889 (vect_build_slp_tree): Do not pass in vectorization factor.
2890 (vect_analyze_slp_instance): Do not compute vectorization
2891 factor estimate. Use vector size instead of vectorization factor
2892 estimate to split store groups for BB vectorization.
2894 2015-12-03 Ilya Enkovich <enkovich.gnu@gmail.com>
2896 * cfgexpand.c (expand_gimple_stmt_1): Return statement with
2897 DECL as return value is allowed to have NULL bounds.
2899 2015-12-03 Tom de Vries <tom@codesourcery.com>
2901 * graphite-isl-ast-to-gimple.c (binary_op_to_tree)
2902 (gcc_expression_from_isl_expr_op): Guard isl_ast_op_zdiv_r usage with
2903 HAVE_ISL_OPTIONS_SET_SCHEDULE_SERIALIZE_SCCS.
2905 2015-12-03 Richard Biener <rguenther@suse.de>
2907 PR tree-optimization/67800
2908 PR tree-optimization/68333
2909 * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Restore
2910 restriction to reduction contexts but allow SLP reductions as well.
2911 (vect_recog_sad_pattern): Likewise.
2912 (vect_recog_widen_sum_pattern): Likewise.
2914 2015-12-03 Richard Biener <rguenther@suse.de>
2916 PR tree-optimization/68639
2917 * tree-vect-data-refs.c (dr_group_sort_cmp): Split groups
2918 belonging to different loops.
2919 (vect_analyze_data_ref_accesses): Likewise.
2921 2015-12-02 Kirill Yukhin <kirill.yukhin@intel.com>
2923 * config/i386/sse.md (define_insn "vec_extract_hi_<mode>_maskm"):
2924 Remove "prefix_extra".
2925 (define_insn "vec_extract_hi_<mode>_mask"): New.
2926 (define_insn "vec_extract_hi_<mode>"): Remove masking.
2928 2015-12-02 Jan Hubicka <hubicka@ucw.cz>
2930 * ipa-pure-const.c (ignore_edge_for_pure_const): New function.
2931 (propagate_pure_const): Use it; fix comments and optimize loops.
2933 2015-12-02 Jan Hubicka <hubicka@ucw.cz>
2935 * ipa-pure-const.c (ignore_edge): Rename to ...
2936 (ignore_edge_for_nothrow) ... this one; also ignore eges to
2937 interposable functions or ones that can not throw.
2938 (propagate_nothrow): Fix handling of availability.
2940 2015-12-02 Jan Hubicka <hubicka@ucw.cz>
2943 * cgraphunit.c (cgraph_node::analyze): Set can_throw_external.
2945 2015-12-02 Aditya Kumar <aditya.k7@samsung.com>
2946 Sebastian Pop <s.pop@samsung.com>
2948 * graphite-isl-ast-to-gimple.c (binary_op_to_tree): Handle
2950 (gcc_expression_from_isl_expr_op): Same.
2952 2015-12-02 Aditya Kumar <aditya.k7@samsung.com>
2953 Sebastian Pop <s.pop@samsung.com>
2955 * graphite-isl-ast-to-gimple.c (copy_bb_and_scalar_dependences): Check
2956 that insertion point is still in the region.
2958 2015-12-02 Aditya Kumar <aditya.k7@samsung.com>
2959 Sebastian Pop <s.pop@samsung.com>
2961 PR tree-optimization/68550
2962 * graphite-isl-ast-to-gimple.c (copy_loop_phi_nodes): Add dump.
2963 (copy_bb_and_scalar_dependences): Do not code generate loop peeled
2966 2015-12-02 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
2968 * configure.ac: Check assembler support for R_PPC64_ENTRY relocation.
2969 * configure: Regenerate.
2970 * config.in: Regenerate.
2971 * config/rs6000/rs6000.c (rs6000_global_entry_point_needed_p): New
2973 (rs6000_output_function_prologue): Use it instead of checking
2974 cfun->machine->r2_setup_needed. Use internal labels instead of
2975 GNU as local label extension. Handle ELFv2 large code model.
2976 (rs6000_output_mi_thunk): Do not set cfun->machine->r2_setup_needed.
2977 (rs6000_elf_declare_function_name): Handle ELFv2 large code model.
2979 2015-12-02 Jakub Jelinek <jakub@redhat.com>
2982 * optabs.c (expand_doubleword_popcount, expand_doubleword_parity):
2984 (expand_unop): Use them.
2986 2015-12-02 Marek Polacek <polacek@redhat.com>
2989 * tree.c (nonnull_arg_p): Allow OFFSET_TYPE.
2991 2015-12-02 Nathan Sidwell <nathan@acm.org>
2993 * config/nvptx/nvptx.c (enum nvptx_shuffle_kind): New. Absorb
2995 (nvptx_gen_shuffle, nvptx_print_operand, nvptx_expand_shuffle): Adjust.
2997 2015-12-02 Aditya Kumar <aditya.k7@samsung.com>
2998 Sebastian Pop <s.pop@samsung.com>
3000 * graphite-dependences.c (scop_get_reads): Add extra dumps.
3001 (scop_get_must_writes): Same.
3002 (scop_get_may_writes): Same.
3003 (compute_deps): Same.
3004 * graphite-sese-to-poly.c (bounds_are_valid): New.
3005 (pdr_add_data_dimensions): Call bounds_are_valid.
3007 2015-12-02 Aditya Kumar <aditya.k7@samsung.com>
3008 Sebastian Pop <s.pop@samsung.com>
3010 * common.opt (flag_loop_optimize_isl): Renamed flag_loop_nest_optimize.
3011 * graphite-poly.c (apply_poly_transforms): Same.
3012 * graphite.c (gate_graphite_transforms): Same.
3013 * toplev.c (process_options): Same.
3015 2015-12-02 Eric Botcazou <ebotcazou@adacore.com>
3017 * config/mips/mips.c (mips_emit_probe_stack_range): Adjust.
3018 (mips_output_probe_stack_range): Rotate the loop and simplify.
3020 2015-12-02 David Sherwood <david.sherwood@arm.com>
3022 * config/aarch64/aarch64.md: New pattern.
3023 * config/aarch64/aarch64-simd.md: Likewise.
3024 * config/aarch64/iterators.md: New unspecs, iterators.
3026 2015-12-02 Pierre-Marie de Rodat <derodat@adacore.com>
3028 * dwarf2out.c (dwar2out_var_location): In addition to notes,
3029 process indirect calls whose target is compile-time known.
3030 Enhance pattern matching to get the SYMBOL_REF they embed.
3031 (gen_subprogram_die): Handle such calls.
3032 * final.c (final_scan_insn): For call instructions, invoke the
3033 var_location debug hook only after the call has been emitted.
3035 2015-12-02 Tom de Vries <tom@codesourcery.com>
3037 * gimplify.c (enum gimplify_omp_var_data): Add enum value
3039 (oacc_default_clause): Fix default for scalars in oacc kernels.
3040 (gimplify_adjust_omp_clauses_1): Handle GOVD_MAP_FORCE.
3042 2015-12-02 Tom de Vries <tom@codesourcery.com>
3044 * omp-low.c (install_var_field, scan_sharing_clauses): Add and handle
3045 parameter base_pointers_restrict.
3046 (omp_target_base_pointers_restrict_p): New function.
3047 (scan_omp_target): Call scan_sharing_clauses with
3048 base_pointers_restrict arg.
3050 2015-12-02 Nathan Sidwell <nathan@acm.org>
3052 * config/nvptx/nvptx-protos.h (nvptx_output_mov_insn): Declare.
3053 (nvptx_underlying_object_mode): Delete.
3054 * config/nvptx/nvptx.c (nvptx_underlying_object_mode): Delete.
3056 (nvptx_declare_function_name): Use output_reg. Remove punning buffer.
3057 (nvptx_output_mov_insn): New.
3058 (nvptx_print_operand): Separate SUBREG handling, remove 'f' case,
3059 Use output_reg. Merge 't' and 'u' handling.
3060 * config/nvptx/nvptx.h (NVPTX_PUNNING_BUFFER_REGNUM): Delete.
3061 (struct machine_function): Remvoe punning_buffer_size.
3062 (REGISTER_NAMES): Remove %punbuffer.
3063 * config/nvptx/nvptx.md (UNSPEC_CPLX_LOWPART,
3064 UNSPEC_CPLX_HIGHPART): Delete.
3065 (*mov<mode>_insn [QHSDIM): Remove unnecessary constraints, use
3066 nvptx_output_mov_insn.
3067 (*mov<mode>_insn [SDFM): Reorder constraints to match integer moc.
3068 Use nvptx_output_mov_insn.
3069 (highpartscsf2, set_highpartscsf2, lowpartscsf2, set_lowpartscsf2):
3071 (mov<mode> [SDCM]): Delete.
3073 2015-12-02 Richard Biener <rguenther@suse.de>
3075 * tree.h (tree_invariant_p): Declare.
3076 * tree.c (tree_invariant_p): Export.
3077 * genmatch.c (dt_simplify::gen_1): For GENERIC code-gen never
3078 create SAVE_EXPRs but reject patterns if we would need to.
3080 2015-12-02 Tom de Vries <tom@codesourcery.com>
3082 * tree-ssa-structalias.c (find_func_aliases_for_builtin_call)
3083 (find_func_clobbers, ipa_pta_execute): Handle BUILT_IN_GOACC_PARALLEL.
3085 2015-12-02 Segher Boessenkool <segher@kernel.crashing.org>
3087 * config/rs6000/rs6000.md (cstore_si_as_di): New expander.
3088 (cstore<mode>4): Use it.
3090 2015-12-02 Richard Biener <rguenther@suse.de>
3092 PR tree-optimization/68625
3093 * tree-cfgcleanup.c (cleanup_tree_cfg_bb): Do not call
3094 cleanup_control_flow_bb.
3095 (cleanup_tree_cfg_1): First perform cleanup_control_flow_bb
3096 on all BBs, then cleanup_tree_cfg_bb and finally iterate
3097 over the worklist doing both.
3099 2015-12-02 Richard Sandiford <richard.sandiford@arm.com>
3101 PR tree-optimization/68432
3102 * coretypes.h (optimization_type): New enum.
3103 * doc/tm.texi.in (TARGET_OPTAB_SUPPORTED_P): New hook.
3104 * doc/tm.texi: Regenerate.
3105 * target.def (optab_supported_p): New hook.
3106 * targhooks.h (default_optab_supported_p): Declare.
3107 * targhooks.c (default_optab_supported_p): New function.
3108 * predict.h (function_optimization_type): Declare.
3109 (bb_optimization_type): Likewise.
3110 * predict.c (function_optimization_type): New function.
3111 (bb_optimization_type): Likewise.
3112 * optabs-query.h (convert_optab_handler): Define an overload
3113 that takes an optimization type.
3114 (direct_optab_handler): Likewise.
3115 * optabs-query.c (convert_optab_handler): Likewise.
3116 (direct_optab_handler): Likewise.
3117 * internal-fn.h (direct_internal_fn_supported_p): Take an
3118 optimization_type argument.
3119 * internal-fn.c (direct_optab_supported_p): Likewise.
3120 (multi_vector_optab_supported_p): Likewise.
3121 (direct_internal_fn_supported_p): Likewise.
3122 * builtins.c (replacement_internal_fn): Update call to
3123 direct_internal_fn_supported_p.
3124 * gimple-match-head.c (build_call_internal): Likewise.
3125 * tree-vect-patterns.c (vect_recog_pow_pattern): Likewise.
3126 * tree-vect-stmts.c (vectorizable_internal_function): Likewise.
3127 * tree.c (maybe_build_call_expr_loc): Likewise.
3128 * config/i386/i386.c (ix86_optab_supported_p): New function.
3129 (TARGET_OPTAB_SUPPORTED_P): Define.
3130 * config/i386/i386.md (asinxf2): Remove optimize_insn_for_size_p check.
3131 (asin<mode>2, acosxf2, acos<mode>2, log1pxf2, log1p<mode>2)
3132 (expNcorexf3, expxf2, exp<mode>2, exp10xf2, exp10<mode>2, exp2xf2)
3133 (exp2<mode>2, expm1xf2, expm1<mode>2, ldexpxf3, ldexp<mode>3)
3134 (scalbxf3, scalb<mode>3, rint<mode>2, round<mode>2)
3135 (<rounding_insn>xf2, <rounding_insn><mode>2): Likewise.
3137 2015-12-02 Richard Sandiford <richard.sandiford@arm.com>
3139 * Makefile.in (GENSUPPORT_H): New macro.
3140 (build/gensupport.o, build/read-rtl.o, build/genattr.o)
3141 (build/genattr-common.o, build/genattrtab.o, build/genautomata.o)
3142 (build/gencodes.o, build/genconditions.o, build/genconfig.o)
3143 (build/genconstants.o, build/genextract.o, build/genflags.o)
3144 (build/gentarget-def.o): Use it.
3145 (build/genemit.o): Likewise. Depend on internal-fn.def.
3146 * genopinit.c: Move block comment to optabs.def.
3147 (optab_tag, optab_def): Move to gensupport.h
3148 (pattern): Likewise, renaming to optab_pattern.
3149 (match_pattern): Move to gensupport.c
3150 (gen_insn): Use find_optab.
3151 (patterns, pattern_cmp): Replace pattern with optab_pattern.
3152 (main): Likewise. Use num_optabs.
3153 * optabs.def: Add comment that was previously in genopinit.c.
3154 * gensupport.h (optab_tag): Moved from genopinit.c
3155 (optab_def): Likewise, expanding commentary.
3156 (optab_pattern): Likewise, after renaming from pattern.
3157 (optabs, num_optabs, find_optab): Declare.
3158 * gensupport.c (optabs): Moved from genopinit.c.
3159 (num_optabs): New variable.
3160 (match_pattern): Moved from genopinit.c.
3161 (find_optab): New function, extracted from genopinit.c:gen_insn.
3162 * genemit.c (nofail_optabs): New variable.
3163 (emit_c_code): New function.
3164 (gen_expand): Check whether the instruction is an optab that isn't
3165 allowed to fail. Call emit_c_code.
3166 (gen_split): Call emit_c_code here too.
3167 (main): Initialize nofail_optabs. Don't emit FAIL and DONE here.
3169 2015-12-02 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
3171 * config/s390/predicates.md (const_mask_operand): New predicate.
3172 * config/s390/s390-builtins.def: Set a smaller bitmask
3174 * config/s390/vector.md: Change predicate from immediate_operand
3175 to either const_int_operand or const_mask_operand. Add special
3176 insn conditions on patterns which have to exclude certain values.
3177 * config/s390/vx-builtins.md: Likewise.
3179 2015-12-02 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
3181 * config/s390/vector.md ("*vec_set<mode>"): Change shift count
3184 2015-12-02 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
3186 * config/s390/s390-builtin-types.def: New builtin types added.
3187 * config/s390/s390-builtins.def: Add s390_vec_splat_* definitions.
3188 * config/s390/s390.c (s390_expand_builtin): Always truncate
3189 constants to the mode in the pattern.
3190 * config/s390/vecintrin.h: Let the vec_splat_* macros point to the
3191 respective builtin __builtin_s390_vec_splat_*.
3193 2015-12-02 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
3195 * config/s390/s390-builtin-types.def: Sort builtin types.
3197 2015-12-02 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
3199 * config/s390/s390-c.c (s390_get_vstring_flags): Invert the
3200 condition for the RT flag.
3202 2015-12-02 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
3204 * config/s390/constraints.md ("jKK"): New constraint.
3205 * config/s390/s390.c (tm-constrs.h): Include for
3206 satisfies_constraint_*.
3207 (s390_legitimate_constant_p): Allow jKK constants. Use
3208 satisfies_constraint_* also for the others.
3209 (legitimate_reload_vector_constant_p): Likewise.
3210 (print_operand): Allow h output modifier on vectors.
3211 * config/s390/vector.md ("mov<mode>"): Add vrepi.
3213 2015-12-02 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
3215 * config/s390/vector.md ("*vec_splats<mode>"): Fix constraint
3218 2015-12-02 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
3220 * config/s390/s390.md ("bswap<mode>2"): Add support for strv and strvg.
3221 ("bswaphi2"): New pattern.
3222 New splitter for HI reg-reg bswap.
3224 2015-11-27 Jiri Engelthaler <engycz@gmail.com>
3227 * opts-common.c (prune_options): Don't ignore -fdiagnostics-color
3228 if it is the first parameter.
3230 2015-12-01 Richard Sandiford <richard.sandiford@arm.com>
3232 PR tree-optimization/68577
3233 * tree-vect-stmts.c (simple_integer_narrowing): New function.
3234 (vectorizable_call): Restrict internal function handling
3235 to NONE and NARROW cases, using simple_integer_narrowing
3236 to test for the latter. Add cost of narrowing operation
3237 and insert it where necessary.
3239 2015-12-01 Andreas Tobler <andreast@gcc.gnu.org>
3241 * config/rs6000/freebsd64.h (ELFv2_ABI_CHECK): Add new macro.
3242 (SUBSUBTARGET_OVERRIDE_OPTIONS): Use it to decide whether to set
3243 rs6000_current_abi to ABI_AIX or ABI_ELFv2.
3245 2015-12-01 Nathan Sidwell <nathan@acm.org>
3247 * config/nvptx/nvptx-protos.h (nvptx_output_aligned_decl): Declare.
3248 * config/nvptx/nvptx.h (ASM_OUTPUT_ALIGNED_DECL_COMMON,
3249 ASM_OUTPUT_ALIGNED_DECL_LOCAL): Forward to nvptx_output_aligned_decl.
3250 * config/nvptx/nvptx.c (write_fn_marker, write_var_marker): New.
3251 (write_fn_proto, write_fn_proto_from_insn): Call write_fn_marker.
3252 (init_output_initializer): Call write_var_marker.
3253 (nvptx_output_aligned_decl): New.
3254 (nvptx_assemble_undefined_decl, nvptx_file_end): Call write_var_marker.
3256 2015-12-01 Jan Hubicka <hubicka@ucw.cz>
3258 * c-common.c (parse_optimize_options): Do not silently ignore
3259 -fstrict-aliasing changes.
3261 2015-12-01 Jan Hubicka <hubicka@ucw.cz>
3263 * lto-streamer-out.c (hash_tree): Do not stream TYPE_ALIAS_SET.
3264 * tree-streamer-out.c (pack_ts_type_common_value_fields): Do not
3265 stream TYPE_ALIAS_SET.
3266 * tree-streamer-in.c (unpack_ts_type_common_value_fields): Do not
3267 stream TYPE_ALIAS_SET.
3269 2015-12-01 Nathan Sidwell <nathan@acm.org>
3271 * config/nvptx/nvptx.c (nvptx_function_arg_advance): Don't
3274 2015-12-01 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
3276 * config/rs6000/rs6000.c (const_load_sequence_p): Handle extra
3277 indirection for large and small code models.
3278 (adjust_vperm): Likewise.
3280 2015-12-01 Julian Brown <julian@codesourcery.com>
3281 Cesar Philippidis <cesar@codesourcery.com>
3282 James Norris <James_Norris@mentor.com>
3284 * gimple-pretty-print.c (dump_gimple_omp_target): Add host_data support.
3285 * gimple.h (gf_mask): Add GF_OMP_TARGET_KIND_OACC_HOST_DATA.
3286 (is_gimple_omp_oacc): Add support for above.
3287 * gimplify.c (omp_region_type): Add ORT_ACC_HOST_DATA.
3288 (omp_notice_variable): Diagnose undefined implicit uses of
3289 use_device variables in offloaded regions.
3290 (gimplify_scan_omp_clauses): Add host_data, use_device
3291 support. Diagnose undefined mapping of use_device variables in
3293 (gimplify_omp_workshare): Add host_data support.
3294 (gimplify_expr): Likewise.
3295 * omp-builtins.def (BUILT_IN_GOACC_HOST_DATA): New.
3296 * omp-low.c (lookup_decl_in_outer_ctx)
3297 (maybe_lookup_decl_in_outer_ctx): Add optional argument to skip
3299 (scan_sharing_clauses): Support use_device.
3300 (check_omp_nesting_restrictions): Support host_data.
3301 (expand_omp_target): Support host_data.
3302 (lower_omp_target): Skip over outer host_data regions when looking
3303 up decls. Support use_device.
3304 (make_gimple_omp_edges): Support host_data.
3305 * tree-nested.c (convert_nonlocal_omp_clauses): Add use_device clause.
3307 2015-12-01 Marek Polacek <polacek@redhat.com>
3310 * cgraphunit.c (check_global_declaration): Only depend
3311 on TREE_THIS_VOLATILE for VAR_DECLs.
3313 2015-12-01 Richard Sandiford <richard.sandiford@arm.com>
3315 PR tree-optimization/68474
3316 * tree-call-cdce.c (use_internal_fn): Protect call to
3317 gen_shrink_wrap_conditions.
3319 2015-12-01 Christian Bruel <christian.bruel@st.com>
3322 * config/arm/arm.opt (unaligned_access): Save.
3323 * config/arm/arm-c.c (__ARM_FEATURE_UNALIGNED): Conditionally define.
3324 * config/arm/arm.c (arm_option_override): Move unaligned_access setting.
3325 (arm_option_override_internal): ... here.
3326 * config/arm/arm.h (TARGET_32BIT_P): New macro.
3328 2015-12-01 Richard Biener <rguenther@suse.de>
3330 PR tree-optimization/68379
3331 * tree-vect-stmts.c (vectorizable_load): For BB vectorization
3332 always base loads on the first used DR of a group.
3333 * tree-vect-data-refs.c (vect_slp_analyze_and_verify_node_alignment):
3334 Compute alignment of the first scalar element unconditionally.
3336 2015-12-01 Richard Biener <rguenther@suse.de>
3339 * genmatch.c (struct capture_info): Add match_use_count.
3340 (capture_info::walk_match): Increment match_use_count.
3341 (dt_simplify::gen_1): For GENERIC, only wrap multi-use
3342 replacements in a save_expr if they occur more often than
3343 in the original expression.
3345 2015-12-01 Richard Biener <rguenther@suse.de>
3348 * ipa-split.c (split_function): Handle main part not returning.
3350 2015-12-01 Ilya Enkovich <enkovich.gnu@gmail.com>
3353 * tree-vect-stmts.c (vect_init_vector): Cast boolean
3354 scalars to a proper value before building a vector.
3356 2015-12-01 Richard Sandiford <richard.sandiford@arm.com>
3358 * genattrtab.c (check_attr_test): Take an attr_desc instead of
3359 an is_const flag. Put the file_location argument first.
3360 Update recursive calls. Improve error messages.
3361 (check_attr_value): Take a file location and use it instead
3362 of attr->loc. Improve error messages. Update calls to
3364 (check_defs): Update call to check_attr_value.
3365 (make_canonical): Likewise.
3366 (gen_attr): Likewise.
3368 (gen_insn_reserv): Update call to check_attr_test.
3370 2015-12-01 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
3372 * config/aarch64/aarch64.c (aarch64_builtin_reciprocal): Fix typo.
3374 2015-12-01 Richard Biener <rguenther@suse.de>
3377 * match.pd: Merge (eq @0 @0) and (ge/le @0 @0) patterns.
3379 2015-12-01 Jan Hubicka <hubicka@ucw.cz>
3381 * ipa-devirt.c (type_with_linkage_p, type_in_anonymous_namespace_p,
3382 odr_type_p): Move to ...
3383 * ipa-utils.h (type_with_linkage_p, type_in_anonymous_namespace_p,
3384 odr_type_p): here; miscro-optimize.
3386 2015-12-01 Bin Cheng <bin.cheng@arm.com>
3388 PR tree-optimization/68529
3389 * tree-ssa-loop-niter.c (number_of_iterations_ne): Add new param.
3390 Compute no-overflow information for control iv.
3391 (number_of_iterations_lt, number_of_iterations_le): Add new param.
3392 (number_of_iterations_cond): Pass new argument to above functions.
3394 2015-11-30 Jan Hubicka <hubicka@ucw.cz>
3396 * ipa-inline-transform.c (inline_call): Drop -fstrict-aliasing when
3397 inlining -fno-strict-aliasing into -fstrict-aliasing body.
3399 2015-11-30 Aditya Kumar <aditya.k7@samsung.com>
3400 Sebastian Pop <s.pop@samsung.com>
3402 PR tree-optimization/68565
3403 * graphite-isl-ast-to-gimple.c (binary_op_to_tree): Early return on
3404 codegen_error. Fail when rhs of division operations is integer_zerop.
3405 (ternary_op_to_tree): Early return on codegen_error.
3406 (unary_op_to_tree): Same.
3407 (nary_op_to_tree): Same.
3408 (gcc_expression_from_isl_expr_op): Same.
3409 (gcc_expression_from_isl_expression): Same.
3410 (graphite_create_new_loop): On codegen_error continue generating
3412 (graphite_create_new_loop_guard): Same.
3413 (build_iv_mapping): Same.
3414 (graphite_create_new_guard): Same.
3416 2015-11-30 Aditya Kumar <aditya.k7@samsung.com>
3417 Sebastian Pop <s.pop@samsung.com>
3419 * graphite-isl-ast-to-gimple.c: Fix dump messages.
3420 * graphite-scop-detection.c: Same.
3421 * graphite-sese-to-poly.c (isl_id_for_ssa_name): Do not call get_name.
3423 2015-11-30 Cesar Philippidis <cesar@codesourcery.com>
3425 * tree-nested.c (convert_nonlocal_omp_clauses): Add support for
3426 OMP_CLAUSE_{NUM_GANGS,NUM_VECTORS,VECTOR_LENGTH,SEQ}.
3427 (convert_local_omp_clauses): Likewise.
3429 2015-11-30 Tom de Vries <tom@codesourcery.com>
3431 PR tree-optimization/46032
3432 * tree-ssa-structalias.c (find_func_aliases_for_call_arg): New function,
3434 (find_func_aliases_for_call): ... here.
3435 (find_func_aliases_for_builtin_call, find_func_clobbers): Handle
3436 BUILT_IN_GOMP_PARALLEL.
3437 (ipa_pta_execute): Same. Handle node->parallelized_function as a local
3440 2015-11-30 Jakub Jelinek <jakub@redhat.com>
3442 PR tree-optimization/68501
3443 * target.def (builtin_reciprocal): Replace the 3 arguments with
3444 a gcall * one, adjust description.
3445 * targhooks.h (default_builtin_reciprocal): Replace the 3 arguments
3447 * targhooks.c (default_builtin_reciprocal): Likewise.
3448 * tree-ssa-math-opts.c (pass_cse_reciprocals::execute): Use
3449 targetm.builtin_reciprocal even on internal functions, adjust
3450 the arguments and allow replacing an internal function with normal
3452 * config/i386/i386.c (ix86_builtin_reciprocal): Replace the 3 arguments
3453 with a gcall * one. Handle internal fns too.
3454 * config/rs6000/rs6000.c (rs6000_builtin_reciprocal): Likewise.
3455 * config/aarch64/aarch64.c (aarch64_builtin_reciprocal): Likewise.
3456 * doc/tm.texi (builtin_reciprocal): Document.
3458 2015-11-30 Richard Biener <rguenther@suse.de>
3460 PR tree-optimization/68592
3461 * tree-vect-loop.c (vect_analyze_loop_2): Reset SLP type also
3462 on the pattern def sequence.
3464 2015-11-30 Nathan Sidwell <nathan@acm.org>
3466 * config/nvptx/nvptx.c (nvptx_name_replacement): Move earlier.
3467 (write_one_arg): Reorder parms, add 'sep' param.
3468 (nvptx_write_function_decl): Rename to ...
3469 (write_fn_proto): ... here. Do name replacement. Emit linaer
3470 comment marker. Deal with both decls and defns. Simplify argument
3472 (write_function_decl_and_comment): Delete.
3473 (write_func_decl_from_insn): Rename to ...
3474 (write_fn_proto_from_insn): ... here. Don't do name replacement.
3475 (nvptx_record_fndecl): Call write_fn_proto.
3476 (nvptx_record_libfunc): Call write_fn_proto_from_insn.
3477 (nvptx_declare_function_name): Adjust for write_fn_proto changes.
3478 (nvotx_output_call_insn): Call write_fn_prot_from_insn.
3480 2015-11-30 Kirill Yukhin <kirill.yukhin@intel.com>
3482 * config/i386/i386.md (define_mode_iterator SWI1248_AVX512BW): New.
3483 (define_insn "*k<logic><mode>"): Use new iterator.
3485 2015-11-30 Eric Botcazou <ebotcazou@adacore.com>
3488 * config/sparc/sparc.c (supersparc_adjust_cost): Fix thinko.
3489 (sparc_adjust_cost): Add missing space.
3491 2015-11-30 Richard Biener <rguenther@suse.de>
3494 * dwarf2out.c (gen_type_die_with_usage): Keep variant types of arrays.
3496 2015-11-30 Venkataramanan Kumar <Venkataramanan.Kumar@amd.com>
3498 * tree-if-conv.c (struct ifc_dr): Add new tree base_predicate field.
3499 (hash_memrefs_baserefs_and_store_DRs_read_written_info): Hash
3500 base ref, DR pairs and store base_predicate for write type DRs.
3501 (ifcvt_memrefs_wont_trap): Guard checks with
3502 -ftree-loop-if-convert-stores flag.
3504 2015-11-29 Jan Hubicka <hubicka@ucw.cz>
3506 * cgraph.c (cgraph_node::make_local): No name is unique during
3507 incremental linking.
3508 * cgraph.h (can_be_discarded_p): Update comment; also common and
3509 WEAK in named sections can be discarded; when doing incremental
3510 link do not rely on resolution being the final one.
3511 * varasm.c (default_binds_local_p_3, decl_binds_to_current_def_p):
3512 When symbol can be discarded, do not rely on resolution info.
3513 * symtab.c (symtab_node::nonzero_address): Take into account that
3514 symbol can be discarded.
3515 * ipa-visibility.c (update_visibility_by_resolution_info): Handle
3516 definition correctly.
3517 (function_and_variable_visibility): Do not set unique_name when
3518 incrementally linking.
3520 2015-11-29 Nathan Sidwell <nathan@acm.org>
3522 * config/nvptx/nvptx.md (const_0_operand, global_mem_operand,
3523 const_mem_operand, param_mem_operand, shared_mem_operand): Delete.
3524 (ctrap<mode>): Use const0_operand.
3526 2015-11-29 Jan Hubicka <hubicka@ucw.cz>
3528 * ipa-devirt.c (add_type_duplicate): Remove redundant
3531 2015-11-29 David Edelsohn <dje.gcc@gmail.com>
3534 * config/rs6000/rs6000.c (rs6000_adjust_cost): Correct
3535 recog_memoized test for insn and check recog_memoized for dep_insn.
3537 2015-11-28 Nathan Sidwell <nathan@acm.org>
3539 * config/nvptx/nvptx.h (FIRST_PARM_OFFSET): Add void cast.
3540 (FRAME_POINTER_CFA_OFFSET): Define.
3541 (struct nvptx_args): Use 'tree' type.
3542 (INIT_CUMULATIVE_ARGS): Remove unnecessary do...while.
3544 2015-11-28 Tom de Vries <tom@codesourcery.com>
3546 * lto-wrapper.c (run_gcc): Handle -flinker-output argument.
3548 2015-11-27 Jonathan Wakely <jwakely@redhat.com>
3550 * doc/invoke.texi (Option Summary): Use negative form of
3551 -Waggressive-loop-optimizations, remove redundant -Wpedantic-ms-format,
3552 sort alphabetically and re-justify.
3554 2015-11-27 Vladimir Makarov <vmakarov@redhat.com>
3556 PR rtl-optimization/68536
3557 * lra.c (lra_emit_add): Add code for null base.
3558 * lra-constraints.c (curr_insn_transform): Skip operators for
3561 2015-11-27 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3564 2015-11-27 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3566 * ifcvt.c (insn_valid_noce_process_p): Reject insn if it satisfies
3568 (noce_try_cmove_arith): Add checking asserts that orig_a and orig_b
3569 are not modified by the final modified insns in the basic blocks.
3571 2015-11-27 Nathan Sidwell <nathan@acm.org>
3573 * config/nvptx/nvptx-protos.h (nvptx_addr_space_from_address):
3575 * config/nvptx/nvptx.c (nvptx_addr_space_from_sym): New.
3576 (nvptx_maybe_convert_symbolic_operand): Simplify.
3577 (nvptx_addr_space_from_address): Delete.
3578 (nvptx_print_operand): Adjust 'A' case.
3580 2015-11-27 Richard Biener <rguenther@suse.de>
3582 PR tree-optimization/68559
3583 * tree-vect-data-refs.c (vect_analyze_group_access_1): Move
3584 peeling for gap checks ...
3585 * tree-vect-stmts.c (vectorizable_load): ... here and relax for SLP.
3586 * tree-vect-loop.c (vect_analyze_loop_2): Re-set
3587 LOOP_VINFO_PEELING_FOR_GAPS before re-trying without SLP.
3589 2015-11-27 Nathan Sidwell <nathan@acm.org>
3591 * config/nvptx/nvptx-protos.h (nvptx_record_needed_decl): Don't declare.
3592 * config/nvptx/nvptx.c (write_func_decl_from_insn): Move earlier.
3593 (nvptx_record_fndecl): Don't return value, remove force
3594 argument. Require fndecl.
3595 (nvptx_record_libfunc): New.
3596 (nvptx_record_needed_decl): Deteermine how to record decl here.
3597 (nvptx_maybe_record_fnsym): New.
3598 (nvptx_expand_call): Don't record libfuncs here,
3599 (nvptx_maybe_convert_symbolic_operand): Use
3600 nvptx_maye_record_fnsym.
3601 (nvptx_assemble_integer): Reimplement with single switch.
3602 (nvptx_output_call_insn): Register libfuncs here.
3603 (nvptx_file_end): Adjust nvptx_record_fndecl call.
3604 * config/nvptx/nvptx.md (expand_movdi): Don't call
3605 nvptx_record_needed_decl.
3607 2015-11-27 Richard Biener <rguenther@suse.de>
3609 PR tree-optimization/68553
3610 * tree-vect-slp.c (vect_create_mask_and_perm): Skip VEC_PERM_EXPR
3611 generation for 1:1 permutations.
3612 (vect_transform_slp_perm_load): Detect 1:1 permutations.
3614 2015-11-27 Bernd Schmidt <bschmidt@redhat.com>
3616 * gimple.h (nonbarrier_call_p): Declare.
3617 * gimple.c (nonbarrier_call_p): New function.
3618 * tree-ssa-phiopt.c (nontrapping_dom_walker::before_dom_children):
3619 Also increment call phase for ASMs with vdef and potential barrier
3622 2015-11-27 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3624 * ifcvt.c (insn_valid_noce_process_p): Reject insn if it satisfies
3626 (noce_try_cmove_arith): Add checking asserts that orig_a and orig_b
3627 are not modified by the final modified insns in the basic blocks.
3629 2015-11-27 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3631 PR rtl-optimization/68506
3632 * ifcvt.c (noce_try_cmove_arith): Try emitting the else basic block
3633 first if emit_a exists or then_bb modifies 'b'. Reindent if-else
3636 2015-11-27 Martin Liska <mliska@suse.cz>
3639 * vec.h (release_vec_vec): New function.
3641 2015-11-27 Jakub Jelinek <jakub@redhat.com>
3643 PR tree-optimization/68552
3644 * optabs.c (expand_vec_perm_1): Move vec_shr handling from here...
3645 (expand_vec_perm): ... here. Do it regardless of vec_perm_const_optab
3646 or whether v0 == v1.
3648 2015-11-27 Martin Liska <mliska@suse.cz>
3650 * tree-ssa-uninit.c: Fix whitespaces in the source file.
3651 The change is just automatical.
3653 2015-11-27 Martin Liska <mliska@suse.cz>
3655 * tree-chkp.c (chkp_make_static_bounds): Release buffer
3658 2015-11-27 Martin Liska <mliska@suse.cz>
3660 * tree-vect-loop-manip.c (vect_create_cond_for_alias_checks):
3661 Do not release memory for comp_alias_ddrs.
3662 * tree-vect-loop.c (destroy_loop_vec_info): Release
3663 the memory for all loop_vec_info.
3665 2015-11-27 Martin Liska <mliska@suse.cz>
3667 * ipa-devirt.c (ipa_devirt): Use auto_vec instead
3668 of a local-scope vec.
3669 (struct final_warning_record): Use auto_vec instead of vec.
3671 2015-11-27 Richard Biener <rguenther@suse.de>
3673 PR tree-optimization/68553
3674 * tree-vect-slp.c (vect_get_mask_element): Remove.
3675 (vect_transform_slp_perm_load): Implement in a simpler way.
3677 2015-11-26 Alexandre Oliva <aoliva@redhat.com>
3679 PR rtl-optimization/67753
3680 PR rtl-optimization/64164
3681 * function.c (assign_parm_setup_block): Right-shift
3682 upward-padded big-endian args when bypassing the stack slot.
3684 2015-11-26 Maciej W. Rozycki <macro@imgtec.com>
3686 * doc/invoke.texi (Option Summary) <MIPS Options>: Reorder
3687 `-mcompact-branches='.
3688 (MIPS Options): Likewise.
3690 2015-11-26 Jakub Jelinek <jakub@redhat.com>
3692 * Makefile.in (build/genmatch.o): Depend on internal-fn.def.
3694 2015-11-26 David Edelsohn <dje.gcc@gmail.com>
3696 * doc/install.texi (Prerequisites): Increase ISL requirement to
3699 2015-11-26 Matthew Wahab <matthew.wahab@arm.com>
3701 * config/aarch64/arm_neon.h
3702 (vqrdmlah_laneq_s16, vqrdmlah_laneq_s32): New.
3703 (vqrdmlahq_laneq_s16, vqrdmlahq_laneq_s32): New.
3704 (vqrdmlsh_lane_s16, vqrdmlsh_lane_s32): New.
3705 (vqrdmlshq_laneq_s16, vqrdmlshq_laneq_s32): New.
3706 (vqrdmlah_lane_s16, vqrdmlah_lane_s32): New.
3707 (vqrdmlahq_lane_s16, vqrdmlahq_lane_s32): New.
3708 (vqrdmlahh_s16, vqrdmlahh_lane_s16, vqrdmlahh_laneq_s16): New.
3709 (vqrdmlahs_s32, vqrdmlahs_lane_s32, vqrdmlahs_laneq_s32): New.
3710 (vqrdmlsh_lane_s16, vqrdmlsh_lane_s32): New.
3711 (vqrdmlshq_lane_s16, vqrdmlshq_lane_s32): New.
3712 (vqrdmlshh_s16, vqrdmlshh_lane_s16, vqrdmlshh_laneq_s16): New.
3713 (vqrdmlshs_s32, vqrdmlshs_lane_s32, vqrdmlshs_laneq_s32): New.
3715 2015-11-26 Matthew Wahab <matthew.wahab@arm.com>
3717 * config/aarch64/arm_neon.h (vqrdmlah_s16, vqrdmlah_s32): New.
3718 (vqrdmlahq_s16, vqrdmlahq_s32): New.
3719 (vqrdmlsh_s16, vqrdmlsh_s32): New.
3720 (vqrdmlshq_s16, vqrdmlshq_s32): New.
3722 2015-11-26 Matthew Wahab <matthew.wahab@arm.com>
3724 * config/aarch64/aarch64-c.c (aarch64_update_cpp_builtins): Add
3727 2015-11-26 Pierre-Marie de Rodat <derodat@adacore.com>
3730 * tree-nested.c (finalize_nesting_tree_1): Append a field to
3731 hold the frame base address.
3732 * dwarf2out.c (gen_subprogram_die): Generate for
3733 DW_AT_static_link a location description that computes the value
3736 2015-11-26 Tom de Vries <tom@codesourcery.com>
3739 2015-11-25 Tom de Vries <tom@codesourcery.com>
3741 * cfgloop.c (find_single_latch): New function, factored out of ...
3742 (flow_loops_find): ... here.
3743 (verify_loop_structure): Improve verification of loop->latch.
3744 * cfgloop.h (find_single_latch): Declare.
3745 * omp-low.c (expand_omp_for_generic): Initialize latch of orig_loop.
3747 2015-11-26 Matthew Wahab <matthew.wahab@arm.com>
3749 * config/aarch64/aarch64-simd-builtins.def:
3750 Add missing changes from r230962.
3752 2015-11-26 Nathan Sidwell <nathan@acm.org>
3754 * config/nvptx/nvptx.c (write_func_decl_from_insn): Replace callee
3755 arg with name. Don't deal with split regs. Tweak formatting.
3756 (nvptx_expand_call): Adjust write_func_decl_from_insn call.
3757 (nvptx_output_call_insn): Don't deal with split regs here.
3759 2015-11-26 Matthew Wahab <matthew.wahab@arm.com>
3761 * config/aarch64/aarch64-simd-builtins.def
3762 (sqrdmlah, sqrdmlsh): New.
3763 (sqrdmlah_lane, sqrdmlsh_lane): New.
3764 (sqrdmlah_laneq, sqrdmlsh_laneq): New.
3766 2015-11-26 Matthew Wahab <matthew.wahab@arm.com>
3768 * config/aarch64/aarch64-simd.md
3769 (aarch64_sqmovun<mode>): Fix some white-space.
3770 (aarch64_<sur>qmovun<mode>): Likewise.
3771 (aarch64_sqrdml<SQRDMLH_AS:rdma_as>h<mode>): New.
3772 (aarch64_sqrdml<SQRDMLH_AS:rdma_as>h_lane<mode>): New.
3773 (aarch64_sqrdml<SQRDMLH_AS:rdma_as>h_laneq<mode>): New.
3774 * config/aarch64/iterators.md (UNSPEC_SQRDMLAH): New.
3775 (UNSPEC_SQRDMLSH): New.
3779 2015-11-26 Richard Biener <rguenther@suse.de>
3781 PR tree-optimization/66721
3782 * tree-vect-loop.c (vect_analyze_loop_2): Compute scalar
3783 iteration cost earlier. Re-do analysis without SLP when
3784 vectorization using SLP fails and without has a chance to succeed.
3786 2015-11-26 Richard Biener <rguenther@suse.de>
3788 * genmatch.c (dt_simplify::gen_1): For generic wrap all
3789 multi-result-use captures in a SAVE_EXPR.
3791 2015-11-26 Matthew Wahab <matthew.wahab@arm.com>
3793 * config/aarch64/aarch64.h (AARCH64_ISA_RDMA): New.
3794 (TARGET_SIMD_RDMA): New.
3796 2015-11-26 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3798 * combine.c (subst): Do not return clobber of zero in widening mult
3799 case. Just return x unchanged if it is a no-op substitution.
3801 2015-11-26 Vladimir Makarov <vmakarov@redhat.com>
3804 * config/i386/i386.h (enum reg_class): Add
3805 bounds registers to ALL_REGS.
3807 2015-11-26 Jakub Jelinek <jakub@redhat.com>
3809 PR tree-optimization/68128
3810 * tree.h (OMP_CLAUSE_SHARED_READONLY): Define.
3811 * gimplify.c: Include gimple-walk.h.
3812 (enum gimplify_omp_var_data): Add GOVD_WRITTEN.
3813 (omp_notice_variable): Set flags to n->value if n already
3814 exists in target region, but we need to jump to do_outer.
3815 (omp_shared_to_firstprivate_optimizable_decl_p,
3816 omp_mark_stores, omp_find_stores_op, omp_find_stores_stmt): New
3818 (gimplify_adjust_omp_clauses_1): Set OMP_CLAUSE_SHARED_READONLY
3819 on OMP_CLAUSE_SHARED if it is a scalar non-addressable that is
3820 not modified in the body. Call omp_mark_stores for outer
3821 contexts on OMP_CLAUSE_SHARED clauses if they could be written
3822 in the body or on OMP_CLAUSE_LASTPRIVATE.
3823 (gimplify_adjust_omp_clauses): Add body argument, call
3824 omp_find_stores_{stmt,op} on the body through walk_gimple_seq.
3825 Set OMP_CLAUSE_SHARED_READONLY
3826 on OMP_CLAUSE_SHARED if it is a scalar non-addressable that is
3827 not modified in the body. Call omp_mark_stores for outer
3828 contexts on OMP_CLAUSE_SHARED clauses if they could be written
3829 in the body or on OMP_CLAUSE_LASTPRIVATE or on OMP_CLAUSE_LINEAR
3830 without OMP_CLAUSE_LINEAR_NO_COPYOUT or on OMP_CLAUSE_REDUCTION.
3831 (gimplify_oacc_cache, gimplify_omp_parallel, gimplify_omp_task,
3832 gimplify_omp_for, gimplify_omp_workshare, gimplify_omp_target_update,
3833 gimplify_expr): Adjust gimplify_adjust_omp_clauses callers.
3834 * tree-nested.c (convert_nonlocal_omp_clauses,
3835 convert_local_omp_clauses): Clear OMP_CLAUSE_SHARED_READONLY on
3836 non-local vars or local vars referenced from nested routines.
3837 * omp-low.c (scan_sharing_clauses): For OMP_CLAUSE_SHARED_READONLY
3838 attempt to optimize it into OMP_CLAUSE_FIRSTPRIVATE. Even for
3839 TREE_READONLY, don't call use_pointer_for_field with non-NULL
3840 second argument until we are sure we are keeping OMP_CLAUSE_SHARED.
3842 2015-11-26 Paolo Bonzini <bonzini@gnu.org>
3844 * doc/implement-c.texi (Integers Implementation): Make GCC's promises
3845 about signed left shift stronger and clarify the cases when they're
3848 2015-11-26 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3849 Bernd Schmidt <bschmidt@redhat.com>
3851 PR rtl-optimization/67226
3852 * calls.c (store_one_arg): Take into account
3853 crtl->args.pretend_args_size when checking for overlap between
3854 arg->value and argblock + arg->locate.offset during sibcall
3857 2015-11-26 Wilco Dijkstra <wdijkstr@arm.com>
3859 * config/aarch64/aarch64.md (cbranch<mode>4): Use
3860 aarch64_fp_compare_operand.
3861 (store_pairsf): Use aarch64_reg_or_fp_zero.
3862 (store_pairdf): Likewise.
3863 (cstore<mode>4): Use aarch64_fp_compare_operand.
3864 (cmov<mode>6): Likewise.
3865 * config/aarch64/aarch64-ldpstp.md: Use aarch64_reg_or_fp_zero.
3867 2015-11-25 Aditya Kumar <aditya.k7@samsung.com>
3868 Sebastian Pop <s.pop@samsung.com>
3870 PR tree-optimization/68453
3871 * graphite-isl-ast-to-gimple.c (translate_isl_ast_for_loop): Do
3872 not redirect edges already pointing to their destination.
3873 (translate_isl_ast_node_for): Split edges after loops to create
3874 basic blocks for close phi nodes. Save merge points at the end of
3876 (translate_isl_ast_node_if): Save merge points at the end of the
3878 (add_close_phis_to_outer_loops): New.
3879 (add_close_phis_to_merge_points): New.
3880 (copy_loop_close_phi_args): Call add_close_phis_to_merge_points.
3881 (copy_bb_and_scalar_dependences): Do not split basic blocks on
3882 loop close phi locations.
3884 2015-11-25 Jan Hubicka <jh@suse.cz>
3886 * ipa-visibility.c (cgraph_externally_visible_p,
3887 varpool_node::externally_visible_p): When doing incremental linking,
3888 hidden symbols may be still used later.
3889 (update_visibility_by_resolution_info): Do not drop weak during
3891 (function_and_variable_visibility): Fix formating.
3892 * flag-types.h (lto_linker_output): Declare.
3893 * common.opt 9flag_incremental_link): New flag.
3895 2015-11-25 Michael Meissner <meissner@linux.vnet.ibm.com>
3897 * config/rs6000/constraints.md (wb constraint): New constraint for
3898 ISA 3.0 d-form scalar addressing.
3900 * config/rs6000/rs6000.c (mode_supports_vmx_dform): Add support
3901 for ISA 3.0 D-form addressing to load SFmode/DFmode scalars into
3902 Altivec registers. Add wb constraint for Altivec registers with
3903 D-form addressing. If we have ISA 3.0 d-form support, undo
3904 secondary reload support for using FPR registers if we want to do
3906 (rs6000_debug_reg_global): Likewise.
3907 (rs6000_setup_reg_addr_masks): Likewise.
3908 (rs6000_init_hard_regno_mode_ok): Likewise.
3909 (rs6000_secondary_reload): Likewise.
3910 (rs6000_preferred_reload_class): Likewise.
3911 (rs6000_secondary_reload_class): Likewise.
3913 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Add wb
3916 * config/rs6000/rs6000.md (f32_lr2 mode attribute): Add support
3917 for ISA 3.0 SFmode/DFmode d-form addressing to Altivec registers.
3918 (f32_lm2): Likewise.
3919 (f32_li2): Likewise.
3920 (f32_sr2): Likewise.
3921 (f32_sm2): Likewise.
3922 (f32_si2): Likewise.
3924 (extendsfdf2_fpr): Likewise.
3925 (mov<mode>_hardfloat): Likewise.
3926 (mov<mode>_hardfloat32): Likewise.
3927 (mov<mode>_hardfloat64): Likewise.
3929 * doc/md.texi (RS/6000 constraints): Document wb constraint.
3930 Fixup we constraint documentation.
3932 2015-11-25 Tom de Vries <tom@codesourcery.com>
3934 * omp-low.c (pass_expand_omp_ssa::clone): New function.
3935 * passes.def: Add pass_oacc_kernels pass group.
3936 * tree-ssa-loop-ch.c (pass_ch::clone): New function.
3938 2015-11-25 Tom de Vries <tom@codesourcery.com>
3940 * tree-pass.h (make_pass_oacc_kernels, make_pass_oacc_kernels2):
3942 * tree-ssa-loop.c (gate_oacc_kernels): New static function.
3943 (pass_data_oacc_kernels, pass_data_oacc_kernels2): New pass_data.
3944 (class pass_oacc_kernels, class pass_oacc_kernels2): New pass.
3945 (make_pass_oacc_kernels, make_pass_oacc_kernels2): New function.
3947 2015-11-25 Jan Hubicka <hubicka@ucw.cz>
3949 * timevar.def (TV_IPA_LTO_DECOMPRESS, TV_IPA_LTO_COMPRESS,
3950 TV_IPA_LTO_OUTPUT): New.
3951 * lto-compress.c: Include timevar.h
3952 (lto_end_compression, lto_end_uncompression): Add timers.
3953 * langhooks.c: Include timevar.h.
3954 (lhd_append_data): Add timer.
3956 2015-11-25 Jan Hubicka <hubicka@ucw.cz>
3958 * varasm.c (default_elf_asm_output_limited_string,
3959 default_elf_asm_output_ascii): Replace fprintf by putc.
3961 2015-11-25 Vladimir Makarov <vmakarov@redhat.com>
3963 PR rtl-optimization/67954
3964 * lra-constraints.c (curr_insn_transform): Add check on scratch
3965 pseudo when change class to NO_REGS. Add an assert.
3967 2015-11-25 Nathan Sidwell <nathan@acm.org>
3969 * config/nvptx/nvptx.md (load_arg_reg<mode>): Arg number
3971 * config/nvptx/nvptx.c (write_one_arg): Use 'i' directly as arg number.
3972 (nvptx_write_function_decl): Number args from 0.
3973 (nvptx_declare_function_name): Likewise.
3974 (nvptx_function_incoming_arg): Likewise.
3975 (nvptx_output_call_insn): Correct formatting.
3977 2015-11-25 David Sherwood <david.sherwood@arm.com>
3979 * optabs.def: Add new optabs fmax_optab/fmin_optab.
3980 * internal-fn.def: Add new fmax/fmin internal functions.
3981 * doc/md.texi: Add fmin and fmax patterns.
3983 2015-11-25 Jason Merrill <jason@redhat.com>
3986 * tree.c (integer_zerop, integer_onep, integer_each_onep)
3987 (integer_all_onesp, integer_minus_onep, integer_pow2p)
3988 (integer_nonzerop, integer_truep, tree_log2, tree_floor_log2)
3989 (real_zerop, real_onep, real_minus_onep): Remove STRIP_NOPS.
3991 2015-11-25 Richard Biener <rguenther@suse.de>
3994 * fold-const.c (fold_binary_loc): Do not call negate_expr_p
3995 on stripped operands.
3997 2015-11-25 Nathan Sidwell <nathan@acm.org>
3999 * config/nvptx/nvptx.c (walk_args_for_params): Delete.
4000 (nvptx_declare_function_name): Move assignments next to register
4001 declarations, and process params here.
4003 2015-11-25 David Edelsohn <dje.gcc@gmail.com>
4005 * config/rs6000/rs6000.c (rs6000_declare_alias): Rename and globalize
4006 both the symbol and the "dot" symbol for function descriptors. Fix
4007 inversion for rename of symbols with dollar sign.
4009 2015-11-25 Tom de Vries <tom@codesourcery.com>
4011 * cfgloop.c (find_single_latch): New function, factored out of ...
4012 (flow_loops_find): ... here.
4013 (verify_loop_structure): Improve verification of loop->latch.
4014 * cfgloop.h (find_single_latch): Declare.
4015 * omp-low.c (expand_omp_for_generic): Initialize latch of orig_loop.
4017 2015-11-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4019 * config/sol2.h (SUPPORTS_INIT_PRIORITY): Move up.
4020 (STARTFILE_VTV_SPEC, ENDFILE_VTV_SPEC): Define.
4021 (STARTFILE_SPEC): Use %(startfile_vtv).
4022 (ENDFILE_SPEC): Use %(endfile_vtv).
4023 (SUBTARGET_EXTRA_SPECS): Handle STARTFILE_VTV_SPEC,
4026 * gcc.c (LINK_COMMAND_SPEC): Move VTABLE_VERIFICATION_SPEC after %{L*}.
4028 2015-11-25 Bernd Schmidt <bschmidt@redhat.com>
4030 * ifcvt.c (noce_mem_write_may_trap_or_fault_p,
4031 noce_can_store_speculate): Delete.
4032 (noce_process_if_block): Don't try to handle single MEM stores.
4033 * rtl.h (memory_must_be_modified_in_insn_p): Don't declare.
4034 * alias.c (memory_must_be_modified_in_insn_p): Delete.
4036 2015-11-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
4038 PR rtl-optimization/68435
4039 * ifcvt.c (noce_try_cmove_arith): Skip final insn when checking
4040 for conflicts between a, b and the set destinations.
4042 2015-11-25 Richard Biener <rguenther@suse.de>
4044 PR tree-optimization/68517
4045 * tree-vect-data-refs.c (vect_analyze_data_ref_accesses):
4046 Properly handle zero-sized types.
4048 2015-11-24 Jan Hubicka <hubicka@ucw.cz>
4050 * ipa-inline-analysis.c: Include gimplify.h
4051 (set_cond_stmt_execution_predicate,
4052 set_switch_stmt_execution_predicate): Be sure to not leak locations
4055 2015-11-25 Jakub Jelinek <jakub@redhat.com>
4058 * tree-ssa-math-opts.c (uaddsub_overflow_check_p,
4059 match_uaddsub_overflow): New functions.
4060 (pass_optimize_widening_mul::execute): Call match_uaddsub_overflow.
4062 2015-11-25 Richard Biener <rguenther@suse.de>
4064 PR tree-optimization/68492
4065 * tree-vect-slp.c (vect_build_slp_tree): Consistently build up
4066 op from scalars after operand swapping.
4068 2015-11-25 Richard Biener <rguenther@suse.de>
4070 PR tree-optimization/68502
4071 * tree-vect-data-refs.c (vect_analyze_group_access_1): Restore
4072 check that the step is a multiple of the type size.
4074 2015-11-24 Michael Collison <michael.collison@linaro.org>
4076 * config/aarch64/aarch64-simd.md (widen_ssum, widen_usum)
4077 (aarch64_<ANY_EXTEND:su><ADDSUB:optab>w<mode>_internal): New patterns
4078 * config/aarch64/iterators.md (Vhalf, VDBLW): New mode attributes.
4080 2015-11-24 Steve Ellcey <sellcey@imgtec.com>
4082 * frame-header-opt.c (gate): Check for optimize > 0.
4083 (has_inlined_assembly): New function.
4084 (needs_frame_header_p): Remove is_leaf_function check,
4085 add argument type check.
4086 (callees_functions_use_frame_header): Add is_leaf_function
4087 and has_inlined_assembly calls..
4088 (set_callers_may_not_allocate_frame): New function.
4089 (frame_header_opt): Add is_leaf_function call, add
4090 set_callers_may_not_allocate_frame call.
4091 * config/mips/mips.c (mips_compute_frame_info): Add check
4092 to see if callee saved regs can be put in frame header.
4093 (mips_expand_prologue): Add check to see if step1 is zero,
4094 fix cfa restores when using frame header to store regs.
4095 (mips_can_use_return_insn): Check to see if registers are
4096 stored in frame header.
4097 * config/mips/mips.h (machine_function): Add
4098 callers_may_not_allocate_frame and
4099 use_frame_header_for_callee_saved_regs fields.
4101 2015-11-24 Segher Boessenkool <segher@kernel.crashing.org>
4103 PR rtl-optimization/68520
4104 * shrink-wrap.c (try_shrink_wrapping): Don't push a block to VEC if
4105 its bit was already set in BB_WITH.
4107 2015-11-24 Jan Hubicka <hubicka@ucw.cz>
4109 * alias.c (get_alias_set): Before checking TYPE_ALIAS_SET_KNOWN_P
4110 double check that type is main variant.
4111 * tree.c (build_variant_type_copy): Clear TYPE_ALIAS_SET when producing
4113 (verify_type_variant): Verify that variants have no
4114 TYPE_ALIAS_SET_KNOWN_P set
4115 * tree-streamer-out.c (pack_ts_type_common_value_fields): Reorder
4116 streaming so constant fields come first; stream TYPE_ALIAS_SET==0
4117 only for main variants; stream TYPE_ALIAS_SET as a bit.
4118 * tree-streamer-in.c (unpack_ts_type_common_value_fields): Update
4121 2015-11-24 Jan Hubicka <hubicka@ucw.cz>
4123 * tree.c (make_vector_type): Properly compute canonical type of the
4125 (verify_type): Verify that TYPE_CANONICAL of TYPE_MAIN_VARIANT is
4128 2015-11-24 Nathan Sidwell <nathan@acm.org>
4130 * config/nvptx/nvptx.c (maybe_split_mode): Return new mode or
4131 VOIDmode, don't alter incoming mode.
4132 (nvptx_split_reg_p): Delete.
4133 (write_one_arg, walk_args_for_param, nvptx_declare_function_name,
4134 write_func_decl_from_insn, nvptx_output_call_insn): Adjust
4135 maybe_split_mode calls.
4136 (nvptx_print_operand): Use maybe_split_mode.
4138 2015-11-24 Jan Hubicka <hubicka@ucw.cz>
4140 * lto-streamer-in.c (lto_read_body_or_constructor): Set TYPE_CANONICAL
4141 only for types where LTO sets them.
4142 * tree.c (build_array_type_1): Do ont set TYPE_CANONICAL for LTO.
4143 (make_vector_type): Likewise.
4144 (gimple_canonical_types_compatible_p): Use canonical_type_used_p.
4145 * tree.h (canonical_type_used_p): New inline.
4146 * alias.c (get_alias_set): Handle structural equality for all
4147 types that pass canonical_type_used_p.
4148 (record_component_aliases): Look through all types with
4149 record_component_aliases for possible pointers; sanity check that
4150 the alias sets match.
4152 2015-11-24 Michael Meissner <meissner@linux.vnet.ibm.com>
4154 * config/rs6000/rs6000.md (lround<mode>di2): Remove constraints.
4156 2015-11-24 Jan Hubicka <hubicka@ucw.cz>
4158 * tree.c (free_node): New function.
4159 (type_hash_canon): Use it.
4160 * tree.h (free_node): Declare.
4162 2015-11-24 David Edelsohn <dje.gcc@gmail.com>
4163 Michael Meissner <meissner@linux.vnet.ibm.com>
4165 * config/rs6000/rs6000.md (UNSPEC_XSRDPI): New unspec.
4166 (Fv2): New mode attribute to be used when ISA 2.07 instructions
4167 are used on SF values, and ISA 2.06 instructions on DF values.
4168 (add<mode>3_fpr): Use <Fv2> instead of <Fv>.
4169 (sub<mode>3_fpr): Use <Fv2> instead of <Fv>.
4170 (mul<mode>3_fpr): Use <Fv2> instead of <Fv>.
4171 (div<mode>3_fpr): Use <Fv2> instead of <Fv>.
4172 (sqrt<mode>2): Use <Fv2> instead of <Fv>.
4173 (fre<Fs>): Use <Fv2> instead of <Fv>.
4174 (rsqrt<mode>2): Use <Fv2> instead of <Fv>.
4175 (cmp<mode>_fpr): Use <Fv2> instead of <Fv>.
4176 (xsrdpi<mode>): Add support for the lround function.
4177 (lround<mode>di2): Likewise.
4178 (fma<mode>4_fpr): Use <Fv2> instead of <Fv>.
4179 (fms<mode>4_fpr): Use <Fv2> instead of <Fv>.
4180 (nfma<mode>4_fpr): Use <Fv2> instead of <Fv>.
4181 (nfms<mode>4_fpr): Use <Fv2> instead of <Fv>.
4183 2015-11-24 Aditya Kumar <aditya.k7@samsung.com>
4184 Sebastian Pop <s.pop@samsung.com>
4186 PR tree-optimization/67984
4187 * graphite-isl-ast-to-gimple.c (is_constant): New.
4188 (get_rename): Call is_constant.
4189 (get_new_name): Same.
4191 2015-11-24 Aditya Kumar <aditya.k7@samsung.com>
4192 Sebastian Pop <s.pop@samsung.com>
4194 * graphite-dependences.c: Only include graphite.h.
4195 * graphite-isl-ast-to-gimple.c: Same.
4196 * graphite-optimize-isl.c: Same.
4197 * graphite-poly.c: Same.
4198 * graphite-scop-detection.c: Same.
4199 * graphite-sese-to-poly.c: Same.
4201 * graphite-isl-ast-to-gimple.h: Move to graphite.h.
4202 * graphite-poly.h: Same.
4203 * graphite-scop-detection.h: Same.
4206 2015-11-24 Pierre-Marie de Rodat <derodat@adacore.com>
4208 * dwarf2out.c (gen_decl_die): Generate DW_TAG_imported_* instead of
4209 DW_TAG_namespace for IMPORTED_DECL declarations. Call
4210 dwarf2out_imported_module_or_decl_1 for all DWARF versions as this
4211 function already takes care of checking what it can emit.
4213 2015-11-24 Szabolcs Nagy <szabolcs.nagy@arm.com>
4215 * doc/invoke.texi (-fpic): Add the AArch64 limit.
4216 (-fPIC): Add AArch64.
4218 2015-11-24 Tom de Vries <tom@codesourcery.com>
4220 * tree-ssa-loop-im.c (tree_ssa_lim): Make static.
4221 (pass_lim::execute): Allow to run outside pass_tree_loop.
4223 2015-11-24 Wilco Dijkstra <wdijkstr@arm.com>
4225 * config/aarch64/aarch64.md (add<mode>3):
4226 Block early expansion into 2 add instructions.
4227 (add<mode>3_pluslong): New pattern to combine complex
4228 immediates into 2 additions.
4230 2015-11-24 Segher Boessenkool <segher@kernel.crashing.org>
4235 * config/rs6000/predicates.md (and_operand): Check that the operand
4236 is a const_int before calling rs6000_is_valid_and_mask.
4238 2015-11-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
4240 * config/aarch64/aarch64.md (*condjump): Rename to...
4241 (condjump): ... This.
4242 (*compare_condjump<mode>): New define_insn_and_split.
4243 (*compare_cstore<mode>_insn): Likewise.
4244 (*cstore<mode>_insn): Rename to...
4245 (cstore<mode>_insn): ... This.
4246 * config/aarch64/iterators.md (CMP): Handle ne code.
4247 * config/aarch64/predicates.md (aarch64_imm24): New predicate.
4249 2015-11-24 Mikhail Maltsev <maltsevm@gmail.com>
4252 * config/i386/i386.c (output_387_binary_op): Fix assertion for
4255 2015-11-24 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
4257 * tree-ssa-uncprop.c (struct val_ssa_equiv_hash_traits): Remove.
4258 (val_ssa_equiv_hash_traits::remove): Likewise.
4259 (pass_uncprop::execute): Adjust.
4261 2015-11-24 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
4263 * hash-map-traits.h (simple_hashmap_traits ::remove): call
4264 destructors on values that are being removed.
4265 * mem-stats.h (hash_map): Pass type of values to
4266 simple_hashmap_traits.
4267 * tree-sra.c (sra_deinitialize): Remove work around for hash
4268 maps not destructing values.
4269 * genmatch.c (sinfo_hashmap_traits): Adjust.
4270 * tree-ssa-uncprop.c (val_ssa_equiv_hash_traits): Likewise.
4272 2015-11-24 Richard Biener <rguenther@suse.de>
4273 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
4276 * cfgloop.c (get_loop_body_in_bfs_order): Restructure loop to avoid
4279 2015-11-24 Jakub Jelinek <jakub@redhat.com>
4282 * tree-vect-generic.c (lower_vec_perm): If VEC_PERM_EXPR
4283 is valid vec_shr pattern, don't lower it even if can_vec_perm_p
4285 * optabs.c (shift_amt_for_vec_perm_mask): Return NULL_RTX
4286 whenever first is nelt or above. Don't mask expected with
4289 2015-11-24 Ilya Enkovich <enkovich.gnu@gmail.com>
4292 * gimple-fold.c: Include ipa-chkp.h.
4293 (gimple_fold_builtin_memory_op): Don't fold call if we
4294 are going to instrument it and it may copy pointers.
4296 2015-11-24 Bernd Schmidt <bschmidt@redhat.com>
4297 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
4299 PR rtl-optimization/68194
4300 PR rtl-optimization/68328
4301 PR rtl-optimization/68185
4302 * ree.c (combine_reaching_defs): Reject copy_needed case if
4303 copies_list is not empty.
4305 2015-11-24 Richard Biener <rguenther@suse.de>
4308 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Properly
4311 2015-11-24 Segher Boessenkool <segher@kernel.crashing.org>
4313 PR rtl-optimization/68381
4314 * combine.c (is_parallel_of_n_reg_sets): Return false if the pattern
4317 2015-11-23 Nick Clifton <nickc@redhat.com>
4318 Jeff Law <law@redhat.com>
4320 * ree.c (add_removable_extension): Avoid mis-optimizing cases where
4321 the source/dest of the target extension require a different number of
4323 (combine_set_extension): Remove #if 0 code.
4325 2015-11-23 Aditya Kumar <aditya.k7@samsung.com>
4326 Sebastian Pop <s.pop@samsung.com>
4328 PR tree-optimization/68314
4329 * graphite-optimize-isl.c (optimize_isl): Do not call
4330 isl_union_map_is_equal.
4331 * graphite-poly.c (new_scop): Remove original_schedule.
4333 * graphite-poly.h (struct scop): Same.
4334 * graphite-sese-to-poly.c (build_pbb_minimal_scattering_polyhedrons):
4336 (build_pbb_scattering_polyhedrons): Add back.
4337 (build_scop_minimal_scattering): Remove.
4338 (build_scop_scattering): Add back.
4339 (build_scop_original_schedule): Remove.
4340 (build_poly_scop): Revert to only call build_scop_scattering.
4342 2015-11-23 Aditya Kumar <aditya.k7@samsung.com>
4343 Sebastian Pop <s.pop@samsung.com>
4345 PR tree-optimization/68493
4346 * graphite-isl-ast-to-gimple.c (translate_pending_phi_nodes): Add
4347 missing early return when codegen_error is set.
4349 2015-11-23 Aditya Kumar <aditya.k7@samsung.com>
4350 Sebastian Pop <s.pop@samsung.com>
4352 PR tree-optimization/68279
4353 * graphite-poly.c (new_scop): Remove poly_scop_p.
4354 * graphite-poly.h (struct scop): Same.
4355 (build_poly_scop): Declare.
4356 * graphite-sese-to-poly.c: Do not include graphite-sese-to-poly.h.
4357 (cleanup_loop_iter_dom): New.
4358 (build_loop_iteration_domains): Early return when scev analysis fails.
4359 (create_pw_aff_from_tree): Same.
4360 (add_condition_to_pbb): Same.
4361 (add_conditions_to_domain): Same.
4362 (add_conditions_to_constraints): Same.
4363 (build_scop_iteration_domain): Same.
4364 (build_poly_scop): Same. Do not initialize poly_scop_p.
4365 * graphite-sese-to-poly.h: Remove.
4366 * graphite.c: Do not include graphite-sese-to-poly.h.
4367 (graphite_transform_loops): Stop before code generation when
4368 build_poly_scop fails.
4369 * sese.c (scalar_evolution_in_region): Add fixme note about scev
4372 2015-11-23 Aditya Kumar <aditya.k7@samsung.com>
4373 Sebastian Pop <s.pop@samsung.com>
4375 * graphite-isl-ast-to-gimple.c (translate_isl_ast_node_user):
4376 Remove call to update_ssa.
4377 * sese.c (sese_insert_phis_for_liveouts): Same.
4379 2015-11-23 Marek Polacek <polacek@redhat.com>
4381 PR tree-optimization/68455
4382 * tree-vrp.c (extract_range_from_binary_expr_1): Don't call
4383 extract_range_from_multiplicative_op_1 on symbolic ranges.
4385 2015-11-23 Richard Henderson <rth@redhat.com>
4387 * optabs.def (uaddv4_optab, usubv4_optab): New.
4388 * internal-fn.c (expand_addsub_overflow): Use them.
4389 * doc/md.texi (Standard Names): Add uaddv<m>4, usubv<m>4.
4391 * config/i386/i386.c (ix86_cc_mode): Extend add overflow check
4392 to reversed operands.
4393 * config/i386/i386.md (uaddv<SWI>4, usubv<SWI>4): New.
4394 (*add<SWI>3_cconly_overflow_1): Rename *add<SWI>3_cconly_overflow.
4395 (*add<SWI>3_cc_overflow_1): Rename *add<SWI>3_cc_overflow.
4396 (*addsi3_zext_cc_overflow_1): Rename *add3_zext_cc_overflow.
4397 (*add<SWI>3_cconly_overflow_2): New.
4398 (*add<SWI>3_cc_overflow_2): New.
4399 (*addsi3_zext_cc_overflow_2): New.
4401 2015-11-23 Richard Biener <rguenther@suse.de>
4403 PR tree-optimization/68465
4404 * tree-ssa-sccvn.c (sccvn_dom_walker::before_dom_children):
4405 Also record equalities from multiple predecessor blocks if
4406 only one non-backedge exists.
4408 2015-11-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
4411 * config/aarch64/aarch64.c (aarch64_madd_needs_nop): Reject arguments
4412 that are not INSN_P.
4414 2015-11-23 Bilyan Borisov <bilyan.borisov@arm.com>
4416 * config/aarch64/aarch64-builtins.c
4417 (aarch64_gimple_fold_builtin): Fold FMULX.
4419 2015-11-23 David Edelsohn <dje.gcc@gmail.com>
4421 * system.h: Don't poison calloc and strdup if USES_ISL is defined.
4422 * graphite-dependences.c: Define USES_ISL. Include ISL header files
4423 after GCC header files and before graphite header files.
4424 * graphite-dependences.c: Same.
4425 * graphite-isl-ast-to-gimple.c: Same.
4426 * graphite-optimize-isl.c: Same.
4427 * graphite-poly.c: Same.
4428 * graphite-scop-detection.c: Same.
4429 * graphite-sese-to-poly.c: Same.
4432 2015-11-23 Richard Biener <rguenth@gcc.gnu.org>
4433 Jiong Wang <jiong.wang@arm.com>
4435 PR tree-optimization/68317
4436 PR tree-optimization/68326
4437 * tree-vrp.c (adjust_range_with_scev): Call drop_tree_overflow if the
4438 final min and max are not infinity.
4440 2015-11-23 Ilya Enkovich <enkovich.gnu@gmail.com>
4441 Richard Biener <rguenther@suse.de>
4443 PR tree-optimization/68327
4444 * tree-vect-loop.c (vect_determine_vectorization_factor): Don't
4445 compute vectype for non-relevant mask producers.
4446 * tree-vect-stmts.c (vectorizable_comparison): Check stmt
4449 2015-11-23 Tom de Vries <tom@codesourcery.com>
4451 PR tree-optimization/68460
4452 * tree-parloops.c (gather_scalar_reductions): Also call
4453 free_stmt_vec_info_vec if simple_loop_info == NULL.
4455 2015-11-23 Maxim Ostapenko <m.ostapenko@partner.samsung.com>
4457 * opts.c (finish_options): Allow -fsanitize-recover=address for
4458 userspace sanitization.
4459 * asan.c (asan_expand_check_ifn): Redefine recover_p.
4460 * doc/invoke.texi (fsanitize-recover): Update documentation.
4462 2015-11-23 Tom de Vries <tom@codesourcery.com>
4464 * omp-low.c (build_receiver_ref): Mark by_ref mem_ref as non-trapping.
4466 2015-11-23 Richard Biener <rguenther@suse.de>
4468 PR tree-optimization/68445
4469 * tree-vect-slp.c (vect_create_mask_and_perm): Properly use
4470 two different strides.
4472 2015-11-23 Robin Dapp <rdapp@linux.vnet.ibm.com>
4474 * config/s390/s390.h: Add new symref flags, _NOTALIGN2 etc.
4475 * config/s390/s390.c (s390_check_symref_alignment): Use new
4476 symref flags, early abort on wrong alignment
4477 (s390_secondary_reload): Use new symref flags.
4478 (s390_encode_section_info): Likewise.
4479 * config/s390/predicates.md: Likewise.
4481 2015-11-23 Kugan Vivekanandarajah <kuganv@linaro.org>
4484 * config/arm/arm.c (arm_function_ok_for_sibcall): Get function type
4485 for indirect function call.
4487 2015-11-22 Bilyan Borisov <bilyan.borisov@arm.com>
4489 * config/aarch64/aarch64-simd.md
4490 (*aarch64_mulx_elt_<vswap_width_name><mode>, VDQSF): New.
4491 (*aarch64_mulx_elt<mode>, VDQF): Likewise.
4492 (*aarch64_mulx_elt_to_64v2df): Likewise.
4493 (*aarch64_vgetfmulx<mode>, VDQF_DF): Likewise.
4494 * config/aarch64/arm_neon.h (vmulx_lane_f32): New.
4495 (vmulx_lane_f64): Likewise.
4496 (vmulxq_lane_f32): Refactored & moved.
4497 (vmulxq_lane_f64): Likewise.
4498 (vmulx_laneq_f32): New.
4499 (vmulx_laneq_f64): Likewise.
4500 (vmulxq_laneq_f32): Likewise.
4501 (vmulxq_laneq_f64): Likewise.
4502 (vmulxs_lane_f32): Likewise.
4503 (vmulxs_laneq_f32): Likewise.
4504 (vmulxd_lane_f64): Likewise.
4505 (vmulxd_laneq_f64): Likewise.
4507 2015-11-21 Jan Hubicka <hubicka@ucw.cz>
4509 * tree.c (build_pointer_type_for_mode,build_reference_type_for_mode):
4510 In LTO we do not compute TYPE_CANONICAL of pointers.
4511 (gimple_canonical_types_compatible_p): Improve coments; sanity check
4512 that pointers do not have canonical type that would make us believe
4514 * alias.c (get_alias_set): Do structural type equality on pointers;
4515 enable pointer path for LTO; also glob pointer to vector with pointer
4516 to vector element; glob pointers and references for LTO; do more strict
4517 sanity checking about build_pointer_type returning the canonical type
4518 which is also the main variant.
4519 (record_component_aliases): When component type is pointer and we
4520 do LTO; record void_type_node alias set.
4522 2015-11-21 Nathan Sidwell <nathan@acm.org>
4524 * config/nvptx/nvptx.md (clz<mode>2): Use operand 1 for type.
4526 * config/nvptx/nvptx.c (write_function_decl_and_comment): Print
4528 (write_func_decl_from_insn): Likewise.
4529 (init_output_initializer, nvptx_assemble_undefined_decl): Likewise.
4530 (nvptx_file_end): Likewise.
4531 (nvptx_function_end): Undent output.
4532 (nvptx_expand_call): Fix formatting.
4533 (nvptx_output_call_insn): Indent output.
4534 * config/nvptx/nvptx.h (ASM_OUTPUT_ALIGNED_DECL_COMMON,
4535 ASM__OUTPUT_ALIGNED_DECL_LOCAL): Print leading blank line.
4537 2015-11-21 Jakub Jelinek <jakub@redhat.com>
4540 * tree-inline.c (copy_debug_stmt): If
4541 gimple_debug_source_bind_get_value is DECL_ORIGIN of a PARM_DECL
4542 in decl_debug_args, don't call remap_gimple_op_r on it.
4544 2015-11-07 Jan Hubicka <hubicka@ucw.cz>
4546 * ipa-icf.c (sem_item::add_type): Do not look for TYPE_CANONICAL;
4547 do not check AGGREGATE_TYPE_P when adding TYPE_MODE;
4548 Check that all record types are complete.
4549 * ipa-icf-gimple.c (func_checker::compatible_types_p): Do not
4550 compare alias sets for types w/o alias sets.
4552 2015-11-20 Eric Botcazou <ebotcazou@adacore.com>
4554 * config/sparc/sparc.md (umulxhi_vis): Move around.
4555 (*umulxhi_sp64): Likewise.
4556 (umulxhi_v8plus): Likewise.
4557 (xmulx_vis): Likewise.
4558 (*xmulx_sp64): Likewise.
4559 (xmulx_v8plus): Likewise.
4560 (xmulxhi_vis): Likewise.
4561 (*xmulxhi_sp64): Likewise.
4562 (xmulxhi_v8plus): Likewise.
4564 2015-11-20 David Malcolm <dmalcolm@redhat.com>
4567 * diagnostic-show-locus.c (colorizer::set_fixit_hint): New.
4568 (class layout): Update comment
4569 (layout::print_any_fixits): New method.
4570 (layout::move_to_column): New method.
4571 (diagnostic_show_locus): Add call to layout.print_any_fixits.
4573 2015-11-20 Jakub Jelinek <jakub@redhat.com>
4576 * omp-low.c (lower_rec_input_clauses): If C/C++ array reduction
4577 has non-zero bias, subtract it in integer type instead of
4578 pointer plus of negated bias.
4581 * omp-low.c (expand_simd_clones): Call node->get_body () before
4582 allocating stuff in GC.
4584 2015-11-20 Jim Wilson <jim.wilson@linaro.org>
4586 * tree-vect-data-refs.c (compare_tree): Call STRIP_NOPS.
4588 2015-11-20 Evandro Menezes <e.menezes@samsung.com>
4590 * config/aarch64/aarch64.md (predicated): Copy attribute from
4592 * config/arm/arm.md (predicated): Added description.
4594 2015-11-20 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
4596 * config/arm/arm.c (arm_option_override): Require TARGET_32BIT
4597 for unaligned_access.
4598 * config/arm/arm.md (unaligned_loadsi): Remove redundant TARGET_32BIT
4599 from matching condition.
4600 (unaligned_loadhis): Likewise.
4601 (unaligned_loadhiu): Likewise.
4602 (unaligned_storesi): Likewise.
4603 (unaligned_storehi): Likewise.
4605 2015-11-20 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
4608 * config/arm/arm.md (unaligned_loaddi): Delete.
4609 (unaligned_storedi): Likewise.
4610 * config/arm/arm.c (gen_movmem_ldrd_strd): Don't generate
4611 unaligned DImode memory ops. Instead perform two back-to-back
4612 unaligned SImode ops.
4614 2015-11-20 Nathan Sidwell <nathan@codesourcery.com>
4615 James Norris <jnorris@codesourcery.com>
4617 * config/nvptx/nvptx.c (nvptx_use_anchors_for_symbol_p): New.
4618 (TARGET_USE_ANCHORS_FOR_SYMBOL_P): Override.
4620 2015-11-20 Alan Hayward <alan.hayward@arm.com>
4622 PR tree-optimization/68413
4623 * tree-vect-loop.c (vect_analyze_scalar_cycles_1): Cache
4625 (vectorizable_reduction): Use cached base
4627 2015-11-20 Tom de Vries <tom@codesourcery.com>
4629 * tree-parloops.c (build_new_reduction): Fix trailing whitespace in
4631 (try_create_reduction_list): Same. Fix typo in dump-file string.
4633 2015-11-20 Eric Botcazou <ebotcazou@adacore.com>
4635 * doc/md.texi (Standard Names): Move entry for addptr3 around,
4636 add entries for addv4, subv4, mulv4, umulv4 and negv3, fixes
4637 glitch in entries for cbranch4 and jump.
4639 2015-11-20 Tom de Vries <tom@codesourcery.com>
4641 PR tree-optimization/68373
4642 * tree-scalar-evolution.c (final_value_replacement_loop): Factor out
4644 (scev_const_prop): ... here.
4645 * tree-scalar-evolution.h (final_value_replacement_loop): Declare.
4646 * tree-parloops.c (try_create_reduction_list): Call
4647 final_value_replacement_loop.
4649 2015-11-20 Bin Cheng <bin.cheng@arm.com>
4651 PR tree-optimization/52272
4652 * tree-ssa-loop-ivopts.c (struct iv_common_cand): New struct.
4653 (struct iv_common_cand_hasher): New struct.
4654 (iv_common_cand_hasher::hash): New function.
4655 (iv_common_cand_hasher::equal): New function.
4656 (struct ivopts_data): New fields, iv_common_cand_tab and
4658 (tree_ssa_iv_optimize_init): Initialize above fields.
4659 (record_common_cand, common_cand_cmp): New functions.
4660 (add_iv_candidate_derived_from_uses): New function.
4661 (add_iv_candidate_for_use): Record iv_common_cands derived from
4662 iv use in hash table, instead of adding candidates directly.
4663 (add_iv_candidate_for_uses): Call add_iv_candidate_derived_from_uses.
4664 (record_important_candidates): Add important candidates to iv uses'
4665 related_cands. Always keep related_cands for future use.
4666 (try_add_cand_for): Use iv uses' related_cands.
4667 (free_loop_data, tree_ssa_iv_optimize_finalize): Release new fields
4668 in struct ivopts_data, iv_common_cand_tab and iv_common_cands.
4670 2015-11-20 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
4672 * config/s390/s390.md ("bswaphi2"): New pattern.
4674 2015-11-20 Dominik Vogt <vogt@linux.vnet.ibm.com>
4676 * config/s390/s390.md (GPR1_REGNUM): New constant.
4677 ("*trunc<BFP:mode><DFP_ALL:mode>2")
4678 ("*trunc<DFP_ALL:mode><BFP:mode>2")
4679 ("trunc<BFP:mode><DFP_ALL:mode>2")
4680 ("trunc<DFP_ALL:mode><BFP:mode>2")
4681 ("*extend<BFP:mode><DFP_ALL:mode>2")
4682 ("*extend<DFP_ALL:mode><BFP:mode>2")
4683 ("extend<BFP:mode><DFP_ALL:mode>2")
4684 ("extend<DFP_ALL:mode><BFP:mode>2"): Clobber r1.
4686 2015-11-19 Aditya Kumar <aditya.k7@samsung.com>
4687 Sebastian Pop <s.pop@samsung.com>
4689 PR tree-optimization/68428
4690 * graphite-scop-detection.c (harmful_stmt_in_region): Do not iterate
4691 over basic blocks outside the scop.
4693 2015-11-19 Aditya Kumar <aditya.k7@samsung.com>
4694 Sebastian Pop <s.pop@samsung.com>
4696 PR tree-optimization/68341
4697 * graphite-isl-ast-to-gimple.c (get_rename_from_scev): Remove
4698 gcc_unreachable and safely fail codegen.
4699 (copy_loop_close_phi_args): Do not insert merge phis in a basic
4700 block with loop phi nodes.
4701 (edge_for_new_close_phis): New.
4702 (copy_bb_and_scalar_dependences): Call edge_for_new_close_phis.
4704 2015-11-19 Nathan Sidwell <nathan@acm.org>
4706 * config/nvptx/nvptx.h (SUPPORTS_WEAK): Define.
4707 * config/nvptx/nvptx.c (nvptx_write_function_decl): Support DECL_WEAK.
4708 (nvptx_declare_objec_name): Likewise.
4710 2015-11-19 Aditya Kumar <aditya.k7@samsung.com>
4712 * graphite-isl-ast-to-gimple.c (get_true_edge_from_guard_bb): Move...
4713 (get_false_edge_from_guard_bb): Move...
4714 * sese.c (get_false_edge_from_guard_bb)
4715 (get_true_edge_from_guard_bb): ... here.
4717 2015-11-19 David Edelsohn <dje.gcc@gmail.com>
4720 2015-11-18 Alan Modra <amodra@gmail.com>
4722 * config/rs6000/rs6000.c (use_toc_relative_ref): Ignore
4723 type-limits warning.
4726 2015-11-19 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
4728 * tree.h (desired_pro_or_demotion_p): New function.
4729 * tree-vrp.c (simplify_cond_using_ranges): Call it.
4731 2015-11-19 Michael Matz <matz@suse.de>
4733 PR rtl-optimization/68392
4734 * fwprop.c (update_uses): Use flag_checking instead of
4735 gcc_checking_assert.
4737 2015-11-19 David Malcolm <dmalcolm@redhat.com>
4739 * doc/gty.texi (Support for inheritance): Fix missing
4740 parentheses in example.
4742 2015-11-19 Marek Polacek <polacek@redhat.com>
4744 PR tree-optimization/68431
4745 * tree-vrp.c (extract_range_from_binary_expr_1): Fix condition.
4747 2015-11-19 Nathan Sidwell <nathan@acm.org>
4749 * config/nvptx/nvptx.md (atomic_compare_and_swap<mode>_1,
4750 atomic_exchange<mode>): Input values can be immediates.
4752 2015-11-19 Eric Botcazou <ebotcazou@adacore.com>
4755 * configure.ac (PLUGIN_LD_SUFFIX): Do not touch the value specified
4757 * configure: Regenerate.
4759 2015-11-19 Eric Botcazou <ebotcazou@adacore.com>
4762 * config/sparc/sp-elf.h (CTORS_SECTION_ASM_OP): Undefine.
4763 (DTORS_SECTION_ASM_OP): Likewise.
4765 2015-11-19 Jakub Jelinek <jakub@redhat.com>
4767 PR rtl-optimization/68376
4768 * ifcvt.c (noce_try_abs): Disable one_cmpl optimization if
4769 encountering x <= 0 ? ~x : x or x > 0 ? ~x : x.
4771 2015-11-19 Richard Biener <rguenther@suse.de>
4774 * tree-ssa.c (delete_tree_ssa): Revert removal of call to
4775 redirect_edge_var_map_destroy.
4777 2015-11-19 Jakub Jelinek <jakub@redhat.com>
4780 * config/i386/i386.md (simple_return): Disable if
4781 ix86_static_chain_on_stack is true.
4783 2015-11-19 Richard Sandiford <richard.sandiford@arm.com>
4786 * internal-fn.c (expand_direct_optab_fn): Handle SUBREG_PROMOTED_VAR_P
4789 2015-11-18 Jeff Law <law@redhat.com>
4791 PR tree-optimization/68198
4792 * tree-ssa-threadupdate.c (valid_jump_thread_path): Distinguish
4793 between threading a multi-way branch and a thread path that contains
4794 a multi-way branch. Disallow the case where a path contains a
4795 multi-way branch and does not thread a multi-way branch.
4796 (thread_through_all_blocks): Update comment.
4798 2015-11-18 Joseph Myers <joseph@codesourcery.com>
4801 * ginclude/stdatomic.h (atomic_thread_fence, atomic_signal_fence)
4802 (atomic_flag_test_and_set, atomic_flag_test_and_set_explicit)
4803 (atomic_flag_clear, atomic_flag_clear_explicit): Declare as
4804 functions before defining as macros.
4806 2015-11-18 Nathan Sidwell <nathan@codesourcery.com>
4808 * config/nvptx/nvptx.c (nvptx_process_pars): Fix whitespace.
4809 (nvptx_record_offload_symbol): Remove code compensating for lack
4810 of default dimension handling.
4811 (nvptx_goacc_validate_dims): Remove incorrect ARG_UNUSED markers.
4813 2015-11-18 Aditya Kumar <aditya.k7@samsung.com>
4815 * graphite-isl-ast-to-gimple.c (copy_loop_phi_args): Change the return
4816 type to bool for early exit.
4817 (translate_isl_ast_to_gimple::copy_loop_phi_nodes): Early return
4819 (translate_isl_ast_to_gimple::copy_loop_close_phi_args): Same.
4820 (add_phi_arg_for_new_expr): Enable codegen for if-block where one
4821 predecessor dominates the other.
4822 (translate_isl_ast_to_gimple::copy_cond_phi_args): Fix. When the
4823 element is not found it returns -1.
4824 (translate_isl_ast_to_gimple::translate_pending_phi_nodes): Bail
4825 out early when codegen fails.
4826 (graphite_regenerate_ast_isl): Remove codegen region when pending
4827 phis could not be generated.
4829 2015-11-18 Aditya Kumar <aditya.k7@samsung.com>
4831 * graphite-isl-ast-to-gimple.c (struct ast_build_info): Remove
4833 (class translate_isl_ast_to_gimple): Indentation.
4834 (translate_pending_phi_nodes): Comment.
4835 (add_parameters_to_ivs_params): Moved from sese.c inside class
4836 translate_isl_ast_to_gimple.
4837 (get_max_schedule_dimensions): Same.
4838 (generate_isl_context): Same.
4839 (extend_schedule): Same.
4840 (generate_isl_schedule): Same.
4841 (set_options): Same.
4842 (scop_to_isl_ast): Same.
4843 (is_valid_rename): Same.
4845 (get_rename_from_scev): Same.
4846 (get_def_bb_for_const): Same.
4847 (get_new_name): Same.
4848 (collect_all_ssa_names): Same.
4849 (copy_loop_phi_args): Same.
4850 (copy_loop_phi_nodes): Same.
4851 (copy_loop_close_phi_args): Same.
4852 (copy_loop_close_phi_nodes): Same.
4853 (copy_cond_phi_args): Same.
4854 (copy_cond_phi_nodes): Same.
4855 (graphite_copy_stmts_from_block): Same.
4856 (copy_bb_and_scalar_dependences): Same.
4857 (add_phi_arg_for_new_expr): Same.
4858 (rename_uses): Same.
4860 (set_rename_for_each_def): Same.
4861 (gsi_insert_earliest): Same.
4862 (rename_all_uses): Same.
4863 (codegen_error_p): Same.
4864 (print_isl_ast_node): Same.
4865 (translate_isl_ast_for_loop): Call function codegen_error_p.
4866 (translate_isl_ast_to_gimple::translate_isl_ast): Same.
4867 (translate_isl_ast_node_user): Make nb_loops const and release
4869 (get_true_edge_from_guard_bb): Move all free-functions early.
4870 (get_false_edge_from_guard_bb): Same.
4871 (bb_contains_loop_close_phi_nodes): Same.
4872 (bb_contains_loop_phi_nodes): Same.
4873 (is_loop_closed_ssa_use): Same.
4874 (number_of_phi_nodes): Same.
4875 (phi_uses_name): Same.
4876 (later_of_the_two): Same.
4877 (substitute_ssa_name):
4880 (get_loop_init_value): Same.
4881 (find_init_value): Same.
4882 (find_init_value_close_phi): Same.
4883 (ast_build_before_for): Same.
4884 (graphite_regenerate_ast_isl): Formatting changes.
4885 * graphite-scop-detection.c (build_cross_bb_scalars_use): Same.
4886 * sese.c (get_rename): Move to graphite-isl-ast-to-gimple.c
4888 (gsi_insert_earliest): Same.
4889 (collect_all_ssa_names): Same.
4890 (rename_all_uses): Same.
4891 (rename_uses): Same.
4892 (get_def_bb_for_const): Same.
4893 (copy_loop_phi_nodes): Same.
4894 (copy_loop_close_phi_args): Same.
4895 (copy_loop_close_phi_nodes): Same.
4896 (copy_cond_phi_args): Same.
4897 (copy_cond_phi_nodes): Same.
4898 (set_rename_for_each_def): Same.
4899 (graphite_copy_stmts_from_block): Same.
4900 (copy_bb_and_scalar_dependences): Same.
4901 (if_region_set_false_region): Same.
4902 (scev_analyzable_p): Same.
4903 * sese.h: Delete extern functions moved to graphite-isl-ast-to-gimple.c.
4905 2015-11-18 Andreas Tobler <andreast@gcc.gnu.org>
4907 * config/i386/freebsd.h (ASM_OUTPUT_MAX_SKIP_ALIGN): Bring in the
4908 commit from r125920 for FreeBSD.
4910 2015-11-18 Jason Merrill <jason@redhat.com>
4912 * ggc-page.c (ggc_globals): Change finalizers and vec_finalizers
4914 (add_finalizer): Split out from ggc_internal_alloc.
4915 (ggc_handle_finalizers): Run finalizers for the current depth.
4916 (init_ggc, ggc_pch_read): Reserve space for finalizers.
4918 2015-11-18 Sandra Loosemore <sandra@codesourcery.com>
4921 * config/nios2/nios2.c (cdx_and_immed): Remove duplicate tests
4924 2015-11-18 Pitchumani Sivanupandi <pitchumani.s@atmel.com>
4926 * config/avr/avr-mcus.def: Add new avr4 devices atmega48pb and
4927 atmega88pb. Add new avr5 devices ata5791, ata8210, ata8510, atmega168pb
4929 * doc/avr-mmcu.texi: Regenerate.
4931 2015-11-18 Nathan Sidwell <nathan@codesourcery.com>
4933 * config/nvptx/nvptx.c (bb_pair_t, bb_pair_vec_t): New types.
4934 (pseudo_node_t, struct bracket, bracket_vec_t): New types.
4935 (struct bb_sese): New struct.
4936 (bb_sese::~bb_sese, bb_sese::append, bb_sese::remove): New.
4937 (BB_GET_SESE, BB_SET_SESE): Define.
4938 (nvptx_sese_number, nvptx_sese_pseudo, nvptx_sese_color): New.
4939 (nvptx_find_sese): New.
4940 (nvptx_neuter_pars): Find SESE regions when optimizing.
4942 2015-11-18 Alan Modra <amodra@gmail.com>
4944 * config/rs6000/rs6000.c (use_toc_relative_ref): Ignore
4945 type-limits warning.
4947 2015-11-18 Richard Sandiford <richard.sandiford@arm.com>
4950 * hash-set.h (hash_set::traverse): Expand Key typedef.
4952 2015-11-18 Martin Liska <mliska@suse.cz>
4954 * config/arm/arm.c (arm_valid_target_attribute_p): Finalize
4957 2015-11-18 Nathan Sidwell <nathan@codesourcery.com>
4959 * config/nvptx/nvptx.c (global_lock_var): New.
4960 (nvptx_global_lock_addr): New.
4961 (nvptx_lockless_update): Recomment and adjust for clarity.
4962 (nvptx_lockfull_update): New.
4963 (nvptx_reduction_update): New.
4964 (nvptx_goacc_reduction_fini): Call it.
4966 2015-11-18 Bernd Schmidt <bschmidt@redhat.com>
4968 * regrename.h (struct du_head): Add target_data_1 and target_data_2
4970 * regrename.c (create_new_chain): Clear entire struct after allocating.
4972 * config/i386/i386.opt (mmitigate-rop): New option.
4973 * doc/invoke.texi (mmitigate-rop): Document.
4974 * config/i386/i386.c: Include "regrename.h".
4975 (ix86_rop_should_change_byte_p, reg_encoded_number,
4976 ix86_get_modrm_for_rop, set_rop_modrm_reg_bits, ix86_mitigate_rop): New
4978 (ix86_reorg): Call ix86_mitigate_rop if -fmitigate-rop.
4979 * config/i386/i386.md (attr "modrm_class"): New.
4980 (cmp<mode>_ccno_1, mov<mode>_xor, movstrict<mode>_xor,
4981 x86_mov<mode>cc_0_m1. x86_mov<mode>cc_0_m1_se)
4982 (x86_mov<mode>cc_0_m1_neg): Override modrm_class attribute.
4984 2015-11-18 Ilya Enkovich <enkovich.gnu@gmail.com>
4987 * config/i386/i386.c (ix86_expand_mask_vec_cmp): Add missing break.
4989 2015-11-18 Jakub Jelinek <jakub@redhat.com>
4991 PR tree-optimization/68157
4992 * tree-ssa-reassoc.c (attempt_builtin_powi): Set uid of
4993 pow_stmt or mul_stmt from stmt's uid.
4994 (reassociate_bb): Set uid of mul_stmt from stmt's uid.
4996 2015-11-18 Martin Liska <mliska@suse.cz>
4998 * haifa-sched.c (haifa_finish_h_i_d): Release reg_set_list.
5000 2015-11-18 Martin Liska <mliska@suse.cz>
5002 * tree-ssa-uninit.c (convert_control_dep_chain_into_preds):
5003 Fix GNU coding style.
5004 (find_def_preds): Use auto_vec.
5005 (destroy_predicate_vecs): Change signature of the function.
5006 (prune_uninit_phi_opnds_in_unrealizable_paths): Use the
5008 (simplify_preds_4): Use destroy_predicate_vecs instread of
5009 just releasing preds vector.
5010 (normalize_preds): Likewise.
5011 (is_use_properly_guarded): Use new signature of
5012 destroy_predicate_vecs.
5013 (find_uninit_use): Likewise.
5015 2015-11-18 Richard Biener <rguenther@suse.de>
5017 PR tree-optimization/67790
5018 * tree-vect-loop.c (vect_is_simple_reduction_1): Remove
5019 IL rewrite for MINUS_EXPR reductions, rename back to ...
5020 (vect_is_simple_reduction): ... this, removing the wrapper.
5021 (vect_force_simple_reduction): Adjust.
5022 (vectorizable_reduction): Adjust reduc_index for MINUS_EXPR
5023 reductions and make use if reduc_index in all places. For
5024 the final reduction of MINUS_EXPR use PLUS_EXPR.
5026 2015-11-18 Alan Modra <amodra@gmail.com>
5028 * configure.ac (POWERPC64_TOC_POINTER_ALIGNMENT): Pass -z norelro
5030 * configure: Regenerate.
5032 2015-11-17 Tom de Vries <tom@codesourcery.com>
5034 * tree-ssa-loop.c (pass_tree_loop_init::execute): Improve comments.
5036 2015-11-17 Tom de Vries <tom@codesourcery.com>
5038 * tree-scalar-evolution.c (scev_const_prop): Dump details if replacing
5039 uses of ssa_name with constant.
5041 2015-11-17 Tom de Vries <tom@codesourcery.com>
5043 * tree-ssa-ccp.c (do_ssa_ccp): Clear LOOP_CLOSED_SSA in loops state if
5046 2015-11-17 Tom de Vries <tom@codesourcery.com>
5048 * cfgloop.h (struct loop): Add in_oacc_kernels_region field.
5049 * omp-low.c (mark_loops_in_oacc_kernels_region): New function.
5050 (expand_omp_target): Call mark_loops_in_oacc_kernels_region.
5052 2015-11-17 Bernd Schmidt <bschmidt@redhat.com>
5054 * regrename.c (regrename_find_superclass): New function, code moved
5056 (rename_chains): ... here. Call it.
5057 * regrename.h (regrename_find_superclass): Declare.
5059 * regrename.c (record_out_operands): Terminate earlyclobbered
5063 * regrename.c (record_operand_use): Keep track of failed operands
5064 and stop appending if we see any.
5065 * regrename.h (struct operand_rr_info): Add a failed field and shrink
5068 2015-11-17 Sandra Loosemore <sandra@codesourcery.com>
5071 * doc/extend.texi (Common Function Attributes) [visibility]:
5072 Add cross-references to matching variable and type attributes.
5073 (Common Variable Attributes) [visibility]: Add missing entry.
5075 2015-11-17 Richard Sandiford <richard.sandiford@arm.com>
5077 * config/rs6000/rs6000.c (rs6000_builtin_vectorized_function): Remove
5078 entries that map directly to optabs.
5080 2015-11-17 Richard Sandiford <richard.sandiford@arm.com>
5082 * config/i386/i386.c (ix86_builtin_vectorized_function): Remove
5083 entries that map directly to optabs.
5085 2015-11-17 Richard Sandiford <richard.sandiford@arm.com>
5087 * internal-fn.h (direct_internal_fn_info): Add vectorizable flag.
5088 * internal-fn.c (direct_internal_fn_array): Update accordingly.
5089 * tree-vectorizer.h (vectorizable_function): Delete.
5090 * tree-vect-stmts.c: Include internal-fn.h.
5091 (vectorizable_internal_function): New function.
5092 (vectorizable_function): Inline into...
5093 (vectorizable_call): ...here. Explicitly reject calls that read
5094 from or write to memory. Try using an internal function before
5095 falling back on the old vectorizable_function behavior.
5097 2015-11-17 Richard Sandiford <richard.sandiford@arm.com>
5099 * target.def (builtin_vectorized_function): Take a combined_fn (in
5100 the form of an unsigned int) rather than a function decl.
5101 (builtin_md_vectorized_function): New.
5102 * targhooks.h (default_builtin_vectorized_function): Replace the
5103 fndecl argument with an unsigned int.
5104 (default_builtin_md_vectorized_function): Declare.
5105 * targhooks.c (default_builtin_vectorized_function): Replace the
5106 fndecl argument with an unsigned int.
5107 (default_builtin_md_vectorized_function): New function.
5108 * doc/tm.texi.in (TARGET_VECTORIZE_BUILTIN_MD_VECTORIZED_FUNCTION):
5110 * doc/tm.texi: Regenerate.
5111 * tree-vect-stmts.c (vectorizable_function): Update call to
5112 builtin_vectorized_function, also passing internal functions.
5113 Call builtin_md_vectorized_function for target-specific builtins.
5114 * config/aarch64/aarch64-protos.h
5115 (aarch64_builtin_vectorized_function): Replace fndecl argument
5116 with an unsigned int.
5117 * config/aarch64/aarch64-builtins.c: Include case-cfn-macros.h.
5118 (aarch64_builtin_vectorized_function): Update after above changes.
5120 * config/arm/arm-protos.h (arm_builtin_vectorized_function): Replace
5121 fndecl argument with an unsigned int.
5122 * config/arm/arm-builtins.c: Include case-cfn-macros.h
5123 (arm_builtin_vectorized_function): Update after above changes.
5125 * config/i386/i386.c: Include case-cfn-macros.h
5126 (ix86_veclib_handler): Take a combined_fn rather than a
5128 (ix86_veclibabi_svml, ix86_veclibabi_acml): Likewise. Use
5129 mathfn_built_in rather than calling builtin_decl_implicit directly.
5130 (ix86_builtin_vectorized_function) Update after above changes.
5132 * config/rs6000/rs6000.c: Include case-cfn-macros.h
5133 (rs6000_builtin_vectorized_libmass): Replace fndecl argument
5134 with a combined_fn. Use CASE_CFN_*. Use mathfn_built_in rather
5135 than calling builtin_decl_implicit directly.
5136 (rs6000_builtin_vectorized_function): Update after above changes.
5137 Use CASE_CFN_*. Move BUILT_IN_MD to...
5138 (rs6000_builtin_md_vectorized_function): ...this new function.
5139 (TARGET_VECTORIZE_BUILTIN_MD_VECTORIZED_FUNCTION): Define.
5141 2015-11-17 Richard Sandiford <richard.sandiford@arm.com>
5143 * tree-vect-patterns.c: Include internal-fn.h.
5144 (vect_recog_pow_pattern): Use IFN_SQRT instead of BUILT_IN_SQRT*.
5146 2015-11-17 Richard Sandiford <richard.sandiford@arm.com>
5148 * tree.h (BUILTIN_EXP10_P, BUILTIN_EXPONENT_P, BUILTIN_SQRT_P)
5149 (BUILTIN_CBRT_P, BUILTIN_ROOT_P): Delete.
5151 2015-11-17 Richard Sandiford <richard.sandiford@arm.com>
5153 * builtins.c (expand_errno_check, expand_builtin_mathfn)
5154 (expand_builtin_mathfn_2): Delete.
5155 (expand_builtin): Remove handling of functions with
5156 internal function equivalents.
5157 * internal-fn.def (SET_EDOM): New internal function.
5158 * internal-fn.h (set_edom_supported_p): Declare.
5159 * internal-fn.c (expand_SET_EDOM): New function.
5160 (set_edom_supported_p): Likewise.
5161 * tree-call-cdce.c: Include builtins.h and internal-fn.h.
5162 Rewrite comment at head of file.
5163 (is_call_dce_candidate): Rename to...
5164 (can_test_argument_range): ...this. Don't check gimple_call_lhs
5165 or gimple_call_builtin_p here.
5166 (edom_only_function): New function.
5167 (shrink_wrap_one_built_in_call_with_conds): New function, split out
5169 (shrink_wrap_one_built_in_call): ...here.
5170 (can_use_internal_fn, use_internal_fn): New functions.
5171 (shrink_wrap_conditional_dead_built_in_calls): Call use_internal_fn
5172 for calls that have an lhs.
5173 (pass_call_cdce::gate): Remove optimize_function_for_speed_p check.
5174 (pass_call_cdce::execute): Skip blocks that are optimized for size.
5175 Check gimple_call_builtin_p here. Use can_use_internal_fn for
5177 * opts.c (default_options_table): Enable -ftree-builtin-call-cdce
5180 2015-11-17 Richard Sandiford <richard.sandiford@arm.com>
5182 * builtins.h (called_as_built_in): Declare.
5183 * builtins.c (called_as_built_in): Make external.
5184 * internal-fn.h (expand_internal_call): Define a variant that
5185 specifies the internal function explicitly.
5186 * internal-fn.c (expand_load_lanes_optab_fn)
5187 (expand_store_lanes_optab_fn, expand_ANNOTATE, expand_GOMP_SIMD_LANE)
5188 (expand_GOMP_SIMD_VF, expand_GOMP_SIMD_LAST_LANE)
5189 (expand_GOMP_SIMD_ORDERED_START, expand_GOMP_SIMD_ORDERED_END)
5190 (expand_UBSAN_NULL, expand_UBSAN_BOUNDS, expand_UBSAN_VPTR)
5191 (expand_UBSAN_OBJECT_SIZE, expand_ASAN_CHECK, expand_TSAN_FUNC_EXIT)
5192 (expand_UBSAN_CHECK_ADD, expand_UBSAN_CHECK_SUB)
5193 (expand_UBSAN_CHECK_MUL, expand_ADD_OVERFLOW, expand_SUB_OVERFLOW)
5194 (expand_MUL_OVERFLOW, expand_LOOP_VECTORIZED)
5195 (expand_mask_load_optab_fn, expand_mask_store_optab_fn)
5196 (expand_ABNORMAL_DISPATCHER, expand_BUILTIN_EXPECT, expand_VA_ARG)
5197 (expand_UNIQUE, expand_GOACC_DIM_SIZE, expand_GOACC_DIM_POS)
5198 (expand_GOACC_LOOP, expand_GOACC_REDUCTION, expand_direct_optab_fn)
5199 (expand_unary_optab_fn, expand_binary_optab_fn): Add an internal_fn
5201 (internal_fn_expanders): Update prototype.
5202 (expand_internal_call): Define a variant that specifies the
5203 internal function explicitly. Use it to implement the previous
5205 * cfgexpand.c (expand_call_stmt): Try to expand calls to built-in
5206 functions as calls to internal functions.
5208 2015-11-17 Richard Sandiford <richard.sandiford@arm.com>
5210 * Makefile.in (MOSTLYCLEANFILES): Add cfn-operators.pd.
5211 (generated_files): Likewise.
5212 (s-cfn-operators, cfn-operators.pd): New rules.
5213 (s-match): Depend on cfn-operators.pd.
5214 * gencfn-macros.c: Expand comment to describe -o behavior.
5215 (print_define_operator_list): New function.
5216 (main): Accept -o. Call print_define_operator_list.
5217 * genmatch.c (main): Add the current directory to the include path.
5218 * match.pd (DEFINE_MATH_FN): Delete. Include cfn-operators.pd
5221 2015-11-17 Richard Sandiford <richard.sandiford@arm.com>
5223 * doc/match-and-simplify.texi: Document the "null" identifier.
5224 * genmatch.c (id_base::NULL_ID): New kind.
5225 (null_id): New variable.
5226 (get_operator): Add a parameter that says whether null identifiers
5228 (contains_id): New function.
5229 (lower_for): Skip substitutions that would have a null_id in
5230 either the match or the result.
5231 (parser::parse_for): Allow the null identifier to be used.
5232 (parser::parse_operator_list): Likewise.
5233 (main): Initialize null_id.
5235 2015-11-17 Richard Sandiford <richard.sandiford@arm.com>
5237 * match.pd: Use HYPOT and COS rather than hypot and cos.
5238 Use CASE_CFN_* macros. Guard log/exp folds with
5239 SCALAR_FLOAT_TYPE_P.
5240 * genmatch.c (internal_fn): New enum.
5241 (fn_id::fn): Change to an unsigned int.
5242 (fn_id::fn_id): Accept internal_fn too.
5243 (add_builtin): Rename to...
5244 (add_function): ...this and turn into a template.
5245 (get_operator): Only try one variation if the original name fails.
5246 Only add _EXPR if the original name was all lower case.
5247 Try converting internal and built-in function names to their
5249 (expr::gen_transform): Use maybe_build_call_expr_loc for generic.
5250 (dt_simplify::gen_1): Likewise.
5251 (dt_node::gen_kids_1): Use gimple_call_combined_fn for gimple
5252 and get_call_combined_fn for generic.
5253 (dt_simplify::gen): Use combined_fn as the type of fn_ids.
5254 (decision_tree::gen): Likewise.
5255 (main): Use lower case in the strings for {VIEW_,}CONVERT[012].
5256 Use add_function rather than add_builtin. Register internal
5258 * generic-match-head.c: Include case-cfn-macros.h.
5259 * gimple-fold.c (replace_stmt_with_simplification): Use
5260 gimple_call_combined_fn to test whether we can keep an
5262 * gimple-match.h (code_helper): Replace built_in_function
5264 * gimple-match-head.c: Include fold-const-call.h, internal-fn.h
5265 and case-fn-macros.h.
5266 (gimple_resimplify1): Use fold_const_call.
5267 (gimple_resimplify2, gimple_resimplify3): Likewise.
5268 (build_call_internal, build_call): New functions.
5269 (maybe_push_res_to_seq): Use them.
5270 (gimple_simplify): Use fold_const_call. Set *rcode to a combined_fn
5271 rather than a built-in function.
5272 * tree.h (build_call_expr_internal_loc): Declare.
5273 (maybe_build_call_expr_loc): Likewise.
5274 * tree.c (build_call_expr_internal_loc_array): New function.
5275 (maybe_build_call_expr_loc): Likewise.
5277 2015-11-17 Richard Sandiford <richard.sandiford@arm.com>
5279 * builtins.h (mathfn_built_in): Add a variant that takes
5281 * builtins.c: Include case-cfn-macros.h.
5282 (CASE_MATHFN): Use CASE_CFN_*.
5283 (CASE_MATHFN_REENT): Use CFN_ codes.
5284 (mathfn_built_in_2, mathfn_built_in_1): Replace built_in_function
5285 argument with a combined_fn.
5286 (mathfn_built_in): Add a variant that takes a combined_fn.
5287 (expand_builtin_int_roundingfn_2): Update callers accordingly.
5288 (fold_builtin_sincos, fold_builtin_classify): Likewise.
5290 2015-11-17 Richard Sandiford <richard.sandiford@arm.com>
5292 * tree-vect-patterns.c: Include case-cfn-macros.h.
5293 (vect_recog_pow_pattern): Use combined_fn instead of built-in codes.
5295 2015-11-17 Richard Sandiford <richard.sandiford@arm.com>
5297 * tree-ssa-math-opts.c: Include case-cfn-macros.h.
5298 (execute_cse_sincos_1): Use combined_fn instead of built-in codes.
5299 (pass_cse_sincos::execute): Likewise.
5301 2015-11-17 Richard Sandiford <richard.sandiford@arm.com>
5303 * tree-ssa-reassoc.c: Include case-cfn-macros.h.
5304 (stmt_is_power_of_op): Use combined_fn instead of built-in codes.
5305 (decrement_power, acceptable_pow_call): Likewise.
5306 (attempt_builtin_copysign): Likewise.
5308 2015-11-17 Richard Sandiford <richard.sandiford@arm.com>
5310 * tree-vrp.c: Include case-cfn-macros.h.
5311 (extract_range_basic): Switch on combined_fn rather than handling
5312 built-in functions and internal functions separately.
5314 2015-11-17 Richard Sandiford <richard.sandiford@arm.com>
5316 * fold-const.h (negate_mathfn_p): Take a combined_fn rather
5317 than a built_in_function.
5318 (tree_call_nonnegative_warnv_p): Take a combined_fn rather than
5320 (integer_valued_real_call_p): Likewise.
5321 * fold-const.c: Include case-cfn-macros.h
5322 (negate_mathfn_p): Take a combined_fn rather than a built_in_function.
5323 (negate_expr_p): Update accordingly.
5324 (tree_call_nonnegative_warnv_p): Take a combined_fn rather than
5326 (integer_valued_real_call_p): Likewise.
5327 (tree_invalid_nonnegative_warnv_p): Update accordingly.
5328 (integer_valued_real_p): Likewise.
5329 * gimple-fold.c (gimple_call_nonnegative_warnv_p): Update call
5330 to tree_call_nonnegative_warnv_p.
5331 (gimple_call_integer_valued_real_p): Likewise
5332 integer_valued_real_call_p.
5333 * gimple-ssa-backprop.c: Include case-cfn-macros.h.
5334 (backprop::process_builtin_call_use): Extend to combined_fn.
5335 (strip_sign_op_1): Likewise.
5336 (backprop::process_use): Don't check for built-in calls here.
5337 (backprop::execute): Likewise.
5338 (backprop::optimize_builtin_call): Update call to negate_mathfn_p.
5340 2015-11-17 Richard Sandiford <richard.sandiford@arm.com>
5342 * fold-const-call.h (fold_const_call): Replace built_in_function
5343 arguments with combined_fn arguments.
5344 * fold-const-call.c: Include case-cfn-macros.h.
5345 (fold_const_call_ss, fold_const_call_cs, fold_const_call_sc)
5346 (fold_const_call_cc, fold_const_call_sss, fold_const_call_ccc)
5347 (fold_const_call_ssss, fold_const_call_1, fold_const_call): Replace
5348 built_in_function arguments with combined_fn arguments.
5349 * builtins.c (fold_builtin_sincos, fold_builtin_1, fold_builtin_2)
5350 (fold_builtin_3): Update calls to fold_const_call.
5352 2015-11-17 Richard Sandiford <richard.sandiford@arm.com>
5354 * Makefile.in (HASH_TABLE_H): Add GGC_H.
5355 (MOSTLYCLEANFILES, generated_files): Add case-fn-macros.h.
5356 (s-case-cfn-macros, case-cfn-macros.h, build/gencfn-macros.o)
5357 (build/gencfn-macros$(build_exeext): New rules.
5358 (genprogerr): Add cfn-macros.
5359 * hash-set.h (hash_set): Use the traits value_type as the key.
5360 * gencfn-macros.c: New file.
5362 2015-11-17 Richard Sandiford <richard.sandiford@arm.com>
5364 * internal-fn.def (DEF_INTERNAL_INT_FN): New macro.
5365 (CLRSB, CLZ, CTZ, FFS, PARITY, POPCOUNT): New functions.
5366 * builtins.c (associated_internal_fn): Handle them.
5368 2015-11-17 Richard Sandiford <richard.sandiford@arm.com>
5370 * builtins.h (associated_internal_fn): Declare.
5371 (replacement_internal_fn): Likewise.
5372 * builtins.c: Include internal-fn.h
5373 (associated_internal_fn, replacement_internal_fn): New functions.
5374 * internal-fn.def (DEF_INTERNAL_FLT_FN): New macro.
5375 (ACOS, ASIN, ATAN, COS, EXP, EXP10, EXP2, EXPM1, LOG, LOG10, LOG1P)
5376 (LOG2, LOGB, SIGNIFICAND, SIN, SQRT, TAN, CEIL, FLOOR, NEARBYINT)
5377 (RINT, ROUND, TRUNC, ATAN2, COPYSIGN, FMOD, POW, REMAINDER, SCALB)
5378 (LDEXP): New functions.
5379 * internal-fn.c: Include recog.h.
5380 (unary_direct, binary_direct): New macros.
5381 (expand_direct_optab_fn): New function.
5382 (expand_unary_optab_fn): New macro.
5383 (expand_binary_optab_fn): Likewise.
5384 (direct_unary_optab_supported_p): Likewise.
5385 (direct_binary_optab_supported_p): Likewise.
5387 2015-11-17 Richard Sandiford <richard.sandiford@arm.com>
5389 * coretypes.h (tree_pair): New type.
5390 * internal-fn.def (DEF_INTERNAL_OPTAB_FN): New macro. Use it
5391 for MASK_LOAD, LOAD_LANES, MASK_STORE and STORE_LANES.
5392 * internal-fn.h (direct_internal_fn_info): New structure.
5393 (direct_internal_fn_array): Declare.
5394 (direct_internal_fn_p, direct_internal_fn): New functions.
5395 (direct_internal_fn_types, direct_internal_fn_supported_p): Declare.
5396 * internal-fn.c (not_direct, mask_load_direct, load_lanes_direct)
5397 (mask_store_direct, store_lanes_direct): New macros.
5398 (direct_internal_fn_array) New array.
5399 (get_multi_vector_move): Return the optab handler without asserting
5400 that it is available.
5401 (expand_LOAD_LANES): Rename to...
5402 (expand_load_lanes_optab_fn): ...this and add an optab argument.
5403 (expand_STORE_LANES): Rename to...
5404 (expand_store_lanes_optab_fn): ...this and add an optab argument.
5405 (expand_MASK_LOAD): Rename to...
5406 (expand_mask_load_optab_fn): ...this and add an optab argument.
5407 (expand_MASK_STORE): Rename to...
5408 (expand_mask_store_optab_fn): ...this and add an optab argument.
5409 (direct_internal_fn_types, direct_optab_supported_p)
5410 (multi_vector_optab_supported_p, direct_internal_fn_supported_p)
5411 (direct_internal_fn_supported_p): New functions.
5412 (direct_mask_load_optab_supported_p): New macro.
5413 (direct_load_lanes_optab_supported_p): Likewise.
5414 (direct_mask_store_optab_supported_p): Likewise.
5415 (direct_store_lanes_optab_supported_p): Likewise.
5417 2015-11-17 Richard Sandiford <richard.sandiford@arm.com>
5419 * tree-core.h (internal_fn): Move immediately after the definition
5420 of built_in_function.
5421 (combined_fn): New enum.
5422 * tree.h (as_combined_fn, builtin_fn_p, as_builtin_fn)
5423 (internal_fn_p, as_internal_fn): New functions.
5424 (get_call_combined_fn, combined_fn_name): Declare.
5425 * tree.c (get_call_combined_fn): New function.
5426 (combined_fn_name): Likewise.
5427 * gimple.h (gimple_call_combined_fn): Declare.
5428 * gimple.c (gimple_call_combined_fn): New function.
5430 2015-11-17 Martin Sebor <msebor@redhat.com>
5433 * cp/init.c (build_new_1): Check for expression constness
5436 2015-11-17 Sandra Loosemore <sandra@codesourcery.com>
5439 * doc/invoke.texi (Option Summary): Add -mms-bitfields to x86
5441 (x86 Options): Add -mms-bitfields and -mno-ms-bitfields. Move
5442 discussion of the Microsoft structure layout details here from
5443 its former home in extend.texi.
5444 * doc/extend.texi (x86 Variable Attributes): Replace detailed
5445 discussion with pointer to its new location. Add cross-reference
5446 to corresponding type attributes.
5447 (x86 Type Attributes): Add cross-references to command-line options
5448 and variable attributes.
5450 2015-11-17 Ilya Enkovich <enkovich.gnu@gmail.com>
5453 * targhooks.c (default_get_mask_mode): Filter out
5454 scalar modes returned by mode_for_vector.
5456 2015-11-17 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5459 * config/arm/arm.c (arm_block_set_unaligned_vect): Keep track of
5460 offset from dstbase and use it appropriately in
5461 adjust_automodify_address.
5462 (arm_block_set_aligned_vect): Likewise.
5464 2015-11-17 Eric Botcazou <ebotcazou@adacore.com>
5466 * config/visium/t-visium (MULTILIB_OPTIONS): Add muser-mode.
5467 (MULTILIB_DIRNAMES): Adjust accordingly.
5469 2015-11-17 James Greenhalgh <james.greenhalgh@arm.com>
5471 * config/aarch64/aarch64-cores.def (cortex-a35): New.
5472 * config/aarch64/aarch64.c (cortexa35_tunings): New.
5473 * config/aarch64/aarch64-tune.md: Regenerate.
5474 * doc/invoke.texi (-mcpu): Add Cortex-A35
5476 2015-11-17 Uros Bizjak <ubizjak@gmail.com>
5479 * config/i386/i386.h (BIGGEST_ALIGNMENT): Always define
5481 * config/i386/sse.md (*mov<mode>_internal): Always enable
5482 AVX and SSE unaligned moves for IAMCU.
5484 2015-11-17 Venkataramanan Kumar <Venkataramanan.Kumar@amd.com>
5486 * tree-if-conv.c: Include varasm.h
5487 (ref_DR_map): Define.
5488 (baseref_DR_map): Like wise
5489 (struct ifc_dr): Add new tree predicate field.
5490 (hash_memrefs_baserefs_and_store_DRs_read_written_info): New function.
5491 (memrefs_read_or_written_unconditionally): Remove.
5492 (write_memrefs_written_at_least_once): Remove.
5493 (ifcvt_memrefs_wont_trap): Use hash maps to query
5494 unconditional read/written information.
5495 (if_convertible_loop_p_1): Initialize hash maps and predicates
5496 before hashing data references and delete hashmaps at the end.
5498 2015-11-16 Thomas Preud'homme <thomas.preudhomme@arm.com>
5501 * doc/invoke.texi (Optimize Options): Move @end table to the right
5504 2015-11-16 Sandra Loosemore <sandra@codesourcery.com>
5507 * doc/extend.texi (__builtin_assume_aligned): Fix formatting of
5510 2015-11-16 Michael Meissner <meissner@linux.vnet.ibm.com>
5512 * config/rs6000/vsx.md (VSX_L): Do not include IBM extended double
5513 128-bit types, just types that fit in a single vector.
5514 * config/rs6000/rs6000.md (FMOVE128_GPR): Likewise.
5516 2015-11-16 David Wohlferd <dw@LimeGreenSocks.com>
5518 * doc/md.texi ('#' and '*' constraint modifiers): Do not include these
5519 in the user documentation.
5520 (define_peephole2, define_split): Similarly.
5522 2015-11-16 Andris Pavenis <andris.pavenis@iki.fi>
5524 * lto-streamer-out.c (write_global_references): Adjust integer type.
5525 (lto_output_decl_state_refs): Likewise.
5527 2015-11-16 James Greenhalgh <james.greenhalgh@arm.com>
5529 * config/arm/arm-cores.def (cortex-a35): New.
5530 * config/arm/arm.c (arm_cortex_a35_tune): New.
5531 * config/arm/arm-tables.opt: Regenerate.
5532 * config/arm/arm-tune.md: Regenerate.
5533 * config/arm/bpabi.h (BE8_LINK_SPEC): Add cortex-a35.
5534 * config/arm/t-aprofile: Likewise.
5535 * doc/invoke.texi (-mcpu): Likewise.
5537 2015-11-16 Jim Wilson <jim.wilson@linaro.org>
5539 * config/arm/t-aprofile (MULTILIB_MATCHES): Add lines for exynos-m1
5540 and qdf24xx and xgene1 to match -march=armv8-a.
5542 2015-11-16 Segher Boessenkool <segher@kernel.crashing.org>
5544 PR rtl-optimization/68330
5545 * simplify-rtx.c (simplify_unary_operation_1): Simplify SIGN_EXTEND
5546 of LSHIFTRT by a non-zero constant integer.
5548 2015-11-16 Richard Biener <rguenther@suse.de>
5550 PR tree-optimization/68306
5551 * tree-vect-data-refs.c (vect_verify_datarefs_alignment): Fix
5552 bogus copying from verify_data_ref_alignment and use continue
5555 2015-11-16 Oleg Endo <olegendo@gcc.gnu.org>
5556 Kaz Kojima <kkojima@gcc.gnu.org>
5559 * config/sh/sh.md (addsi3_scr): Handle reg overlap of operands[0] and
5561 (*addsi3): Add another insn_and_split variant for reload.
5563 2015-11-16 Richard Biener <rguenther@suse.de>
5566 * cfgexpand.c (pass_expand::execute): Destroy the edge
5567 redirection var map before setting RTL CFG hooks.
5569 2015-11-16 Alan Lawrence <alan.lawrence@arm.com>
5571 * config/i386/sse.md (reduc_splus_v8df): Rename to...
5572 (reduc_plus_scal_v8df): ...here; reduce to temp and extract scalar.
5574 (reduc_splus_v4df): Rename to...
5575 (reduc_plus_scal_v4df): ...here; reduce to temp and extract scalar.
5577 (reduc_splus_v2df): Rename to...
5578 (reduc_plus_scal_v2df): ...here; reduce to temp and extract scalar.
5580 (reduc_splus_v16sf): Rename to...
5581 (reduc_plus_scal_v16sf): ...here; reduce to temp and extract scalar.
5583 (reduc_splus_v8sf): Rename to...
5584 (reduc_plus_scal_v8sf): ...here; reduce to temp and extract scalar.
5586 (reduc_splus_v4sf): Rename to...
5587 (reduc_plus_scal_v4sf): ...here; reduce to temp and extract scalar.
5589 (reduc_<code>_<mode>, all 3 variants): Rename each to...
5590 (reduc_<code>_scal_<mode>): ...here; reduce to temp and extract scalar.
5592 (reduc_umin_v8hf): Rename to...
5593 (reduc_umin_scal_v8hf): ...here; reduce to temp and extract scalar.
5595 2015-11-16 Kirill Yukhin <kirill.yukhin@intel.com>
5597 * omp-low.c (pass_omp_simd_clone::gate): If target allows - call
5598 without additional conditions.
5599 * doc/extend.texi (@item simd): New.
5601 2015-11-16 Tom de Vries <tom@codesourcery.com>
5603 * passes.c (first_pass_instance): Remove variable.
5604 (execute_todo): Remove setting of first_pass_instance.
5605 * tree-pass.h (first_pass_instance): Remove declaration.
5607 2015-11-16 Tom de Vries <tom@codesourcery.com>
5609 * passes.def: Add arg to pass_ccp pass instantiation.
5610 * tree-ssa-ccp.c (ccp_finalize): Add param nonzero_p. Use nonzero_p
5611 instead of first_pass_instance.
5612 (do_ssa_ccp): Add and handle param nonzero_p.
5613 (pass_ccp::pass_ccp): Initialize nonzero_p.
5614 (pass_ccp::set_pass_param): New member function. Set nonzero_p.
5615 (pass_ccp::execute): Call do_ssa_ccp with extra arg.
5616 (pass_ccp::nonzero_p): New private member.
5618 2015-11-16 Tom de Vries <tom@codesourcery.com>
5620 * passes.def: Add arg to pass_object_sizes pass instantiation.
5621 * tree-object-size.c (pass_object_sizes::pass_object_sizes): Initialize
5623 (pass_object_sizes::set_pass_param): New member function. Set
5625 (pass_object_sizes::insert_min_max_p): New private member.
5626 (pass_object_sizes::execute): Use insert_min_max_p instead of
5627 first_pass_instance.
5629 2015-11-16 Tom de Vries <tom@codesourcery.com>
5631 * passes.def: Add arg to pass_dominator pass instantiation.
5632 * tree-pass.h (first_pass_instance): Remove pass_dominator-related bit
5634 * tree-ssa-dom.c (pass_dominator::pass_dominator): Initialize
5635 may_peel_loop_headers_p.
5636 (pass_dominator::set_pass_param): New member function. Set
5637 may_peel_loop_headers_p.
5638 (pass_dominator::may_peel_loop_headers_p): New private member.
5639 (pass_dominator::execute): Use may_peel_loop_headers_p instead of
5640 first_pass_instance.
5642 2015-11-16 Tom de Vries <tom@codesourcery.com>
5644 * passes.def: Add arg to pass_reassoc pass instantiation.
5645 * tree-ssa-reassoc.c (reassoc_insert_powi_p): New static variable.
5646 (acceptable_pow_call, reassociate_bb): Use reassoc_insert_powi_p instead
5647 of first_pass_instance.
5648 (execute_reassoc): Add and handle insert_powi_p parameter.
5649 (pass_reassoc::insert_powi_p): New private member.
5650 (pass_reassoc::pass_reassoc): Initialize insert_powi_p.
5651 (pass_reassoc::set_pass_param): New member function. Set insert_powi_p.
5652 (pass_reassoc::execute): Call execute_reassoc with extra arg.
5654 2015-11-16 Tom de Vries <tom@codesourcery.com>
5656 * gdbhooks.py (class PassNames): Handle extra arg NEXT_PASS argument.
5657 * gen-pass-instances.awk (handle_line): Same.
5658 * pass_manager.h (class pass_manager): Define and undefine
5660 * passes.c (opt_pass::set_pass_param): New function.
5661 (pass_manager::pass_manager): Define and undefine NEXT_PASS_WITH_ARG.
5662 * passes.def: Add extra arg to NEXT_PASS (pass_vrp).
5663 * tree-pass.h (gimple_opt::set_pass_param): Declare.
5664 * tree-vrp.c (vrp_finalize, execute_vrp): Add and handle
5665 warn_array_bounds_p parameter.
5666 (pass_vrp::pass_vrp): Initialize warn_array_bounds_p.
5667 (pass_vrp::set_pass_param): New function.
5668 (pass_vrp::execute): Add warn_array_bounds_p arg to execute_vrp call.
5669 (pass_vrp::warn_array_bounds_p): New private member.
5671 2015-11-16 Eric Botcazou <ebotcazou@adacore.com>
5673 * config/sparc/sparc.c (sparc_emit_probe_stack_range): Adjust.
5674 (output_probe_stack_range): Rotate the loop and simplify.
5676 2015-11-16 Eric Botcazou <ebotcazou@adacore.com>
5678 * config/rs6000/rs6000.c (rs6000_emit_probe_stack_rang): Adjust.
5679 (output_probe_stack_range): Rotate the loop and simplify.
5681 2015-11-16 Eric Botcazou <ebotcazou@adacore.com>
5683 * config/i386/i386.c (ix86_adjust_stack_and_probe): Adjust and use
5684 an lea instruction when possible.
5685 (output_adjust_stack_and_probe): Rotate the loop and simplify.
5686 (ix86_emit_probe_stack_range): Adjust.
5687 (output_probe_stack_range): Rotate the loop and simplify.
5689 2015-11-16 Christian Bruel <christian.bruel@st.com>
5691 * config/arm/arm_neon.h: Remove #ifndef check on __ARM_NEON.
5692 Replace #ifdef __ARM_FEATURE_CRYPTO, __ARM_FEATURE_FMA, __ARM_FP
5693 with appropriate pragma GCC target.
5695 2015-11-16 Christian Bruel <christian.bruel@st.com>
5698 * config/arm/arm-c.c (arm_cpu_builtins): Conditionally set and reset
5699 __ARM_FEATURE_FMA and __ARM_NEON_FP, __ARM_FP.
5701 2015-11-16 James Greenhalgh <james.greenhalgh@arm.com>
5703 * config/aarch64/aarch64.c (cortexa57_branch_costs): New.
5704 (cortexa57_tunings): Use it.
5706 2015-11-16 Christian Bruel <christian.bruel@st.com>
5709 * config/arm/arm-c.c (arm_cpu_builtins): Set or reset
5710 __ARM_FEATURE_CRYPTO, __VFP_FP__, __ARM_NEON__
5711 (arm_pragma_target_parse): Change check for arm_cpu_builtins.
5713 * config/arm/arm.c (arm_can_inline_p): Check FPUs.
5714 (arm_valid_target_attribute_rec): Handle -mfpu attribute target.
5715 * doc/invoke.texi (-mfpu=): Mention attribute and pragma.
5716 * doc/extend.texi (-mfpu=): Describe attribute.
5718 2015-11-16 Christian Bruel <christian.bruel@st.com>
5721 * config/arm/arm-protos.h (arm_init_neon_builtins): Declare.
5722 * config/arm/arm.c (arm_valid_target_attribute_tree): Call
5723 arm_init_neon_builtins.
5724 * config/arm/arm-builtins.c (arm_init_neon_builtins): Split into...
5725 (arm_init_neon_builtins_internal)
5726 (arm_init_crypto_builtins_internal):
5727 Test and set neon_set_p, neon_crypto_set_p.
5728 (neon_set_p, neon_crypto_set_p): New static booleans.
5730 2015-11-16 Christian Bruel <christian.bruel@st.com>
5733 * config/arm/arm.c (arm_fpu_desc): Remove.
5734 (all_fpus): Make global.
5735 (arm_option_override): Use FPU TARGET accessors.
5736 (arm_declare_function_name): Likewise.
5737 * config/arm/arm.h (TARGET_VFP, TARGET_VFPD32, TARGET_VFP5)
5738 (TARGET_VFP_SINGLE, TARGET_VFP_DOUBLE, TARGET_NEON_FP16)
5739 (TARGET_FP16, TARGET_FMA, TARGET_FPU_ARMV8, TARGET_CRYPTO)
5740 (TARGET_NEON): Likewise.
5741 (all_fpus): Declare extern.
5742 (TARGET_FPU_NAME, TARGET_FPU_MODEL, TARGET_FPU_REV)
5743 (TARGET_FPU_REGS, TARGET_FPU_FEATURES): Define all_fpus accessors.
5745 2015-11-15 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
5748 * sdbout.c: Include emit-rtl.h and function.h.
5750 2015-11-15 Gerald Pfeifer <gerald@pfeifer.com>
5752 * config/i386/freebsd.h (SUBTARGET32_DEFAULT_CPU): Change to i586.
5753 Remove support for FreeBSD 5 and earlier.
5755 2015-11-14 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
5757 * configure: Regenerate.
5758 * configure.ac: Always define ENABLE_OFFLOADING.
5759 * cgraph.c (cgraph_node::create): Adjust.
5760 * gcc.c (process_command): Likewise.
5761 * omp-low.c (create_omp_child_function): Likewise.
5762 (expand_omp_target): Likewise.
5763 * varpool.c (varpool_node::get_create): Likewise.
5765 2015-11-14 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
5767 * defaults.h (EH_RETURN_HANDLER_RTX): New default definition.
5768 * df-scan.c (df_get_exit_block_use_set): Adjust.
5769 * except.c (expand_eh_return): Likewise.
5771 2015-11-14 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
5773 * config/i386/i386.h (TARGET_PECOFF): Remove define.
5774 * defaults.h (TARGET_PECOFF): New default definition.
5775 * varasm.c (handle_vtv_comdat_section): Adjust.
5777 2015-11-14 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
5779 * defaults.h: New definition of SDB_DEBUGGING_INFO.
5780 * doc/tm.texi: Regenerate.
5781 * doc/tm.texi.in: Adjust.
5782 * final.c (rest_of_clean_state): Remove check if
5783 SDB_DEBUGGING_INFO is defined.
5784 * function.c (number_blocks): Likewise.
5785 * output.h: Likewise.
5786 * sdbout.c: Likewise.
5787 * toplev.c (process_options): Likewise.
5789 2015-11-14 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
5791 * gsyms.h (enum sdb_type): Remove code for EXTENDED_SDB_BASIC_TYPES.
5792 (enum sdb_masks): Likewise.
5793 * sdbout.c (plain_type_1): Likewise.
5794 * system.h: Poison EXTENDED_SDB_BASIC_TYPES macro.
5796 2015-11-14 Jakub Jelinek <jakub@redhat.com>
5798 * omp-low.c (lower_omp_ordered): Add argument to GOMP_SMD_ORDERED_*
5799 internal calls - 0 if ordered simd and 1 for ordered threads simd.
5800 * tree-vectorizer.c (adjust_simduid_builtins): If GOMP_SIMD_ORDERED_*
5801 argument is 1, replace it with GOMP_ordered_* call instead of removing
5804 2015-11-13 Rich Felker <dalias@libc.org>
5806 * config/sh/sh.md (symGOT_load): Suppress __stack_chk_guard
5807 address loading hack for FDPIC targets.
5809 2015-11-13 Ajit Agarwal <ajitkum@xilinx.com>
5810 Jeff Law <law@redhat.com>
5812 * Makefile.in (OBJS): Add gimple-ssa-split-paths.o
5813 * common.opt (-fsplit-paths): New flag controlling path splitting.
5814 * doc/invoke.texi (fsplit-paths): Document.
5815 * opts.c (default_options_table): Add -fsplit-paths to -O2.
5816 * passes.def: Add split_paths pass.
5817 * timevar.def (TV_SPLIT_PATHS): New timevar.
5818 * tracer.c: Include "tracer.h"
5819 (ignore_bb_p): No longer static.
5820 (transform_duplicate): New function, broken out of tail_duplicate.
5821 (tail_duplicate): Use transform_duplicate.
5822 * tracer.h (ignore_bb_p): Declare
5823 (transform_duplicate): Likewise.
5824 * tree-pass.h (make_pass_split_paths): Declare.
5825 * gimple-ssa-split-paths.c: New file.
5827 2015-11-13 Kai Tietz <ktietz70@googlemail.com>
5828 Marek Polacek <polacek@redhat.com>
5829 Jason Merrill <jason@redhat.com>
5831 * convert.c (maybe_fold_build1_loc): New.
5832 (maybe_fold_build2_loc): New.
5833 (convert_to_pointer_1): Split out from convert_to_pointer.
5834 (convert_to_pointer_nofold): New.
5835 (convert_to_real_1): Split out from convert_to_real.
5836 (convert_to_real_nofold): New.
5837 (convert_to_integer_1): Split out from convert_to_integer.
5838 (convert_to_integer_nofold): New.
5839 (convert_to_complex_1): Split out from convert_to_complex.
5840 (convert_to_complex_nofold): New.
5841 * convert.h: Declare new functions.
5842 * tree-complex.c (create_one_component_var): Break up line to
5843 avoid sequence point issues.
5845 2015-11-13 Jason Merrill <jason@redhat.com>
5847 * fold-const.c (fold_convert_const): Fold changing cv-quals on
5850 * hash-map.h (hash_map::empty): New.
5852 2015-11-13 Nathan Sidwell <nathan@codesourcery.com>
5854 * omp-low.c (scan_sharing_clauses): Accept INDEPENDENT, AUTO & SEQ.
5855 (oacc_loop_fixed_partitions): Correct return type to bool.
5856 (oacc_loop_auto_partitions): New.
5857 (oacc_loop_partition): Take mask argument, call
5858 oacc_loop_auto_partitions.
5859 (execute_oacc_device_lower): Provide mask to oacc_loop_partition.
5861 2015-11-13 Michael Meissner <meissner@linux.vnet.ibm.com>
5863 * config/rs6000/constraints.md (we constraint): New constraint for
5864 64-bit power9 vector support.
5865 (wL constraint): New constraint for the element in a vector that
5866 can be addressed by the MFVSRLD instruction.
5868 * config/rs6000/rs6000-protos.h (convert_float128_to_int): Add
5870 (convert_int_to_float128): Likewise.
5871 (rs6000_generate_compare): Add support for ISA 3.0 (power9)
5872 hardware support for IEEE 128-bit floating point.
5873 (rs6000_expand_float128_convert): Likewise.
5874 (convert_float128_to_int): Likewise.
5875 (convert_int_to_float128): Likewise.
5877 * config/rs6000/rs6000.md (UNSPEC_ROUND_TO_ODD): New unspecs for
5878 ISA 3.0 hardware IEEE 128-bit floating point.
5879 (UNSPEC_IEEE128_MOVE): Likewise.
5880 (UNSPEC_IEEE128_CONVERT): Likewise.
5881 (FMA_F): Add support for IEEE 128-bit floating point hardware support.
5882 (Ff): Add support for DImode.
5884 (any_fix code iterator): New and updated iterators for IEEE
5885 128-bit floating point hardware support.
5886 (any_float code iterator): Likewise.
5887 (s code attribute): Likewise.
5888 (su code attribute): Likewise.
5889 (az code attribute): Likewise.
5890 (uns code attribute): Likewise.
5891 (neg<mode>2, FLOAT128 iterator): Add support for IEEE 128-bit
5892 floating point hardware support.
5893 (abs<mode>2, FLOAT128 iterator): Likewise.
5894 (add<mode>3, IEEE128 iterator): New insns for IEEE 128-bit
5895 floating point hardware.
5896 (sub<mode>3, IEEE128 iterator): Likewise.
5897 (mul<mode>3, IEEE128 iterator): Likewise.
5898 (div<mode>3, IEEE128 iterator): Likewise.
5899 (copysign<mode>3, IEEE128 iterator): Likewise.
5900 (sqrt<mode>2, IEEE128 iterator): Likewise.
5901 (neg<mode>2, IEEE128 iterator): Likewise.
5902 (abs<mode>2, IEEE128 iterator): Likewise.
5903 (nabs<mode>2, IEEE128 iterator): Likewise.
5904 (fma<mode>4_hw, IEEE128 iterator): Likewise.
5905 (fms<mode>4_hw, IEEE128 iterator): Likewise.
5906 (nfma<mode>4_hw, IEEE128 iterator): Likewise.
5907 (nfms<mode>4_hw, IEEE128 iterator): Likewise.
5908 (extend<SFDF:mode><IEEE128:mode>2_hw): Likewise.
5909 (trunc<mode>df2_hw, IEEE128 iterator): Likewise.
5910 (trunc<mode>sf2_hw, IEEE128 iterator): Likewise.
5911 (fix_fixuns code attribute): Likewise.
5912 (float_floatuns code attribute): Likewise.
5913 (fix<uns>_<mode>si2_hw): Likewise.
5914 (fix<uns>_<mode>di2_hw): Likewise.
5915 (float<uns>_<mode>si2_hw): Likewise.
5916 (float<uns>_<mode>di2_hw): Likewise.
5917 (xscvqp<su>wz_<mode>): Likewise.
5918 (xscvqp<su>dz_<mode>): Likewise.
5919 (xscv<su>dqp_<mode): Likewise.
5920 (ieee128_mfvsrd): Likewise.
5921 (ieee128_mfvsrwz): Likewise.
5922 (ieee128_mtvsrw): Likewise.
5923 (ieee128_mtvsrd): Likewise.
5924 (trunc<mode>df2_odd): Likewise.
5925 (cmp<mode>_h): Likewise.
5926 (128-bit GPR splitters): Don't split a 128-bit move that is a
5927 direct move between GPR and vector registers using ISA 3.0 direct
5929 (maddld4): Add support for the ISA 3.0 integer multiply-add
5932 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Add ISA 3.0
5934 (rs6000_init_hard_regno_mode_ok): If ISA 3.0 and 64-bit, enable we
5935 constraint. Disable the VSX<->GPR direct move helpers if we have
5936 the MFVSRLD and MTVSRDD instructions.
5937 (rs6000_secondary_reload_simple_move): Add support for doing
5938 vector direct moves directly without additional scratch registers
5939 if we have ISA 3.0 instructions.
5940 (rs6000_secondary_reload_direct_move): Update comments.
5941 (rs6000_output_move_128bit): Add support for ISA 3.0 vector
5944 * config/rs6000/vsx.md (vsx_mov<mode>): Add support for ISA 3.0
5945 direct move instructions.
5946 (vsx_movti_64bit): Likewise.
5947 (vsx_extract_<mode>): Likewise.
5949 * config/rs6000/rs6000.h (VECTOR_ELEMENT_MFVSRLD_64BIT): New
5950 macros for ISA 3.0 direct move instructions.
5951 (TARGET_DIRECT_MOVE_128): Likewise.
5952 (TARGET_MADDLD): Add support for the ISA 3.0 integer multiply-add
5955 * doc/md.texi (RS/6000 constraints): Document we, wF, wG, wL
5956 constraints. Update wa documentation to say not to use %x<n> on
5957 instructions that only take Altivec registers.
5959 2015-11-13 David Malcolm <dmalcolm@redhat.com>
5961 * Makefile.in (OBJS): Add gcc-rich-location.o.
5962 * diagnostic.c (diagnostic_append_note): Pass line_table to
5964 (emit_diagnostic): Likewise.
5966 (inform_n): Likewise.
5967 (warning): Likewise.
5968 (warning_at): Likewise.
5969 (warning_n): Likewise.
5970 (pedwarn): Likewise.
5971 (permerror): Likewise.
5973 (error_n): Likewise.
5974 (error_at): Likewise.
5976 (fatal_error): Likewise.
5977 (internal_error): Likewise.
5978 (internal_error_no_backtrace): Likewise.
5979 (source_range::debug): Likewise.
5980 * gcc-rich-location.c: New file.
5981 * gcc-rich-location.h: New file.
5982 * genmatch.c (fatal_at): Pass line_table to rich_location ctor.
5983 (warning_at): Likewise.
5984 * gimple.h (gimple_set_block): Use set_block function.
5985 * input.c (dump_line_table_statistics): Dump stats on how many
5986 ranges were optimized vs how many needed ad-hoc table.
5987 (write_digit_row): Add "map" param; use its range_bits
5988 to calculate the per-character offset.
5989 (dump_location_info): Print the range and column bits for each
5990 ordinary map. Use the range bits to calculate the per-character
5991 offset. Pass the map as a new param to the various calls to
5992 write_digit_row. Eliminate uses of
5993 ORDINARY_MAP_NUMBER_OF_COLUMN_BITS.
5994 * print-tree.c (print_node): Print any source range information.
5995 * rtl-error.c (diagnostic_for_asm): Likewise.
5996 * toplev.c (general_init): Initialize line_table's
5998 * tree-cfg.c (move_block_to_fn): Likewise.
5999 (move_block_to_fn): Likewise.
6000 * tree-inline.c (copy_phis_for_bb): Likewise.
6001 * tree.c (tree_set_block): Likewise.
6002 (get_pure_location): New function.
6003 (set_source_range): New functions.
6004 (set_block): New function.
6005 (set_source_range): New functions.
6006 * tree.h (CAN_HAVE_RANGE_P): New.
6007 (EXPR_LOCATION_RANGE): New.
6008 (EXPR_HAS_RANGE): New.
6009 (get_expr_source_range): New inline function.
6010 (DECL_LOCATION_RANGE): New.
6011 (set_source_range): New decls.
6012 (get_decl_source_range): New inline function.
6014 2015-11-13 Alan Lawrence <alan.lawrence@arm.com>
6016 PR tree-optimization/67682
6017 * tree-vect-slp.c (vect_split_slp_store_group): New.
6018 (vect_analyze_slp_instance): During basic block SLP, recurse on
6019 subgroups if vect_build_slp_tree fails after 1st vector.
6021 2015-11-13 Christian Bruel <christian.bruel@st.com>
6024 * config/arm/arm.c (arm_option_override): Move NEON check...
6025 (arm_option_check_internal): here
6026 (arm_file_start): Move .fpu print...
6027 (arm_declare_function_name): here
6028 (arm_option_print): Dump current fpu name.
6029 * config/arm/arm.opt (arm_fpu_index): Mark Save.
6031 2015-11-13 Segher Boessenkool <segher@kernel.crashing.org>
6032 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
6034 * combine.c (subst): Don't substitute or simplify when
6035 handling register-wise widening multiply.
6036 (force_to_mode): Likewise.
6038 2015-11-13 Richard Sandiford <richard.sandiford@arm.com>
6040 PR tree-optimization/68264
6041 * tree-call-cdce.c (gen_one_condition): Update commentary.
6042 (gen_conditions_for_pow_int_base): Invert the sense of the tests
6043 passed to gen_one_condition.
6044 (gen_conditions_for_domain): Likewise. Use unordered comparisons.
6045 (shrink_wrap_one_built_in_call): Invert the sense of the tests,
6046 using EDGE_FALSE_VALUE for edges to the call block and
6047 EDGE_TRUE_VALUE for the others.
6049 2015-11-13 Nathan Sidwell <nathan@codesourcery.com>
6051 * config/nvptx/nvptx.c (nvptx_generate_vector_shuffle): Deal with
6054 2015-11-13 Nathan Sidwell <nathan@codesourcery.com>
6056 * gimplify.c (oacc_default_clause): Use inform for enclosing scope.
6058 2015-11-13 Tom de Vries <tom@codesourcery.com>
6060 * gen-pass-instances.awk (handle_line): Rename prefix_len var to
6063 2015-11-13 Tom de Vries <tom@codesourcery.com>
6065 * gen-pass-instances.awk (handle_line): Add args_str variable.
6067 2015-11-13 Martin Liska <mliska@suse.cz>
6069 * graphite-poly.c (free_scop): Release scop->drs vector.
6070 * graphite-scop-detection.c (scop_detection::harmful_stmt_in_region):
6072 (try_generate_gimple_bb): Use vNULL as a default initialization
6075 2015-11-13 Martin Liska <mliska@suse.cz>
6078 * ipa-icf.c (sem_item_optimizer::traverse_congruence_split):
6079 Replace array initialization (using a variable post-increment)
6080 that possible triggers multiple unsequenced modifications
6081 with a pair of pushes to a vector.
6083 2015-11-13 Richard Biener <rguenther@suse.de>
6085 PR tree-optimization/68306
6086 * tree-vect-data-refs.c (verify_data_ref_alignment): Move
6087 loop related checks ...
6088 (vect_verify_datarefs_alignment): ... here.
6089 (vect_slp_analyze_and_verify_node_alignment): Compute and
6090 verify alignment of the single DR that it matters.
6091 * tree-vect-stmts.c (vectorizable_store): Add an assert.
6092 (vectorizable_load): Add a comment.
6093 * tree-vect-slp.c (vect_analyze_slp_cost_1): Fix DR used
6094 for determining load cost.
6096 2015-11-13 Ilya Enkovich <enkovich.gnu@gmail.com>
6098 * tree-vect-loop.c (vect_determine_vectorization_factor): Check
6099 mix of boolean and integer vectors in a single statement.
6100 * tree-vect-slp.c (vect_mask_constant_operand_p): New.
6101 (vect_get_constant_vectors): Use vect_mask_constant_operand_p to
6102 determine constant type.
6103 * tree-vect-stmts.c (vectorizable_comparison): Provide vectype
6104 for loop invariants.
6106 2015-11-13 Alan Hayward <alan.hayward@arm.com>
6108 PR tree-optimization/66558
6109 * tree-vect-loop.c (is_integer_induction):Add.
6110 (vectorizable_reduction): Add integer induction checks.
6112 2015-11-13 Christophe Lyon <christophe.lyon@linaro.org>
6114 Revert [ARM] Remove neon-testgen.ml and generated tests.
6116 2015-11-12 Christophe Lyon <christophe.lyon@linaro.org>
6118 [ARM] Remove neon-testgen.ml and generated tests.
6120 * config/arm/neon-testgen.ml: Remove.
6122 2015-11-13 Richard Biener <rguenther@suse.de>
6124 * tree-vect-loop.c (vect_analyze_loop_2): Add fatal parameter.
6125 Signal fatal failure if early checks fail.
6126 (vect_analyze_loop): If vect_analyze_loop_2 fails fatally
6127 do not bother testing further vector sizes.
6129 2015-11-13 Uros Bizjak <ubizjak@gmail.com>
6131 * config/i386/predicates.md (misaligned_operand): Return true if
6132 operand is aligned to less than its natural alignmnet.
6134 2015-11-13 Ilya Enkovich <enkovich.gnu@gmail.com>
6136 * doc/md.texi (vec_cmp@var{m}@var{n}): New item.
6137 (vec_cmpu@var{m}@var{n}): New item.
6138 (vcond@var{m}@var{n}): Specify comparison is signed.
6139 (vcondu@var{m}@var{n}): New item.
6140 (vcond_mask_@var{m}@var{n}): New item.
6141 (maskload@var{m}@var{n}): New item.
6142 (maskstore@var{m}@var{n}): New item.
6144 2015-11-13 Ilya Enkovich <enkovich.gnu@gmail.com>
6146 * tree-vect-stmts.c (vectorizable_mask_load_store): Check
6147 types of stored value and storage are compatible.
6149 2015-11-13 Andris Pavenis <andris.pavenis@iki.fi>
6151 * gcc.c (POST_LINK_SPEC): Define if not already defined.
6152 (LINK_COMMAND_SPEC): Use post_link.
6153 (post_link_spec): New, initialize to POST_LINK_SPEC.
6154 (post_link): Initialize new static spec.
6155 * doc/tm.texi.in (POST_LINK_SPEC): Document.
6156 * doc/tm.texi: Regenerated.
6158 2015-11-13 David Malcolm <dmalcolm@redhat.com>
6161 * Makefile.in (GCC_OBJS): Add spellcheck.o.
6162 (OBJS): Add spellcheck-tree.o.
6163 * gcc.c: Include "spellcheck.h".
6164 (suggest_option): New function.
6165 (driver::handle_unrecognized_options): Call suggest_option to
6166 provide a hint about misspelled options.
6167 * spellcheck.c: Update file comment.
6168 (levenshtein_distance): Convert 4-param implementation from static
6169 to extern scope. Remove note about unit tests from leading
6170 comment for const char * implementation. Move tree
6171 implementation to...
6172 * spellcheck-tree.c: New file.
6173 * spellcheck.h (levenshtein_distance): Add 4-param decl.
6175 2015-11-13 David Malcolm <dmalcolm@redhat.com>
6177 * Makefile.in (OBJS): Add spellcheck.o.
6178 * spellcheck.c: New file.
6179 * spellcheck.h: New file.
6181 2015-11-13 James Bowman <james.bowman@ftdichip.com>
6183 * config/ft32/ft32.md (*sne): New insn pattern.
6185 2015-11-12 Brad Lucier <lucier@math.purdue.edu>
6187 * cprop.c (is_too_expensive): Remove.
6189 (one_cprop_pass): Call gcse_or_cprop_is_too_expensive, not
6191 * gcse.h (gcse_or_cprop_is_too_expensive): Declare.
6192 * gcse.c (is_too_expensive): Rename to ...
6193 (gcse_or_cprop_is_too_expensive): ... this.
6194 Expand warning to add required size of max-gcse-memory.
6195 (one_pre_gcse_pass): Use it.
6196 (one_code_hoisting_pass): Use it.
6197 * params.def (max-gcse-memory): Increase from 50MB to 128MB.
6199 2015-11-12 James Norris <jnorris@codesourcery.com>
6200 Joseph Myers <joseph@codesourcery.com>
6202 * gimple-pretty-print.c (dump_gimple_omp_target): Handle
6203 GF_OMP_TARGET_KIND_OACC_DECLARE.
6204 * gimple.h (enum gf_mask): Add GF_OMP_TARGET_KIND_OACC_DECLARE.
6205 (is_gomple_omp_oacc): Handle GF_OMP_TARGET_KIND_OACC_DECLARE.
6206 * gimplify.c (oacc_declare_returns): New.
6207 (gimplify_bind_expr): Prepend 'exit' stmt to cleanup.
6208 (device_resident_p): New function.
6209 (oacc_default_clause): Handle device_resident clause.
6210 (gimplify_oacc_declare_1, gimplify_oacc_declare): New functions.
6211 (gimplify_expr): Handle OACC_DECLARE.
6212 * omp-builtins.def (BUILT_IN_GOACC_DECLARE): New builtin.
6213 * omp-low.c (expand_omp_target): Handle
6214 GF_OMP_TARGET_KIND_OACC_DECLARE and BUILTIN_GOACC_DECLARE.
6215 (build_omp_regions_1): Handlde GF_OMP_TARGET_KIND_OACC_DECLARE.
6216 (lower_omp_target): Handle GF_OMP_TARGET_KIND_OACC_DECLARE,
6217 GOMP_MAP_DEVICE_RESIDENT and GOMP_MAP_LINK.
6218 (make_gimple_omp_edges): Handle GF_OMP_TARGET_KIND_OACC_DECLARE.
6219 * tree-pretty-print.c (dump_omp_clause): Handle GOMP_MAP_LINK and
6220 GOMP_MAP_DEVICE_RESIDENT.
6222 2015-11-12 Christophe Lyon <christophe.lyon@linaro.org>
6224 [ARM] Remove neon-testgen.ml and generated tests.
6226 * config/arm/neon-testgen.ml: Remove.
6228 2015-11-12 Jim Wilson <jim.wilson@linaro.org>
6230 * config/aarch64/aarch64-cores.def (qdf24xx): New.
6231 * config/aarch64/aarch64-tune.md: Regenerated.
6232 * config/arm/arm-cores.def (qdf24xx): New.
6233 * config/arm/arm-tables.opt, config/arm/arm-tune.md: Regenerated.
6234 * config/arm/bpabi.h (BE8_LINK_SPEC): Add qdf24xx support.
6235 * doc/invoke.texi (AArch64 Options/-mtune): Add "qdf24xx".
6236 (ARM Options/-mtune): Likewise.
6238 2015-11-12 Martin Liska <mliska@suse.cz>
6240 * config/i386/i386.c (ix86_valid_target_attribute_p):
6241 Finalize options at the of the function.
6242 * gcc.c (driver_get_configure_time_options): Call newly
6243 introduced init_opts_obstack.
6244 * lto-wrapper.c (main): Likewise.
6245 * opts.c (init_opts_obstack): New function.
6246 (init_options_struct): Call newly introduced init_opts_obstack.
6247 * opts.h (init_options_struct): Declare.
6249 2015-11-12 Martin Liska <mliska@suse.cz>
6252 * ipa-icf.c (void sem_item::set_hash): New function.
6253 (sem_function::get_hash): Use renamed m_hash member variable.
6254 (sem_item::update_hash_by_addr_refs): Utilize get_hash.
6255 (sem_item::update_hash_by_local_refs): Likewise.
6256 (sem_variable::get_hash): Use renamed m_hash member variable.
6257 (sem_item_optimizer::update_hash_by_addr_refs): Utilize get_hash.
6258 (sem_item_optimizer::build_hash_based_classes): Utilize set_hash.
6259 (sem_item_optimizer::build_graph): As the hash value of an item
6260 is lazy initialized, force the calculation.
6261 * ipa-icf.h (set_hash): Declare new function and rename hash member
6264 2015-11-12 Richard Biener <rguenther@suse.de>
6266 * tree-vectorizer.h (vect_slp_analyze_data_ref_dependences):
6267 Rename to vect_slp_analyze_instance_dependence.
6268 * tree-vect-data-refs.c (vect_slp_analyze_data_ref_dependence):
6269 Remove WAR special-case.
6270 (vect_slp_analyze_node_dependences): Instead add more specific
6271 code here, not relying on other instances being vectorized.
6272 (vect_slp_analyze_instance_dependence): Adjust accordingly.
6273 * tree-vect-slp.c (vect_build_slp_tree_1): Remove excessive
6274 vertical space in dump files.
6275 (vect_print_slp_tree): Likewise.
6276 (vect_analyze_slp_instance): Dump a header for the final SLP tree.
6277 (vect_slp_analyze_bb_1): Delay computing relevant stmts and
6278 not vectorized stmts until after dependence analysis removed
6279 instances. Merge alignment and dependence checks.
6280 * tree-vectorizer.c (pass_slp_vectorize::execute): Clear visited
6283 2015-11-12 Evandro Menezes <e.menezes@samsung.com>
6285 * config/aarch64/aarch64-protos.h (tune_params): Add new members
6286 "max_case_values" and "cache_line_size".
6287 * config/aarch64/aarch64.c (aarch64_case_values_threshold): New
6289 (aarch64_override_options_internal): Tune heuristics based on new
6290 members in "tune_params".
6291 (TARGET_CASE_VALUES_THRESHOLD): Define macro.
6293 2015-11-12 Richard Biener <rguenther@suse.de>
6295 PR tree-optimization/68306
6296 * tree-vect-data-refs.c (verify_data_ref_alignment): Remove
6297 relevant and vectorizable checks here.
6298 (vect_verify_datarefs_alignment): Add relevant check here.
6300 2015-11-12 Nathan Sidwell <nathan@codesourcery.com>
6302 * gimplify.c (oacc_default_clause): New.
6303 (omp_notice_variable): Call it.
6305 2015-11-12 Ilya Enkovich <enkovich.gnu@gmail.com>
6307 PR tree-optimization/68305
6308 * tree-vect-slp.c (vect_get_constant_vectors): Support
6309 COND_EXPR with SSA_NAME as a condition.
6311 2015-11-12 Eric Botcazou <ebotcazou@adacore.com>
6313 * config/visium/visium-protos.h (notice_update_cc): Delete.
6314 (print_operand): Likewise.
6315 (print_operand_address): Likewise.
6317 2015-11-12 Uros Bizjak <ubizjak@gmail.com>
6319 * config/alpha/alpha.h (FUNCTION_VALUE, LIBCALL_VALUE,
6320 FUNCTION_VALUE_REGNO_P): Remove.
6321 * config/alpha/alpha-protos.h (function_value): Remove.
6322 * config/alpha/alpha.c (function_value): Rename to...
6323 (alpha_function_value_1): ... this. Make static.
6324 (alpha_function_value, alpha_libcall_value,
6325 alpha_function_value_regno_p): New functions.
6326 (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
6327 TARGET_FUNCTION_VALUE_REGNO_P): Define.
6329 2015-11-12 Uros Bizjak <ubizjak@gmail.com>
6331 * config/alpha/alpha.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST): Remove.
6332 * config/alpha/alpha.c (alpha_memory_latency): Make static.
6333 (alpha_register_move_cost, alpha_memory_move_cost): New functions.
6334 (TARGET_REGISTER_MOVE_COST, TARGET_MEMORY_MOVE_COST): Define.
6336 2015-11-12 Eric Botcazou <ebotcazou@adacore.com>
6339 * config/i386/i386.c (ix86_adjust_stack_and_probe): Remove obsolete
6340 assertion on the CFA register.
6342 2015-11-12 Ilya Enkovich <enkovich.gnu@gmail.com>
6344 * expr.c (do_store_flag): Expand vector comparison as
6345 VEC_COND_EXPR if vector comparison is not supported by target.
6347 2015-11-12 Renlin Li <renlin.li@arm.com>
6349 * config/arm/arm.md (addsi3_compare_op2): Make the order of
6350 assembly pattern consistent with constraint order.
6352 2015-11-12 Tom de Vries <tom@codesourcery.com>
6354 * gen-pass-instances.awk (handle_line): Simplify match regexp.
6356 2015-11-12 Tom de Vries <tom@codesourcery.com>
6358 * gen-pass-instances.awk (handle_line): Simplify init of
6361 2015-11-12 Tom de Vries <tom@codesourcery.com>
6363 * gen-pass-instances.awk (handle_line): Rename var where to
6366 2015-11-12 Claudiu Zissulescu <claziss@synopsys.com>
6368 * config/arc/arc.c (gen_compare_reg): Swap operands also when we
6369 do not expand to rtl.
6371 2015-11-12 Richard Biener <rguenther@suse.de>
6373 PR tree-optimization/58497
6374 * tree-vect-generic.c: Include gimplify.h.
6375 (tree_vec_extract): Lookup constant/constructor DEFs.
6376 (do_cond): Unshare cond.
6378 2015-11-12 Uros Bizjak <ubizjak@gmail.com>
6380 * config/i386/i386.c (ix86_legitimate_combined_insn): Reject
6381 combined insn if the alignment of vector mode memory operand
6382 is less than ssememalign.
6384 2015-11-12 Tom de Vries <tom@codesourcery.com>
6386 * gen-pass-instances.awk (handle_line): Print parentheses and
6387 pass_name explicitly.
6389 2015-11-12 Tom de Vries <tom@codesourcery.com>
6391 * gen-pass-instances.awk (handle_line): Add pass_num, prefix
6394 2015-11-12 Tom de Vries <tom@codesourcery.com>
6396 * gen-pass-instances.awk (handle_line): Add comments.
6398 2015-11-12 Tom de Vries <tom@codesourcery.com>
6400 * gen-pass-instances.awk (handle_line): Rename len_of_end to
6403 2015-11-12 Tom de Vries <tom@codesourcery.com>
6405 * gen-pass-instances.awk (handle_line): Add len_of_call variable.
6407 2015-11-12 Tom de Vries <tom@codesourcery.com>
6409 * gen-pass-instances.awk (handle_line): Restructure using early-out.
6411 2015-11-12 Tom de Vries <tom@codesourcery.com>
6413 * gen-pass-instances.awk (handle_line): Unify semicolon use.
6415 2015-11-12 Tom de Vries <tom@codesourcery.com>
6417 * gen-pass-instances.awk (handle_line): Remove unused var line_length.
6419 2015-11-12 Tom de Vries <tom@codesourcery.com>
6421 * gen-pass-instances.awk: Add emacs indent setting.
6423 2015-11-12 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
6425 * fold-const.c (fold_binary_loc) : Move Convert A/B/C to A/(B*C)
6427 Move Convert A/(B/C) to (A/B)*C to match.pd.
6428 Move Convert C1/(X*C2) into (C1/C2)/X to match.pd.
6429 Move Optimize (X & (-A)) / A where A is a power of 2, to
6430 X >> log2(A) to match.pd.
6432 * match.pd (rdiv (rdiv:s @0 @1) @2): New simplifier.
6433 (rdiv @0 (rdiv:s @1 @2)): New simplifier.
6434 (div (convert? (bit_and @0 INTEGER_CST@1)) INTEGER_CST@2):
6436 (rdiv REAL_CST@0 (mult @1 REAL_CST@2)): New simplifier.
6438 2015-11-12 Charles Baylis <charles.baylis@linaro.org>
6440 * config/arm/neon.md: (neon_vld2_lane<mode>): Remove unused max
6442 (neon_vst2_lane<mode>): Likewise.
6443 (neon_vld3_lane<mode>): Likewise.
6444 (neon_vst3_lane<mode>): Likewise.
6445 (neon_vld4_lane<mode>): Likewise.
6446 (neon_vst4_lane<mode>): Likewise.
6448 2015-11-11 Aditya Kumar <aditya.k7@samsung.com>
6449 Sebastian Pop <s.pop@samsung.com>
6451 * graphite-isl-ast-to-gimple.c (class translate_isl_ast_to_gimple):
6452 New member codegen_error
6453 (translate_isl_ast_for_loop): Remove call to single_succ_edge and
6455 (translate_isl_ast_node_user): Early return in case of error.
6456 (translate_isl_ast_to_gimple::translate_isl_ast): Same.
6457 (translate_isl_ast_to_gimple::translate_pending_phi_nodes): New.
6458 (add_parameters_to_ivs_params): Remove macro.
6459 (graphite_regenerate_ast_isl): Add if_region pointer to region.
6460 * graphite-poly.c (new_poly_dr): Remove macro.
6462 (new_gimple_poly_bb): Same.
6463 (free_gimple_poly_bb): Same.
6464 (print_scop_params): Same.
6465 * graphite-poly.h (struct poly_dr): Same.
6466 (struct poly_bb): Add new_bb.
6467 (gbb_from_bb): Remove dead code.
6468 (pbb_from_bb): Same.
6469 * graphite-scop-detection.c (parameter_index_in_region_1): Same.
6470 (parameter_index_in_region): Same.
6471 (find_scop_parameters): Same.
6472 (build_cross_bb_scalars_def): New.
6473 (build_cross_bb_scalars_use): New.
6474 (graphite_find_cross_bb_scalar_vars): New
6475 (try_generate_gimple_bb): Reads and Writes.
6476 (build_alias_set): Move.
6477 (gather_bbs::before_dom_children): Gather bbs visited.
6478 (build_scops): call build_alias_set.
6479 * graphite-sese-to-poly.c (phi_arg_in_outermost_loop): Delete.
6480 (remove_simple_copy_phi): Delete.
6481 (remove_invariant_phi): Delete.
6482 (simple_copy_phi_p): Delete.
6483 (reduction_phi_p): Delete.
6484 (isl_id_for_dr): Remove unused param.
6485 (parameter_index_in_region_1): Remove macro usage.
6486 (set_scop_parameter_dim): Same.
6487 (add_param_constraints): Same.
6488 (add_conditions_to_constraints): Same
6489 (build_scop_iteration_domain): Same.
6490 (pdr_add_alias_set): Comment.
6491 (add_scalar_version_numbers): New.
6492 (build_poly_dr): ISL id.
6493 (build_scop_drs): Move.
6494 (build_poly_sr_1): Same.
6495 (insert_stmts): Remove.
6496 (build_poly_sr): New.
6497 (new_pbb_from_pbb): Delete.
6498 (insert_out_of_ssa_copy_on_edge): Delete.
6499 (create_zero_dim_array): Delete.
6500 (scalar_close_phi_node_p): Delete.
6501 (propagate_expr_outside_region): Delete.
6502 (rewrite_close_phi_out_of_ssa): Delete.
6503 (rewrite_phi_out_of_ssa): Delete.
6504 (rewrite_degenerate_phi): Delete.
6505 (rewrite_reductions_out_of_ssa): Delete.
6506 (rewrite_cross_bb_scalar_dependence): Delete.
6507 (handle_scalar_deps_crossing_scop_limits):
6508 (rewrite_cross_bb_scalar_deps): Delete.
6509 (build_poly_scop): Remove calls to out-of-ssa functions.
6510 * graphite.c (graphite_transform_loops): Early return in case of
6512 * sese.c (debug_rename_map_1): Delete.
6513 (debug_rename_map): Delete.
6514 (sese_record_loop): Remove macro.
6515 (build_sese_loop_nests): Same.
6516 (new_sese_info): Same.
6517 (free_sese_info): Same.
6518 (sese_insert_phis_for_liveouts):
6519 (is_loop_closed_ssa_use): New.
6520 (number_of_phi_nodes): New.
6521 (bb_contains_loop_close_phi_nodes): New.
6522 (bb_contains_loop_phi_nodes): New.
6523 (phi_uses_name): New.
6525 (get_rename): Add old_bb and loop_phi for more precise matching of
6527 (set_rename): Pass region.
6528 (later_of_the_two): New.
6529 (gsi_insert_earliest): New.
6530 (collect_all_ssa_names): New.
6531 (substitute_ssa_name): New.
6532 (rename_all_uses): New.
6533 (get_rename_from_scev): New.
6534 (rename_uses): Pass old_bb for more precise matching of exprs.
6535 (get_def_bb_for_const): New.
6536 (get_new_name): New.
6539 (copy_loop_phi_args): New.
6540 (copy_loop_phi_nodes): New.
6541 (get_loop_init_value): New.
6542 (find_init_value): New.
6543 (find_init_value_close_phi): New.
6544 (copy_loop_close_phi_args): New.
6545 (copy_loop_close_phi_nodes): New.
6546 (add_phi_arg_for_new_expr): New.
6547 (copy_cond_phi_args): New.
6548 (copy_cond_phi_nodes): New.
6549 (copy_phi_nodes): New.
6550 (should_copy_to_new_region): New.
6551 (set_rename_for_each_def): New.
6552 (graphite_copy_stmts_from_block): Early return in case of error.
6553 (copy_bb_and_scalar_dependences): Same.
6554 * sese.h (vec_find): New.
6555 (SESE_PARAMS): Delete.
6556 (SESE_LOOPS): Delete.
6557 (SESE_LOOP_NEST): Delete.
6558 (sese_contains_loop): Remove macro usage.
6559 (sese_nb_params): Same.
6560 (struct gimple_poly_bb): Added read_scalar_refs, write_scalar_refs.
6562 2015-11-11 Abderrazek Zaafrani <a.zaafrani@samsung.com>
6564 * graphite-sese-to-poly.c (build_scop_original_schedule): Call
6565 isl_union_map_add_map on every pbb->schedule.
6567 2015-11-11 Tom de Vries <tom@codesourcery.com>
6569 * tree-parloops.c (create_parallel_loop): Return void.
6571 2015-11-11 Tom de Vries <tom@codesourcery.com>
6573 * tree-parloops.c (transform_to_exit_first_loop_alt): Insert new exit
6574 block only when needed.
6576 2015-11-11 Uros Bizjak <ubizjak@gmail.com>
6578 * config/alpha/alpha-protos.h (print_operand): Remove.
6579 (print_operand_address): Remove.
6580 * config/alpha/alpha.h (PRINT_OPERAND): Remove.
6581 (PRINT_OPERAND_ADDRESS): Remove.
6582 (PRINT_OPERAND_PUNCT_VALID_P): Remove.
6583 * config/alpha/alpha.c (TARGET_PRINT_OPERAND): New hook define.
6584 (TARGET_PRINT_OPERAND_ADDRESS): New hook define.
6585 (TARGET_PRINT_OPERAND_PUNCT_VALID_P): New hook define.
6586 (print_operand_address): Rename to...
6587 (alpha_print_operand_address): ...this and make static.
6588 (print_operand): Rename to...
6589 (alpha_print_operand): ...this and make static.
6590 (alpha_print_operand_punct_valid_p): New static function.
6592 2015-11-11 Richard Biener <rguenther@suse.de>
6594 * tree-vectorizer.h (vect_slp_analyze_and_verify_instance_alignment):
6596 (vect_analyze_data_refs_alignment): Make loop vect specific.
6597 (vect_verify_datarefs_alignment): Likewise.
6598 * tree-vect-data-refs.c (vect_slp_analyze_data_ref_dependences):
6599 Add missing continue.
6600 (vect_compute_data_ref_alignment): Export.
6601 (vect_compute_data_refs_alignment): Merge into...
6602 (vect_analyze_data_refs_alignment): ... this.
6603 (verify_data_ref_alignment): Split out from ...
6604 (vect_verify_datarefs_alignment): ... here.
6605 (vect_slp_analyze_and_verify_node_alignment): New function.
6606 (vect_slp_analyze_and_verify_instance_alignment): Likewise.
6607 * tree-vect-slp.c (vect_supported_load_permutation_p): Remove
6608 misplaced checks on alignment.
6609 (vect_slp_analyze_bb_1): Add fatal output parameter. Do
6610 alignment analysis after SLP discovery and do it per instance.
6611 (vect_slp_bb): When vect_slp_analyze_bb_1 fatally failed do not
6612 bother to re-try using different vector sizes.
6614 2015-11-11 Nathan Sidwell <nathan@codesourcery.com>
6615 Cesar Philippidis <cesar@codesourcery.com>
6617 * gimplify.c (enum omp_region_type): Add ORT_ACC,
6618 ORT_ACC_DATA, ORT_ACC_PARALLEL, ORT_ACC_KERNELS. Adjust ORT_NONE.
6619 (gimple_add_tmp_var): Add ORT_ACC checks.
6620 (gimplify_var_or_parm_decl): Likewise.
6621 (omp_firstprivatize_variable): Likewise. Use ORT_TARGET_DATA as a mask.
6622 (omp_add_variable): Look in outer contexts for openacc and allow
6623 reductions with other sharing. Add ORT_ACC and ORT_TARGET_DATA checks.
6624 (omp_notice_variable, omp_is_private, omp_check_private): Add
6626 (gimplify_scan_omp_clauses: Treat ORT_ACC as ORT_WORKSHARE.
6627 Permit private openacc reductions.
6628 (gimplify_oacc_cache): Specify ORT_ACC.
6629 (gimplify_omp_workshare): Adjust OpenACC region types.
6630 (gimplify_omp_target_update): Likewise.
6631 * omp-low.c (scan_sharing_clauses): Remove Openacc firstprivate sorry.
6632 (lower-rec_input_clauses): Don't handle openacc firstprivate
6634 (lower_omp_target): Emit initializers for openacc firstprivate vars.
6636 2015-11-11 Eric Botcazou <ebotcazou@adacore.com>
6639 * ira.c (ira_setup_eliminable_regset): Do not necessarily create the
6640 frame pointer for stack checking if non-call exceptions aren't used.
6641 * config/i386/i386.c (ix86_finalize_stack_realign_flags): Likewise.
6643 2015-11-11 Segher Boessenkool <segher@kernel.crashing.org>
6645 * simplify-rtx.c (simplify_truncation): Simplify TRUNCATE of AND of
6648 2015-11-11 Martin Liska <mliska@suse.cz>
6649 Richard Biener <rguenther@suse.de>
6651 PR rtl-optimization/68287
6652 * lra-lives.c (lra_create_live_ranges_1): Reserve the right
6655 2015-11-11 Simon Dardis <simon.dardis@imgtec.com>
6657 * config/mips/mips.c (mips_breakable_sequence_p): New function.
6658 (mips_break_sequence): New function.
6659 (mips_reorg_process_insns): Use them. Use compact branches in selected
6662 2015-11-11 Alan Lawrence <alan.lawrence@arm.com>
6664 * fold-const.c (get_array_ctor_element_at_index): Fix whitespace, typo.
6666 2015-11-11 Jiong Wang <jiong.wang@arm.com>
6667 Jim Wilson <wilson@gcc.gnu.org>
6670 * config/arm/arm.md (neon_vector_mem_operand): Return FALSE if strict
6671 be true and eliminable registers mentioned.
6673 2015-11-11 Claudiu Zissulescu <claziss@synopsys.com>
6675 * common/config/arc/arc-common.c (arc_handle_option): Handle ARCv2
6677 * config/arc/arc-opts.h: Add ARCv2 CPUs.
6678 * config/arc/arc-protos.h (arc_secondary_reload_conv): Prototype.
6679 * config/arc/arc.c (arc_secondary_reload): Handle subreg (reg)
6680 situation, and store instructions with large offsets.
6681 (arc_secondary_reload_conv): New function.
6682 (arc_init): Add ARCv2 options.
6683 (arc_conditional_register_usage): Select the proper register usage
6684 for ARCv2 processors.
6685 (arc_handle_interrupt_attribute): ILINK2 is only valid for ARCv1
6687 (arc_compute_function_type): Likewise.
6688 (arc_print_operand): Handle new ARCv2 punctuation characters.
6689 (arc_return_in_memory): ARCv2 ABI returns in registers up to 16 bytes.
6690 (workaround_arc_anomaly, arc_asm_insn_p, arc_loop_hazard): New
6692 (arc_reorg, arc_hazard): Use it.
6693 * config/arc/arc.h (TARGET_CPU_CPP_BUILTINS): Define __HS__ and __EM__.
6694 (ASM_SPEC): Add ARCv2 options.
6695 (TARGET_NORM): ARC HS has norm instructions by default.
6696 (TARGET_OPTFPE): Use optimized floating point emulation for ARC HS.
6697 (TARGET_AT_DBR_CONDEXEC): Only for ARC600 family.
6698 (TARGET_EM, TARGET_HS, TARGET_V2, TARGET_MPYW, TARGET_MULTI): Define.
6699 (SIGNED_INT16, TARGET_MPY, TARGET_ARC700_MPY, TARGET_ANY_MPY):
6701 (TARGET_ARC600_FAMILY, TARGET_ARCOMPACT_FAMILY): Likewise.
6702 (TARGET_LP_WR_INTERLOCK): Likewise.
6704 (commutative_binary_mult_comparison_result_used, movsicc_insn)
6705 (mulsi3, mulsi3_600_lib, mulsidi3, mulsidi3_700, mulsi3_highpart)
6706 (umulsi3_highpart_i, umulsi3_highpart_int, umulsi3_highpart)
6707 (umulsidi3, umulsidi3_700, cstoresi4, simple_return, p_return_i):
6709 (mulhisi3, mulhisi3_imm, mulhisi3_reg, umulhisi3, umulhisi3_imm)
6710 (umulhisi3_reg, umulhisi3_reg, mulsi3_v2, nopv, bswapsi2)
6711 (prefetch, divsi3, udivsi3 modsi3, umodsi3, arcset, arcsetltu)
6712 (arcsetgeu, arcsethi, arcsetls, reload_*_load, reload_*_store)
6713 (extzvsi): New pattern.
6714 * config/arc/arc.opt: New ARCv2 options.
6715 * config/arc/arcEM.md: New file.
6716 * config/arc/arcHS.md: Likewise.
6717 * config/arc/constraints.md (C3p): New constraint, accepts 1 and 2
6719 (Cm2): A signed 9-bit integer constant constraint.
6720 (C62): An unsigned 6-bit integer constant constraint.
6721 (C16): A signed 16-bit integer constant constraint.
6722 * config/arc/predicates.md (mult_operator): Add ARCv2 processort.
6723 (short_const_int_operand): New predicate.
6724 * config/arc/t-arc-newlib: Add ARCv2 multilib options.
6725 * doc/invoke.texi: Add documentation for -mcpu=<archs/arcem>
6726 -mcode-density and -mdiv-rem.
6728 2015-11-11 Julia Koval <julia.koval@intel.com>
6730 * config/i386/i386.c (m_SKYLAKE_AVX512): Fix typo.
6732 2015-11-11 Julia Koval <julia.koval@intel.com>
6734 * config/i386/i386.c: Handle "skylake" and "skylake-avx512".
6736 2015-11-11 Martin Liska <mliska@suse.cz>
6738 * gimple-ssa-strength-reduction.c (create_phi_basis):
6740 * passes.c (release_dump_file_name): New function.
6741 (pass_init_dump_file): Used from this function.
6742 (pass_fini_dump_file): Likewise.
6743 * tree-sra.c (convert_callers_for_node): Use xstrdup_for_dump.
6744 * var-tracking.c (vt_initialize): Use pool_allocator.
6746 2015-11-11 Richard Biener <rguenth@gcc.gnu.org>
6747 Jiong Wang <jiong.wang@arm.com>
6749 PR tree-optimization/68234
6750 * tree-vrp.c (vrp_visit_phi_node): Extend SCEV check to those loop PHI
6751 node which estimiated to be VR_VARYING initially.
6753 2015-11-11 Robert Suchanek <robert.suchanek@imgtec.com>
6755 * regname.c (scan_rtx_reg): Check the matching number of consecutive
6756 registers when tying chains.
6757 (build_def_use): Move terminated_this_insn earlier in the function.
6759 2015-11-10 Mike Frysinger <vapier@gentoo.org>
6761 * configure.ac: Use = with test and not ==.
6762 * configure: Regenerated.
6764 2015-11-11 David Edelsohn <dje.gcc@gmail.com>
6766 * config/rs6000/aix.h (TARGET_OS_AIX_CPP_BUILTINS): Add cpu and
6767 machine asserts. Update defines for 64 bit.
6769 2015-11-11 Charles Baylis <charles.baylis@linaro.org>
6772 * config/arm/neon.md (neon_vld1_lane<mode>): Remove error for invalid
6774 (neon_vst1_lane<mode>): Likewise.
6775 (neon_vld2_lane<mode>): Likewise.
6776 (neon_vst2_lane<mode>): Likewise.
6777 (neon_vld3_lane<mode>): Likewise.
6778 (neon_vst3_lane<mode>): Likewise.
6779 (neon_vld4_lane<mode>): Likewise.
6780 (neon_vst4_lane<mode>): Likewise.
6782 2015-11-11 Charles Baylis <charles.baylis@linaro.org>
6785 * config/arm/arm-builtins.c: (arm_load1_qualifiers) Use
6786 qualifier_struct_load_store_lane_index.
6787 (arm_storestruct_lane_qualifiers) Likewise.
6788 * config/arm/neon.md: (neon_vld1_lane<mode>) Reverse lane numbers for
6790 (neon_vst1_lane<mode>) Likewise.
6791 (neon_vld2_lane<mode>) Likewise.
6792 (neon_vst2_lane<mode>) Likewise.
6793 (neon_vld3_lane<mode>) Likewise.
6794 (neon_vst3_lane<mode>) Likewise.
6795 (neon_vld4_lane<mode>) Likewise.
6796 (neon_vst4_lane<mode>) Likewise.
6798 2015-11-11 Charles Baylis <charles.baylis@linaro.org>
6801 * config/arm/arm-builtins.c (enum arm_type_qualifiers): New enumerator
6802 qualifier_struct_load_store_lane_index.
6803 (builtin_arg): New enumerator NEON_ARG_STRUCT_LOAD_STORE_LANE_INDEX.
6804 (arm_expand_neon_args): New parameter. Remove ellipsis. Handle NEON
6805 argument qualifiers.
6806 (arm_expand_neon_builtin): Handle new NEON argument qualifier.
6807 * config/arm/arm.h (NEON_ENDIAN_LANE_N): New macro.
6809 2015-11-10 Nathan Sidwell <nathan@codesourcery.com>
6811 * config/nvptx/nvptx.opt (moptimize): New flag.
6812 * config/nvptx/nvptx.c (nvptx_option_override): Set nvptx_optimize
6814 (nvptx_optimize_inner): New.
6815 (nvptx_process_pars): Call it when optimizing.
6816 * doc/invoke.texi (Nvidia PTX Options): Document -moptimize.
6818 2015-11-10 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
6820 * config/rs6000/rs6000.c (rs6000_secondary_reload_direct_move):
6821 Remove redundant code.
6823 2015-11-10 Jeff Law <law@redhat.com>
6825 * config/ft32/ft32.c (ft32_print_operand): Supply mode to
6826 call to output_address.
6827 * config/moxie/moxie.c (moxie_print_operand_address): Similarly.
6828 Add unnamed machine_mode argument.
6830 2015-11-10 Michael Meissner <meissner@linux.vnet.ibm.com>
6832 * config.gcc (powerpc*-*-*, rs6000*-*-*): Add power9 to hosts that
6835 2015-11-10 Uros Bizjak <ubizjak@gmail.com>
6837 * config/i386/i386.md (*movabs<mode>_1): Add explicit
6838 size directives for -masm=intel.
6839 (*movabs<mode>_2): Ditto.
6841 2015-11-10 Uros Bizjak <ubizjak@gmail.com>
6843 * config/i386/i386.c (ix86_print_operand): Remove dead code that
6844 tried to avoid (%rip) for call operands.
6846 2015-11-10 Uros Bizjak <ubizjak@gmail.com>
6848 * config/i386/i386.c (ix86_print_operand_address_as): Add no_rip
6849 argument. Do not use RIP relative addressing when no_rip is set.
6850 (ix86_print_operand): Update call to ix86_print_operand_address_as.
6851 (ix86_print_operand_address): Ditto.
6852 * config/i386/i386.md (*movabs<mode>_1): Use %P modifier for
6853 absolute movabs operand 0. Add square braces for -masm=intel.
6854 (*movabs<mode>_2): Ditto for operand 1.
6856 2015-11-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
6858 * config/arm/arm.c (arm_new_rtx_costs, FIX case): Handle
6859 combine_vcvtf2i pattern.
6861 2015-11-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
6863 * config/arm/arm.c (neon_valid_immediate): Remove integer
6864 CONST_DOUBLE handling. It should never occur.
6866 2015-11-10 Matthew Wahab <matthew.wahab@arm.com>
6868 * config/aarch64/atomics.md (unspecv): Move to iterators.md.
6869 (ATOMIC_LDOP): Likewise.
6870 (atomic_ldop): Likewise.
6871 * config/aarch64/iterators.md (unspecv): Moved from atomics.md.
6872 (ATOMIC_LDOP): Likewise.
6873 (atomic_ldop): Likewise.
6875 2015-11-10 Martin Liska <mliska@suse.cz>
6877 * alloc-pool.h (allocate_raw): New function.
6878 (operator new (size_t, object_allocator<T> &a)): Use the
6879 function instead of object_allocator::allocate).
6881 2015-11-10 Ilya Enkovich <enkovich.gnu@gmail.com>
6883 * config/i386/sse.md (HALFMASKMODE): New attribute.
6884 (DOUBLEMASKMODE): New attribute.
6885 (vec_pack_trunc_qi): New.
6886 (vec_pack_trunc_<mode>): New.
6887 (vec_unpacks_lo_hi): New.
6888 (vec_unpacks_lo_si): New.
6889 (vec_unpacks_lo_di): New.
6890 (vec_unpacks_hi_hi): New.
6891 (vec_unpacks_hi_<mode>): New.
6893 2015-11-10 Ilya Enkovich <enkovich.gnu@gmail.com>
6895 * optabs.c (expand_binop_directly): Allow scalar mode for
6896 vec_pack_trunc_optab.
6897 * tree-vect-loop.c (vect_determine_vectorization_factor): Skip
6898 boolean vector producers from pattern sequence when computing VF.
6899 * tree-vect-patterns.c (vect_vect_recog_func_ptrs) Add
6900 vect_recog_mask_conversion_pattern.
6901 (search_type_for_mask): Choose the smallest
6902 type if different size types are mixed.
6903 (build_mask_conversion): New.
6904 (vect_recog_mask_conversion_pattern): New.
6905 (vect_pattern_recog_1): Allow scalar mode for boolean vectype.
6906 * tree-vect-stmts.c (vectorizable_mask_load_store): Support masked
6908 (vectorizable_conversion): Support boolean vectors.
6909 (free_stmt_vec_info): Allow patterns for statements with no lhs.
6910 * tree-vectorizer.h (NUM_PATTERNS): Increase to 14.
6912 2015-11-10 Ilya Enkovich <enkovich.gnu@gmail.com>
6914 * config/i386/i386-protos.h (ix86_expand_sse_movcc): New.
6915 * config/i386/i386.c (ix86_expand_sse_movcc): Make public.
6916 Cast mask to FP mode if required.
6917 * config/i386/sse.md (vcond_mask_<mode><avx512fmaskmodelower>): New.
6918 (vcond_mask_<mode><avx512fmaskmodelower>): New.
6919 (vcond_mask_<mode><sseintvecmodelower>): New.
6920 (vcond_mask_<mode><sseintvecmodelower>): New.
6921 (vcond_mask_v2div2di): New.
6922 (vcond_mask_<mode><sseintvecmodelower>): New.
6923 (vcond_mask_<mode><sseintvecmodelower>): New.
6925 2015-11-10 Ilya Enkovich <enkovich.gnu@gmail.com>
6927 * optabs-query.h (get_vcond_mask_icode): New.
6928 * optabs-tree.c (expand_vec_cond_expr_p): Use
6929 get_vcond_mask_icode for VEC_COND_EXPR with mask.
6930 * optabs.c (expand_vec_cond_mask_expr): New.
6931 (expand_vec_cond_expr): Use get_vcond_mask_icode when possible.
6932 * optabs.def (vcond_mask_optab): New.
6933 * tree-vect-patterns.c (vect_recog_bool_pattern): Don't
6934 generate redundant comparison for COND_EXPR.
6935 * tree-vect-stmts.c (vect_is_simple_cond): Allow SSA_NAME
6937 (vectorizable_condition): Likewise.
6938 * tree-vect-slp.c (vect_get_and_check_slp_defs): Allow
6939 cond_exp with no embedded comparison.
6940 (vect_build_slp_tree_1): Likewise.
6942 2015-11-10 Ilya Enkovich <enkovich.gnu@gmail.com>
6944 * config/i386/sse.md (maskload<mode>): Rename to ...
6945 (maskload<mode><sseintvecmodelower>): ... this.
6946 (maskstore<mode>): Rename to ...
6947 (maskstore<mode><sseintvecmodelower>): ... this.
6948 (maskload<mode><avx512fmaskmodelower>): New.
6949 (maskstore<mode><avx512fmaskmodelower>): New.
6951 2015-11-10 Ilya Enkovich <enkovich.gnu@gmail.com>
6953 * internal-fn.c (expand_MASK_LOAD): Adjust to maskload optab changes.
6954 (expand_MASK_STORE): Adjust to maskstore optab changes.
6955 * optabs-query.c (can_vec_mask_load_store_p): Add MASK_MODE arg.
6956 Adjust to maskload, maskstore optab changes.
6957 * optabs-query.h (can_vec_mask_load_store_p): Add MASK_MODE arg.
6958 * optabs.def (maskload_optab): Transform into convert optab.
6959 (maskstore_optab): Likewise.
6960 * tree-if-conv.c (ifcvt_can_use_mask_load_store): Adjust to
6961 can_vec_mask_load_store_p signature change.
6962 (predicate_mem_writes): Use boolean mask.
6963 * tree-vect-stmts.c (vectorizable_mask_load_store): Adjust to
6964 can_vec_mask_load_store_p signature change. Allow invariant masks.
6965 (vectorizable_operation): Ignore type precision for boolean vectors.
6967 2015-11-10 Ilya Enkovich <enkovich.gnu@gmail.com>
6969 * expr.c (do_store_flag): Use expand_vec_cmp_expr for mask results.
6970 (const_vector_mask_from_tree): New.
6971 (const_vector_from_tree): Use const_vector_mask_from_tree
6972 for boolean vectors.
6973 * optabs-query.h (get_vec_cmp_icode): New.
6974 * optabs-tree.c (expand_vec_cmp_expr_p): New.
6975 * optabs-tree.h (expand_vec_cmp_expr_p): New.
6976 * optabs.c (vector_compare_rtx): Add OPNO arg.
6977 (expand_vec_cond_expr): Adjust to vector_compare_rtx change.
6978 (expand_vec_cmp_expr): New.
6979 * optabs.def (vec_cmp_optab): New.
6980 (vec_cmpu_optab): New.
6981 * optabs.h (expand_vec_cmp_expr): New.
6982 * tree-vect-generic.c (expand_vector_comparison): Add vector
6983 comparison optabs check.
6984 * tree-vect-loop.c (vect_determine_vectorization_factor): Ignore mask
6985 operations for VF. Add mask type computation.
6986 * tree-vect-stmts.c (get_mask_type_for_scalar_type): New.
6987 (vectorizable_comparison): New.
6988 (vect_analyze_stmt): Add vectorizable_comparison.
6989 (vect_transform_stmt): Likewise.
6990 (vect_init_vector): Support boolean vector invariants.
6991 (vect_get_vec_def_for_operand): Add VECTYPE arg.
6992 (vectorizable_condition): Directly provide vectype for invariants
6994 * tree-vectorizer.h (get_mask_type_for_scalar_type): New.
6995 (enum vect_var_kind): Add vect_mask_var.
6996 (enum stmt_vec_info_type): Add comparison_vec_info_type.
6997 (vectorizable_comparison): New.
6998 (vect_get_vec_def_for_operand): Add VECTYPE arg.
6999 * tree-vect-data-refs.c (vect_get_new_vect_var): Support vect_mask_var.
7000 (vect_create_destination_var): Likewise.
7001 * tree-vect-patterns.c (check_bool_pattern): Check fails
7002 if we can vectorize comparison directly.
7003 (search_type_for_mask): New.
7004 (vect_recog_bool_pattern): Support cases when bool pattern check fails.
7005 * tree-vect-slp.c (vect_build_slp_tree_1): Allow
7006 comparison statements.
7007 (vect_get_constant_vectors): Support boolean vector constants.
7008 * config/i386/i386-protos.h (ix86_expand_mask_vec_cmp): New.
7009 (ix86_expand_int_vec_cmp): New.
7010 (ix86_expand_fp_vec_cmp): New.
7011 * config/i386/i386.c (ix86_expand_sse_cmp): Allow NULL for
7012 op_true and op_false.
7013 (ix86_int_cmp_code_to_pcmp_immediate): New.
7014 (ix86_fp_cmp_code_to_pcmp_immediate): New.
7015 (ix86_cmp_code_to_pcmp_immediate): New.
7016 (ix86_expand_mask_vec_cmp): New.
7017 (ix86_expand_fp_vec_cmp): New.
7018 (ix86_expand_int_sse_cmp): New.
7019 (ix86_expand_int_vcond): Use ix86_expand_int_sse_cmp.
7020 (ix86_expand_int_vec_cmp): New.
7021 (ix86_get_mask_mode): New.
7022 (TARGET_VECTORIZE_GET_MASK_MODE): New.
7023 * config/i386/sse.md (avx512fmaskmodelower): New.
7024 (vec_cmp<mode><avx512fmaskmodelower>): New.
7025 (vec_cmp<mode><sseintvecmodelower>): New.
7026 (vec_cmpv2div2di): New.
7027 (vec_cmpu<mode><avx512fmaskmodelower>): New.
7028 (vec_cmpu<mode><sseintvecmodelower>): New.
7029 (vec_cmpuv2div2di): New.
7031 2015-11-10 Richard Biener <rguenther@suse.de>
7033 PR tree-optimization/68240
7034 * tree-ssa-sccvn.c (cond_stmts_equal_p): Handle commutative compares
7036 (visit_phi): For PHIs with just a single executable edge
7037 take its value directly.
7038 (expressions_equal_p): Handle VN_TOP properly.
7040 2015-11-10 Richard Biener <rguenther@suse.de>
7042 * tree-vect-data-refs.c (vect_slp_analyze_node_dependences):
7043 Handle memory using/clobbering stmts without a STMT_VINFO_DATA_REF
7046 2015-11-10 Richard Biener <rguenther@suse.de>
7048 PR tree-optimization/56118
7049 * tree-vect-slp.c (vect_bb_vectorization_profitable_p): Make equal
7050 cost favor vectorized version.
7052 2015-11-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7054 * config/aarch64/aarch64.md (<neg_not_op><mode>cc): New define_expand.
7055 * config/aarch64/iterators.md (NEG_NOT): New code iterator.
7056 (neg_not_op): New code attribute.
7058 2015-11-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7060 * ifcvt.c (noce_try_inverse_constants): New function.
7061 (noce_process_if_block): Call it.
7062 * optabs.h (emit_conditional_neg_or_complement): Declare prototype.
7063 * optabs.def (negcc_optab, notcc_optab): Declare.
7064 * optabs.c (emit_conditional_neg_or_complement): New function.
7065 * doc/tm.texi (Standard Names): Document negcc, notcc names.
7067 2015-11-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7069 PR rtl-optimization/68236
7070 * haifa-sched.c (autopref_multipass_dfa_lookahead_guard): Return 0
7071 if insn_queue doesn't exist.
7072 (haifa_sched_finish): Reset insn_queue to NULL.
7074 2015-11-10 Robert Suchanek <robert.suchanek@imgtec.com>
7076 * regrename.c (create_new_chain): Initialize renamed and tied_chain.
7077 (build_def_use): Initialize terminated_this_insn.
7078 (find_best_rename_reg): Pick and check register from the tied chain.
7079 (regrename_do_replace): Mark head as renamed.
7080 (struct du_head *terminated_this_insn). New static variable.
7081 (scan_rtx_reg): Tie chains in move insns. Set terminated_this_insn.
7082 * regrename.h (struct du_head): Add tied_chain, renamed members.
7084 2015-11-10 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
7087 * config/aarch64/aarch64.c (aarch64_use_constant_blocks_p):
7090 2015-11-09 Eric Botcazou <ebotcazou@adacore.com>
7093 * config/sparc/sparc.c (sparc_function_value_1): In 32-bit mode, do
7094 not promote the mode for aggregate types.
7096 2015-11-09 Nathan Sidwell <nathan@codesourcery.com>
7098 * omp-low.h (replace_oacc_fn_attrib, build_oacc_routine_dims): Declare.
7099 * omp-low.c (build_oacc_routine_dims): New.
7101 2015-11-09 Michael Meissner <meissner@linux.vnet.ibm.com>
7103 * config/rs6000/constraints.md (wF constraint): New constraints
7104 for power9/toc fusion.
7105 (wG constraint): Likewise.
7107 * config/rs6000/predicates.md (u6bit_cint_operand): New
7108 predicate, recognize 0..63.
7109 (upper16_cint_operand): New predicate for power9 and toc fusion.
7110 (fpr_reg_operand): Likewise.
7111 (toc_fusion_or_p9_reg_operand): Likewise.
7112 (toc_fusion_mem_raw): Likewise.
7113 (toc_fusion_mem_wrapped): Likewise.
7114 (fusion_gpr_addis): If power9 fusion, allow fusion for a larger
7116 (fusion_gpr_mem_combo): Delete, use fusion_addis_mem_combo_load
7118 (fusion_addis_mem_combo_load): Add support for power9 fusion of
7119 floating point loads, floating point stores, and gpr stores.
7120 (fusion_addis_mem_combo_store): Likewise.
7121 (fusion_offsettable_mem_operand): Likewise.
7123 * config/rs6000/rs6000-protos.h (emit_fusion_addis): Add declarations.
7124 (emit_fusion_load_store): Likewise.
7125 (fusion_p9_p): Likewise.
7126 (expand_fusion_p9_load): Likewise.
7127 (expand_fusion_p9_store): Likewise.
7128 (emit_fusion_p9_load): Likewise.
7129 (emit_fusion_p9_store): Likewise.
7130 (fusion_wrap_memory_address): Likewise.
7132 * config/rs6000/rs6000.c (struct rs6000_reg_addr): Add new
7133 elements for power9 fusion.
7134 (rs6000_debug_print_mode): Rework debug information to print more
7135 information about fusion.
7136 (rs6000_init_hard_regno_mode_ok): Setup for power9 fusion support.
7137 (rs6000_legitimate_address_p): Recognize toc fusion as a valid
7138 offsettable memory address.
7139 (rs6000_rtx_costs): Update costs for new ISA 3.0 instructions.
7140 (emit_fusion_gpr_load): Move most of the code from
7141 emit_fusion_gpr_load into emit_fusion-addis that handles both
7142 power8 and power9 fusion.
7143 (emit_fusion_addis): Likewise.
7144 (emit_fusion_load_store): Likewise.
7145 (fusion_wrap_memory_address): Add support for TOC fusion.
7146 (fusion_split_address): Likewise.
7147 (fusion_p9_p): Add support for power9 fusion.
7148 (expand_fusion_p9_load): Likewise.
7149 (expand_fusion_p9_store): Likewise.
7150 (emit_fusion_p9_load): Likewise.
7151 (emit_fusion_p9_store): Likewise.
7153 * config/rs6000/rs6000.h (TARGET_EXTSWSLI): Macros for support for
7154 new instructions in ISA 3.0.
7155 (TARGET_CTZ): Likewise.
7156 (TARGET_TOC_FUSION_INT): Macros for power9 fusion support.
7157 (TARGET_TOC_FUSION_FP): Likewise.
7159 * config/rs6000/rs6000.md (UNSPEC_FUSION_P9): New power9/toc
7161 (UNSPEC_FUSION_ADDIS): Likewise.
7162 (QHSI mode iterator): New iterator for power9 fusion.
7163 (GPR_FUSION): Likewise.
7164 (FPR_FUSION): Likewise.
7165 (mod<mode>3): Add support for ISA 3.0 modulus instructions.
7166 (umod<mode>3): Likewise.
7167 (divmod peephole): Likewise.
7168 (udivmod peephole): Likewise.
7169 (ctz<mode>2): Add support for ISA 3.0 count trailing zeros scalar
7171 (ctz<mode>2_h): Likewise.
7172 (ashdi3_extswsli): Add support for ISA 3.0 EXTSWSLI instruction.
7173 (ashdi3_extswsli_dot): Likewise.
7174 (ashdi3_extswsli_dot2): Likewise.
7175 (power9 fusion splitter): New power9/toc fusion support.
7176 (toc_fusionload_<mode>): Likewise.
7177 (toc_fusionload_di): Likewise.
7178 (fusion_gpr_load_<mode>): Update predicate function.
7179 (power9 fusion peephole2s): New power9/toc fusion support.
7180 (fusion_gpr_<P:mode>_<GPR_FUSION:mode>_load): Likewise.
7181 (fusion_gpr_<P:mode>_<GPR_FUSION:mode>_store): Likewise.
7182 (fusion_fpr_<P:mode>_<FPR_FUSION:mode>_load): Likewise.
7183 (fusion_fpr_<P:mode>_<FPR_FUSION:mode>_store): Likewise.
7184 (fusion_p9_<mode>_constant): Likewise.
7186 2015-11-09 Steve Ellcey <sellcey@imgtec.com>
7188 * optabs.c (prepare_libcall_arg): New function.
7189 (expand_fixed_convert): Add call to prepare_libcall_arg.
7191 2015-11-09 Nikolai Bozhenov <n.bozhenov@samsung.com>
7193 * sched-int.h (dump_rgn_dependencies_dot): Declare
7194 * sched-rgn.c (dump_rgn_dependencies_dot): New function
7195 * print-rtl.h (print_insn): Add prototype
7197 * haifa-sched.c (setup_sched_dump): Don't redirect output to stderr.
7198 * common.opt (-fsched-verbose): Set default value to 1.
7199 * invoke.texi (-fsched-verbose): Update the option's description.
7201 2015-11-09 Eric Botcazou <ebotcazou@adacore.com>
7203 * config/visium/visium.h (PRINT_OPERAND): Delete.
7204 (PRINT_OPERAND_PUNCT_VALID_P): Likewise.
7205 (PRINT_OPERAND_ADDRESS): Likewise.
7206 * config/visium/visium.c (TARGET_PRINT_OPERAND_PUNCT_VALID_P): Define
7208 (visium_print_operand_punct_valid_p): ...this. New function.
7209 (TARGET_PRINT_OPERAND): Define to...
7210 (print_operand): Rename to...
7211 (visium_print_operand): ...this.
7212 (TARGET_PRINT_OPERAND_ADDRESS): Define to...
7213 (visium_output_address): Rename to...
7214 (visium_print_operand_address): ...this.
7215 (print_operand_address): Delete.
7217 2015-11-09 Eric Botcazou <ebotcazou@adacore.com>
7220 * tree.h (reverse_storage_order_for_component_p) <COMPONENT_REF>:
7221 Check that the type of the first operand is an aggregate type.
7223 2015-11-09 Nathan Sidwell <nathan@codesourcery.com>
7225 * omp-low.c: Fix some OpenACC comment typos.
7226 (lower_reduction_clauses): Remove BUILT_IN_GOACC_GET_THREAD_NUM call.
7227 * omp-builtins.def (BUILT_IN_GOACC_GET_THREAD_NUM,
7228 BUILT_IN_GOACC_GET_NUM_THREADS): Delete.
7230 2015-11-09 Uros Bizjak <ubizjak@gmail.com>
7232 * config/i386/i386.md (*strmovqi_1): Fix insn enable condition.
7234 2015-11-09 Jeff Law <law@redhat.com>
7236 * tree-ssanames.c (verify_ssaname_freelists): Simplify check for
7237 being in gimple/ssa form. Remove redundant check for SSA_NAME.
7240 2015-11-09 Michael Meissner <meissner@linux.vnet.ibm.com>
7241 Peter Bergner <bergner@vnet.ibm.com>
7243 * config/rs6000/rs6000.opt (-mpower9-fusion): Add new switches for
7245 (-mpower9-vector): Likewise.
7246 (-mpower9-dform): Likewise.
7247 (-mpower9-minmax): Likewise.
7248 (-mtoc-fusion): Likewise.
7249 (-mmodulo): Likewise.
7250 (-mfloat128-hardware): Likewise.
7252 * config/rs6000/rs6000-cpus.def (ISA_3_0_MASKS_SERVER): Add option
7253 mask for ISA 3.0 (power9).
7254 (POWERPC_MASKS): Add new ISA 3.0 switches.
7255 (power9 cpu): Add power9 cpu.
7257 * config/rs6000/rs6000.h (ASM_CPU_POWER9_SPEC): Add support for power9.
7258 (ASM_CPU_SPEC): Likewise.
7259 (EXTRA_SPECS): Likewise.
7261 * config/rs6000/rs6000-opts.h (enum processor_type): Add
7264 * config/rs6000/rs6000.c (power9_cost): Initial cost setup for power9.
7265 (rs6000_debug_reg_global): Add support for power9 fusion.
7266 (rs6000_setup_reg_addr_masks): Cache mode size.
7267 (rs6000_option_override_internal): Until real power9 tuning is
7268 added, use -mtune=power8 for -mcpu=power9.
7269 (rs6000_setup_reg_addr_masks): Do not allow pre-increment,
7270 pre-decrement, or pre-modify on SFmode/DFmode if we allow the use
7271 of Altivec registers.
7272 (rs6000_option_override_internal): Add support for ISA 3.0 switches.
7273 (rs6000_loop_align): Add support for power9 cpu.
7274 (rs6000_file_start): Likewise.
7275 (rs6000_adjust_cost): Likewise.
7276 (rs6000_issue_rate): Likewise.
7277 (insn_must_be_first_in_group): Likewise.
7278 (insn_must_be_last_in_group): Likewise.
7279 (force_new_group): Likewise.
7280 (rs6000_register_move_cost): Likewise.
7281 (rs6000_opt_masks): Likewise.
7283 * config/rs6000/rs6000.md (cpu attribute): Add power9.
7284 * config/rs6000/rs6000-tables.opt: Regenerate.
7286 * config/rs6000/rs6000-c.c (rs6000_target_modify_macros): Define
7287 _ARCH_PWR9 if power9 support is available.
7289 * config/rs6000/aix61.h (ASM_CPU_SPEC): Add power9.
7290 * config/rs6000/aix53.h (ASM_CPU_SPEC): Likewise.
7292 * configure.ac: Determine if the assembler supports the ISA 3.0
7294 * config.in (HAVE_AS_POWER9): Likewise.
7295 * configure: Regenerate.
7297 * doc/invoke.texi (RS/6000 and PowerPC Options): Document ISA 3.0
7300 2015-11-09 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7302 * config/aarch64/aarch64.c (aarch64_simd_valid_immediate):
7303 Remove integer CONST_DOUBLE handling. It should never occur.
7305 2015-11-09 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7308 * config/aarch64/aarch64.h (TARGET_SUPPORTS_WIDE_INT): Define to 1.
7309 * config/aarch64/aarch64.c (aarch64_print_operand, CONST_DOUBLE):
7310 Delete VOIDmode case. Assert that mode is not VOIDmode.
7311 * config/aarch64/predicates.md (const0_operand): Remove const_double
7314 2015-11-09 Martin Liska <mliska@suse.cz>
7316 * ipa-inline-analysis.c (estimate_function_body_sizes): Call
7317 body_info release function.
7318 * ipa-prop.c (ipa_release_body_info): New function.
7319 (ipa_analyze_node): Call the function.
7320 (ipa_node_params::~ipa_node_params): Release known_csts.
7321 * ipa-prop.h (ipa_release_body_info): Declare.
7323 2015-11-09 Martin Liska <mliska@suse.cz>
7325 * gcc.c (record_temp_file): Release name string.
7326 * ifcvt.c (noce_convert_multiple_sets): Use auto_vec instead of vec.
7327 * lra-lives.c (free_live_range_list): Utilize
7328 lra_live_range_pool for allocation and deallocation.
7329 (create_live_range): Likewise.
7330 (copy_live_range): Likewise.
7331 (lra_merge_live_ranges): Likewise.
7332 (remove_some_program_points_and_update_live_ranges): Likewise.
7333 (lra_create_live_ranges_1): Release point_freq_vec that can
7334 be not freed from previous iteration of the function.
7335 * tree-eh.c (lower_try_finally_switch): Use auto_vec instead of vec.
7336 * tree-sra.c (sra_deinitialize): Release all vectors in
7338 * tree-ssa-dom.c (free_dom_edge_info): Make the function extern.
7339 * tree-ssa-threadupdate.c (remove_ctrl_stmt_and_useless_edges):
7340 Release edge_info for a removed edge.
7341 (thread_through_all_blocks): Free region vector.
7342 * tree-ssa.h (free_dom_edge_info): Declare function extern.
7344 2015-11-09 Ilya Enkovich <enkovich.gnu@gmail.com>
7346 * optabs.c (expand_vec_cond_expr): Always get sign from type.
7347 * tree.c (wide_int_to_tree): Support negative values for boolean.
7348 (build_nonstandard_boolean_type): Use signed type for booleans.
7350 2015-11-09 Richard Biener <rguenther@suse.de>
7352 PR tree-optimization/68248
7353 * tree-vect-generic.c (expand_vector_operations_1): Handle scalar rhs2.
7355 2015-11-09 Richard Biener <rguenther@suse.de>
7357 PR tree-optimization/56118
7358 * tree-vectorizer.h (vect_find_last_scalar_stmt_in_slp): Declare.
7359 * tree-vect-slp.c (vect_find_last_scalar_stmt_in_slp): Export.
7360 * tree-vect-data-refs.c (vect_slp_analyze_node_dependences): New
7362 (vect_slp_analyze_data_ref_dependences): Instead of computing
7363 all dependences of the region DRs just analyze the code motions
7364 SLP vectorization will perform. Remove SLP instances that
7365 cannot have their store/load motions applied.
7366 (vect_analyze_data_refs): Allow DRs without a vectype
7367 in BB vectorization.
7369 2015-11-09 Julian Brown <julian@codesourcery.com>
7371 * final.c (output_asm_insn): Pass VOIDmode to output_address.
7372 (output_address): Add MODE argument. Pass to print_operand_address
7374 * targhooks.c (default_print_operand_address): Add MODE argument.
7375 * targhooks.h (default_print_operand_address): Update prototype.
7376 * output.h (output_address): Update prototype.
7377 * target.def (print_operand_address): Add MODE argument.
7378 * config/vax/vax.c (print_operand_address): Pass VOIDmode to
7380 (print_operand): Pass access mode to output_address.
7381 * config/mcore/mcore.c (mcore_print_operand_address): Add MODE
7383 (mcore_print_operand): Update calls to mcore_print_operand_address.
7384 * config/fr30/fr30.c (fr30_print_operand): Pass VOIDmode to
7386 * config/lm32/lm32.c (lm32_print_operand): Pass mode in calls to
7388 * config/tilegx/tilegx.c (output_memory_reference_mode): Remove
7390 (tilegx_print_operand): Don't set above global. Update calls to
7392 (tilegx_print_operand_address): Add MODE argument. Use instead of
7393 output_memory_reference_mode global.
7394 * config/frv/frv.c (frv_print_operand_address): Add MODE argument.
7395 (frv_print_operand): Pass mode to frv_print_operand_address calls.
7396 * config/mn10300/mn10300.c (mn10300_print_operand): Pass mode to
7398 * config/cris/cris.c (cris_print_operand_address): Add MODE argument.
7399 (cris_print_operand): Pass mode to output_address calls.
7400 * config/spu/spu.c (print_operand): Pass mode to output_address calls.
7401 * config/aarch64/aarch64.h (aarch64_print_operand)
7402 (aarch64_print_operand_address): Remove prototypes.
7403 * config/aarch64/aarch64.c (aarch64_memory_reference_mode): Delete
7405 (aarch64_print_operand): Make static. Update calls to output_address.
7406 (aarch64_print_operand_address): Add MODE argument. Use instead of
7407 aarch64_memory_reference_mode global.
7408 (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS): Define target
7410 * config/aarch64/aarch64.h (PRINT_OPERAND, PRINT_OPERAND_ADDRESS):
7411 Delete macro definitions.
7412 * config/pa/pa.c (pa_print_operand): Pass mode in output_address calls.
7413 * config/xtensa/xtensa.c (print_operand): Pass mode in
7414 output_address calls.
7415 * config/h8300/h8300.c (h8300_print_operand_address): Add MODE
7417 (h83000_print_operand): Update calls to h8300_print_operand_address
7419 * config/ia64/ia64.c (ia64_print_operand_address): Add MODE argument.
7420 * config/tilepro/tilepro.c (output_memory_reference_mode): Delete
7422 (tilepro_print_operand): Pass mode to output_address.
7423 (tilepro_print_operand_address): Add MODE argument. Use instead of
7424 output_memory_reference_mode.
7425 * config/nvptx/nvptx.c (output_decl_chunk, nvptx_assemble_integer)
7426 (nvptx_output_call_insn, nvptx_print_address_operand): Pass VOIDmode
7427 to output_address calls.
7428 (nvptx_print_operand_address): Add MODE argument.
7429 * config/alpha/alpha.c (print_operand): Pass mode argument in
7430 output_address calls.
7431 * config/m68k/m68k.c (print_operand): Pass mode argument in
7432 output_address call.
7433 * config/avr/avr.c (avr_print_operand_address): Add MODE argument.
7434 (avr_print_operand): Update calls to avr_print_operand_address.
7435 * config/sparc/sparc.c (sparc_print_operand_address): Add MODE
7436 argument. Update calls to output_address.
7437 (sparc_print_operand): Pass mode to output_address.
7438 * config/iq2000/iq2000.c (iq2000_print_operand_address): Add MODE
7440 (iq2000_print_operand): Pass mode in output_address calls.
7441 * config/stormy16/stormy16.c (xstormy16_print_operand_address): Add
7443 (xstormy16_print_operand): Pass mode to
7444 xstormy16_print_operand_address calls.
7445 * config/mips/mips.c (mips_print_operand): Update calls to
7447 (mips_print_operand_address): Add MODE argument.
7448 * config/epiphany/epiphany.c (epiphany_print_operand): Update calls
7450 (epiphany_print_operand_address): Add MODE argument. Add FIXME note.
7451 * config/pdp11/pdp11.c (pdp11_asm_print_operand): Update call to
7453 * config/rx/rx.c (rx_print_operand_address): Add MODE argument.
7454 (rx_print_operand): Update calls to output_address,
7455 rx_print_operand_address.
7456 * config/nds32/nds32.c (nds32_print_operand): Update calls to
7458 (nds32_print_operand_address): Add MODE argument.
7459 * config/rs6000/rs6000.c (print_operand): Pass mem mode to
7460 output_address calls.
7461 * config/c6x/c6x.c (print_address_offset): Pass mem mode to
7462 output_address call.
7463 (c6x_print_address_operand): Update calls to output_address.
7464 (c6x_print_operand_address): Pass mode to above.
7465 * config/v850/v850.c (v850_print_operand_address): Add MODE argument.
7466 (v850_print_operand): Pass mode to v850_print_operand_address,
7468 * config/mmix/mmix.c (mmix_print_operand_address): Add MODE argument.
7469 (mmix_print_operand): Pass mode in output_address calls.
7470 * config/sh/sh.c (sh_print_operand_address): Add MODE argument.
7471 (sh_print_operand): Pass mem mode to output_address,
7472 sh_print_operand_address.
7473 * config/cr16/cr16.c (cr16_print_operand_address): Add MODE argument.
7474 (cr16_print_operand): Pass mode to output_address,
7475 cr16_print_operand_address.
7476 * config/bfin/bfin.c (print_address_operand): Pass VOIDmode to
7478 * config/microblaze/microblaze.c (print_operand): Pass mode to
7480 * config/nios2/nios2.c (nios2_print_operand): Pass VOIDmode to
7482 (nios2_print_operand_address): Add MODE argument. Update call to
7483 nios2_print_operand_address.
7484 * config/s390/s390.c (print_operand): Pass mode to output_address.
7485 * config/m32c/m32c.c (m32c_print_operand_address): Add MODE argument.
7486 * config/arc/arc.c (arc_print_operand): Pass VOIDmode to
7488 * config/arm/arm.c (arm_print_operand_address): Add MODE argument.
7489 Use instead of output_memory_reference_mode.
7490 (output_memory_reference_mode): Delete global.
7491 (arm_print_operand): Pass mem mode to output_address.
7492 * config/m32r/m32r.c (m32r_print_operand_address): Add MODE argument.
7493 (m32r_print_operand): Pass mode to output_address.
7494 * config/msp430/msp430.c (msp430_print_operand_addr): Add MODE
7496 (msp430_print_operand): Pass mode to msp430_print_operand_addr.
7497 * config/i386/i386.c (ix86_print_operand): Pass mode to
7498 output_address calls.
7499 (ix86_print_operand_address): Add MODE argument.
7501 2015-11-09 Eric Botcazou <ebotcazou@adacore.com>
7504 * tree-core.h (REF_REVERSE_STORAGE_ORDER): Move around.
7505 * tree.h (REF_REVERSE_STORAGE_ORDER): Change to default_def_flag.
7506 * tree-streamer-in.c (unpack_ts_base_value_fields): Adjust.
7507 * tree-streamer-out.c (pack_ts_base_value_fields): Likewise.
7509 2015-11-09 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7511 PR rtl-optimization/67749
7512 * ifcvt.c (noce_try_cmove_arith): Do not emit move in IF-ELSE
7513 case before emitting the two blocks. Instead modify the register
7514 in the corresponding final insn of the basic block.
7516 2015-11-09 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7518 * acinclude.m4 (gcc_AC_INITFINI_ARRAY): Allow for differences in
7521 Define HAVE_INITFINI_ARRAY_SUPPORT as 0/1.
7523 * config/sol2.h (SUPPORTS_INIT_PRIORITY): Define to
7524 HAVE_INITFINI_ARRAY_SUPPORT.
7525 * config/initfini-array.h: Check HAVE_INITFINI_ARRAY_SUPPORT value.
7527 * configure.ac (gcc_cv_as_sparc_nobits): Remove.
7528 * config/sparc/sparc.c (sparc_solaris_elf_asm_named_section):
7529 Don't check HAVE_AS_SPARC_NOBITS.
7530 Heed SECTION_NOTYPE.
7532 * configure: Regenerate.
7533 * config.in: Regenerate.
7535 2015-11-09 Eric Botcazou <ebotcazou@adacore.com>
7538 * fold-const.c (fold_truth_andor_1): Initialize new variables to 0.
7540 2015-11-09 Richard Henderson <rth@redhat.com>
7542 * config/i386/i386-c.c (ix86_target_macros): Define __SEG_FS,
7543 __SEG_GS, __SEG_TLS.
7544 (ix86_register_pragmas): Register address spaces __seg_fs,
7545 __seg_gs, __seg_tls.
7546 * config/i386/i386-protos.h (enum ix86_address_seg): Remove.
7547 (ADDR_SPACE_SEG_FS, ADDR_SPACE_SEG_GS, ADDR_SPACE_SEG_TLS): New.
7548 (struct ix86_address): Use addr_space_t instead of ix86_address_seg.
7549 * config/i386/i386.c (ix86_decompose_address): Likewise.
7550 (ix86_legitimate_address_p): Likewise.
7551 (memory_address_length): Likewise. Check mem address space too.
7552 (ix86_print_operand): Use ix86_print_operand_address_as.
7553 (ix86_print_operand_address_as): Rename from
7554 ix86_print_operand_address, add new addr_space_t parameter.
7555 Validate that either the parameter or the ix86_address segment
7556 is default address space. Handle ADDR_SPACE_SEG_TLS.
7557 (ix86_print_operand_address): New.
7558 (ix86_addr_space_subset_p, TARGET_ADDR_SPACE_SUBSET_P): New.
7559 (ix86_addr_space_convert, TARGET_ADDR_SPACE_CONVERT): New.
7560 (ix86_addr_space_debug, TARGET_ADDR_SPACE_DEBUG): New.
7561 (ix86_addr_space_zero_address_valid): New.
7562 (TARGET_ADDR_SPACE_ZERO_ADDRESS_VALID): New.
7563 * config/i386/i386.h (DEFAULT_TLS_SEG_REG): Use addr_space_t constants.
7564 * config/i386/rdos.h (DEFAULT_TLS_SEG_REG): Likewise.
7565 * config/i386/predicates.md (address_no_seg_operand): Likewise.
7566 (vsib_address_operand): Likewise.
7567 (address_mpx_no_base_operand): Likewise.
7568 (address_mpx_no_index_operand): Likewise.
7569 * doc/extend.texi (x86 Named Address Spaces): New section.
7571 * config/i386/i386.c (ix86_check_no_addr_space): New.
7572 (decide_alg): Add have_as parameter.
7573 (alg_usable_p): Likewise; disable rep algorithms if set.
7574 (ix86_expand_set_or_movmem): Notice if either MEM has a
7575 non-default address space.
7576 (ix86_expand_strlen): Likewise.
7577 * config/i386/i386.md (strmov, strset): Likewise.
7578 (*strmovdi_rex_1): Use ix86_check_no_addr_space.
7579 (*strmovsi_1, *strmovqi_1, *rep_movdi_rex64, *rep_movsi, *rep_movqi,
7580 *strsetdi_rex_1, *strsetsi_1, *strsethi_1, *strsetqi_1,
7581 *rep_stosdi_rex64, *rep_stossi, *rep_stosqi, *cmpstrnqi_nz_1,
7582 *cmpstrnqi_1, *strlenqi_1): Likewise.
7584 * config/i386/i386.md (*movabs<mode>_1): Print the full memory rtx.
7585 (*movabs<mode>_2): Likewise.
7587 * dwarf2out.c (modified_type_die): Pass the address space number
7588 through TARGET_ADDR_SPACE_DEBUG to produce the dwarf address class.
7589 * target.def (TARGET_ADDR_SPACE_DEBUG): New.
7590 * targhooks.c (default_addr_space_debug): New.
7591 * targhooks.h (default_addr_space_debug): Declare.
7592 * doc/tm.texi.in (TARGET_ADDR_SPACE_DEBUG): Mark it.
7593 * doc/tm.texi: Rebuild.
7595 * gimple.c (check_loadstore): Return false when 0 is a valid address.
7596 * fold-const.c (const_unop) [ADDR_SPACE_CONVERT_EXPR]: Do not fold
7597 null when 0 is valid in the source address space.
7598 * target.def (TARGET_ADDR_SPACE_ZERO_ADDRESS_VALID): New.
7599 * targhooks.c (default_addr_space_zero_address_valid): New.
7600 * targhooks.h (default_addr_space_zero_address_valid): Declare.
7601 * doc/tm.texi.in (TARGET_ADDR_SPACE_ZERO_ADDRESS_VALID): Mark it.
7602 * doc/tm.texi: Rebuild.
7604 * cselib.c (add_mem_for_addr): Compare address spaces when
7606 (cselib_lookup_mem): Likewise.
7607 * fold-const.c (operand_equal_p): Check address spaces of
7608 pointer types before checking integer constants.
7611 * tree-ssa-address.c (create_mem_ref_raw): Use a pointer of
7612 the correct type for the base.
7614 2015-11-09 Jeff Law <law@redhat.com>
7616 * tree-into-ssa.c (names_to_release): No longer static.
7617 * tree-into-ssa.h (names_to_release): Declare.
7618 * tree-ssanames.c (verify_ssaname_freelists): New debug function.
7619 (release_free_names_and_compact_live_names): New function extracted
7620 from pass_release_ssa_names::execute.
7621 (pass_release_ssa_names::execute): Use it.
7623 2015-11-09 Alan Modra <amodra@gmail.com>
7625 * gensupport.c (add_mnemonic_string): Make len param a size_t.
7626 (gen_mnemonic_setattr): Make "size" var a size_t. Use
7627 obstack_blank_fast to shrink obstack. Cast obstack_next_free
7630 2015-11-09 Segher Boessenkool <segher@kernel.crashing.org>
7632 PR rtl-optimization/68182
7633 * bb-reorder.c (reorder_basic_blocks_simple): Treat a conditional
7634 branch with only one successor just like unconditional branches.
7636 2015-11-08 Jeff Law <law@redhat.com>
7638 * tree-ssa-threadupdate.c (register_jump_thraed): Assert that a
7639 non-FSM path has no edges marked with EDGE_DFS_BACK.
7640 (ssa_redirect_edges): No longer call mark_loop_for_removal.
7641 (thread_single_edge, def_split_header_continue_p): Remove.
7642 (bb_ends_with_multiway_branch): Likewise.
7643 (thread_through_loop_header): Remove cases of threading from
7644 latch through the header. Simplify knowing we won't thread
7646 (thread_through_all_blocks): Simplify knowing that only the FSM
7647 threader needs to handle backedges.
7649 2015-11-08 Eric Botcazou <ebotcazou@adacore.com>
7651 * doc/extend.texi (type attributes): Document scalar_storage_order.
7652 (Structure-Packing Pragmas): Rename into...
7653 (Structure-Layout Pragmas): ...this. Document scalar_storage_order.
7654 * doc/invoke.texi (C Dialect Options): Document -fsso-struct
7655 (Warnings): Document -Wno-scalar-storage-order.
7656 * flag-types.h (enum scalar_storage_order_kind): New enumeration.
7657 * calls.c (store_unaligned_arguments_into_pseudos): Adjust calls to
7658 extract_bit_field and store_bit_field.
7659 (initialize_argument_information): Adjust call to store_expr.
7660 (load_register_parameters): Adjust call to extract_bit_field.
7661 * expmed.c (check_reverse_storage_order_support): New function.
7662 (check_reverse_float_storage_order_support): Likewise.
7663 (flip_storage_order): Likewise.
7664 (store_bit_field_1): Add REVERSE parameter. Flip the storage order
7665 of the value if it is true. Pass REVERSE to recursive call after
7666 adjusting the target offset.
7667 Do not use extraction or movstrict instruction if REVERSE is true.
7668 Pass REVERSE to store_fixed_bit_field.
7669 (store_bit_field): Add REVERSE parameter and pass to it to above.
7670 (store_fixed_bit_field): Add REVERSE parameter and pass to it to
7671 store_split_bit_field and store_fixed_bit_field_1.
7672 (store_fixed_bit_field_1): Add REVERSE parameter. Flip the storage
7673 order of the value if it is true and adjust the target offset.
7674 (store_split_bit_field): Add REVERSE parameter and pass it to
7675 store_fixed_bit_field. Adjust the target offset if it is true.
7676 (extract_bit_field_1): Add REVERSE parameter. Flip the storage order
7677 of the value if it is true. Pass REVERSE to recursive call after
7678 adjusting the target offset.
7679 Do not use extraction or subreg instruction if REVERSE is true.
7680 Pass REVERSE to extract_fixed_bit_field.
7681 (extract_bit_field): Add REVERSE parameter and pass to it to above.
7682 (extract_fixed_bit_field): Add REVERSE parameter and pass to it to
7683 extract_split_bit_field and extract_fixed_bit_field_1.
7684 (extract_fixed_bit_field_1): Add REVERSE parameter. Flip the storage
7685 order of the value if it is true and adjust the target offset.
7686 (extract_split_bit_field): Add REVERSE parameter and pass it to
7687 extract_fixed_bit_field. Adjust the target offset if it is true.
7688 * expmed.h (flip_storage_order): Declare.
7689 (store_bit_field): Adjust prototype.
7690 (extract_bit_field): Likewise.
7691 * expr.c (emit_group_load_1): Adjust calls to extract_bit_field.
7692 (emit_group_store): Adjust call to store_bit_field.
7693 (copy_blkmode_from_reg): Likewise.
7694 (copy_blkmode_to_reg): Likewise.
7695 (write_complex_part): Likewise.
7696 (read_complex_part): Likewise.
7697 (optimize_bitfield_assignment_op): Add REVERSE parameter. Assert
7698 that it isn't true if the target is a register.
7699 <PLUS_EXPR>: If it is, do not optimize unless bitsize is equal to 1,
7700 and flip the storage order of the value.
7701 <BIT_IOR_EXPR>: Flip the storage order of the value.
7702 (get_bit_range): Adjust call to get_inner_reference.
7703 (expand_assignment): Adjust calls to get_inner_reference, store_expr,
7704 optimize_bitfield_assignment_op and store_field. Handle MEM_EXPRs
7705 with reverse storage order.
7706 (store_expr_with_bounds): Add REVERSE parameter and pass it to
7707 recursive calls and call to store_bit_field. Force the value into a
7708 register if it is true and then flip the storage order of the value.
7709 (store_expr): Add REVERSE parameter and pass it to above.
7710 (categorize_ctor_elements_1): Adjust call to
7711 initializer_constant_valid_p.
7712 (store_constructor_field): Add REVERSE parameter and pass it to
7713 recursive calls and call to store_field.
7714 (store_constructor): Add REVERSE parameter and pass it to calls to
7715 store_constructor_field and store_expr. Set it to true for an
7716 aggregate type with TYPE_REVERSE_STORAGE_ORDER.
7717 (store_field): Add REVERSE parameter and pass it to recursive calls
7718 and calls to store_expr and store_bit_field. Temporarily flip the
7719 storage order of the value with record type and integral mode and
7720 adjust the shift if it is true.
7721 (get_inner_reference): Add PREVERSEP parameter and set it to true
7722 upon encoutering a reference with reverse storage order.
7723 (expand_expr_addr_expr_1): Adjust call to get_inner_reference.
7724 (expand_constructor): Adjust call to store_constructor.
7725 (expand_expr_real_2) <CASE_CONVERT>: Pass TYPE_REVERSE_STORAGE_ORDER
7726 of the union type to store_expr in the MEM case and assert that it
7727 isn't set in the REG case. Adjust call to store_field.
7728 (expand_expr_real_1) <MEM_REF>: Handle reverse storage order.
7729 <normal_inner_ref>: Add REVERSEP variable and adjust calls to
7730 get_inner_reference and extract_bit_field. Temporarily flip the
7731 storage order of the value with record type and integral mode and
7732 adjust the shift if it is true. Flip the storage order of the value
7733 at the end if it is true.
7734 <VIEW_CONVERT_EXPR>: Add REVERSEP variable and adjust call to
7735 get_inner_reference. Do not fetch an inner reference if it is true.
7736 * expr.h (store_expr_with_bounds): Ajust prototype.
7737 (store_expr): Likewise.
7738 * fold-const.c (make_bit_field_ref): Add REVERSEP parameter and set
7739 REF_REVERSE_STORAGE_ORDER on the reference according to it.
7740 (optimize_bit_field_compare): Deal with reverse storage order.
7741 Adjust calls to get_inner_reference and make_bit_field_ref.
7742 (decode_field_reference): Add PREVERSEP parameter and adjust call to
7743 get_inner_reference.
7744 (fold_truth_andor_1): Deal with reverse storage order. Adjust calls
7745 to decode_field_reference and make_bit_field_ref.
7746 (fold_unary_loc) <CASE_CONVERT>: Adjust call to get_inner_reference.
7747 <VIEW_CONVERT_EXPR>: Propagate the REF_REVERSE_STORAGE_ORDER flag.
7748 (fold_comparison): Adjust call to get_inner_reference.
7749 (split_address_to_core_and_offset): Adjust call to
7750 get_inner_reference.
7751 * gimple-expr.c (useless_type_conversion_p): Return false for array
7752 types with different TYPE_REVERSE_STORAGE_ORDER flag.
7753 * gimplify.c (gimplify_expr) <MEM_REF>: Propagate the
7754 REF_REVERSE_STORAGE_ORDER flag.
7755 * lto-streamer-out.c (hash_tree): Deal with TYPE_REVERSE_STORAGE_ORDER.
7756 * output.h (assemble_real): Adjust prototype.
7757 * print-tree.c (print_node): Convey TYPE_REVERSE_STORAGE_ORDER.
7758 * stor-layout.c (finish_record_layout): Propagate the
7759 TYPE_REVERSE_STORAGE_ORDER flag to the variants.
7760 * tree-core.h (TYPE_REVERSE_STORAGE_ORDER): Document.
7761 (TYPE_SATURATING): Adjust.
7762 (REF_REVERSE_STORAGE_ORDER): Document.
7763 * tree-dfa.c (get_ref_base_and_extent): Add PREVERSE parameter and
7764 set it to true upon encoutering a reference with reverse storage order.
7765 * tree-dfa.h (get_ref_base_and_extent): Adjust prototype.
7766 * tree-inline.c (remap_gimple_op_r): Propagate the
7767 REF_REVERSE_STORAGE_ORDER flag.
7768 (copy_tree_body_r): Likewise.
7769 * tree-outof-ssa.c (insert_value_copy_on_edge): Adjust call to
7771 * tree-streamer-in.c (unpack_ts_base_value_fields): Deal with
7772 TYPE_REVERSE_STORAGE_ORDER and REF_REVERSE_STORAGE_ORDER.
7773 * tree-streamer-out.c (pack_ts_base_value_fields): Likewise.
7774 * tree.c (stabilize_reference) <BIT_FIELD_REF>: Propagate the
7775 REF_REVERSE_STORAGE_ORDER flag.
7776 (verify_type_variant): Deal with TYPE_REVERSE_STORAGE_ORDER.
7777 (gimple_canonical_types_compatible_p): Likewise.
7778 * tree.h (TYPE_REVERSE_STORAGE_ORDER): New flag.
7779 (TYPE_SATURATING): Adjust.
7780 (REF_REVERSE_STORAGE_ORDER): New flag.
7781 (reverse_storage_order_for_component_p): New inline predicate.
7782 (storage_order_barrier_p): Likewise.
7783 (get_inner_reference): Adjust prototype.
7784 * varasm.c: Include expmed.h.
7785 (assemble_variable_contents): Adjust call to output_constant.
7786 (assemble_real): Add REVERSE parameter. Flip the storage
7787 order of the value if REVERSE is true.
7788 (compare_constant) <CONSTRUCTOR>: Compare TYPE_REVERSE_STORAGE_ORDER.
7789 (assemble_constant_contents): Adjust call to output_constant.
7790 (output_constant_pool_2): Adjust call to assemble_real.
7791 (initializer_constant_valid_p_1) <CONSTRUCTOR>: Deal with
7792 TYPE_REVERSE_STORAGE_ORDER.
7793 (initializer_constant_valid_p): Add REVERSE parameter.
7794 (output_constant): Add REVERSE parameter.
7795 <INTEGER_TYPE>: Flip the storage order of the value if REVERSE is true.
7796 <REAL_TYPE>: Adjust call to assemble_real.
7797 <COMPLEX_TYPE>: Pass it to recursive calls.
7798 <ARRAY_TYPE>: Likewise. Adjust call to output_constructor.
7799 <RECORD_TYPE>: Likewise. Adjust call to output_constructor.
7800 (struct oc_local_state): Add REVERSE field.
7801 (output_constructor_array_range): Adjust calls to output_constant.
7802 (output_constructor_regular_field): Likewise.
7803 (output_constructor_bitfield): Adjust call to output_constructor.
7804 Flip the storage order of the value if REVERSE is true.
7805 (output_constructor): Add REVERSE parameter. Set it to true for an
7806 aggregate type with TYPE_REVERSE_STORAGE_ORDER. Adjust call to
7807 output_constructor_bitfield.
7808 * varasm.h (initializer_constant_valid_p): Default REVERSE to false.
7809 * asan.c (instrument_derefs): Adjust call to get_inner_reference.
7810 * builtins.c (get_object_alignment_2): Likewise.
7811 * cfgexpand.c (expand_debug_expr): Adjust call to get_inner_reference
7812 and get_ref_base_and_extent.
7813 * dbxout.c (dbxout_expand_expr): Likewise.
7814 * dwarf2out.c (add_var_loc_to_decl): Likewise.
7815 (loc_list_for_address_of_addr_expr_of_indirect_ref): Likewise.
7816 (loc_list_from_tree): Likewise.
7817 (fortran_common): Likewise.
7818 * gimple-fold.c (gimple_fold_builtin_memory_op): Adjust calls to
7819 get_ref_base_and_extent.
7820 (get_base_constructor): Likewise.
7821 (fold_const_aggregate_ref_1): Likewise.
7822 * gimple-laddress.c (pass_laddress::execute): Adjust call to
7823 get_inner_reference.
7824 * gimple-ssa-strength-reduction.c (slsr_process_ref): Adjust call to
7825 get_inner_reference and bail out on reverse storage order.
7826 * ifcvt.c (noce_emit_move_insn): Adjust calls to store_bit_field.
7827 * ipa-cp.c (ipa_get_jf_ancestor_result): Adjust call to
7828 build_ref_for_offset.
7829 * ipa-polymorphic-call.c (set_by_invariant): Adjust call to
7830 get_ref_base_and_extent.
7831 (ipa_polymorphic_call_context): Likewise.
7832 (extr_type_from_vtbl_ptr_store): Likewise.
7833 (check_stmt_for_type_change): Likewise.
7834 (get_dynamic_type): Likewise.
7835 * ipa-prop.c (ipa_load_from_parm_agg_1): Adjust call to
7836 get_ref_base_and_extent.
7837 (compute_complex_assign_jump_func): Likewise.
7838 (get_ancestor_addr_info): Likewise.
7839 (compute_known_type_jump_func): Likewise.
7840 (determine_known_aggregate_parts): Likewise.
7841 (ipa_get_adjustment_candidate): Likewise.
7842 (ipa_modify_call_arguments): Set REF_REVERSE_STORAGE_ORDER on MEM_REF.
7843 * ipa-prop.h (ipa_parm_adjustment): Add REVERSE field.
7844 (build_ref_for_offset): Adjust prototype.
7845 * simplify-rtx.c (delegitimize_mem_from_attrs): Adjust call to
7846 get_inner_reference.
7847 * tree-affine.c (tree_to_aff_combination): Adjust call to
7848 get_inner_reference.
7849 (get_inner_reference_aff): Likewise.
7850 * tree-data-ref.c (split_constant_offset_1): Likewise.
7851 (dr_analyze_innermost): Likewise. Bail out if reverse storage order.
7852 * tree-scalar-evolution.c (interpret_rhs_expr): Adjust call to
7853 get_inner_reference.
7854 * tree-sra.c (struct access): Add REVERSE and move WRITE around.
7855 (dump_access): Print new fields.
7856 (create_access): Adjust call to get_ref_base_and_extent and set the
7857 REVERSE flag according to the result.
7858 (completely_scalarize_record): Set the REVERSE flag.
7859 (scalarize_elem): Add REVERSE parameter.
7860 (build_access_from_expr_1): Preserve storage order barriers.
7861 (build_accesses_from_assign): Likewise.
7862 (build_ref_for_offset): Add REVERSE parameter and set the
7863 REF_REVERSE_STORAGE_ORDER flag accordingly.
7864 (build_ref_for_model): Adjust call to build_ref_for_offset and clear
7865 the REF_REVERSE_STORAGE_ORDER flag if there are components.
7866 (analyze_access_subtree): Likewise.
7867 (create_artificial_child_access): Set the REVERSE flag.
7868 (get_access_for_expr): Adjust call to get_ref_base_and_extent.
7869 (turn_representatives_into_adjustments): Propagate REVERSE flag.
7870 (ipa_sra_check_caller): Adjust call to get_inner_reference.
7871 * tree-ssa-alias.c (ao_ref_base): Adjust call to
7872 get_ref_base_and_extent.
7873 (aliasing_component_refs_p): Likewise.
7874 (stmt_kills_ref_p_1): Likewise.
7875 * tree-ssa-dce.c (mark_aliased_reaching_defs_necessary_1): Likewise.
7876 * tree-ssa-loop-ivopts.c (may_be_nonaddressable_p) <MEM_REF>: New.
7877 Return true if reverse storage order.
7878 <BIT_FIELD_REF>: Likewise.
7879 <COMPONENT_REF>: Likewise.
7880 <ARRAY_REF>: Likewise.
7881 <ARRAY_RANGE_REF>: Likewise.
7882 (split_address_cost): Likewise. Bail out if reverse storage order.
7883 * tree-ssa-math-opts.c (find_bswap_or_nop_load): Adjust call to
7884 get_inner_reference. Bail out if reverse storage order.
7885 (bswap_replace): Adjust call to get_inner_reference.
7886 * tree-ssa-pre.c (create_component_ref_by_pieces_1) <MEM_REF>: Set
7887 the REF_REVERSE_STORAGE_ORDER flag.
7888 <BIT_FIELD_REF>: Likewise.
7889 * tree-ssa-sccvn.c (vn_reference_eq): Return false on storage order
7891 (copy_reference_ops_from_ref) <MEM_REF>: Set REVERSE field according
7892 to the REF_REVERSE_STORAGE_ORDER flag.
7893 <BIT_FIELD_REF>: Likewise.
7894 <VIEW_CONVERT_EXPR>: Set it for storage order barriers.
7895 (contains_storage_order_barrier_p): New predicate.
7896 (vn_reference_lookup_3): Adjust calls to get_ref_base_and_extent.
7897 Punt on storage order barriers if necessary.
7898 * tree-ssa-sccvn.h (struct vn_reference_op_struct): Add REVERSE.
7899 * tree-ssa-structalias.c (get_constraint_for_component_ref): Adjust
7900 call to get_ref_base_and_extent.
7901 (do_structure_copy): Likewise.
7902 * tree-vect-data-refs.c (vect_check_gather): Adjust call to
7903 get_inner_reference.
7904 (vect_analyze_data_refs): Likewise. Bail out if reverse storage order.
7905 * tsan.c (instrument_expr): Adjust call to get_inner_reference.
7906 * ubsan.c (instrument_bool_enum_load): Likewise.
7907 (instrument_object_size): Likewise.
7908 * var-tracking.c (track_expr_p): Adjust call to
7909 get_ref_base_and_extent.
7910 * config/mips/mips.c (r10k_safe_mem_expr_p): Adjust call to
7911 get_inner_reference.
7912 * config/s390/s390.c (s390_expand_atomic): Adjust call to
7914 * config/tilegx/tilegx.c (tilegx_expand_unaligned_load): Adjust call to
7916 * config/tilepro/tilepro.c (tilepro_expand_unaligned_load): Likewise.
7918 2015-11-07 Eric Botcazou <ebotcazou@adacore.com>
7920 * config/sparc/sparc.opt (mfix-at697f): Add final period.
7922 2015-11-07 Segher Boessenkool <segher@kernel.crashing.org>
7924 PR rtl-optimization/67864
7925 * common/config/i386/i386-common.c (ix86_option_optimization_table)
7926 <OPT_freorder_blocks_algorithm_>: Use REORDER_BLOCKS_ALGORITHM_STC
7929 2015-11-07 Richard Sandiford <richard.sandiford@arm.com>
7931 * trans-mem.c (is_tm_pure_call): Use gimple_call_flags for
7934 2015-11-07 Richard Sandiford <richard.sandiford@arm.com>
7936 * builtins.def: #undef DEF_BUILTIN and DEF_BUILTIN_CHKP
7937 * builtins.c, genmatch.c, tree-core.h: Don't undef them here.
7939 2015-11-07 Richard Sandiford <richard.sandiford@arm.com>
7941 * internal-fn.def: #undef DEF_INTERNAL_FN at the end.
7942 * internal-fn.c: Don't undef it here.
7943 * tree-core.h: Likewise.
7945 2015-11-07 Richard Sandiford <richard.sandiford@arm.com>
7947 * builtins.c (fold_builtin_nan): Delete.
7948 (fold_builtin_memcmp): Remove case where both arguments are constant.
7949 (fold_builtin_strcmp, fold_builtin_strncmp): Likewise.
7950 (fold_builtin_strspn, fold_builtin_strcspn): Likewise.
7951 (fold_builtin_1): Remove BUILT_IN_NAN* handling.
7952 * fold-const-call.c: Include fold-const.h.
7953 (host_size_t_cst_p): New function.
7954 (build_cmp_result, fold_const_builtin_nan): Likewise.
7955 (fold_const_call_1): New function, split out from...
7956 (fold_const_call): ...here (for all three interfaces). Handle
7957 constant nan, nans, strlen, strcmp, strncmp, strspn and strcspn.
7959 2015-11-07 Richard Sandiford <richard.sandiford@arm.com>
7961 * builtins.c (fold_builtin_bitop, fold_builtin_bswap): Delete.
7962 (fold_builtin_1): Don't call them.
7963 * fold-const-call.c: Include tm.h.
7964 (fold_const_call_ss): New variant for integer-to-integer folds.
7965 (fold_const_call): Call it.
7967 2015-11-07 Richard Sandiford <richard.sandiford@arm.com>
7969 * builtins.c (fold_builtin_classify): Move constant cases to...
7970 * fold-const-call.c (fold_const_call_ss): ...here.
7972 2015-11-07 Richard Sandiford <richard.sandiford@arm.com>
7974 * builtins.h (c_getstr): Move to...
7975 * fold-const.h (c_getstr): ...here.
7976 * builtins.c (c_getstr): Move to...
7977 * fold-const.c (c_getstr): ...here.
7979 2015-11-07 Richard Sandiford <richard.sandiford@arm.com>
7981 * builtins.def (BUILTIN_RINT, BUILTIN_RINTF, BUILTIN_RINTL): Use
7982 ATTR_MATHFN_FPROUNDING rather than ATTR_MATHFN_FPROUNDING_ERRNO.
7984 2015-11-07 Richard Sandiford <richard.sandiford@arm.com>
7986 * tree-call-cdce.c (shrink_wrap_one_built_in_call): Try to update
7987 the dominance info; free it if we can't.
7988 (pass_call_cdce::execute): Don't free the dominance info here.
7990 2015-11-06 Jeff Law <law@redhat.com>
7992 * tree-ssa-threadedge.c (dummy_simplify): Remove.
7993 (thread_around_empty_blocks): Remove backedge_seen_p argument.
7994 If we thread to a backedge, then return false. Update recursive
7995 call to eliminate backedge_seen_p argument.
7996 (thread_through_normal_block): Remove backedge_seen_p argument.
7997 Remove backedge_seen_p argument from calls to
7998 thread_around_empty_blocks. Remove checks on backedge_seen_p.
7999 If we thread to a backedge, then return 0.
8000 (thread_across_edge): Remove bookkeeping for backedge_seen. Don't
8001 pass it to thread_through_normal_block or thread_through_empty_blocks.
8002 For joiner handling, if we see a backedge, do not try normal
8005 2015-11-06 Abderrazek Zaafrani <a.zaafrani@samsung.com>
8007 * graphite-optimize-isl.c (optimize_isl): Call isl_union_map_is_equal.
8008 * graphite-poly.c (new_scop): Initialize original_schedule.
8009 (free_scop): Free original_schedule.
8010 * graphite-poly.h (struct scop): Add field original_schedule.
8011 * graphite-sese-to-poly.c (build_scop_original_schedule): New.
8012 (build_poly_scop): Call build_scop_original_schedule.
8014 2015-11-06 Abderrazek Zaafrani <a.zaafrani@samsung.com>
8016 * graphite-sese-to-poly.c (build_pbb_scattering_polyhedrons): Remove.
8017 (build_pbb_minimal_scattering_polyhedrons): New.
8018 (build_scop_scattering): Remove.
8019 (build_scop_minimal_scattering): New.
8020 (build_scop_scattering): Call build_pbb_minimal_scattering_polyhedrons.
8021 (build_poly_scop): Call build_scop_minimal_scattering.
8023 2015-11-06 Jeff Law <law@redhat.com>
8025 * cfg-flags.def (IGNORE): New edge flag.
8026 * tree-vrp.c (identify_jump_threads): Mark and clear edges
8027 scheduled for removal with EDGE_IGNORE around call into
8028 jump threader. Do no thread across edges with EDGE_IGNORE,
8029 but do allow threading across those with EDGE_DFS_BACK.
8031 2015-11-06 David Wohlferd <dw@LimeGreenSocks.com>
8033 * doc/md.texi (multi-alternative constraints): Don't document
8034 alternatives inherently tied to reload for the user documentation.
8036 2015-11-06 Michael Collison <michael.collison@linaro.org>
8037 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
8040 2015-08-01 Michael Collison <michael.collison@linaro.org
8041 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
8043 * config/arm/arm.md (*arm_smin_cmp): New pattern.
8044 (*arm_umin_cmp): Likewise.
8046 2015-11-06 Jakub Jelinek <jakub@redhat.com>
8048 * gimplify.c (gimplify_omp_ordered): Fix up diagnostics wording.
8049 * omp-low.c (check_omp_nesting_restrictions): Update for the
8050 various new OpenMP 4.5 nesting restrictions, clarified
8051 nesting glossary, closely nested region relationship clarified
8052 to mean explicit or implicit parallel regions (target/teams),
8053 use %</%> or %qs where appropriate.
8055 2015-11-06 Aditya Kumar <aditya.k7@samsung.com>
8056 Sebastian Pop <s.pop@samsung.com>
8058 * graphite-scop-detection.c (loop_is_valid_scop): Call
8059 optimize_loop_nest_for_speed_p.
8061 2015-11-06 Aditya Kumar <aditya.k7@samsung.com>
8062 Sebastian Pop <s.pop@samsung.com>
8064 * graphite-optimize-isl.c (optimize_isl): Call
8065 isl_options_set_schedule_maximize_band_depth.
8067 2015-11-06 Aditya Kumar <aditya.k7@samsung.com>
8068 Sebastian Pop <s.pop@samsung.com>
8070 * graphite-scop-detection.c (scop_detection::merge_sese): Entry
8071 and exit edges should not be a part of irreducible loop.
8072 (scop_detection::can_represent_loop_1): Loops should not be
8074 (scop_detection::harmful_stmt_in_region): All the basic block
8075 should belong to reducible loops.
8077 2015-11-06 Christophe Lyon <christophe.lyon@linaro.org>
8079 * config/aarch64/aarch64-simd-builtins.def: Update builtins
8080 tables: add tbl3v16qi, qtbl[34]*, tbx4v16qi, qtbx[34]*.
8081 * config/aarch64/aarch64-simd.md (aarch64_tbl3v8qi): Rename to...
8082 (aarch64_tbl3<mode>) ... this, which supports v16qi too.
8083 (aarch64_tbx4v8qi): Rename to...
8084 aarch64_tbx4<mode>): ... this.
8085 (aarch64_qtbl3<mode>): New pattern.
8086 (aarch64_qtbx3<mode>): New pattern.
8087 (aarch64_qtbl4<mode>): New pattern.
8088 (aarch64_qtbx4<mode>): New pattern.
8089 * config/aarch64/arm_neon.h (vqtbl2_s8, vqtbl2_u8, vqtbl2_p8)
8090 (vqtbl2q_s8, vqtbl2q_u8, vqtbl2q_p8, vqtbl3_s8, vqtbl3_u8)
8091 (vqtbl3_p8, vqtbl3q_s8, vqtbl3q_u8, vqtbl3q_p8, vqtbl4_s8)
8092 (vqtbl4_u8, vqtbl4_p8, vqtbl4q_s8, vqtbl4q_u8, vqtbl4q_p8)
8093 (vqtbx2_s8, vqtbx2_u8, vqtbx2_p8, vqtbx2q_s8, vqtbx2q_u8)
8094 (vqtbx2q_p8, vqtbx3_s8, vqtbx3_u8, vqtbx3_p8, vqtbx3q_s8)
8095 (vqtbx3q_u8, vqtbx3q_p8, vqtbx4_s8, vqtbx4_u8, vqtbx4_p8)
8096 (vqtbx4q_s8, vqtbx4q_u8, vqtbx4q_p8): Rewrite using builtin
8099 2015-11-06 Mike Stump <mikestump@comcast.net>
8102 * dwarf2out.c (get_full_len): Return a value based upon the actual
8103 precision needed for the value.
8104 (add_const_value_attribute): Use a maximal wide-int for
8105 CONST_WIDE_INTs, not VOIDmode.
8106 (output_die): Don't ever output NULL with printf.
8108 * rtl.h (get_precision of rtx_mode_t): Ensure we never process
8109 BLKmode nor VOIDmode values.
8111 2015-11-06 David Malcolm <dmalcolm@redhat.com>
8113 * diagnostic-color.c (color_dict): Eliminate "caret"; add "range1"
8115 (parse_gcc_colors): Update comment to describe default GCC_COLORS.
8116 * diagnostic-core.h (warning_at_rich_loc): New declaration.
8117 (error_at_rich_loc): New declaration.
8118 (permerror_at_rich_loc): New declaration.
8119 (inform_at_rich_loc): New declaration.
8120 * diagnostic-show-locus.c (adjust_line): Delete.
8121 (struct point_state): New struct.
8122 (class colorizer): New class.
8123 (class layout_point): New class.
8124 (class layout_range): New class.
8125 (struct line_bounds): New.
8126 (class layout): New class.
8127 (colorizer::colorizer): New ctor.
8128 (colorizer::~colorizer): New dtor.
8129 (layout::layout): New ctor.
8130 (layout::print_source_line): New method.
8131 (layout::print_annotation_line): New method.
8132 (layout::get_state_at_point): New method.
8133 (layout::get_x_bound_for_row): New method.
8134 (diagnostic_show_locus): Reimplement in terms of class layout.
8135 (diagnostic_print_caret_line): Delete.
8136 * diagnostic.c (diagnostic_initialize): Replace
8137 MAX_LOCATIONS_PER_MESSAGE with rich_location::MAX_RANGES.
8138 (diagnostic_set_info_translated): Convert param from location_t
8139 to rich_location *. Eliminate calls to set_location on the
8140 message in favor of storing the rich_location ptr there.
8141 (diagnostic_set_info): Convert param from location_t to
8143 (diagnostic_build_prefix): Break out array into...
8144 (diagnostic_kind_color): New variable.
8145 (diagnostic_get_color_for_kind): New function.
8146 (diagnostic_report_diagnostic): Colorize the option_text
8147 using the color for the severity.
8148 (diagnostic_append_note): Update for change in signature of
8149 diagnostic_set_info.
8150 (diagnostic_append_note_at_rich_loc): New function.
8151 (emit_diagnostic): Update for change in signature of
8152 diagnostic_set_info.
8154 (inform_at_rich_loc): New function.
8155 (inform_n): Update for change in signature of diagnostic_set_info.
8156 (warning): Likewise.
8157 (warning_at): Likewise.
8158 (warning_at_rich_loc): New function.
8159 (warning_n): Update for change in signature of diagnostic_set_info.
8160 (pedwarn): Likewise.
8161 (permerror): Likewise.
8162 (permerror_at_rich_loc): New function.
8163 (error): Update for change in signature of diagnostic_set_info.
8164 (error_n): Likewise.
8165 (error_at): Likewise.
8166 (error_at_rich_loc): New function.
8167 (sorry): Update for change in signature of diagnostic_set_info.
8168 (fatal_error): Likewise.
8169 (internal_error): Likewise.
8170 (internal_error_no_backtrace): Likewise.
8171 (source_range::debug): New function.
8172 * diagnostic.h (struct diagnostic_info): Eliminate field
8173 "override_column". Add field "richloc".
8174 (struct diagnostic_context): Add field "colorize_source_p".
8175 (diagnostic_override_column): Delete.
8176 (diagnostic_set_info): Convert param from location_t to
8178 (diagnostic_set_info_translated): Likewise.
8179 (diagnostic_append_note_at_rich_loc): New function.
8180 (diagnostic_num_locations): New function.
8181 (diagnostic_expand_location): Get the location from the
8183 (diagnostic_print_caret_line): Delete.
8184 (diagnostic_get_color_for_kind): New declaration.
8185 * genmatch.c (linemap_client_expand_location_to_spelling_point): New.
8186 (error_cb): Update for change in signature of "error" callback.
8187 (fatal_at): Likewise.
8188 (warning_at): Likewise.
8189 * input.c (linemap_client_expand_location_to_spelling_point): New.
8190 * pretty-print.c (text_info::set_range): New method.
8191 (text_info::get_location): New method.
8192 * pretty-print.h (MAX_LOCATIONS_PER_MESSAGE): Eliminate this macro.
8193 (struct text_info): Eliminate "locations" array in favor of
8194 "m_richloc", a rich_location *.
8195 (textinfo::set_location): Add a "caret_p" param, and reimplement
8196 in terms of a call to set_range.
8197 (textinfo::get_location): Eliminate inline implementation in favor of
8198 an out-of-line reimplementation.
8199 (textinfo::set_range): New method.
8200 * rtl-error.c (diagnostic_for_asm): Update for change in signature
8201 of diagnostic_set_info.
8202 * tree-diagnostic.c (default_tree_printer): Update for new
8203 "caret_p" param for textinfo::set_location.
8204 * tree-pretty-print.c (percent_K_format): Likewise.
8206 2015-11-06 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
8209 2015-11-05 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
8210 * config/aarch64/aarch64.c
8211 (aarch64_can_use_per_function_literal_pools_p): New.
8212 (aarch64_use_blocks_for_constant_p): Adjust declaration
8213 and use aarch64_can_use_function_literal_pools_p.
8214 (aarch64_select_rtx_section): Update.
8216 2015-11-06 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
8218 * config/arm/arm-ldmstm.ml: Rewrite to generate unified asm templates.
8219 * config/arm/arm.c (arm_asm_trampoline_template): Make unified asm safe.
8220 (arm_output_multireg_pop): Likewise.
8221 (output_move_double): Likewise.
8222 (output_move_quad): Likewise.
8223 (output_return_instruction): Likewise.
8224 (arm_print_operand): Remove support for %( and %. print modifiers.
8225 (arm_output_shift): Make unified asm.
8226 (arm_declare_function_name): Likewise.
8227 * config/arm/arm.h (TARGET_UNIFIED_ASM): Delete.
8228 (ASM_APP_OFF): Adjust.
8229 (ASM_OUTPUT_REG_PUSH): Undo special casing for TARGET_ARM.
8230 (ASM_OUTPUT_REG_POP): Likewise.
8231 * config/arm/arm.md: Adjust uses of %., %(, %)
8232 * config/arm/sync.md: Likewise.
8233 * config/arm/thumb2.md: Likewise.
8234 * config/arm/ldmstm.md: Regenerate.
8235 * config/arm/arm.opt (masm-unified-syntax): Do not special case Thumb.
8236 * doc/invoke.texi (masm-unified-syntax): Update documentation.
8238 2015-11-06 David Malcolm <dmalcolm@redhat.com>
8240 * input.c (dump_line_table_statistics): Dump stats on adhoc table.
8242 2015-11-07 Jan Hubicka <hubicka@ucw.cz>
8244 * tree-core.h (size_type_kind): Remove OEP_CONSTANT_ADDRESS_OF and
8245 add OEP_MATCH_SIDE_EFFECTS.
8246 * fold-const.c (operand_equal_p): Update documentation; handle
8247 OEP_MATCH_SIDE_EFFECTS.
8248 * tree-ssa-tail-merge.c (gimple_operand_equal_value_p): Use
8249 OEP_MATCH_SIDE_EFFECTS.
8251 2015-11-06 Benedikt Huber <benedikt.huber@theobroma-systems.com>
8252 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
8254 * config/aarch64/aarch64-builtins.c: Builtins for rsqrt and rsqrtf.
8255 * config/aarch64/aarch64-protos.h: Declare.
8256 * config/aarch64/aarch64-simd.md: Matching expressions for frsqrte and
8258 * config/aarch64/aarch64-tuning-flags.def: Added recip_sqrt.
8259 * config/aarch64/aarch64.c: New functions. Emit rsqrt estimation
8260 code when applicable.
8261 * config/aarch64/aarch64.md: Added enum entries.
8262 * config/aarch64/aarch64.opt: Added option -mlow-precision-recip-sqrt.
8264 2015-11-07 Jan Hubicka <hubicka@ucw.cz>
8268 * ipa-polymorphic-call.c
8269 (ipa_polymorphic_call_context::restrict_to_inner_type): Fix ordering
8270 issue when offset is out of range.
8271 (contains_type_p): Fix out of range check, clear dynamic flag.
8273 2015-11-06 Arnout Vandecappelle <arnout@mind.be>
8275 * config.gcc (e6500): Fix cpu_is_64bit typo.
8277 2015-11-06 Alan Lawrence <alan.lawrence@arm.com>
8279 * tree-sra.c (completely_scalarize): Properly handle negative array
8280 indices using offset_int.
8282 2015-11-06 Richard Biener <rguenther@suse.de>
8284 * alloc-pool.h (object_allocator::allocate): Default-initialize
8287 2015-11-06 Richard Biener <rguenther@suse.de>
8289 * tree-ssa-sccvn.c (class sccvn_dom_walker): Add destructor.
8290 * lra.c (init_reg_info): Truncate copy_vec instead of
8291 re-allocating a new one and leaking the old.
8292 * ipa-inline-analysis.c (estimate_function_body_sizes): Free
8294 * sched-deps.c (sched_deps_finish): Free the dn/dl pools.
8295 * postreload-gcse.c (free_mem): Free modify_mem_list and
8296 canon_modify_mem_list.
8298 2015-11-06 Ilya Enkovich <enkovich.gnu@gmail.com>
8300 PR tree-optimization/68145
8301 * tree-vect-stmts.c (vectorizable_operation): Fix
8302 determination for booleans.
8304 2015-11-06 Tom de Vries <tom@codesourcery.com>
8306 * tree-cfg.c (gimple_split_block_before_cond_jump): Split before
8307 cond_jump, instead of split after last nondebug insn before cond_jump.
8308 * tree-parloops.c (transform_to_exit_first_loop_alt): Verify ssa before
8311 2015-11-06 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
8314 * config/arm/aarch-common.c (aarch_accumulator_forwarding): Strip
8315 subregs from accumulator and make sure it's a register.
8317 2015-11-06 Simon Dardis <simon.dardis@imgtec.com>
8319 * config/mips/loongson.md (vec_loongson_extract_lo_<mode>): New, extract
8321 (reduc_uplus_<mode>): Remove.
8322 (reduc_plus_scal_<mode>): Rename from reduc_splus_<mode>, Use vec
8323 loongson_extract_lo_<mode>.
8324 (reduc_smax_scal_<mode>, reduc_smin_scal_<mode>): Rename from
8325 reduc_smax_<mode>, reduc_smax_<mode>, use vec
8326 loongson_extract_lo_<mode>.
8327 (reduc_umax_scal_<mode>, reduc_umin_scal_<mode>): Rename.
8329 2015-11-06 Richard Biener <rguenther@suse.de>
8331 * tree-vectorizer.h (struct _bb_vec_info): Add region_begin/end
8333 (vect_stmt_in_region_p): Declare.
8334 * tree-vect-slp.c (new_bb_vec_info): Work on a region.
8335 (destroy_bb_vec_info): Likewise.
8336 (vect_bb_slp_scalar_cost): Use vect_stmt_in_region_p.
8337 (vect_get_and_check_slp_defs): Likewise.
8338 (vect_slp_analyze_bb_1): Refactor to make it work on sub-BBs.
8339 (vect_slp_bb): Likewise.
8340 * tree-vect-patterns.c (vect_same_loop_or_bb_p): Implement
8341 in terms of vect_stmt_in_region_p.
8342 (vect_pattern_recog): Iterate over the BB region.
8343 * tree-vect-stmts.c (vect_is_simple_use): Use vect_stmt_in_region_p.
8344 * tree-vectorizer.c (vect_stmt_in_region_p): New function.
8345 (pass_slp_vectorize::execute): Initialize all stmt UIDs to -1.
8346 * config/i386/i386.c: Include gimple-iterator.h.
8347 * config/aarch64/aarch64.c: Likewise.
8349 2015-11-06 Alexandre Oliva <aoliva@redhat.com>
8351 PR rtl-optimization/67753
8352 PR rtl-optimization/64164
8353 * function.c (assign_parm_setup_block): Avoid allocating a
8354 stack slot if we don't have an ABI-reserved one. Emit the
8355 copy to target_reg in the conversion seq if the copy from
8356 entry_parm is in it too. Don't use the conversion seq to copy
8357 a PARALLEL to a REG or a CONCAT.
8359 2015-11-06 Richard Biener <rguenther@suse.de>
8361 * tree-hash-traits.h (tree_operand_hash): Provide equal, not
8364 2015-11-05 Cesar Philippidis <cesar@codesourcery.com>
8365 Thomas Schwinge <thomas@codesourcery.com>
8366 James Norris <jnorris@codesourcery.com>
8369 * gimplify.c (gimplify_scan_omp_clauses): Add support for
8370 OMP_CLAUSE_TILE. Update handling of OMP_CLAUSE_INDEPENDENT.
8371 (gimplify_adjust_omp_clauses): Likewise.
8372 * omp-low.c (scan_sharing_clauses): Add support for OMP_CLAUSE_TILE.
8373 * tree-core.h (enum omp_clause_code): Add OMP_CLAUSE_TILE.
8374 * tree-pretty-print.c (dump_omp_clause): Handle OMP_CLAUSE_TILE.
8375 * tree.c (omp_clause_num_ops): Add an entry for OMP_CLAUSE_TILE.
8376 (omp_clause_code_name): Likewise.
8377 (walk_tree_1): Handle OMP_CLAUSE_TILE.
8378 * tree.h (OMP_TILE_LIST): New macro.
8380 2015-11-05 Martin Sebor <msebor@redhat.com>
8383 * doc/invoke.texi (-Wplacement-new): Document new option.
8385 2015-11-05 Alan Lawrence <alan.lawrence@arm.com>
8387 PR tree-optimization/65963
8388 * tree-scalar-evolution.c (interpret_rhs_expr): Try to handle
8389 LSHIFT_EXPRs as equivalent unsigned MULT_EXPRs.
8391 2015-11-05 James Greenhalgh <james.greenhalgh@arm.com>
8393 * ifcvt.c (bb_ok_for_noce_convert_multiple_sets): New.
8394 (noce_convert_multiple_sets): Likewise.
8395 (noce_process_if_block): Call them.
8397 2015-11-05 Nathan Sidwell <nathan@codesourcery.com>
8399 * gimple-fold.c: Include omp-low.h.
8400 (fold_internal_goacc_dim): New.
8401 (gimple_fold_call): Call it.
8403 2015-11-05 Jakub Jelinek <jakub@redhat.com>
8404 Ilya Verbin <ilya.verbin@intel.com>
8407 (BT_FN_VOID_INT_OMPFN_SIZE_PTR_PTR_PTR_UINT_PTR): Remove.
8408 (BT_FN_VOID_INT_OMPFN_SIZE_PTR_PTR_PTR_UINT_PTR_INT_INT): New.
8409 * cgraph.h (enum cgraph_simd_clone_arg_type): Add
8410 SIMD_CLONE_ARG_TYPE_LINEAR_REF_VARIABLE_STEP,
8411 SIMD_CLONE_ARG_TYPE_LINEAR_UVAL_VARIABLE_STEP and
8412 SIMD_CLONE_ARG_TYPE_LINEAR_VAL_VARIABLE_STEP.
8413 (struct cgraph_simd_clone_arg): Adjust comment.
8414 * omp-builtins.def (BUILT_IN_GOMP_TARGET): Rename GOMP_target_41
8415 to GOMP_target_ext. Add num_teams and thread_limit arguments.
8416 (BUILT_IN_GOMP_TARGET_DATA): Rename GOMP_target_data_41
8417 to GOMP_target_data_ext.
8418 (BUILT_IN_GOMP_TARGET_UPDATE): Rename GOMP_target_update_41
8419 to GOMP_target_update_ext.
8420 (BUILT_IN_GOMP_LOOP_NONMONOTONIC_DYNAMIC_START,
8421 BUILT_IN_GOMP_LOOP_NONMONOTONIC_GUIDED_START,
8422 BUILT_IN_GOMP_LOOP_NONMONOTONIC_DYNAMIC_NEXT,
8423 BUILT_IN_GOMP_LOOP_NONMONOTONIC_GUIDED_NEXT,
8424 BUILT_IN_GOMP_LOOP_ULL_NONMONOTONIC_DYNAMIC_START,
8425 BUILT_IN_GOMP_LOOP_ULL_NONMONOTONIC_GUIDED_START,
8426 BUILT_IN_GOMP_LOOP_ULL_NONMONOTONIC_DYNAMIC_NEXT,
8427 BUILT_IN_GOMP_LOOP_ULL_NONMONOTONIC_GUIDED_NEXT,
8428 BUILT_IN_GOMP_PARALLEL_LOOP_NONMONOTONIC_DYNAMIC,
8429 BUILT_IN_GOMP_PARALLEL_LOOP_NONMONOTONIC_GUIDED): New built-ins.
8430 * tree-core.h (enum omp_clause_schedule_kind): Add
8431 OMP_CLAUSE_SCHEDULE_MASK, OMP_CLAUSE_SCHEDULE_MONOTONIC,
8432 OMP_CLAUSE_SCHEDULE_NONMONOTONIC and change
8433 OMP_CLAUSE_SCHEDULE_LAST value.
8434 * tree.def (OMP_SIMD, CILK_SIMD, CILK_FOR, OMP_DISTRIBUTE,
8435 OMP_TASKLOOP, OACC_LOOP): Add OMP_FOR_ORIG_DECLS argument.
8436 * tree.h (OMP_FOR_ORIG_DECLS): Use OMP_LOOP_CHECK instead of
8437 OMP_FOR_CHECK. Remove comment.
8438 * tree-pretty-print.c (dump_omp_clause): Handle
8439 GOMP_MAP_FIRSTPRIVATE_REFERENCE and GOMP_MAP_ALWAYS_POINTER.
8440 Simplify. Print schedule clause modifiers.
8441 * tree-vect-stmts.c (vectorizable_simd_clone_call): Add
8442 SIMD_CLONE_ARG_TYPE_LINEAR_{REF,VAL,UVAL}_VARIABLE_STEP
8444 * gimplify.c (enum gimplify_omp_var_data): Add GOVD_MAP_ALWAYS_TO.
8445 (omp_default_clause): Tweak for
8446 private/firstprivate/is_device_ptr variables on target
8447 construct and use_device_ptr on target data.
8448 (omp_check_private): Likewise.
8449 (omp_notice_variable): For references check whether what it refers
8450 to has mappable type, rather than the reference itself.
8451 (omp_is_private): Diagnose linear iteration variables on non-simd
8453 (omp_no_lastprivate): Return true only for Fortran.
8454 (gimplify_scan_omp_clauses): Or in GOVD_MAP_ALWAYS_TO for
8455 GOMP_MAP_ALWAYS_TO or GOMP_MAP_ALWAYS_TOFROM kinds.
8456 Add support for GOMP_MAP_FIRSTPRIVATE_REFERENCE and
8457 GOMP_MAP_ALWAYS_POINTER, remove old handling of structure element
8458 based array sections. Use GOMP_MAP_ALWAYS_P. Fix up handling of
8459 lastprivate and linear when combined with distribute. Gimplify
8460 variable low-bound for array reduction. Look through
8461 POINTER_PLUS_EXPR when looking for ADDR_EXPR for array section
8463 (gimplify_adjust_omp_clauses_1): For implicit references to
8464 variables with reference type and when not ref to scalar or
8465 ref to pointer, map what they refer to using tofrom and
8466 use GOMP_MAP_FIRSTPRIVATE_REFERENCE for the reference.
8467 (gimplify_adjust_omp_clauses): Remove GOMP_MAP_ALWAYS_POINTER
8468 from target exit data. Handle GOMP_MAP_FIRSTPRIVATE_REFERENCE.
8469 Drop OMP_CLAUSE_MAP_PRIVATE support. Use GOMP_MAP_ALWAYS_P.
8470 Diagnose the same var on both firstprivate and lastprivate on
8471 distribute construct.
8472 (gimplify_omp_for): Fix up handling of predetermined
8473 lastprivate or linear iter vars when combined with distribute.
8474 (find_omp_teams, computable_teams_clause, optimize_target_teams): New
8476 (gimplify_omp_workshare): Call optimize_target_teams.
8477 * omp-low.c (struct omp_region): Add sched_modifiers field.
8478 (struct omp_for_data): Likewise.
8479 (omp_any_child_fn_dumped): New variable.
8480 (extract_omp_for_data): Fill in sched_modifiers, and mask out
8481 OMP_CLAUSE_SCHEDULE_KIND bits outside of OMP_CLAUSE_SCHEDULE_MASK
8483 (determine_parallel_type): Use only OMP_CLAUSE_SCHEDULE_MASK
8484 bits of OMP_CLAUSE_SCHED_KIND.
8485 (scan_sharing_clauses): Handle GOMP_MAP_FIRSTPRIVATE_REFERENCE,
8486 drop OMP_CLAUSE_MAP_PRIVATE support. Look through POINTER_PLUS_EXPR
8487 for array section reductions.
8488 (add_taskreg_looptemp_clauses): Add one extra _looptemp_ clause even
8489 for distribute parallel for, if there are lastprivate clauses on the
8491 (lower_rec_input_clauses): Handle non-zero low-bound on array
8493 (lower_reduction_clauses): Likewise.
8494 (lower_send_clauses): Look through POINTER_PLUS_EXPR
8495 for array section reductions.
8496 (expand_parallel_call): Use nonmonotonic entrypoints for
8497 nonmonotonic: dynamic/guided.
8498 (expand_omp_taskreg): Call assign_assembler_name_if_neeeded on
8499 child_fn if current_function_decl has assembler name set, but child_fn
8500 does not. Dump the header and IL of the child function when not in SSA
8502 (expand_omp_target): Likewise. Pass num_teams and thread_limit
8503 arguments to BUILT_IN_GOMP_TARGET.
8504 (expand_omp_for_static_nochunk, expand_omp_for_static_chunk):
8505 Initialize the extra _looptemp_ clause to fd->loop.n2.
8506 (expand_omp_for): Use nonmonotonic entrypoints for
8507 nonmonotonic: dynamic/guided. Initialize region->sched_modifiers.
8508 (expand_omp): Clear omp_any_child_fn_dumped. Dump function header
8509 again if we have dumped any child functions.
8510 (lower_omp_for_lastprivate): Determine the right count variable
8511 for distribute simd, or distribute parallel for{, simd}.
8512 (lower_omp_target): Handle GOMP_MAP_FIRSTPRIVATE_REFERENCE
8513 and GOMP_MAP_ALWAYS_POINTER. Drop OMP_CLAUSE_MAP_PRIVATE
8515 (simd_clone_clauses_extract): Handle variable step
8516 for references and arguments passed by reference.
8517 (simd_clone_mangle): Mangle ref/uval/val variable steps.
8518 (simd_clone_adjust_argument_types): Handle
8519 SIMD_CLONE_ARG_TYPE_LINEAR_UVAL_VARIABLE_STEP like
8520 SIMD_CLONE_ARG_TYPE_LINEAR_UVAL_CONSTANT_STEP and
8521 SIMD_CLONE_ARG_TYPE_LINEAR_VAL_VARIABLE_STEP like
8522 SIMD_CLONE_ARG_TYPE_LINEAR_VAL_CONSTANT_STEP.
8523 (simd_clone_linear_addend): New function.
8524 (simd_clone_adjust): Handle variable step like similarly
8525 to constant step, use simd_clone_linear_addend to determine
8526 the actual step at runtime.
8528 2015-11-05 Nathan Sidwell <nathan@codesourcery.com>
8530 * target.def (goacc.dim_limit): New hook.
8531 * targhooks.h (default_goacc_dim_limit): Declare.
8532 * doc/tm.texi.in (TARGET_GOACC_DIM_LIMIT): Add.
8533 * doc/tm.texi: Rebuilt.
8534 * omp-low.h (get_oacc_fn_dim_size, get_oacc_ifn_dim_arg): Declare.
8535 * omp-low.c (get_oacc_fn_dim_size, get_oacc_ifn_dim_arg): New.
8536 (default_goacc_dim_limit): New.
8537 * config/nvptx/nvptx.c (PTX_VECTOR_LENGTH, PTX_WORKER_LENGTH): New.
8538 (nvptx_goacc_dim_limit) New.
8539 (TARGET_GOACC_DIM_LIMIT): Override.
8540 * tree-vrp.c: Include omp-low.h, target.h.
8541 (extract_range_basic): Add handling for IFN_GOACC_DIM_SIZE &
8544 2015-11-05 Ilya Enkovich <enkovich.gnu@gmail.com>
8546 * tree-vect-generic.c (do_compare): Use -1 for true
8547 result instead of 1.
8549 2015-11-05 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
8551 * config/aarch64/aarch64.c
8552 (aarch64_can_use_per_function_literal_pools_p): New.
8553 (aarch64_use_blocks_for_constant_p): Adjust declaration
8554 and use aarch64_can_use_function_literal_pools_p.
8555 (aarch64_select_rtx_section): Update.
8557 2015-11-05 Ilya Enkovich <enkovich.gnu@gmail.com>
8559 * targhooks.c (default_get_mask_mode): Use BLKmode in
8560 case target doesn't support required vector mode.
8561 * stor-layout.c (layout_type); Check for BLKmode.
8563 2015-11-04 Aditya Kumar <aditya.k7@samsung.com>
8564 Sebastian Pop <s.pop@samsung.com>
8566 * graphite-isl-ast-to-gimple.c (gcc_expression_from_isl_ast_expr_id):
8567 Remove use of parameter_rename_map.
8569 (copy_internal_parameters): Remove.
8570 (graphite_regenerate_ast_isl): Remove call to copy_internal_parameters.
8571 * sese.c (new_sese_info): Do not initialize parameter_rename_map.
8572 (free_sese_info): Do not free parameter_rename_map.
8573 (set_rename): Do not use parameter_rename_map.
8574 (rename_uses): Update call to set_rename.
8575 (graphite_copy_stmts_from_block): Do not use parameter_rename_map.
8576 * sese.h (parameter_rename_map_t): Remove.
8577 (struct sese_info_t): Remove field parameter_rename_map.
8579 2015-11-04 Aditya Kumar <aditya.k7@samsung.com>
8580 Sebastian Pop <s.pop@samsung.com>
8582 * graphite-isl-ast-to-gimple.c: Include tree-cfg.h.
8583 (translate_isl_ast_node_user): Add more dumps: call print_loops_bb.
8584 * graphite-scop-detection.c (dot_all_scops_1): Moved out of
8585 anonymous namespace.
8586 * graphite-sese-to-poly.c (ssa_name_version_typesize): Remove.
8587 (isl_id_for_pbb): Use a buffer of size 10.
8588 (isl_id_for_ssa_name): Same.
8589 * sese.c (set_rename): Add more dumps.
8591 2015-11-04 Nathan Sidwell <nathan@codesourcery.com>
8593 * omp-low.c (struct omp_context): Remove reduction_map field.
8594 (lookup_oacc_reduction, maybe_lookup_oacc_reduction): Delete.
8595 (new_omp_context, delete_omp_context, scan_omp_target): Remove
8596 reduction_map handling.
8597 (lower_omp_target): Remove obsolete openacc reduction handling.
8599 2015-11-04 Nathan Sidwell <nathan@codesourcery.com>
8601 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims): Add checking.
8603 2015-11-04 Nathan Sidwell <nathan@codesourcery.com>
8604 Cesar Philippidis <cesar@codesourcery.com>
8606 * config/nvptx/nvptx.c: Include gimple headers.
8607 (worker_red_size, worker_red_align, worker_red_name,
8608 worker_red_sym): New.
8609 (nvptx_option_override): Initialize worker reduction buffer.
8610 (nvptx_file_end): Write out worker reduction buffer var.
8611 (nvptx_expand_shuffle, nvptx_expand_worker_addr,
8612 nvptx_expand_cmp_swap): New builtin expanders.
8613 (enum nvptx_builtins): New.
8614 (nvptx_builtin_decls): New.
8615 (nvptx_builtin_decl, nvptx_init_builtins, nvptx_expand_builtin): New
8616 (PTX_VECTOR_LENGTH, PTX_WORKER_LENGTH): New.
8617 (nvptx_get_worker_red_addr, nvptx_generate_vector_shuffle,
8618 nvptx_lockless_update): New helpers.
8619 (nvptx_goacc_reduction_setup, nvptx_goacc_reduction_init,
8620 nvptx_goacc_reduction_fini, nvptx_goacc_reduction_teaddown): New.
8621 (nvptx_goacc_reduction): New.
8622 (TARGET_INIT_BUILTINS, TARGET_EXPAND_BUILTIN,
8623 TARGET_BUILTIN_DECL): Override.
8624 (TARGET_GOACC_REDUCTION): Override.
8626 2015-11-04 Nathan Sidwell <nathan@codesourcery.com>
8627 Cesar Philippidis <cesar@codesourcery.com>
8629 * internal-fn.def (GOACC_REDUCTION): New.
8630 * internal-fn.h (enum ifn_goacc_reduction_kind): New.
8631 * internal-fn.c (expand_GOACC_REDUCTION): New.
8632 * target.def (goacc.reduction): New OpenACC hook.
8633 * targhooks.h (default_goacc_reduction): Declare.
8634 * doc/tm.texi.in: Add TARGET_GOACC_REDUCTION.
8635 * doc/tm.texi: Rebuilt.
8636 * omp-low.c (oacc_get_reduction_array_id, oacc_max_threads,
8637 scan_sharing_clauses): Remove oacc reduction handling here.
8638 (lower_rec_input_clauses): Don't handle OpenACC reductions here.
8639 (oacc_lower_reduction_var_helper): Delete.
8640 (lower_oacc_reductions): New.
8641 (lower_reduction_clauses): Don't handle OpenACC reductions here.
8642 (lower_oacc_head_tail): Call lower_oacc_reductions.
8643 (oacc_gimple_assign, oacc_init_reduction_array,
8644 oacc_initialize_reduction_data, oacc_finalize_reduction_data,
8645 oacc_process_reduction_data): Delete.
8646 (lower_omp_target): Remove old OpenACC reduction handling. Insert
8647 dummy OpenACC gang reduction for reductions at outer level.
8648 (oacc_loop_xform_head_tail): Transform IFN_GOACC_REDUCTION.
8649 (default_goacc_reduction): New.
8650 (execute_oacc_device_lower): Handle IFN_GOACC_REDUCTION.
8652 2015-11-04 Martin Liska <mliska@suse.cz>
8654 * cgraphunit.c (cgraph_node::expand_thunk): Call
8655 allocate_struct_function before init_function_start.
8656 (cgraph_node::expand): Use push_cfun and pop_cfun.
8657 * config/i386/i386.c (ix86_code_end): Call
8658 allocate_struct_function before init_function_start.
8659 * config/rs6000/rs6000.c (rs6000_code_end): Likewise.
8660 * function.c (init_function_start): Move preamble to all
8662 * passes.c (do_per_function_toporder): Use push_cfun and pop_cfun.
8663 (execute_one_pass): Handle newly added TODO_discard_function.
8664 (execute_pass_list_1): Terminate if cfun equals to NULL.
8665 (execute_pass_list): Do not push and pop cfun, expect that
8667 * tree-pass.h (TODO_discard_function): Define.
8669 2015-11-04 Mikhail Maltsev <maltsevm@gmail.com>
8671 * cfganal.c (inverted_post_order_compute): Remove conditional
8672 compilation, use flag_checking.
8673 * config.in: Regenerate.
8674 * configure: Regenerate.
8675 * configure.ac: Remove ENABLE_CHECKING.
8676 * genconditions.c: Do not #undef ENABLE_CHECKING.
8677 * sese.h (bb_in_region): Comment out broken check.
8678 * tree-ssa-loop-manip.c (rewrite_into_loop_closed_ssa_1): Remove
8679 conditional compilation, use flag_checking.
8681 2015-11-04 Tom de Vries <tom@codesourcery.com>
8683 PR tree-optimization/67742
8684 * tree-ssa-structalias.c (struct fieldoff): Add restrict_pointed_type
8686 (push_fields_onto_fieldstack): Handle restrict_pointed_type field.
8687 (create_variable_info_for_1): Add and handle handle_param parameter.
8688 Add restrict handling.
8689 (create_variable_info_for): Call create_variable_info_for_1 with extra
8691 (make_param_constraints): Drop restrict_name parameter. Ignore
8692 vi->only_restrict_pointers.
8693 (intra_create_variable_infos): Call create_variable_info_for_1 with
8694 extra arg. Remove restrict handling. Call make_param_constraints with
8697 2015-11-04 Tom de Vries <tom@codesourcery.com>
8699 * tree-ssa-structalias.c (create_variable_info_for_1): Use decl_type
8702 2015-11-03 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
8704 * config/arm/coff.h: Remove.
8706 2015-11-03 Eric Botcazou <ebotcazou@adacore.com>
8708 * gimple-expr.c (useless_type_conversion_p): Reinstate type canonical
8709 check for aggregate types and beef up comment for mode check.
8711 2015-11-03 Richard Biener <rguenther@suse.de>
8713 * tree-vect-data-refs.c (vect_analyze_data_refs): Do not collect
8714 data references here.
8715 * tree-vect-loop.c: Include cgraph.h.
8716 (vect_analyze_loop_2): Collect data references here.
8717 * tree-vect-slp.c (find_bb_location): Inline ...
8718 (vect_slp_bb): ... here. Renamed from vect_slp_analyze_bb.
8719 Factor in vect_slp_transform_bb.
8720 (vect_slp_transform_bb): Removed.
8721 (vect_slp_analyze_bb_1): Collect data references here.
8722 * tree-vectorizer.c (pass_slp_vectorize::execute): Call
8724 * tree-vectorizer.h (vect_slp_bb): Declare.
8725 (vect_slp_analyze_bb): Remove.
8726 (vect_slp_transform_bb): Remove.
8727 (find_bb_location): Remove.
8728 (vect_analyze_data_refs): Remove stmt count reference parameter.
8730 2015-11-03 Evgeny Stupachenko <evstupac@gmail.com>
8732 * multiple_target.c (create_dispatcher_calls): Add target check
8734 (create_target_clone): Change assembler name for versioned declarations.
8736 2015-11-03 Thomas Schwinge <thomas@codesourcery.com>
8737 Chung-Lin Tang <cltang@codesourcery.com>
8739 * builtins.def (DEF_GOMP_BUILTIN): Enable for flag_openacc.
8740 * omp-low.c (check_omp_nesting_restrictions): Allow
8741 GIMPLE_OMP_ATOMIC_LOAD, GIMPLE_OMP_ATOMIC_STORE inside OpenACC
8744 2015-11-03 Bilyan Borisov <bilyan.borisov@arm.com>
8746 * config/aarch64/aarch64-simd-builtins.def (fmulx): New.
8747 * config/aarch64/aarch64-simd.md (aarch64_fmulx<mode>): New.
8748 * config/aarch64/arm_neon.h (vmulx_f32): Rewrite to call fmulx
8750 (vmulxq_f32): Likewise.
8752 (vmulxq_f64): Rewrite to call fmulx builtin.
8753 (vmulxs_f32): Likewise.
8754 (vmulxd_f64): Likewise.
8755 (vmulx_lane_f32): Remove.
8756 * config/aarch64/iterators.md (UNSPEC): Add fmulx.
8758 2015-11-03 Alan Lawrence <alan.lawrence@arm.com>
8760 * config/aarch64/aarch64.md (*movhf_aarch64): Use
8761 aarch64_reg_or_fp_zero for second operand.
8763 2015-11-03 Alexandre Oliva <aoliva@redhat.com>
8765 * gimple-expr.c: Include hash-set.h and rtl.h.
8766 (mark_addressable_queue): New var.
8767 (mark_addressable): Factor actual marking into...
8768 (mark_addressable_1): ... this. Queue it up during expand.
8769 (mark_addressable_2): New.
8770 (flush_mark_addressable_queue): New.
8771 * gimple-expr.h (flush_mark_addressable_queue): Declare.
8772 * cfgexpand.c: Include gimple-expr.h.
8773 (pass_expand::execute): Flush mark_addressable queue.
8775 2015-11-02 Alexandre Oliva <aoliva@redhat.com>
8777 * tree-ssa-ifcombine.c (tree_ssa_ifcombine_bb_1): Factor out
8778 bb_no_side_effects_p tests...
8779 (tree_ssa_ifcombine_bb): ... here.
8781 PR tree-optimization/68083
8782 * tree-ssa-ifcombine.c: Include tree-ssa.h.
8783 (bb_no_side_effects_p): Test for undefined uses too.
8784 * tree-ssa.c (gimple_uses_undefined_value_p): New.
8785 * tree-ssa.h (gimple_uses_undefined_value_p): Declare.
8787 2015-11-02 Jeff Law <law@redhat.com>
8789 * tree-ssa-threadupdate.c (valid_jump_thread_path): Also detect
8790 cases where the loop latch edge is in the middle of an FSM path.
8792 2015-11-03 Tom de Vries <tom@codesourcery.com>
8794 * tree-ssa-structalias.c (make_restrict_var_constraints): Rename to ...
8795 (make_param_constraints): ... this. Add and handle restrict_name
8796 parameter. Handle is_full_var case.
8797 (intra_create_variable_infos): Use make_param_constraints.
8799 2015-11-03 Tom de Vries <tom@codesourcery.com>
8801 * tree-ssa-structalias.c (make_restrict_var_constraints): Replace
8802 make_copy_constraint call with make_constraint_from call.
8804 2015-11-02 Andreas Tobler <andreast@gcc.gnu.org>
8806 * config/rs6000/freebsd64.h (ASM_SPEC32): Adust spec to handle
8809 2015-11-02 Richard Sandiford <richard.sandiford@arm.com>
8811 * builtins.h (fold_fma): Move to fold-const-call.h.
8812 * builtins.c: Include fold-const-call.h.
8813 (mathfn_built_in_2): New function, split out from...
8814 (mathfn_built_in_1): ...here.
8815 (do_real_to_int_conversion, fold_const_builtin_pow)
8816 (fold_const_builtin_logb, fold_const_builtin_significand)
8817 (fold_const_builtin_load_exponent, do_mpfr_arg1, do_mpfr_arg2)
8818 (do_mpfr_arg3, do_mpfr_sincos, do_mpfr_bessel_n, do_mpc_arg1): Delete.
8819 (fold_builtin_sincos): Use fold_const_call to handle constants.
8820 (fold_builtin_1, fold_builtin_2, fold_builtin_3): Add explicit
8821 checks for ERROR_MARK. Use fold_const_call to handle constant
8822 folds for math functions.
8823 (fold_fma): Move to fold-const-call.c.
8824 * fold-const.c: Include fold-const-call.h.
8825 * Makefile.in (OBJS): Add fold-const-call.o.
8826 (PLUGIN_HEADERS): Add fold-const-call.h.
8827 * realmpfr.h (real_from_mpfr): Allow the format to be specified
8829 * realmpfr.c (real_from_mpfr): Likewise.
8830 * fold-const-call.h, fold-const-call.c: New files.
8832 2015-11-02 Julian Brown <julian@codesourcery.com>
8834 * config/arm/neon-testgen.ml (emit_epilogue): Remove extraneous
8835 brackets and semicolon.
8837 2015-11-02 Alan Lawrence <alan.lawrence@arm.com>
8840 2015-10-27 Alan Lawrence <alan.lawrence@arm.com>
8842 PR tree-optimization/65963
8843 * tree-scalar-evolution.c (interpret_rhs_expr): Handle some
8844 LSHIFT_EXPRs as equivalent MULT_EXPRs.
8846 2015-11-02 Thomas Schwinge <thomas@codesourcery.com>
8849 * fold-const.c: Include "md5.h".
8851 2015-11-01 Jeff Law <law@redhat.com>
8853 * vmsdbgout.c: Revert unused header file reduction patch.
8855 * config/mcore/mcore.c: Include regs.h.
8857 2015-10-31 Segher Boessenkool <segher@kernel.crashing.org>
8859 * config/rs6000/rs6000.c (rs6000_reg_live_or_pic_offset_p): Rewrite.
8861 2015-10-31 Segher Boessenkool <segher@kernel.crashing.org>
8863 * config/rs6000/rs6000.c (rs6000_reg_live_or_pic_offset_p): Use the
8864 same condition for testing whether RS6000_PIC_OFFSET_TABLE_REGNUM is
8865 live as for using it elsewhere, for TARGET_MINIMAL_TOC.
8867 2015-10-31 Markus Trippelsdorf <markus@trippelsdorf.de>
8869 * ggc-common.c: Restore needed header for checking=release.
8871 2015-10-31 Tom de Vries <tom@codesourcery.com>
8873 * fold-const.c (fold_unary_loc): Tune POINTER_PLUS_EXPR folding.
8875 2015-10-31 Tom de Vries <tom@codesourcery.com>
8877 * tree-ssa-structalias.c (intra_create_variable_infos): Don't expect
8878 existing varinfo for arguments.
8880 2015-10-31 Tom de Vries <tom@codesourcery.com>
8882 * tree-ssa-structalias.c (ipa_pta_execute): Add extra arg to call to
8883 create_function_info_for. Dump constraints generated during
8884 create_function_info_for. Move intra_create_variable_infos call and
8885 function-return-values-escape bit to ...
8886 (create_function_info_for): ... here, and merge
8887 intra_create_variable_infos call with argument loop. Add and handle
8888 nonlocal_p parameter.
8890 2015-10-31 Tom de Vries <tom@codesourcery.com>
8892 * tree-ssa-structalias.c (create_function_info_for): Make sure prev_vi
8893 updating is alap, and seperated from preceding code. Make sure
8894 insert_vi_for_tree is seperated from surrounding code.
8896 2015-10-31 Tom de Vries <tom@codesourcery.com>
8898 * tree-ssa-structalias.c (ipa_pta_execute): Use make_copy_constraint.
8900 2015-10-30 Jeff Law <law@redhat.com>
8901 Nathan Sidwell <nathan@acm.org>
8903 * config/nvptx/nvptx.h (HARD_REGNO_NREGS): Avoid warning on unused
8905 (MOVE_MAX): Set to 8.
8907 2015-10-30 Cesar Philippidis <cesar@codesourcery.com>
8909 * cgraph.c: Include context.h for offloading.
8910 * varpool.c: Include context.h and omp-low.h.
8912 2015-10-30 Anatoly Sokolov <aesok@post.ru>
8914 * rtl.h (contains_symbol_ref_p): Declare.
8915 (SYMBOL_REF_P): Define.
8916 * rtlanal.c (contains_symbol_ref_p: New function.
8917 * lra-constraints.c (contains_symbol_ref_p): Remove.
8918 * var-tracking.c (contains_symbol_ref): Remove.
8919 (track_expr_p): Use contains_symbol_ref_p instead of
8920 contains_symbol_ref.
8922 2015-10-30 Alan Lawrence <alan.lawrence@arm.com>
8924 * gimple-fold.c (fold_array_ctor_reference): Move searching code to:
8925 * fold-const.c (get_array_ctor_element_at_index): New.
8926 (fold): Remove binary-search through CONSTRUCTOR, call previous.
8928 * fold-const.h (get_array_ctor_element_at_index): New.
8930 2015-10-30 Evgeny Stupachenko <evstupac@gmail.com>
8932 * Makefile.in (OBJS): Add multiple_target.o.
8933 * attrib.c (make_attribute): Moved from config/i386/i386.c
8934 * config/i386/i386.c (make_attribute): Deleted.
8935 * multiple_target.c (create_dispatcher_calls): New.
8936 (get_attr_len): Ditto.
8937 (get_attr_str): Ditto.
8938 (separate_attrs): Ditto.
8939 (is_valid_asm_symbol): Ditto.
8940 (create_new_asm_name): Ditto.
8941 (create_target_clone): Ditto.
8942 (expand_target_clones): Ditto.
8943 (ipa_target_clone): Ditto.
8944 (ipa_dispatcher_calls): Ditto.
8945 * passes.def (pass_target_clone): Two new ipa passes.
8946 * tree-pass.h (make_pass_target_clone): Ditto.
8947 * doc/extend.texi (target_clones): New attribute description.
8949 2015-10-30 Vladimir Makarov <vmakarov@redhat.com>
8951 PR rtl-optimization/68106
8952 * lra-remat.c (input_regno_present_p): Process hard regs
8953 explicitly present in machine description insns.
8954 (call_used_input_regno_present_p): Ditto.
8955 (calculate_gen_cands): Ditto.
8958 2015-10-30 Jim Wilson <jim.wilson@linaro.org>
8960 * config/arm/neon-testgen.ml: Fix comment typo.
8962 2015-10-30 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
8964 * rtlanal.c (reg_set_p): Expand function comment.
8966 2015-10-30 Andrew MacLeod <amacleod@redhat.com>
8968 * alias.c: Remove unused headers.
8970 * attribs.c: Likewise.
8971 * auto-inc-dec.c: Likewise.
8972 * auto-profile.c: Likewise.
8973 * bb-reorder.c: Likewise.
8974 * bitmap.c: Likewise.
8975 * bt-load.c: Likewise.
8976 * builtins.c: Likewise.
8977 * caller-save.c: Likewise.
8978 * calls.c: Likewise.
8981 * cfganal.c: Likewise.
8982 * cfgbuild.c: Likewise.
8983 * cfgcleanup.c: Likewise.
8984 * cfgexpand.c: Likewise.
8985 * cfghooks.c: Likewise.
8986 * cfgloop.c: Likewise.
8987 * cfgloopanal.c: Likewise.
8988 * cfgloopmanip.c: Likewise.
8989 * cfgrtl.c: Likewise.
8990 * cgraph.c: Likewise.
8991 * cgraphbuild.c: Likewise.
8992 * cgraphclones.c: Likewise.
8993 * cgraphunit.c: Likewise.
8994 * cilk-common.c: Likewise.
8995 * combine-stack-adj.c: Likewise.
8996 * combine.c: Likewise.
8997 * compare-elim.c: Likewise.
8998 * convert.c: Likewise.
8999 * coverage.c: Likewise.
9000 * cppbuiltin.c: Likewise.
9001 * cprop.c: Likewise.
9003 * cselib.c: Likewise.
9004 * data-streamer-in.c: Likewise.
9005 * data-streamer-out.c: Likewise.
9006 * data-streamer.c: Likewise.
9007 * dbxout.c: Likewise.
9010 * debug.c: Likewise.
9011 * df-core.c: Likewise.
9012 * df-problems.c: Likewise.
9013 * df-scan.c: Likewise.
9015 * dojump.c: Likewise.
9016 * dominance.c: Likewise.
9017 * domwalk.c: Likewise.
9018 * double-int.c: Likewise.
9020 * dumpfile.c: Likewise.
9021 * dwarf2asm.c: Likewise.
9022 * dwarf2cfi.c: Likewise.
9023 * dwarf2out.c: Likewise.
9024 * emit-rtl.c: Likewise.
9025 * except.c: Likewise.
9026 * explow.c: Likewise.
9027 * expmed.c: Likewise.
9029 * final.c: Likewise.
9030 * fixed-value.c: Likewise.
9031 * fold-const.c: Likewise.
9032 * function.c: Likewise.
9033 * fwprop.c: Likewise.
9035 * generic-match-head.c: Likewise.
9036 * ggc-common.c: Likewise.
9037 * gimple-builder.c: Likewise.
9038 * gimple-expr.c: Likewise.
9039 * gimple-fold.c: Likewise.
9040 * gimple-iterator.c: Likewise.
9041 * gimple-low.c: Likewise.
9042 * gimple-match-head.c: Likewise.
9043 * gimple-pretty-print.c: Likewise.
9044 * gimple-ssa-isolate-paths.c: Likewise.
9045 * gimple-ssa-strength-reduction.c: Likewise.
9046 * gimple-streamer-in.c: Likewise.
9047 * gimple-streamer-out.c: Likewise.
9048 * gimple-walk.c: Likewise.
9049 * gimple.c: Likewise.
9050 * gimplify-me.c: Likewise.
9051 * gimplify.c: Likewise.
9052 * godump.c: Likewise.
9053 * graph.c: Likewise.
9054 * graphds.c: Likewise.
9055 * haifa-sched.c: Likewise.
9056 * hw-doloop.c: Likewise.
9057 * ifcvt.c: Likewise.
9058 * init-regs.c: Likewise.
9059 * internal-fn.c: Likewise.
9060 * ipa-chkp.c: Likewise.
9061 * ipa-comdats.c: Likewise.
9062 * ipa-cp.c: Likewise.
9063 * ipa-devirt.c: Likewise.
9064 * ipa-icf-gimple.c: Likewise.
9065 * ipa-icf.c: Likewise.
9066 * ipa-inline-analysis.c: Likewise.
9067 * ipa-inline-transform.c: Likewise.
9068 * ipa-inline.c: Likewise.
9069 * ipa-polymorphic-call.c: Likewise.
9070 * ipa-profile.c: Likewise.
9071 * ipa-prop.c: Likewise.
9072 * ipa-pure-const.c: Likewise.
9073 * ipa-ref.c: Likewise.
9074 * ipa-reference.c: Likewise.
9075 * ipa-split.c: Likewise.
9076 * ipa-utils.c: Likewise.
9077 * ipa-visibility.c: Likewise.
9079 * ira-build.c: Likewise.
9080 * ira-color.c: Likewise.
9081 * ira-conflicts.c: Likewise.
9082 * ira-costs.c: Likewise.
9083 * ira-emit.c: Likewise.
9084 * ira-lives.c: Likewise.
9087 * langhooks.c: Likewise.
9089 * lists.c: Likewise.
9090 * loop-doloop.c: Likewise.
9091 * loop-init.c: Likewise.
9092 * loop-invariant.c: Likewise.
9093 * loop-iv.c: Likewise.
9094 * loop-unroll.c: Likewise.
9095 * lower-subreg.c: Likewise.
9096 * lra-assigns.c: Likewise.
9097 * lra-coalesce.c: Likewise.
9098 * lra-constraints.c: Likewise.
9099 * lra-eliminations.c: Likewise.
9100 * lra-lives.c: Likewise.
9101 * lra-remat.c: Likewise.
9102 * lra-spills.c: Likewise.
9104 * lto-cgraph.c: Likewise.
9105 * lto-compress.c: Likewise.
9106 * lto-opts.c: Likewise.
9107 * lto-section-in.c: Likewise.
9108 * lto-section-out.c: Likewise.
9109 * lto-streamer-in.c: Likewise.
9110 * lto-streamer-out.c: Likewise.
9111 * lto-streamer.c: Likewise.
9113 * mode-switching.c: Likewise.
9114 * modulo-sched.c: Likewise.
9115 * optabs.c: Likewise.
9116 * opts-global.c: Likewise.
9117 * passes.c: Likewise.
9118 * plugin.c: Likewise.
9119 * postreload-gcse.c: Likewise.
9120 * postreload.c: Likewise.
9121 * predict.c: Likewise.
9122 * print-tree.c: Likewise.
9123 * profile.c: Likewise.
9125 * realmpfr.c: Likewise.
9126 * recog.c: Likewise.
9128 * reg-stack.c: Likewise.
9129 * regcprop.c: Likewise.
9130 * reginfo.c: Likewise.
9131 * regrename.c: Likewise.
9132 * regstat.c: Likewise.
9133 * reload.c: Likewise.
9134 * reload1.c: Likewise.
9135 * reorg.c: Likewise.
9136 * resource.c: Likewise.
9137 * rtl-chkp.c: Likewise.
9138 * rtl-error.c: Likewise.
9139 * rtlanal.c: Likewise.
9140 * rtlhooks.c: Likewise.
9141 * sanopt.c: Likewise.
9142 * sched-deps.c: Likewise.
9143 * sched-ebb.c: Likewise.
9144 * sched-rgn.c: Likewise.
9145 * sdbout.c: Likewise.
9146 * sel-sched-dump.c: Likewise.
9147 * sel-sched-ir.c: Likewise.
9148 * sel-sched.c: Likewise.
9150 * shrink-wrap.c: Likewise.
9151 * simplify-rtx.c: Likewise.
9152 * stack-ptr-mod.c: Likewise.
9153 * statistics.c: Likewise.
9155 * stor-layout.c: Likewise.
9156 * store-motion.c: Likewise.
9157 * stringpool.c: Likewise.
9158 * symtab.c: Likewise.
9159 * target-globals.c: Likewise.
9160 * targhooks.c: Likewise.
9161 * toplev.c: Likewise.
9162 * tracer.c: Likewise.
9163 * trans-mem.c: Likewise.
9164 * tree-affine.c: Likewise.
9165 * tree-call-cdce.c: Likewise.
9166 * tree-cfg.c: Likewise.
9167 * tree-cfgcleanup.c: Likewise.
9168 * tree-chkp-opt.c: Likewise.
9169 * tree-chkp.c: Likewise.
9170 * tree-chrec.c: Likewise.
9171 * tree-complex.c: Likewise.
9172 * tree-data-ref.c: Likewise.
9173 * tree-dfa.c: Likewise.
9174 * tree-diagnostic.c: Likewise.
9175 * tree-dump.c: Likewise.
9176 * tree-eh.c: Likewise.
9177 * tree-emutls.c: Likewise.
9178 * tree-if-conv.c: Likewise.
9179 * tree-inline.c: Likewise.
9180 * tree-into-ssa.c: Likewise.
9181 * tree-iterator.c: Likewise.
9182 * tree-loop-distribution.c: Likewise.
9183 * tree-nested.c: Likewise.
9184 * tree-nrv.c: Likewise.
9185 * tree-object-size.c: Likewise.
9186 * tree-outof-ssa.c: Likewise.
9187 * tree-parloops.c: Likewise.
9188 * tree-phinodes.c: Likewise.
9189 * tree-predcom.c: Likewise.
9190 * tree-pretty-print.c: Likewise.
9191 * tree-profile.c: Likewise.
9192 * tree-scalar-evolution.c: Likewise.
9193 * tree-sra.c: Likewise.
9194 * tree-ssa-address.c: Likewise.
9195 * tree-ssa-alias.c: Likewise.
9196 * tree-ssa-ccp.c: Likewise.
9197 * tree-ssa-coalesce.c: Likewise.
9198 * tree-ssa-copy.c: Likewise.
9199 * tree-ssa-dce.c: Likewise.
9200 * tree-ssa-dse.c: Likewise.
9201 * tree-ssa-forwprop.c: Likewise.
9202 * tree-ssa-ifcombine.c: Likewise.
9203 * tree-ssa-live.c: Likewise.
9204 * tree-ssa-loop-ch.c: Likewise.
9205 * tree-ssa-loop-im.c: Likewise.
9206 * tree-ssa-loop-ivcanon.c: Likewise.
9207 * tree-ssa-loop-ivopts.c: Likewise.
9208 * tree-ssa-loop-manip.c: Likewise.
9209 * tree-ssa-loop-niter.c: Likewise.
9210 * tree-ssa-loop-prefetch.c: Likewise.
9211 * tree-ssa-loop-unswitch.c: Likewise.
9212 * tree-ssa-loop.c: Likewise.
9213 * tree-ssa-math-opts.c: Likewise.
9214 * tree-ssa-operands.c: Likewise.
9215 * tree-ssa-phiopt.c: Likewise.
9216 * tree-ssa-phiprop.c: Likewise.
9217 * tree-ssa-pre.c: Likewise.
9218 * tree-ssa-propagate.c: Likewise.
9219 * tree-ssa-reassoc.c: Likewise.
9220 * tree-ssa-scopedtables.c: Likewise.
9221 * tree-ssa-sink.c: Likewise.
9222 * tree-ssa-strlen.c: Likewise.
9223 * tree-ssa-structalias.c: Likewise.
9224 * tree-ssa-tail-merge.c: Likewise.
9225 * tree-ssa-ter.c: Likewise.
9226 * tree-ssa-threadupdate.c: Likewise.
9227 * tree-ssa-uncprop.c: Likewise.
9228 * tree-ssa-uninit.c: Likewise.
9229 * tree-ssa.c: Likewise.
9230 * tree-ssanames.c: Likewise.
9231 * tree-stdarg.c: Likewise.
9232 * tree-streamer-in.c: Likewise.
9233 * tree-streamer-out.c: Likewise.
9234 * tree-streamer.c: Likewise.
9235 * tree-switch-conversion.c: Likewise.
9236 * tree-tailcall.c: Likewise.
9237 * tree-vect-data-refs.c: Likewise.
9238 * tree-vect-generic.c: Likewise.
9239 * tree-vect-loop-manip.c: Likewise.
9240 * tree-vect-loop.c: Likewise.
9241 * tree-vect-patterns.c: Likewise.
9242 * tree-vect-slp.c: Likewise.
9243 * tree-vect-stmts.c: Likewise.
9244 * tree-vectorizer.c: Likewise.
9245 * tree-vrp.c: Likewise.
9248 * ubsan.c: Likewise.
9249 * value-prof.c: Likewise.
9250 * var-tracking.c: Likewise.
9251 * varasm.c: Likewise.
9252 * varpool.c: Likewise.
9253 * vmsdbgout.c: Likewise.
9254 * vtable-verify.c: Likewise.
9256 * wide-int-print.cc: Likewise.
9257 * wide-int.cc: Likewise.
9258 * xcoffout.c: Likewise.
9260 2015-10-30 James Greenhalgh <james.greenhalgh@arm.com>
9262 * doc/invoke.texi (fdump-rtl-@var{pass}): Clarify relationship
9263 between pass numbering and execution order.
9265 2015-10-30 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
9267 * config/arm/arm.c (cortex_a9_sched_adjust_cost): Use reg_set_p to
9268 check for dependencies.
9270 2015-10-30 Richard Sandiford <richard.sandiford@arm.com>
9272 * tree-ssa-math-opts.c (pass_cse_sincos::execute): Don't free
9275 2015-10-30 Richard Sandiford <richard.sandiford@arm.com>
9277 * real.h (format_helper): New.
9278 (real_convert, exact_real_truncate, real_from_string3, real_to_target)
9279 (real_from_target, real_nan, real_2expN, real_value_truncate)
9280 (significand_size, real_from_string2, exact_real_inverse)
9281 (exact_real_inverse, real_powi, real_trunc, real_floor, real_ceil)
9282 (real_round, real_isinteger, real_from_integer): Replace
9283 machine_mode arguments with format_helper arguments.
9284 * real.c (exact_real_inverse, real_from_string2, real_from_string3)
9285 (real_from_integer, real_nan, real_2expN, real_convert)
9286 (real_value_truncate, exact_real_truncate, real_to_target)
9287 (real_from_target, significand_size, real_powi, real_trunc)
9288 (real_floor, real_ceil, real_round, real_isinteger): Replace
9289 machine_mode arguments with format_helper arguments.
9290 (real_to_target_fmt, real_from_target_fmt): Delete.
9291 * dfp.h (decimal_real_convert): Replace mode argument with real_format.
9292 * dfp.c (decimal_to_binary, decimal_real_convert): Replace mode
9293 argument with real_format.
9294 * builtins.c (do_real_to_int_conversion): Update type of fn argument.
9296 2015-10-30 Richard Sandiford <richard.sandiford@arm.com>
9298 * fixed-value.c (check_real_for_fixed_mode, fixed_from_string)
9299 (fixed_to_decimal, fixed_convert_from_real)
9300 (real_convert_from_fixed): Fix mode arguments to real_2expN.
9302 2015-10-30 Richard Sandiford <richard.sandiford@arm.com>
9304 * real.h (REAL_MODE_FORMAT): Abort if the mode isn't a
9305 SCALAR_FLOAT_MODE_P.
9307 2015-10-30 Alan Lawrence <alan.lawrence@arm.com>
9309 * tree-sra.c (scalarizable_type_p): Comment variable-length arrays.
9310 (completely_scalarize): Comment zero-length arrays.
9311 (get_access_replacement): Correct comment re. precondition.
9313 2015-10-30 Venkataramanan Kumar <venkataramanan.kumar@amd.com>
9315 * config/i386/i386.c (get_builtin_code_for_version): Set priority
9316 for PROCESSOR_ZNVER1.
9317 (enum processor_model): Add M_AMDFAM17H_znver1.
9318 (struct arch_names_table): Likewise.
9319 * doc/extend.texi: ADD znver1.
9321 2015-10-30 Richard Biener <rguenther@suse.de>
9323 * gimple-fold.c (fold_gimple_assign): Do not dispatch to
9324 fold () on single RHSs. Allow CONSTRUCTORS with trailing
9325 zeros to be folded to VECTOR_CSTs.
9326 * tree.c (build_vector_from_ctor): Handle VECTOR_CST elements.
9327 * fold-const.c (fold): Use build_vector_from_ctor.
9329 2015-10-30 Evandro Menezes <e.menezes@samsung.com>
9331 * config/aarch64/aarch64.md (*movhf_aarch64): Change the type of
9332 "mov %0.h[0], %1.h[0] to "neon_move".
9333 (*movtf_aarch64): Change the type of "fmov %s0, wzr" to "f_mcr".
9334 (*cmov<mode>_insn): Change the types of "mov %<w>0, {-1,1}" to
9336 (*cmovsi_insn_uxtw): Likewise.
9338 2015-10-30 Tom de Vries <tom@codesourcery.com>
9340 * tree-ssa-structalias.c (ipa_pta_execute): Declare variable from as
9341 unsigned, and initialize, and use initial value instead of hardcoded
9342 constant. Add generic constraints dumping section. Don't dump global
9343 initializers constraints dumping section if empty. Don't update
9344 variable from if unused.
9346 2015-10-29 Mikhail Maltsev <maltsevm@gmail.com>
9348 * config/alpha/alpha.c (alpha_function_arg): Use gcc_checking_assert,
9349 flag_checking and/or CHECKING_P to eliminate conditional compilation
9351 * config/arm/arm.c (arm_unwind_emit_sequence): Likewise.
9352 * config/bfin/bfin.c (hwloop_optimize): Likewise.
9353 * config/i386/i386.c (ix86_print_operand_address): Likewise.
9354 (output_387_binary_op): Likewise.
9355 * config/ia64/ia64.c (ia64_sched_init, bundling): Likewise.
9356 * config/m68k/m68k.c (m68k_sched_md_init_global): Likewise.
9357 * config/rs6000/rs6000.c (htm_expand_builtin, rs6000_emit_prologue):
9359 * config/rs6000/rs6000.h: Likewise.
9360 * config/visium/visium.c (visium_setup_incoming_varargs): Likewise.
9362 2015-10-29 Kaz Kojima <kkojima@gcc.gnu.org>
9364 * config/sh/sh.opt (mfdpic): Add missing period.
9366 2015-08-29 Anatoly Sokolov <aesok@post.ru>
9368 * config/mcore/mcore.h (REG_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P,
9369 BASE_REGISTER_RTX_P, INDEX_REGISTER_RTX_P,
9370 GO_IF_LEGITIMATE_ADDRESS): Remove macros.
9371 * config/mcore/mcore.c (mcore_reg_ok_for_base_p,
9372 mcore_base_register_rtx_p, mcore_legitimate_index_p,
9373 mcore_legitimate_address_p): New functions.
9374 (TARGET_ADDR_SPACE_LEGITIMATE_ADDRESS_P): Define.
9376 2015-10-29 Jeff Law <law@redhat.com>
9378 * tree-ssa-scopedtables.h (const_and_copies): Remove invalidate
9380 * tree-ssa-scopedtables.h (const_and_copies::invalidate): Remove.
9381 * tree-ssa-threadedge.c
9382 (record_temporary_equivalences_from_stmts_at_dest): Remove
9383 backedge_seen argument and associated code which invalidated
9384 equivalences based on the value of that argument.
9385 (thread_through_normal_block): Corresponding changes.
9387 2015-10-29 Segher Boessenkool <segher@kernel.crashing.org>
9389 * config/rs6000/rs6000.c (rs6000_reg_live_or_pic_offset_p): Move this
9390 function earlier in the file.
9391 (first_reg_to_save): Use rs6000_reg_live_or_pic_offset_p instead of
9392 df_regs_ever_live_p.
9394 2015-10-29 Segher Boessenkool <segher@kernel.crashing.org>
9396 * lra-constraints.c (process_address_1): Handle (mem:BLK (scratch))
9399 2015-10-29 Richard Henderson <rth@redhat.com>
9403 * config/i386/i386.c (ix86_cannot_change_mode_class): Tighten
9404 sse check to the exact conditions of PR 67609.
9406 2015-10-29 Michael Meissner <meissner@linux.vnet.ibm.com>
9408 * config/rs6000/rs6000.c (rs6000_init_libfuncs): Split libfunc
9409 setup into 3 functions: init_float128_ibm, init_float128_ieee, and
9410 rs6000_init_libfuncs. If -mfloat128, add IFmode functions for all
9411 of the traditional names that TFmode uses for handling IEEE
9412 extended double. If -mfloat128, add KFmode functions for all of
9413 the emulation functions. If -mabi=ieeelongdouble and -mfloat128,
9414 make TFmode use the same emulation functions as KFmode.
9415 (init_float128_ibm): Likewise.
9416 (init_float128_ieee): Likewise.
9417 (rs6000_generate_compare): For IEEE 128-bit floating point
9418 comparisons, call the unordered comparison function instead of the
9419 ordered comparison function.
9420 (rs6000_expand_float128_convert): Deal with operands that are
9421 memory operands. Restructure the code to use a switch statement on
9422 the mode. Add support for TFmode defaulting to either IBM extended
9423 double or IEEE 128-bit floating point. If the underlying types are
9424 the same, use a move instead of a conversion function.
9425 (TARGET_C_MODE_FOR_SUFFIX): Define 'q' and 'Q' as the suffix to
9426 use for IEEE 128-bit floating point constants with -mfloat128.
9427 (rs6000_c_mode_for_suffix): Likewise.
9428 (TARGET_INVALID_BINARY_OP): Do not allow inter-mixing of IEEE
9429 128-bit floating point with IBM extended double floating point.
9430 (rs6000_invalid_binary_op): Likewise.
9431 (rs6000_gen_le_vsx_permute): On little endian systems generate a
9432 ROTATE insn instead of VEC_SELECT for IEEE 128-bit floating point
9433 types that can go in vector registers.
9434 (chain_contains_only_swaps): Properly swap IEEE 128-bit floating
9435 point types that can go in vector registers on little endian
9437 (mark_swaps_for_removal): Likewise.
9438 (rs6000_analyze_swaps): Likewise.
9439 (rs6000_mangle_type): Use U10__float128 for IEEE 128-bit floating point.
9441 * config/rs6000/rs6000.md (FLOAT128_SFDFTF): Delete iterator,
9442 rework IEEE 128-bit floating point insns to deal with TFmode being
9443 either IBM extended double or IEEE 128-bit floating point.
9445 (IBM128): Update iterator to add condition that the mode is IBM
9447 (IEEE128): New iterator for IEEE 128-bit floating point.
9448 (TFIFKF): Rename TFIFKF iterator to FLOAT128.
9449 (FLOAT128): Likewise.
9450 (signbit<mode>2): FLOAT128_IBM_P condition test moved into IBM128
9452 (neg<mode>2): Replace TFIFKF iterator with FLOAT128. Add support
9453 for TFmode being IEEE 128-bit floating point. Use IEEE128 iterator
9454 instead of hard coding TFmode or KFmode.
9455 (negtf2_internal): Likewise.
9456 (neg<mode>2_internal): Likewise.
9457 (abs<mode>2): Likewise.
9458 (abstf2_internal): Likewise.
9459 (abs<mode>2_internal): Likewise.
9460 (ieee_128bit_neg<mode>2): Likewise.
9461 (ieee_128bit_neg<mode>2_internal): Likewise.
9462 (ieee_128bit_abs<mode>2): Likewise.
9463 (ieee_128bit_abs<mode>2_internal): Likewise.
9464 (ieee_128bit_nabs<mode>2): Likewise.
9465 (ieee_128bit_nabs<mode>2_internal): Likewise.
9466 (extendiftf2): Add explicit conversions between 128-bit floating
9467 point types. Drop the old conversions that had become unwieldy.
9468 (extend<FLOAT128_SFDFTF:mode><IFKF:mode>2): Likewise.
9469 (extendifkf2): Likewise.
9470 (trunc<IFKF:mode><FLOAT128_SFDFTF:mode>2): Likewise.
9471 (extendtfkf2): Likewise.
9472 (fix_trunc<IFKF:mode><SDI:mode>2): Likewise.
9473 (trunciftf2): Likewise.
9474 (fixuns_trunc<IFKF:mode><SDI:mode>2): Likewise.
9475 (truncifkf2): Likewise.
9476 (float<SDI:mode><IFKF:mode>2): Likewise.
9477 (trunckftf2): Likewise.
9478 (floatuns<SDI:mode><IFKF:mode>2): Likewise.
9479 (trunctfif2): Likewise.
9480 (FP iterator): Allow TFmode to be IEEE 128-bit floating point.
9481 (extenddftf2): Rework 128-bit floating point conversions to
9482 properly handle -mabi=ieeelongdouble. Merge IFmode, TFmode, and
9483 KFmode expanders into one function.
9484 (extenddf<mode>2): Likewise.
9485 (extenddftf2_fprs): Likewise.
9486 (extenddf<mode>2_fprs): Likewise.
9487 (extenddftf2_vsx): Likewise.
9488 (extenddf<mode>2_vsx): Likewise.
9489 (extendsftf2): Likewise.
9490 (extendsf<mode>2): Likewise.
9491 (trunctfdf2): Likewise.
9492 (trunc<mode>df2): Likewise.
9493 (trunctfdf2_internal1): Likewise.
9494 (trunc<mode>df2_internal1): Likewise.
9495 (trunctfdf2_internal2): Likewise.
9496 (trunc<mode>df2_internal2): Likewise.
9497 (trunctfsf2): Likewise.
9498 (trunc<mode>sf2): Likewise.
9499 (trunctfsf2_fprs): Likewise.
9500 (trunc<mode>sf2_fprs): Likewise.
9501 (floatsit2f): Likewise.
9502 (floatsi<mode>2): Likewise.
9503 (fix_trunc_helper): Likewise.
9504 (fix_trunc_helper<mode>): Likewise.
9505 (fix_trunctfsi2): Likewise.
9506 (fix_trunc<mode>si2): Likewise.
9507 (fix_trunctfsi2_fprs): Likewise.
9508 (fix_trunc<mode>si2_fprs): Likewise.
9509 (fix_trunctfsi2_internal): Likewise.
9510 (fix_trunc<mode>si2_internal): Likewise.
9511 (fix_trunctfdi2): Likewise.
9512 (fix_trunc<mode>di2): Likewise.
9513 (fixuns_trunctf<mode>2): Likewise.
9514 (fixuns_trunc<IEEE128:mode><SDI:mode>2): Likewise.
9515 (floatditf2): Likewise.
9516 (floatdi<mode>2): Likewise.
9517 (floatuns<mode>tf2): Likewise.
9518 (floatuns<SDI:mode><IEEE128:mode>): Likewise.
9519 (cmptf_internal1): Use a mode iterator to add support for both
9520 types (IFmode, TFmode) that support IBM extended double.
9521 (cmp<mode>_internal1): Likewise.
9522 (cmptf_internal2): Likewise.
9523 (cmp<mode>_internal2): Likewise.
9525 * doc/extend.texi (Floating Types): Document __ibm128 and
9526 __float128 on PowerPC.
9528 * doc/invoke.texi (RS/6000 and PowerPC Options): Document
9529 -mfloat128 and -mno-float128.
9531 2015-10-29 Michael Meissner <meissner@linux.vnet.ibm.com>
9533 * config/rs6000/rs6000.h (ALTIVEC_VECTOR_MODE): Add IEEE 128-bit
9534 floating point modes that can go in vector registers.
9535 (MODES_TIEABLE_P): Move tests for vector modes before tests for
9536 scalar floating point, so that IEEE 128-bit floating point that
9537 can go in vector registers bind with vectors and not FP.
9538 (struct rs6000_args): Add libcall field.
9540 * config/rs6000/rs6000.opt (-mfloat128-*): Delete -mfloat128-none
9541 and -mfloat128-software switches. Replace them with a binary
9543 (-mfloat128): Likewise.
9545 * config/rs6000/rs6000.c (rs6000_hard_regno_mode_ok): Allow
9546 128-bit floating point types in GPRs, even if the appropriate
9547 option enabling the type was not used.
9548 (rs6000_debug_reg_global): Remove -mfloat128-{software,none}
9550 (rs6000_setup_reg_addr_masks): Do not allow pre-increment and
9551 pre-decrement on IEEE 128-bit floating point values.
9552 (rs6000_init_hard_regno_mode_ok): Change test for whether TFmode
9553 is IEEE 128-bit floating point.
9554 (rs6000_init_hard_regno_mode_ok): Add reload handlers for IEEE
9555 128-bit floating point types that can go in vector registers.
9556 (rs6000_option_override_internal): Change -mfloat128-none and
9557 -mfloat128-software to -mfloat128, and move code to be near other
9558 VSX option handling.
9559 (rs6000_option_override_internal): Disable -mfloat128 if we don't
9560 have the Altivec ABI.
9561 (rs6000_init_builtins): Don't make TFmode use either IFmode or
9562 KFmode floating point nodes. Instead, have three separate nodes.
9563 (rs6000_scalar_mode_supported_p): Add support for IFmode to allow
9564 eventually moving the long double default to IEEE 128-bit floating
9566 (rs6000_opt_masks): Add -mfloat128.
9567 (struct rs6000_opt_var): Fix typo in comment.
9568 (init_cumulative_args): Initialize libcall field in
9570 (rs6000_function_arg): Treat library functions as if they had
9571 prototypes to prevent IEEE 128-bit support functions from passing
9572 arguments in both GPRs and vector registers.
9573 (rs6000_arg_partial_bytes): Likewise.
9575 * config/rs6000/rs6000-cpus.def (POWERPC_MASKS): Add -mfloat128 as
9576 an option that can be turned on via -mcpu=<xxx>.
9578 * config/rs6000/rs6000-opts.h (enum float128_type_t): Delete, no
9581 * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Define
9582 __FLOAT128__ if -mfloat128. Define __LONG_DOUBLE_IEEE128__ if long
9583 double is IEEE 128-bit. Define __LONG_DOUBLE_IBM128__ if long
9584 double is IBM extended double.
9586 * config/rs6000/predicates.md (reg_or_indexed_operand): Allow
9589 2015-10-29 Mikhail Maltsev <maltsevm@gmail.com>
9591 * genautomata.c: Use CHECKING_P instead of ENABLE_CHECKING.
9592 * genconditions.c: Define CHECKING_P in the generated code.
9593 * genextract.c: Use flag_checking in insn_extract.
9594 * gengtype.c (main): Remove conditional compilation.
9595 * gengtype.h: Likewise.
9597 2015-10-29 Jeff Law <law@redhat.com>
9599 PR tree-optimization/67892
9600 * tree-ssa-threadedge.c (simplify_controL_stmt_condition): Fix typo
9602 (thread_through_normal_block): If we have seen a backedge, then
9603 do nothing. No longer call find_jump_threads_backwards here.
9604 (thread_across_edge): Use find_jump_threads_backwards to find
9605 jump threads if the old style threader was not successful.
9606 * tree-ssa-threadbackward.c (get_gimple_control_stmt): Use
9607 gsi_last_nondebug_bb. Return NULL if the block does not end
9608 with a control statement.
9609 (find_jump_threads_backwards): Setup code moved here from
9610 tree-ssa-threadedge.c::thread_through_normal_block. Accept
9611 single edge argument instead of name & block.
9612 * tree-ssa-threadbackward.h (find_jump_threads_backwards): Update
9615 2015-10-29 Tom de Vries <tom@codesourcery.com>
9617 * fold-const.c (fold_unary_loc): Remove folding inhibition for restrict
9620 2015-10-29 Nathan Sidwell <nathan@codesourcery.com>
9622 * omp-low.c (lower_omp_target): Remove unreachable code & merge
9625 2015-10-29 Marc Glisse <marc.glisse@inria.fr>
9627 * match.pd (X-(X/Y)*Y): Properly handle conversions and commutativity.
9629 2015-10-29 Richard Sandiford <richard.sandiford@arm.com>
9631 * tree-call-cdce.c (shrink_wrap_one_built_in_call): Remove
9632 guard_bb0 and use guard_bb throughout.
9634 2015-10-29 Richard Sandiford <richard.sandiford@arm.com>
9636 * tree-call-cdce.c (shrink_wrap_one_built_in_call): Remove
9639 2015-10-29 Richard Biener <rguenther@suse.de>
9642 * fold-const.c (extract_muldiv_1): Avoid introducing undefined
9645 2015-10-29 Andrew MacLeod <amacleod@redhat.com>
9647 * alias.c: Reorder #include statements and remove duplicates.
9649 * attribs.c: Likewise.
9650 * auto-inc-dec.c: Likewise.
9651 * auto-profile.c: Likewise.
9652 * bb-reorder.c: Likewise.
9653 * bt-load.c: Likewise.
9654 * builtins.c: Likewise.
9655 * caller-save.c: Likewise.
9656 * calls.c: Likewise.
9659 * cfganal.c: Likewise.
9660 * cfgbuild.c: Likewise.
9661 * cfgcleanup.c: Likewise.
9662 * cfgexpand.c: Likewise.
9663 * cfghooks.c: Likewise.
9664 * cfgloop.c: Likewise.
9665 * cfgloopanal.c: Likewise.
9666 * cfgloopmanip.c: Likewise.
9667 * cfgrtl.c: Likewise.
9668 * cgraph.c: Likewise.
9669 * cgraphbuild.c: Likewise.
9670 * cgraphclones.c: Likewise.
9671 * cgraphunit.c: Likewise.
9672 * cilk-common.c: Likewise.
9673 * combine-stack-adj.c: Likewise.
9674 * combine.c: Likewise.
9675 * compare-elim.c: Likewise.
9676 * convert.c: Likewise.
9677 * coverage.c: Likewise.
9678 * cppbuiltin.c: Likewise.
9679 * cprop.c: Likewise.
9681 * cselib.c: Likewise.
9682 * data-streamer-in.c: Likewise.
9683 * data-streamer-out.c: Likewise.
9684 * data-streamer.c: Likewise.
9685 * dbxout.c: Likewise.
9688 * debug.c: Likewise.
9689 * df-core.c: Likewise.
9690 * df-problems.c: Likewise.
9691 * df-scan.c: Likewise.
9693 * dojump.c: Likewise.
9694 * dominance.c: Likewise.
9695 * double-int.c: Likewise.
9697 * dumpfile.c: Likewise.
9698 * dwarf2asm.c: Likewise.
9699 * dwarf2cfi.c: Likewise.
9700 * dwarf2out.c: Likewise.
9701 * emit-rtl.c: Likewise.
9702 * except.c: Likewise.
9703 * explow.c: Likewise.
9704 * expmed.c: Likewise.
9706 * final.c: Likewise.
9707 * fixed-value.c: Likewise.
9708 * fold-const.c: Likewise.
9709 * function.c: Likewise.
9710 * fwprop.c: Likewise.
9712 * generic-match-head.c: Likewise.
9713 * ggc-common.c: Likewise.
9714 * gimple-builder.c: Likewise.
9715 * gimple-expr.c: Likewise.
9716 * gimple-fold.c: Likewise.
9717 * gimple-iterator.c: Likewise.
9718 * gimple-low.c: Likewise.
9719 * gimple-match-head.c: Likewise.
9720 * gimple-pretty-print.c: Likewise.
9721 * gimple-ssa-isolate-paths.c: Likewise.
9722 * gimple-ssa-strength-reduction.c: Likewise.
9723 * gimple-streamer-in.c: Likewise.
9724 * gimple-streamer-out.c: Likewise.
9725 * gimple-walk.c: Likewise.
9726 * gimple.c: Likewise.
9727 * gimplify-me.c: Likewise.
9728 * gimplify.c: Likewise.
9729 * godump.c: Likewise.
9730 * graph.c: Likewise.
9731 * graphite-poly.c: Likewise.
9732 * haifa-sched.c: Likewise.
9733 * hw-doloop.c: Likewise.
9734 * ifcvt.c: Likewise.
9735 * incpath.c: Likewise.
9736 * init-regs.c: Likewise.
9737 * internal-fn.c: Likewise.
9738 * ipa-chkp.c: Likewise.
9739 * ipa-comdats.c: Likewise.
9740 * ipa-cp.c: Likewise.
9741 * ipa-devirt.c: Likewise.
9742 * ipa-icf-gimple.c: Likewise.
9743 * ipa-icf.c: Likewise.
9744 * ipa-inline-analysis.c: Likewise.
9745 * ipa-inline-transform.c: Likewise.
9746 * ipa-inline.c: Likewise.
9747 * ipa-polymorphic-call.c: Likewise.
9748 * ipa-profile.c: Likewise.
9749 * ipa-prop.c: Likewise.
9750 * ipa-pure-const.c: Likewise.
9751 * ipa-ref.c: Likewise.
9752 * ipa-reference.c: Likewise.
9753 * ipa-split.c: Likewise.
9754 * ipa-utils.c: Likewise.
9755 * ipa-visibility.c: Likewise.
9757 * ira-build.c: Likewise.
9758 * ira-color.c: Likewise.
9759 * ira-conflicts.c: Likewise.
9760 * ira-costs.c: Likewise.
9761 * ira-emit.c: Likewise.
9762 * ira-lives.c: Likewise.
9765 * langhooks.c: Likewise.
9767 * lists.c: Likewise.
9768 * loop-doloop.c: Likewise.
9769 * loop-init.c: Likewise.
9770 * loop-invariant.c: Likewise.
9771 * loop-iv.c: Likewise.
9772 * loop-unroll.c: Likewise.
9773 * lower-subreg.c: Likewise.
9774 * lra-assigns.c: Likewise.
9775 * lra-coalesce.c: Likewise.
9776 * lra-constraints.c: Likewise.
9777 * lra-eliminations.c: Likewise.
9778 * lra-lives.c: Likewise.
9779 * lra-remat.c: Likewise.
9780 * lra-spills.c: Likewise.
9782 * lto-cgraph.c: Likewise.
9783 * lto-compress.c: Likewise.
9784 * lto-opts.c: Likewise.
9785 * lto-section-in.c: Likewise.
9786 * lto-section-out.c: Likewise.
9787 * lto-streamer-in.c: Likewise.
9788 * lto-streamer-out.c: Likewise.
9789 * lto-streamer.c: Likewise.
9790 * mode-switching.c: Likewise.
9791 * modulo-sched.c: Likewise.
9792 * omp-low.c: Likewise.
9793 * optabs.c: Likewise.
9794 * opts-global.c: Likewise.
9795 * passes.c: Likewise.
9796 * plugin.c: Likewise.
9797 * postreload-gcse.c: Likewise.
9798 * postreload.c: Likewise.
9799 * predict.c: Likewise.
9800 * print-tree.c: Likewise.
9801 * profile.c: Likewise.
9803 * realmpfr.c: Likewise.
9804 * recog.c: Likewise.
9806 * reg-stack.c: Likewise.
9807 * regcprop.c: Likewise.
9808 * reginfo.c: Likewise.
9809 * regrename.c: Likewise.
9810 * regstat.c: Likewise.
9811 * reload.c: Likewise.
9812 * reload1.c: Likewise.
9813 * reorg.c: Likewise.
9814 * resource.c: Likewise.
9815 * rtl-chkp.c: Likewise.
9816 * rtl-error.c: Likewise.
9817 * rtlanal.c: Likewise.
9818 * rtlhooks.c: Likewise.
9819 * sanopt.c: Likewise.
9820 * sched-deps.c: Likewise.
9821 * sched-ebb.c: Likewise.
9822 * sched-rgn.c: Likewise.
9824 * shrink-wrap.c: Likewise.
9825 * simplify-rtx.c: Likewise.
9826 * stack-ptr-mod.c: Likewise.
9827 * statistics.c: Likewise.
9829 * stor-layout.c: Likewise.
9830 * store-motion.c: Likewise.
9831 * stringpool.c: Likewise.
9832 * symtab.c: Likewise.
9833 * target-globals.c: Likewise.
9834 * targhooks.c: Likewise.
9835 * toplev.c: Likewise.
9836 * tracer.c: Likewise.
9837 * trans-mem.c: Likewise.
9838 * tree-affine.c: Likewise.
9839 * tree-call-cdce.c: Likewise.
9840 * tree-cfg.c: Likewise.
9841 * tree-cfgcleanup.c: Likewise.
9842 * tree-chkp-opt.c: Likewise.
9843 * tree-chkp.c: Likewise.
9844 * tree-chrec.c: Likewise.
9845 * tree-complex.c: Likewise.
9846 * tree-data-ref.c: Likewise.
9847 * tree-dfa.c: Likewise.
9848 * tree-diagnostic.c: Likewise.
9849 * tree-dump.c: Likewise.
9850 * tree-eh.c: Likewise.
9851 * tree-emutls.c: Likewise.
9852 * tree-if-conv.c: Likewise.
9853 * tree-inline.c: Likewise.
9854 * tree-into-ssa.c: Likewise.
9855 * tree-iterator.c: Likewise.
9856 * tree-loop-distribution.c: Likewise.
9857 * tree-nested.c: Likewise.
9858 * tree-nrv.c: Likewise.
9859 * tree-object-size.c: Likewise.
9860 * tree-outof-ssa.c: Likewise.
9861 * tree-parloops.c: Likewise.
9862 * tree-phinodes.c: Likewise.
9863 * tree-predcom.c: Likewise.
9864 * tree-pretty-print.c: Likewise.
9865 * tree-profile.c: Likewise.
9866 * tree-scalar-evolution.c: Likewise.
9867 * tree-sra.c: Likewise.
9868 * tree-ssa-address.c: Likewise.
9869 * tree-ssa-alias.c: Likewise.
9870 * tree-ssa-ccp.c: Likewise.
9871 * tree-ssa-coalesce.c: Likewise.
9872 * tree-ssa-copy.c: Likewise.
9873 * tree-ssa-dce.c: Likewise.
9874 * tree-ssa-dom.c: Likewise.
9875 * tree-ssa-dse.c: Likewise.
9876 * tree-ssa-forwprop.c: Likewise.
9877 * tree-ssa-ifcombine.c: Likewise.
9878 * tree-ssa-live.c: Likewise.
9879 * tree-ssa-loop-ch.c: Likewise.
9880 * tree-ssa-loop-im.c: Likewise.
9881 * tree-ssa-loop-ivcanon.c: Likewise.
9882 * tree-ssa-loop-ivopts.c: Likewise.
9883 * tree-ssa-loop-manip.c: Likewise.
9884 * tree-ssa-loop-niter.c: Likewise.
9885 * tree-ssa-loop-prefetch.c: Likewise.
9886 * tree-ssa-loop-unswitch.c: Likewise.
9887 * tree-ssa-loop.c: Likewise.
9888 * tree-ssa-math-opts.c: Likewise.
9889 * tree-ssa-operands.c: Likewise.
9890 * tree-ssa-phiopt.c: Likewise.
9891 * tree-ssa-phiprop.c: Likewise.
9892 * tree-ssa-pre.c: Likewise.
9893 * tree-ssa-propagate.c: Likewise.
9894 * tree-ssa-reassoc.c: Likewise.
9895 * tree-ssa-sccvn.c: Likewise.
9896 * tree-ssa-scopedtables.c: Likewise.
9897 * tree-ssa-sink.c: Likewise.
9898 * tree-ssa-strlen.c: Likewise.
9899 * tree-ssa-structalias.c: Likewise.
9900 * tree-ssa-tail-merge.c: Likewise.
9901 * tree-ssa-ter.c: Likewise.
9902 * tree-ssa-threadedge.c: Likewise.
9903 * tree-ssa-threadupdate.c: Likewise.
9904 * tree-ssa-uncprop.c: Likewise.
9905 * tree-ssa-uninit.c: Likewise.
9906 * tree-ssa.c: Likewise.
9907 * tree-ssanames.c: Likewise.
9908 * tree-stdarg.c: Likewise.
9909 * tree-streamer-in.c: Likewise.
9910 * tree-streamer-out.c: Likewise.
9911 * tree-streamer.c: Likewise.
9912 * tree-switch-conversion.c: Likewise.
9913 * tree-tailcall.c: Likewise.
9914 * tree-vect-data-refs.c: Likewise.
9915 * tree-vect-generic.c: Likewise.
9916 * tree-vect-loop-manip.c: Likewise.
9917 * tree-vect-loop.c: Likewise.
9918 * tree-vect-patterns.c: Likewise.
9919 * tree-vect-slp.c: Likewise.
9920 * tree-vect-stmts.c: Likewise.
9921 * tree-vectorizer.c: Likewise.
9922 * tree-vrp.c: Likewise.
9925 * ubsan.c: Likewise.
9926 * value-prof.c: Likewise.
9927 * var-tracking.c: Likewise.
9928 * varasm.c: Likewise.
9929 * varpool.c: Likewise.
9930 * vtable-verify.c: Likewise.
9932 * wide-int-print.cc: Likewise.
9933 * wide-int.cc: Likewise.
9934 * xcoffout.c: Likewise.
9936 2015-10-29 H.J. Lu <hongjiu.lu@intel.com>
9938 * Makefile.in (NO_PIE_CFLAGS): New.
9939 (NO_PIE_FLAG): Likewise.
9940 (NO_PIE_CFLAGS_FOR_BUILD): Likewise.
9941 (NO_PIE_FLAG_FOR_BUILD): Likewise.
9942 (BUILD_NO_PIE_CFLAGS): Likewise.
9943 (BUILD_NO_PIE_FLAG): Likewise.
9944 (COMPILER): Replace @NO_PIE_CFLAGS@ with $(NO_PIE_CFLAGS).
9945 (LINKER): Replace @NO_PIE_FLAG@ with $(NO_PIE_FLAG).
9946 (BUILD_CFLAGS): Replace @NO_PIE_CFLAGS@ with
9947 $(BUILD_NO_PIE_CFLAGS).
9948 (BUILD_CXXFLAGS): Likewise.
9949 (BUILD_LDFLAGS ): Replace @NO_PIE_FLAG@ with
9950 $(BUILD_NO_PIE_FLAG).
9951 * configure.ac (BUILD_NO_PIE_CFLAGS): New. AC_SUBST.
9952 (BUILD_NO_PIE_FLAG): Likewise.
9953 (NO_PIE_CFLAGS_FOR_BUILD): Likewise.
9954 (NO_PIE_FLAG_FOR_BUILD): Likewise.
9955 * configure: Regenerated.
9957 2015-10-29 Richard Biener <rguenther@suse.de>
9960 * fold-const.c (fold_cond_expr_with_comparison): Do not fold
9961 unsigned conditonal negation to ABS_EXPR.
9963 2015-10-29 Richard Biener <rguenther@suse.de>
9965 * gimple-match-head.c (gimple_simplify): Remove premature checking
9966 of builtin_decl_implicit of function calls we simplify.
9968 2015-10-29 Bin Cheng <bin.cheng@arm.com>
9970 * tree-ssa-loop-ivopts.c (split_address_cost): Check depends_on.
9971 (get_computation_cost_at): Ditto.
9972 (determine_use_iv_cost_address): Pass NULL for arguments depends_on
9975 2015-10-28 Tom de Vries <tom@codesourcery.com>
9977 * tree-ssa-structalias.c (intra_create_variable_infos): Remove
9980 2015-10-28 Jason Merrill <jason@redhat.com>
9982 * Makefile.in (TAGS): Include libcpp and libiberty.
9984 2015-10-28 Nathan Sidwell <nathan@codesourcery.com>
9986 * omp-low.c (MASK_GANG, MASK_WORKER, MASK_VECTOR): Delete.
9987 (extract_omp_for_data): Remove OpenACC special handling of
9990 * config/nvptx/nvptx.c (nvptx_print_operand): Remove 'd' case.
9991 (struct parallel): Update comment.
9992 (nvptx_reorg): Likewise.
9993 (nvptx_neuter): Cleanup whitespace.
9995 2015-10-28 Richard Henderson <rth@redhat.com>
9997 * tree-eh.c (mark_reachable_handlers): Fix typo in assert.
9999 2015-10-05 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
10002 * config/avr/predicates.md (low_io_address_operand): Don't
10003 consider MODE when computing upper bound.
10004 (io_address_operand): Likewise.
10006 2015-10-28 Jan Hubicka <hubicka@ucw.cz>
10008 * fold-const.c (operand_equal_p): Do not verify that types are
10009 compatible for MEM_REFs.
10011 2015-10-28 Richard Biener <rguenther@suse.de>
10013 * gimple-match-head.c (gimple_simplify): Allow VECTOR_CSTs
10014 in simplifying VEC_COND_EXPR conditions.
10016 2015-10-28 Tom de Vries <tom@codesourcery.com>
10018 * tree-ssa-structalias.c (intra_create_variable_infos): Don't iterate
10019 into vi_next of a full_var.
10021 2015-10-28 Tom de Vries <tom@codesourcery.com>
10023 * tree-ssa-structalias.c (new_var_info, make_heapvar)
10024 (make_constraint_from_restrict, make_constraint_from_global_restrict)
10025 (create_function_info_for, create_variable_info_for_1)
10026 (create_variable_info_for): Add and handle add_id parameter.
10027 (get_call_vi, new_scalar_tmp_constraint_exp, handle_rhs_call)
10028 (init_base_vars): Add extra argument to calls to new_var_info.
10029 (get_vi_for_tree): Add extra argument to call to
10030 create_variable_info_for.
10031 (process_constraint, do_deref, process_all_all_constraints): Add extra
10032 argument to calls to new_scalar_tmp_constraint_exp.
10033 (handle_lhs_call, find_func_aliases_for_builtin_call): Add extra
10034 argument to calls to make_heapvar.
10035 (make_restrict_var_constraints): Add extra argument to call to
10036 make_constraint_from_global_restrict.
10037 (intra_create_variable_infos): Add extra argument to call to
10038 create_variable_info_for_1.
10039 (ipa_pta_execute): Add extra argument to call to
10040 create_function_info_for.
10042 2015-10-28 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
10044 * config/aarch64/aarch64.md (call, call_value, sibcall): Handle noplt.
10045 (sibcall_value): Likewise.
10047 2015-10-28 Nathan Sidwell <nathan@codesourcery.com>
10049 * config/nvptx/nvptx.h (struct machine_function): Add
10051 * config/nvptx/nvptx-protos.h (nvptx_expand_oacc_fork,
10052 nvptx_expand_oacc_join): Declare.
10053 * config/nvptx/nvptx.md (UNSPEC_NTID, UNSPEC_TID): Delete.
10054 (UNSPEC_DIM_SIZE, UNSPEC_SHARED_DATA, UNSPEC_BIT_CONV,
10055 UNSPEC_SHUFFLE, UNSPEC_BR_UNIFIED): New.
10056 (UNSPECV_BARSYNC, UNSPECV_DIM_POS, UNSPECV_FORK, UNSPECV_FORKED,
10057 UNSPECV_JOINING, UNSPECV_JOIN): New.
10058 (BITS, BITD): New mode iterators.
10059 (br_true_uni, br_false_uni): New.
10060 (*oacc_ntid_insn, oacc_ntid, *oacc_tid_insn, oacc_tid): Delete.
10061 (oacc_dim_size, oacc_dim_pos): New.
10062 (nvptx_fork, nvptx_forked, nvptx_joining, nvptx_join): New.
10063 (oacc_fork, oacc_join): New.
10064 (nvptx_shuffle<mode>, unpack<mode>si2, packsi<mode>2): New.
10065 (worker_load<mode>, worker_store<mode>): New.
10066 (nvptx_barsync): New.
10067 * config/nvptx/nvptx.c: Include gimple.h & dumpfile.h.
10068 (SHUFFLE_UP, SHUFFLE_DOWN, SHUFFLE_BFLY, SHUFFLE_IDX): Define.
10069 (worker_bcast_hwm, worker_bcast_align, worker_bcast_name,
10070 worker_bcast_sym): New.
10071 (nvptx_option_override): Initialize worker broadcast buffer.
10072 (nvptx_emit_forking, nvptx_emit_joining): New.
10073 (nvptx_init_axis_predicate): New.
10074 (nvptx_declare_function_name): Init axis predicates.
10075 (nvptx_expand_call): Add fork/join markers around routine call.
10076 (nvptx_expand_oacc_fork, nvptx_expand_oacc_join): New.
10077 (nvptx_gen_unpack, nvptx_gen_pack, nvptx_gen_shuffle): New.
10078 (nvptx_gen_vcast): New.
10079 (struct wcast_data_t): New.
10080 (enum propagate_mask): New.
10081 (nvptx_gen_wcast): New.
10082 (nvptx_print_operand): Add 'S' case.
10083 (struct parallel): New.
10084 (parallel::parallel, parallel::~parallel): New.
10085 (bb_insn_map_t, insn_bb_t, insn_bb_vec_t): New typedefs.
10086 (nvptx_split_blocks, nvptx_discover_pre, nvptx_dump_pars,
10087 nvptx_find_par, nvptx_discover_pars): New.
10088 (nvptx_propagate): New.
10089 (vprop_gen, nvptx_vpropagate): New.
10090 (wprop_gen, nvptx_wpropagate): New.
10091 (nvptx_wsync): New.
10092 (nvptx_single, nvptx_skip_par): New.
10093 (nvptx_process_pars, nvptx_neuter_pars): New.
10094 (ntptx_reorg): Split blocks, generate parallel structure, apply
10096 (nvptx_cannot_copy_insn_p): New.
10097 (nvptx_file_end): Emit worker broadcast decl.
10098 (nvptx_goacc_fork_join): New.
10099 (TARGET_CANNOT_COPY_INSN_P): Override.
10100 (TARGET_GOACC_FORK_JOIN): Override.
10102 2015-10-28 Richard Biener <rguenther@suse.de>
10104 * fold-const.c (negate_expr_p): Adjust the division case to
10105 properly avoid introducing undefined overflow.
10106 (fold_negate_expr): Likewise.
10108 2015-10-28 Richard Biener <rguenther@suse.de>
10110 PR tree-optimization/65962
10111 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children):
10112 Avoid creating loop carried dependences also for outer loops
10113 of the loop a use to replace is in.
10115 2015-10-28 Richard Biener <rguenther@suse.de>
10117 * common.opt (fchecking): New flag controlling flag_checking.
10118 * passes.c (verify_curr_properties): Drop DEBUG_FUNCTION.
10119 * timevar.c (timer::print): Adjust output.
10120 * doc/invoke.texi (fchecking): Document.
10122 2015-10-28 Richard Biener <rguenther@suse.de>
10124 PR middle-end/68067
10125 * fold-const.c (negate_expr_p): We cannot negate plus or minus
10126 if overflow is not wrapping. Likewise multiplication unless
10127 one operand is constant and not power of two.
10128 (fold_negate_expr): Adjust accordingly.
10130 2015-10-27 Nathan Sidwell <nathan@codesourcery.com>
10132 * omp-low.c (struct omp_context): Remove gwv_below, gwv_this
10134 (is_oacc_parallel, is_oacc_kernels): New.
10135 (enclosing_target_ctx): May return NULL.
10136 (ctx_in_oacc_kernels_region): New.
10137 (check_oacc_kernel_gwv): New.
10138 (oacc_loop_or_target_p): Delete.
10139 (scan_omp_for): Don't calculate gwv mask. Check parallel clause
10140 operands. Strip reductions fro kernels.
10141 (scan_omp_target): Don't calculate gwv mask.
10142 (lower_oacc_head_mark, lower_oacc_loop_marker,
10143 lower_oacc_head_tail): New.
10144 (struct oacc_collapse): New.
10145 (expand_oacc_collapse_init, expand_oacc_collapse_vars): New.
10146 (expand_omp_for_static_nochunk, expand_omp_for_static_chunk):
10147 Remove OpenACC handling.
10148 (expand_oacc_for): New.
10149 (expand_omp_for): Call expand_oacc_for.
10150 (lower_omp_for): Call lower_oacc_head_tail.
10152 2015-10-27 Mikhail Maltsev <maltsevm@gmail.com>
10154 * attribs.c (check_attribute_tables): New function, broken out from...
10155 (init_attributes): Use it.
10156 * cfgcleanup.c (try_optimize_cfg): Use flag_checking, CHECKING_P
10157 gcc_checking_assert and checking_* functions to eliminate
10158 ENABLE_CHECKING conditionals.
10159 * cfgexpand.c (expand_goto, expand_debug_expr): Likewise.
10160 (pass_expand::execute): Likewise.
10161 * cgraphclones.c (symbol_table::materialize_all_clones): Likewise.
10162 * cgraphunit.c (mark_functions_to_output): Likewise.
10163 (cgraph_node::expand_thunk): Likewise.
10164 (symbol_table::compile): Likewise.
10165 * ddg.c (add_cross_iteration_register_deps): Likewise.
10166 (create_ddg_all_sccs): Likewise.
10167 * df-core.c (df_finish_pass, df_analyze): Likewise.
10168 * diagnostic-core.h: Likewise.
10169 * diagnostic.c (diagnostic_report_diagnostic): Likewise.
10170 * dominance.c (calculate_dominance_info): Likewise.
10171 * dwarf2out.c (add_AT_die_ref): Likewise.
10172 (const_ok_for_output_1, mem_loc_descriptor): Likewise.
10173 (loc_list_from_tree, gen_lexical_block_die): Likewise.
10174 gen_type_die_with_usage, gen_type_die): Likewise.
10175 (dwarf2out_decl): Likewise.
10176 * emit-rtl.c (verify_rtx_sharing, reorder_insns_nobb): Likewise.
10177 * except.c (duplicate_eh_regions): Likewise.
10178 * fwprop.c (register_active_defs, update_df_init): Likewise.
10179 (fwprop_init, fwprop_done): Likewise.
10180 (update_uses): Likewise.
10181 * ggc-page.c (ggc_grow): Likewise.
10182 * gimplify.c (gimplify_body): Likewise.
10183 (gimplify_hasher::equal): Likewise.
10184 * graphite-isl-ast-to-gimple.c (graphite_verify): Likewise.
10185 * graphite-scop-detection.c (canonicalize_loop_closed_ssa_form):
10187 * graphite-sese-to-poly.c (rewrite_reductions_out_of_ssa): Likewise.
10188 (rewrite_cross_bb_scalar_deps_out_of_ssa): Likwise.
10189 * hash-table.h (::find_empty_slot_for_expand): Likewise.
10190 * ifcvt.c (if_convert): Likewise.
10191 * ipa-cp.c (ipcp_propagate_stage): Likewise.
10192 * ipa-devirt.c (type_in_anonymous_namespace_p): Likewise.
10193 (odr_type_p, odr_types_equivalent_p): Likewise.
10194 (add_type_duplicate, get_odr_type): Likewise.
10195 * ipa-icf.c (sem_item_optimizer::execute): Likewise.
10196 (sem_item_optimizer::subdivide_classes_by_equality): Likewise.
10197 (sem_item_optimizer::verify_classes): Likewise.
10198 (sem_item_optimizer::traverse_congruence_split): Likewise.
10199 (sem_item_optimizer::checking_verify_classes): New.
10200 * ipa-icf.h (sem_item_optimizer::checking_verify_classes): Add new
10202 * cfgrtl.c (commit_edge_insertions): Likewise.
10203 (fixup_reorder_chain, cfg_layout_finalize): Likewise.
10204 (rtl_flow_call_edges_add): Likewise.
10205 * cgraph.c (symbol_table::create_edge): Likewise.
10206 (cgraph_edge::redirect_call_stmt_to_callee): Likewise.
10207 * cgraph.h (symtab_node): Likewise.
10208 (symtab_node::checking_verify_symtab_nodes): Define.
10209 (cgraph_node::checking_verify_cgraph_nodes): Define.
10210 * cfghooks.h (checking_verify_flow_info): Define.
10211 * cfgloop.h (checking_verify_loop_structure): Define.
10212 * dominance.h (checking_verify_dominators): Define.
10213 * et-forest.c: Fix comment.
10214 * ipa-inline-analysis.c (compute_inline_parameters): Use flag_checking,
10215 CHECKING_P gcc_checking_assert and checking_* functions to eliminate
10216 ENABLE_CHECKING conditionals.
10217 * ipa-inline-transform.c (save_inline_function_body): Likewise.
10218 * ipa-inline.c (inline_small_functions): Likewise.
10219 (early_inliner): Likewise.
10220 * ipa-inline.h (estimate_edge_growth): Likewise.
10221 * ipa-visibility.c (function_and_variable_visibility): Likewise.
10222 * ipa.c (symbol_table::remove_unreachable_nodes): Likewise.
10223 (ipa_single_use): Likewise.
10224 * ira-int.h: Likewise.
10225 * ira.c (ira): Likewise.
10226 * loop-doloop.c (doloop_optimize_loops): Likewise.
10227 * loop-init.c (loop_optimizer_init, fix_loop_structure): Likewise.
10228 * loop-invariant.c (move_loop_invariants): Likewise.
10229 * lra-assigns.c (lra_assign): Likewise.
10230 * lra-constraints.c (lra_constraints): Likewise.
10231 * lra-eliminations.c (lra_eliminate): Likewise.
10232 * lra-int.h (struct lra_reg): Likewise.
10233 * lra-lives.c (check_pseudos_live_through_calls): Likewise.
10234 (lra_create_live_ranges_1): Likewise.
10235 * lra-remat.c (create_remat_bb_data): Likewise.
10236 * lra.c (lra_update_insn_recog_data, restore_scratches): Likewise.
10238 (check_rtl): Always define. Remove incorrect guard around
10239 extract_constrain_insn call.
10240 * lto-cgraph.c (input_cgraph_1: Use flag_checking,
10241 CHECKING_P gcc_checking_assert and checking_* functions to eliminate
10242 ENABLE_CHECKING conditionals.
10243 * lto-streamer-out.c (DFS::DFS): Likewise.
10244 (lto_output): Likewise.
10245 * lto-streamer.c (lto_streamer_init): Likewise.
10246 * omp-low.c (scan_omp_target, expand_omp_taskreg): Likewise.
10247 expand_omp_target, execute_expand_omp): Likewise.
10248 (lower_omp_target): Likewise.
10249 * passes.c (execute_function_todo): Likewise.
10250 (execute_todo, execute_one_pass): Likewise.
10251 (verify_curr_properties): Always define.
10252 * predict.c (tree_estimate_probability: Use flag_checking,
10253 CHECKING_P gcc_checking_assert and checking_* functions to eliminate
10254 ENABLE_CHECKING conditionals.
10255 (propagate_freq): Likewise.
10256 * pretty-print.c (pp_format): Likewise.
10257 * real.c (real_to_decimal_for_mode): Likewise.
10258 * recog.c (split_all_insns): Likewise.
10259 * regcprop.c (kill_value_one_regno): Likewise.
10260 (copy_value): Likewise.
10261 (validate_value_data): Define unconditionally.
10262 * reload.c: Fix comment.
10263 * timevar.c: Include options.h
10264 * tree-ssa.h (checking_verify_ssa): Define.
10265 * tree-ssa-loop-manip.h (checking_verify_loop_closed_ssa): Define.
10266 * sched-deps.c (CHECK): Remove unused macro.
10267 (add_or_update_dep_1, sd_add_dep: Use flag_checking, CHECKING_P
10268 gcc_checking_assert and checking_* functions to eliminate
10269 ENABLE_CHECKING conditionals.
10270 * sel-sched-ir.c (free_regset_pool, tidy_control_flow): Likewise.
10271 * sel-sched.c (struct moveop_static_params): Likewise.
10272 (find_best_reg_for_expr, move_cond_jump): Likewise.
10273 (move_op_orig_expr_not_found): Likewise.
10274 (code_motion_process_successors, move_op): Likewise.
10275 * ssa-iterators.h (first_readonly_imm_use): Likewise.
10276 (next_readonly_imm_use): Likewise.
10277 * store-motion.c (compute_store_table): Likewise.
10278 * symbol-summary.h (function_summary::function_summary): Likewise.
10279 * target.h (cumulative_args_t): Likewise.
10280 (get_cumulative_args, pack_cumulative_args): Likewise.
10281 * timevar.c: (timer::print): Likewise.
10282 * trans-mem.c (ipa_tm_execute): Likewise.
10283 * tree-cfg.c (move_stmt_op): Likewise.
10284 (move_sese_region_to_fn): Likewise.
10285 (gimple_flow_call_edges_add): Likewise.
10286 * tree-cfgcleanup.c (cleanup_tree_cfg_noloop, repair_loop_structures):
10288 * tree-eh.c (remove_unreachable_handlers): Likewise.
10289 * tree-if-conv.c (pass_if_conversion::execute): Likewise.
10290 * tree-inline.c (expand_call_inline, optimize_inline_calls): Likewise.
10291 * tree-into-ssa.c (update_ssa): Likewise.
10292 * tree-loop-distribution.c (pass_loop_distribution::execute): Likewise.
10293 * tree-outof-ssa.c (eliminate_useless_phis, rewrite_trees): Likewise.
10294 * tree-parloops.c (pass_parallelize_loops::execute): Likewise.
10295 * tree-predcom.c (suitable_component_p): Likewise.
10296 * tree-profile.c (gimple_gen_const_delta_profiler): Likewise.
10297 * tree-ssa-alias.c (refs_may_alias_p_1): Likewise.
10298 * tree-ssa-live.c (verify_live_on_entry): Likewise.
10299 * tree-ssa-live.h (register_ssa_partition): Likewise.
10300 * tree-ssa-loop-ivcanon.c (tree_unroll_loops_completely): Likewise.
10301 * tree-ssa-loop-manip.c (add_exit_phi): Likewise.
10302 (tree_transform_and_unroll_loop): Likewise.
10303 * tree-ssa-math-opts.c (pass_cse_reciprocals::execute): Likewise.
10304 * tree-ssa-operands.c (get_expr_operands): Likewise.
10305 * tree-ssa-propagate.c (replace_exp_1): Likewise.
10306 * tree-ssa-structalias.c (rewrite_constraints): Likewise.
10307 * tree-ssa-ter.c (free_temp_expr_table): Likewise.
10308 * tree-ssa-threadupdate.c (duplicate_thread_path): Likewise.
10309 * tree-ssanames.c (release_ssa_name_fn): Likewise.
10310 * tree-stdarg.c (expand_ifn_va_arg): Likewise.
10311 * tree-vect-loop-manip.c
10312 (slpeel_tree_duplicate_loop_to_edge_cfg): Likewise.
10313 (slpeel_checking_verify_cfg_after_peeling): Likewise.
10314 (vect_do_peeling_for_loop_bound): Likewise.
10315 (vect_do_peeling_for_alignment): Likewise.
10316 * tree-vrp.c (supports_overflow_infinity): Likewise.
10317 (set_value_range): Likewise.
10318 * tree.c (free_lang_data_in_cgraph): Likewise.
10319 * value-prof.c (gimple_remove_histogram_value): Likewise.
10320 (free_hist): Likewise.
10321 * var-tracking.c (canonicalize_values_star): Likewise.
10322 (compute_bb_dataflow, vt_find_locations, vt_emit_notes): Likewise.
10324 2015-10-27 Nathan Sidwell <nathan@codesourcery.com>
10326 * internal-fn.def (IFN_GOACC_DIM_SIZE, IFN_GOACC_DIM_POS,
10327 IFN_GOACC_LOOP): New.
10328 * internal-fn.h (enum ifn_unique_kind): Add IFN_UNIQUE_OACC_FORK,
10329 IFN_UNIQUE_OACC_JOIN, IFN_UNIQUE_OACC_HEAD_MARK,
10330 IFN_UNIQUE_OACC_TAIL_MARK.
10331 (enum ifn_goacc_loop_kind): New.
10332 * internal-fn.c (expand_UNIQUE): Add IFN_UNIQUE_OACC_FORK,
10333 IFN_UNIQUE_OACC_JOIN cases.
10334 (expand_GOACC_DIM_SIZE, expand_GOACC_DIM_POS): New.
10335 (expand_GOACC_LOOP): New.
10336 * target-insns.def (oacc_dim_pos, oacc_dim_size): New.
10337 * omp-low.c: Include gimple-pretty-print.h.
10338 (struct oacc_loop): New.
10339 (enum oacc_loop_flags): New.
10340 (oacc_thread_numbers): New.
10341 (oacc_xform_loop): New.
10342 (new_oacc_loop_raw, new_oacc_loop_outer, new_oacc_loop,
10343 new_oacc_loop_routine, finish_oacc_loop, free_oacc_loop): New,
10344 (dump_oacc_loop_part, dump_oacc_loop, debug_oacc_loop): New,
10345 (oacc_loop_discover_walk, oacc_loop_sibling_nrevers,
10346 oacc_loop_discovery): New.
10347 (oacc_loop_xform_head_tail, oacc_loop_xform_loop,
10348 oacc_loop_process): New.
10349 (oacc_loop_fixed_partitions, oacc_loop_partition): New.
10350 (execute_oacc_device_lower): Discover & process loops. Process
10352 * target.def (goacc.fork_join): Change sense of hook, clarify
10354 * doc/tm.texi: Regenerated.
10356 2015-10-27 Nathan Sidwell <nathan@codesourcery.com>
10358 * target-insns.def (oacc_fork, oacc_join): Define.
10359 * target.def (goacc.validate_dims): Adjust doc to avoid warning.
10360 (goacc.fork_join): New GOACC hook.
10361 * targhooks.h (default_goacc_fork_join): Declare.
10362 * omp-low.c (default_goacc_forkjoin): New.
10363 * doc/tm.texi.in (TARGET_GOACC_FORK_JOIN): Add.
10364 * doc/tm.texi: Regenerate.
10366 2015-10-27 Nathan Sidwell <nathan@codesourcery.com>
10368 * omp-low.c (oacc_init_rediction_array): New.
10369 (oacc_initialize_reduction_data): Initialize array.
10371 2015-10-27 Nathan Sidwell <nathan@codesourcery.com>
10373 * omp-low.c (pass_oacc_device_lower::execute): Ignore errors.
10375 2015-10-27 Nathan Sidwell <nathan@codesourcery.com>
10377 * internal-fn.c (expand_UNIQUE): New.
10378 * internal-fn.h (enum ifn_unique_kind): New.
10379 * internal-fn.def (IFN_UNIQUE): New.
10380 * target-insns.def (unique): Define.
10381 * gimple.h (gimple_call_internal_unique_p): New.
10382 * gimple.c (gimple_call_same_target_p): Check internal fn
10384 * tracer.c (ignore_bb_p): Check for IFN_UNIQUE call.
10385 * tree-ssa-threadedge.c
10386 (record_temporary_equivalences_from_stmts): Likewise.
10387 * tree-cfg.c (gmple_call_initialize_ctrl_altering): Likewise.
10389 2015-10-27 Richard Henderson <rth@redhat.com>
10392 * config/i386/i386.c (ix86_cannot_change_mode_class): Disallow
10393 narrowing subregs on SSE and MMX registers.
10394 * doc/tm.texi.in (CANNOT_CHANGE_MODE_CLASS): Clarify when subregs that
10395 appear to be sub-words of multi-register pseudos must be rejected.
10396 * doc/tm.texi: Regenerate.
10398 2015-10-27 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
10401 * config/aarch64/aarch64.md (*movsi_aarch64): Check that
10402 operands[0] is a reg before taking its REGNO in split condition.
10403 (*movdi_aarch64): Likewise.
10405 2015-10-27 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
10407 * config/aarch64/aarch64.c (aarch64_output_simd_mov_immediate):
10408 Handle floating point inner modes properly.
10410 2015-10-27 Alan Hayward <alan.hayward@arm.com>
10412 * tree-vect-looop.c
10413 (vectorizable_live_operation): Change iterator.
10415 2015-10-27 Abderrazek Zaafrani <a.zaafrani@samsung.com>
10416 Aditya Kumar <aditya.k7@samsung.com>
10418 * graphite-optimize-isl.c (get_schedule_for_node_st): New callback
10419 function to schedule based on isl_schedule_node.
10420 (get_schedule_map_st): New schedule optimizer based on
10422 (scop_get_domains): New. Return the isl_union_set containing the
10423 domains of all the pbbs.
10424 (optimize_isl): Call the new function get_schedule_map_st for isl-0.15
10426 2015-10-27 H.J. Lu <hongjiu.lu@intel.com>
10429 * calls.c (prepare_call_address): Don't handle -fno-plt here.
10430 * config/i386/i386.c (ix86_expand_call): Generate indirect call
10431 via GOT for -fno-plt. Support indirect call via GOT for x32.
10432 * config/i386/predicates.md (sibcall_memory_operand): Allow
10433 GOT memory operand.
10435 2015-10-27 Richard Biener <rguenther@suse.de>
10437 PR tree-optimization/68104
10438 * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Move
10439 strided access check ...
10440 (vect_compute_data_refs_alignment): ... here.
10442 2015-10-27 Daniel Jacobowitz <dan@codesourcery.com>
10443 Joseph Myers <joseph@codesourcery.com>
10444 Mark Shinwell <shinwell@codesourcery.com>
10445 Andrew Stubbs <ams@codesourcery.com>
10446 Rich Felker <dalias@libc.org>
10448 * config.gcc: Handle --enable-fdpic.
10449 * config/sh/constraints.md (Ccl): New constraint.
10450 * config/sh/linux.h (SUBTARGET_LINK_EMUL_SUFFIX): Handle -mfdpic.
10451 * config/sh/sh-c.c (sh_cpu_cpp_builtins): Add __FDPIC__ and
10453 * config/sh/sh-mem.cc (expand_block_move): Support FDPIC for calls to
10455 * config/sh/sh-protos.h (function_symbol_result): New struct.
10456 (function_symbol): Return function_symbol_result.
10457 (sh_get_fdpic_reg_initial_val, sh_load_function_descriptor): New
10459 * config/sh/sh.c (TARGET_ASM_INTEGER, sh_assemble_integer): Implement
10461 (TARGET_CANNOT_FORCE_CONST_MEM, sh_cannot_force_const_mem_p): Likewise.
10462 (sh_option_override): Force -fPIC if FDPIC is in effect.
10463 (sh_asm_output_addr_const_extra): Add UNSPEC_GOTFUNCDESC and
10464 UNSPEC_GOTOFFFUNCDESC cases.
10465 (prepare_move_operands): Use FDPIC initial GOT register for
10466 TLS-related GOT access; inhibit cross-section address offset constants
10468 (sh_assemble_integer): New function.
10469 (sh_cannot_copy_insn_p): Inhibit copying insns that are FDPIC
10470 PC-relative call sites.
10471 (expand_ashiftrt): Adapt invocation of function_symbol.
10472 (sh_expand_prologue): Inhibit PC-relative GOT address load for FDPIC.
10473 (nonpic_symbol_mentioned_p): Add cases for UNSPEC_GOTFUNCDESC and
10474 UNSPEC_GOTOFFFUNCDESC.
10475 (legitimize_pic_address): Resolve function symbols to function
10476 descriptors for FDPIC. Do not use GOT-relative addressing for local
10477 data that may be read-only on FDPIC.
10478 (sh_emit_storesi, sh_emit_storehi): New functions.
10479 (sh_trampoline_init): Generate FDPIC trampolines.
10480 (sh_function_ok_for_sibcall): Add TARGET_FDPIC check.
10481 (sh_expand_sym_label2reg): Don't assume sibcalls are local.
10482 (sh_output_mi_thunk): Generate FDPIC call.
10483 (function_symbol): Return function_symbol_result. For SFUNC_STATIC on
10484 FDPIC, generate call site labels to use PC-relative addressing rather
10485 than GOT-relative addressing.
10486 (sh_conditional_register_usage): Make PIC register fixed and call used
10487 when FDPIC is in effect.
10488 (sh_legitimate_constant_p): Impose FDPIC constant constraints.
10489 (sh_cannot_force_const_mem_p, sh_load_function_descriptor,
10490 sh_get_fdpic_reg_initial_val): New functions.
10491 * config/sh/sh.h (SUBTARGET_ASM_SPEC, SUBTARGET_LINK_EMUL_SUFFIX):
10493 (FDPIC_SELF_SPECS, SUBTARGET_DRIVER_SELF_SPECS,
10494 PIC_OFFSET_TABLE_REG_CALL_CLOBBERED,
10495 SH_OFFSETS_MUST_BE_WITHIN_SECTIONS_P): New macros.
10496 (DRIVER_SELF_SPECS): Add SUBTARGET_DRIVER_SELF_SPECS and
10498 (TRAMPOLINE_SIZE): Select trampoline size for FDPIC.
10499 (ASM_PREFERRED_EH_DATA_FORMAT): Add EH format constraints for FDPIC.
10500 (ASM_MAYBE_OUTPUT_ENCODED_ADDR_RTX): Handle FDPIC case.
10501 * config/sh/sh.md (UNSPEC_GOTFUNCDESC, UNSPEC_GOTOFFFUNCDESC): New
10503 (calli_fdpic, call_valuei_fdpic, sibcalli_fdpic, sibcalli_pcrel_fdpic,
10504 sibcall_pcrel_fdpic, sibcall_valuei_fdpic, sibcall_valuei_pcrel_fdpic,
10505 sibcall_value_pcrel_fdpic, sym2GOTFUNCDESC, symGOTFUNCDESC2reg,
10506 sym2GOTOFFFUNCDESC, symGOTOFFFUNCDESC2reg): New patterns.
10507 (udivsi3_i1, udivsi3_i4, udivsi3_i4_single, udivsi3,
10508 *divsi_inv_call_combine, divsi3_i4, divsi3_i4_single, divsi3, ashlsi3,
10509 ashlsi3_d_call, ashrsi3_n, lshrsi3, lshrsi3_d_call, calli, call_valuei,
10510 call, call_value, sibcalli, sibcalli_pcrel, sibcall_pcrel, sibcall,
10511 sibcall_valuei, sibcall_valuei_pcrel, sibcall_value_pcrel,
10512 sibcall_value, GOTaddr2picreg, symGOT_load, symGOTOFF2reg,
10513 block_move_real, block_lump_real, block_move_real_i4,
10514 block_lump_real_i4): Add support for FDPIC calls.
10515 (mulsi3, ic_invalidate_line, initialize_trampoline, call_pop,
10516 call_value_pop): Adjust for new function_symbol signature.
10517 * config/sh/sh.opt (-mfdpic): New option.
10518 * doc/install.texi (Options specification): Document --enable-fdpic.
10519 * doc/invoke.texi (SH Options): Document -mfdpic.
10522 2015-10-27 Alan Lawrence <alan.lawrence@arm.com>
10524 PR tree-optimization/65963
10525 * tree-scalar-evolution.c (interpret_rhs_expr): Handle some
10526 LSHIFT_EXPRs as equivalent MULT_EXPRs.
10528 2015-10-27 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
10531 * config/arm/arm.c (vfp3_const_double_for_bits): Rewrite.
10532 * config/arm/constraints.md (Dp): Update callsite.
10533 * config/arm/predicates.md (const_double_vcvt_power_of_two): Likewise.
10535 2015-10-27 Richard Sandiford <richard.sandiford@arm.com>
10537 * builtins.c (fold_builtin_load_exponent): Rename to...
10538 (fold_const_builtin_load_exponent): ...this and only handle
10539 constant arguments.
10540 (fold_builtin_2): Update accordingly.
10541 * match.pd: Add rules previously handled by fold_builtin_load_exponent.
10543 2015-10-27 Richard Sandiford <richard.sandiford@arm.com>
10545 * builtins.c (fold_builtin_logb): Rename to...
10546 (fold_const_builtin_logb): ...this and remove STRIP_NOPS call.
10547 (fold_builtin_significand): Rename to...
10548 (fold_const_builtin_significand): ...this and remove STRIP_NOPS call.
10549 (fold_builtin_1): Update accordingly.
10551 2015-10-27 Richard Sandiford <richard.sandiford@arm.com>
10553 * builtins.c (fold_builtin_fmin_fmax): Delete.
10554 (fold_builtin_2): Handle constant fmin and fmax arguments here.
10555 * match.pd: Add rules previously handled by fold_builtin_fmin_fmax.
10557 2015-10-27 Evandro Menezes <e.menezes@samsung.com>
10559 * config/aarch64/aarch64-protos.h (cpu_addrcost_table): Split member
10560 for register extension into sign and zero register extension.
10561 * config/aarch64/aarch64.c (generic_addrcost_table): Infer values
10562 for sign and zero register extension.
10563 (cortexa57_addrcost_table): Likewise.
10564 (xgene1_addrcost_table): Likewise.
10566 2015-10-27 Richard Sandiford <richard.sandiford@arm.com>
10568 * fold-const.c (fold_minmax): Delete.
10569 (fold_binary_loc): Don't call it.
10570 * match.pd: Add rules previously handled by fold_minmax.
10572 2015-10-27 Richard Sandiford <richard.sandiford@arm.com>
10574 * builtins.c (fold_builtin_fma): Remove constant handling.
10575 (fold_builtin_3): Handle constant fma arguments here.
10577 2015-10-27 Richard Sandiford <richard.sandiford@arm.com>
10579 * builtins.c (fold_builtin_fabs): Remove constant handling.
10580 (fold_builtin_abs): Likewise.
10582 2015-10-27 Richard Sandiford <richard.sandiford@arm.com>
10584 * builtins.c (fold_builtin_copysign): Delete.
10585 (fold_builtin_2): Handle constant copysign arguments here.
10586 * match.pd: Add rules previously handled by fold_builtin_copysign.
10588 2015-10-27 Richard Sandiford <richard.sandiford@arm.com>
10590 * builtins.c (fold_builtin_signbit): Delete.
10591 (fold_builtin_2): Handle constant signbit arguments here.
10592 * match.pd: Add rules previously handled by fold_builtin_signbit.
10594 2015-10-27 Richard Sandiford <richard.sandiford@arm.com>
10596 * match.pd: Handle sqrt(x) cmp 0 specially.
10598 2015-10-27 Ilya Enkovich <enkovich.gnu@gmail.com>
10600 * tree-vect-generic.c (expand_vector_operations_1): Check
10601 optab type before using it.
10603 2015-10-27 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
10605 * config/aarch64/aarch64-protos.h
10606 (struct tune_params): Add autoprefetcher_model field.
10607 * config/aarch64/aarch64.c: Include params.h
10608 (generic_tunings): Specify autoprefetcher_model value.
10609 (cortexa53_tunings): Likewise.
10610 (cortexa57_tunings): Likewise.
10611 (cortexa72_tunings): Likewise.
10612 (thunderx_tunings): Likewise.
10613 (xgene1_tunings): Likewise.
10614 (aarch64_first_cycle_multipass_dfa_lookahead_guard): New function.
10615 (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD): Define.
10616 (aarch64_override_options_internal): Set
10617 PARAM_SCHED_AUTOPREF_QUEUE_DEPTH param.
10619 2015-10-27 Richard Sandiford <richard.sandiford@arm.com>
10621 * builtins.c (fold_builtin_exponent): Delete.
10622 (fold_builtin_2): Handle constant expN arguments here.
10623 * match.pd: Fold expN(logN(x)) -> x.
10625 2015-10-27 Richard Sandiford <richard.sandiford@arm.com>
10627 * builtins.c (fold_builtin_powi): Delete.
10628 (fold_builtin_2): Handle constant powi arguments here.
10629 * match.pd: Add rules previously handled by fold_builtin_powi.
10631 2015-10-27 Richard Sandiford <richard.sandiford@arm.com>
10633 * builtins.c (fold_builtin_pow): Delete in favor of...
10634 (fold_const_builtin_pow): ...this new function. Only handle constant
10636 (fold_builtin_2): Update accordingly.
10637 * match.pd: Add rules previously handled by fold_builtin_pow.
10639 2015-10-27 Richard Sandiford <richard.sandiford@arm.com>
10641 * builtins.c (fold_builtin_hypot): Delete.
10642 (fold_builtin_2): Handle constant hypot arguments here.
10643 * match.pd: Fold hypot(x, 0) and hypot(0, x) to x. Canonicalize
10644 hypot(x, x) to fabs(x)*sqrt(2).
10646 2015-10-27 Richard Sandiford <richard.sandiford@arm.com>
10648 * gimple-match-head.c (maybe_push_res_to_seq): Use create_tmp_reg
10649 instead of make_ssa_name if not yet in SSA form.
10651 2015-10-27 Richard Biener <rguenther@suse.de>
10653 * cfg.c (free_edge): Add function argument and use it instead of cfun.
10654 (clear_edges): Likewise.
10655 * cfg.h (clear_edges): Adjust prototype.
10656 * cfgexpand.c (pass_expand::execute): Adjust.
10657 * cfgloop.c (release_recorded_exits): Add function argument and use
10658 it instead of cfun.
10659 * cfgloop.h (release_recorded_exits): Adjust prototype.
10660 (loops_state_satisfies_p): Add overload with function argument.
10661 (loops_state_set): Likewise.
10662 (loops_state_clear): Likewise.
10663 (struct loop_iterator): Add function argument to constructor
10664 and iterator and use it instead of cfun.
10665 (FOR_EACH_LOOP_FN): New macro.
10666 (loop_optimizer_finalize): Add overload with function argument.
10667 * loop-init.c (loop_optimizer_init): Adjust.
10668 (fix_loop_structure): Likewise.
10669 (loop_optimizer_finaliz): Add function argument and use it
10671 * tree-cfg.c (delete_tree_cfg_annotations): Likewise.
10672 * tree-cfg.h (delete_tree_cfg_annotations): Adjust prototype.
10673 * cgraph.c (release_function_body): Do not push/pop cfun.
10674 * final.c (rest_of_clean_state): Adjust.
10675 * graphite.c (graphite_finalize): Likewise.
10676 * tree-ssa-copy.c (fini_copy_prop): Likewise.
10677 * tree-ssa-dce.c (perform_tree_ssa_dce): Likewise.
10678 * tree-ssa-loop-ivcanon.c (canonicalize_induction_variables): Likewise.
10679 (tree_unroll_loops_completely): Likewise.
10680 (pass_complete_unrolli::execute): Likewise.
10681 * tree-ssa-loop-niter.c (free_numbers_of_iterations_estimates):
10682 Add function argument and use it instead of cfun.
10683 * tree-ssa-loop-niter.h (free_numbers_of_iterations_estimates):
10685 * tree-ssa-loop.c (tree_ssa_loop_done): Adjust.
10686 * tree-ssa.c (delete_tree_ssa): Add function argument and use it
10688 * tree-ssa.h (delete_tree_ssa): Adjust prototype.
10689 * tree-ssanames.c (fini_ssanames): Add function argument and use it
10691 * tree-ssanames.c (fini_ssanames): Adjust prototype.
10692 * tree-vrp.c (execute_vrp): Adjust.
10693 * value-prof.c (free_histograms): Add function argument and use it
10695 * value-prof.h (free_histograms): Adjust prototype.
10697 2015-10-27 Thomas Schwinge <thomas@codesourcery.com>
10699 * tree.h (OACC_PARALLEL_BODY, OACC_PARALLEL_CLAUSES)
10700 (OACC_KERNELS_BODY, OACC_KERNELS_CLAUSES, OACC_KERNELS_COMBINED)
10701 (OACC_PARALLEL_COMBINED): Don't define macros. Adjust all users.
10703 2015-10-27 Tom de Vries <tom@codesourcery.com>
10705 * tree-ssa-structalias.c (push_fields_onto_fieldstack): Add and use var
10708 2015-10-27 Bin Cheng <bin.cheng@arm.com>
10710 * loop-invariant.c (struct def): New field can_prop_to_addr_uses.
10711 (inv_can_prop_to_addr_use): New function.
10712 (record_use): Call can_prop_to_addr_uses, set the new field.
10713 (get_inv_cost): Count cost if inv can't be propagated into its
10716 2015-10-26 Doug Evans <dje@google.com>
10718 * config/linux.h (INCLUDE_DEFAULTS): Add INCLUDE_DEFAULTS_MUSL_LOCAL.
10720 2015-10-26 Eric Botcazou <ebotcazou@adacore.com>
10722 * match.pd (fold_widened_comparison): Apply simplifications to all
10725 2015-10-26 Simon Dardis <simon.dardis@imgtec.com>
10727 * target.def (TARGET_NO_SPECULATION_IN_DELAY_SLOTS_P): New hook.
10728 * doc/tm.texi.in (TARGET_NO_SPECULATION_IN_DELAY_SLOTS_P): Document.
10729 * doc/tm.texi: Regenerated.
10730 * reorg.c (dbr_schedule): Use new hook.
10731 * config/mips/mips.c (mips_no_speculation_in_delay_slots_p): New.
10733 2015-10-26 Jeff Law <law@redhat.com>
10735 PR tree-optimization/68013
10736 * tree-ssa-threadbackward.c (fsm_find_control_statement_thread_paths):
10737 Make sure the first block in the path is in VISITED_BBs.
10739 2015-10-26 Richard Biener <rguenther@suse.de>
10740 Dominik Vogt <vogt@linux.vnet.ibm.com>
10742 PR middle-end/67443
10743 * alias.c (ao_ref_from_mem): Remove promoted subreg handling.
10744 Properly prune ref->ref for accesses outside of ref.
10746 2015-10-26 Richard Sandiford <richard.sandiford@arm.com>
10748 * gimple-fold.c (replace_stmt_with_simplification): Don't allow
10749 new statements to be inserted if inplace. Allow calls to have
10750 nonempty sequences.
10752 2015-10-26 Richard Biener <rguenther@suse.de>
10754 * tree-object-size.c: Remove builtins.h include, include tree-cfg.h.
10755 (do_valueize): New function.
10756 (pass_object_sizes::execute): Use gimple_fold_stmt_to_constant and
10758 * tree-ssa-threadedge.c: Remove builtins.h include, include
10760 (fold_assignment_stmt): Remove.
10761 (threadedge_valueize): New function.
10762 (record_temporary_equivalences_from_stmts): Use
10763 gimple_fold_stmt_to_constant_1, note additional cleanup
10766 2015-10-26 Richard Biener <rguenther@suse.de>
10768 * match.pd ((A & ~B) - (A & B) -> (A ^ B) - B): Add missing :c.
10769 ( (X & ~Y) | (~X & Y) -> X ^ Y): Remove redundant :c.
10771 2015-10-26 Alan Hayward <alan.hayward@arm.com>
10773 * tree-vect-loop.c (vect_create_epilog_for_reduction): Fix
10774 VEC_COND_EXPR types.
10776 2015-10-26 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
10778 * auto-inc-dec.c (insert_move_insn_before): Delete.
10779 (attempt_change): Remember to cost the simple move in the
10780 FORM_PRE_ADD and FORM_POST_ADD cases.
10782 2015-10-26 Kaz Kojima <kkojima@gcc.gnu.org>
10785 * config/sh/sh.c (sh_vector_mode_supported_p): Use
10786 TARGET_SHMEDIA_FPU instead of TARGET_FPU_ANY.
10788 2015-10-26 Tom de Vries <tom@codesourcery.com>
10790 * tree-ssa-structalias.c (make_restrict_var_constraints): New function,
10791 factored out of ...
10792 (intra_create_variable_infos): ... here.
10794 2015-10-26 Tom de Vries <tom@codesourcery.com>
10796 * tree-ssa-structalias.c (intra_create_variable_infos): Add
10797 restrict_pointer_p and recursive_restrict_p variables.
10799 2015-10-26 Tom de Vries <tom@codesourcery.com>
10801 * tree-ssa-structalias.c (intra_create_variable_infos): Inline
10802 get_vi_for_tree call.
10804 2015-10-26 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
10806 PR middle-end/67989
10807 * optabs.c (expand_atomic_compare_and_swap): Handle case when
10808 ptarget_oval or ptarget_bool are const0_rtx.
10810 2015-10-26 Christian Bruel <christian.bruel@st.com>
10812 * function.h (MINIMUM_METHOD_BOUNDARY): New macro.
10813 * cp/decl.c (grokfndecl): Set DECL_ALIGN with MINIMUM_METHOD_BOUNDARY.
10814 * cp/method.c (implicitly_declare_fn): Likewise.
10815 * cp/lambda.c (maybe_add_lambda_conv_op): Likewise. Remove VBIT setting.
10816 * java/class.c (add_method_1): Likewise.
10818 2015-10-26 Richard Biener <rguenther@suse.de>
10820 * alloc-pool.h (base_pool_allocator): Use placement new.
10821 (base_pool_allocator::remove): Likewise. Compute size outside of
10824 2015-10-26 Richard Sandiford <richard.sandiford@arm.com>
10826 * builtins.c (do_real_to_int_conversion): New function.
10827 (fold_fixed_mathfn, fold_builtin_int_roundingfn): Delete.
10828 (fold_builtin_1): Handle constant {i,l,ll}{ceil,floor,round}{f,,l}
10830 * match.pd: Add rules previously handled by fold_fixed_mathfn
10831 and fold_builtin_int_roundingfn.
10833 2015-10-26 Richard Sandiford <richard.sandiford@arm.com>
10835 * match.pd: Use macros to define built-in operator lists.
10837 2015-10-20 Richard Sandiford <richard.sandiford@arm.com>
10838 Richard Biener <rguenther@suse.de>
10840 * genmatch.c (dt_simplify::gen): Skip captures that are
10841 part of the result.
10842 (parser::parse_expr): Allow captures in results too.
10843 * builtins.c (fold_builtin_cexp): Delete.
10844 (fold_builtin_1): Handle constant cexp arguments here.
10845 * match.pd: Fold cexp(x+yi) to exp(x) * cexpi(y).
10847 2015-10-26 Mikhail Maltsev <maltsevm@gmail.com>
10849 * alloc-pool.h (base_pool_allocator::initialize, ::allocate): Remove
10850 conditional compilation.
10851 (base_pool_allocator::remove): Use flag_checking.
10853 2015-10-25 John David Anglin <danglin@gcc.gnu.org>
10855 * config/pa/som.h (EH_FRAME_THROUGH_COLLECT2): Define.
10857 PR middle-end/68079
10858 * dojump.c (do_compare_and_jump): Canonicalize both function and
10861 2015-10-25 Uros Bizjak <ubizjak@gmail.com>
10864 * config/i386/i386.c (ix86_md_asm_adjust) [case 'a']: Use NE code
10867 2015-10-23 Jan Hubicka <hubicka@ucw.cz>
10870 * ipa-polymorphic-call.c
10871 (ipa_polymorphic_call_context::get_dynamic_type): Do not confuse
10872 instance offset with offset of outer type.
10874 2015-10-23 Jan Hubicka <hubicka@ucw.cz>
10876 * fold-const.c (operand_equal_p): Handle VIEW_CONVERT_EXPR.
10878 2015-10-23 Caroline Tice <cmtice@google.com>
10880 (from Richard Biener
10881 * tree.c (int_cst_hasher::hash): Replace XOR with more efficient
10882 call to iterative_hash_host_wide_int.
10884 2015-10-23 David Edelsohn <dje.gcc@gmail.com>
10886 * config.gcc (powerpc-ibm-aix[6789]) [default_use_cxa_atexit]:
10889 2015-10-23 Ilya Enkovich <enkovich.gnu@gmail.com>
10891 * tree-vect-generic.c (expand_vector_operations_1): Check
10892 optab exists before use it.
10894 2015-10-23 Ilya Enkovich <enkovich.gnu@gmail.com>
10896 * tree-vect-generic.c (expand_vector_condition): Avoid
10897 uninitialized variable warning.
10899 2015-10-23 Jeff Law <law@redhat.com>
10901 * passes.c (execute_function_todo): Do not call flush_ssaname_freelist
10903 (execute_todo): Call it here.
10904 * tree-ssanames.c (make_ssa_name_fn): Unconditionally gather reuse
10906 (pass_release_ssa_names::execute): Do not call flusH_ssaname_freelist.
10908 2015-10-23 Gregor Richards <gregor.richards@uwaterloo.ca>
10909 Szabolcs Nagy <szabolcs.nagy@arm.com>
10911 * config.gcc (enable_secureplt): Add *-linux*-musl*.
10913 2015-10-23 Jeff Law <law@redhat.com>
10915 PR tree-optimization/67830
10916 * match.pd ((bit_and (plus/minus (convert @0) (convert @1)) mask)):
10917 Explicitly verify the mask has no bits outside the type of
10918 the innermost operands.
10920 2015-10-23 Gregor Richards <gregor.richards@uwaterloo.ca>
10921 Szabolcs Nagy <szabolcs.nagy@arm.com>
10923 * config/rs6000/linux64.h (MUSL_DYNAMIC_LINKER32): Define.
10924 (MUSL_DYNAMIC_LINKER64): Define.
10925 (GNU_USER_DYNAMIC_LINKER32): Update.
10926 (GNU_USER_DYNAMIC_LINKER64): Update.
10927 (CHOOSE_DYNAMIC_LINKER): Update.
10929 * config/rs6000/sysv4.h (GNU_USER_DYNAMIC_LINKER): Update.
10930 (MUSL_DYNAMIC_LINKER, MUSL_DYNAMIC_LINKER_E,)
10931 (INCLUDE_DEFAULTS_MUSL_GPP, INCLUDE_DEFAULTS_MUSL_LOCAL,)
10932 (INCLUDE_DEFAULTS_MUSL_PREFIX, INCLUDE_DEFAULTS_MUSL_CROSS,)
10933 (INCLUDE_DEFAULTS_MUSL_TOOL, INCLUDE_DEFAULTS_MUSL_NATIVE): Define.
10934 (CHOOSE_DYNAMIC_LINKER): Update.
10935 (INCLUDE_DEFAULTS): Redefine.
10937 * config/rs6000/sysv4le.h (MUSL_DYNAMIC_LINKER_E): Define.
10939 2015-10-23 Jan Hubicka <hubicka@ucw.cz>
10941 * fold-const.c (operand_equal_p): Do not compare TYPE_MODE when
10942 comparing addresses.
10944 2015-10-23 Jan Hubicka <hubicka@ucw.cz>
10946 * fold-const.c (operand_equal_p): Handle matching of vector
10949 2015-10-23 David Edelsohn <dje.gcc@gmail.com>
10951 * doc/install.texi (*-ibm-aix*): Additional information for AIX 7.1.
10953 2015-10-23 Steve Ellcey <sellcey@imgtec.com>
10954 Andrew Pinski <apinski@cavium.com>
10956 PR rtl-optimization/67736
10957 * combine.c (simplify_comparison): Use gen_lowpart_or_truncate instead
10960 2015-10-23 Ilya Enkovich <enkovich.gnu@gmail.com>
10962 PR middle-end/68066
10963 * tree.c (build_truth_vector_type): Support BLK mode
10964 returned for boolean vector.
10966 2015-10-23 Alan Hayward <alan.hayward@arm.com>
10968 PR tree-optimization/65947
10970 (vect_is_simple_reduction_1): Find condition reductions.
10971 (vect_model_reduction_cost): Add condition reduction costs.
10972 (get_initial_def_for_reduction): Add condition reduction initial var.
10973 (vect_create_epilog_for_reduction): Add condition reduction epilog.
10974 (vectorizable_reduction): Condition reduction support.
10975 * tree-vect-stmts.c (vectorizable_condition): Add vect reduction arg
10976 * doc/sourcebuild.texi (Vector-specific attributes): Document
10979 2015-10-23 Richard Biener <rguenther@suse.de>
10981 * Makefile.in (build/genmatch.o): Properly depend on is-a.h, tree.def
10984 2015-10-23 Richard Biener <rguenther@suse.de>
10985 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
10987 * fold-const.c (fold_binary_loc) : Move Fold (A & ~B) - (A & B)
10988 into (A ^ B) - B to match.pd
10989 Move (X & ~Y) | (~X & Y) is X ^ Y to match.pd.
10991 * match.pd (minus (bit_and:cs @0 (bit_not @1)) (bit_and:s @0 @1)):
10993 (minus (bit_and:s @0 INTEGER_CST@2) (bit_and:s @0 INTEGER_CST@1)):
10995 (minus (bit_and:s @0 @1) (bit_and:cs @0 (bit_not @1))):
10997 (bit_ior:c (bit_and:c @0 (bit_not @1)) (bit_and:c (bit_not @0) @1)):
10999 (bit_ior:c (bit_and @0 INTEGER_CST@2) (bit_and (bit_not @0)
11000 INTEGER_CST@1)): New simplifier.
11002 2015-10-23 Richard Sandiford <richard.sandiford@arm.com>
11004 * builtins.c (integer_valued_real_p): Move to fold-const.c.
11005 (fold_trunc_transparent_mathfn, fold_builtin_trunc, fold_builtin_floor)
11006 (fold_builtin_ceil, fold_builtin_round): Delete.
11007 (fold_builtin_1): Handle constant trunc, floor, ceil and round
11009 * convert.c (convert_to_real): Remove narrowing of rounding
11011 * fold-const.h (integer_valued_real_unary_p)
11012 (integer_valued_real_binary_p, integer_valued_real_call_p)
11013 (integer_valued_real_single_p, integer_valued_real_p): Declare.
11014 * fold-const.c (tree_single_nonnegative_warnv_p): Move
11015 name_registered_for_update_p check to SSA_NAME case statement.
11016 Don't call tree_simple_nonnegative_warnv_p for SSA names.
11017 (integer_valued_real_unary_p, integer_valued_real_binary_p)
11018 (integer_valued_real_call_p, integer_valued_real_single_p)
11019 (integer_valued_real_invalid_p): New functions.
11020 (integer_valued_real_p): Move from fold-const.c and rework
11021 to call the functions above. Handle SSA names.
11022 * gimple-fold.h (gimple_stmt_integer_valued_real_p): Declare.
11023 * gimple-fold.c (gimple_assign_integer_valued_real_p)
11024 (gimple_call_integer_valued_real_p, gimple_phi_integer_valued_real_p)
11025 (gimple_stmt_integer_valued_real_p): New functions.
11026 * match.pd: Fold f(f(x))->f(x) for fp->fp rounding functions f.
11027 Fold f(x)->x for the same f if x is known to be integer-valued.
11028 Fold f(extend(x))->extend(f'(x)) if doing so doesn't affect
11029 the result. Canonicalize floor(x) as trunc(x) if x is
11032 2015-10-23 Tom de Vries <tom@codesourcery.com>
11034 * tree-ssa-structalias.c (intra_create_variable_infos): Use
11035 make_constraint_from.
11037 2015-10-23 Tom de Vries <tom@codesourcery.com>
11039 * tree-ssa-structalias.c (create_variable_info_for_1): Add missing
11040 setting of is_full_var in case of a single field.
11042 2015-10-22 Martin Sebor <msebor@redhat.com>
11045 * config/i386/i386.opt: Add missing periods to the ends of sentences.
11046 * config/msp430/msp430.opt: Same.
11048 2015-10-21 David Wohlferd <dw@LimeGreenSocks.com>
11050 * doc/extend.exp (Global Register Variables): Rewrite.
11052 2015-10-22 Jeff Law <law@redhat.com>
11054 * genattrtab.c (main): If we do not have any annul-true or annul-false
11055 slots, then write out a dummy eligible_for_annul_true or
11056 eligible_for_annul_false as needed.
11058 2015-10-22 Nick Clifton <nickc@redhat.com>
11060 * config/msp430/msp430.opt: Add -msilicon-errata and
11061 -msilicon-errata-warn.
11062 * config/msp430/msp430.h (ASM_SPEC): Pass new options on to
11064 * doc/invoke.texi: Document new options.
11066 2015-10-22 Richard Biener <rguenther@suse.de>
11068 PR tree-optimization/58497
11069 * tree-vect-generic.c (ssa_uniform_vector_p): New helper.
11070 (expand_vector_operations_1): Use it. Lower operations on
11071 all uniform vectors to scalar operations if the HW supports it.
11073 2015-10-22 Richard Biener <rguenther@suse.de>
11075 PR tree-optimization/19049
11076 PR tree-optimization/65962
11077 * tree-vect-data-refs.c (vect_analyze_group_access_1): Fall back
11078 to strided accesses if single-element interleaving doesn't work.
11080 2015-10-22 Richard Biener <rguenther@suse.de>
11082 PR middle-end/68046
11083 PR middle-end/61893
11084 * optabs.c (emit_libcall_block_1): Allow a NULL_RTX equiv.
11085 (expand_binop): For -ftrapv optabs do not record an REG_EQUAL note.
11086 (expand_unop): Likewise.
11088 2015-10-22 Richard Biener <rguenther@suse.de>
11090 * fold-const.c (fold_addr_of_array_ref_difference): Properly
11091 convert operands before folding a MINUS_EXPR.
11092 (fold_binary_loc): Move simplification of MINUS_EXPR on
11093 converted POINTER_PLUS_EXPRs ...
11094 * match.pd: ... here.
11096 2015-10-22 Richard Sandiford <richard.sandiford@arm.com>
11098 * builtins.c (fold_builtin_tan): Delete.
11099 (fold_builtin_1): Handle constant tan arguments here.
11100 * match.pd: Simplify (tan (atan x)) to x.
11102 2015-10-22 Richard Sandiford <richard.sandiford@arm.com>
11104 * builtins.c (fold_builtin_cproj): Delete.
11105 (fold_builtin_1): Handle constant arguments here.
11106 (build_complex_cproj): Move and rename to...
11107 * tree.c: (build_complex_inf): ...this.
11108 * tree.h (build_complex_inf): Declare.
11109 * match.pd: Fold cproj(x)->x if x has no infinity.
11110 Use build_complex_inf for existing cproj rules.
11112 2015-10-22 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
11115 * config/s390/s390.md (mov<mode>cc): Emit compare only if we don't
11116 already have a comparison result.
11118 2015-10-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
11121 * config/aarch64/aarch64.c (aarch64_nopcrelative_literal_loads): New.
11122 (aarch64_expand_mov_immediate): Use aarch64_nopcrelative_literal_loads.
11123 (aarch64_classify_address): Likewise.
11124 (aarch64_secondary_reload): Likewise.
11125 (aarch64_override_options_after_change_1): Adjust.
11126 * config/aarch64/aarch64.md (aarch64_reload_movcp<GPF_TF:mode><P:mode>):
11127 Use aarch64_nopcrelative_literal_loads.
11128 (aarch64_reload_movcp<VALL:mode><P:mode>): Likewise.
11129 * config/aarch64/aarch64-protos.h (aarch64_nopcrelative_literal_loads):
11132 2015-10-21 Martin Sebor <msebor@redhat.com>
11135 * opts.c (undocumented_msg, use_diagnosed_msg): New globals.
11136 (print_filtered_help): Reference aliased option's name and encourage
11137 readers to use it in preference to the alias if the former is not
11138 documented. Mention when using an option is diagnosed.
11139 * gcc.c (display_help): End each sentence with a period.
11141 * common.opt: End each sentence that describes an option with
11143 * config/aarch64/aarch64.opt: Same.
11144 * config/alpha/alpha.opt: Same.
11145 * config/arc/arc.opt: Same.
11146 * config/arm/arm.opt: Same.
11147 * config/avr/avr.opt: Same.
11148 * config/bfin/bfin.opt: Same.
11149 * config/c6x/c6x.opt: Same.
11150 * config/cr16/cr16.opt: Same.
11151 * config/cris/cris.opt: Same.
11152 * config/cris/linux.opt: Same.
11153 * config/darwin.opt: Same.
11154 * config/epiphany/epiphany.opt: Same.
11155 * config/fr30/fr30.opt: Same.
11156 * config/frv/frv.opt: Same.
11157 * config/ft32/ft32.opt: Same.
11158 * config/g.opt: Same.
11159 * config/h8300/h8300.opt: Same.
11160 * config/i386/cygming.opt: Same.
11161 * config/i386/djgpp.opt: Same.
11162 * config/i386/i386.opt: Same.
11163 * config/i386/interix.opt: Same.
11164 * config/i386/mingw-w64.opt: Same.
11165 * config/i386/mingw.opt: Same.
11166 * config/ia64/ia64.opt: Same.
11167 * config/ia64/ilp32.opt: Same.
11168 * config/iq2000/iq2000.opt: Same.
11169 * config/linux.opt: Same.
11170 * config/lm32/lm32.opt: Same.
11171 * config/lynx.opt: Same.
11172 * config/m32c/m32c.opt: Same.
11173 * config/m32r/m32r.opt: Same.
11174 * config/m68k/ieee.opt: Same.
11175 * config/m68k/m68k.opt: Same.
11176 * config/mcore/mcore.opt: Same.
11177 * config/mep/mep.opt: Same.
11178 * config/microblaze/microblaze.opt: Same.
11179 * config/mips/mips.opt: Same.
11180 * config/mmix/mmix.opt: Same.
11181 * config/mn10300/mn10300.opt: Same.
11182 * config/moxie/moxie.opt: Same.
11183 * config/msp430/msp430.opt: Same.
11184 * config/nios2/elf.opt: Same.
11185 * config/nios2/nios2.opt: Same.
11186 * config/nvptx/nvptx.opt: Same.
11187 * config/pa/pa-hpux.opt: Same.
11188 * config/pa/pa-hpux1010.opt: Same.
11189 * config/pa/pa-hpux1111.opt: Same.
11190 * config/pa/pa-hpux1131.opt: Same.
11191 * config/pa/pa.opt: Same.
11192 * config/pa/pa64-hpux.opt: Same.
11193 * config/pdp11/pdp11.opt: Same.
11194 * config/rl78/rl78.opt: Same.
11195 * config/rs6000/476.opt: Same.
11196 * config/rs6000/aix64.opt: Same.
11197 * config/rs6000/darwin.opt: Same.
11198 * config/rs6000/linux64.opt: Same.
11199 * config/rs6000/rs6000.opt: Same.
11200 * config/rs6000/sysv4.opt: Same.
11201 * config/s390/s390.opt: Same.
11202 * config/s390/tpf.opt: Same.
11203 * config/sh/sh.opt: Same.
11204 * config/sol2.opt: Same.
11205 * config/sparc/long-double-switch.opt: Same.
11206 * config/sparc/sparc.opt: Same.
11207 * config/spu/spu.opt: Same.
11208 * config/stormy16/stormy16.opt: Same.
11209 * config/tilegx/tilegx.opt: Same.
11210 * config/tilepro/tilepro.opt: Same.
11211 * config/v850/v850.opt: Same.
11212 * config/vax/vax.opt: Same.
11213 * config/visium/visium.opt: Same.
11214 * config/vms/vms.opt: Same.
11215 * config/vxworks.opt: Same.
11216 * config/xtensa/xtensa.opt: Same.
11218 2015-10-21 Aditya Kumar <aditya.k7@samsung.com>
11219 Sebastian Pop <s.pop@samsung.com>
11221 * graphite-scop-detection.c (parameter_index_in_region): Update call to
11222 invariant_in_sese_p_rec.
11223 * graphite-sese-to-poly.c (extract_affine): Same.
11224 * sese.c (invariant_in_sese_p_rec): Pass in an extra
11225 parameter has_vdefs.
11226 (scalar_evolution_in_region): Return chrec_dont_know when the scalar
11227 variable depends on virtual definitions in the current region.
11228 * sese.h (invariant_in_sese_p_rec): Update declaration.
11230 2015-10-21 Aditya Kumar <aditya.k7@samsung.com>
11231 Sebastian Pop <s.pop@samsung.com>
11233 * graphite-scop-detection.c (build_scops): Do not handle scops
11234 with more than PARAM_GRAPHITE_MAX_ARRAYS_PER_SCOP arrays.
11235 * params.def (PARAM_GRAPHITE_MAX_ARRAYS_PER_SCOP): New.
11237 2015-10-21 Mikhail Maltsev <maltsevm@gmail.com>
11239 * config.in: Regenerate.
11240 * configure: Regenerate.
11241 * configure.ac (CHECKING_P): Define.
11242 * system.h: Use CHECKING_P.
11244 2015-10-11 Jan Hubicka <hubicka@ucw.cz>
11247 * ipa-polymorphic-call.c (possible_placement_new): If cur_offset
11248 is negative we don't know the type.
11249 (check_stmt_for_type_change): Skip constructors of non-polymorphic
11250 types as those won't help devirutalization.
11252 2015-10-11 Jan Hubicka <hubicka@ucw.cz>
11254 * fold-const.c (operand_equal_p): Add code matching empty constructors.
11256 2015-10-21 Eric Botcazou <ebotcazou@adacore.com>
11258 * tree.def (CEIL_DIV_EXPR, FLOOR_DIV_EXPR, ROUND_DIV_EXPR): Tweak
11260 (TRUNC_MOD_EXPR, CEIL_MOD_EXPR, FLOOR_MOD_EXPR, ROUND_MOD_EXPR):
11261 Add comments on sign of the result.
11262 * fold-const.c (tree_binary_nonnegative_warnv_p) <FLOOR_MOD_EXPR>:
11263 Recurse on operand #1 instead of operand #0.
11264 <CEIL_MOD_EXPR>: Do not recurse.
11265 <ROUND_MOD_EXPR>: Likewise.
11267 2015-10-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
11269 * cfgrtl.c (pass_free_cfg::execute): Adjust.
11270 * final.c (dbr_sequence_length): Always define.
11271 (shorten_branches): Adjust.
11272 * genattr-common.c (main): Always define DELAY_SLOTS.
11273 * genattr.c (main): Unconditionally declare functions and define
11274 macros related to delay slots.
11275 * genattrtab.c (write_eligible_delay): Adjust.
11276 (main): Always write out delay slot functions.
11277 * opts.c (default_options_table): Adjust.
11278 * reorg.c (redirect_with_delay_slots_safe_p): Likewise.
11279 (redirect_with_delay_list_safe_p): Likewise.
11280 (fill_simple_delay_slots): Likewise.
11281 (fill_slots_from_thread): Likewise.
11282 (make_return_insns): Likewise.
11283 (dbr_schedule): Likewise.
11284 (rest_of_handle_delay_slots): Likewise.
11285 (pass_delay_slots::gate): Likewise.
11286 * toplev.c (process_options): Likewise.
11288 2015-10-21 Richard Henderson <rth@redhat.com>
11290 * targhooks.c (default_addr_space_pointer_mode): Remove check
11291 for generic address space.
11292 (default_addr_space_address_mode): Likewise.
11293 (default_addr_space_valid_pointer_mode): Likewise.
11294 (default_addr_space_legitimate_address_p): Likewise.
11295 (default_addr_space_legitimize_address): Likewise.
11296 * target.def (addr_space.pointer_mode): Update documentation
11297 of default behavior.
11298 (addr_space.address_mode): Likewise.
11301 * expr.c (expand_expr_real_2): Use convert_modes on disjoint
11304 2015-10-21 Richard Sandiford <richard.sandiford@arm.com>
11306 * builtins.c (fold_builtin_cabs): Delete.
11307 (fold_builtin_1): Update accordingly. Handle constant arguments here.
11308 * match.pd: Add rules previously handled by fold_builtin_cabs.
11310 2015-10-21 Richard Sandiford <richard.sandiford@arm.com>
11312 * fold-const.h (fold_strip_sign_ops): Delete.
11313 * fold-const.c (fold_strip_sign_ops): Likewise.
11314 (fold_unary_loc, fold_binary_loc): Remove calls to it.
11315 * builtins.c (fold_builtin_cos, fold_builtin_cosh)
11316 (fold_builtin_ccos): Delete.
11317 (fold_builtin_pow): Don't call fold_strip_sign_ops.
11318 (fold_builtin_hypot, fold_builtin_copysign): Likewise.
11319 Remove fndecl argument.
11320 (fold_builtin_1): Update calls accordingly. Handle constant
11321 cos, cosh, ccos and ccosh here.
11323 2015-10-21 Richard Sandiford <richard.sandiford@arm.com>
11325 * doc/invoke.texi (-fdump-tree-backprop, -fssa-backprop): Document.
11326 * Makefile.in (OBJS): Add gimple-ssa-backprop.o.
11327 * common.opt (fssa-backprop): New option.
11328 * fold-const.h (negate_mathfn_p): Declare.
11329 * fold-const.c (negate_mathfn_p): Make public.
11330 * timevar.def (TV_TREE_BACKPROP): New.
11331 * tree-pass.h (make_pass_backprop): Declare.
11332 * passes.def (pass_backprop): Add.
11333 * gimple-ssa-backprop.c: New file.
11335 2015-10-21 Aditya Kumar <aditya.k7@samsung.com>
11336 Sebastian Pop <s.pop@samsung.com>
11338 * graphite-isl-ast-to-gimple.c (graphite_create_new_loop_guard):
11339 Do not call create_empty_if_region_on_edge when cond_expr is true.
11340 (translate_isl_ast_node_for): Check whether a guard has been generated.
11342 2015-10-21 Aditya Kumar <aditya.k7@samsung.com>
11344 * graphite-poly.h (struct dr_info): Added invalid_alias_set number.
11345 (operator=): Removed.
11346 (dr_info): Make alias_set number the last argument with default
11347 value of invalid_alias_set.
11348 * graphite-sese-to-poly.c (build_scop_drs): Update constructor
11350 (rewrite_reductions_out_of_ssa): Iterate only through the
11351 basic blocks which are inside region.
11352 (rewrite_cross_bb_scalar_deps_out_of_ssa): Same.
11353 * sese.h (struct sese_l): Removed assignment operator.
11354 (split_region_for_bb): Removed dead code.
11356 2015-10-21 Aditya Kumar <aditya.k7@samsung.com>
11358 * graphite-poly.h (struct dr_info): Removed conversion constructor.
11359 (struct scop): Renamed scop::region to scop::scop_info
11360 (scop_set_region): Same.
11361 (SCOP_REGION): Removed
11362 (SCOP_CONTEXT): Removed.
11363 (POLY_SCOP_P): Removed.
11364 * graphite-isl-ast-to-gimple.c (translate_isl_ast_node_user):
11365 Rename scop->region to scop->scop_info.
11366 (add_parameters_to_ivs_params): Same.
11367 (graphite_regenerate_ast_isl): Same.
11368 * graphite-poly.c (new_scop): Same.
11370 (print_scop_params): Same.
11371 * graphite-scop-detection.c (scop_detection::remove_subscops): Same.
11372 (scop_detection::remove_intersecting_scops): Use pointer to sese_l.
11373 (dot_all_scops_1): Rename scop->region to scop->scop_info.
11374 (scop_detection::nb_pbbs_in_loops): Same.
11375 (find_scop_parameters): Same.
11376 (try_generate_gimple_bb): Same.
11377 (gather_bbs::before_dom_children): Same.
11378 (gather_bbs::after_dom_children): Same.
11379 (build_scops): Same.
11380 * graphite-sese-to-poly.c (build_scop_scattering): Same.
11381 (extract_affine_chrec): Same.
11382 (extract_affine): Same.
11383 (set_scop_parameter_dim): Same.
11384 (build_loop_iteration_domains): Same.
11385 (create_pw_aff_from_tree): Same.
11386 (add_param_constraints): Same.
11387 (build_scop_iteration_domain): Same.
11388 (build_scop_drs): Same.
11389 (analyze_drs_in_stmts): Same.
11390 (insert_out_of_ssa_copy_on_edge): Same.
11391 (rewrite_close_phi_out_of_ssa):Same.
11392 (rewrite_reductions_out_of_ssa):Same.
11393 (handle_scalar_deps_crossing_scop_limits):Same.
11394 (rewrite_cross_bb_scalar_deps):Same.
11395 (rewrite_cross_bb_scalar_deps_out_of_ssa):Same.
11396 (build_poly_scop):Same.
11397 (build_alias_set): Use pointer to dr_info.
11398 * graphite.c (print_graphite_scop_statistics):
11399 (graphite_transform_loops):
11400 * sese.h (struct sese_l): Remove conversion constructor.
11402 2015-10-11 Jan Hubicka <hubicka@ucw.cz>
11404 PR middle-end/67966
11405 * tree.c (verify_type): Verify that TYPE_MODE match
11406 between TYPE_CANONICAL and type.
11407 * expr.c (store_expr_with_bounds): Revert my previous change.
11408 * expmed.c (store_bit_field_1): Revert prevoius change.
11409 * gimple-expr.c (useless_type_conversion_p): Require TYPE_MODE
11410 to match for all types.
11412 2015-10-21 Nathan Sidwell <nathan@codesourcery.com>
11414 * omp-low.c (check_omp_nesting_restrictions): Check OpenACC loop
11417 2015-10-21 Ilya Enkovich <enkovich.gnu@gmail.com>
11419 * doc/tm.texi: Regenerated.
11420 * doc/tm.texi.in (TARGET_VECTORIZE_GET_MASK_MODE): New.
11421 * stor-layout.c (layout_type): Use mode to get vector mask size.
11422 * target.def (get_mask_mode): New.
11423 * targhooks.c (default_get_mask_mode): New.
11424 * targhooks.h (default_get_mask_mode): New.
11425 * tree-vect-stmts.c (get_same_sized_vectype): Add special case
11426 for boolean vector.
11427 * tree.c (MAX_BOOL_CACHED_PREC): New.
11428 (nonstandard_boolean_type_cache): New.
11429 (build_nonstandard_boolean_type): New.
11430 (make_vector_type): Vector mask has no canonical type.
11431 (build_truth_vector_type): New.
11432 (build_same_sized_truth_vector_type): New.
11433 (truth_type_for): Support vector masks.
11434 * tree.h (VECTOR_BOOLEAN_TYPE_P): New.
11435 (build_truth_vector_type): New.
11436 (build_same_sized_truth_vector_type): New.
11437 (build_nonstandard_boolean_type): New.
11438 * tree-cfg.c (verify_gimple_comparison) Require boolean
11439 vector type for vector comparison.
11440 (verify_gimple_assign_ternary): Likewise.
11441 * optabs.c (expand_vec_cond_expr): Accept boolean vector as
11443 * tree-vect-stmts.c (vectorizable_condition): Use boolean
11444 vector type for vector comparison.
11445 * tree-vect-generic.c (elem_op_func): Add new operand to hold
11447 (do_unop): Adjust to modified function type.
11448 (do_binop): Likewise.
11449 (do_plus_minus): Likewise.
11450 (do_negate); Likewise.
11451 (expand_vector_piecewise): Likewise.
11452 (do_cond): Likewise.
11453 (do_compare): Use comparison instead of condition.
11454 (expand_vector_divmod): Use boolean vector type for comparison.
11455 (expand_vector_operations_1): Skip scalar mask operations.
11457 2015-10-21 Ilya Enkovich <enkovich.gnu@gmail.com>
11459 * omp-low.c (simd_clone_create): Set in_other_partition
11460 for created clones.
11462 2015-10-21 David Wohlferd <dw@LimeGreenSocks.com>
11464 * doc/extend.exp (Local Register Variables): Rewrite.
11466 2015-10-21 Richard Sandiford <richard.sandiford@arm.com>
11468 * match.pd: Add rules to simplify ccos, ccosh, hypot, copysign
11469 and x*x in cases where the operands are sign ops. Extend these
11470 rules to handle copysign as a sign op (including for cos, cosh
11471 and pow, which already treated negate and abs as sign ops).
11473 2015-10-21 Uros Bizjak <ubizjak@gmail.com>
11476 * config/i386/i386.c (ix86_compute_frame_layout): Realign the stack
11477 for 64-bit MS_ABI targets also when default incoming stack boundary
11480 2015-10-21 Richard Biener <rguenther@suse.de>
11482 * tree-ssa-sccvn.c (cond_stmts_equal_p): Compare two GIMPLE
11483 cond stmts, enhanced and split out from ...
11484 (vn_phi_eq): ... here.
11486 2015-10-21 Richard Biener <rguenther@suse.de>
11488 PR middle-end/68031
11489 * fold-const.c: Include tree-ssa-operands.h and tree-into-ssa.h.
11490 (tree_ssa_name_nonnegative_warnv_p): Fold into ...
11491 (tree_single_nonnegative_warnv_p): ... here. For SSA names
11492 make sure they are not registered for update.
11494 2015-10-21 Richard Biener <rguenther@suse.de>
11496 PR tree-optimization/68026
11497 * tree-ssa-ccp.c (get_value_for_expr): Zero-extend mask for
11498 unsigned VARYING values.
11500 2015-10-21 Maxim Ostapenko <m.ostapenko@partner.samsung.com>
11502 * asan.c (asan_emit_stack_protection): Don't pass local stack to
11503 asan_stack_malloc_[n] anymore. Check if asan_stack_malloc_[n] returned
11504 NULL and use local stack than.
11505 (asan_finish_file): Insert __asan_version_mismatch_check_v[n] call
11506 in addition to __asan_init.
11507 * sanitizer.def (BUILT_IN_ASAN_INIT): Rename to __asan_init.
11508 (BUILT_IN_ASAN_VERSION_MISMATCH_CHECK): Add new builtin call.
11509 * asan.h (asan_intercepted_p): Handle new string builtins.
11510 * ubsan.c (ubsan_use_new_style_p): New function.
11511 (ubsan_instrument_float_cast): If location is unknown, assign
11512 input_location to loc. Propagate loc to ubsan_create_data if
11513 ubsan_use_new_style_p returned true.
11515 2015-10-21 Jeff Law <law@redhat.com>
11517 * Makefile.in (OBJS): Remove sched-vis.c
11518 * sched-vis.c: Removed. Code moved into...
11519 * print-rtl.c: Here. Include cfg.h, pretty-print.h and print-rtl.h.
11520 * rtl.h: Remove prototypes for functions now living in print-rtl.c
11521 * print-rtl.h Add prototypes for new functions in print-rtl.c.
11522 * auto-inc-dec.c: Include print-rtl.h
11523 * cfgrtl.c, combine.c, final.c haifa-sched.c: Likewise.
11524 * ira.c, lra-constraints.c, lra.c, sel-sched-dump.c: Likewise.
11526 * varasm.c (handle_vtv_comdat_section): Mark 2nd parameter with
11529 2015-10-21 Richard Biener <rguenther@suse.de>
11530 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
11532 * fold-const.c (fold_binary_loc) : Move (-A) * (-B) -> A * B
11534 * doc/implement-c.texi (Integers Implementation): Make GCC's promises
11535 about signed left shift stronger and clarify the cases when they're
11537 Move (a * (1 << b)) is (a << b) to match.pd.
11538 Move convert (C1/X)*C2 into (C1*C2)/X to match.pd.
11539 Move ~X & X, (X == 0) & X, and !X & X are zero to match.pd.
11540 Move X & ~X , X & (X == 0), and X & !X are zero to match.pd.
11542 * match.pd (mult:c @0 (convert? (lshift integer_onep@1 @2))):
11544 (mult (rdiv:s REAL_CST@0 @1) REAL_CST@2): New simplifier.
11545 (bit_and:c (convert? @0) (convert? (bit_not @0))): New simplifier.
11546 (bit_ior (bit_and:s @0 (bit_not:s @1)) (bit_and:s (bit_not:s @0) @1))
11548 (mult:c (convert1? (negate @0)) (convert2? negate_expr_p@1)):
11550 (match (logical_inverted_value @0) (truth_not @0)) : New Predicate.
11552 2015-10-21 Gregor Richards <gregor.richards@uwaterloo.ca>
11553 Szabolcs Nagy <szabolcs.nagy@arm.com>
11554 Alan Modra <amodra@gmail.com>
11556 * config/rs6000/secureplt.h (LINK_SECURE_PLT_DEFAULT_SPEC): Define.
11557 * config/rs6000/sysv4.h (LINK_SECURE_PLT_SPEC): Define.
11558 (LINK_SPEC): Add %(link_secure_plt).
11559 (SUBTARGET_EXTRA_SPECS): Add "link_secure_plt".
11560 * config/rs6000/linux64.h (LINK_SECURE_PLT_SPEC): Redefine.
11562 2015-10-20 Gregor Richards <gregor.richards@uwaterloo.ca>
11563 Szabolcs Nagy <szabolcs.nagy@arm.com>
11565 * config/sh/linux.h (MUSL_DYNAMIC_LINKER): Define.
11566 (MUSL_DYNAMIC_LINKER_E, MUSL_DYNAMIC_LINKER_FP): Define.
11568 2015-10-20 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
11570 * config/aarch64/aarch64.c (aarch64_mode_valid_for_sched_fusion_p):
11572 (fusion_load_store): Use it.
11573 * config/aarch64/aarch64-ldpstp.md: Add new peephole2s for
11574 ldp and stp in VD modes.
11575 * config/aarch64/aarch64-simd.md (load_pair<mode>, VD): New pattern.
11576 (store_pair<mode>, VD): Likewise.
11578 2015-10-20 Vladimir Makarov <vmakarov@redhat.com>
11580 PR rtl-optimization/67609
11581 * lra-splill.c (lra_final_code_change): Don't remove all
11584 2015-10-20 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
11586 * simplify-rtx.c (simplify_binary_operation): If either operand was
11587 a constant pool reference use them if all other simplifications failed.
11589 2015-10-20 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
11591 * config/aarch64/aarch64.md
11592 (*aarch64_fcvt<su_optab><GPF:mode><GPI:mode>2_mult): New pattern.
11593 * config/aarch64/aarch64-simd.md
11594 (*aarch64_fcvt<su_optab><VDQF:mode><fcvt_target>2_mult): Likewise.
11595 * config/aarch64/aarch64.c (aarch64_rtx_costs): Handle above patterns.
11596 (aarch64_fpconst_pow_of_2): New function.
11597 (aarch64_vec_fpconst_pow_of_2): Likewise.
11598 * config/aarch64/aarch64-protos.h (aarch64_fpconst_pow_of_2): Declare
11600 (aarch64_vec_fpconst_pow_of_2): Likewise.
11601 * config/aarch64/predicates.md (aarch64_fp_pow2): New predicate.
11602 (aarch64_fp_vec_pow2): Likewise.
11604 2015-10-20 Uros Bizjak <ubizjak@gmail.com>
11606 * config/alpha/alpha.h (HARD_REGNO_NREGS): Use CEIL macro.
11607 (ALPHA_ARG_SIZE): Ditto. Remove unused NAMED argument.
11608 * config/alpha/alpha.c (alpha_function_arg_advance): Update
11609 ALPHA_ARG_SIZE usage.
11610 (alpha_arg_partial_bytes): Ditto.
11612 2015-10-20 H.J. Lu <hongjiu.lu@intel.com>
11615 * cgraphbuild.c (pass_build_cgraph_edges::execute): Skip local
11616 error_mark_node decls.
11618 2015-10-20 H.J. Lu <hongjiu.lu@intel.com>
11622 * common/config/i386/i386-common.c (ix86_handle_option): Remove
11623 OPT_miamcu handling.
11624 * config/i386/i386.c (PTA_NO_80387): New macro.
11625 (processor_alias_table): Add PTA_NO_80387 to lakemont.
11626 (ix86_option_override_internal): Update MASK_80387 from
11627 PTA_NO_80387. Don't warn x87/MMX/SSE/AVX for -miamcu. Warn
11628 SSE math only if 80387 is supported. Don't change
11629 MASK_FLOAT_RETURNS.
11630 (ix86_valid_target_attribute_tree): Enable FPMATH_387 only if
11631 80387 is supported.
11632 * config/i386/i386.h (TARGET_FLOAT_RETURNS_IN_80387): True only
11633 if TARGET_80387 is true and TARGET_IAMCU is false.
11634 (TARGET_FLOAT_RETURNS_IN_80387_P): True only if TARGET_80387_P
11635 is true and TARGET_IAMCU_P is false.
11637 2015-10-20 Richard Biener <rguenther@suse.de>
11639 PR tree-optimization/68017
11640 * tree-tailcall.c (eliminate_tail_call): Remove stmts backwards.
11642 2015-10-20 Martin Liska <mliska@suse.cz>
11644 * cgraphclones.c (cgraph_node::create_virtual_clone):
11645 Verify cgraph_node.local.versionable instead of calling
11646 tree_versionable_function_p.
11647 * ipa-cp.c (determine_versionability): Save the information
11648 to ipa_node_params summary.
11649 (ipcp_versionable_function_p): Use it.
11650 (ipcp_propagate_stage): Pass IPA_NODE_REF to a called function.
11651 (ipcp_generate_summary): Do not compute cgraph_node
11653 * ipa-inline-analysis.c (inline_generate_summary): Compute
11654 versionability for all cgraph nodes.
11655 * ipa-prop.c (ipa_node_params_t::duplicate): Duplicate
11656 ipa_node_params::versionability.
11657 * ipa-prop.h (struct ipa_node_params): Declare it.
11659 2015-10-20 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
11662 * varasm.c (assemble_variable): Move special vtv handling to..
11663 (handle_vtv_comdat_sections): .. here. New function.
11664 (output_object_block): Handle vtv sections.
11666 2015-10-20 Szabolcs Nagy <szabolcs.nagy@arm.com>
11669 * varasm.c (default_binds_local_p_2): Turn on extern_protected_data.
11671 2015-10-20 Arkadiusz Drabczyk <arkadiusz@drabczyk.org>
11673 * doc/extend.texi: Update documentation WRT inline functions.
11675 2015-10-20 Alan Modra <amodra@gmail.com>
11678 * config/rs6000/sysv4.h (TARGET_CAN_SPLIT_STACK_64BIT): Don't define.
11679 * config/rs6000/linux64.h (TARGET_CAN_SPLIT_STACK): Define.
11680 (TARGET_CAN_SPLIT_STACK_64BIT): Define.
11682 2015-10-19 Pierre-Marie de Rodat <derodat@adacore.com>
11684 PR rtl-optimization/66790
11685 * df.h (DF_MIR): New macro.
11686 (DF_LAST_PROBLEM_PLUS1): Update to be past DF_MIR
11687 (DF_MIR_INFO_BB): New macro.
11688 (DF_MIR_IN, DF_MIR_OUT): New macros.
11689 (struct df_mir_bb_info): New.
11690 (df_mir): New macro.
11691 (df_mir_add_problem, df_mir_simulate_one_insn): New forward
11693 (df_mir_get_bb_info): New.
11694 * df-problems.c (struct df_mir_problem_data): New.
11695 (df_mir_free_bb_info, df_mir_alloc, df_mir_reset,
11696 df_mir_bb_local_compute, df_mir_local_compute, df_mir_init,
11697 df_mir_confluence_0, df_mir_confluence_n,
11698 df_mir_transfer_function, df_mir_free, df_mir_top_dump,
11699 df_mir_bottom_dump, df_mir_verify_solution_start,
11700 df_mir_verify_solution_end): New.
11701 (problem_MIR): New.
11702 (df_mir_add_problem, df_mir_simulate_one_insn): New.
11703 * timevar.def (TV_DF_MIR): New.
11704 * ree.c: Include bitmap.h
11705 (add_removable_extension): Add an INIT_REGS parameter. Use it
11706 to skip zero-extensions that may get an uninitialized register.
11707 (find_removable_extensions): Compute must-initialized registers
11708 using the MIR dataflow problem. Update the call to
11709 add_removable_extension.
11710 (find_and_remove_re): Call df_mir_add_problem.
11712 2015-10-19 Segher Boessenkool <segher@kernel.crashing.org>
11714 * common/config/mn10300/mn10300-common.c
11715 (mn10300_option_optimization_table) <OPT_freorder_blocks_algorithm_>:
11716 Use REORDER_BLOCKS_ALGORITHM_STC at -Os and up.
11718 2015-10-19 David Wohlferd <dw@LimeGreenSocks.com>
11720 * doc/extend.texi (Explicit Register Variables): Simplify and
11721 avoid unnecessary and confusion abbreviations. Update cross
11723 doc/implement-c.tex: Update cross reference.
11725 2015-10-19 Jeff Law <law@redhat.com>
11727 * tree-ssa-threadupdate.c (valid_jump_thread_path): Reject paths
11728 that create irreducible loops unless the path elimiantes a multiway
11731 2015-10-19 Richard Biener <rguenther@suse.de>
11733 PR tree-optimization/67975
11734 * tree-cfg.h (extract_true_false_controlled_edges): Declare.
11735 * tree-cfg.c (extract_true_false_controlled_edges): Split out
11736 core worker from ...
11737 * tree-ssa-loop-im.c (extract_true_false_args_from_phi): ... here.
11738 * tree-ssa-sccvn.c (vn_phi_compute_hash): Hash number of args
11739 instead of block number for PHIs with two or one args.
11740 (vn_phi_eq): Compare edge predicates of PHIs that are in different
11743 2015-10-19 Richard Biener <rguenther@suse.de>
11745 * gimple-fold.c (gimple_phi_nonnegative_warnv_p): New function.
11746 (gimple_stmt_nonnegative_warnv_p): Use it.
11747 * match.pd (CPROJ): New operator list.
11748 (cproj (complex ...)): Move simplifications from ...
11749 * builtins.c (fold_builtin_cproj): ... here.
11751 2015-10-19 H.J. Lu <hongjiu.lu@intel.com>
11753 * config/i386/i386.c (ix86_expand_vector_move): Use
11754 GET_MODE_BITSIZE for IA MCU psABI to get vector natural
11757 2015-10-19 H.J. Lu <hongjiu.lu@intel.com>
11759 * doc/invoke.texi: Replace @optindex with @opindex.
11761 2015-10-19 H.J. Lu <hongjiu.lu@intel.com>
11764 * config/i386/i386.c (ix86_valid_target_attribute_tree): If
11765 arch= is set, clear all bits in x_ix86_isa_flags, except for
11766 ISA_64BIT, ABI_64, ABI_X32, and CODE16.
11768 2015-10-19 Joost VandeVondele <vondele@gnu.gcc.org>
11770 PR middle-end/68002
11771 * common.opt (fkeep-static-functions): New option.
11772 * doc/invoke.texi: Document it.
11773 * cgraphunit.c (cgraph_node::finalize_function): Use it.
11775 2015-10-19 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
11777 * sched-int.h (struct autopref_multipass_data_): Remove offset
11778 field. Add min_offset, max_offset, multi_mem_insn_p fields.
11779 * haifa-sched.c (analyze_set_insn_for_autopref): New function.
11780 (autopref_multipass_init): Use it. Handle PARALLEL sets.
11781 (autopref_rank_data): New function.
11782 (autopref_rank_for_schedule): Use it.
11783 (autopref_multipass_dfa_lookahead_guard_1): Likewise.
11785 2015-10-18 Mikhail Maltsev <maltsevm@gmail.com>
11788 * gengtype.c (dump_type): Handle TYPE_UNDEFINED correctly.
11790 2015-10-18 Iain Sandoe <iain@codesourcery.com>
11792 * config/darwin.h (TARGET_SYSTEM_ROOT): Remove this from here,
11793 (HAVE_LD_SYSROOT): New. (SYSROOT_SPEC): New.
11794 (LINK_SYSROOT_SPEC): Revise to remove the default for target sysroot.
11795 (STANDARD_STARTFILE_PREFIX_1): New.
11796 (STANDARD_STARTFILE_PREFIX_2): New.
11798 2015-10-18 Iain Sandoe <iain@codesourcery.com>
11800 * config/darwin-driver.c (darwin_default_min_version): Refactor code.
11801 (darwin_driver_init): Note a version-min when provided on the c/l.
11802 * config/darwin.h (%darwin_minversion): Remove.
11803 * config/i386/darwin.h: Likewise.
11804 * config/rs6000/darwin.h: Likewise.
11805 * config/darwin.opt (mmacosx-version-min=): Use the configured default,
11806 rather than an arbitrary constant.
11808 2015-10-18 Iain Sandoe <iain@codesourcery.com>
11810 * config/darwin-driver.c (darwin_driver_init): Handle '-arch' for
11811 PPC, detect conflicts between -arch and multilib settings. Detect
11812 and warn about conflicts between multiple -arch definitions.
11814 2015-10-18 Iain Sandoe <iain@codesourcery.com>
11816 * config/darwin-driver.c: Adjust includes to add diagnostic-core.
11818 2015-10-16 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
11820 * lra-constraints.c (add_next_usage_insn): Change argument type
11821 from rtx to rtx_insn *.
11823 2015-10-16 H.J. Lu <hongjiu.lu@intel.com>
11825 * i386/x86-tune.def (X86_TUNE_ALWAYS_FANCY_MATH_387): Disable
11828 2015-10-16 Andrew MacLeod <amacleod@redhat.com>
11830 * config/tilepro/gen-mul-tables.cc: Adjust include files.
11831 * config/tilegx/mul-tables.c: Regenerate.
11832 * config/tilepro/mul-tables.c: Regenerate.
11834 * config/tilegx/tilegx-c.c: Adjust include files.
11835 * config/tilegx/tilegx.c: Likewise.
11836 * config/tilepro/tilepro-c.c: Likewise.
11837 * config/tilepro/tilepro.c: Likewise.
11838 * config/aarch64/aarch64-builtins.c: Likewise.
11839 * config/aarch64/aarch64.c: Likewise.
11840 * config/aarch64/cortex-a57-fma-steering.c: Likewise.
11841 * config/alpha/alpha.c: Likewise.
11842 * config/arc/arc.c: Likewise.
11843 * config/arm/aarch-common.c: Likewise.
11844 * config/arm/arm-builtins.c: Likewise.
11845 * config/arm/arm-c.c: Likewise.
11846 * config/arm/arm.c: Likewise.
11847 * config/avr/avr-c.c: Likewise.
11848 * config/avr/avr-devices.c: Likewise.
11849 * config/avr/avr-log.c: Likewise.
11850 * config/avr/avr.c: Likewise.
11851 * config/bfin/bfin.c: Likewise.
11852 * config/c6x/c6x.c: Likewise.
11853 * config/cr16/cr16.c: Likewise.
11854 * config/cris/cris.c: Likewise.
11855 * config/darwin-c.c: Likewise.
11856 * config/darwin-driver.c: Likewise.
11857 * config/darwin.c: Likewise.
11858 * config/default-c.c: Likewise.
11859 * config/epiphany/epiphany.c: Likewise.
11860 * config/epiphany/mode-switch-use.c: Likewise.
11861 * config/epiphany/resolve-sw-modes.c: Likewise.
11862 * config/fr30/fr30.c: Likewise.
11863 * config/frv/frv.c: Likewise.
11864 * config/ft32/ft32.c: Likewise.
11865 * config/glibc-c.c: Likewise.
11866 * config/h8300/h8300.c: Likewise.
11867 * config/i386/host-cygwin.c: Likewise.
11868 * config/i386/host-mingw32.c: Likewise.
11869 * config/i386/i386-c.c: Likewise.
11870 * config/i386/i386.c: Likewise.
11871 * config/i386/msformat-c.c: Likewise.
11872 * config/i386/winnt-cxx.c: Likewise.
11873 * config/i386/winnt-stubs.c: Likewise.
11874 * config/i386/winnt.c: Likewise.
11875 * config/ia64/ia64-c.c: Likewise.
11876 * config/ia64/ia64.c: Likewise.
11877 * config/iq2000/iq2000.c: Likewise.
11878 * config/lm32/lm32.c: Likewise.
11879 * config/m32c/m32c-pragma.c: Likewise.
11880 * config/m32c/m32c.c: Likewise.
11881 * config/m32r/m32r.c: Likewise.
11882 * config/mcore/mcore.c: Likewise.
11883 * config/mep/mep-pragma.c: Likewise.
11884 * config/mep/mep.c: Likewise.
11885 * config/microblaze/microblaze-c.c: Likewise.
11886 * config/microblaze/microblaze.c: Likewise.
11887 * config/mips/mips-tables.opt
11888 * config/mips/mips.c: Likewise.
11889 * config/mmix/mmix.c: Likewise.
11890 * config/mn10300/mn10300.c: Likewise.
11891 * config/moxie/moxie.c: Likewise.
11892 * config/msp430/msp430-c.c: Likewise.
11893 * config/msp430/msp430.c: Likewise.
11894 * config/nds32/nds32-cost.c: Likewise.
11895 * config/nds32/nds32-fp-as-gp.c: Likewise.
11896 * config/nds32/nds32-intrinsic.c: Likewise.
11897 * config/nds32/nds32-isr.c: Likewise.
11898 * config/nds32/nds32-md-auxiliary.c: Likewise.
11899 * config/nds32/nds32-memory-manipulation.c: Likewise.
11900 * config/nds32/nds32-pipelines-auxiliary.c: Likewise.
11901 * config/nds32/nds32-predicates.c: Likewise.
11902 * config/nds32/nds32.c: Likewise.
11903 * config/nios2/nios2.c: Likewise.
11904 * config/nvptx/mkoffload.c: Likewise.
11905 * config/nvptx/nvptx.c: Likewise.
11906 * config/pa/pa.c: Likewise.
11907 * config/pdp11/pdp11.c: Likewise.
11908 * config/rl78/rl78-c.c: Likewise.
11909 * config/rl78/rl78.c: Likewise.
11910 * config/rs6000/host-darwin.c: Likewise.
11911 * config/rs6000/rs6000-c.c: Likewise.
11912 * config/rs6000/rs6000-linux.c: Likewise.
11913 * config/rs6000/rs6000.c: Likewise.
11914 * config/rx/rx.c: Likewise.
11915 * config/s390/s390-c.c: Likewise.
11916 * config/s390/s390.c: Likewise.
11917 * config/sh/sh-c.c: Likewise.
11918 * config/sh/sh-mem.cc: Likewise.
11919 * config/sh/sh.c: Likewise.
11920 * config/sh/sh_optimize_sett_clrt.cc: Likewise.
11921 * config/sh/sh_treg_combine.cc: Likewise.
11922 * config/sol2-c.c: Likewise.
11923 * config/sol2-cxx.c: Likewise.
11924 * config/sol2-stubs.c: Likewise.
11925 * config/sol2.c: Likewise.
11926 * config/sparc/sparc-c.c: Likewise.
11927 * config/sparc/sparc.c: Likewise.
11928 * config/spu/spu-c.c: Likewise.
11929 * config/spu/spu.c: Likewise.
11930 * config/stormy16/stormy16.c: Likewise.
11931 * config/v850/v850-c.c: Likewise.
11932 * config/v850/v850.c: Likewise.
11933 * config/vax/vax.c: Likewise.
11934 * config/visium/visium.c: Likewise.
11935 * config/vms/vms-c.c: Likewise.
11936 * config/vms/vms.c: Likewise.
11937 * config/vxworks.c: Likewise.
11938 * config/winnt-c.c: Likewise.
11939 * config/xtensa/xtensa.c: Likewise.
11941 2015-10-16 Christian Bruel <christian.bruel@st.com>
11944 * config/arm/arm.h (FUNCTION_BOUNDARY): Use FUNCTION_BOUNDARY_P.
11945 (FUNCTION_BOUNDARY_P): New macro:
11946 * config/arm/arm.c (TARGET_RELAYOUT_FUNCTION, arm_relayout_function):
11948 * doc/tm.texi.in (TARGET_RELAYOUT_FUNCTION): Document.
11949 * doc/tm.texi (TARGET_RELAYOUT_FUNCTION): New hook.
11950 * target.def (TARGET_RELAYOUT_FUNCTION): Likewise.
11951 * function.c (allocate_struct_function): Call
11952 relayout_function hook.
11953 * passes.c (rest_of_decl_compilation): Likewise.
11955 2015-10-16 Christian Bruel <christian.bruel@st.com>
11958 * config/arm/arm.h (FUNCTION_BOUNDARY): Move optimize_size condition to:
11959 * config/arm/arm.c (arm_option_override_internal): Call
11960 arm_override_options_after_change_1.
11961 (arm_override_options_after_change): New function.
11962 (arm_override_options_after_change_1): Likewise.
11963 (TARGET_OVERRIDE_OPTIONS_AFTER_CHANGE): Define hook.
11965 2015-10-11 Jan Hubicka <hubicka@ucw.cz>
11968 * ipa-icf-gimple.c (func_checker::compare_operand): Compare only
11969 empty constructors.
11971 2015-10-16 Eric Botcazou <ebotcazou@adacore.com>
11973 * tree.c (recompute_tree_invariant_for_addr_expr): Assert that the
11974 argument is an ADDR_EXPR.
11976 2015-10-16 Richard Biener <rguenther@suse.de>
11978 * gimple-fold.c (gimple_fold_builtin_memory_op): Use gimple_build
11979 and get rid of force_gimple_operand_gsi.
11980 (gimple_fold_builtin_memory_chk): Likewise.
11981 (gimple_fold_builtin_stxcpy_chk): Likewise.
11982 (rewrite_to_defined_overflow): Likewise.
11983 (gimple_convert_to_ptrofftype): New function.
11984 * gimple-fold.h (gimple_convert_to_ptrofftype): New overload, declare.
11986 2015-10-16 Richard Biener <rguenther@suse.de>
11988 * tree-nested.h (build_addr): Adjust prototype.
11989 * tree-nested.c (build_addr): Remove context argument and use
11991 (get_static_chain): Adjust calls to build_addr.
11992 (convert_nl_goto_reference): Likewise.
11993 (convert_tramp_reference_op): Likewise.
11994 (finalize_nesting_tree_1): Likewise.
11995 * value-prof.c (gimple_ic): Likewise.
11996 * gimple-low.c (lower_builtin_setjmp): Likewise.
11997 * tree-parloops.c (take_address_of): Likewise.
11998 (create_call_for_reduction_1): Likewise.
11999 * tree-profile.c (gimple_gen_interval_profiler): Likewise.
12000 (gimple_gen_ic_func_profiler): Likewise.
12002 2015-10-11 Jan Hubicka <hubicka@ucw.cz>
12004 * ipa-icf-gimple.c (func_checker::compare_operand): Compare only
12005 empty constructors.
12007 2015-10-16 Michael Collison <michael.collison@linaro.org>
12008 Andrew Pinski <andrew.pinski@caviumnetworks.com>
12010 * match.pd ((x < y) && (x < z) -> x < min (y,z),
12011 (x > y) and (x > z) -> x > max (y,z))
12013 2015-10-15 Gregor Richards <gregor.richards@uwaterloo.ca>
12014 Szabolcs Nagy <szabolcs.nagy@arm.com>
12016 * config/microblaze/linux.h (MUSL_DYNAMIC_LINKER): Define.
12017 (DYNAMIC_LINKER): Renamed to ...
12018 (GLIBC_DYNAMIC_LINKER): This.
12019 (SUBTARGET_EXTRA_SPECS): Use GNU_USER_DYNAMIC_LINKER.
12021 2015-10-15 Marek Polacek <polacek@redhat.com>
12023 * tree-ssa-reassoc.c (attempt_builtin_copysign): Call
12024 gimple_call_builtin instead of is_gimple_call.
12026 2015-10-15 Richard Biener <rguenther@suse.de>
12028 * tree-vect-stmts.c (vect_init_vector): Remove unused vars.
12030 2015-10-15 Richard Biener <rguenther@suse.de>
12032 * tree-vectorizer.h (vect_get_new_ssa_name): Declare.
12033 * tree-vect-data-refs.c (vect_get_new_ssa_name): New helper.
12034 * tree-vect-loop.c (get_initial_def_for_induction): Drop
12035 use of force_gimple_operand in favor of gimple_build.
12036 Use vect_get_new_ssa_name.
12037 * tree-vect-stmts.c (vect_init_vector): Use vect_get_new_ssa_name.
12038 (vectorizable_mask_load_store): Likewise.
12039 (vectorizable_call): Likewise.
12040 (vectorizable_store): Likewise.
12041 (vectorizable_load): Likewise.
12042 (vect_get_vec_def_for_stmt_copy): Remove redundant stmt.
12044 2015-10-15 Richard Sandiford <richard.sandiford@arm.com>
12046 PR tree-optimization/67945
12047 * tree-pass.h (PROP_gimple_opt_math): New property flag.
12048 * generic-match-head.c (canonicalize_math_p): New function.
12049 * gimple-match-head.c: Include tree-pass.h.
12050 (canonicalize_math_p): New function.
12051 * match.pd: Group math built-in rules into simplifications
12052 and canonicalizations. Guard the latter with canonicalize_math_p.
12053 * tree-ssa-math-opts.c (pass_data_cse_sincos): Provide the
12054 PROP_gimple_opt_math property.
12056 2015-10-15 Marek Polacek <polacek@redhat.com>
12058 PR tree-optimization/67953
12059 * match.pd (X - (X / Y) * Y): Don't change signedness of @0.
12061 2015-10-15 Jiong Wang <jiong.wang@arm.com>
12063 * config.gcc: Recognize "." in architecture base name for AArch64.
12065 2015-10-14 Uros Bizjak <ubizjak@gmail.com>
12067 * config/mips/mips.h (MIPS_STACK_ALIGN): Implement using
12069 * config/mips/mips.c (mips_setup_incoming_varargs): Use
12070 ROUND_DOWN to calculate off.
12071 (mips_gimplify_va_arg_expr): Use ROUND_UP to calculate rsize.
12072 (mips_emit_probe_stack_range): Use ROUND_DOWN to calculate
12075 2015-10-14 Eric Botcazou <ebotcazou@adacore.com>
12077 * gimplify.c (gimplify_addr_expr) <MEM_REF>: New case.
12079 2015-10-14 Peter Bergner <bergner@vnet.ibm.com>
12080 Torvald Riegel <triegel@redhat.com>
12083 * config/rs6000/htm.md (UNSPEC_HTM_FENCE): New.
12084 (tabort, tabort<wd>c, tabort<wd>ci, tbegin, tcheck, tend,
12085 trechkpt, treclaim, tsr, ttest): Rename define_insns from this...
12086 (*tabort, *tabort<wd>c, *tabort<wd>ci, *tbegin, *tcheck, *tend,
12087 *trechkpt, *treclaim, *tsr, *ttest): ...to this. Add memory barrier.
12088 (tabort, tabort<wd>c, tabort<wd>ci, tbegin, tcheck, tend,
12089 trechkpt, treclaim, tsr, ttest): New define_expands.
12090 * config/rs6000/rs6000-c.c (rs6000_target_modify_macros): Define
12091 __TM_FENCE__ for htm.
12092 * doc/extend.texi: Update documentation for htm builtins.
12094 2015-10-14 Uros Bizjak <ubizjak@gmail.com>
12097 * config/i386/i386.c (ix86_emit_save_reg_using_mov): Do not add
12098 REG_CFA_EXPRESSION to aligned SSE stores.
12100 2015-10-14 Jeff Law <law@redhat.com>
12102 * tree-ssa-threadupdate.c (thread_through_all_blocks): Bump
12103 num_threaded_edges for successful FSM threads too.
12105 2015-10-14 Richard Biener <rguenther@suse.de>
12107 * tree-vectorizer.h (vect_is_simple_use): Remove unused parameters.
12108 (vect_is_simple_use_1): Likewise. Make overload of vect_is_simple_use.
12109 (vect_get_vec_def_for_operand): Remove unused parameter.
12110 * tree-vect-loop.c (get_initial_def_for_induction): Adjust.
12111 (vect_create_epilog_for_reduction): Likewise.
12112 (vectorizable_reduction): Likewise.
12113 (vectorizable_live_operation): Likewise.
12114 * tree-vect-patterns.c (type_conversion_p): Likewise.
12115 (vect_recog_vector_vector_shift_pattern): Likewise.
12116 (check_bool_pattern): Likewise.
12117 * tree-vect-slp.c (vect_get_and_check_slp_defs): Likewise.
12118 (vect_analyze_slp_cost_1): Likewise.
12119 * tree-vect-stmts.c (process_use): Likewise.
12120 (vect_get_vec_def_for_operand): Do not handle reductions.
12121 (vect_get_vec_defs): Adjust.
12122 (vectorizable_mask_load_store): Likewise.
12123 (vectorizable_call): Likewise.
12124 (vectorizable_simd_clone_call): Likewise.
12125 (vect_get_loop_based_defs): Likewise.
12126 (vectorizable_conversion): Likewise.
12127 (vectorizable_assignment): Likewise.
12128 (vectorizable_shift): Likewise.
12129 (vectorizable_operation): Likewise.
12130 (vectorizable_store): Likewise.
12131 (vectorizable_load): Likewise.
12132 (vect_is_simple_cond): Likewise.
12133 (vectorizable_condition): Likewise.
12134 (vect_is_simple_use): Remove unused parameters.
12135 (vect_is_simple_use_1): Adjust and rename.
12137 2015-10-14 Richard Biener <rguenther@suse.de>
12139 PR tree-optimization/67915
12140 * match.pd: Handle comparisons of addresses of STRING_CSTs.
12141 * gimplify.c (gimplify_cond_expr): Fold the GIMPLE conds we build.
12142 * tree-cfgcleanup.c (cleanup_control_expr_graph): Remove GENERIC
12143 stmt folding in favor of GIMPLE one.
12145 2015-10-14 Marek Polacek <polacek@redhat.com>
12147 PR tree-optimization/67815
12148 * tree-ssa-reassoc.c (attempt_builtin_copysign): New function.
12149 (reassociate_bb): Call it.
12151 2015-10-14 Richard Biener <rguenther@suse.de>
12153 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment):
12154 Reset info at start.
12155 (vect_analyze_group_access_1): Add debug print.
12156 * tree-vect-loop.c (vect_get_single_scalar_iteration_cost): Rename ...
12157 (vect_compute_single_scalar_iteration_cost): ... to this.
12158 (vect_analyze_loop_2): Adjust.
12159 * tree-vect-slp.c (struct _slp_oprnd_info): Move from ...
12160 * tree-vectorizer.h: ... here.
12161 (add_stmt_info_to_vec): Remove.
12162 * tree-vect-stmts.c (record_stmt_cost): Inline add_stmt_info_to_vec.
12164 2015-10-14 Dominik Vogt <vogt@linux.vnet.ibm.com>
12166 * targhooks.c (default_target_option_pragma_parse): Do not warn if
12167 called on behalf of "#pragma GCC pop_options".
12169 2015-10-14 Tom de Vries <tom@codesourcery.com>
12171 * cfganal.c (verify_no_unreachable_blocks): New function.
12172 (inverted_post_order_compute) [ENABLE_CHECKING]: Call
12173 verify_no_unreachable_blocks.
12174 cfganal.h (verify_no_unreachable_blocks): Declare.
12176 2015-10-13 Mikhail Maltsev <maltsevm@gmail.com>
12178 * common.opt: Add flag_checking.
12179 * system.h (CHECKING_P): Define.
12181 2015-10-13 Jakub Jelinek <jakub@redhat.com>
12182 Aldy Hernandez <aldyh@redhat.com>
12183 Ilya Verbin <ilya.verbin@intel.com>
12185 * builtin-types.def (BT_FN_BOOL_UINT_LONGPTR_LONGPTR_LONGPTR,
12186 BT_FN_BOOL_UINT_ULLPTR_ULLPTR_ULLPTR,
12187 BT_FN_BOOL_UINT_LONGPTR_LONG_LONGPTR_LONGPTR,
12188 BT_FN_BOOL_UINT_ULLPTR_ULL_ULLPTR_ULLPTR,
12189 BT_FN_VOID_INT_SIZE_PTR_PTR_PTR_UINT_PTR,
12190 BT_FN_VOID_INT_OMPFN_SIZE_PTR_PTR_PTR_UINT_PTR,
12191 BT_FN_VOID_OMPFN_PTR_OMPCPYFN_LONG_LONG_BOOL_UINT_PTR_INT,
12192 BT_FN_VOID_OMPFN_PTR_OMPCPYFN_LONG_LONG_UINT_LONG_INT_LONG_LONG_LONG,
12193 BT_FN_VOID_OMPFN_PTR_OMPCPYFN_LONG_LONG_UINT_LONG_INT_ULL_ULL_ULL,
12194 BT_FN_VOID_LONG_VAR, BT_FN_VOID_ULL_VAR): New.
12195 (BT_FN_VOID_INT_PTR_SIZE_PTR_PTR_PTR,
12196 BT_FN_VOID_INT_OMPFN_PTR_SIZE_PTR_PTR_PTR,
12197 BT_FN_VOID_OMPFN_PTR_OMPCPYFN_LONG_LONG_BOOL_UINT_PTR): Remove.
12198 * cgraph.h (enum cgraph_simd_clone_arg_type): Add
12199 SIMD_CLONE_ARG_TYPE_LINEAR_REF_CONSTANT_STEP,
12200 SIMD_CLONE_ARG_TYPE_LINEAR_UVAL_CONSTANT_STEP and
12201 SIMD_CLONE_ARG_TYPE_LINEAR_VAL_CONSTANT_STEP.
12202 (struct cgraph_simd_clone_arg): Adjust comment.
12203 * coretypes.h (struct gomp_ordered): New forward decl.
12204 * gimple.c (gimple_build_omp_critical): Add CLAUSES argument,
12205 set critical clauses to it.
12206 (gimple_build_omp_ordered): Return gomp_ordered * instead of
12207 gimple *. Add CLAUSES argument, set ordered clauses to it.
12208 (gimple_copy): Unshare clauses on GIMPLE_OMP_CRITICAL and
12209 GIMPLE_OMP_ORDERED.
12210 * gimple.def (GIMPLE_OMP_ORDERED): Change from GSS_OMP to
12211 GSS_OMP_SINGLE_LAYOUT, move it after GIMPLE_OMP_TEAMS.
12212 * gimple.h (enum gf_mask): Add GF_OMP_TASK_TASKLOOP. Add another bit
12213 to GF_OMP_FOR_KIND_MASK mask. Add GF_OMP_FOR_KIND_TASKLOOP, renumber
12214 GF_OMP_FOR_KIND_CILKFOR and GF_OMP_FOR_KIND_OACC_LOOP. Adjust
12215 GF_OMP_FOR_SIMD, GF_OMP_FOR_COMBINED and GF_OMP_FOR_COMBINED_INTO.
12216 Add another bit to GF_OMP_TARGET_KIND_MASK mask. Add
12217 GF_OMP_TARGET_KIND_ENTER_DATA and GF_OMP_TARGET_KIND_EXIT_DATA,
12219 GF_OMP_TARGET_KIND_OACC_{PARALLEL,KERNELS,DATA,UPDATE,ENTER_EXIT_DATA}.
12220 (gomp_critical): Add clauses field.
12221 (gomp_ordered): New struct.
12222 (is_a_helper <gomp_ordered *>::test): New inline.
12223 (gimple_build_omp_critical): Add CLAUSES argument.
12224 (gimple_build_omp_ordered): Likewise. Return gomp_ordered *
12225 instead of gimple *.
12226 (gimple_omp_critical_clauses, gimple_omp_critical_clauses_ptr,
12227 gimple_omp_critical_set_clauses, gimple_omp_ordered_clauses,
12228 gimple_omp_ordered_clauses_ptr, gimple_omp_ordered_set_clauses,
12229 gimple_omp_task_taskloop_p, gimple_omp_task_set_taskloop_p): New
12231 * gimple-pretty-print.c (dump_gimple_omp_for): Handle taskloop.
12232 (dump_gimple_omp_target): Handle enter data and exit data.
12233 (dump_gimple_omp_block): Don't handle GIMPLE_OMP_ORDERED here.
12234 (dump_gimple_omp_critical): Print clauses.
12235 (dump_gimple_omp_ordered): New function.
12236 (dump_gimple_omp_task): Handle taskloop.
12237 (pp_gimple_stmt_1): Use dump_gimple_omp_ordered for
12238 GIMPLE_OMP_ORDERED.
12239 * gimple-walk.c (walk_gimple_op): Walk clauses on
12240 GIMPLE_OMP_CRITICAL and GIMPLE_OMP_ORDERED.
12241 * gimplify.c (enum gimplify_omp_var_data): Add GOVD_MAP_0LEN_ARRAY.
12242 (enum omp_region_type): Add ORT_COMBINED_TARGET and ORT_NONE.
12243 (struct gimplify_omp_ctx): Add loop_iter_var,
12244 target_map_scalars_firstprivate, target_map_pointers_as_0len_arrays
12245 and target_firstprivatize_array_bases fields.
12246 (delete_omp_context): Release loop_iter_var.
12247 (gimplify_bind_expr): Handle ORT_NONE.
12248 (maybe_fold_stmt): Adjust check for ORT_TARGET for the addition of
12249 ORT_COMBINED_TARGET.
12250 (is_gimple_stmt): Return true for OMP_TASKLOOP, OMP_TEAMS and
12251 OMP_TARGET{,_DATA,_UPDATE,_ENTER_DATA,_EXIT_DATA}.
12252 (omp_firstprivatize_variable): Handle ORT_NONE. Adjust check for
12253 ORT_TARGET for the addition of ORT_COMBINED_TARGET. Handle
12254 ctx->target_map_scalars_firstprivate.
12255 (omp_add_variable): Handle ORT_NONE. Allow map clause together with
12256 data sharing clauses. For data sharing clause with VLA decl
12257 on omp target/target data don't add firstprivate for the pointer.
12258 Call omp_notice_variable on TYPE_SIZE_UNIT only if it is a DECL_P.
12259 (omp_notice_threadprivate_variable): Adjust check for ORT_TARGET for
12260 the addition of ORT_COMBINED_TARGET.
12261 (omp_notice_variable): Handle ORT_NONE. Adjust check for ORT_TARGET
12262 for the addition of ORT_COMBINED_TARGET. Handle implicit mapping of
12263 pointers as zero length array sections and
12264 ctx->target_map_scalars_firstprivate mapping of scalars as firstprivate
12266 (omp_check_private): Handle omp_member_access_dummy_var vars.
12267 (find_decl_expr): New function.
12268 (gimplify_scan_omp_clauses): Add CODE argument. For OMP_CLAUSE_IF
12269 complain if OMP_CLAUSE_IF_MODIFIER is present and does not match code.
12270 Handle OMP_CLAUSE_GANG separately. Handle
12271 OMP_CLAUSE_{PRIORITY,GRAINSIZE,NUM_TASKS,NOGROUP,THREADS,SIMD,SIMDLEN}
12272 clauses. Diagnose linear clause on combined
12273 distribute {, parallel for} simd construct, unless it is the loop
12274 iterator. Handle struct element GOMP_MAP_FIRSTPRIVATE_POINTER.
12275 Handle map clauses with COMPONENT_REF. Initialize
12276 ctx->target_map_scalars_firstprivate,
12277 ctx->target_firstprivatize_array_bases and
12278 ctx->target_map_pointers_as_0len_arrays. Add firstprivate for
12279 linear clause even to target region if combined. Remove
12280 map clauses with GOMP_MAP_FIRSTPRIVATE_POINTER kind from
12281 OMP_TARGET_{,ENTER_,EXIT_}DATA. For GOMP_MAP_FIRSTPRIVATE_POINTER
12282 map kind with non-INTEGER_CST OMP_CLAUSE_SIZE firstprivatize the bias.
12283 Handle OMP_CLAUSE_DEPEND_{SINK,SOURCE}. Handle
12284 OMP_CLAUSE_{{USE,IS}_DEVICE_PTR,DEFAULTMAP,HINT}.
12285 For linear clause on worksharing loop combined with parallel add
12286 shared clause on the parallel. Handle OMP_CLAUSE_REDUCTION
12287 with MEM_REF OMP_CLAUSE_DECL. Set DECL_NAME on
12288 omp_member_access_dummy_var vars. Add lastprivate clause to outer
12289 taskloop if needed.
12290 (gimplify_adjust_omp_clauses_1): Handle GOVD_MAP_0LEN_ARRAY.
12291 If gimplify_omp_ctxp->target_firstprivatize_array_bases, use
12292 GOMP_MAP_FIRSTPRIVATE_POINTER map kind instead of
12294 (gimplify_adjust_omp_clauses): Add CODE argument. Handle removal
12295 of GOMP_MAP_FIRSTPRIVATE_POINTER struct elements for struct not seen
12296 in target body. Handle removal of struct mapping if struct is not
12297 seen in target body. Remove GOMP_MAP_STRUCT map clause on
12298 OMP_TARGET_EXIT_DATA. Adjust check for ORT_TARGET for the
12299 addition of ORT_COMBINED_TARGET. Use GOMP_MAP_FIRSTPRIVATE_POINTER
12300 instead of GOMP_MAP_POINTER if ctx->target_firstprivatize_array_bases
12301 for VLAs. Set OMP_CLAUSE_MAP_PRIVATE if both data sharing and map
12302 clause appear together. Handle
12303 OMP_CLAUSE_{{USE,IS}_DEVICE_PTR,DEFAULTMAP,HINT}. Don't remove map
12304 clause if it has map-type-modifier always. Handle
12305 OMP_CLAUSE_{PRIORITY,GRAINSIZE,NUM_TASKS,NOGROUP,THREADS,SIMD,SIMDLEN}
12307 (gimplify_oacc_cache, gimplify_omp_parallel, gimplify_omp_task):
12308 Adjust gimplify_scan_omp_clauses and gimplify_adjust_omp_clauses
12310 (gimplify_omp_for): Likewise. Handle OMP_TASKLOOP. Initialize
12311 loop_iter_var. Use OMP_FOR_ORIG_DECLS. Fix handling of lastprivate
12312 iterators in doacross loops.
12313 (gimplify_omp_workshare): Adjust gimplify_scan_omp_clauses and
12314 gimplify_adjust_omp_clauses callers. Use ORT_COMBINED_TARGET
12315 for OMP_TARGET_COMBINED. Adjust check for ORT_TARGET
12316 for the addition of ORT_COMBINED_TARGET.
12317 (gimplify_omp_target_update): Adjust gimplify_scan_omp_clauses and
12318 gimplify_adjust_omp_clauses callers. Handle OMP_TARGET_ENTER_DATA
12319 and OMP_TARGET_EXIT_DATA.
12320 (gimplify_omp_ordered): New function.
12321 (gimplify_expr): Handle OMP_TASKLOOP, OMP_TARGET_ENTER_DATA and
12322 OMP_TARGET_EXIT_DATA. Use gimplify_omp_ordered for OMP_ORDERED.
12323 Gimplify clauses on OMP_CRITICAL.
12324 * internal-fn.c (expand_GOMP_SIMD_ORDERED_START,
12325 expand_GOMP_SIMD_ORDERED_END): New functions.
12326 * internal-fn.def (GOMP_SIMD_ORDERED_START,
12327 GOMP_SIMD_ORDERED_END): New internal functions.
12328 * omp-builtins.def (BUILT_IN_GOMP_LOOP_DOACROSS_STATIC_START,
12329 BUILT_IN_GOMP_LOOP_DOACROSS_DYNAMIC_START,
12330 BUILT_IN_GOMP_LOOP_DOACROSS_GUIDED_START,
12331 BUILT_IN_GOMP_LOOP_DOACROSS_RUNTIME_START,
12332 BUILT_IN_GOMP_LOOP_ULL_DOACROSS_STATIC_START,
12333 BUILT_IN_GOMP_LOOP_ULL_DOACROSS_DYNAMIC_START,
12334 BUILT_IN_GOMP_LOOP_ULL_DOACROSS_GUIDED_START,
12335 BUILT_IN_GOMP_LOOP_ULL_DOACROSS_RUNTIME_START,
12336 BUILT_IN_GOMP_DOACROSS_POST, BUILT_IN_GOMP_DOACROSS_WAIT,
12337 BUILT_IN_GOMP_DOACROSS_ULL_POST, BUILT_IN_GOMP_DOACROSS_ULL_WAIT,
12338 BUILT_IN_GOMP_TARGET_ENTER_EXIT_DATA, BUILT_IN_GOMP_TASKLOOP,
12339 BUILT_IN_GOMP_TASKLOOP_ULL): New built-ins.
12340 (BUILT_IN_GOMP_TASK): Add INT argument to the end.
12341 (BUILT_IN_GOMP_TARGET): Rename from GOMP_target to GOMP_target_41,
12343 (BUILT_IN_GOMP_TARGET_DATA): Rename from GOMP_target_data to
12344 GOMP_target_data_41, adjust type.
12345 (BUILT_IN_GOMP_TARGET_UPDATE): Rename from GOMP_target_update to
12346 GOMP_target_update_41, adjust type.
12347 * omp-low.c (struct omp_region): Adjust comments, add ord_stmt
12349 (struct omp_for_data): Add ordered and simd_schedule fields.
12350 (omp_member_access_dummy_var, unshare_and_remap_1,
12351 unshare_and_remap, is_taskloop_ctx): New functions.
12352 (is_taskreg_ctx): Use is_parallel_ctx and is_task_ctx.
12353 (extract_omp_for_data): Handle taskloops and doacross loops
12354 and simd schedule modifier.
12355 (omp_adjust_chunk_size): New function.
12356 (get_ws_args_for): Use it.
12357 (lookup_sfield): Change first argument to splay_tree_key,
12358 add overload with first argument tree.
12359 (maybe_lookup_field): Likewise.
12360 (use_pointer_for_field): Handle omp_member_access_dummy_var.
12361 (omp_copy_decl_2): If var is TREE_ADDRESSABLE listed in
12362 task_shared_vars, clear TREE_ADDRESSABLE on the copy.
12363 (build_outer_var_ref): Add LASTPRIVATE argument, handle
12364 taskloops and omp_member_access_dummy_var vars.
12365 (build_sender_ref): Change first argument to splay_tree_key,
12366 add overload with first argument tree.
12367 (install_var_field): For mask & 8 use &DECL_UID as key instead
12368 of the tree itself.
12369 (fixup_child_record_type): Const qualify *.omp_data_i.
12370 (scan_sharing_clauses): Handle OMP_CLAUSE_SHARED_FIRSTPRIVATE,
12371 C/C++ array reductions, OMP_CLAUSE_{IS,USE}_DEVICE_PTR clauses,
12372 OMP_CLAUSE_{PRIORITY,GRAINSIZE,NUM_TASKS,SIMDLEN,THREADS,SIMD} and
12373 OMP_CLAUSE_{NOGROUP,DEFAULTMAP} clauses, OMP_CLAUSE__LOOPTEMP_ clause
12374 on taskloop, GOMP_MAP_FIRSTPRIVATE_POINTER, OMP_CLAUSE_MAP_PRIVATE.
12375 (create_omp_child_function): Set TREE_READONLY on .omp_data_i.
12376 (find_combined_for): Allow searching for different GIMPLE_OMP_FOR
12378 (add_taskreg_looptemp_clauses): New function.
12379 (scan_omp_parallel): Use it.
12380 (scan_omp_task): Likewise.
12381 (finish_taskreg_scan): Handle OMP_CLAUSE_SHARED_FIRSTPRIVATE.
12382 For taskloop, move fields for the first two _LOOPTEMP_ clauses first.
12383 (check_omp_nesting_restrictions): Handle GF_OMP_TARGET_KIND_ENTER_DATA
12384 and GF_OMP_TARGET_KIND_EXIT_DATA. Formatting fixes. Allow the
12385 sandwiched taskloop constructs. Type check
12386 OMP_CLAUSE_DEPEND_{KIND,SOURCE}. Allow ordered simd inside of simd
12387 region. Diagnose depend(source) or depend(sink:...) on
12388 target constructs or task/taskloop.
12389 (handle_simd_reference): Use get_name.
12390 (lower_rec_input_clauses): Likewise. Ignore all
12391 OMP_CLAUSE_LASTPRIVATE_FIRSTPRIVATE clauses on taskloop construct.
12392 Allow _LOOPTEMP_ clause on GOMP_TASK. Unshare new_var
12393 before passing it to omp_clause_{default,copy}_ctor. Handle
12394 OMP_CLAUSE_REDUCTION with MEM_REF OMP_CLAUSE_DECL. Set
12395 lastprivate_firstprivate flag for linear that needs copyin and
12396 copyout. Use BUILT_IN_ALLOCA_WITH_ALIGN instead of BUILT_IN_ALLOCA.
12397 (lower_lastprivate_clauses): For OMP_CLAUSE_LASTPRIVATE_FIRSTPRIVATE
12398 on taskloop lookup decl in outer context. Pass true to
12399 build_outer_var_ref lastprivate argument. Handle
12400 OMP_CLAUSE_LASTPRIVATE_TASKLOOP_IV lastprivate if the decl is global
12401 outside of outer taskloop for.
12402 (lower_reduction_clauses): Handle OMP_CLAUSE_REDUCTION with MEM_REF
12404 (lower_send_clauses): Ignore first two _LOOPTEMP_ clauses in taskloop
12405 GOMP_TASK. Handle OMP_CLAUSE_SHARED_FIRSTPRIVATE. Handle
12406 omp_member_access_dummy_var vars. Handle OMP_CLAUSE_REDUCTION
12407 with MEM_REF OMP_CLAUSE_DECL. Use new lookup_sfield overload.
12408 (lower_send_shared_vars): Ignore fields with NULL or FIELD_DECL
12409 abstract origin. Handle omp_member_access_dummy_var vars.
12410 (expand_parallel_call): Use expand_omp_build_assign.
12411 (expand_task_call): Handle taskloop construct expansion. Add
12412 REGION argument. Use GOMP_TASK_* defines instead of hardcoded
12413 integers. Add priority argument to GOMP_task* calls. Or in
12414 GOMP_TASK_FLAG_PRIORITY into flags if priority is present for
12416 (expand_omp_build_assign): Add prototype. Add AFTER
12417 argument, if true emit statements after *GSI_P and continue linking.
12418 (expand_omp_taskreg): Adjust expand_task_call caller.
12419 (expand_omp_for_init_counts): Rename zero_iter_bb argument to
12420 zero_iter1_bb and first_zero_iter to first_zero_iter1, add
12421 zero_iter2_bb and first_zero_iter2 arguments, handle computation
12422 of counts even for ordered loops.
12423 (expand_omp_for_init_vars): Handle GOMP_TASK inner_stmt.
12424 (expand_omp_ordered_source, expand_omp_ordered_sink,
12425 expand_omp_ordered_source_sink, expand_omp_for_ordered_loops): New
12427 (expand_omp_for_generic): Use omp_adjust_chunk_size. Handle linear
12428 clauses on worksharing loop. Handle DOACROSS loop expansion.
12429 (expand_omp_for_static_nochunk): Handle linear clauses on
12430 worksharing loop. Adjust expand_omp_for_init_counts
12432 (expand_omp_for_static_chunk): Likewise. Use omp_adjust_chunk_size.
12433 (expand_omp_simd): Handle addressable fd->loop.v. Adjust
12434 expand_omp_for_init_counts callers.
12435 (expand_omp_taskloop_for_outer, expand_omp_taskloop_for_inner): New
12437 (expand_omp_for): Call expand_omp_taskloop_for_* for taskloop.
12438 Handle doacross loops.
12439 (expand_omp_target): Handle GF_OMP_TARGET_KIND_ENTER_DATA and
12440 GF_OMP_TARGET_KIND_EXIT_DATA. Pass flags and depend arguments to
12441 GOMP_target_{41,update_41,enter_exit_data} libcalls.
12442 (expand_omp): Don't expand ordered depend constructs here, record
12443 ord_stmt instead for later expand_omp_for_generic.
12444 (build_omp_regions_1): Handle GF_OMP_TARGET_KIND_ENTER_DATA and
12445 GF_OMP_TARGET_KIND_EXIT_DATA. Treat GIMPLE_OMP_ORDERED with depend
12446 clause as stand-alone directive.
12447 (lower_omp_ordered_clauses): New function.
12448 (lower_omp_ordered): Handle OMP_CLAUSE_SIMD, for OMP_CLAUSE_DEPEND
12449 don't lower anything.
12450 (lower_omp_for_lastprivate): Use last _looptemp_ clause
12451 on taskloop for comparison.
12452 (lower_omp_for): Handle taskloop constructs. Adjust OMP_CLAUSE_DECL
12453 and OMP_CLAUSE_LINEAR_STEP so that expand_omp_for_* can use it during
12454 expansion for linear adjustments.
12455 (create_task_copyfn): Handle OMP_CLAUSE_SHARED_FIRSTPRIVATE.
12456 (lower_depend_clauses): Assert not seeing sink/source depend kinds.
12457 Set TREE_ADDRESSABLE on array. Change first argument from gimple *
12458 to tree * pointing to the stmt's clauses.
12459 (lower_omp_taskreg): Adjust lower_depend_clauses caller.
12460 (lower_omp_target): Handle GF_OMP_TARGET_KIND_ENTER_DATA
12461 and GF_OMP_TARGET_KIND_EXIT_DATA, depend clauses,
12462 GOMP_MAP_{RELEASE,ALWAYS_{TO,FROM,TOFROM},FIRSTPRIVATE_POINTER,STRUCT}
12463 map kinds, OMP_CLAUSE_{FIRSTPRIVATE,PRIVATE,{IS,USE}_DEVICE_PTR
12464 clauses. Always use short kind and 8-bit align shift.
12465 (lower_omp_regimplify_p): Use IS_TYPE_OR_DECL_P macro.
12466 (struct lower_omp_regimplify_operands_data): New type.
12467 (lower_omp_regimplify_operands_p, lower_omp_regimplify_operands):
12469 (lower_omp_1): Use lower_omp_regimplify_operands instead of
12470 gimple_regimplify_operands.
12471 (make_gimple_omp_edges): Handle GF_OMP_TARGET_KIND_ENTER_DATA and
12472 GF_OMP_TARGET_KIND_EXIT_DATA. Treat GIMPLE_OMP_ORDERED with depend
12473 clause as stand-alone directive.
12474 (simd_clone_clauses_extract): Honor OMP_CLAUSE_LINEAR_KIND.
12475 (simd_clone_mangle): Mangle the various linear kinds
12477 (simd_clone_adjust_argument_types): Handle
12478 SIMD_CLONE_ARG_TYPE_LINEAR_*_CONSTANT_STEP.
12479 (simd_clone_init_simd_arrays): Don't do anything for uval.
12480 (simd_clone_adjust): Handle
12481 SIMD_CLONE_ARG_TYPE_LINEAR_REF_CONSTANT_STEP like
12482 SIMD_CLONE_ARG_TYPE_LINEAR_CONSTANT_STEP.
12483 Handle SIMD_CLONE_ARG_TYPE_LINEAR_UVAL_CONSTANT_STEP.
12484 * omp-low.h (omp_member_access_dummy_var): New prototype.
12485 * passes.def (pass_simduid_cleanup): Schedule another copy of the
12486 pass after all optimizations.
12487 * tree.c (omp_clause_code_name): Add entries for
12488 OMP_CLAUSE_{TO_DECLARE,LINK,{USE,IS}_DEVICE_PTR,DEFAULTMAP,HINT}
12489 and OMP_CLAUSE_{PRIORITY,GRAINSIZE,NUM_TASKS,NOGROUP,THREADS,SIMD}.
12490 (omp_clause_num_ops): Likewise. Bump number of OMP_CLAUSE_REDUCTION
12491 arguments to 5 and for OMP_CLAUSE_ORDERED to 1.
12492 (walk_tree_1): Adjust for OMP_CLAUSE_ORDERED having 1 argument and
12493 OMP_CLAUSE_REDUCTION 5 arguments. Handle
12494 OMP_CLAUSE_{TO_DECLARE,LINK,{USE,IS}_DEVICE_PTR,DEFAULTMAP,HINT}
12495 and OMP_CLAUSE_{PRIORITY,GRAINSIZE,NUM_TASKS,NOGROUP,THREADS,SIMD}
12497 * tree-core.h (enum omp_clause_linear_kind): New.
12498 (struct tree_omp_clause): Change type of map_kind
12499 from unsigned char to unsigned int. Add subcode.if_modifier
12500 and subcode.linear_kind fields.
12501 (enum omp_clause_code): Add
12502 OMP_CLAUSE_{TO_DECLARE,LINK,{USE,IS}_DEVICE_PTR,DEFAULTMAP,HINT}
12503 and OMP_CLAUSE_{PRIORITY,GRAINSIZE,NUM_TASKS,NOGROUP,THREADS,SIMD}.
12504 (OMP_CLAUSE_REDUCTION): Document
12505 OMP_CLAUSE_REDUCTION_DECL_PLACEHOLDER.
12506 (enum omp_clause_depend_kind): Add OMP_CLAUSE_DEPEND_{SOURCE,SINK}.
12507 * tree.def (OMP_FOR): Add OMP_FOR_ORIG_DECLS operand.
12508 (OMP_CRITICAL): Move before OMP_SINGLE. Add OMP_CRITICAL_CLAUSES
12510 (OMP_ORDERED): Move before OMP_SINGLE. Add OMP_ORDERED_CLAUSES
12512 (OMP_TASKLOOP, OMP_TARGET_ENTER_DATA, OMP_TARGET_EXIT_DATA): New tree
12514 * tree.h (OMP_BODY): Replace OMP_CRITICAL with OMP_TASKGROUP.
12515 (OMP_CLAUSE_SET_MAP_KIND): Cast to unsigned int rather than unsigned
12517 (OMP_CRITICAL_NAME): Adjust to be 3rd operand instead of 2nd.
12518 (OMP_CLAUSE_NUM_TASKS_EXPR): Formatting fix.
12519 (OMP_STANDALONE_CLAUSES): Adjust to cover OMP_TARGET_{ENTER,EXIT}_DATA.
12520 (OMP_CLAUSE_DEPEND_SINK_NEGATIVE, OMP_TARGET_COMBINED,
12521 OMP_CLAUSE_MAP_PRIVATE, OMP_FOR_ORIG_DECLS, OMP_CLAUSE_IF_MODIFIER,
12522 OMP_CLAUSE_MAP_MAYBE_ZERO_LENGTH_ARRAY_SECTION, OMP_CRITICAL_CLAUSES,
12523 OMP_CLAUSE_PRIVATE_TASKLOOP_IV, OMP_CLAUSE_LASTPRIVATE_TASKLOOP_IV,
12524 OMP_CLAUSE_HINT_EXPR, OMP_CLAUSE_SCHEDULE_SIMD,
12525 OMP_CLAUSE_LINEAR_KIND, OMP_CLAUSE_REDUCTION_DECL_PLACEHOLDER,
12526 OMP_CLAUSE_SHARED_FIRSTPRIVATE, OMP_ORDERED_CLAUSES,
12527 OMP_TARGET_ENTER_DATA_CLAUSES, OMP_TARGET_EXIT_DATA_CLAUSES,
12528 OMP_CLAUSE_NUM_TASKS_EXPR, OMP_CLAUSE_GRAINSIZE_EXPR,
12529 OMP_CLAUSE_PRIORITY_EXPR, OMP_CLAUSE_ORDERED_EXPR): Define.
12530 * tree-inline.c (remap_gimple_stmt): Handle clauses on
12531 GIMPLE_OMP_ORDERED and GIMPLE_OMP_CRITICAL. For
12532 IFN_GOMP_SIMD_ORDERED_{START,END} set has_simduid_loops.
12533 * tree-nested.c (convert_nonlocal_omp_clauses): Handle
12534 OMP_CLAUSE_{TO_DECLARE,LINK,{USE,IS}_DEVICE_PTR,SIMDLEN,PRIORITY,SIMD}
12535 and OMP_CLAUSE_{GRAINSIZE,NUM_TASKS,HINT,NOGROUP,THREADS,DEFAULTMAP}
12536 clauses. Handle OMP_CLAUSE_REDUCTION_DECL_PLACEHOLDER.
12537 (convert_local_omp_clauses): Likewise.
12538 * tree-pretty-print.c (dump_omp_clause): Handle
12539 OMP_CLAUSE_{TO_DECLARE,LINK,{USE,IS}_DEVICE_PTR,SIMDLEN,PRIORITY,SIMD}
12540 and OMP_CLAUSE_{GRAINSIZE,NUM_TASKS,HINT,NOGROUP,THREADS,DEFAULTMAP}
12541 clauses. Handle OMP_CLAUSE_IF_MODIFIER, OMP_CLAUSE_ORDERED_EXPR,
12542 OMP_CLAUSE_SCHEDULE_SIMD, OMP_CLAUSE_LINEAR_KIND,
12543 OMP_CLAUSE_DEPEND_{SOURCE,SINK}. Use "delete" for
12544 GOMP_MAP_FORCE_DEALLOC. Handle
12545 GOMP_MAP_{ALWAYS_{TO,FROM,TOFROM},RELEASE,FIRSTPRIVATE_POINTER,STRUCT}.
12546 (dump_generic_node): Handle OMP_TASKLOOP, OMP_TARGET_{ENTER,EXIT}_DATA
12547 and clauses on OMP_ORDERED and OMP_CRITICAL.
12548 * tree-vectorizer.c (adjust_simduid_builtins): Adjust comment.
12549 Remove IFN_GOMP_SIMD_ORDERED_{START,END}.
12550 (vectorize_loops): Adjust comments.
12551 (pass_simduid_cleanup::execute): Likewise.
12552 * tree-vect-stmts.c (vectorizable_simd_clone_call): Handle
12553 SIMD_CLONE_ARG_TYPE_LINEAR_{REF,VAL,UVAL}_CONSTANT_STEP.
12554 * wide-int.h (wi::gcd): New.
12556 2015-10-13 Uros Bizjak <ubizjak@gmail.com>
12558 * config/i386/i386.c (classify_argument): Use CEIL where applicable.
12559 (ix86_function_arg_advance): Ditto.
12560 (ix86_function_arg): Ditto.
12561 (ix86_gimplify_va_arg): Ditto.
12562 (ix86_class_max_nregs): Ditto.
12563 (inline_memory_move_cost): Ditto.
12564 (ix86_set_reg_reg_cost): Ditto.
12565 * config/i386/i386.h (HARD_REGNO_NREGS): Ditto.
12567 2015-10-13 Alexandre Oliva <aoliva@redhat.com>
12569 PR middle-end/67912
12570 * expmed.c (store_bit_field_1): Adjust mode of BLKmode inputs.
12572 2015-10-13 Uros Bizjak <ubizjak@gmail.com>
12574 * config/sparc/sparc.h (SPARC_STACK_ALIGN): Implement using
12575 ROUND_UP macro and UNITS_PER_WORD * 2.
12576 * config/sparc/sparc.c (sparc_compute_frame_size):
12577 Use ROUND_UP and ROUND_DOWN macros where applicable.
12578 (function_arg_record_value, function_arg_record_value_1)
12579 (function_arg_record_value_1): Ditto.
12580 (emit_save_or_restore_regs): Use ROUND_DOWN to preserve offset
12581 alignment to double-word.
12582 (sparc_gimplify_va_arg): Use ROUND_UP to calculate rsize.
12583 (sparc_emit_probe_stack_range): Use ROUND_DOWN to calculate
12586 2015-10-13 Nikolai Bozhenov <n.bozhenov@samsung.com>
12588 * rtl.h (print_insn): Fix prototype.
12590 2015-10-13 Tom de Vries <tom@codesourcery.com>
12592 * tree-parloops.c (reduction_phi): Handle cases that gimple_uid is 0 or
12593 -1. Add assert that returned entry matches phi argument.
12594 (parallelize_loops): Move calls to init_stmt_vec_info_vec and
12595 free_stmt_vec_info_vec ...
12596 (gather_scalar_reductions): ... here. Initialize gimple_uids of phis
12599 2014-10-13 Yuri Rumyantsev <ysrumyan@gmail.com>
12601 PR tree-optimization/67909, 67947
12602 * tree-ssa-loop-unswitch.c (find_loop_guard): Add check that GUARD_EDGE
12603 really skip the inner loop.
12605 2015-10-13 Jeff Law <law@redhat.com>
12607 * tree-ssa-threadbackward.c (fsm_find_control_statement_thread_paths):
12608 Allow single block jump threading paths.
12610 2015-10-13 Tom de Vries <tom@codesourcery.com>
12612 PR tree-optimization/67476
12613 * doc/invoke.texi (@item parloops-schedule): New item.
12614 * params.def (PARAM_PARLOOPS_SCHEDULE): New DEFPARAMENUM5.
12615 * tree-parloops.c: Include params-enum.h.
12616 (create_parallel_loop): Handle PARAM_PARLOOPS_SCHEDULE.
12618 2015-10-13 Tom de Vries <tom@codesourcery.com>
12620 * Makefile.in (PARAMS_H, PLUGIN_HEADERS): Add params-enum.h.
12621 * params-enum.h: New file.
12622 * opts.c (handle_param): Handle case that param arg is a string.
12623 * params-list.h: Handle DEFPARAMENUM5 in params.def.
12624 * params.c (find_param): New function, factored out of ...
12625 (set_param_value): ... here.
12626 (param_string_value_p): New function.
12627 * params.h (struct param_info): Add value_names field.
12628 (find_param, param_string_value_p): Declare.
12630 2015-10-13 Tom de Vries <tom@codesourcery.com>
12632 PR tree-optimization/67476
12633 * omp-low.c (expand_omp_for_generic): Handle original loop tree.
12635 2015-10-13 Richard Biener <rguenther@suse.de>
12637 * tree-vect-data-refs.c (vect_analyze_data_ref_dependences): Allocate
12638 the data dependence vector.
12639 (vect_peeling_hash_insert): Get the peeling hash table as argument.
12640 (vect_peeling_hash_get_lowest_cost): Likewise.
12641 (vect_enhance_data_refs_alignment): Adjust.
12642 (struct _vect_peel_info, struct _vect_peel_extended_info,
12643 struct peel_info_hasher): Move from ...
12644 * tree-vectorizer.h: ... here.
12645 (LOOP_VINFO_COST_MODEL_MIN_ITERS): Remove.
12646 (LOOP_VINFO_PEELING_HTAB): Likewise.
12647 (struct _loop_vec_info): Remove min_profitable_iters and
12648 peeling_htab members.
12649 * tree-vect-loop.c (new_loop_vec_info): Do not allocate vectors
12651 (destroy_loop_vec_info): Adjust.
12652 (vect_analyze_loop_2): Do not set LOOP_VINFO_COST_MODEL_MIN_ITERS.
12653 (vect_estimate_min_profitable_iters): Use LOOP_VINFO_COMP_ALIAS_DDRS
12654 to estimate alias versioning cost.
12655 * tree-vect-slp.c (vect_analyze_slp_cost): Dump header.
12657 2015-10-13 Richard Sandiford <richard.sandiford@arm.com>
12659 * real.h (real_isinteger): Declare.
12660 * real.c (real_isinteger): New function.
12661 * match.pd: Simplify pow(|x|,y) and pow(-x,y) to pow(x,y)
12662 if y is an even integer.
12664 2015-10-11 Jan Hubicka <hubicka@ucw.cz>
12667 2015-10-11 Jan Hubicka <hubicka@ucw.cz>
12668 * cgraphbuild.c (compute_call_stmt_bb_frequency): Use
12669 counts when these are more informative.
12671 2015-10-12 Jeff Law <law@redhat.com>
12673 * tree-ssa-threadbackward.c (get_gimple_control_stmt): New function.
12674 (fsm_find_control_stmt_paths): Change name of first argument to
12675 more accurately relfect what it really is. Handle simplification
12676 of GIMPLE_COND after finding a thread path for NAME.
12677 * tree-ssa-threadedge.c (simplify_control_stmt_condition): Allow
12678 nontrivial conditions to be handled by FSM threader.
12679 (thread_through_normal_block): Extract the name to looup via
12680 FSM threader from COND_EXPR.
12682 * tree-ssa-threadbackward.c (fsm_find_thread_path): Remove
12683 restriction that traced SSA_NAME is a user variable.
12685 2015-10-12 Tom de Vries <tom@codesourcery.com>
12687 PR tree-optimization/67476
12688 * omp-low.c (expand_omp_for_generic): Add missing phis.
12690 2015-10-12 Tom de Vries <tom@codesourcery.com>
12692 PR tree-optimization/67476
12693 * omp-low.c (expand_omp_for_generic): Handle simple latch.
12695 2015-10-12 Christophe Lyon <christophe.lyon@linaro.org>
12697 * config/aarch64/aarch64-simd-builtins.def: Update builtins
12698 tables: add tbl3 and tbx4.
12699 * config/aarch64/aarch64-simd.md (aarch64_tbl3v8qi): New.
12700 (aarch64_tbx4v8qi): New.
12701 * config/aarch64/arm_neon.h (vtbl3_s8, vtbl3_u8, vtbl3_p8)
12702 (vtbl4_s8, vtbl4_u8, vtbl4_p8, vtbx4_s8, vtbx4_u8, vtbx4_p8):
12703 Rewrite using builtin functions.
12704 * config/aarch64/iterators.md (UNSPEC_TBX): New.
12706 2015-10-12 Uros Bizjak <ubizjak@gmail.com>
12708 * config/rs6000/rs6000.h (RS6000_ALIGN): Implement using
12710 * config/rs6000/rs6000.c (rs6000_darwin64_record_arg_advance_flush):
12711 Use ROUND_UP and ROUND_DOWN macros where applicable.
12712 (rs6000_darwin64_record_arg_flush): Ditto.
12713 (rs6000_function_arg): Use ROUND_UP to calculate align_words.
12714 (rs6000_emit_probe_stack_range): Use ROUND_DOWN to calculate
12717 2015-10-12 Uros Bizjak <ubizjak@gmail.com>
12719 * config/aarch/aarch64.h (AARCH64_ROUND_UP): Remove.
12720 (AARCH64_ROUND_DOWN): Ditto.
12721 * config/aarch64/aarch64.c: Use ROUND_UP instead of AARCH64_ROUND_UP.
12723 2015-10-12 Richard Biener <rguenther@suse.de>
12726 * ipa-inline-analysis.c (estimate_function_body_sizes): Re-add
12727 code that analyzes IVs on each stmt but in a cheaper way avoiding
12728 quadratic behavior.
12730 2015-10-12 Nick Clifton <nickc@redhat.com>
12732 * config/msp430/msp430.c (msp430_mcu_names): Rename to
12733 msp430_mcu_data, add fields for ISA and hardware multiply
12734 support. Import latest data from the devices.csv file.
12735 (msp430_override_option): Use the data from the new array.
12736 (msp430_use_f5_series_hwmult): Likewise.
12737 (use_32bit_hwmult): Likewise.
12738 (msp430_no_hwmult): Likewise.
12739 * config/msp430/t-msp430 (MULTILIB_MATCHES): Add matches for new
12741 * doc/invoke.texi (MSP430 Options): Note that if the MCU name is
12742 not recognised then no hardware multiply support is assumed and
12743 that only the MSP430 ISA is allowed.
12745 2015-10-12 Richard Biener <rguenther@suse.de>
12747 * tree-vect-loop.c (vect_analyze_loop_operations): Move cost
12749 (vect_analyze_loop_2): ... here.
12751 2015-10-11 Jason Merrill <jason@redhat.com>
12754 * expr.c (store_field): Call store_constructor directly when
12755 storing a CONSTRUCTOR into a target smaller than its type.
12756 Guard against unsafe bitwise copy.
12758 2015-10-11 Jan Hubicka <hubicka@ucw.cz>
12760 * cgraphbuild.c (compute_call_stmt_bb_frequency): Use
12761 counts when these are more informative.
12763 2015-10-11 Jan Hubicka <hubicka@ucw.cz>
12765 * tree-profile.c (tree_profiling): Do not clear
12766 pure/const when not instrumenting.
12767 (pass tree_profile): Add dump of symtab.
12769 2015-10-11 Jan Hubicka <hubicka@ucw.cz>
12771 * fold-const.c (fold_comparsion): Pass OEP_ADDRESS_OF when comparing
12773 (fold_addr_of_array_ref_difference): Likewise.
12775 2015-10-11 Jeff Law <law@redhat.com>
12777 * tree-ssa-threadedge.c (fsm_find_thread_path): Moved from here into
12778 tree-ssa-threadbackward.c.
12779 (fsm_find_control_statement_thread_paths): Likewise.
12780 (thread_through_normal_block): Break out FSM bits and move them
12781 into a new function in tree-ssa-threadbackward.c. Call new function
12783 Minimize header file usage.
12784 * tree-ssa-threadbackward.h: New file.
12785 * tree-ssa-threadbackward.c: Likewise.
12786 * Makefile.in (OBJS): Add tree-ssa-threadbackward.o
12788 2015-10-11 Uros Bizjak <ubizjak@gmail.com>
12790 * config/alpha/alpha.h (ALPHA_ROUND): Implement using ROUND_UP macro.
12792 2015-10-11 Segher Boessenkool <segher@kernel.crashing.org>
12794 PR rtl-optimization/67864
12795 * bb-reorder (reorder_basic_blocks_simple): Prefer existing
12796 fallthrough edges for conditional jumps. Don't sort candidate
12797 edges if not optimizing for speed.
12799 2015-10-10 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
12801 * defaults.h (REVERSE_CONDITION): New default definition.
12802 * jump.c (reversed_comparison_code_parts): Adjust.
12804 2015-10-10 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
12806 * builtins.c (expand_builtin_setjmp_receiver): Don't use #if to
12807 check HARD_FRAME_POINTER_IS_ARG_POINTER.
12809 2015-10-10 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
12811 * defaults.h (FRAME_ADDR_RTX): New default definition.
12812 * builtins.c (expand_builtin_return_addr): Adjust.
12814 2015-10-10 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
12816 * defaults.h (DYNAMIC_CHAIN_ADDRESS): New default definition.
12817 * builtins.c (expand_builtin_return_addr): Adjust.
12819 2015-10-10 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
12821 * defaults.h (SETUP_FRAME_ADDRESSES): New default definition.
12822 * builtins.c (expand_builtin_return_addr): Adjust.
12823 * doc/tm.texi: Likewise.
12824 * doc/tm.texi.in: Likewise.
12825 * except.c (expand_builtin_unwind_init): Likewise.
12827 2015-10-10 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
12829 * builtins.c (expand_builtin_return_addr): Adjust.
12830 * defaults.h (INITIAL_FRAME_ADDRESS_RTX): New default definition.
12832 2015-10-10 Jan Hubicka <hubicka@ucw.cz>
12834 * tree.c (type_with_interoperable_signedness): New.
12835 (gimple_canonical_types_compatible_p): Use it.
12836 * tree.h (type_with_interoperable_signedness): Declare
12838 2015-10-10 Jan Hubicka <hubicka@ucw.cz>
12840 * fold-const.c (operand_equal_p): Document OEP_ADDRESS_OF
12841 and OEP_CONSTANT_ADDRESS_OF; skip type compatibility checks
12842 when OEP_ADDRESS_OF is se.
12844 2015-10-10 Aditya Kumar <aditya.k7@samsung.com>
12845 Sebastian Pop <s.pop@samsung.com>
12847 * graphite-dependences.c (scop_get_dependences): Add dump of the
12848 data dependence graph.
12849 * graphite-poly.c (print_isl_union_map): New.
12850 (debug_isl_union_map): New.
12851 * graphite-poly.h (print_isl_union_map): Declare.
12852 (debug_isl_union_map): Declare.
12854 2015-10-10 Aditya Kumar <aditya.k7@samsung.com>
12855 Sebastian Pop <s.pop@samsung.com>
12857 * graphite-poly.c (print_iteration_domain): Remove verbosity.
12858 Remove OpenScop formatting.
12859 (print_iteration_domains): Same.
12860 (debug_iteration_domain): Same.
12861 (debug_iteration_domains): Same.
12864 (dump_gbb_cases): Same.
12865 (dump_gbb_conditions): Same.
12866 (print_pdrs): Same.
12867 (debug_pdrs): Same.
12868 (print_pbb_body): Same.
12870 (print_scop_params): Same.
12871 (print_scop_context): Same.
12872 (print_scop): Same.
12873 (debug_pbb_domain): Same.
12875 (debug_scop_context): Same.
12876 (debug_scop): Same.
12877 (debug_scop_params): Same.
12878 * graphite-poly.h: Same.
12879 * graphite.c (graphite_transform_loops): Same.
12881 2015-10-10 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
12883 * function.c (stack_protect_epilogue): Remove as_a<rtx_insn *> ()
12884 call that isn't needed.
12886 2015-10-09 Jeff Law <law@redhat.com>
12888 * tree-ssanames.c (flush_ssaname_freelist): Use splice and truncate
12889 rather than moving each name to the freelist individually.
12891 2015-10-09 Steve Ellcey <sellcey@imgtec.com>
12893 * config.gcc (mips*-*-*): Add frame-header-opt.o to extra_objs.
12894 * frame-header-opt.c: New file.
12895 * config/mips/mips-proto.h (mips_register_frame_header_opt):
12897 * config/mips/mips.c (mips_compute_frame_info): Check
12898 optimize_call_stack flag.
12899 (mips_option_override): Register new frame_header_opt pass.
12900 (mips_frame_info, mips_int_mask, mips_shadow_set,
12901 machine_function): Move these types to...
12902 * config/mips/mips.h: here.
12903 (machine_function): Add does_not_use_frame_header and
12904 optimize_call_stack fields.
12905 * config/mips/t-mips (frame-header-opt.o): Add new make rule.
12906 * doc/invoke.texi (-mframe-header-opt, -mno-frame-header-opt):
12907 Document new flags.
12908 * config/mips/mips.opt (mframe-header-opt): Add new option.
12910 2015-10-09 Uros Bizjak <ubizjak@gmail.com>
12912 * config/i386/i386.c
12913 (expand_set_or_movmem_prologue_epilogue_by_misaligned_moves): Use
12914 ROUND_DOWN where applicable.
12916 2015-10-09 Jeff Law <law@redhat.com>
12918 * tree-vect-stmts.c (free_stmt_vec_info): Free the LHS of the
12921 2015-10-09 Renlin Li <renlin.li@arm.com>
12923 * config/arm/neon.md (neon_vuzp<mode>_insn): Add & modifier for
12924 operands[0] and operands[2].
12925 (neon_vtrn<mode>_insn): Likewise.
12926 (neon_vzip<mode>_insn): Likewise.
12928 2015-10-09 Andre Vieira <andre.simoesdiasvieira@arm.com>
12930 * match.pd: ((X inner_op C0) outer_op C1) New pattern.
12931 ((X & C2) << C1): Expand to...
12932 (X {&,^,|} C2 << C1): ...This.
12933 ((X & C2) >> C1): Expand to...
12934 (X {&,^,|} C2 >> C1): ...This.
12936 2015-10-09 Alexander Fomin <alexander.fomin@intel.com>
12939 * config/i386/sse.md (define_insn "sse_cvtsi2ss<round_name>"):
12940 Adjust embedded rounding/SAE specifier position.
12941 (define_insn "sse_cvtsi2ssq<round_name>"): Likewise.
12942 (define_insn "cvtusi2<ssescalarmodesuffix>32<round_name>"): Likewise.
12943 (define_insn "cvtusi2<ssescalarmodesuffix>64<round_name>"): Likewise.
12944 (define_insn "sse2_cvtsi2sdq<round_name>"): Likewise.
12945 (define_insn "avx512dq_rangep<mode><mask_name><round_saeonly_name>"):
12947 (define_insn "avx512dq_ranges<mode><round_saeonly_name>"): Likewise.
12949 2015-10-09 Martin Jambor <mjambor@suse.cz>
12951 tree-optimization/67794
12952 * tree-sra.c (replace_removed_params_ssa_names): Do not distinguish
12953 between types of state,ents but accept original definitions as a
12955 (ipa_sra_modify_function_body): Use FOR_EACH_SSA_DEF_OPERAND to
12956 iterate over definitions.
12958 2015-10-09 James Norris <jnorris@codesourcery.com>
12960 * config/rs6000/rs6000.c (rs6000_offload_options): New.
12961 (TARGET_OFFLOAD_OPTIONS): New.
12963 2015-10-09 Alexandre Oliva <aoliva@redhat.com>
12965 PR middle-end/67891
12966 * cfgexpand.c (set_parm_rtl): Drop is_gimple_reg test.
12968 PR middle-end/67766
12969 * function.c (expand_function_end): Move return value
12970 promotion past the handling of PARALLELs and CONCATs.
12972 PR rtl-optimization/67828
12973 * tree-ssa-loop-unswitch.c: Include tree-ssa.h.
12974 (tree_may_unswitch_on): Don't unswitch on expressions
12975 involving undefined values.
12977 2015-10-09 Richard Biener <rguenther@suse.de>
12979 * genmatch.c (print_operand): Fix formatting.
12980 (dt_node::append_simplify): Warn for multiple simplifiers
12981 that match the same pattern.
12982 * match.pd (log (exp @0)): Remove duplicates.
12984 2015-10-09 Richard Biener <rguenth@suse.de>
12987 * gimple-fold.c (optabs-query.h): Include
12988 (gimple_fold_builtin_memory_op): Allow unaligned stores
12989 when movmisalign_optabs are available.
12991 2015-10-09 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
12994 * config/arm/arm.md (movmisalign<mode>): New.
12995 * config/arm/iterators.md (HSI): New.
12997 2015-10-09 Richard Biener <rguenther@suse.de>
12999 PR tree-optimization/67891
13000 * gimple-match.h (gimple_simplified_result_is_gimple_val):
13002 (gimple_resimplify1): Declare.
13003 (gimple_resimplify2): Likewise.
13004 (gimple_resimplify3): Likewise.
13005 * gimple-match-head.c (gimple_resimplify1): Export.
13006 (gimple_resimplify2): Likewise.
13007 (gimple_resimplify3): Likewise.
13008 (maybe_push_res_to_seq): Use gimple_simplified_result_is_gimple_val.
13009 * gimple-fold.c (gimple_fold_stmt_to_constant_1): Likewise.
13010 * tree-ssa-sccvn.c (visit_reference_op_load): Use gimple_resimplify1
13011 to avoid creating stmts without VN info.
13013 2015-10-08 Jan Hubicka <hubicka@ucw.cz>
13015 * ipa-icf.c (sem_item::compare_symbol_references): Fix use
13018 2015-10-08 Jeff Law <law@redhat.com>
13020 * value-prof.c (gimple_ic): Add missing calls to unlink_stmt_vdef
13021 and release_ssa_name in two places.
13022 (gimple_stringop_fixed_value): Similarly.
13024 * tree-ssa-loop-im.c (rewrite_bittest): Add missing call to
13027 * tree-stdarg.c (expand_ifn_va_arg_1): Add missing call to
13028 unlink_stmt_vdef and release_ssa_name_fn.
13030 * tree-ssa-dse.c (dse_optimize_stmt): Add missing call to
13033 2015-10-08 H.J. Lu <hongjiu.lu@intel.com>
13035 * config/i386/i386.c (ix86_compute_frame_layout): Round up the
13036 SSE register save area to 16 bytes only if the incoming stack
13037 boundary is no less than 16 bytes.
13039 2015-10-08 Jeff Law <law@redhat.com>
13041 * tree-ssa-phiopt.c (factor_out_conversion): Add missing calls to
13042 release_ssa_name. Fix typo in comment.
13044 2015-10-08 Nathan Sidwell <nathan@acm.org>
13046 * config/nvptx/nvptx.h (struct machine_function): Add comment.
13047 * config/nvptx/nvptx.c (nvptx_declare_function_name): Functions
13048 may return pointer as well as in memory.
13049 (nvptx_output_return): Likewise.
13051 2015-10-08 Richard Sandiford <richard.sandiford@arm.com>
13053 * builtins.c (fold_builtin_sqrt, fold_builtin_cbrt): Delete.
13054 (fold_builtin_1): Update accordingly. Handle constant arguments here.
13055 * match.pd: Add rules previously handled by fold_builtin_sqrt
13056 and fold_builtin_cbrt.
13058 2015-10-08 Richard Sandiford <richard.sandiford@arm.com>
13060 * params.def (PARAM_MAX_SSA_NAME_QUERY_DEPTH): New param.
13061 * doc/invoke.texi (--param max-ssa-name-query-depth): Document.
13062 * fold-const.h (tree_unary_nonnegative_warnv_p)
13063 (tree_single_nonnegative_warnv_p, tree_call_nonnegative_warnv_p)
13064 (tree_expr_nonnegative_warnv_p): Add depth parameters.
13065 * fold-const.c: Include gimple-fold.h and params.h.
13066 (tree_ssa_name_nonnegative_warnv_p): New function.
13067 (tree_unary_nonnegative_warnv_p, tree_binary_nonnegative_warnv_p)
13068 (tree_single_nonnegative_warnv_p, tree_call_nonnegative_warnv_p)
13069 (tree_invalid_nonnegative_warnv_p, tree_expr_nonnegative_warnv_p):
13070 Add a depth parameter and increment it for recursive calls to
13071 tree_expr_nonnegative_warnv_p. Use tree_ssa_name_nonnegative_warnv_p
13072 to handle SSA names.
13073 * gimple-fold.h (gimple_val_nonnegative_real_p): Delete.
13074 (gimple_stmt_nonnegative_warnv_p): Declare.
13075 * tree-vrp.c (remove_range_assertions): Remove assert that condition
13076 cannot be proven false.
13077 (gimple_assign_nonnegative_warnv_p, gimple_call_nonnegative_warnv_p)
13078 (gimple_stmt_nonnegative_warnv_p): Move to...
13079 * gimple-fold.c: ...here. Add depth parameters and pass them
13080 down to the tree routines. Accept statements that aren't
13081 assignments or calls but just return false for them.
13082 (gimple_val_nonnegative_real_p): Delete.
13083 * tree-ssa-math-opts.c (gimple_expand_builtin_pow): Use
13084 tree_expr_nonnegative_p instead of gimple_val_nonnegative_real_p.
13085 Check HONOR_NANs first.
13087 2015-10-08 Martin Jambor <mjambor@suse.cz>
13089 * ipa-cp.c (meet_with_1): Make the argument of abs signed. Remove
13092 2015-10-08 Yuri Rumyantsev <ysrumyan@gmail.com>
13094 * tree-vect-loop.c (vect_analyze_loop_operations): Skip virtual phi
13095 in the tail of outer-loop.
13097 2015-10-08 David Edelsohn <dje.gcc@gmail.com>
13099 * config/rs6000/rs6000.c (rs6000_xcoff_debug_unwind_info): Always
13102 2015-10-08 Yuri Rumyantsev <ysrumyan@gmail.com>
13104 * tree-ssa-loop-unswitch.c: Include "gimple-iterator.h" and
13105 "cfghooks.h", add prototypes for introduced new functions.
13106 (tree_ssa_unswitch_loops): Use from innermost loop iterator, move all
13107 checks on ability of loop unswitching to tree_unswitch_single_loop;
13108 invoke tree_unswitch_single_loop or tree_unswitch_outer_loop depending
13109 on innermost loop check.
13110 (tree_unswitch_single_loop): Add all required checks on ability of
13111 loop unswitching under zero recursive level guard.
13112 (tree_unswitch_outer_loop): New function.
13113 (find_loop_guard): Likewise.
13114 (empty_bb_without_guard_p): Likewise.
13115 (used_outside_loop_p): Likewise.
13116 (get_vop_from_header): Likewise.
13117 (hoist_guard): Likewise.
13118 (check_exit_phi): Likewise.
13120 2015-10-08 Marek Polacek <polacek@redhat.com>
13122 * tree-ssa-reassoc.c (dump_ops_vector): Print newline after each
13125 2015-10-08 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
13128 * config/s390/s390.c (s390_atomic_assign_expand_fenv): Use
13129 create_tmp_var_raw instead of create_tmp_var.
13131 2015-10-07 Jan Hubicka <hubicka@ucw.cz>
13133 * expr.c (store_expr_with_bounds): Handle aggregate moves from
13135 * gimple-expr.c (useless_type_conversion_p): Do not use TYPE_CANONICAL
13136 to define gimple type system; compare aggregates only by size.
13138 2015-10-07 Jeff Law <law@redhat.com>
13140 * tree-ssa-dom.c (optimize_stmt): Don't set LOOPS_NEED_FIXUP here.
13141 * tree-ssa-threadupdate.c (remove_ctrl_stmt_and_useless_edges): Do it
13142 here instead. Tighten test to avoid setting LOOPS_NEED_FIXUP
13145 2015-10-07 Aditya Kumar <aditya.k7@samsung.com>
13146 Sebastian Pop <s.pop@samsung.com>
13148 * graphite-dependences.c (scop_get_dependences): Do not use SCOP_BBS.
13149 * graphite-isl-ast-to-gimple.c (get_max_schedule_dimensions): Same.
13150 (generate_isl_schedule): Same.
13151 * graphite-optimize-isl.c (scop_get_domains): Same.
13152 (apply_schedule_map_to_scop): Same.
13153 * graphite-poly.c (print_iteration_domains): Same.
13154 (remove_gbbs_in_scop): Same.
13157 (print_scop): Same.
13158 * graphite-poly.h (struct scop): Rename bbs to pbbs.
13159 (SCOP_BBS): Remove.
13160 * graphite-scop-detection.c (compare_bb_depths): Remove.
13161 (graphite_sort_dominated_info): Remove.
13162 (try_generate_gimple_bb): Move out of scop_detection.
13163 (all_non_dominated_preds_marked_p): Remove.
13164 (build_scop_bbs_1): Remove.
13165 (build_scop_bbs): Remove.
13166 (nb_pbbs_in_loops): Do not use SCOP_BBS.
13167 (find_scop_parameters): Same.
13168 (sese_dom_walker): Rename gather_bbs.
13169 (before_dom_children): Call try_generate_gimple_bb and collect gbb
13171 (build_scops): Call gather_bbs.
13172 * graphite-sese-to-poly.c (build_scop_scattering): Do not use SCOP_BBS.
13173 (add_conditions_to_constraints): Same.
13174 (build_scop_iteration_domain): Same.
13175 (build_scop_drs): Same.
13176 (new_pbb_from_pbb): Same.
13177 * sese.c (new_sese_info): Create bbs.
13178 * sese.h (struct sese_info_t): Add bbs.
13180 2015-10-07 David Edelsohn <dje.gcc@gmail.com>
13182 * config/rs6000/xcoff.h (ASM_PREFERRED_EH_DATA_FORMAT): Use 64-bit
13183 encoding in 64-bit mode.
13185 2015-10-07 Uros Bizjak <ubizjak@gmail.com>
13188 * config/i386/i386.c (ix86_option_override_internal): Always use
13189 8-byte minimum stack boundary in 64-bit mode.
13190 (ix86_compute_frame_layout): Remove assert on INCOMING_STACK_BOUNDARY.
13191 (ix86_emit_save_reg_using_mov): Support unaligned SSE store.
13192 Add a REG_CFA_EXPRESSION note if needed.
13193 (ix86_emit_restore_sse_regs_using_mov): Support unaligned SSE load.
13194 (ix86_handle_force_align_arg_pointer_attribute): New.
13195 (ix86_minimum_incoming_stack_boundary): Remove TARGET_64BIT check.
13196 (ix86_attribute_table): Set ix86_force_align_arg_pointer_string
13197 with ix86_handle_force_align_arg_pointer_attribute.
13198 * config/i386/i386.h (MIN_STACK_BOUNDARY): Set to BITS_PER_WORD.
13200 2015-10-07 Aditya Kumar <aditya.k7@samsung.com>
13201 Sebastian Pop <s.pop@samsung.com>
13203 * graphite-scop-detection.c (parameter_index_in_region): Remove
13204 use of SESE_ADD_PARAMS.
13205 (find_scop_parameters): Same.
13206 * sese.c (new_sese_info): Same.
13207 * sese.h (struct sese_info_t): Remove add_params.
13208 (SESE_ADD_PARAMS): Remove.
13210 2015-10-07 Aditya Kumar <aditya.k7@samsung.com>
13211 Sebastian Pop <s.pop@samsung.com>
13213 * graphite-isl-ast-to-gimple.c (translate_isl_ast_to_gimple): Use
13216 (copy_internal_parameters): Same.
13217 (translate_isl_ast_to_gimple): Use an sese_l.
13218 (build_iv_mapping): Same.
13219 * graphite-poly.c (new_sese): Rename new_sese_info.
13220 (free_sese): Rename free_sese_info.
13221 * graphite-poly.h (struct scop): Use an sese_info_p.
13222 (scop_set_region): Same.
13223 * graphite-scop-detection.c (struct sese_l): Moved...
13224 (get_entry_bb): Moved...
13225 (get_exit_bb): Moved...
13226 (parameter_index_in_region_1): Use an sese_info_p.
13227 (parameter_index_in_region): Same.
13228 (scan_tree_for_params): Same.
13229 (find_params_in_bb): Same.
13230 (sese_dom_walker): Use an sese_l.
13231 * graphite-sese-to-poly.c (remove_invariant_phi): Same.
13232 (reduction_phi_p): Same.
13233 (parameter_index_in_region_1): Use an sese_info_p.
13234 (propagate_expr_outside_region): Use an sese_l.
13235 * graphite.c: Replace uses of SCOP_REGION.
13236 * sese.c (sese_record_loop): Use an sese_info_p.
13237 (build_sese_loop_nests): Same.
13238 (sese_build_liveouts_use): Same.
13239 (sese_build_liveouts_bb): Same.
13240 (sese_build_liveouts_bb): Same.
13241 (sese_bad_liveouts_use): Same.
13242 (sese_reset_debug_liveouts_bb): Same.
13243 (sese_build_liveouts): Same.
13244 (new_sese): Renamed new_sese_info.
13245 (free_sese): Renamed free_sese_info.
13246 (set_rename): Use an sese_info_p.
13247 (graphite_copy_stmts_from_block): Same.
13248 (copy_bb_and_scalar_dependences): Same.
13249 (outermost_loop_in_sese_1): Use an sese_l.
13250 (outermost_loop_in_sese): Same.
13251 (if_region_set_false_region): Use an sese_info_p.
13252 (move_sese_in_condition): Same.
13253 (scalar_evolution_in_region): Use an sese_l.
13254 * sese.h (struct sese_l): ... here.
13255 (SESE_ENTRY): Remove.
13256 (SESE_ENTRY_BB): Remove.
13257 (SESE_EXIT): Remove.
13258 (SESE_EXIT_BB): Remove.
13259 (sese_contains_loop): Use an sese_info_p.
13260 (sese_nb_params): Same.
13261 (bb_in_sese_p): Use an sese_l.
13262 (stmt_in_sese_p): Same.
13263 (defined_in_sese_p): Same.
13264 (loop_in_sese_p): Same.
13265 (sese_loop_depth): Same.
13266 (struct ifsese_s): Use an sese_info_p.
13267 (gbb_loop_at_index): Use an sese_l.
13268 (nb_common_loops): Same.
13269 (scev_analyzable_p): Same.
13271 2015-10-07 H.J. Lu <hongjiu.lu@intel.com>
13273 * config/i386/i386.c (ix86_conditional_register_usage): Use
13274 CALL_USED_REGISTERS_MASK.
13275 * config/i386/i386.h (CALL_USED_REGISTERS_MASK): New macro.
13277 2015-10-07 H.J. Lu <hongjiu.lu@intel.com>
13280 * configure.ac (gcc_cv_readelf): Check $READELF_FOR_TARGET.
13281 * configure: Regenerated.
13283 2015-10-07 H.J. Lu <hongjiu.lu@intel.com>
13286 * config/i386/i386.c (ix86_maybe_switch_abi): Merged with ...
13287 (ix86_set_current_function): This.
13288 (TARGET_EXPAND_TO_RTL_HOOK): Removed.
13290 2015-10-07 Richard Biener <rguenther@suse.de>
13292 * tree-vectorizer.h (stmt_vec_info_vec): Use vec<stmt_vec_info>.
13293 (vinfo_for_stmt): Adjust.
13294 (set_vinfo_for_stmt): Likewise.
13295 * tree-vectorizer.c (stmt_vec_info_vec): Likewise.
13296 * tree-vect-stmts.c (free_stmt_vec_info_vec): Likewise.
13297 * tree-vect-loop.c (new_loop_vec_info): Remove special-casing
13299 (vect_analyze_loop_1): Remove.
13300 (vect_analyze_loop_form_1): Avoid building a loop_vec_info for
13301 inner loop when vectorizing an outer loop by splitting out from ...
13302 (vect_analyze_loop_form): ... here.
13304 2015-10-07 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
13307 * config/arm/arm-builtins.c (arm_atomic_assign_expand_fenv):
13308 Use create_tmp_var_raw instead of create_tmp_var.
13310 2015-10-07 Richard Sandiford <richard.sandiford@arm.com>
13312 * real.h (dconst_quarter, dconst_sixth, dconst_ninth): New macros.
13313 (dconst_quarter_ptr, dconst_sixth_ptr, dconst_ninth_ptr): Declare.
13314 * real.c (CACHED_FRACTION): New helper macro.
13315 (dconst_third_ptr): Use it.
13316 (dconst_quarter_ptr, dconst_sixth_ptr, dconst_ninth_ptr): New.
13317 * builtins.c (fold_builtin_sqrt): Use dconst_quarter and
13319 (fold_builtin_cbrt): Use dconst_sixth and dconst_ninth.
13321 2015-10-06 Jeff Law <law@redhat.com>
13323 PR tree-optimization/67816
13324 * tree-ssa-threadupdate.h (remove_jump_threads_including): Renamed
13325 from remove_jump_threads_starting_at. Accept an edge rather than
13327 * tree-ssa-threadupdate.c (removed_edges): New hash table.
13328 (remove_jump_threads_including): Note edges that get removed from
13329 the CFG for later pruning of jump threading paths including them.
13330 (thread_through_all_blocks): Remove paths which include edges that
13332 * tree-ssa-dom.c (optimize_stmt): Call remove_jump_threads_including
13333 on each outgoing edges when optimizing away a control statement.
13335 2015-10-06 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
13337 * reorg.c (emit_delay_sequence): Store list of delay slot insns
13338 in a vector instead of rtx_insn_list.
13339 (add_to_delay_list): Likewise.
13340 (delete_from_delay_slot): Likewise.
13341 (optimize_skip): Likewise.
13342 (redirect_with_delay_list_safe_p): Likewise.
13343 (check_annul_list_true_false): Likewise.
13344 (steal_delay_list_from_target): Likewise.
13345 (steal_delay_list_from_fallthrough): Likewise.
13346 (redundant_insn): Likewise.
13347 (fill_simple_delay_slots): Likewise.
13348 (fill_slots_from_thread): Likewise.
13349 (fill_eager_delay_slots): Likewise.
13350 (relax_delay_slots): Likewise.
13352 2015-10-06 Sandra Loosemore <sandra@codesourcery.com>
13354 * config/nios2/nios2.c (nios2_symbol_ref_in_small_data_p):
13355 For -mgpopt=local, also exclude unintialized common symbols.
13356 * doc/invoke.texi (Nios II Options): Document the change.
13358 2015-10-07 Kugan Vivekanandarajah <kuganv@linaro.org>
13360 * config/aarch64/iterators.md (vwcore): Add missing cases for
13363 2015-10-06 Aditya Kumar <aditya.k7@samsung.com>
13364 Sebastian Pop <s.pop@samsung.com>
13366 * graphite-poly.c (new_scop): Initialize drs.
13367 * graphite-poly.h (struct dr_info): New.
13368 (struct scop): Add drs.
13369 * graphite-sese-to-poly.c (pdr_add_alias_set): Use dr_info.
13370 (pdr_add_memory_accesses): Same.
13371 (build_poly_dr): Same.
13372 (build_alias_set): Same.
13373 (build_scop_drs): Same.
13374 (build_pbb_drs): Remove.
13375 * tree-data-ref.c (create_data_ref): Do not initialize alias_set.
13376 * tree-data-ref.h (data_reference): Remove alias_set.
13378 2015-10-06 Aditya Kumar <aditya.k7@samsung.com>
13379 Sebastian Pop <s.pop@samsung.com>
13381 * graphite-poly.c (free_data_refs_aux): Remove.
13382 (free_gimple_poly_bb): Do not call free_data_refs_aux.
13383 * graphite-poly.h (struct base_alias_pair): Remove.
13384 * graphite-sese-to-poly.c (pdr_add_alias_set): Remove all uses of
13385 base_alias_pair and dr->aux.
13386 (build_alias_set): Same.
13387 * tree-data-ref.c (create_data_ref): Initialize alias_set.
13388 * tree-data-ref.h (data_reference): Add alias_set.
13390 2015-10-06 Aditya Kumar <aditya.k7@samsung.com>
13391 Sebastian Pop <s.pop@samsung.com>
13393 * graphite-poly.c (new_poly_dr): Remove dr_base_object_set.
13394 Do not set PDR_BASE_OBJECT_SET.
13395 * graphite-poly.h (poly_dr): Same.
13396 (PDR_BASE_OBJECT_SET): Remove.
13397 (new_poly_dr): Update decl.
13398 * graphite-sese-to-poly.c (build_poly_dr): Update call to
13400 (write_alias_graph_to_ascii_dimacs): Remove.
13401 (write_alias_graph_to_ascii_dot): Remove.
13402 (write_alias_graph_to_ascii_ecc): Remove.
13403 (dr_same_base_object_p): Remove.
13404 (build_alias_set_optimal_p): Rename build_alias_set. Remove dead
13406 (build_base_obj_set_for_drs): Remove.
13407 (dump_alias_graphs): Remove.
13408 (build_scop_drs): Remove dead code.
13410 2015-10-05 Michael Meissner <meissner@linux.vnet.ibm.com>
13411 Peter Bergner <bergner@vnet.ibm.com>
13414 * config/rs6000/rs6000.md (extenddftf2): In the expander, only
13415 allow registers, but provide insns for the combiner to create for
13416 loads from memory. Separate VSX code from non-VSX code. For
13417 non-VSX code, combine extenddftf2_fprs into extenddftf2 and rename
13418 externaldftf2_internal to externaldftf2_fprs. Reorder constraints
13419 so that registers come before memory operations. Drop support from
13420 converting DFmode to TFmode, if the DFmode value is in a GPR
13422 (extenddftf2_fprs): Likewise.
13423 (extenddftf2_internal): Likewise.
13424 (extenddftf2_vsx): Likewise.
13425 (extendsftf2): In the expander, only allow registers, but provide
13426 insns for the combiner to create for stores and loads.
13428 2015-10-06 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
13430 * varasm.c (default_elf_asm_named_section): Remove ATTRIBUTE_UNUSED
13431 from the decl parameter.
13433 2015-10-06 Nathan Sidwell <nathan@codesourcery.com>
13436 * gimple-fold.c (gimple_fold_builtin): Add break after
13437 BUILT_IN_PRINTF_CHK, BUILT_IN_VPRINTF_CHK folding.
13439 2015-10-06 H.J. Lu <hongjiu.lu@intel.com>
13441 * graphite-optimize-isl.c (optimize_isl): Rename scop->ctx
13442 to scop->isl_context.
13444 2015-10-06 Eric Botcazou <ebotcazou@adacore.com>
13446 * config/arm/arm.c (arm_emit_probe_stack_range): Adjust comment.
13447 (output_probe_stack_range): Rotate the loop and simplify.
13448 (thumb1_expand_prologue): Tweak sorry message.
13449 * config/arm/arm.md (probe_stack): Use bare string.
13451 2015-10-06 Nick Clifton <nickc@redhat.com>
13453 * config.gcc (lm32-elf): Add newlib-stdint.h to tm_file.
13455 2015-10-06 Nick Clifton <nickc@redhat.com>
13457 * config/msp430/msp430.c (ATTR_NOINIT): New constant.
13458 (ATTR_PERSIST): New constant.
13459 (msp430_data_attr): New function - verifies an attribute that only
13460 applies to variables.
13461 (msp430_attributes): Add noinit and persistent attributes.
13462 (noinit_section): New variable.
13463 (presis_section): New variable.
13464 (TARGET_ASM_INIT_SECTIONS): Define.
13465 (msp430_init_sections): New function - initialises the noinit and
13466 persist section variables.
13467 (msp430_select_section): Add support for noinit and persist
13469 (msp430_section_type_flags): Likewise.
13470 * doc/extend.texi: Document the reent, critical, wakeup, noinit
13471 and persistent attributes.
13473 2015-10-05 Aditya Kumar <aditya.k7@samsung.com>
13474 Sebastian Pop <s.pop@samsung.com>
13476 * graphite-dependences.c (scop_get_transformed_schedule): Remove.
13477 (no_violations): Remove.
13478 (subtract_commutative_associative_deps): Remove.
13479 (compute_deps): Do not call subtract_commutative_associative_deps.
13480 (transform_is_safe): Remove.
13481 (graphite_legal_transform): Remove.
13482 * graphite-poly.h (graphite_legal_transform): Remove.
13484 2015-10-05 Aditya Kumar <hiraditya@msn.com>
13486 * graphite-sese-to-poly.c (build_loop_iteration_domains): Only loops
13487 which are in this region are passed so gcc_assert and remove redundant
13489 * sese.c (sese_build_liveouts): Pass only those bbs which are not
13491 (sese_bad_liveouts_use): Only BBs which are not in region are passed so
13492 gcc_assert on that and remove unnecessary computation.
13493 (sese_build_liveouts_use): Same.
13495 2015-10-05 Aditya Kumar <aditya.k7@samsung.com>
13497 * graphite-dependences.c (scop_get_reads): Renamed scop->context
13498 to scop->param_context.
13499 (scop_get_must_writes): Same.
13500 (scop_get_may_writes): Same.
13501 (scop_get_original_schedule): Same.
13502 (scop_get_transformed_schedule): Same.
13503 (subtract_commutative_associative_deps): Same.
13504 * graphite-isl-ast-to-gimple.c (add_parameters_to_ivs_params): Same.
13505 (generate_isl_context): Same.
13506 (generate_isl_schedule): Same.
13507 (scop_to_isl_ast): Same.
13508 (graphite_regenerate_ast_isl): Same.
13509 * graphite-optimize-isl.c (scop_get_domains): Same.
13510 (optimize_isl): Renamed scop->context to scop->param_context.
13511 * graphite-poly.c (new_poly_bb): Change the type of argument to
13513 (new_scop): Renamed scop->context to scop->param_context.
13515 (print_scop_context): Same.
13516 * graphite-poly.h (new_poly_dr): Change the type of argument from
13517 void* to data_reference_p.
13518 (struct poly_bb): Change the type of black_box to gimple_poly_bb_p.
13519 (new_poly_bb): Change the type of argument from void* to
13521 (pbb_set_black_box): Same.
13522 (struct scop): Rename context to param_context, ctx to isl_context.
13523 * graphite-scop-detection.c (scop_detection::build_scop_bbs_1):
13524 Move declarations closer to assignment.
13525 (find_params_in_bb): Same.
13526 (find_scop_parameters): Same.
13527 * graphite-sese-to-poly.c (unsigned ssa_name_version_typesize):
13528 Global to be used for statement IDs.
13529 (isl_id_for_pbb): Use ssa_name_version_typesize.
13530 (simple_copy_phi_p): Move declarations closer to assignment.
13531 (build_pbb_scattering_polyhedrons): Same.
13532 (build_scop_scattering): Same.
13533 (isl_id_for_ssa_name): Same.
13534 (extract_affine_name): Same.
13535 (extract_affine_int): Same.
13536 (extract_affine): Same.
13537 (set_scop_parameter_dim): Use renamed member.
13538 (build_loop_iteration_domains): Same.
13539 (add_param_constraints): Same.
13540 (build_scop_iteration_domain): Same.
13541 (pdr_add_data_dimensions): Same.
13542 (build_poly_dr): Same.
13543 (build_scop_drs): Move declarations closer to assignment.
13544 (analyze_drs_in_stmts): Same.
13545 (insert_out_of_ssa_copy): Same.
13546 (insert_out_of_ssa_copy_on_edge): Same.
13547 (propagate_expr_outside_region): Same.
13548 (rewrite_phi_out_of_ssa): Same.
13549 (rewrite_degenerate_phi): Same.
13550 (rewrite_reductions_out_of_ssa): Same.
13551 (rewrite_cross_bb_scalar_dependence): Same.
13552 (handle_scalar_deps_crossing_scop_limits): Same.
13553 (rewrite_cross_bb_scalar_deps): Same.
13554 * graphite.c (graphite_transform_loops): Use renamed member.
13556 2015-10-06 Uros Bizjak <ubizjak@gmail.com>
13559 * config/alpha/alpha.c (alpha_atomic_assign_expand_fenv): Use
13560 create_tmp_var_raw instead of create_tmp_var.
13562 2015-10-06 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
13565 * config/aarch64/aarch64-builtins.c (aarch64_atomic_assign_expand_fenv):
13566 Use create_tmp_var_raw instead of create_tmp_var.
13568 2015-10-06 Alexander Fomin <alexander.fomin@intel.com>
13571 * config/i386/sse.md (define_split vec_select/V8FI): Restrict
13572 split for upper-bank registers when target does not support
13574 (define_insn "vec_extract_lo_<mode><mask_name>"): Restrict
13575 split when target does not support AVX512VL.
13577 2015-10-06 David Edelsohn <dje.gcc@gmail.com>
13580 * config/rs6000/rs6000.c (rs6000_atomic_assign_expand_fenv):
13581 Adjust to use create_tmp_var_raw instead of create_tmp_var.
13583 2015-10-06 Nick Clifton <nickc@redhat.com>
13585 * config/rl78/rl78.c (rl78_rtx_costs): Improve cost estimates for
13588 2015-10-06 Venkataramanan Kumar <Venkataramanan.kumar@amd.com>
13590 * config.gcc (i[34567]86-*-linux* | ...): Add znver1.
13591 (case ${target}): Add znver1.
13592 * config/i386/cpuid.h(bit_CLZERO): Define.
13593 * config/i386/driver-i386.c: (host_detect_local_cpu): Let
13594 -march=native recognize znver1 processors.
13595 * config/i386/i386-c.c (ix86_target_macros_internal): Add
13596 znver1, clzero def_and_undef.
13597 * config/i386/i386.c (struct processor_costs znver1_cost): New.
13598 (m_znver1): New definition.
13599 (m_AMD_MULTIPLE): Includes m_znver1.
13600 (processor_target_table): Add znver1 entry.
13601 (ix86_target_string) : Add clzero entry.
13602 (static const char *const cpu_names): Add znver1 entry.
13603 (ix86_option_override_internal): Add znver1 instruction sets.
13604 (PTA_CLZERO) : New definition.
13605 (ix86_option_override_internal): Handle new clzerooption.
13606 (ix86_issue_rate): Add znver1.
13607 (ix86_adjust_cost): Add znver1.
13608 (ia32_multipass_dfa_lookahead): Add znver1.
13609 (has_dispatch): Add znver1.
13610 * config/i386/i386.h (TARGET_znver1): New definition.
13611 (TARGET_CLZERO): Define.
13612 (TARGET_CLZERO_P): Define.
13613 (struct ix86_size_cost): Add TARGET_ZNVER1.
13614 (enum processor_type): Add PROCESSOR_znver1.
13615 * config/i386/i386.md (define_attr "cpu"): Add znver1.
13616 (set_attr znver1_decode): New definitions for znver1.
13617 * config/i386/i386.opt (flag_dispatch_scheduler): Add znver1.
13619 * config/i386/mmx.md (set_attr znver1_decode): New definitions
13621 * config/i386/sse.md (set_attr znver1_decode): Likewise.
13622 * config/i386/x86-tune.def: Add znver1 tunings.
13623 * config/i386/znver1.md: Introduce znver1 cpu and include new md file.
13624 * doc/invoke.texi: Add details about znver1
13626 2015-10-06 Richard Biener <rguenther@suse.de>
13628 PR tree-optimization/67859
13629 * tree-ssa-pre.c (create_expression_by_pieces): Properly
13630 discard not inserted stmts.
13632 2015-10-06 Jonathan Wakely <jwakely@redhat.com>
13634 * doc/extend.texi (Template Instantiation): Reorder options and
13635 de-emphasize -frepo.
13636 * doc/invoke.texi (C++ Dialect Options): Use -fstrict-enums in
13637 example instead of -frepo.
13639 2015-10-06 Eric Botcazou <ebotcazou@adacore.com>
13642 * config/sparc/sparc.c (sparc_atomic_assign_expand_fenv): Adjust to
13643 use create_tmp_var_raw rather than create_tmp_var.
13645 2015-10-06 Richard Biener <rguenther@suse.de>
13647 * tree-vectorizer.h (vec_info): New base class for...
13648 (_loop_vec_info): ... this and ...
13649 (_bb_vec_info): ... this.
13650 (vect_is_simple_use, vect_is_simple_use_1, new_stmt_vec_info,
13651 vect_analyze_data_refs_alignment, vect_verify_datarefs_alignment,
13652 vect_analyze_data_ref_accesses, vect_analyze_data_refs,
13653 vect_schedule_slp, vect_analyze_slp, vect_pattern_recog,
13654 vect_destroy_datarefs): Adjust interface to take a vec_info *
13655 rather than both a loop_vec_info and a bb_vec_info argument.
13656 * tree-vect-data-refs.c (vect_compute_data_refs_alignment,
13657 vect_verify_datarefs_alignment, vect_enhance_data_refs_alignment,
13658 vect_analyze_data_refs_alignment, vect_analyze_data_ref_accesses,
13659 vect_analyze_data_refs, vect_create_data_ref_ptr): Adjust
13661 * tree-vect-loop.c (new_loop_vec_info): Initialize base class.
13662 (destroy_loop_vec_info, vect_analyze_loop_2,
13663 vect_is_simple_reduction_1, get_initial_def_for_induction,
13664 vect_create_epilog_for_reduction, vectorizable_reduction,
13665 vectorizable_live_operation, vect_transform_loop): Adjust.
13666 * tree-vect-patterns.c (type_conversion_p,
13667 vect_recog_widen_mult_pattern, vect_recog_widen_shift_pattern,
13668 vect_recog_rotate_pattern, vect_recog_vector_vector_shift_pattern,
13669 vect_recog_divmod_pattern, vect_recog_mixed_size_cond_pattern,
13670 check_bool_pattern, vect_recog_bool_pattern,
13671 vect_mark_pattern_stmts, vect_pattern_recog): Likewise.
13672 * tree-vect-slp.c (vect_get_and_check_slp_defs,
13673 vect_build_slp_tree_1, vect_build_slp_tree, vect_analyze_slp_cost_1,
13674 vect_analyze_slp_instance, vect_analyze_slp, destroy_bb_vec_info,
13675 vect_slp_analyze_bb_1, vect_schedule_slp): Likewise.
13676 (new_bb_vec_info): Initialize base classs.
13677 * tree-vect-stmts.c (record_stmt_cost, process_use,
13678 vect_get_vec_def_for_operand, vect_finish_stmt_generation,
13679 vectorizable_mask_load_store, vectorizable_call,
13680 vectorizable_simd_clone_call, vectorizable_conversion,
13681 vectorizable_assignment, vectorizable_shift,
13682 vectorizable_operation, vectorizable_store,
13683 vectorizable_load, vect_is_simple_cond, vectorizable_condition,
13684 new_stmt_vec_info, vect_is_simple_use, vect_is_simple_use_1): Likewise.
13685 * tree-vectorizer.c (vect_destroy_datarefs): Likewise.
13687 2015-10-05 Kaz Kojima <kkojima@gcc.gnu.org>
13690 * config/sh/sh.c (sh_atomic_assign_expand_fenv): Adjust to use
13691 create_tmp_var_raw rather than create_tmp_var.
13693 2015-10-05 Marek Polacek <polacek@redhat.com>
13695 * tree-ssa-loop-im.c
13696 (move_computations_dom_walker::before_dom_children): Don't set
13697 SSA_NAME_ANTI_RANGE_P.
13698 * tree-ssa-phiopt.c (value_replacement): Likewise.
13700 2015-10-05 Aditya Kumar <aditya.k7@samsung.com>
13701 Sebastian Pop <s.pop@samsung.com>
13703 * params.def (PARAM_GRAPHITE_MAX_NB_SCOP_PARAMS): Increase to 7.
13705 2015-10-05 Aditya Kumar <aditya.k7@samsung.com>
13706 Sebastian Pop <s.pop@samsung.com>
13708 * graphite-poly.c (new_gimple_poly_bb): ... here.
13709 (free_data_refs_aux): ... here.
13710 (free_gimple_poly_bb): ... here.
13711 (remove_gbbs_in_scop): ... here.
13712 (new_scop): Call new_sese.
13713 (free_scop): Call remove_gbbs_in_scop and free_sese.
13714 * graphite-poly.h (base_alias_pair): ... here.
13715 (new_gimple_poly_bb): Declare.
13716 (free_gimple_poly_bb): Declare.
13717 * graphite-scop-detection.c (parameter_index_in_region_1):
13718 (parameter_index_in_region): ... here.
13719 (scan_tree_for_params): ... here.
13720 (find_params_in_bb): ... here.
13721 (find_scop_parameters): ... here.
13722 (build_scops): Call find_scop_parameters.
13723 * graphite-sese-to-poly.c (free_gimple_poly_bb): Move...
13724 (free_scops): Move...
13725 (single_pred_cond_non_loop_exit): Move...
13726 (sese_dom_walker::before_dom_children): Move...
13727 (sese_dom_walker::after_dom_children): Move...
13728 (build_poly_scop): Move...
13729 * graphite-sese-to-poly.h (base_alias_pair): Move...
13730 * graphite.c (free_scops): ... here.
13732 2015-10-05 Aditya Kumar <aditya.k7@samsung.com>
13733 Sebastian Pop <s.pop@samsung.com>
13735 * graphite-scop-detection.c: Include domwalk.h and tree-cfg.h.
13736 (trivially_empty_bb_p): Move...
13737 (same_close_phi_node): Move...
13738 (new_gimple_poly_bb): Move...
13739 (compare_bb_depths): Move...
13740 (graphite_sort_dominated_info): Move...
13741 (remove_duplicate_close_phi): Move...
13742 (make_close_phi_nodes_unique): Move...
13743 (canonicalize_loop_closed_ssa): Move...
13744 (canonicalize_loop_closed_ssa_form): Move...
13745 (loop_ivs_can_be_represented): Move...
13746 (single_pred_cond_non_loop_exit): Move...
13747 (graphite_can_represent_init): Move...
13748 (graphite_can_represent_scev): Move...
13749 (stmt_has_simple_data_refs_p): Move...
13750 (stmt_has_side_effects): Move...
13751 (graphite_can_represent_stmt): Move...
13752 (scop_detection): ... here.
13753 (sese_dom_walker): ... and here.
13754 (build_scops): Call all moved functions.
13755 * graphite-sese-to-poly.c (try_generate_gimple_bb): Move...
13756 (all_non_dominated_preds_marked_p): Move...
13757 (build_scop_bbs_1): Move...
13758 (build_scop_bbs): Move...
13759 (set_scop_parameter_dim): Move...
13760 (nb_pbbs_in_loops): Move...
13761 (build_poly_scop): Do not call all the moved functions.
13763 2015-10-05 Martin Jambor <mjambor@suse.cz>
13764 Jan Hubicka <hubicka@ucw.cz>
13766 * ipa-cp.c (ipcp_alignment_lattice): New type.
13767 (ipcp_param_lattices): Use the above to represent alignment.
13768 (ipcp_alignment_lattice::print): New function.
13769 (print_all_lattices): Use it to print alignment information.
13770 (ipcp_alignment_lattice::top_p): New function.
13771 (ipcp_alignment_lattice::bottom_p): Likewise.
13772 (ipcp_alignment_lattice::set_to_bottom): Likewise.
13773 (ipcp_alignment_lattice::meet_with_1): Likewise.
13774 (ipcp_alignment_lattice::meet_with): Two new overloaded functions.
13775 (set_all_contains_variable): Use set_to_bottom of alignment lattice.
13776 (initialize_node_lattices): Likewise.
13777 (propagate_alignment_accross_jump_function): Work with the new class
13778 for alignment lattices.
13779 (propagate_constants_accross_call): Pass only the alignment lattice to
13780 propagate_alignment_accross_jump_function.
13781 (ipcp_store_alignment_results): Work with the new class for alignment
13784 2015-10-05 Marek Polacek <polacek@redhat.com>
13786 PR tree-optimization/67821
13787 * tree-ssanames.c (duplicate_ssa_name_range_info): Remove an assert.
13789 2015-10-05 Thomas Schwinge <thomas@codesourcery.com>
13792 * config/i386/intelmic-mkoffload.c (mkoffload_atexit): Rename
13794 (mkoffload_cleanup): ... this. Adjust all users.
13795 (maybe_unlink): Look at save_temps and verbose flags instead of
13797 (main): Parse "-save-temps" flag.
13798 (generate_target_descr_file, generate_target_offloadend_file)
13799 (generate_host_descr_file, prepare_target_image): Pass it on.
13800 * config/nvptx/mkoffload.c (tool_cleanup): Implement.
13801 (mkoffload_cleanup): New function.
13802 (maybe_unlink): Look at save_temps and verbose flags instead of
13804 (main): Instead of calling utils_cleanup, register atexit handler
13805 for mkoffload_cleanup.
13806 (main): Parse "-save-temps" flag.
13807 (compile_native, main): Pass it on.
13808 * lto-wrapper.c (compile_offload_image): Likewise.
13810 2015-10-05 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
13812 * gimple.h (gimple_op_ptr): Require a non const gimple *.
13813 (gimple_assign_lhs_ptr): Likewise.
13814 (gimple_assign_rhs1_ptr): Likewise.
13815 (gimple_assign_rhs2_ptr): Likewise.
13816 (gimple_assign_rhs3_ptr): Likewise.
13817 (gimple_call_lhs_ptr): Likewise.
13818 (gimple_call_fn_ptr): Likewise.
13819 (gimple_call_chain_ptr): Likewise.
13820 (gimple_call_arg_ptr): Likewise.
13821 (gimple_cond_lhs_ptr): Likewise.
13822 (gimple_cond_rhs_ptr): Likewise.
13823 (gimple_switch_index_ptr): Likewise.
13824 (gimple_return_retval_ptr): Likewise.
13826 2015-10-05 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
13828 * gimple.h (gimple_asm_input_op_ptr): Remove.
13829 (gimple_asm_output_op_ptr): Likewise.
13831 2015-10-05 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
13833 * gimple.h (gimple_location_ptr): Remove.
13834 * tree-vrp.c (check_all_array_refs): Adjust.
13836 2015-10-05 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
13838 * tree-ssa-operands.c (build_uses): store tree * instead of
13840 (finalize_ssa_uses): Adjust.
13841 (append_use): Likewise.
13842 (verify_ssa_operands): Likewise.
13844 2015-10-05 Richard Sandiford <richard.sandiford@arm.com>
13846 * real.h (build_real_truncate): Declare.
13847 * tree.c (build_real_truncate): New function.
13848 (strip_float_extensions): Use it.
13849 * builtins.c (fold_builtin_cabs, fold_builtin_sqrt, fold_builtin_cbrt)
13850 (fold_builtin_hypot, fold_builtin_pow): Likewise.
13851 * match.pd: Likewise.
13853 2015-10-05 James Greenhalgh <james.greenhalgh@arm.com>
13854 Jiong Wang <jiong.wang@arm.com>
13856 * config/aarch64/aarch64.md (tlsie_tiny_sidi): Replace "<w>" with "w".
13858 2015-10-05 Richard Sandiford <richard.sandiford@arm.com>
13860 * real.h (REAL_VALUE_FROM_CONST_DOUBLE): Delete.
13861 * config/aarch64/aarch64.c (aarch64_float_const_zero_rtx_p)
13862 (aarch64_print_operand, aarch64_float_const_representable_p)
13863 (aarch64_output_simd_mov_immediate): Use CONST_DOUBLE_REAL_VALUE
13864 instead of REAL_VALUE_FROM_CONST_DOUBLE.
13865 * config/arc/arc.c (arc_print_operand): Likewise.
13866 * config/arm/arm.c (arm_const_double_rtx, vfp3_const_double_index)
13867 (neon_valid_immediate, arm_print_operand, arm_emit_fp16_const)
13868 (vfp3_const_double_for_fract_bits, vfp3_const_double_for_bits):
13870 * config/arm/arm.md (*arm32_movhf, consttable_4, consttable_8)
13871 (consttable_16): Likewise.
13872 * config/arm/vfp.md (*movhf_vfp_neon, *movhf_vfp): Likewise.
13873 * config/avr/avr.c (avr_print_operand): Likewise.
13874 * config/bfin/bfin.md: Likewise (in a define_split).
13875 * config/c6x/c6x.md: Likewise (in a define_split).
13876 * config/cr16/cr16.c (cr16_const_double_ok): Likewise.
13877 (cr16_print_operand): Likewise.
13878 * config/cris/cris.c (cris_print_operand): Likewise.
13879 * config/epiphany/epiphany.c (epiphany_print_operand): Likewise.
13880 * config/fr30/fr30.c (fr30_print_operand): Likewise.
13881 (fr30_const_double_is_zero): Likewise.
13882 * config/frv/frv.c (frv_print_operand, output_move_single): Likewise.
13883 * config/frv/frv.md: Likewise (in a define_split).
13884 * config/frv/predicates.md (int_2word_operand): Likewise.
13885 * config/h8300/h8300.c (h8300_print_operand): Likewise.
13886 * config/i386/i386.c (standard_80387_constant_p): Likewise.
13887 (ix86_print_operand, ix86_split_to_parts): Likewise.
13888 * config/i386/i386.md: Likewise (in a define_split).
13889 * config/ia64/ia64.c (ia64_split_tmode, ia64_print_operand): Likewise.
13890 * config/iq2000/iq2000.md (movsf_lo_sum, movsf_high): Likewise.
13891 * config/m32r/m32r.c (easy_df_const, m32r_print_operand): Likewise.
13892 * config/m68k/m68k.c (handle_move_double, standard_68881_constant_p)
13893 (print_operand): Likewise.
13894 * config/m68k/m68k.md (movsf_cf_hard, movdf_cf_hard): Likewise.
13895 * config/mep/mep.md: Likewise (in define_split).
13896 * config/microblaze/microblaze.c (microblaze_const_double_ok)
13897 (print_operand): Likewise.
13898 * config/mips/mips.md (consttable_float): Likewise.
13899 * config/mmix/mmix.c (mmix_intval): Likewise.
13900 * config/mn10300/mn10300.c (mn10300_print_operand): Likewise.
13901 * config/nvptx/nvptx.c (nvptx_print_operand): Likewise.
13902 * config/pa/pa.c (pa_singlemove_string): Likewise.
13903 * config/pdp11/pdp11.c (pdp11_expand_operands): Likewise.
13904 (pdp11_asm_print_operand, legitimate_const_double_p): Likewise.
13905 * config/rs6000/rs6000.c (num_insns_constant, rs6000_emit_cmove)
13906 (output_toc): Likewise.
13907 * config/rs6000/rs6000.md: Likewise (in define_splits).
13908 * config/rx/rx.c (rx_print_operand): Likewise.
13909 * config/s390/s390.c (s390_output_pool_entry): Likewise.
13910 * config/sh/sh.c (fp_zero_operand, fp_one_operand): Likewise.
13911 * config/sh/sh.md (consttable_sf, consttable_df): Likewise
13912 (and also in define_splits).
13913 * config/sparc/sparc.c (fp_sethi_p, fp_mov_p): Likewise.
13914 (fp_high_losum_p): Likewise.
13915 * config/sparc/sparc.md (*movsf_insn, *movsf_lo_sum): Likewise.
13916 (*movsf_high): Likewise.
13917 * config/spu/spu.c (const_double_to_hwint): Likewise.
13918 * config/v850/v850.c (const_double_split): Likewise.
13919 * config/vax/vax.c (vax_float_literal): Likewise.
13920 * config/visium/visium.c (visium_expand_copysign): Likewise.
13921 * config/visium/visium.md: Likewise (in define_split).
13922 * config/xtensa/predicates.md (const_float_1_operand): Likewise.
13923 * config/xtensa/xtensa.c (print_operand): Likewise.
13924 (xtensa_output_literal): Likewise.
13925 * cprop.c (implicit_set_cond_p): Likewise.
13926 * dwarf2out.c (insert_float): Likewise.
13927 * expmed.c (expand_mult, make_tree): Likewise.
13928 * expr.c (compress_float_constant): Likewise.
13929 * rtlanal.c (split_double): Likewise.
13930 * simplify-rtx.c (avoid_constant_pool_reference): Likewise.
13931 (simplify_const_unary_operation, simplify_binary_operation_1)
13932 (simplify_const_binary_operation): Likewise.
13933 (simplify_const_relational_operation): Likewise.
13934 * varasm.c (output_constant_pool_2): Likewise.
13936 2015-10-05 Richard Sandiford <richard.sandiford@arm.com>
13938 * real.h (CONST_DOUBLE_ATOF): Use const_double_from_real_value
13939 instead of CONST_DOUBLE_FROM_REAL_VALUE.
13940 (CONST_DOUBLE_FROM_REAL_VALUE): Delete.
13941 * config/c6x/c6x.md (divsf3, divdf3): Use const_double_from_real_value
13942 instead of CONST_DOUBLE_FROM_REAL_VALUE.
13943 * config/epiphany/epiphany.md (fixuns_truncsfsi2): Likewise.
13944 * config/i386/i386.c (standard_80387_constant_rtx): Likewise.
13945 (ix86_expand_builtin, ix86_emit_i387_log1p, ix86_emit_i387_round)
13946 (ix86_emit_swsqrtsf): Likewise.
13947 * config/ia64/ia64.c (ia64_expand_builtin): Likewise.
13948 * config/mips/mips.md (fixuns_truncdfsi2, fixuns_truncdfdi2)
13949 (fixuns_truncsfsi2, fixuns_truncsfdi2): Likewise.
13950 * config/pa/pa.c (pa_expand_builtin): Likewise.
13951 * config/rs6000/rs6000.c (rs6000_load_constant_and_splat): Likewise.
13952 (rs6000_scale_v2df): Likewise.
13953 * config/rs6000/rs6000.md (*cmptf_internal2): Likewise.
13954 * config/s390/s390.md (fixuns_truncdddi2, fixuns_trunctddi2)
13955 (fixuns_trunc<BFP:mode><GPR:mode>2): Likewise.
13956 * config/s390/vx-builtins.md (vec_ctd_s64, vec_ctd_u64, vec_ctsl)
13957 (vec_ctul): Likewise.
13958 * config/sparc/sparc.c (sparc_emit_fixunsdi): Likewise.
13959 * config/spu/spu.c (hwint_to_const_double, spu_float_const): Likewise.
13960 * config/spu/spu.md (floatunsdisf2, floatunstisf2): Likewise.
13961 * cse.c (fold_rtx): Likewise.
13962 * emit-rtl.c (immed_double_const): Likewise (in comments).
13963 (init_emit_once): Likewise.
13964 * expr.c (compress_float_constant, expand_expr_real_1)
13965 (const_vector_from_tree): Likewise.
13966 * optabs.c (expand_float, expand_fix): Likewise.
13967 * reg-stack.c (reg_to_stack): Likewise.
13968 * simplify-rtx.c (avoid_constant_pool_reference): Likewise.
13969 (simplify_const_unary_operation, simplify_binary_operation_1)
13970 (simplify_const_binary_operation, simplify_relational_operation)
13971 (simplify_immed_subreg): Likewise.
13973 2015-10-05 Richard Sandiford <richard.sandiford@arm.com>
13975 * doc/tm.texi.in (REAL_ARITHMETIC): Delete.
13976 * doc/tm.texi: Regenerate.
13977 * real.h (REAL_ARITHMETIC): Delete.
13978 * config/i386/i386.c (ix86_expand_lround, ix86_expand_round)
13979 (ix86_expand_round_sse4): Use real_arithmetic instead of
13981 * config/i386/sse.md (round<mode>2): Likewise.
13982 * rtl.h (rtx_to_tree_code): Likewise (in comment).
13983 * explow.c (rtx_to_tree_code): Likewise (in comment).
13984 * match.pd: Likewise.
13985 * simplify-rtx.c (simplify_binary_operation_1): Likewise.
13986 * tree-ssa-math-opts.c (representable_as_half_series_p): Likewise.
13987 (expand_pow_as_sqrts): Likewise.
13988 * tree-pretty-print.c (dump_generic_node): Remove code that
13989 was conditional on REAL_ARITHMETIC being undefined.
13991 2015-10-05 Richard Sandiford <richard.sandiford@arm.com>
13993 * doc/tm.texi.in (REAL_VALUES_LESS): Delete.
13994 * doc/tm.texi: Regenerate.
13995 * real.h (real_less): Declare.
13996 (REAL_VALUES_LESS): Delete.
13997 * real.c (real_less): New function.
13998 (real_compare): Use it.
13999 * config/m68k/m68k.c (floating_exact_log2): Use real_less instead
14000 of REAL_VALUES_LESS.
14001 * config/microblaze/microblaze.c (microblaze_const_double_ok):
14003 * fold-const.c (fold_convert_const_int_from_real): Likewise.
14004 * simplify-rtx.c (simplify_const_unary_operation): Likewise.
14005 (simplify_const_relational_operation): Likewise.
14006 * tree-call-cdce.c (check_pow): Likewise.
14007 (gen_conditions_for_pow_cst_base): Likewise.
14009 2015-10-05 Richard Sandiford <richard.sandiford@arm.com>
14011 * real.h (REAL_VALUES_IDENTICAL): Delete.
14012 * config/m68k/m68k.c (standard_68881_constant_p): Use real_identical
14013 instead of REAL_VALUES_IDENTICAL.
14014 * fold-const.c (operand_equal_p): Likewise.
14015 * ipa-icf.c (sem_variable::equals): Likewise.
14016 * tree-complex.c (some_nonzerop): Likewise.
14017 (expand_complex_multiplication): Likewise.
14018 * tree.c (simple_cst_equal): Likewise.
14019 * varasm.c (compare_constant): Likewise.
14021 2015-10-05 Richard Sandiford <richard.sandiford@arm.com>
14023 * real.h (real_equal): Declare.
14024 (REAL_VALUES_EQUAL): Delete.
14025 * real.c (real_equal): New function.
14026 (real_compare): Use it.
14027 * doc/tm.texi.in (REAL_VALUES_EQUAL): Delete.
14028 * doc/tm.texi: Regenerate.
14029 * builtins.c (fold_builtin_pow, fold_builtin_load_exponent): Use
14030 real_equal instead of REAL_VALUES_EQUAL.
14031 * config/aarch64/aarch64.c (aarch64_float_const_zero_rtx_p): Likewise.
14032 * config/arm/arm.c (arm_const_double_rtx, neon_valid_immediate)
14033 (fp_const_from_val): Likewise.
14034 * config/fr30/fr30.c (fr30_const_double_is_zero): Likewise.
14035 * config/m68k/m68k.c (standard_68881_constant_p): Likewise.
14036 (floating_exact_log2): Likewise.
14037 * config/sh/sh.c (fp_zero_operand, fp_one_operand): Likewise.
14038 * config/vax/vax.c (vax_float_literal): Likewise.
14039 * config/xtensa/predicates.md (const_float_1_operand): Likewise.
14040 * cprop.c (implicit_set_cond_p): Likewise.
14041 * expmed.c (expand_mult): Likewise.
14042 * fold-const.c (const_binop): Likewise.
14043 * simplify-rtx.c (simplify_binary_operation_1): Likewise.
14044 (simplify_const_binary_operation): Likewise.
14045 (simplify_const_relational_operation): Likewise.
14046 * tree-call-cdce.c (check_pow): Likewise.
14047 (gen_conditions_for_pow_cst_base): Likewise.
14048 * tree-inline.c (estimate_num_insns): Likewise.
14049 * tree-ssa-dom.c (record_equality): Likewise.
14050 * tree-ssa-math-opts.c (representable_as_half_series_p): Likewise.
14051 (gimple_expand_builtin_pow): Likewise.
14052 (pass_optimize_widening_mul::execute): Likewise.
14053 * tree-ssa-uncprop.c (associate_equivalences_with_edges): Likewise.
14054 * tree-vect-patterns.c (vect_recog_pow_pattern): Likewise.
14055 * tree.c (real_zerop, real_onep, real_minus_onep): Likewise.
14057 2015-10-05 Richard Biener <rguenther@suse.de>
14060 * ipa-inline-analysis.c (estimate_function_body_sizes): Only
14061 consider loop header PHI defs as IVs.
14063 2015-10-05 Richard Biener <rguenther@suse.de>
14065 * tree-ssa-pre.c (create_component_ref_by_pieces_1): Move
14067 (create_expression_by_pieces): ... here and build GIMPLE
14068 calls directly. Use gimple_build API and avoid force_gimple_operand.
14069 (insert_into_preds_of_block): Simplify.
14070 (do_regular_insertion): Add comment.
14072 2015-10-04 Jason Merrill <jason@redhat.com>
14074 * builtins.def (BUILT_IN_ABORT): Add transaction_pure attribute.
14076 2015-10-04 Uros Bizjak <ubizjak@gmail.com>
14078 * config/i386/i386.c (ix86_nsaved_regs): Use GENERAL_REGNO_P to
14079 check for general register.
14080 (ix86_emit_save_regs): Ditto.
14081 (ix86_emit_save_regs_using_mov): Ditto.
14082 (ix86_emit_restore_regs_using_pop): Ditto.
14083 (ix86_emit_restore_regs_using_mov): Ditto.
14085 2015-10-03 Marek Polacek <polacek@redhat.com>
14087 * Makefile.in (insn-latencytab.o): Remove -Wno-duplicated-cond.
14088 (insn-dfatab.o): Likewise.
14090 2015-10-03 Max Filippov <jcmvbkbc@gmail.com>
14092 * config.gcc (xtensa*-*-uclinux*): New configuration.
14093 * config/xtensa/uclinux.h: New file.
14094 * config/xtensa/uclinux.opt: New file.
14096 2015-10-03 Jonathan Wakely <jwakely@redhat.com>
14098 * doc/cpp.texi (Standard Predefined Macros): Document value of
14099 __cplusplus for C++14.
14101 2015-10-02 Bernd Schmidt <bernds@codesourcery.com>
14103 * gcc.c (process_command): Use spec_machine rather than
14104 spec_host_machine to build tooldir_prefix2.
14106 2015-10-02 Thomas Schwinge <thomas@codesourcery.com>
14107 Bernd Schmidt <bernds@codesourcery.com>
14109 * config/nvptx/mkoffload.c (Kind, Vis): Remove enums.
14110 (Token, Stmt): Remove structs.
14111 (decls, vars, fns): Remove variables.
14112 (alloc_comment, append_stmt, is_keyword): Remove macros.
14113 (tokenize, write_token, write_tokens, alloc_stmt, rev_stmts)
14114 (write_stmt, write_stmts, parse_insn, parse_list_nosemi)
14115 (parse_init, parse_file): Remove functions.
14116 (read_file): Accept a pointer to a length and store into it.
14117 (process): Don't try to parse the input file, just write it out as
14118 a string, but looking for maps. Also write out the length.
14119 (main): Don't use "-S" to compile PTX code.
14121 2015-10-02 Jeff Law <law@redhat.com>
14123 * tree-ssa-dom.c (optimize_stmt): Note when loop structures need
14126 2015-10-02 Thomas Schwinge <thomas@codesourcery.com>
14129 * config/nvptx/mkoffload.c (main): Scan the argument vector for
14130 -fopenmp, and skip generating an offloading image if specified.
14132 2015-10-02 Uros Bizjak <ubizjak@gmail.com>
14134 * system.h (ROUND_UP): New macro definition.
14135 (ROUND_DOWN): Ditto.
14136 * ggc-page.c (ROUND_UP): Remove local macro definition.
14137 (PAGE_ALIGN): Implement using ROUND_UP macro.
14139 * config/i386/i386.h (PUSH_ROUNDING): Implement using ROUND_UP macro.
14140 * config/i386/i386.c (function_arg_advance_64): Use ROUND_UP macro
14142 (ix86_compute_frame_layout): Ditto.
14143 (ix86_expand_prologue): Ditto.
14144 (ix86_adjust_stack_and_probe): Use ROUND_DOWN macro
14145 to round down values.
14146 (expand_set_or_movmem_via_rep): Ditto.
14148 2015-10-02 Marek Polacek <polacek@redhat.com>
14150 * genemit.c (gen_exp): Remove -Wduplicated-cond hack.
14152 2015-10-02 Aditya Kumar <aditya.k7@samsung.com>
14154 * graphite-scop-detection.c (loop_ivs_can_be_represented): New.
14155 (loop_body_is_valid_scop): Call loop_ivs_can_be_represented.
14156 * graphite-sese-to-poly.c (new_gimple_bb): Renamed new_gimple_poly_bb.
14157 (free_gimple_bb): Renamed free_gimple_poly_bb.
14158 (try_generate_gimple_bb): Hoist loop invariant code.
14159 (analyze_drs_in_stmts): Same.
14160 (build_scop_drs): Call renamed functions.
14161 (new_pbb_from_pbb): Same.
14162 (scop_ivs_can_be_represented): Delete as functionality now moved to
14163 graphite-scop-detection.c
14164 (build_poly_scop): Remove call to scop_ivs_can_be_represented.
14166 2015-10-02 Aditya Kumar <hiraditya@msn.com>
14168 * graphite-scop-detection.c (stmt_has_side_effects): New function
14169 outlined from stmt_simple_for_scop_p.
14170 (graphite_can_represent_stmt): Same.
14171 (stmt_simple_for_scop_p): Moved code out of this function for better
14174 2015-10-02 Kirill Yukhin <kirill.yukhin@intel.com>
14176 * config/i386/i386.c (processor_features): Add F_AVX512VBMI,
14178 (isa_names_table): Handle F_AVX512VBMI and F_AVX512IFMA.
14180 2015-10-02 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
14182 * config/aarch64/aarch64-elf.h (TARGET_ASM_NAMED_SECTION): Delete.
14184 2015-10-02 Vladimir Makarov <vmakarov@redhat.com>
14186 PR rtl-optimization/67756
14187 * lra-constraints.c (match_reload): Add a new parameter. Use it
14188 for creating a pseudo with the same value.
14189 (curr_insn_transform): Pass a new argument to match_reload.
14191 2015-10-02 Kirill Yukhin <kirill.yukhin@intel.com>
14193 * config/i386/i386.c (expand_vec_perm_even_odd_trunc): New.
14194 (expand_vec_perm_even_odd_1): Handle V64QImode.
14195 (ix86_expand_vec_perm_const_1): Try expansion with
14196 expand_vec_perm_even_odd_trunc as well.
14197 * config/i386/sse.md (VI124_AVX512F): Rename to ...
14198 (define_mode_iterator VI124_AVX2_24_AVX512F_1_AVX512BW): This. Extend
14200 (define_mode_iterator VI248_AVX2_8_AVX512F): Rename to ...
14201 (define_mode_iterator VI248_AVX2_8_AVX512F_24_AVX512BW): This. Extend
14202 to V32HI and V16SI.
14203 (define_insn "avx512bw_<code>v32hiv32qi2"): Unhide pattern name.
14204 (define_expand "vec_pack_trunc_<mode>"): Update iterator name.
14205 (define_expand "vec_unpacks_lo_<mode>"): Ditto.
14206 (define_expand "vec_unpacks_hi_<mode>"): Ditto.
14207 (define_expand "vec_unpacku_lo_<mode>"): Ditto.
14208 (define_expand "vec_unpacku_hi_<mode>"): Ditto.
14210 2015-10-02 Kirill Yukhin <kirill.yukhin@intel.com>
14212 * doc/invoke.texi: Mention -mavx512vl, -mavx512bw, -mavx512dq,
14213 -mavx521vbmi, -mavx512ifma. Add missing opindex-es.
14215 2015-10-02 Jason Merrill <jason@redhat.com>
14218 * trans-mem.c (volatile_lvalue_p): Rename from volatile_var_p.
14219 (diagnose_tm_1_op): Also diagnose volatile accesses in
14220 transaction_safe function.
14222 2015-10-02 Jonathan Wakely <jwakely@redhat.com>
14224 * system.h (malloc.h): Don't include obsolete header.
14226 2015-10-02 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
14228 * config/aarch64/aarch64.c (aarch64_elf_asm_named_section): Delete.
14229 (TLS_SECTION_ASM_FLAG): Delete.
14231 2015-10-02 Marek Polacek <polacek@redhat.com>
14234 * doc/invoke.texi: Document -Wduplicated-cond.
14235 * Makefile.in (insn-latencytab.o): Use -Wno-duplicated-cond.
14236 (insn-dfatab.o): Likewise.
14237 * genemit.c (gen_exp): Rewrite condition to avoid -Wduplicated-cond
14240 2015-10-02 Oleg Endo <olegendo@gcc.gnu.org>
14242 * config/sh/sh.md: Add new unnamed split pattern to handle movt-movt
14245 2015-10-02 Renlin Li <renlin.li@arm.com>
14247 * config/aarch64/aarch64.md (csneg3_insn_uxtw): New pattern.
14249 2015-10-02 Renlin Li <renlin.li@arm.com>
14252 * config/aarch64/aarch64.md (cmovdi_insn_uxtw): New pattern.
14254 2015-10-02 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
14256 PR rtl-optimization/67786
14257 PR rtl-optimization/67787
14258 * ifcvt.c (bb_valid_for_noce_process_p): Reject basic block if
14259 it modifies a reg used in the condition calculation.
14261 2015-10-02 James Greenhalgh <james.greenhalgh@arm.com>
14263 * config/aarch64/aarch64-simd.md (*aarch64_combinez<mode>): Add
14264 alternatives for reads from memory and moves from general-purpose
14266 (*aarch64_combinez_be<mode>): Likewise.
14268 2015-10-02 Kai Tietz <ktietz70@googlemail.com>
14271 * config/i386/winnt.c (ix86_handle_selectany_attribute): Handle
14272 selectany within this function without need to keep attribute.
14273 (i386_pe_encode_section_info): Remove selectany-code.
14275 2015-10-02 Richard Biener <rguenther@suse.de>
14277 * tree-ssa-sccvn.c (has_VN_INFO): New function.
14278 (free_scc_vn): Use it.
14279 (visit_use): Remove dead code and refactor to use gassign
14280 and use less indentation.
14282 2015-10-01 Segher Boessenkool <segher@kernel.crashing.org>
14286 * config/rs6000/rs6000.c (TARGET_CANNOT_COPY_INSN_P): New.
14287 (rs6000_cannot_copy_insn_p): New function.
14288 * config/rs6000/rs6000.md (cannot_copy): New attribute.
14289 (load_toc_v4_PIC_1_normal): Set cannot_copy.
14290 (load_toc_v4_PIC_1_476): Ditto.
14292 2015-10-01 Aditya Kumar <aditya.k7@samsung.com>
14294 * graphite-scop-detection.c (struct sese_l): New conversion constructor
14295 so that this type can be pushed into a vec.
14296 (class scop_builder): use sese_l to collect scops.
14297 (get_scops): New getter function.
14298 (remove_intersecting_scops): Use sese_l instead of scops_p.
14299 (intersects): Same.
14302 (remove_subscops): Same.
14303 (build_scops): Add scops to vec<scops_p> once all the scops have been
14306 2015-10-01 Aditya Kumar <aditya.k7@samsung.com>
14308 * graphite-isl-ast-to-gimple.c (class translate_isl_ast_to_gimple):
14309 Renamed type from gimple_bb_p to gimple_poly_bb_p.
14310 (translate_isl_ast_node_user): Same.
14311 * graphite-poly.c (new_poly_bb): Same.
14312 * graphite-poly.h (gbb_from_bb): Same.
14314 * graphite-sese-to-poly.c (new_gimple_bb):
14315 gimple_bb_p -> gimple_poly_bb_p
14316 (build_scop_scattering): Same.
14317 (find_params_in_bb): Same.
14318 (add_conditions_to_domain): Same.
14319 (sese_dom_walker::before_dom_children): Same.
14320 (analyze_drs_in_stmts): Same.
14321 (new_pbb_from_pbb): Same.
14322 (free_data_refs_aux): New pointer to type base_alias_pair.
14323 * graphite-sese-to-poly.h: Same.
14324 * sese.c (if_region_set_false_region): Fixed Indentation.
14325 (move_sese_in_condition): Same.
14327 2015-10-01 Sebastian Pop <s.pop@samsung.com>
14328 Aditya Kumar <aditya.k7@samsung.com>
14330 PR tree-optimization/66980
14331 * graphite-scop-detection.c (stmt_has_simple_data_refs_p): Return false
14332 when data reference analysis has failed.
14334 2015-10-01 Sebastian Pop <s.pop@samsung.com>
14335 Aditya Kumar <aditya.k7@samsung.com>
14337 PR tree-optimization/67754
14338 * graphite-scop-detection.c (stmt_has_simple_data_refs_p): Call
14339 scev analysis on the same loop nest as analyze_drs_in_stmts.
14340 * graphite-sese-to-poly.c (outermost_loop_in_sese_1): Moved and
14342 (try_generate_gimple_bb): Call outermost_loop_in_sese.
14343 (analyze_drs_in_stmts): Same.
14344 * sese.c (outermost_loop_in_sese): ...here.
14346 2015-10-01 Sebastian Pop <s.pop@samsung.com>
14347 Aditya Kumar <aditya.k7@samsung.com>
14349 PR tree-optimization/67754
14350 * graphite-scop-detection.c (loop_body_is_valid_scop): Add missing
14351 recursion on the inner loops.
14353 2015-10-01 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
14355 * cfganal.c, compare-elim.c, coverage.c, cprop.c, df-scan.c,
14356 function.c, read-rtl.c, statistics.c, trans-mem.c, tree-if-conv.c,
14357 tree-into-ssa.c, tree-loop-distribution.c, tree-ssa-coalesce.c,
14358 tree-ssa-loop-ivopts.c, tree-ssa-reassoc.c, tree-ssa-strlen.c,
14359 tree-ssa-tail-merge.c, tree-vrp.c, var-tracking.c: Remove
14361 2015-10-01 Marek Polacek <polacek@redhat.com>
14364 * config/i386/i386.c (ix86_atomic_assign_expand_fenv): Adjust to use
14365 create_tmp_var_raw rather than create_tmp_var.
14367 2015-10-01 Marek Polacek <polacek@redhat.com>
14369 PR tree-optimization/67769
14370 * tree-ssa-phiopt.c (conditional_replacement): Call
14371 reset_flow_sensitive_info_in_bb.
14372 (minmax_replacement): Likewise.
14373 (abs_replacement): Likewise.
14375 2015-10-01 Nathan Sidwell <nathan@codesourcery.com>
14377 * builtins.c: Don't include gomp-constants.h.
14378 (fold_builtin_1): Don't fold acc_on_device here.
14379 * gimple-fold.c: Include gomp-constants.h.
14380 (gimple_fold_builtin_acc_on_device): New.
14381 (gimple_fold_builtin): Call it.
14383 2015-10-01 H.J. Lu <hongjiu.lu@intel.com>
14385 * config/i386/x86-tune.def (X86_TUNE_USE_BT): Enable for Lakemont.
14386 (X86_TUNE_ZERO_EXTEND_WITH_AND): Disable for Lakemont.
14388 2015-10-01 James Greenhalgh <james.greenhalgh@arm.com>
14390 * config/arm/aarch-common-protos.h
14391 (aarch_accumulator_forwarding): New.
14392 (aarch_forward_to_shift_is_not_shifted_reg): Likewise.
14393 * config/arm/aarch-common.c (aarch_accumulator_forwarding): New.
14394 (aarch_forward_to_shift_is_not_shifted_reg): Likewise.
14395 * config/arm/cortex-a53.md: Rewrite.
14397 2015-10-01 Richard Biener <rguenther@suse.de>
14399 * gimple-match.h (mprts_hook): Declare.
14400 * gimple-match.head.c (mprts_hook): Define.
14401 (maybe_push_res_to_seq): Use new hook.
14402 * gimple-fold.c (gimple_fold_stmt_to_constant_1): Likewise.
14403 * tree-ssa-sccvn.h (vn_ssa_aux::expr): Change to a gimple_seq.
14404 (vn_ssa_aux::has_constants): Remove.
14405 * tree-ssa-sccvn.c: Include gimple-match.h.
14406 (VN_INFO_GET): Assert we don't re-use SSA names.
14407 (vn_get_expr_for): Remove.
14408 (expr_has_constants): Likewise.
14409 (stmt_has_constants): Likewise.
14410 (simplify_binary_expression): Likewise.
14411 (simplify_unary_expression): Likewise.
14412 (vn_lookup_simplify_result): New hook.
14413 (visit_copy): Adjust.
14414 (visit_reference_op_call): Likewise.
14415 (visit_phi): Likewise.
14416 (visit_use): Likewise.
14417 (process_scc): Likewise.
14418 (init_scc_vn): Likewise.
14419 (visit_reference_op_load): Likewise. Use match-and-simplify and
14420 a gimple seq for inserted expressions.
14421 (try_to_simplify): Remove GENERIC stmt combining code.
14422 (sccvn_dom_walker::before_dom_children): Use match-and-simplify.
14423 * tree-ssa-pre.c (eliminate_insert): Adjust.
14424 (eliminate_dom_walker::before_dom_children): Likewise.
14426 2015-10-01 Segher Boessenkool <segher@kernel.crashing.org>
14428 * doc/invoke.texi (Optimization Options): Add
14429 -freorder-blocks-algorithm=.
14430 (Optimize Options) <-O>: Add -freorder-blocks.
14431 <-O2>: Remove -freorder-blocks. Add -freorder-blocks-algorithm=stc.
14432 <-Os>: Add -freorder-blocks-algorithm=stc as not enabled.
14433 <-freorder-blocks>: Also enabled at levels -O and -Os.
14434 <-freorder-blocks-algorithm=>: Document new option.
14436 2015-10-01 Segher Boessenkool <segher@kernel.crashing.org>
14438 * bb-reorder.c (reorder_basic_blocks): Use the algorithm selected
14439 with flag_reorder_blocks_algorithm.
14440 * common.opt (freorder-blocks-algorithm=): New flag.
14441 (reorder_blocks_algorithm): New enum.
14442 * flag-types.h (reorder_blocks_algorithm): New enum.
14443 * opts.c (default_options_table): Use -freorder-blocks at -O1 and up,
14444 and -freorder-blocks-algorithm=stc at -O2 and up (not at -Os).
14446 2015-10-01 Segher Boessenkool <segher@kernel.crashing.org>
14448 * bb-reorder.c: Add intro comment.
14449 (reorder_basic_blocks_software_trace_cache): Print a header to
14451 (edge_order): New function.
14452 (reorder_basic_blocks_simple): New function.
14453 (reorder_basic_blocks): Choose between the STC and the simple
14454 algorithms (always choose the former).
14456 2015-10-01 Segher Boessenkool <segher@kernel.crashing.org>
14458 * bb-reorder.c (reorder_basic_blocks_software_trace_cache): New
14459 function, factored out from ...
14460 (reorder_basic_blocks): ... here.
14462 2015-10-01 Tom de Vries <tom@codesourcery.com>
14464 * tree-cfg.c (dump_function_to_file): Dump function attributes using
14465 __attribute__(()) string. Move dumping of function attributes to before
14468 2015-10-01 Lynn Boger <laboger@linux.vnet.ibm.com>
14471 * config/rs6000/sysv4.h (TARGET_CAN_SPLIT_STACK_64BIT): Define.
14472 * configure.ac: Define HAVE_GOLD_ALTERNATE_SPLIT_STACK on Power
14473 based on gold linker version.
14474 * gcc.c: Add -fuse-ld=gold to STACK_SPLIT_SPEC if
14475 HAVE_GOLD_ALTERNATE_SPLIT_STACK defined.
14476 * configure, config.in: Regenerate.
14478 2015-10-01 Alan Modra <amodra@gmail.com>
14480 * config/rs6000/rs6000.c (rs6000_emit_prologue): Don't set
14481 r2_setup_needed when TARGET_SINGLE_PIC_BASE.
14482 (rs6000_output_mi_thunk): Likewise.
14484 2015-09-30 Nathan Sidwell <nathan@codesourcery.com>
14486 * config/nvptx/mkoffload.c (process): Change offload data format.
14488 2015-09-30 Jeff Law <law@redhat.com>
14490 * tree-ssa-dom.c (optimize_stmt): Collapse control flow statements
14491 with constant conditions.
14492 * tree-ssa-threadupdate.c (remove_jump_threads_starting_at): New.
14493 (remove_ctrl_stmt_and_useless_edges): No longer static.
14494 * tree-ssa-threadupdate.h (remove_jump_threads_starting_at): Prototype.
14495 (remove_ctrl_stmt_and_useless_edges): Likewise.
14497 2015-09-30 Nathan Sidwell <nathan@codesourcery.com>
14498 Cesar Philippidis <cesar@codesourcery.com>
14500 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims): New.
14501 (TARGET_GOACC_VALIDATE_DIMS): Override.
14502 * target.def (TARGET_GOACC): New target hook prefix.
14503 (validate_dims): New hook.
14504 * targhooks.h (default_goacc_validate_dims): New.
14505 * omp-low.c (oacc_validate_dims): New.
14506 (execute_oacc_device_lower): New.
14507 (default_goacc_validate_dims): New.
14508 (pass_data_oacc_device_lower): New.
14509 (pass_oacc_device_lower): New pass.
14510 (make_pass_oacc_device_lower): New.
14511 * tree-pass.h (make_pass_oacc_device_lower): Declare.
14512 * passes.def (pass_oacc_device_lower): Add it.
14513 * doc/tm.texi: Rebuilt.
14514 * doc/tm.texi.in (TARGET_GOACC_VALIDATE_DIMS): Add hook.
14515 * doc/invoke.texi (oaccdevlow): Document tree dump flag.
14517 2015-09-30 Bernd Edlinger <bernd.edlinger@hotmail.de>
14519 PR rtl-optimization/67037
14520 * lra-constraints.c (process_addr_reg): Use copy_rtx when necessary.
14522 2015-09-30 Bernd Schmidt <bernds@redhat.com>
14524 * gimple-ssa.h (gimple_df): Add free_ssanames_queue field.
14525 * passes.c: Include tree-ssanames.h.
14526 (execute_function_todo): Flush the pending free SSA_NAMEs after
14527 eliminating unreachable basic blocks.
14528 * tree-ssanames.c (FREE_SSANAMES_QUEUE): new.
14529 (init_ssanames): Initialize FREE_SSANAMES_QUEUE.
14530 (fini_ssanames): Finalize FREE_SSANAMES_QUEUE.
14531 (flush_ssanames_freelist): New function.
14532 (release_ssaname_fn): Put released names on the queue.
14533 (pass_release_ssa_names::execute): Call flush_ssanames_freelist.
14534 * tree-ssanames.h (flush_ssanames_freelist): Declare.
14536 2015-09-30 Thomas Schwinge <thomas@codesourcery.com>
14538 * config/i386/intelmic-mkoffload.c (main): Parse "-v" flag.
14539 (generate_target_descr_file, generate_target_offloadend_file)
14540 (generate_host_descr_file, prepare_target_image): Pass it on.
14541 * config/nvptx/mkoffload.c (main): Parse "-v" flag.
14542 (compile_native, main): Pass it on.
14543 * lto-wrapper.c (compile_offload_image): Likewise.
14545 2015-09-30 Thomas Schwinge <thomas@codesourcery.com>
14546 Ilya Verbin <ilya.verbin@intel.com>
14547 Andrey Turetskiy <andrey.turetskiy@intel.com>
14549 * config/i386/intelmic-mkoffload.c (generate_host_descr_file)
14550 (prepare_target_image, main): Refactor argv building to use
14553 2015-09-30 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
14555 * config/spu/spu-protos.h (spu_expand_atomic_op): Add prototype.
14556 * config/spu/spu.c (spu_expand_atomic_op): New function.
14557 * config/spu/spu.md (AINT): New mode iterator.
14558 (ATOMIC): New code iterator.
14559 (atomic_name, atomic_pred): New code predicates.
14560 ("atomic_load<mode>", "atomic_store<mode>"): New expanders.
14561 ("atomic_compare_and_swap<mode>", "atomic_exchange<mode>"): Likewise.
14562 (""atomic_<atomic_name><mode>", "atomic_fetch_<atomic_name><mode>",
14563 "atomic_<atomic_name>_fetch<mode>"): Likewise.
14565 2015-09-30 Ilya Enkovich <enkovich.gnu@gmail.com>
14567 * config/i386/i386.c (scalar_chain::analyze_register_chain): Ignore
14569 (scalar_chain::convert_reg): Likewise.
14571 2015-09-30 Richard Biener <rguenther@suse.de>
14573 * builtins.c: Add comment that no new simplifications should
14576 2015-09-30 Marek Polacek <polacek@redhat.com>
14578 PR tree-optimization/67690
14579 * tree-ssa-ifcombine.c (pass_tree_ifcombine::execute): Call
14580 reset_flow_sensitive_info_in_bb.
14581 * tree-ssa-tail-merge.c (replace_block_by): Likewise.
14582 * tree-ssanames.c: Include "gimple-iterator.h".
14583 (reset_flow_sensitive_info_in_bb): New function.
14584 * tree-ssanames.h (reset_flow_sensitive_info_in_bb): Declare.
14586 2015-09-30 Thomas Schwinge <thomas@codesourcery.com>
14588 * config/i386/intelmic-mkoffload.c (target_ilp32): Remove
14589 variable, replacing it with...
14590 (offload_abi): ... this new variable. Adjust all users.
14591 * config/nvptx/mkoffload.c (target_ilp32, offload_abi): Likewise.
14593 2015-09-30 Matthias Klose <doko@ubuntu.com>
14595 * configure.ac: Remove extraneous ;;.
14596 * configure: Regenerate.
14598 2015-09-29 James Bowman <james.bowman@ftdichip.com>
14600 * config/ft32/predicates.md (ft32_imm_operand): New predicate.
14601 * config/ft32/ft32.md (movmemsi, setmemsi): Use ft32_imm_operand
14602 predicate, disallow register for operand 2.
14604 2015-09-29 Aditya Kumar <aditya.k7@samsung.com>
14606 * graphite-dependences.c (scop_get_dependences): Moved in down
14607 in order to be visible to its caller.
14608 * graphite-poly.h: Removed compute_deps, and extend_schedule.
14610 2015-09-29 Sebastian Pop <s.pop@samsung.com>
14611 Aditya Kumar <aditya.k7@samsung.com>
14613 PR tree-optimization/67754
14614 * graphite-optimize-isl.c (optimize_isl): Call
14615 isl_options_set_schedule_fuse with ISL_SCHEDULE_FUSE_MIN for ISL-14.
14617 2015-09-29 Nathan Sidwell <nathan@codesourcery.com>
14619 * builtins.c (expand_builtin_acc_on_device): Delete.
14620 (expand_builtin): Don't call it.
14621 (fold_builtin_1): Fold acc_on_device.
14623 2015-09-29 H.J. Lu <hongjiu.lu@intel.com>
14625 * config/i386/i386.c (ix86_function_arg): Fix typo in comments.
14626 (ix86_nsaved_sseregs): Likewise.
14628 2015-09-29 Jeff Law <law@redhat.com>
14630 * config/microblaze/microblaze.c (microblaze_version_to_int): Remove
14631 computation of unused value.
14633 * config/pdp11/pdp11.c (pdp11_branch_cost): New function.
14634 * config/pdp11/pdp11.h (BRANCH_COST): Call function rather than
14635 inline macro expansion.
14637 * config/i386/t-interix (winnt-stubs.o): Fix compilation rule.
14639 * config/sh/sh.c (gen_shl_and): Fix undefined left shift behaviour.
14640 (gen_shl_sext): Likewise.
14641 * config/sh/sh.md (divsi3): Likewise.
14642 (imm->ext_dest_operand splitter): Likewise.
14644 2015-09-29 Sebastian Pop <s.pop@samsung.com>
14645 Aditya Kumar <aditya.k7@samsung.com>
14647 * graphite-sese-to-poly.c (gsi_for_phi_node): Remove.
14648 (nb_data_writes_in_bb): Remove.
14649 (split_pbb): Remove.
14650 (split_reduction_stmt): Remove.
14651 (is_reduction_operation_p): Remove.
14652 (phi_contains_arg): Remove.
14653 (follow_ssa_with_commutative_ops): Remove.
14654 (detect_commutative_reduction_arg): Remove.
14655 (detect_commutative_reduction_assign): Remove.
14656 (follow_inital_value_to_phi): Remove.
14657 (edge_initial_value_for_loop_phi): Remove.
14658 (initial_value_for_loop_phi): Remove.
14659 (used_outside_reduction): Remove.
14660 (detect_commutative_reduction): Remove.
14661 (translate_scalar_reduction_to_array_for_stmt): Remove.
14662 (remove_phi): Remove.
14663 (dr_indices_valid_in_loop): Remove.
14664 (close_phi_written_to_memory): Remove.
14665 (translate_scalar_reduction_to_array): Remove.
14666 (rewrite_commutative_reductions_out_of_ssa_close_phi): Remove.
14667 (rewrite_commutative_reductions_out_of_ssa_loop): Remove.
14668 (rewrite_commutative_reductions_out_of_ssa): Remove.
14669 (build_poly_scop): Remove call to
14670 rewrite_commutative_reductions_out_of_ssa.
14672 2015-09-29 Evandro Menezes <e.menezes@samsung.com>
14674 * config/arm/types.md (neon_ldp, neon_ldp_q, neon_stp, neon_stp_q):
14675 Add new insn types for vector load and store pairs.
14676 * config/arm/cortex-a53.md (cortex_a53_f_load_2reg): Add insn
14677 types "neon_ldp{,_q}".
14678 * config/arm/cortex-a57.md (neon_load_c): Add insn types
14680 (neon_store_complex): Add insn types "neon_stp{,_q}".
14681 * config/aarch64/aarch64-simd.md (aarch64_be_movoi): Add insn types
14682 "neon_{ldp,stp}_q".
14684 2015-09-29 Jeff Law <law@redhat.com>
14686 * config/rx/constraints.md (Int08): Fix undefined left shift
14688 (Sint08, Sint16, Sint24): Likewise.
14689 * config/rx/rx.c (rx_get_stack_layout): Likewise.
14691 * config/rl78/rl78-expand.md (movqi): Fix undefined left shift
14694 * config/msp430/msp430.c (msp430_legitimate_constant): Fix undefined
14695 left shift behaviour.
14696 * config/msp430/constraints.md ('L' constraint): Similarly.
14697 ('Ys' constraint): Similarly.
14699 2015-09-29 Richard Biener <rguenther@suse.de>
14701 PR tree-optimization/67170
14702 * tree-ssa-alias.h (get_continuation_for_phi): Adjust
14703 the translate function pointer parameter to get the
14704 bool whether to disambiguate only by reference.
14705 (walk_non_aliased_vuses): Likewise.
14706 * tree-ssa-alias.c (maybe_skip_until): Adjust.
14707 (get_continuation_for_phi_1): Likewise.
14708 (get_continuation_for_phi): Likewise.
14709 (walk_non_aliased_vuses): Likewise.
14710 * tree-ssa-sccvn.c (const_parms): New bitmap.
14711 (vn_reference_lookup_3): Adjust for interface change.
14712 Disambiguate parameters pointing to readonly memory.
14713 (free_scc_vn): Free const_parms.
14714 (run_scc_vn): Initialize const_parms from a fn spec attribute.
14716 2015-09-29 Richard Biener <rguenther@suse.de>
14718 PR tree-optimization/67741
14719 * tree-ssa-math-opts.c (pass_cse_sincos::execute): Only recognize
14720 builtin calls with correct signature.
14722 2015-09-29 Ilya Enkovich <enkovich.gnu@gmail.com>
14725 * config/i386/i386.c: Include dbgcnt.h.
14726 (has_non_address_hard_reg): New.
14727 (convertible_comparison_p): New.
14728 (scalar_to_vector_candidate_p): New.
14729 (remove_non_convertible_regs): New.
14730 (scalar_chain): New.
14731 (scalar_chain::scalar_chain): New.
14732 (scalar_chain::~scalar_chain): New.
14733 (scalar_chain::add_to_queue): New.
14734 (scalar_chain::mark_dual_mode_def): New.
14735 (scalar_chain::analyze_register_chain): New.
14736 (scalar_chain::add_insn): New.
14737 (scalar_chain::build): New.
14738 (scalar_chain::compute_convert_gain): New.
14739 (scalar_chain::replace_with_subreg): New.
14740 (scalar_chain::replace_with_subreg_in_insn): New.
14741 (scalar_chain::emit_conversion_insns): New.
14742 (scalar_chain::make_vector_copies): New.
14743 (scalar_chain::convert_reg): New.
14744 (scalar_chain::convert_op): New.
14745 (scalar_chain::convert_insn): New.
14746 (scalar_chain::convert): New.
14747 (convert_scalars_to_vector): New.
14748 (pass_data_stv): New.
14750 (make_pass_stv): New.
14751 (ix86_option_override): Created and register stv pass.
14752 (flag_opts): Add -mstv.
14753 (ix86_option_override_internal): Likewise.
14754 * config/i386/i386.md (SWIM1248x): New.
14755 (*movdi_internal): Add xmm to mem alternative for TARGET_STV.
14756 (and<mode>3): Use SWIM1248x iterator instead of SWIM.
14757 (*anddi3_doubleword): New.
14758 (*zext<mode>_doubleword): New.
14759 (*zextsi_doubleword): New.
14760 (<code><mode>3): Use SWIM1248x iterator instead of SWIM.
14761 (*<code>di3_doubleword): New.
14762 * config/i386/i386.opt (mstv): New.
14763 * dbgcnt.def (stv_conversion): New.
14765 2015-09-29 Tom de Vries <tom@codesourcery.com>
14767 * tree-cfg.c (dump_function_to_file): Dump function attributes.
14769 2015-09-29 Kaz Kojima <kkojima@gcc.gnu.org>
14772 * config/sh/sh.c (sh_override_options_after_change): New.
14773 (TARGET_OVERRIDE_OPTIONS_AFTER_CHANGE): Define.
14774 (sh_option_override): Move align_loops, align_jumps and
14775 align_functions handling into sh_override_options_after_change.
14777 2015-09-28 Nathan Sidwell <nathan@codesourcery.com>
14779 * config/nvptx/nvptx.c: Include omp-low.h and gomp-constants.h.
14780 (nvptx_record_offload_symbol): Record function execution geometry.
14781 * config/nvptx/mkoffload.c (process): Include launch geometry in
14783 * omp-low.c (oacc_launch_pack): New.
14784 (replace_oacc_fn_attrib): New.
14785 (set_oacc_fn_attrib): New.
14786 (get_oacc_fn_attrib): New.
14787 (expand_omp_target): Create keyed varargs for GOACC_parallel call
14789 * omp-low.h (get_oacc_fn_attrib): Declare.
14790 * builtin-types.def (DEF_FUNCTION_TyPE_VAR_6): New.
14791 (DEF_FUNCTION_TYPE_VAR_11): Delete.
14792 * tree.h (OMP_CLAUSE_EXPR): New.
14793 * omp-builtins.def (BUILT_IN_GOACC_PARALLEL): Change target fn name.
14795 2015-09-28 Aditya Kumar <aditya.k7@samsung.com>
14796 Sebastian Pop <s.pop@samsung.com>
14798 * sese.c (invariant_in_sese_p_rec): Remove unused variable.
14800 2015-09-28 Aditya Kumar <aditya.k7@samsung.com>
14801 Sebastian Pop <s.pop@samsung.com>
14803 * graphite-optimize-isl.c (optimize_isl): Use ISL_SCHEDULE_FUSE_MAX.
14804 * graphite-scop-detection.c (struct sese_l): New type.
14805 (get_entry_bb): API for getting entry bb of SESE.
14806 (get_exit_bb): API for getting exit bb of SESE.
14807 (class debug_printer): New type. Simple printer in debug mode.
14808 (trivially_empty_bb_p): New. Return true when BB is empty or
14809 contains only debug instructions.
14810 (graphite_can_represent_expr): Call scalar_evoution_in_region
14811 instead of analyze_scalar_evolution. Pass in scop instead of only
14813 (stmt_has_simple_data_refs_p): Pass in scop instead of only the
14815 (stmt_simple_for_scop_p): Same.
14816 (harmful_stmt_in_bb): Same.
14817 (graphite_can_represent_loop): Deleted.
14818 (struct scopdet_info): Deleted.
14819 (scopdet_basic_block_info): Deleted.
14820 (build_scops_1): Deleted.
14821 (bb_in_sd_region): Deleted.
14822 (find_single_entry_edge): Deleted.
14823 (find_single_exit_edge): Deleted.
14824 (create_single_entry_edge): Deleted.
14825 (sd_region_without_exit): Deleted.
14826 (create_single_exit_edge): Deleted.
14827 (unmark_exit_edges): Deleted.
14828 (mark_exit_edges): Deleted.
14829 (create_sese_edges): Deleted.
14830 (build_graphite_scops): Deleted.
14831 (canonicalize_loop_closed_ssa): Recompute all dominators at the end.
14832 (build_scops): Use the new scop_builder to build scops.
14833 (dot_all_scops_1): Use the new pretty printer. Print loop father
14835 (loop_body_is_valid_scop): New. Return true if loop body is a
14837 (class scop_builder): New. Builds SCoPs for polyhedral
14839 (scop_builder): New constructor.
14840 (static sese_l invalid_sese): sese_l with invalid edges.
14841 (get_sese): Get an sese (from a loop) if possible, invalid_sese
14843 (get_nearest_dom_with_single_entry): Get nearest dominator of a
14844 basic_block with single entry. Return NULL if we get to the
14845 beginning of a function.
14846 (get_nearest_pdom_with_single_exit): Get nearest post-dominator of
14847 a basic_block with single exit. Return NULL if we get to the
14848 beginning of a function.
14849 (print_sese): Pretty-print SESE.
14850 (merge_sese): Merge two SESEs if possible and return the new SESE.
14851 (build_scop_depth): Start building the SCoP within a loop nest.
14852 (build_scop_breadth): Start building the SCoP at a single loop
14853 depth. Merge adjacent SESEs if valid.
14854 (can_represent_loop_1): Returns true if Graphite can represent
14855 loop inside SCoP. Helper for can_represent_loop.
14856 (can_represent_loop): Returns true if Graphite can represent LOOP
14857 and all its nested loops in SCoP.
14858 (loop_is_valid_scop): Returns true if LOOP and all its nests
14859 constitute a valid SCoP.
14860 (region_has_one_loop): Returns true of a region has only one loop.
14861 (add_scop): Add SCoP to the list of valid scops. Removes an
14862 already existing scop if it intersects with or subsumed by this one.
14863 (harmful_stmt_in_region): Returns true if SCoP has any statment
14864 which cannot be represented by Graphite.
14865 (subsumes): Returns true of SCoP S1 subsumes SCoP S2.
14866 (remove_subscops): Remove any SCoP from the list of already found
14867 SCoPs, if subsumed by S1.
14868 (intersects): Return true if region bounded by SCoPs S1 and S2
14870 (remove_intersecting_scops): Remove any SCoP which intersects with S1.
14871 * graphite.c (print_graphite_scop_statistics):
14872 (print_graphite_statistics): Print SCoP info while debugging.
14873 (graphite_initialize): Early exit in case number of loops in a
14874 function is less than PARAM_GRAPHITE_MIN_LOOPS_PER_FUNCTION or
14875 basic blocks are more than PARAM_GRAPHITE_MAX_BBS_PER_FUNCTION.
14876 (graphite_finalize):
14877 * params.def: Add PARAM_GRAPHITE_MIN_LOOPS_PER_FUNCTION.
14878 * sese.h (sese_loop_depth): Remove unnecessary gcc_assert.
14879 (recompute_all_dominators): Recalculate POST_DOMINATORS.
14880 * tree-cfg.c (print_loops): Print the function name while printing
14883 2015-09-28 Aditya Kumar <aditya.k7@samsung.com>
14884 Sebastian Pop <s.pop@samsung.com>
14886 PR tree-optimization/67700
14887 * graphite-sese-to-poly.c (parameter_index_in_region): Call
14888 invariant_in_sese_p_rec.
14889 (extract_affine): Same.
14890 (rewrite_cross_bb_scalar_deps): Call update_ssa.
14891 * sese.c (invariant_in_sese_p_rec): Export. Handle vdefs and vuses.
14892 * sese.h (invariant_in_sese_p_rec): Declare.
14894 2015-09-28 David Wohlferd <dw@LimeGreenSocks.com>
14896 * doc/extend.texi (Asm Labels): Break out text for data vs functions.
14898 2015-09-28 Jiong Wang <jiong.wang@arm.com>
14901 2015-08-06 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
14902 Jiong Wang <jiong.wang@arm.com>
14904 * config/aarch64/aarch64.d (tlsdesc_small_pseudo_<mode>): New pattern.
14905 * config/aarch64/aarch64.h (reg_class): New enumeration FIXED_REG0.
14906 (REG_CLASS_NAMES): Likewise.
14907 (REG_CLASS_CONTENTS): Likewise.
14908 * config/aarch64/aarch64.c (aarch64_class_max_nregs): Likewise.
14909 (aarch64_register_move_cost): Likewise.
14910 (aarch64_load_symref_appropriately): Invoke the new added pattern if
14912 * config/aarch64/constraints.md (Uc0): New constraint.
14914 2015-09-28 Daniel Hellstrom <daniel@gaisler.com>
14916 * config/sparc/t-rtems: Remove -muser-mode. Add ut699, at697f and leon.
14918 2015-09-28 David Edelsohn <dje.gcc@gmail.com>
14920 * config/rs6000/rs6000.c (rs6000_xcoff_asm_named_section): Place
14921 SECTION_EXCLUDE in XO mapping class.
14923 2015-09-28 Oleg Endo <olegendo@gcc.gnu.org>
14926 * config/sh/predicates.md (t_reg_operand, negt_reg_operand): Allow
14927 and handle ne and eq codes.
14928 * config/sh/sh.c (sh_rtx_costs): Adjust matching of tst #imm,r0 insn.
14929 (sh_recog_treg_set_expr): Early accept negt_reg_operand. Eearly reject
14930 CONST_INT_P. Use reverse_condition.
14931 (sh_split_treg_set_expr): Likewise.
14933 2015-09-28 James Greenhalgh <james.greenhalgh@arm.com>
14935 * config/arm/types.md (type): Add rotate_imm.
14936 * config/aarch64/aarch64.md (*ror<mode>3_insn): Split out the
14937 ROR immediate case.
14938 (*rorsi3_insn_uxtw): Likewise.
14939 * config/aarch64/thunderx.md (thunderx_shift): Add rotate_imm.
14940 * config/arm/cortex-a53.md (cortex_a53_alu_shift): Add rotate_imm.
14941 * config/arm/cortex-a57.md (cortex_a53_alu): Add rotate_imm.
14943 2015-09-28 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
14945 PR rtl-optimization/67481
14946 * ifcvt.c (contains_ccmode_rtx_p): New function.
14947 (insn_valid_noce_process_p): Use it.
14949 2015-09-28 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
14951 PR rtl-optimization/67456
14952 PR rtl-optimization/67464
14953 PR rtl-optimization/67465
14954 * ifcvt.c (noce_try_cmove_arith): Bail out if cannot conditionally
14955 move in the mode of x. Handle combination of complex and simple
14956 block pairs as well as the case when one is empty.
14958 2015-09-28 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
14960 * doc/gimple.texi: Update references to gimple_statement_base.
14961 * gdbhooks.py: Likewise.
14962 * gimple.h: Likewise.
14964 2015-09-28 Daniel Cederman <cederman@gaisler.com>
14966 * config/sparc/driver-sparc.c: map LEON to leon3
14968 2015-09-28 Daniel Cederman <cederman@gaisler.com>
14970 * config/sparc/sparc.opt: Rename mask from USER_MODE to SV_MODE
14971 and make it inverse to change default
14972 * config/sparc/sync.md: Only use supervisor ASI for CASA when in
14974 * doc/invoke.texi: Document change of default
14976 2015-09-28 Daniel Cederman <cederman@gaisler.com>
14978 * config/sparc/sparc.c (sparc_function_value_regno_p): Do not return
14979 true on %f0 for a target without FPU.
14980 * config/sparc/sparc.md (untyped_call): Do not save %f0 for a target
14982 (untyped_return): Do not load %f0 for a target without FPU.
14984 2015-09-28 Andrew Pinski <apinski@cavium.com>
14986 * config/aarch64/aarch64.md (prefetch):
14987 Change the predicate of operand 0 to register_operand.
14989 2015-09-27 Uros Bizjak <ubizjak@gmail.com>
14991 * config/i386/predicates.md (register_sse4nonimm_operand): New
14993 * config/i386/sse.md (PEXTR_MODE12): New mode iterator.
14994 (*vec_extract<mode>): Use PEXTR_MODE12 instead of VI12_128 mode.
14995 Use register_sse4nonimm_operand as operand 0 predicate.
14996 (*vec_extractv8hi_sse2): Remove insn pattern.
14997 (*vec_extract<PEXTR_MODE12:mode>_zext): Merge insn pattern from
14998 *vec_extractv8hi_zext and *vec_extractv16qi_zext patterns.
15000 2015-09-27 Oleg Endo <olegendo@gcc.gnu.org>
15001 Kaz Kojima <kkojima@gcc.gnu.org>
15004 * config/sh/sh-protos.h (sh_lra_p): Declare.
15005 * config/sh/sh.c (sh_lra_p): Make non-static.
15006 * config/sh/sh.md (addsi3): Use arith_reg_dest for operands[0] and
15007 arith_reg_operand for operands[1]. Remove TARGET_SHMEDIA case.
15008 Expand into addsi3_scr if operands[2] if needed.
15009 (*addsi3_compact): Rename to *addsi3_compact_lra. Use
15010 arith_reg_operand for operands[1]. Allow it only when LRA is enabled.
15011 (addsi3_scr, *addsi3): New insn_and_split patterns.
15013 2015-09-27 Alexandre Oliva <aoliva@redhat.com>
15015 PR rtl-optimization/64164
15016 PR tree-optimization/67312
15017 PR middle-end/67340
15018 PR middle-end/67490
15020 * cfgexpand.c (parm_in_stack_slot_p): Remove.
15021 (ssa_default_def_partition): Remove.
15022 (get_rtl_for_parm_ssa_default_def): Remove.
15023 (set_rtl): Check that RTL assignments match expectations.
15024 Loop on SUBREGs, CONCATs and PARALLELs subexprs. Set only the
15025 default def location for params and results. Record SSA names
15026 or types in REG and MEM attrs, respectively.
15027 (set_parm_rtl): New.
15028 (expand_one_ssa_partition): Drop logic that assigned MEMs with
15029 unassigned addresses.
15030 (adjust_one_expanded_partition_var): Don't accept NULL RTL on
15031 deferred stack alloc vars.
15032 (expand_used_vars): Skip partitions holding parm default defs.
15033 Move adjust_one_expanded_partition_var loop...
15034 (pass_expand::execute): ... here. Drop redundant assert.
15035 Adjust comments before the final loop over all ssa names.
15036 Require assigned rtl of parms and results to match exactly.
15037 Reset its attributes to match them, not any other variables in
15038 the same partition.
15039 (expand_debug_expr): Use entry value for PARM's default defs
15040 only iff they have zero nondebug uses.
15041 * cfgexpand.h (parm_in_stack_slot_p): Remove.
15042 (get_rtl_for_parm_ssa_default_def): Remove.
15043 (set_parm_rtl): Declare.
15044 * doc/invoke.texi: Improve wording.
15045 * explow.c (promote_decl_mode): Fix promote_function_mode for
15046 result decls not by reference.
15047 (promote_ssa_mode): Disregard BLKmode from promote_decl, and
15048 bypass TYPE_MODE to get the actual vector mode.
15049 * function.c: Include tree-dfa.h. Revert 2015-08-14's and
15050 2015-08-19's changes as follows. Drop include of
15051 basic-block.h and df.h.
15052 (rtl_for_parm): Remove.
15053 (maybe_reset_rtl_for_parm): Remove.
15054 (parm_in_unassigned_mem_p): Remove.
15055 (use_register_for_decl): Add logic for RESULT_DECLs matching
15056 assign_parms' behavior.
15057 (split_complex_args): Revert.
15058 (assign_parms_augmented_arg_list): Revert. Add comment
15059 referencing the logic above.
15060 (assign_parm_adjust_stack_rtl): Revert.
15061 (assign_parm_setup_block): Revert. Use set_parm_rtl instead
15062 of SET_DECL_RTL. Set up a REG if the parm demands so.
15063 (assign_parm_setup_reg): Revert. Consolidated SET_DECL_RTL
15064 calls into a single set_parm_rtl. Set up a temporary RTL
15065 temporarily for expand_assignment.
15066 (assign_parm_setup_stack): Revert. Use set_parm_rtl.
15067 (assign_parms_unsplit_complex): Revert. Use set_parm_rtl.
15068 (assign_bounds): Revert.
15069 (assign_parms): Revert. Use set_parm_rtl.
15070 (allocate_struct_function): Relayout result and parms of
15071 non-abstruct functions.
15072 (expand_function_start): Revert. Use set_parm_rtl. If the
15073 result is not a hard reg, create a pseudo from the promoted
15074 mode of the default def. Promote static chain mode.
15075 * tree-outof-ssa.c (remove_ssa_form): Drop unused
15076 partition_has_default_def. Set up
15077 partitions_for_parm_default_defs.
15078 (finish_out_of_ssa): Remove partition_has_default_def.
15079 Release partitions_for_parm_default_defs.
15080 * tree-outof-ssa.h (struct ssaexpand): Remove
15081 partition_has_default_def. Add
15082 partitions_for_parm_default_defs.
15083 * tree-ssa-coalesce.c: Include tree-dfa.h, tm_p.h and
15085 (build_ssa_conflict_graph): Fix conflict-detection of default
15086 defs of even unused default defs of params and results.
15087 (for_all_parms): New.
15088 (create_default_def): New.
15089 (register_default_def): New.
15090 (coalesce_with_default): New.
15091 (create_outofssa_var_map): Create default defs for all parms
15092 and results, and register their partitions. Add GIMPLE_RETURN
15093 operands as coalesce candidates with results. Add default
15094 defs of each parm or result as coalesce candidates with its
15095 other defs. Mark each result def, and each default def of
15096 parms, as used_in_copy.
15097 (gimple_can_coalesce_p): Call it. Call use_register_for_decl
15098 with the ssa names, even anonymous ones. Drop
15099 parm_in_stack_slot_p calls. Require same signedness and
15101 (coalesce_ssa_name): Add coalesce candidates for all defs of
15102 each parm and result, even unused ones.
15103 (parm_default_def_partition_arg): New type.
15104 (set_parm_default_def_partition): New.
15105 (get_parm_default_def_partitions): New.
15106 * tree-ssa-coalesce.h (get_parm_default_def_partitions): New.
15107 * tree-ssa-live.c (partition_view_init): Regard unused defs of
15108 parms and results as used.
15109 (verify_live_on_entry): Don't error out just because they're
15112 2015-09-26 David Edelsohn <dje.gcc@gmail.com>
15114 * dwarf2out.c (XCOFF_DEBUGGING_INFO): Default 0 definition.
15115 (HAVE_XCOFF_DWARF_EXTRAS): Default to 0 definition.
15116 (output_fde): Don't output length for debug_frame on AIX.
15117 (output_call_frame_info): Don't output length for debug_frame on AIX.
15118 (have_macinfo): Force to False for XCOFF_DEBUGGING_INFO and not
15119 HAVE_XCOFF_DWARF_EXTRAS.
15120 (add_AT_loc_list): Return early if XCOFF_DEBUGGING_INFO and not
15121 HAVE_XCOFF_DWARF_EXTRAS.
15122 (output_compilation_unit_header): Don't output length on AIX.
15123 (output_pubnames): Don't output length on AIX.
15124 (output_aranges): Delete argument. Compute length locally. Don't
15125 output length on AIX.
15126 (output_line_info): Don't output length on AIX.
15127 (dwarf2out_finish): Don't compute aranges_length.
15128 * dwarf2asm.c (XCOFF_DEBUGGING_INFO): Default 0 definition.
15129 (dw2_asm_output_nstring): Emit .byte not .ascii on AIX.
15130 * config/rs6000/rs6000.c (rs6000_output_dwarf_dtprel): Emit correct
15131 symbol decoration for AIX.
15132 (rs6000_xcoff_debug_unwind_info): New.
15133 (rs6000_xcoff_asm_named_section): Emit .dwsect pseudo-op
15135 (rs6000_xcoff_declare_function_name): Emit different
15136 .function pseudo-op when DWARF2_DEBUG. Don't call
15137 xcoffout_declare_function for DWARF2_DEBUG.
15138 * config/rs6000/xcoff.h (TARGET_DEBUG_UNWIND_INFO):
15140 * config/rs6000/aix71.h: New.
15141 * configure.ac (gcc_cv_as_aix_dwloc): Check AIX as for DWARF
15143 * configure: Regenerate.
15144 * config.gcc (powerpc-ibm-aix[789]+): New stanza for AIX 7.1+ with
15147 2015-09-26 Jeff Law <law@redhat.com>
15149 * config/arc/arc.c (arc_output_addsi): Fix left shift undefined
15151 * config/arc/constraints.md (Cca, C2a): Fix left shift undefined
15154 * config/sh/sh.h (CONST_OK_FOR_J16): Fix left shift undefined
15157 * config/mips/mips.c (mips_compute_frame_info): Fix left shift
15158 undefined behaviour.
15160 * config/cris/cris.md (asrandb): Fix left shift undefined
15162 (asrandw): Likewise.
15164 2015-09-25 Vladimir Makarov <vmakarov@redhat.com>
15167 * lra-constarints.c (match_reload): Check presence of the input pseudo
15168 in the output operand.
15170 2015-09-25 Tobias Burnus <burnus@net-b.de>
15172 * doc/invoke.texi (-fsanitize): Minor wording tweak.
15174 2015-09-25 Tobias Burnus <burnus@net-b.de>
15176 * doc/invoke.texi (-fsanitize): Update URLs.
15178 2015-09-25 Teresa Johnson <tejohnson@google.com>
15180 * opts.c (finish_options): Unset -freorder-blocks-and-partition
15181 if not using profile.
15183 2015-09-25 Manuel López-Ibáñez <manu@gcc.gnu.org>
15185 PR pretty-print/67567
15186 * pretty-print.c (pp_string): Add gcc_checking_assert.
15187 * pretty-print.h (output_buffer_append_r): Likewise.
15189 2015-09-25 Oleg Endo <olegendo@gcc.gnu.org>
15192 * config/sh/sh-mem.cc (sh_expand_cmpstr): Check alignment of addr1 and
15193 addr2 individually. Don't emit logical or insn if one is known to
15194 be aligned approriately.
15195 (sh_expand_cmpnstr): Likewise.
15197 2015-09-25 Richard Sandiford <richard.sandiford@arm.com>
15199 * config/aarch64/aarch64-builtins.c (aarch64_expand_builtin): Force
15200 __builtin_aarch64_fp[sc]r arguments into a register.
15202 2015-09-25 H.J. Lu <hongjiu.lu@intel.com>
15204 * config.gcc (x86_archs): Replace lakemount with lakemont.
15205 (with_cpu): Likewise.
15206 (with_arch): Likewise.
15207 * config/i386/i386-c.c (ix86_target_macros_internal): Replace
15208 PROCESSOR_LAKEMOUNT with PROCESSOR_LAKEMONT. Replace
15209 __tune_lakemount__ with __tune_lakemont__.
15210 * config/i386/i386.c (lakemount_cost): Renamed to ...
15211 (lakemont_cost): This.
15212 (m_LAKEMOUNT): Renamed to ...
15213 (m_LAKEMONT): This.
15214 (initial_ix86_arch_features): Replace m_LAKEMOUNT with m_LAKEMONT.
15215 (processor_target_table): Replace "lakemount" with "lakemont".
15216 (processor_alias_table): Likewise.
15217 (ix86_issue_rate): Replace PROCESSOR_LAKEMOUNT with
15218 PROCESSOR_LAKEMONT.
15219 (ix86_adjust_cost): Likewise.
15220 (ia32_multipass_dfa_lookahead): Likewise.
15221 * config/i386/i386.h (processor_type): Likewise.
15222 * config/i386/x86-tune.def: Replace m_LAKEMOUNT with m_LAKEMONT.
15223 * doc/invoke.texi: Replace lakemount with lakemont. Replace
15224 Lakemount with Lakemont.
15226 2015-09-24 H.J. Lu <hongjiu.lu@intel.com>
15228 * config.gcc (x86_archs): Replace iamcu with lakemount.
15229 (with_cpu): Likewise.
15230 (with_arch): Likewise.
15231 * doc/invoke.texi: Likewise.
15232 * config/i386/i386-c.c (ix86_target_macros_internal): Replace
15233 PROCESSOR_IAMCU with PROCESSOR_LAKEMOUNT. Replace
15234 __tune_iamcu__ with __tune_lakemount__.
15235 * config/i386/i386.c (iamcu_cost): Renamed to ...
15236 (lakemount_cost): This.
15237 (m_IAMCU): Renamed to ...
15238 (m_LAKEMOUNT): This.
15239 (initial_ix86_arch_features): Replace m_IAMCU with m_LAKEMOUNT.
15240 (processor_target_table): Replace "iamcu" with "lakemount".
15241 (processor_alias_table): Likewise.
15242 (ix86_issue_rate): Replace PROCESSOR_IAMCU with
15243 PROCESSOR_LAKEMOUNT.
15244 (ix86_adjust_cost): Likewise.
15245 (ia32_multipass_dfa_lookahead): Likewise.
15246 * config/i386/i386.h (processor_type): Likewise.
15247 * config/i386/x86-tune.def: Replace m_IAMCU with m_LAKEMOUNT.
15249 2015-09-24 John David Anglin <danglin@gcc.gnu.org>
15251 * config/pa/pa-linux.h (HAVE_sync_compare_and_swapdi): Define.
15252 * config/pa/pa-protos.h (pa_maybe_emit_compare_and_swap_exchange_loop):
15254 * config/pa/pa.c (pa_init_libfuncs): Init sync libfuncs up to 8 bytes.
15255 (pa_expand_compare_and_swap_loop): New.
15256 (pa_maybe_emit_compare_and_swap_exchange_loop): New.
15257 * config/pa/pa.md (atomic_storeqi, atomic_storehi, atomic_storesi,
15258 atomic_storesf, atomic_loaddf, atomic_storedf): New expanders.
15259 (atomic_loaddf_1, atomic_storedf_1): New insn patterns.
15260 (atomic_loaddi, atomic_loaddi_1, atomic_storedi, atomic_storedi_1):
15263 2015-09-24 Michael Collison <michael.collison@linaro.org>
15266 * read-md.c (read_name): Allow mode iterators inside angle
15267 brackets in rtl expressions.
15269 2015-09-24 Vladimir Makarov <vmakarov@redhat.com>
15272 * ira-color.c (update_allocno_cost): Add parameter.
15273 (update_costs_from_allocno): Decrease conflict cost. Pass the new
15276 2015-09-24 Manuel López-Ibáñez <manu@gcc.gnu.org>
15279 * opts-common.c (prune_options): Discard all -fdiagnostics-color
15280 but the last one, which is moved to the front to be processed
15282 * opts.c (enable_warning_as_error): Reject options that do not
15285 2015-09-24 Jiong Wang <jiong.wang@arm.com>
15287 * config/aarch64/aarch64.c (aarch64_print_operand): Add "CONST" support.
15289 2015-09-24 Jiong Wang <jiong.wang@arm.com>
15291 * config/aarch64/aarch64-protos.h (aarch64_symbol_context): Delete.
15292 * config/aarch64/aarch64.c (aarch64_expand_mov_immediate): Likewise.
15293 (aarch64_cannot_force_const_mem): Likewise.
15294 (aarch64_classify_address): Likewise.
15295 (aarch64_classify_symbolic_expression): Likewise.
15296 (aarch64_print_operand): Likewise.
15297 (aarch64_classify_symbol): Likewise.
15298 (aarch64_mov_operand_p): Likewise.
15299 * config/aarch64/predicates.md (aarch64_valid_symref): Likewise.
15300 (aarch64_mov_operand): Likewise.
15302 2015-09-24 Segher Boessenkool <segher@kernel.crashing.org>
15304 * config/rs6000/rs6000.c (debug_stack_info): Invert the test
15305 for info->spe_gp_size.
15307 2015-09-24 Richard Biener <rguenther@suse.de>
15310 * lto-cgraph.c (compute_ltrans_boundary): Do not stream
15313 2015-09-24 Thomas Schwinge <thomas@codesourcery.com>
15315 * tree-object-size.c (plus_stmt_object_size)
15316 (cond_expr_object_size): Change the formal parameters from gimple
15318 * tree-ssa-sccvn.h (vn_nary_op_insert_stmt): Likewise.
15319 * tree-ssa-sccvn.c (vn_nary_op_insert_stmt): Make it static.
15320 * tree-ssa-sccvn.h (vn_nary_op_insert_stmt): Don't declare.
15322 2015-09-24 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
15324 * configure.ac (gcc_cv_ld_pie): Check for gld >= 2.26 on Solaris.
15325 Check for ld -type pie on Solaris 11.x and 12.
15326 * configure: Regenerate.
15327 * config.in: Regenerate.
15329 * gcc.c (LD_PIE_SPEC): Allow redefinition.
15331 * config/sol2.h (STARTFILE_CRTBEGIN_SPEC): Define.
15332 (STARTFILE_SPEC): Use it.
15333 (ENDFILE_CRTEND_SPEC): Define.
15334 (ENDFILE_SPEC): Use it and ENDFILE_ARCH_SPEC.
15335 (SUBTARGET_EXTRA_SPECS): Add STARTFILE_CRTBEGIN_SPEC,
15336 ENDFILE_ARCH_SPEC, ENDFILE_CRTEND_SPEC.
15337 [HAVE_LD_PIE && HAVE_SOLARIS_CRTS] (LD_PIE_SPEC): Define.
15338 (!(HAVE_LD_PIE && HAVE_SOLARIS_CRTS)] (LINK_PIE_SPEC): Define.
15339 * config/i386/sol2.h (ENDFILE_SPEC): Remove.
15340 (ENDFILE_ARCH_SPEC): Define.
15341 * config/sparc/sol2.h (ENDFILE_ARCH_SPEC): Define.
15343 2015-09-24 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
15345 * configure.ac (gcc_cv_solaris_crts): New test.
15346 * configure. Regenerate.
15347 * config.in: Regenerate.
15348 * config/sol2.h (STARTFILE_SPEC): Simplify, provide
15349 HAVE_SOLARIS_CRTS variant.
15351 2015-09-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
15353 * tree-inline.h (count_insns_seq): Delete prototype.
15354 (estimate_num_insns_seq): Define prototype.
15355 * tree-inline.c (count_insns_seq): Delete.
15356 (estimate_num_insns_seq): Remove static qualifier.
15357 * tree-eh.c (decide_copy_try_finally): Replace use of count_insns_seq
15358 with estimate_num_insns_seq.
15360 2015-09-24 Richard Biener <rguenther@suse.de>
15362 * tree-ssa-sccvn.h (vn_reference_op_struct): Add clique and base
15364 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Record clique
15365 and base for MEM_REF and TARGET_MEM_REF. Handle BIT_FIELD_REF
15367 (ao_ref_init_from_vn_reference): Record clique and base in the
15369 * tree-ssa-pre.c (create_component_ref_by_pieces_1): Likewise
15371 2015-09-24 Richard Biener <rguenther@suse.de>
15373 PR tree-optimization/48885
15374 * tree-ssa-structalias.c (visit_loadstore): Handle default defs
15375 as not including any restrict tags from other pointers.
15377 2015-09-23 Thomas Schwinge <thomas@codesourcery.com>
15379 * gcc.c (handle_foffload_option): Don't lose the trailing NUL
15380 character when appending to offload_targets.
15382 * configure.ac (offload_targets, OFFLOAD_TARGETS): Separate
15383 offload targets by commas, not colons.
15384 * config.in: Regenerate.
15385 * configure: Likewise.
15386 * gcc.c (driver::maybe_putenv_COLLECT_LTO_WRAPPER): Due to that,
15387 instead of setting up the default offload targets here...
15388 (process_command): ..., do it here.
15390 * plugin/configfrag.ac (OFFLOAD_TARGETS): Clarify that offload
15391 targets are separated by commas.
15392 * config.h.in: Regenerate.
15394 2015-09-23 Thomas Schwinge <thomas@codesourcery.com>
15395 Nathan Sidwell <nathan@codesourcery.com>
15397 * omp-low.h (omp_reduction_init_op): Declare.
15398 * omp-low.c (omp_reduction_init_op): New, broken out of ...
15399 (omp_reduction_init): ... here. Call it.
15400 * tree-parloops.c (initialize_reductions): Use
15401 omp_reduction_init_op.
15403 2015-09-23 Richard Biener <rguenther@suse.de>
15405 PR middle-end/67662
15406 * fold-const.c (fold_binary_loc): Do not reassociate two vars with
15407 undefined overflow unless they will cancel out.
15409 2015-09-23 Kirill Yukhin <kirill.yukhin@intel.com>
15411 * config/i386/i386.md (define_insn "*<mshift><mode>3"): Fix
15414 2015-09-23 Manuel López-Ibáñez <manu@gcc.gnu.org>
15417 * opts.h (write_langs): Declare.
15418 * opts-global.c (write_langs): Make it extern.
15420 2015-09-23 Oleg Endo <olegendo@gcc.gnu.org>
15423 * config/sh/sh.md (addsi3, *addsi3_compact): Don't check for
15424 overlapping regs when matching the pattern.
15426 2015-09-23 James Greenhalgh <james.greenhalgh@arm.com>
15428 * config/aarch64/aarch64-simd.md
15429 (aarch64_float_truncate_hi_v4sf): Rewrite as an expand.
15430 (aarch64_float_truncate_hi_v4sf_le): New.
15431 (aarch64_float_truncate_hi_v4sf_be): Likewise.
15433 2015-09-23 Richard Biener <rguenther@suse.de>
15435 * tree-ssa-structalias.c (intra_create_variable_infos): Build
15436 representatives for all restrict qualified pointer destinations.
15438 2015-09-23 Kirill Yukhin <kirill.yukhin@intel.com>
15440 * config/i386/i386.md (define_code_attr mshift): New.
15441 (define_mode_iterator SWI1248_AVX512BW): Rename ...
15442 (SWI1248_AVX512BW): ... to this. Make QI enabled for TARGET_AVX512DQ
15444 (define_insn "*k<logic><mode>"): Use new iterator name.
15445 (define_insn "*<mshift><mode>3"): New.
15447 2015-09-23 Mikhail Maltsev <maltsevm@gmail.com>
15449 PR middle-end/67649
15450 * memory-block.h (memory_block_pool::allocate): Use valgrind API to
15451 mark the block as accessible.
15453 2015-09-22 Segher Boessenkool <segher@kernel.crashing.org>
15455 * function.c (thread_prologue_and_epilogue_insns): Delete
15456 orig_entry_edge argument to try_shrink_wrapping.
15457 * shrink-wrap.c (can_get_prologue): New function.
15458 (can_dup_for_shrink_wrapping): Also handle EDGE_CROSSING.
15459 (try_shrink_wrapping): Delete orig_entry_edge argument. Use
15460 can_get_prologue where needed. Remove code that finds a single
15461 edge for the prologue. Remove code that tests if any reg clobbered
15462 by the prologue is live on the prologue edge. Remove code that finds
15463 the new prologue edge after duplicating blocks. Make a new prologue
15465 * shrink-wrap.h (try_shrink_wrapping): Delete orig_entry_edge argument.
15467 2015-09-22 Jeff Law <law@redhat.com>
15469 * config/pa/pa.h (MIN_LEGIT_64BIT_CONST_INT): Avoid undefined
15472 2015-09-22 Nathan Sidwell <nathan@codesourcery.com>
15474 * doc/invoke.texi (-Wmultiple-inheritance, -Wvirtual-inheritance,
15475 -Wtemplates, -Wnamespaces): Document.
15477 2015-09-22 Tom de Vries <tom@codesourcery.com>
15479 PR tree-optimization/67671
15480 * tree-ssa-structalias.c (create_variable_info_for_1): Handle restrict
15481 pointer references as restrict.
15483 2015-09-22 Chung-Lin Tang <cltang@codesourcery.com>
15485 * config/nios2/nios2.c (nios2_legitimize_address): When handling
15486 'reg + reloc' cases, allow first operand to be non-REG, and use
15487 force_reg() to enforce address pattern.
15489 2015-09-22 Alexander Fomin <alexander.fomin@intel.com>
15492 * config/i386/sse.md (define_mode_iterator VI48_AVX_AVX512F): New.
15493 (define_mode_iterator VI12_AVX_AVX512F): New.
15494 (define_insn "<mask_codefor><code><mode>3<mask_name>"): Change
15495 all iterators to VI48_AVX_AVX512F. Extract remaining modes ...
15496 (define_insn "*<code><mode>3"): ... Into new pattern using
15497 VI12_AVX_AVX512F iterators without masking.
15499 2015-09-22 Kirill Yukhin <kirill.yukhin@intel.com>
15501 * config.gcc: Support "skylake-avx512".
15502 * config/i386/i386-c.c (ix86_target_macros_internal): Handle
15503 PROCESSOR_SKYLAKE_AVX512.
15504 * config/i386/i386.c (m_SKYLAKE_AVX512): Define.
15505 (processor_target_table): Add "skylake-avx512".
15506 (PTA_SKYLAKE_AVX512): Define.
15507 (ix86_option_override_internal): Add "skylake_avx512".
15508 (fold_builtin_cpu): Handle "skylake_avx512", add F_AVX512VL
15509 F_AVX512BW, F_AVX512DQ, F_AVX512ER, F_AVX512PF, F_AVX512CD.
15510 * config/i386/i386.h (TARGET_SKYLAKE_AVX512): Define.
15511 (processor_type): Add PROCESSOR_SKYLAKE_AVX512.
15512 * doc/invoke.texi (skylake-avx512): New.
15514 2015-09-22 Kirill Yukhin <kirill.yukhin@intel.com>
15516 * config/i386/i386.md (define_insn "kunpckhi"): Fix
15517 operand in pattern.
15518 (define_insn "kunpcksi"): Ditto.
15519 (define_insn "kunpckdi"): Ditto.
15521 2015-09-22 Kirill Yukhin <kirill.yukhin@intel.com>
15523 * config/i386/i386.md (define_split not/xor SWI1248x): Use
15524 iterator instead of fixed modes.
15526 2015-09-22 Matthew Wahab <matthew.wahab@arm.com>
15528 * config/aarch64/aarch64-protos.h (aarch64_gen_atomic_ldop):
15529 Adjust declaration.
15530 * config/aarch64/aarch64.c (aarch64_emit_bic): New.
15531 (aarch64_gen_atomic_ldop): Adjust comment. Add parameter
15532 out_result. Update to support update-fetch operations.
15533 * config/aarch64/atomics.md (aarch64_atomic_exchange<mode>_lse):
15534 Adjust for change to aarch64_gen_atomic_ldop.
15535 (aarch64_atomic_<atomic_optab><mode>_lse): Likewise.
15536 (aarch64_atomic_fetch_<atomic_optab><mode>_lse): Likewise.
15537 (atomic_<atomic_optab>_fetch<mode>): Change to an expander.
15538 (aarch64_atomic_<atomic_optab>_fetch<mode>): New.
15539 (aarch64_atomic_<atomic_optab>_fetch<mode>_lse): New.
15541 2015-09-22 Matthew Wahab <matthew.wahab@arm.com>
15543 * config/aarch64/aarch64-protos.h
15544 (aarch64_atomic_ldop_supported_p): Declare.
15545 * config/aarch64/aarch64.c (aarch64_atomic_ldop_supported_p): New.
15546 (enum aarch64_atomic_load_op_code): New.
15547 (aarch64_emit_atomic_load_op): New.
15548 (aarch64_gen_atomic_ldop): Update to support load-operate
15550 * config/aarch64/atomics.md (atomic_<atomic_optab><mode>): Change
15552 (aarch64_atomic_<atomic_optab><mode>): New.
15553 (aarch64_atomic_<atomic_optab><mode>_lse): New.
15554 (atomic_fetch_<atomic_optab><mode>): Change to an expander.
15555 (aarch64_atomic_fetch_<atomic_optab><mode>): New.
15556 (aarch64_atomic_fetch_<atomic_optab><mode>_lse): New.
15558 2015-09-22 Matthew Wahab <matthew.wahab@arm.com>
15560 * config/aarch64/aarch64/atomics.md (UNSPECV_ATOMIC_LDOP): New.
15561 (UNSPECV_ATOMIC_LDOP_OR): New.
15562 (UNSPECV_ATOMIC_LDOP_BIC): New.
15563 (UNSPECV_ATOMIC_LDOP_XOR): New.
15564 (UNSPECV_ATOMIC_LDOP_PLUS): New.
15565 (ATOMIC_LDOP): New.
15566 (atomic_ldop): New.
15567 (aarch64_atomic_load<atomic_ldop><mode>): New.
15569 2015-09-22 Matthew Wahab <matthew.wahab@arm.com>
15571 * config/aarch64/aarch64.md
15572 (<LOGICAL:optab>_one_cmpl_<SHIFT:optab><mode>3): Make a named
15575 2015-09-22 Matthew Wahab <matthew.wahab@arm.com>
15577 * config/aarch64/aarch64-protos.h (aarch64_gen_atomic_ldop):
15579 * config/aarch64/aarch64.c (aarch64_emit_atomic_swap): New.
15580 (aarch64_gen_atomic_ldop): New.
15581 (aarch64_split_atomic_op): Fix whitespace and add a comment.
15582 * config/aarch64/atomics.md (UNSPECV_ATOMIC_SWP): New.
15583 (aarch64_compare_and_swap<mode>_lse): Fix some whitespace.
15584 (atomic_exchange<mode>): Replace with an expander.
15585 (aarch64_atomic_exchange<mode>): New.
15586 (aarch64_atomic_exchange<mode>_lse): New.
15587 (aarch64_atomic_<atomic_optab><mode>): Fix some whitespace.
15588 (aarch64_atomic_swp<mode>): New.
15590 2015-09-22 Manuel López-Ibáñez <manu@gcc.gnu.org>
15592 * tree-inline.c (expand_call_inline): Use inform for extra note.
15593 Do not give a note with UNKNOWN_LOCATION.
15594 Replace input_location with gimple_location (stmt).
15595 Use true/false instead of TRUE/FALSE.
15597 2015-09-22 Tom de Vries <tom@codesourcery.com>
15599 PR tree-optimization/67666
15600 * tree-ssa-structalias.c (create_variable_info_for_1): Handle struct
15601 with single field non-conservative.
15603 2015-09-21 David S. Miller <davem@davemloft.net>
15607 2015-09-11 David S. Miller <davem@davemloft.net>
15609 * config/sparc/constraints.md: Make "U" constraint a real register
15611 * config/sparc/sparc.c (TARGET_LRA_P): Define.
15612 (D_MODES, DF_MODES): Add missing cast.
15613 (TF_MODES, TF_MODES_NO_S): Include T_MODE.
15614 (OF_MODES, OF_MODES_NO_S): Include O_MODE.
15615 (sparc_register_move_cost): Decrease Niagara/UltrsSPARC memory
15617 * config/sparc/sparc.h (PROMOTE_MODE): Define.
15618 * config/sparc/sparc.md (*movsi_lo_sum, *movsi_high): Do not
15619 provide these insn when flag_pic.
15621 2015-09-17 David S. Miller <davem@davemloft.net>
15623 * config/sparc/sparc-protos.h (sparc_secondary_memory_needed):
15625 * config/sparc/sparc.c (sparc_secondary_memory_needed): New
15627 * config/sparc/sparc.h (SECONDARY_MEMORY_NEEDED): Use it.
15628 (HARD_REGNO_CALLER_SAVE_MODE): Define.
15629 * config/sparc/sparc.md (sethi_di_medlow, losum_di_medlow, seth44)
15630 (setm44, setl44, sethh, setlm, sethm, setlo, embmedany_sethi)
15631 (embmedany_losum, embmedany_brsum, embmedany_textuhi)
15632 (embmedany_texthi, embmedany_textulo, embmedany_textlo): Do not
15633 provide when flag_pic.
15635 2015-09-21 Jeff Law <law@redhat.com>
15637 * config/h8300/h8300.md (andsi3_ashift_n_lower): Avoid undefined
15640 2015-09-21 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
15642 * config/spu/spu.c (spu_expand_insv): Avoid undefined behavior.
15644 2015-09-21 Richard Biener <rguenther@suse.de>
15646 * passes.c (rest_of_decl_compilation): Do not call
15647 dwarf2out_early_global_decl for aliases.
15649 2015-09-21 Richard Biener <rguenther@suse.de>
15652 * dwarf2out.c (add_location_or_const_value_attribute): Remove
15653 attribute parameter. Early exit if either DW_AT_const_value
15654 or DW_AT_location are present already.
15655 (gen_variable_die): Adjust caller.
15656 (dwarf2out_late_global_decl): Likewise.
15658 2015-09-21 Oleg Endo <olegendo@gcc.gnu.org>
15661 * config/sh/sh.c (sh_remove_overlapping_post_inc,
15662 sh_peephole_emit_move_insn): Add new functions.
15663 * config/sh/sh-protos.h (sh_remove_overlapping_post_inc,
15664 sh_peephole_emit_move_insn): Declere them.
15665 * config/sh/sh.md: Use them in various peephole2 patterns.
15667 2015-09-21 Richard Biener <rguenther@suse.de>
15669 PR middle-end/67651
15670 * rtlanal.c (nonzero_address_p): SYMBOL_REFs may have zero
15671 address with -fno-delete-null-pointer-checks.
15673 2015-09-21 Alan Lawrence <alan.lawrence@arm.com>
15675 * config/rs6000/altivec.md (reduc_splus_<mode>): Rename to...
15676 (reduc_plus_scal_<mode>): ...this, add rs6000_expand_vector_extract.
15677 (reduc_uplus_v16qi): Remove.
15679 * config/rs6000/vector.md (VEC_reduc_name): Change "splus" to "plus".
15680 (reduc_<VEC_reduc_name>_v2df): Remove.
15681 (reduc_<VEC_reduc_name>_v4sf): Remove.
15682 (reduc_<VEC_reduc:VEC_reduc_name>_scal_<VEC_F:name>): New.
15684 * config/rs6000/vsx.md (vsx_reduc_<VEC_reduc_name>_v2df): Declare
15685 gen_ function by removing * prefix.
15686 (vsx_reduc_<VEC_reduc_name>_v4sf): Likewise.
15688 2015-09-21 Manuel López-Ibáñez <manu@gcc.gnu.org>
15690 PR middle-end/60832
15691 * tree-ssa-loop-niter.c (do_warn_aggressive_loop_optimizations):
15692 Print i_bound without converting it to a tree.
15694 2015-09-21 Bilyan Borisov <bilyan.borisov@arm.com>
15696 * config/arm/arm.c (thumb_output_move_mem_multiple): Replaced
15697 operands[4] operands[5] swap with std::swap, removed tmp variable.
15698 (arm_evpc_neon_vzip): Replaced in0/in1 and
15699 out0/out1 swaps with std::swap, removed x variable.
15700 (arm_evpc_neon_vtrn): Replaced in0/int1 and
15701 out0/out1 swaos with std::swap, removed x variable.
15702 (arm_expand_vec_perm_const_1): Replaced
15703 d->op0/d->op1 swap with std::swap, removed x variable.
15704 (arm_evpc_neon_vuzp): Replaced in0/in1 and
15705 out0/out1 swaps with std::swap, removed x variable.
15707 2015-09-21 Jonathan Yong <10walls@gmail.com>
15709 * config/i386/cygwin.h (STARTFILE_SPEC): Explicitly search
15710 sysroot/usr/lib/32api for additional win32 libraries,
15711 fixes failing Cygwin bootstrapping.
15713 2015-09-21 Oleg Endo <olegendo@gcc.gnu.org>
15715 * doc/invoke.texi (SH Options): Undocument SH5/SH64 related options.
15717 2015-09-21 Oleg Endo <olegendo@gcc.gnu.org>
15720 * config/sh/sh.md (*reg_lsb_t): Emit bld insn on SH2A.
15721 (*mov_t_msb_neg): Rewrite negc pattern.
15723 2015-09-20 Wilco Dijkstra <wdijkstr@arm.com>
15725 * config/aarch64/aarch64.c (aarch64_internal_mov_immediate): Cleanup
15726 immediate generation code.
15728 2015-09-20 Wilco Dijkstra <wdijkstr@arm.com>
15730 * config/aarch64/aarch64.c (aarch64_internal_mov_immediate): Remove
15731 redundant immediate generation code.
15733 2015-09-20 Wilco Dijkstra <wdijkstr@arm.com>
15735 * config/aarch64/aarch64.c (aarch64_bitmasks): Remove.
15736 (AARCH64_NUM_BITMASKS): Remove.
15737 (aarch64_bitmasks_cmp): Remove.
15738 (aarch64_build_bitmask_table): Remove.
15740 2015-09-20 Wilco Dijkstra <wdijkstr@arm.com>
15742 * config/aarch64/aarch64.c (aarch64_internal_mov_immediate): Replace
15743 slow immediate matching loops with a faster algorithm.
15745 2015-09-20 Wilco Dijkstra <wdijkstr@arm.com>
15747 * config/aarch64/aarch64.c (aarch64_bitmask_imm): Reimplement using
15750 2015-09-20 Jeff Law <law@redhat.com>
15752 PR tree-optimization/47679
15753 * tree-ssa-dom.c (record_temporary_equivalences): No longer static.
15754 * tree-ssa-dom.h (record_temporary_equivalences): Add prototype.
15755 * tree-ssa-threadedge.c: Include tree-ssa-dom.h.
15756 (thread_through_normal_block): Use record_temporary_equivalences.
15758 2015-09-19 Trevor Saunders <tbsaunde@tbsaunde.org>
15760 * coretypes.h (gimple): Change typedef to be a forward declaration.
15761 * gimple.h (gimple_statement_base): rename to gimple.
15762 * (all functions and types using gimple): Adjust.
15763 * *.[ch]: Likewise.
15765 2015-09-19 Andrew Dixie <andrewd@gentrack.com>
15766 David Edelsohn <dje.gcc@gmail.com>
15768 * config/rs6000/xcoff.h (EH_FRAME_IN_DATA_SECTION): Delete.
15769 (ASM_PREFERRED_EH_DATA_FORMAT): Define.
15770 (EH_FRAME_THROUGH_COLLECT2): Define.
15771 (EH_TABLES_CAN_BE_READ_ONLY): Define.
15772 (ASM_OUTPUT_DWARF_PCREL): Define.
15773 (ASM_OUTPUT_DWARF_DATAREL): Define.
15775 2015-09-19 John David Anglin <danglin@gcc.gnu.org>
15777 * config/pa/pa.c (pa_function_ok_for_sibcall): Remove special treatment
15780 2015-09-18 Jeff Law <law@redhat.com>
15782 PR tree-optimization/47679
15783 * tree-ssa-dom.c (avail_exprs_stack): No longer file scoped. Move
15785 (dom_opt_dom_walker): New private member holding the avail_exprs_stack
15786 object. Update constructor.
15787 (pass_dominator::execute): Corresponding chagnes to declaration
15788 and initialization of avail_exprs_stack. Update constructor call
15789 for dom_opt_dom_walker object.
15790 (lookup_avail_expr, record_cond): Accept additional argument. Pass
15791 it down to children as needed.
15792 (record_equivalences_from_incoming_edge): Likewise.
15793 (eliminate_redundant_computations): Likewise.
15794 (record_equivalences_from_stmt): Likewise.
15795 (simplify_stmt_for_jump_threading): Likewise.
15796 (record_temporary_equivalences): Likewise.
15797 (optimize_stmt): Likewise.
15798 (dom_opt_dom_walker::thread_across_edge): Update access to
15799 avail_exprs_stack object and pass it to children as needed.
15800 (dom_opt_dom_walker::before_dom_children): Similarly.
15801 (dom_opt_dom_walker::after_dom_children): Similarly.
15802 * tree-ssa-threadedge.c (pfn_simplify): New typedef.
15803 (record_temporary_equivalences_from_stmts_at_dest): Use new typedef.
15804 Add avail_expr_stack argument. Pass it to children as needed.
15805 (dummy_simplify): Likewise.
15806 (simplify_control_stmt_condition): Likewise.
15807 (thread_around_empty_blocks): Likewise.
15808 (thread_through_normal_block): Likewise.
15809 (thread_across_edge): Likewise.
15810 * tree-ssa-threadedge.h (thread_across_edge): Update prototype.
15811 * tree-vrp.c (simplify_stmt_for_jump_threading): Update.
15813 PR tree-optimization/47679
15814 * tree-ssa-dom.c (const_and_copies): No longer file scoped. Move
15816 (dom_opt_dom_walker): New private member holding the const_and_copies
15817 object. Update constructor.
15818 (pass_dominator::execute): Corresponding changes to declaration
15819 and initialization of const_and_copies. Update constructor call
15820 for the dom_opt_dom_walker object.
15821 (record_temporary_equivalences): Accept const_and_copies argument
15822 pass it down to children as needed.
15823 (record_equality): Likewise.
15824 (record_equivalences_from_incoming_edge): Likewise.
15825 (cprop_into_successor_phis, optimize_stmt): Likewise.
15826 (eliminate_redundant_computations): Likewise.
15827 (dom_opt_dom_walker::thread_across_edge): Update access to
15828 const_and_copies object and pass it to children as needed.
15829 (dom_opt_dom_walker::before_dom_children): Similarly.
15830 (dom_opt_dom_walker::after_dom_children): Similarly.
15832 PR tree-optimization/47679
15833 * tree-ssa-dom.c (avail_exprs): No longer file scoped. Bury
15834 it into the avail_exprs_stack class.
15835 (pass_dominator::execute): Corresponding changes to declaration
15836 and initialization of avail_exprs. Pass avail_exprs to
15837 dump_dominator_optimization_stats.
15838 (record_cond): Extract avail_exprs from avail_exprs_stack.
15839 (lookup_avail_expr): Similarly.
15840 (htab_staticstics): Remove unnecessary prototype. Move to earlier
15842 (dump_dominator_optimization_stats): Make static and prototype.
15843 Add argument for the hash table to dump.
15844 (debug_dominator_optimization_stats): Remove.
15845 * tree-ssa-dom.h (dump_dominator_optimization_stats): Remove
15847 (debug_dominator_optimization_stats): Similarly.
15848 * tree-ssa-scopedtables.h (class avail_exprs_stack): Add missing
15849 "void" in prototype for pop_to_marker method. Add accessor method
15850 for the underlying avail_exprs table.
15852 * tree-ssa-threadedge.c: Remove trailing whitespace.
15854 2014-09-18 John David Anglin <danglin@gcc.gnu.org>
15856 * config/pa/pa-protos.h (pa_cint_ok_for_move): Change argument type to
15858 (pa_ldil_cint_p): Likewise.
15859 * config/pa/pa.c (pa_cint_ok_for_move): likewise.
15860 (pa_ldil_cint_p): Likewise. Change signed casts to unsigned.
15862 * config/pa/pa.md: Likewise.
15864 2015-09-18 David Malcolm <dmalcolm@redhat.com>
15866 * Makefile.in (OBJS-libcommon): Add diagnostic-show-locus.o.
15867 * diagnostic.c (adjust_line): Move to diagnostic-show-locus.c.
15868 (diagnostic_show_locus): Likewise.
15869 (diagnostic_print_caret_line): Likewise.
15870 * diagnostic-show-locus.c: New file.
15872 2015-09-18 David Edelsohn <dje.gcc@gmail.com>
15874 * dwarf2out.c (switch_to_eh_frame_section): Add ATTRIBUTE_UNUSED to
15875 "back" parameter. Declare label in #if block.
15877 2015-09-18 Uros Bizjak <ubizjak@gmail.com>
15879 PR middle-end/67619
15880 * except.c (expand_builtin_eh_return): Use copy_addr_to_reg to copy
15881 the address to a register.
15883 2015-09-18 Jeff Law <law@redhat.com>
15885 PR tree-optimization/47679
15886 * Makefile.in (OBJS): Add tree-ssa-phionlycprop.o
15887 * tree-ssa-dom.c: Remove unnecessary header includes.
15888 (remove_stmt_or_phi): Moved from here into tree-ssa-phionlycprop.c
15889 (get_rhs_or_phi_arg, get_lhs_or_phi_result): Likewise.
15890 (propagate_rhs_into_lhs, eliminate_const_or_copy): Likewise.
15891 (eliminate_degenerate_phis_1, pass_phi_only_cprop): Likewise.
15892 (pass_phi_only_cprop::execute): Likewise.
15893 (make_pass_phi_only_cprop): Likewise.
15894 * tree-ssa-phionlycprop.c: New file with moved code. Eliminate
15895 uses of file scoped statics by passing the required objects
15896 as parameters wherever needed.
15898 2015-09-18 Andrew Dixie <andrewd@gentrack.com>
15899 David Edelsohn <dje.gcc@gmail.com>
15901 * defaults.h (EH_FRAME_SECTION_NAME): Depend on
15902 EH_FRAME_THROUGH_COLLECT2.
15903 * dwarf2asm.c (dw2_asm_output_encoded_addr_rtx): Add case for
15905 * dwarf2out.c (switch_to_eh_frame_section): Use a read-only section
15906 even if EH_FRAME_SECTION_NAME is undefined. Restrict special
15907 collect2 labels to EH_FRAME_THROUGH_COLLECT2.
15908 * except.c (switch_to_exception_section): Use a read-only section
15909 even if EH_FRAME_SECTION_NAME is undefined.
15910 * system.h (EH_FRAME_IN_DATA_SECTION): Poison.
15911 * collect2.c (write_c_file_stat): Provide dbase on AIX.
15912 (scan_prog_file): Don't export __dso_handle nor
15913 __gcc_unwind_dbase.
15914 * config/rs6000/aix.h (ASM_PREFERRED_EH_DATA_FORMAT): Define.
15915 (EH_TABLES_CAN_BE_READ_ONLY): Define.
15916 (ASM_OUTPUT_DWARF_PCREL): Define.
15917 (ASM_OUTPUT_DWARF_DATAREL): Define.
15918 (EH_FRAME_THROUGH_COLLECT2): Define.
15919 (EH_FRAME_IN_DATA_SECTION): Delete.
15920 * config/rs6000/aix61.h (STARTFILE_SPEC): Add crtdbase.o.
15921 * config/rs6000/rs6000-protos.h (rs6000_asm_output_dwarf_pcrel):
15923 (rs6000_asm_output_dwarf_datarel): Declare.
15924 * config/rs6000/rs6000.c (rs6000_aix_asm_output_dwarf_pcrel): New.
15925 (rs6000_aix_asm_output_dwarf_datarel): New.
15926 (rs6000_xcoff_asm_init_sections): Don't set exception_section.
15927 * config/spu/spu-elf.h (EH_FRAME_IN_DATA_SECTION): Delete.
15928 (EH_FRAME_THROUGH_COLLECT2): Define.
15929 * config/i386/i386-interix.h (EH_FRAME_IN_DATA_SECTION): Delete.
15930 (EH_FRAME_THROUGH_COLLECT2): Define.
15931 (EH_TABLES_CAN_BE_READ_ONLY): Define.
15932 * doc/tm.texi.in (EH_FRAME_IN_DATA_SECTION): Delete.
15933 (EH_FRAME_THROUGH_COLLECT2): New.
15934 (ASM_OUTPUT_DWARF_DATAREL): New.
15935 * doc/tm.texi: Regenerate.
15937 2015-09-18 Richard Biener <rguenther@suse.de>
15939 * dwarf2out.c (append_entry_to_tmpl_value_parm_die_table): Assert
15940 we're in early phase.
15941 (schedule_generic_params_dies_gen): Likewise.
15942 (gen_remaining_tmpl_value_param_die_attribute): Do only as much
15943 work as possible, retaining unhandled cases.
15944 (gen_scheduled_generic_parms_dies): Set early-dwarf flag and
15945 clear out generic_type_instances at the end.
15946 (dwarf2out_finish): Move call to gen_scheduled_generic_parms_dies...
15947 (dwarf2out_early_finish): ... here. Do most of
15948 gen_remaining_tmpl_value_param_die_attribute here.
15950 2015-09-18 Alan Lawrence <alan.lawrence@arm.com>
15952 PR tree-optimization/67283
15953 * tree-sra.c (type_consists_of_records_p): Rename to...
15954 (scalarizable_type_p): ...this, add case for ARRAY_TYPE.
15955 (completely_scalarize_record): Rename to...
15956 (completely_scalarize): ...this, add ARRAY_TYPE case, move some code to:
15957 (scalarize_elem): New.
15958 (analyze_all_variable_accesses): Follow renamings.
15960 2015-09-18 Richard Biener <rguenther@suse.de>
15962 * dwarf2out.c (add_location_or_const_value_attribute): Do nothing
15965 2015-09-18 Richard Biener <rguenther@suse.de>
15967 PR tree-optimization/66142
15968 * fold-const.c (operand_equal_p): When OEP_ADDRESS_OF
15969 treat MEM[&x] and x the same.
15970 * tree-ssa-sccvn.h (vn_reference_fold_indirect): Remove.
15971 * tree-ssa-sccvn.c (vn_reference_fold_indirect): Return true
15972 when we simplified sth.
15973 (vn_reference_maybe_forwprop_address): Likewise.
15974 (valueize_refs_1): When we simplified through
15975 vn_reference_fold_indirect or vn_reference_maybe_forwprop_address
15976 set valueized_anything to true.
15977 (vn_reference_lookup_3): Use stmt_kills_ref_p to see whether
15978 one ref kills the other instead of just a offset-based test.
15979 * tree-ssa-alias.c (stmt_kills_ref_p): Use OEP_ADDRESS_OF
15980 for the operand_equal_p test to compare bases and also compare
15983 2015-09-17 Christian Bruel <christian.bruel@st.com>
15985 * config/arm/arm.md (*call_value_symbol): Fix operand for interworking.
15987 2015-09-17 Richard Henderson <rth@redhat.com>
15990 * builtins.c (fold_builtin_atomic_always_lock_free): Handle fake
15991 pointers that encode the alignment of the object.
15993 2015-09-17 Eric Botcazou <ebotcazou@adacore.com>
15995 PR rtl-optimization/66790
15996 * df-problems.c (LIVE): Amend documentation.
15998 2015-09-17 Richard Sandiford <richard.sandiford@arm.com>
16000 * Makefile.in (OBJS): Add optabs-libfuncs.o, optabs-query.o
16002 (GTFILES): Replace optabs.c with optabs-libfunc.c.
16003 * genopinit.c (main): Add an include guard to insn-opinit.h.
16004 Protect the rtx_code parts with NUM_RTX_CODE.
16005 * optabs.h: Split parts out to...
16006 * optabs-libfuncs.h, optabs-query.h, optabs-tree.h: ...these new files.
16007 * optabs.c: Split parts out to...
16008 * optabs-libfuncs.c, optabs-query.c, optabs-tree.c: ...these new files.
16009 * cilk-common.c: Include optabs-query.h rather than optabs.h.
16010 * fold-const.c: Likewise.
16011 * target-globals.c: Likewise.
16012 * tree-if-conv.c: Likewise.
16013 * tree-ssa-forwprop.c: Likewise.
16014 * tree-ssa-loop-prefetch.c: Likewise.
16015 * tree-ssa-math-opts.c: Include optabs-tree.h rather than optabs.h.
16016 Remove unncessary include files.
16017 * tree-ssa-phiopt.c: Likewise.
16018 * tree-ssa-reassoc.c: Likewise.
16019 * tree-switch-conversion.c: Likewise.
16020 * tree-vect-data-refs.c: Likewise.
16021 * tree-vect-generic.c: Likewise.
16022 * tree-vect-loop.c: Likewise.
16023 * tree-vect-patterns.c: Likewise.
16024 * tree-vect-slp.c: Likewise.
16025 * tree-vect-stmts.c: Likewise.
16026 * tree-vrp.c: Likewise.
16027 * toplev.c: Include optabs-query.h and optabs-libfuncs.h
16028 rather than optabs.h.
16029 * expr.c: Include optabs-tree.h.
16030 * function.c: Likewise.
16032 2015-09-17 Eric Botcazou <ebotcazou@adacore.com>
16034 PR middle-end/65958
16035 * config/arm/linux-elf.h (STACK_CHECK_STATIC_BUILTIN): Define.
16036 * config/arm/arm-protos.h (output_probe_stack_range): Declare.
16037 * config/arm/arm.c: Include common/common-target.h.
16038 (use_return_insn): Return 0 if the static chain register was saved
16039 above a non-APCS frame.
16040 (arm_compute_static_chain_stack_bytes): Adjust for stack checking.
16041 (struct scratch_reg): New.
16042 (get_scratch_register_on_entry): New function.
16043 (release_scratch_register_on_entry): Likewise.
16044 (arm_emit_probe_stack_range): Likewise.
16045 (output_probe_stack_range): Likewise.
16046 (arm_expand_prologue): Factor out code dealing with the IP register
16047 for nested function and adjust it for stack checking.
16048 Invoke arm_emit_probe_stack_range if static builtin stack checking
16050 (thumb1_expand_prologue): Sorry out if static builtin stack checking
16052 (arm_expand_epilogue): Add the saved static chain register, if any, to
16053 the amount of pre-pushed registers to pop.
16054 (arm_frame_pointer_required): Return true if static stack checking is
16055 enabled and we want to catch the exception with the EABI unwinder.
16056 * config/arm/unspecs.md (UNSPEC_PROBE_STACK): New constant.
16057 (UNSPEC_PROBE_STACK_RANGE): Likewise.
16058 * config/arm/arm.md (probe_stack): New insn.
16059 (probe_stack_range): Likewise.
16061 2015-09-17 Richard Biener <rguenther@suse.de>
16063 * genmatch.c (parser::parse_expr): Improve error message
16064 for mis-placed flags.
16066 2015-09-17 Richard Biener <rguenther@suse.de>
16068 * passes.c (rest_of_decl_compilation): Always call early_global_decl
16069 debug hook when we created a varpool node.
16070 * dwarf2out.c (dwarf2out_late_global_decl): When in LTO call
16071 dwarf2out_early_global_decl, when not just add location or
16072 value attributes to existing DIEs.
16074 2015-09-17 James Greenhalgh <james.greenhalgh@arm.com>
16076 * config/aarch64/aarch64.md (copysigndf3): New.
16077 (copysignsf3): Likewise.
16079 2015-09-17 David S. Miller <davem@davemloft.net>
16081 * config/sparc/sparc-protos.h (sparc_secondary_memory_needed): Declare.
16082 * config/sparc/sparc.c (sparc_secondary_memory_needed): New function.
16083 * config/sparc/sparc.h (SECONDARY_MEMORY_NEEDED): Use it.
16084 (HARD_REGNO_CALLER_SAVE_MODE): Define.
16085 * config/sparc/sparc.md (sethi_di_medlow, losum_di_medlow, seth44)
16086 (setm44, setl44, sethh, setlm, sethm, setlo, embmedany_sethi)
16087 (embmedany_losum, embmedany_brsum, embmedany_textuhi)
16088 (embmedany_texthi, embmedany_textulo, embmedany_textlo): Do not
16089 provide when flag_pic.
16091 2015-09-17 Kaz Kojima <kkojima@gcc.gnu.org>
16093 * config/sh/sh.c (label_ref_list_d_pool): Adjust to
16094 object_allocator change.
16096 2015-09-17 Bin Cheng <bin.cheng@arm.com>
16098 PR tree-optimization/66388
16099 * tree-ssa-loop-ivopts.c (struct iv, iv_cand, ivopts_data): New fields.
16100 (dump_iv): Dump no_overflow information.
16101 (alloc_iv): Initialize new field for struct iv.
16102 (mark_bivs): Count number of no_overflow bivs.
16103 (find_deriving_biv_for_expr, record_biv_for_address_use): New
16105 (idx_find_step): Call new functions above.
16106 (add_candidate_1, add_candidate): New paramter.
16107 (add_iv_candidate_for_biv): Add sizetype cand for BIV.
16108 (get_computation_aff): Simplify convertion of cand for BIV.
16109 (get_computation_cost_at): Step cand's base if necessary.
16111 2015-09-17 Bin Cheng <bin.cheng@arm.com>
16113 * tree-ssa-loop-niter.c (tree_simplify_using_condition_1): New
16115 (tree_simplify_using_condition): Ditto.
16116 (simplify_using_initial_conditions): Ditto.
16117 (loop_exits_before_overflow): Pass new argument to function
16118 simplify_using_initial_conditions. Remove case for type conversions
16120 * tree-ssa-loop-niter.h (simplify_using_initial_conditions): New
16122 * tree-scalar-evolution.c (simple_iv): Simplify type conversions
16123 in iv base using loop initial conditions.
16125 2015-09-16 Jeff Law <law@redhat.com>
16127 PR tree-optimization/47679
16128 * tree-ssa-dom.c (free_edge_info): Factored out of free_all_edge_infos.
16129 (free_all_edge_infos): Use it.
16130 (allocate_edge_info): Free preexisting edge info data.
16131 (pass_dominator::execute): Set up initial edge info structures.
16132 (dom_opt_dom_walker::thread_across_edge): Pass avail_expr_stack to
16133 thread_across_edge.
16134 * tree-ssa-threadedge.c (thread_across_edge): Accept new argument.
16135 If non-null, then push/pop markers appropriately.
16136 * tree-ssa-threadedge.h (thread_across_edge): Update prototype.
16137 * tree-vrp.c (identify_jump_threads): Pass NULL for new argument to
16138 thread-across_edge.
16140 2015-09-16 James Bowman <james.bowman@ftdichip.com>
16142 * config/ft32/ft32.c: Fix the memory address space predicate.
16144 2015-09-16 Kaz Kojima <kkojima@gcc.gnu.org>
16147 * config/sh/sh.md (call_pcrel): Add early clobber to scratch operand.
16148 (call_value_pcrel, sibcall_pcrel, sibcall_value_pcrel): Likewise.
16150 2015-09-16 Manuel López-Ibáñez <manu@gcc.gnu.org>
16152 * toplev.h (check_global_declaration): Remove declaration.
16153 * toplev.c (check_global_declaration): Move to ...
16154 * cgraphunit.c: ... here. Make it static and pass a symtab_node *.
16155 (analyze_functions): Update call.
16157 2015-09-16 David S. Miller <davem@davemloft.net>
16159 * lra-constraints.c (simplify_operand_subreg): Do not assume that
16160 lowpart of a SUBREG has offset zero.
16162 2015-09-16 Jeff Law <law@redhat.com>
16164 PR tree-optimization/47679
16165 * tree-ssa-dom.c (enum expr_kind): Moved from here to
16166 tree-ssa-scopedtables.h.
16167 (struct hashable_expr, class expr_hash_elt): Likewise.
16168 (struct expr_elt_hasher, class avail_exprs_stack): Likewise.
16169 Move associated methods into tree-ssa-scopedtables.c.
16170 (avail_expr_hash, initialize_expr_from_cond): Similarly.
16171 (hashable_expr_equal_p, add_expr_commutative): Likewise.
16172 (add_hashable_expr): Likewise.
16173 (record_cond): Delete element directly.
16174 * tree-ssa-scopedtables.h (avail_expr_stack, const_and_copies): Add
16175 private copy ctor and assignment operator methods.
16176 (expr_elt_hasher): Inline trivial methods.
16177 (initialize_expr_from_cond): Prototype.
16178 * tree-ssa-scopedtables.c: Add necessary includes, functions and
16179 methods that were previously in tree-ssa-dom.c. Improve various
16182 2015-09-16 Paolo Carlini <paolo.carlini@oracle.com>
16184 * doc/invoke.texi ([Wsubobject-linkage]): Extend documentation.
16186 2015-09-16 Segher Boessenkool <segher@kernel.crashing.org>
16189 * function.c (rest_of_handle_thread_prologue_and_epilogue): Call
16192 2015-09-16 Richard Biener <rguenther@suse.de>
16194 PR middle-end/67253
16195 * cfgexpand.c (expand_gimple_stmt_1): Do not clobber
16196 location of possibly shared trees.
16198 2015-09-16 Richard Biener <rguenther@suse.de>
16200 PR middle-end/67271
16201 * fold-const.c (native_encode_expr): Bail out on bogus offsets.
16203 2015-09-16 Eric Botcazou <ebotcazou@adacore.com>
16205 * tree-ssa-sccvn.c (ao_ref_init_from_vn_reference): Use offset_int for
16206 offset and size computations instead of HOST_WIDE_INT.
16208 2015-09-16 Richard Biener <rguenther@suse.de>
16210 PR middle-end/67442
16211 * fold-const.c (extract_muldiv_1): Properly extend multiplication
16212 result before builting a tree via wide_int_to_tree.
16214 2015-09-16 Mikhail Maltsev <maltsevm@gmail.com>
16216 * Makefile.in: Add memory-block.cc
16217 (pool_allocator::initialize): Use fixed block size.
16218 (pool_allocator::release): Use memory_block_pool.
16219 (pool_allocator::allocate): Likewise.
16220 * asan.c (asan_mem_ref_pool): Adjust to use common block size in all
16222 * cfg.c (initialize_original_copy_tables): Likewise.
16223 * cselib.c (elt_list_pool, elt_loc_list_pool,
16224 cselib_val_pool): Likewise.
16225 * df-problems.c (df_chain_alloc): Likewise.
16226 * df-scan.c (df_scan_alloc): Likewise.
16227 * dse.c (cse_store_info_pool, rtx_store_info_pool,
16228 read_info_type_pool, insn_info_type_pool, bb_info_pool,
16229 group_info_pool, deferred_change_pool): Likewise.
16230 * et-forest.c (et_nodes, et_occurrences): Likewise.
16231 * ipa-cp.c (ipcp_cst_values_pool, ipcp_sources_pool,
16232 ipcp_agg_lattice_pool): Likewise.
16233 * ipa-inline-analysis.c (edge_predicate_pool): Likewise.
16234 * ipa-profile.c (histogram_pool): Likewise.
16235 * ipa-prop.c (ipa_refdesc_pool): Likewise.
16236 * ira-build.c (live_range_pool, allocno_pool, object_pool,
16237 initiate_cost_vectors, pref_pool, copy_pool): Likewise.
16238 * ira-color.c (update_cost_record_pool): Likewise.
16239 * lra-lives.c (lra_live_range_pool): Likewise.
16240 * lra.c (lra_insn_reg_pool, lra_copy_pool): Likewise.
16241 * memory-block.cc: New file.
16242 * memory-block.h: New file.
16243 * regcprop.c (queued_debug_insn_change_pool): Use common block size.
16244 * sched-deps.c (sched_deps_init): Likewise.
16245 * sel-sched-ir.c (sched_lists_pool): Likewise.
16246 * stmt.c (expand_case, expand_sjlj_dispatch_table): Likewise.
16247 * tree-sra.c (access_pool): Likewise.
16248 * tree-ssa-math-opts.c (pass_cse_reciprocals::execute): Likewise.
16249 * tree-ssa-pre.c (pre_expr_pool, bitmap_set_pool): Likewise.
16250 * tree-ssa-reassoc.c (operand_entry_pool): Likewise.
16251 * tree-ssa-sccvn.c (allocate_vn_table): Likewise.
16252 * tree-ssa-strlen.c (strinfo_pool): Likewise.
16253 * tree-ssa-structalias.c (variable_info_pool): Likewise.
16254 * var-tracking.c (attrs_def_pool, var_pool, valvar_pool,
16255 location_chain_pool, shared_hash_pool, loc_exp_dep_pool): Likewise.
16257 2015-09-15 Max Filippov <jcmvbkbc@gmail.com>
16259 * config/xtensa/xtensa.h (DWARF_ALT_FRAME_RETURN_COLUMN): New
16261 (DWARF_FRAME_REGISTERS): Reserve space for one extra register in
16264 2015-09-15 Max Filippov <jcmvbkbc@gmail.com>
16266 * config/xtensa/xtensa.c (xtensa_call_tls_desc): Use a10 or a2
16267 to pass TLS call argument, according to current ABI.
16268 * config/xtensa/xtensa.md (tls_call pattern): Use callx8 or
16269 callx0 for TLS call, according to current ABI.
16271 2015-09-15 Eric Botcazou <ebotcazou@adacore.com>
16273 * tree-eh.c (lower_try_finally_dup_block): Clear location information
16274 on stack restore statements.
16275 (decide_copy_try_finally): Do not consider a stack restore statement as
16276 coming from sources.
16278 2015-09-15 Uros Bizjak <ubizjak@gmail.com>
16280 * config/alpha/alpha.c (alpha_expand_block_clear): Use
16281 HOST_WIDE_INT_M1U instead of ~(HOST_WIDE_INT)0 when shifting.
16283 2015-09-15 Jeff Law <law@redhat.com>
16285 PR tree-optimization/47679
16286 * tree-ssa-dom.c (expr_hash_elt): Now a class with ctors/dtors,
16287 methods and private members.
16288 (avail_exprs_stack): Similarly. Change type of global
16289 from a pair of expr_hash_elt_t to the new class.
16290 (expr_elt_hasher::hash): Corresponding changes.
16291 (expr_elt_hasher::equal): Similarly.
16292 (avail_expr_hash): Similarly.
16293 (pass_dominator::execute): Similarly.
16294 (dom_opt_dom_walker::thread_across_edge): Similarly.
16295 (record_cond): Similarly.
16296 (dom_opt_dom_walker::before_dom_children): Similarly.
16297 (dom_opt_dom_walker::after_dom_children): Similarly.
16298 (lookup_avail_expr): Likewise.
16299 (initialize_hash_element): Now a expr_hash_elt constructor.
16300 (initialize_hash_element_from_expr): Similarly.
16301 (free_expr_hash_elt_contents): Now a dtor for class expr_hash_elt.
16302 (free_expr_hash_elt): Call dtor for the element.
16303 (remove_local_expressions_from_table): Now the "pop_to_marker"
16304 method in the available_exprs_stack class.
16305 (avail_expr_stack::record_expr): Method factored out.
16306 (print_expr_hash_elt): Now a method in the expr_hash_elt class.
16308 (hashable_expr_equal_p): Fix formatting.
16310 2015-09-15 David Malcolm <dmalcolm@redhat.com>
16312 * input.h (location_get_source_line): Drop "expanded_location"
16313 param in favor of a file and line number.
16314 * input.c (location_get_source_line): Likewise.
16315 (dump_location_info): Update for change in signature of
16316 location_get_source_line.
16317 * diagnostic.c (diagnostic_print_caret_line): Likewise.
16319 2015-09-15 Eric Botcazou <ebotcazou@adacore.com>
16321 * defaults.h (STACK_OLD_CHECK_PROTECT): Adjust for -fno-exceptions.
16322 Bump to 4KB for SJLJ exceptions.
16323 (STACK_CHECK_PROTECT): Likewise. Bump to 8KB for SJLJ exceptions.
16324 * doc/tm.texi.in (STACK_CHECK_PROTECT): Adjust.
16325 * doc/tm.texi: Regenerate.
16327 2015-09-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
16329 * config/arm/arm.c (arm_gen_constant): Use HOST_WIDE_INT_M1U instead
16330 of -1 when shifting. Change type of val to unsigned HOST_WIDE_INT.
16333 2015-09-15 Richard Biener <rguenther@suse.de>
16335 PR tree-optimization/67470
16336 * tree-ssa-loop-im.c (execute_sm_if_changed): Preserve PHI
16337 structure for PHI hoisting by inserting a forwarder block
16340 2015-09-15 Christian Bruel <christian.bruel@st.com>
16342 * config/arm/arm.c (TARGET_OPTION_PRINT): Define.
16343 (arm_option_print): New function.
16345 2015-09-15 Christian Bruel <christian.bruel@st.com>
16348 * config/arm/arm.c (arm_option_params_internal): Remove opts parameter.
16349 * config/arm/arm-c.c (arm_cpu_builtins): Declare static.
16350 Remove flags parameter.
16351 * config/arm/arm.h (TARGET_32BIT_P, TARGET_ARM_QBIT_P)
16352 (TARGET_ARM_SAT_P, TARGET_IDIV_P, TARGET_HAVE_LDREX_P)
16353 (TARGET_HAVE_LDREXBH_P, TARGET_HAVE_LDREXD_P, TARGET_DSP_MULTIPLY_P)
16354 (TARGET_ARM_FEATURE_LDREX_P, TARGET_INT_SIMD_P): Redefine macros with...
16355 (TARGET_ARM_SAT, TARGET_IDIV, TARGET_HAVE_LDREX)
16356 (TARGET_HAVE_LDREXBH, TARGET_HAVE_LDREXD, TARGET_ARM_FEATURE_LDREX)
16357 (TARGET_DSP_MULTIPLY, TARGET_INT_SIMD): Redefined macros.
16358 * config/arm/arm-protos.h (arm_cpu_builtins): Remove declaration.
16360 2015-09-15 Alan Lawrence <alan.lawrence@arm.com>
16362 * config/aarch64/aarch64.h (AARCH64_VALID_SIMD_DREG_MODE): New.
16364 * config/aarch64/aarch64.c (aarch64_array_mode_supported_p): Add
16365 AARCH64_VALID_SIMD_DREG_MODE.
16367 2015-09-15 Alan Lawrence <alan.lawrence@arm.com>
16369 * config/aarch64/aarch64-simd.md (aarch64_ld2r<mode>,
16370 aarch64_ld3r<mode>, aarch64_ld4r<mode>): Combine together, making...
16371 (aarch64_simd_ld<VSTRUCT:nregs>r<VALLDIF:mode>): ...this.
16372 (aarch64_ld2_lane<mode>, aarch64_ld3_lane<mode>,
16373 aarch64_ld4_lane<mode>): Combine together, making...
16374 (aarch64_ld<VSTRUCT:nregs>_lane<VALLDIF:mode>): ...this.
16375 (aarch64_st2_lane<mode>, aarch64_st3_lane<mode>,
16376 aarch64_st4_lane<mode>): Combine together, making...
16377 (aarch64_st<VSTRUCT:nregs>_lane<VALLDIF:mode>): ...this.
16378 * config/aarch64/iterators.md (nregs): Add comment.
16380 2015-09-15 Alan Lawrence <alan.lawrence@arm.com>
16382 * config/aarch64/aarch64-simd.md (aarch64_simd_ld2r<mode>):
16383 Change operand mode from <V_TWO_ELEM> to BLK.
16384 (aarch64_vec_load_lanesoi_lane<mode>): Likewise.
16385 (aarch64_vec_store_lanesoi_lane<mode): Likewise
16386 (aarch64_ld2r<mode>): Generate MEM rtx with BLKmode, call set_mem_size.
16387 (aarch64_ld2_lane<mode>): Likewise.
16388 (aarch64_st2_lane<VQ:mode>): Likewise.
16389 * config/aarch64/iterators.md (V_TWO_ELEM): Remove.
16391 2015-09-15 Alan Lawrence <alan.lawrence@arm.com>
16393 * config/aarch64/aarch64-simd.md (aarch64_simd_ld4r<mode>):
16394 Change operand mode from <V_FOUR_ELEM> to BLK.
16395 (aarch64_vec_load_lanesxi_lane<mode>): Likewise.
16396 (aarch64_vec_store_lanesxi_lane<mode): Likewise.
16397 (aarch64_ld4r<mode>): Generate MEM rtx with BLKmode, call set_mem_size.
16398 (aarch64_ld4_lane<mode>): Likewise.
16399 (aarch64_st4_lane<mode>): Likewise.
16400 * config/aarch64/iterators.md (V_FOUR_ELEM): Remove.
16402 2015-09-15 Richard Biener <rguenther@suse.de>
16404 PR middle-end/67563
16405 * gimple-fold.c (gimplify_and_update_call_from_tree): Do not
16406 transfer EH info from old to new stmt.
16407 (replace_call_with_value): Likewise.
16408 (replace_call_with_call_and_fold): Likewise.
16409 (gimple_fold_builtin_memory_op): Likewise.
16410 (gimple_fold_builtin_memset): Likewise.
16411 (gimple_fold_builtin_stpcpy): Likewise.
16412 (gimple_fold_call): Likewise.
16414 2015-09-15 Alan Lawrence <alan.lawrence@arm.com>
16416 * config/aarch64/aarch64.c (aarch64_simd_attr_length_rglist): Update
16418 * config/aarch64/aarch64-builtins.c (ei_UP): Remove.
16419 (aarch64_simd_intEI_type_node): Likewise.
16420 (aarch64_simd_builtin_std_type): Remove EImode case.
16421 (aarch64_init_simd_builtin_types): Don't create/add intEI_type_node.
16422 * config/aarch64/aarch64-modes.def: Remove EImode.
16424 2015-09-15 Alan Lawrence <alan.lawrence@arm.com>
16426 * config/aarch64/aarch64-simd.md (aarch64_simd_ld3r<mode>):
16427 Change operand mode from <V_THREE_ELEM> to BLK.
16428 (aarch64_vec_load_lanesci_lane<mode>): Likewise.
16429 (aarch64_vec_store_lanesci_lane<mode>): Likewise.
16430 (aarch64_ld3r<mode>): Generate MEM rtx with BLKmode, call set_mem_size.
16431 (aarch64_ld3_lane<mode>): Likewise.
16432 (aarch64_st3_lane<mode>): Likewise.
16433 * config/aarch64/iterators.md (V_THREE_ELEM): Remove.
16435 2015-09-15 Alan Lawrence <alan.lawrence@arm.com>
16437 * config/aarch64/aarch64-simd.md
16438 (aarch64_ld2<mode>_dreg VD & DX, aarch64_st2<mode>_dreg VD & DX ):
16439 Change all TImode operands to BLKmode.
16440 (aarch64_ld3<mode>_dreg VD & DX, aarch64_st3<mode>_dreg VD & DX):
16441 Change all EImode operands to BLKmode.
16442 (aarch64_ld4<mode>_dreg VD & DX, aarch64_st4<mode>_dreg VD & DX):
16443 Change all OImode operands to BLKmode.
16445 (aarch64_ld<VSTRUCT:nregs><VDC:mode>): Generate MEM rtx with BLKmode
16446 and call set_mem_size.
16447 (aarch64_st<VSTRUCT:nregs><VDC:mode>): Likewise.
16449 * config/aarch64/iterators.md (VSTRUCT_DREG): Remove.
16451 2015-09-15 Alan Lawrence <alan.lawrence@arm.com>
16453 * config/aarch64/aarch64-simd.md (vec_store_lanesoi_lane<mode>): Rename
16455 (aarch64_vec_store_lanesoi_lane<mode>): ...this.
16457 (vec_store_lanesci_lane<mode>): Rename to...
16458 (aarch64_vec_store_lanesci_lane<mode>): ...this.
16460 (vec_store_lanesxi_lane<mode>): Rename to...
16461 (aarch64_vec_store_lanesxi_lane<mode>): ...this.
16463 (aarch64_st2_lane<mode>, aarch64_st3_lane<mode>,
16464 aarch64_st4_lane<mode>): Follow renaming.
16466 2015-09-15 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
16468 * config/s390/s390.c (s390_const_operand_ok): Add missing
16471 2015-09-15 Richard Biener <rguenther@suse.de>
16474 * lto-streamer.h (lto_location_cache::current_sysp): Properly
16476 * lto-streamer-out.c (clear_line_info): Likewise.
16478 2015-09-15 Richard Biener <rguenther@suse.de>
16480 * doc/match-and-simplify.texi: Fix wording.
16482 2015-09-15 Bin Cheng <bin.cheng@arm.com>
16484 * tree-ssa-loop-ivopts.c (get_shiftadd_cost): Strip
16485 unnecessary type conversion in op1.
16487 2015-09-14 Segher Boessenkool <segher@kernel.crashing.org>
16489 * shrink-wrap.c (requires_stack_frame_p): Fix formatting.
16490 (dup_block_and_redirect): Delete function.
16491 (can_dup_for_shrink_wrapping): New function.
16492 (fix_fake_fallthrough_edge): New function.
16493 (try_shrink_wrapping): Rewrite function.
16494 (convert_to_simple_return): Call fix_fake_fallthrough_edge.
16496 2015-09-14 Rich Felker <dalias@libc.org>
16498 * configure.ac: Change target pattern for sh TLS support
16499 test from "sh[34]-*-*" to "sh[123456789lbe]*-*-*".
16500 * configure: Regenerate.
16502 2015-09-14 Jeff Law <law@redhat.com>
16504 PR tree-optimization/47679
16505 * tree-ssa-dom.c (avail_expr_hash): Pass a pointer to a real
16506 type rather than void *.
16508 2015-09-14 Manuel López-Ibáñez <manu@gcc.gnu.org>
16511 * diagnostic.c (diagnostic_initialize): Do not set
16512 some_warnings_are_errors.
16513 (diagnostic_finish): Use DK_WERROR count instead.
16514 (diagnostic_report_diagnostic): Do not set
16515 some_warnings_are_errors.
16516 * diagnostic.h (struct diagnostic_context): Remove
16517 some_warnings_are_errors.
16519 2015-09-14 Richard Sandiford <richard.sandiford@arm.com>
16521 * config/sparc/predicates.md (const_all_ones_operand): Use
16522 CONSTM1_RTX to simplify definition.
16524 2015-09-14 Oleg Endo <olegendo@gcc.gnu.org>
16527 * config/sh/sh-protos.h (sh_find_set_of_reg): Simplfiy for-loop.
16530 2015-09-14 Chung-Lin Tang <cltang@codesourcery.com>
16532 * lto-wrapper.c (merge_and_complain): Add OPT_fdiagnostics_show_caret,
16533 OPT_fdiagnostics_show_option, OPT_fdiagnostics_show_location_, and
16534 OPT_fshow_column to handled saved option cases.
16535 (append_compiler_options): Do not skip the above added options.
16537 2015-09-14 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
16540 * config/aarch64/aarch64.c (aarch64_expand_mov_immediate): Handle
16541 nopcrelative_literal_loads.
16542 (aarch64_classify_address): Likewise.
16543 (aarch64_constant_pool_reload_icode): Define.
16544 (aarch64_secondary_reload): Handle secondary reloads for
16546 (aarch64_override_options): Handle nopcrelative_literal_loads.
16547 (aarch64_classify_symbol): Handle nopcrelative_literal_loads.
16548 * config/aarch64/aarch64.md (aarch64_reload_movcp<GPF_TF:mode><P:mode>):
16550 (aarch64_reload_movcp<VALL:mode><P:mode>): Likewise.
16551 * config/aarch64/aarch64.opt (mpc-relative-literal-loads): New option.
16552 * config/aarch64/predicates.md (aarch64_constant_pool_symref): New
16554 * doc/invoke.texi (mpc-relative-literal-loads): Document.
16556 2015-09-14 John David Anglin <danglin@gcc.gnu.org>
16558 PR middle-end/67401
16559 * optabs.c (expand_atomic_compare_and_swap): Move result of emitting
16560 sync_compare_and_swap_optab libcall to target_oval.
16562 2015-09-14 Marek Polacek <polacek@redhat.com>
16564 * rtlanal.c (split_double): Cast to unsigned when shifting a negative
16566 * sched-int.h (UNKNOWN_DEP_COST): Likewise.
16568 2015-09-11 Mark Wielaard <mjw@redhat.com>
16571 * toplev.c (check_global_declaration): Check and use
16572 warn_unused_const_variable.
16573 * doc/invoke.texi (Warning Options): Add -Wunused-const-variable.
16574 (-Wunused-variable): Remove non-constant. For C implies
16575 -Wunused-const-variable.
16576 (-Wunused-const-variable): New.
16578 2015-09-14 Richard Biener <rguenther@suse.de>
16580 * doc/match-and-simplify.texi: Update for changed syntax
16581 of inner ifs and the new switch expression.
16583 2015-09-14 Yuri Rumyantsev <ysrumyan@gmail.com>
16585 * config/i386/haswell.md: New file describing Haswell pipeline.
16586 * config/i386/i386.c (processor_alias_table): Use CPU_HASWELL for
16587 haswell-like processors.
16588 (ix86_reassociation_width): Increase reassociation width for 64-bit
16589 Haswell processor family.
16590 * config/i386/i386.md: Introduce haswell cpu and include new md file.
16592 2015-09-14 Richard Biener <rguenther@suse.de>
16594 * doc/match-and-simplify.texi: Fixup some formatting issues
16595 and document the 's' flag.
16597 2015-09-13 Olivier Hainque <hainque@adacore.com>
16598 Eric Botcazou <ebotcazou@adacore.com>
16600 * config.gcc (visium-*-*): Enable --with-cpu option, accept gr5 and
16601 gr6 as possible values, defaulting to gr5. Set target_cpu_default2.
16602 * config/visium/visium.h (OPTION_DEFAULT_SPECS): Define.
16603 (TARGET_CPU_gr5): Likewise.
16604 (TARGET_CPU_gr6): Likewise.
16605 (MULTILIB_DEFAULTS): Likewise.
16606 * config/visium/t-visium (MULTILIB_OPTIONS): Request distinct variants
16607 for mcpu=gr5 and mcpu=gr6.
16608 (MULTILIB_DIRNAMES): Adjust accordingly.
16610 2015-09-13 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
16612 * tree-ssa-loop-im.c (mem_ref_loc_p): Remove typedef.
16613 (mem_ref_p): Likewise.
16614 (outermost_indep_loop): Adjust.
16615 (mem_ref_in_stmt): Likewise.
16616 (determine_max_movement): Likewise.
16617 (mem_ref_alloc): Likewise.
16618 (record_mem_ref_loc): Likewise.
16619 (set_ref_stored_in_loop): Likewise.
16620 (mark_ref_stored): Likewise.
16621 (gather_mem_refs_stmt): Likewise.
16622 (mem_refs_may_alias_p): Likewise.
16623 (for_all_locs_in_loop): Likewise.
16624 (struct rewrite_mem_ref_loc): Likewise.
16625 (rewrite_mem_refs): Likewise.
16626 (struct first_mem_ref_loc_1): Likewise.
16627 (first_mem_ref_loc): Likewise.
16628 (struct sm_set_flag_if_changed): Likewise.
16629 (execute_sm_if_changed_flag_set): Likewise.
16630 (execute_sm): Likewise.
16631 (hoist_memory_references):
16632 (struct ref_always_accessed): Likewise.
16633 (ref_always_accessed_p): Likewise.
16634 (refs_independent_p): Likewise.
16635 (record_dep_loop): Likewise.
16636 (ref_indep_loop_p_1): Likewise.
16637 (ref_indep_loop_p_2): Likewise.
16638 (ref_indep_loop_p): Likewise.
16639 (can_sm_ref_p): Likewise.
16640 (find_refs_for_sm): Likewise.
16641 (tree_ssa_lim_finalize): Likewise.
16643 2015-09-13 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
16645 * dwarf2out.c (dw_attr_ref): Remove typedef.
16646 (dw_line_info_ref): Likewise.
16647 (pubname_ref): Likewise.
16648 (dw_ranges_ref): Likewise.
16649 (dw_ranges_by_label_ref): Likewise.
16650 (comdat_type_node_ref): Likewise.
16652 (get_AT_low_pc): Likewise.
16653 (get_AT_hi_pc): Likewise.
16654 (get_AT_string): Likewise.
16655 (get_AT_flag): Likewise.
16656 (get_AT_unsigned): Likewise.
16657 (get_AT_ref): Likewise.
16658 (get_AT_file): Likewise.
16659 (remove_AT): Likewise.
16660 (print_die): Likewise.
16661 (check_die): Likewise.
16662 (die_checksum): Likewise.
16663 (attr_checksum_ordered): Likewise.
16664 (struct checksum_attributes): Likewise.
16665 (collect_checksum_attributes): Likewise.
16666 (die_checksum_ordered): Likewise.
16667 (same_die_p): Likewise.
16668 (is_declaration_die): Likewise.
16669 (clone_die): Likewise.
16670 (clone_as_declaration): Likewise.
16671 (copy_declaration_context): Likewise.
16672 (break_out_comdat_types): Likewise.
16673 (copy_decls_walk): Likewise.
16674 (output_location_lists): Likewise.
16675 (external_ref_hasher::hash): Likewise.
16676 (optimize_external_refs_1): Likewise.
16677 (build_abbrev_table): Likewise.
16678 (size_of_die): Likewise.
16679 (unmark_all_dies): Likewise.
16680 (size_of_pubnames): Likewise.
16681 (output_die_abbrevs): Likewise.
16682 (output_die): Likewise.
16683 (output_pubnames): Likewise.
16684 (add_ranges_num): Likewise.
16685 (add_ranges_by_labels): Likewise.
16686 (add_high_low_attributes): Likewise.
16687 (gen_producer_string): Likewise.
16688 (dwarf2out_set_name): Likewise.
16689 (new_line_info_table): Likewise.
16690 (prune_unused_types_walk_attribs): Likewise.
16691 (prune_unused_types_update_strings): Likewise.
16692 (prune_unused_types): Likewise.
16693 (resolve_addr): Likewise.
16694 (optimize_location_lists_1): Likewise.
16695 (index_location_lists): Likewise.
16696 (dwarf2out_finish): Likewise.
16698 2015-09-13 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
16700 * dwarf2cfi.c (dw_trace_info_ref): Remove typedef.
16702 2015-09-13 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
16704 * tree-vrp.c (struct assert_locus_d): Rename to assert_locus.
16705 (dump_asserts_for): Adjust.
16706 (register_new_assert_for): Likewise.
16707 (process_assert_insertions): Likewise.
16708 (insert_range_assertions): Likewise.
16710 2015-09-13 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
16712 * tree-ssa-ter.c (temp_expr_table_d): Rename to temp_expr_table
16713 and remove typedef.
16714 (new_temp_expr_table): Adjust.
16715 (free_temp_expr_table): Likewise.
16716 (version_to_be_replaced_p): Likewise.
16717 (make_dependent_on_partition): Likewise.
16718 (add_to_partition_kill_list): Likewise.
16719 (remove_from_partition_kill_list): Likewise.
16720 (add_dependence): Likewise.
16721 (finished_with_expr): Likewise.
16722 (process_replaceable): Likewise.
16723 (kill_expr): Likewise.
16724 (kill_virtual_exprs): Likewise.
16725 (mark_replaceable): Likewise.
16726 (find_replaceable_in_bb): Likewise.
16727 (find_replaceable_exprs): Likewise.
16728 (debug_ter): Likewise.
16730 2015-09-13 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
16732 * bt-load.c (struct btr_def_group): Rename from btr_def_group_s.
16733 (struct btr_user): Rename from btr_user_s.
16734 (struct btr_def): Rename from btr_def_s.
16735 (find_btr_def_group): Adjust.
16736 (add_btr_def): Likewise.
16737 (new_btr_user): Likewise.
16738 (note_other_use_this_block): Likewise.
16739 (compute_defs_uses_and_gen): Likewise.
16740 (link_btr_uses): Likewise.
16741 (build_btr_def_use_webs): Likewise.
16742 (block_at_edge_of_live_range_p): Likewise.
16743 (btr_def_live_range): Likewise.
16744 (combine_btr_defs): Likewise.
16745 (move_btr_def): Likewise.
16746 (migrate_btr_def): Likewise.
16747 (migrate_btr_defs): Likewise.
16749 2015-09-13 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
16751 * var-tracking.c (shared_hash_def): Rename to shared_hash.
16752 (shared_hash): Remove typedef.
16753 (struct dataflow_set): Adjust.
16754 (shared_hash_unshare): Likewise.
16755 (dataflow_set_merge): Likewise.
16756 (vt_initialize): Likewise.
16757 (vt_finalize): Likewise.
16759 2015-09-13 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
16761 * var-tracking.c (struct location_chain): Rename from
16762 location_chain_def.
16763 (struct variable_part): Adjust.
16764 (variable_htab_free): Likewise.
16765 (unshare_variable): Likewise.
16766 (get_init_value): Likewise.
16767 (get_addr_from_local_cache): Likewise.
16768 (drop_overlapping_mem_locs): Likewise.
16769 (val_reset): Likewise.
16770 (struct variable_union_info): Likewise.
16771 (variable_union): Likewise.
16772 (find_loc_in_1pdv): Likewise.
16773 (insert_into_intersection): Likewise.
16774 (intersect_loc_chains): Likewise.
16775 (canonicalize_loc_order_check): Likewise.
16776 (canonicalize_values_mark): Likewise.
16777 (canonicalize_values_star): Likewise.
16778 (canonicalize_vars_star): Likewise.
16779 (variable_merge_over_cur): Likewise.
16780 (remove_duplicate_values): Likewise.
16781 (variable_post_merge_new_vals): Likewise.
16782 (variable_post_merge_perm_vals): Likewise.
16783 (find_mem_expr_in_1pdv): Likewise.
16784 (dataflow_set_preserve_mem_locs): Likewise.
16785 (dataflow_set_remove_mem_locs): Likewise.
16786 (variable_part_different_p): Likewise.
16787 (onepart_variable_different_p): Likewise.
16788 (find_src_set_src): Likewise.
16789 (dump_var): Likewise.
16790 (set_slot_part): Likewise.
16791 (clobber_slot_part): Likewise.
16792 (delete_slot_part): Likewise.
16793 (vt_expand_var_loc_chain): Likewise.
16794 (emit_note_insn_var_location): Likewise.
16795 (vt_finalize): Likewise.
16797 2015-09-13 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
16799 * dse.c (store_info_t): Remove typedef.
16800 (group_info_t): Likewise.
16801 (const_group_info_t): Likewise.
16802 (deferred_change_t): Likewise.
16803 (get_group_info): Adjust.
16804 (free_store_info): Likewise.
16805 (canon_address): Likewise.
16806 (clear_rhs_from_active_local_stores): Likewise.
16807 (record_store): Likewise.
16808 (replace_read): Likewise.
16809 (check_mem_read_rtx): Likewise.
16810 (scan_insn): Likewise.
16811 (remove_useless_values): Likewise.
16812 (dse_step1): Likewise.
16813 (dse_step2_init): Likewise.
16814 (dse_step2_nospill): Likewise.
16815 (scan_stores_nospill): Likewise.
16816 (scan_reads_nospill): Likewise.
16817 (dse_step3_exit_block_scan): Likewise.
16818 (dse_step3): Likewise.
16819 (dse_step5_nospill): Likewise.
16820 (dse_step6): Likewise.
16822 2015-09-13 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
16824 * alias.c (alias_set_entry_d): Rename to alias_set_entry.
16825 (alias_set_entry): Remove typedef.
16826 (alias_set_subset_of): Adjust.
16827 (alias_sets_conflict_p): Likewise.
16828 (init_alias_set_entry): Likewise.
16829 (get_alias_set): Likewise.
16830 (new_alias_set): Likewise.
16831 (record_alias_subset): Likewise.
16833 2015-09-13 Gerald Pfeifer <gerald@pfeifer.com>
16835 * doc/install.texi (Downloading the source): Mark up
16836 contrib/download_prerequisites properly and drop leading "./".
16838 2015-09-12 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
16840 * config/arc/arc.h: Remove define of STRUCT_VALUE.
16841 * config/lm32/lm32.h: Likewise.
16842 * config/mep/mep.h: Likewise.
16843 * config/visium/visium.h: Likewise.
16844 * system.h: Poison STRUCT_VALUE macro.
16846 2015-09-12 John David Anglin <danglin@gcc.gnu.org>
16848 * config/pa/pa.c (pa_output_move_double): Enhance to handle HIGH
16849 CONSTANT_P operands.
16851 2015-09-11 David S. Miller <davem@davemloft.net>
16853 * config/sparc/constraints.md: Make "U" constraint a real register
16855 * config/sparc/sparc.c (TARGET_LRA_P): Define.
16856 (D_MODES, DF_MODES): Add missing cast.
16857 (TF_MODES, TF_MODES_NO_S): Include T_MODE.
16858 (OF_MODES, OF_MODES_NO_S): Include O_MODE.
16859 (sparc_register_move_cost): Decrease Niagara/UltrsSPARC memory
16861 * config/sparc/sparc.h (PROMOTE_MODE): Define.
16862 * config/sparc/sparc.md (*movsi_lo_sum, *movsi_high): Do not
16863 provide these insn when flag_pic.
16865 2015-09-11 Jeff Law <law@redhat.com>
16867 PR tree-optimization/47679
16868 * tree-ssa-dom.c (struct cond_equivalence): Update comment.
16869 * tree-ssa-scopedtables.h (class const_and_copies): Prefix data
16870 member with m_. Update inline member functions as necessary. Add
16872 * tree-ssa-scopedtables.c: Update const_and_copies's member
16873 functions to use m_ prefix to access the stack.
16875 2015-09-11 Aditya Kumar <aditya.k7@samsung.com>
16877 * graphite-optimize-isl.c (disable_tiling): Remove.
16878 (get_schedule_for_band): Do not use disable_tiling.
16879 (get_prevector_map): Delete function.
16880 (enable_polly_vector): Remove.
16881 (get_schedule_for_band_list): Remove dead code.
16883 2015-09-11 Aditya Kumar <aditya.k7@samsung.com>
16885 * graphite-optimize-isl.c (get_tile_map): Refactor.
16886 (get_schedule_for_band): Same.
16887 (getScheduleForBand): Same.
16888 (get_prevector_map): Same.
16889 (get_schedule_for_band_list): Same.
16890 (get_schedule_map): Same.
16891 (get_single_map): Same.
16892 (apply_schedule_map_to_scop): Same.
16893 (optimize_isl): Same.
16895 2015-09-10 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
16898 * config/aarch64/aarch.md (mov<mode>:GPF_F16): Use GPF_TF_F16.
16900 * config/aarch64/iterators.md (GPF_TF_F16): New.
16903 2015-09-10 Nathan Sidwell <nathan@acm.org>
16905 * config/nvptx/nvptx.c (nvptx_expand_call): Add spacing.
16906 (nvptx_reorg): Adjust comments.
16908 2015-09-15 John David Anglin <danglin@gcc.gnu.org>
16911 * configure.ac: Check if setenv and unsetenv are declared.
16912 * configure: Rebuild.
16913 * config.in: Rebuild.
16914 * system.h: Declare setenv and unsetenv if not declared.
16916 2015-09-10 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
16918 * config/rs6000/rs6000.c (swap_web_entry): Update preceding
16919 commentary to simplify permute mask adjustment equation.
16920 (special_handling_values): Add SH_VPERM.
16921 (const_load_sequence_p): New function.
16922 (insn_is_swappable_p): Add logic to recognize an UNSPEC_VPERM with
16923 the mask loaded from the constant pool.
16924 (adjust_vperm): New function.
16925 (handle_special_swappables): Call adjust_vperm.
16926 (dump_swap_insn_table): Handle SH_VPERM.
16928 2015-09-10 H.J. Lu <hongjiu.lu@intel.com>
16930 * shrink-wrap.c (requires_stack_frame_p): Remove static.
16931 * shrink-wrap.h (requires_stack_frame_p): Put back.
16933 2015-09-10 Richard Sandiford <richard.sandiford@arm.com>
16935 * reload1.c (elimination_costs_in_insn): Locally turn
16936 -Wmaybe-uninitialized into a warning.
16938 2015-09-10 Segher Boessenkool <segher@kernel.crashing.org>
16940 * shrink-wrap.c (requires_stack_frame_p): Make static.
16941 (prepare_shrink_wrap): Likewise.
16942 (dup_block_and_redirect): Likewise.
16943 * shrink-wrap.h: Remove declarations of those functions.
16945 2015-09-10 Mark Wielaard <mjw@redhat.com>
16947 * doc/invoke.texi (Wnonnull): Also warns when comparing against NULL.
16949 2015-09-10 Oleg Endo <olegendo@gcc.gnu.org>
16952 * config/sh/sh.c (sh_extending_set_of_reg::use_as_extended_reg): Add
16953 missing simplify_gen_subreg.
16955 2015-09-10 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
16957 * config/s390/s390.c (s390_contiguous_bitmask_vector_p): Reject if
16958 the vector element is bigger than 64 bit.
16960 2015-09-10 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
16962 * config/s390/vx-builtins.md ("vec_vmal<mode>", "vec_vmah<mode>")
16963 ("vec_vmalh<mode>"): Change mode iterator from VI_HW to VI_HW_QHS.
16965 2015-09-10 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
16967 * config/s390/s390.c: Add V1TImode to constant pool modes.
16969 2015-09-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
16972 * config/arm/arm.md (*arm32_movhf): Remove !arm_restrict_it from
16973 predicate. Set predicable_short_it attr to "no".
16975 2015-09-10 Jiong Wang <jiong.wang@arm.com>
16977 PR rtl-optimization/67421
16978 * expr.c (expand_expr_real_2): Cost instrcution sequences when doing
16979 left wide shift tranformation.
16981 2015-09-10 Claudiu Zissulescu <claziss@synopsys.com>
16983 * common/config/arc/arc-common.c: Remove references to A5.
16984 * config/arc/arc-opts.h: Likewise.
16985 * config/arc/arc.c, config/arc/arc.h, config/arc/arc.md: Likewise.
16986 * config/arc/arc.opt, config/arc/constraints.md: Likewise.
16987 * config/arc/t-arc-newlib: Likewise.
16989 2015-09-10 Claudiu Zissulescu <claziss@synopsys.com>
16991 * config/arc/arc.md (length): Fix attribute length for conditional
16992 executed instructions with long immediate.
16994 2015-09-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
16996 * config/aarch64/aarch64.md (*and<mode>3nr_compare0): Use logics_imm
16997 type for second alternative.
16999 2015-09-10 Markus Trippelsdorf <markus@trippelsdorf.de>
17001 * doc/invoke.texi (Downloading GCC): Mention
17002 contrib/download_prerequisites script.
17004 2015-09-10 Jakub Jelinek <jakub@redhat.com>
17007 * gimplify.c (gimplify_omp_for): If inner stmt is not found
17008 for combined loop, assert seen_error () and return GS_ERROR.
17010 PR middle-end/67521
17011 * gimplify.c (gimplify_omp_for): Don't call omp_add_variable
17012 if decl is already in outer->variables.
17014 PR middle-end/67517
17015 * gimplify.c (gimplify_scan_omp_clauses): Instead of
17016 asserting that decl is not specified in octx->variables,
17017 break out of the loop if it is.
17020 * gimplify.c (gimplify_omp_for): For loop SIMD construct, if
17021 iterator is not explicitly determined, but is defined inside
17022 of the combined workshare region, handle it like if it has
17023 DECL_EXPR in OMP_FOR_PRE_BODY.
17025 2015-09-09 Nathan Sidwell <nathan@acm.org>
17027 * config/nvptx/nvptx.md (call_operation): Move bound out of loop.
17028 (*cmp<mode>): Add assembler spacing.
17029 (setcc_int<mode>, set_cc_float<mode>): Likewise.
17030 * config/nvptx/nvptx.c (nvptx_option_override): Override debug
17032 (write_func_decl_from_insn): Refactor argument loops & comma emission.
17033 (nvptx_expand_call): Likewise.
17034 (nvptx_output_call_insn): Likewise.
17035 (nvptx_reorg_subreg): Add spacing.
17037 2015-09-09 Marek Polacek <polacek@redhat.com>
17039 PR middle-end/67512
17040 * tree-ssa-uninit.c (pred_equal_p): Only call invert_tree_comparison
17043 2015-09-09 Paolo Carlini <paolo.carlini@oracle.com>
17046 * doc/invoke.texi ([Wsubobject-linkage]): Document.
17048 2015-09-09 Tom de Vries <tom@codesourcery.com>
17050 * params-list.h: Add missing copyright notice.
17052 2015-09-09 Nathan Sidwell <nathan@acm.org>
17054 * config/nvptx/nvptx.md (atomic_compare_and_swap<mode>): Use
17055 sel_truesi, not andsi.
17057 2015-09-09 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
17059 * config/arm/arm.md (*subsi3_compare0): Rename to...
17060 (subsi3_compare0): ... This.
17061 (modsi3): New define_expand.
17062 * config/arm/arm.c (arm_new_rtx_costs, MOD case): Handle case
17063 when operand is power of 2.
17065 2015-09-09 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
17067 * config/aarch64/aarch64.md (mod<mode>3): New define_expand.
17068 (*neg<mode>2_compare0): Rename to...
17069 (neg<mode>2_compare0): ... This.
17070 * config/aarch64/aarch64.c (aarch64_rtx_costs, MOD case):
17071 Move check for speed inside the if-then-elses. Reflect
17072 CSNEG sequence in MOD by power of 2 case.
17074 2015-09-09 Alan Modra <amodra@gmail.com>
17077 * config/rs6000/rs6000.c (rs6000_secondary_reload_gpr): Find
17078 reload replacement for PRE_MODIFY address reg.
17080 2015-09-09 Sebastian Pop <s.pop@samsung.com>
17082 PR tree-optimization/53852
17083 * config.in: Regenerate.
17084 * configure: Regenerate.
17085 * configure.ac (HAVE_ISL_CTX_MAX_OPERATIONS): Detect.
17086 * graphite-optimize-isl.c (optimize_isl): Stop computation when
17087 PARAM_MAX_ISL_OPERATIONS is reached.
17088 * params.def (PARAM_MAX_ISL_OPERATIONS): Add.
17089 * graphite-dependences.c (extend_schedule): Remove gcc_asserts on
17090 result equal to isl_stat_ok as the status now can be isl_error_quota.
17091 (subtract_commutative_associative_deps): Same.
17092 (compute_deps): Same.
17094 2015-09-08 Aditya Kumar <hiraditya@msn.com>
17095 Sebastian Pop <s.pop@samsung.com>
17097 * graphite-isl-ast-to-gimple.c (gcc_expression_from_isl_ast_expr_id):
17098 Return the parameter if it was saved in corresponding
17099 parameter_rename_map of the region.
17100 (copy_def): Copy def from sese region to the newly created region.
17101 (copy_internal_parameters): Copy all the internal parameters defined
17102 within a region to the newly created region.
17103 (graphite_regenerate_ast_isl): Copy parameters to the new region before
17104 translating isl to gimple.
17105 * graphite-scop-detection.c (graphite_can_represent_loop): Bail out if
17106 the loop-nest does not have any data-references.
17107 (build_graphite_scops): Create a scop only when there is at least one
17109 (contains_only_close_phi_nodes): Deleted.
17110 (print_graphite_scop_statistics): Deleted
17111 (print_graphite_statistics): Deleted
17112 (limit_scops): Deleted.
17113 (build_scops): Removed call to limit_scops.
17114 * sese.c (new_sese): Construct.
17115 (free_sese): Destruct.
17116 (sese_add_exit_phis_edge): update_stmt after exit phi edge has been
17118 (set_rename): Pass sese region so that parameters inside the region can
17119 be added to its parameter_rename_map.
17120 (rename_uses): Pass sese region.
17121 (graphite_copy_stmts_from_block): Do not copy parameters that have been
17122 generated in the header of the scop. For each SSA_NAME in the
17123 parameter_rename_map rename its usage.
17124 (invariant_in_sese_p_rec): Return false if tree t is defined outside
17126 (scalar_evolution_in_region): If the tree t is invariant just return t.
17127 * sese.h: Added a parameter renamne map (parameter_rename_map_t) to
17128 struct sese to keep track of all the parameters which need renaming.
17129 * tree-data-ref.c (loop_nest_has_data_refs): Check if a loop nest has
17131 * tree-data-ref.h: Declaration of loop_nest_has_data_refs.
17133 2015-09-08 Tom de Vries <tom@codesourcery.com>
17135 * Makefile.in (generated_files): Add params.list.
17136 (params.list, s-params.list): Add rule.
17137 * params.h (enum compiler_param): Include params-list.h. Move define
17138 DEFPARAM, include params.def and undef DEFPARAM ...
17139 * params-list.h: ... here. New file.
17141 2015-09-08 David Malcolm <dmalcolm@redhat.com>
17143 * pretty-print.h (printer_fn): Fix typo in comment.
17145 2015-09-07 Jeff Law <law@redhat.com>
17147 * tree-ssa-scopedtables.h (class const_and_copies): Fix comment typo.
17149 2015-09-08 Alan Lawrence <alan.lawrence@arm.com>
17151 * doc/sourcebuild.texi (arm_neon_fp16): Correct cross-reference.
17152 (arm_neon_fp16_ok): Document adding of -mfp16-format=ieee flag.
17153 (arm_neon_fp16_hw): New.
17155 2015-09-08 Alan Lawrence <alan.lawrence@arm.com>
17157 * fold-const.c (native_interpret_real): Fix HFmode for bigendian where
17158 UNITS_PER_WORD >= 4.
17160 2015-09-08 Alan Lawrence <alan.lawrence@arm.com>
17162 * config/aarch64/aarch64-simd.md (aarch64_simd_vec_unpacks_lo_<mode>,
17163 aarch64_simd_vec_unpacks_hi_<mode>): New insn.
17164 (vec_unpacks_lo_v4sf, vec_unpacks_hi_v4sf): Delete insn.
17165 (vec_unpacks_lo_<mode>, vec_unpacks_hi_<mode>): New expand.
17166 (aarch64_float_extend_lo_v2df): Rename to...
17167 (aarch64_float_extend_lo_<Vwide>): this, using VDF and so adding V4SF.
17169 * config/aarch64/aarch64-simd-builtins.def (vec_unpacks_hi): Add v8hf.
17170 (float_extend_lo): Add v4sf.
17172 * config/aarch64/arm_neon.h (vcvt_f32_f16, vcvt_high_f32_f16): New.
17173 * config/aarch64/iterators.md (VQ_HSF): New iterator.
17174 (VWIDE, Vwtype, Vhalftype): Add V8HF, V4SF.
17175 (Vwide): New mode_attr.
17177 2015-09-08 Alan Lawrence <alan.lawrence@arm.com>
17179 * config/aarch64/aarch64-simd.md (aarch64_simd_dup<mode>,
17180 aarch64_dup_lane<mode>, aarch64_dup_lane_<vswap_width_name><mode>,
17181 aarch64_simd_vec_set<mode>, vec_set<mode>, vec_perm_const<mode>,
17182 vec_init<mode>, *aarch64_simd_ld1r<mode>, vec_extract<mode>): Add
17183 V4HF and V8HF variants to iterator.
17185 * config/aarch64/aarch64.c (aarch64_evpc_dup): Add V4HF and V8HF cases.
17187 * config/aarch64/iterators.md (VDQF_F16): New.
17188 (VSWAP_WIDTH, vswap_width_name): Add V4HF and V8HF cases.
17190 2015-09-08 Alan Lawrence <alan.lawrence@arm.com>
17192 * config/aarch64/arm_neon.h (vreinterpret_p8_f16, vreinterpret_p16_f16,
17193 vreinterpret_f16_f64, vreinterpret_f16_s8, vreinterpret_f16_s16,
17194 vreinterpret_f16_s32, vreinterpret_f16_s64, vreinterpret_f16_f32,
17195 vreinterpret_f16_u8, vreinterpret_f16_u16, vreinterpret_f16_u32,
17196 vreinterpret_f16_u64, vreinterpret_f16_p8, vreinterpret_f16_p16,
17197 vreinterpretq_f16_f64, vreinterpretq_f16_s8, vreinterpretq_f16_s16,
17198 vreinterpretq_f16_s32, vreinterpretq_f16_s64, vreinterpretq_f16_f32,
17199 vreinterpretq_f16_u8, vreinterpretq_f16_u16, vreinterpretq_f16_u32,
17200 vreinterpretq_f16_u64, vreinterpretq_f16_p8, vreinterpretq_f16_p16,
17201 vreinterpret_f32_f16, vreinterpret_f64_f16, vreinterpret_s64_f16,
17202 vreinterpret_u64_f16, vreinterpretq_u64_f16, vreinterpret_s8_f16,
17203 vreinterpret_s16_f16, vreinterpret_s32_f16, vreinterpret_u8_f16,
17204 vreinterpret_u16_f16, vreinterpret_u32_f16, vreinterpretq_p8_f16,
17205 vreinterpretq_p16_f16, vreinterpretq_f32_f16, vreinterpretq_f64_f16,
17206 vreinterpretq_s64_f16, vreinterpretq_s8_f16, vreinterpretq_s16_f16,
17207 vreinterpretq_s32_f16, vreinterpretq_u8_f16, vreinterpretq_u16_f16,
17208 vreinterpretq_u32_f16, vget_low_f16, vget_high_f16, vld1_dup_f16,
17209 vld1q_dup_f16): New.
17211 2015-09-08 Alan Lawrence <alan.lawrence@arm.com>
17213 * config/aarch64/aarch64-simd.md (aarch64_float_truncate_lo_v2sf):
17214 Reparameterize to...
17215 (aarch64_float_truncate_lo_<mode>): ...this, for both V2SF and V4HF.
17216 (aarch64_float_truncate_hi_v4sf): Reparameterize to...
17217 (aarch64_float_truncate_hi_<Vdbl>): ...this, for both V4SF and V8HF.
17219 * config/aarch64/aarch64-simd-builtins.def (float_truncate_hi_): Add
17221 (float_truncate_lo_): Use BUILTIN_VDF iterator.
17223 * config/aarch64/arm_neon.h (vcvt_f16_f32, vcvt_high_f16_f32): New.
17225 * config/aarch64/iterators.md (VDF, Vdtype): New.
17226 (VWIDE, Vmwtype): Add cases for V4HF and V2SF.
17228 2015-09-08 Alan Lawrence <alan.lawrence@arm.com>
17230 * config/aarch64/aarch64.c (aarch64_split_simd_combine): Add V4HFmode.
17231 * config/aarch64/aarch64-builtins.c (VAR13, VAR14): New.
17232 (aarch64_scalar_builtin_types, aarch64_init_simd_builtin_scalar_types):
17233 Add __builtin_aarch64_simd_hf.
17234 * config/aarch64/arm_neon.h (float16x4x2_t, float16x8x2_t,
17235 float16x4x3_t, float16x8x3_t, float16x4x4_t, float16x8x4_t,
17236 vcombine_f16, vst2_lane_f16, vst2q_lane_f16, vst3_lane_f16,
17237 vst3q_lane_f16, vst4_lane_f16, vst4q_lane_f16, vld2_f16, vld2q_f16,
17238 vld3_f16, vld3q_f16, vld4_f16, vld4q_f16, vld2_dup_f16, vld2q_dup_f16,
17239 vld3_dup_f16, vld3q_dup_f16, vld4_dup_f16, vld4q_dup_f16,
17240 vld2_lane_f16, vld2q_lane_f16, vld3_lane_f16, vld3q_lane_f16,
17241 vld4_lane_f16, vld4q_lane_f16, vst2_f16, vst2q_f16, vst3_f16,
17242 vst3q_f16, vst4_f16, vst4q_f16, vcreate_f16): New.
17244 * config/aarch64/iterators.md (VALLDIF, Vtype, Vetype, Vbtype,
17245 V_cmp_result, v_cmp_result): Add cases for V4HF and V8HF.
17246 (VDC, Vdbl): Add V4HF.
17248 2015-09-08 Alan Lawrence <alan.lawrence@arm.com>
17250 * config/aarch64/aarch64.c (aarch64_vector_mode_supported_p): Support
17251 V4HFmode and V8HFmode.
17252 (aarch64_split_simd_move): Add case for V8HFmode.
17253 * config/aarch64/aarch64-builtins.c (v4hf_UP, v8hf_UP): Define.
17254 (aarch64_simd_builtin_std_type): Handle HFmode.
17255 (aarch64_init_simd_builtin_types): Include Float16x4_t and Float16x8_t.
17257 * config/aarch64/aarch64-simd.md (mov<mode>, aarch64_get_lane<mode>,
17258 aarch64_ld1<VALL:mode>, aarch64_st1<VALL:mode): Use VALL_F16 iterator.
17259 (aarch64_be_ld1<mode>, aarch64_be_st1<mode>): Use VALLDI_F16 iterator.
17261 * config/aarch64/aarch64-simd-builtin-types.def: Add Float16x4_t,
17264 * config/aarch64/aarch64-simd-builtins.def (ld1, st1): Use VALL_F16.
17265 * config/aarch64/arm_neon.h (float16x4_t, float16x8_t, float16_t):
17267 (vget_lane_f16, vgetq_lane_f16, vset_lane_f16, vsetq_lane_f16,
17268 vld1_f16, vld1q_f16, vst1_f16, vst1q_f16, vst1_lane_f16,
17269 vst1q_lane_f16): New.
17270 * config/aarch64/iterators.md (VD, VQ, VQ_NO2E): Add vectors of HFmode.
17271 (VALLDI_F16, VALL_F16): New.
17272 (Vmtype, VEL, VCONQ, VHALF, V_TWO_ELEM, V_THREE_ELEM, V_FOUR_ELEM, q):
17273 Add cases for V4HF and V8HF.
17274 (VDBL, VRL2, VRL3, VRL4): Add V4HF case.
17276 2015-09-08 Alan Lawrence <alan.lawrence@arm.com>
17278 * config/arm/arm-builtins.c (VAR11, VAR12): New.
17279 * config/arm/arm_neon_builtins.def (vcombine, vld2_dup, vld3_dup,
17280 vld4_dup): Add v4hf variant.
17281 (vget_high, vget_low): Add v8hf variant.
17282 (vld1, vst1, vst1_lane, vld2, vld2_lane, vst2, vst2_lane, vld3,
17283 vld3_lane, vst3, vst3_lane, vld4, vld4_lane, vst4, vst4_lane): Add
17284 v4hf and v8hf variants.
17286 * config/arm/iterators.md (VD_LANE, VD_RE, VQ2, VQ_HS): New.
17288 (V_DOUBLE): Add case for V4HF.
17290 (V_HALF): Add case for V8HF.
17291 (VDQX): Add V4HF, V8HF.
17292 (V_elem, V_two_elem, V_three_elem, V_four_elem, V_cmp_result,
17293 V_uf_sclr, V_sz_elem, V_mode_nunits, q): Add cases for V4HF & V8HF.
17295 * config/arm/neon.md (vec_set<mode>internal, vec_extract<mode>,
17296 neon_vget_lane<mode>_sext_internal, neon_vget_lane<mode>_zext_internal,
17297 vec_load_lanesoi<mode>, neon_vld2<mode>, vec_store_lanesoi<mode>,
17298 neon_vst2<mode>, vec_load_lanesci<mode>, neon_vld3<mode>,
17299 neon_vld3qa<mode>, neon_vld3qb<mode>, vec_store_lanesci<mode>,
17300 neon_vst3<mode>, neon_vst3qa<mode>, neon_vst3qb<mode>,
17301 vec_load_lanesxi<mode>, neon_vld4<mode>, neon_vld4qa<mode>,
17302 neon_vld4qb<mode>, vec_store_lanesxi<mode>, neon_vst4<mode>,
17303 neon_vst4qa<mode>, neon_vst4qb<mode>): Change VQ iterator to VQ2.
17305 (neon_vcreate, neon_vreinterpretv8qi<mode>,
17306 neon_vreinterpretv4hi<mode>, neon_vreinterpretv2si<mode>,
17307 neon_vreinterpretv2sf<mode>, neon_vreinterpretdi<mode>):
17308 Change VDX to VD_RE.
17310 (neon_vld2_lane<mode>, neon_vst2_lane<mode>, neon_vld3_lane<mode>,
17311 neon_vst3_lane<mode>, neon_vld4_lane<mode>, neon_vst4_lane<mode>):
17312 Change VD iterator to VD_LANE, and VMQ iterator to VQ_HS.
17314 * config/arm/arm_neon.h (float16x4x2_t, float16x8x2_t, float16x4x3_t,
17315 float16x8x3_t, float16x4x4_t, float16x8x4_t, vcombine_f16,
17316 vget_high_f16, vget_low_f16, vld1_f16, vld1q_f16, vst1_f16, vst1q_f16,
17317 vst1_lane_f16, vst1q_lane_f16, vld2_f16, vld2q_f16, vld2_lane_f16,
17318 vld2q_lane_f16, vld2_dup_f16, vst2_f16, vst2q_f16, vst2_lane_f16,
17319 vst2q_lane_f16, vld3_f16, vld3q_f16, vld3_lane_f16, vld3q_lane_f16,
17320 vld3_dup_f16, vst3_f16, vst3q_f16, vst3_lane_f16, vst3q_lane_f16,
17321 vld4_f16, vld4q_f16, vld4_lane_f16, vld4q_lane_f16, vld4_dup_f16,
17322 vst4_f16, vst4q_f16, vst4_lane_f16, vst4q_lane_f16): New.
17324 2015-09-08 Alan Lawrence <alan.lawrence@arm.com>
17326 * config/arm/arm_neon.h (vgetq_lane_f16, vsetq_lane_f16, vld1q_lane_f16,
17327 vld1q_dup_f16, vreinterpretq_p8_f16, vreinterpretq_p16_f16,
17328 vreinterpretq_f16_p8, vreinterpretq_f16_p16, vreinterpretq_f16_f32,
17329 vreinterpretq_f16_p64, vreinterpretq_f16_p128, vreinterpretq_f16_s64,
17330 vreinterpretq_f16_u64, vreinterpretq_f16_s8, vreinterpretq_f16_s16,
17331 vreinterpretq_f16_s32, vreinterpretq_f16_u8, vreinterpretq_f16_u16,
17332 vreinterpretq_f16_u32, vreinterpretq_f32_f16, vreinterpretq_p64_f16,
17333 vreinterpretq_p128_f16, vreinterpretq_s64_f16, vreinterpretq_u64_f16,
17334 vreinterpretq_s8_f16, vreinterpretq_s16_f16, vreinterpretq_s32_f16,
17335 vreinterpretq_u8_f16, vreinterpretq_u16_f16, vreinterpretq_u32_f16):
17338 2015-09-08 Alan Lawrence <alan.lawrence@arm.com>
17340 * config/arm/arm.h (VALID_NEON_QREG_MODE): Add V8HFmode.
17342 * config/arm/arm.c (arm_vector_mode_supported_p): Support V8HFmode.
17344 * config/arm/arm-builtins.c (v8hf_UP): New.
17345 (arm_init_simd_builtin_types): Initialise Float16x8_t.
17347 * config/arm/arm-simd-builtin-types.def (Float16x8_t): New.
17349 * config/arm/arm_neon.h (float16x8_t): New typedef.
17351 2015-09-08 Alan Lawrence <alan.lawrence@arm.com>
17353 * config/arm/arm_neon.h (float16_t, vget_lane_f16, vset_lane_f16,
17354 vcreate_f16, vld1_lane_f16, vld1_dup_f16, vreinterpret_p8_f16,
17355 vreinterpret_p16_f16, vreinterpret_f16_p8, vreinterpret_f16_p16,
17356 vreinterpret_f16_f32, vreinterpret_f16_p64, vreinterpret_f16_s64,
17357 vreinterpret_f16_u64, vreinterpret_f16_s8, vreinterpret_f16_s16,
17358 vreinterpret_f16_s32, vreinterpret_f16_u8, vreinterpret_f16_u16,
17359 vreinterpret_f16_u32, vreinterpret_f32_f16, vreinterpret_p64_f16,
17360 vreinterpret_s64_f16, vreinterpret_u64_f16, vreinterpret_s8_f16,
17361 vreinterpret_s16_f16, vreinterpret_s32_f16, vreinterpret_u8_f16,
17362 vreinterpret_u16_f16, vreinterpret_u32_f16): New.
17364 2015-09-07 Ilya Verbin <ilya.verbin@intel.com>
17366 * config/i386/intelmic-mkoffload.c (prepare_target_image): Handle all
17367 non-alphanumeric characters in the symbol name.
17369 2015-09-07 Marek Polacek <polacek@redhat.com>
17371 PR inline-asm/67448
17372 * gimplify.c (gimplify_asm_expr): Don't allow MODIFY_EXPR as
17375 2015-09-07 Marek Polacek <polacek@redhat.com>
17377 * system.h (INTTYPE_MINIMUM): Rewrite to avoid shift warning.
17379 2015-09-04 Paolo Bonzini <bonzini@gnu.org>
17381 * config/i386/cygming.h (SUBTARGET_OVERRIDE_OPTIONS): Do
17384 2015-09-04 Jakub Jelinek <jakub@redhat.com>
17386 PR middle-end/67452
17387 * tree-ssa-live.c: Include cfgloop.h.
17388 (remove_unused_locals): Clear loop->simduid if simduid is about
17389 to be removed from cfun->local_decls.
17391 2015-09-02 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
17394 * config/avr/avr.c (avr_eval_addr_attrib): Look for io_low
17397 2015-09-04 Tom de Vries <tom@codesourcery.com>
17399 * doc/invoke.texi (@item -ftrapv, @item -fwrapv): Document interaction.
17401 2015-09-04 Jeff Law <law@redhat.com>
17403 * tree-ssa-scopedtables.c (const_and_copies::const_and_copies): Remove
17404 unnecessary constructor. It's now trivial and implemented inside...
17405 * tree-ssa-scopedtables.h (const_and_copies): Implement trivial
17406 constructor. Add comments to various methods. Remove unused
17408 * tree-ssa-dom.c (pass_dominator::execute): Corresponding changes.
17409 * tree-vrp.c (identify_jump_threads): Likewise.
17410 * tree-ssa-threadedge.c (thread_through_normal_block): Fix minor
17411 indentation issues.
17412 (thread_across_edge): Similarly.
17413 (record_temporary_equivalences_from_stmts_at_dest): Remove unused
17414 arguments in constructor call.
17416 2015-09-04 Jonas Hahnfeld <Hahnfeld@itc.rwth-aachen.de>
17418 * config/i386/intelmic-mkoffload.c (prepare_target_image): Fix if the
17419 temp path contains a '-'.
17421 2015-09-04 Andrey Turetskiy <andrey.turetskiy@intel.com>
17422 Petr Murzin <petr.murzin@intel.com>
17423 Kirill Yukhin <kirill.yukhin@intel.com>
17425 * config/i386/i386-builtin-types.def
17426 (VOID_PFLOAT_HI_V8DI_V16SF_INT): New.
17427 (VOID_PDOUBLE_QI_V16SI_V8DF_INT): Ditto.
17428 (VOID_PINT_HI_V8DI_V16SI_INT): Ditto.
17429 (VOID_PLONGLONG_QI_V16SI_V8DI_INT): Ditto.
17430 * config/i386/i386.c
17431 (ix86_builtins): Add IX86_BUILTIN_SCATTERALTSIV8DF,
17432 IX86_BUILTIN_SCATTERALTDIV16SF, IX86_BUILTIN_SCATTERALTSIV8DI,
17433 IX86_BUILTIN_SCATTERALTDIV16SI.
17434 (ix86_init_mmx_sse_builtins): Define __builtin_ia32_scatteraltsiv8df,
17435 __builtin_ia32_scatteraltdiv8sf, __builtin_ia32_scatteraltsiv8di,
17436 __builtin_ia32_scatteraltdiv8si.
17437 (ix86_expand_builtin): Handle IX86_BUILTIN_SCATTERALTSIV8DF,
17438 IX86_BUILTIN_SCATTERALTDIV16SF, IX86_BUILTIN_SCATTERALTSIV8DI,
17439 IX86_BUILTIN_SCATTERALTDIV16SI.
17440 (ix86_vectorize_builtin_scatter): New.
17441 (TARGET_VECTORIZE_BUILTIN_SCATTER): Define as
17442 ix86_vectorize_builtin_scatter.
17444 2015-09-04 Andrey Turetskiy <andrey.turetskiy@intel.com>
17445 Petr Murzin <petr.murzin@intel.com>
17446 Kirill Yukhin <kirill.yukhin@intel.com>
17448 * doc/tm.texi.in (TARGET_VECTORIZE_BUILTIN_SCATTER): New.
17449 * doc/tm.texi: Regenerate.
17450 * target.def: Add scatter builtin.
17451 * tree-vectorizer.h: Rename gather_p to gather_scatter_p and use it
17452 for loads/stores in case of gather/scatter accordingly.
17453 (STMT_VINFO_GATHER_SCATTER_P(S)): Use it instead of
17454 STMT_VINFO_GATHER_P(S).
17455 (vect_check_gather): Rename to ...
17456 (vect_check_gather_scatter): this.
17457 * tree-vect-data-refs.c (vect_analyze_data_ref_dependence): Use
17458 STMT_VINFO_GATHER_SCATTER_P instead of STMT_VINFO_SCATTER_P.
17459 (vect_check_gather_scatter): Use it instead of vect_check_gather.
17460 (vect_analyze_data_refs): Add gatherscatter enum and maybe_scatter
17461 variable and new checkings for it accordingly.
17462 * tree-vect-stmts.c
17463 (STMT_VINFO_GATHER_SCATTER_P(S)): Use it instead of
17464 STMT_VINFO_GATHER_P(S).
17465 (vect_check_gather_scatter): Use it instead of vect_check_gather.
17466 (vectorizable_store): Add checkings for STMT_VINFO_GATHER_SCATTER_P.
17468 2015-09-03 Bill Schmidt <wschmidt@vnet.linux.ibm.com>
17470 * config/rs6000/altivec.md (altivec_vperm_v8hiv16qi): New
17472 (mulv16qi3): New define_expand.
17474 2015-09-03 Martin Sebor <msebor@redhat.com>
17477 * doc/extend.texi (Other Builtins): Document when the address
17478 of a built-in function can be taken.
17480 2015-09-03 Richard Biener <rguenther@suse.de>
17482 * dwarf2out.c (flush_limbo_die_list): Split out from ...
17483 (dwarf2out_early_finish): ... here.
17484 (dwarf2out_finish): Do not call dwarf2out_early_finish but
17485 flush_limbo_die_list. Assert we have no deferred asm names.
17487 2015-09-03 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
17489 * optabs.c (expand_binop): Don't create a broadcast vector with a
17490 source element wider than the inner mode.
17492 2015-09-03 Richard Biener <rguenther@suse.de>
17494 * varasm.c (output_constant): Use fold_convert instead of
17497 2015-09-03 Tom de Vries <tom@codesourcery.com>
17499 PR tree-optimization/65637
17500 * omp-low.c (expand_omp_for_static_chunk): Handle case that
17501 fin_bb has 2 predecessors.
17503 2015-09-03 Tom de Vries <tom@codesourcery.com>
17505 PR tree-optimization/65637
17506 * omp-low.c (find_phi_with_arg_on_edge): New function.
17507 (expand_omp_for_static_chunk): Fix inner loop phi.
17509 2015-09-03 Tom de Vries <tom@codesourcery.com>
17511 PR tree-optimization/65637
17512 * omp-low.c (expand_omp_for_static_chunk): Fix gcc_assert for the case
17515 2015-09-03 Tom de Vries <tom@codesourcery.com>
17517 * omp-low.c (expand_omp_for_static_chunk): Handle simple latch bb.
17519 2015-09-03 Tom de Vries <tom@codesourcery.com>
17521 * doc/invoke.texi (parloops-chunk-size): Add item.
17522 * params.def (PARAM_PARLOOPS_CHUNK_SIZE): Add DEFPARAM.
17523 * tree-parloops.c: Include params.h.
17524 (create_parallel_loop): Set chunk-size of schedule of omp-for loop, if
17525 param parloops-chunk-size is used.
17527 2015-09-03 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
17529 PR middle-end/67351
17530 * fold-const.c (fold_binary_loc) : Move
17531 Transform (x >> c) << c into x & (-1<<c) or
17532 transform (x << c) >> c into x & ((unsigned)-1 >> c) for unsigned
17533 types using simplify and match.
17534 * match.pd (lshift (rshift @0 INTEGER_CST@1) @1) : New simplifier.
17535 (rshift (lshift @0 INTEGER_CST@1) @1) : New Simplifier
17537 2015-09-03 Richard Biener <rguenther@suse.de>
17540 * tree-ssa-structalias.c (ctor_for_analysis): New function.
17541 (create_variable_info_for_1): Use ctor_for_analysis instead
17542 of get_constructor.
17543 (create_variable_info_for): Likewise.
17545 2015-09-02 Charles Baylis <charles.baylis@linaro.org>
17548 * cgraphunit.c (cgraph_node::create_wrapper): Set can_throw_external
17549 in new callgraph edge.
17551 2015-09-02 Christophe Lyon <christophe.lyon@linaro.org>
17556 * config/aarch64/aarch64-simd.md
17557 (aarch64_ld<VSTRUCT:nregs><VQ:mode>): Call
17558 gen_aarch64_simd_ld<VSTRUCT:nregs><VQ:mode>.
17559 (aarch64_st<VSTRUCT:nregs><VQ:mode>): Call
17560 gen_aarch64_simd_st<VSTRUCT:nregs><VQ:mode>.
17562 2015-09-02 Alan Modra <amodra@gmail.com>
17564 * config/rs6000/sysv4le.h (LINK_TARGET_SPEC): Don't define.
17565 * config/rs6000/sysv4.h (LINK_TARGET_SPEC): Likewise.
17566 (LINK_SPEC, SUBTARGET_EXTRA_SPECS): Delete link_target.
17568 2015-09-02 Alan Modra <amodra@gmail.com>
17571 * config/rs6000/predicates.md (current_file_function_operand): Don't
17572 return true for weak symbols.
17573 * config/rs6000/rs6000.c (rs6000_function_ok_for_sibcall): Likewise.
17575 2015-09-01 Matthew Fortune <matthew.fortune@imgtec.com>
17576 Andrew Bennett <andrew.bennett@imgtec.com>
17578 * config/mips/mips-opts.h (mips_cb_setting): New enum.
17579 * config/mips/mips-protos.h: Add definitions for
17580 mips_output_jump and mips_output_equal_conditional_branch
17581 * config/mips/mips.c (MIPS_JR): Change to support the
17583 (mips_emit_compare): Add support for the MIPS R6 conditional
17585 (mips_process_sync_loop): Likewise.
17586 (mips_output_order_conditional_branch): Likewise.
17587 (mips16_build_call_stub): Change MIPS_CALL to
17589 (mips_print_operand_punctuation): Update 's' case to only
17590 apply to micromips r2.
17591 (mips_adjust_insn_length): Add support for forbidden slot
17593 (mips_avoid_hazard): Likewise.
17594 (mips_reorg_process_insns): Likewise.
17595 (mips_output_jump): New function.
17596 (mips_output_equal_conditional_branch): Likewise.
17597 (mips_output_conditional_branch): Use jrc/bc if compact
17598 branch support is enabled. Ensure the forbidden slots
17599 between the two branch instructions is filled with a nop.
17600 (mips_option_override): Add support to process the compact
17601 branch option and set the correct defaults. Prevent
17602 non-explict relocs being using for MIPS R6.
17603 (mips_trampoline_init): Add compact branch support.
17604 (mips_mult_zero_zero_cost): Allow zero initialisation of
17605 accumulators with TARGET_DSP.
17606 * config/mips/mips.h (TARGET_CB_NEVER): New define.
17607 (TARGET_CB_MAYBE): New define.
17608 (TARGET_CB_ALWAYS): New define.
17609 (ISA_HAS_DELAY_SLOTS): New define.
17610 (ISA_HAS_COMPACT_BRANCHES): New define.
17611 (ISA_HAS_JRC): New define.
17612 (MIPS_BRANCH_C): New define.
17613 (MIPS_CALL): Removed.
17614 (MICROMIPS_J): Removed.
17615 * config/mips/mips.md (compact_form): New attr.
17616 (hazard): Add support for forbidden slots.
17617 (define_delay): Add support for compact branches.
17618 (*branch_order<mode>): Likewise.
17619 (*branch_order<mode>_inverted): Likewise.
17620 (*branch_equality<mode>): Likewise.
17621 (*branch_equality<mode>_inverted): Likewise.
17622 (*jump_absolute): Likewise.
17623 (*jump_pic): Likewise.
17624 (indirect_jump): Use mips_output_jump to produce assembly output.
17625 (tablejump_<mode>"): Likewise.
17626 (*<optab>"): Likewise.
17627 (<optab>_internal): Likewise.
17628 (sibcall_internal): Likewise.
17629 (sibcall_value_internal): Likewise.
17630 (sibcall_value_multiple_internal): Likewise.
17631 (call_internal): Likewise.
17632 (call_split): Likewise.
17633 (call_internal_direct): Likewise.
17634 (call_direct_split): Likewise.
17635 (call_value_internal): Likewise.
17636 (call_value_split): Likewise.
17637 (call_value_internal_direct): Likewise.
17638 (call_value_direct_split): Likewise.
17639 (call_value_multiple_internal): Likewise.
17640 (call_value_multiple_split): Likewise.
17641 (mips_get_fcsr_mips16_<mode>): Likewise.
17642 (mips_set_fcsr_mips16_<mode>): Likewise.
17643 (tls_get_tp_mips16_<mode>): Likewise.
17644 * config/mips/mips.opt: Add -mcompact-branches option.
17645 * config/mips/predicates.md (order_operator): Ensure the
17646 conditional compact branches are only used if the ISA them.
17647 * doc/invoke.texi: Document -mcompact-branches option.
17649 2015-09-01 Vladimir Makarov <vmakarov@redhat.com>
17652 * lra-lives.c (process_bb_lives): Process move pseudos with the
17653 same value for copies and preferences
17654 * lra-constraints.c (match_reload): Create match reload pseudo
17655 with the same value from single dying input pseudo.
17657 2015-09-01 Ilya Enkovich <enkovich.gnu@gmail.com>
17660 * tree-chkp.c (chkp_find_bound_slots_1): Add NULL check.
17662 2015-09-01 Aldy Hernandez <aldyh@redhat.com>
17664 * trans-mem.c: Add contributed-by.
17665 * trans-mem.h: Same.
17667 2015-09-01 Richard Biener <rguenther@suse.de>
17669 * expr.c (expand_expr_real_1): For expanding TERed defs
17670 set the current location to that of the def if not UNKNOWN.
17672 2015-09-01 David Sherwood <david.sherwood@arm.com>
17674 * genmodes.c: Add CONST_MODE_UNIT_SIZE modifier.
17676 2015-09-01 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
17678 * ifcvt.c (struct noce_if_info): Add then_simple, else_simple,
17679 then_cost, else_cost fields. Change branch_cost field to unsigned int.
17680 (end_ifcvt_sequence): Call set_used_flags on each insn in the sequence.
17681 Include rtl-iter.h.
17682 (noce_simple_bbs): New function.
17683 (noce_try_move): Bail if basic blocks are not simple.
17684 (noce_try_store_flag): Likewise.
17685 (noce_try_store_flag_constants): Likewise.
17686 (noce_try_addcc): Likewise.
17687 (noce_try_store_flag_mask): Likewise.
17688 (noce_try_cmove): Likewise.
17689 (noce_try_minmax): Likewise.
17690 (noce_try_abs): Likewise.
17691 (noce_try_sign_mask): Likewise.
17692 (noce_try_bitop): Likewise.
17693 (bbs_ok_for_cmove_arith): New function.
17694 (noce_emit_all_but_last): Likewise.
17695 (noce_emit_insn): Likewise.
17696 (noce_emit_bb): Likewise.
17697 (noce_try_cmove_arith): Handle non-simple basic blocks.
17698 (insn_valid_noce_process_p): New function.
17699 (contains_mem_rtx_p): Likewise.
17700 (bb_valid_for_noce_process_p): Likewise.
17701 (noce_process_if_block): Allow non-simple basic blocks
17704 2015-08-31 Alan Lawrence <alan.lawrence@arm.com>
17706 * tree-ssa-dom.c (record_equivalences_from_phis,
17707 record_equivalences_from_stmt, optimize_stmt): Use dom_valueize.
17708 (lookup_avail_expr): Likewise, and remove comment and unused temp.
17710 2015-09-01 Nick Clifton <nickc@redhat.com>
17712 * config/msp430/msp430.opt (mcpu): Fix typo.
17714 2015-09-01 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
17716 * config/aarch64/aarch64.c (aarch64_set_current_function):
17717 Re-layout any vector parameters have non-simd layout.
17718 * config/aarch64/aarch64-builtins.c (aarch64_relayout_simd_param):
17720 (aarch64_simd_expand_args): Delete call to the above.
17722 2015-08-31 Mike Frysinger <vapier@gentoo.org>
17724 * doc/invoke.texi (asan-stack): Add space before option.
17726 2015-08-31 Marc Glisse <marc.glisse@inria.fr>
17728 * tree.h (zerop): New function.
17729 * tree.c (zerop): Likewise.
17730 (element_precision): Handle expressions.
17731 * match.pd (define_predicates): Add zerop.
17732 (x <= +Inf): Fix comment.
17733 (abs (x) == 0, A & C == C, A & C != 0): Converted from ...
17734 * fold-const.c (fold_binary_loc): ... here. Remove.
17736 2015-08-31 Richard Biener <rguenther@suse.de>
17738 PR middle-end/67381
17739 * genmatch.c (dt_node::gen_kids): Also treat matches as barrier.
17741 2015-08-31 Marc Glisse <marc.glisse@inria.fr>
17743 * match.pd (SIN, COS, TAN, COSH): Reorder for consistency.
17744 (CEXPI): New operator list.
17745 (real (conj (x)), imag (conj (x)), real (x +- y), real (cexpi (x)),
17746 imag (cexpi (x)), conj (conj (x)), conj (complex (x, y))):
17748 * fold-const.c (fold_unary_loc, fold_binary_loc): ... here. Remove.
17750 2015-08-31 Tom de Vries <tom@codesourcery.com>
17752 * tree-ssa-loop-manip.c (find_uses_to_rename_stmt)
17753 (find_uses_to_rename_bb, find_uses_to_rename): Add and handle use_flags
17755 (find_uses_to_rename_def, find_uses_to_rename_in_loop): New function.
17756 (rewrite_into_loop_closed_ssa_1): New function, factored out of ...
17757 (rewrite_into_loop_closed_ssa): ... here.
17758 (replace_uses_in_dominated_bbs): Remove function.
17759 (rewrite_virtuals_into_loop_closed_ssa): Reimplement using
17760 rewrite_into_loop_closed_ssa_1.
17762 2015-08-31 Michael Matz <matz@suse.de>
17764 * cfganal.c (pre_and_rev_post_order_compute_fn): Correctly
17765 enter entry and exit blocks for reverse post order.
17767 2015-08-31 Richard Biener <rguenther@suse.de>
17769 * lto-streamer.h (lto_location_cache::cached_location::sysp): Add.
17770 (lto_location_cache::current_sysp): Likewise.
17771 (output_block::current_sysp): Likewise.
17772 * lto-streamer-in.c (lto_location_cache::cmp_loc): Compare sysp.
17773 (lto_location_cache::apply_location_cache): Properly record
17774 system header locations.
17775 (lto_location_cache::input_location): Input whether a file
17776 is a system header.
17777 * lto-streamer-out.c (lto_output_location): Stream whether a file
17778 is a system header.
17780 2015-08-31 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
17783 * gcc.c (env_manager::xput): Replace strndup by xstrndup.
17785 2015-08-31 Tom de Vries <tom@codesourcery.com>
17787 * tree-ssa-loop-manip.c (find_uses_to_rename_use)
17788 (find_uses_to_rename_stmt, find_uses_to_rename_bb, find_uses_to_rename):
17789 Improve function header comments.
17791 2015-08-30 Michael Collison <michael.collison@linaro.org>
17794 * doc.md.texi: Rename [su]sum_widen to widen_[su]sum to reflect correct
17797 2015-08-30 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
17799 * config/rs6000/rs6000.c (swap_web_entry): Enlarge
17800 special_handling bitfield.
17801 (special_handling_values): Add SH_XXPERMDI and SH_CONCAT.
17802 (rtx_is_swappable_p): Add handling for vec_select/vec_concat form
17803 that represents a general xxpermdi.
17804 (insn_is_swappable_p): Add handling for vec_concat of two
17805 doublewords, which maps to a specific xxpermdi.
17806 (adjust_xxpermdi): New function.
17807 (adjust_concat): Likewise.
17808 (handle_special_swappables): Call adjust_xxpermdi and
17810 (dump_swap_insn_table): Handle SH_XXPERMDI and SH_CONCAT.
17812 2015-08-30 Rich Felker <dalias@libc.org>
17814 * config.gcc (supported_defaults): Handle sh[123456ble]*-*-*
17815 case instead of sh[123456ble]-*-*.
17817 2015-08-29 Anatoly Sokolov <aesok@post.ru>
17819 * ira.c (print_unform_and_important_classes,
17820 print_translated_classes): Remove reg_class_names static array.
17821 (print_unform_and_important_classes): Rename to ...
17822 (print_uniform_and_important_classes): ... this.
17823 (ira_debug_allocno_classes): Update accordingly.
17825 2015-08-29 Tom de Vries <tom@codesourcery.com>
17827 PR tree-optimization/46193
17828 * omp-low.c (omp_reduction_init): Handle pointer type for min or max
17831 2015-08-28 Jeff Law <law@redhat.com>
17834 * tree-ssa-threadedge.c (simplify_conrol_stmt_condition): If we are
17835 unable to find X NE 0 in the tables, return X as the simplified
17837 (fsm_find_control_statement_thread_paths): If nodes in NEXT_PATH are
17838 in VISISTED_BBS, then return failure. Else add nodes from NEXT_PATH
17840 * tree-ssa-threadupdate.c (duplicate_thread_path): Fix up edge flags
17841 after removing the control flow statement and unnecessary edges.
17843 2015-08-28 Alan Lawrence <alan.lawrence@arm.com>
17846 2015-08-27 Alan Lawrence <alan.lawrence@arm.com>
17848 PR tree-optimization/67283
17849 * tree-sra.c (type_consists_of_records_p): Rename to...
17850 (scalarizable_type_p): ...this, add case for ARRAY_TYPE.
17852 (completely_scalarize_record): Rename to...
17853 (completely_scalarize): ...this, add ARRAY_TYPE case, move some
17855 (scalarize_elem): New.
17857 2015-08-28 Jiong Wang <jiong.wang@arm.com>
17859 * config/aarch64/aarch64-protos.h (aarch64_symbol_context): Rename
17860 SYMBOL_SMALL_GOTTPREL to SYMBOL_SMALL_TLSIE.
17861 (aarch64_symbol_type): Likewise.
17862 * config/aarch64/aarch64.c (aarch64_load_symref_appropriately):
17864 (aarch64_expand_mov_immediate): Likewise.
17865 (aarch64_print_operand): Likewise.
17866 (aarch64_classify_tls_symbol): Likewise.
17868 2015-08-28 Richard Biener <rguenther@suse.de>
17870 * cgraphunit.c (symbol_table::compile): Move early debug generation
17872 (symbol_table::finalize_compilation_unit): ... back here and
17873 add a !seen_error () guard.
17875 2015-08-27 Sebastian Pop <s.pop@samsung.com>
17877 * toplev.c (process_options): Do not use flag_loop_block,
17878 flag_loop_interchange, and flag_loop_strip_mine. Add check for
17879 flag_loop_optimize_isl.
17881 2015-08-27 Sebastian Pop <s.pop@samsung.com>
17883 * Makefile.in (OBJS): Remove graphite-blocking.o and
17884 graphite-interchange.o.
17885 * common.opt (floop-strip-mine, floop-interchange, floop-block):
17886 Alias of floop-nest-optimize.
17887 * doc/invoke.texi (floop-strip-mine, floop-interchange, floop-block):
17888 Document as alias of -floop-nest-optimize.
17889 * graphite-blocking.c: Remove.
17890 * graphite-interchange.c: Remove.
17891 * graphite-optimize-isl.c: Include dumpfile.h.
17892 (getScheduleForBand): Add dump for tiled loops. Use
17893 PARAM_LOOP_BLOCK_TILE_SIZE instead of hard coded constant.
17894 * graphite-poly.c (scop_max_loop_depth): Remove.
17895 (print_scattering_function_1): Remove.
17896 (print_scattering_function): Remove.
17897 (print_scattering_functions): Remove.
17898 (debug_scattering_function): Remove.
17899 (debug_scattering_functions): Remove.
17900 (apply_poly_transforms): Remove use of flag_loop_block,
17901 flag_loop_strip_mine, and flag_loop_interchange.
17902 (new_poly_bb): Remove use of PBB_TRANSFORMED, PBB_SAVED, and
17904 (print_pdr_access_layout): Remove.
17905 (print_pdr): Print ISL representation.
17906 (new_scop): Remove use of SCOP_ORIGINAL_SCHEDULE,
17907 SCOP_TRANSFORMED_SCHEDULE, and SCOP_SAVED_SCHEDULE.
17909 (openscop_print_pbb_domain): Remove.
17910 (print_pbb): Remove call to print_scattering_function.
17911 (openscop_print_scop_context): Remove.
17912 (print_scop_context): Do not print matrices anymore.
17913 (print_scop): Do not print SCOP_ORIGINAL_SCHEDULE and
17914 SCOP_TRANSFORMED_SCHEDULE.
17915 (print_isl_set): Add printing of a new line.
17916 (print_isl_map): Same.
17917 (print_isl_aff): Same.
17918 (print_isl_constraint): Same.
17919 (loop_to_lst): Remove.
17920 (scop_to_lst): Remove.
17921 (lst_indent_to): Remove.
17922 (print_lst): Remove.
17923 (debug_lst): Remove.
17924 (dot_lst_1): Remove.
17926 (reverse_loop_at_level): Remove.
17927 (reverse_loop_for_pbbs): Remove.
17928 * graphite-poly.h (pdr_dim_iter_domain): Remove.
17929 (pdr_nb_params): Remove.
17930 (pdr_alias_set_dim): Remove.
17931 (pdr_subscript_dim): Remove.
17932 (pdr_iterator_dim): Remove.
17933 (pdr_parameter_dim): Remove.
17934 (same_pdr_p): Remove.
17935 (struct poly_scattering): Remove.
17936 (struct poly_bb): Remove _original, _transformed, _saved.
17937 (PBB_DOMAIN, PBB_ORIGINAL, PBB_ORIGINAL_SCATTERING): Remove.
17938 (PBB_TRANSFORMED, PBB_TRANSFORMED_SCATTERING, PBB_SAVED): Remove.
17939 (PBB_NB_LOCAL_VARIABLES): Remove.
17940 (PBB_NB_SCATTERING_TRANSFORM): Remove.
17941 (schedule_to_scattering): Remove.
17942 (number_of_write_pdrs): Remove.
17943 (pbb_dim_iter_domain): Remove.
17944 (pbb_nb_params): Remove.
17945 (pbb_nb_scattering_orig): Remove.
17946 (pbb_nb_scattering_transform): Remove.
17947 (pbb_nb_dynamic_scattering_transform): Remove.
17948 (pbb_nb_local_vars): Remove.
17949 (pbb_iterator_dim): Remove.
17950 (pbb_parameter_dim): Remove.
17951 (psco_scattering_dim): Remove.
17952 (psct_scattering_dim): Remove.
17953 (psct_local_var_dim): Remove.
17954 (psco_iterator_dim): Remove.
17955 (psct_iterator_dim): Remove.
17956 (psco_parameter_dim): Remove.
17957 (psct_parameter_dim): Remove.
17958 (psct_dynamic_dim): Remove.
17959 (psct_static_dim): Remove.
17960 (psct_add_local_variable): Remove.
17961 (new_lst_loop): Remove.
17962 (new_lst_stmt): Remove.
17963 (free_lst): Remove.
17964 (copy_lst): Remove.
17965 (lst_add_loop_under_loop): Remove.
17966 (lst_depth): Remove.
17967 (lst_dewey_number): Remove.
17968 (lst_dewey_number_at_depth): Remove.
17969 (lst_pred): Remove.
17970 (lst_succ): Remove.
17971 (lst_find_pbb): Remove.
17972 (find_lst_loop): Remove.
17973 (lst_find_first_pbb): Remove.
17974 (lst_empty_p): Remove.
17975 (lst_find_last_pbb): Remove.
17976 (lst_contains_p): Remove.
17977 (lst_contains_pbb): Remove.
17978 (lst_create_nest): Remove.
17979 (lst_remove_from_sequence): Remove.
17980 (lst_remove_loop_and_inline_stmts_in_loop_father): Remove.
17981 (lst_niter_for_loop): Remove.
17982 (pbb_update_scattering): Remove.
17983 (lst_update_scattering_under): Remove.
17984 (lst_update_scattering): Remove.
17985 (lst_insert_in_sequence): Remove.
17986 (lst_replace): Remove.
17987 (lst_substitute_3): Remove.
17988 (lst_distribute_lst): Remove.
17989 (lst_remove_all_before_including_pbb): Remove.
17990 (lst_remove_all_before_excluding_pbb): Remove.
17991 (struct scop): Remove original_schedule, transformed_schedule, and
17993 (SCOP_ORIGINAL_SCHEDULE, SCOP_TRANSFORMED_SCHEDULE): Remove.
17994 (SCOP_SAVED_SCHEDULE): Remove.
17995 (poly_scattering_new): Remove.
17996 (poly_scattering_free): Remove.
17997 (poly_scattering_copy): Remove.
17998 (store_scattering_pbb): Remove.
17999 (store_lst_schedule): Remove.
18000 (restore_lst_schedule): Remove.
18001 (store_scattering): Remove.
18002 (restore_scattering_pbb): Remove.
18003 (restore_scattering): Remove.
18004 * graphite-sese-to-poly.c (build_pbb_scattering_polyhedrons):
18005 Remove scattering_dimensions. Do not use pbb_dim_iter_domain:
18006 compute the scattering polyhedron dimension from the dimension of
18008 (build_scop_scattering): Update call to
18009 build_pbb_scattering_polyhedrons.
18010 (build_poly_scop): Remove call to scop_to_lst.
18011 * graphite.c (graphite_transform_loops): Add call to print_scop.
18012 (gate_graphite_transforms): Remove use of flag_loop_block,
18013 flag_loop_interchange, and flag_loop_strip_mine.
18015 2015-08-27 Sebastian Pop <s.pop@samsung.com>
18017 * common.opt (floop-unroll-and-jam): Make alias of floop-nest-optimize.
18018 * doc/invoke.texi (-floop-unroll-and-jam): Document as alias of
18019 -floop-nest-optimize.
18020 * graphite-isl-ast-to-gimple.c (generate_luj_sepclass_opt): Remove.
18021 (generate_luj_sepclass): Remove.
18022 (generate_luj_options): Remove.
18023 (set_options): Remove opt_luj.
18024 (scop_to_isl_ast): Remove opt_luj.
18025 * graphite-optimize-isl.c (getScheduleForBand): Remove check for
18026 flag_loop_unroll_jam.
18027 (getPrevectorMap_full): Remove.
18028 (getScheduleForBandList): Remove map_sepcl.
18029 (getScheduleMap): Same.
18030 (apply_schedule_map_to_scop): Remove sepcl.
18031 (optimize_isl): Same.
18032 * graphite-poly.c (apply_poly_transforms): Remove check for
18033 flag_loop_unroll_jam.
18034 (new_poly_bb): Remove map_sepclass.
18035 * graphite-poly.h (struct poly_bb): Same.
18036 * graphite.c (gate_graphite_transforms): Remove flag_loop_unroll_jam.
18037 * params.def (PARAM_LOOP_UNROLL_JAM_SIZE)
18038 (PARAM_LOOP_UNROLL_JAM_DEPTH): Remove.
18039 * toplev.c (process_options): Remove flag_loop_unroll_jam.
18041 2015-08-27 Uros Bizjak <ubizjak@gmail.com>
18044 * config/i386/i386.md (*add<mode>3_cc): Remove insn pattern.
18045 (addqi3_cc): Ditto.
18046 (UNSPEC_ADD_CARRY): Remove.
18047 (addqi3_cconly_overflow): New expander.
18048 (*add<dwi>3_doubleword): Split to add<mode>3_cconly_overflow.
18049 Adjust for changed add<mode>3_carry.
18050 (*neg<dwi>2_doubleword): Adjust for changed add<mode>3_carry.
18051 (*sub<dwi>3_doubleword): Adjust for changed sub<mode>3_carry.
18052 (<plusminus_insn><mode>3_carry): Remove expander.
18053 (*<plusminus_insn><mode>3_carry): Split insn pattern to
18054 add<mode>3_carry and sub<mode>3_carry.
18055 (plusminus_carry_mnemonic): Remove code attribute.
18056 (add<mode>3_carry): Canonicalize insn pattern.
18057 (*addsi3_carry_zext): Ditto.
18058 (sub<mode>3_carry): Ditto.
18059 (*subsi3_carry_zext): Ditto.
18060 (adcx<mode>3): Remove insn pattern.
18061 (addcarry<mode>): New insn pattern.
18062 (subborrow<mode>): Ditto.
18063 * config/i386/i386.c (ix86_expand_strlensi_unroll_1): Use
18064 gen_addqi3_cconly_overflow instead of gen_addqi3_cc.
18065 (ix86_expand_builtin) <case IX86_BUILTIN_SBB32,
18066 case IX86_BUILTIN_SBB64, case IX86_BUILTIN_ADDCARRY32,
18067 case IX86_BUILTIN_ADDCARRY64>: Use CODE_FOR_subborrowsi,
18068 CODE_FOR_subborrowdi, CODE_FOR_addcarrysi and CODE_FOR_addcarrydi.
18069 Rewrite expander to not clobber carry flag chains.
18071 2015-08-27 Pat Haugen <pthaugen@us.ibm.com>
18073 * config/rs6000/vector.md (vec_shr_<mode>): Fix to do a shift
18074 instead of a rotate.
18076 2015-08-27 Marek Polacek <polacek@redhat.com>
18078 PR middle-end/67005
18079 * tree-ssa-dce.c (remove_dead_stmt): Also schedule fixup if removing
18080 an entry into an irreducible region.
18082 2015-08-27 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
18084 * configure: Regenerate.
18086 2015-08-27 Alan Lawrence <alan.lawrence@arm.com>
18088 PR tree-optimization/67283
18089 * tree-sra.c (type_consists_of_records_p): Rename to...
18090 (scalarizable_type_p): ...this, add case for ARRAY_TYPE.
18092 (completely_scalarize_record): Rename to...
18093 (completely_scalarize): ...this, add ARRAY_TYPE case, move some code to:
18094 (scalarize_elem): New.
18096 2015-08-27 Alan Lawrence <alan.lawrence@arm.com>
18098 * tree-sra.c (completely_scalarize_var): Rename to...
18099 (create_total_scalarization_access): ... Here. Drop call to
18100 completely_scalarize_record.
18102 (analyze_all_variable_accesses): Replace completely_scalarize_var
18103 with create_total_scalarization_access and completely_scalarize_record.
18105 2015-08-27 Alan Modra <amodra@gmail.com>
18108 * config/rs6000/rs6000.md (ior<mode>_mask): Use constraint "0"
18111 2015-08-27 Richard Biener <rguenther@suse.de>
18113 * passes.c (rest_of_decl_compilation): Guard early_global_decl
18114 call with !seen_error ().
18115 * cgraphunit.c (symbol_table::finalize_compilation_unit): Move
18116 early debug generation and finish...
18117 (symbol_table::compile): ... here to put it after a !seen_error ()
18120 2015-08-27 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
18122 * config.gcc (*-*-solaris2*): Enable default_use_cxa_atexit on
18125 2015-08-27 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
18126 Andre Vieira <andre.simoesdiasvieira@arm.com>
18128 * config/aarch64/aarch64.md (*condjump): Handle functions > 1 MiB.
18129 (*cb<optab><mode>1): Likewise.
18130 (*tb<optab><mode>1): Likewise.
18131 (*cb<optab><mode>1): Likewise.
18132 * config/aarch64/iterators.md (inv_cb): New code attribute.
18133 (inv_tb): Likewise.
18134 * config/aarch64/aarch64.c (aarch64_gen_far_branch): New.
18135 * config/aarch64/aarch64-protos.h (aarch64_gen_far_branch): New.
18137 2015-08-27 Richard Biener <rguenther@suse.de>
18139 * ipa.c (cgraph_build_static_cdtor_1): Set DECL_IGNORED_P.
18141 2015-08-27 Dominik Vogt <vogt@linux.vnet.ibm.com>
18143 * config/s390/s390.c (s390_emit_prologue): Add emit_barrier() after
18146 2015-08-26 Michael Meissner <meissner@linux.vnet.ibm.com>
18148 * config/rs6000/rs6000-protos.h (rs6000_expand_float128_convert):
18151 * config/rs6000/rs6000.c (rs6000_emit_le_vsx_store): Fix a
18153 (rs6000_cannot_change_mode_class): Add support for IEEE 128-bit
18154 floating point in VSX registers.
18155 (rs6000_output_move_128bit): Always print out the set insn if we
18156 can't generate an appropriate 128-bit move.
18157 (rs6000_generate_compare): Add support for IEEE 128-bit floating
18158 point in VSX registers comparisons.
18159 (rs6000_expand_float128_convert): Likewise.
18161 * config/rs6000/predicates.md (int_reg_operand_not_pseudo): New
18162 predicate for only GPR hard registers.
18164 * config/rs6000/rs6000.md (FP): Add IEEE 128-bit floating point
18165 modes to iterators. Add new iterators for moving 128-bit values in
18166 scalar FPR registers and VSX registers.
18167 (FMOVE128): Likewise.
18168 (FMOVE128_FPR): Likewise.
18169 (FMOVE128_GPR): Likewise.
18170 (FMOVE128_VSX): Likewise.
18171 (FLOAT128_SFDFTF): New iterators for IEEE 128-bit floating point
18174 (IBM128): Likewise.
18175 (TFIFKF): Likewise.
18176 (RELOAD): Add IEEE 128-bit floating point modes.
18177 (signbittf2): Convert TF insns to add support for new IEEE 128-bit
18178 floating point in VSX registers modes.
18179 (signbit<mode>2, IBM128 iterator): Likewise.
18180 (mov<mode>_64bit_dm, FMOVE128_FPR iterator): Likewise.
18181 (mov<mode>_32bit, FMOVE128_FPR iterator): Likewise.
18182 (negtf2): Likewise.
18183 (neg<mode>2, TFIFKF iterator): Likewise.
18184 (negtf2_internal): Likewise.
18185 (abstf2): Likewise.
18186 (abs<mode>2, TFIFKF iterator): Likewise.
18187 (ieee_128bit_negative_zero): New IEEE 128-bit floating point in
18188 VSX insn support for negate, absolute value, and negative absolute
18190 (ieee_128bit_vsx_neg<mode>2): Likewise.
18191 (ieee_128bit_vsx_neg<mode>2_internal): Likewise.
18192 (ieee_128bit_vsx_abs<mode>2): Likewise.
18193 (ieee_128bit_vsx_abs<mode>2_internal): Likewise.
18194 (ieee_128bit_vsx_nabs<mode>2): Likewise.
18195 (ieee_128bit_vsx_nabs<mode>2_internal): Likewise.
18196 (FP128_64): Update pack/unpack 128-bit insns for IEEE 128-bit
18197 floating point in VSX registers.
18198 (unpack<mode>_dm): Likewise.
18199 (unpack<mode>_nodm): Likewise.
18200 (pack<mode>): Likewise.
18201 (unpackv1ti): Likewise.
18202 (unpack<mode>, FMOVE128_VSX iterator): Likewise.
18203 (packv1ti): Likewise.
18204 (pack<mode>, FMOVE128_VSX iterator): Likewise.
18205 (extenddftf2): Add support for IEEE 128-bit floating point in VSX
18207 (extenddftf2_internal): Likewise.
18208 (trunctfdf2): Likewise.
18209 (trunctfdf2_internal2): Likewise.
18210 (fix_trunc_helper): Likewise.
18211 (fix_trunctfdi2"): Likewise.
18212 (floatditf2): Likewise.
18213 (floatuns<mode>tf2): Likewise.
18214 (extend<FLOAT128_SFDFTF:mode><IFKF:mode>2): Likewise.
18215 (trunc<IFKF:mode><FLOAT128_SFDFTF:mode>2): Likewise.
18216 (fix_trunc<IFKF:mode><SDI:mode>2): Likewise.
18217 (fixuns_trunc<IFKF:mode><SDI:mode>2): Likewise.
18218 (float<SDI:mode><IFKF:mode>2): Likewise.
18219 (floatuns<SDI:mode><IFKF:mode>2): Likewise.
18221 2015-08-26 Renlin Li <renlin.li@arm.com>
18223 * config/aarch64/aarch64.md (*aarch64_bfi<GPI:mode><ALLX:mode>4): New.
18225 2015-08-26 Marcus Shawcroft <marcus.shawcroft@arm.com>
18226 Jiong Wang <jiong.wang@arm.com>
18228 * config/aarch64/aarch64.md (UNSPEC_GOTTINYTLS): New UNSPEC.
18229 (tlsie_tiny_<mode>): New define_insn.
18230 (tlsie_tiny_sidi): Likewise.
18231 * config/aarch64/aarch64-protos.h (aarch64_symbol_type): Define
18233 (aarch64_symbol_context): New comment for SYMBOL_TINY_TLSIE.
18234 * config/aarch64/aarch64.c (aarch64_load_symref_appropriately): Support
18236 (aarch64_expand_mov_immediate): Likewise.
18237 (aarch64_print_operand): Likewise.
18238 (arch64_classify_tls_symbol): Likewise.
18240 2015-08-26 Matthew Wahab <matthew.wahab@arm.com>
18242 * config/arm/arm-arches.def: Replace single value flags with
18243 an initializer built from ARM_FSET_MAKE_CPU1.
18244 * config/arm/arm-cores.def: Likewise.
18245 * config/arm/arm.c: (all_cores): Remove ARM_FSET_MAKE_CPU1
18246 derivation from the ARM_CORE macro definition, use the given value
18248 (all_architectures): Remove ARM_FSET_MAKE_CPU1 derivation from the
18249 ARM_ARCH macro definition, use the given value instead.
18251 2015-08-26 Matthew Wahab <matthew.wahab@arm.com>
18253 * config/arm/arm-builtins.c (def_mbuiltin): Test all flags in a
18255 (struct builtin_description): Replace field mask with field
18257 (IWMMXT_BUILTIN): Use ARM_FSET macros for feature flags.
18258 (IWMMXT2_BUILTIN): Likewise.
18259 (IWMMXT2_BUILTIN2): Likewise.
18260 (FP_BUILTIN): Likewise.
18261 (CRC32_BUILTIN): Likewise.
18262 (CRYPTO_BUILTIN): Likewise.
18263 (iwmmx_mbuiltin): Likewise.
18264 (iwmmx2_mbuiltin): Likewise.
18265 (arm_init_iwmmxt_builtins): Likewise. Also, update for change to
18266 struct builtin_description.
18268 2015-08-26 Matthew Wahab <matthew.wahab@arm.com>
18270 * config/arm/arm-builtins.c (def_mbuiltin): Use ARM_FSET macro.
18271 (struct builtin_description): Change type of mask to unsigned
18273 * config/arm/arm-protos.h (insn_flags): Declare as type
18275 (tune_flags): Likewise.
18276 * config/arm/arm.c (feature_count): New.
18277 (insn_flags): Define as type arm_feature_set.
18278 (tune_flags): Likewise.
18279 (struct processors): Define field flags as type arm_feature_set.
18280 (all_cores): Update for change to struct processors.
18281 (all_architectures): Likewise.
18282 (arm_option_check_internal): Use arm_feature_set and ARM_FSET
18284 (arm_option_override_internal): Likewise.
18285 (arm_option_override): Likewise.
18287 2015-08-26 Marcus Shawcroft <marcus.shawcroft@arm.com>
18288 Jiong Wang <jiong.wang@arm.com>
18290 * config/aarch64/aarch64.c (initialize_aarch64_tls_size): Set default
18291 tls size for tiny, small, large memory model.
18292 (aarch64_load_symref_appropriately): Support new symbol types.
18293 (aarch64_expand_mov_immediate): Likewise.
18294 (aarch64_print_operand): Likewise.
18295 (aarch64_classify_tls_symbol): Likewise.
18296 * config/aarch64/aarch64-protos.h (aarch64_symbol_context): Likewise.
18297 (aarch64_symbol_type): Likewise.
18298 * config/aarch64/aarch64.md (tlsle): Deleted.
18299 (tlsle12_<mode>): New define_insn.
18300 (tlsle24_<mode>): Likewise.
18301 (tlsle32_<mode>): Likewise.
18302 (tlsle48_<mode>): Likewise.
18303 * doc/sourcebuild.texi (AArch64-specific attributes): Document
18306 2015-08-26 Matthew Wahab <matthew.wahab@arm.com>
18308 * config/arm/arm-protos.h (FL_NONE): New.
18310 (arm_feature_set): New.
18311 (ARM_FSET_MAKE): New.
18312 (ARM_FSET_MAKE_CPU1): New.
18313 (ARM_FSET_MAKE_CPU2): New.
18314 (ARM_FSET_CPU1): New.
18315 (ARM_FSET_CPU2): New.
18316 (ARM_FSET_EMPTY): New.
18317 (ARM_FSET_ANY): New.
18318 (ARM_FSET_HAS_CPU1): New.
18319 (ARM_FSET_HAS_CPU2): New.
18320 (ARM_FSET_HAS_CPU): New.
18321 (ARM_FSET_ADD_CPU1): New.
18322 (ARM_FSET_ADD_CPU2): New.
18323 (ARM_FSET_DEL_CPU1): New.
18324 (ARM_FSET_DEL_CPU2): New.
18325 (ARM_FSET_UNION): New.
18326 (ARM_FSET_INTER): New.
18327 (ARM_FSET_XOR): New.
18328 (ARM_FSET_EXCLUDE): New.
18329 (AFM_FSET_IS_EMPTY): New.
18330 (ARM_FSET_CPU_SUBSET): New.
18332 2015-08-26 Jiong Wang <jiong.wang@arm.com>
18334 * config/aarch64/aarch64-protos.h (aarch64_symbol_type): Rename
18335 SYMBOL_TLSLE to SYMBOL_TLSLE24.
18336 * config/aarch64/aarch64.c (aarch64_load_symref_appropriately):
18338 (aarch64_expand_mov_immediate): Likewise.
18339 (aarch64_print_operand): Likewise.
18340 (aarch64_classify_symbol): Likewise.
18342 2015-08-26 Jiong Wang <jiong.wang@arm.com>
18344 * config/aarch64/aarch64.opt (mtls-size): New entry.
18345 * config/aarch64/aarch64.c (initialize_aarch64_tls_size): New function.
18346 (aarch64_override_options_internal): Call initialize_aarch64_tls_size.
18347 * doc/invoke.texi (AArch64 Options): Document -mtls-size.
18349 2015-08-26 Matthew Wahab <matthew.wahab@arm.com>
18351 * config/arm/arm-cores.def: Add FL_FOR_ARCH flag for each
18352 ARM_CORE entry. Fix some white-space.
18353 * config/arm/arm.c: Remove FL_FOR_ARCH derivation from
18354 ARM_CORE definition.
18356 2015-08-26 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
18358 * fold-const.c (fold_binary_loc) : Move Optimize
18359 root(x)*root(y) as root(x*y) to match.pd.
18360 Move Optimize expN(x)*expN(y) as expN(x+y) to match.pd.
18361 Move Optimize pow(x,y)*pow(x,z) as pow(x,y+z) to match.pd.
18362 Move Optimize a/root(b/c) into a*root(c/b) to match.pd.
18363 Move Optimize x/expN(y) into x*expN(-y) to match.pd.
18364 * match.pd (mult (root:s @0) (root:s @1)): New simplifier.
18365 (mult (POW:s @0 @1) (POW:s @0 @2)) : New simplifier.
18366 (mult (exps:s @0) (exps:s @1)) : New simplifier.
18367 (rdiv @0 (root:s (rdiv:s @1 @2))) : New simplifier.
18368 (rdiv @0 (exps:s @1)) : New simplifier.
18370 2015-08-25 Joseph Myers <joseph@codesourcery.com>
18372 * gcc.c (driver::finalize): Only assign to extra_specs if
18375 2015-08-25 Marek Polacek <polacek@redhat.com>
18377 PR middle-end/67330
18378 * varasm.c (declare_weak): Return after giving an error.
18380 2015-08-25 David Malcolm <dmalcolm@redhat.com>
18382 * gcc-main.c (main): Add params to driver ctor.
18383 * gcc.c (class env_manager): New.
18385 (env_manager::init): New.
18386 (env_manager::get): New.
18387 (env_manager::xput): New.
18388 (env_manager::restore): New.
18389 Poison getenv and putenv.
18390 (DEFAULT_TARGET_SYSTEM_ROOT): New.
18391 (target_system_root): Update initialization to use
18392 DEFAULT_TARGET_SYSTEM_ROOT.
18393 (struct spec_list): Add field "default_ptr".
18394 (INIT_STATIC_SPEC): Initialize new field "default_ptr".
18395 (init_spec): Likewise.
18396 (set_spec): Clear field "default_ptr".
18397 (read_specs): Free "spec" and "buffer".
18398 (xputenv): Reimplement in terms of env_manager.
18399 (process_command): Replace ::getenv calls with calls to the
18400 env_manager singleton.
18401 (process_brace_body): Free string in three places.
18402 (driver::driver): New.
18403 (driver::~driver): New.
18404 (used_arg): Convert from a function to...
18405 (class used_arg_t): ...this class, and...
18406 (used_arg): ...this new global instance.
18407 (used_arg_t::finalize): New function.
18408 (getenv_spec_function): Add "const" to local "value". Replace
18409 ::getenv call with call to the env_manager singleton.
18410 (path_prefix_reset): New function.
18411 (driver::finalize): New function.
18412 * gcc.h (driver::driver): New.
18413 (driver::~driver): New.
18414 (driver::finalize): New.
18416 2015-08-25 Nathan Sidwell <nathan@acm.org>
18418 * optabs.c (emit_indirect_jump): Don't try an emit a jump if the
18419 target doesn't have one.
18421 2015-08-25 Segher Boessenkool <segher@kernel.crashing.org>
18424 * config/rs6000/rs6000.md (*ior<mode>_mask): Use a match_scratch.
18426 2015-08-25 Segher Boessenkool <segher@kernel.crashing.org>
18429 * config/rs6000/rs6000.md (*and<mode>3_imm_dot_shifted): Change to
18430 a define_insn, remove second alternative.
18432 2015-08-25 Thomas Schwinge <thomas@codesourcery.com>
18433 Joseph Myers <joseph@codesourcery.com>
18435 * gcc.c (struct switchstr): Expand comment.
18437 2015-08-25 Nathan Sidwell <nathan@acm.org>
18439 * config/nvptx/nvptx.c (nvptx_write_function_decl): Reformat.
18440 (nvptx_reorg_subreg): Pass insn pattern to asm_operands.
18442 2015-08-25 Richard Biener <rguenther@suse.de>
18444 PR middle-end/67306
18445 * genmatch.c (expr::gen_transform): Verify the result of
18446 builtin_decl_implicit.
18447 (dt_simplify::gen_1): Likewise.
18449 2015-08-25 Thomas Preud'homme <thomas.preudhomme@arm.com>
18451 * config/arm/constraints.md: Also list Cs and US ARM-specific
18452 constraints as used.
18454 2015-08-24 Kaz Kojima <kkojima@gcc.gnu.org>
18457 * config/sh/sh.c (sh_asm_output_addr_const_extra): Handle
18459 (nonpic_symbol_mentioned_p): Likewise.
18460 (sh_delegitimize_address): Likewise.
18461 (sh_function_ok_for_sibcall): Take into account weak symbols.
18462 (sh_expand_sym_label2reg): New.
18463 * config/sh/sh-protos.h (sh_expand_sym_label2reg): Declare.
18464 * config/sh/sh.md (UNSPEC_PCREL): New enum.
18465 (call_pcrel): Use sh_expand_sym_label2reg.
18466 (call_value_pcrel, sibcall_pcrel, sibcall_value_pcrel): Likewise.
18467 (symPCREL_label2reg) New expand.
18469 2015-08-24 Aditya Kumar <aditya.k7@samsung.com>
18471 * graphite-poly.c: Change type of region from void* to sese.
18472 * graphite-poly.h (struct scop): Changing the type of scop::region
18473 from void* to sese. Change accessor macro accordingly.
18474 * graphite-sese-to-poly.c (extract_affine_chrec): Use accessor macro.
18476 2015-08-24 Aditya Kumar <aditya.k7@samsung.com>
18478 * graphite-scop-detection.c (stmt_simple_for_scop_p):
18479 Constrain only on INTEGER_TYPE.
18481 2015-08-24 Michael Meissner <meissner@linux.vnet.ibm.com>
18484 * config/rs6000/rs6000-cpus.def (ISA_2_7_MASKS_SERVER): Set
18485 -mefficient-unaligned-vsx on ISA 2.7.
18487 * config/rs6000/rs6000.opt (-mefficient-unaligned-vsx): Convert
18488 option to a masked option.
18490 * config/rs6000/rs6000.c (rs6000_option_override_internal): Rework
18491 logic for -mefficient-unaligned-vsx so that it is set via an arch
18492 ISA option, instead of being set if -mtune=power8 is set. Move
18493 -mefficient-unaligned-vsx and -mallow-movmisalign handling to be
18494 near other default option handling.
18496 2015-08-24 Richard Sandiford <richard.sandiford@arm.com>
18498 * genflags.c (gen_macro): Delete.
18499 (gen_proto): Don't create GEN.*CALL.* macros.
18500 * gensupport.h (get_file_location): Declare.
18501 * gensupport.c (rtx_locs): New variable.
18502 (read_md_rtx): Record rtx locations.
18503 (get_file_location): New function.
18504 * target-insns.def (call, call_pop, call_value, call_value_pop)
18505 (sibcall, sibcall_value): New patterns.
18506 * gentarget-def.c (parse_argument): New function.
18507 (def_target_insn): Use it. Handle optional operands. Raise an
18508 error if an .md pattern has the wrong number of operands for the
18509 pattern name. Remove the names of unused operands from the prototype.
18510 * builtins.c (expand_builtin_apply): Use targetm functions
18511 instead of HAVE_call_value and GEN_CALL_VALUE.
18512 * calls.c (emit_call_1): Likewise. Remove support for sibcall_pop
18513 and sibcall_value_pop.
18514 * config/aarch64/aarch64.md (untyped_call): Use gen_call instead
18516 * config/alpha/alpha.md (untyped_call): Likewise.
18517 * config/iq2000/iq2000.md (untyped_call): Likewise.
18518 * config/m68k/m68k.md (untyped_call): Likewise.
18519 * config/mips/mips.md (untyped_call): Likewise.
18520 * config/pa/pa.md (untyped_call): Likewise.
18521 * config/rs6000/rs6000.md (untyped_call): Likewise.
18522 * config/sparc/sparc.md (untyped_call): Likewise.
18523 * config/tilegx/tilegx.md (untyped_call): Likewise.
18524 * config/tilepro/tilepro.md (untyped_call): Likewise.
18525 * config/visium/visium.md (untyped_call): Likewise.
18526 * config/alpha/alpha.c (alpha_emit_xfloating_libcall): Use
18527 gen_call_value instead of GEN_CALL_VALUE.
18528 * config/arm/arm.md (untyped_call): Likewise.
18529 * config/cr16/cr16.c (cr16_function_arg): Remove reference to
18532 2015-08-24 Richard Sandiford <richard.sandiford@arm.com>
18534 * ifcvt.c (HAVE_incscc, HAVE_decscc, HAVE_cbranchcc4): Delete.
18535 (have_cbranchcc4): New variable.
18536 (cc_in_cond, noce_emit_cmove, noce_get_alt_condition)
18537 (noce_get_condition): Use it instead of HAVE_cbranchcc4.
18538 (if_convert): Initialize have_cbranchcc4.
18540 2015-08-24 Richard Sandiford <richard.sandiford@arm.com>
18542 * builtins.c (expand_cmpstrn): Rename to...
18543 (expand_cmpstrn_or_cmpmem): ...this.
18544 (expand_builtin_strcmp, expand_builtin_strncmp): Update accordingly.
18545 (expand_builtin_memcmp): Use optabs instead of HAVE_cmpmem/gen_cmpmem.
18546 Remove mode argument.
18547 (expand_builtin): Update accordingly.
18549 2015-08-24 Richard Sandiford <richard.sandiford@arm.com>
18551 * builtins.c (expand_cmpstr, expand_cmpstrn): New functions.
18552 (expand_builtin_strcmp, expand_builtin_strncmp): Use them. Remove
18553 references to HAVE_cmpstr{,n}si and CODE_FOR_cmpstr{,n}si.
18554 * config/m32c/blkmov.md (cmpstrsi): Fix predicates of operands 1 and 2.
18555 Add predicates for operands 0 and 3.
18556 * config/rx/rx.md (cmpstrnsi): Remove force_operand for the length
18558 * config/sh/sh.md (cmpstrnsi): Change the length predicate from
18559 immediate_operand to nonmemory_operand.
18561 2015-08-24 Richard Sandiford <richard.sandiford@arm.com>
18563 * df-scan.c (df_insn_info_init_fields): New function, split out
18565 (df_insn_create_insn_record): ...here.
18566 (df_insn_info_free_fields): New function, split out from...
18567 (df_insn_info_delete): ...here.
18568 (df_insn_rescan): Use the new functions instead of freeing and
18569 reallocating the df_insn_info.
18571 2015-08-24 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
18573 * doc/install.texi (Binaries): Remove links no longer valid.
18575 2015-08-24 Nathan Sidwell <nathan@codesourcery.com>
18577 * config/nvptx/mkoffload.c (process): Replace
18578 GOMP_offload_{,un}register with GOMP_offload_{,un}register_ver.
18580 2015-08-24 H.J. Lu <hongjiu.lu@intel.com>
18583 * config/i386/i386.c (iamcu_cost): Set MOVE_RATIO cost to 9.
18585 2015-08-24 Renlin Li <renlin.li@arm.com>
18587 * config/arm/arm-protos.h (arm_valid_symbolic_address_p): Declare.
18588 * config/arm/arm.c (arm_valid_symbolic_address_p): Define.
18589 * config/arm/arm.md (arm_movt): Use arm_valid_symbolic_address_p.
18590 * config/arm/constraints.md ("j"): Add check for high code.
18592 2015-08-24 Tom de Vries <tom@codesourcery.com>
18594 PR tree-optimization/65468
18595 * omp-low.c (expand_omp_for_static_chunk): Remove inner loop if
18598 2015-08-24 Nathan Sidwell <nathan@acm.org>
18600 * config/nvptx/nvptx.c (walk_args_for_param): Revert previous
18601 change to nvptx_type_from_mode call. Use arg_promotion for both
18602 split and non-split args.
18604 2015-08-24 Richard Sandiford <richard.sandiford@arm.com>
18606 * target-insns.def (movstr): New pattern.
18607 * builtins.c (HAVE_movstr, CODE_FOR_movstr): Delete.
18608 (expand_movstr): Use targetm rather than HAVE_movstr/
18611 2015-08-24 Richard Sandiford <richard.sandiford@arm.com>
18613 * config/microblaze/microblaze.c (microblaze_classify_unspec): Fix
18616 2015-08-24 Andrew Pinski <apinski@cavium.com>
18618 * config/aarch64/aarch64-tuning-flags.def: Remove all index to
18619 AARCH64_EXTRA_TUNING_OPTION.
18620 * config/aarch64/aarch64-protos.h (aarch64_extra_tuning_flags_index):
18622 (aarch64_extra_tuning_flags): Base the shifted value on the index
18623 instead of the argument to AARCH64_EXTRA_TUNING_OPTION.
18624 * config/aarch64/aarch64.c: Remove the last argument to
18625 AARCH64_EXTRA_TUNING_OPTION.
18627 2015-08-23 Nathan Sidwell <nathan@acm.org>
18629 * config/nvptx/nvptx.c (walk_args_for_param): Promote arg reg
18631 (nvptx_declare_function_name): Insert formatting tabs for
18634 2015-08-23 Tom de Vries <tom@codesourcery.com>
18636 * omp-low.c (expand_omp_taskreg): If in ssa, set rhs of parcopy stmt to
18637 parm_decl, rather than generating a dummy default def in cfun.
18638 * tree-cfg.c (replace_ssa_name): Assume no default defs. Make sure
18639 ssa_name from cfun and child_fn do not share a stmt as def stmt.
18640 (move_stmt_op): Handle PARM_DECl.
18641 (gather_ssa_name_hash_map_from): New function.
18642 (move_sese_region_to_fn): Add default defs for function params, and add
18643 them to vars_map. Release copied ssa names.
18644 * tree-cfg.h (gather_ssa_name_hash_map_from): Declare.
18646 2015-08-23 Tom de Vries <tom@codesourcery.com>
18648 * doc/sourcebuild.texi: Rename vect_no_int_max with
18649 vect_no_int_min_max. Update description.
18651 2015-08-22 Andrew Pinski <apinski@cavium.com>
18653 * aarch64-fusion-pairs.def: Remove all index to AARCH64_FUSION_PAIR.
18654 * config/aarch64/aarch64-protos.h
18655 (aarch64_fusion_pairs_index): New enum.
18656 (aarch64_fusion_pairs): Base the shifted value on the index instead
18657 Rewrite AARCH64_FUSE_ALL to be based on the end index.
18658 of the argument to AARCH64_FUSION_PAIR.
18659 * config/aarch64/aarch64.c: Remove the last argument to
18660 AARCH64_FUSION_PAIR.
18662 2015-08-22 Mikhail Maltsev <maltsevm@gmail.com>
18664 * dominance.c (new_zero_array): Define.
18665 (dom_info): Redefine as class with proper encapsulation.
18666 (dom_info::m_n_basic_blocks, m_reverse, m_start_block, m_end_block):
18668 (dom_info::dom_info, ~dom_info): Define. Use new/delete for memory
18669 allocations/deallocations. Pass function as parameter (instead of
18671 (dom_info::get_idom): Define accessor method.
18672 (dom_info::calc_dfs_tree_nonrec, calc_dfs_tree, compress, eval,
18673 link_roots, calc_idoms): Redefine as class members. Do not use cfun.
18674 (calculate_dominance_info): Adjust to use dom_info class.
18675 (verify_dominators): Likewise.
18677 2015-08-21 Alexandre Oliva <aoliva@redhat.com>
18679 * print-rtl.c (print_rtx): Check the correct range for
18680 flag_dump_unnumbered_links to behave as documented.
18682 PR rtl-optimization/67227
18683 PR rtl-optimization/64164
18684 * alias.c (memrefs_conflict_p): Handle VALUEs in PLUS better.
18685 (nonoverlapping_memrefs_p): Test offsets and sizes when given
18686 identical gimple_reg exprs.
18688 2015-08-21 Nathan Sidwell <nathan@acm.org>
18690 * config/nvptx/nvptx.md (allocate_stack): Emit sorry during
18692 * config/nvptx/nvptx.c (nvptx_declare_function_name): Look at
18693 crtl->stack_alignment_needed to determine alignment.
18694 (nvptx_get_drap_rtx): New.
18695 (TARGET_GET_DRAP_RTX): Override.
18696 * config/nvptx/nvptx.h (MAX_STACK_ALIGNMENT): Set.
18698 2015-08-21 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
18700 * config.build: Remove case for m68000-hp-hpux* | m68k-hp-hpux*.
18702 2015-08-21 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
18704 * configure.ac: Remove uwin* cases.
18705 * config.build: Remove cases for i370-*-opened*, i370-*-mvs*,
18706 i[34567]86-*-sco3.2v5*, i[34567]86-sequent-ptx4*,
18707 i[34567]86-sequent-sysv4*, i[34567]86-*-sysv4*,
18708 i[34567]86-*-udk*, i[34567]86-*-uwin*, i386-*-vsta.
18709 * config.host: Remove cases for i370-*-opened*, i370-*-mvs*,
18710 i[34567]86-*-uwin*, powerpc-*-beos*.
18712 2015-08-21 Richard Sandiford <richard.sandiford@arm.com>
18714 * gencodes.c (gencodes): Print the comma for the preceding
18715 enum value rather than the current one. Use aliased enum values
18716 rather than #defines for compiled-out patterns.
18717 (main): Update accordingly. Replace LAST_INSN_CODE with
18719 * lra.c (insn_code_data): Update accordingly.
18720 (finish_insn_code_data_once, get_static_insn_data): Likewise.
18721 * recog.h (target_recog): Likewise.
18722 (preprocess_insn_constraints): Change parameter to unsigned int.
18723 * recog.c (preprocess_insn_constraints): Likewise.
18724 (recog_init): Replace LAST_INSN_CODE with NUM_INSN_CODES.
18725 * tree-vect-stmts.c (vectorizable_operation): Simplify.
18727 2015-08-21 Markus Trippelsdorf <markus@trippelsdorf.de>
18729 PR rtl-optimization/61657
18730 * loop-iv.c (iv_number_of_iterations): Declare up and down as
18731 unsigned. Remove superflous uint64_t cast.
18733 2014-08-21 Felix Yang <felix.yang@huawei.com>
18734 Jiji Jiang <jiangjiji@huawei.com>
18736 * value-prof.c (interesting_stringop_to_profile_p): Removed FNDECL
18737 argument and get builtin function code directly from CALL.
18738 (gimple_stringop_fixed_value): Modified accordingly.
18739 (gimple_stringops_transform, gimple_stringops_values_to_profile):
18740 Modified accordingly and only accept BUILT_IN_NORMAL string operations.
18742 2015-08-21 Dominik Vogt <vogt@linux.vnet.ibm.com>
18744 * config/s390/s390-builtins.def: Fix value range of vec_load_bndry.
18746 2015-08-21 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
18748 * fold-const.c (fold_binary_loc) : Move sqrt(x)*sqrt(x) as x
18750 Move Optimize pow(x,y)*pow(z,y) as pow(x*z,y)to match.pd.
18751 Move Optimize tan(x)*cos(x) as sin(x) to match.pd.
18752 Move Optimize x*pow(x,c) as pow(x,c+1) to match.pd.
18753 Move Optimize pow(x,c)*x as pow(x,c+1) to match.pd.
18754 Move Optimize sin(x)/cos(x) as tan(x) to match.pd.
18755 Move Optimize cos(x)/sin(x) as 1.0/tan(x) to match.pd.
18756 Move Optimize sin(x)/tan(x) as cos(x) to match.pd.
18757 Move Optimize tan(x)/sin(x) as 1.0/cos(x) to match.pd.
18758 Move Optimize pow(x,c)/x as pow(x,c-1) to match.pd.
18759 Move Optimize x/pow(y,z) into x*pow(y,-z) to match.pd.
18761 * match.pd (SIN ) : New Operator.
18762 (TAN) : New Operator.
18763 (mult (SQRT@1 @0) @1) : New simplifier.
18764 (mult (POW:s @0 @1) (POW:s @2 @1)) : New simplifier.
18765 (mult:c (TAN:s @0) (COS:s @0)) : New simplifier.
18766 (mult:c (TAN:s @0) (COS:s @0)) : New simplifier.
18767 (rdiv (SIN:s @0) (COS:s @0)) : New simplifier.
18768 (rdiv (COS:s @0) (SIN:s @0)) : New simplifier.
18769 (rdiv (SIN:s @0) (TAN:s @0)) : New simplifier.
18770 (rdiv (TAN:s @0) (SIN:s @0)) : New simplifier.
18771 (rdiv (POW:s @0 REAL_CST@1) @0) : New simplifier.
18772 (rdiv @0 (SQRT:s (rdiv:s @1 @2))) : New simplifier.
18773 (rdiv @0 (POW:s @1 @2)) : New simplifier.
18775 2015-08-21 Bin Cheng <bin.cheng@arm.com>
18777 * tree-ssa-loop-niter.c (simplify_using_initial_conditions): Break
18778 loop if EXPR is simplified to const value.
18780 2015-08-21 Yury Gribov <y.gribov@samsung.com>
18782 * sanitizer.def (BUILT_IN_UBSAN_HANDLE_NONNULL_ARG,
18783 BUILT_IN_UBSAN_HANDLE_NONNULL_ARG): Fix builtin types.
18785 2015-08-21 Richard Biener <rguenther@suse.de>
18787 PR middle-end/67285
18788 * gimple-fold.c (replace_stmt_with_simplification): Assert
18789 seq is empty when replacing a call with itself but different
18791 * gimple-match-head.c (maybe_push_res_to_seq): When pushing
18792 a call require that it is const.
18794 2015-08-20 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
18796 * defaults.h (CONSTANT_ALIGNMENT): New macro definition.
18797 * builtins.c (get_object_alignment_2): Adjust.
18798 * varasm.c (align_variable): Likewise.
18799 (get_variable_align): Likewise.
18800 (build_constant_desc): Likewise.
18801 (force_const_mem): Likewise.
18802 * doc/tm.texi.in: Likewise.
18803 * doc/tm.texi: Regenerate.
18805 2015-08-20 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
18807 * genconfig.c (main): Always define HAVE_cc0.
18808 * recog.c (rest_of_handle_peephole2): Adjust.
18810 2015-08-20 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
18812 * reorg.c (relax_delay_slots): Don't use #if to check value of
18815 2015-08-20 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
18817 * genconfig.c (main): Always define HAVE_CONDITIONAL_EXECUTION.
18818 * targhooks.c (default_have_conditional_execution): Adjust.
18820 2015-08-20 Richard Sandiford <richard.sandiford@arm.com>
18822 * rtl.h (rtvec_all_equal_p): Declare.
18823 (const_vec_duplicate_p, unwrap_const_vec_duplicate): New functions.
18824 * rtl.c (rtvec_all_equal_p): New function.
18825 * expmed.c (expand_mult): Use unwrap_const_vec_duplicate.
18826 * config/aarch64/aarch64.c (aarch64_vect_float_const_representable_p)
18827 (aarch64_simd_dup_constant): Use const_vec_duplicate_p.
18828 * config/arm/arm.c (neon_vdup_constant): Likewise.
18829 * config/s390/s390.c (s390_contiguous_bitmask_vector_p): Likewise.
18830 * config/tilegx/constraints.md (W, Y): Likewise.
18831 * config/tilepro/constraints.md (W, Y): Likewise.
18832 * config/spu/spu.c (spu_legitimate_constant_p): Likewise.
18833 (classify_immediate): Use unwrap_const_vec_duplicate.
18834 * config/tilepro/predicates.md (reg_or_v4s8bit_operand): Likewise.
18835 (reg_or_v2s8bit_operand): Likewise.
18836 * config/tilegx/predicates.md (reg_or_v8s8bit_operand): Likewise.
18837 (reg_or_v4s8bit_operand): Likewise.
18839 2015-08-20 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
18841 * config/rs6000/altivec.h (vec_pmsum_be): New #define.
18842 (vec_shasigma_be): New #define.
18843 * config/rs6000/rs6000-builtin.def (VPMSUMB): New BU_P8V_AV2_2.
18844 (VPMSUMH): Likewise.
18845 (VPMSUMW): Likewise.
18846 (VPMSUMD): Likewise.
18847 (VPMSUM): New BU_P8V_OVERLOAD_2.
18848 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): New
18849 entries for VEC_MADD and VEC_VPMSUM.
18851 2015-08-20 Georg-Johann Lay <avr@gjlay.de>
18853 * config/avr/avr.c (avr_insert_attributes): In diagnostic essage:
18854 Multiply argument avr_n_flash by 64 to match unit of "KiB".
18855 (avr_pgm_check_var_decl): Same.
18857 2015-08-20 Alan Lawrence <alan.lawrence@arm.com>
18859 * config/arm/arm-builtins.c (arm_init_simd_builtin_types): Move
18860 initialization of HFmode scalar type (float16_t) to...
18861 (arm_init_fp16_builtins): ... Here. Combine with __fp16 initialization
18864 (arm_init_builtins): Call arm_init_fp16_builtins earlier and always.
18866 * config/arm/arm_neon.h (vcvt_f16_f32, vcvt_f32_f16): Condition on
18867 having an -mfp16-format.
18869 2015-08-20 Richard Sandiford <richard.sandiford@arm.com>
18871 * config/i386/predicates.md (vector_all_ones_operand): Use
18872 CONSTM1_RTX to simplify definition.
18874 2015-08-20 Richard Biener <rguenther@suse.de>
18876 * toplev.c (compile_file): Remove loop calling late_global_decl
18878 * varpool.c (varpool_node::assemble_decl): Call late_global_decl
18879 on decls we assembled.
18881 2015-08-20 James Greenhalgh <james.greenhalgh@arm.com>
18883 * common/config/aarch64/aarch64-common.c
18884 (AARCH64_CPU_NAME_LENGTH): Delete.
18885 (aarch64_option_extension): New.
18886 (all_extensions): Likewise.
18887 (processor_name_to_arch): Likewise.
18888 (arch_to_arch_name): Likewise.
18890 (all_architectures): Likewise.
18891 (aarch64_get_extension_string_for_isa_flags): Likewise.
18892 (aarch64_rewrite_selected_cpu): Change to rewrite CPU names to
18893 architecture names.
18894 * config/aarch64/aarch64-protos.h
18895 (aarch64_get_extension_string_for_isa_flags): New.
18896 * config/aarch64/aarch64.c (aarch64_print_extension): Delete.
18897 (aarch64_option_print): Get the string to print from
18898 aarch64_get_extension_string_for_isa_flags.
18899 (aarch64_declare_function_name): Likewise.
18900 * config/aarch64/aarch64.h (BIG_LITTLE_SPEC): Rename to...
18901 (MCPU_TO_MARCH_SPEC): This.
18902 (ASM_CPU_SPEC): Use it.
18903 (BIG_LITTLE_SPEC_FUNCTIONS): Rename to...
18904 (MCPU_TO_MARCH_SPEC_FUNCTIONS): ...This.
18905 (EXTRA_SPEC_FUNCTIONS): Use it.
18907 2015-08-20 Simon Dardis <simon.dardis@imgtec.com>
18909 * config/mips/mips.c (mips_expand_block_move): Enable inline memcpy
18910 expansion when !ISA_HAS_LWL_LWR.
18911 (mips_block_move_straight): Update the size of elements copied to
18912 account for alignment when !ISA_HAS_LWL_LWR.
18913 * config/mips/mips.h (MIPS_MIN_MOVE_MEM_ALIGN): New macro.
18915 2015-08-19 Jiong Wang <jiong.wang@arm.com>
18917 * expr.c (expand_expr_real_2): Check gimple statement during
18918 LSHIFT_EXPR expand.
18920 2015-08-19 Magnus Granberg <zorry@gentoo.org>
18922 * common.opt (fstack-protector): Initialize to -1.
18923 (fstack-protector-all): Likewise.
18924 (fstack-protector-strong): Likewise.
18925 (fstack-protector-explicit): Likewise.
18926 * configure.ac: Add --enable-default-ssp.
18927 * defaults.h (DEFAULT_FLAG_SSP): New. Default SSP to strong.
18928 * opts.c (finish_options): Update opts->x_flag_stack_protect if it is
18930 * doc/install.texi: Document --enable-default-ssp.
18931 * config.in: Regenerated.
18932 * configure: Likewise.
18934 2015-08-19 Alexandre Oliva <aoliva@redhat.com>
18936 PR rtl-optimization/64164
18937 * cfgexpand.c (parm_maybe_byref_p): Renamed to...
18938 (parm_in_stack_slot_p): ... this. Disregard mode, what
18939 matters is whether the parm will live in a pseudo or a stack
18941 (expand_one_ssa_partition): Deal with params without a default
18942 def. Disregard mode.
18943 * cfgexpand.h: Renamed function declaration.
18944 * tree-ssa-coalesce.c: Adjust.
18945 * function.c (split_complex_args): Allocate stack slot for
18946 unassigned parms before splitting.
18947 (parm_in_unassigned_mem_p): New. Use it instead of
18948 parm_maybe_byref_p throughout this file.
18949 (assign_parm_setup_block): Use it. Accept pseudos in the
18950 expand-assigned rtl.
18951 (assign_parm_setup_reg): Drop BLKmode requirement.
18952 (assign_parm_setup_stack): Allocate and fill in the address of
18953 unassigned MEM parms.
18955 2015-08-19 David Sherwood <david.sherwood@arm.com>
18957 * genmodes.c (emit_mode_unit_size_inline): New function.
18958 (emit_mode_unit_precision_inline): New function.
18959 (emit_insn_modes_h): Emit new #define. Emit new functions.
18960 (emit_mode_unit_size): New function.
18961 (emit_mode_unit_precision): New function.
18962 (emit_mode_adjustments): Add mode_unit_size adjustments.
18963 (emit_insn_modes_c): Emit new arrays.
18964 * machmode.h (GET_MODE_UNIT_SIZE, GET_MODE_UNIT_PRECISION): Update to
18965 use new inline methods.
18967 2015-08-19 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
18969 * config/aarch64/aarch64.c (bit_count): Delete prototype
18971 (aarch64_print_operand): Use popcount_hwi instead of the above.
18973 2015-08-19 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
18975 * config/aarch64/aarch64-option-extensions.def: Delete obsolete
18978 2015-08-19 Marek Polacek <polacek@redhat.com>
18980 PR middle-end/67133
18981 * gimple-ssa-isolate-paths.c
18982 (insert_trap_and_remove_trailing_statements): Rename to ...
18983 (insert_trap): ... this. Don't remove trailing statements; split
18985 (find_explicit_erroneous_behaviour): Don't remove all outgoing edges.
18987 2015-08-19 Mikael Morin <mikael@gcc.gnu.org>
18990 * hwint.h (sext_hwi): Switch to unsigned for the left shift, and
18991 conditionalize the whole on __GNUC__. Add fallback code
18992 depending neither on undefined nor implementation-defined behaviour.
18994 2015-08-19 Jiong Wang <jiong.wang@arm.com>
18996 * config/aarch64/aarch64.c (aarch64_load_symref_appropriately): Replace
18997 whitespaces with tab.
18999 2015-08-19 Florian Weimer <fweimer@redhat.com>
19001 * prj.adb (For_Every_Project_Imported_Context.Recursive_Check_Context):
19002 Move Name_Id_Set instantiation to the Prj package, to avoid trampolines.
19003 * prj-proc.adb (Process.Process_Expression_Variable_Decl):
19004 Move Name_Ids instantiation to the Prj.Proc package, to avoid
19007 2015-08-19 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
19009 * config/arm/arm.c (bounds_check): Use %wd print format
19010 for HOST_WIDE_INT arguments.
19012 2015-08-18 Trevor Saunders <tbsaunde@tbsaunde.org>
19014 * bb-reorder.c, cfgloop.h, collect2.c, combine.c, dse.c,
19015 dwarf2cfi.c, gcse-common.h, genopinit.c, ggc-page.c, machmode.h,
19016 mcf.c, modulo-sched.c, omp-low.c, read-rtl.c, sched-rgn.c,
19017 signop.h, tree-call-cdce.c, tree-dfa.c, tree-diagnostic.c,
19018 tree-inline.h, tree-scalar-evolution.c, tree-ssa-address.c,
19019 tree-ssa-loop-niter.c, tree-ssa-loop.h, tree-ssa-pre.c,
19020 tree-ssa-reassoc.c, tree-ssa-sccvn.h, tree-ssa-structalias.c,
19021 tree-ssa-uninit.c, tree-ssa.h, tree-vect-loop-manip.c,
19022 tree-vectorizer.h, tree-vrp.c, var-tracking.c: Remove useless
19025 2015-08-18 trevor Saunders <tbsaunde@tbsaunde.org>
19027 * bt-load.c, cgraph.h, dwarf2out.c, dwarf2out.h, final.c,
19028 function.c, graphite-scop-detection.c, haifa-sched.c,
19029 ipa-devirt.c, ipa-split.c, recog.c, ree.c, stmt.c,
19030 tree-data-ref.c, tree-ssa-dom.c, tree-ssa-loop-ivopts.c,
19031 varasm.c: Remove typedefs of structs.
19033 2015-08-18 Bill Schmidt <wschmidt@vnet.linux.ibm.com>
19035 * config/rs6000/altivec.h (vec_adde): New define.
19036 (vec_addec): Likewise.
19037 (vec_double): Likewise.
19038 (vec_bperm): Likewise.
19039 (vec_gb): Likewise.
19040 * config/rs6000/rs6000-builtin.def (ADDE): New
19041 BU_ALTIVEC_OVERLOAD_3.
19043 (DOUBLE): New BU_VSX_OVERLOAD_1.
19044 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add new
19045 entries for ALTIVEC_BUILTIN_VEC_ADDC, ALTIVEC_BUILTIN_VEC_ADDE,
19046 ALTIVEC_BUILTIN_VEC_ADDEC, ALTIVEC_BUILTIN_VEC_ANDC,
19047 VSX_BUILTIN_VEC_DOUBLE, ALTIVEC_BUILTIN_VEC_MERGEH,
19048 ALTIVEC_BUILTIN_VEC_MERGEL, ALTIVEC_BUILTIN_VEC_NOR,
19049 ALTIVEC_BUILTIN_VEC_OR, ALTIVEC_BUILTIN_VEC_XOR,
19050 ALTIVEC_BUILTIN_VEC_PERM, ALTIVEC_BUILTIN_VEC_SEL,
19051 P8V_BUILTIN_VEC_EQV, P8V_BUILTIN_VEC_NAND, P8V_BUILTIN_VEC_ORC,
19052 and P8V_BUILTIN_VEC_VBPERMQ.
19054 2015-08-18 Jason Merrill <jason@redhat.com>
19056 * print-tree.c (print_node): Handle TREE_BINFO.
19058 2015-08-18 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
19060 PR middle-end/36757
19061 * builtins.c (expand_builtin_signbit): Add asserts to make sure
19062 we can expand BUILT_IN_SIGNBIT inline.
19063 * builtins.def (BUILT_IN_SIGNBIT): Make type-generic.
19064 * doc/extend.texi: Document the type-generic __builtin_signbit.
19066 2015-08-18 Richard Sandiford <richard.sandiford@arm.com>
19068 PR rtl-optimization/67218
19069 * simplify-rtx.c (exact_int_to_float_conversion_p): New function.
19070 (simplify_unary_operation_1): Use it.
19072 2015-08-18 Marek Polacek <polacek@redhat.com>
19074 PR middle-end/67222
19075 * gimple-low.c (lower_stmt): Don't lower BUILT_IN_POSIX_MEMALIGN
19076 if the call isn't valid.
19077 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Check builtins using
19078 gimple_call_builtin_p.
19079 (call_may_clobber_ref_p_1): Likewise.
19080 (stmt_kills_ref_p): Likewise.
19082 2015-08-18 Robert Suchanek <robert.suchanek@imgtec.com>
19084 * config/mips/mips-protos.h (mips_hard_regno_rename_ok): New prototype.
19085 * config/mips/mips.c (mips_hard_regno_rename_ok): New function.
19086 (mips_hard_regno_scratch_ok): Likewise.
19087 (TARGET_HARD_REGNO_SCRATCH_OK): Define macro.
19088 * config/mips/mips.h (HARD_REGNO_RENAME_OK): New.
19090 2015-08-18 Bin Cheng <bin.cheng@arm.com>
19092 * tree-ssa-loop-niter.c (refine_value_range_using_guard): New.
19093 (determine_value_range): Call refine_value_range_using_guard for
19094 each loop initial condition to improve value range.
19096 2015-08-17 Aldy Hernandez <aldyh@redhat.com>
19098 * config/i386/i386.c: Remove include of fibheap.h.
19100 2015-08-17 Richard Biener <rguenther@suse.de>
19102 PR tree-optimization/67221
19103 * tree-ssa-sccvn.c (visit_phi): Keep all-TOP args TOP.
19104 (sccvn_dom_walker::before_dom_children): Mark backedges of
19105 non-executable blocks as not executable.
19107 2015-08-17 David Sherwood <david.sherwood@arm.com>
19109 * config/arm/arm.c (neon_element_bits): Replace call to
19110 GET_MODE_BITSIZE (GET_MODE_INNER (m)) with GET_MODE_UNIT_BITSIZE (m).
19111 * config/arm/neon.md (neon_vget_lane<mode>): Likewise.
19112 (neon_vget_laneu<mode>, neon_vset_lane<mode>): Likewise
19113 (neon_vdup_lane<mode>): Likewise.
19114 * config/i386/i386.c (ix86_expand_int_vcond): Likewise.
19115 (ix86_expand_multi_arg_builtin, ix86_expand_reduc): Likewise.
19116 (expand_vec_perm_palignr, ix86_expand_sse2_abs): Likewise.
19117 * config/rs6000/rs6000.c (rs6000_do_expand_vec_perm): Likewise.
19118 * config/spu/spu.c (arith_immediate_p): Likewise.
19119 * expmed.c (store_bit_field_1, extract_bit_field_1): Likewise.
19120 * expr.c (expand_expr_real_2): Likewise.
19121 * optabs.c (shift_amt_for_vec_perm_mask): Likewise.
19122 * simplify-rtx.c (simplify_immed_subreg): Likewise.
19123 * tree-cfg.c (verify_gimple_assign_ternary): Likewise.
19124 * tree-vect-patterns.c (vect_recog_mixed_size_cond_pattern): Likewise.
19126 * fold-const.c (fold_binary_loc): Replace call to
19127 GET_MODE_PRECISION (GET_MODE_INNER (m)) with
19128 GET_MODE_UNIT_PRECISION (m).
19130 2015-08-17 Mike Stump <mikestump@comcast.net>
19132 * config/arm/arm.c (arm_block_move_unaligned_straight):
19133 Emit normal move instead of unaligned load when source or destination
19134 are appropriately aligned.
19136 2015-08-17 Richard Biener <rguenther@suse.de>
19137 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
19139 PR middle-end/16107
19140 * match.pd (div (coss (op @0) : New simplifier.
19142 2015-08-14 Alexandre Oliva <aoliva@redhat.com>
19144 PR rtl-optimization/64164
19146 PR middle-end/66983
19147 PR rtl-optimization/67000
19148 PR middle-end/67034
19149 PR middle-end/67035
19150 * Makefile.in (OBJS): Drop tree-ssa-copyrename.o.
19151 * tree-ssa-copyrename.c: Removed.
19152 * opts.c (default_options_table): Drop -ftree-copyrename. Add
19153 -ftree-coalesce-vars.
19154 * passes.def: Drop all occurrences of pass_rename_ssa_copies.
19155 * common.opt (ftree-copyrename): Ignore.
19156 (ftree-coalesce-inlined-vars): Likewise.
19157 * doc/invoke.texi: Remove the ignored options above.
19158 * gimple-expr.h (gimple_can_coalesce_p): Move declaration
19159 * tree-ssa-coalesce.h: ... here.
19160 * tree-ssa-uncprop.c: Include tree-ssa-coalesce.h and other
19161 headers required by it.
19162 * gimple-expr.c (gimple_can_coalesce_p): Allow coalescing
19163 across variables when flag_tree_coalesce_vars. Check register
19164 use and promoted modes to allow coalescing. Do not coalesce
19165 maybe-byref parms with SSA_NAMEs of other variables, or
19166 anonymous SSA_NAMEs. Moved to tree-ssa-coalesce.c.
19167 * tree-ssa-live.c (struct tree_int_map_hasher): Move along
19168 with its member functions to tree-ssa-coalesce.c.
19169 (var_map_base_init): Likewise. Renamed to
19170 compute_samebase_partition_bases.
19171 (partition_view_normal): Drop want_bases parameter.
19172 (partition_view_bitmap): Likewise.
19173 * tree-ssa-live.h: Adjust declarations.
19174 * tree-ssa-coalesce.c: Include explow.h and cfgexpand.h.
19175 (build_ssa_conflict_graph): Process PARM_ and RESULT_DECLs's
19176 default defs at the entry point.
19177 (dump_part_var_map): New.
19178 (compute_optimized_partition_bases): New, called by...
19179 (coalesce_ssa_name): ... when flag_tree_coalesce_vars, instead
19180 of compute_samebase_partition_bases. Adjust.
19181 * alias.c (nonoverlapping_memrefs_p): Disregard gimple-regs.
19182 * cfgexpand.c (leader_merge, parm_maybe_byref_p): New.
19183 (ssa_default_def_partition): New.
19184 (get_rtl_for_parm_ssa_default_def): New.
19185 (align_local_variable, add_stack_var): Support anonymous SSA
19187 (defer_stack_allocation): Likewise. Declare earlier.
19188 (set_rtl): Merge exprs and attrs, even for MEMs and non-SSA
19189 vars. Update DECL_RTL for PARM_DECLs and RESULT_DECLs too.
19190 Do no record deferred-allocation marker in
19191 SA.partition_to_pseudo.
19192 (expand_stack_vars): Adjust check for the marker in it.
19193 (expand_one_stack_var_at): Handle anonymous SSA_NAMEs. Drop
19194 redundant MEM attr setting.
19195 (expand_one_stack_var_1): Handle anonymous SSA_NAMEs. Renamed
19197 (expand_one_stack_var): ... this. New wrapper to check and
19198 skip already expanded SSA partitions.
19199 (record_alignment_for_reg_var): New, factored out of...
19200 (expand_one_var): ... this.
19201 (expand_one_ssa_partition): New.
19202 (adjust_one_expanded_partition_var): New.
19203 (expand_one_register_var): Check and skip already expanded SSA
19205 (expand_used_vars): Don't create DECLs for anonymous SSA
19206 names. Expand all SSA partitions, then adjust all SSA names.
19207 (pass::execute): Replace the loops that set
19208 SA.partition_to_pseudo from partition leaders and cleared
19209 DECL_RTL for multi-location variables, and that which used to
19210 rename vars and set attrs, with one that clears DECL_RTL and
19211 checks that PARMs and RESULTs default_defs match DECL_RTL.
19212 * cfgexpand.h (get_rtl_for_parm_ssa_default_def): Declare.
19213 * emit-rtl.c: Include stor-layout.h.
19214 (set_reg_attrs_for_parm): Handle NULL decl.
19215 (set_reg_attrs_for_decl_rtl): Take mode from expression if
19217 * stmt.c (emit_case_decision_tree): Pass it the SSA_NAME
19218 rather than its possibly-NULL DECL.
19219 * explow.c (promote_ssa_mode): New.
19220 * explow.h (promote_ssa_mode): Declare.
19221 * expr.c (expand_expr_real_1): Handle anonymous SSA_NAMEs.
19222 (read_complex_part): Export.
19223 * expr.h (read_complex_part): Declare.
19224 * cfgexpand.h (parm_maybe_byref_p): Declare.
19225 * function.c: Include cfgexpand.h.
19226 (use_register_for_decl): Handle SSA_NAMEs, anonymous or not.
19227 (use_register_for_parm_decl): Wrapper for the above to
19228 special-case the result_ptr.
19229 (rtl_for_parm): Ditto for get_rtl_for_parm_ssa_default_def.
19230 (split_complex_args): Take assign_parm_data_all argument.
19231 Pass it to rtl_for_parm. Set up rtl and context for split
19232 args. Reset complex parm before fetching its default decl
19234 (assign_parms_unsplit_complex): Use the default-def complex
19235 parm rtl if it matches the components.
19236 (assign_parms_augmented_arg_list): Adjust.
19237 (maybe_reset_rtl_for_parm): Reset DECL_RTL of parms with
19238 multiple locations. Recognize split complex args.
19239 (assign_parm_adjust_stack_rtl): Add all and parm arguments,
19240 for rtl_for_parm. For SSA-assigned parms, zero stack_parm.
19241 (assign_parm_setup_block): Prefer SSA-assigned location, and
19242 fill in its address if the memory location of a maybe-byref
19243 parm was not assigned by cfgexpand.
19244 (assign_parm_setup_reg): Likewise. Adjust its mode as
19245 needed. Use entry_parm for equiv if stack_parm is NULL. Make
19246 sure passed_pointer parms don't need conversion. Copy address
19247 or value as needed.
19248 (assign_parm_setup_stack): Prefer SSA-assigned location.
19249 (assign_parms): Maybe reset DECL_RTL of params. Adjust stack
19250 rtl before testing for pointer bounds. Special-case result_ptr.
19251 (expand_function_start): Maybe reset DECL_RTL of result.
19252 Prefer SSA-assigned location for result and static chain.
19253 Factor out DECL_RESULT and SET_DECL_RTL. Convert static chain
19254 to Pmode if needed, from H.J. Lu <hongjiu.lu@intel.com>.
19255 * tree-outof-ssa.c (insert_value_copy_on_edge): Handle
19256 anonymous SSA names. Use promote_ssa_mode.
19257 (get_temp_reg): Likewise.
19258 (remove_ssa_form): Adjust.
19259 * stor-layout.c (layout_decl): Don't set mem attributes of
19261 * var-tracking.c (dataflow_set_clear_at_call): Take call_insn
19262 and get its reg_usage for reg invalidation.
19263 (compute_bb_dataflow): Pass it insn.
19264 (emit_notes_in_bb): Likewise.
19266 2015-08-14 Marek Polacek <polacek@redhat.com>
19268 * tree-core.h (tree_base): Fix typo.
19270 2015-08-14 Marek Polacek <polacek@redhat.com>
19272 PR middle-end/67133
19273 * gimple.c (infer_nonnull_range_by_attribute): Check that the
19274 nonnull argument position is not outside function arguments.
19276 2015-08-14 Matthew Wahab <matthew.wahab@arm.com>
19279 * config/aarch64/atomics.md (atomic_<optab><mode>): Replace
19280 'lconst_atomic' with 'const_atomic'.
19281 (atomic_fetch_<optab><mode>): Likewise.
19282 (atomic_<optab>_fetch<mode>): Likewise.
19283 * config/aarch64/iterators.md (lconst-atomic): Move below
19285 (const_atomic): New.
19287 2015-08-14 Thomas Schwinge <thomas@codesourcery.com>
19288 Bernd Schmidt <bernds@codesourcery.com>
19290 * config/nvptx/nvptx.c (nvptx_option_override): Don't override
19292 * config/nvptx/nvptx.h (DWARF2_LINENO_DEBUGGING_INFO): Define.
19293 (DWARF2_DEBUGGING_INFO): Don't define.
19294 * debug.h (dwarf2_lineno_debug_hooks): Declare.
19295 * toplev.c (process_options): Add a case for it.
19296 * dwarf2out.c (dwarf2_lineno_debug_hooks): New variable.
19297 (dwarf2out_init): Skip most initializations if
19298 DWARF2_LINENO_DEBUGGING_INFO, but set cur_line_info_table in that
19300 * defaults.h (PREFERRED_DEBUGGING_TYPE): Also use DWARF2_DEBUG if
19301 DWARF2_LINENO_DEBUGGING_INFO.
19302 * opts.c (set_debug_level): Likewise.
19304 2015-08-14 James Greenhalgh <james.greenhalgh@arm.com>
19306 * config/arm/types.md (is_neon_type): Add missing types.
19308 2015-08-14 Yuri Rumyantsev <ysrumyan@gmail.com>
19310 * config/i386/driver-i386.c (host_detect_local_cpu): Add support
19312 * config/i386/i386.c (PTA_SKYLAKE): New macros.
19313 (processor_alias_table): Add skylake description.
19314 (enum processor_model): Add skylake processor.
19315 (arch_names_table): Add skylake record.
19316 * doc/invoke.texi: Add skylake item.
19318 2015-08-13 Andrew MacLeod <amacleod@redhat.com>
19320 * ira-int.h: Include recog.h.
19321 * ira-build.c: Don't include recog.h.
19322 * ira-color.c: Likewise.
19323 * ira-conflicts.c: Likewise.
19324 * ira-costs.c: Likewise.
19325 * ira-emit.c: Likewise.
19326 * ira-lives.c: Likewise.
19328 * sched-deps.c: Likewise.
19329 * sel-sched.c: Likewise.
19330 * target-globals.c: Likewise.
19332 2015-08-13 Richard Sandiford <richard.sandiford@arm.com>
19335 * reload1.c (elimination_costs_in_insn): Make it obvious to the
19336 compiler that the n_dups and n_operands loop bounds are invariant.
19338 2015-08-13 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
19340 * ifcvt.c (noce_try_store_flag_constants): Handle PLUS-immediate
19341 expressions in A and B.
19343 2015-08-13 Richard Biener <rguenther@suse.de>
19345 * tree.c (nonnull_arg_p): Move from ...
19346 * tree-vrp.c (nonnull_arg_p): ... here.
19347 * tree.h (nonnull_arg_p): Declare.
19348 * tree-ssa-sccvn.c (init_scc_vn): Perform all lattice init
19349 here, register ptr != 0 for nonnull_arg_p pointer arguments.
19350 Properly initialize static chain and by-reference result pointer.
19351 (run_scc_vn): Adjust.
19353 2015-08-13 Robert Suchanek <robert.suchanek@imgtec.com>
19355 * config/mips/mips.h (ENABLE_LD_ST_PAIRS): Enable load/store pairs for
19358 2015-08-13 Matthew Wahab <matthew.wahab@arm.com>
19360 * config/aarch64/aarch64-protos.h
19361 (aarch64_gen_atomic_cas): Declare.
19362 * config/aarch64/aarch64.c (aarch64_expand_compare_and_swap):
19363 Choose appropriate instruction pattern for the target.
19364 (aarch64_gen_atomic_cas): New.
19365 * config/aarch64/atomics.md (UNSPECV_ATOMIC_CAS): New.
19366 (atomic_compare_and_swap<mode>_1): Rename to
19367 aarch64_compare_and_swap<mode>. Fix some indentation.
19368 (aarch64_compare_and_swap<mode>_lse): New.
19369 (aarch64_atomic_cas<mode>): New.
19371 2015-08-13 Matthew Wahab <matthew.wahab@arm.com>
19373 * config/aarch64/aarch64.h (AARCH64_ISA_LSE): New.
19376 2015-08-13 Richard Biener <rguenther@suse.de>
19378 PR tree-optimization/67191
19379 * tree-ssa-sccvn.c (sccvn_dom_walker::before_dom_children): Remove
19380 assert we value-numbered last stmts operand because it can validly
19381 trigger for unreachable code.
19383 2015-08-13 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
19385 PR rtl-optimization/67103
19386 * ifcvt.c (noce_try_store_flag_constants): Move
19387 x = (-(test != 0) & (b - a)) + a transformation to...
19388 (noce_try_cmove): ... Here. Try it if normal conditional
19391 2015-08-13 Robert Suchanek <robert.suchanek@imgtec.com>
19393 * config/mips/mips.c (mips_rtx_cost_data): Remove costs for W32 and W64
19395 * config/mips/mips.md (processor): Remove w32 and w64.
19397 2015-08-13 Richard Biener <rguenther@suse.de>
19399 PR tree-optimization/66502
19400 PR tree-optimization/67167
19401 * tree-ssa-sccvn.c (vn_phi_compute_hash): Do not include
19402 backedge arguments.
19403 (vn_phi_lookup): Adjust.
19404 (vn_phi_insert): Likewise.
19405 (visit_phi): Prefer to value-number to another PHI node
19406 over value-numbering to a PHI argument.
19407 (init_scc_vn): Mark DFS back edges.
19409 2015-08-13 Richard Biener <rguenther@suse.de>
19411 * gimple.h (gcall::code_): New constant static member.
19412 (gcond::code_): Likewise.
19413 * gimple.c (gcall::code_): Define.
19414 (gcond::code_): Likewise.
19415 (is_a_helper <const gcond *>): Add.
19416 (gimple_call_lhs): Use GIMPLE_CHECK2 in the gimple overload
19417 and forward to a new gcall overload with less checking and a
19418 cheaper way to access the operand.
19419 (gimple_call_lhs_ptr): Likewise.
19420 (gimple_call_set_lhs): Likewise.
19421 (gimple_call_internal_p): Likewise.
19422 (gimple_call_with_bounds_p): Likewise.
19423 (gimple_call_set_with_bounds): Likewise.
19424 (gimple_call_internal_fn): Likewise.
19425 (gimple_call_set_ctrl_altering): Likewise.
19426 (gimple_call_ctrl_altering_p): Likewise.
19427 (gimple_call_fntype): Likewise.
19428 (gimple_call_fn): Likewise.
19429 (gimple_call_fn_ptr): Likewise.
19430 (gimple_call_set_fndecl): Likewise.
19431 (gimple_call_fndecl): Likewise.
19432 (gimple_call_chain): Likewise.
19433 (gimple_call_num_args): Likewise.
19434 (gimple_call_arg): Likewise.
19435 (gimple_call_arg_ptr): Likewise.
19436 (gimple_call_set_arg): Likewise.
19437 (gimple_call_noreturn_p): Likewise.
19438 (gimple_cond_code): Likewise.
19439 (gimple_cond_lhs): Likewise.
19440 (gimple_cond_rhs): Likewise.
19441 (gimple_has_lhs): Reduce checking.
19443 2015-08-13 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
19445 PR middle-end/25529
19446 * match.pd (div (mult @0 @1) @1) : New simplifier.
19448 2015-08-12 Michael Meissner <meissner@linux.vnet.ibm.com>
19451 * config/rs6000/predicates.md (easy_vector_constant_vsldoi): New
19452 predicate to allow construction of vector constants using the
19453 VSLDOI vector shift instruction.
19455 * config/rs6000/rs6000-protos.h (vspltis_shifted): Add
19458 * config/rs6000/rs6000.c (vspltis_shifted): New function to return
19459 the number of bytes to be shifted left and filled in with either
19460 all zero or all one bits.
19461 (gen_easy_altivec_constant): Call vsplitis_shifted if no other
19463 (output_vec_const_move): On power8, generate XXLORC to generate
19464 a vector constant with all 1's. Do a split if we need to use a
19465 VSLDOI instruction.
19467 * config/rs6000/rs6000.h (EASY_VECTOR_MSB): Use mode mask to
19468 properly test for the MSB.
19470 * config/rs6000/altivec.md (VSLDOI splitter): Add splitter for
19471 vector constants that can be created with VSLDOI.
19473 2015-08-11 Trevor Saunders <tbsaunde@tbsaunde.org>
19476 * compare-elim.c, dce.c, dse.c, gimple-ssa-isolate-paths.c,
19477 gimple-ssa-strength-reduction.c, graphite.c, init-regs.c,
19478 ipa-pure-const.c, ipa-visibility.c, ipa.c, mode-switching.c,
19479 omp-low.c, reorg.c, sanopt.c, trans-mem.c, tree-eh.c,
19480 tree-if-conv.c, tree-ssa-copyrename.c, tree-ssa-dce.c,
19481 tree-ssa-dom.c, tree-ssa-dse.c, tree-ssa-forwprop.c,
19482 tree-ssa-sink.c, tree-ssanames.c, tree-stdarg.c, tree-tailcall.c,
19483 tree-vect-generic.c, tree.c, ubsan.c, var-tracking.c,
19484 vtable-verify.c, web.c: Use GCC_FINAL instead of the anonymous
19486 2015-08-12 Max Filippov <jcmvbkbc@gmail.com>
19488 * config/xtensa/constraints.md (define_constraint "Y"): New
19490 * config/xtensa/elf.h (ASM_SPEC): Add m(no-)auto-litpools.
19491 * config/xtensa/linux.h (ASM_SPEC): Likewise.
19492 * config/xtensa/predicates.md (move_operand): Match constants
19493 and symbols in the presence of TARGET_AUTO_LITPOOLS.
19494 * config/xtensa/xtensa.c (xtensa_valid_move): Don't allow
19495 immediate references to TLS data.
19496 (xtensa_emit_move_sequence): Don't force constants to memory in
19497 the presence of TARGET_AUTO_LITPOOLS.
19498 (print_operand): Add 'y' format, same as default, but capable of
19499 printing SF mode constants as well.
19500 * config/xtensa/xtensa.md (movsi_internal, movhi_internal)
19501 (movsf_internal): Add movi pattern that loads literal.
19502 (movsf, movdf): Don't force constants to memory in the presence
19503 of TARGET_AUTO_LITPOOLS.
19504 (movdf_internal): Add 'Y' constraint.
19505 * config/xtensa/xtensa.opt (mauto-litpools): New option.
19506 * doc/invoke.text (Xtensa options): Document -mauto-litpools.
19508 2015-08-12 Matthew Wahab <matthew.wahab@arm.com>
19510 * config/arm/arm-fpus.def: Replace booleans with feature flags.
19512 * config/arm/arm.c (ARM_FPU): Update macro.
19513 * config/arm/arm.h (TARGET_NEON_FP16): Update feature test.
19514 (TARGET_FP16): Likewise.
19515 (TARGET_CRYPTO): Likewise.
19516 (TARGET_NEON): Likewise.
19517 (struct arm_fpu_desc): Remove fields neon, fp16 and crypto. Add
19520 2015-08-12 Tom de Vries <tom@codesourcery.com>
19524 * doc/install.texi: Remove --with_host_libstdcxx item. Update
19525 --with-stage1-libs, --with-boot-ldflags and --with-boot-libs items
19526 accordingly. Mention default for --with-stage1-ldflags.
19528 2015-08-12 Matthew Wahab <matthew.wahab@arm.com>
19530 * config/arm/arm.h (arm_fpu_feature_set): New.
19531 (ARM_FPU_FSET_HAS): New.
19532 (FPU_FL_NONE): New.
19533 (FPU_FL_NEON): New.
19534 (FPU_FL_FP16): New.
19535 (FPU_FL_CRYPTO): New.
19537 2015-08-12 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
19539 * config/aarch64/aarch64.c (initialize_aarch64_code_model): Break
19540 after -mcmodel=large -fPIC sorry.
19542 2015-08-12 Richard Biener <rguenther@suse.de>
19544 * tree-ssa-sccvn.c (vn_nary_op_compute_hash): Also canonicalize
19545 comparison operand order and commutative ternary op operand order.
19546 (sccvn_dom_walker::cond_stack): New state to track temporary
19548 (sccvn_dom_walker::after_dom_children): Remove tempoary expressions
19550 (sccvn_dom_walker::record_cond): Add a single temporary conditional
19552 (sccvn_dom_walker::record_conds): Add a temporary conditional
19553 expressions and all related expressions also true/false.
19554 (sccvn_dom_walker::before_dom_children): Record temporary
19555 expressions based on the controlling condition of a single
19556 predecessor. When trying to simplify a conditional statement
19557 lookup expressions we might have inserted earlier.
19559 2015-08-12 Yvan Roux <yvan.roux@linaro.org>
19562 * config/arm/arm.md (movdi): Restrict illegitimate ldrd/strd checking
19563 to ARM core registers.
19565 2015-08-12 Nathan Sidwell <nathan@acm.org>
19567 * tree-vrp.c (simplify_min_or_max_using_ranges): New.
19568 (simplify_stmt_using_ranges): Simplify MIN and MAX exprs.
19570 2015-08-12 Simon Dardis <simon.dardis@imgtec.com>
19572 * config/mips/mips.c (mips_store_data_bypass_p): Bring code into
19573 line with comments.
19574 * config/mips/sb1.md: Update usage of mips_store_data_bypass_p.
19576 2015-08-12 Richard Biener <rguenther@suse.de>
19578 * gimple.h (remove_pointer): New trait.
19579 (GIMPLE_CHECK2): New inline template function.
19580 (gassign::code_): New constant static member.
19581 (is_a_helper<const gassign *>): Add.
19582 (gimple_assign_lhs): Use GIMPLE_CHECK2 in the gimple overload
19583 and forward to a new gassign overload with less checking and a
19584 cheaper way to access the operand.
19585 (gimple_assign_lhs_ptr): Likewise.
19586 (gimple_assign_set_lhs): Likewise.
19587 (gimple_assign_rhs1, gimple_assign_rhs1_ptr, gimple_assign_set_rhs1):
19589 (gimple_assign_rhs2, gimple_assign_rhs2_ptr, gimple_assign_set_rhs2):
19591 (gimple_assign_rhs3, gimple_assign_rhs3_ptr, gimple_assign_set_rhs3):
19593 (gimple_assign_rhs_code): Likewise.
19594 * gimple.c (gassign::code_): Define.
19596 2015-08-12 Richard Biener <rguenther@suse.de>
19598 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children):
19599 Eliminate edges marked as not executable by SCCVN.
19600 * tree-ssa-sccvn.c: Include gimple-iterator.h.
19601 (cond_dom_walker): Rename to sccvn_dom_walker.
19602 (sccvn_dom_walker::before_dom_children): Value-number defs
19604 (run_scc_vn): Remove loop value-numbering all SSA names.
19605 Drop not visited SSA names to varying.
19607 2015-08-11 Trevor Saunders <tbsaunde@tbsaunde.org>
19609 * compare-elim.c, dce.c, dse.c, gimple-ssa-isolate-paths.c,
19610 gimple-ssa-strength-reduction.c, graphite.c, init-regs.c,
19611 ipa-pure-const.c, ipa-visibility.c, ipa.c, mode-switching.c,
19612 omp-low.c, reorg.c, sanopt.c, trans-mem.c, tree-eh.c,
19613 tree-if-conv.c, tree-ssa-copyrename.c, tree-ssa-dce.c,
19614 tree-ssa-dom.c, tree-ssa-dse.c, tree-ssa-forwprop.c,
19615 tree-ssa-sink.c, tree-ssanames.c, tree-stdarg.c, tree-tailcall.c,
19616 tree-vect-generic.c, tree.c, ubsan.c, var-tracking.c,
19617 vtable-verify.c, web.c: Use GCC_FINAL instead of the anonymous
19619 2015-08-11 Uros Bizjak <ubizjak@gmail.com>
19622 * config/i386/i386.c (get_builtin_code_for_version): Add P_PCLMUL
19623 to enum feature_priority and feature_list.
19624 (fold_builtin_cpu): Add F_PCLMUL to enum processor_features
19625 and isa_names_table.
19627 2015-08-11 Yuri Rumyantsev <ysrumyan@gmail.com>
19629 * tree-vect-stmts.c (vectorizable_shift): Add missed test on
19630 vect_induction_def.
19632 2015-08-11 Manuel López-Ibáñez <manu@gcc.gnu.org>
19636 * diagnostic.c (diagnostic_classify_diagnostic): Take -Werror into
19637 account when deciding what was the command-line status.
19639 2015-08-11 Nathan Sidwell <nathan@acm.org>
19641 * tree-vrp.c (simplify_abs_using_ranges): Simplify.
19643 * tree-ssa-phiopt.c (minmax_replacement): Create new ssa name if
19644 we're not the only contributor to target phi.
19646 2015-08-11 Jiong Wang <jiong.wang@arm.com>
19648 * config/aarch64/aarch64.h (REG_CLASS_NAMES): Add the missing ',' after
19651 2015-08-11 Tom de Vries <tom@codesourcery.com>
19653 * tree-cfg.c (move_sese_region_to_fn): Add todo comment.
19655 2015-08-10 H.J. Lu <hongjiu.lu@intel.com>
19657 * config/i386/i386.c (processor_alias_table): Replace CPU_KNL
19659 * config/i386/i386.md (cpu): Remove knl.
19661 2015-08-10 Thomas Schwinge <thomas@codesourcery.com>
19664 PR middle-end/66332
19665 * builtins.c (expand_builtin_acc_on_device) [ACCEL_COMPILER]: Emit
19666 open-coded sequence.
19667 * omp-low.c (oacc_process_reduction_data): Remove handline of
19668 GOMP_DEVICE_HOST_NONSHM.
19670 * lto-streamer-in.c (lto_input_mode_table): Adjust to
19671 GET_MODE_INNER changes.
19673 2015-08-10 Thomas Schwinge <thomas@codesourcery.com>
19674 Ilya Verbin <ilya.verbin@intel.com>
19676 * lto-streamer-in.c (lto_input_mode_table): Correctly advance iterator.
19678 2015-08-09 Manuel López-Ibáñez <manu@gcc.gnu.org>
19680 * doc/options.texi (EnabledBy): Document that the argument must be
19682 * doc/invoke.texi (Wnull-dereference): Move after Wnonnull.
19683 Not enabled by -Wall.
19684 * optc-gen.awk: Give nicer error messages. Detect if the argument
19685 of EnabledBy is not a Common option.
19686 * common.opt (Wnull-dereference): Not enabled by -Wall.
19687 * opt-functions.awk (lang_enabled_by): Nicer error messages.
19689 2015-08-09 H.J. Lu <hongjiu.lu@intel.com>
19691 * config/i386/driver-i386.c (host_detect_local_cpu): Treat
19692 model == 0x4f as Broadwell.
19694 2015-08-08 Segher Boessenkool <segher@kernel.crashing.org>
19696 PR rtl-optimization/67028
19697 * combine.c (simplify_comparison): Fix comment. Rearrange code.
19698 Add test to see if a const_int fits in the new mode.
19700 2015-08-07 DJ Delorie <dj@redhat.com>
19702 * config/rx/rx.c (rx_mode_dependent_address_p): Remove unneeded asserts.
19704 2015-08-07 H.J. Lu <hongjiu.lu@intel.com>
19706 PR rtl-optimization/67029
19707 * ira-color.c: Include "recog.h" before including "ira-int.h".
19708 * target-globals.c: Likewise.
19709 * ira-lives.c (ira_implicitly_set_insn_hard_regs): Add an
19710 adds an alternative_mask argument and use it instead of
19711 preferred_alternatives.
19712 * ira.h (ira_implicitly_set_insn_hard_regs): Moved to ...
19713 * ira-int.h (ira_implicitly_set_insn_hard_regs): Here.
19714 * sched-deps.c: Include "ira-int.h" after including "ira.h".
19715 (sched_analyze_insn): Update call to
19716 ira_implicitly_set_insn_hard_regs.
19717 * sel-sched.c: Include "ira-int.h" after including "ira.h".
19718 (implicit_clobber_conflict_p): Update call to
19719 ira_implicitly_set_insn_hard_regs.
19721 2015-08-06 Uros Bizjak <ubizjak@gmail.com>
19723 * Makefile.in (.INTERMEDIATE): Add gpl.pod.
19725 2015-08-07 Kaz Kojima <kkojima@gcc.gnu.org>
19728 * config/sh/sh.c (sh_recog_treg_set_expr): Return false when
19729 currently_expanding_to_rtl is set.
19731 2015-08-06 Yaakov Selkowitz <yselkowi@redhat.com>
19733 * configure.ac: Define LIBICONV_DEP with in-tree libiconv.
19734 * configure: Regenerate.
19736 2015-08-06 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
19737 Jiong Wang <jiong.wang@arm.com>
19739 * config/aarch64/aarch64.d (tlsdesc_small_pseudo_<mode>): New pattern.
19740 * config/aarch64/aarch64.h (reg_class): New enumeration FIXED_REG0.
19741 (REG_CLASS_NAMES): Likewise.
19742 (REG_CLASS_CONTENTS): Likewise.
19743 * config/aarch64/aarch64.c (aarch64_class_max_nregs): Likewise.
19744 (aarch64_register_move_cost): Likewise.
19745 (aarch64_load_symref_appropriately): Invoke the new added pattern if
19747 * config/aarch64/constraints.md (Uc0): New constraint.
19749 2015-08-06 Jiong Wang <jiong.wang@arm.com>
19751 * config/aarch64/constraints.md (Usf): Add the test of
19752 aarch64_is_noplt_call_p.
19754 2015-08-06 Jiong Wang <jiong.wang@arm.com>
19756 * config/aarch64/aarch64-protos.h (aarch64_is_noplt_call_p): New
19758 * config/aarch64/aarch64.c (aarch64_is_noplt_call_p): New function.
19759 * config/aarch64/aarch64.md (call_value_symbol): Check noplt scenarios.
19760 (call_symbol): Likewise.
19762 2015-08-06 Venkataramanan Kumar <Venkataramanan.kumar@amd.com>
19764 * tree-vect-patterns.c (vect_recog_mult_pattern): New function
19765 for vectorizing multiplication patterns.
19766 * tree-vectorizer.h: Adjust the number of patterns.
19768 2015-08-06 Uros Bizjak <ubizjak@gmail.com>
19770 * config/i386/sse.md (*vec_concatv2df): Declare added
19771 alternatives as sselog type.
19773 2015-08-06 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
19775 * config/s390/s390.c (s390_dwarf_frame_reg_mode): Return Pmode for
19778 2015-08-06 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
19780 * config/s390/s390.c (s390_expand_tbegin): Expand either
19781 tbegin_1_z13 or tbegin_1 depending on VX flag.
19782 * config/s390/s390.md ("tbegin_1_z13"): New expander.
19784 2015-08-06 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
19786 * config/s390/s390.opt: Clarify description for -mzvector
19787 * doc/invoke.texi: Add documentation for -mhtm, -mvx, and
19790 2015-08-06 Richard Biener <rguenther@suse.de>
19792 * gimple.h (gimple_call_set_fn): Access op member directly.
19793 (gimple_call_chain_ptr): Likewise.
19794 (gimple_call_set_chain): Likewise.
19795 (gimple_cond_lhs_ptr): Likewise.
19796 (gimple_cond_set_lhs): Likewise.
19797 (gimple_cond_rhs_ptr): Likewise.
19798 (gimple_cond_set_rhs): Likewise.
19799 (gimple_cond_true_label): Likewise.
19800 (gimple_cond_set_true_label): Likewise.
19801 (gimple_cond_set_false_label): Likewise.
19802 (gimple_cond_false_label): Likewise.
19803 (gimple_label_label): Likewise.
19804 (gimple_label_set_label): Likewise.
19805 (gimple_goto_set_dest): Likewise.
19806 (gimple_asm_input_op): Likewise.
19807 (gimple_asm_input_op_ptr): Likewise.
19808 (gimple_asm_set_input_op): Likewise.
19809 (gimple_asm_output_op): Likewise.
19810 (gimple_asm_output_op_ptr): Likewise.
19811 (gimple_asm_set_output_op): Likewise.
19812 (gimple_asm_clobber_op): Likewise.
19813 (gimple_asm_set_clobber_op): Likewise.
19814 (gimple_asm_label_op): Likewise.
19815 (gimple_asm_set_label_op): Likewise.
19816 (gimple_switch_index): Likewise.
19817 (gimple_switch_index_ptr): Likewise.
19818 (gimple_return_retval_ptr): Likewise.
19819 (gimple_return_retval): Likewise.
19820 (gimple_return_set_retval): Likewise.
19821 (gimple_switch_set_index): Likewise. Remove superfluous GIMPLE_CHECK.
19822 (gimple_switch_label): Likewise.
19823 (gimple_switch_set_label): Likewise.
19825 2015-08-06 Richard Biener <rguenther@suse.de>
19827 * gimple-fold.c (gimple_fold_stmt_to_constant_1): Simplify
19828 bool comparison canonicalization and restrict to integers.
19830 2015-08-05 Andrew MacLeod <amacleod@redhat.com>
19832 * coretypes.h (enum symbol_visibility): Relocate here.
19833 * flag-types.h (enum symbol_visibility): Remove.
19834 * tree-core.h (enum symbol_visibility): Remove.
19836 2015-08-05 Lynn Boger <laboger@linux.vnet.ibm.com>
19839 * config/rs6000/rs6000.c (rs6000_emit_prologue): Check
19840 for no_split_stack function attribute along with
19842 (rs6000_expand_split_stack_prologue): Likewise.
19844 2015-08-05 Manuel López-Ibáñez <manu@gcc.gnu.org>
19845 Jeff Law <law@redhat.com>
19848 * doc/invoke.texi (Wnull-dereference): New.
19849 * tree-vrp.c (infer_value_range): Update call to infer_nonnull_range.
19850 * gimple-ssa-isolate-paths.c (find_implicit_erroneous_behaviour):
19851 Warn for potential NULL dereferences.
19852 (find_explicit_erroneous_behaviour): Warn for NULL dereferences.
19853 * ubsan.c (instrument_nonnull_arg): Call
19854 infer_nonnull_range_by_attribute.
19855 (instrument_nonnull_return): Likewise.
19856 * common.opt (Wnull-dereference); New.
19857 * gimple.c (infer_nonnull_range): Remove bool arguments.
19858 (infer_nonnull_range_by_dereference): New.
19859 (infer_nonnull_range_by_attribute): New.
19860 * gimple.h: Update declarations.
19862 2015-08-05 Richard Sandiford <richard.sandiford@arm.com>
19864 * gensupport.c (sequence_num): Replace with...
19865 (insn_sequence_num, split_sequence_num, peephole2_sequence_num):
19866 ...these new variables.
19867 (init_rtx_reader_args_cb): Update accordingly.
19868 (get_num_code_insns): Likewise.
19869 (read_md_rtx): Rework to use a while loop and get_c_test.
19870 Use the new counters. Remove redundant DEFINE_SUBST case.
19871 * genoutput.c (gen_split): Delete.
19872 (main): Don't call it.
19874 2015-08-05 Richard Sandiford <richard.sandiford@arm.com>
19876 * gensupport.h (get_c_test): Declare.
19877 * gensupport.c (get_c_test): New function.
19878 * genconditions.c (main): Use it.
19879 * genrecog.c (validate_pattern): Likewise.
19880 (match_pattern_1): Likewise. Remove c_test argument.
19881 (match_pattern): Update accordingly and remove c_test argument.
19882 (main): Update accordingly.
19884 2015-08-05 Richard Sandiford <richard.sandiford@arm.com>
19886 * gensupport.h (get_num_insn_codes): Declare.
19887 * gensupport.c (get_num_insn_codes): New function.
19888 * genattrtab.c (optimize_attrs): Rename max_insn_code to
19890 (main): Likewise. Use get_num_insn_codes.
19891 * gencodes.c (main): Remove "last" and use get_num_insn_codes.
19893 2015-08-05 Richard Sandiford <richard.sandiford@arm.com>
19895 PR middle-end/66311
19896 * wide-int.cc (wi::from_mpz): Make sure that absolute mpz value
19897 is zero- rather than sign-extended.
19899 2015-08-05 Richard Sandiford <richard.sandiford@arm.com>
19901 * target-insns.def (can_extend): Delete.
19903 2015-08-05 Richard Biener <rguenther@suse.de>
19905 PR tree-optimization/67121
19906 * tree-if-conv.c (combine_blocks): Clear range-info produced
19907 by stmts no longer executed conditionally.
19909 2015-08-05 Nick Clifton <nickc@redhat.com>
19911 * config/rl78/rl78.c (rl78_force_nonfar_3): Remove optimization
19912 to allow identical far pointers to remain.
19914 2015-08-05 Richard Biener <rguenther@suse.de>
19916 PR middle-end/67120
19917 * match.pd: Compare address bases with == if they are decls
19918 or SSA names, not operand_equal_p. Otherwise fail.
19920 2015-08-05 Richard Biener <rguenther@suse.de>
19922 PR tree-optimization/67055
19923 * tree-ssa-ccp.c (fold_builtin_alloca_with_align): Handle
19926 * g++.dg/torture/pr67055.C: New testcase.
19928 2015-08-05 Kirill Yukhin <kirill.yukhin@intel.com>
19930 * config/i386/i386.md (define_attr "isa"): Addd avx512vl and
19932 (define_attr "enabled"): Handle avx521vl and noavx512vl.
19933 * config/i386/sse.md (define_insn "vec_dupv2df<mask_name>"): Split
19934 AVX-512 alternative out of SSE.
19935 (define_insn "*vec_concatv2df"): Ditto.
19937 2015-08-05 Kirill Yukhin <kirill.yukhin@intel.com>
19939 * config/i386/i386.c (bdesc_args): Rename CODE_FOR_sse4_1_ptest into
19940 CODE_FOR_sse4_1_ptestv2di and CODE_FOR_avx_vtestps256 into
19941 CODE_FOR_avx_ptestv4di.
19942 * config/i386/sse.md (define_mode_iterator V_AVX): New.
19943 (define_mode_attr sse4_1): Extend to other 128/256-bit modes.
19944 (define_insn "avx_ptest256"): Merge this ...
19945 (define_insn "sse4_1_ptest"): And this ...
19946 (define_insn "<sse4_1>_ptest<mode>"): Into this. Use V_AVX iterator.
19948 2015-08-05 Richard Biener <rguenther@suse.de>
19950 PR tree-optimization/67109
19951 * tree-vect-data-refs.c (vect_analyze_group_access_1): Check
19952 against too big groups. Print whether this is a load or store
19953 group. Rename from ...
19954 (vect_analyze_group_access): ... this which is now a wrapper
19955 dissolving an invalid group.
19956 (vect_analyze_data_ref_accesses): Print whether this is a load
19959 2015-08-05 Richard Biener <rguenther@suse.de>
19961 PR middle-end/67107
19962 * match.pd: Guard const_binop result checking against NULL_TREE
19965 2015-08-05 Kugan Vivekanandarajah <kuganv@linaro.org>
19967 * cse.c (cse_insn): Restoring old behaviour for src_eqv
19968 when dest and value in the REG_EQUAL are same and dest
19969 is STRICT_LOW_PART.
19971 2015-08-04 Anatoly Sokolov <aesok@post.ru>
19973 * config/moxie/moxie.h (PRINT_OPERAND,
19974 PRINT_OPERAND_ADDRESS): Remove macros.
19975 * config/moxie/moxie-protos.h (moxie_print_operand,
19976 moxie_print_operand_address): Remove declaration.
19977 * config/moxie/moxie.c (TARGET_PRINT_OPERAND,
19978 TARGET_PRINT_OPERAND_ADDRESS): Define.
19979 (moxie_print_operand, moxie_print_operand_address): Make static.
19981 2015-08-04 Szabolcs Nagy <szabolcs.nagy@arm.com>
19984 * config/aarch64/aarch64.c (aarch64_rtx_costs): Fix NEG cost for FNMUL.
19985 (aarch64_rtx_mult_cost): Fix MULT cost with -frounding-math.
19987 2015-08-04 Richard Biener <rguenther@suse.de>
19989 * genmatch.c (dt_node::gen_kids_1): Use gassign and gcall in
19991 (dt_operand::gen_gimple_expr): Adjust.
19993 2015-08-04 Richard Biener <rguenther@suse.de>
19995 * gimple-fold.c (gimple_fold_stmt_to_constant_1): Canonicalize
19996 bool compares on RHS.
19997 * match.pd: Add X ==/!= !X is false/true pattern.
19999 2015-08-04 Pawel Kupidura <pawel.kupidura@arm.com>
20001 * config/aarch64/aarch64.c: Change inner loop statement cost
20002 to be consistent with other targets.
20004 2015-08-04 Christophe Lyon <christophe.lyon@linaro.org>
20006 * config/arm/neon.md (neon_vget_lanev2di): Handle big-endian
20009 2015-08-04 Nathan Sidwell <nathan@codesourcery.com>
20011 * config/nvptx/nvptx.h (struct nvptx_pseudo_info): Delete.
20012 (machine_function): Remove pseudos field.
20014 2015-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
20016 * config/aarch64/aarch64.c (aarch64_option_valid_attribute_p):
20017 Exit early and use target_option_current_node if processing current
20020 2015-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
20022 * doc/extend.texi (AArch64 Function Attributes): New node.
20023 (AArch64 Pragmas): Likewise.
20025 2015-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
20027 * config/aarch64/aarch64.c (aarch64_option_valid_attribute_p):
20028 Initialize simd builtins if TARGET_SIMD.
20029 * config/aarch64/aarch64-builtins.c (aarch64_init_simd_builtins):
20030 Make sure that the builtins are initialized only once no matter how
20031 many times the function is called.
20032 (aarch64_init_builtins): Unconditionally initialize crc builtins.
20033 (aarch64_relayout_simd_param): New function.
20034 (aarch64_simd_expand_args): Use above during argument expansion.
20035 * config/aarch64/aarch64-c.c (aarch64_pragma_target_parse): Initialize
20036 simd builtins if TARGET_SIMD.
20037 * config/aarch64/aarch64-protos.h (aarch64_init_simd_builtins): New
20039 (aarch64_relayout_simd_types): Likewise.
20041 2015-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
20043 * config.gcc (aarch64*-*-*): Specify c_target_objs and cxx_target_objs.
20044 * config/aarch64/aarch64.h (REGISTER_TARGET_PRAGMAS): Define.
20045 (TARGET_CPU_CPP_BUILTINS): Redefine to call aarch64_cpu_cpp_builtins.
20046 * config/aarch64/aarch64.c (aarch64_override_options_internal): Remove
20048 (aarch64_reset_previous_fndecl): New function.
20049 (aarch64_handle_attr_isa_flags): Handle "+nothing" in the beginning of
20051 * config/aarch64/aarch64-c.c: New file.
20052 * config/aarch64/arm_acle.h: Add pragma +crc+nofp at the top.
20053 Push and pop options at beginning and end. Remove ifdef
20054 __ARM_FEATURE_CRC32.
20055 * config/aarch64/arm_neon.h: Remove #ifdef check on __ARM_NEON.
20056 Add pragma +nothing+simd and +nothing+crypto where appropriate.
20057 * config/aarch64/t-aarch64 (aarch64-c.o): New rule.
20058 * config/aarch64/aarch64-protos.h (aarch64_cpu_cpp_builtins):
20060 (aarch64_register_pragmas): Likewise.
20061 (aarch64_reset_previous_fndecl): Likewise.
20062 (aarch64_process_target_attr): Likewise.
20063 (aarch64_override_options_internal): Likewise.
20065 2015-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
20067 * config/aarch64/aarch64.c (aarch64_tribools_ok_for_inlining_p):
20069 (aarch64_can_inline_p): Likewise.
20070 (TARGET_CAN_INLINE_P): Define.
20072 2015-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
20074 * common/config/aarch64/aarch64-common.c (aarch64_handle_option):
20075 Remove static. Handle OPT_mgeneral_regs_only,
20076 OPT_mfix_cortex_a53_835769, OPT_mstrict_align,
20077 OPT_momit_leaf_frame_pointer.
20078 * config/aarch64/aarch64.c: Include opts.h and diagnostic.h
20079 (aarch64_attr_opt_type): New enum.
20080 (aarch64_attribute_info): New struct.
20081 (aarch64_handle_attr_arch): New function.
20082 (aarch64_handle_attr_cpu): Likewise.
20083 (aarch64_handle_attr_tune): Likewise.
20084 (aarch64_handle_attr_isa_flags): Likewise.
20085 (aarch64_attributes): New table.
20086 (aarch64_process_one_target_attr): New function.
20087 (num_occurences_in_str): Likewise.
20088 (aarch64_process_target_attr): Likewise.
20089 (aarch64_option_valid_attribute_p): Likewise.
20090 (TARGET_OPTION_VALID_ATTRIBUTE_P): Define.
20091 * config/aarch64/aarch64-protos.h: Include input.h
20092 (aarch64_handle_option): Declare prototype.
20094 2015-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
20096 * config/aarch64/aarch64.h (SWITCHABLE_TARGET): Define.
20097 * config/aarch64/aarch64.c: Include target-globals.h
20098 (aarch64_previous_fndecl): New variable.
20099 (aarch64_set_current_function): New function.
20100 (TARGET_SET_CURRENT_FUNCTION): Define.
20102 2015-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
20104 * config/aarch64/aarch64.opt (explicit_tune_core): New TargetVariable.
20105 (explicit_arch): Likewise.
20106 (x_aarch64_isa_flags): Likewise.
20107 (mgeneral-regs-only): Mark as Save.
20108 (mfix-cortex-a53-835769): Likewise.
20109 (mcmodel=): Likewise.
20110 (mstrict-align): Likewise.
20111 (momit-leaf-frame-pointer): Likewise.
20112 (mtls-dialect): Likewise.
20113 (master=): Likewise.
20114 * config/aarch64/aarch64.h (ASM_DECLARE_FUNCTION_NAME): Define.
20115 (aarch64_isa_flags): Remove extern declaration.
20116 * config/aarch64/aarch64.c (aarch64_validate_mcpu): Return a bool
20117 to indicate success or failure.
20118 (aarch64_validate_march): Likewise.
20119 (aarch64_validate_mtune): Likewise.
20120 (aarch64_isa_flags): Delete.
20121 (aarch64_override_options_internal): Access opts->x_aarch64_isa_flags
20122 instead of aarch64_isa_flags.
20123 (aarch64_get_tune_cpu): New function.
20124 (aarch64_get_arch): Likewise.
20125 (aarch64_override_options): Use above and set up explicit_tune_core
20127 (aarch64_print_extension): Move earlier in file. Add isa_flags
20128 argument and use that instead of the global aarch64_isa_flags.
20129 (aarch64_option_save): New function.
20130 (aarch64_option_restore): Likewise.
20131 (aarch64_option_print): Likewise.
20132 (aarch64_declare_function_name): Likewise.
20133 (aarch64_start_file): Delete.
20134 (TARGET_ASM_FILE_START): Do not define.
20135 (TARGET_OPTION_RESTORE, TARGET_OPTION_PRINT): Define.
20136 * config/aarch64/aarch64-protos.h (aarch64_declare_function_name):
20139 2015-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
20141 * config/aarch64/aarch64.opt (momit-leaf-frame-pointer): Initialize
20142 flag_omit_leaf_frame_pointer to 2.
20144 2015-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
20146 * config/aarch64/aarch64.h (TARGET_FIX_ERR_A53_835769_DEFAULT): Always
20148 (TARGET_FIX_ERR_A53_835769): New macro.
20149 * config/aarch64/aarch64.c (aarch64_override_options_internal): Remove
20150 handling of opts->x_aarch64_fix_a53_err835769.
20151 (aarch64_madd_needs_nop): Check for TARGET_FIX_ERR_A53_835769 rather
20152 than aarch64_fix_a53_err835769.
20153 * config/aarch64/aarch64-elf-raw.h: Update for above changes.
20154 * config/aarch64/aarch64-linux.h: Likewise.
20156 2015-08-04 Uros Bizjak <ubizjak@gmail.com>
20158 * config/i386/i386.c (ix86_expand_int_movcc): Check result of
20159 ix86_expand_int_movcc as boolean.
20161 2015-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
20163 * config/aarch64/aarch64.opt (aarch64_arch_string): Delete.
20164 (aarch64_cpu_string): Likewise.
20165 (aarch64_tune_string): Likewise.
20166 * config/aarch64/aarch64.c (aarch64_parse_opt_result): New enum.
20167 (aarch64_parse_extension): Return aarch64_parse_opt_result.
20168 Add extra argument to put result into.
20169 (aarch64_parse_arch): Likewise. Do not set selected_cpu.
20170 (aarch64_parse_cpu): Add arguments to put results into. Return
20171 aarch64_parse_opt_result.
20172 (aarch64_parse_tune): Likewise.
20173 (aarch64_override_options_after_change_1): New function.
20174 (aarch64_override_options_internal): New function.
20175 (aarch64_validate_mcpu): Likewise.
20176 (aarch64_validate_march): Likewise.
20177 (aarch64_validate_mtune): Likewise.
20178 (aarch64_override_options): Update to reflect above changes.
20179 Move some logic into aarch64_override_options_internal.
20180 Initialize target_option_default_node and target_option_current_node.
20181 (aarch64_override_options_after_change): Move logic into
20182 aarch64_override_options_after_change_1 and call it with global_options.
20183 (initialize_aarch64_code_model): Take a gcc_options pointer and use the
20184 flag values from that.
20186 2015-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
20188 * config/aarch64/aarch64.h (TARGET_CPU_CPP_BUILTINS): Define
20189 __ARM_ARCH_8A directly rather than with cpp_define_formatted.
20190 * config/aarch64/aarch64.c (struct processor): Add arch field.
20191 (all_architectures): Handle above, move above all_cores.
20192 (all_cores): Handle above.
20193 (aarch64_parse_arch): Handle above changes.
20194 * config/aarch64/aarch64-arches.def (armv8-a): Extend according to
20195 above. Update comments.
20196 (armv8.1-a): Likewise.
20197 * config/aarch64/aarch64-cores.def: Update according to above.
20198 * config/aarch64/aarch64-opts.h (aarch64_arch): New enum.
20199 * config/aarch64/driver-aarch64.c (struct aarch64_arch): Rename to
20200 aarch64_arch_driver_info.
20202 2015-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
20204 * config/aarch64/aarch64.c (struct processor): Add ident field.
20205 Rename core sched_core.
20206 (all_cores): Handle above changes.
20207 (all_architectures): Likewise.
20208 (aarch64_parse_arch): Likewise.
20209 (aarch64_override_options): Likewise.
20211 2015-08-04 Richard Biener <rguenther@suse.de>
20213 * gimple-fold.c (gimple_fold_stmt_to_constant_1): Remove
20214 dispatching to fold_binary for GIMPLE_BINARY_RHS and for
20215 comparisons embedded in [VEC_]COND_EXPRs.
20217 2015-08-03 Abe Skolnik <a.skolnik@samsung.com>
20219 * tree-if-conv.c: Fix various typos in comments.
20220 * tree-vect-stmts.c: Likewise.
20222 2015-08-04 Thomas Preud'homme <thomas.preudhomme@arm.com>
20224 PR tree-optimization/67043
20225 * loop-invariant.c (move_invariant_reg): Recompute luids in loop
20226 preheader after hoisting invariant in it.
20227 (find_defs): Force recomputation of all luids.
20229 2015-08-03 Peter Bergner <bergner@vnet.ibm.com>
20231 * config/rs6000/htm.md (tabort.): Restrict the source operand to
20232 using a base register.
20234 2015-08-03 David Malcolm <dmalcolm@redhat.com>
20236 * main.c (main): Pass in NULL for toplev's external_timer.
20237 * timevar.c: Include coretypes.h.
20238 (class timer::named_items): New.
20239 (timer::named_items::named_items): New.
20240 (timer::named_items::~named_items): New.
20241 (timer::named_items::push): New.
20242 (timer::named_items::pop): New.
20243 (timer::named_items::print): New.
20244 (timer::timer): Initialize field "m_jit_client_items".
20245 (timer::~timer): New.
20246 (timer::push): Move bulk of implementation to...
20247 (timer::push_internal): ...here. New function.
20248 (timer::pop): Move bulk of implementation to...
20249 (timer::pop_internal): ...here. New function.
20250 (timer::push_client_item): New.
20251 (timer::pop_client_item): New.
20252 (timer::print_row): New function, taken from timer::print.
20253 (timer::print): Print "GCC items" header if we also have client
20254 items. Move row-printing to timer::print_row. Print any client
20256 (timer::get_topmost_item_name): New method.
20257 * timevar.def (TV_JIT_ACQUIRING_MUTEX): New.
20258 (TV_JIT_CLIENT_CODE): New.
20259 * timevar.h (timer::push_client_item): New declaration.
20260 (timer::pop_client_item): New declaration.
20261 (timer::get_topmost_item_name): New method.
20262 (timer::push_internal): New declaration.
20263 (timer::pop_internal): New declaration.
20264 (timer::print_row): New declaration.
20265 (timer::named_items): New declaration.
20266 (timer::m_jit_client_items): New field.
20267 (timer): Add friend class named_items.
20268 (auto_timevar::auto_timevar): Add timer param.
20269 (auto_timevar::~auto_timevar): Use field "m_timer".
20270 (auto_timevar::m_timer): New field.
20271 * toplev.c (initialize_rtl): Add g_timer as param when
20272 constructing auto_timevar instance.
20273 (toplev::toplev): Add "external_timer" param, and use it to
20274 initialize the "g_timer" global if non-NULL.
20275 (toplev::~toplev): If this created "g_timer", delete it.
20276 * toplev.h (toplev::toplev): Replace "use_TV_TOTAL" bool param
20277 with "external_timer" timer *.
20279 2015-08-03 Alexander Basov <coohpt@gmail.com>
20281 PR middle-end/64744
20282 PR middle-end/48470
20283 PR middle-end/43404
20284 * cfgexpand.c (expand_one_var): Add check if stack is going to
20285 be used in naked function.
20286 * expr.c (expand_expr_addr_expr_1): Remove excess checking
20287 whether expression should not reside in MEM.
20288 * function.c (use_register_for_decl): Do not use registers for
20289 non-register things (volatile, float, BLKMode) in naked functions.
20291 2015-08-03 John David Anglin <danglin@gcc.gnu.org>
20294 * config/pa/pa.md (call_reg_64bit): Remove reg:DI 1 clobber.
20295 Adjust splits to match new pattern.
20297 2015-08-03 Michael Meissner <meissner@linux.vnet.ibm.com>
20299 * config/rs6000/vector.md (VEC_L): Add KFmode and TFmode.
20302 (mov<mode>, VEC_M iterator): Add support for IEEE 128-bit floating
20303 point in VSX registers.
20305 * config/rs6000/constraints.md (wb constraint): Document unused
20307 (we constraint): Likewise.
20308 (wo constraint): Likewise.
20309 (wp constraint): New constraint for IEEE 128-bit floating point in
20311 (wq constraint): Likewise.
20313 * config/rs6000/predicates.md (easy_fp_constant): Add support for
20314 IEEE 128-bit floating point in VSX registers.
20315 (easy_scalar_constant): Likewise.
20317 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Add new
20318 constraints (wp, wq) for IEEE 128-bit floating point in VSX
20320 (rs6000_init_hard_regno_mode_ok): Likewise.
20322 * config/rs6000/vsx.md (VSX_LE_128): Add support for IEEE 128-bit
20323 floating point in VSX registers.
20326 (VSX_M2): Likewise.
20332 (vsx_le_permute_<mode>): Add support to properly swap bytes for
20333 IEEE 128-bit floating point in VSX registers on little endian.
20334 (vsx_le_undo_permute_<mode>): Likewise.
20335 (vsx_le_perm_load_<mode>): Likewise.
20336 (vsx_le_perm_store_<mode>): Likewise.
20337 (splitters for IEEE 128-bit fp moves): Likewise.
20339 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Add wp and
20342 * config/rs6000/altivec.md (VM): Add support for IEEE 128-bit
20343 floating point in VSX registers.
20346 * doc/md.text (Machine Constraints): Document wp and wq
20347 constraints on PowerPC.
20349 2015-08-03 Jeff Law <law@redhat.com>
20351 PR middle-end/66314
20352 PR gcov-profile/66899
20353 * tree-ssa-threadupdate.c (mark_threaded_blocks): Correctly
20354 iterate over the jump threading paths when an element in the
20355 jump threading paths array is eliminated.
20357 2015-08-03 Segher Boessenkool <segher@kernel.crashing.org>
20359 * Makefile.in (OBJS): Put gimple-match.o and generic-match.o first.
20361 2015-08-03 Patrick Palka <ppalka@gcc.gnu.org>
20363 * tree-ssa-uninit.c (find_uninit_use): Declare and pass to
20364 is_use_properly_guarded the variable def_preds. Free its
20365 contents before returning.
20366 (prune_uninit_phi_opnds_in_unrealizable_paths): Same.
20367 (is_use_properly_guarded): Replace local variable def_preds with
20368 a parameter. Adjust accordingly. Only update *def_preds if it's
20371 2015-08-03 Richard Biener <rguenther@suse.de>
20373 * genmatch.c (simplify::for_subst_vec): New member.
20374 (binary_ok): New helper for for lowering.
20375 (lower_for): Delay substituting operators into result expressions
20376 if we can merge the results eventually again.
20377 (capture_info::walk_result): Adjust for user_id appearing as
20378 result expression operator.
20379 (expr::gen_transform): Likewise.
20380 (dt_simplify::gen_1): Likewise.
20381 (dt_simplify::gen): Pass not substituted operators to tail
20382 functions or initialize local variable with it.
20383 (decision_tree::gen): Adjust function signature.
20384 * match.pd: Fix tests against global code and add default
20385 cases to switch stmts.
20387 2015-08-03 Richard Biener <rguenther@suse.de>
20389 * genmatch.c (dt_simplify::gen): Create captures array
20390 with an initializer.
20392 2015-08-03 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
20394 * configure.ac: Set aliasing_flags to -fno-strict-aliasing if
20395 the host compiler is affected by placement new aliasing bug.
20396 * configure: Regenerate.
20397 * Makefile.in (ALIASING_FLAGS): New variable.
20398 (ALL_CXXFLAGS): Add $(ALIASING_FLAGS).
20400 2015-08-03 Szabolcs Nagy <szabolcs.nagy@arm.com>
20403 * config/arm/vfp.md (negmuldf3_vfp): Add new pattern.
20404 (negmulsf3_vfp): Likewise.
20405 (muldf3negdf_vfp): Disable for -frounding-math.
20406 (mulsf3negsf_vfp): Likewise.
20407 * config/arm/arm.c (arm_new_rtx_costs): Fix NEG cost for VNMUL,
20408 fix MULT cost with -frounding-math.
20410 2015-08-03 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
20412 * ifcvt.c (noce_try_store_flag_constants): Make logic of the case
20413 when diff == STORE_FLAG_VALUE or diff == -STORE_FLAG_VALUE more
20414 explicit. Prefer to add the flag whenever possible.
20415 (noce_process_if_block): Try noce_try_store_flag_constants before
20418 2015-08-03 Richard Biener <rguenther@suse.de>
20420 * genmatch.c (struct sinfo, struct sinfo_hashmap_traits, sinfo_map_t):
20421 New hash-map to record equivalent transforms.
20422 (dt_node::analyze): Populate the equivalent transforms hash-map.
20423 (dt_simplify::info): Add reference to hash-map entry.
20424 (dt_simplify::gen): If we have split out a function for the
20425 transform, generate a call to it.
20426 (sinfo_hashmap_traits::hash): New function.
20427 (compare_op): New helper function for ...
20428 (sinfo_hashmap_traits::equal_keys): ... this new function.
20429 (decision_tree::gen): Split out common equivalent transforms
20432 2015-08-03 Richard Biener <rguenther@suse.de>
20434 * gimple-fold.c (fold_gimple_assign): Remove folding of
20435 the comparison in COND_EXPRs.
20437 2015-08-03 Richard Biener <rguenther@suse.de>
20439 * gimple-match-head.c (gimple_simplify): For [VEC_]COND_EXPRs
20440 on the rhs of assignments first simplify the embedded
20443 2015-08-03 Richard Biener <rguenther@suse.de>
20445 PR tree-optimization/66917
20446 * tree-vectorizer.h (struct dataref_aux): Add base_element_aligned
20448 (DR_VECT_AUX): New macro.
20449 (set_dr_misalignment): Adjust.
20450 (dr_misalignment): Likewise.
20451 * tree-vect-data-refs.c (vect_compute_data_ref_alignment):
20452 Compute whether the base is at least element aligned.
20453 * tree-vect-stmts.c (ensure_base_align): Adjust.
20454 (vectorizable_store): If the base is not element aligned
20455 preserve alignment of the original access if misalignment is unknown.
20456 (vectorizable_load): Likewise.
20458 2015-08-02 Martin Sebor <msebor@redhat.com>
20460 * doc/invoke.texi (Wframe-address): Document it.
20461 * doc/extend.texi (__builtin_frame_address, __builtin_return_address):
20462 Clarify possible effects of calling the functions with non-zero
20463 arguments and mention -Wframe-address.
20464 * builtins.c (expand_builtin_frame_address): Handle -Wframe-address.
20466 2015-08-01 Michael Collison <michael.collison@linaro.org
20467 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
20469 * config/arm/arm.md (*arm_smin_cmp): New pattern.
20470 (*arm_umin_cmp): Likewise.
20472 2015-08-01 Caroline Tice <cmtice@google.com>
20475 * vtable-verify.c (vtbl_mangled_name_types, vtbl_mangled_name_ids): New
20477 (vtbl_find_mangled_name): New function.
20478 (vtbl_register_mangled_name): New function.
20479 (vtbl_map_get_node): If DECL_ASSEMBLER_NAME is "<anon>", look up
20480 mangled name in mangled name vectors.
20481 (find_or_create_vtbl_map_node): Ditto.
20482 (var_is_used_for_virtual_call_p): Add recursion_depth parameter;
20483 update recursion_depth on function entry; pass it to every recursive
20484 call; automatically exit if depth > 25 (give up looking at that point).
20485 (verify_bb_vtables): Initialize recursion_depth and pass it to
20486 var_is_used_for_virtual_call_p.
20487 * vtable-verify.h (vtbl_mangbled_name_types, vtbl_mangled_name_ids): New
20488 global variable decls.
20489 (vtbl_register_mangled_name): New extern function decl.
20491 2015-08-01 Tom de Vries <tom@codesourcery.com>
20493 * tree.c (operation_can_overflow, operation_no_trapping_overflow): New
20495 * tree.h (operation_can_overflow, operation_no_trapping_overflow):
20497 * tree-vect-loop.c (vect_is_simple_reduction_1): Use
20498 operation_no_trapping_overflow. Allow non-overflow operations.
20499 * graphite-sese-to-poly.c (is_reduction_operation_p): Allow non-overflow
20502 2015-07-31 Kaz Kojima <kkojima@gcc.gnu.org>
20505 * config/sh/sh.md (GOTaddr2picreg): Fix typo.
20507 2015-07-31 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
20509 * config/arm/arm.md (*if_neg_move): Convert to insn_and_split.
20510 Enable for TARGET_32BIT.
20511 (*if_move_neg): Likewise.
20513 2015-07-31 Nick Clifton <nickc@redhat.com>
20515 * config/m32r/m32r.c (m32r_attribute_identifier): New function.
20516 Returns true for __model__.
20517 (TARGET_ATTRIBUTE_TAKES_IDENTIFIER_P): Define.
20519 2015-07-31 Alan Modra <amodra@gmail.com>
20522 * config/rs6000/rs6000.c (machine_function): Add split_stack_argp_used.
20523 (rs6000_emit_prologue): Set it.
20524 (rs6000_set_up_by_prologue): Specify r12 when split_stack_argp_used.
20526 2015-07-31 Richard Biener <rguenther@suse.de>
20528 * fold-const.c (fold_binary_loc): Remove X ^ C1 == C2
20529 -> X == (C1 ^ C2) which is already implemented in match.pd.
20530 Remove redundant dispatching to fold_relational_const.
20531 Move unordered self and NaN compares ...
20532 * match.pd: ... as patterns here. Remove some stray captures
20535 2015-07-31 Petr Murzin <petr.murzin@intel.com>
20537 * config/i386/i386.c
20538 (bdesc_special_args): Convert mask type from signed to unsigned for
20540 (ix86_expand_args_builtin): Do not handle UINT_FTYPE_V2DF,
20541 UINT64_FTYPE_V2DF, UINT64_FTYPE_V4SF, V16QI_FTYPE_V8DI,
20542 V16HI_FTYPE_V16SI, V16SI_FTYPE_V16SI, V16SF_FTYPE_FLOAT,
20543 V8HI_FTYPE_V8DI, V8UHI_FTYPE_V8UHI, V8SI_FTYPE_V8DI, V8SF_FTYPE_V8DF,
20544 V8DI_FTYPE_INT64, V8DI_FTYPE_V4DI, V8DI_FTYPE_V8DI, V8DF_FTYPE_DOUBLE,
20545 V8DF_FTYPE_V8SI, V16SI_FTYPE_V16SI_V16SI, V16SF_FTYPE_V16SF_V16SI,
20546 V8DI_FTYPE_V8DI_V8DI, V8DF_FTYPE_V8DF_V8DI, V4SI_FTYPE_V4SF_V4SF,
20547 V4SF_FTYPE_V4SF_UINT64, V2UDI_FTYPE_V4USI_V4USI, V2DI_FTYPE_V2DF_V2DF,
20548 V2DF_FTYPE_V2DF_UINT64, V4UDI_FTYPE_V8USI_V8USI, QI_FTYPE_V8DI_V8DI,
20549 HI_FTYPE_V16SI_V16SI, HI_FTYPE_HI_INT, V16SF_FTYPE_V16SF_V16SF_V16SF,
20550 V16SF_FTYPE_V16SF_V16SI_V16SF, V16SF_FTYPE_V16SI_V16SF_HI,
20551 V16SF_FTYPE_V16SI_V16SF_V16SF, V16SI_FTYPE_V16SF_V16SI_HI,
20552 V8DI_FTYPE_V8SF_V8DI_QI, V8SF_FTYPE_V8DI_V8SF_QI, V8DI_FTYPE_PV4DI,
20553 V8DF_FTYPE_V8DI_V8DF_QI, V16SI_FTYPE_V16SI_V16SI_V16SI,
20554 V2DI_FTYPE_V2DI_V2DI_V2DI, V8DI_FTYPE_V8DF_V8DI_QI, V8DF_FTYPE_PV4DF,
20555 V8SI_FTYPE_V8SI_V8SI_V8SI, V8DF_FTYPE_V8DF_V8DF_V8DF, UINT_FTYPE_V4SF,
20556 V8DF_FTYPE_V8DF_V8DI_V8DF, V8DF_FTYPE_V8DI_V8DF_V8DF,
20557 V8DF_FTYPE_V8SF_V8DF_QI, V8DI_FTYPE_V8DI_V8DI_V8DI, V16SF_FTYPE_PV4SF,
20558 V8SF_FTYPE_V8DF_V8SF_QI, V8SI_FTYPE_V8DF_V8SI_QI, V16SI_FTYPE_PV4SI,
20559 V2DF_FTYPE_V2DF_V4SF_V2DF_QI, V4SF_FTYPE_V4SF_V2DF_V4SF_QI,
20560 V8DI_FTYPE_V8DI_SI_V8DI_V8DI, QI_FTYPE_V8DF_V8DF_INT_QI,
20561 HI_FTYPE_V16SF_V16SF_INT_HI, V16SF_FTYPE_V16SF_V16SF_V16SI_INT_HI,
20562 VOID_FTYPE_PDOUBLE_V2DF_QI, VOID_FTYPE_PFLOAT_V4SF_QI,
20563 V2DF_FTYPE_PCDOUBLE_V2DF_QI, V4SF_FTYPE_PCFLOAT_V4SF_QI.
20564 * config/i386/i386-builtin-types.def
20565 (V16QI_FTYPE_V16SI): Remove.
20566 (V8DF_FTYPE_V8SI): Ditto.
20567 (V8HI_FTYPE_V8DI): Ditto.
20568 (V8SI_FTYPE_V8DI): Ditto.
20569 (V8SF_FTYPE_V8DF): Ditto.
20570 (V8SF_FTYPE_V8DF_V8SF_QI): Ditto.
20571 (V16HI_FTYPE_V16SI): Ditto.
20572 (V16SF_FTYPE_V16HI): Ditto.
20573 (V16SF_FTYPE_V16HI_V16SF_HI): Ditto.
20574 (V16SF_FTYPE_V16SI): Ditto.
20575 (V4DI_FTYPE_V4DI): Ditto.
20576 (V16SI_FTYPE_V16SF): Ditto.
20577 (V16SF_FTYPE_FLOAT): Ditto.
20578 (V8DF_FTYPE_DOUBLE): Ditto.
20579 (V8DI_FTYPE_INT64): Ditto.
20580 (V8DI_FTYPE_V4DI): Ditto.
20581 (V16QI_FTYPE_V8DI): Ditto.
20582 (UINT_FTYPE_V4SF): Ditto.
20583 (UINT64_FTYPE_V4SF): Ditto.
20584 (UINT_FTYPE_V2DF): Ditto.
20585 (UINT64_FTYPE_V2DF): Ditto.
20586 (V16SI_FTYPE_V16SI): Ditto.
20587 (V8DI_FTYPE_V8DI): Ditto.
20588 (V16SI_FTYPE_PV4SI): Ditto.
20589 (V16SF_FTYPE_PV4SF): Ditto.
20590 (V8DI_FTYPE_PV2DI): Ditto.
20591 (V8DF_FTYPE_PV2DF): Ditto.
20592 (V4DI_FTYPE_PV2DI): Ditto.
20593 (V4DF_FTYPE_PV2DF): Ditto.
20594 (V16SI_FTYPE_PV2SI): Ditto.
20595 (V16SF_FTYPE_PV2SF): Ditto.
20596 (V8DI_FTYPE_PV4DI): Ditto.
20597 (V8DF_FTYPE_PV4DF): Ditto.
20598 (V8SF_FTYPE_FLOAT): Ditto.
20599 (V4SF_FTYPE_FLOAT): Ditto.
20600 (V4DF_FTYPE_DOUBLE): Ditto.
20601 (V8SF_FTYPE_PV4SF): Ditto.
20602 (V8SI_FTYPE_PV4SI): Ditto.
20603 (V4SI_FTYPE_PV2SI): Ditto.
20604 (V8SF_FTYPE_PV2SF): Ditto.
20605 (V8SI_FTYPE_PV2SI): Ditto.
20606 (V16SF_FTYPE_PV8SF): Ditto.
20607 (V16SI_FTYPE_PV8SI): Ditto.
20608 (V8DI_FTYPE_V8SF): Ditto.
20609 (V4DI_FTYPE_V4SF): Ditto.
20610 (V2DI_FTYPE_V4SF): Ditto.
20611 (V64QI_FTYPE_QI): Ditto.
20612 (V32HI_FTYPE_HI): Ditto.
20613 (V8UHI_FTYPE_V8UHI): Ditto.
20614 (V16UHI_FTYPE_V16UHI): Ditto.
20615 (V32UHI_FTYPE_V32UHI): Ditto.
20616 (V2UDI_FTYPE_V2UDI): Ditto.
20617 (V4UDI_FTYPE_V4UDI): Ditto.
20618 (V8UDI_FTYPE_V8UDI): Ditto.
20619 (V4USI_FTYPE_V4USI): Ditto.
20620 (V8USI_FTYPE_V8USI): Ditto.
20621 (V16USI_FTYPE_V16USI): Ditto.
20622 (V2DF_FTYPE_V2DF_UINT64): Ditto.
20623 (V2DI_FTYPE_V2DF_V2DF): Ditto.
20624 (V2UDI_FTYPE_V4USI_V4USI): Ditto.
20625 (V8DF_FTYPE_V8DF_V8DI): Ditto.
20626 (V4SF_FTYPE_V4SF_UINT64): Ditto.
20627 (V4SI_FTYPE_V4SF_V4SF): Ditto.
20628 (V16SF_FTYPE_V16SF_V16SI): Ditto.
20629 (V64QI_FTYPE_V32HI_V32HI): Ditto.
20630 (V32HI_FTYPE_V16SI_V16SI): Ditto.
20631 (V8DF_FTYPE_V8DF_V8DF_V8DI_INT_QI): Ditto.
20632 (V16SF_FTYPE_V16SF_V16SF_V16SI_INT_HI): Ditto.
20633 (V32HI_FTYPE_V64QI_V64QI): Ditto.
20634 (V32HI_FTYPE_V32HI_V32HI): Ditto.
20635 (V16HI_FTYPE_V16HI_V16HI_INT_V16HI_HI): Ditto.
20636 (V16SI_FTYPE_V16SI_V4SI): Ditto.
20637 (V16SI_FTYPE_V16SI_V16SI): Ditto.
20638 (V16SI_FTYPE_V32HI_V32HI): Ditto.
20639 (V16SI_FTYPE_V16SI_SI): Ditto.
20640 (V8DI_FTYPE_V8DI_V8DI): Ditto.
20641 (V4UDI_FTYPE_V8USI_V8USI): Ditto.
20642 (V8DI_FTYPE_V16SI_V16SI): Ditto.
20643 (V8DI_FTYPE_V8DI_V2DI): Ditto.
20644 (QI_FTYPE_QI): Ditto.
20645 (SI_FTYPE_SI): Ditto.
20646 (DI_FTYPE_DI): Ditto.
20647 (QI_FTYPE_QI_QI): Ditto.
20648 (QI_FTYPE_QI_INT): Ditto.
20649 (HI_FTYPE_HI_INT): Ditto.
20650 (SI_FTYPE_SI_INT): Ditto.
20651 (DI_FTYPE_DI_INT): Ditto.
20652 (HI_FTYPE_V16QI_V16QI): Ditto.
20653 (SI_FTYPE_V32QI_V32QI): Ditto.
20654 (DI_FTYPE_V64QI_V64QI): Ditto.
20655 (QI_FTYPE_V8HI_V8HI): Ditto.
20656 (HI_FTYPE_V16HI_V16HI): Ditto.
20657 (SI_FTYPE_V32HI_V32HI): Ditto.
20658 (QI_FTYPE_V4SI_V4SI): Ditto.
20659 (QI_FTYPE_V8SI_V8SI): Ditto.
20660 (QI_FTYPE_V2DI_V2DI): Ditto.
20661 (QI_FTYPE_V4DI_V4DI): Ditto.
20662 (QI_FTYPE_V8DI_V8DI): Ditto.
20663 (HI_FTYPE_V16SI_V16SI): Ditto.
20664 (HI_FTYPE_V16SI_V16SI_INT_HI): Ditto.
20665 (QI_FTYPE_V8DF_V8DF_INT_QI): Ditto.
20666 (HI_FTYPE_V16SF_V16SF_INT_HI): Ditto.
20667 (V32HI_FTYPE_V32HI_V32HI_V32HI): Ditto.
20668 (V4SF_FTYPE_V4SF_V2DF_V4SF_QI): Ditto.
20669 (V8DF_FTYPE_V8DF_V8DF_V8DF): Ditto.
20670 (V16SF_FTYPE_V16SF_V16SF_V16SF): Ditto.
20671 (V8DF_FTYPE_V8SF_V8DF_QI): Ditto.
20672 (V8DI_FTYPE_V8DF_V8DI_QI): Ditto.
20673 (V8DF_FTYPE_V8DI_V8DF_V8DF): Ditto.
20674 (V2DF_FTYPE_V2DF_V4SF_V2DF_QI): Ditto.
20675 (V16SF_FTYPE_V16SI_V16SF_HI): Ditto.
20676 (V16SF_FTYPE_V16SI_V16SF_V16SF): Ditto.
20677 (V8SI_FTYPE_V8DF_V8SI_QI): Ditto.
20678 (V8DI_FTYPE_PCCHAR_V8DI_QI): Ditto.
20679 (V8SF_FTYPE_PCFLOAT_V8SF_QI): Ditto.
20680 (V4SF_FTYPE_PCFLOAT_V4SF_QI): Ditto.
20681 (V4DF_FTYPE_PCDOUBLE_V4DF_QI): Ditto.
20682 (V2DF_FTYPE_PCDOUBLE_V2DF_QI): Ditto.
20683 (V8SI_FTYPE_PCCHAR_V8SI_QI): Ditto.
20684 (V4SI_FTYPE_PCCHAR_V4SI_QI): Ditto.
20685 (V4DI_FTYPE_PCCHAR_V4DI_QI): Ditto.
20686 (V2DI_FTYPE_PCCHAR_V2DI_QI): Ditto.
20687 (V16SF_FTYPE_PCV8SF_V16SF_HI): Ditto.
20688 (V16SI_FTYPE_PCV8SI_V16SI_HI): Ditto.
20689 (V8DF_FTYPE_PCV2DF_V8DF_QI): Ditto.
20690 (V8SF_FTYPE_PCV4SF_V8SF_QI): Ditto.
20691 (V8DI_FTYPE_PCV2DI_V8DI_QI): Ditto.
20692 (V8SI_FTYPE_PCV4SI_V8SI_QI): Ditto.
20693 (V4DF_FTYPE_PCV2DF_V4DF_QI): Ditto.
20694 (V4DI_FTYPE_PCV2DI_V4DI_QI): Ditto.
20695 (VOID_FTYPE_PDOUBLE_V2DF_QI): Ditto.
20696 (VOID_FTYPE_PFLOAT_V4SF_QI): Ditto.
20697 (V16SI_FTYPE_V16SF_V16SI_HI): Ditto.
20698 (V8DI_FTYPE_V8SF_V8DI_QI): Ditto.
20699 (V8SF_FTYPE_V8DI_V8SF_QI): Ditto.
20700 (V8DF_FTYPE_V8DI_V8DF_QI): Ditto.
20701 (V2DF_FTYPE_V2DF_V2DF_V2DI): Ditto.
20702 (V4SF_FTYPE_V4SF_V4SF_V4SI): Ditto.
20703 (V2UDI_FTYPE_V2UDI_V2UDI_V2UDI): Ditto.
20704 (V4USI_FTYPE_V4USI_V4USI_V4USI): Ditto.
20705 (V8UHI_FTYPE_V8UHI_V8UHI_V8UHI): Ditto.
20706 (V16UQI_FTYPE_V16UQI_V16UQI_V16UQI): Ditto.
20707 (V4DF_FTYPE_V4DF_V4DF_V4DI): Ditto.
20708 (V8SF_FTYPE_V8SF_V8SF_V8SI): Ditto.
20709 (V8DI_FTYPE_V8DI_V8DI_V8DI): Ditto.
20710 (V16SI_FTYPE_V16SI_V16SI_V16SI): Ditto.
20711 (V2DF_FTYPE_V2DF_V2DI_V2DF): Ditto.
20712 (V4DF_FTYPE_V4DF_V4DI_V4DF): Ditto.
20713 (V8DF_FTYPE_V8DF_V8DI_V8DF): Ditto.
20714 (V4SF_FTYPE_V4SF_V4SI_V4SF): Ditto.
20715 (V8SF_FTYPE_V8SF_V8SI_V8SF): Ditto.
20716 (V16SF_FTYPE_V16SF_V16SI_V16SF): Ditto.
20717 (V8DI_FTYPE_V8DI_SI_V8DI_V8DI): Ditto.
20718 (PVOID_FTYPE_PVOID_PVOID_ULONG): Ditto.
20719 (V4SF_FTYPE_V2DF_V4SF_QI): Convert mask type from signed to unsigned.
20720 (V4SF_FTYPE_V4DF_V4SF_QI): Ditto.
20721 (V4SF_FTYPE_V8HI_V4SF_QI): Ditto.
20722 (V8SF_FTYPE_V8HI_V8SF_QI): Ditto.
20723 (V16SI_FTYPE_V16SI_V16SI_HI): Ditto.
20724 (V8DI_FTYPE_V8DI_V8DI_QI): Ditto.
20725 (V2DF_FTYPE_V4DF_INT_V2DF_QI): Ditto.
20726 (V2DF_FTYPE_V8DF_INT_V2DF_QI): Ditto.
20727 (V2DI_FTYPE_V2DI_INT_V2DI_QI): Ditto.
20728 (V4DF_FTYPE_V8DF_INT_V4DF_QI): Ditto.
20729 (V4SF_FTYPE_V8SF_INT_V4SF_QI): Ditto.
20730 (V4SI_FTYPE_V2DF_V4SI_QI): Ditto.
20731 (V4SI_FTYPE_V4SI_INT_V4SI_QI): Ditto.
20732 (V4SI_FTYPE_V8HI_V8HI_V4SI_QI): Ditto.
20733 (V4SI_FTYPE_V8SI_INT_V4SI_QI): Ditto.
20734 (V8HI_FTYPE_V16QI_V16QI_V8HI_QI): Ditto.
20735 (V8HI_FTYPE_V8SF_INT_V8HI_QI): Ditto.
20736 (V8HI_FTYPE_V4SF_INT_V8HI_QI): Ditto.
20737 (V8SF_FTYPE_V16SF_INT_V8SF_QI): Ditto.
20738 (V4SF_FTYPE_V16SF_INT_V4SF_QI): Ditto.
20739 (V8DF_FTYPE_V8DF_V2DF_INT_V8DF_QI): Ditto.
20740 (V8DF_FTYPE_V8DF_V4DF_INT_V8DF_QI): Ditto.
20741 (V8DF_FTYPE_V8DF_V8DF_INT_V8DF_QI): Ditto.
20742 (V8DF_FTYPE_V8DF_INT_V8DF_QI): Ditto.
20743 (V4DF_FTYPE_V4DF_V4DF_V4DI_INT_QI): Ditto.
20744 (V2DF_FTYPE_V2DF_V2DF_V2DI_INT_QI): Ditto.
20745 (V16SF_FTYPE_V16SF_V16SF_INT_V16SF_HI): Ditto.
20746 (V16SF_FTYPE_V16SF_INT_V16SF_HI): Ditto.
20747 (V16SI_FTYPE_V16SI_V4SI_INT_V16SI_HI): Ditto.
20748 (V8SF_FTYPE_V8SF_V8SF_V8SI_INT_QI): Ditto.
20749 (V4SF_FTYPE_V4SF_V4SF_V4SI_INT_QI): Ditto.
20750 (V16SF_FTYPE_V16SF_V4SF_INT_V16SF_HI): Ditto.
20751 (V16SF_FTYPE_V16SF_V8SF_INT_V16SF_HI): Ditto.
20752 (V16HI_FTYPE_V32QI_V32QI_V16HI_HI): Ditto.
20753 (V32HI_FTYPE_V64QI_V64QI_V32HI_SI): Ditto.
20754 (V16HI_FTYPE_V16SF_INT_V16HI_HI): Ditto.
20755 (V16SI_FTYPE_V16SI_V8SI_INT_V16SI_HI): Ditto.
20756 (V4SI_FTYPE_V16SI_INT_V4SI_QI): Ditto.
20757 (V16SI_FTYPE_V16SI_V16SI_INT_V16SI_HI): Ditto.
20758 (V8SI_FTYPE_V16HI_V16HI_V8SI_QI): Ditto.
20759 (V16SI_FTYPE_V32HI_V32HI_V16SI_HI): Ditto.
20760 (V8SI_FTYPE_V8SI_INT_V8SI_QI): Ditto.
20761 (V8SI_FTYPE_V16SI_INT_V8SI_QI): Ditto.
20762 (V16SI_FTYPE_V16SI_V4SI_V16SI_HI): Ditto.
20763 (V16SI_FTYPE_V16SI_INT_V16SI_HI): Ditto.
20764 (V8DI_FTYPE_V8DI_V8DI_INT_V8DI_QI): Ditto.
20765 (V8DI_FTYPE_V8DI_V8DI_INT_V8DI_DI): Ditto.
20766 (V4DI_FTYPE_V4DI_V4DI_INT_V4DI_SI): Ditto.
20767 (V2DI_FTYPE_V2DI_V2DI_INT_V2DI_HI): Ditto.
20768 (V8DI_FTYPE_V8DI_V2DI_INT_V8DI_QI): Ditto.
20769 (V8DI_FTYPE_V8DI_V4DI_INT_V8DI_QI): Ditto.
20770 (V4DI_FTYPE_V8DI_INT_V4DI_QI): Ditto.
20771 (V8DI_FTYPE_V8DI_V2DI_V8DI_QI): Ditto.
20772 (V8DI_FTYPE_V8DI_INT_V8DI_QI): Ditto.
20773 (V4DI_FTYPE_V4DI_INT_V4DI_QI): Ditto.
20774 (V2DI_FTYPE_V4DI_INT_V2DI_QI): Ditto.
20775 (V2DI_FTYPE_V8DI_INT_V2DI_QI): Ditto.
20776 (HI_FTYPE_HI): Ditto.
20777 (HI_FTYPE_V16QI): Ditto.
20778 (SI_FTYPE_V32QI): Ditto.
20779 (DI_FTYPE_V64QI): Ditto.
20780 (QI_FTYPE_V8HI): Ditto.
20781 (HI_FTYPE_V16HI): Ditto.
20782 (SI_FTYPE_V32HI): Ditto.
20783 (QI_FTYPE_V4SI): Ditto.
20784 (QI_FTYPE_V8SI): Ditto.
20785 (HI_FTYPE_V16SI): Ditto.
20786 (QI_FTYPE_V2DI): Ditto.
20787 (QI_FTYPE_V4DI): Ditto.
20788 (QI_FTYPE_V8DI): Ditto.
20789 (V16QI_FTYPE_HI): Ditto.
20790 (V32QI_FTYPE_SI): Ditto.
20791 (V64QI_FTYPE_DI): Ditto.
20792 (V8HI_FTYPE_QI): Ditto.
20793 (V16HI_FTYPE_HI): Ditto.
20794 (V32HI_FTYPE_SI): Ditto.
20795 (V4SI_FTYPE_QI): Ditto.
20796 (V4SI_FTYPE_HI): Ditto.
20797 (V8SI_FTYPE_QI): Ditto.
20798 (V8SI_FTYPE_HI): Ditto.
20799 (V2DI_FTYPE_QI): Ditto.
20800 (V4DI_FTYPE_QI): Ditto.
20801 (HI_FTYPE_HI_HI): Ditto.
20802 (SI_FTYPE_SI_SI): Ditto.
20803 (DI_FTYPE_DI_DI): Ditto.
20804 (HI_FTYPE_V16QI_V16QI_HI): Ditto.
20805 (HI_FTYPE_V16QI_V16QI_INT_HI): Ditto.
20806 (SI_FTYPE_V32QI_V32QI_SI): Ditto.
20807 (SI_FTYPE_V32QI_V32QI_INT_SI): Ditto.
20808 (DI_FTYPE_V64QI_V64QI_DI): Ditto.
20809 (DI_FTYPE_V64QI_V64QI_INT_DI): Ditto.
20810 (QI_FTYPE_V8HI_V8HI_QI): Ditto.
20811 (QI_FTYPE_V8HI_V8HI_INT_QI): Ditto.
20812 (HI_FTYPE_V16HI_V16HI_HI): Ditto.
20813 (HI_FTYPE_V16HI_V16HI_INT_HI): Ditto.
20814 (SI_FTYPE_V32HI_V32HI_SI): Ditto.
20815 (SI_FTYPE_V32HI_V32HI_INT_SI): Ditto.
20816 (QI_FTYPE_V4SI_V4SI_QI): Ditto.
20817 (QI_FTYPE_V4SI_V4SI_INT_QI): Ditto.
20818 (QI_FTYPE_V8SI_V8SI_QI): Ditto.
20819 (QI_FTYPE_V8SI_V8SI_INT_QI): Ditto.
20820 (QI_FTYPE_V2DI_V2DI_QI): Ditto.
20821 (QI_FTYPE_V2DI_V2DI_INT_QI): Ditto.
20822 (QI_FTYPE_V4DI_V4DI_QI): Ditto.
20823 (QI_FTYPE_V4DI_V4DI_INT_QI): Ditto.
20824 (QI_FTYPE_V8DI_V8DI_QI): Ditto.
20825 (HI_FTYPE_V16SI_V16SI_HI): Ditto.
20826 (QI_FTYPE_V8DI_V8DI_INT): Ditto.
20827 (QI_FTYPE_V8DI_V8DI_INT_QI): Ditto.
20828 (HI_FTYPE_V16SI_V16SI_INT): Ditto.
20829 (HI_FTYPE_V16SI_V16SI_INT _HI): Ditto.
20830 (QI_FTYPE_V8DF_V8DF_INT): Ditto.
20831 (QI_FTYPE_V8DF_V8DF_INT_QI_INT): Ditto.
20832 (HI_FTYPE_V16SF_V16SF_INT): Ditto.
20833 (HI_FTYPE_V16SF_V16SF_INT_HI_INT): Ditto.
20834 (QI_FTYPE_V2DF_V2DF_INT): Ditto.
20835 (QI_FTYPE_V2DF_V2DF_INT_QI): Ditto.
20836 (QI_FTYPE_V2DF_V2DF_INT_QI_INT): Ditto.
20837 (QI_FTYPE_V4SF_V4SF_INT): Ditto.
20838 (QI_FTYPE_V4SF_V4SF_INT_QI): Ditto.
20839 (QI_FTYPE_V4SF_V4SF_INT_QI_INT): Ditto.
20840 (V16SI_FTYPE_HI): Ditto.
20841 (V8DI_FTYPE_QI): Ditto.
20842 (V2DF_FTYPE_V2DI_V2DF_V2DF_QI): Ditto.
20843 (V2DF_FTYPE_V2DF_V2DI_V2DF_QI): Ditto.
20844 (V4DF_FTYPE_V4DF_V2DF_INT_V4DF_QI): Ditto.
20845 (V4SF_FTYPE_V4SI_V4SF_V4SF_QI): Ditto.
20846 (V4SF_FTYPE_V4SF_V4SI_V4SF_QI): Ditto.
20847 (V4SF_FTYPE_V4SF_V4SF_V4SF_QI): Ditto.
20848 (V8SF_FTYPE_V8SF_V4SF_INT_V8SF_QI): Ditto.
20849 (V8SI_FTYPE_V8SI_V4SI_INT_V8SI_QI): Ditto.
20850 (V4DI_FTYPE_V4DI_V2DI_INT_V4DI_QI): Ditto.
20851 (V2DF_FTYPE_V2DF_V2DF_QI): Ditto.
20852 (V2DF_FTYPE_V4SF_V2DF_QI): Ditto.
20853 (V2DF_FTYPE_V4SI_V2DF_QI): Ditto.
20854 (V4DF_FTYPE_V4DF_V4DF_QI): Ditto.
20855 (V4DF_FTYPE_V4SF_V4DF_QI): Ditto.
20856 (V4DF_FTYPE_V4SI_V4DF_QI): Ditto.
20857 (V8DF_FTYPE_V8DF_V8DF_QI): Ditto.
20858 (V8DF_FTYPE_V8SI_V8DF_QI): Ditto.
20859 (V2DI_FTYPE_V4SI_V2DI_QI): Ditto.
20860 (V2DI_FTYPE_V8HI_V2DI_QI): Ditto.
20861 (V4DI_FTYPE_V4DF_V4DI_QI): Ditto.
20862 (V2DI_FTYPE_V2DF_V2DI_QI): Ditto.
20863 (V2DI_FTYPE_V2DI_V2DI_V2DI_QI): Ditto.
20864 (V2DI_FTYPE_V2DI_V2DI_INT_V2DI_QI): Ditto.
20865 (V4DI_FTYPE_V4DI_V4DI_V4DI_QI): Ditto.
20866 (V4DI_FTYPE_V4DI_V4DI_INT_V4DI_QI): Ditto.
20867 (V8DI_FTYPE_V8SI_V8DI_QI): Ditto.
20868 (V8DI_FTYPE_V8HI_V8DI_QI): Ditto.
20869 (V8DI_FTYPE_V16QI_V8DI_QI): Ditto.
20870 (V2DI_FTYPE_V16QI_V2DI_QI): Ditto.
20871 (V4DI_FTYPE_V16QI_V4DI_QI): Ditto.
20872 (V4DI_FTYPE_V4DI_V4DI_QI): Ditto.
20873 (V4DI_FTYPE_V4SI_V4DI_QI): Ditto.
20874 (V4DI_FTYPE_V8HI_V4DI_QI): Ditto.
20875 (V8DI_FTYPE_V8DI_V8DI_V8DI_QI): Ditto.
20876 (V8DF_FTYPE_V8DI_V8DF_V8DF_QI): Ditto.
20877 (V8DF_FTYPE_V8DF_V8DI_V8DF_QI): Ditto.
20878 (V4DF_FTYPE_V4DI_V4DF_V4DF_QI): Ditto.
20879 (V4DF_FTYPE_V4DF_V4DI_V4DF_QI): Ditto.
20880 (V4DF_FTYPE_V4DF_V4DF_V4DF_QI): Ditto.
20881 (V8DF_FTYPE_V8DF_V8DF_V8DF_QI): Ditto.
20882 (V16QI_FTYPE_V16QI_V16QI_V16QI_HI): Ditto.
20883 (V16HI_FTYPE_V16HI_V16HI_V16HI_HI): Ditto.
20884 (V16SI_FTYPE_V16SI_V16SI_V16SI_HI): Ditto.
20885 (V2DF_FTYPE_V2DF_V2DF_V2DF_QI): Ditto.
20886 (V32HI_FTYPE_V32HI_V32HI_V32HI_SI): Ditto.
20887 (V64QI_FTYPE_V64QI_V64QI_V64QI_DI): Ditto.
20888 (V32QI_FTYPE_V32QI_V32QI_V32QI_SI): Ditto.
20889 (V8HI_FTYPE_V8HI_V8HI_V8HI_QI): Ditto.
20890 (V4SF_FTYPE_V4SF_V4SF_QI): Ditto.
20891 (V4SF_FTYPE_V4SI_V4SF_QI): Ditto.
20892 (V8SF_FTYPE_V8SF_V8SF_QI): Ditto.
20893 (V8SF_FTYPE_V8SI_V8SF_QI): Ditto.
20894 (V16SF_FTYPE_V16SF_V16SF_HI): Ditto.
20895 (V4SI_FTYPE_V16QI_V4SI_QI): Ditto.
20896 (V4SI_FTYPE_V8HI_V4SI_QI): Ditto.
20897 (V8SI_FTYPE_V8SI_V8SI_QI): Ditto.
20898 (V8SI_FTYPE_V8HI_V8SI_QI): Ditto.
20899 (V8SI_FTYPE_V16QI_V8SI_QI): Ditto.
20900 (V4SI_FTYPE_V4SI_V4SI_V4SI_QI): Ditto.
20901 (V4SI_FTYPE_V4SI_V4SI_INT_V4SI_QI): Ditto.
20902 (V8SF_FTYPE_V8SF_V8SF_V8SF_QI): Ditto.
20903 (V8SF_FTYPE_V8SI_V8SF_V8SF_QI): Ditto.
20904 (V8SF_FTYPE_V8SF_V8SI_V8SF_QI): Ditto.
20905 (V8SI_FTYPE_V8SI_V8SI_V8SI_QI): Ditto.
20906 (V8SI_FTYPE_V8SI_V8SI_INT_V8SI_QI): Ditto.
20907 (V16SF_FTYPE_V16SF_V16SF_V16SF_HI): Ditto.
20908 (V16SF_FTYPE_V16SI_V16SF_V16SF_HI): Ditto.
20909 (V16SF_FTYPE_V16SF_V16SI_V16SF_HI): Ditto.
20910 (V16SF_FTYPE_V8SF_V16SF_HI): Ditto.
20911 (V16SF_FTYPE_V4SF_V16SF_HI): Ditto.
20912 (V8DF_FTYPE_V4DF_V8DF_QI): Ditto.
20913 (V8DF_FTYPE_V2DF_V8DF_QI): Ditto.
20914 (V16SI_FTYPE_V8SI_V16SI_HI): Ditto.
20915 (V16SI_FTYPE_V4SI_V16SI_HI): Ditto.
20916 (V16SI_FTYPE_SI_V16SI_HI): Ditto.
20917 (V16SI_FTYPE_V16HI_V16SI_HI): Ditto.
20918 (V16SI_FTYPE_V16QI_V16SI_HI): Ditto.
20919 (V8DI_FTYPE_V4DI_V8DI_QI): Ditto.
20920 (V4SI_FTYPE_V4DF_V4SI_QI): Ditto.
20921 (V8DI_FTYPE_V2DI_V8DI_QI): Ditto.
20922 (V8DI_FTYPE_DI_V8DI_QI): Ditto.
20923 (V16QI_FTYPE_V16SI_V16QI_HI): Ditto.
20924 (V16QI_FTYPE_V8DI_V16QI_QI): Ditto.
20925 (V32HI_FTYPE_V32HI_V32HI_SI): Ditto.
20926 (V32HI_FTYPE_V32QI_V32HI_SI): Ditto.
20927 (V16HI_FTYPE_V16HI_V16HI_HI): Ditto.
20928 (V16HI_FTYPE_V16QI_V16HI_HI): Ditto.
20929 (V8HI_FTYPE_V16QI_V8HI_QI): Ditto.
20930 (V8SF_FTYPE_V4SF_V8SF_QI): Ditto.
20931 (V4DF_FTYPE_V2DF_V4DF_QI): Ditto.
20932 (V8SI_FTYPE_V4SI_V8SI_QI): Ditto.
20933 (V8SI_FTYPE_SI_V8SI_QI): Ditto.
20934 (V4SI_FTYPE_V4SI_V4SI_QI): Ditto.
20935 (V4SI_FTYPE_SI_V4SI_QI): Ditto.
20936 (V4DI_FTYPE_V2DI_V4DI_QI): Ditto.
20937 (V4DI_FTYPE_DI_V4DI_QI): Ditto.
20938 (V2DI_FTYPE_V2DI_V2DI_QI): Ditto.
20939 (V2DI_FTYPE_DI_V2DI_QI): Ditto.
20940 (V64QI_FTYPE_V64QI_V64QI_DI): Ditto.
20941 (V64QI_FTYPE_V16QI_V64QI_DI): Ditto.
20942 (V64QI_FTYPE_QI_V64QI_DI): Ditto.
20943 (V32QI_FTYPE_V32QI_V32QI_SI): Ditto.
20944 (V32QI_FTYPE_V16QI_V32QI_SI): Ditto.
20945 (V32QI_FTYPE_QI_V32QI_SI): Ditto.
20946 (V16QI_FTYPE_V16QI_V16QI_HI): Ditto.
20947 (V16QI_FTYPE_QI_V16QI_HI): Ditto.
20948 (V32HI_FTYPE_V8HI_V32HI_SI): Ditto.
20949 (V32HI_FTYPE_HI_V32HI_SI): Ditto.
20950 (V16HI_FTYPE_V8HI_V16HI_HI): Ditto.
20951 (V16HI_FTYPE_HI_V16HI_HI): Ditto.
20952 (V8HI_FTYPE_V8HI_V8HI_QI): Ditto.
20953 (V8HI_FTYPE_HI_V8HI_QI): Ditto.
20954 (V64QI_FTYPE_PCV64QI_V64QI_DI): Ditto.
20955 (V32HI_FTYPE_PCV32HI_V32HI_SI): Ditto.
20956 (V32QI_FTYPE_PCV32QI_V32QI_SI): Ditto.
20957 (V16SF_FTYPE_PCV16SF_V16SF_HI): Ditto.
20958 (V8DF_FTYPE_PCV8DF_V8DF_QI): Ditto.
20959 (V16SI_FTYPE_PCV16SI_V16SI_HI): Ditto.
20960 (V16HI_FTYPE_PCV16HI_V16HI_HI): Ditto.
20961 (V16QI_FTYPE_PCV16QI_V16QI_HI): Ditto.
20962 (V8SF_FTYPE_PCV8SF_V8SF_QI): Ditto.
20963 (V8DI_FTYPE_PCV8DI_V8DI_QI): Ditto.
20964 (V8SI_FTYPE_PCV8SI_V8SI_QI): Ditto.
20965 (V8HI_FTYPE_PCV8HI_V8HI_QI): Ditto.
20966 (V4DF_FTYPE_PCV4DF_V4DF_QI): Ditto.
20967 (V4SF_FTYPE_PCV4SF_V4SF_QI): Ditto.
20968 (V4DI_FTYPE_PCV4DI_V4DI_QI): Ditto.
20969 (V4SI_FTYPE_PCV4SI_V4SI_QI): Ditto.
20970 (V2DF_FTYPE_PCV2DF_V2DF_QI): Ditto.
20971 (V2DI_FTYPE_PCV2DI_V2DI_QI): Ditto.
20972 (V16HI_FTYPE_V16SI_V16HI_HI): Ditto.
20973 (V8SI_FTYPE_V8DI_V8SI_QI): Ditto.
20974 (V8HI_FTYPE_V8DI_V8HI_QI): Ditto.
20975 (V16QI_FTYPE_V8HI_V16QI_QI): Ditto.
20976 (V16QI_FTYPE_V16HI_V16QI_HI): Ditto.
20977 (V16QI_FTYPE_V4SI_V16QI_QI): Ditto.
20978 (V16QI_FTYPE_V8SI_V16QI_QI): Ditto.
20979 (V8HI_FTYPE_V4SI_V8HI_QI): Ditto.
20980 (V8HI_FTYPE_V8SI_V8HI_QI): Ditto.
20981 (V16QI_FTYPE_V2DI_V16QI_QI): Ditto.
20982 (V16QI_FTYPE_V4DI_V16QI_QI): Ditto.
20983 (V8HI_FTYPE_V2DI_V8HI_QI): Ditto.
20984 (V8HI_FTYPE_V4DI_V8HI_QI): Ditto.
20985 (V4SI_FTYPE_V2DI_V4SI_QI): Ditto.
20986 (V4SI_FTYPE_V4DI_V4SI_QI): Ditto.
20987 (V32QI_FTYPE_V32HI_V32QI_SI): Ditto.
20988 (V2DF_FTYPE_V2DF_INT_V2DF_QI): Ditto.
20989 (V4DF_FTYPE_V4DF_INT_V4DF_QI): Ditto.
20990 (V4SF_FTYPE_V4SF_INT_V4SF_QI): Ditto.
20991 (V8SF_FTYPE_V8SF_INT_V8SF_QI): Ditto.
20992 (V4DF_FTYPE_V4DF_V4DF_INT_V4DF_QI): Ditto.
20993 (V2DF_FTYPE_V2DF_V2DF_INT_V2DF_QI): Ditto.
20994 (V8SF_FTYPE_V8SF_V8SF_INT_V8SF_QI): Ditto.
20995 (V4SF_FTYPE_V4SF_V4SF_INT_V4SF_QI): Ditto.
20996 (VOID_FTYPE_PV8DF_V8DF_QI): Ditto.
20997 (VOID_FTYPE_PV8SI_V8DI_QI): Ditto.
20998 (VOID_FTYPE_PV8HI_V8DI_QI): Ditto.
20999 (VOID_FTYPE_PV8HI_V4DI_QI): Ditto.
21000 (VOID_FTYPE_PV8HI_V2DI_QI): Ditto.
21001 (VOID_FTYPE_PV4SI_V4DI_QI): Ditto.
21002 (VOID_FTYPE_PV4SI_V2DI_QI): Ditto.
21003 (VOID_FTYPE_PV8HI_V8SI_QI): Ditto.
21004 (VOID_FTYPE_PV8HI_V4SI_QI): Ditto.
21005 (VOID_FTYPE_PV4DF_V4DF_QI): Ditto.
21006 (VOID_FTYPE_PV2DF_V2DF_QI): Ditto.
21007 (VOID_FTYPE_PV16SF_V16SF_HI): Ditto.
21008 (VOID_FTYPE_PV8SF_V8SF_QI): Ditto.
21009 (VOID_FTYPE_PV4SF_V4SF_QI): Ditto.
21010 (VOID_FTYPE_PV8DI_V8DI_QI): Ditto.
21011 (VOID_FTYPE_PV4DI_V4DI_QI): Ditto.
21012 (VOID_FTYPE_PV2DI_V2DI_QI): Ditto.
21013 (VOID_FTYPE_PV16SI_V16SI_HI): Ditto.
21014 (VOID_FTYPE_PV16HI_V16SI_HI): Ditto.
21015 (VOID_FTYPE_PV16QI_V16SI_HI): Ditto.
21016 (VOID_FTYPE_PV16QI_V8SI_QI): Ditto.
21017 (VOID_FTYPE_PV16QI_V4SI_QI): Ditto.
21018 (VOID_FTYPE_PV16QI_V8DI_QI): Ditto.
21019 (VOID_FTYPE_PV16QI_V4DI_QI): Ditto.
21020 (VOID_FTYPE_PV16QI_V2DI_QI): Ditto.
21021 (VOID_FTYPE_PV8SI_V8SI_QI): Ditto.
21022 (VOID_FTYPE_PV4SI_V4SI_QI): Ditto.
21023 (VOID_FTYPE_PV32HI_V32HI_SI): Ditto.
21024 (VOID_FTYPE_PV16HI_V16HI_HI): Ditto.
21025 (VOID_FTYPE_PV8HI_V8HI_QI): Ditto.
21026 (VOID_FTYPE_PV64QI_V64QI_DI): Ditto.
21027 (VOID_FTYPE_PV32QI_V32QI_SI): Ditto.
21028 (VOID_FTYPE_PV16QI_V16QI_HI): Ditto.
21029 (V8DI_FTYPE_V8DI_V8DI_V8DI_INT_QI): Ditto.
21030 (V8SI_FTYPE_V8SF_V8SI_QI): Ditto.
21031 (V4SI_FTYPE_V4SF_V4SI_QI): Ditto.
21032 (V4DI_FTYPE_V4SF_V4DI_QI): Ditto.
21033 (V2DI_FTYPE_V4SF_V2DI_QI): Ditto.
21034 (V4SF_FTYPE_V4DI_V4SF_QI): Ditto.
21035 (V4SF_FTYPE_V2DI_V4SF_QI): Ditto.
21036 (V4DF_FTYPE_V4DI_V4DF_QI): Ditto.
21037 (V2DF_FTYPE_V2DI_V2DF_QI): Ditto.
21038 (V32HI_FTYPE_V32HI_INT_V32HI_SI): Ditto.
21039 (V32HI_FTYPE_V32HI_V8HI_V32HI_SI): Ditto.
21040 (V16HI_FTYPE_V16HI_INT_V16HI_HI): Ditto.
21041 (V16HI_FTYPE_V16HI_V8HI_V16HI_HI): Ditto.
21042 (V8HI_FTYPE_V8HI_INT_V8HI_QI): Ditto.
21043 (V32HI_FTYPE_V64QI_V64QI_INT_V32HI_SI): Ditto.
21044 (V16HI_FTYPE_V32QI_V32QI_INT_V16HI_HI): Ditto.
21045 (V8HI_FTYPE_V16QI_V16QI_INT_V8HI_QI): Ditto.
21046 (V64QI_FTYPE_V32HI_V32HI_V64QI_DI): Ditto.
21047 (V32QI_FTYPE_V16HI_V16HI_V32QI_SI): Ditto.
21048 (V16QI_FTYPE_V8HI_V8HI_V16QI_HI): Ditto.
21049 (V32HI_FTYPE_V16SI_V16SI_V32HI_SI): Ditto.
21050 (V16HI_FTYPE_V8SI_V8SI_V16HI_HI): Ditto.
21051 (V8HI_FTYPE_V4SI_V4SI_V8HI_QI): Ditto.
21052 (V8DI_FTYPE_V16SI_V16SI_V8DI_QI): Ditto.
21053 (V4DI_FTYPE_V8SI_V8SI_V4DI_QI): Ditto.
21054 (V2DI_FTYPE_V4SI_V4SI_V2DI_QI): Ditto.
21055 (V16SI_FTYPE_V16SI_V16SI_V16SI_INT_HI): Ditto.
21056 (V8SI_FTYPE_V8SI_V8SI_V8SI_INT_QI): Ditto.
21057 (V4DI_FTYPE_V4DI_V4DI_V4DI_INT_QI): Ditto.
21058 (V4SI_FTYPE_V4SI_V4SI_V4SI_INT_QI): Ditto.
21059 (V2DI_FTYPE_V2DI_V2DI_V2DI_INT_QI): Ditto.
21060 (V8SI_FTYPE_V8SI_V4SI_V8SI_QI): Ditto.
21061 (V4DI_FTYPE_V4DI_V2DI_V4DI_QI): Ditto.
21062 (QI_FTYPE_V4DF_V4DF_INT_QI): Ditto.
21063 (QI_FTYPE_V8SF_V8SF_INT_QI): Ditto.
21064 (QI_FTYPE_V8DF_INT_QI): Ditto.
21065 (QI_FTYPE_V4DF_INT_QI): Ditto.
21066 (QI_FTYPE_V2DF_INT_QI): Ditto.
21067 (HI_FTYPE_V16SF_INT_HI): Ditto.
21068 (QI_FTYPE_V8SF_INT_QI): Ditto.
21069 (QI_FTYPE_V4SF_INT_QI): Ditto.
21070 (V8DF_FTYPE_V8DF_V8DF_V8DF_QI_INT): Ditto.
21072 2015-07-31 Richard Biener <rguenther@suse.de>
21074 * gimple-fold.c (fold_gimple_assign): Remove folding of
21077 2015-07-31 Tom de Vries <tom@codesourcery.com>
21079 PR tree-optimization/66846
21080 * omp-low.c (expand_omp_taskreg) [ENABLE_CHECKING]: Call
21081 verify_loop_structure for child_cfun if !LOOPS_NEED_FIXUP.
21082 (expand_omp_target) [ENABLE_CHECKING]: Same.
21083 (execute_expand_omp) [ENABLE_CHECKING]: Call verify_loop_structure for
21084 cfun if !LOOPS_NEED_FIXUP.
21085 (expand_omp_for_static_nochunk): Handle simple latch bb. Handle case
21086 that omp_for already has its own loop struct.
21087 * tree-parloops.c (create_phi_for_local_result)
21088 (create_call_for_reduction): Handle simple latch bb.
21089 (create_parallel_loop): Add simple latch bb to preserve
21090 LOOPS_HAVE_SIMPLE_LATCHES. Record new exit. Handle simple latch bb.
21091 (gen_parallel_loop): Remove call to cancel_loop_tree.
21092 (parallelize_loops): Skip loops that are inner loops of parallelized
21094 (pass_parallelize_loops::execute) [ENABLE_CHECKING]: Call
21095 verify_loop_structure.
21097 2015-07-30 Anatoly Sokolov <aesok@post.ru>
21099 * config/v850/v850.h (LIBCALL_VALUE): Remove macros.
21100 * config/v850/v850.md (RV_REGNUM): New constants.
21101 * config/v850/v850.c (v850_libcall_value): New functions.
21102 (v850_function_value_regno_p, v850_function_value): Use RV_REGNUM.
21103 (TARGET_LIBCALL_VALUE): Define.
21105 2015-07-30 Anatoly Sokolov <aesok@post.ru>
21107 * rtl.h (lowpart_subreg): Move in file.
21108 * loop-iv.c (lowpart_subreg): Move to...
21109 * simplify-rtx.c (lowpart_subreg): ...here.
21110 (simplify_binary_operation_1): Use lowpart_subreg instead of
21111 simplify_gen_subreg.
21112 * expr.c (expand_expr_real_2): Ditto.
21113 * emit-rtl.c (gen_lowpart_common): Ditto.
21114 * combine.c (gen_lowpart_for_combine): Ditto.
21115 * cfgexpand.c (convert_debug_memory_address, expand_debug_expr,
21116 expand_debug_source_expr): Ditto.
21118 2015-07-30 Richard Sandiford <richard.sandiford@arm.com>
21120 * builtins.c (HAVE_atomic_clear, gen_atomic_clear): Delete.
21121 (expand_builtin_atomic_clear): Remove support for atomic_clear
21124 2015-07-30 Richard Biener <rguenther@suse.de>
21126 * gimple-fold.c (fold_gimple_assign): Only fold !tcc_comparison
21127 binaries. Move X == 0, X == 1, X != 0, and X != 1 canonicalization ...
21128 (fold_stmt_1): ... here and work on GIMPLE directly. Remove
21129 redundant operand canonicalization.
21131 2015-07-30 David Sherwood <david.sherwood@arm.com>
21133 * config/aarch64/aarch64-simd.md (aarch64_ext<mode>): Replace call to
21134 GET_MODE_SIZE (GET_MODE_INNER (m)) with GET_MODE_UNIT_SIZE (m).
21135 * config/aarch64/aarch64.c (aarch64_simd_valid_immediate): Likewise.
21136 * config/arm/arm.c (neon_valid_immediate): Likewise.
21137 * config/i386/i386.c (classify_argument, ix86_expand_int_vcond)
21138 (expand_vec_perm_blend, expand_vec_perm_pshufb): Likewise.
21139 (expand_vec_perm_pshufb2, expand_vec_perm_vpshufb2_vpermq): Likewise.
21140 (expand_vec_perm_vpshufb2_vpermq): Likewise.
21141 (expand_vec_perm_vpshufb2_vpermq_even_odd): Likewise.
21142 (expand_vec_perm_vpshufb4_vpermq2): Likewise.
21143 * config/i386/sse.md
21144 (<extract_type>_vinsert<shuffletype><extract_suf>_mask): Likewise.
21145 (*ssse3_palignr<mode>_perm): Likewise.
21146 * config/rs6000/rs6000.c (rs6000_complex_function_value): Likewise.
21147 * config/spu/spu.c (arith_immediate_p): Likewise.
21148 * simplify-rtx.c (simplify_const_unary_operation): Likewise.
21149 (simplify_binary_operation_1, simplify_ternary_operation): Likewise.
21151 2015-07-30 Richard Biener <rguenther@suse.de>
21153 * genmatch.c (decision_tree::gen_gimple): Merge with ...
21154 (decision_tree::gen_generic): ... this into ...
21155 (decision_tree::gen): ... this.
21156 (main): Adjust callers.
21158 2015-07-30 Richard Biener <rguenther@suse.de>
21160 * genmatch.c (verbose): New global.
21161 (warning_at): Add overload with source_location.
21162 (capture_info::capture_info): Add bool whether generating gimple
21163 or generic. Add gimple member.
21164 (capture_info::cinfo): Add capture member.
21165 (capture_info::walk_match): Record capture. Warn on
21166 non-captured leafs.
21167 (capture_info::walk_c_expr): Add more fragments captures cannot
21168 escape through. Warn on escaped captures.
21169 (dt_simplify::gen_1): Warn on operands we force to have no
21171 (main): Initialize verbose.
21172 * match.pd: Add integer_nonzerop and HONOR_NANS predicates.
21174 2015-07-30 Richard Biener <rguenther@suse.de>
21176 PR middle-end/67053
21177 * match.pd: Allow both operands to independently have conversion
21178 when simplifying compares of addresses.
21180 2015-07-29 Segher Boessenkool <segher@kernel.crashing.org>
21184 * config/rs6000/rs6000.md (and<mode>3): Put a CONST_INT_P check
21185 around those cases that need one.
21187 2015-07-29 Aditya Kumar <hiraditya@msn.com>
21189 * params.def (PARAM_GRAPHITE_MAX_NB_SCOP_PARAMS): Default to 3.
21191 2015-07-29 H.J. Lu <hongjiu.lu@intel.com>
21193 * config/i386/iamcu.h (TARGET_ASM_FILE_START_FILE_DIRECTIVE):
21194 New. Copied from config/i386/gnu-user.h.
21195 (ASM_COMMENT_START): Likewise.
21196 (DBX_REGISTER_NUMBER): Likewise.
21198 2015-07-29 Richard Biener <rguenther@suse.de>
21200 * gimple-fold.c (fold_gimple_cond): Remove.
21201 (fold_stmt_1): Do not call it.
21203 2015-07-29 Alan Lawrence <alan.lawrence@arm.com>
21205 * config/aarch64/aarch64-builtins.c (aarch64_fp16_type_node): New.
21206 (aarch64_init_builtins): Make aarch64_fp16_type_node, use for __fp16.
21208 * config/aarch64/aarch64-modes.def: Add HFmode.
21210 * config/aarch64/aarch64.h (TARGET_CPU_CPP_BUILTINS): Define
21211 __ARM_FP16_FORMAT_IEEE and __ARM_FP16_ARGS. Set bit 1 of __ARM_FP.
21213 * config/aarch64/aarch64.c (aarch64_init_libfuncs,
21214 aarch64_promoted_type): New.
21216 (aarch64_float_const_representable_p): Disable HFmode.
21217 (aarch64_mangle_type): Mangle half-precision floats to "Dh".
21218 (TARGET_PROMOTED_TYPE): Define to aarch64_promoted_type.
21219 (TARGET_INIT_LIBFUNCS): Define to aarch64_init_libfuncs.
21221 * config/aarch64/aarch64.md (mov<mode>): Include HFmode using GPF_F16.
21222 (movhf_aarch64, extendhfsf2, extendhfdf2, truncsfhf2, truncdfhf2): New.
21224 * config/aarch64/iterators.md (GPF_F16): New.
21226 2015-07-29 Richard Biener <rguenther@suse.de>
21228 * match.pd: Merge address comparison patterns and make them
21229 handle some more cases.
21231 2015-07-29 Richard Biener <rguenther@suse.de>
21233 * genmatch.c (c_expr::gen_transform): Error on unknown captures.
21234 (parser::parse_capture): Add bool argument on whether to reject
21236 (parser::parse_expr): Adjust.
21237 (parser::parse_op): Likewise.
21238 (parser::parse_pattern): Likewise.
21240 2015-07-29 Richard Biener <rguenther@suse.de>
21242 * gimple-fold.c (has_use_on_stmt): New function.
21243 (replace_stmt_with_simplification): Use it to allow
21244 abnormals originally referenced in the stmt.
21245 (fold_stmt_1): Canonicalize operand order.
21247 2015-07-28 David Sherwood <david.sherwood@arm.com>
21249 * config/arm/arm.c (neon_element_bits, neon_valid_immediate): Call
21250 GET_MODE_INNER unconditionally.
21251 * config/spu/spu.c (arith_immediate_p): Likewise.
21252 * config/i386/i386.c (ix86_build_signbit_mask): Likewise.
21253 * expmed.c (synth_mult): Remove check for VOIDmode result from
21255 (expand_mult_const): Likewise.
21256 * fold-const.c (fold_binary_loc): Replace call to element_precision
21257 with call to GET_MODE_PRECISION.
21258 * genmodes.c (emit_mode_inner_inline): Replace void_mode->name with
21260 (emit_mode_inner): Likewise.
21261 * lto-streamer-out.c (lto_write_mode_table): Update GET_MODE_INNER
21263 * machmode.h (GET_MODE_UNIT_SIZE): Simplify.
21264 (GET_MODE_UNIT_PRECISION): Likewise.
21265 * rtlanal.c (subreg_get_info): Call GET_MODE_INNER unconditionally.
21266 * simplify-rtx.c (simplify_immed_subreg): Likewise.
21267 * stor-layout.c (bitwise_type_for_mode): Update assert.
21268 (element_precision): Remove.
21270 2015-07-28 Richard Sandiford <richard.sandiford@arm.com>
21272 * target-insns.def (reload_load_address): New targetm instruction
21274 * reload1.c (gen_reload): Use it instead of HAVE_*/gen_* interface.
21276 2015-07-28 Richard Sandiford <richard.sandiford@arm.com>
21278 * target-insns.def (atomic_test_and_set): New targetm instruction
21280 * optabs.c (maybe_emit_atomic_test_and_set): Use it instead of
21281 HAVE_*/gen_* interface.
21283 2015-07-28 Richard Sandiford <richard.sandiford@arm.com>
21285 * target-insns.def (can_extend, ptr_extend): New targetm instruction
21287 * optabs.c (can_extend_p): Use them instead of HAVE_*/gen_* interface.
21288 * simplify-rtx.c (simplify_unary_operation_1): Likewise.
21289 * emit-rtl.c (set_reg_attrs_from_value): Likewise.
21290 * rtlanal.c (nonzero_bits1): Likewise.
21291 (num_sign_bit_copies1): Likewise.
21293 2015-07-28 Richard Sandiford <richard.sandiford@arm.com>
21295 * target-insns.def (eh_return): New targetm instruction pattern.
21296 * except.c (expand_eh_return): Use it instead of HAVE_*/gen_*
21298 * function.c (thread_prologue_and_epilogue_insns): Remove
21299 preprocessor condition.
21301 2015-07-28 Richard Sandiford <richard.sandiford@arm.com>
21303 * target-insns.def (indirect_jump): New targetm instruction pattern.
21304 * optabs.c (emit_indirect_jump): Use it instead of HAVE_*/gen_*
21307 2015-07-28 Richard Sandiford <richard.sandiford@arm.com>
21309 * config/fr30/fr30.md (indirect_jump): Use pmode_register_operand
21310 instead of nonimmediate_operand. Remove C condiition.
21312 2015-07-28 Richard Biener <rguenther@suse.de>
21314 * match.pd: Add more simplification of address comparisons.
21316 2015-07-28 Richard Biener <rguenther@suse.de>
21318 * match.pd: Re-order two cases in comparison with max/min
21319 value simplification to make it apply for bools.
21321 2015-07-28 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
21323 * config/aarch64/aarch64.c (aarch64_rtx_arith_op_extract_p):
21324 Handle simple SIGN_EXTEND or ZERO_EXTEND.
21325 (aarch64_rtx_costs): Properly strip extend or extract before
21326 passing down to rtx costs again.
21328 2015-07-28 Nick Clifton <nickc@redhat.com>
21330 * config/rl78/rl78.c (rl78_addsi3_internal): New function.
21331 Optimizes the case where -mes0 is active and a constant symbolic
21333 * config/rl78/rl78-protos.h: Prototype the new function.
21334 * config/rl78/rl78.md (addsi3_internal_real): Call new function.
21336 2015-07-28 Tom de Vries <tom@codesourcery.com>
21338 * tree-parloops.c (reduc_stmt_res): New function.
21339 (initialize_reductions, add_field_for_reduction)
21340 (create_phi_for_local_result, create_loads_for_reductions)
21341 (create_stores_for_reduction, build_new_reduction): Handle case that
21342 reduc_stmt is a phi.
21343 (gather_scalar_reductions): Allow double_reduc reductions.
21345 2015-07-28 Richard Biener <rguenther@suse.de>
21347 * fold-const.c (fold_comparison): Remove equality folding
21348 of decl addresses ...
21349 * match.pd: ... here and merge with existing pattern.
21351 2015-07-28 Thomas Preud'homme <thomas.preudhomme@arm.com>
21353 PR tree-optimization/66828
21354 * tree-ssa-math-opts.c (perform_symbolic_merge): Change type of inc
21355 from int64_t to uint64_t.
21357 2015-07-28 Dominik Vogt <vogt@linux.vnet.ibm.com>
21359 * opts-common.c (read_cmdline_option): List DriverOnly enum values
21360 as valid only in the error message of the driver, not in the
21361 messages of the language compilers.
21363 2015-07-27 Tom de Vries <tom@codesourcery.com>
21365 * tree-parloops.c (gather_scalar_reductions): Simplify function
21368 2015-07-27 Marek Polacek <polacek@redhat.com>
21370 * ipa-devirt.c (types_same_for_odr): Fix typo.
21372 2015-07-27 Jason Merrill <jason@redhat.com>
21375 * dwarf2out.c (gen_inlined_subroutine_die): Check
21376 cgraph_function_possibly_inlined_p.
21378 2015-07-27 Wilco Dijkstra <wdijkstr@arm.com>
21380 * config/aarch64/aarch64.md (aarch64_lshr_sisd_or_int_<mode>3):
21381 Place integer variant first.
21382 (aarch64_ashr_sisd_or_int_<mode>3): Likewise.
21384 2015-07-27 Alan Lawrence <alan.lawrence@arm.com>
21387 * config/arm/arm-builtins.c (enum arm_builtins):
21388 Add ARM_BUILTIN_NEON_BASE and ARM_BUILTIN_NEON_LANE_CHECK.
21389 (ARM_BUILTIN_NEON_BASE): Rename macro to....
21390 (ARM_BUILTIN_NEON_PATTERN_START): ...this.
21391 (arm_init_neon_builtins): Register __builtin_arm_lane_check.
21392 (arm_expand_neon_builtin): Handle ARM_BUILTIN_NEON_LANE_CHECK.
21394 2015-07-27 Alan Lawrence <alan.lawrence@arm.com>
21397 * config/arm/arm-builtins.c (enum arm_type_qualifiers):
21398 Add qualifier_lane_index.
21399 (arm_binop_imm_qualifiers, BINOP_IMM_QUALIFIERS): New.
21400 (arm_getlane_qualifiers): Use qualifier_lane_index.
21401 (arm_lanemac_qualifiers): Rename to...
21402 (arm_mac_n_qualifiers): ...this.
21403 (LANEMAC_QUALIFIERS): Rename to...
21404 (MAC_N_QUALIFIERS): ...this.
21405 (arm_mac_lane_qualifiers, MAC_LANE_QUALIFIERS): New.
21406 (arm_setlane_qualifiers): Use qualifier_lane_index.
21407 (arm_ternop_imm_qualifiers, TERNOP_IMM_QUALIFIERS): New.
21408 (enum builtin_arg): Add NEON_ARG_LANE_INDEX.
21409 (arm_expand_neon_args): Handle NEON_ARG_LANE_INDEX.
21410 (arm_expand_neon_builtin): Handle qualifier_lane_index.
21412 * config/arm/arm-protos.h (neon_lane_bounds): Add const_tree parameter.
21413 * config/arm/arm.c (bounds_check): Likewise, improve error message.
21414 (neon_lane_bounds, neon_const_bounds): Add arguments to bounds_check.
21415 * config/arm/arm_neon_builtins.def (vshrs_n, vshru_n, vrshrs_n,
21416 vrshru_n, vshrn_n, vrshrn_n, vqshrns_n, vqshrnu_n, vqrshrns_n,
21417 vqrshrnu_n, vqshrun_n, vqrshrun_n, vshl_n, vqshl_s_n, vqshl_u_n,
21418 vqshlu_n, vshlls_n, vshllu_n): Change qualifiers to BINOP_IMM.
21419 (vsras_n, vsrau_n, vrsras_n, vrsrau_n, vsri_n, vsli_n): Change
21420 qualifiers to TERNOP_IMM.
21421 (vdup_lane): Change qualifiers to GETLANE.
21422 (vmla_lane, vmlals_lane, vmlalu_lane, vqdmlal_lane, vmls_lane,
21423 vmlsls_lane, vmlslu_lane, vqdmlsl_lane): Change qualifiers to MAC_LANE.
21424 (vmla_n, vmlals_n, vmlalu_n, vqdmlal_n, vmls_n, vmlsls_n, vmlslu_n,
21425 vqdmlsl_n): Change qualifiers to MAC_N.
21427 * config/arm/neon.md (neon_vget_lane<mode>, neon_vget_laneu<mode>,
21428 neon_vget_lanedi, neon_vget_lanev2di, neon_vset_lane<mode>,
21429 neon_vset_lanedi, neon_vdup_lane<mode>, neon_vdup_lanedi,
21430 neon_vdup_lanev2di, neon_vmul_lane<mode>, neon_vmul_lane<mode>,
21431 neon_vmull<sup>_lane<mode>, neon_vqdmull_lane<mode>,
21432 neon_vq<r>dmulh_lane<mode>, neon_vq<r>dmulh_lane<mode>,
21433 neon_vmla_lane<mode>, neon_vmla_lane<mode>, neon_vmlal<sup>_lane<mode>,
21434 neon_vqdmlal_lane<mode>, neon_vmls_lane<mode>, neon_vmls_lane<mode>,
21435 neon_vmlsl<sup>_lane<mode>, neon_vqdmlsl_lane<mode>):
21436 Remove call to neon_lane_bounds.
21438 2015-07-27 Wilco Dijkstra <wdijkstr@arm.com>
21440 * config/aarch64/aarch64.md (aarch64_ashl_sisd_or_int_<mode>3):
21441 Place integer variant first.
21443 2015-07-27 Matthew Wahab <matthew.wahab@arm.com>
21445 * config/arm/arm-arches.def: Add "armv6kz". Replace 6ZK with 6KZ
21446 and FL_FOR_ARCH6ZK with FL_FOR_ARCH6KZ.
21447 * config/arm/arm-c.c (arm_cpu_builtins): Emit "__ARM_ARCH_6ZK__"
21448 for armv6kz targets.
21449 * config/arm/arm-cores.def: Replace 6ZK with 6KZ.
21450 * config/arm/arm-protos.h (FL_ARCH6KZ): New.
21451 (FL_FOR_ARCH6ZK): Remove.
21452 (FL_FOR_ARCH6KZ): New.
21453 (arm_arch6zk): New declaration.
21454 * config/arm/arm-tables.opt: Regenerate.
21455 * config/arm/arm.c (arm_arch6kz): New.
21456 (arm_option_override): Set arm_arch6kz.
21457 * config/arm/arm.h (BASE_ARCH_6ZK): Rename to BASE_ARCH_6KZ.
21458 * config/arm/driver-arm.c: Add comment to "armv6zk" entry.
21459 * doc/invoke.texi: Replace "armv6zk" with "armv6kz".
21461 2015-07-27 Marek Polacek <polacek@redhat.com>
21465 * doc/invoke.texi: Document -Wtautological-compare.
21467 2015-07-27 Richard Biener <rguenther@suse.de>
21469 * genmatch.c (decision_tree::gen_gimple): Split out large
21470 subtrees into separate functions.
21471 (decision_tree::gen_generic): Likewise.
21473 2015-07-26 Uros Bizjak <ubizjak@gmail.com>
21475 * config/alpha/alpha.c: Use SUBREG_P predicate.
21476 * config/alpha/predicates.md: Ditto.
21478 2015-07-25 Dominik Vogt <vogt@linux.vnet.ibm.com>
21480 * config.host (s390*-*-*): Include driver-native.c only when
21481 building with s390* as host *and* target.
21483 2015-07-25 Oleg Endo <olegendo@gcc.gnu.org>
21486 * config/sh/sh.c (sh_split_movrt_negc_to_movt_xor): Add missing
21487 T bit register modified_between_p check.
21489 2015-07-25 Uros Bizjak <ubizjak@gmail.com>
21491 * config/i386/i386.c: Use SUBREG_P predicate.
21492 * config/i386/i386.md: Ditto.
21493 * config/i386/sse.md: Ditto.
21494 * config/i386/predicates.md: Ditto.
21496 2015-07-25 Uros Bizjak <ubizjak@gmail.com>
21499 * config/i386/i386.h (ADJUST_INSN_LENGTH): Use NONDEBUG_INSN_P (INSN)
21500 predicate and INSN_CODE (INSN) >= 0 to check for valid instruction.
21502 2015-07-25 Sebastian Pop <s.pop@samsung.com>
21504 * Makefile.in: Remove use of TREEBROWSER.
21505 * config.in: Regenerated.
21506 * configure: Regenerated.
21507 * configure.ac: Remove definition of TREEBROWSER.
21508 * tree-browser.c: Removed.
21509 * tree-browser.def: Removed.
21511 2015-07-25 Sebastian Pop <s.pop@samsung.com>
21513 * graphite-scop-detection.c: Include gimple-pretty-print.h.
21514 (stmt_simple_for_scop_p): Print when a stmt is not handled in
21516 (scopdet_basic_block_info): Print when a loop or bb cannot be
21517 represented in Graphite.
21519 2015-07-25 Uros Bizjak <ubizjak@gmail.com>
21522 * config/i386/i386.c (ix86_expand_set_or_movmem): Emit main loop
21523 execution guard when min_size is less than size_needed.
21525 2015-07-25 Sebastian Pop <s.pop@samsung.com>
21527 * doc/install.texi: Document supported versions of ISL.
21529 2015-07-25 Jeff Law <law@redhat.com>
21533 * tree-ssa-threadedge.c (simplify_conrol_stmt_condition): If we are
21534 unable to find X NE 0 in the tables, return X as the simplified
21536 (fsm_find_control_statement_thread_paths): If nodes in NEXT_PATH are
21537 in VISISTED_BBS, then return failure. Else add nodes from NEXT_PATH
21538 to VISISTED_BBS. */
21539 * tree-ssa-threadupdate.c (duplicate_thread_path): Fix up edge flags
21540 after removing the control flow statement and unnecessary edges.
21542 2015-07-25 David Edelsohn <dje.gcc@gmail.com>
21545 2015-07-23 Alexandre Oliva <aoliva@redhat.com>
21547 PR rtl-optimization/64164
21548 * Makefile.in (OBJS): Drop tree-ssa-copyrename.o.
21549 * tree-ssa-copyrename.c: Removed.
21550 * opts.c (default_options_table): Drop -ftree-copyrename. Add
21551 -ftree-coalesce-vars.
21552 * passes.def: Drop all occurrences of pass_rename_ssa_copies.
21553 * common.opt (ftree-copyrename): Ignore.
21554 (ftree-coalesce-inlined-vars): Likewise.
21555 * doc/invoke.texi: Remove the ignored options above.
21556 * gimple-expr.h (gimple_can_coalesce_p): Move declaration
21557 * tree-ssa-coalesce.h: ... here.
21558 * tree-ssa-uncprop.c: Include tree-ssa-coalesce.h and other
21559 headers required by it.
21560 * gimple-expr.c (gimple_can_coalesce_p): Allow coalescing
21561 across variables when flag_tree_coalesce_vars. Check register
21562 use and promoted modes to allow coalescing. Moved to
21563 tree-ssa-coalesce.c.
21564 * tree-ssa-live.c (struct tree_int_map_hasher): Move along
21565 with its member functions to tree-ssa-coalesce.c.
21566 (var_map_base_init): Likewise. Renamed to
21567 compute_samebase_partition_bases.
21568 (partition_view_normal): Drop want_bases parameter.
21569 (partition_view_bitmap): Likewise.
21570 * tree-ssa-live.h: Adjust declarations.
21571 * tree-ssa-coalesce.c: Include explow.h.
21572 (build_ssa_conflict_graph): Process PARM_ and RESULT_DECLs's
21573 default defs at the entry point.
21574 (dump_part_var_map): New.
21575 (compute_optimized_partition_bases): New, called by...
21576 (coalesce_ssa_name): ... when flag_tree_coalesce_vars, instead
21577 of compute_samebase_partition_bases. Adjust.
21578 * alias.c (nonoverlapping_memrefs_p): Disregard gimple-regs.
21579 * cfgexpand.c (leader_merge): New.
21580 (get_rtl_for_parm_ssa_default_def): New.
21581 (set_rtl): Merge exprs and attrs, even for MEMs and non-SSA
21582 vars. Update DECL_RTL for PARM_DECLs and RESULT_DECLs too.
21583 (expand_one_stack_var_at): Handle anonymous SSA_NAMEs. Drop
21584 redundant MEM attr setting.
21585 (expand_one_stack_var_1): Handle anonymous SSA_NAMEs. Renamed
21587 (expand_one_stack_var): ... this. New wrapper to check and
21588 skip already expanded SSA partitions.
21589 (record_alignment_for_reg_var): New, factored out of...
21590 (expand_one_var): ... this.
21591 (expand_one_ssa_partition): New.
21592 (adjust_one_expanded_partition_var): New.
21593 (expand_one_register_var): Check and skip already expanded SSA
21595 (expand_used_vars): Don't create DECLs for anonymous SSA
21596 names. Expand all SSA partitions, then adjust all SSA names.
21597 (pass::execute): Replace the loops that set
21598 SA.partition_to_pseudo from partition leaders and cleared
21599 DECL_RTL for multi-location variables, and that which used to
21600 rename vars and set attrs, with one that clears DECL_RTL and
21601 checks that PARMs and RESULTs default_defs match DECL_RTL.
21602 * cfgexpand.h (get_rtl_for_parm_ssa_default_def): Declare.
21603 * emit-rtl.c (set_reg_attrs_for_parm): Handle NULL decl.
21604 * explow.c (promote_ssa_mode): New.
21605 * explow.h (promote_ssa_mode): Declare.
21606 * expr.c (expand_expr_real_1): Handle anonymous SSA_NAMEs.
21607 * function.c: Include cfgexpand.h.
21608 (use_register_for_decl): Handle SSA_NAMEs, anonymous or not.
21609 (use_register_for_parm_decl): Wrapper for the above to
21610 special-case the result_ptr.
21611 (rtl_for_parm): Ditto for get_rtl_for_parm_ssa_default_def.
21612 (split_complex_args): Take assign_parm_data_all argument.
21613 Pass it to rtl_for_parm. Set up rtl and context for split
21615 (assign_parms_augmented_arg_list): Adjust.
21616 (maybe_reset_rtl_for_parm): Reset DECL_RTL of parms with
21617 multiple locations. Recognize split complex args.
21618 (assign_parm_adjust_stack_rtl): Add all and parm arguments,
21619 for rtl_for_parm. For SSA-assigned parms, zero stack_parm.
21620 (assign_parm_setup_block): Prefer SSA-assigned location.
21621 (assign_parm_setup_reg): Likewise. Use entry_parm for equiv
21622 if stack_parm is NULL.
21623 (assign_parm_setup_stack): Prefer SSA-assigned location.
21624 (assign_parms): Maybe reset DECL_RTL of params. Adjust stack
21625 rtl before testing for pointer bounds. Special-case result_ptr.
21626 (expand_function_start): Maybe reset DECL_RTL of result.
21627 Prefer SSA-assigned location for result and static chain.
21628 Factor out DECL_RESULT and SET_DECL_RTL.
21629 * tree-outof-ssa.c (insert_value_copy_on_edge): Handle
21630 anonymous SSA names. Use promote_ssa_mode.
21631 (get_temp_reg): Likewise.
21632 (remove_ssa_form): Adjust.
21633 * stor-layout.c (layout_decl): Don't set mem attributes of
21635 * var-tracking.c (dataflow_set_clear_at_call): Take call_insn
21636 and get its reg_usage for reg invalidation.
21637 (compute_bb_dataflow): Pass it insn.
21638 (emit_notes_in_bb): Likewise.
21640 2015-07-25 Uros Bizjak <ubizjak@gmail.com>
21642 * config/i386/i386.c (ix86_va_start): Remove
21643 unneeded !TARGET_64BIT check.
21644 (ix86_gimplify_va_arg): Ditto.
21646 2015-07-24 Tom de Vries <tom@codesourcery.com>
21648 * graphite-sese-to-poly.c (build_poly_scop): Always call
21649 rewrite_commutative_reductions_out_of_ssa.
21651 2015-07-24 Tom de Vries <tom@codesourcery.com>
21653 * graphite-sese-to-poly.c (is_reduction_operation_p): Limit
21654 flag_associative_math to FLOAT_TYPE_P. Honour
21655 TYPE_OVERFLOW_WRAPS for INTEGRAL_TYPE_P. Don't allow any other types.
21657 2015-07-24 Manuel López-Ibáñez <manu@gcc.gnu.org>
21660 * toplev.c (check_global_declaration): Use DECL_SOURCE_LOCATION
21661 and "%qD" in warning_at instead of "%q+D" in warning.
21663 2015-07-24 Uros Bizjak <ubizjak@gmail.com>
21665 * config/i386/i386.c (ix86_call_abi_override): Call ix86_function_abi.
21666 (ix86_function_abi): Cleanup.
21668 2015-07-24 Michael Darling <darlingm@gmail.com>
21671 * acinclude.m4: Reflects renaming of configure.in to configure.ac
21672 * configure: Likewise
21673 * configure.ac: Likewise
21674 * doc/install.texi: Likewise
21675 * doc/tm.texi: Likewise
21676 * doc/tm.texi.in: Likewise
21678 2015-07-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
21680 * alias.c (nonoverlapping_memrefs_p): Use std::swap instead of
21681 manually swapping values.
21682 * cse.c (fold_rtx): Likewise.
21683 * lra-eliminations.c (form_sum): Likewise.
21685 2015-07-24 Uros Bizjak <ubizjak@gmail.com>
21688 * config/i386/i386.h (ADJUST_INSN_LENGTH): New define.
21689 * config/i386/i386.md (maybe_prefix_bnd): New attribute.
21690 (*jcc_1, *jcc_2, jump, simple_return_internal)
21691 (simple_return_pop_internal): Set attribute maybe_prefix_bnd.
21692 Set length_nobnd attribute instead of length attribute.
21693 (indirect_jump, *tablejump_1): Set attribute maybe_prefix_bnd.
21694 (length_nobnd): Remove attribute.
21695 (length): Remove length_nobnd processing.
21697 2015-07-24 Nathan Sidwell <nathan@codesourcery.com>
21699 * gimplify.c (omp_default_clause): New function. Reorganize flow
21700 for clarity. Broken out of ...
21701 (omp_notice_variable): ... here.
21703 2015-07-24 Gary Funck <gary@intrepid.com>
21705 PR middle-end/66984
21706 * fold-const.c (fold_binary_loc): Call fold_convert on arguments to
21707 fold_build2 for CEIL_DIV_EXPR and FLOOR_DIV_EXPR optimization.
21709 2015-07-24 Tom de Vries <tom@codesourcery.com>
21711 * tree-parloops.c (gen_parallel_loop): Add debug print for alternative
21712 exit-first loop transform.
21714 2015-07-24 Cesar Philippidis <cesar@codesourcery.com>
21717 * tree-cfg.c (struct replace_decls_d): New struct.
21718 (replace_block_vars_by_duplicates_1): New function.
21719 (replace_block_vars_by_duplicates): Use it to replace the decls
21720 in the value exprs by duplicates.
21722 2015-07-24 Szabolcs Nagy <szabolcs.nagy@arm.com>
21724 * config/aarch64/aarch64-elf-raw.h (LINK_SPEC): Handle -h, -static,
21725 -shared, -symbolic, -rdynamic.
21727 2015-07-24 Szabolcs Nagy <szabolcs.nagy@arm.com>
21730 * config/aarch64/aarch64-linux.h (LINUX_TARGET_LINK_SPEC): Move
21731 -dynamic-linker within %{!static %{!shared, and -rdynamic within
21734 2015-07-24 Ilya Enkovich <enkovich.gnu@gmail.com>
21737 * ipa-inline-analysis.c (estimate_calls_size_and_time): Check
21738 edge summary is available.
21740 2015-07-24 Richard Biener <rguenther@suse.de>
21742 * genmatch.c (struct dt_node): Add statistic fields.
21743 (dt_node::analyze): New method.
21744 (decision_tree::gen_gimple): Call analyze on the root node
21745 and print statistics to stderr.
21746 (decision_tree::gen_generic): Likewise.
21748 2015-07-24 Richard Biener <rguenther@suse.de>
21750 * fold-const.c (fold_binary_loc): Move simplifying of comparisons
21751 against the highest or lowest possible integer ...
21752 * match.pd: ... as patterns here.
21754 2015-07-24 Richard Biener <rguenther@suse.de>
21756 * genmatch.c (struct capture_info): Add same_as field.
21757 (capture_info::capture_info): Initialize same_as.
21758 (capture_info::walk_match): Compute same_as.
21759 (capture_info::walk_result): Compute stuff for the leader.
21760 (capture_info::walk_c_expr): Likewise.
21761 (dt_simplify::gen_1): Only look at leaders when deciding
21762 to force no side-effects or emit side-effects of omitted operands.
21764 2015-07-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
21766 * config/s390/s390.c (s390_save_gprs_to_fprs): Add CFA_REGISTER
21767 reg note to the GPR -> FPR save instructions.
21769 2015-07-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
21771 * config/s390/s390.c (s390_rtx_costs): Make risbg patterns
21773 (s390_expand_insv): Don't generate risbg pattern for constant zero
21775 * config/s390/s390.md ("*insv<mode>_zEC12_appendbitsleft")
21776 ("*insv<mode>_z10_appendbitsleft"): New pattern definitions. New
21779 2015-07-24 Dominik Vogt <vogt@linux.vnet.ibm.com>
21781 * config/s390/s390.c (s390_reorg): Clean up handling of processors
21784 (s390_issue_rate): Likewise.
21785 (s390_sched_reorder): Likewise.
21786 (s390_sched_variable_issue): Likewise.
21787 (s390_loop_unroll_adjust): Likewise.
21788 (s390_option_override): Likewise.
21790 2015-07-24 Dominik Vogt <vogt@linux.vnet.ibm.com>
21792 * config/s390/driver-native.c (s390_host_detect_local_cpu): Handle
21793 processor capabilities with -march=native.
21794 * config/s390/s390.h (MARCH_MTUNE_NATIVE_SPECS): Likewise.
21795 (DRIVER_SELF_SPECS): Likewise. Join specs for 31 and 64 bit.
21796 (S390_TARGET_BITS_STRING): Macro to simplify specs.
21798 2015-07-24 Dominik Vogt <vogt@linux.vnet.ibm.com>
21800 * config/s390/s390.c (s390_issue_rate): Handle
21801 PROCESSOR_2094_Z9_EC.
21802 (s390_option_override): Likewise.
21803 (s390_adjust_priority): Likewise.
21805 2015-07-24 Dominik Vogt <vogt@linux.vnet.ibm.com>
21807 * config/s390/s390.h: S390: Do not define EXTRA_SPEC_FUNCTIONS
21808 when cross compiling.
21810 2015-07-24 Richard Biener <rguenther@suse.de>
21812 * fold-const.c (maybe_canonicalize_comparison_1): Move
21813 A code CST canonicalization ...
21814 * match.pd: ... to a pattern here.
21816 2015-07-24 Jiong Wang <jiong.wang@arm.com>
21819 2015-07-22 Jiong Wang <jiong.wang@arm.com>
21821 * config/aarch64/aarch64.h (REG_ALLOC_ORDER): Define.
21822 (HONOR_REG_ALLOC_ORDER): Define.
21824 2015-07-24 Richard Biener <rguenther@suse.de>
21826 * genmatch.c (add_operator): Allow SSA_NAME as predicate.
21827 * fold-const.c (fold_comparison): Move parameter does not
21828 alias &local simplification ...
21829 * match.pd: ... as a pattern here.
21831 2015-07-24 Richard Biener <rguenther@suse.de>
21833 * gimple-fold.c (replace_stmt_with_simplification): Special-case
21834 valueizing call operands.
21835 * gimple-match-head.c (maybe_push_res_to_seq): Take
21836 number of call arguments from ops array.
21837 (do_valueize): New function.
21838 (gimple_simplify): Return true if valueization changed
21839 any operand even if the result didn't simplify further.
21841 2015-07-24 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
21843 PR middle-end/25530
21844 * match.pd (mult (trunc_div @0 integer_pow2p@1) @1) : New simplifier.
21846 2015-07-24 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
21848 PR middle-end/25529
21849 * match.pd (trunc_div (mult @0 integer_pow2p@1) @1) : New simplifier.
21851 2015-07-23 Kugan Vivekanandarajah <kuganv@linaro.org>
21853 * config/arm/arm.c (arm_emit_movpair): Add REG_EQUAL notes to
21856 2015-07-23 Kugan Vivekanandarajah <kuganv@linaro.org>
21858 * cse.c (cse_insn): Fix missing check for STRICT_LOW_PART and minor
21861 2015-07-23 Uros Bizjak <ubizjak@gmail.com>
21863 * config/i386/i386.c (ix86_build_builtin_va_list_64): Rename
21864 from ix86_build_builtin_va_list_abi. Handle only 64bit non-MS_ABI
21866 (ix86_build_builtin_va_list): Rewrite sysv_va_list_type_node and
21867 ms_va_list_type_node initialization.
21869 2015-07-23 Jeff Law <law@redhat.com>
21872 * tree-ssa-threadedge.c (simplify_conrol_stmt_condition): If we are
21873 unable to find X NE 0 in the tables, return X as the simplified
21875 (fsm_find_control_statement_thread_paths): If nodes in NEXT_PATH are
21876 in VISISTED_BBS, then return failure. Else add nodes from NEXT_PATH
21877 to VISISTED_BBS. */
21878 * tree-ssa-threadupdate.c (duplicate_thread_path): Fix up edge flags
21879 after removing the control flow statement and unnecessary edges.
21881 2015-07-23 Bernd Edlinger <bernd.edlinger@hotmail.de>
21883 * tree-pass.h (get_current_pass_name): Removed.
21885 2015-07-23 Alexandre Oliva <aoliva@redhat.com>
21887 PR rtl-optimization/64164
21888 * Makefile.in (OBJS): Drop tree-ssa-copyrename.o.
21889 * tree-ssa-copyrename.c: Removed.
21890 * opts.c (default_options_table): Drop -ftree-copyrename. Add
21891 -ftree-coalesce-vars.
21892 * passes.def: Drop all occurrences of pass_rename_ssa_copies.
21893 * common.opt (ftree-copyrename): Ignore.
21894 (ftree-coalesce-inlined-vars): Likewise.
21895 * doc/invoke.texi: Remove the ignored options above.
21896 * gimple-expr.h (gimple_can_coalesce_p): Move declaration
21897 * tree-ssa-coalesce.h: ... here.
21898 * tree-ssa-uncprop.c: Include tree-ssa-coalesce.h and other
21899 headers required by it.
21900 * gimple-expr.c (gimple_can_coalesce_p): Allow coalescing
21901 across variables when flag_tree_coalesce_vars. Check register
21902 use and promoted modes to allow coalescing. Moved to
21903 tree-ssa-coalesce.c.
21904 * tree-ssa-live.c (struct tree_int_map_hasher): Move along
21905 with its member functions to tree-ssa-coalesce.c.
21906 (var_map_base_init): Likewise. Renamed to
21907 compute_samebase_partition_bases.
21908 (partition_view_normal): Drop want_bases parameter.
21909 (partition_view_bitmap): Likewise.
21910 * tree-ssa-live.h: Adjust declarations.
21911 * tree-ssa-coalesce.c: Include explow.h.
21912 (build_ssa_conflict_graph): Process PARM_ and RESULT_DECLs's
21913 default defs at the entry point.
21914 (dump_part_var_map): New.
21915 (compute_optimized_partition_bases): New, called by...
21916 (coalesce_ssa_name): ... when flag_tree_coalesce_vars, instead
21917 of compute_samebase_partition_bases. Adjust.
21918 * alias.c (nonoverlapping_memrefs_p): Disregard gimple-regs.
21919 * cfgexpand.c (leader_merge): New.
21920 (get_rtl_for_parm_ssa_default_def): New.
21921 (set_rtl): Merge exprs and attrs, even for MEMs and non-SSA
21922 vars. Update DECL_RTL for PARM_DECLs and RESULT_DECLs too.
21923 (expand_one_stack_var_at): Handle anonymous SSA_NAMEs. Drop
21924 redundant MEM attr setting.
21925 (expand_one_stack_var_1): Handle anonymous SSA_NAMEs. Renamed
21927 (expand_one_stack_var): ... this. New wrapper to check and
21928 skip already expanded SSA partitions.
21929 (record_alignment_for_reg_var): New, factored out of...
21930 (expand_one_var): ... this.
21931 (expand_one_ssa_partition): New.
21932 (adjust_one_expanded_partition_var): New.
21933 (expand_one_register_var): Check and skip already expanded SSA
21935 (expand_used_vars): Don't create DECLs for anonymous SSA
21936 names. Expand all SSA partitions, then adjust all SSA names.
21937 (pass::execute): Replace the loops that set
21938 SA.partition_to_pseudo from partition leaders and cleared
21939 DECL_RTL for multi-location variables, and that which used to
21940 rename vars and set attrs, with one that clears DECL_RTL and
21941 checks that PARMs and RESULTs default_defs match DECL_RTL.
21942 * cfgexpand.h (get_rtl_for_parm_ssa_default_def): Declare.
21943 * emit-rtl.c (set_reg_attrs_for_parm): Handle NULL decl.
21944 * explow.c (promote_ssa_mode): New.
21945 * explow.h (promote_ssa_mode): Declare.
21946 * expr.c (expand_expr_real_1): Handle anonymous SSA_NAMEs.
21947 * function.c: Include cfgexpand.h.
21948 (use_register_for_decl): Handle SSA_NAMEs, anonymous or not.
21949 (use_register_for_parm_decl): Wrapper for the above to
21950 special-case the result_ptr.
21951 (rtl_for_parm): Ditto for get_rtl_for_parm_ssa_default_def.
21952 (split_complex_args): Take assign_parm_data_all argument.
21953 Pass it to rtl_for_parm. Set up rtl and context for split
21955 (assign_parms_augmented_arg_list): Adjust.
21956 (maybe_reset_rtl_for_parm): Reset DECL_RTL of parms with
21957 multiple locations. Recognize split complex args.
21958 (assign_parm_adjust_stack_rtl): Add all and parm arguments,
21959 for rtl_for_parm. For SSA-assigned parms, zero stack_parm.
21960 (assign_parm_setup_block): Prefer SSA-assigned location.
21961 (assign_parm_setup_reg): Likewise. Use entry_parm for equiv
21962 if stack_parm is NULL.
21963 (assign_parm_setup_stack): Prefer SSA-assigned location.
21964 (assign_parms): Maybe reset DECL_RTL of params. Adjust stack
21965 rtl before testing for pointer bounds. Special-case result_ptr.
21966 (expand_function_start): Maybe reset DECL_RTL of result.
21967 Prefer SSA-assigned location for result and static chain.
21968 Factor out DECL_RESULT and SET_DECL_RTL.
21969 * tree-outof-ssa.c (insert_value_copy_on_edge): Handle
21970 anonymous SSA names. Use promote_ssa_mode.
21971 (get_temp_reg): Likewise.
21972 (remove_ssa_form): Adjust.
21973 * stor-layout.c (layout_decl): Don't set mem attributes of
21975 * var-tracking.c (dataflow_set_clear_at_call): Take call_insn
21976 and get its reg_usage for reg invalidation.
21977 (compute_bb_dataflow): Pass it insn.
21978 (emit_notes_in_bb): Likewise.
21980 2015-07-23 Segher Boessenkool <segher@kernel.crashing.org>
21983 * config/rs6000/rs6000-protos.h (rs6000_emit_2insn_and): Change
21985 * config/rs6000/rs6000.c (rs6000_emit_dot_insn): New function.
21986 (rs6000_emit_2insn_and): Handle dot forms.
21987 * config/rs6000/rs6000.md (and<mode>3): Adjust.
21988 (*and<mode>3_2insn): Remove TODO. Adjust. Add "type" attr.
21989 (*and<mode>3_2insn_dot, *and<mode>3_2insn_dot2): New.
21991 2015-07-23 Richard Biener <rguenther@suse.de>
21993 * generic-match-head.c: Include cgraph.h.
21994 * gimple-match-head.c: Likewise.
21995 * tree-ssa-sccvn.c (free_scc_vn): Guard against newly created
21997 * fold-const.c (fold_binary_loc): Move &A ==/!= &B simplification...
21998 * match.pd: ...to a pattern here. Add &A ==/!= 0 simplification
22001 2015-07-23 Richard Biener <rguenther@suse.de>
22003 * gimple-fold.c (fold_gimple_cond): Do not require folding
22004 results to pass valid_gimple_rhs_p.
22005 * tree-cfg.h (fold_cond_expr_cond): Remove.
22006 * tree-cfg.c (fold_cond_expr_cond): Likewise.
22007 (make_edges): Do not call it.
22008 * tree-inline.c (tree_function_versioning): Likewise.
22010 2015-07-23 Tom de Vries <tom@codesourcery.com>
22012 * tree-parloops.c (gather_scalar_reductions): Add arg to call to
22013 vect_force_simple_reduction.
22014 * tree-vect-loop.c (vect_analyze_scalar_cycles_1): Same.
22015 (vect_is_simple_reduction_1): Add and handle
22016 need_wrapping_integral_overflow parameter.
22017 (vect_is_simple_reduction, vect_force_simple_reduction): Add and pass
22018 need_wrapping_integral_overflow parameter.
22019 (vectorizable_reduction): Add arg to call to vect_is_simple_reduction.
22020 * tree-vectorizer.h (vect_force_simple_reduction): Add parameter to
22023 2015-07-23 Yuri Rumyantsev <ysrumyan@gmail.com>
22025 PR tree-optimization/66926,66951
22026 * tree-vect-loop-manip.c (slpeel_tree_peel_loop_to_edge): Delete
22027 INNER_LOOP and fix up condition for renaming virtual operands.
22029 2015-07-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
22031 * combine.c (try_combine): Use std::swap instead of manually
22034 2015-07-23 Prachi Godbole <prachi.godbole@imgtec.com>
22036 * config/mips/i6400.md: New file.
22037 * config/mips/mips-cpus.def (mips32r6): Change to PROCESSOR_I6400.
22038 (mips64r6): Likewise.
22040 * config/mips/mips-tables.opt: Regenerate.
22041 * config/mips/mips.c (mips_rtx_cost_data): Add I6400 processor.
22042 (mips_issue_rate): Add support for i6400.
22043 (mips_multipass_dfa_lookahead): Likewise.
22044 * config/mips/mips.h (TUNE_I6400): Define.
22045 * config/mips/mips.md: Include i6400.md.
22046 (processor): Add i6400.
22047 * doc/invoke.texi (-march=@var{arch}): Add i6400.
22049 2015-07-23 Richard Biener <rguenther@suse.de>
22051 PR middle-end/66916
22052 * match.pd: Guard widen and sign-change comparison simplification
22055 2015-07-23 Richard Biener <rguenther@suse.de>
22057 PR tree-optimization/66945
22058 * tree-ssa-propagate.c (substitute_and_fold_dom_walker
22059 ::before_dom_children): Force the propagators idea of
22060 non-executable edges to materialize, not what the folder
22063 2015-07-23 Richard Biener <rguenther@suse.de>
22065 * gimple.h (gimple_cond_make_false): Use 0 != 0.
22066 (gimple_cond_make_true): Use 1 != 0.
22068 2015-07-22 DJ Delorie <dj@redhat.com>
22070 * config/msp430/t-msp430 (MULTILIB_DIRNAMES): Remove trailing
22073 * config/msp430/msp430.md (ashlhi3): Optimize shifts of subregs.
22074 (ashrhi3): Likewise.
22075 (lshrhi3): Likewise.
22076 (movhi): Take advantage of zero-extend to load small constants.
22077 (movpsi): Likewise.
22078 (and<mode>3): Likewise.
22079 (zero_extendqihi2): Likewise.
22080 (zero_extendqisi2): New.
22081 * config/msp430/constraints.md (N,O): New.
22082 * config/msp430/msp430.h (WORD_REGISTER_OPERATIONS): Define.
22084 2015-07-22 Uros Bizjak <ubizjak@gmail.com>
22087 * config/i386/i386.c (get_builtin_code_for_version): Add P_AES
22088 to enum feature_priority and feature_list.
22089 (fold_builtin_cpu): Add F_AES to enum processor_features
22090 and isa_names_table.
22092 2015-07-22 Ilya Enkovich <enkovich.gnu@gmail.com>
22095 * config/i386/linux-common.h (MPX_SPEC): Use linker option
22096 for 64bit target only.
22098 2015-07-22 Bernd Schmidt <bernds@codesourcery.com>
22100 * config/nvptx/nvptx.c: Expand some comments.
22102 2015-07-22 James Greenhalgh <james.greenhalgh@arm.com>
22104 * config/arm/cortex-a53 (cortex_53_advsimd): Rename to...
22105 (cortex_a53_advsimd): ...This.
22107 2015-07-22 Richard Biener <rguenther@suse.de>
22109 * genmatch.c (expr::gen_transform): Clarify error message
22110 and display location.
22112 2015-07-22 Richard Biener <rguenther@suse.de>
22114 * genmatch.c (struct operand): Add location member.
22115 (predicate, expr, c_expr, capture, if_expr, with_expr): Adjust
22117 (struct simplify): Remove match_location and result_location
22119 (elsehwere): Adjust.
22121 2015-07-22 Prachi Godbole <prachi.godbole@imgtec.com>
22123 * config/mips/m5100.md: New file.
22124 * config/mips/mips-cpus.def (m5100, m5101): Define.
22125 * config/mips/mips-tables.opt: Regenerate.
22126 * config/mips/mips.c (mips_rtx_cost_data): Add costs for m5100.
22127 * config/mips/mips.h (MIPS_ISA_LEVEL_SPEC): Map -march=m5100 and
22128 -march=m5101 to -mips32r5.
22129 (MIPS_ARCH_FLOAT_SPEC): Map -m5101 to -msoft-float.
22130 (MIPS_ISA_NAN2008_SPEC): Map -march=m51* to -mnan=2008 if
22132 * config/mips/mips.md: Include m5100.md.
22133 (processor): Add m5100.
22134 * doc/invoke.texi (-march=@var{arch}): Add m5100, m5101.
22136 2015-07-22 Robert Suchanek <robert.suchanek@imgtec.com>
22138 * config/mips/mips-cpus.def (interaptiv): Define.
22139 * config/mips/mips-tables.opt: Regenerate.
22140 * config/mips/mips.h (MIPS_ISA_LEVEL_SPEC): Map -march=interaptiv to
22142 (BASE_DRIVER_SELF_SPECS): Likewise but map to -mdsp.
22143 * doc/invoke.texi (-march=@var{arch}): Add interaptiv.
22145 2015-07-22 Jiong Wang <jiong.wang@arm.com>
22148 * config/aarch64/aarch64.h (REG_ALLOC_ORDER): Define.
22149 (HONOR_REG_ALLOC_ORDER): Define.
22151 2015-07-22 Richard Biener <rguenther@suse.de>
22153 PR tree-optimization/66952
22154 * tree-ssa-ifcombine.c (pass_tree_ifcombine::execute): For
22155 blocks we end up executing unconditionally reset all SSA
22156 info such as range and alignment.
22157 * tree-ssanames.h (reset_flow_sensitive_info): Declare.
22158 * tree-ssanames.c (reset_flow_sensitive_info): New function.
22160 2015-07-22 Charles Baylis <charles.baylis@linaro.org>
22162 * config/aarch64/aarch64-simd.md (vec_store_lanesoi_lane<mode>): Fix
22165 2015-07-22 Richard Biener <rguenther@suse.de>
22167 * genmatch.c (parser::parse_result): Properly handle
22168 match with result operands and conditions.
22170 2015-07-22 Charles Baylis <charles.baylis@linaro.org>
22173 * config/aarch64/aarch64-builtins.c (enum aarch64_type_qualifiers):
22174 Add qualifier_struct_load_store_lane_index.
22175 (aarch64_types_loadstruct_lane_qualifiers): Use
22176 qualifier_struct_load_store_lane_index for lane index argument for
22178 (aarch64_types_storestruct_lane_qualifiers): Ditto.
22179 (builtin_simd_arg): Add SIMD_ARG_STRUCT_LOAD_STORE_LANE_INDEX.
22180 (aarch64_simd_expand_args): Add new argument describing mode of
22181 builtin. Check lane bounds for arguments with
22182 SIMD_ARG_STRUCT_LOAD_STORE_LANE_INDEX.
22183 (aarch64_simd_expand_builtin): Emit error for incorrect lane indices
22184 if marked with SIMD_ARG_STRUCT_LOAD_STORE_LANE_INDEX.
22185 (aarch64_simd_expand_builtin): Handle arguments with
22186 qualifier_struct_load_store_lane_index. Pass machine mode of builtin to
22187 aarch64_simd_expand_args.
22188 * config/aarch64/aarch64-simd-builtins.def: Declare ld[234]_lane and
22189 vst[234]_lane with BUILTIN_VALLDIF.
22190 * config/aarch64/aarch64-simd.md:
22191 (aarch64_vec_load_lanesoi_lane<mode>): Use VALLDIF iterator. Perform
22192 endianness reversal on lane index.
22193 (aarch64_vec_load_lanesci_lane<mode>): Ditto.
22194 (aarch64_vec_load_lanesxi_lane<mode>): Ditto.
22195 (vec_store_lanesoi_lane<mode>): Use VALLDIF iterator.
22196 (vec_store_lanesci_lane<mode>): Ditto.
22197 (vec_store_lanesxi_lane<mode>): Ditto.
22198 (aarch64_ld2_lane<mode>): Use VALLDIF iterator. Remove endianness
22199 reversal of lane index.
22200 (aarch64_ld3_lane<mode>): Ditto.
22201 (aarch64_ld4_lane<mode>): Ditto.
22202 (aarch64_st2_lane<mode>): Ditto.
22203 (aarch64_st3_lane<mode>): Ditto.
22204 (aarch64_st4_lane<mode>): Ditto.
22205 * config/aarch64/arm_neon.h (__LD2_LANE_FUNC): Rename mode parameter
22206 to qmode. Add new mode parameter. Update uses.
22207 (__LD3_LANE_FUNC): Ditto.
22208 (__LD4_LANE_FUNC): Ditto.
22209 (__ST2_LANE_FUNC): Ditto.
22210 (__ST3_LANE_FUNC): Ditto.
22211 (__ST4_LANE_FUNC): Ditto.
22213 2015-07-22 Jonathan Wakely <jwakely@redhat.com>
22215 * doc/invoke.texi (Language Independent Options): Rename node to
22216 Diagnostic Message Formatting Options.
22218 2015-07-21 Vladimir Makarov <vmakarov@redhat.com>
22221 * lra-remat.c (operand_to_remat): Prevent using insns with input
22222 subregs processed separately by IRA.
22224 2015-07-21 Andrew MacLeod <amacleod@redhat.com>
22226 * ssa-iterators.h (has_zero_uses, has_single_use): Implement as
22228 (single_imm_use): Check for iterator node.
22229 (num_imm_uses): Likewise.
22230 * tree-ssa-operands.c (has_zero_uses_1): Delete.
22231 (single_imm_use_1): Check for iterator node.
22233 2015-07-21 Mike Frysinger <vapier@gentoo.org>
22234 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
22236 * configure.ac: Add check for new options in isl-0.15.
22237 * config.in, configure: Rebuilt.
22238 * graphite-blocking.c: Include <isl/constraint.h>
22239 * graphite-interchange.c, graphite-poly.c: Likewise.
22240 * graphhite-scop-detection.c, graphite-sese-to-poly.c: Likewise.
22241 * graphite.c: Likewise.
22242 * graphite-isl-ast-to-gimple.c: Include <isl/constraint.h> and
22244 * graphite-dependences.c: Include <isl/constraint.h>.
22245 (max_number_of_out_dimensions): Returns isl_stat.
22246 (extend_schedule_1): Likewise
22247 (extend_schedule): Corresponding changes.
22248 * graphite-optimize-isl.c: Include <isl/constraint.h> and
22250 (getSingleMap): Change return type of isl_stat.
22251 (optimize_isl): Conditionally use
22252 isl_options_set_schedule_serialize_sccs.
22253 * graphite-poly.h (isl_stat, isl_stat_ok): Define fallbacks
22254 if not HAVE_ISL_OPTIONS_SET_SCHEDULE_SERIALIZE_SCCS.
22256 2015-07-21 Georg-Johann Lay <avr@gjlay.de>
22259 * config/avr/avr-dimode.md (<extend_u>mulsidi3_insn)
22260 (<extend_u>mulsidi3): Don't use if !AVR_HAVE_MUL.
22262 2015-07-21 Richard Biener <rguenther@suse.de>
22264 PR tree-optimization/66948
22265 * genmatch.c (capture_info::walk_match): Also recurse to
22266 captures. Properly compute expr state from captures of
22268 * match.pd: Add single-use guards to
22269 (X & C2) >> C1 into (X >> C1) & (C2 >> C1) transform.
22271 2015-07-21 Nathan Sidwell <nathan@codesourcery.com>
22273 * config/nvptx/mkoffload.c (process): Add static destructor call.
22275 2015-07-21 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
22277 PR middle-end/66915
22278 * match.pd (A - B -> A + (-B)): Don't allow folding
22279 when type if a fixed-point type.
22281 2015-07-20 DJ Delorie <dj@redhat.com>
22283 * config/rl78/rl78-real.md (andqi3_real): Expand operands for clr1.
22284 (iorqi3_real): Likewise for set1.
22286 2015-07-20 Uros Bizjak <ubizjak@gmail.com>
22288 * config/i386/i386.c (ix86_md_asm_adjust): Handle DImode dest_mode
22291 2015-07-20 Aditya Kumar <hiraditya@msn.com>
22293 * graphite-isl-ast-to-gimple.c:
22294 Refactor so that each function can access 'region'. This will help
22295 maintain a parameter rename_map within a region.
22297 2015-07-20 Segher Boessenkool <segher@kernel.crashing.org>
22299 * config/rs6000/rs6000.md (*lt0_disi): New.
22301 2015-07-20 Segher Boessenkool <segher@kernel.crashing.org>
22304 * config/rs6000/constraints.md ("S", "T", "t"): Delete. Update
22305 "available letters" comment.
22306 * config/rs6000/predicates.md (mask_operand, mask_operand_wrap,
22307 mask64_operand, mask64_2_operand, any_mask_operand, and64_2_operand,
22308 and_2rld_operand): Delete.
22309 (and_operand): Adjust.
22310 (rotate_mask_operator): New.
22311 * config/rs6000/rs6000-protos.h (build_mask64_2_operands,
22312 includes_lshift_p, includes_rshift_p, includes_rldic_lshift_p,
22313 includes_rldicr_lshift_p, insvdi_rshift_rlwimi_p, extract_MB,
22314 extract_ME): Delete.
22315 (rs6000_is_valid_mask, rs6000_is_valid_and_mask,
22316 rs6000_is_valid_shift_mask, rs6000_is_valid_insert_mask,
22317 rs6000_insn_for_and_mask, rs6000_insn_for_shift_mask,
22318 rs6000_insn_for_insert_mask, rs6000_is_valid_2insn_and,
22319 rs6000_emit_2insn_and): New.
22320 * config/rs6000/rs6000.c (num_insns_constant): Adjust.
22321 (build_mask64_2_operands, includes_lshift_p, includes_rshift_p,
22322 includes_rldic_lshift_p, includes_rldicr_lshift_p,
22323 insvdi_rshift_rlwimi_p, extract_MB, extract_ME): Delete.
22324 (rs6000_is_valid_mask, rs6000_is_valid_and_mask,
22325 rs6000_insn_for_and_mask, rs6000_is_valid_shift_mask,
22326 s6000_insn_for_shift_mask, rs6000_is_valid_insert_mask,
22327 rs6000_insn_for_insert_mask, rs6000_is_valid_2insn_and,
22328 rs6000_emit_2insn_and): New.
22329 (print_operand) <'b', 'B', 'm', 'M', 's', 'S', 'W'>: Delete.
22330 (rs6000_rtx_costs) <CONST_INT>: Delete mask_operand and mask64_operand
22332 <NOT>: Don't fall through to next case.
22333 <AND>: Handle the various rotate-and-mask cases directly.
22334 <IOR>: Always cost as one insn.
22335 * config/rs6000/rs6000.md (splitter for bswap:SI): Adjust.
22336 (and<mode>3): Adjust expander for the new patterns.
22337 (and<mode>3_imm, and<mode>3_imm_dot, and<mode>3_imm_dot2,
22338 and<mode>3_imm_mask_dot, and<mode>3_imm_mask_dot2): Adjust condition.
22339 (*and<mode>3_imm_dot_shifted): New.
22340 (*and<mode>3_mask): Delete, rewrite as ...
22341 (and<mode>3_mask): ... New.
22342 (*and<mode>3_mask_dot, *and<mode>3_mask_dot): Rewrite.
22343 (andsi3_internal0_nomc): Delete.
22344 (*andsi3_internal6): Delete.
22345 (*and<mode>3_2insn): New.
22346 (insv, insvsi_internal, *insvsi_internal1, *insvsi_internal2,
22347 *insvsi_internal3, *insvsi_internal4, *insvsi_internal5,
22348 *insvsi_internal6, insvdi_internal, *insvdi_internal2,
22349 *insvdi_internal3): Delete.
22350 (*rotl<mode>3_mask, *rotl<mode>3_mask_dot, *rotl<mode>3_mask_dot2,
22351 *rotl<mode>3_insert, *rotl<mode>3_insert_2, *rotl<mode>3_insert_3,
22352 *rotl<mode>3_insert_4, two splitters for multi-precision shifts,
22353 *ior<mode>_mask): New.
22354 (extzv, extzvdi_internal, *extzvdi_internal1, *extzvdi_internal2,
22355 *rotlsi3_mask, *rotlsi3_mask_dot, *rotlsi3_mask_dot2,
22356 *ashlsi3_imm_mask, *ashlsi3_imm_mask_dot, *ashlsi3_imm_mask_dot2,
22357 *lshrsi3_imm_mask, *lshrsi3_imm_mask_dot, *lshrsi3_imm_mask_dot2):
22359 (ashr<mode>3): Delete expander.
22360 (*ashr<mode>3): Rename to ...
22361 (ashr<mode>3): ... This.
22362 (ashrdi3_no_power, *ashrdisi3_noppc64be): Delete.
22363 (*rotldi3_internal4, *rotldi3_internal5 and split,
22364 *rotldi3_internal6 and split, *ashldi3_internal4, ashldi3_internal5
22365 and split, *ashldi3_internal6 and split, *ashldi3_internal7,
22366 ashldi3_internal8 and split, *ashldi3_internal9 and split): Delete.
22367 (*anddi3_2rld, *anddi3_2rld_dot, *anddi3_2rld_dot2): Delete.
22368 (splitter for loading a mask): Adjust.
22369 * doc/md.texi (Machine Constraints): Remove q, S, T, t constraints.
22371 2015-07-20 Marek Polacek <polacek@redhat.com>
22373 * genemit.c (print_code, gen_exp, gen_insn, gen_expand, gen_split,
22374 output_add_clobbers, output_added_clobbers_hard_reg_p,
22375 gen_rtx_scratch): Remove declarations.
22377 2015-07-20 Marek Polacek <polacek@redhat.com>
22380 * doc/invoke.texi: Document -Wshift-overflow and -Wshift-overflow=.
22382 2015-07-20 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
22384 * simplify-rtx.c (simplify_unary_operation_1, NEG case):
22385 (neg (x ? (neg y) : y)) -> !x ? (neg y) : y.
22387 2015-07-20 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
22389 * combine.c (combine_simplify_rtx): Move simplification step
22390 before various transformations/substitutions.
22392 2015-07-20 Mikhail Maltsev <maltsevm@gmail.com>
22394 * wide-int.h (struct binary_traits): Fix partial specialization syntax.
22395 (struct int_traits): Likewise.
22397 2015-07-18 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
22399 * vmsdbgout.c (vmsdbgout_decl): Change name of prototyped
22400 function to vmsdbgout_function_decl.
22402 2015-07-18 Uros Bizjak <ubizjak@gmail.com>
22405 * config/i386/i386.c (ix86_expand_pextr): Reject extractions
22406 from misaligned positions.
22407 (ix86_expand_pinsr): Reject insertions to misaligned positions.
22409 2015-07-18 Sebastian Pop <s.pop@samsung.com>
22411 PR middle-end/46851
22412 PR middle-end/60340
22413 * Makefile.in: Removed omega.o.
22414 * common.opt: Document flag fcheck-data-deps as deprecated.
22415 * doc/invoke.texi: Remove documentation for fcheck-data-deps and
22416 its associated params: omega-max-vars, omega-max-geqs,
22417 omega-max-eqs, omega-max-wild-cards, omega-hash-table-size,
22418 omega-max-keys, omega-eliminate-redundant-constraints.
22419 * doc/loop.texi: Remove all the section on Omega.
22420 * graphite-blocking.c: Include missing params.h: it used to be
22421 included through tree-data-ref.h and omega.h.
22422 * graphite-isl-ast-to-gimple.c: Same.
22423 * graphite-optimize-isl.c: Same.
22424 * graphite-sese-to-poly.c: Same.
22425 * graphite.c: Same.
22428 * params.def: Removed PARAM_OMEGA_MAX_VARS, PARAM_OMEGA_MAX_GEQS,
22429 PARAM_OMEGA_MAX_EQS, PARAM_OMEGA_MAX_WILD_CARDS,
22430 PARAM_OMEGA_HASH_TABLE_SIZE, PARAM_OMEGA_MAX_KEYS, and
22431 PARAM_OMEGA_ELIMINATE_REDUNDANT_CONSTRAINTS.
22432 * passes.def: Remove pass_check_data_deps.
22433 * tree-data-ref.c (dump_affine_function): Declare DEBUG_FUNCTION.
22434 (dump_conflict_function): Same.
22435 (dump_subscript): Same.
22436 (print_direction_vector): Same.
22437 (print_dir_vectors): Same.
22438 (print_lambda_vector): Same.
22439 (print_dist_vectors): Same.
22440 (dump_data_dependence_relation): Same.
22441 (dump_data_dependence_relations): Same.
22442 (dump_dist_dir_vectors): Same.
22444 (init_omega_eq_with_af): Removed.
22445 (omega_extract_distance_vectors): Removed.
22446 (omega_setup_subscript): Removed.
22447 (init_omega_for_ddr_1): Removed.
22448 (init_omega_for_ddr): Removed.
22449 (ddr_consistent_p): Removed.
22450 (compute_affine_dependence): Do not use omega to check data
22452 (compute_data_dependences_for_bb): Removed.
22453 (analyze_all_data_dependences): Removed.
22454 (tree_check_data_deps): Removed.
22455 * tree-data-ref.h: Do not include omega.h.
22456 (compute_data_dependences_for_bb): Removed.
22457 (tree_check_data_deps): Removed.
22458 * tree-ssa-loop.c (pass_check_data_deps): Removed.
22459 (make_pass_check_data_deps): Removed.
22460 * tree-ssa-phiopt.c: Include params.h.
22461 * tree-vect-data-refs.c: Same.
22462 * tree-vect-slp.c: Same.
22464 2015-07-18 Uros Bizjak <ubizjak@gmail.com>
22466 * config/i386/i386.md (pushsf splitter): Pass curr_insn to
22467 find_constant_src. FAIL if find_constant_src returns NULL_RTX.
22468 (mem->fpreg splitters): Ditto.
22469 (general_operand->nonimmediate_operand splitter): Use explicit modes.
22470 Disable DFmode for TARGET_64BIT.
22472 2015-07-17 H.J. Lu <hongjiu.lu@intel.com>
22475 * config/i386/i386.c (ix86_expand_prologue): Replicate static
22476 chain on the stack.
22478 2015-07-17 Nathan Sidwell <nathan@codesourcery.com>
22480 * config/nvptx/mkoffload.c (process): Constify host data.
22481 * config/i386/intelmic-mkoffload.c (generate_target_descr_file):
22482 Constify host data.
22483 (generate_host_descr_file): Likewise.
22485 2015-07-17 Aditya Kumar <aditya.k7@samsung.com>
22486 Sebastian Pop <s.pop@samsung.com>
22488 PR middle-end/61929
22489 * graphite-dependences.c (add_pdr_constraints): Renamed
22490 pdr->extent to pdr->subscript_sizes.
22491 * graphite-interchange.c (build_linearized_memory_access): Add
22492 back all gcc_assert's that the "isl_int to isl_val conversion"
22493 patch has removed. Refactored.
22494 (pdr_stride_in_loop): Renamed pdr->extent to pdr->subscript_sizes.
22495 * graphite-poly.c (new_poly_dr): Same.
22496 (free_poly_dr): Same.
22497 * graphite-poly.h (struct poly_dr): Same.
22498 * graphite-scop-detection.c (stmt_has_simple_data_refs_p): Ignore
22499 all data references other than ARRAY_REF, MEM_REF, and COMPONENT_REF.
22500 * graphite-scop-detection.h: Fix space.
22501 * graphite-sese-to-poly.c (build_pbb_scattering_polyhedrons): Add
22502 back all gcc_assert's removed by a previous patch.
22503 (wrap): Remove the_isl_ctx global variable that the same patch has
22505 (build_loop_iteration_domains): Same.
22506 (add_param_constraints): Same.
22507 (pdr_add_data_dimensions): Same. Refactored.
22508 (build_poly_dr): Renamed extent to subscript_sizes.
22510 2015-07-17 Marek Polacek <polacek@redhat.com>
22512 * fold-const.c (fold_binary_loc): Move A - (A & B) into ~B & A ...
22513 * match.pd: ... here.
22515 2015-07-17 Nathan Sidwell <nathan@codesourcery.com>
22517 * config/nvptx/mkoffload.c (process): Constify target data.
22518 * config/i386/intelmic-mkoffload.c (generate_target_descr_file):
22519 Constify target data.
22520 (generate_target_offloadend_file): Likewise.
22522 2015-07-17 Yuri Rumyantsev <ysrumyan@gmail.com>
22524 * tree-vect-loop-manip.c (rename_variables_in_bb): Add argument
22525 to allow renaming of PHI arguments on edges incoming from outer
22526 loop header, add corresponding check before start PHI iterator.
22527 (slpeel_tree_duplicate_loop_to_edge_cfg): Introduce new bool
22528 variable DUPLICATE_OUTER_LOOP and set it to true for outer loops
22529 with true force_vectorize. Set-up dominator for outer loop too.
22530 Pass DUPLICATE_OUTER_LOOP as argument to rename_variables_in_bb.
22531 (slpeel_can_duplicate_loop_p): Allow duplicate of outer loop if it
22532 was marked with force_vectorize and has restricted cfg.
22533 (slpeel_tree_peel_loop_to_edge): Do not rename exit PHI uses in
22535 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment): Do not
22536 do peeling for outer loops.
22538 2015-07-17 Yvan Roux <yvan.roux@linaro.org>
22539 Matthias Klose <doko@ubuntu.com>
22541 * configure.ac: Move AC_ARG_WITH checks for native-system-header-dir,
22542 build-sysroot, sysroot from the `Miscenalleous configure options' to
22543 the `Directories' section and strip trailing `/' from with_sysroot.
22544 (gcc_gxx_include_dir): Don't strip a `/' sysroot value.
22545 * configure: Regenerated.
22547 2015-07-17 Uros Bizjak <ubizjak@gmail.com>
22550 * config/i386/i386.h (TARGET_HARD_SF_REGS): New define.
22551 (TARGET_HARD_DF_REGS): Ditto.
22552 (TARGET_HARD_XF_REGS): Ditto.
22553 * config/i386/i386.md (*movxf_internal): Add alternatives 9 and 10.
22554 Enable alternatives 9 and 10 only for !TARGET_HARD_XF_REG target.
22555 (*movdf_internal): Add alternatives 22, 23, 24 and 25. Enable
22556 alternatives 22, 23, 24 and 25 only for !TARGET_HARD_DF_REG target.
22557 (*movsf_internal): Add alternatives 16 and 17. Enable
22558 alternatives 16 and 17 only for !TARGET_HARD_SF_REG target.
22560 2015-07-17 Uros Bizjak <ubizjak@gmail.com>
22562 PR rtl-optimization/66891
22563 * calls.c (expand_call): Wrap precompute_register_parameters with
22564 NO_DEFER_POP/OK_DEFER_POP to prevent deferred pops.
22566 2015-07-16 Nathan Sidwell <nathan@codesourcery.com>
22568 * config/nvptx/mkoffload.c (process): Constify mapping variables.
22569 Define target data struct and initialize it.
22571 2015-07-16 Vladimir Makarov <vmakarov@redhat.com>
22573 PR rtl-optimization/66626
22574 * ira.h (emit-rtl.h): Include.
22575 (non_spilled_static_chain_regno_p): New.
22576 * ira-color.c (setup_profitable_hard_regs): Clear profitable regs
22577 unless it is non spilled static chain pseudo.
22578 (assign_hard_rego): Spill memory profitable allocno unless it is
22579 non spilled static chain pseudo.
22580 (allocno_spill_priority_compare): Put non spilled static chain
22581 pseudo at the end of sorted array.
22582 (improve_allocation): Do nothing if we have static chain and
22584 (allocno__priority_compare_func): Put non spilled static chain
22585 pseudo at the beginning of sorted array.
22586 (move_spill_restore): Ignore non spilled static chain pseudo.
22587 * ira-costs.c (find_costs_and_classes): Don't assign class NO_REGS
22588 to non spilled static chain pseudo.
22589 * lra-assigns.c (pseudo_compare_func): Put non spilled static chain
22590 pseudo at the beginning of sorted array.
22591 (spill_for): Spill non spilled static chain pseudo last.
22592 * lra-constraints.c (lra_constraints): Remove static chain pseudo
22593 check for equivalence.
22595 2015-07-16 Martin Liska <mliska@suse.cz>
22598 * ipa-prop.c (update_jump_functions_after_inlining): Create properly
22599 dst_ctx if it does not exist.
22601 2015-07-16 Martin Liska <mliska@suse.cz>
22603 * hash-set.h (remove): New function.
22604 (iterator): New iteration class for hash_set.
22606 2015-07-16 Richard Sandiford <richard.sandiford@arm.com>
22608 * genattrtab.c (make_canonical): Add a file_location parameter.
22609 Use fatal_at rather than fatal.
22610 (get_attr_value): Likewise. Update call to make_canonical.
22611 (fill_attr, make_length_attrs, optimize_attrs, gen_attr)
22612 (make_internal_attr): Update calls accordingly.
22614 2015-07-16 Richard Sandiford <richard.sandiford@arm.com>
22616 * read-md.h (message_with_line, error_with_line): Delete.
22617 * read-md.c (message_with_line, error_with_line): Delete.
22618 * gensupport.h: Include read-md.h.
22619 (md_rtx_info): New structure.
22620 (read_md_rtx): Use it. Return a bool success value.
22621 * gensupport.c (read_md_rtx): Likewise.
22622 * genattr-common.c (gen_attr): Take an md_rtx_info rather than an rtx.
22623 (main): Update after interface changes.
22624 * genattr.c (gen_attr): Take an md_rtx_info rather than an rtx.
22625 (main): Update after interface changes.
22626 * genattrtab.c (insn_code_number): Delete.
22627 (optimize_attrs): Add a max_insn_code parameter and use it instead
22628 of insn_code_number.
22629 (gen_attr): Take an md_rtx_info rather than an rtx and lineno.
22630 Use *_at rather than *_with_line functions.
22631 (gen_insn): Likewise.
22632 (gen_delay): Likewise.
22633 (gen_insn_reserv): Likewise.
22634 (gen_bypass): Take an md_rtx_info rather than an rtx.
22635 (main): Update after interface changes. Use a local max_insn_code
22636 variable instead of insn_code_number.
22637 * genautomata.c (gen_cpu_unit): Take an md_rtx_info rather than
22638 an rtx. Use fatal_at rather than fatal.
22639 (gen_query_cpu_unit, gen_bypass, gen_excl_set)
22640 (gen_presence_absence_set, gen_presence_set, gen_final_presence_set)
22641 (gen_absence_set, gen_final_absence_set, gen_automaton)
22642 (gen_automata_option, gen_reserv, gen_insn_reserv): Likewise.
22643 (main): Update after interface changes.
22644 * gencodes.c (gen_insn): Take an md_rtx_info rather than an rtx
22646 (main): Update after interface changes.
22647 * genconditions.c (main): Use new read_md_rtx interface.
22648 * genconfig.c (gen_insn): Take an md_rtx_info rather than an rtx.
22649 (gen_expand, gen_split, gen_peephole, gen_peephole2): Likewise.
22650 (main): Update after interface changes.
22651 * genemit.c (insn_code_number, insn_index_number): Delete.
22652 (gen_insn): Take an md_rtx_info rather than an rtx and lineno.
22653 Use fatal_at rather than fatal.
22654 (gen_expand): Take an md_rtx_info rather than an rtx. Use fatal_at
22656 (gen_split): Likewise.
22657 (main): Update after interface changes.
22658 * genextract.c (line_no): Delete.
22659 (gen_insn): Take an md_rtx_info rather than an rtx and lineno.
22660 Update call to walk_rtx.
22661 (VEC_safe_set_locstr): Add an md_rtx_info argument. Use message_at
22662 rather than message_with_line.
22663 (walk_rtx): Add an md_rtx_info argument. Update call to
22664 VEC_safe_set_locstr.
22665 (main): Update after interface changes.
22666 * genflags.c (gen_insn): Take an md_rtx_info rather than an rtx
22667 and lineno. Use error_at rather than separate message_with_line
22668 calls and have_error assignments.
22669 (main): Update after interface changes.
22670 * genmddump.c (main): Use new read_md_rtx interface.
22671 * genopinit.c (insn): Take an md_rtx_info rather than an rtx.
22672 (main): Update after interface changes.
22673 * genoutput.c (next_code_number): Delete.
22674 (gen_insn): Take an md_rtx_info rather than an rtx and lineno.
22675 (gen_peephole, gen_expand, gen_split): Likewise.
22676 (note_constraint): Likewise. Use *_at rather than *_with_line
22678 (main): Update after interface changes.
22679 * genpeep.c (gen_peephole): Take an md_rtx_info rather than an
22681 (main): Update after interface changes.
22682 * genpreds.c (process_define_predicate): Take an md_rtx_info rather
22683 than an rtx and lineno.
22684 (process_define_constraint): Likewise.
22685 (process_define_register_constraint): Likewise.
22686 (main): Update after interface changes.
22687 * genrecog.c (next_insn_code, pattern_lineno): Delete.
22688 (validate_pattern): Replace top-level rtx with an md_rtx_info.
22689 Use *_at rather than *_with_line functions.
22690 (match_pattern_2): Likewise.
22691 (match_pattern_1, match_pattern): Add an md_rtx_info parameter.
22692 (get_peephole2_pattern): Take an md_rtx_info rather than an rtvec.
22693 Use *_at rather than *_with_line functions.
22694 * gentarget-def.c (add_insn): New function.
22695 (main): Use it. Use new read_md_rtx interface.
22697 2015-07-16 Richard Sandiford <richard.sandiford@arm.com>
22699 * gensupport.h (compute_test_codes): Take a file_location rather
22700 than a line number.
22701 * gensupport.c (compute_test_codes): Likewise. Use *_at functions
22702 rather than *_with_line functions.
22703 (process_define_predicate): Update call to compute_test_codes.
22704 * genpreds.c (validate_exp): Take a file_location rather than a
22705 line number. Use *_at functions rather than *_with_line functions.
22706 (process_define_predicate): Update call to validate_exp.
22707 (constraint_data): Replace lineno field with a file_location.
22708 (add_constraint): Take a file_location rather than a line number.
22709 Use *_at functions rather than *_with_line functions. Fix error
22710 message for address constraints. Update after changes to
22711 validate_exp, constraint_data and compute_test_codes.
22712 (process_define_constraint): Update accordingly.
22713 (process_define_register_constraint): Likewise.
22715 2015-07-16 Richard Sandiford <richard.sandiford@arm.com>
22717 * genoutput.c (data): Use a file_location to record the source
22720 (idata, idata_end): Remove initialization.
22721 (constraint_data): Replace lineno with a file_location.
22722 (output_insn_data): Update after changes to data.
22723 (gen_insn, gen_peephole, gen_expand, gen_split): Likewise.
22724 (scan_operands): Likewise, using *_at rather than *_with_line
22726 (process_template): Likewise.
22727 (validate_insn_alternatives): Likewise.
22728 (validate_insn_operands): Likewise.
22729 (validate_optab_operands): Likewise.
22730 (init_insn_for_nothing): Initialize idata and idata_end.
22731 (note_constraint): Update after changes to constraint_data,
22732 using at rather than with_line functions.
22733 (mdep_constraint_len): Take a file_location rather than a
22734 line number. Use at rather than with_line functions.
22736 2015-07-16 Richard Sandiford <richard.sandiford@arm.com>
22738 * read-md.h (fatal_at): Declare.
22739 * read-md.c (fatal_at): New function.
22740 * genattrtab.c (insn_def, attr_desc, delay_desc): Use a file_location
22741 to record the source position.
22742 (check_attr_test): Take a file_location instead of a line number.
22743 Use fatal_at instead of fatal.
22744 (check_attr_value): Update after above changes, using "at"
22745 rather than "with_line" reporting functions.
22746 (convert_set_attr_alternative): Likewise.
22747 (gen_attr): Likewise.
22748 (check_defs): Likewise. Don't assign to read_md_filename.
22749 (gen_insn): Update initialization after above changes.
22750 (gen_delay): Likewise.
22751 (write_insn_cases): Print the filename for a define_peephole.
22752 (gen_insn_reserv): Take a line number as argument and update
22753 the call to check_attr_test.
22754 (main): Pass a line number to gen_insn_reserv.
22756 2015-07-16 Richard Sandiford <richard.sandiford@arm.com>
22758 * read-md.h (file_location): New structure.
22759 (directive_handler_t): Take a file_location rather than a line number.
22760 (message_at, error_at): Declare.
22761 (read_skip_construct): Delete.
22762 * read-md.c (message_with_line_1): Replace with...
22763 (message_at_1): ...this new function.
22764 (message_at, error_at): New functions.
22765 (message_with_line, error_with_line): Update to use message_at_1.
22766 (handle_enum): Take a file_location rather than a line number
22767 and use error_at for error reporting.
22768 (handle_include): Likewise.
22769 (read_skip_construct): Likewise. Make static.
22770 (handle_file): Update after above changes. Pass a file_location
22771 rather than a line number to handle_directive.
22772 * gensupport.c (queue_elem): Replace separate filename and lineno
22773 with a file_location.
22774 (queue_pattern): Replace filename and lineno arguments with a
22775 file_location. Update after change to queue_elem.
22776 (process_define_predicate): Replace lineno argument with a
22777 file_location and use error_at for error reporting. Update
22778 after above changes.
22779 (process_rtx): Likewise.
22780 (subst_pattern_match): Likewise.
22781 (get_alternatives_number): Likewise.
22782 (alter_predicate_for_insn): Likewise.
22783 (rtx_handle_directive): Likewise.
22784 (is_predicable): Update after above changes, using error_at rather
22785 than error_with_line.
22786 (has_subst_attribute): Likewise.
22787 (identify_predicable_attribute): Likewise.
22788 (alter_attrs_for_subst_insn): Likewise.
22789 (process_one_cond_exec): Likewise.
22790 (process_substs_on_one_elem): Likewise.
22791 (process_define_subst): Likewise.
22792 (check_define_attr_duplicates): Likewise.
22793 (read_md_rtx): Update after change to queue_elem.
22795 2015-07-16 Richard Sandiford <richard.sandiford@arm.com>
22797 * genoutput.c (next_index_number): Delete.
22798 (data): Remove index_number.
22799 (gen_insn, gen_peephole, gen_expand, gen_split): Update accordingly.
22800 (main): Remove manipulation of next_index_number.
22802 2015-07-16 Richard Sandiford <richard.sandiford@arm.com>
22804 * genattrtab.c (check_attr_value): Remove handling of null attrs.
22805 (make_canonical): Likewise.
22807 2015-07-16 Eric Botcazou <ebotcazou@adacore.com>
22809 * config/sparc/sparc.md (save_stack_nonlocal): Use adjust_address
22810 instead of adjust_address_nv.
22811 (restore_stack_nonlocal): Likewise.
22812 (nonlocal_goto): Likewise.
22814 2015-07-16 Tom de Vries <tom@codesourcery.com>
22816 * tree-parloops.c (create_parallel_loop): Handle case that exit phi does
22817 not have a corresponding loop header phi.
22819 2015-07-16 Tom de Vries <tom@codesourcery.com>
22821 * tree-parloops.c (create_loads_for_reductions): Handle case that
22822 reduction is unused.
22824 2015-07-16 Richard Biener <rguenther@suse.de>
22826 PR tree-optimization/66894
22827 * tree-vrp.c (register_edge_assert_for_2): Fix bad assumption
22828 about deriving NE_EXPR from truncated values.
22830 2015-07-16 Martin Liska <mliska@suse.cz>
22833 (object_allocator): Add new class.
22834 (pool_allocator::initialize): Use the underlying class.
22835 (pool_allocator::allocate): Likewise.
22836 (pool_allocator::remove): Likewise.
22837 (operator new): A new generic allocator.
22838 * asan.c (struct asan_mem_ref): Remove unused members.
22839 (asan_mem_ref_new): Replace new operator with
22840 object_allocator::allocate.
22841 (free_mem_ref_resources): Change deallocation.
22842 * cfg.c (initialize_original_copy_tables): Replace pool_allocator
22843 with object_allocator.
22844 * config/sh/sh.c (add_constant): Replace new operator with
22845 object_allocator::allocate.
22846 (sh_reorg): Change call to a release method.
22847 * cselib.c (struct elt_list): Remove unused members.
22848 (new_elt_list): Replace new operator with
22849 object_allocator::allocate.
22850 (new_elt_loc_list): Likewise.
22851 (new_cselib_val): Likewise.
22852 (unchain_one_elt_list): Change delete operator with remove method.
22853 (unchain_one_elt_loc_list): Likewise.
22854 (unchain_one_value): Likewise.
22855 (cselib_finish): Release newly added static allocators.
22856 * cselib.h (struct cselib_val): Remove unused members.
22857 (struct elt_loc_list): Likewise.
22858 * df-problems.c (df_chain_alloc): Replace pool_allocator with
22860 * df-scan.c (struct df_scan_problem_data): Likewise.
22861 (df_scan_alloc): Likewise.
22862 * df.h (struct dataflow): Likewise.
22863 * dse.c (struct read_info_type): Likewise.
22864 (struct insn_info_type): Likewise.
22865 (struct dse_bb_info_type): Likewise.
22866 (struct group_info): Likewise.
22867 (struct deferred_change): Likewise.
22868 (get_group_info): Likewise.
22869 (delete_dead_store_insn): Likewise.
22870 (free_read_records): Likewise.
22871 (replace_read): Likewise.
22872 (check_mem_read_rtx): Likewise.
22873 (scan_insn): Likewise.
22874 (dse_step1): Likewise.
22875 (dse_step7): Likewise.
22876 * et-forest.c (struct et_occ): Remove unused members.
22877 (et_new_occ): Use allocate instead of new operator.
22878 (et_new_tree): Likewise.
22879 (et_free_tree): Call release method explicitly.
22880 (et_free_tree_force): Likewise.
22881 (et_free_pools): Likewise.
22882 (et_split): Use remove instead of delete operator.
22883 * et-forest.h (struct et_node): Remove unused members.
22884 * ipa-cp.c: Change pool_allocator to object_allocator.
22885 * ipa-inline-analysis.c: Likewise.
22886 * ipa-profile.c: Likewise.
22887 * ipa-prop.c: Likewise.
22888 * ipa-prop.h: Likewise.
22889 * ira-build.c (initiate_cost_vectors): Cast return value.
22890 (ira_allocate_cost_vector): Likewise.
22891 * ira-color.c (struct update_cost_record): Remove unused members.
22892 * lra-int.h (struct lra_live_range): Likewise.
22893 (struct lra_copy): Likewise.
22894 (struct lra_insn_reg): Likewise.
22895 * lra-lives.c (lra_live_ranges_finish): Release new static allocator.
22896 * lra.c (new_insn_reg): Replace new operator with allocate method.
22897 (free_insn_regs): Same for operator delete.
22898 (finish_insn_regs): Release new static allocator.
22899 (finish_insn_recog_data): Likewise.
22900 (lra_free_copies): Replace delete operator with remove method.
22901 (lra_create_copy): Replace operator new with allocate method.
22902 (invalidate_insn_data_regno_info): Same for remove method.
22903 * regcprop.c (struct queued_debug_insn_change): Remove unused members.
22904 (free_debug_insn_changes): Replace delete operator with remove method.
22905 (replace_oldest_value_reg): Replace operator new with allocate method.
22906 (pass_cprop_hardreg::execute): Release new static variable.
22907 * sched-deps.c (sched_deps_init): Change pool_allocator to
22909 * sel-sched-ir.c: Likewise.
22910 * sel-sched-ir.h: Likewise.
22911 * stmt.c (expand_case): Likewise.
22912 (expand_sjlj_dispatch_table): Likewise.
22913 * tree-sra.c (struct access): Remove unused members.
22914 (struct assign_link): Likewise.
22915 (sra_deinitialize): Release newly added static pools.
22916 (create_access_1):Replace operator new with allocate method.
22917 (build_accesses_from_assign): Likewise.
22918 (create_artificial_child_access): Likewise.
22919 * tree-ssa-math-opts.c (pass_cse_reciprocals::execute): Change
22920 pool_allocator to object_allocator.
22921 * tree-ssa-pre.c: Likewise.
22922 * tree-ssa-reassoc.c: Likewise.
22923 * tree-ssa-sccvn.c (allocate_vn_table): Likewise.
22924 * tree-ssa-strlen.c: Likewise.
22925 * tree-ssa-structalias.c: Likewise.
22926 * var-tracking.c (onepart_pool_allocate): New function.
22927 (unshare_variable): Use the newly added function.
22928 (variable_merge_over_cur): Likewise.
22929 (variable_from_dropped): Likewise.
22930 (variable_was_changed): Likewise.
22931 (set_slot_part): Likewise.
22932 (emit_notes_for_differences_1): Likewise.
22933 (vt_finalize): Release newly added static pools.
22935 2015-07-16 Martin Jambor <mjambor@suse.cz>
22937 * ipa-prop.h (param_aa_status): Rename to ipa_param_aa_status. Adjust
22938 all uses. Fix two typos in its general comment.
22939 (func_body_info): Rename to ipa_func_body_info. Adjust all uses.
22941 2015-07-16 Ilya Enkovich <enkovich.gnu@gmail.com>
22943 * config/i386/linux-common.h (LINK_MPX): New.
22944 (MPX_SPEC): Use LINK_MPX instead of %(link_mpx).
22945 * configure.ac: Add HAVE_LD_BNDPLT_SUPPORT macro
22946 indicating '-z bndplt' support by linker.
22947 * configure: Regenerate.
22948 * config.in: Regenerate.
22950 2015-07-16 Richard Biener <rguenther@suse.de>
22952 * fold-const.c (fold_widened_comparison): Remove.
22953 (fold_sign_changed_comparison): Likewise.
22954 (fold_comparison): Move widened and sign-changed comparison
22956 * match.pd: ... to patterns here.
22957 * generic-match-head.c: Include target.h.
22958 * gimple-match-head.c: Likewise.
22960 2015-07-16 Richard Biener <rguenther@suse.de>
22962 * tree-ssa-dom.c (dom_valueize): New function.
22963 (record_temporary_equivalences): Also record equivalences
22964 for dominating stmts that have uses of equivalences we are
22967 2015-07-16 Bin Cheng <bin.cheng@arm.com>
22969 * tree-ssa-loop-ivopts.c (add_candidate): Remove call to
22970 add_autoinc_candidates.
22971 (add_iv_candidate_for_biv): Rename to add_iv_candidate_for_biv.
22972 (add_iv_candidate_for_biv): Rename from add_iv_candidate_for_biv.
22973 (add_old_ivs_candidates): Rename to add_iv_candidate_for_bivs.
22974 (add_iv_candidate_for_bivs): Rename from add_old_ivs_candidates.
22976 (add_iv_value_candidates): Rename to add_iv_candidate_for_use.
22977 (add_iv_candidate_for_use): Rename from add_iv_value_candidates.
22978 Remove parameter struct iv*. Call add_autoinc_candidates here.
22979 (add_derived_ivs_candidates): Rename to add_iv_candidate_for_uses.
22980 (add_iv_candidate_for_uses): Rename from add_derived_ivs_candidates.
22982 (find_iv_candidates): Call new functions.
22984 2015-07-16 Sandra Loosemore <sandra@codesourcery.com>
22986 * config/nios2/nios2.c (nios2_emit_stack_limit_check): Fix
22987 uninitialized-variable warning.
22989 2015-07-16 Kaz Kojima <kkojima@gcc.gnu.org>
22992 * config/sh/sh.md (movdi): Split simple reg move to two movsi
22993 when the destination is R0.
22995 2015-07-16 Uros Bizjak <ubizjak@gmail.com>
22998 * config/i386/i386-protos.h (ix86_expand_pextr): New prototype.
22999 * config/i386/i386.c (ix86_expand_pextr): New function.
23000 (ix86_expand_pinsr): Handle V1TI and TI modes. Call ix86_expand_pextr
23001 for non-lowpart subregs.
23002 * config/i386/i386.md (extzv<mode>): Expand with ix86_expand_pextr.
23003 (insv<mode>): Use SWI248 mode iterator.
23004 (insv<mode>_1): Ditto.
23006 2015-07-15 Aditya Kumar <aditya.k7@samsung.com>
23007 Sebastian Pop <s.pop@samsung.com>
23009 * graphite-sese-to-poly.c (rewrite_cross_bb_scalar_deps): Point
23010 iterator to use_stmt.
23012 2015-07-15 Aditya Kumar <aditya.k7@samsung.com>
23013 Sebastian Pop <s.pop@samsung.com>
23015 * graphite-scop-detection.c (build_scops_1): Discard scops for
23018 2015-07-15 Aditya Kumar <aditya.k7@samsung.com>
23019 Sebastian Pop <s.pop@samsung.com>
23021 * graphite-scop-detection.c (stmt_simple_for_scop_p): Bail out in
23022 case of a return statement in scop.
23024 2015-07-15 Aditya Kumar <aditya.k7@samsung.com>
23025 Sebastian Pop <s.pop@samsung.com>
23027 * graphite-sese-to-poly.c (parameter_index_in_region): Only handle
23028 INTEGER_TYPE parameters.
23029 (scan_tree_for_params): Handle REAL_CST, COMPLEX_CST, and
23030 VECTOR_CST in scan_tree_for_params.
23031 (add_conditions_to_domain): Only constrain on INTEGER_TYPE.
23033 2015-07-15 Andrew MacLeod <amacleod@redhat.com>
23035 * gimple-pretty-print.h: Don't include pretty-print.h.
23036 * tree-streamer.h: Don't include lto-streamer.h.
23037 * gimple-streamer.h: Include tree-streamer.h rather than lto-streamer.h.
23038 * gimple-streamer-in.c: Remove redundant includes.
23039 * gimple-streamer-out.c: Likewise.
23040 * ipa-devirt.c: Likewise.
23041 * ipa-icf.c: Likewise.
23042 * ipa-inline-analysis.c: Likewise.
23043 * ipa-polymorphic-call.c: Likewise.
23044 * ipa-profile.c: Likewise.
23045 * ipa-prop.c: Likewise.
23046 * ipa-pure-const.c: Likewise.
23047 * lto-cgraph.c: Likewise.
23048 * lto-streamer-in.c: Likewise.
23049 * lto-streamer-out.c: Likewise.
23050 * lto-streamer.c: Likewise.
23051 * tree-streamer-in.c: Likewise.
23052 * tree-streamer-out.c: Likewise.
23053 * tree-streamer.c: Likewise.
23055 2015-07-15 Andrew MacLeod <amacleod@redhat.com>
23057 * opth-gen.awk: Check for UNKNOWN_LOCATION rather than GCC_TM_H, don't
23059 * opts.c: Remove multiline #include comment.
23061 2015-07-15 Nathan Sidwell <nathan@codesourcery.com>
23063 * config/nvptx/mkoffload.c (process): Add C++ protection to
23066 2015-07-14 Michael Meissner <meissner@linux.vnet.ibm.com>
23069 * config/rs6000/rs6000.c (rs6000_pass_by_reference): Move test for
23070 null before IEEE 128-bit floating point support patch.
23072 2015-07-15 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
23074 * simplify-rtx.c (simplify_ternary_operation): Add simplification
23075 for (!c) != {0,...,0} ? a : b for vector modes.
23077 2015-07-15 Paolo Bonzini <bonzini@gnu.org>
23078 Martin Jambor <mjambor@suse.cz>
23080 * ipa-inline-analysis.c (unmodified_parm_or_parm_agg_item): Accept
23081 struct func_body_info* instead of struct ipa_node_params*, expecting
23082 fbi->info to be filled in. Replace throughout. Adjust call to
23083 ipa_load_from_parm_agg.
23084 (set_cond_stmt_execution_predicate): Accept struct func_body_info*
23085 instead of struct ipa_node_params*. Adjust calls to other functions
23086 so that they pass either fbi or fbi->info.
23087 (set_switch_stmt_execution_predicate): Likewise.
23088 (will_be_nonconstant_predicate): Likewise.
23089 (compute_bb_predicates): Likewise.
23090 (estimate_function_body_sizes): Move asserts earlier. Fill in
23091 struct func_body_info, replace parms_info with fbi.info. Adjust
23092 calls to functions that now accept struct func_body_info.
23093 * ipa-prop.c (param_aa_status, struct ipa_bb_info): Move to ipa-prop.h.
23094 (struct func_body_info): Likewise.
23095 (ipa_load_from_parm_agg_1): Rename to ipa_load_from_parm_agg,
23096 remove static. Adjust callers.
23097 (ipa_load_from_parm_agg): Remove.
23098 * ipa-prop.h (param_aa_status, ipa_bb_info): Move from ipa-prop.c.
23099 (func_body_info): Likewise.
23100 (ipa_load_from_parm_agg): Adjust prototype.
23102 2015-07-12 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
23104 * gensupport.c (rtx_handle_directive): Adjust.
23105 * read-rtl.c (apply_iterators): Take vector to add rtxs to
23106 instead of expr list rtx.
23107 (add_define_attr_for_define_subst): Likewise.
23108 (add_define_subst_attr): Likewise.
23109 (read_subst_mapping): Likewise.
23110 (read_rtx): Likewise.
23111 * rtl.h (read_rtx): Adjust.
23113 2015-07-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
23115 * config/aarch64/aarch64.md (*csinc2<mode>_insn): Use cinc mnemonic.
23117 2015-07-15 Uros Bizjak <ubizjak@gmail.com>
23120 * config/i386/i386.md (*tls_global_dynamic_64_<mode>): Depend on SP_REG.
23121 (*tls_local_dynamic_base_64_<mode>): Ditto.
23122 (*tls_local_dynamic_base_64_largepic): Ditto.
23123 (tls_global_dynamic_64_<mode>): Update expander pattern.
23124 (tls_local_dynamic_base_64_<mode>): Ditto.
23126 2015-07-15 Richard Biener <rguenther@suse.de>
23128 * fold-const.c (fold_binary_loc): Move bool_var != 0 -> bool_var
23129 and bool_var == 1 -> bool_var simplifications ...
23130 * match.pd: ... to patterns here. Factor out negate_expr_p
23131 cases from the A - B -> A + (-B) patterns as negate_expr_p
23132 predicate and add a -(A + B) -> (-B) - A pattern.
23134 2015-07-15 Robert Suchanek <robert.suchanek@imgtec.com>
23136 * config/mips/mips.c (mips_emit_save_slot_move): Fix typo.
23138 2015-07-15 Matthew Fortune <matthew.fortune@imgtec.com>
23139 Robert Suchanek <robert.suchanek@imgtec.com>
23141 * config/mips/mips.c (mips_int_mask): New enum.
23142 (mips_shadow_set): Likewise.
23143 (int_mask): New variable.
23144 (use_shadow_register_set_p): Change type to enum mips_shadow_set.
23145 (machine_function): Add int_mask and use_shadow_register_set.
23146 (mips_attribute_table): Add attribute handlers for interrupt and
23147 use_shadow_register_set.
23148 (mips_interrupt_mask): New static function.
23149 (mips_handle_interrupt_attr): Likewise.
23150 (mips_handle_use_shadow_register_set_attr): Likewise.
23151 (mips_use_shadow_register_set): Change return type to enum
23152 mips_shadow_set. Add argument handling for use_shadow_register_set
23154 (mips_interrupt_extra_called_saved_reg_p): Update the conditional to
23155 compare with mips_shadow_set enum.
23156 (mips_compute_frame_info): Add interrupt mask and
23157 use_shadow_register_set to per-function information structure.
23158 Add a stack slot for EPC unconditionally.
23159 (mips_expand_prologue): Compare use_shadow_register_set value
23160 with mips_shadow_set enum. Save EPC always in K1, clobber only K1 for
23161 masked interrupt register but in EIC mode use K0 and save Cause in K0.
23162 EPC saved and restored unconditionally. Use PMODE_INSN macro when
23163 copying the stack pointer from the shadow register set.
23164 * config/mips/mips.h (SR_IM0): New define.
23165 * config/mips/mips.md (mips_rdpgpr): Rename to...
23166 (mips_rdpgpr_<mode>): ...this. Use the Pmode iterator.
23167 * doc/extend.texi (Declaring Attributes of Functions): Document
23168 optional arguments for interrupt and use_shadow_register_set
23171 2015-07-15 Robert Suchanek <robert.suchanek@imgtec.com>
23173 * config/mips/mips.c (mips_compute_frame_info): Allow -mhard-float in
23174 interrupt attribute.
23175 (mips_expand_prologue): Disable the floating point unit in an ISR.
23176 * config/mips/mips.h (SR_COP1): New define.
23178 2015-07-15 Richard Biener <rguenther@suse.de>
23180 * genmatch.c (parser::peek, parser::peek_ident): Add argument
23181 to tell how many tokens to peek ahead (default 1).
23182 (parser::eat_token, parser::eat_ident): Return token consumed.
23183 (parser::parse_result): Parse new switch statement.
23184 * match.pd: Use case statements where appropriate.
23186 2015-07-15 Uros Bizjak <ubizjak@gmail.com>
23188 PR rtl-optimization/58066
23189 * calls.c (expand_call): Precompute register parameters before stack
23190 alignment is performed.
23192 2015-07-15 Uros Bizjak <ubizjak@gmail.com>
23194 PR rtl-optimization/66838
23195 * postreload.c (reload_cse_move2add): Also process
23196 CALL_INSN_FUNCTION_USAGE when resetting information of
23197 call-clobbered registers.
23199 2015-07-14 Sandra Loosemore <sandra@codesourcery.com>
23200 Cesar Philippidis <cesar@codesourcery.com>
23201 Chung-Lin Tang <cltang@codesourcery.com>
23203 * config/nios2/constraints.md (U, v): New constraints.
23204 * config/nios2/predicates.md (rdprs_dcache_operand): New.
23205 (ldstex_memory_operand): New.
23206 * config/nios2/sync.md: New file.
23207 * config/nios2/nios2.md (unspecv): Add new builtin function
23209 (rdprs, flushd, flushda, wrpie, eni): New patterns.
23210 (top-level): Include sync.md.
23211 * config/nios2/nios2.c (N2_FTYPES): Add function types for
23213 (N2_BUILTINS): Add arch field setting, add new builtins.
23214 (enum nios2_builtin_code,nios2_builtins): Update N2_BUILTIN_DEF
23216 (nios2_expand_ldst_builtin): Rename from nios2_expand_ldstio_builtin.
23217 Also handle ldex/stex/ldsex/stsex builtins.
23218 (nios2_expand_rdprs_builtin): New function.
23219 (nios2_expand_cache_builtin): New function.
23220 (nios2_expand_wrpie_builtin): New function.
23221 (nios2_expand_eni_builtin): New function.
23222 (nios2_expand_builtin): Add arch field handling and new builtin
23224 * doc/extend.texi (Altera Nios II Built-in Functions): Document
23226 * doc/md.texi (Machine Constraints): Document U and v constraints.
23228 2015-07-14 Sandra Loosemore <sandra@codesourcery.com>
23229 Cesar Philippidis <cesar@codesourcery.com>
23230 Chung-Lin Tang <cltang@codesourcery.com>
23232 * config/nios2/nios2-protos.h (nios2_expand_return): Declare.
23233 * config/nios2/nios2.c (struct GTY (()) machine_function): Add
23234 callee_save_reg_size and uses_anonymous_args fields.
23235 (nios2_compute_frame_layout): Update for CDX push.n/pop.n usage.
23236 (nios2_create_cfa_notes): New function.
23237 (nios2_adjust_stack): New function for adjusting stack.
23238 (nios2_expand_prologue): Update for CDX push.n/pop.n usage.
23239 Use nios2_adjust_stack.
23240 (nios2_expand_epilogue): Likewise.
23241 (nios2_expand_return): New function.
23242 (nios2_can_use_return_insn): Update for CDX pop.n usage.
23243 (nios2_setup_incoming_varargs): Set uses_anonymous_args flag.
23244 If TARGET_HAS_CDX, defer pushing regs to nios2_expand_prologue.
23245 * config/nios2/nios2.md (return): Use nios2_expand_return.
23247 2015-07-14 Sandra Loosemore <sandra@codesourcery.com>
23248 Cesar Philippidis <cesar@codesourcery.com>
23249 Chung-Lin Tang <cltang@codesourcery.com>
23251 * config/nios2/predicates.md (pop_operation): New.
23252 (ldwm_operation, stwm_operation): New.
23253 (nios2_hard_register_operand): New.
23254 * config/nios2/nios2-protos.h (pop_operation_p): Declare.
23255 (ldstwm_operation_p): Declare.
23256 (gen_ldstwm_peep): Declare.
23257 * config/nios2/nios2.c: (nios2_ldst_parallel): Declare.
23258 (base_reg_adjustment_p): New.
23259 (pop_operation_p): New.
23260 (CDX_LDSTWM_VALID_REGS_0, CDX_LDSTWM_VALID_REGS_1): Define.
23261 (nios2_ldstwm_regset_p): New.
23262 (ldstwm_operation_p): New.
23264 (nios2_ldst_parallel): New.
23265 (struct ldswm_operand): Declare.
23266 (compare_ldstwm_operands): New.
23267 (can_use_cdx_ldstw): New.
23268 (gen_ldstwm_peep): New.
23269 * config/nios2/nios2-ldstwm.sml: New.
23270 * config/nios2/nios2.md: Include ldstwm.md.
23271 * config/nios2/ldstwm.md: Generated.
23273 2015-07-14 Sandra Loosemore <sandra@codesourcery.com>
23274 Cesar Philippidis <cesar@codesourcery.com>
23275 Chung-Lin Tang <cltang@codesourcery.com>
23277 * config/nios2/nios2.h (LABEL_ALIGN): Define.
23278 (REG_ALLOC_ORDER): Define.
23279 (ADJUST_REG_ALLOC_ORDER): Define.
23280 (HONOR_REG_ALLOC_ORDER): Define.
23281 (CDX_REG_P): Define.
23282 (ANDCLEAR_INT): Define.
23283 * config/nios2/nios2-protos.h (nios2_add_insn_asm): Declare.
23284 (nios2_label_align): Declare.
23285 (nios2_cdx_narrow_form_p): Declare.
23286 (nios2_adjust_reg_alloc_order): Declare.
23287 * config/nios2/nios2.c (nios2_rtx_costs): Adjust for BMX zero-extract
23289 (nios2_large_unspec_reloc_p): New function, split from...
23290 (nios2_legitimate_pic_operand_p): ...here.
23291 (nios2_emit_move_sequence): Add *high/*lo_sum constant expand code.
23292 (nios2_print_operand_punct_valid_p): New.
23293 (nios2_print_operand): Add %., %!, %x, %y, %A. Remove %U.
23294 (split_mem_address): New.
23295 (split_alu_insn): New.
23297 (cdx_add_immed, cdx_and_immed, cdx_mov_immed, cdx_shift_immed): New.
23298 (enum nios2_add_insn_kind): New.
23299 (nios2_add_insn_names, nios2_add_insn_narrow): New.
23300 (nios2_add_insn_classify): New.
23301 (nios2_add_insn_asm): New.
23302 (nios2_cdx_narrow_form_p): New.
23303 (label_align, min_labelno, max_labelno): New.
23304 (nios2_reorg): New.
23305 (nios2_label_align): New.
23306 (nios2_adjust_reg_alloc_order): New.
23307 (TARGET_PRINT_OPERAND_PUNCT_VALID_P): Define.
23308 (TARGET_MACHINE_DEPENDENT_REORG): Define.
23309 * config/nios2/constraints.md (P): New constraint.
23310 * config/nios2/predicates.md (const_and_operand): New.
23311 (and_operand): New.
23312 (stack_memory_operand): New.
23313 * config/nios2/nios2.md (SP_REGNO): Define stack pointer regno.
23314 (length): Update to use nios2_cdx_narrow_form_p().
23315 (type): Add new insn type values.
23316 (control, alu, st, ld, shift): Update insn reservations with
23317 new insn type values.
23318 (*high, *lo_sum): Define new insn patterns for constant generation.
23319 (movqi_internal, movhi_internal, movsi_internal): Reduce
23320 alternatives, update asm template to handle CDX variants, update
23322 (zero_extendhisi2, zero_extendqi<mode>2): Add CDX variants to asm
23323 template, update type attributes.
23324 (extendhisi2, extendqi<mode>2): Likewise.
23325 (addsi3): Change to use function for asm string.
23326 (subsi3): Add CDX notation to asm template, update type attributes.
23327 (negsi3, one_cmplsi3): Likewise.
23328 (andsi3): New pattern, specialized from logical patterns.
23329 (<code>si3): Remove and case, combine alternatives, update asm
23331 (<shift_op>si3): Add CDX notation, update type attributes.
23332 (rotrsi3): Update type attribute.
23333 (*merge, extzv, insv): New insn patterns.
23334 (return): Change to define_expand.
23335 (simple_return): Add CDX notation, update type attributes.
23336 (indirect_jump): Add CDX notation.
23337 (jump): Update asm cases, update length attribute expression.
23338 (*call, *call_value, *sibcall, *sibcall_value): Add CDX variant.
23339 (nios2_cbranch): Update asm cases and length attribute expression
23340 to handle CDX variants.
23341 (nios2_cmp<code>): Update asm template.
23342 (nop): Add CDX notation, update type attributes.
23343 (trap): Add CDX notation.
23344 (ctrapsi4): Update asm cases and length attribute expression to
23345 handle CDX variant.
23346 * doc/md.texi (Machine Constraints): Document P constraint.
23348 2015-07-14 Sandra Loosemore <sandra@codesourcery.com>
23349 Cesar Philippidis <cesar@codesourcery.com>
23350 Chung-Lin Tang <cltang@codesourcery.com>
23352 * config/nios2/nios2.h (SMALL_INT12): New macro.
23353 * config/nios2/nios2.c (nios2_valid_addr_offset_p): New function.
23354 (nios2_valid_addr_expr_p): Use it.
23355 (nios2_symbol_ref_in_small_data_p): Disallow GP-relative addressing
23356 with implicit "io" instructions on R2.
23357 * config/nios2/constraints.md (w): New constraint.
23358 * config/nios2/predicates.md (ldstio_memory_operand): New.
23359 * config/nios2/nios2.md (ld<bhw_uns>io, ld<bh>io): Update memory
23360 operand predicate and constraint.
23361 (ld<bh>io_signed, st<bhw>io>): Likewise.
23362 * doc/md.texi (Machine Constraints): Document w constraint.
23364 2015-07-14 Sandra Loosemore <sandra@codesourcery.com>
23365 Cesar Philippidis <cesar@codesourcery.com>
23366 Chung-Lin Tang <cltang@codesourcery.com>
23368 * config/nios2/nios2.opt (march, mbmx, mcdx): New options.
23369 * config/nios2/nios2-opts.h (enum nios2_arch_type): New enum for
23370 Nios II architecture level.
23371 * config/nios2/nios2.h (TARGET_ARCH_R2): New define.
23372 (TARGET_CPU_CPP_BUILTINS): Add definition of __nios2_arch__ symbol.
23373 (OPTION_DEFAULT_SPECS): Define.
23374 (ASM_SPEC): Add -march= spec strings.
23375 * config/nios2/nios2.c (nios2_option_override): Check for
23376 conflicts involving new options.
23377 * config.gcc (nios2*-*-*): Support --with-arch=.
23378 * doc/invoke.texi (Option Summary, Nios II Options): Document
23379 -march=, -mbmx, and -mcdx.
23381 2015-07-14 Vladimir Makarov <vmakarov@redhat.com>
23383 PR rtl-optimization/66626
23384 * lra-constraints.c (lra_constraints): Prevent equivalence
23385 substitution for static chain pseudo in functions with nonlocal
23388 2015-07-14 Sandra Loosemore <sandra@codesourcery.com>
23390 * config/nios2/nios2.c (TEMP_REG_NUM): Move define up in file.
23391 (nios2_emit_stack_limit_check): Add size parameter. Handle
23392 -fstack-limit-symbol as well as -fstack-limit-register.
23393 (nios2_expand_prologue): Emit only a single stack limit check,
23394 even if multiple stack adjustments are required.
23395 (nios2_option_override): Diagnose unsupported combination of -fpic
23396 and -stack-limit-symbol.
23398 2015-07-14 H.J. Lu <hongjiu.lu@intel.com>
23400 * Makefile.in (top_srcdir): New.
23401 * configure.ac: Use AM_ZLIB.
23402 * configure: Regeneated.
23404 2015-07-14 Matthias Klose <doko@ubuntu.com>
23407 * config/rs6000/t-rs6000 (TM_H): Add rs6000-cpus.def.
23409 2015-07-14 Richard Biener <rguenther@suse.de>
23411 PR tree-optimization/66863
23412 * tree-vrp.c (register_edge_assert_for_2): Properly restrict
23413 what we record for conversion use stmt lhs inequalities.
23415 2015-07-14 Richard Biener <rguenther@suse.de>
23417 * genmatch.c (dt_node::gen_kids_1): Fix case label indenting.
23418 (decision_tree::gen_gimple): Likewise.
23420 2015-07-14 Tom de Vries <tom@codesourcery.com>
23422 * gcc.c (greater_than_spec_func): Declare forward.
23423 (LINK_COMMAND_SPEC, GOMP_SELF_SPECS): Use gt to ignore
23424 -ftree-parallelize-loops={0,1}.
23425 (static_spec_functions): Add greater_than_spec_func function with name
23427 (greater_than_spec_func): New function.
23429 2015-07-14 Richard Biener <rguenther@suse.de>
23431 * tree-ssa-dom.c (record_temporary_equivalences): Merge
23432 wideing type conversion case from record_equivalences_from_incoming_edge
23433 and use record_equality to record equivalences.
23434 (record_equivalences_from_incoming_edge): Call
23435 record_temporary_equivalences.
23437 2015-07-14 Richard Biener <rguenther@suse.de>
23439 * genmatch.c (struct operand): Add OP_IF and OP_WITH op_types.
23440 (struct if_expr): New.
23441 (struct with_expr): Likewise.
23442 (is_a_helper): Add helpers for if_expr and with_expr.
23443 (struct simplify): Add simplify_kind enum and member. Remove
23445 (simplify::simplify): Adjust.
23446 (lower_commutative): Adjust.
23447 (lower_opt_convert): Likewise.
23448 (lower_cond): Likewise.
23449 (replace_id): Handle with_expr and if_expr.
23450 (lower_for): Adjust.
23451 (dt_simplify::gen_1): New recursive worker, split out from ...
23452 (dt_simplify::gen): ... here. Deal with if and with expansion
23454 (capture_info::capture_info): Take context argument
23455 (capture_info::walk_result): Only analyze specific result.
23456 (parser::parse_result): New function.
23457 (parser::parse_simplify): Adjust to parse ifs with then end
23459 (parser::parse_if): Simplify.
23460 (parser::parse_pattern): Pass down simplify kind.
23461 * match.pd: Convert if structure to new syntax.
23463 2015-07-13 Marek Polacek <polacek@redhat.com>
23465 * rtl.c (rtx_equal_p_cb): Fix typo.
23467 2015-07-13 Andrew MacLeod <amacleod@redhat.com>
23469 * omega.h: Don't include config.h, don't include params.h again if
23470 omega.h has already been included.
23471 * graphite-poly.h: Include sese.h.
23472 * graphite.c: Don't include sese.h, remove needless includes and
23473 minimize includes outside #ifdef HAVE_isl block.
23474 * graphite-blocking.c: Don't include sese.h, remove needless includes,
23475 and wrap entire file in #ifdef HAVE_isl
23476 * graphite-dependences.c: Likewise.
23477 * graphite-interchange.c: Likewise.
23478 * graphite-isl-ast-to-gimple.c: Likewise.
23479 * graphite-optimize-isl.c: Likewise.
23480 * graphite-poly.c: Likewise.
23481 * graphite-scop-detection.c: Likewise.
23482 * graphite-sese-to-poly.c: Likewise.
23484 2015-07-13 Tom de Vries <tom@codesourcery.com>
23486 * omp-low.c (build_receiver_ref): Mark *.omp_data_i as non-trapping.
23488 2015-07-13 Renlin Li <renlin.li@arm.com>
23491 * simplify-rtx.c (simplify_const_relational_operation): Add
23492 side_effects_p checks.
23494 2015-07-12 Aldy Hernandez <aldyh@redhat.com>
23496 * bitmap.h: Fix double word typos.
23497 * builtins.c: Same.
23499 * cfgloopmanip.c: Same.
23502 * cgraphclones.c: Same.
23504 * config/aarch64/aarch64-protos.h: Same.
23505 * config/aarch64/aarch64.c: Same.
23506 * config/aarch64/aarch64.md: Same.
23507 * config/arm/arm.md: Same.
23508 * config/arm/arm1020e.md: Same.
23509 * config/arm/arm1026ejs.md: Same.
23510 * config/arm/arm926ejs.md: Same.
23511 * config/arm/fa526.md: Same.
23512 * config/arm/fa606te.md: Same.
23513 * config/arm/fa626te.md: Same.
23514 * config/arm/fa726te.md: Same.
23515 * config/arm/fmp626.md: Same.
23516 * config/darwin.c: Same.
23517 * config/epiphany/epiphany.c: Same.
23518 * config/frv/frv.c: Same.
23519 * config/ft32/ft32.c: Same.
23520 * config/gnu-user.h: Same.
23521 * config/h8300/constraints.md: Same.
23522 * config/i386/i386.c: Same.
23523 * config/i386/i386.md: Same.
23524 * config/iq2000/iq2000.md: Same.
23525 * config/mips/mips.c: Same.
23526 * config/mmix/mmix.md: Same.
23527 * config/moxie/moxie.c: Same.
23528 * config/nds32/nds32.md: Same.
23529 * config/pa/pa.h: Same.
23530 * config/rs6000/aix.h: Same.
23531 * config/rs6000/rs6000.h: Same.
23532 * config/sh/sh.c: Same.
23533 * config/tilegx/tilegx.md: Same.
23534 * config/tilepro/gen-mul-tables.cc: Same.
23537 * doc/invoke.texi: Same.
23539 * dwarf2out.c: Same.
23542 * genmatch.c: Same.
23543 * gimplify.c: Same.
23544 * hash-table.h: Same.
23545 * internal-fn.c: Same.
23547 * ipa-devirt.c: Same.
23550 * ipa-profile.c: Same.
23551 * ipa-prop.c: Same.
23552 * ipa-prop.h: Same.
23555 * reg-stack.c: Same.
23556 * regcprop.c: Same.
23561 * tree-inline.c: Same.
23562 * tree-sra.c: Same.
23563 * tree-ssa-dom.c: Same.
23564 * tree-ssa-loop-ivopts.c: Same.
23565 * tree-ssa-structalias.c: Same.
23566 * tree-ssa-tail-merge.c: Same.
23567 * tree-ssa-ter.c: Same.
23568 * tree-ssa-threadupdate.c: Same.
23569 * tree-ssa-uninit.c: Same.
23570 * tree-ssanames.c: Same.
23571 * tree-vect-loop-manip.c: Same.
23572 * tree-vrp.c: Same.
23574 * valtrack.c: Same.
23577 2015-07-12 Kugan Vivekanandarajah <kuganv@linaro.org>
23579 PR middle-end/66726
23580 * tree-ssa-phiopt.c(factor_out_conditional_conversion): New function.
23581 tree_ssa_phiopt_worker): Call it.
23583 2015-07-12 Kugan Vivekanandarajah <kuganv@linaro.org>
23585 * cse.c (cse_insn): Calculate src_eqv for ZERO_EXTRACT.
23586 * emit-rtl.c (set_for_reg_notes): Allow ZERO_EXTRACT to set
23589 2015-07-11 Marek Polacek <polacek@redhat.com>
23591 PR middle-end/66353
23592 * basic-block.h (has_abnormal_call_or_eh_pred_edge_p): New function.
23593 * ira-lives.c (bb_has_abnormal_call_pred): Remove function.
23594 (process_bb_node_lives): Call has_abnormal_call_or_eh_pred_edge_p
23595 rather than bb_has_abnormal_call_pred.
23596 * lra-lives.c (bb_has_abnormal_call_pred): Remove function.
23597 (process_bb_lives): Call has_abnormal_call_or_eh_pred_edge_p
23598 rather than bb_has_abnormal_call_pred.
23600 2015-07-10 Anatoly Sokolov <aesok@post.ru>
23602 * config/v850/v850.h (REG_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P,
23603 REG_OK_FOR_BASE_P_STRICT, REG_OK_FOR_INDEX_P_STRICT, STRICT,
23604 RTX_OK_FOR_BASE_P, GO_IF_LEGITIMATE_ADDRESS): Remove macros.
23605 * config/v850/v850.c (v850_reg_ok_for_base_, v850_rtx_ok_for_base_p,
23606 v850_legitimate_address_p): New functions.
23607 (TARGET_ADDR_SPACE_LEGITIMATE_ADDRESS_P): Define.
23609 2015-07-10 H.J. Lu <hongjiu.lu@intel.com>
23612 * config/i386/i386.c (ix86_function_ok_for_sibcall): Allow
23613 indirect sibcall with register arguments if register available
23614 for argument passing.
23615 (init_cumulative_args): Set cfun->machine->arg_reg_available
23616 to (cum->nregs > 0) or to true if function has a variable
23618 (function_arg_advance_32): Set cfun->machine->arg_reg_available
23619 to false if cum->nregs <= 0.
23620 * config/i386/i386.h (machine_function): Add arg_reg_available.
23622 2015-07-10 Uros Bizjak <ubizjak@gmail.com>
23624 * config/i386/sse.md (movdi_to_sse): Use gen_lowpart
23625 and gen_higpart instead of gen_rtx_SUBREG.
23626 * config/i386/i386.md
23627 (floatdi<X87MODEF:mode>2_i387_with_xmm splitter): Ditto.
23628 (read-modify peephole2): Use gen_lowpart instead of
23629 gen_rtx_SUBREG for operand 5.
23631 2015-07-10 Andrew MacLeod <amacleod@redhat.com>
23633 * config/tilepro/gen-mul-tables.cc (main): Change include list for
23635 * config/tilepro/mul-tables.c: Regenerate.
23636 * config/tilegx/mul-tables.c: Regenerate.
23638 2015-07-10 Richard Biener <rguenther@suse.de>
23640 * fold-const.c (distribute_bit_expr): Remove.
23641 (fold_binary_loc): Move simplifying (A & C1) + (B & C2)
23642 to (A & C1) | (B & C2), distributing (A & B) | (A & C)
23643 to A & (B | C) and simplifying A << C1 << C2 to ...
23644 * match.pd: ... patterns here.
23646 2015-07-10 Jiong Wang <jiong.wang@arm.com>
23648 * config/aarch64/aarch64.c (aarch64_load_symref_appropriately):
23649 Mark mem as READONLY and NOTRAP for PIC symbol.
23651 2015-07-10 Andrew MacLeod <amacleod@redhat.com>
23653 * gimple-predict.h: New file.
23654 (gimple_predict_predictor, gimple_predict_set_predictor,
23655 gimple_predict_outcome, gimple_predict_set_outcome,
23656 gimple_build_predict): Relocate here.
23657 * gimple.h (gimple_predict_predictor, gimple_predict_set_predictor,
23658 gimple_predict_outcome, gimple_predict_set_outcome): Move to
23660 * gimple.c (gimple_build_predict): Move to gimple-predict.h
23661 * basic-block.h: Don't include cfghooks.h.
23662 * backend.h: Don't include predict.h.
23663 * cfghooks.h: Include predict.h.
23664 * gimple-pretty-print.c: Include gimple-predict.h.
23665 * gimplify.c: Likwise.
23666 * predict.c: Adjust includes.
23667 * tree-inline.c: Likewise.
23668 * asan.c: Likewise.
23669 * auto-inc-dec.c: Likewise.
23670 * auto-profile.c: Likewise.
23671 * bb-reorder.c: Likewise.
23672 * builtins.c: Likewise.
23673 * caller-save.c: Likewise.
23674 * calls.c: Likewise.
23675 * cfganal.c: Likewise.
23676 * cfgbuild.c: Likewise.
23678 * cfgcleanup.c: Likewise.
23679 * cfgexpand.c: Likewise.
23680 * cfghooks.c: Likewise.
23681 * cfgloopanal.c: Likewise.
23682 * cfgloop.c: Likewise.
23683 * cfgloopmanip.c: Likewise.
23684 * cfgrtl.c: Likewise.
23685 * cgraph.c: Likewise.
23686 * cgraphunit.c: Likewise.
23687 * combine.c: Likewise.
23688 * cprop.c: Likewise.
23691 * dojump.c: Likewise.
23693 * except.c: Likewise.
23694 * expmed.c: Likewise.
23695 * expr.c: Likewise.
23696 * final.c: Likewise.
23697 * fold-const.c: Likewise.
23698 * function.c: Likewise.
23699 * fwprop.c: Likewise.
23700 * gcc-plugin.h: Likewise.
23701 * gcse.c: Likewise.
23702 * genattrtab.c: Likewise.
23703 * genemit.c: Likewise.
23704 * gengtype.c: Likewise.
23705 * genopinit.c: Likewise.
23706 * genoutput.c: Likewise.
23707 * genpreds.c: Likewise.
23708 * genrecog.c: Likewise.
23709 * gimple-fold.c: Likewise.
23710 * gimple-iterator.c: Likewise.
23711 * gimple-ssa-isolate-paths.c: Likewise.
23712 * gimple-ssa-strength-reduction.c: Likewise.
23713 * graph.c: Likewise.
23714 * graphite-blocking.c: Likewise.
23715 * graphite.c: Likewise.
23716 * graphite-dependences.c: Likewise.
23717 * graphite-interchange.c: Likewise.
23718 * graphite-isl-ast-to-gimple.c: Likewise.
23719 * graphite-optimize-isl.c: Likewise.
23720 * graphite-poly.c: Likewise.
23721 * graphite-scop-detection.c: Likewise.
23722 * graphite-sese-to-poly.c: Likewise.
23723 * haifa-sched.c: Likewise.
23724 * ifcvt.c: Likewise.
23725 * internal-fn.c: Likewise.
23726 * ipa-cp.c: Likewise.
23727 * ipa-profile.c: Likewise.
23728 * ipa-split.c: Likewise.
23729 * ipa-utils.c: Likewise.
23730 * ira-build.c: Likewise.
23731 * ira-color.c: Likewise.
23732 * ira-conflicts.c: Likewise.
23733 * ira-costs.c: Likewise.
23734 * ira-emit.c: Likewise.
23735 * ira-lives.c: Likewise.
23736 * jump.c: Likewise.
23737 * loop-doloop.c: Likewise.
23738 * loop-init.c: Likewise.
23739 * loop-invariant.c: Likewise.
23740 * loop-unroll.c: Likewise.
23741 * lower-subreg.c: Likewise.
23742 * lra-assigns.c: Likewise.
23744 * lra-coalesce.c: Likewise.
23745 * lra-constraints.c: Likewise.
23746 * lra-lives.c: Likewise.
23747 * lto-cgraph.c: Likewise.
23748 * lto-streamer-in.c: Likewise.
23749 * mode-switching.c: Likewise.
23750 * modulo-sched.c: Likewise.
23751 * omp-low.c: Likewise.
23752 * optabs.c: Likewise.
23753 * passes.c: Likewise.
23754 * postreload.c: Likewise.
23755 * postreload-gcse.c: Likewise.
23756 * profile.c: Likewise.
23757 * recog.c: Likewise.
23758 * regstat.c: Likewise.
23759 * reload1.c: Likewise.
23760 * reorg.c: Likewise.
23761 * rtlanal.c: Likewise.
23762 * sched-ebb.c: Likewise.
23763 * sel-sched-ir.c: Likewise.
23764 * sese.c: Likewise.
23765 * shrink-wrap.c: Likewise.
23766 * simplify-rtx.c: Likewise.
23767 * stmt.c: Likewise.
23768 * store-motion.c: Likewise.
23769 * tracer.c: Likewise.
23770 * trans-mem.c: Likewise.
23771 * tree-call-cdce.c: Likewise.
23772 * tree-cfg.c: Likewise.
23773 * tree-cfgcleanup.c: Likewise.
23774 * tree-chkp.c: Likewise.
23775 * tree-complex.c: Likewise.
23776 * tree-eh.c: Likewise.
23777 * tree-if-conv.c: Likewise.
23778 * tree-loop-distribution.c: Likewise.
23779 * tree-outof-ssa.c: Likewise.
23780 * tree-parloops.c: Likewise.
23781 * tree-predcom.c: Likewise.
23782 * tree-pretty-print.c: Likewise.
23783 * tree-profile.c: Likewise.
23784 * tree-sra.c: Likewise.
23785 * tree-ssa.c: Likewise.
23786 * tree-ssa-coalesce.c: Likewise.
23787 * tree-ssa-dce.c: Likewise.
23788 * tree-ssa-dom.c: Likewise.
23789 * tree-ssa-forwprop.c: Likewise.
23790 * tree-ssa-ifcombine.c: Likewise.
23791 * tree-ssa-loop-ch.c: Likewise.
23792 * tree-ssa-loop-im.c: Likewise.
23793 * tree-ssa-loop-ivcanon.c: Likewise.
23794 * tree-ssa-loop-ivopts.c: Likewise.
23795 * tree-ssa-loop-manip.c: Likewise.
23796 * tree-ssa-loop-prefetch.c: Likewise.
23797 * tree-ssa-loop-unswitch.c: Likewise.
23798 * tree-ssa-math-opts.c: Likewise.
23799 * tree-ssa-phiopt.c: Likewise.
23800 * tree-ssa-pre.c: Likewise.
23801 * tree-ssa-reassoc.c: Likewise.
23802 * tree-ssa-sink.c: Likewise.
23803 * tree-ssa-tail-merge.c: Likewise.
23804 * tree-ssa-threadedge.c: Likewise.
23805 * tree-ssa-threadupdate.c: Likewise.
23806 * tree-switch-conversion.c: Likewise.
23807 * tree-tailcall.c: Likewise.
23808 * tree-vect-data-refs.c: Likewise.
23809 * tree-vect-loop.c: Likewise.
23810 * tree-vect-loop-manip.c: Likewise.
23811 * tree-vectorizer.c: Likewise.
23812 * tree-vrp.c: Likewise.
23813 * ubsan.c: Likewise.
23814 * value-prof.c: Likewise.
23815 * varasm.c: Likewise.
23816 * var-tracking.c: Likewise.
23817 * config/aarch64/aarch64-builtins.c: Likewise.
23818 * config/aarch64/aarch64.c: Likewise.
23819 * config/aarch64/cortex-a57-fma-steering.c: Likewise.
23820 * config/alpha/alpha.c: Likewise.
23821 * config/arc/arc.c: Likewise.
23822 * config/arm/arm.c: Likewise.
23823 * config/avr/avr.c: Likewise.
23824 * config/bfin/bfin.c: Likewise.
23825 * config/c6x/c6x.c: Likewise.
23826 * config/cr16/cr16.c: Likewise.
23827 * config/cris/cris.c: Likewise.
23828 * config/darwin.c: Likewise.
23829 * config/darwin-c.c: Likewise.
23830 * config/epiphany/epiphany.c: Likewise.
23831 * config/epiphany/mode-switch-use.c: Likewise.
23832 * config/epiphany/resolve-sw-modes.c: Likewise.
23833 * config/fr30/fr30.c: Likewise.
23834 * config/frv/frv.c: Likewise.
23835 * config/ft32/ft32.c: Likewise.
23836 * config/h8300/h8300.c: Likewise.
23837 * config/i386/i386.c: Likewise.
23838 * config/i386/winnt.c: Likewise.
23839 * config/ia64/ia64.c: Likewise.
23840 * config/iq2000/iq2000.c: Likewise.
23841 * config/lm32/lm32.c: Likewise.
23842 * config/m32c/m32c.c: Likewise.
23843 * config/m32r/m32r.c: Likewise.
23844 * config/m68k/m68k.c: Likewise.
23845 * config/mcore/mcore.c: Likewise.
23846 * config/mep/mep.c: Likewise.
23847 * config/microblaze/microblaze.c: Likewise.
23848 * config/mips/mips.c: Likewise.
23849 * config/mmix/mmix.c: Likewise.
23850 * config/mn10300/mn10300.c: Likewise.
23851 * config/moxie/moxie.c: Likewise.
23852 * config/msp430/msp430.c: Likewise.
23853 * config/nds32/nds32.c: Likewise.
23854 * config/nds32/nds32-cost.c: Likewise.
23855 * config/nds32/nds32-fp-as-gp.c: Likewise.
23856 * config/nds32/nds32-intrinsic.c: Likewise.
23857 * config/nds32/nds32-isr.c: Likewise.
23858 * config/nds32/nds32-md-auxiliary.c: Likewise.
23859 * config/nds32/nds32-memory-manipulation.c: Likewise.
23860 * config/nds32/nds32-pipelines-auxiliary.c: Likewise.
23861 * config/nds32/nds32-predicates.c: Likewise.
23862 * config/nios2/nios2.c: Likewise.
23863 * config/nvptx/nvptx.c: Likewise.
23864 * config/pa/pa.c: Likewise.
23865 * config/pdp11/pdp11.c: Likewise.
23866 * config/rl78/rl78.c: Likewise.
23867 * config/rs6000/rs6000.c: Likewise.
23868 * config/rx/rx.c: Likewise.
23869 * config/s390/s390.c: Likewise.
23870 * config/sh/sh.c: Likewise.
23871 * config/sh/sh-mem.cc: Likewise.
23872 * config/sh/sh_optimize_sett_clrt.cc: Likewise.
23873 * config/sh/sh_treg_combine.cc: Likewise.
23874 * config/sparc/sparc.c: Likewise.
23875 * config/spu/spu.c: Likewise.
23876 * config/stormy16/stormy16.c: Likewise.
23877 * config/tilegx/tilegx.c: Likewise.
23878 * config/tilepro/tilepro.c: Likewise.
23879 * config/v850/v850.c: Likewise.
23880 * config/vax/vax.c: Likewise.
23881 * config/visium/visium.c: Likewise.
23882 * config/xtensa/xtensa.c: Likewise.
23884 2015-07-10 Richard Biener <rguenther@suse.de>
23886 * genmatch.c (dt_node::gen_kids_1): Fix indenting of case labels.
23887 (decision_tree::gen_gimple): Likewise.
23888 (decision_tree::gen_generic): Likewise.
23890 2015-07-10 Uros Bizjak <ubizjak@gmail.com>
23893 * config/i386/i386.c (ix86_md_asm_adjust): Emit movstrictqi
23894 sequence for TARGET_ZERO_EXTEND_WITH_AND targets.
23896 2015-07-10 Jakub Jelinek <jakub@redhat.com>
23898 PR middle-end/66820
23899 * gimplify.c (maybe_fold_stmt): Don't fold in ORT_PARALLEL
23900 or ORT_TASK contexts.
23901 * omp-low.c (lower_omp): Call fold_stmt even if taskreg_nesting_level
23904 2015-07-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
23906 * expr.c (expand_cond_expr_using_cmove): Fix typos in comment
23909 2015-07-10 Tom de Vries <tom@codesourcery.com>
23911 * tree-parloops.c (try_transform_to_exit_first_loop_alt): If not found,
23912 insert nit + 1 bound.
23914 2015-07-10 Richard Biener <rguenther@suse.de>
23916 * tree-if-conv.c (if_convertible_gimple_assign_stmt_p):
23917 Use ifcvt_could_trap_p also when not flag_tree_loop_if_convert_stores.
23918 (if_convertible_loop_p_1): For this always compute bb predicates.
23919 (if_convertible_loop_p): And free them.
23921 2015-07-10 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
23923 * ipa-icf.c (sem_item_optimizer::do_congruence_step): Fix typo
23926 2015-07-10 Richard Biener <rguenther@suse.de>
23928 PR tree-optimization/66823
23929 * tree-if-conv.c (memrefs_read_or_written_unconditionally): Fix
23930 inverted predicate.
23932 2015-07-09 Steve Ellcey <sellcey@imgtec.com>
23934 * config/mips/mti-linux.h (MIPS_SYSVERSION_SPEC): Update
23935 to handle mips[32|64]r3 and mips[32|64]r5.
23937 2015-07-09 Jakub Jelinek <jakub@redhat.com>
23939 PR middle-end/66633
23940 * tree-nested.c (get_static_chain): Or in a flag into
23941 info->static_chain_added.
23942 (get_frame_field, get_nonlocal_debug_decl): Likewise.
23943 (convert_nonlocal_omp_clauses, convert_local_omp_clauses): Revert
23944 2015-07-01 changes.
23945 (convert_tramp_reference_stmt): If a frame_decl or chain_decl
23946 is needed newly inside of GIMPLE_OMP_{PARALLEL,TASK,TARGET} body,
23949 PR tree-optimization/66718
23950 * tree-vect-stmts.c (struct simd_call_arg_info): Add simd_lane_linear
23952 (vect_simd_lane_linear): New function.
23953 (vectorizable_simd_clone_call): Support using linear arguments for
23954 addresses of arrays elements indexed by GOMP_SIMD_LANE result.
23956 2015-07-09 H.J. Lu <hongjiu.lu@intel.com>
23959 * config/i386/i386.c (iamcu_cost): Adjust variable shift costs.
23961 2015-07-09 Michael Meissner <meissner@linux.vnet.ibm.com>
23963 * config/rs6000/rs6000-protos.h (rs6000_secondary_reload_memory):
23964 Use machine mode, not enum machine_mode in the prototype.
23966 * config/rs6000/rs6000.h (FLOAT128_IEEE_P): New helper macros to
23967 classify 128-bit floating point support.
23968 (FLOAT128_IBM_P): Likewise.
23969 (FLOAT128_VECTOR_P): Likewise.
23970 (FLOAT128_2REG_P): Likewise.
23971 (SCALAR_FLOAT_MODE_NOT_VECTOR_P): Likewise.
23972 (SLOW_UNALIGNED_ACCESS): Add IEEE 128-bit floating point support.
23973 (HARD_REGNO_CALLER_SAVE_MODE): Likewise.
23974 (HARD_REGNO_CALL_PART_CLOBBERED): Likewise.
23976 * config/rs6000/rs6000.c (rs6000_hard_regno_nregs_internal): Drop
23977 tests against TFmode/TDmode, since those modes do not use VSX
23979 (rs6000_hard_regno_mode_ok): Add IEEE 128-bit floating point
23981 (rs6000_init_hard_regno_mode_ok): Use new helper macros instead of
23982 tests against TFmode, etc.
23983 (invalid_e500_subreg): Add tests against IFmode/KFmode.
23984 (reg_offset_addressing_ok_p): Likewise.
23985 (rs6000_legitimate_offset_address_p): Likewise.
23986 (rs6000_legitimize_address): Likewise.
23987 (rs6000_legitimize_reload_address): Likewise.
23988 (rs6000_legitimate_address_p): Clean up tests against TFmode and
23989 TDmode to use the new helper macros, which will include IFmode and
23991 (rs6000_emit_move): Likewise.
23992 (rs6000_darwin64_record_arg_recurse): Likewise.
23993 (print_operand): Likewise.
23994 (rs6000_member_type_forces_blk): Treat IEEE 128-bit floating point
23995 that uses a single vector register as a vector and not as a
23996 floating point register in terms of the calling sequence.
23997 (rs6000_discover_homogeneous_aggregate): Likewise.
23998 (rs6000_return_in_memory): Likewise.
23999 (init_cumulative_args): Likewise.
24000 (rs6000_function_arg_boundary): Likewise.
24001 (rs6000_function_arg_advance_1): Likewise.
24002 (rs6000_function_arg): Likewise.
24003 (rs6000_pass_by_reference): Likewise.
24004 (rs6000_gimplify_va_arg): Likewise.
24005 (rs6000_secondary_reload_memory): Use machine_mode not enum
24007 (rs6000_split_multireg_move): Use new helper macros.
24008 (spe_func_has_64bit_regs_p): Likewise.
24009 (rs6000_output_function_epilogue): Add IFmode/KFmode support.
24010 (output_toc): Use new helper macros.
24011 (rs6000_register_move_cost): Likewise.
24012 (rs6000_function_value): Add IEEE 128-bit floating point calling
24014 (rs6000_libcall_value): Likewise.
24015 (rs6000_scalar_mode_supported_p): Add support for IEEE 128-bit
24016 floating point support.
24017 (rs6000_vector_mode_supported_p): Likewise.
24019 2015-07-09 Vladimir Makarov <vmakarov@redhat.com>
24021 PR rtl-optimization/66782
24022 * lra-int.h (struct lra_insn_recog_data): Add comment about
24023 clobbered hard regs for arg_hard_regs.
24024 * lra.c (lra_set_insn_recog_data): Add clobbered hard regs.
24025 * lra-lives.c (process_bb_lives): Process clobbered hard regs.
24026 Add condition for processing used hard regs.
24027 * lra-constraints.c (update_ebb_live_info, inherit_in_ebb):
24028 Process clobbered hard regs.
24030 2015-07-09 Michael Matz <matz@suse.de>
24032 * genmatch.c (fprintf_indent): New function.
24033 (operand::gen_transform): Add indent parameter.
24034 (expr::gen_transform, c_expr::gen_transform,
24035 capture::gen_transform): Ditto and use fprintf_indent.
24036 (dt_node::gen, dt_node::gen_kids, dt_node::gen_kids_1): Ditto.
24037 (dt_operand::gen, dt_operand::gen_predicate,
24038 dt_operand::gen_match_op, dt_operand::gen_gimple_expr,
24039 dt_operand::gen_generic_expr, dt_simplify::gen): Ditto.
24040 (decision_tree::gen_gimple): Adjust calls and indent generated
24042 (decision_tree::gen_generic): Ditto.
24043 (write_predicate): Ditto.
24045 2015-07-08 Uros Bizjak <ubizjak@gmail.com>
24048 * config/i386/predicates.md (nonimmediate_gr_operand): New predicate.
24049 * config/i386/i386.md (not peephole2): Use nonimmediate_gr_operand.
24050 (varous peephole2s): Use {GENERAL,SSE,MMX}_REGNO_P instead of
24051 {GENERAL,SSE,MMX}_REG_P where appropriate.
24053 2015-07-09 Andrew MacLeod <amacleod@redhat.com>
24055 * lto-streamer.h: Don't include target.h and alloc-pool.h.
24056 * builtins.c: Adjust includes.
24057 * gimple.c: Likewise.
24058 * ipa-icf.c: Likewise.
24059 * lto-opts.c: Likewise.
24060 * ipa-reference.c: Likewise.
24061 * lto-section-out.c: Likewise.
24062 * lto-streamer-in.c: Likewise.
24063 * lto-streamer-out.c: Likewise.
24064 * opts-global.c: Likewise.
24065 * symtab.c: Likewise.
24066 * tree-chkp.c: Likewise.
24067 * tree-ssa-live.c: Likewise.
24068 * tree-streamer-in.c: Likewise.
24069 * tree-streamer-out.c: Likewise.
24070 * config/darwin.c: Likewise.
24071 * config/i386/winnt.c: Likewise.
24073 2015-07-09 Richard Biener <rguenther@suse.de>
24075 * genmatch.c (struct expr): Add force_single_use flag.
24076 (expr::expr): Add copy constructor.
24077 (capture_info::walk_match): Gather force_single_use captures.
24078 (expr::gen_transform): Use possibly NULLified sequence.
24079 (dt_simplify::gen): Apply single-use restrictions by NULLifying
24080 seq if any constrained expr is not single-use.
24081 (parser::parse_expr): Refactor to allow multiple flags. Handle
24082 's' flag to force an expression have a single-use if the pattern
24083 simplifies to more than one statement.
24084 * match.pd: Convert most single_use conditionals to :s flags.
24086 2015-07-09 H.J. Lu <hongjiu.lu@intel.com>
24088 * config/i386/iamcu.h (ASM_OUTPUT_ALIGNED_BSS): New.
24089 (ASM_OUTPUT_MAX_SKIP_ALIGN): Likewise.
24090 (ASM_MAYBE_OUTPUT_ENCODED_ADDR_RTX): Likewise.
24092 2015-07-09 Andrew MacLeod <amacleod@redhat.com>
24094 * flags.h: Don't include flag-types.h or options.h.
24095 * opts-common.c: Adjust includes.
24096 * opts-global.c: Likewise.
24097 * common/config/epiphany/epiphany-common.c: Likewise.
24099 2015-07-09 H.J. Lu <hongjiu.lu@intel.com>
24102 * config/i386/i386.h (ATTRIBUTE_ALIGNED_VALUE): Defined to 32
24105 2015-07-09 H.J. Lu <hongjiu.lu@intel.com>
24108 * config/i386/i386.c (ix86_return_in_memory): Return true
24109 if int_size_in_bytes returns negative for IA MCU.
24111 2015-07-09 Marek Polacek <polacek@redhat.com>
24113 PR tree-optimization/66718
24114 * Makefile.in (OBJS): Add gimple-laddress.o.
24115 * passes.def: Schedule pass_laddress.
24116 * timevar.def (DEFTIMEVAR): Add TV_GIMPLE_LADDRESS.
24117 * tree-pass.h (make_pass_laddress): Declare.
24118 * gimple-laddress.c: New file.
24120 2015-07-09 Richard Biener <rguenther@suse.de>
24122 * toplev.c (compile_file): Reset maximum_field_alignment after parsing.
24124 2015-07-09 Richard Biener <rguenther@suse.de>
24126 PR tree-optimization/66807
24127 * tree-chkp-opt.c (chkp_opt_fini): Free post dominator info.
24129 2015-07-08 Kito Cheng <kito.cheng@gmail.com>
24131 * function.c (stack_protect_epilogue): Use if rather than switch for
24132 check targetm.have_stack_protect_test.
24134 2015-07-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
24136 * defaults.h: Provide default for WORD_REGISTER_OPERATIONS.
24137 * config/alpha/alpha.h: Define WORD_REGISTER_OPERATIONS to 1.
24138 * config/arc/arc.h: Likewise.
24139 * config/arm/arm.h: Likewise.
24140 * config/bfin/bfin.h: Likewise.
24141 * config/epiphany/epiphany.h: Likewise.
24142 * config/frv/frv.h: Likewise.
24143 * config/ia64/ia64.h: Likewise.
24144 * config/iq2000/iq2000.h: Likewise.
24145 * config/lm32/lm32.h: Likewise.
24146 * config/m32r/m32r.h: Likewise.
24147 * config/mcore/mcore.h: Likewise.
24148 * config/mep/mep.h: Likewise.
24149 * config/microblaze/microblaze.h: Likewise.
24150 * config/mips/mips.h: Likewise.
24151 * config/mmix/mmix.h: Likewise.
24152 * config/mn10300/mn10300.h: Likewise.
24153 * config/nds32/nds32.h: Likewise.
24154 * config/nios2/nios2.h: Likewise.
24155 * config/pa/pa.h: Likewise.
24156 * config/rl78/rl78.h: Likewise.
24157 * config/sh/sh.h: Likewise.
24158 * config/sparc/sparc.h: Likewise.
24159 * config/stormy16/stormy16.h: Likewise.
24160 * config/tilegx/tilegx.h: Likewise.
24161 * config/tilepro/tilepro.h: Likewise.
24162 * config/v850/v850.h: Likewise.
24163 * config/xtensa/xtensa.h: Likewise.
24164 * doc/tm.texi: Regenerate.
24165 * doc/tm.texi.in: Adjust.
24166 * combine.c (simplify_set): Likewise.
24167 (simplify_comparison): Likewise.
24168 * expr.c (store_constructor): Likewise.
24169 * internal-fn.c (expand_arith_overflow): Likewise.
24170 * reload.c (push_reload): Likewise.
24171 (find_reloads): Likewise.
24172 (find_reloads_subreg_address): Likewise.
24173 * reload1.c (eliminate_regs_1): Likewise.
24174 * rtlanal.c (nonzero_bits1): Likewise.
24175 (num_sign_bit_copies1): Likewise.
24176 * simplify-rtx.c (simplify_truncation): Likewise.
24178 2015-07-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
24180 * auto-inc-dec.c (pass_inc_dec::execute): Don't check the value
24181 of AUTO_INC_DEC with the preprocessor.
24182 * combine.c (combine_instructions): Likewise.
24183 (can_combine_p): Likewise.
24184 (try_combine): Likewise.
24185 * emit-rtl.c (try_split): Likewise.
24186 * loop-invariant.c (calculate_loop_reg_pressure): Likewise.
24187 * lower-subreg.c (resolve_simple_move): Likewise.
24188 * lra.c (update_inc_notes): Likewise.
24189 * recog.c (asm_operand_ok): Likewise.
24190 (constrain_operands): Likewise.
24191 * regrename.c (scan_rtx_address): Likewise.
24192 * reload.c (update_auto_inc_notes): Likewise.
24193 (reg_inc_found_and_valid_p): Likewise.
24194 * reload1.c (reload): Likewise.
24195 (emit_input_reload_insns): Likewise.
24196 (delete_output_reload): Likewise.
24197 * sched-deps.c (init_insn_reg_pressure_info): Likewise.
24198 * valtrack.c (cleanup_auto_inc_dec): Likewise.
24200 2015-07-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
24202 * rtl.h: Always define AUTO_INC_DEC.
24203 * auto-inc-dec.c (pass_inc_dec::execute): Adjust.
24204 * combine.c (combine_instructions): Likewise.
24205 (can_combine_p): Likewise.
24206 (try_combine): Likewise.
24207 * emit-rtl.c (try_split): Likewise.
24208 * loop-invariant.c (calculate_loop_reg_pressure): Likewise.
24209 * lower-subreg.c (resolve_simple_move): Likewise.
24210 * lra.c (update_inc_notes): Likewise.
24211 * recog.c (asm_operand_ok): Likewise.
24212 (constrain_operands): Likewise.
24213 * regrename.c (scan_rtx_address): Likewise.
24214 * reload.c (update_auto_inc_notes): Likewise.
24215 (find_equiv_reg): Likewise.
24216 * reload1.c (reload): Likewise.
24217 (reload_as_needed): Likewise.
24218 (choose_reload_regs): Likewise.
24219 (emit_input_reload_insns): Likewise.
24220 (delete_output_reload): Likewise.
24221 * sched-deps.c (init_insn_reg_pressure_info): Likewise.
24222 * valtrack.c (cleanup_auto_inc_dec): Likewise.
24224 2015-07-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
24226 * combine.c (can_combine_def_p): Don't check the value of
24227 HARD_FRAME_POINTER_IS_FRAME_POINTER with the preprocessor.
24228 (combinable_i3pat): Likewise.
24229 (mark_used_regs_combine): Likewise.
24230 * regrename.c (rename_chains): Likewise.
24231 * reload.c (find_reloads_address): Likewise.
24232 * sel-sched.c (mark_unavailable_hard_regs): Likewise.
24234 2015-07-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
24236 * combine.c (update_rsp_from_reg_equal): Don't check if
24237 SHORT_IMMEDIATES_SIGN_EXTEND is defined.
24238 (reg_nonzero_bits_for_combine): Likewise.
24239 * config/alpha/alpha.h: Define SHORT_IMMEDIATES_SIGN_EXTEND to
24241 * config/frv/frv.h: Likewise.
24242 * config/lm32/lm32.h: Likewise.
24243 * config/mep/mep.h: Likewise.
24244 * config/mips/mips.h: Likewise.
24245 * config/rs6000/rs6000.h: Likewise.
24246 * config/sh/sh.h: Likewise.
24247 * config/tilegx/tilegx.h (enum reg_class): Likewise.
24248 * config/tilepro/tilepro.h: Likewise.
24249 * defaults.h: Add default for SHORT_IMMEDIATES_SIGN_EXTEND.
24250 * doc/tm.texi: Regenerate.
24251 * doc/tm.texi.in: Adjust.
24252 * rtlanal.c (nonzero_bits1): Likewise.
24254 2015-07-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
24256 * combine.c (do_SUBST_MODE): Don't check the value of HAVE_cc0
24257 with the preprocessor.
24258 (combine_instructions): Likewise.
24259 (try_combine): Likewise.
24261 (distribute_notes): Likewise.
24263 2015-07-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
24265 * combine.c (try_combine): Don't check if LOAD_EXTEND_OP is
24267 (simplify_set): Likewise.
24268 * cse.c (cse_insn): Likewise.
24269 * fold-const.c (fold_single_bit_test): Likewise.
24270 (fold_unary_loc): Likewise.
24271 * postreload.c (reload_cse_simplify_set): Likewise.
24272 (reload_cse_simplify_operands): Likewise.
24274 2015-07-08 Jiong Wang <jiong.wang@arm.com>
24276 * config/aarch64/aarch64.c (aarch64_unspec_may_trap_p): New function.
24277 (TARGET_UNSPEC_MAY_TRAP_P): Define as aarch64_unspec_may_trap_p.
24279 2015-07-08 H.J. Lu <hongjiu.lu@intel.com>
24282 * config/i386/x86intrin.h: Include <adxintrin.h> even if
24283 __iamcu__ is defined.
24285 2015-07-08 Uros Bizjak <ubizjak@gmail.com>
24287 * config/i386/predicates.md (general_reg_operand): Use GENERAL_REGNO_P.
24289 2015-07-08 Iain Sandoe <iain@codesourcery.com>
24292 * config/darwin.c (darwin_mark_decl_preserved): Exclude 'L' label
24293 names from preservation.
24295 2015-07-08 H.J. Lu <hongjiu.lu@intel.com>
24298 * config/i386/i386.c (type_natural_mode): Don't warn vector ABI
24300 (function_arg_advance_32): Don't pass vectors in registers for
24302 (function_arg_32): Likewise.
24303 (ix86_return_in_memory): Don't return vectors in registers for
24306 2015-07-08 Vladimir Makarov <vmakarov@redhat.com>
24308 PR middle-end/66334
24309 * ira-lives.c (process_bb_node_lives): Make conflicts with PIC
24310 hard regno live at the start of BB with incoming abnormal edges.
24311 * lra-lives.c (process_bb_lives): Ditto.
24313 2015-07-08 Thomas Schwinge <thomas@codesourcery.com>
24316 * config/nvptx/mkoffload.c (main): Create an offload image only in
24317 64-bit configurations.
24319 2015-07-08 Martin Liska <mliska@suse.cz>
24322 * tree-sra.c (create_access_1): Call ctor without brackets.
24323 (create_artificial_child_access): Likewise.
24325 2015-07-08 Richard Biener <rguenther@suse.de>
24327 PR tree-optimization/66793
24328 * gimple-ssa-isolate-paths.c (insert_trap_and_remove_trailing_statemen):
24329 Properly split the block after stmts ending it.
24331 2015-07-08 Richard Biener <rguenther@suse.de>
24333 PR tree-optimization/66794
24334 * passes.c (execute_function_todo): Assert that post-dominators
24336 * gimple-ssa-isolate-paths.c (gimple_ssa_isolate_erroneous_paths):
24337 Free post-dominators.
24339 2015-07-08 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
24341 * config/s390/s390.c (s390_init_frame_layout): Replace assertion
24344 2015-07-08 Uros Bizjak <ubizjak@gmail.com>
24346 * config/i386/i386.md (*jcc_bt<mode>): Only allow const_int values
24347 more than or equal 8 and less than 32 when optimizing for size.
24349 2015-07-08 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
24351 * config/arm/arm.c (arm_new_rtx_costs): Initialise cost to
24352 COSTS_N_INSNS (1) and increment it appropriately throughout the
24355 2015-07-08 Richard Biener <rguenther@suse.de>
24357 * fold-const.c (fold_widened_comparison): Fix inverted comparison.
24359 2015-07-08 Alan Modra <amodra@gmail.com>
24361 * target.def (rtx_costs): Remove "code" param, add "mode".
24362 * rtl.h (rtx_cost, get_full_rtx_cost): Update prototype.
24363 (set_src_cost, get_full_set_src_cost): Likewise. Move later in file.
24364 (set_rtx_cost, get_full_set_rtx_cost): Move later in file.
24365 * rtlanal.c (rtx_cost): Add "mode" parameter. Update targetm.rtx_costs
24366 call. Track mode when given in rtx.
24367 (get_full_rtx_cost): Add "mode" parameter. Update rtx_cost calls.
24368 (default_address_cost): Pass Pmode to rtx_cost.
24369 (insn_rtx_cost): Pass dest mode of set to set_src_cost.
24370 * cprop.c (try_replace_reg): Ensure set_rtx_cost is not called
24372 * cse.c (COST, COST_IN): Add MODE param. Update all uses.
24373 (notreg_cost): Add mode param. Use it.
24374 * gcse.c (want_to_gcse_p): Delete forward declaration. Add
24375 mode param and pass to set_src_cost. Update all calls.
24376 (hash_scan_set): Formatting.
24377 * hooks.c (hook_bool_rtx_int_int_int_intp_bool_false): Delete.
24378 (hook_bool_rtx_mode_int_int_intp_bool_false): New function.
24380 * expmed.c (init_expmed_one_conv, init_expmed_one_mode,
24381 init_expmed, expand_mult, mult_by_coeff_cost, expand_smod_pow2,
24382 emit_store_flag): Update set_src_cost and rtx_cost calls.
24383 * auto-inc-dec.c (attempt_change): Likewise.
24384 * calls.c (precompute_register_parameters): Likewise.
24385 * combine.c (expand_compound_operation, make_extraction,
24386 force_to_mode, distribute_and_simplify_rtx): Likewise.
24387 * dojump.c (prefer_and_bit_test): Likewise.
24388 * dse.c (find_shift_sequence): Likewise.
24389 * expr.c (compress_float_constant): Likewise.
24390 * fwprop.c (should_replace_address, try_fwprop_subst): Likewise.
24391 * ifcvt.c (noce_try_sign_mask): Likewise.
24392 * loop-doloop.c (doloop_optimize): Likewise.
24393 * loop-invariant.c (create_new_invariant): Likewise.
24394 * lower-subreg.c (shift_cost, compute_costs): Likewise.
24395 * optabs.c (avoid_expensive_constant, prepare_cmp_insn,
24396 lshift_cheap_p): Likewise.
24397 * postreload.c (reload_cse_simplify_set, reload_cse_simplify_operands,
24398 try_replace_in_use, reload_cse_move2add): Likewise.
24399 * reload1.c (calculate_elim_costs_all_insns, note_reg_elim_costly):
24401 * simplify-rtx.c (simplify_binary_operation_1): Likewise.
24402 * tree-ssa-loop-ivopts.c (computation_cost): Likewise.
24403 * tree-ssa-reassoc.c (optimize_range_tests_to_bit_test): Likewise.
24404 * tree-switch-conversion.c (emit_case_bit_tests): Likewise.
24405 * config/aarch64/aarch64.c (aarch64_rtx_costs): Delete "code" param,
24406 add "mode" param. Use "mode: in place of GET_MODE (x). Pass mode
24408 * config/alpha/alpha.c (alpha_rtx_costs): Likewise.
24409 * config/arc/arc.c (arc_rtx_costs): Likewise.
24410 * config/arm/arm.c (arm_rtx_costs): Likewise.
24411 * config/avr/avr.c (avr_rtx_costs, avr_rtx_costs_1): Likewise.
24412 * config/bfin/bfin.c (bfin_rtx_costs): Likewise.
24413 * config/c6x/c6x.c (c6x_rtx_costs): Likewise.
24414 * config/cris/cris.c (cris_rtx_costs): Likewise.
24415 * config/epiphany/epiphany.c (epiphany_rtx_costs): Likewise.
24416 * config/frv/frv.c (frv_rtx_costs): Likewise.
24417 * config/h8300/h8300.c (h8300_rtx_costs): Likewise.
24418 * config/i386/i386.c (ix86_rtx_costs): Likewise.
24419 * config/ia64/ia64.c (ia64_rtx_costs): Likewise.
24420 * config/iq2000/iq2000.c (iq2000_rtx_costs): Likewise.
24421 * config/lm32/lm32.c (lm32_rtx_costs): Likewise.
24422 * config/m32c/m32c.c (m32c_rtx_costs): Likewise.
24423 * config/m32r/m32r.c (m32r_rtx_costs): Likewise.
24424 * config/m68k/m68k.c (m68k_rtx_costs): Likewise.
24425 * config/mcore/mcore.c (mcore_rtx_costs): Likewise.
24426 * config/mep/mep.c (mep_rtx_cost): Likewise.
24427 * config/microblaze/microblaze.c (microblaze_rtx_costs): Likewise.
24428 * config/mips/mips.c (mips_rtx_costs): Likewise.
24429 * config/mmix/mmix.c (mmix_rtx_costs): Likewise.
24430 * config/mn10300/mn10300.c (mn10300_rtx_costs): Likewise.
24431 * config/msp430/msp430.c (msp430_rtx_costs): Likewise.
24432 * config/nds32/nds32-cost.c (nds32_rtx_costs_impl): Likewise.
24433 * config/nds32/nds32-protos.h (nds32_rtx_costs_impl): Likewise.
24434 * config/nds32/nds32.c (nds32_rtx_costs): Likewise.
24435 * config/nios2/nios2.c (nios2_rtx_costs): Likewise.
24436 * config/pa/pa.c (hppa_rtx_costs): Likewise.
24437 * config/pdp11/pdp11.c (pdp11_rtx_costs): Likewise.
24438 * config/rl78/rl78.c (rl78_rtx_costs): Likewise.
24439 * config/rs6000/rs6000.c (rs6000_rtx_costs): Likewise.
24440 * config/s390/s390.c (s390_rtx_costs): Likewise.
24441 * config/sh/sh.c (sh_rtx_costs): Likewise.
24442 * config/sparc/sparc.c (sparc_rtx_costs): Likewise.
24443 * config/spu/spu.c (spu_rtx_costs): Likewise.
24444 * config/stormy16/stormy16.c (xstormy16_rtx_costs): Likewise.
24445 * config/tilegx/tilegx.c (tilegx_rtx_costs): Likewise.
24446 * config/tilepro/tilepro.c (tilepro_rtx_costs): Likewise.
24447 * config/v850/v850.c (v850_rtx_costs): Likewise.
24448 * config/vax/vax.c (vax_rtx_costs): Likewise.
24449 * config/visium/visium.c (visium_rtx_costs): Likewise.
24450 * config/xtensa/xtensa.c (xtensa_rtx_costs): Likewise.
24451 * config/aarch64/aarch64.c (aarch64_rtx_mult_cost): Change type of
24452 "code" param, and pass as outer_code to first rtx_cost call. Pass
24453 mode to rtx_cost calls.
24454 (aarch64_address_cost, aarch64_if_then_else_costs): Update rtx_cost
24456 (aarch64_rtx_costs_wrapper): Update.
24457 * config/arm/arm.c (arm_rtx_costs_1, arm_size_rtx_costs,
24458 arm_unspec_cost, arm_new_rtx_costs, arm_slowmul_rtx_costs): Update
24460 * config/avr/avr.c (avr_final_prescan_insn): Update set_src_cost
24461 and rtx_cost calls.
24462 (avr_operand_rtx_cost): Similarly.
24463 (avr_rtx_costs_1): Correct mode passed to avr_operand_rtx_cost
24464 for subexpressions of ZERO_EXTEND, SIGN_EXTEND and COMPARE.
24465 * config/mips/mips.c (mips_stack_address_p): Comment typo.
24466 (mips_binary_cost): Update rtx_cost and set_src_cost calls.
24467 (mips_rtx_costs): Use GET_MODE (x) to detect const_int.
24468 * config/mn10300/mn10300.c (mn10300_address_cost): Pass Pmode to
24470 (mn10300_rtx_costs): Correct mode passed to mn10300_address_cost.
24471 * config/rs6000/rs6000.c (rs6000_debug_rtx_costs): Update.
24472 * config/sh/sh.c (and_xor_ior_costs): Update rtx_cost call.
24473 * doc/tm.texi: Regenerate.
24475 2015-07-07 Andrew MacLeod <amacleod@redhat.com>
24477 * tree-core.h: Include symtab.h.
24478 * rtl.h: Include hard-reg-set.h but not flags.h.
24479 (HARD_CONST): Remove condition compilation involving HARD_CONST since
24480 hard-reg-set.h is always included.
24481 * regs.h: Don't include hard-reg-set.h or rtl.h.
24482 * cfg.h: Include dominance.h.
24483 * gimple.h: Include tree-ssa-alias.h and gimple-expr.h.
24484 * backend.h: New. Aggregate commonly used backend header files.
24485 * gimple-ssa.h: Don't include tree-hasher.h.
24486 * ssa.h: New. Aggregate commonly used SSA header files.
24487 * regset.h: Remove bitmap.h and hard-reg-set.h #includes.
24488 * sel-sched-ir.h: Flatten includes.
24489 * lra-int.h: Flatten completely.
24490 * sel-sched-dump.h: Flatten includes.
24491 * ira-int.h: Flatten includes.
24492 * gimple-streamer.h: Remove all includes.
24493 * cfgloop.h: Remove all #includes except cfgloopmanip.h.
24494 * resource.h: Flatten hard-reg-set.h and df.h.
24495 * sched-int.h: Flatten insn-arrt.h and df.h.
24496 * valtrack.h: flatten bitmap.h, df.h, and rtl.h
24497 * df.h: Flatten includes, leaving regset.h, alloc-pool.h and timevar.h.
24498 * genattrtab.c (write_header): Adjust generated includes.
24499 * genautomata.c (main): Likewise.
24500 * genconditions.c (write-header): Likewise.
24501 * genemit.c (main): Likewise.
24502 * gengtype.c (open_base_files): Likewise.
24503 * genopinit.c (main): Likewise.
24504 * genoutput.c (output_prologue): Likewise.
24505 * genpeep.c (main): Likewise.
24506 * genpreds.c (write_insn_preds_c): Likewise.
24507 * genrecog.c (write_header): Likewise.
24508 * alias.c: Adjust includes.
24509 * asan.c: Likewise.
24510 * attribs.c: Likewise.
24511 * auto-inc-dec.c: Likewise.
24512 * auto-profile.c: Likewise.
24513 * bb-reorder.c: Likewise.
24514 * bt-load.c: Likewise.
24515 * builtins.c: Likewise.
24516 * caller-save.c: Likewise.
24517 * calls.c: Likewise.
24518 * ccmp.c: Likewise.
24520 * cfganal.c: Likewise.
24521 * cfgbuild.c: Likewise.
24522 * cfgcleanup.c: Likewise.
24523 * cfgexpand.c: Likewise.
24524 * cfghooks.c: Likewise.
24525 * cfgloop.c: Likewise.
24526 * cfgloopanal.c: Likewise.
24527 * cfgloopmanip.c: Likewise.
24528 * cfgrtl.c: Likewise.
24529 * cgraph.c: Likewise.
24530 * cgraphbuild.c: Likewise.
24531 * cgraphclones.c: Likewise.
24532 * cgraphunit.c: Likewise.
24533 * cilk-common.c: Likewise.
24534 * combine-stack-adj.c: Likewise.
24535 * combine.c: Likewise.
24536 * compare-elim.c: Likewise.
24537 * convert.c: Likewise.
24538 * coverage.c: Likewise.
24539 * cppbuiltin.c: Likewise.
24540 * cprop.c: Likewise.
24542 * cselib.c: Likewise.
24543 * data-streamer-in.c: Likewise.
24544 * data-streamer-out.c: Likewise.
24545 * data-streamer.c: Likewise.
24546 * dbxout.c: Likewise.
24549 * debug.c: Likewise.
24550 * df-core.c: Likewise.
24551 * df-problems.c: Likewise.
24552 * df-scan.c: Likewise.
24554 * dojump.c: Likewise.
24555 * dominance.c: Likewise.
24556 * domwalk.c: Likewise.
24557 * double-int.c: Likewise.
24559 * dumpfile.c: Likewise.
24560 * dwarf2asm.c: Likewise.
24561 * dwarf2cfi.c: Likewise.
24562 * dwarf2out.c: Likewise.
24563 * emit-rtl.c: Likewise.
24564 * et-forest.c: Likewise.
24565 * except.c: Likewise.
24566 * explow.c: Likewise.
24567 * expmed.c: Likewise.
24568 * expr.c: Likewise.
24569 * final.c: Likewise.
24570 * fixed-value.c: Likewise.
24571 * fold-const.c: Likewise.
24572 * function.c: Likewise.
24573 * fwprop.c: Likewise.
24574 * gcc-plugin.h: Likewise.
24575 * gcse-common.c: Likewise.
24576 * gcse.c: Likewise.
24577 * generic-match-head.c: Likewise.
24578 * ggc-page.c: Likewise.
24579 * gimple-builder.c: Likewise.
24580 * gimple-expr.c: Likewise.
24581 * gimple-fold.c: Likewise.
24582 * gimple-iterator.c: Likewise.
24583 * gimple-low.c: Likewise.
24584 * gimple-match-head.c: Likewise.
24585 * gimple-pretty-print.c: Likewise.
24586 * gimple-ssa-isolate-paths.c: Likewise.
24587 * gimple-ssa-strength-reduction.c: Likewise.
24588 * gimple-streamer-in.c: Likewise.
24589 * gimple-streamer-out.c: Likewise.
24590 * gimple-walk.c: Likewise.
24591 * gimple.c: Likewise.
24592 * gimplify-me.c: Likewise.
24593 * gimplify.c: Likewise.
24594 * godump.c: Likewise.
24595 * graph.c: Likewise.
24596 * graphite-blocking.c: Likewise.
24597 * graphite-dependences.c: Likewise.
24598 * graphite-interchange.c: Likewise.
24599 * graphite-isl-ast-to-gimple.c: Likewise.
24600 * graphite-optimize-isl.c: Likewise.
24601 * graphite-poly.c: Likewise.
24602 * graphite-scop-detection.c: Likewise.
24603 * graphite-sese-to-poly.c: Likewise.
24604 * graphite.c: Likewise.
24605 * haifa-sched.c: Likewise.
24606 * hw-doloop.c: Likewise.
24607 * ifcvt.c: Likewise.
24608 * init-regs.c: Likewise.
24609 * internal-fn.c: Likewise.
24610 * ipa-chkp.c: Likewise.
24611 * ipa-comdats.c: Likewise.
24612 * ipa-cp.c: Likewise.
24613 * ipa-devirt.c: Likewise.
24614 * ipa-icf-gimple.c: Likewise.
24615 * ipa-icf.c: Likewise.
24616 * ipa-inline-analysis.c: Likewise.
24617 * ipa-inline-transform.c: Likewise.
24618 * ipa-inline.c: Likewise.
24619 * ipa-polymorphic-call.c: Likewise.
24620 * ipa-profile.c: Likewise.
24621 * ipa-prop.c: Likewise.
24622 * ipa-pure-const.c: Likewise.
24623 * ipa-ref.c: Likewise.
24624 * ipa-reference.c: Likewise.
24625 * ipa-split.c: Likewise.
24626 * ipa-utils.c: Likewise.
24627 * ipa-visibility.c: Likewise.
24629 * ira-build.c: Likewise.
24630 * ira-color.c: Likewise.
24631 * ira-conflicts.c: Likewise.
24632 * ira-costs.c: Likewise.
24633 * ira-emit.c: Likewise.
24634 * ira-lives.c: Likewise.
24636 * jump.c: Likewise.
24637 * langhooks.c: Likewise.
24639 * loop-doloop.c: Likewise.
24640 * loop-init.c: Likewise.
24641 * loop-invariant.c: Likewise.
24642 * loop-iv.c: Likewise.
24643 * loop-unroll.c: Likewise.
24644 * lower-subreg.c: Likewise.
24645 * lra-assigns.c: Likewise.
24646 * lra-coalesce.c: Likewise.
24647 * lra-constraints.c: Likewise.
24648 * lra-eliminations.c: Likewise.
24649 * lra-lives.c: Likewise.
24650 * lra-remat.c: Likewise.
24651 * lra-spills.c: Likewise.
24653 * lto-cgraph.c: Likewise.
24654 * lto-compress.c: Likewise.
24655 * lto-opts.c: Likewise.
24656 * lto-section-in.c: Likewise.
24657 * lto-section-out.c: Likewise.
24658 * lto-streamer-in.c: Likewise.
24659 * lto-streamer-out.c: Likewise.
24660 * lto-streamer.c: Likewise.
24662 * mode-switching.c: Likewise.
24663 * modulo-sched.c: Likewise.
24664 * omega.c: Likewise.
24665 * omp-low.c: Likewise.
24666 * optabs.c: Likewise.
24667 * opts-global.c: Likewise.
24668 * passes.c: Likewise.
24669 * plugin.c: Likewise.
24670 * postreload-gcse.c: Likewise.
24671 * postreload.c: Likewise.
24672 * predict.c: Likewise.
24673 * print-rtl.c: Likewise.
24674 * print-tree.c: Likewise.
24675 * profile.c: Likewise.
24676 * real.c: Likewise.
24677 * realmpfr.c: Likewise.
24678 * recog.c: Likewise.
24680 * reg-stack.c: Likewise.
24681 * regcprop.c: Likewise.
24682 * reginfo.c: Likewise.
24683 * regrename.c: Likewise.
24684 * regstat.c: Likewise.
24685 * reload.c: Likewise.
24686 * reload1.c: Likewise.
24687 * reorg.c: Likewise.
24688 * resource.c: Likewise.
24689 * rtl-chkp.c: Likewise.
24690 * rtlanal.c: Likewise.
24691 * rtlhooks.c: Likewise.
24692 * sanopt.c: Likewise.
24693 * sched-deps.c: Likewise.
24694 * sched-ebb.c: Likewise.
24695 * sched-rgn.c: Likewise.
24696 * sched-vis.c: Likewise.
24697 * sdbout.c: Likewise.
24698 * sel-sched-dump.c: Likewise.
24699 * sel-sched-ir.c: Likewise.
24700 * sel-sched.c: Likewise.
24701 * sese.c: Likewise.
24702 * shrink-wrap.c: Likewise.
24703 * simplify-rtx.c: Likewise.
24704 * stack-ptr-mod.c: Likewise.
24705 * stmt.c: Likewise.
24706 * stor-layout.c: Likewise.
24707 * store-motion.c: Likewise.
24708 * stringpool.c: Likewise.
24709 * symtab.c: Likewise.
24710 * target-globals.c: Likewise.
24711 * targhooks.c: Likewise.
24712 * toplev.c: Likewise.
24713 * tracer.c: Likewise.
24714 * trans-mem.c: Likewise.
24715 * tree-affine.c: Likewise.
24716 * tree-browser.c: Likewise.
24717 * tree-call-cdce.c: Likewise.
24718 * tree-cfg.c: Likewise.
24719 * tree-cfgcleanup.c: Likewise.
24720 * tree-chkp-opt.c: Likewise.
24721 * tree-chkp.c: Likewise.
24722 * tree-chrec.c: Likewise.
24723 * tree-complex.c: Likewise.
24724 * tree-data-ref.c: Likewise.
24725 * tree-dfa.c: Likewise.
24726 * tree-diagnostic.c: Likewise.
24727 * tree-dump.c: Likewise.
24728 * tree-eh.c: Likewise.
24729 * tree-emutls.c: Likewise.
24730 * tree-if-conv.c: Likewise.
24731 * tree-inline.c: Likewise.
24732 * tree-into-ssa.c: Likewise.
24733 * tree-iterator.c: Likewise.
24734 * tree-loop-distribution.c: Likewise.
24735 * tree-nested.c: Likewise.
24736 * tree-nrv.c: Likewise.
24737 * tree-object-size.c: Likewise.
24738 * tree-outof-ssa.c: Likewise.
24739 * tree-parloops.c: Likewise.
24740 * tree-phinodes.c: Likewise.
24741 * tree-predcom.c: Likewise.
24742 * tree-pretty-print.c: Likewise.
24743 * tree-profile.c: Likewise.
24744 * tree-scalar-evolution.c: Likewise.
24745 * tree-sra.c: Likewise.
24746 * tree-ssa-address.c: Likewise.
24747 * tree-ssa-alias.c: Likewise.
24748 * tree-ssa-ccp.c: Likewise.
24749 * tree-ssa-coalesce.c: Likewise.
24750 * tree-ssa-copy.c: Likewise.
24751 * tree-ssa-copyrename.c: Likewise.
24752 * tree-ssa-dce.c: Likewise.
24753 * tree-ssa-dom.c: Likewise.
24754 * tree-ssa-dse.c: Likewise.
24755 * tree-ssa-forwprop.c: Likewise.
24756 * tree-ssa-ifcombine.c: Likewise.
24757 * tree-ssa-live.c: Likewise.
24758 * tree-ssa-loop-ch.c: Likewise.
24759 * tree-ssa-loop-im.c: Likewise.
24760 * tree-ssa-loop-ivcanon.c: Likewise.
24761 * tree-ssa-loop-ivopts.c: Likewise.
24762 * tree-ssa-loop-manip.c: Likewise.
24763 * tree-ssa-loop-niter.c: Likewise.
24764 * tree-ssa-loop-prefetch.c: Likewise.
24765 * tree-ssa-loop-unswitch.c: Likewise.
24766 * tree-ssa-loop.c: Likewise.
24767 * tree-ssa-math-opts.c: Likewise.
24768 * tree-ssa-operands.c: Likewise.
24769 * tree-ssa-phiopt.c: Likewise.
24770 * tree-ssa-phiprop.c: Likewise.
24771 * tree-ssa-pre.c: Likewise.
24772 * tree-ssa-propagate.c: Likewise.
24773 * tree-ssa-reassoc.c: Likewise.
24774 * tree-ssa-sccvn.c: Likewise.
24775 * tree-ssa-scopedtables.c: Likewise.
24776 * tree-ssa-sink.c: Likewise.
24777 * tree-ssa-strlen.c: Likewise.
24778 * tree-ssa-structalias.c: Likewise.
24779 * tree-ssa-tail-merge.c: Likewise.
24780 * tree-ssa-ter.c: Likewise.
24781 * tree-ssa-threadedge.c: Likewise.
24782 * tree-ssa-threadupdate.c: Likewise.
24783 * tree-ssa-uncprop.c: Likewise.
24784 * tree-ssa-uninit.c: Likewise.
24785 * tree-ssa.c: Likewise.
24786 * tree-ssanames.c: Likewise.
24787 * tree-stdarg.c: Likewise.
24788 * tree-streamer-in.c: Likewise.
24789 * tree-streamer-out.c: Likewise.
24790 * tree-streamer.c: Likewise.
24791 * tree-switch-conversion.c: Likewise.
24792 * tree-tailcall.c: Likewise.
24793 * tree-vect-data-refs.c: Likewise.
24794 * tree-vect-generic.c: Likewise.
24795 * tree-vect-loop-manip.c: Likewise.
24796 * tree-vect-loop.c: Likewise.
24797 * tree-vect-patterns.c: Likewise.
24798 * tree-vect-slp.c: Likewise.
24799 * tree-vect-stmts.c: Likewise.
24800 * tree-vectorizer.c: Likewise.
24801 * tree-vrp.c: Likewise.
24802 * tree.c: Likewise.
24803 * tsan.c: Likewise.
24804 * ubsan.c: Likewise.
24805 * valtrack.c: Likewise.
24806 * value-prof.c: Likewise.
24807 * var-tracking.c: Likewise.
24808 * varasm.c: Likewise.
24809 * varpool.c: Likewise.
24810 * vmsdbgout.c: Likewise.
24811 * vtable-verify.c: Likewise.
24813 * wide-int.cc: Likewise.
24814 * xcoffout.c: Likewise.
24815 * config/aarch64/aarch64-builtins.c: Likewise.
24816 * config/aarch64/aarch64.c: Likewise.
24817 * config/aarch64/cortex-a57-fma-steering.c: Likewise.
24818 * config/alpha/alpha.c: Likewise.
24819 * config/arc/arc.c: Likewise.
24820 * config/arm/aarch-common.c: Likewise.
24821 * config/arm/arm-builtins.c: Likewise.
24822 * config/arm/arm-c.c: Likewise.
24823 * config/arm/arm.c: Likewise.
24824 * config/avr/avr-c.c: Likewise.
24825 * config/avr/avr-log.c: Likewise.
24826 * config/avr/avr.c: Likewise.
24827 * config/bfin/bfin.c: Likewise.
24828 * config/c6x/c6x.c: Likewise.
24829 * config/cr16/cr16.c: Likewise.
24830 * config/cris/cris.c: Likewise.
24831 * config/darwin-c.c: Likewise.
24832 * config/darwin.c: Likewise.
24833 * config/epiphany/epiphany.c: Likewise.
24834 * config/epiphany/mode-switch-use.c: Likewise.
24835 * config/epiphany/resolve-sw-modes.c: Likewise.
24836 * config/fr30/fr30.c: Likewise.
24837 * config/frv/frv.c: Likewise.
24838 * config/ft32/ft32.c: Likewise.
24839 * config/h8300/h8300.c: Likewise.
24840 * config/i386/i386-c.c: Likewise.
24841 * config/i386/i386.c: Likewise.
24842 * config/i386/msformat-c.c: Likewise.
24843 * config/i386/winnt-cxx.c: Likewise.
24844 * config/i386/winnt-stubs.c: Likewise.
24845 * config/i386/winnt.c: Likewise.
24846 * config/ia64/ia64-c.c: Likewise.
24847 * config/ia64/ia64.c: Likewise.
24848 * config/iq2000/iq2000.c: Likewise.
24849 * config/lm32/lm32.c: Likewise.
24850 * config/m32c/m32c-pragma.c: Likewise.
24851 * config/m32c/m32c.c: Likewise.
24852 * config/m32r/m32r.c: Likewise.
24853 * config/m68k/m68k.c: Likewise.
24854 * config/mcore/mcore.c: Likewise.
24855 * config/mep/mep-pragma.c: Likewise.
24856 * config/mep/mep.c: Likewise.
24857 * config/microblaze/microblaze-c.c: Likewise.
24858 * config/microblaze/microblaze.c: Likewise.
24859 * config/mips/mips.c: Likewise.
24860 * config/mmix/mmix.c: Likewise.
24861 * config/mn10300/mn10300.c: Likewise.
24862 * config/moxie/moxie.c: Likewise.
24863 * config/msp430/msp430-c.c: Likewise.
24864 * config/msp430/msp430.c: Likewise.
24865 * config/nds32/nds32-cost.c: Likewise.
24866 * config/nds32/nds32-fp-as-gp.c: Likewise.
24867 * config/nds32/nds32-intrinsic.c: Likewise.
24868 * config/nds32/nds32-isr.c: Likewise.
24869 * config/nds32/nds32-md-auxiliary.c: Likewise.
24870 * config/nds32/nds32-memory-manipulation.c: Likewise.
24871 * config/nds32/nds32-pipelines-auxiliary.c: Likewise.
24872 * config/nds32/nds32-predicates.c: Likewise.
24873 * config/nds32/nds32.c: Likewise.
24874 * config/nios2/nios2.c: Likewise.
24875 * config/nvptx/nvptx.c: Likewise.
24876 * config/pa/pa.c: Likewise.
24877 * config/pdp11/pdp11.c: Likewise.
24878 * config/rl78/rl78-c.c: Likewise.
24879 * config/rl78/rl78.c: Likewise.
24880 * config/rs6000/rs6000-c.c: Likewise.
24881 * config/rs6000/rs6000.c: Likewise.
24882 * config/rx/rx.c: Likewise.
24883 * config/s390/s390-c.c: Likewise.
24884 * config/s390/s390.c: Likewise.
24885 * config/sh/sh-c.c: Likewise.
24886 * config/sh/sh-mem.cc: Likewise.
24887 * config/sh/sh.c: Likewise.
24888 * config/sh/sh_optimize_sett_clrt.cc: Likewise.
24889 * config/sh/sh_treg_combine.cc: Likewise.
24890 * config/sol2-c.c: Likewise.
24891 * config/sol2-cxx.c: Likewise.
24892 * config/sol2-stubs.c: Likewise.
24893 * config/sol2.c: Likewise.
24894 * config/sparc/sparc-c.c: Likewise.
24895 * config/sparc/sparc.c: Likewise.
24896 * config/spu/spu-c.c: Likewise.
24897 * config/spu/spu.c: Likewise.
24898 * config/stormy16/stormy16.c: Likewise.
24899 * config/tilegx/mul-tables.c: Likewise.
24900 * config/tilegx/tilegx-c.c: Likewise.
24901 * config/tilegx/tilegx.c: Likewise.
24902 * config/tilepro/mul-tables.c: Likewise.
24903 * config/tilepro/tilepro-c.c: Likewise.
24904 * config/tilepro/tilepro.c: Likewise.
24905 * config/v850/v850-c.c: Likewise.
24906 * config/v850/v850.c: Likewise.
24907 * config/vax/vax.c: Likewise.
24908 * config/visium/visium.c: Likewise.
24909 * config/vms/vms-c.c: Likewise.
24910 * config/vms/vms.c: Likewise.
24911 * config/vxworks.c: Likewise.
24912 * config/xtensa/xtensa.c: Likewise.
24914 2015-07-07 Uros Bizjak <ubizjak@gmail.com>
24916 * config/i386/i386.md (*jcc_bt<mode>): Only split before reload.
24917 Remove operand constraints. Change operand 2 predicate to
24918 nonmemory operand. Limit const_int values to mode bitsize. Only
24919 allow const_int values less than 32 when optimizing for size.
24920 (*jcc_bt<mode>_1, *jcc_bt<mode>_mask): Only split before reload.
24921 Remove operand constraints.
24922 (*bt<mode>): Use SImode for const_int values less than 32.
24923 (regmode): Remove mode attribute.
24925 2015-07-07 Anatoly Sokolov <aesok@post.ru>
24927 * config/moxie/moxie.h (GO_IF_LEGITIMATE_ADDRESS): Remove macros.
24928 * config/moxie/moxie.c (moxie_reg_ok_for_base_p,
24929 moxie_legitimate_address_p): New functions.
24930 (TARGET_ADDR_SPACE_LEGITIMATE_ADDRESS_P): Define.
24932 2015-07-07 Tom de Vries <tom@codesourcery.com>
24934 PR tree-optimization/66642
24935 * tree-parloops.c (transform_to_exit_first_loop_alt): Update function
24936 header comment. Rename split_edge variable to edge_at_split. Split
24937 exit edge to create new loop exit bb. Insert loop exit phis in new
24940 2015-07-07 Tom de Vries <tom@codesourcery.com>
24942 * tree-cfg.c (get_virtual_phi): New function.
24943 * tree-cfg.h (get_virtual_phi): Declare.
24944 * tree-ssa-loop-manip.c (replace_uses_in_dominated_bbs)
24945 (rewrite_virtuals_into_loop_closed_ssa): New function.
24946 * tree-ssa-loop-manip.h (rewrite_virtuals_into_loop_closed_ssa):
24948 * tree-parloops.c (replace_uses_in_bbs_by): Remove.
24949 (transform_to_exit_first_loop_alt): Use
24950 rewrite_virtuals_into_loop_closed_ssa.
24952 2015-07-07 Richard Biener <rguenther@suse.de>
24954 * fold-const.c (fold_binary_loc): Move
24955 (X & C2) << C1 -> (X << C1) & (C2 << C1) simplification ...
24956 * match.pd: ... here.
24957 Add (X * C1) % C2 -> 0 simplification pattern derived from
24960 2015-07-07 Kaz Kojima <kkojima@gcc.gnu.org>
24963 * config/sh/sh.md (symGOT_load): Revert a part of 2015-03-03
24964 change for target/65249.
24966 2015-07-07 Paulo Matos <pmatos@broadcom.com>
24968 * symtab.c (address_matters_1): Fix typo in comment above.
24969 (can_increase_alignment_p): Likewise.
24971 2015-07-07 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
24973 * function.c (free_after_compilation): Clear PROP_cfg in
24974 f->curr_properties.
24976 2015-07-07 Richard Biener <rguenther@suse.de>
24978 * tree-ssa-propagate.c (add_ssa_edge): Dump what edge list we
24980 (add_control_edge): Remove excessive vertical space in dumping.
24981 (process_ssa_edge_worklist): Simulate at most one statement and
24982 return whether we did. Do not simulate PHIs if they are in a
24983 BB not yet simulated.
24984 (ssa_propagate): Adjust to always drain the BB worklist whenever
24985 a BB is available there, likewise the VARYING edges list before
24986 the interesting edge list.
24988 2015-07-07 Christian Bruel <christian.bruel@st.com>
24991 * config/arm/elf.h (TARGET_ASM_FILE_START_APP_OFF): Delete.
24993 2015-07-07 Richard Biener <rguenther@suse.de>
24995 PR middle-end/66739
24996 * match.pd: Condition A - B ==/!= 0 -> A ==/!= B on single-use
24999 2015-07-06 Uros Bizjak <ubizjak@gmail.com>
25001 * config/i386/i386.md (insv<mode>): Rename from insv. Use SWI48
25002 modes for operands 0 and 3. Use SImode for operands 2 and 3.
25003 Copy operand 0 to a temporary if !ext_register_operand. Remove
25004 ancient extract_bit_field workaround.
25005 (insv<mode>_1): Rename from mov<mode>_insv_1.
25006 (*insvqi): Rename from *movqi_insv_2.
25007 * config/i386/i386.c (emit_i386_cw_initialization): Update calls
25008 for renamed insvsi_1.
25009 (promote_duplicated_reg): Ditto for renamed insv<mode>_1.
25011 2015-07-06 Nathan Sidwell <nathan@codesourcery.com>
25013 * config/nvptx/nvptx.c (nvptx_reorg): Remove unused vars. Fix
25014 call to nvptx_reorg_subreg.
25016 2015-07-06 Jim Wilson <jim.wilson@linaro.org>
25018 * graphite-blocking.c (HAVE_isl): Include <stddef.h>.
25019 * graphite-dependencies.c, graphite-interchange.c,
25020 graphite-isl-ast-to-gimple.c, graphite-optimize-isl.c, graphite-poly.c,
25021 graphite-scop-detection.c, graphite-sese-to-poly.c, graphite.c:
25024 2015-07-06 Marc Glisse <marc.glisse@inria.fr>
25026 * match.pd: Remove element_mode inside HONOR_*.
25027 (~ (-A) -> A - 1, ~ (A - 1) -> -A): Handle complex types.
25028 (~X | X -> -1, ~X ^ X -> -1): Merge.
25029 * tree.c (build_each_one_cst): New function.
25030 * tree.h (build_each_one_cst): Likewise.
25032 2015-07-06 H.J. Lu <hongjiu.lu@intel.com>
25034 * config/i386/i386-c.c (ix86_target_macros_internal): Handle
25037 2015-07-06 Steve Ellcey <sellcey@imgtec.com>
25039 * config.gcc <mips*-*-*>: Add fused-madd.opt.
25040 * config/mips/mips.opt (mfused-madd): Remove.
25041 * config/mips/mips.c (mips_rtx_costs): Update cost calculations.
25042 * config/mips/mips.h (TARGET_MIPS8000): New.
25043 (ISA_HAS_FP_MADD4_MSUB4): Remove.
25044 (ISA_HAS_FP_MADDF_MSUBF): Remove.
25045 (ISA_HAS_FP_MADD3_MSUB3): Remove.
25046 (ISA_HAS_NMADD4_NMSUB4): Remove.
25047 (ISA_HAS_NMADD3_NMSUB3): Remove.
25048 (ISA_HAS_FUSED_MADD4): New.
25049 (ISA_HAS_UNFUSED_MADD4): New.
25050 (ISA_HAS_FUSED_MADDF): New.
25051 (ISA_HAS_FUSED_MADD3): New.
25052 * config/mips/mips.md: (fma<mode>4) Change from insn to expand.
25053 (*fma<mode>4_madd3) New.
25054 (*fma<mode>4_madd4) New.
25055 (*fma<mode>4_maddf) New.
25057 (*fms<mode>4_msub3) New.
25058 (*fms<mode>4_msub4) New.
25060 (*fnma<mode>4_nmadd3) New.
25061 (*fnma<mode>4_nmadd4) New.
25063 (*fnms<mode>4_nmsub3) New.
25064 (*fnms<mode>4_nmsub4) New.
25065 (*madd4<mode>) Modify to be unfused only.
25066 (*msub4<mode>) Modify to be unfused only.
25067 (*nmadd4<mode>) Modify to be unfused only.
25068 (*nmsub4<mode>) Modify to be unfused only.
25069 (*madd3<mode>) Remove.
25070 (*msub3<mode>) Remove.
25071 (*nmadd3<mode>) Remove.
25072 (*nmsub3<mode>) Remove.
25073 (*nmadd3<mode>_fastmath) Remove.
25074 (*nmsub3<mode>_fastmath) Remove.
25075 (*nmadd4<mode>_fastmath) Update condition.
25076 (*nmsub4<mode>_fastmath) Update condition.
25078 2015-07-06 Alan Lawrence <alan.lawrence@arm.com>
25081 * config/arm/arm.c (arm_needs_doubleword_align): Drop any outer
25082 alignment attribute, exploring one level down for records and arrays.
25084 2015-07-06 Uros Bizjak <ubizjak@gmail.com>
25086 * config/i386/i386.md (extv<mode>): Rename from extv. Use SWI24
25087 modes for operands 0 and 1. Use SImode for operands 2 and 3.
25088 Copy operand 1 to a temporary if !ext_register_operand. Remove
25089 ancient extract_bit_field workaround.
25090 (*extv<mode>): Rename from *mov<mode>_extv_1.
25091 (*extvqi): Rename from *movqi_extv_1.
25092 (extzv<mode>): Rename from extzv. Use SWI248 modes for
25093 operands 0 and 1. Use SImode for operands 2 and 3. Copy operand 1
25094 to a temporary if !ext_register_operand. Remove ancient
25095 extract_bit_field workaround.
25096 (*extzv<mode>): Rename from *mov<mode>_extzv_1.
25097 (*extzvqi): Rename from *movqi_extzv_2.
25098 (*testqi_ext_3): Remove modes from const_int_operand predicated
25099 operands. Add "n" constraint.
25100 (*btsq, *btrq, *btcq): Remove mode from const_0_to_63 predicated
25101 operand. Add "J" constraint.
25102 (*btsq, *btrq, *btcq peephole2s): Remove mode from
25103 const_0_to_63 predicated operand.
25104 (regmode): New insn attribute.
25105 (*bt<mode>): Use SImode for operand 1. Change operand 1 predicate
25106 to nonmemory_operand. Use regmode insn attribute.
25107 (*jcc_bt<mode>_1): Convert operand 2 to SImode.
25108 (*jcc_bt<mode>_mask): Remove mode from operand 3.
25109 (*jcc_btsi_1, *jcc_btsi_mask_1): Remove patterns.
25110 (tbm_bextri_<mode>): Remove modes from const_0_to_255 predicated
25111 operands. Use "N" constraint instead of "n".
25113 2015-07-06 Alan Lawrence <alan.lawrence@arm.com>
25115 * config/arm/arm.md (movdi): Avoid odd-number ldrd/strd in ARM state.
25117 2015-07-06 H.J. Lu <hongjiu.lu@intel.com>
25120 * config/i386/i386.c (iamcu_cost): New.
25121 (m_IAMCU): Likewise.
25122 (initial_ix86_arch_features): Disable X86_ARCH_CMOV for m_IAMCU.
25123 (processor_target_table): Add an entry for "iamcu".
25124 (processor_alias_table): Likewise.
25125 (ix86_issue_rate): Handle PROCESSOR_IAMCU.
25126 (ix86_adjust_cost): Likewise.
25127 (ia32_multipass_dfa_lookahead): Likewise.
25128 * config/i386/i386.h (processor_type): Add PROCESSOR_IAMCU.
25129 * config/i386/x86-tune.def: Updated for m_IAMCU.
25131 2015-07-06 Richard Biener <rguenther@suse.de>
25133 PR tree-optimization/66772
25134 * tree-ssa-ccp.c (ccp_visit_phi_node): Make sure that copy
25135 values are available in the PHI node BB when there are
25136 still unexecutable edges.
25138 2015-07-06 Richard Biener <rguenther@suse.de>
25140 PR tree-optimization/66767
25141 * tree-vect-loop-manip.c (vect_create_cond_for_align_checks):
25142 Make sure to build the alignment test on a SSA name without
25143 final alignment info valid only if the alignment test
25146 2015-07-06 Bernd Schmidt <bernds@codesourcery.com>
25149 * config/bfin/bfin.c (hwloop_optimize): Create new bb between jump and
25150 loop start when inserting LSETUP.
25152 2015-07-06 H.J. Lu <hongjiu.lu@intel.com>
25155 * config/i386/i386.c (ix86_option_override_internal): Allow
25156 -mincoming-stack-boundary=3 for 64-bit if SSE is disabled.
25158 2015-07-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
25160 * read-md.c (decimal_string): Rename to ...
25161 (md_decimal_string): ... this.
25162 (handle_enum): Reflect this.
25164 2015-07-06 Szabolcs Nagy <szabolcs.nagy@arm.com>
25167 * config/aarch64/aarch64.md (fnmul<mode>3): Handle -frounding-math.
25169 2015-07-06 Richard Biener <rguenther@suse.de>
25171 PR middle-end/66759
25172 * match.pd: Add missing constraint of y to REAL_CST in
25173 REAL_CST - x CMP y to y - CST CMP x simplification.
25175 2015-07-06 Eric Botcazou <ebotcazou@adacore.com>
25177 PR tree-optimization/66757
25178 * match.pd: Add missing condition to ~X ^ C -> X ^ ~C.
25180 2015-07-05 Chung-Lin Tang <cltang@codesourcery.com>
25181 Sandra Loosemore <sandra@codesourcery.com>
25183 * config/nios2/nios2-protos.h (nios2_symbol_ref_in_small_data_p):
25184 Delete extern declaration.
25185 (gprel_constant_p): Add extern declaration.
25186 * config/nios2/constraints.md ("S"): Use gprel_constant_p
25187 instead of nios2_symbol_ref_in_small_data_p.
25188 * config/nios2/nios2.c (nios2_legitimate_address_p): Likewise.
25189 (nios2_symbol_ref_in_small_data_p): Make static.
25190 (gprel_constant_p): Make non-static.
25192 2015-07-05 Gerald Pfeifer <gerald@pfeifer.com>
25194 * doc/fragments.texi (Target Fragment): Convert debian.org
25196 * doc/install.texi (Configuration): Ditto.
25198 2015-07-05 Jakub Jelinek <jakub@redhat.com>
25200 PR tree-optimization/66718
25201 * tree-vect-stmts.c (vectorizable_call): Replace uses of
25202 GOMP_SIMD_LANE outside of loop with vf - 1 rather than 0.
25204 PR tree-optimization/66718
25205 * tree-vect-stmts.c (vectorizable_assignment, vectorizable_store,
25206 vectorizable_load, vectorizable_condition): Move vectype,
25207 nunits, ncopies computation after checking what kind of statement
25210 2015-07-05 Richard Sandiford <richard.sandiford@arm.com>
25212 * target-insns.def (extv, extzv, insv): New targetm instruction
25214 * optabs.c (get_extraction_insn): Use them instead of HAVE_*/gen_*
25216 * recog.c (simplify_while_replacing): Likewise.
25218 2015-07-05 Richard Sandiford <richard.sandiford@arm.com>
25220 * target-insns.def (doloop_begin, doloop_end): New targetm
25221 instruction patterns.
25222 * loop-init.c: Include target.h.
25223 (pass_loop2::gate): Use the new targetm patterns instead of
25224 HAVE_*/gen_* interface.
25225 (pass_rtl_doloop::gate): Likewise.
25226 (pass_rtl_doloop::execute): Remove preprocessor condition.
25227 * hw-doloop.c: Build unconditionally.
25228 * loop-doloop.c: Likewise.
25229 (doloop_optimize): Use the new targetm patterns instead of
25230 HAVE_*/gen_* interface.
25231 (doloop_modify): Likewise. Change type of doloop_seq to rtx_insn *.
25232 * modulo-sched.c (doloop_register_get): Likewise.
25234 2015-07-05 Richard Sandiford <richard.sandiford@arm.com>
25236 * target-insns.def (clear_cache): New targetm instruction pattern.
25237 * builtins.c (expand_builtin___clear_cache): Use it instead of
25238 HAVE_*/gen_* interface.
25240 2015-07-05 Richard Sandiford <richard.sandiford@arm.com>
25242 * target-insns.def (allocate_stack, check_stack, probe_stack)
25243 (probe_stack_address, split_stack_prologue, split_stack_space_check):
25244 New targetm instruction patterns.
25245 * explow.c (allocate_dynamic_stack_space): Use them instead of
25246 HAVE_*/gen_* interface.
25247 (emit_stack_probe): Likewise.
25248 (probe_stack_range): Likewise.
25249 * function.c (thread_prologue_and_epilogue_insns): Likewise.
25251 2015-07-05 Richard Sandiford <richard.sandiford@arm.com>
25253 * target-insns.def (stack_protect_set, stack_protect_test): New
25254 targetm instruction patterns.
25255 * cfgexpand.c (stack_protect_prologue): Use them instead of
25256 HAVE_*/gen_* interface.
25257 * function.c (stack_protect_epilogue): Likewise.
25259 2015-07-05 Richard Sandiford <richard.sandiford@arm.com>
25261 * expr.h (gen_move_insn_uncast): Delete.
25262 * expr.c (gen_move_insn_uncast): Delete.
25264 2015-07-05 Richard Sandiford <richard.sandiford@arm.com>
25266 * target-insns.def (restore_stack_block, restore_stack_function)
25267 (restore_stack_nonlocal, save_stack_block, save_stack_function)
25268 (save_stack_nonlocal): New targetm instruction patterns.
25269 * builtins.c (expand_builtin_apply): Use them instead of
25270 HAVE_*/gen_* interface.
25271 * explow.c (emit_stack_save, emit_stack_restore): Likewise.
25273 2015-07-05 Richard Sandiford <richard.sandiford@arm.com>
25275 * target-insns.def (trap): New targetm instruction pattern.
25276 * builtins.c (expand_builtin_trap): Use it instead of HAVE_*/gen_*
25278 * explow.c (allocate_dynamic_stack_space): Likewise.
25279 * ifcvt.c (find_if_header): Likewise.
25281 2015-07-05 Richard Sandiford <richard.sandiford@arm.com>
25283 * target-insns.def (prefetch): New targetm instruction pattern.
25284 * tree-ssa-loop-prefetch.c: Include targeth.
25285 (tree_ssa_prefetch_arrays): Use prefetch targetm pattern instead
25286 of HAVE_*/gen_* interface.
25287 * builtins.c (expand_builtin_prefetch): Likewise.
25288 * toplev.c (process_options): Likewise.
25290 2015-07-05 Richard Sandiford <richard.sandiford@arm.com>
25292 * target-insns.def (untyped_call, untyped_return): New targetm
25293 instruction patterns.
25294 * builtins.c (expand_builtin_apply): Use them instead of
25295 HAVE_*/gen_* interface.
25296 (result_vector): Define unconditionally.
25298 2015-07-05 Richard Sandiford <richard.sandiford@arm.com>
25300 * target-insns.def (builtin_longjmp, builtin_setjmp_receiver)
25301 (builtin_setjmp_setup, exception_receiver, nonlocal_goto)
25302 (nonlocal_goto_receiver): New targetm instruction patterns.
25303 * builtins.c (expand_builtin_setjmp_setup): Use them instead
25304 of HAVE_*/gen_* interface.
25305 (expand_builtin_setjmp_receiver): Likewise.
25306 (expand_builtin_longjmp, expand_builtin_nonlocal_goto): Likewise.
25307 * except.c (expand_dw2_landing_pad_for_region): Likewise.
25309 2015-07-05 Richard Sandiford <richard.sandiford@arm.com>
25311 * target.def: Add code_for_* hooks.
25312 * gentarget-def.c (def_target_insn): Add TARGET_CODE_FOR_* macros.
25313 * defaults.h (HAVE_tablejump, gen_tablejump): Delete.
25314 * target-insns.def (casesi, tablejump): New targetm instruction
25316 * expr.c (try_casesi): Use them instead of HAVE_*/gen_* interface.
25317 (do_tablejump): Likewise.
25318 * stmt.c (expand_switch_as_decision_tree_p): Likewise.
25319 (expand_sjlj_dispatch_table): Likewise.
25320 * targhooks.c (default_case_values_threshold): Likewise.
25322 2015-07-04 Sandra Loosemore <sandra@codesourcery.com>
25324 * config/nios2/nios2.c (save_reg, restore_reg): Use plus_constant.
25325 Use rtx_insn * instead of rtx.
25326 (nios2_emit_add_constant): Use rtx_insn * instead of rtx.
25327 (nios2_expand_prologue, nios2_expand_epilogue): Likewise.
25328 (nios2_call_tls_get_addr): Likewise.
25329 (nios2_emit_expensive_div): Likewise.
25330 (nios2_emit_move_sequence): Change return type to bool.
25331 * config/nios2/nios2-protos.h (nios2_emit_move_sequence):
25332 Change return type to bool.
25334 2015-07-04 Bernd Edlinger <bernd.edlinger@hotmail.de>
25337 * config/mips/mips.c (mips_find_gp_ref): Handle instruction sequences.
25339 2015-07-04 John David Anglin <danglin@gcc.gnu.org>
25342 * config/pa/pa.md (indirect_jump): Use pmode_register_operand instead
25343 of register_operand. Remove constraint.
25345 2015-07-04 Marc Glisse <marc.glisse@inria.fr>
25347 * tree-cfg.c (verify_gimple_assign_ternary) <VEC_COND_EXPR>: Check
25348 the first argument.
25350 2015-07-03 Paolo Carlini <paolo.carlini@oracle.com>
25352 * attribs.c (decl_attributes): Guard inform with the return value
25353 of the preceding warning.
25355 2015-07-03 James Greenhalgh <james.greenhalgh@arm.com>
25357 * doc/invoke.texi (moverride): Move to correct section.
25359 2015-07-03 Richard Biener <rguenther@suse.de>
25361 * genmatch.c (commutative_tree_code, commutative_ternary_tree_code):
25363 (dt_operand::gen_gimple_expr): After valueizing operands
25364 re-canonicalize operand order for commutative tree codes.
25366 2015-07-03 H.J. Lu <hongjiu.lu@intel.com>
25369 * config/i386/ia32intrin.h (__crc32b): Don't define if __iamcu__
25371 (__crc32w): Likewise.
25372 (__crc32d): Likewise.
25373 (__rdpmc): Likewise.
25374 (__rdtscp): Likewise.
25375 (_rdpmc): Likewise.
25376 (_rdtscp): Likewise.
25377 * config/i386/x86intrin.h: Only include ia32intrin.h if __iamcu__
25380 2015-07-03 Richard Biener <rguenther@suse.de>
25382 * fold-const.c (fold_mathfn_compare): Remove.
25383 (fold_inf_compare): Likewise.
25384 (fold_comparison): Move floating point comparison simplifications...
25385 * match.pd: ... to patterns here. Introduce simple_comparisons
25386 operator list and use it for patterns formerly in fold_comparison.
25388 2015-07-03 James Greenhalgh <james.greenhalgh@arm.com>
25390 PR tree-optimization/66119
25391 * toplev.c (process_options): Don't set up default values for
25392 the sra_max_scalarization_size_{speed,size} parameters.
25393 * tree-sra (analyze_all_variable_accesses): If no values
25394 have been set for the sra_max_scalarization_size_{speed,size}
25395 parameters, call get_move_ratio to get target defaults.
25397 2015-07-03 Richard Biener <rguenther@suse.de>
25399 * fold-const.c (fold_binary_loc): Move (T)ptr & CST folding...
25400 * match.pd: ... here.
25402 2015-07-03 Gerald Pfeifer <gerald@pfeifer.com>
25405 * doc/invoke.texi (i386 and x86-64 Options): -mno-fancy-math-387
25406 is not actually the default on FreeBSD.
25408 2015-07-02 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
25410 * config/rs6000/rs6000-builtin.def (CMPGE_16QI): New built-in
25412 (CMPGE_8HI): Likewise.
25413 (CMPGE_4SI): Likewise.
25414 (CMPGE_2DI): Likewise.
25415 (CMPGE_U16QI): Likewise.
25416 (CMPGE_U8HI): Likewise.
25417 (CMPGE_U4SI): Likewise.
25418 (CMPGE_U2DI): Likewise.
25419 (CMPLE_16QI): Likewise.
25420 (CMPLE_8HI): Likewise.
25421 (CMPLE_4SI): Likewise.
25422 (CMPLE_2DI): Likewise.
25423 (CMPLE_U16QI): Likewise.
25424 (CMPLE_U8HI): Likewise.
25425 (CMPLE_U4SI): Likewise.
25426 (CMPLE_U2DI): Likewise.
25427 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
25428 overloads for ALTIVEC_BUILTIN_VEC_CMPGE and
25429 ALTIVEC_BUILTIN_VEC_CMPLE.
25430 * config/rs6000/vector.md (vector_ge<mode>): Restrict to
25431 floating-point vector modes.
25432 (vector_nlt<mode>): New define_expand.
25433 (vector_nltu<mode>): Likewise.
25434 (vector_ngt<mode>): Likewise.
25435 (vector_ngtu<mode>): Likewise.
25437 2015-07-02 Segher Boessenkool <segher@kernel.crashing.org>
25439 PR rtl-optimization/66706
25440 * combine.c (make_compound_operation): If an AND of SUBREG of
25441 LSHIFTRT does not simplify, see if just the AND of SUBREG does.
25443 2015-07-02 Alan Lawrence <alan.lawrence@arm.com>
25445 * tree-pass.h (make_pass_ch_vect): New.
25446 * passes.def: Add pass_ch_vect just before pass_if_conversion.
25448 * tree-ssa-loop-ch.c (ch_base, pass_ch_vect, pass_data_ch_vect,
25449 pass_ch::process_loop_p, pass_ch_vect::process_loop_p,
25450 make_pass_ch_vect): New.
25451 (pass_ch): Extend ch_base.
25453 (pass_ch::execute): Move all but loop_optimizer_init/finalize to...
25454 (ch_base::copy_headers): ...here.
25456 2015-07-02 Richard Biener <rguenther@suse.de>
25458 * builtins.c (get_pointer_alignment_1): Handle POINTER_PLUS_EXPR.
25459 * fold-const.c (get_pointer_modulus_and_residue): Remove.
25460 (fold_binary_loc): Implement (T)ptr & CST in terms of
25461 get_pointer_alignment_1.
25462 * tree-vect-loop-manip.c (vect_gen_niters_for_prolog_loop):
25463 Make sure to build the alignment test on a SSA name without
25464 final alignment info valid only after the prologue.
25466 2015-07-02 Hans-Peter Nilsson <hp@axis.com>
25468 * config/cris/cris.md ("epilogue"): Remove condition.
25469 ("prologue"): Ditto.
25471 2015-07-02 Richard Biener <rguenther@suse.de>
25473 * tree-ssa-dom.c (build_and_record_new_cond): Add optional
25474 parameter to record a condition that is false.
25475 (record_conditions): When recording an extra NE_EXPR that is
25476 true also record a EQ_EXPR that is false.
25478 2015-07-02 Bin Cheng <bin.cheng@arm.com>
25480 * tree-ssa-loop-ivopts.c (struct ivopts_data): New field iv_obstack.
25481 (tree_ssa_iv_optimize_init): Initialize iv_obstack.
25482 (alloc_iv): New parameter. Allocate struct iv using obstack_alloc.
25483 (set_iv, find_interesting_uses_address, add_candidate_1): New
25484 argument to alloc_iv.
25485 (find_interesting_uses_op, find_interesting_uses_cond): Don't
25486 duplicate struct iv.
25487 (free_loop_data): Don't free struct iv explicitly.
25488 (tree_ssa_iv_optimize_finalize): Free iv_obstack.
25490 2015-07-01 DJ Delorie <dj@redhat.com>
25492 * config/s390/tpf.h (LIBSTDCXX): Change to CPP1.
25494 (SUPPORTS_DISCRIMINATOR): Define.
25496 2015-07-01 Richard Sandiford <richard.sandiford@arm.com>
25499 * rtl.c (classify_insn): Only return JUMP_INSN for parallel returns if
25500 there are no CALLs in the same pattern.
25502 2015-07-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
25504 PR rtl-optimization/61047
25505 * rtlanal.c (get_initial_register_offset): New function.
25506 (rtx_addr_can_trap_p_1): Check offsets of stack references.
25508 2015-07-01 Richard Biener <rguenther@suse.de>
25510 * fold-const.c (fold_comparison): Move X - Y CMP 0 -> X CMP Y,
25511 X * C1 CMP 0 -> X CMP 0, X CMP X, ~X CMP ~Y -> Y CMP X and
25512 ~X CMP C -> X CMP' ~C to ...
25513 * match.pd: ... patterns here.
25515 2015-07-01 Nick Clifton <nickc@redhat.com>
25517 * config/msp430/msp430.md (zero_extendhipsi2): Use MOVX.A to store
25518 a 16-bit value into a 20-bit memory slot.
25520 2015-07-01 Jiong Wang <jiong.wang@arm.com>
25522 * doc/sourcebuild.texi (AArch64-specific attributes): Document
25523 "aarch64_tiny", "aarch64_small", "aarch64_large",
25524 "aarch64_little_endian", "aarch64_big_endian".
25526 2015-07-01 Jiong Wang <jiong.wang@arm.com>
25528 * doc/sourcebuild.texi (AArch64-specific attributes): New subsection.
25529 Document "aarch64_small_fpic".
25531 2015-07-01 Jiong Wang <jiong.wang@arm.com>
25533 * configure.ac: Add check for aarch64 assembler -fpic relocation
25535 * configure: Regenerate.
25536 * config.in: Regenerate.
25537 * config/aarch64/aarch64.c (initialize_aarch64_code_model): Fall back
25538 to -fPIC if not support of -fpic relocation modifier in assembler.
25540 2015-07-01 Richard Sandiford <richard.sandiford@arm.com>
25543 * rtl.c (classify_insn): Handle returns in PARALLELs.
25545 2015-07-01 Eric Botcazou <ebotcazou@adacore.com>
25547 PR middle-end/66633
25548 * tree-nested.c (convert_nonlocal_omp_clauses): Initialize need_chain
25549 to true if the function is nested and if not optimizing.
25550 (convert_local_omp_clauses): Initialize need_frame to true if the
25551 function contains nested functions and if not optimizing.
25553 2015-07-01 Richard Biener <rguenther@suse.de>
25555 * fold-const.c (fold_binary_loc): Move ~X ^ X -> -1 and
25556 (X & Y) ^ Y -> ~X & Y transforms to ...
25557 * match.pd: ... here.
25559 2015-07-01 Richard Biener <rguenther@suse.de>
25561 * genmatch.c (expr::gen_transform): Shortcut re-simplifying
25562 of converts to avoid uninteresting noise from the conversion
25563 simplifying patterns.
25565 2015-06-30 Sandra Loosemore <sandra@codesourcery.com>
25567 * config/c6x/c6x.c (try_rename_operands): Do not depend on
25568 gcc_assert evaluating its argument for side-effect.
25570 2015-06-30 Kaz Kojima <kkojima@gcc.gnu.org>
25573 * config/sh/sh.md (casesi_worker_1): Set length to 8 when
25576 2015-06-30 Eric Botcazou <ebotcazou@adacore.com>
25578 * lto-streamer-out.c (class DFS): Adjust hash_scc method.
25579 (DFS::DFS): Pass this_ref_p and ref_p to hash_scc.
25580 (hash_scc): Add this_ref_p and ref_p parameters and pass them
25581 to the inner DFS walk.
25583 2015-06-30 Richard Sandiford <richard.sandiford@arm.com>
25585 * target-insns.def (jump): New targetm instruction pattern.
25586 * bb-reorder.c (get_uncond_jump_length): Use targetm.gen_jump
25587 instead of gen_jump.
25588 (fix_up_crossing_landing_pad): Likewise.
25589 (add_labels_and_missing_jumps): Likewise.
25590 (fix_crossing_conditional_branches): Likewise.
25591 * cfgrtl.c (try_redirect_by_replacing_jump): Likewise.
25592 (force_nonfallthru_and_redirect): Likewise.
25593 * cse.c (cse_insn): Likewise.
25594 * expmed.c (expand_divmod): Likewise.
25595 * expr.c (store_expr_with_bounds, expand_expr_real_2): Likewise.
25596 * haifa-sched.c (init_before_recovery): Likewise.
25597 (sched_create_recovery_edges): Likewise.
25598 * ifcvt.c (find_cond_trap): Likewise.
25599 * optabs.c (expand_doubleword_shift, expand_doubleword_clz): Likewise.
25600 (expand_float, expand_fix): Likewise.
25601 * stmt.c (emit_jump): Likewise.
25603 2015-06-30 Richard Sandiford <richard.sandiford@arm.com>
25605 * defaults.h (HAVE_load_multiple, gen_load_multiple)
25606 (HAVE_store_multiple, gen_store_multiple): Delete.
25607 * target-insns.def (load_multiple, store_multiple): New targetm
25608 instruction patterns.
25609 * expr.c (move_block_to_reg, move_block_from_reg): Use them instead
25610 of HAVE_*/gen_* interface.
25612 2015-06-30 Richard Sandiford <richard.sandiford@arm.com>
25614 * defaults.h (HAVE_mem_thread_fence, gen_mem_thread_fence)
25615 (HAVE_memory_barrier, gen_memory_barrier, HAVE_mem_signal_fence)
25616 (gen_mem_signal_fence): Delete.
25617 * target-insns.def (mem_signal_fence, mem_thread_fence)
25618 (memory_barrier): New targetm instruction patterns.
25619 * optabs.c (expand_mem_thread_fence): Use them instead of HAVE_*/gen_*
25621 (expand_mem_signal_fence): Likewise.
25623 2015-06-30 Richard Sandiford <richard.sandiford@arm.com>
25625 * defaults.h (HAVE_epilogue, gen_epilogue): Delete.
25626 * target-insns.def (epilogue, prologue, sibcall_prologue): New
25627 targetm instruction patterns.
25628 * alias.c (init_alias_analysis): Use them instead of HAVE_*/gen_*
25630 * calls.c (expand_call): Likewise.
25631 * cfgrtl.c (cfg_layout_finalize): Likewise.
25632 * df-scan.c (df_get_entry_block_def_set): Likewise.
25633 (df_get_exit_block_use_set): Likewise.
25634 * dwarf2cfi.c (pass_dwarf2_frame::gate): Likewise.
25635 * final.c (final_start_function): Likewise.
25636 * function.c (thread_prologue_and_epilogue_insns): Likewise.
25637 (reposition_prologue_and_epilogue_notes): Likewise.
25638 * reorg.c (find_end_label): Likewise.
25639 * toplev.c (process_options): Likewise.
25641 2015-06-30 David Malcolm <dmalcolm@redhat.com>
25643 * typed-splay-tree.h: New file.
25645 2015-06-30 Vladimir Makarov <vmakarov@redhat.com>
25648 * lra-int.h (lra_substitute_pseudo): Add a parameter.
25649 (lra_substitute_pseudo_within_insn): Ditto.
25650 * lra.c (lra_substitute_pseudo): Add a parameter. Simplify subreg
25652 (lra_substitute_pseudo_within_insn): Add a parameter. Transfer it
25653 to lra_substitute_pseudo.
25654 * lra-lives.c (process_bb_lives): Add an argument to
25655 lra_substitute_pseudo_within_insn call.
25656 * lra-constraints.c (inherit_reload_reg, split_reg): Add an
25657 argument to lra_substitute_pseudo and
25658 lra_substitute_pseudo_within_insn calls.
25659 (remove_inheritance_pseudos, undo_optional_reloads): Ditto.
25661 2015-06-30 H.J. Lu <hongjiu.lu@intel.com>
25663 * configure: Regenerated.
25665 2015-06-30 H.J. Lu <hongjiu.lu@intel.com>
25667 * config.gcc: Support i[34567]86-*-elfiamcu target.
25668 * config/i386/iamcu.h: New.
25669 * config/i386/i386.opt: Add -miamcu.
25670 * doc/invoke.texi: Document -miamcu.
25671 * common/config/i386/i386-common.c (ix86_handle_option): Turn
25672 off x87/MMX/SSE/AVX codegen for -miamcu.
25673 * config/i386/i386-c.c (ix86_target_macros_internal): Define
25674 __iamcu/__iamcu__ for -miamcu.
25675 * config/i386/i386.h (PREFERRED_STACK_BOUNDARY_DEFAULT): Set
25676 to MIN_STACK_BOUNDARY if TARGET_IAMCU is true.
25677 (BIGGEST_ALIGNMENT): Set to 32 if TARGET_IAMCU is true.
25678 * config/i386/i386.c (ix86_option_override_internal): Ignore and
25679 warn -mregparm for Intel MCU. Turn on -mregparm=3 for Intel
25680 MCU by default. Default long double to 64-bit for Intel MCU.
25681 Turn on -freg-struct-return for Intel MCU. Issue an error when
25682 -miamcu is used in 64-bit or x32 mode or if x87, MMX, SSE or
25684 (function_arg_advance_32): Pass value whose size is no larger
25685 than 8 bytes in registers for Intel MCU.
25686 (function_arg_32): Likewise.
25687 (ix86_return_in_memory): Return value whose size is no larger
25688 than 8 bytes in registers for Intel MCU.
25689 (iamcu_alignment): New function.
25690 (ix86_data_alignment): Call iamcu_alignment if TARGET_IAMCU is
25692 (ix86_local_alignment): Don't increase alignment for Intel MCU.
25693 (x86_field_alignment): Return iamcu_alignment if TARGET_IAMCU is
25696 2015-06-30 Marek Polacek <polacek@redhat.com>
25698 * match.pd (X - (X / Y) * Y): Use convert1 and convert2. Convert
25699 both operands of the resulting expression.
25701 * match.pd (~x | x): Don't use tree_nop_conversion_p. Build
25702 the final expression with the operand's type and then convert
25703 it to the type of the expression.
25705 2015-06-30 Richard Biener <rguenther@suse.de>
25707 * fold-const.c (fold_binary_loc): Move ~x & ~y -> ~(x | y) and
25708 ~x | ~y -> ~(x & y), (x & CST) ^ (x & CST2) -> (x & CST) | (x & CST2),
25709 (X | Y) ^ X -> Y & ~ X, ~X ^ ~Y to X ^ Y and ~X ^ C to X ^ ~C ...
25710 * match.pd: ... to patterns here.
25712 2015-06-30 Richard Biener <rguenther@suse.de>
25714 PR tree-optimization/66704
25715 * tree-vect-data-refs.c (vect_setup_realignment): Use
25716 make_ssa_name for non-SSA name source.
25718 2015-06-30 Jakub Jelinek <jakub@redhat.com>
25720 PR middle-end/66702
25721 * omp-low.c (simd_clone_adjust): Handle addressable linear
25722 or uniform parameters or non-gimple type uniform parameters.
25724 2015-06-30 Richard Biener <rguenther@suse.de>
25726 * fold-const.c (fold_unary_loc): Move abs(abs(x)) -> abs(x),
25727 ~ (-A) to A - 1, ~ (A - 1) or ~ (A + -1) to -A and some cases of
25728 ~(X ^ Y) to ~X ^ Y or X ^ ~Y if ~X or ~Y simplify to ...
25729 * match.pd: ... here.
25730 Add a few cases of A - B -> A + (-B) when B "easily" negates.
25731 Move (x & y) | x -> x and friends before
25732 (x | CST1) & CST2 -> (x & CST2) | (CST1 & CST2).
25734 2015-06-30 Eric Botcazou <ebotcazou@adacore.com>
25736 * config/sparc/leon.md (leon_load): Enable for all LEON variants if
25737 -mfix-ut699 is not specified.
25738 (leon3_load): Rename into...
25739 (ut699_load): ...this. Enable for all LEON variants if -mfix-ut699
25742 2015-06-30 Marek Polacek <polacek@redhat.com>
25744 * fold-const.c (fold_binary_loc): Move ~X | X folding ...
25745 * match.pd: ... here.
25747 2015-06-30 Richard Biener <rguenther@suse.de>
25749 * target-insns.def (canonicalize_funcptr_for_compare): Add.
25750 * fold-const.c (build_range_check): Replace uses of
25751 HAVE_canonicalize_funcptr_for_compare.
25752 (fold_widened_comparison): Likewise.
25753 (fold_sign_changed_comparison): Likewise.
25754 * dojump.c: Include "target.h".
25755 (do_compare_and_jump): Replace uses of
25756 HAVE_canonicalize_funcptr_for_compare and
25757 gen_canonicalize_funcptr_for_compare.
25758 * expr.c (do_store_flag): Likewise.
25760 2015-06-30 Tom de Vries <tom@codesourcery.com>
25762 PR tree-optimization/66652
25763 * tree-parloops.c (try_transform_to_exit_first_loop_alt): Use
25764 max_loop_iterations to determine if nit + 1 overflows.
25766 2015-06-30 Richard Biener <rguenther@suse.de>
25768 * tree-vrp.c (register_edge_assert_for_2): Also register
25769 asserts for dominating conversion results.
25771 2015-06-30 Bin Cheng <bin.cheng@arm.com>
25773 * tree-ssa-loop-ivopts.c (record_sub_use): Don't reset ssa_name
25774 field in struct iv.
25776 2015-06-29 Jack Howarth <howarth.at.gcc@gmail.com>
25779 * configure.ac: Fix filds and fildq test for 64-bit.
25780 * configure: Regenerated.
25782 2015-06-29 Nathan Sidwell <nathan@codesourcery.com>
25784 * config/nvptx/nvptx.md (nvptx_reorg_subreg): New fn, broken out of ...
25785 (nvptx_reorg): Here. Keep the non-subreg pieces.
25787 2015-06-29 H.J. Lu <hongjiu.lu@intel.com>
25789 * config/gnu-user.h (GNU_USER_TARGET_ENDFILE_SPEC): Use
25790 PIE_SPEC and NO_PIE_SPEC if HAVE_LD_PIE is defined.
25792 2015-06-29 Uros Bizjak <ubizjak@gmail.com>
25794 * config/i386/i386.md (*jcc_1): Use %! in asm template.
25795 Set attribute "length_nobnd" instead of "length".
25798 (*jcc_1_bnd, *jcc_2_bnd, jump_bnd): Remove insn patterns.
25800 2015-06-29 Sandra Loosemore <sandra@codesourcery.com>
25802 * config/nios2/nios2.c (nios2_delegitimize_address): Make
25803 assert less restrictive.
25805 2015-06-29 Manuel López-Ibáñez <manu@gcc.gnu.org>
25808 * cgraphunit.c (cgraph_node::finalize_function): Do not call
25809 do_warn_unused_parameter.
25810 * function.c (do_warn_unused_parameter): Move from here.
25811 * function.h (do_warn_unused_parameter): Do not declare.
25813 2015-06-29 Matthew Wahab <matthew.wahab@arm.com>
25816 * gcc.target/arm/armv-sync-comp-swap.c: New.
25817 * gcc.target/arm/armv-sync-op-acquire.c: New.
25818 * gcc.target/arm/armv-sync-op-full.c: New.
25819 * gcc.target/arm/armv-sync-op-release.c: New.
25821 2015-06-29 Matthew Wahab <matthew.wahab@arm.com>
25824 * config/armc/arm.c (arm_split_compare_and_swap): For ARMv8, replace an
25825 initial acquire barrier with final barrier.
25827 2015-06-29 Matthew Wahab <matthew.wahab@arm.com>
25830 * config/armc/arm.c (arm_split_atomic_op): For ARMv8, replace an
25831 initial acquire barrier with final barrier.
25833 2015-06-29 Richard Henderson <rth@redhat.com>
25835 * config/i386/constraints.md (Bf): New constraint.
25836 * config/i386/i386-c.c (ix86_target_macros): Define
25837 __GCC_ASM_FLAG_OUTPUTS__.
25838 * config/i386/i386.c (ix86_md_asm_adjust): Handle =@cc* constraints
25840 * doc/extend.texi (FlagOutputOperands): Document them.
25842 2015-06-29 Jiong Wang <jiong.wang@arm.com>
25844 * config/arch64/aarch64.md (UNSPEC_TLSLE): New enumeration.
25845 * config/arch64/aarch64.md (tlsle_small): Rename to tlsle and use new
25847 (tlsle_small_<mode>): Rename to tlsle_<mode> and use new unspec name.
25848 * config/arch64/aarch64-protos.h (arch64_symbol_type): Rename
25849 SYMBOL_SMALL_TPREL to SYMBOL_TLSLE.
25850 (aarch64_symbol_context): Ditto.
25851 * config/aarch64/aarch64.c (aarch64_load_symref_appropriately): Ditto
25852 and use new pattern name.
25853 (aarch64_expand_mov_immediate): Ditto.
25854 (aarch64_print_operand): Ditto.
25855 (aarch64_classify_tls_symbol): Ditto.
25857 2015-06-29 Marek Polacek <polacek@redhat.com>
25858 Marc Glisse <marc.glisse@inria.fr>
25860 * fold-const.c (fold_binary_loc): Move X - (X / Y) * Y -> X % Y to ...
25861 * match.pd: ... pattern here.
25863 2015-06-29 Tom de Vries <tom@codesourcery.com>
25865 * tree-parloops.c (try_transform_to_exit_first_loop_alt): Simplify
25866 function structure.
25868 2015-06-29 Matthew Wahab <matthew.wahab@arm.com>
25870 * doc/invoke.texi (Aarch64 Options, -march): Split out arch and
25871 feature description, split out the native option, add a link to
25872 the feature documentation, rearrange and slightly rewrite text.
25873 (Aarch64 options, -mcpu): Likewise.
25874 (Aarch64 options, Feature Modifiers): Add an anchor. Mention
25875 +rdma implies Adv. SIMD.
25877 2015-06-29 Marek Polacek <polacek@redhat.com>
25880 * function.c (stack_protect_epilogue): Remove a cast to int.
25881 * doc/invoke.texi: Update -Wswitch-bool description.
25883 2015-06-29 Richard Biener <rguenther@suse.de>
25885 * genmatch.c (add_operator): Treat ADDR_EXPR as atom.
25886 * fold-const.c (fold_binary_loc): Move &A - &B simplification
25887 via ptr_difference_const ...
25888 * match.pd: ... here.
25889 When matching (X ^ Y) == Y also match with swapped operands.
25891 2015-06-29 Richard Biener <rguenther@suse.de>
25893 * lto-streamer.h (LTO_major_version): Bump to 5.
25895 2015-06-29 Richard Biener <rguenther@suse.de>
25897 PR tree-optimization/66677
25898 * tree-vect-stmts.c (vect_transform_stmt): Make assert about
25899 STMT_VINFO_VEC_STMT clobbering less strict.
25901 2015-06-29 Kugan Vivekanandarajah <kuganv@linaro.org>
25903 PR middle-end/64130
25904 * tree-vrp.c (extract_range_from_binary_expr_1): For unsigned
25905 division, compute max and min when value ranges for dividend and
25906 divisor are available.
25908 2015-06-28 Chung-Lin Tang <cltang@codesourcery.com>
25909 Sandra Loosemore <sandra@codesourcery.com>
25911 * regrename.h (regrename_do_replace): Change to return bool.
25912 * regrename.c (rename_chains): Check return value of
25913 regname_do_replace.
25914 (regrename_do_replace): Re-validate the modified insns and
25915 return bool status.
25916 * config/aarch64/cortex-a57-fma-steering.c (rename_single_chain):
25917 Update to match rename_chains changes.
25918 * config/c6x/c6x.c (try_rename_operands): Assert that
25919 regrename_do_replace returns true.
25921 2015-06-28 Uros Bizjak <ubizjak@gmail.com>
25923 * config/i386/i386.md (<mode>_ldx): Do not zero-extend non-Pmode
25924 operand 2 here. Use copy_addr_to_reg to copy non-index
25925 register operand 2 to a temporary.
25926 (<mode>_stx): Ditto for operand 1.
25927 (*<mode>_ldx, *<mode>_stx): Remove enclosing parallel.
25928 * config/i386/i386.c (ix86_load_bounds): Zero-extend non-Pmode ptr here.
25929 (ix86_store_bounds): Ditto.
25931 2015-06-27 Patrick Palka <ppalka@gcc.gnu.org>
25933 * print-tree.c (print_node) [TREE_VEC]: Print its length.
25935 2015-06-26 Andrew MacLeod <amacleod@redhat.com>
25937 * gimple.c (gimple_call_set_fndecl): Remove.
25938 * gimple.h (gimple_call_set_fndecl): Relocate to gimple.h and call
25939 build1_loc directly instead of build_fold_addr_expr_loc.
25941 2015-06-26 Richard Sandiford <richard.sandiford@arm.com>
25943 * hash-map.h (hash_map::traverse): Use the definition of the
25944 Key typedef rather than the typedef itself.
25946 2015-06-26 Martin Jambor <mjambor@suse.cz>
25949 * tree-ssa-pre.c (before_dom_children): Check that dump_file is not
25950 NULL instead of calling dump_enabled_p.
25952 2015-06-26 James Greenhalgh <james.greenhalgh@arm.com>
25954 * config/aarch64/aarch64.opt: (override): New.
25955 * doc/invoke.texi (override): Document.
25956 * config/aarch64/aarch64.c (aarch64_flag_desc): New
25957 (aarch64_fusible_pairs): Likewise.
25958 (aarch64_tuning_flags): Likewise.
25959 (aarch64_tuning_override_function): Likewise.
25960 (aarch64_tuning_override_functions): Likewise.
25961 (aarch64_parse_one_option_token): Likewise.
25962 (aarch64_parse_boolean_options): Likewise.
25963 (aarch64_parse_fuse_string): Likewise.
25964 (aarch64_parse_tune_string): Likewise.
25965 (aarch64_parse_one_override_token): Likewise.
25966 (aarch64_parse_override_string): Likewise.
25967 (aarch64_override_options): Parse the -override string if it
25970 2015-06-26 James Greenhalgh <james.greenhalgh@arm.com>
25972 * config/aarch64/aarch64-protos.h (tune_params): Remove
25973 const from members.
25974 (aarch64_tune_params): Remove const, change to no longer be
25976 * config/aarch64/aarch64.c (aarch64_tune_params): Remove const,
25977 change to no longer be a pointer, initialize to generic_tunings.
25978 (aarch64_min_divisions_for_recip_mul): Change dereference of
25979 aarch64_tune_params to member access.
25980 (aarch64_reassociation_width): Likewise.
25981 (aarch64_rtx_mult_cost): Likewise.
25982 (aarch64_address_cost): Likewise.
25983 (aarch64_branch_cost): Likewise.
25984 (aarch64_rtx_costs): Likewise.
25985 (aarch64_register_move_cost): Likewise.
25986 (aarch64_memory_move_cost): Likewise.
25987 (aarch64_sched_issue_rate): Likewise.
25988 (aarch64_builtin_vectorization_cost): Likewise.
25989 (aarch64_override_options): Take a copy of the selected tuning
25990 struct in to aarch64_tune_params, rather than just setting
25991 a pointer, change dereferences of aarch64_tune_params to member
25993 (aarch64_override_options_after_change): Change dereferences of
25994 aarch64_tune_params to member access.
25995 (aarch64_macro_fusion_p): Likewise.
25996 (aarch_macro_fusion_pair_p): Likewise.
25997 * config/aarch64/cortex-a57-fma-steering.c (gate): Likewise.
25999 2015-06-26 James Greenhalgh <james.greenhalgh@arm.com>
26001 * config/aarch64/aarch64.h (AARCH64_FL_USE_FMA_STEERING_PASS): Delete.
26002 (aarch64_tune_flags): Likewise.
26003 (AARCH64_TUNE_FMA_STEERING): Likewise.
26004 * config/aarch64/aarch64-cores.def (cortex-a57): Remove reference
26005 to AARCH64_FL_USE_FMA_STEERING_PASS.
26006 (cortex-a57.cortex-a53): Likewise.
26007 (cortex-a72): Use cortexa72_tunings.
26008 (cortex-a72.cortex-a53): Likewise.
26009 (exynos-m1): Likewise.
26010 * config/aarch64/aarch64-protos.h (tune_params): Add
26011 a field: extra_tuning_flags.
26012 * config/aarch64/aarch64-tuning-flags.def: New.
26013 * config/aarch64/aarch64-protos.h (AARCH64_EXTRA_TUNING_OPTION): New.
26014 (aarch64_extra_tuning_flags): Likewise.
26015 (aarch64_tune_params): Declare here.
26016 * config/aarch64/aarch64.c (generic_tunings): Set extra_tuning_flags.
26017 (cortexa53_tunings): Likewise.
26018 (cortexa57_tunings): Likewise.
26019 (thunderx_tunings): Likewise.
26020 (xgene1_tunings): Likewise.
26021 (cortexa72_tunings): New.
26022 * config/aarch64/cortex-a57-fma-steering.c: Include aarch64-protos.h.
26023 (gate): Check against aarch64_tune_params.
26024 * config/aarch64/t-aarch64 (cortex-a57-fma-steering.o): Depend on
26027 2015-06-26 James Greenhalgh <james.greenhalgh@arm.com>
26029 * config/aarch64/aarch64-fusion-pairs.def: New.
26030 * config/aarch64/aarch64-protos.h (aarch64_fusion_pairs): New.
26031 * config/aarch64/aarch64.c (AARCH64_FUSE_NOTHING): Move to
26032 aarch64_fusion_pairs.
26033 (AARCH64_FUSE_MOV_MOVK): Likewise.
26034 (AARCH64_FUSE_ADRP_ADD): Likewise.
26035 (AARCH64_FUSE_MOVK_MOVK): Likewise.
26036 (AARCH64_FUSE_ADRP_LDR): Likewise.
26037 (AARCH64_FUSE_CMP_BRANCH): Likewise.
26039 2015-06-26 Jiong Wang <jiong.wang@arm.com>
26041 * config/aarch64/aarch64-protos.h (aarch64_symbol_type): New type
26042 SYMBOL_SMALL_GOT_28K.
26043 * config/aarch64/aarch64.md: (ldr_got_small_<mode>): Support new GOT
26044 relocation modifiers.
26045 (unspec): New enum "UNSPEC_GOTMALLPIC28K.
26046 (ldr_got_small_28k_<mode>): New.
26047 (ldr_got_small_28k_sidi): New.
26048 * config/aarch64/iterators.md (got_modifier): New mode iterator.
26049 * config/aarch64/aarch64-otps.h (aarch64_code_model): New model.
26050 * config/aarch64/aarch64.c (aarch64_load_symref_appropriately): Support
26051 SYMBOL_SMALL_GOT_28K.
26052 (aarch64_rtx_costs): Add costs for new instruction sequences.
26053 (initialize_aarch64_code_model): Initialize new model.
26054 (aarch64_classify_symbol): Recognize new model and new symbol classification.
26055 (aarch64_asm_preferred_eh_data_format): Support new model.
26056 (aarch64_load_symref_appropriately): Generate new instruction
26057 sequences for -fpic.
26058 (TARGET_USE_PSEUDO_PIC_REG): New definition.
26059 (aarch64_use_pseudo_pic_reg): New function.
26061 2015-06-26 Jiong Wang <jiong.wang@arm.com>
26063 * config/aarch64/aarch64-protos.h (aarch64_symbol_type): Rename
26064 SYMBOL_SMALL_GOT to SYMBOL_SMALL_GOT_4G.
26065 * config/aarch64/aarch64.c (aarch64_load_symref_appropriately): Ditto.
26066 (aarch64_expand_mov_immediate): Ditto.
26067 (aarch64_print_operand): Ditto.
26068 (aarch64_classify_symbol): Ditto.
26070 2015-06-26 Nathan Sidwell <nathan@codesourcery.com>
26072 * config/nvptx/nvptx.md (call_operation): Remove unused variables.
26074 2015-06-26 Bin Cheng <bin.cheng@arm.com>
26077 * tree-ssa-loop-niter.c (loop_exits_before_overflow): Skip if
26078 assertion failed. Remove assertion itself.
26080 2015-06-26 Richard Biener <rguenther@suse.de>
26082 * fold-const.c (fold_binary_loc): Remove -A CMP -B -> A CMP B
26083 and -A CMP CST -> A CMP -CST which is redundant with a pattern
26085 Move (A | C) == D where C & ~D != 0 -> 0, (X ^ Y) ==/!= 0 -> X ==/!= Y,
26086 (X ^ Y) ==/!= {Y,X} -> {X,Y} ==/!= 0 and
26087 (X ^ C1) op C2 -> X op (C1 ^ C2) to ...
26088 * match.pd: ... patterns here.
26090 2015-06-26 Marek Polacek <polacek@redhat.com>
26092 * match.pd ((x | y) & ~(x & y) -> x ^ y,
26093 (x | y) & (~x ^ y) -> x & y): New patterns.
26095 2015-06-26 Richard Sandiford <richard.sandiford@arm.com>
26097 * rtl.h (emit): Add an optional boolean parameter to control
26098 whether barriers are emitted.
26099 * emit-rtl.c (emit): Likewise.
26100 * gensupport.c (get_emit_function): Return null rather than "emit".
26101 * genemit.c (gen_emit_seq): Handle the null return value.
26102 Don't emit barriers after the final instruction in the sequence.
26103 * gentarget-def.c (main): Don't emit barriers after the instruction.
26105 2015-06-26 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
26107 * config/arm/arm.c (arm_output_multireg_pop): Fix use of
26108 TARGET_UNIFIED_ASM.
26110 2015-06-26 Richard Biener <rguenther@suse.de>
26112 * match.pd: Allow associating FLOAT_TYPE_P when flag_associative_math.
26114 2015-06-26 Richard Biener <rguenther@suse.de>
26116 * match.pd: Allow (p +p off1) +p off2 to (p +p (off1 + off2))
26117 irrespective on whether the inner operation has a single use
26118 of both off are constant.
26120 2015-06-26 Uros Bizjak <ubizjak@gmail.com>
26121 Segher Boessenkool <segher@kernel.crashing.org>
26124 * config/i386/i386.md (various splitters): Use shallow_copy_rtx
26125 before doing PUT_MODE or PUT_CODE on operands to avoid
26126 in-place RTX modification.
26128 2015-06-25 H.J. Lu <hongjiu.lu@intel.com>
26130 * gentarget-def.c (def_target_insn): Cast return of strtol to
26133 2015-06-25 Andrew MacLeod <amacleod@redhat.com>
26135 * gimple.h (gimple_call_set_fn): Move inline function.
26136 * gimple.c (gimple_call_set_fn): Relocate here.
26138 2015-06-25 Oleg Endo <olegendo@gcc.gnu.org>
26142 * config/sh/sh.md (tstsi_t peephole2): Use insn_invalid_p to check if
26143 the replacement insn will work.
26145 2015-06-25 H.J. Lu <hongjiu.lu@intel.com>
26147 * gcc.c (driver_handle_option): Validate -pie if PIE is enabled
26150 2015-06-25 Andrew MacLeod <amacleod@redhat.com>
26152 * function.h (ipa_opt_pass, ipa_opt_pass_d): Move forward declarations.
26153 * cgraph.h: Include ipa-ref.h and plugin-api.h.
26154 (ipa_opt_pass, ipa_opt_pass_d)): Relocate forward declarations here.
26155 (symtab_node::address_can_be_compared_p): Move function.
26156 * cgraph.c (symtab_node::address_can_be_compared_p): Relocate function
26158 * asan.c: Remove ipa-ref.h and plugin-api.h from include list.
26159 * auto-profile.c: Likewise.
26160 * bb-reorder.c: Likewise.
26161 * builtins.c: Likewise.
26162 * calls.c: Likewise.
26163 * cfgexpand.c: Likewise.
26164 * cgraphbuild.c: Likewise.
26165 * cgraphclones.c: Likewise.
26166 * cgraphunit.c: Likewise.
26167 * combine.c: Likewise.
26168 * coverage.c: Likewise.
26169 * data-streamer-in.c: Likewise.
26170 * data-streamer-out.c: Likewise.
26171 * data-streamer.c: Likewise.
26172 * dbxout.c: Likewise.
26173 * dwarf2out.c: Likewise.
26174 * except.c: Likewise.
26175 * expr.c: Likewise.
26176 * final.c: Likewise.
26177 * fold-const.c: Likewise.
26178 * ggc-page.c: Likewise.
26179 * gimple-fold.c: Likewise.
26180 * gimple-iterator.c: Likewise.
26181 * gimple-pretty-print.c: Likewise.
26182 * gimple-streamer-in.c: Likewise.
26183 * gimple-streamer-out.c: Likewise.
26184 * gimple.c: Likewise.
26185 * gimplify.c: Likewise.
26186 * ipa-chkp.c: Likewise.
26187 * ipa-comdats.c: Likewise.
26188 * ipa-cp.c: Likewise.
26189 * ipa-devirt.c: Likewise.
26190 * ipa-icf-gimple.c: Likewise.
26191 * ipa-icf.c: Likewise.
26192 * ipa-inline-analysis.c: Likewise.
26193 * ipa-inline-transform.c: Likewise.
26194 * ipa-inline.c: Likewise.
26195 * ipa-polymorphic-call.c: Likewise.
26196 * ipa-profile.c: Likewise.
26197 * ipa-prop.c: Likewise.
26198 * ipa-pure-const.c: Likewise.
26199 * ipa-ref.c: Likewise.
26200 * ipa-reference.c: Likewise.
26201 * ipa-split.c: Likewise.
26202 * ipa-utils.c: Likewise.
26203 * ipa-visibility.c: Likewise.
26205 * langhooks.c: Likewise.
26206 * lto-cgraph.c: Likewise.
26207 * lto-compress.c: Likewise.
26208 * lto-opts.c: Likewise.
26209 * lto-section-in.c: Likewise.
26210 * lto-section-out.c: Likewise.
26211 * lto-streamer-in.c: Likewise.
26212 * lto-streamer-out.c: Likewise.
26213 * lto-streamer.c: Likewise.
26214 * omp-low.c: Likewise.
26215 * opts-global.c: Likewise.
26216 * passes.c: Likewise.
26217 * predict.c: Likewise.
26218 * print-tree.c: Likewise.
26219 * profile.c: Likewise.
26221 * sanopt.c: Likewise.
26222 * stor-layout.c: Likewise.
26223 * symtab.c: Likewise.
26224 * toplev.c: Likewise.
26225 * trans-mem.c: Likewise.
26226 * tree-cfg.c: Likewise.
26227 * tree-chkp.c: Likewise.
26228 * tree-eh.c: Likewise.
26229 * tree-emutls.c: Likewise.
26230 * tree-inline.c: Likewise.
26231 * tree-nested.c: Likewise.
26232 * tree-parloops.c: Likewise.
26233 * tree-pretty-print.c: Likewise.
26234 * tree-profile.c: Likewise.
26235 * tree-sra.c: Likewise.
26236 * tree-ssa-alias.c: Likewise.
26237 * tree-ssa-live.c: Likewise.
26238 * tree-ssa-loop-ivcanon.c: Likewise.
26239 * tree-ssa-loop-ivopts.c: Likewise.
26240 * tree-ssa-pre.c: Likewise.
26241 * tree-ssa-sccvn.c: Likewise.
26242 * tree-ssa-strlen.c: Likewise.
26243 * tree-ssa-structalias.c: Likewise.
26244 * tree-streamer-in.c: Likewise.
26245 * tree-streamer-out.c: Likewise.
26246 * tree-streamer.c: Likewise.
26247 * tree-switch-conversion.c: Likewise.
26248 * tree-tailcall.c: Likewise.
26249 * tree-vect-data-refs.c: Likewise.
26250 * tree-vect-stmts.c: Likewise.
26251 * tree-vectorizer.c: Likewise.
26252 * tree.c: Likewise.
26253 * tsan.c: Likewise.
26254 * ubsan.c: Likewise.
26255 * value-prof.c: Likewise.
26256 * varasm.c: Likewise.
26257 * varpool.c: Likewise.
26258 * config/arm/arm.c: Likewise.
26259 * config/bfin/bfin.c: Likewise.
26260 * config/c6x/c6x.c: Likewise.
26261 * config/cris/cris.c: Likewise.
26262 * config/darwin-c.c: Likewise.
26263 * config/darwin.c: Likewise.
26264 * config/i386/i386.c: Likewise.
26265 * config/i386/winnt.c: Likewise.
26266 * config/microblaze/microblaze.c: Likewise.
26267 * config/mips/mips.c: Likewise.
26268 * config/rs6000/rs6000.c: Likewise.
26269 * config/rx/rx.c: Likewise.
26270 * config/s390/s390.c: Likewise.
26271 * config/tilegx/mul-tables.c: Likewise.
26273 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
26275 * config/aarch64/aarch64.c, config/alpha/alpha.c,
26276 config/arm/arm.c, config/avr/avr.c, config/bfin/bfin.c,
26277 config/c6x/c6x.c, config/cr16/cr16.c, config/cris/cris.c,
26278 config/fr30/fr30.c, config/frv/frv.c, config/h8300/h8300.c,
26279 config/i386/i386.c, config/ia64/ia64.c, config/iq2000/iq2000.c,
26280 config/lm32/lm32.c, config/m32c/m32c.c, config/m32r/m32r.c,
26281 config/m68k/m68k.c, config/mcore/mcore.c, config/mep/mep.c,
26282 config/microblaze/microblaze.c, config/mips/mips.c,
26283 config/mmix/mmix.c, config/mn10300/mn10300.c,
26284 config/moxie/moxie.c, config/msp430/msp430.c,
26285 config/nds32/nds32.c, config/nios2/nios2.c, config/nvptx/nvptx.c,
26286 config/pa/pa.c, config/pdp11/pdp11.c, config/rl78/rl78.c,
26287 config/rs6000/rs6000.c, config/rx/rx.c, config/s390/s390.c,
26288 config/sh/sh.c, config/sparc/sparc.c, config/spu/spu.c,
26289 config/stormy16/stormy16.c, config/tilegx/tilegx.c,
26290 config/tilepro/tilepro.c, config/v850/v850.c, config/vax/vax.c,
26291 config/visium/visium.c, config/xtensa/xtensa.c: Add comment above
26292 target-def.h include.
26293 * config/ft32/ft32.c: Likewise. Fix misapplied hunk.
26295 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
26297 * Makefile.in (TARGET_DEF): Add target-insns.def.
26298 (.PRECIOUS, simple_rtl_generated_h): Add insn-target-def.h.
26299 (build/gentarget-def.o): New rule.
26300 (genprogrtl): Add target-def.
26301 * target-insns.def, gentarget-def.c: New files.
26302 * target.def: Add targetm.have_* and targetm.gen_* hooks,
26303 based on the contents of target-insns.def.
26304 * defaults.h (HAVE_simple_return, gen_simple_return): Delete.
26305 (HAVE_return, gen_return): Delete.
26306 * target-def.h: Include insn-target-def.h.
26307 * cfgrtl.c (force_nonfallthru_and_redirect): Use targetm interface
26308 instead of direct calls. Rely on them to do the appropriate assertions.
26309 * function.c (gen_return_pattern): Likewise. Return an rtx_insn *.
26310 (convert_jumps_to_returns): Use targetm interface instead of
26312 (thread_prologue_and_epilogue_insns): Likewise.
26313 * reorg.c (find_end_label, dbr_schedule): Likewise.
26314 * shrink-wrap.h (SHRINK_WRAPPING_ENABLED): Likewise.
26315 * shrink-wrap.c (convert_to_simple_return): Likewise.
26316 (try_shrink_wrapping): Use SHRINK_WRAPPING_ENABLED.
26318 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
26320 * config/aarch64/aarch64.c, config/alpha/alpha.c, config/arm/arm.c,
26321 config/avr/avr.c, config/bfin/bfin.c, config/c6x/c6x.c,
26322 config/cr16/cr16.c, config/cris/cris.c, config/fr30/fr30.c,
26323 config/frv/frv.c, config/ft32/ft32.c, config/h8300/h8300.c,
26324 config/i386/i386.c, config/ia64/ia64.c, config/iq2000/iq2000.c,
26325 config/lm32/lm32.c, config/m32c/m32c.c, config/m32r/m32r.c,
26326 config/m68k/m68k.c, config/mcore/mcore.c, config/mep/mep.c,
26327 config/microblaze/microblaze.c, config/mips/mips.c, config/mmix/mmix.c,
26328 config/mn10300/mn10300.c, config/moxie/moxie.c, config/msp430/msp430.c,
26329 config/nds32/nds32.c, config/nios2/nios2.c, config/nvptx/nvptx.c,
26330 config/pa/pa.c, config/pdp11/pdp11.c, config/rl78/rl78.c,
26331 config/rs6000/rs6000.c, config/rx/rx.c, config/s390/s390.c,
26332 config/sh/sh.c, config/sparc/sparc.c, config/spu/spu.c,
26333 config/stormy16/stormy16.c, config/tilegx/tilegx.c,
26334 config/tilepro/tilepro.c, config/v850/v850.c, config/vax/vax.c,
26335 config/visium/visium.c, config/xtensa/xtensa.c: Move target-def.h
26338 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
26340 * hash-map-traits.h (simple_hashmap_traits::key_type): New typedef.
26341 (unbounded_int_hashmap_traits::key_type): Likewise.
26342 * hash-map.h (hash_map): Get the key type from the traits.
26343 * hash-traits.h (default_hash_traits): By default, inherit from the
26344 template parameter.
26345 * alias.c (alias_set_traits): Delete.
26346 (alias_set_entry_d::children): Use alias_set_hash as the first
26347 template parameter.
26348 (record_alias_subset): Update accordingly.
26349 * except.c (tree_hash_traits): Delete.
26350 (type_to_runtime_map): Use tree_hash as the first template parameter.
26351 (init_eh): Update accordingly.
26352 * genmatch.c (capture_id_map_hasher): Delete.
26353 (cid_map_t): Use nofree_string_hash as first template parameter.
26354 * ipa-icf.h (symbol_compare_hashmap_traits): Delete.
26355 * ipa-icf.c (sem_item_optimizer::subdivide_classes_by_sensitive_refs):
26356 Use symbol_compare_hash as the first template parameter in
26357 subdivide_hash_map.
26358 * mem-stats.h (mem_usage_pair::mem_alloc_hashmap_traits): Delete.
26359 (mem_usage_pair::mem_map_t): Use mem_location_hash as the first
26360 template parameter.
26361 * passes.c (pass_registry_hasher): Delete.
26362 (name_to_pass_map): Use nofree_string_hash as the first template
26364 (register_pass_name): Update accordingly.
26365 * sanopt.c (sanopt_tree_map_traits): Delete.
26366 (sanopt_tree_triplet_map_traits): Delete.
26367 (sanopt_ctx::asan_check_map): Use tree_operand_hash as the first
26368 template parameter.
26369 (sanopt_ctx::vptr_check_map): Use sanopt_tree_triplet_hash as
26370 the first template parameter.
26371 * sese.c (rename_map_hasher): Delete.
26372 (rename_map_type): Use tree_ssa_name_hash as the first template
26374 * symbol-summary.h (function_summary::summary_hashmap_traits): Delete.
26375 (function_summary::m_map): Use map_hash as the first template
26377 (function_summary::release): Update accordingly.
26378 * tree-if-conv.c (phi_args_hash_traits): Delete.
26379 (predicate_scalar_phi): Use tree_operand_hash as the first template
26380 parameter to phi_arg_map.
26381 * tree-inline.h (dependence_hasher): Delete.
26382 (copy_body_data::dependence_map): Use dependence_hash as the first
26383 template parameter.
26384 * tree-inline.c (remap_dependence_clique): Update accordingly.
26385 * tree-ssa-strlen.c (stridxlist_hash_traits): Delete.
26386 (decl_to_stridxlist_htab): Use tree_decl_hash as the first template
26388 (addr_stridxptr): Update accordingly.
26389 * value-prof.c (profile_id_traits): Delete.
26390 (cgraph_node_map): Use profile_id_hash as the first template
26392 (init_node_map): Update accordingly.
26393 * config/alpha/alpha.c (string_traits): Delete.
26394 (machine_function::links): Use nofree_string_hash as the first
26395 template parameter.
26396 (alpha_use_linkage, alpha_write_linkage): Update accordingly.
26397 * config/m32c/m32c.c (pragma_traits): Delete.
26398 (pragma_htab): Use nofree_string_hash as the first template parameter.
26399 (m32c_note_pragma_address): Update accordingly.
26400 * config/mep/mep.c (pragma_traits): Delete.
26401 (pragma_htab): Use nofree_string_hash as the first template parameter.
26402 (mep_note_pragma_flag): Update accordingly.
26403 * config/mips/mips.c (mips16_flip_traits): Delete.
26404 (mflip_mips16_htab): Use nofree_string_hash as the first template
26406 (mflip_mips16_use_mips16_p): Update accordingly.
26407 (local_alias_traits): Delete.
26408 (mips16_local_aliases): Use nofree_string_hash as the first template
26410 (mips16_local_alias): Update accordingly.
26412 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
26414 * hash-map-traits.h (default_hashmap_traits): Delete.
26416 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
26418 * hash-map-traits.h (unbounded_hashmap_traits): New class.
26419 (unbounded_int_hashmap_traits): Likewise.
26420 * cfgexpand.c (part_traits): Use unbounded_int_hashmap_traits.
26422 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
26424 * ipa-icf.h (symbol_compare_hash): New class.
26425 (symbol_compare_hashmap_traits): Use it.
26426 * mem-stats.h (mem_alloc_description::mem_location_hash): New class.
26427 (mem_alloc_description::mem_alloc_hashmap_traits): Use it.
26428 (mem_alloc_description::reverse_mem_map_t): Remove redundant
26429 default_hashmap_traits.
26430 * sanopt.c (sanopt_tree_triplet_hash): New class.
26431 (sanopt_tree_triplet_map_traits): Use it.
26433 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
26435 * gengtype-parse.c (require_template_declaration): Allow '+' in
26436 template parameters. Consolidate cases.
26437 * hash-traits.h (int_hash): New class.
26438 * alias.c (alias_set_hash): New structure.
26439 (alias_set_traits): Use it.
26440 * symbol-summary.h (function_summary::map_hash): New class.
26441 (function_summary::summary_hashmap_traits): Use it.
26442 * tree-inline.h (dependence_hash): New class.
26443 (dependence_hasher): Use it.
26444 * tree-ssa-reassoc.c (oecount_hasher): Use int_hash.
26445 * value-prof.c (profile_id_hash): New class.
26446 (profile_id_traits): Use it.
26448 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
26450 * config/mips/mips.c (mips16_flip_traits): Use it.
26451 (local_alias_traits, mips16_local_aliases): Convert from a map of
26452 rtxes to a map of symbol names.
26453 (mips16_local_alias): Update accordingly.
26455 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
26457 * hash-traits.h (string_hash, nofree_string_hash): New classes.
26458 * genmatch.c (capture_id_map_hasher): Use nofree_string_hash.
26459 * passes.c (pass_registry_hasher): Likewise.
26460 * config/alpha/alpha.c (string_traits): Likewise.
26461 * config/i386/winnt.c (i386_find_on_wrapper_list): Likewise.
26462 * config/m32c/m32c.c (pragma_traits): Likewise.
26463 * config/mep/mep.c (pragma_traits): Likewise.
26465 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
26467 * tree-hash-traits.h (tree_hash): New class.
26468 * except.c: Include tree-hash-traits.h.
26469 (tree_hash_traits): Use tree_hash.
26471 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
26473 * tree-hash-traits.h (tree_ssa_name_hasher): New class.
26474 * sese.c: Include tree-hash-traits.h.
26475 (rename_map_hasher): Use tree_ssa_name_hasher.
26477 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
26479 * tree-hash-traits.h (tree_decl_hash): New class.
26480 * tree-ssa-strlen.c: Include tree-hash-traits.h.
26481 (stridxlist_hash_traits): Use tree_decl_hash.
26483 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
26485 * tree-hash-traits.h: New file.
26486 (tree_operand_hash): New class.
26487 * sanopt.c: Include tree-hash-traits.h.
26488 (sanopt_tree_map_traits): Use tree_operand_hash.
26489 * tree-if-conv.c: Include tree-hash-traits.h.
26490 (phi_args_hash_traits): Use tree_operand_hash.
26491 * tree-ssa-uncprop.c: Include tree-hash-traits.h.
26492 (val_ssa_equiv_hash_traits): Use tree_operand_hash.
26494 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
26496 * hash-map-traits.h: Include hash-traits.h.
26497 (simple_hashmap_traits): New class.
26498 * mem-stats.h (hash_map): Change the default traits to
26499 simple_hashmap_traits<default_hash_traits<Key> >.
26501 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
26503 * hash-table.h: Update comments.
26505 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
26507 * hash-traits.h (default_hash_traits): New structure.
26508 * hash-set.h (default_hashset_traits): Delete.
26509 (hash_set): Use default_hash_traits<Key> instead of
26510 default_hashset_traits. Delete hash_entry type and use Key directly.
26511 * ipa-devirt.c (pair_traits): Delete.
26512 (default_hash_traits <type_pair>): Override.
26513 (odr_subtypes_equivalent_p): Remove pair_types template parameter.
26514 (odr_types_equivalent_p, add_type_duplicate): Likewise.
26516 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
26518 * hash-traits.h (typed_noop_remove): Don't require a pointer type.
26520 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
26522 * hash-table.h (has_is_deleted, is_deleted_helper): Delete.
26523 (has_is_empty, is_empty_helper): Delete.
26524 (has_mark_deleted, mark_deleted_helper): Delete.
26525 (has_mark_empty, mark_empty_helper): Delete.
26526 (hash_table::is_deleted): Call the Descriptor unconditionally.
26527 (hash_table::is_empty): Likewise.
26528 (hash_table::mark_deleted): Likewise.
26529 (hash_table::mark_empty): Likewise.
26531 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
26533 * cgraph.h (asmname_hasher): Inherit from ggc_ptr_hash. Remove
26534 redundant typedefs and members.
26535 * coverage.c (counts_entry): Inherit from pointer_hash. Remove
26536 redundant typedefs.
26537 * dwarf2out.c (cu_hash_table_entry_hasher): Likewise.
26538 * ipa-devirt.c (odr_name_hasher): Likewise.
26539 (polymorphic_call_target_hasher): Likewise.
26540 * ira-costs.c (cost_classes_hasher): Likewise.
26541 * statistics.c (stats_counter_hasher): Likewise.
26542 * trans-mem.c (log_entry_hasher): Likewise.
26543 * tree-ssa-dom.c (expr_elt_hasher): Likewise.
26544 * tree-ssa-sccvn.c (vn_phi_hasher, vn_reference_hasher): Likewise.
26545 * tree-ssa-tail-merge.c (same_succ_def): Likewise.
26546 * var-tracking.c (variable_hasher): Likewise.
26547 * valtrack.h (dead_debug_hash_descr): Inherit from free_ptr_hash.
26548 Remove redundant typedefs and members.
26550 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
26552 * hash-traits.h (ggc_cache_hasher): Rename to...
26553 (ggc_cache_remove): ...this and remove typedefs.
26554 (ggc_cache_ptr_hash): New class.
26555 * hash-table.h: Update commentary.
26556 * emit-rtl.c (const_int_hasher): Inherit from ggc_cache_ptr_hash
26557 rather than ggc_cache_hasher.
26558 (const_wide_int_hasher, reg_attr_hasher): Likewise.
26559 (const_double_hasher, const_fixed_hasher): Likewise.
26560 * function.c (insn_cache_hasher): Likewise.
26561 * trans-mem.c (tm_wrapper_hasher): Likewise.
26562 * tree.h (tree_decl_map_cache_hasher): Likewise.
26563 * tree.c (type_cache_hasher, int_cst_hasher): Likewise.
26564 (cl_option_hasher, tree_vec_map_cache_hasher): Likewise.
26565 * ubsan.c (tree_type_map_cache_hasher): Likewise.
26566 * varasm.c (tm_clone_hasher): Likewise.
26567 * config/i386/i386.c (dllimport_hasher): Likewise.
26568 * config/nvptx/nvptx.c (declared_libfunc_hasher): Likewise.
26569 (tree_hasher): Likewise.
26571 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
26573 * hash-traits.h (ggc_hasher): Rename to...
26574 (ggc_remover): ...this and remove typedefs.
26575 (ggc_cache_hasher): Update accordingly. Add typedefs.
26576 (ggc_ptr_hash): New class.
26577 * hash-table.h: Update comment.
26578 * cfgloop.h (loop_exit_hasher): Inherit from ggc_ptr_hash rather than
26580 * cgraph.h (section_name_hasher, cgraph_edge_hasher): Likewise.
26581 (tree_descriptor_hasher): Likewise.
26582 * cgraph.c (function_version_hasher): Likewise.
26583 * dwarf2out.c (indirect_string_hasher, dwarf_file_hasher): Likewise.
26584 (decl_die_hasher, block_die_hasher, decl_loc_hasher): Likewise.
26585 (dw_loc_list_hasher, addr_hasher): Likewise.
26586 * function.h (used_type_hasher): Likewise.
26587 * function.c (temp_address_hasher): Likewise.
26588 * gimple-ssa.h (tm_restart_hasher, ssa_name_hasher): Likewise.
26589 * libfuncs.h (libfunc_hasher): Likewise.
26590 * lto-streamer.h (decl_state_hasher): Likewise.
26591 * optabs.c (libfunc_decl_hasher): Likewise.
26592 * tree-scalar-evolution.c (scev_info_hasher): Likewise.
26593 * varasm.c (section_hasher, object_block_hasher): Likewise.
26594 (const_rtx_desc_hasher): Likewise.
26595 * config/darwin.c (indirection_hasher, cfstring_hasher): Likewise.
26596 * config/rs6000/rs6000.c (toc_hasher, builtin_hasher): Likewise.
26598 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
26600 * hash-traits.h (free_ptr_hash): New class.
26601 * dwarf2out.c (decl_table_entry_hasher): Inherit from free_ptr_hash
26602 rather than typed_free_remove. Remove redudant typedefs.
26603 (external_ref_hasher): Likewise.
26604 * except.c (action_record_hasher, ttypes_filter_hasher): Likewise.
26605 (ehspec_hasher): Likewise.
26606 * ggc-common.c (saving_hasher): Likewise.
26607 * gimplify.c (gimplify_hasher): Likewise.
26608 * haifa-sched.c (delay_i2_hasher): Likewise.
26609 * loop-invariant.c (invariant_expr_hasher): Likewise.
26610 * loop-iv.c (biv_entry_hasher): Likewise.
26611 * loop-unroll.c (iv_split_hasher, var_expand_hasher): Likewise.
26612 * trans-mem.c (tm_mem_map_hasher, tm_memop_hasher): Likewise.
26613 * tree-cfg.c (locus_discrim_hasher): Likewise.
26614 * tree-eh.c (finally_tree_hasher): Likewise.
26615 * tree-into-ssa.c (var_info_hasher): Likewise.
26616 * tree-parloops.c (reduction_hasher, name_to_copy_hasher): Likewise.
26617 * tree-ssa-loop-ivopts.c (iv_inv_expr_hasher): Likewise.
26618 * tree-ssa-phiopt.c (ssa_names_hasher): Likewise.
26619 * tree-ssa-pre.c (expr_pred_trans_d): Likewise.
26620 * tree-ssa-sccvn.c (vn_constant_hasher): Likewise.
26621 * tree-ssa-structalias.c (equiv_class_hasher): Likewise.
26622 (shared_bitmap_hasher): Likewise.
26623 * tree-ssa-threadupdate.c (redirection_data): Likewise.
26624 * tree-vectorizer.h (peel_info_hasher): Likewise.
26625 * tree-vectorizer.c (simduid_to_vf, simd_array_to_simduid): Likewise.
26626 * config/mips/mips.c (mips_lo_sum_offset_hasher): Likewise.
26628 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
26630 * hash-table.h: Update comments.
26631 * hash-traits.h (pointer_hash): Don't inherit from typed_noop_remove.
26632 (nofree_ptr_hash): New class.
26633 * asan.c (asan_mem_ref_hasher): Inherit from nofree_ptr_hash rather
26634 than typed_noop_remove. Remove redudant typedefs.
26635 * attribs.c (attribute_hasher): Likewise.
26636 * cfg.c (bb_copy_hasher): Likewise.
26637 * cselib.c (cselib_hasher): Likewise.
26638 * dse.c (invariant_group_base_hasher): Likewise.
26639 * dwarf2cfi.c (trace_info_hasher): Likewise.
26640 * dwarf2out.c (macinfo_entry_hasher): Likewise.
26641 (comdat_type_hasher, loc_list_hasher): Likewise.
26642 * gcse.c (pre_ldst_expr_hasher): Likewise.
26643 * genmatch.c (id_base): Likewise.
26644 * genrecog.c (test_pattern_hasher): Likewise.
26645 * gimple-ssa-strength-reduction.c (cand_chain_hasher): Likewise.
26646 * haifa-sched.c (delay_i1_hasher): Likewise.
26647 * hard-reg-set.h (simplifiable_subregs_hasher): Likewise.
26648 * ipa-icf.h (congruence_class_group_hash): Likewise.
26649 * ipa-profile.c (histogram_hash): Likewise.
26650 * ira-color.c (allocno_hard_regs_hasher): Likewise.
26651 * lto-streamer.h (string_slot_hasher): Likewise.
26652 * lto-streamer.c (tree_entry_hasher): Likewise.
26653 * plugin.c (event_hasher): Likewise.
26654 * postreload-gcse.c (expr_hasher): Likewise.
26655 * store-motion.c (st_expr_hasher): Likewise.
26656 * tree-sra.c (uid_decl_hasher): Likewise.
26657 * tree-ssa-coalesce.c (coalesce_pair_hasher): Likewise.
26658 (ssa_name_var_hash): Likewise.
26659 * tree-ssa-live.c (tree_int_map_hasher): Likewise.
26660 * tree-ssa-loop-im.c (mem_ref_hasher): Likewise.
26661 * tree-ssa-pre.c (pre_expr_d): Likewise.
26662 * tree-ssa-sccvn.c (vn_nary_op_hasher): Likewise.
26663 * vtable-verify.h (registration_hasher): Likewise.
26664 * vtable-verify.c (vtbl_map_hasher): Likewise.
26665 * config/arm/arm.c (libcall_hasher): Likewise.
26666 * config/i386/winnt.c (wrapped_symbol_hasher): Likewise.
26667 * config/ia64/ia64.c (bundle_state_hasher): Likewise.
26668 * config/sol2.c (comdat_entry_hasher): Likewise.
26669 * fold-const.c (fold): Use nofree_ptr_hash instead of pointer_hash.
26670 (print_fold_checksum, fold_checksum_tree): Likewise.
26671 (debug_fold_checksum, fold_build1_stat_loc): Likewise.
26672 (fold_build2_stat_loc, fold_build3_stat_loc): Likewise.
26673 (fold_build_call_array_loc): Likewise.
26674 * tree-ssa-ccp.c (gimple_htab): Likewise.
26675 * tree-browser.c (tree_upper_hasher): Inherit from nofree_ptr_hash
26676 rather than pointer_type.
26678 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
26680 * hash-traits.h (pointer_hash::mark_deleted, pointer_hash::mark_empty)
26681 (pointer_hash::is_deleted, pointer_hash::is_empty): New functions.
26683 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
26685 * hash-traits.h (ggc_hasher::remove): Take a reference parameter.
26686 (ggc_hasher::ggc_mx): Likewise.
26687 (ggc_cache_hasher): Inherit from ggc_hasher. Remove definitions
26688 that duplicate ggc_hasher ones.
26690 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
26692 * hash-table.h (hash_table): Add gt_cleare_cache as a friend.
26693 (gt_cleare_cache): Check here for deleted and empty entries.
26694 Replace handle_cache_entry with a call to keep_cache_entry.
26695 * hash-traits.h (ggc_cache_hasher::handle_cache_entry): Delete.
26696 (ggc_cache_hasher::keep_cache_entry): New function.
26697 * trans-mem.c (tm_wrapper_hasher::handle_cache_entry): Delete.
26698 (tm_wrapper_hasher::keep_cache_entry): New function.
26699 * tree.h (tree_decl_map_cache_hasher::handle_cache_entry): Delete.
26700 (tree_vec_map_cache_hasher::keep_cache_entry): New function.
26701 * tree.c (type_cache_hasher::handle_cache_entry): Delete.
26702 (type_cache_hasher::keep_cache_entry): New function.
26703 (tree_vec_map_cache_hasher::handle_cache_entry): Delete.
26704 (tree_vec_map_cache_hasher::keep_cache_entry): New function.
26705 * ubsan.c (tree_type_map_cache_hasher::handle_cache_entry): Delete.
26706 (tree_type_map_cache_hasher::keep_cache_entry): New function.
26707 * varasm.c (tm_clone_hasher::handle_cache_entry): Delete.
26708 (tm_clone_hasher::keep_cache_entry): New function.
26709 * config/i386/i386.c (dllimport_hasher::handle_cache_entry): Delete.
26710 (dllimport_hasher::keep_cache_entry): New function.
26712 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
26714 * hash-table.h: Include hash-traits.h.
26715 (typed_free_remove, typed_noop_remove, pointer_hash, ggc_hasher)
26716 (ggc_cache_hasher): Move to...
26717 * hash-traits.h: ...this new file.
26719 2015-06-25 Andrew MacLeod <amacleod@redhat.com>
26721 * tree-core.h (struct tree_optimization_option): Make opts a pointer to
26722 struct cl_optimization.
26723 * tree.h (TREE_OPTIMIZATION): Return the pointer, not the address of it.
26724 * tree.c (make_node_stat): Allocate cl_optimization struct.
26725 (copy_node_stat): Allocate and copy cl_optimization struct.
26727 2015-06-25 Andrew MacLeod <amacleod@redhat.com>
26729 * function.h (struct incoming_args): Move struct.
26730 (pass_by_reference, reference_callee_copied): Remove prototypes.
26731 * emit-rtl.h (struct incoming_args): Relocate struct here.
26732 * calls.h (pass_by_reference, reference_callee_copied): Relocate
26734 * function.c (pass_by_reference, reference_callee_copied): Move.
26735 * calls.c (pass_by_reference, reference_callee_copied): Relocate here.
26736 * cfgloop.h: Don't include tm.h or hard-reg-set.h.
26737 * ipa-chkp.c: Include calls.h.
26739 2015-06-25 Andrew Macleod <amacleod@redhat.com>
26741 * alias.h (alias_set_type): Move typedef.
26742 * coretypes.h (alias_set_type): Relocate typedef here.
26743 * rtl.h: Don't include alias.h.
26745 2015-06-25 Andrew MacLeod <amacleod@redhat.com>
26747 * cgraph.h (cgraph_rtl_info): Move to rtl.h
26748 (cgraph_node): Maintain pointer to struct cgraph_rtl_info instead of
26750 * rtl.h (struct cgraph_rtl_info): Define when HARD_REG_SET available.
26751 * cgraph.c (cgraph_node::rtl_info): Allocate cgraph_rtl_info if one
26753 * calls.c: Include hard-reg-set.h before rtl.h.
26756 2015-06-25 Zhouyi Zhou <yizhouzhou@ict.ac.cn>
26757 Vladimir Makarov <vmakarov@redhat.com>
26759 * ira-color.c (assign_hard_reg): Remove unecessary bitmap check.
26762 2015-06-25 Richard Biener <rguenther@suse.de>
26764 * fold-const.c (fold_binary_loc): Move simplification of
26765 (X <<>> C1) & C2 ...
26766 * match.pd: ... here.
26768 2015-06-25 Eric Botcazou <ebotcazou@adacore.com>
26770 * lto-streamer-out.c (DFS::hash_scc): Fix typos & formatting glitches.
26772 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
26774 * match.pd: Add patterns for vec_conds between 1 and 0.
26776 2015-06-25 Richard Biener <rguenther@suse.de>
26778 * tree-vect-stmts.c (vectorizable_conversion): Do not set
26779 STMT_VINFO_VEC_STMT for SLP.
26780 (vectorizable_store): Likewise.
26781 (vectorizable_load): Likewise.
26782 (vect_transform_stmt): Catch SLP vectorization clobbering
26783 STMT_VINFO_VEC_STMT.
26785 2015-06-25 Richard Biener <rguenther@suse.de>
26787 * tree-vect-slp.c (vect_detect_hybrid_slp_stmts): Improve debug
26789 (vect_create_mask_and_perm): Do not set STMT_VINFO_VEC_STMT and
26790 cleanup resulting dead code and parameters.
26791 (vect_transform_slp_perm_load): Adjust.
26793 2015-06-25 Nick Clifton <nickc@redhat.com>
26795 * config/bfin/bfin.c (bfin_expand_prologue): Set
26796 current_function_static_stack_size if flag_stack_usage_info is set.
26797 * config/ft32/ft32.c (ft32_expand_prologue): Likewise.
26798 * config/h8300/h8300.c (h8300_expand_prologue): Likewise.
26799 * config/iq2000/iq2000.c (iq2000_expand_prologue): Likewise.
26800 * config/m32c/m32c.c (m32c_emit_prologue): Likewise.
26802 2015-06-25 Tom de Vries <tom@codesourcery.com>
26804 * tree-ssa-loop-manip.c (canonicalize_loop_ivs): Don't claim in header
26805 comment that the generated IV is unsigned.
26807 2015-06-25 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
26810 * config/arm/arm.c (arm_dbx_register_number): Return
26811 DWARF_FRAME_REGISTERS by default.
26813 2015-06-25 Tom de Vries <tom@codesourcery.com>
26815 * dominance.c (calculate_dominance_info): Fix verify_dominators call
26816 argument. Call verify_dominator when reusing dominator info.
26818 2015-06-24 Kaz Kojima <kkojima@gcc.gnu.org>
26821 * config/sh/sh.md (GOTaddr2picreg): Add a new operand for
26822 an additional element of the unspec vector. Modify indices
26824 (builtin_setjmp_receiver): Pass const0_rtx to gen_GOTaddr2picreg.
26825 * config/sh/sh.c (prepare_move_operands): Pass incremented
26826 const_int to gen_GOTaddr2picreg.
26827 (sh_expand_prologue): Pass const0_rtx to gen_GOTaddr2picreg.
26829 2015-06-24 Alan Lawrence <alan.lawrence@arm.com>
26831 * config/aarch64/aarch64.md (<optab><fcvt_target><GPF:mode>2):
26832 Condition on TARGET_FLOAT.
26834 2015-06-24 Alan Lawrence <alan.lawrence@arm.com>
26836 * doc/invoke.texi: Clarify AArch64 feature modifiers (no)fp, (no)simd
26839 2015-06-24 Alan Lawrence <alan.lawrence@arm.com>
26841 * config/aarch64/aarch64-protos.h (aarch64_err_no_fpadvsimd): New.
26843 * config/aarch64/aarch64.md (mov<mode>/GPF, movtf): Use
26844 aarch64_err_no_fpadvsimd.
26846 * config/aarch64/aarch64.c (aarch64_err_no_fpadvsimd): New.
26847 (aarch64_layout_arg, aarch64_init_cumulative_args): Use
26848 aarch64_err_no_fpadvsimd if !TARGET_FLOAT and we need FP regs.
26849 (aarch64_expand_builtin_va_start, aarch64_setup_incoming_varargs):
26850 Turn error into assert, test TARGET_FLOAT.
26851 (aarch64_gimplify_va_arg_expr): Use aarch64_err_no_fpadvsimd, test
26854 2015-06-24 Aldy Hernandez <aldyh@redhat.com>
26857 * dwarf2out.c (gen_formal_parameter_die): Remove assert.
26859 2015-06-24 Ilya Enkovich <enkovich.gnu@gmail.com>
26861 * tree-vect-slp.c (vect_build_slp_tree_1): Init vectype.
26863 2015-06-24 Renlin Li <renlin.li@arm.com>
26865 * config/aarch64/aarch64.h(TARGET_CPU_CPP_BUILTINS): Add
26866 __ARM_ALIGN_MAX_PWR, __ARM_ALIGN_MAX_STACK_PWR.
26868 2015-06-24 Richard Biener <rguenther@suse.de>
26870 * genmatch.c (enum tree_code): Add VIEW_CONVERT[012].
26872 (lower_opt_convert): Support lowering of conditional view_convert.
26873 (parser::parse_operation): Likewise.
26874 (parser::parse_for): Likewise.
26876 2015-06-24 Renlin Li <renlin.li@arm.com>
26878 * varasm.c (emit_local): Use unsigned int for align variable.
26880 2015-06-24 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
26883 * config/arm/arm.c (vfp3_const_double_for_fract_bits): Disable
26884 for negative numbers.
26886 2015-06-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
26888 PR rtl-optimization/66306
26889 * reload.c (find_reloads): Swap the match_dup info for
26890 commutative operands.
26892 2015-06-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
26894 * config/s390/vx-builtins.md
26895 ("vec_scatter_element<mode>_<non_vec_int>")
26896 ("vec_scatter_element<V_HW_64:mode>_SI"): Replace gf mode
26897 attribute with bhfgq.
26899 2015-06-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
26901 * config/s390/s390-builtins.def: Fix vpopct instruction comments.
26903 2015-06-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
26905 * config/s390/s390-builtin-types.def: Add flag to indicate the
26906 options under which the function type is needed.
26907 * config/s390/s390-builtins.def: Add flag to indicate the options
26908 under which the builtin is enabled.
26909 * config/s390/s390-builtins.h: Add flags parameter to macro
26911 (bflags_for_builtin): New function.
26912 (flags_for_builtin): Renamed to ...
26913 (opflags_for_builtin): ... this.
26914 * config/s390/s390-c.c (s390_resolve_overloaded_builtin): Rename
26915 flags_for_builtin to bflags_for_builtin and
26916 flags_overloaded_builtin_var to opflags_overloaded_builtin_var.
26917 * config/s390/s390.c: Add initialization of bflags_builtin and
26918 opflags_builtin arrays.
26919 Remove code for flags_builtin.
26920 (s390_init_builtins): Only create builtin function types if one of
26921 their flags is active.
26922 Only create builtins if all of their flags are active.
26923 (s390_expand_builtin): Rename flags_for_builtin to
26924 opflags_for_builtin.
26926 2015-06-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
26928 * config/s390/vecintrin.h: Remove internal builtins.
26930 2015-06-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
26932 * config/s390/s390.c (s390_secondary_reload): Fix check for
26933 GENERAL_REGS register class.
26935 2015-06-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
26937 * config/s390/s390.c (s390_support_vector_misalignment): Call
26938 default implementation for !TARGET_VX.
26940 2015-06-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
26942 * config/s390/s390.c (s390_legitimate_constant_p): Add
26945 2015-06-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
26947 * config/s390/s390.c (s390_vector_abi): New variable definition.
26948 (s390_check_type_for_vector_abi): New function.
26949 (TARGET_ASM_FILE_END): New macro definition.
26950 (s390_asm_file_end): New function.
26951 (s390_function_arg): Call s390_check_type_for_vector_abi.
26952 (s390_gimplify_va_arg): Likewise.
26953 * configure: Regenerate.
26954 * configure.ac: Check for .gnu_attribute Binutils feature.
26956 2015-06-23 Chen Gang <gang.chen.5i5j@gmail.com>
26959 * config/bfin/bfin.c (hwloop_optimize): Initialize
26960 JUMP_LABEL for newly created jump.
26962 2015-06-23 Tristan Gingold <gingold@adacore.com>
26964 * collect-utils.c (collect_wait): Unlink the response file here
26966 (do_wait): ...here.
26967 (utils_cleanup): ...and here.
26969 2015-06-23 Richard Sandiford <richard.sandiford@arm.com>
26971 * df-scan.c: Don't include target-def.h.
26972 * targhooks.c: Likewise.
26973 * config/arm/arm-c.c: Likewise.
26974 * config/i386/i386-c.c: Likewise.
26975 * config/nds32/nds32-cost.c: Likewise.
26976 * config/nds32/nds32-fp-as-gp.c: Likewise.
26977 * config/nds32/nds32-intrinsic.c: Likewise.
26978 * config/nds32/nds32-isr.c: Likewise.
26979 * config/nds32/nds32-md-auxiliary.c: Likewise.
26980 * config/nds32/nds32-memory-manipulation.c: Likewise.
26981 * config/nds32/nds32-pipelines-auxiliary.c: Likewise.
26982 * config/nds32/nds32-predicates.c: Likewise.
26984 2015-06-23 Richard Biener <rguenther@suse.de>
26986 PR tree-optimization/66636
26987 * tree-vect-stmts.c (vectorizable_store): Properly compute the
26988 def type for further defs for strided stores.
26990 2015-06-23 Nathan Sidwell <nathan@codesourcery.com>
26992 * config/nvptx/nvptx.md (sel_true<mode>, sel_false<mode>): New
26993 conditional selects.
26994 (setcc_int<mode>, setcc_float<mode>): Reformat.
26996 2015-06-23 Marek Polacek <polacek@redhat.com>
26998 * match.pd ((x + y) - (x | y) -> x & y,
26999 (x + y) - (x & y) -> x | y): New patterns.
27001 2015-06-23 Ludovic Courtès <ludo@gnu.org>
27004 * config/arm/linux-elf.h (LINUX_TARGET_LINK_SPEC): Move
27005 '-dynamic-linker' within %{!shared: ...}.
27007 2015-06-23 Uros Bizjak <ubizjak@gmail.com>
27010 * config/i386/predicates.md (addsub_vm_operator): New predicate.
27011 (addsub_vs_operator): Ditto.
27012 (addsub_vs_parallel): Ditto.
27013 * config/i386/sse.md (ssedoublemode): Add V4SF and V2DF modes.
27014 (avx_addsubv4df3, avx_addsubv8sf3, sse3_addsubv2df3, sse3_addsubv4sf3):
27015 Put minus RTX before plus and adjust vec_merge selector.
27016 (*avx_addsubv4df3_1, *avx_addsubv4df3_1s, *sse3_addsubv2df3_1)
27017 (*sse_addsubv2df3_1s, *avx_addsubv8sf3_1, *avx_addsubv8sf3_1s)
27018 (*sse3_addsubv4sf3_1, *sse_addsubv4sf3_1s): Remove insn patterns.
27019 (addsub vec_merge splitters): New combiner splitters.
27020 (addsub vec_select/vec_concat splitters): Ditto.
27022 2015-06-23 Bin Cheng <bin.cheng@arm.com>
27024 PR tree-optimization/66449
27025 * tree-ssa-loop-niter.c (loop_exits_before_overflow): Use
27026 POINTER_PLUS_EXPR for pointers.
27028 2015-06-23 Alan Modra <amodra@gmail.com>
27030 * rtlanal.c (commutative_operand_precedence): Correct comments.
27031 * simplify-rtx.c (simplify_plus_minus_op_data_cmp): Delete forward
27032 declaration. Return an int. Distinguish REG,REG return from
27034 (struct simplify_plus_minus_op_data): Make local to function.
27035 (simplify_plus_minus): Don't set canonicalized if merely sorting
27036 registers. Avoid packing ops if nothing changes. White space fixes.
27038 2015-06-22 Pierre-Marie de Rodat <derodat@adacore.com>
27040 * gcc.c (default_compilers): Pass "-o %g.s" to cc1 for headers even if
27041 -fdump-ada-spec is passed but not if -fsyntax-only is.
27043 2015-06-22 Vladimir Makarov <vmakarov@redhat.com>
27046 * lra-lives.c (process_bb_lives): Check insn copying the same
27047 reload pseudo and don't create a copy for it.
27049 2015-06-22 Tom de Vries <tom@codesourcery.com>
27051 * tree-parloops.c (transform_to_exit_first_loop_alt): Add update_stmt
27054 2015-06-22 Tom de Vries <tom@codesourcery.com>
27056 * builtins.def (DEF_GOMP_BUILTIN): Test
27057 'flag_tree_parallelize_loops > 1' instead of
27058 'flag_tree_parallelize_loops'. Test flag_cilkplus.
27060 2015-06-22 Tom de Vries <tom@codesourcery.com>
27062 * dominance.c (calculate_dominance_info): Verify dominators if
27065 2015-06-22 Marek Polacek <polacek@redhat.com>
27067 * match.pd ((x ^ y) ^ (x | y) -> x & y,
27068 (x & y) + (x ^ y) -> x | y, (x & y) | (x ^ y) -> x | y,
27069 (x & y) ^ (x ^ y) -> x | y, (x & y) + (x | y) -> x + y,
27070 (x | y) - (x ^ y) -> x & y, (x | y) - (x & y) -> x ^ y): New patterns.
27072 2015-06-22 Uros Bizjak <ubizjak@gmail.com>
27075 * config/i386/i386.c (ix86_rtx_costs) <case COMPARE>: Ignore the
27076 cost of embedded comparison.
27078 2015-06-22 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
27081 * config/rs6000/predicates.md (altivec_register_operand): Permit
27082 virtual stack registers.
27083 (vsx_register_operand): Likewise.
27084 (vfloat_operand): Likewise.
27085 (vint_operand): Likewise.
27086 (vlogical_operand): Likewise.
27088 2015-06-22 Richard Biener <rguenther@suse.de>
27090 * tree-vectorizer.h (_loop_vec_info): Add scalar_cost_vec
27091 and single_scalar_iteration_cost members.
27092 (LOOP_VINFO_SCALAR_ITERATION_COST): New.
27093 (LOOP_VINFO_SINGLE_SCALAR_ITERATION_COST): Likewise.
27094 (vect_get_single_scalar_iteration_cost): Remove.
27095 * tree-vect-data-refs.c (vect_peeling_hash_get_lowest_cost):
27096 Use LOOP_VINFO_SCALAR_ITERATION_COST.
27097 * tree-vect-loop.c (destroy_loop_vec_info): Free
27099 (vect_get_single_scalar_iteration_cost): Compute result into
27100 LOOP_VINFO_SINGLE_SCALAR_ITERATION_COST and
27101 LOOP_VINFO_SCALAR_ITERATION_COST. Make static.
27102 (vect_analyze_loop_2): Call vect_get_single_scalar_iteration_cost.
27103 (vect_estimate_min_profitable_iters): Use them.
27105 2015-06-22 Christian Bruel <christian.bruel@st.com>
27108 * config/arm/arm.c (add_attribute, arm_insert_attributes): New functions
27109 (TARGET_INSERT_ATTRIBUTES): Define.
27110 (thumb_flipper): New var.
27111 * config/arm/arm.opt (-mflip-thumb): New switch.
27113 2015-06-22 Jan Hubicka <hubicka@ucw.cz>
27114 Martin Liska <mliska@suse.cz>
27117 * ipa-icf.c (sem_item::target_supports_symbol_aliases): Remove
27118 construction of arg_types.
27119 (sem_function::sem_function): Likewise.
27120 (sem_function::~sem_function): Remove destruction of arg_types.
27121 (sem_function::compatible_parm_types_p): New function.
27122 (sem_function::equals_wpa): Reorg matching of return values
27123 and parameter types.
27124 (sem_function::equals_private): Reorg mathcing of argument types.
27125 (sem_function::parse_tree_args): Remove.
27126 * ipa-icf.h (init_wpa): Do not call it.
27127 (parse_tree_args): Remove.
27128 (compatible_parm_types_p): Declare.
27129 (result_type): Remove.
27130 (arg_types): Remove.
27132 2015-06-22 Jan Hubicka <hubicka@ucw.cz>
27135 * ipa-polymorphic-call.c
27136 (ipa_polymorphic_call_context::get_dynamic_type): Fix thinko when
27137 initializing alias oracle; fix formating; set base_alias_set if it
27140 2015-06-22 Mikhail Maltsev <maltsevm@gmail.com>
27142 * auto-inc-dec.c (reverse_mem, reverse_inc): Remove.
27143 (parse_add_or_inc): Use std::swap instead of reverse_{mem,inc}.
27144 (find_inc): Likewise.
27145 * combine.c (combine_simplify_rtx): Use std::swap instead of manually
27147 * df-core.c (df_worklist_dataflow_doublequeue): Likewise.
27148 * df-scan.c (df_swap_refs): Remove.
27149 (df_sort_and_compress_refs): Use std::swap instead of df_swap_refs.
27150 * dominance.c (link_roots): Use std::swap instead of manually swapping.
27151 * expr.c (expand_expr_real_2, do_store_flag): Likewise.
27152 * fold-const.c (fold_relational_const): Likewise.
27153 * genattrtab.c (simplify_test_exp): Likewise.
27154 * gimple-match-head.c (gimple_resimplify2, gimple_resimplify3,
27155 gimple_simplify): Likewise.
27156 * ifcvt.c (noce_try_abs, find_if_header): Likewise.
27157 * internal-fn.c (expand_addsub_overflow, expand_mul_overflow): Likewise.
27158 * ipa-devirt.c (add_type_duplicate): Likewise.
27159 * loop-iv.c (get_biv_step_1, iv_number_of_iterations): Likewise.
27160 * lra-lives.c (lra_setup_reload_pseudo_preferenced_hard_reg): Likewise.
27161 * lra.c (lra_create_copy): Likewise.
27162 * lto-streamer-out.c (DFS::DFS): Likewise.
27163 * modulo-sched.c (get_sched_window): Likewise.
27164 * omega.c (omega_pretty_print_problem): Likewise.
27165 * optabs.c (prepare_float_lib_cmp, expand_mult_highpart): Likewise.
27166 * reload1.c (reloads_unique_chain_p): Likewise.
27167 * sel-sched-ir.c (exchange_lv_sets, exchange_av_sets): Remove.
27168 (exchange_data_sets): Move logic from exchange_{av,lv}_sets here and
27170 * simplify-rtx.c (simplify_unary_operation_1): Use std::swap instead of
27172 * tree-if-conv.c (is_cond_scalar_reduction, predicate_scalar_phi,
27173 predicate_mem_writes): Likewise.
27174 * tree-loop-distribution.c (pg_add_dependence_edges): Likewise.
27175 * tree-predcom.c (combine_chains): Likewise.
27176 * tree-ssa-alias.c (nonoverlapping_component_refs_p,
27177 refs_may_alias_p_1): Likewise.
27178 * tree-ssa-ifcombine.c (recognize_if_then_else): Likewise.
27179 * tree-ssa-loop-ivopts.c (extract_cond_operands): Likewise.
27180 * tree-ssa-loop-niter.c (refine_bounds_using_guard,
27181 number_of_iterations_cond): Likewise.
27182 * tree-ssa-phiopt.c (tree_ssa_phiopt_worker): Likewise.
27183 * tree-ssa-sccvn.c (vn_nary_op_compute_hash): Likewise.
27184 * tree-vect-slp.c (vect_build_slp_tree): Likewise.
27185 * tree-vect-stmts.c (supportable_widening_operation): Likewise.
27186 * tree-vrp.c (extract_range_from_binary_expr_1,
27187 extract_range_from_unary_expr_1): Likewise.
27189 2015-06-20 Marek Polacek <polacek@redhat.com>
27191 * common.opt (fsanitize-undefined-trap-on-error): Add Driver.
27193 2015-06-19 Kaz Kojima <kkojima@gcc.gnu.org>
27196 * config/sh/sh.c (prepare_move_operands): Replace subreg
27197 index term with R0 for base and index addressing.
27199 2015-06-19 Jim Wilson <jim.wilson@linaro.org>
27201 * config/aarch64/aarch64.md (mov<mode>:GPF): Don't call force_reg if
27203 (movsf_aarch64): Change condition from register_operand to
27204 aarch64_reg_or_fp_zero for op1. Change type for alternative 6 to
27205 load1. Change type for alternative 7 to store1.
27206 (movdf_aarch64): Likewise.
27208 2015-06-19 James Greenhalgh <james.greenhalgh@arm.com>
27210 * config/vax/vax.md: Adjust sign/zero extend patterns to
27211 handle SUBREGs in operands[1].
27213 2015-06-19 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
27215 * config/i386/i386.c (ix86_function_versions): Use std::swap instead
27216 of manually swapping.
27217 (expand_vec_perm_interleave2): Likewise.
27219 2015-06-19 Ilya Enkovich <enkovich.gnu@gmail.com>
27221 * tree-chkp.c (chkp_compute_bounds_for_assignment): Don't
27222 reuse bounds created for abnormal ssa names.
27224 2015-06-19 Jakub Jelinek <jakub@redhat.com>
27226 * config/nvptx/nvptx.md (allocate_stack): Rename to...
27227 (allocate_stack_<mode>): ... this, and add :P on both
27228 match_operand and unspec.
27229 (allocate_stack): New expander.
27231 2015-06-19 Christian Bruel <christian.bruel@st.com>
27235 * config/arm/arm.c (arm_set_current_function): Handle
27236 explicit default options.
27238 2015-06-18 Uros Bizjak <ubizjak@gmail.com>
27240 * config/i386/i386.md (*movsicc_noc_zext): New insn.
27241 (zero-extended cmove with mem peephole2): New pattern.
27242 (cmove with mem peephole2): Merge patterns.
27244 2015-06-18 Segher Boessenkool <segher@kernel.crashing.org>
27246 * config/rs6000/rs6000.h (WORD_REGISTER_OPERATIONS): Delete.
27248 2015-06-18 Steve Ellcey <sellcey@imgtec.com>
27250 * config/mips/mips.c (mips_rtx_costs): Remove HONOR_NAN check.
27251 * config/mips/mips.md (*madd4<mode>): Ditto.
27252 (*nmadd3<mode>) Ditto.
27253 (*nmadd4<mode>_fastmath): Ditto.
27254 (*nmadd3<mode>_fastmath): Ditto.
27255 (*nmsub4<mode>): Ditto.
27256 (*nmsub3<mode>): Ditto.
27257 (*nmsub4<mode>_fastmath): Ditto.
27258 (*nmsub3<mode>_fastmath): Ditto.
27260 2015-06-18 Michael Matz <matz@suse.de>
27262 PR middle-end/66253
27263 * tree-vect-stmts.c (vectorizable_store): Implement non-SLP
27264 grouped strided stores.
27265 (vectorizable_load): Don't use the DR from first_stmt in
27266 the non-SLP grouped strided case.
27268 2015-06-18 Ilya Enkovich <enkovich.gnu@gmail.com>
27271 * function.c (assign_bounds): Add arguments assign_regs,
27272 assign_special, assign_bt.
27273 (assign_parms): For vararg functions handle bounds in BT
27274 and special slots after incoming vararg bounds.
27276 2015-06-18 Ilya Enkovich <enkovich.gnu@gmail.com>
27278 PR middle-end/66568
27279 * cfgexpand.c (expand_return): Handle missing bounds.
27280 (expand_gimple_stmt_1): Likewise.
27281 * tree-chkp.c (chkp_expand_zero_bounds): New.
27282 * tree-chkp.h (chkp_expand_zero_bounds): New.
27284 2015-06-18 Ilya Enkovich <enkovich.gnu@gmail.com>
27286 PR middle-end/66567
27287 * ipa-chkp.c (chkp_maybe_create_clone): Require
27288 functions to be instrumentable.
27289 * tree-chkp.c (chkp_replace_function_pointer): Use
27290 chkp_instrumentable_p instead of attribute check.
27292 2015-06-18 Richard Biener <rguenther@suse.de>
27294 PR tree-optimization/66510
27295 * tree-vect-stmts.c (vectorizable_load): Properly compute the
27296 number of vector loads for SLP permuted loads.
27297 * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Also
27298 check the stride for loop vectorization.
27299 (vect_enhance_data_refs_alignment): Deal with SLP adjusted
27300 vectorization factor.
27301 (vect_analyze_group_access): If the group size is not a power
27302 of two require a epilogue loop.
27303 * tree-vect-loop.c (vect_analyze_loop_2): Move alignment
27304 compute and optimizing and alias test pruning after final
27305 vectorization factor computation.
27306 * tree-vect-slp.c (vect_build_slp_tree_1): Remove check on
27308 (vect_transform_slp_perm_load): Properly compute the original
27309 number of vector load stmts.
27311 2015-06-18 Uros Bizjak <ubizjak@gmail.com>
27313 * doc/invoke.texi (-fsanitize-sections): Split @var to avoid
27314 "unlikely character , in @var" warning.
27316 2015-06-17 Uros Bizjak <ubizjak@gmail.com>
27318 * config/i386/i386.c (ix86_function_arg): Nest TARGET_64BIT code.
27319 (ix86_function_arg_advance): Ditto.
27320 (ix86_pass_by_reference): Ditto. Rewrite MS_ABI part.
27322 2015-06-17 Andrew MacLeod <amacleod@redhat.com>
27324 * function.h (struct rtl_data): Remove struct and accessor macros.
27325 * emit-rtl.h (struct rtl_data): Relocate to here.
27326 * Makefile.in (GTFILES): Add emit-rtl.h.
27327 * df-core.c: Include emit-rtl.h.
27328 * genattrtab.c: Likewise.
27329 * genconditions.c: Likewise.
27330 * genpreds.c: Likewise.
27331 * genrecog.c: Likewise.
27332 * regcprop.c: Likewise.
27333 * resource.c: Likewise.
27334 * sched-rgn.c: Likewise.
27335 * config/aarch64/cortex-a57-fma-steering.c: Likewise.
27336 * config/i386/winnt.c: Likewise.
27338 2015-06-17 Jakub Jelinek <jakub@redhat.com>
27340 PR middle-end/66429
27341 * omp-low.c (expand_omp_taskreg, expand_omp_target): Use child_cfun
27342 instead of DECL_STRUCT_FUNCTION (child_fn). Or in has_simduid_loops
27343 and has_force_vectorize_loops flags from cfun into
27345 (expand_omp_simd): For broken loop, set cfun->has_simduid_loops
27346 if simduid is non-NULL.
27347 * tree-pass.h (make_pass_simduid_cleanup): New prototype.
27348 * passes.def (pass_simduid_cleanup): Add new pass after loop
27350 * tree-vectorizer.c (adjust_simduid_builtins): Remove one unnecessary
27351 indirection from htab argument's type.
27352 (shrink_simd_arrays): New function.
27353 (vectorize_loops): Use it. Adjust adjust_simduid_builtins caller.
27354 Don't call adjust_simduid_builtins if there are no loops.
27355 (pass_data_simduid_cleanup, pass_simduid_cleanup): New variables.
27356 (pass_simduid_cleanup::execute): New method.
27357 (make_pass_simduid_cleanup): New function.
27359 2017-06-17 Andrew MacLeod <amacleod@redhat.com>
27361 * tree-core.h (tree_target_option): Make opts field a pointer to a
27362 cl_target_option instead of an instance of the struct.
27363 * tree.h (TREE_TARGET_OPTION): Return the pointer, not an address of
27365 * tree.c (make_node_stat ): Allocate a cl_target_option struct for
27366 TARGET_OPTION_NODE.
27367 (copy_node_stat): Allocate and copy struct cl_target_option.
27369 2015-06-17 Andrew MacLeod <amacleod@redhat.com>
27371 * tree.h (merge_dllimport_decl_attributes, handle_dll_attribute):
27372 Remove conditional exposure of prototypes.
27373 (ANON_AGGRNAME_FORMAT, ANON_AGGRNAME_P): Delete.
27374 * tree.c (anon_aggrname_format, anon_aggrname_p): New. Replace macro
27375 definitions in tree.h with functions.
27376 * lto-streamer-out.c (DFS_write_tree_body, hash_tree): Use
27378 * tree-streamer-out.c (write_ts_decl_minimal_tree_pointers): Likewise.
27380 2015-06-17 Segher Boessenkool <segher@kernel.crashing.org>
27382 * config/rs6000/rs6000.md (*cmp<mode>_internal1): Rename to...
27383 (*cmp<mode>_signed): ... this.
27384 (*cmpsi_internal2, *cmpdi_internal2): Merge, rename to...
27385 (*cmp<mode>_unsigned): ... this. Remove %b.
27387 2015-06-17 Andrew MacLeod <amacleod@redhat.com>
27389 * coretypes.h: Include input.h and as-a.h.
27390 * rtl.h: Include input.h and as-a.h for generator files.
27391 * hwint.c: Include coretypes.h, don't include diagnostic-core.h.
27392 * vec.c: Don't include diagnostic-core.h.
27393 * alias.c: Do not include input.h, line-map.h or is-a.h.
27394 * asan.c: Likewise.
27395 * attribs.c: Likewise.
27396 * auto-inc-dec.c: Likewise.
27397 * auto-profile.c: Likewise.
27398 * bb-reorder.c: Likewise.
27399 * bt-load.c: Likewise.
27400 * builtins.c: Likewise.
27401 * caller-save.c: Likewise.
27402 * calls.c: Likewise.
27403 * ccmp.c: Likewise.
27405 * cfganal.c: Likewise.
27406 * cfgbuild.c: Likewise.
27407 * cfgcleanup.c: Likewise.
27408 * cfgexpand.c: Likewise.
27409 * cfghooks.c: Likewise.
27410 * cfgloop.c: Likewise.
27411 * cfgloop.h: Likewise.
27412 * cfgloopanal.c: Likewise.
27413 * cfgloopmanip.c: Likewise.
27414 * cfgrtl.c: Likewise.
27415 * cgraph.c: Likewise.
27416 * cgraphbuild.c: Likewise.
27417 * cgraphclones.c: Likewise.
27418 * cgraphunit.c: Likewise.
27419 * cilk-common.c: Likewise.
27420 * combine-stack-adj.c: Likewise.
27421 * combine.c: Likewise.
27422 * compare-elim.c: Likewise.
27423 * convert.c: Likewise.
27424 * coverage.c: Likewise.
27425 * cppbuiltin.c: Likewise.
27426 * cprop.c: Likewise.
27428 * cselib.c: Likewise.
27429 * data-streamer-in.c: Likewise.
27430 * data-streamer-out.c: Likewise.
27431 * data-streamer.c: Likewise.
27432 * dbxout.c: Likewise.
27435 * debug.c: Likewise.
27436 * df-core.c: Likewise.
27437 * df-problems.c: Likewise.
27438 * df-scan.c: Likewise.
27441 * diagnostic-core.h: Likewise.
27442 * diagnostic.c: Likewise.
27443 * dojump.c: Likewise.
27444 * dominance.c: Likewise.
27445 * domwalk.c: Likewise.
27446 * double-int.c: Likewise.
27448 * dumpfile.c: Likewise.
27449 * dumpfile.h: Likewise.
27450 * dwarf2asm.c: Likewise.
27451 * dwarf2cfi.c: Likewise.
27452 * dwarf2out.c: Likewise.
27453 * emit-rtl.c: Likewise.
27454 * et-forest.c: Likewise.
27455 * except.c: Likewise.
27456 * explow.c: Likewise.
27457 * expmed.c: Likewise.
27458 * expr.c: Likewise.
27459 * final.c: Likewise.
27460 * fixed-value.c: Likewise.
27461 * fold-const.c: Likewise.
27462 * function.c: Likewise.
27463 * fwprop.c: Likewise.
27464 * gcc-plugin.h: Likewise.
27465 * gcse.c: Likewise.
27466 * generic-match-head.c: Likewise.
27467 * ggc-page.c: Likewise.
27468 * gimple-builder.c: Likewise.
27469 * gimple-expr.c: Likewise.
27470 * gimple-fold.c: Likewise.
27471 * gimple-iterator.c: Likewise.
27472 * gimple-low.c: Likewise.
27473 * gimple-match-head.c: Likewise.
27474 * gimple-pretty-print.c: Likewise.
27475 * gimple-ssa-isolate-paths.c: Likewise.
27476 * gimple-ssa-strength-reduction.c: Likewise.
27477 * gimple-streamer-in.c: Likewise.
27478 * gimple-streamer-out.c: Likewise.
27479 * gimple-streamer.h: Likewise.
27480 * gimple-walk.c: Likewise.
27481 * gimple.c: Likewise.
27482 * gimplify-me.c: Likewise.
27483 * gimplify.c: Likewise.
27484 * godump.c: Likewise.
27485 * graph.c: Likewise.
27486 * graphite-blocking.c: Likewise.
27487 * graphite-dependences.c: Likewise.
27488 * graphite-interchange.c: Likewise.
27489 * graphite-isl-ast-to-gimple.c: Likewise.
27490 * graphite-optimize-isl.c: Likewise.
27491 * graphite-poly.c: Likewise.
27492 * graphite-scop-detection.c: Likewise.
27493 * graphite-sese-to-poly.c: Likewise.
27494 * graphite.c: Likewise.
27495 * haifa-sched.c: Likewise.
27496 * hw-doloop.c: Likewise.
27497 * ifcvt.c: Likewise.
27498 * init-regs.c: Likewise.
27499 * input.c: Likewise.
27500 * internal-fn.c: Likewise.
27501 * ipa-chkp.c: Likewise.
27502 * ipa-comdats.c: Likewise.
27503 * ipa-cp.c: Likewise.
27504 * ipa-devirt.c: Likewise.
27505 * ipa-icf-gimple.c: Likewise.
27506 * ipa-icf.c: Likewise.
27507 * ipa-inline-analysis.c: Likewise.
27508 * ipa-inline-transform.c: Likewise.
27509 * ipa-inline.c: Likewise.
27510 * ipa-polymorphic-call.c: Likewise.
27511 * ipa-profile.c: Likewise.
27512 * ipa-prop.c: Likewise.
27513 * ipa-pure-const.c: Likewise.
27514 * ipa-ref.c: Likewise.
27515 * ipa-reference.c: Likewise.
27516 * ipa-split.c: Likewise.
27517 * ipa-utils.c: Likewise.
27518 * ipa-visibility.c: Likewise.
27520 * ira-build.c: Likewise.
27521 * ira-color.c: Likewise.
27522 * ira-conflicts.c: Likewise.
27523 * ira-costs.c: Likewise.
27524 * ira-emit.c: Likewise.
27525 * ira-lives.c: Likewise.
27527 * jump.c: Likewise.
27528 * langhooks.c: Likewise.
27530 * loop-doloop.c: Likewise.
27531 * loop-init.c: Likewise.
27532 * loop-invariant.c: Likewise.
27533 * loop-iv.c: Likewise.
27534 * loop-unroll.c: Likewise.
27535 * lower-subreg.c: Likewise.
27536 * lra-assigns.c: Likewise.
27537 * lra-coalesce.c: Likewise.
27538 * lra-constraints.c: Likewise.
27539 * lra-eliminations.c: Likewise.
27540 * lra-lives.c: Likewise.
27541 * lra-remat.c: Likewise.
27542 * lra-spills.c: Likewise.
27544 * lto-cgraph.c: Likewise.
27545 * lto-compress.c: Likewise.
27546 * lto-opts.c: Likewise.
27547 * lto-section-in.c: Likewise.
27548 * lto-section-out.c: Likewise.
27549 * lto-streamer-in.c: Likewise.
27550 * lto-streamer-out.c: Likewise.
27551 * lto-streamer.c: Likewise.
27553 * mode-switching.c: Likewise.
27554 * modulo-sched.c: Likewise.
27555 * omega.c: Likewise.
27556 * omp-low.c: Likewise.
27557 * optabs.c: Likewise.
27558 * opts-global.c: Likewise.
27559 * opts.h: Likewise.
27560 * passes.c: Likewise.
27561 * plugin.c: Likewise.
27562 * postreload-gcse.c: Likewise.
27563 * postreload.c: Likewise.
27564 * predict.c: Likewise.
27565 * pretty-print.h: Likewise.
27566 * print-rtl.c: Likewise.
27567 * print-tree.c: Likewise.
27568 * profile.c: Likewise.
27569 * real.c: Likewise.
27570 * realmpfr.c: Likewise.
27571 * recog.c: Likewise.
27573 * reg-stack.c: Likewise.
27574 * regcprop.c: Likewise.
27575 * reginfo.c: Likewise.
27576 * regrename.c: Likewise.
27577 * regstat.c: Likewise.
27578 * reload.c: Likewise.
27579 * reload1.c: Likewise.
27580 * reorg.c: Likewise.
27581 * resource.c: Likewise.
27582 * rtl-chkp.c: Likewise.
27583 * rtl-error.c: Likewise.
27584 * rtlanal.c: Likewise.
27585 * rtlhooks.c: Likewise.
27586 * sanopt.c: Likewise.
27587 * sched-deps.c: Likewise.
27588 * sched-ebb.c: Likewise.
27589 * sched-rgn.c: Likewise.
27590 * sched-vis.c: Likewise.
27591 * sdbout.c: Likewise.
27592 * sel-sched-dump.c: Likewise.
27593 * sel-sched-ir.c: Likewise.
27594 * sel-sched.c: Likewise.
27595 * sese.c: Likewise.
27596 * shrink-wrap.c: Likewise.
27597 * simplify-rtx.c: Likewise.
27598 * stack-ptr-mod.c: Likewise.
27599 * statistics.c: Likewise.
27600 * stmt.c: Likewise.
27601 * stor-layout.c: Likewise.
27602 * store-motion.c: Likewise.
27603 * streamer-hooks.c: Likewise.
27604 * stringpool.c: Likewise.
27605 * symtab.c: Likewise.
27606 * target-globals.c: Likewise.
27607 * targhooks.c: Likewise.
27608 * toplev.c: Likewise.
27609 * tracer.c: Likewise.
27610 * trans-mem.c: Likewise.
27611 * tree-affine.c: Likewise.
27612 * tree-browser.c: Likewise.
27613 * tree-call-cdce.c: Likewise.
27614 * tree-cfg.c: Likewise.
27615 * tree-cfgcleanup.c: Likewise.
27616 * tree-chkp-opt.c: Likewise.
27617 * tree-chkp.c: Likewise.
27618 * tree-chrec.c: Likewise.
27619 * tree-complex.c: Likewise.
27620 * tree-data-ref.c: Likewise.
27621 * tree-dfa.c: Likewise.
27622 * tree-diagnostic.c: Likewise.
27623 * tree-dump.c: Likewise.
27624 * tree-eh.c: Likewise.
27625 * tree-emutls.c: Likewise.
27626 * tree-if-conv.c: Likewise.
27627 * tree-inline.c: Likewise.
27628 * tree-into-ssa.c: Likewise.
27629 * tree-iterator.c: Likewise.
27630 * tree-loop-distribution.c: Likewise.
27631 * tree-nested.c: Likewise.
27632 * tree-nrv.c: Likewise.
27633 * tree-object-size.c: Likewise.
27634 * tree-outof-ssa.c: Likewise.
27635 * tree-parloops.c: Likewise.
27636 * tree-phinodes.c: Likewise.
27637 * tree-predcom.c: Likewise.
27638 * tree-pretty-print.c: Likewise.
27639 * tree-profile.c: Likewise.
27640 * tree-scalar-evolution.c: Likewise.
27641 * tree-sra.c: Likewise.
27642 * tree-ssa-address.c: Likewise.
27643 * tree-ssa-alias.c: Likewise.
27644 * tree-ssa-ccp.c: Likewise.
27645 * tree-ssa-coalesce.c: Likewise.
27646 * tree-ssa-copy.c: Likewise.
27647 * tree-ssa-copyrename.c: Likewise.
27648 * tree-ssa-dce.c: Likewise.
27649 * tree-ssa-dom.c: Likewise.
27650 * tree-ssa-dse.c: Likewise.
27651 * tree-ssa-forwprop.c: Likewise.
27652 * tree-ssa-ifcombine.c: Likewise.
27653 * tree-ssa-live.c: Likewise.
27654 * tree-ssa-loop-ch.c: Likewise.
27655 * tree-ssa-loop-im.c: Likewise.
27656 * tree-ssa-loop-ivcanon.c: Likewise.
27657 * tree-ssa-loop-ivopts.c: Likewise.
27658 * tree-ssa-loop-manip.c: Likewise.
27659 * tree-ssa-loop-niter.c: Likewise.
27660 * tree-ssa-loop-prefetch.c: Likewise.
27661 * tree-ssa-loop-unswitch.c: Likewise.
27662 * tree-ssa-loop.c: Likewise.
27663 * tree-ssa-math-opts.c: Likewise.
27664 * tree-ssa-operands.c: Likewise.
27665 * tree-ssa-phiopt.c: Likewise.
27666 * tree-ssa-phiprop.c: Likewise.
27667 * tree-ssa-pre.c: Likewise.
27668 * tree-ssa-propagate.c: Likewise.
27669 * tree-ssa-reassoc.c: Likewise.
27670 * tree-ssa-sccvn.c: Likewise.
27671 * tree-ssa-scopedtables.c: Likewise.
27672 * tree-ssa-sink.c: Likewise.
27673 * tree-ssa-strlen.c: Likewise.
27674 * tree-ssa-structalias.c: Likewise.
27675 * tree-ssa-tail-merge.c: Likewise.
27676 * tree-ssa-ter.c: Likewise.
27677 * tree-ssa-threadedge.c: Likewise.
27678 * tree-ssa-threadupdate.c: Likewise.
27679 * tree-ssa-uncprop.c: Likewise.
27680 * tree-ssa-uninit.c: Likewise.
27681 * tree-ssa.c: Likewise.
27682 * tree-ssanames.c: Likewise.
27683 * tree-stdarg.c: Likewise.
27684 * tree-streamer-in.c: Likewise.
27685 * tree-streamer-out.c: Likewise.
27686 * tree-streamer.c: Likewise.
27687 * tree-switch-conversion.c: Likewise.
27688 * tree-tailcall.c: Likewise.
27689 * tree-vect-data-refs.c: Likewise.
27690 * tree-vect-generic.c: Likewise.
27691 * tree-vect-loop-manip.c: Likewise.
27692 * tree-vect-loop.c: Likewise.
27693 * tree-vect-patterns.c: Likewise.
27694 * tree-vect-slp.c: Likewise.
27695 * tree-vect-stmts.c: Likewise.
27696 * tree-vectorizer.c: Likewise.
27697 * tree-vrp.c: Likewise.
27698 * tree.c: Likewise.
27699 * tsan.c: Likewise.
27700 * ubsan.c: Likewise.
27701 * valtrack.c: Likewise.
27702 * value-prof.c: Likewise.
27703 * var-tracking.c: Likewise.
27704 * varasm.c: Likewise.
27705 * varpool.c: Likewise.
27706 * vmsdbgout.c: Likewise.
27707 * vtable-verify.c: Likewise.
27709 * wide-int.cc: Likewise.
27710 * xcoffout.c: Likewise.
27711 * common/common-target.h: Do not include input.h, line-map.h or is-a.h.
27712 * common/common-targhooks.c: Likewise.
27713 * config/aarch64/aarch64-builtins.c: Likewise.
27714 * config/aarch64/aarch64.c: Likewise.
27715 * config/alpha/alpha.c: Likewise.
27716 * config/arc/arc.c: Likewise.
27717 * config/arm/aarch-common.c: Likewise.
27718 * config/arm/arm-builtins.c: Likewise.
27719 * config/arm/arm-c.c: Likewise.
27720 * config/arm/arm.c: Likewise.
27721 * config/avr/avr-c.c: Likewise.
27722 * config/avr/avr-log.c: Likewise.
27723 * config/avr/avr.c: Likewise.
27724 * config/bfin/bfin.c: Likewise.
27725 * config/c6x/c6x.c: Likewise.
27726 * config/cr16/cr16.c: Likewise.
27727 * config/cris/cris.c: Likewise.
27728 * config/darwin-c.c: Likewise.
27729 * config/darwin.c: Likewise.
27730 * config/default-c.c: Likewise.
27731 * config/epiphany/epiphany.c: Likewise.
27732 * config/epiphany/mode-switch-use.c: Likewise.
27733 * config/epiphany/resolve-sw-modes.c: Likewise.
27734 * config/fr30/fr30.c: Likewise.
27735 * config/frv/frv.c: Likewise.
27736 * config/ft32/ft32.c: Likewise.
27737 * config/glibc-c.c: Likewise.
27738 * config/h8300/h8300.c: Likewise.
27739 * config/i386/i386-c.c: Likewise.
27740 * config/i386/i386.c: Likewise.
27741 * config/i386/msformat-c.c: Likewise.
27742 * config/i386/winnt-cxx.c: Likewise.
27743 * config/i386/winnt-stubs.c: Likewise.
27744 * config/i386/winnt.c: Likewise.
27745 * config/ia64/ia64-c.c: Likewise.
27746 * config/ia64/ia64.c: Likewise.
27747 * config/iq2000/iq2000.c: Likewise.
27748 * config/lm32/lm32.c: Likewise.
27749 * config/m32c/m32c-pragma.c: Likewise.
27750 * config/m32c/m32c.c: Likewise.
27751 * config/m32r/m32r.c: Likewise.
27752 * config/m68k/m68k.c: Likewise.
27753 * config/mcore/mcore.c: Likewise.
27754 * config/mep/mep-pragma.c: Likewise.
27755 * config/mep/mep.c: Likewise.
27756 * config/microblaze/microblaze-c.c: Likewise.
27757 * config/microblaze/microblaze.c: Likewise.
27758 * config/mips/mips.c: Likewise.
27759 * config/mmix/mmix.c: Likewise.
27760 * config/mn10300/mn10300.c: Likewise.
27761 * config/moxie/moxie.c: Likewise.
27762 * config/msp430/msp430-c.c: Likewise.
27763 * config/msp430/msp430.c: Likewise.
27764 * config/nds32/nds32-cost.c: Likewise.
27765 * config/nds32/nds32-fp-as-gp.c: Likewise.
27766 * config/nds32/nds32-intrinsic.c: Likewise.
27767 * config/nds32/nds32-isr.c: Likewise.
27768 * config/nds32/nds32-md-auxiliary.c: Likewise.
27769 * config/nds32/nds32-memory-manipulation.c: Likewise.
27770 * config/nds32/nds32-pipelines-auxiliary.c: Likewise.
27771 * config/nds32/nds32-predicates.c: Likewise.
27772 * config/nds32/nds32.c: Likewise.
27773 * config/nios2/nios2.c: Likewise.
27774 * config/nvptx/nvptx.c: Likewise.
27775 * config/pa/pa.c: Likewise.
27776 * config/pdp11/pdp11.c: Likewise.
27777 * config/rl78/rl78-c.c: Likewise.
27778 * config/rl78/rl78.c: Likewise.
27779 * config/rs6000/rs6000-c.c: Likewise.
27780 * config/rs6000/rs6000.c: Likewise.
27781 * config/rx/rx.c: Likewise.
27782 * config/s390/s390-c.c: Likewise.
27783 * config/s390/s390.c: Likewise.
27784 * config/sh/sh-c.c: Likewise.
27785 * config/sh/sh-mem.cc: Likewise.
27786 * config/sh/sh.c: Likewise.
27787 * config/sh/sh_optimize_sett_clrt.cc: Likewise.
27788 * config/sh/sh_treg_combine.cc: Likewise.
27789 * config/sol2-c.c: Likewise.
27790 * config/sol2-cxx.c: Likewise.
27791 * config/sol2-stubs.c: Likewise.
27792 * config/sol2.c: Likewise.
27793 * config/sparc/sparc-c.c: Likewise.
27794 * config/sparc/sparc.c: Likewise.
27795 * config/spu/spu-c.c: Likewise.
27796 * config/spu/spu.c: Likewise.
27797 * config/stormy16/stormy16.c: Likewise.
27798 * config/tilegx/mul-tables.c: Likewise.
27799 * config/tilegx/tilegx-c.c: Likewise.
27800 * config/tilegx/tilegx.c: Likewise.
27801 * config/tilepro/mul-tables.c: Likewise.
27802 * config/tilepro/tilepro-c.c: Likewise.
27803 * config/tilepro/tilepro.c: Likewise.
27804 * config/v850/v850-c.c: Likewise.
27805 * config/v850/v850.c: Likewise.
27806 * config/vax/vax.c: Likewise.
27807 * config/visium/visium.c: Likewise.
27808 * config/vms/vms-c.c: Likewise.
27809 * config/vms/vms.c: Likewise.
27810 * config/vxworks.c: Likewise.
27811 * config/winnt-c.c: Likewise.
27812 * config/xtensa/xtensa.c: Likewise.
27814 2015-06-17 Robert Suchanek <robert.suchanek@imgtec.com>
27816 * config/mips/mips.c (mips_ira_change_pseudo_allocno_class): New
27818 (TARGET_IRA_CHANGE_PSEUDO_ALLOCNO_CLASS): Define macro.
27820 2015-06-17 Richard Biener <rguenther@suse.de>
27822 PR tree-optimization/66251
27823 * tree-vect-stmts.c (vectorizable_store): Fix gathering of vectorized
27824 stmts for SLP strided stores.
27827 2015-05-22 Richard Biener <rguenther@suse.de>
27829 PR tree-optimization/66251
27830 * tree-vect-stmts.c (vectorizable_conversion): Properly
27831 set STMT_VINFO_VEC_STMT even for the SLP case.
27833 2015-05-26 Michael Matz <matz@suse.de>
27835 PR middle-end/66251
27836 * tree-vect-stmts.c (vect_create_vectorized_demotion_stmts): Always set
27837 STMT_VINFO_VEC_STMT, also with SLP.
27839 2015-06-16 Uros Bizjak <ubizjak@gmail.com>
27842 * config/i386/sse.md (*avx_addsubv4df3_1): New insn pattern.
27843 (*avx_addsubv4df3_1s): Ditto.
27844 (*sse3_addsubv2df3_1): Ditto.
27845 (*sse3_addsubv2df3_1s): Ditto.
27846 (*avx_addsubv8sf3_1): Ditto.
27847 (*avx_addsubv8sf3_1s): Ditto.
27848 (*sse3_addsubv4sf3_1): Ditto.
27849 (*sse3_addsubv4sf3_1s): Ditto.
27851 2015-06-16 Steve Ellcey <sellcey@imgtec.com>
27853 * config/mips/mti-linux.h (MIPS_SYSVERSION_SPEC): New.
27854 (SYSROOT_SUFFIX_SPEC): Update.
27855 (SYSROOT_HEADERS_SUFFIX_SPEC): New.
27856 (STARTFILE_PREFIX_SPEC): Update.
27857 * config/mips/t-mti-linux (MULTILIB_EXCEPTIONS): Remove.
27858 (MULTILIB_REQUIRED): New.
27859 (MULTILIB_OSDIRNAMES): New.
27860 * config/mips/t-img-linux (MULTILIB_EXCEPTIONS): Remove.
27861 (MULTILIB_REQUIRED): New.
27862 (MULTILIB_OSDIRNAMES): New.
27864 2015-06-16 Matthew Wahab <matthew.wahab@arm.com>
27866 * config/aarch64/aarch64-arches.def: Add "armv8.1-a".
27867 * config/aarch64/aarch64-options-extensions.def: Update "fP",
27868 "simd" and "crypto". Add "lse", "pan", "lor" and "rdma".
27869 * config/aarch64/aarch64.h (AARCH64_FL_LSE): New.
27870 (AARCH64_FL_PAN): New.
27871 (AARCH64_FL_LOR): New.
27872 (AARCH64_FL_RDMA): New.
27873 (AARCH64_FL_FOR_ARCH8_1): New.
27874 * doc/invoke.texi (AArch64 Options): Add "armv8.1-a" to
27875 -march. Add "lse", "pan", "lor", "rdma" to feature modifiers.
27877 2015-06-16 Martin Liska <mliska@suse.cz>
27879 * bitmap.c (dump_bitmap_statistics): Fix GNU coding style.
27880 * hash-table.c (void dump_hash_table_loc_statistics): Add missing
27883 2015-06-16 Richard Biener <rguenther@suse.de>
27885 * tree-vect-stmts.c (vectorizable_store): Adjust.
27886 (vectorizable_load): Likewise.
27887 * tree-vect-data-refs.c (vect_create_addr_base_for_vector_ref):
27889 (vect_create_data_ref_ptr): Likewise.
27890 (bump_vector_ptr): Adjust.
27892 2015-06-16 Richard Biener <rguenther@suse.de>
27894 * tree-vect-stmts.c (vectorizable_load): Properly start loads
27895 with the first element if this is grouped loads.
27897 2015-06-16 James Greenhalgh <james.greenhalgh@arm.com>
27899 * config/arm/arm-protos.h (struct tune_params): Rename
27900 log_op_non_sc to log_op_non_short_circuit, and rename enum
27901 values to expand SC to SHORT_CIRCUIT.
27902 * config/arm/arm.c (arm_slowmul_tune): Expand LOG_OP_NON_SC
27903 to LOG_OP_NON_SHORT_CIRCUIT.
27904 (arm_fastmul_tune):Likewise
27905 (arm_strongarm_tune): Likewise.
27906 (arm_xscale_tune): Likewise.
27907 (arm_9e_tune): Likewise.
27908 (arm_marvell_pj4_tune): Likewise.
27909 (arm_v6t2_tune): Likewise.
27910 (arm_cortex_tune): Likewise.
27911 (arm_cortex_a8_tune): Likewise.
27912 (arm_cortex_a7_tune): Likewise.
27913 (arm_cortex_a15_tune): Likewise.
27914 (arm_cortex_a53_tune): Likewise.
27915 (arm_cortex_a57_tune): Likewise.
27916 (arm_xgene1_tune): Likewise.
27917 (arm_cortex_a5_tune): Likewise.
27918 (arm_cortex_a9_tune): Likewise.
27919 (arm_cortex_a12_tune): Likewise.
27920 (arm_v7m_tune): Likewise.
27921 (arm_cortex_m7_tune): Likewise.
27922 (arm_v6m_tune): Likewise.
27923 (arm_fa726te_tune): Likewise.
27925 2015-06-15 David Edelsohn <dje.gcc@gmail.com>
27927 * altivec.md: Delete UNSPEC_VMLADDUHM.
27928 (mulv4si3_p8): New pattern.
27929 (mulv4si3): Use it for POWER8.
27930 (mulv8hi3): Use vmladduhm with zero addend.
27931 (altivec_vmladduhm): Descriptive RTL.
27933 2015-06-15 Jim Wilson <jim.wilson@linaro.org>
27935 * config/aarch64/aarch64.md (mov<mode>_aarch64): Change alternative 2
27936 to use neon_move instead of mov_imm.
27937 (movdi_aarch64): Change alternative 14 to use neon_move not fmov.
27938 (movtf_aarch64): Change alternative 4 to use neon_move_q not fconstd.
27940 * config/aarch64/aarch64.c (aarch64_valid_floating_const): Move
27941 aarch64_float_const_zero_rtx_p check before TFmode check.
27942 * config/aarch64/aarch64.md (movtf): Don't call force_reg if op1 is
27944 (movtf_aarch64): Separate ?rY alternative into two. Adjust assembly
27945 code and attributes to match. Change condition from register_operand
27946 to aarch64_reg_or_fp_zero for op1. Change type for ldp from
27947 neon_load1_2reg to load2. Change type for stp from neon_store1_2reg
27950 2015-06-15 Aldy Hernandez <aldyh@redhat.com>
27953 * dwarf2out.c (gen_subprogram_die): Do not check a parent's tag if
27954 there is no parent.
27956 2015-06-14 Shiva Chen <shiva0217@gmail.com>
27958 * aarch64.c (aarch64_simd_lane_bounds): Change %ld to %wd for
27959 HOST_WIDE_INT parameter.
27961 2015-06-14 Jan Hubicka <hubicka@ucw.cz>
27964 * lto-streamer-out.c (hash_tree): Do not hash TYPE_NO_FORCE_BLK.
27965 * tree-streamer-out.c (pack_ts_type_common_value_fields): Do not stream
27967 * tree-streamer-in.c (unpack_ts_type_common_value_fields): Likewise.
27969 2015-06-14 Richard Sandiford <richard.sandiford@arm.com>
27971 * rtl.h (classify_insn): Declare.
27972 * emit-rtl.c (classify_insn): Move to...
27973 * rtl.c: ...here and add generator support.
27974 * gensupport.h (get_emit_function, needs_barrier_p): Declare.
27975 * gensupport.c (get_emit_function, needs_barrier_p): New functions.
27976 * genemit.c (gen_emit_seq): New function.
27977 (gen_expand, gen_split): Use it.
27979 2015-06-13 Patrick Palka <ppalka@gcc.gnu.org>
27981 * tree.c (make_vector_stat): Fix comment to state that the
27982 function returns a VECTOR_CST.
27984 2015-06-13 Richard Sandiford <richard.sandiford@arm.com>
27986 * gensupport.h (add_implicit_parallel): Declare.
27987 * genrecog.c (add_implicit_parallel): Move to...
27988 * gensupport.c (add_implicit_parallel): ...here.
27989 (process_one_cond_exec): Use it.
27990 * genemit.c (gen_insn): Likewise.
27992 2015-06-13 Iain Sandoe <iain@codesourcery.com>
27995 * passes.c (rest_of_decl_compilation): Do not register globals for
27996 early debug if they are declared in built-ins.
27998 2015-06-12 Aldy Hernandez <aldyh@redhat.com>
28000 * dwarf2out.c (check_die): Protect with ENABLE_CHECKING.
28002 2015-06-12 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
28004 * ifcvt.c (noce_try_store_flag_constants): Use std::swap instead of
28006 (noce_try_cmove_arith): Likewise.
28007 (noce_get_alt_condition): Likewise.
28009 2015-06-12 Venkataramanan Kumar <venkataramanan.kumar@amd.com>
28011 * common/config/i386/i386-common.c
28012 (OPTION_MASK_ISA_MWAITX_SET): New.
28013 (ix86_handle_option): Handle mwaitx.
28014 * config.gcc (i[34567]86-*-*): Add mwaitxintrin.h,
28015 (x86_64-*-*): Likewise.
28016 * config/i386/mwaitxintrin.h: New header.
28017 * config/i386/cpuid.h (bit_MWAITX): Define.
28018 * config/i386/driver-i386.c (host_detect_local_cpu): Detect
28020 * config/i386/i386.opt (mwaitx): New.
28021 * config/i386/i386-builtin-types.def
28022 (VOID_FTYPE_UNSIGNED_ UNSIGNED_UNSIGNED): New function type.
28023 * config/i386/i386-c.c: Define __MWAITX__ if needed.
28024 * config/i386/i386.c (ix86_target_string): Define -mmwaitx option.
28026 (ix86_option_override_internal): Handle new option.
28027 (processor_alias_table): Added PTA_MWAITX.
28028 (ix86_valid_target_attribute_inner_p): Add OPT_mmwaitx.
28029 (ix86_builtins): Add IX86_BUILTIN_MWAITX, IX86_BUILTIN_MONITORX.
28030 (ix86_expand_builtin): Handle IX86_BUILTIN_MWAITX and
28031 IX86_BUILTIN_MONITORX built-ins.
28032 * config/i386/i386.h (TARGET_MWAITX): New.
28033 * config/i386/i386.md (unspecv): Add UNSPEC_MWAITX and
28035 (mwaitx): New pattern.
28036 (monitorx_<mode>): New pattern.
28037 * config/i386/x86intrin.h: Include mwaitxintrin.h.
28038 * doc/extend.texi: Document monitorx and mwaitx builtins.
28039 * doc/invoke.texi: Document -mmwaitx option.
28041 2015-06-12 Uros Bizjak <ubizjak@gmail.com>
28043 * emit-rtl.c (need_atomic_barrier_p): Mask model with
28044 MEMMODEL_BASE_MASK. Remove MEMMODEL_SYNC_* cases.
28046 2015-06-11 David Edelsohn <dje.gcc@gmail.com>
28048 * dbxout.c (xcoff_debug_hooks): Provide a function for
28049 register_main_translation_unit hook.
28051 2015-06-11 David Edelsohn <dje.gcc@gmail.com>
28053 * config/rs6000/rs6000.c (rs6000_pre_atomic_barrier): Remove SYNC
28054 variants cases from switch.
28055 (rs6000_post_atomic_barrier): Same.
28056 (rs6000_expand_atomic_compare_and_swap): Use memmodel_base.
28057 (rs6000_expand_atomic_exchange): Same.
28058 (rs6000_expand_atomic_op): Same.
28059 * config/rs6000/sync.md (mem_thread_fence): Use memodel_base. Remove
28060 SYNC variants cases from switch.
28061 (atomic_load): Same.
28062 (atomic_store): Same.
28064 2015-06-11 John David Anglin <danglin@gcc.gnu.org>
28066 * config/pa/pa.c (pa_output_global_address): Handle LABEL_REF plus
28067 CONST_INT for goto.
28069 2015-06-11 Aldy Hernandez <aldyh@redhat.com>
28072 * dwarf2out.c (check_die): Check for common duplicate attributes.
28073 (add_location_or_const_value_attribute): Do not add duplicate
28075 (gen_formal_parameter_die): Do not add DW_AT_artificial the second
28077 (gen_struct_or_union_type_die): Bail early if TREE_ASM_WRITTEN.
28078 (gen_type_die_with_usage): Call check_die.
28079 (dwarf2out_decl): Only call check_die() when ENABLE_CHECKING.
28081 2015-06-11 Jason Merrill <jason@redhat.com>
28083 * dwarf2out.c (prune_unused_types): Handle unused top-level limbo
28086 2015-06-11 Marek Polacek <polacek@redhat.com>
28088 * match.pd ((x & y) ^ (x | y)): Don't check for single_use.
28090 2015-06-11 Eric Botcazou <ebotcazou@adacore.com>
28093 * config/sparc/sparc.c (hard_regno_mode_classes): Add ??? comment.
28094 * config/sparc/sparc.md (zero_extendsidi2_insn_sp32): Use single order.
28095 (*addx_extend_sp32): Fix pasto.
28096 (*subx_extend): Rename into...
28097 (*subx_extend_sp32): ...this.
28098 (*adddi3_extend_sp32): Add earlyclobber.
28099 (*subdi3_insn_sp32): Likewise.
28100 (*subdi3_extend_sp32): Likewise.
28101 (*and_not_di_sp32): Likewise.
28102 (*or_not_di_sp32): Likewise.
28103 (*xor_not_di_sp32): Likewise.
28104 (*negdi2_sp32): Likewise.
28105 (*one_cmpldi2_sp32): Likewise.
28107 2015-06-11 Pierre-Marie de Rodat <derodat@adacore.com>
28109 * debug.h (struct gcc_debug_hooks): Add a
28110 register_main_translation_unit hook.
28111 * debug.c (do_nothing_debug_hooks): Provide a function for this
28113 * dbxout.c (dbx_debug_hooks): Likewise.
28114 * sdbout.c (sdb_debug_hooks): Likewise.
28115 * vmsdbgout.c (vmsdbg_debug_hooks): Likewise.
28116 * dwarf2out.c (main_translation_unit): New global variable.
28117 (dwarf2out_register_main_translation_unit): New function
28118 implementing the new hook.
28119 (dwarf2_debug_hooks): Assign
28120 dwarf2out_register_main_translation_unit to this new hook.
28121 (dwarf2out_init): Associate any main translation unit to
28124 2015-06-11 Marek Polacek <polacek@redhat.com>
28126 * match.pd ((x & y) ^ (x | y) -> x ^ y): New pattern.
28128 2015-06-11 Marek Polacek <polacek@redhat.com>
28130 * match.pd: Use single_use throughout.
28132 2015-06-11 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
28134 * config/arm/arm.c (arm_option_params_internal): When optimising
28135 for speed set max_insns_skipped when arm_restrict_it.
28137 2015-06-11 Christian Bruel <christian.bruel@st.com>
28140 * config/arm/arm-c.c (arm_cpu_cpp_builtins): Conditionally define
28142 (arm_cpu_builtins): New function.
28143 (arm_pragma_target_parse): Call arm_cpu_builtins.
28144 * config/arm/arm-protos.h (arm_cpu_builtins): Declare.
28145 (arm_register_target_pragmas): Likewise.
28146 * config/arm/arm.h (REGISTER_TARGET_PRAGMAS):
28147 Call arm_register_target_pragmas.
28148 * config/arm/arm-c.c (arm_register_target_pragmas): New function.
28149 (arm_pragma_target_parse): Likewise.
28151 2015-06-10 Kaz Kojima <kkojima@gcc.gnu.org>
28153 * config/sh/sh.md (tstsi_t): Add '?' modifier to 'r' alternative
28154 of the second operand.
28156 2015-06-10 Uros Bizjak <ubizjak@gmail.com>
28159 * config/i386/i386.c (ix86_expand_vector_set): Use gen_int_mode
28160 to prepare mask operand for AVX512 modes.
28162 2015-06-10 Michael Meissner <meissner@linux.vnet.ibm.com>
28165 * doc/md.texi (Machine Constraints): Document that on the PowerPC
28166 if you use a constraint that targets a VSX register, you must use
28167 %x<n> in the template.
28169 2015-06-10 Max Filippov <jcmvbkbc@gmail.com>
28171 * config/xtensa/xtensa.h (TARGET_DEBUG): New definition.
28172 * config/xtensa/xtensa.md (define_attr "type"): New type "trap".
28173 (define_insn "trap"): New definition.
28175 2015-06-10 Richard Biener <rguenther@suse.de>
28177 * tree-vect-slp.c (vect_attempt_slp_rearrange_stmts): Split
28179 (vect_supported_load_permutation_p): ... here. Handle
28180 supportable permutations in reductions.
28181 * tree-vect-stmts.c (vectorizable_load): Handle SLP permutations
28182 for vectorizing strided group loads.
28184 2015-06-10 Jakub Jelinek <jakub@redhat.com>
28187 * config/i386/i386.c (ix86_split_long_move): For collisions
28188 involving direct tls segment refs, move the UNSPEC_TP possibly
28189 wrapped in ZERO_EXTEND out of the address for lea, to each of
28192 2015-06-10 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
28194 * config/arm/sync.md (*memory_barrier): Use dmb ish instead of
28195 dmb sy. Adjust tabs.
28197 2015-06-10 Tom de Vries <tom@codesourcery.com>
28199 * omp-low.c (expand_omp_target): Remove duplicate declaration of node.
28201 2015-06-10 Martin Liska <mliska@suse.cz>
28204 * mem-stats-traits.h (enum mem_alloc_origin): Add _ORIGIN suffix for
28205 all enum values in mem_alloc_origin.
28206 * alloc-pool.c (dump_alloc_pool_statistics): Use newly changed enum
28208 * alloc-pool.h (pool_allocator::pool_allocator): Likewise.
28209 * bitmap.c (bitmap_register): Likewise.
28210 (dump_bitmap_statistics): Likewise.
28211 * ggc-common.c (dump_ggc_loc_statistics): Likewise.
28212 (ggc_record_overhead): Likewise.
28213 * hash-map.h: Likewise.
28214 * hash-set.h: Likewise.
28215 * hash-table.c (void dump_hash_table_loc_statistics): Likewise.
28216 * hash-table.h: Likewise.
28217 * vec.c (vec_prefix::register_overhead): Likewise.
28218 (vec_prefix::release_overhead): Likewise.
28219 (dump_vec_loc_statistics): Likewise.
28221 2015-06-09 Christian Bruel <christian.bruel@st.com>
28224 * config/arm/arm.opt (THUMB, arm_restrict_it, inline_asm_unified): Save.
28225 * config/arm/arm-protos.h (arm_valid_target_attribute_tree): Declare.
28226 (arm_reset_previous_fndecl, arm_change_mode_p): Likewise.
28227 * config/arm/arm.h (SWITCHABLE_TARGET): Define.
28228 * config/arm/arm.c (arm_reset_previous_fndecl): New functions.
28229 (arm_valid_target_attribute_tree, arm_change_mode_p): Likewise.
28230 (arm_valid_target_attribute_p): Likewise.
28231 (arm_set_current_function, arm_can_inline_p): Likewise.
28232 (arm_valid_target_attribute_rec): Likewise.
28233 (arm_previous_fndecl): New variable.
28234 (TARGET_SET_CURRENT_FUNCTION, TARGET_OPTION_VALID_ATTRIBUTE_P): Define.
28235 (TARGET_CAN_INLINE_P): Define.
28236 (arm_asm_trampoline_template): Emit mode.
28237 (arm_file_start): Don't set unified syntax.
28238 (arm_declare_function_name): Set unified syntax and mode.
28239 (arm_option_override): Init target_option_default_node.
28240 and target_option_current_node.
28241 * config/arm/arm.md (*call_value_symbol): Set mode when possible.
28242 (*call_symbol): Likewise.
28243 * doc/extend.texi: Document ARM/Thumb target attribute.
28244 * doc/invoke.texi: Likewise.
28246 2015-06-09 Alexandre Oliva <aoliva@redhat.com>
28249 2015-06-09 Alexandre Oliva <aoliva@redhat.com>
28250 PR rtl-optimization/64164
28251 * Makefile.in (OBJS): Drop tree-ssa-copyrename.o.
28252 * tree-ssa-copyrename.c: Removed.
28253 * opts.c (default_options_table): Drop -ftree-copyrename. Add
28254 -ftree-coalesce-vars.
28255 * passes.def: Drop all occurrences of pass_rename_ssa_copies.
28256 * common.opt (ftree-copyrename): Ignore.
28257 (ftree-coalesce-inlined-vars): Likewise.
28258 * doc/invoke.texi: Remove the ignored options above.
28259 * gimple-expr.h (gimple_can_coalesce_p): Move declaration
28260 * tree-ssa-coalesce.h: ... here.
28261 * tree-ssa-uncprop.c: Include tree-ssa-coalesce.h and other
28262 headers required by it.
28263 * gimple-expr.c (gimple_can_coalesce_p): Allow coalescing
28264 across variables when flag_tree_coalesce_vars. Check register
28265 use and promoted modes to allow coalescing. Moved to
28266 tree-ssa-coalesce.c.
28267 * tree-ssa-live.c (struct tree_int_map_hasher): Move along
28268 with its member functions to tree-ssa-coalesce.c.
28269 (var_map_base_init): Likewise. Renamed to
28270 compute_samebase_partition_bases.
28271 (partition_view_normal): Drop want_bases parameter.
28272 (partition_view_bitmap): Likewise.
28273 * tree-ssa-live.h: Adjust declarations.
28274 * tree-ssa-coalesce.c: Include explow.h.
28275 (build_ssa_conflict_graph): Process PARM_ and RESULT_DECLs's
28276 default defs at the entry point.
28277 (dump_part_var_map): New.
28278 (compute_optimized_partition_bases): New, called by...
28279 (coalesce_ssa_name): ... when flag_tree_coalesce_vars, instead
28280 of compute_samebase_partition_bases. Adjust.
28281 * alias.c (nonoverlapping_memrefs_p): Disregard gimple-regs.
28282 * cfgexpand.c (leader_merge): New.
28283 (get_rtl_for_parm_ssa_default_def): New.
28284 (set_rtl): Merge exprs and attrs, even for MEMs and non-SSA
28285 vars. Update DECL_RTL for PARM_DECLs and RESULT_DECLs too.
28286 (expand_one_stack_var_at): Handle anonymous SSA_NAMEs. Drop
28287 redundant MEM attr setting.
28288 (expand_one_stack_var_1): Handle anonymous SSA_NAMEs. Renamed
28290 (expand_one_stack_var): ... this. New wrapper to check and
28291 skip already expanded SSA partitions.
28292 (record_alignment_for_reg_var): New, factored out of...
28293 (expand_one_var): ... this.
28294 (expand_one_ssa_partition): New.
28295 (adjust_one_expanded_partition_var): New.
28296 (expand_one_register_var): Check and skip already expanded SSA
28298 (expand_used_vars): Don't create DECLs for anonymous SSA
28299 names. Expand all SSA partitions, then adjust all SSA names.
28300 (pass::execute): Replace the loops that set
28301 SA.partition_to_pseudo from partition leaders and cleared
28302 DECL_RTL for multi-location variables, and that which used to
28303 rename vars and set attrs, with one that clears DECL_RTL and
28304 checks that PARMs and RESULTs default_defs match DECL_RTL.
28305 * cfgexpand.h (get_rtl_for_parm_ssa_default_def): Declare.
28306 * emit-rtl.c (set_reg_attrs_for_parm): Handle NULL decl.
28307 * explow.c (promote_ssa_mode): New.
28308 * explow.h (promote_ssa_mode): Declare.
28309 * expr.c (expand_expr_real_1): Handle anonymous SSA_NAMEs.
28310 * function.c: Include cfgexpand.h.
28311 (use_register_for_decl): Handle SSA_NAMEs, anonymous or not.
28312 (use_register_for_parm_decl): Wrapper for the above to
28313 special-case the result_ptr.
28314 (rtl_for_parm): Ditto for get_rtl_for_parm_ssa_default_def.
28315 (maybe_reset_rtl_for_parm): Reset DECL_RTL of parms with
28316 multiple locations.
28317 (assign_parm_adjust_stack_rtl): Add all and parm arguments,
28318 for rtl_for_parm. For SSA-assigned parms, zero stack_parm.
28319 (assign_parm_setup_block): Prefer SSA-assigned location.
28320 (assign_parm_setup_reg): Likewise. Use entry_parm for equiv
28321 if stack_parm is NULL.
28322 (assign_parm_setup_stack): Prefer SSA-assigned location.
28323 (assign_parms): Maybe reset DECL_RTL of params. Adjust stack
28324 rtl before testing for pointer bounds. Special-case result_ptr.
28325 (expand_function_start): Maybe reset DECL_RTL of result.
28326 Prefer SSA-assigned location for result and static chain.
28327 Factor out DECL_RESULT and SET_DECL_RTL.
28328 * tree-outof-ssa.c (insert_value_copy_on_edge): Handle
28329 anonymous SSA names. Use promote_ssa_mode.
28330 (get_temp_reg): Likewise.
28331 (remove_ssa_form): Adjust.
28332 * var-tracking.c (dataflow_set_clear_at_call): Take call_insn
28333 and get its reg_usage for reg invalidation.
28334 (compute_bb_dataflow): Pass it insn.
28335 (emit_notes_in_bb): Likewise.
28336 * tree-ssa-loop-niter.c (loop_exits_before_overflow): Don't
28337 fail assert on conversion between unsigned types.
28339 2015-06-09 Tom de Vries <tom@codesourcery.com>
28341 PR tree-optimization/65460
28342 * omp-low.c (expand_omp_target): Set parallelized_function on
28343 cgraph_node for child_fn.
28345 2015-06-09 Tom de Vries <tom@codesourcery.com>
28347 * omp-low.c (finalize_task_copyfn, expand_omp_taskreg): Mark function
28348 parallelized_function before add_new_function.
28350 2015-06-09 Andrew MacLeod <amacleod@redhat.com>
28352 * gcc-plugin.h: Move decls to plugin.h and include it.
28353 * plugin.h: Relocate decls from gcc-plugin.h
28354 * ggc-page.c: Include required header files.
28355 * passes.c: Likewise.
28356 * cgraphunit.c: Likewise.
28358 2015-06-09 Tom de Vries <tom@codesourcery.com>
28360 * tree-stdarg.c (expand_ifn_va_arg_1): Handle location.
28362 2015-06-09 Jason Merrill <jason@redhat.com>
28365 * toplev.c (check_global_declaration): Don't warn about a clone.
28367 2015-06-09 Marek Polacek <polacek@redhat.com>
28369 PR tree-optimization/66299
28370 * match.pd ((CST1 << A) == CST2 -> A == ctz (CST2) - ctz (CST1)
28371 ((CST1 << A) != CST2 -> A != ctz (CST2) - ctz (CST1)): New
28374 2015-06-09 Richard Biener <rguenther@suse.de>
28376 * tree-vect-slp.c (vect_build_slp_tree_1): Remove bailout on gaps.
28377 (vect_analyze_slp_instance): Instead do not falsely drop
28380 2015-06-09 Richard Biener <rguenther@suse.de>
28382 PR middle-end/66423
28383 * match.pd: Handle A % (unsigned)(1 << B).
28385 2015-06-09 Aldy Hernandez <aldyh@redhat.com>
28387 * varasm.c (output_object_block_htab): Remove.
28388 (output_object_block_compare): New.
28389 (output_object_blocks): Sort named object_blocks before outputting
28392 2015-06-09 Richard Biener <rguenther@suse.de>
28394 PR tree-optimization/66419
28395 * tree-vect-slp.c (vect_supported_load_permutation_p): Properly
28396 consider GROUP_GAP when detecting a perfect subchain.
28398 2015-06-09 Nick Clifton <nickc@redhat.com>
28400 * config/rl78/rl78.c (rl78_select_section): When -mes0 is active
28401 place read only data in the .frodata section.
28403 2015-06-09 Shiva Chen <shiva0217@gmail.com>
28405 * sync.md (atomic_load<mode>): Add conditional code for lda/ldr
28406 (atomic_store<mode>): Likewise.
28408 2015-06-09 Richard Biener <rguenther@suse.de>
28410 * cfgloop.c (get_loop_body_in_bfs_order): Fix assert.
28412 2015-06-09 Richard Biener <rguenther@suse.de>
28414 PR middle-end/66413
28415 * tree-inline.c (insert_init_debug_bind): Unshare value.
28417 2015-06-09 Richard Biener <rguenther@suse.de>
28419 PR tree-optimization/66396
28420 * graphite-isl-ast-to-gimple.c (graphite_regenerate_ast_isl):
28421 Rename virtual operands.
28423 2015-06-09 Tom de Vries <tom@codesourcery.com>
28425 * gimple-iterator.h (gimple_seq_nondebug_singleton_p): Don't
28426 always return false.
28428 2015-06-09 Alexandre Oliva <aoliva@redhat.com>
28430 PR rtl-optimization/64164
28431 * Makefile.in (OBJS): Drop tree-ssa-copyrename.o.
28432 * tree-ssa-copyrename.c: Removed.
28433 * opts.c (default_options_table): Drop -ftree-copyrename. Add
28434 -ftree-coalesce-vars.
28435 * passes.def: Drop all occurrences of pass_rename_ssa_copies.
28436 * common.opt (ftree-copyrename): Ignore.
28437 (ftree-coalesce-inlined-vars): Likewise.
28438 * doc/invoke.texi: Remove the ignored options above.
28439 * gimple-expr.h (gimple_can_coalesce_p): Move declaration
28440 * tree-ssa-coalesce.h: ... here.
28441 * tree-ssa-uncprop.c: Include tree-ssa-coalesce.h and other
28442 headers required by it.
28443 * gimple-expr.c (gimple_can_coalesce_p): Allow coalescing
28444 across variables when flag_tree_coalesce_vars. Check register
28445 use and promoted modes to allow coalescing. Moved to
28446 tree-ssa-coalesce.c.
28447 * tree-ssa-live.c (struct tree_int_map_hasher): Move along
28448 with its member functions to tree-ssa-coalesce.c.
28449 (var_map_base_init): Likewise. Renamed to
28450 compute_samebase_partition_bases.
28451 (partition_view_normal): Drop want_bases parameter.
28452 (partition_view_bitmap): Likewise.
28453 * tree-ssa-live.h: Adjust declarations.
28454 * tree-ssa-coalesce.c: Include explow.h.
28455 (build_ssa_conflict_graph): Process PARM_ and RESULT_DECLs's
28456 default defs at the entry point.
28457 (dump_part_var_map): New.
28458 (compute_optimized_partition_bases): New, called by...
28459 (coalesce_ssa_name): ... when flag_tree_coalesce_vars, instead
28460 of compute_samebase_partition_bases. Adjust.
28461 * alias.c (nonoverlapping_memrefs_p): Disregard gimple-regs.
28462 * cfgexpand.c (leader_merge): New.
28463 (get_rtl_for_parm_ssa_default_def): New.
28464 (set_rtl): Merge exprs and attrs, even for MEMs and non-SSA
28465 vars. Update DECL_RTL for PARM_DECLs and RESULT_DECLs too.
28466 (expand_one_stack_var_at): Handle anonymous SSA_NAMEs. Drop
28467 redundant MEM attr setting.
28468 (expand_one_stack_var_1): Handle anonymous SSA_NAMEs. Renamed
28470 (expand_one_stack_var): ... this. New wrapper to check and
28471 skip already expanded SSA partitions.
28472 (record_alignment_for_reg_var): New, factored out of...
28473 (expand_one_var): ... this.
28474 (expand_one_ssa_partition): New.
28475 (adjust_one_expanded_partition_var): New.
28476 (expand_one_register_var): Check and skip already expanded SSA
28478 (expand_used_vars): Don't create DECLs for anonymous SSA
28479 names. Expand all SSA partitions, then adjust all SSA names.
28480 (pass::execute): Replace the loops that set
28481 SA.partition_to_pseudo from partition leaders and cleared
28482 DECL_RTL for multi-location variables, and that which used to
28483 rename vars and set attrs, with one that clears DECL_RTL and
28484 checks that PARMs and RESULTs default_defs match DECL_RTL.
28485 * cfgexpand.h (get_rtl_for_parm_ssa_default_def): Declare.
28486 * emit-rtl.c (set_reg_attrs_for_parm): Handle NULL decl.
28487 * explow.c (promote_ssa_mode): New.
28488 * explow.h (promote_ssa_mode): Declare.
28489 * expr.c (expand_expr_real_1): Handle anonymous SSA_NAMEs.
28490 * function.c: Include cfgexpand.h.
28491 (use_register_for_decl): Handle SSA_NAMEs, anonymous or not.
28492 (use_register_for_parm_decl): Wrapper for the above to
28493 special-case the result_ptr.
28494 (rtl_for_parm): Ditto for get_rtl_for_parm_ssa_default_def.
28495 (maybe_reset_rtl_for_parm): Reset DECL_RTL of parms with
28496 multiple locations.
28497 (assign_parm_adjust_stack_rtl): Add all and parm arguments,
28498 for rtl_for_parm. For SSA-assigned parms, zero stack_parm.
28499 (assign_parm_setup_block): Prefer SSA-assigned location.
28500 (assign_parm_setup_reg): Likewise. Use entry_parm for equiv
28501 if stack_parm is NULL.
28502 (assign_parm_setup_stack): Prefer SSA-assigned location.
28503 (assign_parms): Maybe reset DECL_RTL of params. Adjust stack
28504 rtl before testing for pointer bounds. Special-case result_ptr.
28505 (expand_function_start): Maybe reset DECL_RTL of result.
28506 Prefer SSA-assigned location for result and static chain.
28507 Factor out DECL_RESULT and SET_DECL_RTL.
28508 * tree-outof-ssa.c (insert_value_copy_on_edge): Handle
28509 anonymous SSA names. Use promote_ssa_mode.
28510 (get_temp_reg): Likewise.
28511 (remove_ssa_form): Adjust.
28512 * var-tracking.c (dataflow_set_clear_at_call): Take call_insn
28513 and get its reg_usage for reg invalidation.
28514 (compute_bb_dataflow): Pass it insn.
28515 (emit_notes_in_bb): Likewise.
28516 * tree-ssa-loop-niter.c (loop_exits_before_overflow): Don't
28517 fail assert on conversion between unsigned types.
28519 2015-06-09 Alexandre Oliva <aoliva@redhat.com>
28522 * tree-inline.c (reset_debug_binding): New.
28523 (reset_debug_bindings): Likewise.
28524 (expand_call_inline): Call it.
28526 2015-06-08 Jan Hubicka <hubicka@ucw.cz>
28528 * tree.c (gimple_canonical_types_compatible_p): Drop comparsion of
28531 2015-06-08 Jan Hubicka <hubicka@ucw.cz>
28533 * lto-streamer-out.c (lto_output_location): Stream
28534 reserved locations correctly.
28535 * lto-streamer-in.c (lto_output_location): Likewise.
28537 2015-06-08 Andrew MacLeod <amacleod@redhat.com>
28539 * coretypes.h: Include hash-table.h and hash-set.h for host files.
28540 * ggc.h: Don't include statistics.h>
28541 * hash-map.h: Remove all includes.
28542 * hash-set.h: Likewise.
28543 * hash-table.h: Add statistics.h, inchash.h and hash-map-traits.h to
28544 the include list. Remove <new>.
28545 * inchash.h: Remove all includes.
28546 * mem-stats.h: Likewise.
28547 * vec.h: No special processing for generators or ggc.
28548 * alias.c : Adjust include files.
28549 * alloc-pool.c : Likewise.
28550 * alloc-pool.h : Likewise.
28551 * asan.c : Likewise.
28552 * attribs.c : Likewise.
28553 * auto-inc-dec.c : Likewise.
28554 * auto-profile.c : Likewise.
28555 * bb-reorder.c : Likewise.
28556 * bitmap.c : Likewise.
28557 * bitmap.h : Likewise.
28558 * bt-load.c : Likewise.
28559 * builtins.c : Likewise.
28560 * caller-save.c : Likewise.
28561 * calls.c : Likewise.
28562 * ccmp.c : Likewise.
28563 * cfg.c : Likewise.
28564 * cfganal.c : Likewise.
28565 * cfgbuild.c : Likewise.
28566 * cfgcleanup.c : Likewise.
28567 * cfgexpand.c : Likewise.
28568 * cfghooks.c : Likewise.
28569 * cfgloop.c : Likewise.
28570 * cfgloop.h : Likewise.
28571 * cfgloopanal.c : Likewise.
28572 * cfgloopmanip.c : Likewise.
28573 * cfgrtl.c : Likewise.
28574 * cgraph.c : Likewise.
28575 * cgraphbuild.c : Likewise.
28576 * cgraphclones.c : Likewise.
28577 * cgraphunit.c : Likewise.
28578 * cilk-common.c : Likewise.
28579 * combine-stack-adj.c : Likewise.
28580 * combine.c : Likewise.
28581 * compare-elim.c : Likewise.
28582 * context.c : Likewise.
28583 * convert.c : Likewise.
28584 * coverage.c : Likewise.
28585 * cppbuiltin.c : Likewise.
28586 * cprop.c : Likewise.
28587 * cse.c : Likewise.
28588 * cselib.c : Likewise.
28589 * data-streamer-in.c : Likewise.
28590 * data-streamer-out.c : Likewise.
28591 * data-streamer.c : Likewise.
28592 * data-streamer.h : Likewise.
28593 * dbxout.c : Likewise.
28594 * dce.c : Likewise.
28595 * ddg.c : Likewise.
28596 * debug.c : Likewise.
28597 * df-core.c : Likewise.
28598 * df-problems.c : Likewise.
28599 * df-scan.c : Likewise.
28601 * dfp.c : Likewise.
28602 * dojump.c : Likewise.
28603 * dominance.c : Likewise.
28604 * domwalk.c : Likewise.
28605 * double-int.c : Likewise.
28606 * dse.c : Likewise.
28607 * dumpfile.c : Likewise.
28608 * dwarf2asm.c : Likewise.
28609 * dwarf2cfi.c : Likewise.
28610 * dwarf2out.c : Likewise.
28611 * emit-rtl.c : Likewise.
28612 * et-forest.c : Likewise.
28613 * except.c : Likewise.
28614 * except.h : Likewise.
28615 * explow.c : Likewise.
28616 * expmed.c : Likewise.
28617 * expr.c : Likewise.
28618 * final.c : Likewise.
28619 * fixed-value.c : Likewise.
28620 * fold-const.c : Likewise.
28621 * function.c : Likewise.
28622 * fwprop.c : Likewise.
28623 * gcc-plugin.h : Likewise.
28624 * gcc.c : Likewise.
28625 * gcse-common.c : Likewise.
28626 * gcse.c : Likewise.
28627 * genattrtab.c : Likewise.
28628 * genautomata.c : Likewise.
28629 * genconditions.c : Likewise.
28630 * genemit.c : Likewise.
28631 * generic-match-head.c : Likewise.
28632 * genextract.c : Likewise.
28633 * gengtype-state.c : Likewise.
28634 * gengtype.c : Likewise.
28635 * genhooks.c : Likewise.
28636 * genmatch.c : Likewise.
28637 * genmodes.c : Likewise.
28638 * genrecog.c : Likewise.
28639 * gensupport.c : Likewise.
28640 * ggc-common.c : Likewise.
28641 * ggc-internal.h : Likewise.
28642 * ggc-none.c : Likewise.
28643 * ggc-page.c : Likewise.
28644 * gimple-builder.c : Likewise.
28645 * gimple-expr.c : Likewise.
28646 * gimple-fold.c : Likewise.
28647 * gimple-iterator.c : Likewise.
28648 * gimple-low.c : Likewise.
28649 * gimple-match-head.c : Likewise.
28650 * gimple-pretty-print.c : Likewise.
28651 * gimple-ssa-isolate-paths.c : Likewise.
28652 * gimple-ssa-strength-reduction.c : Likewise.
28653 * gimple-ssa.h : Likewise.
28654 * gimple-streamer-in.c : Likewise.
28655 * gimple-streamer-out.c : Likewise.
28656 * gimple-streamer.h : Likewise.
28657 * gimple-walk.c : Likewise.
28658 * gimple.c : Likewise.
28659 * gimplify-me.c : Likewise.
28660 * gimplify.c : Likewise.
28661 * godump.c : Likewise.
28662 * graph.c : Likewise.
28663 * graphds.c : Likewise.
28664 * graphite-blocking.c : Likewise.
28665 * graphite-dependences.c : Likewise.
28666 * graphite-interchange.c : Likewise.
28667 * graphite-isl-ast-to-gimple.c : Likewise.
28668 * graphite-optimize-isl.c : Likewise.
28669 * graphite-poly.c : Likewise.
28670 * graphite-scop-detection.c : Likewise.
28671 * graphite-sese-to-poly.c : Likewise.
28672 * graphite.c : Likewise.
28673 * haifa-sched.c : Likewise.
28674 * hard-reg-set.h : Likewise.
28675 * hw-doloop.c : Likewise.
28676 * ifcvt.c : Likewise.
28677 * inchash.c : Likewise.
28678 * incpath.c : Likewise.
28679 * init-regs.c : Likewise.
28680 * input.c : Likewise.
28681 * internal-fn.c : Likewise.
28682 * ipa-chkp.c : Likewise.
28683 * ipa-comdats.c : Likewise.
28684 * ipa-cp.c : Likewise.
28685 * ipa-devirt.c : Likewise.
28686 * ipa-icf-gimple.c : Likewise.
28687 * ipa-icf.c : Likewise.
28688 * ipa-inline-analysis.c : Likewise.
28689 * ipa-inline-transform.c : Likewise.
28690 * ipa-inline.c : Likewise.
28691 * ipa-polymorphic-call.c : Likewise.
28692 * ipa-profile.c : Likewise.
28693 * ipa-prop.c : Likewise.
28694 * ipa-pure-const.c : Likewise.
28695 * ipa-ref.c : Likewise.
28696 * ipa-reference.c : Likewise.
28697 * ipa-split.c : Likewise.
28698 * ipa-utils.c : Likewise.
28699 * ipa-visibility.c : Likewise.
28700 * ipa.c : Likewise.
28701 * ira-build.c : Likewise.
28702 * ira-color.c : Likewise.
28703 * ira-conflicts.c : Likewise.
28704 * ira-costs.c : Likewise.
28705 * ira-emit.c : Likewise.
28706 * ira-lives.c : Likewise.
28707 * ira.c : Likewise.
28708 * jump.c : Likewise.
28709 * langhooks.c : Likewise.
28710 * lcm.c : Likewise.
28711 * libfuncs.h : Likewise.
28712 * lists.c : Likewise.
28713 * loop-doloop.c : Likewise.
28714 * loop-init.c : Likewise.
28715 * loop-invariant.c : Likewise.
28716 * loop-iv.c : Likewise.
28717 * loop-unroll.c : Likewise.
28718 * lower-subreg.c : Likewise.
28719 * lra-assigns.c : Likewise.
28720 * lra-coalesce.c : Likewise.
28721 * lra-constraints.c : Likewise.
28722 * lra-eliminations.c : Likewise.
28723 * lra-lives.c : Likewise.
28724 * lra-remat.c : Likewise.
28725 * lra-spills.c : Likewise.
28726 * lra.c : Likewise.
28727 * lto-cgraph.c : Likewise.
28728 * lto-compress.c : Likewise.
28729 * lto-opts.c : Likewise.
28730 * lto-section-in.c : Likewise.
28731 * lto-section-out.c : Likewise.
28732 * lto-streamer-in.c : Likewise.
28733 * lto-streamer-out.c : Likewise.
28734 * lto-streamer.c : Likewise.
28735 * lto-streamer.h : Likewise.
28736 * mcf.c : Likewise.
28737 * mode-switching.c : Likewise.
28738 * modulo-sched.c : Likewise.
28739 * omega.c : Likewise.
28740 * omp-low.c : Likewise.
28741 * optabs.c : Likewise.
28742 * opts-global.c : Likewise.
28743 * opts.h : Likewise.
28744 * passes.c : Likewise.
28745 * plugin.c : Likewise.
28746 * postreload-gcse.c : Likewise.
28747 * postreload.c : Likewise.
28748 * predict.c : Likewise.
28749 * print-rtl.c : Likewise.
28750 * print-tree.c : Likewise.
28751 * profile.c : Likewise.
28752 * read-md.c : Likewise.
28753 * read-md.h : Likewise.
28754 * read-rtl.c : Likewise.
28755 * real.c : Likewise.
28756 * realmpfr.c : Likewise.
28757 * recog.c : Likewise.
28758 * ree.c : Likewise.
28759 * reg-stack.c : Likewise.
28760 * regcprop.c : Likewise.
28761 * reginfo.c : Likewise.
28762 * regrename.c : Likewise.
28763 * regstat.c : Likewise.
28764 * reload.c : Likewise.
28765 * reload1.c : Likewise.
28766 * reorg.c : Likewise.
28767 * resource.c : Likewise.
28768 * rtl-chkp.c : Likewise.
28769 * rtl.c : Likewise.
28770 * rtl.h : Likewise.
28771 * rtlanal.c : Likewise.
28772 * rtlhash.c : Likewise.
28773 * rtlhash.h : Likewise.
28774 * rtlhooks.c : Likewise.
28775 * sanopt.c : Likewise.
28776 * sched-deps.c : Likewise.
28777 * sched-ebb.c : Likewise.
28778 * sched-rgn.c : Likewise.
28779 * sched-vis.c : Likewise.
28780 * sdbout.c : Likewise.
28781 * sel-sched-dump.c : Likewise.
28782 * sel-sched-ir.c : Likewise.
28783 * sel-sched-ir.h : Likewise.
28784 * sel-sched.c : Likewise.
28785 * sese.c : Likewise.
28786 * shrink-wrap.c : Likewise.
28787 * shrink-wrap.h : Likewise.
28788 * simplify-rtx.c : Likewise.
28789 * stack-ptr-mod.c : Likewise.
28790 * statistics.c : Likewise.
28791 * stmt.c : Likewise.
28792 * stor-layout.c : Likewise.
28793 * store-motion.c : Likewise.
28794 * stringpool.c : Likewise.
28795 * symtab.c : Likewise.
28796 * target-globals.c : Likewise.
28797 * targhooks.c : Likewise.
28798 * tlink.c : Likewise.
28799 * toplev.c : Likewise.
28800 * tracer.c : Likewise.
28801 * trans-mem.c : Likewise.
28802 * tree-affine.c : Likewise.
28803 * tree-affine.h : Likewise.
28804 * tree-browser.c : Likewise.
28805 * tree-call-cdce.c : Likewise.
28806 * tree-cfg.c : Likewise.
28807 * tree-cfgcleanup.c : Likewise.
28808 * tree-chkp-opt.c : Likewise.
28809 * tree-chkp.c : Likewise.
28810 * tree-chrec.c : Likewise.
28811 * tree-complex.c : Likewise.
28812 * tree-data-ref.c : Likewise.
28813 * tree-dfa.c : Likewise.
28814 * tree-diagnostic.c : Likewise.
28815 * tree-dump.c : Likewise.
28816 * tree-eh.c : Likewise.
28817 * tree-eh.h : Likewise.
28818 * tree-emutls.c : Likewise.
28819 * tree-hasher.h : Likewise.
28820 * tree-if-conv.c : Likewise.
28821 * tree-inline.c : Likewise.
28822 * tree-inline.h : Likewise.
28823 * tree-into-ssa.c : Likewise.
28824 * tree-iterator.c : Likewise.
28825 * tree-loop-distribution.c : Likewise.
28826 * tree-nested.c : Likewise.
28827 * tree-nrv.c : Likewise.
28828 * tree-object-size.c : Likewise.
28829 * tree-outof-ssa.c : Likewise.
28830 * tree-parloops.c : Likewise.
28831 * tree-phinodes.c : Likewise.
28832 * tree-predcom.c : Likewise.
28833 * tree-pretty-print.c : Likewise.
28834 * tree-profile.c : Likewise.
28835 * tree-scalar-evolution.c : Likewise.
28836 * tree-sra.c : Likewise.
28837 * tree-ssa-address.c : Likewise.
28838 * tree-ssa-alias.c : Likewise.
28839 * tree-ssa-ccp.c : Likewise.
28840 * tree-ssa-coalesce.c : Likewise.
28841 * tree-ssa-copy.c : Likewise.
28842 * tree-ssa-copyrename.c : Likewise.
28843 * tree-ssa-dce.c : Likewise.
28844 * tree-ssa-dom.c : Likewise.
28845 * tree-ssa-dse.c : Likewise.
28846 * tree-ssa-forwprop.c : Likewise.
28847 * tree-ssa-ifcombine.c : Likewise.
28848 * tree-ssa-live.c : Likewise.
28849 * tree-ssa-loop-ch.c : Likewise.
28850 * tree-ssa-loop-im.c : Likewise.
28851 * tree-ssa-loop-ivcanon.c : Likewise.
28852 * tree-ssa-loop-ivopts.c : Likewise.
28853 * tree-ssa-loop-manip.c : Likewise.
28854 * tree-ssa-loop-niter.c : Likewise.
28855 * tree-ssa-loop-prefetch.c : Likewise.
28856 * tree-ssa-loop-unswitch.c : Likewise.
28857 * tree-ssa-loop.c : Likewise.
28858 * tree-ssa-math-opts.c : Likewise.
28859 * tree-ssa-operands.c : Likewise.
28860 * tree-ssa-phiopt.c : Likewise.
28861 * tree-ssa-phiprop.c : Likewise.
28862 * tree-ssa-pre.c : Likewise.
28863 * tree-ssa-propagate.c : Likewise.
28864 * tree-ssa-reassoc.c : Likewise.
28865 * tree-ssa-sccvn.c : Likewise.
28866 * tree-ssa-scopedtables.c : Likewise.
28867 * tree-ssa-sink.c : Likewise.
28868 * tree-ssa-strlen.c : Likewise.
28869 * tree-ssa-structalias.c : Likewise.
28870 * tree-ssa-tail-merge.c : Likewise.
28871 * tree-ssa-ter.c : Likewise.
28872 * tree-ssa-threadedge.c : Likewise.
28873 * tree-ssa-threadupdate.c : Likewise.
28874 * tree-ssa-uncprop.c : Likewise.
28875 * tree-ssa-uninit.c : Likewise.
28876 * tree-ssa.c : Likewise.
28877 * tree-ssanames.c : Likewise.
28878 * tree-stdarg.c : Likewise.
28879 * tree-streamer-in.c : Likewise.
28880 * tree-streamer-out.c : Likewise.
28881 * tree-streamer.c : Likewise.
28882 * tree-streamer.h : Likewise.
28883 * tree-switch-conversion.c : Likewise.
28884 * tree-tailcall.c : Likewise.
28885 * tree-vect-data-refs.c : Likewise.
28886 * tree-vect-generic.c : Likewise.
28887 * tree-vect-loop-manip.c : Likewise.
28888 * tree-vect-loop.c : Likewise.
28889 * tree-vect-patterns.c : Likewise.
28890 * tree-vect-slp.c : Likewise.
28891 * tree-vect-stmts.c : Likewise.
28892 * tree-vectorizer.c : Likewise.
28893 * tree-vectorizer.h : Likewise.
28894 * tree-vrp.c : Likewise.
28895 * tree.c : Likewise.
28896 * tsan.c : Likewise.
28897 * ubsan.c : Likewise.
28898 * valtrack.c : Likewise.
28899 * valtrack.h : Likewise.
28900 * value-prof.c : Likewise.
28901 * var-tracking.c : Likewise.
28902 * varasm.c : Likewise.
28903 * varpool.c : Likewise.
28905 * vmsdbgout.c : Likewise.
28906 * vtable-verify.c : Likewise.
28907 * vtable-verify.h : Likewise.
28908 * web.c : Likewise.
28909 * wide-int.cc : Likewise.
28910 * xcoffout.c : Likewise.
28911 * config/aarch64/aarch64-builtins.c : Likewise.
28912 * config/aarch64/aarch64.c : Likewise.
28913 * config/aarch64/cortex-a57-fma-steering.c : Likewise.
28914 * config/alpha/alpha.c : Likewise.
28915 * config/arc/arc.c : Likewise.
28916 * config/arm/aarch-common.c : Likewise.
28917 * config/arm/arm-builtins.c : Likewise.
28918 * config/arm/arm-c.c : Likewise.
28919 * config/arm/arm.c : Likewise.
28920 * config/avr/avr-c.c : Likewise.
28921 * config/avr/avr-log.c : Likewise.
28922 * config/avr/avr.c : Likewise.
28923 * config/bfin/bfin.c : Likewise.
28924 * config/c6x/c6x.c : Likewise.
28925 * config/cr16/cr16.c : Likewise.
28926 * config/cris/cris.c : Likewise.
28927 * config/darwin-c.c : Likewise.
28928 * config/darwin.c : Likewise.
28929 * config/default-c.c : Likewise.
28930 * config/epiphany/epiphany.c : Likewise.
28931 * config/epiphany/mode-switch-use.c : Likewise.
28932 * config/epiphany/resolve-sw-modes.c : Likewise.
28933 * config/fr30/fr30.c : Likewise.
28934 * config/frv/frv.c : Likewise.
28935 * config/ft32/ft32.c : Likewise.
28936 * config/glibc-c.c : Likewise.
28937 * config/h8300/h8300.c : Likewise.
28938 * config/i386/i386-c.c : Likewise.
28939 * config/i386/i386.c : Likewise.
28940 * config/i386/msformat-c.c : Likewise.
28941 * config/i386/winnt-cxx.c : Likewise.
28942 * config/i386/winnt-stubs.c : Likewise.
28943 * config/i386/winnt.c : Likewise.
28944 * config/ia64/ia64-c.c : Likewise.
28945 * config/ia64/ia64.c : Likewise.
28946 * config/iq2000/iq2000.c : Likewise.
28947 * config/lm32/lm32.c : Likewise.
28948 * config/m32c/m32c-pragma.c : Likewise.
28949 * config/m32c/m32c.c : Likewise.
28950 * config/m32r/m32r.c : Likewise.
28951 * config/m68k/m68k.c : Likewise.
28952 * config/mcore/mcore.c : Likewise.
28953 * config/mep/mep-pragma.c : Likewise.
28954 * config/mep/mep.c : Likewise.
28955 * config/microblaze/microblaze-c.c : Likewise.
28956 * config/microblaze/microblaze.c : Likewise.
28957 * config/mips/mips.c : Likewise.
28958 * config/mmix/mmix.c : Likewise.
28959 * config/mn10300/mn10300.c : Likewise.
28960 * config/moxie/moxie.c : Likewise.
28961 * config/msp430/msp430-c.c : Likewise.
28962 * config/msp430/msp430.c : Likewise.
28963 * config/nds32/nds32-cost.c : Likewise.
28964 * config/nds32/nds32-fp-as-gp.c : Likewise.
28965 * config/nds32/nds32-intrinsic.c : Likewise.
28966 * config/nds32/nds32-isr.c : Likewise.
28967 * config/nds32/nds32-md-auxiliary.c : Likewise.
28968 * config/nds32/nds32-memory-manipulation.c : Likewise.
28969 * config/nds32/nds32-pipelines-auxiliary.c : Likewise.
28970 * config/nds32/nds32-predicates.c : Likewise.
28971 * config/nds32/nds32.c : Likewise.
28972 * config/nios2/nios2.c : Likewise.
28973 * config/nvptx/nvptx.c : Likewise.
28974 * config/pa/pa.c : Likewise.
28975 * config/pdp11/pdp11.c : Likewise.
28976 * config/rl78/rl78-c.c : Likewise.
28977 * config/rl78/rl78.c : Likewise.
28978 * config/rs6000/rs6000-c.c : Likewise.
28979 * config/rs6000/rs6000.c : Likewise.
28980 * config/rx/rx.c : Likewise.
28981 * config/s390/s390-c.c : Likewise.
28982 * config/s390/s390.c : Likewise.
28983 * config/sh/sh-c.c : Likewise.
28984 * config/sh/sh-mem.cc : Likewise.
28985 * config/sh/sh.c : Likewise.
28986 * config/sh/sh_optimize_sett_clrt.cc : Likewise.
28987 * config/sh/sh_treg_combine.cc : Likewise.
28988 * config/sol2-c.c : Likewise.
28989 * config/sol2-cxx.c : Likewise.
28990 * config/sol2-stubs.c : Likewise.
28991 * config/sol2.c : Likewise.
28992 * config/sparc/sparc-c.c : Likewise.
28993 * config/sparc/sparc.c : Likewise.
28994 * config/spu/spu-c.c : Likewise.
28995 * config/spu/spu.c : Likewise.
28996 * config/stormy16/stormy16.c : Likewise.
28997 * config/tilegx/mul-tables.c : Likewise.
28998 * config/tilegx/tilegx-c.c : Likewise.
28999 * config/tilegx/tilegx.c : Likewise.
29000 * config/tilepro/mul-tables.c : Likewise.
29001 * config/tilepro/tilepro-c.c : Likewise.
29002 * config/tilepro/tilepro.c : Likewise.
29003 * config/v850/v850-c.c : Likewise.
29004 * config/v850/v850.c : Likewise.
29005 * config/vax/vax.c : Likewise.
29006 * config/visium/visium.c : Likewise.
29007 * config/vms/vms-c.c : Likewise.
29008 * config/vms/vms.c : Likewise.
29009 * config/vxworks.c : Likewise.
29010 * config/winnt-c.c : Likewise.
29011 * config/xtensa/xtensa.c : Likewise.
29013 2015-06-08 Jan Hubicka <hubicka@ucw.cz>
29016 * ipa-utils.h (warn_types_mismatch): Update prototype.
29017 * ipa-devirt.c (odr_types_equivalent_p): Add loc1/loc2
29019 (type_mismatch_p): New function.
29020 (warn_types_mismatch): Reorg to work better on non-C++ types.
29021 (odr_types_equivalent_p): Add loc1/loc2 parameters.
29022 (add_type_duplicate): Update.
29024 2015-06-08 Tom de Vries <tom@codesourcery.com>
29026 PR rtl-optimization/66444
29027 * postreload.c (reload_combine): Use get_call_reg_set_usage instead of
29030 2015-06-08 Richard Biener <rguenther@suse.de>
29032 PR tree-optimization/66422
29033 * tree-ssa-loop-ivcanon.c (remove_exits_and_undefined_stmts): Split
29034 block after inserted gcc_unreachable.
29036 2015-06-08 Nick Clifton <nickc@redhat.com>
29038 * config/rx/rx.c (rx_function_value): Do not promote vector types.
29039 (rx_promote_function_mode): Likewise.
29040 * config/rx/rx.h (LIBCALL_VALUE): Likewise.
29042 2015-06-08 Jakub Jelinek <jakub@redhat.com>
29044 * genattrtab.c (insn_alternatives): Change type from int *
29046 (check_attr_test): Shift ((uint64_t) 1) instead of 1 up.
29047 (get_attr_value): Change type of num_alt to uint64_t.
29048 (compute_alternative_mask): Change return type from
29049 int to uint64_t, shift ((uint64_t) 1) instead of 1 up.
29050 (make_alternative_compare, mk_attr_alt): Change argument type
29051 from int to uint64_t.
29052 (simplify_test_exp): Change type of i from int to uint64_t.
29053 Shift ((uint64_t) 1) instead of 1 up.
29054 (main): Adjust oballocvec first argument from int to uint64_t.
29055 Shift ((uint64_t) 1) instead of 1 up.
29057 2015-06-08 Jan Kratochvil <jan.kratochvil@redhat.com>
29060 * gdbhooks.py: Import sys.
29061 (intptr): New function. Replace int(...) by intptr(...).
29063 2015-06-08 Richard Biener <rguenther@suse.de>
29065 * tree-vect-stmts.c (vectorizable_load): Compute the pointer
29066 adjustment for gaps at the end of a SLP load group properly.
29067 * tree-vect-slp.c (vect_supported_load_permutation_p): Allow
29068 all permutations we can generate.
29069 (vect_transform_slp_perm_load): Use the correct group-size.
29071 2015-06-08 Marc Glisse <marc.glisse@inria.fr>
29073 * genmatch.c (expr::gen_transform): For conditions, guess the type
29074 from the second operand.
29076 2015-06-08 Tom de Vries <tom@codesourcery.com>
29078 PR tree-optimization/66442
29079 * gimple-iterator.h (gimple_seq_nondebug_singleton_p): Add function.
29080 * tree-parloops.c (try_transform_to_exit_first_loop_alt): Return false
29081 if the loop latch is not a singleton. Use
29082 gimple_seq_nondebug_singleton_p instead of gimple_seq_singleton_p.
29084 2015-06-08 Marek Polacek <polacek@redhat.com>
29087 * toplev.c (check_global_declaration): Don't warn about artificial
29090 2015-06-08 Tom de Vries <tom@codesourcery.com>
29092 PR tree-optimization/66436
29093 * cgraphunit.c (cgraph_node::analyze): Don't dump function to gimple
29095 * gimplify.c: Add tree-dump.h include.
29096 (gimplify_function_tree): Dump function to gimple dump file.
29097 * stor-layout.c (finalize_size_functions): Don't dump function to gimple
29100 2015-06-08 Tom de Vries <tom@codesourcery.com>
29102 PR tree-optimization/66435
29103 * cgraphunit.c (cgraph_node::add_new_function): Dump message on new
29106 2015-06-06 Jan Hubicka <hubicka@ucw.cz>
29108 * alias.c (get_alias_set): Be ready for TYPE_CANONICAL
29109 of ptr_type_node to not be ptr_to_node.
29110 * tree.c (gimple_types_compatible_p): Do not match TREE_CODE of
29111 TREE_TYPE of pointers.
29112 * gimple-expr.c (useless_type_conversion): Reorder the check for
29113 function pointers and TYPE_CANONICAL.
29115 2015-06-06 John David Anglin <danglin@gcc.gnu.org>
29118 * config/pa/pa-hpux10.h (TARGET_OS_CPP_BUILTINS): Rearrange builtin
29119 defines. Define _LARGEFILE_SOURCE and _LARGEFILE64_SOURCE for c++.
29120 Define _XOPEN_UNIX and _XOPEN_SOURCE_EXTENDED for c++ if unix95 or
29122 * config/pa/pa-hpux11.h (TARGET_OS_CPP_BUILTINS): Likewise.
29123 Define _INCLUDE_STDC_SOURCE_PRE_199901, _INCLUDE_STDC_SOURCE_199901,
29124 _INCLUDE_XOPEN_SOURCE_PRE_500, _INCLUDE_XOPEN_SOURCE_520,
29125 _INCLUDE_XOPEN_SOURCE_PRE_600 and _INCLUDE_XOPEN_SOURCE_600 for c++
29126 and non iso if unix2003.
29128 2015-06-06 Aldy Hernandez <aldyh@redhat.com>
29130 * dwarf2out.c (gen_lexical_block_die): Initialize stmt_die.
29132 2015-06-06 Richard Sandiford <richard.sandiford@arm.com>
29134 * emit-rtl.c, expr.c, gcse.c, optabs.c, optabs.h, print-rtl.c,
29135 rtl.h, bb-reorder.c, builtins.c, calls.c, cfgbuild.c, cfgexpand.c,
29136 cfgrtl.c, cilk-common.c, config/i386/i386.md, cse.c, dwarf2cfi.c,
29137 except.c, final.c, function.c, gcse-common.c, genemit.c,
29138 haifa-sched.c, ifcvt.c, jump.c, loop-invariant.c, loop-iv.c,
29139 lra-constraints.c, lra.c, reload1.c, resource.c, rtlanal.c,
29140 sched-deps.c, sched-ebb.c, sel-sched-ir.c, sel-sched.c,
29141 shrink-wrap.c, stmt.c, store-motion.c: Replace rtx base types with
29144 2015-06-06 Mikhail Maltsev <maltsevm@gmail.com>
29146 * combine.c (combine_split_insns): Remove cast.
29147 * config/bfin/bfin.c (hwloop_fail): Add cast in try_split call.
29148 * config/sh/sh.c (sh_try_split_insn_simple): Remove cast.
29149 * config/sh/sh_treg_combine.cc (sh_treg_combine::execute): Add cast.
29150 * emit-rtl.c (try_split): Promote type of trial argument to rtx_insn.
29151 * genemit.c (gen_split): Change return type of generated functions to
29153 * genrecog.c (get_failure_return): Use NULL instead of NULL_RTX.
29154 (print_subroutine_start): Promote rtx to rtx_insn in gen_split_* and
29155 gen_peephole2_* functions.
29156 (print_subroutine, main): Likewise.
29157 * recog.c (peephole2_optimize): Remove cast.
29158 (peep2_next_insn): Promote return type to rtx_insn.
29159 * recog.h (peep2_next_insn): Fix prototype.
29160 * rtl.h (try_split, split_insns): Likewise.
29162 2015-06-06 DJ Delorie <dj@redhat.com>
29164 * config/msp430/msp430.c (msp430_asm_integer): Support addition
29165 and subtraction too.
29167 2015-06-05 Kaz Kojima <kkojima@gcc.gnu.org>
29170 * config/sh/constraints.md (Sid, Ssd): New memory constraints.
29171 * config/sh/sh.md (*mov<mode>): Use Sid and Ssd alternatives
29172 instead of Snd. Disparage Sid/z alternative with '^'.
29174 2015-06-05 Aldy Hernandez <aldyh@redhat.com>
29176 * dwarf2out.c: Remove deferred_locations*.
29177 (dwarf2_debug_hooks): Add early_finish hook.
29178 Remove global_decl hook.
29179 Add early_global_decl and late_global_decl hook.
29180 New global early_dwarf.
29181 New structure set_early_dwarf.
29182 (output_die): Indicate whether a DIE was generated early
29183 when generating assembly with -dA.
29184 (struct limbo_die_struct): Document created_for field.
29185 Remove file_table_last_lookup.
29186 (remove_AT): Return TRUE if successful.
29187 (remove_child_TAG): Clear die_parent.
29188 (reparent_child): New function abstracted from...
29189 (splice_child_die): ...here.
29190 (new_die): ICE if a DIE ends up in limbo too late.
29192 (defer_location): Remove.
29193 (add_subscript_info): Reuse DW_TAG_subrange_type if available.
29194 (fill_variable_array_bounds): New.
29195 (decl_start_label): Call fill_variable_array_bounds.
29196 (gen_formal_parameter_die): Rewrite to reuse previously generated
29198 (gen_subprogram_die): Same.
29199 (gen_variable_die): Same.
29200 (gen_const_die): Same.
29201 (gen_label_die): Same.
29202 (gen_lexical_block_die): Same.
29203 (decl_will_get_specification_p): New.
29204 (local_function_static): New.
29205 (gen_struct_or_union_type_die): Fill in variable-length fields.
29206 (gen_typedef_die): Fill in variable-length typedefs.
29207 (gen_tagged_type_die): Gracefully return on error_mark_node.
29208 Handle re-entrancy.
29209 (gen_type_die_with_usage): Handle variable-length types.
29210 Remove duplicate code for ARRAY_TYPE case.
29211 (process_scope_var): Only process imported modules during early
29213 (dwarf2out_early_global_decl): New.
29214 (dwarf2out_late_global_decl): Rename from dwarf2out_global_decl.
29215 (dwarf2out_type_decl): Set early_dwarf while calling
29217 (dwarf2out_decl): Verify that we did not recreate a previously
29219 Do not return on DECL_EXTERNALs in VAR_DECLs.
29220 Abstract some code to local_function_static.
29221 (lookup_filename): Remove use of file_table_last_lookup.
29222 Gracefully exit on missing file_name.
29223 (dwarf2out_finish): Verify limbo list.
29224 Remove deferred_locations_list use.
29225 Move deferred_asm_name and limbo flushing to...
29226 (dwarf2out_early_finish): ...here. New.
29227 (dwarf2out_c_finalize): Remove set of deferred_location_list,
29228 deferred_asm_name, and file_table_last_lookup.
29229 * cgraph.h (referred_to_p): Add default argument.
29230 * cgraphunit.c (referred_to_p): Add and handle include_self
29232 (analyze_functions): Add first_time argument.
29233 Call check_global_declaration for all symbols.
29234 Call late_global_decl for nodes for moribund nodes.
29235 (finalize_compilation_unit): Add new argument to
29237 Call early_global_decl for functions.
29238 Call early_finish debug hook.
29239 * dbxout.c (dbxout_early_global_decl): New.
29240 (dbxout_late_global_decl): New. Adapted from dbxout_global_decl.
29241 (dbx_debug_hooks): Add new hooks.
29242 (xcoff_debug_hooks): Same.
29243 * debug.c (do_nothing_debug_hooks): Add early_finish field.
29244 Add early and late debug hooks.
29245 Remove global_decl hook.
29246 * debug.h (struct gcc_debug_hooks): Add early_finish,
29247 early_global_decl, and late_global_decl fields.
29248 Remove global_decl field.
29249 Document gcc_debug_hooks.
29250 * gengtype.c (output_typename): Remove.
29251 * godump.c (go_early_global_decl): New.
29252 (go_late_global_decl): New.
29253 (go_global_decl): Remove.
29254 (dump_go_spec_init): Remove global_decl. Add
29255 {early,late}_global_decl.
29256 * langhooks-def.h (LANG_HOOKS_WRITE_GLOBALS): Remove.
29257 (LANG_HOOKS_POST_COMPILATION_PARSING_CLEANUPS): New.
29258 * langhooks.c (lhd_warn_unused_global_decl): Adjust comment.
29259 (write_global_declarations): Remove.
29260 (global_decl_processing): New.
29261 * langhooks.h (struct lang_hooks_for_decls): Remove
29262 final_write_globals field.
29263 Add post_compilation_parsing_cleanups field.
29264 * passes.c (rest_of_decl_compilation): Call early_global_decl.
29265 * sdbout.c: Add early and late_global_decl hooks. Remove
29266 sdbout_global_decl hook.
29267 Add early_finish field for sdb_debug_hooks.
29268 (sdbout_global_decl): Remove.
29269 (sdbout_early_global_decl): New.
29270 (sdbout_late_global_decl): New.
29271 * timevar.def (TV_PHASE_LATE_PARSING_CLEANUPS): New.
29272 * toplev.c (check_global_declaration): Rename from
29273 check_global_declaration_1.
29274 Adapt to use symtab infrastructure.
29275 (check_global_declarations): Remove.
29276 (emit_debug_global_declarations): Remove.
29277 (compile_file): Remove call to final_write_globals langhook.
29278 Run the actual compilation process.
29279 Perform any post compilation parser cleanups.
29280 Generate late debug info.
29281 * toplev.h (check_global_declaration): New.
29282 (check_global_declaration_1): Remove.
29283 (check_global_declarations): Remove.
29284 (write_global_declarations): Remove.
29285 (emit_debug_global_declarations): Remove.
29286 (global_decl_processing): New.
29287 * tree-core.h (struct tree_block): Add DIE field.
29288 * tree.h (BLOCK_DIE): New.
29289 * vmsdbgout.c (vmsdbgout_global_decl): Remove function and its use
29291 (vmsdbgout_early_global_decl): New.
29292 (vmsdbgout_late_global_decl): New.
29293 Add early_finish debug hook field to vmsdbg_debug_hooks.
29294 Remove vmsdbgout_decl to vmsdbgout_function_decl.
29295 Add early and late_global_decl debug hooks.
29297 2015-06-05 Julian Brown <julian@codesourcery.com>
29298 Sandra Loosemore <sandra@codesourcery.com>
29300 * config/print-sysroot-suffix.sh: Handle MULTILIB_REUSE settings.
29301 * config/t-sysroot-suffix (sysroot-suffix.h): Pass MULTILIB_REUSE
29302 to print-sysroot-suffix.sh script.
29304 2015-06-05 Tom de Vries <tom@codesourcery.com>
29306 merge from gomp4 branch:
29307 2015-05-28 Tom de Vries <tom@codesourcery.com>
29309 PR tree-optimization/65443
29310 * tree-parloops.c (replace_imm_uses, replace_uses_in_bb_by)
29311 (replace_uses_in_bbs_by, transform_to_exit_first_loop_alt)
29312 (try_transform_to_exit_first_loop_alt): New function.
29313 (transform_to_exit_first_loop): Use
29314 try_transform_to_exit_first_loop_alt.
29316 2015-06-05 James Greenhalgh <james.greenhalgh@arm.com>
29318 * builtins.c (expand_builtin_atomic_compare_exchange): Call
29319 emit_cmp_and_jump_insns with the mode of target.
29321 2015-06-05 Venkataramanan Kumar <venkataramanan.kumar@amd.com>
29323 * config/i386/sse.md (sse3_mwait): Swap the operand constriants.
29325 2015-06-04 DJ Delorie <dj@redhat.com>
29327 * config/msp430/msp430.md (movsi_s): New. Special case for
29328 storing a 20-bit symbol into a 32-bit register.
29329 * config/msp430/msp430.c (msp430_subreg): Add support for it.
29330 * config/msp430/predicates.md (msp430_symbol_operand): New.
29332 2015-06-04 Sriraman Tallam <tmsriram@google.com>
29334 * calls.c (prepare_call_address): Check for noplt
29336 * config/i386/i386.c (ix86_expand_call): Check
29337 for noplt attribute.
29338 (ix86_nopic_noplt_attribute_p): New function.
29339 (ix86_output_call_insn): Output indirect call for non-pic
29341 * doc/extend.texi (noplt): Document new attribute.
29342 * doc/invoke.texi: Document new attribute.
29344 2015-06-04 Andrew MacLeod <amacleod@redhat.com>
29346 * coretypes.h: Include machmode.h, signop.h, wide-int.h, double-int.h,
29347 real.h, and fixed-value.h when included in host source files.
29348 * double-int.h: Remove redundant #includes listed above.
29349 * fixed-value.h: Likewise.
29350 * real.h: Likewise.
29351 * wide-int.h: Likewise.
29352 * inchash.h: Likewise.
29353 * rtl.h: Add some include files When included from a generator file.
29354 * target.h: Remove wide-int.h and insn-modes.h from the include list.
29355 * internal-fn.h: Don't include coretypes.h.
29356 * alias.c: Adjust includes for restructured coretypes.h.
29357 * asan.c: Likewise.
29358 * attribs.c: Likewise.
29359 * auto-inc-dec.c: Likewise.
29360 * auto-profile.c: Likewise.
29361 * bb-reorder.c: Likewise.
29362 * bt-load.c: Likewise.
29363 * builtins.c: Likewise.
29364 * caller-save.c: Likewise.
29365 * calls.c: Likewise.
29366 * ccmp.c: Likewise.
29368 * cfganal.c: Likewise.
29369 * cfgbuild.c: Likewise.
29370 * cfgcleanup.c: Likewise.
29371 * cfgexpand.c: Likewise.
29372 * cfghooks.c: Likewise.
29373 * cfgloop.c: Likewise.
29374 * cfgloop.h: Likewise.
29375 * cfgloopanal.c: Likewise.
29376 * cfgloopmanip.c: Likewise.
29377 * cfgrtl.c: Likewise.
29378 * cgraph.c: Likewise.
29379 * cgraphbuild.c: Likewise.
29380 * cgraphclones.c: Likewise.
29381 * cgraphunit.c: Likewise.
29382 * cilk-common.c: Likewise.
29383 * combine-stack-adj.c: Likewise.
29384 * combine.c: Likewise.
29385 * compare-elim.c: Likewise.
29386 * convert.c: Likewise.
29387 * coverage.c: Likewise.
29388 * cppbuiltin.c: Likewise.
29389 * cprop.c: Likewise.
29391 * cselib.c: Likewise.
29392 * data-streamer-in.c: Likewise.
29393 * data-streamer-out.c: Likewise.
29394 * data-streamer.c: Likewise.
29395 * dbxout.c: Likewise.
29398 * debug.c: Likewise.
29399 * df-core.c: Likewise.
29400 * df-problems.c: Likewise.
29401 * df-scan.c: Likewise.
29404 * dojump.c: Likewise.
29405 * dominance.c: Likewise.
29406 * domwalk.c: Likewise.
29407 * double-int.c: Likewise.
29409 * dumpfile.c: Likewise.
29410 * dwarf2asm.c: Likewise.
29411 * dwarf2cfi.c: Likewise.
29412 * dwarf2out.c: Likewise.
29413 * dwarf2out.h: Likewise.
29414 * emit-rtl.c: Likewise.
29415 * et-forest.c: Likewise.
29416 * except.c: Likewise.
29417 * explow.c: Likewise.
29418 * expmed.c: Likewise.
29419 * expr.c: Likewise.
29420 * final.c: Likewise.
29421 * fixed-value.c: Likewise.
29422 * fold-const.c: Likewise.
29423 * function.c: Likewise.
29424 * fwprop.c: Likewise.
29425 * gcc-plugin.h: Likewise.
29426 * gcse.c: Likewise.
29427 * generic-match-head.c: Likewise.
29428 * ggc-page.c: Likewise.
29429 * gimple-builder.c: Likewise.
29430 * gimple-expr.c: Likewise.
29431 * gimple-fold.c: Likewise.
29432 * gimple-iterator.c: Likewise.
29433 * gimple-low.c: Likewise.
29434 * gimple-match-head.c: Likewise.
29435 * gimple-pretty-print.c: Likewise.
29436 * gimple-ssa-isolate-paths.c: Likewise.
29437 * gimple-ssa-strength-reduction.c: Likewise.
29438 * gimple-streamer-in.c: Likewise.
29439 * gimple-streamer-out.c: Likewise.
29440 * gimple-streamer.h: Likewise.
29441 * gimple-walk.c: Likewise.
29442 * gimple.c: Likewise.
29443 * gimplify-me.c: Likewise.
29444 * gimplify.c: Likewise.
29445 * godump.c: Likewise.
29446 * graph.c: Likewise.
29447 * graphite-blocking.c: Likewise.
29448 * graphite-dependences.c: Likewise.
29449 * graphite-interchange.c: Likewise.
29450 * graphite-isl-ast-to-gimple.c: Likewise.
29451 * graphite-optimize-isl.c: Likewise.
29452 * graphite-poly.c: Likewise.
29453 * graphite-scop-detection.c: Likewise.
29454 * graphite-sese-to-poly.c: Likewise.
29455 * graphite.c: Likewise.
29456 * haifa-sched.c: Likewise.
29457 * hooks.h: Likewise.
29458 * hw-doloop.c: Likewise.
29459 * ifcvt.c: Likewise.
29460 * incpath.c: Likewise.
29461 * init-regs.c: Likewise.
29462 * internal-fn.c: Likewise.
29463 * ipa-chkp.c: Likewise.
29464 * ipa-comdats.c: Likewise.
29465 * ipa-cp.c: Likewise.
29466 * ipa-devirt.c: Likewise.
29467 * ipa-icf-gimple.c: Likewise.
29468 * ipa-icf.c: Likewise.
29469 * ipa-inline-analysis.c: Likewise.
29470 * ipa-inline-transform.c: Likewise.
29471 * ipa-inline.c: Likewise.
29472 * ipa-polymorphic-call.c: Likewise.
29473 * ipa-profile.c: Likewise.
29474 * ipa-prop.c: Likewise.
29475 * ipa-pure-const.c: Likewise.
29476 * ipa-ref.c: Likewise.
29477 * ipa-reference.c: Likewise.
29478 * ipa-split.c: Likewise.
29479 * ipa-utils.c: Likewise.
29480 * ipa-visibility.c: Likewise.
29482 * ira-build.c: Likewise.
29483 * ira-color.c: Likewise.
29484 * ira-conflicts.c: Likewise.
29485 * ira-costs.c: Likewise.
29486 * ira-emit.c: Likewise.
29487 * ira-lives.c: Likewise.
29489 * jump.c: Likewise.
29490 * langhooks.c: Likewise.
29492 * loop-doloop.c: Likewise.
29493 * loop-init.c: Likewise.
29494 * loop-invariant.c: Likewise.
29495 * loop-iv.c: Likewise.
29496 * loop-unroll.c: Likewise.
29497 * lower-subreg.c: Likewise.
29498 * lra-assigns.c: Likewise.
29499 * lra-coalesce.c: Likewise.
29500 * lra-constraints.c: Likewise.
29501 * lra-eliminations.c: Likewise.
29502 * lra-lives.c: Likewise.
29503 * lra-remat.c: Likewise.
29504 * lra-spills.c: Likewise.
29506 * lto-cgraph.c: Likewise.
29507 * lto-compress.c: Likewise.
29508 * lto-opts.c: Likewise.
29509 * lto-section-in.c: Likewise.
29510 * lto-section-out.c: Likewise.
29511 * lto-streamer-in.c: Likewise.
29512 * lto-streamer-out.c: Likewise.
29513 * lto-streamer.c: Likewise.
29515 * mode-switching.c: Likewise.
29516 * modulo-sched.c: Likewise.
29517 * omega.c: Likewise.
29518 * omp-low.c: Likewise.
29519 * optabs.c: Likewise.
29520 * opts-global.c: Likewise.
29521 * passes.c: Likewise.
29522 * plugin.c: Likewise.
29523 * postreload-gcse.c: Likewise.
29524 * postreload.c: Likewise.
29525 * predict.c: Likewise.
29526 * print-rtl.c: Likewise.
29527 * print-tree.c: Likewise.
29528 * profile.c: Likewise.
29529 * real.c: Likewise.
29530 * realmpfr.c: Likewise.
29531 * realmpfr.h: Likewise.
29532 * recog.c: Likewise.
29534 * reg-stack.c: Likewise.
29535 * regcprop.c: Likewise.
29536 * reginfo.c: Likewise.
29537 * regrename.c: Likewise.
29538 * regs.h: Likewise.
29539 * regstat.c: Likewise.
29540 * reload.c: Likewise.
29541 * reload1.c: Likewise.
29542 * reorg.c: Likewise.
29543 * resource.c: Likewise.
29544 * rtl-chkp.c: Likewise.
29545 * rtlanal.c: Likewise.
29546 * rtlhooks.c: Likewise.
29547 * sanopt.c: Likewise.
29548 * sched-deps.c: Likewise.
29549 * sched-ebb.c: Likewise.
29550 * sched-rgn.c: Likewise.
29551 * sched-vis.c: Likewise.
29552 * sdbout.c: Likewise.
29553 * sel-sched-dump.c: Likewise.
29554 * sel-sched-ir.c: Likewise.
29555 * sel-sched.c: Likewise.
29556 * sese.c: Likewise.
29557 * shrink-wrap.c: Likewise.
29558 * shrink-wrap.h: Likewise.
29559 * simplify-rtx.c: Likewise.
29560 * stack-ptr-mod.c: Likewise.
29561 * statistics.c: Likewise.
29562 * stmt.c: Likewise.
29563 * stor-layout.c: Likewise.
29564 * store-motion.c: Likewise.
29565 * stringpool.c: Likewise.
29566 * symtab.c: Likewise.
29567 * target-globals.c: Likewise.
29568 * targhooks.c: Likewise.
29569 * toplev.c: Likewise.
29570 * tracer.c: Likewise.
29571 * trans-mem.c: Likewise.
29572 * tree-affine.c: Likewise.
29573 * tree-affine.h: Likewise.
29574 * tree-browser.c: Likewise.
29575 * tree-call-cdce.c: Likewise.
29576 * tree-cfg.c: Likewise.
29577 * tree-cfgcleanup.c: Likewise.
29578 * tree-chkp-opt.c: Likewise.
29579 * tree-chkp.c: Likewise.
29580 * tree-chrec.c: Likewise.
29581 * tree-complex.c: Likewise.
29582 * tree-data-ref.c: Likewise.
29583 * tree-dfa.c: Likewise.
29584 * tree-diagnostic.c: Likewise.
29585 * tree-dump.c: Likewise.
29586 * tree-eh.c: Likewise.
29587 * tree-emutls.c: Likewise.
29588 * tree-if-conv.c: Likewise.
29589 * tree-inline.c: Likewise.
29590 * tree-into-ssa.c: Likewise.
29591 * tree-iterator.c: Likewise.
29592 * tree-loop-distribution.c: Likewise.
29593 * tree-nested.c: Likewise.
29594 * tree-nrv.c: Likewise.
29595 * tree-object-size.c: Likewise.
29596 * tree-outof-ssa.c: Likewise.
29597 * tree-parloops.c: Likewise.
29598 * tree-phinodes.c: Likewise.
29599 * tree-predcom.c: Likewise.
29600 * tree-pretty-print.c: Likewise.
29601 * tree-pretty-print.h: Likewise.
29602 * tree-profile.c: Likewise.
29603 * tree-scalar-evolution.c: Likewise.
29604 * tree-sra.c: Likewise.
29605 * tree-ssa-address.c: Likewise.
29606 * tree-ssa-alias.c: Likewise.
29607 * tree-ssa-ccp.c: Likewise.
29608 * tree-ssa-coalesce.c: Likewise.
29609 * tree-ssa-copy.c: Likewise.
29610 * tree-ssa-copyrename.c: Likewise.
29611 * tree-ssa-dce.c: Likewise.
29612 * tree-ssa-dom.c: Likewise.
29613 * tree-ssa-dse.c: Likewise.
29614 * tree-ssa-forwprop.c: Likewise.
29615 * tree-ssa-ifcombine.c: Likewise.
29616 * tree-ssa-live.c: Likewise.
29617 * tree-ssa-loop-ch.c: Likewise.
29618 * tree-ssa-loop-im.c: Likewise.
29619 * tree-ssa-loop-ivcanon.c: Likewise.
29620 * tree-ssa-loop-ivopts.c: Likewise.
29621 * tree-ssa-loop-manip.c: Likewise.
29622 * tree-ssa-loop-niter.c: Likewise.
29623 * tree-ssa-loop-prefetch.c: Likewise.
29624 * tree-ssa-loop-unswitch.c: Likewise.
29625 * tree-ssa-loop.c: Likewise.
29626 * tree-ssa-loop.h: Likewise.
29627 * tree-ssa-math-opts.c: Likewise.
29628 * tree-ssa-operands.c: Likewise.
29629 * tree-ssa-phiopt.c: Likewise.
29630 * tree-ssa-phiprop.c: Likewise.
29631 * tree-ssa-pre.c: Likewise.
29632 * tree-ssa-propagate.c: Likewise.
29633 * tree-ssa-reassoc.c: Likewise.
29634 * tree-ssa-sccvn.c: Likewise.
29635 * tree-ssa-scopedtables.c: Likewise.
29636 * tree-ssa-sink.c: Likewise.
29637 * tree-ssa-strlen.c: Likewise.
29638 * tree-ssa-structalias.c: Likewise.
29639 * tree-ssa-tail-merge.c: Likewise.
29640 * tree-ssa-ter.c: Likewise.
29641 * tree-ssa-threadedge.c: Likewise.
29642 * tree-ssa-threadupdate.c: Likewise.
29643 * tree-ssa-uncprop.c: Likewise.
29644 * tree-ssa-uninit.c: Likewise.
29645 * tree-ssa.c: Likewise.
29646 * tree-ssanames.c: Likewise.
29647 * tree-stdarg.c: Likewise.
29648 * tree-streamer-in.c: Likewise.
29649 * tree-streamer-out.c: Likewise.
29650 * tree-streamer.c: Likewise.
29651 * tree-switch-conversion.c: Likewise.
29652 * tree-tailcall.c: Likewise.
29653 * tree-vect-data-refs.c: Likewise.
29654 * tree-vect-generic.c: Likewise.
29655 * tree-vect-loop-manip.c: Likewise.
29656 * tree-vect-loop.c: Likewise.
29657 * tree-vect-patterns.c: Likewise.
29658 * tree-vect-slp.c: Likewise.
29659 * tree-vect-stmts.c: Likewise.
29660 * tree-vectorizer.c: Likewise.
29661 * tree-vrp.c: Likewise.
29662 * tree.c: Likewise.
29663 * tsan.c: Likewise.
29664 * ubsan.c: Likewise.
29665 * valtrack.c: Likewise.
29666 * value-prof.c: Likewise.
29667 * var-tracking.c: Likewise.
29668 * varasm.c: Likewise.
29669 * varpool.c: Likewise.
29670 * vmsdbgout.c: Likewise.
29671 * vtable-verify.c: Likewise.
29673 * wide-int-print.cc: Likewise.
29674 * wide-int-print.h: Likewise.
29675 * wide-int.cc: Likewise.
29676 * xcoffout.c: Likewise.
29677 * config/aarch64/aarch64-builtins.c: Likewise.
29678 * config/aarch64/aarch64.c: Likewise.
29679 * config/aarch64/cortex-a57-fma-steering.c: Likewise.
29680 * config/alpha/alpha.c: Likewise.
29681 * config/arc/arc.c: Likewise.
29682 * config/arm/aarch-common.c: Likewise.
29683 * config/arm/arm-builtins.c: Likewise.
29684 * config/arm/arm-c.c: Likewise.
29685 * config/arm/arm.c: Likewise.
29686 * config/avr/avr-c.c: Likewise.
29687 * config/avr/avr-log.c: Likewise.
29688 * config/avr/avr.c: Likewise.
29689 * config/bfin/bfin.c: Likewise.
29690 * config/c6x/c6x.c: Likewise.
29691 * config/cr16/cr16.c: Likewise.
29692 * config/cris/cris.c: Likewise.
29693 * config/darwin-c.c: Likewise.
29694 * config/darwin.c: Likewise.
29695 * config/default-c.c: Likewise.
29696 * config/epiphany/epiphany.c: Likewise.
29697 * config/epiphany/mode-switch-use.c: Likewise.
29698 * config/epiphany/resolve-sw-modes.c: Likewise.
29699 * config/fr30/fr30.c: Likewise.
29700 * config/frv/frv.c: Likewise.
29701 * config/ft32/ft32.c: Likewise.
29702 * config/glibc-c.c: Likewise.
29703 * config/h8300/h8300.c: Likewise.
29704 * config/i386/i386-c.c: Likewise.
29705 * config/i386/i386.c: Likewise.
29706 * config/i386/msformat-c.c: Likewise.
29707 * config/i386/winnt-cxx.c: Likewise.
29708 * config/i386/winnt-stubs.c: Likewise.
29709 * config/i386/winnt.c: Likewise.
29710 * config/ia64/ia64-c.c: Likewise.
29711 * config/ia64/ia64.c: Likewise.
29712 * config/iq2000/iq2000.c: Likewise.
29713 * config/lm32/lm32.c: Likewise.
29714 * config/m32c/m32c-pragma.c: Likewise.
29715 * config/m32c/m32c.c: Likewise.
29716 * config/m32r/m32r.c: Likewise.
29717 * config/m68k/m68k.c: Likewise.
29718 * config/mcore/mcore.c: Likewise.
29719 * config/mep/mep-pragma.c: Likewise.
29720 * config/mep/mep.c: Likewise.
29721 * config/microblaze/microblaze-c.c: Likewise.
29722 * config/microblaze/microblaze.c: Likewise.
29723 * config/mips/mips.c: Likewise.
29724 * config/mmix/mmix.c: Likewise.
29725 * config/mn10300/mn10300.c: Likewise.
29726 * config/moxie/moxie.c: Likewise.
29727 * config/msp430/msp430-c.c: Likewise.
29728 * config/msp430/msp430.c: Likewise.
29729 * config/nds32/nds32-cost.c: Likewise.
29730 * config/nds32/nds32-fp-as-gp.c: Likewise.
29731 * config/nds32/nds32-intrinsic.c: Likewise.
29732 * config/nds32/nds32-isr.c: Likewise.
29733 * config/nds32/nds32-md-auxiliary.c: Likewise.
29734 * config/nds32/nds32-memory-manipulation.c: Likewise.
29735 * config/nds32/nds32-pipelines-auxiliary.c: Likewise.
29736 * config/nds32/nds32-predicates.c: Likewise.
29737 * config/nds32/nds32.c: Likewise.
29738 * config/nios2/nios2.c: Likewise.
29739 * config/nvptx/nvptx.c: Likewise.
29740 * config/pa/pa.c: Likewise.
29741 * config/pdp11/pdp11.c: Likewise.
29742 * config/rl78/rl78-c.c: Likewise.
29743 * config/rl78/rl78.c: Likewise.
29744 * config/rs6000/rs6000-c.c: Likewise.
29745 * config/rs6000/rs6000.c: Likewise.
29746 * config/rx/rx.c: Likewise.
29747 * config/s390/s390-c.c: Likewise.
29748 * config/s390/s390.c: Likewise.
29749 * config/sh/sh-c.c: Likewise.
29750 * config/sh/sh-mem.cc: Likewise.
29751 * config/sh/sh.c: Likewise.
29752 * config/sh/sh_optimize_sett_clrt.cc: Likewise.
29753 * config/sh/sh_treg_combine.cc: Likewise.
29754 * config/sol2-c.c: Likewise.
29755 * config/sol2-cxx.c: Likewise.
29756 * config/sol2-stubs.c: Likewise.
29757 * config/sol2.c: Likewise.
29758 * config/sparc/sparc-c.c: Likewise.
29759 * config/sparc/sparc.c: Likewise.
29760 * config/spu/spu-c.c: Likewise.
29761 * config/spu/spu.c: Likewise.
29762 * config/stormy16/stormy16.c: Likewise.
29763 * config/tilegx/mul-tables.c: Likewise.
29764 * config/tilegx/tilegx-c.c: Likewise.
29765 * config/tilegx/tilegx.c: Likewise.
29766 * config/tilepro/mul-tables.c: Likewise.
29767 * config/tilepro/tilepro-c.c: Likewise.
29768 * config/tilepro/tilepro.c: Likewise.
29769 * config/v850/v850-c.c: Likewise.
29770 * config/v850/v850.c: Likewise.
29771 * config/vax/vax.c: Likewise.
29772 * config/visium/visium.c: Likewise.
29773 * config/vms/vms-c.c: Likewise.
29774 * config/vms/vms.c: Likewise.
29775 * config/vxworks.c: Likewise.
29776 * config/winnt-c.c: Likewise.
29777 * config/xtensa/xtensa.c: Likewise.
29778 * common/config/bfin/bfin-common.c: Likewise.
29780 2015-06-04 Jan Hubicka <hubicka@ucw.cz>
29782 * tree.h (tree_code_for_canonical_type_merging): New function.
29783 * tree.c (gimple_canonical_types_compatible_p): Use
29784 tree_code_for_canonical_type_merging..
29786 2015-06-04 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
29790 * doc/tm.texi: Regenerate.
29791 * doc/tm.texi.in (TARGET_RELAXED_ORDERING): Delete.
29792 * target.def (TARGET_RELAXED_ORDERING): Likewise.
29793 * config/alpha/alpha.c (TARGET_RELAXED_ORDERING): Likewise.
29794 * config/ia64/ia64.c (TARGET_RELAXED_ORDERING): Likewise.
29795 * config/rs6000/rs6000.c (TARGET_RELAXED_ORDERING): Likewise.
29796 * config/sparc/linux.h (SPARC_RELAXED_ORDERING): Likewise.
29797 * config/sparc/linux64.h (SPARC_RELAXED_ORDERING): Likewise.
29798 * config/sparc/sparc.c (TARGET_RELAXED_ORDERING): Likewise.
29799 * config/sparc/sparc.h (SPARC_RELAXED_ORDERING): Likewise.
29801 2015-06-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
29803 * config/aarch64/aarch64.c (aarch64_override_options): Unconditionally
29804 register fma steering pass.
29805 * config/aarch64/cortex-a57-fma-steering.c (gate): Add gating on
29806 AARCH64_TUNE_FMA_STEERING.
29808 2015-06-03 Jan Hubicka <hubicka@ucw.cz>
29810 * tree.c (verify_type_variant): Verify that type and variant is
29812 (gimple_canonical_types_compatible_p): Look for main variants.
29814 2015-06-03 Michael Meissner <meissner@linux.vnet.ibm.com>
29816 * config.gcc (powerpc*-*-*): Add support for a new configure
29817 option --with-advance-toolchain=<xxx> which overrides using the
29818 default header files, libraries and dynamic linker.
29820 * config/rs6000/linux64.h (SUBSUBTARGET_EXTRA_SPECS): Add new
29821 specs to support the configure --with-advance-toolchain=<xxx>
29823 (INCLUDE_EXTRA_SPEC): Likewise.
29824 (LINK_OS_EXTRA_SPEC32): Likewise.
29825 (LINK_OK_EXTRA_SPEC64): Likewise.
29826 (LINK_OS_NEW_DTAGS_SPEC): Likewise.
29827 (DYNAMIC_LINKER_PREFIX): Likewise.
29828 (CPP_OS_DEFAULT_SPEC): Use the new specs for providing advance
29830 (GLIBC_DYNAMIC_LINKER32): Likewise.
29831 (GLIBC_DYNAMIC_LINKER64): Likewise.
29832 (LINK_OS_LINUX_SPEC32): Likewise.
29833 (LINK_OS_LINUX_SPEC64): Likewise.
29835 * doc/install.texi (--enable-advance-toolchain=<xx>): Document new
29836 configuration option.
29838 2015-06-03 Uros Bizjak <ubizjak@gmail.com>
29841 * config/i386/i386.c (ix86_function_arg_regno): Use ix86_cfun_abi
29842 to determine current function ABI.
29843 (ix86_function_value_regno_p): Ditto.
29845 2015-06-03 Martin Liska <mliska@suse.cz>
29847 * alloc-pool.h (struct pool_usage): Correct GNU coding style.
29848 * bitmap.h (struct bitmap_usage): Likewise.
29849 * ggc-common.c (struct ggc_usage): Likewise.
29850 * mem-stats.h (struct mem_location): Likewise.
29851 (struct mem_usage): Likewise.
29852 * vec.c (struct vec_usage): Likewise.
29854 2015-06-03 Benigno B. Junior <bbj@gentoo.org>
29856 * config/netbsd-elf.h (NETBSD_LINK_SPEC_ELF): Turn -symbolic into
29859 2015-06-02 Andres Tiraboschi <andres.tiraboschi@tallertechnologies.com>
29861 * doc/plugins.texi (enum plugin_event): New event.
29862 * plugin.c (register_callback): Handle PLUGIN_START_PARSE_FUNCTION
29863 and PLUGIN_FINISH_FUNCTION.
29864 * plugin.def (PLUGIN_START_PARSE_FUNCTION): Add plugin event
29865 (PLUGIN_FINISH_PARSE_FUNCTION): Likewise.
29867 2015-06-03 Richard Biener <rguenther@suse.de>
29869 * tree-vect-data-refs.c (vect_analyze_group_access): Properly
29870 compute GROUP_GAP for the first element.
29871 * tree-vect-slp.c (vect_build_slp_tree_1): Remove restriction
29874 2015-06-03 Nick Clifton <nickc@redhat.com>
29876 * config/rl78/rl78-real.md: Add peepholes to avoid a register
29877 copy when calling a function.
29878 * config/rl78/rl78.c (need_to_save): Do not push the frame
29879 pointer in an interrupt handler prologue if it is never used.
29881 2015-06-03 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
29883 * ifcvt (end_ifcvt_sequence): Fix typo in comment above.
29885 2015-06-03 Ilya Enkovich <ilya.enkovich@intel.com>
29887 * ipa-chkp.c (chkp_maybe_create_clone): Create alias
29888 reference when cloning alias node.
29890 2015-06-03 Martin Liska <mliska@suse.cz>
29892 * alloc-pool.h (struct pool_usage): Correct space padding.
29893 * ggc-page.c (ggc_print_statistics): Align columns in a report.
29894 * mem-stats.h (struct mem_usage): Add argument to print_dash_line.
29895 * tree.c (dump_tree_statistics): Align columns in a report.
29897 2015-06-03 Martin Liska <mliska@suse.cz>
29899 * alloc-pool.c (allocate_pool_descriptor): Remove.
29900 (struct pool_output_info): Likewise.
29901 (print_alloc_pool_statistics): Likewise.
29902 (dump_alloc_pool_statistics): Likewise.
29903 * alloc-pool.h (struct pool_usage): New struct.
29904 (pool_allocator::initialize): Change usage of memory statistics
29905 to a new interface.
29906 (pool_allocator::release): Likewise.
29907 (pool_allocator::allocate): Likewise.
29908 (pool_allocator::remove): Likewise.
29909 * mem-stats-traits.h (enum mem_alloc_origin): Add new enum value
29910 for a pool allocator.
29911 * mem-stats.h (struct mem_location): Add new ctor.
29912 (struct mem_usage): Add counter for number of
29914 (mem_alloc_description::register_descriptor): New overload of
29915 * mem-stats.h (mem_location::to_string): New function.
29916 * bitmap.h (struct bitmap_usage): Use this new function.
29917 * ggc-common.c (struct ggc_usage): Likewise.
29920 2015-06-03 Richard Sandiford <richard.sandiford@arm.com>
29922 * defaults.h (SWITCHABLE_TARGET, TARGET_SUPPORTS_WIDE_INT): Move out
29923 of GCC_INSN_FLAGS_H block.
29925 2015-06-03 Andrew Bennett <andrew.bennett@imgtec.com>
29927 * explow.c (plus_constant): Update check after force_const_mem call
29928 to see if the value returned is not a NULL_RTX.
29930 2015-06-03 Ilya Enkovich <ilya.enkovich@intel.com>
29932 * ipa.c (symbol_table::remove_unreachable_nodes): Don't
29933 remove instumentation thunks calling reachable functions.
29934 * lto-cgraph.c (output_refs): Always output IPA_REF_CHKP.
29935 * lto/lto-partition.c (privatize_symbol_name_1): New.
29936 (privatize_symbol_name): Privatize both decl and orig_decl
29937 names for instrumented functions.
29938 * cgraph.c (cgraph_node::verify_node): Add transparent
29939 alias chain check for instrumented node.
29941 2015-06-03 Marek Polacek <polacek@redhat.com>
29945 * tree.c (attribute_value_equal): Handle attribute format.
29946 (cmp_attrib_identifiers): Factor out of lookup_ident_attribute.
29948 2015-06-03 Richard Biener <rguenther@suse.de>
29950 PR tree-optimization/63916
29951 * tree-ssa-sccvn.c (vn_reference_maybe_forwprop_address):
29952 Forward-propagate non-invariant addresses by splicing their
29953 reference ops if the result isn't going to be used by PRE.
29954 (vn_reference_lookup_3): Remove pointless assert.
29956 2015-06-03 Richard Biener <rguenther@suse.de>
29958 PR tree-optimization/66375
29959 * tree-scalar-evolution.c (follow_ssa_edge_binary): First
29960 add to the evolution before following SSA edges.
29962 2015-06-03 Bin Cheng <bin.cheng@arm.com>
29964 * tree-ssa-loop-ivopts.c (dump_iv): New parameter.
29965 (dump_use, dump_cand, find_induction_variables): Pass new argument
29967 (record_use): Preserve the ssa name information in IV.
29969 2015-06-03 Richard Sandiford <richard.sandiford@arm.com>
29971 * genpreds.c (mark_mode_tests): Mark all MATCH_CODEs as
29973 (add_mode_tests): Don't add mode tests if the predicate only
29974 accepts scalar constant integers. Otherwise, allow the mode
29975 of "op" to be VOIDmode if the predicate does accept such integers.
29977 2015-06-02 Jim Wilson <jim.wilson@linaro.org>
29980 * config/aarch64/aarch64.c (aarch64_function_value_regno_p): Change
29981 !TARGET_GENERAL_REGS_ONLY to TARGET_FLOAT.
29982 (aarch64_secondary_reload): Likewise
29983 (aarch64_expand_builtin_va_start): Change TARGET_GENERAL_REGS_ONLY
29985 (aarch64_gimplify_va_arg_expr, aarch64_setup_incoming_varargs):
29988 2015-06-03 Kugan Vivekanandarajah <kuganv@linaro.org>
29989 Zhenqiang Chen <zhenqiang.chen@linaro.org>
29992 * cprop.c (try_replace_reg): Check cost of constants before propagating.
29994 2015-06-02 Michael Meissner <meissner@linux.vnet.ibm.com>
29996 * config/rs6000/rs6000-modes.def (IFmode): Define IFmode to
29997 provide access to the IBM extended double floating point mode if
29998 long double is IEEE 128-bit floating point.
29999 (KFmode): Define KFmode to provide access to IEEE 128-bit floating
30000 point if long double is the IBM extended double type.
30002 * config/rs6000/rs6000.opt (-mfloat128-none): New switches to
30003 enable adding IEEE 128-bit floating point support.
30004 (-mfloat128-software): Likewise.
30005 (-mfloat128-sw): Likewise.
30007 * config/rs6000/rs6000.c (rs6000_hard_regno_mode_ok): Do not allow
30008 128-bit floating point types to occupy any register if
30009 -mlong-double-64. Do not allow use of IFmode/KFmode unless
30010 -mfloat128-software is enabled.
30011 (rs6000_debug_reg_global): Add IEEE 128-bit floating point debug
30013 (rs6000_option_override_internal): Add -mfloat128-* support.
30014 (rs6000_init_builtins): Setup __ibm128 and __float128 type modes.
30016 * config/rs6000/rs6000.h (rs6000_builtin_type_index): Add ibm128
30017 and float128 type nodes.
30018 (ieee128_float_type_node): Likewise.
30019 (ibm128_float_type_node): Likewise.
30021 2015-06-02 Szabolcs Nagy <szabolcs.nagy@arm.com>
30024 * config/aarch64/geniterators.sh: Rewrite in awk.
30026 2015-06-02 Martin Liska <mliska@suse.cz>
30028 * alloc-pool.h (pool_allocator::pool_allocator): Set implicit
30029 values to avoid -Wmaybe-uninitialized errors.
30031 2015-06-02 Richard Biener <rguenther@suse.de>
30034 * dwarf2out.c (lookup_context_die): New function.
30035 (resolve_addr): Avoid forcing a full DIE for the
30036 target of a DW_TAG_GNU_call_site during late compilation.
30037 Instead create a stub DIE without a type if we have a
30038 context DIE present.
30040 2015-06-02 Uros Bizjak <ubizjak@gmail.com>
30042 * df-scan.c (df_scan_start_dump): Add space between regno and regname.
30044 2015-06-02 Bin Cheng <bin.cheng@arm.com>
30046 PR tree-optimization/48052
30047 * cfgloop.h (struct control_iv): New.
30048 (struct loop): New field control_ivs.
30049 * tree-ssa-loop-niter.c : Include "stor-layout.h".
30050 (number_of_iterations_lt): Set no_overflow information.
30051 (number_of_iterations_exit): Init control iv in niter struct.
30052 (record_control_iv): New.
30053 (estimate_numbers_of_iterations_loop): Call record_control_iv.
30054 (loop_exits_before_overflow): New. Interface factored out of
30055 scev_probably_wraps_p.
30056 (scev_probably_wraps_p): Factor loop niter related code into
30057 loop_exits_before_overflow.
30058 (free_numbers_of_iterations_estimates_loop): Free control ivs.
30059 * tree-ssa-loop-niter.h (free_loop_control_ivs): New.
30061 2015-06-02 Eric Botcazou <ebotcazou@adacore.com>
30063 * gimplify.c (gimplify_modify_expr): Do not create a DECL_DEBUG_EXPR if
30064 the target doesn't belong to the current function.
30066 2015-06-02 Marek Polacek <polacek@redhat.com>
30068 PR middle-end/66345
30069 * gimple-fold.c (gimple_fold_builtin_snprintf): Return false if
30070 get_maxval_strlen does not produce an INTEGER_CST.
30072 2015-06-02 Richard Sandiford <richard.sandiford@arm.com>
30074 * config/arc/constraints.md: Use lower-case names in match_code.
30075 * config/mmix/constraints.md: Likewise.
30077 2015-06-02 Richard Biener <rguenther@suse.de>
30079 PR tree-optimization/65961
30080 * tree-vect-slp.c (vect_get_and_check_slp_defs): Remove bogus
30081 check and clarify dump message.
30082 (vect_build_slp_tree): If all children are built up from scalars
30083 build up the parent from scalars instead.
30084 * tree-vect-stmts.c (vect_is_simple_use): Cleanup.
30086 2015-06-02 Jan Kratochvil <jan.kratochvil@redhat.com>
30089 * gdbhooks.py: Use int(...) instead of long(...). Use print(...)
30090 instead of print ... .
30092 2015-06-02 Alan Modra <amodra@gmail.com>
30094 * config/rs6000/vsx.md (vsx_extract_v4sf): Revert accidental
30097 2015-06-02 Bin Cheng <bin.cheng@arm.com>
30099 PR tree-optimization/52563
30100 PR tree-optimization/62173
30101 * tree-ssa-loop-ivopts.c (struct iv): New field. Reorder fields.
30102 (alloc_iv, set_iv): New parameter.
30103 (determine_biv_step): Delete.
30104 (find_bivs): Inline original determine_biv_step. Pass new
30105 argument to set_iv.
30106 (idx_find_step): Use no_overflow information for conversion.
30107 * tree-scalar-evolution.c (analyze_scalar_evolution_in_loop): Let
30108 resolve_mixers handle folded_casts.
30109 (instantiate_scev_name): Change bool parameter to bool pointer.
30110 (instantiate_scev_poly, instantiate_scev_binary): Ditto.
30111 (instantiate_array_ref, instantiate_scev_not): Ditto.
30112 (instantiate_scev_3, instantiate_scev_2): Ditto.
30113 (instantiate_scev_1, instantiate_scev_r): Ditto.
30114 (instantiate_scev_convert, ): Change parameter. Pass argument
30115 to chrec_convert_aggressive.
30116 (instantiate_scev): Change argument.
30117 (resolve_mixers): New parameter and set it.
30118 (scev_const_prop): New argument.
30119 * tree-scalar-evolution.h (resolve_mixers): New parameter.
30120 * tree-chrec.c (convert_affine_scev): Call chrec_convert instead
30122 (chrec_convert): New parameter. Move definition below.
30123 (chrec_convert_aggressive): New parameter and set it. Call
30124 convert_affine_scev.
30125 * tree-chrec.h (chrec_convert): New parameter.
30126 (chrec_convert_aggressive): Ditto.
30128 2015-06-01 Eric Botcazou <ebotcazou@adacore.com>
30130 * gimplify.c (gimplify_modify_expr_rhs): Use simple test on the size.
30131 * cgraph.c (cgraph_redirect_edge_call_stmt_to_callee): Do not remove
30132 the LHS of a no-return call if its type has variable size.
30133 * tree-cfgcleanup.c (fixup_noreturn_call): Likewise.
30134 * tree-cfg.c (verify_gimple_call): Accept these no-return calls.
30136 2015-06-01 Andreas Tobler <andreast@gcc.gnu.org>
30138 * read-rtl.c: Adapt to use HAVE_DECL_ATOLL instead of HAVE_ATOLL.
30139 * config.in: Regenerate.
30141 2015-06-01 Yuri Rumyantsev <ysrumyan@gmail.com>
30143 * tree-vect-data-refs.c (vect_analyze_data_ref_access): Allow
30144 consecutive accesses within outer-loop with force_vectorize
30145 for references with zero step in inner-loop.
30147 2015-06-01 Vidya Praveen <vidyapraveen@arm.com>
30149 * Makefile.in: Pick up gcov-dump dependencies from gcc/ directory
30150 rather than from gcc/build directory.
30152 2015-06-01 Matthew Wahab <matthew.wahab@arm.com>
30155 * config/aarch64/aarch64.c (aarch64_split_compare_and_swap): Check
30156 for __sync memory models, emit initial loads and final barriers as
30159 2015-06-01 Matthew Wahab <matthew.wahab@arm.com>
30162 * config/aarch64/aarch64.c (aarch64_emit_post_barrier):New.
30163 (aarch64_split_atomic_op): Check for __sync memory models, emit
30164 appropriate initial loads and final barriers.
30166 2015-06-01 Vidya Praveen <vidyapraveen@arm.com>
30168 * Makefile.in: Fix gcov dependencies that should
30169 not point to a build folder.
30171 2015-06-01 Richard Biener <rguenther@suse.de>
30174 2015-05-29 Richard Biener <rguenther@suse.de>
30176 PR tree-optimization/66314
30177 * tree-ssa-threadupdate.c (create_block_for_threading): Add
30178 parameter that says which loop the new block belongs to.
30179 (ssa_create_duplicates): Blocks duplicated for the threaded
30180 path belong to the loop of the thread destination.
30182 2015-06-01 Martin Liska <mliska@suse.cz>
30184 * sched-deps.c: Include pool-alloc.h before
30185 cselib.h header file is included.
30187 2015-06-01 Richard Biener <rguenther@suse.de>
30189 * tree-ssa-structalias.c (ipa_pta_execute): Handle address-taken
30192 2015-06-01 Martin Liska <mliska@suse.cz>
30194 * alloc-pool.h: Add ATTRIBUTE_UNUSED for
30195 a function local variable.
30197 2015-06-01 Martin Liska <mliska@suse.cz>
30199 * alloc-pool.c (create_alloc_pool): Remove.
30200 (empty_alloc_pool): Likewise.
30201 (free_alloc_pool): Likewise.
30202 (free_alloc_pool_if_empty): Likewise.
30203 (pool_alloc): Likewise.
30204 (pool_free): Likewise.
30205 * alloc-pool.h: Remove old declarations.
30207 2015-06-01 Martin Liska <mliska@suse.cz>
30209 * ira-build.c (initiate_allocnos): Use new type-based pool allocator.
30210 (ira_create_object): Likewise.
30211 (ira_create_allocno): Likewise.
30212 (ira_create_live_range): Likewise.
30213 (copy_live_range): Likewise.
30214 (ira_finish_live_range): Likewise.
30215 (ira_free_allocno_costs): Likewise.
30216 (finish_allocno): Likewise.
30217 (finish_allocnos): Likewise.
30218 (initiate_prefs): Likewise.
30219 (ira_create_pref): Likewise.
30220 (finish_pref): Likewise.
30221 (finish_prefs): Likewise.
30222 (initiate_copies): Likewise.
30223 (ira_create_copy): Likewise.
30224 (finish_copy): Likewise.
30225 (finish_copies): Likewise.
30226 (finish_prefs): Likewise.
30228 2015-06-01 Martin Liska <mliska@suse.cz>
30230 * ipa-cp.c (ipcp_value::add_source): Use new type-based pool allocator.
30231 (allocate_and_init_ipcp_value): Likewise.
30232 (ipcp_lattice::add_value): Likewise.
30233 (merge_agg_lats_step): Likewise.
30234 (ipcp_driver): Likewise.
30235 * ipa-prop.c (ipa_free_all_structures_after_ipa_cp): Likewise.
30236 (ipa_free_all_structures_after_iinln): Likewise.
30237 * ipa-prop.h: Likewise.
30239 2015-06-01 Martin Liska <mliska@suse.cz>
30241 * ipa-inline-analysis.c (edge_set_predicate): Use new type-based
30243 (set_hint_predicate): Likewise.
30244 (inline_summary_alloc): Likewise.
30245 (reset_inline_edge_summary): Likewise.
30246 (reset_inline_summary): Likewise.
30247 (set_cond_stmt_execution_predicate): Likewise.
30248 (set_switch_stmt_execution_predicate): Likewise.
30249 (compute_bb_predicates): Likewise.
30250 (estimate_function_body_sizes): Likewise.
30251 (inline_free_summary): Likewise.
30253 2015-06-01 Martin Liska <mliska@suse.cz>
30255 * ipa-prop.c (ipa_set_jf_constant): Use new type-based pool allocator.
30256 (ipa_edge_duplication_hook): Likewise.
30257 (ipa_free_all_structures_after_ipa_cp): Likewise.
30258 (ipa_free_all_structures_after_iinln): Likewise.
30260 2015-06-01 Martin Liska <mliska@suse.cz>
30262 * ipa-profile.c (account_time_size): Use new type-based pool allocator.
30263 (ipa_profile_generate_summary): Likewise.
30264 (ipa_profile_read_summary): Likewise.
30265 (ipa_profile): Likewise.
30267 2015-06-01 Martin Liska <mliska@suse.cz>
30269 * tree-ssa-structalias.c (new_var_info): Use new type-based
30271 (new_constraint): Likewise.
30272 (init_alias_vars): Likewise.
30273 (delete_points_to_sets): Likewise.
30275 2015-06-01 Martin Liska <mliska@suse.cz>
30277 * tree-ssa-strlen.c (new_strinfo): Use new type-based pool allocator.
30278 (free_strinfo): Likewise.
30279 (pass_strlen::execute): Likewise.
30281 2015-06-01 Martin Liska <mliska@suse.cz>
30283 * tree-ssa-sccvn.c (vn_reference_insert): Use new type-based
30285 (vn_reference_insert_pieces): Likewise.
30286 (vn_phi_insert): Likewise.
30287 (visit_reference_op_call): Likewise.
30288 (copy_phi): Likewise.
30289 (copy_reference): Likewise.
30290 (process_scc): Likewise.
30291 (allocate_vn_table): Likewise.
30292 (free_vn_table): Likewise.
30294 2015-06-01 Martin Liska <mliska@suse.cz>
30296 * tree-ssa-reassoc.c (add_to_ops_vec): Use new type-based
30298 (add_repeat_to_ops_vec): Likewise.
30299 (get_ops): Likewise.
30300 (maybe_optimize_range_tests): Likewise.
30301 (init_reassoc): Likewise.
30302 (fini_reassoc): Likewise.
30304 2015-06-01 Martin Liska <mliska@suse.cz>
30306 * tree-ssa-pre.c (get_or_alloc_expr_for_name): Use new type-based
30308 (bitmap_set_new): Likewise.
30309 (get_or_alloc_expr_for_constant): Likewise.
30310 (get_or_alloc_expr_for): Likewise.
30311 (phi_translate_1): Likewise.
30312 (compute_avail): Likewise.
30313 (init_pre): Likewise.
30314 (fini_pre): Likewise.
30316 2015-06-01 Martin Liska <mliska@suse.cz>
30318 * sched-deps.c (create_dep_node): Use new type-based pool allocator.
30319 (delete_dep_node): Likewise.
30320 (create_deps_list): Likewise.
30321 (free_deps_list): Likewise.
30322 (sched_deps_init): Likewise.
30323 (sched_deps_finish): Likewise.
30325 2015-06-01 Martin Liska <mliska@suse.cz>
30327 * regcprop.c (free_debug_insn_changes): Use new type-based
30329 (replace_oldest_value_reg): Likewise.
30330 (pass_cprop_hardreg::execute): Likewise.
30332 2015-06-01 Martin Liska <mliska@suse.cz>
30334 * ira-build.c (initiate_cost_vectors): Use new type-based
30336 (ira_allocate_cost_vector): Likewise.
30337 (ira_free_cost_vector): Likewise.
30338 (finish_cost_vectors): Likewise.
30340 2015-06-01 Martin Liska <mliska@suse.cz>
30342 * sel-sched-ir.c (alloc_sched_pools): Use new type-based
30344 (free_sched_pools): Likewise.
30345 * sel-sched-ir.h (_list_alloc): Likewise.
30346 (_list_remove): Likewise.
30348 2015-06-01 Martin Liska <mliska@suse.cz>
30350 * stmt.c (add_case_node): Use new type-based pool allocator.
30351 (expand_case): Likewise.
30352 (expand_sjlj_dispatch_table): Likewise.
30354 2015-06-01 Martin Liska <mliska@suse.cz>
30356 * tree-ssa-math-opts.c (occ_new): Use new type-based pool allocator.
30357 (free_bb): Likewise.
30358 (pass_cse_reciprocals::execute): Likewise.
30360 2015-06-01 Martin Liska <mliska@suse.cz>
30362 * tree-sra.c (sra_initialize): Use new type-based pool allocator.
30363 (sra_deinitialize) Likewise.
30364 (create_access_1) Likewise.
30365 (build_accesses_from_assign) Likewise.
30366 (create_artificial_child_access) Likewise.
30368 2015-06-01 Martin Liska <mliska@suse.cz>
30370 * dse.c (get_group_info):Use new type-based pool allocator.
30371 (dse_step0) Likewise.
30372 (free_store_info) Likewise.
30373 (delete_dead_store_insn) Likewise.
30374 (free_read_records) Likewise.
30375 (record_store) Likewise.
30376 (replace_read) Likewise.
30377 (check_mem_read_rtx) Likewise.
30378 (scan_insn) Likewise.
30379 (dse_step1) Likewise.
30380 (dse_step7) Likewise.
30382 2015-06-01 Martin Liska <mliska@suse.cz>
30384 * df-scan.c (struct df_scan_problem_data):Use new type-based
30386 (df_scan_free_internal) Likewise.
30387 (df_scan_alloc) Likewise.
30388 (df_grow_reg_info) Likewise.
30389 (df_free_ref) Likewise.
30390 (df_insn_create_insn_record) Likewise.
30391 (df_mw_hardreg_chain_delete) Likewise.
30392 (df_insn_info_delete) Likewise.
30393 (df_free_collection_rec) Likewise.
30394 (df_mw_hardreg_chain_delete_eq_uses) Likewise.
30395 (df_sort_and_compress_mws) Likewise.
30396 (df_ref_create_structure) Likewise.
30397 (df_ref_record) Likewise.
30399 2015-06-01 Martin Liska <mliska@suse.cz>
30401 * df-problems.c (df_chain_create):Use new type-based pool allocator.
30402 (df_chain_unlink_1) Likewise.
30403 (df_chain_unlink) Likewise.
30404 (df_chain_remove_problem) Likewise.
30405 (df_chain_alloc) Likewise.
30406 (df_chain_free) Likewise.
30407 * df.h (struct dataflow) Likewise.
30409 2015-06-01 Martin Liska <mliska@suse.cz>
30411 * cselib.c (new_elt_list):Use new type-based pool allocator.
30412 (new_elt_loc_list) Likewise.
30413 (unchain_one_elt_list) Likewise.
30414 (unchain_one_elt_loc_list) Likewise.
30415 (unchain_one_value) Likewise.
30416 (new_cselib_val) Likewise.
30417 (cselib_init) Likewise.
30418 (cselib_finish) Likewise.
30420 2015-06-01 Martin Liska <mliska@suse.cz>
30422 * config/sh/sh.c (add_constant):Use new type-based pool allocator.
30423 (sh_reorg) Likewise.
30425 2015-06-01 Martin Liska <mliska@suse.cz>
30427 * cfg.c (initialize_original_copy_tables):Use new type-based
30429 (free_original_copy_tables) Likewise.
30430 (copy_original_table_clear) Likewise.
30431 (copy_original_table_set) Likewise.
30433 2015-06-01 Martin Liska <mliska@suse.cz>
30435 * asan.c (asan_mem_ref_get_alloc_pool):Use new type-based
30437 (asan_mem_ref_new) Likewise.
30438 (free_mem_ref_resources) Likewise.
30440 2015-06-01 Martin Liska <mliska@suse.cz>
30442 * var-tracking.c (variable_htab_free):Use new type-based
30444 (attrs_list_clear) Likewise.
30445 (attrs_list_insert) Likewise.
30446 (attrs_list_copy) Likewise.
30447 (shared_hash_unshare) Likewise.
30448 (shared_hash_destroy) Likewise.
30449 (unshare_variable) Likewise.
30450 (var_reg_delete_and_set) Likewise.
30451 (var_reg_delete) Likewise.
30452 (var_regno_delete) Likewise.
30453 (drop_overlapping_mem_locs) Likewise.
30454 (variable_union) Likewise.
30455 (insert_into_intersection) Likewise.
30456 (canonicalize_values_star) Likewise.
30457 (variable_merge_over_cur) Likewise.
30458 (dataflow_set_merge) Likewise.
30459 (remove_duplicate_values) Likewise.
30460 (variable_post_merge_new_vals) Likewise.
30461 (dataflow_set_preserve_mem_locs) Likewise.
30462 (dataflow_set_remove_mem_locs) Likewise.
30463 (variable_from_dropped) Likewise.
30464 (variable_was_changed) Likewise.
30465 (set_slot_part) Likewise.
30466 (clobber_slot_part) Likewise.
30467 (delete_slot_part) Likewise.
30468 (loc_exp_insert_dep) Likewise.
30469 (notify_dependents_of_changed_value) Likewise.
30470 (emit_notes_for_differences_1) Likewise.
30471 (vt_emit_notes) Likewise.
30472 (vt_initialize) Likewise.
30473 (vt_finalize) Likewise.
30475 2015-06-01 Martin Liska <mliska@suse.cz>
30477 * ira-color.c (init_update_cost_records):Use new type-based
30479 (get_update_cost_record) Likewise.
30480 (free_update_cost_record_list) Likewise.
30481 (finish_update_cost_records) Likewise.
30482 (initiate_cost_update) Likewise.
30484 2015-06-01 Martin Liska <mliska@suse.cz>
30486 * lra.c (init_insn_regs): Use new type-based pool allocator.
30487 (new_insn_reg) Likewise.
30488 (free_insn_reg) Likewise.
30489 (free_insn_regs) Likewise.
30490 (finish_insn_regs) Likewise.
30491 (init_insn_recog_data) Likewise.
30492 (init_reg_info) Likewise.
30493 (finish_reg_info) Likewise.
30494 (lra_free_copies) Likewise.
30495 (lra_create_copy) Likewise.
30496 (invalidate_insn_data_regno_info) Likewise.
30498 2015-06-01 Martin Liska <mliska@suse.cz>
30500 * lra-lives.c (free_live_range): Use new type-based pool allocator.
30501 (free_live_range_list) Likewise.
30502 (create_live_range) Likewise.
30503 (copy_live_range) Likewise.
30504 (lra_merge_live_ranges) Likewise.
30505 (remove_some_program_points_and_update_live_ranges) Likewise.
30506 (lra_live_ranges_init) Likewise.
30507 (lra_live_ranges_finish) Likewise.
30509 2015-06-01 Martin Liska <mliska@suse.cz>
30511 * et-forest.c (et_new_occ): Use new type-based pool allocator.
30512 (et_new_tree): Likewise.
30513 (et_free_tree): Likewise.
30514 (et_free_tree_force): Likewise.
30515 (et_free_pools): Likewise.
30516 (et_split): Likewise.
30518 2015-06-01 Martin Liska <mliska@suse.cz>
30520 * alloc-pool.c (struct alloc_pool_descriptor): Move definition
30522 * alloc-pool.h (pool_allocator::pool_allocator): New function.
30523 (pool_allocator::release): Likewise.
30524 (inline pool_allocator::release_if_empty): Likewise.
30525 (inline pool_allocator::~pool_allocator): Likewise.
30526 (pool_allocator::allocate): Likewise.
30527 (pool_allocator::remove): Likewise.
30529 2015-06-01 James Greenhalgh <james.greenhalgh@arm.com>
30531 * sched-deps.c (sched_analyze_2): Replace fuseable with fusible
30534 2015-06-01 James Greenhalgh <james.greenhalgh@arm.com>
30536 * config/arm/arm-protos.h (tune_params): Rename fuseable_ops
30538 * config/arm/arm.c (arm_print_tune_info): Likewise.
30539 (arm_macro_fusion_p): Likewise.
30540 (arm_macro_fusion_pair_p): Likewise.
30542 2015-06-01 James Greenhalgh <james.greenhalgh@arm.com>
30544 * config/aarch64/aarch64-protos.h (tune_params): Rename
30545 fuseable_ops to fusible_ops.
30546 * config/aarch64/aarch64.c (generic_tunings): Rename
30547 fuseable_ops to fusible_ops.
30548 (cortexa53_tunings): Likewise.
30549 (cortexa57_tunings): Likewise.
30550 (thunderx_tunings): Likewise.
30551 (xgene1_tunings): Likewise.
30552 (aarch64_macro_fusion_p): Likewise.
30553 (aarch64_macro_fusion_pair_p): Likewise.
30555 2015-06-01 Dominik Vogt <vogt@linux.vnet.ibm.com>
30557 * config/s390/driver-native.c: New file.
30558 * config/s390/x-native: New file.
30559 * config.host: Add new files for s390.
30560 * config/s390/s390.h (DRIVER_SELF_SPECS): Add support for -mtune=native
30562 * config.gcc: Likewise.
30563 * config/s390/s390.opt (march): Likewise; add PROCESSOR_NATIVE
30564 * config/s390/s390-opts.h (enum processor_type): Ditto.
30565 * config/s390/s390.c (s390_option_override): Catch unhandled
30568 2015-06-01 Ilya Enkovich <ilya.enkovich@intel.com>
30571 * cgraph.c (cgraph_edge::redirect_call_stmt_to_callee): Add
30572 redirection for instrumented calls.
30573 * lto-wrapper.c (merge_and_complain): Merge -fcheck-pointer-bounds.
30574 (append_compiler_options): Append -fcheck-pointer-bounds.
30575 * tree-chkp.h (chkp_copy_call_skip_bounds): New.
30576 (chkp_redirect_edge): New.
30577 * tree-chkp.c (chkp_copy_call_skip_bounds): New.
30578 (chkp_redirect_edge): New.
30580 2015-06-01 Richard Biener <rguenther@suse.de>
30582 PR tree-optimization/66280
30583 * tree-vect-slp.c (vect_detect_hybrid_slp_stmts): Fix pattern
30586 2015-06-01 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
30588 * config/aarch64/aarch64.md
30589 (*<LOGICAL:optab>_one_cmpl_<SHIFT:optab><mode>3): Change type to
30592 2015-06-01 Eric Botcazou <ebotcazou@adacore.com>
30594 * config/i386/winnt.c (i386_pe_encode_section_info) <FUNCTION_DECL>:
30595 Remove obsolete kludge.
30597 2015-06-01 Richard Biener <rguenther@suse.de>
30599 * tree-ssa-reassoc.c (get_rank): Simplify.
30601 2015-05-31 H.J. Lu <hongjiu.lu@intel.com>
30603 * configure.ac (NO_PIE_CFLAGS): Check CXXFLAGS instead of CFLAGS.
30604 * configure: Regenerated.
30606 2015-05-31 Mikhail Maltsev <maltsevm@gmail.com>
30608 * config/cris/cris.h (CRIS_ARCH_CPP_DEFAULT): Fix C++11 compatibility
30609 issue (add space between string literal and macro).
30610 * config/i386/mingw32.h (REAL_LIBGCC_SPEC): Likewise.
30612 2015-05-30 Andreas Schwab <schwab@linux-m68k.org>
30614 * config/m68k/m68k.h (ASM_PCREL_SPEC): Pass --pcrel also for
30615 implict or explicit -fPIE or -fpie.
30617 2015-05-30 Mike Frysinger <vapier@gentoo.org>
30619 * config/alpha/elf.h (ASM_SPEC): Add %{mcpu=*:-m%*}.
30621 2015-05-28 DJ Delorie <dj@redhat.com>
30623 * expmed.c (extract_bit_field_1): Avoid clobbering a
30624 yet-to-be-used base/index register.
30626 2015-05-30 Jan Hubicka <hubicka@ucw.cz>
30628 * alias.c (alias_set_entry_d): Add is_pointer and has_pointer.
30629 (alias_stats): Add num_universal.
30630 (alias_set_subset_of): Special case pointers; be ready for NULL
30632 (alias_sets_conflict_p): Special case pointers; be ready for NULL
30634 (init_alias_set_entry): Break out from ...
30635 (record_alias_subset): ... here; propagate new fields;
30636 allocate children only when really needed.
30637 (get_alias_set): Do less generous pointer globbing.
30638 (dump_alias_stats_in_alias_c): Update statistics.
30640 2015-05-30 Alan Modra <amodra@gmail.com>
30642 * config/rs6000/rs6000.c (split_stack_arg_pointer_used_p): Scan
30643 correct block for use of r12.
30644 (rs6000_expand_split_stack_prologue): Error on r29 asm global reg.
30646 2015-05-29 Dominik Vogt <vogt@linux.vnet.ibm.com>
30649 * config/s390/s390.c (s390_reorg): Fix placement of post-label NOPs
30652 2015-05-29 Jakub Jelinek <jakub@redhat.com>
30654 PR tree-optimization/66142
30655 * tree-if-conv.c (if_convertible_phi_p): Don't give up on
30656 virtual phis that feed themselves.
30658 2015-05-29 Richard Biener <rguenther@suse.de>
30660 PR tree-optimization/66314
30661 * tree-ssa-threadupdate.c (create_block_for_threading): Add
30662 parameter that says which loop the new block belongs to.
30663 (ssa_create_duplicates): Blocks duplicated for the threaded
30664 path belong to the loop of the thread destination.
30666 2015-05-29 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
30668 * config/arm/neon-testgen.ml (emit_epilogue): Remove manual call
30669 to cleanup-saved-temps.
30670 * doc/sourcebuild.texi (Clean up generated test files): Expand
30672 (dg-keep-saved-temps): Document new proc.
30673 (cleanup-ipa-dump, cleanup-rtl-dump, cleanup-tree-dump,
30674 cleanup-saved-temps): Remove.
30676 2015-05-28 Andreas Tobler <andreast@gcc.gnu.org>
30678 * configure.ac: Move the atoll check from AC_CHECK_FUNCS to
30679 gcc_AC_CHECK_DECLS.
30680 * configure: Regenerate.
30682 2015-05-28 Mike Frysinger <vapier@gentoo.org>
30684 * config/nios2/linux.h (CPP_SPEC): Define.
30686 2015-05-28 Mike Frysinger <vapier@gentoo.org>
30688 * config/microblaze/linux.h (CPP_SPEC): Define.
30690 2015-05-28 Mike Frysinger <vapier@gentoo.org>
30692 * config/pa/pa-linux.h (CPP_SPEC): Change so -D_REENTRANT is used when
30693 -pthread is specified.
30695 2015-05-28 Richard Biener <rguenther@suse.de>
30697 * tree-vect-loop.c (vect_fixup_reduc_chain): New function.
30698 (vect_fixup_scalar_cycles_with_patterns): Likewise.
30699 (vect_analyze_loop_2): Call vect_fixup_scalar_cycles_with_patterns
30700 after pattern recog.
30701 (vect_create_epilog_for_reduction): Properly handle reductions
30703 (vectorizable_reduction): Likewise.
30704 * tree-vect-slp.c (vect_analyze_slp_instance): Properly mark
30706 (vect_get_constant_vectors): Create the correct number of
30707 initial values for reductions.
30708 (vect_schedule_slp_instance): Handle reduction chains that are
30709 type changing properly.
30710 * tree-vect-stmts.c (vect_analyze_stmt): Adjust.
30712 2015-05-28 Richard Biener <rguenther@suse.de>
30714 PR tree-optimization/66142
30715 * tree-ssa-sccvn.c (vn_reference_lookup_3): Handle non-GIMPLE
30716 values better in memcpy destination handling. Handle non-aliasing
30719 2015-05-28 Lawrence Velázquez <vq@larryv.me>
30722 * config/darwin-c.c (version_components): New global enum.
30723 (parse_version, version_as_legacy_macro)
30724 (version_as_modern_macro, macosx_version_as_macro): New functions.
30725 (version_as_macro): Remove.
30726 (darwin_cpp_builtins): Use new function.
30728 2015-05-28 H.J. Lu <hongjiu.lu@intel.com>
30730 * builtins.c (expand_builtin_acc_on_device): Mark parameters
30731 with ATTRIBUTE_UNUSED.
30733 2015-05-28 Julian Brown <julian@codesourcery.com>
30737 * builtins.c (expand_builtin_acc_on_device): Don't use open-coded
30738 sequence for !ACCEL_COMPILER.
30740 2015-05-28 Nick Clifton <nickc@redhat.com>
30742 * config/rx/rx.c (push_regs): New function. Extracts code from...
30743 (rx_expand_prologue): ... here. Use push_regs to push even small
30744 spans of registers.
30745 (pop_regs): New function.
30746 (rx_expand_epilogue): Use pop_regs to pop even small spans of
30749 2015-05-28 Richard Biener <rguenther@suse.de>
30751 * tree-vectorizer.h (struct _slp_instance): Remove body_cost_vec
30753 (SLP_INSTANCE_BODY_COST_VEC): Remove.
30754 (vect_update_slp_costs_according_to_vf): Likewise.
30755 (vect_slp_analyze_operations): Update prototype.
30756 * tree-vect-loop.c (vect_analyze_loop_2): Remove call to
30757 vect_update_slp_costs_according_to_vf, adjust.
30758 * tree-vect-slp.c (vect_free_slp_instance): Adjust.
30759 (vect_analyze_slp_cost_1): Likewise.
30760 (vect_analyze_slp_cost): Likewise. Properly deal with
30761 widening reduction ops. Commit body costs.
30762 (vect_analyze_slp_instance): Adjust. Do not analyze SLP
30763 cost for loops from here.
30764 (vect_slp_analyze_operations): But do it from here when
30765 the vectorization factor is known and stmts are analyzed.
30766 (vect_bb_vectorization_profitable_p): Simplify.
30767 (vect_slp_analyze_bb_1): Do not compute SLP cost here.
30768 (vect_update_slp_costs_according_to_vf): Remove.
30770 2015-05-27 Magnus Granberg <zorry@gentoo.org>
30771 H.J. Lu <hongjiu.lu@intel.com>
30773 * Makefile.in (COMPILER): Add @NO_PIE_CFLAGS@.
30774 (BUILD_CFLAGS): Likewise.
30775 (BUILD_CXXFLAGS): Likewise.
30776 (LINKER): Add @NO_PIE_FLAG@.
30777 (BUILD_LDFLAGS): Likewise.
30778 (libgcc.mvars): Set NO_PIE_CFLAGS to -fno-PIE for
30779 --enable-default-pie.
30780 * common.opt (fPIE): Initialize to -1.
30782 (no-pie): New option.
30783 (pie): Replace "Negative(shared)" with "Negative(no-pie)".
30784 * configure.ac: Add --enable-default-pie.
30785 (NO_PIE_CFLAGS): New. Check if -fno-PIE works. AC_SUBST.
30786 (NO_PIE_FLAG): New. Check if -no-pie works. AC_SUBST.
30787 * defaults.h (DEFAULT_FLAG_PIE): New. Default PIE to -fPIE.
30788 * gcc.c (NO_PIE_SPEC): New.
30789 (PIE_SPEC): Likewise.
30790 (NO_FPIE1_SPEC): Likewise.
30791 (FPIE1_SPEC): Likewise.
30792 (NO_FPIE2_SPEC): Likewise.
30793 (FPIE2_SPEC): Likewise.
30794 (NO_FPIE2_SPEC): Likewise.
30795 (FPIE_SPEC): Likewise.
30796 (NO_FPIE_SPEC): Likewise.
30797 (NO_FPIC1_SPEC): Likewise.
30798 (FPIC1_SPEC): Likewise.
30799 (NO_FPIC2_SPEC): Likewise.
30800 (FPIC2_SPEC): Likewise.
30801 (NO_FPIC2_SPEC): Likewise.
30802 (FPIC_SPEC): Likewise.
30803 (NO_FPIC_SPEC): Likewise.
30804 (NO_FPIE1_AND_FPIC1_SPEC): Likewise.
30805 (FPIE1_OR_FPIC1_SPEC): Likewise.
30806 (NO_FPIE2_AND_FPIC2_SPEC): Likewise.
30807 (FPIE2_OR_FPIC2_SPEC): Likewise.
30808 (NO_FPIE_AND_FPIC_SPEC): Likewise.
30809 (FPIE_OR_FPIC_SPEC): Likewise.
30810 (LD_PIE_SPEC): Likewise.
30811 (LINK_PIE_SPEC): Handle -no-pie. Use PIE_SPEC and LD_PIE_SPEC.
30812 * opts.c (finish_options): Update opts->x_flag_pie if it is -1.
30813 * config/darwin.h (PIE_SPEC): Renamed to ...
30814 (DARWIN_PIE_SPEC): This.
30815 (LINK_SPEC): Replace PIE_SPEC with DARWIN_PIE_SPEC.
30816 * config/darwin9.h (PIE_SPEC): Renamed to ...
30817 (DARWIN_PIE_SPEC): This.
30818 * config/gnu-user.h (GNU_USER_TARGET_STARTFILE_SPEC): Use
30819 PIE_SPEC and NO_PIE_SPEC if HAVE_LD_PIE is defined.
30820 * config/openbsd.h (ASM_SPEC): Use FPIE1_OR_FPIC1_SPEC and
30821 FPIE2_OR_FPIC2_SPEC.
30822 * config/m68k/netbsd-elf.h (ASM_SPEC): Likewise.
30823 * config/m68k/openbsd.h (ASM_SPEC): Likewise.
30824 * config/sol2.h (ASM_PIC_SPEC): Likewise.
30825 * config/arm/freebsd.h (SUBTARGET_EXTRA_ASM_SPEC): Likewise.
30826 * config/arm/netbsd-elf.h (SUBTARGET_EXTRA_ASM_SPEC): Likewise.
30827 * config/arm/semi.h (SUBTARGET_EXTRA_ASM_SPEC): Likewise.
30828 * config/cris/linux.h (CRIS_ASM_SUBTARGET_SPEC): Likewise.
30829 * config/m32r/m32r.h (ASM_SPEC): Likewise.
30830 * config/m68k/uclinux.h (DRIVER_SELF_SPECS): Likewise.
30831 * config/rs6000/linux64.h (ASM_SPEC32): Likewise.
30832 * config/rs6000/sysv4.h (ASM_SPEC): Likewise.
30833 * config/sparc/freebsd.h (ASM_SPEC): Likewise.
30834 * config/sparc/linux.h (ASM_SPEC): Likewise.
30835 * config/sparc/linux64.h (ASM_SPEC): Likewise.
30836 * config/sparc/netbsd-elf.h (ASM_SPEC): Likewise.
30837 * config/sparc/openbsd64.h (ASM_SPEC): Likewise.
30838 * config/sparc/sp-elf.h (ASM_SPEC): Likewise.
30839 * config/sparc/sp64-elf.h (ASM_SPEC): Likewise.
30840 * config/sparc/sparc.h (ASM_SPEC): Likewise.
30841 * config/sparc/sysv4.h (ASM_SPEC): Likewise.
30842 * config/sparc/vxworks.h (ASM_SPEC): Likewise.
30843 * config/c6x/elf-common.h (ASM_SPEC): Use NO_FPIC2_SPEC,
30844 FPIC2_SPEC, FPIC1_SPEC and FPIC2_SPEC.
30845 * config/c6x/uclinux-elf.h (LINK_SPEC): Use FPIE_SPEC.
30846 * config/frv/frv.h (DRIVER_SELF_SPECS): Use FPIC_SPEC,
30847 NO_FPIC_SPEC and NO_FPIE1_AND_FPIC1_SPEC.
30848 (ASM_SPEC): Use FPIE1_OR_FPIC1_SPEC and FPIE2_OR_FPIC2_SPEC.
30849 * config/m68k/m68k.h (ASM_PCREL_SPEC): Use FPIC_SPEC and NO_FPIC_SPEC.
30850 * config/mips/gnu-user.h (NO_SHARED_SPECS): Use NO_FPIE_AND_FPIC_SPEC.
30851 * config/mips/vxworks.h (SUBTARGET_ASM_SPEC): Use FPIC_SPEC.
30852 * config/rs6000/freebsd64.h (ASM_SPEC32): Likewise.
30853 * config/rs6000/vxworks.h (ASM_SPEC): Likewise.
30854 * config/vax/linux.h (ASM_SPEC): Likewise.
30855 * doc/install.texi: Document --enable-default-pie.
30856 * doc/invoke.texi: Document -no-pie.
30857 * config.in: Regenerated.
30858 * configure: Likewise.
30860 2015-05-28 Thomas Preud'homme <thomas.preudhomme@arm.com>
30862 PR rtl-optimization/66168
30863 * loop-invariant.c (move_invariant_reg): Pass dest rather than reg to
30864 can_move_invariant_reg.
30866 2015-05-27 John David Anglin <danglin@gcc.gnu.org>
30869 * config/pa/pa.c (pa_emit_move_sequence): Correct placement of
30870 REG_EQUAL note when doing insert.
30872 * config/pa/pa.c (pa_print_operand): Use HOST_WIDE_INT_PRINT_DEC
30873 instead of "%d" for 'o' operand.
30875 2015-05-27 Nathan Sidwell <nathan@acm.org>
30878 * tree.c (build_pointer_type_for_mode): Canonical type does not
30879 inherit can_alias_all.
30880 (build_reference_type_for_mode): Likewise.
30882 2015-05-27 Eric Botcazou <ebotcazou@adacore.com>
30884 * expr.h (array_at_struct_end_p): Move to...
30885 (array_ref_element_size): Likewise.
30886 (component_ref_field_offset): Likewise.
30887 * tree.h (array_ref_element_size): ...here.
30888 (array_at_struct_end_p): Likewise.
30889 (component_ref_field_offset): Likewise.
30890 * expr.c (array_ref_element_size): Move to...
30891 (array_ref_low_bound): Likewise.
30892 (array_at_struct_end_p): Likewise.
30893 (array_ref_up_bound): Likewise.
30894 (component_ref_field_offset): Likewise.
30895 * tree.c (array_ref_element_size): ...here.
30896 (array_ref_low_bound): Likewise.
30897 (array_ref_up_bound): Likewise.
30898 (array_at_struct_end_p): Likewise.
30899 (component_ref_field_offset): Likewise.
30901 2015-05-27 Gregor Richards <gregor.richards@uwaterloo.ca>
30902 Szabolcs Nagy <szabolcs.nagy@arm.com>
30904 * config/aarch64/aarch64-linux.h (MUSL_DYNAMIC_LINKER): Define.
30906 2015-05-27 Jason Merrill <jason@redhat.com>
30909 * configure.ac: Use ACX_PROG_CXX_WARNING_OPTS,
30910 ACX_PROG_CXX_WARNING_ALMOST_PEDANTIC, and
30911 ACX_PROG_CXX_WARNINGS_ARE_ERRORS.
30913 2015-05-22 Aditya Kumar <hiraditya@msn.com>
30915 * auto-profile.c (afdo_calculate_branch_prob): Break once has_sample
30918 * statistics.c (statistics_fini_pass): Print pass name.
30920 2015-05-27 Richard Biener <rguenther@suse.de>
30922 PR tree-optimization/66272
30924 2014-08-15 Richard Biener <rguenther@suse.de>
30926 PR tree-optimization/62031
30927 * tree-data-ref.c (dr_analyze_indices): Do not set
30928 DR_UNCONSTRAINED_BASE.
30929 (dr_may_alias_p): All indirect accesses have to go the
30930 formerly DR_UNCONSTRAINED_BASE path.
30931 * tree-data-ref.h (struct indices): Remove
30932 unconstrained_base member.
30933 (DR_UNCONSTRAINED_BASE): Remove.
30935 2015-05-27 Aldy Hernandez <aldyh@redhat.com>
30937 * dwarf2out.c: Remove block_map.
30938 (gen_call_site_die): Replace block_map use with BLOCK_DIE.
30939 (gen_lexical_block_die): Same.
30940 (dwarf2out_function_decl): Remove block_map use.
30941 (dwarf2out_c_finalize): Same.
30942 * tree-core.h (struct tree_block): Add die field.
30943 * tree.h (BLOCK_DIE): New.
30945 2015-05-27 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
30948 * expr.c (memory_load_overlap): New function.
30949 (emit_push_insn): When pushing partial args to the stack would
30950 clobber the register part load the overlapping part into a pseudo
30951 and put it into the hard reg after pushing. Change return type
30952 to bool. Add bool argument.
30953 * expr.h (emit_push_insn): Change return type to bool.
30955 * calls.c (expand_call): Cancel sibcall optimization when encountering
30956 partial argument on targets with ARGS_GROW_DOWNWARD and
30957 !STACK_GROWS_DOWNWARD.
30958 (emit_library_call_value_1): Update callsite of emit_push_insn.
30959 (store_one_arg): Likewise.
30961 2015-05-27 Gregor Richards <gregor.richards@uwaterloo.ca>
30963 * config/arm/linux-eabi.h (MUSL_DYNAMIC_LINKER): Define.
30965 2015-05-27 Martin Liska <mliska@suse.cz>
30967 * Makefile.in: Add additional dependencies related to memory report
30969 * alloc-pool.c (allocate_pool_descriptor): Use new ctor.
30970 * bitmap.c (struct bitmap_descriptor_d): Remove.
30971 (struct loc): Likewise.
30972 (struct bitmap_desc_hasher): Likewise.
30973 (bitmap_desc_hasher::hash): Likewise.
30974 (bitmap_desc_hasher::equal): Likewise.
30975 (get_bitmap_descriptor): Likewise.
30976 (bitmap_register): User new memory descriptor API.
30977 (register_overhead): Likewise.
30978 (bitmap_find_bit): Register nsearches and search_iter statistics.
30979 (struct bitmap_output_info): Remove.
30980 (print_statistics): Likewise.
30981 (dump_bitmap_statistics): Use new memory descriptor.
30982 * bitmap.h (struct bitmap_usage): New class.
30983 * genmatch.c: Extend header file inclusion.
30984 * genpreds.c: Likewise.
30985 * ggc-common.c (struct ggc_usage): New class.
30986 (struct ggc_loc_desc_hasher): Remove.
30987 (ggc_loc_desc_hasher::hash): Likewise.
30988 (ggc_loc_desc_hasher::equal): Likewise.
30989 (struct ggc_ptr_hash_entry): Likewise.
30990 (struct ptr_hash_hasher): Likewise.
30991 (ptr_hash_hasher::hash): Likewise.
30992 (ptr_hash_hasher::equal): Likewise.
30993 (make_loc_descriptor): Likewise.
30994 (ggc_prune_ptr): Likewise.
30995 (dump_ggc_loc_statistics): Use new memory descriptor.
30996 (ggc_record_overhead): Likewise.
30997 (ggc_free_overhead): Likewise.
30998 (final_cmp_statistic): Remove.
30999 (cmp_statistic): Likewise.
31000 (ggc_add_statistics): Liekwise.
31001 (ggc_prune_overhead_list): Likewise.
31002 * hash-map-traits.h: New file.
31003 * hash-map.h (struct default_hashmap_traits): Move the traits to a
31004 separate header file.
31005 * hash-set.h: Pass memory statistics info to ctor.
31006 * hash-table.c (void dump_hash_table_loc_statistics): New function.
31007 * hash-table.h (hash_table::hash_table): Add new ctor arguments.
31008 (hash_table::~hash_table): Register memory release operation.
31009 (hash_table::alloc_entries): Handle memory allocation operation.
31010 (hash_table::expand): Likewise.
31011 * inchash.c (iterative_hash_hashval_t): Move implementation to header
31013 (iterative_hash_host_wide_int): Likewise.
31014 * inchash.h (class hash): Likewise.
31015 * mem-stats-traits.h: New file.
31016 * mem-stats.h: New file.
31017 (mem_location): Add new class.
31018 (mem_usage): Likewise.
31019 (mem_alloc_description): Likewise.
31020 * sese.c: Add new header file inclusision.
31021 * toplev.c (dump_memory_report): Add report for hash_table, hash_map
31023 * tree-sra.c: Add new header file inclusision.
31024 * vec.c (struct vec_descriptor): Remove.
31025 (hash_descriptor): Likewise.
31026 (struct vec_usage): Likewise.
31027 (struct ptr_hash_entry): Likewise.
31028 (hash_ptr): Likewise.
31029 (eq_ptr): Likewise.
31030 (vec_prefix::register_overhead): Use new memory descriptor API.
31031 (vec_prefix::release_overhead): Likewise.
31032 (add_statistics): Remove.
31033 (dump_vec_loc_statistics): Use new memory descriptor API.
31034 * vec.h (struct vec_prefix): Likewise.
31035 (va_heap::reserve): Likewise.
31036 (va_heap::release): Likewise.
31037 * emit-rtl.c (gen_raw_REG): Fix passing MEM_STAT.
31039 2015-05-27 Richard Biener <rguenther@suse.de>
31041 * tree-vect-stmts.c (vectorizable_load): Initialize slp_perm
31042 earlier and remove ??? comment.
31043 (vect_analyze_stmt): If we are analyzing a pure SLP stmt
31044 and got called from loop analysis bail out. Always pass the SLP
31045 node to the vectorizable_* functions.
31046 * tree-vect-loop.c (vect_analyze_loop_operations): Remove
31047 the premature SLP check here.
31048 * tree-vect-slp.c (vect_detect_hybrid_slp_stmts): Dump hybrid
31049 detected SLP stmts.
31050 (vect_detect_hybrid_slp_1): Likewise.
31052 2015-05-26 Jeff Law <law@redhat.com>
31054 * combine.c (find_split_point): Verify that the shift count is a
31055 constant when choosing (plus (ashift ...)) as a split point.
31057 * tree-ssa-threadupdate.c: Replace 8 space sequences with tabs.
31058 No functional changes.
31060 2015-05-26 Jan Hubicka <hubicka@ucw.cz>
31062 * ipa-polymorphic-call.c
31063 (ipa_polymorphic_call_context::get_dynamic_type): Short circuit the
31064 case when call target is already known.
31066 2015-05-26 Oleg Endo <olegendo@gcc.gnu.org>
31069 * config/sh/sh.md (tstsi_t peephole2): Use gen_rtx_SET and
31070 take into account the case that operands[1] and operands[2]
31071 are the same register.
31073 2015-05-26 Michael Matz <matz@suse.de>
31075 PR middle-end/66251
31077 * tree-vect-stmts.c (vect_model_store_cost): Handled strided group
31079 (vect_create_vectorized_demotion_stmts): Always set
31080 STMT_VINFO_VEC_STMT, also with SLP.
31081 (vectorizable_store): Handle strided group stores.
31083 2015-05-26 Venkataramanan Kumar <venkataramanan.kumar@amd.com>
31086 * config/aarch64/aarch64.md
31087 (*adds_shift_imm_<mode>): New pattern.
31088 (*subs_shift_imm_<mode>): Likewise.
31089 (*adds_<optab><ALLX:mode>_shift_<GPI:mode>): Likewise.
31090 (*subs_<optab><ALLX:mode>_shift_<GPI:mode>): Likewise.
31091 (*add_uxt<mode>_shift2): Likewise.
31092 (*add_uxtsi_shift2_uxtw): Likewise.
31093 (*sub_uxt<mode>_shift2): Likewise.
31094 (*sub_uxtsi_shift2_uxtw): Likewise.
31096 2015-05-26 David Edelsohn <dje.gcc@gmail.com>
31098 * config/rs6000/constraints.md (Y, U): Use match_test.
31100 2015-05-26 Christian Bruel <christian.bruel@st.com>
31103 * config/arm/arm.c (arm_option_check_internal)
31104 (arm_option_params_internal): Check opts->target_flags to set macros.
31105 (TREE_TARGET_ARM, TREE_TARGET_THUMB)
31106 (TREE_TARGET_THUMB1, TREE_TARGET_THUMB2) Replace with...
31107 (TARGET_ARM_P, TARGET_THUMB_P, TARGET_THUMB1_P, TARGET_THUMB2_P)
31108 (builtin_define): Replaced with def_or_undef_macro.
31109 * config/arm/arm.h (TREE_TARGET_ARM, TREE_TARGET_THUMB)
31110 TREE_TARGET_THUMB1, TREE_TARGET_THUMB2) Redefine with...
31111 (TARGET_ARM_P, TARGET_THUMB_P, TARGET_THUMB1_P, TARGET_THUMB2_P)
31112 (TARGET_32BIT_P, TARGET_ARM_QBIT_P, TARGET_ARM_SAT_P, TARGET_IDIV_P)
31113 (TARGET_HAVE_LDREX_P, TARGET_HAVE_LDREXBH_P, TARGET_HAVE_LDREXD_P)
31114 (TARGET_ARM_FEATURE_LDREX_P)
31115 (TARGET_DSP_MULTIPLY_P, TARGET_INT_SIMD_P): New macros.
31116 * config/arm/arm-c.c (def_or_undef_macro): New function.
31117 (arm_cpu_cpp_builtins): Use def_or_undef_macro for macros definition.
31119 2015-05-26 Christian Bruel <christian.bruel@st.com>
31121 * c-common.h (builtin_define_with_int_value)
31122 (builtin_define_type_sizeof): Declare.
31123 * c-cppbuiltin.c (builtin_define_with_int_value)
31124 (builtin_define_type_sizeof): Externalize.
31125 (builtin_define_std): Cleanup declaration.
31126 * config/arm/arm-protos.h (arm_cpu_cpp_builtins): Declare.
31127 * config/arm/arm.h (TARGET_CPU_CPP_BUILTINS): Move macro defines into...
31128 * config/arm/arm-c.c (arm_cpu_cpp_builtins): New function.
31129 (builtin_define, builtin_assert): New macros.
31131 2015-05-26 Richard Biener <rguenther@suse.de>
31133 PR tree-optimization/66142
31134 * tree-ssa-sccvn.c (vn_reference_lookup_3): Manually compare
31135 MEM_REFs for the same base address.
31137 2015-05-26 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
31140 * tree.c (verify_type_variant): Do not check TYPE_NO_FORCE_BLK.
31142 2015-05-26 Jason Merrill <jason@redhat.com>
31144 * configure.ac: Set CXXFLAGS for ISL test.
31145 * configure: Regenerate.
31147 * configure.ac: Use C++ for all tests. Use AC_CHECK_DECLS for
31148 strstr and basename.
31149 * configure: Regenerate.
31151 2015-05-26 Richard Biener <rguenther@suse.de>
31153 * fold-const.c (fold_binary_loc): Move X % -Y -> X % Y and
31154 X % C -> X & (C - 1) for C being a power-of two to ...
31155 * match.pd: ... patterns.
31157 2015-05-26 Marc Glisse <marc.glisse@inria.fr>
31159 * match.pd (swapped_tcc_comparison): New operator list.
31160 (-A CMP -B): New simplification.
31161 * fold-const.c (fold_comparison): Remove corresponding code.
31163 2015-05-26 Richard Sandiford <richard.sandiford@arm.com>
31165 * caller-save.c (init_caller_save): Base temporary register numbers
31166 on LAST_VIRTUAL_REGISTER + 1 rather than FIRST_PSEUDO_REGISTER.
31167 * cfgloopanal.c (init_set_costs): Likewise.
31168 * dojump.c (prefer_and_bit_test): Likewise.
31169 * expr.c (init_expr_target): Likewise.
31170 * ira.c (setup_prohibited_mode_move_regs): Likewise.
31171 * lower-subreg.c (init_lower_subreg): Likewise.
31172 * postreload.c (reload_cse_regs_1): Likewise.
31174 2015-05-26 Richard Sandiford <richard.sandiford@arm.com>
31176 * gensupport.h (compute_test_codes): Declare.
31177 * gensupport.c (compute_predicate_codes): Rename to...
31178 (compute_test_codes): ...this. Generalize error message.
31179 (process_define_predicate): Update accordingly.
31180 * genpreds.c (compute_maybe_allows): Delete.
31181 (add_constraint): Use compute_test_codes to determine whether
31182 something can accept a SUBREG, REG or MEM.
31184 2015-05-26 Torvald Riegel <triegel@redhat.com>
31186 * doc/extend.texi (__atomic Builtins): Use 'memory order' instead of
31187 'memory model' to align with C++11; fix description of memory orders;
31190 2015-05-26 Richard Biener <rguenther@suse.de>
31192 * tree-vect-loop.c (vect_update_vf_for_slp): Split out from ...
31193 (vect_analyze_loop_operations): ... here. Remove slp parameter,
31194 detect whether we apply SLP. Remove call to
31195 vect_update_slp_costs_according_to_vf.
31196 (vect_analyze_loop_2): Call vect_update_vf_for_slp and
31197 vect_update_slp_costs_according_to_vf from here. Dispatch
31198 to vect_slp_analyze_operations to analyze SLP stmts.
31199 * tree-vect-slp.c (vect_slp_analyze_node_operations): Drop
31200 unused bb_vec_info parameter, adjust assert.
31201 (vect_slp_analyze_operations): Pass in the slp instance tree
31202 instead of bb_vec_info.
31203 (vect_slp_analyze_bb_1): Adjust call to vect_slp_analyze_operations.
31204 * tree-vectorizer.h (vect_slp_analyze_operations): Declare.
31206 2015-05-25 Alexander Monakov <amonakov@ispras.ru>
31208 * config/i386/i386.h (enum reg_class): Move CLOBBERED_REGS prior to
31209 Q_REGS. Expand comment.
31210 (REG_CLASS_NAMES): Ditto.
31211 (REG_CLASS_CONTENTS): Ditto.
31213 2015-05-25 Uros Bizjak <ubizjak@gmail.com>
31216 * config/i386/i386.c (print_reg): Only print "r" for TARGET_64BIT
31217 when LEGACY_INT_REGNO_P is processed.
31219 2015-05-25 Alexander Monakov <amonakov@ispras.ru>
31221 * config/i386/i386.c (ix86_function_ok_for_sibcall): Check flag_plt.
31223 2015-05-25 Pitchumani Sivanupandi <pitchumani.s@atmel.com>
31225 * config/avr/avr.c (avr_out_load_psi_reg_no_disp_tiny): Restore base
31226 register if not marked dead/unused, before return.
31228 2015-05-24 Jan Hubicka <hubicka@ucw.cz>
31231 * ipa-devirt.c (type_with_linkage): Check that TYPE_STUB_DECL
31232 is set; check for assembler name at LTO time.
31233 (type_in_anonymous_namespace): Remove hacks, check that all
31234 anonymous types are called "<anon>"
31235 (odr_type_p): Simplify; add check for "<anon>"
31236 (odr_subtypes_equivalent): Add odr_type_p check.
31237 * tree.c (need_assembler_name_p): Even anonymous namespace needs
31240 2015-05-24 Jan Hubicka <hubicka@ucw.cz>
31242 * ipa-utils.h (method_class_type): Remove.
31243 * cgraphunit.c (walk_polymorphic_call_targets): Use
31244 TYPE_METHOD_BASETYPE.
31245 * ipa-devirt.c (type_in_anonymous_namespace_p): Check that it is called
31246 on main variants only.
31247 (method_class_type): Remove.
31248 (update_type_inheritance_graph): Use TYPE_METHOD_BASETYPE.
31249 (build_type_inheritance_graph): Likewise.
31250 * ipa-icf.c (sem_function::equals_wpa): Likewise.
31251 * pa-polymorphic-call.c (decl_maybe_in_construction_p,
31252 check_stmt_for_type_change): Use TYPE_METHOD_BASETYPE.
31254 2015-05-24 Jan Hubicka <hubicka@ucw.cz>
31256 * tree.c (prototype_p, virtual_method_call_p, obj_type_ref_class,
31257 is_typedef_decl, typedef_variant_p): Constify.
31258 * tree.h (prototype_p, virtual_method_call_p, obj_type_ref_class,
31259 is_typedef_decl, typedef_variant_p): Constify.
31261 2015-05-23 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
31263 * defaults.h (gen_tablejump): New function.
31264 (HAVE_tablejump): Add default value.
31266 * stmt.c: Likewise.
31268 2015-05-23 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
31270 * defaults.h (gen_store_multiple): New function.
31271 (HAVE_store_multiple): Add default value.
31272 * expr.c (move_block_from_reg): Adjust.
31274 2015-05-23 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
31276 * defaults.h (gen_load_multiple): New function.
31277 (HAVE_load_multiple): Add default value.
31278 * expr.c (move_block_to_reg): Adjust.
31280 2015-05-23 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
31282 * defaults.h (gen_mem_signal_fence): New function.
31283 (HAVE_mem_signal_fence): Add default value.
31284 * optabs.c: Adjust.
31286 2015-05-23 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
31288 * defaults.h (gen_memory_barrier): New function.
31289 (HAVE_memory_barrier): Add default value.
31290 * optabs.c: Adjust.
31292 2015-05-23 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
31294 * defaults.h (gen_mem_thread_fence): New function.
31295 (HAVE_mem_thread_fence): Add default definition.
31296 * optabs.c: Adjust.
31298 2015-05-23 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
31300 * combine.c (find_split_point): Check the value of HAVE_lo_sum
31301 instead of if it is defined.
31302 (combine_simplify_rtx): Likewise.
31303 * lra-constraints.c (process_address_1): Likewise.
31304 * config/darwin.c: Adjust.
31305 * genconfig.c (main): Always define HAVE_lo_sum.
31307 2015-05-23 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
31309 * genmatch.c (parser::parse_operation): Reject expanding
31310 operator-list inside 'for'.
31312 2015-05-23 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
31314 * genmatch.c (parser::parse_for): Reject iterator if used as
31317 2015-05-23 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
31319 * genmatch.c (parser::parse_operator_list): Check for CPP_CLOSE_PAREN
31320 after end of id-list.
31322 2015-05-22 Jan Hubicka <hubicka@ucw.cz>
31324 * tree.c (gimple_canonical_types_compatible_p): Sanity check that
31325 we do not try to compute canonical type for type that does not need
31327 (verify_type): Drop FIXME for METHOD_TYPE, update FIXME for
31329 * tree.h (type_with_alias_set_p): New.
31331 2015-05-22 Jan Hubicka <hubicka@ucw.cz>
31333 * tree.c (gimple_canonical_types_compatible_p): Do not compare
31334 function attributes.
31335 (verify_type): Remove METHOD_TYPE FIXME; update FUNCTION_TYPE.
31337 2015-05-22 Jim Wilson <jim.wilson@linaro.org>
31339 * Makefile.in (check_gcc_parallelize): Delete.
31340 (lang_checks_parallelized): Update comment.
31342 2015-05-22 Mikhail Maltsev <maltsevm@gmail.com>
31344 PR rtl-optimization/66237
31345 * bb-reorder.c (fix_crossing_conditional_branches): Fix wrong
31346 location of an "as_a" cast.
31348 2015-05-22 Jeff Law <law@redhat.com>
31350 * config/pa/pa.md (non-canonical shift-add insns): Remove.
31351 (peepholes with non-canonical RTL sources): Remove.
31352 (peepholes for indexed stores of FP regs in integer modes): Match and
31353 generate canonical RTL.
31355 2015-05-22 Marc Glisse <marc.glisse@inria.fr>
31357 PR tree-optimization/63387
31358 * match.pd ((X /[ex] A) * A -> X): Remove unnecessary condition.
31359 ((x ord x) & (y ord y) -> (x ord y),
31360 (x ord x) & (x ord y) -> (x ord y)): New simplifications.
31361 * fold-const.c (tree_unary_nonnegative_warnv_p) <ABS_EXPR>: Handle
31362 vectors like scalars.
31364 2015-05-22 Marc Glisse <marc.glisse@inria.fr>
31366 * convert.c (convert_to_integer, convert_to_vector): Include the
31367 types in the error message.
31369 2015-05-22 Marc Glisse <marc.glisse@inria.fr>
31371 * match.pd ((x | y) & ~x -> y & ~x, (x & y) | ~x -> y | ~x): New
31374 2015-05-22 Jeff Law <law@redhat.com>
31376 * config/pa/pa.md (integer_indexed_store splitters): Use
31377 mem_shadd_operand. Use ASHIFT rather than MULT in the resulting
31378 insns -- adjusting the constant 2nd operand accordingly.
31380 * combine.c (try_combine): Canonicalize (plus (mult X pow2) Y) into
31381 (plus (ashift X log2) Y) if it is a split point.
31383 * config/pa/pa.c (mem_shadd_or_shadd_rtx_p): New function factoredx
31384 out of hppa_legitimize_address to handle both forms of a multiply
31386 (hppa_legitimize_address): Use mem_shadd_or_shadd_rtx_p.
31387 Always generate the ASHIFT variant as the result is not directly
31388 used in a MEM. Update comments and refactor slightly to improve
31391 2015-05-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
31394 * config/aarch64/aarch64.c (aarch64_short_vector_p): Move above
31395 aarch64_composite_type_p. Remove check for aarch64_composite_type_p.
31396 (aarch64_composite_type_p): Return false if given type and mode are
31397 for a short vector.
31399 2015-05-22 Richard Biener <rguenther@suse.de>
31401 * tree-vectorizer.h (struct _slp_oprnd_info): Add second_pattern
31403 * tree-vect-loop.c (vect_analyze_loop_operations): Look at
31404 patterns when determining whether SLP is pure.
31405 (vect_is_slp_reduction): Remove check for pattern stmts.
31406 (vect_is_simple_reduction_1): Remove dead code.
31407 * tree-vect-slp.c (vect_create_oprnd_info): Initialize second_pattern.
31408 (vect_get_and_check_slp_defs): Pass in the stmt number.
31409 Allow the first def in a reduction to be not a pattern stmt when
31410 the rest of the stmts def are patterns.
31411 (vect_build_slp_tree_1): Allow tcc_expression codes like
31412 SAD_EXPR and DOT_PROD_EXPR.
31413 (vect_build_slp_tree): Adjust.
31414 (vect_analyze_slp): Refactor and move BB vect error message ...
31415 (vect_slp_analyze_bb_1): ... here.
31417 2015-05-22 Aldy Hernandez <aldyh@redhat.com>
31419 * tree-switch-conversion.c (build_one_array): Set DECL_IGNORED_P
31420 for CSWTCH temporary.
31422 2015-05-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
31424 * config/arm/arm.c (arm_new_rtx_costs): Handle UNSPEC_VOLATILE.
31425 (arm_unspec_cost): Allow UNSPEC_VOLATILE. Do not recurse inside
31428 2015-05-22 Richard Biener <rguenther@suse.de>
31430 PR tree-optimization/66251
31431 * tree-vect-stmts.c (vectorizable_conversion): Properly
31432 set STMT_VINFO_VEC_STMT even for the SLP case.
31434 2015-05-22 Marek Polacek <polacek@redhat.com>
31436 * doc/extend.texi: Use @pxref instead of @xref.
31438 2015-05-22 hiraditya <hiraditya@msn.com>
31440 * gimple.h (gimple_expr_type): Refactor to make it concise. Remove
31443 2015-05-22 Richard Biener <rguenther@suse.de>
31445 PR tree-optimization/65701
31446 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment):
31447 Move peeling cost models into one place. Peel for alignment
31448 for single loads only if an aligned load is cheaper than
31451 2015-05-22 Marek Polacek <polacek@redhat.com>
31454 * doc/extend.texi (Enumerator Attributes): New section.
31455 Document syntax of enumerator attributes.
31457 2015-05-22 Richard Biener <rguenther@suse.de>
31459 * tree-vect-loop.c (get_reduction_op): New function.
31460 (vect_model_reduction_cost): Use it, add reduc_index parameter.
31461 Make ready for BB reductions.
31462 (vect_create_epilog_for_reduction): Use get_reduction_op.
31463 (vectorizable_reduction): Init reduc_index to a valid value.
31464 Adjust vect_model_reduction_cost call.
31465 * tree-vect-slp.c (vect_get_constant_vectors): Use the proper
31466 operand for reduction defaults. Add SAD_EXPR support.
31467 Assert we have a neutral op for SLP reductions.
31468 * tree-vect-stmts.c (vect_mark_stmts_to_be_vectorized): When
31469 walking pattern stmt ops only recurse to SSA names.
31471 2015-05-22 Richard Biener <rguenther@suse.de>
31473 * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Replace
31474 assert with guard, remove check on detected reduction.
31475 (vect_recog_sad_pattern): Likewise.
31476 (vect_recog_widen_sum_pattern): Likewise.
31478 2015-05-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
31480 * config/aarch64/arm_neon.h (vaeseq_u8): Add __extension__ and
31481 __always_inline__ attribute.
31482 (vaesdq_u8): Likewise.
31483 (vaesmcq_u8): Likewise.
31484 (vaesimcq_u8): Likewise.
31485 (vsha1cq_u32): Likewise.
31486 (vsha1mq_u32): Likewise.
31487 (vsha1pq_u32): Likewise.
31488 (vsha1h_u32): Likewise.
31489 (vsha1su0q_u32): Likewise.
31490 (vsha1su1q_u32): Likewise.
31491 (vsha256hq_u32): Likewise.
31492 (vsha256h2q_u32): Likewise.
31493 (vsha256su0q_u32): Likewise.
31494 (vsha256su1q_u32): Likewise.
31495 (vmull_p64): Likewise.
31496 (vmull_high_p64): Likewise.
31498 2015-05-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
31500 * final.c (final_scan_insn): Don't check HAVE_peephole with the
31502 * output.h: Likewise.
31503 * genconfig.c (main): Alwways define HAVE_peephole.
31504 * genpeep.c: Don't emit checks of HAVE_peephole.
31506 2015-05-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
31508 * combine.c, expmed.c, expr.c, optabs.c optabs.h, toplev.c: DOn't
31509 check HAVE_conditional_move with the preprocessor.
31511 2015-05-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
31513 * genconfig.c (main): Always define HAVE_conditional_move.
31514 * combine.c, expmed.c, expr.c, ifcvt.c, optabs.c, optabs.h,
31515 toplev.c, tree-ssa-phiopt.c: Don't check if HAVE_conditional_move
31518 2015-05-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
31520 * combine.c, df-problems.c, df-scan.c, emit-rtl.c, reginfo.c,
31521 reload.c, rtlanal.c: Remove comparison of ARG_FRAME_POINTER_REGNUM
31522 and FRAME_POINTER_REGNUM with the preprocessor.
31524 2015-05-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
31526 * defaults.h: Add default for STACK_PUSH_CODE.
31527 * expr.c: Don't redefine STACK_PUSH_CODE.
31528 * recog.c: Likewise.
31530 2015-05-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
31532 * builtins.c, dwarf2cfi.c, explow.c, expr.c, recog.c,
31533 sched-deps.c: Use if instead of preprocessor checks with
31534 STACK_GROWS_DOWNWARD.
31536 2015-05-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
31538 * *.c: Check the value of STACK_GROWS_DOWNWARD rather than if it
31540 * config/**/*.h: Define STACK_GROWS_DOWNWARD to an integer.
31541 * defaults.h: Provide default for STACK_GROWS_DOWNWARD.
31542 * doc/tm.texi.in: Update references to STACK_GROWS_DOWNWARD.
31543 * doc/tm.texi: Regenerate.
31545 2015-05-21 H.J. Lu <hongjiu.lu@intel.com>
31548 * config/i386/constraints.md (Bg): New constraint for GOT memory
31550 * config/i386/i386.md (*call_got_x32): New pattern.
31551 (*call_value_got_x32): Likewise.
31552 * config/i386/predicates.md (GOT_memory_operand): New predicate.
31554 2015-05-21 Jakub Jelinek <jakub@redhat.com>
31556 PR tree-optimization/66233
31557 * match.pd (ocvt (icvt@1 @0)): Don't handle vector types.
31560 2015-05-21 Jeff Law <law@redhat.com>
31562 * config/pa/pa.md (add-with-constant splitter): Use ASHIFT rather
31563 than MULT for shadd sequences.
31565 2015-05-08 Jan Hubicka <hubicka@ucw.cz>
31567 * alias.c (alias_stats): New static var.
31568 (alias_sets_conflict_p, alias_sets_must_conflict_p): Update stats.
31569 (dump_alias_stats_in_alias_c): New function.
31570 * alias.h (dump_alias_stats_in_alias_c): Declare.
31571 * tree-ssa-alias.c (dump_alias_stats): Call it.
31573 2015-05-08 Michael Matz <matz@suse.de>
31575 * tree-vectorizer.h (struct _stmt_vec_info): Rename stride_load_p
31577 (STMT_VINFO_STRIDE_LOAD_P): Rename to ...
31578 (STMT_VINFO_STRIDED_P): ... this.
31579 * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Adjust.
31580 (vect_verify_datarefs_alignment): Likewise.
31581 (vect_enhance_data_refs_alignment): Likewise.
31582 (vect_analyze_data_ref_access): Likewise.
31583 (vect_analyze_data_refs): Accept strided stores.
31584 * tree-vect-stmts.c (vect_model_store_cost): Count strided stores.
31585 (vect_model_load_cost): Adjust for macro rename.
31586 (vectorizable_mask_load_store): Likewise.
31587 (vectorizable_load): Likewise.
31588 (vectorizable_store): Open code strided stores.
31590 2015-05-21 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
31592 * doc/sourcebuild.texi (7.2.3.9 Other hardware attributes):
31593 Document sqrt_insn.
31595 2015-05-21 Richard Biener <rguenther@suse.de>
31598 * match.pd: Guard pattern optimzing (int)(float)int
31599 conversions to apply only on GIMPLE.
31601 2015-05-21 Jeff Law <law@redhat.com>
31603 * combine.c (find_split_point): Handle ASHIFT like MULT to encourage
31604 multiply-accumulate/shift-add insn generation.
31606 2015-05-21 Oleg Endo <olegendo@gcc.gnu.org>
31609 * config/sh/sh.md (*round_int_even): Reject pattern if operands[0] and
31610 operands[1] are the same.
31612 2015-05-21 Ilya Enkovich <enkovich.gnu@gmail.com>
31614 PR middle-end/66221
31615 * ipa-chkp.c (chkp_copy_function_type_adding_bounds): Use
31616 build_distinct_type_copy to copy bounds.
31618 2015-05-21 Thomas Schwinge <thomas@codesourcery.com>
31620 * genrecog.c (MAX_DEPTH, MIN_NUM_STATEMENTS, MAX_NUM_STATEMENTS):
31621 Change to unsigned int.
31623 2015-05-20 Jeff Law <law@redhat.com>
31625 * config/pa/pa.c (pa_print_operand): New 'o' output modifier.
31626 (pa_mem_shadd_constant_p): Renamed from pa_shadd_constant_p.
31627 (pa_shadd_constant_p): Allow constants for shadd insns rather
31628 than valid scaling constants for memory addresses.
31629 * config/pa/pa-protos.h (pa_mem_shadd_constant_p): Add prototype.
31630 * config/pa/predicates.md (mem_shadd_operand): New predicate.
31631 * config/pa/pa.md (shift-add insns using MULT): Use mem_shadd_operand.
31632 (shift-add insns using ASHIFT): New patterns.
31634 2015-05-20 Mikhail Maltsev <maltsevm@gmail.com>
31636 * bb-reorder.c (set_edge_can_fallthru_flag): Use rtx_jump_insn where
31638 (fix_up_fall_thru_edges): Likewise.
31639 (fix_crossing_conditional_branches): Likewise. Promote jump targets
31640 from to rtx_insn to rtx_code_label where feasible.
31641 * bt-load.c (move_btr_def): Remove as-a cast of the value returned by
31642 gen_move_insn (returned type changed to rtx_insn).
31643 * builtins.c (expand_errno_check): Fix arguments of
31644 do_compare_rtx_and_jump (now expects rtx_code_label).
31645 (expand_builtin_acc_on_device): Likewise.
31646 * cfgcleanup.c (try_simplify_condjump): Add cast when calling
31647 invert_jump (now exprects rtx_jump_insn).
31648 * cfgexpand.c (label_rtx_for_bb): Promote return type to rtx_code_label.
31649 (construct_init_block): Use rtx_code_label.
31650 * cfgrtl.c (block_label): Promote return type to rtx_code_label.
31651 (try_redirect_by_replacing_jump): Use cast to rtx_jump_insn when
31652 calling redirect_jump.
31653 (patch_jump_insn): Likewise.
31654 (redirect_branch_edge): Likewise.
31655 (force_nonfallthru_and_redirect): Likewise.
31656 (fixup_reorder_chain): Explicitly use rtx_jump_insn instead of rtx_insn
31658 (rtl_lv_add_condition_to_bb): Update call of do_compare_rtx_and_jump.
31659 * cfgrtl.h: Promote return type of block_label to rtx_code_label.
31660 * config/bfin/bfin.c (hwloop_optimize): Fix call of emit_label_before.
31661 * config/i386/i386.c (ix86_emit_cmove): Explicitly use rtx_code_label
31662 to store the value retured by gen_label_rtx.
31663 * config/mips/mips.c (mips16_split_long_branches): Promote rtx_insn to
31665 * config/sh/sh.c (gen_far_branch): Likewise. Fix call of invert_jump.
31666 (split_branches): Fix calls of redirect_jump.
31667 * dojump.c (jumpifnot): Promote argument type from rtx to
31669 (jumpifnot_1): Likewise.
31670 (jumpif): Likewise.
31671 (jumpif_1): Likewise.
31672 (do_jump_1): Likewise.
31673 (do_jump): Likewise. Use rtx_code_label when feasible.
31674 (do_jump_by_parts_greater_rtx): Likewise.
31675 (do_jump_by_parts_zero_rtx): Likewise.
31676 (do_jump_by_parts_equality_rtx): Likewise.
31677 (do_compare_rtx_and_jump): Likewise.
31678 * dojump.h: Update function prototypes.
31679 * dse.c (emit_inc_dec_insn_before): Remove case (gen_move_insn now
31681 * emit-rtl.c (emit_jump_insn_before_noloc): Promote return type to
31683 (emit_label_before): Likewise.
31684 (emit_jump_insn_after_noloc): Likewise.
31685 (emit_jump_insn_after_setloc): Likewise.
31686 (emit_jump_insn_after): Likewise
31687 (emit_jump_insn_before_setloc): Likewise.
31688 (emit_jump_insn_before): Likewise.
31689 (emit_label_before): Promote return type to rtx_code_label.
31690 (emit_label): Likewise.
31691 * except.c (sjlj_emit_dispatch_table): Use jump_target_rtx.
31692 * explow.c (emit_stack_save): Use gen_move_insn_uncast instead of
31694 (emit_stack_restore): Likewise.
31695 * expmed.c (emit_store_flag_force): Fix calls of do_compare_rtx_and_jump.
31696 (do_cmp_and_jump): Likewise.
31697 * expr.c (expand_expr_real_2): Likewise. Promote some local variables
31698 from rtx to rtx_code_label.
31699 (gen_move_insn_uncast): New function.
31700 * expr.h: Update return type of gen_move_insn (promote to rtx_insn).
31701 * function.c (convert_jumps_to_returns): Fix call of redirect_jump.
31702 * gcse.c (pre_insert_copy_insn): Use rtx_insn instead of rtx.
31703 * ifcvt.c (dead_or_predicable): Use rtx_jump_insn when calling
31704 invert_jump_1 and redirect_jump_1.
31705 * internal-fn.c (expand_arith_overflow_result_store): Fix call of
31706 do_compare_rtx_and_jump.
31707 (expand_addsub_overflow): Likewise.
31708 (expand_neg_overflow): Likewise.
31709 (expand_mul_overflow): Likewise.
31710 * ira.c (split_live_ranges_for_shrink_wrap): Use rtx_insn for
31711 return value of gen_move_insn.
31712 * jump.c (redirect_jump): Promote argument from rtx to rtx_jump_insn.
31713 * loop-doloop.c (add_test): Use rtx_code_label.
31714 (doloop_modify): Likewise.
31715 (doloop_optimize): Likewise.
31716 * loop-unroll.c (compare_and_jump_seq): Promote rtx to rtx_code_label.
31717 * lra-constraints.c (emit_spill_move): Remove cast of value returned
31719 (inherit_reload_reg): Add cast when calling dump_insn_slim.
31720 (split_reg): Likewise.
31721 * modulo-sched.c (schedule_reg_moves): Remove cast of value returned by
31723 * optabs.c (expand_binop_directly): Remove casts of values returned by
31725 (expand_unop_direct): Likewise.
31726 (expand_abs): Likewise.
31727 (maybe_emit_unop_insn): Likewise.
31728 (maybe_gen_insn): Promote return type to rtx_insn.
31729 * optabs.h: Update prototype of maybe_gen_insn.
31730 * postreload-gcse.c (eliminate_partially_redundant_load): Remove
31732 * recog.c (struct peep2_insn_data): Promote type of insn field to
31734 (peep2_reinit_state): Use NULL instead of NULL_RTX.
31735 (peep2_attempt): Remove casts of insn in peep2_insn_data.
31736 (peep2_fill_buffer): Promote argument from rtx to rtx_insn
31737 * recog.h (struct insn_gen_fn): Promote return types of function
31738 pointers and operator ().from rtx to rtx_insn.
31739 * reorg.c (fill_simple_delay_slots): Promote rtx_insn to rtx_jump_insn.
31740 (fill_eager_delay_slots): Likewise.
31741 (relax_delay_slots): Likewise.
31742 (make_return_insns): Likewise.
31743 (dbr_schedule): Likewise.
31744 (optimize_skips): Likewise.
31745 (reorg_redirect_jump): Likewise.
31746 (fill_slots_from_thread): Likewise.
31747 * reorg.h: Update prototypes.
31748 * resource.c (find_dead_or_set_registers): Use dyn_cast to
31749 rtx_jump_insn instead of check. Use it's jump_target method.
31750 * rtl.h (rtx_jump_insn::jump_label): Define new method.
31751 (rtx_jump_insn::jump_target): Define new method.
31752 (rtx_jump_insn::set_jump_target): Define new method.
31753 * rtlanal.c (tablejump_p): Promote type of one local variable.
31754 * sched-deps.c (sched_analyze_2): Promote rtx to rtx_insn_list.
31755 (sched_analyze_insn): Likewise.
31756 * sched-vis.c (print_insn_with_notes): Promote rtx to rtx_insn.
31757 (print_insn): Likewise.
31758 * stmt.c (label_rtx): Promote return type to rtx_insn.
31759 (force_label_rtx): Likewise.
31760 (jump_target_rtx): Define new function.
31761 (expand_label): Use it, get rid of one cast.
31762 (expand_naked_return): Promote rtx to rtx_code_label.
31763 (do_jump_if_equal): Fix do_compare_rtx_and_jump call.
31764 (expand_case): Use rtx_code_label instread of rtx where feasible.
31765 (expand_sjlj_dispatch_table): Likewise.
31766 (emit_case_nodes): Likewise.
31767 * stmt.h: Declare jump_target_rtx. Update prototypes. Fix comments.
31768 * store-motion.c (insert_store): Make use of new return type of
31769 gen_move_insn and remove a cast.
31770 (replace_store_insn): Likewise.
31772 2015-05-20 Max Filippov <jcmvbkbc@gmail.com>
31774 * config/xtensa/xtensa.c (init_alignment_context): Replace MULT
31775 by BITS_PER_UNIT with ASHIFT by exact_log2 (BITS_PER_UNIT).
31777 2015-05-20 Jeff Law <law@redhat.com>
31779 * tree-ssa-threadupdate.c (mark_threaded_blocks): Properly
31780 dispose of the jump thread path when the jump threading
31781 opportunity is cancelled.
31783 2015-05-20 Manuel López-Ibáñez <manu@gcc.gnu.org>
31785 * diagnostic.c (diagnostic_print_caret_line): Fix off-by-one error
31786 when printing the caret character.
31788 2015-05-20 Marek Polacek <polacek@redhat.com>
31790 * cfgexpand.c (expand_debug_expr): Use UNARY_CLASS_P.
31792 2015-05-20 Marek Polacek <polacek@redhat.com>
31794 * expr.c (expand_cond_expr_using_cmove): Use COMPARISON_CLASS_P.
31795 * gimple-expr.c (gimple_cond_get_ops_from_tree): Likewise.
31796 * gimple-fold.c (canonicalize_bool): Likewise.
31797 (same_bool_result_p): Likewise.
31798 * tree-if-conv.c (parse_predicate): Likewise.
31800 2015-05-20 Marek Polacek <polacek@redhat.com>
31802 * gimple-fold.c (fold_const_aggregate_ref_1): Use DECL_P.
31803 * gimplify.c (gimplify_modify_expr_rhs): Likewise.
31805 2015-05-20 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
31807 * config/aarch64/aarch64.c (aarch64_class_max_nregs):
31808 Use UNITS_PER_VREG and UNITS_PER_WORD instead of their direct
31811 2015-05-20 Robert Suchanek <robert.suchanek@imgtec.com>
31813 * config/mips/mips.h (micromips_globals): Declare.
31815 2015-05-20 David Malcolm <dmalcolm@redhat.com>
31817 * timevar.def (TV_INITIALIZE_RTL): New.
31818 * toplev.c (initialize_rtl): Use an auto_timevar to account this
31819 function's time to TV_INITIALIZE_RTL.
31821 2015-05-20 Ilya Enkovich <enkovich.gnu@gmail.com>
31823 * tree-chkp.c (chkp_maybe_copy_and_register_bounds): Remove useless
31824 gimple_build_nop calls.
31825 (chkp_find_bounds_for_elem): Likewise.
31826 (chkp_get_zero_bounds): Likewise.
31827 (chkp_get_none_bounds): Likewise.
31828 (chkp_get_bounds_by_definition): Likewise.
31829 (chkp_generate_extern_var_bounds): Likewise.
31830 (chkp_get_bounds_for_decl_addr): Likewise.
31831 (chkp_get_bounds_for_string_cst): Likewise.
31833 2015-05-20 Bin Cheng <bin.cheng@arm.com>
31835 PR tree-optimization/65447
31836 * tree-ssa-loop-ivopts.c (struct iv_use): New fields.
31837 (dump_use, dump_uses): Support to dump sub use.
31838 (record_use): New parameters to support sub use. Remove call to
31840 (record_sub_use, record_group_use): New functions.
31841 (compute_max_addr_offset, split_all_small_groups): New functions.
31842 (group_address_uses, rewrite_use_address): New functions.
31843 (strip_offset): New declaration.
31844 (find_interesting_uses_address): Call record_group_use.
31845 (add_candidate): New assertion.
31846 (infinite_cost_p): Move definition forward.
31847 (add_costs): Check INFTY cost and return immediately.
31848 (get_computation_cost_at): Clear setup cost and dependent bitmap
31850 (determine_use_iv_cost_address): Compute cost for sub uses.
31851 (rewrite_use_address_1): Rename from old rewrite_use_address.
31852 (free_loop_data): Free sub uses.
31853 (tree_ssa_iv_optimize_loop): Call group_address_uses.
31855 2015-05-20 Kugan Vivekanandarajah <kuganv@linaro.org>
31856 Jim Wilson <jim.wilson@linaro.org>
31858 * config/arm/aarch-common-protos.h (struct mem_cost_table): Added
31859 new fields loadv and storev.
31860 * config/aarch64/aarch64-cost-tables.h (thunderx_extra_costs):
31861 Initialize loadv and storev.
31862 * config/arm/aarch-cost-tables.h (generic_extra_costs): Likewise.
31863 (cortexa53_extra_costs): Likewise.
31864 (cortexa57_extra_costs): Likewise.
31865 (xgene1_extra_costs): Likewise.
31866 * config/aarch64/aarch64.c (aarch64_rtx_costs): Update vector
31869 2015-05-20 Kugan Vivekanandarajah <kuganv@linaro.org>
31871 * config/arm/arm.c (cortexa9_extra_costs): Initialize loadv and
31873 (cortexa8_extra_costs): Likewise.
31874 (cortexa5_extra_costs): Likewise.
31875 (cortexa7_extra_costs): Likewise.
31876 (cortexa12_extra_costs): Likewise.
31877 (cortexa15_extra_costs): Likewise.
31878 (v7m_extra_costs): Likewise.
31880 2015-05-20 Jeff Law <law@redhat.com>
31882 * tree-ssa-threadupdate.c (thread_single_edge): Use delete_jump_thread
31883 instead of open-coded version. Also delete the jump thread created
31884 within this function.
31886 2015-05-20 Alan Modra <amodra@gmail.com>
31888 * config/rs6000/rs6000.c (rs6000_emit_allocate_stack): Return
31889 stack adjusting insn. Formatting.
31890 (rs6000_emit_prologue): Track stack adjusting insn, and use of
31891 r12. If possible, emit first -fsplit-stack arg pointer insn
31892 before stack adjust. Don't use r12 to save cr if split-stack.
31894 2015-05-20 Alan Modra <amodra@gmail.com>
31896 * common/config/rs6000/rs6000-common.c (TARGET_SUPPORTS_SPLIT_STACK):
31898 (rs6000_supports_split_stack): New function.
31899 * config/rs6000/rs6000.c (machine_function): Add
31900 split_stack_arg_pointer.
31901 (TARGET_EXTRA_LIVE_ON_ENTRY, TARGET_INTERNAL_ARG_POINTER): Define.
31902 (setup_incoming_varargs): Use crtl->args.internal_arg_pointer
31903 rather than virtual_incoming_args_rtx.
31904 (rs6000_va_start): Likewise.
31905 (split_stack_arg_pointer_used_p): New function.
31906 (rs6000_emit_prologue): Set up arg pointer for -fsplit-stack.
31907 (morestack_ref): New var.
31908 (gen_add3_const, rs6000_expand_split_stack_prologue,
31909 rs6000_internal_arg_pointer, rs6000_live_on_entry,
31910 rs6000_split_stack_space_check): New functions.
31911 (rs6000_elf_file_end): Call file_end_indicate_split_stack.
31912 * config/rs6000/rs6000.md (UNSPEC_STACK_CHECK): Define.
31913 (UNSPECV_SPLIT_STACK_RETURN): Define.
31914 (split_stack_prologue, load_split_stack_limit,
31915 load_split_stack_limit_di, load_split_stack_limit_si,
31916 split_stack_return, split_stack_space_check): New expands and insns.
31917 * config/rs6000/rs6000-protos.h
31918 (rs6000_expand_split_stack_prologue): Declare.
31919 (rs6000_split_stack_space_check): Declare.
31921 2015-05-20 Alan Modra <amodra@gmail.com>
31923 * config/rs6000/rs6000.c (struct rs6000_stack): Correct comments.
31924 (direct_return): Test vrsave_size rather than vrsave_mask.
31925 (rs6000_emit_prologue): Likewise. Remove redundant altivec tests.
31926 (rs6000_emit_epilogue): Likewise.
31928 2015-05-20 Alan Modra <amodra@gmail.com>
31930 * config/rs6000/rs6000.c (rs6000_stack_info): Don't zero offsets
31931 when not saving registers.
31932 (debug_stack_info): Adjust to omit printing unused offsets,
31934 (rs6000_emit_epilogue): Adjust use_backchain_to_restore_sp
31937 2015-05-19 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
31940 * config/i386/winnt.c (struct wrapped_symbol_hasher): Change
31941 value_type to const char *.
31943 2015-05-19 Sandra Loosemore <sandra@codesourcery.com>
31945 * config.gcc [powerpc*-*-linux*]: Allow --enable-targets=all
31946 to build a biarch toolchain again.
31948 2015-05-19 Jan Hubicka <hubicka@ucw.cz>
31950 * ipa-devirt.c (type_in_anonymous_namespace_p): Return true
31951 or implicit declarations.
31952 (odr_type_p): Check that TYPE_NAME is TYPE_DECL before looking
31954 (get_odr_type): Check type has linkage before adding bases.
31955 (register_odr_type): Check that type has linkage before adding it.
31956 (type_known_to_have_no_deriavations_p): Rename to ..
31957 (type_known_to_have_no_derivations_p): This one.
31958 * ipa-utils.h (type_known_to_have_no_deriavations_p): Rename to ..
31959 (type_known_to_have_no_derivations_p): This one.
31960 * ipa-polymorphic-call.c
31961 (ipa_polymorphic_call_context::restrict_to_inner_type): Check that
31964 2015-05-19 Eric Botcazou <ebotcazou@adacore.com>
31966 * stor-layout.c (finalize_type_size): Use AGGREGATE_TYPE_P.
31967 (layout_type): Use RECORD_OR_UNION_TYPE_P.
31969 2015-05-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
31971 * config/s390/s390.c (s390_vector_bool_type_p): New function.
31972 (s390_invalid_binary_op): New function.
31973 (TARGET_INVALID_BINARY_OP): Define macro.
31975 2015-05-19 David Sherwood <david.sherwood@arm.com>
31977 * loop-invariant.c (create_new_invariant): Don't calculate address cost
31978 if mode is not a scalar integer.
31979 (get_inv_cost): Increase computational cost for unused invariants.
31981 2015-05-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
31983 * config.gcc: Add vecintrin.h to extra_headers. Add s390-c.o to
31984 c_target_objs and cxx_target_objs. Add t-s390 to tmake_file.
31985 * config/s390/s390-builtin-types.def: New file.
31986 * config/s390/s390-builtins.def: New file.
31987 * config/s390/s390-builtins.h: New file.
31988 * config/s390/s390-c.c: New file.
31989 * config/s390/s390-modes.def: Add modes CCVEQANY, CCVH,
31990 CCVHANY, CCVHU, CCVHUANY, CCVFHANY, CCVFHEANY.
31991 * config/s390/s390-protos.h (s390_expand_vec_compare_cc)
31992 (s390_cpu_cpp_builtins, s390_register_target_pragmas): Add
31994 * config/s390/s390.c (s390-builtins.h, s390-builtins.def):
31996 (flags_builtin, flags_overloaded_builtin_var, s390_builtin_types)
31997 (s390_builtin_fn_types, s390_builtin_decls, code_for_builtin): New
31998 variable definitions.
31999 (s390_const_operand_ok): New function.
32000 (s390_expand_builtin): Rewrite.
32001 (s390_init_builtins): New function.
32002 (s390_handle_vectorbool_attribute): New function.
32003 (s390_attribute_table): Add s390_vector_bool attribute.
32004 (s390_match_ccmode_set): Handle new cc modes CCVH, CCVHU.
32005 (s390_branch_condition_mask): Generate masks for new modes.
32006 (s390_expand_vec_compare_cc): New function.
32007 (s390_mangle_type): Add mangling for vector bool types.
32008 (enum s390_builtin): Remove.
32009 (s390_atomic_assign_expand_fenv): Rename constants for sfpc and
32011 * config/s390/s390.h (TARGET_CPU_CPP_BUILTINS): Call
32012 s390_cpu_cpp_builtins.
32013 (REGISTER_TARGET_PRAGMAS): New macro.
32014 * config/s390/s390.md: Define more UNSPEC_VEC_* constants.
32015 (insn_cmp mode attribute): Add new CC modes.
32016 (s390_sfpc, s390_efpc): Rename patterns to sfpc and efpc.
32017 (lcbb): New pattern definition.
32018 * config/s390/s390intrin.h: Include vecintrin.h.
32019 * config/s390/t-s390: New file.
32020 * config/s390/vecintrin.h: New file.
32021 * config/s390/vector.md: Include vx-builtins.md.
32022 * config/s390/vx-builtins.md: New file.S/390 zvector builtin
32025 2015-05-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
32027 * config/s390/s390-modes.def: Add new modes CCVEQ, CCVFH, and
32029 * config/s390/s390.c (s390_match_ccmode_set): Handle new modes.
32030 (s390_select_ccmode): Likewise.
32031 (s390_canonicalize_comparison): Swap operands if necessary.
32032 (s390_expand_vec_compare_scalar): Expand DFmode compare using
32033 single element vector instructions.
32034 (s390_emit_compare): Call s390_expand_vec_compare_scalar.
32035 (s390_branch_condition_mask): Generate CC masks for the new modes.
32036 * config/s390/s390.md (v0, vf, vd): New mode attributes.
32037 (VFCMP, asm_fcmp, insn_cmp): New mode iterator and attributes.
32038 (*vec_cmp<insn_cmp>df_cconly, *fixuns_truncdfdi2_z13)
32039 (*fix_trunc<BFP:mode><GPR:mode>2_bfp, *floatunsdidf2_z13)
32040 (*floatuns<GPR:mode><FP:mode>2, *extendsfdf2_z13)
32041 (*extend<DSF:mode><BFP:mode>2): New insn definition.
32042 (fix_trunc<BFP:mode><GPR:mode>2_bfp, loatuns<GPR:mode><FP:mode>2)
32043 (extend<DSF:mode><BFP:mode>2): Turn into expander.
32044 (floatdi<mode>2, truncdfsf2, add<mode>3, sub<mode>3, mul<mode>3)
32045 (div<mode>3, *neg<mode>2, *abs<mode>2, *negabs<mode>2)
32046 (sqrt<mode>2): Add vector instruction.
32048 2015-05-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
32050 * config/s390/constraints.md (j00, jm1, jxx, jyy, v): New
32052 * config/s390/predicates.md (const0_operand, constm1_operand)
32053 (constable_operand): Accept vector operands.
32054 * config/s390/s390-modes.def: Add supported vector modes.
32055 * config/s390/s390-protos.h (s390_cannot_change_mode_class)
32056 (s390_function_arg_vector, s390_contiguous_bitmask_vector_p)
32057 (s390_bytemask_vector_p, s390_expand_vec_strlen)
32058 (s390_expand_vec_compare, s390_expand_vcond)
32059 (s390_expand_vec_init): Add prototypes.
32060 * config/s390/s390.c (VEC_ARG_NUM_REG): New macro.
32061 (s390_vector_mode_supported_p): New function.
32062 (s390_contiguous_bitmask_p): Mask out the irrelevant bits.
32063 (s390_contiguous_bitmask_vector_p): New function.
32064 (s390_bytemask_vector_p): New function.
32065 (s390_split_ok_p): Vector regs don't work either.
32066 (regclass_map): Add VEC_REGS.
32067 (s390_legitimate_constant_p): Handle vector constants.
32068 (s390_cannot_force_const_mem): Handle CONST_VECTOR.
32069 (legitimate_reload_vector_constant_p): New function.
32070 (s390_preferred_reload_class): Handle CONST_VECTOR.
32071 (s390_reload_symref_address): Likewise.
32072 (s390_secondary_reload): Vector memory instructions only support
32073 short displacements. Rename reload*_nonoffmem* to reload*_la*.
32074 (s390_emit_ccraw_jump): New function.
32075 (s390_expand_vec_strlen): New function.
32076 (s390_expand_vec_compare): New function.
32077 (s390_expand_vcond): New function.
32078 (s390_expand_vec_init): New function.
32079 (s390_dwarf_frame_reg_mode): New function.
32080 (print_operand): Handle addresses with 'O' and 'R' constraints.
32081 (NR_C_MODES, constant_modes): Add vector modes.
32082 (s390_output_pool_entry): Handle vector constants.
32083 (s390_hard_regno_mode_ok): Handle vector registers.
32084 (s390_class_max_nregs): Likewise.
32085 (s390_cannot_change_mode_class): New function.
32086 (s390_invalid_arg_for_unprototyped_fn): New function.
32087 (s390_function_arg_vector): New function.
32088 (s390_function_arg_float): Remove size variable.
32089 (s390_pass_by_reference): Handle vector arguments.
32090 (s390_function_arg_advance): Likewise.
32091 (s390_function_arg): Likewise.
32092 (s390_return_in_memory): Vector values are returned in a VR if
32094 (s390_function_and_libcall_value): Handle vector arguments.
32095 (s390_gimplify_va_arg): Likewise.
32096 (s390_call_saved_register_used): Consider the arguments named.
32097 (s390_conditional_register_usage): Disable v16-v31 for non-vec
32099 (s390_preferred_simd_mode): New function.
32100 (s390_support_vector_misalignment): New function.
32101 (s390_vector_alignment): New function.
32102 (TARGET_STRICT_ARGUMENT_NAMING, TARGET_DWARF_FRAME_REG_MODE)
32103 (TARGET_VECTOR_MODE_SUPPORTED_P)
32104 (TARGET_INVALID_ARG_FOR_UNPROTOTYPED_FN)
32105 (TARGET_VECTORIZE_PREFERRED_SIMD_MODE)
32106 (TARGET_VECTORIZE_SUPPORT_VECTOR_MISALIGNMENT)
32107 (TARGET_VECTOR_ALIGNMENT): Define target macro.
32108 * config/s390/s390.h (FUNCTION_ARG_PADDING): Define macro.
32109 (FIRST_PSEUDO_REGISTER): Increase value.
32110 (VECTOR_NOFP_REGNO_P, VECTOR_REGNO_P, VECTOR_NOFP_REG_P)
32111 (VECTOR_REG_P): Define macros.
32112 (FIXED_REGISTERS, CALL_USED_REGISTERS)
32113 (CALL_REALLY_USED_REGISTERS, REG_ALLOC_ORDER)
32114 (HARD_REGNO_CALL_PART_CLOBBERED, REG_CLASS_NAMES)
32115 (FUNCTION_ARG_REGNO_P, FUNCTION_VALUE_REGNO_P, REGISTER_NAMES):
32116 Add vector registers.
32117 (CANNOT_CHANGE_MODE_CLASS): Call C function.
32118 (enum reg_class): Add VEC_REGS, ADDR_VEC_REGS, GENERAL_VEC_REGS.
32119 (SECONDARY_MEMORY_NEEDED): Allow SF<->SI mode moves without
32121 (DBX_REGISTER_NUMBER, FIRST_VEC_ARG_REGNO, LAST_VEC_ARG_REGNO)
32122 (SHORT_DISP_IN_RANGE, VECTOR_STORE_FLAG_VALUE): Define macro.
32123 * config/s390/s390.md (UNSPEC_VEC_*): New constants.
32124 (VR*_REGNUM): New constants.
32125 (ALL): New mode iterator.
32126 (INTALL): Remove mode iterator.
32128 (movti): Implement TImode moves for VRs.
32129 Disable TImode splitter for VR targets.
32130 Implement splitting TImode GPR<->VR moves.
32131 (reload*_tomem_z10, reload*_toreg_z10): Replace INTALL with ALL.
32132 (reload<mode>_nonoffmem_in, reload<mode>_nonoffmem_out): Rename to
32133 reload<mode>_la_in, reload<mode>_la_out.
32134 (*movdi_64, *movsi_zarch, *movhi, *movqi, *mov<mode>_64dfp)
32135 (*mov<mode>_64, *mov<mode>_31): Add vector instructions.
32136 (TD/TF mode splitter): Enable for GPRs only (formerly !FP).
32137 (mov<mode> SF SD): Prefer lder, lde for loading.
32138 Add lrl and strl instructions.
32139 Add vector instructions.
32140 (strlen<mode>): Rename old strlen<mode> to strlen_srst<mode>.
32141 Call s390_expand_vec_strlen on z13.
32142 (*cc_to_int): Change predicate to nonimmediate_operand.
32143 (addti3): Rename to *addti3. New expander.
32144 (subti3): Rename to *subti3. New expander.
32145 * config/s390/vector.md: New file.
32147 2015-05-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
32149 * common/config/s390/s390-common.c (processor_flags_table): Add
32151 * config.gcc: Add z13.
32152 * config/s390/s390-opts.h (enum processor_type): Add
32153 PROCESSOR_2964_Z13.
32154 * config/s390/s390.c (s390_adjust_priority): Check for
32155 PROCESSOR_2964_Z13.
32156 (s390_reorg): Likewise.
32157 (s390_sched_reorder): Likewise.
32158 (s390_sched_variable_issue): Likewise.
32159 (s390_loop_unroll_adjust): Likewise.
32160 (s390_option_override): Likewise. Default to -mvx when available.
32161 * config/s390/s390.h (enum processor_flags): Add PF_Z13 and PF_VX.
32162 (TARGET_CPU_Z13, TARGET_CPU_VX, TARGET_Z13, TARGET_VX)
32163 (TARGET_VX_ABI): Define macros.
32165 (TARGET_DEFAULT): Add MASK_OPT_VX.
32166 * config/s390/s390.md ("cpu" attribute): Add z13.
32167 ("cpu_facility" attribute): Add vec.
32168 * config/s390/s390.opt (processor_type): Add z13.
32169 (mvx): New options.
32170 * doc/invoke.texi: Add z13 option for -march.
32172 2015-05-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
32174 * config/s390/predicates.md (shift_count_or_setmem_operand): Add
32175 mode check to make sure that only scalar integer values are
32178 2015-05-19 Jan Hubicka <hubicka@ucw.cz>
32180 * tree.c (verify_type_variant): Fix #undef.
32181 (gimple_canonical_types_compatible_p): Move here from lto.c
32182 (verify_type): Verify TYPE_CANONICAL compatibility.
32183 * tree.h (gimple_canonical_types_compatible_p): Declare.
32185 2015-05-19 Jakub Jelinek <jakub@redhat.com>
32187 PR middle-end/66199
32188 * tree.h (OMP_TEAMS_COMBINED): Define.
32189 * gimplify.c (enum gimplify_omp_var_data): Add
32190 GOVD_LINEAR_LASTPRIVATE_NO_OUTER.
32191 (enum omp_region_type): Add ORT_COMBINED_TEAMS.
32192 (omp_notice_variable): Accept both ORT_TEAMS
32193 and ORT_COMBINED_TEAMS. Don't recurse if
32194 GOVD_LINEAR_LASTPRIVATE_NO_OUTER is set and either
32195 GOVD_LINEAR is set, or GOVD_LASTPRIVATE without
32197 (omp_no_lastprivate): New function.
32198 (gimplify_scan_omp_clauses): For OMP_CLAUSE_LASTPRIVATE
32199 and OMP_CLAUSE_LINEAR, if omp_no_lastprivate, don't
32200 notice_outer and set appropriate bits, otherwise make
32201 sure default(none) combined constructs won't complain.
32202 (gimplify_adjust_omp_clauses): Remove OMP_CLAUSE_LINEAR
32203 outer special casing, for OMP_CLAUSE_LASTPRIVATE if
32204 omp_no_lastprivate either remove the clause or turn it
32205 into OMP_CLAUSE_PRIVATE.
32206 (gimplify_omp_for): Fix up handling of implicit
32207 lastprivate or linear iterators.
32208 (gimplify_omp_workshare): For OMP_TEAMS_COMBINED use
32209 ORT_COMBINED_TEAMS.
32210 * omp-low.c (lower_omp_for_lastprivate): For combined
32211 for simd use fd.loop.n2 from the for rather than simd.
32213 2015-05-19 Richard Sandiford <richard.sandiford@arm.com>
32215 * config/cris/cris.c (cris_expand_prologue): Use gen_raw_REG
32216 instead of gen_rtx_raw_REG.
32217 (cris_expand_epilogue): Likewise.
32218 * config/microblaze/microblaze.c (microblaze_classify_address):
32220 * config/sparc/sparc.md: Likewise.
32222 2015-05-19 Uros Bizjak <ubizjak@gmail.com>
32224 * config/alpha/alpha.c (alpha_legitimize_reload_address)
32225 (alpha_preferred_reload_class, alpha_legitimate_constant_p): Use
32226 CONST_INT_P, CONST_SCALAR_INT_P and CONST_DOUBLE_P predicates.
32227 (alpha_split_reload_pair) <case CONST_INT, case CONST_WIDE_INT>:
32228 Use CASE_CONST_SCALAR_INT.
32229 (print_operand) <case 'M'>: Use mode_width_operand to check the
32230 value of the constant.
32231 * config/alpha/alpha.md (movti): Use CONST_SCALAR_INT_P predicate.
32232 * config/alpha/predicates.md (input_operand): Use general_operand
32233 instead of match_code as operand check.
32234 (symbolic_operand): Use match_code with subexpression digits.
32235 * config/alpha/constraints.md (Q): Ditto.
32237 2015-05-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
32239 * optabs.c (expand_vec_perm): Don't re-use SEL as target operand.
32241 2015-05-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
32243 * config/s390/s390.c (s390_secondary_reload): Fix check for
32244 load/store relative.
32246 2015-05-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
32248 * recog.h: Increase MAX_RECOG_ALTERNATIVES. Change type of
32249 alternative_mask to uint64_t.
32251 2015-05-19 Jakub Jelinek <jakub@redhat.com>
32253 PR tree-optimization/66187
32254 * match.pd ((bit_and (plus/minus (convert @0) (convert @1)) mask)):
32255 Pass TYPE_SIGN to tree_int_cst_min_precision. If
32256 !TYPE_OVERFLOW_WRAPS, ensure @4 is non-negative.
32258 2015-05-19 David Malcolm <dmalcolm@redhat.com>
32260 * diagnostic.c (diagnostic_report_current_module): Strengthen
32261 local "new_map" from const line_map * to
32262 const line_map_ordinary *.
32263 * genmatch.c (error_cb): Likewise for local "map".
32264 (output_line_directive): Likewise for local "map".
32265 * input.c (expand_location_1): Likewise for local "map".
32266 Pass NULL rather than &map to
32267 linemap_unwind_to_first_non_reserved_loc, since the value is never
32268 read from there, and the value written back not read from here.
32269 (is_location_from_builtin_token): Strengthen local "map" from
32270 const line_map * to const line_map_ordinary *.
32271 (dump_location_info): Strengthen locals "map" from
32272 line_map *, one to const line_map_ordinary *, the other
32273 to const line_map_macro *.
32274 * tree-diagnostic.c (loc_map_pair): Strengthen field "map" from
32275 const line_map * to const line_map_macro *.
32276 (maybe_unwind_expanded_macro_loc): Add a call to
32277 linemap_check_macro when writing to the "map" field of the
32279 Introduce local const line_map_ordinary * "ord_map", using it in
32280 place of "map" in the part of the function where we know we have
32281 an ordinary map. Strengthen local "m" from const line_map * to
32282 const line_map_ordinary *.
32284 2015-05-19 Nick Clifton <nickc@redhat.com>
32287 * config/msp430/msp430.md (zero_extendhisi2): Add support for
32288 separate source and destination registers.
32290 2015-05-19 Richard Biener <rguenther@suse.de>
32292 PR tree-optimization/66165
32293 * tree-vect-slp.c (vect_supported_load_permutation_p): Add guard
32294 for no load permutation.
32296 PR tree-optimization/66185
32297 * tree-vect-slp.c (vect_build_slp_tree): Properly roll back
32298 when building the SLP node from scalars.
32300 2015-05-19 Eric Botcazou <ebotcazou@adacore.com>
32301 Tristan Gingold <gingold@adacore.com>
32303 * insn-notes.def (UPDATE_SJLJ_CONTEXT): New note.
32304 * builtins.c (expand_builtin_update_setjmp_buf): Make global.
32305 (expand_stack_restore): Call record_new_stack_level.
32306 (expand_stack_save): Do not call do_pending_stack_adjust.
32307 * builtins.h (expand_builtin_update_setjmp_buf): Declare.
32308 * calls.c (expand_call): Call record_new_stack_level for alloca.
32309 * except.c (sjlj_mark_call_sites): Expand builtin_update_setjmp_buf
32310 wherever a NOTE_INSN_UPDATE_SJLJ_CONTEXT note is present.
32311 (update_sjlj_context): New global function.
32312 * except.h (update_sjlj_context): Declare.
32313 * explow.c (record_new_stack_level): New global function.
32314 (allocate_dynamic_stack_space): Call record_new_stack_level.
32315 * explow.h (record_new_stack_level): Declare.
32316 * final.c (final_scan_insn): Deal with NOTE_INSN_UPDATE_SJLJ_CONTEXT.
32317 * cfgrtl.c (duplicate_insn_chain): Likewise.
32319 2015-05-19 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
32321 * calls.c: Always define STACK_GROWS_DOWNWARD as 0 or 1.
32322 (mem_overlaps_already_clobbered_arg_p): Rewrite ifdef
32323 STACK_GROWS_DOWNWARD as normal if.
32324 (expand_call): Likewise.
32326 2015-05-19 Oleg Endo <olegendo@gcc.gnu.org>
32329 * config/sh/sh.md (*round_int_even): New insn_and_split and
32330 accompanying new unnamed split.
32332 2015-05-19 Richard Sandiford <richard.sandiford@arm.com>
32334 * bitmap.c (bitmap_set_range): Handle count==1 specially.
32335 (bitmap_clear_range): Likewise.
32336 * cfgcleanup.c (mark_effect): Use bitmap_clear_range and
32337 bitmap_set_range unconditionally.
32338 * df-problems.c (df_simulate_one_insn_forwards): Likewise.
32339 * df-scan.c (df_mark_reg): Likewise.
32340 * haifa-sched.c (setup_ref_regs): Likewise.
32341 * sched-rgn.c (update_live_1): Likewise.
32343 2015-05-19 Richard Sandiford <richard.sandiford@arm.com>
32345 * regs.h (END_HARD_REGNO): Delete.
32346 (END_REGNO): Move to...
32348 * bt-load.c (note_btr_set): Use END_REGNO instead of END_HARD_REGNO.
32349 * caller-save.c (mark_set_regs): Likewise.
32350 * combine.c (move_deaths, distribute_notes): Likewise.
32351 * cse.c (invalidate, invalidate_for_call): Likewise.
32352 * df-scan.c (df_ref_record): Likewise.
32353 * postreload-gcse.c (reg_changed_after_insn_p): Likewise.
32354 (record_last_reg_set_info): Likewise.
32355 * reg-stack.c (convert_regs_exit): Likewise.
32356 * reload.c (reg_overlap_mentioned_for_reload_p): Likewise.
32357 * resource.c (update_live_status): Likewise.
32358 * rtlanal.c (find_reg_fusage, find_regno_fusage): Likewise.
32360 2015-05-19 Richard Sandiford <richard.sandiford@arm.com>
32362 * rtl.h (reg_info): Add an nregs field.
32363 (REG_NREGS): Use it.
32364 (SET_REGNO_RAW): Delete.
32365 (set_regno_raw): New function.
32366 * regs.h (END_HARD_REGNO): Make equivalent to END_REGNO.
32367 (END_REGNO): Redefine in terms of REG_NREGS.
32368 * read-rtl.c (read_rtx_code): Call set_regno_raw instead of
32370 * emit-rtl.c (set_mode_and_regno): Likewise.
32371 * df-scan.c (df_ref_change_reg_with_loc): Use set_mode_and_regno
32372 instead of SET_REGNO_RAW.
32374 2015-05-19 Richard Sandiford <richard.sandiford@arm.com>
32376 * rtl.h (PUT_MODE_RAW): New macro.
32377 (PUT_REG_NOTE_KIND): Use it.
32378 (set_mode_and_regno): Declare.
32379 (gen_raw_REG): Change regno to "unsigned int".
32380 (gen_rtx_REG): Change "unsigned" to "unsigned int".
32381 (PUT_MODE): Forward to PUT_MODE_RAW for generators, otherwise
32382 use set_mode_and_regno to change the mode of registers.
32383 * gengenrtl.c (gendef): Use PUT_MODE_RAW.
32384 * emit-rtl.c (set_mode_and_regno): New function.
32385 (gen_raw_REG): Change regno to unsigned int. Use set_mode_and_regno.
32386 * caller-save.c (reg_save_code): Use set_mode_and_regno.
32387 * expr.c (init_expr_target): Likewise.
32388 * ira.c (setup_prohibited_mode_move_regs): Likewise.
32389 * postreload.c (reload_cse_simplify_operands): Likewise.
32391 2015-05-19 Richard Sandiford <richard.sandiford@arm.com>
32393 * caller-save.c (init_caller_save): Use word_mode and
32394 FIRST_PSEUDO_REGISTER when creating temporary rtxes.
32395 * expr.c (init_expr_target): Likewise.
32396 * ira.c (setup_prohibited_mode_move_regs): Likewise.
32397 * postreload.c (reload_cse_regs_1): Likewise.
32399 2015-05-19 Richard Sandiford <richard.sandiford@arm.com>
32401 * rtl.def (REG): Change format to "r".
32402 * rtl.h (rtunion): Remove rt_reg.
32403 (reg_info): New structure.
32404 (rtx_def): Add reg field to main union.
32405 (X0REGATTR): Delete.
32406 (REG_CHECK): New macro.
32407 (SET_REGNO_RAW, rhs_regno, REG_ATTRS): Use it.
32408 * rtl.c (rtx_format): Document "r".
32409 (rtx_code_size): Handle REG specially.
32410 * gengenrtl.c (special_format): Return true for formats
32412 * gengtype.c (adjust_field_rtx_def): Handle 'r' fields.
32413 Deal with REG_ATTRS after the field loop.
32414 * emit-rtl.c (gen_raw_REG): Call rtx_alloc_stat directly.
32415 * expmed.c (init_expmed): Call gen_raw_REG instead of
32417 * expr.c (init_expr_target): Likewise.
32418 * regcprop.c (maybe_mode_change): Likewise.
32419 * varasm.c (make_decl_rtl): Likewise.
32420 * final.c (leaf_renumber_regs_insn): Return early after
32422 * genemit.c (gen_exp): Handle 'r' fields.
32423 * genpeep.c (match_rtx): Likewise.
32424 * gensupport.c (subst_pattern_match): Likewise.
32425 (get_alternatives_number, collect_insn_data, alter_predicate_for_insn)
32426 (alter_constraints, subst_dup): Likewise.
32427 * read-rtl.c (read_rtx_code): Likewise.
32428 * print-rtl.c (print_rtx): Likewise.
32429 * genrecog.c (find_operand, find_matching_operand): Likewise.
32430 (validate_pattern, match_pattern_2): Likewise.
32431 (parameter::UINT, rtx_test::REGNO_FIELD): New enum values.
32432 (rtx_test::regno_field): New function.
32433 (operator ==, safe_to_hoist_p, transition_parameter_type)
32434 (parameter_type_string, print_parameter_value)
32435 (print_nonbool_test, print_test): Handle new enum values.
32436 * cselib.c (rtx_equal_for_cselib_1): Handle REG specially.
32437 * lra-constraints.c (operands_match_p): Likewise.
32439 2015-05-19 Richard Sandiford <richard.sandiford@arm.com>
32441 * df.h (df_ref_change_reg_with_loc): Remove old_regno parameter.
32442 Change type of new_regno to unsigned int.
32443 * df-scan.c (df_ref_change_reg_with_loc_1): Change type of
32444 new_regno to unsigned int.
32445 (df_ref_change_reg_with_loc): Remove old_regno parameter.
32446 Change type of new_regno to unsigned int. Use SET_REGNO_RAW.
32447 * rtl.h (SET_REGNO): Update call to df_ref_change_reg_with_loc.
32448 (SET_REGNO_RAW): Add space after ",".
32450 2015-05-19 Richard Sandiford <richard.sandiford@arm.com>
32452 * rtl.h (REG_NREGS): New macro
32453 * alias.c (record_set): Use it.
32454 * cfgcleanup.c (mark_effect): Likewise.
32455 * combine.c (likely_spilled_retval_1): Likewise.
32456 (likely_spilled_retval_p, can_change_dest_mode): Likewise.
32457 (move_deaths, distribute_notes): Likewise.
32458 * cselib.c (cselib_record_set): Likewise.
32459 * df-problems.c (df_simulate_one_insn_forwards): Likewise.
32460 * df-scan.c (df_mark_reg): Likewise.
32461 * dse.c (look_for_hardregs): Likewise.
32462 * dwarf2out.c (reg_loc_descriptor): Likewise.
32463 (multiple_reg_loc_descriptor): Likewise.
32464 * expr.c (write_complex_part, read_complex_part): Likewise.
32465 (emit_move_complex): Likewise.
32466 * haifa-sched.c (setup_ref_regs): Likewise.
32467 * ira-lives.c (mark_hard_reg_live): Likewise.
32468 * lra.c (lra_set_insn_recog_data): Likewise.
32469 * mode-switching.c (create_pre_exit): Likewise.
32470 * postreload.c (reload_combine_recognize_const_pattern): Likewise.
32471 (reload_combine_recognize_pattern): Likewise.
32472 (reload_combine_note_use, move2add_record_mode): Likewise.
32473 (reload_cse_move2add): Likewise.
32474 * reg-stack.c (subst_stack_regs_pat): Likewise.
32475 * regcprop.c (kill_value, copy_value): Likewise.
32476 (copyprop_hardreg_forward_1): Likewise.
32477 * regrename.c (verify_reg_in_set, scan_rtx_reg): Likewise.
32478 (build_def_use): Likewise.
32479 * sched-deps.c (mark_insn_reg_birth, mark_reg_death): Likewise.
32480 (deps_analyze_insn): Likewise.
32481 * sched-rgn.c (check_live_1, update_live_1): Likewise.
32482 * sel-sched.c (count_occurrences_equiv): Likewise.
32483 * valtrack.c (dead_debug_insert_temp): Likewise.
32485 2015-05-19 Richard Sandiford <richard.sandiford@arm.com>
32487 * cfgcleanup.c (mentions_nonequal_regs): Use END_REGNO.
32488 * dse.c (note_add_store): Likewise.
32489 * ira-lives.c (mark_hard_reg_dead): Likewise.
32490 * loop-invariant.c (mark_reg_store): Likewise.
32491 (mark_reg_death): Likewise.
32492 * postreload.c (reload_combine): Likewise.
32493 (reload_combine_note_store): Likewise.
32494 (reload_combine_note_use): Likewise.
32495 * recog.c (peep2_reg_dead_p): Likewise.
32497 2015-05-19 Alan Modra <amodra@gmail.com>
32499 * config/rs6000/predicates.md (gpc_reg_operand): Don't allow all
32500 hard registers numbered greater or equal to ARG_POINTER_REGNUM.
32501 (reg_or_neg_short_operand, fix_trunc_dest_operand): Delete
32503 * config/rs6000/altivec.md (save_vregs_*, restore_vregs_*):
32504 Use altivec_register_operand. Make insn predicate TARGET_ALTIVEC.
32505 * config/rs6000/rs6000.md (extzvdi_internal2): Use cc_reg_operand.
32506 * config/rs6000/vsx.md (vsx_float<VSi><mode>2): Expand comment.
32508 2015-05-19 Sameera Deshpande <Sameera.Deshpande@imgtec.com>
32510 * config/mips/mips.md (JOIN_MODE): New mode iterator.
32511 (join2_load_Store<JOIN_MODE:mode>): New pattern.
32512 (join2_loadhi): Likewise.
32513 (define_peehole2): Add peephole2 patterns to join 2 HI/SI/SF/DF-mode
32514 load-load and store-stores.
32515 * config/mips/mips.opt (mload-store-pairs): New option.
32516 (TARGET_LOAD_STORE_PAIRS): New macro.
32517 * config/mips/mips.h (ENABLE_LD_ST_PAIRS): Likewise.
32518 * config/mips/mips-protos.h (mips_load_store_bonding_p): New prototype.
32519 * config/mips/mips.c (mips_load_store_bonding_p): New function.
32521 2015-05-19 Mikhail Maltsev <maltsevm@gmail.com>
32523 * bb-reorder.c (fix_up_fall_thru_edges): Use std::swap instead of
32525 * dojump.c (do_compare_rtx_and_jump): Likewise.
32526 * expmed.c (emit_store_flag_1): Likewise.
32527 * fibonacci_heap.h (fibonacci_heap::union_with): Likewise.
32528 * final.c (sprint_ul): Use std::reverse for reversing a string.
32529 * fold-const.c (extract_muldiv_1): Use std::swap.
32530 * genmodes.c (emit_mode_int_n): Likewise.
32531 * ifcvt.c (dead_or_predicable): Likewise.
32532 * ira-build.c (ira_merge_live_ranges): Likewise.
32533 (swap_allocno_copy_ends_if_necessary): Likewise.
32534 * ira.c (ira_setup_alts): Likewise.
32535 * loop-iv.c (iv_analyze_expr): Likewise.
32536 (implies_p): Likewise.
32537 (canon_condition): Likewise.
32538 * lra-constraints.c (swap_operands): Likewise.
32539 * lra-lives.c (lra_merge_live_ranges): Likewise.
32540 * omega.c (swap): Remove.
32542 (omega_unprotect_1): Use std::swap.
32543 (omega_solve_geq): Likewise.
32544 * optabs.c (expand_binop_directly): Likewise.
32545 (expand_binop): Likewise.
32546 (emit_conditional_move): Likewise.
32547 (emit_conditional_add): Likewise.
32548 * postreload.c (reload_cse_simplify_operands): Likewise.
32549 * reg-stack.c (emit_swap_insn): Likewise.
32550 (swap_to_top): Likewise.
32551 (compare_for_stack_reg): Likewise.
32552 (subst_asm_stack_regs): Likewise.
32553 * reload.c (find_reloads): Likewise.
32554 * reload1.c (gen_reload_chain_without_interm_reg_p): Likewise.
32555 * sel-sched.c (invoke_reorder_hooks): Likewise.
32556 (create_block_for_bookkeeping): Likewise.
32557 * tree-data-ref.c (lambda_matrix_row_exchange): Remove.
32558 (lambda_matrix_right_hermite): Use std::swap.
32559 * tree-ssa-coalesce.c (sort_coalesce_list): Likewise.
32560 * tree-ssa-ifcombine.c (ifcombine_ifandif): Likewise.
32561 * tree-ssa-loop-ivopts.c (iv_ca_delta_reverse): Likewise.
32562 * tree-ssa-math-opts.c (is_widening_mult_p): Likewise.
32563 * tree-ssa-phiopt.c (hoist_adjacent_loads): Likewise.
32564 * tree-ssa-reassoc.c (linearize_expr_tree): Likewise.
32565 * tree-ssa-threadedge.c (simplify_control_stmt_condition): Likewise.
32566 * tree-vrp.c (compare_ranges): Likewise.
32567 * var-tracking.c (add_with_sets): Likewise.
32568 (vt_find_locations): Likewise.
32570 2015-05-18 Andreas Tobler <andreast@gcc.gnu.org>
32572 * config/freebsd-spec.h (FBSD_STARTFILE_SPEC): Add the bits to build
32574 (FBSD_ENDFILE_SPEC): Likewise.
32575 * config/i386/freebsd.h (STARTFILE_SPEC): Remove and use the one from
32576 config/freebsd-spec.h.
32577 (ENDFILE_SPEC): Likewise.
32579 2015-05-18 Uros Bizjak <ubizjak@gmail.com>
32580 Richard Henderson <rth@redhat.com>
32583 * config/alpha/constraints.md (Q): Rewrite as define_memory_constraint.
32584 Check for a memory location that is not a reference (using an AND)
32585 to an unaligned location here.
32586 * config/alpha/predicates.md (normal_memory_operand): Remove.
32588 2015-05-18 Alex Velenko <Alex.Velenko@arm.com>
32590 * config/arm/arm.md (andsi_not_shiftsi_si_scc): New pattern.
32591 (andsi_not_shiftsi_si_scc_no_reuse): New pattern.
32593 2015-05-18 Robert Suchanek <robert.suchanek@imgtec.com>
32595 * config/mips/mips.c (micromips_globals): New variable.
32596 (mips_set_compression_mode): Save and reinitialize target-dependent
32597 state for microMIPS.
32599 2015-05-18 Martin Liska <mliska@suse.cz>
32601 * dbgcnt.def: Add new counter.
32602 * ipa-icf.c (sem_item_optimizer::merge_classes): Use the counter.
32604 2015-05-18 Martin Liska <mliska@suse.cz>
32606 * dbgcnt.def: Sort counters.
32607 * opts.c (common_handle_option): Do not compile if
32608 -fdbg-cnt-list is enabled.
32610 2015-05-18 Tom de Vries <tom@codesourcery.com>
32612 * gimplify.c (gimplify_modify_expr): Remove do_deref handling.
32613 (gimplify_va_arg_expr): Remove do_deref handling. Remove adding of
32614 address operator to va_list operand.
32615 * tree-stdarg.c (expand_ifn_va_arg_1): Do deref of va_list operand
32617 * config/i386/i386.c (ix86_gimplify_va_arg): Remove deref on va_list
32619 * config/rs6000/rs6000.c (rs6000_gimplify_va_arg): Same.
32620 * config/s390/s390.c (s390_gimplify_va_arg): Same.
32621 * config/spu/spu.c (spu_gimplify_va_arg_expr): Same.
32623 2015-05-18 Tom de Vries <tom@codesourcery.com>
32625 * tree-ssa-tail-merge.c: Fix whitespace.
32627 2015-05-17 Jim Wilson <jim.wilson@linaro.org>
32629 * doc/invoke.texi (ARM Options, mtune): Add generic-armv7-a,
32630 cortex-a17, and cortex-a17.cortex-a7.
32632 2015-05-17 Oleg Endo <olegendo@gcc.gnu.org>
32635 * config/sh/sh.md (*addc_2r_t): Use ashift instead of mult.
32637 2015-05-17 Uros Bizjak <ubizjak@gmail.com>
32640 * config/i386/i386.c (expand_vec_perm_blend): Enable HImode and
32641 QImode inner modes for TARGET_AVX512BW. Force mask operand
32642 to a register for AVX512F modes.
32644 2015-05-16 Jan Hubicka <hubicka@ucw.cz>
32646 * toplev.c (emit_debug_global_declarations): Do not output debug info
32647 when doing slim LTO objects.
32649 2015-05-16 Jan Hubicka <hubicka@ucw.cz>
32651 * ipa-utils.h (warn_types_mismatch, odr_or_derived_type_p,
32652 odr_types_equivalent_p): Declare.
32653 (odr_type_p): Use gcc_checking_assert.
32654 (type_in_anonymous_namespace_p) Declare.
32655 (type_with_linkage_p): Declare.
32656 * common.opt (Wlto-type-mismatch): New warning.
32657 * ipa-devirt.c (compound_type_base): New function.
32658 (odr_or_derived_type_p): New function.
32659 (odr_types_equivalent_p): New function.
32660 (add_type_duplicate): Simplify.
32661 (type_with_linkage_p): Add hack to prevent false positives on C types
32662 (type_in_anonymous_namespace_p): Likewise.
32663 * tree.c (need_assembler_name_p): Use type_with_linkage.
32664 * tree.h (type_in_anonymous_namespace_p): Remove.
32665 * doc/invoke.texi (-Wlto-type-mismatch): Document
32667 2015-05-16 Jan Hubicka <hubicka@ucw.cz>
32669 * tree.c (verify_type_variant): Verify tree_base and type_common flags.
32670 (verify_type): Verify STRING_FLAG.
32672 2015-05-16 Manuel López-Ibáñez <manu@gcc.gnu.org>
32675 * tree-pretty-print.c (percent_K_format): Replace locus pointer
32676 with accessor function.
32677 * tree-diagnostic.c (diagnostic_report_current_function): Use
32678 diagnostic_location function.
32679 (maybe_unwind_expanded_macro_loc): Likewise.
32680 (virt_loc_aware_diagnostic_finalizer): Likewise.
32681 (default_tree_printer): Replace locus pointer with accessor function.
32682 * diagnostic.c (diagnostic_initialize): Initialize caret_chars array.
32683 (diagnostic_set_info_translated): Initialize second location.
32684 (diagnostic_build_prefix): Use CARET_LINE_MARGIN.
32685 (diagnostic_show_locus): Handle two locations. Call
32686 diagnostic_print_caret_line.
32687 (diagnostic_print_caret_line): New.
32688 (default_diagnostic_starter): Use diagnostic_location function.
32689 (diagnostic_report_diagnostic): Use diagnostic_location function.
32690 (verbatim): Do not set text.locus.
32691 * diagnostic.h (struct diagnostic_info): Remove location field.
32692 (struct diagnostic_context): Make caret_chars an array of two.
32693 (diagnostic_location): New inline.
32694 (diagnostic_expand_location): Handle two locations.
32695 (diagnostic_same_line): New inline.
32696 (diagnostic_print_caret_line): Declare.
32697 (CARET_LINE_MARGIN): New constant.
32698 * pretty-print.c (pp_printf): Do not set text.locus.
32699 (pp_verbatim): Do not set text.locus.
32700 * pretty-print.h (MAX_LOCATIONS_PER_MESSAGE): New constant.
32701 (struct text_info): Replace locus pointer with locations
32702 array. Add accessor functions.
32704 2015-05-16 Kugan Vivekanandarajah <kuganv@linaro.org>
32705 Zhenqiang Chen <zhenqiang.chen@linaro.org>
32708 * config/arm/arm.h (DONT_EARLY_SPLIT_CONSTANT): New macro.
32709 * config/arm/arm.md (subsi3, andsi3, iorsi3, xorsi3, movsi): Keep some
32710 large constants in register instead of splitting them.
32712 2015-05-16 Uros Bizjak <ubizjak@gmail.com>
32715 * config/alpha/alpha.c (get_aligned_mem): Also look for reload
32716 replacements in memory addresses.
32717 (get_unaligned_address): Ditto.
32719 2015-05-16 James Bowman <james.bowman@ftdichip.com>
32721 * config/ft32/*: New files for FT32 port.
32722 * doc/install.texi: Add FT32 information.
32723 * doc/invoke.texi: Add FT32 information.
32724 * doc/md.texi: Add FT32 information.
32725 * doc/contrib.texi: Self added.
32727 2015-05-15 Marc Glisse <marc.glisse@inria.fr>
32729 PR tree-optimization/64454
32730 * match.pd ((X % Y) % Y, (X % Y) < Y): New patterns.
32731 (-1 - A -> ~A): Remove unnecessary condition.
32733 2015-05-15 Gregor Richards <gregor.richards@uwaterloo.ca>
32735 * config/i386/linux.h (MUSL_DYNAMIC_LINKER): Define.
32736 * config/i386/linux64.h (MUSL_DYNAMIC_LINKER32): Define.
32737 (MUSL_DYNAMIC_LINKER64, MUSL_DYNAMIC_LINKERX32): Define.
32739 2015-05-15 Ilya Enkovich <ilya.enkovich@intel.com>
32741 * ipa-chkp.h (chkp_wrap_function): New.
32742 * ipa-chkp.c (chkp_wrap_function): Remove 'static'.
32743 (chkp_wrap_function_name): New.
32744 (chkp_build_instrumented_fndecl): Use chkp_wrap_function_name
32745 to get wrapper name.
32746 * lto-cgraph.c: Include ipa-chkp.h.
32747 (input_cgraph_1): Avoid alias chain for wrappers.
32749 2015-05-15 Ilya Enkovich <enkovich.gnu@gmail.com>
32751 PR middle-end/66134
32752 * tree-chkp.c (chkp_get_orginal_bounds_for_abnormal_copy): New.
32753 (chkp_maybe_copy_and_register_bounds): Don't copy abnormal copy.
32755 2015-05-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
32757 * config/aarch64/aarch64.h (AARCH64_TUNE_SLOWMUL): Delete.
32758 (AARCH64_FL_SLOWMUL): Delete.
32759 (AARCH64_FL_CRC): Redefine to 1<<3.
32760 (AARCH64_FL_USE_FMA_STEERING_PASS): Redefine to 1<<4.
32762 2015-05-15 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
32764 * config/arm/arm.h (LOGICAL_OP_NON_SHORT_CIRCUIT): Add appropriate
32767 2015-05-15 Uros Bizjak <ubizjak@gmail.com>
32769 * config/alpha/alpha.md (extendqidi2): Use general_operand
32770 instead of some_operand for operand[1] predicate.
32771 (extendhidi2): Ditto.
32772 (cbranchdi4): Use general_operand instead of some_operand
32773 for operand[1] and operands[2] predicates.
32774 (cstoredi4): Ditto.
32775 * config/alpha/predicates.md (some_operand): Remove unused predicate.
32776 (some_ni_operand): Ditto.
32778 2015-05-15 Uros Bizjak <ubizjak@gmail.com>
32780 * config/alpha/alpha.c (alpha_extract_integer): Do not handle
32781 CONST_WIDE_INT and CONST_DOUBLE. Assert CONST_INT_P (x).
32782 (alpha_legitimate_constant_p) <case CONST_WIDE_INT>: Check high and
32783 low part of the constant using alpha_emit_set_const_1.
32784 (alpha_expand_mov): Do not handle CONST_WIDE_INT and CONST_DOUBLE.
32786 2015-05-14 Rohit Arul Raj <rohitrulraj@freescale.com>
32788 * varasm.c (output_constant_pool_1): Pass down alignment from
32789 constant pool entry's descriptor to output_constant_pool_2.
32790 (output_object_block): Add comment prior to call to
32791 output_constant_pool_1.
32793 2015-05-14 Vladimir Makarov <vmakarov@redhat.com>
32795 PR rtl-optimization/65862
32796 * target.def (ira_change_pseudo_allocno_class): New hook.
32797 * targhooks.c (default_ira_change_pseudo_allocno_class): Default
32799 * targhooks.h (default_ira_change_pseudo_allocno_class): New extern.
32800 * doc/tm.texi.in (TARGET_IRA_CHANGE_PSEUDO_ALLOCNO_CLASS): Add the
32802 * ira-costs.c (find_costs_and_classes): Call the hook and change
32803 classes when it is necessary.
32804 * doc/tm.texi: Update.
32806 2015-05-14 Alexander Monakov <amonakov@ispras.ru>
32808 * config/i386/i386.md (sibcall_memory): Check that register with
32809 callee address is not also used as one of the arguments, instead
32810 of checking that it is not live after the sibcall.
32811 (sibcall_pop_memory): Ditto.
32812 (sibcall_value_memory): Ditto.
32813 (sibcall_value_pop_memory): Ditto.
32815 2015-05-14 Marc Glisse <marc.glisse@inria.fr>
32817 * generic-match-head.c (types_match): Handle non-types.
32818 * gimple-match-head.c (types_match): Likewise.
32819 * match.pd: Remove unnecessary TREE_TYPE for types_match.
32821 2015-05-14 Wilco Dijkstra <wdijkstr@arm.com>
32823 * config/aarch64/aarch64.md (absdi2): Optimize abs expansion.
32824 (csneg3<mode>_insn): Enable expansion of pattern.
32826 2015-05-14 Nick Clifton <nickc@redhat.com>
32828 * config/rl78/rl78.c (rl78_select_section): Select the correct
32829 default section based upon the category of the decl.
32831 2015-05-13 Segher Boessenkool <segher@kernel.crashing.org>
32833 PR rtl-optimization/30967
32834 * config/rs6000/rs6000.c (rs6000_rtx_costs): Don't consider
32835 destination mode for the cost of scc patterns.
32837 2015-05-13 Uros Bizjak <ubizjak@gmail.com>
32839 * config/i386/i386.md (*mul<mode>3_1): Merge with *mulhi3_1
32840 using SWIM248 mode iterator.
32841 (*mulv<mode>4): Use x86_64_sext_operand for operand[2] constraint.
32842 (*mulvhi4): mark operand[1] as commutative. Use nonimmediate_operand
32843 for operand[2] constraint.
32844 (*mulv<mode>4_1): Merge with *mulvhi4_1 using SWI248 mode iterator.
32846 2015-05-13 Jakub Jelinek <jakub@redhat.com>
32848 PR middle-end/66133
32849 * omp-low.c (expand_omp_taskreg): For GIMPLE_OMP_TASK expansion,
32850 make sure it is never noreturn, even when the task body does not
32852 (lower_omp_taskreg): For GIMPLE_OMP_TASK, emit GIMPLE_OMP_CONTINUE
32853 right before GIMPLE_OMP_RETURN.
32854 (make_gimple_omp_edges): Accept GIMPLE_OMP_CONTINUE as ->cont
32855 for GIMPLE_OMP_TASK. For GIMPLE_OMP_RETURN corresponding to
32856 GIMPLE_OMP_TASK add an EDGE_ABNORMAL edge from entry to exit.
32858 2015-05-13 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
32860 * params.def (PARAM_MAX_POW_SQRT_DEPTH): New param.
32861 * tree-ssa-math-opts.c: Include params.h
32862 (pow_synth_sqrt_info): New struct.
32863 (representable_as_half_series_p): New function.
32864 (get_fn_chain): Likewise.
32865 (print_nested_fn): Likewise.
32866 (dump_fractional_sqrt_sequence): Likewise.
32867 (dump_integer_part): Likewise.
32868 (expand_pow_as_sqrts): Likewise.
32869 (gimple_expand_builtin_pow): Use above to attempt to expand
32870 pow as series of square roots. Removed now unused variables.
32872 2015-05-13 Uros Bizjak <ubizjak@gmail.com>
32874 * config/alpha/alpha.c (alpha_emit_set_long_const): Remove c1 argument.
32875 (alpha_extract_integer): Redeclare as static HOST_WIDE_INT.
32876 Remove *p0 and *p1 arguments. Rewrite function.
32877 (alpha_legitimate_constant_p): Update call to alpha_extract_integer.
32878 (alpha_split_const_mov): Update calls to alpha_extract_integer and
32879 alpha_emit_set_long_const.
32880 (alpha_expand_epilogue): Update calls to alpha_emit_set_long_const.
32881 (alpha_output_mi_thunk_osf): Ditto.
32882 * config/alpha/alpha.md (movti): Do not check operands[1]
32885 2015-05-13 Richard Biener <rguenther@suse.de>
32887 PR tree-optimization/66129
32888 * tree-vect-slp.c (vect_build_slp_tree): Make sure all ops are
32890 (vect_schedule_slp_instance): Fix typo.
32892 2015-05-13 David Malcolm <dmalcolm@redhat.com>
32894 * common.opt (fdump-internal-locations): New option.
32895 * input.c: Include diagnostic-core.h.
32896 (get_end_location): New function.
32897 (write_digit): New function.
32898 (write_digit_row): New function.
32899 (dump_location_range): New function.
32900 (dump_labelled_location_range): New function.
32901 (dump_location_info): New function.
32902 * input.h (dump_location_info): New prototype.
32903 * toplev.c (compile_file): Handle flag_dump_locations.
32905 2015-05-13 Eric Botcazou <ebotcazou@adacore.com>
32907 * gimple-expr.h (is_gimple_constant): Reorder.
32908 * tree-ssa-propagate.c (before_dom_children): Use inline accessor.
32910 2015-05-13 Segher Boessenkool <segher@kernel.crashing.org>
32912 * combine.c (simplify_set): When generating a CC set, if the
32913 source already is in the correct mode, do not wrap it in a
32914 compare. Simplify the rest of that code.
32916 2015-05-13 Richard Biener <rguenther@suse.de>
32918 PR tree-optimization/66123
32919 * tree-ssa-dom.c (propagate_rhs_into_lhs): Check if we found
32922 2015-05-13 Richard Biener <rguenther@suse.de>
32924 PR middle-end/66110
32925 * alias.c (alias_sets_conflict_p): Do not treat has_zero_child
32927 * Makefile.in (dfp.o-warn): Add -Wno-strict-aliasing.
32929 2015-05-13 Michael Haubenwallner <michael.haubenwallner@ssi-schaefer.com>
32931 * doc/install.texi: Bump latest automake 1.11 version to 1.11.6.
32932 * aclocal.m4: Regenerated with automake-1.11.6.
32934 2015-05-13 Tom de Vries <tom@codesourcery.com>
32936 PR tree-optimization/66010
32937 * gimplify.h (gimplify_va_arg_internal): Remove declaration.
32938 * gimplify.c (gimplify_va_arg_internal): Remove and inline into ...
32939 * tree-stdarg.c (expand_ifn_va_arg_1): ... here. Choose between lval
32940 and rval based on do_deref.
32942 2015-05-13 Ilya Enkovich <ilya.enkovich@intel.com>
32945 * config/i386/i386.c (ix86_rtx_costs): We want to propagate
32946 link time constants into adress expressions and therefore set
32949 2015-05-13 Jakub Jelinek <jakub@redhat.com>
32952 * config/i386/i386.md (mulv<mode>4, umulv<mode>4, *umulv<mode>4):
32953 Use SWI248 iterator instead of SWI.
32954 (*mulv<mode>4_1): Use SWI48 instead of SWI. Simplify output template.
32955 Use eq_attr "alternative" "0" instead of match_test in
32956 length_immediate attribute computation.
32957 (*mulvhi4, *mulvhi4_1): New define_insns.
32960 * internal-fn.c (get_min_precision): Use UNSIGNED instead of
32961 SIGNED to get precision of non-negative value.
32963 2015-05-13 Ilya Enkovich <ilya.enkovich@intel.com>
32966 * function.c (diddle_return_value_1): Process bounds first.
32967 * config/i38/i386.c (ix86_function_value_regno_p): Add bnd1
32970 2015-05-13 Thomas Preud'homme <thomas.preudhomme@arm.com>
32972 PR rtl-optimization/64616
32973 * loop-invariant.c (can_move_invariant_reg): New.
32974 (move_invariant_reg): Call above new function to decide whether
32975 instruction can just be moved, skipping creation of temporary
32978 2015-05-12 Jan Hubicka <hubicka@ucw.cz>
32980 PR target/pr66047.c
32981 * i386.c (ix86_function_sseregparm): Only return -1 if local function
32982 with implied regparm is called from -mno-sse function.
32983 (init_cumulative_args): Output error if ix86_function_sseregparm
32984 return -1 and SSE register would be needed.
32985 (function_arg_advance_32): Likewise.
32986 (function_arg_32): Likewise.
32987 * i386.h (ix86_args): Add decl field.
32989 2015-05-12 Jan Hubicka <hubicka@ucw.cz>
32992 * ipa-inline.c (can_inline_edge_p): Allow early inlining of always
32993 inlines across optimization boundary.
32995 2015-05-12 Jason Merrill <jason@redhat.com>
32997 * config/mmix/mmix.c, config/msp430/msp430.c: Add space between
32998 string literal and macro name.
33000 2015-05-12 Steve Ellcey <sellcey@imgtec.com>
33002 * config/mips/mips.c (mips_print_operand): Remove 'y' operand code.
33003 * config/mips/mips.md (<GPR:d>lsa): Rewrite with shift operator.
33004 * config/mips/predicates.md (const_immlsa_operand): Remove log call.
33006 2015-05-12 David Malcolm <dmalcolm@redhat.com>
33008 * doc/invoke.texi (Warning Options): Add -Wmisleading-indentation.
33009 (-Wmisleading-indentation): New option.
33010 * Makefile.in (C_COMMON_OBJS): Add c-family/c-indentation.o.
33012 2015-05-12 Uros Bizjak <ubizjak@gmail.com>
33014 * config/alpha/alpha.h (TARGET_SUPPORTS_WIDE_INT): New define.
33015 * config/alpha/alpha.c (alpha_rtx_costs): Handle CONST_WIDE_INT.
33016 (alpha_extract_integer): Ditto.
33017 (alpha_legitimate_constant_p): Ditto.
33018 (alpha_split_tmode_pair): Ditto.
33019 (alpha_preferred_reload_class): Add CONST_WIDE_INT.
33020 (alpha_expand_mov): Ditto.
33021 (print_operand): Remove handling of 'H' modifier.
33022 <case 'm'>: Remove CONST_DOUBLE handling.
33023 (summarize_insn): Handle CONST_WIDE_INT.
33024 * config/alpha/alpha.md (*andsi_internal): Remove H constraint.
33026 (movti): Handle CONST_WIDE_INT.
33027 * config/alpha/constraints.md ('H'): Remove constraint definition.
33028 ('G'): Do not match MODE_FLOAT class.
33029 * config/alpha/predicates.md (const0_operand): Also match
33031 (non_add_const_operand): Ditto.
33032 (non_zero_const_operand): Ditto.
33033 (some_operand): Ditto.
33034 (input_operand): Ditto. Handle CONST_WIDE_INT.
33035 (and_operand): Do not match const_double.
33036 * config/alpha/sync.md (fetchop_constr): Remove H constraint.
33038 2015-05-12 Andrew MacLeod <amacleod@redhat.com>
33041 * coretypes.h (MEMMODEL_SYNC, MEMMODEL_BASE_MASK): New macros.
33042 (enum memmodel): Add SYNC_{ACQUIRE,RELEASE,SEQ_CST}.
33043 * tree.h (memmodel_from_int, memmodel_base, is_mm_relaxed,
33044 is_mm_consume,is_mm_acquire, is_mm_release, is_mm_acq_rel,
33045 is_mm_seq_cst, is_mm_sync): New accessor functions.
33046 * builtins.c (expand_builtin_sync_operation,
33047 expand_builtin_compare_and_swap): Use MEMMODEL_SYNC_SEQ_CST.
33048 (expand_builtin_sync_lock_release): Use MEMMODEL_SYNC_RELEASE.
33049 (get_memmodel, expand_builtin_atomic_compare_exchange,
33050 expand_builtin_atomic_load, expand_builtin_atomic_store,
33051 expand_builtin_atomic_clear): Use new accessor routines.
33052 (expand_builtin_sync_synchronize): Use MEMMODEL_SYNC_SEQ_CST.
33053 * optabs.c (expand_compare_and_swap_loop): Use MEMMODEL_SYNC_SEQ_CST.
33054 (maybe_emit_sync_lock_test_and_set): Use new accessors and
33055 MEMMODEL_SYNC_ACQUIRE.
33056 (expand_sync_lock_test_and_set): Use MEMMODEL_SYNC_ACQUIRE.
33057 (expand_mem_thread_fence, expand_mem_signal_fence, expand_atomic_load,
33058 expand_atomic_store): Use new accessors.
33059 * emit-rtl.c (need_atomic_barrier_p): Add additional enum cases.
33060 * tsan.c (instrument_builtin_call): Update check for memory model beyond
33061 final enum to use MEMMODEL_LAST.
33062 * c-family/c-common.c: Use new accessor for memmodel_base.
33063 * config/aarch64/aarch64.c (aarch64_expand_compare_and_swap): Use new
33065 * config/aarch64/atomics.md (atomic_load<mode>,atomic_store<mode>,
33066 arch64_load_exclusive<mode>, aarch64_store_exclusive<mode>,
33067 mem_thread_fence, *dmb): Likewise.
33068 * config/alpha/alpha.c (alpha_split_compare_and_swap,
33069 alpha_split_compare_and_swap_12): Likewise.
33070 * config/arm/arm.c (arm_expand_compare_and_swap,
33071 arm_split_compare_and_swap, arm_split_atomic_op): Likewise.
33072 * config/arm/sync.md (atomic_load<mode>, atomic_store<mode>,
33073 atomic_loaddi): Likewise.
33074 * config/i386/i386.c (ix86_destroy_cost_data, ix86_memmodel_check):
33076 * config/i386/sync.md (mem_thread_fence, atomic_store<mode>): Likewise.
33077 * config/ia64/ia64.c (ia64_expand_atomic_op): Add new memmodel cases and
33079 * config/ia64/sync.md (mem_thread_fence, atomic_load<mode>,
33080 atomic_store<mode>, atomic_compare_and_swap<mode>,
33081 atomic_exchange<mode>): Use new accessors.
33082 * config/mips/mips.c (mips_process_sync_loop): Likewise.
33083 * config/pa/pa.md (atomic_loaddi, atomic_storedi): Likewise.
33084 * config/rs6000/rs6000.c (rs6000_pre_atomic_barrier,
33085 rs6000_post_atomic_barrier): Add new cases.
33086 (rs6000_expand_atomic_compare_and_swap): Use new accessors.
33087 * config/rs6000/sync.md (mem_thread_fence): Add new cases.
33088 (atomic_load<mode>): Add new cases and use new accessors.
33089 (store_quadpti): Add new cases.
33090 * config/s390/s390.md (mem_thread_fence, atomic_store<mode>): Use new
33092 * config/sparc/sparc.c (sparc_emit_membar_for_model): Use new accessors.
33093 * doc/extend.texi: Update docs to indicate 16 bits are used for memory
33096 2015-05-12 Jan Hubicka <hubicka@ucw.cz>
33098 * ipa-devirt.c (type_with_linkage_p): New function.
33099 (type_in_anonymous_namespace_p): Move here from tree.c; assert that
33101 (odr_type_p): Move here from ipa-utils.h; use type_with_linkage_p.
33102 (can_be_name_hashed_p): Simplify.
33103 (hash_odr_name): Check that type has linkage before checking if it is
33105 (types_same_for_odr): Likewise.
33106 (odr_name_hasher::equal): Likewise.
33107 (odr_subtypes_equivalent_p): Likewise.
33108 (warn_types_mismatch): Likewise.
33109 (get_odr_type): Likewise.
33110 (odr_types_equivalent_p): Fix checking of TYPE_MAIN_VARIANT.
33111 * ipa-utils.h (odr_type_p): Move offline.
33112 * tree.c (need_assembler_name_p): Fix handling of types
33114 (type_in_anonymous_namespace_p): Move to ipa-devirt.c
33116 2015-05-12 David Malcolm <dmalcolm@redhat.com>
33118 * timevar.c (timevar_enable): Delete in favor of...
33119 (g_timer): New global.
33120 (struct timevar_def): Move to timevar.h inside class timer.
33121 (struct timevar_stack_def): Likewise.
33122 (timevars): Delete global in favor of field "m_timevars" within
33123 class timer in timevar.h
33124 (stack): Likewise, in favor of field "m_stack".
33125 (unused_stack_instances): Likewise, in favor of field
33126 "m_unused_stack_instances".
33127 (start_time): Likewise, in favor of field "m_start_time".
33128 (get_time): Eliminate check for timevar_enable.
33129 (timer::timer): New function, built from part of timevar_init.
33130 (timevar_init): Rewrite idempotency test from using
33131 "timevar_enable" bool to using dynamic allocation of "g_timer".
33132 Move rest of implementation into timer's constructor.
33133 (timevar_push_1): Rename to...
33134 (timer::push): ...this, adding "m_" prefixes to variables that
33135 are now fields of timer.
33136 (timevar_pop_1): Likewise, rename to...
33137 (timer::pop): ...this, and add "m_" prefixes.
33138 (timevar_start): Replace test for "timevar_enable" with one for
33139 "g_timer", and move bulk of implementation to...
33140 (timer::start): ...here, adding "m_" prefixes.
33141 (timevar_stop): Likewise, from here...
33142 (timer::stop): ...to here.
33143 (timevar_cond_start): Likewise, from here...
33144 (timer::cond_start): ...to here.
33145 (timevar_cond_stop): Likewise, from here...
33146 (timer::cond_stop): ...to here.
33147 (validate_phases): Rename to...
33148 (timer::validate_phases): ...this, and add "m_" prefixes. Make
33149 locals "total" and "tv" const.
33150 (timevar_print): Rename to...
33151 (timer::print): ...this, and add "m_" prefixes. Make locals
33152 "total" and "tv" const. Eliminate test for timevar_enable.
33153 * timevar.h (timevar_enable): Eliminate.
33154 (g_timer): New declaration.
33155 (timevar_push_1): Eliminate.
33156 (timevar_pop_1): Eliminate.
33157 (timevar_print): Eliminate.
33158 (class timer): New class.
33159 (timevar_push): Rewrite to use g_timer.
33160 (timevar_pop): Likewise.
33161 * toplev.c (toplev::~toplev): Likewise.
33163 2015-05-12 Richard Earnshaw <rearnsha@arm.com>
33165 * arm-protos.h (arm_sched_autopref): Delete.
33166 (tune_params): Re-organize, use enums for flag values.
33167 (FUSE_OPS): New macro.
33168 * arm.c (ARM_PREFETCH_NOT_BENEFICIAL): Update.
33169 (ARM_PREFETCH_BENEFICIAL): Likewise.
33170 (ARM_FUSE_NOTHING, ARM_FUSE_MOVW_MOVT): Delete.
33171 (arm_slowmul_tune, arm_fastmul_tune, arm_strongarm_tune)
33172 (arm_xscale_tune, arm_9e_tune, arm_marvell_pj4_tune)
33173 (arm_v6t2_tune, arm_cortex_tune, arm_cortex_a8_tune)
33174 (arm_cortex_a7_tune, arm_cortex_a15_tune, arm_cortex_a53_tune)
33175 (arm_cortex_a57_tune, arm_xgene1_tune, arm_cortex_a5_tune)
33176 (arm_cortex_a9_tune, arm_cortex_a12_tune, arm_v7m_tune)
33177 (arm_cortex_m7_tune, arm_v6m_tune, arm_fa726te_tune): Use new
33179 (arm_option_override, thumb2_reorg, arm_print_tune_info)
33180 (aarch_macro_fusion_pair_p): Update uses of current_tune.
33181 * arm.h (LOGICAL_OP_NON_SHORT_CIRCUIT): Likewise.
33183 2015-05-12 Sandra Loosemore <sandra@codesourcery.com>
33185 * config/nios2/nios2.md (trap, ctrapsi4): Use "trap" instead of
33188 2015-05-12 Chung-Lin Tang <cltang@codesourcery.com>
33189 Sandra Loosemore <sandra@codesourcery.com>
33191 * config/nios2/nios2.h (enum reg_class): Add IJMP_REGS enum
33193 (REG_CLASS_NAMES): Add "IJMP_REGS".
33194 (REG_CLASS_CONTENTS): Add new entry for IJMP_REGS.
33195 * config/nios2/nios2.md (indirect_jump,*tablejump): Adjust to
33196 use new "c" register constraint.
33197 * config/nios2/constraint.md (c): New register constraint
33198 corresponding to IJMP_REGS.
33200 2015-05-12 Segher Boessenkool <segher@kernel.crashing.org>
33202 * config/rs6000/rs6000.md (*rotlsi3_internal4, *rotlsi3_internal5,
33203 *rotlsi3_internal6, rlwinm, 5 unnamed define_insns, and 6
33204 define_splits): Delete, revamp, transmogrify into ...
33205 (*rotlsi3_mask, *rotlsi3_mask_dot, *rotlsi3_mask_dot2,
33206 *ashlsi3_imm_mask, *ashlsi3_imm_mask_dot, *ashlsi3_imm_mask_dot2,
33207 *lshrsi3_imm_mask, *lshrsi3_imm_mask_dot, *lshrsi3_imm_mask_dot2):
33210 2015-05-12 Segher Boessenkool <segher@kernel.crashing.org>
33212 * config/rs6000/rs6000.md (rs6000_adjust_atomic_subword): Use
33213 gen_ashlsi3 and gen_andsi3 instead of gen_rlwinm.
33215 2015-05-12 Segher Boessenkool <segher@kernel.crashing.org>
33217 * config/rs6000/rs6000.md (extzv): FAIL for SImode.
33218 (extzvsi_internal, *extzvsi_internal1, *extzvsi_internal2,
33219 *rotlsi3_internal7le, *rotlsi3_internal7be, *rotlsi3_internal8le,
33220 *rotlsi3_internal8be, *rotlsi3_internal9le, *rotlsi3_internal9be,
33221 *rotlsi3_internal10le, *rotlsi3_internal10be, *rotlsi3_internal11le,
33222 *rotlsi3_internal11be, *rotlsi3_internal12le, *rotlsi3_internal12be,
33223 *lshiftrt_internal1le, *lshiftrt_internal1be, *lshiftrt_internal2le,
33224 *lshiftrt_internal2be, *lshiftrt_internal3le, *lshiftrt_internal3be,
33225 *lshiftrt_internal4le, *lshiftrt_internal4be, *lshiftrt_internal5le,
33226 *lshiftrt_internal5be, *lshiftrt_internal5le, *lshiftrt_internal5be,
33227 *rotldi3_internal7le, *rotldi3_internal7be, *rotldi3_internal8le,
33228 *rotldi3_internal8be, *rotldi3_internal9le, *rotldi3_internal9be,
33229 *rotldi3_internal10le, *rotldi3_internal10be, *rotldi3_internal11le,
33230 *rotldi3_internal11be, *rotldi3_internal12le, *rotldi3_internal12be,
33231 *rotldi3_internal13le, *rotldi3_internal13be, *rotldi3_internal14le,
33232 *rotldi3_internal14be, *rotldi3_internal15le, *rotldi3_internal15be,
33233 and 30 corresponding splitters): Delete.
33235 2015-05-12 Segher Boessenkool <segher@kernel.crashing.org>
33237 * config/rs6000/rs6000.md (define_split for bswaphi): Don't use
33240 2015-05-12 Segher Boessenkool <segher@kernel.crashing.org>
33242 * combine.c (recog_for_combine_1): New function, factored out
33243 from recog_for_combine.
33244 (change_zero_ext): New function.
33245 (recog_for_combine): If recog fails, try again with the pattern
33246 modified by change_zero_ext; if that still fails, restore the
33249 2015-05-12 Segher Boessenkool <segher@kernel.crashing.org>
33251 * combine.c (get_undo_marker): New function.
33252 (undo_to_marker): New function, largely factored out from ...
33253 (undo_all): ... this. Adjust.
33255 2015-05-12 Richard Biener <rguenther@suse.de>
33257 PR tree-optimization/66101
33258 * tree-ssa-dce.c (remove_dead_stmt): Properly mark loops for
33259 fixup if we turn a loop exit edge to a fallthru edge.
33261 2015-05-12 Richard Biener <rguenther@suse.de>
33263 PR tree-optimization/37021
33264 * tree-vectorizer.h (struct _slp_tree): Add two_operators flag.
33265 (SLP_TREE_TWO_OPERATORS): New define.
33266 * tree-vect-slp.c (vect_create_new_slp_node): Initialize
33267 SLP_TREE_TWO_OPERATORS.
33268 (vect_build_slp_tree_1): Allow two mixing plus/minus in an
33270 (vect_build_slp_tree): Adjust.
33271 (vect_analyze_slp_cost_1): Likewise.
33272 (vect_schedule_slp_instance): Vectorize mixing plus/minus by
33273 emitting two vector stmts and mixing the results.
33275 2015-05-12 Dominik Vogt <vogt@linux.vnet.ibm.com>
33277 * call.c (print_z_candidates): Remove dead code.
33279 2015-05-12 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
33281 * config/s390/2827.md: Split zEC12_simple into zEC12_simple_int
33282 and zEC12_simple_fp.
33283 * config/s390/s390.c (s390_issue_rate): Set issue rate for zEC12
33286 2015-05-12 Tom de Vries <tom@codesourcery.com>
33288 PR tree-optimization/66010
33289 * gimplify.c (gimplify_modify_expr): Handle new do_deref argument of
33291 * gimplify.h (gimplify_va_arg_internal): Remove loc parameter.
33292 (gimplify_va_arg_internal): Remove loc parameter. Assert no array-typed
33293 va_lists are passed, and remove corresponding handling.
33294 (gimplify_va_arg_expr): Only take address of ap if necessary. Add
33295 do_deref argument to ifn_va_arg.
33296 * tree-stdarg.c (expand_ifn_va_arg_1): Handle new do_deref argument of
33299 2015-05-12 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
33302 * config/arm/arm.md (movcond_addsi): Check that operands[2] is a
33303 REG before taking its REGNO.
33305 2015-05-12 Thomas Preud'homme <thomas.preudhomme@arm.com>
33307 * combine.c i(set_nonzero_bits_and_sign_copies): Split code updating
33308 rsp->sign_bit_copies and rsp->nonzero_bits into ...
33309 (update_rsp_from_reg_equal): This. Also use REG_EQUAL note on src if
33310 present to get more accurate information about the number of sign bit
33311 copies and non zero bits.
33313 2015-05-12 Richard Biener <rguenther@suse.de>
33315 * tree-vect-slp.c (vect_build_slp_tree_1): For BB vectorization
33316 do not allow unrolling.
33318 2015-05-11 Richard Henderson <rth@redhat.com>
33320 * config/i386/i386-modes.def (CCP): New.
33321 * config/i386/i386.c (put_condition_code): Handle it.
33322 (ix86_match_ccmode, ix86_cc_modes_compatible): Likewise.
33324 2015-05-11 Richard Henderson <rth@redhat.com>
33326 * target.def (md_asm_clobbers): Replace with...
33327 (md_asm_adjust): this.
33328 * tm.texi.in (TARGET_MD_ASM_CLOBBERS): Remove.
33329 (TARGET_MD_ASM_ADJUST): New.
33330 * tm.texi: Rebuild.
33331 * hooks.c (hook_tree_tree_tree_tree_3rd_identity): Remove.
33332 * hooks.h (hook_tree_tree_tree_tree_3rd_identity): Remove.
33333 * system.h (TARGET_MD_ASM_CLOBBERS): Poison.
33335 * cfgexpand.c (check_operand_nalternatives): Accept vector of
33336 constraints instead of lists of outputs and inputs.
33337 (expand_asm_stmt): Save and restore input_location around the
33338 body of the function. Move asm data into vectors instead of
33339 building tree lists. Generate cleanup sequences as needed,
33340 rather than waiting til the end. Use new md_asm_adjust hook.
33342 * config/vxworks.c: Include vec.h before target.h.
33343 * gimple.c: Likewise.
33344 * incpath.c: Likewise.
33345 * mode-switching.c: Likewise.
33347 * config/cris/cris.c (cris_md_asm_clobbers): Convert to...
33348 (cris_md_asm_adjust): this.
33349 (TARGET_MD_ASM_CLOBBERS): Remove.
33350 (TARGET_MD_ASM_ADJUST): New.
33351 * config/i386/i386.c (ix86_md_asm_clobbers): Convert to...
33352 (ix86_md_asm_adjust): this.
33353 (TARGET_MD_ASM_CLOBBERS): Remove.
33354 (TARGET_MD_ASM_ADJUST): New.
33355 * config/mn10300/mn10300.c (mn10300_md_asm_clobbers): Convert to...
33356 (mn10300_md_asm_adjust): this.
33357 (TARGET_MD_ASM_CLOBBERS): Remove.
33358 (TARGET_MD_ASM_ADJUST): New.
33359 * config/rs6000/rs6000.c (rs6000_md_asm_clobbers): Convert to...
33360 (rs6000_md_asm_adjust): this.
33361 (TARGET_MD_ASM_CLOBBERS): Remove.
33362 (TARGET_MD_ASM_ADJUST): New.
33363 * config/visium/visium.c (visium_md_asm_clobbers): Convert to...
33364 (visium_md_asm_adjust): this.
33365 (TARGET_MD_ASM_CLOBBERS): Remove.
33366 (TARGET_MD_ASM_ADJUST): New.
33368 2015-05-11 Richard Henderson <rth@redhat.com>
33370 * gimplify.c (gimplify_asm_expr): Set gimple_asm_volatile_p
33371 if noutputs is zero.
33372 * cfgexpand.c (expand_asm_stmt): Use gimple_asm_volatile_p unchanged.
33374 * cfgexpand.c (expand_asm_operands): Merge into...
33375 (expand_asm_stmt): ... here.
33377 * cfgexpand.c (expand_asm_operands): Don't call
33378 resolve_asm_operand_names.
33379 * stmt.c (resolve_asm_operand_names): Clarify block comment.
33381 2015-05-11 Jan Hubicka <hubicka@ucw.cz>
33383 * dwarf2out.c (gen_member_die): Sanity check that we access
33384 TYPE_MAIN_VARIANT for TYPE_METHODS.
33385 * function.c (use_register_for_decl): Look for TYPE_MAIN_VARIANT when
33386 checking TYPE_METHODS.
33387 * tree.c (free_lang_data_in_type): See TYPE_METHODS to error_mark_node
33389 (build_distinct_type_copy): Clear TYPE_METHODS.
33390 (verify_type_variant): Verify that TYPE_METHODS is NULL for variants.
33391 (verify_type): Allow TYPE_METHODS to be error_mark_node.
33392 * tree.def: Update docs of TYPE_STUB_DECL and TYPE_METHODS.
33394 2015-05-11 Eric Botcazou <ebotcazou@adacore.com>
33396 * emit-rtl.c (emit_pattern_after_setloc): Add missing guard.
33397 (emit_pattern_before_setloc): Likewise.
33399 2015-05-11 Richard Sandiford <richard.sandiford@arm.com>
33401 * genrecog.c (match_pattern_1): Expect the pattern to be a SEQUENCE
33402 for define_peephole2s.
33403 (get_peephole2_pattern): New function.
33404 (main): Use it. Call validate_pattern.
33406 2015-05-11 Pitchumani Sivanupandi <pitchumani.s@atmel.com>
33408 * config/avr/avr.c (avr_hard_regno_call_part_clobbered): Use
33409 LAST_CALLEE_SAVED_REG instead of hard-coded register number.
33410 (Last callee saved reg is different for AVR_TINY architecture)
33412 2015-05-11 Uros Bizjak <ubizjak@gmail.com>
33414 * config/i386/i386.c (ix86_loop_unroll_adjust): Use PATTERN (insn)
33415 when looking for memory references.
33417 2015-05-11 Alexander Monakov <amonakov@ispras.ru>
33420 * config/i386/i386.c (ix86_function_ok_for_sibcall): Allow PIC sibcalls
33421 via function pointers.
33423 2015-05-11 Alexander Monakov <amonakov@ispras.ru>
33425 * calls.c (prepare_call_address): Transform PLT call to GOT lookup and
33426 indirect call by forcing address into a pseudo with -fno-plt.
33427 * common.opt (flag_plt): New option.
33428 * doc/invoke.texi (Code Generation Options): Add -fno-plt.
33429 ([-fno-plt]): Document.
33431 2015-05-11 Markus Trippelsdorf <markus@trippelsdorf.de>
33434 * config/rs6000/option-defaults.h: Add space between string literal
33437 2015-05-11 Thomas Preud'homme <thomas.preudhomme@arm.com>
33439 * gcc.target/arm/pr64616.c: Test dump rather than assembly to work
33440 accross ARM targets.
33442 2015-05-11 Christian Bruel <christian.bruel@st.com>
33444 * config/arm/arm-protos.h (thumb_code, thumb1_code): Remove.
33445 * config/arm/vxworks.h (thumb_code): Replace with TARGET_THUMB.
33447 2015-05-11 Richard Sandiford <richard.sandiford@arm.com>
33449 PR rtl-optimization/66076
33450 * rtlanal.c (generic_subrtx_iterator <T>::add_single_to_queue):
33451 Don't grow the heap array if it is already big enough from a
33452 previous iteration.
33454 2015-05-11 Christian Bruel <christian.bruel@st.com>
33456 * config/arm/arm-protos.h (arm_declare_function_name): Declare.
33457 (is_called_in_ARM_mode): Remove.
33458 * config/arm/arm.c (is_called_in_ARM_mode): Declare static bool.
33459 (arm_declare_function_name): Moved from from ARM_DECLARE_FUNCTION_NAME.
33460 * config/arm/arm.h (ARM_DECLARE_FUNCTION_NAME): Call
33461 arm_declare_function_name.
33463 2015-05-11 Christian Bruel <christian.bruel@st.com>
33465 * config/arm/arm.c (arm_option_override): Reoganized and split into :
33466 (arm_option_params_internal); New function.
33467 (arm_option_check_internal): New function.
33468 (arm_option_override_internal): New function.
33469 (thumb_code, thumb1_code): Remove.
33470 * config/arm/arm.h (TREE_TARGET_THUMB, TREE_TARGET_THUMB1): New macros.
33471 (TREE_TARGET_THUM2, TREE_TARGET_ARM): Likewise.
33472 (thumb_code, thumb1_code): Remove.
33473 * config/arm/arm.md (is_thumb, is_thumb1): Check TARGET flag.
33475 2015-05-11 Uros Bizjak <ubizjak@gmail.com>
33477 * config/alpha/alpha.c (alpha_emit_set_const_1)
33478 (alpha_emit_set_long_const, alpha_extract_integer)
33479 (alpha_legitimate_constant_p, alpha_split_const_mov)
33480 (alpha_expand_block_clear, alpha_expand_zap_mask, print_operand):
33481 [HOST_BITS_PER_WIDE_INT < 64]: Remove dead code.
33482 (alpha_emit_set_const_1): Change "(HOST_WIDE_INT) 1" to
33484 * config/alpha/predicates.md (mode_mask_operand): Do not match
33486 [HOST_BITS_PER_WIDE_INT < 64]: Remove dead code.
33487 * config/alpha/alpha.md (abstf, *abstf_internal, UNSPEC_ZAP splitter):
33488 Change "(HOST_WIDE_INT) 1" to HOST_WIDE_INT_1U.
33489 [HOST_BITS_PER_WIDE_INT < 64]: Remove dead code.
33490 (*negtf_internal): Use gen_int_mode instead of immed_double_const.
33492 2015-05-11 Jakub Jelinek <jakub@redhat.com>
33495 * config/s390/linux.h (TARGET_BINDS_LOCAL_P): Define to
33496 default_binds_local_p_2.
33497 * config/arm/linux-elf.h (TARGET_BINDS_LOCAL_P): Likewise.
33498 * config/aarch64/aarch64-linux.h (TARGET_BINDS_LOCAL_P): Likewise.
33500 2015-05-09 Jan Hubicka <hubicka@ucw.cz>
33502 * tree.c (verify_type_variant): Check TYPE_VALUES_RAW and TYPE_PRECISION
33504 2015-05-09 Jan Hubicka <hubicka@ucw.cz>
33506 Patch by Richard Biener
33507 * coverage.c (coverage_obj_init): Delay building of type variant
33508 until the type is finished.
33510 2015-05-09 Jan Hubicka <hubicka@ucw.cz>
33512 * ipa-devirt.c (warn_types_mismatch): Do not ICE when warning about
33513 mismatch between C and C++ type; compoare correctly ARG_TYPES
33514 for non-prototypes and output correctly parameter index for METHOD_TYPE.
33515 (odr_types_equivalent_p): Fix wording of warning about attributes;
33516 it is OK to match prototype and non-prototype.
33518 2015-05-09 Jan Hubicka <hubicka@ucw.cz>
33520 * tree.c (free_lang_data_in_type): Free TREE_PURPOSE of
33521 TYPE_ARG_TYPES list.
33522 (verify_type): Permit non-NULL TREE_PURPOSE in non-LTO builds.
33523 * tree.def (FUNCTION_TYPE): Document TREE_PURPOSE in TYPE_ARG_TYPES
33525 2015-05-09 Jan Hubicka <hubicka@ucw.cz>
33527 * tree.c (verify_type): Verify TYPE_BINFO and TYPE_VALUES_RAW.
33528 * tree.h (is_lang_specific): Constify.
33530 2015-05-09 Marc Glisse <marc.glisse@inria.fr>
33532 PR tree-optimization/64454
33533 * tree-vrp.c (extract_range_from_binary_expr_1) <TRUNC_MOD_EXPR>:
33536 2015-05-08 Jason Merrill <jason@redhat.com>
33538 * bitmap.c, c/c-aux-info.c, cfg.c, cfghooks.c, cgraph.c,
33539 config/aarch64/aarch64.md config/alpha/vms.h, config/darwin.c,
33540 config/darwin.h, config/darwin9.h, config/elfos.h,
33541 config/i386/bsd.h, config/ia64/ia64.c, config/lm32/lm32.h,
33542 config/microblaze/microblaze.h, config/mips/mips.h,
33543 config/mmix/mmix.c, config/msp430/msp430.c, config/nios2/nios2.h,
33544 config/nvptx/nvptx.c, config/nvptx/nvptx.h, config/pa/pa.c,
33545 config/pa/pa.h, config/rs6000/rs6000.c, config/rs6000/sysv4.h,
33546 config/rs6000/xcoff.h, config/rx/rx.h, config/s390/s390.h,
33547 config/sparc/sol2.h, config/sparc/sparc.h, config/visium/visium.h,
33548 cppbuiltin.c, defaults.h, doc/invoke.texi, dwarf2cfi.c,
33549 dwarf2out.c, final.c, gcc.c, gcov-dump.c, gcov.c, ipa-cp.c,
33550 ipa-inline.c, ipa-polymorphic-call.c, ipa-profile.c, ipa-prop.c,
33551 ira-color.c, ira.c, loop-doloop.c, loop-iv.c, mcf.c,
33552 modulo-sched.c, predict.c, profile.c, stor-layout.c, toplev.c,
33553 tree-ssa-reassoc.c, value-prof.c, wide-int-print.cc: Add space
33554 between string literal and macro name.
33556 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
33558 * jump.c: Change argument types to rtx_insn *.
33561 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
33563 * lra-constraints.c: Change argument type to rtx_insn *.
33565 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
33567 * df-problems.c: Change argument type to rtx_insn *.
33569 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
33571 * combine.c: Change argument type to rtx_insn *.
33573 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
33576 * rtlanal.c: Change argument type to rtx_insn *.
33578 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
33580 * sched-deps.c: Change argument types to rtx_insn *.
33581 * sched-int.h: Adjust.
33583 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
33585 * dwarf2cfi.c: Change argument type to rtx_insn *.
33587 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
33589 * ira.c (decrease_live_ranges_number): Changetype of local
33590 variable to rtx_insn *.
33591 * recog.c: Change argument types to rtx_insn *.
33594 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
33596 * reorg.c: Change argument types to rtx_insn *.
33598 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
33600 * ira-color.c: Change argument types to rtx_insn *.
33601 * lra-eliminations.c: Likewise.
33604 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
33606 * gcse.c: Change argument types to rtx_insn *.
33608 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
33610 * cse.c (cse_change_cc0_mode): Change argument type to rtx_insn *.
33612 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
33614 * emit-rtl.c (emit_debug_insn_before): Change argument type to
33618 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
33620 * emit-rtl.c (emit_note_before): Change argument type to rtx_insn *.
33623 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
33625 * emit-rtl.c (emit_note_after): Change argument type to rtx_insn *.
33628 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
33630 * emit-rtl.c (prev_cc0_setter): Change argument type to rtx_insn *.
33633 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
33635 * rtlanal.c (noop_move_p): Change argument type to rtx_insn *.
33638 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
33640 * rtlanal.c (add_shallow_copy_of_reg_note): Change argument type
33644 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
33646 * rtlanal.c (remove_reg_equal_equiv_notes): Change argument type
33650 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
33652 * except.c (can_nonlocal_goto): Change type of argument to
33656 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
33658 * rtlanal.c (computed_jump_p): Cange argument type to rtx_insn *.
33661 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
33663 * rtlanal.c (in_insn_list_p): Renamed from in_expr_list_p.
33664 * cfgrtl.c (can_delete_label_p): Adjust.
33667 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
33669 * reorg.c (stop_search_p): Change argument to rtx_insn *.
33671 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
33673 * except.c (make_reg_eh_region_note): Change argument to
33675 (make_reg_eh_region_note_nothrow_nononlocal): Likewise.
33676 * except.h: Adjust.
33678 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
33680 * mode-switching.c (commit_mode_sets): Change type of local
33681 variable from rtx to rtx_insn *.
33683 2015-05-08 Jim Wilson <jim.wilson@linaro.org>
33685 * doc/install.texi (--enable-languages): Add missing jit and lto info.
33686 Add ^ to grep command.
33687 * doc/match-and-simplify.texi (GIMPLE API): Add missing fourth tree
33688 arg to last gimple_simplify declaration. Add missing gimple_build
33689 declaration for built-in function case with four tree args.
33691 2015-05-08 Gregor Richards <gregor.richards@uwaterloo.ca>
33692 Szabolcs Nagy <szabolcs.nagy@arm.com>
33694 * config/mips/linux.h (MUSL_DYNAMIC_LINKER32): Define.
33695 (MUSL_DYNAMIC_LINKER64, MUSL_DYNAMIC_LINKERN32): Define.
33696 (GNU_USER_DYNAMIC_LINKERN32): Update.
33698 2015-05-08 Richard Biener <rguenther@suse.de>
33700 PR tree-optimization/66036
33701 * tree-vect-data-refs.c (vect_compute_data_ref_alignment):
33702 Handle strided group loads.
33703 (vect_verify_datarefs_alignment): Likewise.
33704 (vect_enhance_data_refs_alignment): Likewise.
33705 (vect_analyze_group_access): Likewise.
33706 (vect_analyze_data_ref_access): Likewise.
33707 (vect_analyze_data_ref_accesses): Likewise.
33708 * tree-vect-stmts.c (vect_model_load_cost): Likewise.
33709 (vectorizable_load): Likewise.
33711 2015-05-08 Segher Boessenkool <segher@kernel.crashing.org>
33713 * config/rs6000/rs6000.md: Require operand inequality in one
33716 2015-05-08 Richard Sandiford <richard.sandiford@arm.com>
33717 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
33719 * config/i386/i386.md (<mode>_ldx, *<mode>_ldx): Remove mode
33721 * config/rx/rx.md (movdi, movdf): Likewise.
33722 Likewise for define_peephole2s.
33724 2015-05-08 Alan Lawrence <alan.lawrence@arm.com>
33726 * config/aarch64/arm_neon.h (vceq_s64, vceq_u64, vceqz_s64, vceqz_u64,
33727 vcge_s64, vcge_u64, vcgez_s64, vcgt_s64, vcgt_u64, vcgtz_s64, vcle_s64,
33728 vcle_u64, vclez_s64, vclt_s64, vclt_u64, vcltz_s64, vtst_s64,
33729 vtst_u64): Rewrite using gcc vector extensions.
33731 2015-05-08 Alan Lawrence <alan.lawrence@arm.com>
33733 * config/aarch64/aarch64-simd.md (aarch64_vcond_internal<mode><mode>,
33734 vcond<mode><mode>, vcondu<mode><mode>): Add DImode variant.
33736 2015-05-08 Alan Lawrence <alan.lawrence@arm.com>
33738 * optabs.c (vector_compare_rtx): Handle RTL operands having VOIDmode.
33740 2015-05-08 Szabolcs Nagy <szabolcs.nagy@arm.com>
33742 * config/glibc-stdint.h (OPTION_MUSL): Define.
33743 (INT_FAST16_TYPE, INT_FAST32_TYPE, UINT_FAST16_TYPE, UINT_FAST32_TYPE):
33744 Change the definition based on OPTION_MUSL for 64 bit targets.
33745 * config/linux.h (OPTION_MUSL): Redefine.
33746 * config/alpha/linux.h (OPTION_MUSL): Redefine.
33747 * config/rs6000/linux.h (OPTION_MUSL): Redefine.
33748 * config/rs6000/linux64.h (OPTION_MUSL): Redefine.
33750 2015-05-08 Gregor Richards <gregor.richards@uwaterloo.ca>
33751 Szabolcs Nagy <szabolcs.nagy@arm.com>
33753 * config.gcc (LIBC_MUSL): New tm_defines macro.
33754 * config/linux.h (OPTION_MUSL): Define.
33755 (MUSL_DYNAMIC_LINKER, MUSL_DYNAMIC_LINKER32,)
33756 (MUSL_DYNAMIC_LINKER64, MUSL_DYNAMIC_LINKERX32,)
33757 (INCLUDE_DEFAULTS_MUSL_GPP, INCLUDE_DEFAULTS_MUSL_LOCAL,)
33758 (INCLUDE_DEFAULTS_MUSL_PREFIX, INCLUDE_DEFAULTS_MUSL_CROSS,)
33759 (INCLUDE_DEFAULTS_MUSL_TOOL, INCLUDE_DEFAULTS_MUSL_NATIVE): Define.
33760 * config/linux.opt (mmusl): New option.
33761 * doc/invoke.texi (GNU/Linux Options): Document -mmusl.
33762 * configure.ac (gcc_cv_libc_provides_ssp): Add *-*-musl*.
33763 (gcc_cv_target_dl_iterate_phdr): Add *-linux-musl*.
33764 * configure: Regenerate.
33766 2015-05-08 H.J. Lu <hongjiu.lu@intel.com>
33767 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
33770 * config.gcc (x86_64-*-knetbsd*-gnu): Add i386/knetbsd-gnu64.h.
33771 * config/i386/knetbsd-gnu64.h: New file.
33773 2015-05-08 Marek Polacek <polacek@redhat.com>
33776 * doc/invoke.texi: Document -Woverride-init-side-effects.
33778 2015-05-07 Marek Polacek <polacek@redhat.com>
33781 * doc/invoke.texi: Document -Wshift-negative-value.
33783 2015-05-06 Aditya Kumar <hiraditya@msn.com>
33785 * gcov-tool.c (do_merge): Refactore to remove int ret.
33786 * ipa-icf.c (sem_item::hash_referenced_symbol_properties): Change
33787 !type == FUNC to type != FUNC.
33788 * reload.h (struct target_reload): Changee to type of
33789 x_spill_indirect_levels from bool to unsigned char.
33791 2015-05-07 Richard Sandiford <richard.sandiford@arm.com>
33793 * rtl.h (always_void_p): New function.
33794 * gengenrtl.c (always_void_p): Likewise.
33795 (genmacro): Don't add a mode parameter to gen_rtx_foo if rtxes
33796 with code foo are always VOIDmode.
33797 * genemit.c (gen_exp): Update gen_rtx_foo calls accordingly.
33798 * builtins.c, caller-save.c, calls.c, cfgexpand.c, combine.c,
33799 compare-elim.c, config/aarch64/aarch64.c,
33800 config/aarch64/aarch64.md, config/alpha/alpha.c,
33801 config/alpha/alpha.md, config/arc/arc.c, config/arc/arc.md,
33802 config/arm/arm-fixed.md, config/arm/arm.c, config/arm/arm.md,
33803 config/arm/ldrdstrd.md, config/arm/thumb2.md, config/arm/vfp.md,
33804 config/avr/avr.c, config/bfin/bfin.c, config/c6x/c6x.c,
33805 config/c6x/c6x.md, config/cr16/cr16.c, config/cris/cris.c,
33806 config/cris/cris.md, config/darwin.c, config/epiphany/epiphany.c,
33807 config/epiphany/epiphany.md, config/fr30/fr30.c, config/frv/frv.c,
33808 config/frv/frv.md, config/h8300/h8300.c, config/i386/i386.c,
33809 config/i386/i386.md, config/i386/sse.md, config/ia64/ia64.c,
33810 config/ia64/vect.md, config/iq2000/iq2000.c,
33811 config/iq2000/iq2000.md, config/lm32/lm32.c, config/lm32/lm32.md,
33812 config/m32c/m32c.c, config/m32r/m32r.c, config/m68k/m68k.c,
33813 config/m68k/m68k.md, config/mcore/mcore.c, config/mcore/mcore.md,
33814 config/mep/mep.c, config/microblaze/microblaze.c,
33815 config/mips/mips.c, config/mips/mips.md, config/mmix/mmix.c,
33816 config/mn10300/mn10300.c, config/msp430/msp430.c,
33817 config/nds32/nds32-memory-manipulation.c, config/nds32/nds32.c,
33818 config/nds32/nds32.md, config/nios2/nios2.c, config/nvptx/nvptx.c,
33819 config/pa/pa.c, config/pa/pa.md, config/rl78/rl78.c,
33820 config/rs6000/altivec.md, config/rs6000/rs6000.c,
33821 config/rs6000/rs6000.md, config/rs6000/vector.md,
33822 config/rs6000/vsx.md, config/rx/rx.c, config/rx/rx.md,
33823 config/s390/s390.c, config/s390/s390.md, config/sh/sh.c,
33824 config/sh/sh.md, config/sh/sh_treg_combine.cc,
33825 config/sparc/sparc.c, config/sparc/sparc.md, config/spu/spu.c,
33826 config/spu/spu.md, config/stormy16/stormy16.c,
33827 config/tilegx/tilegx.c, config/tilegx/tilegx.md,
33828 config/tilepro/tilepro.c, config/tilepro/tilepro.md,
33829 config/v850/v850.c, config/v850/v850.md, config/vax/vax.c,
33830 config/visium/visium.c, config/xtensa/xtensa.c, cprop.c, dse.c,
33831 expr.c, gcse.c, ifcvt.c, ira.c, jump.c, lower-subreg.c,
33832 lra-constraints.c, lra-eliminations.c, lra.c, postreload.c, ree.c,
33833 reg-stack.c, reload.c, reload1.c, reorg.c, sel-sched.c,
33834 var-tracking.c: Update calls accordingly.
33836 2015-05-07 Segher Boessenkool <segher@kernel.crashing.org>
33839 PR middle-end/54303
33840 * varasm.c (function_mergeable_rodata_prefix): New function.
33841 (mergeable_string_section): Use it.
33842 (mergeable_constant_section): Use it.
33844 2015-05-07 Jeff Law <law@redhat.com>
33847 * match.pd (bit_and (plus/minus (convert @0) (convert @1) mask): New
33848 simplifier to narrow arithmetic.
33849 * generic-match-head.c: (types_match, single_use): New functions.
33850 * gimple-match-head.c: (types_match, single_use): New functions.
33852 2015-05-07 Venkataramanan Kumar <venkataramanan.kumar@amd.com>
33854 * combine.c (make_compound_operation): Remove checks for PLUS/MINUS
33857 2015-05-07 Richard Biener <rguenther@suse.de>
33859 PR tree-optimization/66002
33860 * passes.def: Schedule another pass_merge_phi after ifcombine, right
33863 2015-05-07 Marek Polacek <polacek@redhat.com>
33864 Martin Uecker <uecker@eecs.berkeley.edu>
33866 * doc/invoke.texi: Document -fsanitize=bounds-strict.
33867 * flag-types.h (enum sanitize_code): Add SANITIZE_BOUNDS_STRICT, or it
33868 into SANITIZE_NONDEFAULT.
33869 * opts.c (common_handle_option): Handle -fsanitize=bounds-strict.
33871 2015-05-07 Uros Bizjak <ubizjak@gmail.com>
33874 * config/alpha/alpha.c (alpha_override_options_after_change): New.
33875 (TARGET_OVERRIDE_OPTIONS_AFTER_CHANGE): New.
33876 (alpha_override_options): Move align_loops, align_jumps and
33877 align_functions handling into alpha_override_options_after_change.
33879 2015-05-06 Sandra Loosemore <sandra@codesourcery.com>
33880 Chris Jones <chrisj@nvidia.com>
33881 Joshua Conner <jconner@nvidia.com>
33883 * config/arm/unknown-elf.h (STARTFILE_SPEC): Add conditional
33884 linking of crtfastmath.o.
33885 * config/arm/linux-eabi.h (STARTFILE_SPEC): Likewise.
33887 2015-05-06 Segher Boessenkool <segher@kernel.crashing.org>
33889 * config/rs6000/rs6000.md (cstore<mode>4_signed_imm): New expander.
33890 (cstore<mode>4_unsigned_imm): New expander.
33891 (cstore<mode>4): Remove empty constraint strings. Use the new
33894 2015-05-06 Yvan Roux <yvan.roux@linaro.org>
33897 * config/arm/iwmmxt.md ("*iwmmxt_arm_movdi"): Cleanup redundant
33900 2015-05-06 Szabolcs Nagy <szabolcs.nagy@arm.com>
33902 * config/aarch64/geniterators.sh: Use standard BRE in sed.
33904 2015-05-06 Alan Modra <amodra@gmail.com>
33907 * config/rs6000/rs6000.md (nop): Use an unspec pattern.
33908 (UNSPEC_NOP): Define.
33909 (reload_vsx_from_gpr<mode>): Add missing DONE.
33910 (reload_gpr_from_vsx<mode>): Likewise.
33911 * config/rs6000/vsx.md (vsx_mul_v2di): Likewise.
33912 (vsx_div_v2di, vsx_udiv_v2di): Likewise.
33914 2015-05-06 Christian Bruel <christian.bruel@st.com>
33917 * config/aarch64/aarch64.c (aarch64_override_options): Move align_loops,
33918 align_jumps, align_functions into aarch64_override_options_after_change.
33920 2015-05-06 Richard Biener <rguenther@suse.de>
33922 * tree-vect-slp.c (vect_supported_load_permutation_p): Use
33923 vect_transform_slp_perm_load to check if we support a permutation
33924 for basic-block vectorization.
33926 2015-05-06 Nick Clifton <nickc@redhat.com>
33928 * config/rl78/rl78.c (need_to_save): Save register 22 if it is
33929 used, even if it is not being used as a frame pointer.
33931 2015-05-05 Jason Merrill <jason@redhat.com>
33933 * dwarf2out.c (gen_member_die): Don't emit anything for an
33934 anonymous class constructor.
33936 2015-05-05 David Malcolm <dmalcolm@redhat.com>
33938 * auto-profile.c (afdo_find_equiv_class): Fix indentation so
33939 that it reflects the block structure.
33940 (afdo_propagate_edge): Likewise.
33941 (afdo_calculate_branch_prob): Likewise.
33942 (afdo_annotate_cfg): Likewise.
33943 * cfgcleanup.c (equal_different_set_p): Likewise.
33944 (try_crossjump_to_edge): Likewise.
33945 * cgraph.c (cgraph_node::verify_node): Likewise.
33946 * cgraphunit.c (expand_all_functions): Likewise.
33947 * config/i386/i386.c (ix86_expand_copysign): Likewise.
33948 (exact_dependency_1): Likewise.
33949 * dwarf2asm.c (dw2_output_indirect_constants): Likewise.
33950 * dwarf2out.c (tree_add_const_value_attribute_for_decl): Likewise.
33951 * gensupport.c (process_define_subst): Likewise.
33952 * lto-wrapper.c (merge_and_complain): Likewise.
33953 * tree-if-conv.c (if_convertible_bb_p): Likewise.
33954 * tree-ssa-loop-prefetch.c (find_or_create_group): Likewise.
33955 * tree-ssa-tail-merge.c (gsi_advance_fw_nondebug_nonlocal): Likewise.
33956 * tree-vect-data-refs.c (vect_grouped_load_supported): Likewise.
33957 * tree-vect-loop.c (vectorizable_reduction): Likewise.
33958 * tree-vect-slp.c (vect_transform_slp_perm_load): Likewise.
33959 * tree-vect-stmts.c (vectorizable_shift): Likewise.
33960 * tree-vrp.c (vrp_finalize): Likewise.
33961 * tree.c (variably_modified_type_p): Likewise.
33963 2015-05-05 Jack Howarth <howarth.at.gcc@gmail.com>
33965 * config.gcc: Use darwin9.h, darwin10.h and darwin12.h
33966 on darwin12 and later.
33967 * config/darwin12.h (LINK_GCC_C_SEQUENCE_SPEC): Add
33968 file to pass -rdynamic on darwin12 and later.
33969 * config/darwin.opt (rdynamic): Add.
33971 2015-05-05 Uros Bizjak <ubizjak@gmail.com>
33973 * doc/extend.texi (C Extensions): Update menu for moved Variable
33974 Attributes and Type Attributes sections.
33976 2015-05-05 Uros Bizjak <ubizjak@gmail.com>
33979 * config/i386/i386.c (ix86_parse_stringop_strategy_string): Error out
33980 if rep_8byte stringop strategy was specified for 32-bit target.
33982 2015-05-05 Ilya Tocar <ilya.tocar@intel.com>
33985 * config/i386/i386.md (vector convert to float spltiter): Check for
33986 xmm16+, when splitting scalar float conversion.
33987 * config/i386/sse.md (sse2_cvtsi2sd): Support EVEX version.
33989 2015-05-05 Nick Clifton <nickc@redhat.com>
33991 * config/msp430/msp430-opts.h (enum msp430_regions): New.
33992 * config/msp430/msp430.c (msp430_override_options): Complain if
33993 -mcode-region or -mdata-region is used on a non MSP430X.
33994 (msp430_section_attr): New function. Checks lower, upper and
33996 (msp430_attribute_table): Add lower, upper and either.
33997 (gen_prefix): New function. Generates a prefix for a section
33999 (msp430_select_section): New function - handles the choice of
34000 section for an object. Takes into account memory region
34001 attributes and options.
34002 (msp430_function_section): Use gen_prefix.
34003 (TARGET_SECTION_TYPE_FLAGS): Define.
34004 (msp430_section_type_flags): New function.
34005 (TARGET_ASM_UNIQUE_SECTION): Define.
34006 (msp430_unique_section): New function.
34007 (msp430_output_aligned_decl_common): New function.
34008 (msp430_do_not_relax_short_jumps): New function.
34009 * config/msp430/msp430.h (USE_SELECT_SECTION_FOR_FUNCTIONS):
34011 (ASM_OUTPUT_ALIGNED_DECL_COMMON): Define.
34012 * config/msp430/msp430-protos.h
34013 (msp430_do_not_relax_short_jumps): New prototype.
34014 (msp430_output_aligned_decl_common): New prototype.
34015 * config/msp430/msp430.md (length): New attribute.
34016 (cbranchhi4_real): If msp430_do_not_relax_short_jumps is true
34017 then use a long code sequence for short jumps.
34018 * config/msp430/msp430.opt (mcode-region): New.
34019 (mdata-region): New.
34020 * doc/invoke.texi: Document new options.
34021 * doc/extend.texi: Document new attributes.
34023 2015-05-05 Matthew Wahab <matthew.wahab@arm.com>
34025 * config/aarch64-protos.h (struct cpu_branch_cost): New.
34026 (tune_params): Add field branch_costs.
34027 (aarch64_branch_cost): Declare.
34028 * config/aarch64.c (generic_branch_cost): New.
34029 (generic_tunings): Set field cpu_branch_cost to generic_branch_cost.
34030 (cortexa53_tunings): Likewise.
34031 (cortexa57_tunings): Likewise.
34032 (thunderx_tunings): Likewise.
34033 (xgene1_tunings): Likewise.
34034 (aarch64_branch_cost): Define.
34035 * config/aarch64/aarch64.h (BRANCH_COST): Redefine.
34037 2015-05-05 Uros Bizjak <ubizjak@gmail.com>
34039 * config/i386/i386.c: Use HOST_WIDE_INT_1 instead of (HOST_WIDE_INT) 1
34040 and HOST_WIDE_INT_1U instead of (unsigned HOST_WIDE_INT) 1.
34041 * config/i386/i386.md: Ditto.
34042 * config/i386/winnt.c: Ditto.
34044 2015-05-05 Matthew Wahab <matthew.wahab@arm.com>
34046 * doc/extend.texi (__atomic Builtins): Move implementation details
34047 to the end of the description, rewrite opening paragraphs, state
34048 difference with __sync builtins, state C11/C++11 assumptions,
34049 weaken itemized descriptions, add explanation of memory model
34050 behaviour, expand description of compare-exchange, simplify text.
34052 2015-05-05 Renlin Li <renlin.li@arm.com>
34054 * config/aarch64/aarch64.md (add<mode>3): Use mov when allowed.
34056 2015-05-05 Yvan Roux <yvan.roux@linaro.org>
34058 * config/aarch64/aarch64-elf-raw.h (CA53_ERR_843419_SPEC): Define.
34059 (LINK_SPEC): Include CA53_ERR_843419_SPEC.
34060 * config/aarch64/aarch64-linux.h (CA53_ERR_843419_SPEC): Define.
34061 (LINK_SPEC): Include CA53_ERR_843419_SPEC.
34062 * config/aarch64/aarch64.opt (mfix-cortex-a53-843419): New option.
34063 * configure: Regenerate.
34064 * configure.ac: Add --enable-fix-cortex-a53-843419 option.
34065 * doc/install.texi (aarch64*-*-*): Document new
34066 --enable-fix-cortex-a53-843419 option.
34067 * doc/invoke.texi (AArch64 Options): Document -mfix-cortex-a53-843419
34068 and -mno-fix-cortex-a53-843419 options.
34070 2015-05-05 Uros Bizjak <ubizjak@gmail.com>
34073 * config/i386/i386.md (*bmi_andn_<mode>_ccno): New pattern.
34075 2015-05-04 Jan Hubicka <hubicka@ucw.cz>
34077 * tree.c (verify_type): Check various uses of TYPE_MAXVAL;
34078 fix overactive TYPE_MIN_VALUE check and add FIXME for type
34079 compatibility problems.
34081 2015-05-04 Ajit Agarwal <ajitkum@xilinx.com>
34083 * config/microblaze/microblaze.md (cbranchsi4): Added immediate
34085 (cbranchsi4_reg): New.
34086 * config/microblaze/microblaze.c
34087 (microblaze_expand_conditional_branch_reg): New.
34088 * config/microblaze/microblaze-protos.h
34089 (microblaze_expand_conditional_branch_reg): New prototype.
34091 2015-05-04 Ajit Agarwal <ajitkum@xilinx.com>
34093 * config/microblaze/microblaze.md (peephole2): New.
34095 2015-05-04 Jeff Law <law@redhat.com>
34098 2015-05-04 Jeff Law <law@redhat.com>
34100 * match.pd (bit_and (plus/minus (convert @0) (convert @1) mask): New
34101 simplifier to narrow arithmetic.
34102 * generic-match-head.c: (types_match, single_use): New functions.
34103 * gimple-match-head.c: (types_match, single_use): New functions.
34105 2015-05-04 Kaz Kojima <kkojima@gcc.gnu.org>
34108 * config/sh/sh.c (output_far_jump): Take into account crossing jumps.
34109 (split_branches): Likewise.
34111 2015-05-04 Sandra Loosemore <sandra@codesourcery.com>
34113 * common.opt (fdelete-null-pointer-checks): Init to -1.
34114 * config/nios2/elf.h (SUBTARGET_OVERRIDE_OPTIONS): Define to
34115 override flag_delete_null_pointer_checks default.
34116 * doc/invoke.texi (-fdelete-null-pointer-checks): Clarify
34117 behavior re address zero. Better document target-specific behavior.
34118 (-fisolate-errneous-paths-dereference): Mention relationship to
34119 -fdelete-null-pointer-checks.
34121 2015-05-04 Jakub Jelinek <jakub@redhat.com>
34123 PR tree-optimization/65984
34124 * ubsan.c: Include tree-cfg.h.
34125 (instrument_bool_enum_load): Use stmt_ends_bb_p instead of
34126 stmt_could_throw_p test, rename can_throw variable to ends_bb.
34128 2015-05-04 Uros Bizjak <ubizjak@gmail.com>
34130 * config/i386/i386.c: Change GET_CODE (...) == CONST_DOUBLE check
34131 to CONST_DOUBLE_P predicate.
34132 (standard_sse_constant_p): Return 0 for !TARGET_SSE.
34133 (ix86_legitimate_constant_p) <case CONST_WIDE_INT>: For 32bit targets,
34134 allow only operands that satisfy standard_sse_constant_p predicate.
34135 * config/i386/i386.md: Change GET_CODE (...) == CONST_DOUBLE check
34136 to CONST_DOUBLE_P predicate.
34138 2015-05-04 Jeff Law <law@redhat.com>
34140 * match.pd (bit_and (plus/minus (convert @0) (convert @1) mask): New
34141 simplifier to narrow arithmetic.
34142 * generic-match-head.c: (types_match, single_use): New functions.
34143 * gimple-match-head.c: (types_match, single_use): New functions.
34145 2015-05-04 Andreas Tobler <andreast@gcc.gnu.org>
34147 * config/arm/arm.c: Restore bootstrap.
34149 2015-05-04 Uros Bizjak <ubizjak@gmail.com>
34151 * config/i386/i386.h (TARGET_SUPPORTS_WIDE_INT): New define.
34152 * config/i386/i386.c (ix86_legitimate_constant_p): Handle TImode
34153 as CONST_WIDE_INT, not CONST_DOUBLE.
34154 (ix86_cannot_force_const_mem): Handle CONST_WIDE_INT.
34155 (output_pic_addr_const): Do not handle VOIDmode CONST_DOUBLEs.
34156 (ix86_find_base_term): Do not check for CONST_DOUBLE.
34157 (ix86_print_operand): Do not handle non-FPmode CONST_DOUBLEs.
34158 (ix86_build_signbit_mask): Rewrite using wide ints.
34159 (ix86_split_to_parts) [HOST_BITS_PER_WIDE_INT < 64]: Remove.
34160 (ix86_rtx_costs): Handle CONST_WIDE_INT.
34161 (find_constant): Ditto.
34162 * config/i386/i386.md (bts, btr, btc peepholes): Rewrite
34163 using gen_int_mode.
34164 * config/i386/predicates.md (x86_64_immediate_operand)
34165 <case CONST_INT>: Remove HOST_BITS_PER_WIDE_INT == 32 code.
34166 (x86_64_zext_immediate_operand): Remove CONST_DOUBLE handling.
34167 <case CONST_INT>: Remove HOST_BITS_PER_WIDE_INT == 32 code.
34168 (const0_operand): Also match const_wide_int.
34169 (constm1_operand): Ditto.
34170 (const1_operand): Ditto.
34172 2015-05-04 Richard Biener <rguenther@suse.de>
34174 PR tree-optimization/65965
34175 * tree-vect-data-refs.c (vect_analyze_data_ref_accesses): Split
34176 store groups at gaps.
34178 2015-05-04 Richard Biener <rguenther@suse.de>
34180 PR tree-optimization/65935
34181 * tree-vect-slp.c (vect_build_slp_tree): If we swapped operands
34182 then make sure to apply that swapping to the IL.
34184 2015-05-04 Jakub Jelinek <jakub@redhat.com>
34186 * Makefile.in (PATCHLEVEL_c): New variable.
34187 (DATESTAMP_s, REVISION_s): If PATCHLEVEL_c is not 0,
34188 expand the same way as if DEVPHASE_c was non-empty.
34190 2015-05-04 Kai Tietz <ktietz@redhat.com>
34193 * lto-wrapper.c (run_gcc): Open filename
34196 2015-05-03 Sandra Loosemore <sandra@codesourcery.com>
34198 * doc/extend.texi (Variable Attributes, Type Attributes): Move
34199 sections up in file, to immediately after the Function Attributes
34202 2015-05-02 Jan Hubicka <hubicka@ucw.cz>
34204 * tree.c (verify_type): Check various uses of TYPE_MINVAL.
34206 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
34208 * tree-outof-ssa.c (emit_partition_copy): Return rtx_insn *.
34209 (insert_partition_copy_on_edge): Adjust.
34210 (insert_rtx_to_part_on_edge): Likewise.
34211 (insert_part_to_rtx_on_edge): Likewise.
34213 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
34215 * function.c (set_return_jump_label): Change type of argument to
34217 * function.h (set_return_jump_label): Adjust.
34219 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
34221 * reload.h (struct reg_equivs_t): Change type of init to
34223 * ira.c (fix_reg_equiv_init): Adjust.
34224 * reload1.c (eliminate_regs_1): Likewise.
34225 (init_eliminable_invariants): Likewise.
34227 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
34229 * cselib.c (fp_setter_insn): Take a rtx_insn *.
34230 * cselib.h (fp_setter_insn): Adjust.
34232 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
34234 * recog.c (struct validate_replace_src_data): Change type of
34235 insn field to rtx_insn *.
34236 (validate_replace_src_group): Change type of argument to rtx_insn *.
34237 * recog.h (validate_replace_src_group): Adjust.
34239 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
34241 * haifa-sched.c: Change the type of some variables to rtx_insn *.
34242 * sched-deps.c: Likewise.
34243 * sched-int.h: Likewise.
34244 * sched-rgn.c: Likewise.
34245 * sel-sched.c: Likewise.
34247 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
34250 * config/i386/i386.c: Change the type of some arguments to
34252 * config/arm/arm.c: Likewise.
34254 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
34256 * lra-constraints.c: Change type of some arguments to rtx_insn *.
34258 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
34260 * regcprop.c (kill_autoinc_value): Change type of argument to
34263 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
34265 * genrecog.c (print_subroutine): Adjust.
34266 * recog.c (get_bool_attr_mask_uncached): Likewise.
34267 * recog.h (struct recog_data_d): Change the type of insn to
34270 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
34272 * dwarf2cfi.c (add_cfi_insn): Change type to rtx_insn *.
34274 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
34276 * df-problems.c (df_set_note): Change type of argument to
34279 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
34281 * builtins.c (expand_builtin_trap): Change type of local
34282 variable to rtx_insn *.
34283 (add_sched_insns_for_speculation): Likewise.
34284 (ix86_emit_save_regs): Likewise.
34285 (get_scratch_register_on_entry): Likewise.
34286 (ix86_emit_restore_reg_using_pop): Likewise.
34287 (ix86_emit_leave): Likewise.
34288 (ix86_emit_restore_regs_using_mov): Likewise.
34289 (ix86_expand_epilogue): Likewise.
34291 (rl78_alloc_physical_registers_umul): Likewise.
34292 * cselib.c (discard_useless_locs): Likewise.
34293 (cselib_invalidate_regno): Likewise.
34294 (cselib_invalidate_mem): Likewise.
34295 * function.c (expand_function_start): Likewise.
34296 (emit_use_return_register_into_block): Likewise.
34297 * gcse.c: Likewise.
34298 * haifa-sched.c (ok_for_early_queue_removal): Likewise.
34299 * ifcvt.c (noce_get_alt_condition): Likewise.
34300 * loop-doloop.c (doloop_condition_get): Likewise.
34301 * lra-constraints.c (inherit_in_ebb): Likewise.
34302 * modulo-sched.c (sms_schedule_by_order): Likewise.
34303 * recog.c (next_insn_tests_no_inequality): Likewise.
34304 * reorg.c (emit_delay_sequence): Likewise.
34305 (update_reg_dead_notes): Likewise.
34306 (fix_reg_dead_note): Likewise.
34307 (fill_slots_from_thread): Likewise.
34308 (delete_computation): Likewise.
34310 2015-05-01 Sandra Loosemore <sandra@codesourcery.com>
34312 * doc/extend.texi (Variable Attributes): Add menu and proper
34313 @nodes to subsections. Move Microsoft Windows attributes to
34314 their own subsection.
34315 (Type Attributes): Reorganize introduction to remove duplicate
34316 list of attributes. Add menu and proper @nodes to subsections.
34317 Alphabetize the main table of common attributes.
34319 2015-05-01 Rasmus Villemoes <rv@rasmusvillemoes.dk>
34321 * match.pd: New simplification patterns.
34322 (x + (x & 1)) -> ((x + 1) & ~1)
34323 (x & ~(x & y)) -> ((x & ~y))
34324 (x | ~(x | y)) -> ((x | ~y))
34326 2015-05-01 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
34328 * target.def (attribute_table): Mention that struct attribute_spec
34329 is defined in tree-core.h rather than tree.h
34330 * doc/tm.texi: Regenerate.
34332 2015-05-01 Richard Sandiford <richard.sandiford@arm.com>
34334 * genrecog.c (test): Rename to rtx_test. Update rest of file
34337 2015-05-01 Andreas Schwab <schwab@linux-m68k.org>
34339 PR translation/65959
34340 * params.h (DEFPARAM): Rename msgid to nocmsgid.
34342 2015-05-01 Wilco Dijkstra <wdijkstr@arm.com>
34344 * config/aarch64/aarch64-protos.h (tune_params):
34345 Add min_div_recip_mul_sf and min_div_recip_mul_df fields.
34346 * config/aarch64/aarch64.c (aarch64_min_divisions_for_recip_mul):
34347 Return value depending on target.
34348 (generic_tunings): Initialize new target settings.
34349 (cortexa53_tunings): Likewise.
34350 (cortexa57_tunings): Likewise.
34351 (thunderx_tunings): Likewise.
34352 (xgene1_tunings): Likewise.
34354 2015-05-01 Wilco Dijkstra <wdijkstr@arm.com>
34356 * config/arm/aarch-cost-tables.h (cortexa53_extra_costs):
34357 Make Cortex-A53 shift costs more accurate.
34359 2015-05-01 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
34361 * config/aarch64/aarch64.c (aarch64_rtx_costs): Handle FLOAT and
34364 2015-05-01 Wilco Dijkstra <wdijkstr@arm.com>
34366 * config/aarch64/aarch64.c (aarch64_rtx_costs):
34367 Calculate cost of op0 and op1 in PLUS and MINUS cases.
34369 2015-05-01 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
34371 * config/aarch64/aarch64.c (aarch64_rtx_costs, COMPARE case):
34372 Add cost of op0 in the compare-with-fpzero case.
34374 2015-04-30 David Malcolm <dmalcolm@redhat.com>
34376 * builtins.c (fold_builtin_1): Remove spurious second
34378 * cgraph.h (symtab_node::get_availability): Likewise.
34379 * opts.c (common_handle_option): Remove spurious second semicolon.
34380 * tree-ssa-loop-ivopts.c (extract_cond_operands): Likewise.
34381 * tree-ssa-loop-niter.c (derive_constant_upper_bound_ops): Likewise.
34383 2015-04-30 Caroline Tice <cmtice@google.com>
34385 PR gcov-profile/65929
34386 * config/elfos.h (ASM_DECLARE_COLD_FUNCTION_NAME): New macro definition.
34387 (ASM_DECLARE_COLD_FUNCTION_SIZE): New macro definition.
34388 * doc/tm.texi.in (ASM_DECLARE_COLD_FUNCTION_NAME): Document new macro.
34389 (ASM_DECLARE_COLD_FUNCTION_SIZE): Document new macro.
34390 * doc/tm.texi: Regenerate.
34391 * final.c (final_scan_insn): Use ASM_DECLARE_COLD_FUNCTION_NAME
34392 instead of ASM_DECLARE_FUNCTION_NAME for cold partition name.
34393 * varasm.c (assemble_end_function): Use ASM_DECLARE_COLD_FUNCTION_SIZE
34394 instead of ASM_DECLARE_FUNCTION_SIZE for cold partition size.
34396 2015-04-30 Marek Polacek <polacek@redhat.com>
34398 * varasm.c (handle_cache_entry): Fix logic.
34400 2015-04-30 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
34402 * config/aarch64/aarch64.md (*extr<mode>5_insn_alt): New pattern.
34403 (*extrsi5_insn_uxtw_alt): Likewise.
34404 * config/aarch64/aarch64.c (aarch64_extr_rtx_p): New function.
34405 (aarch64_rtx_costs, IOR case): Use above to properly cost extr
34408 2015-04-30 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
34410 * config/aarch64/aarch64.c (aarch64_rtx_costs): Handle pattern for
34413 2015-04-30 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
34415 * config/aarch64/aarch64.md
34416 (*eor_one_cmpl_<SHIFT:optab><mode>3_alt): New pattern.
34417 (*eor_one_cmpl_<SHIFT:optab>sidi3_alt_ze): Likewise.
34418 * config/aarch64/aarch64.c (aarch64_rtx_costs): Handle MVN-shift
34419 appropriately. Handle alternative EON form.
34421 2015-04-30 Renlin Li <renlin.li@arm.com>
34423 * config/aarch64/aarch64-simd.md (vec_shr): Defined as an unspec.
34424 * config/aarch64/iterators.md (unspec): Add UNSPEC_VEC_SHR.
34426 2015-04-30 Jan Hubicka <hubicka@ucw.cz>
34429 * ipa-inline.c (can_inline_edge_p): It is safe to inline across
34430 -fstrict-aliasing boundaries.
34432 2015-04-30 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
34434 * config/aarch64/aarch64.c (aarch64_rtx_mult_cost): Handle MNEG
34435 and [SU]MNEGL patterns.
34437 2015-04-30 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
34439 * config/aarch64/aarch64.c (aarch64_shift_p): New function.
34440 (aarch64_rtx_mult_cost): Update comment to reflect that it also handles
34441 combined arithmetic-shift ops. Properly handle all shift and extend
34442 operations that can occur in combination with PLUS/MINUS.
34443 Rename maybe_fma to compound_p.
34444 (aarch64_rtx_costs): Use aarch64_shift_p when costing compound
34445 arithmetic and shift operations.
34447 2015-04-30 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
34449 * config/aarch64/aarch64.c (aarch64_rtx_costs): Use extend_arith
34450 rather than arith_shift cost when costing ADD/MINUS of an
34453 2015-04-30 Jan Hubicka <hubicka@ucw.cz>
34456 * ipa-devirt.c (odr_types_equivalent_p): NULLPTR_TYPE is equivalent
34459 2015-04-30 Richard Sandiford <richard.sandiford@arm.com>
34461 * genrecog.c (simplify_tests): Check that CONST_INT and XWINT tests
34462 are for the same position.
34464 2015-04-29 Aditya Kumar <hiraditya@hotmail.com>
34466 * tree-vectorizer.c (set_uid_loop_bbs): New. Factored out of
34468 (vectorize_loops): Use it.
34470 2015-04-29 Jan Hubicka <hubicka@ucw.cz>
34472 * ipa-devirt.c (odr_subtypes_equivalent_p): Compare TYPE_NAME only
34473 for aggregate types.
34474 (register_odr_type): Be ready for MAIN_VARIANT of ODR type
34475 type to be non_ODR.
34476 * tree.c (need_assembler_name_p): Compute mangled name for
34477 non-fundamental types and integer types.
34479 2015-04-29 Mikhail Maltsev <maltsevm@gmail.com>
34481 * dojump.c (do_compare_rtx_and_jump): Use std::swap instead of
34483 * expr.c (expand_expr_real_2): Likewise.
34485 2015-04-29 Jan Hubicka <hubicka@ucw.cz>
34487 * tree.c (build_common_builtin_nodes): Do not build
34488 __builtin_alloca_with_align as equivalent of library alloca.
34490 2015-04-29 Jan Hubicka <hubicka@ucw.cz>
34492 * dwarf2out.c (gen_type_die_with_usage): Call verify_type.
34493 * ipa-chkp.c (chkp_copy_function_type_adding_bounds): Do not produce
34495 * tree.c: Include print-tree.h and ipa-utils.h
34496 (free_lang_data_in_type): Clear TYPE_VFIELD leaked by C FE.
34497 (free_lang_data_in_cgraph): Call verify_type.
34498 (verify_type_variant): New function.
34499 (verify_type): New function.
34500 * tree.h (verify_type): Declare.
34502 2015-04-29 Steve Ellcey <sellcey@imgtec.com>
34504 * config/mips/mips-cpus.def: (mips4): Change default processor
34505 from PROCESSOR_R8000 to PROCESSOR_R10000.
34507 2015-04-29 Petar Jovanovic <petar.jovanovic@rt-rk.com>
34509 * config/mips/mips.h (CRT_CALL_STATIC_FUNCTION): Fix the macro to use
34510 la/jalr instead of jal.
34512 2015-04-29 Uros Bizjak <ubizjak@gmail.com>
34515 * config/i386/i386.md (*bmi_bextr_<mode>_ccz): New pattern.
34516 (*bmi2_bzhi_<mode>3_1_ccz): Ditto.
34517 (setcc+movzbl peephole2): Check also clobbered reg.
34518 (setcc+andl peephole2): Ditto.
34520 2015-04-29 Thomas Schwinge <thomas@codesourcery.com>
34523 * config/nvptx/mkoffload.c (target_ilp32): New variable.
34524 (main): Set it depending on "-foffload-abi=[...]".
34525 (compile_native, main): Use it to pass "-m32" or "-m64" to the
34528 2015-04-29 Alan Lawrence <alan.lawrence@arm.com>
34531 * config/aarch64/aarch64-simd.md (vec_store_lanesoi_lane<mode>,
34532 vec_store_lanesci_lane<mode>, vec_store_lanesxi_lane<mode>):
34533 Flip lane index back at assembly time for bigendian.
34535 2015-04-29 Thomas Schwinge <thomas@codesourcery.com>
34537 * tree.h (OMP_STANDALONE_CLAUSES): New macro.
34538 * gimplify.c (gimplify_omp_workshare): Use it.
34540 2015-04-29 Richard Sandiford <richard.sandiford@arm.com>
34542 * Makefile.in (build/genrecog.o): Depend on inchash.h.
34543 (build/genrecog$(build_exeext): Depend on build/hash-table.o and
34545 * genrecog.c: Rewrite most of the code except for the third page.
34547 2015-04-29 Richard Sandiford <richard.sandiford@arm.com>
34549 * inchash.h, inchash.c: Include bconfig.h for build objects.
34550 * Makefile.in (build/inchash.o): New rule.
34552 2015-04-29 Yvan Roux <yvan.roux@linaro.org>
34555 * config/arm/thumb2.md (*thumb2_addsi3_compare0_scratch): Fix operand
34556 number in type attribute expression.
34558 2015-04-29 Richard Sandiford <richard.sandiford@arm.com>
34560 * loop-iv.c (canon_condition): Generalize to all types of integer
34563 2015-04-29 Bernhard Reuther-Fischer <aldot@gcc.gnu.org>
34565 * gimple-walk.c: Prune duplicate or unneeded includes.
34566 (walk_gimple_asm): Only call parse_input_constraint or
34567 parse_output_constraint if their findings are used.
34568 Honour parse_input_constraint and parse_output_constraint
34571 2015-04-29 Alan Lawrence <alan.lawrence@arm.com>
34573 * config/arm/neon.md (vec_shl<mode>, vec_shr<mode>): Remove.
34575 2015-04-29 Tom de Vries <tom@codesourcery.com>
34577 PR tree-optimization/65893
34578 * passes.def (pass_all_optimizations): Move pass_stdarg to after
34581 2015-04-29 Richard Biener <rguenther@suse.de>
34583 * tree-vect-data-refs.c (vect_analyze_group_access): Properly
34584 compute GROUP_SIZE for basic-block SLP.
34585 * tree-vect-slp.c (vect_get_place_in_interleaving_chain): Properly
34586 take into account gaps.
34587 (vect_get_mask_element): Properly reject references to previous
34589 (vect_transform_slp_perm_load): Likewise.
34591 2015-04-29 Christian Bruel <christian.bruel@st.com>
34594 * config/i386/i386.c (ix86_default_align): New function.
34595 (ix86_override_options_after_change): Call ix86_default_align.
34596 (TARGET_OVERRIDE_OPTIONS_AFTER_CHANGE): New hook.
34597 (ix86_override_options_after_change): New function.
34599 2015-04-28 Jeff Law <law@redhat.com>
34601 * tree-ssa-dom.c (record_equality); Fix comment typos.
34603 2015-04-28 Tom de Vries <tom@codesourcery.com>
34605 PR tree-optimization/65887
34606 * gimplify.c (gimplify_modify_expr): Remove ifn_va_arg ap fixup.
34608 2015-04-28 Sandra Loosemore <sandra@codesourcery.com>
34610 * doc/extend.texi (Declaring Attributes of Functions): Split into
34611 subsections by target. Alphabetize the table of common attributes.
34612 Rewrite some of the introductory text to reflect the new structure.
34613 Update some cross-references to point to the new subsections.
34614 (Attribute Syntax): Put paragraph about "__" naming here. Remove
34615 duplicate copies in the discussion of function, label, and type
34618 2015-04-28 Dominique d'Humieres <dominiq@lps.ens.fr>
34621 * varasm.c (assemble_end_function): Guard ASM_DECLARE_FUNCTION_SIZE.
34623 2015-04-28 Jason Merrill <jason@redhat.com>
34626 * stor-layout.c (layout_type): Layout the TYPE_MAIN_VARIANT.
34627 (finalize_type_size): Respect TYPE_USER_ALIGN.
34628 (layout_type) [ARRAY_TYPE]: Likewise.
34630 2015-04-28 Yvan Roux <yvan.roux@linaro.org>
34632 * config/arm/arm.md (*arm_movt): Fix type attribute.
34633 (*cmpsi_shiftsi): Likewise.
34634 (*cmpsi_shiftsi_swp): Likewise.
34635 (*movsicc_insn): Likewise.
34636 (*cond_move): Likewise.
34637 (*if_plus_move): Likewise.
34638 (*if_move_plus): Likewise.
34639 (*if_arith_move): Likewise.
34640 (*if_move_arith): Likewise.
34641 (*if_shift_move): Likewise.
34642 (*if_move_shift): Likewise.
34643 (*arm_movtas_ze): Likewise.
34644 * config/arm/thumb2.md (*thumb2_movsicc_insn): Fix alternative
34645 redundancy and type attribute.
34646 (*thumb2_movsi_insn): Fix type attribute.
34647 (*thumb2_addsi_short): Likewise.
34648 (thumb2_addsi3_compare0): Likewise.
34649 (*thumb2_addsi3_compare0_scratch): Merge alternatives and fix
34650 attributes accordingly.
34652 2015-04-28 Markus Trippelsdorf <markus@trippelsdorf.de>
34655 * function.c (pad_to_arg_alignment): Add parentheses.
34657 2015-04-28 Uros Bizjak <ubizjak@gmail.com>
34659 * config/frv/frv.h (CRT_GET_RFIB_DATA): Move definition to
34660 libgcc/config/frv/elf-lib.h.
34662 2015-04-28 Tom de Vries <tom@codesourcery.com>
34664 * tree-call-cdce.c: Fix example in header comment.
34666 2015-04-28 Richard Biener <rguenther@suse.de>
34668 PR tree-optimization/62283
34669 * tree-vect-slp.c (vect_build_slp_tree): When the SLP build
34670 fails fatally and we are vectorizing a basic-block simply
34671 cause the child to be constructed piecewise.
34672 (vect_analyze_slp_cost_1): Adjust.
34673 (vect_detect_hybrid_slp_stmts): Likewise.
34674 (vect_bb_slp_scalar_cost): Likewise.
34675 (vect_get_constant_vectors): For piecewise constructed
34676 constants place them after the last def.
34677 (vect_get_slp_defs): Adjust.
34678 * tree-vect-stmts.c (vect_is_simple_use): Detect in-BB
34679 externals for basic-block vectorization.
34681 2015-04-28 Thomas Preud'homme <thomas.preudhomme@arm.com>
34684 * config.gcc: Add cortex-a57-fma-steering.o to extra_objs for
34686 * config/aarch64/t-aarch64: Add a rule for cortex-a57-fma-steering.o.
34687 * config/aarch64/aarch64.h (AARCH64_FL_USE_FMA_STEERING_PASS): Define.
34688 (AARCH64_TUNE_FMA_STEERING): Likewise.
34689 * config/aarch64/aarch64-cores.def: Set
34690 AARCH64_FL_USE_FMA_STEERING_PASS for cores with dynamic steering of
34691 FMUL/FMADD instructions.
34692 * config/aarch64/aarch64.c (aarch64_register_fma_steering): Declare.
34693 (aarch64_override_options): Include cortex-a57-fma-steering.h. Call
34694 aarch64_register_fma_steering () if AARCH64_TUNE_FMA_STEERING is true.
34695 * config/aarch64/cortex-a57-fma-steering.h: New file.
34696 * config/aarch64/cortex-a57-fma-steering.c: Likewise.
34698 2015-04-28 Richard Sandiford <richard.sandiford@arm.com>
34700 * gensupport.c (std_preds): Add missing codes to address_operand entry.
34702 2015-04-28 Richard Biener <rguenther@suse.de>
34704 PR tree-optimization/65851
34705 * tree-ssa-ccp.c (set_lattice_value): Perform a meet when
34706 changing CONSTANT to CONSTANT non-copy. Get new_val by reference.
34707 (ccp_lattice_meet): Remove stray argument. Use operand_equal_p
34708 rather than simple_cst_equal as the latter doesn't handle COMPLEX_CST.
34709 (ccp_visit_phi_node): Adjust.
34710 (evaluate_stmt): For simplifications to SSA names return its
34711 lattice value if that isn't VARYING. Return immediately when
34712 simplified to a constant.
34713 (visit_assignment): Adjust.
34714 (ccp_visit_stmt): Likewise.
34716 2015-04-28 Tom de Vries <tom@codesourcery.com>
34718 PR tree-optimization/65818
34719 * tree-stdarg.c (expand_ifn_va_arg_1): Ensure that side-effects are
34722 2015-04-27 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
34724 * calls.c (save_fixed_argument_area): Don't check
34725 ARGS_GROW_DOWNWARD with the preprocessor.
34726 (restore_fixed_argument_area): Likewise.
34727 (mem_overlaps_already_clobbered_arg_p): Likewise.
34728 (check_sibcall_argument_overlap): Likewise.
34729 (expand_call): Likewise.
34730 (emit_library_call_value_1): Likewise.
34731 (store_one_arg): Likewise.
34732 * function.c (assign_parms): Likewise.
34733 (locate_and_pad_parm): Likewise.
34734 (pad_to_arg_alignment): Likewise.
34735 * targhooks.c (std_gimplify_va_arg_expr): Likewise.
34737 2015-04-27 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
34739 * config/pa/pa.h (ARGS_GROW_DOWNWARD): Define to 1.
34740 * defaults.h (ARGS_GROW_DOWNWARD): Define it to 0 by default.
34741 * calls.c (save_fixed_argument_area): Don't chekc if
34742 ARGS_GROW_DOWNWARD is defined.
34743 (restore_fixed_argument_area): Likewise.
34744 (mem_overlaps_already_clobbered_arg_p): Likewise.
34745 (check_sibcall_argument_overlap): Likewise.
34746 (expand_call): Likewise.
34747 (emit_library_call_value_1): Likewise.
34748 (store_one_arg): Likewise.
34749 * function.c (assign_parms): Likewise.
34750 (locate_and_pad_parm): Likewise.
34751 (pad_to_arg_alignment): Likewise.
34752 * targhooks.c (std_gimplify_va_arg_expr): Likewise.
34754 2015-04-27 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
34756 * defaults.h (gen_epilogue): New function.
34757 * alias.c (init_alias_analysis): don't check if HAVE_epilogue is
34759 * cfgrtl.c (cfg_layout_finalize): Likewise.
34760 * df-scan.c: Likewise.
34761 * function.c (thread_prologue_and_epilogue_insns): Likewise.
34762 (reposition_prologue_and_epilogue_notes): Likewise.
34763 * reorg.c (find_end_label): Likewise.
34764 * toplev.c: Likewise.
34766 2015-04-27 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
34768 * bb-reorder.c (HAVE_return): Don't check if its undefined.
34769 * defaults.h (gen_simple_return): New function.
34770 (gen_simple_return): Likewise.
34771 (HAVE_return): Add default definition to false.
34772 (HAVE_simple_return): Likewise.
34773 * cfgrtl.c (force_nonfallthru_and_redirect): Remove checks if
34774 HAVE_return and HAVE_simple_return are defined.
34775 * function.c (gen_return_pattern): Likewise.
34776 (convert_jumps_to_returns): Likewise.
34777 (thread_prologue_and_epilogue_insns): Likewise.
34778 * reorg.c (find_end_label): Likewise.
34779 (dbr_schedule): Likewise.
34780 * shrink-wrap.c: Likewise.
34781 * shrink-wrap.h: Likewise.
34783 2015-04-27 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
34785 * defaults.h (EPILOGUE_USES): Add default definition of false.
34786 * df-scan.c (EPILOGUE_USES): Remove check if its undefined.
34787 * resource.c (init_resource_info): Likewise.
34789 2015-04-27 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
34791 * defaults.h (PCC_BITFIELD_TYPE_MATTERS): Add default definition
34793 * dwarf2out.c (field_byte_offset): REmove check if
34794 PCC_BITFIELD_TYPE_MATTERS is defined.
34795 * stor-layout.c (layout_decl): Likewise.
34796 (update_alignment_for_field): Likewise.
34797 (place_field): Likewise.
34799 2015-04-27 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
34801 * defaults.h (HARD_REGNO_RENAME_OK): Add default definition to
34803 * regrename.c (check_new_reg_p): Remove check if
34804 HARD_REGNO_RENAME_OK is defined.
34805 * sel-sched.c (sel_hard_regno_rename_ok): Likewise.
34807 2015-04-27 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
34809 * calls.c (prepare_call_address): Remove ifdef NO_FUNCTION_CSE.
34810 * cse.c (fold_rtx): Likewise.
34811 * config/alpha/alpha.h (NO_FUNCTION_CSE): Define to 1.
34812 * config/arc/arc.h (NO_FUNCTION_CSE): Likewise.
34813 * config/avr/avr.h (NO_FUNCTION_CSE): Likewise.
34814 * config/cr16/cr16.h (NO_FUNCTION_CSE): Likewise.
34815 * config/epiphany/epiphany.h (NO_FUNCTION_CSE): Likewise.
34816 * config/frv/frv.h (NO_FUNCTION_CSE): Likewise.
34817 * config/h8300/h8300.h (NO_FUNCTION_CSE): Likewise.
34818 * config/i386/i386.h (NO_FUNCTION_CSE): Likewise.
34819 * config/ia64/ia64.h (NO_FUNCTION_CSE): Likewise.
34820 * config/lm32/lm32.h (enum reg_class) (NO_FUNCTION_CSE):
34822 * config/m32r/m32r.h (NO_FUNCTION_CSE): Likewise.
34823 * config/mep/mep.h (NO_FUNCTION_CSE): Likewise.
34824 * config/mn10300/mn10300.h (NO_FUNCTION_CSE): Likewise.
34825 * config/nds32/nds32.h (NO_FUNCTION_CSE): Likewise.
34826 * config/nios2/nios2.h (NO_FUNCTION_CSE): Likewise.
34827 * config/pa/pa.h (NO_FUNCTION_CSE): Likewise.
34828 * config/rs6000/rs6000.h (NO_FUNCTION_CSE): Likewise.
34829 * config/s390/s390.h (NO_FUNCTION_CSE): Likewise.
34830 * config/sparc/sparc.h (NO_FUNCTION_CSE): Likewise.
34831 * config/spu/spu.h (NO_FUNCTION_CSE): Likewise.
34832 * config/stormy16/stormy16.h (NO_FUNCTION_CSE): Likewise.
34833 * config/v850/v850.h (NO_FUNCTION_CSE): Likewise.
34834 * defaults.h (NO_FUNCTION_CSE): Provide default definition to 0.
34835 * doc/tm.texi: Regenerate.
34836 * doc/tm.texi.in: Document NO_FUNCTION_CSE is always defined to
34837 either true or false.
34839 2015-04-27 Jeff Law <law@redhat.com>
34841 PR tree-optimization/65217
34842 * tree-ssa-dom.c (record_equality): Given two SSA_NAMEs, if just one
34843 of them has a single use, make sure it is the LHS of the implied
34846 2015-04-28 Alan Modra <amodra@gmail.com>
34849 * config/rs6000/rs6000.c (POWERPC64_TOC_POINTER_ALIGNMENT): Define.
34850 (offsettable_ok_by_alignment): Use minimum of decl and toc
34851 pointer alignment. Replace dead code with assertion.
34852 (use_toc_relative_ref): Add mode arg. Return false in -mcmodel=medium
34853 case if size exceeds toc pointer alignment.
34854 (rs6000_legitimize_reload_address): Update use_toc_relative_ref call.
34855 (rs6000_emit_move): Likewise.
34856 * configure.ac: Add linker toc pointer alignment check.
34857 * configure: Regenerate.
34858 * config.in: Regenerate.
34860 2015-04-27 Yoshinori Sato <ysato@users.sourceforge.jp>
34862 * config.gcc: Add h8300-*-linux.
34863 * config/h8300/linux.h: New.
34864 * config/h8300/t-linux: New.
34865 * config/h8300/h8300.c (h8300_option_override): Normal mode
34866 is not supported for h8300-*-linux.
34867 (h8300_file_start): Target priority change.
34868 (get_shift_alg): Likewise.
34869 (h8300_shift_need_scratch_p): Likewise.
34870 * config/h8300/h8300.h (TARGET_CPU_CPP_BUILTINS): Likewise.
34871 * config/h8300/h8300.md (define_peephole2): Remove duplicate condition.
34873 2015-04-27 Caroline Tice <cmtice@google.com>
34875 * final.c (final_scan_insn): Output cold_function_name as function
34877 * varasm.c (cold_function_name): Make global.
34878 (assemble_start_function): Re-set cold_function_name.
34879 (assemble_end_function): Output cold partition size.
34880 * varasm.h (cold_function_name): Declare global.
34882 2015-04-27 Ilya Tocar <ilya.tocar@intel.com>
34884 * config/i386/i386.h (EXT_REX_SSE_REG_P): New.
34885 * config/i386/i386.md (*cmpi<FPCMP:unord><MODEF:mode>_mixed): Use "v"
34887 (*movxi_internal_avx512f): Ditto.
34888 (define_split): Check for xmm16+, when splitting scalar float_extend.
34889 (*extendsfdf2_mixed): Use "v" constraint.
34890 (define_split): Check for xmm16+, when splitting scalar float_truncate.
34891 (*truncdfsf_fast_sse): Use "v" constraint.
34892 (fix_trunc<MODEF:mode><SWI48:mode>_sse): Ditto.
34893 (*float<SWI48:mode><MODEF:mode>2_sse): Ditto.
34894 (define_peephole2): Check for xmm16+, when converting scalar
34896 (define_peephole2): Check for xmm16+, when converting scalar
34898 (*fop_<mode>_comm_mixed): Use "v" constraint.
34899 (*fop_<mode>_comm_sse): Ditto.
34900 (*fop_<mode>_1_mixed): Ditto.
34901 (*sqrt<mode>2_sse): Ditto.
34902 (*ieee_s<ieee_maxmin><mode>3): Ditto.
34904 2015-04-27 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
34906 * combine.c (simplify_if_then_else): Use std::swap instead
34907 of manually swapping.
34908 (known_cond): Likewise.
34909 (simplify_comparison): Likewise.
34911 2015-04-27 Peter Bergner <bergner@vnet.ibm.com>
34914 * config/rs6000/htm.md: Remove all define_expands.
34915 (UNSPECV_HTM_TABORTDC, UNSPECV_HTM_TABORTDCI, UNSPECV_HTM_TABORTWC,
34916 UNSPECV_HTM_TABORTWCI): Remove.
34917 (UNSPECV_HTM_TABORTXC, UNSPECV_HTM_TABORTXCI, UNSPECV_HTM_TTEST): New.
34918 (tabort_internal, tbegin_internal, tcheck_internal, tend_internal,
34919 trechkpt_internal, treclaim_internal, tsr_internal): Rename from this...
34920 (tabort, tbegin, tcheck, tend, trechkpt, treclaim, tsr): ...to this.
34921 (tabortdc_internal, tabortdci_internal, tabortwc_internal,
34922 tabortwci_internal): Remove define_insns.
34923 (tabort<wd>c, tabort<wd>ci): New define_insns.
34924 (tabort): Use gpc_reg_operand.
34925 (tcheck): Remove operand.
34926 (htm_mfspr_<mode>, htm_mtspr_<mode>): Use GPR mode macro.
34927 * config/rs6000/htmxlintrin.h (__TM_end): Use _HTM_TRANSACTIONAL as
34929 * config/rs6000/rs6000-builtin.def (BU_HTM_SPR0): Remove.
34930 (BU_HTM_SPR1): Rename to BU_HTM_V1. Remove use of RS6000_BTC_SPR.
34931 (tabort, tabortdc, tabortdci, tabortwc, tabortwci, tbegin,
34932 tcheck, tend, tendall, trechkpt, treclaim, tresume, tsuspend,
34933 tsr, ttest): Pass in the RS6000_BTC_CR attribute.
34934 (get_tfhar, set_tfhar, get_tfiar, set_tfiar, get_texasr, set_texasr,
34935 get_texasru, set_texasru): Pass in the RS6000_BTC_SPR attribute.
34936 (tcheck): Remove builtin argument.
34937 * config/rs6000/rs6000.c (rs6000_htm_spr_icode): Use TARGET_POWERPC64
34939 (htm_expand_builtin): Fix usage of expandedp. Disallow usage of the
34940 tabortdc and tabortdci builtins when not in 64-bit mode.
34941 Modify code to handle the loss of the HTM define_expands.
34942 Emit code to copy the CR register to TARGET.
34943 (htm_init_builtins): Modify code to handle the loss of the HTM
34945 * config/rs6000/rs6000.h (RS6000_BTC_32BIT): Delete.
34946 (RS6000_BTC_64BIT): Likewise.
34947 (RS6000_BTC_CR): New macro.
34948 * doc/extend.texi: Update documentation for htm builtins.
34950 2015-04-27 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
34952 * simplify-rtx.c (simplify_gen_binary): Use std::swap instead
34953 of manually swapping.
34954 (simplify_associative_operation): Likewise.
34955 (simplify_binary_operation): Likewise.
34956 (simplify_plus_minus): Likewise.
34957 (simplify_relational_operation): Likewise.
34958 (simplify_ternary_operation): Likewise.
34960 2015-04-27 Richard Sandiford <richard.sandiford@arm.com>
34962 * config/stormy16/predicates.md (xs_hi_general_operand): Delete.
34963 (xs_hi_nonmemory_operand): Remove error.
34964 * config/stormy16/stormy16.md (movhi, movhi_internal): Use
34965 general_operand rather than xs_hi_general_operand.
34967 2015-04-27 Richard Biener <rguenther@suse.de>
34969 * tree-ssa-dom.c (record_equivalences_from_phis): Valueize PHI arg.
34970 (record_equivalences_from_stmt): Valueize rhs.
34971 (record_equality): Canonicalize x and y order via
34972 tree_swap_operands_p. Do not swap operands for same loop depth.
34974 2015-04-27 Georg-Johann Lay <avr@gjlay.de>
34978 * config/avr/gen-avr-mmcu-specs.c (print_mcu): Close file.
34979 Add hint how to use own spec file.
34981 2015-04-27 Jakub Jelinek <jakub@redhat.com>
34983 PR tree-optimization/65875
34984 * tree-vrp.c (update_value_range): If in is_new case setting
34985 old_vr to VR_VARYING, also set new_vr to it. Remove
34986 old_vr->type == VR_VARYING test.
34987 (vrp_visit_phi_node): Return SSA_PROP_VARYING instead of
34988 SSA_PROP_INTERESTING if update_value_range returned true,
34989 but new range is VR_VARYING.
34991 2015-04-27 Thomas Preud'homme <thomas.preudhomme@arm.com>
34993 * combine.c (sign_extend_short_imm): New.
34994 (set_nonzero_bits_and_sign_copies): Use above new function for sign
34995 extension of src short immediate.
34996 (reg_nonzero_bits_for_combine): Likewise for tem.
34998 2015-04-27 Eric Botcazou <ebotcazou@adacore.com>
35000 * stor-layout.c (self_referential_component_ref_p): New predicate.
35001 (copy_self_referential_tree_r): Use it.
35002 (self_referential_size): Punt for simple operations directly involving
35003 self-referential component references.
35004 * tree-cfg.c (dump_function_to_file): Add missing final curly bracket.
35006 2015-04-27 Eric Botcazou <ebotcazou@adacore.com>
35008 * ipa-icf.c (icf_handled_component_p): Remove redundant tests.
35010 2015-04-27 Richard Sandiford <richard.sandiford@arm.com>
35012 * vec.h (vec): Make splice arguments const. Update definitions
35015 2015-04-27 Yvan Roux <yvan.roux@linaro.org>
35017 * config/arm/arm.md (*arm_subsi3_insn): Fixed redundant
35020 2015-04-26 Tom de Vries <tom@codesourcery.com>
35022 PR tree-optimization/65826
35023 * internal-fn.def: Mark VA_ARG with ECF_LEAF.
35025 2015-04-24 Steve Ellcey <sellcey@imgtec.com>
35027 * config/mips/mips.md: (*madd4<mode>) Remove accum_in attribute.
35028 (*madd3<mode>): Ditto.
35029 (*msub4<mode>): Ditto.
35030 (*msub3<mode>): Ditto.
35031 (*nmadd4<mode>): Ditto.
35032 (*nmadd3<mode>): Ditto.
35033 (*nmadd4<mode>_fastmath): Ditto.
35034 (*nmadd3<mode>_fastmath): Ditto.
35035 (*nmsub4<mode>): Ditto.
35036 (*nmsub3<mode>): Ditto.
35037 (*nmsub4<mode>_fastmath): Ditto.
35038 (*nmsub3<mode>_fastmath): Ditto.
35040 2015-04-24 Jason Merrill <jason@redhat.com>
35043 * tree.c (build_reference_type_for_mode): Don't pass can_alias_all
35044 down when building TYPE_CANONICAL.
35045 (build_pointer_type_for_mode): Likewise.
35047 2015-04-24 Chen Gang <gang.chen.5i5j@gmail.com>
35049 * genrecog.c (validate_pattern): Check matching constraint refers
35050 to a lower numbered operand.
35052 2015-04-24 Michael Meissner <meissner@linux.vnet.ibm.com>
35055 * config/rs6000/rs6000.opt (-mvsx-align-128): Make options that
35056 save to independent variables use the Save attribute. This will
35057 allow these options to be modified with the #pragma/attribute
35059 (-mallow-movmisalign): Likewise.
35060 (-mallow-df-permute): Likewise.
35061 (-msched-groups): Likewise.
35062 (-malways-hint): Likewise.
35063 (-malign-branch-targets): Likewise.
35064 (-mvectorize-builtins): Likewise.
35065 (-msave-toc-indirect): Likewise.
35067 * config/rs6000/rs6000.c (rs6000_opt_masks): Add more options that
35068 can be set via the #pragma/attribute target support.
35069 (rs6000_opt_vars): Likewise.
35070 (rs6000_inner_target_options): If VSX was set, also set
35071 -mno-avoid-indexed-addresses.
35073 2015-04-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
35075 * config/arm/iterators.md (shiftable_ops): Rename to...
35076 (SHIFTABLE_OPS): ... This. Update use in comments.
35077 (ior_xor): Rename to...
35078 (IOR_XOR): ... This.
35079 (vqh_ops): Rename to...
35080 (VQH_OPS): ... This.
35081 (vqhs_ops): Rename to...
35082 (VQHS_OPS): ... This.
35083 (rshifts): Rename to...
35084 (RSHIFTS): ... This.
35085 (returns): Rename to...
35086 (RETURNS): ... This.
35087 * config/arm/arm.md: Update uses of the above.
35088 * config/arm/neon.md: Likewise.
35090 2014-04-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
35092 * config.host (case ${host}): Add aarch64*-*-linux case.
35093 * config/aarch64/aarch64-cores.def: Add IMPLEMENTER_ID and PART_NUMBER
35094 fields to all the cores.
35095 * config/aarch64/aarch64-elf.h (DRIVER_SELF_SPECS):
35096 Add MCPU_MTUNE_NATIVE_SPECS.
35097 * config/aarch64/aarch64-option-extensions.def: Add FEATURE_STRING
35098 field to all extensions.
35099 * config/aarch64/aarch64-opts.h: Adjust definition of AARCH64_CORE.
35100 * config/aarch64/aarch64.c: Adjust definition of AARCH64_CORE.
35101 Adjust definition of AARCH64_OPT_EXTENSION.
35102 * config/aarch64/aarch64.h: Adjust definition of AARCH64_CORE.
35103 (MCPU_MTUNE_NATIVE_SPECS): Define.
35104 * config/aarch64/driver-aarch64.c: New file.
35105 * config/aarch64/x-arch64: New file.
35106 * doc/invoke.texi (AArch64 Options): Document native value for -mcpu,
35109 2015-04-24 Uros Bizjak <ubizjak@gmail.com>
35110 Wei Mi <wmi@google.com>
35112 * config/i386/i386-protos.h (ix86_operands_ok_for_move_multiple): New.
35113 * config/i386/i386.c (extract_base_offset_in_addr): New function.
35114 (ix86_operands_ok_for_move_multiple): Ditto.
35115 * config/i386/sse.md (movsd/movhpd to movupd peephole2): New pattern.
35116 (movlpd/movhpd to movupd peephole2): Ditto.
35118 2015-04-24 Marek Polacek <polacek@redhat.com>
35121 * input.h (from_macro_expansion_at): Define.
35124 * doc/invoke.texi: Update description of -Wlogical-op.
35126 2015-04-24 Thomas Preud'homme <thomas.preudhomme@arm.com>
35128 * config/arm/unknown-elf.h (ASM_OUTPUT_ALIGNED_DECL_LOCAL): fix
35129 ternary operator in fprintf and harmonize spacing.
35131 2015-04-24 Uros Bizjak <ubizjak@gmail.com>
35133 * config/i386/sse.md (*vec_widen_smult_even_v8si<mask_name>):
35134 Mark operand1 commutative.
35136 2015-04-24 Uros Bizjak <ubizjak@gmail.com>
35138 * config/i386/sse.md (*vec_concatv2sf_sse4_1): Do not allow both
35139 input operands in memory.
35140 (*vec_concatv2si_sse4_1): Ditto.
35141 (*vec_concatv2df): Ditto, except for SSE3 and equal input operands.
35142 (vec_extract_lo_<mode><mask_name>): Change operand 1 predicate to
35144 (vec_extract_hi_v32hi): Ditto.
35145 (vec_extract_hi_v64hi): Ditto.
35146 (<mask_codefor>avx512f_unpckhpd512<mask_name>): Ditto.
35148 2015-04-24 Thomas Preud'homme <thomas.preudhomme@arm.com>
35149 Steven Bosscher <steven@gcc.gnu.org>
35151 PR rtl-optimization/34503
35152 * cprop.c (cprop_reg_p): New.
35153 (hash_scan_set): Use above function to check if register can be
35155 (find_avail_set): Return up to two sets, one whose source is a
35156 register and one whose source is a constant. Sets are returned in an
35157 array passed as parameter rather than as a return value.
35158 (cprop_insn): Use a do while loop rather than a goto. Try each of the
35159 sets returned by find_avail_set, starting with the one whose source is
35160 a constant. Use cprop_reg_p to check if register can be propagated.
35161 (do_local_cprop): Use cprop_reg_p to check if register can be
35163 (implicit_set_cond_p): Likewise.
35165 2015-04-23 Jan Hubicka <hubicka@ucw.cz>
35167 * ipa-icf.c (sem_function::equals_wpa): Compare thunk info.
35168 (sem_function::equals): IGNORED_NODES parameter is now unused;
35169 update call of equals_private.
35170 (sem_function::equals_private): Do not call equals_wpa; skip
35171 gimple body matching if there is no body.
35172 (sem_function::init): Add logic to hash tthunk info.
35173 (sem_function::parse): Also parse thunks.
35174 * ipa-icf.h (equals_private): Update declaration.
35176 2015-04-23 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
35178 * config/rs6000/altivec.md (*altivec_lvx_<mode>_internal): Remove
35179 asterisk from name so this can be generated directly.
35180 (*altivec_stvx_<mode>_internal): Likewise.
35181 * config/rs6000/rs6000.c (rs6000_emit_le_vsx_store): Add assert
35182 that this is never called during or after reload/lra.
35183 (rs6000_frame_related): Remove split_reg
35184 argument and logic that references it.
35185 (emit_frame_save): Remove last parameter from call to
35186 rs6000_frame_related.
35187 (rs6000_emit_prologue): Remove last parameter from eight calls to
35188 rs6000_frame_related. Force generation of stvx instruction for
35189 Altivec register saves. Remove split_reg handling, which is no
35191 (rs6000_emit_epilogue): Force generation of lvx instruction for
35192 Altivec register restores.
35194 2015-04-23 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
35196 * config/rs6000/rs6000.opt (mcrypto): Change option description to
35197 match category changes in ISA 2.07B.
35199 2015-04-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
35201 * config/arm/iterators.md (GTGE, GTUGEU, COMPARISONS): New code
35203 (cmp_op, cmp_type): New code attributes.
35204 (NEON_VCMP, NEON_VACMP): New int iterators.
35205 (cmp_op_unsp): New int attribute.
35206 * config/arm/neon.md (neon_vc<cmp_op><mode>): New define_expand.
35207 (neon_vceq<mode>): Delete.
35208 (neon_vc<cmp_op><mode>_insn): New pattern.
35209 (neon_vc<cmp_op_unsp><mode>_insn_unspec): Likewise.
35210 (neon_vcgeu<mode>): Delete.
35211 (neon_vcle<mode>): Likewise.
35212 (neon_vclt<mode>: Likewise.
35213 (neon_vcage<mode>): Likewise.
35214 (neon_vcagt<mode>): Likewise.
35215 (neon_vca<cmp_op><mode>): New define_expand.
35216 (neon_vca<cmp_op><mode>_insn): New pattern.
35217 (neon_vca<cmp_op_unsp><mode>_insn_unspec): Likewise.
35219 2015-04-23 Jan Hubicka <hubicka@ucw.cz>
35221 * tree.h (attribute_value_equal): Declare.
35222 * tree.c (attribute_value_equal): Export.
35224 2015-04-23 Jan Hubicka <hubicka@ucw.cz>
35226 * ipa-icf.c (sem_item::compare_attributes): New function.
35227 (sem_item::compare_referenced_symbol_properties): Compare variable
35229 (sem_item::hash_referenced_symbol_properties): Record DECL_ALIGN.
35230 (sem_function::param_used_p): New function.
35231 (sem_function::equals_wpa): Fix attribute comparsion; match
35232 parameter type codes; do not compare paremter flags when
35233 they are not used; compare edge flags; compare indirect calls.
35234 (sem_item::update_hash_by_addr_refs): Hash reference type.
35235 (sem_function::equals_private): Do not match DECL_ATTRIBUTES.
35236 (sem_variable::equals_wpa): Do not match DECL_ALIGN; match
35237 reference use type.
35238 (sem_item_optimizer::update_hash_by_addr_refs): Use param_used_p.
35239 * ipa-icf.h (compare_attributes, param_used_p): Declare.
35241 2015-04-23 Jan Hubicka <hubicka@ucw.cz>
35243 * ipa-icf.c (symbol_compare_collection::symbol_compare_collection):
35245 (sem_function::get_hash): Do not hash DECL_DISREGARD_INLINE_LIMITS,
35246 DECL_DECLARED_INLINE_P and DECL_IS_OPERATOR_NEW.
35247 (sem_item::compare_referenced_symbol_properties): New.
35248 (sem_item::hash_referenced_symbol_properties): New.
35249 (sem_item::compare_cgraph_references): Rename to ...
35250 (sem_item::compare_symbol_references): ... this one; use
35251 compare_referenced_symbol_properties.
35252 (sem_function::equals_wpa): Do not compare
35253 DECL_DISREGARD_INLINE_LIMITS, DECL_DECLARED_INLINE_P,
35254 DECL_IS_OPERATOR_NEW; compare pointer sizes.
35255 (sem_item::update_hash_by_addr_refs): Call
35256 hash_referenced_symbol_properties.
35257 (sem_item::update_hash_by_local_refs): Cleanup.
35258 (sem_function::merge): Do not mix up symbol properties.
35259 (sem_variable::equals_wpa): Use compare_symbol_references.
35260 * ipa-icf.h (sem_item::compare_referenced_symbol_properties): New.
35261 (sem_item::hash_referenced_symbol_properties): New.
35262 (sem_item::compare_symbol_references): New.
35263 (sem_item::compare_cgraph_references): Remove.
35265 2015-04-23 Kwok Cheung Yeung <kcy@codesourcery.com>
35268 * config/arm/unknown-elf.h (ASM_OUTPUT_ALIGNED_DECL_LOCAL):
35269 Emit size of local.
35271 2015-04-23 Nick Clifton <nickc@redhat.com>
35273 * config/rl78/rl78.c (rl78_preferred_reload_class): Add
35274 ATTRIBUTE_UNUSED to x parameter.
35275 * config/rl78/rl78-opts.h (enum rl78_mul_types): Remove unused MUL_RL78.
35277 2015-04-23 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
35279 * config/rs6000/crypto.md (crypto_vpmsum<CR_char>): Change
35280 TARGET_CRYPTO to TARGET_P8_VECTOR>
35281 (crypto_vpermxor_<mode>): Likewise.
35282 * config/rs6000/rs6000-builtin.def (BU_CRYPTO_2A): New #define.
35283 (BU_CRYPTO_3A): Likewise.
35284 (BU_CRYPTO_OVERLOAD_2A): Rename from BU_CRYPTO_OVERLOAD_2.
35285 (BU_CRYPTO_OVERLOAD_3A): New #define.
35286 (VPMSUMB): Change from BU_CRYPTO_2 to BU_CRYPTO_2A.
35287 (VPMSUMH): Likewise.
35288 (VPMSUMW): Likewise.
35289 (VPMSUMD): Likewise.
35290 (VPERMXOR_V2DI): Change from BU_CRYPTO_3 to BU_CRYPTO_3A.
35291 (VPERMXOR_V4SI): Likewise.
35292 (VPERMXOR_V8HI): Likewise.
35293 (VPERMXOR_V16QI): Likewise.
35294 (VPMSUM): Change from BU_CRYPTO_OVERLOAD_2 to
35295 BU_CRYPTO_OVERLOAD_2A.
35296 (VPERMXOR): Change from BU_CRYPTO_OVERLOAD3 to
35297 BU_CRYPTO_OVERLOAD_3A.
35298 * config/rs6000/rs6000.opt (mcrypto): Change description of
35301 2015-04-23 Richard Biener <rguenther@suse.de>
35303 * passes.def: Remove copy propagation passes run directly after CCP.
35304 * tree-ssa-ccp.c (get_value_for_expr): Fall back to a COPY for
35306 (ccp_visit_phi_node): Rework to handle first executable edge
35309 2015-04-23 Matthew Wahab <matthew.wahab@arm.com>
35311 * config/arm/arm.h (LEGITIMIZE_RELOAD_ADDRESS): Remove.
35312 (ARM_LEGITIMIZE_RELOAD_ADDRESS): Remove.
35313 (THUMB_LEGITIMIZE_RELOAD_ADDRESS): Remove.
35314 * config/arm/arm.c (arm_legimitimize_reload_address): Remove.
35315 (thumb_legimitimize_reload_address): Remove.
35316 * config/arm/arm-protos.h (arm_legimitimize_reload_address):
35318 (thumb_legimitimize_reload_address): Remove.
35320 2015-04-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
35322 * conditions.h (CC_STATUS_INIT): Gate on #ifndef CC_STATUS_INIT.
35324 2015-04-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
35326 * config/arm/arm.md (load_multiple): Reject operand 2 greater than
35328 (store_multiple): Likewise.
35330 2015-04-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
35332 * config/arm/arm-protos.h (struct tune_params): Add issue_rate field.
35333 * config/arm/arm.c (arm_slowmul_tune, arm_fastmul_tune,
35334 arm_strongarm_tune, arm_xscale_tune, arm_9e_tune, arm_v6t2_tune,
35335 arm_cortex_tune, arm_cortex_a8_tune, arm_cortex_a7_tune,
35336 arm_cortex_a15_tune, arm_cortex_a53_tune, arm_cortex_a57_tune,
35337 arm_cortex_a9_tune, arm_cortex_a12_tune, arm_v7m_tune, arm_v6m_tune,
35338 arm_fa726te_tune arm_cortex_a5_tune, arm_xgene1_tune):
35339 Specify issue_rate value.
35340 (arm_issue_rate): Look up issue rate from tuning structs. Remove
35341 large switch statement.
35342 (arm_marvell_pj4_tune): New struct.
35343 * config/arm/arm-cores.def (marvell-pj4): Use arm_marvell_pj4_tune
35346 2015-04-23 Richard Biener <rguenther@suse.de>
35348 * tree-vect-slp.c (vect_find_first_load_in_slp_instance): Remove.
35349 (vect_find_last_store_in_slp_instance): Rename to ...
35350 (vect_find_last_scalar_stmt_in_slp): ... this and generalize.
35351 (vect_analyze_slp_cost_1): Use vector_load for constant defs
35352 and vec_construct for external defs when estimating prologue cost.
35353 (vect_analyze_slp_instance): Do not init SLP_INSTANCE_FIRST_LOAD_STMT.
35354 Compute costs here only when vectorizing loops.
35355 (vect_slp_analyze_bb_1): Compute SLP cost here, after vector types
35356 have been determined.
35357 (vect_schedule_slp_instance): Simplify vectorized code placement
35358 and prepare for in-BB external defs.
35359 * tree-vectorizer.h (struct _slp_instance): Remove first_load member.
35360 (SLP_INSTANCE_FIRST_LOAD_STMT): Remove.
35361 * tree-vect-stmts.c (vect_model_store_cost): Remove PURE_SLP_STMT
35363 (vect_model_load_cost): Likewise.
35364 (vectorizable_store): Instead add it here.
35365 (vectorizable_load): Likewise.
35366 (vect_is_simple_use): Dump def type textually.
35368 2015-04-23 Richard Biener <rguenther@suse.de>
35370 * cfgexpand.c (expand_gimple_stmt_1): Use ops.code.
35371 * cfgloop.c (verify_loop_structure): Verify the root loop node.
35372 * except.c (duplicate_eh_regions): Call get_eh_region_from_lp_number_fn
35373 instead of get_eh_region_from_lp_number.
35374 * loop-init.c (fix_loop_structure): If we removed a loop, reset
35377 2015-04-23 Anton Blanchard <anton@samba.org>
35379 * config/rs6000/rs6000.c (rs6000_output_function_prologue): No
35380 need for -mprofile-kernel to save LR to stack.
35382 2015-04-22 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
35384 * config/rs6000/rs6000.c (rtx_is_swappable_p): Commentary
35386 (insn_is_swappable_p): Return 1 for a convert from double to
35387 single precision when all of its uses are splats of BE element
35390 2015-04-23 Kugan Vivekanandarajah <kuganv@linaro.org>
35392 * ira-costs.c (record_operand_costs): Fix typo (remove redundant code).
35394 2015-04-22 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
35397 * config/rs6000/rs6000.c (rs6000_option_override_internal): For
35398 VSX + POWER8, enable TARGET_ALLOW_MOVMISALIGN and
35399 TARGET_EFFICIENT_UNALIGNED_VSX if not selected by command line
35401 (rs6000_builtin_mask_for_load): Return 0 for targets with
35402 efficient unaligned VSX accesses so that the vectorizer will use
35403 direct unaligned loads.
35404 (rs6000_builtin_support_vector_misalignment): Always return true
35405 for targets with efficient unaligned VSX accesses.
35406 (rs6000_builtin_vectorization_cost): Cost of unaligned loads and
35407 stores on targets with efficient unaligned VSX accesses is almost
35408 always the same as the cost of an aligned load or store, so model
35410 * config/rs6000/rs6000.h (SLOW_UNALIGNED_ACCESS): Return 0 for
35411 unaligned vectors if we have efficient unaligned VSX accesses.
35412 * config/rs6000/rs6000.opt (mefficient-unaligned-vector): New
35413 undocumented option.
35415 2015-04-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
35418 2015-04-22 Gregor Richards <gregor.richards@uwaterloo.ca>
35420 * config.gcc (LIBC_MUSL): New tm_defines macro.
35421 * config/linux.h (OPTION_MUSL): Define.
35422 (INCLUDE_DEFAULTS_MUSL_GPP, INCLUDE_DEFAULTS_MUSL_LOCAL,)
35423 (INCLUDE_DEFAULTS_MUSL_PREFIX, INCLUDE_DEFAULTS_MUSL_CROSS,)
35424 (INCLUDE_DEFAULTS_MUSL_TOOL, INCLUDE_DEFAULTS_MUSL_NATIVE): Define.
35426 * config/linux.opt (mmusl): New option.
35427 * configure.ac (gcc_cv_libc_provides_ssp): Add *-*-musl*.
35428 (gcc_cv_target_dl_iterate_phdr): Add *-linux-musl*.
35430 * configure: Regenerate.
35432 2015-04-22 Gregor Richards <gregor.richards@uwaterloo.ca>
35434 * config.gcc (LIBC_MUSL): New tm_defines macro.
35435 * config/linux.h (OPTION_MUSL): Define.
35436 (INCLUDE_DEFAULTS_MUSL_GPP, INCLUDE_DEFAULTS_MUSL_LOCAL,)
35437 (INCLUDE_DEFAULTS_MUSL_PREFIX, INCLUDE_DEFAULTS_MUSL_CROSS,)
35438 (INCLUDE_DEFAULTS_MUSL_TOOL, INCLUDE_DEFAULTS_MUSL_NATIVE): Define.
35440 * config/linux.opt (mmusl): New option.
35441 * configure.ac (gcc_cv_libc_provides_ssp): Add *-*-musl*.
35442 (gcc_cv_target_dl_iterate_phdr): Add *-linux-musl*.
35444 * configure: Regenerate.
35446 2015-04-22 Yury Gribov <y.gribov@samsung.com>
35448 * doc/invoke.texi (-fsanitize-sections): Update description.
35449 * asan.c (set_sanitized_sections): Parse incoming arg.
35450 (section_sanitized_p): Support wildcards.
35452 2015-04-22 Tom de Vries <tom@codesourcery.com>
35454 PR tree-optimization/65823
35455 * gimplify.c (gimplify_modify_expr): Use operand_equal_p to test for
35456 equality between ap_copy and ap.
35458 2015-04-22 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
35461 * config/openbsd-oldgas.h (OBSD_LIB_SPEC): Add.
35463 2015-04-22 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
35466 * config.gcc (vax-*-openbsd*): Fix name of pthread spec header.
35468 2015-04-22 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
35471 * config.gcc (bfin*-linux-uclibc*): Prepend tmake_file and
35472 remove already contained t-files.
35474 2015-04-22 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
35476 * tree-tailcall.c (suitable_for_tail_opt_p, find_tail_calls):
35477 Remove unneeded forward declarations.
35478 (suitable_for_tail_call_opt_p): Commentary typo fix.
35480 2015-04-22 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
35482 * varasm.c (emit_bss): Remove redundant guard.
35484 2015-04-22 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
35486 * config/c6x/c6x.h (TARGET_CPU_CPP_BUILTINS): Add unk_isa.
35488 2015-04-22 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
35490 * config/bfin/bfin.h (TARGET_CPU_CPP_BUILTINS): Add BFIN_CPU_UNKNOWN.
35492 2015-04-22 Hale Wang <hale.wang@arm.com>
35493 Terry Guo <terry.guo@arm.com>
35495 PR rtl-optimization/64818
35496 * combine.c (can_combine_p): Don't combine user-specified
35497 register if it is in an asm input.
35499 2015-04-21 Jan Hubicka <hubicka@ucw.cz>
35502 * passes.def (early_optimizations): Add pass_dse.
35504 2015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
35506 * defaults.h (INSN_REFERENCES_ARE_DELAYED): New definition.
35507 * reorg.c (redundant_insn): Remove ifdef
35508 INSN_REFERENCES_ARE_DELAYED.
35509 * resource.c (mark_referenced_resources): Likewise.
35511 2015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
35513 * defaults.h (INSN_SETS_ARE_DELAYED): New definition.
35514 * reorg.c (redundant_insn): Remove ifdef INSN_SETS_ARE_DELAYED.
35515 * resource.c (mark_set_resources): Likewise.
35517 2015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
35519 * caller-save.c (insert_one_insn): Remove ifdef HAVE_cc0.
35520 * cfgcleanup.c (flow_find_cross_jump): Likewise.
35521 (flow_find_head_matching_sequence): Likewise.
35522 (try_head_merge_bb): Likewise.
35523 * combine.c (can_combine_p): Likewise.
35524 (try_combine): Likewise.
35525 (distribute_notes): Likewise.
35526 * df-problems.c (can_move_insns_across): Likewise.
35527 * final.c (final): Likewise.
35528 * gcse.c (insert_insn_end_basic_block): Likewise.
35529 * ira.c (find_moveable_pseudos): Likewise.
35530 * reorg.c (try_merge_delay_insns): Likewise.
35531 (fill_simple_delay_slots): Likewise.
35532 (fill_slots_from_thread): Likewise.
35533 * sched-deps.c (sched_analyze_2): Likewise.
35535 2015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
35537 * df-scan.c (df_get_entry_block_def_set): Remove #ifdef
35538 PIC_OFFSET_TABLE_REGNUM.
35540 2015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
35542 * alias.c (init_alias_target): Remove ifdef
35543 * HARD_FRAME_POINTER_IS_FRAME_POINTER.
35544 * df-scan.c (df_insn_refs_collect): Likewise.
35545 (df_get_regular_block_artificial_uses): Likewise.
35546 (df_get_eh_block_artificial_uses): Likewise.
35547 (df_get_entry_block_def_set): Likewise.
35548 (df_get_exit_block_use_set): Likewise.
35549 * emit-rtl.c (gen_rtx_REG): Likewise.
35550 * ira.c (ira_setup_eliminable_regset): Likewise.
35551 * reginfo.c (init_reg_sets_1): Likewise.
35552 * regrename.c (rename_chains): Likewise.
35553 * reload1.c (reload): Likewise.
35554 (eliminate_regs_in_insn): Likewise.
35555 * resource.c (mark_referenced_resources): Likewise.
35556 (init_resource_info): Likewise.
35558 2015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
35560 * defaults.h (MASK_RETURN_ADDR): New definition.
35561 * except.c (expand_builtin_extract_return_addr): Remove ifdef
35564 2015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
35566 * defaults.h (RETURN_ADDR_OFFSET): New definition.
35567 * except.c (expand_builtin_extract_return_addr): Remove ifdef
35568 RETURN_ADDR_OFFSET.
35569 (expand_builtin_frob_return_addr): Likewise.
35571 2015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
35573 * cfgrtl.c (rtl_merge_blocks): Change #if HAVE_cc0 to if (HAVE_cc0)
35574 (try_redirect_by_replacing_jump): Likewise.
35575 (rtl_tidy_fallthru_edge): Likewise.
35576 * combine.c (insn_a_feeds_b): Likewise.
35577 (find_split_point): Likewise.
35578 (simplify_set): Likewise.
35579 * cprop.c (cprop_jump): Likewise.
35580 * cse.c (cse_extended_basic_block): Likewise.
35581 * df-problems.c (can_move_insns_across): Likewise.
35582 * function.c (emit_use_return_register_into_block): Likewise.
35583 * haifa-sched.c (sched_init): Likewise.
35584 * ira.c (find_moveable_pseudos): Likewise.
35585 * loop-invariant.c (find_invariant_insn): Likewise.
35586 * lra-constraints.c (curr_insn_transform): Likewise.
35587 * postreload.c (reload_combine_recognize_const_pattern):
35589 * reload.c (find_reloads): Likewise.
35590 * reorg.c (delete_scheduled_jump): Likewise.
35591 (steal_delay_list_from_target): Likewise.
35592 (steal_delay_list_from_fallthrough): Likewise.
35593 (redundant_insn): Likewise.
35594 (fill_simple_delay_slots): Likewise.
35595 (fill_slots_from_thread): Likewise.
35596 (delete_computation): Likewise.
35597 * sched-rgn.c (add_branch_dependences): Likewise.
35599 2015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
35601 * genconfig.c (main): Always define HAVE_cc0.
35602 * caller-save.c (insert_one_insn): Change ifdef HAVE_cc0 to #if
35604 * cfgcleanup.c (flow_find_cross_jump): Likewise.
35605 (flow_find_head_matching_sequence): Likewise.
35606 (try_head_merge_bb): Likewise.
35607 * cfgrtl.c (rtl_merge_blocks): Likewise.
35608 (try_redirect_by_replacing_jump): Likewise.
35609 (rtl_tidy_fallthru_edge): Likewise.
35610 * combine.c (do_SUBST_MODE): Likewise.
35611 (insn_a_feeds_b): Likewise.
35612 (combine_instructions): Likewise.
35613 (can_combine_p): Likewise.
35614 (try_combine): Likewise.
35615 (find_split_point): Likewise.
35617 (simplify_set): Likewise.
35618 (distribute_notes): Likewise.
35619 * cprop.c (cprop_jump): Likewise.
35620 * cse.c (cse_extended_basic_block): Likewise.
35621 * df-problems.c (can_move_insns_across): Likewise.
35622 * final.c (final): Likewise.
35623 (final_scan_insn): Likewise.
35624 * function.c (emit_use_return_register_into_block): Likewise.
35625 * gcse.c (insert_insn_end_basic_block): Likewise.
35626 * haifa-sched.c (sched_init): Likewise.
35627 * ira.c (find_moveable_pseudos): Likewise.
35628 * loop-invariant.c (find_invariant_insn): Likewise.
35629 * lra-constraints.c (curr_insn_transform): Likewise.
35630 * optabs.c (prepare_cmp_insn): Likewise.
35631 * postreload.c (reload_combine_recognize_const_pattern):
35633 * reload.c (find_reloads): Likewise.
35634 (find_reloads_address_1): Likewise.
35635 * reorg.c (delete_scheduled_jump): Likewise.
35636 (steal_delay_list_from_target): Likewise.
35637 (steal_delay_list_from_fallthrough): Likewise.
35638 (try_merge_delay_insns): Likewise.
35639 (redundant_insn): Likewise.
35640 (fill_simple_delay_slots): Likewise.
35641 (fill_slots_from_thread): Likewise.
35642 (delete_computation): Likewise.
35643 (relax_delay_slots): Likewise.
35644 * sched-deps.c (sched_analyze_2): Likewise.
35645 * sched-rgn.c (add_branch_dependences): Likewise.
35647 2015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
35649 * combine.c (find_single_use): Remove HAVE_cc0 ifdef for code
35650 that is trivially ded on non cc0 targets.
35651 (simplify_set): Likewise.
35652 (mark_used_regs_combine): Likewise.
35653 * cse.c (new_basic_block): Likewise.
35654 (fold_rtx): Likewise.
35655 (cse_insn): Likewise.
35656 (cse_extended_basic_block): Likewise.
35657 (set_live_p): Likewise.
35658 * rtlanal.c (canonicalize_condition): Likewise.
35659 * simplify-rtx.c (simplify_binary_operation_1): Likewise.
35661 2015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
35663 * conditions.h: Define macros even if HAVE_cc0 is undefined.
35664 * emit-rtl.c: Define functions even if HAVE_cc0 is undefined.
35665 * final.c: Likewise.
35666 * jump.c: Likewise.
35667 * recog.c: Likewise.
35668 * recog.h: Declare functions even when HAVE_cc0 is undefined.
35669 * sched-deps.c (sched_analyze_2): Always compile case for cc0.
35671 2015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
35673 * defaults.h: New definition of EH_RETURN_DATA_REGNO.
35674 * except.c: Remove definition of EH_RETURN_DATA_REGNO.
35675 * builtins.c (expand_builtin): Remove check if
35676 EH_RETURN_DATA_REGNO is defined.
35677 * df-scan.c (df_bb_refs_collect): Likewise.
35678 (df_get_exit_block_use_set): Likewise.
35679 * haifa-sched.c (initiate_bb_reg_pressure_info): Likewise.
35680 * ira-lives.c (process_bb_node_lives): Likewise.
35681 * lra-lives.c (process_bb_lives): Likewise.
35683 2015-04-21 Uros Bizjak <ubizjak@gmail.com>
35685 * config/i386/i386.md (ARGP_REG, FRAME_REG, BND2_REG, BND3_REG,
35686 FIRST_PSEUDO_REG): New.
35687 * config/i386/i386.h (STACK_POINTER_REGNUM): Define to SP_REG.
35688 (ARG_POINTER_REGNUM): Define to ARGP_REG.
35689 (FRAME_POINTER_REGNUM): Define to FRAME_REG.
35690 (HARD_FRAME_POINTER_REGNUM): Define to BP_REG.
35691 (FIRST_PSEUDO_REGISTER): Define to FIRST_PSEUDO_REG.
35692 (FIRST_INT_REG): New.
35693 (LAST_INT_REG): New.
35694 (FIRST_*_REG): Define using *_REG.
35695 (LAST_*_REG): Ditto.
35696 (QI_REGNO_P): Define using FIRST_QU_REG and LAST_QI_REG.
35697 (LEGACY_INT_REGNO_P): Define using FIRST_INT_REG and LAST_INT_REG.
35698 (FIRST_FLOAT_REG): Define to FIRST_STACK_REG.
35700 2015-04-21 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
35702 * expmed.c: (synth_mult): Only assume overlapping
35703 shift with previous steps in alg_sub_t_m2 case.
35705 2015-04-21 Richard Biener <rguenther@suse.de>
35707 PR tree-optimization/65650
35708 * tree-ssa-ccp.c (valid_lattice_transition): Allow lattice
35709 transitions involving copies.
35710 (set_lattice_value): Adjust for copy lattice state.
35711 (ccp_lattice_meet): Do not merge UNDEFINED and a copy to the copy
35712 if that doesn't dominate the merge point.
35713 (bit_value_unop): Adjust what we treat as varying mask.
35714 (bit_value_binop): Likewise.
35715 (bit_value_assume_aligned): Likewise.
35716 (evaluate_stmt): When we simplified to a SSA name record a copy
35717 instead of dropping to varying.
35718 (visit_assignment): Simplify.
35720 * gimple-match.h (gimple_simplify): Add another callback.
35721 * gimple-fold.c (fold_stmt_1): Adjust caller.
35722 (gimple_fold_stmt_to_constant_1): Likewise - pass valueize
35723 for the 2nd callback.
35724 * gimple-match-head.c (gimple_simplify): Add a callback that is
35725 used to valueize the stmt operands and use it that way.
35727 2015-04-21 Richard Biener <rguenther@suse.de>
35729 PR tree-optimization/65788
35730 * tree-ssa-ccp.c (evaluate_stmt): Evaluate to UNDEFINED early.
35732 2015-04-21 Richard Biener <rguenther@suse.de>
35734 * config/i386/i386.c (ix86_builtin_vectorization_cost): Scale
35735 vec_construct cost by vec_stmt_cost.
35737 2015-04-21 Richard Biener <rguenther@suse.de>
35739 * cfghooks.h (create_basic_block): Replace with two overloads
35740 for RTL and GIMPLE.
35741 (split_block): Likewise.
35742 * cfghooks.c (split_block): Rename to ...
35743 (split_block_1): ... this.
35744 (split_block): Add two type-safe overloads for RTL and GIMPLE.
35745 (split_block_after_labels): Call split_block_1.
35746 (create_basic_block): Rename to ...
35747 (create_basic_block_1): ... this.
35748 (create_basic_block): Add two type-safe overloads for RTL and GIMPLE.
35749 (create_empty_bb): Call create_basic_block_1.
35750 * cfgrtl.c (fixup_fallthru_exit_predecessor): Use
35751 split_block_after_labels.
35752 * omp-low.c (expand_parallel_call): Likewise.
35753 (expand_omp_target): Likewise.
35754 (simd_clone_adjust): Likewise.
35755 * tree-chkp.c (chkp_get_entry_block): Likewise.
35756 * cgraphunit.c (init_lowered_empty_function): Use the GIMPLE
35757 create_basic_block overload.
35758 (cgraph_node::expand_thunk): Likewise.
35759 * tree-cfg.c (make_blocks): Likewise.
35760 (handle_abnormal_edges): Likewise.
35761 * tree-inline.c (copy_bb): Likewise.
35763 2015-04-21 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
35765 * config/aarch64/aarch64.md (*<NLOGICAL:optab>_one_cmplsidi3_ze):
35767 (*xor_one_cmplsidi3_ze): Likewise.
35769 2015-04-21 Thomas Preud'homme <thomas.preudhomme@arm.com>
35771 * df-core.c (df_finish_pass): Iterate over df->problems_by_index[] and
35772 use df_remove_problem rather than manually removing problems, leaving
35773 holes in df->problems_in_order[].
35775 2015-04-21 Tom de Vries <tom@codesourcery.com>
35777 PR tree-optimization/65802
35778 * internal-fn.def (VA_ARG): Add ECF_NOTROW to flags.
35780 2015-04-21 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
35782 * common/config/aarch64/aarch64-common.c (AARCH64_CPU_NAME_LENGTH):
35784 (aarch64_rewrite_selected_cpu): Do not chop off extensions starting
35785 at '.'. Assert that there's enough space for everything.
35787 2015-04-21 Uros Bizjak <ubizjak@gmail.com>
35789 PR tree-optimization/64950
35791 2010-08-02 Uros Bizjak <ubizjak@gmail.com>
35794 * config/alpha/alpha.c (alpha_build_builtin_va_list): Mark __offset
35797 2015-04-20 Shiva Chen <shiva0217@gmail.com>
35799 PR rtl-optimization/64916
35800 * cfgcleanup.c (values_equal_p): New function.
35801 (can_replace_by): Use it.
35803 2015-04-20 Paolo Carlini <paolo.carlini@oracle.com>
35806 * doc/invoke.texi ([-Wnarrowing]): Update.
35808 2015-04-20 Jeff Law <law@redhat.com>
35810 PR tree-optimization/65658
35811 * tree-ssa-threadupdate.c (redirection_block_p): Remove
35812 redundant test for GIMPLE_ASSIGN in last change.
35814 2015-04-20 Uros Bizjak <ubizjak@gmail.com>
35816 * config/i386/i386.c (set_pic_reg_ever_live): Remove.
35817 (legitimize_pic_address): Do not call set_pic_reg_ever_live.
35818 (legitimize_tls_address): Ditto.
35819 (ix86_expand_move): Ditto.
35820 (ix86_expand_binary_operator): Remove reload_in_progress checks.
35821 (ix86_expand_unary_operator): Ditto.
35822 * config/i386/predicates.md (index_register_operand): Ditto.
35824 2015-04-20 Selim Belbachir <selim.belbachir@fr.thalesgroup.com>
35826 * reorg.c (try_merge_delay_insns): Improve correctness checking
35827 for targets with multiple delay slots.
35829 2015-04-20 Jeff Law <law@redhat.com>
35831 PR tree-optimization/65658
35832 * tree-ssa-threadupdate.c (redirection_block_p): Ignore clobber
35835 2015-04-20 Alan Lawrence <alan.lawrence@arm.com>
35837 * config/aarch64/aarch64.c (aarch64_simd_emit_pair_result_insn): Delete.
35838 * config/aarch64/aarch64-protos.h (aarch64_simd_emit_pair_result_insn):
35841 2015-04-20 Jakub Jelinek <jakub@redhat.com>
35844 * dwarf2out.c (add_AT_wide): Clear attr.dw_attr_val.val_entry.
35846 2015-04-20 Richard Biener <rguenther@suse.de>
35848 * gimple-fold.h (gimple_build): Remove optional valueize arguments.
35849 * gimple-fold.c (gimple_build_valueize): New function.
35850 (gimple_build): Always use gimple_build_valueize as valueize hook.
35852 2015-04-20 Alan Lawrence <alan.lawrence@arm.com>
35855 * config/aarch64/aarch64.c (aarch64_expand_vector_init): Load constant
35856 and overwrite variable parts if <= 1/2 the elements are variable.
35858 2015-04-19 Vladimir Makarov <vmakarov@redhat.com>
35860 PR rtl-optimization/65805
35861 * lra-eliminations.c (lra_eliminate_regs_1): Add new assert.
35862 Don't use difference of offset and previous offset if
35863 update_sp_offset is non-zero.
35864 (eliminate_regs_in_insn): Ditto.
35865 * lra-spills.c (remove_pseudos): Exchange 4th and 6th args in
35866 lra_eliminate_regs_1 call.
35867 * lra-constraints.c (get_equiv_with_elimination): Ditto.
35869 2015-04-18 Trevor Saunders <tsaunders@mozilla.com>
35871 * hash-table.h: Remove version of hash_table that stored value_type *.
35872 * asan.c, attribs.c, bitmap.c, cfg.c, cgraph.h, config/arm/arm.c,
35873 config/i386/winnt.c, config/ia64/ia64.c, config/mips/mips.c,
35874 config/sol2.c, coverage.c, cselib.c, dse.c, dwarf2cfi.c,
35875 dwarf2out.c, except.c, gcse.c, genmatch.c, ggc-common.c,
35876 gimple-ssa-strength-reduction.c, gimplify.c, haifa-sched.c,
35877 hard-reg-set.h, hash-map.h, hash-set.h, ipa-devirt.c, ipa-icf.h,
35878 ipa-profile.c, ira-color.c, ira-costs.c, loop-invariant.c,
35879 loop-iv.c, loop-unroll.c, lto-streamer.h, plugin.c, postreload-gcse.c,
35880 reginfo.c, statistics.c, store-motion.c, trans-mem.c, tree-cfg.c,
35881 tree-eh.c, tree-hasher.h, tree-into-ssa.c, tree-parloops.c,
35882 tree-sra.c, tree-ssa-coalesce.c, tree-ssa-dom.c, tree-ssa-live.c,
35883 tree-ssa-loop-im.c, tree-ssa-loop-ivopts.c, tree-ssa-phiopt.c,
35884 tree-ssa-pre.c, tree-ssa-reassoc.c, tree-ssa-sccvn.c,
35885 tree-ssa-structalias.c, tree-ssa-tail-merge.c,
35886 tree-ssa-threadupdate.c, tree-vectorizer.c, tree-vectorizer.h,
35887 valtrack.h, var-tracking.c, vtable-verify.c, vtable-verify.h: Adjust.
35889 2015-04-17 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
35890 Jakub Jelinek <jakub@redhat.com>
35893 * config/rs6000/rs6000.c (rtx_is_swappable_p): Ensure that a
35894 subsequent SH_NONE operand does not overwrite an existing *special
35896 (adjust_extract): Handle case where a vec_extract operation is
35897 wrapped in a PARALLEL.
35899 2015-04-17 H.J. Lu <hongjiu.lu@intel.com>
35902 * config/i386/i386.c (ix86_binds_local_p): Define only if
35903 TARGET_MACHO and TARGET_DLLIMPORT_DECL_ATTRIBUTES are false.
35905 2015-04-17 Jeff Law <law@redhat.com>
35907 PR tree-optimization/47679
35908 * Makefile.in (OBJS); Add tree-ssa-scopedtables.o.
35909 * tree-ssa-scopedtables.c: New file.
35910 * tree-ssa-scopedtables.h: New file.
35911 * tree-ssa-dom.c: Include tree-ssa-scopedtables.h.
35912 (const_and_copies): Change name/type.
35913 (record_const_or_copy): Move into tree-ssa-scopedtables.c
35914 (record_const_or_copy_1): Similarly.
35915 (restore_vars_to_original_value): Similarly.
35916 (pass_dominator::execute): Create and destroy const_and_copies table.
35917 (thread_across_edge): Update passing of const_and_copies.
35918 (record_temporary_equivalence): Use method calls rather than
35919 manipulating const_and_copies directly.
35920 (record_equality, cprop_into_successor_phis): Similarly.
35921 (dom_opt_dom_walker::before_dom_children): Similarly.
35922 (dom_opt_dom_walker::after_dom_children): Similarly.
35923 (eliminate_redundant_computations): Similarly.
35924 * tree-ssa-threadedge.c (remove_temporary_equivalences): Delete.
35925 (record_temporary_equivalence): Likewise.
35926 (invalidate_equivalences): Likewise.
35927 (record_temporary_equivalences_from_phis): Update due to type
35928 change of const_and_copies. Use method calls rather than
35929 manipulating the stack directly.
35930 (record_temporary_equivalences_from_stmts_at_dest): Likewise.
35931 (thread_through_normal_block, thread_across_edge): Likewise.
35932 (thread_across_edge): Likewise.
35933 * tree-ssa-threadedge.h (thread_across_edge): Update prototype.
35934 * tree-vrp.c: Include tree-ssa-scopedtables.h. Change type
35936 (identify_jump_threads): Update due to type change of equiv_stack.
35937 (finalize_jump_threads): Delete the equiv_stack when complete.
35939 2015-04-17 Uros Bizjak <ubizjak@gmail.com>
35941 * config/i386/i386.h (LEGITIMIZE_RELOAD_ADDRESS): Remove.
35942 * config/i386/i386.c (ix86_legitimize_reload_address): Ditto.
35943 * config/i386/i386-protos.h (ix86_legitimize_reload_address): Ditto.
35945 2015-04-17 Andreas Tobler <andreast@gcc.gnu.org>
35948 * config.gcc: Exit with a comment when we do not have a major version
35949 number for the FreeBSD target.
35951 2015-04-17 Jakub Jelinek <jakub@redhat.com>
35954 * genpreds.c (struct constraint_data): Add maybe_allows_reg and
35955 maybe_allows_mem bitfields.
35956 (maybe_allows_none_start, maybe_allows_none_end,
35957 maybe_allows_reg_start, maybe_allows_reg_end, maybe_allows_mem_start,
35958 maybe_allows_mem_end): New variables.
35959 (compute_maybe_allows): New function.
35960 (add_constraint): Use it to initialize maybe_allows_reg and
35961 maybe_allows_mem fields.
35962 (choose_enum_order): Sort the non-is_register/is_const_int/is_memory/
35963 is_address constraints such that those that allow neither mem nor
35964 reg come first, then those that only allow reg but not mem, then
35965 those that only allow mem but not reg, then the rest.
35966 (write_allows_reg_mem_function): New function.
35967 (write_tm_preds_h): Call it.
35968 * stmt.c (parse_output_constraint, parse_input_constraint): Use
35969 the generated insn_extra_constraint_allows_reg_mem function
35970 instead of always setting *allows_reg = true; *allows_mem = true;
35971 for unknown extra constraints.
35973 2015-04-17 H.J. Lu <hongjiu.lu@intel.com>
35976 * output.h (default_binds_local_p_3): New.
35977 * varasm.c (default_binds_local_p_3): Make it public. Take an
35978 argument to indicate if common symbol may be local. If common
35979 symbol may be local, treat non-external variable as defined
35981 (default_binds_local_p_2): Pass !flag_pic to default_binds_local_p_3.
35982 (default_binds_local_p_1): Pass false to default_binds_local_p_3.
35983 * config/i386/i386.c (ix86_binds_local_p): New.
35984 (TARGET_BINDS_LOCAL_P): Replace default_binds_local_p_2 with
35985 ix86_binds_local_p.
35987 2015-04-17 Jakub Jelinek <jakub@redhat.com>
35990 * dwarf2out.c (mem_loc_descriptor): For CONST, fallback to
35991 trying mem_loc_descriptor on XEXP (rtl, 0).
35993 2015-04-17 Martin Liska <mliska@suse.cz>
35995 * ipa-icf.c (sem_item_optimizer::subdivide_classes_by_sensitive_refs):
35996 Release symbol_compare_collection.
35997 * ipa-reference.c: Add TODO that a vector should be released.
35999 2015-04-17 Sivanupandi Pitchumani <Pitchumani.Sivanupandi@atmel.com>
36002 * config/avr/gen-avr-mmcu-specs.c (*avrlibc_startfile): Adjust
36003 to new AVR-LibC file layout (bug #44574).
36004 (*avrlibc_devicelib): Same.
36005 * config/avr/avr-mcus.def: Adjust comments.
36006 * config/avr/avr.opt (nodevicelib): Adjust help.
36008 2015-04-17 Alan Lawrence <alan.lawrence@arm.com>
36010 * config/aarch64/arm_neon.h (vdup_n_f32): Remove forward declaration.
36012 2015-04-17 Patrick Palka <ppalka@gcc.gnu.org>
36015 * gimplify.c (gimplify_init_constructor): Always emit a
36016 side-effecting constructor.
36018 2015-04-17 Tom de Vries <tom@codesourcery.com>
36020 PR tree-optimization/64950
36021 * gimplify.c (gimplify_function_tree): Tentatively set PROP_gimple_lva
36022 in cfun->curr_properties.
36023 (gimplify_va_arg_expr): Clear PROP_gimple_lva in cfun->curr_properties
36024 if we generate an IFN_VA_ARG.
36025 * tree-inline.c (expand_call_inline): Reset PROP_gimple_lva in dest
36026 function if PROP_gimple_lva is not set in src function.
36028 2015-04-17 Tom de Vries <tom@codesourcery.com>
36029 Michael Matz <matz@suse.de>
36031 PR tree-optimization/64950
36032 * gimple-iterator.c (update_modified_stmts): Remove static.
36033 * gimple-iterator.h (update_modified_stmts): Declare.
36034 * gimplify.c (gimplify_modify_expr): Handle IFN_VA_ARG.
36035 (gimplify_va_arg_internal): New function.
36036 (gimplify_va_arg_expr): Use IFN_VA_ARG.
36037 * gimplify.h (gimplify_va_arg_internal): Declare.
36038 * internal-fn.c (expand_VA_ARG): New unreachable function.
36039 * internal-fn.def (VA_ARG): New DEF_INTERNAL_FN.
36040 * tree-stdarg.c (gimple_call_ifn_va_arg_p, expand_ifn_va_arg_1)
36041 (expand_ifn_va_arg): New function.
36042 (pass_data_stdarg): Add PROP_gimple_lva to properties_provided field.
36043 (pass_stdarg::execute): Call expand_ifn_va_arg.
36044 (pass_data_lower_vaarg): New pass_data.
36045 (pass_lower_vaarg): New gimple_opt_pass.
36046 (pass_lower_vaarg::gate, pass_lower_vaarg::execute)
36047 (make_pass_lower_vaarg): New function.
36048 * cfgexpand.c (pass_data_expand): Add PROP_gimple_lva to
36049 properties_required field.
36050 * passes.def (all_passes): Add pass_lower_vaarg.
36051 * tree-pass.h (PROP_gimple_lva): Add define.
36052 (make_pass_lower_vaarg): Declare.
36054 2015-04-17 Tom de Vries <tom@codesourcery.com>
36056 * fold-const.c (operand_equal_p): Handle INTERNAL_FNs.
36057 * calls.c (call_expr_flags): Same.
36059 2015-04-17 Tom de Vries <tom@codesourcery.com>
36061 * tree-stdarg.c (optimize_va_list_gpr_fpr_size): Factor out of ...
36062 (pass_stdarg::execute): ... here.
36064 2015-04-17 Tom de Vries <tom@codesourcery.com>
36065 Michael Matz <matz@suse.de>
36067 * tree-cfg.c (make_blocks_1): Factor out of ...
36068 (make_blocks): ... here.
36069 (make_edges_bb): Factor out of ...
36070 (make_edges): ... here.
36071 (gimple_find_sub_bbs): New function.
36072 * tree-cfg.h (gimple_find_sub_bbs): Declare.
36074 2015-04-17 Tom de Vries <tom@codesourcery.com>
36076 * tree.c (free_lang_data): Disable lang_hooks.gimplify_expr.
36078 2015-04-17 Yury Gribov <y.gribov@samsung.com>
36080 * asan.c (set_sanitized_sections): New function.
36081 (section_sanitized_p): Ditto.
36082 (asan_protect_global): Optionally sanitize user-defined
36084 * asan.h (set_sanitized_sections): Declare new function.
36085 * common.opt (fsanitize-sections): New option.
36086 * doc/invoke.texi (-fsanitize-sections): Document new option.
36087 * opts-global.c (handle_common_deferred_options): Handle new
36090 2015-04-17 Jakub Jelinek <jakub@redhat.com>
36093 * dwarf2out.c (loc_list_from_tree): Return NULL
36094 for DEBUG_EXPR_DECL.
36096 2015-04-17 Christian Bruel <christian.bruel@st.com>
36098 * ipa-inline.c (can_inline_edge_p): Allow inlining of functions with
36101 2015-04-16 Zhouyi Zhou <yizhouzhou@ict.ac.cn>
36103 * ira-color.c (setup_left_conflict_sizes_p): Do not process
36104 node itself when computing left conflict subnode size.
36106 2015-04-16 Uros Bizjak <ubizjak@gmail.com>
36108 * config/i386/predicates.md (register_mixssei387nonimm_operand): New.
36109 * config/i386/i386.md (*fop_<mode>_1_mixed): Merge with
36110 *fop_<mode>_1_sse using enabled attribute. Use
36111 register_mixssei387nonimm_operand operand 1 predicate. Change
36112 alternative 3 constraints from "x" to "v".
36114 2015-04-16 Richard Biener <rguenther@suse.de>
36116 PR tree-optimization/65774
36117 * tree-ssa-ccp.c (evaluate_stmt): Constrain types we invoke
36118 bit-value tracking on.
36120 2015-04-16 Richard Biener <rguenther@suse.de>
36122 PR tree-optimization/64277
36123 * tree-vrp.c (check_array_ref): Fix anti-range handling,
36124 simplify upper bound handling.
36125 (search_for_addr_array): Simplify.
36126 (check_array_bounds): Handle ADDR_EXPRs here.
36127 (check_all_array_refs): Simplify.
36129 2015-04-16 Uros Bizjak <ubizjak@gmail.com>
36131 * config/i386/i386.c (print_reg): Rewrite function.
36133 2015-04-16 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
36135 * config/s390/s390.h (IRA_HARD_REGNO_ADD_COST_MULTIPLIER):
36136 Invert the condition.
36138 2015-04-16 Renlin Li <renlin.li@arm.com>
36140 * simplify-rtx.c (simplify_unary_operation_1): Fix a typo. Enable two
36141 simplifications for UNSIGNED_FLOAT.
36143 2015-04-16 Nick Clifton <nickc@redhat.com>
36145 * config/rl78/rl78-opts.h (enum rl78_mul_types): Add MUL_G14 and
36147 (enum rl78_cpu_type): New.
36148 * config/rl78/rl78-virt.md (attr valloc): Add divhi and divsi.
36149 (umulhi3_shift_virt): Remove m constraint from operand 1.
36150 (umulqihi3_virt): Likewise.
36151 * config/rl78/rl78.c (rl78_option_override): Add code to process
36152 -mcpu and -mmul options.
36153 (rl78_alloc_physical_registers): Add code to handle divhi and
36154 divsi valloc attributes.
36155 (set_origin): Likewise.
36156 * config/rl78/rl78.h (RL78_MUL_G14): Define.
36157 (TARGET_G10, TARGET_G13, TARGET_G14): Define.
36158 (TARGET_CPU_CPP_BUILTINS): Define __RL78_MUL_xxx__ and
36160 (ASM_SPEC): Pass -mcpu on to assembler.
36161 * config/rl78/rl78.md (mulqi3): Add a clobber of AX.
36162 (mulqi3_rl78): Likewise.
36163 (mulhi3_g13): Likewise.
36164 (mulhi3): Generate the G13 or G14 versions of the insn directly.
36165 (mulsi3): Likewise.
36166 (mulhi3_g14): Add clobbers of AX and BC.
36167 (mulsi3_g14): Likewise.
36168 (mulsi3_g13): Likewise.
36169 (udivmodhi4, udivmodhi4_g14, udivmodsi4): New patterns.
36170 (udivmodsi4_g14, udivmodsi4_g13): New patterns.
36171 * config/rl78/rl78.opt (mmul): Initialise value to
36173 (mcpu): New option.
36174 (m13, m14, mrl78): New option aliases.
36175 * config/rl78/t-rl78 (MULTILIB_OPTIONS): Add mg13 and mg14.
36176 (MULTILIB_DIRNAMES): Add g13 and g14.
36177 * doc/invoke.texi: Document -mcpu and -mmul options.
36179 2015-04-16 Richard Biener <rguenther@suse.de>
36181 * tree-ssa-ccp.c (likely_value): See if we have operands that
36182 are marked as never simulate again and return CONSTANT in this
36184 * tree-ssa-propagate.c (simulate_stmt): Mark stmts that do
36185 not have any operands that will be simulated again as
36186 not being simulated again.
36188 2015-04-15 Uros Bizjak <ubizjak@gmail.com>
36190 * config/i386/i386.md (*cmpi<FPCMP:unord><MODEF:mode>_mixed):
36191 Merge with *cmpi<FPCMP:unord><MODEF:mode>_sse using enabled attribute.
36192 (*extendsfdf2_mixed): Merge with *extendsfdf2_sse using enabled
36194 (*truncdfsf_fast_mixed): Merge with *truncdfsf_fast_sse using
36196 (*float<SWI48:mode><MODEF:mode>2_mixed): Rename from
36197 *float<SWI48:mode><MODEF:mode>2_sse.
36198 (*absneg<mode>2_mixed): Merge with *absneg<mode>2_sse using
36200 (*fop_<mode>_comm_mixed): Merge with *fop_<mode>_comm_sse using
36203 2015-04-15 Tom de Vries <tom@codesourcery.com>
36206 * function.c (push_dummy_function): New function.
36207 (init_dummy_function_start): Use push_dummy_function.
36208 (pop_dummy_function): New function. Factored out of ...
36209 (expand_dummy_function_end): ... here.
36210 * function.h (push_dummy_function, pop_dummy_function): Declare.
36211 * passes.c (pass_manager::dump_passes): Use push_dummy_function and
36212 pop_dummy_function.
36213 * tree-chkp.c (chkp_gate): Handle cgraph_node::get (cfun->decl) == NULL.
36215 2015-04-15 Jeff Law <law@redhat.com>
36217 PR tree-optimization/47679
36218 * tree-ssa-dom.c (build_and_record_new_cond): Moved to avoid
36219 need for forward declaration in upcoming changes.
36220 (record_conditions, record_edge_info): Likewise.
36222 PR rtl-optimization/42522
36223 * cse.c (fold_rtx): Try to simplify a ZERO_EXTRACT or
36224 SIGN_EXTRACT as a whole object rather than simplifying
36227 2015-04-15 Jakub Jelinek <jakub@redhat.com>
36230 * ipa-icf-gimple.c (func_checker::compare_bb): For GIMPLE_NOP
36231 and GIMPLE_PREDICT use break instead of return true. For
36232 GIMPLE_EH_DISPATCH, compare dispatch region.
36234 2015-04-14 Matthew Wahab <matthew.wahab@arm.com>
36236 * doc/extend.texi (__sync Builtins): Simplify some text. Update
36237 details about the implementation. Make clear preference for
36238 __atomic builtins. Reduce possibility of future change.
36240 2015-04-15 Nick Clifton <nickc@redhat.com>
36242 * config/rx/rx.opt (mallow-string-insns): New option.
36243 * config/rx/rx.c (RX_BUILTIN_RMPA): Disable the use of this
36244 builtin if string instructions are denied.
36245 * config/rx/rx.h (TARGET_CPU_CPP_BUILTINS): Define
36246 __RX_ALLOW_STRING_INSNS__ or __RX_DISALLOW_STRING_INSNS__, as
36248 (ASM_SPEC): Pass -mno-allow-string-insns on to the assembler.
36249 * config/rx/rx.md (movstr): Enable pattern only if string
36250 instructions are allowed.
36251 (rx_movstr, rx_strend, movmemsi, rx_movmem): Likewise.
36252 (cmpstrnsi, cmpstrsi, rx_cmpstrn, rmpa): Likewise.
36253 * config/rx/t-rx (MULTILIB_OPTIONS): Add mno-allow-string-insns.
36254 (MULTILIB_DIRNAMES): Add no-strings.
36255 * doc/invoke.texi: Document -mno-allow-string-insns.
36257 2015-04-15 Alan Modra <amodra@gmail.com>
36261 PR middle-end/36043
36262 * calls.c (load_register_parameters): Don't load past end of
36263 mem unless suitably aligned.
36265 2015-04-15 Nick Clifton <nickc@redhat.com>
36267 * config/rl78/rl78.c (rl78_expand_prologue): Mark large stack
36268 decrement instruction as being frame related.
36269 (rl78_print_operand_1): Handle 'p' modifier to add +0 to HL
36271 If zero extending a function address enclose the operation in
36273 (rl78_preferred_reload_class): New function.
36274 (TARGET_PREFERRED_RELOAD_CLASS): Define.
36275 * config/rl78/rl78.md: Remove useless constraints in expanders.
36276 (mulqi3_rl78): Remove + qualifier on input-only operand 1.
36277 (mulhi3_rl78): Likewise.
36278 (mulhi3_g13): Likewise.
36279 (mulsi3_rl78): Likewise.
36280 (es_addr): Move to before the multiply patterns.
36282 2015-04-15 Alan Modra <amodra@gmail.com>
36284 * function.h (struct emit_status): Delete x_first_insn, x_last_insn
36285 and sequence_stack. Add seq.
36286 (seq_stack): Delete.
36287 * function.c (prepare_function_start): Don't access x_last_insn.
36288 * emit-rtl.h (get_current_sequence, get_topmost_sequence): New.
36289 (get_insns, set_first_insn, get_last_insn, set_last_insn): Use them.
36290 * emit_rtl.c (start_sequence, push_topmost_sequence,
36291 pop_topmost_sequence, end_sequence, in_sequence_p, init_emit): Use
36292 sequence accessors.
36293 (get_last_insn_anywhere, add_insn_after_nobb, add_insn_before_nobb,
36294 remove_insn): Likewise. Simplify.
36295 * config/m32c/m32c.c (m32c_leaf_function_p): Use push_topmost_sequence
36296 and pop_topmost_sequence.
36297 (m32c_function_needs_enter): Use get_topmost_sequence. Ignore
36299 * config/rs6000/rs6000.c (rs6000_call_aix): Use get_current_sequence.
36301 2015-04-14 Yvan Roux <yvan.roux@linaro.org>
36304 * lra-constraints.c (prohibited_class_reg_set_mode_p): Restore and fix
36307 2015-04-14 Uros Bizjak <ubizjak@gmail.com>
36309 * config/i386/i386.h (LEGACY_INT_REG_P): New define.
36310 (LEGACY_INT_REGNO_P): Ditto.
36311 (GENERAL_REGNO_P): Use LEGACY_INT_REGNO_P.
36312 (ANY_MASK_REG_P): Remove.
36313 (BND_REG_P): Rename from ANY_BND_REG_P.
36314 * config/i386/i386.c (print_reg): Use LEGACY_INT_REG_P to print
36315 legacy integer registers. Do not handle MMX_REG_P in a special way.
36316 Merge 64byte and 32byte SSE handling.
36318 2015-04-14 Nick Clifton <nickc@redhat.com>
36320 * expr.c (expand_assignment): Force an address offset computation
36321 into a register before changing its mode.
36322 (expand_expr_real_1): Likewise.
36324 2015-04-14 Alan Lawrence <alan.lawrence@arm.com>
36326 * config/aarch64/arm_neon.h (vst1_lane_f32, vst1_lane_f64,
36327 vst1_lane_p8, vst1_lane_p16, vst1_lane_s8, vst1_lane_s16,
36328 vst1_lane_s32, vst1_lane_s64, vst1_lane_u8, vst1_lane_u16,
36329 vst1_lane_u32, vst1_lane_u64, vst1q_lane_f32, vst1q_lane_f64,
36330 vst1q_lane_p8, vst1q_lane_p16, vst1q_lane_s8, vst1q_lane_s16,
36331 vst1q_lane_s32, vst1q_lane_s64, vst1q_lane_u8, vst1q_lane_u16,
36332 vst1q_lane_u32, vst1q_lane_u64): Reimplement with pointer dereference
36333 and __aarch64_vget_lane_any.
36335 2015-04-14 Jakub Jelinek <jakub@redhat.com>
36337 PR rtl-optimization/65761
36338 * cfgrtl.c (rtl_split_edge): For EDGE_CROSSING split, use
36339 get_last_bb_insn (after) instead of NEXT_INSN (BB_END (after)).
36341 2015-04-14 Richard Biener <rguenther@suse.de>
36343 * graphite-scop-detection.c: Do not include cp/cp-tree.h.
36344 (graphite_can_represent_scev): Use POINTER_TYPE_P.
36346 2015-04-14 Richard Biener <rguenther@suse.de>
36348 PR tree-optimization/65758
36349 * tree-ssa-ccp.c (get_value_from_alignment): Adjust mask test
36351 (ccp_lattice_meet): Likewise.
36352 (bit_value_unop): Likewise.
36353 (bit_value_binop): Likewise.
36354 (bit_value_assume_aligned): Likewise.
36356 2015-04-14 Christian Bruel <christian.bruel@st.com>
36358 * execute_dwarf2_frame (dw_frame_pointer_regnum): Reinitialize for each
36361 2015-04-14 Marc Glisse <marc.glisse@inria.fr>
36363 PR tree-optimization/63387
36364 * match.pd ((x unord x) | (y unord y) -> (x unord y),
36365 (x unord x) | (x unord y) -> (x unord y)): New simplifications.
36367 2015-04-14 Uros Bizjak <ubizjak@gmail.com>
36369 * config/i386/predicates.md (any_QIreg_operand): Rename from
36370 q_regs_operand. Do not process subregs.
36371 (QIreg_operand): Use QI_REGNO_P predicate.
36372 (ext_QIreg_operand): Ditto.
36373 (ext_register_operand): Ditto.
36374 * config/i386/i386.md (TEST splitters): Use QIreg_operand predicate.
36375 (AND splitters): Ditto.
36376 (AND with -65536 splitter): Add SWI48 mode for operand 0.
36377 (AND with -256 splitter): Use any_QIreg_operand predicate and
36378 SWI248 mode for operand 0.
36379 (AND with -65281 splitter): Use QIreg_operand predicate and SWI248
36380 mode for operand 0.
36381 (SETCC + MOVZBL peepholes): Update for renamed any_QIreg_operand.
36383 2015-04-13 Gerald Pfeifer <gerald@pfeifer.com>
36385 * doc/plugins.texi: Rewrite first introductory paragraph.
36387 2015-04-12 Jan Hubicka <hubicka@ucw.cz>
36389 * tree-vrp.c (nonnull_arg_p): THIS pointers and references are non-zero.
36390 (gimple_stmt_nonzero_warnv_p): Reference return values are non-zero.
36392 2015-04-12 Jan Hubicka <hubicka@ucw.cz>
36394 * ipa-profie.c (ipa_profile): Check number of parameters
36395 and possible polymorphic call targets before
36398 2015-04-13 Uros Bizjak <ubizjak@gmail.com>
36400 * config/i386/i386.md (*bmi2_umul<mode><dwi>3_1): Merge from
36401 *bmi2_umulsidi3_1 and *bmi2_umulditi3_1 using DWIH mode iterator.
36403 2015-04-13 Richard Biener <rguenther@suse.de>
36405 PR tree-optimization/65204
36406 * tree-ssa-ccp.c (evaluate_stmt): Always evaluate address
36407 takens for bit-CCP.
36409 2015-04-13 Richard Biener <rguenther@suse.de>
36412 * config/i386/i386.c (bdver1_cost): Double cond_taken_branch_cost
36413 and cond_not_taken_branch_cost to 4 and 2.
36414 (bdver2_cost): Likewise.
36415 (bdver3_cost): Likewise.
36416 (bdver4_cost): Likewise.
36418 2015-04-12 Jan Hubicka <hubicka@ucw.cz>
36420 * hash-table.h (hash_table constructor): Add mem stats.
36421 (alloc_entries): Likewise.
36423 2015-04-12 Jan Hubicka <hubicka@ucw.cz>
36425 * ipa-cp.c (ipcp_driver): Relase prev_edge.
36426 * passes.c (execute_one_pass): Only add transform if pass has one.
36428 2015-04-12 Joseph Myers <joseph@codesourcery.com>
36430 * config/i386/i386.c (ix86_option_override_internal): Don't set
36431 -fprefetch-loop-arrays if optimizing for size.
36433 2015-04-12 Jan Hubicka <hubicka@ucw.cz>
36434 Gerald Pfeifer <gerald@pfeifer.com>
36436 * doc/contrib.texi (Contributors): Add Martin Jambor and
36439 2015-04-12 Jakub Jelinek <jakub@redhat.com>
36441 * BASE-VER: Set to 6.0.0.
36443 PR tree-optimization/65747
36444 * ipa-icf-gimple.c (func_checker::compare_operand): Use compare_operand
36445 rather than compare_ssa_name for OBJ_TYPE_REF_OBJECT.
36447 2015-04-12 Gerald Pfeifer <gerald@pfeifer.com>
36449 * doc/invoke.texi (-Wmemset-transposed-args): Break a long
36450 sentence. Improve grammar.
36452 2015-04-12 Gerald Pfeifer <gerald@pfeifer.com>
36454 * doc/contrib.texi (Contributors): Add Maxim Kuvyrkov.
36456 2015-04-11 Jan Hubicka <hubicka@ucw.cz>
36459 * ipa-inline-transform.c (speculation_removed): Remove static var.
36460 (check_speculations): New function.
36461 (clone_inlined_nodes): Do not check spculations.
36462 (inline_call): Call check_speculations.
36463 * ipa-prop.c (ipa_make_edge_direct_to_target): Do not
36464 consider non-invariants.
36466 2015-04-11 Jan Hubicka <hubicka@ucw.cz>
36467 Martin Liska <mliska@suse.cz>
36470 * ipa-icf.c (sem_item::compare_cgraph_references): function and
36471 variable can not match.
36472 (sem_item::update_hash_by_addr_refs): Fix handling of virtual tables.
36473 (sem_variable::equals_wpa): Fix checking of DECL_FINAL_P patch.
36475 2015-04-11 Jakub Jelinek <jakub@redhat.com>
36477 PR tree-optimization/65735
36478 * tree-ssa-threadedge.c (fsm_find_control_statement_thread_paths):
36479 Remove visited_phis argument, add visited_bbs, avoid recursing into the
36480 same bb rather than just into the same phi node.
36481 (thread_through_normal_block): Adjust caller.
36483 2015-04-11 Gerald Pfeifer <gerald@pfeifer.com>
36485 * doc/contrib.texi (Contributors): Add Ira Rosen.
36487 2015-04-11 Benno Schulenberg <bensberg@justemail.net>
36489 * gcov.c (find_source): Fix miswording in error message.
36490 * config/i386/i386.c (ix86_handle_cconv_attribute): Likewise.
36491 (ix86_expand_sse_comi_round): Fix typo in error message.
36493 2015-04-11 Gerald Pfeifer <gerald@pfeifer.com>
36495 * doc/contrib.texi (Contributors): Add Laurynas Biveinis.
36497 2015-04-10 Gerald Pfeifer <gerald@pfeifer.com>
36499 * doc/contrib.texi (Contributors): Update Joe Buck's entry.
36501 2015-04-10 Vladimir Makarov <vmakarov@redhat.com>
36504 * lra-assigns.c (spill_for): Update smallest_bad_spills_num.
36505 Print bad_spills_num and insn_pseudos_num.
36507 2015-04-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
36510 * config/arm/arm.c (arm_canonicalize_comparison): Use ARM_SIGN_EXTEND
36511 when creating +1 values for SImode.
36513 2015-04-10 Vladimir Makarov <vmakarov@redhat.com>
36516 * lra-constraints.c (prohibited_class_reg_set_mode_p): Comment the
36519 2015-04-10 Jakub Jelinek <jakub@redhat.com>
36520 Iain Sandoe <iain@codesourcery.com>
36523 * configure: Regenerate.
36525 2015-04-09 Kirill Yukhin <kirill.yukhin@intel.com>
36528 * config/i386/sse.md: Generate vextract32x4 if AVX-512DQ is disabled.
36530 2015-04-09 Gerald Pfeifer <gerald@pfeifer.com>
36532 * doc/contrib.texi (Contributors): Add John Marino.
36534 2015-04-09 Jakub Jelinek <jakub@redhat.com>
36536 PR tree-optimization/65709
36537 * ubsan.c (instrument_mem_ref): Use TREE_TYPE (base) instead of
36538 TREE_TYPE (TREE_TYPE (t)).
36540 2015-04-09 Vladimir Makarov <vmakarov@redhat.com>
36543 * lra-int.h (lra_bad_spill_regno_start): New.
36544 * lra.c (lra_bad_spill_regno_start): New.
36545 (lra): Set up lra_bad_spill_regno_start. Set up
36546 lra_constraint_new_regno_start unconditionally.
36547 * lra-assigns.c (spill_for): Use lra_bad_spill_regno_start for
36550 2015-04-09 Marek Polacek <polacek@redhat.com>
36551 Jakub Jelinek <jakub@redhat.com>
36553 PR middle-end/65554
36554 * gimple-fold.c (gimple_fold_builtin_memory_op): Update comment.
36555 (fold_ctor_reference): Use STRIP_USELESS_TYPE_CONVERSION instead
36558 2015-04-09 Segher Boessenkool <segher@kernel.crashing.org>
36560 PR rtl-optimization/65693
36561 * combine.c (is_parallel_of_n_reg_sets): Move outside of
36564 2015-04-09 Georg-Johann Lay <avr@gjlay.de>
36567 * config/avr/driver-avr.c (avr_devicespecs_file): Don't specify a
36568 device specs file if "device-specs%s" didn't resolve to a path.
36570 2015-04-09 Kirill Yukhin <kirill.yukhin@intel.com>
36573 * config/i386/i386.c (fixup_modeless_constant): New.
36574 (ix86_expand_args_builtin): Fixup modeless constant operand.
36575 (ix86_expand_round_builtin): Ditto.
36576 (ix86_expand_special_args_builtin): Ditto.
36577 (ix86_expand_builtin): Ditto.
36579 2015-04-09 Jakub Jelinek <jakub@redhat.com>
36582 * config/i386/i386.md (*udivmod<mode>4_pow2): Allow
36583 any pow2 integer in between 2 and 0x80000000U inclusive.
36585 2015-04-08 Segher Boessenkool <segher@kernel.crashing.org>
36587 PR rtl-optimization/65693
36588 * combine.c (is_parallel_of_n_reg_sets): Change first argument
36589 from an rtx_insn * to an rtx.
36590 (try_combine): Adjust both callers. Use it once more.
36592 2015-04-08 Ilya Enkovich <ilya.enkovich@intel.com>
36594 * tree-chkp.c (chkp_find_const_bounds_var): Remove.
36595 (chkp_make_static_const_bounds): Search existing
36596 symbol by assembler name. Use make_decl_one_only.
36597 (chkp_get_zero_bounds_var): Remove node search which
36598 is now performed in chkp_make_static_const_bounds.
36599 (chkp_get_none_bounds_var): Likewise.
36601 2015-04-08 Michael Witten <mfwitten@gmail.com>
36603 * doc/extend.texi (Attribute Syntax): Add a trailing semicolon
36606 2015-04-08 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
36608 * tree.h (CONVERT_EXPR_P): Commentary typo fix.
36610 2015-04-08 Gerald Pfeifer <gerald@pfeifer.com>
36612 * doc/extend.texi (__sync Builtins): Fix grammar.
36614 2015-04-08 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
36616 * doc/cfg.texi (GIMPLE statement iterators): Fix typo.
36618 2015-04-08 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
36620 * varasm.c (emit_local): Move definition of align.
36622 2015-04-08 Julian Brown <julian@codesourcery.com>
36624 * config/nvptx/mkoffload.c (process): Support variable mapping.
36626 2015-03-27 Trevor Saunders <tbsaunde@tbsaunde.org>
36628 * config/alpha/alpha.c (alpha_use_linkage): Change type of slot to
36630 (alpha_write_one_linkage): Correct typo.
36632 2015-04-08 Ilya Enkovich <ilya.enkovich@intel.com>
36634 * ipa-comdats.c (propagate_comdat_group): Walk through thunks.
36636 2015-04-08 Gerald Pfeifer <gerald@pfeifer.com>
36638 * doc/install.texi (bootstrap-lto-noplugin): Rewrite.
36640 2015-04-08 Ilya Enkovich <ilya.enkovich@intel.com>
36642 * tree-chkp.h (chkp_insert_retbnd_call): New.
36643 * tree-chkp.c (chkp_insert_retbnd_call): New.
36644 * ipa-split.c (insert_bndret_call_after): Remove.
36645 (split_function): Use chkp_insert_retbnd_call.
36646 * cgraphunit.c (cgraph_node::expand_thunk): Build returned
36647 bounds for instrumented functions.
36649 2015-04-07 Jan Hubicka <hubicka@ucw.cz>
36652 * calls.c (initialize_argument_information): When producing tail
36653 call also turn SSA_NAMES passed by references to original PARM_DECLs
36655 2015-04-07 Vladimir Makarov <vmakarov@redhat.com>
36658 * lra-remat.c (do_remat): Process input and non-input insn
36659 registers separately.
36661 2015-04-07 Jakub Jelinek <jakub@redhat.com>
36664 * valtrack.c (debug_lowpart_subreg): New function.
36665 (dead_debug_insert_temp): Use it.
36667 PR middle-end/65680
36668 * expr.c (get_inner_reference): Handle bit_offset that doesn't fit
36669 into signed HOST_WIDE_INT the same as negative bit_offset.
36671 2015-04-07 Ilya Enkovich <ilya.enkovich@intel.com>
36673 * ipa-comdats.c (ipa_comdats): Visit all thunks
36674 to set proper comdat group.
36676 2015-04-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
36679 * config/arm/arm.c (arm_legitimate_constant_p_1): Remove restriction
36680 on constants for NEON VSTRUCT modes.
36682 2015-04-07 Jakub Jelinek <jakub@redhat.com>
36683 Iain Sandoe <iain@codesourcery.com>
36686 * configure: Regenerate.
36688 2015-04-06 Michael Meissner <meissner@linux.vnet.ibm.com>
36691 * config/rs6000/rs6000.c (struct processor_costs): Add cost field
36692 for SF->DF conversions to make FLOAT_EXTEND more expensive, so
36693 that LFD is used to load double constants instead of LFS. Add
36694 defaults for all costs structures. Add comments for missing
36695 initialization fields.
36696 (size32_cost): Likewise.
36697 (size64_cost): Likewise.
36698 (rs64a_cost): Likewise.
36699 (mpccore_cost): Likewise.
36700 (ppc403_cost): Likewise.
36701 (ppc405_cost): Likewise.
36702 (ppc440_cost): Likewise.
36703 (ppc476_cost): Likewise.
36704 (ppc601_cost): Likewise.
36705 (ppc603_cost): Likewise.
36706 (ppc604_cost): Likewise.
36707 (ppc604e_cost): Likewise.
36708 (ppc620_cost): Likewise.
36709 (ppc630_cost): Likewise.
36710 (ppccell_cost): Likewise.
36711 (ppc750_cost): Likewise.
36712 (ppc7450_cost): Likewise.
36713 (ppc8540_cost): Likewise.
36714 (ppce300c2c3_cost): Likewise.
36715 (ppce500mc_cost): Likewise.
36716 (ppce500mc64_cost): Likewise.
36717 (ppce5500_cost): Likewise.
36718 (ppce6500_cost): Likewise.
36719 (titan_cost): Likewise.
36720 (power4_cost): Likewise.
36721 (power6_cost): Likewise.
36722 (power7_cost): Likewise.
36723 (power8_cost): Likewise.
36724 (ppca2_cost): Likewise.
36725 (rs6000_rtx_costs): Make FLOAT_EXTEND use SFDF_convert field.
36727 * config/rs6000/rs6000.md (extendsfdf2_fpr): Generate XSCPSGNDP
36728 instead of XXLOR to copy SFmode to clear out dirty bits created
36729 when SFmode denormals are generated.
36730 (mov<mode>_hardfloat, FMOVE32 case): Likewise.
36731 (truncdfsf2_fpr): Add support for ISA 2.07 XSRSP instruction.
36733 2015-04-06 Evandro Menezes <e.menezes@samsung.com>
36735 * doc/invoke.texi (AARCH64/mtune): Add exynos-m1 as an option.
36736 * config/aarch64/aarch64-cores.def (exynos-m1): New core.
36737 * config/aarch64/aarch64-tune.md: Regenerate.
36739 2015-04-06 Evandro Menezes <e.menezes@samsung.com>
36741 * doc/invoke.texi (ARM/mtune): Add "exynos-m1" as an option.
36742 * config/arm/arm.c (arm_issue_rate): Specify "3" for "exynosm1".
36743 * config/arm/arm-cores.def (exynos-m1): New core.
36744 * config/arm/arm-tune.md: Regenerate.
36745 * config/arm/arm-tables.opt: Add entry for "exynos-m1".
36746 * config/arm/bpabi.h: Likewise.
36748 2015-04-06 Ilya Enkovich <ilya.enkovich@intel.com>
36750 * ipa-cp (set_single_call_flag): Remove too
36751 restrictive assert.
36753 2015-04-06 Ilya Verbin <ilya.verbin@intel.com>
36755 * config/i386/intelmic-mkoffload.c (generate_host_descr_file): Call
36756 GOMP_offload_unregister from the destructor.
36758 2015-04-06 Ilya Enkovich <ilya.enkovich@intel.com>
36760 * ipa-chkp.c (chkp_maybe_create_clone): Reset cdtor
36761 flags for instrumentation thunk.
36762 (chkp_produce_thunks): Likewise.
36764 2015-04-05 Martin Liska <mliska@suse.cz>
36767 * ipa-icf.c (sem_function::equals_wpa): Verify that IPA CP
36768 has computed data structure.
36769 (sem_item_optimizer::update_hash_by_addr_refs): Likewise.
36771 2015-04-04 Jan Hubicka <hubicka@ucw.cz>
36773 * invoke.texi (inline-unit-growth): Increase growth to 20%
36774 * params.def (PARAM_INLINE_UNIT_GROWTH): Likewise.
36776 2015-04-04 Vladimir Makarov <vmakarov@redhat.com>
36779 * lra-int.h (LRA_MAX_REMATERIALIZATION_PASSES): New. Add its
36781 (lra_rematerialization_iter): New.
36782 * lra.c (lra): Initialize lra_rematerialization_iter.
36783 Stop updating lra_constraint_new_regno_start after switching of
36784 inheritance and rematerialization.
36785 * lra-remat.c (lra_rematerialization_iter): New.
36786 (lra_remat): Add printing pass iteration. Do rematerialization
36787 only first LRA_MAX_REMATERIALIZATION_PASSES iterations.
36789 2015-04-04 Richard Biener <rguenther@suse.de>
36791 PR tree-optimization/64909
36792 PR tree-optimization/65660
36793 * tree-vectorizer.h (vect_get_known_peeling_cost): Adjust
36794 to take a cost vector for scalar iteration cost.
36795 (vect_get_single_scalar_iteration_cost): Likewise.
36796 * tree-vect-loop.c (vect_get_single_scalar_iteration_cost):
36797 Compute the scalar iteration cost into a cost vector.
36798 (vect_get_known_peeling_cost): Use the scalar cost vector to
36799 account for the cost of the peeled iterations.
36800 (vect_estimate_min_profitable_iters): Likewise.
36801 * tree-vect-data-refs.c (vect_peeling_hash_get_lowest_cost):
36804 2015-04-04 Alan Modra <amodra@gmail.com>
36808 * config/rs6000/predicates.md (zero_reg_mem_operand): Exclude
36809 0.0 constant unless TARGET_VSX.
36810 * config/rs6000/rs6000.md (extenddftf2_internal): Remove last
36813 2015-04-03 Jan Hubicka <hubicka@ucw.cz>
36816 * ipa-inline-transform.c (inline_call): Skip sanity check to work
36819 2015-04-03 Jan Hubicka <hubicka@ucw.cz>
36822 * ipa-inline-analysis.c (edge_set_predicate): Do not redirect
36823 speculative indirect edges to avoid ordering issue.
36825 2015-04-03 Jan Hubicka <hubicka@ucw.cz>
36828 * ipa-inline.c (edge_badness): Add combined size to the denominator.
36830 2015-04-03 Jakub Jelinek <jakub@redhat.com>
36832 * omp-low.c (scan_omp_parallel, scan_omp_task, scan_omp_target): Set
36833 TYPE_ARTIFICIAL on the .omp_data* types.
36835 2015-04-02 Ilya Enkovich <ilya.enkovich@intel.com>
36837 * cgraphunit.c (cgraph_node::expand_thunk): Don't expand
36838 instrumentation thunks.
36840 2015-04-02 Ilya Enkovich <ilya.enkovich@intel.com>
36842 * config/i386/i386.c (ix86_expand_call): Avoid nested
36843 PARALLEL in returned call value.
36845 2015-04-02 Ilya Enkovich <ilya.enkovich@intel.com>
36847 * lto-cgraph.c (input_cgraph_1): Always link instrumented
36848 assembler name with original one.
36850 2015-04-02 Uros Bizjak <ubizjak@gmail.com>
36852 * config/i386/i386.c (ix86_register_priority): Use AX_REG.
36854 2015-04-02 Uros Bizjak <ubizjak@gmail.com>
36856 Revert parts of r216820.
36857 * config/i386/i386.md (movqi_internal): Correct type calculation
36858 for alternatives 3 and 5.
36860 2015-04-02 Jakub Jelinek <jakub@redhat.com>
36862 PR preprocessor/61977
36863 * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Don't
36864 predefine __vector/__bool/__pixel macros nor context sensitive
36865 macros for CLK_ASM.
36866 * config/spu/spu-c.c (spu_cpu_cpp_builtins): Similarly.
36868 2015-04-02 John David Anglin <danglin@gcc.gnu.org>
36870 * config/pa/pa.c (pa_output_move_double): Directly handle register
36871 indexed memory operand. Simplify handling of scaled register indexed
36874 2015-04-02 Ilya Enkovich <ilya.enkovich@intel.com>
36877 * config/i386/linux-common.h (MPX_SPEC): New.
36878 (CHKP_SPEC): Add MPX_SPEC.
36879 * doc/invoke.texi (-fcheck-pointer-boudns): Document
36880 possible issues with '-z bndplt' support in linker.
36882 2015-04-02 Uros Bizjak <ubizjak@gmail.com>
36884 * config/i386/sync.md (UNSPEC_FILD_ATOMIC, UNSPEC_FIST_ATOMIC): New.
36885 (loaddi_via_fpu): Use UNSPEC_FILD_ATOMIC.
36886 (storedi_via_fpu): Use UNSPEC_FIST_ATOMIC.
36887 * reg-stack.c (get_true_reg): Change UNSPEC_LDA to UNSPEC_FILD_ATOMIC.
36888 (subst_stack_regs_pat): Change UNSPEC_STA to UNSPEC_FIST_ATOMIC.
36890 2015-04-01 Uros Bizjak <ubizjak@gmail.com>
36892 * config/i386/sync.md (UNSPEC_MOVA): Remove.
36893 (atomic_load<mode>): Change operand 0 predicate to
36894 nonimmediate_operand and fix up the destination when needed.
36896 (atomic_loaddi_fpu): Use UNSPEC_LDA.
36897 (atomic_store<mode>): Change operand 1 predicate to
36898 nonimmendate_operand and move the source to register when needed.
36900 (atomic_store<mode>_1): Use UNSPEC_STA.
36901 (atomic_storedi_fpu): Change operand 1 to nonimmediate_operand.
36902 Fix moves from memory operand. Use UNSPEC_STA.
36904 2015-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
36906 * expmed.c (strict_volatile_bitfield_p): Check that the access will
36907 not cross a MODESIZE boundary.
36908 (store_bit_field, extract_bit_field): Added assertions in the
36909 strict volatile bitfields code path.
36911 2015-04-01 Max Ostapenko <m.ostapenko@partner.samsung.com>
36914 * config/aarch64/aarch64-builtins.c (aarch64_simd_expand_builtin):
36915 Increase args array size by one to avoid buffer overflow.
36917 2015-03-31 Jan Hubicka <hubicka@ucw.cz>
36919 * lto-cgraph.c (lto_output_node, input_overwrite_node): Stream
36921 * ipa-inline.c (edge_badness): Add wrapper penalty.
36922 (sum_callers): Move up.
36923 (inline_small_functions): Set single_caller.
36924 * ipa-inline.h (inline_summary): Add single_caller.
36925 * ipa-split.c (split_function): Set split_part.
36926 (cgraph_node::create_clone): Do not shadow decl; copy split_part.
36927 * cgraph.h (cgraph_node): Add split_part.
36929 2015-03-31 Uros Bizjak <ubizjak@gmail.com>
36932 * config/i386/sync.md (atomic_compare_and_swap<dwi>_doubleword):
36933 Do not split operands 0 and operands 2 to halfmode.
36934 (atomic_compare_and_swap<mode>): Update for
36935 atomic_compare_and_swap<dwi>_doubleword changes.
36937 2015-03-31 Jan Hubicka <hubicka@ucw.cz>
36939 * tree.c (need_assembler_name_p): Artificial types have no ODR names.
36940 * ipa-devirt.c (warn_odr): Do not try to apply ODR cache when
36941 no caching is done.
36943 2015-03-31 Martin Liska <mliska@suse.cz>
36946 * ipa-icf.c (sem_function::equals_wpa): Check if IPA CP
36947 has already filled up function summary.
36948 (sem_item_optimizer::update_hash_by_addr_refs): Likewise.
36950 2015-03-31 Richard Biener <rguenther@suse.de>
36952 * tree-sra.c (create_access_replacement): Drop under-/over-alignment
36955 2015-03-31 Dominik Vogt <vogt@linux.vnet.ibm.com>
36957 * config/s390/s390.c (s390_function_num_hotpatch_hw): Allow hotpatching
36959 (s390_reorg): Adapt to new signature of s390_function_num_hotpatch_hw.
36960 (s390_asm_output_function_label): Adapt to new signature of
36961 s390_function_num_hotpatch_hw
36962 Optimise the code generating assembler output.
36963 Add comments to assembler file.
36965 2015-03-31 Richard Biener <rguenther@suse.de>
36967 PR middle-end/65626
36968 * tree-cfgcleanup.c (fixup_noreturn_call): Only split the block
36969 of the noreturn call so it is last and cleanup_control_flow_bb
36970 can do the CFG part.
36972 2015-03-31 Ilya Enkovich <ilya.enkovich@intel.com>
36975 * ipa-chkp.c (chkp_maybe_create_clone): Don't set
36976 same_comdat_group for external symbols.
36977 * symtab.c (symtab_node::verify_symtab_nodes): Avoid
36978 infinite same_comdat_group traversal loop.
36980 2015-03-31 Jakub Jelinek <jakub@redhat.com>
36983 * Makefile.in (install-plugin): Add all gcc/*.{h,def} files
36984 automatically to $headers.
36986 2015-03-30 Jakub Jelinek <jakub@redhat.com>
36989 * ipa-utils.h (inlined_polymorphic_ctor_dtor_block_p): Declare.
36990 * ipa-polymorphic-call.c (inlined_polymorphic_ctor_dtor_block_p): New
36992 (decl_maybe_in_construction_p, noncall_stmt_may_be_vtbl_ptr_store):
36994 * ipa-prop.c (param_type_may_change_p): Likewise.
36995 * tree-ssa-live.c: Include ipa-utils.h and its dependencies.
36996 (remove_unused_scope_block_p): Add in_ctor_dtor_block
36997 argument. Before inlining, preserve
36998 inlined_polymorphic_ctor_dtor_block_p blocks and the outermost block
36999 with FUNCTION_DECL BLOCK_ABSTRACT_ORIGIN inside of them. Adjust
37001 (remove_unused_locals): Adjust remove_unused_scope_block_p caller.
37003 2015-03-27 Jan Hubicka <hubicka@ucw.cz>
37006 * ipa-inline.c (edge_badness): Base denominator on callee's
37009 2015-03-27 Martin Jambor <mjambor@suse.cz>
37012 * params.def (PARAM_IPA_CP_RECURSION_PENALTY) : New.
37013 (PARAM_IPA_CP_SINGLE_CALL_PENALTY): Likewise.
37014 * ipa-prop.h (ipa_node_params): New flags node_within_scc and
37015 node_calling_single_call.
37016 * ipa-cp.c (count_callers): New function.
37017 (set_single_call_flag): Likewise.
37018 (initialize_node_lattices): Count callers and set single_flag_call if
37020 (incorporate_penalties): New function.
37021 (good_cloning_opportunity_p): Use it, dump new flags.
37022 (propagate_constants_topo): Set node_within_scc flag if appropriate.
37023 * doc/invoke.texi (ipa-cp-recursion-penalty,
37024 ipa-cp-single-call-pentalty): Document.
37026 2015-03-27 Jan Hubicka <hubicka@ucw.cz>
37029 * symtab.c (symtab_node::get_partitioning_class): Register vars
37031 * varpool.c (symbol_table::output_variables) Do not assemble unefined
37032 decls for non-symbols.
37034 2015-03-27 H.J. Lu <hongjiu.lu@intel.com>
37037 * output.h (default_binds_local_p_2): New.
37038 * varasm.c (default_binds_local_p_2): Renamed to ...
37039 (default_binds_local_p_3): This. Don't return true on protected
37040 data symbol if protected data may be external.
37041 (default_binds_local_p): Use default_binds_local_p_3.
37042 (default_binds_local_p_1): Likewise.
37043 (default_binds_local_p_2): New.
37044 * config/i386/i386.c (TARGET_BINDS_LOCAL_P): Set to
37045 default_binds_local_p_2 if TARGET_MACHO is undefined.
37047 2015-03-27 Jakub Jelinek <jakub@redhat.com>
37050 * config/i386/i386.c (legitimize_pic_address): If base
37051 is SYMBOL_REF or LABEL_REF using %rip addressing, force
37052 it to reg to avoid PLUS of SYMBOL_REF/LABEL_REF and register.
37054 2015-03-27 Jan Hubicka <hubicka@ucw.cz>
37057 * symtab.c (symtab_node::verify_symtab_nodes): Fix verification of
37060 2015-03-27 Jan Hubicka <hubicka@ucw.cz>
37063 * cgraph.c (cgraph_update_edges_for_call_stmt_node): Fix the case
37064 of optimized out indirect call.
37065 (redirect_to_unreachable): Always build symbol table node for
37066 BUILT_IN_UNREACHABLE
37068 2015-03-27 Vladimir Makarov <vmakarov@redhat.com>
37071 * ira-costs.c (record_reg_classes): Process all constraint string
37074 2015-03-27 Bernd Schmidt <bernds@codesourcery.com>
37076 * config/c6x/c6x.md (movmisalign<mode>): Use MEM_P, not
37080 * config/c6x/constraints.md (S3): New constraint.
37081 * config/c6x/c6x.md (real_jump): Use it.
37083 2015-03-26 Jan Hubicka <hubicka@ucw.cz>
37085 PR middle-end/65595
37086 * cgraph.c (cgraph_update_edges_for_call_stmt_node): Only
37087 do redirection if the call is not optimized out.
37089 2015-03-27 Ilya Enkovich <ilya.enkovich@intel.com>
37092 * c-family/c.opt (fcheck-pointer-bounds): List supported languages.
37093 (fchkp-check-incomplete-type): Add LTO.
37094 (fchkp-zero-input-bounds-for-main): Likewise.
37095 (fchkp-first-field-has-own-bounds): Likewise.
37096 (fchkp-narrow-bounds): Likewise.
37097 (fchkp-narrow-to-innermost-array): Likewise.
37098 (fchkp-use-static-bounds): Likewise.
37099 (fchkp-use-static-const-bounds): Likewise.
37100 (fchkp-treat-zero-dynamic-size-as-infinite): Likewise.
37102 2015-03-27 Marek Polacek <polacek@redhat.com>
37104 * gimple-iterator.h (gsi_prev_nondebug): Fix typo.
37106 2015-03-27 Marek Polacek <polacek@redhat.com>
37109 * ubsan.c (ubsan_create_edge): New function.
37110 (instrument_bool_enum_load): Call it.
37111 (instrument_nonnull_arg): Likewise.
37112 (instrument_nonnull_return): Likewise.
37113 (instrument_object_size): Likewise.
37115 2015-03-26 Jan Hubicka <hubicka@ucw.cz>
37117 * lto-streamer.h (class lto_location_cache): Turn loc_cache into
37120 2015-03-26 Jan Hubicka <hubicka@ucw.cz>
37123 * lto-streamer.h (class lto_location_cache): New.
37124 (struct data_in): Add location_cache.
37125 (lto_input_location): Update prototype.
37126 (stream_input_location_now): New.
37127 * streamer-hooks.h (struct streamer_hooks): Make input_location to take
37128 pointer to location.
37129 (stream_input_location): Update.
37130 * ipa-devirt.c: Include streamer-hooks.h and lto-streamer.h
37131 (warn_odr): Apply location cache before warning.
37132 (lto_input_location): Update prototype.
37133 * gimple-streamer-in.c (input_phi, input_gimple_stmt):
37134 Use stream_input_location_now.
37135 * lto-streamer-in.c (lto_location_cache::current_cache): New static
37137 (lto_location_cache::cmp_loc): New function.
37138 (lto_location_cache::apply_location_cache): New function.
37139 (lto_location_cache::accept_location_cache): New function.
37140 (lto_location_cache::revert_location_cache): New function.
37141 (lto_location_cache::input_location): New function.
37142 (lto_input_location): Do location caching.
37143 (stream_input_location_now): New function.
37144 (input_eh_region, input_struct_function_base): Use
37145 stream_input_location_now.
37146 (lto_data_in_create): use new.
37147 (lto_data_in_delete): Use delete.
37148 * tree-streamer-in.c (unpack_ts_block_value_fields,
37149 unpack_ts_omp_clause_value_fields, streamer_read_tree_bitfields,
37150 lto_input_ts_exp_tree_pointers): Update for cached location api.
37152 2015-03-26 Jan Hubicka <hubicka@ucw.cz>
37155 * passes.def: Add pass_nothrow.
37156 * ipa-pure-const.c: (pass_data_nothrow): New.
37157 (pass_nothrow): New.
37158 (pass_nothrow::execute): New.
37159 (make_pass_nothrow): New.
37160 * tree-pass.h (make_pass_nothrow): Declare.
37162 2015-03-26 Jan Hubicka <hubicka@ucw.cz>
37164 * ipa-inline-analysis.c (redirect_to_unreachable): Be prepared for
37165 edge to change by speculation resolution or redirection.
37166 (edge_set_predicate): Likewise.
37167 (inline_summary_t::duplicate): Likewise.
37168 (remap_edge_summaries): Likewise.
37170 2015-03-26 Jan Hubicka <hubicka@ucw.cz>
37172 * ipa-inline.c (check_maybe_up, check_maybe_down, check_match):
37174 (can_inline_edge_p): Relax option matching for always inline functions.
37176 2015-03-26 Uros Bizjak <ubizjak@gmail.com>
37179 * config/i386/sse.md (avx512dq_vextract<shuffletype>64x2_1_maskm):
37180 Check operand 4 and operand 0 for equality.
37181 (avx512f_vextract<shuffletype>32x4_1_maskm):
37182 Check operand 6 and operand 0 for equality.
37183 (vec_extract_lo_<mode>_maskm): Check operand 2 and operand 0
37185 (vec_extract_hi_<mode>_maskm): Ditto.
37187 2015-03-26 Jan Hubicka <hubicka@ucw.cz>
37189 * cgraph.c (cgraph_update_edges_for_call_stmt_node): Do not bring
37190 dead calls back to live.
37191 (cgraph_edge::verify_count_and_frequency): Move cgraph/cfg frequency
37193 (cgraph_node::verify_node): ... here; verify only callee edges,
37195 * cif-code.def (CILK_SPAWN): New code.
37197 2015-03-26 Jan Hubicka <hubicka@ucw.cz>
37199 * ipa-inline-analysis.c (redirect_to_unreachable): New function.
37200 (edge_set_predicate): Use it to mark unreachable edges.
37201 (inline_summary_t::duplicate): Remove unnecesary code.
37202 (remap_edge_summaries): Likewise.
37203 (dump_inline_summary): Report contains_cilk_spawn.
37204 (compute_inline_parameters): Compute contains_cilk_spawn.
37205 (inline_read_section, inline_write_summary): Stream
37206 contains_cilk_spawn.
37207 * ipa-inline.c (can_inline_edge_p): Do not touch
37208 DECL_STRUCT_FUNCTION that may not be available;
37209 use CIF_CILK_SPAWN for cilk; fix optimization attribute checks;
37210 remove check for callee_fun->can_throw_non_call_exceptions and
37211 replace it by optimization attribute check; check for flag_exceptions.
37212 * ipa-inline-transform.c (inline_call): Maintain
37213 DECL_FUNCTION_PERSONALITY
37214 * ipa-inline.h (inline_summary): Add contains_cilk_spawn.
37216 2015-03-26 Jakub Jelinek <jakub@redhat.com>
37218 PR tree-optimization/65551
37219 * tree-ssa-sccvn.c (fully_constant_vn_reference_p): Use
37220 TYPE_PRECISION only for INTEGRAL_TYPE_P types.
37222 2015-03-26 Richard Biener <rguenther@suse.de>
37224 PR middle-end/65555
37225 * tree-cfg.c (verify_gimple_call): Do not require a call to
37226 have no LHS if it wasn't recognized as control altering yet.
37228 2015-03-26 Jakub Jelinek <jakub@redhat.com>
37230 PR tree-optimization/64715
37231 * passes.def: Add another instance of pass_object_sizes before ccp1.
37232 * tree-object-size.c (pass_object_sizes::execute): In
37233 first_pass_instance, only handle __bos (, 1) and __bos (, 3)
37234 calls, and keep the call in the IL, as {MIN,MAX}_EXPR of the
37235 __bos result and the computed constant. Remove redundant
37236 checks, obsoleted by gimple_call_builtin_p test.
37238 * var-tracking.c (variable_tracking_main_1): Don't track
37239 variables for targetm.no_register_allocation targets.
37241 2015-03-26 Oleg Endo <olegendo@gcc.gnu.org>
37243 * config/sh/t-linux (DEFAULT_ENDIAN, MULTILIB_EXCEPTIONS): Remove.
37244 * config/sh/t-sh (MULTILIB_EXCEPTIONS): Handle default endian.
37246 2015-03-25 Michael Meissner <meissner@linux.vnet.ibm.com>
37249 * config/rs6000/rs6000.md (extenddftf2_fprs): On VSX systems use
37250 XXLXOR to create 0.0. On pre-VSX systems make sure the constant
37251 0.0 is correctly setup.
37252 (extenddftf2_internal): Likewise.
37254 2015-03-25 Sebastian Pop <s.pop@samsung.com>
37256 PR tree-optimization/65177
37257 * tree-ssa-threadupdate.c (verify_seme): Renamed verify_jump_thread.
37259 (duplicate_seme_region): Renamed duplicate_thread_path. Redirect all
37260 edges not adjacent on the path to the original code.
37262 2015-03-25 Uros Bizjak <ubizjak@gmail.com>
37265 * doc/install.texi (Building a native compiler): Document new
37266 bootstrap-lto-noplugin configuration. Mention that bootstrap-lto
37267 configuration assumes that the host supports the linker plugin.
37269 2015-03-25 Ilya Enkovich <ilya.enkovich@intel.com>
37272 * tree-chkp.c (chkp_add_bounds_to_call_stmt): Set static
37273 chain for generated call.
37275 2015-03-25 Richard Biener <rguenther@suse.de>
37277 * passes.c (pass_manager::execute_early_local_passes): Guard
37278 execution of pass_chkp_instrumentation_passes with
37279 flag_check_pointer_bounds.
37280 (pass_chkp_instrumentation_passes::gate): Likewise.
37282 2015-03-25 Martin Liska <mliska@suse.cz>
37284 PR tree-optimization/65538
37285 * symbol-summary.h (function_summary::~function_summary):
37286 Relese memory for allocated summaries.
37287 (function_summary::release): New function.
37289 2015-03-25 Jakub Jelinek <jakub@redhat.com>
37292 * lto-streamer-out.c (DFS::worklist): New struct.
37293 (DFS::worklist_vec): New data member.
37294 (DFS::next_dfs_num): Remove.
37295 (DFS::DFS): Rewritten using worklist instead of recursion,
37296 using most of code from DFS::DFS_write_tree.
37297 (DFS::DFS_write_tree_body): Remove SINGLE_P argument, don't
37298 pass it to DFS_write_tree calls.
37299 (DFS::DFS_write_tree): Remove SINGLE_P argument, after
37300 quick initial checks push it into worklist_vec and return.
37302 2015-03-25 Richard Biener <rguenther@suse.de>
37304 PR middle-end/65519
37305 * genmatch.c (expr::gen_transform): Re-write to avoid
37306 using gimple_build.
37308 2015-03-25 Bin Cheng <bin.cheng@arm.com>
37310 * doc/sourcebuild.texi (arm_tune_string_ops_prefer_neon): New.
37312 2015-03-25 Bin Cheng <bin.cheng@arm.com>
37314 * config/arm/arm.opt (print_tune_info): New option.
37315 * config/arm/arm.c (arm_print_tune_info): New function.
37316 (arm_file_start): Call arm_print_tune_info.
37317 * config/arm/arm-protos.h (struct tune_params): Add comment.
37318 * doc/invoke.texi (@item -mprint-tune-info): New item.
37319 (-mtune): mention it in ARM Option Summary.
37321 2015-03-25 DJ Delorie <dj@redhat.com>
37323 * config/rl78/rl78.c (rl78_print_operand_1): Move 'p' test to
37326 2015-03-24 Jan Hubicka <hubicka@ucw.cz>
37327 Martin Liska <mliska@suse.cz>
37329 * ipa-icf-gimple.h (return_with_result): Add missing colon to dump.
37330 * ipa-icf.c (sem_function::get_hash): Hash new declaration properties.
37331 (sem_item::add_type): New function.
37332 (sem_function::hash_stmt): Add TREE_TYPE of gimple_op.
37333 (sem_function::compare_polymorphic_p): Do not consider indirect calls.
37334 (sem_item_optimizer::update_hash_by_addr_refs): Add ODR type to hash.
37335 (sem_function::equals_wpa): Fix typo.
37336 * ipa-icf.h (sem_item::add_type): New function.
37337 (symbol_compare_hashmap_traits): Replace hashing of pointer with symbol
37340 2015-03-24 Jakub Jelinek <jakub@redhat.com>
37342 PR tree-optimization/65533
37343 * tree-vect-slp.c (vect_build_slp_tree): Before re-trying
37344 with swapped operands, call vect_free_slp_tree on
37345 SLP_TREE_CHILDREN of child and truncate the SLP_TREE_CHILDREN
37348 2015-03-24 Richard Biener <rguenther@suse.de>
37350 PR middle-end/65517
37351 * tree-cfg.c (remove_edge_and_dominated_blocks): Mark loops
37352 for fixup if necessary.
37354 2015-03-23 Sandra Loosemore <sandra@codesourcery.com>
37356 * doc/extend.texi (Function Attributes): Add @cindex entries
37357 for all attributes and regularize their format. Delete text
37358 about long-obsolete 68HC11 and 68HC12 targets. Move misplaced
37359 information about "eightbit_data", "tiny_data", and "model"
37360 variable attributes to the Variable Attributes section. Fix
37361 some obvious typos and copy-editing issues.
37362 (Variable Attributes, Type Attributes): Likewise add/fix
37363 @cindex entries for all attributes.
37365 2015-03-23 Jakub Jelinek <jakub@redhat.com>
37368 * tree-chkp.c (chkp_build_returned_bound): Ignore
37369 ERF_RETURNS_ARG calls if they have fewer than needed arguments.
37371 2015-03-23 Oleg Endo <olegendo@gcc.gnu.org>
37374 * config/sh/predicates.md (simple_mem_operand,
37375 displacement_mem_operand): Add test for reg.
37376 (short_displacement_mem_operand): Test for displacement_mem_operand
37377 before invoking sh_disp_addr_displacement.
37378 * config/sh/constraints.md (Sdd, Sra): Simplify.
37379 * config/sh/sync.md (atomic_mem_operand_0, atomic_mem_operand_1):
37380 Remove redundant displacement_mem_operand tests.
37382 2015-03-23 Georg-Johann Lay <avr@gjlay.de>
37385 * config/avr/driver-avr.c (avr_devicespecs_file): Allow to specify
37386 the same -mmcu=MCU more than once.
37388 2015-03-23 Jakub Jelinek <jakub@redhat.com>
37391 * ipa-devirt.c: Remove duplicate demangle.h include.
37394 * config/i386/i386.c (ix86_copy_addr_to_reg): Set REG_POINTER
37396 (expand_set_or_movmem_prologue_epilogue_by_misaligned_moves): Set
37397 REG_POINTER on *destptr after adjusting it for prologue size.
37400 * ipa-icf.c (sem_item::update_hash_by_addr_refs): Hash
37401 ultimate_alias_target ()->order ints instead of
37402 ultimate_alias_target () pointers.
37404 2015-03-23 Richard Biener <rguenther@suse.de>
37406 PR tree-optimization/65518
37407 * tree-vect-stmts.c (vectorizable_load): Reject single-element
37408 interleaving cases we generate absymal code for.
37410 2015-03-23 Richard Biener <rguenther@suse.de>
37412 PR tree-optimization/65494
37413 * tree-vect-slp.c (vect_build_slp_tree): Do not (re-)allocate
37415 (vect_analyze_slp_instance): But do that here, always and once.
37417 2015-03-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
37419 * expmed.c (synth_mult): Fix comment about multiplying by T-1 and
37420 adding T or multiplying by T+1 and subracting T.
37422 2015-03-22 Jeff Law <law@redhat.com>
37424 PR rtl-optimization/64317
37425 * Makefile.in (OBJS): Add gcse-common.c
37426 * gcse.c: Include gcse-common.h
37427 (struct modify_pair_s): Move structure definition to gcse-common.h
37428 (compute_transp): Move function to gcse-common.c.
37429 (canon_list_insert): Similarly.
37430 (record_last_mem_set_info): Break out some code and put it into
37431 gcse-common.c. Call into the new common code.
37432 (compute_local_properties): Pass additional arguments to compute_transp.
37433 * postreload-gcse.c: Include gcse-common.h and df.h
37434 (modify_mem_list_set, blocks_with_calls): New variables.
37435 (modify_mem_list, canon_modify_mem_list, transp): Likewise.
37436 (get_bb_avail_insn): Pass in the expression index too.
37437 (alloc_mem): Allocate memory for the new bitmaps and lists.
37438 (free_mem): Free memory for the new bitmaps and lists.
37439 (insert_expr_in_table): Record a bitmap index for each entry we
37441 (record_last_mem_set_info): Call into common code in gcse-common.c.
37442 (get_bb_avail_insn): If no available insn was found in the requested
37443 BB. If BB has a single predecessor, see if the expression is
37444 transparent in BB and available in that single predecessor.
37445 (compute_expr_transp): New wrapper for compute_transp.
37446 (eliminate_partially_redundant_load): Pass expression's bitmap_index
37447 to get_bb_avail_insn. Compute next_pred_bb_end a bit later.
37448 (gcse_after_reload_main): If there are elements in the hash table,
37449 then compute transparency for all the elements in the hash table.
37450 * gcse-common.h: New file.
37451 * gcse-common.c: New file.
37453 2015-03-22 Sandra Loosemore <sandra@codesourcery.com>
37455 * doc/cpp.texi (Search Path): Hyphenate "command-line" when used
37457 (System Headers): Likewise.
37459 (Traditional macros): Likewise.
37460 (Invocation): Likewise.
37461 (Option Index): Likewise.
37462 * doc/cppopts.texi (-M): Likewise.
37463 (-finput-charset): Likewise.
37464 (--help): Likewise.
37465 * doc.invoke.texi (AVR Options): Likewise.
37466 (V850 Options): Likewise.
37468 2015-03-22 Jan Hubicka <hubicka@ucw.cz>
37471 * ipa-devirt.c: Include demangle.h
37472 (odr_type_d): Add field rtti_broken.
37473 (odr_subtypes_equivalent_p): Do not require name to match.
37474 (compare_virtual_tables): Fix typo; if type already has ODR violation,
37475 bypass the tests; be ready for function referneces in vtables that are
37476 not DECL_VIRTUAL; make warnings to be OPT_Wodr.
37477 (warn_odr): Give up for nameless types.
37478 (warn_types_mismatch): Report mismatch in mangled names;
37479 report mismatch in anonymous namespaces; look into component types to
37480 give useful error; report when mismatch is dragged in from other ODR
37482 (odr_types_equivalent_p): Match types for being polymorphic; avoid
37483 duplicated diagnostics.
37484 (add_type_duplicate): Reorder checks so more informative ones come
37485 first; fix typo; do not output "the extra base is defined here" when
37487 (BINFO_N_BASE_BINFOS): Relax sanity check.
37489 2015-03-22 Martin Liska <mliska@suse.cz>
37490 Jakub Jelinek <jakub@redhat.com>
37492 * config/i386/i386.c (def_builtin): Set deferred_isa_values for
37493 masks that can potentially include a builtin.
37494 (ix86_add_new_builtins): Introduce fast filter for isa values
37495 that cannot trigger builtin inclusion.
37497 2015-03-22 Martin Liska <mliska@suse.cz>
37499 * ipa-icf.c (sem_item::update_hash_by_addr_refs): New function.
37500 (sem_item::update_hash_by_local_refs): Likewise.
37501 (sem_variable::get_hash): Empty line is fixed.
37502 (sem_item_optimizer::execute): Include adding of hash references.
37503 (sem_item_optimizer::update_hash_by_addr_refs): New function.
37504 (sem_item_optimizer::build_hash_based_classes): Use local hash.
37505 * ipa-icf.h (sem_item::update_hash_by_addr_refs): New function.
37506 (sem_item::update_hash_by_local_refs): Likewise.
37508 2015-03-20 Jan Hubicka <hubicka@ucw.cz>
37511 * ipa-comdats.c (enqueue_references): Walk through thunks.
37512 (ipa_comdats): Likewise.
37513 (set_comdat_group_1): New function.
37515 2015-03-20 Jan Hubicka <hubicka@ucw.cz>
37518 * ipa-devirt.c (add_type_duplicate): Prevail polymorphic type over
37521 2015-03-22 Dave Korn <dave.korn.cygwin@gmail.com>
37522 Gerald Pfeifer <gerald@pfeifer.com>
37524 * doc/contrib.texi (Contributors): Update entry for Danny Smith.
37526 2015-03-21 Chung-Lin Tang <cltang@codesourcery.com>
37527 Sandra Loosemore <sandra@codesourcery.com>
37529 * config/nios2/nios2-protos.h (nios2_adjust_call_address): Adjust
37530 function parameter declaration.
37531 * config/nios2/nios2.md (call,call_value,sibcall,sibcall_value):
37532 Update arguments to nios2_adjust_call_address().
37533 (sibcall_internal): Rename from *sibcall.
37534 (sibcall_value_internal): Rename from *sibcall_value.
37535 * config/nios2/nios2.c (nios2_emit_add_constant): New function.
37536 (nios2_large_got_address): Add target temp reg parameter.
37537 (nios2_got_address): Adjust call to nios2_large_got_address, add
37538 force_reg around it.
37539 (nios2_load_pic_address): Add target temp reg parameter, replace call
37540 to nios2_got_address with corresponding code.
37541 (nios2_legitimize_constant_address): Update call to
37542 nios2_load_pic_address.
37543 (nios2_adjust_call_address): Add temp reg parameter, update PIC case
37544 to use temp reg for PIC loading purposes.
37545 (nios2_asm_output_mi_thunk): Implement TARGET_ASM_OUTPUT_MI_THUNK.
37546 (TARGET_ASM_CAN_OUTPUT_MI_THUNK): Define.
37547 (TARGET_ASM_OUTPUT_MI_THUNK): Likewise.
37549 2015-03-21 Sandra Loosemore <sandra@codesourcery.com>
37551 * doc/invoke.texi (-fno-diagnostics-show-caret): Fix
37552 usage of "the @option{...}".
37553 (-Wopenmp-simd): Likewise.
37554 (-fsanitize-recover): Likewise.
37555 (-fsanitize-undefined-trap-on-error): Likewise.
37557 (tracer-dynamic-coverage-feedback): Likewise.
37558 (reorder-block-duplicate-feedback): Likewise.
37559 (loop-unroll-jam-size): Likewise.
37562 (-mabs=legacy): Likewise.
37563 (-mupper-regs-df): Likewise.
37564 (-mupper-regs-sf): Likewise.
37565 (-mpointers-to-nested-functions): Likewise.
37567 2015-03-21 Sandra Loosemore <sandra@codesourcery.com>
37569 * doc/extend.texi (Cilk Plus Builtins): Add markup.
37571 2015-03-21 Sandra Loosemore <sandra@codesourcery.com>
37573 * doc/invoke.texi (-fcheck-pointer-bounds): Copy-edit, add
37574 additional index entries and cross-references.
37575 (-fchkp-check-incomplete-type): Likewise.
37576 (-fchkp-first-field-has-own-bounds): Likewise.
37577 (-fchkp-narrow-to-innermost-array): Likewise.
37578 (-fchkp-use-fast-string-functions): Likewise.
37579 (-fchkp-use-nochk-string-functions): Likewise.
37580 (-fchkp-use-static-const-bounds): Likewise.
37581 (-fchkp-treat-zero-dynamic-size-as-infinite): Likewise.
37582 (-fchkp-instrument-marked-only): Likewise.
37583 (-fchkp-use-wrappers): Likewise.
37584 (-static-libmpx): Likewise.
37585 (-static-libmpxwrappers): Likewise.
37586 * doc/extend.texi (bnd_legacy): Likewise.
37587 (bnd_instrument): Likewise.
37588 (bnd_variable_size): Likewise.
37589 (Pointer Bounds Checker builtins): Likewise.
37591 2015-03-21 Tom de Vries <tom@codesourcery.com>
37593 PR tree-optimization/65458
37594 * cgraph.c (cgraph_node::dump): Handle parallelized_function field.
37595 * cgraph.h (cgraph_node): Add parallelized_function field.
37596 * lto-cgraph.c (lto_output_node): Write parallelized_function field.
37597 (input_overwrite_node): Read parallelized_function field.
37598 * omp-low.c (expand_omp_taskreg, finalize_task_copyfn): Set
37599 parallelized_function on cgraph_node for child_fn.
37600 * tree-parloops.c: Add include of plugin-api.h, ipa-ref.h and cgraph.h.
37601 Remove include of gt-tree-parloops.h.
37602 (parallelized_functions): Remove static variable.
37603 (parallelized_function_p): Rewrite using parallelized_function field of
37605 (create_loop_fn): Remove adding to parallelized_functions.
37606 * Makefile.in (GTFILES): Remove tree-parloops.c
37608 2015-03-20 Vladimir Makarov <vmakarov@redhat.com>
37610 PR rtl-optimization/64366
37611 * lra.c (lra_update_insn_regno_info): Consider regs in
37612 CALL_INSN_FUNCTION_USAGE memory.
37614 2015-03-20 Richard Biener <rguenther@suse.de>
37616 PR middle-end/64715
37617 * tree-chrec.c (chrec_fold_poly_cst): Use useless_type_conversion_p
37618 for type comparison and gcc_checking_assert.
37619 (chrec_fold_plus_poly_poly): Likewise.
37620 (chrec_fold_multiply_poly_poly): Likewise.
37621 (chrec_convert_1): Likewise.
37622 * gimplify.c (gimplify_expr): Remove premature folding of
37623 &X + CST to &MEM[&X, CST].
37625 2015-03-20 Jan Hubicka <hubicka@ucw.cz>
37627 * ipa-inline.c (can_inline_edge_p): Short circuit if inline_failed
37629 (ipa_inline): Recompute inline_failed codes.
37630 * cif-code.def (FUNCTION_NOT_OPTIMIZED, REDEFINED_EXTERN_INLINE,
37631 USES_COMDAT_LOCAL, ATTRIBUTE_MISMATCH, UNREACHABLE): Declare as
37634 2015-03-20 Uros Bizjak <ubizjak@gmail.com>
37636 PR rtl-optimization/60851
37637 * recog.c (constrain_operands): Accept a pseudo register before reload
37638 for LRA enabled targets.
37640 2015-03-19 Michael Meissner <meissner@linux.vnet.ibm.com>
37643 * config/rs6000/predicates.md (easy_fp_constant): Remove special
37644 -ffast-math handling that kept non-0 constants live in the RTL
37645 until reload. Remove logic testing the number of instructions it
37646 took to create a constant in a GPR that was never used, due to a
37647 test for soft-float earlier.
37648 (memory_fp_constant): Delete, no longer used.
37650 * config/rs6000/rs6000.md (mov<MODE>_hardfloat): Remove
37651 alternatives for loading non-0 constants into GPRs for hard
37652 floating point that is no longer needed due to changes in
37653 easy_fp_constant. Add support for loading 0.0 into GPRs.
37654 (mov<mode>_hardfloat32): Likewise.
37655 (mov<mode>_hardfloat64): Likewise.
37656 (mov<mode>_64bit_dm): Likewise.
37657 (movtd_64bit_nodm): Likewise.
37658 (pre-reload move FP constant define_split): Delete define_split,
37659 since it is no longer used.
37660 (extenddftf2_internal): Remove GHF constraints that are not valid
37663 2015-03-19 Vladimir Makarov <vmakarov@redhat.com>
37665 PR rtl-optimization/63491
37666 * lra-constraints.c (check_and_process_move): Use src instead of
37667 sreg. Remove some dead code.
37669 2015-03-19 Jan Hubicka <hubicka@ucw.cz>
37672 * ipa-icf.c (sem_function::merge): Do not merge DECL_EXTERNAL symbols.
37673 (sem_variable::merge): Likewise.
37675 2015-03-19 Martin Liska <mliska@suse.cz>
37678 * cgraphunit.c (cgraph_node::create_wrapper): Correctly reset
37679 all fields of cgraph_thunk_info.
37681 2015-03-19 Ilya Enkovich <ilya.enkovich@intel.com>
37683 * ipa-chkp.c (chkp_maybe_create_clone): Don't try to
37684 clone instrumented thunks.
37686 2015-03-19 Richard Biener <rguenther@suse.de>
37689 2015-03-10 Richard Biener <rguenther@suse.de>
37691 PR middle-end/63155
37692 * tree-ssa-coalesce.h (verify_ssa_coalescing): Declare.
37693 * tree-ssa-coalesce.c: Include timevar.h.
37694 (attempt_coalesce): Handle graph being NULL.
37695 (coalesce_partitions): Call verify_ssa_coalescing if ENABLE_CHECKING.
37696 Split out abnormal coalescing to ...
37697 (perform_abnormal_coalescing): ... this function.
37698 (coalesce_ssa_name): Perform abnormal coalescing without computing
37700 (verify_ssa_coalescing_worker): New function.
37701 (verify_ssa_coalescing): Likewise.
37703 2015-03-19 Bernd Edlinger <bernd.edlinger@hotmail.de>
37704 Jakub Jelinek <jakub@redhat.com>
37707 * tsan.c (instrument_gimple): Clear tail call flag on
37710 2015-03-19 Jakub Jelinek <jakub@redhat.com>
37713 * ipa-split.c (find_return_bb): Allow TSAN_FUNC_EXIT internal
37714 call in the return bb.
37715 (find_split_points): Add RETURN_BB argument, don't call
37717 (split_function): Likewise. Add ADD_TSAN_FUNC_EXIT argument,
37718 if true append TSAN_FUNC_EXIT internal call after the call to
37719 the split off function.
37720 (execute_split_functions): Call find_return_bb here.
37721 Don't optimize if TSAN_FUNC_EXIT is found in unexpected places.
37722 Adjust find_split_points and split_function calls.
37724 2015-03-18 DJ Delorie <dj@redhat.com>
37726 * config/rl78/rl78-virt.md (andqi3_virt): Allow far operands.
37727 (iorqi3_virt): Likewise.
37729 2015-03-18 Tom de Vries <tom@codesourcery.com>
37731 * tree-parloops.c (parallelize_loops): Make static.
37732 * tree-parloops.h (parallelize_loops): Remove extern declaration.
37734 2015-03-18 Andrew Stubbs <ams@codesourcery.com>
37736 PR middle-end/64491
37738 2014-11-20 Andrew Stubbs <ams@codesourcery.com>
37740 * tree-ssa-loop-niter.c (maybe_lower_iteration_bound): Warn if a loop
37741 condition would be removed due to undefined behaviour.
37743 2015-03-18 Martin Liska <mliska@suse.cz>
37746 * cgraph.c (cgraph_node::get_create): Remove unnecessary
37747 xstrdup_for_dump wrapper.
37748 * ipa-icf.c (sem_item::dump): Use symtab_node::name instead of
37750 (sem_function::equals): Wrap symtab_node::name and symtab_node::asm_name
37751 with xstrdup_for_dump.
37752 (sem_variable::equals): Likewise.
37753 (sem_item_optimizer::read_section): Use symtab_node::name instead of
37755 (sem_item_optimizer::parse_funcs_and_vars): Likewise.
37756 (sem_item_optimizer::merge_classes): Wrap symtab_node::name and
37757 symtab_node::asm_name with xstrdup_for_dump.
37758 (congruence_class::dump): Use symtab_node::name instead of
37760 * ipa-icf.h (symtab_node::name): Remove.
37761 (symtab_node::asm_name): Likewise.
37763 2015-03-18 Jakub Jelinek <jakub@redhat.com>
37765 PR tree-optimization/65450
37766 * tree-vect-data-refs.c (vect_duplicate_ssa_name_ptr_info): New
37768 (vect_create_addr_base_for_vector_ref, vect_create_data_ref_ptr): Use
37769 it instead of duplicate_ssa_name_ptr_info.
37772 * doc/invoke.texi: Add knl as x86 -march=/-mtune= CPU type.
37774 2015-03-18 Richard Biener <rguenther@suse.de>
37776 * tree-data-ref.h (struct access_matrix): Remove.
37777 (AM_LOOP_NEST, AM_NB_INDUCTION_VARS, AM_PARAMETERS, AM_MATRIX,
37778 AM_NB_PARAMETERS, AM_CONST_COLUMN_INDEX, AM_NB_COLUMNS,
37779 AM_GET_SUBSCRIPT_ACCESS_VECTOR, AM_GET_ACCESS_MATRIX_ELEMENT): Likewise.
37780 (am_vector_index_for_loop): Likewise.
37781 (struct data_reference): Remove access_matrix member.
37782 (DR_ACCESS_MATRIX): Remove.
37783 (lambda_vector_new): Add comment.
37784 (lambda_matrix_new): Use XOBNEWVEC.
37786 2015-03-18 Richard Biener <rguenther@suse.de>
37788 * tree-ssa-loop-ch.c (pass_data_ch): Remove TODO_cleanup_cfg.
37789 (pass_ch::execute): Cleanup the CFG only if we did sth.
37790 * tree-vect-generic.c (pass_data_lower_vector): Remove TODO_cleanup_cfg.
37792 2015-03-18 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
37794 * expmed.c (synth_mult): Use std::swap instead of manually
37795 swapping algorithms.
37797 2015-03-18 Jakub Jelinek <jakub@redhat.com>
37800 * config/i386/sse.md (movsi/movdi -> vec_extract_*_0 splitter): New.
37802 2015-03-16 Georg-Johann Lay <avr@gjlay.de>
37805 * config/avr/avr.opt (-nodevicelib): New option.
37806 * doc/invoke.texi (AVR Options): Document it.
37807 * config/avr/avrlibc.h (LIB_SPEC, LIBGCC_SPEC) [avr1]: Don't link
37808 libgcc.a, libc.a, libm.a.
37809 * config/avr/specs.h: Same.
37810 * config/avr/gen-avr-mmcu-specs.c (print_mcu): Don't print specs
37811 which don't (directly) depend on the device. Print more help.
37812 (*avrlibc_devicelib) [-nodevicelib]: Don't link libdev.a.
37813 (*cpp): Don't define __AVR_DEV_LIB_NAME__.
37814 * config/avr/driver-avr.c: Remove -nodevicelib from option list in
37816 (avr_devicespecs_file): Use suffix "%s" instead of absolute path
37817 for specs file name.
37818 * config/avr/avr-arch.h (avr_mcu_t) [.library_name]: Remove.
37819 * config/avr/avr-mcus.def: Adjust initializers and comments.
37821 2015-03-16 Jan Hubicka <hubicka@ucw.cz>
37823 * tree-sra.c (ipa_sra_preliminary_function_checks): Use
37824 DECL_ONE_ONLY to check if decl is one only.
37825 * ipa-split.c (consider_split): Limit splitt of one only functions.
37827 2015-03-16 Jakub Jelinek <jakub@redhat.com>
37829 PR tree-optimization/65427
37830 * tree-vect-generic.c (do_cond, expand_vector_scalar_condition): New
37832 (expand_vector_operations_1): Handle BLKmode vector COND_EXPR.
37834 2015-03-16 Marek Polacek <polacek@redhat.com>
37836 * cgraph.h (add_new_static_var): Remove declaration.
37837 * varpool.c (add_new_static_var): Remove function.
37839 2015-03-16 Jakub Jelinek <jakub@redhat.com>
37841 * omp-low.c (expand_omp_target): Use auto_vec<tree, 11>
37842 instead of vec<tree> * with vec_alloc and release for args.
37845 PR middle-end/65431
37846 * omp-low.c (delete_omp_context): Only splay_tree_delete
37847 reduction_map in GIMPLE_OMP_TARGET is_gimple_omp_offloaded
37848 is_gimple_omp_oacc contexts. Don't look at ctx->outer.
37850 2015-03-16 Max Ostapenko <m.ostapenko@partner.samsung.com>
37853 * cfgexpand.c (align_base): New function.
37854 (alloc_stack_frame_space): Call it.
37855 (expand_stack_vars): Align prev_frame to be sure
37856 data->asan_vec elements aligned properly.
37858 2015-03-16 Eric Botcazou <ebotcazou@adacore.com>
37860 PR middle-end/65409
37861 * expr.c (store_field): Do not do a direct block copy if the source is
37862 a PARALLEL with BLKmode.
37864 2015-03-16 Tom de Vries <tom@codesourcery.com>
37866 PR middle-end/65414
37868 2015-03-12 Tom de Vries <tom@codesourcery.com>
37870 PR rtl-optimization/64895
37871 * lra-lives.c (check_pseudos_live_through_calls): Use
37872 actual_call_used_reg_set instead of call_used_reg_set, if available.
37874 2015-03-16 Alan Modra <amodra@gmail.com>
37877 * config/rs6000/rs6000.md (bswapdi2): Remove one scratch reg.
37878 Modify Z->r bswapdi splitter to use dest in place of scratch.
37879 In r->Z and Z->r bswapdi splitter rename word_high, word_low
37880 to word1, word2 and rearrange logic to suit.
37881 (bswapdi2_64bit): Remove early clobber on Z->r alternative.
37882 (bswapdi2_ldbrx): Likewise. Remove '??' on r->r.
37883 (bswapdi2_32bit): Remove early clobber on Z->r alternative.
37884 Add one '?' on r->r. Modify Z->r splitter to avoid need for
37887 2015-03-14 Jakub Jelinek <jakub@redhat.com>
37889 PR tree-optimization/65369
37890 * tree-vect-stmts.c (vectorizable_load) <case dr_explicit_realign>:
37891 Set bump to vs * TYPE_SIZE_UNIT (elem_type) - 1 instead of
37892 (vs - 1) * TYPE_SIZE_UNIT (elem_type).
37894 PR tree-optimization/65418
37895 * tree-ssa-reassoc.c (extract_bit_test_mask): If there
37896 are casts in the first PLUS_EXPR operand, ensure tbias and
37897 *totallowp are in the inner type.
37899 PR rtl-optimization/65401
37900 * combine.c (rtx_equal_for_field_assignment_p): Add widen_x
37901 argument. If true, adjust_address_nv of x with big-endian
37902 correction for the mode widening to GET_MODE (y).
37903 (make_field_assignment): Don't do MEM mode widening here.
37904 Use MEM_P instead of GET_CODE == MEM.
37906 2015-03-13 Ilya Verbin <ilya.verbin@intel.com>
37908 * varpool.c (varpool_node::get_create): Don't set 'offloadable' flag for
37909 the external decls.
37911 2015-03-13 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
37914 * config/arm/arm.c (arm_gen_constant, AND case): Use
37915 ARM_SIGN_EXTEND when constructing AND mask.
37917 2015-03-13 Thomas Preud'homme <thomas.preudhomme@arm.com>
37919 * graph.c (print_graph_cfg): Make function names visible and append
37920 parenthesis to it. Also make groups of basic blocks belonging to the
37921 same function visible.
37923 2015-03-12 Richard Biener <rguenther@suse.de>
37925 PR middle-end/44563
37926 * tree-inline.c (gimple_expand_calls_inline): Walk BB backwards
37927 to avoid quadratic behavior with inline expansion splitting blocks.
37928 * tree-cfgcleanup.c (cleanup_tree_cfg_bb): Do not merge block
37929 with the successor if the predecessor will be merged with it.
37930 * tree-cfg.c (gimple_can_merge_blocks_p): We can't merge the
37931 entry block with its successor.
37933 2015-03-13 Richard Biener <rguenther@suse.de>
37935 PR middle-end/44563
37936 * tree-cfgcleanup.c (split_bb_on_noreturn_calls): Remove.
37937 (cleanup_tree_cfg_1): Do not call it.
37938 (execute_cleanup_cfg_post_optimizing): Fixup the CFG here.
37939 (fixup_noreturn_call): Mark the stmt as control altering.
37940 * tree-cfg.c (execute_fixup_cfg): Do not dump the function
37942 (pass_data_fixup_cfg): Produce a dump file.
37943 * tree-ssa-dom.c: Include tree-cfgcleanup.h.
37944 (need_noreturn_fixup): New global.
37945 (pass_dominator::execute): Fixup queued noreturn calls.
37946 (optimize_stmt): Queue calls that became noreturn for fixup.
37947 * tree-ssa-forwprop.c (pass_forwprop::execute): Likewise.
37948 * tree-ssa-pre.c: Include tree-cfgcleanup.h.
37949 (el_to_fixup): New global.
37950 (eliminate_dom_walker::before_dom_childre): Queue calls that
37951 became noreturn for fixup.
37952 (eliminate): Fixup queued noreturn calls.
37953 * tree-ssa-propagate.c: Include tree-cfgcleanup.h.
37954 (substitute_and_fold_dom_walker): New member stmts_to_fixup.
37955 (substitute_and_fold_dom_walker::before_dom_children): Queue
37956 alls that became noreturn for fixup.
37957 (substitute_and_fold): Fixup queued noreturn calls.
37959 2015-03-12 Jan Hubicka <hubicka@ucw.cz>
37961 * ipa-icf.c (sem_function::equals_wpa): Match CXX_CONSTRUCTOR_P
37962 and CXX_DESTURCTOR_P. For consutrctors match ODR type of class they
37963 are building; for methods check ODR type of class they belong to if
37964 they may lead to a polymorphic call.
37965 (sem_function::compare_polymorphic_p): Be bit smarter about testing
37966 when function may lead to a polymorphic call.
37967 (sem_function::compare_type_list): Remove.
37968 (sem_variable::equals): Update use of compatible_types_p.
37969 (sem_variable::parse_tree_refs): Remove.
37970 (sem_item_optimizer::filter_removed_items): Do not filter out CXX
37972 * ipa-icf-gimple.c (func_checker::compare_decl): Do polymorphic
37974 (func_checker::compatible_polymorphic_types_p): Break out from ...
37975 (unc_checker::compatible_types_p): ... here.
37976 * ipa-icf-gimple.h (func_checker::compatible_polymorphic_types_p):
37978 (unc_checker::compatible_types_p): Update.
37979 * ipa-icf.h (compare_type_list, parse_tree_refs, compare_sections):
37982 2015-03-12 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
37984 PR rtl-optimization/65235
37985 * simplify-rtx.c (simplify_binary_operation_1, VEC_SELECT case):
37986 When first element of vec_concat is const_int, calculate its size
37987 using second element.
37989 2015-03-12 Richard Biener <rguenther@suse.de>
37991 PR middle-end/65270
37992 * fold-const.c (operand_equal_p): Fix ordering of resetting
37993 OEP_ADDRESS_OF and checking for it in the [TARGET_]MEM_REF case.
37995 2015-03-12 Dominik Vogt <vogt@linux.vnet.ibm.com>
37997 * config/s390/s390.c (s390_reorg): Move code to output nops after label
37999 (s390_asm_output_function_label): Likewise.
38000 * config/s390/s390.c (s390_asm_output_function_label):
38001 Fix function label alignment with -mhtopatch.
38002 * config/s390/s390.md ("unspecv"): New values UNSPECV_NOP_2_BYTE,
38003 UNSPECV_NOP_4_BYTE and UNSPECV_NOP_6_BYTE
38004 ("nop_2_byte"): New define_insn.
38005 ("nop_4_byte"): Likewise.
38006 ("nop_6_byte"): Likewise.
38007 * doc/extend.texi (hotpatch): hotpatch attribute doc fixes.
38008 * doc/invoke.texi (-mhotpatch): -mhotpatch doc fixes.
38010 2015-03-12 Ilya Enkovich <ilya.enkovich@intel.com>
38013 * config/i386/i386.c (ix86_address_cost): Fix cost of a PIC
38016 2015-03-12 Ilya Enkovich <ilya.enkovich@intel.com>
38019 * toplev.c (process_options): Restrict Pointer Bounds Checker
38020 usage with Address Sanitizer.
38022 2015-03-12 Richard Biener <rguenther@suse.de>
38024 * tree-cfg.c (gimple_split_block): Remove loop finding stmt
38026 * omp-low.c (expand_omp_taskreg): Split block before removing
38028 (expand_omp_target): Likewise.
38029 * ubsan.c (ubsan_expand_null_ifn): Adjust stmt if we replaced it.
38030 * tree-parloops.c (create_call_for_reduction_1): Pass a proper
38031 stmt to split_block.
38033 2015-03-12 Tom de Vries <tom@codesourcery.com>
38035 PR rtl-optimization/64895
38036 * lra-lives.c (check_pseudos_live_through_calls): Use
38037 actual_call_used_reg_set instead of call_used_reg_set, if available.
38039 2015-03-10 Jan Hubicka <hubicka@ucw.cz>
38041 * cgraph.c (cgraph_node::release_body): Free function_in_decl_state.
38042 (cgraph_node::remove): Likewise.
38043 (cgraph_node::get_untransformed_body): Likewise.
38044 * varpool.c (varpool_node::remove): Likewise.
38045 (varpool_node::get_constructor): Add sanity check.
38047 2015-03-11 Sandra Loosemore <sandra@codesourcery.com>
38049 * doc/invoke.texi (-fgnu89-inline): Remove discussion about
38051 (-fabi-compat-version): Likewise.
38052 (-ffriend-injection): Likewise.
38053 (-Wdeclaration-after-statement): Likewise.
38054 (-fomit-frame-pointer): Likewise.
38055 (-ftree-coalesce-inlined-vars): Likewise.
38056 (-fvisibility=): Likewise.
38057 * doc/extend.texi (Typeof): Likewise.
38058 (Zero Length): Likewise.
38059 (Escaped Newlines): Likewise.
38060 (Compound Literals): Likewise.
38061 (Function Attributes): Likewise.
38062 (Label Attributes): Likewise.
38063 (Type Attributes): Likewise.
38064 (Function Names): Likewise.
38065 (Other Builtins): Likewise.
38066 (Function Specific Option Pragmas): Likewise.
38067 (C++ Interface): Likewise.
38069 2015-03-11 Thomas Schwinge <thomas@codesourcery.com>
38071 * config/nvptx/nvptx.h (LIBSTDCXX): Define to "gcc".
38073 2015-03-11 Marek Polacek <polacek@redhat.com>
38075 PR tree-optimization/65388
38076 * tree-ssa-tail-merge.c (same_succ_def::equal): Fix typo in comparison.
38078 2015-03-10 Georg-Johann Lay <avr@gjlay.de>
38081 * configure.ac [avr]: Check as for options -mrmw, --mlink-relax.
38082 * configure: Regenerate.
38083 * config.in: Regenerate.
38084 * doc/invoke.texi (AVR Options) [-mrmw]: Document it.
38085 [-mn-flash]: Document it.
38086 [__AVR_ARCH__]: Document avrtiny.
38088 * config/avr/gen-avr-mmcu-specs.c (config.h): Include it.
38089 (*asm_relax): Only define spec if HAVE_AS_AVR_MLINK_RELAX_OPTION.
38090 (*asm_rmw): Only define spec if HAVE_AS_AVR_MRMW_OPTION.
38092 2015-03-11 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
38094 * doc/invoke.texi: Add missing cpu values (z196, zEC12).
38096 2015-03-11 Michael Meissner <meissner@linux.vnet.ibm.com>
38099 * config/rs6000/rs6000.c (rs6000_preferred_reload_class): Do not
38100 allow reloads of PLUS in floating point/VSX registers.
38102 2015-03-11 Junmo Park <junmoz.park@samsung.com>
38104 * config/arm/cortex-a57.md (cortex_a57_crypto_simple): Add
38105 crypto_sha256_fast.
38106 (cortex_a57_crypto_complex): Add crypto_sha256_slow.
38108 2015-03-11 Richard Biener <rguenther@suse.de>
38110 PR tree-optimization/65310
38111 * tree-sra.c (build_ref_for_offset): Also preserve larger
38114 2015-03-11 Marat Zakirov <m.zakirov@samsung.com>
38116 * asan.c (instrument_derefs): Disable instrumentation on asan-globals=0.
38118 2015-03-10 Jakub Jelinek <jakub@redhat.com>
38121 * config/i386/i386.md (bmi2_bzhi_<mode>3): Removed define_insn,
38123 (*bmi2_bzhi_<mode>3, *bmi2_bzhi_<mode>3_1): New define_insns.
38125 2015-03-10 Jan Hubicka <hubicka@ucw.cz>
38127 * ipa-icf.c (sem_function::equals_wpa): Move here some checks from ...
38128 (sem_function::equals_wpa): ... here.
38130 2015-03-10 Marek Polacek <polacek@redhat.com>
38131 Jakub Jelinek <jakub@redhat.com>
38134 * ubsan.c (ubsan_expand_objsize_ifn): Update GSI instead of GSI_ORIG
38135 when only removing the statement. Handle expanding UBSAN_OBJECT_SIZE
38138 2015-03-10 Jakub Jelinek <jakub@redhat.com>
38141 * config/rs6000/t-linux: For powerpc64* target set
38142 MULTILIB_OSDIRNAMES instead of MULTIARCH_DIRNAME.
38144 2015-03-10 Richard Biener <rguenther@suse.de>
38146 PR middle-end/44563
38147 * tree-inline.c (copy_cfg_body): Skip block mapped to entry/exit
38148 for redirect_all_calls.
38150 2015-03-10 Marek Polacek <polacek@redhat.com>
38152 * gdbinit.in (pcfun): Define and document.
38154 2015-03-10 Ilya Verbin <ilya.verbin@intel.com>
38156 * config/i386/intelmic-mkoffload.c: Include intelmic-offload.h instead
38157 of libgomp-plugin.h.
38158 (find_target_compiler): Support a case when the path to gcc is
38159 specified in the PATH env var, so COLLECT_GCC doesn't contain a path.
38160 (generate_host_descr_file): Use GOMP_DEVICE_INTEL_MIC from
38161 intelmic-offload.h instead of OFFLOAD_TARGET_TYPE_INTEL_MIC from
38163 (main): Use GCC_INSTALL_NAME as target_driver_name.
38164 * config/i386/t-intelmic (CFLAGS-mkoffload.o): Add GCC_INSTALL_NAME
38166 (mkoffload.o): Remove obsolete include path and defines.
38167 (mkoffload$(exeext)): Use $(LINKER) instead of $(COMPILER).
38169 2015-03-10 Richard Biener <rguenther@suse.de>
38171 PR middle-end/63155
38172 * tree-ssa-coalesce.h (verify_ssa_coalescing): Declare.
38173 * tree-ssa-coalesce.c: Include timevar.h.
38174 (attempt_coalesce): Handle graph being NULL.
38175 (coalesce_partitions): Call verify_ssa_coalescing if ENABLE_CHECKING.
38176 Split out abnormal coalescing to ...
38177 (perform_abnormal_coalescing): ... this function.
38178 (coalesce_ssa_name): Perform abnormal coalescing without computing
38180 (verify_ssa_coalescing_worker): New function.
38181 (verify_ssa_coalescing): Likewise.
38183 2015-03-10 Georg-Johann Lay <avr@gjlay.de>
38186 * config.gcc (extra_options) [avr]: Remove.
38187 (extra_gcc_objs) [avr]: Use driver-avr.o, avr-devices.o.
38188 (tm_file) [avr]: Add avr/specs.h after avr/avr.h.
38189 (tm_defines) [avr-*-rtems*]: Add WITH_RTEMS.
38191 * config/avr/avr.opt (config/avr/avr-arch.h): Remove include.
38192 (-mmcu=): Add Var and MissingArgError properties.
38194 * config/avr/genmultilib.awk: Use -mmcu= instead of -march=.
38195 * config/avr/t-multilib: Regenerate.
38196 * config/avr/specs.h: New file.
38197 * config/avr/driver-avr.c: New file.
38198 * config/avr/genopt.sh: Remove file.
38199 * config/avr/avr-tables.opt: Remove file.
38200 * config/avr/predicates.md (avr_current_arch): Rename to avr_arch.
38201 * config/avr/avr-c.c: Same.
38202 * avr-arch.h: Same.
38203 (avr_current_device): Remove proto.
38204 * config/avr/avr.h (avr_current_arch): Rename to avr_arch.
38205 (AVR_HAVE_8BIT_SP): Don't depend on avr_current_device.
38206 (EXTRA_SPEC_FUNCTIONS): Define.
38207 (avr_devicespecs_file): New specs function proto.
38208 (DRIVER_SELF_SPECS): Use device-specs-file spec function.
38209 * config/avr/avr.c (avr_current_arch): Rename to avr_arch.
38210 (avr_current_device): Remove definition and usage.
38211 (avr_set_core_architecture): New static function.
38212 (avr_option_override): Use it.
38213 * config/avr/avr-devices.c (diagnostic.h, avr-arch.h): Include them.
38214 (mcu_name): New static array.
38215 (comparator, avr_archs_str, avr_mcus_str): New static functions.
38216 (avr_inform_devices, avr_inform_core_architectures): New functions.
38217 * config/avr/gen-avr-mmcu-specs.c (avr-arch.h, specs.h): Include.
38218 (avrlibc.h) [WITH_AVRLIBC]: Include.
38219 (../rtems.h, rtems.h) [WITH_RTEMS]: Include.
38220 (print_mcu): Rewrite from scratch.
38221 * config/avr/avrlibc.h (LIB_SPEC, LIBGCC_SPEC, STARTFILE_SPEC):
38222 Forward to avr-specific specs defined in device-specs file.
38223 * config/avr/t-avr (driver-avr.o): New rule.
38224 (avr-devices.o): Depend on avr-arch.h.
38225 (avr-mcus): No more depend on avr-tables.opt.
38226 (avr-tables.opt): Remove rule.
38227 (install-device-specs): Use INSTALL_DATA, not INSTALL_PROGRAM.
38229 2015-03-10 Ilya Enkovich <ilya.enkovich@intel.com>
38231 * c-family/c.opt (fchkp-use-wrappers): New.
38232 * ipa-chkp.c (CHKP_WRAPPER_SYMBOL_PREFIX): New.
38233 (chkp_wrap_function): New.
38234 (chkp_build_instrumented_fndecl): Support wrapped
38236 * doc/invoke.texi (-fcheck-pointer-bounds): New.
38237 (-fchkp-check-incomplete-type): New.
38238 (-fchkp-first-field-has-own-bounds): New.
38239 (-fchkp-narrow-bounds): New.
38240 (-fchkp-narrow-to-innermost-array): New.
38241 (-fchkp-optimize): New.
38242 (-fchkp-use-fast-string-functions): New.
38243 (-fchkp-use-nochk-string-functions): New.
38244 (-fchkp-use-static-bounds): New.
38245 (-fchkp-use-static-const-bounds): New.
38246 (-fchkp-treat-zero-dynamic-size-as-infinite): New.
38247 (-fchkp-check-read): New.
38248 (-fchkp-check-write): New.
38249 (-fchkp-store-bounds): New.
38250 (-fchkp-instrument-calls): New.
38251 (-fchkp-instrument-marked-only): New.
38252 (-fchkp-use-wrappers): New.
38253 (-static-libmpx): New.
38254 (-static-libmpxwrappers): New.
38256 2015-03-10 Ilya Enkovich <ilya.enkovich@intel.com>
38258 * config/i386/linux-common.h (LIBMPX_WRAPPERSSPEC): New.
38259 (CHKP_SPEC): Add wrappers library.
38260 * c-family/c.opt (static-libmpxwrappers): New.
38262 2015-03-10 Ilya Enkovich <ilya.enkovich@intel.com>
38264 * config/i386/linux-common.h (LIBMPX_LIBS): New.
38265 (LIBMPX_SPEC): New.
38267 * gcc.c (CHKP_SPEC): New.
38268 (LINK_COMMAND_SPEC): Add CHKP_SPEC.
38269 * c-family/c.opt (static-libmpx): New.
38271 2015-03-10 Richard Biener <rguenther@suse.de>
38273 PR middle-end/44563
38274 * cgraph.h (struct cgraph_edge_hasher): Add hash overload
38276 * cgraph.c (cgraph_edge_hasher::hash): Inline htab_hash_pointer.
38277 (cgraph_update_edge_in_call_site_hash): Use cgraph_edge_hasher::hash.
38278 (cgraph_add_edge_to_call_site_hash): Likewise.
38279 (cgraph_node::get_edge): Likewise.
38280 (cgraph_edge::set_call_stmt): Likewise.
38281 (cgraph_edge::remove_caller): Likewise.
38283 2015-03-10 Chung-Ju Wu <jasonwucj@gmail.com>
38285 * config/nds32/nds32.h (callee_saved_regs_size): Rename to ...
38286 (callee_saved_gpr_regs_size): ... this.
38287 (callee_saved_regs_first_regno): Rename to ...
38288 (callee_saved_first_gpr_regno): ... this.
38289 (callee_saved_regs_last_regno) Rename to ...
38290 (callee_saved_last_gpr_regno): ... this.
38291 * config/nds32/nds32.c (nds32_compute_stack_frame): Adjust renamed
38293 (nds32_initial_elimination_offset): Likewise.
38294 (nds32_expand_prologue): Likewise.
38295 (nds32_expand_epilogue): Likewise.
38296 (nds32_expand_prologue_v3push): Likewise.
38297 (nds32_expand_epilogue_v3pop): Likewise.
38298 * config/nds32/nds32-md-auxiliary.c (nds32_output_stack_push):
38299 Adjust renamed variables.
38300 (nds32_output_stack_pop): Likewise.
38302 2015-03-10 Thomas Preud'homme <thomas.preudhomme@arm.com>
38304 * dominance.c (nearest_common_dominator_for_set): Fix A_Dominated_by_B
38307 2015-03-10 Jakub Jelinek <jakub@redhat.com>
38309 PR rtl-optimization/65321
38310 * cfgexpand.c (expand_debug_expr): Ensure shift amount isn't wider
38312 * var-tracking.c (use_narrower_mode): Likewise.
38314 2015-03-10 Jan Hubicka <hubicka@ucw.cz>
38316 PR tree-optimization/65355
38317 * varasm.c (notice_global_symbol): Do not produce RTL.
38318 * symtab.c (symtab_node::can_increase_alignment_p): Check for section
38320 * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Do not
38321 check for section anchors.
38323 2015-03-10 Alan Modra <amodra@gmail.com>
38326 * config.gcc (powerpc*-*-linux*): Arrange for powerpc64le-linux
38327 to be single-arch by default. Set cpu_is_64bit for powerpc64
38328 given --with-cpu=native.
38329 * config/rs6000/t-fprules: Do not set default MULTILIB vars.
38330 * config/rs6000/t-linux (MULTIARCH_DIRNAME): Support powerpc64
38332 * config/rs6000/linux64.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Test
38333 rs6000_isa_flags rather than TARGET_64BIT.
38335 2015-03-09 Yoshinori Sato <ysato@users.sourceforge.jp>
38336 Kaz Kojima <kkojima@gcc.gnu.org>
38338 * config/sh/t-linux (MULTILIB_EXCEPTIONS): Define for m2a cases.
38340 2015-03-09 Jakub Jelinek <jakub@redhat.com>
38343 * ipa-devirt.c (add_type_duplicate): Don't use DECL_CONTEXT
38344 on a TREE_BINFO, instead use BINFO_TYPE.
38346 2015-03-09 Richard Biener <rguenther@suse.de>
38348 PR middle-end/65270
38349 * tree-core.h (enum operand_equal_flag): Add OEP_ADDRESS_OF.
38350 * fold-const.c (operand_equal_p): When recursing for ADDR_EXPRs
38351 operand set OEP_ADDRESS_OF. Clear it when recursing to non-bases
38352 of that. When comparing dereferences compare alignment.
38353 When comparing MEM_REFs or TARGET_MEM_REFs compare dependence info.
38355 2015-03-08 Jan Hubicka <hubicka@ucw.cz>
38357 * ipa-inline-analysis.c (check_callers): Check
38358 node->can_remove_if_no_direct_calls_and_refs_p.
38359 (growth_likely_positive): Reorganize to call
38360 can_remove_if_no_direct_calls_p later.
38361 * cgraph.h (will_be_removed_from_program_if_no_direct_calls_p,
38362 will_be_removed_from_program_if_no_direct_calls_p): Add
38363 will_inline parameter.
38364 * cgraph.c (cgraph_node::can_remove_if_no_direct_calls_p,
38365 cgraph_node::will_be_removed_from_program_if_no_direct_calls_p):
38366 Handle inliner case correctly.
38368 2015-03-09 Thomas Preud'homme <thomas.preudhomme@arm.com>
38370 PR tree-optimization/63743
38371 * cfgexpand.c (reorder_operands): Also reorder if only second operand
38372 had its definition forwarded by TER.
38374 2015-03-08 Jan Hubicka <hubicka@ucw.cz>
38377 * ipa-utils.h (types_odr_comparable): Add strict argument.
38378 * ipa-devirt.c: Fix whitespace;
38379 (odr_hasher): Remove.
38380 (odr_name_hasher, odr_vtable_hasher): New hashers.
38381 (can_be_name_hashed_p): New predicate.
38382 (hash_type_name): remove.
38383 (hash_odr_name): New.
38384 (odr_name_hasher::hash): new.
38385 (can_be_vtable_hashed_p): New.
38386 (hash_odr_vtable): New.
38387 (odr_vtable_hasher::hash): New.
38388 (types_same_for_odr): Add strict parameter.
38389 (types_odr_comparable): Likewise.
38390 (odr_name_hasher::equal): New.
38391 (odr_vtable_hasher::equal): New.
38392 (odr_name_hasher::remove): New.
38393 (odr_hash_type): Change to hash_table<odr_name_hasher>.
38394 (odr_vtable_hash_type): New.
38395 (odr_vtable_hash): New.
38396 (odr_subtypes_equivalent_p): Do strict comparsion.
38397 (add_type_duplicate): Merge type names; cleanup; avoid type
38399 (register_odr_type): Initialize vtable hash.
38400 (build_type_inheritance_graph): Likewise
38401 (get_odr_type): Reorg to use two hashes.
38402 (dump_possible_polymorphic_call_targets): Move sanity check after debug
38404 (ipa_devirt): Dump type_inheritance_graph.
38405 (types_same_for_odr): Add strict mode.
38407 2015-03-05 Jan Hubicka <hubicka@ucw.cz>
38410 * cgraph.h (symtab_node): Add definition_alignment,
38411 can_increase_alignment_p and increase_alignment.
38412 * symtab.c (symtab_node::can_increase_alignment_p,
38413 increase_alignment_1, symtab_node::increase_alignment,
38414 symtab_node::definition_alignment): New.
38415 * tree-vect-data-refs.c (vect_can_force_dr_alignment_p): Use
38416 can_increase_alignment_p.
38417 * tree-vectorizer.c (increase_alignment): Use increase_alignment.
38418 * tree-vect-stmts.c (ensure_base_align): Likewise.
38419 * varasm.c (function_section_1): Use definition_alignment.
38420 (assemble_start_function): Likewise.
38421 (emit_local): likewise.
38422 (build_constant_desc): Likewsie.
38423 (output_constant_def_contents): Likewise.
38424 (place_block_symbol): Likewise.
38425 (output_object_block): Likewise.
38427 2015-03-05 Jan Hubicka <hubicka@ucw.cz>
38430 * tree.c (free_lang_data_in_type): Be sure to keep BINFO_VTABLE
38431 when outputting debug.
38433 2015-03-07 Marek Polacek <polacek@redhat.com>
38434 Martin Uecker <uecker@eecs.berkeley.edu>
38437 * doc/invoke.texi: Update description of -fsanitize=bounds.
38439 2015-03-06 Wilco Dijkstra <wilco.dijkstra@arm.com>
38441 * tree-ssa-phiopt.c (neg_replacement): Remove.
38442 (tree_ssa_phiopt_worker): Remove negate optimization.
38444 2015-03-05 Jan Hubicka <hubicka@ucw.cz>
38447 * value-prof.c (gimple_ic): Pure dead eh edges when needed.
38449 2015-03-06 Richard Biener <rguenther@suse.de>
38451 PR middle-end/64928
38452 * tree-ssa-live.h (struct tree_live_info_d): Add livein_obstack
38453 and liveout_obstack members.
38454 (calculate_live_on_exit): Remove.
38455 (calculate_live_ranges): Change declaration.
38456 * tree-ssa-live.c (liveness_bitmap_obstack): Remove global var.
38457 (new_tree_live_info): Adjust.
38458 (calculate_live_ranges): Delete livein when not wanted.
38459 (calculate_live_ranges): Do not initialize liveness_bitmap_obstack.
38460 Deal with partly deleted live info.
38461 (loe_visit_block): Remove temporary bitmap by using
38462 bitmap_ior_and_compl_into.
38463 (live_worklist): Adjust accordingly.
38464 (calculate_live_on_exit): Make static.
38465 * tree-ssa-coalesce.c (coalesce_ssa_name): Tell calculate_live_ranges
38466 we do not need livein.
38468 2015-03-06 Jonathan Wakely <jwakely@redhat.com>
38470 * real.c (real_from_string): Fix typo in assertion.
38472 2015-03-06 Alex Velenko <alex.velenko@arm.com>
38474 * ChangeLog (2015-03-05): Reflect Richard Henderson as actual author of
38477 2015-03-05 Jan Hubicka <hubicka@ucw.cz>
38479 * ipa-icf.c (sem_variable::equals_wpa): Check FINAL flags.
38481 2015-03-05 Vladimir Makarov <vmakarov@redhat.com>
38484 * lra-assigns.c (find_hard_regno_for): Rename to
38485 find_hard_regno_for_1. Add a new parameter.
38486 (find_hard_regno_for): New function using find_hard_regno_for_1.
38488 2015-03-05 Bernd Edlinger <bernd.edlinger@hotmail.de>
38490 PR rtl-optimization/65067
38491 * expmed.c (store_bit_field, extract_bit_field): Reworked the
38492 strict volatile bitfield handling.
38494 2015-03-05 Martin Liska <mliska@suse.cz>
38497 * ipa-icf.c (sem_variable::equals): Compare variables types.
38499 2015-03-05 Richard Henderson <rth@redhat.com>
38502 * config/arm/arm.c (arm_function_in_section_p): Fix predicate to
38503 correctly check weak symbol binding.
38505 2015-03-05 Steve Ellcey <sellcey@imgtec.com>
38507 PR middle-end/65315
38508 * cfgexpand.c (expand_stack_vars): Update large_align to maximum
38511 2015-03-05 Martin Liska <mliska@suse.cz>
38513 * ipa-inline.c (inline_small_functions): Set default value to
38514 prevent warning during bootstrap.
38515 * tree.h: Add pragma guard that ignores false positives during
38518 2015-03-05 Richard Biener <rguenther@suse.de>
38520 PR tree-optimization/65310
38521 * tree-vect-data-refs.c (vect_compute_data_ref_alignment):
38522 Properly preserve alignment of the base of the access.
38524 2015-03-05 Richard Biener <rguenther@suse.de>
38527 * ipa-icf-gimple.c (func_checker::compare_memory_operand):
38528 Compare dependence info.
38530 2015-03-05 Richard Biener <rguenther@suse.de>
38532 PR middle-end/65233
38533 * ipa-polymorphic-call.c: Include tree-ssa-operands.h and
38535 (walk_ssa_copies): Revert last chage. Instead do not walk
38536 SSA names registered for SSA update.
38538 2015-03-03 Jan Hubicka <hubicka@ucw.cz>
38541 * ipa-icf.c (sem_item::compare_cgraph_references): Compare
38542 vtable references for their containing type.
38543 (sem_function::equals_wpa): Compare TYPE_RESTRICT
38544 and type attributes.
38546 2015-03-04 Eric Botcazou <ebotcazou@adacore.com>
38548 * fold-const.c (round_up_loc): Cast divisor to signed on all paths
38549 before negating it.
38550 * stor-layout.c (finalize_record_size): Revert latest change.
38552 2015-03-04 Andreas Tobler <andreast@gcc.gnu.org>
38554 * config/rs6000/t-freebsd64: Remove 32-bit soft-float multilibs.
38556 2015-03-03 Jan Hubicka <hubicka@ucw.cz>
38558 * cgraph.c (cgraph_node::can_remove_if_no_direct_calls_p): Rewrite
38559 for correct comdat handling.
38560 (cgraph_node::will_be_removed_from_program_if_no_direct_calls_p):
38562 * cgraph.h (call_for_symbol_and_aliases): Fix formating.
38563 (used_from_object_file_p_worker): Remove.
38564 (cgraph_node::only_called_directly_or_alised): Add
38565 used_from_object_file_p.
38566 * ipa-inline-analysis.c (growth_likely_positive): Optimie.
38567 * ipa-inline-transform.c (can_remove_node_now_p_1): Use
38568 can_remove_if_no_direct_calls_and_refs_p.
38570 2015-03-04 Nick Clifton <nickc@redhat.com>
38572 * config/rl78/rl78.h (enum reg_class): Remove real registers from
38573 General register class.
38574 * config/rl78/rl78-real.md: Replace general register constraints
38575 with real+virtual register constraints.
38577 2015-03-04 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
38579 * config/s390/s390.c (s390_expand_builtin): Exlude non-htm builtins
38580 from checking for -mhtm option.
38582 2015-03-03 Jan Hubicka <hubicka@ucw.cz>
38584 * tree-sra.c (convert_callers): Use call_for_symbol_and_aliases.
38585 (struct ipa_sra_check_caller_data): Add has_thunk field.
38586 (ipa_sra_check_caller): Check for thunk.
38587 (ipa_sra_preliminary_function_checks): Give up on function with
38589 (ipa_early_sra): Use call_for_symbol_and_aliases.
38591 2015-03-03 Kaz Kojima <kkojima@gcc.gnu.org>
38594 * config/sh/sh.md (symGOT_load): Use R0 reg for operands[2] when
38595 called for __stack_chk_guard symbol.
38597 2015-03-03 DJ Delorie <dj@redhat.com>
38599 * config/rl78/rl78-real.md (*addqi_real): Allow SADDR types for
38601 (*addhi3_real): Likewise.
38602 * config/rl78/rl78-virt.md (*inc<mode>3_virt): Additional
38603 pattern to match incrementing memory.
38604 * config/rl78/predicates.md (rl78_1_2_operand): New.
38605 * config/rl78/rl78.c (rl78_force_nonfar_3): Allow far mem-mem if
38606 it's the same and only mem.
38607 (rl78_alloc_physical_registers_op2): If there's effectively only
38608 one MEM, transcode it into HL.
38609 (rl78_far_p): Reject addresses that aren't legitimate.
38611 2015-03-03 Eric Botcazou <ebotcazou@adacore.com>
38613 * fold-const.c (round_up_loc): Cast divisor to HOST_WIDE_INT before
38616 * tree-sra.c (pa_sra_preliminary_function_checks): Fix typo in message.
38618 2015-03-03 Max Filippov <jcmvbkbc@gmail.com>
38620 Implement call0 ABI for xtensa
38621 * config/xtensa/constraints.md ("a" constraint): Include stack
38622 pointer in case of call0 ABI.
38623 ("q" constraint): Make empty in case of call0 ABI.
38624 ("D" constraint): Include stack pointer in case of call0 ABI.
38625 * config/xtensa/xtensa-protos.h (xtensa_set_return_address,
38626 xtensa_expand_epilogue, xtensa_regno_to_class): Add new function
38628 * config/xtensa/xtensa.c (xtensa_callee_save_size): New
38630 (xtensa_regno_to_class): Make it a local variable in the
38631 function xtensa_regno_to_class.
38632 (xtensa_function_epilogue, TARGET_ASM_FUNCTION_EPILOGUE): Remove
38633 macro, function prototype and implementation.
38634 (reg_nonleaf_alloc_order): Make it a local variable in the
38635 function order_regs_for_local_alloc.
38636 (xtensa_conditional_register_usage): New function.
38637 (TARGET_CONDITIONAL_REGISTER_USAGE): Define macro.
38638 (xtensa_valid_move): Allow direct moves to stack pointer
38639 register in call0 ABI.
38640 (xtensa_setup_frame_addresses): Only spill register windows in
38642 (xtensa_emit_call): Emit call(x)8 or call(x)0 in windowed and
38643 call0 ABI respectively.
38644 (xtensa_function_arg_1): Only mark a7 register for copying in
38646 (xtensa_call_save_reg): New function.
38647 (compute_frame_size): Add space for callee saved register
38648 storage to the frame size in call0 ABI.
38649 (xtensa_expand_prologue): Generate code to set up stack frame
38650 and save callee-saved registers in call0 ABI.
38651 (xtensa_expand_epilogue): New function.
38652 (xtensa_set_return_address): New function.
38653 (xtensa_return_addr): Calculate return address in call0 ABI.
38654 (xtensa_builtin_saveregs): Only mark a7 register for copying and
38655 emit copying code in windowed ABI.
38656 (order_regs_for_local_alloc): Add preferred register allocation
38657 order for non-leaf function in call0 ABI.
38658 (xtensa_static_chain): Add atatic chain passing for call0 ABI.
38659 (xtensa_asm_trampoline_template): Add trampoline generation for
38661 (xtensa_trampoline_init): Add trampoline initialization for
38663 (xtensa_conditional_register_usage, xtensa_regno_to_class): New
38665 * config/xtensa/xtensa.h (TARGET_WINDOWED_ABI): New macro.
38666 (TARGET_CPU_CPP_BUILTINS): Add built-in define for call0 ABI.
38667 (CALL_USED_REGISTERS): Modify to encode both windowed and call0
38668 ABI call-used registers.
38669 (HARD_FRAME_POINTER_REGNUM): Add frame pointer for call0 ABI.
38670 (INCOMING_REGNO, OUTGOING_REGNO): Use argument unchanged in
38672 (REG_CLASS_CONTENTS): Include all registers into the preferred
38673 reload registers set, adjust the set in the
38674 xtensa_conditional_register_usage.
38675 (xtensa_regno_to_class): Drop variable declaration.
38676 (REGNO_REG_CLASS): Redefine to use xtensa_regno_to_class
38678 (WINDOW_SIZE): Define as 8 or 0 for windowed and call0 ABI
38680 (FUNCTION_PROFILER): Add _mcount call for call0 ABI.
38681 (TRAMPOLINE_SIZE): Define trampoline size for call0 ABI.
38682 (RETURN_ADDR_IN_PREVIOUS_FRAME): Define to 0 in call0 ABI.
38683 (ASM_OUTPUT_POOL_PROLOGUE): Always generate literal pool
38684 location in call0 ABI.
38685 (EH_RETURN_STACKADJ_RTX): New definition, use a10 for passing
38686 stack adjustment size when handling exception.
38687 (CRT_CALL_STATIC_FUNCTION): Add definition for call0 ABI.
38688 * config/xtensa/xtensa.md (A9_REG, UNSPECV_BLOCKAGE): New
38690 ("return" pattern): Generate ret.n/ret in call0 ABI.
38691 ("epilogue" pattern): Expand epilogue.
38692 ("nonlocal_goto" pattern): Use default in call0 ABI.
38693 ("eh_return" pattern): Move implementation to eh_set_a0_windowed,
38694 emit eh_set_a0_* depending on ABI.
38695 ("eh_set_a0_windowed" pattern): Former eh_return pattern.
38696 ("eh_set_a0_call0", "blockage"): New patterns.
38698 2015-03-03 Martin Liska <mliska@suse.cz>
38701 * ipa-icf.c (sem_variable::parse): Skip all alias variables.
38703 2015-03-03 Michael Meissner <meissner@linux.vnet.ibm.com>
38706 * config/rs6000/rs6000-tables.opt: Regenerate table.
38708 2015-03-03 Renlin Li <renlin.li@arm.com>
38710 * doc/md.texi (@item ^): Change ? into ^.
38712 2015-03-03 H.J. Lu <hongjiu.lu@intel.com>
38714 * doc/tm.texi: Regenerated.
38716 2015-03-03 Max Filippov <jcmvbkbc@gmail.com>
38718 * builtins.c (expand_builtin_return_addr): Add
38719 RETURN_ADDR_IN_PREVIOUS_FRAME to 'if' condition, remove
38720 surrounding #ifdef.
38721 * config/sparc/sparc.h (RETURN_ADDR_IN_PREVIOUS_FRAME): Change
38723 * config/xtensa/xtensa.h (RETURN_ADDR_IN_PREVIOUS_FRAME):
38725 * defaults.h (RETURN_ADDR_IN_PREVIOUS_FRAME): Define to 0 if
38727 * doc/tm.texi.in (RETURN_ADDR_IN_PREVIOUS_FRAME): Update
38730 2015-03-03 Martin Jambor <mjambor@suse.cz>
38731 Eric Botcazou <ebotcazou@adacore.com>
38733 * tree-sra.c (ipa_sra_check_caller_data): New type.
38734 (has_caller_p): Removed.
38735 (ipa_sra_check_caller): New function.
38736 (ipa_sra_preliminary_function_checks): Use it.
38738 2015-03-03 Martin Liska <mliska@suse.cz>
38740 * ipa-icf.c (sem_item_optimizer::merge_classes): Use bit or
38741 instead of if branch.
38743 2015-03-03 Martin Liska <mliska@suse.cz>
38746 * ipa-icf.c (sem_variable::equals): Fix wrong condition.
38748 2015-03-23 Jeff Law <law@redhat.com>
38750 PR tree-optimization/65241
38751 * tree-ssa-dom.c (lookup_avail_expr): Only modify the avail_expr
38752 hash table if INSERT is true.
38754 2015-03-03 Georg-Johann Lay <avr@gjlay.de>
38757 * config.gcc (extra_gcc_objs) [avr-*-rtems*]: Remove.
38759 2015-03-03 Georg-Johann Lay <avr@gjlay.de>
38762 * config/avr/avr.c (context.h, tree-pass.h): Include them.
38763 (avr_pass_data_recompute_notes): New static variable.
38764 (avr_pass_recompute_notes): New class.
38765 (avr_register_passes): New static function.
38766 (avr_option_override): Call it.
38768 2015-03-03 Georg-Johann Lay <avr@gjlay.de>
38770 Fix various problems with specs file generation.
38773 * config.gcc (extra_gcc_objs) [avr]: Remove.
38774 * config/avr/driver-avr.c: Remove file.
38775 * config/avr/t-avr (driver-avr.o): Remove rule.
38776 (gen-avr-mmcu-specs): Use CXX_FOR_BUILD, CXXFLAGS_FOR_BUILD and
38777 INCLUDES to build. Depend on TM_H.
38778 * config/avr/gen-avr-mmcu-specs.c: Tidy up code. Fix various
38779 build warnings. Fix non-matching types and non-existing %-codes.
38781 (*lib) [!WITH_AVRLIBC]: Don't link libdev.a.
38782 (*libgcc) [WITH_AVRLIBC]: Add "-lm".
38783 * config/avr/avrlibc.h (LIBGCC_SPEC): Remove definition.
38784 * config/avr/avr.h (DRIVER_SELF_SPECS): Fix handling of -march=.
38785 (CPP_SPEC, CC1PLUS_SPEC, ASM_SPEC, LINK_SPEC, LIB_SPEC)
38786 (LIBGCC_SPEC): Remove definitions.
38788 2015-03-03 Eric Botcazou <ebotcazou@adacore.com>
38790 * config/ia64/ia64.c (expand_vec_perm_interleave_2): Use gen_raw_REG
38791 to create a register in testing mode.
38793 2015-03-03 Martin Liska <mliska@suse.cz>
38794 Jan Hubicka <hubicka@ucw.cz>
38797 * cgraph.c (cgraph_node::has_thunk_p): New function.
38798 * cgraph.h (cgraph_node::has_thunk_p: Likewise.
38799 * ipa-icf.c (redirect_all_callers): Do not redirect thunks.
38800 (sem_function::merge): Assert is changed.
38802 2015-03-03 Martin Liska <mliska@suse.cz>
38803 Martin Jambor <mjambor@suse.cz>
38806 * ipa-icf.c (sem_item_optimizer::execute): Change function
38807 return value to boolean.
38808 (sem_item_optimizer::merge_classes): Likewise.
38809 (ipa_icf_driver): Return TODO_remove_functions in case there's
38810 a merge operation processed.
38811 * ipa-icf.h: Change function return value to boolean.
38813 2015-03-02 Michael Meissner <meissner@linux.vnet.ibm.com>
38816 * config/rs6000/rs6000-cpus.def (powerpc64le): Add new generic
38817 processor type for 64-bit little endian PowerPC.
38819 * config/rs6000/rs6000.c (rs6000_option_override_internal): If
38820 -mdebug=reg, print TARGET_DEFAULT. Fix logic to use
38821 TARGET_DEFAULT if there is no default cpu. Fix -mdebug=reg
38822 printing built-in mask so it does not pass NULL pointers.
38824 * doc/invoke.texi (IBM RS/6000 and PowerPC options): Document
38827 2015-03-02 Steve Ellcey <sellcey@imgtec.com>
38830 * config/mips/mips.md (mov<mode>cc): Change ISA_HAS_SEL check to
38831 !ISA_HAS_FP_CONDMOVE.
38833 2015-03-02 Aldy Hernandez <aldyh@redhat.com>
38835 * config/i386/i386.md (*udivmod<mode>4_pow2): Remove
38838 2015-03-02 Ulrich Drepper <drepper@gmail.com>
38840 * doc/invoke.texi (Options for Code Generation Conventions):
38841 Fix URL of DSO paper.
38843 2015-03-02 Jan Hubicka <hubicka@ucw.cz>
38846 * ipa-inline.c (check_callers): Looks for recursion.
38847 (inline_to_all_callers): Give up on uninlinable or recursive edges.
38848 * ipa-inline-analysis.c (inline_summary_t::duplicate): Do not update
38849 summary of inline clones.
38850 (do_estimate_growth_1): Fix recursion check.
38852 2015-03-02 Jan Hubicka <hubicka@ucw.cz>
38855 * ipa-inline-transform.c (clone_inlined_nodes): Do not dissolve
38858 2015-03-02 Jan Hubicka <hubicka@ucw.cz>
38859 Aldy Hernandez <aldyh@redhat.com>
38862 * ipa-devirt.c (add_type_duplicate): Remove odr_violated assert
38863 when checking TYPE_BINFO.
38865 2015-03-02 Richard Biener <rguenther@suse.de>
38868 * ipa-icf-gimple.c: Include builtins.h.
38869 (func_checker::compare_memory_operand): Compare base alignment.
38871 2015-03-02 Ilya Enkovich <ilya.enkovich@intel.com>
38874 * config/i386/i386.c (ix86_pass_by_reference): Bounds are never
38875 passed by reference.
38877 2015-03-02 Ilya Enkovich <ilya.enkovich@intel.com>
38880 * tree-chkp.c (chkp_check_lower): Don't check against
38881 zero bounds for already instrumented functions.
38882 (chkp_check_upper): Likewise.
38883 (chkp_fini): Clean pass local data to avoid wrong reusage.
38885 2015-02-28 Martin Liska <mliska@suse.cz>
38886 Jan Hubicka <hubicka@ucw.cz>
38888 * ipa-icf.c (sem_variable::equals): Improve debug output;
38889 get variable constructor.
38890 (sem_variable::parse): Do not filter out too early; give up on
38891 volatile and register vars.
38892 (sem_item_optimizer::filter_removed_items): Filter out nonreadonly
38894 * ipa-icf.h (sem_variable::init): Do not set ctor.
38895 (sem_variable::ctor): Remove.
38897 2015-03-01 Aldy Hernandez <aldyh@redhat.com>
38899 PR middle-end/65233
38900 * ipa-polymorphic-call.c (walk_ssa_copies): Handle empty PHIs.
38902 2015-02-28 Jan Hubicka <hubicka@ucw.cz>
38904 * ipa-icf.c: Include stor-layout.h
38905 (sem_function::compare_cgraph_references): Rename to ...
38906 (sem_item::compare_cgraph_references): ... this one.
38907 (sem_variable::equals_wpa): New function
38908 (sem_variable::equals): Do not check stuff already verified by
38910 (sem_variable::equals): Reorg based on varasm.c:compare_constant.
38911 * ipa-icf.h (sem_item): Add compare_cgraph_references.
38912 (sem_function): Remove compare_cgraph_references.
38913 (sem_variable): Turns equals_wpa into non-inline.
38915 2015-02-28 Jan Hubicka <hubicka@ucw.cz>
38917 * ipa-icf.c (sem_function::init): Fix formating; skip GIMPLE_PREDICT.
38918 (sem_item::add_expr): New function.
38919 (sem_function::hash_stmt): Handle operands of most statements.
38920 (sem_variable::get_hash): Hash the actual constructor.
38921 * ipa-icf.h (sem_item): Add add_expr.
38922 (sem_function): Update prototype of hash_stmt
38924 2015-02-28 Martin Liska <mliska@suse.cz>
38925 Jan Hubicka <hubicka@ucw.cz>
38928 * ipa-icf-gimple.c (func_checker::compare_function_decl):
38930 (func_checker::compare_variable_decl): Skip symtab vars.
38931 (func_checker::compare_cst_or_decl): Update.
38932 * ipa-icf.c (sem_function::parse): Do not consider aliases.
38933 (sem_function::compare_cgraph_references): Add ADDRESS parameter;
38934 use correct symtab predicates.
38935 (sem_function::equals_wpa): Update uses of compare_cgraph_references.
38936 (sem_variable::parse): Update comment.
38937 (sem_item_optimizer::build_graph): Consider ultimate aliases
38940 2015-02-28 Jan Hubicka <hubicka@ucw.cz>
38942 * ipa-icf-gimple.c (func_checker::compare_operand): Fix handling
38945 2015-02-28 Jan Hubicka <hubicka@ucw.cz>
38947 * ipa-icf.c (sem_function::merge): Fix handling of COMDAT.
38948 (sem_variable::merge) Likewise.
38950 2015-02-28 Jan Hubicka <hubicka@ucw.cz>
38952 * ipa-inline.c (can_inline_edge_p): Match opt_for_fn on inline
38953 target; also match flag_ipa_devirt.
38955 2015-03-01 Martin Liska <mliska@suse.cz>
38956 Jan Hubicka <hubicka@ucw.cz>
38958 * ipa-icf-gimple.c (func_checker::compare_variable_decl):
38959 Validate variable alignment.
38960 * ipa-icf.c (sem_function::equals_private): Be more precise
38961 about non-common function attributes.
38962 (sem_variable::equals): Likewise.
38964 2015-02-28 Jan Hubicka <hubicka@ucw.cz>
38967 * ipa-icf.c (sem_function::merge): Do not attempt to produce alias
38968 across COMDAT group boundary.
38970 2015-02-28 Jan Hubicka <hubicka@ucw.cz>
38973 * ipa-icf.c (clear_decl_rtl): New function.
38974 (sem_function::merge): Clear RTL before forming alias.
38975 (sem_variable::merge): Clear RTL before forming alias.
38977 2015-02-28 Jan Hubicka <hubicka@ucw.cz>
38980 * cgraphunit.c (cgraph_node::expand_thunk): Enable return slot opt.
38982 2015-02-28 Xingxing Pan <xxingpan@marvell.com>
38984 * config/aarch64/aarch64.md: (mov<mode>_aarch64): Change type
38987 2015-02-27 Vladimir Makarov <vmakarov@redhat.com>
38989 * params.def (PARAM_LRA_INHERITANCE_EBB_PROBABILITY_CUTOFF): Fix
38990 a typo in the description.
38992 2015-02-27 Vladimir Makarov <vmakarov@redhat.com>
38995 * params.def (PARAM_LRA_INHERITANCE_EBB_PROBABILITY_CUTOFF): New.
38996 * params.h (LRA_INHERITANCE_EBB_PROBABILITY_CUTOFF): New.
38997 * lra-constraints.c: Include "params.h".
38998 (EBB_PROBABILITY_CUTOFF): Use
38999 LRA_INHERITANCE_EBB_PROBABILITY_CUTOFF.
39000 (lra_inheritance): Use '<' instead of '<=' for
39001 EBB_PROBABILITY_CUTOFF.
39002 * doc/invoke.texi (lra-inheritance-ebb-probability-cutoff):
39005 2015-02-27 Martin Liska <mliska@suse.cz>
39007 * ipa-icf.h (struct symbol_compare_hashmap_traits): Add missing
39008 vector length condition.
39010 2015-02-27 Sandra Loosemore <sandra@codesourcery.com>
39012 * doc/extend.texi (x86 transactional memory intrinsics):
39013 Reorganize discussion of _xbegin. Clarify that the return
39014 value is a bit mask. Expand example and move to end of section.
39016 2015-02-26 Jakub Jelinek <jakub@redhat.com>
39017 Aldy Hernandez <aldyh@redhat.com>
39019 PR rtl-optimization/65220
39020 * config/i386/i386.md (*udivmod<mode>4_pow2): New.
39022 2015-02-27 Vladimir Makarov <vmakarov@redhat.com>
39025 * lra-remat.c (update_scratch_ops): New.
39026 (do_remat): Call it.
39027 * lra.c (lra_register_new_scratch_op): New. Take code from ...
39028 (remove_scratches): ... here.
39029 * lra-int.h (lra_register_new_scratch_op): New prototype.
39031 2015-02-27 Marek Polacek <polacek@redhat.com>
39034 * doc/invoke.texi: Update to reflect that -Wformat=2 doesn't enable
39035 -Wformat-signedness anymore.
39037 2015-02-27 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
39039 * config/s390/s390.c: (s390_atomic_assign_expand_fenv): New
39041 (TARGET_ATOMIC_ASSIGN_EXPAND_FENV): Define macro.
39043 2015-02-27 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
39045 * config/s390/s390.c (enum s390_builtin):
39046 Add S390_BUILTIN_S390_SFPC and S390_BUILTIN_S390_EFPC.
39047 (code_for_builtin): Add CODE_FOR_s390_sfpc and CODE_FOR_s390_efpc.
39048 (s390_init_builtins): Generate new builtin functions.
39049 * config/s390/s390.md (UNSPECV_SFPC, UNSPECV_EFPC): New constants.
39050 (s390_sfpc, s390_efpc): New pattern definitions.
39052 2015-02-27 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
39054 * config/s390/s390.c: (enum s390_builtin, s390_expand_builtin):
39055 Rename S390_BUILTIN_max to S390_BUILTIN_MAX.
39056 (s390_builtin_decls): New array.
39057 (s390_init_builtins): Put builtin decls into s390_builtin_decls.
39058 (s390_builtin_decl): New function.
39059 (TARGET_BUILTIN_DECL): Define macro.
39061 2015-02-27 Richard Biener <rguenther@suse.de>
39063 PR middle-end/63175
39064 * builtins.c (get_object_alignment_2): Make sure to re-apply
39065 the ANDed mask after recursing to its operand gets us a new
39066 misalignment bit position.
39068 2015-02-26 Jan Hubicka <hubicka@ucw.cz>
39069 Martin Liska <mliska@suse.cz>
39072 * ipa-icf.c (symbol_compare_collection::symbol_compare_colleciton):
39073 Use address_matters_p.
39074 (redirect_all_callers, set_addressable): New functions.
39075 (sem_function::merge): Reorganize and fix merging issues.
39076 (sem_variable::merge): Likewise.
39077 (sem_variable::compare_sections): Remove.
39078 * common.opt (fmerge-all-constants, fmerge-constants): Remove
39080 * symtab.c (symtab_node::resolve_alias): When alias has aliases,
39082 (symtab_node::make_decl_local): Set ADDRESSABLE bit when
39084 (address_matters_1): New function.
39085 (symtab_node::address_matters_p): New function.
39086 * cgraph.c (cgraph_edge::verify_corresponds_to_fndecl): Fix
39087 check for merged flag.
39088 * cgraph.h (address_matters_p): Declare.
39089 (symtab_node::address_taken_from_non_vtable_p): Remove.
39090 (symtab_node::address_can_be_compared_p): New method.
39091 (ipa_ref::address_matters_p): Move here from ipa-ref.c; simplify.
39092 * ipa-visibility.c (symtab_node::address_taken_from_non_vtable_p):
39094 (comdat_can_be_unshared_p_1) Use address_matters_p.
39095 (update_vtable_references): Fix formating.
39096 * ipa-ref.c (ipa_ref::address_matters_p): Move inline.
39097 * cgraphunit.c (cgraph_node::create_wrapper): Drop UNINLINABLE flag.
39098 * cgraphclones.c: Preserve merged and icf_merged flags.
39100 2015-02-26 Sandra Loosemore <sandra@codesourcery.com>
39102 * doc/extend.texi (Function Attributes): Fix spelling and typos.
39103 (Label Attributes): Likewise.
39104 (Cilk Plus Builtins): Likewise.
39105 (ARC SIMD Built-in Functions): Likewise.
39106 (ARM C Language Extensions (ACLE)): Likewise.
39107 (PowerPC Built-in Functions): Likewise.
39108 (PowerPC Hardware Transactional Memory Built-in Functions):
39111 2015-02-26 Jakub Jelinek <jakub@redhat.com>
39113 PR tree-optimization/65216
39114 * tree-ssa-reassoc.c (rewrite_expr_tree): Force creation of
39115 new stmt and new SSA_NAME for lhs whenever the arguments have
39116 changed and weren't just swapped. Fix comment typo.
39118 PR tree-optimization/65215
39119 * tree-ssa-math-opts.c (find_bswap_or_nop_load): Return false
39120 for PDP endian targets.
39121 (perform_symbolic_merge, find_bswap_or_nop_1, find_bswap_or_nop):
39122 Fix up formatting issues.
39123 (bswap_replace): Likewise. For BYTES_BIG_ENDIAN, if the final access
39124 size is smaller than the original, adjust MEM_REF offset by the
39125 difference of sizes. Use is_gimple_mem_ref_addr instead of
39126 is_gimple_min_invariant test to avoid adding address temporaries.
39128 2015-02-26 Martin Liska <mliska@suse.cz>
39129 Jan Hubicka <hubicka@ucw.cz>
39132 * ipa-icf.c (symbol_compare_collection::symbol_compare_collection): New.
39133 (sem_item_optimizer::subdivide_classes_by_sensitive_refs): New function.
39134 (sem_item_optimizer::process_cong_reduction): Include division by
39135 sensitive references.
39136 * ipa-icf.h (struct symbol_compare_hashmap_traits): New class.
39137 * ipa-ref.c (ipa_ref::address_matters_p): New function.
39138 * ipa-ref.h (ipa_ref::address_matters_p): Likewise.
39140 2015-02-26 Georg-Johann Lay <avr@gjlay.de>
39143 * config/avr/avr-protos.h (tiny_valid_direct_memory_access_range):
39145 * config/avr/avr.c: Same.
39146 (avr_legitimate_address_p) <AVR_TINY, CONSTANT_ADDRESS_P>:
39147 Refuse any constant address not in 0..0xbf.
39148 * config/avr/avr.md (*mov<mode>, *movsf): Remove
39149 tiny_valid_direct_memory_access_range from insn conditions.
39150 (mov<mode>): Don't special-case expansion of avrtiny addresses.
39152 2015-02-26 Oleg Endo <olegendo@gcc.gnu.org>
39155 * config/sh/sh.c (sh_check_add_incdec_notes): New function.
39156 * config/sh/sh-protos.h (sh_check_add_incdec_notes): Declare it.
39157 * config/sh/predicates.md (const_logical_operand): New predicate.
39158 * config/sh/sh.md: Add new peephole2 patterns.
39160 2015-02-26 Marek Polacek <polacek@redhat.com>
39163 * ipa-inline.c (early_inliner): Recompute inline parameters.
39165 2015-02-26 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
39168 * config/rs6000/rs6000.c (rs6000_analyze_swaps): Ensure
39169 instructions with TImode operands are included in the analysis.
39171 2015-02-26 Sebastian Pop <s.pop@samsung.com>
39173 * tree-ssa-threadupdate.c (dump_jump_thread_path): Print all edges
39174 of an EDGE_FSM_THREAD.
39176 2015-02-25 Adhemerval Zanella <azanella@linux.vnet.ibm.com>
39178 * config/rs6000/htm.md (tcheck): Fix assembly encoding.
39180 2015-02-25 Aldy Hernandez <aldyh@redhat.com>
39183 * dwarf2out.c (dwarf2out_init): Disable -feliminate-dwarf2-dups.
39185 2015-02-26 Sebastian Pop <s.pop@samsung.com>
39187 PR tree-optimization/65048
39188 * tree-ssa-threadupdate.c (valid_jump_thread_path): New.
39189 (thread_through_all_blocks): Call valid_jump_thread_path.
39190 Remove invalid FSM jump-thread paths.
39192 2015-02-26 Jakub Jelinek <jakub@redhat.com>
39194 * passes.c (ipa_write_summaries_1): Call lto_output_init_mode_table.
39195 (ipa_write_optimization_summaries): Likewise.
39196 * tree-streamer.h: Include data-streamer.h.
39197 (streamer_mode_table): Declare extern variable.
39198 (bp_pack_machine_mode, bp_unpack_machine_mode): New inline functions.
39199 * lto-streamer-out.c (lto_output_init_mode_table,
39200 lto_write_mode_table): New functions.
39201 (produce_asm_for_decls): Call lto_write_mode_table when streaming
39203 * lto-section-in.c (lto_section_name): Add "mode_table" entry.
39204 (lto_create_simple_input_block): Add mode_table argument to the
39205 lto_input_block constructors.
39206 * ipa-prop.c (ipa_prop_read_section, read_replacements_section):
39208 * data-streamer-in.c (string_for_index): Likewise.
39209 * ipa-inline-analysis.c (inline_read_section): Likewise.
39210 * ipa-icf.c (sem_item_optimizer::read_section): Likewise.
39211 * lto-cgraph.c (input_cgraph_opt_section): Likewise.
39212 * lto-streamer-in.c (lto_read_body_or_constructor,
39213 lto_input_toplevel_asms): Likewise.
39214 (lto_input_mode_table): New function.
39215 * tree-streamer-out.c (pack_ts_fixed_cst_value_fields,
39216 pack_ts_decl_common_value_fields, pack_ts_type_common_value_fields):
39217 Use bp_pack_machine_mode.
39218 * real.h (struct real_format): Add name field.
39219 * lto-streamer.h (enum lto_section_type): Add LTO_section_mode_table.
39220 (class lto_input_block): Add mode_table member.
39221 (lto_input_block::lto_input_block): Add mode_table_ argument,
39222 initialize mode_table.
39223 (struct lto_file_decl_data): Add mode_table field.
39224 (lto_input_mode_table, lto_output_init_mode_table): New prototypes.
39225 * tree-streamer-in.c (unpack_ts_fixed_cst_value_fields,
39226 unpack_ts_decl_common_value_fields,
39227 unpack_ts_type_common_value_fields): Call bp_unpack_machine_mode.
39228 * tree-streamer.c (streamer_mode_table): New variable.
39229 * real.c (ieee_single_format, mips_single_format,
39230 motorola_single_format, spu_single_format, ieee_double_format,
39231 mips_double_format, motorola_double_format,
39232 ieee_extended_motorola_format, ieee_extended_intel_96_format,
39233 ieee_extended_intel_128_format, ieee_extended_intel_96_round_53_format,
39234 ibm_extended_format, mips_extended_format, ieee_quad_format,
39235 mips_quad_format, vax_f_format, vax_d_format, vax_g_format,
39236 decimal_single_format, decimal_double_format, decimal_quad_format,
39237 ieee_half_format, arm_half_format, real_internal_format): Add name
39239 * config/pdp11/pdp11.c (pdp11_f_format, pdp11_d_format): Likewise.
39241 2015-02-26 Yuri Rumyantsev <ysrumyan@gmail.com>
39244 * config/i386/i386.c (ix86_sched_reorder): Skip instruction
39245 reordering for selective scheduling.
39247 2015-02-26 Terry Guo <terry.guo@arm.com>
39249 * config/arm/arm-cores.def (cortex-m7): Add flag FL_NO_VOLATILE_CE.
39250 * config/arm/arm-protos.h (FL_NO_VOLATILE_CE): New flag.
39251 (arm_arch_no_volatile_ce): Declare new global variable.
39252 * config/arm/arm.c (arm_arch_no_volatile_ce): New global variable.
39253 (arm_option_override): Assign value to arm_arch_no_volatile_ce.
39254 * config/arm/arm.h (arm_arch_no_volatile_ce): Declare it.
39255 (TARGET_NO_VOLATILE_CE): New macro.
39256 * config/arm/arm.md (arm_comparison_operator): Disabled if not allow
39257 volatile memory access in IT block
39259 2015-02-25 Kai Tietz <ktietz@redhat.com>
39261 PR tree-optimization/61917
39262 * tree-vect-loop.c (vectorizable_reduction): Handle obvious case
39263 that reduc_def_stmt is null.
39265 2015-02-25 Martin Liska <mliska@suse.cz>
39267 * ipa-icf-gimple.c (func_checker::compare_variable_decl): Compare
39268 hard register variables.
39270 2015-02-25 Kai Tietz <ktietz@redhat.com>
39273 * symtab.c (symtab::make_decl_local): Set DECL_IMPORT_P explicit to 0.
39274 (symtab::noninterposable_alias): Likewise.
39276 2015-02-25 Ilya Enkovich <ilya.enkovich@intel.com>
39279 * config/i386/i386.c (ix86_function_arg_regno_p): Support
39281 (avoid_func_arg_motion): Add dependencies for BNDSTX insns.
39283 2015-02-25 Alan Lawrence <alan.lawrence@arm.com>
39286 * config/aarch64/aarch64.md (*xor_one_cmpl<mode>3): Use FP_REGNUM_P
39287 as split condition; force split via '#' in output pattern.
39289 2015-02-25 Richard Biener <rguenther@suse.de>
39290 Kai Tietz <ktietz@redhat.com>
39292 PR tree-optimization/61917
39293 * tree-vect-loop.c (vectorizable_reduction): Allow
39294 vect_internal_def without reduction to exit graceful.
39296 2015-02-25 Georg-Johann Lay <avr@gjlay.de>
39299 * config/avr/avr.c (avr_adjust_insn_length): Call recog_memoized
39300 only with NONDEBUG_INSN_P.
39302 2015-02-25 Georg-Johann Lay <avr@gjlay.de>
39304 Use variadic macros with avr-log.c.
39306 * config/avr/avr-protos.h (avr_vdump): New prototype.
39307 (avr_log_set_caller_e, avr_log_set_caller_f): Remove protos.
39308 (avr_edump, avr_fdump, avr_dump): (Re)define to use avr_vdump.
39309 * config/avr/avr-log.c: Adjust comments.
39310 (avr_vdump): New function.
39311 (avr_vadump): Pass caller as 2nd argument instead of format string.
39312 (avr_log_caller, avr_log_fdump_e, avr_log_fdump_f)
39313 (avr_log_set_caller_e, avr_log_set_caller_f): Remove.
39315 2015-02-25 Jakub Jelinek <jakub@redhat.com>
39318 * target.def (target_option_stream_in): New target hook.
39319 * tree-streamer-in.c (streamer_read_tree_bitfields): Invoke
39320 targetm.target_option.post_stream_in if non-NULL.
39321 * doc/tm.texi.in: Add @hook TARGET_OPTION_POST_STREAM_IN.
39322 * doc/tm.texi: Updated.
39323 * config/i386/i386.c (ix86_function_specific_post_stream_in): New
39325 (TARGET_OPTION_POST_STREAM_IN): Redefine.
39327 2015-02-24 Jeff Law <law@redhat.com>
39330 * config/xtensa/xtensa.md (zero_cost_loop_start): Reverse numbering
39331 of operand 0 and operand 2.
39332 (zero_cost_loop_end, loop_end): Similarly.
39334 2015-02-24 Aldy Hernandez <aldyh@redhat.com>
39336 * gimple.h (gimple_build_assign): Rename CXX_MEM_STAT_DECL to
39339 2015-02-24 DJ Delorie <dj@redhat.com>
39341 * config/rl78/rl78-protos.h (rl78_split_movsi): Accept a mode as well.
39342 * config/rl78/rl78-expand.md (movsf): New, same as movsi.
39343 * config/rl78/rl78.c (rl78_split_movsi): Accept a mode, use it
39344 instead of hardcoding SImode.
39346 2015-02-24 Bernd Schmidt <bernds@codesourcery.com>
39348 * omp-low.c (create_omp_child_function): Tag entrypoint
39349 functions with a special attribute.
39351 2015-02-24 Michael Haubenwallner <michael.haubenwallner@ssi-schaefer.com>
39354 * config/rs6000/xcoff.h (ASM_OUTPUT_EXTERNAL): Drop unused variable.
39356 2015-02-24 Vladimir Makarov <vmakarov@redhat.com>
39358 PR rtl-optimization/65123
39359 * lra-remat.c (operand_to_remat): Check hard regs in insn
39362 2015-02-24 Nick Clifton <nickc@redhat.com>
39364 * config/v850/v850.h (ASM_SPEC): Pass -msoft-float/-mhard-float on
39367 2015-02-24 Thomas Schwinge <thomas@codesourcery.com>
39370 * omp-builtins.def (BUILT_IN_GOACC_DATA_START): Specify as
39371 BT_FN_VOID_INT_SIZE_PTR_PTR_PTR, not
39372 BT_FN_VOID_INT_PTR_SIZE_PTR_PTR_PTR.
39373 (BUILT_IN_GOACC_ENTER_EXIT_DATA, BUILT_IN_GOACC_UPDATE): Specify as
39374 BT_FN_VOID_INT_SIZE_PTR_PTR_PTR_INT_INT_VAR, not
39375 BT_FN_VOID_INT_PTR_SIZE_PTR_PTR_PTR_INT_INT_VAR.
39376 (BUILT_IN_GOACC_PARALLEL): Specify as
39377 BT_FN_VOID_INT_OMPFN_SIZE_PTR_PTR_PTR_INT_INT_INT_INT_INT_VAR, not
39378 BT_FN_VOID_INT_OMPFN_PTR_SIZE_PTR_PTR_PTR_INT_INT_INT_INT_INT_VAR.
39379 * builtin-types.def
39380 (BT_FN_VOID_INT_PTR_SIZE_PTR_PTR_PTR_INT_INT_VAR)
39381 (BT_FN_VOID_INT_OMPFN_PTR_SIZE_PTR_PTR_PTR_INT_INT_INT_INT_INT_VAR):
39382 Remove function types.
39383 (BT_FN_VOID_INT_SIZE_PTR_PTR_PTR)
39384 (BT_FN_VOID_INT_SIZE_PTR_PTR_PTR_INT_INT_VAR)
39385 (BT_FN_VOID_INT_OMPFN_SIZE_PTR_PTR_PTR_INT_INT_INT_INT_INT_VAR):
39386 New function types.
39388 2015-02-24 Georg-Johann Lay <avr@gjlay.de>
39390 * config/avr/stdfix.h [__WITH_AVRLIBC__]: Include <stdfix-avrlibc.h>.
39392 2015-02-24 Jakub Jelinek <jakub@redhat.com>
39394 PR tree-optimization/65170
39395 * wide-int.cc (wi::mul_internal): For the umul_ppmm optimization,
39396 if val[1] < 0, clear also val[2] and return 3.
39398 2015-02-24 Alan Modra <amodra@gmail.com>
39401 * config/rs6000/rs6000.c (get_memref_parts): Only return true
39402 when *base is a reg. Handle nested plus addresses. Simplify
39405 2015-02-22 Max Filippov <jcmvbkbc@gmail.com>
39407 * config/xtensa/xtensa.h (CONSTANT_ALIGNMENT, DATA_ALIGNMENT):
39408 use natural alignment when optimizing for size.
39410 2015-02-23 Kaz Kojima <kkojima@gcc.gnu.org>
39413 * config/sh/sh.md (movsicc_true+3): Remove peephole.
39414 * config/sh/sh-protos.h (replace_n_hard_rtx): Don't declare.
39415 * config/sh/sh.c (replace_n_hard_rtx): Remove.
39417 2015-02-23 Richard Sandiford <richard.sandiford@arm.com>
39420 * wide-int.cc (wi::from_mpz): Cope with unwrapped values that are
39421 too big for a wide_int. Implement missing wrapping operation.
39423 2015-02-23 Oleg Endo <olegendo@gcc.gnu.org>
39426 * config/sh/sh.md (swapbsi2, related peephole2): Use const_int -65536
39427 instead of const_int 4294901760.
39429 2015-02-23 Georg-Johann Lay <avr@gjlay.de>
39431 * config/avr/t-avr: Fix typo in comment.
39433 2015-02-21 Richard Sandiford <richard.sandiford@arm.com>
39435 * doc/rtl.texi (fma): Clarify documentation.
39437 2015-02-20 Aldy Hernandez <aldyh@redhat.com>
39440 * gimplify.c (gimplify_expr): Prefer location of TRY_FINALLY_EXPR
39441 over input_location.
39443 2015-02-20 Bernd Schmidt <bernds@codesourcery.com>
39445 * tree-streamer-in.c (unpack_ts_decl_common_value_fields,
39446 unpack_ts_type_common_value_fields): If ACCEL_COMPILER,
39447 restrict alignments to absolute_biggest_alignment.
39448 * config/i386/i386.c (TARGET_ABSOLUTE_BIGGEST_ALIGNMENT):
39450 * doc/tm.texi.in (TARGET_ABSOLUTE_BIGGEST_ALIGNMENT): Add.
39451 * doc/tm.texi: Regenerate.
39452 * target.def (absolute_biggest_alignment): New DEFHOOKPOD.
39454 2015-02-20 Vladimir Makarov <vmakarov@redhat.com>
39457 * ira-color.c (color_pass): Prevent splitting multi-register pseudos.
39459 2015-02-20 Richard Biener <rguenther@suse.de>
39461 PR tree-optimization/65136
39462 * tree-ssa-propagate.c: Include cfgloop.h.
39463 (replace_phi_args_in): Avoid replacing loop latch edge PHI
39464 arguments with constants.
39466 2015-02-20 Jakub Jelinek <jakub@redhat.com>
39467 Martin Liska <mliska@suse.cz>
39470 * ipa-icf.c (sem_function::merge): If DECL_COMDAT_GROUP (alias->decl),
39471 don't try to create_thunk if stdarg_p. If
39472 !sem_item::target_supports_symbol_aliases_p (), similarly, and try to
39473 redirect_callers if possible.
39474 (sem_item_optimizer::execute): Call unregister_hooks here...
39475 (ipa_icf_driver): ... instead of here.
39477 2015-02-20 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
39479 * config/aarch64/aarch64.md (*aarch64_lshr_sisd_or_int_<mode>3):
39480 Mark operand 0 as earlyclobber in 2nd alternative.
39481 (1st define_split below *aarch64_lshr_sisd_or_int_<mode>3):
39482 Write negated shift amount into QI lowpart operand 0 and use it
39484 (2nd define_split below *aarch64_lshr_sisd_or_int_<mode>3): Likewise.
39486 2015-02-20 Bernd Schmidt <bernds@codesourcery.com>
39488 * cgraph.h (clone_function_name_1): Declare.
39489 * cgraphclones.c (clone_function_name_1): New function.
39490 (clone_function_name): Use it.
39491 * lto-partition.c: Include "stringpool.h".
39492 (must_not_rename, maybe_rewrite_identifier)
39493 (validize_symbol_for_target): New static functions.
39494 (privatize_symbol_name): Use must_not_rename.
39495 (promote_symbol): Call validize_symbol_for_target.
39496 (lto_promote_cross_file_statics): Likewise.
39497 (lto_promote_statics_nonwpa): Likewise.
39499 2015-02-20 Georg-Johann Lay <avr@gjlay.de>
39502 * config/avr/avr.md (pushhi_insn): New insn.
39503 (push<mode>1): Push virtual regs in one chunk using pushhi1_insn.
39505 2015-02-20 Bernd Schmidt <bernds@codesourcery.com>
39506 Jakub Jelinek <jakub@redhat.com>
39508 * tree-streamer.c (preload_common_nodes): Don't preload
39509 TI_VA_LIST* for offloading.
39510 * tree-stdarg.c (pass_stdarg::gate): Disable for ACCEL_COMPILER
39513 2015-02-19 John David Anglin <danlgin@gcc.gnu.org>
39515 * config/pa/pa.c (pa_emit_move_sequence): Always force
39516 (const (plus (symbol) (const_int))) to const mem. Put REG_EQUAL
39519 * config/pa/pa.c (pa_reloc_rw_mask): New function.
39520 (TARGET_ASM_RELOC_RW_MASK): Define.
39521 (pa_cannot_force_const_mem): Revert previous change.
39523 2015-02-19 Martin Jambor <mjmabor@suse.cz>
39524 Jan Hubicka <hubicka@ucw.cz>
39527 * ipa-cp.c (propagate_alignment_accross_jump_function): Fix propagation
39528 across jump functions.
39530 2015-02-19 Uros Bizjak <ubizjak@gmail.com>
39532 * config/alpha/alpha.c (alpha_in_small_data_p): Reject common symbols.
39534 2015-02-19 Sandra Loosemore <sandra@codesourcery.com>
39536 * doc/extend.texi (x86 transactional memory intrinsics): Copy-edit.
39538 2015-02-19 Richard Henderson <rth@redhat.com>
39540 PR middle-end/65074
39541 * varasm.c (default_binds_local_p_2): Don't test node->definition;
39542 test DECL_EXTERNAL independent of symtab_node.
39544 2015-02-19 Jakub Jelinek <jakub@redhat.com>
39547 * varpool.c (varpool_node::get_constructor): Return early
39548 if this->lto_file_data is NULL.
39550 2015-02-19 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
39552 * haifa-sched.c (enum rfs_decision, rfs_str): Remove RFS_DEBUG.
39553 (rank_for_schedule_debug): Update.
39554 (ready_sort): Make static. Move sorting logic to ...
39555 (ready_sort_debug, ready_sort_real): New static functions.
39556 (schedule_block): Sort both debug insns and real insns in preparation
39557 for ready list trimming. Improve debug output.
39558 * sched-int.h (ready_sort): Remove global declaration.
39560 2015-02-18 Trevor Saunders <tsaunders@mozilla.com>
39562 * ipa-icf.c (sem_function::equals_private): Adjust.
39563 (sem_function::bb_dict_test): Take a vec<int> * instead of
39565 * ipa-icf.h (bb_dict_test): Likewise.
39567 2015-02-18 Jakub Jelinek <jakub@redhat.com>
39569 PR gcov-profile/64634
39570 * tree-eh.c (frob_into_branch_around): Fix up typos
39571 in function comment.
39572 (lower_catch): Put eh_seq resulting from EH lowering of
39573 the cleanup sequence after the cleanup rather than before it.
39575 2015-02-18 Tom de Vries <tom@codesourcery.com>
39577 * common.opt (fstdarg-opt): New option.
39578 * tree-stdarg.c (pass_stdarg::gate): Use flag_stdarg_opt.
39579 * doc/invoke.texi (@item Optimization Options): Add -fstdarg-opt.
39580 (@item -fstdarg-opt): New item.
39582 2015-02-18 H.J. Lu <hongjiu.lu@intel.com>
39585 * config/ia64/predicates.md (sdata_symbolic_operand): Return false
39586 for common symbols.
39588 2015-02-18 Jakub Jelinek <jakub@redhat.com>
39590 * config/i386/t-intelmic (mkoffload.o): Remove dependency on
39592 (ALL_HOST_OBJS): Add mkoffload.o.
39593 * config/nvptx/t-nvptx (ALL_HOST_OBJS): Likewise.
39595 2015-02-18 Jan Hubicka <hubicka@ucw.cz>
39597 * ipa-devirt.c (odr_subtypes_equivalent_p): Fix formating.
39598 (compare_virtual_tables): Be smarter about skipping typeinfos;
39599 do sane output on virtual table table mismatch.
39600 (warn_odr): Be ready for forward declarations of enums;
39601 output sane info on base mismatch and virtual table mismatch.
39602 (add_type_duplicate): Fix code choosing prevailing type; do not ICE
39603 when only one type is polymorphic.
39604 (get_odr_type): Fix hashtable corruption.
39605 (dump_odr_type): Dump mangled names.
39607 2015-02-18 Richard Biener <rguenther@suse.de>
39609 PR tree-optimization/65063
39610 * tree-predcom.c (determine_unroll_factor): Return 1 if we
39611 have replaced looparound PHIs.
39613 2015-02-18 Martin Liska <mliska@suse.cz>
39615 * lto-streamer.c (lto_streamer_init): Encapsulate
39616 streamer_check_handled_ts_structures with checking macro.
39618 2015-02-18 Jakub Jelinek <jakub@redhat.com>
39621 * cgraphclones.c (cgraph_node::create_virtual_clone): Only copy
39622 section if !implicit_section.
39623 (cgraph_node::create_version_clone_with_body): Likewise.
39624 * trans-mem.c (ipa_tm_create_version): Likewise.
39626 2015-02-18 Richard Biener <rguenther@suse.de>
39628 PR tree-optimization/62217
39629 * tree-ssa-dom.c (cprop_operand): Avoid propagating copies
39632 2015-02-18 Marek Polacek <polacek@redhat.com>
39635 * ubsan.c (OBJSZ_MAX_OFFSET): Define.
39636 (ubsan_expand_objsize_ifn): Don't emit run-time check if the offset
39637 is in range [-16K, -1]. Don't issue run-time error if
39638 (ptr > ptr + offset).
39640 2015-02-18 Thomas Schwinge <thomas@codesourcery.com>
39642 * doc/install.texi (nvptx-*-none): New section.
39643 * doc/invoke.texi (Nvidia PTX Options): Likewise.
39644 * config/nvptx/nvptx.opt: Update.
39646 * config/nvptx/mkoffload.c (parse_env_var, free_array_of_ptrs)
39647 (access_check): New functions, copied from
39648 config/i386/intelmic-mkoffload.c.
39649 (main): For non-installed testing, look in all COMPILER_PATHs for
39652 * config/nvptx/nvptx.h (GOMP_SELF_SPECS): Define macro.
39654 2015-02-18 Andrew Pinski <apinski@cavium.com>
39655 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
39657 * config/aarch64/aarch64.c (*aarch64_load_symref_appropriately):
39658 Check whether the destination of SYMBOL_SMALL_TPREL is Pmode.
39660 2015-02-17 Jan Hubicka <hubicka@ucw.cz>
39662 * ipa-visibility.c (function_and_variable_visibility): Only
39663 check locality if node is not already local.
39664 * ipa-inline.c (want_inline_function_to_all_callers_p): Use
39665 call_for_symbol_and_aliases instead of
39666 call_for_symbol_thunks_and_aliases.
39667 (ipa_inline): Likewise.
39668 * cgraph.c (cgraph_node::call_for_symbol_thunks_and_aliases):
39669 first walk aliases.
39670 * ipa.c (symbol_table::remove_unreachable_nodes): Use
39671 call_for_symbol_and_aliases.
39672 * ipa-profile.c (ipa_propagate_frequency_data): Add function_symbol.
39673 (ipa_propagate_frequency_1): Use it; use opt_for_fn
39674 (ipa_propagate_frequency): Update.
39675 (ipa_profile): Add opt_for_fn gueards.
39677 2015-02-17 Oleg Endo <olegendo@gcc.gnu.org>
39679 * config/sh/sh.opt (mcbranch-force-delay-slot): New option.
39680 * doc/invoke.texi (SH options): Document it.
39681 * config/sh/sh.c (sh_insn_length_adjustment): Check
39682 TARGET_CBRANCH_FORCE_DELAY_SLOT instead of sh_cpu_attr == CPU_SH2E.
39684 2015-02-17 H.J. Lu <hongjiu.lu@intel.com>
39686 * common.opt (fipa-cp-alignment): New.
39687 * ipa-cp.c (ipcp_store_alignment_results): Check
39688 flag_ipa_cp_alignment.
39689 * opts.c (default_options_table): Enable -fipa-cp-alignment for
39691 (enable_fdo_optimizations): Set x_flag_ipa_cp_alignment.
39692 * doc/invoke.texi: Document -fipa-cp-alignment.
39694 2015-02-17 Oleg Endo <olegendo@gcc.gnu.org>
39697 * config/sh/sh.md (cbranch define_delay): Set annulled true branch insn
39698 to nil. Adjust comments.
39700 2015-02-17 Jan Hubicka <hubicka@ucw.cz>
39702 * ipa-visibility.c (function_and_variable_visibility): Only
39703 check locality if node is not already local.
39704 * ipa-inline.c (want_inline_function_to_all_callers_p): Use
39705 call_for_symbol_and_aliases instead of
39706 call_for_symbol_thunks_and_aliases.
39707 (ipa_inline): Likewise.
39708 * cgraph.c (cgraph_node::call_for_symbol_thunks_and_aliases):
39709 first walk aliases.
39710 * ipa.c (symbol_table::remove_unreachable_nodes): Use
39711 call_for_symbol_and_aliases.
39712 * ipa-profile.c (ipa_propagate_frequency_data): Add function_symbol.
39713 (ipa_propagate_frequency_1): Use it; use opt_for_fn
39714 (ipa_propagate_frequency): Update.
39715 (ipa_profile): Add opt_for_fn guards.
39717 2015-02-17 Thomas Schwinge <thomas@codesourcery.com>
39719 * config/nvptx/mkoffload.c (parse_file): Fix logic error in
39720 skipping of "strange" tokens.
39722 2015-02-17 Jeff Law <law@redhat.com>
39724 * tree-vrp.c (identify_jump_threads): Use last_stmt. Remove
39727 2015-02-17 James Greenhalgh <james.greenhalgh@arm.com>
39729 * haifa-sched.c (recompute_todo_spec): Treat SCHED_GROUP_P
39730 as forcing a HARD_DEP between instructions, thereby
39731 disallowing rewriting to break dependencies.
39733 2015-02-16 Jan Hubicka <hubicka@ucw.cz>
39735 * symtab.c (symtab_node::verify_base): Verify body_removed->!definiton
39736 * lto-cgraph.c (lto_output_varpool_node): Do not keep definition of
39737 variables in boundary that have no inlitalizer encoded and are
39739 * varasm.c (default_binds_local_p_2): External definitions do not
39740 count as definitions here.
39742 2015-02-16 Jeff Law <law@redhat.com>
39744 PR tree-optimization/64823
39745 * tree-vrp.c (identify_jump_threads): Handle blocks with no real
39747 * tree-ssa-threadedge.c (potentially_threadable_block): Allow
39748 threading through blocks with PHIs, but no statements.
39749 (thread_through_normal_block): Distinguish between blocks where
39750 we did not process all the statements and blocks with no statements.
39752 2015-02-16 Jakub Jelinek <jakub@redhat.com>
39753 James Greenhalgh <james.greenhalgh@arm.com>
39756 * cgraphclones.c (cgraph_node::create_virtual_clone): Copy
39757 section if not linkonce. Fix up formatting.
39758 (cgraph_node::create_version_clone_with_body): Copy section.
39759 * trans-mem.c (ipa_tm_create_version): Likewise.
39761 2015-02-16 Richard Biener <rguenther@suse.de>
39763 PR tree-optimization/65077
39764 * tree-ssa-structalias.c (get_constraint_for_1): Handle
39765 IMAGPART_EXPR, REALPART_EXPR and BIT_FIELD_REF.
39766 (find_func_aliases): Allow float values to carry pointers again.
39768 2015-02-16 James Greenhalgh <james.greenhalgh@arm.com>
39770 * doc/install.texi (Specific): Reorder targets list to put
39771 aarch64 in alphabetical order. Add a link to aarch64*-*-*
39774 2015-02-16 Michael Haubenwallner <michael.haubenwallner@ssi-schaefer.com>
39775 David Edelsohn <dje.gcc@gmail.com>
39778 * config/rs6000/rs6000.c (rs6000_output_symbol_ref): Append storage
39779 mapping class to external variable or function reference.
39780 * config/rs6000/xcoff.h (ASM_OUTPUT_EXTERNAL): Do not append storage
39783 2015-02-16 David Eelsohn <dje.gcc@gmail.com>
39786 * config/rs6000/rs6000.c (rs6000_declare_alias): Only use
39787 ASM_WEAKEN_DECL if defined.
39789 2015-02-16 Richard Biener <rguenther@suse.de>
39792 * varasm.c (default_file_start): For LTO produced units
39793 emit <artificial> as file directive.
39795 2015-02-16 Richard Biener <rguenther@suse.de>
39797 PR tree-optimization/63593
39798 * tree-predcom.c (execute_pred_commoning_chain): Delay removing
39799 stmts and releasing SSA names until...
39800 (execute_pred_commoning): ... after processing all chains.
39802 2015-02-16 Jan Hubicka <hubicka@ucw.cz>
39805 * ipa-comdats.c (ipa_comdats): Do not categorize thunks to
39806 external functions.
39808 2015-02-15 Sandra Loosemore <sandra@codesourcery.com>
39810 * doc/bugreport.texi: Adjust section titles throughout the file
39811 to use "Title Case".
39812 * doc/extend.texi: Likewise.
39813 * doc/gcov.texi: Likewise.
39814 * doc/implement-c.texi: Likewise.
39815 * doc/implement-cxx.texi: Likewise.
39816 * doc/invoke.texi: Likewise.
39817 * doc/objc.texi: Likewise.
39818 * doc/standards.texi: Likewise.
39819 * doc/trouble.texi: Likewise.
39821 2015-02-15 Jan Hubicka <hubicka@ucw.cz>
39823 * cgraph.h (symtab_node::has_aliases_p): Simplify.
39824 (symtab_node::call_for_symbol_and_aliases): Use has_aliases_p
39825 * tree.c (lookup_binfo_at_offset): Make static.
39826 (get_binfo_at_offset): Do not shadow offset; add explanatory
39829 2015-02-15 John David Anglin <danglin@gcc.gnu.org>
39831 * config/pa/pa.c (pa_secondary_reload): Request a secondary reload
39832 for all floading point loads and stores except those using a register
39834 * config/pa/pa.md: Add new patterns to load a lo_sum DLT operand
39837 2015-02-14 Jan Hubicka <hubicka@ucw.cz>
39839 * ipa-inline-analysis.c (growth_data): Add uninlinable field.
39840 (do_estimate_growth_1): Record if any uninlinable edge was seen.
39841 (estimate_growth): Handle uninlinable edges correctly.
39842 (check_callers): New.
39843 (growth_likely_positive): Handle aliases correctly.
39845 2015-02-14 Jan Hubicka <hubicka@ucw.cz>
39847 * ipa-chkp.c: Use iterate_direct_aliases.
39848 * symtab.c (resolution_used_from_other_file_p): Move inline.
39849 (symtab_node::create_reference): Fix formating.
39850 (symtab_node::has_aliases_p): Move inline; use iterate_direct_aliases.
39851 (symtab_node::iterate_reference): Move inline.
39852 (symtab_node::iterate_referring): Move inline.
39853 (symtab_node::iterate_direct_aliases): Move inline.
39854 (symtab_node::used_from_object_file_p_worker): Inline into ...
39855 (symtab_node::used_from_object_file_p): ... this one; move inline.
39856 (symtab_node::call_for_symbol_and_aliases): Move inline;
39857 use iterate_direct_aliases.
39858 (symtab_node::call_for_symbol_and_aliases_1): New method.
39859 (cgraph_node::call_for_symbol_and_aliases): Move inline;
39860 use iterate_direct_aliases.
39861 (cgraph_node::call_for_symbol_and_aliases_1): New method.
39862 (varpool_node::call_for_node_and_aliases): Rename to ...
39863 (varpool_node::call_for_symbol_and_aliases): ... this one; Move inline;
39864 use iterate_direct_aliases.
39865 (varpool_node::call_for_symbol_and_aliases_1): New method.
39866 * ipa.c (ipa_single_use): Use iterate_direct_aliases.
39867 (ipa_discover_readonly_nonaddressable_var): Update.
39868 * ipa-devirt.c: Fix formating.
39869 * cgraph.c (cgraph_node::can_remove_if_no_direct_calls_and_refs_p):
39871 (cgraph_node::call_for_symbol_and_aliases): Move inline.
39872 (cgraph_node::call_for_symbol_and_aliases_1): New function..
39873 * cgraph.h (used_from_object_file_p_worker): Remove.
39874 (resolution_used_from_other_file_p): Move inline.
39875 (symtab_node::has_aliases_p): Move inline; use iterate_direct_aliases.
39876 (symtab_node::iterate_reference): Move inline.
39877 (symtab_node::iterate_referring): Move inline.
39878 (symtab_node::iterate_direct_aliases): Move inline.
39879 (symtab_node::used_from_object_file_p_worker): Inline into ...
39880 (symtab_node::used_from_object_file_p): Move inline.
39881 * tree-emutls.c (ipa_lower_emutls): Update.
39882 * varpool.c (varpool_node::call_for_symbol_and_aliases_1): New method.
39883 (varpool_node::call_for_node_and_aliases): Remove.
39885 2015-02-14 Jakub Jelinek <jakub@redhat.com>
39887 PR tree-optimization/62209
39888 * tree-ssa-reassoc.c (update_range_test): If stmt is a PHI and
39889 op == range->exp, insert seq and gimplified code after labels
39890 instead of after the phi.
39892 2015-02-13 Jeff Law <law@redhat.com>
39895 Revert my change for tree-optimization/64823.
39897 2015-02-13 Jakub Jelinek <jakub@redhat.com>
39899 PR tree-optimization/65053
39900 * tree-ssa-phiopt.c (value_replacement): When moving assign before
39901 cond, either reset VR on lhs or set it to phi result VR.
39903 2015-02-13 Jeff Law <law@redhat.com>
39905 PR tree-optimization/64823
39906 * tree-vrp.c (identify_jump_threads): Handle blocks with no statements.
39907 * tree-ssa-threadedge.c (potentially_threadable_block): Allow
39908 threading through blocks with PHIs, but no statements.
39909 (thread_through_normal_block): Distinguish between blocks where
39910 we did not process all the statements and blocks with no statements.
39912 PR rtl-optimization/47477
39913 * match.pd (convert (plus/minus (convert @0) (convert @1): New
39914 simplifier to narrow arithmetic.
39916 2015-02-13 Jan Hubicka <hubicka@ucw.cz>
39919 * ipa-prop.c (update_indirect_edges_after_inlining): Do not drop
39920 polymorphic call info when type is not known to be preserved.
39922 2015-02-13 Maritn Jambor <mjambor@suse.cz>
39925 * ipa-inline-transform.c (mark_all_inlined_calls_cdtor): New function.
39926 (inline_call): Use it.
39928 2015-02-13 Thomas Schwinge <thomas@codesourcery.com>
39930 * config/nvptx/offload.h (ACCEL_COMPILER_acc_device): Define to
39931 GOMP_DEVICE_NVIDIA_PTX.
39933 2015-02-13 Jakub Jelinek <jakub@redhat.com>
39936 * stmt.c (emit_case_nodes): Use void_type_node instead of
39937 NULL_TREE as LABEL_DECL type.
39939 2015-02-13 John David Anglin <danglin@gcc.gnu.org>
39941 * config/pa/constraints.md: Change "Q" and "T" constraints to memory
39943 * config/pa/pa.c (pa_cannot_force_const_mem): Don't allow constant
39944 symbolic references to data to be forced to constant memory on the
39947 2015-02-13 Ilya Enkovich <ilya.enkovich@intel.com>
39949 PR tree-optimization/65002
39950 * tree-cfg.c (pass_data_fixup_cfg): Don't update
39952 * tree-sra.c (some_callers_have_no_vuse_p): New.
39953 (ipa_early_sra): Reject functions whose callers
39954 assume function is read only.
39956 2015-02-13 Richard Biener <rguenther@suse.de>
39959 * dwarf2out.c (dwarf2out_finish): Use <artificial> as DW_AT_name
39960 for LTO produced CUs.
39962 2015-02-13 Bin Cheng <bin.cheng@arm.com>
39964 PR tree-optimization/64705
39965 * tree-ssa-loop-niter.h (expand_simple_operations): New parameter.
39966 * tree-ssa-loop-niter.c (expand_simple_operations): New parameter.
39967 * tree-ssa-loop-ivopts.c (extract_single_var_from_expr): New.
39968 (find_bivs, find_givs_in_stmt_scev): Pass new argument to
39969 expand_simple_operations.
39971 2015-02-13 H.J. Lu <hongjiu.lu@intel.com>
39972 Richard Henderson <rth@redhat.com>
39975 * cgraphunit.c (cgraph_node::finalize_function): Set definition
39976 before notice_global_symbol.
39977 (varpool_node::finalize_decl): Likewise.
39978 * varasm.c (default_binds_local_p_2): Rename from
39979 default_binds_local_p_1, add weak_dominate argument. Use direct
39980 returns instead of assigning to local variable. Unify varpool and
39981 cgraph paths via symtab_node. Reject undef weak variables before
39982 testing visibility. Reorder tests for simplicity.
39983 (default_binds_local_p): Use default_binds_local_p_2.
39984 (default_binds_local_p_1): Likewise.
39985 (decl_binds_to_current_def_p): Unify varpool and cgraph paths
39987 (default_elf_asm_output_external): Emit visibility when specified.
39989 2015-02-13 Alan Modra <amodra@gmail.com>
39991 * config/rs6000/rs6000.c (rs6000_emit_epilogue): Fix typo in
39992 code setting up r11 for out-of-line fp restore.
39994 2015-02-13 Eric Botcazou <ebotcazou@adacore.com>
39996 * config/visium/visium.opt (msv-mode): Add RejectNegative and Report.
39997 (muser-mode): Likewise.
39999 2015-02-13 Alan Modra <amodra@gmail.com>
40001 * config/rs6000/rs6000.c (rs6000_emit_epilogue): Use addsi3_carry
40002 or adddi3_carry when restoring frame_reg_rtx from r0 after restvr.
40004 2015-02-12 David Howells <dhowells@redhat.com>
40006 * tree-sra.c (dump_dereferences_table): Avoid -Wformat-security
40008 * tree-ssa-uninit.c (dump_predicates): Likewise.
40009 * opts.c (print_filtered_help): Likewise.
40011 2015-02-12 Jakub Jelinek <jakub@redhat.com>
40013 * dwarf2out.c (output_die): Use "%s", name instead of name to
40014 avoid -Wformat-security warning.
40016 * dwarf2asm.c (dw2_asm_output_vms_delta): Only define
40017 if ASM_OUTPUT_DWARF_VMS_DELTA is defined.
40018 * dwarf2out.c (output_die): Use dw2_asm_output_vms_delta
40019 only if ASM_OUTPUT_DWARF_VMS_DELTA is defined.
40021 2015-02-12 Jason Merrill <jason@redhat.com>
40023 * common.opt (-flifetime-dse): New.
40025 2015-02-12 Jakub Jelinek <jakub@redhat.com>
40028 * ubsan.c (ubsan_expand_objsize_ifn): Always return true.
40030 PR tree-optimization/65014
40031 * fold-const.c (fold_binary_loc): When creating {L,R}ROTATE_EXPR,
40032 use original second operand of arg0 or arg1 instead of
40033 that adjusted by STRIP_NOPS.
40035 2015-02-11 Jeff Law <law@redhat.com>
40038 * haifa-sched.c (prune_ready_list): If we have a SCHED_GROUP_P insn
40039 that needs to be queued, just queue it for a single cycle.
40041 2015-02-11 Jan Hubicka <hubicka@ucw.cz>
40043 * ipa.c (symbol_table::remove_unreachable_nodes): Avoid releasing
40044 bodies of thunks; comment on why.
40045 * symtab.c (symtab_node::get_partitioning_class): Aliases of extern
40046 symbols are extern.
40048 2015-02-11 Richard Henderson <rth@redhat.com>
40051 * tree-eh.c (mark_reachable_handlers): Mark source and destination
40052 regions of __builtin_eh_copy_values.
40054 2015-02-11 Jakub Jelinek <jakub@redhat.com>
40056 PR middle-end/65003
40057 * varasm.c (place_block_symbol): Assert that DECL_RTL of the
40058 ultimate alias is MEM with SYMBOL_REF satisfying
40059 SYMBOL_REF_HAS_BLOCK_INFO_P as its operand. Don't pass the MEM
40060 to place_block_symbol, but instead pass the SYMBOL_REF operand of it.
40062 2015-02-11 Thomas Schwinge <thomas@codesourcery.com>
40064 * config/nvptx/mkoffload.c: Include "diagnostic.h" instead of
40065 "diagnostic-core.h".
40066 (main): Initialize progname, and call diagnostic_initialize.
40068 * config/nvptx/mkoffload.c (process): Refer to __OFFLOAD_TABLE__
40069 instead of __OPENMP_TARGET__.
40071 * config/nvptx/mkoffload.c: Include "gomp-constants.h".
40072 (process): Use its GOMP_DEVICE_NVIDIA_PTX instead of (wrongly)
40073 hard-coding PTX_ID.
40075 2015-02-11 H.J. Lu <hongjiu.lu@intel.com>
40077 * doc/sourcebuild.texi (pie_enabled): Document.
40079 2015-02-11 Martin Liska <mliska@suse.cz>
40082 * cgraphunit.c (cgraph_node::expand_thunk): Do not create
40083 a return value for call to a function that is noreturn.
40085 2015-02-11 Richard Biener <rguenther@suse.de>
40088 * dwarf2out.c (gen_producer_string): Drop -fltrans-output-list
40091 2015-02-11 Andrew Pinski <apinski@cavium.com>
40094 * config/aarch64/aarch64-builtins.c (aarch64_init_simd_builtins):
40095 Change the first argument type to size_type_node and add another
40097 (aarch64_simd_expand_builtin): Handle the new argument to
40098 AARCH64_SIMD_BUILTIN_LANE_CHECK and don't ICE but rather
40099 print an out when the first two arguments are not
40100 nonzero integer constants.
40101 * config/aarch64/arm_neon.h (__AARCH64_LANE_CHECK):
40102 Pass the sizeof directly to __builtin_aarch64_im_lane_boundsi.
40104 2015-02-11 Jakub Jelinek <jakub@redhat.com>
40107 * config/i386/i386.c (ix86_reset_to_default_globals): Removed.
40108 (ix86_reset_previous_fndecl): Restore it here, unconditionally.
40109 (ix86_set_current_function): Rewritten.
40110 (ix86_add_new_builtins): Temporarily clear current_target_pragma
40111 when creating builtin fndecls.
40113 2015-02-10 Jan Hubicka <hubicka@ucw.cz>
40116 * ipa-visibility.c (cgraph_node::non_local_p): Turn into static
40118 * symtab.c (symtab_node::verify_base): Remove check that non-definitions
40119 have no comdat group.
40120 * lto-cgraph.c (lto_output_node): Always output thunk and alias info.
40121 (lto_output_varpool_node): Always output alias info.
40122 (output_refs): Output refs of boundary aliases, too.
40123 (compute_ltrans_boundary): Add alias and thunk target into boundaries.
40124 (output_symtab): Output call eges in thunks in boundary.
40125 (get_alias_symbol): Remove.
40126 (input_node, input_varpool_node): Do not special case weakrefs.
40127 * ipa.c (symbol_table::remove_unreachable_nodes): Do not remove
40128 alias and thunks targets in the boundary; do not take removed symbols
40129 from their comdat groups.
40130 * cgraph.c (cgraph_node::local_info): Look through aliases and thunks.
40131 (cgraph_node::global_info): Remove.
40132 (cgraph_node::rtl_info): Look through aliases and thunks.
40133 * cgrpah.h (global_info): Remove.
40134 (non_local_p): Remove.
40136 2015-02-10 David Wohlferd <dw@LimeGreenSocks.com>
40137 Sandra Loosemore <sandra@codesourcery.com>
40139 * doc/invoke.texi (x86 Options [-masm=dialect]): Add cross-references
40140 to inline asm. List dialects in proper order.
40142 2015-02-10 David Wohlferd <dw@LimeGreenSocks.com>
40143 Sandra Loosemore <sandra@codesourcery.com>
40145 * doc/extend.texi (Loop-Specific Pragmas): Fix grammar error.
40147 2015-02-10 David Wohlferd <dw@LimeGreenSocks.com>
40149 * doc/extend.texi (Symbol-Renaming Pragmas): Restore (slightly
40150 modified) reference to Solaris.
40152 2015-02-10 Sandra Loosemore <sandra@codesourcery.com>
40154 * doc/extend.texi (Extended Asm): Fix typos.
40156 2015-02-10 Jakub Jelinek <jakub@redhat.com>
40159 * ubsan.c (ubsan_expand_vptr_ifn): Always return true.
40161 2015-02-10 Oleg Endo <olegendo@gcc.gnu.org>
40164 * config/sh/sh-protos.h (TARGET_ATOMIC_ANY, TARGET_ATOMIC_STRICT,
40165 TARGET_ATOMIC_SOFT_GUSA, TARGET_ATOMIC_HARD_LLCS,
40166 TARGET_ATOMIC_SOFT_TCB, TARGET_ATOMIC_SOFT_IMASK): Add parentheses.
40167 * config/sh/constraints.md (Ara, Add): New constraints.
40168 * config/sh/sync.md (atomic_mem_operand_0, atomic_mem_operand_1): New
40170 (atomic_compare_and_swap<mode>, atomic_exchange<mode>): Use
40171 atomic_mem_operand_0. Don't use force_reg on the memory address.
40172 (atomic_compare_and_swapsi_hard): Use atomic_mem_operand_0 predicate and
40173 Sra constraint. Convert to insn_and_split. Add workaround for
40175 (atomic_compare_and_swap<mode>_hard): Copy to
40176 atomic_compare_and_swap<mode>_hard_1. Convert to insn_and_split.
40177 Use atomic_mem_operand_0 predicate.
40178 (atomic_compare_and_swap<mode>_soft_gusa,
40179 atomic_exchange<mode>_soft_gusa): Use atomic_mem_operand_0 predicate and
40180 AraAdd constraints.
40181 (atomic_compare_and_swap<mode>_soft_tcb,
40182 atomic_compare_and_swap<mode>_soft_imask,
40183 atomic_exchange<mode>_soft_tcb, atomic_exchange<mode>_soft_imask): Use
40184 atomic_mem_operand_0 predicate and SraSdd constraints.
40185 (atomic_exchangesi_hard) Use atomic_mem_operand_0 predicate and Sra
40187 (atomic_exchange<mode>_hard): Copy to atomic_exchange<mode>_hard_1.
40188 Convert to insn_and_split. Use atomic_mem_operand_0 predicate.
40189 (atomic_fetch_<fetchop_name><mode>, atomic_fetch_nand<mode>,
40190 atomic_<fetchop_name>_fetch<mode>): Use atomic_mem_operand_1. Don't use
40191 force_reg on the memory address.
40192 (atomic_fetch_<fetchop_name>si_hard, atomic_fetch_notsi_hard,
40193 atomic_fetch_nandsi_hard, atomic_<fetchop_name>_fetchsi_hard,
40194 atomic_not_fetchsi_hard, atomic_nand_fetchsi_hard): Use
40195 atomic_mem_operand_1 predicate and Sra constraint.
40196 (atomic_fetch_<fetchop_name><mode>_hard): Copy to
40197 atomic_fetch_<fetchop_name><mode>_hard_1. Convert to insn_and_split.
40198 Use atomic_mem_operand_1 predicate.
40199 (atomic_<fetchop_name><mode>_hard): Copy to
40200 atomic_<fetchop_name><mode>_hard_1. Convert to insn_and_split.
40201 Use atomic_mem_operand_1 predicate.
40202 (atomic_fetch_nand<mode>_hard): Copy to atomic_fetch_nand<mode>_hard_1.
40203 Convert to insn_and_split. Use atomic_mem_operand_1 predicate.
40204 (atomic_nand<mode>_hard): Copy to atomic_nand<mode>_hard_1. Convert to
40205 insn_and_split. Use atomic_mem_operand_1 predicate.
40206 (atomic_<fetchop_name>_fetch<mode>_hard): Copy to
40207 atomic_<fetchop_name>_fetch<mode>_hard_1. Convert to insn_and_split.
40208 Use atomic_mem_operand_1 predicate.
40209 (atomic_nand_fetch<mode>_hard): Copy to atomic_nand_fetch<mode>_hard_1.
40210 Convert to insn_and_split. Use atomic_mem_operand_1 predicate.
40211 (atomic_fetch_not<mode>_hard, atomic_not_fetch<mode>_hard): Replace mems
40212 in generated insn with original mem operand before emitting the insn.
40213 (atomic_fetch_<fetchop_name><mode>_soft_gusa,
40214 atomic_fetch_not<mode>_soft_gusa, atomic_fetch_nand<mode>_soft_gusa,
40215 atomic_<fetchop_name>_fetch<mode>_soft_gusa,
40216 atomic_not_fetch<mode>_soft_gusa, atomic_nand_fetch<mode>_soft_gusa):
40217 Use atomic_mem_operand_1 predicate and AraAdd constraints.
40218 (atomic_fetch_<fetchop_name><mode>_soft_tcb,
40219 atomic_<fetchop_name><mode>_soft_tcb, atomic_fetch_not<mode>_soft_tcb,
40220 atomic_not<mode>_soft_tcb, atomic_fetch_<fetchop_name><mode>_soft_imask,
40221 atomic_fetch_not<mode>_soft_imask, atomic_fetch_nand<mode>_soft_tcb,
40222 atomic_nand<mode>_soft_tcb, atomic_fetch_nand<mode>_soft_imask,
40223 atomic_<fetchop_name>_fetch<mode>_soft_tcb,
40224 atomic_not_fetch<mode>_soft_tcb,
40225 atomic_<fetchop_name>_fetch<mode>_soft_imask,
40226 atomic_not_fetch<mode>_soft_imask, atomic_nand_fetch<mode>,
40227 atomic_nand_fetch<mode>_soft_tcb, atomic_nand_fetch<mode>_soft_imask):
40228 Use atomic_mem_operand_1 predicate and SraSdd constraints.
40230 2015-02-10 Uros Bizjak <ubizjak@gmail.com>
40232 * config/alpha/alpha.md (reload_out<mode>_aligned): Make operands 2
40233 and 3 earlyclobber operands.
40235 2015-02-10 Jan Hubicka <hubicka@ucw.cz>
40237 * common.opt (fstack-reuse): Mark as optimization.
40239 2015-02-10 Jan Hubicka <hubicka@ucw.cz>
40242 * cgraphunit.c (cgraph_node::expand_thunk): Look for stdarg thunks.
40244 2015-02-10 Trevor Saunders <tsaunders@mozilla.com>
40246 PR tree-optimization/64326
40247 * cfghooks.c (make_forwarder_block): Cap frequency of created block.
40249 2015-02-10 Rainer Emrich <rainer@emrich-ebersheim.de>
40251 PR gcov-profile/61889
40252 * gcov-tool.c: Remove wrong #if !defined(_WIN32)
40254 2015-02-10 Richard Biener <rguenther@suse.de>
40256 PR tree-optimization/64995
40257 * tree-ssa-sccvn.c (set_ssa_val_to): Assert that the
40258 value we use is final.
40259 (visit_reference_op_store): Always valueize op.
40260 (visit_use): Properly valueize vuses.
40262 2015-02-10 Richard Biener <rguenther@suse.de>
40264 PR tree-optimization/64909
40265 * tree-vect-loop.c (vect_estimate_min_profitable_iters): Properly
40266 pass a scalar-stmt count estimate to the cost model.
40267 * tree-vect-data-refs.c (vect_peeling_hash_get_lowest_cost): Likewise.
40269 2015-02-10 Alexander Monakov <amonakov@ispras.ru>
40271 * doc/invoke.texi (-fvar-tracking-assignments): Clarify that VTA is
40272 enabled by default together with var-tracking.
40274 2015-02-10 Nick Clifton <nickc@redhat.com>
40276 * config/rl78/rl78.c: Remove DIV attribute code accidentally
40277 included in previous rl78 commit.
40279 2015-02-10 Richard Biener <rguenther@suse.de>
40281 * tree-streamer.h (streamer_read_tree_bitfields): Adjust.
40282 * tree-streamer-in.c (streamer_read_tree_bitfields): Do not
40283 return the bitpack.
40285 2015-02-09 Trevor Saunders <tsaunders@mozilla.com>
40287 PR gcov-profile/61889
40288 * config.in: regenerate.
40289 * configure.in: Likewise.
40290 * configure.ac: Check for ftw.h.
40291 * gcov-tool.c: Check for ftw.h before using nftw.
40293 2015-02-09 Trevor Saunders <tsaunders@mozilla.com>
40296 * ipa-visibility.c (update_visibility_by_resolution_info): Only
40297 assert when not in lto mode.
40299 2015-02-09 Zhouyi Zhou <yizhouzhou@ict.ac.cn>
40301 * ira-color.c (setup_left_conflict_sizes_p): Simplify
40302 initialization/assignment of conflict_size.
40304 2015-02-09 Jan Hubicka <hubicka@ucw.cz>
40307 * ipa-cp.c (gather_caller_stats): Skip thunks.
40308 (propagate_constants_topo): Skip aliases.
40310 2015-02-09 Kaz Kojima <kkojima@gcc.gnu.org>
40313 * config/sh/sh.c (sh_option_override): Don't change
40314 -freorder-blocks-and-partition to -freorder-blocks even when
40315 unwinding is enabled.
40316 (sh_can_follow_jump): Return false if the followee jump is
40317 a crossing jump when -freorder-blocks-and-partition is specified.
40318 * config/sh/sh.md (*jump_compact_crossing): New insn.
40320 2015-02-09 Joern Rennecke <joern.rennecke@embecosm.com>
40321 Kaz Kojima <kkojima@gcc.gnu.org>
40324 * config/sh/sh-protos.h (sh_can_redirect_branch): Don't declare.
40325 * config/sh/sh.c (TARGET_CAN_FOLLOW_JUMP): Redefine.
40326 (sh_can_redirect_branch): Rename to ...
40327 (sh_can_follow_jump): ... this. Constify argument types.
40328 * config/sh/sh.h (MD_CAN_REDIRECT_BRANCH): Don't define.
40329 * doc/tm.texi.in (MD_CAN_REDIRECT_BRANCH): Remove documentation.
40330 * reorg.c (steal_delay_list_from_target): Use targetm.can_follow_jump.
40331 * doc/tm.texi: Regenerate.
40333 2015-02-09 Jakub Jelinek <jakub@redhat.com>
40336 * builtins.c (expand_builtin): Call targetm.expand_builtin
40337 for BUILT_IN_MD builtins regardless of asan_intercepted_p.
40339 2015-02-08 Jan Hubicka <hubicka@ucw.cz>
40342 * tree-emutls.c (ipa_lower_emutls): Avoid duplicates in TLS_VARS.
40344 2015-02-08 Jan Hubicka <hubicka@ucw.cz>
40347 * ipa-icf.c (set_local): New function.
40348 (sem_function::merge): Use it.
40350 2015-02-08 Jan Hubicka <hubicka@ucw.cz>
40352 * ipa-devirt.c (odr_types_equivalent_p): Fix formating.
40353 (add_type_duplicate): Fix comparison of BINFOs.
40355 2015-02-08 Jan Hubicka <hubicka@ucw.cz>
40357 * ipa-polymorphic-call.c (ipa_polymorphic_call_context): Avoid ICE
40358 on getting VOID pointer.
40360 2015-02-09 Jakub Jelinek <jakub@redhat.com>
40363 * tree-stdarg.c (pass_stdarg::execute): Scan phi node args for
40366 2015-02-09 Richard Biener <rguenther@suse.de>
40368 * genmatch.c (replace_id): Copy expr_type.
40370 2015-02-09 Richard Biener <rguenther@suse.de>
40372 * tree-streamer.h (streamer_pack_tree_bitfields): Remove.
40373 (streamer_write_tree_bitfields): Declare.
40374 * tree-streamer-in.c (unpack_ts_base_value_fields): Inline,
40375 properly unpack padding.
40376 (unpack_value_fields): Inline ...
40377 (streamer_read_tree_bitfields): ... here.
40378 * tree-streamer-out.c (pack_ts_base_value_fields): Inline
40379 and properly add padding bits.
40380 (streamer_pack_tree_bitfields): Fold into ...
40381 (streamer_write_tree_bitfields): ... this new function,
40382 exposing the bitpack object.
40383 * lto-streamer-out.c (lto_write_tree_1): Call
40384 streamer_write_tree_bitfields.
40386 2015-02-09 Richard Biener <rguenther@suse.de>
40388 PR tree-optimization/54000
40389 * tree-ssa-looo-ivopts.c: Include tree-vectorizer.h.
40390 (struct ivopts_data): Add loop_loc member.
40391 (tree_ssa_iv_optimize_loop): Dump loop location.
40392 (create_new_ivs): Likewise, also dump number of IVs generated.
40394 2015-02-09 Martin Liska <mliska@suse.cz>
40396 * ipa-icf.c (sem_item_optimizer::register_hooks): Register hooks
40397 just if not yet registered.
40398 (ipa_icf_generate_summary): Register callgraph hooks.
40400 2015-02-08 Andrew Pinski <apinski@cavium.com>
40402 * config/aarch64/aarch64.c (gty_dummy): Delete.
40404 2015-02-08 Jan Hubicka <hubicka@ucw.cz>
40407 * ipa-visibility.c (cgraph_node::non_local_p): Accept aliases.
40408 (cgraph_node::local_p): Remove thunk related FIXME.
40410 2015-02-08 Jan Hubicka <hubicka@ucw.cz>
40413 * i386.c (ix86_function_regparm): Look through aliases to see if callee
40414 is local and optimized.
40415 (ix86_function_sseregparm): Likewise; also use target's SSE math
40416 settings; error out instead of silently generating wrong code
40418 (init_cumulative_args): Look through aliases.
40420 2015-02-08 Jan Hubicka <hubicka@ucw.cz>
40423 * ipa-split.c (execute_split_functions): Split if function has aliases.
40425 2015-02-08 Jan Hubicka <hubicka@ucw.cz>
40428 * cgraphunit.c (cgraph_node::analyze): Be sure target of thunk is
40429 aliases before trying to expand it.
40430 (cgraph_node::expand_thunk): Fix formating.
40432 2015-02-07 Sandra Loosemore <sandra@codesourcery.com>
40434 * doc/extend.texi (Function Attributes [naked]): Copy-edit.
40435 (Using Assembly Language with C): Expand introduction.
40436 (Basic Asm): Copy-edit. Add more information about uses of
40438 (Extended Asm): Copy-edit. Document new escape syntax and
40440 (Global Reg Vars): Copy-edit.
40441 (Local Reg Vars): Likewise.
40443 2015-02-06 David Edelsohn <dje.gcc@gmail.com>
40447 * xcoffout.h (DBX_CONTIN_LENGTH): Define as 16384.
40448 (DBX_CONTIN_CHAR): Define.
40450 2015-02-06 Sebastian Pop <s.pop@samsung.com>
40451 Brian Rzycki <b.rzycki@samsung.com>
40453 PR tree-optimization/64878
40454 * tree-ssa-threadedge.c: Include tree-ssa-loop.h.
40455 (fsm_find_control_statement_thread_paths): Add parameter seen_loop_phi.
40456 Stop recursion at loop phi nodes after having visited a loop phi node.
40458 2015-02-06 Jakub Jelinek <jakub@redhat.com>
40460 * toplev.c (process_options): Change flag_ipa_ra before creating
40461 optimization_{default,current}_node.
40464 * cgraphunit.c (cgraph_node::expand_thunk): If
40465 restype is not is_gimple_reg_type nor the thunk_fndecl
40466 returns aggregate_value_p, set restmp to a temporary variable
40467 instead of resdecl.
40469 2015-02-06 Vladimir Makarov <vmakarov@redhat.com>
40471 * lra.c (lra_emit_add): Fix a typo in using disp instead of base.
40473 2015-02-06 Michael Meissner <meissner@linux.vnet.ibm.com>
40476 * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Do not
40477 add a general secondary reload handler for SDmode, unless we have
40478 both read/write support for SDmode.
40480 2015-02-06 Jakub Jelinek <jakub@redhat.com>
40482 PR middle-end/64937
40483 * dwarf2out.c (set_block_abstract_flags, set_decl_abstract_flags):
40484 Replace setting argument with abstract_vec, always set BLOCK_ABSTRACT
40485 or DECL_ABSTRACT_P flags to 1 rather than to setting, and if it wasn't
40486 1 before, push it to abstract_vec.
40487 (dwarf2out_abstract_function): Adjust caller. Don't call
40488 set_decl_abstract_flags second time, instead clear BLOCK_ABSTRACT or
40489 DECL_ABSTRACT_P flags for all abstract_vec elts.
40491 2015-02-06 Renlin Li <renlin.li@arm.com>
40493 * tree-ssa-forwprop.c (execute): Keep location info while rewrite
40495 * tree-ssa.c (execute_update_addresses_taken): Likewise.
40497 2015-02-06 Jeff Law <law@redhat.com>
40500 * config/h8300/h8300.c (push): New argument "in_prologue".
40501 Pass "in_prologue" along to "F".
40502 (h8300_push_pop): Corresponding changes.
40503 (h8300_expand_prologue): Likewise.
40504 (h8300_swap_into_er6): Likewise. Do not set RTX_FRAME_RELATED_P.
40506 2015-02-06 Jakub Jelinek <jakub@redhat.com>
40508 PR rtl-optimization/64957
40510 * simplify-rtx.c (simplify_binary_operation_1): Use ~cval for
40511 IOR rather than for AND.
40513 2015-02-06 Eric Botcazou <ebotcazou@adacore.com>
40516 * tree-ssa-loop-ivopts.c (get_shiftadd_cost): Use the mininum of costs
40517 of shift-add and (add + shift) operations. Rename local variable.
40519 2015-02-05 Jeff Law <law@redhat.com>
40522 * config/h8300/constraints.md (U): Correctly dectect
40523 "eightbit_data" memory addresses.
40524 * config/h8300/h8300.c (eightbit_constant_address_p): Also
40525 handle (const (plus (symbol_ref (x)))) where x is declared
40526 as an 8-bit data memory address.
40527 * config/h8300/h8300.md (call, call_value): Correctly detect
40528 "funcvec" functions.
40531 * config/h8300/h8300.c (get_shift_alg): Fix ASHIFTRT by
40532 24 to 28 bits for the H8/300.
40534 2015-02-06 Alan Modra <amodra@gmail.com>
40537 * config/rs6000/rs6000.c (chain_already_loaded): New function.
40538 (rs6000_call_aix): Use it.
40540 2015-02-05 Jan Hubicka <hubicka@ucw.cz>
40542 * ipa-cp.c (ipa_value_from_jfunc, ipa_context_from_jfunc): Add bounds
40545 2015-02-05 Joern Rennecke <joern.rennecke@embecosm.com>
40547 * config/h8300/constraints.md ("U" constraint): Use strict
40548 variant of REG_OK_FOR_BASE_P after reload has started.
40550 2015-02-04 Mantas Mikaitis <mantas.mikaitis@arm.com>
40552 * config/arm/arm.h (TARGET_NEON_FP): Removed conditional definition,
40553 define to zero if !TARGET_NEON.
40554 (TARGET_ARM_FP): Added !TARGET_SOFT_FLOAT into conditional definition.
40556 2015-02-04 Jan Hubicka <hubicka@ucw.cz>
40557 Trevor Saunders <tsaunders@mozilla.com>
40560 * tree-emultls.c (new_emutls_decl): Resolve alias after creating it.
40562 2015-02-04 Jan Hubicka <hubicka@ucw.cz>
40565 * ipa.c (symbol_table::remove_unreachable_nodes): Fix ordering issue
40566 when removing varpool nodes.
40568 2015-02-04 Jan Hubicka <hubicka@ucw.cz>
40571 * varpool.c (varpool_node::remove): Fix order of variables.
40573 2015-02-04 Jan Hubicka <hubicka@ucw.cz>
40576 * ipa-inline.c (inline_small_functions): Fix ordering issue between
40577 speculation resolution and key updates.
40579 2015-02-04 Jan Hubicka <hubicka@ucw.cz>
40581 * ipa-prop.c (update_indirect_edges_after_inlining): By more careful
40582 about not letting any speculative edges unupdated.
40584 2015-02-04 Jan Hubicka <hubicka@ucw.cz>
40587 * gcov-io.c (gcov_var): Export.
40589 2015-02-04 Jan Hubicka <hubicka@ucw.cz>
40591 PR middle-end/64922
40592 * ipa-prop.c (update_indirect_edges_after_inlining): Correctly update
40593 edges that become speculative.
40595 2015-02-04 Jakub Jelinek <jakub@redhat.com>
40597 * dwarf2out.c (is_fortran): Also return true for DW_LANG_Fortran03
40598 or DW_LANG_Fortran08.
40599 (lower_bound_default): Return 1 for DW_LANG_Fortran03 or
40601 (gen_compile_unit_die): Handle "GNU Fortran2003" and
40602 "GNU Fortran2008" language strings.
40603 * dbxout.c (get_lang_number): Use lang_GNU_Fortran.
40604 * langhooks.h (lang_GNU_Fortran): New prototype.
40605 * langhooks.c (lang_GNU_Fortran): New function.
40606 * config/rs6000/rs6000.c (rs6000_output_function_epilogue): Use
40609 2015-02-04 Eric Botcazou <ebotcazou@adacore.com>
40611 * config/sparc/sparc.c (RTX_OK_FOR_OFFSET_P): Fix off-by-one error.
40612 (RTX_OK_FOR_OLO10_P): Likewise.
40614 2015-02-04 Eric Botcazou <ebotcazou@adacore.com>
40616 * tree-ssa-loop-ivopts.c (get_address_cost): Use right mode for offset.
40618 2015-02-04 Jan Hubicka <hubicka@ucw.cz>
40620 PR middle-end/64922
40621 * gimple.c: Include gimple-ssa.h.
40622 (maybe_remove_unused_call_args): New function.
40623 * gimple.h (maybe_remove_unused_call_args): Declare.
40624 * cgraph.c (cgraph_edge::redirect_call_stmt_to_callee): Use it.
40625 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children): Likewise.
40626 * gimple-fold.c (gimple_fold_call): Likewise.
40628 2015-02-04 H.J. Lu <hongjiu.lu@intel.com>
40630 PR rtl-optimization/64905
40631 * lra-eliminations.c (setup_can_eliminate): Clear hard frame
40632 pointer alignment if it isn't needed.
40634 2015-02-04 Matthew Wahab <matthew.wahab@arm.com>
40636 * config/aarch64/aarch64-cores.def: Add cortex-a72 and
40637 cortex-a72.cortex-a53.
40638 * config/aarch64/aarch64-tune.md: Regenerate.
40639 * doc/invoke.texi (AArch64 Options/-mtune): Add "cortex-a72".
40641 2015-02-04 Nick Clifton <nickc@redhat.com>
40643 * config/rl78/rl78.c (rl78_note_reg_set): Note the use of REGs
40646 2015-02-04 Jakub Jelinek <jakub@redhat.com>
40648 * builtins.def (DEF_BUILTIN_CHKP): Define if not defined.
40649 (DEF_LIB_BUILTIN_CHKP, DEF_EXT_LIB_BUILTIN_CHKP): Redefine.
40650 (DEF_CHKP_BUILTIN): Define using DEF_BUILTIN_CHKP instead
40652 (BUILT_IN_MEMCPY, BUILT_IN_MEMMOVE, BUILT_IN_MEMSET, BUILT_IN_STRCAT,
40653 BUILT_IN_STRCHR, BUILT_IN_STRCPY, BUILT_IN_STRLEN): Use
40654 DEF_LIB_BUILTIN_CHKP macro instead of DEF_LIB_BUILTIN.
40655 (BUILT_IN_MEMCPY_CHK, BUILT_IN_MEMMOVE_CHK, BUILT_IN_MEMPCPY_CHK,
40656 BUILT_IN_MEMPCPY, BUILT_IN_MEMSET_CHK, BUILT_IN_STPCPY_CHK,
40657 BUILT_IN_STPCPY, BUILT_IN_STRCAT_CHK, BUILT_IN_STRCPY_CHK): Use
40658 DEF_EXT_LIB_BUILTIN_CHKP macro instead of DEF_EXT_LIB_BUILTIN.
40659 * tree-core.h (enum built_in_function): In between
40660 BEGIN_CHKP_BUILTINS and END_CHKP_BUILTINS only define enum values
40661 for builtins that use DEF_BUILTIN_CHKP macro.
40663 2015-02-04 Alexandre Oliva <aoliva@redhat.com>
40666 * cfgexpand.c (expand_debug_expr): Compute unsignedp from
40667 operands for tcc_comparison exprs. Fix typos.
40670 * simplify-rtx.c (simplify_binary_operation_1): Simplify one
40671 of two XORs that have an intervening AND or IOR.
40674 * simplify-rtx.c (simplify_binary_operation_1): Rewrite
40675 simplification of XOR of AND to not allocate new rtx before
40676 committing to a simplification.
40678 2015-02-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
40680 * config/aarch64/aarch64-ldpstp.md: Use std::swap instead of
40681 manual swaps in all peepholes.
40683 2015-02-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
40685 * config/aarch64/aarch64.c (aarch64_evpc_ext): Use std::swap instead
40686 of manual swapping implementation.
40687 (aarch64_expand_vec_perm_const_1): Likewise.
40689 2015-02-04 James Greenhalgh <james.greenhalgh@arm.com>
40691 * config/aarch64/aarch64.c (NAMED_PARAM): Delete it.
40692 (generic_addrcost_table): Remove NAMED_PARAM.
40693 (cortexa57_addrcost_table): Likewise.
40694 (xgene1_addrcost_table): Likewise.
40695 (generic_regmove_table): Likewise.
40696 (cortexa53_regmove_table): Likewise.
40697 (xgene1_regmove_table): Likewise.
40698 (generic_vector_table): Likewise.
40699 (cortexa57_vector_table): Likewise.
40700 (xgene1_vector_table): Likewise.
40701 (generic_tunings): Likewise.
40702 (cortexa53_tunings): Likewise.
40703 (cortexa57_tunings): Likewise.
40704 (xgene1_tunings): Likewise.
40706 2015-02-04 Matthew Wahab <matthew.wahab@arm.com>
40708 * config/arm/arm-cores.def: Add cortex-a72 and
40709 cortex-a72.cortex-a53.
40710 * config/arm/bpabi.h (BE8_LINK_SPEC): Likewise.
40711 * config/arm/t-aprofile (MULTILIB_MATCHES): Likewise.
40712 * config/arm/arm-tune.md: Regenerate.
40713 * config/arm/arm-tables.opt: Add entries for "cortex-a72" and
40714 "cortex-a72.cortex-a53".
40715 * doc/invoke.texi (ARM Options/-mtune): Likewise.
40717 2015-02-04 Nick Clifton <nickc@redhat.com>
40720 * config/fr30/predicates.md (di_operand): Add SUBREG to the list
40722 (nonimmediate_di_operand): Likewise.
40724 * config/msp430/msp430.c (msp430_use_f5_series_hwmult): Add more
40725 prefixes of known F5 using MSP430 MCUs.
40727 2015-02-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
40729 * config/aarch64/aarch64-simd-builtins.def (sqrt): Use BUILTIN_VDQF_DF.
40730 * config/aarch64/arm_neon.h (vsqrt_f64): Use __builtin_aarch64_sqrtdf
40731 instead of __builtin_sqrt.
40733 2015-02-04 Ilya Enkovich <ilya.enkovich@intel.com>
40735 * varasm.c (do_assemble_alias): Follow transparent alias
40737 (default_assemble_visibility): Follow transparent alias
40738 chain for decl name.
40740 2015-02-04 Thomas Preud'homme <thomas.preudhomme@arm.com>
40742 PR middle-end/62103
40743 * tree-ssa-sccvn.c (fully_constant_vn_reference_p): Use TYPE_PRECISION
40744 to compute size of referenced value in the constant case.
40746 2015-02-03 Jakub Jelinek <jakub@redhat.com>
40748 PR rtl-optimization/64756
40749 * cse.c (invalidate_dest): New function.
40750 (cse_insn): Use it. If dest != SET_DEST (sets[i].rtl) and
40751 HASH (SET_DEST (sets[i].rtl), mode) computation sets do_not_record,
40752 invalidate and do not record it.
40754 2015-02-03 Oleg Endo <olegendo@gcc.gnu.org>
40757 * config/sh/sync.md (atomic_<fetchop_name><mode>_hard,
40758 atomic_not<mode>_hard, atomic_<fetchop_name><mode>_soft_tcb,
40759 atomic_not<mode>_soft_tcb, atomic_nand<mode>_hard,
40760 atomic_nand<mode>_soft_tcb): New insns.
40761 (atomic_fetch_<fetchop_name>si_hard): Convert to insn_and_split.
40762 Split into atomic_<fetchop_name>_fetchsi_hard if operands[0] is unused.
40763 (define_insn "atomic_fetch_notsi_hard): Convert to insn_and_split.
40764 Split into atomic_not_fetchsi_hard if operands[0] is unused.
40765 (atomic_fetch_<fetchop_name><mode>_hard): Convert to insn_and_split.
40766 Split into atomic_<fetchop_name><mode>_hard if operands[0] is unused.
40767 (atomic_fetch_not<mode>_hard): Convert to insn_and_split. Split into
40768 atomic_not<mode>_hard if operands[0] is unused.
40769 (atomic_fetch_<fetchop_name><mode>_soft_gusa): Convert to
40770 insn_and_split. Split into atomic_<fetchop_name>_fetch<mode>_soft_gusa
40771 if operands[0] is unused.
40772 (atomic_fetch_not<mode>_soft_gusa): Convert to insn_and_split. Split
40773 into atomic_not_fetch<mode>_soft_gusa if operands[0] is unused.
40774 (atomic_fetch_<fetchop_name><mode>_soft_tcb): Convert to insn_and_split.
40775 Split into atomic_<fetchop_name><mode>_soft_tcb if operands[0] is
40777 (atomic_fetch_not<mode>_soft_tcb): Convert to insn_and_split. Split
40778 into atomic_not<mode>_soft_tcb if operands[0] is unused.
40779 (atomic_fetch_<fetchop_name><mode>_soft_imask): Convert to
40780 insn_and_split. Split into atomic_<fetchop_name>_fetch<mode>_soft_imask
40781 if operands[0] is unused.
40782 (atomic_fetch_not<mode>_soft_imask): Convert to insn_and_split. Split
40783 into atomic_not_fetch<mode>_soft_imask is operands[0] is unused.
40784 (atomic_fetch_nandsi_hard): Convert to insn_and_split. Split into
40785 atomic_nand_fetchsi_hard if operands[0] is unused.
40786 (atomic_fetch_nand<mode>_hard): Convert to insn_and_split. Split into
40787 atomic_nand<mode>_hard if operands[0] is unused.
40788 (atomic_fetch_nand<mode>_soft_gusa): Convert to insn_and_split. Split
40789 into atomic_nand_fetch<mode>_soft_gusa if operands[0] is unused.
40790 (atomic_fetch_nand<mode>_soft_tcb): Convert to insn_and_split. Split
40791 into atomic_nand<mode>_soft_tcb if operands[0] is unused.
40792 (atomic_fetch_nand<mode>_soft_imask): Convert to insn_and_split. Split
40793 into atomic_nand_fetch<mode>_soft_imask if operands[0] is unused.
40794 (atomic_<fetchop_name>_fetch<mode>_hard): Convert to insn_and_split.
40795 Split into atomic_<fetchop_name><mode>_hard if operands[0] is unused.
40796 (atomic_not_fetch<mode>_hard): Convert to insn_and_split. Split into
40797 atomic_not<mode>_hard if operands[0] is unused.
40798 (atomic_<fetchop_name>_fetch<mode>_soft_tcb): Convert to insn_and_split.
40799 Split into atomic_<fetchop_name><mode>_soft_tcb if operands[0] is
40801 (atomic_not_fetch<mode>_soft_tcb): Convert to insn_and_split. Split
40802 into atomic_not<mode>_soft_tcb if operands[0] is unused.
40803 (atomic_nand_fetch<mode>_hard): Convert to insn_and_split. Split into
40804 atomic_nand<mode>_hard if operands[0] is unused.
40805 (atomic_nand_fetch<mode>_soft_tcb): Convert to insn_and_split. Split
40806 into atomic_nand<mode>_soft_tcb if operands[0] is unused.
40808 2015-02-03 David Malcolm <dmalcolm@redhat.com>
40811 * Makefile.in (GCC_OBJS): Add gcc-main.o.
40812 * gcc-main.c: New file, containing "main" taken from gcc.c.
40813 * gcc.c (do_self_spec): Free decoded_options.
40814 (class driver): Move declaration to gcc.h.
40815 (main): Move declaration and implementation to new file
40817 (driver_get_configure_time_options): New function.
40818 * gcc.h (class driver): Move this declaration here, from
40820 (driver_get_configure_time_options): New declaration.
40822 2015-02-03 Jan Hubicka <hubicka@ucw.cz>
40824 * ipa-inline-analysis.c (simple_edge_hints): Fix check for
40825 cross-module inlining.
40826 * cgraph.h (cgraph_node): Add flag merged.
40827 * ipa-icf.c (sem_function::merge): Maintain it.
40829 2015-02-03 Richard Sandiford <richard.sandiford@arm.com>
40831 * config/arm/arm.c (thumb2_reorg): Test UNARY_P and BINARY_P
40832 instead of OBJECT_P.
40834 2015-02-03 Eric Botcazou <ebotcazou@adacore.com>
40837 * config/sparc/sparc.h (TARGET_HARD_MUL): Remove TARGET_V8PLUS.
40838 (TARGET_HARD_MUL32): Rewrite based on TARGET_HARD_MUL.
40839 * config/sparc/sparc.c (sparc_rtx_costs) <MULT>: Return costs based on
40840 int_mulX for integers in 64-bit mode if TARGET_HARD_MUL is not set.
40842 2015-02-03 Jakub Jelinek <jakub@redhat.com>
40845 * combine.c (reg_n_sets_max): New variable.
40846 (can_change_dest_mode, reg_nonzero_bits_for_combine,
40847 reg_num_sign_bit_copies_for_combine, get_last_value_validate,
40848 get_last_value): Use REG_N_SETS only on pseudos < reg_n_sets_max.
40849 (try_combine): Use INC_REG_N_SETS only on pseudos < reg_n_sets_max.
40850 (rest_of_handle_combine): Initialize reg_n_sets_max.
40852 2015-02-02 Jan Hubicka <hubicka@ucw.cz>
40854 * ipa-inline.c (early_inliner): Skip inlining only in always_inlined;
40855 if some always_inline was inlined, apply changes before inlining
40858 2015-02-02 David Malcolm <dmalcolm@redhat.com>
40861 * config/arm/arm.c (arm_option_override): Set
40862 arm_selected_arch/cpu/tune to NULL on entry.
40864 2015-02-02 Tejas Belagod <tejas.belagod@arm.com>
40865 Andrew Pinski <pinskia@gcc.gnu.org>
40866 Jakub Jelinek <jakub@gcc.gnu.org>
40869 * config/aarch64/aarch64.c (aarch64_classify_symbol): Fix large
40870 integer typing for small model. Use IN_RANGE.
40872 2015-02-02 Richard Biener <rguenther@suse.de>
40874 * tree-ssa-ccp.c (valueize_op_1): Always allow valueizing default-defs.
40875 * tree-vrp.c (vrp_valueize_1): Likewise.
40877 2015-02-02 Alan Modra <amodra@gmail.com>
40879 * config/rs6000/rs6000.c (rs6000_call_aix): Use unspec rather
40880 than mem for toc_restore.
40881 * config/rs6000/rs6000.md (UNSPEC_TOCSLOT): Define.
40882 (call_indirect_aix, call_value_indirect_aix): Adjust to suit.
40883 (call_indirect_elfv2, call_value_indirect_elfv2): Likewise.
40885 2015-02-01 David Edelsohn <dje.gcc@gmail.com>
40888 * config/rs6000/rs6000.c (rs6000_set_current_function): Handle
40889 explicit default options.
40891 2015-02-01 Jan Hubicka <hubicka@ucw.cz>
40894 * ipa-utils.c (ipa_merge_profiles): Add release argument.
40895 * ipa-icf.c (sem_function::merge): Do not release body when merging.
40896 * ipa-utils.h (ipa_merge_profiles): Update prototype.
40898 2015-02-01 Jakub Jelinek <jakub@redhat.com>
40901 * cfgexpand.c (deep_ter_debug_map): New variable.
40902 (avoid_deep_ter_for_debug): New function.
40903 (expand_debug_expr): If TERed SSA_NAME is in
40904 deep_ter_debug_map, use the corresponding DEBUG_EXPR_DECL
40905 instead of trying to expand SSA_NAME's def stmt.
40906 (expand_debug_locations): When expanding debug bind
40907 of a DEBUG_EXPR_DECL to corresponding SSA_NAME,
40908 temporarily remove the DEBUG_EXPR_DECL from deep_ter_debug_map's
40910 (pass_expand::execute): Call avoid_deep_ter_for_debug on
40911 all debug bind stmts. Delete deep_ter_debug_map after
40912 expand_debug_location if non-NULL and clear it.
40914 2015-02-01 Oleg Endo <olegendo@gcc.gnu.org>
40917 * config/sh/sync.md (atomic_fetch_notsi_hard,
40918 atomic_fetch_not<mode>_hard, atomic_fetch_not<mode>_soft_gusa,
40919 atomic_fetch_not<mode>_soft_tcb, atomic_fetch_not<mode>_soft_imask,
40920 atomic_not_fetchsi_hard, atomic_not_fetch<mode>_hard,
40921 atomic_not_fetch<mode>_soft_gusa, atomic_not_fetch<mode>_soft_tcb,
40922 atomic_not_fetch<mode>_soft_imask): New insns.
40924 2015-02-01 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
40926 * haifa-sched.c (INSN_RFS_DEBUG_ORIG_ORDER): New access macro.
40927 (rank_for_schedule_debug): Split from ...
40928 (rank_for_schedule): ... this.
40929 (ready_sort): Sort DEBUG_INSNs separately from normal INSNs.
40930 * sched-int.h (struct _haifa_insn_data): New field rfs_debug_orig_order.
40932 2015-01-31 Sandra Loosemore <sandra@codesourcery.com>
40934 * doc/md.texi (Machine Constraints): Alphabetize table by target.
40935 * doc/extend.texi (x86 Variable Attributes): Move section to
40936 correct alphabetization after renaming.
40937 (x86 Type Attributes): Likewise.
40938 (Target Builtins): Re-alphabetize menu.
40939 (x86 Built-in Functions): Move section to correct alphabetization
40941 (x86 transactional memory intrinsics): Likewise.
40942 * doc/invoke.texi (Option Summary): Re-alphabetize x86 Options
40943 and x86 Windows Options in table and menu.
40944 (x86 Options): Move section to correct alphabetization after
40946 (x86 Windows Options): Likewise.
40948 2015-01-31 Sandra Loosemore <sandra@codesourcery.com>
40950 * doc/extend.texi: Use "x86", "x86-32", and "x86-64" as the
40951 preferred names of the architecture and its 32- and 64-bit
40953 * doc/invoke.texi: Likewise.
40954 * doc/md.texi: Likewise.
40956 2015-01-31 Uros Bizjak <ubizjak@gmail.com>
40959 * config/i386/predicates.md (address_no_seg_operand): Reject
40960 non-CONST_INT_P operands in invalid mode.
40962 2015-01-31 Uros Bizjak <ubizjak@gmail.com>
40964 * config/i386/i386.md (*prefetch_prefetchw1): Remove mode of
40965 address_operand 0. Rename from *prefetch_prefetchwt1_<mode>.
40966 * config/i386/predicates.md (address_no_seg_operand): Call
40967 address_operand with VOIDmode.
40968 (vsib_address_operand): Ditto.
40969 (address_mpx_no_base_operand): Ditto.
40970 (address_mpx_no_index_operand): Ditto.
40972 2015-01-30 Vladimir Makarov <vmakarov@redhat.com>
40975 * lra-constraints.c (original_subreg_reg_mode): New.
40976 (simplify_operand_subreg): Try to simplify subreg of const. Use
40977 original_subreg_reg_mode for it.
40978 (swap_operands): Update original_subreg_reg_mode.
40979 (curr_insn_transform): Set up original_subreg_reg_mode.
40981 2015-01-30 Vladimir Makarov <vmakarov@redhat.com>
40984 * lra-constraints.c (prohibited_class_reg_set_mode_p): New
40986 (process_alt_operands): Use it.
40987 (curr_insn_transform): Check the optional reload pseudo class is
40990 2015-01-30 Joseph Myers <joseph@codesourcery.com>
40992 * diagnostic.c (fatal_error (const char *, ...)): Remove function.
40993 * diagnostic-core.h (fatal_error (const char *, ...)): Remove
40995 * toplev.h (init_asm_output): Update comment on use of
40996 UNKNOWN_LOCATION with fatal_error.
40997 * cgraph.c, collect-utils.c, collect2.c, config/arc/arc.c,
40998 config/arc/arc.md, config/avr/avr.c, config/c6x/c6x.h,
40999 config/darwin.c, config/host-darwin.c, config/i386/host-cygwin.c,
41000 config/i386/intelmic-mkoffload.c, config/nios2/nios2.c,
41001 config/nvptx/mkoffload.c, config/nvptx/nvptx.h,
41002 config/rs6000/host-darwin.c, config/rs6000/rs6000.c,
41003 config/s390/s390.c, gcc.c, gcov-io.h, gcov-tool.c, ggc-common.c,
41004 ggc-page.c, graph.c, ipa-inline-analysis.c, ipa-reference.c,
41005 lto-cgraph.c, lto-section-in.c, lto-streamer-in.c, lto-streamer.c,
41006 lto-wrapper.c, objc/objc-act.c, opts.c, passes.c, plugin.c,
41007 tlink.c, toplev.c, tree-streamer-in.c, varpool.c: All callers of
41008 fatal_error changed to pass input_location as first argument.
41010 2015-01-30 Martin Liska <mliska@suse.cz>
41012 * tree.h: Change GCC_VERSION >= 4004 to GCC_VERSION >= 4006
41013 in #pragma GCC diagnostic guards.
41015 2015-01-30 Richard Biener <rguenther@suse.de>
41017 PR tree-optimization/64829
41018 * tree-vect-patterns.c (vect_handle_widen_op_by_const): Do
41019 not add a widening conversion pattern but hand off extra
41020 widenings to callers.
41021 (vect_recog_widen_mult_pattern): Handle extra widening produced
41022 by vect_handle_widen_op_by_const.
41023 (vect_recog_widen_shift_pattern): Likewise.
41024 (vect_pattern_recog_1): Remove excess vertical space in dumping.
41025 * tree-vect-stmts.c (vect_mark_stmts_to_be_vectorized): Likewise.
41026 (vect_init_vector_1): Likewise.
41027 (vect_get_vec_def_for_operand): Likewise.
41028 (vect_finish_stmt_generation): Likewise.
41029 (vectorizable_load): Likewise.
41030 (vect_analyze_stmt): Likewise.
41031 (vect_is_simple_use): Likewise.
41033 2015-01-29 Jeff Law <law@redhat.com>
41035 * combine.c (try_combine): Fix typo in comment.
41037 2015-01-29 Segher Boessenkool <segher@kernel.crashing.org>
41040 * config.rs6000/rs6000.c (compute_vrsave_mask): Reverse loop order.
41041 (rs6000_stack_info): Add assert.
41042 (rs6000_output_savres_externs): New function, split off from...
41043 (rs6000_output_function_prologue): ... here. Do not call it for
41046 2015-01-29 Jeff Law <law@redhat.com>
41049 * combine.c (try_combine): If I0 is a memory load and I3 a store
41050 to a related address, increase the "goodness" of doing a 4-insn
41051 combination with I0-I3.
41052 (make_field_assignment): Handle SUBREGs in the ior+and case.
41054 2015-01-29 Yuri Rumyantsev <ysrumyan@gmail.com>
41056 PR tree-optimization/64746
41057 * tree-if-conv.c (mask_exists): New function.
41058 (predicate_mem_writes): Save created mask with given size for further
41060 (stmt_is_root_of_bool_pattern): Remove argument VAR and store to it.
41061 (ifcvt_repair_bool_pattern): Collect all statements that are root
41062 of bool pattern and use iterative algorithm to remove multiple uses
41063 of predicates, display number of required iterations.
41065 2015-01-29 Richard Biener <rguenther@suse.de>
41067 PR tree-optimization/64853
41068 * tree-vrp.c (vrp_valueize_1): Do not return anything if the
41069 stmt will get simulated again.
41070 * tree-ssa-ccp.c (valueize_op_1): Likewise.
41072 2015-01-29 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
41074 * config/arm/arm.c (arm_emit_multi_reg_pop): Simplify definition of
41075 return_in_pc. Remove redundant assignments.
41076 (thumb2_emit_ldrd_pop): Simplify definition of return_in_pc.
41077 (arm_expand_epilogue): Don't compare boolean with true in if condition.
41079 2015-01-29 Uros Bizjak <ubizjak@gmail.com>
41081 * config/i386/i386.c (ix86_mode_after): Make static.
41083 2015-01-29 Richard Biener <rguenther@suse.de>
41085 PR tree-optimization/64844
41086 * tree-vect-loop.c (vect_estimate_min_profitable_iters): Always
41087 dump cost model analysis.
41088 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment):
41089 Do not register adjusted load/store costs here.
41091 2015-01-29 Ilya Enkovich <ilya.enkovich@intel.com>
41092 Uros Bizjak <ubizjak@gmail.com>
41094 * config/i386/i386-protos.h (ix86_use_pseudo_pic_reg): New.
41095 * config/i386/i386.h (PIC_OFFSET_TABLE_REGNUM): Simplify by
41096 using x86_use_pseudo_pic_reg.
41097 * config/i386/i386.c (ix86_conditional_register_usage): Remove
41098 support for fixed PIC register.
41099 (ix86_use_pseudo_pic_reg): Not static any more.
41101 2015-01-29 Ilya Enkovich <ilya.enkovich@intel.com>
41103 PR middle-end/64805
41104 * ipa-inline.c (early_inliner): Rebuild IPA_REF_CHKP reference
41105 to avoid error in cgraph node verification.
41107 2015-01-29 Marek Polacek <polacek@redhat.com>
41109 * doc/standards.texi: Reflect that the default for C is gnu11.
41111 2015-01-29 Kaz Kojima <kkojima@gcc.gnu.org>
41114 * reorg.c (switch_text_sections_between_p): New function.
41115 (relax_delay_slots): Call it when testing if the jump insn
41116 is removable. Use targetm.can_follow_jump when testing if
41117 the conditional branch can follow an unconditional jump.
41119 2015-01-27 Caroline Tice <cmtice@google.com>
41121 Committing VTV Cywin/Ming patch for Patrick Wollgast
41122 * config/i386/cygwin.h (STARTFILE_SPEC): Add vtv_start.o,
41123 if -fvtable-verify=preinit/std is used.
41124 * config/i386/mingw-w64.h (STARTFILE_SPEC): Likewise.
41125 * config/i386/mingw32.h (STARTFILE_SPEC): Likewise.
41126 * config/i386/cygwin.h (ENDFILE_SPEC): Add vtv_end.o,
41127 if -fvtable-verify=preinit/std is used.
41128 * config/i386/mingw32.h (ENDFILE_SPEC): Likewise.
41129 * config/i386/cygwin.h (LIB_SPEC): Pass -lvtv and -lpsapi,
41130 if -fvtable-verify=preinit/std is used.
41131 * config/i386/mingw-w64.h (LIB_SPEC): Likewise.
41132 * config/i386/mingw32.h (LIB_SPEC): Likewise.
41133 * varasm.c (assemble_variable): Add code to properly set the comdat
41134 section and name for the .vtable_map_vars section in case the
41135 target is PE or COFF.
41137 2015-01-29 Jan Hubicka <hubicka@ucw.cz>
41140 * cgraphunit.c (init_lowered_empty_function): Add CoUNT parameter;
41141 make sane BB profile.
41142 (cgraph_node::expand_thunk): Make sane BB profile.
41143 (cgraph_node::create_wrapper): Do not set call_stmt_cannot_inline_p.
41144 * cgraph.h (init_lowered_empty_function): Update prototype.
41145 * config/i386/i386.c (make_resolver_func): Update call.
41146 * predict.c (gate): Disable branch prediction pass if
41147 profile is already there.
41149 2015-01-29 Jan Hubicka <hubicka@ucw.cz>
41151 * optc-save-gen.awk: flag_fp_contract_mode is no longer speical.
41152 * opth-gen.awk: Likewise.
41153 * common.opt: Mark flag_fp_contract_mode as Optimization.
41155 2015-01-29 Bernd Edlinger <bernd.edlinger@hotmail.de>
41157 * config/i386/cygwin.h (LIBGCJ_SONAME): Set libgcj version to -16.
41158 * config/i386/mingw32.h (LIBGCJ_SONAME): Set libgcj version to -16.
41160 2015-01-28 Oleg Endo <olegendo@gcc.gnu.org>
41163 * config/sh/predicates.md (atomic_arith_operand,
41164 atomic_logical_operand): Remove.
41165 * config/sh/sync.md (fetchop_predicate, fetchop_constraint): Remove.
41166 (atomic_arith_operand_0): New predicate.
41167 (atomic_compare_and_swap<mode>): Use arith_reg_dest for output values.
41168 Use atomic_arith_operand_0 for input values.
41169 (atomic_compare_and_swapsi_hard, atomic_compare_and_swap<mode>_hard,
41170 atomic_compare_and_swap<mode>_soft_gusa,
41171 atomic_compare_and_swap<mode>_soft_tcb,
41172 atomic_compare_and_swap<mode>_soft_imask): Use arith_reg_dest and
41173 arith_reg_operand instead of register_operand.
41174 (atomic_exchange<mode>): Use arith_reg_dest for output value. Use
41175 atomic_arith_operand_0 for newval input.
41176 (atomic_exchangesi_hard, atomic_exchange<mode>_hard,
41177 atomic_exchange<mode>_soft_gusa, atomic_exchange<mode>_soft_tcb,
41178 atomic_exchange<mode>_soft_imask): Use arith_reg_dest and
41179 arith_reg_operand instead of register_operand.
41180 (atomic_arith_operand_1, atomic_logical_operand_1): New predicates.
41181 fetchop_predicate_1, fetchop_constraint_1_llcs,
41182 fetchop_constraint_1_gusa, fetchop_constraint_1_tcb,
41183 fetchop_constraint_1_imask): New code iterator attributes.
41184 (atomic_fetch_<fetchop_name><mode>): Use arith_reg_dest instead of
41185 register_operand. Use fetchop_predicate_1.
41186 (atomic_fetch_<fetchop_name>si_hard,
41187 atomic_fetch_<fetchop_name><mode>_hard): Use arith_reg_dest instead of
41188 register_operand. Use fetchop_predicate_1, fetchop_constraint_1_llcs.
41189 (atomic_fetch_<fetchop_name><mode>_soft_gusa): Use arith_reg_dest
41190 and arith_reg_operand instead of register_operand. Use
41191 fetchop_predicate_1, fetchop_constraint_1_gusa.
41192 (atomic_fetch_<fetchop_name><mode>_soft_tcb): Use arith_reg_dest
41193 and arith_reg_operand instead of register_operand. Use
41194 fetchop_predicate_1, fetchop_constraint_1_tcb. Adjust asm sequence
41196 (atomic_fetch_<fetchop_name><mode>_soft_imask): Use arith_reg_dest
41197 and arith_reg_operand instead of register_operand. Use
41198 fetchop_predicate_1, fetchop_constraint_1_imask. Adjust asm sequence
41200 (atomic_fetch_nand<mode>): Use arith_reg_dest instead of
41201 register_operand. Use atomic_logical_operand_1.
41202 (atomic_fetch_nandsi_hard, atomic_fetch_nand<mode>_hard,
41203 atomic_fetch_nand<mode>_soft_gusa): Use arith_reg_dest and
41204 arith_reg_operand instead of register_operand.
41205 (atomic_fetch_nand<mode>_soft_tcb, atomic_fetch_nand<mode>_soft_imask):
41206 Use arith_reg_dest and arith_reg_operand instead of register_operand.
41207 Use logical_operand and rK08. Adjust asm sequence to allow R0 usage.
41208 (atomic_<fetchop_name>_fetch<mode>): Use arith_reg_dest instead of
41209 register_operand. Use fetchop_predicate_1.
41210 (atomic_<fetchop_name>_fetchsi_hard,
41211 atomic_<fetchop_name>_fetch<mode>_hard): Use arith_reg_dest and
41212 arith_reg_operand instead of register_operand. Use fetchop_predicate_1,
41213 fetchop_constraint_1_llcs.
41214 (atomic_<fetchop_name>_fetch<mode>_soft_gusa): Use arith_reg_dest and
41215 arith_reg_operand instead of register_operand. Use fetchop_predicate_1,
41216 fetchop_constraint_1_gusa.
41217 (atomic_<fetchop_name>_fetch<mode>_soft_tcb): Use arith_reg_dest and
41218 arith_reg_operand instead of register_operand. Use fetchop_predicate_1,
41219 fetchop_constraint_1_tcb. Adjust asm sequence to allow R0 usage.
41220 (atomic_<fetchop_name>_fetch<mode>_soft_imask): Use arith_reg_dest and
41221 arith_reg_operand instead of register_operand. Use fetchop_predicate_1,
41222 fetchop_constraint_1_imask. Adjust asm sequence to allow R0 usage.
41223 (atomic_nand_fetch<mode>): Use arith_reg_dest instead of
41224 register_operand. Use atomic_logical_operand_1.
41225 (atomic_nand_fetchsi_hard, atomic_nand_fetch<mode>_hard,
41226 atomic_nand_fetch<mode>_soft_gusa): Use arith_reg_dest and
41227 arith_reg_operand instead of register_operand.
41228 (atomic_nand_fetch<mode>_soft_tcb): Use arith_reg_dest and
41229 arith_reg_operand instead of register_operand. Use logical_operand
41230 and K08. Adjust asm sequence to allow R0 usage.
41231 (atomic_nand_fetch<mode>_soft_imask): Use arith_reg_dest and
41232 arith_reg_operand instead of register_operand. Use logical_operand
41235 2015-01-28 Jakub Jelinek <jakub@redhat.com>
41238 * dwarf2out.c (add_AT_wide, mem_loc_descriptor, loc_descriptor):
41239 Use ggc_alloc<wide_int> instead of ggc_cleared_alloc<wide_int>.
41240 (attr_checksum, attr_checksum_ordered, hash_loc_operands): Checksum
41241 only get_full_len HOST_WIDE_INTs from get_val () array rather than
41242 all bits in *val_wide.
41244 2015-01-28 Jan Hubicka <hubicka@ucw.cz>
41246 * varpool.c (tls_model_names): Fix names.
41247 (varpool_node::dump): Dump tls- prefix for tls models.
41249 2015-01-28 Thomas Schwinge <thomas@codesourcery.com>
41250 Bernd Schmidt <bernds@codesourcery.com>
41251 Nathan Sidwell <nathan@codesourcery.com>
41253 * config/nvptx/mkoffload.c: New file.
41254 * config/nvptx/t-nvptx: Add build rules for it.
41255 * config.gcc <nvptx-*> [$enable_as_accelerator = yes]
41256 (extra_programs): Add mkoffload.
41257 * config/nvptx/nvptx.c (nvptx_record_offload_symbol): New
41259 (TARGET_RECORD_OFFLOAD_SYMBOL): Define macro to use it.
41261 2015-01-28 Yuri Rumyantsev <ysrumyan@gmail.com>
41263 PR middle-end/64809
41264 * cfgexpand.c (reorder_operands): Skip debug gimples.
41266 2015-01-28 Ilya Enkovich <ilya.enkovich@intel.com>
41268 PR tree-optimization/64277
41269 * tree-ssa-loop-niter.c (record_nonwrapping_iv): Use base
41270 range info when possible to refine estimation.
41272 2015-01-28 Thomas Preud'homme <thomas.preudhomme@arm.com>
41274 PR tree-optimization/64718
41275 * tree-ssa-math-opts.c (pass_optimize_bswap::execute): Make bswap_type
41276 be a 16bit unsigned integer when n->range is 16.
41277 (bswap_replace): Convert src to that type if necessary for all bswap
41278 sizes. Fix rotation right notation in nearby comment. Use bswap_type
41279 set in pass_optimize_bswap::execute ().
41281 2015-01-28 James Greenhalgh <james.greenhalgh@arm.com>
41283 * config/aarch64/aarch64-simd.md (aarch64_abs<mode>): New.
41284 * config/aarch64/aarch64-simd-builtins.def (abs): Split by
41285 integer and floating point variants.
41286 * config/aarch64/iterators.md (unspec): Add UNSPEC_ABS.
41288 2015-01-28 Robert Suchanek <robert.suchanek@imgtec.com>
41290 * config/mips/mips.c (mips_hard_regno_mode_ok_p): Prohibit accumulators
41291 for all vector modes.
41293 2015-01-28 Jakub Jelinek <jakub@redhat.com>
41296 * doc/sourcebuild.texi (comdat_group): Document.
41298 2015-01-28 Terry Guo <terry.guo@arm.com>
41300 * config/arm/thumb1.md (*thumb1_movpc_insn): New insn pattern.
41302 2015-01-27 David Malcolm <dmalcolm@redhat.com>
41304 * toplev.c (print_version): Add param "show_global_state", and
41305 only print GGC and plugin information if it is true.
41306 (init_asm_output): Pass in "true" for the new param when calling
41308 (process_options): Likewise.
41309 (toplev::main): Likewise.
41310 * toplev.h (print_version): Add new param to decl.
41312 2015-01-27 Jan Hubicka <hubicka@ucw.cz>
41316 * tree.c (lookup_binfo_at_offset): New function.
41317 (get_binfo_at_offset): Use it.
41319 2015-01-27 Jan Hubicka <hubicka@ucw.cz>
41322 * gimple-fold.c (gimple_get_virt_method_for_vtable): Remove assert
41323 on vtable being vtable.
41325 2015-01-27 Dominik Vogt <vogt@linux.vnet.ibm.com>
41327 * doc/extend.texi: s/390: Update documentation of hotpatch attribute.
41328 * doc/invoke.texi (-mhotpatch): s/390: Update documentation of
41329 -mhotpatch= option.
41330 * config/s390/s390.opt (mhotpatch): s/390: Remove -mhotpatch and
41331 -mno-hotpatch options. Change syntax of -mhotpatch= option.
41332 * config/s390/s390.c (s390_hotpatch_trampoline_halfwords_default):
41334 (s390_hotpatch_trampoline_halfwords_max): Renamed.
41335 (s390_hotpatch_hw_max): New name.
41336 (s390_hotpatch_trampoline_halfwords): Renamed.
41337 (s390_hotpatch_hw_before_label): New name.
41338 (get_hotpatch_attribute): Removed.
41339 (s390_hotpatch_hw_after_label): New name.
41340 (s390_handle_hotpatch_attribute): Add second parameter to hotpatch
41342 (s390_attribute_table): Ditto.
41343 (s390_function_num_hotpatch_trampoline_halfwords): Renamed.
41344 (s390_function_num_hotpatch_hw): New name.
41345 Remove special handling of inline functions and hotpatching.
41346 Return number of nops before and after the function label.
41347 (s390_can_inline_p): Removed.
41348 (s390_asm_output_function_label): Emit a configurable number of nops
41349 after the function label.
41350 (s390_option_override): Update -mhotpatch= syntax and remove -mhotpatch.
41351 (TARGET_CAN_INLINE_P) Removed.
41352 (TARGET_FUNCTION_ATTRIBUTE_INLINABLE_P): New.
41354 2015-01-27 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
41355 Jiong Wang <jiong.wang@arm.com>
41357 * config/aarch64/aarch64.md (tb<optab><mode>1): Clobber CC reg instead
41359 (cb<optab><mode>1): Likewise.
41360 * config/aarch64/iterators.md (bcond): New define_code_attr.
41362 2015-01-27 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
41364 * config/s390/s390.c (s390_memory_move_cost): Increase costs for
41367 2015-01-27 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
41369 * config/s390/s390.c (s390_register_move_cost): Increase costs for
41372 2015-01-27 Richard Biener <rguenther@suse.de>
41374 * tree-vrp.c (update_value_range): Intersect the range with
41375 old recorded SSA name range information.
41377 2015-01-27 Nick Clifton <nickc@redhat.com>
41379 * config/rl78/rl78.c (rl78_expand_prologue): In G10 mode push the
41380 BC, DE and HL registers directly, not via AX.
41381 When decrementing the stack pointer by a large amount, transfer SP
41382 into AX and perform the subtraction there.
41383 (rl78_expand_epilogue): Perform the inverse of the above
41386 2015-01-27 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
41388 * config/i386/sysv4.h (CRT_GET_RFIB_DATA): Remove.
41390 2015-01-27 Jakub Jelinek <jakub@redhat.com>
41391 Yury Gribov <y.gribov@samsung.com>
41394 * ubsan.c (ubsan_source_location): Refactor code.
41395 (ubsan_type_descriptor): Update type size. Refactor code.
41397 2015-01-27 Richard Biener <rguenther@suse.de>
41399 PR tree-optimization/56273
41400 PR tree-optimization/59124
41401 PR tree-optimization/64277
41402 * tree-vrp.c (vrp_finalize): Emit array-bound warnings only
41403 from the first VRP pass.
41405 2015-01-27 Jakub Jelinek <jakub@redhat.com>
41408 * cgraphunit.c (cgraph_node::expand_thunk): If not this_adjusting,
41409 handle the first argument in the same loop as all the other arguments.
41411 PR rtl-optimization/61058
41412 * jump.c (cleanup_barriers): Update basic block boundaries
41413 if BLOCK_FOR_INSN is non-NULL on PREV.
41415 2015-01-27 Ilya Enkovich <ilya.enkovich@intel.com>
41417 * tree-chkp.c (chkp_call_returns_bounds_p): Fix handling of
41418 bounds narrowing, already instrumented calls and calls to
41419 not instrumentable functions.
41421 2015-01-27 Jakub Jelinek <jakub@redhat.com>
41423 PR tree-optimization/64807
41424 * wide-int.cc (wi::divmod_internal): Clear
41425 b_dividend[dividend_blocks_needed].
41427 2015-01-26 DJ Delorie <dj@redhat.com>
41429 * config/rl78/rl78.c (move_elim_pass): Don't optimize away
41430 volatile memory references.
41432 2015-01-26 Oleg Endo <olegendo@gcc.gnu.org>
41435 * config/sh/sh.c (sh_split_treg_set_expr): Invoke emit_insn before
41437 * config/sh/sh.md (tstsi_t): Don't try to optimize constant with right
41438 shifts if it already fits into K08.
41440 2015-01-26 Jakub Jelinek <jakub@redhat.com>
41443 * ipa-inline.c (inline_small_functions): Print "unknown" even
41444 if edge->call_stmt is non-NULL, but has builtins or unknown
41447 PR middle-end/64421
41448 * omp-low.c (simd_clone_mangle): If DECL_ASSEMBLER_NAME starts
41449 with asterisk, skip the first character.
41451 2015-01-26 H.J. Lu <hongjiu.lu@intel.com>
41454 * config/i386/i386 (feature_priority): Revert the last P_POPCNT
41457 2015-01-26 Uros Bizjak <ubizjak@gmail.com>
41460 * config/i386/i386.md (*movdi_internal): Also check operand 0
41461 to determine TYPE_LEA operand.
41462 (*movsi_internal): Ditto.
41464 2015-01-26 Jakub Jelinek <jakub@redhat.com>
41466 * config/rs6000/rs6000-cpus.def (POWERPC_MASKS): Add
41467 OPTION_MASK_QUAD_MEMORY_ATOMIC.
41469 2015-01-26 Renlin Li <renlin.li@arm.com>
41471 * config/aarch64/aarch64.c (aarch64_load_symref_appropriately): Correct
41473 * config/aarch64/aarch64.md (tlsle_small_<mode>): Add left shift 12-bit
41476 2015-01-26 Richard Biener <rguenther@suse.de>
41478 PR middle-end/64764
41479 * tree-ssa-uninit.c (is_pred_expr_subset_of): Handle
41480 combining two BIT_AND_EXPR predicates.
41482 2015-01-26 H.J. Lu <hongjiu.lu@intel.com>
41485 * tree-ssa-structalias.c (new_var_info): Initialize ruid.
41487 2015-01-26 Terry Guo <terry.guo@arm.com>
41489 * config/arm/arm.c (arm_file_start): Update the assignment of
41490 Tag_ABI_HardFP_use.
41492 2015-01-25 James Greenhalgh <james.greenhalgh@arm.com>
41494 * config/arm/arm-cores.def (cortex-a57): Use the new Cortex-A57
41496 config/arm/arm.md: Include the new Cortex-A57 model.
41497 (generic_sched): Don't use generic_sched when tuning for
41500 2015-01-25 Allan Sandfeld Jensen <sandfeld@kde.org>
41501 Uros Bizjak <ubizjak@gmail.com>
41503 * config/i386/i386.c (get_builtin_code_for_version): Add
41504 support for BMI and BMI2 multiversion functions.
41506 2015-01-25 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
41508 * emit-rtl.h (store_bit_field): Move prototype to expmed.h.
41509 (extract_bit_field): Likewise.
41510 (extract_low_bits): Likewise.
41511 (expand_mult): Likewise.
41512 (expand_mult_highpart_adjust): Likewise.
41514 2015-01-24 H.J. Lu <hongjiu.lu@intel.com>
41516 * config/i386/driver-i386.c (host_detect_local_cpu): Check new
41517 Silvermont, Haswell, Broadwell and Knights Landing model numbers.
41518 * config/i386/i386.c (processor_model): Add
41519 M_INTEL_COREI7_BROADWELL.
41520 (arch_names_table): Add "broadwell".
41522 2015-01-24 Oleg Endo <olegendo@gcc.gnu.org>
41531 * config/sh/sh-protos.h
41532 (sh_extending_set_of_reg::can_use_as_unextended_reg,
41533 sh_extending_set_of_reg::use_as_unextended_reg,
41534 sh_is_nott_insn, sh_movt_set_dest, sh_movrt_set_dest, sh_is_movt_insn,
41535 sh_is_movrt_insn, sh_insn_operands_modified_between_p,
41536 sh_reg_dead_or_unused_after_insn, sh_in_recog_treg_set_expr,
41537 sh_recog_treg_set_expr, sh_split_treg_set_expr): New functions.
41538 (sh_treg_insns): New class.
41539 * config/sh/sh.c (TARGET_LEGITIMATE_COMBINED_INSN): Define target hook.
41540 (scope_counter): New class.
41541 (sh_legitimate_combined_insn, sh_is_nott_insn, sh_movt_set_dest,
41542 sh_movrt_set_dest, sh_reg_dead_or_unused_after_insn,
41543 sh_extending_set_of_reg::can_use_as_unextended_reg,
41544 sh_extending_set_of_reg::use_as_unextended_reg, sh_recog_treg_set_expr,
41545 sh_in_recog_treg_set_expr, sh_try_split_insn_simple,
41546 sh_split_treg_set_expr): New functions.
41547 (addsubcosts): Handle treg_set_expr.
41548 (sh_rtx_costs): Handle IF_THEN_ELSE and ZERO_EXTRACT.
41549 (sh_rtx_costs): Use arith_reg_operand in SIGN_EXTEND and ZERO_EXTEND.
41550 (sh_rtx_costs): Handle additional bit test patterns in EQ and AND cases.
41551 (sh_insn_operands_modified_between_p): Make non-static.
41552 * config/sh/predicates.md (zero_extend_movu_operand): Allow
41553 simple_mem_operand in addition to displacement_mem_operand.
41554 (zero_extend_operand): Don't allow zero_extend_movu_operand.
41555 (treg_set_expr, treg_set_expr_not_const01,
41556 arith_reg_or_treg_set_expr): New predicates.
41557 * config/sh/sh.md (tstsi_t): Use arith_reg_operand and
41558 arith_or_int_operand instead of logical_operand. Convert to
41559 insn_and_split. Try to optimize constant operand in splitter.
41560 (tsthi_t, tstqi_t): Fold into *tst<mode>_t. Convert to insn_and_split.
41561 (*tstqi_t_zero): Delete.
41562 (*tst<mode>_t_subregs): Add !sh_in_recog_treg_set_expr split condition.
41563 (tstsi_t_and_not): Delete.
41564 (tst<mode>_t_zero_extract_eq): Rename to *tst<mode>_t_zero_extract.
41565 Convert to insn_and_split.
41566 (unnamed split, tstsi_t_zero_extract_xor,
41567 tstsi_t_zero_extract_subreg_xor_little,
41568 tstsi_t_zero_extract_subreg_xor_big): Delete.
41569 (*tstsi_t_shift_mask): New insn_and_split.
41570 (cmpeqsi_t, cmpgesi_t): Add new split for const_int 0 operands and try
41571 to recombine with surrounding insns when splitting.
41572 (*negtstsi): Add !sh_in_recog_treg_set_expr condition.
41573 (cmp_div0s_0, cmp_div0s_1, *cmp_div0s_0, *cmp_div0s_1): Rewrite as ...
41574 (cmp_div0s, *cmp_div0s_1, *cmp_div0s_2, *cmp_div0s_3, *cmp_div0s_4,
41575 *cmp_div0s_5, *cmp_div0s_6): ... these new insn_and_split patterns.
41576 (*cbranch_div0s: Delete.
41577 (*addc): Convert to insn_and_split. Use treg_set_expr as 3rd operand.
41578 Try to recombine with surrounding insns when splitting. Add operand
41580 (*addc_t_r, *addc_r_t): Use treg_set_expr_not_const01.
41581 (*addc_r_r_1, *addc_r_lsb, *addc_r_r_lsb, *addc_r_lsb_r, *addc_r_msb,
41582 *addc_r_r_msb, *addc_2r_msb): Delete.
41583 (*addc_2r_lsb): Rename to *addc_2r_t. Use treg_set_expr. Add operand
41585 (*addc_negreg_t): New insn_and_split.
41586 (*subc): Convert to insn_and_split. Use treg_set_expr as 3rd operand.
41587 Try to recombine with surrounding insns when splitting.
41588 Add operand order variants.
41589 (*subc_negt_reg, *subc_negreg_t, *reg_lsb_t, *reg_msb_t): New
41590 insn_and_split patterns.
41591 (*rotcr): Use arith_reg_or_treg_set_expr. Try to recombine with
41592 surrounding insns when splitting.
41593 (unnamed rotcr split): Use arith_reg_or_treg_set_expr.
41594 (*rotcl): Likewise. Add zero_extract variant.
41595 (*ashrsi2_31): New insn_and_split.
41596 (*negc): Convert to insn_and_split. Use treg_set_expr.
41597 (*zero_extend<mode>si2_disp_mem): Update comment.
41598 (movrt_negc, *movrt_negc, nott): Add !sh_in_recog_treg_set_expr split
41600 (*mov_t_msb_neg, mov_neg_si_t): Use treg_set_expr. Try to recombine
41601 with surrounding insns when splitting.
41602 (any_treg_expr_to_reg): New insn_and_split.
41603 (*neg_zero_extract_0, *neg_zero_extract_1, *neg_zero_extract_2,
41604 *neg_zero_extract_3, *neg_zero_extract_4, *neg_zero_extract_5,
41605 *neg_zero_extract_6, *zero_extract_0, *zero_extract_1,
41606 *zero_extract_2): New single bit zero extract patterns.
41607 (bld_reg, *bld_regqi): Fold into bld<mode>_reg.
41608 (*get_thread_pointersi, store_gbr, *mov<mode>_gbr_load,
41609 *mov<mode>_gbr_load, *mov<mode>_gbr_load, *mov<mode>_gbr_load,
41610 *movdi_gbr_load): Use arith_reg_dest instead of register_operand for
41612 (set_thread_pointersi, load_gbr): Use arith_reg_operand instead of
41613 register_operand for set source.
41615 2015-01-23 Jan Hubicka <hubicka@ucw.cz>
41617 * i386.opt (prefetch_sse): New targetsave.
41618 * i386.c (ix86_function_specific_save): Save prefetch_sse.
41619 (ix86_function_specific_restore): Restore prefetch_sse and initialize
41620 ix86_cost/ix86_tune_cost.
41622 2015-01-23 David Malcolm <dmalcolm@redhat.com>
41624 * config/rs6000/rs6000.c (rs6000_output_function_epilogue):
41625 Support the JIT by using 0 as the language type.
41627 2015-01-23 Vladimir Makarov <vmakarov@redhat.com>
41630 * lra-lives.c (make_hard_regno_born): Add parameter. Don't make
41631 REAL_PIC_OFFSET_TABLE_REGNUM conflicting with pic offset pseudo.
41632 (mark_regno_live, process_bb_lives): Pass new parameter value to
41633 make_hard_regno_born.
41635 2015-01-23 Jakub Jelinek <jakub@redhat.com>
41637 PR rtl-optimization/63637
41638 PR rtl-optimization/60663
41639 * cse.c (merge_equiv_classes): Set new_elt->cost to MAX_COST
41640 if elt->cost is MAX_COST for ASM_OPERANDS.
41641 (find_sets_in_insn): Fix up comment typo.
41642 (cse_insn): Don't set src_volatile for all non-volatile
41643 ASM_OPERANDS in PARALLELs, but just those with multiple outputs
41644 or with "memory" clobber. Set elt->cost to MAX_COST
41645 for ASM_OPERANDS in PARALLEL. Set src_elt->cost to MAX_COST
41646 if new_src is ASM_OPERANDS and elt->cost is MAX_COST.
41648 2015-01-23 Uros Bizjak <ubizjak@gmail.com>
41650 * config/i386/sse.md (sse2_loadld): Set attribute isa to sse2 for
41653 2015-01-23 Uros Bizjak <ubizjak@gmail.com>
41655 * config/i386/gnu-user.h (CRT_GET_RFIB_DATA): Move definition to
41656 libgcc/config/i386/elf-lib.h.
41658 2015-01-23 Jakub Jelinek <jakub@redhat.com>
41661 * gcc.c (print_configuration): Don't print a blank line at the end
41663 (run_attempt): ... but here unstead.
41665 PR middle-end/64734
41666 * omp-low.c (scan_sharing_clauses): Don't ignore
41667 OMP_CLAUSE_MAP_ZERO_BIAS_ARRAY_SECTION GOMP_MAP_POINTER clauses
41668 on target data/update constructs.
41670 2015-01-23 Bernd Edlinger <bernd.edlinger@hotmail.de>
41673 * config/m32c/m32c.c (encode_pattern_1): Removed gcc_unreachable here.
41674 (DEBUG_RELOAD): Removed define.
41675 (m32c_limit_reload_class): Enable traces with if DEBUG0.
41676 (m32c_function_arg): Added a type cast.
41677 (m32c_legitimize_reload_address): Push A_REGS reload with PSImode.
41678 * config/m32c/addsub.md (addsi3_1): Specify the mode of all arguments.
41679 * config/m32c/bitops.md (andqi3_16): Likewise.
41680 * config/m32c/mov.md (m32c_immd_dbl_mov): Likewise.
41681 (push_a01_l): Likewise.
41683 2015-01-23 David Malcolm <dmalcolm@redhat.com>
41686 * main.c (main): Construct toplev instances with init_signals=true.
41687 * toplev.c (general_init): Add param "init_signals", and use it to
41688 conditionalize the calls to signal and host_hooks.extra_signals.
41689 (toplev::toplev): Add param "init_signals".
41690 (toplev::main): When invoking general_init, pass m_init_signals
41691 to control whether signal-handlers are installed.
41692 * toplev.h (toplev::toplev): Add param "init_signals".
41693 (toplev::m_init_signals): New field.
41695 2015-01-23 David Malcolm <dmalcolm@redhat.com>
41698 * emit-rtl.c (init_emit_regs): Set pic_offset_table_rtx to
41699 NULL_RTX before testing PIC_OFFSET_TABLE_REGNUM, since the
41700 latter may be affected by the former (e.g. on i686).
41702 2015-01-23 Martin Liska <mliska@suse.cz>
41704 * tree.h (tree_vec_elt_check): Workaround -Wstrict-overflow
41705 false positive during profiledbootstrap.
41707 2015-01-23 Tom de Vries <tom@codesourcery.com>
41710 * lto-opts.c (lto_write_options): Output non-explicit conservative
41712 * lto-wrapper.c (merge_and_complain): Handle merging -fopenacc.
41713 (append_compiler_options): Pass -fopenacc through.
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 -fopenmp.
41721 (append_compiler_options): Pass -fopenmp through.
41723 2015-01-23 Jakub Jelinek <jakub@redhat.com>
41726 * dwarf2out.c (struct dw_loc_descr_node): Add chain_next
41729 * diagnostic-core.h (internal_error_no_backtrace): New prototype.
41730 * diagnostic.def (DK_ICE_NOBT): New kind.
41731 * diagnostic.c (diagnostic_action_after_output): Handle DK_ICE_NOBT
41732 like DK_ICE, but never print backtrace.
41733 (diagnostic_report_diagnostic): Handle DK_ICE_NOBT like DK_ICE.
41734 (internal_error_no_backtrace): New function.
41735 * gcc.c (execute): Use internal_error_no_backtrace instead of
41738 2015-01-22 Jeff Law <law@redhat.com>
41741 * config/m68k/m68k.md (xorsi3_internal): Twiddle constraints to
41742 improve code density for small immediate to memory case.
41743 (insv): Better handle bitfield assignments when the field is
41744 being set to all ones.
41745 * config/m68k/predicates.md (reg_or_pow2_m1_operand): New
41748 2015-01-22 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
41749 Jakub Jelinek <jakub@redhat.com>
41751 PR middle-end/64729
41752 * gcc.c (LINK_SSP_SPEC): Handle -fstack-protector-explicit
41753 for !TARGET_LIBC_PROVIDES_SSP version and
41754 -fstack-protector-{all,strong,explicit} otherwise.
41755 * config/freebsd.h (LINK_SSP_SPEC): Handle
41756 -fstack-protector-{strong,explicit}.
41758 2015-01-22 Jan Hubicka <hubicka@ucw.cz>
41759 H.J. Lu <hongjiu.lu@intel.com>
41762 * ipa-inline.c (inline_small_functions): Fix thinko in maintenance of
41765 2015-01-22 Wei Mi <wmi@google.com>
41767 PR rtl-optimization/64557
41768 * dse.c (record_store): Call get_addr for mem_addr.
41769 (check_mem_read_rtx): Likewise.
41771 2015-01-22 Eric Botcazou <ebotcazou@adacore.com>
41773 * fold-const.c (const_binop): Add early return for non-tcc_binary.
41775 2015-01-22 Chen Gang <gang.chen.5i5j@gmail.com>
41777 * toplev.c (init_local_tick): Process the failure when read
41778 fails for random_seed.
41780 * ubsan.c (ubsan_type_descriptor): Use 'pretty_print' for
41781 'pretty_name' to avoid memory overflow.
41783 2015-01-22 Richard Biener <rguenther@suse.de>
41785 PR middle-end/64728
41786 * tree-ssa-coalesce.c (coalesce_partitions): Do not perform
41787 abnormal coalescing on undefined SSA names.
41789 2015-22-01 Uros Bizjak <ubizjak@gmail.com>
41793 * config/i386/sse.md (vec_set<mode>_0): Use (Yi/r/C) constraints
41795 (*vec_dup<mode>): Use (Yi/$r) constraints for alternative 1.
41797 2015-01-22 Trevor Saunders <tsaunders@mozilla.com>
41799 PR middle-end/63325
41800 * fold-const.c (fold_checksum_tree): Don't include value of
41801 expr->decl_with_vis.symtab_node in the checksum.
41803 2015-01-22 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
41805 * config/s390/s390.md (atomic code attribute): Fix typo "ior" -> "or".
41807 2015-01-22 Max Ostapenko <m.ostapenko@partner.samsung.com>
41810 * gcc.c (insert_comments): New function.
41811 (try_generate_repro): Call it.
41812 (append_text): Removed.
41814 2015-01-22 Richard Biener <rguenther@suse.de>
41816 * ipa-inline.c (can_inline_edge_p): Disable inlining of edges
41817 with IL incompatible options. Properly honor user optimize
41820 2015-01-21 Segher Boessenkool <segher@kernel.crashing.org>
41822 PR rtl-optimization/64682
41823 * combine.c (distribute_notes): When moving a death note for
41824 a register that is set in the new I2, make sure to put it
41825 before that new I2.
41827 2015-01-21 David Edelsohn <dje.gcc@gmail.com>
41829 * config/rs6000/rs6000.c (rs6000_file_start): Use rs6000_isa_flags
41830 not TARGET_DEFAULT.
41832 2015-01-21 Jakub Jelinek <jakub@redhat.com>
41835 * simplify-rtx.c (simplify_relational_operation_1): Don't try to
41836 optimize (eq/ne (and (side_effects) (const_int 0)) (const_int 0))
41837 into (eq/ne (and (not (side_effects)) (const_int 0)) (const_int 0)).
41840 * doc/invoke.texi (-fsanitize=vptr): Document.
41842 PR rtl-optimization/62078
41843 * dse.c: Include cfgcleanup.h.
41844 (rest_of_handle_dse): For -fnon-call-exceptions, if DSE removed
41845 anything call purge_all_dead_edges and cleanup_cfg at the end
41848 2015-01-21 Jan Hubicka <hubicka@ucw.cz>
41850 * ipa-utils.c (ipa_merge_profiles): Avoid ICE on mismatch in indirect
41853 2015-01-21 Bernd Edlinger <bernd.edlinger@hotmail.de>
41855 * gimplify.c (gimplify_function_tree): Check the no_sanitize_thread
41858 2015-01-21 David Sherwood <david.sherwood@arm.com>
41859 Tejas Belagod <Tejas.Belagod@arm.com>
41861 * config/aarch64/aarch64.h (CANNOT_CHANGE_MODE_CLASS): Removed.
41862 * config/aarch64/aarch64.c (aarch64_cannot_change_mode_class): Removed.
41863 * config/aarch64/aarch64-protos.h (aarch64_cannot_change_mode_class):
41866 2015-01-21 David Sherwood <david.sherwood@arm.com>
41867 Tejas Belagod <Tejas.Belagod@arm.com>
41869 * config/aarch64/aarch64-protos.h (aarch64_simd_attr_length_rglist)
41870 (aarch64_reverse_mask): New decls.
41871 * config/aarch64/iterators.md (UNSPEC_REV_REGLIST): New enum.
41872 (insn_count): New mode_attr.
41873 * config/aarch64/aarch64-simd.md (vec_store_lanesoi, vec_store_lanesci)
41874 (vec_store_lanesxi, vec_load_lanesoi, vec_load_lanesci)
41875 (vec_load_lanesxi): Made ABI compliant for Big Endian targets.
41876 (aarch64_rev_reglist, aarch64_simd_ld2, aarch64_simd_ld3)
41877 (aarch64_simd_ld4, aarch64_simd_st2, aarch64_simd_st3)
41878 (aarch64_simd_st4): New patterns.
41879 * config/aarch64/aarch64.c (aarch64_simd_attr_length_rglist)
41880 (aarch64_reverse_mask): New functions.
41882 2015-01-21 Alan Hayward <alan.hayward@arm.com>
41884 * config/aarch64/aarch64-protos.h (aarch64_simd_disambiguate_copy):
41886 * config/aarch64/aarch64.c (aarch64_classify_address): Allow extra
41887 addressing modes for BE.
41888 (aarch64_print_operand): Add 'R' specifier.
41889 (aarch64_simd_disambiguate_copy): Delete.
41890 (aarch64_simd_emit_reg_reg_move): New function.
41891 * config/aarch64/aarch64-simd.md: Use aarch64_simd_emit_reg_reg_move
41892 in define_splits for structural moves.
41893 (mov<mode>): Use less restrictive predicates.
41894 (*aarch64_mov<mode>): Simplify and only allow for LE.
41895 (*aarch64_be_movoi, *aarch64_be_movci, *aarch64_be_movxi): New.
41897 2015-01-21 Alan Hayward <alan.hayward@arm.com>
41899 * rtlanal.c (subreg_get_info): Exit early for simple and common cases.
41901 2015-01-21 Richard Henderson <rth@redhat.com>
41904 * ccmp.c (used_in_cond_stmt_p): Remove.
41905 (expand_ccmp_expr): Don't use it.
41907 2015-01-21 Nick Clifton <nickc@redhat.com>
41909 * config/rl78/rl78.c (rl78_calculate_death_notes): Look inside
41912 2015-01-21 Richard Biener <rguenther@suse.de>
41914 PR middle-end/64313
41915 * tree-core.h (builtin_info, builtin_info_type): Turn from
41916 an object with two arrays into an array of an object with
41917 decl and two flags, implicit_p and declared_p.
41918 * tree.h (builtin_decl_explicit, builtin_decl_implicit,
41919 set_builtin_decl, set_builtin_decl_implicit_p,
41920 builtin_decl_explicit_p, builtin_decl_implicit_p): Adjust.
41921 (set_builtin_decl_declared_p, builtin_decl_declared_p): New functions.
41922 * builtins.c (builtin_info): Adjust.
41923 * gimplify.c (gimplify_addr_expr): References to builtins
41924 that have been declared by the user makes them eligible for
41925 use by the compiler. Call set_builtin_decl_implicit_p on them.
41927 2015-01-20 Jeff Law <law@redhat.com>
41930 * config/m68k/m68k.md (Comparison expanders and patterns): Do not
41931 allow pc-relative addresses in operand predicates or constraints.
41933 2015-01-21 Bin Cheng <bin.cheng@arm.com>
41935 * config/arm/arm.c (arm_cortex_a53_tune, arm_cortex_a57_tune): Prefer
41936 neon on aarch32 processors for stringops.
41938 2015-01-19 Jan Hubicka <hubicka@ucw.cz>
41941 * ipa-utils.c (ipa_merge_profiles): Merge speculative edges.
41943 2015-01-19 Jan Hubicka <hubicka@ucw.cz>
41946 * ipa-inline.c: Include lto-streamer.h
41947 (report_inline_failed_reason): Output source file differences and
41948 flags on optimization/target node mismatch.
41949 (can_inline_edge_p): Consider caller to be the outer inline function;
41950 be less restrictive about matching opimize and optimize_size attributes.
41951 (inline_account_function_p): Break out from ...
41952 (inline_small_functions): ... here.
41953 * ipa-inline-transform.c (clone_inlined_nodes): Use
41954 inline_account_function_p.
41955 (inline_call): Use optimize attribution; use inline_account_function_p.
41956 (inline_transform): Use opt_for_fn.
41957 * ipa-inline.h (inline_account_function_p): Declare.
41959 2015-01-20 Jakub Jelinek <jakub@redhat.com>
41962 * dwarf2out.c (decl_piece_node): Don't put bitsize into
41963 mode if bitsize <= 0.
41964 (decl_piece_bitsize, adjust_piece_list, add_var_loc_to_decl,
41965 dw_sra_loc_expr): Use HOST_WIDE_INT instead of int for bit
41966 sizes and positions.
41968 2015-01-20 Chung-Lin Tang <cltang@codesourcery.com>
41970 * config/nios2/nios2.c (nios2_asm_file_end): Implement
41971 TARGET_ASM_FILE_END hook for adding .note.GNU-stack section when
41973 (TARGET_ASM_FILE_END): Define.
41975 2015-01-20 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
41977 * config/arm/arm-protos.h (enum arm_sched_autopref): New constants.
41978 (struct tune_params): Use the enum.
41979 * arm.c (arm_*_tune): Update.
41980 (arm_option_override): Update.
41982 2015-01-20 Richard Biener <rguenther@suse.de>
41985 * ipa-reference.c (add_static_var): Inline ...
41986 (analyze_function): ... here after splitting out from ...
41987 (is_proper_for_analysis): ... this.
41989 2015-01-20 Matthew Wahab <matthew.wahab@arm.com>
41992 * config/arm/arm.opt: Remove lra option and arm_lra_flag variablesle.
41993 * config/arm/arm.h (MODE_BASE_REG_CLASS): Remove use of arm_lra_flagag,
41994 replace the conditional with it's true branch.
41995 * config/arm/arm.config (TARGET_LRA_P): Set to hook_bool_void_true.
41996 (arm_lra_p): Remove.
41998 2015-01-20 Eric Botcazou <ebotcazou@adacore.com>
42000 * config/visium/visium.h (LIB_SPEC): Adjust in default case.
42002 2015-01-20 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
42004 * config/tilegx/mul-tables.c: Move symtab.h include after
42005 coretypes.h include.
42006 * config/tilepro/mul-tables.c: Add includes hashtab.h, hash-set.h,
42007 vec.h, machmode.h, tm.h, hard-reg-set.h, input.h, function.h, rtl.h,
42008 flags.h, statistics.h, double-int.h, real.h, fixed-value.h, alias.h,
42009 wide-int.h, inchash.h, tree.h, insn-config.h, expmed.h, dojump.h,
42010 explow.h, calls.h, emit-rtl.h, varasm.h, stmt.h.
42012 2015-01-20 Igor Zamyatin <igor.zamyatin@intel.com>
42016 2015-01-19 Igor Zamyatin <igor.zamyatin@intel.com>
42018 PR rtl-optimization/64081
42019 * loop-iv.c (def_pred_latch_p): New function.
42020 (latch_dominating_def): Allow specific cases with non-single
42022 (iv_get_reaching_def): Likewise.
42023 (check_complex_exit_p): New function.
42024 (check_simple_exit): Use check_complex_exit_p to allow certain cases
42025 with exits not executing on any iteration.
42027 2015-01-19 Jan Hubicka <hubicka@ucw.cz>
42030 * i386.c (ix86_option_override_internal): Use ix86_tune_cost
42031 to set branch cost.
42033 2015-01-19 Jan Hubicka <hubicka@ucw.cz>
42036 * i386.c (gate): Check flag_expensive_optimizations and
42038 (ix86_option_override_internal): Drop optimize_size condition
42039 on MASK_ACCUMULATE_OUTGOING_ARGS, MASK_VZEROUPPER,
42040 MASK_AVX256_SPLIT_UNALIGNED_LOAD, MASK_AVX256_SPLIT_UNALIGNED_STORE,
42041 MASK_PREFER_AVX128.
42042 (ix86_avx256_split_vector_move_misalign,
42043 ix86_avx256_split_vector_move_misalign): Check optimize_insn_for_speed.
42044 * sse.md (all uses of TARGET_PREFER_AVX128): Add
42045 optimize_insn_for_speed_p check.
42047 2015-01-19 Matthew Fortune <matthew.fortune@imgtec.com>
42049 * config/mips/mips.h (FP_ASM_SPEC): New define.
42050 (ASM_SPEC): Remove floating-point options and use FP_ASM_SPEC
42053 2015-01-19 Oleg Endo <olegendo@gcc.gnu.org>
42056 * config/sh/sh-protos.h (sh_find_set_of_reg): Make sure not to return
42057 nullptr for insn when reaching the first insn.
42058 * config/sh/sh.c (sh_unspec_insn_p): Rewrite using subrtx_iterator.
42059 (sh_insn_operands_modified_between_p): Add nullptr check.
42060 (sh_find_extending_set_of_reg): Fix log message. Don't accept
42061 sign extending mem load if the insn contains any UNSPEC or
42064 2015-01-19 Jan Hubicka <hubicka@ucw.cz>
42066 * params.def (inline-unit-growth): Drop to 15%.
42067 * invoke.texi (inline-unit-growth): Document change.
42069 2015-01-19 Martin Liska <mliska@suse.cz>
42072 * ipa-icf-gimple.c (func_checker::compare_operand): Call proper
42073 function for second argument of OBJ_TYPE_REF.
42075 2015-01-19 Jan Hubicka <hubicka@ucw.cz>
42078 * ipa-inline.c (want_inline_function_to_all_callers_p): Fix check
42079 whether function is an alias.
42081 2015-01-19 Jan Hubicka <hubicka@ucw.cz>
42083 * ipa-devirt.c (ipa_devirt): Drop polymorphic call info in hopeless
42086 2015-01-19 Vladimir Makarov <vmakarov@redhat.com>
42088 PR rtl-optimization/64671
42089 * lra-remat.c (operand_to_remat): Don't consider jump and call
42092 2015-01-19 David Edelsohn <dje.gcc@gmail.com>
42095 * config/rs6000/default64.h: Include rs6000-cpus.def.
42096 (TARGET_DEFAULT) [LITTLE_ENDIAN]: Use ISA 2.7 (POWER8).
42097 (TARGET_DEFAULT) [BIG_ENDIAN]: Use POWER4.
42098 * config/rs6000/driver-rs6000.c (detect_processor_aix): Add POWER7
42100 * config/rs6000/linux64.h (PROCESSOR_DEFAULT64): Always default to
42102 * config/rs6000/rs6000.c (rs6000_file_start): Emit .machine
42103 pseudo-op to specify assembler dialect.
42105 2015-01-19 Martin Liska <mliska@suse.cz>
42108 * ipa-icf.c (sem_item_optimizer::filter_removed_items):
42109 Handle safe potentially removed nodes during filtering.
42111 2015-01-19 Martin Liska <mliska@suse.cz>
42113 * doc/extend.texi (no_icf): Add new attribute description.
42114 * ipa-icf.c (sem_item_optimizer::merge_classes): Handle cases
42115 where the pass attempts to merge a function with no_icf attribute.
42117 2015-01-19 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
42120 * doc/md.texi (ARM Options): Document register constraints.
42122 2015-01-19 Jiong Wang <jiong.wang@arm.com>
42123 Andrew Pinski <apinski@cavium.com>
42126 * config/aarch64/aarch64.md (define_insn "*ashl<mode>3_insn"): Deleted.
42127 (ashl<mode>3): Don't expand if operands[2] is not constant.
42129 2015-01-19 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
42132 * config/aarch64/aarch64-simd.md (aarch64_simd_bsl<mode>_internal):
42133 Match xor-and-xor RTL pattern.
42135 2015-01-19 Igor Zamyatin <igor.zamyatin@intel.com>
42137 PR rtl-optimization/64081
42138 * loop-iv.c (def_pred_latch_p): New function.
42139 (latch_dominating_def): Allow specific cases with non-single
42141 (iv_get_reaching_def): Likewise.
42142 (check_complex_exit_p): New function.
42143 (check_simple_exit): Use check_complex_exit_p to allow certain cases
42144 with exits not executing on any iteration.
42146 2015-01-19 Jakub Jelinek <jakub@redhat.com>
42148 * common.opt (fgraphite): Fix a typo.
42150 2015-01-19 Felix Yang <felix.yang@huawei.com>
42152 * config/aarch64/aarch64-simd.md (aarch64_<maxmin_uns>p<mode>): New
42154 * config/aarch64/aarch64-simd-builtins.def (smaxp, sminp, umaxp,
42155 uminp, smax_nanp, smin_nanp): New builtins.
42156 * config/aarch64/arm_neon.h (vpmax_s8, vpmax_s16, vpmax_s32,
42157 vpmax_u8, vpmax_u16, vpmax_u32, vpmaxq_s8, vpmaxq_s16, vpmaxq_s32,
42158 vpmaxq_u8, vpmaxq_u16, vpmaxq_u32, vpmax_f32, vpmaxq_f32, vpmaxq_f64,
42159 vpmaxqd_f64, vpmaxs_f32, vpmaxnm_f32, vpmaxnmq_f32, vpmaxnmq_f64,
42160 vpmaxnmqd_f64, vpmaxnms_f32, vpmin_s8, vpmin_s16, vpmin_s32, vpmin_u8,
42161 vpmin_u16, vpmin_u32, vpminq_s8, vpminq_s16, vpminq_s32, vpminq_u8,
42162 vpminq_u16, vpminq_u32, vpmin_f32, vpminq_f32, vpminq_f64, vpminqd_f64,
42163 vpmins_f32, vpminnm_f32, vpminnmq_f32, vpminnmq_f64, vpminnmqd_f64,
42164 vpminnms_f32): Rewrite using builtin functions.
42166 2015-01-19 Thomas Schwinge <thomas@codesourcery.com>
42169 * omp-low.c (offload_symbol_decl): Remove variable.
42170 (get_offload_symbol_decl): Remove function.
42171 (expand_omp_target): For BUILT_IN_GOMP_TARGET,
42172 BUILT_IN_GOMP_TARGET_DATA, BUILT_IN_GOMP_TARGET_UPDATE pass NULL
42173 instead of &__OFFLOAD_TABLE__, for BUILT_IN_GOACC_DATA_START,
42174 BUILT_IN_GOACC_ENTER_EXIT_DATA, BUILT_IN_GOACC_PARALLEL,
42175 BUILT_IN_GOACC_UPDATE don't pass it at all.
42177 2015-01-19 Ilya Enkovich <ilya.enkovich@intel.com>
42179 * tree-sra.c (some_callers_have_mismatched_arguments_p): Allow thunk
42182 2015-01-19 Ilya Enkovich <ilya.enkovich@intel.com>
42184 * ipa-chkp.c (chkp_produce_thunks): Add early param
42185 to split thunks production into two passes. Keep
42186 'always_inline' function bodies after the first pass.
42187 (pass_data_ipa_chkp_early_produce_thunks): New.
42188 (pass_ipa_chkp_early_produce_thunks): New.
42189 (pass_ipa_chkp_produce_thunks::execute): Adjust to new
42190 chkp_produce_thunks signature.
42191 (make_pass_ipa_chkp_early_produce_thunks): New.
42192 * passes.def (pass_ipa_chkp_early_produce_thunks): New.
42193 (pass_ipa_chkp_produce_thunks): Move after local optimizations.
42194 * tree-pass.h (make_pass_ipa_chkp_early_produce_thunks): New.
42196 2015-01-18 Jan Hubicka <hubicka@ucw.cz>
42198 * cgraph.c (cgraph_node::dump): Dump profile flags.
42200 2015-01-18 Oleg Endo <olegendo@gcc.gnu.org>
42203 * config/sh/sh.md (udivsi3_i4, divsi3_i4): Make use of sfunc address
42204 reg appear first in the parallel.
42206 2015-01-18 Jan Hubicka <hubicka@ucw.cz>
42208 * ipa-reference.c (set_reference_optimization_summary,
42209 ipa_reference_get_not_written_global): Do nothing if ipa-reference is
42211 (ignore_module_statics): New static var.
42212 (propagate_bits): If ipa-reference is disabled, do not look into local
42214 (analyze_function): Disable analysis when ipa_reference is disabled.
42215 (generate_summary): Do not dump when reference is disabled;
42216 collect vars accessed from functions with ipa-reference disabled.
42217 (get_read_write_all_from_node): When ipa-reference is disabled, use the
42219 (gate): Enable for LTO.
42220 (ignore_edge_p): New function.
42221 (propagate): Skip functions w/o ipa-reference analysis.
42222 * optc-save-gen.awk: Handle optimize_debug correctly.
42223 * opth-gen.awk: Likewise.
42224 * common.opt (fauto-inc-dec, fdelete-dead-exceptions, ffunction-cse,
42225 fgraphite, fstrict-volatile-bitfields, fira-algorithm, fira-region,
42226 fira-share-save-slots, fira-share-spill-slots,
42227 fmodulo-sched-allow-regmoves, fpartial-inlining,
42228 sched-stalled-insns, fsched-stalled-insns-dep, fstrict-overflow,
42229 ftracer, ftree-parallelize-loops, fassociative-math,
42230 freciprocal-math, fvect-cost-model, fsimd-cost-model): Mark as
42232 (fauto-profile, fcommon, fdata-sections, fipa-icf-variables,
42233 ftoplevel-reorder, funit-at-a-time, fwhole-program): Do not mark as
42235 * ipa-icf.c (gate, sem_item_optimizer::filter_removed_items):
42238 2015-01-18 Jan Hubicka <hubicka@ucw.cz>
42241 * ipa-prop.c (try_make_edge_direct_virtual_call): Clear speculative
42243 * ipa-cp.c (ipa_get_indirect_edge_target_1): Handle speculation.
42245 2015-01-18 Sandra Loosemore <sandra@codesourcery.com>
42247 * doc/invoke.texi ([-funroll-loops], [-funroll-all-loops]):
42248 Remove duplicate option listings.
42250 2015-01-18 Felix Yang <felix.yang@huawei.com>
42252 * auto-profile.c (afdo_find_equiv_class): Remove unnecessary test.
42253 (autofdo_source_profile::get_callsite_total_count,
42254 function_instance::get_function_instance_by_decl,
42255 string_table::get_index, string_table::get_index_by_decl,
42256 afdo_vpt_for_early_inline, afdo_callsite_hot_enough_for_early_inline):
42257 Fix comment typos. Reformatting and minor code rearrangement.
42259 2015-01-17 Segher Boessenkool <segher@kernel.crashing.org>
42261 * config/rs6000/rs6000.md (probe_stack): Delete.
42262 (probe_stack_address): New.
42264 2015-01-17 Segher Boessenkool <segher@kernel.crashing.org>
42266 * config/rs6000/rs6000.c (rs6000_gimplify_va_arg): Use TARGET_32BIT
42267 to test for 32-bit ABIs, not !TARGET_POWERPC64.
42269 2015-01-17 Segher Boessenkool <segher@kernel.crashing.org>
42271 * config/rs6000/rs6000.c (rs6000_parallel_return): New function.
42272 (rs6000_function_value): Use it. Handle SCmode and TCmode as well,
42273 for TARGET_32BIT && TARGET_POWERPC64. Fix another BITS_PER_WORD
42275 (rs6000_libcall_value): Use the new function.
42277 2015-01-17 Sandra Loosemore <sandra@codesourcery.com>
42279 * doc/invoke.texi ([-ftracer]): Remove duplicate option listing.
42281 2015-01-17 Eric Botcazou <ebotcazou@adacore.com>
42283 * reorg.c (fill_simple_delay_slots): If TARGET_FLAGS_REGNUM is valid,
42284 implement a more precise life analysis for it during backward scan.
42286 2015-01-17 Jan Kratochvil <jan.kratochvil@redhat.com>
42288 * dwarf2out.c (gen_producer_string): Ignore also OPT_fpreprocessed.
42290 2015-01-17 Bernd Schmidt <bernds@codesourcery.com>
42292 PR rtl-optimization/52773
42293 * calls.c (emit_library_call_value): When pushing arguments use
42294 stack_pointer_rtx rather than virtual_outgoing_args_rtx in
42295 CALL_INSN_FUNCTION_USAGE. Only emit one of use of the magic
42296 stack pointer reference into CALL_INSN_FUNCTION_USAGE.
42298 2015-01-17 Jeff Law <law@redhat.com>
42300 PR rtl-optimization/32790
42301 * reginfo.c (reg_scan_mark_refs): Look for ZERO_EXTRACT,
42302 not ZERO_EXTEND in SET_DESTs.
42304 2015-01-17 Alan Modra <amodra@gmail.com>
42306 * cprop.c (do_local_cprop): Revert last change.
42308 2015-01-16 DJ Delorie <dj@redhat.com>
42309 Nick Clifton <nickc@redhat.com>
42311 * config/rl78/rl78-real.md (addqi3_real): Allow volatiles.
42312 (addhi3_real): Likewise. Fix [HL+0] syntax.
42313 (subqi3_real): Likewise.
42314 (subhi3_real): Likewise.
42315 (cbranchqi4_real): Likewise. Allow saddr,#imm.
42316 (cbranchhi4_real): Likewise.
42317 (cbranchhi4_real_inverted): Likewise.
42318 (cbranchsi4_real_lt): Likewise.
42319 (cbranchsi4_real_ge): Likewise.
42320 (cbranchsi4_real_ge): Likewise.
42321 * config/rl78/rl78-virt.md (add<mode>3_virt): Likewise.
42322 (sub<mode>3_virt): Likewise.
42323 (cbranchqi4_virt): Likewise.
42324 (cbranchhi4_virt): Likewise.
42325 * config/rl78/rl78.c (rl78_print_operand_1): 'p' modifier means
42326 always use '[reg+imm]' even when imm is zero.
42327 * config/rl78/predicates.md (rl78_volatile_memory_operand): New.
42328 (rl78_general_operand): New.
42329 (rl78_nonimmediate_operand): New.
42330 (rl78_nonfar_operand): Use them.
42331 (rl78_nonfar_nonimm_operand): Likewise.
42332 (rl78_stack_based_mem): Fix.
42333 * config/rl78/constraints.md (Ibqi): New.
42338 * config/rl78/rl78-expand.md (andqi3): Accept volatiles.
42339 (iorqi3): Likewise.
42340 (xorqi3): Likewise.
42341 * config/rl78/rl78-protos.h (rl78_sfr_p): New.
42343 * config/rl78/constrains (Qs8): New constraint.
42344 * config/rl78/rl78.c (rl78_flags_already_set): New function.
42345 * config/rl78/rl78-protos.h (rl78_flags_already_set): New prototype.
42346 * config/rl78/rl78-real.md (update_Z): New attribute.
42347 Update patterns to set it.
42348 (cbranchqi4_real): Call rl78_flags_already_set() to determine if a
42349 shorter compare and branch sequence can be used.
42350 (cbranchhi4_real): Likewise.
42351 (cbranchhi4_real_inverted): Likewise.
42353 * config/rl78/predicates.md (uword_operand): Allow symbol_refs.
42354 * config/rl78/rl78-c.c (rl78_register_pragmas): Register __near
42356 * config/rl78/rl78.c (rl78_get_name_encoding): New.
42357 (rl78_option_override): Allow -mes0 only if C.
42358 (characterize_address): Support subregs of symbol_refs.
42359 (rl78_addr_space_address_mode): Move. Add __near.
42360 (rl78_far_p): Likewise.
42361 (rl78_addr_space_pointer_mode): Likewise.
42362 (rl78_as_legitimate_address): Likewise.
42363 (rl78_addr_space_subset_p): Likewise.
42364 (rl78_addr_space_convert): Likewise.
42365 (rl78_print_operand_1): Support 16-bit addressing of 32-bit
42366 symbols with -mes0.
42367 (transcode_memory_rtx): Don't copy ES if -mes0. Allow symbol[BC]
42369 (rl78_alloc_physical_registers_op1): Change logic to prefer
42370 symbol[BC] addressing.
42371 (frodata_section): New.
42372 (rl78_asm_init_sections): Initialize it.
42373 (rl78_select_section): Put __far readonly symbols in .frodata.
42374 (rl78_make_type_far): New.
42375 (rl78_insert_attributes): Force all readonly symbols to be
42377 (rl78_asm_out_integer): New.
42378 * config/rl78/rl78.h (ADDR_SPACE_NEAR): New.
42379 * config/rl78/rl78.opt (-mes0): New.
42381 * config/rl78/rl78.h (ASM_OUTPUT_LABELREF): New.
42382 (ASM_OUTPUT_ALIGNED_DECL_COMMON): New.
42383 (ASM_OUTPUT_ALIGNED_DECL_LOCAL): New.
42384 * config/rl78/rl78-protos.h (rl78_output_labelref): New.
42385 (rl78_saddr_p): New.
42386 (rl78_output_aligned_common): New.
42387 * config/rl78/rl78.c (rl78_output_symbol_ref): Strip encodings.
42388 (rl78_handle_saddr_attribute): New.
42389 (rl78_handle_naked_attribute): New.
42390 (rl78_attribute_table): Add saddr.
42391 (rl78_print_operand_1): Don't print '!' on saddr operands.
42392 (rl78_print_operand_1): Strip encodings.
42394 (rl78_strip_name_encoding): New.
42395 (rl78_attrlist_to_encoding): New.
42396 (rl78_encode_section_info): New.
42397 (rl78_asm_init_sections): New.
42398 (rl78_select_section): New.
42399 (rl78_output_labelref): New.
42400 (rl78_output_aligned_common): New.
42401 (rl78_asm_out_integer): New.
42402 (rl78_asm_ctor_dtor): New.
42403 (rl78_asm_constructor): New.
42404 (rl78_asm_destructor): New.
42406 * config/rl78/rl78-real.md (movqi_es): Rename to movqi_to_es.
42407 * config/rl78/rl78.c (rl78_expand_epilogue): Update.
42408 (transcode_memory_rtx): Update.
42409 (rl78_expand_epilogue): Use A_REG instead of 0.
42411 2015-01-17 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
42413 * config/arm/arm-protos.h (struct tune_params): New field
42414 sched_autopref_queue_depth.
42415 * config/arm/arm.c (sched-int.h): Include header.
42416 (arm_first_cycle_multipass_dfa_lookahead_guard,)
42417 (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD): Define hook.
42418 (arm_slowmul_tune, arm_fastmul_tune, arm_strongarm_tune,)
42419 (arm_xscale_tune, arm_9e_tune, arm_v6t2_tune, arm_cortex_tune,)
42420 (arm_cortex_a8_tune, arm_cortex_a7_tune, arm_cortex_a15_tune,)
42421 (arm_cortex_a53_tune, arm_cortex_a57_tune, arm_xgene1_tune,)
42422 (arm_cortex_a5_tune, arm_cortex_a9_tune, arm_cortex_a12_tune,)
42423 (arm_v7m_tune, arm_cortex_m7_tune, arm_v6m_tune, arm_fa726te_tune):
42424 Specify sched_autopref_queue_depth value. Enabled for A15 and A57.
42425 * config/arm/t-arm (arm.o): Update.
42426 * haifa-sched.c (update_insn_after_change): Update.
42427 (rank_for_schedule): Use auto-prefetcher model, if requested.
42428 (autopref_multipass_init): New static function.
42429 (autopref_rank_for_schedule): New rank_for_schedule heuristic.
42430 (autopref_multipass_dfa_lookahead_guard_started_dump_p): New static
42431 variable for debug dumps.
42432 (autopref_multipass_dfa_lookahead_guard_1): New static helper function.
42433 (autopref_multipass_dfa_lookahead_guard): New global function that
42434 implements TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD hook.
42435 (init_h_i_d): Update.
42436 * params.def (PARAM_SCHED_AUTOPREF_QUEUE_DEPTH): New tuning knob.
42437 * sched-int.h (enum autopref_multipass_data_status): New const enum.
42438 (autopref_multipass_data_): Structure for auto-prefetcher data.
42439 (autopref_multipass_data_def, autopref_multipass_data_t): New typedefs.
42440 (struct _haifa_insn_data:autopref_multipass_data): New field.
42441 (INSN_AUTOPREF_MULTIPASS_DATA): New access macro.
42442 (autopref_multipass_dfa_lookahead_guard): Declare.
42444 2015-01-17 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
42446 * rtlanal.c (get_base_term): Handle SCRATCH.
42448 2015-01-17 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
42450 * config/aarch64/aarch64.c
42451 (aarch64_sched_first_cycle_multipass_dfa_lookahead): Implement hook.
42452 (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD): Define.
42454 (arm_first_cycle_multipass_dfa_lookahead): Implement hook.
42455 (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD): Define.
42457 2015-01-17 Alan Modra <amodra@gmail.com>
42459 * cprop.c (do_local_cprop): Disallow replacement of fixed
42462 2015-01-16 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
42465 * config/arm/arm-builtins.c (arm_expand_neon_args): Call va_end before
42468 2015-01-16 Bernd Edlinger <bernd.edlinger@hotmail.de>
42470 * sanitizer.def (BUILT_IN_TSAN_VPTR_UPDATE): Fixed parameters.
42471 * tsan.c (instrument_expr): Fixed parameters of __tsan_vptr_update.
42473 2015-01-16 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
42475 * config/arm/arm.md: Move comment about splitting Thumb1 patterns to...
42476 * config/arm/thumb1.md: ... Here.
42478 2015-01-16 Segher Boessenkool <segher@kernel.crashing.org>
42480 * config/rs6000/rs6000.c (rs6000_scalar_mode_supported_p): Disallow
42481 TImode for TARGET_32BIT.
42483 2015-01-16 Segher Boessenkool <segher@kernel.crashing.org>
42485 * config/rs6000/rs6000.c (TARGET_LIBGCC_CMP_RETURN_MODE,
42486 TARGET_LIBGCC_SHIFT_COUNT_MODE, TARGET_UNWIND_WORD_MODE): Implement
42488 (rs6000_abi_word_mode): New function.
42490 2015-01-16 Segher Boessenkool <segher@kernel.crashing.org>
42492 * config/rs6000/rs6000.c (rs6000_va_start): Use MIN_UNITS_PER_WORD
42493 instead of UNITS_PER_WORD to describe the size of stack slots.
42495 2015-01-16 Segher Boessenkool <segher@kernel.crashing.org>
42497 * config/rs6000/rs6000.c (TARGET_PROMOTE_FUNCTION_MODE): Implement
42498 as rs6000_promote_function_mode. Move comment to there.
42499 (rs6000_promote_function_mode): New function.
42501 2015-01-16 Segher Boessenkool <segher@kernel.crashing.org>
42503 * config/rs6000/rs6000.h (PROMOTE_MODE): Correct test for when -m32
42504 -mpowerpc64 is active.
42506 2015-01-16 Ilya Enkovich <ilya.enkovich@intel.com>
42508 PR middle-end/64353
42509 * tree-cfg.c (pass_data_fixup_cfg): Update SSA for
42512 2015-01-16 James Greenhalgh <james.greenhalgh@arm.com>
42514 * config/arm/cortex-a57.md: Remove duplicate of file accidentally
42515 introduced in revision 219724.
42517 2015-01-16 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
42518 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
42521 * config/aarch64/aarch64.md (*movsi_aarch64): Don't split if the
42522 destination is not a GP reg.
42523 (*movdi_aarch64): Likewise.
42525 2015-01-16 David Edelsohn <dje.gcc@gmail.com>
42528 * config/rs6000/default64.h: Revert ISA change.
42530 2015-01-16 Richard Biener <rguenther@suse.de>
42532 PR middle-end/64614
42533 * tree-ssa-uninit.c: Include tree-cfg.h.
42534 (MAX_SWITCH_CASES): New define.
42535 (convert_control_dep_chain_into_preds): Handle switch statements.
42536 (is_pred_expr_subset_of): Handle x == CST vs. (x & CST) != 0.
42537 (normalize_one_pred_1): Do not split bit-manipulations.
42540 2015-01-16 Richard Biener <rguenther@suse.de>
42542 PR tree-optimization/64568
42543 * tree-ssa-forwprop.c (pass_forwprop::execute): Guard
42544 complex load rewriting for TARGET_MEM_REFs.
42546 2015-01-16 Uros Bizjak <ubizjak@gmail.com>
42548 * builtins.c (expand_builtin_acc_on_device): Check target for NULL.
42550 2015-01-16 Matthew Wahab <matthew.wahab@arm.com>
42553 * config/aarch64/aarch64.opt: Remove lra option and aarch64_lra_flag
42555 * config/aarch64/aarch64.c (TARGET_LRA_P): Set to hook_bool_void_true.
42556 (aarch64_lra_p): Remove.
42558 2015-01-16 Ilya Enkovich <ilya.enkovich@intel.com>
42561 * ipa-chkp.h (chkp_instrumentable_p): New.
42562 * ipa-chkp.c: Include tree-inline.h.
42563 (chkp_instrumentable_p): New.
42564 (chkp_maybe_create_clone): Use chkp_instrumentable_p.
42565 Fix processing of not instrumentable functions.
42566 (chkp_versioning): Use chkp_instrumentable_p. Warn about
42567 not instrumentable functions.
42568 * tree-chkp.c (chkp_add_bounds_to_call_stmt): Use
42569 chkp_instrumentable_p.
42570 * tree-inline.h (copy_forbidden): New.
42571 * tree-inline.c (copy_forbidden): Not static anymore.
42573 2015-01-16 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
42575 * optc-save-gen.awk (cl_target_option_print_diff): Mark indent,
42578 2015-01-16 Robert Suchanek <robert.suchanek@imgtec.com>
42580 * lra-constraints.c (curr_insn_transform): Change a reload pseudo of
42581 type OP_OUT to OP_INOUT.
42583 2015-01-16 Robert Suchanek <robert.suchanek@imgtec.com>
42585 * simplify-rtx.c (simplify_replace_fn_rtx): Simplify (lo_sum
42586 (high x) y) to y if x and y have the same base.
42588 2015-01-16 James Greenhalgh <james.greenhalgh@arm.com>
42590 * config/arm/cortex-a57.md: New.
42591 * config/aarch64/aarch64.md: Include it.
42592 * config/aarch64/aarch64-cores.def (cortex-a57): Tune for it.
42593 * config/aarch64/aarch64-tune.md: Regenerate.
42595 2015-01-16 Zhenqiang Chen <zhenqiang.chen@arm.com>
42598 * ccmp.c (expand_ccmp_next): New function.
42599 (expand_ccmp_expr_1, expand_ccmp_expr): Handle operand insn sequence
42600 and compare insn sequence.
42601 * config/aarch64/aarch64.c (aarch64_code_to_ccmode,
42602 aarch64_gen_ccmp_first, aarch64_gen_ccmp_next): New functions.
42603 (TARGET_GEN_CCMP_FIRST, TARGET_GEN_CCMP_NEXT): New MICRO.
42604 * config/aarch64/aarch64.md (*ccmp_and): Changed to ccmp_and<mode>.
42605 (*ccmp_ior): Changed to ccmp_ior<mode>.
42606 (cmp<mode>): New pattern.
42607 * doc/tm.texi (TARGET_GEN_CCMP_FIRST, TARGET_GEN_CCMP_NEXT): Update
42609 * target.def (gen_ccmp_first, gen_ccmp_next): Update parameters.
42611 2015-01-16 Ilya Tocar <ilya.tocar@intel.com>
42613 * config/i386/avx2intrin.h (_mm256_bslli_epi128,
42614 _mm256_bsrli_epi128): New.
42615 * config/i386/emmintrin.h (_mm_bsrli_si128, _mm_bslli_si128): Ditto.
42617 2015-01-15 Jiong Wang <jiong.wang@arm.com>
42619 * expmed.c (store_bit_field_using_insv): Improve warning message.
42620 Use %wu instead of HOST_WIDE_INT_PRINT_UNSIGNED.
42622 2015-01-15 Jiong Wang <jiong.wang@arm.com>
42624 PR rtl-optimization/64011
42625 * expmed.c (store_bit_field_using_insv): Warn and truncate bitsize when
42626 there is partial overflow.
42628 2015-01-16 Chung-Ju Wu <jasonwucj@gmail.com>
42630 * config/nds32/nds32-protos.h (nds32_expand_epilogue): Change
42632 (nds32_expand_epilogue_v3pop): Likewise.
42633 * config/nds32/nds32.md (sibcall): Define this for sibling call
42635 (sibcall_register): Likewise.
42636 (sibcall_immediate): Likewise.
42637 (sibcall_value): Likewise.
42638 (sibcall_value_register): Likewise.
42639 (sibcall_value_immediate): Likewise.
42640 (sibcall_epilogue): Likewise.
42641 (epilogue): Pass false to indicate this is not a sibcall epilogue.
42642 * config/nds32/nds32.c (nds32_expand_epilogue): Consider sibcall case.
42643 (nds32_expand_epilogue_v3pop): Likewise.
42645 2015-01-16 Chung-Ju Wu <jasonwucj@gmail.com>
42647 * config/nds32/nds32-protos.h (nds32_can_use_return_insn): New.
42648 * config/nds32/nds32.md (unspec_volatile_func_return): Remove.
42649 (return_internal): New.
42650 (return): Define this named pattern.
42651 (simple_return): Define this named pattern.
42652 * config/nds32/nds32.c (nds32_expand_epilogue): Emit return_internal
42653 pattern instead of unspec_volatile_func_return.
42654 (nds32_expand_epilogue_v3pop): Likewise.
42655 (nds32_can_use_return_insn): New function.
42657 2015-01-16 Chung-Ju Wu <jasonwucj@gmail.com>
42659 * config/nds32/constants.md (UNSPEC_VOLATILE_POP25_RETURN): New.
42660 * config/nds32/nds32.md (pop25return): New.
42661 * config/nds32/nds32.c (nds32_expand_epilogue_v3pop): Emit
42662 pop25return pattern.
42664 2015-01-16 Chung-Ju Wu <jasonwucj@gmail.com>
42666 * doc/invoke.texi (NDS32 Options): Remove -mforce-fp-as-gp,
42667 -mforbid-fp-as-gp, and -mex9 options.
42669 2015-01-16 Chung-Ju Wu <jasonwucj@gmail.com>
42671 * doc/invoke.texi (NDS32 Options): Add -mcmodel= option and
42672 remove -mgp-direct option.
42674 2015-01-15 Jan Hubicka <hubicka@ucw.cz>
42676 * doc/invoke.texi (--param early-inlining-insns): Update default value.
42677 * params.def (PARAM_EARLY_INLINING_INSNS): Set to 14.
42679 2015-01-15 Jan Hubicka <hubicka@ucw.cz>
42681 * ipa-inline.c (inline_small_functions): Work around hints
42684 2015-01-15 Sandra Loosemore <sandra@codesourcery.com>
42687 * doc/invoke.texi (Option Summary): Document new Nios II
42689 (Nios II Options): Likewise.
42690 * config/nios2/nios2.opt: Add -mgpopt= option support.
42691 Modify existing -mgpopt and -mno-gpopt options to be aliases.
42692 * config/nios2/nios2-opts.h (enum nios2_gpopt_type): New.
42693 * config/nios2/nios2.c (nios2_option_override): Adjust
42694 -mgpopt defaulting.
42695 (nios2_in_small_data_p): Return true for explicit small data
42696 sections even with -G0.
42697 (nios2_symbol_ref_in_small_data_p): Adjust to handle new -mgpopt=
42700 2015-01-15 Jan Hubicka <hubicka@ucw.cz>
42703 * ipa-inline-transform.c (can_remove_node_now_p): Fix handling
42705 (inline_call): Fix removal of aliases.
42707 2015-01-15 Jakub Jelinek <jakub@redhat.com>
42709 * flag-types.h (enum sanitize_code): Add SANITIZE_VPTR,
42710 include SANITIZE_VPTR in SANITIZE_UNDEFINED.
42711 * opts.c (common_handle_option): Add -fsanitize=vptr.
42712 * sanitizer.def (BUILT_IN_UBSAN_HANDLE_DYNAMIC_TYPE_CACHE_MISS,
42713 BUILT_IN_UBSAN_HANDLE_DYNAMIC_TYPE_CACHE_MISS_ABORT): New.
42714 * ubsan.h (enum ubsan_null_ckind): Add UBSAN_DOWNCAST_POINTER,
42715 UBSAN_DOWNCAST_REFERENCE, UBSAN_UPCAST and UBSAN_CAST_TO_VBASE.
42716 (ubsan_expand_vptr_ifn): New prototype.
42717 * internal-fn.c (expand_ANNOTATE, expand_GOMP_SIMD_LANE,
42718 expand_GOMP_SIMD_VF, expand_GOMP_SIMD_LAST_LANE, expand_UBSAN_NULL,
42719 expand_UBSAN_BOUNDS, expand_UBSAN_OBJECT_SIZE, expand_ASAN_CHECK,
42720 expand_LOOP_VECTORIZED): Make argument nameless, remove
42722 (expand_UBSAN_VPTR): New function.
42723 * internal-fn.def (UBSAN_NULL, ASAN_CHECK): Use R instead of W
42725 (UBSAN_VPTR): New internal function.
42726 * sanopt.c (tree_map_traits): Renamed to ...
42727 (sanopt_tree_map_traits): ... this.
42728 (sanopt_tree_triplet, sanopt_tree_triplet_map_traits): New classes.
42729 (sanopt_ctx): Adjust asan_check_map type for tree_map_traits
42730 to sanopt_tree_map_traits renaming. Add vptr_check_map field.
42731 (maybe_optimize_ubsan_vptr_ifn): New function.
42732 (sanopt_optimize_walker): Handle IFN_UBSAN_VPTR.
42733 (pass_sanopt::execute): Likewise. Call sanopt_optimize even for
42735 * tree-ssa-alias.c (call_may_clobber_ref_p_1): Handle certain
42736 internal calls like pure functions for aliasing, even when they
42737 have other side-effects that prevent making them ECF_PURE.
42738 * ubsan.c (ubsan_vptr_type_cache_decl): New variable.
42739 (ubsan_expand_vptr_ifn): New function.
42741 2015-01-15 Vladimir Makarov <vmakarov@redhat.com>
42743 PR rtl-optimization/64110
42744 * stmt.c (parse_output_constraint): Process '^' and '$'.
42745 (parse_input_constraint): Ditto.
42746 * lra-constraints.c (process_alt_operands): Process the new
42748 * ira-costs.c (record_reg_classes): Process the new constraint
42750 * genoutput.c (indep_constraints): Add '^' and '$'.
42751 * config/i386/sse.md (*vec_dup<mode>): Use '$' instead of '!'.
42752 * doc/md.texi: Add description of the new constraints.
42754 2015-01-15 Thomas Schwinge <thomas@codesourcery.com>
42755 Bernd Schmidt <bernds@codesourcery.com>
42756 Cesar Philippidis <cesar@codesourcery.com>
42757 James Norris <jnorris@codesourcery.com>
42758 Tom de Vries <tom@codesourcery.com>
42759 Ilmir Usmanov <i.usmanov@samsung.com>
42760 Dmitry Bocharnikov <dmitry.b@samsung.com>
42761 Evgeny Gavrin <e.gavrin@samsung.com>
42762 Jakub Jelinek <jakub@redhat.com>
42764 * builtin-types.def (BT_FN_VOID_INT_INT_VAR)
42765 (BT_FN_VOID_INT_PTR_SIZE_PTR_PTR_PTR_INT_INT_VAR)
42766 (BT_FN_VOID_INT_OMPFN_PTR_SIZE_PTR_PTR_PTR_INT_INT_INT_INT_INT_VAR):
42767 New function types.
42768 * builtins.c: Include "gomp-constants.h".
42769 (expand_builtin_acc_on_device): New function.
42770 (expand_builtin, is_inexpensive_builtin): Handle
42771 BUILT_IN_ACC_ON_DEVICE.
42772 * builtins.def (DEF_GOACC_BUILTIN, DEF_GOACC_BUILTIN_COMPILER):
42774 * cgraph.c (cgraph_node::create): Consider flag_openacc next to
42776 * config.gcc <nvptx-*> (tm_file): Add nvptx/offload.h.
42777 <*-intelmic-* | *-intelmicemul-*> (tm_file): Add
42778 i386/intelmic-offload.h.
42779 * gcc.c (LINK_COMMAND_SPEC, GOMP_SELF_SPECS): For -fopenacc, link
42780 to libgomp and its dependencies.
42781 * config/arc/arc.h (LINK_COMMAND_SPEC): Likewise.
42782 * config/darwin.h (LINK_COMMAND_SPEC_A): Likewise.
42783 * config/i386/mingw32.h (GOMP_SELF_SPECS): Likewise.
42784 * config/ia64/hpux.h (LIB_SPEC): Likewise.
42785 * config/pa/pa-hpux11.h (LIB_SPEC): Likewise.
42786 * config/pa/pa64-hpux.h (LIB_SPEC): Likewise.
42787 * doc/generic.texi: Update for OpenACC changes.
42788 * doc/gimple.texi: Likewise.
42789 * doc/invoke.texi: Likewise.
42790 * doc/sourcebuild.texi: Likewise.
42791 * gimple-pretty-print.c (dump_gimple_omp_for): Handle
42792 GF_OMP_FOR_KIND_OACC_LOOP.
42793 (dump_gimple_omp_target): Handle GF_OMP_TARGET_KIND_OACC_KERNELS,
42794 GF_OMP_TARGET_KIND_OACC_PARALLEL, GF_OMP_TARGET_KIND_OACC_DATA,
42795 GF_OMP_TARGET_KIND_OACC_UPDATE,
42796 GF_OMP_TARGET_KIND_OACC_ENTER_EXIT_DATA.
42798 * gimple.c: Update comments for OpenACC changes.
42799 * gimple.def: Likewise.
42800 * gimple.h: Likewise.
42801 (enum gf_mask): Add GF_OMP_FOR_KIND_OACC_LOOP,
42802 GF_OMP_TARGET_KIND_OACC_PARALLEL, GF_OMP_TARGET_KIND_OACC_KERNELS,
42803 GF_OMP_TARGET_KIND_OACC_DATA, GF_OMP_TARGET_KIND_OACC_UPDATE,
42804 GF_OMP_TARGET_KIND_OACC_ENTER_EXIT_DATA.
42805 (gimple_omp_for_cond, gimple_omp_for_set_cond): Sort in the
42807 (is_gimple_omp_oacc, is_gimple_omp_offloaded): New functions.
42808 * gimplify.c: Include "gomp-constants.h".
42809 Update comments for OpenACC changes.
42810 (is_gimple_stmt): Handle OACC_PARALLEL, OACC_KERNELS, OACC_DATA,
42811 OACC_HOST_DATA, OACC_DECLARE, OACC_UPDATE, OACC_ENTER_DATA,
42812 OACC_EXIT_DATA, OACC_CACHE, OACC_LOOP.
42813 (gimplify_scan_omp_clauses, gimplify_adjust_omp_clauses): Handle
42814 OMP_CLAUSE__CACHE_, OMP_CLAUSE_ASYNC, OMP_CLAUSE_WAIT,
42815 OMP_CLAUSE_NUM_GANGS, OMP_CLAUSE_NUM_WORKERS,
42816 OMP_CLAUSE_VECTOR_LENGTH, OMP_CLAUSE_GANG, OMP_CLAUSE_WORKER,
42817 OMP_CLAUSE_VECTOR, OMP_CLAUSE_DEVICE_RESIDENT,
42818 OMP_CLAUSE_USE_DEVICE, OMP_CLAUSE_INDEPENDENT, OMP_CLAUSE_AUTO,
42820 (gimplify_adjust_omp_clauses_1, gimplify_adjust_omp_clauses): Use
42821 GOMP_MAP_* instead of OMP_CLAUSE_MAP_*. Use
42822 OMP_CLAUSE_SET_MAP_KIND.
42823 (gimplify_oacc_cache): New function.
42824 (gimplify_omp_for): Handle OACC_LOOP.
42825 (gimplify_omp_workshare): Handle OACC_KERNELS, OACC_PARALLEL,
42827 (gimplify_omp_target_update): Handle OACC_ENTER_DATA,
42828 OACC_EXIT_DATA, OACC_UPDATE.
42829 (gimplify_expr): Handle OACC_LOOP, OACC_CACHE, OACC_HOST_DATA,
42830 OACC_DECLARE, OACC_KERNELS, OACC_PARALLEL, OACC_DATA,
42831 OACC_ENTER_DATA, OACC_EXIT_DATA, OACC_UPDATE.
42832 (gimplify_body): Consider flag_openacc next to flag_openmp.
42833 * lto-streamer-out.c: Include "gomp-constants.h".
42834 * omp-builtins.def (BUILT_IN_ACC_GET_DEVICE_TYPE)
42835 (BUILT_IN_GOACC_DATA_START, BUILT_IN_GOACC_DATA_END)
42836 (BUILT_IN_GOACC_ENTER_EXIT_DATA, BUILT_IN_GOACC_PARALLEL)
42837 (BUILT_IN_GOACC_UPDATE, BUILT_IN_GOACC_WAIT)
42838 (BUILT_IN_GOACC_GET_THREAD_NUM, BUILT_IN_GOACC_GET_NUM_THREADS)
42839 (BUILT_IN_ACC_ON_DEVICE): New builtins.
42840 * omp-low.c: Include "gomp-constants.h".
42841 Update comments for OpenACC changes.
42842 (struct omp_context): Add reduction_map, gwv_below, gwv_this
42844 (extract_omp_for_data, use_pointer_for_field, install_var_field)
42845 (new_omp_context, delete_omp_context, scan_sharing_clauses)
42846 (create_omp_child_function, scan_omp_for, scan_omp_target)
42847 (check_omp_nesting_restrictions, lower_reduction_clauses)
42848 (build_omp_regions_1, diagnose_sb_0, make_gimple_omp_edges):
42849 Update for OpenACC changes.
42850 (scan_sharing_clauses): Handle OMP_CLAUSE_NUM_GANGS:
42851 OMP_CLAUSE_NUM_WORKERS: OMP_CLAUSE_VECTOR_LENGTH,
42852 OMP_CLAUSE_ASYNC, OMP_CLAUSE_WAIT, OMP_CLAUSE_GANG,
42853 OMP_CLAUSE_WORKER, OMP_CLAUSE_VECTOR, OMP_CLAUSE_DEVICE_RESIDENT,
42854 OMP_CLAUSE_USE_DEVICE, OMP_CLAUSE__CACHE_, OMP_CLAUSE_INDEPENDENT,
42855 OMP_CLAUSE_AUTO, OMP_CLAUSE_SEQ. Use GOMP_MAP_* instead of
42857 (expand_omp_for_static_nochunk, expand_omp_for_static_chunk):
42858 Handle GF_OMP_FOR_KIND_OACC_LOOP.
42859 (expand_omp_target, lower_omp_target): Handle
42860 GF_OMP_TARGET_KIND_OACC_PARALLEL, GF_OMP_TARGET_KIND_OACC_KERNELS,
42861 GF_OMP_TARGET_KIND_OACC_UPDATE,
42862 GF_OMP_TARGET_KIND_OACC_ENTER_EXIT_DATA,
42863 GF_OMP_TARGET_KIND_OACC_DATA.
42864 (pass_expand_omp::execute, execute_lower_omp)
42865 (pass_diagnose_omp_blocks::gate): Consider flag_openacc next to
42867 (offload_symbol_decl): New variable.
42868 (oacc_get_reduction_array_id, oacc_max_threads)
42869 (get_offload_symbol_decl, get_base_type, lookup_oacc_reduction)
42870 (maybe_lookup_oacc_reduction, enclosing_target_ctx)
42871 (oacc_loop_or_target_p, oacc_lower_reduction_var_helper)
42872 (oacc_gimple_assign, oacc_initialize_reduction_data)
42873 (oacc_finalize_reduction_data, oacc_process_reduction_data): New
42875 (is_targetreg_ctx): Remove function.
42876 * tree-core.h (enum omp_clause_code): Add OMP_CLAUSE__CACHE_,
42877 OMP_CLAUSE_DEVICE_RESIDENT, OMP_CLAUSE_USE_DEVICE,
42878 OMP_CLAUSE_GANG, OMP_CLAUSE_ASYNC, OMP_CLAUSE_WAIT,
42879 OMP_CLAUSE_AUTO, OMP_CLAUSE_SEQ, OMP_CLAUSE_INDEPENDENT,
42880 OMP_CLAUSE_WORKER, OMP_CLAUSE_VECTOR, OMP_CLAUSE_NUM_GANGS,
42881 OMP_CLAUSE_NUM_WORKERS, OMP_CLAUSE_VECTOR_LENGTH.
42882 * tree.c (omp_clause_code_name, walk_tree_1): Update accordingly.
42883 * tree.h (OMP_CLAUSE_GANG_EXPR, OMP_CLAUSE_GANG_STATIC_EXPR)
42884 (OMP_CLAUSE_ASYNC_EXPR, OMP_CLAUSE_WAIT_EXPR)
42885 (OMP_CLAUSE_VECTOR_EXPR, OMP_CLAUSE_WORKER_EXPR)
42886 (OMP_CLAUSE_NUM_GANGS_EXPR, OMP_CLAUSE_NUM_WORKERS_EXPR)
42887 (OMP_CLAUSE_VECTOR_LENGTH_EXPR): New macros.
42888 * tree-core.h: Update comments for OpenACC changes.
42889 (enum omp_clause_map_kind): Remove.
42890 (struct tree_omp_clause): Change type of map_kind member from enum
42891 omp_clause_map_kind to unsigned char.
42892 * tree-inline.c: Update comments for OpenACC changes.
42893 * tree-nested.c: Likewise. Include "gomp-constants.h".
42894 (convert_nonlocal_reference_stmt, convert_local_reference_stmt)
42895 (convert_tramp_reference_stmt, convert_gimple_call): Update for
42896 OpenACC changes. Use GOMP_MAP_* instead of OMP_CLAUSE_MAP_*. Use
42897 OMP_CLAUSE_SET_MAP_KIND.
42898 * tree-pretty-print.c: Include "gomp-constants.h".
42899 (dump_omp_clause): Handle OMP_CLAUSE_DEVICE_RESIDENT,
42900 OMP_CLAUSE_USE_DEVICE, OMP_CLAUSE__CACHE_, OMP_CLAUSE_GANG,
42901 OMP_CLAUSE_ASYNC, OMP_CLAUSE_AUTO, OMP_CLAUSE_SEQ,
42902 OMP_CLAUSE_WAIT, OMP_CLAUSE_WORKER, OMP_CLAUSE_VECTOR,
42903 OMP_CLAUSE_NUM_GANGS, OMP_CLAUSE_NUM_WORKERS,
42904 OMP_CLAUSE_VECTOR_LENGTH, OMP_CLAUSE_INDEPENDENT. Use GOMP_MAP_*
42905 instead of OMP_CLAUSE_MAP_*.
42906 (dump_generic_node): Handle OACC_PARALLEL, OACC_KERNELS,
42907 OACC_DATA, OACC_HOST_DATA, OACC_DECLARE, OACC_UPDATE,
42908 OACC_ENTER_DATA, OACC_EXIT_DATA, OACC_CACHE, OACC_LOOP.
42909 * tree-streamer-in.c: Include "gomp-constants.h".
42910 (unpack_ts_omp_clause_value_fields) Use GOMP_MAP_* instead of
42911 OMP_CLAUSE_MAP_*. Use OMP_CLAUSE_SET_MAP_KIND.
42912 * tree-streamer-out.c: Include "gomp-constants.h".
42913 (pack_ts_omp_clause_value_fields): Use GOMP_MAP_* instead of
42915 * tree.def (OACC_PARALLEL, OACC_KERNELS, OACC_DATA)
42916 (OACC_HOST_DATA, OACC_LOOP, OACC_CACHE, OACC_DECLARE)
42917 (OACC_ENTER_DATA, OACC_EXIT_DATA, OACC_UPDATE): New tree codes.
42918 * tree.c (omp_clause_num_ops): Update accordingly.
42919 * tree.h (OMP_BODY, OMP_CLAUSES, OMP_LOOP_CHECK, OMP_CLAUSE_SIZE):
42921 (OACC_PARALLEL_BODY, OACC_PARALLEL_CLAUSES, OACC_KERNELS_BODY)
42922 (OACC_KERNELS_CLAUSES, OACC_DATA_BODY, OACC_DATA_CLAUSES)
42923 (OACC_HOST_DATA_BODY, OACC_HOST_DATA_CLAUSES, OACC_CACHE_CLAUSES)
42924 (OACC_DECLARE_CLAUSES, OACC_ENTER_DATA_CLAUSES)
42925 (OACC_EXIT_DATA_CLAUSES, OACC_UPDATE_CLAUSES)
42926 (OACC_KERNELS_COMBINED, OACC_PARALLEL_COMBINED): New macros.
42927 * tree.h (OMP_CLAUSE_MAP_KIND): Cast it to enum gomp_map_kind.
42928 (OMP_CLAUSE_SET_MAP_KIND): New macro.
42929 * varpool.c (varpool_node::get_create): Consider flag_openacc next
42931 * config/i386/intelmic-offload.h: New file.
42932 * config/nvptx/offload.h: Likewise.
42934 2015-01-15 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
42936 * explow.h: Remove duplicate contents.
42937 * dojump.h: Likewise.
42939 2015-01-15 Richard Earnshaw <rearnsha@arm.com>
42941 * arm.c (arm_xgene_tune): Add default initializer for instruction
42944 2015-01-15 Jan Hubicka <hubicka@ucw.cz>
42948 * ipa.c (symbol_table::remove_unreachable_nodes):
42949 Do not put abstract origins into boundary.
42951 2015-01-15 Evgeny Stupachenko <evstupac@gmail.com>
42953 * config/i386/gnu-user.h (CRT_GET_RFIB_DATA): Remove EBX register usage.
42954 * config/i386/sysv4.h (CRT_GET_RFIB_DATA): Ditto.
42956 2015-01-15 Steve Ellcey <sellcey@mips.com>
42958 * Makefile.in (PLUGIN_HEADERS): Add dominance.h, cfg.h, cfgrtl.h,
42959 cfganal.h, cfgbuild.h, cfgcleanup.h, lcm.h, cfgloopmanip.h,
42960 builtins.def, and chkp-builtins.def.
42962 2015-01-15 David Edelsohn <dje.gcc@gmail.com>
42964 * config/rs6000/default64.h (TARGET_DEFAULT) [LITTLE_ENDIAN]: Use
42967 2015-01-15 Richard Biener <rguenther@suse.de>
42969 PR tree-optimization/61743
42970 * tree-ssa-pre.c (insert_into_preds_of_block): Preserve range
42971 information on PHIs for some simple cases.
42973 2015-01-15 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
42975 * config/arm/arm.md (generic_sched): Specify xgene1 in 'no' list.
42977 * config/arm/arm.c (arm_issue_rate): Specify 4 for xgene1.
42978 * config/arm/arm-cores.def (xgene1): New entry.
42979 * config/arm/arm-tables.opt: Regenerate.
42980 * config/arm/arm-tune.md: Regenerate.
42981 * config/arm/bpabi.h (BE8_LINK_SPEC): Specify mcpu=xgene1.
42983 2015-01-15 Yuri Rumyantsev <ysrumyan@gmail.com>
42985 * tree-if-conv.c: Include hash-map.h.
42986 (aggressive_if_conv): New variable.
42987 (fold_build_cond_expr): Add simplification of non-zero condition.
42988 (add_to_dst_predicate_list): Invoke add_to_predicate_list if edge
42989 destination block is not always executed.
42990 (if_convertible_phi_p): Fix commentary, allow phi nodes have more
42991 than two predecessors if AGGRESSIVE_IF_CONV is true.
42992 (if_convertible_stmt_p): Fix commentary.
42993 (all_preds_critical_p): New function.
42994 (has_pred_critical_p): New function.
42995 (if_convertible_bb_p): Fix commentary, if AGGRESSIVE_IF_CONV is true
42996 BB can have more than two predecessors and all incoming edges can be
42998 (predicate_bbs): Skip predication for loop exit block, use build2_loc
42999 to compute predicate for true edge.
43000 (find_phi_replacement_condition): Delete this function.
43001 (is_cond_scalar_reduction): Add arguments ARG_0, ARG_1 and EXTENDED.
43002 Allow interchange PHI arguments if EXTENDED is false.
43003 Change check that block containing reduction statement candidate
43004 is predecessor of phi-block since phi may have more than two arguments.
43005 (phi_args_hash_traits): New helper structure.
43006 (struct phi_args_hash_traits): New type.
43007 (phi_args_hash_traits::hash): New function.
43008 (phi_args_hash_traits::equal_keys): New function.
43009 (gen_phi_arg_condition): New function.
43010 (predicate_scalar_phi): Add handling of phi nodes with more than two
43011 arguments, delete COND and TRUE_BB arguments, insert body of
43012 find_phi_replacement_condition to predicate ordinary phi nodes.
43013 (predicate_all_scalar_phis): Skip blocks with the only predecessor,
43014 delete call of find_phi_replacement_condition and invoke
43015 predicate_scalar_phi with two arguments.
43016 (insert_gimplified_predicates): Add assert that non-predicated block
43017 don't have statements to insert.
43018 (ifcvt_split_critical_edges): New function.
43019 (ifcvt_split_def_stmt): Likewise.
43020 (ifcvt_walk_pattern_tree): Likewise.
43021 (stmt_is_root_of_bool_pattern): Likewise.
43022 (ifcvt_repair_bool_pattern): Likewise.
43023 (ifcvt_local_dce): Likewise.
43024 (tree_if_conversion): Add initialization of AGGRESSIVE_IF_CONV which
43025 is copy of inner or outer loop force_vectorize field, invoke
43026 ifcvt_split_critical_edges, ifcvt_local_dce and
43027 ifcvt_repair_bool_pattern for aggressive if-conversion.
43029 2015-01-15 Philipp Tomsich <ptomsich@theobroma-systems.com>
43031 * config/aarch64/aarch64.md: Include xgene1.md.
43032 * config/aarch64/xgene1.md: New file.
43034 2015-01-15 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
43036 * config/aarch64/aarch64-cores.def (xgene1): Update/add the
43037 xgene1 (APM XGene-1) core definition.
43038 * config/aarch64/aarch64.c: Add cost tables for APM XGene-1
43039 * config/arm/aarch-cost-tables.h: Add cost tables for APM XGene-1
43040 * doc/invoke.texi: Document -mcpu=xgene1.
43042 2015-01-15 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
43044 * dojump.h: New header file.
43045 * explow.h: Likewise.
43046 * expr.h: Remove includes.
43047 Move expmed.c prototypes to expmed.h.
43048 Move dojump.c prototypes to dojump.h.
43049 Move alias.c prototypes to alias.h.
43050 Move explow.c prototypes to explow.h.
43051 Move calls.c prototypes to calls.h.
43052 Move emit-rtl.c prototypes to emit-rtl.h.
43053 Move varasm.c prototypes to varasm.h.
43054 Move stmt.c prototypes to stmt.h.
43055 (saved_pending_stack_adjust): Move to dojump.h.
43056 (adjust_address): Move to explow.h.
43057 (adjust_address_nv): Move to emit-rtl.h.
43058 (adjust_bitfield_address): Likewise.
43059 (adjust_bitfield_address_size): Likewise.
43060 (adjust_bitfield_address_nv): Likewise.
43061 (adjust_automodify_address_nv): Likewise.
43062 * explow.c (expr_size): Move to expr.c.
43063 (int_expr_size): Likewise.
43064 (tree_expr_size): Likewise.
43065 Include calls.h dojump.h emit-rtl.h explow.h expmed.h
43066 fixed-value.h hashtab.h statistics.h stmt.h varasm.h.
43067 * genemit.c (main): Generate includes statistics.h, real.h,
43068 fixed-value.h, insn-config.h, expmed.h, dojump.h, explow.h, emit-rtl.h,
43070 * genopinit.c (main): Generate includes hashtab.h, hard-reg-set.h,
43071 function.h, statistics.h, real.h, fixed-value.h, expmed.h, dojump.h,
43072 explow.h, emit-rtl.h, stmt.h.
43073 * genoutput.c (main): Generate includes hashtab.h, statistics.h, real.h,
43074 fixed-value.h, expmed.h, dojump.h, explow.h, emit-rtl.h, stmt.h.
43075 * genemit.c (open_base_files): Generate includes flags.h, statistics.h,
43076 real.h, fixed-value.h, tree.h, expmed.h, dojump.h, explow.h, calls.h,
43077 emit-rtl.h, varasm.h, stmt.h.
43078 * config/tilepro/gen-mul-tables.cc: Generate includes hashtab.h,
43079 hash-set.h, vec.h, machmode.h, tm.h, hard-reg-set.h, input.h,
43080 function.h, rtl.h, flags.h, statistics.h, double-int.h, real.h,
43081 fixed-value.h, alias.h, wide-int.h, inchash.h, tree.h, insn-config.h,
43082 expmed.h, dojump.h, explow.h, calls.h, emit-rtl.h, varasm.h, stmt.h.
43083 * config/tilegx/mul-tables.c: Include alias.h calls.h dojump.h
43084 double-int.h emit-rtl.h explow.h expmed.h fixed-value.h flags.h
43085 function.h hard-reg-set.h hash-set.h hashtab.h inchash.h input.h
43086 insn-config.h machmode.h real.h rtl.h statistics.h stmt.h symtab.h
43087 tm.h tree.h varasm.h vec.h wide-int.h.
43088 * rtlhooks.c: Include alias.h calls.h dojump.h double-int.h emit-rtl.h
43089 explow.h expmed.h fixed-value.h flags.h function.h hard-reg-set.h
43090 hash-set.h hashtab.h inchash.h input.h insn-config.h machmode.h
43091 real.h statistics.h stmt.h tree.h varasm.h vec.h wide-int.h.
43092 * cfgloopanal.c: Include alias.h calls.h dojump.h double-int.h
43093 emit-rtl.h explow.h expmed.h fixed-value.h flags.h inchash.h
43094 insn-config.h real.h statistics.h stmt.h tree.h varasm.h wide-int.h.
43095 * loop-iv.c: Likewise.
43096 * lra-assigns.c: Include alias.h calls.h dojump.h double-int.h
43097 emit-rtl.h explow.h expmed.h fixed-value.h flags.h inchash.h real.h
43098 statistics.h stmt.h tree.h varasm.h wide-int.h.
43099 * lra-constraints.c: Likewise.
43100 * lra-eliminations.c: Likewise.
43101 * lra-lives.c: Likewise.
43102 * lra-remat.c: Likewise.
43103 * bt-load.c: Include alias.h calls.h dojump.h double-int.h emit-rtl.h
43104 explow.h expmed.h fixed-value.h inchash.h insn-config.h real.h
43105 statistics.h stmt.h tree.h varasm.h wide-int.h.
43106 * hw-doloop.c: Likewise.
43107 * ira-color.c: Likewise.
43108 * ira-emit.c: Likewise.
43109 * loop-doloop.c: Likewise.
43110 * loop-invariant.c: Likewise.
43111 * reload.c: Include alias.h calls.h dojump.h double-int.h emit-rtl.h
43112 explow.h expmed.h fixed-value.h inchash.h real.h rtl.h
43113 statistics.h stmt.h tree.h varasm.h wide-int.h.
43114 * caller-save.c: Include alias.h calls.h dojump.h double-int.h
43115 emit-rtl.h explow.h expmed.h fixed-value.h inchash.h real.h
43116 statistics.h stmt.h tree.h varasm.h wide-int.h.
43117 * combine-stack-adj.c: Likewise.
43120 * ifcvt.c: Likewise.
43121 * ira-costs.c: Likewise.
43122 * jump.c: Likewise.
43123 * lra-coalesce.c: Likewise.
43124 * lra-spills.c: Likewise.
43125 * profile.c: Include alias.h calls.h dojump.h double-int.h emit-rtl.h
43126 explow.h expmed.h fixed-value.h insn-config.h real.h statistics.h
43127 stmt.h varasm.h wide-int.h.
43128 * lra.c: Include alias.h calls.h dojump.h double-int.h emit-rtl.h
43129 explow.h expmed.h fixed-value.h real.h statistics.h stmt.h
43131 * config/sh/sh_treg_combine.cc: Include alias.h calls.h dojump.h
43132 double-int.h explow.h expmed.h fixed-value.h flags.h real.h
43133 statistics.h stmt.h varasm.h wide-int.h.
43134 * reorg.c: Include alias.h calls.h dojump.h double-int.h explow.h
43135 expmed.h fixed-value.h inchash.h real.h statistics.h stmt.h tree.h
43136 varasm.h wide-int.h.
43137 * reload1.c: Include alias.h calls.h dojump.h double-int.h explow.h
43138 expmed.h fixed-value.h real.h rtl.h statistics.h stmt.h varasm.h.
43139 * config/tilegx/tilegx.c: Include alias.h dojump.h double-int.h
43140 emit-rtl.h explow.h expmed.h fixed-value.h flags.h real.h
43141 statistics.h stmt.h.
43142 * config/tilepro/tilepro.c: Likewise.
43143 * config/mmix/mmix.c: Include alias.h dojump.h double-int.h emit-rtl.h
43144 explow.h expmed.h fixed-value.h real.h statistics.h stmt.h.
43145 * config/pdp11/pdp11.c: Likewise.
43146 * config/xtensa/xtensa.c: Likewise.
43147 * config/lm32/lm32.c: Include alias.h dojump.h double-int.h emit-rtl.h
43148 explow.h expmed.h fixed-value.h real.h statistics.h stmt.h
43150 * tree-chkp.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
43151 fixed-value.h flags.h function.h hard-reg-set.h hashtab.h
43152 insn-config.h real.h rtl.h statistics.h stmt.h tm.h.
43153 * cilk-common.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
43154 fixed-value.h flags.h function.h hard-reg-set.h hashtab.h
43155 insn-config.h real.h rtl.h statistics.h stmt.h tm.h varasm.h.
43156 * rtl-chkp.c: Likewise.
43157 * tree-chkp-opt.c: Likewise.
43158 * config/arm/arm-builtins.c: Include calls.h dojump.h emit-rtl.h
43159 explow.h expmed.h fixed-value.h flags.h function.h hard-reg-set.h
43160 hashtab.h insn-config.h real.h statistics.h stmt.h varasm.h.
43161 * ipa-icf.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
43162 fixed-value.h flags.h hashtab.h insn-config.h real.h rtl.h
43163 statistics.h stmt.h.
43164 * tree-vect-data-refs.c: Likewise.
43165 * graphite-sese-to-poly.c: Include calls.h dojump.h emit-rtl.h explow.h
43166 expmed.h fixed-value.h flags.h hashtab.h insn-config.h real.h
43167 rtl.h statistics.h stmt.h varasm.h.
43168 * internal-fn.c: Likewise.
43169 * ipa-icf-gimple.c: Likewise.
43170 * lto-section-out.c: Likewise.
43171 * tree-data-ref.c: Likewise.
43172 * tree-nested.c: Likewise.
43173 * tree-outof-ssa.c: Likewise.
43174 * tree-predcom.c: Likewise.
43175 * tree-pretty-print.c: Likewise.
43176 * tree-scalar-evolution.c: Likewise.
43177 * tree-ssa-strlen.c: Likewise.
43178 * tree-vect-loop.c: Likewise.
43179 * tree-vect-patterns.c: Likewise.
43180 * tree-vect-slp.c: Likewise.
43181 * tree-vect-stmts.c: Likewise.
43182 * tsan.c: Likewise.
43183 * targhooks.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
43184 fixed-value.h flags.h hashtab.h insn-config.h real.h statistics.h
43186 * config/sh/sh-mem.cc: Include calls.h dojump.h emit-rtl.h explow.h
43187 expmed.h fixed-value.h flags.h hashtab.h insn-config.h real.h
43188 statistics.h stmt.h varasm.h.
43189 * loop-unroll.c: Likewise.
43190 * ubsan.c: Likewise.
43191 * tree-ssa-loop-prefetch.c: Include calls.h dojump.h emit-rtl.h explow.h
43192 expmed.h fixed-value.h flags.h hashtab.h real.h rtl.h statistics.h
43194 * dse.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
43195 fixed-value.h function.h hashtab.h statistics.h stmt.h varasm.h.
43196 * tree-switch-conversion.c: Include calls.h dojump.h emit-rtl.h explow.h
43197 expmed.h fixed-value.h hashtab.h insn-config.h real.h rtl.h
43198 statistics.h stmt.h.
43199 * generic-match-head.c: Include calls.h dojump.h emit-rtl.h explow.h
43200 expmed.h fixed-value.h hashtab.h insn-config.h real.h rtl.h
43201 statistics.h stmt.h varasm.h.
43202 * gimple-match-head.c: Likewise.
43203 * lto-cgraph.c: Likewise.
43204 * lto-section-in.c: Likewise.
43205 * lto-streamer-in.c: Likewise.
43206 * lto-streamer-out.c: Likewise.
43207 * tree-affine.c: Likewise.
43208 * tree-cfg.c: Likewise.
43209 * tree-cfgcleanup.c: Likewise.
43210 * tree-if-conv.c: Likewise.
43211 * tree-into-ssa.c: Likewise.
43212 * tree-ssa-alias.c: Likewise.
43213 * tree-ssa-copyrename.c: Likewise.
43214 * tree-ssa-dse.c: Likewise.
43215 * tree-ssa-forwprop.c: Likewise.
43216 * tree-ssa-live.c: Likewise.
43217 * tree-ssa-math-opts.c: Likewise.
43218 * tree-ssa-pre.c: Likewise.
43219 * tree-ssa-sccvn.c: Likewise.
43220 * tree-tailcall.c: Likewise.
43221 * tree-vect-generic.c: Likewise.
43222 * tree-sra.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
43223 fixed-value.h hashtab.h insn-config.h real.h rtl.h stmt.h varasm.h.
43224 * stor-layout.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
43225 fixed-value.h hashtab.h insn-config.h real.h statistics.h stmt.h.
43226 * varasm.c: Likewise.
43227 * coverage.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
43228 fixed-value.h hashtab.h insn-config.h real.h statistics.h stmt.h
43230 * init-regs.c: Likewise.
43232 * omp-low.c: Likewise.
43233 * stack-ptr-mod.c: Likewise.
43234 * tree-ssa-reassoc.c: Likewise.
43235 * tree-complex.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
43236 fixed-value.h hashtab.h insn-config.h rtl.h statistics.h stmt.h
43238 * dwarf2cfi.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
43239 fixed-value.h hashtab.h insn-config.h statistics.h stmt.h varasm.h.
43240 * shrink-wrap.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
43241 fixed-value.h hashtab.h real.h rtl.h statistics.h stmt.h.
43242 * recog.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
43243 fixed-value.h hashtab.h real.h rtl.h statistics.h stmt.h varasm.h.
43244 * tree-ssa-phiopt.c: Likewise.
43245 * config/darwin.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
43246 fixed-value.h hashtab.h real.h statistics.h stmt.h.
43247 * config/fr30/fr30.c: Likewise.
43248 * config/frv/frv.c: Likewise.
43249 * expr.c: Likewise.
43250 * final.c: Likewise.
43251 * optabs.c: Likewise.
43252 * passes.c: Likewise.
43253 * simplify-rtx.c: Likewise.
43254 * stmt.c: Likewise.
43255 * toplev.c: Likewise.
43256 * var-tracking.c: Likewise.
43257 * gcse.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
43258 fixed-value.h hashtab.h real.h statistics.h stmt.h varasm.h.
43259 * lower-subreg.c: Likewise.
43260 * postreload-gcse.c: Likewise.
43262 * reginfo.c: Likewise.
43263 * store-motion.c: Likewise.
43264 * combine.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
43265 fixed-value.h hashtab.h real.h stmt.h varasm.h.
43266 * emit-rtl.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
43267 fixed-value.h hashtab.h statistics.h stmt.h.
43268 * dojump.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
43269 fixed-value.h hashtab.h statistics.h stmt.h varasm.h.
43270 * except.c: Likewise.
43271 * explow.c: Likewise.
43272 * tree-dfa.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
43273 fixed-value.h insn-config.h real.h rtl.h statistics.h stmt.h
43275 * gimple-fold.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
43276 fixed-value.h insn-config.h real.h rtl.h statistics.h varasm.h.
43277 * tree-ssa-structalias.c: Likewise.
43278 * cfgexpand.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
43279 fixed-value.h insn-config.h real.h statistics.h.
43280 * calls.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
43281 fixed-value.h insn-config.h real.h statistics.h stmt.h.
43282 * bb-reorder.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
43283 fixed-value.h insn-config.h real.h statistics.h stmt.h varasm.h.
43284 * cfgbuild.c: Likewise.
43285 * function.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
43286 fixed-value.h real.h rtl.h statistics.h stmt.h.
43287 * cfgrtl.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
43288 fixed-value.h real.h rtl.h statistics.h stmt.h varasm.h.
43289 * dbxout.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
43290 fixed-value.h real.h statistics.h stmt.h.
43291 * auto-inc-dec.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
43292 fixed-value.h real.h statistics.h stmt.h varasm.h.
43293 * cprop.c: Likewise.
43294 * modulo-sched.c: Likewise.
43295 * postreload.c: Likewise.
43296 * ccmp.c: Include calls.h dojump.h emit-rtl.h explow.h fixed-value.h
43297 flags.h function.h hard-reg-set.h hashtab.h insn-config.h real.h
43298 statistics.h stmt.h varasm.h.
43299 * gimple-ssa-strength-reduction.c: Include calls.h dojump.h emit-rtl.h
43300 explow.h fixed-value.h flags.h hashtab.h insn-config.h real.h
43301 rtl.h statistics.h stmt.h varasm.h.
43302 * tree-ssa-loop-ivopts.c: Include calls.h dojump.h emit-rtl.h explow.h
43303 fixed-value.h flags.h hashtab.h real.h rtl.h statistics.h stmt.h
43305 * expmed.c: Include calls.h dojump.h emit-rtl.h explow.h fixed-value.h
43306 function.h hard-reg-set.h hashtab.h real.h statistics.h stmt.h
43308 * target-globals.c: Include calls.h dojump.h emit-rtl.h explow.h
43309 fixed-value.h function.h hashtab.h real.h statistics.h stmt.h
43311 * tree-ssa-address.c: Include calls.h dojump.h emit-rtl.h explow.h
43312 fixed-value.h hashtab.h real.h statistics.h stmt.h varasm.h.
43313 * cfgcleanup.c: Include calls.h dojump.h explow.h expmed.h fixed-value.h
43314 function.h real.h statistics.h stmt.h varasm.h.
43315 * alias.c: Include calls.h dojump.h explow.h expmed.h fixed-value.h
43316 insn-config.h real.h statistics.h stmt.h.
43317 * dwarf2out.c: Include calls.h dojump.h explow.h expmed.h fixed-value.h
43318 statistics.h stmt.h.
43319 * config/nvptx/nvptx.c: Include dojump.h emit-rtl.h explow.h expmed.h
43320 fixed-value.h flags.h hard-reg-set.h insn-config.h real.h
43321 statistics.h stmt.h varasm.h.
43322 * gimplify.c: Include dojump.h emit-rtl.h explow.h expmed.h
43323 fixed-value.h flags.h hashtab.h insn-config.h real.h rtl.h statistics.h.
43324 * asan.c: Include dojump.h emit-rtl.h explow.h expmed.h fixed-value.h
43325 flags.h hashtab.h insn-config.h real.h rtl.h statistics.h stmt.h.
43326 * ipa-devirt.c: Include dojump.h emit-rtl.h explow.h expmed.h
43327 fixed-value.h flags.h hashtab.h insn-config.h real.h rtl.h
43328 statistics.h stmt.h varasm.h.
43329 * ipa-polymorphic-call.c: Likewise.
43330 * config/aarch64/aarch64.c: Include dojump.h emit-rtl.h explow.h
43331 expmed.h fixed-value.h flags.h hashtab.h insn-config.h real.h
43332 statistics.h stmt.h.
43333 * config/c6x/c6x.c: Likewise.
43334 * config/aarch64/aarch64-builtins.c: Include dojump.h emit-rtl.h
43335 explow.h expmed.h fixed-value.h flags.h hashtab.h insn-config.h real.h
43336 statistics.h stmt.h varasm.h.
43337 * ipa-prop.c: Include dojump.h emit-rtl.h explow.h expmed.h
43338 fixed-value.h hashtab.h insn-config.h real.h rtl.h statistics.h
43340 * ipa-split.c: Likewise.
43341 * tree-eh.c: Likewise.
43342 * tree-ssa-dce.c: Likewise.
43343 * tree-ssa-loop-niter.c: Likewise.
43344 * tree-vrp.c: Likewise.
43345 * config/nds32/nds32-cost.c: Include dojump.h emit-rtl.h explow.h
43346 expmed.h fixed-value.h hashtab.h insn-config.h real.h statistics.h
43348 * config/nds32/nds32-fp-as-gp.c: Likewise.
43349 * config/nds32/nds32-intrinsic.c: Likewise.
43350 * config/nds32/nds32-isr.c: Likewise.
43351 * config/nds32/nds32-md-auxiliary.c: Likewise.
43352 * config/nds32/nds32-memory-manipulation.c: Likewise.
43353 * config/nds32/nds32-pipelines-auxiliary.c: Likewise.
43354 * config/nds32/nds32-predicates.c: Likewise.
43355 * config/nds32/nds32.c: Likewise.
43356 * config/cris/cris.c: Include dojump.h emit-rtl.h explow.h expmed.h
43357 fixed-value.h hashtab.h real.h statistics.h.
43358 * config/alpha/alpha.c: Include dojump.h emit-rtl.h explow.h expmed.h
43359 fixed-value.h hashtab.h real.h statistics.h stmt.h.
43360 * config/arm/arm.c: Likewise.
43361 * config/avr/avr.c: Likewise.
43362 * config/bfin/bfin.c: Likewise.
43363 * config/h8300/h8300.c: Likewise.
43364 * config/i386/i386.c: Likewise.
43365 * config/ia64/ia64.c: Likewise.
43366 * config/iq2000/iq2000.c: Likewise.
43367 * config/m32c/m32c.c: Likewise.
43368 * config/m32r/m32r.c: Likewise.
43369 * config/m68k/m68k.c: Likewise.
43370 * config/mcore/mcore.c: Likewise.
43371 * config/mep/mep.c: Likewise.
43372 * config/mips/mips.c: Likewise.
43373 * config/mn10300/mn10300.c: Likewise.
43374 * config/moxie/moxie.c: Likewise.
43375 * config/pa/pa.c: Likewise.
43376 * config/rl78/rl78.c: Likewise.
43377 * config/rx/rx.c: Likewise.
43378 * config/s390/s390.c: Likewise.
43379 * config/sh/sh.c: Likewise.
43380 * config/sparc/sparc.c: Likewise.
43381 * config/spu/spu.c: Likewise.
43382 * config/stormy16/stormy16.c: Likewise.
43383 * config/v850/v850.c: Likewise.
43384 * config/vax/vax.c: Likewise.
43385 * config/cr16/cr16.c: Include dojump.h emit-rtl.h explow.h expmed.h
43386 fixed-value.h hashtab.h real.h statistics.h stmt.h varasm.h.
43387 * config/msp430/msp430.c: Likewise.
43388 * predict.c: Likewise.
43389 * value-prof.c: Likewise.
43390 * config/epiphany/epiphany.c: Include dojump.h emit-rtl.h explow.h
43391 expmed.h fixed-value.h hashtab.h statistics.h stmt.h.
43392 * config/microblaze/microblaze.c: Likewise.
43393 * config/nios2/nios2.c: Likewise.
43394 * config/rs6000/rs6000.c: Likewise.
43395 * tree.c: Include dojump.h emit-rtl.h explow.h expmed.h fixed-value.h
43396 insn-config.h real.h rtl.h statistics.h stmt.h.
43397 * cgraph.c: Include dojump.h emit-rtl.h explow.h expmed.h fixed-value.h
43398 insn-config.h real.h statistics.h stmt.h.
43399 * fold-const.c: Include dojump.h emit-rtl.h explow.h expmed.h
43400 fixed-value.h insn-config.h real.h statistics.h stmt.h varasm.h.
43401 * tree-inline.c: Include dojump.h emit-rtl.h explow.h expmed.h
43402 fixed-value.h real.h rtl.h statistics.h stmt.h varasm.h.
43403 * builtins.c: Include dojump.h emit-rtl.h explow.h expmed.h
43404 fixed-value.h real.h statistics.h stmt.h.
43405 * config/arc/arc.c: Include dojump.h emit-rtl.h explow.h expmed.h
43406 fixed-value.h statistics.h stmt.h.
43407 * config/visium/visium.c: Include dojump.h emit-rtl.h explow.h expmed.h
43410 2015-01-15 Jakub Jelinek <jakub@redhat.com>
43412 * gengtype.c (create_user_defined_type): Workaround
43413 -Wmaybe-uninitialized false positives.
43414 * cse.c (fold_rtx): Likewise.
43415 * loop-invariant.c (gain_for_invariant): Likewise.
43417 2015-01-15 Eric Botcazou <ebotcazou@adacore.com>
43419 * expr.c (expand_expr_real_1) <normal_inner_ref>: Use the expression to
43420 set the memory attributes in all cases but clear MEM_EXPR if need be.
43422 2015-01-15 Yuri Rumyantsev <ysrumyan@gmail.com>
43424 PR tree-optimization/64434
43425 * cfgexpand.c (reorder_operands): New function.
43426 (expand_gimple_basic_block): Insert call of reorder_operands if
43429 2015-01-15 Matthew Fortune <matthew.fortune@imgtec.com>
43431 * config/mips/micromips.md (*swp): Remove explicit parallel.
43432 (jraddiusp, *movep<MOVEP1:mode><MOVEP2:mode>): Likewise.
43433 * config/mips/mips-dsp.md (add<DSPV:mode>3): Likewise.
43434 (mips_add<DSP:dspfmt1>_s_<DSP:dspfmt2>, sub<DSPV:mode>3): Likewise.
43435 (mips_sub<DSP:dspfmt1>_s_<DSP:dspfmt2>, mips_addsc): Likewise.
43436 (mips_addwc, mips_absq_s_<DSPQ:dspfmt2>): Likewise.
43437 (mips_precrq_rs_ph_w, mips_precrqu_s_qb_ph): Likewise.
43438 (mips_shll_<DSPV:dspfmt2>, mips_shll_s_<DSPQ:dspfmt2>): Likewise.
43439 (mips_muleu_s_ph_qbl, mips_muleu_s_ph_qbr): Likewise.
43440 (mips_mulq_rs_ph, mips_muleq_s_w_phl, mips_muleq_s_w_phr): Likewise.
43441 (mips_dpaq_s_w_ph, mips_dpsq_s_w_ph, mips_mulsaq_s_w_ph): Likewise.
43442 (mips_dpaq_sa_l_w, mips_dpsq_sa_l_w, mips_maq_s_w_phl): Likewise.
43443 (mips_maq_s_w_phr, mips_maq_sa_w_phl, mips_maq_sa_w_phr): Likewise.
43444 (mips_extr_w, mips_extr_r_w, mips_extr_rs_w): Likewise.
43445 (mips_extr_s_h, mips_extp, mips_extpdp, mips_mthlip): Likewise.
43446 (mips_wrdsp): Likewise.
43447 * config/mips/mips-dspr2.md (mips_absq_s_qb): Remove explicit
43449 (mips_addu_ph, mips_addu_s_ph, mips_cmpgdu_eq_qb): Likewise.
43450 (mips_cmpgdu_lt_qb, mips_cmpgdu_le_qb, mulv2hi3): Likewise.
43451 (mips_mul_s_ph, mips_mulq_rs_w, mips_mulq_s_ph): Likewise.
43452 (mips_mulq_s_w, mips_subu_ph, mips_subu_s_ph): Likewise.
43453 (mips_dpaqx_s_w_ph, mips_dpaqx_sa_w_ph): Likewise.
43454 (mips_dpsqx_s_w_ph, mips_dpsqx_sa_w_ph): Likewise.
43455 * config/mips/mips-fixed.md (usadd<mode>3): Remove explicit parallel.
43456 (ssadd<mode>3, ussub<mode>3, sssub<mode>3, ssmul<mode>3): Likewise.
43457 (ssmaddsqdq4, ssmsubsqdq4): Likewise.
43459 2015-01-14 Matthew Fortune <matthew.fortune@imgtec.com>
43461 * config/mips/mips.c (mips_rtx_costs): Set costs for LSA/DLSA.
43462 (mips_print_operand): Support 'y' to print exact log2 in decimal
43464 * config/mips/mips.h (ISA_HAS_LSA): New define.
43465 (ISA_HAS_DLSA): Likewise.
43466 * config/mips/mips.md (<GPR:d>lsa): New define_insn.
43467 * config/mips/predicates.md (const_immlsa_operand): New predicate.
43469 2015-01-15 Martin Liska <mliska@suse.cz>
43472 * optc-save-gen.awk: Add support for array types.
43474 2015-01-15 Richard Biener <rguenther@suse.de>
43476 PR middle-end/64365
43477 * tree-data-ref.c (dr_analyze_indices): Make sure that accesses
43478 for MEM_REF access functions with the same base can never partially
43481 2015-01-14 Marcos Diaz <marcos.diaz@tallertechnologies.com>
43483 * common.opt: New option -fstack-protector-explicit.
43484 * cfgexpand.c (SPCT_FLAG_EXPLICIT): New enum.
43485 (stack_protect_decl_phase): Handle stack_protect attribute for
43486 explicit stack protection requests.
43487 (expand_used_vars): Similarly.
43488 * doc/cpp.texi (__SSP_EXPLICIT__): Document predefined macro.
43489 * doc/extend.texi: Add documentation for "stack_protect" attribute.
43490 * doc/invoke.texi: Add documentation for -fstack-protector-explicit.
43492 2015-01-14 Oleg Endo <olegendo@gcc.gnu.org>
43495 * config/sh/sh-protos.h (sh_find_set_of_reg): Add option to ignore
43497 (sh_extending_set_of_reg): New struct.
43498 (sh_find_extending_set_of_reg, sh_split_tst_subregs,
43499 sh_remove_reg_dead_or_unused_notes): New Declarations.
43500 * config/sh/sh.c (sh_remove_reg_dead_or_unused_notes,
43501 sh_find_extending_set_of_reg, sh_split_tst_subregs,
43502 sh_extending_set_of_reg::use_as_extended_reg): New functions.
43503 * config/sh/sh.md (*tst<mode>_t_zero): Rename to *tst<mode>_t_subregs,
43504 convert to insn_and_split and use new function sh_split_tst_subregs.
43506 2015-01-14 Sandra Loosemore <sandra@codesourcery.com>
43508 * doc/invoke.texi (Option Summary): Reclassify -fuse-ld as a linker
43510 (Optimization Options): Move -fuse-ld documentation to...
43511 (Link Options): ...here.
43513 2015-01-14 Matthew Fortune <matthew.fortune@imgtec.com>
43515 * config/mips/constraints.md (ZC): Add support for R6 LL/SC
43517 (ZD): Update to use ISA_HAS_9BIT_DISPLACEMENT.
43518 * config/mips/mips.h (ISA_HAS_PREFETCH_9BIT): Rename to...
43519 (ISA_HAS_9BIT_DISPLACEMENT): ... this. New macro.
43520 * config/mips/sync.md (sync_compare_and_swap<mode>): Use ZC
43521 instead of ZR for the memory operand of LL/SC.
43522 (compare_and_swap_12, sync_add<mode>): Likewise.
43523 (sync_<optab>_12, sync_old_<optab>_12): Likewise.
43524 (sync_new_<optab>_12, sync_nand_12): Likewise.
43525 (sync_old_nand_12, sync_new_nand_12): Likewise.
43526 (sync_sub<mode>, sync_old_add<mode>): Likewise.
43527 (sync_old_sub<mode>, sync_new_add<mode>): Likewise.
43528 (sync_new_sub<mode>, sync_<optab><mode>): Likewise.
43529 (sync_old_<optab><mode>, sync_new_<optab><mode>"): Likewise.
43530 (sync_nand<mode>, sync_old_nand<mode>): Likewise.
43531 (sync_new_nand<mode>, sync_lock_test_and_set<mode>): Likewise.
43532 (test_and_set_12, atomic_compare_and_swap<mode>): Likewise.
43533 (atomic_exchange<mode>_llsc, atomic_fetch_add<mode>_llsc): Likewise.
43534 * doc/md.texi (ZC): Update description.
43536 2015-01-14 Andrew MacLeod <amacleod@redhat.com>
43538 * builtins.c (expand_builtin_atomic_exchange): Remove error when
43539 memory model is CONSUME.
43540 (expand_builtin_atomic_compare_exchange, expand_builtin_atomic_load,
43541 expand_builtin_atomic_store): Change invalid memory model errors to
43543 (expand_builtin_atomic_clear): Change invalid model errors to warnings
43544 and issue warning for CONSUME.
43546 2015-01-14 Aldy Hernandez <aldyh@redhat.com>
43548 * lto-cgraph: Update function comments for
43549 lto_symtab_encoder_encode_*.
43551 2015-01-14 Ilya Verbin <ilya.verbin@intel.com>
43553 * Makefile.in (site.exp): Do not set ENABLE_LTO.
43555 2015-01-14 Ilya Verbin <ilya.verbin@intel.com>
43557 * cgraphunit.c (ipa_passes): Remove argument from ipa_write_summaries.
43558 * lto-cgraph.c (select_what_to_stream): Remove argument, use
43559 lto_stream_offload_p instead.
43560 * lto-streamer.h (select_what_to_stream): Remove argument.
43561 * passes.c (ipa_write_summaries): Likewise.
43562 * tree-pass.h (ipa_write_summaries): Likewise.
43564 2015-01-14 Richard Biener <rguenther@suse.de>
43566 PR tree-optimization/59354
43567 * tree-vect-slp.c (vect_build_slp_tree_1): Treat loads from
43568 groups larger than the slp group size as having gaps.
43570 2015-01-14 Andrew MacLeod <amacleod@redhat.com>
43572 PR middle-end/59448
43573 * builtins.c (get_memmodel): Promote consume to acquire always.
43575 2015-01-14 Ilya Tocar <ilya.tocar@intel.com>
43578 * config/i386/i386.c (ix86_expand_sse_cmp): Handle V64QImode,
43581 2015-01-14 Ilya Tocar <ilya.tocar@intel.com>
43584 * common/config/i386/i386-common.c (OPTION_MASK_ISA_AVX512VBMI_SET):
43586 (OPTION_MASK_ISA_AVX512BW_UNSET): Disable AVX512VBMI.
43587 * config/i386/i386.c (ix86_hard_regno_mode_ok): Don't check
43588 AVX512VBMI, as it implies AVX512BW.
43590 2015-01-14 Ilya Tocar <ilya.tocar@intel.com>
43593 * config/i386/sse.md (vec_unpacks_hi_v8sf): Fix predicate.
43594 (vec_unpacks_hi_v16sf): Ditto.
43596 2015-01-14 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
43598 * config/aarch64/arm_neon.h: Error out if AdvancedSIMD
43601 2015-01-14 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
43603 * doc/invoke.texi (mapcs): Mention deprecation.
43604 (mapcs-frame): Likewise.
43606 2015-01-14 Thomas Preud'homme <thomas.preudhomme@arm.com>
43609 * config/arm/arm.c (callee_saved_reg_p): Define.
43610 (arm_compute_save_reg0_reg12_mask): Use callee_saved_reg_p to check if
43611 register is callee saved instead of !call_used_regs[reg].
43612 (thumb1_compute_save_reg_mask): Likewise.
43614 2015-01-14 Hale Wang <hale.wang@arm.com>
43616 * config/arm/arm.c: Tune the max_cond_insns/branch_cost for
43619 2015-01-14 Richard Biener <rguenther@suse.de>
43622 * tree-inline.c (insert_debug_decl_map): Check destination
43623 function MAY_HAVE_DEBUG_STMTS.
43624 (insert_init_debug_bind): Likewise.
43625 (insert_init_stmt): Remove redundant check.
43626 (remap_gimple_stmt): Drop debug stmts if the destination
43627 function has var-tracking assignments disabled.
43629 2015-01-14 Martin Liska <mliska@suse.cz>
43631 * ipa-icf-gimple.c (func_checker::compare_operand): Add support for
43632 IMAGPART_EXPR and REALPART_EXPR and fix BIT_FIELD_REF comparison.
43634 2015-01-14 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
43637 * config/arm/arm.md (*<arith_shift_insn>_multsi): Set 'shift' to 2.
43638 (*<arith_shift_insn>_shiftsi): Set 'shift' attr to 3.
43640 2015-01-14 Matthew Fortune <matthew.fortune@imgtec.com>
43642 * config/mips/mips.h (MIPS_ISA_LEVEL_SPEC): Only infer an ISA
43643 level from an ARCH; do not inject the default.
43644 (MIPS_DEFAULT_ISA_LEVEL_SPEC): New macro split out from
43645 MIPS_ISA_LEVEL_SPEC.
43646 (MIPS_ISA_NAN2008_SPEC): Update comment.
43647 (BASE_DRIVER_SELF_SPECS): Likewise.
43648 * config/mips/elfoabi.h (DRIVER_SELF_SPECS): Add
43649 MIPS_DEFAULT_ISA_LEVEL_SPEC.
43650 * config/mips/mti-elf.h (DRIVER_SELF_SPECS): Likewise.
43651 * config/mips/mti-linux.h (DRIVER_SELF_SPECS): Likewise.
43652 * config/mips/sde.h (DRIVER_SELF_SPECS): Likewise.
43654 2015-01-14 Richard Biener <rguenther@suse.de>
43656 PR tree-optimization/64493
43657 PR tree-optimization/64495
43658 * tree-vect-loop.c (vect_finalize_reduction): For double-reductions
43659 assign the proper vectorized PHI to the inner loop exit PHIs.
43661 2015-01-14 Joey Ye <joey.ye@arm.com>
43663 * config/arm/arm.c (arm_compute_save_reg_mask):
43664 Do not save lr in case of tail call.
43665 * config/arm/thumb2.md (*thumb2_pop_single): New pattern.
43667 2015-01-14 Martin Uecker <uecker@eecs.berkeley.edu>
43669 * tree-vrp.c (check_array_ref): Emit more warnings
43670 for warn_array_bounds >= 2.
43671 * common.opt: New option -Warray-bounds=.
43672 * doc/invoke.texi: Document -Warray-bounds=.
43674 2015-01-14 Chung-Ju Wu <jasonwucj@gmail.com>
43676 * config/nds32/nds32.opt (mforce-fp-as-gp): Remove.
43677 (mforbid-fp-as-gp): Remove.
43679 * config/nds32/nds32-fp-as-gp.c (nds32_have_prologue_p): Remove.
43680 (nds32_symbol_load_store_p): Remove.
43681 (nds32_fp_as_gp_check_available): Clean up implementation.
43682 * config/nds32/nds32.h (LINK_SPEC): Remove -mforce-as-gp and -mex9
43684 * config/nds32/nds32.c (nds32_asm_file_start): No need to consider
43685 fp-as-gp and ex9 cases.
43687 2015-01-13 Jan Hubicka <hubicka@ucw.cz>
43689 * tree-profile.c (init_ic_make_global_vars): Drop workaround
43690 for bintuils bug 14342.
43691 (init_ic_make_global_vars): Likewise.
43692 (gimple_init_edge_profiler): Likewise.
43693 (gimple_gen_ic_func_profiler): Likewise.
43695 2015-01-13 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
43697 * ipa-inline.c (inline_small_functions): Swap the operands in
43700 2015-01-13 Jan Hubicka <hubicka@ucw.cz>
43703 * ipa-inline-analysis.c (node_growth_cache): Remove.
43704 (initialize_growth_caches): Do not initialize it.
43705 (free_growth_caches): Do not free it.
43706 (do_estimate_growth): Rename to ...
43707 (estimate_growth): ... this one; drop growth cache code.
43708 (growth_likely_positive): Always go the heuristics way.
43709 * ipa-inline.c (can_inline_edge_p): Walk through aliases.
43710 (reset_edge_caches): Do not reset node growth.
43711 (heap_edge_removal_hook): Do not maintain cache.
43712 (inline_small_functions): Likewise; strenghten sanity check.
43713 (ipa_inline): Do not maintain caches.
43714 * ipa-inline.h (node_growth_cache): Remove.
43715 (do_estimate_growth): Remove to ...
43716 (estimate_growth): this one; remove inline version.
43717 (reset_node_growth_cache): Remove.
43719 2015-01-13 Jan Hubicka <hubicka@ucw.cz>
43722 * ipa-inline.c (inline_small_functions): Update callee keys after
43723 resolving speculation
43724 (inline_small_functions): Always check monotonicity of the queue.
43726 2015-01-13 Marek Polacek <polacek@redhat.com>
43728 PR middle-end/64391
43729 * trans-mem.c (get_attrs_for): Return NULL_TREE if X is NULL_TREE.
43731 2015-01-13 Jakub Jelinek <jakub@redhat.com>
43733 PR rtl-optimization/64286
43734 * ree.c (combine_reaching_defs): Move part of comment earlier,
43735 remove !SCALAR_INT_MODE_P check.
43736 (add_removable_extension): Don't add vector mode
43737 extensions if all uses of the source register aren't the same
43740 2015-01-13 Renlin Li <renlin.li@arm.com>
43742 * config/arm/arm.h (CLZ_DEFINED_VALUE_AT_ZERO): Return 2.
43743 (CTZ_DEFINED_VALUE_AT_ZERO): Ditto.
43745 2015-01-13 Martin Liska <mliska@suse.cz>
43747 * ipa-icf.c (sem_function::equals_private): Call new functions
43748 cl_target_option_print_diff and cl_optimization_print_diff.
43749 * optc-save-gen.awk (cl_target_option_print_diff): New function.
43750 (cl_optimization_print_diff): Likewise.
43751 * opth-gen.awk: Likewise.
43753 2015-01-13 Richard Sandiford <richard.sandiford@arm.com>
43755 * config/aarch64/aarch64.md (subsi3, *subsi3_uxtw, subdi3)
43756 (*sub_<optab><ALLX:mode>_<GPI:mode>, *sub_<optab><SHORT:mode>_si_uxtw)
43757 (*sub_<optab><ALLX:mode>_shft_<GPI:mode>)
43758 (*sub_<optab><SHORT:mode>_shft_si_uxtw, *sub_<optab><mode>_multp2)
43759 (*sub_<optab>si_multp2_uxtw, *sub_uxt<mode>_multp2)
43760 (*sub_uxtsi_multp2_uxtw): Add stack pointer sources.
43762 2015-01-13 Andrew Pinski <apinski@cavium.com>
43764 * config/aarch64/aarch64.c (fusion_load_store): Check dest mode
43765 instead of src mode.
43767 2015-01-13 Richard Biener <rguenther@suse.de>
43770 * lto-streamer-out.c (tree_is_indexable): Guard for NULL
43773 2015-01-13 Andrew Pinski <apinski@cavium.com>
43775 * config/aarch64/aarch64.c (aarch64_operands_ok_for_ldpstp): Reject
43777 (aarch64_operands_adjust_ok_for_ldpstp): Likewise.
43779 2015-01-13 Jakub Jelinek <jakub@redhat.com>
43781 PR middle-end/63974
43782 * cfgexpand.c (expand_computed_goto): Don't call
43783 convert_memory_address here.
43785 2015-01-13 Richard Biener <rguenther@suse.de>
43787 PR tree-optimization/64406
43788 * tree-loop-distibution.c (pass_loop_distribution::execute):
43789 Reset the SCEV hashtable if we distributed anything.
43791 2015-01-13 Richard Biener <rguenther@suse.de>
43793 PR tree-optimization/64404
43794 * tree-vect-stmts.c (vectorizable_load): Reject conflicting
43795 SLP types for CSEd loads.
43797 2015-01-13 Thomas Preud'homme <thomas.preudhomme@arm.com>
43799 PR tree-optimization/64436
43800 * tree-ssa-math-opts.c (find_bswap_or_nop_1): Move code performing the
43801 merge of two symbolic numbers for a bitwise OR to ...
43802 (perform_symbolic_merge): This. Also fix computation of the range and
43803 end of the symbolic number corresponding to the result of a bitwise OR.
43805 2015-01-13 Richard Biener <rguenther@suse.de>
43807 PR tree-optimization/64568
43808 * tree-ssa-forwprop.c (pass_forwprop::execute): Properly
43809 release defs of removed stmts, avoid splitting TARGET_MEM_REFs.
43811 2015-01-13 Chung-Ju Wu <jasonwucj@gmail.com>
43813 * config/nds32/nds32.c (nds32_legitimate_address_p): Consider
43814 TARGET_CMODEL_LARGE and TARGET_CMODEL_MEDIUM cases.
43816 2015-01-13 Chung-Ju Wu <jasonwucj@gmail.com>
43818 * config/nds32/nds32.h (NDS32_SYMBOL_FLAG_RODATA): Define our own
43819 target-specific symbol_ref flag.
43820 (NDS32_SYMBOL_REF_RODATA_P): Define it to check if the symbol_ref
43821 resides in rodata section.
43822 * config/nds32/nds32.c (TARGET_ENCODE_SECTION_INFO): Define.
43823 (nds32_encode_section_info): New function.
43825 2015-01-13 Chung-Ju Wu <jasonwucj@gmail.com>
43827 * config/nds32/nds32.md (call): Use pseudo instruction bal which
43828 clobbers TA_REGNUM if large code model is specified.
43829 (call_register): Likewise.
43830 (call_immediate): Likewise.
43831 (call_value): Likewise.
43832 (call_value_register): Likewise.
43833 (call_value_immediate): Likewise.
43835 2015-01-13 Chung-Ju Wu <jasonwucj@gmail.com>
43837 * config/nds32/nds32.h (TARGET_CMODEL_SMALL): New macro.
43838 (TARGET_CMODEL_MEDIUM): New macro.
43839 (TARGET_CMODEL_LARGE): New macro.
43840 * config/nds32/nds32.c (nds32_asm_file_start): Display corresponding
43841 code model setting in assembly code.
43843 2015-01-13 Chung-Ju Wu <jasonwucj@gmail.com>
43845 * common/config/nds32/nds32-common.c (TARGET_DEFAULT_TARGET_FLAGS):
43846 Remove MASK_GP_DIRECT flag.
43847 * config/nds32/nds32.h (MULTILIB_DEFAULTS): Have -mcmodel=medium as
43848 one of the multilib default options.
43849 * config/nds32/nds32.opt (mgp-direct): Remove.
43850 * config/nds32/t-mlibs (MULTILIB_OPTIONS): Use -mcmodel instead of
43851 -mgp-direct. We also remove unnecessary -mlittle-endian/-mbig-endian.
43853 2015-01-13 Chung-Ju Wu <jasonwucj@gmail.com>
43855 * config/nds32/nds32.opt (mcmodel): Add new option.
43856 * config/nds32/nds32-opts.h (nds32_cmodel_type): Add new enum type
43857 to describe code model.
43859 2015-01-13 Oleg Endo <olegendo@gcc.gnu.org>
43862 * rtlanal.c (set_reg_p): Handle SEQUENCE constructs.
43864 2015-01-12 Kaz Kojima <kkojima@gcc.gnu.org>
43866 * config/sh/sh.c (sh_atomic_assign_expand_fenv): New function.
43867 (TARGET_ATOMIC_ASSIGN_EXPAND_FENV): Define.
43868 (sh_builtin_get_fpscr, sh_builtin_set_fpscr): New variables.
43869 (sh_init_builtins): Record decls for __builtin_sh_get_fpscr and
43870 __builtin_sh_set_fpscr.
43872 2015-01-12 Sandra Loosemore <sandra@codesourcery.com>
43874 * doc/invoke.texi ([-Wsuggest-attribute=]): Don't use parentheses
43875 after a funtion name just to indicate it is a function.
43876 ([-fsanitize-undefined-trap-on-error]): Likewise.
43877 ([-fdbg-cnt=]): Likewise.
43878 ([-mmemcpy]): Likewise.
43879 ([-mflush-func]): Likewise.
43880 ([-msynci]): Likewise.
43882 2015-01-12 Sandra Loosemore <sandra@codesourcery.com>
43884 * doc/invoke.texi ([-Wbad-function-cast]): Rewrite to avoid confusing
43887 2015-01-12 Jakub Jelinek <jakub@redhat.com>
43889 PR tree-optimization/64563
43890 * tree-vrp.c (vrp_evaluate_conditional): Check for VR_RANGE
43891 instead of != VR_VARYING.
43894 * config/i386/i386.c (ix86_expand_prologue): Add
43895 REG_FRAME_RELATED_EXPR to %rax and %r10 pushes.
43897 PR tree-optimization/64454
43898 * tree-vrp.c (simplify_div_or_mod_using_ranges): Optimize
43899 op0 % op1 into op0 if op0 is in range [-op1 + 1, op1 - 1]
43900 for signed or [0, op1 - 1] for unsigned modulo.
43901 (simplify_stmt_using_ranges): Call simplify_div_or_mod_using_ranges
43902 even if op1 does not satisfy integer_pow2p.
43905 * sreal.c (sreal::to_double): Use ldexp instead of scalbnl.
43907 2015-01-12 Jeff Law <law@redhat.com>
43910 * config/m68k/m68k.md (truncsiqi2): Disable for TARGET_COLDFIRE.
43911 (trunchiqi2, truncsihi2): Similarly.
43913 * config/h8300/h8300.c (Fpa): Use RTX_FRAME_RELATED_P directly
43914 rather than calling F.
43916 2015-01-12 Bernd Edlinger <bernd.edlinger@hotmail.de>
43918 * tsan.c (instrument_expr): Use force_gimple_operand.
43919 Use may_be_nonaddressable_p instead of is_gimple_addressable.
43921 2015-01-12 Richard Biener <rguenther@suse.de>
43923 PR tree-optimization/64530
43924 * tree-loop-distribution.c (pg_add_dependence_edges): Shuffle
43927 2015-01-12 Richard Biener <rguenther@suse.de>
43929 PR middle-end/64357
43930 * tree-cfg.c (gimple_can_merge_blocks_p): Protect simple
43933 2015-01-12 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
43935 * config/arm/arm.c (arm_cortex_a12_tune): Update entries to match
43936 Cortex-A17 tuning parameters.
43937 * config/arm/arm-cores.def (cortex-a12): Schedule for cortex-a17.
43939 2015-01-12 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
43941 * config/arm/arm-protos.h (tune_params): Add fuseable_ops field.
43942 * config/arm/arm.c (arm_macro_fusion_p): New function.
43943 (arm_macro_fusion_pair_p): Likewise.
43944 (TARGET_SCHED_MACRO_FUSION_P): Define.
43945 (TARGET_SCHED_MACRO_FUSION_PAIR_P): Likewise.
43946 (ARM_FUSE_NOTHING): Likewise.
43947 (ARM_FUSE_MOVW_MOVT): Likewise.
43948 (arm_slowmul_tune, arm_fastmul_tune, arm_strongarm_tune,
43949 arm_xscale_tune, arm_9e_tune, arm_v6t2_tune, arm_cortex_tune,
43950 arm_cortex_a8_tune, arm_cortex_a7_tune, arm_cortex_a15_tune,
43951 arm_cortex_a53_tune, arm_cortex_a57_tune, arm_cortex_a9_tune,
43952 arm_cortex_a12_tune, arm_v7m_tune, arm_v6m_tune, arm_fa726te_tune
43953 arm_cortex_a5_tune): Specify fuseable_ops value.
43955 2015-01-12 H.J. Lu <hongjiu.lu@intel.com>
43958 * configure.ac (HAVE_LD_PIE_COPYRELOC): Update Linux/x86-64 linker
43959 test for PIE with copy reloc.
43960 * configure: Regenerated.
43962 2015-01-12 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
43964 * config/arm/arm.c (arm_load_tp): Use R0_REGNUM instead of constant 0
43966 (arm_tls_descseq_addr): Likewise.
43967 (arm_gen_movmemqi): Likewise.
43968 (arm_expand_epilogue_apcs_frame): Likewise.
43969 (arm_expand_epilogue): Likewise.
43970 (arm_expand_prologue): Likewise. Use R1_REGNUM instead of constant 1
43973 2015-01-12 Martin Liska <mliska@suse.cz>
43976 * ipa-icf-gimple.c (func_checker::compare_memory_operand): Compare
43977 volatility for correct operands.
43979 2015-01-12 Martin Liska <mliska@suse.cz>
43981 * ipa-icf.c (sem_function::equals_wpa): Add indirect_calls as
43982 indication that a function is not leaf.
43983 (sem_function::compare_polymorphic_p): Likewise.
43985 2015-01-12 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
43987 * config/visium/visium.c: Add includes hashtab.h, hash-set.h,
43988 machmode.h, input.h, statistics.h, vec.h, double-int.h, real.h,
43989 fixed-value.h, alias.h, symtab.h, tree-core.h, wide-int.h, inchash.h,
43990 fold-const.h, tree-check.h.
43992 2015-01-12 Jan Hubicka <hubicka@ucw.cz>
43996 * ipa-inline.c (compute_uninlined_call_time,
43997 compute_inlined_call_time): Use counts for extra precision when
43999 (big_speedup_p): Fix formating.
44000 (RELATIVE_TIME_BENEFIT_RANGE): Remove.
44001 (relative_time_benefit): Remove.
44002 (edge_badness): Turn DECL_DISREGARD_INLINE_LIMITS into hint;
44003 merge guessed and read profile paths.
44004 (inline_small_functions): Count only !optimize_size functions into
44005 initial size; be more lax about sanity check when profile is used;
44006 be sure to update inlined function profile when profile is read.
44008 2015-01-12 Jan Hubicka <hubicka@ucw.cz>
44011 * ipa-inline-analysis.c (inline_edge_duplication_hook): Adjust
44012 cost when edge becomes direct.
44013 * ipa-prop.c (make_edge_direct): Do not adjust when speculation
44014 is resolved or when introducing new speculation.
44016 2015-01-12 Chen Gang <gang.chen.5i5j@gmail.com>
44020 * ipa-icf.c (sem_function::equals_private): Use '&&' instead of
44021 '||' to fix typo issue.
44023 * tree.h (target_opts_for_fn): Check NULL_TREE since it can
44024 accept and return NULL.
44026 2015-01-12 Martin Liska <mliska@suse.cz>
44028 * cgraph.c (cgraph_edge::remove_callee): Move function to header
44029 file for being inlined.
44030 (cgraph_set_edge_callee): Delete.
44031 (cgraph_edge::redirect_callee): Move function to header file
44033 (cgraph_edge::make_direct): Use new function.
44034 (cgraph_edge::dump_edge_flags): New function created from
44035 static dump_edge_flags function.
44036 (cgraph_node::dump): Use new function.
44037 (cgraph_edge::verify_count_and_frequency): New function created
44038 from verify_edge_count_and_frequency.
44039 (cgraph_edge::verify_corresponds_to_fndecl): New function created
44040 from verify_edge_corresponds_to_fndecl.
44041 (verify_edge_corresponds_to_fndecl): Delete.
44042 (cgraph_node::verify_node): Use new function.
44043 * cgraph.h (cgraph_edge::set_callee): New function.
44044 (cgraph_edge::dump_edge_flags): Likewise.
44045 (cgraph_edge::verify_corresponds_to_fndecl): Likewise.
44047 2015-01-11 Jan Hubicka <hubicka@ucw.cz>
44049 * ipa-utils.c (estimate_function_body_sizes): Do not
44050 free node params when called late with early=true.
44052 2015-01-11 James Greenhalgh <james.greenhalgh@arm.com>
44054 * doc/md.texi (Instruction Patterns): Rewrite text for
44056 (Example): Likewise.
44058 2015-01-10 Sandra Loosemore <sandra@codesourcery.com>
44060 * doc/invoke.texi (Option Summary): Break long lines.
44061 [(-fdiagnostics-color)]: Put long literal in @smallexample
44063 [(-fsanitize-recover)]: Likewise.
44064 [(-fdump-rtl-split*)]: Rewrite to fix over-full hbox.
44065 [(-ffast-math)]: Likewise.
44066 [(--param max-inline-insns-recursive)]: Likewise.
44067 [(--param max-inline-recursive-depth)]: Likewise.
44068 [(-mno-text-section-literals)]: Likewise.
44070 2015-01-10 Thomas Schwinge <thomas@codesourcery.com>
44072 * doc/install.texi: Update for libgomp being renamed from "GNU
44073 OpenMP Runtime Library" to "GNU Offloading and Multi Processing
44075 * doc/sourcebuild.texi: Likewise.
44077 2015-01-10 Anthony Green <green@moxielogic.com>
44079 * config/moxie/moxie.c (moxie_option_override): Fix forcing of
44080 mul.x availability for moxiebox configuration.
44082 2015-01-09 Anthony Green <green@moxielogic.com>
44084 * config/moxie/moxie.md: Tabify assembly output.
44086 2015-01-09 Anthony Green <green@moxielogic.com>
44088 * config/moxie/moxie.md (CC_REG): Correct register definition.
44090 2015-01-09 Sandra Loosemore <sandra@codesourcery.com>
44092 * doc/invoke.texi ([-fvtable-verify]): Copy-edit and fix markup.
44093 ([-fvtv-debug], [-fvtv-counts]): Likewise. Correct location
44096 2015-01-09 Andreas Tobler <andreast@gcc.gnu.org>
44098 * config/arm/arm.h (MAX_SYNC_LIBFUNC_SIZE): Delete semicolon.
44100 2015-01-09 Bernd Schmidt <bernds@codesourcery.com>
44101 Jakub Jelinek <jakub@redhat.com>
44103 PR middle-end/64412
44104 * lto-streamer.h (lto_stream_offload_p): New declaration.
44105 * lto-streamer.c (lto_stream_offload_p): New variable.
44106 * cgraphunit.c (ipa_passes): Set lto_stream_offload_p
44107 at the same time as section_name_prefix.
44108 * lto-streamer-out.c (hash_tree): Don't hash TREE_TARGET_OPTION
44109 if lto_stream_offload_p.
44110 * tree-streamer-out.c (streamer_pack_tree_bitfields): Don't
44111 stream TREE_TARGET_OPTION if lto_stream_offload_p.
44112 (write_ts_function_decl_tree_pointers): Don't
44113 stream DECL_FUNCTION_SPECIFIC_TARGET if lto_stream_offload_p.
44114 * tree-streamer-in.c (unpack_value_fields): Don't stream
44115 TREE_TARGET_OPTION in if ACCEL_COMPILER.
44116 (lto_input_ts_function_decl_tree_pointers): Don't stream
44117 DECL_FUNCTION_SPECIFIC_TARGET in if ACCEL_COMPILER.
44118 * lto-opts.c (lto_write_options): Use lto_stream_offload_p
44119 instead of section_name_prefix string comparisons.
44121 2015-01-09 Jakub Jelinek <jakub@redhat.com>
44123 PR rtl-optimization/64536
44124 * cfgrtl.c (rtl_tidy_fallthru_edge): Handle removal of degenerate
44127 2015-01-09 Michael Collison <michael.collison@linaro.org>
44129 PR tree-optimization/64322
44130 * tree-vrp.c (extract_range_from_binary_expr_1): Attempt to derive
44131 range for RSHIFT_EXPR even if vr0 range is not VR_RANGE or is symbolic.
44133 2015-01-09 Tom de Vries <tom@codesourcery.com>
44135 PR rtl-optimization/64539
44136 * regcprop.c (kill_clobbered_values): Factor out of ...
44137 (copyprop_hardreg_forward_1): ... here. Use kill_clobbered_values
44138 instead of note_stores with kill_clobbered_value.
44140 2015-01-09 Andreas Tobler <andreast@gcc.gnu.org>
44142 * ginclude/unwind-arm-common.h: Revert previous commit.
44144 2015-01-09 Andreas Tobler <andreast@gcc.gnu.org>
44146 * config.gcc (arm*-*-freebsd*): New configuration.
44147 * config/arm/freebsd.h: New file.
44148 * config.host: Add extra components for arm*-*-freebsd*.
44149 * config/arm/arm.h: Introduce MAX_SYNC_LIBFUNC_SIZE.
44150 * config/arm/arm.c (arm_init_libfuncs): Use MAX_SYNC_LIBFUNC_SIZE.
44152 2015-01-09 Sebastian Huber <sebastian.huber@embedded-brains.de>
44154 * config/rs6000/rtems.h (CPP_OS_RTEMS_SPEC): Define __PPC_CPU_E6500__
44156 * config/rs6000/t-rtems: Add e6500 multilibs.
44158 2015-01-09 Sebastian Huber <sebastian.huber@embedded-brains.de>
44160 * config/rs6000/t-rtems: Add -mno-spe to soft-float multilib for
44163 2015-01-09 Sebastian Huber <sebastian.huber@embedded-brains.de>
44165 * config/rs6000/t-rtems: Use MULTILIB_REQUIRED instead of
44166 MULTILIB_EXCEPTIONS.
44168 2015-01-09 Sebastian Huber <sebastian.huber@embedded-brains.de>
44170 * config/arm/t-rtems: Use MULTILIB_REQUIRED instead of
44171 MULTILIB_EXCEPTIONS.
44173 2015-01-09 Sebastian Huber <sebastian.huber@embedded-brains.de>
44175 * config/arm/t-rtems-eabi: Rename to...
44176 * config/arm/t-rtems: ...this.
44177 * config/arm/rtems-eabi.h: Rename to...
44178 * config/arm/rtems.h: ...this.
44179 * config.gcc (arm*-*-rtems*): Reflect changes above.
44181 2015-01-09 Richard Biener <rguenther@suse.de>
44183 PR tree-optimization/64410
44184 * tree-ssa.c (non_rewritable_lvalue_p): Allow REALPART/IMAGPART_EXPR
44186 (execute_update_addresses_taken): Deal with that.
44187 * tree-ssa-forwprop.c (pass_forwprop::execute): Use component-wise
44188 loads/stores for complex variables.
44190 2015-01-09 Martin Liska <mliska@suse.cz>
44192 * ipa-icf-gimple.c (func_checker::compare_ssa_name): Enhance SSA
44194 (func_checker::compare_memory_operand): New function.
44195 (func_checker::compare_operand): Split case to newly
44197 (func_checker::compare_cst_or_decl): New function.
44198 (func_checker::compare_gimple_call): Identify
44200 (func_checker::compare_gimple_assign): Likewise.
44201 * ipa-icf-gimple.h: New function.
44203 2015-01-09 Martin Liska <mliska@suse.cz>
44206 * sreal.c (sreal::dump): Change unsigned format to signed for
44208 (sreal::to_double): Replace exp2 with scalbln.
44210 2015-01-09 Martin Liska <mliska@suse.cz>
44212 * cgraphunit.c (cgraph_node::create_wrapper): Fix level of indentation.
44213 * ipa-icf.c (sem_function::equals_private): Add support for target and
44214 (sem_item_optimizer::merge_classes): Remove redundant function
44215 optimization flags comparison.
44216 * tree.h (target_opts_for_fn): New function.
44218 2015-01-09 Tom de Vries <tom@codesourcery.com>
44220 * omp-low.c (expand_omp_for_static_chunk): Fix assert.
44222 2015-01-09 Kito Cheng <kito@0xlab.org>
44224 PR rtl-optimization/64348
44225 * lra-constraints.c (split_reg): Fix caller-save store/restore
44226 instruction generation.
44228 2015-01-08 John David Anglin <danglin@gcc.gnu.org>
44230 PR gcov-profile/61790
44231 * gcov-tool.c (do_rewrite): Use strtoll instead of atoll if host has
44232 long long. Fallback to int64_t if host doesn't have long long and
44233 use strtol if int64_t is long. Otherwise, use sscanf for conversion.
44235 2015-01-08 Jakub Jelinek <jakub@redhat.com>
44237 PR tree-optimization/63989
44238 * params.def (PARAM_MAX_TRACKED_STRLENS): Increment default
44239 from 1000 to 10000.
44240 * tree-ssa-strlen.c (get_strinfo): Moved earlier.
44241 (get_stridx): If we don't have a record for certain SSA_NAME,
44242 but it is POINTER_PLUS_EXPR of some SSA_NAME we do with
44243 constant offset, call get_stridx_plus_constant.
44244 (get_stridx_plus_constant): New function.
44245 (zero_length_string): Don't use get_stridx here.
44248 PR middle-end/64388
44249 * dse.c (struct insn_info): Mention frame_read set also
44250 before reload for tail calls on some targets.
44251 (scan_insn): Revert 2014-12-22 change. Set frame_read
44252 also before reload for tail calls if
44253 HARD_FRAME_POINTER_IS_ARG_POINTER. Call add_wild_read
44254 instead of add_non_frame_wild_read for non-const/memset
44255 tail calls after reload.
44257 2015-01-08 Jason Merrill <jason@redhat.com>
44259 * ubsan.c (do_ubsan_in_current_function): New.
44260 (pass_ubsan::gate): Use it.
44261 * ubsan.h: Declare it.
44262 * convert.c (convert_to_integer): Use it.
44264 2015-01-08 Jakub Jelinek <jakub@redhat.com>
44267 * config/i386/i386.c (ix86_expand_int_movcc): Don't reverse
44268 compare_code when it is unconditionally overwritten afterwards.
44269 Use ix86_reverse_condition instead of reverse_condition. Don't
44270 change code if *reverse_condition* returned UNKNOWN and don't
44271 swap ct/cf and negate diff in that case.
44273 2015-01-08 Mike Stump <mikestump@comcast.net>
44275 * tsan.c (pass_tsan::gate): Add no_sanitize_thread support.
44276 (pass_tsan_O0::gate): Likewise.
44277 * extend.texi (Function Attributes): Add no_sanitize_thread
44280 2015-01-08 Thomas Schwinge <thomas@codesourcery.com>
44282 * builtins.def (DEF_GOMP_BUILTIN): Also consider flag_offload_abi
44283 for registering builtins.
44284 * config/i386/intelmic-mkoffload.c (prepare_target_image): Don't
44285 add -fopenmp to the argv_obstack used when invoking
44286 compile_for_target.
44288 * config/i386/intelmic-mkoffload.c (compile_for_target): Always
44289 add "-m32" or "-m64" to argv_obstack.
44290 (generate_host_descr_file): Likewise, when invoking host_compiler.
44291 (main): Always add "-m elf_i386" or "-m elf_x86_64" when invoking
44294 2015-01-08 Oleg Endo <olegendo@gcc.gnu.org>
44296 * config/sh/sh-mem.cc: Use constant as second operand when emitting
44299 2015-01-08 Oleg Endo <olegendo@gcc.gnu.org>
44302 * config/sh/sh.md (*addsi3_compact): Emit reg-reg copy instead of
44303 constant load if constant operand fits into I08.
44305 2015-01-08 Jakub Jelinek <jakub@redhat.com>
44308 * tree.c (build2_stat): Fix up initialization of TREE_READONLY
44309 and TREE_THIS_VOLATILE for MEM_REFs.
44310 (build5_stat): Fix up initialization of TREE_READONLY and
44311 TREE_THIS_VOLATILE for TARGET_MEM_REFs.
44313 2015-01-08 Kaz Kojima <kkojima@gcc.gnu.org>
44316 * config/sh/sh.md (*addsi3_compact): Use u constraint instead
44317 of r for the second alternative of the destination operand.
44319 2015-01-07 Segher Boessenkool <segher@kernel.crashing.org>
44322 * config/rs6000/rs6000.md (*eqsi3_ext<mode>, *nesi3_ext<mode>): New.
44324 2015-01-07 Sandra Loosemore <sandra@codesourcery.com>
44326 * doc/invoke.texi ([-fvtable-verify]): Fix markup on option
44328 ([-fivar-visibility], [-fvisibility]): Likewise.
44330 2015-01-07 Sandra Loosemore <sandra@codesourcery.com>
44332 * doc/invoke.texi: Fix incorrect uses of @samp markup throughout
44333 the file where @code, @command, etc is more appropriate.
44335 2015-01-06 Sandra Loosemore <sandra@codesourcery.com>
44337 * doc/invoke.texi (RS/6000 and PowerPC Options): Tidy formatting
44338 of -mrecip= documentation.
44340 2015-01-06 Michael Meissner <meissner@linux.vnet.ibm.com>
44343 * config/rs6000/rs6000.c (rs6000_secondary_reload): Return the
44344 correct reload handler if -m32 -mpowerpc64 is used.
44346 2015-01-06 Tom de Vries <tom@codesourcery.com>
44348 * tree-ssa-tail-merge.c: Fix typo in struct same_succ_def comment.
44350 2015-01-08 Christian Bruel <christian.bruel@st.com>
44353 * config/sh/sh-mem.cc (sh_expand_cmpnstr): Check 0 length.
44355 2015-01-06 Thomas Preud'homme <thomas.preudhomme@arm.com>
44357 PR tree-optimization/63259
44358 * tree-ssa-math-opts.c (pass_optimize_bswap::execute): Stop checking
44359 if optab exists for 16bit byteswap.
44361 2015-01-06 Jakub Jelinek <jakub@redhat.com>
44363 * opts.c (common_handle_option): Add support for
44364 -fno-sanitize=all and -f{,no-}sanitize-recover=all.
44365 * doc/invoke.texi: Document -fno-sanitize=all,
44366 -f{,no-}sanitize-recover=all. Document that
44367 -fsanitize=float-cast-overflow is not enabled
44368 by -fsanitize=undefined. Fix up documentation
44369 of -f{,no-}sanitize-recover.
44371 2015-01-06 Eric Botcazou <ebotcazou@adacore.com>
44373 * config.gcc: Add Visium support.
44374 * configure.ac: Likewise.
44375 * configure: Regenerate.
44376 * doc/extend.texi (interrupt attribute): Add Visium.
44377 * doc/invoke.texi: Document Visium options.
44378 * doc/install.texi: Document Visium target.
44379 * doc/md.texi: Document Visium constraints.
44380 * common/config/visium: New directory.
44381 * config/visium: Likewise.
44383 2015-01-05 Segher Boessenkool <segher@kernel.crashing.org>
44385 * simplify-rtx.c (simplify_binary_operation_1): Handle more cases
44386 for the "(and X (ior (not X) Y) -> (and X Y)" transform.
44388 2015-01-05 Segher Boessenkool <segher@kernel.crashing.org>
44390 * combine.c (combine_validate_cost): Do not count the cost of a
44391 split I2 twice. Do not display it twice in the dump, either.
44393 2015-01-05 Sandra Loosemore <sandra@codesourcery.com>
44395 Revert parts of r219199.
44396 * doc/invoke.texi ([-Wliteral-suffix]): Restore markup on
44398 ([-Wtraditional]): Restore markup on <limits.h>.
44400 2015-01-05 Trevor Saunders <tsaunders@mozilla.com>
44403 * doc/invoke.texi: Document -Wsuggest-override.
44405 2015-01-05 Radovan Obradovic <radovan.obradovic@imgtec.com>
44407 PR rtl-optimization/64287
44408 * toplev.c (HAVE_epilogue, HAVE_prologue): Provide default.
44409 (process_options): Disable flag_ipa_ra if profiling.
44411 2015-01-05 Eric Botcazou <ebotcazou@adacore.com>
44413 * config/nds32/nds32-peephole2.md: Do not mention define_peephole.
44415 2015-01-05 Max Filippov <jcmvbkbc@gmail.com>
44417 * config/xtensa/xtensa.c (hwloop_optimize, hwloop_fail,
44418 hwloop_pattern_reg, xtensa_doloop_hooks, xtensa_reorg_loops):
44419 put under #if TARGET_LOOPS guard.
44421 2015-01-05 Uros Bizjak <ubizjak@gmail.com>
44423 * config/i386/i386.c (output_387_binary_op): Use std::swap.
44425 2015-01-05 Oleg Endo <olegendo@gcc.gnu.org>
44427 * rtlanal.c (refers_to_regno_p): Change return value from int to bool.
44428 * rtl.h (refers_to_regno_p): Add overload.
44430 * bt-load.c: Likewise.
44431 * combine.c: Likewise.
44432 * df-scan.c: Likewise.
44433 * sched-deps.c: Likewise.
44434 * config/s390/s390.c: Likewise.
44435 * config/m32r/m32r.c: Likewise.
44436 * config/rs6000/spe.md: Likewise.
44437 * config/rs6000/rs6000.c: Likewise.
44438 * config/pa/pa.c: Likewise.
44439 * config/stormy16/stormy16.c: Likewise.
44440 * config/cris/cris.c: Likewise.
44441 * config/arc/arc.md: Likewise.
44442 * config/arc/arc.c: Likewise.
44443 * config/sh/sh.md: Likewise.
44444 * config/sh/sh.c: Likewise.
44445 * config/frv/frv.c: Likewise.
44447 2015-01-05 Jakub Jelinek <jakub@redhat.com>
44450 * gimplify.c (gimplify_function_tree): Add TSAN_FUNC_EXIT internal
44451 call as cleanup of the whole body.
44452 * internal-fn.def (TSAN_FUNC_EXIT): New internal call.
44453 * tsan.c (replace_func_exit): New function.
44454 (instrument_func_exit): Moved earlier.
44455 (instrument_memory_accesses): Adjust TSAN_FUNC_EXIT internal calls.
44456 Call instrument_func_exit if no TSAN_FUNC_EXIT internal calls have
44458 (tsan_pass): Don't call instrument_func_exit.
44459 * internal-fn.c (expand_TSAN_FUNC_EXIT): New function.
44460 * tree-inline.c (copy_bb): Drop TSAN_FUNC_EXIT internal calls during
44464 * ubsan.h (ubsan_instrument_float_cast): Add ARG argument.
44465 * ubsan.c (ubsan_instrument_float_cast): Add ARG argument, pass
44466 it to libubsan handler instead of EXPR. Fold comparisons earlier,
44467 if the result is integer_zerop, return NULL_TREE.
44468 * convert.c (convert_to_integer): Pass expr as ARG.
44470 PR tree-optimization/64465
44471 * tree-inline.c (redirect_all_calls): During inlining
44472 clean up EH stmts and EH edges if redirect_call_stmt_to_callee
44473 changed the stmt to a non-throwing call.
44475 2015-01-05 Sandra Loosemore <sandra@codesourcery.com>
44477 * doc/invoke.texi: Fix incorrect uses of @code, @option, @samp,
44478 etc markup throughout the file.
44480 2015-01-05 Bernd Edlinger <bernd.edlinger@hotmail.de>
44482 Enable experimental TSAN support for Ada.
44483 * tsan.c (instrument_expr): Handle VIEW_CONVERT_EXPR.
44485 2015-01-05 Jakub Jelinek <jakub@redhat.com>
44487 PR tree-optimization/64494
44488 * tree-ssa-loop-im.c (move_computations_dom_walker::before_dom): Also
44489 clear SSA_NAME_ANTI_RANGE_P flag.
44491 2015-01-05 Marek Polacek <polacek@redhat.com>
44493 * doc/extend.texi (Arrays of Length Zero): Add missing comma.
44495 2015-01-05 Jakub Jelinek <jakub@redhat.com>
44497 Update copyright years.
44499 * gcc.c (process_command): Update copyright notice dates.
44500 * gcov-dump.c: Ditto.
44502 * doc/cpp.texi: Bump @copying's copyright year.
44503 * doc/cppinternals.texi: Ditto.
44504 * doc/gcc.texi: Ditto.
44505 * doc/gccint.texi: Ditto.
44506 * doc/gcov.texi: Ditto.
44507 * doc/install.texi: Ditto.
44508 * doc/invoke.texi: Ditto.
44510 * auto-profile.c, auto-profile.h: Fix up Copyright line.
44512 2015-01-04 Sandra Loosemore <sandra@codesourcery.com>
44514 * doc/invoke.texi ([-fsized-deallocation]): Copy-edit to fix
44516 ([-fvtable-verify], [-fvtv-debug]): Likewise.
44517 ([-Wabi]): Likewise.
44518 ([-fmessage-length]): Likewise.
44519 ([-Wsuggest-final-types], [-Wsuggest-final-methods]): Likewise.
44520 ([-Wno-discarded-qualifiers]): Likewise.
44521 ([-Wnodiscarded-array-qualifiers]): Likewise.
44522 ([-Wno-virtual-move-assign]): Likewise.
44523 ([-fsanitize=address], [-fsanitize=thread]): Likewise.
44524 ([-fsanitize=leak], [-fsanitize=undefined]): Likewise.
44525 ([-fsanitize=unreachable], [-fsanitize-recover]): Likewise.
44526 ([-fsanitize-undefined-trap-on-error]): Likewise.
44527 ([-floop-interchange]): Likewise.
44528 ([-ftree-coalesce-inlined-vars]): Likewise.
44529 ([-fvect-cost-model]): Likewise.
44530 ([-flto]): Likewise.
44531 ([--param]): Likewise.
44532 (Spec Files): Likewise.
44533 ([-mstrict-align]): Likewise.
44534 ([-mfix-cortex-a53-835769]): Likewise.
44535 ([-march], [-mtune]): Likewise.
44536 ([-mpic-register]): Likewise.
44537 ([-munaligned-access]): Likewise.
44538 ([-msp8]): Likewise.
44539 (EIND and Devices with more than 128 Ki Bytes of Flash): Likewise.
44540 (AVR Built-in Macros): Likewise.
44541 ([-mpreferred-stack-boundary]): Likewise.
44542 ([-mtune-crtl]): Likewise.
44543 ([-mashf]): Likewise.
44544 ([-mmcu=]): Likewise.
44545 ([-minrt]): Likewise.
44546 ([-maltivec], [-maltivec=be], [-maltivec=le]): Likewise.
44547 ([-mupper-regs]): Likewise.
44548 ([-matomic-model]): Likewise.
44549 ([-mdiv]): Likewise.
44550 ([-mzdcbranch]): Likewise.
44551 ([-mdisable-callt]): Likewise.
44552 ([-msoft-float]): Likewise.
44553 ([-m8byte-align]): Likewise.
44554 ([-fstack-reuse]): Likewise.
44556 2015-01-03 Sandra Loosemore <sandra@codesourcery.com>
44558 * doc/invoke.texi ([-fprofile-generate], [-fprofile-use]):
44559 Fix markup, light copy-editing.
44560 ([-fauto-profile]): Rewrite to fix formatting and content
44563 2015-01-03 Sandra Loosemore <sandra@codesourcery.com>
44565 * doc/invoke.texi ([-fisolate-erroneous-paths-dereference]):
44566 Copy-edit description.
44567 ([-fisolate-erroneous-paths-attribute]): Likewise.
44568 * common.opt (fisolate-erroneous-paths-dereference):
44569 Copy-edit description.
44570 (fisolate-erroneous-paths-attribute): Likewise.
44572 2015-01-03 Sandra Loosemore <sandra@codesourcery.com>
44574 * doc/invoke.texi ([-fsemantic-interposition]): Fix typos and
44577 2015-01-03 Sandra Loosemore <sandra@codesourcery.com>
44579 * doc/invoke.texi ([-fplan9-extensions]): Add/fix @opindex.
44580 ([-fvtv-debug]): Likewise.
44581 ([-Wc++-compat]): Likewise.
44582 ([-Wc++11-compat]): Likewise.
44583 ([-Wc++14-compat]): Likewise.
44584 ([-Wno-sized-deallocation]): Likewise.
44585 ([-femit-class-debug-always]): Likewise.
44586 ([-femit-struct-debug-detailed]): Likewise.
44587 ([-fno-keep-inline-dllexport]): Likewise.
44588 ([-fira-algorithm]): Likewise.
44589 ([-fira-region]): Likewise.
44590 ([-flra-remat]): Likewise.
44591 ([-fipa-ra]): Likewise.
44592 ([-fhoist-adjacent-loads]): Likewise.
44593 ([-fisolate-erroneous-paths-dereference]): Likewise.
44594 ([-fisolate-erroneous-paths-attribute]): Likewise.
44595 ([-ftree-switch-conversion]): Likewise.
44596 ([-ftree-tail-merge]): Likewise.
44597 ([-ftree-loop-if-convert]): Likewise.
44598 ([-ftree-loop-if-convert-stores]): Likewise.
44599 ([-ftree-loop-distribution]): Likewise.
44600 ([-ftree-loop-distribute-patterns]): Likewise.
44601 ([-flto-compression-level]): Likewise.
44602 ([-flto-report]): Likewise.
44603 ([-flto-report-wpa]): Likewise.
44604 ([-fuse-linker-plugin]): Likewise.
44605 ([-mfix-cortex-a53-835769]): Likewise.
44606 ([-mno-fix-cortex-a53-835769]): Likewise.
44607 ([-mmmx]...[-mno-3dnow]): Remove the -mno- forms from the
44608 explicit listing; add a note to the discussion indicating they
44609 exist. Reorder table to group similar options. Add missing
44610 @opindex entries. Add @need commands throughout the table to
44611 allow it to be split across multiple pages.
44612 ([-m8bit-idiv]): Fix @opindex.
44613 ([-mavx256-split-unaligned-load]): Likewise.
44614 ([-mavx256-split-unaligned-store]): Likewise.
44615 ([-mstack-protector-guard]): Likewise.
44616 ([-mcpu=]): Likewise.
44617 ([-mcpu]): Likewise.
44618 ([-mpointer-size=]): Likewise.
44620 2015-01-03 John David Anglin <danglin@gcc.gnu.org>
44622 * config/pa/pa.md (decrement_and_branch_until_zero): Use `Q' constraint
44623 instead of `m' constraint. Likewise for unnamed movb comparison
44624 patterns using reg_before_reload_operand predicate.
44625 * config/pa/predicates.md (reg_before_reload_operand): Tighten
44626 predicate to reject register index and LO_SUM DLT memory forms
44629 2015-01-02 Sandra Loosemore <sandra@codesourcery.com>
44631 * doc/invoke.texi (Option Summary): Fix spelling of
44632 -fdevirtualize-at-ltrans.
44633 ([-fdevirtualize]): Fix markup.
44634 ([-fdevirtualize-speculatively]): Fix typo.
44635 ([-fdevirtualize-at-ltrans]): Likewise. Make description less
44636 implementor-speaky.
44637 * common.opt (fdevirtualize-at-ltrans): Likewise.
44638 * ipa-devirt.c: Fix typos in comments throughout the file.
44639 (ipa_devirt): Fix typos in format strings for dump output.
44641 2015-01-02 Sandra Loosemore <sandra@codesourcery.com>
44643 * doc/invoke.texi ([-fopt-info]): Fix markup, consolidate
44644 discussion of defaults, light copy-editing.
44646 2015-01-02 Bernd Edlinger <bernd.edlinger@hotmail.de>
44648 * tsan.c (instrument_expr): corrected previous checkin.
44650 2015-01-02 Bernd Edlinger <bernd.edlinger@hotmail.de>
44652 Instrument bit field and unaligned accesses for TSAN.
44653 * sanitizer.def (BUILT_IN_TSAN_READ_RANGE): New built-in function.
44654 (BUILT_IN_TSAN_WRITE_RANGE): New built-in function.
44655 * tsan.c (instrument_expr): Handle COMPONENT_REF and BIT_FIELD_REF.
44656 Use BUILT_IN_TSAN_READ_RANGE and BUILT_IN_TSAN_WRITE_RANGE for
44657 unaligned memory regions.
44659 2015-01-01 Anthony Green <green@moxielogic.com>
44661 * config/moxie/predicates.md (moxie_general_movsrc_operand):
44662 Restrict move source register offsets to 16 bits.
44664 Copyright (C) 2015 Free Software Foundation, Inc.
44666 Copying and distribution of this file, with or without modification,
44667 are permitted in any medium without royalty provided the copyright
44668 notice and this notice are preserved.