Move pr66680.f90 to libgomp
[gcc.git] / gcc / ChangeLog-2015
1 2015-12-30 Nathan Sidwell <nathan@acm.org>
2
3 * config/nvptx/nvptx.c (nvptx_assemble_undefined_decl): Check
4 it's not a constant pool object.
5
6 2015-12-29 Michael Meissner <meissner@linux.vnet.ibm.com>
7
8 * config/rs6000/rs6000.c (init_float128_ieee): Remove IEEE 128-bit
9 comparison functions in cmp_optab and ucmp_optab.
10 (rs6000_generate_compare): Rewrite IEEE 128-bit floating point
11 software emulation comparisons to only use __eqkf2, __gekf2,
12 __lekf2, and __unordkf2 functions.
13 (rs6000_invalid_binary_op): Add support for -mfloat128-convert.
14
15 * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Define
16 __FLOAT128_HARDWARE__ if hardware IEEE 128-bit support is
17 available.
18
19 * config/rs6000/rs6000.opt (-mfloat128-convert): Add debug switch
20 to allow IBM extended double and IEEE 128-bit floating point to be
21 converted with default conversions.
22
23 * config/rs6000/rs6000.md (extendkftf2): Add converters between
24 KFmode and TFmode if -mabi=ieeelongdouble.
25 (trunctfkf2): Likewise.
26 (ieee128_mfvsrd): Split 64-bit integer conversions into 32-bit and
27 64-bit insns.
28 (ieee128_mfvsrd_64bit): Likewise.
29 (ieee128_mfvsrd_32bit): Likewise.
30 (ieee128_mtvsrd): Likewise.
31 (ieee128_mtvsrd_64bit): Likewise.
32 (ieee128_mtvsrd_32bit): Likewise.
33
34 * doc/extend.texi (Floating Types): Document that complex
35 __float128 does not work currently.
36
37 * doc/invoke.texi (RS/6000 and PowerPC Options): Document that
38 -mfloat128 is only supported on PowerPC 64-bit Linux systems.
39
40 2015-12-28 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
41
42 * config/rs6000/rs6000.c (rs6000_emit_le_vsx_move): Verify that
43 this is never called when lxvx/stxvx are available.
44 (pass_analyze_swaps::gate): Don't perform swap optimization when
45 lxvx/stxvx are available.
46 * config/rs6000/vector.md (mov<mode>): Don't call
47 rs6000_emit_le_vsx_move when lxvx/stxvx are available.
48 * config/rs6000/vsx.md (*p9_vecload_<mode>): New define_insn.
49 (*p9_vecstore_<mode>): Likewise.
50 (*vsx_le_perm_load_<mode>:VSX_LE): Disable when lxvx/stxvx are
51 available.
52 (*vsx_le_perm_load_<mode>:VSX_W): Likewise.
53 (*vsx_le_perm_load_v8hi): Likewise.
54 (*vsx_le_perm_load_v16qi): Likewise.
55 (*vsx_le_perm_store_<mode>:VSX_LE): Likewise.
56 ([related define_splits]): Likewise.
57 (*vsx_le_perm_store_<mode>:VSX_W): Likewise.
58 ([related define_splits]): Likewise.
59 (*vsx_le_perm_store_v8hi): Likewise.
60 ([related define_splits]): Likewise.
61 (*vsx_le_perm_store_v16qi): Likewise.
62 ([related define_splits]): Likewise.
63 (*vsx_lxvd2x2_le_<mode>): Likewise.
64 (*vsx_lxvd2x4_le_<mode>): Likewise.
65 (*vsx_lxvd2x8_le_V8HI): Likewise.
66 (*vsx_lvxd2x16_le_V16QI): Likewise.
67 (*vsx_stxvd2x2_le_<mode>): Likewise.
68 (*vsx_stxvd2x4_le_<mode>): Likewise.
69 (*vsx_stxvd2x8_le_V8HI): Likewise.
70 (*vsx_stxvdx16_le_V16QI): Likewise.
71 ([define_peepholes for vector load fusion]): Likewise.
72
73 2015-12-28 Nathan Sidwell <nathan@acm.org>
74
75 * config/nvptx/nvptx.c (nvptx_output_call_insn): Expect hard regs.
76 * config/nvptx/nvptx.md (nvptx_reg_or_mem_operand): Rename to ...
77 (nvptx_nonimmediate_operand): ... here. Update all uses.
78 (call_insn_operand): Use REG_P.
79 (call_operation): Allow hard regs.
80
81 2015-12-25 Jan Hubicka <hubicka@ucw.cz>
82
83 * ipa-visibility.c (function_and_variable_visibility): Do not
84 dissolve comdat groups when in LTO mode.
85
86 2015-12-25 Andreas Tobler <andreast@gcc.gnu.org>
87
88 * config/rs6000/freebsd64.h: Delete FREEBSD_DYNAMIC_LINKER32/64
89 defines. Use FBSD_DYNAMIC_LINKER instead.
90 Rename and simplify LINK_OS_FREEBSD_SPEC_DEF32/64 to
91 LINK_OS_FREEBSD_SPEC_DEF.
92
93 2015-12-24 Aditya Kumar <aditya.k7@samsung.com>
94
95 * graphite-sese-to-poly.c (build_loop_iteration_domains): Use ref instead of value.
96 * sese.c (invariant_in_sese_p_rec): Use const ref instead of value.
97 (scalar_evolution_in_region): Same
98 * sese.h (bb_in_region): Same
99 (bb_in_sese_p): Same.
100 (stmt_in_sese_p): Same.
101 (defined_in_sese_p): Same.
102 (loop_in_sese_p): Same.
103
104 2015-12-24 Aditya Kumar <aditya.k7@samsung.com>
105
106 * graphite-scop-detection.c
107 (scop_detection::get_nearest_dom_with_single_entry): Check l == l2.
108 (scop_detection::get_nearest_pdom_with_single_exit): Same.
109 (scop_detection::merge_sese): Whitespace.
110 (scop_detection::add_scop): Comment.
111 (build_scops): Whitespace.
112
113 2015-12-24 Kirill Yukhin <kirill.yukhin@intel.com>
114
115 * common/config/i386/i386-common.c (OPTION_MASK_ISA_PKU_SET): New.
116 (OPTION_MASK_ISA_PKU_UNSET): Ditto.
117 (ix86_handle_option): Handle OPT_mpku.
118 * config.gcc: Add pkuintrin.h to i[34567]86-*-* and x86_64-*-*
119 targets.
120 * config/i386/cpuid.h (host_detect_local_cpu): Detect PKU feature.
121 * config/i386/i386-c.c (ix86_target_macros_internal): Handle PKU ISA
122 flag.
123 * config/i386/i386.c (ix86_target_string): Add "-mpku" to
124 ix86_target_opts.
125 (ix86_option_override_internal): Define PTA_PKU, mention new key
126 in skylake-avx512. Handle new ISA bits.
127 (ix86_valid_target_attribute_inner_p): Add "pku".
128 (enum ix86_builtins): Add IX86_BUILTIN_RDPKRU and IX86_BUILTIN_WRPKRU.
129 (builtin_description bdesc_special_args[]): Add new built-ins.
130 * config/i386/i386.h (define TARGET_PKU): New.
131 (define TARGET_PKU_P): Ditto.
132 * config/i386/i386.md (define_c_enum "unspecv"): Add UNSPEC_PKU.
133 (define_expand "rdpkru"): New.
134 (define_insn "*rdpkru"): Ditto.
135 (define_expand "wrpkru"): Ditto.
136 (define_insn "*wrpkru"): Ditto.
137 * config/i386/i386.opt (mpku): Ditto.
138 * config/i386/pkuintrin.h: New file.
139 * config/i386/x86intrin.h: Include pkuintrin.h
140 * doc/extend.texi: Describe new built-ins.
141 * doc/invoke.texi: Describe new switches.
142
143 2015-12-23 Richard Henderson <rth@redhat.com>
144
145 PR ipa/67811
146 * tree-cfg.c (make_edges_bb): Add abort edge for outer transactions.
147
148 2015-12-23 Nathan Sidwell <nathan@acm.org>
149
150 * cgraph.h (decl_in_symtab_p): Revert check DECL_IN_CONSTANT_POOL.
151
152 2015-12-23 Nathan Sidwell <nathan@acm.org>
153
154 * config/nvptx/nvptx-protos.h
155 (nvptx_maybe_convert_symbolic_operand): Delete prototype.
156 * config/nvptx/nvptx.c (nvptx_maybe_convert_symbolic_operand): Delete.
157 (nvptx_output_mov_insn): Record fnsym here.
158 (nvptx_wpropagate): Don't create UNSPEC_TO_GENERIC unspec.
159 * config/nvptx/nvptx.md (UNSPEC_TO_GENERIC): Delete.
160 (symbolic_operand): Delete predicate.
161 (nvptx_nonimmediate_operand): Delete predicate.
162 (mov<mode>): Hard regs are perfectly ok here.
163 (convaddr_<mode>): Delete.
164
165 2015-12-23 Nathan Sidwell <nathan@acm.org>
166
167 * alias.c (compare_base_decls): Simplify in-symtab check.
168 * cgraph.h (decl_in_symtab_p): Check DECL_IN_CONSTANT_POOL.
169
170 2015-12-23 Dominik Vogt <vogt@linux.vnet.ibm.com>
171
172 * config/s390/predicates.md ("larl_operand"): Remove now superfluous
173 const_int and const_double.
174 * genrecog.c (safe_predicate_mode): Return false for VOIDmode
175 LABEL_REFs even if the predicate does not handle const_int,
176 const_double or const_wide_int.
177 * genpreds.c (add_mode_tests): Treat LABEL_REF like CONST_INT.
178
179 2015-12-23 Thomas Schwinge <thomas@codesourcery.com>
180
181 * tree-core.h (enum omp_clause_code): Merge OMP_CLAUSE_USE_DEVICE
182 into OMP_CLAUSE_USE_DEVICE_PTR. Adjust all users.
183
184 2015-12-23 David Sherwood <david.sherwood@arm.com>
185
186 * config/arm/iterators.md (VMAXMINFNM): New int iterator.
187 (fmaxmin): New int attribute.
188 (fmaxmin_op): Likewise.
189 * config/arm/unspecs.md (UNSPEC_VMAXNM): New unspec.
190 (UNSPEC_VMINNM): Likewise.
191 * config/arm/neon.md (fmaxmin): New pattern.
192 * config/arm/vfp.md (fmaxmin): Likewise.
193
194 2015-12-23 H.J. Lu <hongjiu.lu@intel.com>
195
196 PR target/66232
197 * config/i386/constraints.md (Bs): Allow GOT slot for x32 with
198 64-bit Pmode.
199 (Bw): Likewise.
200 (Bz): Likewise.
201 * config/i386/predicates.md (call_insn_operand): Likewise.
202 (sibcall_insn_operand): Likewise.
203
204 2015-12-22 David Malcolm <dmalcolm@redhat.com>
205
206 PR c/68473
207 * diagnostic-show-locus.c (layout::layout): Make loc_range const.
208 Sanitize the layout_range against ranges that finish before they
209 start.
210
211 2015-12-22 Jeff Law <law@redhat.com>
212
213 * gimple-ssa-split-paths.c (split_paths): Avoid unnecessary block
214 copying.
215
216 2015-12-22 Jakub Jelinek <jakub@redhat.com>
217
218 PR c++/67376
219 * fold-const.c (size_low_cst): Removed.
220 (fold_comparison): For POINTER_PLUS_EXPR where base is ADDR_EXPR
221 call get_inner_reference and handle INDIRECT_REF base of it. Use
222 offset_int for computation of the bitpos.
223 (fold_binary_loc) <case EQ_EXPR, NE_EXPR>: Formatting
224 fixes for X +- Y CMP X and C - X CMP X folding. Add X CMP X +- Y
225 and X CMP C - X folding.
226
227 2015-12-22 Richard Henderson <rth@redhat.com>
228
229 PR ipa/67811
230 * gimple.h (struct gtransaction): Add label_norm, label_uninst;
231 replace label with label_over.
232 (gimple_build_transaction): Remove label parameter.
233 (gimple_transaction_label_norm): New.
234 (gimple_transaction_label_uninst): New.
235 (gimple_transaction_label_over): Rename from gimple_transaction_label.
236 (gimple_transaction_label_norm_ptr): New.
237 (gimple_transaction_label_uninst_ptr): New.
238 (gimple_transaction_label_over_ptr): Rename from
239 gimple_transaction_label_ptr.
240 (gimple_transaction_set_label_norm): New.
241 (gimple_transaction_set_label_uninst): New.
242 (gimple_transaction_set_label_over): Rename from
243 gimple_transaction_set_label.
244 * gimple-pretty-print.c (dump_gimple_transaction): Update.
245 * gimple-streamer-in.c (input_gimple_stmt) [GIMPLE_TRANSACTION]: Same.
246 * gimple-streamer-out.c (output_gimple_stmt) [GIMPLE_TRANSACTION]: Same.
247 * gimple-walk.c (walk_gimple_op) [GIMPLE_TRANSACTION]: Same.
248 * tree-cfg.c (make_edges_bb) [GIMPLE_TRANSACTION]: Same.
249 (cleanup_dead_labels) [GIMPLE_TRANSACTION]: Same.
250 (verify_gimple_transaction): Same.
251 (gimple_redirect_edge_and_branch) [GIMPLE_TRANSACTION]: Same.
252 * tree-inline.c (remap_gimple_stmt) [GIMPLE_TRANSACTION]: Same.
253 * gimple.c (gimple_build_transaction): Remove label parameter;
254 initialize all three label memebers.
255 * gimplify.c (gimplify_transaction): Update call
256 to gimple_build_transaction.
257 * trans-mem.c (make_tm_uninst): New.
258 (lower_transaction): Create uninstrumented code path here...
259 (ipa_tm_scan_calls_transaction): ... not here.
260 (ipa_uninstrument_transaction): Remove.
261
262 * tree-eh.c (honor_protect_cleanup_actions): Do not wrap eh_else
263 in a must-not-throw; set ehp_region for it too.
264
265 2015-12-22 Peter Bergner <bergner@vnet.ibm.com>
266
267 PR target/68872
268 * config/rs6000/rs6000.h (ASM_CPU_SPEC): For -mcpu=powerpc64le,
269 pass %(asm_cpu_power8).
270
271 2015-12-22 H.J. Lu <hongjiu.lu@intel.com>
272
273 PR target/68937
274 * config/i386/i386.c (ix86_function_ok_for_sibcall): Count
275 call to global function via GOT slot as indirect call.
276 * config/i386/i386.md (*sibcall_GOT_32): New pattern.
277 (*sibcall_value_GOT_32): Likewise.
278 * config/i386/predicates.md (sibcall_memory_operand): Rewrite.
279 Allow 32-bit GOT slot only with pseudo register as GOT base.
280 (GOT32_symbol_operand): New predicate.
281
282 2015-12-22 Sujoy Saraswati <sujoy.saraswati@hpe.com>
283
284 * fold-const.c (const_binop): Convert sNaN to qNaN when
285 flag_signaling_nans is off.
286 (const_unop): Avoid the operation, other than NEGATE and
287 ABS, if flag_signaling_nans is on and the operand is an sNaN.
288 (fold_convert_const_real_from_real): Avoid the operation if
289 flag_signaling_nans is on and the operand is an sNaN.
290 (integer_valued_real_unary_p): Update comment stating it
291 returns false for sNaN values.
292 (integer_valued_real_binary_p, integer_valued_real_call_p): Same.
293 (integer_valued_real_single_p): Same.
294 (integer_valued_real_invalid_p, integer_valued_real_p): Same.
295 * fold-const-call.c (fold_const_pow): Avoid the operation
296 if flag_signaling_nans is on and the operand is an sNaN.
297 (fold_const_builtin_load_exponent) Same.
298 (fold_const_call_sss): Same for CASE_CFN_POWI.
299 * gimple-fold.c (gimple_assign_integer_valued_real_p): Same.
300 (gimple_call_integer_valued_real_p): Same.
301 (gimple_phi_integer_valued_real_p): Same.
302 (gimple_stmt_integer_valued_real_p): Same.
303 * simplify-rtx.c (simplify_const_unary_operation): Avoid the
304 operation if flag_signaling_nans is on and the operand is an sNaN.
305 (simplify_const_binary_operation): Same.
306 * tree-ssa-math-opts.c (gimple_expand_builtin_pow): Avoid the
307 operation if flag_signaling_nans is on and the operand is an sNaN.
308
309 2015-12-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
310
311 * combine.c (simplify_comparison): Convert preprocessor check of
312 WORD_REGISTER_OPERATIONS into runtime check.
313
314 2015-12-22 Eric Botcazou <ebotcazou@adacore.com>
315
316 PR debug/60756
317 * var-tracking.c (tracked_record_parameter_p): New predicate.
318 (track_expr_p): Invoke it.
319 (add_stores): Likewise.
320
321 2015-12-21 Jeff Law <law@redhat.com>
322
323 * dbgcnt.def (dom_unreachable_edges): New debug counter.
324 * tree-ssa-dom.c: Include dbgcnt.h
325 (dom_opt_dom_walker::before_dom_children): Handle the new counter.
326
327 2015-12-21 Andrew Pinski <apinski@cavium.com>
328
329 * config/aarch64/aarch64-option-extensions.def (LSE): Change
330 FEAT_STRING to "atomics".
331
332 2015-12-21 Pierre-Marie de Rodat <derodat@adacore.com>
333
334 * dwarf2out.c (add_data_member_location_attribute): Do not
335 disable dynamic data member offsets descriptions for TREE_BINFO
336 members.
337
338 2015-12-21 Eric Botcazou <ebotcazou@adacore.com>
339
340 PR tree-optimization/65337
341 * tree-ssa-pre.c (eliminate): Also clean up abnormal edges if need be.
342
343 2015-12-21 Dominik Vogt <vogt@linux.vnet.ibm.com>
344
345 * config/s390/s390.c (s390_emit_prologue): Fix base reg condition.
346
347 2015-12-21 Claudiu Zissulescu <claziss@synopsys.com>
348
349 * config/arc/builtins.def: New file.
350 * config/arc/arc.c (arc_init_simd_builtins): Remove.
351 (arc_builtins): Likewise.
352 (TARGET_BUILTIN_DECL): Define.
353 (arc_builtin_id): New enum.
354 (arc_builtin_description): New structure.
355 (arc_bdesc): New variable.
356 (arc_tolower): New function.
357 (def_mbuiltin): Remove.
358 (arc_builtin_decl): New function.
359 (arc_expand_builtin_aligned ): Likewise.
360 (apply_GEN_FCN): Likewise.
361 (arc_init_builtins): Refurbish.
362 (arc_expand_builtin): Likewise.
363 (simd_insn_args_type): Remove.
364 (builtin_description): Likewise
365 (arc_simd_builtin_desc_list): Likewise.
366 (arc_expand_simd_builtin): Likewise.
367 (arc_process_double_reg_moves): Use the new builtin name format.
368 * config/arc/arc.md (unspec): New builtin function UNSPEC codes.
369 (vunspec): New builtin function VUNSPEC codes.
370 (UNSPEC_SWAP, UNSPEC_MUL64, UNSPEC_MULU64, UNSPEC_DIVAW)
371 (UNSPEC_DIRECT, UNSPEC_LP, UNSPEC_CASESI, VUNSPEC_RTIE)
372 (VUNSPEC_SYNC, VUNSPEC_BRK, VUNSPEC_FLAG, VUNSPEC_SLEEP)
373 (VUNSPEC_SWI, VUNSPEC_CORE_READ, VUNSPEC_CORE_WRITE, VUNSPEC_LR)
374 (VUNSPEC_SR, VUNSPEC_TRAP_S, VUNSPEC_UNIMP_S, VUNSPEC_NOP)
375 (UNSPEC_ARC_MEMBAR,VUNSPEC_ARC_CAS, VUNSPEC_ARC_LL)
376 (VUNSPEC_ARC_SC, VUNSPEC_ARC_EX, VUNSPEC_DEXCL)
377 (VUNSPEC_DEXCL_NORES, VUNSPEC_LR_HIGH): Remove.
378 (mul64, mulu64): Remove patterns.
379 (store_direct, *movdf_insn_nolrsr, casesi, casesi_load)
380 (casesi_compact_jump, nopv, swap, divaw, flag, brk, rtie, sync)
381 (swi, sleep, core_read, core_write, lr, sr, trap_s, unimp_s)
382 (doloop_begin_i): Use new builtin function code naming.
383 (kflag, clri, ffs, ffs_f, ffssi2, fls, seti): New patterns.
384 * config/arc/builtins.def: New file.
385 * config/arc/fpx.md: Use new builtin function code naming.
386 * config/arc/simdext.md: New SIMD builtin function UNSPEC
387 codes. Use them in the SIMD patterns.
388
389 2015-12-21 Sujoy Saraswati <sujoy.saraswati@hpe.com>
390
391 PR tree-optimization/61441
392 * real.c (do_add): Make resulting NaN value to be qNaN.
393 (do_multiply, do_divide, do_fix_trunc): Same.
394 (real_arithmetic, real_ldexp, real_convert): Same.
395 (real_isinteger): Updated comment stating it returns false for sNaN.
396
397 2015-12-20 Jeff Law <law@redhat.com>
398
399 PR tree-optimization/64910
400 * config/i386/i386.md (testqi_ext_3): Allow HImode.
401
402 2015-12-20 Andrew Pinsi <apinski@cavium.com>
403
404 * config/aarch64/atomics.md
405 (aarch64_atomic_<atomic_optab>_fetch<mode>_lse): Add early clobber
406 to the scratch register.
407
408 2015-12-20 Sujoy Saraswati <sujoy.saraswati@hpe.com>
409
410 PR tree-optimization/61441
411 * match.pd (f(x) -> x): Removed flag_errno_math check for RINT.
412
413 2015-12-20 Sujoy Saraswati <sujoy.saraswati@hpe.com>
414
415 PR tree-optimization/61441
416 * fold-const.c (const_binop): Use REAL_VALUE_ISSIGNALING_NAN instead
417 of REAL_VALUE_ISNAN to avoid the operation for sNaN operands.
418 * simplify-rtx.c (simplify_const_binary_operation): Same.
419
420 2015-12-19 Jan Hubicka <hubicka@ucw.cz>
421
422 PR tree-optimization/65337
423 * tree-ssa-dce.c (bb_postorder): New static var.
424 (mark_stmt_necessary): Add guard for setting bb_contains_live_stmts.
425 (forward_edge_to_pdom): Remove.
426 (remove_dead_stmt): Instead of redirecting edges only keep an edge
427 on a path to nearest live BB.
428 (eliminate_unnecessary_stmts): Free bb_postorder.
429 * cfganal.c (dfs_find_deadend): Add START_POINTES.
430 * cfganal.h (inverted_post_order_compute): Update prototype.
431
432 2015-12-19 Eric Botcazou <ebotcazou@adacore.com>
433
434 PR rtl-optimization/68910
435 * emit-rtl.c (set_unique_reg_note) <REG_EQUAL>: Add bypass for USEs.
436 * config/sparc/sparc.md (anddi3): Enable only in 64-bit mode.
437 (iordi3): Likewise.
438 (xordi3): Likewise.
439 (one_cmpldi2): Likewise.
440 (*anddi3_sp32): Delete.
441 (*and_not_di_sp32): Likewise.
442 (*iordi3_sp32): Likewise.
443 (*or_not_di_sp32): Likewise.
444 (*xordi3_sp32): Likewise.
445 (*xor_not_di_sp32): Likewise.
446 (32-bit DImode logical operations splitter): Likewise.
447 (*one_cmpldi2_sp32): Likewise.
448
449 2015-12-19 Andrew Burgess <andrew.burgess@embecosm.com>
450
451 * config/arc/arc.md (*storeqi_update): Use 'any_mem_operand' and
452 fix RTL pattern to include the plus.
453 (*storehi_update): Likewise.
454 (*storesi_update): Likewise.
455 (*storesf_update): Likewise.
456 * config/arc/predicates.md (store_update_operand): Delete.
457
458 2015-12-19 Andrew Burgess <andrew.burgess@embecosm.com>
459
460 * config/arc/arc.md (*loadqi_update): Use new 'any_mem_operand'
461 and fix RTL pattern to include the plus.
462 (*load_zeroextendqisi_update): Likewise.
463 (*load_signextendqisi_update): Likewise.
464 (*loadhi_update): Likewise.
465 (*load_zeroextendhisi_update): Likewise.
466 (*load_signextendhisi_update): Likewise.
467 (*loadsi_update): Likewise.
468 (*loadsf_update): Likewise.
469 * config/arc/predicates.md (load_update_operand): Delete.
470 (any_mem_operand): New predicate.
471
472 2015-12-19 Sujoy Saraswati <sujoy.saraswati@hpe.com>
473
474 PR tree-optimization/61441
475 * real.c (real_issignaling_nan): New.
476 * real.h (real_issignaling_nan, REAL_VALUE_ISSIGNALING_NAN): New.
477
478 2015-13-18 John David Anglin <danglin@gcc.gnu.org>
479
480 PR target/68729
481 * config/pa/pa.c (pa_emit_move_sequence): Reorganize handling of
482 floating-point reloads. Only reload operands that are not valid
483 floating-point memory operands.
484
485 2015-12-18 Jakub Jelinek <jakub@redhat.com>
486
487 PR debug/68860
488 * ipa-split.c (split_function): Only perform caller side
489 modifications for decl_debug_args here.
490 * cgraph.c: Include gimplify.h.
491 (cgraph_edge::redirect_call_stmt_to_callee): Add caller side
492 debug stmts for decl_debug_args. Spelling fix in a comment.
493 * tree-inline.c (tree_function_versioning): Populate decl_debug_args
494 for args_to_skip arguments and add callee side debug stmts.
495 Formatting fixes. Avoid shadowing i variable.
496
497 2015-12-18 Nathan Sidwell <nathan@acm.org>
498
499 * config/nvptx/nvptx.c (nvptx_maybe_convert_symbolic_operand):
500 Remove UNSPEC_TO_GENERIC generation.
501 (nvptx_output_mov_insn): Generate cvta for symbolic src.
502 * config/nvptx/nvptx.md (nvptx_register_operand): Allow hard reg.
503 (nvptx_reg_or_mem_operand): Likewise.
504 (nvptx_nonmemory_operand): Likewise.
505 (nvptx_general_operand): Delete.
506 (*mov<mode>_insn): Use nonimmediate_operand, permit hardregs.
507 (oacc_fork, oacc_join): Use general_operand.
508
509 2015-12-18 Daniel Kahn Gillmor <dkg@fifthhorseman.net>
510
511 * dwarf2out.c (gen_producer_string): Ignore -fdebug-prefix-map.
512
513 2015-12-18 Nathan Sidwell <nathan@acm.org>
514
515 * config/nvptx/nvptx.c (nvptx_option_override): Emit sorry for
516 stabs debug.
517 (nvptx_assemble_undefined_decl): Use nvptx_assemble_decl_end.
518
519 2015-12-18 Jeff Law <law@redhat.com>
520
521 PR rtl-optimization/49847
522 * cse.c (record_jump_equiv): Handle fold_rtx returning NULL_RTX.
523
524 2015-12-18 Nathan Sidwell <nathan@acm.org>
525
526 * config/nvptx/nvptx.c (worker_bcast_name, worker_red_name): Delete.
527 (nvptx_option_override): Adjust worker symbol creation.
528 (nvptx_gen_wcast): Wrap worker address in UNSPEC_TO_GENERIC.
529 (write_worker_buffer): New.
530 (nvptx_file_end): Call write_worker_buffer.
531 * config/nvptx/nvptx.md (UNSPEC_SHARED_DATA): Delete.
532 (worker_load<mode>, worker_store<mode>): Delete.
533
534 2015-12-18 Richard Biener <rguenther@suse.de>
535
536 PR testsuite/68776
537 * tree-vect-patterns.c (struct vect_recog_func): New.
538 (vect_vect_recog_func_ptrs): Make an array of function name pairs.
539 (vect_pattern_recog_1): Print the recognized pattern name. Return
540 true if a pattern was recognized.
541 (vect_pattern_recog): Adjust. Stop iterating over pattern recognition
542 functions on a stmt if a pattern was recognized.
543
544 2015-12-18 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
545
546 * ira.c (ira_setup_alts): Move the scan for commutative modifier
547 to the first loop to make it work even with disabled alternatives.
548
549 2015-12-18 Dominik Vogt <vogt@linux.vnet.ibm.com>
550
551 * config/s390/s390.c (s390_init_frame_layout): Try r4 to r2 for the
552 literal pool pointer.
553
554 2015-12-18 Yuri Rumyantsev <ysrumyan@gmail.com>
555
556 PR tree-optimization/68906
557 * tree-ssa-loop-unswitch.c (tree_unswitch_outer_loop): Add check
558 that an exit block belongs to LOOP.
559
560 2015-12-18 Ilya Enkovich <enkovich.gnu@gmail.com>
561
562 PR tree-optimization/68956
563 * tree-vect-stmts.c (vect_init_vector): Fix constants
564 used for boolean vectors.
565
566 2015-12-18 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
567
568 PR rtl-optimization/68796
569 * config/aarch64/aarch64.md (*and<mode>3nr_compare0_zextract):
570 New pattern.
571 * config/aarch64/aarch64.c (aarch64_select_cc_mode): Handle
572 ZERO_EXTRACT comparison with zero.
573 (aarch64_mask_from_zextract_ops): New function.
574 * config/aarch64/aarch64-protos.h (aarch64_mask_from_zextract_ops):
575 New prototype.
576
577 2015-12-18 Robin Dapp <rdapp@linux.vnet.ibm.com>
578
579 * config/s390/predicates.md: Change and rename
580 constm1_operand to all_ones_operand
581 * config/s390/s390.c (s390_expand_vcond): Use all_ones_operand
582 * config/s390/vector.md: Likewise
583
584 2015-12-18 Robin Dapp <rdapp@linux.vnet.ibm.com>
585
586 * config/s390/s390.c (s390_expand_vcond): Convert vector
587 conditional into shift.
588 * config/s390/vector.md: Change operand predicate.
589
590 2015-12-18 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
591
592 * config/s390/driver-native.c (s390_host_detect_local_cpu): Pick
593 z900 -march -mtune even on g5 and g6 machines.
594 * config/s390/s390.c (s390_option_override_internal): New argument
595 to distingiush between options and target attributes. Emit
596 deprecation warning for g5 and g6 arch/tune options.
597 (s390_option_override): Set new s390_option_override_internal
598 argument to true.
599 (s390_valid_target_attribute_tree): Set new
600 s390_option_override_internal argument to false.
601 * config/s390/s390.h: Default to z900 in the driver.
602 * doc/invoke.texi: Document the deprecation of g5 and g6.
603
604 2015-12-18 Andris Pavenis <andris.pavenis@iki.fi>
605
606 * config/i386/djgpp-stdint.h: update typedefs for integer types
607
608 2015-12-17 Jeff Law <law@redhat.com>
609
610 * passes.def: Put the split-paths pass immediately before the
611 tracer pass.
612
613 * doc/invoke.texi (-O2 options): Remove -fsplit-paths.
614 (-O3 options): Add -fsplit-paths.
615 * gimple-ssa-split-paths.c: Include predict.h
616 (split_paths): Only split paths in a loop that should be
617 optimized for speed.
618 * opts.c (default_options_table): Move -fsplit-paths from -O2 to
619 -O3.
620
621 2015-12-17 Nathan Sidwell <nathan@acm.org>
622
623 * ipa-icf.c (sem_item_optimizer::merge): Don't pick 'main' as the
624 source function.
625
626 2015-12-17 Sebastian Pop <s.pop@samsung.com>
627
628 * Makefile.in: Replace ISL with isl.
629 * common.opt: Same.
630 * configure: Regenerate.
631 * configure.ac: Same.
632 * doc/install.texi: Same.
633 * doc/invoke.texi: Same.
634 * graphite-isl-ast-to-gimple.c: Same.
635 * graphite-scop-detection.c: Same.
636 * graphite-sese-to-poly.c: Same.
637 * graphite.c: Same.
638 * graphite.h: Same.
639 * params.def: Same.
640 * testsuite/gcc.dg/graphite/fuse-1.c: Same.
641 * testsuite/gcc.dg/graphite/fuse-2.c: Same.
642 * testsuite/gcc.dg/graphite/interchange-1.c: Same.
643 * testsuite/gcc.dg/graphite/pr35356-1.c: Same.
644 * toplev.c: Same.
645
646 2015-12-17 Sebastian Pop <s.pop@samsung.com>
647
648 * graphite-dependences.c: Move all isl include files to...
649 * graphite-isl-ast-to-gimple.c: Same.
650 * graphite-optimize-isl.c: Same.
651 * graphite-poly.c: Same.
652 * graphite-scop-detection.c: Same.
653 * graphite.c: Same.
654 * graphite.h: ... here.
655
656 2015-12-17 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
657
658 * config/avr/avr.h (MOVE_MAX): Set value to 1.
659 (MOVE_MAX_PIECES): Define.
660 (MOVE_RATIO): Define.
661 * config/avr/avr.c (TARGET_USE_BY_PIECES_INFRASTRUCTURE_P):
662 Provide target hook.
663 (avr_use_by_pieces_infrastructure_p): New function.
664
665 2015-12-17 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
666
667 * config.gcc: mark *-interix* as obsolete.
668
669 2015-12-17 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
670
671 * config.gcc: Mark openbsd 2.0 and 3.X as obsolete.
672
673 2015-12-17 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
674
675 * config.gcc: Mark knetbsd targets as obsolete.
676
677 2015-12-17 Nathan Sidwell <nathan@acm.org>
678
679 * config/nvptx/nvptx.h (NVPTX_RETURN_REGNUM, FRAME_POINTER_REGNUM,
680 ARG_POINTER_REGNUM, STATIC_CHAIN_REGNUM): Renumber.
681 (REGISTER_NAMES): Update and rename.
682 (FIXED_REGISTERS, CALL_USED_REGISTERS): Update.
683 (enum_reg_class, REG_CLASS_NAMES, REG_CLASS_CONTENTS): Reformat.
684
685 2015-12-17 Richard Biener <rguenther@suse.de>
686
687 PR tree-optimization/68946
688 * tree-vect-slp.c (vect_slp_analyze_node_operations): Push
689 SLP def type to stmt operands one stmt at a time.
690
691 2015-12-17 Pierre-Marie de Rodat <derodat@adacore.com>
692
693 * langhooks.h (struct lang_hooks_for_types): New get_bias_field.
694 * langhooks-def.h (LANG_HOOKS_GET_TYPE_BIAS): New.
695 (LANG_HOOKS_FOR_TYPES_INITIALIZER): Initialize the
696 get_bias_field.
697 * dwarf2out.c
698 (base_type_die): In non-strict DWARF mode, invoke the
699 get_type_bias language hook for INTEGER_TYPE nodes. If it
700 returns a bias, emit an attribute for it.
701 (subrange_type_die): Change signature to handle bias. If
702 non-strict DWARF mode, emit an attribute for it, if one passed.
703 (modified_type_die): For subrange types, invoke the
704 get_type_bias langage hook and pass the bias to
705 subrange_type_die.
706
707 2015-12-17 Pierre-Marie de Rodat <derodat@adacore.com>
708
709 * dwarf2out.h (DWARF2OUT_ARRAY_DESCR_INFO_MAX_DIMEN): New macro.
710 (struct array_descr_info): Use it for the dimensions array's
711 size.
712 * dwarf2out.c (gen_type_die_with_usage): Check that the array
713 descr. language hook does not return an array with more
714 dimensions that it should.
715
716 2015-12-17 Pierre-Marie de Rodat <derodat@adacore.com>
717
718 * langhooks.h (struct lang_hooks_for_types): Add a
719 get_fixed_point_type_info field.
720 * langhooks-def.h (LANG_HOOKS_GET_FIXED_POINT_TYPE_INFO): New
721 macro.
722 (LANG_HOOKS_FOR_TYPES_INITIALIZER): Initialize the
723 get_fixed_point_type_info field.
724 * dwarf2out.h (enum fixed_point_scale_factor): New.
725 (struct fixed_point_type_info): New.
726 * dwarf2out.c (base_type_die): In DWARFv3 or non-strict DWARF
727 mode, get fixed-point type information using the debugging hook
728 and describe it in DWARF, if any.
729
730 2015-12-17 Pierre-Marie de Rodat <derodat@adacore.com>
731
732 * langhooks.h (struct lang_hooks_for_types): Add a
733 get_debug_type field.
734 * langhooks-def.h (LANG_HOOKS_GET_DEBUG_TYPE): New macro.
735 (LANG_HOOKS_FOR_TYPES_INITIALIZER): Initialize the
736 get_debug_type field.
737 * dwarf2out.h (struct array_descr_info): Add an array-wide
738 stride field.
739 * dwarf2out.c (modified_type_die): Invoke the get_debug_type
740 language hook, process its result instead, if any.
741 (gen_descr_array_type_die): Add array-wide stride processing.
742
743 2015-12-17 Pierre-Marie de Rodat <derodat@adacore.com>
744
745 * debug.h (struct gcc_debug_hooks): Add a new size_function
746 hook.
747 * debug.c (do_nothing_debug_hooks): Set the size_function field
748 to no-op.
749 * dbxout.c (dbx_debug_hooks, xcoff_debug_hooks): Likewise.
750 * sdbout.c (sdb_debug_hooks): Likewise.
751 * vmsdbgout.c (vmsdbg_debug_hooks): Likewise.
752 * stor-layout.c (finalize_size_functions): Let the debug info
753 back-end know about the implementation of size functions.
754 * dwarf2out.h (dw_discr_list_ref): New typedef.
755 (enum dw_val_class): Add value classes for discriminant values
756 and discriminant lists.
757 (struct dw_discr_value): New structure.
758 (struct dw_val_node): Add discriminant values and discriminant
759 lists to the union.
760 (struct dw_loc_descr_node): Add frame_offset_rel and
761 dw_loc_frame_offset (only for checking) fields to handle DWARF
762 procedures generation.
763 (struct dw_discr_list_node): New structure.
764 * dwarf2out.c (dwarf2out_size_function): New.
765 (dwarf2_debug_hooks): Set the size_function field to
766 dwarf2out_size_function.
767 (dwarf2_lineno_debug_hooks): Set the size_function field to
768 no-op.
769 (new_loc_descr): Initialize the
770 dw_loc_frame_offset field.
771 (dwarf_proc_stack_usage_map): New.
772 (dw_val_equal_p): Handle discriminants.
773 (size_of_discr_value): New.
774 (size_of_discr_list): New.
775 (size_of_die): Handle discriminants.
776 (add_loc_descr_to_each): New.
777 (add_loc_list): New.
778 (print_discr_value): New.
779 (print_dw_val): Handle discriminants.
780 (value_format): Handle discriminants.
781 (output_discr_value): New.
782 (output_die): Handle discriminants.
783 (output_loc_operands): Handle DW_OP_call2 and DW_OP_call4.
784 (uint_loc_descriptor): New.
785 (uint_comparison_loc_list): New.
786 (loc_list_from_uint_comparison): New.
787 (add_discr_value): New.
788 (add_discr_list): New.
789 (AT_discr_list): New.
790 (loc_descr_to_next_no_op): New.
791 (free_loc_descr): New.
792 (loc_descr_without_nops): New.
793 (struct loc_descr_context): Add a dpi field.
794 (struct dwarf_procedure_info): New helper structure.
795 (new_dwarf_proc_die): New.
796 (is_handled_procedure_type): New.
797 (resolve_args_picking_1): New.
798 (resolve_args_picking): New.
799 (function_to_dwarf_procedure): New.
800 (copy_dwarf_procedure): New.
801 (copy_dwarf_procs_ref_in_attrs): New.
802 (copy_dwarf_procs_ref_in_dies): New.
803 (break_out_comdat_types): Copy DWARF procedures along with the
804 types that reference them.
805 (loc_list_from_tree): Rename into loc_list_from_tree_1. Handle
806 CALL_EXPR in the cases suitable for DWARF procedures. Handle
807 for PARM_DECL when generating a location description for a DWARF
808 procedure. Handle big unsigned INTEGER_CST nodes. Handle
809 NON_LVALUE_EXPR, EXACT_DIV_EXPR and all unsigned comparison
810 operators. Add a wrapper for loc_list_from_tree that strips
811 DW_OP_nop operations from the result.
812 (type_byte_size): New.
813 (struct vlr_context): New helper structure.
814 (field_byte_offset): Change signature to return either a
815 constant offset or a location description for dynamic ones.
816 Handle dynamic byte offsets with constant bit offsets and handle
817 fields in variant parts.
818 (add_data_member_location): Change signature to handle dynamic
819 member offsets and fields in variant parts. Update call to
820 field_byte_offset. Handle location lists. Emit a variable data
821 member location only when -fgnat-encodings=minimal.
822 (add_bound_info): Emit self-referential bounds only when
823 -fgnat-encodings=minimal.
824 (add_byte_size_attribute): Use type_byte_size in order to handle
825 dynamic type sizes. Emit variable byte size only when
826 -fgnat-encodings=minimal and when the target DWARF version
827 allows them.
828 (add_bit_offset_attribute): Change signature to handle
829 variable-length records. Update call to field_byte_offset.
830 (gen_descr_array_type_die): Update call to gen_field_die.
831 Update loc_descr_context literal.
832 (gen_type_die_for_member): Likewise.
833 (gen_subprogram_die): Update calls to get_decl_die.
834 (gen_field_die): Change signature to handle variable-length
835 records. Update calls to add_bit_offset_attribute and
836 add_data_member_location_attribute.
837 (gen_inheritance_die): Update call to
838 add_data_member_location_attribute.
839 (gen_decl_die): Change signature to handle variable-length
840 records. Update call to gen_field_die.
841 (gen_inheritance_die): Change signature to handle
842 variable-length records. Update call to
843 add_data_member_location_attribute.
844 (is_variant_part): New.
845 (analyze_discr_in_predicate): New.
846 (get_discr_value): New.
847 (analyze_variants_discr): New.
848 (gen_variant_part): New.
849 (gen_member_die): Update calls to gen_decl_die. Call instead
850 gen_variant_part for variant parts.
851 (gen_type_die_with_usage): Update calls to gen_decl_die.
852 (process_scope_var): Likewise.
853 (force_decl_die): Likewise.
854 (declare_in_namespace): Likewise.
855 (dwarf2out_decl): Likewise.
856 (prune_unused_types_walk_loc_descr): New.
857 (prune_unused_types_walk_attribs): Mark DIEs referenced by
858 location descriptions and loc. descr. lists.
859 (prune_unused_types_walk): Don't mark DWARF procedures by
860 default. Mark variant parts since nothing is supposed to
861 reference them.
862 (dwarf2out_init): Allocate dwarf_proc_stack_usage_map.
863 (dwarf2out_c_finalize): Deallocate and reset
864 dwarf_proc_stack_usage_map.
865
866 2015-12-17 Pierre-Marie de Rodat <derodat@adacore.com>
867
868 * common.opt (gnat_encodings): New variable
869 (dwarf_gnat_encodings): New enum type.
870 (fgnat_encodings): New option.
871 * flag-types.h (enum dwarf_gnat_encodings): New.
872
873 2015-12-17 Christian Bruel <christian.bruel@st.com>
874
875 * tree.h (TYPE_MODE_RAW): New macro.
876 * tree-streamer-out.c (pack_ts_type_common_value_fields):
877 Replace TYPE_MODE by TYPE_MODE_RAW.
878
879 2015-12-17 Jakub Jelinek <jakub@redhat.com>
880
881 PR tree-optimization/68835
882 * tree.c (get_int_cst_ext_nunits): Return
883 cst.get_precision () / HOST_BITS_PER_WIDE_INT + 1
884 for all unsigned wi::neg_p (cst) constants.
885 (build_new_int_cst): If cst.get_precision is not a multiple
886 of HOST_BITS_PER_WIDE_INT, zero extend -1 to the precision
887 % HOST_BITS_PER_WIDE_INT.
888
889 2015-12-17 Richard Biener <rguenther@suse.de>
890
891 PR tree-optimization/68951
892 * tree-vect-data-refs.c (vect_peeling_hash_get_lowest_cost):
893 Ignore strided non-group accesses.
894
895 2015-12-17 Andrew Burgess <andrew.burgess@embecosm.com>
896
897 * config/arc/arc.c (arc_loop_hazard): Don't convert the jump label
898 rtx to an rtx_insn until we confirm it's not a return rtx.
899
900 2015-12-17 Richard Biener <rguenther@suse.de>
901
902 * gimple-ssa.h (struct gimple_df): Remove modified_noreturn_calls
903 field.
904 * tree-ssa.c (delete_tree_ssa): Do not zero it.
905
906 2015-12-17 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
907
908 PR target/67973
909 * configure.ac (gcc_cv_as_stabs_directive): New test.
910 * configure: Regenerate.
911 * config.in: Regenerate.
912 * config/darwin.h (DBX_DEBUGGING_INFO): Wrap in
913 HAVE_AS_STABS_DIRECTIVE.
914 (PREFERRED_DEBUGGING_TYPE): Likewise.
915 * config/i386/darwin.h (PREFERRED_DEBUGGING_TYPE): Only include
916 DBX_DEBUG if HAVE_AS_STABS_DIRECTIVE.
917
918 * doc/sourcebuild.texi (Effective-Target Keywords, Environment
919 attributes): Document stabs.
920
921 2015-12-16 Martin Sebor <msebor@redhat.com>
922
923 PR c/68868
924 * ginclude/stdatomic.h (atomic_init): Use atomic_store instead
925 of plain assignment.
926
927 2015-12-15 Michael Meissner <meissner@linux.vnet.ibm.com>
928
929 PR target/68805
930 * config/rs6000/rs6000.c (rs6000_gen_le_vsx_permute): Use ROTATE
931 instead of VEC_SELECT for TImode.
932
933 * config/rs6000/vsx.md (VSX_LE): Move TImode from VSX_LE to
934 VSX_LE_128, so that we use ROTATE to swap the 64-bit words instead
935 of using VEC_SELECT.
936 (VSX_LE_128): Likewise.
937 (define_peephole2): Add peephole to eliminate double xxpermdi when
938 copying TImode.
939
940 2015-12-16 John David Anglin <danglin@gcc.gnu.org>
941
942 PR target/68779
943 * config/pa/pa.md (atomic_loaddi): Honor -mdisable-fpregs.
944 (atomic_loaddi_1): Likewise.
945 (atomic_storedi): Likewise.
946 (atomic_storedi_1): Likewise.
947 (atomic_loaddf): Likewise.
948 (atomic_loaddf_1): Likewise.
949 (atomic_storedf): Likewise.
950 (atomic_storedf_1): Likewise.
951 Move all atomic patterns to end of file.
952
953 2015-12-16 Abderrazek Zaafrani <a.zaafrani@samsung.com>
954
955 * graphite-isl-ast-to-gimple.c: Include isl/schedule_node.h.
956 (set_separate_option): New.
957 (translate_isl_ast_to_gimple::set_options_for_schedule_tree): New.
958 (translate_isl_ast_to_gimple::scop_to_isl_ast): Use scop->schedule.
959 * graphite-optimize-isl.c (optimize_isl): Set scop->schedule, do not
960 free the computed schedule tree.
961 * graphite-poly.c (new_scop): Initialize scop->schedule.
962 * graphite.h: Include isl/schedule.h.
963 (struct scop): Add field schedule.
964
965 2015-12-16 Nathan Sidwell <nathan@acm.org>
966
967 * ipa-visibility.c (can_replace_by_local_alias): Make static,
968 check ASM_OUTPUT_DEF.
969 (can_replace_by_local_alias_in_vtable): Make static.
970 (function_and_variable_visibility): Reformat overlong comment.
971
972 2015-12-16 Jeff Law <law@redhat.com>
973
974 * ree.c (add_removable_extension): Use reg_overlap_mentioned_p
975 rather than testing hard register #s.
976
977 2015-12-16 Nathan Sidwell <nathan@acm.org>
978
979 * config/nvptx/nvptx.h (OUTGOING_STATIC_CHAIN_REGNUM): Remove.
980 (REGISTER_NAMES): Adjust.
981 * config/nvptx/nvptx.c (nvptx_pass_by_reference): Avoid long line.
982 (nvptx_static_hain): Delete.
983 (write_arg_mode): Don't emit initializer if argno < 0.
984 (write_arg_type): Fix whitespace.
985 (init_frame): Initialize reg to zero if frame is zero-sized.
986 (nvptx_declare_function_name): Use write_arg_type to emit chain
987 decl.
988 (nvptx_output_call_insn): Adjust static chain emission.
989 (nvptx_goacc_reduction): Make static.
990 (TARGET_STATIC_CHAIN): Don't override.
991
992 2015-12-16 Aditya Kumar <aditya.k7@samsung.com>
993
994 * graphite-dependences.c (scop_get_dependences): Use local pointers.
995 * graphite-isl-ast-to-gimple.c
996 (translate_isl_ast_to_gimple::scop_to_isl_ast): Use scop->dependence.
997 * graphite-optimize-isl.c (optimize_isl): Same.
998 * graphite-poly.c (new_scop): Remove initialization of removed
999 members.
1000 (free_scop): Same.
1001 * graphite.h (struct scop): Remove individial dependence pointers and
1002 add a scop::dependence to contain all the dependence.
1003
1004 2015-12-16 Aditya Kumar <aditya.k7@samsung.com>
1005
1006 * graphite-sese-to-poly.c (build_poly_sr): Use refs.
1007
1008 2015-12-16 Aditya Kumar <aditya.k7@samsung.com>
1009 Sebastian Pop <s.pop@samsung.com>
1010
1011 * config.in: Regenerate.
1012 * configure: Regenerate.
1013 * configure.ac: Remove checks for functions that exist in isl 0.13
1014 or later.
1015 * graphite-isl-ast-to-gimple.c: Remove #ifdefs and code for isl 0.12.
1016 * graphite-optimize-isl.c: Same.
1017 * graphite-poly.c: Same.
1018 * graphite-sese-to-poly.c: Same.
1019 * graphite.h: Add comment for isl 0.14.
1020 * toplev.c (print_version): Print isl version.
1021
1022 2015-12-10 Jan Hubicka <hubicka@ucw.cz>
1023
1024 * ipa-cp.c (ipa_get_indirect_edge_target_1): Use can_refer; do not
1025 speculate to impossible targets.
1026 * ipa-prop.c (try_make_edge_direct_virtual_call): Likewise.
1027
1028 2015-12-16 Aditya Kumar <aditya.k7@samsung.com>
1029 Sebastian Pop <s.pop@samsung.com>
1030
1031 * graphite-dependences.c (scop_get_reads): Add more dumps.
1032 (scop_get_must_writes): Same.
1033 (scop_get_may_writes): Same.
1034 * graphite-poly.c (new_poly_dr): Same.
1035 * graphite-scop-detection.c (build_cross_bb_scalars_def): Same.
1036 (gather_bbs::before_dom_children): Same.
1037
1038 2015-12-16 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
1039
1040 * config/aarch64/aarch64.c (aarch64_extend_bitfield_pattern_p):
1041 New function.
1042 (aarch64_rtx_costs, ZERO_EXTEND, SIGN_EXTEND cases): Use the above
1043 to handle extend+shift rtxes.
1044
1045 2015-12-16 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
1046
1047 PR target/68696
1048 * config/aarch64/aarch64-simd.md (*aarch64_simd_bsl<mode>_alt):
1049 New pattern.
1050 (aarch64_simd_bsl<mode>_internal): Update comment to reflect
1051 the above.
1052
1053 2015-12-16 Richard Biener <rguenther@suse.de>
1054
1055 PR tree-optimization/68870
1056 * tree-cfgcleanup.c (cleanup_control_expr_graph): Add first_p
1057 parameter, if set only perform trivial constant folding.
1058 Queue other blocks with conditions for later processing.
1059 (cleanup_control_flow_bb): Add first_p parameter and pass it through.
1060 (cleanup_tree_cfg_1): Pass true for the first iteration
1061 cleanup_control_expr_graph.
1062
1063 2015-12-16 Nathan Sidwell <nathan@acm.org>
1064
1065 * config/nvptx/nvptx-protos.h (nvptx_hard_regno_mode_ok): Delete.
1066 * config/nvptx/nvptx.h (struct machine_function):
1067 Reimplement. Adjust all users.
1068 * config/nvptx/nvptx.c (nvptx_declare_function_name): Move stack
1069 and frame array generation earlier.
1070 (nvptx_call_args): Reimplement.
1071 (nvptx_expand_call): Adjust.
1072 (nvptx_hard_reno_mode_ok): Delete.
1073 (nvptx_reorg): Revert scan of hard regs.
1074
1075 2015-12-16 Tom de Vries <tom@codesourcery.com>
1076
1077 * opts.c (default_options_optimization): Set fipa-pta on by
1078 default for fopenacc.
1079 * passes.def: Move kernels pass group to pass_ipa_oacc.
1080 * tree-pass.h (make_pass_oacc_kernels2): Remove.
1081 (make_pass_ipa_oacc, make_pass_ipa_oacc_kernels): Declare.
1082 * tree-ssa-loop.c (pass_oacc_kernels2, make_pass_oacc_kernels2):
1083 Remove.
1084 (pass_ipa_oacc, pass_ipa_oacc_kernels): New pass.
1085 (make_pass_ipa_oacc, make_pass_ipa_oacc_kernels): New function.
1086 * tree-ssa-structalias.c (pass_ipa_pta::clone): New function.
1087
1088 2015-12-16 Richard Biener <rguenther@suse.de>
1089
1090 PR tree-optimization/68861
1091 * tree-vect-slp.c (vect_build_slp_tree): Properly handle
1092 duplicate stmts when applying swapping to stmts.
1093
1094 2015-12-16 Kirill Yukhin <kirill.yukhin@intel.com>
1095
1096 * config/i386/i386-c.c (ix86_target_macros_internal): Remove
1097 duplicate check (__CLZERO__).
1098
1099 2015-12-16 Matthew Wahab <matthew.wahab@arm.com>
1100
1101 * config/arm/arm_neon.h (vqrdmlahq_lane_s16): New.
1102 (vqrdmlahq_lane_s32): New.
1103 (vqrdmlah_lane_s16): New.
1104 (vqrdmlah_lane_s32): New.
1105 (vqrdmlshq_lane_s16): New.
1106 (vqrdmlshq_lane_s32): New.
1107 (vqrdmlsh_lane_s16): New.
1108 (vqrdmlsh_lane_s32): New.
1109 * config/arm/arm_neon_builtins.def: Add "vqrdmlah_lane" and
1110 "vqrdmlsh_lane".
1111
1112 2015-12-16 Matthew Wahab <matthew.wahab@arm.com>
1113
1114 * config/arm/arm_neon.h (vqrdmlah_s16, vqrdmlah_s32): New.
1115 (vqrdmlahq_s16, vqrdmlahq_s32): New.
1116 (vqrdmlsh_s16, vqrdmlsh_s32): New.
1117 (vqrdmlahq_s16, vqrdmlshq_s32): New.
1118 * config/arm/arm_neon_builtins.def: Add "vqrdmlah" and "vqrdmlsh".
1119
1120 2015-12-16 Matthew Wahab <matthew.wahab@arm.com>
1121
1122 * doc/sourcebuild.texi (ARM-specific attributes): Add
1123 "arm_v8_1a_neon_ok" and "arm_v8_1a_neon_hw".
1124
1125 2015-12-16 Matthew Wahab <matthew.wahab@arm.com>
1126
1127 * config/arm/arm-c.c (arm_cpu_builtins): Define
1128 __ARM_FEATURE_QRDMX. Clean up some trailing whitespace.
1129
1130 2015-12-16 Matthew Wahab <matthew.wahab@arm.com>
1131
1132 * config/arm/iterators.md (VQRDMLH_AS): New.
1133 (neon_rdma_as): New.
1134 * config/arm/neon.md
1135 (neon_vqrdml<VQRDMLH_AS:neon_rdma_as>h<mode>): New.
1136 (neon_vqrdml<VQRDMLH_AS:neon_rdma_as>h_lane<mode>): New.
1137 * config/arm/unspecs.md (UNSPEC_VQRDMLAH): New.
1138 (UNSPEC_VQRDMLSH): New.
1139
1140 2015-12-16 Matthew Wahab <matthew.wahab@arm.com>
1141
1142 * config/arm/t-aprofile: Make "armv8.1-a" and "armv8.1-a+crc"
1143 matches for "armv8-a".
1144
1145 2015-12-16 Matthew Wahab <matthew.wahab@arm.com>
1146
1147 * config/arm/arm-arches.def: Add "armv8.1-a" and "armv8.1-a+crc".
1148 * config/arm/arm-protos.h (FL2_ARCH8_1): New.
1149 (FL2_FOR_ARCH8_1A): New.
1150 * config/arm/arm-tables.opt: Regenerate.
1151 * config/arm/arm.c (arm_arch8_1): New.
1152 (arm_option_override): Set arm_arch8_1.
1153 * config/arm/arm.h (TARGET_NEON_RDMA): New.
1154 (arm_arch8_1): Declare.
1155 * doc/invoke.texi (ARM Options, -march): Add "armv8.1-a" and
1156 "armv8.1-a+crc".
1157 (ARM Options, -mfpu): Fix a typo.
1158
1159 2015-12-16 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
1160
1161 PR target/68648
1162 * config/arm/arm.md (*andsi_iorsi3_notsi): Try to simplify
1163 the complement of operands[3] during splitting.
1164
1165 2015-12-16 Richard Biener <rguenther@suse.de>
1166
1167 PR tree-optimization/68892
1168 * tree-vect-slp.c (vect_analyze_slp_cost_1): Properly compute
1169 cost for permuted loads.
1170
1171 2015-12-16 Jakub Jelinek <jakub@redhat.com>
1172
1173 PR rtl-optimization/65980
1174 * jump.c (rtx_renumbered_equal_p) <case LABEL_REF>: Use
1175 next_nonnote_nondebug_insn instead of next_real_insn and
1176 skip over CODE_LABELs too.
1177
1178 2015-12-10 Jan Hubicka <hubicka@ucw.cz>
1179
1180 * symtab.c (symtab_node::fixup_same_cpp_alias_visibility):
1181 Do not copy DECL_VIRTUAL_P.
1182
1183 2015-12-15 Martin Sebor <msebor@redhat.com>
1184
1185 PR c++/42121
1186 * tree-chkp.c (chkp_find_bound_slots_1): Handle flexible array
1187 members.
1188 * tree.c (type_contains_placeholder_1): Avoid assuming type has
1189 a non-null domain or an upper bound to handle flexible array
1190 members.
1191 * varasm.c (output_constructor_regular_field): Same.
1192 (output_constructor): Set min_index to integer_zero_node rather
1193 than null when a type has no domain to avoid crashing later.
1194
1195 2015-12-15 Nathan Sidwell <nathan@acm.org>
1196
1197 * config/nvptx/nvptx.c (write_one_arg): Rename to ...
1198 (write_arg_mode): ... here. Update callers.
1199 (write_arg): Rename to ...
1200 (write__arg_type): ... here. Update callers.
1201 (write_return_mode): New fn, broken out of ...
1202 (write_return): ... here. Rename to ...
1203 (write_return_type): ... here. Call it. Update callers.
1204 (write_fn_proto_from_insn): Use write_arg_mode and
1205 write_return_mode.
1206 (init_frame): New fn.
1207 (nvptx_declare_function_name): Call it for frame and varargs. Only
1208 emit outgoing static chain, if it's live.
1209 (nvptx_output_return): Use reg_names for return reg name.
1210 (nvptx_output_call_insn): Likewise.
1211 (nvptx_reorg): Mark unused hard regs too.
1212
1213 2015-12-15 Nathan Sidwell <nathan@acm.org>
1214
1215 * config/nvptx/nvptx.md (nvptx_register_operand): Don't accept and
1216 then reject subregs.
1217 (nvptx_reg_or_mem_operand): Likewise.
1218 (nvptx_nonmemory_operand): Likewise.
1219 (call_insn_operand): A regular predicate, check SYMBOL_REF_FUNCTION_P.
1220 (call_insn, call_value_insn): Address is not SImode.
1221 * config/nvptx/nvptx.h (FIXED_REGISTERS): Make return reg fixed.
1222 (enum reg_class, REG_CLASS_NAMES, REG_CLASS_CONTENTS): Remove
1223 RETURN_REG class.
1224 (REGNO_REG_CLASS): Alwaus ALL_REGS.
1225 (PROMOTE_MODE): QI and HI are the only smaller than SI int modes.
1226 (HARD_FRAME_POINTER_REGNUM): Delete.
1227 (REGISTER_NAMES): Move earlier.
1228 (struct nvptx_args): Remove 'off'.
1229 (INIT_CUMULATIVE_ARGS): Don't initialize 'off'.
1230 (ELIMINABLE_REGS): Remove HARD_FRAME_POINTER_REGNUM.
1231 * config/nvptx/nvptx.c (arg_promotion): Delete.
1232 (nvptx_expand_call): Remove check for funtype being an fntype.
1233
1234 2015-12-15 Jason Merrill <jason@redhat.com>
1235
1236 * hash-map.h, hash-table.h: Make copy constructors explicit.
1237
1238 2015-12-15 Ilya Verbin <ilya.verbin@intel.com>
1239
1240 * cgraphunit.c (output_in_order): Do not assemble "omp declare target
1241 link" variables in ACCEL_COMPILER.
1242 * gimplify.c (gimplify_adjust_omp_clauses): Do not remove mapping of
1243 "omp declare target link" variables.
1244 * omp-low.c (scan_sharing_clauses): Do not remove mapping of "omp
1245 declare target link" variables.
1246 (add_decls_addresses_to_decl_constructor): For "omp declare target
1247 link" variables output address of the artificial pointer instead
1248 of address of the variable. Set most significant bit of the size
1249 to mark them.
1250 (pass_data_omp_target_link): New pass_data.
1251 (pass_omp_target_link): New class.
1252 (find_link_var_op): New static function.
1253 (make_pass_omp_target_link): New function.
1254 * passes.def: Add pass_omp_target_link.
1255 * tree-pass.h (make_pass_omp_target_link): Declare.
1256 * varpool.c (symbol_table::output_variables): Do not assemble "omp
1257 declare target link" variables in ACCEL_COMPILER.
1258
1259 2015-12-15 Bernd Schmidt <bschmidt@redhat.com>
1260
1261 PR middle-end/21273
1262 * gensupport.c (collect_insn_data): Look for number of alternatives
1263 in MATCH_SCRATCH.
1264
1265 2015-12-15 Nathan Sidwell <nathan@acm.org>
1266
1267 * config/nvptx/nvptx.h (HARD_REGNO_NREGS): Reformat.
1268 (CANNOT_CHANGE_MODE_CLASS): Always return true.
1269 (HARD_REGNO_MODE_OK): Reformat.
1270 * config/nvptx/nvptx.md (define_expand mov<mode>): No
1271 RETURN_REGNUM handling here.
1272 * config/nvptx/nvptx.c (nvptx_function_value): Set ret_reg_mode
1273 here.
1274 (write_one_arg): No QI or HI mode args.
1275 (write_fn_proto_from_insn): No argument promotion here.
1276 (nvptx_output_return_insn): No return promotion here.
1277 (nvptx_output_mov_insn): No RETURN_REGNUM handling needed.
1278 (nvptx_output_call_insn): No return promotion here.
1279
1280 2015-12-15 Martin Jambor <mjambor@suse.cz>
1281
1282 PR ipa/68851
1283 * cgraph.c (collect_callers_of_node_1): Do not collect thunks.
1284 * cgraph.h (cgraph_node): Change comment of collect_callers.
1285
1286 2015-12-15 Jakub Jelinek <jakub@redhat.com>
1287
1288 PR tree-optimization/66688
1289 * tree-cfgcleanup.c (cleanup_control_flow_bb): Handle
1290 noreturn call followed only by debug stmts by removing
1291 the debug stmts and handling it the same as if the noreturn
1292 call is the last stmt.
1293
1294 2015-12-14 Steve Ellcey <sellcey@imgtec.com>
1295
1296 * config/mips/mips.c (mips_promote_function_mode): New function.
1297 (TARGET_PROMOTE_FUNCTION_MODE): Define as above function.
1298 (TARGET_PROMOTE_PROTOTYPES): Remove.
1299
1300 2015-12-14 Jason Merrill <jason@redhat.com>
1301
1302 PR c++/68309
1303 * hash-table.h: Add copy constructor.
1304 * hash-map.h: Add copy constructor.
1305
1306 2015-12-14 Tom de Vries <tom@codesourcery.com>
1307
1308 PR other/68882
1309 * gimple-pretty-print.c (dump_ssaname_info_to_file): New function.
1310 * gimple-pretty-print.h (dump_ssaname_info_to_file): Declare.
1311 * tree-cfg.c (dump_default_def): New function.
1312 (dump_function_to_file): Dump default defs for arguments, static chain,
1313 and decl-by-reference.
1314
1315 2015-12-14 Nathan Sidwell <nathan@acm.org>
1316
1317 * config/nvptx/nvptx.h (PARM_BOUNDARY): Set to 32.
1318 * config/nvptx/nvptx.c (PASS_IN_REG_P, RETURN_IN_REG_P): Delete.
1319 (pass_in_memory, promote_arg, promote_return): New.
1320 (nvptx_function_arg_boundary): Delete.
1321 (nvptx_function_value): Use promote_return.
1322 (nvptx_pass_by_reference): Use pass_in_memory.
1323 (nvptx_return_in_memory): Use pass_in_memory.
1324 (nvptx_promote_function_mode): Use promote_arg.
1325 (write_arg): Adjust arg splitting logic.
1326 (write_return): Check and clear ret_reg_mode, if needed.
1327 (write_fn_proto, nvptx_declare_function_name): Adust write_return
1328 calls.
1329 (TARGET_RUNCTION_ARG_BOUNDARY,
1330 TARGET_FUNCTION_ARG_ROUND_BOUNDARY): Don't override.
1331
1332 2015-12-14 Jakub Jelinek <jakub@redhat.com>
1333
1334 PR c/68833
1335 * common.opt (Wmissing-noreturn): Add Warning option.
1336 * opts-common.c (control_warning_option): If opt is
1337 alias_target with alias_arg, set arg to it.
1338
1339 2015-12-14 Segher Boessenkool <segher@kernel.crashing.org>
1340
1341 PR target/68865
1342 PR target/68879
1343 * config/rs6000/rs6000.md (cstore_si_as_di): Force all operands
1344 into registers.
1345
1346 2015-12-14 Richard Biener <rguenther@suse.de>
1347
1348 Revert accidentially applied
1349 PR tree-optimization/68707
1350 PR tree-optimization/67323
1351 * tree-vect-slp.c (vect_analyze_slp_instance): Drop SLP instances
1352 if they can be vectorized using load/store-lane instructions.
1353
1354 2015-12-14 Richard Biener <rguenther@suse.de>
1355
1356 PR tree-optimization/68852
1357 * tree-vectorizer.h (struct _slp_tree): Add def_type member.
1358 (SLP_TREE_DEF_TYPE): New accessor.
1359 * tree-vect-stmts.c (vect_is_simple_use): Remove BB vectorization
1360 hack.
1361 * tree-vect-slp.c (vect_create_new_slp_node): Initialize
1362 SLP_TREE_DEF_TYPE.
1363 (vect_build_slp_tree): When a node is to be built up from scalars
1364 do not push a NULL as child but instead set its def_type to
1365 vect_external_def.
1366 (vect_analyze_slp_cost_1): Check for child def-type instead
1367 of NULL.
1368 (vect_detect_hybrid_slp_stmts): Likewise.
1369 (vect_bb_slp_scalar_cost): Likewise.
1370 (vect_get_slp_defs): Likewise.
1371 (vect_slp_analyze_node_operations): Likewise. Before
1372 processing node push the children def-types to the underlying
1373 stmts vinfo and restore it afterwards.
1374 (vect_schedule_slp_instance): Likewise.
1375 (vect_slp_analyze_bb_1): Do not mark stmts not in SLP instances
1376 as not vectorizable.
1377
1378 2015-12-14 Richard Biener <rguenther@suse.de>
1379
1380 PR tree-optimization/68775
1381 * tree-vect-slp.c (vect_build_slp_tree): Make sure to apply
1382 a operand swapping even if replacing the op with scalars.
1383
1384 2015-12-14 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
1385
1386 * combine.c (change_zero_ext): Do not create a shift of zero length.
1387
1388 2015-12-14 Claudiu Zissulescu <claziss@synopsys.com>
1389
1390 * config/arc/arc.c (TARGET_NO_SPECULATION_IN_DELAY_SLOTS_P):
1391 Provide target hook.
1392 (arc_no_speculation_in_delay_slots_p): New function.
1393
1394 2015-12-14 Claudiu Zissulescu <claziss@synopsys.com>
1395 Andrew Burgess <andrew.burgess@embecosm.com>
1396
1397 * config/arc/arc.c (frame_move): Set frame related flag.
1398 (arc_save_restore): Emit epilogue related DWARF2 information.
1399 (arc_expand_epilogue): Likewise.
1400 * config/arc/arc.opt (mno-epilogue-cfi): Remove.
1401 (mepilogue-cfi): Likewise.
1402 * doc/invoke.texi: Remove -m[no]-epilogue-cfi documentation.
1403
1404 2015-12-14 Martin Jambor <mjambor@suse.cz>
1405
1406 PR ipa/66616
1407 * ipa-cp.c (propagate_constants_accross_call): Move thuk check...
1408 (call_passes_through_thunk_p): ...here.
1409 (find_more_scalar_values_for_callers_subset): Perform thunk checks
1410 like propagate_constants_accross_call does.
1411
1412 2015-12-14 Jakub Jelinek <jakub@redhat.com>
1413
1414 PR rtl-optimization/68730
1415 * cfgrtl.c (cfg_layout_finalize): Free dominators.
1416
1417 2015-12-13 Alexandre Oliva <aoliva@redhat.com>
1418
1419 PR debug/67355
1420 * var-tracking.c (reverse_op): Don't add dummy zero to reverse
1421 ops that simplify back to the original value.
1422 * alias.c (refs_newer_value_p): Cut off recursion for
1423 expressions containing the original value.
1424
1425 2015-12-13 Kazu Kirata <kazu@gcc.gnu.org>
1426
1427 * config/m68k/m68k.md (load feeding clear byte): New peephole2.
1428
1429 2015-12-13 Tom de Vries <tom@codesourcery.com>
1430
1431 * tree-ssa-structalias.c (find_func_clobbers): Handle sizes and kinds
1432 parameters of GOACC_paralllel.
1433
1434 2015-12-10 Jan Hubicka <hubicka@ucw.cz>
1435
1436 * cgraph.c (cgraph_node::get_untransformed_body): Pass compressed
1437 flag to lto_get_section_data.
1438 * varpool.c (varpool_node::get_constructor): Likewise.
1439 * lto-section-in.c (lto_get_section_data): Add new flag decompress.
1440 (lto_free_section_data): Likewise.
1441 (lto_get_raw_section_data): New function.
1442 (lto_free_raw_section_data): New function.
1443 (copy_function_or_variable): Copy sections w/o decompressing.
1444 (lto_output_decl_state_refs): Picke compressed bit.
1445 * lto-streamer.h (lto_in_decl_state): New flag compressed.
1446 (lto_out_decl_state): Likewise.
1447 (lto_get_section_data, lto_free_section_data): Update prototypes
1448 (lto_get_raw_section_data, lto_free_raw_section_data): Declare.
1449 (lto_write_raw_data): Declare.
1450 (lto_begin_section): Remove FIXME.
1451 (lto_write_raw_data): New function.
1452 (lto_write_stream): Remove FIXME.
1453 (lto_new_out_decl_state): Set compressed flag.
1454
1455 2015-12-10 Jan Hubicka <hubicka@ucw.cz>
1456
1457 * tree.c (free_lang_data_in_type, find_decls_types_r): Also free
1458 unnecesary type decls.
1459 * tree.h (is_redundant_typedef): Declare.
1460 * dwarf2out.c (is_redundant_typedef): Export; booleanize
1461
1462 2015-12-12 Eric Botcazou <ebotcazou@adacore.com>
1463
1464 * config/sparc/sparc.h (TARGET_SUPPORTS_WIDE_INT): Define to 1.
1465 * config/sparc/sparc.c (sparc_emit_set_const64): Remove code
1466 conditionalized on HOST_BITS_PER_WIDE_INT == 32.
1467 (sparc_cannot_force_const_mem) <CONST_WIDE_INT>: New case.
1468 <CONST_DOUBLE>: Remove VOIDmode test.
1469 (epilogue_renumber) <CONST_WIDE_INT>: New case.
1470 (sparc_print_operand): Remove support for CONST_DOUBLE with VOIDmode.
1471 (sparc_assemble_integer): Likewise.
1472 (set_extends): Likewise.
1473 (sparc_rtx_costs) <CONST_INT>: Use SMALL_INT.
1474 <CONST_WIDE_INT>: New case.
1475 <CONST_DOUBLE>: Remove support for VOIDmode.
1476 <MULT>: Remove support for CONST_DOUBLE with VOIDmode.
1477 * config/sparc/predicates.md (const_zero_operand): Add const_wide_int.
1478 (const_all_ones_operand): Likewise.
1479 (uns_small_int_operand): Remove const_double and code conditionalized
1480 on HOST_BITS_PER_WIDE_INT == 32.
1481 (arith_double_operand): Likewise.
1482 (arith_double_add_operand): Likewise.
1483 (input_operand): Remove support for CONST_DOUBLE with DImode.
1484 * config/sparc/sparc.md (DImode CONST_INT splitter): Remove code
1485 conditionalized on HOST_BITS_PER_WIDE_INT == 32.
1486 (DFmode CONST_DOUBLE splitter): Likewise.
1487 (*adddi3_insn_sp32): Likewise.
1488 (*subdi3_insn_sp32): Likewise.
1489 (DImode logical splitter): Likewise.
1490 (DImode CONST_DOUBLE splitter): Delete.
1491
1492 2015-12-12 Paolo Bonzini <bonzini@gnu.org>
1493
1494 PR sanitizer/68418
1495 * c-family/c-ubsan.c (ubsan_instrument_shift): Disable
1496 sanitization of left shifts for wrapping signed types as well.
1497
1498 2015-12-11 Eric Botcazou <ebotcazou@adacore.com>
1499
1500 PR middle-end/68215
1501 * tree-vect-generic.c (tree_vec_extract): Remove GSI parameter.
1502 Do not gimplify the result.
1503 (do_unop): Adjust call to tree_vec_extract.
1504 (do_binop): Likewise.
1505 (do_compare): Likewise.
1506 (do_plus_minus): Likewise.
1507 (do_negate): Likewise.
1508 (expand_vector_condition): Likewise.
1509 (do_cond): Likewise.
1510
1511 2015-12-11 Nathan Sidwell <nathan@acm.org>
1512
1513 * config/nvptx/nvptx.h (RETURN_ADDR_REGNO): Delete.
1514 (OUTGOING_ARG_POINTER_REGNUM): Delete.
1515 (ASM_OUTPUT_COMMON, ASM_OUTPUT_LOCAL): Delete.
1516 (REGISTER_NAMES): Name static chain regs.
1517 * config/nvptx/nvptx.c (nvptx_function_arg): Add ARG_UNUSED, merge
1518 ifs.
1519 (nvptx_incoming_arg): Merge ifs.
1520 (nvptx_function_arg_boundary): Reimplement to avoid mixing units.
1521 (nvptx_function_value): Tail call nvptx_libcall_value.
1522 (nvptx_pass_by_reference): Add ARG_UNUSED.
1523 (nvptx_static_chain): Use conditional op.
1524 (nvptx_handle_kernel_attribute): Use VOID_TYPE_P.
1525
1526 2015-12-11 Jan-Benedict Glaw <jbglaw@lug-owl.de>
1527 Dominique d'Humieres <dominiq@lps.ens.fr>
1528
1529 PR target/26427
1530 PR target/33120
1531 PR testsuite/35710
1532 * config/darwin.c (darwin_use_anchors_for_symbol_p): Fix indention and
1533 trailing whitespace.
1534
1535 2015-12-11 Jan Beulich <jbeulich@suse.com>
1536
1537 * cfgexpand.c (expand_one_var): Exit early for static and
1538 external variables when adjusting stack alignment related.
1539
1540 2015-12-11 Dominik Vogt <vogt@linux.vnet.ibm.com>
1541
1542 * config/s390/s390.c (s390_rtx_costs)
1543 (s390_cannot_force_const_mem, legitimate_pic_operand_p)
1544 (s390_preferred_reload_class, s390_reload_symref_address)
1545 (legitimate_reload_constant_p, print_operand): Wide int support.
1546 * config/s390/predicates.md ("const0_operand", "constm1_operand")
1547 ("consttable_operand"): Likewise.
1548 ("larl_operand"): Add a comment.
1549 * config/s390/s390.h (TARGET_SUPPORTS_WIDE_INT): Enable wide int
1550 support.
1551
1552 2015-12-11 Nathan Sidwell <nathan@acm.org>
1553
1554 * config/nvptx/nvptx.h (TARGET_SUPPORTS_WIDE_INT): Define.
1555 * config/nvptx/nvptx.c (nvptxx_assemble_integer): Return false for
1556 unrecognizable RTX.
1557
1558 2015-12-11 Tom de Vries <tom@codesourcery.com>
1559
1560 * passes.def: Remove unpaired TERMINATE_PASS_LIST.
1561
1562 2015-12-11 Michael Matz <matz@suse.de>
1563
1564 * hash-map.h (hash_map::hash_map): Gather statistics only
1565 when GATHER_STATISTICS is true.
1566 * hash-set.h (hash_set::hash_set): Ditto.
1567 * hash-table.h (hash_table::hash_table): Ditto.
1568 (hash_table::create_ggc): Ditto.
1569
1570 2015-12-11 Martin Jambor <mjambor@suse.cz>
1571
1572 PR ipa/68064
1573 * ipa-prop.c (ipa_compute_jump_functions_for_edge): Add checking
1574 assert that align is nonzero.
1575
1576 2015-12-11 Dominik Vogt <vogt@linux.vnet.ibm.com>
1577
1578 * config/s390/s390.c (s390_expand_setmem): Use new expanders.
1579 * config/s390/s390.md ("*setmem_long")
1580 ("*setmem_long_and", "*setmem_long_31z"): Fix warnings.
1581 ("*setmem_long_and_31z"): New define_insn.
1582 ("setmem_long_<P:mode>"): New expanders.
1583 * (<modesize>): New mode attribute
1584
1585 2015-12-11 Dominik Vogt <vogt@linux.vnet.ibm.com>
1586
1587 * config/s390/s390.md ("movstr", "*movstr"): Fix warning.
1588 ("movstr<P:mode>"): New indirect expanders used by "movstr".
1589
1590 2015-12-11 Martin Liska <mliska@suse.cz>
1591 Uros Bizjak <ubizjak@gmail.com>
1592
1593 PR target/67484
1594 * config/i386/i386.c (ix86_valid_target_attribute_tree):
1595 Use ggc_strdup to copy option_strings to opts->x_ix86_arch_string and
1596 opts->x_ix86_tune_string.
1597
1598 2015-12-11 Richard Biener <rguenther@suse.de>
1599
1600 * lto-streamer.h (lto_simple_header_with_strings): Remove
1601 main_size field already in lto_simple_header.
1602
1603 2015-12-11 Ilya Enkovich <enkovich.gnu@gmail.com>
1604
1605 * tree-vect-stmts.c (vectorizable_mask_load_store): Check
1606 mask vectype.
1607
1608 2015-12-11 Ilya Enkovich <enkovich.gnu@gmail.com>
1609
1610 * config/i386/i386.c (ix86_get_mask_mode): Use scalar
1611 modes for 32 and 16 byte boolean vectors when possible.
1612
1613 2015-12-11 Segher Boessenkool <segher@kernel.crashing.org>
1614
1615 PR rtl-optimization/67778
1616 PR rtl-optimization/68634
1617 * shrink-wrap.c (try_shrink_wrapping): Add a comment about why we want
1618 to put the prologue earlier. When determining if an earlier block is
1619 suitable, make sure it dominates every block reachable from it.
1620
1621 2015-12-11 Segher Boessenkool <segher@kernel.crashing.org>
1622
1623 PR rtl-optimization/68814
1624 * rtlanal.c (set_noop_p): Use BITS_BIG_ENDIAN instead of
1625 BYTES_BIG_ENDIAN.
1626
1627 2015-12-10 Nathan Sidwell <nathan@acm.org>
1628
1629 * config/nvptx/nvptx.c (nvptx_function_arg,
1630 nvptx_function_incoming_arg, nvptx_function_arg_advance,
1631 nvptx_strict_argument_naming, nvptx_function_arg_boundary,
1632 nvptx_libcall_value, nvptx_function_value,
1633 nvptx_function_value_regno_p, nvptx_pass_by_reference,
1634 nvptx_return_in_memory, nvptx_promote_function_mode,
1635 nvptx_static_chain): Move earlier.
1636 (write_one_arg): Break out as helper fn for ...
1637 (write_arg): ... this new function. Adjust all callers.
1638
1639 2015-12-10 Jan Hubicka <hubicka@ucw.cz>
1640
1641 * lto-streamer-out.c (wrap_refs): Only wrap public decls.
1642
1643 2015-12-10 Jan Hubicka <hubicka@ucw.cz>
1644
1645 * ipa-cp.c (ipcp_cloning_candidate_p): Use node->optimize_for_size_p.
1646 (good_cloning_opportunity_p): Likewise.
1647 (gather_context_independent_values): Do not return true when
1648 polymorphic call context is known or when we have known aggregate
1649 value of unused parameter.
1650 (estimate_local_effects): Try to create clone for all context
1651 when either some params are substituted or devirtualization is possible
1652 or some params can be removed; use local flag instead of
1653 node->will_be_removed_from_program_if_no_direct_calls_p.
1654 (identify_dead_nodes): Likewise.
1655
1656 2015-12-10 David Malcolm <dmalcolm@redhat.com>
1657
1658 * doc/invoke.texi (-Wall): Add -Wmisleading-indentation to the
1659 list.
1660 (-Wmisleading-indentation): Update documentation to reflect
1661 being enabled by -Wall in C/C++.
1662
1663 2015-12-10 Vladimir Makarov <vmakarov@redhat.com>
1664
1665 PR rtl-optimization/68691
1666 * lra-spills.c (lra_final_code_change): Check pseudo occurrence
1667 number in non-debug insns and remove debug insns if necessary.
1668
1669 2015-12-10 Martin Sebor <msebor@redhat.com>
1670
1671 * invoke.texi (Warning Options): Update -Wall options. Clarify
1672 when some -Wextra options are enabled. Add -Wplacement-new example.
1673
1674 2015-12-10 Uros Bizjak <ubizjak@gmail.com>
1675
1676 * graphite-scop-detection.c (gather_bbs::before_dom_children):
1677 Change return type to an edge. Always return NULL.
1678
1679 2015-12-10 Jeff Law <law@redhat.com>
1680
1681 PR tree-optimization/68619
1682 * tree-ssa-dom.c (dom_opt_dom_walker::before_dom_children): Propgate
1683 return value from optimize_stmt.
1684 (dom_opt_dom_walker): Add new argument to dom_walker constructor.
1685 (pass_dominator:execute): If a block has an unreachable edge,
1686 remove all jump threads through any successor of the affected block.
1687 (record_equivalences_from_phis): Ignore alternative if the edge
1688 does not have EDGE_EXECUTABLE set.
1689 (single_incoming_edge_ignoring_loop_edges): Similarly.
1690 (optimize_stmt): If a gimple_code has a compile-time constant
1691 condition, return the edge taken for that constant value. Also
1692 change the condition to true/false as necessary.
1693 * domwalk.h (dom_walker::dom_walker): Add new argument
1694 skip_unreachable_blocks. Don't provide empty constructor body.
1695 (dom_walker::before_dom_children): Change return type.
1696 (dom_walker::bb_reachable): Declare new private method.
1697 (dom_walker::propagate_unreachable_to_edges): Likewise.
1698 (dom_walker::m_unreachable_dom): Declare new private data member.
1699 (dom_walker::m_skip_unreachable_blocks): Likewise.
1700 * domwalk.c: Include dumpfile.h.
1701 (dom_walker::dom_walker): New constructor. Initialize private data
1702 members. If needed, set EDGE_EXECUTABLE for all edges in the CFG,
1703 extracted from tree-ssa-sccvn.c.
1704 (dom_walker::bb_reachable): New method extracted from tree-ssa-sccvn.c
1705 (dom_walker::propagate_unreachable_to_edges): Likewise.
1706 (dom_walker::walk): Only call before_dom_children on reachable
1707 blocks. If before_dom_children returns an edge, then clear
1708 EDGE_EXECUTABLE for all other outgoing edges from the same block.
1709 For unreachable blocks, call propagate_unreachable_to_edges.
1710 Similarly, only call after_dom_children on reachable blocks. For
1711 unreachable blocks, conditionally clear m_unreachable_dom.
1712 * tree-ssa-sccvn.c (sccvn_dom_walker::unreachable_dom): Remove
1713 private data member.
1714 (sccvn_dom_walker::after_dom_children): Use methods from dom_walker
1715 class.
1716 (run_scc_vn): Likewise.
1717 (sccvn_dom_walker::before_dom_children): Likewise. Return the taken
1718 outgoing edge if a COND, SWITCH, or GOTO are optimized.
1719 * compare-elim.c (find_comparison_dom_walker::before_dom_children):
1720 Change return type to an edge. Always return NULL.
1721 * fwprop.c (single_def_use_dom_walker::before_dom_children): Likewise.
1722 * gimple-ssa-strength-reduction.c
1723 (find_candidates_dom_walker::before_dom_children): Likewise.
1724 * ipa-prop.c (analysis_dom_walker::before_dom_children): Likewise.
1725 (ipcp_modif_dom_walker::before_dom_children): Likewise.
1726 * tree-into-ssa.c (rewrite_dom_walker::before_dom_children): Likewise.
1727 (rewrite_update_dom_walker::before_dom_children): Likewise.
1728 (mark_def_dom_children::before_dom_children): Likewise.
1729 * tree-ssa-dse.c (dse_dom_walker::before_dom_children): Likewise.
1730 * tree-ssa-loop-im.c
1731 (invariantness_dom_walker::before_dom_children): Likewise.
1732 (move_computations_dom_walker::before_dom_walker): Likewise.
1733 * tree-ssa-phiopt.c
1734 (nontrapping_dom_walker::before_dom_children): Likewise.
1735 * tree-ssa-pre.c
1736 (eliminate_dom_walker::before_dom_children): Likewise.
1737 * tree-ssa-propagate.c
1738 (substitute_and_fold_dom_walker::before_dom_children): Likewise.
1739 * tree-ssa-strlen.c
1740 (strlen_dom_walker::before_dom_children): Likewise.
1741 * tree-ssa-uncprop.c
1742 (uncprop_dom_walker::before_dom_children): Likewise.
1743
1744 2015-12-10 Jakub Jelinek <jakub@redhat.com>
1745
1746 PR rtl-optimization/68376
1747 PR rtl-optimization/68670
1748 * ifcvt.c (noce_try_abs): For one_cmpl allow < 0, >= 0
1749 or > -1 conditions regardless of negate, and disallow
1750 all other conditions.
1751
1752 2015-12-10 Ilya Enkovich <enkovich.gnu@gmail.com>
1753
1754 * tree-chkp.c (chkp_call_returns_bounds_p): Return true
1755 for VA_ARG call.
1756 (chkp_fixup_inlined_call): New.
1757 * tree-chkp.h (chkp_fixup_inlined_call): New.
1758 * tree-stdarg.c: Include tree-chkp.h.
1759 (expand_ifn_va_arg_1): Fixup bndret calls for removed
1760 VA_ARG calls.
1761
1762 2015-12-10 Martin Jambor <mjambor@suse.cz>
1763
1764 * tree-inline.c (duplicate_remap_omp_clause_seq): New function.
1765 (replace_locals_op): Duplicate gimple sequences in OMP clauses.
1766
1767 2015-12-10 David Malcolm <dmalcolm@redhat.com>
1768
1769 * graphite-optimize-isl.c (scop_get_domains): Fix indentation.
1770
1771 2015-12-10 David Malcolm <dmalcolm@redhat.com>
1772
1773 * ifcvt.c (noce_try_inverse_constants): Fix indentation.
1774
1775 2015-12-10 David Malcolm <dmalcolm@redhat.com>
1776
1777 * regrename.c (scan_rtx_address): Fix indentation.
1778
1779 2015-12-10 David Malcolm <dmalcolm@redhat.com>
1780
1781 * function.c (locate_and_pad_parm): Fix indentation.
1782
1783 2015-12-10 Richard Biener <rguenther@suse.de>
1784
1785 * tree-ssa-structalias.c (struct variable_info): Add
1786 is_ipa_escape_point flag.
1787 (new_var_info): Initialize to false.
1788 (find_func_aliases): Generate escape constraints for stores
1789 properly in IPA mode.
1790 (ipa_pta_execute): Compute is_ipa_escape_point for globals.
1791
1792 2015-12-10 Claudiu Zissulescu <claziss@synopsys.com>
1793
1794 * config/arc/atomic.md: Add new file.
1795
1796 2015-12-10 Claudiu Zissulescu <claziss@synopsys.com>
1797
1798 * config/arc/arc-protos.h (arc_expand_atomic_op): Prototype.
1799 (arc_split_compare_and_swap): Likewise.
1800 (arc_expand_compare_and_swap): Likewise.
1801 * config/arc/arc.c (arc_init): Check usage atomic option.
1802 (arc_pre_atomic_barrier): New function.
1803 (arc_post_atomic_barrier): Likewise.
1804 (emit_unlikely_jump): Likewise.
1805 (arc_expand_compare_and_swap_qh): Likewise.
1806 (arc_expand_compare_and_swap): Likewise.
1807 (arc_split_compare_and_swap): Likewise.
1808 (arc_expand_atomic_op): Likewise.
1809 * config/arc/arc.h (TARGET_CPU_CPP_BUILTINS): New C macro.
1810 (ASM_SPEC): Enable mlock option when matomic is used.
1811 * config/arc/arc.md (UNSPEC_ARC_MEMBAR): Define.
1812 (VUNSPEC_ARC_CAS): Likewise.
1813 (VUNSPEC_ARC_LL): Likewise.
1814 (VUNSPEC_ARC_SC): Likewise.
1815 (VUNSPEC_ARC_EX): Likewise.
1816 * config/arc/arc.opt (matomic): New option.
1817 * config/arc/constraints.md (ATO): New constraint.
1818 * config/arc/predicates.md (mem_noofs_operand): New predicate.
1819 * doc/invoke.texi: Document -matomic.
1820 * config/arc/atomic.md: New file.
1821
1822 2015-12-10 Richard Biener <rguenther@suse.de>
1823
1824 PR tree-optimization/68817
1825 * tree-vect-slp.c (vect_attempt_slp_rearrange_stmts): Detect
1826 gaps early.
1827
1828 2015-12-10 Ilya Enkovich <enkovich.gnu@gmail.com>
1829
1830 * tree-vect-stmts.c (vectorizable_assignment): Support
1831 useless boolean conversion.
1832
1833 2015-12-10 Alan Lawrence <alan.lawrence@arm.com>
1834
1835 * doc/install.texi: Add note against GNAT 4.8 on ARM targets.
1836
1837 2015-12-10 Jakub Jelinek <jakub@redhat.com>
1838
1839 PR tree-optimization/68785
1840 * gimple-fold.c (fold_ctor_reference): Pass return value from
1841 native_encode_expr to native_interpret_expr.
1842 * tree-ssa-sccvn.c (fully_constant_vn_reference_p): Likewise.
1843
1844 2015-12-10 Richard Biener <rguenther@suse.de>
1845
1846 PR ipa/68331
1847 * tree-ssa-structalias.c (set_uids_in_ptset): Add fndecl
1848 parameter and make vars_contains_nonlocal properly have
1849 function-scope semantics in IPA mode.
1850 (find_what_var_points_to): Add fndecl parameter.
1851 (find_what_p_points_to): Likewise.
1852 (pt_solution_includes_global): Remove IPA PTA early out.
1853 (compute_points_to_sets): Adjust.
1854 (ipa_pta_execute): Likewise. Clear final_solutions after
1855 each function.
1856
1857 2015-12-10 Tom de Vries <tom@codesourcery.com>
1858
1859 PR ada/65102
1860 * doc/include/fdl.texi: Add nodefaultgnufreedocumentationlicensenode
1861 ifdef to allow disabling default @node GNU Free Documentation License.
1862
1863 2015-12-10 Richard Biener <rguenther@suse.de>
1864
1865 * tree-ssa-structalias.c (create_function_info_for): Add missing
1866 constraint from nonlocal for DECL_RESULT.
1867
1868 2015-12-10 Richard Biener <rguenther@suse.de>
1869
1870 * tree-if-conv.c: Include params.h.
1871 (ifcvt_memrefs_wont_trap): Use PARAM_ALLOW_STORE_DATA_RACES
1872 instead of flag_tree_loop_if_convert_stores to guard cases
1873 we'd introduce store-data-races.
1874
1875 2015-12-10 Richard Biener <rguenther@suse.de>
1876
1877 PR ipa/68721
1878 * ipa-split.c (split_function): Record return value properly
1879 when the split part doesn't set it.
1880
1881 2015-12-10 Richard Biener <rguenther@suse.de>
1882
1883 PR tree-optimization/68806
1884 * tree-vect-loop.c (vect_analyze_loop_2): Properly detect
1885 reduction chains and ignore SLP reductions.
1886
1887 2015-12-10 Richard Biener <rguenther@suse.de>
1888
1889 * tree-if-conv.c (if_convertible_loop_p_1): Do not compute
1890 dependences.
1891 (if_convertible_loop_p): Adjust.
1892
1893 2015-12-10 Tom de Vries <tom@codesourcery.com>
1894
1895 * tree-ssa-structalias.c (find_func_aliases_for_builtin_call): Remove
1896 invalid assert.
1897
1898 2015-12-10 Martin Liska <mliska@suse.cz>
1899
1900 * tree-vect-data-refs.c: Free an overwritten dataref.
1901
1902 2015-12-09 John David Anglin <danglin@gcc.gnu.org>
1903
1904 PR target/68729
1905 * config/pa/pa.c (pa_emit_move_sequence): Don't check that mode is
1906 consistent with modes of the input and output operands when doing
1907 reloads to and from floating point registers. Do reload for all
1908 address forms.
1909
1910 2015-12-08 Jan Hubicka <hubicka@ucw.cz>
1911
1912 PR ipa/61886
1913 PR middle-end/25140
1914 * tree-ssa-alias.c (ptr_deref_may_alias_decl_p): Use compare_base_decls
1915 (nonoverlapping_component_refs_of_decl_p): Update sanity check.
1916 (decl_refs_may_alias_p): Use compare_base_decls.
1917 * alias.c: Include cgraph.h
1918 (get_alias_set): Add cut-off for recursion.
1919 (rtx_equal_for_memref_p): Use rtx_equal_for_memref_p.
1920 (compare_base_decls): New function.
1921 (base_alias_check): Likewise.
1922 (memrefs_conflict_p): Likewise.
1923 (nonoverlapping_memrefs_p): Likewise.
1924 * alias.h (compare_base_decls): Declare.
1925
1926 2015-12-08 Jan Hubicka <hubicka@ucw.cz>
1927
1928 PR ipa/61886
1929 * ipa-visibility.c (function_and_variable_visibility): Fix vtable
1930 rewritting guard.
1931
1932 2015-12-08 Jan Hubicka <hubicka@ucw.cz>
1933
1934 PR ipa/61886
1935 PR middle-end/25140
1936 * ipa-reference.c (ipa_reference_get_not_read_global,
1937 ipa_reference_get_not_read_global): Fix WRT aliases.
1938 (is_improper): Break out from ...
1939 (is_proper_for_analysis): ... here; fix WRT aliases.
1940 (analyze_function, generate_summary,
1941 ipa_reference_write_optimization_summary,
1942 ipa_reference_read_optimization_summary): Use ipa_reference_var_uid.
1943 * ipa-refrence.h (ipa_reference_var_uid): New inline.
1944 * tree-ssa-alias.c: Revert my accidental previous commit.
1945 (ref_maybe_used_by_call_p_1,
1946 call_may_clobber_ref_p_1): Use ipa_reference_var_uid.
1947
1948 2015-12-09 Andreas Tobler <andreast@gcc.gnu.org>
1949
1950 * config/rs6000/freebsd64.h: Remove the redefinition of WCHAR_TYPE.
1951
1952 2015-12-09 Aditya Kumar <aditya.k7@samsung.com>
1953 Sebastian Pop <s.pop@samsung.com>
1954
1955 * graphite-optimize-isl.c: Include isl/ast_build.h
1956 (optimize_isl): Set several isl_options_set_* options.
1957
1958 2015-12-09 Aditya Kumar <aditya.k7@samsung.com>
1959 Sebastian Pop <s.pop@samsung.com>
1960
1961 * graphite-sese-to-poly.c (pdr_add_memory_accesses): Iterate in
1962 the same order as adding data reference access functions.
1963
1964 2015-12-09 Aditya Kumar <aditya.k7@samsung.com>
1965 Sebastian Pop <s.pop@samsung.com>
1966
1967 * graphite-optimize-isl.c (optimize_isl): Improve dump message.
1968
1969 2015-12-09 Marek Polacek <polacek@redhat.com>
1970
1971 PR tree-optimization/66949
1972 * tree-ssa-phiopt.c (tree_ssa_phiopt_worker): Don't call
1973 single_non_singleton_phi_for_edges to get the PHI from
1974 factor_out_conditional_conversion. Use NULL_TREE instead of NULL.
1975 (factor_out_conditional_conversion): Adjust declaration. Make it
1976 return the newly-created PHI.
1977
1978 2015-12-09 James Greenhalgh <james.greenhalgh@arm.com>
1979
1980 * config/aarch64/aarch64-protos.h
1981 (aarch64_cannot_change_mode_class): Bring back.
1982 * config/aarch64/aarch64.c
1983 (aarch64_cannot_change_mode_class): Likewise.
1984 * config/aarch64/aarch64.h (CANNOT_CHANGE_MODE_CLASS): Likewise.
1985 * config/aarch64/aarch64.md (aarch64_movdi_<mode>low): Use
1986 zero_extract rather than truncate.
1987 (aarch64_movdi_<mode>high): Likewise.
1988
1989 2015-12-09 Jakub Jelinek <jakub@redhat.com>
1990
1991 PR tree-optimization/68786
1992 * tree-if-conv.c: Include builtins.h.
1993 (predicate_mem_writes): Put result of get_object_alignment (ref)
1994 into second argument's value.
1995 * tree-vect-stmts.c (vectorizable_mask_load_store): Put minimum
1996 pointer alignment into second argument's value.
1997 * tree-data-ref.c (get_references_in_stmt): Use value of second
1998 argument for build_aligned_type, and only the type to build
1999 a zero second argument for MEM_REF.
2000 * internal-fn.c (expand_mask_load_optab_fn,
2001 expand_mask_store_optab_fn): Likewise.
2002
2003 2015-12-09 Richard Biener <rguenther@suse.de>
2004
2005 PR tree-optimization/68583
2006 * tree-if-conv.c (if_convertible_phi_p): Drop
2007 flag_tree_loop_if_convert_stores check in favor of the
2008 existing any_mask_load_store check.
2009 (insert_gimplified_predicates): Likewise.
2010 (combine_blocks): Likewise.
2011 (tree_if_conversion): Likewise.
2012 (ifcvt_memrefs_wont_trap): Properly check
2013 flag_tree_loop_if_convert_stores in all places that can end
2014 up introducing store-data-races.
2015 (if_convertible_gimple_assign_stmt_p): Remove restriction
2016 on flag_tree_loop_if_convert_stores for stores we can if-convert
2017 without introducing store-data-races. Force versioning for
2018 all if-converted stores.
2019
2020 2015-12-09 Tom de Vries <tom@codesourcery.com>
2021
2022 PR tree-optimization/68716
2023 * tree-ssa-structalias.c (find_func_clobbers): Fix handling of
2024 BUILT_IN_GOMP_PARALLEL and BUILT_IN_GOACC_PARALLEL.
2025
2026 2015-12-09 Martin Liska <mliska@suse.cz>
2027
2028 * hash-traits.h (struct typed_delete_remove): New function.
2029 (typed_delete_remove ::remove): Likewise.
2030 * tree-ssa-loop-ivopts.c (struct iv_common_cand): Replace
2031 auto_vec with vec.
2032 (record_common_cand): Replace XNEW with operator new.
2033
2034 2015-12-09 Martin Liska <mliska@suse.cz>
2035
2036 * tree-if-conv.c (ifcvt_local_dce): Replace vec with auto_vec.
2037
2038 2015-12-09 Martin Liska <mliska@suse.cz>
2039
2040 PR ipa/68790
2041 * ipa-icf.c (sem_function::param_used_p): Return true
2042 if ipa_node_params_sum equals to NULL.
2043
2044 2015-12-09 Richard Biener <rguenther@suse.de>
2045
2046 PR tree-optimization/68583
2047 * tree-if-conv.c (ifc_dr): Make flags bool, add w_unconditionally
2048 flag and rename predicates to w_predicate, rw_predicate and
2049 base_w_predicate.
2050 (DR_WRITTEN_AT_LEAST_ONCE): Rename to ...
2051 (DR_BASE_W_UNCONDITIONALLY): ... this.
2052 (DR_W_UNCONDITIONALLY): Add.
2053 (hash_memrefs_baserefs_and_store_DRs_read): Adjust. Compute
2054 unconditionally written separately from read or written.
2055 (ifcvt_memrefs_wont_trap): Properly treat reads.
2056 (ifcvt_could_trap_p): Inline ...
2057 (if_convertible_gimple_assign_stmt_p): ... here. Refactor
2058 to avoid code duplication.
2059 (if_convertible_loop_p_1): Adjust and properly initialize
2060 predicates.
2061
2062 2015-12-09 Richard Biener <rguenther@suse.de>
2063
2064 * tree-vect-stmts.c (vectorizable_load): Set new vinfo only
2065 if it was not yet set.
2066 * tree-vectorizer.h (set_vinfo_for_stmt): Assert we don't
2067 overwrite an existing entry.
2068
2069 2015-12-09 Chung-Lin Tang <cltang@codesourcery.com>
2070
2071 * c-family/c-omp.c (c_finish_oacc_wait): Remove add_stmt() call.
2072 * c/c-parser.c (c_parser_oacc_wait): Add add_stmt() call.
2073 * cp/parser.c (cp_parser_oacc_wait): Add finish_expr_stmt() call.
2074
2075 2015-12-08 Jan Hubicka <hubicka@ucw.cz>
2076
2077 PR ipa/61886
2078 * symtab.c (symtab_node::equal_address_to): New parameter
2079 MEMORY_ACCESSED.
2080 * cgraph.h (symtab_node::equal_address_to): Update prototype.
2081
2082 2015-12-08 DJ Delorie <dj@redhat.com>
2083
2084 * config/rx/rx.opt (-mjsr): Add.
2085 * config/rx/predicates.md (rx_call_operand): Avoid overflowing
2086 calls when -mjsr.
2087 * config/rx/rx.c (rx_function_ok_for_sibcall): Likewise for
2088 overflowing jumps.
2089 * doc/invoke.texi (-mjsr): Document it.
2090
2091 2015-12-08 Jan Hubicka <hubicka@ucw.cz>
2092
2093 PR ipa/61886
2094 * lto-streamer.h (lto_symtab_merge_decls, lto_symtab_merge_symbols,
2095 lto_symtab_prevailing_decl): MOve to lto-symtab.h.
2096 * lto-streamer-out.c (DFS::DFS_write_tree_body): Check that
2097 DECL_ABSTRACT_ORIGIN is not error_mark_node.
2098
2099 2015-12-08 David Malcolm <dmalcolm@redhat.com>
2100
2101 * tree-nested.c (convert_tramp_reference_stmt): Fix indentation.
2102
2103 2015-12-08 David Malcolm <dmalcolm@redhat.com>
2104
2105 * tree-ssa-loop-unswitch.c (tree_unswitch_outer_loop): Fix
2106 indentation.
2107
2108 2015-12-08 Jan Hubicka <hubicka@ucw.cz>
2109
2110 PR ipa/61886
2111 * lto-cgraph.c (compute_ltrans_boundary): Add transparent alias targets
2112 into the boundary.
2113
2114 2015-12-08 Jan Hubicka <hubicka@ucw.cz>
2115
2116 PR ipa/61886
2117 * varpool.c (varpool_node::get_availability): Recurse only on
2118 weakrefs with definition in the target.
2119 (symbol_table::remove_unreferenced_decls): Keep aliases in the boundary.
2120
2121 2015-12-08 Jan Hubicka <hubicka@ucw.cz>
2122
2123 PR ipa/61886
2124 * ipa-visibility.c (can_replace_by_local_alias): Look through
2125 transparent aliases; refuse weakrefs.
2126 (update_visibility_by_resolution_info): Skip transparent aliases in the
2127 analysis part
2128
2129 2015-12-08 Jan Hubicka <hubicka@ucw.cz>
2130
2131 PR ipa/61886
2132 * symtab.c (symtab_node::verify_base): Fix thinko in a conditional.
2133 (symtab_node::noninterposable_alias): Do not accept transparent
2134 aliases.
2135
2136 2015-12-08 Nathan Sidwell <nathan@acm.org>
2137
2138 * config/nvptx/nvptx.c (decl_chunk_size, decl_chunk_mode,
2139 decl_offset, init_part, object_size, object_finished): Replace
2140 with ...
2141 (struct init_frag): ... this new struct variable.
2142 (begin_decl_field, output_decl_chunk): Replace with ...
2143 (output_init_frag): ... this new function.
2144 (nvptx_assemble_value): Reimplement.
2145 (nvptx_assemble_integer, nvptx_output_skip): Adjust.
2146 (nvptx_assemble_decl_begin, nvptx_assemble_decl_end): Adjust.
2147 (nvptx_output_aligned_decl): Call nvptx_assemble_decl_end.
2148
2149 2015-12-08 Eric Botcazou <ebotcazou@adacore.com>
2150
2151 PR middle-end/68291
2152 PR middle-end/68292
2153 * cfgexpand.c (set_rtl): Always accept mode mismatch for SSA names
2154 with BLKmode promoted mode based on RESULT_DECLs.
2155
2156 2015-12-08 Uros Bizjak <ubizjak@gmail.com>
2157
2158 PR target/68701
2159 * config/i386/i386.c (ix86_option_override_internal): Enable
2160 -maccumulate-outgoing-args when %ebp is fixed due to stack
2161 realignment requirements.
2162
2163 2015-12-08 Tom de Vries <tom@codesourcery.com>
2164
2165 PR tree-optimization/68640
2166 * omp-low.c (install_var_field): Clear the restrict qualifier on the var
2167 type.
2168
2169 2015-12-08 Kirill Yukhin <kirill.yukhin@intel.com>
2170
2171 * config/i386/sse.md (define_insn "<avx512>_vec_dup<mode>_1"): Fix
2172 assembler to make source always 128bit.
2173
2174 2015-12-08 Jakub Jelinek <jakub@redhat.com>
2175
2176 PR c/48088
2177 PR c/68657
2178 * common.opt (Wframe-larger-than=): Add Warning.
2179 * opts.h (control_warning_option): Add ARG argument.
2180 * opts-common.c (cmdline_handle_error): New function.
2181 (read_cmdline_option): Use it.
2182 (control_warning_option): Likewise. Add ARG argument.
2183 If non-NULL, decode it if needed and pass through
2184 to handle_generated_option. Handle CLVC_ENUM like
2185 CLVC_BOOLEAN.
2186 * opts.c (common_handle_option): Adjust control_warning_option
2187 caller.
2188 (enable_warning_as_error): Likewise.
2189
2190 2015-12-08 Matthew Wahab <matthew.wahab@arm.com>
2191
2192 * config/aarch64/aarch64-options-extensions.def: Remove
2193 AARCH64_FL_RDMA from "fp" and "simd". Remove "pan", "lor",
2194 "rdma".
2195 * config/aarch64/aarch64.h (AARCH64_FL_PAN): Remove.
2196 (AARCH64_FL_LOR): Remove.
2197 (AARCH64_FL_RDMA): Remove.
2198 (AARCH64_FL_V8_1): New.
2199 (AARCH64_FL_FOR_AARCH8_1): Replace AARCH64_FL_PAN, AARCH64_FL_LOR
2200 and AARCH64_FL_RDMA with AARCH64_FL_V8_1.
2201 (AARCH64_ISA_RDMA): Replace AARCH64_FL_RDMA with AARCH64_FL_V8_1.
2202 * doc/invoke.texi (AArch64 -march): Rewrite initial paragraph and
2203 section on -march=native. Group descriptions of permitted
2204 architecture names together. Expand description of
2205 -march=armv8.1-a.
2206 (AArch64 -mtune): Slightly rework section on -march=native.
2207 (AArch64 -mcpu): Slightly rework section on -march=native.
2208 (AArch64 Feature Modifiers): Remove "pan", "lor" and "rdma".
2209 State that -march=armv8.1-a enables "crc" and "lse".
2210
2211 2015-12-08 Eric Botcazou <ebotcazou@adacore.com>
2212
2213 * doc/invoke.texi (SPARC options): Fix typo.
2214
2215 2015-12-08 Eric Botcazou <ebotcazou@adacore.com>
2216
2217 * config/ia64/ia64.c (ia64_emit_probe_stack_range): Adjust.
2218 (output_probe_stack_range): Rotate the loop and simplify.
2219
2220 2015-12-08 Uros Bizjak <ubizjak@gmail.com>
2221
2222 * config/i386/i386.c (ix86_emit_swsqrtsf): Cleanup
2223 infinity filterning code.
2224
2225 2015-12-08 Ilya Enkovich <enkovich.gnu@gmail.com>
2226
2227 PR tree-optimization/68766
2228 * tree-vectorizer.c (vectorize_loops): Check for
2229 if-converted loops when debug counters are used.
2230
2231 2015-12-07 DJ Delorie <dj@redhat.com>
2232
2233 * config/rl78/constraints.md (Wfr): Change to be a non-memory
2234 constraint.
2235 * config/rl78/rl78-protos.h (rl78_one_far_p): Declare.
2236 * config/rl78/rl78.c (rl78_one_far_p): Define.
2237 * config/rl78/rl78-virt (movqi_virt): Fix far memory
2238 alternatives.
2239 (movhi_virt): Likewise.
2240 (zero_extendqihi2_virt): Likewise.
2241 (extendqihi2_virt): Likewise.
2242 (add<mode>3_virt): Likewise.
2243 (sub<mode>3_virt): Likewise.
2244 (andqi3_virt): Likewise.
2245 (iorqi3_virt): Likewise.
2246 (xorqi3_virt): Likewise.
2247 * config/rl78/rl78-real.md (bf,br): Use long forms to avoid reloc
2248 overflow in large files.
2249
2250 2015-12-07 Eric Botcazou <ebotcazou@adacore.com>
2251
2252 PR target/63668
2253 * doc/invoke.texi (SPARC options): Document -mstd-struct-return.
2254 * config/sparc/sparc.c (sparc_struct_value_rtx): Minor tweaks.
2255 * config/sparc/sparc.h (CALL_REALLY_USED_REGISTERS): Define.
2256 * config/sparc/sparc.opt (mstd-struct-return): Accept negative.
2257
2258 2015-12-07 Steve Ellcey <sellcey@imgtec.com>
2259
2260 * reorg.c (optimize_skip): Do not put frame related instructions
2261 in annulled delay slots.
2262 (steal_delay_list_from_target): Ditto.
2263 (fill_slots_from_thread): Ditto.
2264
2265 2015-12-07 Evandro Menezes <e.menezes@samsung.com>
2266
2267 * config/aarch64/aarch64-cores.def: Use the Exynos M1 sched model.
2268 * config/aarch64/aarch64.md: Include "exynos-m1.md".
2269 * config/arm/arm.md: Likewise.
2270 * config/arm/exynos-m1.md: New file.
2271
2272 2015-12-07 Jan Hubicka <hubicka@ucw.cz>
2273
2274 * fold-const.c (operand_equal_p): Drop flag_strict_aliasing check.
2275
2276 2015-12-07 Nathan Sidwell <nathan@acm.org>
2277
2278 * config//nvptx/nvptx.c (write_return): New.
2279 (write_fn_proto, nvptx_declare_function_name): Call it.
2280
2281 2015-12-07 Jan Hubicka <hubicka@ucw.cz>
2282
2283 PR ipa/61886
2284 * symtab.c (ultimate_transparent_alias_target): New inline function.
2285 (symbol_table::assembler_names_equal_p): New method; break out from ...
2286 (symbol_table::decl_assembler_name_equal): ... here.
2287 (symbol_table::change_decl_assembler_name): Also update names and
2288 translation links of transparent aliases.
2289 (symtab_node::dump_base): Dump transparent_alias.
2290 (symtab_node::verify_base): Implement basic transparent alias
2291 verification.
2292 (symtab_node::make_decl_local): Support localization of weakrefs;
2293 recurse to transparent aliases; set TREE_STATIC.
2294 (symtab_node::ultimate_alias_target_1): Handle visibility of
2295 transparent aliases.
2296 (symtab_node::resolve_alias): New parmaeter transparent; handle
2297 transparent aliases; recurse to aliases of aliases to fix comdat
2298 groups.
2299 (symtab_node::get_partitioning_class): Handle transparent aliases.
2300 * ipa-visibility.c (cgraph_externally_visible_p,
2301 varpool_node::externally_visible_p): Visibility of transparent alias
2302 depends on its target.
2303 (function_and_variable_visibility): Do not tweak visibility of
2304 transparent laiases.
2305 (function_and_variable_visibility): Likewise.
2306 * ipa.c (symbol_table::remove_unreachable_nodes): Clear
2307 transparent_alias flag.
2308 * alias.c (cgraph_node::create_alias, cgraph_node::get_availability):
2309 Support transparent aliases.
2310 * cgraph.h (symtab_node): Update prototype of resolve_alias;
2311 add transparent_alias flag.
2312 (symbol_table: Add assembler_names_equal_p.
2313 (symtab_node::real_symbol_p): Skip transparent aliases.
2314 * cgraphunit.c (cgraph_node::reset): Reset transparent_alias flag.
2315 (handle_alias_pairs): Set transparent_alias for weakref.
2316 (cgraph_node::assemble_thunks_and_aliases): Do not asemble transparent
2317 aliases.
2318 * lto-cgraph.c (lto_output_node): When outputting same_comdat_group
2319 skip symbols not put into boundary; stream transparent_alias.
2320 (lto_output_varpool_node): Likewise.
2321 (input_overwrite_node, input_varpool_node): Stream transparent alias.
2322 * varpool.c (ctor_for_folding, varpool_node::get_availability,
2323 varpool_node::assemble_aliases,
2324 symbol_table::remove_unreferenced_decls): Handle transparent aliase.
2325 (varpool_node::create_alias): Set transparent_alias.
2326
2327 2015-12-07 Eric Botcazou <ebotcazou@adacore.com>
2328
2329 PR middle-end/68291
2330 PR middle-end/68292
2331 * cfgexpand.c (set_rtl): Always accept PARALLELs with BLKmode for
2332 SSA names based on RESULT_DECLs.
2333 * function.c (expand_function_start): Do not create BLKmode REGs
2334 for GIMPLE registers when coalescing is enabled.
2335
2336 2015-12-07 Bernd Edlinger <bernd.edlinger@hotmail.de>
2337
2338 * final.c (shorten_branches): Fix check for basic asm.
2339 * ipa-icf-gimple.c (func_checker::compare_gimple_asm): Add check for
2340 basic asm.
2341
2342 2015-12-07 Nathan Sidwell <nathan@acm.org>
2343
2344 * config/nvptx/nvptx.c (nvptx_output_call_insn): Emit trap after no
2345 return call.
2346
2347 2015-12-07 David Malcolm <dmalcolm@redhat.com>
2348
2349 * pretty-print.c (text_info::set_range): Rename to...
2350 (text_info::set_location): ...this, converting 2nd param
2351 from source_range to a location_t.
2352 * pretty-print.h (text_info::set_location): Convert
2353 from inline function to external definition.
2354 (text_info::set_range): Delete.
2355
2356 2015-12-07 Nathan Sidwell <nathan@acm.org>
2357
2358 * config/nvptx/nvptx.c (nvptx_assemble_decl_begin): Look inside
2359 complex and vector types. Cope with packed structs.
2360
2361 2015-12-07 Kirill Yukhin <kirill.yukhin@intel.com>
2362
2363 PR target/68627
2364 * config/i386/sse.md: Make 'v' alternative work on 'avx512f' ISA only.
2365 Force destination to 512 bits register.
2366
2367 2015-12-07 Kirill Yukhin <kirill.yukhin@intel.com>
2368
2369 PR target/68633
2370 * config/i386/sse.md (define_insn "kunpckhi"): Fix operands order.
2371 (define_insn "kunpcksi"): Ditto.
2372 (define_insn "kunpckdi"): Ditto.
2373
2374 2015-12-06 Kaz Kojima <kkojima@gcc.gnu.org>
2375
2376 * config/sh/sh.md (rsqrtsf2): Adjust for canonical form with unspec.
2377
2378 2015-12-06 Victoria Stepanyan <victoria.stepanyan@amd.com>
2379
2380 * common/config/i386/i386-common.c
2381 (OPTION_MASK_ISA_CLZERO_SET): New.
2382 (ix86_handle_option): Handle clzero.
2383 * config.gcc (i[34567]86-*-*): Add clzerointrin.h,
2384 (x86_64-*-*): Likewise.
2385 * config/i386/clzerointrin.h: New header.
2386 * config/i386/cpuid.h (bit_CLZERO): Define.
2387 * config/i386/driver-i386.c (host_detect_local_cpu): Detect
2388 CLZERO support.
2389 * config/i386/i386.opt (clzero): New.
2390 * config/i386/i386-c.c: Define __CLZERO__ if needed.
2391 * config/i386/i386.c (ix86_target_string): Define -mclzero option.
2392 (PTA_CLZERO): New.
2393 (ix86_option_override_internal): Handle new option.
2394 (processor_alias_table): Added PTA_CLZERO.
2395 (ix86_valid_target_attribute_inner_p): Add OPT_mclzero.
2396 (ix86_builtins): Add IX86_BUILTIN_CLZERO, IX86_BUILTIN_CLZERO.
2397 (ix86_expand_builtin): Handle IX86_BUILTIN_CLZERO and
2398 IX86_BUILTIN_CLZERO built-ins.
2399 * config/i386/i386.h (TARGET_CLZERO): New.
2400 * config/i386/i386.md (unspecv): Add UNSPEC_CLZERO.
2401 (clzero): New pattern.
2402 (clzero_<mode>): New pattern.
2403 * config/i386/x86intrin.h: Include clzerointrin.h.
2404 * doc/extend.texi: Document clzero builtins.
2405 * doc/invoke.texi: Document -mclzero option.
2406
2407 2015-12-05 Jan Hubicka <hubicka@ucw.cz>
2408
2409 * ipa-icf.c (sem_function::merge): Check that local_original exists.
2410
2411 2015-12-05 David Edelsohn <dje.gcc@gmail.com>
2412
2413 PR target/68609
2414 * config/rs6000/rs6000-protos.h (rs6000_emit_swsqrt): Rename and add
2415 bool arguement.
2416 * config/rs6000/rs6000.c (rs6000_emit_swsqrt): Rename. Add
2417 non-reciporcal path.
2418 * config/rs6000/rs6000.md (rsqrt<mode>2): Call new function name.
2419 (sqrt<mode>2): Replace define_insn with define_expand that may call
2420 rs6000_emit_swsqrt.
2421
2422 2015-12-04 Aditya Kumar <aditya.k7@samsung.com>
2423 Sebastian Pop <s.pop@samsung.com>
2424
2425 * graphite-isl-ast-to-gimple.c (translate_isl_ast_node_user):
2426 Improve debug.
2427 (get_rename_from_scev): Check that all the ops in an expression
2428 have their uses dominated by corresponding defs.
2429
2430 2015-12-04 Aditya Kumar <aditya.k7@samsung.com>
2431 Sebastian Pop <s.pop@samsung.com>
2432
2433 PR tree-optimization/68693
2434 * graphite-scop-detection.c (dot_all_sese): New
2435 (dot_all_scops_1): Renamed to dot_all_sese.
2436 (dot_all_scops): Removed.
2437 (dot_sese): New.
2438 (dot_cfg): New.
2439 (scop_detection::get_nearest_dom_with_single_entry): Check that
2440 preds are from different loop levels.
2441 (scop_detection::get_nearest_pdom_with_single_exit): Check that
2442 succs are from different loop levels.
2443 (scop_detection::print_sese): Inlined.
2444 (scop_detection::print_edge): New.
2445 (scop_detection::merge_sese): Added dumps.
2446 * graphite.h: Add declarations.
2447
2448 2015-12-04 James Greenhalgh <james.greenhalgh@arm.com>
2449
2450 * config/aarch64/aarch64.md (add<mode>3_pluslong): Add register
2451 constraints.
2452
2453 2015-12-04 Vladimir Makarov <vmakarov@redhat.com>
2454
2455 PR rtl-optimization/68349
2456 * lra-eliminations.c (move_plus_up): New function.
2457 (lra_eliminate_regs_1): Use the function.
2458
2459 2015-12-04 Nathan Sidwell <nathan@acm.org>
2460
2461 * config/nvptx/nvptx.c (nvptx_assemble_decl_begin): New, replacing ...
2462 (init_output_initializer): ... this.
2463 (nvptx_output_aligned_decl, nvptx_asm_declare_constant_name,
2464 nvptx_declare_object_name, nvptx_assemble_undefined_decl): Use
2465 nvptx_assemble_decl_begin.
2466
2467 2015-12-04 Dmitry Vyukov <dvyukov@google.com>
2468
2469 * sancov.c: New file.
2470 * Makefile.in (OBJS): Add sancov.o.
2471 * invoke.texi (-fsanitize-coverage=trace-pc): Describe.
2472 * passes.def (sancov_pass): Add.
2473 * tree-pass.h (sancov_pass): Add.
2474 * common.opt (-fsanitize-coverage=trace-pc): Add.
2475 * sanitizer.def (BUILT_IN_SANITIZER_COV_TRACE_PC): Add.
2476 * builtins.def (DEF_SANITIZER_BUILTIN): Enable for
2477 flag_sanitize_coverage.
2478
2479 2015-12-04 Eric Botcazou <ebotcazou@adacore.com>
2480
2481 PR middle-end/65958
2482 * config/arm/unspecs.md (unspec): Remove UNSPEC_PROBE_STACK_RANGE.
2483 (unspecv): Add VUNSPEC_PROBE_STACK_RANGE.
2484 * config/arm/arm.md (probe_stack_range): Adjust.
2485 * config/aarch64/aarch64.md (unspec): Remove UNSPEC_PROBE_STACK_RANGE.
2486 (unspecv): Add UNSPECV_PROBE_STACK_RANGE.
2487 (probe_stack_range_<PTR:mode>): Adjust.
2488
2489 2015-12-04 David Malcolm <dmalcolm@redhat.com>
2490
2491 * convert.c (convert_to_real_1): When converting from a
2492 REAL_TYPE, preserve the location of EXPR in the result.
2493 * tree.c (get_pure_location): Make non-static.
2494 (set_source_range): Return the resulting location_t.
2495 (make_location): New function.
2496 * tree.h (get_pure_location): New decl.
2497 (get_finish): New inline function.
2498 (set_source_range): Convert return type from void to location_t.
2499 (make_location): New decl.
2500
2501 2015-12-04 Jakub Jelinek <jakub@redhat.com>
2502
2503 PR c/68656
2504 * toplev.c (init_asm_output): Pass UNKNOWN_LOCATION instead of
2505 input_location to inform.
2506 (process_options): Use warning_at (UNKNOWN_LOCATION instead of
2507 warning ( and error_at (UNKNOWN_LOCATION instead of error (.
2508 Pass UNKNOWN_LOCATION instead of input_location to fatal_error.
2509
2510 2015-12-04 Jan Hubicka <hubicka@ucw.cz>
2511
2512 * ipa-inline.c (can_inline_edge_p) Use merged_comdat.
2513 * cgraphclones.c (cgraph_node::create_clone): Use merged_comdat.
2514 * cgraph.c (cgraph_node::dump): Dump merged_comdat.
2515 * ipa-icf.c (sem_function::merge): Drop merged_comdat when merging
2516 comdat and non-comdat.
2517 * cgraph.h (cgraph_node): Rename merged to merged_comdat.
2518 * ipa-inline-analysis.c (simple_edge_hints): Check both merged_comdat
2519 and icf_merged.
2520
2521 2015-12-04 Segher Boessenkool <segher@kernel.crashing.org>
2522
2523 * config/rs6000/rs6000.md (cstore<mode>4_unsigned): Use gpc_reg_operand
2524 instead of register_operand. Remove empty constraints. Use std::swap.
2525 (cstore_si_as_di, cstore<mode>4_signed_imm,
2526 cstore<mode>4_unsigned_imm, cstore<mode>4 for GPR): Use
2527 gpc_reg_operand instead of register_operand.
2528 (cstore<mode>4 for FP): Use gpc_reg_operand instead of
2529 register_operand. Remove empty constraints.
2530
2531 2015-12-04 Nick Clifton <nickc@redhat.com>
2532
2533 * config.gcc (extra_gcc_objs): Define for MSP430.
2534 * common/config/msp430/msp430-common.c (msp430_handle_option):
2535 Pass both -mmcu and -mcpu on to the back end if they are both defined.
2536 * config/msp430/msp430.c (hwmult_name): New function.
2537 (msp430_option_override): If an unrecognised MCU name is
2538 detected only warn if the user has not provided suitable
2539 -mhwmult and -mcpu options. Use msp430_warn_mcu to control
2540 warning messages. Generate warnings about conflicts between
2541 -mmcu and -mcpu and -mhwmult options.
2542 If neither -mcpu nor -mmcu have been specified but -mhwmult=
2543 f5series has the select the 430X isa.
2544 (msp430_no_hwmult): If -mmcu has not been specified and
2545 msp430_hwmult_type is AUTO then return true.
2546 * config/msp430/msp430.h (EXTRA_SPEC_FUNCTIONS): Define.
2547 (LIB_SPEC): Add hardware multiply library selection.
2548 * config/msp430/t-msp430: Delete hardware multiply multilibs.
2549 Add rule to build driver-msp430.o
2550 * config/msp430/driver-msp430.c: New file.
2551 * config/msp430/msp430.opt (warn-mcu): New option.
2552 * doc/invoke.texi: Update description of -mhwmult=auto.
2553 Document -mwarn-mcu option.
2554
2555 2015-12-04 Segher Boessenkool <segher&kernel.crashing.org>
2556
2557 * config/rs6000/rs6000.md (cstore<mode>4_signed): New expander.
2558 (cstore<mode>4): Call it.
2559
2560 2015-12-04 Jakub Jelinek <jakub@redhat.com>
2561
2562 * tree-tailcall.c (find_tail_calls): Ignore GIMPLE_NOPs.
2563
2564 PR tree-optimization/68680
2565 * calls.c (special_function_p): Return ECF_MAY_BE_ALLOCA for
2566 BUILT_IN_ALLOCA{,_WITH_ALIGN}. Don't check for __builtin_alloca
2567 by name.
2568
2569 PR tree-optimization/68671
2570 * tree-ssa-reassoc.c (maybe_optimize_range_tests): For basic
2571 blocks starting with the successor of first bb we've modified
2572 and ending with last_bb call reset_flow_sensitive_info_in_bb.
2573
2574 2015-12-04 Jeff Law <law@redhat.com>
2575
2576 * tree-ssa-reassoc.c (maybe_optimize_range_tests): Return boolean
2577 indicating if a gimple conditional was optimized to true/false.
2578 (reassociate_bb): Bubble up return value from
2579 maybe_optimize_range_tests.
2580 (do_reassoc): Similarly, but for reassociate_bb.
2581 (execute_reassoc): Return TODO_cleanup_cfg as needed.
2582
2583 2015-12-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2584
2585 * config/aarch64/aarch64.c (aarch64_override_options_internal):
2586 Do not alter target_flags due to TARGET_GENERAL_REGS_ONLY_P.
2587 * doc/invoke.texi (AArch64 options): Mention that -mgeneral-regs-only
2588 does not affect the assembler directives.
2589
2590 2015-12-04 Dominik Vogt <vogt@linux.vnet.ibm.com>
2591
2592 * config/s390/s390.c (s390_asm_file_start): Implement hook function to
2593 emit .machine and .machinemode to the top of the assembler file.
2594 (TARGET_ASM_FILE_START): Provide target hook.
2595 (s390_asm_output_machine_for_arch): Protect with
2596 HAVE_AS_MACHINE_MACHINEMODE instead of S390_USE_TARGET_ATTRIBUTE.
2597
2598 2015-12-04 Dominik Vogt <vogt@linux.vnet.ibm.com>
2599
2600 * config/s390/s390.opt (s390_arch_string): Remove.
2601 (s390_tune_string): Likewise.
2602 (s390_cost_pointer): Add Variable.
2603 (s390_tune_flags): Add TargetVariable.
2604 (s390_arch_flags, march=, mbackchain, mdebug, mesa, mhard-dfp),
2605 (mhard-float, mlong-double-128, mlong-double-64, mhtm, mvx),
2606 (mpacked-stack, msmall-exec, msoft-float, mstack-guard=, mstack-size=),
2607 (mtune=, mmvcle, mzvector, mzarch, mbranch-cost=, mwarn-dynamicstack),
2608 (mwarn-framesize=): Save option.
2609 (mno-stack-guard, mno-stack-guard): New option.
2610 (mwarn-dynamicstack): Allow mno-warn-dynamicstack.
2611 (mwarn-framesize=): Convert to UInteger (negative values are rejected
2612 now).
2613 * config/s390/s390-c.c (s390_cpu_cpp_builtins_internal): Split setting
2614 macros changeable through the GCC target pragma into a separate
2615 function.
2616 (s390_cpu_cpp_builtins): Likewise.
2617 (s390_pragma_target_parse): New function, implement GCC target pragma
2618 if enabled.
2619 (s390_register_target_pragmas): Register s390_pragma_target_parse if
2620 available.
2621 * common/config/s390/s390-common.c (s390_handle_option):
2622 Export.
2623 Move setting s390_arch_flags to s390.c.
2624 Remove s390_tune_flags.
2625 Allow 0 as argument to -mstack-size (switch to default value).
2626 Allow 0 as argument to -mstack-guard (switch off).
2627 Remove now unnecessary explicit parsing code for -mwarn-framesize.
2628 * config/s390/s390-protos.h (s390_handle_option): Export.
2629 (s390_valid_target_attribute_tree): Export.
2630 (s390_reset_previous_fndecl): Export.
2631 * config/s390/s390-builtins.def: Use new macro B_GROUP to mark the start
2632 and end of HTM and VX builtins.
2633 (s390_asm_output_function_prefix): Declare hook.
2634 (s390_asm_declare_function_size): Likewise.
2635 * config/s390/s390-builtins.h (B_GROUP): Use macro.
2636 * config/s390/s390-opts.h: Add comment about processor_type usage.
2637 * config/s390/s390.h (TARGET_CPU_IEEE_FLOAT_P, TARGET_CPU_ZARCH_P),
2638 (TARGET_CPU_LONG_DISPLACEMENT_P, TARGET_CPU_EXTIMM_P, TARGET_CPU_DFP_P),
2639 (TARGET_CPU_Z10_P, TARGET_CPU_Z196_P, TARGET_CPU_ZEC12_P),
2640 (TARGET_CPU_HTM_P, TARGET_CPU_Z13_P, TARGET_CPU_VX_P),
2641 (TARGET_HARD_FLOAT_P, TARGET_LONG_DISPLACEMENT_P, TARGET_EXTIMM_P),
2642 (TARGET_DFP_P, TARGET_Z10_P, TARGET_Z196_P, TARGET_ZEC12_P),
2643 (TARGET_HTM_P, TARGET_Z13_P, TARGET_VX_P, TARGET_CPU_EXTIMM),
2644 (TARGET_CPU_DFP, TARGET_CPU_Z10, TARGET_CPU_Z196, TARGET_CPU_ZEC12),
2645 (TARGET_CPU_HTM, TARGET_CPU_Z13, TARGET_LONG_DISPLACEMENT),
2646 (TARGET_EXTIMM, TARGET_DFP, TARGET_Z10, TARGET_Z196, TARGET_ZEC12),
2647 (TARGET_Z13, TARGET_VX, S390_USE_TARGET_ATTRIBUTE),
2648 (S390_USE_ARCHITECTURE_MODIFIERS, SWITCHABLE_TARGET),
2649 (ASM_DECLARE_FUNCTION_SIZE, ASM_OUTPUT_FUNCTION_PREFIX): Likewise.
2650 * config/s390/vecintrin.h: Use vector definitions even if __VEC__ is
2651 undefined.
2652 (vec_all_nan): Rewrite as macro using statement expressions to avoid
2653 that the vector keyword needs to be defined when including the file.
2654 (vec_all_numeric): Likewise.
2655 (vec_any_nan): Likewise.
2656 (vec_any_numeric): Likewise.
2657 * config/s390/s390.c (s390_previous_fndecl): New static variable.
2658 (s390_set_current_function): New function.
2659 (s390_cost): Wrapper macro to allow defining the cost table pointer in
2660 the options file.
2661 (processor_table): Table for march= and mtune= parsing.
2662 (s390_init_builtins): Enable all builtins and types unconditionally.
2663 (s390_expand_builtin): Generate an error message if builtin is not
2664 supported by current options.
2665 Correct an error message.
2666 (s390_function_specific_restore): New function to set s390_cost.
2667 (s390_asm_output_machine_for_arch): New function for emitting .machine
2668 and .machinmode directives to the assembler file.
2669 (s390_asm_output_function_prefix): Likewise.
2670 (s390_asm_declare_function_size): Likewise.
2671 (s390_asm_output_function_label): Add mdebug output for feature testing.
2672 (s390_option_override): Move implementation into internal function.
2673 (s390_option_override_internal): Likewise.
2674 Implement option overriding based on current options.
2675 (s390_valid_target_attribute_inner_p): New function implementing target
2676 attribute logic.
2677 (s390_valid_target_attribute_tree): Likewise.
2678 (s390_valid_target_attribute_p): Likewise.
2679 (s390_reset_previous_fndecl): Likewise.
2680 (s390_set_current_function): Likewise.
2681 (TARGET_SET_CURRENT_FUNCTION): Provide target hook function.
2682 (TARGET_OPTION_VALID_ATTRIBUTE_P): Likewise.
2683 (TARGET_OPTION_RESTORE): Likewise.
2684 * doc/extend.texi: S390: Document target attribute and pragma.
2685 * config.in: Regenerated.
2686 * configure: Regenerated.
2687 * configure.ac: S390: Check for .machinemode and .machine in gas.
2688 S390: Check for architecture modifiers support in gas.
2689
2690 2015-12-04 Kirill Yukhin <kirill.yukhin@intel.com>
2691
2692 * doc/extend.texi ("simd"): Describe new flags.
2693
2694 2015-12-04 Ilya Enkovich <enkovich.gnu@gmail.com>
2695
2696 * config/i386/sse.md (<avx512>_store<mode>_mask): Fix
2697 operand checked for alignment.
2698
2699 2015-12-04 Nathan Sidwell <nathan@acm.org>
2700
2701 * config/nvptx/nvptx.c (write_one_arg): Deal with prologue
2702 emission too. Change 'no_arg_types' to 'prototyped'.
2703 (write_fn_proto): Use write_one_arg for stdarg, static chain &
2704 main.
2705 (nvptx_declare_function_name): Use write_one_arg for prologue copies.
2706
2707 2015-12-04 Richard Biener <rguenther@suse.de>
2708
2709 * tree-ssa-sccvn.c (sccvn_dom_walker): Add unreachable_dom
2710 member and initialize it.
2711 (sccvn_dom_walker::after_dom_children): Reset unreachable_dom
2712 if necessary.
2713 (sccvn_dom_walker::before_dom_children): If unreachable_dom
2714 is set BB is not reachable either. Set unreachable_dom
2715 if not set and BB is unreachable.
2716
2717 2015-12-04 Richard Biener <rguenther@suse.de>
2718
2719 * bitmap.c (bitmap_find_bit): Guard the bitmap descriptor
2720 query with GATHER_STATISTICS.
2721
2722 2015-12-04 Eric Botcazou <ebotcazou@adacore.com>
2723
2724 PR middle-end/65958
2725 * gimplify.c (struct gimplify_ctx): Turn boolean fields into 1-bit
2726 fields, add keep_stack and reorder them.
2727 (gimplify_bind_expr): Save gimplify_ctxp->keep_stack on entry then
2728 set it to false. Do not insert a stack save/restore pair if it has
2729 been set to true by the gimplification of the statements.
2730 Restore it to the saved value on exit if it is still false.
2731 (gimplify_vla_decl): Do not set gimplify_ctxp->save_stack here.
2732 (gimplify_call_expr) <BUILT_IN_ALLOCA[_WITH_ALIGN]>: New case. Set
2733 either save_stack or keep_stack depending on CALL_ALLOCA_FOR_VAR_P.
2734 * doc/extend.texi (Variable Length): Document new behavior.
2735 * doc/generic.texi (Blocks): Document new handling of VLAs.
2736
2737 2015-12-04 Eric Botcazou <ebotcazou@adacore.com>
2738 Tristan Gingold <gingold@adacore.com>
2739
2740 PR middle-end/65958
2741 * config/aarch64/aarch64-protos.h (aarch64_output_probe_stack-range):
2742 Declare.
2743 * config/aarch64/aarch64.md: Declare UNSPECV_BLOCKAGE and
2744 UNSPEC_PROBE_STACK_RANGE.
2745 (blockage): New instruction.
2746 (probe_stack_range_<PTR:mode>): Likewise.
2747 * config/aarch64/aarch64.c (aarch64_emit_probe_stack_range): New
2748 function.
2749 (aarch64_output_probe_stack_range): Likewise.
2750 (aarch64_expand_prologue): Invoke aarch64_emit_probe_stack_range if
2751 static builtin stack checking is enabled.
2752 * config/aarch64/aarch64-linux.h (STACK_CHECK_STATIC_BUILTIN):
2753 Define to 1.
2754
2755 2015-12-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2756
2757 PR target/68214
2758 * config/arm/arm.md (*call_mem): Delete pattern.
2759 (*call_value_mem): Likewise.
2760 * config/arm/arm.c (output_call_mem): Delete.
2761 * config/arm/arm-protos.h (output_call_mem): Delete prototype.
2762
2763 2015-12-04 Bin Cheng <bin.cheng@arm.com>
2764
2765 * config/aarch64/atomics.md (atomic_store<mode>): Use predicate
2766 aarch64_sync_memory_operand.
2767
2768 2015-12-04 Jakub Jelinek <jakub@redhat.com>
2769
2770 PR target/68655
2771 * config/i386/i386.c (canonicalize_vector_int_perm): New function.
2772 (expand_vec_perm_1): Use it and recurse if everything else
2773 failed. Use nd.perm instead of perm2.
2774 (expand_vec_perm_even_odd_1): If testing_p, use gen_raw_REG
2775 instead of gen_lowpart for the target.
2776 (ix86_expand_vec_perm_const_1): Use canonicalize_vector_int_perm
2777 and recurse if everything else failed.
2778
2779 2015-12-04 Richard Biener <rguenther@suse.de>
2780
2781 PR middle-end/68636
2782 * builtins.c (get_pointer_alignment_1): Take care of byte to
2783 bit alignment computation overflow.
2784
2785 2015-12-04 Richard Biener <rguenther@suse.de>
2786
2787 PR middle-end/67438
2788 * match.pd: Guard ~X cmp ~Y -> Y cmp X and the variant with
2789 a constant with single_use.
2790
2791 2015-12-04 Bin Cheng <bin.cheng@arm.com>
2792 Jiong Wang <jiong.wang@arm.com>
2793
2794 * config/aarch64/aarch64.c (aarch64_legitimize_address): legitimize
2795 address expressions like Ra + Rb + CONST and Ra + Rb<<SCALE + CONST.
2796
2797 2015-12-03 Jan Hubicka <hubicka@ucw.cz>
2798
2799 * alias.c (alias_set_subset_of, alias_sets_must_conflict_p):
2800 Add short circuit for !flag_strict_aliasing
2801 (get_alias_set): Remove flag_strict_aliasing check.
2802 (new_alias_set): Likewise.
2803
2804 2015-12-03 Evandro Menezes <e.menezes@samsung.com>
2805
2806 * config/aarch64/aarch64-cores.def: Use the Exynos M1 cost model.
2807 * config/aarch64/aarch64.c (exynosm1_addrcost_table): New variable.
2808 (exynosm1_regmove_cost): Likewise.
2809 (exynosm1_vector_cost): Likewise.
2810 (exynosm1_tunings): Likewise.
2811 * config/arm/aarch-cost-tables.h (exynosm1_extra_costs): Likewise.
2812 * config/arm/arm.c (arm_exynos_m1_tune): Likewise.
2813
2814 2015-12-03 Alan Lawrence <alan.lawrence@arm.com>
2815 Richard Biener <richard.guenther@gmail.com>
2816
2817 * cfgexpand.c (pass_expand::execute): Replace call to
2818 redirect_edge_var_map_destroy with redirect_edge_var_map_empty.
2819 * tree-ssa.c (delete_tree_ssa): Likewise.
2820 * function.c (set_cfun): Call redirect_edge_var_map_empty.
2821 * passes.c (execute_one_ipa_transform_pass, execute_one_pass): Likewise.
2822 * tree-ssa.h (redirect_edge_var_map_destroy): Remove.
2823 (redirect_edge_var_map_empty): New.
2824 * tree-ssa.c (redirect_edge_var_map_destroy): Remove.
2825 (redirect_edge_var_map_empty): New.
2826
2827 2015-12-03 Jeff Law <law@redhat.com>
2828
2829 PR tree-optimization/68599
2830 * loop-init.c (rtl_loop_init): Set LOOPS_HAVE_RECORDED_EXITS
2831 in call to loop_optimizer_init.
2832 * loop-iv.c (get_simple_loop_desc): Only allow unsafe loop
2833 optimization to drop the assumptions/infinite notations if
2834 the loop has a single exit.
2835
2836 2015-12-03 Richard Sandiford <richard.sandiford@arm.com>
2837
2838 * doc/md.texi (vec_load_lanes@var{m}@var{n}): Document that
2839 the pattern cannot FAIL.
2840 (vec_store_lanes@var{m}@var{n}): Likewise.
2841 (maskload@var{m}@var{n}): Likewise.
2842 (maskstore@var{m}@var{n}): Likewise. Fix a cut-&-paste error
2843 in the name of the pattern.
2844 (rsqrt@var{m}2): Document that mode m must be a scalar or vector
2845 floating-point mode and that all operands have that mode.
2846 (fmin@var{m}3, fmax@var{m}3): Likewise. Document that the
2847 pattern cannot FAIL.
2848 (sqrt@var{m}2): Document that mode m must be a scalar or vector
2849 floating-point mode, that all operands have that mode, and that
2850 the patterns cannot FAIL. Remove previous documentation referring
2851 to @code{double} and @code{float}.
2852 (fmod@var{m}3, remainder@var{m}3, cos@var{m}2, sin@var{m}2)
2853 (sincos@var{m}3, log@var{m}2, pow@var{m}3, atan2@var{m}3)
2854 (copysign@var{m}3): Likewise.
2855 (exp@var{m}2): Likewise. Explicitly state the base.
2856 (floor@var{m}2): As for sqrt@var{m}2, but also specify the operands.
2857 (btrunc@var{m}2, rint@var{m}2): Likewise.
2858 (round@var{m}2): Likewise. Fix incorrect description of rounding
2859 effect.
2860 (ceil@var{m}2): As for round@var{m}2.
2861 (nearbyint@var{m}2): As for floor@var{m}2, but also mention that
2862 the instruction must not raise an inexact condition.
2863 (scalb@var{m}3): Document previously-undocumented pattern
2864 (ldexp@var{m}3, tan@var{m}2, asin@var{m}2, acos@var{m}2)
2865 (atan@var{m}2, expm1@var{m}2, exp10@var{m}2, exp2@var{m}2)
2866 (log1p@var{m}2, log10@var{m}2, log2@var{m}2, logb@var{m}2)
2867 (significand@var{m}2): Likewise.
2868 (ffs@var{m}2): Fix the description of the modes, so that operand 1 has
2869 mode m and operand 0 is defined more freely. Document that @var{m}
2870 can be a scalar or vector integer mode and that the pattern is not
2871 allowed to FAIL.
2872 (clz@var{m}2, ctz@var{m}2, popcount@var{m}2, parity@var{m}2): Likewise.
2873 (clrsb@var{m}2): Likewise, except that the description of the
2874 mode was missing in this case.
2875
2876 2015-12-03 Richard Sandiford <richard.sandiford@arm.com>
2877
2878 * internal-fn.def (RSQRT): New function.
2879 * optabs.def (rsqrt_optab): New optab.
2880 * doc/md.texi (rsqrtM2): Document.
2881 * target.def (builtin_reciprocal): Replace gcall argument with
2882 a function decl. Restrict hook to machine functions.
2883 * doc/tm.texi: Regenerate.
2884 * targhooks.h (default_builtin_reciprocal): Update prototype.
2885 * targhooks.c (default_builtin_reciprocal): Likewise.
2886 * tree-ssa-math-opts.c: Include internal-fn.h.
2887 (internal_fn_reciprocal): New function.
2888 (pass_cse_reciprocals::execute): Call it, and build a call to an
2889 internal function on success. Only call targetm.builtin_reciprocal
2890 for machine functions.
2891 * config/aarch64/aarch64-protos.h (aarch64_builtin_rsqrt): Remove
2892 second argument.
2893 * config/aarch64/aarch64-builtins.c (aarch64_expand_builtin_rsqrt):
2894 Rename aarch64_rsqrt_<mode>2 to rsqrt<mode>2.
2895 (aarch64_builtin_rsqrt): Remove md_fn argument and only handle
2896 machine functions.
2897 * config/aarch64/aarch64.c (use_rsqrt_p): New function.
2898 (aarch64_builtin_reciprocal): Replace gcall argument with a
2899 function decl. Use use_rsqrt_p. Remove optimize_size check.
2900 Only handle machine functions. Update call to aarch64_builtin_rsqrt.
2901 (aarch64_optab_supported_p): New function.
2902 (TARGET_OPTAB_SUPPORTED_P): Define.
2903 * config/aarch64/aarch64-simd.md (aarch64_rsqrt_<mode>2): Rename to...
2904 (rsqrt<mode>2): ...this.
2905 * config/i386/i386.c (use_rsqrt_p): New function.
2906 (ix86_builtin_reciprocal): Replace gcall argument with a
2907 function decl. Use use_rsqrt_p. Remove optimize_insn_for_size_p
2908 check. Only handle machine functions.
2909 (ix86_optab_supported_p): Handle rsqrt_optab.
2910 * config/rs6000/rs6000.c (TARGET_OPTAB_SUPPORTED_P): Define.
2911 (rs6000_builtin_reciprocal): Replace gcall argument with a
2912 function decl. Remove optimize_insn_for_size_p check.
2913 Only handle machine functions.
2914 (rs6000_optab_supported_p): New function.
2915
2916 2015-12-03 Bernd Schmidt <bschmidt@redhat.com>
2917
2918 PR target/68471
2919 PR target/68472
2920 * config/i386/i386.c (ix86_mitigate_rop): Don't call
2921 compute_bb_for_insn again. Call df_insn_rescan_all.
2922 * config/i386/i386.md (set_got_rex64): Override modrm_class.
2923
2924 * regrename.c (build_def_use): Ignore stack regs if regstack_completed.
2925
2926 2015-12-03 Nathan Sidwell <nathan@acm.org>
2927
2928 * config/nvptx/nvptx-protos.h (npvptx_section_from_addr_space): Delete.
2929 * config/nvptx/nvptx.c (enum nvptx_data_area): New.
2930 (SYMBOL_DATA_AREA, SET_SYMBOL_DATA_AREA): New defines.
2931 (nvptx_option_override): Set data ares for worker vars.
2932 (nvptx_addr_space_from_sym): Delete.
2933 (nvptx_encode_section_info): New.
2934 (section_for_sym, section_for_decl): New.
2935 (nvptx_maybe_convert_symbolic_operand): Get data area from symbol flags.
2936 (nvptx_section_from_addr_space): Delete.
2937 (nvptx_section_for_decl): Delete.
2938 (nvptx_output_aligned, nvptx_declare_object_name,
2939 nvptx_assemble_undefined_decl): Use section_for_decl, remove
2940 unnecessary checks.
2941 (nvptx_print_operand): Add 'D', adjust 'A'.
2942 (nvptx_expand_worker_addr): Adjust unspec generation.
2943 (TARGET_ENCODE_SECTION_INFO): Override.
2944 * config/nvptx/nvptx.h (ADDR_SPACE_GLOBAL, ADDR_SPACE_SHARED,
2945 ADDR_SPACE_CONST, ADDR_SPACE_LOCAL, ADDR_SPACE_PARAM): Delete.
2946 * config/nvptx/nvptx.md (UNSPEC_FROM_GLOBAL, UNSPEC_FROM_LOCAL,
2947 UNSPEC_FROM_PARAM, UNSPEC_FROM_SHARED, UNSPEC_FROM_CONST,
2948 UNSPEC_TO_GLOBAL, UNSPEC_TO_LOCAL, UNSPEC_TO_PARAM,
2949 UNSPEC_TO_SHARED, UNSPEC_TO_CONST): Delete.
2950 (UNSPEC_TO_GENERIC): New.
2951 (nvptx_register_or_symbolic_operand): Delete.
2952 (cvt_code, cvt_name, cvt_str): Delete.
2953 (convaddr_<cvt_name><mode> [P]): Delete.
2954 (convaddr_<mode> [P]): New.
2955
2956 2015-12-03 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2957
2958 PR rtl-optimization/68624
2959 * ifcvt.c (noce_try_cmove_arith): Check clobbers of temp regs in both
2960 blocks if they exist and simplify the logic choosing the order to emit
2961 them in.
2962
2963 2015-12-03 Richard Biener <rguenther@suse.de>
2964
2965 PR tree-optimization/66051
2966 * tree-vect-slp.c (vect_build_slp_tree_1): Remove restriction
2967 on load group size. Do not pass in vectorization_factor.
2968 (vect_transform_slp_perm_load): Do not require any permute support.
2969 (vect_build_slp_tree): Do not pass in vectorization factor.
2970 (vect_analyze_slp_instance): Do not compute vectorization
2971 factor estimate. Use vector size instead of vectorization factor
2972 estimate to split store groups for BB vectorization.
2973
2974 2015-12-03 Ilya Enkovich <enkovich.gnu@gmail.com>
2975
2976 * cfgexpand.c (expand_gimple_stmt_1): Return statement with
2977 DECL as return value is allowed to have NULL bounds.
2978
2979 2015-12-03 Tom de Vries <tom@codesourcery.com>
2980
2981 * graphite-isl-ast-to-gimple.c (binary_op_to_tree)
2982 (gcc_expression_from_isl_expr_op): Guard isl_ast_op_zdiv_r usage with
2983 HAVE_ISL_OPTIONS_SET_SCHEDULE_SERIALIZE_SCCS.
2984
2985 2015-12-03 Richard Biener <rguenther@suse.de>
2986
2987 PR tree-optimization/67800
2988 PR tree-optimization/68333
2989 * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Restore
2990 restriction to reduction contexts but allow SLP reductions as well.
2991 (vect_recog_sad_pattern): Likewise.
2992 (vect_recog_widen_sum_pattern): Likewise.
2993
2994 2015-12-03 Richard Biener <rguenther@suse.de>
2995
2996 PR tree-optimization/68639
2997 * tree-vect-data-refs.c (dr_group_sort_cmp): Split groups
2998 belonging to different loops.
2999 (vect_analyze_data_ref_accesses): Likewise.
3000
3001 2015-12-02 Kirill Yukhin <kirill.yukhin@intel.com>
3002
3003 * config/i386/sse.md (define_insn "vec_extract_hi_<mode>_maskm"):
3004 Remove "prefix_extra".
3005 (define_insn "vec_extract_hi_<mode>_mask"): New.
3006 (define_insn "vec_extract_hi_<mode>"): Remove masking.
3007
3008 2015-12-02 Jan Hubicka <hubicka@ucw.cz>
3009
3010 * ipa-pure-const.c (ignore_edge_for_pure_const): New function.
3011 (propagate_pure_const): Use it; fix comments and optimize loops.
3012
3013 2015-12-02 Jan Hubicka <hubicka@ucw.cz>
3014
3015 * ipa-pure-const.c (ignore_edge): Rename to ...
3016 (ignore_edge_for_nothrow) ... this one; also ignore eges to
3017 interposable functions or ones that can not throw.
3018 (propagate_nothrow): Fix handling of availability.
3019
3020 2015-12-02 Jan Hubicka <hubicka@ucw.cz>
3021
3022 PR ipa/68184
3023 * cgraphunit.c (cgraph_node::analyze): Set can_throw_external.
3024
3025 2015-12-02 Aditya Kumar <aditya.k7@samsung.com>
3026 Sebastian Pop <s.pop@samsung.com>
3027
3028 * graphite-isl-ast-to-gimple.c (binary_op_to_tree): Handle
3029 isl_ast_op_zdiv_r.
3030 (gcc_expression_from_isl_expr_op): Same.
3031
3032 2015-12-02 Aditya Kumar <aditya.k7@samsung.com>
3033 Sebastian Pop <s.pop@samsung.com>
3034
3035 * graphite-isl-ast-to-gimple.c (copy_bb_and_scalar_dependences): Check
3036 that insertion point is still in the region.
3037
3038 2015-12-02 Aditya Kumar <aditya.k7@samsung.com>
3039 Sebastian Pop <s.pop@samsung.com>
3040
3041 PR tree-optimization/68550
3042 * graphite-isl-ast-to-gimple.c (copy_loop_phi_nodes): Add dump.
3043 (copy_bb_and_scalar_dependences): Do not code generate loop peeled
3044 statements.
3045
3046 2015-12-02 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
3047
3048 * configure.ac: Check assembler support for R_PPC64_ENTRY relocation.
3049 * configure: Regenerate.
3050 * config.in: Regenerate.
3051 * config/rs6000/rs6000.c (rs6000_global_entry_point_needed_p): New
3052 function.
3053 (rs6000_output_function_prologue): Use it instead of checking
3054 cfun->machine->r2_setup_needed. Use internal labels instead of
3055 GNU as local label extension. Handle ELFv2 large code model.
3056 (rs6000_output_mi_thunk): Do not set cfun->machine->r2_setup_needed.
3057 (rs6000_elf_declare_function_name): Handle ELFv2 large code model.
3058
3059 2015-12-02 Jakub Jelinek <jakub@redhat.com>
3060
3061 PR target/68647
3062 * optabs.c (expand_doubleword_popcount, expand_doubleword_parity):
3063 New functions.
3064 (expand_unop): Use them.
3065
3066 2015-12-02 Marek Polacek <polacek@redhat.com>
3067
3068 PR c++/68653
3069 * tree.c (nonnull_arg_p): Allow OFFSET_TYPE.
3070
3071 2015-12-02 Nathan Sidwell <nathan@acm.org>
3072
3073 * config/nvptx/nvptx.c (enum nvptx_shuffle_kind): New. Absorb
3074 SHUFFLE defines.
3075 (nvptx_gen_shuffle, nvptx_print_operand, nvptx_expand_shuffle): Adjust.
3076
3077 2015-12-02 Aditya Kumar <aditya.k7@samsung.com>
3078 Sebastian Pop <s.pop@samsung.com>
3079
3080 * graphite-dependences.c (scop_get_reads): Add extra dumps.
3081 (scop_get_must_writes): Same.
3082 (scop_get_may_writes): Same.
3083 (compute_deps): Same.
3084 * graphite-sese-to-poly.c (bounds_are_valid): New.
3085 (pdr_add_data_dimensions): Call bounds_are_valid.
3086
3087 2015-12-02 Aditya Kumar <aditya.k7@samsung.com>
3088 Sebastian Pop <s.pop@samsung.com>
3089
3090 * common.opt (flag_loop_optimize_isl): Renamed flag_loop_nest_optimize.
3091 * graphite-poly.c (apply_poly_transforms): Same.
3092 * graphite.c (gate_graphite_transforms): Same.
3093 * toplev.c (process_options): Same.
3094
3095 2015-12-02 Eric Botcazou <ebotcazou@adacore.com>
3096
3097 * config/mips/mips.c (mips_emit_probe_stack_range): Adjust.
3098 (mips_output_probe_stack_range): Rotate the loop and simplify.
3099
3100 2015-12-02 David Sherwood <david.sherwood@arm.com>
3101
3102 * config/aarch64/aarch64.md: New pattern.
3103 * config/aarch64/aarch64-simd.md: Likewise.
3104 * config/aarch64/iterators.md: New unspecs, iterators.
3105
3106 2015-12-02 Pierre-Marie de Rodat <derodat@adacore.com>
3107
3108 * dwarf2out.c (dwar2out_var_location): In addition to notes,
3109 process indirect calls whose target is compile-time known.
3110 Enhance pattern matching to get the SYMBOL_REF they embed.
3111 (gen_subprogram_die): Handle such calls.
3112 * final.c (final_scan_insn): For call instructions, invoke the
3113 var_location debug hook only after the call has been emitted.
3114
3115 2015-12-02 Tom de Vries <tom@codesourcery.com>
3116
3117 * gimplify.c (enum gimplify_omp_var_data): Add enum value
3118 GOVD_MAP_FORCE.
3119 (oacc_default_clause): Fix default for scalars in oacc kernels.
3120 (gimplify_adjust_omp_clauses_1): Handle GOVD_MAP_FORCE.
3121
3122 2015-12-02 Tom de Vries <tom@codesourcery.com>
3123
3124 * omp-low.c (install_var_field, scan_sharing_clauses): Add and handle
3125 parameter base_pointers_restrict.
3126 (omp_target_base_pointers_restrict_p): New function.
3127 (scan_omp_target): Call scan_sharing_clauses with
3128 base_pointers_restrict arg.
3129
3130 2015-12-02 Nathan Sidwell <nathan@acm.org>
3131
3132 * config/nvptx/nvptx-protos.h (nvptx_output_mov_insn): Declare.
3133 (nvptx_underlying_object_mode): Delete.
3134 * config/nvptx/nvptx.c (nvptx_underlying_object_mode): Delete.
3135 (output_reg): New.
3136 (nvptx_declare_function_name): Use output_reg. Remove punning buffer.
3137 (nvptx_output_mov_insn): New.
3138 (nvptx_print_operand): Separate SUBREG handling, remove 'f' case,
3139 Use output_reg. Merge 't' and 'u' handling.
3140 * config/nvptx/nvptx.h (NVPTX_PUNNING_BUFFER_REGNUM): Delete.
3141 (struct machine_function): Remvoe punning_buffer_size.
3142 (REGISTER_NAMES): Remove %punbuffer.
3143 * config/nvptx/nvptx.md (UNSPEC_CPLX_LOWPART,
3144 UNSPEC_CPLX_HIGHPART): Delete.
3145 (*mov<mode>_insn [QHSDIM): Remove unnecessary constraints, use
3146 nvptx_output_mov_insn.
3147 (*mov<mode>_insn [SDFM): Reorder constraints to match integer moc.
3148 Use nvptx_output_mov_insn.
3149 (highpartscsf2, set_highpartscsf2, lowpartscsf2, set_lowpartscsf2):
3150 Delete.
3151 (mov<mode> [SDCM]): Delete.
3152
3153 2015-12-02 Richard Biener <rguenther@suse.de>
3154
3155 * tree.h (tree_invariant_p): Declare.
3156 * tree.c (tree_invariant_p): Export.
3157 * genmatch.c (dt_simplify::gen_1): For GENERIC code-gen never
3158 create SAVE_EXPRs but reject patterns if we would need to.
3159
3160 2015-12-02 Tom de Vries <tom@codesourcery.com>
3161
3162 * tree-ssa-structalias.c (find_func_aliases_for_builtin_call)
3163 (find_func_clobbers, ipa_pta_execute): Handle BUILT_IN_GOACC_PARALLEL.
3164
3165 2015-12-02 Segher Boessenkool <segher@kernel.crashing.org>
3166
3167 * config/rs6000/rs6000.md (cstore_si_as_di): New expander.
3168 (cstore<mode>4): Use it.
3169
3170 2015-12-02 Richard Biener <rguenther@suse.de>
3171
3172 PR tree-optimization/68625
3173 * tree-cfgcleanup.c (cleanup_tree_cfg_bb): Do not call
3174 cleanup_control_flow_bb.
3175 (cleanup_tree_cfg_1): First perform cleanup_control_flow_bb
3176 on all BBs, then cleanup_tree_cfg_bb and finally iterate
3177 over the worklist doing both.
3178
3179 2015-12-02 Richard Sandiford <richard.sandiford@arm.com>
3180
3181 PR tree-optimization/68432
3182 * coretypes.h (optimization_type): New enum.
3183 * doc/tm.texi.in (TARGET_OPTAB_SUPPORTED_P): New hook.
3184 * doc/tm.texi: Regenerate.
3185 * target.def (optab_supported_p): New hook.
3186 * targhooks.h (default_optab_supported_p): Declare.
3187 * targhooks.c (default_optab_supported_p): New function.
3188 * predict.h (function_optimization_type): Declare.
3189 (bb_optimization_type): Likewise.
3190 * predict.c (function_optimization_type): New function.
3191 (bb_optimization_type): Likewise.
3192 * optabs-query.h (convert_optab_handler): Define an overload
3193 that takes an optimization type.
3194 (direct_optab_handler): Likewise.
3195 * optabs-query.c (convert_optab_handler): Likewise.
3196 (direct_optab_handler): Likewise.
3197 * internal-fn.h (direct_internal_fn_supported_p): Take an
3198 optimization_type argument.
3199 * internal-fn.c (direct_optab_supported_p): Likewise.
3200 (multi_vector_optab_supported_p): Likewise.
3201 (direct_internal_fn_supported_p): Likewise.
3202 * builtins.c (replacement_internal_fn): Update call to
3203 direct_internal_fn_supported_p.
3204 * gimple-match-head.c (build_call_internal): Likewise.
3205 * tree-vect-patterns.c (vect_recog_pow_pattern): Likewise.
3206 * tree-vect-stmts.c (vectorizable_internal_function): Likewise.
3207 * tree.c (maybe_build_call_expr_loc): Likewise.
3208 * config/i386/i386.c (ix86_optab_supported_p): New function.
3209 (TARGET_OPTAB_SUPPORTED_P): Define.
3210 * config/i386/i386.md (asinxf2): Remove optimize_insn_for_size_p check.
3211 (asin<mode>2, acosxf2, acos<mode>2, log1pxf2, log1p<mode>2)
3212 (expNcorexf3, expxf2, exp<mode>2, exp10xf2, exp10<mode>2, exp2xf2)
3213 (exp2<mode>2, expm1xf2, expm1<mode>2, ldexpxf3, ldexp<mode>3)
3214 (scalbxf3, scalb<mode>3, rint<mode>2, round<mode>2)
3215 (<rounding_insn>xf2, <rounding_insn><mode>2): Likewise.
3216
3217 2015-12-02 Richard Sandiford <richard.sandiford@arm.com>
3218
3219 * Makefile.in (GENSUPPORT_H): New macro.
3220 (build/gensupport.o, build/read-rtl.o, build/genattr.o)
3221 (build/genattr-common.o, build/genattrtab.o, build/genautomata.o)
3222 (build/gencodes.o, build/genconditions.o, build/genconfig.o)
3223 (build/genconstants.o, build/genextract.o, build/genflags.o)
3224 (build/gentarget-def.o): Use it.
3225 (build/genemit.o): Likewise. Depend on internal-fn.def.
3226 * genopinit.c: Move block comment to optabs.def.
3227 (optab_tag, optab_def): Move to gensupport.h
3228 (pattern): Likewise, renaming to optab_pattern.
3229 (match_pattern): Move to gensupport.c
3230 (gen_insn): Use find_optab.
3231 (patterns, pattern_cmp): Replace pattern with optab_pattern.
3232 (main): Likewise. Use num_optabs.
3233 * optabs.def: Add comment that was previously in genopinit.c.
3234 * gensupport.h (optab_tag): Moved from genopinit.c
3235 (optab_def): Likewise, expanding commentary.
3236 (optab_pattern): Likewise, after renaming from pattern.
3237 (optabs, num_optabs, find_optab): Declare.
3238 * gensupport.c (optabs): Moved from genopinit.c.
3239 (num_optabs): New variable.
3240 (match_pattern): Moved from genopinit.c.
3241 (find_optab): New function, extracted from genopinit.c:gen_insn.
3242 * genemit.c (nofail_optabs): New variable.
3243 (emit_c_code): New function.
3244 (gen_expand): Check whether the instruction is an optab that isn't
3245 allowed to fail. Call emit_c_code.
3246 (gen_split): Call emit_c_code here too.
3247 (main): Initialize nofail_optabs. Don't emit FAIL and DONE here.
3248
3249 2015-12-02 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
3250
3251 * config/s390/predicates.md (const_mask_operand): New predicate.
3252 * config/s390/s390-builtins.def: Set a smaller bitmask
3253 for a few builtins.
3254 * config/s390/vector.md: Change predicate from immediate_operand
3255 to either const_int_operand or const_mask_operand. Add special
3256 insn conditions on patterns which have to exclude certain values.
3257 * config/s390/vx-builtins.md: Likewise.
3258
3259 2015-12-02 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
3260
3261 * config/s390/vector.md ("*vec_set<mode>"): Change shift count
3262 mode from DI to SI.
3263
3264 2015-12-02 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
3265
3266 * config/s390/s390-builtin-types.def: New builtin types added.
3267 * config/s390/s390-builtins.def: Add s390_vec_splat_* definitions.
3268 * config/s390/s390.c (s390_expand_builtin): Always truncate
3269 constants to the mode in the pattern.
3270 * config/s390/vecintrin.h: Let the vec_splat_* macros point to the
3271 respective builtin __builtin_s390_vec_splat_*.
3272
3273 2015-12-02 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
3274
3275 * config/s390/s390-builtin-types.def: Sort builtin types.
3276
3277 2015-12-02 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
3278
3279 * config/s390/s390-c.c (s390_get_vstring_flags): Invert the
3280 condition for the RT flag.
3281
3282 2015-12-02 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
3283
3284 * config/s390/constraints.md ("jKK"): New constraint.
3285 * config/s390/s390.c (tm-constrs.h): Include for
3286 satisfies_constraint_*.
3287 (s390_legitimate_constant_p): Allow jKK constants. Use
3288 satisfies_constraint_* also for the others.
3289 (legitimate_reload_vector_constant_p): Likewise.
3290 (print_operand): Allow h output modifier on vectors.
3291 * config/s390/vector.md ("mov<mode>"): Add vrepi.
3292
3293 2015-12-02 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
3294
3295 * config/s390/vector.md ("*vec_splats<mode>"): Fix constraint
3296 letter I->K.
3297
3298 2015-12-02 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
3299
3300 * config/s390/s390.md ("bswap<mode>2"): Add support for strv and strvg.
3301 ("bswaphi2"): New pattern.
3302 New splitter for HI reg-reg bswap.
3303
3304 2015-11-27 Jiri Engelthaler <engycz@gmail.com>
3305
3306 PR driver/68029
3307 * opts-common.c (prune_options): Don't ignore -fdiagnostics-color
3308 if it is the first parameter.
3309
3310 2015-12-01 Richard Sandiford <richard.sandiford@arm.com>
3311
3312 PR tree-optimization/68577
3313 * tree-vect-stmts.c (simple_integer_narrowing): New function.
3314 (vectorizable_call): Restrict internal function handling
3315 to NONE and NARROW cases, using simple_integer_narrowing
3316 to test for the latter. Add cost of narrowing operation
3317 and insert it where necessary.
3318
3319 2015-12-01 Andreas Tobler <andreast@gcc.gnu.org>
3320
3321 * config/rs6000/freebsd64.h (ELFv2_ABI_CHECK): Add new macro.
3322 (SUBSUBTARGET_OVERRIDE_OPTIONS): Use it to decide whether to set
3323 rs6000_current_abi to ABI_AIX or ABI_ELFv2.
3324
3325 2015-12-01 Nathan Sidwell <nathan@acm.org>
3326
3327 * config/nvptx/nvptx-protos.h (nvptx_output_aligned_decl): Declare.
3328 * config/nvptx/nvptx.h (ASM_OUTPUT_ALIGNED_DECL_COMMON,
3329 ASM_OUTPUT_ALIGNED_DECL_LOCAL): Forward to nvptx_output_aligned_decl.
3330 * config/nvptx/nvptx.c (write_fn_marker, write_var_marker): New.
3331 (write_fn_proto, write_fn_proto_from_insn): Call write_fn_marker.
3332 (init_output_initializer): Call write_var_marker.
3333 (nvptx_output_aligned_decl): New.
3334 (nvptx_assemble_undefined_decl, nvptx_file_end): Call write_var_marker.
3335
3336 2015-12-01 Jan Hubicka <hubicka@ucw.cz>
3337
3338 * c-common.c (parse_optimize_options): Do not silently ignore
3339 -fstrict-aliasing changes.
3340
3341 2015-12-01 Jan Hubicka <hubicka@ucw.cz>
3342
3343 * lto-streamer-out.c (hash_tree): Do not stream TYPE_ALIAS_SET.
3344 * tree-streamer-out.c (pack_ts_type_common_value_fields): Do not
3345 stream TYPE_ALIAS_SET.
3346 * tree-streamer-in.c (unpack_ts_type_common_value_fields): Do not
3347 stream TYPE_ALIAS_SET.
3348
3349 2015-12-01 Nathan Sidwell <nathan@acm.org>
3350
3351 * config/nvptx/nvptx.c (nvptx_function_arg_advance): Don't
3352 consider mode.
3353
3354 2015-12-01 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
3355
3356 * config/rs6000/rs6000.c (const_load_sequence_p): Handle extra
3357 indirection for large and small code models.
3358 (adjust_vperm): Likewise.
3359
3360 2015-12-01 Julian Brown <julian@codesourcery.com>
3361 Cesar Philippidis <cesar@codesourcery.com>
3362 James Norris <James_Norris@mentor.com>
3363
3364 * gimple-pretty-print.c (dump_gimple_omp_target): Add host_data support.
3365 * gimple.h (gf_mask): Add GF_OMP_TARGET_KIND_OACC_HOST_DATA.
3366 (is_gimple_omp_oacc): Add support for above.
3367 * gimplify.c (omp_region_type): Add ORT_ACC_HOST_DATA.
3368 (omp_notice_variable): Diagnose undefined implicit uses of
3369 use_device variables in offloaded regions.
3370 (gimplify_scan_omp_clauses): Add host_data, use_device
3371 support. Diagnose undefined mapping of use_device variables in
3372 OpenACC clauses.
3373 (gimplify_omp_workshare): Add host_data support.
3374 (gimplify_expr): Likewise.
3375 * omp-builtins.def (BUILT_IN_GOACC_HOST_DATA): New.
3376 * omp-low.c (lookup_decl_in_outer_ctx)
3377 (maybe_lookup_decl_in_outer_ctx): Add optional argument to skip
3378 host_data regions.
3379 (scan_sharing_clauses): Support use_device.
3380 (check_omp_nesting_restrictions): Support host_data.
3381 (expand_omp_target): Support host_data.
3382 (lower_omp_target): Skip over outer host_data regions when looking
3383 up decls. Support use_device.
3384 (make_gimple_omp_edges): Support host_data.
3385 * tree-nested.c (convert_nonlocal_omp_clauses): Add use_device clause.
3386
3387 2015-12-01 Marek Polacek <polacek@redhat.com>
3388
3389 PR middle-end/68582
3390 * cgraphunit.c (check_global_declaration): Only depend
3391 on TREE_THIS_VOLATILE for VAR_DECLs.
3392
3393 2015-12-01 Richard Sandiford <richard.sandiford@arm.com>
3394
3395 PR tree-optimization/68474
3396 * tree-call-cdce.c (use_internal_fn): Protect call to
3397 gen_shrink_wrap_conditions.
3398
3399 2015-12-01 Christian Bruel <christian.bruel@st.com>
3400
3401 PR target/68617
3402 * config/arm/arm.opt (unaligned_access): Save.
3403 * config/arm/arm-c.c (__ARM_FEATURE_UNALIGNED): Conditionally define.
3404 * config/arm/arm.c (arm_option_override): Move unaligned_access setting.
3405 (arm_option_override_internal): ... here.
3406 * config/arm/arm.h (TARGET_32BIT_P): New macro.
3407
3408 2015-12-01 Richard Biener <rguenther@suse.de>
3409
3410 PR tree-optimization/68379
3411 * tree-vect-stmts.c (vectorizable_load): For BB vectorization
3412 always base loads on the first used DR of a group.
3413 * tree-vect-data-refs.c (vect_slp_analyze_and_verify_node_alignment):
3414 Compute alignment of the first scalar element unconditionally.
3415
3416 2015-12-01 Richard Biener <rguenther@suse.de>
3417
3418 PR middle-end/68590
3419 * genmatch.c (struct capture_info): Add match_use_count.
3420 (capture_info::walk_match): Increment match_use_count.
3421 (dt_simplify::gen_1): For GENERIC, only wrap multi-use
3422 replacements in a save_expr if they occur more often than
3423 in the original expression.
3424
3425 2015-12-01 Richard Biener <rguenther@suse.de>
3426
3427 PR ipa/68470
3428 * ipa-split.c (split_function): Handle main part not returning.
3429
3430 2015-12-01 Ilya Enkovich <enkovich.gnu@gmail.com>
3431
3432 PR middle-end/68595
3433 * tree-vect-stmts.c (vect_init_vector): Cast boolean
3434 scalars to a proper value before building a vector.
3435
3436 2015-12-01 Richard Sandiford <richard.sandiford@arm.com>
3437
3438 * genattrtab.c (check_attr_test): Take an attr_desc instead of
3439 an is_const flag. Put the file_location argument first.
3440 Update recursive calls. Improve error messages.
3441 (check_attr_value): Take a file location and use it instead
3442 of attr->loc. Improve error messages. Update calls to
3443 check_attr_test.
3444 (check_defs): Update call to check_attr_value.
3445 (make_canonical): Likewise.
3446 (gen_attr): Likewise.
3447 (main): Likewise.
3448 (gen_insn_reserv): Update call to check_attr_test.
3449
3450 2015-12-01 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
3451
3452 * config/aarch64/aarch64.c (aarch64_builtin_reciprocal): Fix typo.
3453
3454 2015-12-01 Richard Biener <rguenther@suse.de>
3455
3456 PR middle-end/68590
3457 * match.pd: Merge (eq @0 @0) and (ge/le @0 @0) patterns.
3458
3459 2015-12-01 Jan Hubicka <hubicka@ucw.cz>
3460
3461 * ipa-devirt.c (type_with_linkage_p, type_in_anonymous_namespace_p,
3462 odr_type_p): Move to ...
3463 * ipa-utils.h (type_with_linkage_p, type_in_anonymous_namespace_p,
3464 odr_type_p): here; miscro-optimize.
3465
3466 2015-12-01 Bin Cheng <bin.cheng@arm.com>
3467
3468 PR tree-optimization/68529
3469 * tree-ssa-loop-niter.c (number_of_iterations_ne): Add new param.
3470 Compute no-overflow information for control iv.
3471 (number_of_iterations_lt, number_of_iterations_le): Add new param.
3472 (number_of_iterations_cond): Pass new argument to above functions.
3473
3474 2015-11-30 Jan Hubicka <hubicka@ucw.cz>
3475
3476 * ipa-inline-transform.c (inline_call): Drop -fstrict-aliasing when
3477 inlining -fno-strict-aliasing into -fstrict-aliasing body.
3478
3479 2015-11-30 Aditya Kumar <aditya.k7@samsung.com>
3480 Sebastian Pop <s.pop@samsung.com>
3481
3482 PR tree-optimization/68565
3483 * graphite-isl-ast-to-gimple.c (binary_op_to_tree): Early return on
3484 codegen_error. Fail when rhs of division operations is integer_zerop.
3485 (ternary_op_to_tree): Early return on codegen_error.
3486 (unary_op_to_tree): Same.
3487 (nary_op_to_tree): Same.
3488 (gcc_expression_from_isl_expr_op): Same.
3489 (gcc_expression_from_isl_expression): Same.
3490 (graphite_create_new_loop): On codegen_error continue generating
3491 wrong code.
3492 (graphite_create_new_loop_guard): Same.
3493 (build_iv_mapping): Same.
3494 (graphite_create_new_guard): Same.
3495
3496 2015-11-30 Aditya Kumar <aditya.k7@samsung.com>
3497 Sebastian Pop <s.pop@samsung.com>
3498
3499 * graphite-isl-ast-to-gimple.c: Fix dump messages.
3500 * graphite-scop-detection.c: Same.
3501 * graphite-sese-to-poly.c (isl_id_for_ssa_name): Do not call get_name.
3502
3503 2015-11-30 Cesar Philippidis <cesar@codesourcery.com>
3504
3505 * tree-nested.c (convert_nonlocal_omp_clauses): Add support for
3506 OMP_CLAUSE_{NUM_GANGS,NUM_VECTORS,VECTOR_LENGTH,SEQ}.
3507 (convert_local_omp_clauses): Likewise.
3508
3509 2015-11-30 Tom de Vries <tom@codesourcery.com>
3510
3511 PR tree-optimization/46032
3512 * tree-ssa-structalias.c (find_func_aliases_for_call_arg): New function,
3513 factored out of ...
3514 (find_func_aliases_for_call): ... here.
3515 (find_func_aliases_for_builtin_call, find_func_clobbers): Handle
3516 BUILT_IN_GOMP_PARALLEL.
3517 (ipa_pta_execute): Same. Handle node->parallelized_function as a local
3518 function.
3519
3520 2015-11-30 Jakub Jelinek <jakub@redhat.com>
3521
3522 PR tree-optimization/68501
3523 * target.def (builtin_reciprocal): Replace the 3 arguments with
3524 a gcall * one, adjust description.
3525 * targhooks.h (default_builtin_reciprocal): Replace the 3 arguments
3526 with a gcall * one.
3527 * targhooks.c (default_builtin_reciprocal): Likewise.
3528 * tree-ssa-math-opts.c (pass_cse_reciprocals::execute): Use
3529 targetm.builtin_reciprocal even on internal functions, adjust
3530 the arguments and allow replacing an internal function with normal
3531 built-in.
3532 * config/i386/i386.c (ix86_builtin_reciprocal): Replace the 3 arguments
3533 with a gcall * one. Handle internal fns too.
3534 * config/rs6000/rs6000.c (rs6000_builtin_reciprocal): Likewise.
3535 * config/aarch64/aarch64.c (aarch64_builtin_reciprocal): Likewise.
3536 * doc/tm.texi (builtin_reciprocal): Document.
3537
3538 2015-11-30 Richard Biener <rguenther@suse.de>
3539
3540 PR tree-optimization/68592
3541 * tree-vect-loop.c (vect_analyze_loop_2): Reset SLP type also
3542 on the pattern def sequence.
3543
3544 2015-11-30 Nathan Sidwell <nathan@acm.org>
3545
3546 * config/nvptx/nvptx.c (nvptx_name_replacement): Move earlier.
3547 (write_one_arg): Reorder parms, add 'sep' param.
3548 (nvptx_write_function_decl): Rename to ...
3549 (write_fn_proto): ... here. Do name replacement. Emit linaer
3550 comment marker. Deal with both decls and defns. Simplify argument
3551 formatting.
3552 (write_function_decl_and_comment): Delete.
3553 (write_func_decl_from_insn): Rename to ...
3554 (write_fn_proto_from_insn): ... here. Don't do name replacement.
3555 (nvptx_record_fndecl): Call write_fn_proto.
3556 (nvptx_record_libfunc): Call write_fn_proto_from_insn.
3557 (nvptx_declare_function_name): Adjust for write_fn_proto changes.
3558 (nvotx_output_call_insn): Call write_fn_prot_from_insn.
3559
3560 2015-11-30 Kirill Yukhin <kirill.yukhin@intel.com>
3561
3562 * config/i386/i386.md (define_mode_iterator SWI1248_AVX512BW): New.
3563 (define_insn "*k<logic><mode>"): Use new iterator.
3564
3565 2015-11-30 Eric Botcazou <ebotcazou@adacore.com>
3566
3567 PR target/28115
3568 * config/sparc/sparc.c (supersparc_adjust_cost): Fix thinko.
3569 (sparc_adjust_cost): Add missing space.
3570
3571 2015-11-30 Richard Biener <rguenther@suse.de>
3572
3573 PR c/68162
3574 * dwarf2out.c (gen_type_die_with_usage): Keep variant types of arrays.
3575
3576 2015-11-30 Venkataramanan Kumar <Venkataramanan.Kumar@amd.com>
3577
3578 * tree-if-conv.c (struct ifc_dr): Add new tree base_predicate field.
3579 (hash_memrefs_baserefs_and_store_DRs_read_written_info): Hash
3580 base ref, DR pairs and store base_predicate for write type DRs.
3581 (ifcvt_memrefs_wont_trap): Guard checks with
3582 -ftree-loop-if-convert-stores flag.
3583
3584 2015-11-29 Jan Hubicka <hubicka@ucw.cz>
3585
3586 * cgraph.c (cgraph_node::make_local): No name is unique during
3587 incremental linking.
3588 * cgraph.h (can_be_discarded_p): Update comment; also common and
3589 WEAK in named sections can be discarded; when doing incremental
3590 link do not rely on resolution being the final one.
3591 * varasm.c (default_binds_local_p_3, decl_binds_to_current_def_p):
3592 When symbol can be discarded, do not rely on resolution info.
3593 * symtab.c (symtab_node::nonzero_address): Take into account that
3594 symbol can be discarded.
3595 * ipa-visibility.c (update_visibility_by_resolution_info): Handle
3596 definition correctly.
3597 (function_and_variable_visibility): Do not set unique_name when
3598 incrementally linking.
3599
3600 2015-11-29 Nathan Sidwell <nathan@acm.org>
3601
3602 * config/nvptx/nvptx.md (const_0_operand, global_mem_operand,
3603 const_mem_operand, param_mem_operand, shared_mem_operand): Delete.
3604 (ctrap<mode>): Use const0_operand.
3605
3606 2015-11-29 Jan Hubicka <hubicka@ucw.cz>
3607
3608 * ipa-devirt.c (add_type_duplicate): Remove redundant
3609 ODR violation dump.
3610
3611 2015-11-29 David Edelsohn <dje.gcc@gmail.com>
3612
3613 PR target/28115
3614 * config/rs6000/rs6000.c (rs6000_adjust_cost): Correct
3615 recog_memoized test for insn and check recog_memoized for dep_insn.
3616
3617 2015-11-28 Nathan Sidwell <nathan@acm.org>
3618
3619 * config/nvptx/nvptx.h (FIRST_PARM_OFFSET): Add void cast.
3620 (FRAME_POINTER_CFA_OFFSET): Define.
3621 (struct nvptx_args): Use 'tree' type.
3622 (INIT_CUMULATIVE_ARGS): Remove unnecessary do...while.
3623
3624 2015-11-28 Tom de Vries <tom@codesourcery.com>
3625
3626 * lto-wrapper.c (run_gcc): Handle -flinker-output argument.
3627
3628 2015-11-27 Jonathan Wakely <jwakely@redhat.com>
3629
3630 * doc/invoke.texi (Option Summary): Use negative form of
3631 -Waggressive-loop-optimizations, remove redundant -Wpedantic-ms-format,
3632 sort alphabetically and re-justify.
3633
3634 2015-11-27 Vladimir Makarov <vmakarov@redhat.com>
3635
3636 PR rtl-optimization/68536
3637 * lra.c (lra_emit_add): Add code for null base.
3638 * lra-constraints.c (curr_insn_transform): Skip operators for
3639 subreg reloads.
3640
3641 2015-11-27 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3642
3643 Revert
3644 2015-11-27 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3645
3646 * ifcvt.c (insn_valid_noce_process_p): Reject insn if it satisfies
3647 multiple_sets.
3648 (noce_try_cmove_arith): Add checking asserts that orig_a and orig_b
3649 are not modified by the final modified insns in the basic blocks.
3650
3651 2015-11-27 Nathan Sidwell <nathan@acm.org>
3652
3653 * config/nvptx/nvptx-protos.h (nvptx_addr_space_from_address):
3654 Don't declare.
3655 * config/nvptx/nvptx.c (nvptx_addr_space_from_sym): New.
3656 (nvptx_maybe_convert_symbolic_operand): Simplify.
3657 (nvptx_addr_space_from_address): Delete.
3658 (nvptx_print_operand): Adjust 'A' case.
3659
3660 2015-11-27 Richard Biener <rguenther@suse.de>
3661
3662 PR tree-optimization/68559
3663 * tree-vect-data-refs.c (vect_analyze_group_access_1): Move
3664 peeling for gap checks ...
3665 * tree-vect-stmts.c (vectorizable_load): ... here and relax for SLP.
3666 * tree-vect-loop.c (vect_analyze_loop_2): Re-set
3667 LOOP_VINFO_PEELING_FOR_GAPS before re-trying without SLP.
3668
3669 2015-11-27 Nathan Sidwell <nathan@acm.org>
3670
3671 * config/nvptx/nvptx-protos.h (nvptx_record_needed_decl): Don't declare.
3672 * config/nvptx/nvptx.c (write_func_decl_from_insn): Move earlier.
3673 (nvptx_record_fndecl): Don't return value, remove force
3674 argument. Require fndecl.
3675 (nvptx_record_libfunc): New.
3676 (nvptx_record_needed_decl): Deteermine how to record decl here.
3677 (nvptx_maybe_record_fnsym): New.
3678 (nvptx_expand_call): Don't record libfuncs here,
3679 (nvptx_maybe_convert_symbolic_operand): Use
3680 nvptx_maye_record_fnsym.
3681 (nvptx_assemble_integer): Reimplement with single switch.
3682 (nvptx_output_call_insn): Register libfuncs here.
3683 (nvptx_file_end): Adjust nvptx_record_fndecl call.
3684 * config/nvptx/nvptx.md (expand_movdi): Don't call
3685 nvptx_record_needed_decl.
3686
3687 2015-11-27 Richard Biener <rguenther@suse.de>
3688
3689 PR tree-optimization/68553
3690 * tree-vect-slp.c (vect_create_mask_and_perm): Skip VEC_PERM_EXPR
3691 generation for 1:1 permutations.
3692 (vect_transform_slp_perm_load): Detect 1:1 permutations.
3693
3694 2015-11-27 Bernd Schmidt <bschmidt@redhat.com>
3695
3696 * gimple.h (nonbarrier_call_p): Declare.
3697 * gimple.c (nonbarrier_call_p): New function.
3698 * tree-ssa-phiopt.c (nontrapping_dom_walker::before_dom_children):
3699 Also increment call phase for ASMs with vdef and potential barrier
3700 calls.
3701
3702 2015-11-27 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3703
3704 * ifcvt.c (insn_valid_noce_process_p): Reject insn if it satisfies
3705 multiple_sets.
3706 (noce_try_cmove_arith): Add checking asserts that orig_a and orig_b
3707 are not modified by the final modified insns in the basic blocks.
3708
3709 2015-11-27 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3710
3711 PR rtl-optimization/68506
3712 * ifcvt.c (noce_try_cmove_arith): Try emitting the else basic block
3713 first if emit_a exists or then_bb modifies 'b'. Reindent if-else
3714 blocks.
3715
3716 2015-11-27 Martin Liska <mliska@suse.cz>
3717
3718 PR c++/68312
3719 * vec.h (release_vec_vec): New function.
3720
3721 2015-11-27 Jakub Jelinek <jakub@redhat.com>
3722
3723 PR tree-optimization/68552
3724 * optabs.c (expand_vec_perm_1): Move vec_shr handling from here...
3725 (expand_vec_perm): ... here. Do it regardless of vec_perm_const_optab
3726 or whether v0 == v1.
3727
3728 2015-11-27 Martin Liska <mliska@suse.cz>
3729
3730 * tree-ssa-uninit.c: Fix whitespaces in the source file.
3731 The change is just automatical.
3732
3733 2015-11-27 Martin Liska <mliska@suse.cz>
3734
3735 * tree-chkp.c (chkp_make_static_bounds): Release buffer
3736 used for string.
3737
3738 2015-11-27 Martin Liska <mliska@suse.cz>
3739
3740 * tree-vect-loop-manip.c (vect_create_cond_for_alias_checks):
3741 Do not release memory for comp_alias_ddrs.
3742 * tree-vect-loop.c (destroy_loop_vec_info): Release
3743 the memory for all loop_vec_info.
3744
3745 2015-11-27 Martin Liska <mliska@suse.cz>
3746
3747 * ipa-devirt.c (ipa_devirt): Use auto_vec instead
3748 of a local-scope vec.
3749 (struct final_warning_record): Use auto_vec instead of vec.
3750
3751 2015-11-27 Richard Biener <rguenther@suse.de>
3752
3753 PR tree-optimization/68553
3754 * tree-vect-slp.c (vect_get_mask_element): Remove.
3755 (vect_transform_slp_perm_load): Implement in a simpler way.
3756
3757 2015-11-26 Alexandre Oliva <aoliva@redhat.com>
3758
3759 PR rtl-optimization/67753
3760 PR rtl-optimization/64164
3761 * function.c (assign_parm_setup_block): Right-shift
3762 upward-padded big-endian args when bypassing the stack slot.
3763
3764 2015-11-26 Maciej W. Rozycki <macro@imgtec.com>
3765
3766 * doc/invoke.texi (Option Summary) <MIPS Options>: Reorder
3767 `-mcompact-branches='.
3768 (MIPS Options): Likewise.
3769
3770 2015-11-26 Jakub Jelinek <jakub@redhat.com>
3771
3772 * Makefile.in (build/genmatch.o): Depend on internal-fn.def.
3773
3774 2015-11-26 David Edelsohn <dje.gcc@gmail.com>
3775
3776 * doc/install.texi (Prerequisites): Increase ISL requirement to
3777 0.14 or 0.15.
3778
3779 2015-11-26 Matthew Wahab <matthew.wahab@arm.com>
3780
3781 * config/aarch64/arm_neon.h
3782 (vqrdmlah_laneq_s16, vqrdmlah_laneq_s32): New.
3783 (vqrdmlahq_laneq_s16, vqrdmlahq_laneq_s32): New.
3784 (vqrdmlsh_lane_s16, vqrdmlsh_lane_s32): New.
3785 (vqrdmlshq_laneq_s16, vqrdmlshq_laneq_s32): New.
3786 (vqrdmlah_lane_s16, vqrdmlah_lane_s32): New.
3787 (vqrdmlahq_lane_s16, vqrdmlahq_lane_s32): New.
3788 (vqrdmlahh_s16, vqrdmlahh_lane_s16, vqrdmlahh_laneq_s16): New.
3789 (vqrdmlahs_s32, vqrdmlahs_lane_s32, vqrdmlahs_laneq_s32): New.
3790 (vqrdmlsh_lane_s16, vqrdmlsh_lane_s32): New.
3791 (vqrdmlshq_lane_s16, vqrdmlshq_lane_s32): New.
3792 (vqrdmlshh_s16, vqrdmlshh_lane_s16, vqrdmlshh_laneq_s16): New.
3793 (vqrdmlshs_s32, vqrdmlshs_lane_s32, vqrdmlshs_laneq_s32): New.
3794
3795 2015-11-26 Matthew Wahab <matthew.wahab@arm.com>
3796
3797 * config/aarch64/arm_neon.h (vqrdmlah_s16, vqrdmlah_s32): New.
3798 (vqrdmlahq_s16, vqrdmlahq_s32): New.
3799 (vqrdmlsh_s16, vqrdmlsh_s32): New.
3800 (vqrdmlshq_s16, vqrdmlshq_s32): New.
3801
3802 2015-11-26 Matthew Wahab <matthew.wahab@arm.com>
3803
3804 * config/aarch64/aarch64-c.c (aarch64_update_cpp_builtins): Add
3805 ARM_FEATURE_QRDMX.
3806
3807 2015-11-26 Pierre-Marie de Rodat <derodat@adacore.com>
3808
3809 PR debug/53927
3810 * tree-nested.c (finalize_nesting_tree_1): Append a field to
3811 hold the frame base address.
3812 * dwarf2out.c (gen_subprogram_die): Generate for
3813 DW_AT_static_link a location description that computes the value
3814 of this field.
3815
3816 2015-11-26 Tom de Vries <tom@codesourcery.com>
3817
3818 revert:
3819 2015-11-25 Tom de Vries <tom@codesourcery.com>
3820
3821 * cfgloop.c (find_single_latch): New function, factored out of ...
3822 (flow_loops_find): ... here.
3823 (verify_loop_structure): Improve verification of loop->latch.
3824 * cfgloop.h (find_single_latch): Declare.
3825 * omp-low.c (expand_omp_for_generic): Initialize latch of orig_loop.
3826
3827 2015-11-26 Matthew Wahab <matthew.wahab@arm.com>
3828
3829 * config/aarch64/aarch64-simd-builtins.def:
3830 Add missing changes from r230962.
3831
3832 2015-11-26 Nathan Sidwell <nathan@acm.org>
3833
3834 * config/nvptx/nvptx.c (write_func_decl_from_insn): Replace callee
3835 arg with name. Don't deal with split regs. Tweak formatting.
3836 (nvptx_expand_call): Adjust write_func_decl_from_insn call.
3837 (nvptx_output_call_insn): Don't deal with split regs here.
3838
3839 2015-11-26 Matthew Wahab <matthew.wahab@arm.com>
3840
3841 * config/aarch64/aarch64-simd-builtins.def
3842 (sqrdmlah, sqrdmlsh): New.
3843 (sqrdmlah_lane, sqrdmlsh_lane): New.
3844 (sqrdmlah_laneq, sqrdmlsh_laneq): New.
3845
3846 2015-11-26 Matthew Wahab <matthew.wahab@arm.com>
3847
3848 * config/aarch64/aarch64-simd.md
3849 (aarch64_sqmovun<mode>): Fix some white-space.
3850 (aarch64_<sur>qmovun<mode>): Likewise.
3851 (aarch64_sqrdml<SQRDMLH_AS:rdma_as>h<mode>): New.
3852 (aarch64_sqrdml<SQRDMLH_AS:rdma_as>h_lane<mode>): New.
3853 (aarch64_sqrdml<SQRDMLH_AS:rdma_as>h_laneq<mode>): New.
3854 * config/aarch64/iterators.md (UNSPEC_SQRDMLAH): New.
3855 (UNSPEC_SQRDMLSH): New.
3856 (SQRDMLH_AS): New.
3857 (rdma_as): New.
3858
3859 2015-11-26 Richard Biener <rguenther@suse.de>
3860
3861 PR tree-optimization/66721
3862 * tree-vect-loop.c (vect_analyze_loop_2): Compute scalar
3863 iteration cost earlier. Re-do analysis without SLP when
3864 vectorization using SLP fails and without has a chance to succeed.
3865
3866 2015-11-26 Richard Biener <rguenther@suse.de>
3867
3868 * genmatch.c (dt_simplify::gen_1): For generic wrap all
3869 multi-result-use captures in a SAVE_EXPR.
3870
3871 2015-11-26 Matthew Wahab <matthew.wahab@arm.com>
3872
3873 * config/aarch64/aarch64.h (AARCH64_ISA_RDMA): New.
3874 (TARGET_SIMD_RDMA): New.
3875
3876 2015-11-26 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3877
3878 * combine.c (subst): Do not return clobber of zero in widening mult
3879 case. Just return x unchanged if it is a no-op substitution.
3880
3881 2015-11-26 Vladimir Makarov <vmakarov@redhat.com>
3882
3883 PR target/68416
3884 * config/i386/i386.h (enum reg_class): Add
3885 bounds registers to ALL_REGS.
3886
3887 2015-11-26 Jakub Jelinek <jakub@redhat.com>
3888
3889 PR tree-optimization/68128
3890 * tree.h (OMP_CLAUSE_SHARED_READONLY): Define.
3891 * gimplify.c: Include gimple-walk.h.
3892 (enum gimplify_omp_var_data): Add GOVD_WRITTEN.
3893 (omp_notice_variable): Set flags to n->value if n already
3894 exists in target region, but we need to jump to do_outer.
3895 (omp_shared_to_firstprivate_optimizable_decl_p,
3896 omp_mark_stores, omp_find_stores_op, omp_find_stores_stmt): New
3897 functions.
3898 (gimplify_adjust_omp_clauses_1): Set OMP_CLAUSE_SHARED_READONLY
3899 on OMP_CLAUSE_SHARED if it is a scalar non-addressable that is
3900 not modified in the body. Call omp_mark_stores for outer
3901 contexts on OMP_CLAUSE_SHARED clauses if they could be written
3902 in the body or on OMP_CLAUSE_LASTPRIVATE.
3903 (gimplify_adjust_omp_clauses): Add body argument, call
3904 omp_find_stores_{stmt,op} on the body through walk_gimple_seq.
3905 Set OMP_CLAUSE_SHARED_READONLY
3906 on OMP_CLAUSE_SHARED if it is a scalar non-addressable that is
3907 not modified in the body. Call omp_mark_stores for outer
3908 contexts on OMP_CLAUSE_SHARED clauses if they could be written
3909 in the body or on OMP_CLAUSE_LASTPRIVATE or on OMP_CLAUSE_LINEAR
3910 without OMP_CLAUSE_LINEAR_NO_COPYOUT or on OMP_CLAUSE_REDUCTION.
3911 (gimplify_oacc_cache, gimplify_omp_parallel, gimplify_omp_task,
3912 gimplify_omp_for, gimplify_omp_workshare, gimplify_omp_target_update,
3913 gimplify_expr): Adjust gimplify_adjust_omp_clauses callers.
3914 * tree-nested.c (convert_nonlocal_omp_clauses,
3915 convert_local_omp_clauses): Clear OMP_CLAUSE_SHARED_READONLY on
3916 non-local vars or local vars referenced from nested routines.
3917 * omp-low.c (scan_sharing_clauses): For OMP_CLAUSE_SHARED_READONLY
3918 attempt to optimize it into OMP_CLAUSE_FIRSTPRIVATE. Even for
3919 TREE_READONLY, don't call use_pointer_for_field with non-NULL
3920 second argument until we are sure we are keeping OMP_CLAUSE_SHARED.
3921
3922 2015-11-26 Paolo Bonzini <bonzini@gnu.org>
3923
3924 * doc/implement-c.texi (Integers Implementation): Make GCC's promises
3925 about signed left shift stronger and clarify the cases when they're
3926 broken.
3927
3928 2015-11-26 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3929 Bernd Schmidt <bschmidt@redhat.com>
3930
3931 PR rtl-optimization/67226
3932 * calls.c (store_one_arg): Take into account
3933 crtl->args.pretend_args_size when checking for overlap between
3934 arg->value and argblock + arg->locate.offset during sibcall
3935 optimization.
3936
3937 2015-11-26 Wilco Dijkstra <wdijkstr@arm.com>
3938
3939 * config/aarch64/aarch64.md (cbranch<mode>4): Use
3940 aarch64_fp_compare_operand.
3941 (store_pairsf): Use aarch64_reg_or_fp_zero.
3942 (store_pairdf): Likewise.
3943 (cstore<mode>4): Use aarch64_fp_compare_operand.
3944 (cmov<mode>6): Likewise.
3945 * config/aarch64/aarch64-ldpstp.md: Use aarch64_reg_or_fp_zero.
3946
3947 2015-11-25 Aditya Kumar <aditya.k7@samsung.com>
3948 Sebastian Pop <s.pop@samsung.com>
3949
3950 PR tree-optimization/68453
3951 * graphite-isl-ast-to-gimple.c (translate_isl_ast_for_loop): Do
3952 not redirect edges already pointing to their destination.
3953 (translate_isl_ast_node_for): Split edges after loops to create
3954 basic blocks for close phi nodes. Save merge points at the end of
3955 a loop guard.
3956 (translate_isl_ast_node_if): Save merge points at the end of the
3957 if region.
3958 (add_close_phis_to_outer_loops): New.
3959 (add_close_phis_to_merge_points): New.
3960 (copy_loop_close_phi_args): Call add_close_phis_to_merge_points.
3961 (copy_bb_and_scalar_dependences): Do not split basic blocks on
3962 loop close phi locations.
3963
3964 2015-11-25 Jan Hubicka <jh@suse.cz>
3965
3966 * ipa-visibility.c (cgraph_externally_visible_p,
3967 varpool_node::externally_visible_p): When doing incremental linking,
3968 hidden symbols may be still used later.
3969 (update_visibility_by_resolution_info): Do not drop weak during
3970 incremental link.
3971 (function_and_variable_visibility): Fix formating.
3972 * flag-types.h (lto_linker_output): Declare.
3973 * common.opt 9flag_incremental_link): New flag.
3974
3975 2015-11-25 Michael Meissner <meissner@linux.vnet.ibm.com>
3976
3977 * config/rs6000/constraints.md (wb constraint): New constraint for
3978 ISA 3.0 d-form scalar addressing.
3979
3980 * config/rs6000/rs6000.c (mode_supports_vmx_dform): Add support
3981 for ISA 3.0 D-form addressing to load SFmode/DFmode scalars into
3982 Altivec registers. Add wb constraint for Altivec registers with
3983 D-form addressing. If we have ISA 3.0 d-form support, undo
3984 secondary reload support for using FPR registers if we want to do
3985 D-form addressing.
3986 (rs6000_debug_reg_global): Likewise.
3987 (rs6000_setup_reg_addr_masks): Likewise.
3988 (rs6000_init_hard_regno_mode_ok): Likewise.
3989 (rs6000_secondary_reload): Likewise.
3990 (rs6000_preferred_reload_class): Likewise.
3991 (rs6000_secondary_reload_class): Likewise.
3992
3993 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Add wb
3994 constraint.
3995
3996 * config/rs6000/rs6000.md (f32_lr2 mode attribute): Add support
3997 for ISA 3.0 SFmode/DFmode d-form addressing to Altivec registers.
3998 (f32_lm2): Likewise.
3999 (f32_li2): Likewise.
4000 (f32_sr2): Likewise.
4001 (f32_sm2): Likewise.
4002 (f32_si2): Likewise.
4003 (f64_p9): Likewise.
4004 (extendsfdf2_fpr): Likewise.
4005 (mov<mode>_hardfloat): Likewise.
4006 (mov<mode>_hardfloat32): Likewise.
4007 (mov<mode>_hardfloat64): Likewise.
4008
4009 * doc/md.texi (RS/6000 constraints): Document wb constraint.
4010 Fixup we constraint documentation.
4011
4012 2015-11-25 Tom de Vries <tom@codesourcery.com>
4013
4014 * omp-low.c (pass_expand_omp_ssa::clone): New function.
4015 * passes.def: Add pass_oacc_kernels pass group.
4016 * tree-ssa-loop-ch.c (pass_ch::clone): New function.
4017
4018 2015-11-25 Tom de Vries <tom@codesourcery.com>
4019
4020 * tree-pass.h (make_pass_oacc_kernels, make_pass_oacc_kernels2):
4021 Declare.
4022 * tree-ssa-loop.c (gate_oacc_kernels): New static function.
4023 (pass_data_oacc_kernels, pass_data_oacc_kernels2): New pass_data.
4024 (class pass_oacc_kernels, class pass_oacc_kernels2): New pass.
4025 (make_pass_oacc_kernels, make_pass_oacc_kernels2): New function.
4026
4027 2015-11-25 Jan Hubicka <hubicka@ucw.cz>
4028
4029 * timevar.def (TV_IPA_LTO_DECOMPRESS, TV_IPA_LTO_COMPRESS,
4030 TV_IPA_LTO_OUTPUT): New.
4031 * lto-compress.c: Include timevar.h
4032 (lto_end_compression, lto_end_uncompression): Add timers.
4033 * langhooks.c: Include timevar.h.
4034 (lhd_append_data): Add timer.
4035
4036 2015-11-25 Jan Hubicka <hubicka@ucw.cz>
4037
4038 * varasm.c (default_elf_asm_output_limited_string,
4039 default_elf_asm_output_ascii): Replace fprintf by putc.
4040
4041 2015-11-25 Vladimir Makarov <vmakarov@redhat.com>
4042
4043 PR rtl-optimization/67954
4044 * lra-constraints.c (curr_insn_transform): Add check on scratch
4045 pseudo when change class to NO_REGS. Add an assert.
4046
4047 2015-11-25 Nathan Sidwell <nathan@acm.org>
4048
4049 * config/nvptx/nvptx.md (load_arg_reg<mode>): Arg number
4050 constraint is 'n'.
4051 * config/nvptx/nvptx.c (write_one_arg): Use 'i' directly as arg number.
4052 (nvptx_write_function_decl): Number args from 0.
4053 (nvptx_declare_function_name): Likewise.
4054 (nvptx_function_incoming_arg): Likewise.
4055 (nvptx_output_call_insn): Correct formatting.
4056
4057 2015-11-25 David Sherwood <david.sherwood@arm.com>
4058
4059 * optabs.def: Add new optabs fmax_optab/fmin_optab.
4060 * internal-fn.def: Add new fmax/fmin internal functions.
4061 * doc/md.texi: Add fmin and fmax patterns.
4062
4063 2015-11-25 Jason Merrill <jason@redhat.com>
4064
4065 PR c++/68385
4066 * tree.c (integer_zerop, integer_onep, integer_each_onep)
4067 (integer_all_onesp, integer_minus_onep, integer_pow2p)
4068 (integer_nonzerop, integer_truep, tree_log2, tree_floor_log2)
4069 (real_zerop, real_onep, real_minus_onep): Remove STRIP_NOPS.
4070
4071 2015-11-25 Richard Biener <rguenther@suse.de>
4072
4073 PR middle-end/68528
4074 * fold-const.c (fold_binary_loc): Do not call negate_expr_p
4075 on stripped operands.
4076
4077 2015-11-25 Nathan Sidwell <nathan@acm.org>
4078
4079 * config/nvptx/nvptx.c (walk_args_for_params): Delete.
4080 (nvptx_declare_function_name): Move assignments next to register
4081 declarations, and process params here.
4082
4083 2015-11-25 David Edelsohn <dje.gcc@gmail.com>
4084
4085 * config/rs6000/rs6000.c (rs6000_declare_alias): Rename and globalize
4086 both the symbol and the "dot" symbol for function descriptors. Fix
4087 inversion for rename of symbols with dollar sign.
4088
4089 2015-11-25 Tom de Vries <tom@codesourcery.com>
4090
4091 * cfgloop.c (find_single_latch): New function, factored out of ...
4092 (flow_loops_find): ... here.
4093 (verify_loop_structure): Improve verification of loop->latch.
4094 * cfgloop.h (find_single_latch): Declare.
4095 * omp-low.c (expand_omp_for_generic): Initialize latch of orig_loop.
4096
4097 2015-11-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4098
4099 * config/sol2.h (SUPPORTS_INIT_PRIORITY): Move up.
4100 (STARTFILE_VTV_SPEC, ENDFILE_VTV_SPEC): Define.
4101 (STARTFILE_SPEC): Use %(startfile_vtv).
4102 (ENDFILE_SPEC): Use %(endfile_vtv).
4103 (SUBTARGET_EXTRA_SPECS): Handle STARTFILE_VTV_SPEC,
4104 ENDFILE_VTV_SPEC.
4105
4106 * gcc.c (LINK_COMMAND_SPEC): Move VTABLE_VERIFICATION_SPEC after %{L*}.
4107
4108 2015-11-25 Bernd Schmidt <bschmidt@redhat.com>
4109
4110 * ifcvt.c (noce_mem_write_may_trap_or_fault_p,
4111 noce_can_store_speculate): Delete.
4112 (noce_process_if_block): Don't try to handle single MEM stores.
4113 * rtl.h (memory_must_be_modified_in_insn_p): Don't declare.
4114 * alias.c (memory_must_be_modified_in_insn_p): Delete.
4115
4116 2015-11-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
4117
4118 PR rtl-optimization/68435
4119 * ifcvt.c (noce_try_cmove_arith): Skip final insn when checking
4120 for conflicts between a, b and the set destinations.
4121
4122 2015-11-25 Richard Biener <rguenther@suse.de>
4123
4124 PR tree-optimization/68517
4125 * tree-vect-data-refs.c (vect_analyze_data_ref_accesses):
4126 Properly handle zero-sized types.
4127
4128 2015-11-24 Jan Hubicka <hubicka@ucw.cz>
4129
4130 * ipa-inline-analysis.c: Include gimplify.h
4131 (set_cond_stmt_execution_predicate,
4132 set_switch_stmt_execution_predicate): Be sure to not leak locations
4133 to function body.
4134
4135 2015-11-25 Jakub Jelinek <jakub@redhat.com>
4136
4137 PR target/67089
4138 * tree-ssa-math-opts.c (uaddsub_overflow_check_p,
4139 match_uaddsub_overflow): New functions.
4140 (pass_optimize_widening_mul::execute): Call match_uaddsub_overflow.
4141
4142 2015-11-25 Richard Biener <rguenther@suse.de>
4143
4144 PR tree-optimization/68492
4145 * tree-vect-slp.c (vect_build_slp_tree): Consistently build up
4146 op from scalars after operand swapping.
4147
4148 2015-11-25 Richard Biener <rguenther@suse.de>
4149
4150 PR tree-optimization/68502
4151 * tree-vect-data-refs.c (vect_analyze_group_access_1): Restore
4152 check that the step is a multiple of the type size.
4153
4154 2015-11-24 Michael Collison <michael.collison@linaro.org>
4155
4156 * config/aarch64/aarch64-simd.md (widen_ssum, widen_usum)
4157 (aarch64_<ANY_EXTEND:su><ADDSUB:optab>w<mode>_internal): New patterns
4158 * config/aarch64/iterators.md (Vhalf, VDBLW): New mode attributes.
4159
4160 2015-11-24 Steve Ellcey <sellcey@imgtec.com>
4161
4162 * frame-header-opt.c (gate): Check for optimize > 0.
4163 (has_inlined_assembly): New function.
4164 (needs_frame_header_p): Remove is_leaf_function check,
4165 add argument type check.
4166 (callees_functions_use_frame_header): Add is_leaf_function
4167 and has_inlined_assembly calls..
4168 (set_callers_may_not_allocate_frame): New function.
4169 (frame_header_opt): Add is_leaf_function call, add
4170 set_callers_may_not_allocate_frame call.
4171 * config/mips/mips.c (mips_compute_frame_info): Add check
4172 to see if callee saved regs can be put in frame header.
4173 (mips_expand_prologue): Add check to see if step1 is zero,
4174 fix cfa restores when using frame header to store regs.
4175 (mips_can_use_return_insn): Check to see if registers are
4176 stored in frame header.
4177 * config/mips/mips.h (machine_function): Add
4178 callers_may_not_allocate_frame and
4179 use_frame_header_for_callee_saved_regs fields.
4180
4181 2015-11-24 Segher Boessenkool <segher@kernel.crashing.org>
4182
4183 PR rtl-optimization/68520
4184 * shrink-wrap.c (try_shrink_wrapping): Don't push a block to VEC if
4185 its bit was already set in BB_WITH.
4186
4187 2015-11-24 Jan Hubicka <hubicka@ucw.cz>
4188
4189 * alias.c (get_alias_set): Before checking TYPE_ALIAS_SET_KNOWN_P
4190 double check that type is main variant.
4191 * tree.c (build_variant_type_copy): Clear TYPE_ALIAS_SET when producing
4192 variant.
4193 (verify_type_variant): Verify that variants have no
4194 TYPE_ALIAS_SET_KNOWN_P set
4195 * tree-streamer-out.c (pack_ts_type_common_value_fields): Reorder
4196 streaming so constant fields come first; stream TYPE_ALIAS_SET==0
4197 only for main variants; stream TYPE_ALIAS_SET as a bit.
4198 * tree-streamer-in.c (unpack_ts_type_common_value_fields): Update
4199 accordingly.
4200
4201 2015-11-24 Jan Hubicka <hubicka@ucw.cz>
4202
4203 * tree.c (make_vector_type): Properly compute canonical type of the
4204 main variant.
4205 (verify_type): Verify that TYPE_CANONICAL of TYPE_MAIN_VARIANT is
4206 a main variant.
4207
4208 2015-11-24 Nathan Sidwell <nathan@acm.org>
4209
4210 * config/nvptx/nvptx.c (maybe_split_mode): Return new mode or
4211 VOIDmode, don't alter incoming mode.
4212 (nvptx_split_reg_p): Delete.
4213 (write_one_arg, walk_args_for_param, nvptx_declare_function_name,
4214 write_func_decl_from_insn, nvptx_output_call_insn): Adjust
4215 maybe_split_mode calls.
4216 (nvptx_print_operand): Use maybe_split_mode.
4217
4218 2015-11-24 Jan Hubicka <hubicka@ucw.cz>
4219
4220 * lto-streamer-in.c (lto_read_body_or_constructor): Set TYPE_CANONICAL
4221 only for types where LTO sets them.
4222 * tree.c (build_array_type_1): Do ont set TYPE_CANONICAL for LTO.
4223 (make_vector_type): Likewise.
4224 (gimple_canonical_types_compatible_p): Use canonical_type_used_p.
4225 * tree.h (canonical_type_used_p): New inline.
4226 * alias.c (get_alias_set): Handle structural equality for all
4227 types that pass canonical_type_used_p.
4228 (record_component_aliases): Look through all types with
4229 record_component_aliases for possible pointers; sanity check that
4230 the alias sets match.
4231
4232 2015-11-24 Michael Meissner <meissner@linux.vnet.ibm.com>
4233
4234 * config/rs6000/rs6000.md (lround<mode>di2): Remove constraints.
4235
4236 2015-11-24 Jan Hubicka <hubicka@ucw.cz>
4237
4238 * tree.c (free_node): New function.
4239 (type_hash_canon): Use it.
4240 * tree.h (free_node): Declare.
4241
4242 2015-11-24 David Edelsohn <dje.gcc@gmail.com>
4243 Michael Meissner <meissner@linux.vnet.ibm.com>
4244
4245 * config/rs6000/rs6000.md (UNSPEC_XSRDPI): New unspec.
4246 (Fv2): New mode attribute to be used when ISA 2.07 instructions
4247 are used on SF values, and ISA 2.06 instructions on DF values.
4248 (add<mode>3_fpr): Use <Fv2> instead of <Fv>.
4249 (sub<mode>3_fpr): Use <Fv2> instead of <Fv>.
4250 (mul<mode>3_fpr): Use <Fv2> instead of <Fv>.
4251 (div<mode>3_fpr): Use <Fv2> instead of <Fv>.
4252 (sqrt<mode>2): Use <Fv2> instead of <Fv>.
4253 (fre<Fs>): Use <Fv2> instead of <Fv>.
4254 (rsqrt<mode>2): Use <Fv2> instead of <Fv>.
4255 (cmp<mode>_fpr): Use <Fv2> instead of <Fv>.
4256 (xsrdpi<mode>): Add support for the lround function.
4257 (lround<mode>di2): Likewise.
4258 (fma<mode>4_fpr): Use <Fv2> instead of <Fv>.
4259 (fms<mode>4_fpr): Use <Fv2> instead of <Fv>.
4260 (nfma<mode>4_fpr): Use <Fv2> instead of <Fv>.
4261 (nfms<mode>4_fpr): Use <Fv2> instead of <Fv>.
4262
4263 2015-11-24 Aditya Kumar <aditya.k7@samsung.com>
4264 Sebastian Pop <s.pop@samsung.com>
4265
4266 PR tree-optimization/67984
4267 * graphite-isl-ast-to-gimple.c (is_constant): New.
4268 (get_rename): Call is_constant.
4269 (get_new_name): Same.
4270
4271 2015-11-24 Aditya Kumar <aditya.k7@samsung.com>
4272 Sebastian Pop <s.pop@samsung.com>
4273
4274 * graphite-dependences.c: Only include graphite.h.
4275 * graphite-isl-ast-to-gimple.c: Same.
4276 * graphite-optimize-isl.c: Same.
4277 * graphite-poly.c: Same.
4278 * graphite-scop-detection.c: Same.
4279 * graphite-sese-to-poly.c: Same.
4280 * graphite.c: Same.
4281 * graphite-isl-ast-to-gimple.h: Move to graphite.h.
4282 * graphite-poly.h: Same.
4283 * graphite-scop-detection.h: Same.
4284 * graphite.h: New.
4285
4286 2015-11-24 Pierre-Marie de Rodat <derodat@adacore.com>
4287
4288 * dwarf2out.c (gen_decl_die): Generate DW_TAG_imported_* instead of
4289 DW_TAG_namespace for IMPORTED_DECL declarations. Call
4290 dwarf2out_imported_module_or_decl_1 for all DWARF versions as this
4291 function already takes care of checking what it can emit.
4292
4293 2015-11-24 Szabolcs Nagy <szabolcs.nagy@arm.com>
4294
4295 * doc/invoke.texi (-fpic): Add the AArch64 limit.
4296 (-fPIC): Add AArch64.
4297
4298 2015-11-24 Tom de Vries <tom@codesourcery.com>
4299
4300 * tree-ssa-loop-im.c (tree_ssa_lim): Make static.
4301 (pass_lim::execute): Allow to run outside pass_tree_loop.
4302
4303 2015-11-24 Wilco Dijkstra <wdijkstr@arm.com>
4304
4305 * config/aarch64/aarch64.md (add<mode>3):
4306 Block early expansion into 2 add instructions.
4307 (add<mode>3_pluslong): New pattern to combine complex
4308 immediates into 2 additions.
4309
4310 2015-11-24 Segher Boessenkool <segher@kernel.crashing.org>
4311
4312 PR target/66217
4313 PR target/67677
4314 PR target/68332
4315 * config/rs6000/predicates.md (and_operand): Check that the operand
4316 is a const_int before calling rs6000_is_valid_and_mask.
4317
4318 2015-11-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
4319
4320 * config/aarch64/aarch64.md (*condjump): Rename to...
4321 (condjump): ... This.
4322 (*compare_condjump<mode>): New define_insn_and_split.
4323 (*compare_cstore<mode>_insn): Likewise.
4324 (*cstore<mode>_insn): Rename to...
4325 (cstore<mode>_insn): ... This.
4326 * config/aarch64/iterators.md (CMP): Handle ne code.
4327 * config/aarch64/predicates.md (aarch64_imm24): New predicate.
4328
4329 2015-11-24 Mikhail Maltsev <maltsevm@gmail.com>
4330
4331 PR target/68497
4332 * config/i386/i386.c (output_387_binary_op): Fix assertion for
4333 -fno-checking case.
4334
4335 2015-11-24 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
4336
4337 * tree-ssa-uncprop.c (struct val_ssa_equiv_hash_traits): Remove.
4338 (val_ssa_equiv_hash_traits::remove): Likewise.
4339 (pass_uncprop::execute): Adjust.
4340
4341 2015-11-24 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
4342
4343 * hash-map-traits.h (simple_hashmap_traits ::remove): call
4344 destructors on values that are being removed.
4345 * mem-stats.h (hash_map): Pass type of values to
4346 simple_hashmap_traits.
4347 * tree-sra.c (sra_deinitialize): Remove work around for hash
4348 maps not destructing values.
4349 * genmatch.c (sinfo_hashmap_traits): Adjust.
4350 * tree-ssa-uncprop.c (val_ssa_equiv_hash_traits): Likewise.
4351
4352 2015-11-24 Richard Biener <rguenther@suse.de>
4353 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
4354
4355 PR middle-end/68375
4356 * cfgloop.c (get_loop_body_in_bfs_order): Restructure loop to avoid
4357 bogus assertion.
4358
4359 2015-11-24 Jakub Jelinek <jakub@redhat.com>
4360
4361 PR target/68483
4362 * tree-vect-generic.c (lower_vec_perm): If VEC_PERM_EXPR
4363 is valid vec_shr pattern, don't lower it even if can_vec_perm_p
4364 returns false.
4365 * optabs.c (shift_amt_for_vec_perm_mask): Return NULL_RTX
4366 whenever first is nelt or above. Don't mask expected with
4367 2 * nelt - 1.
4368
4369 2015-11-24 Ilya Enkovich <enkovich.gnu@gmail.com>
4370
4371 PR c/68337
4372 * gimple-fold.c: Include ipa-chkp.h.
4373 (gimple_fold_builtin_memory_op): Don't fold call if we
4374 are going to instrument it and it may copy pointers.
4375
4376 2015-11-24 Bernd Schmidt <bschmidt@redhat.com>
4377 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
4378
4379 PR rtl-optimization/68194
4380 PR rtl-optimization/68328
4381 PR rtl-optimization/68185
4382 * ree.c (combine_reaching_defs): Reject copy_needed case if
4383 copies_list is not empty.
4384
4385 2015-11-24 Richard Biener <rguenther@suse.de>
4386
4387 PR middle-end/68221
4388 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Properly
4389 use mem_ref_offset.
4390
4391 2015-11-24 Segher Boessenkool <segher@kernel.crashing.org>
4392
4393 PR rtl-optimization/68381
4394 * combine.c (is_parallel_of_n_reg_sets): Return false if the pattern
4395 is poisoned.
4396
4397 2015-11-23 Nick Clifton <nickc@redhat.com>
4398 Jeff Law <law@redhat.com>
4399
4400 * ree.c (add_removable_extension): Avoid mis-optimizing cases where
4401 the source/dest of the target extension require a different number of
4402 hard registers.
4403 (combine_set_extension): Remove #if 0 code.
4404
4405 2015-11-23 Aditya Kumar <aditya.k7@samsung.com>
4406 Sebastian Pop <s.pop@samsung.com>
4407
4408 PR tree-optimization/68314
4409 * graphite-optimize-isl.c (optimize_isl): Do not call
4410 isl_union_map_is_equal.
4411 * graphite-poly.c (new_scop): Remove original_schedule.
4412 (free_scop): Same.
4413 * graphite-poly.h (struct scop): Same.
4414 * graphite-sese-to-poly.c (build_pbb_minimal_scattering_polyhedrons):
4415 Remove.
4416 (build_pbb_scattering_polyhedrons): Add back.
4417 (build_scop_minimal_scattering): Remove.
4418 (build_scop_scattering): Add back.
4419 (build_scop_original_schedule): Remove.
4420 (build_poly_scop): Revert to only call build_scop_scattering.
4421
4422 2015-11-23 Aditya Kumar <aditya.k7@samsung.com>
4423 Sebastian Pop <s.pop@samsung.com>
4424
4425 PR tree-optimization/68493
4426 * graphite-isl-ast-to-gimple.c (translate_pending_phi_nodes): Add
4427 missing early return when codegen_error is set.
4428
4429 2015-11-23 Aditya Kumar <aditya.k7@samsung.com>
4430 Sebastian Pop <s.pop@samsung.com>
4431
4432 PR tree-optimization/68279
4433 * graphite-poly.c (new_scop): Remove poly_scop_p.
4434 * graphite-poly.h (struct scop): Same.
4435 (build_poly_scop): Declare.
4436 * graphite-sese-to-poly.c: Do not include graphite-sese-to-poly.h.
4437 (cleanup_loop_iter_dom): New.
4438 (build_loop_iteration_domains): Early return when scev analysis fails.
4439 (create_pw_aff_from_tree): Same.
4440 (add_condition_to_pbb): Same.
4441 (add_conditions_to_domain): Same.
4442 (add_conditions_to_constraints): Same.
4443 (build_scop_iteration_domain): Same.
4444 (build_poly_scop): Same. Do not initialize poly_scop_p.
4445 * graphite-sese-to-poly.h: Remove.
4446 * graphite.c: Do not include graphite-sese-to-poly.h.
4447 (graphite_transform_loops): Stop before code generation when
4448 build_poly_scop fails.
4449 * sese.c (scalar_evolution_in_region): Add fixme note about scev
4450 analysis.
4451
4452 2015-11-23 Aditya Kumar <aditya.k7@samsung.com>
4453 Sebastian Pop <s.pop@samsung.com>
4454
4455 * graphite-isl-ast-to-gimple.c (translate_isl_ast_node_user):
4456 Remove call to update_ssa.
4457 * sese.c (sese_insert_phis_for_liveouts): Same.
4458
4459 2015-11-23 Marek Polacek <polacek@redhat.com>
4460
4461 PR tree-optimization/68455
4462 * tree-vrp.c (extract_range_from_binary_expr_1): Don't call
4463 extract_range_from_multiplicative_op_1 on symbolic ranges.
4464
4465 2015-11-23 Richard Henderson <rth@redhat.com>
4466
4467 * optabs.def (uaddv4_optab, usubv4_optab): New.
4468 * internal-fn.c (expand_addsub_overflow): Use them.
4469 * doc/md.texi (Standard Names): Add uaddv<m>4, usubv<m>4.
4470
4471 * config/i386/i386.c (ix86_cc_mode): Extend add overflow check
4472 to reversed operands.
4473 * config/i386/i386.md (uaddv<SWI>4, usubv<SWI>4): New.
4474 (*add<SWI>3_cconly_overflow_1): Rename *add<SWI>3_cconly_overflow.
4475 (*add<SWI>3_cc_overflow_1): Rename *add<SWI>3_cc_overflow.
4476 (*addsi3_zext_cc_overflow_1): Rename *add3_zext_cc_overflow.
4477 (*add<SWI>3_cconly_overflow_2): New.
4478 (*add<SWI>3_cc_overflow_2): New.
4479 (*addsi3_zext_cc_overflow_2): New.
4480
4481 2015-11-23 Richard Biener <rguenther@suse.de>
4482
4483 PR tree-optimization/68465
4484 * tree-ssa-sccvn.c (sccvn_dom_walker::before_dom_children):
4485 Also record equalities from multiple predecessor blocks if
4486 only one non-backedge exists.
4487
4488 2015-11-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
4489
4490 PR target/68363
4491 * config/aarch64/aarch64.c (aarch64_madd_needs_nop): Reject arguments
4492 that are not INSN_P.
4493
4494 2015-11-23 Bilyan Borisov <bilyan.borisov@arm.com>
4495
4496 * config/aarch64/aarch64-builtins.c
4497 (aarch64_gimple_fold_builtin): Fold FMULX.
4498
4499 2015-11-23 David Edelsohn <dje.gcc@gmail.com>
4500
4501 * system.h: Don't poison calloc and strdup if USES_ISL is defined.
4502 * graphite-dependences.c: Define USES_ISL. Include ISL header files
4503 after GCC header files and before graphite header files.
4504 * graphite-dependences.c: Same.
4505 * graphite-isl-ast-to-gimple.c: Same.
4506 * graphite-optimize-isl.c: Same.
4507 * graphite-poly.c: Same.
4508 * graphite-scop-detection.c: Same.
4509 * graphite-sese-to-poly.c: Same.
4510 * graphite.c: Same.
4511
4512 2015-11-23 Richard Biener <rguenth@gcc.gnu.org>
4513 Jiong Wang <jiong.wang@arm.com>
4514
4515 PR tree-optimization/68317
4516 PR tree-optimization/68326
4517 * tree-vrp.c (adjust_range_with_scev): Call drop_tree_overflow if the
4518 final min and max are not infinity.
4519
4520 2015-11-23 Ilya Enkovich <enkovich.gnu@gmail.com>
4521 Richard Biener <rguenther@suse.de>
4522
4523 PR tree-optimization/68327
4524 * tree-vect-loop.c (vect_determine_vectorization_factor): Don't
4525 compute vectype for non-relevant mask producers.
4526 * tree-vect-stmts.c (vectorizable_comparison): Check stmt
4527 relevance earlier.
4528
4529 2015-11-23 Tom de Vries <tom@codesourcery.com>
4530
4531 PR tree-optimization/68460
4532 * tree-parloops.c (gather_scalar_reductions): Also call
4533 free_stmt_vec_info_vec if simple_loop_info == NULL.
4534
4535 2015-11-23 Maxim Ostapenko <m.ostapenko@partner.samsung.com>
4536
4537 * opts.c (finish_options): Allow -fsanitize-recover=address for
4538 userspace sanitization.
4539 * asan.c (asan_expand_check_ifn): Redefine recover_p.
4540 * doc/invoke.texi (fsanitize-recover): Update documentation.
4541
4542 2015-11-23 Tom de Vries <tom@codesourcery.com>
4543
4544 * omp-low.c (build_receiver_ref): Mark by_ref mem_ref as non-trapping.
4545
4546 2015-11-23 Richard Biener <rguenther@suse.de>
4547
4548 PR tree-optimization/68445
4549 * tree-vect-slp.c (vect_create_mask_and_perm): Properly use
4550 two different strides.
4551
4552 2015-11-23 Robin Dapp <rdapp@linux.vnet.ibm.com>
4553
4554 * config/s390/s390.h: Add new symref flags, _NOTALIGN2 etc.
4555 * config/s390/s390.c (s390_check_symref_alignment): Use new
4556 symref flags, early abort on wrong alignment
4557 (s390_secondary_reload): Use new symref flags.
4558 (s390_encode_section_info): Likewise.
4559 * config/s390/predicates.md: Likewise.
4560
4561 2015-11-23 Kugan Vivekanandarajah <kuganv@linaro.org>
4562
4563 PR target/68390
4564 * config/arm/arm.c (arm_function_ok_for_sibcall): Get function type
4565 for indirect function call.
4566
4567 2015-11-22 Bilyan Borisov <bilyan.borisov@arm.com>
4568
4569 * config/aarch64/aarch64-simd.md
4570 (*aarch64_mulx_elt_<vswap_width_name><mode>, VDQSF): New.
4571 (*aarch64_mulx_elt<mode>, VDQF): Likewise.
4572 (*aarch64_mulx_elt_to_64v2df): Likewise.
4573 (*aarch64_vgetfmulx<mode>, VDQF_DF): Likewise.
4574 * config/aarch64/arm_neon.h (vmulx_lane_f32): New.
4575 (vmulx_lane_f64): Likewise.
4576 (vmulxq_lane_f32): Refactored & moved.
4577 (vmulxq_lane_f64): Likewise.
4578 (vmulx_laneq_f32): New.
4579 (vmulx_laneq_f64): Likewise.
4580 (vmulxq_laneq_f32): Likewise.
4581 (vmulxq_laneq_f64): Likewise.
4582 (vmulxs_lane_f32): Likewise.
4583 (vmulxs_laneq_f32): Likewise.
4584 (vmulxd_lane_f64): Likewise.
4585 (vmulxd_laneq_f64): Likewise.
4586
4587 2015-11-21 Jan Hubicka <hubicka@ucw.cz>
4588
4589 * tree.c (build_pointer_type_for_mode,build_reference_type_for_mode):
4590 In LTO we do not compute TYPE_CANONICAL of pointers.
4591 (gimple_canonical_types_compatible_p): Improve coments; sanity check
4592 that pointers do not have canonical type that would make us believe
4593 they are different.
4594 * alias.c (get_alias_set): Do structural type equality on pointers;
4595 enable pointer path for LTO; also glob pointer to vector with pointer
4596 to vector element; glob pointers and references for LTO; do more strict
4597 sanity checking about build_pointer_type returning the canonical type
4598 which is also the main variant.
4599 (record_component_aliases): When component type is pointer and we
4600 do LTO; record void_type_node alias set.
4601
4602 2015-11-21 Nathan Sidwell <nathan@acm.org>
4603
4604 * config/nvptx/nvptx.md (clz<mode>2): Use operand 1 for type.
4605
4606 * config/nvptx/nvptx.c (write_function_decl_and_comment): Print
4607 leading blank line.
4608 (write_func_decl_from_insn): Likewise.
4609 (init_output_initializer, nvptx_assemble_undefined_decl): Likewise.
4610 (nvptx_file_end): Likewise.
4611 (nvptx_function_end): Undent output.
4612 (nvptx_expand_call): Fix formatting.
4613 (nvptx_output_call_insn): Indent output.
4614 * config/nvptx/nvptx.h (ASM_OUTPUT_ALIGNED_DECL_COMMON,
4615 ASM__OUTPUT_ALIGNED_DECL_LOCAL): Print leading blank line.
4616
4617 2015-11-21 Jakub Jelinek <jakub@redhat.com>
4618
4619 PR debug/66432
4620 * tree-inline.c (copy_debug_stmt): If
4621 gimple_debug_source_bind_get_value is DECL_ORIGIN of a PARM_DECL
4622 in decl_debug_args, don't call remap_gimple_op_r on it.
4623
4624 2015-11-07 Jan Hubicka <hubicka@ucw.cz>
4625
4626 * ipa-icf.c (sem_item::add_type): Do not look for TYPE_CANONICAL;
4627 do not check AGGREGATE_TYPE_P when adding TYPE_MODE;
4628 Check that all record types are complete.
4629 * ipa-icf-gimple.c (func_checker::compatible_types_p): Do not
4630 compare alias sets for types w/o alias sets.
4631
4632 2015-11-20 Eric Botcazou <ebotcazou@adacore.com>
4633
4634 * config/sparc/sparc.md (umulxhi_vis): Move around.
4635 (*umulxhi_sp64): Likewise.
4636 (umulxhi_v8plus): Likewise.
4637 (xmulx_vis): Likewise.
4638 (*xmulx_sp64): Likewise.
4639 (xmulx_v8plus): Likewise.
4640 (xmulxhi_vis): Likewise.
4641 (*xmulxhi_sp64): Likewise.
4642 (xmulxhi_v8plus): Likewise.
4643
4644 2015-11-20 David Malcolm <dmalcolm@redhat.com>
4645
4646 PR 62314
4647 * diagnostic-show-locus.c (colorizer::set_fixit_hint): New.
4648 (class layout): Update comment
4649 (layout::print_any_fixits): New method.
4650 (layout::move_to_column): New method.
4651 (diagnostic_show_locus): Add call to layout.print_any_fixits.
4652
4653 2015-11-20 Jakub Jelinek <jakub@redhat.com>
4654
4655 PR middle-end/68221
4656 * omp-low.c (lower_rec_input_clauses): If C/C++ array reduction
4657 has non-zero bias, subtract it in integer type instead of
4658 pointer plus of negated bias.
4659
4660 PR middle-end/68339
4661 * omp-low.c (expand_simd_clones): Call node->get_body () before
4662 allocating stuff in GC.
4663
4664 2015-11-20 Jim Wilson <jim.wilson@linaro.org>
4665
4666 * tree-vect-data-refs.c (compare_tree): Call STRIP_NOPS.
4667
4668 2015-11-20 Evandro Menezes <e.menezes@samsung.com>
4669
4670 * config/aarch64/aarch64.md (predicated): Copy attribute from
4671 "arm.md".
4672 * config/arm/arm.md (predicated): Added description.
4673
4674 2015-11-20 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
4675
4676 * config/arm/arm.c (arm_option_override): Require TARGET_32BIT
4677 for unaligned_access.
4678 * config/arm/arm.md (unaligned_loadsi): Remove redundant TARGET_32BIT
4679 from matching condition.
4680 (unaligned_loadhis): Likewise.
4681 (unaligned_loadhiu): Likewise.
4682 (unaligned_storesi): Likewise.
4683 (unaligned_storehi): Likewise.
4684
4685 2015-11-20 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
4686
4687 PR target/68149
4688 * config/arm/arm.md (unaligned_loaddi): Delete.
4689 (unaligned_storedi): Likewise.
4690 * config/arm/arm.c (gen_movmem_ldrd_strd): Don't generate
4691 unaligned DImode memory ops. Instead perform two back-to-back
4692 unaligned SImode ops.
4693
4694 2015-11-20 Nathan Sidwell <nathan@codesourcery.com>
4695 James Norris <jnorris@codesourcery.com>
4696
4697 * config/nvptx/nvptx.c (nvptx_use_anchors_for_symbol_p): New.
4698 (TARGET_USE_ANCHORS_FOR_SYMBOL_P): Override.
4699
4700 2015-11-20 Alan Hayward <alan.hayward@arm.com>
4701
4702 PR tree-optimization/68413
4703 * tree-vect-loop.c (vect_analyze_scalar_cycles_1): Cache
4704 evolution base
4705 (vectorizable_reduction): Use cached base
4706
4707 2015-11-20 Tom de Vries <tom@codesourcery.com>
4708
4709 * tree-parloops.c (build_new_reduction): Fix trailing whitespace in
4710 dump-file string.
4711 (try_create_reduction_list): Same. Fix typo in dump-file string.
4712
4713 2015-11-20 Eric Botcazou <ebotcazou@adacore.com>
4714
4715 * doc/md.texi (Standard Names): Move entry for addptr3 around,
4716 add entries for addv4, subv4, mulv4, umulv4 and negv3, fixes
4717 glitch in entries for cbranch4 and jump.
4718
4719 2015-11-20 Tom de Vries <tom@codesourcery.com>
4720
4721 PR tree-optimization/68373
4722 * tree-scalar-evolution.c (final_value_replacement_loop): Factor out
4723 of ...
4724 (scev_const_prop): ... here.
4725 * tree-scalar-evolution.h (final_value_replacement_loop): Declare.
4726 * tree-parloops.c (try_create_reduction_list): Call
4727 final_value_replacement_loop.
4728
4729 2015-11-20 Bin Cheng <bin.cheng@arm.com>
4730
4731 PR tree-optimization/52272
4732 * tree-ssa-loop-ivopts.c (struct iv_common_cand): New struct.
4733 (struct iv_common_cand_hasher): New struct.
4734 (iv_common_cand_hasher::hash): New function.
4735 (iv_common_cand_hasher::equal): New function.
4736 (struct ivopts_data): New fields, iv_common_cand_tab and
4737 iv_common_cands.
4738 (tree_ssa_iv_optimize_init): Initialize above fields.
4739 (record_common_cand, common_cand_cmp): New functions.
4740 (add_iv_candidate_derived_from_uses): New function.
4741 (add_iv_candidate_for_use): Record iv_common_cands derived from
4742 iv use in hash table, instead of adding candidates directly.
4743 (add_iv_candidate_for_uses): Call add_iv_candidate_derived_from_uses.
4744 (record_important_candidates): Add important candidates to iv uses'
4745 related_cands. Always keep related_cands for future use.
4746 (try_add_cand_for): Use iv uses' related_cands.
4747 (free_loop_data, tree_ssa_iv_optimize_finalize): Release new fields
4748 in struct ivopts_data, iv_common_cand_tab and iv_common_cands.
4749
4750 2015-11-20 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
4751
4752 * config/s390/s390.md ("bswaphi2"): New pattern.
4753
4754 2015-11-20 Dominik Vogt <vogt@linux.vnet.ibm.com>
4755
4756 * config/s390/s390.md (GPR1_REGNUM): New constant.
4757 ("*trunc<BFP:mode><DFP_ALL:mode>2")
4758 ("*trunc<DFP_ALL:mode><BFP:mode>2")
4759 ("trunc<BFP:mode><DFP_ALL:mode>2")
4760 ("trunc<DFP_ALL:mode><BFP:mode>2")
4761 ("*extend<BFP:mode><DFP_ALL:mode>2")
4762 ("*extend<DFP_ALL:mode><BFP:mode>2")
4763 ("extend<BFP:mode><DFP_ALL:mode>2")
4764 ("extend<DFP_ALL:mode><BFP:mode>2"): Clobber r1.
4765
4766 2015-11-19 Aditya Kumar <aditya.k7@samsung.com>
4767 Sebastian Pop <s.pop@samsung.com>
4768
4769 PR tree-optimization/68428
4770 * graphite-scop-detection.c (harmful_stmt_in_region): Do not iterate
4771 over basic blocks outside the scop.
4772
4773 2015-11-19 Aditya Kumar <aditya.k7@samsung.com>
4774 Sebastian Pop <s.pop@samsung.com>
4775
4776 PR tree-optimization/68341
4777 * graphite-isl-ast-to-gimple.c (get_rename_from_scev): Remove
4778 gcc_unreachable and safely fail codegen.
4779 (copy_loop_close_phi_args): Do not insert merge phis in a basic
4780 block with loop phi nodes.
4781 (edge_for_new_close_phis): New.
4782 (copy_bb_and_scalar_dependences): Call edge_for_new_close_phis.
4783
4784 2015-11-19 Nathan Sidwell <nathan@acm.org>
4785
4786 * config/nvptx/nvptx.h (SUPPORTS_WEAK): Define.
4787 * config/nvptx/nvptx.c (nvptx_write_function_decl): Support DECL_WEAK.
4788 (nvptx_declare_objec_name): Likewise.
4789
4790 2015-11-19 Aditya Kumar <aditya.k7@samsung.com>
4791
4792 * graphite-isl-ast-to-gimple.c (get_true_edge_from_guard_bb): Move...
4793 (get_false_edge_from_guard_bb): Move...
4794 * sese.c (get_false_edge_from_guard_bb)
4795 (get_true_edge_from_guard_bb): ... here.
4796
4797 2015-11-19 David Edelsohn <dje.gcc@gmail.com>
4798
4799 Revert
4800 2015-11-18 Alan Modra <amodra@gmail.com>
4801
4802 * config/rs6000/rs6000.c (use_toc_relative_ref): Ignore
4803 type-limits warning.
4804
4805
4806 2015-11-19 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
4807
4808 * tree.h (desired_pro_or_demotion_p): New function.
4809 * tree-vrp.c (simplify_cond_using_ranges): Call it.
4810
4811 2015-11-19 Michael Matz <matz@suse.de>
4812
4813 PR rtl-optimization/68392
4814 * fwprop.c (update_uses): Use flag_checking instead of
4815 gcc_checking_assert.
4816
4817 2015-11-19 David Malcolm <dmalcolm@redhat.com>
4818
4819 * doc/gty.texi (Support for inheritance): Fix missing
4820 parentheses in example.
4821
4822 2015-11-19 Marek Polacek <polacek@redhat.com>
4823
4824 PR tree-optimization/68431
4825 * tree-vrp.c (extract_range_from_binary_expr_1): Fix condition.
4826
4827 2015-11-19 Nathan Sidwell <nathan@acm.org>
4828
4829 * config/nvptx/nvptx.md (atomic_compare_and_swap<mode>_1,
4830 atomic_exchange<mode>): Input values can be immediates.
4831
4832 2015-11-19 Eric Botcazou <ebotcazou@adacore.com>
4833
4834 PR lto/61313
4835 * configure.ac (PLUGIN_LD_SUFFIX): Do not touch the value specified
4836 by the user.
4837 * configure: Regenerate.
4838
4839 2015-11-19 Eric Botcazou <ebotcazou@adacore.com>
4840
4841 PR target/68408
4842 * config/sparc/sp-elf.h (CTORS_SECTION_ASM_OP): Undefine.
4843 (DTORS_SECTION_ASM_OP): Likewise.
4844
4845 2015-11-19 Jakub Jelinek <jakub@redhat.com>
4846
4847 PR rtl-optimization/68376
4848 * ifcvt.c (noce_try_abs): Disable one_cmpl optimization if
4849 encountering x <= 0 ? ~x : x or x > 0 ? ~x : x.
4850
4851 2015-11-19 Richard Biener <rguenther@suse.de>
4852
4853 PR middle-end/68117
4854 * tree-ssa.c (delete_tree_ssa): Revert removal of call to
4855 redirect_edge_var_map_destroy.
4856
4857 2015-11-19 Jakub Jelinek <jakub@redhat.com>
4858
4859 PR target/67770
4860 * config/i386/i386.md (simple_return): Disable if
4861 ix86_static_chain_on_stack is true.
4862
4863 2015-11-19 Richard Sandiford <richard.sandiford@arm.com>
4864
4865 PR bootstrap/68393
4866 * internal-fn.c (expand_direct_optab_fn): Handle SUBREG_PROMOTED_VAR_P
4867 destinations.
4868
4869 2015-11-18 Jeff Law <law@redhat.com>
4870
4871 PR tree-optimization/68198
4872 * tree-ssa-threadupdate.c (valid_jump_thread_path): Distinguish
4873 between threading a multi-way branch and a thread path that contains
4874 a multi-way branch. Disallow the case where a path contains a
4875 multi-way branch and does not thread a multi-way branch.
4876 (thread_through_all_blocks): Update comment.
4877
4878 2015-11-18 Joseph Myers <joseph@codesourcery.com>
4879
4880 PR c/65083
4881 * ginclude/stdatomic.h (atomic_thread_fence, atomic_signal_fence)
4882 (atomic_flag_test_and_set, atomic_flag_test_and_set_explicit)
4883 (atomic_flag_clear, atomic_flag_clear_explicit): Declare as
4884 functions before defining as macros.
4885
4886 2015-11-18 Nathan Sidwell <nathan@codesourcery.com>
4887
4888 * config/nvptx/nvptx.c (nvptx_process_pars): Fix whitespace.
4889 (nvptx_record_offload_symbol): Remove code compensating for lack
4890 of default dimension handling.
4891 (nvptx_goacc_validate_dims): Remove incorrect ARG_UNUSED markers.
4892
4893 2015-11-18 Aditya Kumar <aditya.k7@samsung.com>
4894
4895 * graphite-isl-ast-to-gimple.c (copy_loop_phi_args): Change the return
4896 type to bool for early exit.
4897 (translate_isl_ast_to_gimple::copy_loop_phi_nodes): Early return
4898 in case of error.
4899 (translate_isl_ast_to_gimple::copy_loop_close_phi_args): Same.
4900 (add_phi_arg_for_new_expr): Enable codegen for if-block where one
4901 predecessor dominates the other.
4902 (translate_isl_ast_to_gimple::copy_cond_phi_args): Fix. When the
4903 element is not found it returns -1.
4904 (translate_isl_ast_to_gimple::translate_pending_phi_nodes): Bail
4905 out early when codegen fails.
4906 (graphite_regenerate_ast_isl): Remove codegen region when pending
4907 phis could not be generated.
4908
4909 2015-11-18 Aditya Kumar <aditya.k7@samsung.com>
4910
4911 * graphite-isl-ast-to-gimple.c (struct ast_build_info): Remove
4912 semicolon.
4913 (class translate_isl_ast_to_gimple): Indentation.
4914 (translate_pending_phi_nodes): Comment.
4915 (add_parameters_to_ivs_params): Moved from sese.c inside class
4916 translate_isl_ast_to_gimple.
4917 (get_max_schedule_dimensions): Same.
4918 (generate_isl_context): Same.
4919 (extend_schedule): Same.
4920 (generate_isl_schedule): Same.
4921 (set_options): Same.
4922 (scop_to_isl_ast): Same.
4923 (is_valid_rename): Same.
4924 (get_rename): Same.
4925 (get_rename_from_scev): Same.
4926 (get_def_bb_for_const): Same.
4927 (get_new_name): Same.
4928 (collect_all_ssa_names): Same.
4929 (copy_loop_phi_args): Same.
4930 (copy_loop_phi_nodes): Same.
4931 (copy_loop_close_phi_args): Same.
4932 (copy_loop_close_phi_nodes): Same.
4933 (copy_cond_phi_args): Same.
4934 (copy_cond_phi_nodes): Same.
4935 (graphite_copy_stmts_from_block): Same.
4936 (copy_bb_and_scalar_dependences): Same.
4937 (add_phi_arg_for_new_expr): Same.
4938 (rename_uses): Same.
4939 (set_rename): Same.
4940 (set_rename_for_each_def): Same.
4941 (gsi_insert_earliest): Same.
4942 (rename_all_uses): Same.
4943 (codegen_error_p): Same.
4944 (print_isl_ast_node): Same.
4945 (translate_isl_ast_for_loop): Call function codegen_error_p.
4946 (translate_isl_ast_to_gimple::translate_isl_ast): Same.
4947 (translate_isl_ast_node_user): Make nb_loops const and release
4948 iv_map before exit.
4949 (get_true_edge_from_guard_bb): Move all free-functions early.
4950 (get_false_edge_from_guard_bb): Same.
4951 (bb_contains_loop_close_phi_nodes): Same.
4952 (bb_contains_loop_phi_nodes): Same.
4953 (is_loop_closed_ssa_use): Same.
4954 (number_of_phi_nodes): Same.
4955 (phi_uses_name): Same.
4956 (later_of_the_two): Same.
4957 (substitute_ssa_name):
4958 (get_edges): Same.
4959 (get_loc): Same.
4960 (get_loop_init_value): Same.
4961 (find_init_value): Same.
4962 (find_init_value_close_phi): Same.
4963 (ast_build_before_for): Same.
4964 (graphite_regenerate_ast_isl): Formatting changes.
4965 * graphite-scop-detection.c (build_cross_bb_scalars_use): Same.
4966 * sese.c (get_rename): Move to graphite-isl-ast-to-gimple.c
4967 (set_rename): Same.
4968 (gsi_insert_earliest): Same.
4969 (collect_all_ssa_names): Same.
4970 (rename_all_uses): Same.
4971 (rename_uses): Same.
4972 (get_def_bb_for_const): Same.
4973 (copy_loop_phi_nodes): Same.
4974 (copy_loop_close_phi_args): Same.
4975 (copy_loop_close_phi_nodes): Same.
4976 (copy_cond_phi_args): Same.
4977 (copy_cond_phi_nodes): Same.
4978 (set_rename_for_each_def): Same.
4979 (graphite_copy_stmts_from_block): Same.
4980 (copy_bb_and_scalar_dependences): Same.
4981 (if_region_set_false_region): Same.
4982 (scev_analyzable_p): Same.
4983 * sese.h: Delete extern functions moved to graphite-isl-ast-to-gimple.c.
4984
4985 2015-11-18 Andreas Tobler <andreast@gcc.gnu.org>
4986
4987 * config/i386/freebsd.h (ASM_OUTPUT_MAX_SKIP_ALIGN): Bring in the
4988 commit from r125920 for FreeBSD.
4989
4990 2015-11-18 Jason Merrill <jason@redhat.com>
4991
4992 * ggc-page.c (ggc_globals): Change finalizers and vec_finalizers
4993 to be vecs of vecs.
4994 (add_finalizer): Split out from ggc_internal_alloc.
4995 (ggc_handle_finalizers): Run finalizers for the current depth.
4996 (init_ggc, ggc_pch_read): Reserve space for finalizers.
4997
4998 2015-11-18 Sandra Loosemore <sandra@codesourcery.com>
4999
5000 PR target/68410
5001 * config/nios2/nios2.c (cdx_and_immed): Remove duplicate tests
5002 from || expression.
5003
5004 2015-11-18 Pitchumani Sivanupandi <pitchumani.s@atmel.com>
5005
5006 * config/avr/avr-mcus.def: Add new avr4 devices atmega48pb and
5007 atmega88pb. Add new avr5 devices ata5791, ata8210, ata8510, atmega168pb
5008 and atmega328pb.
5009 * doc/avr-mmcu.texi: Regenerate.
5010
5011 2015-11-18 Nathan Sidwell <nathan@codesourcery.com>
5012
5013 * config/nvptx/nvptx.c (bb_pair_t, bb_pair_vec_t): New types.
5014 (pseudo_node_t, struct bracket, bracket_vec_t): New types.
5015 (struct bb_sese): New struct.
5016 (bb_sese::~bb_sese, bb_sese::append, bb_sese::remove): New.
5017 (BB_GET_SESE, BB_SET_SESE): Define.
5018 (nvptx_sese_number, nvptx_sese_pseudo, nvptx_sese_color): New.
5019 (nvptx_find_sese): New.
5020 (nvptx_neuter_pars): Find SESE regions when optimizing.
5021
5022 2015-11-18 Alan Modra <amodra@gmail.com>
5023
5024 * config/rs6000/rs6000.c (use_toc_relative_ref): Ignore
5025 type-limits warning.
5026
5027 2015-11-18 Richard Sandiford <richard.sandiford@arm.com>
5028
5029 PR bootstrap/68406
5030 * hash-set.h (hash_set::traverse): Expand Key typedef.
5031
5032 2015-11-18 Martin Liska <mliska@suse.cz>
5033
5034 * config/arm/arm.c (arm_valid_target_attribute_p): Finalize
5035 options struct.
5036
5037 2015-11-18 Nathan Sidwell <nathan@codesourcery.com>
5038
5039 * config/nvptx/nvptx.c (global_lock_var): New.
5040 (nvptx_global_lock_addr): New.
5041 (nvptx_lockless_update): Recomment and adjust for clarity.
5042 (nvptx_lockfull_update): New.
5043 (nvptx_reduction_update): New.
5044 (nvptx_goacc_reduction_fini): Call it.
5045
5046 2015-11-18 Bernd Schmidt <bschmidt@redhat.com>
5047
5048 * regrename.h (struct du_head): Add target_data_1 and target_data_2
5049 fields.
5050 * regrename.c (create_new_chain): Clear entire struct after allocating.
5051
5052 * config/i386/i386.opt (mmitigate-rop): New option.
5053 * doc/invoke.texi (mmitigate-rop): Document.
5054 * config/i386/i386.c: Include "regrename.h".
5055 (ix86_rop_should_change_byte_p, reg_encoded_number,
5056 ix86_get_modrm_for_rop, set_rop_modrm_reg_bits, ix86_mitigate_rop): New
5057 static functions.
5058 (ix86_reorg): Call ix86_mitigate_rop if -fmitigate-rop.
5059 * config/i386/i386.md (attr "modrm_class"): New.
5060 (cmp<mode>_ccno_1, mov<mode>_xor, movstrict<mode>_xor,
5061 x86_mov<mode>cc_0_m1. x86_mov<mode>cc_0_m1_se)
5062 (x86_mov<mode>cc_0_m1_neg): Override modrm_class attribute.
5063
5064 2015-11-18 Ilya Enkovich <enkovich.gnu@gmail.com>
5065
5066 PR target/68405
5067 * config/i386/i386.c (ix86_expand_mask_vec_cmp): Add missing break.
5068
5069 2015-11-18 Jakub Jelinek <jakub@redhat.com>
5070
5071 PR tree-optimization/68157
5072 * tree-ssa-reassoc.c (attempt_builtin_powi): Set uid of
5073 pow_stmt or mul_stmt from stmt's uid.
5074 (reassociate_bb): Set uid of mul_stmt from stmt's uid.
5075
5076 2015-11-18 Martin Liska <mliska@suse.cz>
5077
5078 * haifa-sched.c (haifa_finish_h_i_d): Release reg_set_list.
5079
5080 2015-11-18 Martin Liska <mliska@suse.cz>
5081
5082 * tree-ssa-uninit.c (convert_control_dep_chain_into_preds):
5083 Fix GNU coding style.
5084 (find_def_preds): Use auto_vec.
5085 (destroy_predicate_vecs): Change signature of the function.
5086 (prune_uninit_phi_opnds_in_unrealizable_paths): Use the
5087 new signature.
5088 (simplify_preds_4): Use destroy_predicate_vecs instread of
5089 just releasing preds vector.
5090 (normalize_preds): Likewise.
5091 (is_use_properly_guarded): Use new signature of
5092 destroy_predicate_vecs.
5093 (find_uninit_use): Likewise.
5094
5095 2015-11-18 Richard Biener <rguenther@suse.de>
5096
5097 PR tree-optimization/67790
5098 * tree-vect-loop.c (vect_is_simple_reduction_1): Remove
5099 IL rewrite for MINUS_EXPR reductions, rename back to ...
5100 (vect_is_simple_reduction): ... this, removing the wrapper.
5101 (vect_force_simple_reduction): Adjust.
5102 (vectorizable_reduction): Adjust reduc_index for MINUS_EXPR
5103 reductions and make use if reduc_index in all places. For
5104 the final reduction of MINUS_EXPR use PLUS_EXPR.
5105
5106 2015-11-18 Alan Modra <amodra@gmail.com>
5107
5108 * configure.ac (POWERPC64_TOC_POINTER_ALIGNMENT): Pass -z norelro
5109 to ld.
5110 * configure: Regenerate.
5111
5112 2015-11-17 Tom de Vries <tom@codesourcery.com>
5113
5114 * tree-ssa-loop.c (pass_tree_loop_init::execute): Improve comments.
5115
5116 2015-11-17 Tom de Vries <tom@codesourcery.com>
5117
5118 * tree-scalar-evolution.c (scev_const_prop): Dump details if replacing
5119 uses of ssa_name with constant.
5120
5121 2015-11-17 Tom de Vries <tom@codesourcery.com>
5122
5123 * tree-ssa-ccp.c (do_ssa_ccp): Clear LOOP_CLOSED_SSA in loops state if
5124 something changed.
5125
5126 2015-11-17 Tom de Vries <tom@codesourcery.com>
5127
5128 * cfgloop.h (struct loop): Add in_oacc_kernels_region field.
5129 * omp-low.c (mark_loops_in_oacc_kernels_region): New function.
5130 (expand_omp_target): Call mark_loops_in_oacc_kernels_region.
5131
5132 2015-11-17 Bernd Schmidt <bschmidt@redhat.com>
5133
5134 * regrename.c (regrename_find_superclass): New function, code moved
5135 from ...
5136 (rename_chains): ... here. Call it.
5137 * regrename.h (regrename_find_superclass): Declare.
5138
5139 * regrename.c (record_out_operands): Terminate earlyclobbered
5140 operands here.
5141
5142 PR target/66785
5143 * regrename.c (record_operand_use): Keep track of failed operands
5144 and stop appending if we see any.
5145 * regrename.h (struct operand_rr_info): Add a failed field and shrink
5146 n_chains to short.
5147
5148 2015-11-17 Sandra Loosemore <sandra@codesourcery.com>
5149
5150 PR 48568
5151 * doc/extend.texi (Common Function Attributes) [visibility]:
5152 Add cross-references to matching variable and type attributes.
5153 (Common Variable Attributes) [visibility]: Add missing entry.
5154
5155 2015-11-17 Richard Sandiford <richard.sandiford@arm.com>
5156
5157 * config/rs6000/rs6000.c (rs6000_builtin_vectorized_function): Remove
5158 entries that map directly to optabs.
5159
5160 2015-11-17 Richard Sandiford <richard.sandiford@arm.com>
5161
5162 * config/i386/i386.c (ix86_builtin_vectorized_function): Remove
5163 entries that map directly to optabs.
5164
5165 2015-11-17 Richard Sandiford <richard.sandiford@arm.com>
5166
5167 * internal-fn.h (direct_internal_fn_info): Add vectorizable flag.
5168 * internal-fn.c (direct_internal_fn_array): Update accordingly.
5169 * tree-vectorizer.h (vectorizable_function): Delete.
5170 * tree-vect-stmts.c: Include internal-fn.h.
5171 (vectorizable_internal_function): New function.
5172 (vectorizable_function): Inline into...
5173 (vectorizable_call): ...here. Explicitly reject calls that read
5174 from or write to memory. Try using an internal function before
5175 falling back on the old vectorizable_function behavior.
5176
5177 2015-11-17 Richard Sandiford <richard.sandiford@arm.com>
5178
5179 * target.def (builtin_vectorized_function): Take a combined_fn (in
5180 the form of an unsigned int) rather than a function decl.
5181 (builtin_md_vectorized_function): New.
5182 * targhooks.h (default_builtin_vectorized_function): Replace the
5183 fndecl argument with an unsigned int.
5184 (default_builtin_md_vectorized_function): Declare.
5185 * targhooks.c (default_builtin_vectorized_function): Replace the
5186 fndecl argument with an unsigned int.
5187 (default_builtin_md_vectorized_function): New function.
5188 * doc/tm.texi.in (TARGET_VECTORIZE_BUILTIN_MD_VECTORIZED_FUNCTION):
5189 New hook.
5190 * doc/tm.texi: Regenerate.
5191 * tree-vect-stmts.c (vectorizable_function): Update call to
5192 builtin_vectorized_function, also passing internal functions.
5193 Call builtin_md_vectorized_function for target-specific builtins.
5194 * config/aarch64/aarch64-protos.h
5195 (aarch64_builtin_vectorized_function): Replace fndecl argument
5196 with an unsigned int.
5197 * config/aarch64/aarch64-builtins.c: Include case-cfn-macros.h.
5198 (aarch64_builtin_vectorized_function): Update after above changes.
5199 Use CASE_CFN_*.
5200 * config/arm/arm-protos.h (arm_builtin_vectorized_function): Replace
5201 fndecl argument with an unsigned int.
5202 * config/arm/arm-builtins.c: Include case-cfn-macros.h
5203 (arm_builtin_vectorized_function): Update after above changes.
5204 Use CASE_CFN_*.
5205 * config/i386/i386.c: Include case-cfn-macros.h
5206 (ix86_veclib_handler): Take a combined_fn rather than a
5207 built_in_function.
5208 (ix86_veclibabi_svml, ix86_veclibabi_acml): Likewise. Use
5209 mathfn_built_in rather than calling builtin_decl_implicit directly.
5210 (ix86_builtin_vectorized_function) Update after above changes.
5211 Use CASE_CFN_*.
5212 * config/rs6000/rs6000.c: Include case-cfn-macros.h
5213 (rs6000_builtin_vectorized_libmass): Replace fndecl argument
5214 with a combined_fn. Use CASE_CFN_*. Use mathfn_built_in rather
5215 than calling builtin_decl_implicit directly.
5216 (rs6000_builtin_vectorized_function): Update after above changes.
5217 Use CASE_CFN_*. Move BUILT_IN_MD to...
5218 (rs6000_builtin_md_vectorized_function): ...this new function.
5219 (TARGET_VECTORIZE_BUILTIN_MD_VECTORIZED_FUNCTION): Define.
5220
5221 2015-11-17 Richard Sandiford <richard.sandiford@arm.com>
5222
5223 * tree-vect-patterns.c: Include internal-fn.h.
5224 (vect_recog_pow_pattern): Use IFN_SQRT instead of BUILT_IN_SQRT*.
5225
5226 2015-11-17 Richard Sandiford <richard.sandiford@arm.com>
5227
5228 * tree.h (BUILTIN_EXP10_P, BUILTIN_EXPONENT_P, BUILTIN_SQRT_P)
5229 (BUILTIN_CBRT_P, BUILTIN_ROOT_P): Delete.
5230
5231 2015-11-17 Richard Sandiford <richard.sandiford@arm.com>
5232
5233 * builtins.c (expand_errno_check, expand_builtin_mathfn)
5234 (expand_builtin_mathfn_2): Delete.
5235 (expand_builtin): Remove handling of functions with
5236 internal function equivalents.
5237 * internal-fn.def (SET_EDOM): New internal function.
5238 * internal-fn.h (set_edom_supported_p): Declare.
5239 * internal-fn.c (expand_SET_EDOM): New function.
5240 (set_edom_supported_p): Likewise.
5241 * tree-call-cdce.c: Include builtins.h and internal-fn.h.
5242 Rewrite comment at head of file.
5243 (is_call_dce_candidate): Rename to...
5244 (can_test_argument_range): ...this. Don't check gimple_call_lhs
5245 or gimple_call_builtin_p here.
5246 (edom_only_function): New function.
5247 (shrink_wrap_one_built_in_call_with_conds): New function, split out
5248 from...
5249 (shrink_wrap_one_built_in_call): ...here.
5250 (can_use_internal_fn, use_internal_fn): New functions.
5251 (shrink_wrap_conditional_dead_built_in_calls): Call use_internal_fn
5252 for calls that have an lhs.
5253 (pass_call_cdce::gate): Remove optimize_function_for_speed_p check.
5254 (pass_call_cdce::execute): Skip blocks that are optimized for size.
5255 Check gimple_call_builtin_p here. Use can_use_internal_fn for
5256 calls with an lhs.
5257 * opts.c (default_options_table): Enable -ftree-builtin-call-cdce
5258 at -O and above.
5259
5260 2015-11-17 Richard Sandiford <richard.sandiford@arm.com>
5261
5262 * builtins.h (called_as_built_in): Declare.
5263 * builtins.c (called_as_built_in): Make external.
5264 * internal-fn.h (expand_internal_call): Define a variant that
5265 specifies the internal function explicitly.
5266 * internal-fn.c (expand_load_lanes_optab_fn)
5267 (expand_store_lanes_optab_fn, expand_ANNOTATE, expand_GOMP_SIMD_LANE)
5268 (expand_GOMP_SIMD_VF, expand_GOMP_SIMD_LAST_LANE)
5269 (expand_GOMP_SIMD_ORDERED_START, expand_GOMP_SIMD_ORDERED_END)
5270 (expand_UBSAN_NULL, expand_UBSAN_BOUNDS, expand_UBSAN_VPTR)
5271 (expand_UBSAN_OBJECT_SIZE, expand_ASAN_CHECK, expand_TSAN_FUNC_EXIT)
5272 (expand_UBSAN_CHECK_ADD, expand_UBSAN_CHECK_SUB)
5273 (expand_UBSAN_CHECK_MUL, expand_ADD_OVERFLOW, expand_SUB_OVERFLOW)
5274 (expand_MUL_OVERFLOW, expand_LOOP_VECTORIZED)
5275 (expand_mask_load_optab_fn, expand_mask_store_optab_fn)
5276 (expand_ABNORMAL_DISPATCHER, expand_BUILTIN_EXPECT, expand_VA_ARG)
5277 (expand_UNIQUE, expand_GOACC_DIM_SIZE, expand_GOACC_DIM_POS)
5278 (expand_GOACC_LOOP, expand_GOACC_REDUCTION, expand_direct_optab_fn)
5279 (expand_unary_optab_fn, expand_binary_optab_fn): Add an internal_fn
5280 argument.
5281 (internal_fn_expanders): Update prototype.
5282 (expand_internal_call): Define a variant that specifies the
5283 internal function explicitly. Use it to implement the previous
5284 interface.
5285 * cfgexpand.c (expand_call_stmt): Try to expand calls to built-in
5286 functions as calls to internal functions.
5287
5288 2015-11-17 Richard Sandiford <richard.sandiford@arm.com>
5289
5290 * Makefile.in (MOSTLYCLEANFILES): Add cfn-operators.pd.
5291 (generated_files): Likewise.
5292 (s-cfn-operators, cfn-operators.pd): New rules.
5293 (s-match): Depend on cfn-operators.pd.
5294 * gencfn-macros.c: Expand comment to describe -o behavior.
5295 (print_define_operator_list): New function.
5296 (main): Accept -o. Call print_define_operator_list.
5297 * genmatch.c (main): Add the current directory to the include path.
5298 * match.pd (DEFINE_MATH_FN): Delete. Include cfn-operators.pd
5299 instead.
5300
5301 2015-11-17 Richard Sandiford <richard.sandiford@arm.com>
5302
5303 * doc/match-and-simplify.texi: Document the "null" identifier.
5304 * genmatch.c (id_base::NULL_ID): New kind.
5305 (null_id): New variable.
5306 (get_operator): Add a parameter that says whether null identifiers
5307 are allowed.
5308 (contains_id): New function.
5309 (lower_for): Skip substitutions that would have a null_id in
5310 either the match or the result.
5311 (parser::parse_for): Allow the null identifier to be used.
5312 (parser::parse_operator_list): Likewise.
5313 (main): Initialize null_id.
5314
5315 2015-11-17 Richard Sandiford <richard.sandiford@arm.com>
5316
5317 * match.pd: Use HYPOT and COS rather than hypot and cos.
5318 Use CASE_CFN_* macros. Guard log/exp folds with
5319 SCALAR_FLOAT_TYPE_P.
5320 * genmatch.c (internal_fn): New enum.
5321 (fn_id::fn): Change to an unsigned int.
5322 (fn_id::fn_id): Accept internal_fn too.
5323 (add_builtin): Rename to...
5324 (add_function): ...this and turn into a template.
5325 (get_operator): Only try one variation if the original name fails.
5326 Only add _EXPR if the original name was all lower case.
5327 Try converting internal and built-in function names to their
5328 CFN equivalents.
5329 (expr::gen_transform): Use maybe_build_call_expr_loc for generic.
5330 (dt_simplify::gen_1): Likewise.
5331 (dt_node::gen_kids_1): Use gimple_call_combined_fn for gimple
5332 and get_call_combined_fn for generic.
5333 (dt_simplify::gen): Use combined_fn as the type of fn_ids.
5334 (decision_tree::gen): Likewise.
5335 (main): Use lower case in the strings for {VIEW_,}CONVERT[012].
5336 Use add_function rather than add_builtin. Register internal
5337 functions too.
5338 * generic-match-head.c: Include case-cfn-macros.h.
5339 * gimple-fold.c (replace_stmt_with_simplification): Use
5340 gimple_call_combined_fn to test whether we can keep an
5341 existing call.
5342 * gimple-match.h (code_helper): Replace built_in_function
5343 with combined_fn.
5344 * gimple-match-head.c: Include fold-const-call.h, internal-fn.h
5345 and case-fn-macros.h.
5346 (gimple_resimplify1): Use fold_const_call.
5347 (gimple_resimplify2, gimple_resimplify3): Likewise.
5348 (build_call_internal, build_call): New functions.
5349 (maybe_push_res_to_seq): Use them.
5350 (gimple_simplify): Use fold_const_call. Set *rcode to a combined_fn
5351 rather than a built-in function.
5352 * tree.h (build_call_expr_internal_loc): Declare.
5353 (maybe_build_call_expr_loc): Likewise.
5354 * tree.c (build_call_expr_internal_loc_array): New function.
5355 (maybe_build_call_expr_loc): Likewise.
5356
5357 2015-11-17 Richard Sandiford <richard.sandiford@arm.com>
5358
5359 * builtins.h (mathfn_built_in): Add a variant that takes
5360 a combined_fn.
5361 * builtins.c: Include case-cfn-macros.h.
5362 (CASE_MATHFN): Use CASE_CFN_*.
5363 (CASE_MATHFN_REENT): Use CFN_ codes.
5364 (mathfn_built_in_2, mathfn_built_in_1): Replace built_in_function
5365 argument with a combined_fn.
5366 (mathfn_built_in): Add a variant that takes a combined_fn.
5367 (expand_builtin_int_roundingfn_2): Update callers accordingly.
5368 (fold_builtin_sincos, fold_builtin_classify): Likewise.
5369
5370 2015-11-17 Richard Sandiford <richard.sandiford@arm.com>
5371
5372 * tree-vect-patterns.c: Include case-cfn-macros.h.
5373 (vect_recog_pow_pattern): Use combined_fn instead of built-in codes.
5374
5375 2015-11-17 Richard Sandiford <richard.sandiford@arm.com>
5376
5377 * tree-ssa-math-opts.c: Include case-cfn-macros.h.
5378 (execute_cse_sincos_1): Use combined_fn instead of built-in codes.
5379 (pass_cse_sincos::execute): Likewise.
5380
5381 2015-11-17 Richard Sandiford <richard.sandiford@arm.com>
5382
5383 * tree-ssa-reassoc.c: Include case-cfn-macros.h.
5384 (stmt_is_power_of_op): Use combined_fn instead of built-in codes.
5385 (decrement_power, acceptable_pow_call): Likewise.
5386 (attempt_builtin_copysign): Likewise.
5387
5388 2015-11-17 Richard Sandiford <richard.sandiford@arm.com>
5389
5390 * tree-vrp.c: Include case-cfn-macros.h.
5391 (extract_range_basic): Switch on combined_fn rather than handling
5392 built-in functions and internal functions separately.
5393
5394 2015-11-17 Richard Sandiford <richard.sandiford@arm.com>
5395
5396 * fold-const.h (negate_mathfn_p): Take a combined_fn rather
5397 than a built_in_function.
5398 (tree_call_nonnegative_warnv_p): Take a combined_fn rather than
5399 a function decl.
5400 (integer_valued_real_call_p): Likewise.
5401 * fold-const.c: Include case-cfn-macros.h
5402 (negate_mathfn_p): Take a combined_fn rather than a built_in_function.
5403 (negate_expr_p): Update accordingly.
5404 (tree_call_nonnegative_warnv_p): Take a combined_fn rather than
5405 a function decl.
5406 (integer_valued_real_call_p): Likewise.
5407 (tree_invalid_nonnegative_warnv_p): Update accordingly.
5408 (integer_valued_real_p): Likewise.
5409 * gimple-fold.c (gimple_call_nonnegative_warnv_p): Update call
5410 to tree_call_nonnegative_warnv_p.
5411 (gimple_call_integer_valued_real_p): Likewise
5412 integer_valued_real_call_p.
5413 * gimple-ssa-backprop.c: Include case-cfn-macros.h.
5414 (backprop::process_builtin_call_use): Extend to combined_fn.
5415 (strip_sign_op_1): Likewise.
5416 (backprop::process_use): Don't check for built-in calls here.
5417 (backprop::execute): Likewise.
5418 (backprop::optimize_builtin_call): Update call to negate_mathfn_p.
5419
5420 2015-11-17 Richard Sandiford <richard.sandiford@arm.com>
5421
5422 * fold-const-call.h (fold_const_call): Replace built_in_function
5423 arguments with combined_fn arguments.
5424 * fold-const-call.c: Include case-cfn-macros.h.
5425 (fold_const_call_ss, fold_const_call_cs, fold_const_call_sc)
5426 (fold_const_call_cc, fold_const_call_sss, fold_const_call_ccc)
5427 (fold_const_call_ssss, fold_const_call_1, fold_const_call): Replace
5428 built_in_function arguments with combined_fn arguments.
5429 * builtins.c (fold_builtin_sincos, fold_builtin_1, fold_builtin_2)
5430 (fold_builtin_3): Update calls to fold_const_call.
5431
5432 2015-11-17 Richard Sandiford <richard.sandiford@arm.com>
5433
5434 * Makefile.in (HASH_TABLE_H): Add GGC_H.
5435 (MOSTLYCLEANFILES, generated_files): Add case-fn-macros.h.
5436 (s-case-cfn-macros, case-cfn-macros.h, build/gencfn-macros.o)
5437 (build/gencfn-macros$(build_exeext): New rules.
5438 (genprogerr): Add cfn-macros.
5439 * hash-set.h (hash_set): Use the traits value_type as the key.
5440 * gencfn-macros.c: New file.
5441
5442 2015-11-17 Richard Sandiford <richard.sandiford@arm.com>
5443
5444 * internal-fn.def (DEF_INTERNAL_INT_FN): New macro.
5445 (CLRSB, CLZ, CTZ, FFS, PARITY, POPCOUNT): New functions.
5446 * builtins.c (associated_internal_fn): Handle them.
5447
5448 2015-11-17 Richard Sandiford <richard.sandiford@arm.com>
5449
5450 * builtins.h (associated_internal_fn): Declare.
5451 (replacement_internal_fn): Likewise.
5452 * builtins.c: Include internal-fn.h
5453 (associated_internal_fn, replacement_internal_fn): New functions.
5454 * internal-fn.def (DEF_INTERNAL_FLT_FN): New macro.
5455 (ACOS, ASIN, ATAN, COS, EXP, EXP10, EXP2, EXPM1, LOG, LOG10, LOG1P)
5456 (LOG2, LOGB, SIGNIFICAND, SIN, SQRT, TAN, CEIL, FLOOR, NEARBYINT)
5457 (RINT, ROUND, TRUNC, ATAN2, COPYSIGN, FMOD, POW, REMAINDER, SCALB)
5458 (LDEXP): New functions.
5459 * internal-fn.c: Include recog.h.
5460 (unary_direct, binary_direct): New macros.
5461 (expand_direct_optab_fn): New function.
5462 (expand_unary_optab_fn): New macro.
5463 (expand_binary_optab_fn): Likewise.
5464 (direct_unary_optab_supported_p): Likewise.
5465 (direct_binary_optab_supported_p): Likewise.
5466
5467 2015-11-17 Richard Sandiford <richard.sandiford@arm.com>
5468
5469 * coretypes.h (tree_pair): New type.
5470 * internal-fn.def (DEF_INTERNAL_OPTAB_FN): New macro. Use it
5471 for MASK_LOAD, LOAD_LANES, MASK_STORE and STORE_LANES.
5472 * internal-fn.h (direct_internal_fn_info): New structure.
5473 (direct_internal_fn_array): Declare.
5474 (direct_internal_fn_p, direct_internal_fn): New functions.
5475 (direct_internal_fn_types, direct_internal_fn_supported_p): Declare.
5476 * internal-fn.c (not_direct, mask_load_direct, load_lanes_direct)
5477 (mask_store_direct, store_lanes_direct): New macros.
5478 (direct_internal_fn_array) New array.
5479 (get_multi_vector_move): Return the optab handler without asserting
5480 that it is available.
5481 (expand_LOAD_LANES): Rename to...
5482 (expand_load_lanes_optab_fn): ...this and add an optab argument.
5483 (expand_STORE_LANES): Rename to...
5484 (expand_store_lanes_optab_fn): ...this and add an optab argument.
5485 (expand_MASK_LOAD): Rename to...
5486 (expand_mask_load_optab_fn): ...this and add an optab argument.
5487 (expand_MASK_STORE): Rename to...
5488 (expand_mask_store_optab_fn): ...this and add an optab argument.
5489 (direct_internal_fn_types, direct_optab_supported_p)
5490 (multi_vector_optab_supported_p, direct_internal_fn_supported_p)
5491 (direct_internal_fn_supported_p): New functions.
5492 (direct_mask_load_optab_supported_p): New macro.
5493 (direct_load_lanes_optab_supported_p): Likewise.
5494 (direct_mask_store_optab_supported_p): Likewise.
5495 (direct_store_lanes_optab_supported_p): Likewise.
5496
5497 2015-11-17 Richard Sandiford <richard.sandiford@arm.com>
5498
5499 * tree-core.h (internal_fn): Move immediately after the definition
5500 of built_in_function.
5501 (combined_fn): New enum.
5502 * tree.h (as_combined_fn, builtin_fn_p, as_builtin_fn)
5503 (internal_fn_p, as_internal_fn): New functions.
5504 (get_call_combined_fn, combined_fn_name): Declare.
5505 * tree.c (get_call_combined_fn): New function.
5506 (combined_fn_name): Likewise.
5507 * gimple.h (gimple_call_combined_fn): Declare.
5508 * gimple.c (gimple_call_combined_fn): New function.
5509
5510 2015-11-17 Martin Sebor <msebor@redhat.com>
5511
5512 PR c++/68308
5513 * cp/init.c (build_new_1): Check for expression constness
5514 the right way.
5515
5516 2015-11-17 Sandra Loosemore <sandra@codesourcery.com>
5517
5518 PR target/53587
5519 * doc/invoke.texi (Option Summary): Add -mms-bitfields to x86
5520 option list.
5521 (x86 Options): Add -mms-bitfields and -mno-ms-bitfields. Move
5522 discussion of the Microsoft structure layout details here from
5523 its former home in extend.texi.
5524 * doc/extend.texi (x86 Variable Attributes): Replace detailed
5525 discussion with pointer to its new location. Add cross-reference
5526 to corresponding type attributes.
5527 (x86 Type Attributes): Add cross-references to command-line options
5528 and variable attributes.
5529
5530 2015-11-17 Ilya Enkovich <enkovich.gnu@gmail.com>
5531
5532 PR middle-end/68134
5533 * targhooks.c (default_get_mask_mode): Filter out
5534 scalar modes returned by mode_for_vector.
5535
5536 2015-11-17 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5537
5538 PR target/68143
5539 * config/arm/arm.c (arm_block_set_unaligned_vect): Keep track of
5540 offset from dstbase and use it appropriately in
5541 adjust_automodify_address.
5542 (arm_block_set_aligned_vect): Likewise.
5543
5544 2015-11-17 Eric Botcazou <ebotcazou@adacore.com>
5545
5546 * config/visium/t-visium (MULTILIB_OPTIONS): Add muser-mode.
5547 (MULTILIB_DIRNAMES): Adjust accordingly.
5548
5549 2015-11-17 James Greenhalgh <james.greenhalgh@arm.com>
5550
5551 * config/aarch64/aarch64-cores.def (cortex-a35): New.
5552 * config/aarch64/aarch64.c (cortexa35_tunings): New.
5553 * config/aarch64/aarch64-tune.md: Regenerate.
5554 * doc/invoke.texi (-mcpu): Add Cortex-A35
5555
5556 2015-11-17 Uros Bizjak <ubizjak@gmail.com>
5557
5558 PR target/68263
5559 * config/i386/i386.h (BIGGEST_ALIGNMENT): Always define
5560 to 32 for IAMCU.
5561 * config/i386/sse.md (*mov<mode>_internal): Always enable
5562 AVX and SSE unaligned moves for IAMCU.
5563
5564 2015-11-17 Venkataramanan Kumar <Venkataramanan.Kumar@amd.com>
5565
5566 * tree-if-conv.c: Include varasm.h
5567 (ref_DR_map): Define.
5568 (baseref_DR_map): Like wise
5569 (struct ifc_dr): Add new tree predicate field.
5570 (hash_memrefs_baserefs_and_store_DRs_read_written_info): New function.
5571 (memrefs_read_or_written_unconditionally): Remove.
5572 (write_memrefs_written_at_least_once): Remove.
5573 (ifcvt_memrefs_wont_trap): Use hash maps to query
5574 unconditional read/written information.
5575 (if_convertible_loop_p_1): Initialize hash maps and predicates
5576 before hashing data references and delete hashmaps at the end.
5577
5578 2015-11-16 Thomas Preud'homme <thomas.preudhomme@arm.com>
5579
5580 PR 56036
5581 * doc/invoke.texi (Optimize Options): Move @end table to the right
5582 place.
5583
5584 2015-11-16 Sandra Loosemore <sandra@codesourcery.com>
5585
5586 PR 65129
5587 * doc/extend.texi (__builtin_assume_aligned): Fix formatting of
5588 return value.
5589
5590 2015-11-16 Michael Meissner <meissner@linux.vnet.ibm.com>
5591
5592 * config/rs6000/vsx.md (VSX_L): Do not include IBM extended double
5593 128-bit types, just types that fit in a single vector.
5594 * config/rs6000/rs6000.md (FMOVE128_GPR): Likewise.
5595
5596 2015-11-16 David Wohlferd <dw@LimeGreenSocks.com>
5597
5598 * doc/md.texi ('#' and '*' constraint modifiers): Do not include these
5599 in the user documentation.
5600 (define_peephole2, define_split): Similarly.
5601
5602 2015-11-16 Andris Pavenis <andris.pavenis@iki.fi>
5603
5604 * lto-streamer-out.c (write_global_references): Adjust integer type.
5605 (lto_output_decl_state_refs): Likewise.
5606
5607 2015-11-16 James Greenhalgh <james.greenhalgh@arm.com>
5608
5609 * config/arm/arm-cores.def (cortex-a35): New.
5610 * config/arm/arm.c (arm_cortex_a35_tune): New.
5611 * config/arm/arm-tables.opt: Regenerate.
5612 * config/arm/arm-tune.md: Regenerate.
5613 * config/arm/bpabi.h (BE8_LINK_SPEC): Add cortex-a35.
5614 * config/arm/t-aprofile: Likewise.
5615 * doc/invoke.texi (-mcpu): Likewise.
5616
5617 2015-11-16 Jim Wilson <jim.wilson@linaro.org>
5618
5619 * config/arm/t-aprofile (MULTILIB_MATCHES): Add lines for exynos-m1
5620 and qdf24xx and xgene1 to match -march=armv8-a.
5621
5622 2015-11-16 Segher Boessenkool <segher@kernel.crashing.org>
5623
5624 PR rtl-optimization/68330
5625 * simplify-rtx.c (simplify_unary_operation_1): Simplify SIGN_EXTEND
5626 of LSHIFTRT by a non-zero constant integer.
5627
5628 2015-11-16 Richard Biener <rguenther@suse.de>
5629
5630 PR tree-optimization/68306
5631 * tree-vect-data-refs.c (vect_verify_datarefs_alignment): Fix
5632 bogus copying from verify_data_ref_alignment and use continue
5633 instead of return.
5634
5635 2015-11-16 Oleg Endo <olegendo@gcc.gnu.org>
5636 Kaz Kojima <kkojima@gcc.gnu.org>
5637
5638 PR target/68277
5639 * config/sh/sh.md (addsi3_scr): Handle reg overlap of operands[0] and
5640 operands[2].
5641 (*addsi3): Add another insn_and_split variant for reload.
5642
5643 2015-11-16 Richard Biener <rguenther@suse.de>
5644
5645 PR middle-end/68117
5646 * cfgexpand.c (pass_expand::execute): Destroy the edge
5647 redirection var map before setting RTL CFG hooks.
5648
5649 2015-11-16 Alan Lawrence <alan.lawrence@arm.com>
5650
5651 * config/i386/sse.md (reduc_splus_v8df): Rename to...
5652 (reduc_plus_scal_v8df): ...here; reduce to temp and extract scalar.
5653
5654 (reduc_splus_v4df): Rename to...
5655 (reduc_plus_scal_v4df): ...here; reduce to temp and extract scalar.
5656
5657 (reduc_splus_v2df): Rename to...
5658 (reduc_plus_scal_v2df): ...here; reduce to temp and extract scalar.
5659
5660 (reduc_splus_v16sf): Rename to...
5661 (reduc_plus_scal_v16sf): ...here; reduce to temp and extract scalar.
5662
5663 (reduc_splus_v8sf): Rename to...
5664 (reduc_plus_scal_v8sf): ...here; reduce to temp and extract scalar.
5665
5666 (reduc_splus_v4sf): Rename to...
5667 (reduc_plus_scal_v4sf): ...here; reduce to temp and extract scalar.
5668
5669 (reduc_<code>_<mode>, all 3 variants): Rename each to...
5670 (reduc_<code>_scal_<mode>): ...here; reduce to temp and extract scalar.
5671
5672 (reduc_umin_v8hf): Rename to...
5673 (reduc_umin_scal_v8hf): ...here; reduce to temp and extract scalar.
5674
5675 2015-11-16 Kirill Yukhin <kirill.yukhin@intel.com>
5676
5677 * omp-low.c (pass_omp_simd_clone::gate): If target allows - call
5678 without additional conditions.
5679 * doc/extend.texi (@item simd): New.
5680
5681 2015-11-16 Tom de Vries <tom@codesourcery.com>
5682
5683 * passes.c (first_pass_instance): Remove variable.
5684 (execute_todo): Remove setting of first_pass_instance.
5685 * tree-pass.h (first_pass_instance): Remove declaration.
5686
5687 2015-11-16 Tom de Vries <tom@codesourcery.com>
5688
5689 * passes.def: Add arg to pass_ccp pass instantiation.
5690 * tree-ssa-ccp.c (ccp_finalize): Add param nonzero_p. Use nonzero_p
5691 instead of first_pass_instance.
5692 (do_ssa_ccp): Add and handle param nonzero_p.
5693 (pass_ccp::pass_ccp): Initialize nonzero_p.
5694 (pass_ccp::set_pass_param): New member function. Set nonzero_p.
5695 (pass_ccp::execute): Call do_ssa_ccp with extra arg.
5696 (pass_ccp::nonzero_p): New private member.
5697
5698 2015-11-16 Tom de Vries <tom@codesourcery.com>
5699
5700 * passes.def: Add arg to pass_object_sizes pass instantiation.
5701 * tree-object-size.c (pass_object_sizes::pass_object_sizes): Initialize
5702 insert_min_max_p.
5703 (pass_object_sizes::set_pass_param): New member function. Set
5704 insert_min_max_p.
5705 (pass_object_sizes::insert_min_max_p): New private member.
5706 (pass_object_sizes::execute): Use insert_min_max_p instead of
5707 first_pass_instance.
5708
5709 2015-11-16 Tom de Vries <tom@codesourcery.com>
5710
5711 * passes.def: Add arg to pass_dominator pass instantiation.
5712 * tree-pass.h (first_pass_instance): Remove pass_dominator-related bit
5713 of comment.
5714 * tree-ssa-dom.c (pass_dominator::pass_dominator): Initialize
5715 may_peel_loop_headers_p.
5716 (pass_dominator::set_pass_param): New member function. Set
5717 may_peel_loop_headers_p.
5718 (pass_dominator::may_peel_loop_headers_p): New private member.
5719 (pass_dominator::execute): Use may_peel_loop_headers_p instead of
5720 first_pass_instance.
5721
5722 2015-11-16 Tom de Vries <tom@codesourcery.com>
5723
5724 * passes.def: Add arg to pass_reassoc pass instantiation.
5725 * tree-ssa-reassoc.c (reassoc_insert_powi_p): New static variable.
5726 (acceptable_pow_call, reassociate_bb): Use reassoc_insert_powi_p instead
5727 of first_pass_instance.
5728 (execute_reassoc): Add and handle insert_powi_p parameter.
5729 (pass_reassoc::insert_powi_p): New private member.
5730 (pass_reassoc::pass_reassoc): Initialize insert_powi_p.
5731 (pass_reassoc::set_pass_param): New member function. Set insert_powi_p.
5732 (pass_reassoc::execute): Call execute_reassoc with extra arg.
5733
5734 2015-11-16 Tom de Vries <tom@codesourcery.com>
5735
5736 * gdbhooks.py (class PassNames): Handle extra arg NEXT_PASS argument.
5737 * gen-pass-instances.awk (handle_line): Same.
5738 * pass_manager.h (class pass_manager): Define and undefine
5739 NEXT_PASS_WITH_ARG.
5740 * passes.c (opt_pass::set_pass_param): New function.
5741 (pass_manager::pass_manager): Define and undefine NEXT_PASS_WITH_ARG.
5742 * passes.def: Add extra arg to NEXT_PASS (pass_vrp).
5743 * tree-pass.h (gimple_opt::set_pass_param): Declare.
5744 * tree-vrp.c (vrp_finalize, execute_vrp): Add and handle
5745 warn_array_bounds_p parameter.
5746 (pass_vrp::pass_vrp): Initialize warn_array_bounds_p.
5747 (pass_vrp::set_pass_param): New function.
5748 (pass_vrp::execute): Add warn_array_bounds_p arg to execute_vrp call.
5749 (pass_vrp::warn_array_bounds_p): New private member.
5750
5751 2015-11-16 Eric Botcazou <ebotcazou@adacore.com>
5752
5753 * config/sparc/sparc.c (sparc_emit_probe_stack_range): Adjust.
5754 (output_probe_stack_range): Rotate the loop and simplify.
5755
5756 2015-11-16 Eric Botcazou <ebotcazou@adacore.com>
5757
5758 * config/rs6000/rs6000.c (rs6000_emit_probe_stack_rang): Adjust.
5759 (output_probe_stack_range): Rotate the loop and simplify.
5760
5761 2015-11-16 Eric Botcazou <ebotcazou@adacore.com>
5762
5763 * config/i386/i386.c (ix86_adjust_stack_and_probe): Adjust and use
5764 an lea instruction when possible.
5765 (output_adjust_stack_and_probe): Rotate the loop and simplify.
5766 (ix86_emit_probe_stack_range): Adjust.
5767 (output_probe_stack_range): Rotate the loop and simplify.
5768
5769 2015-11-16 Christian Bruel <christian.bruel@st.com>
5770
5771 * config/arm/arm_neon.h: Remove #ifndef check on __ARM_NEON.
5772 Replace #ifdef __ARM_FEATURE_CRYPTO, __ARM_FEATURE_FMA, __ARM_FP
5773 with appropriate pragma GCC target.
5774
5775 2015-11-16 Christian Bruel <christian.bruel@st.com>
5776
5777 PR target/65837
5778 * config/arm/arm-c.c (arm_cpu_builtins): Conditionally set and reset
5779 __ARM_FEATURE_FMA and __ARM_NEON_FP, __ARM_FP.
5780
5781 2015-11-16 James Greenhalgh <james.greenhalgh@arm.com>
5782
5783 * config/aarch64/aarch64.c (cortexa57_branch_costs): New.
5784 (cortexa57_tunings): Use it.
5785
5786 2015-11-16 Christian Bruel <christian.bruel@st.com>
5787
5788 PR target/65837
5789 * config/arm/arm-c.c (arm_cpu_builtins): Set or reset
5790 __ARM_FEATURE_CRYPTO, __VFP_FP__, __ARM_NEON__
5791 (arm_pragma_target_parse): Change check for arm_cpu_builtins.
5792 undefine __ARM_FP.
5793 * config/arm/arm.c (arm_can_inline_p): Check FPUs.
5794 (arm_valid_target_attribute_rec): Handle -mfpu attribute target.
5795 * doc/invoke.texi (-mfpu=): Mention attribute and pragma.
5796 * doc/extend.texi (-mfpu=): Describe attribute.
5797
5798 2015-11-16 Christian Bruel <christian.bruel@st.com>
5799
5800 PR target/65837
5801 * config/arm/arm-protos.h (arm_init_neon_builtins): Declare.
5802 * config/arm/arm.c (arm_valid_target_attribute_tree): Call
5803 arm_init_neon_builtins.
5804 * config/arm/arm-builtins.c (arm_init_neon_builtins): Split into...
5805 (arm_init_neon_builtins_internal)
5806 (arm_init_crypto_builtins_internal):
5807 Test and set neon_set_p, neon_crypto_set_p.
5808 (neon_set_p, neon_crypto_set_p): New static booleans.
5809
5810 2015-11-16 Christian Bruel <christian.bruel@st.com>
5811
5812 PR target/65837
5813 * config/arm/arm.c (arm_fpu_desc): Remove.
5814 (all_fpus): Make global.
5815 (arm_option_override): Use FPU TARGET accessors.
5816 (arm_declare_function_name): Likewise.
5817 * config/arm/arm.h (TARGET_VFP, TARGET_VFPD32, TARGET_VFP5)
5818 (TARGET_VFP_SINGLE, TARGET_VFP_DOUBLE, TARGET_NEON_FP16)
5819 (TARGET_FP16, TARGET_FMA, TARGET_FPU_ARMV8, TARGET_CRYPTO)
5820 (TARGET_NEON): Likewise.
5821 (all_fpus): Declare extern.
5822 (TARGET_FPU_NAME, TARGET_FPU_MODEL, TARGET_FPU_REV)
5823 (TARGET_FPU_REGS, TARGET_FPU_FEATURES): Define all_fpus accessors.
5824
5825 2015-11-15 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
5826
5827 PR middle-end/68366
5828 * sdbout.c: Include emit-rtl.h and function.h.
5829
5830 2015-11-15 Gerald Pfeifer <gerald@pfeifer.com>
5831
5832 * config/i386/freebsd.h (SUBTARGET32_DEFAULT_CPU): Change to i586.
5833 Remove support for FreeBSD 5 and earlier.
5834
5835 2015-11-14 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
5836
5837 * configure: Regenerate.
5838 * configure.ac: Always define ENABLE_OFFLOADING.
5839 * cgraph.c (cgraph_node::create): Adjust.
5840 * gcc.c (process_command): Likewise.
5841 * omp-low.c (create_omp_child_function): Likewise.
5842 (expand_omp_target): Likewise.
5843 * varpool.c (varpool_node::get_create): Likewise.
5844
5845 2015-11-14 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
5846
5847 * defaults.h (EH_RETURN_HANDLER_RTX): New default definition.
5848 * df-scan.c (df_get_exit_block_use_set): Adjust.
5849 * except.c (expand_eh_return): Likewise.
5850
5851 2015-11-14 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
5852
5853 * config/i386/i386.h (TARGET_PECOFF): Remove define.
5854 * defaults.h (TARGET_PECOFF): New default definition.
5855 * varasm.c (handle_vtv_comdat_section): Adjust.
5856
5857 2015-11-14 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
5858
5859 * defaults.h: New definition of SDB_DEBUGGING_INFO.
5860 * doc/tm.texi: Regenerate.
5861 * doc/tm.texi.in: Adjust.
5862 * final.c (rest_of_clean_state): Remove check if
5863 SDB_DEBUGGING_INFO is defined.
5864 * function.c (number_blocks): Likewise.
5865 * output.h: Likewise.
5866 * sdbout.c: Likewise.
5867 * toplev.c (process_options): Likewise.
5868
5869 2015-11-14 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
5870
5871 * gsyms.h (enum sdb_type): Remove code for EXTENDED_SDB_BASIC_TYPES.
5872 (enum sdb_masks): Likewise.
5873 * sdbout.c (plain_type_1): Likewise.
5874 * system.h: Poison EXTENDED_SDB_BASIC_TYPES macro.
5875
5876 2015-11-14 Jakub Jelinek <jakub@redhat.com>
5877
5878 * omp-low.c (lower_omp_ordered): Add argument to GOMP_SMD_ORDERED_*
5879 internal calls - 0 if ordered simd and 1 for ordered threads simd.
5880 * tree-vectorizer.c (adjust_simduid_builtins): If GOMP_SIMD_ORDERED_*
5881 argument is 1, replace it with GOMP_ordered_* call instead of removing
5882 it.
5883
5884 2015-11-13 Rich Felker <dalias@libc.org>
5885
5886 * config/sh/sh.md (symGOT_load): Suppress __stack_chk_guard
5887 address loading hack for FDPIC targets.
5888
5889 2015-11-13 Ajit Agarwal <ajitkum@xilinx.com>
5890 Jeff Law <law@redhat.com>
5891
5892 * Makefile.in (OBJS): Add gimple-ssa-split-paths.o
5893 * common.opt (-fsplit-paths): New flag controlling path splitting.
5894 * doc/invoke.texi (fsplit-paths): Document.
5895 * opts.c (default_options_table): Add -fsplit-paths to -O2.
5896 * passes.def: Add split_paths pass.
5897 * timevar.def (TV_SPLIT_PATHS): New timevar.
5898 * tracer.c: Include "tracer.h"
5899 (ignore_bb_p): No longer static.
5900 (transform_duplicate): New function, broken out of tail_duplicate.
5901 (tail_duplicate): Use transform_duplicate.
5902 * tracer.h (ignore_bb_p): Declare
5903 (transform_duplicate): Likewise.
5904 * tree-pass.h (make_pass_split_paths): Declare.
5905 * gimple-ssa-split-paths.c: New file.
5906
5907 2015-11-13 Kai Tietz <ktietz70@googlemail.com>
5908 Marek Polacek <polacek@redhat.com>
5909 Jason Merrill <jason@redhat.com>
5910
5911 * convert.c (maybe_fold_build1_loc): New.
5912 (maybe_fold_build2_loc): New.
5913 (convert_to_pointer_1): Split out from convert_to_pointer.
5914 (convert_to_pointer_nofold): New.
5915 (convert_to_real_1): Split out from convert_to_real.
5916 (convert_to_real_nofold): New.
5917 (convert_to_integer_1): Split out from convert_to_integer.
5918 (convert_to_integer_nofold): New.
5919 (convert_to_complex_1): Split out from convert_to_complex.
5920 (convert_to_complex_nofold): New.
5921 * convert.h: Declare new functions.
5922 * tree-complex.c (create_one_component_var): Break up line to
5923 avoid sequence point issues.
5924
5925 2015-11-13 Jason Merrill <jason@redhat.com>
5926
5927 * fold-const.c (fold_convert_const): Fold changing cv-quals on
5928 VECTOR_CST.
5929
5930 * hash-map.h (hash_map::empty): New.
5931
5932 2015-11-13 Nathan Sidwell <nathan@codesourcery.com>
5933
5934 * omp-low.c (scan_sharing_clauses): Accept INDEPENDENT, AUTO & SEQ.
5935 (oacc_loop_fixed_partitions): Correct return type to bool.
5936 (oacc_loop_auto_partitions): New.
5937 (oacc_loop_partition): Take mask argument, call
5938 oacc_loop_auto_partitions.
5939 (execute_oacc_device_lower): Provide mask to oacc_loop_partition.
5940
5941 2015-11-13 Michael Meissner <meissner@linux.vnet.ibm.com>
5942
5943 * config/rs6000/constraints.md (we constraint): New constraint for
5944 64-bit power9 vector support.
5945 (wL constraint): New constraint for the element in a vector that
5946 can be addressed by the MFVSRLD instruction.
5947
5948 * config/rs6000/rs6000-protos.h (convert_float128_to_int): Add
5949 declaration.
5950 (convert_int_to_float128): Likewise.
5951 (rs6000_generate_compare): Add support for ISA 3.0 (power9)
5952 hardware support for IEEE 128-bit floating point.
5953 (rs6000_expand_float128_convert): Likewise.
5954 (convert_float128_to_int): Likewise.
5955 (convert_int_to_float128): Likewise.
5956
5957 * config/rs6000/rs6000.md (UNSPEC_ROUND_TO_ODD): New unspecs for
5958 ISA 3.0 hardware IEEE 128-bit floating point.
5959 (UNSPEC_IEEE128_MOVE): Likewise.
5960 (UNSPEC_IEEE128_CONVERT): Likewise.
5961 (FMA_F): Add support for IEEE 128-bit floating point hardware support.
5962 (Ff): Add support for DImode.
5963 (Fv): Likewise.
5964 (any_fix code iterator): New and updated iterators for IEEE
5965 128-bit floating point hardware support.
5966 (any_float code iterator): Likewise.
5967 (s code attribute): Likewise.
5968 (su code attribute): Likewise.
5969 (az code attribute): Likewise.
5970 (uns code attribute): Likewise.
5971 (neg<mode>2, FLOAT128 iterator): Add support for IEEE 128-bit
5972 floating point hardware support.
5973 (abs<mode>2, FLOAT128 iterator): Likewise.
5974 (add<mode>3, IEEE128 iterator): New insns for IEEE 128-bit
5975 floating point hardware.
5976 (sub<mode>3, IEEE128 iterator): Likewise.
5977 (mul<mode>3, IEEE128 iterator): Likewise.
5978 (div<mode>3, IEEE128 iterator): Likewise.
5979 (copysign<mode>3, IEEE128 iterator): Likewise.
5980 (sqrt<mode>2, IEEE128 iterator): Likewise.
5981 (neg<mode>2, IEEE128 iterator): Likewise.
5982 (abs<mode>2, IEEE128 iterator): Likewise.
5983 (nabs<mode>2, IEEE128 iterator): Likewise.
5984 (fma<mode>4_hw, IEEE128 iterator): Likewise.
5985 (fms<mode>4_hw, IEEE128 iterator): Likewise.
5986 (nfma<mode>4_hw, IEEE128 iterator): Likewise.
5987 (nfms<mode>4_hw, IEEE128 iterator): Likewise.
5988 (extend<SFDF:mode><IEEE128:mode>2_hw): Likewise.
5989 (trunc<mode>df2_hw, IEEE128 iterator): Likewise.
5990 (trunc<mode>sf2_hw, IEEE128 iterator): Likewise.
5991 (fix_fixuns code attribute): Likewise.
5992 (float_floatuns code attribute): Likewise.
5993 (fix<uns>_<mode>si2_hw): Likewise.
5994 (fix<uns>_<mode>di2_hw): Likewise.
5995 (float<uns>_<mode>si2_hw): Likewise.
5996 (float<uns>_<mode>di2_hw): Likewise.
5997 (xscvqp<su>wz_<mode>): Likewise.
5998 (xscvqp<su>dz_<mode>): Likewise.
5999 (xscv<su>dqp_<mode): Likewise.
6000 (ieee128_mfvsrd): Likewise.
6001 (ieee128_mfvsrwz): Likewise.
6002 (ieee128_mtvsrw): Likewise.
6003 (ieee128_mtvsrd): Likewise.
6004 (trunc<mode>df2_odd): Likewise.
6005 (cmp<mode>_h): Likewise.
6006 (128-bit GPR splitters): Don't split a 128-bit move that is a
6007 direct move between GPR and vector registers using ISA 3.0 direct
6008 move instructions.
6009 (maddld4): Add support for the ISA 3.0 integer multiply-add
6010 instruction.
6011
6012 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Add ISA 3.0
6013 debugging.
6014 (rs6000_init_hard_regno_mode_ok): If ISA 3.0 and 64-bit, enable we
6015 constraint. Disable the VSX<->GPR direct move helpers if we have
6016 the MFVSRLD and MTVSRDD instructions.
6017 (rs6000_secondary_reload_simple_move): Add support for doing
6018 vector direct moves directly without additional scratch registers
6019 if we have ISA 3.0 instructions.
6020 (rs6000_secondary_reload_direct_move): Update comments.
6021 (rs6000_output_move_128bit): Add support for ISA 3.0 vector
6022 instructions.
6023
6024 * config/rs6000/vsx.md (vsx_mov<mode>): Add support for ISA 3.0
6025 direct move instructions.
6026 (vsx_movti_64bit): Likewise.
6027 (vsx_extract_<mode>): Likewise.
6028
6029 * config/rs6000/rs6000.h (VECTOR_ELEMENT_MFVSRLD_64BIT): New
6030 macros for ISA 3.0 direct move instructions.
6031 (TARGET_DIRECT_MOVE_128): Likewise.
6032 (TARGET_MADDLD): Add support for the ISA 3.0 integer multiply-add
6033 instruction.
6034
6035 * doc/md.texi (RS/6000 constraints): Document we, wF, wG, wL
6036 constraints. Update wa documentation to say not to use %x<n> on
6037 instructions that only take Altivec registers.
6038
6039 2015-11-13 David Malcolm <dmalcolm@redhat.com>
6040
6041 * Makefile.in (OBJS): Add gcc-rich-location.o.
6042 * diagnostic.c (diagnostic_append_note): Pass line_table to
6043 rich_location ctor.
6044 (emit_diagnostic): Likewise.
6045 (inform): Likewise.
6046 (inform_n): Likewise.
6047 (warning): Likewise.
6048 (warning_at): Likewise.
6049 (warning_n): Likewise.
6050 (pedwarn): Likewise.
6051 (permerror): Likewise.
6052 (error): Likewise.
6053 (error_n): Likewise.
6054 (error_at): Likewise.
6055 (sorry): Likewise.
6056 (fatal_error): Likewise.
6057 (internal_error): Likewise.
6058 (internal_error_no_backtrace): Likewise.
6059 (source_range::debug): Likewise.
6060 * gcc-rich-location.c: New file.
6061 * gcc-rich-location.h: New file.
6062 * genmatch.c (fatal_at): Pass line_table to rich_location ctor.
6063 (warning_at): Likewise.
6064 * gimple.h (gimple_set_block): Use set_block function.
6065 * input.c (dump_line_table_statistics): Dump stats on how many
6066 ranges were optimized vs how many needed ad-hoc table.
6067 (write_digit_row): Add "map" param; use its range_bits
6068 to calculate the per-character offset.
6069 (dump_location_info): Print the range and column bits for each
6070 ordinary map. Use the range bits to calculate the per-character
6071 offset. Pass the map as a new param to the various calls to
6072 write_digit_row. Eliminate uses of
6073 ORDINARY_MAP_NUMBER_OF_COLUMN_BITS.
6074 * print-tree.c (print_node): Print any source range information.
6075 * rtl-error.c (diagnostic_for_asm): Likewise.
6076 * toplev.c (general_init): Initialize line_table's
6077 default_range_bits.
6078 * tree-cfg.c (move_block_to_fn): Likewise.
6079 (move_block_to_fn): Likewise.
6080 * tree-inline.c (copy_phis_for_bb): Likewise.
6081 * tree.c (tree_set_block): Likewise.
6082 (get_pure_location): New function.
6083 (set_source_range): New functions.
6084 (set_block): New function.
6085 (set_source_range): New functions.
6086 * tree.h (CAN_HAVE_RANGE_P): New.
6087 (EXPR_LOCATION_RANGE): New.
6088 (EXPR_HAS_RANGE): New.
6089 (get_expr_source_range): New inline function.
6090 (DECL_LOCATION_RANGE): New.
6091 (set_source_range): New decls.
6092 (get_decl_source_range): New inline function.
6093
6094 2015-11-13 Alan Lawrence <alan.lawrence@arm.com>
6095
6096 PR tree-optimization/67682
6097 * tree-vect-slp.c (vect_split_slp_store_group): New.
6098 (vect_analyze_slp_instance): During basic block SLP, recurse on
6099 subgroups if vect_build_slp_tree fails after 1st vector.
6100
6101 2015-11-13 Christian Bruel <christian.bruel@st.com>
6102
6103 PR target/65837
6104 * config/arm/arm.c (arm_option_override): Move NEON check...
6105 (arm_option_check_internal): here
6106 (arm_file_start): Move .fpu print...
6107 (arm_declare_function_name): here
6108 (arm_option_print): Dump current fpu name.
6109 * config/arm/arm.opt (arm_fpu_index): Mark Save.
6110
6111 2015-11-13 Segher Boessenkool <segher@kernel.crashing.org>
6112 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
6113
6114 * combine.c (subst): Don't substitute or simplify when
6115 handling register-wise widening multiply.
6116 (force_to_mode): Likewise.
6117
6118 2015-11-13 Richard Sandiford <richard.sandiford@arm.com>
6119
6120 PR tree-optimization/68264
6121 * tree-call-cdce.c (gen_one_condition): Update commentary.
6122 (gen_conditions_for_pow_int_base): Invert the sense of the tests
6123 passed to gen_one_condition.
6124 (gen_conditions_for_domain): Likewise. Use unordered comparisons.
6125 (shrink_wrap_one_built_in_call): Invert the sense of the tests,
6126 using EDGE_FALSE_VALUE for edges to the call block and
6127 EDGE_TRUE_VALUE for the others.
6128
6129 2015-11-13 Nathan Sidwell <nathan@codesourcery.com>
6130
6131 * config/nvptx/nvptx.c (nvptx_generate_vector_shuffle): Deal with
6132 complex types.
6133
6134 2015-11-13 Nathan Sidwell <nathan@codesourcery.com>
6135
6136 * gimplify.c (oacc_default_clause): Use inform for enclosing scope.
6137
6138 2015-11-13 Tom de Vries <tom@codesourcery.com>
6139
6140 * gen-pass-instances.awk (handle_line): Rename prefix_len var to
6141 len_of_prefix.
6142
6143 2015-11-13 Tom de Vries <tom@codesourcery.com>
6144
6145 * gen-pass-instances.awk (handle_line): Add args_str variable.
6146
6147 2015-11-13 Martin Liska <mliska@suse.cz>
6148
6149 * graphite-poly.c (free_scop): Release scop->drs vector.
6150 * graphite-scop-detection.c (scop_detection::harmful_stmt_in_region):
6151 Release dom vector.
6152 (try_generate_gimple_bb): Use vNULL as a default initialization
6153 for vectors.
6154
6155 2015-11-13 Martin Liska <mliska@suse.cz>
6156
6157 PR ipa/68311
6158 * ipa-icf.c (sem_item_optimizer::traverse_congruence_split):
6159 Replace array initialization (using a variable post-increment)
6160 that possible triggers multiple unsequenced modifications
6161 with a pair of pushes to a vector.
6162
6163 2015-11-13 Richard Biener <rguenther@suse.de>
6164
6165 PR tree-optimization/68306
6166 * tree-vect-data-refs.c (verify_data_ref_alignment): Move
6167 loop related checks ...
6168 (vect_verify_datarefs_alignment): ... here.
6169 (vect_slp_analyze_and_verify_node_alignment): Compute and
6170 verify alignment of the single DR that it matters.
6171 * tree-vect-stmts.c (vectorizable_store): Add an assert.
6172 (vectorizable_load): Add a comment.
6173 * tree-vect-slp.c (vect_analyze_slp_cost_1): Fix DR used
6174 for determining load cost.
6175
6176 2015-11-13 Ilya Enkovich <enkovich.gnu@gmail.com>
6177
6178 * tree-vect-loop.c (vect_determine_vectorization_factor): Check
6179 mix of boolean and integer vectors in a single statement.
6180 * tree-vect-slp.c (vect_mask_constant_operand_p): New.
6181 (vect_get_constant_vectors): Use vect_mask_constant_operand_p to
6182 determine constant type.
6183 * tree-vect-stmts.c (vectorizable_comparison): Provide vectype
6184 for loop invariants.
6185
6186 2015-11-13 Alan Hayward <alan.hayward@arm.com>
6187
6188 PR tree-optimization/66558
6189 * tree-vect-loop.c (is_integer_induction):Add.
6190 (vectorizable_reduction): Add integer induction checks.
6191
6192 2015-11-13 Christophe Lyon <christophe.lyon@linaro.org>
6193
6194 Revert [ARM] Remove neon-testgen.ml and generated tests.
6195
6196 2015-11-12 Christophe Lyon <christophe.lyon@linaro.org>
6197
6198 [ARM] Remove neon-testgen.ml and generated tests.
6199
6200 * config/arm/neon-testgen.ml: Remove.
6201
6202 2015-11-13 Richard Biener <rguenther@suse.de>
6203
6204 * tree-vect-loop.c (vect_analyze_loop_2): Add fatal parameter.
6205 Signal fatal failure if early checks fail.
6206 (vect_analyze_loop): If vect_analyze_loop_2 fails fatally
6207 do not bother testing further vector sizes.
6208
6209 2015-11-13 Uros Bizjak <ubizjak@gmail.com>
6210
6211 * config/i386/predicates.md (misaligned_operand): Return true if
6212 operand is aligned to less than its natural alignmnet.
6213
6214 2015-11-13 Ilya Enkovich <enkovich.gnu@gmail.com>
6215
6216 * doc/md.texi (vec_cmp@var{m}@var{n}): New item.
6217 (vec_cmpu@var{m}@var{n}): New item.
6218 (vcond@var{m}@var{n}): Specify comparison is signed.
6219 (vcondu@var{m}@var{n}): New item.
6220 (vcond_mask_@var{m}@var{n}): New item.
6221 (maskload@var{m}@var{n}): New item.
6222 (maskstore@var{m}@var{n}): New item.
6223
6224 2015-11-13 Ilya Enkovich <enkovich.gnu@gmail.com>
6225
6226 * tree-vect-stmts.c (vectorizable_mask_load_store): Check
6227 types of stored value and storage are compatible.
6228
6229 2015-11-13 Andris Pavenis <andris.pavenis@iki.fi>
6230
6231 * gcc.c (POST_LINK_SPEC): Define if not already defined.
6232 (LINK_COMMAND_SPEC): Use post_link.
6233 (post_link_spec): New, initialize to POST_LINK_SPEC.
6234 (post_link): Initialize new static spec.
6235 * doc/tm.texi.in (POST_LINK_SPEC): Document.
6236 * doc/tm.texi: Regenerated.
6237
6238 2015-11-13 David Malcolm <dmalcolm@redhat.com>
6239
6240 PR driver/67613
6241 * Makefile.in (GCC_OBJS): Add spellcheck.o.
6242 (OBJS): Add spellcheck-tree.o.
6243 * gcc.c: Include "spellcheck.h".
6244 (suggest_option): New function.
6245 (driver::handle_unrecognized_options): Call suggest_option to
6246 provide a hint about misspelled options.
6247 * spellcheck.c: Update file comment.
6248 (levenshtein_distance): Convert 4-param implementation from static
6249 to extern scope. Remove note about unit tests from leading
6250 comment for const char * implementation. Move tree
6251 implementation to...
6252 * spellcheck-tree.c: New file.
6253 * spellcheck.h (levenshtein_distance): Add 4-param decl.
6254
6255 2015-11-13 David Malcolm <dmalcolm@redhat.com>
6256
6257 * Makefile.in (OBJS): Add spellcheck.o.
6258 * spellcheck.c: New file.
6259 * spellcheck.h: New file.
6260
6261 2015-11-13 James Bowman <james.bowman@ftdichip.com>
6262
6263 * config/ft32/ft32.md (*sne): New insn pattern.
6264
6265 2015-11-12 Brad Lucier <lucier@math.purdue.edu>
6266
6267 * cprop.c (is_too_expensive): Remove.
6268 (gcse.h): Include.
6269 (one_cprop_pass): Call gcse_or_cprop_is_too_expensive, not
6270 is_too_expensive.
6271 * gcse.h (gcse_or_cprop_is_too_expensive): Declare.
6272 * gcse.c (is_too_expensive): Rename to ...
6273 (gcse_or_cprop_is_too_expensive): ... this.
6274 Expand warning to add required size of max-gcse-memory.
6275 (one_pre_gcse_pass): Use it.
6276 (one_code_hoisting_pass): Use it.
6277 * params.def (max-gcse-memory): Increase from 50MB to 128MB.
6278
6279 2015-11-12 James Norris <jnorris@codesourcery.com>
6280 Joseph Myers <joseph@codesourcery.com>
6281
6282 * gimple-pretty-print.c (dump_gimple_omp_target): Handle
6283 GF_OMP_TARGET_KIND_OACC_DECLARE.
6284 * gimple.h (enum gf_mask): Add GF_OMP_TARGET_KIND_OACC_DECLARE.
6285 (is_gomple_omp_oacc): Handle GF_OMP_TARGET_KIND_OACC_DECLARE.
6286 * gimplify.c (oacc_declare_returns): New.
6287 (gimplify_bind_expr): Prepend 'exit' stmt to cleanup.
6288 (device_resident_p): New function.
6289 (oacc_default_clause): Handle device_resident clause.
6290 (gimplify_oacc_declare_1, gimplify_oacc_declare): New functions.
6291 (gimplify_expr): Handle OACC_DECLARE.
6292 * omp-builtins.def (BUILT_IN_GOACC_DECLARE): New builtin.
6293 * omp-low.c (expand_omp_target): Handle
6294 GF_OMP_TARGET_KIND_OACC_DECLARE and BUILTIN_GOACC_DECLARE.
6295 (build_omp_regions_1): Handlde GF_OMP_TARGET_KIND_OACC_DECLARE.
6296 (lower_omp_target): Handle GF_OMP_TARGET_KIND_OACC_DECLARE,
6297 GOMP_MAP_DEVICE_RESIDENT and GOMP_MAP_LINK.
6298 (make_gimple_omp_edges): Handle GF_OMP_TARGET_KIND_OACC_DECLARE.
6299 * tree-pretty-print.c (dump_omp_clause): Handle GOMP_MAP_LINK and
6300 GOMP_MAP_DEVICE_RESIDENT.
6301
6302 2015-11-12 Christophe Lyon <christophe.lyon@linaro.org>
6303
6304 [ARM] Remove neon-testgen.ml and generated tests.
6305
6306 * config/arm/neon-testgen.ml: Remove.
6307
6308 2015-11-12 Jim Wilson <jim.wilson@linaro.org>
6309
6310 * config/aarch64/aarch64-cores.def (qdf24xx): New.
6311 * config/aarch64/aarch64-tune.md: Regenerated.
6312 * config/arm/arm-cores.def (qdf24xx): New.
6313 * config/arm/arm-tables.opt, config/arm/arm-tune.md: Regenerated.
6314 * config/arm/bpabi.h (BE8_LINK_SPEC): Add qdf24xx support.
6315 * doc/invoke.texi (AArch64 Options/-mtune): Add "qdf24xx".
6316 (ARM Options/-mtune): Likewise.
6317
6318 2015-11-12 Martin Liska <mliska@suse.cz>
6319
6320 * config/i386/i386.c (ix86_valid_target_attribute_p):
6321 Finalize options at the of the function.
6322 * gcc.c (driver_get_configure_time_options): Call newly
6323 introduced init_opts_obstack.
6324 * lto-wrapper.c (main): Likewise.
6325 * opts.c (init_opts_obstack): New function.
6326 (init_options_struct): Call newly introduced init_opts_obstack.
6327 * opts.h (init_options_struct): Declare.
6328
6329 2015-11-12 Martin Liska <mliska@suse.cz>
6330
6331 PR ipa/68035
6332 * ipa-icf.c (void sem_item::set_hash): New function.
6333 (sem_function::get_hash): Use renamed m_hash member variable.
6334 (sem_item::update_hash_by_addr_refs): Utilize get_hash.
6335 (sem_item::update_hash_by_local_refs): Likewise.
6336 (sem_variable::get_hash): Use renamed m_hash member variable.
6337 (sem_item_optimizer::update_hash_by_addr_refs): Utilize get_hash.
6338 (sem_item_optimizer::build_hash_based_classes): Utilize set_hash.
6339 (sem_item_optimizer::build_graph): As the hash value of an item
6340 is lazy initialized, force the calculation.
6341 * ipa-icf.h (set_hash): Declare new function and rename hash member
6342 variable to m_hash.
6343
6344 2015-11-12 Richard Biener <rguenther@suse.de>
6345
6346 * tree-vectorizer.h (vect_slp_analyze_data_ref_dependences):
6347 Rename to vect_slp_analyze_instance_dependence.
6348 * tree-vect-data-refs.c (vect_slp_analyze_data_ref_dependence):
6349 Remove WAR special-case.
6350 (vect_slp_analyze_node_dependences): Instead add more specific
6351 code here, not relying on other instances being vectorized.
6352 (vect_slp_analyze_instance_dependence): Adjust accordingly.
6353 * tree-vect-slp.c (vect_build_slp_tree_1): Remove excessive
6354 vertical space in dump files.
6355 (vect_print_slp_tree): Likewise.
6356 (vect_analyze_slp_instance): Dump a header for the final SLP tree.
6357 (vect_slp_analyze_bb_1): Delay computing relevant stmts and
6358 not vectorized stmts until after dependence analysis removed
6359 instances. Merge alignment and dependence checks.
6360 * tree-vectorizer.c (pass_slp_vectorize::execute): Clear visited
6361 flag on all stmts.
6362
6363 2015-11-12 Evandro Menezes <e.menezes@samsung.com>
6364
6365 * config/aarch64/aarch64-protos.h (tune_params): Add new members
6366 "max_case_values" and "cache_line_size".
6367 * config/aarch64/aarch64.c (aarch64_case_values_threshold): New
6368 function.
6369 (aarch64_override_options_internal): Tune heuristics based on new
6370 members in "tune_params".
6371 (TARGET_CASE_VALUES_THRESHOLD): Define macro.
6372
6373 2015-11-12 Richard Biener <rguenther@suse.de>
6374
6375 PR tree-optimization/68306
6376 * tree-vect-data-refs.c (verify_data_ref_alignment): Remove
6377 relevant and vectorizable checks here.
6378 (vect_verify_datarefs_alignment): Add relevant check here.
6379
6380 2015-11-12 Nathan Sidwell <nathan@codesourcery.com>
6381
6382 * gimplify.c (oacc_default_clause): New.
6383 (omp_notice_variable): Call it.
6384
6385 2015-11-12 Ilya Enkovich <enkovich.gnu@gmail.com>
6386
6387 PR tree-optimization/68305
6388 * tree-vect-slp.c (vect_get_constant_vectors): Support
6389 COND_EXPR with SSA_NAME as a condition.
6390
6391 2015-11-12 Eric Botcazou <ebotcazou@adacore.com>
6392
6393 * config/visium/visium-protos.h (notice_update_cc): Delete.
6394 (print_operand): Likewise.
6395 (print_operand_address): Likewise.
6396
6397 2015-11-12 Uros Bizjak <ubizjak@gmail.com>
6398
6399 * config/alpha/alpha.h (FUNCTION_VALUE, LIBCALL_VALUE,
6400 FUNCTION_VALUE_REGNO_P): Remove.
6401 * config/alpha/alpha-protos.h (function_value): Remove.
6402 * config/alpha/alpha.c (function_value): Rename to...
6403 (alpha_function_value_1): ... this. Make static.
6404 (alpha_function_value, alpha_libcall_value,
6405 alpha_function_value_regno_p): New functions.
6406 (TARGET_FUNCTION_VALUE, TARGET_LIBCALL_VALUE,
6407 TARGET_FUNCTION_VALUE_REGNO_P): Define.
6408
6409 2015-11-12 Uros Bizjak <ubizjak@gmail.com>
6410
6411 * config/alpha/alpha.h (REGISTER_MOVE_COST, MEMORY_MOVE_COST): Remove.
6412 * config/alpha/alpha.c (alpha_memory_latency): Make static.
6413 (alpha_register_move_cost, alpha_memory_move_cost): New functions.
6414 (TARGET_REGISTER_MOVE_COST, TARGET_MEMORY_MOVE_COST): Define.
6415
6416 2015-11-12 Eric Botcazou <ebotcazou@adacore.com>
6417
6418 PR target/67265
6419 * config/i386/i386.c (ix86_adjust_stack_and_probe): Remove obsolete
6420 assertion on the CFA register.
6421
6422 2015-11-12 Ilya Enkovich <enkovich.gnu@gmail.com>
6423
6424 * expr.c (do_store_flag): Expand vector comparison as
6425 VEC_COND_EXPR if vector comparison is not supported by target.
6426
6427 2015-11-12 Renlin Li <renlin.li@arm.com>
6428
6429 * config/arm/arm.md (addsi3_compare_op2): Make the order of
6430 assembly pattern consistent with constraint order.
6431
6432 2015-11-12 Tom de Vries <tom@codesourcery.com>
6433
6434 * gen-pass-instances.awk (handle_line): Simplify match regexp.
6435
6436 2015-11-12 Tom de Vries <tom@codesourcery.com>
6437
6438 * gen-pass-instances.awk (handle_line): Simplify init of
6439 postfix_starts_at.
6440
6441 2015-11-12 Tom de Vries <tom@codesourcery.com>
6442
6443 * gen-pass-instances.awk (handle_line): Rename var where to
6444 call_starts_at.
6445
6446 2015-11-12 Claudiu Zissulescu <claziss@synopsys.com>
6447
6448 * config/arc/arc.c (gen_compare_reg): Swap operands also when we
6449 do not expand to rtl.
6450
6451 2015-11-12 Richard Biener <rguenther@suse.de>
6452
6453 PR tree-optimization/58497
6454 * tree-vect-generic.c: Include gimplify.h.
6455 (tree_vec_extract): Lookup constant/constructor DEFs.
6456 (do_cond): Unshare cond.
6457
6458 2015-11-12 Uros Bizjak <ubizjak@gmail.com>
6459
6460 * config/i386/i386.c (ix86_legitimate_combined_insn): Reject
6461 combined insn if the alignment of vector mode memory operand
6462 is less than ssememalign.
6463
6464 2015-11-12 Tom de Vries <tom@codesourcery.com>
6465
6466 * gen-pass-instances.awk (handle_line): Print parentheses and
6467 pass_name explicitly.
6468
6469 2015-11-12 Tom de Vries <tom@codesourcery.com>
6470
6471 * gen-pass-instances.awk (handle_line): Add pass_num, prefix
6472 and postfix vars.
6473
6474 2015-11-12 Tom de Vries <tom@codesourcery.com>
6475
6476 * gen-pass-instances.awk (handle_line): Add comments.
6477
6478 2015-11-12 Tom de Vries <tom@codesourcery.com>
6479
6480 * gen-pass-instances.awk (handle_line): Rename len_of_end to
6481 len_of_close.
6482
6483 2015-11-12 Tom de Vries <tom@codesourcery.com>
6484
6485 * gen-pass-instances.awk (handle_line): Add len_of_call variable.
6486
6487 2015-11-12 Tom de Vries <tom@codesourcery.com>
6488
6489 * gen-pass-instances.awk (handle_line): Restructure using early-out.
6490
6491 2015-11-12 Tom de Vries <tom@codesourcery.com>
6492
6493 * gen-pass-instances.awk (handle_line): Unify semicolon use.
6494
6495 2015-11-12 Tom de Vries <tom@codesourcery.com>
6496
6497 * gen-pass-instances.awk (handle_line): Remove unused var line_length.
6498
6499 2015-11-12 Tom de Vries <tom@codesourcery.com>
6500
6501 * gen-pass-instances.awk: Add emacs indent setting.
6502
6503 2015-11-12 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
6504
6505 * fold-const.c (fold_binary_loc) : Move Convert A/B/C to A/(B*C)
6506 to match.pd.
6507 Move Convert A/(B/C) to (A/B)*C to match.pd.
6508 Move Convert C1/(X*C2) into (C1/C2)/X to match.pd.
6509 Move Optimize (X & (-A)) / A where A is a power of 2, to
6510 X >> log2(A) to match.pd.
6511
6512 * match.pd (rdiv (rdiv:s @0 @1) @2): New simplifier.
6513 (rdiv @0 (rdiv:s @1 @2)): New simplifier.
6514 (div (convert? (bit_and @0 INTEGER_CST@1)) INTEGER_CST@2):
6515 New simplifier.
6516 (rdiv REAL_CST@0 (mult @1 REAL_CST@2)): New simplifier.
6517
6518 2015-11-12 Charles Baylis <charles.baylis@linaro.org>
6519
6520 * config/arm/neon.md: (neon_vld2_lane<mode>): Remove unused max
6521 variable.
6522 (neon_vst2_lane<mode>): Likewise.
6523 (neon_vld3_lane<mode>): Likewise.
6524 (neon_vst3_lane<mode>): Likewise.
6525 (neon_vld4_lane<mode>): Likewise.
6526 (neon_vst4_lane<mode>): Likewise.
6527
6528 2015-11-11 Aditya Kumar <aditya.k7@samsung.com>
6529 Sebastian Pop <s.pop@samsung.com>
6530
6531 * graphite-isl-ast-to-gimple.c (class translate_isl_ast_to_gimple):
6532 New member codegen_error
6533 (translate_isl_ast_for_loop): Remove call to single_succ_edge and
6534 early return.
6535 (translate_isl_ast_node_user): Early return in case of error.
6536 (translate_isl_ast_to_gimple::translate_isl_ast): Same.
6537 (translate_isl_ast_to_gimple::translate_pending_phi_nodes): New.
6538 (add_parameters_to_ivs_params): Remove macro.
6539 (graphite_regenerate_ast_isl): Add if_region pointer to region.
6540 * graphite-poly.c (new_poly_dr): Remove macro.
6541 (print_pdr): Same.
6542 (new_gimple_poly_bb): Same.
6543 (free_gimple_poly_bb): Same.
6544 (print_scop_params): Same.
6545 * graphite-poly.h (struct poly_dr): Same.
6546 (struct poly_bb): Add new_bb.
6547 (gbb_from_bb): Remove dead code.
6548 (pbb_from_bb): Same.
6549 * graphite-scop-detection.c (parameter_index_in_region_1): Same.
6550 (parameter_index_in_region): Same.
6551 (find_scop_parameters): Same.
6552 (build_cross_bb_scalars_def): New.
6553 (build_cross_bb_scalars_use): New.
6554 (graphite_find_cross_bb_scalar_vars): New
6555 (try_generate_gimple_bb): Reads and Writes.
6556 (build_alias_set): Move.
6557 (gather_bbs::before_dom_children): Gather bbs visited.
6558 (build_scops): call build_alias_set.
6559 * graphite-sese-to-poly.c (phi_arg_in_outermost_loop): Delete.
6560 (remove_simple_copy_phi): Delete.
6561 (remove_invariant_phi): Delete.
6562 (simple_copy_phi_p): Delete.
6563 (reduction_phi_p): Delete.
6564 (isl_id_for_dr): Remove unused param.
6565 (parameter_index_in_region_1): Remove macro usage.
6566 (set_scop_parameter_dim): Same.
6567 (add_param_constraints): Same.
6568 (add_conditions_to_constraints): Same
6569 (build_scop_iteration_domain): Same.
6570 (pdr_add_alias_set): Comment.
6571 (add_scalar_version_numbers): New.
6572 (build_poly_dr): ISL id.
6573 (build_scop_drs): Move.
6574 (build_poly_sr_1): Same.
6575 (insert_stmts): Remove.
6576 (build_poly_sr): New.
6577 (new_pbb_from_pbb): Delete.
6578 (insert_out_of_ssa_copy_on_edge): Delete.
6579 (create_zero_dim_array): Delete.
6580 (scalar_close_phi_node_p): Delete.
6581 (propagate_expr_outside_region): Delete.
6582 (rewrite_close_phi_out_of_ssa): Delete.
6583 (rewrite_phi_out_of_ssa): Delete.
6584 (rewrite_degenerate_phi): Delete.
6585 (rewrite_reductions_out_of_ssa): Delete.
6586 (rewrite_cross_bb_scalar_dependence): Delete.
6587 (handle_scalar_deps_crossing_scop_limits):
6588 (rewrite_cross_bb_scalar_deps): Delete.
6589 (build_poly_scop): Remove calls to out-of-ssa functions.
6590 * graphite.c (graphite_transform_loops): Early return in case of
6591 codegen error.
6592 * sese.c (debug_rename_map_1): Delete.
6593 (debug_rename_map): Delete.
6594 (sese_record_loop): Remove macro.
6595 (build_sese_loop_nests): Same.
6596 (new_sese_info): Same.
6597 (free_sese_info): Same.
6598 (sese_insert_phis_for_liveouts):
6599 (is_loop_closed_ssa_use): New.
6600 (number_of_phi_nodes): New.
6601 (bb_contains_loop_close_phi_nodes): New.
6602 (bb_contains_loop_phi_nodes): New.
6603 (phi_uses_name): New.
6604 (is_valid_rename):
6605 (get_rename): Add old_bb and loop_phi for more precise matching of
6606 exprs.
6607 (set_rename): Pass region.
6608 (later_of_the_two): New.
6609 (gsi_insert_earliest): New.
6610 (collect_all_ssa_names): New.
6611 (substitute_ssa_name): New.
6612 (rename_all_uses): New.
6613 (get_rename_from_scev): New.
6614 (rename_uses): Pass old_bb for more precise matching of exprs.
6615 (get_def_bb_for_const): New.
6616 (get_new_name): New.
6617 (get_loc): New.
6618 (get_edges): New.
6619 (copy_loop_phi_args): New.
6620 (copy_loop_phi_nodes): New.
6621 (get_loop_init_value): New.
6622 (find_init_value): New.
6623 (find_init_value_close_phi): New.
6624 (copy_loop_close_phi_args): New.
6625 (copy_loop_close_phi_nodes): New.
6626 (add_phi_arg_for_new_expr): New.
6627 (copy_cond_phi_args): New.
6628 (copy_cond_phi_nodes): New.
6629 (copy_phi_nodes): New.
6630 (should_copy_to_new_region): New.
6631 (set_rename_for_each_def): New.
6632 (graphite_copy_stmts_from_block): Early return in case of error.
6633 (copy_bb_and_scalar_dependences): Same.
6634 * sese.h (vec_find): New.
6635 (SESE_PARAMS): Delete.
6636 (SESE_LOOPS): Delete.
6637 (SESE_LOOP_NEST): Delete.
6638 (sese_contains_loop): Remove macro usage.
6639 (sese_nb_params): Same.
6640 (struct gimple_poly_bb): Added read_scalar_refs, write_scalar_refs.
6641
6642 2015-11-11 Abderrazek Zaafrani <a.zaafrani@samsung.com>
6643
6644 * graphite-sese-to-poly.c (build_scop_original_schedule): Call
6645 isl_union_map_add_map on every pbb->schedule.
6646
6647 2015-11-11 Tom de Vries <tom@codesourcery.com>
6648
6649 * tree-parloops.c (create_parallel_loop): Return void.
6650
6651 2015-11-11 Tom de Vries <tom@codesourcery.com>
6652
6653 * tree-parloops.c (transform_to_exit_first_loop_alt): Insert new exit
6654 block only when needed.
6655
6656 2015-11-11 Uros Bizjak <ubizjak@gmail.com>
6657
6658 * config/alpha/alpha-protos.h (print_operand): Remove.
6659 (print_operand_address): Remove.
6660 * config/alpha/alpha.h (PRINT_OPERAND): Remove.
6661 (PRINT_OPERAND_ADDRESS): Remove.
6662 (PRINT_OPERAND_PUNCT_VALID_P): Remove.
6663 * config/alpha/alpha.c (TARGET_PRINT_OPERAND): New hook define.
6664 (TARGET_PRINT_OPERAND_ADDRESS): New hook define.
6665 (TARGET_PRINT_OPERAND_PUNCT_VALID_P): New hook define.
6666 (print_operand_address): Rename to...
6667 (alpha_print_operand_address): ...this and make static.
6668 (print_operand): Rename to...
6669 (alpha_print_operand): ...this and make static.
6670 (alpha_print_operand_punct_valid_p): New static function.
6671
6672 2015-11-11 Richard Biener <rguenther@suse.de>
6673
6674 * tree-vectorizer.h (vect_slp_analyze_and_verify_instance_alignment):
6675 Declare.
6676 (vect_analyze_data_refs_alignment): Make loop vect specific.
6677 (vect_verify_datarefs_alignment): Likewise.
6678 * tree-vect-data-refs.c (vect_slp_analyze_data_ref_dependences):
6679 Add missing continue.
6680 (vect_compute_data_ref_alignment): Export.
6681 (vect_compute_data_refs_alignment): Merge into...
6682 (vect_analyze_data_refs_alignment): ... this.
6683 (verify_data_ref_alignment): Split out from ...
6684 (vect_verify_datarefs_alignment): ... here.
6685 (vect_slp_analyze_and_verify_node_alignment): New function.
6686 (vect_slp_analyze_and_verify_instance_alignment): Likewise.
6687 * tree-vect-slp.c (vect_supported_load_permutation_p): Remove
6688 misplaced checks on alignment.
6689 (vect_slp_analyze_bb_1): Add fatal output parameter. Do
6690 alignment analysis after SLP discovery and do it per instance.
6691 (vect_slp_bb): When vect_slp_analyze_bb_1 fatally failed do not
6692 bother to re-try using different vector sizes.
6693
6694 2015-11-11 Nathan Sidwell <nathan@codesourcery.com>
6695 Cesar Philippidis <cesar@codesourcery.com>
6696
6697 * gimplify.c (enum omp_region_type): Add ORT_ACC,
6698 ORT_ACC_DATA, ORT_ACC_PARALLEL, ORT_ACC_KERNELS. Adjust ORT_NONE.
6699 (gimple_add_tmp_var): Add ORT_ACC checks.
6700 (gimplify_var_or_parm_decl): Likewise.
6701 (omp_firstprivatize_variable): Likewise. Use ORT_TARGET_DATA as a mask.
6702 (omp_add_variable): Look in outer contexts for openacc and allow
6703 reductions with other sharing. Add ORT_ACC and ORT_TARGET_DATA checks.
6704 (omp_notice_variable, omp_is_private, omp_check_private): Add
6705 ORT_ACC checks.
6706 (gimplify_scan_omp_clauses: Treat ORT_ACC as ORT_WORKSHARE.
6707 Permit private openacc reductions.
6708 (gimplify_oacc_cache): Specify ORT_ACC.
6709 (gimplify_omp_workshare): Adjust OpenACC region types.
6710 (gimplify_omp_target_update): Likewise.
6711 * omp-low.c (scan_sharing_clauses): Remove Openacc firstprivate sorry.
6712 (lower-rec_input_clauses): Don't handle openacc firstprivate
6713 references here.
6714 (lower_omp_target): Emit initializers for openacc firstprivate vars.
6715
6716 2015-11-11 Eric Botcazou <ebotcazou@adacore.com>
6717
6718 PR target/67265
6719 * ira.c (ira_setup_eliminable_regset): Do not necessarily create the
6720 frame pointer for stack checking if non-call exceptions aren't used.
6721 * config/i386/i386.c (ix86_finalize_stack_realign_flags): Likewise.
6722
6723 2015-11-11 Segher Boessenkool <segher@kernel.crashing.org>
6724
6725 * simplify-rtx.c (simplify_truncation): Simplify TRUNCATE of AND of
6726 [LA]SHIFTRT.
6727
6728 2015-11-11 Martin Liska <mliska@suse.cz>
6729 Richard Biener <rguenther@suse.de>
6730
6731 PR rtl-optimization/68287
6732 * lra-lives.c (lra_create_live_ranges_1): Reserve the right
6733 number of elements.
6734
6735 2015-11-11 Simon Dardis <simon.dardis@imgtec.com>
6736
6737 * config/mips/mips.c (mips_breakable_sequence_p): New function.
6738 (mips_break_sequence): New function.
6739 (mips_reorg_process_insns): Use them. Use compact branches in selected
6740 situations.
6741
6742 2015-11-11 Alan Lawrence <alan.lawrence@arm.com>
6743
6744 * fold-const.c (get_array_ctor_element_at_index): Fix whitespace, typo.
6745
6746 2015-11-11 Jiong Wang <jiong.wang@arm.com>
6747 Jim Wilson <wilson@gcc.gnu.org>
6748
6749 PR target/67305
6750 * config/arm/arm.md (neon_vector_mem_operand): Return FALSE if strict
6751 be true and eliminable registers mentioned.
6752
6753 2015-11-11 Claudiu Zissulescu <claziss@synopsys.com>
6754
6755 * common/config/arc/arc-common.c (arc_handle_option): Handle ARCv2
6756 options.
6757 * config/arc/arc-opts.h: Add ARCv2 CPUs.
6758 * config/arc/arc-protos.h (arc_secondary_reload_conv): Prototype.
6759 * config/arc/arc.c (arc_secondary_reload): Handle subreg (reg)
6760 situation, and store instructions with large offsets.
6761 (arc_secondary_reload_conv): New function.
6762 (arc_init): Add ARCv2 options.
6763 (arc_conditional_register_usage): Select the proper register usage
6764 for ARCv2 processors.
6765 (arc_handle_interrupt_attribute): ILINK2 is only valid for ARCv1
6766 architecture.
6767 (arc_compute_function_type): Likewise.
6768 (arc_print_operand): Handle new ARCv2 punctuation characters.
6769 (arc_return_in_memory): ARCv2 ABI returns in registers up to 16 bytes.
6770 (workaround_arc_anomaly, arc_asm_insn_p, arc_loop_hazard): New
6771 function.
6772 (arc_reorg, arc_hazard): Use it.
6773 * config/arc/arc.h (TARGET_CPU_CPP_BUILTINS): Define __HS__ and __EM__.
6774 (ASM_SPEC): Add ARCv2 options.
6775 (TARGET_NORM): ARC HS has norm instructions by default.
6776 (TARGET_OPTFPE): Use optimized floating point emulation for ARC HS.
6777 (TARGET_AT_DBR_CONDEXEC): Only for ARC600 family.
6778 (TARGET_EM, TARGET_HS, TARGET_V2, TARGET_MPYW, TARGET_MULTI): Define.
6779 (SIGNED_INT16, TARGET_MPY, TARGET_ARC700_MPY, TARGET_ANY_MPY):
6780 Likewise.
6781 (TARGET_ARC600_FAMILY, TARGET_ARCOMPACT_FAMILY): Likewise.
6782 (TARGET_LP_WR_INTERLOCK): Likewise.
6783 * config/arc/arc.md
6784 (commutative_binary_mult_comparison_result_used, movsicc_insn)
6785 (mulsi3, mulsi3_600_lib, mulsidi3, mulsidi3_700, mulsi3_highpart)
6786 (umulsi3_highpart_i, umulsi3_highpart_int, umulsi3_highpart)
6787 (umulsidi3, umulsidi3_700, cstoresi4, simple_return, p_return_i):
6788 Use it for ARCv2.
6789 (mulhisi3, mulhisi3_imm, mulhisi3_reg, umulhisi3, umulhisi3_imm)
6790 (umulhisi3_reg, umulhisi3_reg, mulsi3_v2, nopv, bswapsi2)
6791 (prefetch, divsi3, udivsi3 modsi3, umodsi3, arcset, arcsetltu)
6792 (arcsetgeu, arcsethi, arcsetls, reload_*_load, reload_*_store)
6793 (extzvsi): New pattern.
6794 * config/arc/arc.opt: New ARCv2 options.
6795 * config/arc/arcEM.md: New file.
6796 * config/arc/arcHS.md: Likewise.
6797 * config/arc/constraints.md (C3p): New constraint, accepts 1 and 2
6798 values.
6799 (Cm2): A signed 9-bit integer constant constraint.
6800 (C62): An unsigned 6-bit integer constant constraint.
6801 (C16): A signed 16-bit integer constant constraint.
6802 * config/arc/predicates.md (mult_operator): Add ARCv2 processort.
6803 (short_const_int_operand): New predicate.
6804 * config/arc/t-arc-newlib: Add ARCv2 multilib options.
6805 * doc/invoke.texi: Add documentation for -mcpu=<archs/arcem>
6806 -mcode-density and -mdiv-rem.
6807
6808 2015-11-11 Julia Koval <julia.koval@intel.com>
6809
6810 * config/i386/i386.c (m_SKYLAKE_AVX512): Fix typo.
6811
6812 2015-11-11 Julia Koval <julia.koval@intel.com>
6813
6814 * config/i386/i386.c: Handle "skylake" and "skylake-avx512".
6815
6816 2015-11-11 Martin Liska <mliska@suse.cz>
6817
6818 * gimple-ssa-strength-reduction.c (create_phi_basis):
6819 Use auto_vec.
6820 * passes.c (release_dump_file_name): New function.
6821 (pass_init_dump_file): Used from this function.
6822 (pass_fini_dump_file): Likewise.
6823 * tree-sra.c (convert_callers_for_node): Use xstrdup_for_dump.
6824 * var-tracking.c (vt_initialize): Use pool_allocator.
6825
6826 2015-11-11 Richard Biener <rguenth@gcc.gnu.org>
6827 Jiong Wang <jiong.wang@arm.com>
6828
6829 PR tree-optimization/68234
6830 * tree-vrp.c (vrp_visit_phi_node): Extend SCEV check to those loop PHI
6831 node which estimiated to be VR_VARYING initially.
6832
6833 2015-11-11 Robert Suchanek <robert.suchanek@imgtec.com>
6834
6835 * regname.c (scan_rtx_reg): Check the matching number of consecutive
6836 registers when tying chains.
6837 (build_def_use): Move terminated_this_insn earlier in the function.
6838
6839 2015-11-10 Mike Frysinger <vapier@gentoo.org>
6840
6841 * configure.ac: Use = with test and not ==.
6842 * configure: Regenerated.
6843
6844 2015-11-11 David Edelsohn <dje.gcc@gmail.com>
6845
6846 * config/rs6000/aix.h (TARGET_OS_AIX_CPP_BUILTINS): Add cpu and
6847 machine asserts. Update defines for 64 bit.
6848
6849 2015-11-11 Charles Baylis <charles.baylis@linaro.org>
6850
6851 PR target/63870
6852 * config/arm/neon.md (neon_vld1_lane<mode>): Remove error for invalid
6853 lane number.
6854 (neon_vst1_lane<mode>): Likewise.
6855 (neon_vld2_lane<mode>): Likewise.
6856 (neon_vst2_lane<mode>): Likewise.
6857 (neon_vld3_lane<mode>): Likewise.
6858 (neon_vst3_lane<mode>): Likewise.
6859 (neon_vld4_lane<mode>): Likewise.
6860 (neon_vst4_lane<mode>): Likewise.
6861
6862 2015-11-11 Charles Baylis <charles.baylis@linaro.org>
6863
6864 PR target/63870
6865 * config/arm/arm-builtins.c: (arm_load1_qualifiers) Use
6866 qualifier_struct_load_store_lane_index.
6867 (arm_storestruct_lane_qualifiers) Likewise.
6868 * config/arm/neon.md: (neon_vld1_lane<mode>) Reverse lane numbers for
6869 big-endian.
6870 (neon_vst1_lane<mode>) Likewise.
6871 (neon_vld2_lane<mode>) Likewise.
6872 (neon_vst2_lane<mode>) Likewise.
6873 (neon_vld3_lane<mode>) Likewise.
6874 (neon_vst3_lane<mode>) Likewise.
6875 (neon_vld4_lane<mode>) Likewise.
6876 (neon_vst4_lane<mode>) Likewise.
6877
6878 2015-11-11 Charles Baylis <charles.baylis@linaro.org>
6879
6880 PR target/63870
6881 * config/arm/arm-builtins.c (enum arm_type_qualifiers): New enumerator
6882 qualifier_struct_load_store_lane_index.
6883 (builtin_arg): New enumerator NEON_ARG_STRUCT_LOAD_STORE_LANE_INDEX.
6884 (arm_expand_neon_args): New parameter. Remove ellipsis. Handle NEON
6885 argument qualifiers.
6886 (arm_expand_neon_builtin): Handle new NEON argument qualifier.
6887 * config/arm/arm.h (NEON_ENDIAN_LANE_N): New macro.
6888
6889 2015-11-10 Nathan Sidwell <nathan@codesourcery.com>
6890
6891 * config/nvptx/nvptx.opt (moptimize): New flag.
6892 * config/nvptx/nvptx.c (nvptx_option_override): Set nvptx_optimize
6893 default.
6894 (nvptx_optimize_inner): New.
6895 (nvptx_process_pars): Call it when optimizing.
6896 * doc/invoke.texi (Nvidia PTX Options): Document -moptimize.
6897
6898 2015-11-10 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
6899
6900 * config/rs6000/rs6000.c (rs6000_secondary_reload_direct_move):
6901 Remove redundant code.
6902
6903 2015-11-10 Jeff Law <law@redhat.com>
6904
6905 * config/ft32/ft32.c (ft32_print_operand): Supply mode to
6906 call to output_address.
6907 * config/moxie/moxie.c (moxie_print_operand_address): Similarly.
6908 Add unnamed machine_mode argument.
6909
6910 2015-11-10 Michael Meissner <meissner@linux.vnet.ibm.com>
6911
6912 * config.gcc (powerpc*-*-*, rs6000*-*-*): Add power9 to hosts that
6913 default to 64-bit.
6914
6915 2015-11-10 Uros Bizjak <ubizjak@gmail.com>
6916
6917 * config/i386/i386.md (*movabs<mode>_1): Add explicit
6918 size directives for -masm=intel.
6919 (*movabs<mode>_2): Ditto.
6920
6921 2015-11-10 Uros Bizjak <ubizjak@gmail.com>
6922
6923 * config/i386/i386.c (ix86_print_operand): Remove dead code that
6924 tried to avoid (%rip) for call operands.
6925
6926 2015-11-10 Uros Bizjak <ubizjak@gmail.com>
6927
6928 * config/i386/i386.c (ix86_print_operand_address_as): Add no_rip
6929 argument. Do not use RIP relative addressing when no_rip is set.
6930 (ix86_print_operand): Update call to ix86_print_operand_address_as.
6931 (ix86_print_operand_address): Ditto.
6932 * config/i386/i386.md (*movabs<mode>_1): Use %P modifier for
6933 absolute movabs operand 0. Add square braces for -masm=intel.
6934 (*movabs<mode>_2): Ditto for operand 1.
6935
6936 2015-11-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
6937
6938 * config/arm/arm.c (arm_new_rtx_costs, FIX case): Handle
6939 combine_vcvtf2i pattern.
6940
6941 2015-11-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
6942
6943 * config/arm/arm.c (neon_valid_immediate): Remove integer
6944 CONST_DOUBLE handling. It should never occur.
6945
6946 2015-11-10 Matthew Wahab <matthew.wahab@arm.com>
6947
6948 * config/aarch64/atomics.md (unspecv): Move to iterators.md.
6949 (ATOMIC_LDOP): Likewise.
6950 (atomic_ldop): Likewise.
6951 * config/aarch64/iterators.md (unspecv): Moved from atomics.md.
6952 (ATOMIC_LDOP): Likewise.
6953 (atomic_ldop): Likewise.
6954
6955 2015-11-10 Martin Liska <mliska@suse.cz>
6956
6957 * alloc-pool.h (allocate_raw): New function.
6958 (operator new (size_t, object_allocator<T> &a)): Use the
6959 function instead of object_allocator::allocate).
6960
6961 2015-11-10 Ilya Enkovich <enkovich.gnu@gmail.com>
6962
6963 * config/i386/sse.md (HALFMASKMODE): New attribute.
6964 (DOUBLEMASKMODE): New attribute.
6965 (vec_pack_trunc_qi): New.
6966 (vec_pack_trunc_<mode>): New.
6967 (vec_unpacks_lo_hi): New.
6968 (vec_unpacks_lo_si): New.
6969 (vec_unpacks_lo_di): New.
6970 (vec_unpacks_hi_hi): New.
6971 (vec_unpacks_hi_<mode>): New.
6972
6973 2015-11-10 Ilya Enkovich <enkovich.gnu@gmail.com>
6974
6975 * optabs.c (expand_binop_directly): Allow scalar mode for
6976 vec_pack_trunc_optab.
6977 * tree-vect-loop.c (vect_determine_vectorization_factor): Skip
6978 boolean vector producers from pattern sequence when computing VF.
6979 * tree-vect-patterns.c (vect_vect_recog_func_ptrs) Add
6980 vect_recog_mask_conversion_pattern.
6981 (search_type_for_mask): Choose the smallest
6982 type if different size types are mixed.
6983 (build_mask_conversion): New.
6984 (vect_recog_mask_conversion_pattern): New.
6985 (vect_pattern_recog_1): Allow scalar mode for boolean vectype.
6986 * tree-vect-stmts.c (vectorizable_mask_load_store): Support masked
6987 load with pattern.
6988 (vectorizable_conversion): Support boolean vectors.
6989 (free_stmt_vec_info): Allow patterns for statements with no lhs.
6990 * tree-vectorizer.h (NUM_PATTERNS): Increase to 14.
6991
6992 2015-11-10 Ilya Enkovich <enkovich.gnu@gmail.com>
6993
6994 * config/i386/i386-protos.h (ix86_expand_sse_movcc): New.
6995 * config/i386/i386.c (ix86_expand_sse_movcc): Make public.
6996 Cast mask to FP mode if required.
6997 * config/i386/sse.md (vcond_mask_<mode><avx512fmaskmodelower>): New.
6998 (vcond_mask_<mode><avx512fmaskmodelower>): New.
6999 (vcond_mask_<mode><sseintvecmodelower>): New.
7000 (vcond_mask_<mode><sseintvecmodelower>): New.
7001 (vcond_mask_v2div2di): New.
7002 (vcond_mask_<mode><sseintvecmodelower>): New.
7003 (vcond_mask_<mode><sseintvecmodelower>): New.
7004
7005 2015-11-10 Ilya Enkovich <enkovich.gnu@gmail.com>
7006
7007 * optabs-query.h (get_vcond_mask_icode): New.
7008 * optabs-tree.c (expand_vec_cond_expr_p): Use
7009 get_vcond_mask_icode for VEC_COND_EXPR with mask.
7010 * optabs.c (expand_vec_cond_mask_expr): New.
7011 (expand_vec_cond_expr): Use get_vcond_mask_icode when possible.
7012 * optabs.def (vcond_mask_optab): New.
7013 * tree-vect-patterns.c (vect_recog_bool_pattern): Don't
7014 generate redundant comparison for COND_EXPR.
7015 * tree-vect-stmts.c (vect_is_simple_cond): Allow SSA_NAME
7016 as a condition.
7017 (vectorizable_condition): Likewise.
7018 * tree-vect-slp.c (vect_get_and_check_slp_defs): Allow
7019 cond_exp with no embedded comparison.
7020 (vect_build_slp_tree_1): Likewise.
7021
7022 2015-11-10 Ilya Enkovich <enkovich.gnu@gmail.com>
7023
7024 * config/i386/sse.md (maskload<mode>): Rename to ...
7025 (maskload<mode><sseintvecmodelower>): ... this.
7026 (maskstore<mode>): Rename to ...
7027 (maskstore<mode><sseintvecmodelower>): ... this.
7028 (maskload<mode><avx512fmaskmodelower>): New.
7029 (maskstore<mode><avx512fmaskmodelower>): New.
7030
7031 2015-11-10 Ilya Enkovich <enkovich.gnu@gmail.com>
7032
7033 * internal-fn.c (expand_MASK_LOAD): Adjust to maskload optab changes.
7034 (expand_MASK_STORE): Adjust to maskstore optab changes.
7035 * optabs-query.c (can_vec_mask_load_store_p): Add MASK_MODE arg.
7036 Adjust to maskload, maskstore optab changes.
7037 * optabs-query.h (can_vec_mask_load_store_p): Add MASK_MODE arg.
7038 * optabs.def (maskload_optab): Transform into convert optab.
7039 (maskstore_optab): Likewise.
7040 * tree-if-conv.c (ifcvt_can_use_mask_load_store): Adjust to
7041 can_vec_mask_load_store_p signature change.
7042 (predicate_mem_writes): Use boolean mask.
7043 * tree-vect-stmts.c (vectorizable_mask_load_store): Adjust to
7044 can_vec_mask_load_store_p signature change. Allow invariant masks.
7045 (vectorizable_operation): Ignore type precision for boolean vectors.
7046
7047 2015-11-10 Ilya Enkovich <enkovich.gnu@gmail.com>
7048
7049 * expr.c (do_store_flag): Use expand_vec_cmp_expr for mask results.
7050 (const_vector_mask_from_tree): New.
7051 (const_vector_from_tree): Use const_vector_mask_from_tree
7052 for boolean vectors.
7053 * optabs-query.h (get_vec_cmp_icode): New.
7054 * optabs-tree.c (expand_vec_cmp_expr_p): New.
7055 * optabs-tree.h (expand_vec_cmp_expr_p): New.
7056 * optabs.c (vector_compare_rtx): Add OPNO arg.
7057 (expand_vec_cond_expr): Adjust to vector_compare_rtx change.
7058 (expand_vec_cmp_expr): New.
7059 * optabs.def (vec_cmp_optab): New.
7060 (vec_cmpu_optab): New.
7061 * optabs.h (expand_vec_cmp_expr): New.
7062 * tree-vect-generic.c (expand_vector_comparison): Add vector
7063 comparison optabs check.
7064 * tree-vect-loop.c (vect_determine_vectorization_factor): Ignore mask
7065 operations for VF. Add mask type computation.
7066 * tree-vect-stmts.c (get_mask_type_for_scalar_type): New.
7067 (vectorizable_comparison): New.
7068 (vect_analyze_stmt): Add vectorizable_comparison.
7069 (vect_transform_stmt): Likewise.
7070 (vect_init_vector): Support boolean vector invariants.
7071 (vect_get_vec_def_for_operand): Add VECTYPE arg.
7072 (vectorizable_condition): Directly provide vectype for invariants
7073 used in comparison.
7074 * tree-vectorizer.h (get_mask_type_for_scalar_type): New.
7075 (enum vect_var_kind): Add vect_mask_var.
7076 (enum stmt_vec_info_type): Add comparison_vec_info_type.
7077 (vectorizable_comparison): New.
7078 (vect_get_vec_def_for_operand): Add VECTYPE arg.
7079 * tree-vect-data-refs.c (vect_get_new_vect_var): Support vect_mask_var.
7080 (vect_create_destination_var): Likewise.
7081 * tree-vect-patterns.c (check_bool_pattern): Check fails
7082 if we can vectorize comparison directly.
7083 (search_type_for_mask): New.
7084 (vect_recog_bool_pattern): Support cases when bool pattern check fails.
7085 * tree-vect-slp.c (vect_build_slp_tree_1): Allow
7086 comparison statements.
7087 (vect_get_constant_vectors): Support boolean vector constants.
7088 * config/i386/i386-protos.h (ix86_expand_mask_vec_cmp): New.
7089 (ix86_expand_int_vec_cmp): New.
7090 (ix86_expand_fp_vec_cmp): New.
7091 * config/i386/i386.c (ix86_expand_sse_cmp): Allow NULL for
7092 op_true and op_false.
7093 (ix86_int_cmp_code_to_pcmp_immediate): New.
7094 (ix86_fp_cmp_code_to_pcmp_immediate): New.
7095 (ix86_cmp_code_to_pcmp_immediate): New.
7096 (ix86_expand_mask_vec_cmp): New.
7097 (ix86_expand_fp_vec_cmp): New.
7098 (ix86_expand_int_sse_cmp): New.
7099 (ix86_expand_int_vcond): Use ix86_expand_int_sse_cmp.
7100 (ix86_expand_int_vec_cmp): New.
7101 (ix86_get_mask_mode): New.
7102 (TARGET_VECTORIZE_GET_MASK_MODE): New.
7103 * config/i386/sse.md (avx512fmaskmodelower): New.
7104 (vec_cmp<mode><avx512fmaskmodelower>): New.
7105 (vec_cmp<mode><sseintvecmodelower>): New.
7106 (vec_cmpv2div2di): New.
7107 (vec_cmpu<mode><avx512fmaskmodelower>): New.
7108 (vec_cmpu<mode><sseintvecmodelower>): New.
7109 (vec_cmpuv2div2di): New.
7110
7111 2015-11-10 Richard Biener <rguenther@suse.de>
7112
7113 PR tree-optimization/68240
7114 * tree-ssa-sccvn.c (cond_stmts_equal_p): Handle commutative compares
7115 properly.
7116 (visit_phi): For PHIs with just a single executable edge
7117 take its value directly.
7118 (expressions_equal_p): Handle VN_TOP properly.
7119
7120 2015-11-10 Richard Biener <rguenther@suse.de>
7121
7122 * tree-vect-data-refs.c (vect_slp_analyze_node_dependences):
7123 Handle memory using/clobbering stmts without a STMT_VINFO_DATA_REF
7124 conservatively.
7125
7126 2015-11-10 Richard Biener <rguenther@suse.de>
7127
7128 PR tree-optimization/56118
7129 * tree-vect-slp.c (vect_bb_vectorization_profitable_p): Make equal
7130 cost favor vectorized version.
7131
7132 2015-11-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7133
7134 * config/aarch64/aarch64.md (<neg_not_op><mode>cc): New define_expand.
7135 * config/aarch64/iterators.md (NEG_NOT): New code iterator.
7136 (neg_not_op): New code attribute.
7137
7138 2015-11-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7139
7140 * ifcvt.c (noce_try_inverse_constants): New function.
7141 (noce_process_if_block): Call it.
7142 * optabs.h (emit_conditional_neg_or_complement): Declare prototype.
7143 * optabs.def (negcc_optab, notcc_optab): Declare.
7144 * optabs.c (emit_conditional_neg_or_complement): New function.
7145 * doc/tm.texi (Standard Names): Document negcc, notcc names.
7146
7147 2015-11-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7148
7149 PR rtl-optimization/68236
7150 * haifa-sched.c (autopref_multipass_dfa_lookahead_guard): Return 0
7151 if insn_queue doesn't exist.
7152 (haifa_sched_finish): Reset insn_queue to NULL.
7153
7154 2015-11-10 Robert Suchanek <robert.suchanek@imgtec.com>
7155
7156 * regrename.c (create_new_chain): Initialize renamed and tied_chain.
7157 (build_def_use): Initialize terminated_this_insn.
7158 (find_best_rename_reg): Pick and check register from the tied chain.
7159 (regrename_do_replace): Mark head as renamed.
7160 (struct du_head *terminated_this_insn). New static variable.
7161 (scan_rtx_reg): Tie chains in move insns. Set terminated_this_insn.
7162 * regrename.h (struct du_head): Add tied_chain, renamed members.
7163
7164 2015-11-10 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
7165
7166 PR bootstrap/68256
7167 * config/aarch64/aarch64.c (aarch64_use_constant_blocks_p):
7168 Return false.
7169
7170 2015-11-09 Eric Botcazou <ebotcazou@adacore.com>
7171
7172 PR target/57845
7173 * config/sparc/sparc.c (sparc_function_value_1): In 32-bit mode, do
7174 not promote the mode for aggregate types.
7175
7176 2015-11-09 Nathan Sidwell <nathan@codesourcery.com>
7177
7178 * omp-low.h (replace_oacc_fn_attrib, build_oacc_routine_dims): Declare.
7179 * omp-low.c (build_oacc_routine_dims): New.
7180
7181 2015-11-09 Michael Meissner <meissner@linux.vnet.ibm.com>
7182
7183 * config/rs6000/constraints.md (wF constraint): New constraints
7184 for power9/toc fusion.
7185 (wG constraint): Likewise.
7186
7187 * config/rs6000/predicates.md (u6bit_cint_operand): New
7188 predicate, recognize 0..63.
7189 (upper16_cint_operand): New predicate for power9 and toc fusion.
7190 (fpr_reg_operand): Likewise.
7191 (toc_fusion_or_p9_reg_operand): Likewise.
7192 (toc_fusion_mem_raw): Likewise.
7193 (toc_fusion_mem_wrapped): Likewise.
7194 (fusion_gpr_addis): If power9 fusion, allow fusion for a larger
7195 address range.
7196 (fusion_gpr_mem_combo): Delete, use fusion_addis_mem_combo_load
7197 instead.
7198 (fusion_addis_mem_combo_load): Add support for power9 fusion of
7199 floating point loads, floating point stores, and gpr stores.
7200 (fusion_addis_mem_combo_store): Likewise.
7201 (fusion_offsettable_mem_operand): Likewise.
7202
7203 * config/rs6000/rs6000-protos.h (emit_fusion_addis): Add declarations.
7204 (emit_fusion_load_store): Likewise.
7205 (fusion_p9_p): Likewise.
7206 (expand_fusion_p9_load): Likewise.
7207 (expand_fusion_p9_store): Likewise.
7208 (emit_fusion_p9_load): Likewise.
7209 (emit_fusion_p9_store): Likewise.
7210 (fusion_wrap_memory_address): Likewise.
7211
7212 * config/rs6000/rs6000.c (struct rs6000_reg_addr): Add new
7213 elements for power9 fusion.
7214 (rs6000_debug_print_mode): Rework debug information to print more
7215 information about fusion.
7216 (rs6000_init_hard_regno_mode_ok): Setup for power9 fusion support.
7217 (rs6000_legitimate_address_p): Recognize toc fusion as a valid
7218 offsettable memory address.
7219 (rs6000_rtx_costs): Update costs for new ISA 3.0 instructions.
7220 (emit_fusion_gpr_load): Move most of the code from
7221 emit_fusion_gpr_load into emit_fusion-addis that handles both
7222 power8 and power9 fusion.
7223 (emit_fusion_addis): Likewise.
7224 (emit_fusion_load_store): Likewise.
7225 (fusion_wrap_memory_address): Add support for TOC fusion.
7226 (fusion_split_address): Likewise.
7227 (fusion_p9_p): Add support for power9 fusion.
7228 (expand_fusion_p9_load): Likewise.
7229 (expand_fusion_p9_store): Likewise.
7230 (emit_fusion_p9_load): Likewise.
7231 (emit_fusion_p9_store): Likewise.
7232
7233 * config/rs6000/rs6000.h (TARGET_EXTSWSLI): Macros for support for
7234 new instructions in ISA 3.0.
7235 (TARGET_CTZ): Likewise.
7236 (TARGET_TOC_FUSION_INT): Macros for power9 fusion support.
7237 (TARGET_TOC_FUSION_FP): Likewise.
7238
7239 * config/rs6000/rs6000.md (UNSPEC_FUSION_P9): New power9/toc
7240 fusion unspecs.
7241 (UNSPEC_FUSION_ADDIS): Likewise.
7242 (QHSI mode iterator): New iterator for power9 fusion.
7243 (GPR_FUSION): Likewise.
7244 (FPR_FUSION): Likewise.
7245 (mod<mode>3): Add support for ISA 3.0 modulus instructions.
7246 (umod<mode>3): Likewise.
7247 (divmod peephole): Likewise.
7248 (udivmod peephole): Likewise.
7249 (ctz<mode>2): Add support for ISA 3.0 count trailing zeros scalar
7250 instructions.
7251 (ctz<mode>2_h): Likewise.
7252 (ashdi3_extswsli): Add support for ISA 3.0 EXTSWSLI instruction.
7253 (ashdi3_extswsli_dot): Likewise.
7254 (ashdi3_extswsli_dot2): Likewise.
7255 (power9 fusion splitter): New power9/toc fusion support.
7256 (toc_fusionload_<mode>): Likewise.
7257 (toc_fusionload_di): Likewise.
7258 (fusion_gpr_load_<mode>): Update predicate function.
7259 (power9 fusion peephole2s): New power9/toc fusion support.
7260 (fusion_gpr_<P:mode>_<GPR_FUSION:mode>_load): Likewise.
7261 (fusion_gpr_<P:mode>_<GPR_FUSION:mode>_store): Likewise.
7262 (fusion_fpr_<P:mode>_<FPR_FUSION:mode>_load): Likewise.
7263 (fusion_fpr_<P:mode>_<FPR_FUSION:mode>_store): Likewise.
7264 (fusion_p9_<mode>_constant): Likewise.
7265
7266 2015-11-09 Steve Ellcey <sellcey@imgtec.com>
7267
7268 * optabs.c (prepare_libcall_arg): New function.
7269 (expand_fixed_convert): Add call to prepare_libcall_arg.
7270
7271 2015-11-09 Nikolai Bozhenov <n.bozhenov@samsung.com>
7272
7273 * sched-int.h (dump_rgn_dependencies_dot): Declare
7274 * sched-rgn.c (dump_rgn_dependencies_dot): New function
7275 * print-rtl.h (print_insn): Add prototype
7276
7277 * haifa-sched.c (setup_sched_dump): Don't redirect output to stderr.
7278 * common.opt (-fsched-verbose): Set default value to 1.
7279 * invoke.texi (-fsched-verbose): Update the option's description.
7280
7281 2015-11-09 Eric Botcazou <ebotcazou@adacore.com>
7282
7283 * config/visium/visium.h (PRINT_OPERAND): Delete.
7284 (PRINT_OPERAND_PUNCT_VALID_P): Likewise.
7285 (PRINT_OPERAND_ADDRESS): Likewise.
7286 * config/visium/visium.c (TARGET_PRINT_OPERAND_PUNCT_VALID_P): Define
7287 to...
7288 (visium_print_operand_punct_valid_p): ...this. New function.
7289 (TARGET_PRINT_OPERAND): Define to...
7290 (print_operand): Rename to...
7291 (visium_print_operand): ...this.
7292 (TARGET_PRINT_OPERAND_ADDRESS): Define to...
7293 (visium_output_address): Rename to...
7294 (visium_print_operand_address): ...this.
7295 (print_operand_address): Delete.
7296
7297 2015-11-09 Eric Botcazou <ebotcazou@adacore.com>
7298
7299 PR middle-end/68259
7300 * tree.h (reverse_storage_order_for_component_p) <COMPONENT_REF>:
7301 Check that the type of the first operand is an aggregate type.
7302
7303 2015-11-09 Nathan Sidwell <nathan@codesourcery.com>
7304
7305 * omp-low.c: Fix some OpenACC comment typos.
7306 (lower_reduction_clauses): Remove BUILT_IN_GOACC_GET_THREAD_NUM call.
7307 * omp-builtins.def (BUILT_IN_GOACC_GET_THREAD_NUM,
7308 BUILT_IN_GOACC_GET_NUM_THREADS): Delete.
7309
7310 2015-11-09 Uros Bizjak <ubizjak@gmail.com>
7311
7312 * config/i386/i386.md (*strmovqi_1): Fix insn enable condition.
7313
7314 2015-11-09 Jeff Law <law@redhat.com>
7315
7316 * tree-ssanames.c (verify_ssaname_freelists): Simplify check for
7317 being in gimple/ssa form. Remove redundant check for SSA_NAME.
7318 Fix comment typo.
7319
7320 2015-11-09 Michael Meissner <meissner@linux.vnet.ibm.com>
7321 Peter Bergner <bergner@vnet.ibm.com>
7322
7323 * config/rs6000/rs6000.opt (-mpower9-fusion): Add new switches for
7324 ISA 3.0 (power9).
7325 (-mpower9-vector): Likewise.
7326 (-mpower9-dform): Likewise.
7327 (-mpower9-minmax): Likewise.
7328 (-mtoc-fusion): Likewise.
7329 (-mmodulo): Likewise.
7330 (-mfloat128-hardware): Likewise.
7331
7332 * config/rs6000/rs6000-cpus.def (ISA_3_0_MASKS_SERVER): Add option
7333 mask for ISA 3.0 (power9).
7334 (POWERPC_MASKS): Add new ISA 3.0 switches.
7335 (power9 cpu): Add power9 cpu.
7336
7337 * config/rs6000/rs6000.h (ASM_CPU_POWER9_SPEC): Add support for power9.
7338 (ASM_CPU_SPEC): Likewise.
7339 (EXTRA_SPECS): Likewise.
7340
7341 * config/rs6000/rs6000-opts.h (enum processor_type): Add
7342 PROCESSOR_POWER9.
7343
7344 * config/rs6000/rs6000.c (power9_cost): Initial cost setup for power9.
7345 (rs6000_debug_reg_global): Add support for power9 fusion.
7346 (rs6000_setup_reg_addr_masks): Cache mode size.
7347 (rs6000_option_override_internal): Until real power9 tuning is
7348 added, use -mtune=power8 for -mcpu=power9.
7349 (rs6000_setup_reg_addr_masks): Do not allow pre-increment,
7350 pre-decrement, or pre-modify on SFmode/DFmode if we allow the use
7351 of Altivec registers.
7352 (rs6000_option_override_internal): Add support for ISA 3.0 switches.
7353 (rs6000_loop_align): Add support for power9 cpu.
7354 (rs6000_file_start): Likewise.
7355 (rs6000_adjust_cost): Likewise.
7356 (rs6000_issue_rate): Likewise.
7357 (insn_must_be_first_in_group): Likewise.
7358 (insn_must_be_last_in_group): Likewise.
7359 (force_new_group): Likewise.
7360 (rs6000_register_move_cost): Likewise.
7361 (rs6000_opt_masks): Likewise.
7362
7363 * config/rs6000/rs6000.md (cpu attribute): Add power9.
7364 * config/rs6000/rs6000-tables.opt: Regenerate.
7365
7366 * config/rs6000/rs6000-c.c (rs6000_target_modify_macros): Define
7367 _ARCH_PWR9 if power9 support is available.
7368
7369 * config/rs6000/aix61.h (ASM_CPU_SPEC): Add power9.
7370 * config/rs6000/aix53.h (ASM_CPU_SPEC): Likewise.
7371
7372 * configure.ac: Determine if the assembler supports the ISA 3.0
7373 instructions.
7374 * config.in (HAVE_AS_POWER9): Likewise.
7375 * configure: Regenerate.
7376
7377 * doc/invoke.texi (RS/6000 and PowerPC Options): Document ISA 3.0
7378 switches.
7379
7380 2015-11-09 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7381
7382 * config/aarch64/aarch64.c (aarch64_simd_valid_immediate):
7383 Remove integer CONST_DOUBLE handling. It should never occur.
7384
7385 2015-11-09 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7386
7387 PR target/68129
7388 * config/aarch64/aarch64.h (TARGET_SUPPORTS_WIDE_INT): Define to 1.
7389 * config/aarch64/aarch64.c (aarch64_print_operand, CONST_DOUBLE):
7390 Delete VOIDmode case. Assert that mode is not VOIDmode.
7391 * config/aarch64/predicates.md (const0_operand): Remove const_double
7392 match.
7393
7394 2015-11-09 Martin Liska <mliska@suse.cz>
7395
7396 * ipa-inline-analysis.c (estimate_function_body_sizes): Call
7397 body_info release function.
7398 * ipa-prop.c (ipa_release_body_info): New function.
7399 (ipa_analyze_node): Call the function.
7400 (ipa_node_params::~ipa_node_params): Release known_csts.
7401 * ipa-prop.h (ipa_release_body_info): Declare.
7402
7403 2015-11-09 Martin Liska <mliska@suse.cz>
7404
7405 * gcc.c (record_temp_file): Release name string.
7406 * ifcvt.c (noce_convert_multiple_sets): Use auto_vec instead of vec.
7407 * lra-lives.c (free_live_range_list): Utilize
7408 lra_live_range_pool for allocation and deallocation.
7409 (create_live_range): Likewise.
7410 (copy_live_range): Likewise.
7411 (lra_merge_live_ranges): Likewise.
7412 (remove_some_program_points_and_update_live_ranges): Likewise.
7413 (lra_create_live_ranges_1): Release point_freq_vec that can
7414 be not freed from previous iteration of the function.
7415 * tree-eh.c (lower_try_finally_switch): Use auto_vec instead of vec.
7416 * tree-sra.c (sra_deinitialize): Release all vectors in
7417 base_access_vec.
7418 * tree-ssa-dom.c (free_dom_edge_info): Make the function extern.
7419 * tree-ssa-threadupdate.c (remove_ctrl_stmt_and_useless_edges):
7420 Release edge_info for a removed edge.
7421 (thread_through_all_blocks): Free region vector.
7422 * tree-ssa.h (free_dom_edge_info): Declare function extern.
7423
7424 2015-11-09 Ilya Enkovich <enkovich.gnu@gmail.com>
7425
7426 * optabs.c (expand_vec_cond_expr): Always get sign from type.
7427 * tree.c (wide_int_to_tree): Support negative values for boolean.
7428 (build_nonstandard_boolean_type): Use signed type for booleans.
7429
7430 2015-11-09 Richard Biener <rguenther@suse.de>
7431
7432 PR tree-optimization/68248
7433 * tree-vect-generic.c (expand_vector_operations_1): Handle scalar rhs2.
7434
7435 2015-11-09 Richard Biener <rguenther@suse.de>
7436
7437 PR tree-optimization/56118
7438 * tree-vectorizer.h (vect_find_last_scalar_stmt_in_slp): Declare.
7439 * tree-vect-slp.c (vect_find_last_scalar_stmt_in_slp): Export.
7440 * tree-vect-data-refs.c (vect_slp_analyze_node_dependences): New
7441 function.
7442 (vect_slp_analyze_data_ref_dependences): Instead of computing
7443 all dependences of the region DRs just analyze the code motions
7444 SLP vectorization will perform. Remove SLP instances that
7445 cannot have their store/load motions applied.
7446 (vect_analyze_data_refs): Allow DRs without a vectype
7447 in BB vectorization.
7448
7449 2015-11-09 Julian Brown <julian@codesourcery.com>
7450
7451 * final.c (output_asm_insn): Pass VOIDmode to output_address.
7452 (output_address): Add MODE argument. Pass to print_operand_address
7453 hook.
7454 * targhooks.c (default_print_operand_address): Add MODE argument.
7455 * targhooks.h (default_print_operand_address): Update prototype.
7456 * output.h (output_address): Update prototype.
7457 * target.def (print_operand_address): Add MODE argument.
7458 * config/vax/vax.c (print_operand_address): Pass VOIDmode to
7459 output_address.
7460 (print_operand): Pass access mode to output_address.
7461 * config/mcore/mcore.c (mcore_print_operand_address): Add MODE
7462 argument.
7463 (mcore_print_operand): Update calls to mcore_print_operand_address.
7464 * config/fr30/fr30.c (fr30_print_operand): Pass VOIDmode to
7465 output_address.
7466 * config/lm32/lm32.c (lm32_print_operand): Pass mode in calls to
7467 output_address.
7468 * config/tilegx/tilegx.c (output_memory_reference_mode): Remove
7469 global.
7470 (tilegx_print_operand): Don't set above global. Update calls to
7471 output_address.
7472 (tilegx_print_operand_address): Add MODE argument. Use instead of
7473 output_memory_reference_mode global.
7474 * config/frv/frv.c (frv_print_operand_address): Add MODE argument.
7475 (frv_print_operand): Pass mode to frv_print_operand_address calls.
7476 * config/mn10300/mn10300.c (mn10300_print_operand): Pass mode to
7477 output_address.
7478 * config/cris/cris.c (cris_print_operand_address): Add MODE argument.
7479 (cris_print_operand): Pass mode to output_address calls.
7480 * config/spu/spu.c (print_operand): Pass mode to output_address calls.
7481 * config/aarch64/aarch64.h (aarch64_print_operand)
7482 (aarch64_print_operand_address): Remove prototypes.
7483 * config/aarch64/aarch64.c (aarch64_memory_reference_mode): Delete
7484 global.
7485 (aarch64_print_operand): Make static. Update calls to output_address.
7486 (aarch64_print_operand_address): Add MODE argument. Use instead of
7487 aarch64_memory_reference_mode global.
7488 (TARGET_PRINT_OPERAND, TARGET_PRINT_OPERAND_ADDRESS): Define target
7489 hooks.
7490 * config/aarch64/aarch64.h (PRINT_OPERAND, PRINT_OPERAND_ADDRESS):
7491 Delete macro definitions.
7492 * config/pa/pa.c (pa_print_operand): Pass mode in output_address calls.
7493 * config/xtensa/xtensa.c (print_operand): Pass mode in
7494 output_address calls.
7495 * config/h8300/h8300.c (h8300_print_operand_address): Add MODE
7496 argument.
7497 (h83000_print_operand): Update calls to h8300_print_operand_address
7498 and output_address.
7499 * config/ia64/ia64.c (ia64_print_operand_address): Add MODE argument.
7500 * config/tilepro/tilepro.c (output_memory_reference_mode): Delete
7501 global.
7502 (tilepro_print_operand): Pass mode to output_address.
7503 (tilepro_print_operand_address): Add MODE argument. Use instead of
7504 output_memory_reference_mode.
7505 * config/nvptx/nvptx.c (output_decl_chunk, nvptx_assemble_integer)
7506 (nvptx_output_call_insn, nvptx_print_address_operand): Pass VOIDmode
7507 to output_address calls.
7508 (nvptx_print_operand_address): Add MODE argument.
7509 * config/alpha/alpha.c (print_operand): Pass mode argument in
7510 output_address calls.
7511 * config/m68k/m68k.c (print_operand): Pass mode argument in
7512 output_address call.
7513 * config/avr/avr.c (avr_print_operand_address): Add MODE argument.
7514 (avr_print_operand): Update calls to avr_print_operand_address.
7515 * config/sparc/sparc.c (sparc_print_operand_address): Add MODE
7516 argument. Update calls to output_address.
7517 (sparc_print_operand): Pass mode to output_address.
7518 * config/iq2000/iq2000.c (iq2000_print_operand_address): Add MODE
7519 argument.
7520 (iq2000_print_operand): Pass mode in output_address calls.
7521 * config/stormy16/stormy16.c (xstormy16_print_operand_address): Add
7522 MODE argument.
7523 (xstormy16_print_operand): Pass mode to
7524 xstormy16_print_operand_address calls.
7525 * config/mips/mips.c (mips_print_operand): Update calls to
7526 output_address.
7527 (mips_print_operand_address): Add MODE argument.
7528 * config/epiphany/epiphany.c (epiphany_print_operand): Update calls
7529 to output_address.
7530 (epiphany_print_operand_address): Add MODE argument. Add FIXME note.
7531 * config/pdp11/pdp11.c (pdp11_asm_print_operand): Update call to
7532 output_address.
7533 * config/rx/rx.c (rx_print_operand_address): Add MODE argument.
7534 (rx_print_operand): Update calls to output_address,
7535 rx_print_operand_address.
7536 * config/nds32/nds32.c (nds32_print_operand): Update calls to
7537 output_address.
7538 (nds32_print_operand_address): Add MODE argument.
7539 * config/rs6000/rs6000.c (print_operand): Pass mem mode to
7540 output_address calls.
7541 * config/c6x/c6x.c (print_address_offset): Pass mem mode to
7542 output_address call.
7543 (c6x_print_address_operand): Update calls to output_address.
7544 (c6x_print_operand_address): Pass mode to above.
7545 * config/v850/v850.c (v850_print_operand_address): Add MODE argument.
7546 (v850_print_operand): Pass mode to v850_print_operand_address,
7547 output_address.
7548 * config/mmix/mmix.c (mmix_print_operand_address): Add MODE argument.
7549 (mmix_print_operand): Pass mode in output_address calls.
7550 * config/sh/sh.c (sh_print_operand_address): Add MODE argument.
7551 (sh_print_operand): Pass mem mode to output_address,
7552 sh_print_operand_address.
7553 * config/cr16/cr16.c (cr16_print_operand_address): Add MODE argument.
7554 (cr16_print_operand): Pass mode to output_address,
7555 cr16_print_operand_address.
7556 * config/bfin/bfin.c (print_address_operand): Pass VOIDmode to
7557 output_address.
7558 * config/microblaze/microblaze.c (print_operand): Pass mode to
7559 output_address.
7560 * config/nios2/nios2.c (nios2_print_operand): Pass VOIDmode to
7561 output_address.
7562 (nios2_print_operand_address): Add MODE argument. Update call to
7563 nios2_print_operand_address.
7564 * config/s390/s390.c (print_operand): Pass mode to output_address.
7565 * config/m32c/m32c.c (m32c_print_operand_address): Add MODE argument.
7566 * config/arc/arc.c (arc_print_operand): Pass VOIDmode to
7567 output_address.
7568 * config/arm/arm.c (arm_print_operand_address): Add MODE argument.
7569 Use instead of output_memory_reference_mode.
7570 (output_memory_reference_mode): Delete global.
7571 (arm_print_operand): Pass mem mode to output_address.
7572 * config/m32r/m32r.c (m32r_print_operand_address): Add MODE argument.
7573 (m32r_print_operand): Pass mode to output_address.
7574 * config/msp430/msp430.c (msp430_print_operand_addr): Add MODE
7575 argument.
7576 (msp430_print_operand): Pass mode to msp430_print_operand_addr.
7577 * config/i386/i386.c (ix86_print_operand): Pass mode to
7578 output_address calls.
7579 (ix86_print_operand_address): Add MODE argument.
7580
7581 2015-11-09 Eric Botcazou <ebotcazou@adacore.com>
7582
7583 PR middle-end/68251
7584 * tree-core.h (REF_REVERSE_STORAGE_ORDER): Move around.
7585 * tree.h (REF_REVERSE_STORAGE_ORDER): Change to default_def_flag.
7586 * tree-streamer-in.c (unpack_ts_base_value_fields): Adjust.
7587 * tree-streamer-out.c (pack_ts_base_value_fields): Likewise.
7588
7589 2015-11-09 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7590
7591 PR rtl-optimization/67749
7592 * ifcvt.c (noce_try_cmove_arith): Do not emit move in IF-ELSE
7593 case before emitting the two blocks. Instead modify the register
7594 in the corresponding final insn of the basic block.
7595
7596 2015-11-09 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7597
7598 * acinclude.m4 (gcc_AC_INITFINI_ARRAY): Allow for differences in
7599 assembler syntax.
7600 Support Solaris ld.
7601 Define HAVE_INITFINI_ARRAY_SUPPORT as 0/1.
7602
7603 * config/sol2.h (SUPPORTS_INIT_PRIORITY): Define to
7604 HAVE_INITFINI_ARRAY_SUPPORT.
7605 * config/initfini-array.h: Check HAVE_INITFINI_ARRAY_SUPPORT value.
7606
7607 * configure.ac (gcc_cv_as_sparc_nobits): Remove.
7608 * config/sparc/sparc.c (sparc_solaris_elf_asm_named_section):
7609 Don't check HAVE_AS_SPARC_NOBITS.
7610 Heed SECTION_NOTYPE.
7611
7612 * configure: Regenerate.
7613 * config.in: Regenerate.
7614
7615 2015-11-09 Eric Botcazou <ebotcazou@adacore.com>
7616
7617 PR middle-end/68253
7618 * fold-const.c (fold_truth_andor_1): Initialize new variables to 0.
7619
7620 2015-11-09 Richard Henderson <rth@redhat.com>
7621
7622 * config/i386/i386-c.c (ix86_target_macros): Define __SEG_FS,
7623 __SEG_GS, __SEG_TLS.
7624 (ix86_register_pragmas): Register address spaces __seg_fs,
7625 __seg_gs, __seg_tls.
7626 * config/i386/i386-protos.h (enum ix86_address_seg): Remove.
7627 (ADDR_SPACE_SEG_FS, ADDR_SPACE_SEG_GS, ADDR_SPACE_SEG_TLS): New.
7628 (struct ix86_address): Use addr_space_t instead of ix86_address_seg.
7629 * config/i386/i386.c (ix86_decompose_address): Likewise.
7630 (ix86_legitimate_address_p): Likewise.
7631 (memory_address_length): Likewise. Check mem address space too.
7632 (ix86_print_operand): Use ix86_print_operand_address_as.
7633 (ix86_print_operand_address_as): Rename from
7634 ix86_print_operand_address, add new addr_space_t parameter.
7635 Validate that either the parameter or the ix86_address segment
7636 is default address space. Handle ADDR_SPACE_SEG_TLS.
7637 (ix86_print_operand_address): New.
7638 (ix86_addr_space_subset_p, TARGET_ADDR_SPACE_SUBSET_P): New.
7639 (ix86_addr_space_convert, TARGET_ADDR_SPACE_CONVERT): New.
7640 (ix86_addr_space_debug, TARGET_ADDR_SPACE_DEBUG): New.
7641 (ix86_addr_space_zero_address_valid): New.
7642 (TARGET_ADDR_SPACE_ZERO_ADDRESS_VALID): New.
7643 * config/i386/i386.h (DEFAULT_TLS_SEG_REG): Use addr_space_t constants.
7644 * config/i386/rdos.h (DEFAULT_TLS_SEG_REG): Likewise.
7645 * config/i386/predicates.md (address_no_seg_operand): Likewise.
7646 (vsib_address_operand): Likewise.
7647 (address_mpx_no_base_operand): Likewise.
7648 (address_mpx_no_index_operand): Likewise.
7649 * doc/extend.texi (x86 Named Address Spaces): New section.
7650
7651 * config/i386/i386.c (ix86_check_no_addr_space): New.
7652 (decide_alg): Add have_as parameter.
7653 (alg_usable_p): Likewise; disable rep algorithms if set.
7654 (ix86_expand_set_or_movmem): Notice if either MEM has a
7655 non-default address space.
7656 (ix86_expand_strlen): Likewise.
7657 * config/i386/i386.md (strmov, strset): Likewise.
7658 (*strmovdi_rex_1): Use ix86_check_no_addr_space.
7659 (*strmovsi_1, *strmovqi_1, *rep_movdi_rex64, *rep_movsi, *rep_movqi,
7660 *strsetdi_rex_1, *strsetsi_1, *strsethi_1, *strsetqi_1,
7661 *rep_stosdi_rex64, *rep_stossi, *rep_stosqi, *cmpstrnqi_nz_1,
7662 *cmpstrnqi_1, *strlenqi_1): Likewise.
7663
7664 * config/i386/i386.md (*movabs<mode>_1): Print the full memory rtx.
7665 (*movabs<mode>_2): Likewise.
7666
7667 * dwarf2out.c (modified_type_die): Pass the address space number
7668 through TARGET_ADDR_SPACE_DEBUG to produce the dwarf address class.
7669 * target.def (TARGET_ADDR_SPACE_DEBUG): New.
7670 * targhooks.c (default_addr_space_debug): New.
7671 * targhooks.h (default_addr_space_debug): Declare.
7672 * doc/tm.texi.in (TARGET_ADDR_SPACE_DEBUG): Mark it.
7673 * doc/tm.texi: Rebuild.
7674
7675 * gimple.c (check_loadstore): Return false when 0 is a valid address.
7676 * fold-const.c (const_unop) [ADDR_SPACE_CONVERT_EXPR]: Do not fold
7677 null when 0 is valid in the source address space.
7678 * target.def (TARGET_ADDR_SPACE_ZERO_ADDRESS_VALID): New.
7679 * targhooks.c (default_addr_space_zero_address_valid): New.
7680 * targhooks.h (default_addr_space_zero_address_valid): Declare.
7681 * doc/tm.texi.in (TARGET_ADDR_SPACE_ZERO_ADDRESS_VALID): Mark it.
7682 * doc/tm.texi: Rebuild.
7683
7684 * cselib.c (add_mem_for_addr): Compare address spaces when
7685 matching memories.
7686 (cselib_lookup_mem): Likewise.
7687 * fold-const.c (operand_equal_p): Check address spaces of
7688 pointer types before checking integer constants.
7689
7690 PR tree-opt/66768
7691 * tree-ssa-address.c (create_mem_ref_raw): Use a pointer of
7692 the correct type for the base.
7693
7694 2015-11-09 Jeff Law <law@redhat.com>
7695
7696 * tree-into-ssa.c (names_to_release): No longer static.
7697 * tree-into-ssa.h (names_to_release): Declare.
7698 * tree-ssanames.c (verify_ssaname_freelists): New debug function.
7699 (release_free_names_and_compact_live_names): New function extracted
7700 from pass_release_ssa_names::execute.
7701 (pass_release_ssa_names::execute): Use it.
7702
7703 2015-11-09 Alan Modra <amodra@gmail.com>
7704
7705 * gensupport.c (add_mnemonic_string): Make len param a size_t.
7706 (gen_mnemonic_setattr): Make "size" var a size_t. Use
7707 obstack_blank_fast to shrink obstack. Cast obstack_next_free
7708 return value.
7709
7710 2015-11-09 Segher Boessenkool <segher@kernel.crashing.org>
7711
7712 PR rtl-optimization/68182
7713 * bb-reorder.c (reorder_basic_blocks_simple): Treat a conditional
7714 branch with only one successor just like unconditional branches.
7715
7716 2015-11-08 Jeff Law <law@redhat.com>
7717
7718 * tree-ssa-threadupdate.c (register_jump_thraed): Assert that a
7719 non-FSM path has no edges marked with EDGE_DFS_BACK.
7720 (ssa_redirect_edges): No longer call mark_loop_for_removal.
7721 (thread_single_edge, def_split_header_continue_p): Remove.
7722 (bb_ends_with_multiway_branch): Likewise.
7723 (thread_through_loop_header): Remove cases of threading from
7724 latch through the header. Simplify knowing we won't thread
7725 the latch.
7726 (thread_through_all_blocks): Simplify knowing that only the FSM
7727 threader needs to handle backedges.
7728
7729 2015-11-08 Eric Botcazou <ebotcazou@adacore.com>
7730
7731 * doc/extend.texi (type attributes): Document scalar_storage_order.
7732 (Structure-Packing Pragmas): Rename into...
7733 (Structure-Layout Pragmas): ...this. Document scalar_storage_order.
7734 * doc/invoke.texi (C Dialect Options): Document -fsso-struct
7735 (Warnings): Document -Wno-scalar-storage-order.
7736 * flag-types.h (enum scalar_storage_order_kind): New enumeration.
7737 * calls.c (store_unaligned_arguments_into_pseudos): Adjust calls to
7738 extract_bit_field and store_bit_field.
7739 (initialize_argument_information): Adjust call to store_expr.
7740 (load_register_parameters): Adjust call to extract_bit_field.
7741 * expmed.c (check_reverse_storage_order_support): New function.
7742 (check_reverse_float_storage_order_support): Likewise.
7743 (flip_storage_order): Likewise.
7744 (store_bit_field_1): Add REVERSE parameter. Flip the storage order
7745 of the value if it is true. Pass REVERSE to recursive call after
7746 adjusting the target offset.
7747 Do not use extraction or movstrict instruction if REVERSE is true.
7748 Pass REVERSE to store_fixed_bit_field.
7749 (store_bit_field): Add REVERSE parameter and pass to it to above.
7750 (store_fixed_bit_field): Add REVERSE parameter and pass to it to
7751 store_split_bit_field and store_fixed_bit_field_1.
7752 (store_fixed_bit_field_1): Add REVERSE parameter. Flip the storage
7753 order of the value if it is true and adjust the target offset.
7754 (store_split_bit_field): Add REVERSE parameter and pass it to
7755 store_fixed_bit_field. Adjust the target offset if it is true.
7756 (extract_bit_field_1): Add REVERSE parameter. Flip the storage order
7757 of the value if it is true. Pass REVERSE to recursive call after
7758 adjusting the target offset.
7759 Do not use extraction or subreg instruction if REVERSE is true.
7760 Pass REVERSE to extract_fixed_bit_field.
7761 (extract_bit_field): Add REVERSE parameter and pass to it to above.
7762 (extract_fixed_bit_field): Add REVERSE parameter and pass to it to
7763 extract_split_bit_field and extract_fixed_bit_field_1.
7764 (extract_fixed_bit_field_1): Add REVERSE parameter. Flip the storage
7765 order of the value if it is true and adjust the target offset.
7766 (extract_split_bit_field): Add REVERSE parameter and pass it to
7767 extract_fixed_bit_field. Adjust the target offset if it is true.
7768 * expmed.h (flip_storage_order): Declare.
7769 (store_bit_field): Adjust prototype.
7770 (extract_bit_field): Likewise.
7771 * expr.c (emit_group_load_1): Adjust calls to extract_bit_field.
7772 (emit_group_store): Adjust call to store_bit_field.
7773 (copy_blkmode_from_reg): Likewise.
7774 (copy_blkmode_to_reg): Likewise.
7775 (write_complex_part): Likewise.
7776 (read_complex_part): Likewise.
7777 (optimize_bitfield_assignment_op): Add REVERSE parameter. Assert
7778 that it isn't true if the target is a register.
7779 <PLUS_EXPR>: If it is, do not optimize unless bitsize is equal to 1,
7780 and flip the storage order of the value.
7781 <BIT_IOR_EXPR>: Flip the storage order of the value.
7782 (get_bit_range): Adjust call to get_inner_reference.
7783 (expand_assignment): Adjust calls to get_inner_reference, store_expr,
7784 optimize_bitfield_assignment_op and store_field. Handle MEM_EXPRs
7785 with reverse storage order.
7786 (store_expr_with_bounds): Add REVERSE parameter and pass it to
7787 recursive calls and call to store_bit_field. Force the value into a
7788 register if it is true and then flip the storage order of the value.
7789 (store_expr): Add REVERSE parameter and pass it to above.
7790 (categorize_ctor_elements_1): Adjust call to
7791 initializer_constant_valid_p.
7792 (store_constructor_field): Add REVERSE parameter and pass it to
7793 recursive calls and call to store_field.
7794 (store_constructor): Add REVERSE parameter and pass it to calls to
7795 store_constructor_field and store_expr. Set it to true for an
7796 aggregate type with TYPE_REVERSE_STORAGE_ORDER.
7797 (store_field): Add REVERSE parameter and pass it to recursive calls
7798 and calls to store_expr and store_bit_field. Temporarily flip the
7799 storage order of the value with record type and integral mode and
7800 adjust the shift if it is true.
7801 (get_inner_reference): Add PREVERSEP parameter and set it to true
7802 upon encoutering a reference with reverse storage order.
7803 (expand_expr_addr_expr_1): Adjust call to get_inner_reference.
7804 (expand_constructor): Adjust call to store_constructor.
7805 (expand_expr_real_2) <CASE_CONVERT>: Pass TYPE_REVERSE_STORAGE_ORDER
7806 of the union type to store_expr in the MEM case and assert that it
7807 isn't set in the REG case. Adjust call to store_field.
7808 (expand_expr_real_1) <MEM_REF>: Handle reverse storage order.
7809 <normal_inner_ref>: Add REVERSEP variable and adjust calls to
7810 get_inner_reference and extract_bit_field. Temporarily flip the
7811 storage order of the value with record type and integral mode and
7812 adjust the shift if it is true. Flip the storage order of the value
7813 at the end if it is true.
7814 <VIEW_CONVERT_EXPR>: Add REVERSEP variable and adjust call to
7815 get_inner_reference. Do not fetch an inner reference if it is true.
7816 * expr.h (store_expr_with_bounds): Ajust prototype.
7817 (store_expr): Likewise.
7818 * fold-const.c (make_bit_field_ref): Add REVERSEP parameter and set
7819 REF_REVERSE_STORAGE_ORDER on the reference according to it.
7820 (optimize_bit_field_compare): Deal with reverse storage order.
7821 Adjust calls to get_inner_reference and make_bit_field_ref.
7822 (decode_field_reference): Add PREVERSEP parameter and adjust call to
7823 get_inner_reference.
7824 (fold_truth_andor_1): Deal with reverse storage order. Adjust calls
7825 to decode_field_reference and make_bit_field_ref.
7826 (fold_unary_loc) <CASE_CONVERT>: Adjust call to get_inner_reference.
7827 <VIEW_CONVERT_EXPR>: Propagate the REF_REVERSE_STORAGE_ORDER flag.
7828 (fold_comparison): Adjust call to get_inner_reference.
7829 (split_address_to_core_and_offset): Adjust call to
7830 get_inner_reference.
7831 * gimple-expr.c (useless_type_conversion_p): Return false for array
7832 types with different TYPE_REVERSE_STORAGE_ORDER flag.
7833 * gimplify.c (gimplify_expr) <MEM_REF>: Propagate the
7834 REF_REVERSE_STORAGE_ORDER flag.
7835 * lto-streamer-out.c (hash_tree): Deal with TYPE_REVERSE_STORAGE_ORDER.
7836 * output.h (assemble_real): Adjust prototype.
7837 * print-tree.c (print_node): Convey TYPE_REVERSE_STORAGE_ORDER.
7838 * stor-layout.c (finish_record_layout): Propagate the
7839 TYPE_REVERSE_STORAGE_ORDER flag to the variants.
7840 * tree-core.h (TYPE_REVERSE_STORAGE_ORDER): Document.
7841 (TYPE_SATURATING): Adjust.
7842 (REF_REVERSE_STORAGE_ORDER): Document.
7843 * tree-dfa.c (get_ref_base_and_extent): Add PREVERSE parameter and
7844 set it to true upon encoutering a reference with reverse storage order.
7845 * tree-dfa.h (get_ref_base_and_extent): Adjust prototype.
7846 * tree-inline.c (remap_gimple_op_r): Propagate the
7847 REF_REVERSE_STORAGE_ORDER flag.
7848 (copy_tree_body_r): Likewise.
7849 * tree-outof-ssa.c (insert_value_copy_on_edge): Adjust call to
7850 store_expr.
7851 * tree-streamer-in.c (unpack_ts_base_value_fields): Deal with
7852 TYPE_REVERSE_STORAGE_ORDER and REF_REVERSE_STORAGE_ORDER.
7853 * tree-streamer-out.c (pack_ts_base_value_fields): Likewise.
7854 * tree.c (stabilize_reference) <BIT_FIELD_REF>: Propagate the
7855 REF_REVERSE_STORAGE_ORDER flag.
7856 (verify_type_variant): Deal with TYPE_REVERSE_STORAGE_ORDER.
7857 (gimple_canonical_types_compatible_p): Likewise.
7858 * tree.h (TYPE_REVERSE_STORAGE_ORDER): New flag.
7859 (TYPE_SATURATING): Adjust.
7860 (REF_REVERSE_STORAGE_ORDER): New flag.
7861 (reverse_storage_order_for_component_p): New inline predicate.
7862 (storage_order_barrier_p): Likewise.
7863 (get_inner_reference): Adjust prototype.
7864 * varasm.c: Include expmed.h.
7865 (assemble_variable_contents): Adjust call to output_constant.
7866 (assemble_real): Add REVERSE parameter. Flip the storage
7867 order of the value if REVERSE is true.
7868 (compare_constant) <CONSTRUCTOR>: Compare TYPE_REVERSE_STORAGE_ORDER.
7869 (assemble_constant_contents): Adjust call to output_constant.
7870 (output_constant_pool_2): Adjust call to assemble_real.
7871 (initializer_constant_valid_p_1) <CONSTRUCTOR>: Deal with
7872 TYPE_REVERSE_STORAGE_ORDER.
7873 (initializer_constant_valid_p): Add REVERSE parameter.
7874 (output_constant): Add REVERSE parameter.
7875 <INTEGER_TYPE>: Flip the storage order of the value if REVERSE is true.
7876 <REAL_TYPE>: Adjust call to assemble_real.
7877 <COMPLEX_TYPE>: Pass it to recursive calls.
7878 <ARRAY_TYPE>: Likewise. Adjust call to output_constructor.
7879 <RECORD_TYPE>: Likewise. Adjust call to output_constructor.
7880 (struct oc_local_state): Add REVERSE field.
7881 (output_constructor_array_range): Adjust calls to output_constant.
7882 (output_constructor_regular_field): Likewise.
7883 (output_constructor_bitfield): Adjust call to output_constructor.
7884 Flip the storage order of the value if REVERSE is true.
7885 (output_constructor): Add REVERSE parameter. Set it to true for an
7886 aggregate type with TYPE_REVERSE_STORAGE_ORDER. Adjust call to
7887 output_constructor_bitfield.
7888 * varasm.h (initializer_constant_valid_p): Default REVERSE to false.
7889 * asan.c (instrument_derefs): Adjust call to get_inner_reference.
7890 * builtins.c (get_object_alignment_2): Likewise.
7891 * cfgexpand.c (expand_debug_expr): Adjust call to get_inner_reference
7892 and get_ref_base_and_extent.
7893 * dbxout.c (dbxout_expand_expr): Likewise.
7894 * dwarf2out.c (add_var_loc_to_decl): Likewise.
7895 (loc_list_for_address_of_addr_expr_of_indirect_ref): Likewise.
7896 (loc_list_from_tree): Likewise.
7897 (fortran_common): Likewise.
7898 * gimple-fold.c (gimple_fold_builtin_memory_op): Adjust calls to
7899 get_ref_base_and_extent.
7900 (get_base_constructor): Likewise.
7901 (fold_const_aggregate_ref_1): Likewise.
7902 * gimple-laddress.c (pass_laddress::execute): Adjust call to
7903 get_inner_reference.
7904 * gimple-ssa-strength-reduction.c (slsr_process_ref): Adjust call to
7905 get_inner_reference and bail out on reverse storage order.
7906 * ifcvt.c (noce_emit_move_insn): Adjust calls to store_bit_field.
7907 * ipa-cp.c (ipa_get_jf_ancestor_result): Adjust call to
7908 build_ref_for_offset.
7909 * ipa-polymorphic-call.c (set_by_invariant): Adjust call to
7910 get_ref_base_and_extent.
7911 (ipa_polymorphic_call_context): Likewise.
7912 (extr_type_from_vtbl_ptr_store): Likewise.
7913 (check_stmt_for_type_change): Likewise.
7914 (get_dynamic_type): Likewise.
7915 * ipa-prop.c (ipa_load_from_parm_agg_1): Adjust call to
7916 get_ref_base_and_extent.
7917 (compute_complex_assign_jump_func): Likewise.
7918 (get_ancestor_addr_info): Likewise.
7919 (compute_known_type_jump_func): Likewise.
7920 (determine_known_aggregate_parts): Likewise.
7921 (ipa_get_adjustment_candidate): Likewise.
7922 (ipa_modify_call_arguments): Set REF_REVERSE_STORAGE_ORDER on MEM_REF.
7923 * ipa-prop.h (ipa_parm_adjustment): Add REVERSE field.
7924 (build_ref_for_offset): Adjust prototype.
7925 * simplify-rtx.c (delegitimize_mem_from_attrs): Adjust call to
7926 get_inner_reference.
7927 * tree-affine.c (tree_to_aff_combination): Adjust call to
7928 get_inner_reference.
7929 (get_inner_reference_aff): Likewise.
7930 * tree-data-ref.c (split_constant_offset_1): Likewise.
7931 (dr_analyze_innermost): Likewise. Bail out if reverse storage order.
7932 * tree-scalar-evolution.c (interpret_rhs_expr): Adjust call to
7933 get_inner_reference.
7934 * tree-sra.c (struct access): Add REVERSE and move WRITE around.
7935 (dump_access): Print new fields.
7936 (create_access): Adjust call to get_ref_base_and_extent and set the
7937 REVERSE flag according to the result.
7938 (completely_scalarize_record): Set the REVERSE flag.
7939 (scalarize_elem): Add REVERSE parameter.
7940 (build_access_from_expr_1): Preserve storage order barriers.
7941 (build_accesses_from_assign): Likewise.
7942 (build_ref_for_offset): Add REVERSE parameter and set the
7943 REF_REVERSE_STORAGE_ORDER flag accordingly.
7944 (build_ref_for_model): Adjust call to build_ref_for_offset and clear
7945 the REF_REVERSE_STORAGE_ORDER flag if there are components.
7946 (analyze_access_subtree): Likewise.
7947 (create_artificial_child_access): Set the REVERSE flag.
7948 (get_access_for_expr): Adjust call to get_ref_base_and_extent.
7949 (turn_representatives_into_adjustments): Propagate REVERSE flag.
7950 (ipa_sra_check_caller): Adjust call to get_inner_reference.
7951 * tree-ssa-alias.c (ao_ref_base): Adjust call to
7952 get_ref_base_and_extent.
7953 (aliasing_component_refs_p): Likewise.
7954 (stmt_kills_ref_p_1): Likewise.
7955 * tree-ssa-dce.c (mark_aliased_reaching_defs_necessary_1): Likewise.
7956 * tree-ssa-loop-ivopts.c (may_be_nonaddressable_p) <MEM_REF>: New.
7957 Return true if reverse storage order.
7958 <BIT_FIELD_REF>: Likewise.
7959 <COMPONENT_REF>: Likewise.
7960 <ARRAY_REF>: Likewise.
7961 <ARRAY_RANGE_REF>: Likewise.
7962 (split_address_cost): Likewise. Bail out if reverse storage order.
7963 * tree-ssa-math-opts.c (find_bswap_or_nop_load): Adjust call to
7964 get_inner_reference. Bail out if reverse storage order.
7965 (bswap_replace): Adjust call to get_inner_reference.
7966 * tree-ssa-pre.c (create_component_ref_by_pieces_1) <MEM_REF>: Set
7967 the REF_REVERSE_STORAGE_ORDER flag.
7968 <BIT_FIELD_REF>: Likewise.
7969 * tree-ssa-sccvn.c (vn_reference_eq): Return false on storage order
7970 barriers.
7971 (copy_reference_ops_from_ref) <MEM_REF>: Set REVERSE field according
7972 to the REF_REVERSE_STORAGE_ORDER flag.
7973 <BIT_FIELD_REF>: Likewise.
7974 <VIEW_CONVERT_EXPR>: Set it for storage order barriers.
7975 (contains_storage_order_barrier_p): New predicate.
7976 (vn_reference_lookup_3): Adjust calls to get_ref_base_and_extent.
7977 Punt on storage order barriers if necessary.
7978 * tree-ssa-sccvn.h (struct vn_reference_op_struct): Add REVERSE.
7979 * tree-ssa-structalias.c (get_constraint_for_component_ref): Adjust
7980 call to get_ref_base_and_extent.
7981 (do_structure_copy): Likewise.
7982 * tree-vect-data-refs.c (vect_check_gather): Adjust call to
7983 get_inner_reference.
7984 (vect_analyze_data_refs): Likewise. Bail out if reverse storage order.
7985 * tsan.c (instrument_expr): Adjust call to get_inner_reference.
7986 * ubsan.c (instrument_bool_enum_load): Likewise.
7987 (instrument_object_size): Likewise.
7988 * var-tracking.c (track_expr_p): Adjust call to
7989 get_ref_base_and_extent.
7990 * config/mips/mips.c (r10k_safe_mem_expr_p): Adjust call to
7991 get_inner_reference.
7992 * config/s390/s390.c (s390_expand_atomic): Adjust call to
7993 store_bit_field.
7994 * config/tilegx/tilegx.c (tilegx_expand_unaligned_load): Adjust call to
7995 extract_bit_field.
7996 * config/tilepro/tilepro.c (tilepro_expand_unaligned_load): Likewise.
7997
7998 2015-11-07 Eric Botcazou <ebotcazou@adacore.com>
7999
8000 * config/sparc/sparc.opt (mfix-at697f): Add final period.
8001
8002 2015-11-07 Segher Boessenkool <segher@kernel.crashing.org>
8003
8004 PR rtl-optimization/67864
8005 * common/config/i386/i386-common.c (ix86_option_optimization_table)
8006 <OPT_freorder_blocks_algorithm_>: Use REORDER_BLOCKS_ALGORITHM_STC
8007 at -Os and up.
8008
8009 2015-11-07 Richard Sandiford <richard.sandiford@arm.com>
8010
8011 * trans-mem.c (is_tm_pure_call): Use gimple_call_flags for
8012 internal functions.
8013
8014 2015-11-07 Richard Sandiford <richard.sandiford@arm.com>
8015
8016 * builtins.def: #undef DEF_BUILTIN and DEF_BUILTIN_CHKP
8017 * builtins.c, genmatch.c, tree-core.h: Don't undef them here.
8018
8019 2015-11-07 Richard Sandiford <richard.sandiford@arm.com>
8020
8021 * internal-fn.def: #undef DEF_INTERNAL_FN at the end.
8022 * internal-fn.c: Don't undef it here.
8023 * tree-core.h: Likewise.
8024
8025 2015-11-07 Richard Sandiford <richard.sandiford@arm.com>
8026
8027 * builtins.c (fold_builtin_nan): Delete.
8028 (fold_builtin_memcmp): Remove case where both arguments are constant.
8029 (fold_builtin_strcmp, fold_builtin_strncmp): Likewise.
8030 (fold_builtin_strspn, fold_builtin_strcspn): Likewise.
8031 (fold_builtin_1): Remove BUILT_IN_NAN* handling.
8032 * fold-const-call.c: Include fold-const.h.
8033 (host_size_t_cst_p): New function.
8034 (build_cmp_result, fold_const_builtin_nan): Likewise.
8035 (fold_const_call_1): New function, split out from...
8036 (fold_const_call): ...here (for all three interfaces). Handle
8037 constant nan, nans, strlen, strcmp, strncmp, strspn and strcspn.
8038
8039 2015-11-07 Richard Sandiford <richard.sandiford@arm.com>
8040
8041 * builtins.c (fold_builtin_bitop, fold_builtin_bswap): Delete.
8042 (fold_builtin_1): Don't call them.
8043 * fold-const-call.c: Include tm.h.
8044 (fold_const_call_ss): New variant for integer-to-integer folds.
8045 (fold_const_call): Call it.
8046
8047 2015-11-07 Richard Sandiford <richard.sandiford@arm.com>
8048
8049 * builtins.c (fold_builtin_classify): Move constant cases to...
8050 * fold-const-call.c (fold_const_call_ss): ...here.
8051
8052 2015-11-07 Richard Sandiford <richard.sandiford@arm.com>
8053
8054 * builtins.h (c_getstr): Move to...
8055 * fold-const.h (c_getstr): ...here.
8056 * builtins.c (c_getstr): Move to...
8057 * fold-const.c (c_getstr): ...here.
8058
8059 2015-11-07 Richard Sandiford <richard.sandiford@arm.com>
8060
8061 * builtins.def (BUILTIN_RINT, BUILTIN_RINTF, BUILTIN_RINTL): Use
8062 ATTR_MATHFN_FPROUNDING rather than ATTR_MATHFN_FPROUNDING_ERRNO.
8063
8064 2015-11-07 Richard Sandiford <richard.sandiford@arm.com>
8065
8066 * tree-call-cdce.c (shrink_wrap_one_built_in_call): Try to update
8067 the dominance info; free it if we can't.
8068 (pass_call_cdce::execute): Don't free the dominance info here.
8069
8070 2015-11-06 Jeff Law <law@redhat.com>
8071
8072 * tree-ssa-threadedge.c (dummy_simplify): Remove.
8073 (thread_around_empty_blocks): Remove backedge_seen_p argument.
8074 If we thread to a backedge, then return false. Update recursive
8075 call to eliminate backedge_seen_p argument.
8076 (thread_through_normal_block): Remove backedge_seen_p argument.
8077 Remove backedge_seen_p argument from calls to
8078 thread_around_empty_blocks. Remove checks on backedge_seen_p.
8079 If we thread to a backedge, then return 0.
8080 (thread_across_edge): Remove bookkeeping for backedge_seen. Don't
8081 pass it to thread_through_normal_block or thread_through_empty_blocks.
8082 For joiner handling, if we see a backedge, do not try normal
8083 threading.
8084
8085 2015-11-06 Abderrazek Zaafrani <a.zaafrani@samsung.com>
8086
8087 * graphite-optimize-isl.c (optimize_isl): Call isl_union_map_is_equal.
8088 * graphite-poly.c (new_scop): Initialize original_schedule.
8089 (free_scop): Free original_schedule.
8090 * graphite-poly.h (struct scop): Add field original_schedule.
8091 * graphite-sese-to-poly.c (build_scop_original_schedule): New.
8092 (build_poly_scop): Call build_scop_original_schedule.
8093
8094 2015-11-06 Abderrazek Zaafrani <a.zaafrani@samsung.com>
8095
8096 * graphite-sese-to-poly.c (build_pbb_scattering_polyhedrons): Remove.
8097 (build_pbb_minimal_scattering_polyhedrons): New.
8098 (build_scop_scattering): Remove.
8099 (build_scop_minimal_scattering): New.
8100 (build_scop_scattering): Call build_pbb_minimal_scattering_polyhedrons.
8101 (build_poly_scop): Call build_scop_minimal_scattering.
8102
8103 2015-11-06 Jeff Law <law@redhat.com>
8104
8105 * cfg-flags.def (IGNORE): New edge flag.
8106 * tree-vrp.c (identify_jump_threads): Mark and clear edges
8107 scheduled for removal with EDGE_IGNORE around call into
8108 jump threader. Do no thread across edges with EDGE_IGNORE,
8109 but do allow threading across those with EDGE_DFS_BACK.
8110
8111 2015-11-06 David Wohlferd <dw@LimeGreenSocks.com>
8112
8113 * doc/md.texi (multi-alternative constraints): Don't document
8114 alternatives inherently tied to reload for the user documentation.
8115
8116 2015-11-06 Michael Collison <michael.collison@linaro.org>
8117 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
8118
8119 Revert:
8120 2015-08-01 Michael Collison <michael.collison@linaro.org
8121 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
8122
8123 * config/arm/arm.md (*arm_smin_cmp): New pattern.
8124 (*arm_umin_cmp): Likewise.
8125
8126 2015-11-06 Jakub Jelinek <jakub@redhat.com>
8127
8128 * gimplify.c (gimplify_omp_ordered): Fix up diagnostics wording.
8129 * omp-low.c (check_omp_nesting_restrictions): Update for the
8130 various new OpenMP 4.5 nesting restrictions, clarified
8131 nesting glossary, closely nested region relationship clarified
8132 to mean explicit or implicit parallel regions (target/teams),
8133 use %</%> or %qs where appropriate.
8134
8135 2015-11-06 Aditya Kumar <aditya.k7@samsung.com>
8136 Sebastian Pop <s.pop@samsung.com>
8137
8138 * graphite-scop-detection.c (loop_is_valid_scop): Call
8139 optimize_loop_nest_for_speed_p.
8140
8141 2015-11-06 Aditya Kumar <aditya.k7@samsung.com>
8142 Sebastian Pop <s.pop@samsung.com>
8143
8144 * graphite-optimize-isl.c (optimize_isl): Call
8145 isl_options_set_schedule_maximize_band_depth.
8146
8147 2015-11-06 Aditya Kumar <aditya.k7@samsung.com>
8148 Sebastian Pop <s.pop@samsung.com>
8149
8150 * graphite-scop-detection.c (scop_detection::merge_sese): Entry
8151 and exit edges should not be a part of irreducible loop.
8152 (scop_detection::can_represent_loop_1): Loops should not be
8153 irreducible.
8154 (scop_detection::harmful_stmt_in_region): All the basic block
8155 should belong to reducible loops.
8156
8157 2015-11-06 Christophe Lyon <christophe.lyon@linaro.org>
8158
8159 * config/aarch64/aarch64-simd-builtins.def: Update builtins
8160 tables: add tbl3v16qi, qtbl[34]*, tbx4v16qi, qtbx[34]*.
8161 * config/aarch64/aarch64-simd.md (aarch64_tbl3v8qi): Rename to...
8162 (aarch64_tbl3<mode>) ... this, which supports v16qi too.
8163 (aarch64_tbx4v8qi): Rename to...
8164 aarch64_tbx4<mode>): ... this.
8165 (aarch64_qtbl3<mode>): New pattern.
8166 (aarch64_qtbx3<mode>): New pattern.
8167 (aarch64_qtbl4<mode>): New pattern.
8168 (aarch64_qtbx4<mode>): New pattern.
8169 * config/aarch64/arm_neon.h (vqtbl2_s8, vqtbl2_u8, vqtbl2_p8)
8170 (vqtbl2q_s8, vqtbl2q_u8, vqtbl2q_p8, vqtbl3_s8, vqtbl3_u8)
8171 (vqtbl3_p8, vqtbl3q_s8, vqtbl3q_u8, vqtbl3q_p8, vqtbl4_s8)
8172 (vqtbl4_u8, vqtbl4_p8, vqtbl4q_s8, vqtbl4q_u8, vqtbl4q_p8)
8173 (vqtbx2_s8, vqtbx2_u8, vqtbx2_p8, vqtbx2q_s8, vqtbx2q_u8)
8174 (vqtbx2q_p8, vqtbx3_s8, vqtbx3_u8, vqtbx3_p8, vqtbx3q_s8)
8175 (vqtbx3q_u8, vqtbx3q_p8, vqtbx4_s8, vqtbx4_u8, vqtbx4_p8)
8176 (vqtbx4q_s8, vqtbx4q_u8, vqtbx4q_p8): Rewrite using builtin
8177 functions.
8178
8179 2015-11-06 Mike Stump <mikestump@comcast.net>
8180
8181 PR debug/66728
8182 * dwarf2out.c (get_full_len): Return a value based upon the actual
8183 precision needed for the value.
8184 (add_const_value_attribute): Use a maximal wide-int for
8185 CONST_WIDE_INTs, not VOIDmode.
8186 (output_die): Don't ever output NULL with printf.
8187
8188 * rtl.h (get_precision of rtx_mode_t): Ensure we never process
8189 BLKmode nor VOIDmode values.
8190
8191 2015-11-06 David Malcolm <dmalcolm@redhat.com>
8192
8193 * diagnostic-color.c (color_dict): Eliminate "caret"; add "range1"
8194 and "range2".
8195 (parse_gcc_colors): Update comment to describe default GCC_COLORS.
8196 * diagnostic-core.h (warning_at_rich_loc): New declaration.
8197 (error_at_rich_loc): New declaration.
8198 (permerror_at_rich_loc): New declaration.
8199 (inform_at_rich_loc): New declaration.
8200 * diagnostic-show-locus.c (adjust_line): Delete.
8201 (struct point_state): New struct.
8202 (class colorizer): New class.
8203 (class layout_point): New class.
8204 (class layout_range): New class.
8205 (struct line_bounds): New.
8206 (class layout): New class.
8207 (colorizer::colorizer): New ctor.
8208 (colorizer::~colorizer): New dtor.
8209 (layout::layout): New ctor.
8210 (layout::print_source_line): New method.
8211 (layout::print_annotation_line): New method.
8212 (layout::get_state_at_point): New method.
8213 (layout::get_x_bound_for_row): New method.
8214 (diagnostic_show_locus): Reimplement in terms of class layout.
8215 (diagnostic_print_caret_line): Delete.
8216 * diagnostic.c (diagnostic_initialize): Replace
8217 MAX_LOCATIONS_PER_MESSAGE with rich_location::MAX_RANGES.
8218 (diagnostic_set_info_translated): Convert param from location_t
8219 to rich_location *. Eliminate calls to set_location on the
8220 message in favor of storing the rich_location ptr there.
8221 (diagnostic_set_info): Convert param from location_t to
8222 rich_location *.
8223 (diagnostic_build_prefix): Break out array into...
8224 (diagnostic_kind_color): New variable.
8225 (diagnostic_get_color_for_kind): New function.
8226 (diagnostic_report_diagnostic): Colorize the option_text
8227 using the color for the severity.
8228 (diagnostic_append_note): Update for change in signature of
8229 diagnostic_set_info.
8230 (diagnostic_append_note_at_rich_loc): New function.
8231 (emit_diagnostic): Update for change in signature of
8232 diagnostic_set_info.
8233 (inform): Likewise.
8234 (inform_at_rich_loc): New function.
8235 (inform_n): Update for change in signature of diagnostic_set_info.
8236 (warning): Likewise.
8237 (warning_at): Likewise.
8238 (warning_at_rich_loc): New function.
8239 (warning_n): Update for change in signature of diagnostic_set_info.
8240 (pedwarn): Likewise.
8241 (permerror): Likewise.
8242 (permerror_at_rich_loc): New function.
8243 (error): Update for change in signature of diagnostic_set_info.
8244 (error_n): Likewise.
8245 (error_at): Likewise.
8246 (error_at_rich_loc): New function.
8247 (sorry): Update for change in signature of diagnostic_set_info.
8248 (fatal_error): Likewise.
8249 (internal_error): Likewise.
8250 (internal_error_no_backtrace): Likewise.
8251 (source_range::debug): New function.
8252 * diagnostic.h (struct diagnostic_info): Eliminate field
8253 "override_column". Add field "richloc".
8254 (struct diagnostic_context): Add field "colorize_source_p".
8255 (diagnostic_override_column): Delete.
8256 (diagnostic_set_info): Convert param from location_t to
8257 rich_location *.
8258 (diagnostic_set_info_translated): Likewise.
8259 (diagnostic_append_note_at_rich_loc): New function.
8260 (diagnostic_num_locations): New function.
8261 (diagnostic_expand_location): Get the location from the
8262 rich_location.
8263 (diagnostic_print_caret_line): Delete.
8264 (diagnostic_get_color_for_kind): New declaration.
8265 * genmatch.c (linemap_client_expand_location_to_spelling_point): New.
8266 (error_cb): Update for change in signature of "error" callback.
8267 (fatal_at): Likewise.
8268 (warning_at): Likewise.
8269 * input.c (linemap_client_expand_location_to_spelling_point): New.
8270 * pretty-print.c (text_info::set_range): New method.
8271 (text_info::get_location): New method.
8272 * pretty-print.h (MAX_LOCATIONS_PER_MESSAGE): Eliminate this macro.
8273 (struct text_info): Eliminate "locations" array in favor of
8274 "m_richloc", a rich_location *.
8275 (textinfo::set_location): Add a "caret_p" param, and reimplement
8276 in terms of a call to set_range.
8277 (textinfo::get_location): Eliminate inline implementation in favor of
8278 an out-of-line reimplementation.
8279 (textinfo::set_range): New method.
8280 * rtl-error.c (diagnostic_for_asm): Update for change in signature
8281 of diagnostic_set_info.
8282 * tree-diagnostic.c (default_tree_printer): Update for new
8283 "caret_p" param for textinfo::set_location.
8284 * tree-pretty-print.c (percent_K_format): Likewise.
8285
8286 2015-11-06 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
8287
8288 Properly apply.
8289 2015-11-05 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
8290 * config/aarch64/aarch64.c
8291 (aarch64_can_use_per_function_literal_pools_p): New.
8292 (aarch64_use_blocks_for_constant_p): Adjust declaration
8293 and use aarch64_can_use_function_literal_pools_p.
8294 (aarch64_select_rtx_section): Update.
8295
8296 2015-11-06 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
8297
8298 * config/arm/arm-ldmstm.ml: Rewrite to generate unified asm templates.
8299 * config/arm/arm.c (arm_asm_trampoline_template): Make unified asm safe.
8300 (arm_output_multireg_pop): Likewise.
8301 (output_move_double): Likewise.
8302 (output_move_quad): Likewise.
8303 (output_return_instruction): Likewise.
8304 (arm_print_operand): Remove support for %( and %. print modifiers.
8305 (arm_output_shift): Make unified asm.
8306 (arm_declare_function_name): Likewise.
8307 * config/arm/arm.h (TARGET_UNIFIED_ASM): Delete.
8308 (ASM_APP_OFF): Adjust.
8309 (ASM_OUTPUT_REG_PUSH): Undo special casing for TARGET_ARM.
8310 (ASM_OUTPUT_REG_POP): Likewise.
8311 * config/arm/arm.md: Adjust uses of %., %(, %)
8312 * config/arm/sync.md: Likewise.
8313 * config/arm/thumb2.md: Likewise.
8314 * config/arm/ldmstm.md: Regenerate.
8315 * config/arm/arm.opt (masm-unified-syntax): Do not special case Thumb.
8316 * doc/invoke.texi (masm-unified-syntax): Update documentation.
8317
8318 2015-11-06 David Malcolm <dmalcolm@redhat.com>
8319
8320 * input.c (dump_line_table_statistics): Dump stats on adhoc table.
8321
8322 2015-11-07 Jan Hubicka <hubicka@ucw.cz>
8323
8324 * tree-core.h (size_type_kind): Remove OEP_CONSTANT_ADDRESS_OF and
8325 add OEP_MATCH_SIDE_EFFECTS.
8326 * fold-const.c (operand_equal_p): Update documentation; handle
8327 OEP_MATCH_SIDE_EFFECTS.
8328 * tree-ssa-tail-merge.c (gimple_operand_equal_value_p): Use
8329 OEP_MATCH_SIDE_EFFECTS.
8330
8331 2015-11-06 Benedikt Huber <benedikt.huber@theobroma-systems.com>
8332 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
8333
8334 * config/aarch64/aarch64-builtins.c: Builtins for rsqrt and rsqrtf.
8335 * config/aarch64/aarch64-protos.h: Declare.
8336 * config/aarch64/aarch64-simd.md: Matching expressions for frsqrte and
8337 frsqrts.
8338 * config/aarch64/aarch64-tuning-flags.def: Added recip_sqrt.
8339 * config/aarch64/aarch64.c: New functions. Emit rsqrt estimation
8340 code when applicable.
8341 * config/aarch64/aarch64.md: Added enum entries.
8342 * config/aarch64/aarch64.opt: Added option -mlow-precision-recip-sqrt.
8343
8344 2015-11-07 Jan Hubicka <hubicka@ucw.cz>
8345
8346 PR ipa/68057
8347 PR ipa/68220
8348 * ipa-polymorphic-call.c
8349 (ipa_polymorphic_call_context::restrict_to_inner_type): Fix ordering
8350 issue when offset is out of range.
8351 (contains_type_p): Fix out of range check, clear dynamic flag.
8352
8353 2015-11-06 Arnout Vandecappelle <arnout@mind.be>
8354
8355 * config.gcc (e6500): Fix cpu_is_64bit typo.
8356
8357 2015-11-06 Alan Lawrence <alan.lawrence@arm.com>
8358
8359 * tree-sra.c (completely_scalarize): Properly handle negative array
8360 indices using offset_int.
8361
8362 2015-11-06 Richard Biener <rguenther@suse.de>
8363
8364 * alloc-pool.h (object_allocator::allocate): Default-initialize
8365 object.
8366
8367 2015-11-06 Richard Biener <rguenther@suse.de>
8368
8369 * tree-ssa-sccvn.c (class sccvn_dom_walker): Add destructor.
8370 * lra.c (init_reg_info): Truncate copy_vec instead of
8371 re-allocating a new one and leaking the old.
8372 * ipa-inline-analysis.c (estimate_function_body_sizes): Free
8373 bb_infos vec.
8374 * sched-deps.c (sched_deps_finish): Free the dn/dl pools.
8375 * postreload-gcse.c (free_mem): Free modify_mem_list and
8376 canon_modify_mem_list.
8377
8378 2015-11-06 Ilya Enkovich <enkovich.gnu@gmail.com>
8379
8380 PR tree-optimization/68145
8381 * tree-vect-stmts.c (vectorizable_operation): Fix
8382 determination for booleans.
8383
8384 2015-11-06 Tom de Vries <tom@codesourcery.com>
8385
8386 * tree-cfg.c (gimple_split_block_before_cond_jump): Split before
8387 cond_jump, instead of split after last nondebug insn before cond_jump.
8388 * tree-parloops.c (transform_to_exit_first_loop_alt): Verify ssa before
8389 returning.
8390
8391 2015-11-06 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
8392
8393 PR target/68088
8394 * config/arm/aarch-common.c (aarch_accumulator_forwarding): Strip
8395 subregs from accumulator and make sure it's a register.
8396
8397 2015-11-06 Simon Dardis <simon.dardis@imgtec.com>
8398
8399 * config/mips/loongson.md (vec_loongson_extract_lo_<mode>): New, extract
8400 low part to scalar.
8401 (reduc_uplus_<mode>): Remove.
8402 (reduc_plus_scal_<mode>): Rename from reduc_splus_<mode>, Use vec
8403 loongson_extract_lo_<mode>.
8404 (reduc_smax_scal_<mode>, reduc_smin_scal_<mode>): Rename from
8405 reduc_smax_<mode>, reduc_smax_<mode>, use vec
8406 loongson_extract_lo_<mode>.
8407 (reduc_umax_scal_<mode>, reduc_umin_scal_<mode>): Rename.
8408
8409 2015-11-06 Richard Biener <rguenther@suse.de>
8410
8411 * tree-vectorizer.h (struct _bb_vec_info): Add region_begin/end
8412 members.
8413 (vect_stmt_in_region_p): Declare.
8414 * tree-vect-slp.c (new_bb_vec_info): Work on a region.
8415 (destroy_bb_vec_info): Likewise.
8416 (vect_bb_slp_scalar_cost): Use vect_stmt_in_region_p.
8417 (vect_get_and_check_slp_defs): Likewise.
8418 (vect_slp_analyze_bb_1): Refactor to make it work on sub-BBs.
8419 (vect_slp_bb): Likewise.
8420 * tree-vect-patterns.c (vect_same_loop_or_bb_p): Implement
8421 in terms of vect_stmt_in_region_p.
8422 (vect_pattern_recog): Iterate over the BB region.
8423 * tree-vect-stmts.c (vect_is_simple_use): Use vect_stmt_in_region_p.
8424 * tree-vectorizer.c (vect_stmt_in_region_p): New function.
8425 (pass_slp_vectorize::execute): Initialize all stmt UIDs to -1.
8426 * config/i386/i386.c: Include gimple-iterator.h.
8427 * config/aarch64/aarch64.c: Likewise.
8428
8429 2015-11-06 Alexandre Oliva <aoliva@redhat.com>
8430
8431 PR rtl-optimization/67753
8432 PR rtl-optimization/64164
8433 * function.c (assign_parm_setup_block): Avoid allocating a
8434 stack slot if we don't have an ABI-reserved one. Emit the
8435 copy to target_reg in the conversion seq if the copy from
8436 entry_parm is in it too. Don't use the conversion seq to copy
8437 a PARALLEL to a REG or a CONCAT.
8438
8439 2015-11-06 Richard Biener <rguenther@suse.de>
8440
8441 * tree-hash-traits.h (tree_operand_hash): Provide equal, not
8442 equal_keys.
8443
8444 2015-11-05 Cesar Philippidis <cesar@codesourcery.com>
8445 Thomas Schwinge <thomas@codesourcery.com>
8446 James Norris <jnorris@codesourcery.com>
8447
8448
8449 * gimplify.c (gimplify_scan_omp_clauses): Add support for
8450 OMP_CLAUSE_TILE. Update handling of OMP_CLAUSE_INDEPENDENT.
8451 (gimplify_adjust_omp_clauses): Likewise.
8452 * omp-low.c (scan_sharing_clauses): Add support for OMP_CLAUSE_TILE.
8453 * tree-core.h (enum omp_clause_code): Add OMP_CLAUSE_TILE.
8454 * tree-pretty-print.c (dump_omp_clause): Handle OMP_CLAUSE_TILE.
8455 * tree.c (omp_clause_num_ops): Add an entry for OMP_CLAUSE_TILE.
8456 (omp_clause_code_name): Likewise.
8457 (walk_tree_1): Handle OMP_CLAUSE_TILE.
8458 * tree.h (OMP_TILE_LIST): New macro.
8459
8460 2015-11-05 Martin Sebor <msebor@redhat.com>
8461
8462 PR c++/67942
8463 * doc/invoke.texi (-Wplacement-new): Document new option.
8464
8465 2015-11-05 Alan Lawrence <alan.lawrence@arm.com>
8466
8467 PR tree-optimization/65963
8468 * tree-scalar-evolution.c (interpret_rhs_expr): Try to handle
8469 LSHIFT_EXPRs as equivalent unsigned MULT_EXPRs.
8470
8471 2015-11-05 James Greenhalgh <james.greenhalgh@arm.com>
8472
8473 * ifcvt.c (bb_ok_for_noce_convert_multiple_sets): New.
8474 (noce_convert_multiple_sets): Likewise.
8475 (noce_process_if_block): Call them.
8476
8477 2015-11-05 Nathan Sidwell <nathan@codesourcery.com>
8478
8479 * gimple-fold.c: Include omp-low.h.
8480 (fold_internal_goacc_dim): New.
8481 (gimple_fold_call): Call it.
8482
8483 2015-11-05 Jakub Jelinek <jakub@redhat.com>
8484 Ilya Verbin <ilya.verbin@intel.com>
8485
8486 * builtin-types.def
8487 (BT_FN_VOID_INT_OMPFN_SIZE_PTR_PTR_PTR_UINT_PTR): Remove.
8488 (BT_FN_VOID_INT_OMPFN_SIZE_PTR_PTR_PTR_UINT_PTR_INT_INT): New.
8489 * cgraph.h (enum cgraph_simd_clone_arg_type): Add
8490 SIMD_CLONE_ARG_TYPE_LINEAR_REF_VARIABLE_STEP,
8491 SIMD_CLONE_ARG_TYPE_LINEAR_UVAL_VARIABLE_STEP and
8492 SIMD_CLONE_ARG_TYPE_LINEAR_VAL_VARIABLE_STEP.
8493 (struct cgraph_simd_clone_arg): Adjust comment.
8494 * omp-builtins.def (BUILT_IN_GOMP_TARGET): Rename GOMP_target_41
8495 to GOMP_target_ext. Add num_teams and thread_limit arguments.
8496 (BUILT_IN_GOMP_TARGET_DATA): Rename GOMP_target_data_41
8497 to GOMP_target_data_ext.
8498 (BUILT_IN_GOMP_TARGET_UPDATE): Rename GOMP_target_update_41
8499 to GOMP_target_update_ext.
8500 (BUILT_IN_GOMP_LOOP_NONMONOTONIC_DYNAMIC_START,
8501 BUILT_IN_GOMP_LOOP_NONMONOTONIC_GUIDED_START,
8502 BUILT_IN_GOMP_LOOP_NONMONOTONIC_DYNAMIC_NEXT,
8503 BUILT_IN_GOMP_LOOP_NONMONOTONIC_GUIDED_NEXT,
8504 BUILT_IN_GOMP_LOOP_ULL_NONMONOTONIC_DYNAMIC_START,
8505 BUILT_IN_GOMP_LOOP_ULL_NONMONOTONIC_GUIDED_START,
8506 BUILT_IN_GOMP_LOOP_ULL_NONMONOTONIC_DYNAMIC_NEXT,
8507 BUILT_IN_GOMP_LOOP_ULL_NONMONOTONIC_GUIDED_NEXT,
8508 BUILT_IN_GOMP_PARALLEL_LOOP_NONMONOTONIC_DYNAMIC,
8509 BUILT_IN_GOMP_PARALLEL_LOOP_NONMONOTONIC_GUIDED): New built-ins.
8510 * tree-core.h (enum omp_clause_schedule_kind): Add
8511 OMP_CLAUSE_SCHEDULE_MASK, OMP_CLAUSE_SCHEDULE_MONOTONIC,
8512 OMP_CLAUSE_SCHEDULE_NONMONOTONIC and change
8513 OMP_CLAUSE_SCHEDULE_LAST value.
8514 * tree.def (OMP_SIMD, CILK_SIMD, CILK_FOR, OMP_DISTRIBUTE,
8515 OMP_TASKLOOP, OACC_LOOP): Add OMP_FOR_ORIG_DECLS argument.
8516 * tree.h (OMP_FOR_ORIG_DECLS): Use OMP_LOOP_CHECK instead of
8517 OMP_FOR_CHECK. Remove comment.
8518 * tree-pretty-print.c (dump_omp_clause): Handle
8519 GOMP_MAP_FIRSTPRIVATE_REFERENCE and GOMP_MAP_ALWAYS_POINTER.
8520 Simplify. Print schedule clause modifiers.
8521 * tree-vect-stmts.c (vectorizable_simd_clone_call): Add
8522 SIMD_CLONE_ARG_TYPE_LINEAR_{REF,VAL,UVAL}_VARIABLE_STEP
8523 cases.
8524 * gimplify.c (enum gimplify_omp_var_data): Add GOVD_MAP_ALWAYS_TO.
8525 (omp_default_clause): Tweak for
8526 private/firstprivate/is_device_ptr variables on target
8527 construct and use_device_ptr on target data.
8528 (omp_check_private): Likewise.
8529 (omp_notice_variable): For references check whether what it refers
8530 to has mappable type, rather than the reference itself.
8531 (omp_is_private): Diagnose linear iteration variables on non-simd
8532 constructs.
8533 (omp_no_lastprivate): Return true only for Fortran.
8534 (gimplify_scan_omp_clauses): Or in GOVD_MAP_ALWAYS_TO for
8535 GOMP_MAP_ALWAYS_TO or GOMP_MAP_ALWAYS_TOFROM kinds.
8536 Add support for GOMP_MAP_FIRSTPRIVATE_REFERENCE and
8537 GOMP_MAP_ALWAYS_POINTER, remove old handling of structure element
8538 based array sections. Use GOMP_MAP_ALWAYS_P. Fix up handling of
8539 lastprivate and linear when combined with distribute. Gimplify
8540 variable low-bound for array reduction. Look through
8541 POINTER_PLUS_EXPR when looking for ADDR_EXPR for array section
8542 reductions.
8543 (gimplify_adjust_omp_clauses_1): For implicit references to
8544 variables with reference type and when not ref to scalar or
8545 ref to pointer, map what they refer to using tofrom and
8546 use GOMP_MAP_FIRSTPRIVATE_REFERENCE for the reference.
8547 (gimplify_adjust_omp_clauses): Remove GOMP_MAP_ALWAYS_POINTER
8548 from target exit data. Handle GOMP_MAP_FIRSTPRIVATE_REFERENCE.
8549 Drop OMP_CLAUSE_MAP_PRIVATE support. Use GOMP_MAP_ALWAYS_P.
8550 Diagnose the same var on both firstprivate and lastprivate on
8551 distribute construct.
8552 (gimplify_omp_for): Fix up handling of predetermined
8553 lastprivate or linear iter vars when combined with distribute.
8554 (find_omp_teams, computable_teams_clause, optimize_target_teams): New
8555 functions.
8556 (gimplify_omp_workshare): Call optimize_target_teams.
8557 * omp-low.c (struct omp_region): Add sched_modifiers field.
8558 (struct omp_for_data): Likewise.
8559 (omp_any_child_fn_dumped): New variable.
8560 (extract_omp_for_data): Fill in sched_modifiers, and mask out
8561 OMP_CLAUSE_SCHEDULE_KIND bits outside of OMP_CLAUSE_SCHEDULE_MASK
8562 from sched_kind.
8563 (determine_parallel_type): Use only OMP_CLAUSE_SCHEDULE_MASK
8564 bits of OMP_CLAUSE_SCHED_KIND.
8565 (scan_sharing_clauses): Handle GOMP_MAP_FIRSTPRIVATE_REFERENCE,
8566 drop OMP_CLAUSE_MAP_PRIVATE support. Look through POINTER_PLUS_EXPR
8567 for array section reductions.
8568 (add_taskreg_looptemp_clauses): Add one extra _looptemp_ clause even
8569 for distribute parallel for, if there are lastprivate clauses on the
8570 for.
8571 (lower_rec_input_clauses): Handle non-zero low-bound on array
8572 section reductions.
8573 (lower_reduction_clauses): Likewise.
8574 (lower_send_clauses): Look through POINTER_PLUS_EXPR
8575 for array section reductions.
8576 (expand_parallel_call): Use nonmonotonic entrypoints for
8577 nonmonotonic: dynamic/guided.
8578 (expand_omp_taskreg): Call assign_assembler_name_if_neeeded on
8579 child_fn if current_function_decl has assembler name set, but child_fn
8580 does not. Dump the header and IL of the child function when not in SSA
8581 form.
8582 (expand_omp_target): Likewise. Pass num_teams and thread_limit
8583 arguments to BUILT_IN_GOMP_TARGET.
8584 (expand_omp_for_static_nochunk, expand_omp_for_static_chunk):
8585 Initialize the extra _looptemp_ clause to fd->loop.n2.
8586 (expand_omp_for): Use nonmonotonic entrypoints for
8587 nonmonotonic: dynamic/guided. Initialize region->sched_modifiers.
8588 (expand_omp): Clear omp_any_child_fn_dumped. Dump function header
8589 again if we have dumped any child functions.
8590 (lower_omp_for_lastprivate): Determine the right count variable
8591 for distribute simd, or distribute parallel for{, simd}.
8592 (lower_omp_target): Handle GOMP_MAP_FIRSTPRIVATE_REFERENCE
8593 and GOMP_MAP_ALWAYS_POINTER. Drop OMP_CLAUSE_MAP_PRIVATE
8594 support.
8595 (simd_clone_clauses_extract): Handle variable step
8596 for references and arguments passed by reference.
8597 (simd_clone_mangle): Mangle ref/uval/val variable steps.
8598 (simd_clone_adjust_argument_types): Handle
8599 SIMD_CLONE_ARG_TYPE_LINEAR_UVAL_VARIABLE_STEP like
8600 SIMD_CLONE_ARG_TYPE_LINEAR_UVAL_CONSTANT_STEP and
8601 SIMD_CLONE_ARG_TYPE_LINEAR_VAL_VARIABLE_STEP like
8602 SIMD_CLONE_ARG_TYPE_LINEAR_VAL_CONSTANT_STEP.
8603 (simd_clone_linear_addend): New function.
8604 (simd_clone_adjust): Handle variable step like similarly
8605 to constant step, use simd_clone_linear_addend to determine
8606 the actual step at runtime.
8607
8608 2015-11-05 Nathan Sidwell <nathan@codesourcery.com>
8609
8610 * target.def (goacc.dim_limit): New hook.
8611 * targhooks.h (default_goacc_dim_limit): Declare.
8612 * doc/tm.texi.in (TARGET_GOACC_DIM_LIMIT): Add.
8613 * doc/tm.texi: Rebuilt.
8614 * omp-low.h (get_oacc_fn_dim_size, get_oacc_ifn_dim_arg): Declare.
8615 * omp-low.c (get_oacc_fn_dim_size, get_oacc_ifn_dim_arg): New.
8616 (default_goacc_dim_limit): New.
8617 * config/nvptx/nvptx.c (PTX_VECTOR_LENGTH, PTX_WORKER_LENGTH): New.
8618 (nvptx_goacc_dim_limit) New.
8619 (TARGET_GOACC_DIM_LIMIT): Override.
8620 * tree-vrp.c: Include omp-low.h, target.h.
8621 (extract_range_basic): Add handling for IFN_GOACC_DIM_SIZE &
8622 IFN_GOACC_DIM_POS.
8623
8624 2015-11-05 Ilya Enkovich <enkovich.gnu@gmail.com>
8625
8626 * tree-vect-generic.c (do_compare): Use -1 for true
8627 result instead of 1.
8628
8629 2015-11-05 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
8630
8631 * config/aarch64/aarch64.c
8632 (aarch64_can_use_per_function_literal_pools_p): New.
8633 (aarch64_use_blocks_for_constant_p): Adjust declaration
8634 and use aarch64_can_use_function_literal_pools_p.
8635 (aarch64_select_rtx_section): Update.
8636
8637 2015-11-05 Ilya Enkovich <enkovich.gnu@gmail.com>
8638
8639 * targhooks.c (default_get_mask_mode): Use BLKmode in
8640 case target doesn't support required vector mode.
8641 * stor-layout.c (layout_type); Check for BLKmode.
8642
8643 2015-11-04 Aditya Kumar <aditya.k7@samsung.com>
8644 Sebastian Pop <s.pop@samsung.com>
8645
8646 * graphite-isl-ast-to-gimple.c (gcc_expression_from_isl_ast_expr_id):
8647 Remove use of parameter_rename_map.
8648 (copy_def): Remove.
8649 (copy_internal_parameters): Remove.
8650 (graphite_regenerate_ast_isl): Remove call to copy_internal_parameters.
8651 * sese.c (new_sese_info): Do not initialize parameter_rename_map.
8652 (free_sese_info): Do not free parameter_rename_map.
8653 (set_rename): Do not use parameter_rename_map.
8654 (rename_uses): Update call to set_rename.
8655 (graphite_copy_stmts_from_block): Do not use parameter_rename_map.
8656 * sese.h (parameter_rename_map_t): Remove.
8657 (struct sese_info_t): Remove field parameter_rename_map.
8658
8659 2015-11-04 Aditya Kumar <aditya.k7@samsung.com>
8660 Sebastian Pop <s.pop@samsung.com>
8661
8662 * graphite-isl-ast-to-gimple.c: Include tree-cfg.h.
8663 (translate_isl_ast_node_user): Add more dumps: call print_loops_bb.
8664 * graphite-scop-detection.c (dot_all_scops_1): Moved out of
8665 anonymous namespace.
8666 * graphite-sese-to-poly.c (ssa_name_version_typesize): Remove.
8667 (isl_id_for_pbb): Use a buffer of size 10.
8668 (isl_id_for_ssa_name): Same.
8669 * sese.c (set_rename): Add more dumps.
8670
8671 2015-11-04 Nathan Sidwell <nathan@codesourcery.com>
8672
8673 * omp-low.c (struct omp_context): Remove reduction_map field.
8674 (lookup_oacc_reduction, maybe_lookup_oacc_reduction): Delete.
8675 (new_omp_context, delete_omp_context, scan_omp_target): Remove
8676 reduction_map handling.
8677 (lower_omp_target): Remove obsolete openacc reduction handling.
8678
8679 2015-11-04 Nathan Sidwell <nathan@codesourcery.com>
8680
8681 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims): Add checking.
8682
8683 2015-11-04 Nathan Sidwell <nathan@codesourcery.com>
8684 Cesar Philippidis <cesar@codesourcery.com>
8685
8686 * config/nvptx/nvptx.c: Include gimple headers.
8687 (worker_red_size, worker_red_align, worker_red_name,
8688 worker_red_sym): New.
8689 (nvptx_option_override): Initialize worker reduction buffer.
8690 (nvptx_file_end): Write out worker reduction buffer var.
8691 (nvptx_expand_shuffle, nvptx_expand_worker_addr,
8692 nvptx_expand_cmp_swap): New builtin expanders.
8693 (enum nvptx_builtins): New.
8694 (nvptx_builtin_decls): New.
8695 (nvptx_builtin_decl, nvptx_init_builtins, nvptx_expand_builtin): New
8696 (PTX_VECTOR_LENGTH, PTX_WORKER_LENGTH): New.
8697 (nvptx_get_worker_red_addr, nvptx_generate_vector_shuffle,
8698 nvptx_lockless_update): New helpers.
8699 (nvptx_goacc_reduction_setup, nvptx_goacc_reduction_init,
8700 nvptx_goacc_reduction_fini, nvptx_goacc_reduction_teaddown): New.
8701 (nvptx_goacc_reduction): New.
8702 (TARGET_INIT_BUILTINS, TARGET_EXPAND_BUILTIN,
8703 TARGET_BUILTIN_DECL): Override.
8704 (TARGET_GOACC_REDUCTION): Override.
8705
8706 2015-11-04 Nathan Sidwell <nathan@codesourcery.com>
8707 Cesar Philippidis <cesar@codesourcery.com>
8708
8709 * internal-fn.def (GOACC_REDUCTION): New.
8710 * internal-fn.h (enum ifn_goacc_reduction_kind): New.
8711 * internal-fn.c (expand_GOACC_REDUCTION): New.
8712 * target.def (goacc.reduction): New OpenACC hook.
8713 * targhooks.h (default_goacc_reduction): Declare.
8714 * doc/tm.texi.in: Add TARGET_GOACC_REDUCTION.
8715 * doc/tm.texi: Rebuilt.
8716 * omp-low.c (oacc_get_reduction_array_id, oacc_max_threads,
8717 scan_sharing_clauses): Remove oacc reduction handling here.
8718 (lower_rec_input_clauses): Don't handle OpenACC reductions here.
8719 (oacc_lower_reduction_var_helper): Delete.
8720 (lower_oacc_reductions): New.
8721 (lower_reduction_clauses): Don't handle OpenACC reductions here.
8722 (lower_oacc_head_tail): Call lower_oacc_reductions.
8723 (oacc_gimple_assign, oacc_init_reduction_array,
8724 oacc_initialize_reduction_data, oacc_finalize_reduction_data,
8725 oacc_process_reduction_data): Delete.
8726 (lower_omp_target): Remove old OpenACC reduction handling. Insert
8727 dummy OpenACC gang reduction for reductions at outer level.
8728 (oacc_loop_xform_head_tail): Transform IFN_GOACC_REDUCTION.
8729 (default_goacc_reduction): New.
8730 (execute_oacc_device_lower): Handle IFN_GOACC_REDUCTION.
8731
8732 2015-11-04 Martin Liska <mliska@suse.cz>
8733
8734 * cgraphunit.c (cgraph_node::expand_thunk): Call
8735 allocate_struct_function before init_function_start.
8736 (cgraph_node::expand): Use push_cfun and pop_cfun.
8737 * config/i386/i386.c (ix86_code_end): Call
8738 allocate_struct_function before init_function_start.
8739 * config/rs6000/rs6000.c (rs6000_code_end): Likewise.
8740 * function.c (init_function_start): Move preamble to all
8741 callers.
8742 * passes.c (do_per_function_toporder): Use push_cfun and pop_cfun.
8743 (execute_one_pass): Handle newly added TODO_discard_function.
8744 (execute_pass_list_1): Terminate if cfun equals to NULL.
8745 (execute_pass_list): Do not push and pop cfun, expect that
8746 cfun is set.
8747 * tree-pass.h (TODO_discard_function): Define.
8748
8749 2015-11-04 Mikhail Maltsev <maltsevm@gmail.com>
8750
8751 * cfganal.c (inverted_post_order_compute): Remove conditional
8752 compilation, use flag_checking.
8753 * config.in: Regenerate.
8754 * configure: Regenerate.
8755 * configure.ac: Remove ENABLE_CHECKING.
8756 * genconditions.c: Do not #undef ENABLE_CHECKING.
8757 * sese.h (bb_in_region): Comment out broken check.
8758 * tree-ssa-loop-manip.c (rewrite_into_loop_closed_ssa_1): Remove
8759 conditional compilation, use flag_checking.
8760
8761 2015-11-04 Tom de Vries <tom@codesourcery.com>
8762
8763 PR tree-optimization/67742
8764 * tree-ssa-structalias.c (struct fieldoff): Add restrict_pointed_type
8765 field.
8766 (push_fields_onto_fieldstack): Handle restrict_pointed_type field.
8767 (create_variable_info_for_1): Add and handle handle_param parameter.
8768 Add restrict handling.
8769 (create_variable_info_for): Call create_variable_info_for_1 with extra
8770 arg.
8771 (make_param_constraints): Drop restrict_name parameter. Ignore
8772 vi->only_restrict_pointers.
8773 (intra_create_variable_infos): Call create_variable_info_for_1 with
8774 extra arg. Remove restrict handling. Call make_param_constraints with
8775 one fewer arg.
8776
8777 2015-11-04 Tom de Vries <tom@codesourcery.com>
8778
8779 * tree-ssa-structalias.c (create_variable_info_for_1): Use decl_type
8780 variable.
8781
8782 2015-11-03 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
8783
8784 * config/arm/coff.h: Remove.
8785
8786 2015-11-03 Eric Botcazou <ebotcazou@adacore.com>
8787
8788 * gimple-expr.c (useless_type_conversion_p): Reinstate type canonical
8789 check for aggregate types and beef up comment for mode check.
8790
8791 2015-11-03 Richard Biener <rguenther@suse.de>
8792
8793 * tree-vect-data-refs.c (vect_analyze_data_refs): Do not collect
8794 data references here.
8795 * tree-vect-loop.c: Include cgraph.h.
8796 (vect_analyze_loop_2): Collect data references here.
8797 * tree-vect-slp.c (find_bb_location): Inline ...
8798 (vect_slp_bb): ... here. Renamed from vect_slp_analyze_bb.
8799 Factor in vect_slp_transform_bb.
8800 (vect_slp_transform_bb): Removed.
8801 (vect_slp_analyze_bb_1): Collect data references here.
8802 * tree-vectorizer.c (pass_slp_vectorize::execute): Call
8803 vect_slp_bb.
8804 * tree-vectorizer.h (vect_slp_bb): Declare.
8805 (vect_slp_analyze_bb): Remove.
8806 (vect_slp_transform_bb): Remove.
8807 (find_bb_location): Remove.
8808 (vect_analyze_data_refs): Remove stmt count reference parameter.
8809
8810 2015-11-03 Evgeny Stupachenko <evstupac@gmail.com>
8811
8812 * multiple_target.c (create_dispatcher_calls): Add target check
8813 on ifunc.
8814 (create_target_clone): Change assembler name for versioned declarations.
8815
8816 2015-11-03 Thomas Schwinge <thomas@codesourcery.com>
8817 Chung-Lin Tang <cltang@codesourcery.com>
8818
8819 * builtins.def (DEF_GOMP_BUILTIN): Enable for flag_openacc.
8820 * omp-low.c (check_omp_nesting_restrictions): Allow
8821 GIMPLE_OMP_ATOMIC_LOAD, GIMPLE_OMP_ATOMIC_STORE inside OpenACC
8822 contexts.
8823
8824 2015-11-03 Bilyan Borisov <bilyan.borisov@arm.com>
8825
8826 * config/aarch64/aarch64-simd-builtins.def (fmulx): New.
8827 * config/aarch64/aarch64-simd.md (aarch64_fmulx<mode>): New.
8828 * config/aarch64/arm_neon.h (vmulx_f32): Rewrite to call fmulx
8829 builtin.
8830 (vmulxq_f32): Likewise.
8831 (vmulx_f64): New.
8832 (vmulxq_f64): Rewrite to call fmulx builtin.
8833 (vmulxs_f32): Likewise.
8834 (vmulxd_f64): Likewise.
8835 (vmulx_lane_f32): Remove.
8836 * config/aarch64/iterators.md (UNSPEC): Add fmulx.
8837
8838 2015-11-03 Alan Lawrence <alan.lawrence@arm.com>
8839
8840 * config/aarch64/aarch64.md (*movhf_aarch64): Use
8841 aarch64_reg_or_fp_zero for second operand.
8842
8843 2015-11-03 Alexandre Oliva <aoliva@redhat.com>
8844
8845 * gimple-expr.c: Include hash-set.h and rtl.h.
8846 (mark_addressable_queue): New var.
8847 (mark_addressable): Factor actual marking into...
8848 (mark_addressable_1): ... this. Queue it up during expand.
8849 (mark_addressable_2): New.
8850 (flush_mark_addressable_queue): New.
8851 * gimple-expr.h (flush_mark_addressable_queue): Declare.
8852 * cfgexpand.c: Include gimple-expr.h.
8853 (pass_expand::execute): Flush mark_addressable queue.
8854
8855 2015-11-02 Alexandre Oliva <aoliva@redhat.com>
8856
8857 * tree-ssa-ifcombine.c (tree_ssa_ifcombine_bb_1): Factor out
8858 bb_no_side_effects_p tests...
8859 (tree_ssa_ifcombine_bb): ... here.
8860
8861 PR tree-optimization/68083
8862 * tree-ssa-ifcombine.c: Include tree-ssa.h.
8863 (bb_no_side_effects_p): Test for undefined uses too.
8864 * tree-ssa.c (gimple_uses_undefined_value_p): New.
8865 * tree-ssa.h (gimple_uses_undefined_value_p): Declare.
8866
8867 2015-11-02 Jeff Law <law@redhat.com>
8868
8869 * tree-ssa-threadupdate.c (valid_jump_thread_path): Also detect
8870 cases where the loop latch edge is in the middle of an FSM path.
8871
8872 2015-11-03 Tom de Vries <tom@codesourcery.com>
8873
8874 * tree-ssa-structalias.c (make_restrict_var_constraints): Rename to ...
8875 (make_param_constraints): ... this. Add and handle restrict_name
8876 parameter. Handle is_full_var case.
8877 (intra_create_variable_infos): Use make_param_constraints.
8878
8879 2015-11-03 Tom de Vries <tom@codesourcery.com>
8880
8881 * tree-ssa-structalias.c (make_restrict_var_constraints): Replace
8882 make_copy_constraint call with make_constraint_from call.
8883
8884 2015-11-02 Andreas Tobler <andreast@gcc.gnu.org>
8885
8886 * config/rs6000/freebsd64.h (ASM_SPEC32): Adust spec to handle
8887 PIE executables.
8888
8889 2015-11-02 Richard Sandiford <richard.sandiford@arm.com>
8890
8891 * builtins.h (fold_fma): Move to fold-const-call.h.
8892 * builtins.c: Include fold-const-call.h.
8893 (mathfn_built_in_2): New function, split out from...
8894 (mathfn_built_in_1): ...here.
8895 (do_real_to_int_conversion, fold_const_builtin_pow)
8896 (fold_const_builtin_logb, fold_const_builtin_significand)
8897 (fold_const_builtin_load_exponent, do_mpfr_arg1, do_mpfr_arg2)
8898 (do_mpfr_arg3, do_mpfr_sincos, do_mpfr_bessel_n, do_mpc_arg1): Delete.
8899 (fold_builtin_sincos): Use fold_const_call to handle constants.
8900 (fold_builtin_1, fold_builtin_2, fold_builtin_3): Add explicit
8901 checks for ERROR_MARK. Use fold_const_call to handle constant
8902 folds for math functions.
8903 (fold_fma): Move to fold-const-call.c.
8904 * fold-const.c: Include fold-const-call.h.
8905 * Makefile.in (OBJS): Add fold-const-call.o.
8906 (PLUGIN_HEADERS): Add fold-const-call.h.
8907 * realmpfr.h (real_from_mpfr): Allow the format to be specified
8908 directly.
8909 * realmpfr.c (real_from_mpfr): Likewise.
8910 * fold-const-call.h, fold-const-call.c: New files.
8911
8912 2015-11-02 Julian Brown <julian@codesourcery.com>
8913
8914 * config/arm/neon-testgen.ml (emit_epilogue): Remove extraneous
8915 brackets and semicolon.
8916
8917 2015-11-02 Alan Lawrence <alan.lawrence@arm.com>
8918
8919 Revert:
8920 2015-10-27 Alan Lawrence <alan.lawrence@arm.com>
8921
8922 PR tree-optimization/65963
8923 * tree-scalar-evolution.c (interpret_rhs_expr): Handle some
8924 LSHIFT_EXPRs as equivalent MULT_EXPRs.
8925
8926 2015-11-02 Thomas Schwinge <thomas@codesourcery.com>
8927
8928 PR middle-end/68166
8929 * fold-const.c: Include "md5.h".
8930
8931 2015-11-01 Jeff Law <law@redhat.com>
8932
8933 * vmsdbgout.c: Revert unused header file reduction patch.
8934
8935 * config/mcore/mcore.c: Include regs.h.
8936
8937 2015-10-31 Segher Boessenkool <segher@kernel.crashing.org>
8938
8939 * config/rs6000/rs6000.c (rs6000_reg_live_or_pic_offset_p): Rewrite.
8940
8941 2015-10-31 Segher Boessenkool <segher@kernel.crashing.org>
8942
8943 * config/rs6000/rs6000.c (rs6000_reg_live_or_pic_offset_p): Use the
8944 same condition for testing whether RS6000_PIC_OFFSET_TABLE_REGNUM is
8945 live as for using it elsewhere, for TARGET_MINIMAL_TOC.
8946
8947 2015-10-31 Markus Trippelsdorf <markus@trippelsdorf.de>
8948
8949 * ggc-common.c: Restore needed header for checking=release.
8950
8951 2015-10-31 Tom de Vries <tom@codesourcery.com>
8952
8953 * fold-const.c (fold_unary_loc): Tune POINTER_PLUS_EXPR folding.
8954
8955 2015-10-31 Tom de Vries <tom@codesourcery.com>
8956
8957 * tree-ssa-structalias.c (intra_create_variable_infos): Don't expect
8958 existing varinfo for arguments.
8959
8960 2015-10-31 Tom de Vries <tom@codesourcery.com>
8961
8962 * tree-ssa-structalias.c (ipa_pta_execute): Add extra arg to call to
8963 create_function_info_for. Dump constraints generated during
8964 create_function_info_for. Move intra_create_variable_infos call and
8965 function-return-values-escape bit to ...
8966 (create_function_info_for): ... here, and merge
8967 intra_create_variable_infos call with argument loop. Add and handle
8968 nonlocal_p parameter.
8969
8970 2015-10-31 Tom de Vries <tom@codesourcery.com>
8971
8972 * tree-ssa-structalias.c (create_function_info_for): Make sure prev_vi
8973 updating is alap, and seperated from preceding code. Make sure
8974 insert_vi_for_tree is seperated from surrounding code.
8975
8976 2015-10-31 Tom de Vries <tom@codesourcery.com>
8977
8978 * tree-ssa-structalias.c (ipa_pta_execute): Use make_copy_constraint.
8979
8980 2015-10-30 Jeff Law <law@redhat.com>
8981 Nathan Sidwell <nathan@acm.org>
8982
8983 * config/nvptx/nvptx.h (HARD_REGNO_NREGS): Avoid warning on unused
8984 args.
8985 (MOVE_MAX): Set to 8.
8986
8987 2015-10-30 Cesar Philippidis <cesar@codesourcery.com>
8988
8989 * cgraph.c: Include context.h for offloading.
8990 * varpool.c: Include context.h and omp-low.h.
8991
8992 2015-10-30 Anatoly Sokolov <aesok@post.ru>
8993
8994 * rtl.h (contains_symbol_ref_p): Declare.
8995 (SYMBOL_REF_P): Define.
8996 * rtlanal.c (contains_symbol_ref_p: New function.
8997 * lra-constraints.c (contains_symbol_ref_p): Remove.
8998 * var-tracking.c (contains_symbol_ref): Remove.
8999 (track_expr_p): Use contains_symbol_ref_p instead of
9000 contains_symbol_ref.
9001
9002 2015-10-30 Alan Lawrence <alan.lawrence@arm.com>
9003
9004 * gimple-fold.c (fold_array_ctor_reference): Move searching code to:
9005 * fold-const.c (get_array_ctor_element_at_index): New.
9006 (fold): Remove binary-search through CONSTRUCTOR, call previous.
9007
9008 * fold-const.h (get_array_ctor_element_at_index): New.
9009
9010 2015-10-30 Evgeny Stupachenko <evstupac@gmail.com>
9011
9012 * Makefile.in (OBJS): Add multiple_target.o.
9013 * attrib.c (make_attribute): Moved from config/i386/i386.c
9014 * config/i386/i386.c (make_attribute): Deleted.
9015 * multiple_target.c (create_dispatcher_calls): New.
9016 (get_attr_len): Ditto.
9017 (get_attr_str): Ditto.
9018 (separate_attrs): Ditto.
9019 (is_valid_asm_symbol): Ditto.
9020 (create_new_asm_name): Ditto.
9021 (create_target_clone): Ditto.
9022 (expand_target_clones): Ditto.
9023 (ipa_target_clone): Ditto.
9024 (ipa_dispatcher_calls): Ditto.
9025 * passes.def (pass_target_clone): Two new ipa passes.
9026 * tree-pass.h (make_pass_target_clone): Ditto.
9027 * doc/extend.texi (target_clones): New attribute description.
9028
9029 2015-10-30 Vladimir Makarov <vmakarov@redhat.com>
9030
9031 PR rtl-optimization/68106
9032 * lra-remat.c (input_regno_present_p): Process hard regs
9033 explicitly present in machine description insns.
9034 (call_used_input_regno_present_p): Ditto.
9035 (calculate_gen_cands): Ditto.
9036 (do_remat): Ditto.
9037
9038 2015-10-30 Jim Wilson <jim.wilson@linaro.org>
9039
9040 * config/arm/neon-testgen.ml: Fix comment typo.
9041
9042 2015-10-30 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
9043
9044 * rtlanal.c (reg_set_p): Expand function comment.
9045
9046 2015-10-30 Andrew MacLeod <amacleod@redhat.com>
9047
9048 * alias.c: Remove unused headers.
9049 * asan.c: Likewise.
9050 * attribs.c: Likewise.
9051 * auto-inc-dec.c: Likewise.
9052 * auto-profile.c: Likewise.
9053 * bb-reorder.c: Likewise.
9054 * bitmap.c: Likewise.
9055 * bt-load.c: Likewise.
9056 * builtins.c: Likewise.
9057 * caller-save.c: Likewise.
9058 * calls.c: Likewise.
9059 * ccmp.c: Likewise.
9060 * cfg.c: Likewise.
9061 * cfganal.c: Likewise.
9062 * cfgbuild.c: Likewise.
9063 * cfgcleanup.c: Likewise.
9064 * cfgexpand.c: Likewise.
9065 * cfghooks.c: Likewise.
9066 * cfgloop.c: Likewise.
9067 * cfgloopanal.c: Likewise.
9068 * cfgloopmanip.c: Likewise.
9069 * cfgrtl.c: Likewise.
9070 * cgraph.c: Likewise.
9071 * cgraphbuild.c: Likewise.
9072 * cgraphclones.c: Likewise.
9073 * cgraphunit.c: Likewise.
9074 * cilk-common.c: Likewise.
9075 * combine-stack-adj.c: Likewise.
9076 * combine.c: Likewise.
9077 * compare-elim.c: Likewise.
9078 * convert.c: Likewise.
9079 * coverage.c: Likewise.
9080 * cppbuiltin.c: Likewise.
9081 * cprop.c: Likewise.
9082 * cse.c: Likewise.
9083 * cselib.c: Likewise.
9084 * data-streamer-in.c: Likewise.
9085 * data-streamer-out.c: Likewise.
9086 * data-streamer.c: Likewise.
9087 * dbxout.c: Likewise.
9088 * dce.c: Likewise.
9089 * ddg.c: Likewise.
9090 * debug.c: Likewise.
9091 * df-core.c: Likewise.
9092 * df-problems.c: Likewise.
9093 * df-scan.c: Likewise.
9094 * dfp.c: Likewise.
9095 * dojump.c: Likewise.
9096 * dominance.c: Likewise.
9097 * domwalk.c: Likewise.
9098 * double-int.c: Likewise.
9099 * dse.c: Likewise.
9100 * dumpfile.c: Likewise.
9101 * dwarf2asm.c: Likewise.
9102 * dwarf2cfi.c: Likewise.
9103 * dwarf2out.c: Likewise.
9104 * emit-rtl.c: Likewise.
9105 * except.c: Likewise.
9106 * explow.c: Likewise.
9107 * expmed.c: Likewise.
9108 * expr.c: Likewise.
9109 * final.c: Likewise.
9110 * fixed-value.c: Likewise.
9111 * fold-const.c: Likewise.
9112 * function.c: Likewise.
9113 * fwprop.c: Likewise.
9114 * gcse.c: Likewise.
9115 * generic-match-head.c: Likewise.
9116 * ggc-common.c: Likewise.
9117 * gimple-builder.c: Likewise.
9118 * gimple-expr.c: Likewise.
9119 * gimple-fold.c: Likewise.
9120 * gimple-iterator.c: Likewise.
9121 * gimple-low.c: Likewise.
9122 * gimple-match-head.c: Likewise.
9123 * gimple-pretty-print.c: Likewise.
9124 * gimple-ssa-isolate-paths.c: Likewise.
9125 * gimple-ssa-strength-reduction.c: Likewise.
9126 * gimple-streamer-in.c: Likewise.
9127 * gimple-streamer-out.c: Likewise.
9128 * gimple-walk.c: Likewise.
9129 * gimple.c: Likewise.
9130 * gimplify-me.c: Likewise.
9131 * gimplify.c: Likewise.
9132 * godump.c: Likewise.
9133 * graph.c: Likewise.
9134 * graphds.c: Likewise.
9135 * haifa-sched.c: Likewise.
9136 * hw-doloop.c: Likewise.
9137 * ifcvt.c: Likewise.
9138 * init-regs.c: Likewise.
9139 * internal-fn.c: Likewise.
9140 * ipa-chkp.c: Likewise.
9141 * ipa-comdats.c: Likewise.
9142 * ipa-cp.c: Likewise.
9143 * ipa-devirt.c: Likewise.
9144 * ipa-icf-gimple.c: Likewise.
9145 * ipa-icf.c: Likewise.
9146 * ipa-inline-analysis.c: Likewise.
9147 * ipa-inline-transform.c: Likewise.
9148 * ipa-inline.c: Likewise.
9149 * ipa-polymorphic-call.c: Likewise.
9150 * ipa-profile.c: Likewise.
9151 * ipa-prop.c: Likewise.
9152 * ipa-pure-const.c: Likewise.
9153 * ipa-ref.c: Likewise.
9154 * ipa-reference.c: Likewise.
9155 * ipa-split.c: Likewise.
9156 * ipa-utils.c: Likewise.
9157 * ipa-visibility.c: Likewise.
9158 * ipa.c: Likewise.
9159 * ira-build.c: Likewise.
9160 * ira-color.c: Likewise.
9161 * ira-conflicts.c: Likewise.
9162 * ira-costs.c: Likewise.
9163 * ira-emit.c: Likewise.
9164 * ira-lives.c: Likewise.
9165 * ira.c: Likewise.
9166 * jump.c: Likewise.
9167 * langhooks.c: Likewise.
9168 * lcm.c: Likewise.
9169 * lists.c: Likewise.
9170 * loop-doloop.c: Likewise.
9171 * loop-init.c: Likewise.
9172 * loop-invariant.c: Likewise.
9173 * loop-iv.c: Likewise.
9174 * loop-unroll.c: Likewise.
9175 * lower-subreg.c: Likewise.
9176 * lra-assigns.c: Likewise.
9177 * lra-coalesce.c: Likewise.
9178 * lra-constraints.c: Likewise.
9179 * lra-eliminations.c: Likewise.
9180 * lra-lives.c: Likewise.
9181 * lra-remat.c: Likewise.
9182 * lra-spills.c: Likewise.
9183 * lra.c: Likewise.
9184 * lto-cgraph.c: Likewise.
9185 * lto-compress.c: Likewise.
9186 * lto-opts.c: Likewise.
9187 * lto-section-in.c: Likewise.
9188 * lto-section-out.c: Likewise.
9189 * lto-streamer-in.c: Likewise.
9190 * lto-streamer-out.c: Likewise.
9191 * lto-streamer.c: Likewise.
9192 * mcf.c: Likewise.
9193 * mode-switching.c: Likewise.
9194 * modulo-sched.c: Likewise.
9195 * optabs.c: Likewise.
9196 * opts-global.c: Likewise.
9197 * passes.c: Likewise.
9198 * plugin.c: Likewise.
9199 * postreload-gcse.c: Likewise.
9200 * postreload.c: Likewise.
9201 * predict.c: Likewise.
9202 * print-tree.c: Likewise.
9203 * profile.c: Likewise.
9204 * real.c: Likewise.
9205 * realmpfr.c: Likewise.
9206 * recog.c: Likewise.
9207 * ree.c: Likewise.
9208 * reg-stack.c: Likewise.
9209 * regcprop.c: Likewise.
9210 * reginfo.c: Likewise.
9211 * regrename.c: Likewise.
9212 * regstat.c: Likewise.
9213 * reload.c: Likewise.
9214 * reload1.c: Likewise.
9215 * reorg.c: Likewise.
9216 * resource.c: Likewise.
9217 * rtl-chkp.c: Likewise.
9218 * rtl-error.c: Likewise.
9219 * rtlanal.c: Likewise.
9220 * rtlhooks.c: Likewise.
9221 * sanopt.c: Likewise.
9222 * sched-deps.c: Likewise.
9223 * sched-ebb.c: Likewise.
9224 * sched-rgn.c: Likewise.
9225 * sdbout.c: Likewise.
9226 * sel-sched-dump.c: Likewise.
9227 * sel-sched-ir.c: Likewise.
9228 * sel-sched.c: Likewise.
9229 * sese.c: Likewise.
9230 * shrink-wrap.c: Likewise.
9231 * simplify-rtx.c: Likewise.
9232 * stack-ptr-mod.c: Likewise.
9233 * statistics.c: Likewise.
9234 * stmt.c: Likewise.
9235 * stor-layout.c: Likewise.
9236 * store-motion.c: Likewise.
9237 * stringpool.c: Likewise.
9238 * symtab.c: Likewise.
9239 * target-globals.c: Likewise.
9240 * targhooks.c: Likewise.
9241 * toplev.c: Likewise.
9242 * tracer.c: Likewise.
9243 * trans-mem.c: Likewise.
9244 * tree-affine.c: Likewise.
9245 * tree-call-cdce.c: Likewise.
9246 * tree-cfg.c: Likewise.
9247 * tree-cfgcleanup.c: Likewise.
9248 * tree-chkp-opt.c: Likewise.
9249 * tree-chkp.c: Likewise.
9250 * tree-chrec.c: Likewise.
9251 * tree-complex.c: Likewise.
9252 * tree-data-ref.c: Likewise.
9253 * tree-dfa.c: Likewise.
9254 * tree-diagnostic.c: Likewise.
9255 * tree-dump.c: Likewise.
9256 * tree-eh.c: Likewise.
9257 * tree-emutls.c: Likewise.
9258 * tree-if-conv.c: Likewise.
9259 * tree-inline.c: Likewise.
9260 * tree-into-ssa.c: Likewise.
9261 * tree-iterator.c: Likewise.
9262 * tree-loop-distribution.c: Likewise.
9263 * tree-nested.c: Likewise.
9264 * tree-nrv.c: Likewise.
9265 * tree-object-size.c: Likewise.
9266 * tree-outof-ssa.c: Likewise.
9267 * tree-parloops.c: Likewise.
9268 * tree-phinodes.c: Likewise.
9269 * tree-predcom.c: Likewise.
9270 * tree-pretty-print.c: Likewise.
9271 * tree-profile.c: Likewise.
9272 * tree-scalar-evolution.c: Likewise.
9273 * tree-sra.c: Likewise.
9274 * tree-ssa-address.c: Likewise.
9275 * tree-ssa-alias.c: Likewise.
9276 * tree-ssa-ccp.c: Likewise.
9277 * tree-ssa-coalesce.c: Likewise.
9278 * tree-ssa-copy.c: Likewise.
9279 * tree-ssa-dce.c: Likewise.
9280 * tree-ssa-dse.c: Likewise.
9281 * tree-ssa-forwprop.c: Likewise.
9282 * tree-ssa-ifcombine.c: Likewise.
9283 * tree-ssa-live.c: Likewise.
9284 * tree-ssa-loop-ch.c: Likewise.
9285 * tree-ssa-loop-im.c: Likewise.
9286 * tree-ssa-loop-ivcanon.c: Likewise.
9287 * tree-ssa-loop-ivopts.c: Likewise.
9288 * tree-ssa-loop-manip.c: Likewise.
9289 * tree-ssa-loop-niter.c: Likewise.
9290 * tree-ssa-loop-prefetch.c: Likewise.
9291 * tree-ssa-loop-unswitch.c: Likewise.
9292 * tree-ssa-loop.c: Likewise.
9293 * tree-ssa-math-opts.c: Likewise.
9294 * tree-ssa-operands.c: Likewise.
9295 * tree-ssa-phiopt.c: Likewise.
9296 * tree-ssa-phiprop.c: Likewise.
9297 * tree-ssa-pre.c: Likewise.
9298 * tree-ssa-propagate.c: Likewise.
9299 * tree-ssa-reassoc.c: Likewise.
9300 * tree-ssa-scopedtables.c: Likewise.
9301 * tree-ssa-sink.c: Likewise.
9302 * tree-ssa-strlen.c: Likewise.
9303 * tree-ssa-structalias.c: Likewise.
9304 * tree-ssa-tail-merge.c: Likewise.
9305 * tree-ssa-ter.c: Likewise.
9306 * tree-ssa-threadupdate.c: Likewise.
9307 * tree-ssa-uncprop.c: Likewise.
9308 * tree-ssa-uninit.c: Likewise.
9309 * tree-ssa.c: Likewise.
9310 * tree-ssanames.c: Likewise.
9311 * tree-stdarg.c: Likewise.
9312 * tree-streamer-in.c: Likewise.
9313 * tree-streamer-out.c: Likewise.
9314 * tree-streamer.c: Likewise.
9315 * tree-switch-conversion.c: Likewise.
9316 * tree-tailcall.c: Likewise.
9317 * tree-vect-data-refs.c: Likewise.
9318 * tree-vect-generic.c: Likewise.
9319 * tree-vect-loop-manip.c: Likewise.
9320 * tree-vect-loop.c: Likewise.
9321 * tree-vect-patterns.c: Likewise.
9322 * tree-vect-slp.c: Likewise.
9323 * tree-vect-stmts.c: Likewise.
9324 * tree-vectorizer.c: Likewise.
9325 * tree-vrp.c: Likewise.
9326 * tree.c: Likewise.
9327 * tsan.c: Likewise.
9328 * ubsan.c: Likewise.
9329 * value-prof.c: Likewise.
9330 * var-tracking.c: Likewise.
9331 * varasm.c: Likewise.
9332 * varpool.c: Likewise.
9333 * vmsdbgout.c: Likewise.
9334 * vtable-verify.c: Likewise.
9335 * web.c: Likewise.
9336 * wide-int-print.cc: Likewise.
9337 * wide-int.cc: Likewise.
9338 * xcoffout.c: Likewise.
9339
9340 2015-10-30 James Greenhalgh <james.greenhalgh@arm.com>
9341
9342 * doc/invoke.texi (fdump-rtl-@var{pass}): Clarify relationship
9343 between pass numbering and execution order.
9344
9345 2015-10-30 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
9346
9347 * config/arm/arm.c (cortex_a9_sched_adjust_cost): Use reg_set_p to
9348 check for dependencies.
9349
9350 2015-10-30 Richard Sandiford <richard.sandiford@arm.com>
9351
9352 * tree-ssa-math-opts.c (pass_cse_sincos::execute): Don't free
9353 CDI_DOMINATORS.
9354
9355 2015-10-30 Richard Sandiford <richard.sandiford@arm.com>
9356
9357 * real.h (format_helper): New.
9358 (real_convert, exact_real_truncate, real_from_string3, real_to_target)
9359 (real_from_target, real_nan, real_2expN, real_value_truncate)
9360 (significand_size, real_from_string2, exact_real_inverse)
9361 (exact_real_inverse, real_powi, real_trunc, real_floor, real_ceil)
9362 (real_round, real_isinteger, real_from_integer): Replace
9363 machine_mode arguments with format_helper arguments.
9364 * real.c (exact_real_inverse, real_from_string2, real_from_string3)
9365 (real_from_integer, real_nan, real_2expN, real_convert)
9366 (real_value_truncate, exact_real_truncate, real_to_target)
9367 (real_from_target, significand_size, real_powi, real_trunc)
9368 (real_floor, real_ceil, real_round, real_isinteger): Replace
9369 machine_mode arguments with format_helper arguments.
9370 (real_to_target_fmt, real_from_target_fmt): Delete.
9371 * dfp.h (decimal_real_convert): Replace mode argument with real_format.
9372 * dfp.c (decimal_to_binary, decimal_real_convert): Replace mode
9373 argument with real_format.
9374 * builtins.c (do_real_to_int_conversion): Update type of fn argument.
9375
9376 2015-10-30 Richard Sandiford <richard.sandiford@arm.com>
9377
9378 * fixed-value.c (check_real_for_fixed_mode, fixed_from_string)
9379 (fixed_to_decimal, fixed_convert_from_real)
9380 (real_convert_from_fixed): Fix mode arguments to real_2expN.
9381
9382 2015-10-30 Richard Sandiford <richard.sandiford@arm.com>
9383
9384 * real.h (REAL_MODE_FORMAT): Abort if the mode isn't a
9385 SCALAR_FLOAT_MODE_P.
9386
9387 2015-10-30 Alan Lawrence <alan.lawrence@arm.com>
9388
9389 * tree-sra.c (scalarizable_type_p): Comment variable-length arrays.
9390 (completely_scalarize): Comment zero-length arrays.
9391 (get_access_replacement): Correct comment re. precondition.
9392
9393 2015-10-30 Venkataramanan Kumar <venkataramanan.kumar@amd.com>
9394
9395 * config/i386/i386.c (get_builtin_code_for_version): Set priority
9396 for PROCESSOR_ZNVER1.
9397 (enum processor_model): Add M_AMDFAM17H_znver1.
9398 (struct arch_names_table): Likewise.
9399 * doc/extend.texi: ADD znver1.
9400
9401 2015-10-30 Richard Biener <rguenther@suse.de>
9402
9403 * gimple-fold.c (fold_gimple_assign): Do not dispatch to
9404 fold () on single RHSs. Allow CONSTRUCTORS with trailing
9405 zeros to be folded to VECTOR_CSTs.
9406 * tree.c (build_vector_from_ctor): Handle VECTOR_CST elements.
9407 * fold-const.c (fold): Use build_vector_from_ctor.
9408
9409 2015-10-30 Evandro Menezes <e.menezes@samsung.com>
9410
9411 * config/aarch64/aarch64.md (*movhf_aarch64): Change the type of
9412 "mov %0.h[0], %1.h[0] to "neon_move".
9413 (*movtf_aarch64): Change the type of "fmov %s0, wzr" to "f_mcr".
9414 (*cmov<mode>_insn): Change the types of "mov %<w>0, {-1,1}" to
9415 "mov_imm".
9416 (*cmovsi_insn_uxtw): Likewise.
9417
9418 2015-10-30 Tom de Vries <tom@codesourcery.com>
9419
9420 * tree-ssa-structalias.c (ipa_pta_execute): Declare variable from as
9421 unsigned, and initialize, and use initial value instead of hardcoded
9422 constant. Add generic constraints dumping section. Don't dump global
9423 initializers constraints dumping section if empty. Don't update
9424 variable from if unused.
9425
9426 2015-10-29 Mikhail Maltsev <maltsevm@gmail.com>
9427
9428 * config/alpha/alpha.c (alpha_function_arg): Use gcc_checking_assert,
9429 flag_checking and/or CHECKING_P to eliminate conditional compilation
9430 on ENABLE_CHECKING.
9431 * config/arm/arm.c (arm_unwind_emit_sequence): Likewise.
9432 * config/bfin/bfin.c (hwloop_optimize): Likewise.
9433 * config/i386/i386.c (ix86_print_operand_address): Likewise.
9434 (output_387_binary_op): Likewise.
9435 * config/ia64/ia64.c (ia64_sched_init, bundling): Likewise.
9436 * config/m68k/m68k.c (m68k_sched_md_init_global): Likewise.
9437 * config/rs6000/rs6000.c (htm_expand_builtin, rs6000_emit_prologue):
9438 Likewise.
9439 * config/rs6000/rs6000.h: Likewise.
9440 * config/visium/visium.c (visium_setup_incoming_varargs): Likewise.
9441
9442 2015-10-29 Kaz Kojima <kkojima@gcc.gnu.org>
9443
9444 * config/sh/sh.opt (mfdpic): Add missing period.
9445
9446 2015-08-29 Anatoly Sokolov <aesok@post.ru>
9447
9448 * config/mcore/mcore.h (REG_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P,
9449 BASE_REGISTER_RTX_P, INDEX_REGISTER_RTX_P,
9450 GO_IF_LEGITIMATE_ADDRESS): Remove macros.
9451 * config/mcore/mcore.c (mcore_reg_ok_for_base_p,
9452 mcore_base_register_rtx_p, mcore_legitimate_index_p,
9453 mcore_legitimate_address_p): New functions.
9454 (TARGET_ADDR_SPACE_LEGITIMATE_ADDRESS_P): Define.
9455
9456 2015-10-29 Jeff Law <law@redhat.com>
9457
9458 * tree-ssa-scopedtables.h (const_and_copies): Remove invalidate
9459 method.
9460 * tree-ssa-scopedtables.h (const_and_copies::invalidate): Remove.
9461 * tree-ssa-threadedge.c
9462 (record_temporary_equivalences_from_stmts_at_dest): Remove
9463 backedge_seen argument and associated code which invalidated
9464 equivalences based on the value of that argument.
9465 (thread_through_normal_block): Corresponding changes.
9466
9467 2015-10-29 Segher Boessenkool <segher@kernel.crashing.org>
9468
9469 * config/rs6000/rs6000.c (rs6000_reg_live_or_pic_offset_p): Move this
9470 function earlier in the file.
9471 (first_reg_to_save): Use rs6000_reg_live_or_pic_offset_p instead of
9472 df_regs_ever_live_p.
9473
9474 2015-10-29 Segher Boessenkool <segher@kernel.crashing.org>
9475
9476 * lra-constraints.c (process_address_1): Handle (mem:BLK (scratch))
9477 by ignoring it.
9478
9479 2015-10-29 Richard Henderson <rth@redhat.com>
9480
9481 PR target/68124
9482 PR rtl-opt/67609
9483 * config/i386/i386.c (ix86_cannot_change_mode_class): Tighten
9484 sse check to the exact conditions of PR 67609.
9485
9486 2015-10-29 Michael Meissner <meissner@linux.vnet.ibm.com>
9487
9488 * config/rs6000/rs6000.c (rs6000_init_libfuncs): Split libfunc
9489 setup into 3 functions: init_float128_ibm, init_float128_ieee, and
9490 rs6000_init_libfuncs. If -mfloat128, add IFmode functions for all
9491 of the traditional names that TFmode uses for handling IEEE
9492 extended double. If -mfloat128, add KFmode functions for all of
9493 the emulation functions. If -mabi=ieeelongdouble and -mfloat128,
9494 make TFmode use the same emulation functions as KFmode.
9495 (init_float128_ibm): Likewise.
9496 (init_float128_ieee): Likewise.
9497 (rs6000_generate_compare): For IEEE 128-bit floating point
9498 comparisons, call the unordered comparison function instead of the
9499 ordered comparison function.
9500 (rs6000_expand_float128_convert): Deal with operands that are
9501 memory operands. Restructure the code to use a switch statement on
9502 the mode. Add support for TFmode defaulting to either IBM extended
9503 double or IEEE 128-bit floating point. If the underlying types are
9504 the same, use a move instead of a conversion function.
9505 (TARGET_C_MODE_FOR_SUFFIX): Define 'q' and 'Q' as the suffix to
9506 use for IEEE 128-bit floating point constants with -mfloat128.
9507 (rs6000_c_mode_for_suffix): Likewise.
9508 (TARGET_INVALID_BINARY_OP): Do not allow inter-mixing of IEEE
9509 128-bit floating point with IBM extended double floating point.
9510 (rs6000_invalid_binary_op): Likewise.
9511 (rs6000_gen_le_vsx_permute): On little endian systems generate a
9512 ROTATE insn instead of VEC_SELECT for IEEE 128-bit floating point
9513 types that can go in vector registers.
9514 (chain_contains_only_swaps): Properly swap IEEE 128-bit floating
9515 point types that can go in vector registers on little endian
9516 PowerPC systems.
9517 (mark_swaps_for_removal): Likewise.
9518 (rs6000_analyze_swaps): Likewise.
9519 (rs6000_mangle_type): Use U10__float128 for IEEE 128-bit floating point.
9520
9521 * config/rs6000/rs6000.md (FLOAT128_SFDFTF): Delete iterator,
9522 rework IEEE 128-bit floating point insns to deal with TFmode being
9523 either IBM extended double or IEEE 128-bit floating point.
9524 (IFKF): Likewise.
9525 (IBM128): Update iterator to add condition that the mode is IBM
9526 extended double.
9527 (IEEE128): New iterator for IEEE 128-bit floating point.
9528 (TFIFKF): Rename TFIFKF iterator to FLOAT128.
9529 (FLOAT128): Likewise.
9530 (signbit<mode>2): FLOAT128_IBM_P condition test moved into IBM128
9531 iterator.
9532 (neg<mode>2): Replace TFIFKF iterator with FLOAT128. Add support
9533 for TFmode being IEEE 128-bit floating point. Use IEEE128 iterator
9534 instead of hard coding TFmode or KFmode.
9535 (negtf2_internal): Likewise.
9536 (neg<mode>2_internal): Likewise.
9537 (abs<mode>2): Likewise.
9538 (abstf2_internal): Likewise.
9539 (abs<mode>2_internal): Likewise.
9540 (ieee_128bit_neg<mode>2): Likewise.
9541 (ieee_128bit_neg<mode>2_internal): Likewise.
9542 (ieee_128bit_abs<mode>2): Likewise.
9543 (ieee_128bit_abs<mode>2_internal): Likewise.
9544 (ieee_128bit_nabs<mode>2): Likewise.
9545 (ieee_128bit_nabs<mode>2_internal): Likewise.
9546 (extendiftf2): Add explicit conversions between 128-bit floating
9547 point types. Drop the old conversions that had become unwieldy.
9548 (extend<FLOAT128_SFDFTF:mode><IFKF:mode>2): Likewise.
9549 (extendifkf2): Likewise.
9550 (trunc<IFKF:mode><FLOAT128_SFDFTF:mode>2): Likewise.
9551 (extendtfkf2): Likewise.
9552 (fix_trunc<IFKF:mode><SDI:mode>2): Likewise.
9553 (trunciftf2): Likewise.
9554 (fixuns_trunc<IFKF:mode><SDI:mode>2): Likewise.
9555 (truncifkf2): Likewise.
9556 (float<SDI:mode><IFKF:mode>2): Likewise.
9557 (trunckftf2): Likewise.
9558 (floatuns<SDI:mode><IFKF:mode>2): Likewise.
9559 (trunctfif2): Likewise.
9560 (FP iterator): Allow TFmode to be IEEE 128-bit floating point.
9561 (extenddftf2): Rework 128-bit floating point conversions to
9562 properly handle -mabi=ieeelongdouble. Merge IFmode, TFmode, and
9563 KFmode expanders into one function.
9564 (extenddf<mode>2): Likewise.
9565 (extenddftf2_fprs): Likewise.
9566 (extenddf<mode>2_fprs): Likewise.
9567 (extenddftf2_vsx): Likewise.
9568 (extenddf<mode>2_vsx): Likewise.
9569 (extendsftf2): Likewise.
9570 (extendsf<mode>2): Likewise.
9571 (trunctfdf2): Likewise.
9572 (trunc<mode>df2): Likewise.
9573 (trunctfdf2_internal1): Likewise.
9574 (trunc<mode>df2_internal1): Likewise.
9575 (trunctfdf2_internal2): Likewise.
9576 (trunc<mode>df2_internal2): Likewise.
9577 (trunctfsf2): Likewise.
9578 (trunc<mode>sf2): Likewise.
9579 (trunctfsf2_fprs): Likewise.
9580 (trunc<mode>sf2_fprs): Likewise.
9581 (floatsit2f): Likewise.
9582 (floatsi<mode>2): Likewise.
9583 (fix_trunc_helper): Likewise.
9584 (fix_trunc_helper<mode>): Likewise.
9585 (fix_trunctfsi2): Likewise.
9586 (fix_trunc<mode>si2): Likewise.
9587 (fix_trunctfsi2_fprs): Likewise.
9588 (fix_trunc<mode>si2_fprs): Likewise.
9589 (fix_trunctfsi2_internal): Likewise.
9590 (fix_trunc<mode>si2_internal): Likewise.
9591 (fix_trunctfdi2): Likewise.
9592 (fix_trunc<mode>di2): Likewise.
9593 (fixuns_trunctf<mode>2): Likewise.
9594 (fixuns_trunc<IEEE128:mode><SDI:mode>2): Likewise.
9595 (floatditf2): Likewise.
9596 (floatdi<mode>2): Likewise.
9597 (floatuns<mode>tf2): Likewise.
9598 (floatuns<SDI:mode><IEEE128:mode>): Likewise.
9599 (cmptf_internal1): Use a mode iterator to add support for both
9600 types (IFmode, TFmode) that support IBM extended double.
9601 (cmp<mode>_internal1): Likewise.
9602 (cmptf_internal2): Likewise.
9603 (cmp<mode>_internal2): Likewise.
9604
9605 * doc/extend.texi (Floating Types): Document __ibm128 and
9606 __float128 on PowerPC.
9607
9608 * doc/invoke.texi (RS/6000 and PowerPC Options): Document
9609 -mfloat128 and -mno-float128.
9610
9611 2015-10-29 Michael Meissner <meissner@linux.vnet.ibm.com>
9612
9613 * config/rs6000/rs6000.h (ALTIVEC_VECTOR_MODE): Add IEEE 128-bit
9614 floating point modes that can go in vector registers.
9615 (MODES_TIEABLE_P): Move tests for vector modes before tests for
9616 scalar floating point, so that IEEE 128-bit floating point that
9617 can go in vector registers bind with vectors and not FP.
9618 (struct rs6000_args): Add libcall field.
9619
9620 * config/rs6000/rs6000.opt (-mfloat128-*): Delete -mfloat128-none
9621 and -mfloat128-software switches. Replace them with a binary
9622 -mfloat128 switch.
9623 (-mfloat128): Likewise.
9624
9625 * config/rs6000/rs6000.c (rs6000_hard_regno_mode_ok): Allow
9626 128-bit floating point types in GPRs, even if the appropriate
9627 option enabling the type was not used.
9628 (rs6000_debug_reg_global): Remove -mfloat128-{software,none}
9629 debugging.
9630 (rs6000_setup_reg_addr_masks): Do not allow pre-increment and
9631 pre-decrement on IEEE 128-bit floating point values.
9632 (rs6000_init_hard_regno_mode_ok): Change test for whether TFmode
9633 is IEEE 128-bit floating point.
9634 (rs6000_init_hard_regno_mode_ok): Add reload handlers for IEEE
9635 128-bit floating point types that can go in vector registers.
9636 (rs6000_option_override_internal): Change -mfloat128-none and
9637 -mfloat128-software to -mfloat128, and move code to be near other
9638 VSX option handling.
9639 (rs6000_option_override_internal): Disable -mfloat128 if we don't
9640 have the Altivec ABI.
9641 (rs6000_init_builtins): Don't make TFmode use either IFmode or
9642 KFmode floating point nodes. Instead, have three separate nodes.
9643 (rs6000_scalar_mode_supported_p): Add support for IFmode to allow
9644 eventually moving the long double default to IEEE 128-bit floating
9645 point.
9646 (rs6000_opt_masks): Add -mfloat128.
9647 (struct rs6000_opt_var): Fix typo in comment.
9648 (init_cumulative_args): Initialize libcall field in
9649 CUMULATIVE_ARGS.
9650 (rs6000_function_arg): Treat library functions as if they had
9651 prototypes to prevent IEEE 128-bit support functions from passing
9652 arguments in both GPRs and vector registers.
9653 (rs6000_arg_partial_bytes): Likewise.
9654
9655 * config/rs6000/rs6000-cpus.def (POWERPC_MASKS): Add -mfloat128 as
9656 an option that can be turned on via -mcpu=<xxx>.
9657
9658 * config/rs6000/rs6000-opts.h (enum float128_type_t): Delete, no
9659 longer used.
9660
9661 * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Define
9662 __FLOAT128__ if -mfloat128. Define __LONG_DOUBLE_IEEE128__ if long
9663 double is IEEE 128-bit. Define __LONG_DOUBLE_IBM128__ if long
9664 double is IBM extended double.
9665
9666 * config/rs6000/predicates.md (reg_or_indexed_operand): Allow
9667 SUBREGs.
9668
9669 2015-10-29 Mikhail Maltsev <maltsevm@gmail.com>
9670
9671 * genautomata.c: Use CHECKING_P instead of ENABLE_CHECKING.
9672 * genconditions.c: Define CHECKING_P in the generated code.
9673 * genextract.c: Use flag_checking in insn_extract.
9674 * gengtype.c (main): Remove conditional compilation.
9675 * gengtype.h: Likewise.
9676
9677 2015-10-29 Jeff Law <law@redhat.com>
9678
9679 PR tree-optimization/67892
9680 * tree-ssa-threadedge.c (simplify_controL_stmt_condition): Fix typo
9681 in comment.
9682 (thread_through_normal_block): If we have seen a backedge, then
9683 do nothing. No longer call find_jump_threads_backwards here.
9684 (thread_across_edge): Use find_jump_threads_backwards to find
9685 jump threads if the old style threader was not successful.
9686 * tree-ssa-threadbackward.c (get_gimple_control_stmt): Use
9687 gsi_last_nondebug_bb. Return NULL if the block does not end
9688 with a control statement.
9689 (find_jump_threads_backwards): Setup code moved here from
9690 tree-ssa-threadedge.c::thread_through_normal_block. Accept
9691 single edge argument instead of name & block.
9692 * tree-ssa-threadbackward.h (find_jump_threads_backwards): Update
9693 prototype.
9694
9695 2015-10-29 Tom de Vries <tom@codesourcery.com>
9696
9697 * fold-const.c (fold_unary_loc): Remove folding inhibition for restrict
9698 types.
9699
9700 2015-10-29 Nathan Sidwell <nathan@codesourcery.com>
9701
9702 * omp-low.c (lower_omp_target): Remove unreachable code & merge
9703 ifs.
9704
9705 2015-10-29 Marc Glisse <marc.glisse@inria.fr>
9706
9707 * match.pd (X-(X/Y)*Y): Properly handle conversions and commutativity.
9708
9709 2015-10-29 Richard Sandiford <richard.sandiford@arm.com>
9710
9711 * tree-call-cdce.c (shrink_wrap_one_built_in_call): Remove
9712 guard_bb0 and use guard_bb throughout.
9713
9714 2015-10-29 Richard Sandiford <richard.sandiford@arm.com>
9715
9716 * tree-call-cdce.c (shrink_wrap_one_built_in_call): Remove
9717 unnecessary label.
9718
9719 2015-10-29 Richard Biener <rguenther@suse.de>
9720
9721 PR middle-end/68142
9722 * fold-const.c (extract_muldiv_1): Avoid introducing undefined
9723 overflow.
9724
9725 2015-10-29 Andrew MacLeod <amacleod@redhat.com>
9726
9727 * alias.c: Reorder #include statements and remove duplicates.
9728 * asan.c: Likewise.
9729 * attribs.c: Likewise.
9730 * auto-inc-dec.c: Likewise.
9731 * auto-profile.c: Likewise.
9732 * bb-reorder.c: Likewise.
9733 * bt-load.c: Likewise.
9734 * builtins.c: Likewise.
9735 * caller-save.c: Likewise.
9736 * calls.c: Likewise.
9737 * ccmp.c: Likewise.
9738 * cfg.c: Likewise.
9739 * cfganal.c: Likewise.
9740 * cfgbuild.c: Likewise.
9741 * cfgcleanup.c: Likewise.
9742 * cfgexpand.c: Likewise.
9743 * cfghooks.c: Likewise.
9744 * cfgloop.c: Likewise.
9745 * cfgloopanal.c: Likewise.
9746 * cfgloopmanip.c: Likewise.
9747 * cfgrtl.c: Likewise.
9748 * cgraph.c: Likewise.
9749 * cgraphbuild.c: Likewise.
9750 * cgraphclones.c: Likewise.
9751 * cgraphunit.c: Likewise.
9752 * cilk-common.c: Likewise.
9753 * combine-stack-adj.c: Likewise.
9754 * combine.c: Likewise.
9755 * compare-elim.c: Likewise.
9756 * convert.c: Likewise.
9757 * coverage.c: Likewise.
9758 * cppbuiltin.c: Likewise.
9759 * cprop.c: Likewise.
9760 * cse.c: Likewise.
9761 * cselib.c: Likewise.
9762 * data-streamer-in.c: Likewise.
9763 * data-streamer-out.c: Likewise.
9764 * data-streamer.c: Likewise.
9765 * dbxout.c: Likewise.
9766 * dce.c: Likewise.
9767 * ddg.c: Likewise.
9768 * debug.c: Likewise.
9769 * df-core.c: Likewise.
9770 * df-problems.c: Likewise.
9771 * df-scan.c: Likewise.
9772 * dfp.c: Likewise.
9773 * dojump.c: Likewise.
9774 * dominance.c: Likewise.
9775 * double-int.c: Likewise.
9776 * dse.c: Likewise.
9777 * dumpfile.c: Likewise.
9778 * dwarf2asm.c: Likewise.
9779 * dwarf2cfi.c: Likewise.
9780 * dwarf2out.c: Likewise.
9781 * emit-rtl.c: Likewise.
9782 * except.c: Likewise.
9783 * explow.c: Likewise.
9784 * expmed.c: Likewise.
9785 * expr.c: Likewise.
9786 * final.c: Likewise.
9787 * fixed-value.c: Likewise.
9788 * fold-const.c: Likewise.
9789 * function.c: Likewise.
9790 * fwprop.c: Likewise.
9791 * gcse.c: Likewise.
9792 * generic-match-head.c: Likewise.
9793 * ggc-common.c: Likewise.
9794 * gimple-builder.c: Likewise.
9795 * gimple-expr.c: Likewise.
9796 * gimple-fold.c: Likewise.
9797 * gimple-iterator.c: Likewise.
9798 * gimple-low.c: Likewise.
9799 * gimple-match-head.c: Likewise.
9800 * gimple-pretty-print.c: Likewise.
9801 * gimple-ssa-isolate-paths.c: Likewise.
9802 * gimple-ssa-strength-reduction.c: Likewise.
9803 * gimple-streamer-in.c: Likewise.
9804 * gimple-streamer-out.c: Likewise.
9805 * gimple-walk.c: Likewise.
9806 * gimple.c: Likewise.
9807 * gimplify-me.c: Likewise.
9808 * gimplify.c: Likewise.
9809 * godump.c: Likewise.
9810 * graph.c: Likewise.
9811 * graphite-poly.c: Likewise.
9812 * haifa-sched.c: Likewise.
9813 * hw-doloop.c: Likewise.
9814 * ifcvt.c: Likewise.
9815 * incpath.c: Likewise.
9816 * init-regs.c: Likewise.
9817 * internal-fn.c: Likewise.
9818 * ipa-chkp.c: Likewise.
9819 * ipa-comdats.c: Likewise.
9820 * ipa-cp.c: Likewise.
9821 * ipa-devirt.c: Likewise.
9822 * ipa-icf-gimple.c: Likewise.
9823 * ipa-icf.c: Likewise.
9824 * ipa-inline-analysis.c: Likewise.
9825 * ipa-inline-transform.c: Likewise.
9826 * ipa-inline.c: Likewise.
9827 * ipa-polymorphic-call.c: Likewise.
9828 * ipa-profile.c: Likewise.
9829 * ipa-prop.c: Likewise.
9830 * ipa-pure-const.c: Likewise.
9831 * ipa-ref.c: Likewise.
9832 * ipa-reference.c: Likewise.
9833 * ipa-split.c: Likewise.
9834 * ipa-utils.c: Likewise.
9835 * ipa-visibility.c: Likewise.
9836 * ipa.c: Likewise.
9837 * ira-build.c: Likewise.
9838 * ira-color.c: Likewise.
9839 * ira-conflicts.c: Likewise.
9840 * ira-costs.c: Likewise.
9841 * ira-emit.c: Likewise.
9842 * ira-lives.c: Likewise.
9843 * ira.c: Likewise.
9844 * jump.c: Likewise.
9845 * langhooks.c: Likewise.
9846 * lcm.c: Likewise.
9847 * lists.c: Likewise.
9848 * loop-doloop.c: Likewise.
9849 * loop-init.c: Likewise.
9850 * loop-invariant.c: Likewise.
9851 * loop-iv.c: Likewise.
9852 * loop-unroll.c: Likewise.
9853 * lower-subreg.c: Likewise.
9854 * lra-assigns.c: Likewise.
9855 * lra-coalesce.c: Likewise.
9856 * lra-constraints.c: Likewise.
9857 * lra-eliminations.c: Likewise.
9858 * lra-lives.c: Likewise.
9859 * lra-remat.c: Likewise.
9860 * lra-spills.c: Likewise.
9861 * lra.c: Likewise.
9862 * lto-cgraph.c: Likewise.
9863 * lto-compress.c: Likewise.
9864 * lto-opts.c: Likewise.
9865 * lto-section-in.c: Likewise.
9866 * lto-section-out.c: Likewise.
9867 * lto-streamer-in.c: Likewise.
9868 * lto-streamer-out.c: Likewise.
9869 * lto-streamer.c: Likewise.
9870 * mode-switching.c: Likewise.
9871 * modulo-sched.c: Likewise.
9872 * omp-low.c: Likewise.
9873 * optabs.c: Likewise.
9874 * opts-global.c: Likewise.
9875 * passes.c: Likewise.
9876 * plugin.c: Likewise.
9877 * postreload-gcse.c: Likewise.
9878 * postreload.c: Likewise.
9879 * predict.c: Likewise.
9880 * print-tree.c: Likewise.
9881 * profile.c: Likewise.
9882 * real.c: Likewise.
9883 * realmpfr.c: Likewise.
9884 * recog.c: Likewise.
9885 * ree.c: Likewise.
9886 * reg-stack.c: Likewise.
9887 * regcprop.c: Likewise.
9888 * reginfo.c: Likewise.
9889 * regrename.c: Likewise.
9890 * regstat.c: Likewise.
9891 * reload.c: Likewise.
9892 * reload1.c: Likewise.
9893 * reorg.c: Likewise.
9894 * resource.c: Likewise.
9895 * rtl-chkp.c: Likewise.
9896 * rtl-error.c: Likewise.
9897 * rtlanal.c: Likewise.
9898 * rtlhooks.c: Likewise.
9899 * sanopt.c: Likewise.
9900 * sched-deps.c: Likewise.
9901 * sched-ebb.c: Likewise.
9902 * sched-rgn.c: Likewise.
9903 * sese.c: Likewise.
9904 * shrink-wrap.c: Likewise.
9905 * simplify-rtx.c: Likewise.
9906 * stack-ptr-mod.c: Likewise.
9907 * statistics.c: Likewise.
9908 * stmt.c: Likewise.
9909 * stor-layout.c: Likewise.
9910 * store-motion.c: Likewise.
9911 * stringpool.c: Likewise.
9912 * symtab.c: Likewise.
9913 * target-globals.c: Likewise.
9914 * targhooks.c: Likewise.
9915 * toplev.c: Likewise.
9916 * tracer.c: Likewise.
9917 * trans-mem.c: Likewise.
9918 * tree-affine.c: Likewise.
9919 * tree-call-cdce.c: Likewise.
9920 * tree-cfg.c: Likewise.
9921 * tree-cfgcleanup.c: Likewise.
9922 * tree-chkp-opt.c: Likewise.
9923 * tree-chkp.c: Likewise.
9924 * tree-chrec.c: Likewise.
9925 * tree-complex.c: Likewise.
9926 * tree-data-ref.c: Likewise.
9927 * tree-dfa.c: Likewise.
9928 * tree-diagnostic.c: Likewise.
9929 * tree-dump.c: Likewise.
9930 * tree-eh.c: Likewise.
9931 * tree-emutls.c: Likewise.
9932 * tree-if-conv.c: Likewise.
9933 * tree-inline.c: Likewise.
9934 * tree-into-ssa.c: Likewise.
9935 * tree-iterator.c: Likewise.
9936 * tree-loop-distribution.c: Likewise.
9937 * tree-nested.c: Likewise.
9938 * tree-nrv.c: Likewise.
9939 * tree-object-size.c: Likewise.
9940 * tree-outof-ssa.c: Likewise.
9941 * tree-parloops.c: Likewise.
9942 * tree-phinodes.c: Likewise.
9943 * tree-predcom.c: Likewise.
9944 * tree-pretty-print.c: Likewise.
9945 * tree-profile.c: Likewise.
9946 * tree-scalar-evolution.c: Likewise.
9947 * tree-sra.c: Likewise.
9948 * tree-ssa-address.c: Likewise.
9949 * tree-ssa-alias.c: Likewise.
9950 * tree-ssa-ccp.c: Likewise.
9951 * tree-ssa-coalesce.c: Likewise.
9952 * tree-ssa-copy.c: Likewise.
9953 * tree-ssa-dce.c: Likewise.
9954 * tree-ssa-dom.c: Likewise.
9955 * tree-ssa-dse.c: Likewise.
9956 * tree-ssa-forwprop.c: Likewise.
9957 * tree-ssa-ifcombine.c: Likewise.
9958 * tree-ssa-live.c: Likewise.
9959 * tree-ssa-loop-ch.c: Likewise.
9960 * tree-ssa-loop-im.c: Likewise.
9961 * tree-ssa-loop-ivcanon.c: Likewise.
9962 * tree-ssa-loop-ivopts.c: Likewise.
9963 * tree-ssa-loop-manip.c: Likewise.
9964 * tree-ssa-loop-niter.c: Likewise.
9965 * tree-ssa-loop-prefetch.c: Likewise.
9966 * tree-ssa-loop-unswitch.c: Likewise.
9967 * tree-ssa-loop.c: Likewise.
9968 * tree-ssa-math-opts.c: Likewise.
9969 * tree-ssa-operands.c: Likewise.
9970 * tree-ssa-phiopt.c: Likewise.
9971 * tree-ssa-phiprop.c: Likewise.
9972 * tree-ssa-pre.c: Likewise.
9973 * tree-ssa-propagate.c: Likewise.
9974 * tree-ssa-reassoc.c: Likewise.
9975 * tree-ssa-sccvn.c: Likewise.
9976 * tree-ssa-scopedtables.c: Likewise.
9977 * tree-ssa-sink.c: Likewise.
9978 * tree-ssa-strlen.c: Likewise.
9979 * tree-ssa-structalias.c: Likewise.
9980 * tree-ssa-tail-merge.c: Likewise.
9981 * tree-ssa-ter.c: Likewise.
9982 * tree-ssa-threadedge.c: Likewise.
9983 * tree-ssa-threadupdate.c: Likewise.
9984 * tree-ssa-uncprop.c: Likewise.
9985 * tree-ssa-uninit.c: Likewise.
9986 * tree-ssa.c: Likewise.
9987 * tree-ssanames.c: Likewise.
9988 * tree-stdarg.c: Likewise.
9989 * tree-streamer-in.c: Likewise.
9990 * tree-streamer-out.c: Likewise.
9991 * tree-streamer.c: Likewise.
9992 * tree-switch-conversion.c: Likewise.
9993 * tree-tailcall.c: Likewise.
9994 * tree-vect-data-refs.c: Likewise.
9995 * tree-vect-generic.c: Likewise.
9996 * tree-vect-loop-manip.c: Likewise.
9997 * tree-vect-loop.c: Likewise.
9998 * tree-vect-patterns.c: Likewise.
9999 * tree-vect-slp.c: Likewise.
10000 * tree-vect-stmts.c: Likewise.
10001 * tree-vectorizer.c: Likewise.
10002 * tree-vrp.c: Likewise.
10003 * tree.c: Likewise.
10004 * tsan.c: Likewise.
10005 * ubsan.c: Likewise.
10006 * value-prof.c: Likewise.
10007 * var-tracking.c: Likewise.
10008 * varasm.c: Likewise.
10009 * varpool.c: Likewise.
10010 * vtable-verify.c: Likewise.
10011 * web.c: Likewise.
10012 * wide-int-print.cc: Likewise.
10013 * wide-int.cc: Likewise.
10014 * xcoffout.c: Likewise.
10015
10016 2015-10-29 H.J. Lu <hongjiu.lu@intel.com>
10017
10018 * Makefile.in (NO_PIE_CFLAGS): New.
10019 (NO_PIE_FLAG): Likewise.
10020 (NO_PIE_CFLAGS_FOR_BUILD): Likewise.
10021 (NO_PIE_FLAG_FOR_BUILD): Likewise.
10022 (BUILD_NO_PIE_CFLAGS): Likewise.
10023 (BUILD_NO_PIE_FLAG): Likewise.
10024 (COMPILER): Replace @NO_PIE_CFLAGS@ with $(NO_PIE_CFLAGS).
10025 (LINKER): Replace @NO_PIE_FLAG@ with $(NO_PIE_FLAG).
10026 (BUILD_CFLAGS): Replace @NO_PIE_CFLAGS@ with
10027 $(BUILD_NO_PIE_CFLAGS).
10028 (BUILD_CXXFLAGS): Likewise.
10029 (BUILD_LDFLAGS ): Replace @NO_PIE_FLAG@ with
10030 $(BUILD_NO_PIE_FLAG).
10031 * configure.ac (BUILD_NO_PIE_CFLAGS): New. AC_SUBST.
10032 (BUILD_NO_PIE_FLAG): Likewise.
10033 (NO_PIE_CFLAGS_FOR_BUILD): Likewise.
10034 (NO_PIE_FLAG_FOR_BUILD): Likewise.
10035 * configure: Regenerated.
10036
10037 2015-10-29 Richard Biener <rguenther@suse.de>
10038
10039 PR middle-end/56956
10040 * fold-const.c (fold_cond_expr_with_comparison): Do not fold
10041 unsigned conditonal negation to ABS_EXPR.
10042
10043 2015-10-29 Richard Biener <rguenther@suse.de>
10044
10045 * gimple-match-head.c (gimple_simplify): Remove premature checking
10046 of builtin_decl_implicit of function calls we simplify.
10047
10048 2015-10-29 Bin Cheng <bin.cheng@arm.com>
10049
10050 * tree-ssa-loop-ivopts.c (split_address_cost): Check depends_on.
10051 (get_computation_cost_at): Ditto.
10052 (determine_use_iv_cost_address): Pass NULL for arguments depends_on
10053 and inv_expr_id.
10054
10055 2015-10-28 Tom de Vries <tom@codesourcery.com>
10056
10057 * tree-ssa-structalias.c (intra_create_variable_infos): Remove
10058 superfluous code.
10059
10060 2015-10-28 Jason Merrill <jason@redhat.com>
10061
10062 * Makefile.in (TAGS): Include libcpp and libiberty.
10063
10064 2015-10-28 Nathan Sidwell <nathan@codesourcery.com>
10065
10066 * omp-low.c (MASK_GANG, MASK_WORKER, MASK_VECTOR): Delete.
10067 (extract_omp_for_data): Remove OpenACC special handling of
10068 chunking.
10069
10070 * config/nvptx/nvptx.c (nvptx_print_operand): Remove 'd' case.
10071 (struct parallel): Update comment.
10072 (nvptx_reorg): Likewise.
10073 (nvptx_neuter): Cleanup whitespace.
10074
10075 2015-10-28 Richard Henderson <rth@redhat.com>
10076
10077 * tree-eh.c (mark_reachable_handlers): Fix typo in assert.
10078
10079 2015-10-05 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
10080
10081 PR target/67839
10082 * config/avr/predicates.md (low_io_address_operand): Don't
10083 consider MODE when computing upper bound.
10084 (io_address_operand): Likewise.
10085
10086 2015-10-28 Jan Hubicka <hubicka@ucw.cz>
10087
10088 * fold-const.c (operand_equal_p): Do not verify that types are
10089 compatible for MEM_REFs.
10090
10091 2015-10-28 Richard Biener <rguenther@suse.de>
10092
10093 * gimple-match-head.c (gimple_simplify): Allow VECTOR_CSTs
10094 in simplifying VEC_COND_EXPR conditions.
10095
10096 2015-10-28 Tom de Vries <tom@codesourcery.com>
10097
10098 * tree-ssa-structalias.c (intra_create_variable_infos): Don't iterate
10099 into vi_next of a full_var.
10100
10101 2015-10-28 Tom de Vries <tom@codesourcery.com>
10102
10103 * tree-ssa-structalias.c (new_var_info, make_heapvar)
10104 (make_constraint_from_restrict, make_constraint_from_global_restrict)
10105 (create_function_info_for, create_variable_info_for_1)
10106 (create_variable_info_for): Add and handle add_id parameter.
10107 (get_call_vi, new_scalar_tmp_constraint_exp, handle_rhs_call)
10108 (init_base_vars): Add extra argument to calls to new_var_info.
10109 (get_vi_for_tree): Add extra argument to call to
10110 create_variable_info_for.
10111 (process_constraint, do_deref, process_all_all_constraints): Add extra
10112 argument to calls to new_scalar_tmp_constraint_exp.
10113 (handle_lhs_call, find_func_aliases_for_builtin_call): Add extra
10114 argument to calls to make_heapvar.
10115 (make_restrict_var_constraints): Add extra argument to call to
10116 make_constraint_from_global_restrict.
10117 (intra_create_variable_infos): Add extra argument to call to
10118 create_variable_info_for_1.
10119 (ipa_pta_execute): Add extra argument to call to
10120 create_function_info_for.
10121
10122 2015-10-28 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
10123
10124 * config/aarch64/aarch64.md (call, call_value, sibcall): Handle noplt.
10125 (sibcall_value): Likewise.
10126
10127 2015-10-28 Nathan Sidwell <nathan@codesourcery.com>
10128
10129 * config/nvptx/nvptx.h (struct machine_function): Add
10130 axis_predicate.
10131 * config/nvptx/nvptx-protos.h (nvptx_expand_oacc_fork,
10132 nvptx_expand_oacc_join): Declare.
10133 * config/nvptx/nvptx.md (UNSPEC_NTID, UNSPEC_TID): Delete.
10134 (UNSPEC_DIM_SIZE, UNSPEC_SHARED_DATA, UNSPEC_BIT_CONV,
10135 UNSPEC_SHUFFLE, UNSPEC_BR_UNIFIED): New.
10136 (UNSPECV_BARSYNC, UNSPECV_DIM_POS, UNSPECV_FORK, UNSPECV_FORKED,
10137 UNSPECV_JOINING, UNSPECV_JOIN): New.
10138 (BITS, BITD): New mode iterators.
10139 (br_true_uni, br_false_uni): New.
10140 (*oacc_ntid_insn, oacc_ntid, *oacc_tid_insn, oacc_tid): Delete.
10141 (oacc_dim_size, oacc_dim_pos): New.
10142 (nvptx_fork, nvptx_forked, nvptx_joining, nvptx_join): New.
10143 (oacc_fork, oacc_join): New.
10144 (nvptx_shuffle<mode>, unpack<mode>si2, packsi<mode>2): New.
10145 (worker_load<mode>, worker_store<mode>): New.
10146 (nvptx_barsync): New.
10147 * config/nvptx/nvptx.c: Include gimple.h & dumpfile.h.
10148 (SHUFFLE_UP, SHUFFLE_DOWN, SHUFFLE_BFLY, SHUFFLE_IDX): Define.
10149 (worker_bcast_hwm, worker_bcast_align, worker_bcast_name,
10150 worker_bcast_sym): New.
10151 (nvptx_option_override): Initialize worker broadcast buffer.
10152 (nvptx_emit_forking, nvptx_emit_joining): New.
10153 (nvptx_init_axis_predicate): New.
10154 (nvptx_declare_function_name): Init axis predicates.
10155 (nvptx_expand_call): Add fork/join markers around routine call.
10156 (nvptx_expand_oacc_fork, nvptx_expand_oacc_join): New.
10157 (nvptx_gen_unpack, nvptx_gen_pack, nvptx_gen_shuffle): New.
10158 (nvptx_gen_vcast): New.
10159 (struct wcast_data_t): New.
10160 (enum propagate_mask): New.
10161 (nvptx_gen_wcast): New.
10162 (nvptx_print_operand): Add 'S' case.
10163 (struct parallel): New.
10164 (parallel::parallel, parallel::~parallel): New.
10165 (bb_insn_map_t, insn_bb_t, insn_bb_vec_t): New typedefs.
10166 (nvptx_split_blocks, nvptx_discover_pre, nvptx_dump_pars,
10167 nvptx_find_par, nvptx_discover_pars): New.
10168 (nvptx_propagate): New.
10169 (vprop_gen, nvptx_vpropagate): New.
10170 (wprop_gen, nvptx_wpropagate): New.
10171 (nvptx_wsync): New.
10172 (nvptx_single, nvptx_skip_par): New.
10173 (nvptx_process_pars, nvptx_neuter_pars): New.
10174 (ntptx_reorg): Split blocks, generate parallel structure, apply
10175 neutering.
10176 (nvptx_cannot_copy_insn_p): New.
10177 (nvptx_file_end): Emit worker broadcast decl.
10178 (nvptx_goacc_fork_join): New.
10179 (TARGET_CANNOT_COPY_INSN_P): Override.
10180 (TARGET_GOACC_FORK_JOIN): Override.
10181
10182 2015-10-28 Richard Biener <rguenther@suse.de>
10183
10184 * fold-const.c (negate_expr_p): Adjust the division case to
10185 properly avoid introducing undefined overflow.
10186 (fold_negate_expr): Likewise.
10187
10188 2015-10-28 Richard Biener <rguenther@suse.de>
10189
10190 PR tree-optimization/65962
10191 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children):
10192 Avoid creating loop carried dependences also for outer loops
10193 of the loop a use to replace is in.
10194
10195 2015-10-28 Richard Biener <rguenther@suse.de>
10196
10197 * common.opt (fchecking): New flag controlling flag_checking.
10198 * passes.c (verify_curr_properties): Drop DEBUG_FUNCTION.
10199 * timevar.c (timer::print): Adjust output.
10200 * doc/invoke.texi (fchecking): Document.
10201
10202 2015-10-28 Richard Biener <rguenther@suse.de>
10203
10204 PR middle-end/68067
10205 * fold-const.c (negate_expr_p): We cannot negate plus or minus
10206 if overflow is not wrapping. Likewise multiplication unless
10207 one operand is constant and not power of two.
10208 (fold_negate_expr): Adjust accordingly.
10209
10210 2015-10-27 Nathan Sidwell <nathan@codesourcery.com>
10211
10212 * omp-low.c (struct omp_context): Remove gwv_below, gwv_this
10213 fields.
10214 (is_oacc_parallel, is_oacc_kernels): New.
10215 (enclosing_target_ctx): May return NULL.
10216 (ctx_in_oacc_kernels_region): New.
10217 (check_oacc_kernel_gwv): New.
10218 (oacc_loop_or_target_p): Delete.
10219 (scan_omp_for): Don't calculate gwv mask. Check parallel clause
10220 operands. Strip reductions fro kernels.
10221 (scan_omp_target): Don't calculate gwv mask.
10222 (lower_oacc_head_mark, lower_oacc_loop_marker,
10223 lower_oacc_head_tail): New.
10224 (struct oacc_collapse): New.
10225 (expand_oacc_collapse_init, expand_oacc_collapse_vars): New.
10226 (expand_omp_for_static_nochunk, expand_omp_for_static_chunk):
10227 Remove OpenACC handling.
10228 (expand_oacc_for): New.
10229 (expand_omp_for): Call expand_oacc_for.
10230 (lower_omp_for): Call lower_oacc_head_tail.
10231
10232 2015-10-27 Mikhail Maltsev <maltsevm@gmail.com>
10233
10234 * attribs.c (check_attribute_tables): New function, broken out from...
10235 (init_attributes): Use it.
10236 * cfgcleanup.c (try_optimize_cfg): Use flag_checking, CHECKING_P
10237 gcc_checking_assert and checking_* functions to eliminate
10238 ENABLE_CHECKING conditionals.
10239 * cfgexpand.c (expand_goto, expand_debug_expr): Likewise.
10240 (pass_expand::execute): Likewise.
10241 * cgraphclones.c (symbol_table::materialize_all_clones): Likewise.
10242 * cgraphunit.c (mark_functions_to_output): Likewise.
10243 (cgraph_node::expand_thunk): Likewise.
10244 (symbol_table::compile): Likewise.
10245 * ddg.c (add_cross_iteration_register_deps): Likewise.
10246 (create_ddg_all_sccs): Likewise.
10247 * df-core.c (df_finish_pass, df_analyze): Likewise.
10248 * diagnostic-core.h: Likewise.
10249 * diagnostic.c (diagnostic_report_diagnostic): Likewise.
10250 * dominance.c (calculate_dominance_info): Likewise.
10251 * dwarf2out.c (add_AT_die_ref): Likewise.
10252 (const_ok_for_output_1, mem_loc_descriptor): Likewise.
10253 (loc_list_from_tree, gen_lexical_block_die): Likewise.
10254 gen_type_die_with_usage, gen_type_die): Likewise.
10255 (dwarf2out_decl): Likewise.
10256 * emit-rtl.c (verify_rtx_sharing, reorder_insns_nobb): Likewise.
10257 * except.c (duplicate_eh_regions): Likewise.
10258 * fwprop.c (register_active_defs, update_df_init): Likewise.
10259 (fwprop_init, fwprop_done): Likewise.
10260 (update_uses): Likewise.
10261 * ggc-page.c (ggc_grow): Likewise.
10262 * gimplify.c (gimplify_body): Likewise.
10263 (gimplify_hasher::equal): Likewise.
10264 * graphite-isl-ast-to-gimple.c (graphite_verify): Likewise.
10265 * graphite-scop-detection.c (canonicalize_loop_closed_ssa_form):
10266 Likewise.
10267 * graphite-sese-to-poly.c (rewrite_reductions_out_of_ssa): Likewise.
10268 (rewrite_cross_bb_scalar_deps_out_of_ssa): Likwise.
10269 * hash-table.h (::find_empty_slot_for_expand): Likewise.
10270 * ifcvt.c (if_convert): Likewise.
10271 * ipa-cp.c (ipcp_propagate_stage): Likewise.
10272 * ipa-devirt.c (type_in_anonymous_namespace_p): Likewise.
10273 (odr_type_p, odr_types_equivalent_p): Likewise.
10274 (add_type_duplicate, get_odr_type): Likewise.
10275 * ipa-icf.c (sem_item_optimizer::execute): Likewise.
10276 (sem_item_optimizer::subdivide_classes_by_equality): Likewise.
10277 (sem_item_optimizer::verify_classes): Likewise.
10278 (sem_item_optimizer::traverse_congruence_split): Likewise.
10279 (sem_item_optimizer::checking_verify_classes): New.
10280 * ipa-icf.h (sem_item_optimizer::checking_verify_classes): Add new
10281 method.
10282 * cfgrtl.c (commit_edge_insertions): Likewise.
10283 (fixup_reorder_chain, cfg_layout_finalize): Likewise.
10284 (rtl_flow_call_edges_add): Likewise.
10285 * cgraph.c (symbol_table::create_edge): Likewise.
10286 (cgraph_edge::redirect_call_stmt_to_callee): Likewise.
10287 * cgraph.h (symtab_node): Likewise.
10288 (symtab_node::checking_verify_symtab_nodes): Define.
10289 (cgraph_node::checking_verify_cgraph_nodes): Define.
10290 * cfghooks.h (checking_verify_flow_info): Define.
10291 * cfgloop.h (checking_verify_loop_structure): Define.
10292 * dominance.h (checking_verify_dominators): Define.
10293 * et-forest.c: Fix comment.
10294 * ipa-inline-analysis.c (compute_inline_parameters): Use flag_checking,
10295 CHECKING_P gcc_checking_assert and checking_* functions to eliminate
10296 ENABLE_CHECKING conditionals.
10297 * ipa-inline-transform.c (save_inline_function_body): Likewise.
10298 * ipa-inline.c (inline_small_functions): Likewise.
10299 (early_inliner): Likewise.
10300 * ipa-inline.h (estimate_edge_growth): Likewise.
10301 * ipa-visibility.c (function_and_variable_visibility): Likewise.
10302 * ipa.c (symbol_table::remove_unreachable_nodes): Likewise.
10303 (ipa_single_use): Likewise.
10304 * ira-int.h: Likewise.
10305 * ira.c (ira): Likewise.
10306 * loop-doloop.c (doloop_optimize_loops): Likewise.
10307 * loop-init.c (loop_optimizer_init, fix_loop_structure): Likewise.
10308 * loop-invariant.c (move_loop_invariants): Likewise.
10309 * lra-assigns.c (lra_assign): Likewise.
10310 * lra-constraints.c (lra_constraints): Likewise.
10311 * lra-eliminations.c (lra_eliminate): Likewise.
10312 * lra-int.h (struct lra_reg): Likewise.
10313 * lra-lives.c (check_pseudos_live_through_calls): Likewise.
10314 (lra_create_live_ranges_1): Likewise.
10315 * lra-remat.c (create_remat_bb_data): Likewise.
10316 * lra.c (lra_update_insn_recog_data, restore_scratches): Likewise.
10317 (lra): Likewise.
10318 (check_rtl): Always define. Remove incorrect guard around
10319 extract_constrain_insn call.
10320 * lto-cgraph.c (input_cgraph_1: Use flag_checking,
10321 CHECKING_P gcc_checking_assert and checking_* functions to eliminate
10322 ENABLE_CHECKING conditionals.
10323 * lto-streamer-out.c (DFS::DFS): Likewise.
10324 (lto_output): Likewise.
10325 * lto-streamer.c (lto_streamer_init): Likewise.
10326 * omp-low.c (scan_omp_target, expand_omp_taskreg): Likewise.
10327 expand_omp_target, execute_expand_omp): Likewise.
10328 (lower_omp_target): Likewise.
10329 * passes.c (execute_function_todo): Likewise.
10330 (execute_todo, execute_one_pass): Likewise.
10331 (verify_curr_properties): Always define.
10332 * predict.c (tree_estimate_probability: Use flag_checking,
10333 CHECKING_P gcc_checking_assert and checking_* functions to eliminate
10334 ENABLE_CHECKING conditionals.
10335 (propagate_freq): Likewise.
10336 * pretty-print.c (pp_format): Likewise.
10337 * real.c (real_to_decimal_for_mode): Likewise.
10338 * recog.c (split_all_insns): Likewise.
10339 * regcprop.c (kill_value_one_regno): Likewise.
10340 (copy_value): Likewise.
10341 (validate_value_data): Define unconditionally.
10342 * reload.c: Fix comment.
10343 * timevar.c: Include options.h
10344 * tree-ssa.h (checking_verify_ssa): Define.
10345 * tree-ssa-loop-manip.h (checking_verify_loop_closed_ssa): Define.
10346 * sched-deps.c (CHECK): Remove unused macro.
10347 (add_or_update_dep_1, sd_add_dep: Use flag_checking, CHECKING_P
10348 gcc_checking_assert and checking_* functions to eliminate
10349 ENABLE_CHECKING conditionals.
10350 * sel-sched-ir.c (free_regset_pool, tidy_control_flow): Likewise.
10351 * sel-sched.c (struct moveop_static_params): Likewise.
10352 (find_best_reg_for_expr, move_cond_jump): Likewise.
10353 (move_op_orig_expr_not_found): Likewise.
10354 (code_motion_process_successors, move_op): Likewise.
10355 * ssa-iterators.h (first_readonly_imm_use): Likewise.
10356 (next_readonly_imm_use): Likewise.
10357 * store-motion.c (compute_store_table): Likewise.
10358 * symbol-summary.h (function_summary::function_summary): Likewise.
10359 * target.h (cumulative_args_t): Likewise.
10360 (get_cumulative_args, pack_cumulative_args): Likewise.
10361 * timevar.c: (timer::print): Likewise.
10362 * trans-mem.c (ipa_tm_execute): Likewise.
10363 * tree-cfg.c (move_stmt_op): Likewise.
10364 (move_sese_region_to_fn): Likewise.
10365 (gimple_flow_call_edges_add): Likewise.
10366 * tree-cfgcleanup.c (cleanup_tree_cfg_noloop, repair_loop_structures):
10367 Likewise.
10368 * tree-eh.c (remove_unreachable_handlers): Likewise.
10369 * tree-if-conv.c (pass_if_conversion::execute): Likewise.
10370 * tree-inline.c (expand_call_inline, optimize_inline_calls): Likewise.
10371 * tree-into-ssa.c (update_ssa): Likewise.
10372 * tree-loop-distribution.c (pass_loop_distribution::execute): Likewise.
10373 * tree-outof-ssa.c (eliminate_useless_phis, rewrite_trees): Likewise.
10374 * tree-parloops.c (pass_parallelize_loops::execute): Likewise.
10375 * tree-predcom.c (suitable_component_p): Likewise.
10376 * tree-profile.c (gimple_gen_const_delta_profiler): Likewise.
10377 * tree-ssa-alias.c (refs_may_alias_p_1): Likewise.
10378 * tree-ssa-live.c (verify_live_on_entry): Likewise.
10379 * tree-ssa-live.h (register_ssa_partition): Likewise.
10380 * tree-ssa-loop-ivcanon.c (tree_unroll_loops_completely): Likewise.
10381 * tree-ssa-loop-manip.c (add_exit_phi): Likewise.
10382 (tree_transform_and_unroll_loop): Likewise.
10383 * tree-ssa-math-opts.c (pass_cse_reciprocals::execute): Likewise.
10384 * tree-ssa-operands.c (get_expr_operands): Likewise.
10385 * tree-ssa-propagate.c (replace_exp_1): Likewise.
10386 * tree-ssa-structalias.c (rewrite_constraints): Likewise.
10387 * tree-ssa-ter.c (free_temp_expr_table): Likewise.
10388 * tree-ssa-threadupdate.c (duplicate_thread_path): Likewise.
10389 * tree-ssanames.c (release_ssa_name_fn): Likewise.
10390 * tree-stdarg.c (expand_ifn_va_arg): Likewise.
10391 * tree-vect-loop-manip.c
10392 (slpeel_tree_duplicate_loop_to_edge_cfg): Likewise.
10393 (slpeel_checking_verify_cfg_after_peeling): Likewise.
10394 (vect_do_peeling_for_loop_bound): Likewise.
10395 (vect_do_peeling_for_alignment): Likewise.
10396 * tree-vrp.c (supports_overflow_infinity): Likewise.
10397 (set_value_range): Likewise.
10398 * tree.c (free_lang_data_in_cgraph): Likewise.
10399 * value-prof.c (gimple_remove_histogram_value): Likewise.
10400 (free_hist): Likewise.
10401 * var-tracking.c (canonicalize_values_star): Likewise.
10402 (compute_bb_dataflow, vt_find_locations, vt_emit_notes): Likewise.
10403
10404 2015-10-27 Nathan Sidwell <nathan@codesourcery.com>
10405
10406 * internal-fn.def (IFN_GOACC_DIM_SIZE, IFN_GOACC_DIM_POS,
10407 IFN_GOACC_LOOP): New.
10408 * internal-fn.h (enum ifn_unique_kind): Add IFN_UNIQUE_OACC_FORK,
10409 IFN_UNIQUE_OACC_JOIN, IFN_UNIQUE_OACC_HEAD_MARK,
10410 IFN_UNIQUE_OACC_TAIL_MARK.
10411 (enum ifn_goacc_loop_kind): New.
10412 * internal-fn.c (expand_UNIQUE): Add IFN_UNIQUE_OACC_FORK,
10413 IFN_UNIQUE_OACC_JOIN cases.
10414 (expand_GOACC_DIM_SIZE, expand_GOACC_DIM_POS): New.
10415 (expand_GOACC_LOOP): New.
10416 * target-insns.def (oacc_dim_pos, oacc_dim_size): New.
10417 * omp-low.c: Include gimple-pretty-print.h.
10418 (struct oacc_loop): New.
10419 (enum oacc_loop_flags): New.
10420 (oacc_thread_numbers): New.
10421 (oacc_xform_loop): New.
10422 (new_oacc_loop_raw, new_oacc_loop_outer, new_oacc_loop,
10423 new_oacc_loop_routine, finish_oacc_loop, free_oacc_loop): New,
10424 (dump_oacc_loop_part, dump_oacc_loop, debug_oacc_loop): New,
10425 (oacc_loop_discover_walk, oacc_loop_sibling_nrevers,
10426 oacc_loop_discovery): New.
10427 (oacc_loop_xform_head_tail, oacc_loop_xform_loop,
10428 oacc_loop_process): New.
10429 (oacc_loop_fixed_partitions, oacc_loop_partition): New.
10430 (execute_oacc_device_lower): Discover & process loops. Process
10431 internal fns.
10432 * target.def (goacc.fork_join): Change sense of hook, clarify
10433 documentation.
10434 * doc/tm.texi: Regenerated.
10435
10436 2015-10-27 Nathan Sidwell <nathan@codesourcery.com>
10437
10438 * target-insns.def (oacc_fork, oacc_join): Define.
10439 * target.def (goacc.validate_dims): Adjust doc to avoid warning.
10440 (goacc.fork_join): New GOACC hook.
10441 * targhooks.h (default_goacc_fork_join): Declare.
10442 * omp-low.c (default_goacc_forkjoin): New.
10443 * doc/tm.texi.in (TARGET_GOACC_FORK_JOIN): Add.
10444 * doc/tm.texi: Regenerate.
10445
10446 2015-10-27 Nathan Sidwell <nathan@codesourcery.com>
10447
10448 * omp-low.c (oacc_init_rediction_array): New.
10449 (oacc_initialize_reduction_data): Initialize array.
10450
10451 2015-10-27 Nathan Sidwell <nathan@codesourcery.com>
10452
10453 * omp-low.c (pass_oacc_device_lower::execute): Ignore errors.
10454
10455 2015-10-27 Nathan Sidwell <nathan@codesourcery.com>
10456
10457 * internal-fn.c (expand_UNIQUE): New.
10458 * internal-fn.h (enum ifn_unique_kind): New.
10459 * internal-fn.def (IFN_UNIQUE): New.
10460 * target-insns.def (unique): Define.
10461 * gimple.h (gimple_call_internal_unique_p): New.
10462 * gimple.c (gimple_call_same_target_p): Check internal fn
10463 uniqueness.
10464 * tracer.c (ignore_bb_p): Check for IFN_UNIQUE call.
10465 * tree-ssa-threadedge.c
10466 (record_temporary_equivalences_from_stmts): Likewise.
10467 * tree-cfg.c (gmple_call_initialize_ctrl_altering): Likewise.
10468
10469 2015-10-27 Richard Henderson <rth@redhat.com>
10470
10471 PR rtl-opt/67609
10472 * config/i386/i386.c (ix86_cannot_change_mode_class): Disallow
10473 narrowing subregs on SSE and MMX registers.
10474 * doc/tm.texi.in (CANNOT_CHANGE_MODE_CLASS): Clarify when subregs that
10475 appear to be sub-words of multi-register pseudos must be rejected.
10476 * doc/tm.texi: Regenerate.
10477
10478 2015-10-27 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
10479
10480 PR target/68102
10481 * config/aarch64/aarch64.md (*movsi_aarch64): Check that
10482 operands[0] is a reg before taking its REGNO in split condition.
10483 (*movdi_aarch64): Likewise.
10484
10485 2015-10-27 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
10486
10487 * config/aarch64/aarch64.c (aarch64_output_simd_mov_immediate):
10488 Handle floating point inner modes properly.
10489
10490 2015-10-27 Alan Hayward <alan.hayward@arm.com>
10491
10492 * tree-vect-looop.c
10493 (vectorizable_live_operation): Change iterator.
10494
10495 2015-10-27 Abderrazek Zaafrani <a.zaafrani@samsung.com>
10496 Aditya Kumar <aditya.k7@samsung.com>
10497
10498 * graphite-optimize-isl.c (get_schedule_for_node_st): New callback
10499 function to schedule based on isl_schedule_node.
10500 (get_schedule_map_st): New schedule optimizer based on
10501 isl_schedule_node.
10502 (scop_get_domains): New. Return the isl_union_set containing the
10503 domains of all the pbbs.
10504 (optimize_isl): Call the new function get_schedule_map_st for isl-0.15
10505
10506 2015-10-27 H.J. Lu <hongjiu.lu@intel.com>
10507
10508 PR target/67215
10509 * calls.c (prepare_call_address): Don't handle -fno-plt here.
10510 * config/i386/i386.c (ix86_expand_call): Generate indirect call
10511 via GOT for -fno-plt. Support indirect call via GOT for x32.
10512 * config/i386/predicates.md (sibcall_memory_operand): Allow
10513 GOT memory operand.
10514
10515 2015-10-27 Richard Biener <rguenther@suse.de>
10516
10517 PR tree-optimization/68104
10518 * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Move
10519 strided access check ...
10520 (vect_compute_data_refs_alignment): ... here.
10521
10522 2015-10-27 Daniel Jacobowitz <dan@codesourcery.com>
10523 Joseph Myers <joseph@codesourcery.com>
10524 Mark Shinwell <shinwell@codesourcery.com>
10525 Andrew Stubbs <ams@codesourcery.com>
10526 Rich Felker <dalias@libc.org>
10527
10528 * config.gcc: Handle --enable-fdpic.
10529 * config/sh/constraints.md (Ccl): New constraint.
10530 * config/sh/linux.h (SUBTARGET_LINK_EMUL_SUFFIX): Handle -mfdpic.
10531 * config/sh/sh-c.c (sh_cpu_cpp_builtins): Add __FDPIC__ and
10532 __SH_FDPIC__.
10533 * config/sh/sh-mem.cc (expand_block_move): Support FDPIC for calls to
10534 library functions.
10535 * config/sh/sh-protos.h (function_symbol_result): New struct.
10536 (function_symbol): Return function_symbol_result.
10537 (sh_get_fdpic_reg_initial_val, sh_load_function_descriptor): New
10538 declarations.
10539 * config/sh/sh.c (TARGET_ASM_INTEGER, sh_assemble_integer): Implement
10540 target hook.
10541 (TARGET_CANNOT_FORCE_CONST_MEM, sh_cannot_force_const_mem_p): Likewise.
10542 (sh_option_override): Force -fPIC if FDPIC is in effect.
10543 (sh_asm_output_addr_const_extra): Add UNSPEC_GOTFUNCDESC and
10544 UNSPEC_GOTOFFFUNCDESC cases.
10545 (prepare_move_operands): Use FDPIC initial GOT register for
10546 TLS-related GOT access; inhibit cross-section address offset constants
10547 for FDPIC.
10548 (sh_assemble_integer): New function.
10549 (sh_cannot_copy_insn_p): Inhibit copying insns that are FDPIC
10550 PC-relative call sites.
10551 (expand_ashiftrt): Adapt invocation of function_symbol.
10552 (sh_expand_prologue): Inhibit PC-relative GOT address load for FDPIC.
10553 (nonpic_symbol_mentioned_p): Add cases for UNSPEC_GOTFUNCDESC and
10554 UNSPEC_GOTOFFFUNCDESC.
10555 (legitimize_pic_address): Resolve function symbols to function
10556 descriptors for FDPIC. Do not use GOT-relative addressing for local
10557 data that may be read-only on FDPIC.
10558 (sh_emit_storesi, sh_emit_storehi): New functions.
10559 (sh_trampoline_init): Generate FDPIC trampolines.
10560 (sh_function_ok_for_sibcall): Add TARGET_FDPIC check.
10561 (sh_expand_sym_label2reg): Don't assume sibcalls are local.
10562 (sh_output_mi_thunk): Generate FDPIC call.
10563 (function_symbol): Return function_symbol_result. For SFUNC_STATIC on
10564 FDPIC, generate call site labels to use PC-relative addressing rather
10565 than GOT-relative addressing.
10566 (sh_conditional_register_usage): Make PIC register fixed and call used
10567 when FDPIC is in effect.
10568 (sh_legitimate_constant_p): Impose FDPIC constant constraints.
10569 (sh_cannot_force_const_mem_p, sh_load_function_descriptor,
10570 sh_get_fdpic_reg_initial_val): New functions.
10571 * config/sh/sh.h (SUBTARGET_ASM_SPEC, SUBTARGET_LINK_EMUL_SUFFIX):
10572 Handle -mfdpic.
10573 (FDPIC_SELF_SPECS, SUBTARGET_DRIVER_SELF_SPECS,
10574 PIC_OFFSET_TABLE_REG_CALL_CLOBBERED,
10575 SH_OFFSETS_MUST_BE_WITHIN_SECTIONS_P): New macros.
10576 (DRIVER_SELF_SPECS): Add SUBTARGET_DRIVER_SELF_SPECS and
10577 FDPIC_SELF_SPECS.
10578 (TRAMPOLINE_SIZE): Select trampoline size for FDPIC.
10579 (ASM_PREFERRED_EH_DATA_FORMAT): Add EH format constraints for FDPIC.
10580 (ASM_MAYBE_OUTPUT_ENCODED_ADDR_RTX): Handle FDPIC case.
10581 * config/sh/sh.md (UNSPEC_GOTFUNCDESC, UNSPEC_GOTOFFFUNCDESC): New
10582 constants.
10583 (calli_fdpic, call_valuei_fdpic, sibcalli_fdpic, sibcalli_pcrel_fdpic,
10584 sibcall_pcrel_fdpic, sibcall_valuei_fdpic, sibcall_valuei_pcrel_fdpic,
10585 sibcall_value_pcrel_fdpic, sym2GOTFUNCDESC, symGOTFUNCDESC2reg,
10586 sym2GOTOFFFUNCDESC, symGOTOFFFUNCDESC2reg): New patterns.
10587 (udivsi3_i1, udivsi3_i4, udivsi3_i4_single, udivsi3,
10588 *divsi_inv_call_combine, divsi3_i4, divsi3_i4_single, divsi3, ashlsi3,
10589 ashlsi3_d_call, ashrsi3_n, lshrsi3, lshrsi3_d_call, calli, call_valuei,
10590 call, call_value, sibcalli, sibcalli_pcrel, sibcall_pcrel, sibcall,
10591 sibcall_valuei, sibcall_valuei_pcrel, sibcall_value_pcrel,
10592 sibcall_value, GOTaddr2picreg, symGOT_load, symGOTOFF2reg,
10593 block_move_real, block_lump_real, block_move_real_i4,
10594 block_lump_real_i4): Add support for FDPIC calls.
10595 (mulsi3, ic_invalidate_line, initialize_trampoline, call_pop,
10596 call_value_pop): Adjust for new function_symbol signature.
10597 * config/sh/sh.opt (-mfdpic): New option.
10598 * doc/install.texi (Options specification): Document --enable-fdpic.
10599 * doc/invoke.texi (SH Options): Document -mfdpic.
10600
10601
10602 2015-10-27 Alan Lawrence <alan.lawrence@arm.com>
10603
10604 PR tree-optimization/65963
10605 * tree-scalar-evolution.c (interpret_rhs_expr): Handle some
10606 LSHIFT_EXPRs as equivalent MULT_EXPRs.
10607
10608 2015-10-27 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
10609
10610 PR target/67929
10611 * config/arm/arm.c (vfp3_const_double_for_bits): Rewrite.
10612 * config/arm/constraints.md (Dp): Update callsite.
10613 * config/arm/predicates.md (const_double_vcvt_power_of_two): Likewise.
10614
10615 2015-10-27 Richard Sandiford <richard.sandiford@arm.com>
10616
10617 * builtins.c (fold_builtin_load_exponent): Rename to...
10618 (fold_const_builtin_load_exponent): ...this and only handle
10619 constant arguments.
10620 (fold_builtin_2): Update accordingly.
10621 * match.pd: Add rules previously handled by fold_builtin_load_exponent.
10622
10623 2015-10-27 Richard Sandiford <richard.sandiford@arm.com>
10624
10625 * builtins.c (fold_builtin_logb): Rename to...
10626 (fold_const_builtin_logb): ...this and remove STRIP_NOPS call.
10627 (fold_builtin_significand): Rename to...
10628 (fold_const_builtin_significand): ...this and remove STRIP_NOPS call.
10629 (fold_builtin_1): Update accordingly.
10630
10631 2015-10-27 Richard Sandiford <richard.sandiford@arm.com>
10632
10633 * builtins.c (fold_builtin_fmin_fmax): Delete.
10634 (fold_builtin_2): Handle constant fmin and fmax arguments here.
10635 * match.pd: Add rules previously handled by fold_builtin_fmin_fmax.
10636
10637 2015-10-27 Evandro Menezes <e.menezes@samsung.com>
10638
10639 * config/aarch64/aarch64-protos.h (cpu_addrcost_table): Split member
10640 for register extension into sign and zero register extension.
10641 * config/aarch64/aarch64.c (generic_addrcost_table): Infer values
10642 for sign and zero register extension.
10643 (cortexa57_addrcost_table): Likewise.
10644 (xgene1_addrcost_table): Likewise.
10645
10646 2015-10-27 Richard Sandiford <richard.sandiford@arm.com>
10647
10648 * fold-const.c (fold_minmax): Delete.
10649 (fold_binary_loc): Don't call it.
10650 * match.pd: Add rules previously handled by fold_minmax.
10651
10652 2015-10-27 Richard Sandiford <richard.sandiford@arm.com>
10653
10654 * builtins.c (fold_builtin_fma): Remove constant handling.
10655 (fold_builtin_3): Handle constant fma arguments here.
10656
10657 2015-10-27 Richard Sandiford <richard.sandiford@arm.com>
10658
10659 * builtins.c (fold_builtin_fabs): Remove constant handling.
10660 (fold_builtin_abs): Likewise.
10661
10662 2015-10-27 Richard Sandiford <richard.sandiford@arm.com>
10663
10664 * builtins.c (fold_builtin_copysign): Delete.
10665 (fold_builtin_2): Handle constant copysign arguments here.
10666 * match.pd: Add rules previously handled by fold_builtin_copysign.
10667
10668 2015-10-27 Richard Sandiford <richard.sandiford@arm.com>
10669
10670 * builtins.c (fold_builtin_signbit): Delete.
10671 (fold_builtin_2): Handle constant signbit arguments here.
10672 * match.pd: Add rules previously handled by fold_builtin_signbit.
10673
10674 2015-10-27 Richard Sandiford <richard.sandiford@arm.com>
10675
10676 * match.pd: Handle sqrt(x) cmp 0 specially.
10677
10678 2015-10-27 Ilya Enkovich <enkovich.gnu@gmail.com>
10679
10680 * tree-vect-generic.c (expand_vector_operations_1): Check
10681 optab type before using it.
10682
10683 2015-10-27 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
10684
10685 * config/aarch64/aarch64-protos.h
10686 (struct tune_params): Add autoprefetcher_model field.
10687 * config/aarch64/aarch64.c: Include params.h
10688 (generic_tunings): Specify autoprefetcher_model value.
10689 (cortexa53_tunings): Likewise.
10690 (cortexa57_tunings): Likewise.
10691 (cortexa72_tunings): Likewise.
10692 (thunderx_tunings): Likewise.
10693 (xgene1_tunings): Likewise.
10694 (aarch64_first_cycle_multipass_dfa_lookahead_guard): New function.
10695 (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD): Define.
10696 (aarch64_override_options_internal): Set
10697 PARAM_SCHED_AUTOPREF_QUEUE_DEPTH param.
10698
10699 2015-10-27 Richard Sandiford <richard.sandiford@arm.com>
10700
10701 * builtins.c (fold_builtin_exponent): Delete.
10702 (fold_builtin_2): Handle constant expN arguments here.
10703 * match.pd: Fold expN(logN(x)) -> x.
10704
10705 2015-10-27 Richard Sandiford <richard.sandiford@arm.com>
10706
10707 * builtins.c (fold_builtin_powi): Delete.
10708 (fold_builtin_2): Handle constant powi arguments here.
10709 * match.pd: Add rules previously handled by fold_builtin_powi.
10710
10711 2015-10-27 Richard Sandiford <richard.sandiford@arm.com>
10712
10713 * builtins.c (fold_builtin_pow): Delete in favor of...
10714 (fold_const_builtin_pow): ...this new function. Only handle constant
10715 arguments.
10716 (fold_builtin_2): Update accordingly.
10717 * match.pd: Add rules previously handled by fold_builtin_pow.
10718
10719 2015-10-27 Richard Sandiford <richard.sandiford@arm.com>
10720
10721 * builtins.c (fold_builtin_hypot): Delete.
10722 (fold_builtin_2): Handle constant hypot arguments here.
10723 * match.pd: Fold hypot(x, 0) and hypot(0, x) to x. Canonicalize
10724 hypot(x, x) to fabs(x)*sqrt(2).
10725
10726 2015-10-27 Richard Sandiford <richard.sandiford@arm.com>
10727
10728 * gimple-match-head.c (maybe_push_res_to_seq): Use create_tmp_reg
10729 instead of make_ssa_name if not yet in SSA form.
10730
10731 2015-10-27 Richard Biener <rguenther@suse.de>
10732
10733 * cfg.c (free_edge): Add function argument and use it instead of cfun.
10734 (clear_edges): Likewise.
10735 * cfg.h (clear_edges): Adjust prototype.
10736 * cfgexpand.c (pass_expand::execute): Adjust.
10737 * cfgloop.c (release_recorded_exits): Add function argument and use
10738 it instead of cfun.
10739 * cfgloop.h (release_recorded_exits): Adjust prototype.
10740 (loops_state_satisfies_p): Add overload with function argument.
10741 (loops_state_set): Likewise.
10742 (loops_state_clear): Likewise.
10743 (struct loop_iterator): Add function argument to constructor
10744 and iterator and use it instead of cfun.
10745 (FOR_EACH_LOOP_FN): New macro.
10746 (loop_optimizer_finalize): Add overload with function argument.
10747 * loop-init.c (loop_optimizer_init): Adjust.
10748 (fix_loop_structure): Likewise.
10749 (loop_optimizer_finaliz): Add function argument and use it
10750 instead of cfun.
10751 * tree-cfg.c (delete_tree_cfg_annotations): Likewise.
10752 * tree-cfg.h (delete_tree_cfg_annotations): Adjust prototype.
10753 * cgraph.c (release_function_body): Do not push/pop cfun.
10754 * final.c (rest_of_clean_state): Adjust.
10755 * graphite.c (graphite_finalize): Likewise.
10756 * tree-ssa-copy.c (fini_copy_prop): Likewise.
10757 * tree-ssa-dce.c (perform_tree_ssa_dce): Likewise.
10758 * tree-ssa-loop-ivcanon.c (canonicalize_induction_variables): Likewise.
10759 (tree_unroll_loops_completely): Likewise.
10760 (pass_complete_unrolli::execute): Likewise.
10761 * tree-ssa-loop-niter.c (free_numbers_of_iterations_estimates):
10762 Add function argument and use it instead of cfun.
10763 * tree-ssa-loop-niter.h (free_numbers_of_iterations_estimates):
10764 Adjust prototype.
10765 * tree-ssa-loop.c (tree_ssa_loop_done): Adjust.
10766 * tree-ssa.c (delete_tree_ssa): Add function argument and use it
10767 instead of cfun.
10768 * tree-ssa.h (delete_tree_ssa): Adjust prototype.
10769 * tree-ssanames.c (fini_ssanames): Add function argument and use it
10770 instead of cfun.
10771 * tree-ssanames.c (fini_ssanames): Adjust prototype.
10772 * tree-vrp.c (execute_vrp): Adjust.
10773 * value-prof.c (free_histograms): Add function argument and use it
10774 instead of cfun.
10775 * value-prof.h (free_histograms): Adjust prototype.
10776
10777 2015-10-27 Thomas Schwinge <thomas@codesourcery.com>
10778
10779 * tree.h (OACC_PARALLEL_BODY, OACC_PARALLEL_CLAUSES)
10780 (OACC_KERNELS_BODY, OACC_KERNELS_CLAUSES, OACC_KERNELS_COMBINED)
10781 (OACC_PARALLEL_COMBINED): Don't define macros. Adjust all users.
10782
10783 2015-10-27 Tom de Vries <tom@codesourcery.com>
10784
10785 * tree-ssa-structalias.c (push_fields_onto_fieldstack): Add and use var
10786 field_type.
10787
10788 2015-10-27 Bin Cheng <bin.cheng@arm.com>
10789
10790 * loop-invariant.c (struct def): New field can_prop_to_addr_uses.
10791 (inv_can_prop_to_addr_use): New function.
10792 (record_use): Call can_prop_to_addr_uses, set the new field.
10793 (get_inv_cost): Count cost if inv can't be propagated into its
10794 address uses.
10795
10796 2015-10-26 Doug Evans <dje@google.com>
10797
10798 * config/linux.h (INCLUDE_DEFAULTS): Add INCLUDE_DEFAULTS_MUSL_LOCAL.
10799
10800 2015-10-26 Eric Botcazou <ebotcazou@adacore.com>
10801
10802 * match.pd (fold_widened_comparison): Apply simplifications to all
10803 integral types.
10804
10805 2015-10-26 Simon Dardis <simon.dardis@imgtec.com>
10806
10807 * target.def (TARGET_NO_SPECULATION_IN_DELAY_SLOTS_P): New hook.
10808 * doc/tm.texi.in (TARGET_NO_SPECULATION_IN_DELAY_SLOTS_P): Document.
10809 * doc/tm.texi: Regenerated.
10810 * reorg.c (dbr_schedule): Use new hook.
10811 * config/mips/mips.c (mips_no_speculation_in_delay_slots_p): New.
10812
10813 2015-10-26 Jeff Law <law@redhat.com>
10814
10815 PR tree-optimization/68013
10816 * tree-ssa-threadbackward.c (fsm_find_control_statement_thread_paths):
10817 Make sure the first block in the path is in VISITED_BBs.
10818
10819 2015-10-26 Richard Biener <rguenther@suse.de>
10820 Dominik Vogt <vogt@linux.vnet.ibm.com>
10821
10822 PR middle-end/67443
10823 * alias.c (ao_ref_from_mem): Remove promoted subreg handling.
10824 Properly prune ref->ref for accesses outside of ref.
10825
10826 2015-10-26 Richard Sandiford <richard.sandiford@arm.com>
10827
10828 * gimple-fold.c (replace_stmt_with_simplification): Don't allow
10829 new statements to be inserted if inplace. Allow calls to have
10830 nonempty sequences.
10831
10832 2015-10-26 Richard Biener <rguenther@suse.de>
10833
10834 * tree-object-size.c: Remove builtins.h include, include tree-cfg.h.
10835 (do_valueize): New function.
10836 (pass_object_sizes::execute): Use gimple_fold_stmt_to_constant and
10837 replace_uses_by.
10838 * tree-ssa-threadedge.c: Remove builtins.h include, include
10839 gimple-fold.h
10840 (fold_assignment_stmt): Remove.
10841 (threadedge_valueize): New function.
10842 (record_temporary_equivalences_from_stmts): Use
10843 gimple_fold_stmt_to_constant_1, note additional cleanup
10844 opportunities.
10845
10846 2015-10-26 Richard Biener <rguenther@suse.de>
10847
10848 * match.pd ((A & ~B) - (A & B) -> (A ^ B) - B): Add missing :c.
10849 ( (X & ~Y) | (~X & Y) -> X ^ Y): Remove redundant :c.
10850
10851 2015-10-26 Alan Hayward <alan.hayward@arm.com>
10852
10853 * tree-vect-loop.c (vect_create_epilog_for_reduction): Fix
10854 VEC_COND_EXPR types.
10855
10856 2015-10-26 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
10857
10858 * auto-inc-dec.c (insert_move_insn_before): Delete.
10859 (attempt_change): Remember to cost the simple move in the
10860 FORM_PRE_ADD and FORM_POST_ADD cases.
10861
10862 2015-10-26 Kaz Kojima <kkojima@gcc.gnu.org>
10863
10864 PR target/68091
10865 * config/sh/sh.c (sh_vector_mode_supported_p): Use
10866 TARGET_SHMEDIA_FPU instead of TARGET_FPU_ANY.
10867
10868 2015-10-26 Tom de Vries <tom@codesourcery.com>
10869
10870 * tree-ssa-structalias.c (make_restrict_var_constraints): New function,
10871 factored out of ...
10872 (intra_create_variable_infos): ... here.
10873
10874 2015-10-26 Tom de Vries <tom@codesourcery.com>
10875
10876 * tree-ssa-structalias.c (intra_create_variable_infos): Add
10877 restrict_pointer_p and recursive_restrict_p variables.
10878
10879 2015-10-26 Tom de Vries <tom@codesourcery.com>
10880
10881 * tree-ssa-structalias.c (intra_create_variable_infos): Inline
10882 get_vi_for_tree call.
10883
10884 2015-10-26 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
10885
10886 PR middle-end/67989
10887 * optabs.c (expand_atomic_compare_and_swap): Handle case when
10888 ptarget_oval or ptarget_bool are const0_rtx.
10889
10890 2015-10-26 Christian Bruel <christian.bruel@st.com>
10891
10892 * function.h (MINIMUM_METHOD_BOUNDARY): New macro.
10893 * cp/decl.c (grokfndecl): Set DECL_ALIGN with MINIMUM_METHOD_BOUNDARY.
10894 * cp/method.c (implicitly_declare_fn): Likewise.
10895 * cp/lambda.c (maybe_add_lambda_conv_op): Likewise. Remove VBIT setting.
10896 * java/class.c (add_method_1): Likewise.
10897
10898 2015-10-26 Richard Biener <rguenther@suse.de>
10899
10900 * alloc-pool.h (base_pool_allocator): Use placement new.
10901 (base_pool_allocator::remove): Likewise. Compute size outside of
10902 flag_checking.
10903
10904 2015-10-26 Richard Sandiford <richard.sandiford@arm.com>
10905
10906 * builtins.c (do_real_to_int_conversion): New function.
10907 (fold_fixed_mathfn, fold_builtin_int_roundingfn): Delete.
10908 (fold_builtin_1): Handle constant {i,l,ll}{ceil,floor,round}{f,,l}
10909 arguments here.
10910 * match.pd: Add rules previously handled by fold_fixed_mathfn
10911 and fold_builtin_int_roundingfn.
10912
10913 2015-10-26 Richard Sandiford <richard.sandiford@arm.com>
10914
10915 * match.pd: Use macros to define built-in operator lists.
10916
10917 2015-10-20 Richard Sandiford <richard.sandiford@arm.com>
10918 Richard Biener <rguenther@suse.de>
10919
10920 * genmatch.c (dt_simplify::gen): Skip captures that are
10921 part of the result.
10922 (parser::parse_expr): Allow captures in results too.
10923 * builtins.c (fold_builtin_cexp): Delete.
10924 (fold_builtin_1): Handle constant cexp arguments here.
10925 * match.pd: Fold cexp(x+yi) to exp(x) * cexpi(y).
10926
10927 2015-10-26 Mikhail Maltsev <maltsevm@gmail.com>
10928
10929 * alloc-pool.h (base_pool_allocator::initialize, ::allocate): Remove
10930 conditional compilation.
10931 (base_pool_allocator::remove): Use flag_checking.
10932
10933 2015-10-25 John David Anglin <danglin@gcc.gnu.org>
10934
10935 * config/pa/som.h (EH_FRAME_THROUGH_COLLECT2): Define.
10936
10937 PR middle-end/68079
10938 * dojump.c (do_compare_and_jump): Canonicalize both function and
10939 method types.
10940
10941 2015-10-25 Uros Bizjak <ubizjak@gmail.com>
10942
10943 PR target/68084
10944 * config/i386/i386.c (ix86_md_asm_adjust) [case 'a']: Use NE code
10945 for =@ccae.
10946
10947 2015-10-23 Jan Hubicka <hubicka@ucw.cz>
10948
10949 PR ipa/pr67600
10950 * ipa-polymorphic-call.c
10951 (ipa_polymorphic_call_context::get_dynamic_type): Do not confuse
10952 instance offset with offset of outer type.
10953
10954 2015-10-23 Jan Hubicka <hubicka@ucw.cz>
10955
10956 * fold-const.c (operand_equal_p): Handle VIEW_CONVERT_EXPR.
10957
10958 2015-10-23 Caroline Tice <cmtice@google.com>
10959
10960 (from Richard Biener
10961 * tree.c (int_cst_hasher::hash): Replace XOR with more efficient
10962 call to iterative_hash_host_wide_int.
10963
10964 2015-10-23 David Edelsohn <dje.gcc@gmail.com>
10965
10966 * config.gcc (powerpc-ibm-aix[6789]) [default_use_cxa_atexit]:
10967 Define as yes.
10968
10969 2015-10-23 Ilya Enkovich <enkovich.gnu@gmail.com>
10970
10971 * tree-vect-generic.c (expand_vector_operations_1): Check
10972 optab exists before use it.
10973
10974 2015-10-23 Ilya Enkovich <enkovich.gnu@gmail.com>
10975
10976 * tree-vect-generic.c (expand_vector_condition): Avoid
10977 uninitialized variable warning.
10978
10979 2015-10-23 Jeff Law <law@redhat.com>
10980
10981 * passes.c (execute_function_todo): Do not call flush_ssaname_freelist
10982 here. Instead...
10983 (execute_todo): Call it here.
10984 * tree-ssanames.c (make_ssa_name_fn): Unconditionally gather reuse
10985 statistics
10986 (pass_release_ssa_names::execute): Do not call flusH_ssaname_freelist.
10987
10988 2015-10-23 Gregor Richards <gregor.richards@uwaterloo.ca>
10989 Szabolcs Nagy <szabolcs.nagy@arm.com>
10990
10991 * config.gcc (enable_secureplt): Add *-linux*-musl*.
10992
10993 2015-10-23 Jeff Law <law@redhat.com>
10994
10995 PR tree-optimization/67830
10996 * match.pd ((bit_and (plus/minus (convert @0) (convert @1)) mask)):
10997 Explicitly verify the mask has no bits outside the type of
10998 the innermost operands.
10999
11000 2015-10-23 Gregor Richards <gregor.richards@uwaterloo.ca>
11001 Szabolcs Nagy <szabolcs.nagy@arm.com>
11002
11003 * config/rs6000/linux64.h (MUSL_DYNAMIC_LINKER32): Define.
11004 (MUSL_DYNAMIC_LINKER64): Define.
11005 (GNU_USER_DYNAMIC_LINKER32): Update.
11006 (GNU_USER_DYNAMIC_LINKER64): Update.
11007 (CHOOSE_DYNAMIC_LINKER): Update.
11008
11009 * config/rs6000/sysv4.h (GNU_USER_DYNAMIC_LINKER): Update.
11010 (MUSL_DYNAMIC_LINKER, MUSL_DYNAMIC_LINKER_E,)
11011 (INCLUDE_DEFAULTS_MUSL_GPP, INCLUDE_DEFAULTS_MUSL_LOCAL,)
11012 (INCLUDE_DEFAULTS_MUSL_PREFIX, INCLUDE_DEFAULTS_MUSL_CROSS,)
11013 (INCLUDE_DEFAULTS_MUSL_TOOL, INCLUDE_DEFAULTS_MUSL_NATIVE): Define.
11014 (CHOOSE_DYNAMIC_LINKER): Update.
11015 (INCLUDE_DEFAULTS): Redefine.
11016
11017 * config/rs6000/sysv4le.h (MUSL_DYNAMIC_LINKER_E): Define.
11018
11019 2015-10-23 Jan Hubicka <hubicka@ucw.cz>
11020
11021 * fold-const.c (operand_equal_p): Do not compare TYPE_MODE when
11022 comparing addresses.
11023
11024 2015-10-23 Jan Hubicka <hubicka@ucw.cz>
11025
11026 * fold-const.c (operand_equal_p): Handle matching of vector
11027 constructors.
11028
11029 2015-10-23 David Edelsohn <dje.gcc@gmail.com>
11030
11031 * doc/install.texi (*-ibm-aix*): Additional information for AIX 7.1.
11032
11033 2015-10-23 Steve Ellcey <sellcey@imgtec.com>
11034 Andrew Pinski <apinski@cavium.com>
11035
11036 PR rtl-optimization/67736
11037 * combine.c (simplify_comparison): Use gen_lowpart_or_truncate instead
11038 of gen_lowpart.
11039
11040 2015-10-23 Ilya Enkovich <enkovich.gnu@gmail.com>
11041
11042 PR middle-end/68066
11043 * tree.c (build_truth_vector_type): Support BLK mode
11044 returned for boolean vector.
11045
11046 2015-10-23 Alan Hayward <alan.hayward@arm.com>
11047
11048 PR tree-optimization/65947
11049 * tree-vect-loop.c
11050 (vect_is_simple_reduction_1): Find condition reductions.
11051 (vect_model_reduction_cost): Add condition reduction costs.
11052 (get_initial_def_for_reduction): Add condition reduction initial var.
11053 (vect_create_epilog_for_reduction): Add condition reduction epilog.
11054 (vectorizable_reduction): Condition reduction support.
11055 * tree-vect-stmts.c (vectorizable_condition): Add vect reduction arg
11056 * doc/sourcebuild.texi (Vector-specific attributes): Document
11057 vect_max_reduc
11058
11059 2015-10-23 Richard Biener <rguenther@suse.de>
11060
11061 * Makefile.in (build/genmatch.o): Properly depend on is-a.h, tree.def
11062 and builtins.def.
11063
11064 2015-10-23 Richard Biener <rguenther@suse.de>
11065 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
11066
11067 * fold-const.c (fold_binary_loc) : Move Fold (A & ~B) - (A & B)
11068 into (A ^ B) - B to match.pd
11069 Move (X & ~Y) | (~X & Y) is X ^ Y to match.pd.
11070
11071 * match.pd (minus (bit_and:cs @0 (bit_not @1)) (bit_and:s @0 @1)):
11072 New simplifier.
11073 (minus (bit_and:s @0 INTEGER_CST@2) (bit_and:s @0 INTEGER_CST@1)):
11074 New simplifier.
11075 (minus (bit_and:s @0 @1) (bit_and:cs @0 (bit_not @1))):
11076 New simplifier.
11077 (bit_ior:c (bit_and:c @0 (bit_not @1)) (bit_and:c (bit_not @0) @1)):
11078 New simplifier.
11079 (bit_ior:c (bit_and @0 INTEGER_CST@2) (bit_and (bit_not @0)
11080 INTEGER_CST@1)): New simplifier.
11081
11082 2015-10-23 Richard Sandiford <richard.sandiford@arm.com>
11083
11084 * builtins.c (integer_valued_real_p): Move to fold-const.c.
11085 (fold_trunc_transparent_mathfn, fold_builtin_trunc, fold_builtin_floor)
11086 (fold_builtin_ceil, fold_builtin_round): Delete.
11087 (fold_builtin_1): Handle constant trunc, floor, ceil and round
11088 arguments here.
11089 * convert.c (convert_to_real): Remove narrowing of rounding
11090 functions.
11091 * fold-const.h (integer_valued_real_unary_p)
11092 (integer_valued_real_binary_p, integer_valued_real_call_p)
11093 (integer_valued_real_single_p, integer_valued_real_p): Declare.
11094 * fold-const.c (tree_single_nonnegative_warnv_p): Move
11095 name_registered_for_update_p check to SSA_NAME case statement.
11096 Don't call tree_simple_nonnegative_warnv_p for SSA names.
11097 (integer_valued_real_unary_p, integer_valued_real_binary_p)
11098 (integer_valued_real_call_p, integer_valued_real_single_p)
11099 (integer_valued_real_invalid_p): New functions.
11100 (integer_valued_real_p): Move from fold-const.c and rework
11101 to call the functions above. Handle SSA names.
11102 * gimple-fold.h (gimple_stmt_integer_valued_real_p): Declare.
11103 * gimple-fold.c (gimple_assign_integer_valued_real_p)
11104 (gimple_call_integer_valued_real_p, gimple_phi_integer_valued_real_p)
11105 (gimple_stmt_integer_valued_real_p): New functions.
11106 * match.pd: Fold f(f(x))->f(x) for fp->fp rounding functions f.
11107 Fold f(x)->x for the same f if x is known to be integer-valued.
11108 Fold f(extend(x))->extend(f'(x)) if doing so doesn't affect
11109 the result. Canonicalize floor(x) as trunc(x) if x is
11110 nonnegative.
11111
11112 2015-10-23 Tom de Vries <tom@codesourcery.com>
11113
11114 * tree-ssa-structalias.c (intra_create_variable_infos): Use
11115 make_constraint_from.
11116
11117 2015-10-23 Tom de Vries <tom@codesourcery.com>
11118
11119 * tree-ssa-structalias.c (create_variable_info_for_1): Add missing
11120 setting of is_full_var in case of a single field.
11121
11122 2015-10-22 Martin Sebor <msebor@redhat.com>
11123
11124 PR driver/68043
11125 * config/i386/i386.opt: Add missing periods to the ends of sentences.
11126 * config/msp430/msp430.opt: Same.
11127
11128 2015-10-21 David Wohlferd <dw@LimeGreenSocks.com>
11129
11130 * doc/extend.exp (Global Register Variables): Rewrite.
11131
11132 2015-10-22 Jeff Law <law@redhat.com>
11133
11134 * genattrtab.c (main): If we do not have any annul-true or annul-false
11135 slots, then write out a dummy eligible_for_annul_true or
11136 eligible_for_annul_false as needed.
11137
11138 2015-10-22 Nick Clifton <nickc@redhat.com>
11139
11140 * config/msp430/msp430.opt: Add -msilicon-errata and
11141 -msilicon-errata-warn.
11142 * config/msp430/msp430.h (ASM_SPEC): Pass new options on to
11143 assembler.
11144 * doc/invoke.texi: Document new options.
11145
11146 2015-10-22 Richard Biener <rguenther@suse.de>
11147
11148 PR tree-optimization/58497
11149 * tree-vect-generic.c (ssa_uniform_vector_p): New helper.
11150 (expand_vector_operations_1): Use it. Lower operations on
11151 all uniform vectors to scalar operations if the HW supports it.
11152
11153 2015-10-22 Richard Biener <rguenther@suse.de>
11154
11155 PR tree-optimization/19049
11156 PR tree-optimization/65962
11157 * tree-vect-data-refs.c (vect_analyze_group_access_1): Fall back
11158 to strided accesses if single-element interleaving doesn't work.
11159
11160 2015-10-22 Richard Biener <rguenther@suse.de>
11161
11162 PR middle-end/68046
11163 PR middle-end/61893
11164 * optabs.c (emit_libcall_block_1): Allow a NULL_RTX equiv.
11165 (expand_binop): For -ftrapv optabs do not record an REG_EQUAL note.
11166 (expand_unop): Likewise.
11167
11168 2015-10-22 Richard Biener <rguenther@suse.de>
11169
11170 * fold-const.c (fold_addr_of_array_ref_difference): Properly
11171 convert operands before folding a MINUS_EXPR.
11172 (fold_binary_loc): Move simplification of MINUS_EXPR on
11173 converted POINTER_PLUS_EXPRs ...
11174 * match.pd: ... here.
11175
11176 2015-10-22 Richard Sandiford <richard.sandiford@arm.com>
11177
11178 * builtins.c (fold_builtin_tan): Delete.
11179 (fold_builtin_1): Handle constant tan arguments here.
11180 * match.pd: Simplify (tan (atan x)) to x.
11181
11182 2015-10-22 Richard Sandiford <richard.sandiford@arm.com>
11183
11184 * builtins.c (fold_builtin_cproj): Delete.
11185 (fold_builtin_1): Handle constant arguments here.
11186 (build_complex_cproj): Move and rename to...
11187 * tree.c: (build_complex_inf): ...this.
11188 * tree.h (build_complex_inf): Declare.
11189 * match.pd: Fold cproj(x)->x if x has no infinity.
11190 Use build_complex_inf for existing cproj rules.
11191
11192 2015-10-22 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
11193
11194 PR target/68015
11195 * config/s390/s390.md (mov<mode>cc): Emit compare only if we don't
11196 already have a comparison result.
11197
11198 2015-10-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
11199
11200 PR target/63304
11201 * config/aarch64/aarch64.c (aarch64_nopcrelative_literal_loads): New.
11202 (aarch64_expand_mov_immediate): Use aarch64_nopcrelative_literal_loads.
11203 (aarch64_classify_address): Likewise.
11204 (aarch64_secondary_reload): Likewise.
11205 (aarch64_override_options_after_change_1): Adjust.
11206 * config/aarch64/aarch64.md (aarch64_reload_movcp<GPF_TF:mode><P:mode>):
11207 Use aarch64_nopcrelative_literal_loads.
11208 (aarch64_reload_movcp<VALL:mode><P:mode>): Likewise.
11209 * config/aarch64/aarch64-protos.h (aarch64_nopcrelative_literal_loads):
11210 Declare.
11211
11212 2015-10-21 Martin Sebor <msebor@redhat.com>
11213
11214 PR driver/68043
11215 * opts.c (undocumented_msg, use_diagnosed_msg): New globals.
11216 (print_filtered_help): Reference aliased option's name and encourage
11217 readers to use it in preference to the alias if the former is not
11218 documented. Mention when using an option is diagnosed.
11219 * gcc.c (display_help): End each sentence with a period.
11220
11221 * common.opt: End each sentence that describes an option with
11222 a period.
11223 * config/aarch64/aarch64.opt: Same.
11224 * config/alpha/alpha.opt: Same.
11225 * config/arc/arc.opt: Same.
11226 * config/arm/arm.opt: Same.
11227 * config/avr/avr.opt: Same.
11228 * config/bfin/bfin.opt: Same.
11229 * config/c6x/c6x.opt: Same.
11230 * config/cr16/cr16.opt: Same.
11231 * config/cris/cris.opt: Same.
11232 * config/cris/linux.opt: Same.
11233 * config/darwin.opt: Same.
11234 * config/epiphany/epiphany.opt: Same.
11235 * config/fr30/fr30.opt: Same.
11236 * config/frv/frv.opt: Same.
11237 * config/ft32/ft32.opt: Same.
11238 * config/g.opt: Same.
11239 * config/h8300/h8300.opt: Same.
11240 * config/i386/cygming.opt: Same.
11241 * config/i386/djgpp.opt: Same.
11242 * config/i386/i386.opt: Same.
11243 * config/i386/interix.opt: Same.
11244 * config/i386/mingw-w64.opt: Same.
11245 * config/i386/mingw.opt: Same.
11246 * config/ia64/ia64.opt: Same.
11247 * config/ia64/ilp32.opt: Same.
11248 * config/iq2000/iq2000.opt: Same.
11249 * config/linux.opt: Same.
11250 * config/lm32/lm32.opt: Same.
11251 * config/lynx.opt: Same.
11252 * config/m32c/m32c.opt: Same.
11253 * config/m32r/m32r.opt: Same.
11254 * config/m68k/ieee.opt: Same.
11255 * config/m68k/m68k.opt: Same.
11256 * config/mcore/mcore.opt: Same.
11257 * config/mep/mep.opt: Same.
11258 * config/microblaze/microblaze.opt: Same.
11259 * config/mips/mips.opt: Same.
11260 * config/mmix/mmix.opt: Same.
11261 * config/mn10300/mn10300.opt: Same.
11262 * config/moxie/moxie.opt: Same.
11263 * config/msp430/msp430.opt: Same.
11264 * config/nios2/elf.opt: Same.
11265 * config/nios2/nios2.opt: Same.
11266 * config/nvptx/nvptx.opt: Same.
11267 * config/pa/pa-hpux.opt: Same.
11268 * config/pa/pa-hpux1010.opt: Same.
11269 * config/pa/pa-hpux1111.opt: Same.
11270 * config/pa/pa-hpux1131.opt: Same.
11271 * config/pa/pa.opt: Same.
11272 * config/pa/pa64-hpux.opt: Same.
11273 * config/pdp11/pdp11.opt: Same.
11274 * config/rl78/rl78.opt: Same.
11275 * config/rs6000/476.opt: Same.
11276 * config/rs6000/aix64.opt: Same.
11277 * config/rs6000/darwin.opt: Same.
11278 * config/rs6000/linux64.opt: Same.
11279 * config/rs6000/rs6000.opt: Same.
11280 * config/rs6000/sysv4.opt: Same.
11281 * config/s390/s390.opt: Same.
11282 * config/s390/tpf.opt: Same.
11283 * config/sh/sh.opt: Same.
11284 * config/sol2.opt: Same.
11285 * config/sparc/long-double-switch.opt: Same.
11286 * config/sparc/sparc.opt: Same.
11287 * config/spu/spu.opt: Same.
11288 * config/stormy16/stormy16.opt: Same.
11289 * config/tilegx/tilegx.opt: Same.
11290 * config/tilepro/tilepro.opt: Same.
11291 * config/v850/v850.opt: Same.
11292 * config/vax/vax.opt: Same.
11293 * config/visium/visium.opt: Same.
11294 * config/vms/vms.opt: Same.
11295 * config/vxworks.opt: Same.
11296 * config/xtensa/xtensa.opt: Same.
11297
11298 2015-10-21 Aditya Kumar <aditya.k7@samsung.com>
11299 Sebastian Pop <s.pop@samsung.com>
11300
11301 * graphite-scop-detection.c (parameter_index_in_region): Update call to
11302 invariant_in_sese_p_rec.
11303 * graphite-sese-to-poly.c (extract_affine): Same.
11304 * sese.c (invariant_in_sese_p_rec): Pass in an extra
11305 parameter has_vdefs.
11306 (scalar_evolution_in_region): Return chrec_dont_know when the scalar
11307 variable depends on virtual definitions in the current region.
11308 * sese.h (invariant_in_sese_p_rec): Update declaration.
11309
11310 2015-10-21 Aditya Kumar <aditya.k7@samsung.com>
11311 Sebastian Pop <s.pop@samsung.com>
11312
11313 * graphite-scop-detection.c (build_scops): Do not handle scops
11314 with more than PARAM_GRAPHITE_MAX_ARRAYS_PER_SCOP arrays.
11315 * params.def (PARAM_GRAPHITE_MAX_ARRAYS_PER_SCOP): New.
11316
11317 2015-10-21 Mikhail Maltsev <maltsevm@gmail.com>
11318
11319 * config.in: Regenerate.
11320 * configure: Regenerate.
11321 * configure.ac (CHECKING_P): Define.
11322 * system.h: Use CHECKING_P.
11323
11324 2015-10-11 Jan Hubicka <hubicka@ucw.cz>
11325
11326 PR ipa/67056
11327 * ipa-polymorphic-call.c (possible_placement_new): If cur_offset
11328 is negative we don't know the type.
11329 (check_stmt_for_type_change): Skip constructors of non-polymorphic
11330 types as those won't help devirutalization.
11331
11332 2015-10-11 Jan Hubicka <hubicka@ucw.cz>
11333
11334 * fold-const.c (operand_equal_p): Add code matching empty constructors.
11335
11336 2015-10-21 Eric Botcazou <ebotcazou@adacore.com>
11337
11338 * tree.def (CEIL_DIV_EXPR, FLOOR_DIV_EXPR, ROUND_DIV_EXPR): Tweak
11339 comments.
11340 (TRUNC_MOD_EXPR, CEIL_MOD_EXPR, FLOOR_MOD_EXPR, ROUND_MOD_EXPR):
11341 Add comments on sign of the result.
11342 * fold-const.c (tree_binary_nonnegative_warnv_p) <FLOOR_MOD_EXPR>:
11343 Recurse on operand #1 instead of operand #0.
11344 <CEIL_MOD_EXPR>: Do not recurse.
11345 <ROUND_MOD_EXPR>: Likewise.
11346
11347 2015-10-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
11348
11349 * cfgrtl.c (pass_free_cfg::execute): Adjust.
11350 * final.c (dbr_sequence_length): Always define.
11351 (shorten_branches): Adjust.
11352 * genattr-common.c (main): Always define DELAY_SLOTS.
11353 * genattr.c (main): Unconditionally declare functions and define
11354 macros related to delay slots.
11355 * genattrtab.c (write_eligible_delay): Adjust.
11356 (main): Always write out delay slot functions.
11357 * opts.c (default_options_table): Adjust.
11358 * reorg.c (redirect_with_delay_slots_safe_p): Likewise.
11359 (redirect_with_delay_list_safe_p): Likewise.
11360 (fill_simple_delay_slots): Likewise.
11361 (fill_slots_from_thread): Likewise.
11362 (make_return_insns): Likewise.
11363 (dbr_schedule): Likewise.
11364 (rest_of_handle_delay_slots): Likewise.
11365 (pass_delay_slots::gate): Likewise.
11366 * toplev.c (process_options): Likewise.
11367
11368 2015-10-21 Richard Henderson <rth@redhat.com>
11369
11370 * targhooks.c (default_addr_space_pointer_mode): Remove check
11371 for generic address space.
11372 (default_addr_space_address_mode): Likewise.
11373 (default_addr_space_valid_pointer_mode): Likewise.
11374 (default_addr_space_legitimate_address_p): Likewise.
11375 (default_addr_space_legitimize_address): Likewise.
11376 * target.def (addr_space.pointer_mode): Update documentation
11377 of default behavior.
11378 (addr_space.address_mode): Likewise.
11379 * tm.texi: Update.
11380
11381 * expr.c (expand_expr_real_2): Use convert_modes on disjoint
11382 address spaces.
11383
11384 2015-10-21 Richard Sandiford <richard.sandiford@arm.com>
11385
11386 * builtins.c (fold_builtin_cabs): Delete.
11387 (fold_builtin_1): Update accordingly. Handle constant arguments here.
11388 * match.pd: Add rules previously handled by fold_builtin_cabs.
11389
11390 2015-10-21 Richard Sandiford <richard.sandiford@arm.com>
11391
11392 * fold-const.h (fold_strip_sign_ops): Delete.
11393 * fold-const.c (fold_strip_sign_ops): Likewise.
11394 (fold_unary_loc, fold_binary_loc): Remove calls to it.
11395 * builtins.c (fold_builtin_cos, fold_builtin_cosh)
11396 (fold_builtin_ccos): Delete.
11397 (fold_builtin_pow): Don't call fold_strip_sign_ops.
11398 (fold_builtin_hypot, fold_builtin_copysign): Likewise.
11399 Remove fndecl argument.
11400 (fold_builtin_1): Update calls accordingly. Handle constant
11401 cos, cosh, ccos and ccosh here.
11402
11403 2015-10-21 Richard Sandiford <richard.sandiford@arm.com>
11404
11405 * doc/invoke.texi (-fdump-tree-backprop, -fssa-backprop): Document.
11406 * Makefile.in (OBJS): Add gimple-ssa-backprop.o.
11407 * common.opt (fssa-backprop): New option.
11408 * fold-const.h (negate_mathfn_p): Declare.
11409 * fold-const.c (negate_mathfn_p): Make public.
11410 * timevar.def (TV_TREE_BACKPROP): New.
11411 * tree-pass.h (make_pass_backprop): Declare.
11412 * passes.def (pass_backprop): Add.
11413 * gimple-ssa-backprop.c: New file.
11414
11415 2015-10-21 Aditya Kumar <aditya.k7@samsung.com>
11416 Sebastian Pop <s.pop@samsung.com>
11417
11418 * graphite-isl-ast-to-gimple.c (graphite_create_new_loop_guard):
11419 Do not call create_empty_if_region_on_edge when cond_expr is true.
11420 (translate_isl_ast_node_for): Check whether a guard has been generated.
11421
11422 2015-10-21 Aditya Kumar <aditya.k7@samsung.com>
11423
11424 * graphite-poly.h (struct dr_info): Added invalid_alias_set number.
11425 (operator=): Removed.
11426 (dr_info): Make alias_set number the last argument with default
11427 value of invalid_alias_set.
11428 * graphite-sese-to-poly.c (build_scop_drs): Update constructor
11429 of dr_info.
11430 (rewrite_reductions_out_of_ssa): Iterate only through the
11431 basic blocks which are inside region.
11432 (rewrite_cross_bb_scalar_deps_out_of_ssa): Same.
11433 * sese.h (struct sese_l): Removed assignment operator.
11434 (split_region_for_bb): Removed dead code.
11435
11436 2015-10-21 Aditya Kumar <aditya.k7@samsung.com>
11437
11438 * graphite-poly.h (struct dr_info): Removed conversion constructor.
11439 (struct scop): Renamed scop::region to scop::scop_info
11440 (scop_set_region): Same.
11441 (SCOP_REGION): Removed
11442 (SCOP_CONTEXT): Removed.
11443 (POLY_SCOP_P): Removed.
11444 * graphite-isl-ast-to-gimple.c (translate_isl_ast_node_user):
11445 Rename scop->region to scop->scop_info.
11446 (add_parameters_to_ivs_params): Same.
11447 (graphite_regenerate_ast_isl): Same.
11448 * graphite-poly.c (new_scop): Same.
11449 (free_scop): Same.
11450 (print_scop_params): Same.
11451 * graphite-scop-detection.c (scop_detection::remove_subscops): Same.
11452 (scop_detection::remove_intersecting_scops): Use pointer to sese_l.
11453 (dot_all_scops_1): Rename scop->region to scop->scop_info.
11454 (scop_detection::nb_pbbs_in_loops): Same.
11455 (find_scop_parameters): Same.
11456 (try_generate_gimple_bb): Same.
11457 (gather_bbs::before_dom_children): Same.
11458 (gather_bbs::after_dom_children): Same.
11459 (build_scops): Same.
11460 * graphite-sese-to-poly.c (build_scop_scattering): Same.
11461 (extract_affine_chrec): Same.
11462 (extract_affine): Same.
11463 (set_scop_parameter_dim): Same.
11464 (build_loop_iteration_domains): Same.
11465 (create_pw_aff_from_tree): Same.
11466 (add_param_constraints): Same.
11467 (build_scop_iteration_domain): Same.
11468 (build_scop_drs): Same.
11469 (analyze_drs_in_stmts): Same.
11470 (insert_out_of_ssa_copy_on_edge): Same.
11471 (rewrite_close_phi_out_of_ssa):Same.
11472 (rewrite_reductions_out_of_ssa):Same.
11473 (handle_scalar_deps_crossing_scop_limits):Same.
11474 (rewrite_cross_bb_scalar_deps):Same.
11475 (rewrite_cross_bb_scalar_deps_out_of_ssa):Same.
11476 (build_poly_scop):Same.
11477 (build_alias_set): Use pointer to dr_info.
11478 * graphite.c (print_graphite_scop_statistics):
11479 (graphite_transform_loops):
11480 * sese.h (struct sese_l): Remove conversion constructor.
11481
11482 2015-10-11 Jan Hubicka <hubicka@ucw.cz>
11483
11484 PR middle-end/67966
11485 * tree.c (verify_type): Verify that TYPE_MODE match
11486 between TYPE_CANONICAL and type.
11487 * expr.c (store_expr_with_bounds): Revert my previous change.
11488 * expmed.c (store_bit_field_1): Revert prevoius change.
11489 * gimple-expr.c (useless_type_conversion_p): Require TYPE_MODE
11490 to match for all types.
11491
11492 2015-10-21 Nathan Sidwell <nathan@codesourcery.com>
11493
11494 * omp-low.c (check_omp_nesting_restrictions): Check OpenACC loop
11495 nesting.
11496
11497 2015-10-21 Ilya Enkovich <enkovich.gnu@gmail.com>
11498
11499 * doc/tm.texi: Regenerated.
11500 * doc/tm.texi.in (TARGET_VECTORIZE_GET_MASK_MODE): New.
11501 * stor-layout.c (layout_type): Use mode to get vector mask size.
11502 * target.def (get_mask_mode): New.
11503 * targhooks.c (default_get_mask_mode): New.
11504 * targhooks.h (default_get_mask_mode): New.
11505 * tree-vect-stmts.c (get_same_sized_vectype): Add special case
11506 for boolean vector.
11507 * tree.c (MAX_BOOL_CACHED_PREC): New.
11508 (nonstandard_boolean_type_cache): New.
11509 (build_nonstandard_boolean_type): New.
11510 (make_vector_type): Vector mask has no canonical type.
11511 (build_truth_vector_type): New.
11512 (build_same_sized_truth_vector_type): New.
11513 (truth_type_for): Support vector masks.
11514 * tree.h (VECTOR_BOOLEAN_TYPE_P): New.
11515 (build_truth_vector_type): New.
11516 (build_same_sized_truth_vector_type): New.
11517 (build_nonstandard_boolean_type): New.
11518 * tree-cfg.c (verify_gimple_comparison) Require boolean
11519 vector type for vector comparison.
11520 (verify_gimple_assign_ternary): Likewise.
11521 * optabs.c (expand_vec_cond_expr): Accept boolean vector as
11522 condition operand.
11523 * tree-vect-stmts.c (vectorizable_condition): Use boolean
11524 vector type for vector comparison.
11525 * tree-vect-generic.c (elem_op_func): Add new operand to hold
11526 vector type.
11527 (do_unop): Adjust to modified function type.
11528 (do_binop): Likewise.
11529 (do_plus_minus): Likewise.
11530 (do_negate); Likewise.
11531 (expand_vector_piecewise): Likewise.
11532 (do_cond): Likewise.
11533 (do_compare): Use comparison instead of condition.
11534 (expand_vector_divmod): Use boolean vector type for comparison.
11535 (expand_vector_operations_1): Skip scalar mask operations.
11536
11537 2015-10-21 Ilya Enkovich <enkovich.gnu@gmail.com>
11538
11539 * omp-low.c (simd_clone_create): Set in_other_partition
11540 for created clones.
11541
11542 2015-10-21 David Wohlferd <dw@LimeGreenSocks.com>
11543
11544 * doc/extend.exp (Local Register Variables): Rewrite.
11545
11546 2015-10-21 Richard Sandiford <richard.sandiford@arm.com>
11547
11548 * match.pd: Add rules to simplify ccos, ccosh, hypot, copysign
11549 and x*x in cases where the operands are sign ops. Extend these
11550 rules to handle copysign as a sign op (including for cos, cosh
11551 and pow, which already treated negate and abs as sign ops).
11552
11553 2015-10-21 Uros Bizjak <ubizjak@gmail.com>
11554
11555 PR target/68018
11556 * config/i386/i386.c (ix86_compute_frame_layout): Realign the stack
11557 for 64-bit MS_ABI targets also when default incoming stack boundary
11558 is overriden.
11559
11560 2015-10-21 Richard Biener <rguenther@suse.de>
11561
11562 * tree-ssa-sccvn.c (cond_stmts_equal_p): Compare two GIMPLE
11563 cond stmts, enhanced and split out from ...
11564 (vn_phi_eq): ... here.
11565
11566 2015-10-21 Richard Biener <rguenther@suse.de>
11567
11568 PR middle-end/68031
11569 * fold-const.c: Include tree-ssa-operands.h and tree-into-ssa.h.
11570 (tree_ssa_name_nonnegative_warnv_p): Fold into ...
11571 (tree_single_nonnegative_warnv_p): ... here. For SSA names
11572 make sure they are not registered for update.
11573
11574 2015-10-21 Richard Biener <rguenther@suse.de>
11575
11576 PR tree-optimization/68026
11577 * tree-ssa-ccp.c (get_value_for_expr): Zero-extend mask for
11578 unsigned VARYING values.
11579
11580 2015-10-21 Maxim Ostapenko <m.ostapenko@partner.samsung.com>
11581
11582 * asan.c (asan_emit_stack_protection): Don't pass local stack to
11583 asan_stack_malloc_[n] anymore. Check if asan_stack_malloc_[n] returned
11584 NULL and use local stack than.
11585 (asan_finish_file): Insert __asan_version_mismatch_check_v[n] call
11586 in addition to __asan_init.
11587 * sanitizer.def (BUILT_IN_ASAN_INIT): Rename to __asan_init.
11588 (BUILT_IN_ASAN_VERSION_MISMATCH_CHECK): Add new builtin call.
11589 * asan.h (asan_intercepted_p): Handle new string builtins.
11590 * ubsan.c (ubsan_use_new_style_p): New function.
11591 (ubsan_instrument_float_cast): If location is unknown, assign
11592 input_location to loc. Propagate loc to ubsan_create_data if
11593 ubsan_use_new_style_p returned true.
11594
11595 2015-10-21 Jeff Law <law@redhat.com>
11596
11597 * Makefile.in (OBJS): Remove sched-vis.c
11598 * sched-vis.c: Removed. Code moved into...
11599 * print-rtl.c: Here. Include cfg.h, pretty-print.h and print-rtl.h.
11600 * rtl.h: Remove prototypes for functions now living in print-rtl.c
11601 * print-rtl.h Add prototypes for new functions in print-rtl.c.
11602 * auto-inc-dec.c: Include print-rtl.h
11603 * cfgrtl.c, combine.c, final.c haifa-sched.c: Likewise.
11604 * ira.c, lra-constraints.c, lra.c, sel-sched-dump.c: Likewise.
11605
11606 * varasm.c (handle_vtv_comdat_section): Mark 2nd parameter with
11607 ATTRIBUTE_UNUSED.
11608
11609 2015-10-21 Richard Biener <rguenther@suse.de>
11610 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
11611
11612 * fold-const.c (fold_binary_loc) : Move (-A) * (-B) -> A * B
11613 to match.pd.
11614 * doc/implement-c.texi (Integers Implementation): Make GCC's promises
11615 about signed left shift stronger and clarify the cases when they're
11616 broken.
11617 Move (a * (1 << b)) is (a << b) to match.pd.
11618 Move convert (C1/X)*C2 into (C1*C2)/X to match.pd.
11619 Move ~X & X, (X == 0) & X, and !X & X are zero to match.pd.
11620 Move X & ~X , X & (X == 0), and X & !X are zero to match.pd.
11621
11622 * match.pd (mult:c @0 (convert? (lshift integer_onep@1 @2))):
11623 New simplifier.
11624 (mult (rdiv:s REAL_CST@0 @1) REAL_CST@2): New simplifier.
11625 (bit_and:c (convert? @0) (convert? (bit_not @0))): New simplifier.
11626 (bit_ior (bit_and:s @0 (bit_not:s @1)) (bit_and:s (bit_not:s @0) @1))
11627 : New simplifier.
11628 (mult:c (convert1? (negate @0)) (convert2? negate_expr_p@1)):
11629 New simplifier.
11630 (match (logical_inverted_value @0) (truth_not @0)) : New Predicate.
11631
11632 2015-10-21 Gregor Richards <gregor.richards@uwaterloo.ca>
11633 Szabolcs Nagy <szabolcs.nagy@arm.com>
11634 Alan Modra <amodra@gmail.com>
11635
11636 * config/rs6000/secureplt.h (LINK_SECURE_PLT_DEFAULT_SPEC): Define.
11637 * config/rs6000/sysv4.h (LINK_SECURE_PLT_SPEC): Define.
11638 (LINK_SPEC): Add %(link_secure_plt).
11639 (SUBTARGET_EXTRA_SPECS): Add "link_secure_plt".
11640 * config/rs6000/linux64.h (LINK_SECURE_PLT_SPEC): Redefine.
11641
11642 2015-10-20 Gregor Richards <gregor.richards@uwaterloo.ca>
11643 Szabolcs Nagy <szabolcs.nagy@arm.com>
11644
11645 * config/sh/linux.h (MUSL_DYNAMIC_LINKER): Define.
11646 (MUSL_DYNAMIC_LINKER_E, MUSL_DYNAMIC_LINKER_FP): Define.
11647
11648 2015-10-20 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
11649
11650 * config/aarch64/aarch64.c (aarch64_mode_valid_for_sched_fusion_p):
11651 New function.
11652 (fusion_load_store): Use it.
11653 * config/aarch64/aarch64-ldpstp.md: Add new peephole2s for
11654 ldp and stp in VD modes.
11655 * config/aarch64/aarch64-simd.md (load_pair<mode>, VD): New pattern.
11656 (store_pair<mode>, VD): Likewise.
11657
11658 2015-10-20 Vladimir Makarov <vmakarov@redhat.com>
11659
11660 PR rtl-optimization/67609
11661 * lra-splill.c (lra_final_code_change): Don't remove all
11662 sub-registers.
11663
11664 2015-10-20 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
11665
11666 * simplify-rtx.c (simplify_binary_operation): If either operand was
11667 a constant pool reference use them if all other simplifications failed.
11668
11669 2015-10-20 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
11670
11671 * config/aarch64/aarch64.md
11672 (*aarch64_fcvt<su_optab><GPF:mode><GPI:mode>2_mult): New pattern.
11673 * config/aarch64/aarch64-simd.md
11674 (*aarch64_fcvt<su_optab><VDQF:mode><fcvt_target>2_mult): Likewise.
11675 * config/aarch64/aarch64.c (aarch64_rtx_costs): Handle above patterns.
11676 (aarch64_fpconst_pow_of_2): New function.
11677 (aarch64_vec_fpconst_pow_of_2): Likewise.
11678 * config/aarch64/aarch64-protos.h (aarch64_fpconst_pow_of_2): Declare
11679 prototype.
11680 (aarch64_vec_fpconst_pow_of_2): Likewise.
11681 * config/aarch64/predicates.md (aarch64_fp_pow2): New predicate.
11682 (aarch64_fp_vec_pow2): Likewise.
11683
11684 2015-10-20 Uros Bizjak <ubizjak@gmail.com>
11685
11686 * config/alpha/alpha.h (HARD_REGNO_NREGS): Use CEIL macro.
11687 (ALPHA_ARG_SIZE): Ditto. Remove unused NAMED argument.
11688 * config/alpha/alpha.c (alpha_function_arg_advance): Update
11689 ALPHA_ARG_SIZE usage.
11690 (alpha_arg_partial_bytes): Ditto.
11691
11692 2015-10-20 H.J. Lu <hongjiu.lu@intel.com>
11693
11694 PR target/66810
11695 * cgraphbuild.c (pass_build_cgraph_edges::execute): Skip local
11696 error_mark_node decls.
11697
11698 2015-10-20 H.J. Lu <hongjiu.lu@intel.com>
11699
11700 PR target/67963
11701 PR target/67985
11702 * common/config/i386/i386-common.c (ix86_handle_option): Remove
11703 OPT_miamcu handling.
11704 * config/i386/i386.c (PTA_NO_80387): New macro.
11705 (processor_alias_table): Add PTA_NO_80387 to lakemont.
11706 (ix86_option_override_internal): Update MASK_80387 from
11707 PTA_NO_80387. Don't warn x87/MMX/SSE/AVX for -miamcu. Warn
11708 SSE math only if 80387 is supported. Don't change
11709 MASK_FLOAT_RETURNS.
11710 (ix86_valid_target_attribute_tree): Enable FPMATH_387 only if
11711 80387 is supported.
11712 * config/i386/i386.h (TARGET_FLOAT_RETURNS_IN_80387): True only
11713 if TARGET_80387 is true and TARGET_IAMCU is false.
11714 (TARGET_FLOAT_RETURNS_IN_80387_P): True only if TARGET_80387_P
11715 is true and TARGET_IAMCU_P is false.
11716
11717 2015-10-20 Richard Biener <rguenther@suse.de>
11718
11719 PR tree-optimization/68017
11720 * tree-tailcall.c (eliminate_tail_call): Remove stmts backwards.
11721
11722 2015-10-20 Martin Liska <mliska@suse.cz>
11723
11724 * cgraphclones.c (cgraph_node::create_virtual_clone):
11725 Verify cgraph_node.local.versionable instead of calling
11726 tree_versionable_function_p.
11727 * ipa-cp.c (determine_versionability): Save the information
11728 to ipa_node_params summary.
11729 (ipcp_versionable_function_p): Use it.
11730 (ipcp_propagate_stage): Pass IPA_NODE_REF to a called function.
11731 (ipcp_generate_summary): Do not compute cgraph_node
11732 versionability.
11733 * ipa-inline-analysis.c (inline_generate_summary): Compute
11734 versionability for all cgraph nodes.
11735 * ipa-prop.c (ipa_node_params_t::duplicate): Duplicate
11736 ipa_node_params::versionability.
11737 * ipa-prop.h (struct ipa_node_params): Declare it.
11738
11739 2015-10-20 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
11740
11741 PR other/67868
11742 * varasm.c (assemble_variable): Move special vtv handling to..
11743 (handle_vtv_comdat_sections): .. here. New function.
11744 (output_object_block): Handle vtv sections.
11745
11746 2015-10-20 Szabolcs Nagy <szabolcs.nagy@arm.com>
11747
11748 PR target/66912
11749 * varasm.c (default_binds_local_p_2): Turn on extern_protected_data.
11750
11751 2015-10-20 Arkadiusz Drabczyk <arkadiusz@drabczyk.org>
11752
11753 * doc/extend.texi: Update documentation WRT inline functions.
11754
11755 2015-10-20 Alan Modra <amodra@gmail.com>
11756
11757 PR go/66870
11758 * config/rs6000/sysv4.h (TARGET_CAN_SPLIT_STACK_64BIT): Don't define.
11759 * config/rs6000/linux64.h (TARGET_CAN_SPLIT_STACK): Define.
11760 (TARGET_CAN_SPLIT_STACK_64BIT): Define.
11761
11762 2015-10-19 Pierre-Marie de Rodat <derodat@adacore.com>
11763
11764 PR rtl-optimization/66790
11765 * df.h (DF_MIR): New macro.
11766 (DF_LAST_PROBLEM_PLUS1): Update to be past DF_MIR
11767 (DF_MIR_INFO_BB): New macro.
11768 (DF_MIR_IN, DF_MIR_OUT): New macros.
11769 (struct df_mir_bb_info): New.
11770 (df_mir): New macro.
11771 (df_mir_add_problem, df_mir_simulate_one_insn): New forward
11772 declarations.
11773 (df_mir_get_bb_info): New.
11774 * df-problems.c (struct df_mir_problem_data): New.
11775 (df_mir_free_bb_info, df_mir_alloc, df_mir_reset,
11776 df_mir_bb_local_compute, df_mir_local_compute, df_mir_init,
11777 df_mir_confluence_0, df_mir_confluence_n,
11778 df_mir_transfer_function, df_mir_free, df_mir_top_dump,
11779 df_mir_bottom_dump, df_mir_verify_solution_start,
11780 df_mir_verify_solution_end): New.
11781 (problem_MIR): New.
11782 (df_mir_add_problem, df_mir_simulate_one_insn): New.
11783 * timevar.def (TV_DF_MIR): New.
11784 * ree.c: Include bitmap.h
11785 (add_removable_extension): Add an INIT_REGS parameter. Use it
11786 to skip zero-extensions that may get an uninitialized register.
11787 (find_removable_extensions): Compute must-initialized registers
11788 using the MIR dataflow problem. Update the call to
11789 add_removable_extension.
11790 (find_and_remove_re): Call df_mir_add_problem.
11791
11792 2015-10-19 Segher Boessenkool <segher@kernel.crashing.org>
11793
11794 * common/config/mn10300/mn10300-common.c
11795 (mn10300_option_optimization_table) <OPT_freorder_blocks_algorithm_>:
11796 Use REORDER_BLOCKS_ALGORITHM_STC at -Os and up.
11797
11798 2015-10-19 David Wohlferd <dw@LimeGreenSocks.com>
11799
11800 * doc/extend.texi (Explicit Register Variables): Simplify and
11801 avoid unnecessary and confusion abbreviations. Update cross
11802 references.
11803 doc/implement-c.tex: Update cross reference.
11804
11805 2015-10-19 Jeff Law <law@redhat.com>
11806
11807 * tree-ssa-threadupdate.c (valid_jump_thread_path): Reject paths
11808 that create irreducible loops unless the path elimiantes a multiway
11809 branch.
11810
11811 2015-10-19 Richard Biener <rguenther@suse.de>
11812
11813 PR tree-optimization/67975
11814 * tree-cfg.h (extract_true_false_controlled_edges): Declare.
11815 * tree-cfg.c (extract_true_false_controlled_edges): Split out
11816 core worker from ...
11817 * tree-ssa-loop-im.c (extract_true_false_args_from_phi): ... here.
11818 * tree-ssa-sccvn.c (vn_phi_compute_hash): Hash number of args
11819 instead of block number for PHIs with two or one args.
11820 (vn_phi_eq): Compare edge predicates of PHIs that are in different
11821 blocks.
11822
11823 2015-10-19 Richard Biener <rguenther@suse.de>
11824
11825 * gimple-fold.c (gimple_phi_nonnegative_warnv_p): New function.
11826 (gimple_stmt_nonnegative_warnv_p): Use it.
11827 * match.pd (CPROJ): New operator list.
11828 (cproj (complex ...)): Move simplifications from ...
11829 * builtins.c (fold_builtin_cproj): ... here.
11830
11831 2015-10-19 H.J. Lu <hongjiu.lu@intel.com>
11832
11833 * config/i386/i386.c (ix86_expand_vector_move): Use
11834 GET_MODE_BITSIZE for IA MCU psABI to get vector natural
11835 alignment.
11836
11837 2015-10-19 H.J. Lu <hongjiu.lu@intel.com>
11838
11839 * doc/invoke.texi: Replace @optindex with @opindex.
11840
11841 2015-10-19 H.J. Lu <hongjiu.lu@intel.com>
11842
11843 PR target/67995
11844 * config/i386/i386.c (ix86_valid_target_attribute_tree): If
11845 arch= is set, clear all bits in x_ix86_isa_flags, except for
11846 ISA_64BIT, ABI_64, ABI_X32, and CODE16.
11847
11848 2015-10-19 Joost VandeVondele <vondele@gnu.gcc.org>
11849
11850 PR middle-end/68002
11851 * common.opt (fkeep-static-functions): New option.
11852 * doc/invoke.texi: Document it.
11853 * cgraphunit.c (cgraph_node::finalize_function): Use it.
11854
11855 2015-10-19 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
11856
11857 * sched-int.h (struct autopref_multipass_data_): Remove offset
11858 field. Add min_offset, max_offset, multi_mem_insn_p fields.
11859 * haifa-sched.c (analyze_set_insn_for_autopref): New function.
11860 (autopref_multipass_init): Use it. Handle PARALLEL sets.
11861 (autopref_rank_data): New function.
11862 (autopref_rank_for_schedule): Use it.
11863 (autopref_multipass_dfa_lookahead_guard_1): Likewise.
11864
11865 2015-10-18 Mikhail Maltsev <maltsevm@gmail.com>
11866
11867 PR other/65800
11868 * gengtype.c (dump_type): Handle TYPE_UNDEFINED correctly.
11869
11870 2015-10-18 Iain Sandoe <iain@codesourcery.com>
11871
11872 * config/darwin.h (TARGET_SYSTEM_ROOT): Remove this from here,
11873 (HAVE_LD_SYSROOT): New. (SYSROOT_SPEC): New.
11874 (LINK_SYSROOT_SPEC): Revise to remove the default for target sysroot.
11875 (STANDARD_STARTFILE_PREFIX_1): New.
11876 (STANDARD_STARTFILE_PREFIX_2): New.
11877
11878 2015-10-18 Iain Sandoe <iain@codesourcery.com>
11879
11880 * config/darwin-driver.c (darwin_default_min_version): Refactor code.
11881 (darwin_driver_init): Note a version-min when provided on the c/l.
11882 * config/darwin.h (%darwin_minversion): Remove.
11883 * config/i386/darwin.h: Likewise.
11884 * config/rs6000/darwin.h: Likewise.
11885 * config/darwin.opt (mmacosx-version-min=): Use the configured default,
11886 rather than an arbitrary constant.
11887
11888 2015-10-18 Iain Sandoe <iain@codesourcery.com>
11889
11890 * config/darwin-driver.c (darwin_driver_init): Handle '-arch' for
11891 PPC, detect conflicts between -arch and multilib settings. Detect
11892 and warn about conflicts between multiple -arch definitions.
11893
11894 2015-10-18 Iain Sandoe <iain@codesourcery.com>
11895
11896 * config/darwin-driver.c: Adjust includes to add diagnostic-core.
11897
11898 2015-10-16 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
11899
11900 * lra-constraints.c (add_next_usage_insn): Change argument type
11901 from rtx to rtx_insn *.
11902
11903 2015-10-16 H.J. Lu <hongjiu.lu@intel.com>
11904
11905 * i386/x86-tune.def (X86_TUNE_ALWAYS_FANCY_MATH_387): Disable
11906 for Lakemont.
11907
11908 2015-10-16 Andrew MacLeod <amacleod@redhat.com>
11909
11910 * config/tilepro/gen-mul-tables.cc: Adjust include files.
11911 * config/tilegx/mul-tables.c: Regenerate.
11912 * config/tilepro/mul-tables.c: Regenerate.
11913
11914 * config/tilegx/tilegx-c.c: Adjust include files.
11915 * config/tilegx/tilegx.c: Likewise.
11916 * config/tilepro/tilepro-c.c: Likewise.
11917 * config/tilepro/tilepro.c: Likewise.
11918 * config/aarch64/aarch64-builtins.c: Likewise.
11919 * config/aarch64/aarch64.c: Likewise.
11920 * config/aarch64/cortex-a57-fma-steering.c: Likewise.
11921 * config/alpha/alpha.c: Likewise.
11922 * config/arc/arc.c: Likewise.
11923 * config/arm/aarch-common.c: Likewise.
11924 * config/arm/arm-builtins.c: Likewise.
11925 * config/arm/arm-c.c: Likewise.
11926 * config/arm/arm.c: Likewise.
11927 * config/avr/avr-c.c: Likewise.
11928 * config/avr/avr-devices.c: Likewise.
11929 * config/avr/avr-log.c: Likewise.
11930 * config/avr/avr.c: Likewise.
11931 * config/bfin/bfin.c: Likewise.
11932 * config/c6x/c6x.c: Likewise.
11933 * config/cr16/cr16.c: Likewise.
11934 * config/cris/cris.c: Likewise.
11935 * config/darwin-c.c: Likewise.
11936 * config/darwin-driver.c: Likewise.
11937 * config/darwin.c: Likewise.
11938 * config/default-c.c: Likewise.
11939 * config/epiphany/epiphany.c: Likewise.
11940 * config/epiphany/mode-switch-use.c: Likewise.
11941 * config/epiphany/resolve-sw-modes.c: Likewise.
11942 * config/fr30/fr30.c: Likewise.
11943 * config/frv/frv.c: Likewise.
11944 * config/ft32/ft32.c: Likewise.
11945 * config/glibc-c.c: Likewise.
11946 * config/h8300/h8300.c: Likewise.
11947 * config/i386/host-cygwin.c: Likewise.
11948 * config/i386/host-mingw32.c: Likewise.
11949 * config/i386/i386-c.c: Likewise.
11950 * config/i386/i386.c: Likewise.
11951 * config/i386/msformat-c.c: Likewise.
11952 * config/i386/winnt-cxx.c: Likewise.
11953 * config/i386/winnt-stubs.c: Likewise.
11954 * config/i386/winnt.c: Likewise.
11955 * config/ia64/ia64-c.c: Likewise.
11956 * config/ia64/ia64.c: Likewise.
11957 * config/iq2000/iq2000.c: Likewise.
11958 * config/lm32/lm32.c: Likewise.
11959 * config/m32c/m32c-pragma.c: Likewise.
11960 * config/m32c/m32c.c: Likewise.
11961 * config/m32r/m32r.c: Likewise.
11962 * config/mcore/mcore.c: Likewise.
11963 * config/mep/mep-pragma.c: Likewise.
11964 * config/mep/mep.c: Likewise.
11965 * config/microblaze/microblaze-c.c: Likewise.
11966 * config/microblaze/microblaze.c: Likewise.
11967 * config/mips/mips-tables.opt
11968 * config/mips/mips.c: Likewise.
11969 * config/mmix/mmix.c: Likewise.
11970 * config/mn10300/mn10300.c: Likewise.
11971 * config/moxie/moxie.c: Likewise.
11972 * config/msp430/msp430-c.c: Likewise.
11973 * config/msp430/msp430.c: Likewise.
11974 * config/nds32/nds32-cost.c: Likewise.
11975 * config/nds32/nds32-fp-as-gp.c: Likewise.
11976 * config/nds32/nds32-intrinsic.c: Likewise.
11977 * config/nds32/nds32-isr.c: Likewise.
11978 * config/nds32/nds32-md-auxiliary.c: Likewise.
11979 * config/nds32/nds32-memory-manipulation.c: Likewise.
11980 * config/nds32/nds32-pipelines-auxiliary.c: Likewise.
11981 * config/nds32/nds32-predicates.c: Likewise.
11982 * config/nds32/nds32.c: Likewise.
11983 * config/nios2/nios2.c: Likewise.
11984 * config/nvptx/mkoffload.c: Likewise.
11985 * config/nvptx/nvptx.c: Likewise.
11986 * config/pa/pa.c: Likewise.
11987 * config/pdp11/pdp11.c: Likewise.
11988 * config/rl78/rl78-c.c: Likewise.
11989 * config/rl78/rl78.c: Likewise.
11990 * config/rs6000/host-darwin.c: Likewise.
11991 * config/rs6000/rs6000-c.c: Likewise.
11992 * config/rs6000/rs6000-linux.c: Likewise.
11993 * config/rs6000/rs6000.c: Likewise.
11994 * config/rx/rx.c: Likewise.
11995 * config/s390/s390-c.c: Likewise.
11996 * config/s390/s390.c: Likewise.
11997 * config/sh/sh-c.c: Likewise.
11998 * config/sh/sh-mem.cc: Likewise.
11999 * config/sh/sh.c: Likewise.
12000 * config/sh/sh_optimize_sett_clrt.cc: Likewise.
12001 * config/sh/sh_treg_combine.cc: Likewise.
12002 * config/sol2-c.c: Likewise.
12003 * config/sol2-cxx.c: Likewise.
12004 * config/sol2-stubs.c: Likewise.
12005 * config/sol2.c: Likewise.
12006 * config/sparc/sparc-c.c: Likewise.
12007 * config/sparc/sparc.c: Likewise.
12008 * config/spu/spu-c.c: Likewise.
12009 * config/spu/spu.c: Likewise.
12010 * config/stormy16/stormy16.c: Likewise.
12011 * config/v850/v850-c.c: Likewise.
12012 * config/v850/v850.c: Likewise.
12013 * config/vax/vax.c: Likewise.
12014 * config/visium/visium.c: Likewise.
12015 * config/vms/vms-c.c: Likewise.
12016 * config/vms/vms.c: Likewise.
12017 * config/vxworks.c: Likewise.
12018 * config/winnt-c.c: Likewise.
12019 * config/xtensa/xtensa.c: Likewise.
12020
12021 2015-10-16 Christian Bruel <christian.bruel@st.com>
12022
12023 PR target/67745
12024 * config/arm/arm.h (FUNCTION_BOUNDARY): Use FUNCTION_BOUNDARY_P.
12025 (FUNCTION_BOUNDARY_P): New macro:
12026 * config/arm/arm.c (TARGET_RELAYOUT_FUNCTION, arm_relayout_function):
12027 New hook.
12028 * doc/tm.texi.in (TARGET_RELAYOUT_FUNCTION): Document.
12029 * doc/tm.texi (TARGET_RELAYOUT_FUNCTION): New hook.
12030 * target.def (TARGET_RELAYOUT_FUNCTION): Likewise.
12031 * function.c (allocate_struct_function): Call
12032 relayout_function hook.
12033 * passes.c (rest_of_decl_compilation): Likewise.
12034
12035 2015-10-16 Christian Bruel <christian.bruel@st.com>
12036
12037 PR target/67745
12038 * config/arm/arm.h (FUNCTION_BOUNDARY): Move optimize_size condition to:
12039 * config/arm/arm.c (arm_option_override_internal): Call
12040 arm_override_options_after_change_1.
12041 (arm_override_options_after_change): New function.
12042 (arm_override_options_after_change_1): Likewise.
12043 (TARGET_OVERRIDE_OPTIONS_AFTER_CHANGE): Define hook.
12044
12045 2015-10-11 Jan Hubicka <hubicka@ucw.cz>
12046
12047 Revert:
12048 * ipa-icf-gimple.c (func_checker::compare_operand): Compare only
12049 empty constructors.
12050
12051 2015-10-16 Eric Botcazou <ebotcazou@adacore.com>
12052
12053 * tree.c (recompute_tree_invariant_for_addr_expr): Assert that the
12054 argument is an ADDR_EXPR.
12055
12056 2015-10-16 Richard Biener <rguenther@suse.de>
12057
12058 * gimple-fold.c (gimple_fold_builtin_memory_op): Use gimple_build
12059 and get rid of force_gimple_operand_gsi.
12060 (gimple_fold_builtin_memory_chk): Likewise.
12061 (gimple_fold_builtin_stxcpy_chk): Likewise.
12062 (rewrite_to_defined_overflow): Likewise.
12063 (gimple_convert_to_ptrofftype): New function.
12064 * gimple-fold.h (gimple_convert_to_ptrofftype): New overload, declare.
12065
12066 2015-10-16 Richard Biener <rguenther@suse.de>
12067
12068 * tree-nested.h (build_addr): Adjust prototype.
12069 * tree-nested.c (build_addr): Remove context argument and use
12070 mark_addressable.
12071 (get_static_chain): Adjust calls to build_addr.
12072 (convert_nl_goto_reference): Likewise.
12073 (convert_tramp_reference_op): Likewise.
12074 (finalize_nesting_tree_1): Likewise.
12075 * value-prof.c (gimple_ic): Likewise.
12076 * gimple-low.c (lower_builtin_setjmp): Likewise.
12077 * tree-parloops.c (take_address_of): Likewise.
12078 (create_call_for_reduction_1): Likewise.
12079 * tree-profile.c (gimple_gen_interval_profiler): Likewise.
12080 (gimple_gen_ic_func_profiler): Likewise.
12081
12082 2015-10-11 Jan Hubicka <hubicka@ucw.cz>
12083
12084 * ipa-icf-gimple.c (func_checker::compare_operand): Compare only
12085 empty constructors.
12086
12087 2015-10-16 Michael Collison <michael.collison@linaro.org>
12088 Andrew Pinski <andrew.pinski@caviumnetworks.com>
12089
12090 * match.pd ((x < y) && (x < z) -> x < min (y,z),
12091 (x > y) and (x > z) -> x > max (y,z))
12092
12093 2015-10-15 Gregor Richards <gregor.richards@uwaterloo.ca>
12094 Szabolcs Nagy <szabolcs.nagy@arm.com>
12095
12096 * config/microblaze/linux.h (MUSL_DYNAMIC_LINKER): Define.
12097 (DYNAMIC_LINKER): Renamed to ...
12098 (GLIBC_DYNAMIC_LINKER): This.
12099 (SUBTARGET_EXTRA_SPECS): Use GNU_USER_DYNAMIC_LINKER.
12100
12101 2015-10-15 Marek Polacek <polacek@redhat.com>
12102
12103 * tree-ssa-reassoc.c (attempt_builtin_copysign): Call
12104 gimple_call_builtin instead of is_gimple_call.
12105
12106 2015-10-15 Richard Biener <rguenther@suse.de>
12107
12108 * tree-vect-stmts.c (vect_init_vector): Remove unused vars.
12109
12110 2015-10-15 Richard Biener <rguenther@suse.de>
12111
12112 * tree-vectorizer.h (vect_get_new_ssa_name): Declare.
12113 * tree-vect-data-refs.c (vect_get_new_ssa_name): New helper.
12114 * tree-vect-loop.c (get_initial_def_for_induction): Drop
12115 use of force_gimple_operand in favor of gimple_build.
12116 Use vect_get_new_ssa_name.
12117 * tree-vect-stmts.c (vect_init_vector): Use vect_get_new_ssa_name.
12118 (vectorizable_mask_load_store): Likewise.
12119 (vectorizable_call): Likewise.
12120 (vectorizable_store): Likewise.
12121 (vectorizable_load): Likewise.
12122 (vect_get_vec_def_for_stmt_copy): Remove redundant stmt.
12123
12124 2015-10-15 Richard Sandiford <richard.sandiford@arm.com>
12125
12126 PR tree-optimization/67945
12127 * tree-pass.h (PROP_gimple_opt_math): New property flag.
12128 * generic-match-head.c (canonicalize_math_p): New function.
12129 * gimple-match-head.c: Include tree-pass.h.
12130 (canonicalize_math_p): New function.
12131 * match.pd: Group math built-in rules into simplifications
12132 and canonicalizations. Guard the latter with canonicalize_math_p.
12133 * tree-ssa-math-opts.c (pass_data_cse_sincos): Provide the
12134 PROP_gimple_opt_math property.
12135
12136 2015-10-15 Marek Polacek <polacek@redhat.com>
12137
12138 PR tree-optimization/67953
12139 * match.pd (X - (X / Y) * Y): Don't change signedness of @0.
12140
12141 2015-10-15 Jiong Wang <jiong.wang@arm.com>
12142
12143 * config.gcc: Recognize "." in architecture base name for AArch64.
12144
12145 2015-10-14 Uros Bizjak <ubizjak@gmail.com>
12146
12147 * config/mips/mips.h (MIPS_STACK_ALIGN): Implement using
12148 ROUND_UP macro.
12149 * config/mips/mips.c (mips_setup_incoming_varargs): Use
12150 ROUND_DOWN to calculate off.
12151 (mips_gimplify_va_arg_expr): Use ROUND_UP to calculate rsize.
12152 (mips_emit_probe_stack_range): Use ROUND_DOWN to calculate
12153 rounded_size.
12154
12155 2015-10-14 Eric Botcazou <ebotcazou@adacore.com>
12156
12157 * gimplify.c (gimplify_addr_expr) <MEM_REF>: New case.
12158
12159 2015-10-14 Peter Bergner <bergner@vnet.ibm.com>
12160 Torvald Riegel <triegel@redhat.com>
12161
12162 PR target/67281
12163 * config/rs6000/htm.md (UNSPEC_HTM_FENCE): New.
12164 (tabort, tabort<wd>c, tabort<wd>ci, tbegin, tcheck, tend,
12165 trechkpt, treclaim, tsr, ttest): Rename define_insns from this...
12166 (*tabort, *tabort<wd>c, *tabort<wd>ci, *tbegin, *tcheck, *tend,
12167 *trechkpt, *treclaim, *tsr, *ttest): ...to this. Add memory barrier.
12168 (tabort, tabort<wd>c, tabort<wd>ci, tbegin, tcheck, tend,
12169 trechkpt, treclaim, tsr, ttest): New define_expands.
12170 * config/rs6000/rs6000-c.c (rs6000_target_modify_macros): Define
12171 __TM_FENCE__ for htm.
12172 * doc/extend.texi: Update documentation for htm builtins.
12173
12174 2015-10-14 Uros Bizjak <ubizjak@gmail.com>
12175
12176 PR target/67967
12177 * config/i386/i386.c (ix86_emit_save_reg_using_mov): Do not add
12178 REG_CFA_EXPRESSION to aligned SSE stores.
12179
12180 2015-10-14 Jeff Law <law@redhat.com>
12181
12182 * tree-ssa-threadupdate.c (thread_through_all_blocks): Bump
12183 num_threaded_edges for successful FSM threads too.
12184
12185 2015-10-14 Richard Biener <rguenther@suse.de>
12186
12187 * tree-vectorizer.h (vect_is_simple_use): Remove unused parameters.
12188 (vect_is_simple_use_1): Likewise. Make overload of vect_is_simple_use.
12189 (vect_get_vec_def_for_operand): Remove unused parameter.
12190 * tree-vect-loop.c (get_initial_def_for_induction): Adjust.
12191 (vect_create_epilog_for_reduction): Likewise.
12192 (vectorizable_reduction): Likewise.
12193 (vectorizable_live_operation): Likewise.
12194 * tree-vect-patterns.c (type_conversion_p): Likewise.
12195 (vect_recog_vector_vector_shift_pattern): Likewise.
12196 (check_bool_pattern): Likewise.
12197 * tree-vect-slp.c (vect_get_and_check_slp_defs): Likewise.
12198 (vect_analyze_slp_cost_1): Likewise.
12199 * tree-vect-stmts.c (process_use): Likewise.
12200 (vect_get_vec_def_for_operand): Do not handle reductions.
12201 (vect_get_vec_defs): Adjust.
12202 (vectorizable_mask_load_store): Likewise.
12203 (vectorizable_call): Likewise.
12204 (vectorizable_simd_clone_call): Likewise.
12205 (vect_get_loop_based_defs): Likewise.
12206 (vectorizable_conversion): Likewise.
12207 (vectorizable_assignment): Likewise.
12208 (vectorizable_shift): Likewise.
12209 (vectorizable_operation): Likewise.
12210 (vectorizable_store): Likewise.
12211 (vectorizable_load): Likewise.
12212 (vect_is_simple_cond): Likewise.
12213 (vectorizable_condition): Likewise.
12214 (vect_is_simple_use): Remove unused parameters.
12215 (vect_is_simple_use_1): Adjust and rename.
12216
12217 2015-10-14 Richard Biener <rguenther@suse.de>
12218
12219 PR tree-optimization/67915
12220 * match.pd: Handle comparisons of addresses of STRING_CSTs.
12221 * gimplify.c (gimplify_cond_expr): Fold the GIMPLE conds we build.
12222 * tree-cfgcleanup.c (cleanup_control_expr_graph): Remove GENERIC
12223 stmt folding in favor of GIMPLE one.
12224
12225 2015-10-14 Marek Polacek <polacek@redhat.com>
12226
12227 PR tree-optimization/67815
12228 * tree-ssa-reassoc.c (attempt_builtin_copysign): New function.
12229 (reassociate_bb): Call it.
12230
12231 2015-10-14 Richard Biener <rguenther@suse.de>
12232
12233 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment):
12234 Reset info at start.
12235 (vect_analyze_group_access_1): Add debug print.
12236 * tree-vect-loop.c (vect_get_single_scalar_iteration_cost): Rename ...
12237 (vect_compute_single_scalar_iteration_cost): ... to this.
12238 (vect_analyze_loop_2): Adjust.
12239 * tree-vect-slp.c (struct _slp_oprnd_info): Move from ...
12240 * tree-vectorizer.h: ... here.
12241 (add_stmt_info_to_vec): Remove.
12242 * tree-vect-stmts.c (record_stmt_cost): Inline add_stmt_info_to_vec.
12243
12244 2015-10-14 Dominik Vogt <vogt@linux.vnet.ibm.com>
12245
12246 * targhooks.c (default_target_option_pragma_parse): Do not warn if
12247 called on behalf of "#pragma GCC pop_options".
12248
12249 2015-10-14 Tom de Vries <tom@codesourcery.com>
12250
12251 * cfganal.c (verify_no_unreachable_blocks): New function.
12252 (inverted_post_order_compute) [ENABLE_CHECKING]: Call
12253 verify_no_unreachable_blocks.
12254 cfganal.h (verify_no_unreachable_blocks): Declare.
12255
12256 2015-10-13 Mikhail Maltsev <maltsevm@gmail.com>
12257
12258 * common.opt: Add flag_checking.
12259 * system.h (CHECKING_P): Define.
12260
12261 2015-10-13 Jakub Jelinek <jakub@redhat.com>
12262 Aldy Hernandez <aldyh@redhat.com>
12263 Ilya Verbin <ilya.verbin@intel.com>
12264
12265 * builtin-types.def (BT_FN_BOOL_UINT_LONGPTR_LONGPTR_LONGPTR,
12266 BT_FN_BOOL_UINT_ULLPTR_ULLPTR_ULLPTR,
12267 BT_FN_BOOL_UINT_LONGPTR_LONG_LONGPTR_LONGPTR,
12268 BT_FN_BOOL_UINT_ULLPTR_ULL_ULLPTR_ULLPTR,
12269 BT_FN_VOID_INT_SIZE_PTR_PTR_PTR_UINT_PTR,
12270 BT_FN_VOID_INT_OMPFN_SIZE_PTR_PTR_PTR_UINT_PTR,
12271 BT_FN_VOID_OMPFN_PTR_OMPCPYFN_LONG_LONG_BOOL_UINT_PTR_INT,
12272 BT_FN_VOID_OMPFN_PTR_OMPCPYFN_LONG_LONG_UINT_LONG_INT_LONG_LONG_LONG,
12273 BT_FN_VOID_OMPFN_PTR_OMPCPYFN_LONG_LONG_UINT_LONG_INT_ULL_ULL_ULL,
12274 BT_FN_VOID_LONG_VAR, BT_FN_VOID_ULL_VAR): New.
12275 (BT_FN_VOID_INT_PTR_SIZE_PTR_PTR_PTR,
12276 BT_FN_VOID_INT_OMPFN_PTR_SIZE_PTR_PTR_PTR,
12277 BT_FN_VOID_OMPFN_PTR_OMPCPYFN_LONG_LONG_BOOL_UINT_PTR): Remove.
12278 * cgraph.h (enum cgraph_simd_clone_arg_type): Add
12279 SIMD_CLONE_ARG_TYPE_LINEAR_REF_CONSTANT_STEP,
12280 SIMD_CLONE_ARG_TYPE_LINEAR_UVAL_CONSTANT_STEP and
12281 SIMD_CLONE_ARG_TYPE_LINEAR_VAL_CONSTANT_STEP.
12282 (struct cgraph_simd_clone_arg): Adjust comment.
12283 * coretypes.h (struct gomp_ordered): New forward decl.
12284 * gimple.c (gimple_build_omp_critical): Add CLAUSES argument,
12285 set critical clauses to it.
12286 (gimple_build_omp_ordered): Return gomp_ordered * instead of
12287 gimple *. Add CLAUSES argument, set ordered clauses to it.
12288 (gimple_copy): Unshare clauses on GIMPLE_OMP_CRITICAL and
12289 GIMPLE_OMP_ORDERED.
12290 * gimple.def (GIMPLE_OMP_ORDERED): Change from GSS_OMP to
12291 GSS_OMP_SINGLE_LAYOUT, move it after GIMPLE_OMP_TEAMS.
12292 * gimple.h (enum gf_mask): Add GF_OMP_TASK_TASKLOOP. Add another bit
12293 to GF_OMP_FOR_KIND_MASK mask. Add GF_OMP_FOR_KIND_TASKLOOP, renumber
12294 GF_OMP_FOR_KIND_CILKFOR and GF_OMP_FOR_KIND_OACC_LOOP. Adjust
12295 GF_OMP_FOR_SIMD, GF_OMP_FOR_COMBINED and GF_OMP_FOR_COMBINED_INTO.
12296 Add another bit to GF_OMP_TARGET_KIND_MASK mask. Add
12297 GF_OMP_TARGET_KIND_ENTER_DATA and GF_OMP_TARGET_KIND_EXIT_DATA,
12298 renumber
12299 GF_OMP_TARGET_KIND_OACC_{PARALLEL,KERNELS,DATA,UPDATE,ENTER_EXIT_DATA}.
12300 (gomp_critical): Add clauses field.
12301 (gomp_ordered): New struct.
12302 (is_a_helper <gomp_ordered *>::test): New inline.
12303 (gimple_build_omp_critical): Add CLAUSES argument.
12304 (gimple_build_omp_ordered): Likewise. Return gomp_ordered *
12305 instead of gimple *.
12306 (gimple_omp_critical_clauses, gimple_omp_critical_clauses_ptr,
12307 gimple_omp_critical_set_clauses, gimple_omp_ordered_clauses,
12308 gimple_omp_ordered_clauses_ptr, gimple_omp_ordered_set_clauses,
12309 gimple_omp_task_taskloop_p, gimple_omp_task_set_taskloop_p): New
12310 inline functions.
12311 * gimple-pretty-print.c (dump_gimple_omp_for): Handle taskloop.
12312 (dump_gimple_omp_target): Handle enter data and exit data.
12313 (dump_gimple_omp_block): Don't handle GIMPLE_OMP_ORDERED here.
12314 (dump_gimple_omp_critical): Print clauses.
12315 (dump_gimple_omp_ordered): New function.
12316 (dump_gimple_omp_task): Handle taskloop.
12317 (pp_gimple_stmt_1): Use dump_gimple_omp_ordered for
12318 GIMPLE_OMP_ORDERED.
12319 * gimple-walk.c (walk_gimple_op): Walk clauses on
12320 GIMPLE_OMP_CRITICAL and GIMPLE_OMP_ORDERED.
12321 * gimplify.c (enum gimplify_omp_var_data): Add GOVD_MAP_0LEN_ARRAY.
12322 (enum omp_region_type): Add ORT_COMBINED_TARGET and ORT_NONE.
12323 (struct gimplify_omp_ctx): Add loop_iter_var,
12324 target_map_scalars_firstprivate, target_map_pointers_as_0len_arrays
12325 and target_firstprivatize_array_bases fields.
12326 (delete_omp_context): Release loop_iter_var.
12327 (gimplify_bind_expr): Handle ORT_NONE.
12328 (maybe_fold_stmt): Adjust check for ORT_TARGET for the addition of
12329 ORT_COMBINED_TARGET.
12330 (is_gimple_stmt): Return true for OMP_TASKLOOP, OMP_TEAMS and
12331 OMP_TARGET{,_DATA,_UPDATE,_ENTER_DATA,_EXIT_DATA}.
12332 (omp_firstprivatize_variable): Handle ORT_NONE. Adjust check for
12333 ORT_TARGET for the addition of ORT_COMBINED_TARGET. Handle
12334 ctx->target_map_scalars_firstprivate.
12335 (omp_add_variable): Handle ORT_NONE. Allow map clause together with
12336 data sharing clauses. For data sharing clause with VLA decl
12337 on omp target/target data don't add firstprivate for the pointer.
12338 Call omp_notice_variable on TYPE_SIZE_UNIT only if it is a DECL_P.
12339 (omp_notice_threadprivate_variable): Adjust check for ORT_TARGET for
12340 the addition of ORT_COMBINED_TARGET.
12341 (omp_notice_variable): Handle ORT_NONE. Adjust check for ORT_TARGET
12342 for the addition of ORT_COMBINED_TARGET. Handle implicit mapping of
12343 pointers as zero length array sections and
12344 ctx->target_map_scalars_firstprivate mapping of scalars as firstprivate
12345 data sharing.
12346 (omp_check_private): Handle omp_member_access_dummy_var vars.
12347 (find_decl_expr): New function.
12348 (gimplify_scan_omp_clauses): Add CODE argument. For OMP_CLAUSE_IF
12349 complain if OMP_CLAUSE_IF_MODIFIER is present and does not match code.
12350 Handle OMP_CLAUSE_GANG separately. Handle
12351 OMP_CLAUSE_{PRIORITY,GRAINSIZE,NUM_TASKS,NOGROUP,THREADS,SIMD,SIMDLEN}
12352 clauses. Diagnose linear clause on combined
12353 distribute {, parallel for} simd construct, unless it is the loop
12354 iterator. Handle struct element GOMP_MAP_FIRSTPRIVATE_POINTER.
12355 Handle map clauses with COMPONENT_REF. Initialize
12356 ctx->target_map_scalars_firstprivate,
12357 ctx->target_firstprivatize_array_bases and
12358 ctx->target_map_pointers_as_0len_arrays. Add firstprivate for
12359 linear clause even to target region if combined. Remove
12360 map clauses with GOMP_MAP_FIRSTPRIVATE_POINTER kind from
12361 OMP_TARGET_{,ENTER_,EXIT_}DATA. For GOMP_MAP_FIRSTPRIVATE_POINTER
12362 map kind with non-INTEGER_CST OMP_CLAUSE_SIZE firstprivatize the bias.
12363 Handle OMP_CLAUSE_DEPEND_{SINK,SOURCE}. Handle
12364 OMP_CLAUSE_{{USE,IS}_DEVICE_PTR,DEFAULTMAP,HINT}.
12365 For linear clause on worksharing loop combined with parallel add
12366 shared clause on the parallel. Handle OMP_CLAUSE_REDUCTION
12367 with MEM_REF OMP_CLAUSE_DECL. Set DECL_NAME on
12368 omp_member_access_dummy_var vars. Add lastprivate clause to outer
12369 taskloop if needed.
12370 (gimplify_adjust_omp_clauses_1): Handle GOVD_MAP_0LEN_ARRAY.
12371 If gimplify_omp_ctxp->target_firstprivatize_array_bases, use
12372 GOMP_MAP_FIRSTPRIVATE_POINTER map kind instead of
12373 GOMP_MAP_POINTER.
12374 (gimplify_adjust_omp_clauses): Add CODE argument. Handle removal
12375 of GOMP_MAP_FIRSTPRIVATE_POINTER struct elements for struct not seen
12376 in target body. Handle removal of struct mapping if struct is not
12377 seen in target body. Remove GOMP_MAP_STRUCT map clause on
12378 OMP_TARGET_EXIT_DATA. Adjust check for ORT_TARGET for the
12379 addition of ORT_COMBINED_TARGET. Use GOMP_MAP_FIRSTPRIVATE_POINTER
12380 instead of GOMP_MAP_POINTER if ctx->target_firstprivatize_array_bases
12381 for VLAs. Set OMP_CLAUSE_MAP_PRIVATE if both data sharing and map
12382 clause appear together. Handle
12383 OMP_CLAUSE_{{USE,IS}_DEVICE_PTR,DEFAULTMAP,HINT}. Don't remove map
12384 clause if it has map-type-modifier always. Handle
12385 OMP_CLAUSE_{PRIORITY,GRAINSIZE,NUM_TASKS,NOGROUP,THREADS,SIMD,SIMDLEN}
12386 clauses.
12387 (gimplify_oacc_cache, gimplify_omp_parallel, gimplify_omp_task):
12388 Adjust gimplify_scan_omp_clauses and gimplify_adjust_omp_clauses
12389 callers.
12390 (gimplify_omp_for): Likewise. Handle OMP_TASKLOOP. Initialize
12391 loop_iter_var. Use OMP_FOR_ORIG_DECLS. Fix handling of lastprivate
12392 iterators in doacross loops.
12393 (gimplify_omp_workshare): Adjust gimplify_scan_omp_clauses and
12394 gimplify_adjust_omp_clauses callers. Use ORT_COMBINED_TARGET
12395 for OMP_TARGET_COMBINED. Adjust check for ORT_TARGET
12396 for the addition of ORT_COMBINED_TARGET.
12397 (gimplify_omp_target_update): Adjust gimplify_scan_omp_clauses and
12398 gimplify_adjust_omp_clauses callers. Handle OMP_TARGET_ENTER_DATA
12399 and OMP_TARGET_EXIT_DATA.
12400 (gimplify_omp_ordered): New function.
12401 (gimplify_expr): Handle OMP_TASKLOOP, OMP_TARGET_ENTER_DATA and
12402 OMP_TARGET_EXIT_DATA. Use gimplify_omp_ordered for OMP_ORDERED.
12403 Gimplify clauses on OMP_CRITICAL.
12404 * internal-fn.c (expand_GOMP_SIMD_ORDERED_START,
12405 expand_GOMP_SIMD_ORDERED_END): New functions.
12406 * internal-fn.def (GOMP_SIMD_ORDERED_START,
12407 GOMP_SIMD_ORDERED_END): New internal functions.
12408 * omp-builtins.def (BUILT_IN_GOMP_LOOP_DOACROSS_STATIC_START,
12409 BUILT_IN_GOMP_LOOP_DOACROSS_DYNAMIC_START,
12410 BUILT_IN_GOMP_LOOP_DOACROSS_GUIDED_START,
12411 BUILT_IN_GOMP_LOOP_DOACROSS_RUNTIME_START,
12412 BUILT_IN_GOMP_LOOP_ULL_DOACROSS_STATIC_START,
12413 BUILT_IN_GOMP_LOOP_ULL_DOACROSS_DYNAMIC_START,
12414 BUILT_IN_GOMP_LOOP_ULL_DOACROSS_GUIDED_START,
12415 BUILT_IN_GOMP_LOOP_ULL_DOACROSS_RUNTIME_START,
12416 BUILT_IN_GOMP_DOACROSS_POST, BUILT_IN_GOMP_DOACROSS_WAIT,
12417 BUILT_IN_GOMP_DOACROSS_ULL_POST, BUILT_IN_GOMP_DOACROSS_ULL_WAIT,
12418 BUILT_IN_GOMP_TARGET_ENTER_EXIT_DATA, BUILT_IN_GOMP_TASKLOOP,
12419 BUILT_IN_GOMP_TASKLOOP_ULL): New built-ins.
12420 (BUILT_IN_GOMP_TASK): Add INT argument to the end.
12421 (BUILT_IN_GOMP_TARGET): Rename from GOMP_target to GOMP_target_41,
12422 adjust type.
12423 (BUILT_IN_GOMP_TARGET_DATA): Rename from GOMP_target_data to
12424 GOMP_target_data_41, adjust type.
12425 (BUILT_IN_GOMP_TARGET_UPDATE): Rename from GOMP_target_update to
12426 GOMP_target_update_41, adjust type.
12427 * omp-low.c (struct omp_region): Adjust comments, add ord_stmt
12428 field.
12429 (struct omp_for_data): Add ordered and simd_schedule fields.
12430 (omp_member_access_dummy_var, unshare_and_remap_1,
12431 unshare_and_remap, is_taskloop_ctx): New functions.
12432 (is_taskreg_ctx): Use is_parallel_ctx and is_task_ctx.
12433 (extract_omp_for_data): Handle taskloops and doacross loops
12434 and simd schedule modifier.
12435 (omp_adjust_chunk_size): New function.
12436 (get_ws_args_for): Use it.
12437 (lookup_sfield): Change first argument to splay_tree_key,
12438 add overload with first argument tree.
12439 (maybe_lookup_field): Likewise.
12440 (use_pointer_for_field): Handle omp_member_access_dummy_var.
12441 (omp_copy_decl_2): If var is TREE_ADDRESSABLE listed in
12442 task_shared_vars, clear TREE_ADDRESSABLE on the copy.
12443 (build_outer_var_ref): Add LASTPRIVATE argument, handle
12444 taskloops and omp_member_access_dummy_var vars.
12445 (build_sender_ref): Change first argument to splay_tree_key,
12446 add overload with first argument tree.
12447 (install_var_field): For mask & 8 use &DECL_UID as key instead
12448 of the tree itself.
12449 (fixup_child_record_type): Const qualify *.omp_data_i.
12450 (scan_sharing_clauses): Handle OMP_CLAUSE_SHARED_FIRSTPRIVATE,
12451 C/C++ array reductions, OMP_CLAUSE_{IS,USE}_DEVICE_PTR clauses,
12452 OMP_CLAUSE_{PRIORITY,GRAINSIZE,NUM_TASKS,SIMDLEN,THREADS,SIMD} and
12453 OMP_CLAUSE_{NOGROUP,DEFAULTMAP} clauses, OMP_CLAUSE__LOOPTEMP_ clause
12454 on taskloop, GOMP_MAP_FIRSTPRIVATE_POINTER, OMP_CLAUSE_MAP_PRIVATE.
12455 (create_omp_child_function): Set TREE_READONLY on .omp_data_i.
12456 (find_combined_for): Allow searching for different GIMPLE_OMP_FOR
12457 kinds.
12458 (add_taskreg_looptemp_clauses): New function.
12459 (scan_omp_parallel): Use it.
12460 (scan_omp_task): Likewise.
12461 (finish_taskreg_scan): Handle OMP_CLAUSE_SHARED_FIRSTPRIVATE.
12462 For taskloop, move fields for the first two _LOOPTEMP_ clauses first.
12463 (check_omp_nesting_restrictions): Handle GF_OMP_TARGET_KIND_ENTER_DATA
12464 and GF_OMP_TARGET_KIND_EXIT_DATA. Formatting fixes. Allow the
12465 sandwiched taskloop constructs. Type check
12466 OMP_CLAUSE_DEPEND_{KIND,SOURCE}. Allow ordered simd inside of simd
12467 region. Diagnose depend(source) or depend(sink:...) on
12468 target constructs or task/taskloop.
12469 (handle_simd_reference): Use get_name.
12470 (lower_rec_input_clauses): Likewise. Ignore all
12471 OMP_CLAUSE_LASTPRIVATE_FIRSTPRIVATE clauses on taskloop construct.
12472 Allow _LOOPTEMP_ clause on GOMP_TASK. Unshare new_var
12473 before passing it to omp_clause_{default,copy}_ctor. Handle
12474 OMP_CLAUSE_REDUCTION with MEM_REF OMP_CLAUSE_DECL. Set
12475 lastprivate_firstprivate flag for linear that needs copyin and
12476 copyout. Use BUILT_IN_ALLOCA_WITH_ALIGN instead of BUILT_IN_ALLOCA.
12477 (lower_lastprivate_clauses): For OMP_CLAUSE_LASTPRIVATE_FIRSTPRIVATE
12478 on taskloop lookup decl in outer context. Pass true to
12479 build_outer_var_ref lastprivate argument. Handle
12480 OMP_CLAUSE_LASTPRIVATE_TASKLOOP_IV lastprivate if the decl is global
12481 outside of outer taskloop for.
12482 (lower_reduction_clauses): Handle OMP_CLAUSE_REDUCTION with MEM_REF
12483 OMP_CLAUSE_DECL.
12484 (lower_send_clauses): Ignore first two _LOOPTEMP_ clauses in taskloop
12485 GOMP_TASK. Handle OMP_CLAUSE_SHARED_FIRSTPRIVATE. Handle
12486 omp_member_access_dummy_var vars. Handle OMP_CLAUSE_REDUCTION
12487 with MEM_REF OMP_CLAUSE_DECL. Use new lookup_sfield overload.
12488 (lower_send_shared_vars): Ignore fields with NULL or FIELD_DECL
12489 abstract origin. Handle omp_member_access_dummy_var vars.
12490 (expand_parallel_call): Use expand_omp_build_assign.
12491 (expand_task_call): Handle taskloop construct expansion. Add
12492 REGION argument. Use GOMP_TASK_* defines instead of hardcoded
12493 integers. Add priority argument to GOMP_task* calls. Or in
12494 GOMP_TASK_FLAG_PRIORITY into flags if priority is present for
12495 GOMP_task call.
12496 (expand_omp_build_assign): Add prototype. Add AFTER
12497 argument, if true emit statements after *GSI_P and continue linking.
12498 (expand_omp_taskreg): Adjust expand_task_call caller.
12499 (expand_omp_for_init_counts): Rename zero_iter_bb argument to
12500 zero_iter1_bb and first_zero_iter to first_zero_iter1, add
12501 zero_iter2_bb and first_zero_iter2 arguments, handle computation
12502 of counts even for ordered loops.
12503 (expand_omp_for_init_vars): Handle GOMP_TASK inner_stmt.
12504 (expand_omp_ordered_source, expand_omp_ordered_sink,
12505 expand_omp_ordered_source_sink, expand_omp_for_ordered_loops): New
12506 functions.
12507 (expand_omp_for_generic): Use omp_adjust_chunk_size. Handle linear
12508 clauses on worksharing loop. Handle DOACROSS loop expansion.
12509 (expand_omp_for_static_nochunk): Handle linear clauses on
12510 worksharing loop. Adjust expand_omp_for_init_counts
12511 callers.
12512 (expand_omp_for_static_chunk): Likewise. Use omp_adjust_chunk_size.
12513 (expand_omp_simd): Handle addressable fd->loop.v. Adjust
12514 expand_omp_for_init_counts callers.
12515 (expand_omp_taskloop_for_outer, expand_omp_taskloop_for_inner): New
12516 functions.
12517 (expand_omp_for): Call expand_omp_taskloop_for_* for taskloop.
12518 Handle doacross loops.
12519 (expand_omp_target): Handle GF_OMP_TARGET_KIND_ENTER_DATA and
12520 GF_OMP_TARGET_KIND_EXIT_DATA. Pass flags and depend arguments to
12521 GOMP_target_{41,update_41,enter_exit_data} libcalls.
12522 (expand_omp): Don't expand ordered depend constructs here, record
12523 ord_stmt instead for later expand_omp_for_generic.
12524 (build_omp_regions_1): Handle GF_OMP_TARGET_KIND_ENTER_DATA and
12525 GF_OMP_TARGET_KIND_EXIT_DATA. Treat GIMPLE_OMP_ORDERED with depend
12526 clause as stand-alone directive.
12527 (lower_omp_ordered_clauses): New function.
12528 (lower_omp_ordered): Handle OMP_CLAUSE_SIMD, for OMP_CLAUSE_DEPEND
12529 don't lower anything.
12530 (lower_omp_for_lastprivate): Use last _looptemp_ clause
12531 on taskloop for comparison.
12532 (lower_omp_for): Handle taskloop constructs. Adjust OMP_CLAUSE_DECL
12533 and OMP_CLAUSE_LINEAR_STEP so that expand_omp_for_* can use it during
12534 expansion for linear adjustments.
12535 (create_task_copyfn): Handle OMP_CLAUSE_SHARED_FIRSTPRIVATE.
12536 (lower_depend_clauses): Assert not seeing sink/source depend kinds.
12537 Set TREE_ADDRESSABLE on array. Change first argument from gimple *
12538 to tree * pointing to the stmt's clauses.
12539 (lower_omp_taskreg): Adjust lower_depend_clauses caller.
12540 (lower_omp_target): Handle GF_OMP_TARGET_KIND_ENTER_DATA
12541 and GF_OMP_TARGET_KIND_EXIT_DATA, depend clauses,
12542 GOMP_MAP_{RELEASE,ALWAYS_{TO,FROM,TOFROM},FIRSTPRIVATE_POINTER,STRUCT}
12543 map kinds, OMP_CLAUSE_{FIRSTPRIVATE,PRIVATE,{IS,USE}_DEVICE_PTR
12544 clauses. Always use short kind and 8-bit align shift.
12545 (lower_omp_regimplify_p): Use IS_TYPE_OR_DECL_P macro.
12546 (struct lower_omp_regimplify_operands_data): New type.
12547 (lower_omp_regimplify_operands_p, lower_omp_regimplify_operands):
12548 New functions.
12549 (lower_omp_1): Use lower_omp_regimplify_operands instead of
12550 gimple_regimplify_operands.
12551 (make_gimple_omp_edges): Handle GF_OMP_TARGET_KIND_ENTER_DATA and
12552 GF_OMP_TARGET_KIND_EXIT_DATA. Treat GIMPLE_OMP_ORDERED with depend
12553 clause as stand-alone directive.
12554 (simd_clone_clauses_extract): Honor OMP_CLAUSE_LINEAR_KIND.
12555 (simd_clone_mangle): Mangle the various linear kinds
12556 per the new ABI.
12557 (simd_clone_adjust_argument_types): Handle
12558 SIMD_CLONE_ARG_TYPE_LINEAR_*_CONSTANT_STEP.
12559 (simd_clone_init_simd_arrays): Don't do anything for uval.
12560 (simd_clone_adjust): Handle
12561 SIMD_CLONE_ARG_TYPE_LINEAR_REF_CONSTANT_STEP like
12562 SIMD_CLONE_ARG_TYPE_LINEAR_CONSTANT_STEP.
12563 Handle SIMD_CLONE_ARG_TYPE_LINEAR_UVAL_CONSTANT_STEP.
12564 * omp-low.h (omp_member_access_dummy_var): New prototype.
12565 * passes.def (pass_simduid_cleanup): Schedule another copy of the
12566 pass after all optimizations.
12567 * tree.c (omp_clause_code_name): Add entries for
12568 OMP_CLAUSE_{TO_DECLARE,LINK,{USE,IS}_DEVICE_PTR,DEFAULTMAP,HINT}
12569 and OMP_CLAUSE_{PRIORITY,GRAINSIZE,NUM_TASKS,NOGROUP,THREADS,SIMD}.
12570 (omp_clause_num_ops): Likewise. Bump number of OMP_CLAUSE_REDUCTION
12571 arguments to 5 and for OMP_CLAUSE_ORDERED to 1.
12572 (walk_tree_1): Adjust for OMP_CLAUSE_ORDERED having 1 argument and
12573 OMP_CLAUSE_REDUCTION 5 arguments. Handle
12574 OMP_CLAUSE_{TO_DECLARE,LINK,{USE,IS}_DEVICE_PTR,DEFAULTMAP,HINT}
12575 and OMP_CLAUSE_{PRIORITY,GRAINSIZE,NUM_TASKS,NOGROUP,THREADS,SIMD}
12576 clauses.
12577 * tree-core.h (enum omp_clause_linear_kind): New.
12578 (struct tree_omp_clause): Change type of map_kind
12579 from unsigned char to unsigned int. Add subcode.if_modifier
12580 and subcode.linear_kind fields.
12581 (enum omp_clause_code): Add
12582 OMP_CLAUSE_{TO_DECLARE,LINK,{USE,IS}_DEVICE_PTR,DEFAULTMAP,HINT}
12583 and OMP_CLAUSE_{PRIORITY,GRAINSIZE,NUM_TASKS,NOGROUP,THREADS,SIMD}.
12584 (OMP_CLAUSE_REDUCTION): Document
12585 OMP_CLAUSE_REDUCTION_DECL_PLACEHOLDER.
12586 (enum omp_clause_depend_kind): Add OMP_CLAUSE_DEPEND_{SOURCE,SINK}.
12587 * tree.def (OMP_FOR): Add OMP_FOR_ORIG_DECLS operand.
12588 (OMP_CRITICAL): Move before OMP_SINGLE. Add OMP_CRITICAL_CLAUSES
12589 operand.
12590 (OMP_ORDERED): Move before OMP_SINGLE. Add OMP_ORDERED_CLAUSES
12591 operand.
12592 (OMP_TASKLOOP, OMP_TARGET_ENTER_DATA, OMP_TARGET_EXIT_DATA): New tree
12593 codes.
12594 * tree.h (OMP_BODY): Replace OMP_CRITICAL with OMP_TASKGROUP.
12595 (OMP_CLAUSE_SET_MAP_KIND): Cast to unsigned int rather than unsigned
12596 char.
12597 (OMP_CRITICAL_NAME): Adjust to be 3rd operand instead of 2nd.
12598 (OMP_CLAUSE_NUM_TASKS_EXPR): Formatting fix.
12599 (OMP_STANDALONE_CLAUSES): Adjust to cover OMP_TARGET_{ENTER,EXIT}_DATA.
12600 (OMP_CLAUSE_DEPEND_SINK_NEGATIVE, OMP_TARGET_COMBINED,
12601 OMP_CLAUSE_MAP_PRIVATE, OMP_FOR_ORIG_DECLS, OMP_CLAUSE_IF_MODIFIER,
12602 OMP_CLAUSE_MAP_MAYBE_ZERO_LENGTH_ARRAY_SECTION, OMP_CRITICAL_CLAUSES,
12603 OMP_CLAUSE_PRIVATE_TASKLOOP_IV, OMP_CLAUSE_LASTPRIVATE_TASKLOOP_IV,
12604 OMP_CLAUSE_HINT_EXPR, OMP_CLAUSE_SCHEDULE_SIMD,
12605 OMP_CLAUSE_LINEAR_KIND, OMP_CLAUSE_REDUCTION_DECL_PLACEHOLDER,
12606 OMP_CLAUSE_SHARED_FIRSTPRIVATE, OMP_ORDERED_CLAUSES,
12607 OMP_TARGET_ENTER_DATA_CLAUSES, OMP_TARGET_EXIT_DATA_CLAUSES,
12608 OMP_CLAUSE_NUM_TASKS_EXPR, OMP_CLAUSE_GRAINSIZE_EXPR,
12609 OMP_CLAUSE_PRIORITY_EXPR, OMP_CLAUSE_ORDERED_EXPR): Define.
12610 * tree-inline.c (remap_gimple_stmt): Handle clauses on
12611 GIMPLE_OMP_ORDERED and GIMPLE_OMP_CRITICAL. For
12612 IFN_GOMP_SIMD_ORDERED_{START,END} set has_simduid_loops.
12613 * tree-nested.c (convert_nonlocal_omp_clauses): Handle
12614 OMP_CLAUSE_{TO_DECLARE,LINK,{USE,IS}_DEVICE_PTR,SIMDLEN,PRIORITY,SIMD}
12615 and OMP_CLAUSE_{GRAINSIZE,NUM_TASKS,HINT,NOGROUP,THREADS,DEFAULTMAP}
12616 clauses. Handle OMP_CLAUSE_REDUCTION_DECL_PLACEHOLDER.
12617 (convert_local_omp_clauses): Likewise.
12618 * tree-pretty-print.c (dump_omp_clause): Handle
12619 OMP_CLAUSE_{TO_DECLARE,LINK,{USE,IS}_DEVICE_PTR,SIMDLEN,PRIORITY,SIMD}
12620 and OMP_CLAUSE_{GRAINSIZE,NUM_TASKS,HINT,NOGROUP,THREADS,DEFAULTMAP}
12621 clauses. Handle OMP_CLAUSE_IF_MODIFIER, OMP_CLAUSE_ORDERED_EXPR,
12622 OMP_CLAUSE_SCHEDULE_SIMD, OMP_CLAUSE_LINEAR_KIND,
12623 OMP_CLAUSE_DEPEND_{SOURCE,SINK}. Use "delete" for
12624 GOMP_MAP_FORCE_DEALLOC. Handle
12625 GOMP_MAP_{ALWAYS_{TO,FROM,TOFROM},RELEASE,FIRSTPRIVATE_POINTER,STRUCT}.
12626 (dump_generic_node): Handle OMP_TASKLOOP, OMP_TARGET_{ENTER,EXIT}_DATA
12627 and clauses on OMP_ORDERED and OMP_CRITICAL.
12628 * tree-vectorizer.c (adjust_simduid_builtins): Adjust comment.
12629 Remove IFN_GOMP_SIMD_ORDERED_{START,END}.
12630 (vectorize_loops): Adjust comments.
12631 (pass_simduid_cleanup::execute): Likewise.
12632 * tree-vect-stmts.c (vectorizable_simd_clone_call): Handle
12633 SIMD_CLONE_ARG_TYPE_LINEAR_{REF,VAL,UVAL}_CONSTANT_STEP.
12634 * wide-int.h (wi::gcd): New.
12635
12636 2015-10-13 Uros Bizjak <ubizjak@gmail.com>
12637
12638 * config/i386/i386.c (classify_argument): Use CEIL where applicable.
12639 (ix86_function_arg_advance): Ditto.
12640 (ix86_function_arg): Ditto.
12641 (ix86_gimplify_va_arg): Ditto.
12642 (ix86_class_max_nregs): Ditto.
12643 (inline_memory_move_cost): Ditto.
12644 (ix86_set_reg_reg_cost): Ditto.
12645 * config/i386/i386.h (HARD_REGNO_NREGS): Ditto.
12646
12647 2015-10-13 Alexandre Oliva <aoliva@redhat.com>
12648
12649 PR middle-end/67912
12650 * expmed.c (store_bit_field_1): Adjust mode of BLKmode inputs.
12651
12652 2015-10-13 Uros Bizjak <ubizjak@gmail.com>
12653
12654 * config/sparc/sparc.h (SPARC_STACK_ALIGN): Implement using
12655 ROUND_UP macro and UNITS_PER_WORD * 2.
12656 * config/sparc/sparc.c (sparc_compute_frame_size):
12657 Use ROUND_UP and ROUND_DOWN macros where applicable.
12658 (function_arg_record_value, function_arg_record_value_1)
12659 (function_arg_record_value_1): Ditto.
12660 (emit_save_or_restore_regs): Use ROUND_DOWN to preserve offset
12661 alignment to double-word.
12662 (sparc_gimplify_va_arg): Use ROUND_UP to calculate rsize.
12663 (sparc_emit_probe_stack_range): Use ROUND_DOWN to calculate
12664 rounded_size.
12665
12666 2015-10-13 Nikolai Bozhenov <n.bozhenov@samsung.com>
12667
12668 * rtl.h (print_insn): Fix prototype.
12669
12670 2015-10-13 Tom de Vries <tom@codesourcery.com>
12671
12672 * tree-parloops.c (reduction_phi): Handle cases that gimple_uid is 0 or
12673 -1. Add assert that returned entry matches phi argument.
12674 (parallelize_loops): Move calls to init_stmt_vec_info_vec and
12675 free_stmt_vec_info_vec ...
12676 (gather_scalar_reductions): ... here. Initialize gimple_uids of phis
12677 with -1.
12678
12679 2014-10-13 Yuri Rumyantsev <ysrumyan@gmail.com>
12680
12681 PR tree-optimization/67909, 67947
12682 * tree-ssa-loop-unswitch.c (find_loop_guard): Add check that GUARD_EDGE
12683 really skip the inner loop.
12684
12685 2015-10-13 Jeff Law <law@redhat.com>
12686
12687 * tree-ssa-threadbackward.c (fsm_find_control_statement_thread_paths):
12688 Allow single block jump threading paths.
12689
12690 2015-10-13 Tom de Vries <tom@codesourcery.com>
12691
12692 PR tree-optimization/67476
12693 * doc/invoke.texi (@item parloops-schedule): New item.
12694 * params.def (PARAM_PARLOOPS_SCHEDULE): New DEFPARAMENUM5.
12695 * tree-parloops.c: Include params-enum.h.
12696 (create_parallel_loop): Handle PARAM_PARLOOPS_SCHEDULE.
12697
12698 2015-10-13 Tom de Vries <tom@codesourcery.com>
12699
12700 * Makefile.in (PARAMS_H, PLUGIN_HEADERS): Add params-enum.h.
12701 * params-enum.h: New file.
12702 * opts.c (handle_param): Handle case that param arg is a string.
12703 * params-list.h: Handle DEFPARAMENUM5 in params.def.
12704 * params.c (find_param): New function, factored out of ...
12705 (set_param_value): ... here.
12706 (param_string_value_p): New function.
12707 * params.h (struct param_info): Add value_names field.
12708 (find_param, param_string_value_p): Declare.
12709
12710 2015-10-13 Tom de Vries <tom@codesourcery.com>
12711
12712 PR tree-optimization/67476
12713 * omp-low.c (expand_omp_for_generic): Handle original loop tree.
12714
12715 2015-10-13 Richard Biener <rguenther@suse.de>
12716
12717 * tree-vect-data-refs.c (vect_analyze_data_ref_dependences): Allocate
12718 the data dependence vector.
12719 (vect_peeling_hash_insert): Get the peeling hash table as argument.
12720 (vect_peeling_hash_get_lowest_cost): Likewise.
12721 (vect_enhance_data_refs_alignment): Adjust.
12722 (struct _vect_peel_info, struct _vect_peel_extended_info,
12723 struct peel_info_hasher): Move from ...
12724 * tree-vectorizer.h: ... here.
12725 (LOOP_VINFO_COST_MODEL_MIN_ITERS): Remove.
12726 (LOOP_VINFO_PEELING_HTAB): Likewise.
12727 (struct _loop_vec_info): Remove min_profitable_iters and
12728 peeling_htab members.
12729 * tree-vect-loop.c (new_loop_vec_info): Do not allocate vectors
12730 here.
12731 (destroy_loop_vec_info): Adjust.
12732 (vect_analyze_loop_2): Do not set LOOP_VINFO_COST_MODEL_MIN_ITERS.
12733 (vect_estimate_min_profitable_iters): Use LOOP_VINFO_COMP_ALIAS_DDRS
12734 to estimate alias versioning cost.
12735 * tree-vect-slp.c (vect_analyze_slp_cost): Dump header.
12736
12737 2015-10-13 Richard Sandiford <richard.sandiford@arm.com>
12738
12739 * real.h (real_isinteger): Declare.
12740 * real.c (real_isinteger): New function.
12741 * match.pd: Simplify pow(|x|,y) and pow(-x,y) to pow(x,y)
12742 if y is an even integer.
12743
12744 2015-10-11 Jan Hubicka <hubicka@ucw.cz>
12745
12746 revert:
12747 2015-10-11 Jan Hubicka <hubicka@ucw.cz>
12748 * cgraphbuild.c (compute_call_stmt_bb_frequency): Use
12749 counts when these are more informative.
12750
12751 2015-10-12 Jeff Law <law@redhat.com>
12752
12753 * tree-ssa-threadbackward.c (get_gimple_control_stmt): New function.
12754 (fsm_find_control_stmt_paths): Change name of first argument to
12755 more accurately relfect what it really is. Handle simplification
12756 of GIMPLE_COND after finding a thread path for NAME.
12757 * tree-ssa-threadedge.c (simplify_control_stmt_condition): Allow
12758 nontrivial conditions to be handled by FSM threader.
12759 (thread_through_normal_block): Extract the name to looup via
12760 FSM threader from COND_EXPR.
12761
12762 * tree-ssa-threadbackward.c (fsm_find_thread_path): Remove
12763 restriction that traced SSA_NAME is a user variable.
12764
12765 2015-10-12 Tom de Vries <tom@codesourcery.com>
12766
12767 PR tree-optimization/67476
12768 * omp-low.c (expand_omp_for_generic): Add missing phis.
12769
12770 2015-10-12 Tom de Vries <tom@codesourcery.com>
12771
12772 PR tree-optimization/67476
12773 * omp-low.c (expand_omp_for_generic): Handle simple latch.
12774
12775 2015-10-12 Christophe Lyon <christophe.lyon@linaro.org>
12776
12777 * config/aarch64/aarch64-simd-builtins.def: Update builtins
12778 tables: add tbl3 and tbx4.
12779 * config/aarch64/aarch64-simd.md (aarch64_tbl3v8qi): New.
12780 (aarch64_tbx4v8qi): New.
12781 * config/aarch64/arm_neon.h (vtbl3_s8, vtbl3_u8, vtbl3_p8)
12782 (vtbl4_s8, vtbl4_u8, vtbl4_p8, vtbx4_s8, vtbx4_u8, vtbx4_p8):
12783 Rewrite using builtin functions.
12784 * config/aarch64/iterators.md (UNSPEC_TBX): New.
12785
12786 2015-10-12 Uros Bizjak <ubizjak@gmail.com>
12787
12788 * config/rs6000/rs6000.h (RS6000_ALIGN): Implement using
12789 ROUND_UP macro.
12790 * config/rs6000/rs6000.c (rs6000_darwin64_record_arg_advance_flush):
12791 Use ROUND_UP and ROUND_DOWN macros where applicable.
12792 (rs6000_darwin64_record_arg_flush): Ditto.
12793 (rs6000_function_arg): Use ROUND_UP to calculate align_words.
12794 (rs6000_emit_probe_stack_range): Use ROUND_DOWN to calculate
12795 rounded_size.
12796
12797 2015-10-12 Uros Bizjak <ubizjak@gmail.com>
12798
12799 * config/aarch/aarch64.h (AARCH64_ROUND_UP): Remove.
12800 (AARCH64_ROUND_DOWN): Ditto.
12801 * config/aarch64/aarch64.c: Use ROUND_UP instead of AARCH64_ROUND_UP.
12802
12803 2015-10-12 Richard Biener <rguenther@suse.de>
12804
12805 PR ipa/67783
12806 * ipa-inline-analysis.c (estimate_function_body_sizes): Re-add
12807 code that analyzes IVs on each stmt but in a cheaper way avoiding
12808 quadratic behavior.
12809
12810 2015-10-12 Nick Clifton <nickc@redhat.com>
12811
12812 * config/msp430/msp430.c (msp430_mcu_names): Rename to
12813 msp430_mcu_data, add fields for ISA and hardware multiply
12814 support. Import latest data from the devices.csv file.
12815 (msp430_override_option): Use the data from the new array.
12816 (msp430_use_f5_series_hwmult): Likewise.
12817 (use_32bit_hwmult): Likewise.
12818 (msp430_no_hwmult): Likewise.
12819 * config/msp430/t-msp430 (MULTILIB_MATCHES): Add matches for new
12820 MCU names.
12821 * doc/invoke.texi (MSP430 Options): Note that if the MCU name is
12822 not recognised then no hardware multiply support is assumed and
12823 that only the MSP430 ISA is allowed.
12824
12825 2015-10-12 Richard Biener <rguenther@suse.de>
12826
12827 * tree-vect-loop.c (vect_analyze_loop_operations): Move cost
12828 related code ...
12829 (vect_analyze_loop_2): ... here.
12830
12831 2015-10-11 Jason Merrill <jason@redhat.com>
12832
12833 PR c++/67557
12834 * expr.c (store_field): Call store_constructor directly when
12835 storing a CONSTRUCTOR into a target smaller than its type.
12836 Guard against unsafe bitwise copy.
12837
12838 2015-10-11 Jan Hubicka <hubicka@ucw.cz>
12839
12840 * cgraphbuild.c (compute_call_stmt_bb_frequency): Use
12841 counts when these are more informative.
12842
12843 2015-10-11 Jan Hubicka <hubicka@ucw.cz>
12844
12845 * tree-profile.c (tree_profiling): Do not clear
12846 pure/const when not instrumenting.
12847 (pass tree_profile): Add dump of symtab.
12848
12849 2015-10-11 Jan Hubicka <hubicka@ucw.cz>
12850
12851 * fold-const.c (fold_comparsion): Pass OEP_ADDRESS_OF when comparing
12852 addresses.
12853 (fold_addr_of_array_ref_difference): Likewise.
12854
12855 2015-10-11 Jeff Law <law@redhat.com>
12856
12857 * tree-ssa-threadedge.c (fsm_find_thread_path): Moved from here into
12858 tree-ssa-threadbackward.c.
12859 (fsm_find_control_statement_thread_paths): Likewise.
12860 (thread_through_normal_block): Break out FSM bits and move them
12861 into a new function in tree-ssa-threadbackward.c. Call new function
12862 instead.
12863 Minimize header file usage.
12864 * tree-ssa-threadbackward.h: New file.
12865 * tree-ssa-threadbackward.c: Likewise.
12866 * Makefile.in (OBJS): Add tree-ssa-threadbackward.o
12867
12868 2015-10-11 Uros Bizjak <ubizjak@gmail.com>
12869
12870 * config/alpha/alpha.h (ALPHA_ROUND): Implement using ROUND_UP macro.
12871
12872 2015-10-11 Segher Boessenkool <segher@kernel.crashing.org>
12873
12874 PR rtl-optimization/67864
12875 * bb-reorder (reorder_basic_blocks_simple): Prefer existing
12876 fallthrough edges for conditional jumps. Don't sort candidate
12877 edges if not optimizing for speed.
12878
12879 2015-10-10 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
12880
12881 * defaults.h (REVERSE_CONDITION): New default definition.
12882 * jump.c (reversed_comparison_code_parts): Adjust.
12883
12884 2015-10-10 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
12885
12886 * builtins.c (expand_builtin_setjmp_receiver): Don't use #if to
12887 check HARD_FRAME_POINTER_IS_ARG_POINTER.
12888
12889 2015-10-10 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
12890
12891 * defaults.h (FRAME_ADDR_RTX): New default definition.
12892 * builtins.c (expand_builtin_return_addr): Adjust.
12893
12894 2015-10-10 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
12895
12896 * defaults.h (DYNAMIC_CHAIN_ADDRESS): New default definition.
12897 * builtins.c (expand_builtin_return_addr): Adjust.
12898
12899 2015-10-10 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
12900
12901 * defaults.h (SETUP_FRAME_ADDRESSES): New default definition.
12902 * builtins.c (expand_builtin_return_addr): Adjust.
12903 * doc/tm.texi: Likewise.
12904 * doc/tm.texi.in: Likewise.
12905 * except.c (expand_builtin_unwind_init): Likewise.
12906
12907 2015-10-10 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
12908
12909 * builtins.c (expand_builtin_return_addr): Adjust.
12910 * defaults.h (INITIAL_FRAME_ADDRESS_RTX): New default definition.
12911
12912 2015-10-10 Jan Hubicka <hubicka@ucw.cz>
12913
12914 * tree.c (type_with_interoperable_signedness): New.
12915 (gimple_canonical_types_compatible_p): Use it.
12916 * tree.h (type_with_interoperable_signedness): Declare
12917
12918 2015-10-10 Jan Hubicka <hubicka@ucw.cz>
12919
12920 * fold-const.c (operand_equal_p): Document OEP_ADDRESS_OF
12921 and OEP_CONSTANT_ADDRESS_OF; skip type compatibility checks
12922 when OEP_ADDRESS_OF is se.
12923
12924 2015-10-10 Aditya Kumar <aditya.k7@samsung.com>
12925 Sebastian Pop <s.pop@samsung.com>
12926
12927 * graphite-dependences.c (scop_get_dependences): Add dump of the
12928 data dependence graph.
12929 * graphite-poly.c (print_isl_union_map): New.
12930 (debug_isl_union_map): New.
12931 * graphite-poly.h (print_isl_union_map): Declare.
12932 (debug_isl_union_map): Declare.
12933
12934 2015-10-10 Aditya Kumar <aditya.k7@samsung.com>
12935 Sebastian Pop <s.pop@samsung.com>
12936
12937 * graphite-poly.c (print_iteration_domain): Remove verbosity.
12938 Remove OpenScop formatting.
12939 (print_iteration_domains): Same.
12940 (debug_iteration_domain): Same.
12941 (debug_iteration_domains): Same.
12942 (print_pdr): Same.
12943 (debug_pdr): Same.
12944 (dump_gbb_cases): Same.
12945 (dump_gbb_conditions): Same.
12946 (print_pdrs): Same.
12947 (debug_pdrs): Same.
12948 (print_pbb_body): Same.
12949 (print_pbb): Same.
12950 (print_scop_params): Same.
12951 (print_scop_context): Same.
12952 (print_scop): Same.
12953 (debug_pbb_domain): Same.
12954 (debug_pbb): Same.
12955 (debug_scop_context): Same.
12956 (debug_scop): Same.
12957 (debug_scop_params): Same.
12958 * graphite-poly.h: Same.
12959 * graphite.c (graphite_transform_loops): Same.
12960
12961 2015-10-10 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
12962
12963 * function.c (stack_protect_epilogue): Remove as_a<rtx_insn *> ()
12964 call that isn't needed.
12965
12966 2015-10-09 Jeff Law <law@redhat.com>
12967
12968 * tree-ssanames.c (flush_ssaname_freelist): Use splice and truncate
12969 rather than moving each name to the freelist individually.
12970
12971 2015-10-09 Steve Ellcey <sellcey@imgtec.com>
12972
12973 * config.gcc (mips*-*-*): Add frame-header-opt.o to extra_objs.
12974 * frame-header-opt.c: New file.
12975 * config/mips/mips-proto.h (mips_register_frame_header_opt):
12976 Add prototype.
12977 * config/mips/mips.c (mips_compute_frame_info): Check
12978 optimize_call_stack flag.
12979 (mips_option_override): Register new frame_header_opt pass.
12980 (mips_frame_info, mips_int_mask, mips_shadow_set,
12981 machine_function): Move these types to...
12982 * config/mips/mips.h: here.
12983 (machine_function): Add does_not_use_frame_header and
12984 optimize_call_stack fields.
12985 * config/mips/t-mips (frame-header-opt.o): Add new make rule.
12986 * doc/invoke.texi (-mframe-header-opt, -mno-frame-header-opt):
12987 Document new flags.
12988 * config/mips/mips.opt (mframe-header-opt): Add new option.
12989
12990 2015-10-09 Uros Bizjak <ubizjak@gmail.com>
12991
12992 * config/i386/i386.c
12993 (expand_set_or_movmem_prologue_epilogue_by_misaligned_moves): Use
12994 ROUND_DOWN where applicable.
12995
12996 2015-10-09 Jeff Law <law@redhat.com>
12997
12998 * tree-vect-stmts.c (free_stmt_vec_info): Free the LHS of the
12999 correct statement.
13000
13001 2015-10-09 Renlin Li <renlin.li@arm.com>
13002
13003 * config/arm/neon.md (neon_vuzp<mode>_insn): Add & modifier for
13004 operands[0] and operands[2].
13005 (neon_vtrn<mode>_insn): Likewise.
13006 (neon_vzip<mode>_insn): Likewise.
13007
13008 2015-10-09 Andre Vieira <andre.simoesdiasvieira@arm.com>
13009
13010 * match.pd: ((X inner_op C0) outer_op C1) New pattern.
13011 ((X & C2) << C1): Expand to...
13012 (X {&,^,|} C2 << C1): ...This.
13013 ((X & C2) >> C1): Expand to...
13014 (X {&,^,|} C2 >> C1): ...This.
13015
13016 2015-10-09 Alexander Fomin <alexander.fomin@intel.com>
13017
13018 PR target/67895
13019 * config/i386/sse.md (define_insn "sse_cvtsi2ss<round_name>"):
13020 Adjust embedded rounding/SAE specifier position.
13021 (define_insn "sse_cvtsi2ssq<round_name>"): Likewise.
13022 (define_insn "cvtusi2<ssescalarmodesuffix>32<round_name>"): Likewise.
13023 (define_insn "cvtusi2<ssescalarmodesuffix>64<round_name>"): Likewise.
13024 (define_insn "sse2_cvtsi2sdq<round_name>"): Likewise.
13025 (define_insn "avx512dq_rangep<mode><mask_name><round_saeonly_name>"):
13026 Likewise.
13027 (define_insn "avx512dq_ranges<mode><round_saeonly_name>"): Likewise.
13028
13029 2015-10-09 Martin Jambor <mjambor@suse.cz>
13030
13031 tree-optimization/67794
13032 * tree-sra.c (replace_removed_params_ssa_names): Do not distinguish
13033 between types of state,ents but accept original definitions as a
13034 parameter.
13035 (ipa_sra_modify_function_body): Use FOR_EACH_SSA_DEF_OPERAND to
13036 iterate over definitions.
13037
13038 2015-10-09 James Norris <jnorris@codesourcery.com>
13039
13040 * config/rs6000/rs6000.c (rs6000_offload_options): New.
13041 (TARGET_OFFLOAD_OPTIONS): New.
13042
13043 2015-10-09 Alexandre Oliva <aoliva@redhat.com>
13044
13045 PR middle-end/67891
13046 * cfgexpand.c (set_parm_rtl): Drop is_gimple_reg test.
13047
13048 PR middle-end/67766
13049 * function.c (expand_function_end): Move return value
13050 promotion past the handling of PARALLELs and CONCATs.
13051
13052 PR rtl-optimization/67828
13053 * tree-ssa-loop-unswitch.c: Include tree-ssa.h.
13054 (tree_may_unswitch_on): Don't unswitch on expressions
13055 involving undefined values.
13056
13057 2015-10-09 Richard Biener <rguenther@suse.de>
13058
13059 * genmatch.c (print_operand): Fix formatting.
13060 (dt_node::append_simplify): Warn for multiple simplifiers
13061 that match the same pattern.
13062 * match.pd (log (exp @0)): Remove duplicates.
13063
13064 2015-10-09 Richard Biener <rguenth@suse.de>
13065
13066 PR target/67366
13067 * gimple-fold.c (optabs-query.h): Include
13068 (gimple_fold_builtin_memory_op): Allow unaligned stores
13069 when movmisalign_optabs are available.
13070
13071 2015-10-09 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
13072
13073 PR target/67366
13074 * config/arm/arm.md (movmisalign<mode>): New.
13075 * config/arm/iterators.md (HSI): New.
13076
13077 2015-10-09 Richard Biener <rguenther@suse.de>
13078
13079 PR tree-optimization/67891
13080 * gimple-match.h (gimple_simplified_result_is_gimple_val):
13081 New helper.
13082 (gimple_resimplify1): Declare.
13083 (gimple_resimplify2): Likewise.
13084 (gimple_resimplify3): Likewise.
13085 * gimple-match-head.c (gimple_resimplify1): Export.
13086 (gimple_resimplify2): Likewise.
13087 (gimple_resimplify3): Likewise.
13088 (maybe_push_res_to_seq): Use gimple_simplified_result_is_gimple_val.
13089 * gimple-fold.c (gimple_fold_stmt_to_constant_1): Likewise.
13090 * tree-ssa-sccvn.c (visit_reference_op_load): Use gimple_resimplify1
13091 to avoid creating stmts without VN info.
13092
13093 2015-10-08 Jan Hubicka <hubicka@ucw.cz>
13094
13095 * ipa-icf.c (sem_item::compare_symbol_references): Fix use
13096 of availability.
13097
13098 2015-10-08 Jeff Law <law@redhat.com>
13099
13100 * value-prof.c (gimple_ic): Add missing calls to unlink_stmt_vdef
13101 and release_ssa_name in two places.
13102 (gimple_stringop_fixed_value): Similarly.
13103
13104 * tree-ssa-loop-im.c (rewrite_bittest): Add missing call to
13105 release_defs.
13106
13107 * tree-stdarg.c (expand_ifn_va_arg_1): Add missing call to
13108 unlink_stmt_vdef and release_ssa_name_fn.
13109
13110 * tree-ssa-dse.c (dse_optimize_stmt): Add missing call to
13111 release_defs.
13112
13113 2015-10-08 H.J. Lu <hongjiu.lu@intel.com>
13114
13115 * config/i386/i386.c (ix86_compute_frame_layout): Round up the
13116 SSE register save area to 16 bytes only if the incoming stack
13117 boundary is no less than 16 bytes.
13118
13119 2015-10-08 Jeff Law <law@redhat.com>
13120
13121 * tree-ssa-phiopt.c (factor_out_conversion): Add missing calls to
13122 release_ssa_name. Fix typo in comment.
13123
13124 2015-10-08 Nathan Sidwell <nathan@acm.org>
13125
13126 * config/nvptx/nvptx.h (struct machine_function): Add comment.
13127 * config/nvptx/nvptx.c (nvptx_declare_function_name): Functions
13128 may return pointer as well as in memory.
13129 (nvptx_output_return): Likewise.
13130
13131 2015-10-08 Richard Sandiford <richard.sandiford@arm.com>
13132
13133 * builtins.c (fold_builtin_sqrt, fold_builtin_cbrt): Delete.
13134 (fold_builtin_1): Update accordingly. Handle constant arguments here.
13135 * match.pd: Add rules previously handled by fold_builtin_sqrt
13136 and fold_builtin_cbrt.
13137
13138 2015-10-08 Richard Sandiford <richard.sandiford@arm.com>
13139
13140 * params.def (PARAM_MAX_SSA_NAME_QUERY_DEPTH): New param.
13141 * doc/invoke.texi (--param max-ssa-name-query-depth): Document.
13142 * fold-const.h (tree_unary_nonnegative_warnv_p)
13143 (tree_single_nonnegative_warnv_p, tree_call_nonnegative_warnv_p)
13144 (tree_expr_nonnegative_warnv_p): Add depth parameters.
13145 * fold-const.c: Include gimple-fold.h and params.h.
13146 (tree_ssa_name_nonnegative_warnv_p): New function.
13147 (tree_unary_nonnegative_warnv_p, tree_binary_nonnegative_warnv_p)
13148 (tree_single_nonnegative_warnv_p, tree_call_nonnegative_warnv_p)
13149 (tree_invalid_nonnegative_warnv_p, tree_expr_nonnegative_warnv_p):
13150 Add a depth parameter and increment it for recursive calls to
13151 tree_expr_nonnegative_warnv_p. Use tree_ssa_name_nonnegative_warnv_p
13152 to handle SSA names.
13153 * gimple-fold.h (gimple_val_nonnegative_real_p): Delete.
13154 (gimple_stmt_nonnegative_warnv_p): Declare.
13155 * tree-vrp.c (remove_range_assertions): Remove assert that condition
13156 cannot be proven false.
13157 (gimple_assign_nonnegative_warnv_p, gimple_call_nonnegative_warnv_p)
13158 (gimple_stmt_nonnegative_warnv_p): Move to...
13159 * gimple-fold.c: ...here. Add depth parameters and pass them
13160 down to the tree routines. Accept statements that aren't
13161 assignments or calls but just return false for them.
13162 (gimple_val_nonnegative_real_p): Delete.
13163 * tree-ssa-math-opts.c (gimple_expand_builtin_pow): Use
13164 tree_expr_nonnegative_p instead of gimple_val_nonnegative_real_p.
13165 Check HONOR_NANs first.
13166
13167 2015-10-08 Martin Jambor <mjambor@suse.cz>
13168
13169 * ipa-cp.c (meet_with_1): Make the argument of abs signed. Remove
13170 unnecessary MIN.
13171
13172 2015-10-08 Yuri Rumyantsev <ysrumyan@gmail.com>
13173
13174 * tree-vect-loop.c (vect_analyze_loop_operations): Skip virtual phi
13175 in the tail of outer-loop.
13176
13177 2015-10-08 David Edelsohn <dje.gcc@gmail.com>
13178
13179 * config/rs6000/rs6000.c (rs6000_xcoff_debug_unwind_info): Always
13180 return UI_NONE.
13181
13182 2015-10-08 Yuri Rumyantsev <ysrumyan@gmail.com>
13183
13184 * tree-ssa-loop-unswitch.c: Include "gimple-iterator.h" and
13185 "cfghooks.h", add prototypes for introduced new functions.
13186 (tree_ssa_unswitch_loops): Use from innermost loop iterator, move all
13187 checks on ability of loop unswitching to tree_unswitch_single_loop;
13188 invoke tree_unswitch_single_loop or tree_unswitch_outer_loop depending
13189 on innermost loop check.
13190 (tree_unswitch_single_loop): Add all required checks on ability of
13191 loop unswitching under zero recursive level guard.
13192 (tree_unswitch_outer_loop): New function.
13193 (find_loop_guard): Likewise.
13194 (empty_bb_without_guard_p): Likewise.
13195 (used_outside_loop_p): Likewise.
13196 (get_vop_from_header): Likewise.
13197 (hoist_guard): Likewise.
13198 (check_exit_phi): Likewise.
13199
13200 2015-10-08 Marek Polacek <polacek@redhat.com>
13201
13202 * tree-ssa-reassoc.c (dump_ops_vector): Print newline after each
13203 ops element.
13204
13205 2015-10-08 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
13206
13207 PR c/65345
13208 * config/s390/s390.c (s390_atomic_assign_expand_fenv): Use
13209 create_tmp_var_raw instead of create_tmp_var.
13210
13211 2015-10-07 Jan Hubicka <hubicka@ucw.cz>
13212
13213 * expr.c (store_expr_with_bounds): Handle aggregate moves from
13214 BLKmode.
13215 * gimple-expr.c (useless_type_conversion_p): Do not use TYPE_CANONICAL
13216 to define gimple type system; compare aggregates only by size.
13217
13218 2015-10-07 Jeff Law <law@redhat.com>
13219
13220 * tree-ssa-dom.c (optimize_stmt): Don't set LOOPS_NEED_FIXUP here.
13221 * tree-ssa-threadupdate.c (remove_ctrl_stmt_and_useless_edges): Do it
13222 here instead. Tighten test to avoid setting LOOPS_NEED_FIXUP
13223 unnecessarily.
13224
13225 2015-10-07 Aditya Kumar <aditya.k7@samsung.com>
13226 Sebastian Pop <s.pop@samsung.com>
13227
13228 * graphite-dependences.c (scop_get_dependences): Do not use SCOP_BBS.
13229 * graphite-isl-ast-to-gimple.c (get_max_schedule_dimensions): Same.
13230 (generate_isl_schedule): Same.
13231 * graphite-optimize-isl.c (scop_get_domains): Same.
13232 (apply_schedule_map_to_scop): Same.
13233 * graphite-poly.c (print_iteration_domains): Same.
13234 (remove_gbbs_in_scop): Same.
13235 (new_scop): Same.
13236 (free_scop): Same.
13237 (print_scop): Same.
13238 * graphite-poly.h (struct scop): Rename bbs to pbbs.
13239 (SCOP_BBS): Remove.
13240 * graphite-scop-detection.c (compare_bb_depths): Remove.
13241 (graphite_sort_dominated_info): Remove.
13242 (try_generate_gimple_bb): Move out of scop_detection.
13243 (all_non_dominated_preds_marked_p): Remove.
13244 (build_scop_bbs_1): Remove.
13245 (build_scop_bbs): Remove.
13246 (nb_pbbs_in_loops): Do not use SCOP_BBS.
13247 (find_scop_parameters): Same.
13248 (sese_dom_walker): Rename gather_bbs.
13249 (before_dom_children): Call try_generate_gimple_bb and collect gbb
13250 and pbb.
13251 (build_scops): Call gather_bbs.
13252 * graphite-sese-to-poly.c (build_scop_scattering): Do not use SCOP_BBS.
13253 (add_conditions_to_constraints): Same.
13254 (build_scop_iteration_domain): Same.
13255 (build_scop_drs): Same.
13256 (new_pbb_from_pbb): Same.
13257 * sese.c (new_sese_info): Create bbs.
13258 * sese.h (struct sese_info_t): Add bbs.
13259
13260 2015-10-07 David Edelsohn <dje.gcc@gmail.com>
13261
13262 * config/rs6000/xcoff.h (ASM_PREFERRED_EH_DATA_FORMAT): Use 64-bit
13263 encoding in 64-bit mode.
13264
13265 2015-10-07 Uros Bizjak <ubizjak@gmail.com>
13266
13267 PR target/66697
13268 * config/i386/i386.c (ix86_option_override_internal): Always use
13269 8-byte minimum stack boundary in 64-bit mode.
13270 (ix86_compute_frame_layout): Remove assert on INCOMING_STACK_BOUNDARY.
13271 (ix86_emit_save_reg_using_mov): Support unaligned SSE store.
13272 Add a REG_CFA_EXPRESSION note if needed.
13273 (ix86_emit_restore_sse_regs_using_mov): Support unaligned SSE load.
13274 (ix86_handle_force_align_arg_pointer_attribute): New.
13275 (ix86_minimum_incoming_stack_boundary): Remove TARGET_64BIT check.
13276 (ix86_attribute_table): Set ix86_force_align_arg_pointer_string
13277 with ix86_handle_force_align_arg_pointer_attribute.
13278 * config/i386/i386.h (MIN_STACK_BOUNDARY): Set to BITS_PER_WORD.
13279
13280 2015-10-07 Aditya Kumar <aditya.k7@samsung.com>
13281 Sebastian Pop <s.pop@samsung.com>
13282
13283 * graphite-scop-detection.c (parameter_index_in_region): Remove
13284 use of SESE_ADD_PARAMS.
13285 (find_scop_parameters): Same.
13286 * sese.c (new_sese_info): Same.
13287 * sese.h (struct sese_info_t): Remove add_params.
13288 (SESE_ADD_PARAMS): Remove.
13289
13290 2015-10-07 Aditya Kumar <aditya.k7@samsung.com>
13291 Sebastian Pop <s.pop@samsung.com>
13292
13293 * graphite-isl-ast-to-gimple.c (translate_isl_ast_to_gimple): Use
13294 an sese_info_p.
13295 (copy_def): Same.
13296 (copy_internal_parameters): Same.
13297 (translate_isl_ast_to_gimple): Use an sese_l.
13298 (build_iv_mapping): Same.
13299 * graphite-poly.c (new_sese): Rename new_sese_info.
13300 (free_sese): Rename free_sese_info.
13301 * graphite-poly.h (struct scop): Use an sese_info_p.
13302 (scop_set_region): Same.
13303 * graphite-scop-detection.c (struct sese_l): Moved...
13304 (get_entry_bb): Moved...
13305 (get_exit_bb): Moved...
13306 (parameter_index_in_region_1): Use an sese_info_p.
13307 (parameter_index_in_region): Same.
13308 (scan_tree_for_params): Same.
13309 (find_params_in_bb): Same.
13310 (sese_dom_walker): Use an sese_l.
13311 * graphite-sese-to-poly.c (remove_invariant_phi): Same.
13312 (reduction_phi_p): Same.
13313 (parameter_index_in_region_1): Use an sese_info_p.
13314 (propagate_expr_outside_region): Use an sese_l.
13315 * graphite.c: Replace uses of SCOP_REGION.
13316 * sese.c (sese_record_loop): Use an sese_info_p.
13317 (build_sese_loop_nests): Same.
13318 (sese_build_liveouts_use): Same.
13319 (sese_build_liveouts_bb): Same.
13320 (sese_build_liveouts_bb): Same.
13321 (sese_bad_liveouts_use): Same.
13322 (sese_reset_debug_liveouts_bb): Same.
13323 (sese_build_liveouts): Same.
13324 (new_sese): Renamed new_sese_info.
13325 (free_sese): Renamed free_sese_info.
13326 (set_rename): Use an sese_info_p.
13327 (graphite_copy_stmts_from_block): Same.
13328 (copy_bb_and_scalar_dependences): Same.
13329 (outermost_loop_in_sese_1): Use an sese_l.
13330 (outermost_loop_in_sese): Same.
13331 (if_region_set_false_region): Use an sese_info_p.
13332 (move_sese_in_condition): Same.
13333 (scalar_evolution_in_region): Use an sese_l.
13334 * sese.h (struct sese_l): ... here.
13335 (SESE_ENTRY): Remove.
13336 (SESE_ENTRY_BB): Remove.
13337 (SESE_EXIT): Remove.
13338 (SESE_EXIT_BB): Remove.
13339 (sese_contains_loop): Use an sese_info_p.
13340 (sese_nb_params): Same.
13341 (bb_in_sese_p): Use an sese_l.
13342 (stmt_in_sese_p): Same.
13343 (defined_in_sese_p): Same.
13344 (loop_in_sese_p): Same.
13345 (sese_loop_depth): Same.
13346 (struct ifsese_s): Use an sese_info_p.
13347 (gbb_loop_at_index): Use an sese_l.
13348 (nb_common_loops): Same.
13349 (scev_analyzable_p): Same.
13350
13351 2015-10-07 H.J. Lu <hongjiu.lu@intel.com>
13352
13353 * config/i386/i386.c (ix86_conditional_register_usage): Use
13354 CALL_USED_REGISTERS_MASK.
13355 * config/i386/i386.h (CALL_USED_REGISTERS_MASK): New macro.
13356
13357 2015-10-07 H.J. Lu <hongjiu.lu@intel.com>
13358
13359 PR bootstrap/67385
13360 * configure.ac (gcc_cv_readelf): Check $READELF_FOR_TARGET.
13361 * configure: Regenerated.
13362
13363 2015-10-07 H.J. Lu <hongjiu.lu@intel.com>
13364
13365 PR target/67850
13366 * config/i386/i386.c (ix86_maybe_switch_abi): Merged with ...
13367 (ix86_set_current_function): This.
13368 (TARGET_EXPAND_TO_RTL_HOOK): Removed.
13369
13370 2015-10-07 Richard Biener <rguenther@suse.de>
13371
13372 * tree-vectorizer.h (stmt_vec_info_vec): Use vec<stmt_vec_info>.
13373 (vinfo_for_stmt): Adjust.
13374 (set_vinfo_for_stmt): Likewise.
13375 * tree-vectorizer.c (stmt_vec_info_vec): Likewise.
13376 * tree-vect-stmts.c (free_stmt_vec_info_vec): Likewise.
13377 * tree-vect-loop.c (new_loop_vec_info): Remove special-casing
13378 of inner loop.
13379 (vect_analyze_loop_1): Remove.
13380 (vect_analyze_loop_form_1): Avoid building a loop_vec_info for
13381 inner loop when vectorizing an outer loop by splitting out from ...
13382 (vect_analyze_loop_form): ... here.
13383
13384 2015-10-07 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
13385
13386 PR c/65345
13387 * config/arm/arm-builtins.c (arm_atomic_assign_expand_fenv):
13388 Use create_tmp_var_raw instead of create_tmp_var.
13389
13390 2015-10-07 Richard Sandiford <richard.sandiford@arm.com>
13391
13392 * real.h (dconst_quarter, dconst_sixth, dconst_ninth): New macros.
13393 (dconst_quarter_ptr, dconst_sixth_ptr, dconst_ninth_ptr): Declare.
13394 * real.c (CACHED_FRACTION): New helper macro.
13395 (dconst_third_ptr): Use it.
13396 (dconst_quarter_ptr, dconst_sixth_ptr, dconst_ninth_ptr): New.
13397 * builtins.c (fold_builtin_sqrt): Use dconst_quarter and
13398 dconst_sixth.
13399 (fold_builtin_cbrt): Use dconst_sixth and dconst_ninth.
13400
13401 2015-10-06 Jeff Law <law@redhat.com>
13402
13403 PR tree-optimization/67816
13404 * tree-ssa-threadupdate.h (remove_jump_threads_including): Renamed
13405 from remove_jump_threads_starting_at. Accept an edge rather than
13406 a basic block.
13407 * tree-ssa-threadupdate.c (removed_edges): New hash table.
13408 (remove_jump_threads_including): Note edges that get removed from
13409 the CFG for later pruning of jump threading paths including them.
13410 (thread_through_all_blocks): Remove paths which include edges that
13411 have been removed.
13412 * tree-ssa-dom.c (optimize_stmt): Call remove_jump_threads_including
13413 on each outgoing edges when optimizing away a control statement.
13414
13415 2015-10-06 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
13416
13417 * reorg.c (emit_delay_sequence): Store list of delay slot insns
13418 in a vector instead of rtx_insn_list.
13419 (add_to_delay_list): Likewise.
13420 (delete_from_delay_slot): Likewise.
13421 (optimize_skip): Likewise.
13422 (redirect_with_delay_list_safe_p): Likewise.
13423 (check_annul_list_true_false): Likewise.
13424 (steal_delay_list_from_target): Likewise.
13425 (steal_delay_list_from_fallthrough): Likewise.
13426 (redundant_insn): Likewise.
13427 (fill_simple_delay_slots): Likewise.
13428 (fill_slots_from_thread): Likewise.
13429 (fill_eager_delay_slots): Likewise.
13430 (relax_delay_slots): Likewise.
13431
13432 2015-10-06 Sandra Loosemore <sandra@codesourcery.com>
13433
13434 * config/nios2/nios2.c (nios2_symbol_ref_in_small_data_p):
13435 For -mgpopt=local, also exclude unintialized common symbols.
13436 * doc/invoke.texi (Nios II Options): Document the change.
13437
13438 2015-10-07 Kugan Vivekanandarajah <kuganv@linaro.org>
13439
13440 * config/aarch64/iterators.md (vwcore): Add missing cases for
13441 V4HF/V8HF modes.
13442
13443 2015-10-06 Aditya Kumar <aditya.k7@samsung.com>
13444 Sebastian Pop <s.pop@samsung.com>
13445
13446 * graphite-poly.c (new_scop): Initialize drs.
13447 * graphite-poly.h (struct dr_info): New.
13448 (struct scop): Add drs.
13449 * graphite-sese-to-poly.c (pdr_add_alias_set): Use dr_info.
13450 (pdr_add_memory_accesses): Same.
13451 (build_poly_dr): Same.
13452 (build_alias_set): Same.
13453 (build_scop_drs): Same.
13454 (build_pbb_drs): Remove.
13455 * tree-data-ref.c (create_data_ref): Do not initialize alias_set.
13456 * tree-data-ref.h (data_reference): Remove alias_set.
13457
13458 2015-10-06 Aditya Kumar <aditya.k7@samsung.com>
13459 Sebastian Pop <s.pop@samsung.com>
13460
13461 * graphite-poly.c (free_data_refs_aux): Remove.
13462 (free_gimple_poly_bb): Do not call free_data_refs_aux.
13463 * graphite-poly.h (struct base_alias_pair): Remove.
13464 * graphite-sese-to-poly.c (pdr_add_alias_set): Remove all uses of
13465 base_alias_pair and dr->aux.
13466 (build_alias_set): Same.
13467 * tree-data-ref.c (create_data_ref): Initialize alias_set.
13468 * tree-data-ref.h (data_reference): Add alias_set.
13469
13470 2015-10-06 Aditya Kumar <aditya.k7@samsung.com>
13471 Sebastian Pop <s.pop@samsung.com>
13472
13473 * graphite-poly.c (new_poly_dr): Remove dr_base_object_set.
13474 Do not set PDR_BASE_OBJECT_SET.
13475 * graphite-poly.h (poly_dr): Same.
13476 (PDR_BASE_OBJECT_SET): Remove.
13477 (new_poly_dr): Update decl.
13478 * graphite-sese-to-poly.c (build_poly_dr): Update call to
13479 new_poly_dr.
13480 (write_alias_graph_to_ascii_dimacs): Remove.
13481 (write_alias_graph_to_ascii_dot): Remove.
13482 (write_alias_graph_to_ascii_ecc): Remove.
13483 (dr_same_base_object_p): Remove.
13484 (build_alias_set_optimal_p): Rename build_alias_set. Remove dead
13485 code.
13486 (build_base_obj_set_for_drs): Remove.
13487 (dump_alias_graphs): Remove.
13488 (build_scop_drs): Remove dead code.
13489
13490 2015-10-05 Michael Meissner <meissner@linux.vnet.ibm.com>
13491 Peter Bergner <bergner@vnet.ibm.com>
13492
13493 PR target/67808
13494 * config/rs6000/rs6000.md (extenddftf2): In the expander, only
13495 allow registers, but provide insns for the combiner to create for
13496 loads from memory. Separate VSX code from non-VSX code. For
13497 non-VSX code, combine extenddftf2_fprs into extenddftf2 and rename
13498 externaldftf2_internal to externaldftf2_fprs. Reorder constraints
13499 so that registers come before memory operations. Drop support from
13500 converting DFmode to TFmode, if the DFmode value is in a GPR
13501 register.
13502 (extenddftf2_fprs): Likewise.
13503 (extenddftf2_internal): Likewise.
13504 (extenddftf2_vsx): Likewise.
13505 (extendsftf2): In the expander, only allow registers, but provide
13506 insns for the combiner to create for stores and loads.
13507
13508 2015-10-06 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
13509
13510 * varasm.c (default_elf_asm_named_section): Remove ATTRIBUTE_UNUSED
13511 from the decl parameter.
13512
13513 2015-10-06 Nathan Sidwell <nathan@codesourcery.com>
13514
13515 PR 67861
13516 * gimple-fold.c (gimple_fold_builtin): Add break after
13517 BUILT_IN_PRINTF_CHK, BUILT_IN_VPRINTF_CHK folding.
13518
13519 2015-10-06 H.J. Lu <hongjiu.lu@intel.com>
13520
13521 * graphite-optimize-isl.c (optimize_isl): Rename scop->ctx
13522 to scop->isl_context.
13523
13524 2015-10-06 Eric Botcazou <ebotcazou@adacore.com>
13525
13526 * config/arm/arm.c (arm_emit_probe_stack_range): Adjust comment.
13527 (output_probe_stack_range): Rotate the loop and simplify.
13528 (thumb1_expand_prologue): Tweak sorry message.
13529 * config/arm/arm.md (probe_stack): Use bare string.
13530
13531 2015-10-06 Nick Clifton <nickc@redhat.com>
13532
13533 * config.gcc (lm32-elf): Add newlib-stdint.h to tm_file.
13534
13535 2015-10-06 Nick Clifton <nickc@redhat.com>
13536
13537 * config/msp430/msp430.c (ATTR_NOINIT): New constant.
13538 (ATTR_PERSIST): New constant.
13539 (msp430_data_attr): New function - verifies an attribute that only
13540 applies to variables.
13541 (msp430_attributes): Add noinit and persistent attributes.
13542 (noinit_section): New variable.
13543 (presis_section): New variable.
13544 (TARGET_ASM_INIT_SECTIONS): Define.
13545 (msp430_init_sections): New function - initialises the noinit and
13546 persist section variables.
13547 (msp430_select_section): Add support for noinit and persist
13548 attributes.
13549 (msp430_section_type_flags): Likewise.
13550 * doc/extend.texi: Document the reent, critical, wakeup, noinit
13551 and persistent attributes.
13552
13553 2015-10-05 Aditya Kumar <aditya.k7@samsung.com>
13554 Sebastian Pop <s.pop@samsung.com>
13555
13556 * graphite-dependences.c (scop_get_transformed_schedule): Remove.
13557 (no_violations): Remove.
13558 (subtract_commutative_associative_deps): Remove.
13559 (compute_deps): Do not call subtract_commutative_associative_deps.
13560 (transform_is_safe): Remove.
13561 (graphite_legal_transform): Remove.
13562 * graphite-poly.h (graphite_legal_transform): Remove.
13563
13564 2015-10-05 Aditya Kumar <hiraditya@msn.com>
13565
13566 * graphite-sese-to-poly.c (build_loop_iteration_domains): Only loops
13567 which are in this region are passed so gcc_assert and remove redundant
13568 computation.
13569 * sese.c (sese_build_liveouts): Pass only those bbs which are not
13570 in region.
13571 (sese_bad_liveouts_use): Only BBs which are not in region are passed so
13572 gcc_assert on that and remove unnecessary computation.
13573 (sese_build_liveouts_use): Same.
13574
13575 2015-10-05 Aditya Kumar <aditya.k7@samsung.com>
13576
13577 * graphite-dependences.c (scop_get_reads): Renamed scop->context
13578 to scop->param_context.
13579 (scop_get_must_writes): Same.
13580 (scop_get_may_writes): Same.
13581 (scop_get_original_schedule): Same.
13582 (scop_get_transformed_schedule): Same.
13583 (subtract_commutative_associative_deps): Same.
13584 * graphite-isl-ast-to-gimple.c (add_parameters_to_ivs_params): Same.
13585 (generate_isl_context): Same.
13586 (generate_isl_schedule): Same.
13587 (scop_to_isl_ast): Same.
13588 (graphite_regenerate_ast_isl): Same.
13589 * graphite-optimize-isl.c (scop_get_domains): Same.
13590 (optimize_isl): Renamed scop->context to scop->param_context.
13591 * graphite-poly.c (new_poly_bb): Change the type of argument to
13592 gimple_poly_bb_p.
13593 (new_scop): Renamed scop->context to scop->param_context.
13594 (free_scop): Same.
13595 (print_scop_context): Same.
13596 * graphite-poly.h (new_poly_dr): Change the type of argument from
13597 void* to data_reference_p.
13598 (struct poly_bb): Change the type of black_box to gimple_poly_bb_p.
13599 (new_poly_bb): Change the type of argument from void* to
13600 gimple_poly_bb_p.
13601 (pbb_set_black_box): Same.
13602 (struct scop): Rename context to param_context, ctx to isl_context.
13603 * graphite-scop-detection.c (scop_detection::build_scop_bbs_1):
13604 Move declarations closer to assignment.
13605 (find_params_in_bb): Same.
13606 (find_scop_parameters): Same.
13607 * graphite-sese-to-poly.c (unsigned ssa_name_version_typesize):
13608 Global to be used for statement IDs.
13609 (isl_id_for_pbb): Use ssa_name_version_typesize.
13610 (simple_copy_phi_p): Move declarations closer to assignment.
13611 (build_pbb_scattering_polyhedrons): Same.
13612 (build_scop_scattering): Same.
13613 (isl_id_for_ssa_name): Same.
13614 (extract_affine_name): Same.
13615 (extract_affine_int): Same.
13616 (extract_affine): Same.
13617 (set_scop_parameter_dim): Use renamed member.
13618 (build_loop_iteration_domains): Same.
13619 (add_param_constraints): Same.
13620 (build_scop_iteration_domain): Same.
13621 (pdr_add_data_dimensions): Same.
13622 (build_poly_dr): Same.
13623 (build_scop_drs): Move declarations closer to assignment.
13624 (analyze_drs_in_stmts): Same.
13625 (insert_out_of_ssa_copy): Same.
13626 (insert_out_of_ssa_copy_on_edge): Same.
13627 (propagate_expr_outside_region): Same.
13628 (rewrite_phi_out_of_ssa): Same.
13629 (rewrite_degenerate_phi): Same.
13630 (rewrite_reductions_out_of_ssa): Same.
13631 (rewrite_cross_bb_scalar_dependence): Same.
13632 (handle_scalar_deps_crossing_scop_limits): Same.
13633 (rewrite_cross_bb_scalar_deps): Same.
13634 * graphite.c (graphite_transform_loops): Use renamed member.
13635
13636 2015-10-06 Uros Bizjak <ubizjak@gmail.com>
13637
13638 PR c/65345
13639 * config/alpha/alpha.c (alpha_atomic_assign_expand_fenv): Use
13640 create_tmp_var_raw instead of create_tmp_var.
13641
13642 2015-10-06 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
13643
13644 PR c/65345
13645 * config/aarch64/aarch64-builtins.c (aarch64_atomic_assign_expand_fenv):
13646 Use create_tmp_var_raw instead of create_tmp_var.
13647
13648 2015-10-06 Alexander Fomin <alexander.fomin@intel.com>
13649
13650 PR target/67849
13651 * config/i386/sse.md (define_split vec_select/V8FI): Restrict
13652 split for upper-bank registers when target does not support
13653 AVX512VL.
13654 (define_insn "vec_extract_lo_<mode><mask_name>"): Restrict
13655 split when target does not support AVX512VL.
13656
13657 2015-10-06 David Edelsohn <dje.gcc@gmail.com>
13658
13659 PR c/65345
13660 * config/rs6000/rs6000.c (rs6000_atomic_assign_expand_fenv):
13661 Adjust to use create_tmp_var_raw instead of create_tmp_var.
13662
13663 2015-10-06 Nick Clifton <nickc@redhat.com>
13664
13665 * config/rl78/rl78.c (rl78_rtx_costs): Improve cost estimates for
13666 multiplication.
13667
13668 2015-10-06 Venkataramanan Kumar <Venkataramanan.kumar@amd.com>
13669
13670 * config.gcc (i[34567]86-*-linux* | ...): Add znver1.
13671 (case ${target}): Add znver1.
13672 * config/i386/cpuid.h(bit_CLZERO): Define.
13673 * config/i386/driver-i386.c: (host_detect_local_cpu): Let
13674 -march=native recognize znver1 processors.
13675 * config/i386/i386-c.c (ix86_target_macros_internal): Add
13676 znver1, clzero def_and_undef.
13677 * config/i386/i386.c (struct processor_costs znver1_cost): New.
13678 (m_znver1): New definition.
13679 (m_AMD_MULTIPLE): Includes m_znver1.
13680 (processor_target_table): Add znver1 entry.
13681 (ix86_target_string) : Add clzero entry.
13682 (static const char *const cpu_names): Add znver1 entry.
13683 (ix86_option_override_internal): Add znver1 instruction sets.
13684 (PTA_CLZERO) : New definition.
13685 (ix86_option_override_internal): Handle new clzerooption.
13686 (ix86_issue_rate): Add znver1.
13687 (ix86_adjust_cost): Add znver1.
13688 (ia32_multipass_dfa_lookahead): Add znver1.
13689 (has_dispatch): Add znver1.
13690 * config/i386/i386.h (TARGET_znver1): New definition.
13691 (TARGET_CLZERO): Define.
13692 (TARGET_CLZERO_P): Define.
13693 (struct ix86_size_cost): Add TARGET_ZNVER1.
13694 (enum processor_type): Add PROCESSOR_znver1.
13695 * config/i386/i386.md (define_attr "cpu"): Add znver1.
13696 (set_attr znver1_decode): New definitions for znver1.
13697 * config/i386/i386.opt (flag_dispatch_scheduler): Add znver1.
13698 (mclzero): New.
13699 * config/i386/mmx.md (set_attr znver1_decode): New definitions
13700 for znver1.
13701 * config/i386/sse.md (set_attr znver1_decode): Likewise.
13702 * config/i386/x86-tune.def: Add znver1 tunings.
13703 * config/i386/znver1.md: Introduce znver1 cpu and include new md file.
13704 * doc/invoke.texi: Add details about znver1
13705
13706 2015-10-06 Richard Biener <rguenther@suse.de>
13707
13708 PR tree-optimization/67859
13709 * tree-ssa-pre.c (create_expression_by_pieces): Properly
13710 discard not inserted stmts.
13711
13712 2015-10-06 Jonathan Wakely <jwakely@redhat.com>
13713
13714 * doc/extend.texi (Template Instantiation): Reorder options and
13715 de-emphasize -frepo.
13716 * doc/invoke.texi (C++ Dialect Options): Use -fstrict-enums in
13717 example instead of -frepo.
13718
13719 2015-10-06 Eric Botcazou <ebotcazou@adacore.com>
13720
13721 PR c/65345
13722 * config/sparc/sparc.c (sparc_atomic_assign_expand_fenv): Adjust to
13723 use create_tmp_var_raw rather than create_tmp_var.
13724
13725 2015-10-06 Richard Biener <rguenther@suse.de>
13726
13727 * tree-vectorizer.h (vec_info): New base class for...
13728 (_loop_vec_info): ... this and ...
13729 (_bb_vec_info): ... this.
13730 (vect_is_simple_use, vect_is_simple_use_1, new_stmt_vec_info,
13731 vect_analyze_data_refs_alignment, vect_verify_datarefs_alignment,
13732 vect_analyze_data_ref_accesses, vect_analyze_data_refs,
13733 vect_schedule_slp, vect_analyze_slp, vect_pattern_recog,
13734 vect_destroy_datarefs): Adjust interface to take a vec_info *
13735 rather than both a loop_vec_info and a bb_vec_info argument.
13736 * tree-vect-data-refs.c (vect_compute_data_refs_alignment,
13737 vect_verify_datarefs_alignment, vect_enhance_data_refs_alignment,
13738 vect_analyze_data_refs_alignment, vect_analyze_data_ref_accesses,
13739 vect_analyze_data_refs, vect_create_data_ref_ptr): Adjust
13740 accordingly.
13741 * tree-vect-loop.c (new_loop_vec_info): Initialize base class.
13742 (destroy_loop_vec_info, vect_analyze_loop_2,
13743 vect_is_simple_reduction_1, get_initial_def_for_induction,
13744 vect_create_epilog_for_reduction, vectorizable_reduction,
13745 vectorizable_live_operation, vect_transform_loop): Adjust.
13746 * tree-vect-patterns.c (type_conversion_p,
13747 vect_recog_widen_mult_pattern, vect_recog_widen_shift_pattern,
13748 vect_recog_rotate_pattern, vect_recog_vector_vector_shift_pattern,
13749 vect_recog_divmod_pattern, vect_recog_mixed_size_cond_pattern,
13750 check_bool_pattern, vect_recog_bool_pattern,
13751 vect_mark_pattern_stmts, vect_pattern_recog): Likewise.
13752 * tree-vect-slp.c (vect_get_and_check_slp_defs,
13753 vect_build_slp_tree_1, vect_build_slp_tree, vect_analyze_slp_cost_1,
13754 vect_analyze_slp_instance, vect_analyze_slp, destroy_bb_vec_info,
13755 vect_slp_analyze_bb_1, vect_schedule_slp): Likewise.
13756 (new_bb_vec_info): Initialize base classs.
13757 * tree-vect-stmts.c (record_stmt_cost, process_use,
13758 vect_get_vec_def_for_operand, vect_finish_stmt_generation,
13759 vectorizable_mask_load_store, vectorizable_call,
13760 vectorizable_simd_clone_call, vectorizable_conversion,
13761 vectorizable_assignment, vectorizable_shift,
13762 vectorizable_operation, vectorizable_store,
13763 vectorizable_load, vect_is_simple_cond, vectorizable_condition,
13764 new_stmt_vec_info, vect_is_simple_use, vect_is_simple_use_1): Likewise.
13765 * tree-vectorizer.c (vect_destroy_datarefs): Likewise.
13766
13767 2015-10-05 Kaz Kojima <kkojima@gcc.gnu.org>
13768
13769 PR c/65345
13770 * config/sh/sh.c (sh_atomic_assign_expand_fenv): Adjust to use
13771 create_tmp_var_raw rather than create_tmp_var.
13772
13773 2015-10-05 Marek Polacek <polacek@redhat.com>
13774
13775 * tree-ssa-loop-im.c
13776 (move_computations_dom_walker::before_dom_children): Don't set
13777 SSA_NAME_ANTI_RANGE_P.
13778 * tree-ssa-phiopt.c (value_replacement): Likewise.
13779
13780 2015-10-05 Aditya Kumar <aditya.k7@samsung.com>
13781 Sebastian Pop <s.pop@samsung.com>
13782
13783 * params.def (PARAM_GRAPHITE_MAX_NB_SCOP_PARAMS): Increase to 7.
13784
13785 2015-10-05 Aditya Kumar <aditya.k7@samsung.com>
13786 Sebastian Pop <s.pop@samsung.com>
13787
13788 * graphite-poly.c (new_gimple_poly_bb): ... here.
13789 (free_data_refs_aux): ... here.
13790 (free_gimple_poly_bb): ... here.
13791 (remove_gbbs_in_scop): ... here.
13792 (new_scop): Call new_sese.
13793 (free_scop): Call remove_gbbs_in_scop and free_sese.
13794 * graphite-poly.h (base_alias_pair): ... here.
13795 (new_gimple_poly_bb): Declare.
13796 (free_gimple_poly_bb): Declare.
13797 * graphite-scop-detection.c (parameter_index_in_region_1):
13798 (parameter_index_in_region): ... here.
13799 (scan_tree_for_params): ... here.
13800 (find_params_in_bb): ... here.
13801 (find_scop_parameters): ... here.
13802 (build_scops): Call find_scop_parameters.
13803 * graphite-sese-to-poly.c (free_gimple_poly_bb): Move...
13804 (free_scops): Move...
13805 (single_pred_cond_non_loop_exit): Move...
13806 (sese_dom_walker::before_dom_children): Move...
13807 (sese_dom_walker::after_dom_children): Move...
13808 (build_poly_scop): Move...
13809 * graphite-sese-to-poly.h (base_alias_pair): Move...
13810 * graphite.c (free_scops): ... here.
13811
13812 2015-10-05 Aditya Kumar <aditya.k7@samsung.com>
13813 Sebastian Pop <s.pop@samsung.com>
13814
13815 * graphite-scop-detection.c: Include domwalk.h and tree-cfg.h.
13816 (trivially_empty_bb_p): Move...
13817 (same_close_phi_node): Move...
13818 (new_gimple_poly_bb): Move...
13819 (compare_bb_depths): Move...
13820 (graphite_sort_dominated_info): Move...
13821 (remove_duplicate_close_phi): Move...
13822 (make_close_phi_nodes_unique): Move...
13823 (canonicalize_loop_closed_ssa): Move...
13824 (canonicalize_loop_closed_ssa_form): Move...
13825 (loop_ivs_can_be_represented): Move...
13826 (single_pred_cond_non_loop_exit): Move...
13827 (graphite_can_represent_init): Move...
13828 (graphite_can_represent_scev): Move...
13829 (stmt_has_simple_data_refs_p): Move...
13830 (stmt_has_side_effects): Move...
13831 (graphite_can_represent_stmt): Move...
13832 (scop_detection): ... here.
13833 (sese_dom_walker): ... and here.
13834 (build_scops): Call all moved functions.
13835 * graphite-sese-to-poly.c (try_generate_gimple_bb): Move...
13836 (all_non_dominated_preds_marked_p): Move...
13837 (build_scop_bbs_1): Move...
13838 (build_scop_bbs): Move...
13839 (set_scop_parameter_dim): Move...
13840 (nb_pbbs_in_loops): Move...
13841 (build_poly_scop): Do not call all the moved functions.
13842
13843 2015-10-05 Martin Jambor <mjambor@suse.cz>
13844 Jan Hubicka <hubicka@ucw.cz>
13845
13846 * ipa-cp.c (ipcp_alignment_lattice): New type.
13847 (ipcp_param_lattices): Use the above to represent alignment.
13848 (ipcp_alignment_lattice::print): New function.
13849 (print_all_lattices): Use it to print alignment information.
13850 (ipcp_alignment_lattice::top_p): New function.
13851 (ipcp_alignment_lattice::bottom_p): Likewise.
13852 (ipcp_alignment_lattice::set_to_bottom): Likewise.
13853 (ipcp_alignment_lattice::meet_with_1): Likewise.
13854 (ipcp_alignment_lattice::meet_with): Two new overloaded functions.
13855 (set_all_contains_variable): Use set_to_bottom of alignment lattice.
13856 (initialize_node_lattices): Likewise.
13857 (propagate_alignment_accross_jump_function): Work with the new class
13858 for alignment lattices.
13859 (propagate_constants_accross_call): Pass only the alignment lattice to
13860 propagate_alignment_accross_jump_function.
13861 (ipcp_store_alignment_results): Work with the new class for alignment
13862 lattices.
13863
13864 2015-10-05 Marek Polacek <polacek@redhat.com>
13865
13866 PR tree-optimization/67821
13867 * tree-ssanames.c (duplicate_ssa_name_range_info): Remove an assert.
13868
13869 2015-10-05 Thomas Schwinge <thomas@codesourcery.com>
13870
13871 PR other/65021
13872 * config/i386/intelmic-mkoffload.c (mkoffload_atexit): Rename
13873 function to...
13874 (mkoffload_cleanup): ... this. Adjust all users.
13875 (maybe_unlink): Look at save_temps and verbose flags instead of
13876 debug flag.
13877 (main): Parse "-save-temps" flag.
13878 (generate_target_descr_file, generate_target_offloadend_file)
13879 (generate_host_descr_file, prepare_target_image): Pass it on.
13880 * config/nvptx/mkoffload.c (tool_cleanup): Implement.
13881 (mkoffload_cleanup): New function.
13882 (maybe_unlink): Look at save_temps and verbose flags instead of
13883 debug flag.
13884 (main): Instead of calling utils_cleanup, register atexit handler
13885 for mkoffload_cleanup.
13886 (main): Parse "-save-temps" flag.
13887 (compile_native, main): Pass it on.
13888 * lto-wrapper.c (compile_offload_image): Likewise.
13889
13890 2015-10-05 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
13891
13892 * gimple.h (gimple_op_ptr): Require a non const gimple *.
13893 (gimple_assign_lhs_ptr): Likewise.
13894 (gimple_assign_rhs1_ptr): Likewise.
13895 (gimple_assign_rhs2_ptr): Likewise.
13896 (gimple_assign_rhs3_ptr): Likewise.
13897 (gimple_call_lhs_ptr): Likewise.
13898 (gimple_call_fn_ptr): Likewise.
13899 (gimple_call_chain_ptr): Likewise.
13900 (gimple_call_arg_ptr): Likewise.
13901 (gimple_cond_lhs_ptr): Likewise.
13902 (gimple_cond_rhs_ptr): Likewise.
13903 (gimple_switch_index_ptr): Likewise.
13904 (gimple_return_retval_ptr): Likewise.
13905
13906 2015-10-05 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
13907
13908 * gimple.h (gimple_asm_input_op_ptr): Remove.
13909 (gimple_asm_output_op_ptr): Likewise.
13910
13911 2015-10-05 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
13912
13913 * gimple.h (gimple_location_ptr): Remove.
13914 * tree-vrp.c (check_all_array_refs): Adjust.
13915
13916 2015-10-05 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
13917
13918 * tree-ssa-operands.c (build_uses): store tree * instead of
13919 tree.
13920 (finalize_ssa_uses): Adjust.
13921 (append_use): Likewise.
13922 (verify_ssa_operands): Likewise.
13923
13924 2015-10-05 Richard Sandiford <richard.sandiford@arm.com>
13925
13926 * real.h (build_real_truncate): Declare.
13927 * tree.c (build_real_truncate): New function.
13928 (strip_float_extensions): Use it.
13929 * builtins.c (fold_builtin_cabs, fold_builtin_sqrt, fold_builtin_cbrt)
13930 (fold_builtin_hypot, fold_builtin_pow): Likewise.
13931 * match.pd: Likewise.
13932
13933 2015-10-05 James Greenhalgh <james.greenhalgh@arm.com>
13934 Jiong Wang <jiong.wang@arm.com>
13935
13936 * config/aarch64/aarch64.md (tlsie_tiny_sidi): Replace "<w>" with "w".
13937
13938 2015-10-05 Richard Sandiford <richard.sandiford@arm.com>
13939
13940 * real.h (REAL_VALUE_FROM_CONST_DOUBLE): Delete.
13941 * config/aarch64/aarch64.c (aarch64_float_const_zero_rtx_p)
13942 (aarch64_print_operand, aarch64_float_const_representable_p)
13943 (aarch64_output_simd_mov_immediate): Use CONST_DOUBLE_REAL_VALUE
13944 instead of REAL_VALUE_FROM_CONST_DOUBLE.
13945 * config/arc/arc.c (arc_print_operand): Likewise.
13946 * config/arm/arm.c (arm_const_double_rtx, vfp3_const_double_index)
13947 (neon_valid_immediate, arm_print_operand, arm_emit_fp16_const)
13948 (vfp3_const_double_for_fract_bits, vfp3_const_double_for_bits):
13949 Likewise.
13950 * config/arm/arm.md (*arm32_movhf, consttable_4, consttable_8)
13951 (consttable_16): Likewise.
13952 * config/arm/vfp.md (*movhf_vfp_neon, *movhf_vfp): Likewise.
13953 * config/avr/avr.c (avr_print_operand): Likewise.
13954 * config/bfin/bfin.md: Likewise (in a define_split).
13955 * config/c6x/c6x.md: Likewise (in a define_split).
13956 * config/cr16/cr16.c (cr16_const_double_ok): Likewise.
13957 (cr16_print_operand): Likewise.
13958 * config/cris/cris.c (cris_print_operand): Likewise.
13959 * config/epiphany/epiphany.c (epiphany_print_operand): Likewise.
13960 * config/fr30/fr30.c (fr30_print_operand): Likewise.
13961 (fr30_const_double_is_zero): Likewise.
13962 * config/frv/frv.c (frv_print_operand, output_move_single): Likewise.
13963 * config/frv/frv.md: Likewise (in a define_split).
13964 * config/frv/predicates.md (int_2word_operand): Likewise.
13965 * config/h8300/h8300.c (h8300_print_operand): Likewise.
13966 * config/i386/i386.c (standard_80387_constant_p): Likewise.
13967 (ix86_print_operand, ix86_split_to_parts): Likewise.
13968 * config/i386/i386.md: Likewise (in a define_split).
13969 * config/ia64/ia64.c (ia64_split_tmode, ia64_print_operand): Likewise.
13970 * config/iq2000/iq2000.md (movsf_lo_sum, movsf_high): Likewise.
13971 * config/m32r/m32r.c (easy_df_const, m32r_print_operand): Likewise.
13972 * config/m68k/m68k.c (handle_move_double, standard_68881_constant_p)
13973 (print_operand): Likewise.
13974 * config/m68k/m68k.md (movsf_cf_hard, movdf_cf_hard): Likewise.
13975 * config/mep/mep.md: Likewise (in define_split).
13976 * config/microblaze/microblaze.c (microblaze_const_double_ok)
13977 (print_operand): Likewise.
13978 * config/mips/mips.md (consttable_float): Likewise.
13979 * config/mmix/mmix.c (mmix_intval): Likewise.
13980 * config/mn10300/mn10300.c (mn10300_print_operand): Likewise.
13981 * config/nvptx/nvptx.c (nvptx_print_operand): Likewise.
13982 * config/pa/pa.c (pa_singlemove_string): Likewise.
13983 * config/pdp11/pdp11.c (pdp11_expand_operands): Likewise.
13984 (pdp11_asm_print_operand, legitimate_const_double_p): Likewise.
13985 * config/rs6000/rs6000.c (num_insns_constant, rs6000_emit_cmove)
13986 (output_toc): Likewise.
13987 * config/rs6000/rs6000.md: Likewise (in define_splits).
13988 * config/rx/rx.c (rx_print_operand): Likewise.
13989 * config/s390/s390.c (s390_output_pool_entry): Likewise.
13990 * config/sh/sh.c (fp_zero_operand, fp_one_operand): Likewise.
13991 * config/sh/sh.md (consttable_sf, consttable_df): Likewise
13992 (and also in define_splits).
13993 * config/sparc/sparc.c (fp_sethi_p, fp_mov_p): Likewise.
13994 (fp_high_losum_p): Likewise.
13995 * config/sparc/sparc.md (*movsf_insn, *movsf_lo_sum): Likewise.
13996 (*movsf_high): Likewise.
13997 * config/spu/spu.c (const_double_to_hwint): Likewise.
13998 * config/v850/v850.c (const_double_split): Likewise.
13999 * config/vax/vax.c (vax_float_literal): Likewise.
14000 * config/visium/visium.c (visium_expand_copysign): Likewise.
14001 * config/visium/visium.md: Likewise (in define_split).
14002 * config/xtensa/predicates.md (const_float_1_operand): Likewise.
14003 * config/xtensa/xtensa.c (print_operand): Likewise.
14004 (xtensa_output_literal): Likewise.
14005 * cprop.c (implicit_set_cond_p): Likewise.
14006 * dwarf2out.c (insert_float): Likewise.
14007 * expmed.c (expand_mult, make_tree): Likewise.
14008 * expr.c (compress_float_constant): Likewise.
14009 * rtlanal.c (split_double): Likewise.
14010 * simplify-rtx.c (avoid_constant_pool_reference): Likewise.
14011 (simplify_const_unary_operation, simplify_binary_operation_1)
14012 (simplify_const_binary_operation): Likewise.
14013 (simplify_const_relational_operation): Likewise.
14014 * varasm.c (output_constant_pool_2): Likewise.
14015
14016 2015-10-05 Richard Sandiford <richard.sandiford@arm.com>
14017
14018 * real.h (CONST_DOUBLE_ATOF): Use const_double_from_real_value
14019 instead of CONST_DOUBLE_FROM_REAL_VALUE.
14020 (CONST_DOUBLE_FROM_REAL_VALUE): Delete.
14021 * config/c6x/c6x.md (divsf3, divdf3): Use const_double_from_real_value
14022 instead of CONST_DOUBLE_FROM_REAL_VALUE.
14023 * config/epiphany/epiphany.md (fixuns_truncsfsi2): Likewise.
14024 * config/i386/i386.c (standard_80387_constant_rtx): Likewise.
14025 (ix86_expand_builtin, ix86_emit_i387_log1p, ix86_emit_i387_round)
14026 (ix86_emit_swsqrtsf): Likewise.
14027 * config/ia64/ia64.c (ia64_expand_builtin): Likewise.
14028 * config/mips/mips.md (fixuns_truncdfsi2, fixuns_truncdfdi2)
14029 (fixuns_truncsfsi2, fixuns_truncsfdi2): Likewise.
14030 * config/pa/pa.c (pa_expand_builtin): Likewise.
14031 * config/rs6000/rs6000.c (rs6000_load_constant_and_splat): Likewise.
14032 (rs6000_scale_v2df): Likewise.
14033 * config/rs6000/rs6000.md (*cmptf_internal2): Likewise.
14034 * config/s390/s390.md (fixuns_truncdddi2, fixuns_trunctddi2)
14035 (fixuns_trunc<BFP:mode><GPR:mode>2): Likewise.
14036 * config/s390/vx-builtins.md (vec_ctd_s64, vec_ctd_u64, vec_ctsl)
14037 (vec_ctul): Likewise.
14038 * config/sparc/sparc.c (sparc_emit_fixunsdi): Likewise.
14039 * config/spu/spu.c (hwint_to_const_double, spu_float_const): Likewise.
14040 * config/spu/spu.md (floatunsdisf2, floatunstisf2): Likewise.
14041 * cse.c (fold_rtx): Likewise.
14042 * emit-rtl.c (immed_double_const): Likewise (in comments).
14043 (init_emit_once): Likewise.
14044 * expr.c (compress_float_constant, expand_expr_real_1)
14045 (const_vector_from_tree): Likewise.
14046 * optabs.c (expand_float, expand_fix): Likewise.
14047 * reg-stack.c (reg_to_stack): Likewise.
14048 * simplify-rtx.c (avoid_constant_pool_reference): Likewise.
14049 (simplify_const_unary_operation, simplify_binary_operation_1)
14050 (simplify_const_binary_operation, simplify_relational_operation)
14051 (simplify_immed_subreg): Likewise.
14052
14053 2015-10-05 Richard Sandiford <richard.sandiford@arm.com>
14054
14055 * doc/tm.texi.in (REAL_ARITHMETIC): Delete.
14056 * doc/tm.texi: Regenerate.
14057 * real.h (REAL_ARITHMETIC): Delete.
14058 * config/i386/i386.c (ix86_expand_lround, ix86_expand_round)
14059 (ix86_expand_round_sse4): Use real_arithmetic instead of
14060 REAL_ARITHMETIC.
14061 * config/i386/sse.md (round<mode>2): Likewise.
14062 * rtl.h (rtx_to_tree_code): Likewise (in comment).
14063 * explow.c (rtx_to_tree_code): Likewise (in comment).
14064 * match.pd: Likewise.
14065 * simplify-rtx.c (simplify_binary_operation_1): Likewise.
14066 * tree-ssa-math-opts.c (representable_as_half_series_p): Likewise.
14067 (expand_pow_as_sqrts): Likewise.
14068 * tree-pretty-print.c (dump_generic_node): Remove code that
14069 was conditional on REAL_ARITHMETIC being undefined.
14070
14071 2015-10-05 Richard Sandiford <richard.sandiford@arm.com>
14072
14073 * doc/tm.texi.in (REAL_VALUES_LESS): Delete.
14074 * doc/tm.texi: Regenerate.
14075 * real.h (real_less): Declare.
14076 (REAL_VALUES_LESS): Delete.
14077 * real.c (real_less): New function.
14078 (real_compare): Use it.
14079 * config/m68k/m68k.c (floating_exact_log2): Use real_less instead
14080 of REAL_VALUES_LESS.
14081 * config/microblaze/microblaze.c (microblaze_const_double_ok):
14082 Likewise.
14083 * fold-const.c (fold_convert_const_int_from_real): Likewise.
14084 * simplify-rtx.c (simplify_const_unary_operation): Likewise.
14085 (simplify_const_relational_operation): Likewise.
14086 * tree-call-cdce.c (check_pow): Likewise.
14087 (gen_conditions_for_pow_cst_base): Likewise.
14088
14089 2015-10-05 Richard Sandiford <richard.sandiford@arm.com>
14090
14091 * real.h (REAL_VALUES_IDENTICAL): Delete.
14092 * config/m68k/m68k.c (standard_68881_constant_p): Use real_identical
14093 instead of REAL_VALUES_IDENTICAL.
14094 * fold-const.c (operand_equal_p): Likewise.
14095 * ipa-icf.c (sem_variable::equals): Likewise.
14096 * tree-complex.c (some_nonzerop): Likewise.
14097 (expand_complex_multiplication): Likewise.
14098 * tree.c (simple_cst_equal): Likewise.
14099 * varasm.c (compare_constant): Likewise.
14100
14101 2015-10-05 Richard Sandiford <richard.sandiford@arm.com>
14102
14103 * real.h (real_equal): Declare.
14104 (REAL_VALUES_EQUAL): Delete.
14105 * real.c (real_equal): New function.
14106 (real_compare): Use it.
14107 * doc/tm.texi.in (REAL_VALUES_EQUAL): Delete.
14108 * doc/tm.texi: Regenerate.
14109 * builtins.c (fold_builtin_pow, fold_builtin_load_exponent): Use
14110 real_equal instead of REAL_VALUES_EQUAL.
14111 * config/aarch64/aarch64.c (aarch64_float_const_zero_rtx_p): Likewise.
14112 * config/arm/arm.c (arm_const_double_rtx, neon_valid_immediate)
14113 (fp_const_from_val): Likewise.
14114 * config/fr30/fr30.c (fr30_const_double_is_zero): Likewise.
14115 * config/m68k/m68k.c (standard_68881_constant_p): Likewise.
14116 (floating_exact_log2): Likewise.
14117 * config/sh/sh.c (fp_zero_operand, fp_one_operand): Likewise.
14118 * config/vax/vax.c (vax_float_literal): Likewise.
14119 * config/xtensa/predicates.md (const_float_1_operand): Likewise.
14120 * cprop.c (implicit_set_cond_p): Likewise.
14121 * expmed.c (expand_mult): Likewise.
14122 * fold-const.c (const_binop): Likewise.
14123 * simplify-rtx.c (simplify_binary_operation_1): Likewise.
14124 (simplify_const_binary_operation): Likewise.
14125 (simplify_const_relational_operation): Likewise.
14126 * tree-call-cdce.c (check_pow): Likewise.
14127 (gen_conditions_for_pow_cst_base): Likewise.
14128 * tree-inline.c (estimate_num_insns): Likewise.
14129 * tree-ssa-dom.c (record_equality): Likewise.
14130 * tree-ssa-math-opts.c (representable_as_half_series_p): Likewise.
14131 (gimple_expand_builtin_pow): Likewise.
14132 (pass_optimize_widening_mul::execute): Likewise.
14133 * tree-ssa-uncprop.c (associate_equivalences_with_edges): Likewise.
14134 * tree-vect-patterns.c (vect_recog_pow_pattern): Likewise.
14135 * tree.c (real_zerop, real_onep, real_minus_onep): Likewise.
14136
14137 2015-10-05 Richard Biener <rguenther@suse.de>
14138
14139 PR ipa/67783
14140 * ipa-inline-analysis.c (estimate_function_body_sizes): Only
14141 consider loop header PHI defs as IVs.
14142
14143 2015-10-05 Richard Biener <rguenther@suse.de>
14144
14145 * tree-ssa-pre.c (create_component_ref_by_pieces_1): Move
14146 call handling ...
14147 (create_expression_by_pieces): ... here and build GIMPLE
14148 calls directly. Use gimple_build API and avoid force_gimple_operand.
14149 (insert_into_preds_of_block): Simplify.
14150 (do_regular_insertion): Add comment.
14151
14152 2015-10-04 Jason Merrill <jason@redhat.com>
14153
14154 * builtins.def (BUILT_IN_ABORT): Add transaction_pure attribute.
14155
14156 2015-10-04 Uros Bizjak <ubizjak@gmail.com>
14157
14158 * config/i386/i386.c (ix86_nsaved_regs): Use GENERAL_REGNO_P to
14159 check for general register.
14160 (ix86_emit_save_regs): Ditto.
14161 (ix86_emit_save_regs_using_mov): Ditto.
14162 (ix86_emit_restore_regs_using_pop): Ditto.
14163 (ix86_emit_restore_regs_using_mov): Ditto.
14164
14165 2015-10-03 Marek Polacek <polacek@redhat.com>
14166
14167 * Makefile.in (insn-latencytab.o): Remove -Wno-duplicated-cond.
14168 (insn-dfatab.o): Likewise.
14169
14170 2015-10-03 Max Filippov <jcmvbkbc@gmail.com>
14171
14172 * config.gcc (xtensa*-*-uclinux*): New configuration.
14173 * config/xtensa/uclinux.h: New file.
14174 * config/xtensa/uclinux.opt: New file.
14175
14176 2015-10-03 Jonathan Wakely <jwakely@redhat.com>
14177
14178 * doc/cpp.texi (Standard Predefined Macros): Document value of
14179 __cplusplus for C++14.
14180
14181 2015-10-02 Bernd Schmidt <bernds@codesourcery.com>
14182
14183 * gcc.c (process_command): Use spec_machine rather than
14184 spec_host_machine to build tooldir_prefix2.
14185
14186 2015-10-02 Thomas Schwinge <thomas@codesourcery.com>
14187 Bernd Schmidt <bernds@codesourcery.com>
14188
14189 * config/nvptx/mkoffload.c (Kind, Vis): Remove enums.
14190 (Token, Stmt): Remove structs.
14191 (decls, vars, fns): Remove variables.
14192 (alloc_comment, append_stmt, is_keyword): Remove macros.
14193 (tokenize, write_token, write_tokens, alloc_stmt, rev_stmts)
14194 (write_stmt, write_stmts, parse_insn, parse_list_nosemi)
14195 (parse_init, parse_file): Remove functions.
14196 (read_file): Accept a pointer to a length and store into it.
14197 (process): Don't try to parse the input file, just write it out as
14198 a string, but looking for maps. Also write out the length.
14199 (main): Don't use "-S" to compile PTX code.
14200
14201 2015-10-02 Jeff Law <law@redhat.com>
14202
14203 * tree-ssa-dom.c (optimize_stmt): Note when loop structures need
14204 fixups.
14205
14206 2015-10-02 Thomas Schwinge <thomas@codesourcery.com>
14207
14208 PR target/67822
14209 * config/nvptx/mkoffload.c (main): Scan the argument vector for
14210 -fopenmp, and skip generating an offloading image if specified.
14211
14212 2015-10-02 Uros Bizjak <ubizjak@gmail.com>
14213
14214 * system.h (ROUND_UP): New macro definition.
14215 (ROUND_DOWN): Ditto.
14216 * ggc-page.c (ROUND_UP): Remove local macro definition.
14217 (PAGE_ALIGN): Implement using ROUND_UP macro.
14218
14219 * config/i386/i386.h (PUSH_ROUNDING): Implement using ROUND_UP macro.
14220 * config/i386/i386.c (function_arg_advance_64): Use ROUND_UP macro
14221 to align values.
14222 (ix86_compute_frame_layout): Ditto.
14223 (ix86_expand_prologue): Ditto.
14224 (ix86_adjust_stack_and_probe): Use ROUND_DOWN macro
14225 to round down values.
14226 (expand_set_or_movmem_via_rep): Ditto.
14227
14228 2015-10-02 Marek Polacek <polacek@redhat.com>
14229
14230 * genemit.c (gen_exp): Remove -Wduplicated-cond hack.
14231
14232 2015-10-02 Aditya Kumar <aditya.k7@samsung.com>
14233
14234 * graphite-scop-detection.c (loop_ivs_can_be_represented): New.
14235 (loop_body_is_valid_scop): Call loop_ivs_can_be_represented.
14236 * graphite-sese-to-poly.c (new_gimple_bb): Renamed new_gimple_poly_bb.
14237 (free_gimple_bb): Renamed free_gimple_poly_bb.
14238 (try_generate_gimple_bb): Hoist loop invariant code.
14239 (analyze_drs_in_stmts): Same.
14240 (build_scop_drs): Call renamed functions.
14241 (new_pbb_from_pbb): Same.
14242 (scop_ivs_can_be_represented): Delete as functionality now moved to
14243 graphite-scop-detection.c
14244 (build_poly_scop): Remove call to scop_ivs_can_be_represented.
14245
14246 2015-10-02 Aditya Kumar <hiraditya@msn.com>
14247
14248 * graphite-scop-detection.c (stmt_has_side_effects): New function
14249 outlined from stmt_simple_for_scop_p.
14250 (graphite_can_represent_stmt): Same.
14251 (stmt_simple_for_scop_p): Moved code out of this function for better
14252 readability.
14253
14254 2015-10-02 Kirill Yukhin <kirill.yukhin@intel.com>
14255
14256 * config/i386/i386.c (processor_features): Add F_AVX512VBMI,
14257 F_AVX512IFMA.
14258 (isa_names_table): Handle F_AVX512VBMI and F_AVX512IFMA.
14259
14260 2015-10-02 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
14261
14262 * config/aarch64/aarch64-elf.h (TARGET_ASM_NAMED_SECTION): Delete.
14263
14264 2015-10-02 Vladimir Makarov <vmakarov@redhat.com>
14265
14266 PR rtl-optimization/67756
14267 * lra-constraints.c (match_reload): Add a new parameter. Use it
14268 for creating a pseudo with the same value.
14269 (curr_insn_transform): Pass a new argument to match_reload.
14270
14271 2015-10-02 Kirill Yukhin <kirill.yukhin@intel.com>
14272
14273 * config/i386/i386.c (expand_vec_perm_even_odd_trunc): New.
14274 (expand_vec_perm_even_odd_1): Handle V64QImode.
14275 (ix86_expand_vec_perm_const_1): Try expansion with
14276 expand_vec_perm_even_odd_trunc as well.
14277 * config/i386/sse.md (VI124_AVX512F): Rename to ...
14278 (define_mode_iterator VI124_AVX2_24_AVX512F_1_AVX512BW): This. Extend
14279 to V54QI.
14280 (define_mode_iterator VI248_AVX2_8_AVX512F): Rename to ...
14281 (define_mode_iterator VI248_AVX2_8_AVX512F_24_AVX512BW): This. Extend
14282 to V32HI and V16SI.
14283 (define_insn "avx512bw_<code>v32hiv32qi2"): Unhide pattern name.
14284 (define_expand "vec_pack_trunc_<mode>"): Update iterator name.
14285 (define_expand "vec_unpacks_lo_<mode>"): Ditto.
14286 (define_expand "vec_unpacks_hi_<mode>"): Ditto.
14287 (define_expand "vec_unpacku_lo_<mode>"): Ditto.
14288 (define_expand "vec_unpacku_hi_<mode>"): Ditto.
14289
14290 2015-10-02 Kirill Yukhin <kirill.yukhin@intel.com>
14291
14292 * doc/invoke.texi: Mention -mavx512vl, -mavx512bw, -mavx512dq,
14293 -mavx521vbmi, -mavx512ifma. Add missing opindex-es.
14294
14295 2015-10-02 Jason Merrill <jason@redhat.com>
14296
14297 PR c/59218
14298 * trans-mem.c (volatile_lvalue_p): Rename from volatile_var_p.
14299 (diagnose_tm_1_op): Also diagnose volatile accesses in
14300 transaction_safe function.
14301
14302 2015-10-02 Jonathan Wakely <jwakely@redhat.com>
14303
14304 * system.h (malloc.h): Don't include obsolete header.
14305
14306 2015-10-02 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
14307
14308 * config/aarch64/aarch64.c (aarch64_elf_asm_named_section): Delete.
14309 (TLS_SECTION_ASM_FLAG): Delete.
14310
14311 2015-10-02 Marek Polacek <polacek@redhat.com>
14312
14313 PR c/64249
14314 * doc/invoke.texi: Document -Wduplicated-cond.
14315 * Makefile.in (insn-latencytab.o): Use -Wno-duplicated-cond.
14316 (insn-dfatab.o): Likewise.
14317 * genemit.c (gen_exp): Rewrite condition to avoid -Wduplicated-cond
14318 warning.
14319
14320 2015-10-02 Oleg Endo <olegendo@gcc.gnu.org>
14321
14322 * config/sh/sh.md: Add new unnamed split pattern to handle movt-movt
14323 sequences.
14324
14325 2015-10-02 Renlin Li <renlin.li@arm.com>
14326
14327 * config/aarch64/aarch64.md (csneg3_insn_uxtw): New pattern.
14328
14329 2015-10-02 Renlin Li <renlin.li@arm.com>
14330
14331 PR target/66776
14332 * config/aarch64/aarch64.md (cmovdi_insn_uxtw): New pattern.
14333
14334 2015-10-02 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
14335
14336 PR rtl-optimization/67786
14337 PR rtl-optimization/67787
14338 * ifcvt.c (bb_valid_for_noce_process_p): Reject basic block if
14339 it modifies a reg used in the condition calculation.
14340
14341 2015-10-02 James Greenhalgh <james.greenhalgh@arm.com>
14342
14343 * config/aarch64/aarch64-simd.md (*aarch64_combinez<mode>): Add
14344 alternatives for reads from memory and moves from general-purpose
14345 registers.
14346 (*aarch64_combinez_be<mode>): Likewise.
14347
14348 2015-10-02 Kai Tietz <ktietz70@googlemail.com>
14349
14350 PR target/51726
14351 * config/i386/winnt.c (ix86_handle_selectany_attribute): Handle
14352 selectany within this function without need to keep attribute.
14353 (i386_pe_encode_section_info): Remove selectany-code.
14354
14355 2015-10-02 Richard Biener <rguenther@suse.de>
14356
14357 * tree-ssa-sccvn.c (has_VN_INFO): New function.
14358 (free_scc_vn): Use it.
14359 (visit_use): Remove dead code and refactor to use gassign
14360 and use less indentation.
14361
14362 2015-10-01 Segher Boessenkool <segher@kernel.crashing.org>
14363
14364 PR target/67788
14365 PR target/67789
14366 * config/rs6000/rs6000.c (TARGET_CANNOT_COPY_INSN_P): New.
14367 (rs6000_cannot_copy_insn_p): New function.
14368 * config/rs6000/rs6000.md (cannot_copy): New attribute.
14369 (load_toc_v4_PIC_1_normal): Set cannot_copy.
14370 (load_toc_v4_PIC_1_476): Ditto.
14371
14372 2015-10-01 Aditya Kumar <aditya.k7@samsung.com>
14373
14374 * graphite-scop-detection.c (struct sese_l): New conversion constructor
14375 so that this type can be pushed into a vec.
14376 (class scop_builder): use sese_l to collect scops.
14377 (get_scops): New getter function.
14378 (remove_intersecting_scops): Use sese_l instead of scops_p.
14379 (intersects): Same.
14380 (add_scop): Same.
14381 (subsumes): Same.
14382 (remove_subscops): Same.
14383 (build_scops): Add scops to vec<scops_p> once all the scops have been
14384 detected.
14385
14386 2015-10-01 Aditya Kumar <aditya.k7@samsung.com>
14387
14388 * graphite-isl-ast-to-gimple.c (class translate_isl_ast_to_gimple):
14389 Renamed type from gimple_bb_p to gimple_poly_bb_p.
14390 (translate_isl_ast_node_user): Same.
14391 * graphite-poly.c (new_poly_bb): Same.
14392 * graphite-poly.h (gbb_from_bb): Same.
14393 * sese.h: Same.
14394 * graphite-sese-to-poly.c (new_gimple_bb):
14395 gimple_bb_p -> gimple_poly_bb_p
14396 (build_scop_scattering): Same.
14397 (find_params_in_bb): Same.
14398 (add_conditions_to_domain): Same.
14399 (sese_dom_walker::before_dom_children): Same.
14400 (analyze_drs_in_stmts): Same.
14401 (new_pbb_from_pbb): Same.
14402 (free_data_refs_aux): New pointer to type base_alias_pair.
14403 * graphite-sese-to-poly.h: Same.
14404 * sese.c (if_region_set_false_region): Fixed Indentation.
14405 (move_sese_in_condition): Same.
14406
14407 2015-10-01 Sebastian Pop <s.pop@samsung.com>
14408 Aditya Kumar <aditya.k7@samsung.com>
14409
14410 PR tree-optimization/66980
14411 * graphite-scop-detection.c (stmt_has_simple_data_refs_p): Return false
14412 when data reference analysis has failed.
14413
14414 2015-10-01 Sebastian Pop <s.pop@samsung.com>
14415 Aditya Kumar <aditya.k7@samsung.com>
14416
14417 PR tree-optimization/67754
14418 * graphite-scop-detection.c (stmt_has_simple_data_refs_p): Call
14419 scev analysis on the same loop nest as analyze_drs_in_stmts.
14420 * graphite-sese-to-poly.c (outermost_loop_in_sese_1): Moved and
14421 renamed...
14422 (try_generate_gimple_bb): Call outermost_loop_in_sese.
14423 (analyze_drs_in_stmts): Same.
14424 * sese.c (outermost_loop_in_sese): ...here.
14425
14426 2015-10-01 Sebastian Pop <s.pop@samsung.com>
14427 Aditya Kumar <aditya.k7@samsung.com>
14428
14429 PR tree-optimization/67754
14430 * graphite-scop-detection.c (loop_body_is_valid_scop): Add missing
14431 recursion on the inner loops.
14432
14433 2015-10-01 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
14434
14435 * cfganal.c, compare-elim.c, coverage.c, cprop.c, df-scan.c,
14436 function.c, read-rtl.c, statistics.c, trans-mem.c, tree-if-conv.c,
14437 tree-into-ssa.c, tree-loop-distribution.c, tree-ssa-coalesce.c,
14438 tree-ssa-loop-ivopts.c, tree-ssa-reassoc.c, tree-ssa-strlen.c,
14439 tree-ssa-tail-merge.c, tree-vrp.c, var-tracking.c: Remove
14440
14441 2015-10-01 Marek Polacek <polacek@redhat.com>
14442
14443 PR c/65345
14444 * config/i386/i386.c (ix86_atomic_assign_expand_fenv): Adjust to use
14445 create_tmp_var_raw rather than create_tmp_var.
14446
14447 2015-10-01 Marek Polacek <polacek@redhat.com>
14448
14449 PR tree-optimization/67769
14450 * tree-ssa-phiopt.c (conditional_replacement): Call
14451 reset_flow_sensitive_info_in_bb.
14452 (minmax_replacement): Likewise.
14453 (abs_replacement): Likewise.
14454
14455 2015-10-01 Nathan Sidwell <nathan@codesourcery.com>
14456
14457 * builtins.c: Don't include gomp-constants.h.
14458 (fold_builtin_1): Don't fold acc_on_device here.
14459 * gimple-fold.c: Include gomp-constants.h.
14460 (gimple_fold_builtin_acc_on_device): New.
14461 (gimple_fold_builtin): Call it.
14462
14463 2015-10-01 H.J. Lu <hongjiu.lu@intel.com>
14464
14465 * config/i386/x86-tune.def (X86_TUNE_USE_BT): Enable for Lakemont.
14466 (X86_TUNE_ZERO_EXTEND_WITH_AND): Disable for Lakemont.
14467
14468 2015-10-01 James Greenhalgh <james.greenhalgh@arm.com>
14469
14470 * config/arm/aarch-common-protos.h
14471 (aarch_accumulator_forwarding): New.
14472 (aarch_forward_to_shift_is_not_shifted_reg): Likewise.
14473 * config/arm/aarch-common.c (aarch_accumulator_forwarding): New.
14474 (aarch_forward_to_shift_is_not_shifted_reg): Likewise.
14475 * config/arm/cortex-a53.md: Rewrite.
14476
14477 2015-10-01 Richard Biener <rguenther@suse.de>
14478
14479 * gimple-match.h (mprts_hook): Declare.
14480 * gimple-match.head.c (mprts_hook): Define.
14481 (maybe_push_res_to_seq): Use new hook.
14482 * gimple-fold.c (gimple_fold_stmt_to_constant_1): Likewise.
14483 * tree-ssa-sccvn.h (vn_ssa_aux::expr): Change to a gimple_seq.
14484 (vn_ssa_aux::has_constants): Remove.
14485 * tree-ssa-sccvn.c: Include gimple-match.h.
14486 (VN_INFO_GET): Assert we don't re-use SSA names.
14487 (vn_get_expr_for): Remove.
14488 (expr_has_constants): Likewise.
14489 (stmt_has_constants): Likewise.
14490 (simplify_binary_expression): Likewise.
14491 (simplify_unary_expression): Likewise.
14492 (vn_lookup_simplify_result): New hook.
14493 (visit_copy): Adjust.
14494 (visit_reference_op_call): Likewise.
14495 (visit_phi): Likewise.
14496 (visit_use): Likewise.
14497 (process_scc): Likewise.
14498 (init_scc_vn): Likewise.
14499 (visit_reference_op_load): Likewise. Use match-and-simplify and
14500 a gimple seq for inserted expressions.
14501 (try_to_simplify): Remove GENERIC stmt combining code.
14502 (sccvn_dom_walker::before_dom_children): Use match-and-simplify.
14503 * tree-ssa-pre.c (eliminate_insert): Adjust.
14504 (eliminate_dom_walker::before_dom_children): Likewise.
14505
14506 2015-10-01 Segher Boessenkool <segher@kernel.crashing.org>
14507
14508 * doc/invoke.texi (Optimization Options): Add
14509 -freorder-blocks-algorithm=.
14510 (Optimize Options) <-O>: Add -freorder-blocks.
14511 <-O2>: Remove -freorder-blocks. Add -freorder-blocks-algorithm=stc.
14512 <-Os>: Add -freorder-blocks-algorithm=stc as not enabled.
14513 <-freorder-blocks>: Also enabled at levels -O and -Os.
14514 <-freorder-blocks-algorithm=>: Document new option.
14515
14516 2015-10-01 Segher Boessenkool <segher@kernel.crashing.org>
14517
14518 * bb-reorder.c (reorder_basic_blocks): Use the algorithm selected
14519 with flag_reorder_blocks_algorithm.
14520 * common.opt (freorder-blocks-algorithm=): New flag.
14521 (reorder_blocks_algorithm): New enum.
14522 * flag-types.h (reorder_blocks_algorithm): New enum.
14523 * opts.c (default_options_table): Use -freorder-blocks at -O1 and up,
14524 and -freorder-blocks-algorithm=stc at -O2 and up (not at -Os).
14525
14526 2015-10-01 Segher Boessenkool <segher@kernel.crashing.org>
14527
14528 * bb-reorder.c: Add intro comment.
14529 (reorder_basic_blocks_software_trace_cache): Print a header to
14530 the dump file.
14531 (edge_order): New function.
14532 (reorder_basic_blocks_simple): New function.
14533 (reorder_basic_blocks): Choose between the STC and the simple
14534 algorithms (always choose the former).
14535
14536 2015-10-01 Segher Boessenkool <segher@kernel.crashing.org>
14537
14538 * bb-reorder.c (reorder_basic_blocks_software_trace_cache): New
14539 function, factored out from ...
14540 (reorder_basic_blocks): ... here.
14541
14542 2015-10-01 Tom de Vries <tom@codesourcery.com>
14543
14544 * tree-cfg.c (dump_function_to_file): Dump function attributes using
14545 __attribute__(()) string. Move dumping of function attributes to before
14546 function name.
14547
14548 2015-10-01 Lynn Boger <laboger@linux.vnet.ibm.com>
14549
14550 PR target/66870
14551 * config/rs6000/sysv4.h (TARGET_CAN_SPLIT_STACK_64BIT): Define.
14552 * configure.ac: Define HAVE_GOLD_ALTERNATE_SPLIT_STACK on Power
14553 based on gold linker version.
14554 * gcc.c: Add -fuse-ld=gold to STACK_SPLIT_SPEC if
14555 HAVE_GOLD_ALTERNATE_SPLIT_STACK defined.
14556 * configure, config.in: Regenerate.
14557
14558 2015-10-01 Alan Modra <amodra@gmail.com>
14559
14560 * config/rs6000/rs6000.c (rs6000_emit_prologue): Don't set
14561 r2_setup_needed when TARGET_SINGLE_PIC_BASE.
14562 (rs6000_output_mi_thunk): Likewise.
14563
14564 2015-09-30 Nathan Sidwell <nathan@codesourcery.com>
14565
14566 * config/nvptx/mkoffload.c (process): Change offload data format.
14567
14568 2015-09-30 Jeff Law <law@redhat.com>
14569
14570 * tree-ssa-dom.c (optimize_stmt): Collapse control flow statements
14571 with constant conditions.
14572 * tree-ssa-threadupdate.c (remove_jump_threads_starting_at): New.
14573 (remove_ctrl_stmt_and_useless_edges): No longer static.
14574 * tree-ssa-threadupdate.h (remove_jump_threads_starting_at): Prototype.
14575 (remove_ctrl_stmt_and_useless_edges): Likewise.
14576
14577 2015-09-30 Nathan Sidwell <nathan@codesourcery.com>
14578 Cesar Philippidis <cesar@codesourcery.com>
14579
14580 * config/nvptx/nvptx.c (nvptx_goacc_validate_dims): New.
14581 (TARGET_GOACC_VALIDATE_DIMS): Override.
14582 * target.def (TARGET_GOACC): New target hook prefix.
14583 (validate_dims): New hook.
14584 * targhooks.h (default_goacc_validate_dims): New.
14585 * omp-low.c (oacc_validate_dims): New.
14586 (execute_oacc_device_lower): New.
14587 (default_goacc_validate_dims): New.
14588 (pass_data_oacc_device_lower): New.
14589 (pass_oacc_device_lower): New pass.
14590 (make_pass_oacc_device_lower): New.
14591 * tree-pass.h (make_pass_oacc_device_lower): Declare.
14592 * passes.def (pass_oacc_device_lower): Add it.
14593 * doc/tm.texi: Rebuilt.
14594 * doc/tm.texi.in (TARGET_GOACC_VALIDATE_DIMS): Add hook.
14595 * doc/invoke.texi (oaccdevlow): Document tree dump flag.
14596
14597 2015-09-30 Bernd Edlinger <bernd.edlinger@hotmail.de>
14598
14599 PR rtl-optimization/67037
14600 * lra-constraints.c (process_addr_reg): Use copy_rtx when necessary.
14601
14602 2015-09-30 Bernd Schmidt <bernds@redhat.com>
14603
14604 * gimple-ssa.h (gimple_df): Add free_ssanames_queue field.
14605 * passes.c: Include tree-ssanames.h.
14606 (execute_function_todo): Flush the pending free SSA_NAMEs after
14607 eliminating unreachable basic blocks.
14608 * tree-ssanames.c (FREE_SSANAMES_QUEUE): new.
14609 (init_ssanames): Initialize FREE_SSANAMES_QUEUE.
14610 (fini_ssanames): Finalize FREE_SSANAMES_QUEUE.
14611 (flush_ssanames_freelist): New function.
14612 (release_ssaname_fn): Put released names on the queue.
14613 (pass_release_ssa_names::execute): Call flush_ssanames_freelist.
14614 * tree-ssanames.h (flush_ssanames_freelist): Declare.
14615
14616 2015-09-30 Thomas Schwinge <thomas@codesourcery.com>
14617
14618 * config/i386/intelmic-mkoffload.c (main): Parse "-v" flag.
14619 (generate_target_descr_file, generate_target_offloadend_file)
14620 (generate_host_descr_file, prepare_target_image): Pass it on.
14621 * config/nvptx/mkoffload.c (main): Parse "-v" flag.
14622 (compile_native, main): Pass it on.
14623 * lto-wrapper.c (compile_offload_image): Likewise.
14624
14625 2015-09-30 Thomas Schwinge <thomas@codesourcery.com>
14626 Ilya Verbin <ilya.verbin@intel.com>
14627 Andrey Turetskiy <andrey.turetskiy@intel.com>
14628
14629 * config/i386/intelmic-mkoffload.c (generate_host_descr_file)
14630 (prepare_target_image, main): Refactor argv building to use
14631 obstacks.
14632
14633 2015-09-30 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
14634
14635 * config/spu/spu-protos.h (spu_expand_atomic_op): Add prototype.
14636 * config/spu/spu.c (spu_expand_atomic_op): New function.
14637 * config/spu/spu.md (AINT): New mode iterator.
14638 (ATOMIC): New code iterator.
14639 (atomic_name, atomic_pred): New code predicates.
14640 ("atomic_load<mode>", "atomic_store<mode>"): New expanders.
14641 ("atomic_compare_and_swap<mode>", "atomic_exchange<mode>"): Likewise.
14642 (""atomic_<atomic_name><mode>", "atomic_fetch_<atomic_name><mode>",
14643 "atomic_<atomic_name>_fetch<mode>"): Likewise.
14644
14645 2015-09-30 Ilya Enkovich <enkovich.gnu@gmail.com>
14646
14647 * config/i386/i386.c (scalar_chain::analyze_register_chain): Ignore
14648 debug insns.
14649 (scalar_chain::convert_reg): Likewise.
14650
14651 2015-09-30 Richard Biener <rguenther@suse.de>
14652
14653 * builtins.c: Add comment that no new simplifications should
14654 be added here.
14655
14656 2015-09-30 Marek Polacek <polacek@redhat.com>
14657
14658 PR tree-optimization/67690
14659 * tree-ssa-ifcombine.c (pass_tree_ifcombine::execute): Call
14660 reset_flow_sensitive_info_in_bb.
14661 * tree-ssa-tail-merge.c (replace_block_by): Likewise.
14662 * tree-ssanames.c: Include "gimple-iterator.h".
14663 (reset_flow_sensitive_info_in_bb): New function.
14664 * tree-ssanames.h (reset_flow_sensitive_info_in_bb): Declare.
14665
14666 2015-09-30 Thomas Schwinge <thomas@codesourcery.com>
14667
14668 * config/i386/intelmic-mkoffload.c (target_ilp32): Remove
14669 variable, replacing it with...
14670 (offload_abi): ... this new variable. Adjust all users.
14671 * config/nvptx/mkoffload.c (target_ilp32, offload_abi): Likewise.
14672
14673 2015-09-30 Matthias Klose <doko@ubuntu.com>
14674
14675 * configure.ac: Remove extraneous ;;.
14676 * configure: Regenerate.
14677
14678 2015-09-29 James Bowman <james.bowman@ftdichip.com>
14679
14680 * config/ft32/predicates.md (ft32_imm_operand): New predicate.
14681 * config/ft32/ft32.md (movmemsi, setmemsi): Use ft32_imm_operand
14682 predicate, disallow register for operand 2.
14683
14684 2015-09-29 Aditya Kumar <aditya.k7@samsung.com>
14685
14686 * graphite-dependences.c (scop_get_dependences): Moved in down
14687 in order to be visible to its caller.
14688 * graphite-poly.h: Removed compute_deps, and extend_schedule.
14689
14690 2015-09-29 Sebastian Pop <s.pop@samsung.com>
14691 Aditya Kumar <aditya.k7@samsung.com>
14692
14693 PR tree-optimization/67754
14694 * graphite-optimize-isl.c (optimize_isl): Call
14695 isl_options_set_schedule_fuse with ISL_SCHEDULE_FUSE_MIN for ISL-14.
14696
14697 2015-09-29 Nathan Sidwell <nathan@codesourcery.com>
14698
14699 * builtins.c (expand_builtin_acc_on_device): Delete.
14700 (expand_builtin): Don't call it.
14701 (fold_builtin_1): Fold acc_on_device.
14702
14703 2015-09-29 H.J. Lu <hongjiu.lu@intel.com>
14704
14705 * config/i386/i386.c (ix86_function_arg): Fix typo in comments.
14706 (ix86_nsaved_sseregs): Likewise.
14707
14708 2015-09-29 Jeff Law <law@redhat.com>
14709
14710 * config/microblaze/microblaze.c (microblaze_version_to_int): Remove
14711 computation of unused value.
14712
14713 * config/pdp11/pdp11.c (pdp11_branch_cost): New function.
14714 * config/pdp11/pdp11.h (BRANCH_COST): Call function rather than
14715 inline macro expansion.
14716
14717 * config/i386/t-interix (winnt-stubs.o): Fix compilation rule.
14718
14719 * config/sh/sh.c (gen_shl_and): Fix undefined left shift behaviour.
14720 (gen_shl_sext): Likewise.
14721 * config/sh/sh.md (divsi3): Likewise.
14722 (imm->ext_dest_operand splitter): Likewise.
14723
14724 2015-09-29 Sebastian Pop <s.pop@samsung.com>
14725 Aditya Kumar <aditya.k7@samsung.com>
14726
14727 * graphite-sese-to-poly.c (gsi_for_phi_node): Remove.
14728 (nb_data_writes_in_bb): Remove.
14729 (split_pbb): Remove.
14730 (split_reduction_stmt): Remove.
14731 (is_reduction_operation_p): Remove.
14732 (phi_contains_arg): Remove.
14733 (follow_ssa_with_commutative_ops): Remove.
14734 (detect_commutative_reduction_arg): Remove.
14735 (detect_commutative_reduction_assign): Remove.
14736 (follow_inital_value_to_phi): Remove.
14737 (edge_initial_value_for_loop_phi): Remove.
14738 (initial_value_for_loop_phi): Remove.
14739 (used_outside_reduction): Remove.
14740 (detect_commutative_reduction): Remove.
14741 (translate_scalar_reduction_to_array_for_stmt): Remove.
14742 (remove_phi): Remove.
14743 (dr_indices_valid_in_loop): Remove.
14744 (close_phi_written_to_memory): Remove.
14745 (translate_scalar_reduction_to_array): Remove.
14746 (rewrite_commutative_reductions_out_of_ssa_close_phi): Remove.
14747 (rewrite_commutative_reductions_out_of_ssa_loop): Remove.
14748 (rewrite_commutative_reductions_out_of_ssa): Remove.
14749 (build_poly_scop): Remove call to
14750 rewrite_commutative_reductions_out_of_ssa.
14751
14752 2015-09-29 Evandro Menezes <e.menezes@samsung.com>
14753
14754 * config/arm/types.md (neon_ldp, neon_ldp_q, neon_stp, neon_stp_q):
14755 Add new insn types for vector load and store pairs.
14756 * config/arm/cortex-a53.md (cortex_a53_f_load_2reg): Add insn
14757 types "neon_ldp{,_q}".
14758 * config/arm/cortex-a57.md (neon_load_c): Add insn types
14759 "neon_ldp{,_q}".
14760 (neon_store_complex): Add insn types "neon_stp{,_q}".
14761 * config/aarch64/aarch64-simd.md (aarch64_be_movoi): Add insn types
14762 "neon_{ldp,stp}_q".
14763
14764 2015-09-29 Jeff Law <law@redhat.com>
14765
14766 * config/rx/constraints.md (Int08): Fix undefined left shift
14767 behaviour.
14768 (Sint08, Sint16, Sint24): Likewise.
14769 * config/rx/rx.c (rx_get_stack_layout): Likewise.
14770
14771 * config/rl78/rl78-expand.md (movqi): Fix undefined left shift
14772 behaviour.
14773
14774 * config/msp430/msp430.c (msp430_legitimate_constant): Fix undefined
14775 left shift behaviour.
14776 * config/msp430/constraints.md ('L' constraint): Similarly.
14777 ('Ys' constraint): Similarly.
14778
14779 2015-09-29 Richard Biener <rguenther@suse.de>
14780
14781 PR tree-optimization/67170
14782 * tree-ssa-alias.h (get_continuation_for_phi): Adjust
14783 the translate function pointer parameter to get the
14784 bool whether to disambiguate only by reference.
14785 (walk_non_aliased_vuses): Likewise.
14786 * tree-ssa-alias.c (maybe_skip_until): Adjust.
14787 (get_continuation_for_phi_1): Likewise.
14788 (get_continuation_for_phi): Likewise.
14789 (walk_non_aliased_vuses): Likewise.
14790 * tree-ssa-sccvn.c (const_parms): New bitmap.
14791 (vn_reference_lookup_3): Adjust for interface change.
14792 Disambiguate parameters pointing to readonly memory.
14793 (free_scc_vn): Free const_parms.
14794 (run_scc_vn): Initialize const_parms from a fn spec attribute.
14795
14796 2015-09-29 Richard Biener <rguenther@suse.de>
14797
14798 PR tree-optimization/67741
14799 * tree-ssa-math-opts.c (pass_cse_sincos::execute): Only recognize
14800 builtin calls with correct signature.
14801
14802 2015-09-29 Ilya Enkovich <enkovich.gnu@gmail.com>
14803
14804 PR target/65105
14805 * config/i386/i386.c: Include dbgcnt.h.
14806 (has_non_address_hard_reg): New.
14807 (convertible_comparison_p): New.
14808 (scalar_to_vector_candidate_p): New.
14809 (remove_non_convertible_regs): New.
14810 (scalar_chain): New.
14811 (scalar_chain::scalar_chain): New.
14812 (scalar_chain::~scalar_chain): New.
14813 (scalar_chain::add_to_queue): New.
14814 (scalar_chain::mark_dual_mode_def): New.
14815 (scalar_chain::analyze_register_chain): New.
14816 (scalar_chain::add_insn): New.
14817 (scalar_chain::build): New.
14818 (scalar_chain::compute_convert_gain): New.
14819 (scalar_chain::replace_with_subreg): New.
14820 (scalar_chain::replace_with_subreg_in_insn): New.
14821 (scalar_chain::emit_conversion_insns): New.
14822 (scalar_chain::make_vector_copies): New.
14823 (scalar_chain::convert_reg): New.
14824 (scalar_chain::convert_op): New.
14825 (scalar_chain::convert_insn): New.
14826 (scalar_chain::convert): New.
14827 (convert_scalars_to_vector): New.
14828 (pass_data_stv): New.
14829 (pass_stv): New.
14830 (make_pass_stv): New.
14831 (ix86_option_override): Created and register stv pass.
14832 (flag_opts): Add -mstv.
14833 (ix86_option_override_internal): Likewise.
14834 * config/i386/i386.md (SWIM1248x): New.
14835 (*movdi_internal): Add xmm to mem alternative for TARGET_STV.
14836 (and<mode>3): Use SWIM1248x iterator instead of SWIM.
14837 (*anddi3_doubleword): New.
14838 (*zext<mode>_doubleword): New.
14839 (*zextsi_doubleword): New.
14840 (<code><mode>3): Use SWIM1248x iterator instead of SWIM.
14841 (*<code>di3_doubleword): New.
14842 * config/i386/i386.opt (mstv): New.
14843 * dbgcnt.def (stv_conversion): New.
14844
14845 2015-09-29 Tom de Vries <tom@codesourcery.com>
14846
14847 * tree-cfg.c (dump_function_to_file): Dump function attributes.
14848
14849 2015-09-29 Kaz Kojima <kkojima@gcc.gnu.org>
14850
14851 PR target/67716
14852 * config/sh/sh.c (sh_override_options_after_change): New.
14853 (TARGET_OVERRIDE_OPTIONS_AFTER_CHANGE): Define.
14854 (sh_option_override): Move align_loops, align_jumps and
14855 align_functions handling into sh_override_options_after_change.
14856
14857 2015-09-28 Nathan Sidwell <nathan@codesourcery.com>
14858
14859 * config/nvptx/nvptx.c: Include omp-low.h and gomp-constants.h.
14860 (nvptx_record_offload_symbol): Record function execution geometry.
14861 * config/nvptx/mkoffload.c (process): Include launch geometry in
14862 function data.
14863 * omp-low.c (oacc_launch_pack): New.
14864 (replace_oacc_fn_attrib): New.
14865 (set_oacc_fn_attrib): New.
14866 (get_oacc_fn_attrib): New.
14867 (expand_omp_target): Create keyed varargs for GOACC_parallel call
14868 generation.
14869 * omp-low.h (get_oacc_fn_attrib): Declare.
14870 * builtin-types.def (DEF_FUNCTION_TyPE_VAR_6): New.
14871 (DEF_FUNCTION_TYPE_VAR_11): Delete.
14872 * tree.h (OMP_CLAUSE_EXPR): New.
14873 * omp-builtins.def (BUILT_IN_GOACC_PARALLEL): Change target fn name.
14874
14875 2015-09-28 Aditya Kumar <aditya.k7@samsung.com>
14876 Sebastian Pop <s.pop@samsung.com>
14877
14878 * sese.c (invariant_in_sese_p_rec): Remove unused variable.
14879
14880 2015-09-28 Aditya Kumar <aditya.k7@samsung.com>
14881 Sebastian Pop <s.pop@samsung.com>
14882
14883 * graphite-optimize-isl.c (optimize_isl): Use ISL_SCHEDULE_FUSE_MAX.
14884 * graphite-scop-detection.c (struct sese_l): New type.
14885 (get_entry_bb): API for getting entry bb of SESE.
14886 (get_exit_bb): API for getting exit bb of SESE.
14887 (class debug_printer): New type. Simple printer in debug mode.
14888 (trivially_empty_bb_p): New. Return true when BB is empty or
14889 contains only debug instructions.
14890 (graphite_can_represent_expr): Call scalar_evoution_in_region
14891 instead of analyze_scalar_evolution. Pass in scop instead of only
14892 the scop entry.
14893 (stmt_has_simple_data_refs_p): Pass in scop instead of only the
14894 scop entry.
14895 (stmt_simple_for_scop_p): Same.
14896 (harmful_stmt_in_bb): Same.
14897 (graphite_can_represent_loop): Deleted.
14898 (struct scopdet_info): Deleted.
14899 (scopdet_basic_block_info): Deleted.
14900 (build_scops_1): Deleted.
14901 (bb_in_sd_region): Deleted.
14902 (find_single_entry_edge): Deleted.
14903 (find_single_exit_edge): Deleted.
14904 (create_single_entry_edge): Deleted.
14905 (sd_region_without_exit): Deleted.
14906 (create_single_exit_edge): Deleted.
14907 (unmark_exit_edges): Deleted.
14908 (mark_exit_edges): Deleted.
14909 (create_sese_edges): Deleted.
14910 (build_graphite_scops): Deleted.
14911 (canonicalize_loop_closed_ssa): Recompute all dominators at the end.
14912 (build_scops): Use the new scop_builder to build scops.
14913 (dot_all_scops_1): Use the new pretty printer. Print loop father
14914 as well.
14915 (loop_body_is_valid_scop): New. Return true if loop body is a
14916 valid scop.
14917 (class scop_builder): New. Builds SCoPs for polyhedral
14918 optimizations.
14919 (scop_builder): New constructor.
14920 (static sese_l invalid_sese): sese_l with invalid edges.
14921 (get_sese): Get an sese (from a loop) if possible, invalid_sese
14922 otherwise.
14923 (get_nearest_dom_with_single_entry): Get nearest dominator of a
14924 basic_block with single entry. Return NULL if we get to the
14925 beginning of a function.
14926 (get_nearest_pdom_with_single_exit): Get nearest post-dominator of
14927 a basic_block with single exit. Return NULL if we get to the
14928 beginning of a function.
14929 (print_sese): Pretty-print SESE.
14930 (merge_sese): Merge two SESEs if possible and return the new SESE.
14931 (build_scop_depth): Start building the SCoP within a loop nest.
14932 (build_scop_breadth): Start building the SCoP at a single loop
14933 depth. Merge adjacent SESEs if valid.
14934 (can_represent_loop_1): Returns true if Graphite can represent
14935 loop inside SCoP. Helper for can_represent_loop.
14936 (can_represent_loop): Returns true if Graphite can represent LOOP
14937 and all its nested loops in SCoP.
14938 (loop_is_valid_scop): Returns true if LOOP and all its nests
14939 constitute a valid SCoP.
14940 (region_has_one_loop): Returns true of a region has only one loop.
14941 (add_scop): Add SCoP to the list of valid scops. Removes an
14942 already existing scop if it intersects with or subsumed by this one.
14943 (harmful_stmt_in_region): Returns true if SCoP has any statment
14944 which cannot be represented by Graphite.
14945 (subsumes): Returns true of SCoP S1 subsumes SCoP S2.
14946 (remove_subscops): Remove any SCoP from the list of already found
14947 SCoPs, if subsumed by S1.
14948 (intersects): Return true if region bounded by SCoPs S1 and S2
14949 intersect.
14950 (remove_intersecting_scops): Remove any SCoP which intersects with S1.
14951 * graphite.c (print_graphite_scop_statistics):
14952 (print_graphite_statistics): Print SCoP info while debugging.
14953 (graphite_initialize): Early exit in case number of loops in a
14954 function is less than PARAM_GRAPHITE_MIN_LOOPS_PER_FUNCTION or
14955 basic blocks are more than PARAM_GRAPHITE_MAX_BBS_PER_FUNCTION.
14956 (graphite_finalize):
14957 * params.def: Add PARAM_GRAPHITE_MIN_LOOPS_PER_FUNCTION.
14958 * sese.h (sese_loop_depth): Remove unnecessary gcc_assert.
14959 (recompute_all_dominators): Recalculate POST_DOMINATORS.
14960 * tree-cfg.c (print_loops): Print the function name while printing
14961 loops.
14962
14963 2015-09-28 Aditya Kumar <aditya.k7@samsung.com>
14964 Sebastian Pop <s.pop@samsung.com>
14965
14966 PR tree-optimization/67700
14967 * graphite-sese-to-poly.c (parameter_index_in_region): Call
14968 invariant_in_sese_p_rec.
14969 (extract_affine): Same.
14970 (rewrite_cross_bb_scalar_deps): Call update_ssa.
14971 * sese.c (invariant_in_sese_p_rec): Export. Handle vdefs and vuses.
14972 * sese.h (invariant_in_sese_p_rec): Declare.
14973
14974 2015-09-28 David Wohlferd <dw@LimeGreenSocks.com>
14975
14976 * doc/extend.texi (Asm Labels): Break out text for data vs functions.
14977
14978 2015-09-28 Jiong Wang <jiong.wang@arm.com>
14979
14980 Revert:
14981 2015-08-06 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
14982 Jiong Wang <jiong.wang@arm.com>
14983
14984 * config/aarch64/aarch64.d (tlsdesc_small_pseudo_<mode>): New pattern.
14985 * config/aarch64/aarch64.h (reg_class): New enumeration FIXED_REG0.
14986 (REG_CLASS_NAMES): Likewise.
14987 (REG_CLASS_CONTENTS): Likewise.
14988 * config/aarch64/aarch64.c (aarch64_class_max_nregs): Likewise.
14989 (aarch64_register_move_cost): Likewise.
14990 (aarch64_load_symref_appropriately): Invoke the new added pattern if
14991 possible.
14992 * config/aarch64/constraints.md (Uc0): New constraint.
14993
14994 2015-09-28 Daniel Hellstrom <daniel@gaisler.com>
14995
14996 * config/sparc/t-rtems: Remove -muser-mode. Add ut699, at697f and leon.
14997
14998 2015-09-28 David Edelsohn <dje.gcc@gmail.com>
14999
15000 * config/rs6000/rs6000.c (rs6000_xcoff_asm_named_section): Place
15001 SECTION_EXCLUDE in XO mapping class.
15002
15003 2015-09-28 Oleg Endo <olegendo@gcc.gnu.org>
15004
15005 PR target/54236
15006 * config/sh/predicates.md (t_reg_operand, negt_reg_operand): Allow
15007 and handle ne and eq codes.
15008 * config/sh/sh.c (sh_rtx_costs): Adjust matching of tst #imm,r0 insn.
15009 (sh_recog_treg_set_expr): Early accept negt_reg_operand. Eearly reject
15010 CONST_INT_P. Use reverse_condition.
15011 (sh_split_treg_set_expr): Likewise.
15012
15013 2015-09-28 James Greenhalgh <james.greenhalgh@arm.com>
15014
15015 * config/arm/types.md (type): Add rotate_imm.
15016 * config/aarch64/aarch64.md (*ror<mode>3_insn): Split out the
15017 ROR immediate case.
15018 (*rorsi3_insn_uxtw): Likewise.
15019 * config/aarch64/thunderx.md (thunderx_shift): Add rotate_imm.
15020 * config/arm/cortex-a53.md (cortex_a53_alu_shift): Add rotate_imm.
15021 * config/arm/cortex-a57.md (cortex_a53_alu): Add rotate_imm.
15022
15023 2015-09-28 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
15024
15025 PR rtl-optimization/67481
15026 * ifcvt.c (contains_ccmode_rtx_p): New function.
15027 (insn_valid_noce_process_p): Use it.
15028
15029 2015-09-28 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
15030
15031 PR rtl-optimization/67456
15032 PR rtl-optimization/67464
15033 PR rtl-optimization/67465
15034 * ifcvt.c (noce_try_cmove_arith): Bail out if cannot conditionally
15035 move in the mode of x. Handle combination of complex and simple
15036 block pairs as well as the case when one is empty.
15037
15038 2015-09-28 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
15039
15040 * doc/gimple.texi: Update references to gimple_statement_base.
15041 * gdbhooks.py: Likewise.
15042 * gimple.h: Likewise.
15043
15044 2015-09-28 Daniel Cederman <cederman@gaisler.com>
15045
15046 * config/sparc/driver-sparc.c: map LEON to leon3
15047
15048 2015-09-28 Daniel Cederman <cederman@gaisler.com>
15049
15050 * config/sparc/sparc.opt: Rename mask from USER_MODE to SV_MODE
15051 and make it inverse to change default
15052 * config/sparc/sync.md: Only use supervisor ASI for CASA when in
15053 supervisor mode
15054 * doc/invoke.texi: Document change of default
15055
15056 2015-09-28 Daniel Cederman <cederman@gaisler.com>
15057
15058 * config/sparc/sparc.c (sparc_function_value_regno_p): Do not return
15059 true on %f0 for a target without FPU.
15060 * config/sparc/sparc.md (untyped_call): Do not save %f0 for a target
15061 without FPU.
15062 (untyped_return): Do not load %f0 for a target without FPU.
15063
15064 2015-09-28 Andrew Pinski <apinski@cavium.com>
15065
15066 * config/aarch64/aarch64.md (prefetch):
15067 Change the predicate of operand 0 to register_operand.
15068
15069 2015-09-27 Uros Bizjak <ubizjak@gmail.com>
15070
15071 * config/i386/predicates.md (register_sse4nonimm_operand): New
15072 predicate.
15073 * config/i386/sse.md (PEXTR_MODE12): New mode iterator.
15074 (*vec_extract<mode>): Use PEXTR_MODE12 instead of VI12_128 mode.
15075 Use register_sse4nonimm_operand as operand 0 predicate.
15076 (*vec_extractv8hi_sse2): Remove insn pattern.
15077 (*vec_extract<PEXTR_MODE12:mode>_zext): Merge insn pattern from
15078 *vec_extractv8hi_zext and *vec_extractv16qi_zext patterns.
15079
15080 2015-09-27 Oleg Endo <olegendo@gcc.gnu.org>
15081 Kaz Kojima <kkojima@gcc.gnu.org>
15082
15083 PR target/67391
15084 * config/sh/sh-protos.h (sh_lra_p): Declare.
15085 * config/sh/sh.c (sh_lra_p): Make non-static.
15086 * config/sh/sh.md (addsi3): Use arith_reg_dest for operands[0] and
15087 arith_reg_operand for operands[1]. Remove TARGET_SHMEDIA case.
15088 Expand into addsi3_scr if operands[2] if needed.
15089 (*addsi3_compact): Rename to *addsi3_compact_lra. Use
15090 arith_reg_operand for operands[1]. Allow it only when LRA is enabled.
15091 (addsi3_scr, *addsi3): New insn_and_split patterns.
15092
15093 2015-09-27 Alexandre Oliva <aoliva@redhat.com>
15094
15095 PR rtl-optimization/64164
15096 PR tree-optimization/67312
15097 PR middle-end/67340
15098 PR middle-end/67490
15099 PR bootstrap/67597
15100 * cfgexpand.c (parm_in_stack_slot_p): Remove.
15101 (ssa_default_def_partition): Remove.
15102 (get_rtl_for_parm_ssa_default_def): Remove.
15103 (set_rtl): Check that RTL assignments match expectations.
15104 Loop on SUBREGs, CONCATs and PARALLELs subexprs. Set only the
15105 default def location for params and results. Record SSA names
15106 or types in REG and MEM attrs, respectively.
15107 (set_parm_rtl): New.
15108 (expand_one_ssa_partition): Drop logic that assigned MEMs with
15109 unassigned addresses.
15110 (adjust_one_expanded_partition_var): Don't accept NULL RTL on
15111 deferred stack alloc vars.
15112 (expand_used_vars): Skip partitions holding parm default defs.
15113 Move adjust_one_expanded_partition_var loop...
15114 (pass_expand::execute): ... here. Drop redundant assert.
15115 Adjust comments before the final loop over all ssa names.
15116 Require assigned rtl of parms and results to match exactly.
15117 Reset its attributes to match them, not any other variables in
15118 the same partition.
15119 (expand_debug_expr): Use entry value for PARM's default defs
15120 only iff they have zero nondebug uses.
15121 * cfgexpand.h (parm_in_stack_slot_p): Remove.
15122 (get_rtl_for_parm_ssa_default_def): Remove.
15123 (set_parm_rtl): Declare.
15124 * doc/invoke.texi: Improve wording.
15125 * explow.c (promote_decl_mode): Fix promote_function_mode for
15126 result decls not by reference.
15127 (promote_ssa_mode): Disregard BLKmode from promote_decl, and
15128 bypass TYPE_MODE to get the actual vector mode.
15129 * function.c: Include tree-dfa.h. Revert 2015-08-14's and
15130 2015-08-19's changes as follows. Drop include of
15131 basic-block.h and df.h.
15132 (rtl_for_parm): Remove.
15133 (maybe_reset_rtl_for_parm): Remove.
15134 (parm_in_unassigned_mem_p): Remove.
15135 (use_register_for_decl): Add logic for RESULT_DECLs matching
15136 assign_parms' behavior.
15137 (split_complex_args): Revert.
15138 (assign_parms_augmented_arg_list): Revert. Add comment
15139 referencing the logic above.
15140 (assign_parm_adjust_stack_rtl): Revert.
15141 (assign_parm_setup_block): Revert. Use set_parm_rtl instead
15142 of SET_DECL_RTL. Set up a REG if the parm demands so.
15143 (assign_parm_setup_reg): Revert. Consolidated SET_DECL_RTL
15144 calls into a single set_parm_rtl. Set up a temporary RTL
15145 temporarily for expand_assignment.
15146 (assign_parm_setup_stack): Revert. Use set_parm_rtl.
15147 (assign_parms_unsplit_complex): Revert. Use set_parm_rtl.
15148 (assign_bounds): Revert.
15149 (assign_parms): Revert. Use set_parm_rtl.
15150 (allocate_struct_function): Relayout result and parms of
15151 non-abstruct functions.
15152 (expand_function_start): Revert. Use set_parm_rtl. If the
15153 result is not a hard reg, create a pseudo from the promoted
15154 mode of the default def. Promote static chain mode.
15155 * tree-outof-ssa.c (remove_ssa_form): Drop unused
15156 partition_has_default_def. Set up
15157 partitions_for_parm_default_defs.
15158 (finish_out_of_ssa): Remove partition_has_default_def.
15159 Release partitions_for_parm_default_defs.
15160 * tree-outof-ssa.h (struct ssaexpand): Remove
15161 partition_has_default_def. Add
15162 partitions_for_parm_default_defs.
15163 * tree-ssa-coalesce.c: Include tree-dfa.h, tm_p.h and
15164 stor-layout.h.
15165 (build_ssa_conflict_graph): Fix conflict-detection of default
15166 defs of even unused default defs of params and results.
15167 (for_all_parms): New.
15168 (create_default_def): New.
15169 (register_default_def): New.
15170 (coalesce_with_default): New.
15171 (create_outofssa_var_map): Create default defs for all parms
15172 and results, and register their partitions. Add GIMPLE_RETURN
15173 operands as coalesce candidates with results. Add default
15174 defs of each parm or result as coalesce candidates with its
15175 other defs. Mark each result def, and each default def of
15176 parms, as used_in_copy.
15177 (gimple_can_coalesce_p): Call it. Call use_register_for_decl
15178 with the ssa names, even anonymous ones. Drop
15179 parm_in_stack_slot_p calls. Require same signedness and
15180 alignment.
15181 (coalesce_ssa_name): Add coalesce candidates for all defs of
15182 each parm and result, even unused ones.
15183 (parm_default_def_partition_arg): New type.
15184 (set_parm_default_def_partition): New.
15185 (get_parm_default_def_partitions): New.
15186 * tree-ssa-coalesce.h (get_parm_default_def_partitions): New.
15187 * tree-ssa-live.c (partition_view_init): Regard unused defs of
15188 parms and results as used.
15189 (verify_live_on_entry): Don't error out just because they're
15190 not live.
15191
15192 2015-09-26 David Edelsohn <dje.gcc@gmail.com>
15193
15194 * dwarf2out.c (XCOFF_DEBUGGING_INFO): Default 0 definition.
15195 (HAVE_XCOFF_DWARF_EXTRAS): Default to 0 definition.
15196 (output_fde): Don't output length for debug_frame on AIX.
15197 (output_call_frame_info): Don't output length for debug_frame on AIX.
15198 (have_macinfo): Force to False for XCOFF_DEBUGGING_INFO and not
15199 HAVE_XCOFF_DWARF_EXTRAS.
15200 (add_AT_loc_list): Return early if XCOFF_DEBUGGING_INFO and not
15201 HAVE_XCOFF_DWARF_EXTRAS.
15202 (output_compilation_unit_header): Don't output length on AIX.
15203 (output_pubnames): Don't output length on AIX.
15204 (output_aranges): Delete argument. Compute length locally. Don't
15205 output length on AIX.
15206 (output_line_info): Don't output length on AIX.
15207 (dwarf2out_finish): Don't compute aranges_length.
15208 * dwarf2asm.c (XCOFF_DEBUGGING_INFO): Default 0 definition.
15209 (dw2_asm_output_nstring): Emit .byte not .ascii on AIX.
15210 * config/rs6000/rs6000.c (rs6000_output_dwarf_dtprel): Emit correct
15211 symbol decoration for AIX.
15212 (rs6000_xcoff_debug_unwind_info): New.
15213 (rs6000_xcoff_asm_named_section): Emit .dwsect pseudo-op
15214 for SECTION_DEBUG.
15215 (rs6000_xcoff_declare_function_name): Emit different
15216 .function pseudo-op when DWARF2_DEBUG. Don't call
15217 xcoffout_declare_function for DWARF2_DEBUG.
15218 * config/rs6000/xcoff.h (TARGET_DEBUG_UNWIND_INFO):
15219 Redefine.
15220 * config/rs6000/aix71.h: New.
15221 * configure.ac (gcc_cv_as_aix_dwloc): Check AIX as for DWARF
15222 locations support.
15223 * configure: Regenerate.
15224 * config.gcc (powerpc-ibm-aix[789]+): New stanza for AIX 7.1+ with
15225 DWARF support.
15226
15227 2015-09-26 Jeff Law <law@redhat.com>
15228
15229 * config/arc/arc.c (arc_output_addsi): Fix left shift undefined
15230 behaviour.
15231 * config/arc/constraints.md (Cca, C2a): Fix left shift undefined
15232 behaviour.
15233
15234 * config/sh/sh.h (CONST_OK_FOR_J16): Fix left shift undefined
15235 behaviour
15236
15237 * config/mips/mips.c (mips_compute_frame_info): Fix left shift
15238 undefined behaviour.
15239
15240 * config/cris/cris.md (asrandb): Fix left shift undefined
15241 behaviour.
15242 (asrandw): Likewise.
15243
15244 2015-09-25 Vladimir Makarov <vmakarov@redhat.com>
15245
15246 PR target/61578
15247 * lra-constarints.c (match_reload): Check presence of the input pseudo
15248 in the output operand.
15249
15250 2015-09-25 Tobias Burnus <burnus@net-b.de>
15251
15252 * doc/invoke.texi (-fsanitize): Minor wording tweak.
15253
15254 2015-09-25 Tobias Burnus <burnus@net-b.de>
15255
15256 * doc/invoke.texi (-fsanitize): Update URLs.
15257
15258 2015-09-25 Teresa Johnson <tejohnson@google.com>
15259
15260 * opts.c (finish_options): Unset -freorder-blocks-and-partition
15261 if not using profile.
15262
15263 2015-09-25 Manuel López-Ibáñez <manu@gcc.gnu.org>
15264
15265 PR pretty-print/67567
15266 * pretty-print.c (pp_string): Add gcc_checking_assert.
15267 * pretty-print.h (output_buffer_append_r): Likewise.
15268
15269 2015-09-25 Oleg Endo <olegendo@gcc.gnu.org>
15270
15271 PR target/67675
15272 * config/sh/sh-mem.cc (sh_expand_cmpstr): Check alignment of addr1 and
15273 addr2 individually. Don't emit logical or insn if one is known to
15274 be aligned approriately.
15275 (sh_expand_cmpnstr): Likewise.
15276
15277 2015-09-25 Richard Sandiford <richard.sandiford@arm.com>
15278
15279 * config/aarch64/aarch64-builtins.c (aarch64_expand_builtin): Force
15280 __builtin_aarch64_fp[sc]r arguments into a register.
15281
15282 2015-09-25 H.J. Lu <hongjiu.lu@intel.com>
15283
15284 * config.gcc (x86_archs): Replace lakemount with lakemont.
15285 (with_cpu): Likewise.
15286 (with_arch): Likewise.
15287 * config/i386/i386-c.c (ix86_target_macros_internal): Replace
15288 PROCESSOR_LAKEMOUNT with PROCESSOR_LAKEMONT. Replace
15289 __tune_lakemount__ with __tune_lakemont__.
15290 * config/i386/i386.c (lakemount_cost): Renamed to ...
15291 (lakemont_cost): This.
15292 (m_LAKEMOUNT): Renamed to ...
15293 (m_LAKEMONT): This.
15294 (initial_ix86_arch_features): Replace m_LAKEMOUNT with m_LAKEMONT.
15295 (processor_target_table): Replace "lakemount" with "lakemont".
15296 (processor_alias_table): Likewise.
15297 (ix86_issue_rate): Replace PROCESSOR_LAKEMOUNT with
15298 PROCESSOR_LAKEMONT.
15299 (ix86_adjust_cost): Likewise.
15300 (ia32_multipass_dfa_lookahead): Likewise.
15301 * config/i386/i386.h (processor_type): Likewise.
15302 * config/i386/x86-tune.def: Replace m_LAKEMOUNT with m_LAKEMONT.
15303 * doc/invoke.texi: Replace lakemount with lakemont. Replace
15304 Lakemount with Lakemont.
15305
15306 2015-09-24 H.J. Lu <hongjiu.lu@intel.com>
15307
15308 * config.gcc (x86_archs): Replace iamcu with lakemount.
15309 (with_cpu): Likewise.
15310 (with_arch): Likewise.
15311 * doc/invoke.texi: Likewise.
15312 * config/i386/i386-c.c (ix86_target_macros_internal): Replace
15313 PROCESSOR_IAMCU with PROCESSOR_LAKEMOUNT. Replace
15314 __tune_iamcu__ with __tune_lakemount__.
15315 * config/i386/i386.c (iamcu_cost): Renamed to ...
15316 (lakemount_cost): This.
15317 (m_IAMCU): Renamed to ...
15318 (m_LAKEMOUNT): This.
15319 (initial_ix86_arch_features): Replace m_IAMCU with m_LAKEMOUNT.
15320 (processor_target_table): Replace "iamcu" with "lakemount".
15321 (processor_alias_table): Likewise.
15322 (ix86_issue_rate): Replace PROCESSOR_IAMCU with
15323 PROCESSOR_LAKEMOUNT.
15324 (ix86_adjust_cost): Likewise.
15325 (ia32_multipass_dfa_lookahead): Likewise.
15326 * config/i386/i386.h (processor_type): Likewise.
15327 * config/i386/x86-tune.def: Replace m_IAMCU with m_LAKEMOUNT.
15328
15329 2015-09-24 John David Anglin <danglin@gcc.gnu.org>
15330
15331 * config/pa/pa-linux.h (HAVE_sync_compare_and_swapdi): Define.
15332 * config/pa/pa-protos.h (pa_maybe_emit_compare_and_swap_exchange_loop):
15333 Declare.
15334 * config/pa/pa.c (pa_init_libfuncs): Init sync libfuncs up to 8 bytes.
15335 (pa_expand_compare_and_swap_loop): New.
15336 (pa_maybe_emit_compare_and_swap_exchange_loop): New.
15337 * config/pa/pa.md (atomic_storeqi, atomic_storehi, atomic_storesi,
15338 atomic_storesf, atomic_loaddf, atomic_storedf): New expanders.
15339 (atomic_loaddf_1, atomic_storedf_1): New insn patterns.
15340 (atomic_loaddi, atomic_loaddi_1, atomic_storedi, atomic_storedi_1):
15341 Revise.
15342
15343 2015-09-24 Michael Collison <michael.collison@linaro.org>
15344
15345 PR other/57195
15346 * read-md.c (read_name): Allow mode iterators inside angle
15347 brackets in rtl expressions.
15348
15349 2015-09-24 Vladimir Makarov <vmakarov@redhat.com>
15350
15351 PR target/61578
15352 * ira-color.c (update_allocno_cost): Add parameter.
15353 (update_costs_from_allocno): Decrease conflict cost. Pass the new
15354 parameter.
15355
15356 2015-09-24 Manuel López-Ibáñez <manu@gcc.gnu.org>
15357
15358 PR driver/67640
15359 * opts-common.c (prune_options): Discard all -fdiagnostics-color
15360 but the last one, which is moved to the front to be processed
15361 first.
15362 * opts.c (enable_warning_as_error): Reject options that do not
15363 control warnings.
15364
15365 2015-09-24 Jiong Wang <jiong.wang@arm.com>
15366
15367 * config/aarch64/aarch64.c (aarch64_print_operand): Add "CONST" support.
15368
15369 2015-09-24 Jiong Wang <jiong.wang@arm.com>
15370
15371 * config/aarch64/aarch64-protos.h (aarch64_symbol_context): Delete.
15372 * config/aarch64/aarch64.c (aarch64_expand_mov_immediate): Likewise.
15373 (aarch64_cannot_force_const_mem): Likewise.
15374 (aarch64_classify_address): Likewise.
15375 (aarch64_classify_symbolic_expression): Likewise.
15376 (aarch64_print_operand): Likewise.
15377 (aarch64_classify_symbol): Likewise.
15378 (aarch64_mov_operand_p): Likewise.
15379 * config/aarch64/predicates.md (aarch64_valid_symref): Likewise.
15380 (aarch64_mov_operand): Likewise.
15381
15382 2015-09-24 Segher Boessenkool <segher@kernel.crashing.org>
15383
15384 * config/rs6000/rs6000.c (debug_stack_info): Invert the test
15385 for info->spe_gp_size.
15386
15387 2015-09-24 Richard Biener <rguenther@suse.de>
15388
15389 PR lto/67699
15390 * lto-cgraph.c (compute_ltrans_boundary): Do not stream
15391 abstract origins.
15392
15393 2015-09-24 Thomas Schwinge <thomas@codesourcery.com>
15394
15395 * tree-object-size.c (plus_stmt_object_size)
15396 (cond_expr_object_size): Change the formal parameters from gimple
15397 to gimple *.
15398 * tree-ssa-sccvn.h (vn_nary_op_insert_stmt): Likewise.
15399 * tree-ssa-sccvn.c (vn_nary_op_insert_stmt): Make it static.
15400 * tree-ssa-sccvn.h (vn_nary_op_insert_stmt): Don't declare.
15401
15402 2015-09-24 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
15403
15404 * configure.ac (gcc_cv_ld_pie): Check for gld >= 2.26 on Solaris.
15405 Check for ld -type pie on Solaris 11.x and 12.
15406 * configure: Regenerate.
15407 * config.in: Regenerate.
15408
15409 * gcc.c (LD_PIE_SPEC): Allow redefinition.
15410
15411 * config/sol2.h (STARTFILE_CRTBEGIN_SPEC): Define.
15412 (STARTFILE_SPEC): Use it.
15413 (ENDFILE_CRTEND_SPEC): Define.
15414 (ENDFILE_SPEC): Use it and ENDFILE_ARCH_SPEC.
15415 (SUBTARGET_EXTRA_SPECS): Add STARTFILE_CRTBEGIN_SPEC,
15416 ENDFILE_ARCH_SPEC, ENDFILE_CRTEND_SPEC.
15417 [HAVE_LD_PIE && HAVE_SOLARIS_CRTS] (LD_PIE_SPEC): Define.
15418 (!(HAVE_LD_PIE && HAVE_SOLARIS_CRTS)] (LINK_PIE_SPEC): Define.
15419 * config/i386/sol2.h (ENDFILE_SPEC): Remove.
15420 (ENDFILE_ARCH_SPEC): Define.
15421 * config/sparc/sol2.h (ENDFILE_ARCH_SPEC): Define.
15422
15423 2015-09-24 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
15424
15425 * configure.ac (gcc_cv_solaris_crts): New test.
15426 * configure. Regenerate.
15427 * config.in: Regenerate.
15428 * config/sol2.h (STARTFILE_SPEC): Simplify, provide
15429 HAVE_SOLARIS_CRTS variant.
15430
15431 2015-09-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
15432
15433 * tree-inline.h (count_insns_seq): Delete prototype.
15434 (estimate_num_insns_seq): Define prototype.
15435 * tree-inline.c (count_insns_seq): Delete.
15436 (estimate_num_insns_seq): Remove static qualifier.
15437 * tree-eh.c (decide_copy_try_finally): Replace use of count_insns_seq
15438 with estimate_num_insns_seq.
15439
15440 2015-09-24 Richard Biener <rguenther@suse.de>
15441
15442 * tree-ssa-sccvn.h (vn_reference_op_struct): Add clique and base
15443 members.
15444 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Record clique
15445 and base for MEM_REF and TARGET_MEM_REF. Handle BIT_FIELD_REF
15446 offset.
15447 (ao_ref_init_from_vn_reference): Record clique and base in the
15448 built base.
15449 * tree-ssa-pre.c (create_component_ref_by_pieces_1): Likewise
15450
15451 2015-09-24 Richard Biener <rguenther@suse.de>
15452
15453 PR tree-optimization/48885
15454 * tree-ssa-structalias.c (visit_loadstore): Handle default defs
15455 as not including any restrict tags from other pointers.
15456
15457 2015-09-23 Thomas Schwinge <thomas@codesourcery.com>
15458
15459 * gcc.c (handle_foffload_option): Don't lose the trailing NUL
15460 character when appending to offload_targets.
15461
15462 * configure.ac (offload_targets, OFFLOAD_TARGETS): Separate
15463 offload targets by commas, not colons.
15464 * config.in: Regenerate.
15465 * configure: Likewise.
15466 * gcc.c (driver::maybe_putenv_COLLECT_LTO_WRAPPER): Due to that,
15467 instead of setting up the default offload targets here...
15468 (process_command): ..., do it here.
15469 libgomp/
15470 * plugin/configfrag.ac (OFFLOAD_TARGETS): Clarify that offload
15471 targets are separated by commas.
15472 * config.h.in: Regenerate.
15473
15474 2015-09-23 Thomas Schwinge <thomas@codesourcery.com>
15475 Nathan Sidwell <nathan@codesourcery.com>
15476
15477 * omp-low.h (omp_reduction_init_op): Declare.
15478 * omp-low.c (omp_reduction_init_op): New, broken out of ...
15479 (omp_reduction_init): ... here. Call it.
15480 * tree-parloops.c (initialize_reductions): Use
15481 omp_reduction_init_op.
15482
15483 2015-09-23 Richard Biener <rguenther@suse.de>
15484
15485 PR middle-end/67662
15486 * fold-const.c (fold_binary_loc): Do not reassociate two vars with
15487 undefined overflow unless they will cancel out.
15488
15489 2015-09-23 Kirill Yukhin <kirill.yukhin@intel.com>
15490
15491 * config/i386/i386.md (define_insn "*<mshift><mode>3"): Fix
15492 insn emit.
15493
15494 2015-09-23 Manuel López-Ibáñez <manu@gcc.gnu.org>
15495
15496 PR c/49655
15497 * opts.h (write_langs): Declare.
15498 * opts-global.c (write_langs): Make it extern.
15499
15500 2015-09-23 Oleg Endo <olegendo@gcc.gnu.org>
15501
15502 PR target/67391
15503 * config/sh/sh.md (addsi3, *addsi3_compact): Don't check for
15504 overlapping regs when matching the pattern.
15505
15506 2015-09-23 James Greenhalgh <james.greenhalgh@arm.com>
15507
15508 * config/aarch64/aarch64-simd.md
15509 (aarch64_float_truncate_hi_v4sf): Rewrite as an expand.
15510 (aarch64_float_truncate_hi_v4sf_le): New.
15511 (aarch64_float_truncate_hi_v4sf_be): Likewise.
15512
15513 2015-09-23 Richard Biener <rguenther@suse.de>
15514
15515 * tree-ssa-structalias.c (intra_create_variable_infos): Build
15516 representatives for all restrict qualified pointer destinations.
15517
15518 2015-09-23 Kirill Yukhin <kirill.yukhin@intel.com>
15519
15520 * config/i386/i386.md (define_code_attr mshift): New.
15521 (define_mode_iterator SWI1248_AVX512BW): Rename ...
15522 (SWI1248_AVX512BW): ... to this. Make QI enabled for TARGET_AVX512DQ
15523 only.
15524 (define_insn "*k<logic><mode>"): Use new iterator name.
15525 (define_insn "*<mshift><mode>3"): New.
15526
15527 2015-09-23 Mikhail Maltsev <maltsevm@gmail.com>
15528
15529 PR middle-end/67649
15530 * memory-block.h (memory_block_pool::allocate): Use valgrind API to
15531 mark the block as accessible.
15532
15533 2015-09-22 Segher Boessenkool <segher@kernel.crashing.org>
15534
15535 * function.c (thread_prologue_and_epilogue_insns): Delete
15536 orig_entry_edge argument to try_shrink_wrapping.
15537 * shrink-wrap.c (can_get_prologue): New function.
15538 (can_dup_for_shrink_wrapping): Also handle EDGE_CROSSING.
15539 (try_shrink_wrapping): Delete orig_entry_edge argument. Use
15540 can_get_prologue where needed. Remove code that finds a single
15541 edge for the prologue. Remove code that tests if any reg clobbered
15542 by the prologue is live on the prologue edge. Remove code that finds
15543 the new prologue edge after duplicating blocks. Make a new prologue
15544 block and edge.
15545 * shrink-wrap.h (try_shrink_wrapping): Delete orig_entry_edge argument.
15546
15547 2015-09-22 Jeff Law <law@redhat.com>
15548
15549 * config/pa/pa.h (MIN_LEGIT_64BIT_CONST_INT): Avoid undefined
15550 behavior.
15551
15552 2015-09-22 Nathan Sidwell <nathan@codesourcery.com>
15553
15554 * doc/invoke.texi (-Wmultiple-inheritance, -Wvirtual-inheritance,
15555 -Wtemplates, -Wnamespaces): Document.
15556
15557 2015-09-22 Tom de Vries <tom@codesourcery.com>
15558
15559 PR tree-optimization/67671
15560 * tree-ssa-structalias.c (create_variable_info_for_1): Handle restrict
15561 pointer references as restrict.
15562
15563 2015-09-22 Chung-Lin Tang <cltang@codesourcery.com>
15564
15565 * config/nios2/nios2.c (nios2_legitimize_address): When handling
15566 'reg + reloc' cases, allow first operand to be non-REG, and use
15567 force_reg() to enforce address pattern.
15568
15569 2015-09-22 Alexander Fomin <alexander.fomin@intel.com>
15570
15571 PR target/67480
15572 * config/i386/sse.md (define_mode_iterator VI48_AVX_AVX512F): New.
15573 (define_mode_iterator VI12_AVX_AVX512F): New.
15574 (define_insn "<mask_codefor><code><mode>3<mask_name>"): Change
15575 all iterators to VI48_AVX_AVX512F. Extract remaining modes ...
15576 (define_insn "*<code><mode>3"): ... Into new pattern using
15577 VI12_AVX_AVX512F iterators without masking.
15578
15579 2015-09-22 Kirill Yukhin <kirill.yukhin@intel.com>
15580
15581 * config.gcc: Support "skylake-avx512".
15582 * config/i386/i386-c.c (ix86_target_macros_internal): Handle
15583 PROCESSOR_SKYLAKE_AVX512.
15584 * config/i386/i386.c (m_SKYLAKE_AVX512): Define.
15585 (processor_target_table): Add "skylake-avx512".
15586 (PTA_SKYLAKE_AVX512): Define.
15587 (ix86_option_override_internal): Add "skylake_avx512".
15588 (fold_builtin_cpu): Handle "skylake_avx512", add F_AVX512VL
15589 F_AVX512BW, F_AVX512DQ, F_AVX512ER, F_AVX512PF, F_AVX512CD.
15590 * config/i386/i386.h (TARGET_SKYLAKE_AVX512): Define.
15591 (processor_type): Add PROCESSOR_SKYLAKE_AVX512.
15592 * doc/invoke.texi (skylake-avx512): New.
15593
15594 2015-09-22 Kirill Yukhin <kirill.yukhin@intel.com>
15595
15596 * config/i386/i386.md (define_insn "kunpckhi"): Fix
15597 operand in pattern.
15598 (define_insn "kunpcksi"): Ditto.
15599 (define_insn "kunpckdi"): Ditto.
15600
15601 2015-09-22 Kirill Yukhin <kirill.yukhin@intel.com>
15602
15603 * config/i386/i386.md (define_split not/xor SWI1248x): Use
15604 iterator instead of fixed modes.
15605
15606 2015-09-22 Matthew Wahab <matthew.wahab@arm.com>
15607
15608 * config/aarch64/aarch64-protos.h (aarch64_gen_atomic_ldop):
15609 Adjust declaration.
15610 * config/aarch64/aarch64.c (aarch64_emit_bic): New.
15611 (aarch64_gen_atomic_ldop): Adjust comment. Add parameter
15612 out_result. Update to support update-fetch operations.
15613 * config/aarch64/atomics.md (aarch64_atomic_exchange<mode>_lse):
15614 Adjust for change to aarch64_gen_atomic_ldop.
15615 (aarch64_atomic_<atomic_optab><mode>_lse): Likewise.
15616 (aarch64_atomic_fetch_<atomic_optab><mode>_lse): Likewise.
15617 (atomic_<atomic_optab>_fetch<mode>): Change to an expander.
15618 (aarch64_atomic_<atomic_optab>_fetch<mode>): New.
15619 (aarch64_atomic_<atomic_optab>_fetch<mode>_lse): New.
15620
15621 2015-09-22 Matthew Wahab <matthew.wahab@arm.com>
15622
15623 * config/aarch64/aarch64-protos.h
15624 (aarch64_atomic_ldop_supported_p): Declare.
15625 * config/aarch64/aarch64.c (aarch64_atomic_ldop_supported_p): New.
15626 (enum aarch64_atomic_load_op_code): New.
15627 (aarch64_emit_atomic_load_op): New.
15628 (aarch64_gen_atomic_ldop): Update to support load-operate
15629 patterns.
15630 * config/aarch64/atomics.md (atomic_<atomic_optab><mode>): Change
15631 to an expander.
15632 (aarch64_atomic_<atomic_optab><mode>): New.
15633 (aarch64_atomic_<atomic_optab><mode>_lse): New.
15634 (atomic_fetch_<atomic_optab><mode>): Change to an expander.
15635 (aarch64_atomic_fetch_<atomic_optab><mode>): New.
15636 (aarch64_atomic_fetch_<atomic_optab><mode>_lse): New.
15637
15638 2015-09-22 Matthew Wahab <matthew.wahab@arm.com>
15639
15640 * config/aarch64/aarch64/atomics.md (UNSPECV_ATOMIC_LDOP): New.
15641 (UNSPECV_ATOMIC_LDOP_OR): New.
15642 (UNSPECV_ATOMIC_LDOP_BIC): New.
15643 (UNSPECV_ATOMIC_LDOP_XOR): New.
15644 (UNSPECV_ATOMIC_LDOP_PLUS): New.
15645 (ATOMIC_LDOP): New.
15646 (atomic_ldop): New.
15647 (aarch64_atomic_load<atomic_ldop><mode>): New.
15648
15649 2015-09-22 Matthew Wahab <matthew.wahab@arm.com>
15650
15651 * config/aarch64/aarch64.md
15652 (<LOGICAL:optab>_one_cmpl_<SHIFT:optab><mode>3): Make a named
15653 pattern.
15654
15655 2015-09-22 Matthew Wahab <matthew.wahab@arm.com>
15656
15657 * config/aarch64/aarch64-protos.h (aarch64_gen_atomic_ldop):
15658 Declare.
15659 * config/aarch64/aarch64.c (aarch64_emit_atomic_swap): New.
15660 (aarch64_gen_atomic_ldop): New.
15661 (aarch64_split_atomic_op): Fix whitespace and add a comment.
15662 * config/aarch64/atomics.md (UNSPECV_ATOMIC_SWP): New.
15663 (aarch64_compare_and_swap<mode>_lse): Fix some whitespace.
15664 (atomic_exchange<mode>): Replace with an expander.
15665 (aarch64_atomic_exchange<mode>): New.
15666 (aarch64_atomic_exchange<mode>_lse): New.
15667 (aarch64_atomic_<atomic_optab><mode>): Fix some whitespace.
15668 (aarch64_atomic_swp<mode>): New.
15669
15670 2015-09-22 Manuel López-Ibáñez <manu@gcc.gnu.org>
15671
15672 * tree-inline.c (expand_call_inline): Use inform for extra note.
15673 Do not give a note with UNKNOWN_LOCATION.
15674 Replace input_location with gimple_location (stmt).
15675 Use true/false instead of TRUE/FALSE.
15676
15677 2015-09-22 Tom de Vries <tom@codesourcery.com>
15678
15679 PR tree-optimization/67666
15680 * tree-ssa-structalias.c (create_variable_info_for_1): Handle struct
15681 with single field non-conservative.
15682
15683 2015-09-21 David S. Miller <davem@davemloft.net>
15684
15685 PR/67622
15686 Revert:
15687 2015-09-11 David S. Miller <davem@davemloft.net>
15688
15689 * config/sparc/constraints.md: Make "U" constraint a real register
15690 constraint.
15691 * config/sparc/sparc.c (TARGET_LRA_P): Define.
15692 (D_MODES, DF_MODES): Add missing cast.
15693 (TF_MODES, TF_MODES_NO_S): Include T_MODE.
15694 (OF_MODES, OF_MODES_NO_S): Include O_MODE.
15695 (sparc_register_move_cost): Decrease Niagara/UltrsSPARC memory
15696 cost to 8.
15697 * config/sparc/sparc.h (PROMOTE_MODE): Define.
15698 * config/sparc/sparc.md (*movsi_lo_sum, *movsi_high): Do not
15699 provide these insn when flag_pic.
15700
15701 2015-09-17 David S. Miller <davem@davemloft.net>
15702
15703 * config/sparc/sparc-protos.h (sparc_secondary_memory_needed):
15704 Declare.
15705 * config/sparc/sparc.c (sparc_secondary_memory_needed): New
15706 function.
15707 * config/sparc/sparc.h (SECONDARY_MEMORY_NEEDED): Use it.
15708 (HARD_REGNO_CALLER_SAVE_MODE): Define.
15709 * config/sparc/sparc.md (sethi_di_medlow, losum_di_medlow, seth44)
15710 (setm44, setl44, sethh, setlm, sethm, setlo, embmedany_sethi)
15711 (embmedany_losum, embmedany_brsum, embmedany_textuhi)
15712 (embmedany_texthi, embmedany_textulo, embmedany_textlo): Do not
15713 provide when flag_pic.
15714
15715 2015-09-21 Jeff Law <law@redhat.com>
15716
15717 * config/h8300/h8300.md (andsi3_ashift_n_lower): Avoid undefined
15718 behavior.
15719
15720 2015-09-21 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
15721
15722 * config/spu/spu.c (spu_expand_insv): Avoid undefined behavior.
15723
15724 2015-09-21 Richard Biener <rguenther@suse.de>
15725
15726 * passes.c (rest_of_decl_compilation): Do not call
15727 dwarf2out_early_global_decl for aliases.
15728
15729 2015-09-21 Richard Biener <rguenther@suse.de>
15730
15731 PR debug/67664
15732 * dwarf2out.c (add_location_or_const_value_attribute): Remove
15733 attribute parameter. Early exit if either DW_AT_const_value
15734 or DW_AT_location are present already.
15735 (gen_variable_die): Adjust caller.
15736 (dwarf2out_late_global_decl): Likewise.
15737
15738 2015-09-21 Oleg Endo <olegendo@gcc.gnu.org>
15739
15740 PR target/67657
15741 * config/sh/sh.c (sh_remove_overlapping_post_inc,
15742 sh_peephole_emit_move_insn): Add new functions.
15743 * config/sh/sh-protos.h (sh_remove_overlapping_post_inc,
15744 sh_peephole_emit_move_insn): Declere them.
15745 * config/sh/sh.md: Use them in various peephole2 patterns.
15746
15747 2015-09-21 Richard Biener <rguenther@suse.de>
15748
15749 PR middle-end/67651
15750 * rtlanal.c (nonzero_address_p): SYMBOL_REFs may have zero
15751 address with -fno-delete-null-pointer-checks.
15752
15753 2015-09-21 Alan Lawrence <alan.lawrence@arm.com>
15754
15755 * config/rs6000/altivec.md (reduc_splus_<mode>): Rename to...
15756 (reduc_plus_scal_<mode>): ...this, add rs6000_expand_vector_extract.
15757 (reduc_uplus_v16qi): Remove.
15758
15759 * config/rs6000/vector.md (VEC_reduc_name): Change "splus" to "plus".
15760 (reduc_<VEC_reduc_name>_v2df): Remove.
15761 (reduc_<VEC_reduc_name>_v4sf): Remove.
15762 (reduc_<VEC_reduc:VEC_reduc_name>_scal_<VEC_F:name>): New.
15763
15764 * config/rs6000/vsx.md (vsx_reduc_<VEC_reduc_name>_v2df): Declare
15765 gen_ function by removing * prefix.
15766 (vsx_reduc_<VEC_reduc_name>_v4sf): Likewise.
15767
15768 2015-09-21 Manuel López-Ibáñez <manu@gcc.gnu.org>
15769
15770 PR middle-end/60832
15771 * tree-ssa-loop-niter.c (do_warn_aggressive_loop_optimizations):
15772 Print i_bound without converting it to a tree.
15773
15774 2015-09-21 Bilyan Borisov <bilyan.borisov@arm.com>
15775
15776 * config/arm/arm.c (thumb_output_move_mem_multiple): Replaced
15777 operands[4] operands[5] swap with std::swap, removed tmp variable.
15778 (arm_evpc_neon_vzip): Replaced in0/in1 and
15779 out0/out1 swaps with std::swap, removed x variable.
15780 (arm_evpc_neon_vtrn): Replaced in0/int1 and
15781 out0/out1 swaos with std::swap, removed x variable.
15782 (arm_expand_vec_perm_const_1): Replaced
15783 d->op0/d->op1 swap with std::swap, removed x variable.
15784 (arm_evpc_neon_vuzp): Replaced in0/in1 and
15785 out0/out1 swaps with std::swap, removed x variable.
15786
15787 2015-09-21 Jonathan Yong <10walls@gmail.com>
15788
15789 * config/i386/cygwin.h (STARTFILE_SPEC): Explicitly search
15790 sysroot/usr/lib/32api for additional win32 libraries,
15791 fixes failing Cygwin bootstrapping.
15792
15793 2015-09-21 Oleg Endo <olegendo@gcc.gnu.org>
15794
15795 * doc/invoke.texi (SH Options): Undocument SH5/SH64 related options.
15796
15797 2015-09-21 Oleg Endo <olegendo@gcc.gnu.org>
15798
15799 PR target/67126
15800 * config/sh/sh.md (*reg_lsb_t): Emit bld insn on SH2A.
15801 (*mov_t_msb_neg): Rewrite negc pattern.
15802
15803 2015-09-20 Wilco Dijkstra <wdijkstr@arm.com>
15804
15805 * config/aarch64/aarch64.c (aarch64_internal_mov_immediate): Cleanup
15806 immediate generation code.
15807
15808 2015-09-20 Wilco Dijkstra <wdijkstr@arm.com>
15809
15810 * config/aarch64/aarch64.c (aarch64_internal_mov_immediate): Remove
15811 redundant immediate generation code.
15812
15813 2015-09-20 Wilco Dijkstra <wdijkstr@arm.com>
15814
15815 * config/aarch64/aarch64.c (aarch64_bitmasks): Remove.
15816 (AARCH64_NUM_BITMASKS): Remove.
15817 (aarch64_bitmasks_cmp): Remove.
15818 (aarch64_build_bitmask_table): Remove.
15819
15820 2015-09-20 Wilco Dijkstra <wdijkstr@arm.com>
15821
15822 * config/aarch64/aarch64.c (aarch64_internal_mov_immediate): Replace
15823 slow immediate matching loops with a faster algorithm.
15824
15825 2015-09-20 Wilco Dijkstra <wdijkstr@arm.com>
15826
15827 * config/aarch64/aarch64.c (aarch64_bitmask_imm): Reimplement using
15828 faster algorithm.
15829
15830 2015-09-20 Jeff Law <law@redhat.com>
15831
15832 PR tree-optimization/47679
15833 * tree-ssa-dom.c (record_temporary_equivalences): No longer static.
15834 * tree-ssa-dom.h (record_temporary_equivalences): Add prototype.
15835 * tree-ssa-threadedge.c: Include tree-ssa-dom.h.
15836 (thread_through_normal_block): Use record_temporary_equivalences.
15837
15838 2015-09-19 Trevor Saunders <tbsaunde@tbsaunde.org>
15839
15840 * coretypes.h (gimple): Change typedef to be a forward declaration.
15841 * gimple.h (gimple_statement_base): rename to gimple.
15842 * (all functions and types using gimple): Adjust.
15843 * *.[ch]: Likewise.
15844
15845 2015-09-19 Andrew Dixie <andrewd@gentrack.com>
15846 David Edelsohn <dje.gcc@gmail.com>
15847
15848 * config/rs6000/xcoff.h (EH_FRAME_IN_DATA_SECTION): Delete.
15849 (ASM_PREFERRED_EH_DATA_FORMAT): Define.
15850 (EH_FRAME_THROUGH_COLLECT2): Define.
15851 (EH_TABLES_CAN_BE_READ_ONLY): Define.
15852 (ASM_OUTPUT_DWARF_PCREL): Define.
15853 (ASM_OUTPUT_DWARF_DATAREL): Define.
15854
15855 2015-09-19 John David Anglin <danglin@gcc.gnu.org>
15856
15857 * config/pa/pa.c (pa_function_ok_for_sibcall): Remove special treatment
15858 of TARGET_ELF32.
15859
15860 2015-09-18 Jeff Law <law@redhat.com>
15861
15862 PR tree-optimization/47679
15863 * tree-ssa-dom.c (avail_exprs_stack): No longer file scoped. Move
15864 it here ...
15865 (dom_opt_dom_walker): New private member holding the avail_exprs_stack
15866 object. Update constructor.
15867 (pass_dominator::execute): Corresponding chagnes to declaration
15868 and initialization of avail_exprs_stack. Update constructor call
15869 for dom_opt_dom_walker object.
15870 (lookup_avail_expr, record_cond): Accept additional argument. Pass
15871 it down to children as needed.
15872 (record_equivalences_from_incoming_edge): Likewise.
15873 (eliminate_redundant_computations): Likewise.
15874 (record_equivalences_from_stmt): Likewise.
15875 (simplify_stmt_for_jump_threading): Likewise.
15876 (record_temporary_equivalences): Likewise.
15877 (optimize_stmt): Likewise.
15878 (dom_opt_dom_walker::thread_across_edge): Update access to
15879 avail_exprs_stack object and pass it to children as needed.
15880 (dom_opt_dom_walker::before_dom_children): Similarly.
15881 (dom_opt_dom_walker::after_dom_children): Similarly.
15882 * tree-ssa-threadedge.c (pfn_simplify): New typedef.
15883 (record_temporary_equivalences_from_stmts_at_dest): Use new typedef.
15884 Add avail_expr_stack argument. Pass it to children as needed.
15885 (dummy_simplify): Likewise.
15886 (simplify_control_stmt_condition): Likewise.
15887 (thread_around_empty_blocks): Likewise.
15888 (thread_through_normal_block): Likewise.
15889 (thread_across_edge): Likewise.
15890 * tree-ssa-threadedge.h (thread_across_edge): Update prototype.
15891 * tree-vrp.c (simplify_stmt_for_jump_threading): Update.
15892
15893 PR tree-optimization/47679
15894 * tree-ssa-dom.c (const_and_copies): No longer file scoped. Move
15895 it here ...
15896 (dom_opt_dom_walker): New private member holding the const_and_copies
15897 object. Update constructor.
15898 (pass_dominator::execute): Corresponding changes to declaration
15899 and initialization of const_and_copies. Update constructor call
15900 for the dom_opt_dom_walker object.
15901 (record_temporary_equivalences): Accept const_and_copies argument
15902 pass it down to children as needed.
15903 (record_equality): Likewise.
15904 (record_equivalences_from_incoming_edge): Likewise.
15905 (cprop_into_successor_phis, optimize_stmt): Likewise.
15906 (eliminate_redundant_computations): Likewise.
15907 (dom_opt_dom_walker::thread_across_edge): Update access to
15908 const_and_copies object and pass it to children as needed.
15909 (dom_opt_dom_walker::before_dom_children): Similarly.
15910 (dom_opt_dom_walker::after_dom_children): Similarly.
15911
15912 PR tree-optimization/47679
15913 * tree-ssa-dom.c (avail_exprs): No longer file scoped. Bury
15914 it into the avail_exprs_stack class.
15915 (pass_dominator::execute): Corresponding changes to declaration
15916 and initialization of avail_exprs. Pass avail_exprs to
15917 dump_dominator_optimization_stats.
15918 (record_cond): Extract avail_exprs from avail_exprs_stack.
15919 (lookup_avail_expr): Similarly.
15920 (htab_staticstics): Remove unnecessary prototype. Move to earlier
15921 position in file.
15922 (dump_dominator_optimization_stats): Make static and prototype.
15923 Add argument for the hash table to dump.
15924 (debug_dominator_optimization_stats): Remove.
15925 * tree-ssa-dom.h (dump_dominator_optimization_stats): Remove
15926 prototype.
15927 (debug_dominator_optimization_stats): Similarly.
15928 * tree-ssa-scopedtables.h (class avail_exprs_stack): Add missing
15929 "void" in prototype for pop_to_marker method. Add accessor method
15930 for the underlying avail_exprs table.
15931
15932 * tree-ssa-threadedge.c: Remove trailing whitespace.
15933
15934 2014-09-18 John David Anglin <danglin@gcc.gnu.org>
15935
15936 * config/pa/pa-protos.h (pa_cint_ok_for_move): Change argument type to
15937 unsigned.
15938 (pa_ldil_cint_p): Likewise.
15939 * config/pa/pa.c (pa_cint_ok_for_move): likewise.
15940 (pa_ldil_cint_p): Likewise. Change signed casts to unsigned.
15941 Update callers.
15942 * config/pa/pa.md: Likewise.
15943
15944 2015-09-18 David Malcolm <dmalcolm@redhat.com>
15945
15946 * Makefile.in (OBJS-libcommon): Add diagnostic-show-locus.o.
15947 * diagnostic.c (adjust_line): Move to diagnostic-show-locus.c.
15948 (diagnostic_show_locus): Likewise.
15949 (diagnostic_print_caret_line): Likewise.
15950 * diagnostic-show-locus.c: New file.
15951
15952 2015-09-18 David Edelsohn <dje.gcc@gmail.com>
15953
15954 * dwarf2out.c (switch_to_eh_frame_section): Add ATTRIBUTE_UNUSED to
15955 "back" parameter. Declare label in #if block.
15956
15957 2015-09-18 Uros Bizjak <ubizjak@gmail.com>
15958
15959 PR middle-end/67619
15960 * except.c (expand_builtin_eh_return): Use copy_addr_to_reg to copy
15961 the address to a register.
15962
15963 2015-09-18 Jeff Law <law@redhat.com>
15964
15965 PR tree-optimization/47679
15966 * Makefile.in (OBJS): Add tree-ssa-phionlycprop.o
15967 * tree-ssa-dom.c: Remove unnecessary header includes.
15968 (remove_stmt_or_phi): Moved from here into tree-ssa-phionlycprop.c
15969 (get_rhs_or_phi_arg, get_lhs_or_phi_result): Likewise.
15970 (propagate_rhs_into_lhs, eliminate_const_or_copy): Likewise.
15971 (eliminate_degenerate_phis_1, pass_phi_only_cprop): Likewise.
15972 (pass_phi_only_cprop::execute): Likewise.
15973 (make_pass_phi_only_cprop): Likewise.
15974 * tree-ssa-phionlycprop.c: New file with moved code. Eliminate
15975 uses of file scoped statics by passing the required objects
15976 as parameters wherever needed.
15977
15978 2015-09-18 Andrew Dixie <andrewd@gentrack.com>
15979 David Edelsohn <dje.gcc@gmail.com>
15980
15981 * defaults.h (EH_FRAME_SECTION_NAME): Depend on
15982 EH_FRAME_THROUGH_COLLECT2.
15983 * dwarf2asm.c (dw2_asm_output_encoded_addr_rtx): Add case for
15984 DW_EH_PE_datarel.
15985 * dwarf2out.c (switch_to_eh_frame_section): Use a read-only section
15986 even if EH_FRAME_SECTION_NAME is undefined. Restrict special
15987 collect2 labels to EH_FRAME_THROUGH_COLLECT2.
15988 * except.c (switch_to_exception_section): Use a read-only section
15989 even if EH_FRAME_SECTION_NAME is undefined.
15990 * system.h (EH_FRAME_IN_DATA_SECTION): Poison.
15991 * collect2.c (write_c_file_stat): Provide dbase on AIX.
15992 (scan_prog_file): Don't export __dso_handle nor
15993 __gcc_unwind_dbase.
15994 * config/rs6000/aix.h (ASM_PREFERRED_EH_DATA_FORMAT): Define.
15995 (EH_TABLES_CAN_BE_READ_ONLY): Define.
15996 (ASM_OUTPUT_DWARF_PCREL): Define.
15997 (ASM_OUTPUT_DWARF_DATAREL): Define.
15998 (EH_FRAME_THROUGH_COLLECT2): Define.
15999 (EH_FRAME_IN_DATA_SECTION): Delete.
16000 * config/rs6000/aix61.h (STARTFILE_SPEC): Add crtdbase.o.
16001 * config/rs6000/rs6000-protos.h (rs6000_asm_output_dwarf_pcrel):
16002 Declare.
16003 (rs6000_asm_output_dwarf_datarel): Declare.
16004 * config/rs6000/rs6000.c (rs6000_aix_asm_output_dwarf_pcrel): New.
16005 (rs6000_aix_asm_output_dwarf_datarel): New.
16006 (rs6000_xcoff_asm_init_sections): Don't set exception_section.
16007 * config/spu/spu-elf.h (EH_FRAME_IN_DATA_SECTION): Delete.
16008 (EH_FRAME_THROUGH_COLLECT2): Define.
16009 * config/i386/i386-interix.h (EH_FRAME_IN_DATA_SECTION): Delete.
16010 (EH_FRAME_THROUGH_COLLECT2): Define.
16011 (EH_TABLES_CAN_BE_READ_ONLY): Define.
16012 * doc/tm.texi.in (EH_FRAME_IN_DATA_SECTION): Delete.
16013 (EH_FRAME_THROUGH_COLLECT2): New.
16014 (ASM_OUTPUT_DWARF_DATAREL): New.
16015 * doc/tm.texi: Regenerate.
16016
16017 2015-09-18 Richard Biener <rguenther@suse.de>
16018
16019 * dwarf2out.c (append_entry_to_tmpl_value_parm_die_table): Assert
16020 we're in early phase.
16021 (schedule_generic_params_dies_gen): Likewise.
16022 (gen_remaining_tmpl_value_param_die_attribute): Do only as much
16023 work as possible, retaining unhandled cases.
16024 (gen_scheduled_generic_parms_dies): Set early-dwarf flag and
16025 clear out generic_type_instances at the end.
16026 (dwarf2out_finish): Move call to gen_scheduled_generic_parms_dies...
16027 (dwarf2out_early_finish): ... here. Do most of
16028 gen_remaining_tmpl_value_param_die_attribute here.
16029
16030 2015-09-18 Alan Lawrence <alan.lawrence@arm.com>
16031
16032 PR tree-optimization/67283
16033 * tree-sra.c (type_consists_of_records_p): Rename to...
16034 (scalarizable_type_p): ...this, add case for ARRAY_TYPE.
16035 (completely_scalarize_record): Rename to...
16036 (completely_scalarize): ...this, add ARRAY_TYPE case, move some code to:
16037 (scalarize_elem): New.
16038 (analyze_all_variable_accesses): Follow renamings.
16039
16040 2015-09-18 Richard Biener <rguenther@suse.de>
16041
16042 * dwarf2out.c (add_location_or_const_value_attribute): Do nothing
16043 in early-dwarf.
16044
16045 2015-09-18 Richard Biener <rguenther@suse.de>
16046
16047 PR tree-optimization/66142
16048 * fold-const.c (operand_equal_p): When OEP_ADDRESS_OF
16049 treat MEM[&x] and x the same.
16050 * tree-ssa-sccvn.h (vn_reference_fold_indirect): Remove.
16051 * tree-ssa-sccvn.c (vn_reference_fold_indirect): Return true
16052 when we simplified sth.
16053 (vn_reference_maybe_forwprop_address): Likewise.
16054 (valueize_refs_1): When we simplified through
16055 vn_reference_fold_indirect or vn_reference_maybe_forwprop_address
16056 set valueized_anything to true.
16057 (vn_reference_lookup_3): Use stmt_kills_ref_p to see whether
16058 one ref kills the other instead of just a offset-based test.
16059 * tree-ssa-alias.c (stmt_kills_ref_p): Use OEP_ADDRESS_OF
16060 for the operand_equal_p test to compare bases and also compare
16061 sizes.
16062
16063 2015-09-17 Christian Bruel <christian.bruel@st.com>
16064
16065 * config/arm/arm.md (*call_value_symbol): Fix operand for interworking.
16066
16067 2015-09-17 Richard Henderson <rth@redhat.com>
16068
16069 PR libstdc++/65913
16070 * builtins.c (fold_builtin_atomic_always_lock_free): Handle fake
16071 pointers that encode the alignment of the object.
16072
16073 2015-09-17 Eric Botcazou <ebotcazou@adacore.com>
16074
16075 PR rtl-optimization/66790
16076 * df-problems.c (LIVE): Amend documentation.
16077
16078 2015-09-17 Richard Sandiford <richard.sandiford@arm.com>
16079
16080 * Makefile.in (OBJS): Add optabs-libfuncs.o, optabs-query.o
16081 and optabs-tree.o.
16082 (GTFILES): Replace optabs.c with optabs-libfunc.c.
16083 * genopinit.c (main): Add an include guard to insn-opinit.h.
16084 Protect the rtx_code parts with NUM_RTX_CODE.
16085 * optabs.h: Split parts out to...
16086 * optabs-libfuncs.h, optabs-query.h, optabs-tree.h: ...these new files.
16087 * optabs.c: Split parts out to...
16088 * optabs-libfuncs.c, optabs-query.c, optabs-tree.c: ...these new files.
16089 * cilk-common.c: Include optabs-query.h rather than optabs.h.
16090 * fold-const.c: Likewise.
16091 * target-globals.c: Likewise.
16092 * tree-if-conv.c: Likewise.
16093 * tree-ssa-forwprop.c: Likewise.
16094 * tree-ssa-loop-prefetch.c: Likewise.
16095 * tree-ssa-math-opts.c: Include optabs-tree.h rather than optabs.h.
16096 Remove unncessary include files.
16097 * tree-ssa-phiopt.c: Likewise.
16098 * tree-ssa-reassoc.c: Likewise.
16099 * tree-switch-conversion.c: Likewise.
16100 * tree-vect-data-refs.c: Likewise.
16101 * tree-vect-generic.c: Likewise.
16102 * tree-vect-loop.c: Likewise.
16103 * tree-vect-patterns.c: Likewise.
16104 * tree-vect-slp.c: Likewise.
16105 * tree-vect-stmts.c: Likewise.
16106 * tree-vrp.c: Likewise.
16107 * toplev.c: Include optabs-query.h and optabs-libfuncs.h
16108 rather than optabs.h.
16109 * expr.c: Include optabs-tree.h.
16110 * function.c: Likewise.
16111
16112 2015-09-17 Eric Botcazou <ebotcazou@adacore.com>
16113
16114 PR middle-end/65958
16115 * config/arm/linux-elf.h (STACK_CHECK_STATIC_BUILTIN): Define.
16116 * config/arm/arm-protos.h (output_probe_stack_range): Declare.
16117 * config/arm/arm.c: Include common/common-target.h.
16118 (use_return_insn): Return 0 if the static chain register was saved
16119 above a non-APCS frame.
16120 (arm_compute_static_chain_stack_bytes): Adjust for stack checking.
16121 (struct scratch_reg): New.
16122 (get_scratch_register_on_entry): New function.
16123 (release_scratch_register_on_entry): Likewise.
16124 (arm_emit_probe_stack_range): Likewise.
16125 (output_probe_stack_range): Likewise.
16126 (arm_expand_prologue): Factor out code dealing with the IP register
16127 for nested function and adjust it for stack checking.
16128 Invoke arm_emit_probe_stack_range if static builtin stack checking
16129 is enabled.
16130 (thumb1_expand_prologue): Sorry out if static builtin stack checking
16131 is enabled.
16132 (arm_expand_epilogue): Add the saved static chain register, if any, to
16133 the amount of pre-pushed registers to pop.
16134 (arm_frame_pointer_required): Return true if static stack checking is
16135 enabled and we want to catch the exception with the EABI unwinder.
16136 * config/arm/unspecs.md (UNSPEC_PROBE_STACK): New constant.
16137 (UNSPEC_PROBE_STACK_RANGE): Likewise.
16138 * config/arm/arm.md (probe_stack): New insn.
16139 (probe_stack_range): Likewise.
16140
16141 2015-09-17 Richard Biener <rguenther@suse.de>
16142
16143 * genmatch.c (parser::parse_expr): Improve error message
16144 for mis-placed flags.
16145
16146 2015-09-17 Richard Biener <rguenther@suse.de>
16147
16148 * passes.c (rest_of_decl_compilation): Always call early_global_decl
16149 debug hook when we created a varpool node.
16150 * dwarf2out.c (dwarf2out_late_global_decl): When in LTO call
16151 dwarf2out_early_global_decl, when not just add location or
16152 value attributes to existing DIEs.
16153
16154 2015-09-17 James Greenhalgh <james.greenhalgh@arm.com>
16155
16156 * config/aarch64/aarch64.md (copysigndf3): New.
16157 (copysignsf3): Likewise.
16158
16159 2015-09-17 David S. Miller <davem@davemloft.net>
16160
16161 * config/sparc/sparc-protos.h (sparc_secondary_memory_needed): Declare.
16162 * config/sparc/sparc.c (sparc_secondary_memory_needed): New function.
16163 * config/sparc/sparc.h (SECONDARY_MEMORY_NEEDED): Use it.
16164 (HARD_REGNO_CALLER_SAVE_MODE): Define.
16165 * config/sparc/sparc.md (sethi_di_medlow, losum_di_medlow, seth44)
16166 (setm44, setl44, sethh, setlm, sethm, setlo, embmedany_sethi)
16167 (embmedany_losum, embmedany_brsum, embmedany_textuhi)
16168 (embmedany_texthi, embmedany_textulo, embmedany_textlo): Do not
16169 provide when flag_pic.
16170
16171 2015-09-17 Kaz Kojima <kkojima@gcc.gnu.org>
16172
16173 * config/sh/sh.c (label_ref_list_d_pool): Adjust to
16174 object_allocator change.
16175
16176 2015-09-17 Bin Cheng <bin.cheng@arm.com>
16177
16178 PR tree-optimization/66388
16179 * tree-ssa-loop-ivopts.c (struct iv, iv_cand, ivopts_data): New fields.
16180 (dump_iv): Dump no_overflow information.
16181 (alloc_iv): Initialize new field for struct iv.
16182 (mark_bivs): Count number of no_overflow bivs.
16183 (find_deriving_biv_for_expr, record_biv_for_address_use): New
16184 functions.
16185 (idx_find_step): Call new functions above.
16186 (add_candidate_1, add_candidate): New paramter.
16187 (add_iv_candidate_for_biv): Add sizetype cand for BIV.
16188 (get_computation_aff): Simplify convertion of cand for BIV.
16189 (get_computation_cost_at): Step cand's base if necessary.
16190
16191 2015-09-17 Bin Cheng <bin.cheng@arm.com>
16192
16193 * tree-ssa-loop-niter.c (tree_simplify_using_condition_1): New
16194 parameter.
16195 (tree_simplify_using_condition): Ditto.
16196 (simplify_using_initial_conditions): Ditto.
16197 (loop_exits_before_overflow): Pass new argument to function
16198 simplify_using_initial_conditions. Remove case for type conversions
16199 simplification.
16200 * tree-ssa-loop-niter.h (simplify_using_initial_conditions): New
16201 parameter.
16202 * tree-scalar-evolution.c (simple_iv): Simplify type conversions
16203 in iv base using loop initial conditions.
16204
16205 2015-09-16 Jeff Law <law@redhat.com>
16206
16207 PR tree-optimization/47679
16208 * tree-ssa-dom.c (free_edge_info): Factored out of free_all_edge_infos.
16209 (free_all_edge_infos): Use it.
16210 (allocate_edge_info): Free preexisting edge info data.
16211 (pass_dominator::execute): Set up initial edge info structures.
16212 (dom_opt_dom_walker::thread_across_edge): Pass avail_expr_stack to
16213 thread_across_edge.
16214 * tree-ssa-threadedge.c (thread_across_edge): Accept new argument.
16215 If non-null, then push/pop markers appropriately.
16216 * tree-ssa-threadedge.h (thread_across_edge): Update prototype.
16217 * tree-vrp.c (identify_jump_threads): Pass NULL for new argument to
16218 thread-across_edge.
16219
16220 2015-09-16 James Bowman <james.bowman@ftdichip.com>
16221
16222 * config/ft32/ft32.c: Fix the memory address space predicate.
16223
16224 2015-09-16 Kaz Kojima <kkojima@gcc.gnu.org>
16225
16226 PR target/67573
16227 * config/sh/sh.md (call_pcrel): Add early clobber to scratch operand.
16228 (call_value_pcrel, sibcall_pcrel, sibcall_value_pcrel): Likewise.
16229
16230 2015-09-16 Manuel López-Ibáñez <manu@gcc.gnu.org>
16231
16232 * toplev.h (check_global_declaration): Remove declaration.
16233 * toplev.c (check_global_declaration): Move to ...
16234 * cgraphunit.c: ... here. Make it static and pass a symtab_node *.
16235 (analyze_functions): Update call.
16236
16237 2015-09-16 David S. Miller <davem@davemloft.net>
16238
16239 * lra-constraints.c (simplify_operand_subreg): Do not assume that
16240 lowpart of a SUBREG has offset zero.
16241
16242 2015-09-16 Jeff Law <law@redhat.com>
16243
16244 PR tree-optimization/47679
16245 * tree-ssa-dom.c (enum expr_kind): Moved from here to
16246 tree-ssa-scopedtables.h.
16247 (struct hashable_expr, class expr_hash_elt): Likewise.
16248 (struct expr_elt_hasher, class avail_exprs_stack): Likewise.
16249 Move associated methods into tree-ssa-scopedtables.c.
16250 (avail_expr_hash, initialize_expr_from_cond): Similarly.
16251 (hashable_expr_equal_p, add_expr_commutative): Likewise.
16252 (add_hashable_expr): Likewise.
16253 (record_cond): Delete element directly.
16254 * tree-ssa-scopedtables.h (avail_expr_stack, const_and_copies): Add
16255 private copy ctor and assignment operator methods.
16256 (expr_elt_hasher): Inline trivial methods.
16257 (initialize_expr_from_cond): Prototype.
16258 * tree-ssa-scopedtables.c: Add necessary includes, functions and
16259 methods that were previously in tree-ssa-dom.c. Improve various
16260 comments.
16261
16262 2015-09-16 Paolo Carlini <paolo.carlini@oracle.com>
16263
16264 * doc/invoke.texi ([Wsubobject-linkage]): Extend documentation.
16265
16266 2015-09-16 Segher Boessenkool <segher@kernel.crashing.org>
16267
16268 PR bootstrap/67587
16269 * function.c (rest_of_handle_thread_prologue_and_epilogue): Call
16270 fixup_partitions.
16271
16272 2015-09-16 Richard Biener <rguenther@suse.de>
16273
16274 PR middle-end/67253
16275 * cfgexpand.c (expand_gimple_stmt_1): Do not clobber
16276 location of possibly shared trees.
16277
16278 2015-09-16 Richard Biener <rguenther@suse.de>
16279
16280 PR middle-end/67271
16281 * fold-const.c (native_encode_expr): Bail out on bogus offsets.
16282
16283 2015-09-16 Eric Botcazou <ebotcazou@adacore.com>
16284
16285 * tree-ssa-sccvn.c (ao_ref_init_from_vn_reference): Use offset_int for
16286 offset and size computations instead of HOST_WIDE_INT.
16287
16288 2015-09-16 Richard Biener <rguenther@suse.de>
16289
16290 PR middle-end/67442
16291 * fold-const.c (extract_muldiv_1): Properly extend multiplication
16292 result before builting a tree via wide_int_to_tree.
16293
16294 2015-09-16 Mikhail Maltsev <maltsevm@gmail.com>
16295
16296 * Makefile.in: Add memory-block.cc
16297 (pool_allocator::initialize): Use fixed block size.
16298 (pool_allocator::release): Use memory_block_pool.
16299 (pool_allocator::allocate): Likewise.
16300 * asan.c (asan_mem_ref_pool): Adjust to use common block size in all
16301 object pools.
16302 * cfg.c (initialize_original_copy_tables): Likewise.
16303 * cselib.c (elt_list_pool, elt_loc_list_pool,
16304 cselib_val_pool): Likewise.
16305 * df-problems.c (df_chain_alloc): Likewise.
16306 * df-scan.c (df_scan_alloc): Likewise.
16307 * dse.c (cse_store_info_pool, rtx_store_info_pool,
16308 read_info_type_pool, insn_info_type_pool, bb_info_pool,
16309 group_info_pool, deferred_change_pool): Likewise.
16310 * et-forest.c (et_nodes, et_occurrences): Likewise.
16311 * ipa-cp.c (ipcp_cst_values_pool, ipcp_sources_pool,
16312 ipcp_agg_lattice_pool): Likewise.
16313 * ipa-inline-analysis.c (edge_predicate_pool): Likewise.
16314 * ipa-profile.c (histogram_pool): Likewise.
16315 * ipa-prop.c (ipa_refdesc_pool): Likewise.
16316 * ira-build.c (live_range_pool, allocno_pool, object_pool,
16317 initiate_cost_vectors, pref_pool, copy_pool): Likewise.
16318 * ira-color.c (update_cost_record_pool): Likewise.
16319 * lra-lives.c (lra_live_range_pool): Likewise.
16320 * lra.c (lra_insn_reg_pool, lra_copy_pool): Likewise.
16321 * memory-block.cc: New file.
16322 * memory-block.h: New file.
16323 * regcprop.c (queued_debug_insn_change_pool): Use common block size.
16324 * sched-deps.c (sched_deps_init): Likewise.
16325 * sel-sched-ir.c (sched_lists_pool): Likewise.
16326 * stmt.c (expand_case, expand_sjlj_dispatch_table): Likewise.
16327 * tree-sra.c (access_pool): Likewise.
16328 * tree-ssa-math-opts.c (pass_cse_reciprocals::execute): Likewise.
16329 * tree-ssa-pre.c (pre_expr_pool, bitmap_set_pool): Likewise.
16330 * tree-ssa-reassoc.c (operand_entry_pool): Likewise.
16331 * tree-ssa-sccvn.c (allocate_vn_table): Likewise.
16332 * tree-ssa-strlen.c (strinfo_pool): Likewise.
16333 * tree-ssa-structalias.c (variable_info_pool): Likewise.
16334 * var-tracking.c (attrs_def_pool, var_pool, valvar_pool,
16335 location_chain_pool, shared_hash_pool, loc_exp_dep_pool): Likewise.
16336
16337 2015-09-15 Max Filippov <jcmvbkbc@gmail.com>
16338
16339 * config/xtensa/xtensa.h (DWARF_ALT_FRAME_RETURN_COLUMN): New
16340 definition.
16341 (DWARF_FRAME_REGISTERS): Reserve space for one extra register in
16342 call0 ABI.
16343
16344 2015-09-15 Max Filippov <jcmvbkbc@gmail.com>
16345
16346 * config/xtensa/xtensa.c (xtensa_call_tls_desc): Use a10 or a2
16347 to pass TLS call argument, according to current ABI.
16348 * config/xtensa/xtensa.md (tls_call pattern): Use callx8 or
16349 callx0 for TLS call, according to current ABI.
16350
16351 2015-09-15 Eric Botcazou <ebotcazou@adacore.com>
16352
16353 * tree-eh.c (lower_try_finally_dup_block): Clear location information
16354 on stack restore statements.
16355 (decide_copy_try_finally): Do not consider a stack restore statement as
16356 coming from sources.
16357
16358 2015-09-15 Uros Bizjak <ubizjak@gmail.com>
16359
16360 * config/alpha/alpha.c (alpha_expand_block_clear): Use
16361 HOST_WIDE_INT_M1U instead of ~(HOST_WIDE_INT)0 when shifting.
16362
16363 2015-09-15 Jeff Law <law@redhat.com>
16364
16365 PR tree-optimization/47679
16366 * tree-ssa-dom.c (expr_hash_elt): Now a class with ctors/dtors,
16367 methods and private members.
16368 (avail_exprs_stack): Similarly. Change type of global
16369 from a pair of expr_hash_elt_t to the new class.
16370 (expr_elt_hasher::hash): Corresponding changes.
16371 (expr_elt_hasher::equal): Similarly.
16372 (avail_expr_hash): Similarly.
16373 (pass_dominator::execute): Similarly.
16374 (dom_opt_dom_walker::thread_across_edge): Similarly.
16375 (record_cond): Similarly.
16376 (dom_opt_dom_walker::before_dom_children): Similarly.
16377 (dom_opt_dom_walker::after_dom_children): Similarly.
16378 (lookup_avail_expr): Likewise.
16379 (initialize_hash_element): Now a expr_hash_elt constructor.
16380 (initialize_hash_element_from_expr): Similarly.
16381 (free_expr_hash_elt_contents): Now a dtor for class expr_hash_elt.
16382 (free_expr_hash_elt): Call dtor for the element.
16383 (remove_local_expressions_from_table): Now the "pop_to_marker"
16384 method in the available_exprs_stack class.
16385 (avail_expr_stack::record_expr): Method factored out.
16386 (print_expr_hash_elt): Now a method in the expr_hash_elt class.
16387 Fix formatting.
16388 (hashable_expr_equal_p): Fix formatting.
16389
16390 2015-09-15 David Malcolm <dmalcolm@redhat.com>
16391
16392 * input.h (location_get_source_line): Drop "expanded_location"
16393 param in favor of a file and line number.
16394 * input.c (location_get_source_line): Likewise.
16395 (dump_location_info): Update for change in signature of
16396 location_get_source_line.
16397 * diagnostic.c (diagnostic_print_caret_line): Likewise.
16398
16399 2015-09-15 Eric Botcazou <ebotcazou@adacore.com>
16400
16401 * defaults.h (STACK_OLD_CHECK_PROTECT): Adjust for -fno-exceptions.
16402 Bump to 4KB for SJLJ exceptions.
16403 (STACK_CHECK_PROTECT): Likewise. Bump to 8KB for SJLJ exceptions.
16404 * doc/tm.texi.in (STACK_CHECK_PROTECT): Adjust.
16405 * doc/tm.texi: Regenerate.
16406
16407 2015-09-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
16408
16409 * config/arm/arm.c (arm_gen_constant): Use HOST_WIDE_INT_M1U instead
16410 of -1 when shifting. Change type of val to unsigned HOST_WIDE_INT.
16411 Update prototype.
16412
16413 2015-09-15 Richard Biener <rguenther@suse.de>
16414
16415 PR tree-optimization/67470
16416 * tree-ssa-loop-im.c (execute_sm_if_changed): Preserve PHI
16417 structure for PHI hoisting by inserting a forwarder block
16418 if appropriate.
16419
16420 2015-09-15 Christian Bruel <christian.bruel@st.com>
16421
16422 * config/arm/arm.c (TARGET_OPTION_PRINT): Define.
16423 (arm_option_print): New function.
16424
16425 2015-09-15 Christian Bruel <christian.bruel@st.com>
16426
16427 PR target/52144
16428 * config/arm/arm.c (arm_option_params_internal): Remove opts parameter.
16429 * config/arm/arm-c.c (arm_cpu_builtins): Declare static.
16430 Remove flags parameter.
16431 * config/arm/arm.h (TARGET_32BIT_P, TARGET_ARM_QBIT_P)
16432 (TARGET_ARM_SAT_P, TARGET_IDIV_P, TARGET_HAVE_LDREX_P)
16433 (TARGET_HAVE_LDREXBH_P, TARGET_HAVE_LDREXD_P, TARGET_DSP_MULTIPLY_P)
16434 (TARGET_ARM_FEATURE_LDREX_P, TARGET_INT_SIMD_P): Redefine macros with...
16435 (TARGET_ARM_SAT, TARGET_IDIV, TARGET_HAVE_LDREX)
16436 (TARGET_HAVE_LDREXBH, TARGET_HAVE_LDREXD, TARGET_ARM_FEATURE_LDREX)
16437 (TARGET_DSP_MULTIPLY, TARGET_INT_SIMD): Redefined macros.
16438 * config/arm/arm-protos.h (arm_cpu_builtins): Remove declaration.
16439
16440 2015-09-15 Alan Lawrence <alan.lawrence@arm.com>
16441
16442 * config/aarch64/aarch64.h (AARCH64_VALID_SIMD_DREG_MODE): New.
16443
16444 * config/aarch64/aarch64.c (aarch64_array_mode_supported_p): Add
16445 AARCH64_VALID_SIMD_DREG_MODE.
16446
16447 2015-09-15 Alan Lawrence <alan.lawrence@arm.com>
16448
16449 * config/aarch64/aarch64-simd.md (aarch64_ld2r<mode>,
16450 aarch64_ld3r<mode>, aarch64_ld4r<mode>): Combine together, making...
16451 (aarch64_simd_ld<VSTRUCT:nregs>r<VALLDIF:mode>): ...this.
16452 (aarch64_ld2_lane<mode>, aarch64_ld3_lane<mode>,
16453 aarch64_ld4_lane<mode>): Combine together, making...
16454 (aarch64_ld<VSTRUCT:nregs>_lane<VALLDIF:mode>): ...this.
16455 (aarch64_st2_lane<mode>, aarch64_st3_lane<mode>,
16456 aarch64_st4_lane<mode>): Combine together, making...
16457 (aarch64_st<VSTRUCT:nregs>_lane<VALLDIF:mode>): ...this.
16458 * config/aarch64/iterators.md (nregs): Add comment.
16459
16460 2015-09-15 Alan Lawrence <alan.lawrence@arm.com>
16461
16462 * config/aarch64/aarch64-simd.md (aarch64_simd_ld2r<mode>):
16463 Change operand mode from <V_TWO_ELEM> to BLK.
16464 (aarch64_vec_load_lanesoi_lane<mode>): Likewise.
16465 (aarch64_vec_store_lanesoi_lane<mode): Likewise
16466 (aarch64_ld2r<mode>): Generate MEM rtx with BLKmode, call set_mem_size.
16467 (aarch64_ld2_lane<mode>): Likewise.
16468 (aarch64_st2_lane<VQ:mode>): Likewise.
16469 * config/aarch64/iterators.md (V_TWO_ELEM): Remove.
16470
16471 2015-09-15 Alan Lawrence <alan.lawrence@arm.com>
16472
16473 * config/aarch64/aarch64-simd.md (aarch64_simd_ld4r<mode>):
16474 Change operand mode from <V_FOUR_ELEM> to BLK.
16475 (aarch64_vec_load_lanesxi_lane<mode>): Likewise.
16476 (aarch64_vec_store_lanesxi_lane<mode): Likewise.
16477 (aarch64_ld4r<mode>): Generate MEM rtx with BLKmode, call set_mem_size.
16478 (aarch64_ld4_lane<mode>): Likewise.
16479 (aarch64_st4_lane<mode>): Likewise.
16480 * config/aarch64/iterators.md (V_FOUR_ELEM): Remove.
16481
16482 2015-09-15 Richard Biener <rguenther@suse.de>
16483
16484 PR middle-end/67563
16485 * gimple-fold.c (gimplify_and_update_call_from_tree): Do not
16486 transfer EH info from old to new stmt.
16487 (replace_call_with_value): Likewise.
16488 (replace_call_with_call_and_fold): Likewise.
16489 (gimple_fold_builtin_memory_op): Likewise.
16490 (gimple_fold_builtin_memset): Likewise.
16491 (gimple_fold_builtin_stpcpy): Likewise.
16492 (gimple_fold_call): Likewise.
16493
16494 2015-09-15 Alan Lawrence <alan.lawrence@arm.com>
16495
16496 * config/aarch64/aarch64.c (aarch64_simd_attr_length_rglist): Update
16497 comment.
16498 * config/aarch64/aarch64-builtins.c (ei_UP): Remove.
16499 (aarch64_simd_intEI_type_node): Likewise.
16500 (aarch64_simd_builtin_std_type): Remove EImode case.
16501 (aarch64_init_simd_builtin_types): Don't create/add intEI_type_node.
16502 * config/aarch64/aarch64-modes.def: Remove EImode.
16503
16504 2015-09-15 Alan Lawrence <alan.lawrence@arm.com>
16505
16506 * config/aarch64/aarch64-simd.md (aarch64_simd_ld3r<mode>):
16507 Change operand mode from <V_THREE_ELEM> to BLK.
16508 (aarch64_vec_load_lanesci_lane<mode>): Likewise.
16509 (aarch64_vec_store_lanesci_lane<mode>): Likewise.
16510 (aarch64_ld3r<mode>): Generate MEM rtx with BLKmode, call set_mem_size.
16511 (aarch64_ld3_lane<mode>): Likewise.
16512 (aarch64_st3_lane<mode>): Likewise.
16513 * config/aarch64/iterators.md (V_THREE_ELEM): Remove.
16514
16515 2015-09-15 Alan Lawrence <alan.lawrence@arm.com>
16516
16517 * config/aarch64/aarch64-simd.md
16518 (aarch64_ld2<mode>_dreg VD & DX, aarch64_st2<mode>_dreg VD & DX ):
16519 Change all TImode operands to BLKmode.
16520 (aarch64_ld3<mode>_dreg VD & DX, aarch64_st3<mode>_dreg VD & DX):
16521 Change all EImode operands to BLKmode.
16522 (aarch64_ld4<mode>_dreg VD & DX, aarch64_st4<mode>_dreg VD & DX):
16523 Change all OImode operands to BLKmode.
16524
16525 (aarch64_ld<VSTRUCT:nregs><VDC:mode>): Generate MEM rtx with BLKmode
16526 and call set_mem_size.
16527 (aarch64_st<VSTRUCT:nregs><VDC:mode>): Likewise.
16528
16529 * config/aarch64/iterators.md (VSTRUCT_DREG): Remove.
16530
16531 2015-09-15 Alan Lawrence <alan.lawrence@arm.com>
16532
16533 * config/aarch64/aarch64-simd.md (vec_store_lanesoi_lane<mode>): Rename
16534 to...
16535 (aarch64_vec_store_lanesoi_lane<mode>): ...this.
16536
16537 (vec_store_lanesci_lane<mode>): Rename to...
16538 (aarch64_vec_store_lanesci_lane<mode>): ...this.
16539
16540 (vec_store_lanesxi_lane<mode>): Rename to...
16541 (aarch64_vec_store_lanesxi_lane<mode>): ...this.
16542
16543 (aarch64_st2_lane<mode>, aarch64_st3_lane<mode>,
16544 aarch64_st4_lane<mode>): Follow renaming.
16545
16546 2015-09-15 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
16547
16548 * config/s390/s390.c (s390_const_operand_ok): Add missing
16549 brackets.
16550
16551 2015-09-15 Richard Biener <rguenther@suse.de>
16552
16553 PR lto/67568
16554 * lto-streamer.h (lto_location_cache::current_sysp): Properly
16555 initialize.
16556 * lto-streamer-out.c (clear_line_info): Likewise.
16557
16558 2015-09-15 Richard Biener <rguenther@suse.de>
16559
16560 * doc/match-and-simplify.texi: Fix wording.
16561
16562 2015-09-15 Bin Cheng <bin.cheng@arm.com>
16563
16564 * tree-ssa-loop-ivopts.c (get_shiftadd_cost): Strip
16565 unnecessary type conversion in op1.
16566
16567 2015-09-14 Segher Boessenkool <segher@kernel.crashing.org>
16568
16569 * shrink-wrap.c (requires_stack_frame_p): Fix formatting.
16570 (dup_block_and_redirect): Delete function.
16571 (can_dup_for_shrink_wrapping): New function.
16572 (fix_fake_fallthrough_edge): New function.
16573 (try_shrink_wrapping): Rewrite function.
16574 (convert_to_simple_return): Call fix_fake_fallthrough_edge.
16575
16576 2015-09-14 Rich Felker <dalias@libc.org>
16577
16578 * configure.ac: Change target pattern for sh TLS support
16579 test from "sh[34]-*-*" to "sh[123456789lbe]*-*-*".
16580 * configure: Regenerate.
16581
16582 2015-09-14 Jeff Law <law@redhat.com>
16583
16584 PR tree-optimization/47679
16585 * tree-ssa-dom.c (avail_expr_hash): Pass a pointer to a real
16586 type rather than void *.
16587
16588 2015-09-14 Manuel López-Ibáñez <manu@gcc.gnu.org>
16589
16590 PR fortran/67460
16591 * diagnostic.c (diagnostic_initialize): Do not set
16592 some_warnings_are_errors.
16593 (diagnostic_finish): Use DK_WERROR count instead.
16594 (diagnostic_report_diagnostic): Do not set
16595 some_warnings_are_errors.
16596 * diagnostic.h (struct diagnostic_context): Remove
16597 some_warnings_are_errors.
16598
16599 2015-09-14 Richard Sandiford <richard.sandiford@arm.com>
16600
16601 * config/sparc/predicates.md (const_all_ones_operand): Use
16602 CONSTM1_RTX to simplify definition.
16603
16604 2015-09-14 Oleg Endo <olegendo@gcc.gnu.org>
16605
16606 PR target/67061
16607 * config/sh/sh-protos.h (sh_find_set_of_reg): Simplfiy for-loop.
16608 Handle call insns.
16609
16610 2015-09-14 Chung-Lin Tang <cltang@codesourcery.com>
16611
16612 * lto-wrapper.c (merge_and_complain): Add OPT_fdiagnostics_show_caret,
16613 OPT_fdiagnostics_show_option, OPT_fdiagnostics_show_location_, and
16614 OPT_fshow_column to handled saved option cases.
16615 (append_compiler_options): Do not skip the above added options.
16616
16617 2015-09-14 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
16618
16619 PR target/63304
16620 * config/aarch64/aarch64.c (aarch64_expand_mov_immediate): Handle
16621 nopcrelative_literal_loads.
16622 (aarch64_classify_address): Likewise.
16623 (aarch64_constant_pool_reload_icode): Define.
16624 (aarch64_secondary_reload): Handle secondary reloads for
16625 literal pools.
16626 (aarch64_override_options): Handle nopcrelative_literal_loads.
16627 (aarch64_classify_symbol): Handle nopcrelative_literal_loads.
16628 * config/aarch64/aarch64.md (aarch64_reload_movcp<GPF_TF:mode><P:mode>):
16629 Define.
16630 (aarch64_reload_movcp<VALL:mode><P:mode>): Likewise.
16631 * config/aarch64/aarch64.opt (mpc-relative-literal-loads): New option.
16632 * config/aarch64/predicates.md (aarch64_constant_pool_symref): New
16633 predicate.
16634 * doc/invoke.texi (mpc-relative-literal-loads): Document.
16635
16636 2015-09-14 John David Anglin <danglin@gcc.gnu.org>
16637
16638 PR middle-end/67401
16639 * optabs.c (expand_atomic_compare_and_swap): Move result of emitting
16640 sync_compare_and_swap_optab libcall to target_oval.
16641
16642 2015-09-14 Marek Polacek <polacek@redhat.com>
16643
16644 * rtlanal.c (split_double): Cast to unsigned when shifting a negative
16645 value.
16646 * sched-int.h (UNKNOWN_DEP_COST): Likewise.
16647
16648 2015-09-11 Mark Wielaard <mjw@redhat.com>
16649
16650 PR c/28901
16651 * toplev.c (check_global_declaration): Check and use
16652 warn_unused_const_variable.
16653 * doc/invoke.texi (Warning Options): Add -Wunused-const-variable.
16654 (-Wunused-variable): Remove non-constant. For C implies
16655 -Wunused-const-variable.
16656 (-Wunused-const-variable): New.
16657
16658 2015-09-14 Richard Biener <rguenther@suse.de>
16659
16660 * doc/match-and-simplify.texi: Update for changed syntax
16661 of inner ifs and the new switch expression.
16662
16663 2015-09-14 Yuri Rumyantsev <ysrumyan@gmail.com>
16664
16665 * config/i386/haswell.md: New file describing Haswell pipeline.
16666 * config/i386/i386.c (processor_alias_table): Use CPU_HASWELL for
16667 haswell-like processors.
16668 (ix86_reassociation_width): Increase reassociation width for 64-bit
16669 Haswell processor family.
16670 * config/i386/i386.md: Introduce haswell cpu and include new md file.
16671
16672 2015-09-14 Richard Biener <rguenther@suse.de>
16673
16674 * doc/match-and-simplify.texi: Fixup some formatting issues
16675 and document the 's' flag.
16676
16677 2015-09-13 Olivier Hainque <hainque@adacore.com>
16678 Eric Botcazou <ebotcazou@adacore.com>
16679
16680 * config.gcc (visium-*-*): Enable --with-cpu option, accept gr5 and
16681 gr6 as possible values, defaulting to gr5. Set target_cpu_default2.
16682 * config/visium/visium.h (OPTION_DEFAULT_SPECS): Define.
16683 (TARGET_CPU_gr5): Likewise.
16684 (TARGET_CPU_gr6): Likewise.
16685 (MULTILIB_DEFAULTS): Likewise.
16686 * config/visium/t-visium (MULTILIB_OPTIONS): Request distinct variants
16687 for mcpu=gr5 and mcpu=gr6.
16688 (MULTILIB_DIRNAMES): Adjust accordingly.
16689
16690 2015-09-13 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
16691
16692 * tree-ssa-loop-im.c (mem_ref_loc_p): Remove typedef.
16693 (mem_ref_p): Likewise.
16694 (outermost_indep_loop): Adjust.
16695 (mem_ref_in_stmt): Likewise.
16696 (determine_max_movement): Likewise.
16697 (mem_ref_alloc): Likewise.
16698 (record_mem_ref_loc): Likewise.
16699 (set_ref_stored_in_loop): Likewise.
16700 (mark_ref_stored): Likewise.
16701 (gather_mem_refs_stmt): Likewise.
16702 (mem_refs_may_alias_p): Likewise.
16703 (for_all_locs_in_loop): Likewise.
16704 (struct rewrite_mem_ref_loc): Likewise.
16705 (rewrite_mem_refs): Likewise.
16706 (struct first_mem_ref_loc_1): Likewise.
16707 (first_mem_ref_loc): Likewise.
16708 (struct sm_set_flag_if_changed): Likewise.
16709 (execute_sm_if_changed_flag_set): Likewise.
16710 (execute_sm): Likewise.
16711 (hoist_memory_references):
16712 (struct ref_always_accessed): Likewise.
16713 (ref_always_accessed_p): Likewise.
16714 (refs_independent_p): Likewise.
16715 (record_dep_loop): Likewise.
16716 (ref_indep_loop_p_1): Likewise.
16717 (ref_indep_loop_p_2): Likewise.
16718 (ref_indep_loop_p): Likewise.
16719 (can_sm_ref_p): Likewise.
16720 (find_refs_for_sm): Likewise.
16721 (tree_ssa_lim_finalize): Likewise.
16722
16723 2015-09-13 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
16724
16725 * dwarf2out.c (dw_attr_ref): Remove typedef.
16726 (dw_line_info_ref): Likewise.
16727 (pubname_ref): Likewise.
16728 (dw_ranges_ref): Likewise.
16729 (dw_ranges_by_label_ref): Likewise.
16730 (comdat_type_node_ref): Likewise.
16731 (get_AT): Adjust.
16732 (get_AT_low_pc): Likewise.
16733 (get_AT_hi_pc): Likewise.
16734 (get_AT_string): Likewise.
16735 (get_AT_flag): Likewise.
16736 (get_AT_unsigned): Likewise.
16737 (get_AT_ref): Likewise.
16738 (get_AT_file): Likewise.
16739 (remove_AT): Likewise.
16740 (print_die): Likewise.
16741 (check_die): Likewise.
16742 (die_checksum): Likewise.
16743 (attr_checksum_ordered): Likewise.
16744 (struct checksum_attributes): Likewise.
16745 (collect_checksum_attributes): Likewise.
16746 (die_checksum_ordered): Likewise.
16747 (same_die_p): Likewise.
16748 (is_declaration_die): Likewise.
16749 (clone_die): Likewise.
16750 (clone_as_declaration): Likewise.
16751 (copy_declaration_context): Likewise.
16752 (break_out_comdat_types): Likewise.
16753 (copy_decls_walk): Likewise.
16754 (output_location_lists): Likewise.
16755 (external_ref_hasher::hash): Likewise.
16756 (optimize_external_refs_1): Likewise.
16757 (build_abbrev_table): Likewise.
16758 (size_of_die): Likewise.
16759 (unmark_all_dies): Likewise.
16760 (size_of_pubnames): Likewise.
16761 (output_die_abbrevs): Likewise.
16762 (output_die): Likewise.
16763 (output_pubnames): Likewise.
16764 (add_ranges_num): Likewise.
16765 (add_ranges_by_labels): Likewise.
16766 (add_high_low_attributes): Likewise.
16767 (gen_producer_string): Likewise.
16768 (dwarf2out_set_name): Likewise.
16769 (new_line_info_table): Likewise.
16770 (prune_unused_types_walk_attribs): Likewise.
16771 (prune_unused_types_update_strings): Likewise.
16772 (prune_unused_types): Likewise.
16773 (resolve_addr): Likewise.
16774 (optimize_location_lists_1): Likewise.
16775 (index_location_lists): Likewise.
16776 (dwarf2out_finish): Likewise.
16777
16778 2015-09-13 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
16779
16780 * dwarf2cfi.c (dw_trace_info_ref): Remove typedef.
16781
16782 2015-09-13 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
16783
16784 * tree-vrp.c (struct assert_locus_d): Rename to assert_locus.
16785 (dump_asserts_for): Adjust.
16786 (register_new_assert_for): Likewise.
16787 (process_assert_insertions): Likewise.
16788 (insert_range_assertions): Likewise.
16789
16790 2015-09-13 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
16791
16792 * tree-ssa-ter.c (temp_expr_table_d): Rename to temp_expr_table
16793 and remove typedef.
16794 (new_temp_expr_table): Adjust.
16795 (free_temp_expr_table): Likewise.
16796 (version_to_be_replaced_p): Likewise.
16797 (make_dependent_on_partition): Likewise.
16798 (add_to_partition_kill_list): Likewise.
16799 (remove_from_partition_kill_list): Likewise.
16800 (add_dependence): Likewise.
16801 (finished_with_expr): Likewise.
16802 (process_replaceable): Likewise.
16803 (kill_expr): Likewise.
16804 (kill_virtual_exprs): Likewise.
16805 (mark_replaceable): Likewise.
16806 (find_replaceable_in_bb): Likewise.
16807 (find_replaceable_exprs): Likewise.
16808 (debug_ter): Likewise.
16809
16810 2015-09-13 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
16811
16812 * bt-load.c (struct btr_def_group): Rename from btr_def_group_s.
16813 (struct btr_user): Rename from btr_user_s.
16814 (struct btr_def): Rename from btr_def_s.
16815 (find_btr_def_group): Adjust.
16816 (add_btr_def): Likewise.
16817 (new_btr_user): Likewise.
16818 (note_other_use_this_block): Likewise.
16819 (compute_defs_uses_and_gen): Likewise.
16820 (link_btr_uses): Likewise.
16821 (build_btr_def_use_webs): Likewise.
16822 (block_at_edge_of_live_range_p): Likewise.
16823 (btr_def_live_range): Likewise.
16824 (combine_btr_defs): Likewise.
16825 (move_btr_def): Likewise.
16826 (migrate_btr_def): Likewise.
16827 (migrate_btr_defs): Likewise.
16828
16829 2015-09-13 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
16830
16831 * var-tracking.c (shared_hash_def): Rename to shared_hash.
16832 (shared_hash): Remove typedef.
16833 (struct dataflow_set): Adjust.
16834 (shared_hash_unshare): Likewise.
16835 (dataflow_set_merge): Likewise.
16836 (vt_initialize): Likewise.
16837 (vt_finalize): Likewise.
16838
16839 2015-09-13 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
16840
16841 * var-tracking.c (struct location_chain): Rename from
16842 location_chain_def.
16843 (struct variable_part): Adjust.
16844 (variable_htab_free): Likewise.
16845 (unshare_variable): Likewise.
16846 (get_init_value): Likewise.
16847 (get_addr_from_local_cache): Likewise.
16848 (drop_overlapping_mem_locs): Likewise.
16849 (val_reset): Likewise.
16850 (struct variable_union_info): Likewise.
16851 (variable_union): Likewise.
16852 (find_loc_in_1pdv): Likewise.
16853 (insert_into_intersection): Likewise.
16854 (intersect_loc_chains): Likewise.
16855 (canonicalize_loc_order_check): Likewise.
16856 (canonicalize_values_mark): Likewise.
16857 (canonicalize_values_star): Likewise.
16858 (canonicalize_vars_star): Likewise.
16859 (variable_merge_over_cur): Likewise.
16860 (remove_duplicate_values): Likewise.
16861 (variable_post_merge_new_vals): Likewise.
16862 (variable_post_merge_perm_vals): Likewise.
16863 (find_mem_expr_in_1pdv): Likewise.
16864 (dataflow_set_preserve_mem_locs): Likewise.
16865 (dataflow_set_remove_mem_locs): Likewise.
16866 (variable_part_different_p): Likewise.
16867 (onepart_variable_different_p): Likewise.
16868 (find_src_set_src): Likewise.
16869 (dump_var): Likewise.
16870 (set_slot_part): Likewise.
16871 (clobber_slot_part): Likewise.
16872 (delete_slot_part): Likewise.
16873 (vt_expand_var_loc_chain): Likewise.
16874 (emit_note_insn_var_location): Likewise.
16875 (vt_finalize): Likewise.
16876
16877 2015-09-13 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
16878
16879 * dse.c (store_info_t): Remove typedef.
16880 (group_info_t): Likewise.
16881 (const_group_info_t): Likewise.
16882 (deferred_change_t): Likewise.
16883 (get_group_info): Adjust.
16884 (free_store_info): Likewise.
16885 (canon_address): Likewise.
16886 (clear_rhs_from_active_local_stores): Likewise.
16887 (record_store): Likewise.
16888 (replace_read): Likewise.
16889 (check_mem_read_rtx): Likewise.
16890 (scan_insn): Likewise.
16891 (remove_useless_values): Likewise.
16892 (dse_step1): Likewise.
16893 (dse_step2_init): Likewise.
16894 (dse_step2_nospill): Likewise.
16895 (scan_stores_nospill): Likewise.
16896 (scan_reads_nospill): Likewise.
16897 (dse_step3_exit_block_scan): Likewise.
16898 (dse_step3): Likewise.
16899 (dse_step5_nospill): Likewise.
16900 (dse_step6): Likewise.
16901
16902 2015-09-13 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
16903
16904 * alias.c (alias_set_entry_d): Rename to alias_set_entry.
16905 (alias_set_entry): Remove typedef.
16906 (alias_set_subset_of): Adjust.
16907 (alias_sets_conflict_p): Likewise.
16908 (init_alias_set_entry): Likewise.
16909 (get_alias_set): Likewise.
16910 (new_alias_set): Likewise.
16911 (record_alias_subset): Likewise.
16912
16913 2015-09-13 Gerald Pfeifer <gerald@pfeifer.com>
16914
16915 * doc/install.texi (Downloading the source): Mark up
16916 contrib/download_prerequisites properly and drop leading "./".
16917
16918 2015-09-12 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
16919
16920 * config/arc/arc.h: Remove define of STRUCT_VALUE.
16921 * config/lm32/lm32.h: Likewise.
16922 * config/mep/mep.h: Likewise.
16923 * config/visium/visium.h: Likewise.
16924 * system.h: Poison STRUCT_VALUE macro.
16925
16926 2015-09-12 John David Anglin <danglin@gcc.gnu.org>
16927
16928 * config/pa/pa.c (pa_output_move_double): Enhance to handle HIGH
16929 CONSTANT_P operands.
16930
16931 2015-09-11 David S. Miller <davem@davemloft.net>
16932
16933 * config/sparc/constraints.md: Make "U" constraint a real register
16934 constraint.
16935 * config/sparc/sparc.c (TARGET_LRA_P): Define.
16936 (D_MODES, DF_MODES): Add missing cast.
16937 (TF_MODES, TF_MODES_NO_S): Include T_MODE.
16938 (OF_MODES, OF_MODES_NO_S): Include O_MODE.
16939 (sparc_register_move_cost): Decrease Niagara/UltrsSPARC memory
16940 cost to 8.
16941 * config/sparc/sparc.h (PROMOTE_MODE): Define.
16942 * config/sparc/sparc.md (*movsi_lo_sum, *movsi_high): Do not
16943 provide these insn when flag_pic.
16944
16945 2015-09-11 Jeff Law <law@redhat.com>
16946
16947 PR tree-optimization/47679
16948 * tree-ssa-dom.c (struct cond_equivalence): Update comment.
16949 * tree-ssa-scopedtables.h (class const_and_copies): Prefix data
16950 member with m_. Update inline member functions as necessary. Add
16951 toplevel comment.
16952 * tree-ssa-scopedtables.c: Update const_and_copies's member
16953 functions to use m_ prefix to access the stack.
16954
16955 2015-09-11 Aditya Kumar <aditya.k7@samsung.com>
16956
16957 * graphite-optimize-isl.c (disable_tiling): Remove.
16958 (get_schedule_for_band): Do not use disable_tiling.
16959 (get_prevector_map): Delete function.
16960 (enable_polly_vector): Remove.
16961 (get_schedule_for_band_list): Remove dead code.
16962
16963 2015-09-11 Aditya Kumar <aditya.k7@samsung.com>
16964
16965 * graphite-optimize-isl.c (get_tile_map): Refactor.
16966 (get_schedule_for_band): Same.
16967 (getScheduleForBand): Same.
16968 (get_prevector_map): Same.
16969 (get_schedule_for_band_list): Same.
16970 (get_schedule_map): Same.
16971 (get_single_map): Same.
16972 (apply_schedule_map_to_scop): Same.
16973 (optimize_isl): Same.
16974
16975 2015-09-10 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
16976
16977 PR target/63304
16978 * config/aarch64/aarch.md (mov<mode>:GPF_F16): Use GPF_TF_F16.
16979 (movtf): Delete.
16980 * config/aarch64/iterators.md (GPF_TF_F16): New.
16981 (GPF_F16): Delete.
16982
16983 2015-09-10 Nathan Sidwell <nathan@acm.org>
16984
16985 * config/nvptx/nvptx.c (nvptx_expand_call): Add spacing.
16986 (nvptx_reorg): Adjust comments.
16987
16988 2015-09-15 John David Anglin <danglin@gcc.gnu.org>
16989
16990 PR bootstrap/67363
16991 * configure.ac: Check if setenv and unsetenv are declared.
16992 * configure: Rebuild.
16993 * config.in: Rebuild.
16994 * system.h: Declare setenv and unsetenv if not declared.
16995
16996 2015-09-10 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
16997
16998 * config/rs6000/rs6000.c (swap_web_entry): Update preceding
16999 commentary to simplify permute mask adjustment equation.
17000 (special_handling_values): Add SH_VPERM.
17001 (const_load_sequence_p): New function.
17002 (insn_is_swappable_p): Add logic to recognize an UNSPEC_VPERM with
17003 the mask loaded from the constant pool.
17004 (adjust_vperm): New function.
17005 (handle_special_swappables): Call adjust_vperm.
17006 (dump_swap_insn_table): Handle SH_VPERM.
17007
17008 2015-09-10 H.J. Lu <hongjiu.lu@intel.com>
17009
17010 * shrink-wrap.c (requires_stack_frame_p): Remove static.
17011 * shrink-wrap.h (requires_stack_frame_p): Put back.
17012
17013 2015-09-10 Richard Sandiford <richard.sandiford@arm.com>
17014
17015 * reload1.c (elimination_costs_in_insn): Locally turn
17016 -Wmaybe-uninitialized into a warning.
17017
17018 2015-09-10 Segher Boessenkool <segher@kernel.crashing.org>
17019
17020 * shrink-wrap.c (requires_stack_frame_p): Make static.
17021 (prepare_shrink_wrap): Likewise.
17022 (dup_block_and_redirect): Likewise.
17023 * shrink-wrap.h: Remove declarations of those functions.
17024
17025 2015-09-10 Mark Wielaard <mjw@redhat.com>
17026
17027 * doc/invoke.texi (Wnonnull): Also warns when comparing against NULL.
17028
17029 2015-09-10 Oleg Endo <olegendo@gcc.gnu.org>
17030
17031 PR target/67506
17032 * config/sh/sh.c (sh_extending_set_of_reg::use_as_extended_reg): Add
17033 missing simplify_gen_subreg.
17034
17035 2015-09-10 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
17036
17037 * config/s390/s390.c (s390_contiguous_bitmask_vector_p): Reject if
17038 the vector element is bigger than 64 bit.
17039
17040 2015-09-10 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
17041
17042 * config/s390/vx-builtins.md ("vec_vmal<mode>", "vec_vmah<mode>")
17043 ("vec_vmalh<mode>"): Change mode iterator from VI_HW to VI_HW_QHS.
17044
17045 2015-09-10 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
17046
17047 * config/s390/s390.c: Add V1TImode to constant pool modes.
17048
17049 2015-09-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
17050
17051 PR target/67439
17052 * config/arm/arm.md (*arm32_movhf): Remove !arm_restrict_it from
17053 predicate. Set predicable_short_it attr to "no".
17054
17055 2015-09-10 Jiong Wang <jiong.wang@arm.com>
17056
17057 PR rtl-optimization/67421
17058 * expr.c (expand_expr_real_2): Cost instrcution sequences when doing
17059 left wide shift tranformation.
17060
17061 2015-09-10 Claudiu Zissulescu <claziss@synopsys.com>
17062
17063 * common/config/arc/arc-common.c: Remove references to A5.
17064 * config/arc/arc-opts.h: Likewise.
17065 * config/arc/arc.c, config/arc/arc.h, config/arc/arc.md: Likewise.
17066 * config/arc/arc.opt, config/arc/constraints.md: Likewise.
17067 * config/arc/t-arc-newlib: Likewise.
17068
17069 2015-09-10 Claudiu Zissulescu <claziss@synopsys.com>
17070
17071 * config/arc/arc.md (length): Fix attribute length for conditional
17072 executed instructions with long immediate.
17073
17074 2015-09-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
17075
17076 * config/aarch64/aarch64.md (*and<mode>3nr_compare0): Use logics_imm
17077 type for second alternative.
17078
17079 2015-09-10 Markus Trippelsdorf <markus@trippelsdorf.de>
17080
17081 * doc/invoke.texi (Downloading GCC): Mention
17082 contrib/download_prerequisites script.
17083
17084 2015-09-10 Jakub Jelinek <jakub@redhat.com>
17085
17086 PR c++/67523
17087 * gimplify.c (gimplify_omp_for): If inner stmt is not found
17088 for combined loop, assert seen_error () and return GS_ERROR.
17089
17090 PR middle-end/67521
17091 * gimplify.c (gimplify_omp_for): Don't call omp_add_variable
17092 if decl is already in outer->variables.
17093
17094 PR middle-end/67517
17095 * gimplify.c (gimplify_scan_omp_clauses): Instead of
17096 asserting that decl is not specified in octx->variables,
17097 break out of the loop if it is.
17098
17099 PR c++/67514
17100 * gimplify.c (gimplify_omp_for): For loop SIMD construct, if
17101 iterator is not explicitly determined, but is defined inside
17102 of the combined workshare region, handle it like if it has
17103 DECL_EXPR in OMP_FOR_PRE_BODY.
17104
17105 2015-09-09 Nathan Sidwell <nathan@acm.org>
17106
17107 * config/nvptx/nvptx.md (call_operation): Move bound out of loop.
17108 (*cmp<mode>): Add assembler spacing.
17109 (setcc_int<mode>, set_cc_float<mode>): Likewise.
17110 * config/nvptx/nvptx.c (nvptx_option_override): Override debug
17111 level.
17112 (write_func_decl_from_insn): Refactor argument loops & comma emission.
17113 (nvptx_expand_call): Likewise.
17114 (nvptx_output_call_insn): Likewise.
17115 (nvptx_reorg_subreg): Add spacing.
17116
17117 2015-09-09 Marek Polacek <polacek@redhat.com>
17118
17119 PR middle-end/67512
17120 * tree-ssa-uninit.c (pred_equal_p): Only call invert_tree_comparison
17121 for comparisons.
17122
17123 2015-09-09 Paolo Carlini <paolo.carlini@oracle.com>
17124
17125 PR c++/53184
17126 * doc/invoke.texi ([Wsubobject-linkage]): Document.
17127
17128 2015-09-09 Tom de Vries <tom@codesourcery.com>
17129
17130 * params-list.h: Add missing copyright notice.
17131
17132 2015-09-09 Nathan Sidwell <nathan@acm.org>
17133
17134 * config/nvptx/nvptx.md (atomic_compare_and_swap<mode>): Use
17135 sel_truesi, not andsi.
17136
17137 2015-09-09 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
17138
17139 * config/arm/arm.md (*subsi3_compare0): Rename to...
17140 (subsi3_compare0): ... This.
17141 (modsi3): New define_expand.
17142 * config/arm/arm.c (arm_new_rtx_costs, MOD case): Handle case
17143 when operand is power of 2.
17144
17145 2015-09-09 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
17146
17147 * config/aarch64/aarch64.md (mod<mode>3): New define_expand.
17148 (*neg<mode>2_compare0): Rename to...
17149 (neg<mode>2_compare0): ... This.
17150 * config/aarch64/aarch64.c (aarch64_rtx_costs, MOD case):
17151 Move check for speed inside the if-then-elses. Reflect
17152 CSNEG sequence in MOD by power of 2 case.
17153
17154 2015-09-09 Alan Modra <amodra@gmail.com>
17155
17156 PR target/67378
17157 * config/rs6000/rs6000.c (rs6000_secondary_reload_gpr): Find
17158 reload replacement for PRE_MODIFY address reg.
17159
17160 2015-09-09 Sebastian Pop <s.pop@samsung.com>
17161
17162 PR tree-optimization/53852
17163 * config.in: Regenerate.
17164 * configure: Regenerate.
17165 * configure.ac (HAVE_ISL_CTX_MAX_OPERATIONS): Detect.
17166 * graphite-optimize-isl.c (optimize_isl): Stop computation when
17167 PARAM_MAX_ISL_OPERATIONS is reached.
17168 * params.def (PARAM_MAX_ISL_OPERATIONS): Add.
17169 * graphite-dependences.c (extend_schedule): Remove gcc_asserts on
17170 result equal to isl_stat_ok as the status now can be isl_error_quota.
17171 (subtract_commutative_associative_deps): Same.
17172 (compute_deps): Same.
17173
17174 2015-09-08 Aditya Kumar <hiraditya@msn.com>
17175 Sebastian Pop <s.pop@samsung.com>
17176
17177 * graphite-isl-ast-to-gimple.c (gcc_expression_from_isl_ast_expr_id):
17178 Return the parameter if it was saved in corresponding
17179 parameter_rename_map of the region.
17180 (copy_def): Copy def from sese region to the newly created region.
17181 (copy_internal_parameters): Copy all the internal parameters defined
17182 within a region to the newly created region.
17183 (graphite_regenerate_ast_isl): Copy parameters to the new region before
17184 translating isl to gimple.
17185 * graphite-scop-detection.c (graphite_can_represent_loop): Bail out if
17186 the loop-nest does not have any data-references.
17187 (build_graphite_scops): Create a scop only when there is at least one
17188 loop inside it.
17189 (contains_only_close_phi_nodes): Deleted.
17190 (print_graphite_scop_statistics): Deleted
17191 (print_graphite_statistics): Deleted
17192 (limit_scops): Deleted.
17193 (build_scops): Removed call to limit_scops.
17194 * sese.c (new_sese): Construct.
17195 (free_sese): Destruct.
17196 (sese_add_exit_phis_edge): update_stmt after exit phi edge has been
17197 added.
17198 (set_rename): Pass sese region so that parameters inside the region can
17199 be added to its parameter_rename_map.
17200 (rename_uses): Pass sese region.
17201 (graphite_copy_stmts_from_block): Do not copy parameters that have been
17202 generated in the header of the scop. For each SSA_NAME in the
17203 parameter_rename_map rename its usage.
17204 (invariant_in_sese_p_rec): Return false if tree t is defined outside
17205 sese region.
17206 (scalar_evolution_in_region): If the tree t is invariant just return t.
17207 * sese.h: Added a parameter renamne map (parameter_rename_map_t) to
17208 struct sese to keep track of all the parameters which need renaming.
17209 * tree-data-ref.c (loop_nest_has_data_refs): Check if a loop nest has
17210 any data-refs.
17211 * tree-data-ref.h: Declaration of loop_nest_has_data_refs.
17212
17213 2015-09-08 Tom de Vries <tom@codesourcery.com>
17214
17215 * Makefile.in (generated_files): Add params.list.
17216 (params.list, s-params.list): Add rule.
17217 * params.h (enum compiler_param): Include params-list.h. Move define
17218 DEFPARAM, include params.def and undef DEFPARAM ...
17219 * params-list.h: ... here. New file.
17220
17221 2015-09-08 David Malcolm <dmalcolm@redhat.com>
17222
17223 * pretty-print.h (printer_fn): Fix typo in comment.
17224
17225 2015-09-07 Jeff Law <law@redhat.com>
17226
17227 * tree-ssa-scopedtables.h (class const_and_copies): Fix comment typo.
17228
17229 2015-09-08 Alan Lawrence <alan.lawrence@arm.com>
17230
17231 * doc/sourcebuild.texi (arm_neon_fp16): Correct cross-reference.
17232 (arm_neon_fp16_ok): Document adding of -mfp16-format=ieee flag.
17233 (arm_neon_fp16_hw): New.
17234
17235 2015-09-08 Alan Lawrence <alan.lawrence@arm.com>
17236
17237 * fold-const.c (native_interpret_real): Fix HFmode for bigendian where
17238 UNITS_PER_WORD >= 4.
17239
17240 2015-09-08 Alan Lawrence <alan.lawrence@arm.com>
17241
17242 * config/aarch64/aarch64-simd.md (aarch64_simd_vec_unpacks_lo_<mode>,
17243 aarch64_simd_vec_unpacks_hi_<mode>): New insn.
17244 (vec_unpacks_lo_v4sf, vec_unpacks_hi_v4sf): Delete insn.
17245 (vec_unpacks_lo_<mode>, vec_unpacks_hi_<mode>): New expand.
17246 (aarch64_float_extend_lo_v2df): Rename to...
17247 (aarch64_float_extend_lo_<Vwide>): this, using VDF and so adding V4SF.
17248
17249 * config/aarch64/aarch64-simd-builtins.def (vec_unpacks_hi): Add v8hf.
17250 (float_extend_lo): Add v4sf.
17251
17252 * config/aarch64/arm_neon.h (vcvt_f32_f16, vcvt_high_f32_f16): New.
17253 * config/aarch64/iterators.md (VQ_HSF): New iterator.
17254 (VWIDE, Vwtype, Vhalftype): Add V8HF, V4SF.
17255 (Vwide): New mode_attr.
17256
17257 2015-09-08 Alan Lawrence <alan.lawrence@arm.com>
17258
17259 * config/aarch64/aarch64-simd.md (aarch64_simd_dup<mode>,
17260 aarch64_dup_lane<mode>, aarch64_dup_lane_<vswap_width_name><mode>,
17261 aarch64_simd_vec_set<mode>, vec_set<mode>, vec_perm_const<mode>,
17262 vec_init<mode>, *aarch64_simd_ld1r<mode>, vec_extract<mode>): Add
17263 V4HF and V8HF variants to iterator.
17264
17265 * config/aarch64/aarch64.c (aarch64_evpc_dup): Add V4HF and V8HF cases.
17266
17267 * config/aarch64/iterators.md (VDQF_F16): New.
17268 (VSWAP_WIDTH, vswap_width_name): Add V4HF and V8HF cases.
17269
17270 2015-09-08 Alan Lawrence <alan.lawrence@arm.com>
17271
17272 * config/aarch64/arm_neon.h (vreinterpret_p8_f16, vreinterpret_p16_f16,
17273 vreinterpret_f16_f64, vreinterpret_f16_s8, vreinterpret_f16_s16,
17274 vreinterpret_f16_s32, vreinterpret_f16_s64, vreinterpret_f16_f32,
17275 vreinterpret_f16_u8, vreinterpret_f16_u16, vreinterpret_f16_u32,
17276 vreinterpret_f16_u64, vreinterpret_f16_p8, vreinterpret_f16_p16,
17277 vreinterpretq_f16_f64, vreinterpretq_f16_s8, vreinterpretq_f16_s16,
17278 vreinterpretq_f16_s32, vreinterpretq_f16_s64, vreinterpretq_f16_f32,
17279 vreinterpretq_f16_u8, vreinterpretq_f16_u16, vreinterpretq_f16_u32,
17280 vreinterpretq_f16_u64, vreinterpretq_f16_p8, vreinterpretq_f16_p16,
17281 vreinterpret_f32_f16, vreinterpret_f64_f16, vreinterpret_s64_f16,
17282 vreinterpret_u64_f16, vreinterpretq_u64_f16, vreinterpret_s8_f16,
17283 vreinterpret_s16_f16, vreinterpret_s32_f16, vreinterpret_u8_f16,
17284 vreinterpret_u16_f16, vreinterpret_u32_f16, vreinterpretq_p8_f16,
17285 vreinterpretq_p16_f16, vreinterpretq_f32_f16, vreinterpretq_f64_f16,
17286 vreinterpretq_s64_f16, vreinterpretq_s8_f16, vreinterpretq_s16_f16,
17287 vreinterpretq_s32_f16, vreinterpretq_u8_f16, vreinterpretq_u16_f16,
17288 vreinterpretq_u32_f16, vget_low_f16, vget_high_f16, vld1_dup_f16,
17289 vld1q_dup_f16): New.
17290
17291 2015-09-08 Alan Lawrence <alan.lawrence@arm.com>
17292
17293 * config/aarch64/aarch64-simd.md (aarch64_float_truncate_lo_v2sf):
17294 Reparameterize to...
17295 (aarch64_float_truncate_lo_<mode>): ...this, for both V2SF and V4HF.
17296 (aarch64_float_truncate_hi_v4sf): Reparameterize to...
17297 (aarch64_float_truncate_hi_<Vdbl>): ...this, for both V4SF and V8HF.
17298
17299 * config/aarch64/aarch64-simd-builtins.def (float_truncate_hi_): Add
17300 v8hf variant.
17301 (float_truncate_lo_): Use BUILTIN_VDF iterator.
17302
17303 * config/aarch64/arm_neon.h (vcvt_f16_f32, vcvt_high_f16_f32): New.
17304
17305 * config/aarch64/iterators.md (VDF, Vdtype): New.
17306 (VWIDE, Vmwtype): Add cases for V4HF and V2SF.
17307
17308 2015-09-08 Alan Lawrence <alan.lawrence@arm.com>
17309
17310 * config/aarch64/aarch64.c (aarch64_split_simd_combine): Add V4HFmode.
17311 * config/aarch64/aarch64-builtins.c (VAR13, VAR14): New.
17312 (aarch64_scalar_builtin_types, aarch64_init_simd_builtin_scalar_types):
17313 Add __builtin_aarch64_simd_hf.
17314 * config/aarch64/arm_neon.h (float16x4x2_t, float16x8x2_t,
17315 float16x4x3_t, float16x8x3_t, float16x4x4_t, float16x8x4_t,
17316 vcombine_f16, vst2_lane_f16, vst2q_lane_f16, vst3_lane_f16,
17317 vst3q_lane_f16, vst4_lane_f16, vst4q_lane_f16, vld2_f16, vld2q_f16,
17318 vld3_f16, vld3q_f16, vld4_f16, vld4q_f16, vld2_dup_f16, vld2q_dup_f16,
17319 vld3_dup_f16, vld3q_dup_f16, vld4_dup_f16, vld4q_dup_f16,
17320 vld2_lane_f16, vld2q_lane_f16, vld3_lane_f16, vld3q_lane_f16,
17321 vld4_lane_f16, vld4q_lane_f16, vst2_f16, vst2q_f16, vst3_f16,
17322 vst3q_f16, vst4_f16, vst4q_f16, vcreate_f16): New.
17323
17324 * config/aarch64/iterators.md (VALLDIF, Vtype, Vetype, Vbtype,
17325 V_cmp_result, v_cmp_result): Add cases for V4HF and V8HF.
17326 (VDC, Vdbl): Add V4HF.
17327
17328 2015-09-08 Alan Lawrence <alan.lawrence@arm.com>
17329
17330 * config/aarch64/aarch64.c (aarch64_vector_mode_supported_p): Support
17331 V4HFmode and V8HFmode.
17332 (aarch64_split_simd_move): Add case for V8HFmode.
17333 * config/aarch64/aarch64-builtins.c (v4hf_UP, v8hf_UP): Define.
17334 (aarch64_simd_builtin_std_type): Handle HFmode.
17335 (aarch64_init_simd_builtin_types): Include Float16x4_t and Float16x8_t.
17336
17337 * config/aarch64/aarch64-simd.md (mov<mode>, aarch64_get_lane<mode>,
17338 aarch64_ld1<VALL:mode>, aarch64_st1<VALL:mode): Use VALL_F16 iterator.
17339 (aarch64_be_ld1<mode>, aarch64_be_st1<mode>): Use VALLDI_F16 iterator.
17340
17341 * config/aarch64/aarch64-simd-builtin-types.def: Add Float16x4_t,
17342 Float16x8_t.
17343
17344 * config/aarch64/aarch64-simd-builtins.def (ld1, st1): Use VALL_F16.
17345 * config/aarch64/arm_neon.h (float16x4_t, float16x8_t, float16_t):
17346 New typedefs.
17347 (vget_lane_f16, vgetq_lane_f16, vset_lane_f16, vsetq_lane_f16,
17348 vld1_f16, vld1q_f16, vst1_f16, vst1q_f16, vst1_lane_f16,
17349 vst1q_lane_f16): New.
17350 * config/aarch64/iterators.md (VD, VQ, VQ_NO2E): Add vectors of HFmode.
17351 (VALLDI_F16, VALL_F16): New.
17352 (Vmtype, VEL, VCONQ, VHALF, V_TWO_ELEM, V_THREE_ELEM, V_FOUR_ELEM, q):
17353 Add cases for V4HF and V8HF.
17354 (VDBL, VRL2, VRL3, VRL4): Add V4HF case.
17355
17356 2015-09-08 Alan Lawrence <alan.lawrence@arm.com>
17357
17358 * config/arm/arm-builtins.c (VAR11, VAR12): New.
17359 * config/arm/arm_neon_builtins.def (vcombine, vld2_dup, vld3_dup,
17360 vld4_dup): Add v4hf variant.
17361 (vget_high, vget_low): Add v8hf variant.
17362 (vld1, vst1, vst1_lane, vld2, vld2_lane, vst2, vst2_lane, vld3,
17363 vld3_lane, vst3, vst3_lane, vld4, vld4_lane, vst4, vst4_lane): Add
17364 v4hf and v8hf variants.
17365
17366 * config/arm/iterators.md (VD_LANE, VD_RE, VQ2, VQ_HS): New.
17367 (VDX): Add V4HF.
17368 (V_DOUBLE): Add case for V4HF.
17369 (VQX): Add V8HF.
17370 (V_HALF): Add case for V8HF.
17371 (VDQX): Add V4HF, V8HF.
17372 (V_elem, V_two_elem, V_three_elem, V_four_elem, V_cmp_result,
17373 V_uf_sclr, V_sz_elem, V_mode_nunits, q): Add cases for V4HF & V8HF.
17374
17375 * config/arm/neon.md (vec_set<mode>internal, vec_extract<mode>,
17376 neon_vget_lane<mode>_sext_internal, neon_vget_lane<mode>_zext_internal,
17377 vec_load_lanesoi<mode>, neon_vld2<mode>, vec_store_lanesoi<mode>,
17378 neon_vst2<mode>, vec_load_lanesci<mode>, neon_vld3<mode>,
17379 neon_vld3qa<mode>, neon_vld3qb<mode>, vec_store_lanesci<mode>,
17380 neon_vst3<mode>, neon_vst3qa<mode>, neon_vst3qb<mode>,
17381 vec_load_lanesxi<mode>, neon_vld4<mode>, neon_vld4qa<mode>,
17382 neon_vld4qb<mode>, vec_store_lanesxi<mode>, neon_vst4<mode>,
17383 neon_vst4qa<mode>, neon_vst4qb<mode>): Change VQ iterator to VQ2.
17384
17385 (neon_vcreate, neon_vreinterpretv8qi<mode>,
17386 neon_vreinterpretv4hi<mode>, neon_vreinterpretv2si<mode>,
17387 neon_vreinterpretv2sf<mode>, neon_vreinterpretdi<mode>):
17388 Change VDX to VD_RE.
17389
17390 (neon_vld2_lane<mode>, neon_vst2_lane<mode>, neon_vld3_lane<mode>,
17391 neon_vst3_lane<mode>, neon_vld4_lane<mode>, neon_vst4_lane<mode>):
17392 Change VD iterator to VD_LANE, and VMQ iterator to VQ_HS.
17393
17394 * config/arm/arm_neon.h (float16x4x2_t, float16x8x2_t, float16x4x3_t,
17395 float16x8x3_t, float16x4x4_t, float16x8x4_t, vcombine_f16,
17396 vget_high_f16, vget_low_f16, vld1_f16, vld1q_f16, vst1_f16, vst1q_f16,
17397 vst1_lane_f16, vst1q_lane_f16, vld2_f16, vld2q_f16, vld2_lane_f16,
17398 vld2q_lane_f16, vld2_dup_f16, vst2_f16, vst2q_f16, vst2_lane_f16,
17399 vst2q_lane_f16, vld3_f16, vld3q_f16, vld3_lane_f16, vld3q_lane_f16,
17400 vld3_dup_f16, vst3_f16, vst3q_f16, vst3_lane_f16, vst3q_lane_f16,
17401 vld4_f16, vld4q_f16, vld4_lane_f16, vld4q_lane_f16, vld4_dup_f16,
17402 vst4_f16, vst4q_f16, vst4_lane_f16, vst4q_lane_f16): New.
17403
17404 2015-09-08 Alan Lawrence <alan.lawrence@arm.com>
17405
17406 * config/arm/arm_neon.h (vgetq_lane_f16, vsetq_lane_f16, vld1q_lane_f16,
17407 vld1q_dup_f16, vreinterpretq_p8_f16, vreinterpretq_p16_f16,
17408 vreinterpretq_f16_p8, vreinterpretq_f16_p16, vreinterpretq_f16_f32,
17409 vreinterpretq_f16_p64, vreinterpretq_f16_p128, vreinterpretq_f16_s64,
17410 vreinterpretq_f16_u64, vreinterpretq_f16_s8, vreinterpretq_f16_s16,
17411 vreinterpretq_f16_s32, vreinterpretq_f16_u8, vreinterpretq_f16_u16,
17412 vreinterpretq_f16_u32, vreinterpretq_f32_f16, vreinterpretq_p64_f16,
17413 vreinterpretq_p128_f16, vreinterpretq_s64_f16, vreinterpretq_u64_f16,
17414 vreinterpretq_s8_f16, vreinterpretq_s16_f16, vreinterpretq_s32_f16,
17415 vreinterpretq_u8_f16, vreinterpretq_u16_f16, vreinterpretq_u32_f16):
17416 New.
17417
17418 2015-09-08 Alan Lawrence <alan.lawrence@arm.com>
17419
17420 * config/arm/arm.h (VALID_NEON_QREG_MODE): Add V8HFmode.
17421
17422 * config/arm/arm.c (arm_vector_mode_supported_p): Support V8HFmode.
17423
17424 * config/arm/arm-builtins.c (v8hf_UP): New.
17425 (arm_init_simd_builtin_types): Initialise Float16x8_t.
17426
17427 * config/arm/arm-simd-builtin-types.def (Float16x8_t): New.
17428
17429 * config/arm/arm_neon.h (float16x8_t): New typedef.
17430
17431 2015-09-08 Alan Lawrence <alan.lawrence@arm.com>
17432
17433 * config/arm/arm_neon.h (float16_t, vget_lane_f16, vset_lane_f16,
17434 vcreate_f16, vld1_lane_f16, vld1_dup_f16, vreinterpret_p8_f16,
17435 vreinterpret_p16_f16, vreinterpret_f16_p8, vreinterpret_f16_p16,
17436 vreinterpret_f16_f32, vreinterpret_f16_p64, vreinterpret_f16_s64,
17437 vreinterpret_f16_u64, vreinterpret_f16_s8, vreinterpret_f16_s16,
17438 vreinterpret_f16_s32, vreinterpret_f16_u8, vreinterpret_f16_u16,
17439 vreinterpret_f16_u32, vreinterpret_f32_f16, vreinterpret_p64_f16,
17440 vreinterpret_s64_f16, vreinterpret_u64_f16, vreinterpret_s8_f16,
17441 vreinterpret_s16_f16, vreinterpret_s32_f16, vreinterpret_u8_f16,
17442 vreinterpret_u16_f16, vreinterpret_u32_f16): New.
17443
17444 2015-09-07 Ilya Verbin <ilya.verbin@intel.com>
17445
17446 * config/i386/intelmic-mkoffload.c (prepare_target_image): Handle all
17447 non-alphanumeric characters in the symbol name.
17448
17449 2015-09-07 Marek Polacek <polacek@redhat.com>
17450
17451 PR inline-asm/67448
17452 * gimplify.c (gimplify_asm_expr): Don't allow MODIFY_EXPR as
17453 a memory input.
17454
17455 2015-09-07 Marek Polacek <polacek@redhat.com>
17456
17457 * system.h (INTTYPE_MINIMUM): Rewrite to avoid shift warning.
17458
17459 2015-09-04 Paolo Bonzini <bonzini@gnu.org>
17460
17461 * config/i386/cygming.h (SUBTARGET_OVERRIDE_OPTIONS): Do
17462 not warn.
17463
17464 2015-09-04 Jakub Jelinek <jakub@redhat.com>
17465
17466 PR middle-end/67452
17467 * tree-ssa-live.c: Include cfgloop.h.
17468 (remove_unused_locals): Clear loop->simduid if simduid is about
17469 to be removed from cfun->local_decls.
17470
17471 2015-09-02 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
17472
17473 PR target/65210
17474 * config/avr/avr.c (avr_eval_addr_attrib): Look for io_low
17475 attribute as well.
17476
17477 2015-09-04 Tom de Vries <tom@codesourcery.com>
17478
17479 * doc/invoke.texi (@item -ftrapv, @item -fwrapv): Document interaction.
17480
17481 2015-09-04 Jeff Law <law@redhat.com>
17482
17483 * tree-ssa-scopedtables.c (const_and_copies::const_and_copies): Remove
17484 unnecessary constructor. It's now trivial and implemented inside...
17485 * tree-ssa-scopedtables.h (const_and_copies): Implement trivial
17486 constructor. Add comments to various methods. Remove unused
17487 private fields.
17488 * tree-ssa-dom.c (pass_dominator::execute): Corresponding changes.
17489 * tree-vrp.c (identify_jump_threads): Likewise.
17490 * tree-ssa-threadedge.c (thread_through_normal_block): Fix minor
17491 indentation issues.
17492 (thread_across_edge): Similarly.
17493 (record_temporary_equivalences_from_stmts_at_dest): Remove unused
17494 arguments in constructor call.
17495
17496 2015-09-04 Jonas Hahnfeld <Hahnfeld@itc.rwth-aachen.de>
17497
17498 * config/i386/intelmic-mkoffload.c (prepare_target_image): Fix if the
17499 temp path contains a '-'.
17500
17501 2015-09-04 Andrey Turetskiy <andrey.turetskiy@intel.com>
17502 Petr Murzin <petr.murzin@intel.com>
17503 Kirill Yukhin <kirill.yukhin@intel.com>
17504
17505 * config/i386/i386-builtin-types.def
17506 (VOID_PFLOAT_HI_V8DI_V16SF_INT): New.
17507 (VOID_PDOUBLE_QI_V16SI_V8DF_INT): Ditto.
17508 (VOID_PINT_HI_V8DI_V16SI_INT): Ditto.
17509 (VOID_PLONGLONG_QI_V16SI_V8DI_INT): Ditto.
17510 * config/i386/i386.c
17511 (ix86_builtins): Add IX86_BUILTIN_SCATTERALTSIV8DF,
17512 IX86_BUILTIN_SCATTERALTDIV16SF, IX86_BUILTIN_SCATTERALTSIV8DI,
17513 IX86_BUILTIN_SCATTERALTDIV16SI.
17514 (ix86_init_mmx_sse_builtins): Define __builtin_ia32_scatteraltsiv8df,
17515 __builtin_ia32_scatteraltdiv8sf, __builtin_ia32_scatteraltsiv8di,
17516 __builtin_ia32_scatteraltdiv8si.
17517 (ix86_expand_builtin): Handle IX86_BUILTIN_SCATTERALTSIV8DF,
17518 IX86_BUILTIN_SCATTERALTDIV16SF, IX86_BUILTIN_SCATTERALTSIV8DI,
17519 IX86_BUILTIN_SCATTERALTDIV16SI.
17520 (ix86_vectorize_builtin_scatter): New.
17521 (TARGET_VECTORIZE_BUILTIN_SCATTER): Define as
17522 ix86_vectorize_builtin_scatter.
17523
17524 2015-09-04 Andrey Turetskiy <andrey.turetskiy@intel.com>
17525 Petr Murzin <petr.murzin@intel.com>
17526 Kirill Yukhin <kirill.yukhin@intel.com>
17527
17528 * doc/tm.texi.in (TARGET_VECTORIZE_BUILTIN_SCATTER): New.
17529 * doc/tm.texi: Regenerate.
17530 * target.def: Add scatter builtin.
17531 * tree-vectorizer.h: Rename gather_p to gather_scatter_p and use it
17532 for loads/stores in case of gather/scatter accordingly.
17533 (STMT_VINFO_GATHER_SCATTER_P(S)): Use it instead of
17534 STMT_VINFO_GATHER_P(S).
17535 (vect_check_gather): Rename to ...
17536 (vect_check_gather_scatter): this.
17537 * tree-vect-data-refs.c (vect_analyze_data_ref_dependence): Use
17538 STMT_VINFO_GATHER_SCATTER_P instead of STMT_VINFO_SCATTER_P.
17539 (vect_check_gather_scatter): Use it instead of vect_check_gather.
17540 (vect_analyze_data_refs): Add gatherscatter enum and maybe_scatter
17541 variable and new checkings for it accordingly.
17542 * tree-vect-stmts.c
17543 (STMT_VINFO_GATHER_SCATTER_P(S)): Use it instead of
17544 STMT_VINFO_GATHER_P(S).
17545 (vect_check_gather_scatter): Use it instead of vect_check_gather.
17546 (vectorizable_store): Add checkings for STMT_VINFO_GATHER_SCATTER_P.
17547
17548 2015-09-03 Bill Schmidt <wschmidt@vnet.linux.ibm.com>
17549
17550 * config/rs6000/altivec.md (altivec_vperm_v8hiv16qi): New
17551 define_insn.
17552 (mulv16qi3): New define_expand.
17553
17554 2015-09-03 Martin Sebor <msebor@redhat.com>
17555
17556 PR c/66516
17557 * doc/extend.texi (Other Builtins): Document when the address
17558 of a built-in function can be taken.
17559
17560 2015-09-03 Richard Biener <rguenther@suse.de>
17561
17562 * dwarf2out.c (flush_limbo_die_list): Split out from ...
17563 (dwarf2out_early_finish): ... here.
17564 (dwarf2out_finish): Do not call dwarf2out_early_finish but
17565 flush_limbo_die_list. Assert we have no deferred asm names.
17566
17567 2015-09-03 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
17568
17569 * optabs.c (expand_binop): Don't create a broadcast vector with a
17570 source element wider than the inner mode.
17571
17572 2015-09-03 Richard Biener <rguenther@suse.de>
17573
17574 * varasm.c (output_constant): Use fold_convert instead of
17575 wide_int_to_tree.
17576
17577 2015-09-03 Tom de Vries <tom@codesourcery.com>
17578
17579 PR tree-optimization/65637
17580 * omp-low.c (expand_omp_for_static_chunk): Handle case that
17581 fin_bb has 2 predecessors.
17582
17583 2015-09-03 Tom de Vries <tom@codesourcery.com>
17584
17585 PR tree-optimization/65637
17586 * omp-low.c (find_phi_with_arg_on_edge): New function.
17587 (expand_omp_for_static_chunk): Fix inner loop phi.
17588
17589 2015-09-03 Tom de Vries <tom@codesourcery.com>
17590
17591 PR tree-optimization/65637
17592 * omp-low.c (expand_omp_for_static_chunk): Fix gcc_assert for the case
17593 that head is NULL.
17594
17595 2015-09-03 Tom de Vries <tom@codesourcery.com>
17596
17597 * omp-low.c (expand_omp_for_static_chunk): Handle simple latch bb.
17598
17599 2015-09-03 Tom de Vries <tom@codesourcery.com>
17600
17601 * doc/invoke.texi (parloops-chunk-size): Add item.
17602 * params.def (PARAM_PARLOOPS_CHUNK_SIZE): Add DEFPARAM.
17603 * tree-parloops.c: Include params.h.
17604 (create_parallel_loop): Set chunk-size of schedule of omp-for loop, if
17605 param parloops-chunk-size is used.
17606
17607 2015-09-03 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
17608
17609 PR middle-end/67351
17610 * fold-const.c (fold_binary_loc) : Move
17611 Transform (x >> c) << c into x & (-1<<c) or
17612 transform (x << c) >> c into x & ((unsigned)-1 >> c) for unsigned
17613 types using simplify and match.
17614 * match.pd (lshift (rshift @0 INTEGER_CST@1) @1) : New simplifier.
17615 (rshift (lshift @0 INTEGER_CST@1) @1) : New Simplifier
17616
17617 2015-09-03 Richard Biener <rguenther@suse.de>
17618
17619 PR ipa/66705
17620 * tree-ssa-structalias.c (ctor_for_analysis): New function.
17621 (create_variable_info_for_1): Use ctor_for_analysis instead
17622 of get_constructor.
17623 (create_variable_info_for): Likewise.
17624
17625 2015-09-02 Charles Baylis <charles.baylis@linaro.org>
17626
17627 PR ipa/67280
17628 * cgraphunit.c (cgraph_node::create_wrapper): Set can_throw_external
17629 in new callgraph edge.
17630
17631 2015-09-02 Christophe Lyon <christophe.lyon@linaro.org>
17632
17633 PR target/59810
17634 PR target/63652
17635 PR target/63653
17636 * config/aarch64/aarch64-simd.md
17637 (aarch64_ld<VSTRUCT:nregs><VQ:mode>): Call
17638 gen_aarch64_simd_ld<VSTRUCT:nregs><VQ:mode>.
17639 (aarch64_st<VSTRUCT:nregs><VQ:mode>): Call
17640 gen_aarch64_simd_st<VSTRUCT:nregs><VQ:mode>.
17641
17642 2015-09-02 Alan Modra <amodra@gmail.com>
17643
17644 * config/rs6000/sysv4le.h (LINK_TARGET_SPEC): Don't define.
17645 * config/rs6000/sysv4.h (LINK_TARGET_SPEC): Likewise.
17646 (LINK_SPEC, SUBTARGET_EXTRA_SPECS): Delete link_target.
17647
17648 2015-09-02 Alan Modra <amodra@gmail.com>
17649
17650 PR target/67417
17651 * config/rs6000/predicates.md (current_file_function_operand): Don't
17652 return true for weak symbols.
17653 * config/rs6000/rs6000.c (rs6000_function_ok_for_sibcall): Likewise.
17654
17655 2015-09-01 Matthew Fortune <matthew.fortune@imgtec.com>
17656 Andrew Bennett <andrew.bennett@imgtec.com>
17657
17658 * config/mips/mips-opts.h (mips_cb_setting): New enum.
17659 * config/mips/mips-protos.h: Add definitions for
17660 mips_output_jump and mips_output_equal_conditional_branch
17661 * config/mips/mips.c (MIPS_JR): Change to support the
17662 JIC instruction.
17663 (mips_emit_compare): Add support for the MIPS R6 conditional
17664 compact branches.
17665 (mips_process_sync_loop): Likewise.
17666 (mips_output_order_conditional_branch): Likewise.
17667 (mips16_build_call_stub): Change MIPS_CALL to
17668 mips_output_jump.
17669 (mips_print_operand_punctuation): Update 's' case to only
17670 apply to micromips r2.
17671 (mips_adjust_insn_length): Add support for forbidden slot
17672 hazards.
17673 (mips_avoid_hazard): Likewise.
17674 (mips_reorg_process_insns): Likewise.
17675 (mips_output_jump): New function.
17676 (mips_output_equal_conditional_branch): Likewise.
17677 (mips_output_conditional_branch): Use jrc/bc if compact
17678 branch support is enabled. Ensure the forbidden slots
17679 between the two branch instructions is filled with a nop.
17680 (mips_option_override): Add support to process the compact
17681 branch option and set the correct defaults. Prevent
17682 non-explict relocs being using for MIPS R6.
17683 (mips_trampoline_init): Add compact branch support.
17684 (mips_mult_zero_zero_cost): Allow zero initialisation of
17685 accumulators with TARGET_DSP.
17686 * config/mips/mips.h (TARGET_CB_NEVER): New define.
17687 (TARGET_CB_MAYBE): New define.
17688 (TARGET_CB_ALWAYS): New define.
17689 (ISA_HAS_DELAY_SLOTS): New define.
17690 (ISA_HAS_COMPACT_BRANCHES): New define.
17691 (ISA_HAS_JRC): New define.
17692 (MIPS_BRANCH_C): New define.
17693 (MIPS_CALL): Removed.
17694 (MICROMIPS_J): Removed.
17695 * config/mips/mips.md (compact_form): New attr.
17696 (hazard): Add support for forbidden slots.
17697 (define_delay): Add support for compact branches.
17698 (*branch_order<mode>): Likewise.
17699 (*branch_order<mode>_inverted): Likewise.
17700 (*branch_equality<mode>): Likewise.
17701 (*branch_equality<mode>_inverted): Likewise.
17702 (*jump_absolute): Likewise.
17703 (*jump_pic): Likewise.
17704 (indirect_jump): Use mips_output_jump to produce assembly output.
17705 (tablejump_<mode>"): Likewise.
17706 (*<optab>"): Likewise.
17707 (<optab>_internal): Likewise.
17708 (sibcall_internal): Likewise.
17709 (sibcall_value_internal): Likewise.
17710 (sibcall_value_multiple_internal): Likewise.
17711 (call_internal): Likewise.
17712 (call_split): Likewise.
17713 (call_internal_direct): Likewise.
17714 (call_direct_split): Likewise.
17715 (call_value_internal): Likewise.
17716 (call_value_split): Likewise.
17717 (call_value_internal_direct): Likewise.
17718 (call_value_direct_split): Likewise.
17719 (call_value_multiple_internal): Likewise.
17720 (call_value_multiple_split): Likewise.
17721 (mips_get_fcsr_mips16_<mode>): Likewise.
17722 (mips_set_fcsr_mips16_<mode>): Likewise.
17723 (tls_get_tp_mips16_<mode>): Likewise.
17724 * config/mips/mips.opt: Add -mcompact-branches option.
17725 * config/mips/predicates.md (order_operator): Ensure the
17726 conditional compact branches are only used if the ISA them.
17727 * doc/invoke.texi: Document -mcompact-branches option.
17728
17729 2015-09-01 Vladimir Makarov <vmakarov@redhat.com>
17730
17731 PR target/61578
17732 * lra-lives.c (process_bb_lives): Process move pseudos with the
17733 same value for copies and preferences
17734 * lra-constraints.c (match_reload): Create match reload pseudo
17735 with the same value from single dying input pseudo.
17736
17737 2015-09-01 Ilya Enkovich <enkovich.gnu@gmail.com>
17738
17739 PR target/67405
17740 * tree-chkp.c (chkp_find_bound_slots_1): Add NULL check.
17741
17742 2015-09-01 Aldy Hernandez <aldyh@redhat.com>
17743
17744 * trans-mem.c: Add contributed-by.
17745 * trans-mem.h: Same.
17746
17747 2015-09-01 Richard Biener <rguenther@suse.de>
17748
17749 * expr.c (expand_expr_real_1): For expanding TERed defs
17750 set the current location to that of the def if not UNKNOWN.
17751
17752 2015-09-01 David Sherwood <david.sherwood@arm.com>
17753
17754 * genmodes.c: Add CONST_MODE_UNIT_SIZE modifier.
17755
17756 2015-09-01 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
17757
17758 * ifcvt.c (struct noce_if_info): Add then_simple, else_simple,
17759 then_cost, else_cost fields. Change branch_cost field to unsigned int.
17760 (end_ifcvt_sequence): Call set_used_flags on each insn in the sequence.
17761 Include rtl-iter.h.
17762 (noce_simple_bbs): New function.
17763 (noce_try_move): Bail if basic blocks are not simple.
17764 (noce_try_store_flag): Likewise.
17765 (noce_try_store_flag_constants): Likewise.
17766 (noce_try_addcc): Likewise.
17767 (noce_try_store_flag_mask): Likewise.
17768 (noce_try_cmove): Likewise.
17769 (noce_try_minmax): Likewise.
17770 (noce_try_abs): Likewise.
17771 (noce_try_sign_mask): Likewise.
17772 (noce_try_bitop): Likewise.
17773 (bbs_ok_for_cmove_arith): New function.
17774 (noce_emit_all_but_last): Likewise.
17775 (noce_emit_insn): Likewise.
17776 (noce_emit_bb): Likewise.
17777 (noce_try_cmove_arith): Handle non-simple basic blocks.
17778 (insn_valid_noce_process_p): New function.
17779 (contains_mem_rtx_p): Likewise.
17780 (bb_valid_for_noce_process_p): Likewise.
17781 (noce_process_if_block): Allow non-simple basic blocks
17782 where appropriate.
17783
17784 2015-08-31 Alan Lawrence <alan.lawrence@arm.com>
17785
17786 * tree-ssa-dom.c (record_equivalences_from_phis,
17787 record_equivalences_from_stmt, optimize_stmt): Use dom_valueize.
17788 (lookup_avail_expr): Likewise, and remove comment and unused temp.
17789
17790 2015-09-01 Nick Clifton <nickc@redhat.com>
17791
17792 * config/msp430/msp430.opt (mcpu): Fix typo.
17793
17794 2015-09-01 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
17795
17796 * config/aarch64/aarch64.c (aarch64_set_current_function):
17797 Re-layout any vector parameters have non-simd layout.
17798 * config/aarch64/aarch64-builtins.c (aarch64_relayout_simd_param):
17799 Delete.
17800 (aarch64_simd_expand_args): Delete call to the above.
17801
17802 2015-08-31 Mike Frysinger <vapier@gentoo.org>
17803
17804 * doc/invoke.texi (asan-stack): Add space before option.
17805
17806 2015-08-31 Marc Glisse <marc.glisse@inria.fr>
17807
17808 * tree.h (zerop): New function.
17809 * tree.c (zerop): Likewise.
17810 (element_precision): Handle expressions.
17811 * match.pd (define_predicates): Add zerop.
17812 (x <= +Inf): Fix comment.
17813 (abs (x) == 0, A & C == C, A & C != 0): Converted from ...
17814 * fold-const.c (fold_binary_loc): ... here. Remove.
17815
17816 2015-08-31 Richard Biener <rguenther@suse.de>
17817
17818 PR middle-end/67381
17819 * genmatch.c (dt_node::gen_kids): Also treat matches as barrier.
17820
17821 2015-08-31 Marc Glisse <marc.glisse@inria.fr>
17822
17823 * match.pd (SIN, COS, TAN, COSH): Reorder for consistency.
17824 (CEXPI): New operator list.
17825 (real (conj (x)), imag (conj (x)), real (x +- y), real (cexpi (x)),
17826 imag (cexpi (x)), conj (conj (x)), conj (complex (x, y))):
17827 Converted from ...
17828 * fold-const.c (fold_unary_loc, fold_binary_loc): ... here. Remove.
17829
17830 2015-08-31 Tom de Vries <tom@codesourcery.com>
17831
17832 * tree-ssa-loop-manip.c (find_uses_to_rename_stmt)
17833 (find_uses_to_rename_bb, find_uses_to_rename): Add and handle use_flags
17834 parameter.
17835 (find_uses_to_rename_def, find_uses_to_rename_in_loop): New function.
17836 (rewrite_into_loop_closed_ssa_1): New function, factored out of ...
17837 (rewrite_into_loop_closed_ssa): ... here.
17838 (replace_uses_in_dominated_bbs): Remove function.
17839 (rewrite_virtuals_into_loop_closed_ssa): Reimplement using
17840 rewrite_into_loop_closed_ssa_1.
17841
17842 2015-08-31 Michael Matz <matz@suse.de>
17843
17844 * cfganal.c (pre_and_rev_post_order_compute_fn): Correctly
17845 enter entry and exit blocks for reverse post order.
17846
17847 2015-08-31 Richard Biener <rguenther@suse.de>
17848
17849 * lto-streamer.h (lto_location_cache::cached_location::sysp): Add.
17850 (lto_location_cache::current_sysp): Likewise.
17851 (output_block::current_sysp): Likewise.
17852 * lto-streamer-in.c (lto_location_cache::cmp_loc): Compare sysp.
17853 (lto_location_cache::apply_location_cache): Properly record
17854 system header locations.
17855 (lto_location_cache::input_location): Input whether a file
17856 is a system header.
17857 * lto-streamer-out.c (lto_output_location): Stream whether a file
17858 is a system header.
17859
17860 2015-08-31 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
17861
17862 PR bootstrap/67363
17863 * gcc.c (env_manager::xput): Replace strndup by xstrndup.
17864
17865 2015-08-31 Tom de Vries <tom@codesourcery.com>
17866
17867 * tree-ssa-loop-manip.c (find_uses_to_rename_use)
17868 (find_uses_to_rename_stmt, find_uses_to_rename_bb, find_uses_to_rename):
17869 Improve function header comments.
17870
17871 2015-08-30 Michael Collison <michael.collison@linaro.org>
17872
17873 PR other/67320
17874 * doc.md.texi: Rename [su]sum_widen to widen_[su]sum to reflect correct
17875 standard names
17876
17877 2015-08-30 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
17878
17879 * config/rs6000/rs6000.c (swap_web_entry): Enlarge
17880 special_handling bitfield.
17881 (special_handling_values): Add SH_XXPERMDI and SH_CONCAT.
17882 (rtx_is_swappable_p): Add handling for vec_select/vec_concat form
17883 that represents a general xxpermdi.
17884 (insn_is_swappable_p): Add handling for vec_concat of two
17885 doublewords, which maps to a specific xxpermdi.
17886 (adjust_xxpermdi): New function.
17887 (adjust_concat): Likewise.
17888 (handle_special_swappables): Call adjust_xxpermdi and
17889 adjust_concat.
17890 (dump_swap_insn_table): Handle SH_XXPERMDI and SH_CONCAT.
17891
17892 2015-08-30 Rich Felker <dalias@libc.org>
17893
17894 * config.gcc (supported_defaults): Handle sh[123456ble]*-*-*
17895 case instead of sh[123456ble]-*-*.
17896
17897 2015-08-29 Anatoly Sokolov <aesok@post.ru>
17898
17899 * ira.c (print_unform_and_important_classes,
17900 print_translated_classes): Remove reg_class_names static array.
17901 (print_unform_and_important_classes): Rename to ...
17902 (print_uniform_and_important_classes): ... this.
17903 (ira_debug_allocno_classes): Update accordingly.
17904
17905 2015-08-29 Tom de Vries <tom@codesourcery.com>
17906
17907 PR tree-optimization/46193
17908 * omp-low.c (omp_reduction_init): Handle pointer type for min or max
17909 clause.
17910
17911 2015-08-28 Jeff Law <law@redhat.com>
17912
17913 PR lto/66752
17914 * tree-ssa-threadedge.c (simplify_conrol_stmt_condition): If we are
17915 unable to find X NE 0 in the tables, return X as the simplified
17916 condition.
17917 (fsm_find_control_statement_thread_paths): If nodes in NEXT_PATH are
17918 in VISISTED_BBS, then return failure. Else add nodes from NEXT_PATH
17919 to VISISTED_BBS.
17920 * tree-ssa-threadupdate.c (duplicate_thread_path): Fix up edge flags
17921 after removing the control flow statement and unnecessary edges.
17922
17923 2015-08-28 Alan Lawrence <alan.lawrence@arm.com>
17924
17925 Revert:
17926 2015-08-27 Alan Lawrence <alan.lawrence@arm.com>
17927
17928 PR tree-optimization/67283
17929 * tree-sra.c (type_consists_of_records_p): Rename to...
17930 (scalarizable_type_p): ...this, add case for ARRAY_TYPE.
17931
17932 (completely_scalarize_record): Rename to...
17933 (completely_scalarize): ...this, add ARRAY_TYPE case, move some
17934 code to:
17935 (scalarize_elem): New.
17936
17937 2015-08-28 Jiong Wang <jiong.wang@arm.com>
17938
17939 * config/aarch64/aarch64-protos.h (aarch64_symbol_context): Rename
17940 SYMBOL_SMALL_GOTTPREL to SYMBOL_SMALL_TLSIE.
17941 (aarch64_symbol_type): Likewise.
17942 * config/aarch64/aarch64.c (aarch64_load_symref_appropriately):
17943 Likewise.
17944 (aarch64_expand_mov_immediate): Likewise.
17945 (aarch64_print_operand): Likewise.
17946 (aarch64_classify_tls_symbol): Likewise.
17947
17948 2015-08-28 Richard Biener <rguenther@suse.de>
17949
17950 * cgraphunit.c (symbol_table::compile): Move early debug generation
17951 and finish...
17952 (symbol_table::finalize_compilation_unit): ... back here and
17953 add a !seen_error () guard.
17954
17955 2015-08-27 Sebastian Pop <s.pop@samsung.com>
17956
17957 * toplev.c (process_options): Do not use flag_loop_block,
17958 flag_loop_interchange, and flag_loop_strip_mine. Add check for
17959 flag_loop_optimize_isl.
17960
17961 2015-08-27 Sebastian Pop <s.pop@samsung.com>
17962
17963 * Makefile.in (OBJS): Remove graphite-blocking.o and
17964 graphite-interchange.o.
17965 * common.opt (floop-strip-mine, floop-interchange, floop-block):
17966 Alias of floop-nest-optimize.
17967 * doc/invoke.texi (floop-strip-mine, floop-interchange, floop-block):
17968 Document as alias of -floop-nest-optimize.
17969 * graphite-blocking.c: Remove.
17970 * graphite-interchange.c: Remove.
17971 * graphite-optimize-isl.c: Include dumpfile.h.
17972 (getScheduleForBand): Add dump for tiled loops. Use
17973 PARAM_LOOP_BLOCK_TILE_SIZE instead of hard coded constant.
17974 * graphite-poly.c (scop_max_loop_depth): Remove.
17975 (print_scattering_function_1): Remove.
17976 (print_scattering_function): Remove.
17977 (print_scattering_functions): Remove.
17978 (debug_scattering_function): Remove.
17979 (debug_scattering_functions): Remove.
17980 (apply_poly_transforms): Remove use of flag_loop_block,
17981 flag_loop_strip_mine, and flag_loop_interchange.
17982 (new_poly_bb): Remove use of PBB_TRANSFORMED, PBB_SAVED, and
17983 PBB_ORIGINAL.
17984 (print_pdr_access_layout): Remove.
17985 (print_pdr): Print ISL representation.
17986 (new_scop): Remove use of SCOP_ORIGINAL_SCHEDULE,
17987 SCOP_TRANSFORMED_SCHEDULE, and SCOP_SAVED_SCHEDULE.
17988 (free_scop): Same.
17989 (openscop_print_pbb_domain): Remove.
17990 (print_pbb): Remove call to print_scattering_function.
17991 (openscop_print_scop_context): Remove.
17992 (print_scop_context): Do not print matrices anymore.
17993 (print_scop): Do not print SCOP_ORIGINAL_SCHEDULE and
17994 SCOP_TRANSFORMED_SCHEDULE.
17995 (print_isl_set): Add printing of a new line.
17996 (print_isl_map): Same.
17997 (print_isl_aff): Same.
17998 (print_isl_constraint): Same.
17999 (loop_to_lst): Remove.
18000 (scop_to_lst): Remove.
18001 (lst_indent_to): Remove.
18002 (print_lst): Remove.
18003 (debug_lst): Remove.
18004 (dot_lst_1): Remove.
18005 (dot_lst): Remove.
18006 (reverse_loop_at_level): Remove.
18007 (reverse_loop_for_pbbs): Remove.
18008 * graphite-poly.h (pdr_dim_iter_domain): Remove.
18009 (pdr_nb_params): Remove.
18010 (pdr_alias_set_dim): Remove.
18011 (pdr_subscript_dim): Remove.
18012 (pdr_iterator_dim): Remove.
18013 (pdr_parameter_dim): Remove.
18014 (same_pdr_p): Remove.
18015 (struct poly_scattering): Remove.
18016 (struct poly_bb): Remove _original, _transformed, _saved.
18017 (PBB_DOMAIN, PBB_ORIGINAL, PBB_ORIGINAL_SCATTERING): Remove.
18018 (PBB_TRANSFORMED, PBB_TRANSFORMED_SCATTERING, PBB_SAVED): Remove.
18019 (PBB_NB_LOCAL_VARIABLES): Remove.
18020 (PBB_NB_SCATTERING_TRANSFORM): Remove.
18021 (schedule_to_scattering): Remove.
18022 (number_of_write_pdrs): Remove.
18023 (pbb_dim_iter_domain): Remove.
18024 (pbb_nb_params): Remove.
18025 (pbb_nb_scattering_orig): Remove.
18026 (pbb_nb_scattering_transform): Remove.
18027 (pbb_nb_dynamic_scattering_transform): Remove.
18028 (pbb_nb_local_vars): Remove.
18029 (pbb_iterator_dim): Remove.
18030 (pbb_parameter_dim): Remove.
18031 (psco_scattering_dim): Remove.
18032 (psct_scattering_dim): Remove.
18033 (psct_local_var_dim): Remove.
18034 (psco_iterator_dim): Remove.
18035 (psct_iterator_dim): Remove.
18036 (psco_parameter_dim): Remove.
18037 (psct_parameter_dim): Remove.
18038 (psct_dynamic_dim): Remove.
18039 (psct_static_dim): Remove.
18040 (psct_add_local_variable): Remove.
18041 (new_lst_loop): Remove.
18042 (new_lst_stmt): Remove.
18043 (free_lst): Remove.
18044 (copy_lst): Remove.
18045 (lst_add_loop_under_loop): Remove.
18046 (lst_depth): Remove.
18047 (lst_dewey_number): Remove.
18048 (lst_dewey_number_at_depth): Remove.
18049 (lst_pred): Remove.
18050 (lst_succ): Remove.
18051 (lst_find_pbb): Remove.
18052 (find_lst_loop): Remove.
18053 (lst_find_first_pbb): Remove.
18054 (lst_empty_p): Remove.
18055 (lst_find_last_pbb): Remove.
18056 (lst_contains_p): Remove.
18057 (lst_contains_pbb): Remove.
18058 (lst_create_nest): Remove.
18059 (lst_remove_from_sequence): Remove.
18060 (lst_remove_loop_and_inline_stmts_in_loop_father): Remove.
18061 (lst_niter_for_loop): Remove.
18062 (pbb_update_scattering): Remove.
18063 (lst_update_scattering_under): Remove.
18064 (lst_update_scattering): Remove.
18065 (lst_insert_in_sequence): Remove.
18066 (lst_replace): Remove.
18067 (lst_substitute_3): Remove.
18068 (lst_distribute_lst): Remove.
18069 (lst_remove_all_before_including_pbb): Remove.
18070 (lst_remove_all_before_excluding_pbb): Remove.
18071 (struct scop): Remove original_schedule, transformed_schedule, and
18072 saved_schedule.
18073 (SCOP_ORIGINAL_SCHEDULE, SCOP_TRANSFORMED_SCHEDULE): Remove.
18074 (SCOP_SAVED_SCHEDULE): Remove.
18075 (poly_scattering_new): Remove.
18076 (poly_scattering_free): Remove.
18077 (poly_scattering_copy): Remove.
18078 (store_scattering_pbb): Remove.
18079 (store_lst_schedule): Remove.
18080 (restore_lst_schedule): Remove.
18081 (store_scattering): Remove.
18082 (restore_scattering_pbb): Remove.
18083 (restore_scattering): Remove.
18084 * graphite-sese-to-poly.c (build_pbb_scattering_polyhedrons):
18085 Remove scattering_dimensions. Do not use pbb_dim_iter_domain:
18086 compute the scattering polyhedron dimension from the dimension of
18087 pbb->domain.
18088 (build_scop_scattering): Update call to
18089 build_pbb_scattering_polyhedrons.
18090 (build_poly_scop): Remove call to scop_to_lst.
18091 * graphite.c (graphite_transform_loops): Add call to print_scop.
18092 (gate_graphite_transforms): Remove use of flag_loop_block,
18093 flag_loop_interchange, and flag_loop_strip_mine.
18094
18095 2015-08-27 Sebastian Pop <s.pop@samsung.com>
18096
18097 * common.opt (floop-unroll-and-jam): Make alias of floop-nest-optimize.
18098 * doc/invoke.texi (-floop-unroll-and-jam): Document as alias of
18099 -floop-nest-optimize.
18100 * graphite-isl-ast-to-gimple.c (generate_luj_sepclass_opt): Remove.
18101 (generate_luj_sepclass): Remove.
18102 (generate_luj_options): Remove.
18103 (set_options): Remove opt_luj.
18104 (scop_to_isl_ast): Remove opt_luj.
18105 * graphite-optimize-isl.c (getScheduleForBand): Remove check for
18106 flag_loop_unroll_jam.
18107 (getPrevectorMap_full): Remove.
18108 (getScheduleForBandList): Remove map_sepcl.
18109 (getScheduleMap): Same.
18110 (apply_schedule_map_to_scop): Remove sepcl.
18111 (optimize_isl): Same.
18112 * graphite-poly.c (apply_poly_transforms): Remove check for
18113 flag_loop_unroll_jam.
18114 (new_poly_bb): Remove map_sepclass.
18115 * graphite-poly.h (struct poly_bb): Same.
18116 * graphite.c (gate_graphite_transforms): Remove flag_loop_unroll_jam.
18117 * params.def (PARAM_LOOP_UNROLL_JAM_SIZE)
18118 (PARAM_LOOP_UNROLL_JAM_DEPTH): Remove.
18119 * toplev.c (process_options): Remove flag_loop_unroll_jam.
18120
18121 2015-08-27 Uros Bizjak <ubizjak@gmail.com>
18122
18123 PR target/67317
18124 * config/i386/i386.md (*add<mode>3_cc): Remove insn pattern.
18125 (addqi3_cc): Ditto.
18126 (UNSPEC_ADD_CARRY): Remove.
18127 (addqi3_cconly_overflow): New expander.
18128 (*add<dwi>3_doubleword): Split to add<mode>3_cconly_overflow.
18129 Adjust for changed add<mode>3_carry.
18130 (*neg<dwi>2_doubleword): Adjust for changed add<mode>3_carry.
18131 (*sub<dwi>3_doubleword): Adjust for changed sub<mode>3_carry.
18132 (<plusminus_insn><mode>3_carry): Remove expander.
18133 (*<plusminus_insn><mode>3_carry): Split insn pattern to
18134 add<mode>3_carry and sub<mode>3_carry.
18135 (plusminus_carry_mnemonic): Remove code attribute.
18136 (add<mode>3_carry): Canonicalize insn pattern.
18137 (*addsi3_carry_zext): Ditto.
18138 (sub<mode>3_carry): Ditto.
18139 (*subsi3_carry_zext): Ditto.
18140 (adcx<mode>3): Remove insn pattern.
18141 (addcarry<mode>): New insn pattern.
18142 (subborrow<mode>): Ditto.
18143 * config/i386/i386.c (ix86_expand_strlensi_unroll_1): Use
18144 gen_addqi3_cconly_overflow instead of gen_addqi3_cc.
18145 (ix86_expand_builtin) <case IX86_BUILTIN_SBB32,
18146 case IX86_BUILTIN_SBB64, case IX86_BUILTIN_ADDCARRY32,
18147 case IX86_BUILTIN_ADDCARRY64>: Use CODE_FOR_subborrowsi,
18148 CODE_FOR_subborrowdi, CODE_FOR_addcarrysi and CODE_FOR_addcarrydi.
18149 Rewrite expander to not clobber carry flag chains.
18150
18151 2015-08-27 Pat Haugen <pthaugen@us.ibm.com>
18152
18153 * config/rs6000/vector.md (vec_shr_<mode>): Fix to do a shift
18154 instead of a rotate.
18155
18156 2015-08-27 Marek Polacek <polacek@redhat.com>
18157
18158 PR middle-end/67005
18159 * tree-ssa-dce.c (remove_dead_stmt): Also schedule fixup if removing
18160 an entry into an irreducible region.
18161
18162 2015-08-27 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
18163
18164 * configure: Regenerate.
18165
18166 2015-08-27 Alan Lawrence <alan.lawrence@arm.com>
18167
18168 PR tree-optimization/67283
18169 * tree-sra.c (type_consists_of_records_p): Rename to...
18170 (scalarizable_type_p): ...this, add case for ARRAY_TYPE.
18171
18172 (completely_scalarize_record): Rename to...
18173 (completely_scalarize): ...this, add ARRAY_TYPE case, move some code to:
18174 (scalarize_elem): New.
18175
18176 2015-08-27 Alan Lawrence <alan.lawrence@arm.com>
18177
18178 * tree-sra.c (completely_scalarize_var): Rename to...
18179 (create_total_scalarization_access): ... Here. Drop call to
18180 completely_scalarize_record.
18181
18182 (analyze_all_variable_accesses): Replace completely_scalarize_var
18183 with create_total_scalarization_access and completely_scalarize_record.
18184
18185 2015-08-27 Alan Modra <amodra@gmail.com>
18186
18187 PR target/67356
18188 * config/rs6000/rs6000.md (ior<mode>_mask): Use constraint "0"
18189 for operand 1.
18190
18191 2015-08-27 Richard Biener <rguenther@suse.de>
18192
18193 * passes.c (rest_of_decl_compilation): Guard early_global_decl
18194 call with !seen_error ().
18195 * cgraphunit.c (symbol_table::finalize_compilation_unit): Move
18196 early debug generation and finish...
18197 (symbol_table::compile): ... here to put it after a !seen_error ()
18198 guard.
18199
18200 2015-08-27 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
18201
18202 * config.gcc (*-*-solaris2*): Enable default_use_cxa_atexit on
18203 Solaris 12+.
18204
18205 2015-08-27 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
18206 Andre Vieira <andre.simoesdiasvieira@arm.com>
18207
18208 * config/aarch64/aarch64.md (*condjump): Handle functions > 1 MiB.
18209 (*cb<optab><mode>1): Likewise.
18210 (*tb<optab><mode>1): Likewise.
18211 (*cb<optab><mode>1): Likewise.
18212 * config/aarch64/iterators.md (inv_cb): New code attribute.
18213 (inv_tb): Likewise.
18214 * config/aarch64/aarch64.c (aarch64_gen_far_branch): New.
18215 * config/aarch64/aarch64-protos.h (aarch64_gen_far_branch): New.
18216
18217 2015-08-27 Richard Biener <rguenther@suse.de>
18218
18219 * ipa.c (cgraph_build_static_cdtor_1): Set DECL_IGNORED_P.
18220
18221 2015-08-27 Dominik Vogt <vogt@linux.vnet.ibm.com>
18222
18223 * config/s390/s390.c (s390_emit_prologue): Add emit_barrier() after
18224 trap to fix ICE.
18225
18226 2015-08-26 Michael Meissner <meissner@linux.vnet.ibm.com>
18227
18228 * config/rs6000/rs6000-protos.h (rs6000_expand_float128_convert):
18229 Add declaration.
18230
18231 * config/rs6000/rs6000.c (rs6000_emit_le_vsx_store): Fix a
18232 comment.
18233 (rs6000_cannot_change_mode_class): Add support for IEEE 128-bit
18234 floating point in VSX registers.
18235 (rs6000_output_move_128bit): Always print out the set insn if we
18236 can't generate an appropriate 128-bit move.
18237 (rs6000_generate_compare): Add support for IEEE 128-bit floating
18238 point in VSX registers comparisons.
18239 (rs6000_expand_float128_convert): Likewise.
18240
18241 * config/rs6000/predicates.md (int_reg_operand_not_pseudo): New
18242 predicate for only GPR hard registers.
18243
18244 * config/rs6000/rs6000.md (FP): Add IEEE 128-bit floating point
18245 modes to iterators. Add new iterators for moving 128-bit values in
18246 scalar FPR registers and VSX registers.
18247 (FMOVE128): Likewise.
18248 (FMOVE128_FPR): Likewise.
18249 (FMOVE128_GPR): Likewise.
18250 (FMOVE128_VSX): Likewise.
18251 (FLOAT128_SFDFTF): New iterators for IEEE 128-bit floating point
18252 in VSX registers.
18253 (IFKF): Likewise.
18254 (IBM128): Likewise.
18255 (TFIFKF): Likewise.
18256 (RELOAD): Add IEEE 128-bit floating point modes.
18257 (signbittf2): Convert TF insns to add support for new IEEE 128-bit
18258 floating point in VSX registers modes.
18259 (signbit<mode>2, IBM128 iterator): Likewise.
18260 (mov<mode>_64bit_dm, FMOVE128_FPR iterator): Likewise.
18261 (mov<mode>_32bit, FMOVE128_FPR iterator): Likewise.
18262 (negtf2): Likewise.
18263 (neg<mode>2, TFIFKF iterator): Likewise.
18264 (negtf2_internal): Likewise.
18265 (abstf2): Likewise.
18266 (abs<mode>2, TFIFKF iterator): Likewise.
18267 (ieee_128bit_negative_zero): New IEEE 128-bit floating point in
18268 VSX insn support for negate, absolute value, and negative absolute
18269 value.
18270 (ieee_128bit_vsx_neg<mode>2): Likewise.
18271 (ieee_128bit_vsx_neg<mode>2_internal): Likewise.
18272 (ieee_128bit_vsx_abs<mode>2): Likewise.
18273 (ieee_128bit_vsx_abs<mode>2_internal): Likewise.
18274 (ieee_128bit_vsx_nabs<mode>2): Likewise.
18275 (ieee_128bit_vsx_nabs<mode>2_internal): Likewise.
18276 (FP128_64): Update pack/unpack 128-bit insns for IEEE 128-bit
18277 floating point in VSX registers.
18278 (unpack<mode>_dm): Likewise.
18279 (unpack<mode>_nodm): Likewise.
18280 (pack<mode>): Likewise.
18281 (unpackv1ti): Likewise.
18282 (unpack<mode>, FMOVE128_VSX iterator): Likewise.
18283 (packv1ti): Likewise.
18284 (pack<mode>, FMOVE128_VSX iterator): Likewise.
18285 (extenddftf2): Add support for IEEE 128-bit floating point in VSX
18286 registers.
18287 (extenddftf2_internal): Likewise.
18288 (trunctfdf2): Likewise.
18289 (trunctfdf2_internal2): Likewise.
18290 (fix_trunc_helper): Likewise.
18291 (fix_trunctfdi2"): Likewise.
18292 (floatditf2): Likewise.
18293 (floatuns<mode>tf2): Likewise.
18294 (extend<FLOAT128_SFDFTF:mode><IFKF:mode>2): Likewise.
18295 (trunc<IFKF:mode><FLOAT128_SFDFTF:mode>2): Likewise.
18296 (fix_trunc<IFKF:mode><SDI:mode>2): Likewise.
18297 (fixuns_trunc<IFKF:mode><SDI:mode>2): Likewise.
18298 (float<SDI:mode><IFKF:mode>2): Likewise.
18299 (floatuns<SDI:mode><IFKF:mode>2): Likewise.
18300
18301 2015-08-26 Renlin Li <renlin.li@arm.com>
18302
18303 * config/aarch64/aarch64.md (*aarch64_bfi<GPI:mode><ALLX:mode>4): New.
18304
18305 2015-08-26 Marcus Shawcroft <marcus.shawcroft@arm.com>
18306 Jiong Wang <jiong.wang@arm.com>
18307
18308 * config/aarch64/aarch64.md (UNSPEC_GOTTINYTLS): New UNSPEC.
18309 (tlsie_tiny_<mode>): New define_insn.
18310 (tlsie_tiny_sidi): Likewise.
18311 * config/aarch64/aarch64-protos.h (aarch64_symbol_type): Define
18312 SYMBOL_TINY_TLSIE.
18313 (aarch64_symbol_context): New comment for SYMBOL_TINY_TLSIE.
18314 * config/aarch64/aarch64.c (aarch64_load_symref_appropriately): Support
18315 SYMBOL_TINY_TLSIE.
18316 (aarch64_expand_mov_immediate): Likewise.
18317 (aarch64_print_operand): Likewise.
18318 (arch64_classify_tls_symbol): Likewise.
18319
18320 2015-08-26 Matthew Wahab <matthew.wahab@arm.com>
18321
18322 * config/arm/arm-arches.def: Replace single value flags with
18323 an initializer built from ARM_FSET_MAKE_CPU1.
18324 * config/arm/arm-cores.def: Likewise.
18325 * config/arm/arm.c: (all_cores): Remove ARM_FSET_MAKE_CPU1
18326 derivation from the ARM_CORE macro definition, use the given value
18327 instead.
18328 (all_architectures): Remove ARM_FSET_MAKE_CPU1 derivation from the
18329 ARM_ARCH macro definition, use the given value instead.
18330
18331 2015-08-26 Matthew Wahab <matthew.wahab@arm.com>
18332
18333 * config/arm/arm-builtins.c (def_mbuiltin): Test all flags in a
18334 feature set.
18335 (struct builtin_description): Replace field mask with field
18336 features.
18337 (IWMMXT_BUILTIN): Use ARM_FSET macros for feature flags.
18338 (IWMMXT2_BUILTIN): Likewise.
18339 (IWMMXT2_BUILTIN2): Likewise.
18340 (FP_BUILTIN): Likewise.
18341 (CRC32_BUILTIN): Likewise.
18342 (CRYPTO_BUILTIN): Likewise.
18343 (iwmmx_mbuiltin): Likewise.
18344 (iwmmx2_mbuiltin): Likewise.
18345 (arm_init_iwmmxt_builtins): Likewise. Also, update for change to
18346 struct builtin_description.
18347
18348 2015-08-26 Matthew Wahab <matthew.wahab@arm.com>
18349
18350 * config/arm/arm-builtins.c (def_mbuiltin): Use ARM_FSET macro.
18351 (struct builtin_description): Change type of mask to unsigned
18352 long.
18353 * config/arm/arm-protos.h (insn_flags): Declare as type
18354 arm_feature_set.
18355 (tune_flags): Likewise.
18356 * config/arm/arm.c (feature_count): New.
18357 (insn_flags): Define as type arm_feature_set.
18358 (tune_flags): Likewise.
18359 (struct processors): Define field flags as type arm_feature_set.
18360 (all_cores): Update for change to struct processors.
18361 (all_architectures): Likewise.
18362 (arm_option_check_internal): Use arm_feature_set and ARM_FSET
18363 macros.
18364 (arm_option_override_internal): Likewise.
18365 (arm_option_override): Likewise.
18366
18367 2015-08-26 Marcus Shawcroft <marcus.shawcroft@arm.com>
18368 Jiong Wang <jiong.wang@arm.com>
18369
18370 * config/aarch64/aarch64.c (initialize_aarch64_tls_size): Set default
18371 tls size for tiny, small, large memory model.
18372 (aarch64_load_symref_appropriately): Support new symbol types.
18373 (aarch64_expand_mov_immediate): Likewise.
18374 (aarch64_print_operand): Likewise.
18375 (aarch64_classify_tls_symbol): Likewise.
18376 * config/aarch64/aarch64-protos.h (aarch64_symbol_context): Likewise.
18377 (aarch64_symbol_type): Likewise.
18378 * config/aarch64/aarch64.md (tlsle): Deleted.
18379 (tlsle12_<mode>): New define_insn.
18380 (tlsle24_<mode>): Likewise.
18381 (tlsle32_<mode>): Likewise.
18382 (tlsle48_<mode>): Likewise.
18383 * doc/sourcebuild.texi (AArch64-specific attributes): Document
18384 "aarch64_tlsle32".
18385
18386 2015-08-26 Matthew Wahab <matthew.wahab@arm.com>
18387
18388 * config/arm/arm-protos.h (FL_NONE): New.
18389 (FL_ANY): New.
18390 (arm_feature_set): New.
18391 (ARM_FSET_MAKE): New.
18392 (ARM_FSET_MAKE_CPU1): New.
18393 (ARM_FSET_MAKE_CPU2): New.
18394 (ARM_FSET_CPU1): New.
18395 (ARM_FSET_CPU2): New.
18396 (ARM_FSET_EMPTY): New.
18397 (ARM_FSET_ANY): New.
18398 (ARM_FSET_HAS_CPU1): New.
18399 (ARM_FSET_HAS_CPU2): New.
18400 (ARM_FSET_HAS_CPU): New.
18401 (ARM_FSET_ADD_CPU1): New.
18402 (ARM_FSET_ADD_CPU2): New.
18403 (ARM_FSET_DEL_CPU1): New.
18404 (ARM_FSET_DEL_CPU2): New.
18405 (ARM_FSET_UNION): New.
18406 (ARM_FSET_INTER): New.
18407 (ARM_FSET_XOR): New.
18408 (ARM_FSET_EXCLUDE): New.
18409 (AFM_FSET_IS_EMPTY): New.
18410 (ARM_FSET_CPU_SUBSET): New.
18411
18412 2015-08-26 Jiong Wang <jiong.wang@arm.com>
18413
18414 * config/aarch64/aarch64-protos.h (aarch64_symbol_type): Rename
18415 SYMBOL_TLSLE to SYMBOL_TLSLE24.
18416 * config/aarch64/aarch64.c (aarch64_load_symref_appropriately):
18417 Likewise.
18418 (aarch64_expand_mov_immediate): Likewise.
18419 (aarch64_print_operand): Likewise.
18420 (aarch64_classify_symbol): Likewise.
18421
18422 2015-08-26 Jiong Wang <jiong.wang@arm.com>
18423
18424 * config/aarch64/aarch64.opt (mtls-size): New entry.
18425 * config/aarch64/aarch64.c (initialize_aarch64_tls_size): New function.
18426 (aarch64_override_options_internal): Call initialize_aarch64_tls_size.
18427 * doc/invoke.texi (AArch64 Options): Document -mtls-size.
18428
18429 2015-08-26 Matthew Wahab <matthew.wahab@arm.com>
18430
18431 * config/arm/arm-cores.def: Add FL_FOR_ARCH flag for each
18432 ARM_CORE entry. Fix some white-space.
18433 * config/arm/arm.c: Remove FL_FOR_ARCH derivation from
18434 ARM_CORE definition.
18435
18436 2015-08-26 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
18437
18438 * fold-const.c (fold_binary_loc) : Move Optimize
18439 root(x)*root(y) as root(x*y) to match.pd.
18440 Move Optimize expN(x)*expN(y) as expN(x+y) to match.pd.
18441 Move Optimize pow(x,y)*pow(x,z) as pow(x,y+z) to match.pd.
18442 Move Optimize a/root(b/c) into a*root(c/b) to match.pd.
18443 Move Optimize x/expN(y) into x*expN(-y) to match.pd.
18444 * match.pd (mult (root:s @0) (root:s @1)): New simplifier.
18445 (mult (POW:s @0 @1) (POW:s @0 @2)) : New simplifier.
18446 (mult (exps:s @0) (exps:s @1)) : New simplifier.
18447 (rdiv @0 (root:s (rdiv:s @1 @2))) : New simplifier.
18448 (rdiv @0 (exps:s @1)) : New simplifier.
18449
18450 2015-08-25 Joseph Myers <joseph@codesourcery.com>
18451
18452 * gcc.c (driver::finalize): Only assign to extra_specs if
18453 [EXTRA_SPECS].
18454
18455 2015-08-25 Marek Polacek <polacek@redhat.com>
18456
18457 PR middle-end/67330
18458 * varasm.c (declare_weak): Return after giving an error.
18459
18460 2015-08-25 David Malcolm <dmalcolm@redhat.com>
18461
18462 * gcc-main.c (main): Add params to driver ctor.
18463 * gcc.c (class env_manager): New.
18464 (env): New global.
18465 (env_manager::init): New.
18466 (env_manager::get): New.
18467 (env_manager::xput): New.
18468 (env_manager::restore): New.
18469 Poison getenv and putenv.
18470 (DEFAULT_TARGET_SYSTEM_ROOT): New.
18471 (target_system_root): Update initialization to use
18472 DEFAULT_TARGET_SYSTEM_ROOT.
18473 (struct spec_list): Add field "default_ptr".
18474 (INIT_STATIC_SPEC): Initialize new field "default_ptr".
18475 (init_spec): Likewise.
18476 (set_spec): Clear field "default_ptr".
18477 (read_specs): Free "spec" and "buffer".
18478 (xputenv): Reimplement in terms of env_manager.
18479 (process_command): Replace ::getenv calls with calls to the
18480 env_manager singleton.
18481 (process_brace_body): Free string in three places.
18482 (driver::driver): New.
18483 (driver::~driver): New.
18484 (used_arg): Convert from a function to...
18485 (class used_arg_t): ...this class, and...
18486 (used_arg): ...this new global instance.
18487 (used_arg_t::finalize): New function.
18488 (getenv_spec_function): Add "const" to local "value". Replace
18489 ::getenv call with call to the env_manager singleton.
18490 (path_prefix_reset): New function.
18491 (driver::finalize): New function.
18492 * gcc.h (driver::driver): New.
18493 (driver::~driver): New.
18494 (driver::finalize): New.
18495
18496 2015-08-25 Nathan Sidwell <nathan@acm.org>
18497
18498 * optabs.c (emit_indirect_jump): Don't try an emit a jump if the
18499 target doesn't have one.
18500
18501 2015-08-25 Segher Boessenkool <segher@kernel.crashing.org>
18502
18503 PR target/67346
18504 * config/rs6000/rs6000.md (*ior<mode>_mask): Use a match_scratch.
18505
18506 2015-08-25 Segher Boessenkool <segher@kernel.crashing.org>
18507
18508 PR target/67344
18509 * config/rs6000/rs6000.md (*and<mode>3_imm_dot_shifted): Change to
18510 a define_insn, remove second alternative.
18511
18512 2015-08-25 Thomas Schwinge <thomas@codesourcery.com>
18513 Joseph Myers <joseph@codesourcery.com>
18514
18515 * gcc.c (struct switchstr): Expand comment.
18516
18517 2015-08-25 Nathan Sidwell <nathan@acm.org>
18518
18519 * config/nvptx/nvptx.c (nvptx_write_function_decl): Reformat.
18520 (nvptx_reorg_subreg): Pass insn pattern to asm_operands.
18521
18522 2015-08-25 Richard Biener <rguenther@suse.de>
18523
18524 PR middle-end/67306
18525 * genmatch.c (expr::gen_transform): Verify the result of
18526 builtin_decl_implicit.
18527 (dt_simplify::gen_1): Likewise.
18528
18529 2015-08-25 Thomas Preud'homme <thomas.preudhomme@arm.com>
18530
18531 * config/arm/constraints.md: Also list Cs and US ARM-specific
18532 constraints as used.
18533
18534 2015-08-24 Kaz Kojima <kkojima@gcc.gnu.org>
18535
18536 PR target/66609
18537 * config/sh/sh.c (sh_asm_output_addr_const_extra): Handle
18538 UNSPEC_PCREL.
18539 (nonpic_symbol_mentioned_p): Likewise.
18540 (sh_delegitimize_address): Likewise.
18541 (sh_function_ok_for_sibcall): Take into account weak symbols.
18542 (sh_expand_sym_label2reg): New.
18543 * config/sh/sh-protos.h (sh_expand_sym_label2reg): Declare.
18544 * config/sh/sh.md (UNSPEC_PCREL): New enum.
18545 (call_pcrel): Use sh_expand_sym_label2reg.
18546 (call_value_pcrel, sibcall_pcrel, sibcall_value_pcrel): Likewise.
18547 (symPCREL_label2reg) New expand.
18548
18549 2015-08-24 Aditya Kumar <aditya.k7@samsung.com>
18550
18551 * graphite-poly.c: Change type of region from void* to sese.
18552 * graphite-poly.h (struct scop): Changing the type of scop::region
18553 from void* to sese. Change accessor macro accordingly.
18554 * graphite-sese-to-poly.c (extract_affine_chrec): Use accessor macro.
18555
18556 2015-08-24 Aditya Kumar <aditya.k7@samsung.com>
18557
18558 * graphite-scop-detection.c (stmt_simple_for_scop_p):
18559 Constrain only on INTEGER_TYPE.
18560
18561 2015-08-24 Michael Meissner <meissner@linux.vnet.ibm.com>
18562
18563 PR target/67211
18564 * config/rs6000/rs6000-cpus.def (ISA_2_7_MASKS_SERVER): Set
18565 -mefficient-unaligned-vsx on ISA 2.7.
18566
18567 * config/rs6000/rs6000.opt (-mefficient-unaligned-vsx): Convert
18568 option to a masked option.
18569
18570 * config/rs6000/rs6000.c (rs6000_option_override_internal): Rework
18571 logic for -mefficient-unaligned-vsx so that it is set via an arch
18572 ISA option, instead of being set if -mtune=power8 is set. Move
18573 -mefficient-unaligned-vsx and -mallow-movmisalign handling to be
18574 near other default option handling.
18575
18576 2015-08-24 Richard Sandiford <richard.sandiford@arm.com>
18577
18578 * genflags.c (gen_macro): Delete.
18579 (gen_proto): Don't create GEN.*CALL.* macros.
18580 * gensupport.h (get_file_location): Declare.
18581 * gensupport.c (rtx_locs): New variable.
18582 (read_md_rtx): Record rtx locations.
18583 (get_file_location): New function.
18584 * target-insns.def (call, call_pop, call_value, call_value_pop)
18585 (sibcall, sibcall_value): New patterns.
18586 * gentarget-def.c (parse_argument): New function.
18587 (def_target_insn): Use it. Handle optional operands. Raise an
18588 error if an .md pattern has the wrong number of operands for the
18589 pattern name. Remove the names of unused operands from the prototype.
18590 * builtins.c (expand_builtin_apply): Use targetm functions
18591 instead of HAVE_call_value and GEN_CALL_VALUE.
18592 * calls.c (emit_call_1): Likewise. Remove support for sibcall_pop
18593 and sibcall_value_pop.
18594 * config/aarch64/aarch64.md (untyped_call): Use gen_call instead
18595 of GEN_CALL.
18596 * config/alpha/alpha.md (untyped_call): Likewise.
18597 * config/iq2000/iq2000.md (untyped_call): Likewise.
18598 * config/m68k/m68k.md (untyped_call): Likewise.
18599 * config/mips/mips.md (untyped_call): Likewise.
18600 * config/pa/pa.md (untyped_call): Likewise.
18601 * config/rs6000/rs6000.md (untyped_call): Likewise.
18602 * config/sparc/sparc.md (untyped_call): Likewise.
18603 * config/tilegx/tilegx.md (untyped_call): Likewise.
18604 * config/tilepro/tilepro.md (untyped_call): Likewise.
18605 * config/visium/visium.md (untyped_call): Likewise.
18606 * config/alpha/alpha.c (alpha_emit_xfloating_libcall): Use
18607 gen_call_value instead of GEN_CALL_VALUE.
18608 * config/arm/arm.md (untyped_call): Likewise.
18609 * config/cr16/cr16.c (cr16_function_arg): Remove reference to
18610 GEN_CALL.
18611
18612 2015-08-24 Richard Sandiford <richard.sandiford@arm.com>
18613
18614 * ifcvt.c (HAVE_incscc, HAVE_decscc, HAVE_cbranchcc4): Delete.
18615 (have_cbranchcc4): New variable.
18616 (cc_in_cond, noce_emit_cmove, noce_get_alt_condition)
18617 (noce_get_condition): Use it instead of HAVE_cbranchcc4.
18618 (if_convert): Initialize have_cbranchcc4.
18619
18620 2015-08-24 Richard Sandiford <richard.sandiford@arm.com>
18621
18622 * builtins.c (expand_cmpstrn): Rename to...
18623 (expand_cmpstrn_or_cmpmem): ...this.
18624 (expand_builtin_strcmp, expand_builtin_strncmp): Update accordingly.
18625 (expand_builtin_memcmp): Use optabs instead of HAVE_cmpmem/gen_cmpmem.
18626 Remove mode argument.
18627 (expand_builtin): Update accordingly.
18628
18629 2015-08-24 Richard Sandiford <richard.sandiford@arm.com>
18630
18631 * builtins.c (expand_cmpstr, expand_cmpstrn): New functions.
18632 (expand_builtin_strcmp, expand_builtin_strncmp): Use them. Remove
18633 references to HAVE_cmpstr{,n}si and CODE_FOR_cmpstr{,n}si.
18634 * config/m32c/blkmov.md (cmpstrsi): Fix predicates of operands 1 and 2.
18635 Add predicates for operands 0 and 3.
18636 * config/rx/rx.md (cmpstrnsi): Remove force_operand for the length
18637 operand.
18638 * config/sh/sh.md (cmpstrnsi): Change the length predicate from
18639 immediate_operand to nonmemory_operand.
18640
18641 2015-08-24 Richard Sandiford <richard.sandiford@arm.com>
18642
18643 * df-scan.c (df_insn_info_init_fields): New function, split out
18644 from...
18645 (df_insn_create_insn_record): ...here.
18646 (df_insn_info_free_fields): New function, split out from...
18647 (df_insn_info_delete): ...here.
18648 (df_insn_rescan): Use the new functions instead of freeing and
18649 reallocating the df_insn_info.
18650
18651 2015-08-24 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
18652
18653 * doc/install.texi (Binaries): Remove links no longer valid.
18654
18655 2015-08-24 Nathan Sidwell <nathan@codesourcery.com>
18656
18657 * config/nvptx/mkoffload.c (process): Replace
18658 GOMP_offload_{,un}register with GOMP_offload_{,un}register_ver.
18659
18660 2015-08-24 H.J. Lu <hongjiu.lu@intel.com>
18661
18662 PR target/67329
18663 * config/i386/i386.c (iamcu_cost): Set MOVE_RATIO cost to 9.
18664
18665 2015-08-24 Renlin Li <renlin.li@arm.com>
18666
18667 * config/arm/arm-protos.h (arm_valid_symbolic_address_p): Declare.
18668 * config/arm/arm.c (arm_valid_symbolic_address_p): Define.
18669 * config/arm/arm.md (arm_movt): Use arm_valid_symbolic_address_p.
18670 * config/arm/constraints.md ("j"): Add check for high code.
18671
18672 2015-08-24 Tom de Vries <tom@codesourcery.com>
18673
18674 PR tree-optimization/65468
18675 * omp-low.c (expand_omp_for_static_chunk): Remove inner loop if
18676 chunk_size is one.
18677
18678 2015-08-24 Nathan Sidwell <nathan@acm.org>
18679
18680 * config/nvptx/nvptx.c (walk_args_for_param): Revert previous
18681 change to nvptx_type_from_mode call. Use arg_promotion for both
18682 split and non-split args.
18683
18684 2015-08-24 Richard Sandiford <richard.sandiford@arm.com>
18685
18686 * target-insns.def (movstr): New pattern.
18687 * builtins.c (HAVE_movstr, CODE_FOR_movstr): Delete.
18688 (expand_movstr): Use targetm rather than HAVE_movstr/
18689 CODE_FOR_movstr.
18690
18691 2015-08-24 Richard Sandiford <richard.sandiford@arm.com>
18692
18693 * config/microblaze/microblaze.c (microblaze_classify_unspec): Fix
18694 cast syntax.
18695
18696 2015-08-24 Andrew Pinski <apinski@cavium.com>
18697
18698 * config/aarch64/aarch64-tuning-flags.def: Remove all index to
18699 AARCH64_EXTRA_TUNING_OPTION.
18700 * config/aarch64/aarch64-protos.h (aarch64_extra_tuning_flags_index):
18701 New enum.
18702 (aarch64_extra_tuning_flags): Base the shifted value on the index
18703 instead of the argument to AARCH64_EXTRA_TUNING_OPTION.
18704 * config/aarch64/aarch64.c: Remove the last argument to
18705 AARCH64_EXTRA_TUNING_OPTION.
18706
18707 2015-08-23 Nathan Sidwell <nathan@acm.org>
18708
18709 * config/nvptx/nvptx.c (walk_args_for_param): Promote arg reg
18710 decls.
18711 (nvptx_declare_function_name): Insert formatting tabs for
18712 consistency.
18713
18714 2015-08-23 Tom de Vries <tom@codesourcery.com>
18715
18716 * omp-low.c (expand_omp_taskreg): If in ssa, set rhs of parcopy stmt to
18717 parm_decl, rather than generating a dummy default def in cfun.
18718 * tree-cfg.c (replace_ssa_name): Assume no default defs. Make sure
18719 ssa_name from cfun and child_fn do not share a stmt as def stmt.
18720 (move_stmt_op): Handle PARM_DECl.
18721 (gather_ssa_name_hash_map_from): New function.
18722 (move_sese_region_to_fn): Add default defs for function params, and add
18723 them to vars_map. Release copied ssa names.
18724 * tree-cfg.h (gather_ssa_name_hash_map_from): Declare.
18725
18726 2015-08-23 Tom de Vries <tom@codesourcery.com>
18727
18728 * doc/sourcebuild.texi: Rename vect_no_int_max with
18729 vect_no_int_min_max. Update description.
18730
18731 2015-08-22 Andrew Pinski <apinski@cavium.com>
18732
18733 * aarch64-fusion-pairs.def: Remove all index to AARCH64_FUSION_PAIR.
18734 * config/aarch64/aarch64-protos.h
18735 (aarch64_fusion_pairs_index): New enum.
18736 (aarch64_fusion_pairs): Base the shifted value on the index instead
18737 Rewrite AARCH64_FUSE_ALL to be based on the end index.
18738 of the argument to AARCH64_FUSION_PAIR.
18739 * config/aarch64/aarch64.c: Remove the last argument to
18740 AARCH64_FUSION_PAIR.
18741
18742 2015-08-22 Mikhail Maltsev <maltsevm@gmail.com>
18743
18744 * dominance.c (new_zero_array): Define.
18745 (dom_info): Redefine as class with proper encapsulation.
18746 (dom_info::m_n_basic_blocks, m_reverse, m_start_block, m_end_block):
18747 Add new members.
18748 (dom_info::dom_info, ~dom_info): Define. Use new/delete for memory
18749 allocations/deallocations. Pass function as parameter (instead of
18750 using cfun).
18751 (dom_info::get_idom): Define accessor method.
18752 (dom_info::calc_dfs_tree_nonrec, calc_dfs_tree, compress, eval,
18753 link_roots, calc_idoms): Redefine as class members. Do not use cfun.
18754 (calculate_dominance_info): Adjust to use dom_info class.
18755 (verify_dominators): Likewise.
18756
18757 2015-08-21 Alexandre Oliva <aoliva@redhat.com>
18758
18759 * print-rtl.c (print_rtx): Check the correct range for
18760 flag_dump_unnumbered_links to behave as documented.
18761
18762 PR rtl-optimization/67227
18763 PR rtl-optimization/64164
18764 * alias.c (memrefs_conflict_p): Handle VALUEs in PLUS better.
18765 (nonoverlapping_memrefs_p): Test offsets and sizes when given
18766 identical gimple_reg exprs.
18767
18768 2015-08-21 Nathan Sidwell <nathan@acm.org>
18769
18770 * config/nvptx/nvptx.md (allocate_stack): Emit sorry during
18771 expansion.
18772 * config/nvptx/nvptx.c (nvptx_declare_function_name): Look at
18773 crtl->stack_alignment_needed to determine alignment.
18774 (nvptx_get_drap_rtx): New.
18775 (TARGET_GET_DRAP_RTX): Override.
18776 * config/nvptx/nvptx.h (MAX_STACK_ALIGNMENT): Set.
18777
18778 2015-08-21 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
18779
18780 * config.build: Remove case for m68000-hp-hpux* | m68k-hp-hpux*.
18781
18782 2015-08-21 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
18783
18784 * configure.ac: Remove uwin* cases.
18785 * config.build: Remove cases for i370-*-opened*, i370-*-mvs*,
18786 i[34567]86-*-sco3.2v5*, i[34567]86-sequent-ptx4*,
18787 i[34567]86-sequent-sysv4*, i[34567]86-*-sysv4*,
18788 i[34567]86-*-udk*, i[34567]86-*-uwin*, i386-*-vsta.
18789 * config.host: Remove cases for i370-*-opened*, i370-*-mvs*,
18790 i[34567]86-*-uwin*, powerpc-*-beos*.
18791
18792 2015-08-21 Richard Sandiford <richard.sandiford@arm.com>
18793
18794 * gencodes.c (gencodes): Print the comma for the preceding
18795 enum value rather than the current one. Use aliased enum values
18796 rather than #defines for compiled-out patterns.
18797 (main): Update accordingly. Replace LAST_INSN_CODE with
18798 NUM_INSN_CODES.
18799 * lra.c (insn_code_data): Update accordingly.
18800 (finish_insn_code_data_once, get_static_insn_data): Likewise.
18801 * recog.h (target_recog): Likewise.
18802 (preprocess_insn_constraints): Change parameter to unsigned int.
18803 * recog.c (preprocess_insn_constraints): Likewise.
18804 (recog_init): Replace LAST_INSN_CODE with NUM_INSN_CODES.
18805 * tree-vect-stmts.c (vectorizable_operation): Simplify.
18806
18807 2015-08-21 Markus Trippelsdorf <markus@trippelsdorf.de>
18808
18809 PR rtl-optimization/61657
18810 * loop-iv.c (iv_number_of_iterations): Declare up and down as
18811 unsigned. Remove superflous uint64_t cast.
18812
18813 2014-08-21 Felix Yang <felix.yang@huawei.com>
18814 Jiji Jiang <jiangjiji@huawei.com>
18815
18816 * value-prof.c (interesting_stringop_to_profile_p): Removed FNDECL
18817 argument and get builtin function code directly from CALL.
18818 (gimple_stringop_fixed_value): Modified accordingly.
18819 (gimple_stringops_transform, gimple_stringops_values_to_profile):
18820 Modified accordingly and only accept BUILT_IN_NORMAL string operations.
18821
18822 2015-08-21 Dominik Vogt <vogt@linux.vnet.ibm.com>
18823
18824 * config/s390/s390-builtins.def: Fix value range of vec_load_bndry.
18825
18826 2015-08-21 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
18827
18828 * fold-const.c (fold_binary_loc) : Move sqrt(x)*sqrt(x) as x
18829 to match.pd.
18830 Move Optimize pow(x,y)*pow(z,y) as pow(x*z,y)to match.pd.
18831 Move Optimize tan(x)*cos(x) as sin(x) to match.pd.
18832 Move Optimize x*pow(x,c) as pow(x,c+1) to match.pd.
18833 Move Optimize pow(x,c)*x as pow(x,c+1) to match.pd.
18834 Move Optimize sin(x)/cos(x) as tan(x) to match.pd.
18835 Move Optimize cos(x)/sin(x) as 1.0/tan(x) to match.pd.
18836 Move Optimize sin(x)/tan(x) as cos(x) to match.pd.
18837 Move Optimize tan(x)/sin(x) as 1.0/cos(x) to match.pd.
18838 Move Optimize pow(x,c)/x as pow(x,c-1) to match.pd.
18839 Move Optimize x/pow(y,z) into x*pow(y,-z) to match.pd.
18840
18841 * match.pd (SIN ) : New Operator.
18842 (TAN) : New Operator.
18843 (mult (SQRT@1 @0) @1) : New simplifier.
18844 (mult (POW:s @0 @1) (POW:s @2 @1)) : New simplifier.
18845 (mult:c (TAN:s @0) (COS:s @0)) : New simplifier.
18846 (mult:c (TAN:s @0) (COS:s @0)) : New simplifier.
18847 (rdiv (SIN:s @0) (COS:s @0)) : New simplifier.
18848 (rdiv (COS:s @0) (SIN:s @0)) : New simplifier.
18849 (rdiv (SIN:s @0) (TAN:s @0)) : New simplifier.
18850 (rdiv (TAN:s @0) (SIN:s @0)) : New simplifier.
18851 (rdiv (POW:s @0 REAL_CST@1) @0) : New simplifier.
18852 (rdiv @0 (SQRT:s (rdiv:s @1 @2))) : New simplifier.
18853 (rdiv @0 (POW:s @1 @2)) : New simplifier.
18854
18855 2015-08-21 Bin Cheng <bin.cheng@arm.com>
18856
18857 * tree-ssa-loop-niter.c (simplify_using_initial_conditions): Break
18858 loop if EXPR is simplified to const value.
18859
18860 2015-08-21 Yury Gribov <y.gribov@samsung.com>
18861
18862 * sanitizer.def (BUILT_IN_UBSAN_HANDLE_NONNULL_ARG,
18863 BUILT_IN_UBSAN_HANDLE_NONNULL_ARG): Fix builtin types.
18864
18865 2015-08-21 Richard Biener <rguenther@suse.de>
18866
18867 PR middle-end/67285
18868 * gimple-fold.c (replace_stmt_with_simplification): Assert
18869 seq is empty when replacing a call with itself but different
18870 arguments.
18871 * gimple-match-head.c (maybe_push_res_to_seq): When pushing
18872 a call require that it is const.
18873
18874 2015-08-20 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
18875
18876 * defaults.h (CONSTANT_ALIGNMENT): New macro definition.
18877 * builtins.c (get_object_alignment_2): Adjust.
18878 * varasm.c (align_variable): Likewise.
18879 (get_variable_align): Likewise.
18880 (build_constant_desc): Likewise.
18881 (force_const_mem): Likewise.
18882 * doc/tm.texi.in: Likewise.
18883 * doc/tm.texi: Regenerate.
18884
18885 2015-08-20 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
18886
18887 * genconfig.c (main): Always define HAVE_cc0.
18888 * recog.c (rest_of_handle_peephole2): Adjust.
18889
18890 2015-08-20 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
18891
18892 * reorg.c (relax_delay_slots): Don't use #if to check value of
18893 HAVE_cc0.
18894
18895 2015-08-20 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
18896
18897 * genconfig.c (main): Always define HAVE_CONDITIONAL_EXECUTION.
18898 * targhooks.c (default_have_conditional_execution): Adjust.
18899
18900 2015-08-20 Richard Sandiford <richard.sandiford@arm.com>
18901
18902 * rtl.h (rtvec_all_equal_p): Declare.
18903 (const_vec_duplicate_p, unwrap_const_vec_duplicate): New functions.
18904 * rtl.c (rtvec_all_equal_p): New function.
18905 * expmed.c (expand_mult): Use unwrap_const_vec_duplicate.
18906 * config/aarch64/aarch64.c (aarch64_vect_float_const_representable_p)
18907 (aarch64_simd_dup_constant): Use const_vec_duplicate_p.
18908 * config/arm/arm.c (neon_vdup_constant): Likewise.
18909 * config/s390/s390.c (s390_contiguous_bitmask_vector_p): Likewise.
18910 * config/tilegx/constraints.md (W, Y): Likewise.
18911 * config/tilepro/constraints.md (W, Y): Likewise.
18912 * config/spu/spu.c (spu_legitimate_constant_p): Likewise.
18913 (classify_immediate): Use unwrap_const_vec_duplicate.
18914 * config/tilepro/predicates.md (reg_or_v4s8bit_operand): Likewise.
18915 (reg_or_v2s8bit_operand): Likewise.
18916 * config/tilegx/predicates.md (reg_or_v8s8bit_operand): Likewise.
18917 (reg_or_v4s8bit_operand): Likewise.
18918
18919 2015-08-20 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
18920
18921 * config/rs6000/altivec.h (vec_pmsum_be): New #define.
18922 (vec_shasigma_be): New #define.
18923 * config/rs6000/rs6000-builtin.def (VPMSUMB): New BU_P8V_AV2_2.
18924 (VPMSUMH): Likewise.
18925 (VPMSUMW): Likewise.
18926 (VPMSUMD): Likewise.
18927 (VPMSUM): New BU_P8V_OVERLOAD_2.
18928 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): New
18929 entries for VEC_MADD and VEC_VPMSUM.
18930
18931 2015-08-20 Georg-Johann Lay <avr@gjlay.de>
18932
18933 * config/avr/avr.c (avr_insert_attributes): In diagnostic essage:
18934 Multiply argument avr_n_flash by 64 to match unit of "KiB".
18935 (avr_pgm_check_var_decl): Same.
18936
18937 2015-08-20 Alan Lawrence <alan.lawrence@arm.com>
18938
18939 * config/arm/arm-builtins.c (arm_init_simd_builtin_types): Move
18940 initialization of HFmode scalar type (float16_t) to...
18941 (arm_init_fp16_builtins): ... Here. Combine with __fp16 initialization
18942 code.
18943
18944 (arm_init_builtins): Call arm_init_fp16_builtins earlier and always.
18945
18946 * config/arm/arm_neon.h (vcvt_f16_f32, vcvt_f32_f16): Condition on
18947 having an -mfp16-format.
18948
18949 2015-08-20 Richard Sandiford <richard.sandiford@arm.com>
18950
18951 * config/i386/predicates.md (vector_all_ones_operand): Use
18952 CONSTM1_RTX to simplify definition.
18953
18954 2015-08-20 Richard Biener <rguenther@suse.de>
18955
18956 * toplev.c (compile_file): Remove loop calling late_global_decl
18957 on all symbols.
18958 * varpool.c (varpool_node::assemble_decl): Call late_global_decl
18959 on decls we assembled.
18960
18961 2015-08-20 James Greenhalgh <james.greenhalgh@arm.com>
18962
18963 * common/config/aarch64/aarch64-common.c
18964 (AARCH64_CPU_NAME_LENGTH): Delete.
18965 (aarch64_option_extension): New.
18966 (all_extensions): Likewise.
18967 (processor_name_to_arch): Likewise.
18968 (arch_to_arch_name): Likewise.
18969 (all_cores): New.
18970 (all_architectures): Likewise.
18971 (aarch64_get_extension_string_for_isa_flags): Likewise.
18972 (aarch64_rewrite_selected_cpu): Change to rewrite CPU names to
18973 architecture names.
18974 * config/aarch64/aarch64-protos.h
18975 (aarch64_get_extension_string_for_isa_flags): New.
18976 * config/aarch64/aarch64.c (aarch64_print_extension): Delete.
18977 (aarch64_option_print): Get the string to print from
18978 aarch64_get_extension_string_for_isa_flags.
18979 (aarch64_declare_function_name): Likewise.
18980 * config/aarch64/aarch64.h (BIG_LITTLE_SPEC): Rename to...
18981 (MCPU_TO_MARCH_SPEC): This.
18982 (ASM_CPU_SPEC): Use it.
18983 (BIG_LITTLE_SPEC_FUNCTIONS): Rename to...
18984 (MCPU_TO_MARCH_SPEC_FUNCTIONS): ...This.
18985 (EXTRA_SPEC_FUNCTIONS): Use it.
18986
18987 2015-08-20 Simon Dardis <simon.dardis@imgtec.com>
18988
18989 * config/mips/mips.c (mips_expand_block_move): Enable inline memcpy
18990 expansion when !ISA_HAS_LWL_LWR.
18991 (mips_block_move_straight): Update the size of elements copied to
18992 account for alignment when !ISA_HAS_LWL_LWR.
18993 * config/mips/mips.h (MIPS_MIN_MOVE_MEM_ALIGN): New macro.
18994
18995 2015-08-19 Jiong Wang <jiong.wang@arm.com>
18996
18997 * expr.c (expand_expr_real_2): Check gimple statement during
18998 LSHIFT_EXPR expand.
18999
19000 2015-08-19 Magnus Granberg <zorry@gentoo.org>
19001
19002 * common.opt (fstack-protector): Initialize to -1.
19003 (fstack-protector-all): Likewise.
19004 (fstack-protector-strong): Likewise.
19005 (fstack-protector-explicit): Likewise.
19006 * configure.ac: Add --enable-default-ssp.
19007 * defaults.h (DEFAULT_FLAG_SSP): New. Default SSP to strong.
19008 * opts.c (finish_options): Update opts->x_flag_stack_protect if it is
19009 -1.
19010 * doc/install.texi: Document --enable-default-ssp.
19011 * config.in: Regenerated.
19012 * configure: Likewise.
19013
19014 2015-08-19 Alexandre Oliva <aoliva@redhat.com>
19015
19016 PR rtl-optimization/64164
19017 * cfgexpand.c (parm_maybe_byref_p): Renamed to...
19018 (parm_in_stack_slot_p): ... this. Disregard mode, what
19019 matters is whether the parm will live in a pseudo or a stack
19020 slot.
19021 (expand_one_ssa_partition): Deal with params without a default
19022 def. Disregard mode.
19023 * cfgexpand.h: Renamed function declaration.
19024 * tree-ssa-coalesce.c: Adjust.
19025 * function.c (split_complex_args): Allocate stack slot for
19026 unassigned parms before splitting.
19027 (parm_in_unassigned_mem_p): New. Use it instead of
19028 parm_maybe_byref_p throughout this file.
19029 (assign_parm_setup_block): Use it. Accept pseudos in the
19030 expand-assigned rtl.
19031 (assign_parm_setup_reg): Drop BLKmode requirement.
19032 (assign_parm_setup_stack): Allocate and fill in the address of
19033 unassigned MEM parms.
19034
19035 2015-08-19 David Sherwood <david.sherwood@arm.com>
19036
19037 * genmodes.c (emit_mode_unit_size_inline): New function.
19038 (emit_mode_unit_precision_inline): New function.
19039 (emit_insn_modes_h): Emit new #define. Emit new functions.
19040 (emit_mode_unit_size): New function.
19041 (emit_mode_unit_precision): New function.
19042 (emit_mode_adjustments): Add mode_unit_size adjustments.
19043 (emit_insn_modes_c): Emit new arrays.
19044 * machmode.h (GET_MODE_UNIT_SIZE, GET_MODE_UNIT_PRECISION): Update to
19045 use new inline methods.
19046
19047 2015-08-19 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
19048
19049 * config/aarch64/aarch64.c (bit_count): Delete prototype
19050 and definition.
19051 (aarch64_print_operand): Use popcount_hwi instead of the above.
19052
19053 2015-08-19 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
19054
19055 * config/aarch64/aarch64-option-extensions.def: Delete obsolete
19056 comment.
19057
19058 2015-08-19 Marek Polacek <polacek@redhat.com>
19059
19060 PR middle-end/67133
19061 * gimple-ssa-isolate-paths.c
19062 (insert_trap_and_remove_trailing_statements): Rename to ...
19063 (insert_trap): ... this. Don't remove trailing statements; split
19064 block instead.
19065 (find_explicit_erroneous_behaviour): Don't remove all outgoing edges.
19066
19067 2015-08-19 Mikael Morin <mikael@gcc.gnu.org>
19068
19069 PR other/67042
19070 * hwint.h (sext_hwi): Switch to unsigned for the left shift, and
19071 conditionalize the whole on __GNUC__. Add fallback code
19072 depending neither on undefined nor implementation-defined behaviour.
19073
19074 2015-08-19 Jiong Wang <jiong.wang@arm.com>
19075
19076 * config/aarch64/aarch64.c (aarch64_load_symref_appropriately): Replace
19077 whitespaces with tab.
19078
19079 2015-08-19 Florian Weimer <fweimer@redhat.com>
19080
19081 * prj.adb (For_Every_Project_Imported_Context.Recursive_Check_Context):
19082 Move Name_Id_Set instantiation to the Prj package, to avoid trampolines.
19083 * prj-proc.adb (Process.Process_Expression_Variable_Decl):
19084 Move Name_Ids instantiation to the Prj.Proc package, to avoid
19085 trampolines.
19086
19087 2015-08-19 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
19088
19089 * config/arm/arm.c (bounds_check): Use %wd print format
19090 for HOST_WIDE_INT arguments.
19091
19092 2015-08-18 Trevor Saunders <tbsaunde@tbsaunde.org>
19093
19094 * bb-reorder.c, cfgloop.h, collect2.c, combine.c, dse.c,
19095 dwarf2cfi.c, gcse-common.h, genopinit.c, ggc-page.c, machmode.h,
19096 mcf.c, modulo-sched.c, omp-low.c, read-rtl.c, sched-rgn.c,
19097 signop.h, tree-call-cdce.c, tree-dfa.c, tree-diagnostic.c,
19098 tree-inline.h, tree-scalar-evolution.c, tree-ssa-address.c,
19099 tree-ssa-loop-niter.c, tree-ssa-loop.h, tree-ssa-pre.c,
19100 tree-ssa-reassoc.c, tree-ssa-sccvn.h, tree-ssa-structalias.c,
19101 tree-ssa-uninit.c, tree-ssa.h, tree-vect-loop-manip.c,
19102 tree-vectorizer.h, tree-vrp.c, var-tracking.c: Remove useless
19103 typedefs.
19104
19105 2015-08-18 trevor Saunders <tbsaunde@tbsaunde.org>
19106
19107 * bt-load.c, cgraph.h, dwarf2out.c, dwarf2out.h, final.c,
19108 function.c, graphite-scop-detection.c, haifa-sched.c,
19109 ipa-devirt.c, ipa-split.c, recog.c, ree.c, stmt.c,
19110 tree-data-ref.c, tree-ssa-dom.c, tree-ssa-loop-ivopts.c,
19111 varasm.c: Remove typedefs of structs.
19112
19113 2015-08-18 Bill Schmidt <wschmidt@vnet.linux.ibm.com>
19114
19115 * config/rs6000/altivec.h (vec_adde): New define.
19116 (vec_addec): Likewise.
19117 (vec_double): Likewise.
19118 (vec_bperm): Likewise.
19119 (vec_gb): Likewise.
19120 * config/rs6000/rs6000-builtin.def (ADDE): New
19121 BU_ALTIVEC_OVERLOAD_3.
19122 (ADDEC): Likewise.
19123 (DOUBLE): New BU_VSX_OVERLOAD_1.
19124 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add new
19125 entries for ALTIVEC_BUILTIN_VEC_ADDC, ALTIVEC_BUILTIN_VEC_ADDE,
19126 ALTIVEC_BUILTIN_VEC_ADDEC, ALTIVEC_BUILTIN_VEC_ANDC,
19127 VSX_BUILTIN_VEC_DOUBLE, ALTIVEC_BUILTIN_VEC_MERGEH,
19128 ALTIVEC_BUILTIN_VEC_MERGEL, ALTIVEC_BUILTIN_VEC_NOR,
19129 ALTIVEC_BUILTIN_VEC_OR, ALTIVEC_BUILTIN_VEC_XOR,
19130 ALTIVEC_BUILTIN_VEC_PERM, ALTIVEC_BUILTIN_VEC_SEL,
19131 P8V_BUILTIN_VEC_EQV, P8V_BUILTIN_VEC_NAND, P8V_BUILTIN_VEC_ORC,
19132 and P8V_BUILTIN_VEC_VBPERMQ.
19133
19134 2015-08-18 Jason Merrill <jason@redhat.com>
19135
19136 * print-tree.c (print_node): Handle TREE_BINFO.
19137
19138 2015-08-18 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
19139
19140 PR middle-end/36757
19141 * builtins.c (expand_builtin_signbit): Add asserts to make sure
19142 we can expand BUILT_IN_SIGNBIT inline.
19143 * builtins.def (BUILT_IN_SIGNBIT): Make type-generic.
19144 * doc/extend.texi: Document the type-generic __builtin_signbit.
19145
19146 2015-08-18 Richard Sandiford <richard.sandiford@arm.com>
19147
19148 PR rtl-optimization/67218
19149 * simplify-rtx.c (exact_int_to_float_conversion_p): New function.
19150 (simplify_unary_operation_1): Use it.
19151
19152 2015-08-18 Marek Polacek <polacek@redhat.com>
19153
19154 PR middle-end/67222
19155 * gimple-low.c (lower_stmt): Don't lower BUILT_IN_POSIX_MEMALIGN
19156 if the call isn't valid.
19157 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Check builtins using
19158 gimple_call_builtin_p.
19159 (call_may_clobber_ref_p_1): Likewise.
19160 (stmt_kills_ref_p): Likewise.
19161
19162 2015-08-18 Robert Suchanek <robert.suchanek@imgtec.com>
19163
19164 * config/mips/mips-protos.h (mips_hard_regno_rename_ok): New prototype.
19165 * config/mips/mips.c (mips_hard_regno_rename_ok): New function.
19166 (mips_hard_regno_scratch_ok): Likewise.
19167 (TARGET_HARD_REGNO_SCRATCH_OK): Define macro.
19168 * config/mips/mips.h (HARD_REGNO_RENAME_OK): New.
19169
19170 2015-08-18 Bin Cheng <bin.cheng@arm.com>
19171
19172 * tree-ssa-loop-niter.c (refine_value_range_using_guard): New.
19173 (determine_value_range): Call refine_value_range_using_guard for
19174 each loop initial condition to improve value range.
19175
19176 2015-08-17 Aldy Hernandez <aldyh@redhat.com>
19177
19178 * config/i386/i386.c: Remove include of fibheap.h.
19179
19180 2015-08-17 Richard Biener <rguenther@suse.de>
19181
19182 PR tree-optimization/67221
19183 * tree-ssa-sccvn.c (visit_phi): Keep all-TOP args TOP.
19184 (sccvn_dom_walker::before_dom_children): Mark backedges of
19185 non-executable blocks as not executable.
19186
19187 2015-08-17 David Sherwood <david.sherwood@arm.com>
19188
19189 * config/arm/arm.c (neon_element_bits): Replace call to
19190 GET_MODE_BITSIZE (GET_MODE_INNER (m)) with GET_MODE_UNIT_BITSIZE (m).
19191 * config/arm/neon.md (neon_vget_lane<mode>): Likewise.
19192 (neon_vget_laneu<mode>, neon_vset_lane<mode>): Likewise
19193 (neon_vdup_lane<mode>): Likewise.
19194 * config/i386/i386.c (ix86_expand_int_vcond): Likewise.
19195 (ix86_expand_multi_arg_builtin, ix86_expand_reduc): Likewise.
19196 (expand_vec_perm_palignr, ix86_expand_sse2_abs): Likewise.
19197 * config/rs6000/rs6000.c (rs6000_do_expand_vec_perm): Likewise.
19198 * config/spu/spu.c (arith_immediate_p): Likewise.
19199 * expmed.c (store_bit_field_1, extract_bit_field_1): Likewise.
19200 * expr.c (expand_expr_real_2): Likewise.
19201 * optabs.c (shift_amt_for_vec_perm_mask): Likewise.
19202 * simplify-rtx.c (simplify_immed_subreg): Likewise.
19203 * tree-cfg.c (verify_gimple_assign_ternary): Likewise.
19204 * tree-vect-patterns.c (vect_recog_mixed_size_cond_pattern): Likewise.
19205 New variable.
19206 * fold-const.c (fold_binary_loc): Replace call to
19207 GET_MODE_PRECISION (GET_MODE_INNER (m)) with
19208 GET_MODE_UNIT_PRECISION (m).
19209
19210 2015-08-17 Mike Stump <mikestump@comcast.net>
19211
19212 * config/arm/arm.c (arm_block_move_unaligned_straight):
19213 Emit normal move instead of unaligned load when source or destination
19214 are appropriately aligned.
19215
19216 2015-08-17 Richard Biener <rguenther@suse.de>
19217 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
19218
19219 PR middle-end/16107
19220 * match.pd (div (coss (op @0) : New simplifier.
19221
19222 2015-08-14 Alexandre Oliva <aoliva@redhat.com>
19223
19224 PR rtl-optimization/64164
19225 PR bootstrap/66978
19226 PR middle-end/66983
19227 PR rtl-optimization/67000
19228 PR middle-end/67034
19229 PR middle-end/67035
19230 * Makefile.in (OBJS): Drop tree-ssa-copyrename.o.
19231 * tree-ssa-copyrename.c: Removed.
19232 * opts.c (default_options_table): Drop -ftree-copyrename. Add
19233 -ftree-coalesce-vars.
19234 * passes.def: Drop all occurrences of pass_rename_ssa_copies.
19235 * common.opt (ftree-copyrename): Ignore.
19236 (ftree-coalesce-inlined-vars): Likewise.
19237 * doc/invoke.texi: Remove the ignored options above.
19238 * gimple-expr.h (gimple_can_coalesce_p): Move declaration
19239 * tree-ssa-coalesce.h: ... here.
19240 * tree-ssa-uncprop.c: Include tree-ssa-coalesce.h and other
19241 headers required by it.
19242 * gimple-expr.c (gimple_can_coalesce_p): Allow coalescing
19243 across variables when flag_tree_coalesce_vars. Check register
19244 use and promoted modes to allow coalescing. Do not coalesce
19245 maybe-byref parms with SSA_NAMEs of other variables, or
19246 anonymous SSA_NAMEs. Moved to tree-ssa-coalesce.c.
19247 * tree-ssa-live.c (struct tree_int_map_hasher): Move along
19248 with its member functions to tree-ssa-coalesce.c.
19249 (var_map_base_init): Likewise. Renamed to
19250 compute_samebase_partition_bases.
19251 (partition_view_normal): Drop want_bases parameter.
19252 (partition_view_bitmap): Likewise.
19253 * tree-ssa-live.h: Adjust declarations.
19254 * tree-ssa-coalesce.c: Include explow.h and cfgexpand.h.
19255 (build_ssa_conflict_graph): Process PARM_ and RESULT_DECLs's
19256 default defs at the entry point.
19257 (dump_part_var_map): New.
19258 (compute_optimized_partition_bases): New, called by...
19259 (coalesce_ssa_name): ... when flag_tree_coalesce_vars, instead
19260 of compute_samebase_partition_bases. Adjust.
19261 * alias.c (nonoverlapping_memrefs_p): Disregard gimple-regs.
19262 * cfgexpand.c (leader_merge, parm_maybe_byref_p): New.
19263 (ssa_default_def_partition): New.
19264 (get_rtl_for_parm_ssa_default_def): New.
19265 (align_local_variable, add_stack_var): Support anonymous SSA
19266 names.
19267 (defer_stack_allocation): Likewise. Declare earlier.
19268 (set_rtl): Merge exprs and attrs, even for MEMs and non-SSA
19269 vars. Update DECL_RTL for PARM_DECLs and RESULT_DECLs too.
19270 Do no record deferred-allocation marker in
19271 SA.partition_to_pseudo.
19272 (expand_stack_vars): Adjust check for the marker in it.
19273 (expand_one_stack_var_at): Handle anonymous SSA_NAMEs. Drop
19274 redundant MEM attr setting.
19275 (expand_one_stack_var_1): Handle anonymous SSA_NAMEs. Renamed
19276 from...
19277 (expand_one_stack_var): ... this. New wrapper to check and
19278 skip already expanded SSA partitions.
19279 (record_alignment_for_reg_var): New, factored out of...
19280 (expand_one_var): ... this.
19281 (expand_one_ssa_partition): New.
19282 (adjust_one_expanded_partition_var): New.
19283 (expand_one_register_var): Check and skip already expanded SSA
19284 partitions.
19285 (expand_used_vars): Don't create DECLs for anonymous SSA
19286 names. Expand all SSA partitions, then adjust all SSA names.
19287 (pass::execute): Replace the loops that set
19288 SA.partition_to_pseudo from partition leaders and cleared
19289 DECL_RTL for multi-location variables, and that which used to
19290 rename vars and set attrs, with one that clears DECL_RTL and
19291 checks that PARMs and RESULTs default_defs match DECL_RTL.
19292 * cfgexpand.h (get_rtl_for_parm_ssa_default_def): Declare.
19293 * emit-rtl.c: Include stor-layout.h.
19294 (set_reg_attrs_for_parm): Handle NULL decl.
19295 (set_reg_attrs_for_decl_rtl): Take mode from expression if
19296 it's not a DECL.
19297 * stmt.c (emit_case_decision_tree): Pass it the SSA_NAME
19298 rather than its possibly-NULL DECL.
19299 * explow.c (promote_ssa_mode): New.
19300 * explow.h (promote_ssa_mode): Declare.
19301 * expr.c (expand_expr_real_1): Handle anonymous SSA_NAMEs.
19302 (read_complex_part): Export.
19303 * expr.h (read_complex_part): Declare.
19304 * cfgexpand.h (parm_maybe_byref_p): Declare.
19305 * function.c: Include cfgexpand.h.
19306 (use_register_for_decl): Handle SSA_NAMEs, anonymous or not.
19307 (use_register_for_parm_decl): Wrapper for the above to
19308 special-case the result_ptr.
19309 (rtl_for_parm): Ditto for get_rtl_for_parm_ssa_default_def.
19310 (split_complex_args): Take assign_parm_data_all argument.
19311 Pass it to rtl_for_parm. Set up rtl and context for split
19312 args. Reset complex parm before fetching its default decl
19313 rtl.
19314 (assign_parms_unsplit_complex): Use the default-def complex
19315 parm rtl if it matches the components.
19316 (assign_parms_augmented_arg_list): Adjust.
19317 (maybe_reset_rtl_for_parm): Reset DECL_RTL of parms with
19318 multiple locations. Recognize split complex args.
19319 (assign_parm_adjust_stack_rtl): Add all and parm arguments,
19320 for rtl_for_parm. For SSA-assigned parms, zero stack_parm.
19321 (assign_parm_setup_block): Prefer SSA-assigned location, and
19322 fill in its address if the memory location of a maybe-byref
19323 parm was not assigned by cfgexpand.
19324 (assign_parm_setup_reg): Likewise. Adjust its mode as
19325 needed. Use entry_parm for equiv if stack_parm is NULL. Make
19326 sure passed_pointer parms don't need conversion. Copy address
19327 or value as needed.
19328 (assign_parm_setup_stack): Prefer SSA-assigned location.
19329 (assign_parms): Maybe reset DECL_RTL of params. Adjust stack
19330 rtl before testing for pointer bounds. Special-case result_ptr.
19331 (expand_function_start): Maybe reset DECL_RTL of result.
19332 Prefer SSA-assigned location for result and static chain.
19333 Factor out DECL_RESULT and SET_DECL_RTL. Convert static chain
19334 to Pmode if needed, from H.J. Lu <hongjiu.lu@intel.com>.
19335 * tree-outof-ssa.c (insert_value_copy_on_edge): Handle
19336 anonymous SSA names. Use promote_ssa_mode.
19337 (get_temp_reg): Likewise.
19338 (remove_ssa_form): Adjust.
19339 * stor-layout.c (layout_decl): Don't set mem attributes of
19340 non-MEMs.
19341 * var-tracking.c (dataflow_set_clear_at_call): Take call_insn
19342 and get its reg_usage for reg invalidation.
19343 (compute_bb_dataflow): Pass it insn.
19344 (emit_notes_in_bb): Likewise.
19345
19346 2015-08-14 Marek Polacek <polacek@redhat.com>
19347
19348 * tree-core.h (tree_base): Fix typo.
19349
19350 2015-08-14 Marek Polacek <polacek@redhat.com>
19351
19352 PR middle-end/67133
19353 * gimple.c (infer_nonnull_range_by_attribute): Check that the
19354 nonnull argument position is not outside function arguments.
19355
19356 2015-08-14 Matthew Wahab <matthew.wahab@arm.com>
19357
19358 PR target/67143
19359 * config/aarch64/atomics.md (atomic_<optab><mode>): Replace
19360 'lconst_atomic' with 'const_atomic'.
19361 (atomic_fetch_<optab><mode>): Likewise.
19362 (atomic_<optab>_fetch<mode>): Likewise.
19363 * config/aarch64/iterators.md (lconst-atomic): Move below
19364 'const_atomic'.
19365 (const_atomic): New.
19366
19367 2015-08-14 Thomas Schwinge <thomas@codesourcery.com>
19368 Bernd Schmidt <bernds@codesourcery.com>
19369
19370 * config/nvptx/nvptx.c (nvptx_option_override): Don't override
19371 debug options.
19372 * config/nvptx/nvptx.h (DWARF2_LINENO_DEBUGGING_INFO): Define.
19373 (DWARF2_DEBUGGING_INFO): Don't define.
19374 * debug.h (dwarf2_lineno_debug_hooks): Declare.
19375 * toplev.c (process_options): Add a case for it.
19376 * dwarf2out.c (dwarf2_lineno_debug_hooks): New variable.
19377 (dwarf2out_init): Skip most initializations if
19378 DWARF2_LINENO_DEBUGGING_INFO, but set cur_line_info_table in that
19379 case.
19380 * defaults.h (PREFERRED_DEBUGGING_TYPE): Also use DWARF2_DEBUG if
19381 DWARF2_LINENO_DEBUGGING_INFO.
19382 * opts.c (set_debug_level): Likewise.
19383
19384 2015-08-14 James Greenhalgh <james.greenhalgh@arm.com>
19385
19386 * config/arm/types.md (is_neon_type): Add missing types.
19387
19388 2015-08-14 Yuri Rumyantsev <ysrumyan@gmail.com>
19389
19390 * config/i386/driver-i386.c (host_detect_local_cpu): Add support
19391 for skylake.
19392 * config/i386/i386.c (PTA_SKYLAKE): New macros.
19393 (processor_alias_table): Add skylake description.
19394 (enum processor_model): Add skylake processor.
19395 (arch_names_table): Add skylake record.
19396 * doc/invoke.texi: Add skylake item.
19397
19398 2015-08-13 Andrew MacLeod <amacleod@redhat.com>
19399
19400 * ira-int.h: Include recog.h.
19401 * ira-build.c: Don't include recog.h.
19402 * ira-color.c: Likewise.
19403 * ira-conflicts.c: Likewise.
19404 * ira-costs.c: Likewise.
19405 * ira-emit.c: Likewise.
19406 * ira-lives.c: Likewise.
19407 * ira.c: Likewise.
19408 * sched-deps.c: Likewise.
19409 * sel-sched.c: Likewise.
19410 * target-globals.c: Likewise.
19411
19412 2015-08-13 Richard Sandiford <richard.sandiford@arm.com>
19413
19414 PR bootstrap/55035
19415 * reload1.c (elimination_costs_in_insn): Make it obvious to the
19416 compiler that the n_dups and n_operands loop bounds are invariant.
19417
19418 2015-08-13 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
19419
19420 * ifcvt.c (noce_try_store_flag_constants): Handle PLUS-immediate
19421 expressions in A and B.
19422
19423 2015-08-13 Richard Biener <rguenther@suse.de>
19424
19425 * tree.c (nonnull_arg_p): Move from ...
19426 * tree-vrp.c (nonnull_arg_p): ... here.
19427 * tree.h (nonnull_arg_p): Declare.
19428 * tree-ssa-sccvn.c (init_scc_vn): Perform all lattice init
19429 here, register ptr != 0 for nonnull_arg_p pointer arguments.
19430 Properly initialize static chain and by-reference result pointer.
19431 (run_scc_vn): Adjust.
19432
19433 2015-08-13 Robert Suchanek <robert.suchanek@imgtec.com>
19434
19435 * config/mips/mips.h (ENABLE_LD_ST_PAIRS): Enable load/store pairs for
19436 TUNE_I6400.
19437
19438 2015-08-13 Matthew Wahab <matthew.wahab@arm.com>
19439
19440 * config/aarch64/aarch64-protos.h
19441 (aarch64_gen_atomic_cas): Declare.
19442 * config/aarch64/aarch64.c (aarch64_expand_compare_and_swap):
19443 Choose appropriate instruction pattern for the target.
19444 (aarch64_gen_atomic_cas): New.
19445 * config/aarch64/atomics.md (UNSPECV_ATOMIC_CAS): New.
19446 (atomic_compare_and_swap<mode>_1): Rename to
19447 aarch64_compare_and_swap<mode>. Fix some indentation.
19448 (aarch64_compare_and_swap<mode>_lse): New.
19449 (aarch64_atomic_cas<mode>): New.
19450
19451 2015-08-13 Matthew Wahab <matthew.wahab@arm.com>
19452
19453 * config/aarch64/aarch64.h (AARCH64_ISA_LSE): New.
19454 (TARGET_LSE): New.
19455
19456 2015-08-13 Richard Biener <rguenther@suse.de>
19457
19458 PR tree-optimization/67191
19459 * tree-ssa-sccvn.c (sccvn_dom_walker::before_dom_children): Remove
19460 assert we value-numbered last stmts operand because it can validly
19461 trigger for unreachable code.
19462
19463 2015-08-13 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
19464
19465 PR rtl-optimization/67103
19466 * ifcvt.c (noce_try_store_flag_constants): Move
19467 x = (-(test != 0) & (b - a)) + a transformation to...
19468 (noce_try_cmove): ... Here. Try it if normal conditional
19469 move fails.
19470
19471 2015-08-13 Robert Suchanek <robert.suchanek@imgtec.com>
19472
19473 * config/mips/mips.c (mips_rtx_cost_data): Remove costs for W32 and W64
19474 pseudo-processors.
19475 * config/mips/mips.md (processor): Remove w32 and w64.
19476
19477 2015-08-13 Richard Biener <rguenther@suse.de>
19478
19479 PR tree-optimization/66502
19480 PR tree-optimization/67167
19481 * tree-ssa-sccvn.c (vn_phi_compute_hash): Do not include
19482 backedge arguments.
19483 (vn_phi_lookup): Adjust.
19484 (vn_phi_insert): Likewise.
19485 (visit_phi): Prefer to value-number to another PHI node
19486 over value-numbering to a PHI argument.
19487 (init_scc_vn): Mark DFS back edges.
19488
19489 2015-08-13 Richard Biener <rguenther@suse.de>
19490
19491 * gimple.h (gcall::code_): New constant static member.
19492 (gcond::code_): Likewise.
19493 * gimple.c (gcall::code_): Define.
19494 (gcond::code_): Likewise.
19495 (is_a_helper <const gcond *>): Add.
19496 (gimple_call_lhs): Use GIMPLE_CHECK2 in the gimple overload
19497 and forward to a new gcall overload with less checking and a
19498 cheaper way to access the operand.
19499 (gimple_call_lhs_ptr): Likewise.
19500 (gimple_call_set_lhs): Likewise.
19501 (gimple_call_internal_p): Likewise.
19502 (gimple_call_with_bounds_p): Likewise.
19503 (gimple_call_set_with_bounds): Likewise.
19504 (gimple_call_internal_fn): Likewise.
19505 (gimple_call_set_ctrl_altering): Likewise.
19506 (gimple_call_ctrl_altering_p): Likewise.
19507 (gimple_call_fntype): Likewise.
19508 (gimple_call_fn): Likewise.
19509 (gimple_call_fn_ptr): Likewise.
19510 (gimple_call_set_fndecl): Likewise.
19511 (gimple_call_fndecl): Likewise.
19512 (gimple_call_chain): Likewise.
19513 (gimple_call_num_args): Likewise.
19514 (gimple_call_arg): Likewise.
19515 (gimple_call_arg_ptr): Likewise.
19516 (gimple_call_set_arg): Likewise.
19517 (gimple_call_noreturn_p): Likewise.
19518 (gimple_cond_code): Likewise.
19519 (gimple_cond_lhs): Likewise.
19520 (gimple_cond_rhs): Likewise.
19521 (gimple_has_lhs): Reduce checking.
19522
19523 2015-08-13 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
19524
19525 PR middle-end/25529
19526 * match.pd (div (mult @0 @1) @1) : New simplifier.
19527
19528 2015-08-12 Michael Meissner <meissner@linux.vnet.ibm.com>
19529
19530 PR target/67071
19531 * config/rs6000/predicates.md (easy_vector_constant_vsldoi): New
19532 predicate to allow construction of vector constants using the
19533 VSLDOI vector shift instruction.
19534
19535 * config/rs6000/rs6000-protos.h (vspltis_shifted): Add
19536 declaration.
19537
19538 * config/rs6000/rs6000.c (vspltis_shifted): New function to return
19539 the number of bytes to be shifted left and filled in with either
19540 all zero or all one bits.
19541 (gen_easy_altivec_constant): Call vsplitis_shifted if no other
19542 methods exist.
19543 (output_vec_const_move): On power8, generate XXLORC to generate
19544 a vector constant with all 1's. Do a split if we need to use a
19545 VSLDOI instruction.
19546
19547 * config/rs6000/rs6000.h (EASY_VECTOR_MSB): Use mode mask to
19548 properly test for the MSB.
19549
19550 * config/rs6000/altivec.md (VSLDOI splitter): Add splitter for
19551 vector constants that can be created with VSLDOI.
19552
19553 2015-08-11 Trevor Saunders <tbsaunde@tbsaunde.org>
19554
19555 revert:
19556 * compare-elim.c, dce.c, dse.c, gimple-ssa-isolate-paths.c,
19557 gimple-ssa-strength-reduction.c, graphite.c, init-regs.c,
19558 ipa-pure-const.c, ipa-visibility.c, ipa.c, mode-switching.c,
19559 omp-low.c, reorg.c, sanopt.c, trans-mem.c, tree-eh.c,
19560 tree-if-conv.c, tree-ssa-copyrename.c, tree-ssa-dce.c,
19561 tree-ssa-dom.c, tree-ssa-dse.c, tree-ssa-forwprop.c,
19562 tree-ssa-sink.c, tree-ssanames.c, tree-stdarg.c, tree-tailcall.c,
19563 tree-vect-generic.c, tree.c, ubsan.c, var-tracking.c,
19564 vtable-verify.c, web.c: Use GCC_FINAL instead of the anonymous
19565
19566 2015-08-12 Max Filippov <jcmvbkbc@gmail.com>
19567
19568 * config/xtensa/constraints.md (define_constraint "Y"): New
19569 constraint.
19570 * config/xtensa/elf.h (ASM_SPEC): Add m(no-)auto-litpools.
19571 * config/xtensa/linux.h (ASM_SPEC): Likewise.
19572 * config/xtensa/predicates.md (move_operand): Match constants
19573 and symbols in the presence of TARGET_AUTO_LITPOOLS.
19574 * config/xtensa/xtensa.c (xtensa_valid_move): Don't allow
19575 immediate references to TLS data.
19576 (xtensa_emit_move_sequence): Don't force constants to memory in
19577 the presence of TARGET_AUTO_LITPOOLS.
19578 (print_operand): Add 'y' format, same as default, but capable of
19579 printing SF mode constants as well.
19580 * config/xtensa/xtensa.md (movsi_internal, movhi_internal)
19581 (movsf_internal): Add movi pattern that loads literal.
19582 (movsf, movdf): Don't force constants to memory in the presence
19583 of TARGET_AUTO_LITPOOLS.
19584 (movdf_internal): Add 'Y' constraint.
19585 * config/xtensa/xtensa.opt (mauto-litpools): New option.
19586 * doc/invoke.text (Xtensa options): Document -mauto-litpools.
19587
19588 2015-08-12 Matthew Wahab <matthew.wahab@arm.com>
19589
19590 * config/arm/arm-fpus.def: Replace booleans with feature flags.
19591 Update comment.
19592 * config/arm/arm.c (ARM_FPU): Update macro.
19593 * config/arm/arm.h (TARGET_NEON_FP16): Update feature test.
19594 (TARGET_FP16): Likewise.
19595 (TARGET_CRYPTO): Likewise.
19596 (TARGET_NEON): Likewise.
19597 (struct arm_fpu_desc): Remove fields neon, fp16 and crypto. Add
19598 field features.
19599
19600 2015-08-12 Tom de Vries <tom@codesourcery.com>
19601
19602 PR other/67092
19603 PR other/67098
19604 * doc/install.texi: Remove --with_host_libstdcxx item. Update
19605 --with-stage1-libs, --with-boot-ldflags and --with-boot-libs items
19606 accordingly. Mention default for --with-stage1-ldflags.
19607
19608 2015-08-12 Matthew Wahab <matthew.wahab@arm.com>
19609
19610 * config/arm/arm.h (arm_fpu_feature_set): New.
19611 (ARM_FPU_FSET_HAS): New.
19612 (FPU_FL_NONE): New.
19613 (FPU_FL_NEON): New.
19614 (FPU_FL_FP16): New.
19615 (FPU_FL_CRYPTO): New.
19616
19617 2015-08-12 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
19618
19619 * config/aarch64/aarch64.c (initialize_aarch64_code_model): Break
19620 after -mcmodel=large -fPIC sorry.
19621
19622 2015-08-12 Richard Biener <rguenther@suse.de>
19623
19624 * tree-ssa-sccvn.c (vn_nary_op_compute_hash): Also canonicalize
19625 comparison operand order and commutative ternary op operand order.
19626 (sccvn_dom_walker::cond_stack): New state to track temporary
19627 expressions.
19628 (sccvn_dom_walker::after_dom_children): Remove tempoary expressions
19629 no longer valid.
19630 (sccvn_dom_walker::record_cond): Add a single temporary conditional
19631 expression.
19632 (sccvn_dom_walker::record_conds): Add a temporary conditional
19633 expressions and all related expressions also true/false.
19634 (sccvn_dom_walker::before_dom_children): Record temporary
19635 expressions based on the controlling condition of a single
19636 predecessor. When trying to simplify a conditional statement
19637 lookup expressions we might have inserted earlier.
19638
19639 2015-08-12 Yvan Roux <yvan.roux@linaro.org>
19640
19641 PR target/67127
19642 * config/arm/arm.md (movdi): Restrict illegitimate ldrd/strd checking
19643 to ARM core registers.
19644
19645 2015-08-12 Nathan Sidwell <nathan@acm.org>
19646
19647 * tree-vrp.c (simplify_min_or_max_using_ranges): New.
19648 (simplify_stmt_using_ranges): Simplify MIN and MAX exprs.
19649
19650 2015-08-12 Simon Dardis <simon.dardis@imgtec.com>
19651
19652 * config/mips/mips.c (mips_store_data_bypass_p): Bring code into
19653 line with comments.
19654 * config/mips/sb1.md: Update usage of mips_store_data_bypass_p.
19655
19656 2015-08-12 Richard Biener <rguenther@suse.de>
19657
19658 * gimple.h (remove_pointer): New trait.
19659 (GIMPLE_CHECK2): New inline template function.
19660 (gassign::code_): New constant static member.
19661 (is_a_helper<const gassign *>): Add.
19662 (gimple_assign_lhs): Use GIMPLE_CHECK2 in the gimple overload
19663 and forward to a new gassign overload with less checking and a
19664 cheaper way to access the operand.
19665 (gimple_assign_lhs_ptr): Likewise.
19666 (gimple_assign_set_lhs): Likewise.
19667 (gimple_assign_rhs1, gimple_assign_rhs1_ptr, gimple_assign_set_rhs1):
19668 Likewise.
19669 (gimple_assign_rhs2, gimple_assign_rhs2_ptr, gimple_assign_set_rhs2):
19670 Likewise.
19671 (gimple_assign_rhs3, gimple_assign_rhs3_ptr, gimple_assign_set_rhs3):
19672 Likewise.
19673 (gimple_assign_rhs_code): Likewise.
19674 * gimple.c (gassign::code_): Define.
19675
19676 2015-08-12 Richard Biener <rguenther@suse.de>
19677
19678 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children):
19679 Eliminate edges marked as not executable by SCCVN.
19680 * tree-ssa-sccvn.c: Include gimple-iterator.h.
19681 (cond_dom_walker): Rename to sccvn_dom_walker.
19682 (sccvn_dom_walker::before_dom_children): Value-number defs
19683 of all stmts.
19684 (run_scc_vn): Remove loop value-numbering all SSA names.
19685 Drop not visited SSA names to varying.
19686
19687 2015-08-11 Trevor Saunders <tbsaunde@tbsaunde.org>
19688
19689 * compare-elim.c, dce.c, dse.c, gimple-ssa-isolate-paths.c,
19690 gimple-ssa-strength-reduction.c, graphite.c, init-regs.c,
19691 ipa-pure-const.c, ipa-visibility.c, ipa.c, mode-switching.c,
19692 omp-low.c, reorg.c, sanopt.c, trans-mem.c, tree-eh.c,
19693 tree-if-conv.c, tree-ssa-copyrename.c, tree-ssa-dce.c,
19694 tree-ssa-dom.c, tree-ssa-dse.c, tree-ssa-forwprop.c,
19695 tree-ssa-sink.c, tree-ssanames.c, tree-stdarg.c, tree-tailcall.c,
19696 tree-vect-generic.c, tree.c, ubsan.c, var-tracking.c,
19697 vtable-verify.c, web.c: Use GCC_FINAL instead of the anonymous
19698
19699 2015-08-11 Uros Bizjak <ubizjak@gmail.com>
19700
19701 PR target/66954
19702 * config/i386/i386.c (get_builtin_code_for_version): Add P_PCLMUL
19703 to enum feature_priority and feature_list.
19704 (fold_builtin_cpu): Add F_PCLMUL to enum processor_features
19705 and isa_names_table.
19706
19707 2015-08-11 Yuri Rumyantsev <ysrumyan@gmail.com>
19708
19709 * tree-vect-stmts.c (vectorizable_shift): Add missed test on
19710 vect_induction_def.
19711
19712 2015-08-11 Manuel López-Ibáñez <manu@gcc.gnu.org>
19713
19714 PR c/66098
19715 PR c/66711
19716 * diagnostic.c (diagnostic_classify_diagnostic): Take -Werror into
19717 account when deciding what was the command-line status.
19718
19719 2015-08-11 Nathan Sidwell <nathan@acm.org>
19720
19721 * tree-vrp.c (simplify_abs_using_ranges): Simplify.
19722
19723 * tree-ssa-phiopt.c (minmax_replacement): Create new ssa name if
19724 we're not the only contributor to target phi.
19725
19726 2015-08-11 Jiong Wang <jiong.wang@arm.com>
19727
19728 * config/aarch64/aarch64.h (REG_CLASS_NAMES): Add the missing ',' after
19729 FIXED_REG0.
19730
19731 2015-08-11 Tom de Vries <tom@codesourcery.com>
19732
19733 * tree-cfg.c (move_sese_region_to_fn): Add todo comment.
19734
19735 2015-08-10 H.J. Lu <hongjiu.lu@intel.com>
19736
19737 * config/i386/i386.c (processor_alias_table): Replace CPU_KNL
19738 with CPU_SLM.
19739 * config/i386/i386.md (cpu): Remove knl.
19740
19741 2015-08-10 Thomas Schwinge <thomas@codesourcery.com>
19742
19743 PR libgomp/65742
19744 PR middle-end/66332
19745 * builtins.c (expand_builtin_acc_on_device) [ACCEL_COMPILER]: Emit
19746 open-coded sequence.
19747 * omp-low.c (oacc_process_reduction_data): Remove handline of
19748 GOMP_DEVICE_HOST_NONSHM.
19749
19750 * lto-streamer-in.c (lto_input_mode_table): Adjust to
19751 GET_MODE_INNER changes.
19752
19753 2015-08-10 Thomas Schwinge <thomas@codesourcery.com>
19754 Ilya Verbin <ilya.verbin@intel.com>
19755
19756 * lto-streamer-in.c (lto_input_mode_table): Correctly advance iterator.
19757
19758 2015-08-09 Manuel López-Ibáñez <manu@gcc.gnu.org>
19759
19760 * doc/options.texi (EnabledBy): Document that the argument must be
19761 a Common option.
19762 * doc/invoke.texi (Wnull-dereference): Move after Wnonnull.
19763 Not enabled by -Wall.
19764 * optc-gen.awk: Give nicer error messages. Detect if the argument
19765 of EnabledBy is not a Common option.
19766 * common.opt (Wnull-dereference): Not enabled by -Wall.
19767 * opt-functions.awk (lang_enabled_by): Nicer error messages.
19768
19769 2015-08-09 H.J. Lu <hongjiu.lu@intel.com>
19770
19771 * config/i386/driver-i386.c (host_detect_local_cpu): Treat
19772 model == 0x4f as Broadwell.
19773
19774 2015-08-08 Segher Boessenkool <segher@kernel.crashing.org>
19775
19776 PR rtl-optimization/67028
19777 * combine.c (simplify_comparison): Fix comment. Rearrange code.
19778 Add test to see if a const_int fits in the new mode.
19779
19780 2015-08-07 DJ Delorie <dj@redhat.com>
19781
19782 * config/rx/rx.c (rx_mode_dependent_address_p): Remove unneeded asserts.
19783
19784 2015-08-07 H.J. Lu <hongjiu.lu@intel.com>
19785
19786 PR rtl-optimization/67029
19787 * ira-color.c: Include "recog.h" before including "ira-int.h".
19788 * target-globals.c: Likewise.
19789 * ira-lives.c (ira_implicitly_set_insn_hard_regs): Add an
19790 adds an alternative_mask argument and use it instead of
19791 preferred_alternatives.
19792 * ira.h (ira_implicitly_set_insn_hard_regs): Moved to ...
19793 * ira-int.h (ira_implicitly_set_insn_hard_regs): Here.
19794 * sched-deps.c: Include "ira-int.h" after including "ira.h".
19795 (sched_analyze_insn): Update call to
19796 ira_implicitly_set_insn_hard_regs.
19797 * sel-sched.c: Include "ira-int.h" after including "ira.h".
19798 (implicit_clobber_conflict_p): Update call to
19799 ira_implicitly_set_insn_hard_regs.
19800
19801 2015-08-06 Uros Bizjak <ubizjak@gmail.com>
19802
19803 * Makefile.in (.INTERMEDIATE): Add gpl.pod.
19804
19805 2015-08-07 Kaz Kojima <kkojima@gcc.gnu.org>
19806
19807 PR target/67002
19808 * config/sh/sh.c (sh_recog_treg_set_expr): Return false when
19809 currently_expanding_to_rtl is set.
19810
19811 2015-08-06 Yaakov Selkowitz <yselkowi@redhat.com>
19812
19813 * configure.ac: Define LIBICONV_DEP with in-tree libiconv.
19814 * configure: Regenerate.
19815
19816 2015-08-06 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
19817 Jiong Wang <jiong.wang@arm.com>
19818
19819 * config/aarch64/aarch64.d (tlsdesc_small_pseudo_<mode>): New pattern.
19820 * config/aarch64/aarch64.h (reg_class): New enumeration FIXED_REG0.
19821 (REG_CLASS_NAMES): Likewise.
19822 (REG_CLASS_CONTENTS): Likewise.
19823 * config/aarch64/aarch64.c (aarch64_class_max_nregs): Likewise.
19824 (aarch64_register_move_cost): Likewise.
19825 (aarch64_load_symref_appropriately): Invoke the new added pattern if
19826 possible.
19827 * config/aarch64/constraints.md (Uc0): New constraint.
19828
19829 2015-08-06 Jiong Wang <jiong.wang@arm.com>
19830
19831 * config/aarch64/constraints.md (Usf): Add the test of
19832 aarch64_is_noplt_call_p.
19833
19834 2015-08-06 Jiong Wang <jiong.wang@arm.com>
19835
19836 * config/aarch64/aarch64-protos.h (aarch64_is_noplt_call_p): New
19837 declaration.
19838 * config/aarch64/aarch64.c (aarch64_is_noplt_call_p): New function.
19839 * config/aarch64/aarch64.md (call_value_symbol): Check noplt scenarios.
19840 (call_symbol): Likewise.
19841
19842 2015-08-06 Venkataramanan Kumar <Venkataramanan.kumar@amd.com>
19843
19844 * tree-vect-patterns.c (vect_recog_mult_pattern): New function
19845 for vectorizing multiplication patterns.
19846 * tree-vectorizer.h: Adjust the number of patterns.
19847
19848 2015-08-06 Uros Bizjak <ubizjak@gmail.com>
19849
19850 * config/i386/sse.md (*vec_concatv2df): Declare added
19851 alternatives as sselog type.
19852
19853 2015-08-06 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
19854
19855 * config/s390/s390.c (s390_dwarf_frame_reg_mode): Return Pmode for
19856 all GPRs.
19857
19858 2015-08-06 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
19859
19860 * config/s390/s390.c (s390_expand_tbegin): Expand either
19861 tbegin_1_z13 or tbegin_1 depending on VX flag.
19862 * config/s390/s390.md ("tbegin_1_z13"): New expander.
19863
19864 2015-08-06 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
19865
19866 * config/s390/s390.opt: Clarify description for -mzvector
19867 * doc/invoke.texi: Add documentation for -mhtm, -mvx, and
19868 -mzvector.
19869
19870 2015-08-06 Richard Biener <rguenther@suse.de>
19871
19872 * gimple.h (gimple_call_set_fn): Access op member directly.
19873 (gimple_call_chain_ptr): Likewise.
19874 (gimple_call_set_chain): Likewise.
19875 (gimple_cond_lhs_ptr): Likewise.
19876 (gimple_cond_set_lhs): Likewise.
19877 (gimple_cond_rhs_ptr): Likewise.
19878 (gimple_cond_set_rhs): Likewise.
19879 (gimple_cond_true_label): Likewise.
19880 (gimple_cond_set_true_label): Likewise.
19881 (gimple_cond_set_false_label): Likewise.
19882 (gimple_cond_false_label): Likewise.
19883 (gimple_label_label): Likewise.
19884 (gimple_label_set_label): Likewise.
19885 (gimple_goto_set_dest): Likewise.
19886 (gimple_asm_input_op): Likewise.
19887 (gimple_asm_input_op_ptr): Likewise.
19888 (gimple_asm_set_input_op): Likewise.
19889 (gimple_asm_output_op): Likewise.
19890 (gimple_asm_output_op_ptr): Likewise.
19891 (gimple_asm_set_output_op): Likewise.
19892 (gimple_asm_clobber_op): Likewise.
19893 (gimple_asm_set_clobber_op): Likewise.
19894 (gimple_asm_label_op): Likewise.
19895 (gimple_asm_set_label_op): Likewise.
19896 (gimple_switch_index): Likewise.
19897 (gimple_switch_index_ptr): Likewise.
19898 (gimple_return_retval_ptr): Likewise.
19899 (gimple_return_retval): Likewise.
19900 (gimple_return_set_retval): Likewise.
19901 (gimple_switch_set_index): Likewise. Remove superfluous GIMPLE_CHECK.
19902 (gimple_switch_label): Likewise.
19903 (gimple_switch_set_label): Likewise.
19904
19905 2015-08-06 Richard Biener <rguenther@suse.de>
19906
19907 * gimple-fold.c (gimple_fold_stmt_to_constant_1): Simplify
19908 bool comparison canonicalization and restrict to integers.
19909
19910 2015-08-05 Andrew MacLeod <amacleod@redhat.com>
19911
19912 * coretypes.h (enum symbol_visibility): Relocate here.
19913 * flag-types.h (enum symbol_visibility): Remove.
19914 * tree-core.h (enum symbol_visibility): Remove.
19915
19916 2015-08-05 Lynn Boger <laboger@linux.vnet.ibm.com>
19917
19918 PR target/66870
19919 * config/rs6000/rs6000.c (rs6000_emit_prologue): Check
19920 for no_split_stack function attribute along with
19921 flag_split_stack.
19922 (rs6000_expand_split_stack_prologue): Likewise.
19923
19924 2015-08-05 Manuel López-Ibáñez <manu@gcc.gnu.org>
19925 Jeff Law <law@redhat.com>
19926
19927 PR c/16351
19928 * doc/invoke.texi (Wnull-dereference): New.
19929 * tree-vrp.c (infer_value_range): Update call to infer_nonnull_range.
19930 * gimple-ssa-isolate-paths.c (find_implicit_erroneous_behaviour):
19931 Warn for potential NULL dereferences.
19932 (find_explicit_erroneous_behaviour): Warn for NULL dereferences.
19933 * ubsan.c (instrument_nonnull_arg): Call
19934 infer_nonnull_range_by_attribute.
19935 (instrument_nonnull_return): Likewise.
19936 * common.opt (Wnull-dereference); New.
19937 * gimple.c (infer_nonnull_range): Remove bool arguments.
19938 (infer_nonnull_range_by_dereference): New.
19939 (infer_nonnull_range_by_attribute): New.
19940 * gimple.h: Update declarations.
19941
19942 2015-08-05 Richard Sandiford <richard.sandiford@arm.com>
19943
19944 * gensupport.c (sequence_num): Replace with...
19945 (insn_sequence_num, split_sequence_num, peephole2_sequence_num):
19946 ...these new variables.
19947 (init_rtx_reader_args_cb): Update accordingly.
19948 (get_num_code_insns): Likewise.
19949 (read_md_rtx): Rework to use a while loop and get_c_test.
19950 Use the new counters. Remove redundant DEFINE_SUBST case.
19951 * genoutput.c (gen_split): Delete.
19952 (main): Don't call it.
19953
19954 2015-08-05 Richard Sandiford <richard.sandiford@arm.com>
19955
19956 * gensupport.h (get_c_test): Declare.
19957 * gensupport.c (get_c_test): New function.
19958 * genconditions.c (main): Use it.
19959 * genrecog.c (validate_pattern): Likewise.
19960 (match_pattern_1): Likewise. Remove c_test argument.
19961 (match_pattern): Update accordingly and remove c_test argument.
19962 (main): Update accordingly.
19963
19964 2015-08-05 Richard Sandiford <richard.sandiford@arm.com>
19965
19966 * gensupport.h (get_num_insn_codes): Declare.
19967 * gensupport.c (get_num_insn_codes): New function.
19968 * genattrtab.c (optimize_attrs): Rename max_insn_code to
19969 num_insn_codes.
19970 (main): Likewise. Use get_num_insn_codes.
19971 * gencodes.c (main): Remove "last" and use get_num_insn_codes.
19972
19973 2015-08-05 Richard Sandiford <richard.sandiford@arm.com>
19974
19975 PR middle-end/66311
19976 * wide-int.cc (wi::from_mpz): Make sure that absolute mpz value
19977 is zero- rather than sign-extended.
19978
19979 2015-08-05 Richard Sandiford <richard.sandiford@arm.com>
19980
19981 * target-insns.def (can_extend): Delete.
19982
19983 2015-08-05 Richard Biener <rguenther@suse.de>
19984
19985 PR tree-optimization/67121
19986 * tree-if-conv.c (combine_blocks): Clear range-info produced
19987 by stmts no longer executed conditionally.
19988
19989 2015-08-05 Nick Clifton <nickc@redhat.com>
19990
19991 * config/rl78/rl78.c (rl78_force_nonfar_3): Remove optimization
19992 to allow identical far pointers to remain.
19993
19994 2015-08-05 Richard Biener <rguenther@suse.de>
19995
19996 PR middle-end/67120
19997 * match.pd: Compare address bases with == if they are decls
19998 or SSA names, not operand_equal_p. Otherwise fail.
19999
20000 2015-08-05 Richard Biener <rguenther@suse.de>
20001
20002 PR tree-optimization/67055
20003 * tree-ssa-ccp.c (fold_builtin_alloca_with_align): Handle
20004 NULL gimple_block.
20005
20006 * g++.dg/torture/pr67055.C: New testcase.
20007
20008 2015-08-05 Kirill Yukhin <kirill.yukhin@intel.com>
20009
20010 * config/i386/i386.md (define_attr "isa"): Addd avx512vl and
20011 noavx512vl.
20012 (define_attr "enabled"): Handle avx521vl and noavx512vl.
20013 * config/i386/sse.md (define_insn "vec_dupv2df<mask_name>"): Split
20014 AVX-512 alternative out of SSE.
20015 (define_insn "*vec_concatv2df"): Ditto.
20016
20017 2015-08-05 Kirill Yukhin <kirill.yukhin@intel.com>
20018
20019 * config/i386/i386.c (bdesc_args): Rename CODE_FOR_sse4_1_ptest into
20020 CODE_FOR_sse4_1_ptestv2di and CODE_FOR_avx_vtestps256 into
20021 CODE_FOR_avx_ptestv4di.
20022 * config/i386/sse.md (define_mode_iterator V_AVX): New.
20023 (define_mode_attr sse4_1): Extend to other 128/256-bit modes.
20024 (define_insn "avx_ptest256"): Merge this ...
20025 (define_insn "sse4_1_ptest"): And this ...
20026 (define_insn "<sse4_1>_ptest<mode>"): Into this. Use V_AVX iterator.
20027
20028 2015-08-05 Richard Biener <rguenther@suse.de>
20029
20030 PR tree-optimization/67109
20031 * tree-vect-data-refs.c (vect_analyze_group_access_1): Check
20032 against too big groups. Print whether this is a load or store
20033 group. Rename from ...
20034 (vect_analyze_group_access): ... this which is now a wrapper
20035 dissolving an invalid group.
20036 (vect_analyze_data_ref_accesses): Print whether this is a load
20037 or store group.
20038
20039 2015-08-05 Richard Biener <rguenther@suse.de>
20040
20041 PR middle-end/67107
20042 * match.pd: Guard const_binop result checking against NULL_TREE
20043 result.
20044
20045 2015-08-05 Kugan Vivekanandarajah <kuganv@linaro.org>
20046
20047 * cse.c (cse_insn): Restoring old behaviour for src_eqv
20048 when dest and value in the REG_EQUAL are same and dest
20049 is STRICT_LOW_PART.
20050
20051 2015-08-04 Anatoly Sokolov <aesok@post.ru>
20052
20053 * config/moxie/moxie.h (PRINT_OPERAND,
20054 PRINT_OPERAND_ADDRESS): Remove macros.
20055 * config/moxie/moxie-protos.h (moxie_print_operand,
20056 moxie_print_operand_address): Remove declaration.
20057 * config/moxie/moxie.c (TARGET_PRINT_OPERAND,
20058 TARGET_PRINT_OPERAND_ADDRESS): Define.
20059 (moxie_print_operand, moxie_print_operand_address): Make static.
20060
20061 2015-08-04 Szabolcs Nagy <szabolcs.nagy@arm.com>
20062
20063 PR target/66731
20064 * config/aarch64/aarch64.c (aarch64_rtx_costs): Fix NEG cost for FNMUL.
20065 (aarch64_rtx_mult_cost): Fix MULT cost with -frounding-math.
20066
20067 2015-08-04 Richard Biener <rguenther@suse.de>
20068
20069 * genmatch.c (dt_node::gen_kids_1): Use gassign and gcall in
20070 generated code.
20071 (dt_operand::gen_gimple_expr): Adjust.
20072
20073 2015-08-04 Richard Biener <rguenther@suse.de>
20074
20075 * gimple-fold.c (gimple_fold_stmt_to_constant_1): Canonicalize
20076 bool compares on RHS.
20077 * match.pd: Add X ==/!= !X is false/true pattern.
20078
20079 2015-08-04 Pawel Kupidura <pawel.kupidura@arm.com>
20080
20081 * config/aarch64/aarch64.c: Change inner loop statement cost
20082 to be consistent with other targets.
20083
20084 2015-08-04 Christophe Lyon <christophe.lyon@linaro.org>
20085
20086 * config/arm/neon.md (neon_vget_lanev2di): Handle big-endian
20087 targets.
20088
20089 2015-08-04 Nathan Sidwell <nathan@codesourcery.com>
20090
20091 * config/nvptx/nvptx.h (struct nvptx_pseudo_info): Delete.
20092 (machine_function): Remove pseudos field.
20093
20094 2015-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
20095
20096 * config/aarch64/aarch64.c (aarch64_option_valid_attribute_p):
20097 Exit early and use target_option_current_node if processing current
20098 pragma.
20099
20100 2015-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
20101
20102 * doc/extend.texi (AArch64 Function Attributes): New node.
20103 (AArch64 Pragmas): Likewise.
20104
20105 2015-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
20106
20107 * config/aarch64/aarch64.c (aarch64_option_valid_attribute_p):
20108 Initialize simd builtins if TARGET_SIMD.
20109 * config/aarch64/aarch64-builtins.c (aarch64_init_simd_builtins):
20110 Make sure that the builtins are initialized only once no matter how
20111 many times the function is called.
20112 (aarch64_init_builtins): Unconditionally initialize crc builtins.
20113 (aarch64_relayout_simd_param): New function.
20114 (aarch64_simd_expand_args): Use above during argument expansion.
20115 * config/aarch64/aarch64-c.c (aarch64_pragma_target_parse): Initialize
20116 simd builtins if TARGET_SIMD.
20117 * config/aarch64/aarch64-protos.h (aarch64_init_simd_builtins): New
20118 prototype.
20119 (aarch64_relayout_simd_types): Likewise.
20120
20121 2015-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
20122
20123 * config.gcc (aarch64*-*-*): Specify c_target_objs and cxx_target_objs.
20124 * config/aarch64/aarch64.h (REGISTER_TARGET_PRAGMAS): Define.
20125 (TARGET_CPU_CPP_BUILTINS): Redefine to call aarch64_cpu_cpp_builtins.
20126 * config/aarch64/aarch64.c (aarch64_override_options_internal): Remove
20127 static keyword.
20128 (aarch64_reset_previous_fndecl): New function.
20129 (aarch64_handle_attr_isa_flags): Handle "+nothing" in the beginning of
20130 the string.
20131 * config/aarch64/aarch64-c.c: New file.
20132 * config/aarch64/arm_acle.h: Add pragma +crc+nofp at the top.
20133 Push and pop options at beginning and end. Remove ifdef
20134 __ARM_FEATURE_CRC32.
20135 * config/aarch64/arm_neon.h: Remove #ifdef check on __ARM_NEON.
20136 Add pragma +nothing+simd and +nothing+crypto where appropriate.
20137 * config/aarch64/t-aarch64 (aarch64-c.o): New rule.
20138 * config/aarch64/aarch64-protos.h (aarch64_cpu_cpp_builtins):
20139 Define prototype.
20140 (aarch64_register_pragmas): Likewise.
20141 (aarch64_reset_previous_fndecl): Likewise.
20142 (aarch64_process_target_attr): Likewise.
20143 (aarch64_override_options_internal): Likewise.
20144
20145 2015-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
20146
20147 * config/aarch64/aarch64.c (aarch64_tribools_ok_for_inlining_p):
20148 New function.
20149 (aarch64_can_inline_p): Likewise.
20150 (TARGET_CAN_INLINE_P): Define.
20151
20152 2015-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
20153
20154 * common/config/aarch64/aarch64-common.c (aarch64_handle_option):
20155 Remove static. Handle OPT_mgeneral_regs_only,
20156 OPT_mfix_cortex_a53_835769, OPT_mstrict_align,
20157 OPT_momit_leaf_frame_pointer.
20158 * config/aarch64/aarch64.c: Include opts.h and diagnostic.h
20159 (aarch64_attr_opt_type): New enum.
20160 (aarch64_attribute_info): New struct.
20161 (aarch64_handle_attr_arch): New function.
20162 (aarch64_handle_attr_cpu): Likewise.
20163 (aarch64_handle_attr_tune): Likewise.
20164 (aarch64_handle_attr_isa_flags): Likewise.
20165 (aarch64_attributes): New table.
20166 (aarch64_process_one_target_attr): New function.
20167 (num_occurences_in_str): Likewise.
20168 (aarch64_process_target_attr): Likewise.
20169 (aarch64_option_valid_attribute_p): Likewise.
20170 (TARGET_OPTION_VALID_ATTRIBUTE_P): Define.
20171 * config/aarch64/aarch64-protos.h: Include input.h
20172 (aarch64_handle_option): Declare prototype.
20173
20174 2015-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
20175
20176 * config/aarch64/aarch64.h (SWITCHABLE_TARGET): Define.
20177 * config/aarch64/aarch64.c: Include target-globals.h
20178 (aarch64_previous_fndecl): New variable.
20179 (aarch64_set_current_function): New function.
20180 (TARGET_SET_CURRENT_FUNCTION): Define.
20181
20182 2015-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
20183
20184 * config/aarch64/aarch64.opt (explicit_tune_core): New TargetVariable.
20185 (explicit_arch): Likewise.
20186 (x_aarch64_isa_flags): Likewise.
20187 (mgeneral-regs-only): Mark as Save.
20188 (mfix-cortex-a53-835769): Likewise.
20189 (mcmodel=): Likewise.
20190 (mstrict-align): Likewise.
20191 (momit-leaf-frame-pointer): Likewise.
20192 (mtls-dialect): Likewise.
20193 (master=): Likewise.
20194 * config/aarch64/aarch64.h (ASM_DECLARE_FUNCTION_NAME): Define.
20195 (aarch64_isa_flags): Remove extern declaration.
20196 * config/aarch64/aarch64.c (aarch64_validate_mcpu): Return a bool
20197 to indicate success or failure.
20198 (aarch64_validate_march): Likewise.
20199 (aarch64_validate_mtune): Likewise.
20200 (aarch64_isa_flags): Delete.
20201 (aarch64_override_options_internal): Access opts->x_aarch64_isa_flags
20202 instead of aarch64_isa_flags.
20203 (aarch64_get_tune_cpu): New function.
20204 (aarch64_get_arch): Likewise.
20205 (aarch64_override_options): Use above and set up explicit_tune_core
20206 and explicit_arch.
20207 (aarch64_print_extension): Move earlier in file. Add isa_flags
20208 argument and use that instead of the global aarch64_isa_flags.
20209 (aarch64_option_save): New function.
20210 (aarch64_option_restore): Likewise.
20211 (aarch64_option_print): Likewise.
20212 (aarch64_declare_function_name): Likewise.
20213 (aarch64_start_file): Delete.
20214 (TARGET_ASM_FILE_START): Do not define.
20215 (TARGET_OPTION_RESTORE, TARGET_OPTION_PRINT): Define.
20216 * config/aarch64/aarch64-protos.h (aarch64_declare_function_name):
20217 Declare prototype.
20218
20219 2015-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
20220
20221 * config/aarch64/aarch64.opt (momit-leaf-frame-pointer): Initialize
20222 flag_omit_leaf_frame_pointer to 2.
20223
20224 2015-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
20225
20226 * config/aarch64/aarch64.h (TARGET_FIX_ERR_A53_835769_DEFAULT): Always
20227 define to 0 or 1.
20228 (TARGET_FIX_ERR_A53_835769): New macro.
20229 * config/aarch64/aarch64.c (aarch64_override_options_internal): Remove
20230 handling of opts->x_aarch64_fix_a53_err835769.
20231 (aarch64_madd_needs_nop): Check for TARGET_FIX_ERR_A53_835769 rather
20232 than aarch64_fix_a53_err835769.
20233 * config/aarch64/aarch64-elf-raw.h: Update for above changes.
20234 * config/aarch64/aarch64-linux.h: Likewise.
20235
20236 2015-08-04 Uros Bizjak <ubizjak@gmail.com>
20237
20238 * config/i386/i386.c (ix86_expand_int_movcc): Check result of
20239 ix86_expand_int_movcc as boolean.
20240
20241 2015-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
20242
20243 * config/aarch64/aarch64.opt (aarch64_arch_string): Delete.
20244 (aarch64_cpu_string): Likewise.
20245 (aarch64_tune_string): Likewise.
20246 * config/aarch64/aarch64.c (aarch64_parse_opt_result): New enum.
20247 (aarch64_parse_extension): Return aarch64_parse_opt_result.
20248 Add extra argument to put result into.
20249 (aarch64_parse_arch): Likewise. Do not set selected_cpu.
20250 (aarch64_parse_cpu): Add arguments to put results into. Return
20251 aarch64_parse_opt_result.
20252 (aarch64_parse_tune): Likewise.
20253 (aarch64_override_options_after_change_1): New function.
20254 (aarch64_override_options_internal): New function.
20255 (aarch64_validate_mcpu): Likewise.
20256 (aarch64_validate_march): Likewise.
20257 (aarch64_validate_mtune): Likewise.
20258 (aarch64_override_options): Update to reflect above changes.
20259 Move some logic into aarch64_override_options_internal.
20260 Initialize target_option_default_node and target_option_current_node.
20261 (aarch64_override_options_after_change): Move logic into
20262 aarch64_override_options_after_change_1 and call it with global_options.
20263 (initialize_aarch64_code_model): Take a gcc_options pointer and use the
20264 flag values from that.
20265
20266 2015-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
20267
20268 * config/aarch64/aarch64.h (TARGET_CPU_CPP_BUILTINS): Define
20269 __ARM_ARCH_8A directly rather than with cpp_define_formatted.
20270 * config/aarch64/aarch64.c (struct processor): Add arch field.
20271 (all_architectures): Handle above, move above all_cores.
20272 (all_cores): Handle above.
20273 (aarch64_parse_arch): Handle above changes.
20274 * config/aarch64/aarch64-arches.def (armv8-a): Extend according to
20275 above. Update comments.
20276 (armv8.1-a): Likewise.
20277 * config/aarch64/aarch64-cores.def: Update according to above.
20278 * config/aarch64/aarch64-opts.h (aarch64_arch): New enum.
20279 * config/aarch64/driver-aarch64.c (struct aarch64_arch): Rename to
20280 aarch64_arch_driver_info.
20281
20282 2015-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
20283
20284 * config/aarch64/aarch64.c (struct processor): Add ident field.
20285 Rename core sched_core.
20286 (all_cores): Handle above changes.
20287 (all_architectures): Likewise.
20288 (aarch64_parse_arch): Likewise.
20289 (aarch64_override_options): Likewise.
20290
20291 2015-08-04 Richard Biener <rguenther@suse.de>
20292
20293 * gimple-fold.c (gimple_fold_stmt_to_constant_1): Remove
20294 dispatching to fold_binary for GIMPLE_BINARY_RHS and for
20295 comparisons embedded in [VEC_]COND_EXPRs.
20296
20297 2015-08-03 Abe Skolnik <a.skolnik@samsung.com>
20298
20299 * tree-if-conv.c: Fix various typos in comments.
20300 * tree-vect-stmts.c: Likewise.
20301
20302 2015-08-04 Thomas Preud'homme <thomas.preudhomme@arm.com>
20303
20304 PR tree-optimization/67043
20305 * loop-invariant.c (move_invariant_reg): Recompute luids in loop
20306 preheader after hoisting invariant in it.
20307 (find_defs): Force recomputation of all luids.
20308
20309 2015-08-03 Peter Bergner <bergner@vnet.ibm.com>
20310
20311 * config/rs6000/htm.md (tabort.): Restrict the source operand to
20312 using a base register.
20313
20314 2015-08-03 David Malcolm <dmalcolm@redhat.com>
20315
20316 * main.c (main): Pass in NULL for toplev's external_timer.
20317 * timevar.c: Include coretypes.h.
20318 (class timer::named_items): New.
20319 (timer::named_items::named_items): New.
20320 (timer::named_items::~named_items): New.
20321 (timer::named_items::push): New.
20322 (timer::named_items::pop): New.
20323 (timer::named_items::print): New.
20324 (timer::timer): Initialize field "m_jit_client_items".
20325 (timer::~timer): New.
20326 (timer::push): Move bulk of implementation to...
20327 (timer::push_internal): ...here. New function.
20328 (timer::pop): Move bulk of implementation to...
20329 (timer::pop_internal): ...here. New function.
20330 (timer::push_client_item): New.
20331 (timer::pop_client_item): New.
20332 (timer::print_row): New function, taken from timer::print.
20333 (timer::print): Print "GCC items" header if we also have client
20334 items. Move row-printing to timer::print_row. Print any client
20335 items.
20336 (timer::get_topmost_item_name): New method.
20337 * timevar.def (TV_JIT_ACQUIRING_MUTEX): New.
20338 (TV_JIT_CLIENT_CODE): New.
20339 * timevar.h (timer::push_client_item): New declaration.
20340 (timer::pop_client_item): New declaration.
20341 (timer::get_topmost_item_name): New method.
20342 (timer::push_internal): New declaration.
20343 (timer::pop_internal): New declaration.
20344 (timer::print_row): New declaration.
20345 (timer::named_items): New declaration.
20346 (timer::m_jit_client_items): New field.
20347 (timer): Add friend class named_items.
20348 (auto_timevar::auto_timevar): Add timer param.
20349 (auto_timevar::~auto_timevar): Use field "m_timer".
20350 (auto_timevar::m_timer): New field.
20351 * toplev.c (initialize_rtl): Add g_timer as param when
20352 constructing auto_timevar instance.
20353 (toplev::toplev): Add "external_timer" param, and use it to
20354 initialize the "g_timer" global if non-NULL.
20355 (toplev::~toplev): If this created "g_timer", delete it.
20356 * toplev.h (toplev::toplev): Replace "use_TV_TOTAL" bool param
20357 with "external_timer" timer *.
20358
20359 2015-08-03 Alexander Basov <coohpt@gmail.com>
20360
20361 PR middle-end/64744
20362 PR middle-end/48470
20363 PR middle-end/43404
20364 * cfgexpand.c (expand_one_var): Add check if stack is going to
20365 be used in naked function.
20366 * expr.c (expand_expr_addr_expr_1): Remove excess checking
20367 whether expression should not reside in MEM.
20368 * function.c (use_register_for_decl): Do not use registers for
20369 non-register things (volatile, float, BLKMode) in naked functions.
20370
20371 2015-08-03 John David Anglin <danglin@gcc.gnu.org>
20372
20373 PR target/67060
20374 * config/pa/pa.md (call_reg_64bit): Remove reg:DI 1 clobber.
20375 Adjust splits to match new pattern.
20376
20377 2015-08-03 Michael Meissner <meissner@linux.vnet.ibm.com>
20378
20379 * config/rs6000/vector.md (VEC_L): Add KFmode and TFmode.
20380 (VEC_M): Likewise.
20381 (VEC_N): Likewise.
20382 (mov<mode>, VEC_M iterator): Add support for IEEE 128-bit floating
20383 point in VSX registers.
20384
20385 * config/rs6000/constraints.md (wb constraint): Document unused
20386 w<x> constraint.
20387 (we constraint): Likewise.
20388 (wo constraint): Likewise.
20389 (wp constraint): New constraint for IEEE 128-bit floating point in
20390 VSX registers.
20391 (wq constraint): Likewise.
20392
20393 * config/rs6000/predicates.md (easy_fp_constant): Add support for
20394 IEEE 128-bit floating point in VSX registers.
20395 (easy_scalar_constant): Likewise.
20396
20397 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Add new
20398 constraints (wp, wq) for IEEE 128-bit floating point in VSX
20399 registers.
20400 (rs6000_init_hard_regno_mode_ok): Likewise.
20401
20402 * config/rs6000/vsx.md (VSX_LE_128): Add support for IEEE 128-bit
20403 floating point in VSX registers.
20404 (VSX_L): Likewise.
20405 (VSX_M): Likewise.
20406 (VSX_M2): Likewise.
20407 (VSm): Likewise.
20408 (VSs): Likewise.
20409 (VSr): Likewise.
20410 (VSa): Likewise.
20411 (VSv): Likewise.
20412 (vsx_le_permute_<mode>): Add support to properly swap bytes for
20413 IEEE 128-bit floating point in VSX registers on little endian.
20414 (vsx_le_undo_permute_<mode>): Likewise.
20415 (vsx_le_perm_load_<mode>): Likewise.
20416 (vsx_le_perm_store_<mode>): Likewise.
20417 (splitters for IEEE 128-bit fp moves): Likewise.
20418
20419 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Add wp and
20420 wq constraints.
20421
20422 * config/rs6000/altivec.md (VM): Add support for IEEE 128-bit
20423 floating point in VSX registers.
20424 (VM2): Likewise.
20425
20426 * doc/md.text (Machine Constraints): Document wp and wq
20427 constraints on PowerPC.
20428
20429 2015-08-03 Jeff Law <law@redhat.com>
20430
20431 PR middle-end/66314
20432 PR gcov-profile/66899
20433 * tree-ssa-threadupdate.c (mark_threaded_blocks): Correctly
20434 iterate over the jump threading paths when an element in the
20435 jump threading paths array is eliminated.
20436
20437 2015-08-03 Segher Boessenkool <segher@kernel.crashing.org>
20438
20439 * Makefile.in (OBJS): Put gimple-match.o and generic-match.o first.
20440
20441 2015-08-03 Patrick Palka <ppalka@gcc.gnu.org>
20442
20443 * tree-ssa-uninit.c (find_uninit_use): Declare and pass to
20444 is_use_properly_guarded the variable def_preds. Free its
20445 contents before returning.
20446 (prune_uninit_phi_opnds_in_unrealizable_paths): Same.
20447 (is_use_properly_guarded): Replace local variable def_preds with
20448 a parameter. Adjust accordingly. Only update *def_preds if it's
20449 the empty vector.
20450
20451 2015-08-03 Richard Biener <rguenther@suse.de>
20452
20453 * genmatch.c (simplify::for_subst_vec): New member.
20454 (binary_ok): New helper for for lowering.
20455 (lower_for): Delay substituting operators into result expressions
20456 if we can merge the results eventually again.
20457 (capture_info::walk_result): Adjust for user_id appearing as
20458 result expression operator.
20459 (expr::gen_transform): Likewise.
20460 (dt_simplify::gen_1): Likewise.
20461 (dt_simplify::gen): Pass not substituted operators to tail
20462 functions or initialize local variable with it.
20463 (decision_tree::gen): Adjust function signature.
20464 * match.pd: Fix tests against global code and add default
20465 cases to switch stmts.
20466
20467 2015-08-03 Richard Biener <rguenther@suse.de>
20468
20469 * genmatch.c (dt_simplify::gen): Create captures array
20470 with an initializer.
20471
20472 2015-08-03 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
20473
20474 * configure.ac: Set aliasing_flags to -fno-strict-aliasing if
20475 the host compiler is affected by placement new aliasing bug.
20476 * configure: Regenerate.
20477 * Makefile.in (ALIASING_FLAGS): New variable.
20478 (ALL_CXXFLAGS): Add $(ALIASING_FLAGS).
20479
20480 2015-08-03 Szabolcs Nagy <szabolcs.nagy@arm.com>
20481
20482 PR target/66731
20483 * config/arm/vfp.md (negmuldf3_vfp): Add new pattern.
20484 (negmulsf3_vfp): Likewise.
20485 (muldf3negdf_vfp): Disable for -frounding-math.
20486 (mulsf3negsf_vfp): Likewise.
20487 * config/arm/arm.c (arm_new_rtx_costs): Fix NEG cost for VNMUL,
20488 fix MULT cost with -frounding-math.
20489
20490 2015-08-03 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
20491
20492 * ifcvt.c (noce_try_store_flag_constants): Make logic of the case
20493 when diff == STORE_FLAG_VALUE or diff == -STORE_FLAG_VALUE more
20494 explicit. Prefer to add the flag whenever possible.
20495 (noce_process_if_block): Try noce_try_store_flag_constants before
20496 noce_try_cmove.
20497
20498 2015-08-03 Richard Biener <rguenther@suse.de>
20499
20500 * genmatch.c (struct sinfo, struct sinfo_hashmap_traits, sinfo_map_t):
20501 New hash-map to record equivalent transforms.
20502 (dt_node::analyze): Populate the equivalent transforms hash-map.
20503 (dt_simplify::info): Add reference to hash-map entry.
20504 (dt_simplify::gen): If we have split out a function for the
20505 transform, generate a call to it.
20506 (sinfo_hashmap_traits::hash): New function.
20507 (compare_op): New helper function for ...
20508 (sinfo_hashmap_traits::equal_keys): ... this new function.
20509 (decision_tree::gen): Split out common equivalent transforms
20510 into functions.
20511
20512 2015-08-03 Richard Biener <rguenther@suse.de>
20513
20514 * gimple-fold.c (fold_gimple_assign): Remove folding of
20515 the comparison in COND_EXPRs.
20516
20517 2015-08-03 Richard Biener <rguenther@suse.de>
20518
20519 * gimple-match-head.c (gimple_simplify): For [VEC_]COND_EXPRs
20520 on the rhs of assignments first simplify the embedded
20521 GENERIC condition.
20522
20523 2015-08-03 Richard Biener <rguenther@suse.de>
20524
20525 PR tree-optimization/66917
20526 * tree-vectorizer.h (struct dataref_aux): Add base_element_aligned
20527 field.
20528 (DR_VECT_AUX): New macro.
20529 (set_dr_misalignment): Adjust.
20530 (dr_misalignment): Likewise.
20531 * tree-vect-data-refs.c (vect_compute_data_ref_alignment):
20532 Compute whether the base is at least element aligned.
20533 * tree-vect-stmts.c (ensure_base_align): Adjust.
20534 (vectorizable_store): If the base is not element aligned
20535 preserve alignment of the original access if misalignment is unknown.
20536 (vectorizable_load): Likewise.
20537
20538 2015-08-02 Martin Sebor <msebor@redhat.com>
20539
20540 * doc/invoke.texi (Wframe-address): Document it.
20541 * doc/extend.texi (__builtin_frame_address, __builtin_return_address):
20542 Clarify possible effects of calling the functions with non-zero
20543 arguments and mention -Wframe-address.
20544 * builtins.c (expand_builtin_frame_address): Handle -Wframe-address.
20545
20546 2015-08-01 Michael Collison <michael.collison@linaro.org
20547 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
20548
20549 * config/arm/arm.md (*arm_smin_cmp): New pattern.
20550 (*arm_umin_cmp): Likewise.
20551
20552 2015-08-01 Caroline Tice <cmtice@google.com>
20553
20554 PR 66521
20555 * vtable-verify.c (vtbl_mangled_name_types, vtbl_mangled_name_ids): New
20556 global variables.
20557 (vtbl_find_mangled_name): New function.
20558 (vtbl_register_mangled_name): New function.
20559 (vtbl_map_get_node): If DECL_ASSEMBLER_NAME is "<anon>", look up
20560 mangled name in mangled name vectors.
20561 (find_or_create_vtbl_map_node): Ditto.
20562 (var_is_used_for_virtual_call_p): Add recursion_depth parameter;
20563 update recursion_depth on function entry; pass it to every recursive
20564 call; automatically exit if depth > 25 (give up looking at that point).
20565 (verify_bb_vtables): Initialize recursion_depth and pass it to
20566 var_is_used_for_virtual_call_p.
20567 * vtable-verify.h (vtbl_mangbled_name_types, vtbl_mangled_name_ids): New
20568 global variable decls.
20569 (vtbl_register_mangled_name): New extern function decl.
20570
20571 2015-08-01 Tom de Vries <tom@codesourcery.com>
20572
20573 * tree.c (operation_can_overflow, operation_no_trapping_overflow): New
20574 function.
20575 * tree.h (operation_can_overflow, operation_no_trapping_overflow):
20576 Declare.
20577 * tree-vect-loop.c (vect_is_simple_reduction_1): Use
20578 operation_no_trapping_overflow. Allow non-overflow operations.
20579 * graphite-sese-to-poly.c (is_reduction_operation_p): Allow non-overflow
20580 operations.
20581
20582 2015-07-31 Kaz Kojima <kkojima@gcc.gnu.org>
20583
20584 PR target/67049
20585 * config/sh/sh.md (GOTaddr2picreg): Fix typo.
20586
20587 2015-07-31 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
20588
20589 * config/arm/arm.md (*if_neg_move): Convert to insn_and_split.
20590 Enable for TARGET_32BIT.
20591 (*if_move_neg): Likewise.
20592
20593 2015-07-31 Nick Clifton <nickc@redhat.com>
20594
20595 * config/m32r/m32r.c (m32r_attribute_identifier): New function.
20596 Returns true for __model__.
20597 (TARGET_ATTRIBUTE_TAKES_IDENTIFIER_P): Define.
20598
20599 2015-07-31 Alan Modra <amodra@gmail.com>
20600
20601 PR target/66870
20602 * config/rs6000/rs6000.c (machine_function): Add split_stack_argp_used.
20603 (rs6000_emit_prologue): Set it.
20604 (rs6000_set_up_by_prologue): Specify r12 when split_stack_argp_used.
20605
20606 2015-07-31 Richard Biener <rguenther@suse.de>
20607
20608 * fold-const.c (fold_binary_loc): Remove X ^ C1 == C2
20609 -> X == (C1 ^ C2) which is already implemented in match.pd.
20610 Remove redundant dispatching to fold_relational_const.
20611 Move unordered self and NaN compares ...
20612 * match.pd: ... as patterns here. Remove some stray captures
20613 and add a comment.
20614
20615 2015-07-31 Petr Murzin <petr.murzin@intel.com>
20616
20617 * config/i386/i386.c
20618 (bdesc_special_args): Convert mask type from signed to unsigned for
20619 masked builtins.
20620 (ix86_expand_args_builtin): Do not handle UINT_FTYPE_V2DF,
20621 UINT64_FTYPE_V2DF, UINT64_FTYPE_V4SF, V16QI_FTYPE_V8DI,
20622 V16HI_FTYPE_V16SI, V16SI_FTYPE_V16SI, V16SF_FTYPE_FLOAT,
20623 V8HI_FTYPE_V8DI, V8UHI_FTYPE_V8UHI, V8SI_FTYPE_V8DI, V8SF_FTYPE_V8DF,
20624 V8DI_FTYPE_INT64, V8DI_FTYPE_V4DI, V8DI_FTYPE_V8DI, V8DF_FTYPE_DOUBLE,
20625 V8DF_FTYPE_V8SI, V16SI_FTYPE_V16SI_V16SI, V16SF_FTYPE_V16SF_V16SI,
20626 V8DI_FTYPE_V8DI_V8DI, V8DF_FTYPE_V8DF_V8DI, V4SI_FTYPE_V4SF_V4SF,
20627 V4SF_FTYPE_V4SF_UINT64, V2UDI_FTYPE_V4USI_V4USI, V2DI_FTYPE_V2DF_V2DF,
20628 V2DF_FTYPE_V2DF_UINT64, V4UDI_FTYPE_V8USI_V8USI, QI_FTYPE_V8DI_V8DI,
20629 HI_FTYPE_V16SI_V16SI, HI_FTYPE_HI_INT, V16SF_FTYPE_V16SF_V16SF_V16SF,
20630 V16SF_FTYPE_V16SF_V16SI_V16SF, V16SF_FTYPE_V16SI_V16SF_HI,
20631 V16SF_FTYPE_V16SI_V16SF_V16SF, V16SI_FTYPE_V16SF_V16SI_HI,
20632 V8DI_FTYPE_V8SF_V8DI_QI, V8SF_FTYPE_V8DI_V8SF_QI, V8DI_FTYPE_PV4DI,
20633 V8DF_FTYPE_V8DI_V8DF_QI, V16SI_FTYPE_V16SI_V16SI_V16SI,
20634 V2DI_FTYPE_V2DI_V2DI_V2DI, V8DI_FTYPE_V8DF_V8DI_QI, V8DF_FTYPE_PV4DF,
20635 V8SI_FTYPE_V8SI_V8SI_V8SI, V8DF_FTYPE_V8DF_V8DF_V8DF, UINT_FTYPE_V4SF,
20636 V8DF_FTYPE_V8DF_V8DI_V8DF, V8DF_FTYPE_V8DI_V8DF_V8DF,
20637 V8DF_FTYPE_V8SF_V8DF_QI, V8DI_FTYPE_V8DI_V8DI_V8DI, V16SF_FTYPE_PV4SF,
20638 V8SF_FTYPE_V8DF_V8SF_QI, V8SI_FTYPE_V8DF_V8SI_QI, V16SI_FTYPE_PV4SI,
20639 V2DF_FTYPE_V2DF_V4SF_V2DF_QI, V4SF_FTYPE_V4SF_V2DF_V4SF_QI,
20640 V8DI_FTYPE_V8DI_SI_V8DI_V8DI, QI_FTYPE_V8DF_V8DF_INT_QI,
20641 HI_FTYPE_V16SF_V16SF_INT_HI, V16SF_FTYPE_V16SF_V16SF_V16SI_INT_HI,
20642 VOID_FTYPE_PDOUBLE_V2DF_QI, VOID_FTYPE_PFLOAT_V4SF_QI,
20643 V2DF_FTYPE_PCDOUBLE_V2DF_QI, V4SF_FTYPE_PCFLOAT_V4SF_QI.
20644 * config/i386/i386-builtin-types.def
20645 (V16QI_FTYPE_V16SI): Remove.
20646 (V8DF_FTYPE_V8SI): Ditto.
20647 (V8HI_FTYPE_V8DI): Ditto.
20648 (V8SI_FTYPE_V8DI): Ditto.
20649 (V8SF_FTYPE_V8DF): Ditto.
20650 (V8SF_FTYPE_V8DF_V8SF_QI): Ditto.
20651 (V16HI_FTYPE_V16SI): Ditto.
20652 (V16SF_FTYPE_V16HI): Ditto.
20653 (V16SF_FTYPE_V16HI_V16SF_HI): Ditto.
20654 (V16SF_FTYPE_V16SI): Ditto.
20655 (V4DI_FTYPE_V4DI): Ditto.
20656 (V16SI_FTYPE_V16SF): Ditto.
20657 (V16SF_FTYPE_FLOAT): Ditto.
20658 (V8DF_FTYPE_DOUBLE): Ditto.
20659 (V8DI_FTYPE_INT64): Ditto.
20660 (V8DI_FTYPE_V4DI): Ditto.
20661 (V16QI_FTYPE_V8DI): Ditto.
20662 (UINT_FTYPE_V4SF): Ditto.
20663 (UINT64_FTYPE_V4SF): Ditto.
20664 (UINT_FTYPE_V2DF): Ditto.
20665 (UINT64_FTYPE_V2DF): Ditto.
20666 (V16SI_FTYPE_V16SI): Ditto.
20667 (V8DI_FTYPE_V8DI): Ditto.
20668 (V16SI_FTYPE_PV4SI): Ditto.
20669 (V16SF_FTYPE_PV4SF): Ditto.
20670 (V8DI_FTYPE_PV2DI): Ditto.
20671 (V8DF_FTYPE_PV2DF): Ditto.
20672 (V4DI_FTYPE_PV2DI): Ditto.
20673 (V4DF_FTYPE_PV2DF): Ditto.
20674 (V16SI_FTYPE_PV2SI): Ditto.
20675 (V16SF_FTYPE_PV2SF): Ditto.
20676 (V8DI_FTYPE_PV4DI): Ditto.
20677 (V8DF_FTYPE_PV4DF): Ditto.
20678 (V8SF_FTYPE_FLOAT): Ditto.
20679 (V4SF_FTYPE_FLOAT): Ditto.
20680 (V4DF_FTYPE_DOUBLE): Ditto.
20681 (V8SF_FTYPE_PV4SF): Ditto.
20682 (V8SI_FTYPE_PV4SI): Ditto.
20683 (V4SI_FTYPE_PV2SI): Ditto.
20684 (V8SF_FTYPE_PV2SF): Ditto.
20685 (V8SI_FTYPE_PV2SI): Ditto.
20686 (V16SF_FTYPE_PV8SF): Ditto.
20687 (V16SI_FTYPE_PV8SI): Ditto.
20688 (V8DI_FTYPE_V8SF): Ditto.
20689 (V4DI_FTYPE_V4SF): Ditto.
20690 (V2DI_FTYPE_V4SF): Ditto.
20691 (V64QI_FTYPE_QI): Ditto.
20692 (V32HI_FTYPE_HI): Ditto.
20693 (V8UHI_FTYPE_V8UHI): Ditto.
20694 (V16UHI_FTYPE_V16UHI): Ditto.
20695 (V32UHI_FTYPE_V32UHI): Ditto.
20696 (V2UDI_FTYPE_V2UDI): Ditto.
20697 (V4UDI_FTYPE_V4UDI): Ditto.
20698 (V8UDI_FTYPE_V8UDI): Ditto.
20699 (V4USI_FTYPE_V4USI): Ditto.
20700 (V8USI_FTYPE_V8USI): Ditto.
20701 (V16USI_FTYPE_V16USI): Ditto.
20702 (V2DF_FTYPE_V2DF_UINT64): Ditto.
20703 (V2DI_FTYPE_V2DF_V2DF): Ditto.
20704 (V2UDI_FTYPE_V4USI_V4USI): Ditto.
20705 (V8DF_FTYPE_V8DF_V8DI): Ditto.
20706 (V4SF_FTYPE_V4SF_UINT64): Ditto.
20707 (V4SI_FTYPE_V4SF_V4SF): Ditto.
20708 (V16SF_FTYPE_V16SF_V16SI): Ditto.
20709 (V64QI_FTYPE_V32HI_V32HI): Ditto.
20710 (V32HI_FTYPE_V16SI_V16SI): Ditto.
20711 (V8DF_FTYPE_V8DF_V8DF_V8DI_INT_QI): Ditto.
20712 (V16SF_FTYPE_V16SF_V16SF_V16SI_INT_HI): Ditto.
20713 (V32HI_FTYPE_V64QI_V64QI): Ditto.
20714 (V32HI_FTYPE_V32HI_V32HI): Ditto.
20715 (V16HI_FTYPE_V16HI_V16HI_INT_V16HI_HI): Ditto.
20716 (V16SI_FTYPE_V16SI_V4SI): Ditto.
20717 (V16SI_FTYPE_V16SI_V16SI): Ditto.
20718 (V16SI_FTYPE_V32HI_V32HI): Ditto.
20719 (V16SI_FTYPE_V16SI_SI): Ditto.
20720 (V8DI_FTYPE_V8DI_V8DI): Ditto.
20721 (V4UDI_FTYPE_V8USI_V8USI): Ditto.
20722 (V8DI_FTYPE_V16SI_V16SI): Ditto.
20723 (V8DI_FTYPE_V8DI_V2DI): Ditto.
20724 (QI_FTYPE_QI): Ditto.
20725 (SI_FTYPE_SI): Ditto.
20726 (DI_FTYPE_DI): Ditto.
20727 (QI_FTYPE_QI_QI): Ditto.
20728 (QI_FTYPE_QI_INT): Ditto.
20729 (HI_FTYPE_HI_INT): Ditto.
20730 (SI_FTYPE_SI_INT): Ditto.
20731 (DI_FTYPE_DI_INT): Ditto.
20732 (HI_FTYPE_V16QI_V16QI): Ditto.
20733 (SI_FTYPE_V32QI_V32QI): Ditto.
20734 (DI_FTYPE_V64QI_V64QI): Ditto.
20735 (QI_FTYPE_V8HI_V8HI): Ditto.
20736 (HI_FTYPE_V16HI_V16HI): Ditto.
20737 (SI_FTYPE_V32HI_V32HI): Ditto.
20738 (QI_FTYPE_V4SI_V4SI): Ditto.
20739 (QI_FTYPE_V8SI_V8SI): Ditto.
20740 (QI_FTYPE_V2DI_V2DI): Ditto.
20741 (QI_FTYPE_V4DI_V4DI): Ditto.
20742 (QI_FTYPE_V8DI_V8DI): Ditto.
20743 (HI_FTYPE_V16SI_V16SI): Ditto.
20744 (HI_FTYPE_V16SI_V16SI_INT_HI): Ditto.
20745 (QI_FTYPE_V8DF_V8DF_INT_QI): Ditto.
20746 (HI_FTYPE_V16SF_V16SF_INT_HI): Ditto.
20747 (V32HI_FTYPE_V32HI_V32HI_V32HI): Ditto.
20748 (V4SF_FTYPE_V4SF_V2DF_V4SF_QI): Ditto.
20749 (V8DF_FTYPE_V8DF_V8DF_V8DF): Ditto.
20750 (V16SF_FTYPE_V16SF_V16SF_V16SF): Ditto.
20751 (V8DF_FTYPE_V8SF_V8DF_QI): Ditto.
20752 (V8DI_FTYPE_V8DF_V8DI_QI): Ditto.
20753 (V8DF_FTYPE_V8DI_V8DF_V8DF): Ditto.
20754 (V2DF_FTYPE_V2DF_V4SF_V2DF_QI): Ditto.
20755 (V16SF_FTYPE_V16SI_V16SF_HI): Ditto.
20756 (V16SF_FTYPE_V16SI_V16SF_V16SF): Ditto.
20757 (V8SI_FTYPE_V8DF_V8SI_QI): Ditto.
20758 (V8DI_FTYPE_PCCHAR_V8DI_QI): Ditto.
20759 (V8SF_FTYPE_PCFLOAT_V8SF_QI): Ditto.
20760 (V4SF_FTYPE_PCFLOAT_V4SF_QI): Ditto.
20761 (V4DF_FTYPE_PCDOUBLE_V4DF_QI): Ditto.
20762 (V2DF_FTYPE_PCDOUBLE_V2DF_QI): Ditto.
20763 (V8SI_FTYPE_PCCHAR_V8SI_QI): Ditto.
20764 (V4SI_FTYPE_PCCHAR_V4SI_QI): Ditto.
20765 (V4DI_FTYPE_PCCHAR_V4DI_QI): Ditto.
20766 (V2DI_FTYPE_PCCHAR_V2DI_QI): Ditto.
20767 (V16SF_FTYPE_PCV8SF_V16SF_HI): Ditto.
20768 (V16SI_FTYPE_PCV8SI_V16SI_HI): Ditto.
20769 (V8DF_FTYPE_PCV2DF_V8DF_QI): Ditto.
20770 (V8SF_FTYPE_PCV4SF_V8SF_QI): Ditto.
20771 (V8DI_FTYPE_PCV2DI_V8DI_QI): Ditto.
20772 (V8SI_FTYPE_PCV4SI_V8SI_QI): Ditto.
20773 (V4DF_FTYPE_PCV2DF_V4DF_QI): Ditto.
20774 (V4DI_FTYPE_PCV2DI_V4DI_QI): Ditto.
20775 (VOID_FTYPE_PDOUBLE_V2DF_QI): Ditto.
20776 (VOID_FTYPE_PFLOAT_V4SF_QI): Ditto.
20777 (V16SI_FTYPE_V16SF_V16SI_HI): Ditto.
20778 (V8DI_FTYPE_V8SF_V8DI_QI): Ditto.
20779 (V8SF_FTYPE_V8DI_V8SF_QI): Ditto.
20780 (V8DF_FTYPE_V8DI_V8DF_QI): Ditto.
20781 (V2DF_FTYPE_V2DF_V2DF_V2DI): Ditto.
20782 (V4SF_FTYPE_V4SF_V4SF_V4SI): Ditto.
20783 (V2UDI_FTYPE_V2UDI_V2UDI_V2UDI): Ditto.
20784 (V4USI_FTYPE_V4USI_V4USI_V4USI): Ditto.
20785 (V8UHI_FTYPE_V8UHI_V8UHI_V8UHI): Ditto.
20786 (V16UQI_FTYPE_V16UQI_V16UQI_V16UQI): Ditto.
20787 (V4DF_FTYPE_V4DF_V4DF_V4DI): Ditto.
20788 (V8SF_FTYPE_V8SF_V8SF_V8SI): Ditto.
20789 (V8DI_FTYPE_V8DI_V8DI_V8DI): Ditto.
20790 (V16SI_FTYPE_V16SI_V16SI_V16SI): Ditto.
20791 (V2DF_FTYPE_V2DF_V2DI_V2DF): Ditto.
20792 (V4DF_FTYPE_V4DF_V4DI_V4DF): Ditto.
20793 (V8DF_FTYPE_V8DF_V8DI_V8DF): Ditto.
20794 (V4SF_FTYPE_V4SF_V4SI_V4SF): Ditto.
20795 (V8SF_FTYPE_V8SF_V8SI_V8SF): Ditto.
20796 (V16SF_FTYPE_V16SF_V16SI_V16SF): Ditto.
20797 (V8DI_FTYPE_V8DI_SI_V8DI_V8DI): Ditto.
20798 (PVOID_FTYPE_PVOID_PVOID_ULONG): Ditto.
20799 (V4SF_FTYPE_V2DF_V4SF_QI): Convert mask type from signed to unsigned.
20800 (V4SF_FTYPE_V4DF_V4SF_QI): Ditto.
20801 (V4SF_FTYPE_V8HI_V4SF_QI): Ditto.
20802 (V8SF_FTYPE_V8HI_V8SF_QI): Ditto.
20803 (V16SI_FTYPE_V16SI_V16SI_HI): Ditto.
20804 (V8DI_FTYPE_V8DI_V8DI_QI): Ditto.
20805 (V2DF_FTYPE_V4DF_INT_V2DF_QI): Ditto.
20806 (V2DF_FTYPE_V8DF_INT_V2DF_QI): Ditto.
20807 (V2DI_FTYPE_V2DI_INT_V2DI_QI): Ditto.
20808 (V4DF_FTYPE_V8DF_INT_V4DF_QI): Ditto.
20809 (V4SF_FTYPE_V8SF_INT_V4SF_QI): Ditto.
20810 (V4SI_FTYPE_V2DF_V4SI_QI): Ditto.
20811 (V4SI_FTYPE_V4SI_INT_V4SI_QI): Ditto.
20812 (V4SI_FTYPE_V8HI_V8HI_V4SI_QI): Ditto.
20813 (V4SI_FTYPE_V8SI_INT_V4SI_QI): Ditto.
20814 (V8HI_FTYPE_V16QI_V16QI_V8HI_QI): Ditto.
20815 (V8HI_FTYPE_V8SF_INT_V8HI_QI): Ditto.
20816 (V8HI_FTYPE_V4SF_INT_V8HI_QI): Ditto.
20817 (V8SF_FTYPE_V16SF_INT_V8SF_QI): Ditto.
20818 (V4SF_FTYPE_V16SF_INT_V4SF_QI): Ditto.
20819 (V8DF_FTYPE_V8DF_V2DF_INT_V8DF_QI): Ditto.
20820 (V8DF_FTYPE_V8DF_V4DF_INT_V8DF_QI): Ditto.
20821 (V8DF_FTYPE_V8DF_V8DF_INT_V8DF_QI): Ditto.
20822 (V8DF_FTYPE_V8DF_INT_V8DF_QI): Ditto.
20823 (V4DF_FTYPE_V4DF_V4DF_V4DI_INT_QI): Ditto.
20824 (V2DF_FTYPE_V2DF_V2DF_V2DI_INT_QI): Ditto.
20825 (V16SF_FTYPE_V16SF_V16SF_INT_V16SF_HI): Ditto.
20826 (V16SF_FTYPE_V16SF_INT_V16SF_HI): Ditto.
20827 (V16SI_FTYPE_V16SI_V4SI_INT_V16SI_HI): Ditto.
20828 (V8SF_FTYPE_V8SF_V8SF_V8SI_INT_QI): Ditto.
20829 (V4SF_FTYPE_V4SF_V4SF_V4SI_INT_QI): Ditto.
20830 (V16SF_FTYPE_V16SF_V4SF_INT_V16SF_HI): Ditto.
20831 (V16SF_FTYPE_V16SF_V8SF_INT_V16SF_HI): Ditto.
20832 (V16HI_FTYPE_V32QI_V32QI_V16HI_HI): Ditto.
20833 (V32HI_FTYPE_V64QI_V64QI_V32HI_SI): Ditto.
20834 (V16HI_FTYPE_V16SF_INT_V16HI_HI): Ditto.
20835 (V16SI_FTYPE_V16SI_V8SI_INT_V16SI_HI): Ditto.
20836 (V4SI_FTYPE_V16SI_INT_V4SI_QI): Ditto.
20837 (V16SI_FTYPE_V16SI_V16SI_INT_V16SI_HI): Ditto.
20838 (V8SI_FTYPE_V16HI_V16HI_V8SI_QI): Ditto.
20839 (V16SI_FTYPE_V32HI_V32HI_V16SI_HI): Ditto.
20840 (V8SI_FTYPE_V8SI_INT_V8SI_QI): Ditto.
20841 (V8SI_FTYPE_V16SI_INT_V8SI_QI): Ditto.
20842 (V16SI_FTYPE_V16SI_V4SI_V16SI_HI): Ditto.
20843 (V16SI_FTYPE_V16SI_INT_V16SI_HI): Ditto.
20844 (V8DI_FTYPE_V8DI_V8DI_INT_V8DI_QI): Ditto.
20845 (V8DI_FTYPE_V8DI_V8DI_INT_V8DI_DI): Ditto.
20846 (V4DI_FTYPE_V4DI_V4DI_INT_V4DI_SI): Ditto.
20847 (V2DI_FTYPE_V2DI_V2DI_INT_V2DI_HI): Ditto.
20848 (V8DI_FTYPE_V8DI_V2DI_INT_V8DI_QI): Ditto.
20849 (V8DI_FTYPE_V8DI_V4DI_INT_V8DI_QI): Ditto.
20850 (V4DI_FTYPE_V8DI_INT_V4DI_QI): Ditto.
20851 (V8DI_FTYPE_V8DI_V2DI_V8DI_QI): Ditto.
20852 (V8DI_FTYPE_V8DI_INT_V8DI_QI): Ditto.
20853 (V4DI_FTYPE_V4DI_INT_V4DI_QI): Ditto.
20854 (V2DI_FTYPE_V4DI_INT_V2DI_QI): Ditto.
20855 (V2DI_FTYPE_V8DI_INT_V2DI_QI): Ditto.
20856 (HI_FTYPE_HI): Ditto.
20857 (HI_FTYPE_V16QI): Ditto.
20858 (SI_FTYPE_V32QI): Ditto.
20859 (DI_FTYPE_V64QI): Ditto.
20860 (QI_FTYPE_V8HI): Ditto.
20861 (HI_FTYPE_V16HI): Ditto.
20862 (SI_FTYPE_V32HI): Ditto.
20863 (QI_FTYPE_V4SI): Ditto.
20864 (QI_FTYPE_V8SI): Ditto.
20865 (HI_FTYPE_V16SI): Ditto.
20866 (QI_FTYPE_V2DI): Ditto.
20867 (QI_FTYPE_V4DI): Ditto.
20868 (QI_FTYPE_V8DI): Ditto.
20869 (V16QI_FTYPE_HI): Ditto.
20870 (V32QI_FTYPE_SI): Ditto.
20871 (V64QI_FTYPE_DI): Ditto.
20872 (V8HI_FTYPE_QI): Ditto.
20873 (V16HI_FTYPE_HI): Ditto.
20874 (V32HI_FTYPE_SI): Ditto.
20875 (V4SI_FTYPE_QI): Ditto.
20876 (V4SI_FTYPE_HI): Ditto.
20877 (V8SI_FTYPE_QI): Ditto.
20878 (V8SI_FTYPE_HI): Ditto.
20879 (V2DI_FTYPE_QI): Ditto.
20880 (V4DI_FTYPE_QI): Ditto.
20881 (HI_FTYPE_HI_HI): Ditto.
20882 (SI_FTYPE_SI_SI): Ditto.
20883 (DI_FTYPE_DI_DI): Ditto.
20884 (HI_FTYPE_V16QI_V16QI_HI): Ditto.
20885 (HI_FTYPE_V16QI_V16QI_INT_HI): Ditto.
20886 (SI_FTYPE_V32QI_V32QI_SI): Ditto.
20887 (SI_FTYPE_V32QI_V32QI_INT_SI): Ditto.
20888 (DI_FTYPE_V64QI_V64QI_DI): Ditto.
20889 (DI_FTYPE_V64QI_V64QI_INT_DI): Ditto.
20890 (QI_FTYPE_V8HI_V8HI_QI): Ditto.
20891 (QI_FTYPE_V8HI_V8HI_INT_QI): Ditto.
20892 (HI_FTYPE_V16HI_V16HI_HI): Ditto.
20893 (HI_FTYPE_V16HI_V16HI_INT_HI): Ditto.
20894 (SI_FTYPE_V32HI_V32HI_SI): Ditto.
20895 (SI_FTYPE_V32HI_V32HI_INT_SI): Ditto.
20896 (QI_FTYPE_V4SI_V4SI_QI): Ditto.
20897 (QI_FTYPE_V4SI_V4SI_INT_QI): Ditto.
20898 (QI_FTYPE_V8SI_V8SI_QI): Ditto.
20899 (QI_FTYPE_V8SI_V8SI_INT_QI): Ditto.
20900 (QI_FTYPE_V2DI_V2DI_QI): Ditto.
20901 (QI_FTYPE_V2DI_V2DI_INT_QI): Ditto.
20902 (QI_FTYPE_V4DI_V4DI_QI): Ditto.
20903 (QI_FTYPE_V4DI_V4DI_INT_QI): Ditto.
20904 (QI_FTYPE_V8DI_V8DI_QI): Ditto.
20905 (HI_FTYPE_V16SI_V16SI_HI): Ditto.
20906 (QI_FTYPE_V8DI_V8DI_INT): Ditto.
20907 (QI_FTYPE_V8DI_V8DI_INT_QI): Ditto.
20908 (HI_FTYPE_V16SI_V16SI_INT): Ditto.
20909 (HI_FTYPE_V16SI_V16SI_INT _HI): Ditto.
20910 (QI_FTYPE_V8DF_V8DF_INT): Ditto.
20911 (QI_FTYPE_V8DF_V8DF_INT_QI_INT): Ditto.
20912 (HI_FTYPE_V16SF_V16SF_INT): Ditto.
20913 (HI_FTYPE_V16SF_V16SF_INT_HI_INT): Ditto.
20914 (QI_FTYPE_V2DF_V2DF_INT): Ditto.
20915 (QI_FTYPE_V2DF_V2DF_INT_QI): Ditto.
20916 (QI_FTYPE_V2DF_V2DF_INT_QI_INT): Ditto.
20917 (QI_FTYPE_V4SF_V4SF_INT): Ditto.
20918 (QI_FTYPE_V4SF_V4SF_INT_QI): Ditto.
20919 (QI_FTYPE_V4SF_V4SF_INT_QI_INT): Ditto.
20920 (V16SI_FTYPE_HI): Ditto.
20921 (V8DI_FTYPE_QI): Ditto.
20922 (V2DF_FTYPE_V2DI_V2DF_V2DF_QI): Ditto.
20923 (V2DF_FTYPE_V2DF_V2DI_V2DF_QI): Ditto.
20924 (V4DF_FTYPE_V4DF_V2DF_INT_V4DF_QI): Ditto.
20925 (V4SF_FTYPE_V4SI_V4SF_V4SF_QI): Ditto.
20926 (V4SF_FTYPE_V4SF_V4SI_V4SF_QI): Ditto.
20927 (V4SF_FTYPE_V4SF_V4SF_V4SF_QI): Ditto.
20928 (V8SF_FTYPE_V8SF_V4SF_INT_V8SF_QI): Ditto.
20929 (V8SI_FTYPE_V8SI_V4SI_INT_V8SI_QI): Ditto.
20930 (V4DI_FTYPE_V4DI_V2DI_INT_V4DI_QI): Ditto.
20931 (V2DF_FTYPE_V2DF_V2DF_QI): Ditto.
20932 (V2DF_FTYPE_V4SF_V2DF_QI): Ditto.
20933 (V2DF_FTYPE_V4SI_V2DF_QI): Ditto.
20934 (V4DF_FTYPE_V4DF_V4DF_QI): Ditto.
20935 (V4DF_FTYPE_V4SF_V4DF_QI): Ditto.
20936 (V4DF_FTYPE_V4SI_V4DF_QI): Ditto.
20937 (V8DF_FTYPE_V8DF_V8DF_QI): Ditto.
20938 (V8DF_FTYPE_V8SI_V8DF_QI): Ditto.
20939 (V2DI_FTYPE_V4SI_V2DI_QI): Ditto.
20940 (V2DI_FTYPE_V8HI_V2DI_QI): Ditto.
20941 (V4DI_FTYPE_V4DF_V4DI_QI): Ditto.
20942 (V2DI_FTYPE_V2DF_V2DI_QI): Ditto.
20943 (V2DI_FTYPE_V2DI_V2DI_V2DI_QI): Ditto.
20944 (V2DI_FTYPE_V2DI_V2DI_INT_V2DI_QI): Ditto.
20945 (V4DI_FTYPE_V4DI_V4DI_V4DI_QI): Ditto.
20946 (V4DI_FTYPE_V4DI_V4DI_INT_V4DI_QI): Ditto.
20947 (V8DI_FTYPE_V8SI_V8DI_QI): Ditto.
20948 (V8DI_FTYPE_V8HI_V8DI_QI): Ditto.
20949 (V8DI_FTYPE_V16QI_V8DI_QI): Ditto.
20950 (V2DI_FTYPE_V16QI_V2DI_QI): Ditto.
20951 (V4DI_FTYPE_V16QI_V4DI_QI): Ditto.
20952 (V4DI_FTYPE_V4DI_V4DI_QI): Ditto.
20953 (V4DI_FTYPE_V4SI_V4DI_QI): Ditto.
20954 (V4DI_FTYPE_V8HI_V4DI_QI): Ditto.
20955 (V8DI_FTYPE_V8DI_V8DI_V8DI_QI): Ditto.
20956 (V8DF_FTYPE_V8DI_V8DF_V8DF_QI): Ditto.
20957 (V8DF_FTYPE_V8DF_V8DI_V8DF_QI): Ditto.
20958 (V4DF_FTYPE_V4DI_V4DF_V4DF_QI): Ditto.
20959 (V4DF_FTYPE_V4DF_V4DI_V4DF_QI): Ditto.
20960 (V4DF_FTYPE_V4DF_V4DF_V4DF_QI): Ditto.
20961 (V8DF_FTYPE_V8DF_V8DF_V8DF_QI): Ditto.
20962 (V16QI_FTYPE_V16QI_V16QI_V16QI_HI): Ditto.
20963 (V16HI_FTYPE_V16HI_V16HI_V16HI_HI): Ditto.
20964 (V16SI_FTYPE_V16SI_V16SI_V16SI_HI): Ditto.
20965 (V2DF_FTYPE_V2DF_V2DF_V2DF_QI): Ditto.
20966 (V32HI_FTYPE_V32HI_V32HI_V32HI_SI): Ditto.
20967 (V64QI_FTYPE_V64QI_V64QI_V64QI_DI): Ditto.
20968 (V32QI_FTYPE_V32QI_V32QI_V32QI_SI): Ditto.
20969 (V8HI_FTYPE_V8HI_V8HI_V8HI_QI): Ditto.
20970 (V4SF_FTYPE_V4SF_V4SF_QI): Ditto.
20971 (V4SF_FTYPE_V4SI_V4SF_QI): Ditto.
20972 (V8SF_FTYPE_V8SF_V8SF_QI): Ditto.
20973 (V8SF_FTYPE_V8SI_V8SF_QI): Ditto.
20974 (V16SF_FTYPE_V16SF_V16SF_HI): Ditto.
20975 (V4SI_FTYPE_V16QI_V4SI_QI): Ditto.
20976 (V4SI_FTYPE_V8HI_V4SI_QI): Ditto.
20977 (V8SI_FTYPE_V8SI_V8SI_QI): Ditto.
20978 (V8SI_FTYPE_V8HI_V8SI_QI): Ditto.
20979 (V8SI_FTYPE_V16QI_V8SI_QI): Ditto.
20980 (V4SI_FTYPE_V4SI_V4SI_V4SI_QI): Ditto.
20981 (V4SI_FTYPE_V4SI_V4SI_INT_V4SI_QI): Ditto.
20982 (V8SF_FTYPE_V8SF_V8SF_V8SF_QI): Ditto.
20983 (V8SF_FTYPE_V8SI_V8SF_V8SF_QI): Ditto.
20984 (V8SF_FTYPE_V8SF_V8SI_V8SF_QI): Ditto.
20985 (V8SI_FTYPE_V8SI_V8SI_V8SI_QI): Ditto.
20986 (V8SI_FTYPE_V8SI_V8SI_INT_V8SI_QI): Ditto.
20987 (V16SF_FTYPE_V16SF_V16SF_V16SF_HI): Ditto.
20988 (V16SF_FTYPE_V16SI_V16SF_V16SF_HI): Ditto.
20989 (V16SF_FTYPE_V16SF_V16SI_V16SF_HI): Ditto.
20990 (V16SF_FTYPE_V8SF_V16SF_HI): Ditto.
20991 (V16SF_FTYPE_V4SF_V16SF_HI): Ditto.
20992 (V8DF_FTYPE_V4DF_V8DF_QI): Ditto.
20993 (V8DF_FTYPE_V2DF_V8DF_QI): Ditto.
20994 (V16SI_FTYPE_V8SI_V16SI_HI): Ditto.
20995 (V16SI_FTYPE_V4SI_V16SI_HI): Ditto.
20996 (V16SI_FTYPE_SI_V16SI_HI): Ditto.
20997 (V16SI_FTYPE_V16HI_V16SI_HI): Ditto.
20998 (V16SI_FTYPE_V16QI_V16SI_HI): Ditto.
20999 (V8DI_FTYPE_V4DI_V8DI_QI): Ditto.
21000 (V4SI_FTYPE_V4DF_V4SI_QI): Ditto.
21001 (V8DI_FTYPE_V2DI_V8DI_QI): Ditto.
21002 (V8DI_FTYPE_DI_V8DI_QI): Ditto.
21003 (V16QI_FTYPE_V16SI_V16QI_HI): Ditto.
21004 (V16QI_FTYPE_V8DI_V16QI_QI): Ditto.
21005 (V32HI_FTYPE_V32HI_V32HI_SI): Ditto.
21006 (V32HI_FTYPE_V32QI_V32HI_SI): Ditto.
21007 (V16HI_FTYPE_V16HI_V16HI_HI): Ditto.
21008 (V16HI_FTYPE_V16QI_V16HI_HI): Ditto.
21009 (V8HI_FTYPE_V16QI_V8HI_QI): Ditto.
21010 (V8SF_FTYPE_V4SF_V8SF_QI): Ditto.
21011 (V4DF_FTYPE_V2DF_V4DF_QI): Ditto.
21012 (V8SI_FTYPE_V4SI_V8SI_QI): Ditto.
21013 (V8SI_FTYPE_SI_V8SI_QI): Ditto.
21014 (V4SI_FTYPE_V4SI_V4SI_QI): Ditto.
21015 (V4SI_FTYPE_SI_V4SI_QI): Ditto.
21016 (V4DI_FTYPE_V2DI_V4DI_QI): Ditto.
21017 (V4DI_FTYPE_DI_V4DI_QI): Ditto.
21018 (V2DI_FTYPE_V2DI_V2DI_QI): Ditto.
21019 (V2DI_FTYPE_DI_V2DI_QI): Ditto.
21020 (V64QI_FTYPE_V64QI_V64QI_DI): Ditto.
21021 (V64QI_FTYPE_V16QI_V64QI_DI): Ditto.
21022 (V64QI_FTYPE_QI_V64QI_DI): Ditto.
21023 (V32QI_FTYPE_V32QI_V32QI_SI): Ditto.
21024 (V32QI_FTYPE_V16QI_V32QI_SI): Ditto.
21025 (V32QI_FTYPE_QI_V32QI_SI): Ditto.
21026 (V16QI_FTYPE_V16QI_V16QI_HI): Ditto.
21027 (V16QI_FTYPE_QI_V16QI_HI): Ditto.
21028 (V32HI_FTYPE_V8HI_V32HI_SI): Ditto.
21029 (V32HI_FTYPE_HI_V32HI_SI): Ditto.
21030 (V16HI_FTYPE_V8HI_V16HI_HI): Ditto.
21031 (V16HI_FTYPE_HI_V16HI_HI): Ditto.
21032 (V8HI_FTYPE_V8HI_V8HI_QI): Ditto.
21033 (V8HI_FTYPE_HI_V8HI_QI): Ditto.
21034 (V64QI_FTYPE_PCV64QI_V64QI_DI): Ditto.
21035 (V32HI_FTYPE_PCV32HI_V32HI_SI): Ditto.
21036 (V32QI_FTYPE_PCV32QI_V32QI_SI): Ditto.
21037 (V16SF_FTYPE_PCV16SF_V16SF_HI): Ditto.
21038 (V8DF_FTYPE_PCV8DF_V8DF_QI): Ditto.
21039 (V16SI_FTYPE_PCV16SI_V16SI_HI): Ditto.
21040 (V16HI_FTYPE_PCV16HI_V16HI_HI): Ditto.
21041 (V16QI_FTYPE_PCV16QI_V16QI_HI): Ditto.
21042 (V8SF_FTYPE_PCV8SF_V8SF_QI): Ditto.
21043 (V8DI_FTYPE_PCV8DI_V8DI_QI): Ditto.
21044 (V8SI_FTYPE_PCV8SI_V8SI_QI): Ditto.
21045 (V8HI_FTYPE_PCV8HI_V8HI_QI): Ditto.
21046 (V4DF_FTYPE_PCV4DF_V4DF_QI): Ditto.
21047 (V4SF_FTYPE_PCV4SF_V4SF_QI): Ditto.
21048 (V4DI_FTYPE_PCV4DI_V4DI_QI): Ditto.
21049 (V4SI_FTYPE_PCV4SI_V4SI_QI): Ditto.
21050 (V2DF_FTYPE_PCV2DF_V2DF_QI): Ditto.
21051 (V2DI_FTYPE_PCV2DI_V2DI_QI): Ditto.
21052 (V16HI_FTYPE_V16SI_V16HI_HI): Ditto.
21053 (V8SI_FTYPE_V8DI_V8SI_QI): Ditto.
21054 (V8HI_FTYPE_V8DI_V8HI_QI): Ditto.
21055 (V16QI_FTYPE_V8HI_V16QI_QI): Ditto.
21056 (V16QI_FTYPE_V16HI_V16QI_HI): Ditto.
21057 (V16QI_FTYPE_V4SI_V16QI_QI): Ditto.
21058 (V16QI_FTYPE_V8SI_V16QI_QI): Ditto.
21059 (V8HI_FTYPE_V4SI_V8HI_QI): Ditto.
21060 (V8HI_FTYPE_V8SI_V8HI_QI): Ditto.
21061 (V16QI_FTYPE_V2DI_V16QI_QI): Ditto.
21062 (V16QI_FTYPE_V4DI_V16QI_QI): Ditto.
21063 (V8HI_FTYPE_V2DI_V8HI_QI): Ditto.
21064 (V8HI_FTYPE_V4DI_V8HI_QI): Ditto.
21065 (V4SI_FTYPE_V2DI_V4SI_QI): Ditto.
21066 (V4SI_FTYPE_V4DI_V4SI_QI): Ditto.
21067 (V32QI_FTYPE_V32HI_V32QI_SI): Ditto.
21068 (V2DF_FTYPE_V2DF_INT_V2DF_QI): Ditto.
21069 (V4DF_FTYPE_V4DF_INT_V4DF_QI): Ditto.
21070 (V4SF_FTYPE_V4SF_INT_V4SF_QI): Ditto.
21071 (V8SF_FTYPE_V8SF_INT_V8SF_QI): Ditto.
21072 (V4DF_FTYPE_V4DF_V4DF_INT_V4DF_QI): Ditto.
21073 (V2DF_FTYPE_V2DF_V2DF_INT_V2DF_QI): Ditto.
21074 (V8SF_FTYPE_V8SF_V8SF_INT_V8SF_QI): Ditto.
21075 (V4SF_FTYPE_V4SF_V4SF_INT_V4SF_QI): Ditto.
21076 (VOID_FTYPE_PV8DF_V8DF_QI): Ditto.
21077 (VOID_FTYPE_PV8SI_V8DI_QI): Ditto.
21078 (VOID_FTYPE_PV8HI_V8DI_QI): Ditto.
21079 (VOID_FTYPE_PV8HI_V4DI_QI): Ditto.
21080 (VOID_FTYPE_PV8HI_V2DI_QI): Ditto.
21081 (VOID_FTYPE_PV4SI_V4DI_QI): Ditto.
21082 (VOID_FTYPE_PV4SI_V2DI_QI): Ditto.
21083 (VOID_FTYPE_PV8HI_V8SI_QI): Ditto.
21084 (VOID_FTYPE_PV8HI_V4SI_QI): Ditto.
21085 (VOID_FTYPE_PV4DF_V4DF_QI): Ditto.
21086 (VOID_FTYPE_PV2DF_V2DF_QI): Ditto.
21087 (VOID_FTYPE_PV16SF_V16SF_HI): Ditto.
21088 (VOID_FTYPE_PV8SF_V8SF_QI): Ditto.
21089 (VOID_FTYPE_PV4SF_V4SF_QI): Ditto.
21090 (VOID_FTYPE_PV8DI_V8DI_QI): Ditto.
21091 (VOID_FTYPE_PV4DI_V4DI_QI): Ditto.
21092 (VOID_FTYPE_PV2DI_V2DI_QI): Ditto.
21093 (VOID_FTYPE_PV16SI_V16SI_HI): Ditto.
21094 (VOID_FTYPE_PV16HI_V16SI_HI): Ditto.
21095 (VOID_FTYPE_PV16QI_V16SI_HI): Ditto.
21096 (VOID_FTYPE_PV16QI_V8SI_QI): Ditto.
21097 (VOID_FTYPE_PV16QI_V4SI_QI): Ditto.
21098 (VOID_FTYPE_PV16QI_V8DI_QI): Ditto.
21099 (VOID_FTYPE_PV16QI_V4DI_QI): Ditto.
21100 (VOID_FTYPE_PV16QI_V2DI_QI): Ditto.
21101 (VOID_FTYPE_PV8SI_V8SI_QI): Ditto.
21102 (VOID_FTYPE_PV4SI_V4SI_QI): Ditto.
21103 (VOID_FTYPE_PV32HI_V32HI_SI): Ditto.
21104 (VOID_FTYPE_PV16HI_V16HI_HI): Ditto.
21105 (VOID_FTYPE_PV8HI_V8HI_QI): Ditto.
21106 (VOID_FTYPE_PV64QI_V64QI_DI): Ditto.
21107 (VOID_FTYPE_PV32QI_V32QI_SI): Ditto.
21108 (VOID_FTYPE_PV16QI_V16QI_HI): Ditto.
21109 (V8DI_FTYPE_V8DI_V8DI_V8DI_INT_QI): Ditto.
21110 (V8SI_FTYPE_V8SF_V8SI_QI): Ditto.
21111 (V4SI_FTYPE_V4SF_V4SI_QI): Ditto.
21112 (V4DI_FTYPE_V4SF_V4DI_QI): Ditto.
21113 (V2DI_FTYPE_V4SF_V2DI_QI): Ditto.
21114 (V4SF_FTYPE_V4DI_V4SF_QI): Ditto.
21115 (V4SF_FTYPE_V2DI_V4SF_QI): Ditto.
21116 (V4DF_FTYPE_V4DI_V4DF_QI): Ditto.
21117 (V2DF_FTYPE_V2DI_V2DF_QI): Ditto.
21118 (V32HI_FTYPE_V32HI_INT_V32HI_SI): Ditto.
21119 (V32HI_FTYPE_V32HI_V8HI_V32HI_SI): Ditto.
21120 (V16HI_FTYPE_V16HI_INT_V16HI_HI): Ditto.
21121 (V16HI_FTYPE_V16HI_V8HI_V16HI_HI): Ditto.
21122 (V8HI_FTYPE_V8HI_INT_V8HI_QI): Ditto.
21123 (V32HI_FTYPE_V64QI_V64QI_INT_V32HI_SI): Ditto.
21124 (V16HI_FTYPE_V32QI_V32QI_INT_V16HI_HI): Ditto.
21125 (V8HI_FTYPE_V16QI_V16QI_INT_V8HI_QI): Ditto.
21126 (V64QI_FTYPE_V32HI_V32HI_V64QI_DI): Ditto.
21127 (V32QI_FTYPE_V16HI_V16HI_V32QI_SI): Ditto.
21128 (V16QI_FTYPE_V8HI_V8HI_V16QI_HI): Ditto.
21129 (V32HI_FTYPE_V16SI_V16SI_V32HI_SI): Ditto.
21130 (V16HI_FTYPE_V8SI_V8SI_V16HI_HI): Ditto.
21131 (V8HI_FTYPE_V4SI_V4SI_V8HI_QI): Ditto.
21132 (V8DI_FTYPE_V16SI_V16SI_V8DI_QI): Ditto.
21133 (V4DI_FTYPE_V8SI_V8SI_V4DI_QI): Ditto.
21134 (V2DI_FTYPE_V4SI_V4SI_V2DI_QI): Ditto.
21135 (V16SI_FTYPE_V16SI_V16SI_V16SI_INT_HI): Ditto.
21136 (V8SI_FTYPE_V8SI_V8SI_V8SI_INT_QI): Ditto.
21137 (V4DI_FTYPE_V4DI_V4DI_V4DI_INT_QI): Ditto.
21138 (V4SI_FTYPE_V4SI_V4SI_V4SI_INT_QI): Ditto.
21139 (V2DI_FTYPE_V2DI_V2DI_V2DI_INT_QI): Ditto.
21140 (V8SI_FTYPE_V8SI_V4SI_V8SI_QI): Ditto.
21141 (V4DI_FTYPE_V4DI_V2DI_V4DI_QI): Ditto.
21142 (QI_FTYPE_V4DF_V4DF_INT_QI): Ditto.
21143 (QI_FTYPE_V8SF_V8SF_INT_QI): Ditto.
21144 (QI_FTYPE_V8DF_INT_QI): Ditto.
21145 (QI_FTYPE_V4DF_INT_QI): Ditto.
21146 (QI_FTYPE_V2DF_INT_QI): Ditto.
21147 (HI_FTYPE_V16SF_INT_HI): Ditto.
21148 (QI_FTYPE_V8SF_INT_QI): Ditto.
21149 (QI_FTYPE_V4SF_INT_QI): Ditto.
21150 (V8DF_FTYPE_V8DF_V8DF_V8DF_QI_INT): Ditto.
21151
21152 2015-07-31 Richard Biener <rguenther@suse.de>
21153
21154 * gimple-fold.c (fold_gimple_assign): Remove folding of
21155 GIMPLE_BINARY_RHS.
21156
21157 2015-07-31 Tom de Vries <tom@codesourcery.com>
21158
21159 PR tree-optimization/66846
21160 * omp-low.c (expand_omp_taskreg) [ENABLE_CHECKING]: Call
21161 verify_loop_structure for child_cfun if !LOOPS_NEED_FIXUP.
21162 (expand_omp_target) [ENABLE_CHECKING]: Same.
21163 (execute_expand_omp) [ENABLE_CHECKING]: Call verify_loop_structure for
21164 cfun if !LOOPS_NEED_FIXUP.
21165 (expand_omp_for_static_nochunk): Handle simple latch bb. Handle case
21166 that omp_for already has its own loop struct.
21167 * tree-parloops.c (create_phi_for_local_result)
21168 (create_call_for_reduction): Handle simple latch bb.
21169 (create_parallel_loop): Add simple latch bb to preserve
21170 LOOPS_HAVE_SIMPLE_LATCHES. Record new exit. Handle simple latch bb.
21171 (gen_parallel_loop): Remove call to cancel_loop_tree.
21172 (parallelize_loops): Skip loops that are inner loops of parallelized
21173 loops.
21174 (pass_parallelize_loops::execute) [ENABLE_CHECKING]: Call
21175 verify_loop_structure.
21176
21177 2015-07-30 Anatoly Sokolov <aesok@post.ru>
21178
21179 * config/v850/v850.h (LIBCALL_VALUE): Remove macros.
21180 * config/v850/v850.md (RV_REGNUM): New constants.
21181 * config/v850/v850.c (v850_libcall_value): New functions.
21182 (v850_function_value_regno_p, v850_function_value): Use RV_REGNUM.
21183 (TARGET_LIBCALL_VALUE): Define.
21184
21185 2015-07-30 Anatoly Sokolov <aesok@post.ru>
21186
21187 * rtl.h (lowpart_subreg): Move in file.
21188 * loop-iv.c (lowpart_subreg): Move to...
21189 * simplify-rtx.c (lowpart_subreg): ...here.
21190 (simplify_binary_operation_1): Use lowpart_subreg instead of
21191 simplify_gen_subreg.
21192 * expr.c (expand_expr_real_2): Ditto.
21193 * emit-rtl.c (gen_lowpart_common): Ditto.
21194 * combine.c (gen_lowpart_for_combine): Ditto.
21195 * cfgexpand.c (convert_debug_memory_address, expand_debug_expr,
21196 expand_debug_source_expr): Ditto.
21197
21198 2015-07-30 Richard Sandiford <richard.sandiford@arm.com>
21199
21200 * builtins.c (HAVE_atomic_clear, gen_atomic_clear): Delete.
21201 (expand_builtin_atomic_clear): Remove support for atomic_clear
21202 pattern.
21203
21204 2015-07-30 Richard Biener <rguenther@suse.de>
21205
21206 * gimple-fold.c (fold_gimple_assign): Only fold !tcc_comparison
21207 binaries. Move X == 0, X == 1, X != 0, and X != 1 canonicalization ...
21208 (fold_stmt_1): ... here and work on GIMPLE directly. Remove
21209 redundant operand canonicalization.
21210
21211 2015-07-30 David Sherwood <david.sherwood@arm.com>
21212
21213 * config/aarch64/aarch64-simd.md (aarch64_ext<mode>): Replace call to
21214 GET_MODE_SIZE (GET_MODE_INNER (m)) with GET_MODE_UNIT_SIZE (m).
21215 * config/aarch64/aarch64.c (aarch64_simd_valid_immediate): Likewise.
21216 * config/arm/arm.c (neon_valid_immediate): Likewise.
21217 * config/i386/i386.c (classify_argument, ix86_expand_int_vcond)
21218 (expand_vec_perm_blend, expand_vec_perm_pshufb): Likewise.
21219 (expand_vec_perm_pshufb2, expand_vec_perm_vpshufb2_vpermq): Likewise.
21220 (expand_vec_perm_vpshufb2_vpermq): Likewise.
21221 (expand_vec_perm_vpshufb2_vpermq_even_odd): Likewise.
21222 (expand_vec_perm_vpshufb4_vpermq2): Likewise.
21223 * config/i386/sse.md
21224 (<extract_type>_vinsert<shuffletype><extract_suf>_mask): Likewise.
21225 (*ssse3_palignr<mode>_perm): Likewise.
21226 * config/rs6000/rs6000.c (rs6000_complex_function_value): Likewise.
21227 * config/spu/spu.c (arith_immediate_p): Likewise.
21228 * simplify-rtx.c (simplify_const_unary_operation): Likewise.
21229 (simplify_binary_operation_1, simplify_ternary_operation): Likewise.
21230
21231 2015-07-30 Richard Biener <rguenther@suse.de>
21232
21233 * genmatch.c (decision_tree::gen_gimple): Merge with ...
21234 (decision_tree::gen_generic): ... this into ...
21235 (decision_tree::gen): ... this.
21236 (main): Adjust callers.
21237
21238 2015-07-30 Richard Biener <rguenther@suse.de>
21239
21240 * genmatch.c (verbose): New global.
21241 (warning_at): Add overload with source_location.
21242 (capture_info::capture_info): Add bool whether generating gimple
21243 or generic. Add gimple member.
21244 (capture_info::cinfo): Add capture member.
21245 (capture_info::walk_match): Record capture. Warn on
21246 non-captured leafs.
21247 (capture_info::walk_c_expr): Add more fragments captures cannot
21248 escape through. Warn on escaped captures.
21249 (dt_simplify::gen_1): Warn on operands we force to have no
21250 side-effects.
21251 (main): Initialize verbose.
21252 * match.pd: Add integer_nonzerop and HONOR_NANS predicates.
21253
21254 2015-07-30 Richard Biener <rguenther@suse.de>
21255
21256 PR middle-end/67053
21257 * match.pd: Allow both operands to independently have conversion
21258 when simplifying compares of addresses.
21259
21260 2015-07-29 Segher Boessenkool <segher@kernel.crashing.org>
21261
21262 PR target/66217
21263 PR target/67045
21264 * config/rs6000/rs6000.md (and<mode>3): Put a CONST_INT_P check
21265 around those cases that need one.
21266
21267 2015-07-29 Aditya Kumar <hiraditya@msn.com>
21268
21269 * params.def (PARAM_GRAPHITE_MAX_NB_SCOP_PARAMS): Default to 3.
21270
21271 2015-07-29 H.J. Lu <hongjiu.lu@intel.com>
21272
21273 * config/i386/iamcu.h (TARGET_ASM_FILE_START_FILE_DIRECTIVE):
21274 New. Copied from config/i386/gnu-user.h.
21275 (ASM_COMMENT_START): Likewise.
21276 (DBX_REGISTER_NUMBER): Likewise.
21277
21278 2015-07-29 Richard Biener <rguenther@suse.de>
21279
21280 * gimple-fold.c (fold_gimple_cond): Remove.
21281 (fold_stmt_1): Do not call it.
21282
21283 2015-07-29 Alan Lawrence <alan.lawrence@arm.com>
21284
21285 * config/aarch64/aarch64-builtins.c (aarch64_fp16_type_node): New.
21286 (aarch64_init_builtins): Make aarch64_fp16_type_node, use for __fp16.
21287
21288 * config/aarch64/aarch64-modes.def: Add HFmode.
21289
21290 * config/aarch64/aarch64.h (TARGET_CPU_CPP_BUILTINS): Define
21291 __ARM_FP16_FORMAT_IEEE and __ARM_FP16_ARGS. Set bit 1 of __ARM_FP.
21292
21293 * config/aarch64/aarch64.c (aarch64_init_libfuncs,
21294 aarch64_promoted_type): New.
21295
21296 (aarch64_float_const_representable_p): Disable HFmode.
21297 (aarch64_mangle_type): Mangle half-precision floats to "Dh".
21298 (TARGET_PROMOTED_TYPE): Define to aarch64_promoted_type.
21299 (TARGET_INIT_LIBFUNCS): Define to aarch64_init_libfuncs.
21300
21301 * config/aarch64/aarch64.md (mov<mode>): Include HFmode using GPF_F16.
21302 (movhf_aarch64, extendhfsf2, extendhfdf2, truncsfhf2, truncdfhf2): New.
21303
21304 * config/aarch64/iterators.md (GPF_F16): New.
21305
21306 2015-07-29 Richard Biener <rguenther@suse.de>
21307
21308 * match.pd: Merge address comparison patterns and make them
21309 handle some more cases.
21310
21311 2015-07-29 Richard Biener <rguenther@suse.de>
21312
21313 * genmatch.c (c_expr::gen_transform): Error on unknown captures.
21314 (parser::parse_capture): Add bool argument on whether to reject
21315 unknown captures.
21316 (parser::parse_expr): Adjust.
21317 (parser::parse_op): Likewise.
21318 (parser::parse_pattern): Likewise.
21319
21320 2015-07-29 Richard Biener <rguenther@suse.de>
21321
21322 * gimple-fold.c (has_use_on_stmt): New function.
21323 (replace_stmt_with_simplification): Use it to allow
21324 abnormals originally referenced in the stmt.
21325 (fold_stmt_1): Canonicalize operand order.
21326
21327 2015-07-28 David Sherwood <david.sherwood@arm.com>
21328
21329 * config/arm/arm.c (neon_element_bits, neon_valid_immediate): Call
21330 GET_MODE_INNER unconditionally.
21331 * config/spu/spu.c (arith_immediate_p): Likewise.
21332 * config/i386/i386.c (ix86_build_signbit_mask): Likewise.
21333 * expmed.c (synth_mult): Remove check for VOIDmode result from
21334 GET_MODE_INNER.
21335 (expand_mult_const): Likewise.
21336 * fold-const.c (fold_binary_loc): Replace call to element_precision
21337 with call to GET_MODE_PRECISION.
21338 * genmodes.c (emit_mode_inner_inline): Replace void_mode->name with
21339 m->name.
21340 (emit_mode_inner): Likewise.
21341 * lto-streamer-out.c (lto_write_mode_table): Update GET_MODE_INNER
21342 result check.
21343 * machmode.h (GET_MODE_UNIT_SIZE): Simplify.
21344 (GET_MODE_UNIT_PRECISION): Likewise.
21345 * rtlanal.c (subreg_get_info): Call GET_MODE_INNER unconditionally.
21346 * simplify-rtx.c (simplify_immed_subreg): Likewise.
21347 * stor-layout.c (bitwise_type_for_mode): Update assert.
21348 (element_precision): Remove.
21349
21350 2015-07-28 Richard Sandiford <richard.sandiford@arm.com>
21351
21352 * target-insns.def (reload_load_address): New targetm instruction
21353 pattern.
21354 * reload1.c (gen_reload): Use it instead of HAVE_*/gen_* interface.
21355
21356 2015-07-28 Richard Sandiford <richard.sandiford@arm.com>
21357
21358 * target-insns.def (atomic_test_and_set): New targetm instruction
21359 pattern.
21360 * optabs.c (maybe_emit_atomic_test_and_set): Use it instead of
21361 HAVE_*/gen_* interface.
21362
21363 2015-07-28 Richard Sandiford <richard.sandiford@arm.com>
21364
21365 * target-insns.def (can_extend, ptr_extend): New targetm instruction
21366 patterns.
21367 * optabs.c (can_extend_p): Use them instead of HAVE_*/gen_* interface.
21368 * simplify-rtx.c (simplify_unary_operation_1): Likewise.
21369 * emit-rtl.c (set_reg_attrs_from_value): Likewise.
21370 * rtlanal.c (nonzero_bits1): Likewise.
21371 (num_sign_bit_copies1): Likewise.
21372
21373 2015-07-28 Richard Sandiford <richard.sandiford@arm.com>
21374
21375 * target-insns.def (eh_return): New targetm instruction pattern.
21376 * except.c (expand_eh_return): Use it instead of HAVE_*/gen_*
21377 interface.
21378 * function.c (thread_prologue_and_epilogue_insns): Remove
21379 preprocessor condition.
21380
21381 2015-07-28 Richard Sandiford <richard.sandiford@arm.com>
21382
21383 * target-insns.def (indirect_jump): New targetm instruction pattern.
21384 * optabs.c (emit_indirect_jump): Use it instead of HAVE_*/gen_*
21385 interface.
21386
21387 2015-07-28 Richard Sandiford <richard.sandiford@arm.com>
21388
21389 * config/fr30/fr30.md (indirect_jump): Use pmode_register_operand
21390 instead of nonimmediate_operand. Remove C condiition.
21391
21392 2015-07-28 Richard Biener <rguenther@suse.de>
21393
21394 * match.pd: Add more simplification of address comparisons.
21395
21396 2015-07-28 Richard Biener <rguenther@suse.de>
21397
21398 * match.pd: Re-order two cases in comparison with max/min
21399 value simplification to make it apply for bools.
21400
21401 2015-07-28 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
21402
21403 * config/aarch64/aarch64.c (aarch64_rtx_arith_op_extract_p):
21404 Handle simple SIGN_EXTEND or ZERO_EXTEND.
21405 (aarch64_rtx_costs): Properly strip extend or extract before
21406 passing down to rtx costs again.
21407
21408 2015-07-28 Nick Clifton <nickc@redhat.com>
21409
21410 * config/rl78/rl78.c (rl78_addsi3_internal): New function.
21411 Optimizes the case where -mes0 is active and a constant symbolic
21412 address is used.
21413 * config/rl78/rl78-protos.h: Prototype the new function.
21414 * config/rl78/rl78.md (addsi3_internal_real): Call new function.
21415
21416 2015-07-28 Tom de Vries <tom@codesourcery.com>
21417
21418 * tree-parloops.c (reduc_stmt_res): New function.
21419 (initialize_reductions, add_field_for_reduction)
21420 (create_phi_for_local_result, create_loads_for_reductions)
21421 (create_stores_for_reduction, build_new_reduction): Handle case that
21422 reduc_stmt is a phi.
21423 (gather_scalar_reductions): Allow double_reduc reductions.
21424
21425 2015-07-28 Richard Biener <rguenther@suse.de>
21426
21427 * fold-const.c (fold_comparison): Remove equality folding
21428 of decl addresses ...
21429 * match.pd: ... here and merge with existing pattern.
21430
21431 2015-07-28 Thomas Preud'homme <thomas.preudhomme@arm.com>
21432
21433 PR tree-optimization/66828
21434 * tree-ssa-math-opts.c (perform_symbolic_merge): Change type of inc
21435 from int64_t to uint64_t.
21436
21437 2015-07-28 Dominik Vogt <vogt@linux.vnet.ibm.com>
21438
21439 * opts-common.c (read_cmdline_option): List DriverOnly enum values
21440 as valid only in the error message of the driver, not in the
21441 messages of the language compilers.
21442
21443 2015-07-27 Tom de Vries <tom@codesourcery.com>
21444
21445 * tree-parloops.c (gather_scalar_reductions): Simplify function
21446 structure.
21447
21448 2015-07-27 Marek Polacek <polacek@redhat.com>
21449
21450 * ipa-devirt.c (types_same_for_odr): Fix typo.
21451
21452 2015-07-27 Jason Merrill <jason@redhat.com>
21453
21454 PR debug/66468
21455 * dwarf2out.c (gen_inlined_subroutine_die): Check
21456 cgraph_function_possibly_inlined_p.
21457
21458 2015-07-27 Wilco Dijkstra <wdijkstr@arm.com>
21459
21460 * config/aarch64/aarch64.md (aarch64_lshr_sisd_or_int_<mode>3):
21461 Place integer variant first.
21462 (aarch64_ashr_sisd_or_int_<mode>3): Likewise.
21463
21464 2015-07-27 Alan Lawrence <alan.lawrence@arm.com>
21465
21466 PR/63870
21467 * config/arm/arm-builtins.c (enum arm_builtins):
21468 Add ARM_BUILTIN_NEON_BASE and ARM_BUILTIN_NEON_LANE_CHECK.
21469 (ARM_BUILTIN_NEON_BASE): Rename macro to....
21470 (ARM_BUILTIN_NEON_PATTERN_START): ...this.
21471 (arm_init_neon_builtins): Register __builtin_arm_lane_check.
21472 (arm_expand_neon_builtin): Handle ARM_BUILTIN_NEON_LANE_CHECK.
21473
21474 2015-07-27 Alan Lawrence <alan.lawrence@arm.com>
21475
21476 PR/63870
21477 * config/arm/arm-builtins.c (enum arm_type_qualifiers):
21478 Add qualifier_lane_index.
21479 (arm_binop_imm_qualifiers, BINOP_IMM_QUALIFIERS): New.
21480 (arm_getlane_qualifiers): Use qualifier_lane_index.
21481 (arm_lanemac_qualifiers): Rename to...
21482 (arm_mac_n_qualifiers): ...this.
21483 (LANEMAC_QUALIFIERS): Rename to...
21484 (MAC_N_QUALIFIERS): ...this.
21485 (arm_mac_lane_qualifiers, MAC_LANE_QUALIFIERS): New.
21486 (arm_setlane_qualifiers): Use qualifier_lane_index.
21487 (arm_ternop_imm_qualifiers, TERNOP_IMM_QUALIFIERS): New.
21488 (enum builtin_arg): Add NEON_ARG_LANE_INDEX.
21489 (arm_expand_neon_args): Handle NEON_ARG_LANE_INDEX.
21490 (arm_expand_neon_builtin): Handle qualifier_lane_index.
21491
21492 * config/arm/arm-protos.h (neon_lane_bounds): Add const_tree parameter.
21493 * config/arm/arm.c (bounds_check): Likewise, improve error message.
21494 (neon_lane_bounds, neon_const_bounds): Add arguments to bounds_check.
21495 * config/arm/arm_neon_builtins.def (vshrs_n, vshru_n, vrshrs_n,
21496 vrshru_n, vshrn_n, vrshrn_n, vqshrns_n, vqshrnu_n, vqrshrns_n,
21497 vqrshrnu_n, vqshrun_n, vqrshrun_n, vshl_n, vqshl_s_n, vqshl_u_n,
21498 vqshlu_n, vshlls_n, vshllu_n): Change qualifiers to BINOP_IMM.
21499 (vsras_n, vsrau_n, vrsras_n, vrsrau_n, vsri_n, vsli_n): Change
21500 qualifiers to TERNOP_IMM.
21501 (vdup_lane): Change qualifiers to GETLANE.
21502 (vmla_lane, vmlals_lane, vmlalu_lane, vqdmlal_lane, vmls_lane,
21503 vmlsls_lane, vmlslu_lane, vqdmlsl_lane): Change qualifiers to MAC_LANE.
21504 (vmla_n, vmlals_n, vmlalu_n, vqdmlal_n, vmls_n, vmlsls_n, vmlslu_n,
21505 vqdmlsl_n): Change qualifiers to MAC_N.
21506
21507 * config/arm/neon.md (neon_vget_lane<mode>, neon_vget_laneu<mode>,
21508 neon_vget_lanedi, neon_vget_lanev2di, neon_vset_lane<mode>,
21509 neon_vset_lanedi, neon_vdup_lane<mode>, neon_vdup_lanedi,
21510 neon_vdup_lanev2di, neon_vmul_lane<mode>, neon_vmul_lane<mode>,
21511 neon_vmull<sup>_lane<mode>, neon_vqdmull_lane<mode>,
21512 neon_vq<r>dmulh_lane<mode>, neon_vq<r>dmulh_lane<mode>,
21513 neon_vmla_lane<mode>, neon_vmla_lane<mode>, neon_vmlal<sup>_lane<mode>,
21514 neon_vqdmlal_lane<mode>, neon_vmls_lane<mode>, neon_vmls_lane<mode>,
21515 neon_vmlsl<sup>_lane<mode>, neon_vqdmlsl_lane<mode>):
21516 Remove call to neon_lane_bounds.
21517
21518 2015-07-27 Wilco Dijkstra <wdijkstr@arm.com>
21519
21520 * config/aarch64/aarch64.md (aarch64_ashl_sisd_or_int_<mode>3):
21521 Place integer variant first.
21522
21523 2015-07-27 Matthew Wahab <matthew.wahab@arm.com>
21524
21525 * config/arm/arm-arches.def: Add "armv6kz". Replace 6ZK with 6KZ
21526 and FL_FOR_ARCH6ZK with FL_FOR_ARCH6KZ.
21527 * config/arm/arm-c.c (arm_cpu_builtins): Emit "__ARM_ARCH_6ZK__"
21528 for armv6kz targets.
21529 * config/arm/arm-cores.def: Replace 6ZK with 6KZ.
21530 * config/arm/arm-protos.h (FL_ARCH6KZ): New.
21531 (FL_FOR_ARCH6ZK): Remove.
21532 (FL_FOR_ARCH6KZ): New.
21533 (arm_arch6zk): New declaration.
21534 * config/arm/arm-tables.opt: Regenerate.
21535 * config/arm/arm.c (arm_arch6kz): New.
21536 (arm_option_override): Set arm_arch6kz.
21537 * config/arm/arm.h (BASE_ARCH_6ZK): Rename to BASE_ARCH_6KZ.
21538 * config/arm/driver-arm.c: Add comment to "armv6zk" entry.
21539 * doc/invoke.texi: Replace "armv6zk" with "armv6kz".
21540
21541 2015-07-27 Marek Polacek <polacek@redhat.com>
21542
21543 PR c++/66555
21544 PR c/54979
21545 * doc/invoke.texi: Document -Wtautological-compare.
21546
21547 2015-07-27 Richard Biener <rguenther@suse.de>
21548
21549 * genmatch.c (decision_tree::gen_gimple): Split out large
21550 subtrees into separate functions.
21551 (decision_tree::gen_generic): Likewise.
21552
21553 2015-07-26 Uros Bizjak <ubizjak@gmail.com>
21554
21555 * config/alpha/alpha.c: Use SUBREG_P predicate.
21556 * config/alpha/predicates.md: Ditto.
21557
21558 2015-07-25 Dominik Vogt <vogt@linux.vnet.ibm.com>
21559
21560 * config.host (s390*-*-*): Include driver-native.c only when
21561 building with s390* as host *and* target.
21562
21563 2015-07-25 Oleg Endo <olegendo@gcc.gnu.org>
21564
21565 PR target/66930
21566 * config/sh/sh.c (sh_split_movrt_negc_to_movt_xor): Add missing
21567 T bit register modified_between_p check.
21568
21569 2015-07-25 Uros Bizjak <ubizjak@gmail.com>
21570
21571 * config/i386/i386.c: Use SUBREG_P predicate.
21572 * config/i386/i386.md: Ditto.
21573 * config/i386/sse.md: Ditto.
21574 * config/i386/predicates.md: Ditto.
21575
21576 2015-07-25 Uros Bizjak <ubizjak@gmail.com>
21577
21578 PR target/67004
21579 * config/i386/i386.h (ADJUST_INSN_LENGTH): Use NONDEBUG_INSN_P (INSN)
21580 predicate and INSN_CODE (INSN) >= 0 to check for valid instruction.
21581
21582 2015-07-25 Sebastian Pop <s.pop@samsung.com>
21583
21584 * Makefile.in: Remove use of TREEBROWSER.
21585 * config.in: Regenerated.
21586 * configure: Regenerated.
21587 * configure.ac: Remove definition of TREEBROWSER.
21588 * tree-browser.c: Removed.
21589 * tree-browser.def: Removed.
21590
21591 2015-07-25 Sebastian Pop <s.pop@samsung.com>
21592
21593 * graphite-scop-detection.c: Include gimple-pretty-print.h.
21594 (stmt_simple_for_scop_p): Print when a stmt is not handled in
21595 Graphite.
21596 (scopdet_basic_block_info): Print when a loop or bb cannot be
21597 represented in Graphite.
21598
21599 2015-07-25 Uros Bizjak <ubizjak@gmail.com>
21600
21601 PR target/66648
21602 * config/i386/i386.c (ix86_expand_set_or_movmem): Emit main loop
21603 execution guard when min_size is less than size_needed.
21604
21605 2015-07-25 Sebastian Pop <s.pop@samsung.com>
21606
21607 * doc/install.texi: Document supported versions of ISL.
21608
21609 2015-07-25 Jeff Law <law@redhat.com>
21610
21611 Revert:
21612 PR lto/66752
21613 * tree-ssa-threadedge.c (simplify_conrol_stmt_condition): If we are
21614 unable to find X NE 0 in the tables, return X as the simplified
21615 condition.
21616 (fsm_find_control_statement_thread_paths): If nodes in NEXT_PATH are
21617 in VISISTED_BBS, then return failure. Else add nodes from NEXT_PATH
21618 to VISISTED_BBS. */
21619 * tree-ssa-threadupdate.c (duplicate_thread_path): Fix up edge flags
21620 after removing the control flow statement and unnecessary edges.
21621
21622 2015-07-25 David Edelsohn <dje.gcc@gmail.com>
21623
21624 Revert:
21625 2015-07-23 Alexandre Oliva <aoliva@redhat.com>
21626
21627 PR rtl-optimization/64164
21628 * Makefile.in (OBJS): Drop tree-ssa-copyrename.o.
21629 * tree-ssa-copyrename.c: Removed.
21630 * opts.c (default_options_table): Drop -ftree-copyrename. Add
21631 -ftree-coalesce-vars.
21632 * passes.def: Drop all occurrences of pass_rename_ssa_copies.
21633 * common.opt (ftree-copyrename): Ignore.
21634 (ftree-coalesce-inlined-vars): Likewise.
21635 * doc/invoke.texi: Remove the ignored options above.
21636 * gimple-expr.h (gimple_can_coalesce_p): Move declaration
21637 * tree-ssa-coalesce.h: ... here.
21638 * tree-ssa-uncprop.c: Include tree-ssa-coalesce.h and other
21639 headers required by it.
21640 * gimple-expr.c (gimple_can_coalesce_p): Allow coalescing
21641 across variables when flag_tree_coalesce_vars. Check register
21642 use and promoted modes to allow coalescing. Moved to
21643 tree-ssa-coalesce.c.
21644 * tree-ssa-live.c (struct tree_int_map_hasher): Move along
21645 with its member functions to tree-ssa-coalesce.c.
21646 (var_map_base_init): Likewise. Renamed to
21647 compute_samebase_partition_bases.
21648 (partition_view_normal): Drop want_bases parameter.
21649 (partition_view_bitmap): Likewise.
21650 * tree-ssa-live.h: Adjust declarations.
21651 * tree-ssa-coalesce.c: Include explow.h.
21652 (build_ssa_conflict_graph): Process PARM_ and RESULT_DECLs's
21653 default defs at the entry point.
21654 (dump_part_var_map): New.
21655 (compute_optimized_partition_bases): New, called by...
21656 (coalesce_ssa_name): ... when flag_tree_coalesce_vars, instead
21657 of compute_samebase_partition_bases. Adjust.
21658 * alias.c (nonoverlapping_memrefs_p): Disregard gimple-regs.
21659 * cfgexpand.c (leader_merge): New.
21660 (get_rtl_for_parm_ssa_default_def): New.
21661 (set_rtl): Merge exprs and attrs, even for MEMs and non-SSA
21662 vars. Update DECL_RTL for PARM_DECLs and RESULT_DECLs too.
21663 (expand_one_stack_var_at): Handle anonymous SSA_NAMEs. Drop
21664 redundant MEM attr setting.
21665 (expand_one_stack_var_1): Handle anonymous SSA_NAMEs. Renamed
21666 from...
21667 (expand_one_stack_var): ... this. New wrapper to check and
21668 skip already expanded SSA partitions.
21669 (record_alignment_for_reg_var): New, factored out of...
21670 (expand_one_var): ... this.
21671 (expand_one_ssa_partition): New.
21672 (adjust_one_expanded_partition_var): New.
21673 (expand_one_register_var): Check and skip already expanded SSA
21674 partitions.
21675 (expand_used_vars): Don't create DECLs for anonymous SSA
21676 names. Expand all SSA partitions, then adjust all SSA names.
21677 (pass::execute): Replace the loops that set
21678 SA.partition_to_pseudo from partition leaders and cleared
21679 DECL_RTL for multi-location variables, and that which used to
21680 rename vars and set attrs, with one that clears DECL_RTL and
21681 checks that PARMs and RESULTs default_defs match DECL_RTL.
21682 * cfgexpand.h (get_rtl_for_parm_ssa_default_def): Declare.
21683 * emit-rtl.c (set_reg_attrs_for_parm): Handle NULL decl.
21684 * explow.c (promote_ssa_mode): New.
21685 * explow.h (promote_ssa_mode): Declare.
21686 * expr.c (expand_expr_real_1): Handle anonymous SSA_NAMEs.
21687 * function.c: Include cfgexpand.h.
21688 (use_register_for_decl): Handle SSA_NAMEs, anonymous or not.
21689 (use_register_for_parm_decl): Wrapper for the above to
21690 special-case the result_ptr.
21691 (rtl_for_parm): Ditto for get_rtl_for_parm_ssa_default_def.
21692 (split_complex_args): Take assign_parm_data_all argument.
21693 Pass it to rtl_for_parm. Set up rtl and context for split
21694 args.
21695 (assign_parms_augmented_arg_list): Adjust.
21696 (maybe_reset_rtl_for_parm): Reset DECL_RTL of parms with
21697 multiple locations. Recognize split complex args.
21698 (assign_parm_adjust_stack_rtl): Add all and parm arguments,
21699 for rtl_for_parm. For SSA-assigned parms, zero stack_parm.
21700 (assign_parm_setup_block): Prefer SSA-assigned location.
21701 (assign_parm_setup_reg): Likewise. Use entry_parm for equiv
21702 if stack_parm is NULL.
21703 (assign_parm_setup_stack): Prefer SSA-assigned location.
21704 (assign_parms): Maybe reset DECL_RTL of params. Adjust stack
21705 rtl before testing for pointer bounds. Special-case result_ptr.
21706 (expand_function_start): Maybe reset DECL_RTL of result.
21707 Prefer SSA-assigned location for result and static chain.
21708 Factor out DECL_RESULT and SET_DECL_RTL.
21709 * tree-outof-ssa.c (insert_value_copy_on_edge): Handle
21710 anonymous SSA names. Use promote_ssa_mode.
21711 (get_temp_reg): Likewise.
21712 (remove_ssa_form): Adjust.
21713 * stor-layout.c (layout_decl): Don't set mem attributes of
21714 non-MEMs.
21715 * var-tracking.c (dataflow_set_clear_at_call): Take call_insn
21716 and get its reg_usage for reg invalidation.
21717 (compute_bb_dataflow): Pass it insn.
21718 (emit_notes_in_bb): Likewise.
21719
21720 2015-07-25 Uros Bizjak <ubizjak@gmail.com>
21721
21722 * config/i386/i386.c (ix86_va_start): Remove
21723 unneeded !TARGET_64BIT check.
21724 (ix86_gimplify_va_arg): Ditto.
21725
21726 2015-07-24 Tom de Vries <tom@codesourcery.com>
21727
21728 * graphite-sese-to-poly.c (build_poly_scop): Always call
21729 rewrite_commutative_reductions_out_of_ssa.
21730
21731 2015-07-24 Tom de Vries <tom@codesourcery.com>
21732
21733 * graphite-sese-to-poly.c (is_reduction_operation_p): Limit
21734 flag_associative_math to FLOAT_TYPE_P. Honour
21735 TYPE_OVERFLOW_WRAPS for INTEGRAL_TYPE_P. Don't allow any other types.
21736
21737 2015-07-24 Manuel López-Ibáñez <manu@gcc.gnu.org>
21738
21739 PR c++/64079
21740 * toplev.c (check_global_declaration): Use DECL_SOURCE_LOCATION
21741 and "%qD" in warning_at instead of "%q+D" in warning.
21742
21743 2015-07-24 Uros Bizjak <ubizjak@gmail.com>
21744
21745 * config/i386/i386.c (ix86_call_abi_override): Call ix86_function_abi.
21746 (ix86_function_abi): Cleanup.
21747
21748 2015-07-24 Michael Darling <darlingm@gmail.com>
21749
21750 PR other/66259
21751 * acinclude.m4: Reflects renaming of configure.in to configure.ac
21752 * configure: Likewise
21753 * configure.ac: Likewise
21754 * doc/install.texi: Likewise
21755 * doc/tm.texi: Likewise
21756 * doc/tm.texi.in: Likewise
21757
21758 2015-07-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
21759
21760 * alias.c (nonoverlapping_memrefs_p): Use std::swap instead of
21761 manually swapping values.
21762 * cse.c (fold_rtx): Likewise.
21763 * lra-eliminations.c (form_sum): Likewise.
21764
21765 2015-07-24 Uros Bizjak <ubizjak@gmail.com>
21766
21767 PR target/64003
21768 * config/i386/i386.h (ADJUST_INSN_LENGTH): New define.
21769 * config/i386/i386.md (maybe_prefix_bnd): New attribute.
21770 (*jcc_1, *jcc_2, jump, simple_return_internal)
21771 (simple_return_pop_internal): Set attribute maybe_prefix_bnd.
21772 Set length_nobnd attribute instead of length attribute.
21773 (indirect_jump, *tablejump_1): Set attribute maybe_prefix_bnd.
21774 (length_nobnd): Remove attribute.
21775 (length): Remove length_nobnd processing.
21776
21777 2015-07-24 Nathan Sidwell <nathan@codesourcery.com>
21778
21779 * gimplify.c (omp_default_clause): New function. Reorganize flow
21780 for clarity. Broken out of ...
21781 (omp_notice_variable): ... here.
21782
21783 2015-07-24 Gary Funck <gary@intrepid.com>
21784
21785 PR middle-end/66984
21786 * fold-const.c (fold_binary_loc): Call fold_convert on arguments to
21787 fold_build2 for CEIL_DIV_EXPR and FLOOR_DIV_EXPR optimization.
21788
21789 2015-07-24 Tom de Vries <tom@codesourcery.com>
21790
21791 * tree-parloops.c (gen_parallel_loop): Add debug print for alternative
21792 exit-first loop transform.
21793
21794 2015-07-24 Cesar Philippidis <cesar@codesourcery.com>
21795
21796 PR 66714
21797 * tree-cfg.c (struct replace_decls_d): New struct.
21798 (replace_block_vars_by_duplicates_1): New function.
21799 (replace_block_vars_by_duplicates): Use it to replace the decls
21800 in the value exprs by duplicates.
21801
21802 2015-07-24 Szabolcs Nagy <szabolcs.nagy@arm.com>
21803
21804 * config/aarch64/aarch64-elf-raw.h (LINK_SPEC): Handle -h, -static,
21805 -shared, -symbolic, -rdynamic.
21806
21807 2015-07-24 Szabolcs Nagy <szabolcs.nagy@arm.com>
21808
21809 PR target/65711
21810 * config/aarch64/aarch64-linux.h (LINUX_TARGET_LINK_SPEC): Move
21811 -dynamic-linker within %{!static %{!shared, and -rdynamic within
21812 %{!static.
21813
21814 2015-07-24 Ilya Enkovich <enkovich.gnu@gmail.com>
21815
21816 PR ipa/66566
21817 * ipa-inline-analysis.c (estimate_calls_size_and_time): Check
21818 edge summary is available.
21819
21820 2015-07-24 Richard Biener <rguenther@suse.de>
21821
21822 * genmatch.c (struct dt_node): Add statistic fields.
21823 (dt_node::analyze): New method.
21824 (decision_tree::gen_gimple): Call analyze on the root node
21825 and print statistics to stderr.
21826 (decision_tree::gen_generic): Likewise.
21827
21828 2015-07-24 Richard Biener <rguenther@suse.de>
21829
21830 * fold-const.c (fold_binary_loc): Move simplifying of comparisons
21831 against the highest or lowest possible integer ...
21832 * match.pd: ... as patterns here.
21833
21834 2015-07-24 Richard Biener <rguenther@suse.de>
21835
21836 * genmatch.c (struct capture_info): Add same_as field.
21837 (capture_info::capture_info): Initialize same_as.
21838 (capture_info::walk_match): Compute same_as.
21839 (capture_info::walk_result): Compute stuff for the leader.
21840 (capture_info::walk_c_expr): Likewise.
21841 (dt_simplify::gen_1): Only look at leaders when deciding
21842 to force no side-effects or emit side-effects of omitted operands.
21843
21844 2015-07-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
21845
21846 * config/s390/s390.c (s390_save_gprs_to_fprs): Add CFA_REGISTER
21847 reg note to the GPR -> FPR save instructions.
21848
21849 2015-07-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
21850
21851 * config/s390/s390.c (s390_rtx_costs): Make risbg patterns
21852 cheaper.
21853 (s390_expand_insv): Don't generate risbg pattern for constant zero
21854 sources.
21855 * config/s390/s390.md ("*insv<mode>_zEC12_appendbitsleft")
21856 ("*insv<mode>_z10_appendbitsleft"): New pattern definitions. New
21857 splitters.
21858
21859 2015-07-24 Dominik Vogt <vogt@linux.vnet.ibm.com>
21860
21861 * config/s390/s390.c (s390_reorg): Clean up handling of processors
21862 with
21863 -mtune=
21864 (s390_issue_rate): Likewise.
21865 (s390_sched_reorder): Likewise.
21866 (s390_sched_variable_issue): Likewise.
21867 (s390_loop_unroll_adjust): Likewise.
21868 (s390_option_override): Likewise.
21869
21870 2015-07-24 Dominik Vogt <vogt@linux.vnet.ibm.com>
21871
21872 * config/s390/driver-native.c (s390_host_detect_local_cpu): Handle
21873 processor capabilities with -march=native.
21874 * config/s390/s390.h (MARCH_MTUNE_NATIVE_SPECS): Likewise.
21875 (DRIVER_SELF_SPECS): Likewise. Join specs for 31 and 64 bit.
21876 (S390_TARGET_BITS_STRING): Macro to simplify specs.
21877
21878 2015-07-24 Dominik Vogt <vogt@linux.vnet.ibm.com>
21879
21880 * config/s390/s390.c (s390_issue_rate): Handle
21881 PROCESSOR_2094_Z9_EC.
21882 (s390_option_override): Likewise.
21883 (s390_adjust_priority): Likewise.
21884
21885 2015-07-24 Dominik Vogt <vogt@linux.vnet.ibm.com>
21886
21887 * config/s390/s390.h: S390: Do not define EXTRA_SPEC_FUNCTIONS
21888 when cross compiling.
21889
21890 2015-07-24 Richard Biener <rguenther@suse.de>
21891
21892 * fold-const.c (maybe_canonicalize_comparison_1): Move
21893 A code CST canonicalization ...
21894 * match.pd: ... to a pattern here.
21895
21896 2015-07-24 Jiong Wang <jiong.wang@arm.com>
21897
21898 Revert:
21899 2015-07-22 Jiong Wang <jiong.wang@arm.com>
21900 PR target/63521
21901 * config/aarch64/aarch64.h (REG_ALLOC_ORDER): Define.
21902 (HONOR_REG_ALLOC_ORDER): Define.
21903
21904 2015-07-24 Richard Biener <rguenther@suse.de>
21905
21906 * genmatch.c (add_operator): Allow SSA_NAME as predicate.
21907 * fold-const.c (fold_comparison): Move parameter does not
21908 alias &local simplification ...
21909 * match.pd: ... as a pattern here.
21910
21911 2015-07-24 Richard Biener <rguenther@suse.de>
21912
21913 * gimple-fold.c (replace_stmt_with_simplification): Special-case
21914 valueizing call operands.
21915 * gimple-match-head.c (maybe_push_res_to_seq): Take
21916 number of call arguments from ops array.
21917 (do_valueize): New function.
21918 (gimple_simplify): Return true if valueization changed
21919 any operand even if the result didn't simplify further.
21920
21921 2015-07-24 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
21922
21923 PR middle-end/25530
21924 * match.pd (mult (trunc_div @0 integer_pow2p@1) @1) : New simplifier.
21925
21926 2015-07-24 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
21927
21928 PR middle-end/25529
21929 * match.pd (trunc_div (mult @0 integer_pow2p@1) @1) : New simplifier.
21930
21931 2015-07-23 Kugan Vivekanandarajah <kuganv@linaro.org>
21932
21933 * config/arm/arm.c (arm_emit_movpair): Add REG_EQUAL notes to
21934 instruction.
21935
21936 2015-07-23 Kugan Vivekanandarajah <kuganv@linaro.org>
21937
21938 * cse.c (cse_insn): Fix missing check for STRICT_LOW_PART and minor
21939 clean up.
21940
21941 2015-07-23 Uros Bizjak <ubizjak@gmail.com>
21942
21943 * config/i386/i386.c (ix86_build_builtin_va_list_64): Rename
21944 from ix86_build_builtin_va_list_abi. Handle only 64bit non-MS_ABI
21945 targets here.
21946 (ix86_build_builtin_va_list): Rewrite sysv_va_list_type_node and
21947 ms_va_list_type_node initialization.
21948
21949 2015-07-23 Jeff Law <law@redhat.com>
21950
21951 PR lto/66752
21952 * tree-ssa-threadedge.c (simplify_conrol_stmt_condition): If we are
21953 unable to find X NE 0 in the tables, return X as the simplified
21954 condition.
21955 (fsm_find_control_statement_thread_paths): If nodes in NEXT_PATH are
21956 in VISISTED_BBS, then return failure. Else add nodes from NEXT_PATH
21957 to VISISTED_BBS. */
21958 * tree-ssa-threadupdate.c (duplicate_thread_path): Fix up edge flags
21959 after removing the control flow statement and unnecessary edges.
21960
21961 2015-07-23 Bernd Edlinger <bernd.edlinger@hotmail.de>
21962
21963 * tree-pass.h (get_current_pass_name): Removed.
21964
21965 2015-07-23 Alexandre Oliva <aoliva@redhat.com>
21966
21967 PR rtl-optimization/64164
21968 * Makefile.in (OBJS): Drop tree-ssa-copyrename.o.
21969 * tree-ssa-copyrename.c: Removed.
21970 * opts.c (default_options_table): Drop -ftree-copyrename. Add
21971 -ftree-coalesce-vars.
21972 * passes.def: Drop all occurrences of pass_rename_ssa_copies.
21973 * common.opt (ftree-copyrename): Ignore.
21974 (ftree-coalesce-inlined-vars): Likewise.
21975 * doc/invoke.texi: Remove the ignored options above.
21976 * gimple-expr.h (gimple_can_coalesce_p): Move declaration
21977 * tree-ssa-coalesce.h: ... here.
21978 * tree-ssa-uncprop.c: Include tree-ssa-coalesce.h and other
21979 headers required by it.
21980 * gimple-expr.c (gimple_can_coalesce_p): Allow coalescing
21981 across variables when flag_tree_coalesce_vars. Check register
21982 use and promoted modes to allow coalescing. Moved to
21983 tree-ssa-coalesce.c.
21984 * tree-ssa-live.c (struct tree_int_map_hasher): Move along
21985 with its member functions to tree-ssa-coalesce.c.
21986 (var_map_base_init): Likewise. Renamed to
21987 compute_samebase_partition_bases.
21988 (partition_view_normal): Drop want_bases parameter.
21989 (partition_view_bitmap): Likewise.
21990 * tree-ssa-live.h: Adjust declarations.
21991 * tree-ssa-coalesce.c: Include explow.h.
21992 (build_ssa_conflict_graph): Process PARM_ and RESULT_DECLs's
21993 default defs at the entry point.
21994 (dump_part_var_map): New.
21995 (compute_optimized_partition_bases): New, called by...
21996 (coalesce_ssa_name): ... when flag_tree_coalesce_vars, instead
21997 of compute_samebase_partition_bases. Adjust.
21998 * alias.c (nonoverlapping_memrefs_p): Disregard gimple-regs.
21999 * cfgexpand.c (leader_merge): New.
22000 (get_rtl_for_parm_ssa_default_def): New.
22001 (set_rtl): Merge exprs and attrs, even for MEMs and non-SSA
22002 vars. Update DECL_RTL for PARM_DECLs and RESULT_DECLs too.
22003 (expand_one_stack_var_at): Handle anonymous SSA_NAMEs. Drop
22004 redundant MEM attr setting.
22005 (expand_one_stack_var_1): Handle anonymous SSA_NAMEs. Renamed
22006 from...
22007 (expand_one_stack_var): ... this. New wrapper to check and
22008 skip already expanded SSA partitions.
22009 (record_alignment_for_reg_var): New, factored out of...
22010 (expand_one_var): ... this.
22011 (expand_one_ssa_partition): New.
22012 (adjust_one_expanded_partition_var): New.
22013 (expand_one_register_var): Check and skip already expanded SSA
22014 partitions.
22015 (expand_used_vars): Don't create DECLs for anonymous SSA
22016 names. Expand all SSA partitions, then adjust all SSA names.
22017 (pass::execute): Replace the loops that set
22018 SA.partition_to_pseudo from partition leaders and cleared
22019 DECL_RTL for multi-location variables, and that which used to
22020 rename vars and set attrs, with one that clears DECL_RTL and
22021 checks that PARMs and RESULTs default_defs match DECL_RTL.
22022 * cfgexpand.h (get_rtl_for_parm_ssa_default_def): Declare.
22023 * emit-rtl.c (set_reg_attrs_for_parm): Handle NULL decl.
22024 * explow.c (promote_ssa_mode): New.
22025 * explow.h (promote_ssa_mode): Declare.
22026 * expr.c (expand_expr_real_1): Handle anonymous SSA_NAMEs.
22027 * function.c: Include cfgexpand.h.
22028 (use_register_for_decl): Handle SSA_NAMEs, anonymous or not.
22029 (use_register_for_parm_decl): Wrapper for the above to
22030 special-case the result_ptr.
22031 (rtl_for_parm): Ditto for get_rtl_for_parm_ssa_default_def.
22032 (split_complex_args): Take assign_parm_data_all argument.
22033 Pass it to rtl_for_parm. Set up rtl and context for split
22034 args.
22035 (assign_parms_augmented_arg_list): Adjust.
22036 (maybe_reset_rtl_for_parm): Reset DECL_RTL of parms with
22037 multiple locations. Recognize split complex args.
22038 (assign_parm_adjust_stack_rtl): Add all and parm arguments,
22039 for rtl_for_parm. For SSA-assigned parms, zero stack_parm.
22040 (assign_parm_setup_block): Prefer SSA-assigned location.
22041 (assign_parm_setup_reg): Likewise. Use entry_parm for equiv
22042 if stack_parm is NULL.
22043 (assign_parm_setup_stack): Prefer SSA-assigned location.
22044 (assign_parms): Maybe reset DECL_RTL of params. Adjust stack
22045 rtl before testing for pointer bounds. Special-case result_ptr.
22046 (expand_function_start): Maybe reset DECL_RTL of result.
22047 Prefer SSA-assigned location for result and static chain.
22048 Factor out DECL_RESULT and SET_DECL_RTL.
22049 * tree-outof-ssa.c (insert_value_copy_on_edge): Handle
22050 anonymous SSA names. Use promote_ssa_mode.
22051 (get_temp_reg): Likewise.
22052 (remove_ssa_form): Adjust.
22053 * stor-layout.c (layout_decl): Don't set mem attributes of
22054 non-MEMs.
22055 * var-tracking.c (dataflow_set_clear_at_call): Take call_insn
22056 and get its reg_usage for reg invalidation.
22057 (compute_bb_dataflow): Pass it insn.
22058 (emit_notes_in_bb): Likewise.
22059
22060 2015-07-23 Segher Boessenkool <segher@kernel.crashing.org>
22061
22062 PR target/66217
22063 * config/rs6000/rs6000-protos.h (rs6000_emit_2insn_and): Change
22064 prototype.
22065 * config/rs6000/rs6000.c (rs6000_emit_dot_insn): New function.
22066 (rs6000_emit_2insn_and): Handle dot forms.
22067 * config/rs6000/rs6000.md (and<mode>3): Adjust.
22068 (*and<mode>3_2insn): Remove TODO. Adjust. Add "type" attr.
22069 (*and<mode>3_2insn_dot, *and<mode>3_2insn_dot2): New.
22070
22071 2015-07-23 Richard Biener <rguenther@suse.de>
22072
22073 * generic-match-head.c: Include cgraph.h.
22074 * gimple-match-head.c: Likewise.
22075 * tree-ssa-sccvn.c (free_scc_vn): Guard against newly created
22076 SSA names.
22077 * fold-const.c (fold_binary_loc): Move &A ==/!= &B simplification...
22078 * match.pd: ...to a pattern here. Add &A ==/!= 0 simplification
22079 pattern.
22080
22081 2015-07-23 Richard Biener <rguenther@suse.de>
22082
22083 * gimple-fold.c (fold_gimple_cond): Do not require folding
22084 results to pass valid_gimple_rhs_p.
22085 * tree-cfg.h (fold_cond_expr_cond): Remove.
22086 * tree-cfg.c (fold_cond_expr_cond): Likewise.
22087 (make_edges): Do not call it.
22088 * tree-inline.c (tree_function_versioning): Likewise.
22089
22090 2015-07-23 Tom de Vries <tom@codesourcery.com>
22091
22092 * tree-parloops.c (gather_scalar_reductions): Add arg to call to
22093 vect_force_simple_reduction.
22094 * tree-vect-loop.c (vect_analyze_scalar_cycles_1): Same.
22095 (vect_is_simple_reduction_1): Add and handle
22096 need_wrapping_integral_overflow parameter.
22097 (vect_is_simple_reduction, vect_force_simple_reduction): Add and pass
22098 need_wrapping_integral_overflow parameter.
22099 (vectorizable_reduction): Add arg to call to vect_is_simple_reduction.
22100 * tree-vectorizer.h (vect_force_simple_reduction): Add parameter to
22101 decl.
22102
22103 2015-07-23 Yuri Rumyantsev <ysrumyan@gmail.com>
22104
22105 PR tree-optimization/66926,66951
22106 * tree-vect-loop-manip.c (slpeel_tree_peel_loop_to_edge): Delete
22107 INNER_LOOP and fix up condition for renaming virtual operands.
22108
22109 2015-07-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
22110
22111 * combine.c (try_combine): Use std::swap instead of manually
22112 swapping.
22113
22114 2015-07-23 Prachi Godbole <prachi.godbole@imgtec.com>
22115
22116 * config/mips/i6400.md: New file.
22117 * config/mips/mips-cpus.def (mips32r6): Change to PROCESSOR_I6400.
22118 (mips64r6): Likewise.
22119 (i6400): Define.
22120 * config/mips/mips-tables.opt: Regenerate.
22121 * config/mips/mips.c (mips_rtx_cost_data): Add I6400 processor.
22122 (mips_issue_rate): Add support for i6400.
22123 (mips_multipass_dfa_lookahead): Likewise.
22124 * config/mips/mips.h (TUNE_I6400): Define.
22125 * config/mips/mips.md: Include i6400.md.
22126 (processor): Add i6400.
22127 * doc/invoke.texi (-march=@var{arch}): Add i6400.
22128
22129 2015-07-23 Richard Biener <rguenther@suse.de>
22130
22131 PR middle-end/66916
22132 * match.pd: Guard widen and sign-change comparison simplification
22133 with single_use.
22134
22135 2015-07-23 Richard Biener <rguenther@suse.de>
22136
22137 PR tree-optimization/66945
22138 * tree-ssa-propagate.c (substitute_and_fold_dom_walker
22139 ::before_dom_children): Force the propagators idea of
22140 non-executable edges to materialize, not what the folder
22141 chooses.
22142
22143 2015-07-23 Richard Biener <rguenther@suse.de>
22144
22145 * gimple.h (gimple_cond_make_false): Use 0 != 0.
22146 (gimple_cond_make_true): Use 1 != 0.
22147
22148 2015-07-22 DJ Delorie <dj@redhat.com>
22149
22150 * config/msp430/t-msp430 (MULTILIB_DIRNAMES): Remove trailing
22151 slashes.
22152
22153 * config/msp430/msp430.md (ashlhi3): Optimize shifts of subregs.
22154 (ashrhi3): Likewise.
22155 (lshrhi3): Likewise.
22156 (movhi): Take advantage of zero-extend to load small constants.
22157 (movpsi): Likewise.
22158 (and<mode>3): Likewise.
22159 (zero_extendqihi2): Likewise.
22160 (zero_extendqisi2): New.
22161 * config/msp430/constraints.md (N,O): New.
22162 * config/msp430/msp430.h (WORD_REGISTER_OPERATIONS): Define.
22163
22164 2015-07-22 Uros Bizjak <ubizjak@gmail.com>
22165
22166 PR target/66954
22167 * config/i386/i386.c (get_builtin_code_for_version): Add P_AES
22168 to enum feature_priority and feature_list.
22169 (fold_builtin_cpu): Add F_AES to enum processor_features
22170 and isa_names_table.
22171
22172 2015-07-22 Ilya Enkovich <enkovich.gnu@gmail.com>
22173
22174 PR driver/66737
22175 * config/i386/linux-common.h (MPX_SPEC): Use linker option
22176 for 64bit target only.
22177
22178 2015-07-22 Bernd Schmidt <bernds@codesourcery.com>
22179
22180 * config/nvptx/nvptx.c: Expand some comments.
22181
22182 2015-07-22 James Greenhalgh <james.greenhalgh@arm.com>
22183
22184 * config/arm/cortex-a53 (cortex_53_advsimd): Rename to...
22185 (cortex_a53_advsimd): ...This.
22186
22187 2015-07-22 Richard Biener <rguenther@suse.de>
22188
22189 * genmatch.c (expr::gen_transform): Clarify error message
22190 and display location.
22191
22192 2015-07-22 Richard Biener <rguenther@suse.de>
22193
22194 * genmatch.c (struct operand): Add location member.
22195 (predicate, expr, c_expr, capture, if_expr, with_expr): Adjust
22196 constructors.
22197 (struct simplify): Remove match_location and result_location
22198 members.
22199 (elsehwere): Adjust.
22200
22201 2015-07-22 Prachi Godbole <prachi.godbole@imgtec.com>
22202
22203 * config/mips/m5100.md: New file.
22204 * config/mips/mips-cpus.def (m5100, m5101): Define.
22205 * config/mips/mips-tables.opt: Regenerate.
22206 * config/mips/mips.c (mips_rtx_cost_data): Add costs for m5100.
22207 * config/mips/mips.h (MIPS_ISA_LEVEL_SPEC): Map -march=m5100 and
22208 -march=m5101 to -mips32r5.
22209 (MIPS_ARCH_FLOAT_SPEC): Map -m5101 to -msoft-float.
22210 (MIPS_ISA_NAN2008_SPEC): Map -march=m51* to -mnan=2008 if
22211 !-msoft-float.
22212 * config/mips/mips.md: Include m5100.md.
22213 (processor): Add m5100.
22214 * doc/invoke.texi (-march=@var{arch}): Add m5100, m5101.
22215
22216 2015-07-22 Robert Suchanek <robert.suchanek@imgtec.com>
22217
22218 * config/mips/mips-cpus.def (interaptiv): Define.
22219 * config/mips/mips-tables.opt: Regenerate.
22220 * config/mips/mips.h (MIPS_ISA_LEVEL_SPEC): Map -march=interaptiv to
22221 -mips32r2.
22222 (BASE_DRIVER_SELF_SPECS): Likewise but map to -mdsp.
22223 * doc/invoke.texi (-march=@var{arch}): Add interaptiv.
22224
22225 2015-07-22 Jiong Wang <jiong.wang@arm.com>
22226
22227 PR target/63521
22228 * config/aarch64/aarch64.h (REG_ALLOC_ORDER): Define.
22229 (HONOR_REG_ALLOC_ORDER): Define.
22230
22231 2015-07-22 Richard Biener <rguenther@suse.de>
22232
22233 PR tree-optimization/66952
22234 * tree-ssa-ifcombine.c (pass_tree_ifcombine::execute): For
22235 blocks we end up executing unconditionally reset all SSA
22236 info such as range and alignment.
22237 * tree-ssanames.h (reset_flow_sensitive_info): Declare.
22238 * tree-ssanames.c (reset_flow_sensitive_info): New function.
22239
22240 2015-07-22 Charles Baylis <charles.baylis@linaro.org>
22241
22242 * config/aarch64/aarch64-simd.md (vec_store_lanesoi_lane<mode>): Fix
22243 typo in attribute.
22244
22245 2015-07-22 Richard Biener <rguenther@suse.de>
22246
22247 * genmatch.c (parser::parse_result): Properly handle
22248 match with result operands and conditions.
22249
22250 2015-07-22 Charles Baylis <charles.baylis@linaro.org>
22251
22252 PR target/63870
22253 * config/aarch64/aarch64-builtins.c (enum aarch64_type_qualifiers):
22254 Add qualifier_struct_load_store_lane_index.
22255 (aarch64_types_loadstruct_lane_qualifiers): Use
22256 qualifier_struct_load_store_lane_index for lane index argument for
22257 last argument.
22258 (aarch64_types_storestruct_lane_qualifiers): Ditto.
22259 (builtin_simd_arg): Add SIMD_ARG_STRUCT_LOAD_STORE_LANE_INDEX.
22260 (aarch64_simd_expand_args): Add new argument describing mode of
22261 builtin. Check lane bounds for arguments with
22262 SIMD_ARG_STRUCT_LOAD_STORE_LANE_INDEX.
22263 (aarch64_simd_expand_builtin): Emit error for incorrect lane indices
22264 if marked with SIMD_ARG_STRUCT_LOAD_STORE_LANE_INDEX.
22265 (aarch64_simd_expand_builtin): Handle arguments with
22266 qualifier_struct_load_store_lane_index. Pass machine mode of builtin to
22267 aarch64_simd_expand_args.
22268 * config/aarch64/aarch64-simd-builtins.def: Declare ld[234]_lane and
22269 vst[234]_lane with BUILTIN_VALLDIF.
22270 * config/aarch64/aarch64-simd.md:
22271 (aarch64_vec_load_lanesoi_lane<mode>): Use VALLDIF iterator. Perform
22272 endianness reversal on lane index.
22273 (aarch64_vec_load_lanesci_lane<mode>): Ditto.
22274 (aarch64_vec_load_lanesxi_lane<mode>): Ditto.
22275 (vec_store_lanesoi_lane<mode>): Use VALLDIF iterator.
22276 (vec_store_lanesci_lane<mode>): Ditto.
22277 (vec_store_lanesxi_lane<mode>): Ditto.
22278 (aarch64_ld2_lane<mode>): Use VALLDIF iterator. Remove endianness
22279 reversal of lane index.
22280 (aarch64_ld3_lane<mode>): Ditto.
22281 (aarch64_ld4_lane<mode>): Ditto.
22282 (aarch64_st2_lane<mode>): Ditto.
22283 (aarch64_st3_lane<mode>): Ditto.
22284 (aarch64_st4_lane<mode>): Ditto.
22285 * config/aarch64/arm_neon.h (__LD2_LANE_FUNC): Rename mode parameter
22286 to qmode. Add new mode parameter. Update uses.
22287 (__LD3_LANE_FUNC): Ditto.
22288 (__LD4_LANE_FUNC): Ditto.
22289 (__ST2_LANE_FUNC): Ditto.
22290 (__ST3_LANE_FUNC): Ditto.
22291 (__ST4_LANE_FUNC): Ditto.
22292
22293 2015-07-22 Jonathan Wakely <jwakely@redhat.com>
22294
22295 * doc/invoke.texi (Language Independent Options): Rename node to
22296 Diagnostic Message Formatting Options.
22297
22298 2015-07-21 Vladimir Makarov <vmakarov@redhat.com>
22299
22300 PR ipa/66424.
22301 * lra-remat.c (operand_to_remat): Prevent using insns with input
22302 subregs processed separately by IRA.
22303
22304 2015-07-21 Andrew MacLeod <amacleod@redhat.com>
22305
22306 * ssa-iterators.h (has_zero_uses, has_single_use): Implement as
22307 straight loops.
22308 (single_imm_use): Check for iterator node.
22309 (num_imm_uses): Likewise.
22310 * tree-ssa-operands.c (has_zero_uses_1): Delete.
22311 (single_imm_use_1): Check for iterator node.
22312
22313 2015-07-21 Mike Frysinger <vapier@gentoo.org>
22314 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
22315
22316 * configure.ac: Add check for new options in isl-0.15.
22317 * config.in, configure: Rebuilt.
22318 * graphite-blocking.c: Include <isl/constraint.h>
22319 * graphite-interchange.c, graphite-poly.c: Likewise.
22320 * graphhite-scop-detection.c, graphite-sese-to-poly.c: Likewise.
22321 * graphite.c: Likewise.
22322 * graphite-isl-ast-to-gimple.c: Include <isl/constraint.h> and
22323 <isl/union_set.h>.
22324 * graphite-dependences.c: Include <isl/constraint.h>.
22325 (max_number_of_out_dimensions): Returns isl_stat.
22326 (extend_schedule_1): Likewise
22327 (extend_schedule): Corresponding changes.
22328 * graphite-optimize-isl.c: Include <isl/constraint.h> and
22329 <isl/union_set.h>.
22330 (getSingleMap): Change return type of isl_stat.
22331 (optimize_isl): Conditionally use
22332 isl_options_set_schedule_serialize_sccs.
22333 * graphite-poly.h (isl_stat, isl_stat_ok): Define fallbacks
22334 if not HAVE_ISL_OPTIONS_SET_SCHEDULE_SERIALIZE_SCCS.
22335
22336 2015-07-21 Georg-Johann Lay <avr@gjlay.de>
22337
22338 PR target/66956
22339 * config/avr/avr-dimode.md (<extend_u>mulsidi3_insn)
22340 (<extend_u>mulsidi3): Don't use if !AVR_HAVE_MUL.
22341
22342 2015-07-21 Richard Biener <rguenther@suse.de>
22343
22344 PR tree-optimization/66948
22345 * genmatch.c (capture_info::walk_match): Also recurse to
22346 captures. Properly compute expr state from captures of
22347 captures.
22348 * match.pd: Add single-use guards to
22349 (X & C2) >> C1 into (X >> C1) & (C2 >> C1) transform.
22350
22351 2015-07-21 Nathan Sidwell <nathan@codesourcery.com>
22352
22353 * config/nvptx/mkoffload.c (process): Add static destructor call.
22354
22355 2015-07-21 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
22356
22357 PR middle-end/66915
22358 * match.pd (A - B -> A + (-B)): Don't allow folding
22359 when type if a fixed-point type.
22360
22361 2015-07-20 DJ Delorie <dj@redhat.com>
22362
22363 * config/rl78/rl78-real.md (andqi3_real): Expand operands for clr1.
22364 (iorqi3_real): Likewise for set1.
22365
22366 2015-07-20 Uros Bizjak <ubizjak@gmail.com>
22367
22368 * config/i386/i386.c (ix86_md_asm_adjust): Handle DImode dest_mode
22369 for !TARGET_64BIT.
22370
22371 2015-07-20 Aditya Kumar <hiraditya@msn.com>
22372
22373 * graphite-isl-ast-to-gimple.c:
22374 Refactor so that each function can access 'region'. This will help
22375 maintain a parameter rename_map within a region.
22376
22377 2015-07-20 Segher Boessenkool <segher@kernel.crashing.org>
22378
22379 * config/rs6000/rs6000.md (*lt0_disi): New.
22380
22381 2015-07-20 Segher Boessenkool <segher@kernel.crashing.org>
22382
22383 PR target/66217
22384 * config/rs6000/constraints.md ("S", "T", "t"): Delete. Update
22385 "available letters" comment.
22386 * config/rs6000/predicates.md (mask_operand, mask_operand_wrap,
22387 mask64_operand, mask64_2_operand, any_mask_operand, and64_2_operand,
22388 and_2rld_operand): Delete.
22389 (and_operand): Adjust.
22390 (rotate_mask_operator): New.
22391 * config/rs6000/rs6000-protos.h (build_mask64_2_operands,
22392 includes_lshift_p, includes_rshift_p, includes_rldic_lshift_p,
22393 includes_rldicr_lshift_p, insvdi_rshift_rlwimi_p, extract_MB,
22394 extract_ME): Delete.
22395 (rs6000_is_valid_mask, rs6000_is_valid_and_mask,
22396 rs6000_is_valid_shift_mask, rs6000_is_valid_insert_mask,
22397 rs6000_insn_for_and_mask, rs6000_insn_for_shift_mask,
22398 rs6000_insn_for_insert_mask, rs6000_is_valid_2insn_and,
22399 rs6000_emit_2insn_and): New.
22400 * config/rs6000/rs6000.c (num_insns_constant): Adjust.
22401 (build_mask64_2_operands, includes_lshift_p, includes_rshift_p,
22402 includes_rldic_lshift_p, includes_rldicr_lshift_p,
22403 insvdi_rshift_rlwimi_p, extract_MB, extract_ME): Delete.
22404 (rs6000_is_valid_mask, rs6000_is_valid_and_mask,
22405 rs6000_insn_for_and_mask, rs6000_is_valid_shift_mask,
22406 s6000_insn_for_shift_mask, rs6000_is_valid_insert_mask,
22407 rs6000_insn_for_insert_mask, rs6000_is_valid_2insn_and,
22408 rs6000_emit_2insn_and): New.
22409 (print_operand) <'b', 'B', 'm', 'M', 's', 'S', 'W'>: Delete.
22410 (rs6000_rtx_costs) <CONST_INT>: Delete mask_operand and mask64_operand
22411 handling.
22412 <NOT>: Don't fall through to next case.
22413 <AND>: Handle the various rotate-and-mask cases directly.
22414 <IOR>: Always cost as one insn.
22415 * config/rs6000/rs6000.md (splitter for bswap:SI): Adjust.
22416 (and<mode>3): Adjust expander for the new patterns.
22417 (and<mode>3_imm, and<mode>3_imm_dot, and<mode>3_imm_dot2,
22418 and<mode>3_imm_mask_dot, and<mode>3_imm_mask_dot2): Adjust condition.
22419 (*and<mode>3_imm_dot_shifted): New.
22420 (*and<mode>3_mask): Delete, rewrite as ...
22421 (and<mode>3_mask): ... New.
22422 (*and<mode>3_mask_dot, *and<mode>3_mask_dot): Rewrite.
22423 (andsi3_internal0_nomc): Delete.
22424 (*andsi3_internal6): Delete.
22425 (*and<mode>3_2insn): New.
22426 (insv, insvsi_internal, *insvsi_internal1, *insvsi_internal2,
22427 *insvsi_internal3, *insvsi_internal4, *insvsi_internal5,
22428 *insvsi_internal6, insvdi_internal, *insvdi_internal2,
22429 *insvdi_internal3): Delete.
22430 (*rotl<mode>3_mask, *rotl<mode>3_mask_dot, *rotl<mode>3_mask_dot2,
22431 *rotl<mode>3_insert, *rotl<mode>3_insert_2, *rotl<mode>3_insert_3,
22432 *rotl<mode>3_insert_4, two splitters for multi-precision shifts,
22433 *ior<mode>_mask): New.
22434 (extzv, extzvdi_internal, *extzvdi_internal1, *extzvdi_internal2,
22435 *rotlsi3_mask, *rotlsi3_mask_dot, *rotlsi3_mask_dot2,
22436 *ashlsi3_imm_mask, *ashlsi3_imm_mask_dot, *ashlsi3_imm_mask_dot2,
22437 *lshrsi3_imm_mask, *lshrsi3_imm_mask_dot, *lshrsi3_imm_mask_dot2):
22438 Delete.
22439 (ashr<mode>3): Delete expander.
22440 (*ashr<mode>3): Rename to ...
22441 (ashr<mode>3): ... This.
22442 (ashrdi3_no_power, *ashrdisi3_noppc64be): Delete.
22443 (*rotldi3_internal4, *rotldi3_internal5 and split,
22444 *rotldi3_internal6 and split, *ashldi3_internal4, ashldi3_internal5
22445 and split, *ashldi3_internal6 and split, *ashldi3_internal7,
22446 ashldi3_internal8 and split, *ashldi3_internal9 and split): Delete.
22447 (*anddi3_2rld, *anddi3_2rld_dot, *anddi3_2rld_dot2): Delete.
22448 (splitter for loading a mask): Adjust.
22449 * doc/md.texi (Machine Constraints): Remove q, S, T, t constraints.
22450
22451 2015-07-20 Marek Polacek <polacek@redhat.com>
22452
22453 * genemit.c (print_code, gen_exp, gen_insn, gen_expand, gen_split,
22454 output_add_clobbers, output_added_clobbers_hard_reg_p,
22455 gen_rtx_scratch): Remove declarations.
22456
22457 2015-07-20 Marek Polacek <polacek@redhat.com>
22458
22459 PR c++/55095
22460 * doc/invoke.texi: Document -Wshift-overflow and -Wshift-overflow=.
22461
22462 2015-07-20 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
22463
22464 * simplify-rtx.c (simplify_unary_operation_1, NEG case):
22465 (neg (x ? (neg y) : y)) -> !x ? (neg y) : y.
22466
22467 2015-07-20 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
22468
22469 * combine.c (combine_simplify_rtx): Move simplification step
22470 before various transformations/substitutions.
22471
22472 2015-07-20 Mikhail Maltsev <maltsevm@gmail.com>
22473
22474 * wide-int.h (struct binary_traits): Fix partial specialization syntax.
22475 (struct int_traits): Likewise.
22476
22477 2015-07-18 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
22478
22479 * vmsdbgout.c (vmsdbgout_decl): Change name of prototyped
22480 function to vmsdbgout_function_decl.
22481
22482 2015-07-18 Uros Bizjak <ubizjak@gmail.com>
22483
22484 PR target/66922
22485 * config/i386/i386.c (ix86_expand_pextr): Reject extractions
22486 from misaligned positions.
22487 (ix86_expand_pinsr): Reject insertions to misaligned positions.
22488
22489 2015-07-18 Sebastian Pop <s.pop@samsung.com>
22490
22491 PR middle-end/46851
22492 PR middle-end/60340
22493 * Makefile.in: Removed omega.o.
22494 * common.opt: Document flag fcheck-data-deps as deprecated.
22495 * doc/invoke.texi: Remove documentation for fcheck-data-deps and
22496 its associated params: omega-max-vars, omega-max-geqs,
22497 omega-max-eqs, omega-max-wild-cards, omega-hash-table-size,
22498 omega-max-keys, omega-eliminate-redundant-constraints.
22499 * doc/loop.texi: Remove all the section on Omega.
22500 * graphite-blocking.c: Include missing params.h: it used to be
22501 included through tree-data-ref.h and omega.h.
22502 * graphite-isl-ast-to-gimple.c: Same.
22503 * graphite-optimize-isl.c: Same.
22504 * graphite-sese-to-poly.c: Same.
22505 * graphite.c: Same.
22506 * omega.c: Remove.
22507 * omega.h: Remove.
22508 * params.def: Removed PARAM_OMEGA_MAX_VARS, PARAM_OMEGA_MAX_GEQS,
22509 PARAM_OMEGA_MAX_EQS, PARAM_OMEGA_MAX_WILD_CARDS,
22510 PARAM_OMEGA_HASH_TABLE_SIZE, PARAM_OMEGA_MAX_KEYS, and
22511 PARAM_OMEGA_ELIMINATE_REDUNDANT_CONSTRAINTS.
22512 * passes.def: Remove pass_check_data_deps.
22513 * tree-data-ref.c (dump_affine_function): Declare DEBUG_FUNCTION.
22514 (dump_conflict_function): Same.
22515 (dump_subscript): Same.
22516 (print_direction_vector): Same.
22517 (print_dir_vectors): Same.
22518 (print_lambda_vector): Same.
22519 (print_dist_vectors): Same.
22520 (dump_data_dependence_relation): Same.
22521 (dump_data_dependence_relations): Same.
22522 (dump_dist_dir_vectors): Same.
22523 (dump_ddrs): Same.
22524 (init_omega_eq_with_af): Removed.
22525 (omega_extract_distance_vectors): Removed.
22526 (omega_setup_subscript): Removed.
22527 (init_omega_for_ddr_1): Removed.
22528 (init_omega_for_ddr): Removed.
22529 (ddr_consistent_p): Removed.
22530 (compute_affine_dependence): Do not use omega to check data
22531 dependences.
22532 (compute_data_dependences_for_bb): Removed.
22533 (analyze_all_data_dependences): Removed.
22534 (tree_check_data_deps): Removed.
22535 * tree-data-ref.h: Do not include omega.h.
22536 (compute_data_dependences_for_bb): Removed.
22537 (tree_check_data_deps): Removed.
22538 * tree-ssa-loop.c (pass_check_data_deps): Removed.
22539 (make_pass_check_data_deps): Removed.
22540 * tree-ssa-phiopt.c: Include params.h.
22541 * tree-vect-data-refs.c: Same.
22542 * tree-vect-slp.c: Same.
22543
22544 2015-07-18 Uros Bizjak <ubizjak@gmail.com>
22545
22546 * config/i386/i386.md (pushsf splitter): Pass curr_insn to
22547 find_constant_src. FAIL if find_constant_src returns NULL_RTX.
22548 (mem->fpreg splitters): Ditto.
22549 (general_operand->nonimmediate_operand splitter): Use explicit modes.
22550 Disable DFmode for TARGET_64BIT.
22551
22552 2015-07-17 H.J. Lu <hongjiu.lu@intel.com>
22553
22554 PR target/66906
22555 * config/i386/i386.c (ix86_expand_prologue): Replicate static
22556 chain on the stack.
22557
22558 2015-07-17 Nathan Sidwell <nathan@codesourcery.com>
22559
22560 * config/nvptx/mkoffload.c (process): Constify host data.
22561 * config/i386/intelmic-mkoffload.c (generate_target_descr_file):
22562 Constify host data.
22563 (generate_host_descr_file): Likewise.
22564
22565 2015-07-17 Aditya Kumar <aditya.k7@samsung.com>
22566 Sebastian Pop <s.pop@samsung.com>
22567
22568 PR middle-end/61929
22569 * graphite-dependences.c (add_pdr_constraints): Renamed
22570 pdr->extent to pdr->subscript_sizes.
22571 * graphite-interchange.c (build_linearized_memory_access): Add
22572 back all gcc_assert's that the "isl_int to isl_val conversion"
22573 patch has removed. Refactored.
22574 (pdr_stride_in_loop): Renamed pdr->extent to pdr->subscript_sizes.
22575 * graphite-poly.c (new_poly_dr): Same.
22576 (free_poly_dr): Same.
22577 * graphite-poly.h (struct poly_dr): Same.
22578 * graphite-scop-detection.c (stmt_has_simple_data_refs_p): Ignore
22579 all data references other than ARRAY_REF, MEM_REF, and COMPONENT_REF.
22580 * graphite-scop-detection.h: Fix space.
22581 * graphite-sese-to-poly.c (build_pbb_scattering_polyhedrons): Add
22582 back all gcc_assert's removed by a previous patch.
22583 (wrap): Remove the_isl_ctx global variable that the same patch has
22584 added.
22585 (build_loop_iteration_domains): Same.
22586 (add_param_constraints): Same.
22587 (pdr_add_data_dimensions): Same. Refactored.
22588 (build_poly_dr): Renamed extent to subscript_sizes.
22589
22590 2015-07-17 Marek Polacek <polacek@redhat.com>
22591
22592 * fold-const.c (fold_binary_loc): Move A - (A & B) into ~B & A ...
22593 * match.pd: ... here.
22594
22595 2015-07-17 Nathan Sidwell <nathan@codesourcery.com>
22596
22597 * config/nvptx/mkoffload.c (process): Constify target data.
22598 * config/i386/intelmic-mkoffload.c (generate_target_descr_file):
22599 Constify target data.
22600 (generate_target_offloadend_file): Likewise.
22601
22602 2015-07-17 Yuri Rumyantsev <ysrumyan@gmail.com>
22603
22604 * tree-vect-loop-manip.c (rename_variables_in_bb): Add argument
22605 to allow renaming of PHI arguments on edges incoming from outer
22606 loop header, add corresponding check before start PHI iterator.
22607 (slpeel_tree_duplicate_loop_to_edge_cfg): Introduce new bool
22608 variable DUPLICATE_OUTER_LOOP and set it to true for outer loops
22609 with true force_vectorize. Set-up dominator for outer loop too.
22610 Pass DUPLICATE_OUTER_LOOP as argument to rename_variables_in_bb.
22611 (slpeel_can_duplicate_loop_p): Allow duplicate of outer loop if it
22612 was marked with force_vectorize and has restricted cfg.
22613 (slpeel_tree_peel_loop_to_edge): Do not rename exit PHI uses in
22614 inner loop.
22615 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment): Do not
22616 do peeling for outer loops.
22617
22618 2015-07-17 Yvan Roux <yvan.roux@linaro.org>
22619 Matthias Klose <doko@ubuntu.com>
22620
22621 * configure.ac: Move AC_ARG_WITH checks for native-system-header-dir,
22622 build-sysroot, sysroot from the `Miscenalleous configure options' to
22623 the `Directories' section and strip trailing `/' from with_sysroot.
22624 (gcc_gxx_include_dir): Don't strip a `/' sysroot value.
22625 * configure: Regenerated.
22626
22627 2015-07-17 Uros Bizjak <ubizjak@gmail.com>
22628
22629 PR target/66824
22630 * config/i386/i386.h (TARGET_HARD_SF_REGS): New define.
22631 (TARGET_HARD_DF_REGS): Ditto.
22632 (TARGET_HARD_XF_REGS): Ditto.
22633 * config/i386/i386.md (*movxf_internal): Add alternatives 9 and 10.
22634 Enable alternatives 9 and 10 only for !TARGET_HARD_XF_REG target.
22635 (*movdf_internal): Add alternatives 22, 23, 24 and 25. Enable
22636 alternatives 22, 23, 24 and 25 only for !TARGET_HARD_DF_REG target.
22637 (*movsf_internal): Add alternatives 16 and 17. Enable
22638 alternatives 16 and 17 only for !TARGET_HARD_SF_REG target.
22639
22640 2015-07-17 Uros Bizjak <ubizjak@gmail.com>
22641
22642 PR rtl-optimization/66891
22643 * calls.c (expand_call): Wrap precompute_register_parameters with
22644 NO_DEFER_POP/OK_DEFER_POP to prevent deferred pops.
22645
22646 2015-07-16 Nathan Sidwell <nathan@codesourcery.com>
22647
22648 * config/nvptx/mkoffload.c (process): Constify mapping variables.
22649 Define target data struct and initialize it.
22650
22651 2015-07-16 Vladimir Makarov <vmakarov@redhat.com>
22652
22653 PR rtl-optimization/66626
22654 * ira.h (emit-rtl.h): Include.
22655 (non_spilled_static_chain_regno_p): New.
22656 * ira-color.c (setup_profitable_hard_regs): Clear profitable regs
22657 unless it is non spilled static chain pseudo.
22658 (assign_hard_rego): Spill memory profitable allocno unless it is
22659 non spilled static chain pseudo.
22660 (allocno_spill_priority_compare): Put non spilled static chain
22661 pseudo at the end of sorted array.
22662 (improve_allocation): Do nothing if we have static chain and
22663 non-local goto.
22664 (allocno__priority_compare_func): Put non spilled static chain
22665 pseudo at the beginning of sorted array.
22666 (move_spill_restore): Ignore non spilled static chain pseudo.
22667 * ira-costs.c (find_costs_and_classes): Don't assign class NO_REGS
22668 to non spilled static chain pseudo.
22669 * lra-assigns.c (pseudo_compare_func): Put non spilled static chain
22670 pseudo at the beginning of sorted array.
22671 (spill_for): Spill non spilled static chain pseudo last.
22672 * lra-constraints.c (lra_constraints): Remove static chain pseudo
22673 check for equivalence.
22674
22675 2015-07-16 Martin Liska <mliska@suse.cz>
22676
22677 PR ipa/66896.
22678 * ipa-prop.c (update_jump_functions_after_inlining): Create properly
22679 dst_ctx if it does not exist.
22680
22681 2015-07-16 Martin Liska <mliska@suse.cz>
22682
22683 * hash-set.h (remove): New function.
22684 (iterator): New iteration class for hash_set.
22685
22686 2015-07-16 Richard Sandiford <richard.sandiford@arm.com>
22687
22688 * genattrtab.c (make_canonical): Add a file_location parameter.
22689 Use fatal_at rather than fatal.
22690 (get_attr_value): Likewise. Update call to make_canonical.
22691 (fill_attr, make_length_attrs, optimize_attrs, gen_attr)
22692 (make_internal_attr): Update calls accordingly.
22693
22694 2015-07-16 Richard Sandiford <richard.sandiford@arm.com>
22695
22696 * read-md.h (message_with_line, error_with_line): Delete.
22697 * read-md.c (message_with_line, error_with_line): Delete.
22698 * gensupport.h: Include read-md.h.
22699 (md_rtx_info): New structure.
22700 (read_md_rtx): Use it. Return a bool success value.
22701 * gensupport.c (read_md_rtx): Likewise.
22702 * genattr-common.c (gen_attr): Take an md_rtx_info rather than an rtx.
22703 (main): Update after interface changes.
22704 * genattr.c (gen_attr): Take an md_rtx_info rather than an rtx.
22705 (main): Update after interface changes.
22706 * genattrtab.c (insn_code_number): Delete.
22707 (optimize_attrs): Add a max_insn_code parameter and use it instead
22708 of insn_code_number.
22709 (gen_attr): Take an md_rtx_info rather than an rtx and lineno.
22710 Use *_at rather than *_with_line functions.
22711 (gen_insn): Likewise.
22712 (gen_delay): Likewise.
22713 (gen_insn_reserv): Likewise.
22714 (gen_bypass): Take an md_rtx_info rather than an rtx.
22715 (main): Update after interface changes. Use a local max_insn_code
22716 variable instead of insn_code_number.
22717 * genautomata.c (gen_cpu_unit): Take an md_rtx_info rather than
22718 an rtx. Use fatal_at rather than fatal.
22719 (gen_query_cpu_unit, gen_bypass, gen_excl_set)
22720 (gen_presence_absence_set, gen_presence_set, gen_final_presence_set)
22721 (gen_absence_set, gen_final_absence_set, gen_automaton)
22722 (gen_automata_option, gen_reserv, gen_insn_reserv): Likewise.
22723 (main): Update after interface changes.
22724 * gencodes.c (gen_insn): Take an md_rtx_info rather than an rtx
22725 and code number.
22726 (main): Update after interface changes.
22727 * genconditions.c (main): Use new read_md_rtx interface.
22728 * genconfig.c (gen_insn): Take an md_rtx_info rather than an rtx.
22729 (gen_expand, gen_split, gen_peephole, gen_peephole2): Likewise.
22730 (main): Update after interface changes.
22731 * genemit.c (insn_code_number, insn_index_number): Delete.
22732 (gen_insn): Take an md_rtx_info rather than an rtx and lineno.
22733 Use fatal_at rather than fatal.
22734 (gen_expand): Take an md_rtx_info rather than an rtx. Use fatal_at
22735 rather than fatal.
22736 (gen_split): Likewise.
22737 (main): Update after interface changes.
22738 * genextract.c (line_no): Delete.
22739 (gen_insn): Take an md_rtx_info rather than an rtx and lineno.
22740 Update call to walk_rtx.
22741 (VEC_safe_set_locstr): Add an md_rtx_info argument. Use message_at
22742 rather than message_with_line.
22743 (walk_rtx): Add an md_rtx_info argument. Update call to
22744 VEC_safe_set_locstr.
22745 (main): Update after interface changes.
22746 * genflags.c (gen_insn): Take an md_rtx_info rather than an rtx
22747 and lineno. Use error_at rather than separate message_with_line
22748 calls and have_error assignments.
22749 (main): Update after interface changes.
22750 * genmddump.c (main): Use new read_md_rtx interface.
22751 * genopinit.c (insn): Take an md_rtx_info rather than an rtx.
22752 (main): Update after interface changes.
22753 * genoutput.c (next_code_number): Delete.
22754 (gen_insn): Take an md_rtx_info rather than an rtx and lineno.
22755 (gen_peephole, gen_expand, gen_split): Likewise.
22756 (note_constraint): Likewise. Use *_at rather than *_with_line
22757 functions.
22758 (main): Update after interface changes.
22759 * genpeep.c (gen_peephole): Take an md_rtx_info rather than an
22760 rtx and lineno.
22761 (main): Update after interface changes.
22762 * genpreds.c (process_define_predicate): Take an md_rtx_info rather
22763 than an rtx and lineno.
22764 (process_define_constraint): Likewise.
22765 (process_define_register_constraint): Likewise.
22766 (main): Update after interface changes.
22767 * genrecog.c (next_insn_code, pattern_lineno): Delete.
22768 (validate_pattern): Replace top-level rtx with an md_rtx_info.
22769 Use *_at rather than *_with_line functions.
22770 (match_pattern_2): Likewise.
22771 (match_pattern_1, match_pattern): Add an md_rtx_info parameter.
22772 (get_peephole2_pattern): Take an md_rtx_info rather than an rtvec.
22773 Use *_at rather than *_with_line functions.
22774 * gentarget-def.c (add_insn): New function.
22775 (main): Use it. Use new read_md_rtx interface.
22776
22777 2015-07-16 Richard Sandiford <richard.sandiford@arm.com>
22778
22779 * gensupport.h (compute_test_codes): Take a file_location rather
22780 than a line number.
22781 * gensupport.c (compute_test_codes): Likewise. Use *_at functions
22782 rather than *_with_line functions.
22783 (process_define_predicate): Update call to compute_test_codes.
22784 * genpreds.c (validate_exp): Take a file_location rather than a
22785 line number. Use *_at functions rather than *_with_line functions.
22786 (process_define_predicate): Update call to validate_exp.
22787 (constraint_data): Replace lineno field with a file_location.
22788 (add_constraint): Take a file_location rather than a line number.
22789 Use *_at functions rather than *_with_line functions. Fix error
22790 message for address constraints. Update after changes to
22791 validate_exp, constraint_data and compute_test_codes.
22792 (process_define_constraint): Update accordingly.
22793 (process_define_register_constraint): Likewise.
22794
22795 2015-07-16 Richard Sandiford <richard.sandiford@arm.com>
22796
22797 * genoutput.c (data): Use a file_location to record the source
22798 position.
22799 (nothing): Delete.
22800 (idata, idata_end): Remove initialization.
22801 (constraint_data): Replace lineno with a file_location.
22802 (output_insn_data): Update after changes to data.
22803 (gen_insn, gen_peephole, gen_expand, gen_split): Likewise.
22804 (scan_operands): Likewise, using *_at rather than *_with_line
22805 functions.
22806 (process_template): Likewise.
22807 (validate_insn_alternatives): Likewise.
22808 (validate_insn_operands): Likewise.
22809 (validate_optab_operands): Likewise.
22810 (init_insn_for_nothing): Initialize idata and idata_end.
22811 (note_constraint): Update after changes to constraint_data,
22812 using at rather than with_line functions.
22813 (mdep_constraint_len): Take a file_location rather than a
22814 line number. Use at rather than with_line functions.
22815
22816 2015-07-16 Richard Sandiford <richard.sandiford@arm.com>
22817
22818 * read-md.h (fatal_at): Declare.
22819 * read-md.c (fatal_at): New function.
22820 * genattrtab.c (insn_def, attr_desc, delay_desc): Use a file_location
22821 to record the source position.
22822 (check_attr_test): Take a file_location instead of a line number.
22823 Use fatal_at instead of fatal.
22824 (check_attr_value): Update after above changes, using "at"
22825 rather than "with_line" reporting functions.
22826 (convert_set_attr_alternative): Likewise.
22827 (gen_attr): Likewise.
22828 (check_defs): Likewise. Don't assign to read_md_filename.
22829 (gen_insn): Update initialization after above changes.
22830 (gen_delay): Likewise.
22831 (write_insn_cases): Print the filename for a define_peephole.
22832 (gen_insn_reserv): Take a line number as argument and update
22833 the call to check_attr_test.
22834 (main): Pass a line number to gen_insn_reserv.
22835
22836 2015-07-16 Richard Sandiford <richard.sandiford@arm.com>
22837
22838 * read-md.h (file_location): New structure.
22839 (directive_handler_t): Take a file_location rather than a line number.
22840 (message_at, error_at): Declare.
22841 (read_skip_construct): Delete.
22842 * read-md.c (message_with_line_1): Replace with...
22843 (message_at_1): ...this new function.
22844 (message_at, error_at): New functions.
22845 (message_with_line, error_with_line): Update to use message_at_1.
22846 (handle_enum): Take a file_location rather than a line number
22847 and use error_at for error reporting.
22848 (handle_include): Likewise.
22849 (read_skip_construct): Likewise. Make static.
22850 (handle_file): Update after above changes. Pass a file_location
22851 rather than a line number to handle_directive.
22852 * gensupport.c (queue_elem): Replace separate filename and lineno
22853 with a file_location.
22854 (queue_pattern): Replace filename and lineno arguments with a
22855 file_location. Update after change to queue_elem.
22856 (process_define_predicate): Replace lineno argument with a
22857 file_location and use error_at for error reporting. Update
22858 after above changes.
22859 (process_rtx): Likewise.
22860 (subst_pattern_match): Likewise.
22861 (get_alternatives_number): Likewise.
22862 (alter_predicate_for_insn): Likewise.
22863 (rtx_handle_directive): Likewise.
22864 (is_predicable): Update after above changes, using error_at rather
22865 than error_with_line.
22866 (has_subst_attribute): Likewise.
22867 (identify_predicable_attribute): Likewise.
22868 (alter_attrs_for_subst_insn): Likewise.
22869 (process_one_cond_exec): Likewise.
22870 (process_substs_on_one_elem): Likewise.
22871 (process_define_subst): Likewise.
22872 (check_define_attr_duplicates): Likewise.
22873 (read_md_rtx): Update after change to queue_elem.
22874
22875 2015-07-16 Richard Sandiford <richard.sandiford@arm.com>
22876
22877 * genoutput.c (next_index_number): Delete.
22878 (data): Remove index_number.
22879 (gen_insn, gen_peephole, gen_expand, gen_split): Update accordingly.
22880 (main): Remove manipulation of next_index_number.
22881
22882 2015-07-16 Richard Sandiford <richard.sandiford@arm.com>
22883
22884 * genattrtab.c (check_attr_value): Remove handling of null attrs.
22885 (make_canonical): Likewise.
22886
22887 2015-07-16 Eric Botcazou <ebotcazou@adacore.com>
22888
22889 * config/sparc/sparc.md (save_stack_nonlocal): Use adjust_address
22890 instead of adjust_address_nv.
22891 (restore_stack_nonlocal): Likewise.
22892 (nonlocal_goto): Likewise.
22893
22894 2015-07-16 Tom de Vries <tom@codesourcery.com>
22895
22896 * tree-parloops.c (create_parallel_loop): Handle case that exit phi does
22897 not have a corresponding loop header phi.
22898
22899 2015-07-16 Tom de Vries <tom@codesourcery.com>
22900
22901 * tree-parloops.c (create_loads_for_reductions): Handle case that
22902 reduction is unused.
22903
22904 2015-07-16 Richard Biener <rguenther@suse.de>
22905
22906 PR tree-optimization/66894
22907 * tree-vrp.c (register_edge_assert_for_2): Fix bad assumption
22908 about deriving NE_EXPR from truncated values.
22909
22910 2015-07-16 Martin Liska <mliska@suse.cz>
22911
22912 * alloc-pool.h
22913 (object_allocator): Add new class.
22914 (pool_allocator::initialize): Use the underlying class.
22915 (pool_allocator::allocate): Likewise.
22916 (pool_allocator::remove): Likewise.
22917 (operator new): A new generic allocator.
22918 * asan.c (struct asan_mem_ref): Remove unused members.
22919 (asan_mem_ref_new): Replace new operator with
22920 object_allocator::allocate.
22921 (free_mem_ref_resources): Change deallocation.
22922 * cfg.c (initialize_original_copy_tables): Replace pool_allocator
22923 with object_allocator.
22924 * config/sh/sh.c (add_constant): Replace new operator with
22925 object_allocator::allocate.
22926 (sh_reorg): Change call to a release method.
22927 * cselib.c (struct elt_list): Remove unused members.
22928 (new_elt_list): Replace new operator with
22929 object_allocator::allocate.
22930 (new_elt_loc_list): Likewise.
22931 (new_cselib_val): Likewise.
22932 (unchain_one_elt_list): Change delete operator with remove method.
22933 (unchain_one_elt_loc_list): Likewise.
22934 (unchain_one_value): Likewise.
22935 (cselib_finish): Release newly added static allocators.
22936 * cselib.h (struct cselib_val): Remove unused members.
22937 (struct elt_loc_list): Likewise.
22938 * df-problems.c (df_chain_alloc): Replace pool_allocator with
22939 object_allocator.
22940 * df-scan.c (struct df_scan_problem_data): Likewise.
22941 (df_scan_alloc): Likewise.
22942 * df.h (struct dataflow): Likewise.
22943 * dse.c (struct read_info_type): Likewise.
22944 (struct insn_info_type): Likewise.
22945 (struct dse_bb_info_type): Likewise.
22946 (struct group_info): Likewise.
22947 (struct deferred_change): Likewise.
22948 (get_group_info): Likewise.
22949 (delete_dead_store_insn): Likewise.
22950 (free_read_records): Likewise.
22951 (replace_read): Likewise.
22952 (check_mem_read_rtx): Likewise.
22953 (scan_insn): Likewise.
22954 (dse_step1): Likewise.
22955 (dse_step7): Likewise.
22956 * et-forest.c (struct et_occ): Remove unused members.
22957 (et_new_occ): Use allocate instead of new operator.
22958 (et_new_tree): Likewise.
22959 (et_free_tree): Call release method explicitly.
22960 (et_free_tree_force): Likewise.
22961 (et_free_pools): Likewise.
22962 (et_split): Use remove instead of delete operator.
22963 * et-forest.h (struct et_node): Remove unused members.
22964 * ipa-cp.c: Change pool_allocator to object_allocator.
22965 * ipa-inline-analysis.c: Likewise.
22966 * ipa-profile.c: Likewise.
22967 * ipa-prop.c: Likewise.
22968 * ipa-prop.h: Likewise.
22969 * ira-build.c (initiate_cost_vectors): Cast return value.
22970 (ira_allocate_cost_vector): Likewise.
22971 * ira-color.c (struct update_cost_record): Remove unused members.
22972 * lra-int.h (struct lra_live_range): Likewise.
22973 (struct lra_copy): Likewise.
22974 (struct lra_insn_reg): Likewise.
22975 * lra-lives.c (lra_live_ranges_finish): Release new static allocator.
22976 * lra.c (new_insn_reg): Replace new operator with allocate method.
22977 (free_insn_regs): Same for operator delete.
22978 (finish_insn_regs): Release new static allocator.
22979 (finish_insn_recog_data): Likewise.
22980 (lra_free_copies): Replace delete operator with remove method.
22981 (lra_create_copy): Replace operator new with allocate method.
22982 (invalidate_insn_data_regno_info): Same for remove method.
22983 * regcprop.c (struct queued_debug_insn_change): Remove unused members.
22984 (free_debug_insn_changes): Replace delete operator with remove method.
22985 (replace_oldest_value_reg): Replace operator new with allocate method.
22986 (pass_cprop_hardreg::execute): Release new static variable.
22987 * sched-deps.c (sched_deps_init): Change pool_allocator to
22988 object_allocator.
22989 * sel-sched-ir.c: Likewise.
22990 * sel-sched-ir.h: Likewise.
22991 * stmt.c (expand_case): Likewise.
22992 (expand_sjlj_dispatch_table): Likewise.
22993 * tree-sra.c (struct access): Remove unused members.
22994 (struct assign_link): Likewise.
22995 (sra_deinitialize): Release newly added static pools.
22996 (create_access_1):Replace operator new with allocate method.
22997 (build_accesses_from_assign): Likewise.
22998 (create_artificial_child_access): Likewise.
22999 * tree-ssa-math-opts.c (pass_cse_reciprocals::execute): Change
23000 pool_allocator to object_allocator.
23001 * tree-ssa-pre.c: Likewise.
23002 * tree-ssa-reassoc.c: Likewise.
23003 * tree-ssa-sccvn.c (allocate_vn_table): Likewise.
23004 * tree-ssa-strlen.c: Likewise.
23005 * tree-ssa-structalias.c: Likewise.
23006 * var-tracking.c (onepart_pool_allocate): New function.
23007 (unshare_variable): Use the newly added function.
23008 (variable_merge_over_cur): Likewise.
23009 (variable_from_dropped): Likewise.
23010 (variable_was_changed): Likewise.
23011 (set_slot_part): Likewise.
23012 (emit_notes_for_differences_1): Likewise.
23013 (vt_finalize): Release newly added static pools.
23014
23015 2015-07-16 Martin Jambor <mjambor@suse.cz>
23016
23017 * ipa-prop.h (param_aa_status): Rename to ipa_param_aa_status. Adjust
23018 all uses. Fix two typos in its general comment.
23019 (func_body_info): Rename to ipa_func_body_info. Adjust all uses.
23020
23021 2015-07-16 Ilya Enkovich <enkovich.gnu@gmail.com>
23022
23023 * config/i386/linux-common.h (LINK_MPX): New.
23024 (MPX_SPEC): Use LINK_MPX instead of %(link_mpx).
23025 * configure.ac: Add HAVE_LD_BNDPLT_SUPPORT macro
23026 indicating '-z bndplt' support by linker.
23027 * configure: Regenerate.
23028 * config.in: Regenerate.
23029
23030 2015-07-16 Richard Biener <rguenther@suse.de>
23031
23032 * fold-const.c (fold_widened_comparison): Remove.
23033 (fold_sign_changed_comparison): Likewise.
23034 (fold_comparison): Move widened and sign-changed comparison
23035 simplification ...
23036 * match.pd: ... to patterns here.
23037 * generic-match-head.c: Include target.h.
23038 * gimple-match-head.c: Likewise.
23039
23040 2015-07-16 Richard Biener <rguenther@suse.de>
23041
23042 * tree-ssa-dom.c (dom_valueize): New function.
23043 (record_temporary_equivalences): Also record equivalences
23044 for dominating stmts that have uses of equivalences we are
23045 about to record.
23046
23047 2015-07-16 Bin Cheng <bin.cheng@arm.com>
23048
23049 * tree-ssa-loop-ivopts.c (add_candidate): Remove call to
23050 add_autoinc_candidates.
23051 (add_iv_candidate_for_biv): Rename to add_iv_candidate_for_biv.
23052 (add_iv_candidate_for_biv): Rename from add_iv_candidate_for_biv.
23053 (add_old_ivs_candidates): Rename to add_iv_candidate_for_bivs.
23054 (add_iv_candidate_for_bivs): Rename from add_old_ivs_candidates.
23055 Call new function.
23056 (add_iv_value_candidates): Rename to add_iv_candidate_for_use.
23057 (add_iv_candidate_for_use): Rename from add_iv_value_candidates.
23058 Remove parameter struct iv*. Call add_autoinc_candidates here.
23059 (add_derived_ivs_candidates): Rename to add_iv_candidate_for_uses.
23060 (add_iv_candidate_for_uses): Rename from add_derived_ivs_candidates.
23061 Call new function.
23062 (find_iv_candidates): Call new functions.
23063
23064 2015-07-16 Sandra Loosemore <sandra@codesourcery.com>
23065
23066 * config/nios2/nios2.c (nios2_emit_stack_limit_check): Fix
23067 uninitialized-variable warning.
23068
23069 2015-07-16 Kaz Kojima <kkojima@gcc.gnu.org>
23070
23071 PR target/65249
23072 * config/sh/sh.md (movdi): Split simple reg move to two movsi
23073 when the destination is R0.
23074
23075 2015-07-16 Uros Bizjak <ubizjak@gmail.com>
23076
23077 PR target/66866
23078 * config/i386/i386-protos.h (ix86_expand_pextr): New prototype.
23079 * config/i386/i386.c (ix86_expand_pextr): New function.
23080 (ix86_expand_pinsr): Handle V1TI and TI modes. Call ix86_expand_pextr
23081 for non-lowpart subregs.
23082 * config/i386/i386.md (extzv<mode>): Expand with ix86_expand_pextr.
23083 (insv<mode>): Use SWI248 mode iterator.
23084 (insv<mode>_1): Ditto.
23085
23086 2015-07-15 Aditya Kumar <aditya.k7@samsung.com>
23087 Sebastian Pop <s.pop@samsung.com>
23088
23089 * graphite-sese-to-poly.c (rewrite_cross_bb_scalar_deps): Point
23090 iterator to use_stmt.
23091
23092 2015-07-15 Aditya Kumar <aditya.k7@samsung.com>
23093 Sebastian Pop <s.pop@samsung.com>
23094
23095 * graphite-scop-detection.c (build_scops_1): Discard scops for
23096 which entry==exit.
23097
23098 2015-07-15 Aditya Kumar <aditya.k7@samsung.com>
23099 Sebastian Pop <s.pop@samsung.com>
23100
23101 * graphite-scop-detection.c (stmt_simple_for_scop_p): Bail out in
23102 case of a return statement in scop.
23103
23104 2015-07-15 Aditya Kumar <aditya.k7@samsung.com>
23105 Sebastian Pop <s.pop@samsung.com>
23106
23107 * graphite-sese-to-poly.c (parameter_index_in_region): Only handle
23108 INTEGER_TYPE parameters.
23109 (scan_tree_for_params): Handle REAL_CST, COMPLEX_CST, and
23110 VECTOR_CST in scan_tree_for_params.
23111 (add_conditions_to_domain): Only constrain on INTEGER_TYPE.
23112
23113 2015-07-15 Andrew MacLeod <amacleod@redhat.com>
23114
23115 * gimple-pretty-print.h: Don't include pretty-print.h.
23116 * tree-streamer.h: Don't include lto-streamer.h.
23117 * gimple-streamer.h: Include tree-streamer.h rather than lto-streamer.h.
23118 * gimple-streamer-in.c: Remove redundant includes.
23119 * gimple-streamer-out.c: Likewise.
23120 * ipa-devirt.c: Likewise.
23121 * ipa-icf.c: Likewise.
23122 * ipa-inline-analysis.c: Likewise.
23123 * ipa-polymorphic-call.c: Likewise.
23124 * ipa-profile.c: Likewise.
23125 * ipa-prop.c: Likewise.
23126 * ipa-pure-const.c: Likewise.
23127 * lto-cgraph.c: Likewise.
23128 * lto-streamer-in.c: Likewise.
23129 * lto-streamer-out.c: Likewise.
23130 * lto-streamer.c: Likewise.
23131 * tree-streamer-in.c: Likewise.
23132 * tree-streamer-out.c: Likewise.
23133 * tree-streamer.c: Likewise.
23134
23135 2015-07-15 Andrew MacLeod <amacleod@redhat.com>
23136
23137 * opth-gen.awk: Check for UNKNOWN_LOCATION rather than GCC_TM_H, don't
23138 include input.h.
23139 * opts.c: Remove multiline #include comment.
23140
23141 2015-07-15 Nathan Sidwell <nathan@codesourcery.com>
23142
23143 * config/nvptx/mkoffload.c (process): Add C++ protection to
23144 emitted code.
23145
23146 2015-07-14 Michael Meissner <meissner@linux.vnet.ibm.com>
23147
23148 PR target/66854
23149 * config/rs6000/rs6000.c (rs6000_pass_by_reference): Move test for
23150 null before IEEE 128-bit floating point support patch.
23151
23152 2015-07-15 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
23153
23154 * simplify-rtx.c (simplify_ternary_operation): Add simplification
23155 for (!c) != {0,...,0} ? a : b for vector modes.
23156
23157 2015-07-15 Paolo Bonzini <bonzini@gnu.org>
23158 Martin Jambor <mjambor@suse.cz>
23159
23160 * ipa-inline-analysis.c (unmodified_parm_or_parm_agg_item): Accept
23161 struct func_body_info* instead of struct ipa_node_params*, expecting
23162 fbi->info to be filled in. Replace throughout. Adjust call to
23163 ipa_load_from_parm_agg.
23164 (set_cond_stmt_execution_predicate): Accept struct func_body_info*
23165 instead of struct ipa_node_params*. Adjust calls to other functions
23166 so that they pass either fbi or fbi->info.
23167 (set_switch_stmt_execution_predicate): Likewise.
23168 (will_be_nonconstant_predicate): Likewise.
23169 (compute_bb_predicates): Likewise.
23170 (estimate_function_body_sizes): Move asserts earlier. Fill in
23171 struct func_body_info, replace parms_info with fbi.info. Adjust
23172 calls to functions that now accept struct func_body_info.
23173 * ipa-prop.c (param_aa_status, struct ipa_bb_info): Move to ipa-prop.h.
23174 (struct func_body_info): Likewise.
23175 (ipa_load_from_parm_agg_1): Rename to ipa_load_from_parm_agg,
23176 remove static. Adjust callers.
23177 (ipa_load_from_parm_agg): Remove.
23178 * ipa-prop.h (param_aa_status, ipa_bb_info): Move from ipa-prop.c.
23179 (func_body_info): Likewise.
23180 (ipa_load_from_parm_agg): Adjust prototype.
23181
23182 2015-07-12 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
23183
23184 * gensupport.c (rtx_handle_directive): Adjust.
23185 * read-rtl.c (apply_iterators): Take vector to add rtxs to
23186 instead of expr list rtx.
23187 (add_define_attr_for_define_subst): Likewise.
23188 (add_define_subst_attr): Likewise.
23189 (read_subst_mapping): Likewise.
23190 (read_rtx): Likewise.
23191 * rtl.h (read_rtx): Adjust.
23192
23193 2015-07-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
23194
23195 * config/aarch64/aarch64.md (*csinc2<mode>_insn): Use cinc mnemonic.
23196
23197 2015-07-15 Uros Bizjak <ubizjak@gmail.com>
23198
23199 PR target/58066
23200 * config/i386/i386.md (*tls_global_dynamic_64_<mode>): Depend on SP_REG.
23201 (*tls_local_dynamic_base_64_<mode>): Ditto.
23202 (*tls_local_dynamic_base_64_largepic): Ditto.
23203 (tls_global_dynamic_64_<mode>): Update expander pattern.
23204 (tls_local_dynamic_base_64_<mode>): Ditto.
23205
23206 2015-07-15 Richard Biener <rguenther@suse.de>
23207
23208 * fold-const.c (fold_binary_loc): Move bool_var != 0 -> bool_var
23209 and bool_var == 1 -> bool_var simplifications ...
23210 * match.pd: ... to patterns here. Factor out negate_expr_p
23211 cases from the A - B -> A + (-B) patterns as negate_expr_p
23212 predicate and add a -(A + B) -> (-B) - A pattern.
23213
23214 2015-07-15 Robert Suchanek <robert.suchanek@imgtec.com>
23215
23216 * config/mips/mips.c (mips_emit_save_slot_move): Fix typo.
23217
23218 2015-07-15 Matthew Fortune <matthew.fortune@imgtec.com>
23219 Robert Suchanek <robert.suchanek@imgtec.com>
23220
23221 * config/mips/mips.c (mips_int_mask): New enum.
23222 (mips_shadow_set): Likewise.
23223 (int_mask): New variable.
23224 (use_shadow_register_set_p): Change type to enum mips_shadow_set.
23225 (machine_function): Add int_mask and use_shadow_register_set.
23226 (mips_attribute_table): Add attribute handlers for interrupt and
23227 use_shadow_register_set.
23228 (mips_interrupt_mask): New static function.
23229 (mips_handle_interrupt_attr): Likewise.
23230 (mips_handle_use_shadow_register_set_attr): Likewise.
23231 (mips_use_shadow_register_set): Change return type to enum
23232 mips_shadow_set. Add argument handling for use_shadow_register_set
23233 attribute.
23234 (mips_interrupt_extra_called_saved_reg_p): Update the conditional to
23235 compare with mips_shadow_set enum.
23236 (mips_compute_frame_info): Add interrupt mask and
23237 use_shadow_register_set to per-function information structure.
23238 Add a stack slot for EPC unconditionally.
23239 (mips_expand_prologue): Compare use_shadow_register_set value
23240 with mips_shadow_set enum. Save EPC always in K1, clobber only K1 for
23241 masked interrupt register but in EIC mode use K0 and save Cause in K0.
23242 EPC saved and restored unconditionally. Use PMODE_INSN macro when
23243 copying the stack pointer from the shadow register set.
23244 * config/mips/mips.h (SR_IM0): New define.
23245 * config/mips/mips.md (mips_rdpgpr): Rename to...
23246 (mips_rdpgpr_<mode>): ...this. Use the Pmode iterator.
23247 * doc/extend.texi (Declaring Attributes of Functions): Document
23248 optional arguments for interrupt and use_shadow_register_set
23249 attributes.
23250
23251 2015-07-15 Robert Suchanek <robert.suchanek@imgtec.com>
23252
23253 * config/mips/mips.c (mips_compute_frame_info): Allow -mhard-float in
23254 interrupt attribute.
23255 (mips_expand_prologue): Disable the floating point unit in an ISR.
23256 * config/mips/mips.h (SR_COP1): New define.
23257
23258 2015-07-15 Richard Biener <rguenther@suse.de>
23259
23260 * genmatch.c (parser::peek, parser::peek_ident): Add argument
23261 to tell how many tokens to peek ahead (default 1).
23262 (parser::eat_token, parser::eat_ident): Return token consumed.
23263 (parser::parse_result): Parse new switch statement.
23264 * match.pd: Use case statements where appropriate.
23265
23266 2015-07-15 Uros Bizjak <ubizjak@gmail.com>
23267
23268 PR rtl-optimization/58066
23269 * calls.c (expand_call): Precompute register parameters before stack
23270 alignment is performed.
23271
23272 2015-07-15 Uros Bizjak <ubizjak@gmail.com>
23273
23274 PR rtl-optimization/66838
23275 * postreload.c (reload_cse_move2add): Also process
23276 CALL_INSN_FUNCTION_USAGE when resetting information of
23277 call-clobbered registers.
23278
23279 2015-07-14 Sandra Loosemore <sandra@codesourcery.com>
23280 Cesar Philippidis <cesar@codesourcery.com>
23281 Chung-Lin Tang <cltang@codesourcery.com>
23282
23283 * config/nios2/constraints.md (U, v): New constraints.
23284 * config/nios2/predicates.md (rdprs_dcache_operand): New.
23285 (ldstex_memory_operand): New.
23286 * config/nios2/sync.md: New file.
23287 * config/nios2/nios2.md (unspecv): Add new builtin function
23288 UNSPECV codes.
23289 (rdprs, flushd, flushda, wrpie, eni): New patterns.
23290 (top-level): Include sync.md.
23291 * config/nios2/nios2.c (N2_FTYPES): Add function types for
23292 new builtins.
23293 (N2_BUILTINS): Add arch field setting, add new builtins.
23294 (enum nios2_builtin_code,nios2_builtins): Update N2_BUILTIN_DEF
23295 for arch field.
23296 (nios2_expand_ldst_builtin): Rename from nios2_expand_ldstio_builtin.
23297 Also handle ldex/stex/ldsex/stsex builtins.
23298 (nios2_expand_rdprs_builtin): New function.
23299 (nios2_expand_cache_builtin): New function.
23300 (nios2_expand_wrpie_builtin): New function.
23301 (nios2_expand_eni_builtin): New function.
23302 (nios2_expand_builtin): Add arch field handling and new builtin
23303 cases.
23304 * doc/extend.texi (Altera Nios II Built-in Functions): Document
23305 new builtins.
23306 * doc/md.texi (Machine Constraints): Document U and v constraints.
23307
23308 2015-07-14 Sandra Loosemore <sandra@codesourcery.com>
23309 Cesar Philippidis <cesar@codesourcery.com>
23310 Chung-Lin Tang <cltang@codesourcery.com>
23311
23312 * config/nios2/nios2-protos.h (nios2_expand_return): Declare.
23313 * config/nios2/nios2.c (struct GTY (()) machine_function): Add
23314 callee_save_reg_size and uses_anonymous_args fields.
23315 (nios2_compute_frame_layout): Update for CDX push.n/pop.n usage.
23316 (nios2_create_cfa_notes): New function.
23317 (nios2_adjust_stack): New function for adjusting stack.
23318 (nios2_expand_prologue): Update for CDX push.n/pop.n usage.
23319 Use nios2_adjust_stack.
23320 (nios2_expand_epilogue): Likewise.
23321 (nios2_expand_return): New function.
23322 (nios2_can_use_return_insn): Update for CDX pop.n usage.
23323 (nios2_setup_incoming_varargs): Set uses_anonymous_args flag.
23324 If TARGET_HAS_CDX, defer pushing regs to nios2_expand_prologue.
23325 * config/nios2/nios2.md (return): Use nios2_expand_return.
23326
23327 2015-07-14 Sandra Loosemore <sandra@codesourcery.com>
23328 Cesar Philippidis <cesar@codesourcery.com>
23329 Chung-Lin Tang <cltang@codesourcery.com>
23330
23331 * config/nios2/predicates.md (pop_operation): New.
23332 (ldwm_operation, stwm_operation): New.
23333 (nios2_hard_register_operand): New.
23334 * config/nios2/nios2-protos.h (pop_operation_p): Declare.
23335 (ldstwm_operation_p): Declare.
23336 (gen_ldstwm_peep): Declare.
23337 * config/nios2/nios2.c: (nios2_ldst_parallel): Declare.
23338 (base_reg_adjustment_p): New.
23339 (pop_operation_p): New.
23340 (CDX_LDSTWM_VALID_REGS_0, CDX_LDSTWM_VALID_REGS_1): Define.
23341 (nios2_ldstwm_regset_p): New.
23342 (ldstwm_operation_p): New.
23343 (gen_ldst): New.
23344 (nios2_ldst_parallel): New.
23345 (struct ldswm_operand): Declare.
23346 (compare_ldstwm_operands): New.
23347 (can_use_cdx_ldstw): New.
23348 (gen_ldstwm_peep): New.
23349 * config/nios2/nios2-ldstwm.sml: New.
23350 * config/nios2/nios2.md: Include ldstwm.md.
23351 * config/nios2/ldstwm.md: Generated.
23352
23353 2015-07-14 Sandra Loosemore <sandra@codesourcery.com>
23354 Cesar Philippidis <cesar@codesourcery.com>
23355 Chung-Lin Tang <cltang@codesourcery.com>
23356
23357 * config/nios2/nios2.h (LABEL_ALIGN): Define.
23358 (REG_ALLOC_ORDER): Define.
23359 (ADJUST_REG_ALLOC_ORDER): Define.
23360 (HONOR_REG_ALLOC_ORDER): Define.
23361 (CDX_REG_P): Define.
23362 (ANDCLEAR_INT): Define.
23363 * config/nios2/nios2-protos.h (nios2_add_insn_asm): Declare.
23364 (nios2_label_align): Declare.
23365 (nios2_cdx_narrow_form_p): Declare.
23366 (nios2_adjust_reg_alloc_order): Declare.
23367 * config/nios2/nios2.c (nios2_rtx_costs): Adjust for BMX zero-extract
23368 operation.
23369 (nios2_large_unspec_reloc_p): New function, split from...
23370 (nios2_legitimate_pic_operand_p): ...here.
23371 (nios2_emit_move_sequence): Add *high/*lo_sum constant expand code.
23372 (nios2_print_operand_punct_valid_p): New.
23373 (nios2_print_operand): Add %., %!, %x, %y, %A. Remove %U.
23374 (split_mem_address): New.
23375 (split_alu_insn): New.
23376 (cdxreg): New.
23377 (cdx_add_immed, cdx_and_immed, cdx_mov_immed, cdx_shift_immed): New.
23378 (enum nios2_add_insn_kind): New.
23379 (nios2_add_insn_names, nios2_add_insn_narrow): New.
23380 (nios2_add_insn_classify): New.
23381 (nios2_add_insn_asm): New.
23382 (nios2_cdx_narrow_form_p): New.
23383 (label_align, min_labelno, max_labelno): New.
23384 (nios2_reorg): New.
23385 (nios2_label_align): New.
23386 (nios2_adjust_reg_alloc_order): New.
23387 (TARGET_PRINT_OPERAND_PUNCT_VALID_P): Define.
23388 (TARGET_MACHINE_DEPENDENT_REORG): Define.
23389 * config/nios2/constraints.md (P): New constraint.
23390 * config/nios2/predicates.md (const_and_operand): New.
23391 (and_operand): New.
23392 (stack_memory_operand): New.
23393 * config/nios2/nios2.md (SP_REGNO): Define stack pointer regno.
23394 (length): Update to use nios2_cdx_narrow_form_p().
23395 (type): Add new insn type values.
23396 (control, alu, st, ld, shift): Update insn reservations with
23397 new insn type values.
23398 (*high, *lo_sum): Define new insn patterns for constant generation.
23399 (movqi_internal, movhi_internal, movsi_internal): Reduce
23400 alternatives, update asm template to handle CDX variants, update
23401 type attributes.
23402 (zero_extendhisi2, zero_extendqi<mode>2): Add CDX variants to asm
23403 template, update type attributes.
23404 (extendhisi2, extendqi<mode>2): Likewise.
23405 (addsi3): Change to use function for asm string.
23406 (subsi3): Add CDX notation to asm template, update type attributes.
23407 (negsi3, one_cmplsi3): Likewise.
23408 (andsi3): New pattern, specialized from logical patterns.
23409 (<code>si3): Remove and case, combine alternatives, update asm
23410 template.
23411 (<shift_op>si3): Add CDX notation, update type attributes.
23412 (rotrsi3): Update type attribute.
23413 (*merge, extzv, insv): New insn patterns.
23414 (return): Change to define_expand.
23415 (simple_return): Add CDX notation, update type attributes.
23416 (indirect_jump): Add CDX notation.
23417 (jump): Update asm cases, update length attribute expression.
23418 (*call, *call_value, *sibcall, *sibcall_value): Add CDX variant.
23419 (nios2_cbranch): Update asm cases and length attribute expression
23420 to handle CDX variants.
23421 (nios2_cmp<code>): Update asm template.
23422 (nop): Add CDX notation, update type attributes.
23423 (trap): Add CDX notation.
23424 (ctrapsi4): Update asm cases and length attribute expression to
23425 handle CDX variant.
23426 * doc/md.texi (Machine Constraints): Document P constraint.
23427
23428 2015-07-14 Sandra Loosemore <sandra@codesourcery.com>
23429 Cesar Philippidis <cesar@codesourcery.com>
23430 Chung-Lin Tang <cltang@codesourcery.com>
23431
23432 * config/nios2/nios2.h (SMALL_INT12): New macro.
23433 * config/nios2/nios2.c (nios2_valid_addr_offset_p): New function.
23434 (nios2_valid_addr_expr_p): Use it.
23435 (nios2_symbol_ref_in_small_data_p): Disallow GP-relative addressing
23436 with implicit "io" instructions on R2.
23437 * config/nios2/constraints.md (w): New constraint.
23438 * config/nios2/predicates.md (ldstio_memory_operand): New.
23439 * config/nios2/nios2.md (ld<bhw_uns>io, ld<bh>io): Update memory
23440 operand predicate and constraint.
23441 (ld<bh>io_signed, st<bhw>io>): Likewise.
23442 * doc/md.texi (Machine Constraints): Document w constraint.
23443
23444 2015-07-14 Sandra Loosemore <sandra@codesourcery.com>
23445 Cesar Philippidis <cesar@codesourcery.com>
23446 Chung-Lin Tang <cltang@codesourcery.com>
23447
23448 * config/nios2/nios2.opt (march, mbmx, mcdx): New options.
23449 * config/nios2/nios2-opts.h (enum nios2_arch_type): New enum for
23450 Nios II architecture level.
23451 * config/nios2/nios2.h (TARGET_ARCH_R2): New define.
23452 (TARGET_CPU_CPP_BUILTINS): Add definition of __nios2_arch__ symbol.
23453 (OPTION_DEFAULT_SPECS): Define.
23454 (ASM_SPEC): Add -march= spec strings.
23455 * config/nios2/nios2.c (nios2_option_override): Check for
23456 conflicts involving new options.
23457 * config.gcc (nios2*-*-*): Support --with-arch=.
23458 * doc/invoke.texi (Option Summary, Nios II Options): Document
23459 -march=, -mbmx, and -mcdx.
23460
23461 2015-07-14 Vladimir Makarov <vmakarov@redhat.com>
23462
23463 PR rtl-optimization/66626
23464 * lra-constraints.c (lra_constraints): Prevent equivalence
23465 substitution for static chain pseudo in functions with nonlocal
23466 goto.
23467
23468 2015-07-14 Sandra Loosemore <sandra@codesourcery.com>
23469
23470 * config/nios2/nios2.c (TEMP_REG_NUM): Move define up in file.
23471 (nios2_emit_stack_limit_check): Add size parameter. Handle
23472 -fstack-limit-symbol as well as -fstack-limit-register.
23473 (nios2_expand_prologue): Emit only a single stack limit check,
23474 even if multiple stack adjustments are required.
23475 (nios2_option_override): Diagnose unsupported combination of -fpic
23476 and -stack-limit-symbol.
23477
23478 2015-07-14 H.J. Lu <hongjiu.lu@intel.com>
23479
23480 * Makefile.in (top_srcdir): New.
23481 * configure.ac: Use AM_ZLIB.
23482 * configure: Regeneated.
23483
23484 2015-07-14 Matthias Klose <doko@ubuntu.com>
23485
23486 PR target/66840
23487 * config/rs6000/t-rs6000 (TM_H): Add rs6000-cpus.def.
23488
23489 2015-07-14 Richard Biener <rguenther@suse.de>
23490
23491 PR tree-optimization/66863
23492 * tree-vrp.c (register_edge_assert_for_2): Properly restrict
23493 what we record for conversion use stmt lhs inequalities.
23494
23495 2015-07-14 Richard Biener <rguenther@suse.de>
23496
23497 * genmatch.c (dt_node::gen_kids_1): Fix case label indenting.
23498 (decision_tree::gen_gimple): Likewise.
23499
23500 2015-07-14 Tom de Vries <tom@codesourcery.com>
23501
23502 * gcc.c (greater_than_spec_func): Declare forward.
23503 (LINK_COMMAND_SPEC, GOMP_SELF_SPECS): Use gt to ignore
23504 -ftree-parallelize-loops={0,1}.
23505 (static_spec_functions): Add greater_than_spec_func function with name
23506 "gt".
23507 (greater_than_spec_func): New function.
23508
23509 2015-07-14 Richard Biener <rguenther@suse.de>
23510
23511 * tree-ssa-dom.c (record_temporary_equivalences): Merge
23512 wideing type conversion case from record_equivalences_from_incoming_edge
23513 and use record_equality to record equivalences.
23514 (record_equivalences_from_incoming_edge): Call
23515 record_temporary_equivalences.
23516
23517 2015-07-14 Richard Biener <rguenther@suse.de>
23518
23519 * genmatch.c (struct operand): Add OP_IF and OP_WITH op_types.
23520 (struct if_expr): New.
23521 (struct with_expr): Likewise.
23522 (is_a_helper): Add helpers for if_expr and with_expr.
23523 (struct simplify): Add simplify_kind enum and member. Remove
23524 ifexpr_vec member.
23525 (simplify::simplify): Adjust.
23526 (lower_commutative): Adjust.
23527 (lower_opt_convert): Likewise.
23528 (lower_cond): Likewise.
23529 (replace_id): Handle with_expr and if_expr.
23530 (lower_for): Adjust.
23531 (dt_simplify::gen_1): New recursive worker, split out from ...
23532 (dt_simplify::gen): ... here. Deal with if and with expansion
23533 recursively.
23534 (capture_info::capture_info): Take context argument
23535 (capture_info::walk_result): Only analyze specific result.
23536 (parser::parse_result): New function.
23537 (parser::parse_simplify): Adjust to parse ifs with then end
23538 else case.
23539 (parser::parse_if): Simplify.
23540 (parser::parse_pattern): Pass down simplify kind.
23541 * match.pd: Convert if structure to new syntax.
23542
23543 2015-07-13 Marek Polacek <polacek@redhat.com>
23544
23545 * rtl.c (rtx_equal_p_cb): Fix typo.
23546
23547 2015-07-13 Andrew MacLeod <amacleod@redhat.com>
23548
23549 * omega.h: Don't include config.h, don't include params.h again if
23550 omega.h has already been included.
23551 * graphite-poly.h: Include sese.h.
23552 * graphite.c: Don't include sese.h, remove needless includes and
23553 minimize includes outside #ifdef HAVE_isl block.
23554 * graphite-blocking.c: Don't include sese.h, remove needless includes,
23555 and wrap entire file in #ifdef HAVE_isl
23556 * graphite-dependences.c: Likewise.
23557 * graphite-interchange.c: Likewise.
23558 * graphite-isl-ast-to-gimple.c: Likewise.
23559 * graphite-optimize-isl.c: Likewise.
23560 * graphite-poly.c: Likewise.
23561 * graphite-scop-detection.c: Likewise.
23562 * graphite-sese-to-poly.c: Likewise.
23563
23564 2015-07-13 Tom de Vries <tom@codesourcery.com>
23565
23566 * omp-low.c (build_receiver_ref): Mark *.omp_data_i as non-trapping.
23567
23568 2015-07-13 Renlin Li <renlin.li@arm.com>
23569
23570 PR rtl/66556
23571 * simplify-rtx.c (simplify_const_relational_operation): Add
23572 side_effects_p checks.
23573
23574 2015-07-12 Aldy Hernandez <aldyh@redhat.com>
23575
23576 * bitmap.h: Fix double word typos.
23577 * builtins.c: Same.
23578 * calls.c: Same.
23579 * cfgloopmanip.c: Same.
23580 * cgraph.c: Same.
23581 * cgraph.h: Same.
23582 * cgraphclones.c: Same.
23583 * combine.c: Same.
23584 * config/aarch64/aarch64-protos.h: Same.
23585 * config/aarch64/aarch64.c: Same.
23586 * config/aarch64/aarch64.md: Same.
23587 * config/arm/arm.md: Same.
23588 * config/arm/arm1020e.md: Same.
23589 * config/arm/arm1026ejs.md: Same.
23590 * config/arm/arm926ejs.md: Same.
23591 * config/arm/fa526.md: Same.
23592 * config/arm/fa606te.md: Same.
23593 * config/arm/fa626te.md: Same.
23594 * config/arm/fa726te.md: Same.
23595 * config/arm/fmp626.md: Same.
23596 * config/darwin.c: Same.
23597 * config/epiphany/epiphany.c: Same.
23598 * config/frv/frv.c: Same.
23599 * config/ft32/ft32.c: Same.
23600 * config/gnu-user.h: Same.
23601 * config/h8300/constraints.md: Same.
23602 * config/i386/i386.c: Same.
23603 * config/i386/i386.md: Same.
23604 * config/iq2000/iq2000.md: Same.
23605 * config/mips/mips.c: Same.
23606 * config/mmix/mmix.md: Same.
23607 * config/moxie/moxie.c: Same.
23608 * config/nds32/nds32.md: Same.
23609 * config/pa/pa.h: Same.
23610 * config/rs6000/aix.h: Same.
23611 * config/rs6000/rs6000.h: Same.
23612 * config/sh/sh.c: Same.
23613 * config/tilegx/tilegx.md: Same.
23614 * config/tilepro/gen-mul-tables.cc: Same.
23615 * cse.c: Same.
23616 * dbxout.c: Same.
23617 * doc/invoke.texi: Same.
23618 * dse.c: Same.
23619 * dwarf2out.c: Same.
23620 * final.c: Same.
23621 * gcc.c: Same.
23622 * genmatch.c: Same.
23623 * gimplify.c: Same.
23624 * hash-table.h: Same.
23625 * internal-fn.c: Same.
23626 * ipa-cp.c: Same.
23627 * ipa-devirt.c: Same.
23628 * ipa-icf.c: Same.
23629 * ipa-icf.h: Same.
23630 * ipa-profile.c: Same.
23631 * ipa-prop.c: Same.
23632 * ipa-prop.h: Same.
23633 * ira.c: Same.
23634 * omp-low.c: Same.
23635 * reg-stack.c: Same.
23636 * regcprop.c: Same.
23637 * reorg.c: Same.
23638 * rtl.h: Same.
23639 * sbitmap.h: Same.
23640 * tree-eh.c: Same.
23641 * tree-inline.c: Same.
23642 * tree-sra.c: Same.
23643 * tree-ssa-dom.c: Same.
23644 * tree-ssa-loop-ivopts.c: Same.
23645 * tree-ssa-structalias.c: Same.
23646 * tree-ssa-tail-merge.c: Same.
23647 * tree-ssa-ter.c: Same.
23648 * tree-ssa-threadupdate.c: Same.
23649 * tree-ssa-uninit.c: Same.
23650 * tree-ssanames.c: Same.
23651 * tree-vect-loop-manip.c: Same.
23652 * tree-vrp.c: Same.
23653 * tree.c: Same.
23654 * valtrack.c: Same.
23655 * vec.h: Same.
23656
23657 2015-07-12 Kugan Vivekanandarajah <kuganv@linaro.org>
23658
23659 PR middle-end/66726
23660 * tree-ssa-phiopt.c(factor_out_conditional_conversion): New function.
23661 tree_ssa_phiopt_worker): Call it.
23662
23663 2015-07-12 Kugan Vivekanandarajah <kuganv@linaro.org>
23664
23665 * cse.c (cse_insn): Calculate src_eqv for ZERO_EXTRACT.
23666 * emit-rtl.c (set_for_reg_notes): Allow ZERO_EXTRACT to set
23667 REG_EQUAL note.
23668
23669 2015-07-11 Marek Polacek <polacek@redhat.com>
23670
23671 PR middle-end/66353
23672 * basic-block.h (has_abnormal_call_or_eh_pred_edge_p): New function.
23673 * ira-lives.c (bb_has_abnormal_call_pred): Remove function.
23674 (process_bb_node_lives): Call has_abnormal_call_or_eh_pred_edge_p
23675 rather than bb_has_abnormal_call_pred.
23676 * lra-lives.c (bb_has_abnormal_call_pred): Remove function.
23677 (process_bb_lives): Call has_abnormal_call_or_eh_pred_edge_p
23678 rather than bb_has_abnormal_call_pred.
23679
23680 2015-07-10 Anatoly Sokolov <aesok@post.ru>
23681
23682 * config/v850/v850.h (REG_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P,
23683 REG_OK_FOR_BASE_P_STRICT, REG_OK_FOR_INDEX_P_STRICT, STRICT,
23684 RTX_OK_FOR_BASE_P, GO_IF_LEGITIMATE_ADDRESS): Remove macros.
23685 * config/v850/v850.c (v850_reg_ok_for_base_, v850_rtx_ok_for_base_p,
23686 v850_legitimate_address_p): New functions.
23687 (TARGET_ADDR_SPACE_LEGITIMATE_ADDRESS_P): Define.
23688
23689 2015-07-10 H.J. Lu <hongjiu.lu@intel.com>
23690
23691 PR target/66819
23692 * config/i386/i386.c (ix86_function_ok_for_sibcall): Allow
23693 indirect sibcall with register arguments if register available
23694 for argument passing.
23695 (init_cumulative_args): Set cfun->machine->arg_reg_available
23696 to (cum->nregs > 0) or to true if function has a variable
23697 argument list.
23698 (function_arg_advance_32): Set cfun->machine->arg_reg_available
23699 to false if cum->nregs <= 0.
23700 * config/i386/i386.h (machine_function): Add arg_reg_available.
23701
23702 2015-07-10 Uros Bizjak <ubizjak@gmail.com>
23703
23704 * config/i386/sse.md (movdi_to_sse): Use gen_lowpart
23705 and gen_higpart instead of gen_rtx_SUBREG.
23706 * config/i386/i386.md
23707 (floatdi<X87MODEF:mode>2_i387_with_xmm splitter): Ditto.
23708 (read-modify peephole2): Use gen_lowpart instead of
23709 gen_rtx_SUBREG for operand 5.
23710
23711 2015-07-10 Andrew MacLeod <amacleod@redhat.com>
23712
23713 * config/tilepro/gen-mul-tables.cc (main): Change include list for
23714 generated files.
23715 * config/tilepro/mul-tables.c: Regenerate.
23716 * config/tilegx/mul-tables.c: Regenerate.
23717
23718 2015-07-10 Richard Biener <rguenther@suse.de>
23719
23720 * fold-const.c (distribute_bit_expr): Remove.
23721 (fold_binary_loc): Move simplifying (A & C1) + (B & C2)
23722 to (A & C1) | (B & C2), distributing (A & B) | (A & C)
23723 to A & (B | C) and simplifying A << C1 << C2 to ...
23724 * match.pd: ... patterns here.
23725
23726 2015-07-10 Jiong Wang <jiong.wang@arm.com>
23727
23728 * config/aarch64/aarch64.c (aarch64_load_symref_appropriately):
23729 Mark mem as READONLY and NOTRAP for PIC symbol.
23730
23731 2015-07-10 Andrew MacLeod <amacleod@redhat.com>
23732
23733 * gimple-predict.h: New file.
23734 (gimple_predict_predictor, gimple_predict_set_predictor,
23735 gimple_predict_outcome, gimple_predict_set_outcome,
23736 gimple_build_predict): Relocate here.
23737 * gimple.h (gimple_predict_predictor, gimple_predict_set_predictor,
23738 gimple_predict_outcome, gimple_predict_set_outcome): Move to
23739 gimple-predict.h.
23740 * gimple.c (gimple_build_predict): Move to gimple-predict.h
23741 * basic-block.h: Don't include cfghooks.h.
23742 * backend.h: Don't include predict.h.
23743 * cfghooks.h: Include predict.h.
23744 * gimple-pretty-print.c: Include gimple-predict.h.
23745 * gimplify.c: Likwise.
23746 * predict.c: Adjust includes.
23747 * tree-inline.c: Likewise.
23748 * asan.c: Likewise.
23749 * auto-inc-dec.c: Likewise.
23750 * auto-profile.c: Likewise.
23751 * bb-reorder.c: Likewise.
23752 * builtins.c: Likewise.
23753 * caller-save.c: Likewise.
23754 * calls.c: Likewise.
23755 * cfganal.c: Likewise.
23756 * cfgbuild.c: Likewise.
23757 * cfg.c: Likewise.
23758 * cfgcleanup.c: Likewise.
23759 * cfgexpand.c: Likewise.
23760 * cfghooks.c: Likewise.
23761 * cfgloopanal.c: Likewise.
23762 * cfgloop.c: Likewise.
23763 * cfgloopmanip.c: Likewise.
23764 * cfgrtl.c: Likewise.
23765 * cgraph.c: Likewise.
23766 * cgraphunit.c: Likewise.
23767 * combine.c: Likewise.
23768 * cprop.c: Likewise.
23769 * cse.c: Likewise.
23770 * dce.c: Likewise.
23771 * dojump.c: Likewise.
23772 * dse.c: Likewise.
23773 * except.c: Likewise.
23774 * expmed.c: Likewise.
23775 * expr.c: Likewise.
23776 * final.c: Likewise.
23777 * fold-const.c: Likewise.
23778 * function.c: Likewise.
23779 * fwprop.c: Likewise.
23780 * gcc-plugin.h: Likewise.
23781 * gcse.c: Likewise.
23782 * genattrtab.c: Likewise.
23783 * genemit.c: Likewise.
23784 * gengtype.c: Likewise.
23785 * genopinit.c: Likewise.
23786 * genoutput.c: Likewise.
23787 * genpreds.c: Likewise.
23788 * genrecog.c: Likewise.
23789 * gimple-fold.c: Likewise.
23790 * gimple-iterator.c: Likewise.
23791 * gimple-ssa-isolate-paths.c: Likewise.
23792 * gimple-ssa-strength-reduction.c: Likewise.
23793 * graph.c: Likewise.
23794 * graphite-blocking.c: Likewise.
23795 * graphite.c: Likewise.
23796 * graphite-dependences.c: Likewise.
23797 * graphite-interchange.c: Likewise.
23798 * graphite-isl-ast-to-gimple.c: Likewise.
23799 * graphite-optimize-isl.c: Likewise.
23800 * graphite-poly.c: Likewise.
23801 * graphite-scop-detection.c: Likewise.
23802 * graphite-sese-to-poly.c: Likewise.
23803 * haifa-sched.c: Likewise.
23804 * ifcvt.c: Likewise.
23805 * internal-fn.c: Likewise.
23806 * ipa-cp.c: Likewise.
23807 * ipa-profile.c: Likewise.
23808 * ipa-split.c: Likewise.
23809 * ipa-utils.c: Likewise.
23810 * ira-build.c: Likewise.
23811 * ira-color.c: Likewise.
23812 * ira-conflicts.c: Likewise.
23813 * ira-costs.c: Likewise.
23814 * ira-emit.c: Likewise.
23815 * ira-lives.c: Likewise.
23816 * jump.c: Likewise.
23817 * loop-doloop.c: Likewise.
23818 * loop-init.c: Likewise.
23819 * loop-invariant.c: Likewise.
23820 * loop-unroll.c: Likewise.
23821 * lower-subreg.c: Likewise.
23822 * lra-assigns.c: Likewise.
23823 * lra.c: Likewise.
23824 * lra-coalesce.c: Likewise.
23825 * lra-constraints.c: Likewise.
23826 * lra-lives.c: Likewise.
23827 * lto-cgraph.c: Likewise.
23828 * lto-streamer-in.c: Likewise.
23829 * mode-switching.c: Likewise.
23830 * modulo-sched.c: Likewise.
23831 * omp-low.c: Likewise.
23832 * optabs.c: Likewise.
23833 * passes.c: Likewise.
23834 * postreload.c: Likewise.
23835 * postreload-gcse.c: Likewise.
23836 * profile.c: Likewise.
23837 * recog.c: Likewise.
23838 * regstat.c: Likewise.
23839 * reload1.c: Likewise.
23840 * reorg.c: Likewise.
23841 * rtlanal.c: Likewise.
23842 * sched-ebb.c: Likewise.
23843 * sel-sched-ir.c: Likewise.
23844 * sese.c: Likewise.
23845 * shrink-wrap.c: Likewise.
23846 * simplify-rtx.c: Likewise.
23847 * stmt.c: Likewise.
23848 * store-motion.c: Likewise.
23849 * tracer.c: Likewise.
23850 * trans-mem.c: Likewise.
23851 * tree-call-cdce.c: Likewise.
23852 * tree-cfg.c: Likewise.
23853 * tree-cfgcleanup.c: Likewise.
23854 * tree-chkp.c: Likewise.
23855 * tree-complex.c: Likewise.
23856 * tree-eh.c: Likewise.
23857 * tree-if-conv.c: Likewise.
23858 * tree-loop-distribution.c: Likewise.
23859 * tree-outof-ssa.c: Likewise.
23860 * tree-parloops.c: Likewise.
23861 * tree-predcom.c: Likewise.
23862 * tree-pretty-print.c: Likewise.
23863 * tree-profile.c: Likewise.
23864 * tree-sra.c: Likewise.
23865 * tree-ssa.c: Likewise.
23866 * tree-ssa-coalesce.c: Likewise.
23867 * tree-ssa-dce.c: Likewise.
23868 * tree-ssa-dom.c: Likewise.
23869 * tree-ssa-forwprop.c: Likewise.
23870 * tree-ssa-ifcombine.c: Likewise.
23871 * tree-ssa-loop-ch.c: Likewise.
23872 * tree-ssa-loop-im.c: Likewise.
23873 * tree-ssa-loop-ivcanon.c: Likewise.
23874 * tree-ssa-loop-ivopts.c: Likewise.
23875 * tree-ssa-loop-manip.c: Likewise.
23876 * tree-ssa-loop-prefetch.c: Likewise.
23877 * tree-ssa-loop-unswitch.c: Likewise.
23878 * tree-ssa-math-opts.c: Likewise.
23879 * tree-ssa-phiopt.c: Likewise.
23880 * tree-ssa-pre.c: Likewise.
23881 * tree-ssa-reassoc.c: Likewise.
23882 * tree-ssa-sink.c: Likewise.
23883 * tree-ssa-tail-merge.c: Likewise.
23884 * tree-ssa-threadedge.c: Likewise.
23885 * tree-ssa-threadupdate.c: Likewise.
23886 * tree-switch-conversion.c: Likewise.
23887 * tree-tailcall.c: Likewise.
23888 * tree-vect-data-refs.c: Likewise.
23889 * tree-vect-loop.c: Likewise.
23890 * tree-vect-loop-manip.c: Likewise.
23891 * tree-vectorizer.c: Likewise.
23892 * tree-vrp.c: Likewise.
23893 * ubsan.c: Likewise.
23894 * value-prof.c: Likewise.
23895 * varasm.c: Likewise.
23896 * var-tracking.c: Likewise.
23897 * config/aarch64/aarch64-builtins.c: Likewise.
23898 * config/aarch64/aarch64.c: Likewise.
23899 * config/aarch64/cortex-a57-fma-steering.c: Likewise.
23900 * config/alpha/alpha.c: Likewise.
23901 * config/arc/arc.c: Likewise.
23902 * config/arm/arm.c: Likewise.
23903 * config/avr/avr.c: Likewise.
23904 * config/bfin/bfin.c: Likewise.
23905 * config/c6x/c6x.c: Likewise.
23906 * config/cr16/cr16.c: Likewise.
23907 * config/cris/cris.c: Likewise.
23908 * config/darwin.c: Likewise.
23909 * config/darwin-c.c: Likewise.
23910 * config/epiphany/epiphany.c: Likewise.
23911 * config/epiphany/mode-switch-use.c: Likewise.
23912 * config/epiphany/resolve-sw-modes.c: Likewise.
23913 * config/fr30/fr30.c: Likewise.
23914 * config/frv/frv.c: Likewise.
23915 * config/ft32/ft32.c: Likewise.
23916 * config/h8300/h8300.c: Likewise.
23917 * config/i386/i386.c: Likewise.
23918 * config/i386/winnt.c: Likewise.
23919 * config/ia64/ia64.c: Likewise.
23920 * config/iq2000/iq2000.c: Likewise.
23921 * config/lm32/lm32.c: Likewise.
23922 * config/m32c/m32c.c: Likewise.
23923 * config/m32r/m32r.c: Likewise.
23924 * config/m68k/m68k.c: Likewise.
23925 * config/mcore/mcore.c: Likewise.
23926 * config/mep/mep.c: Likewise.
23927 * config/microblaze/microblaze.c: Likewise.
23928 * config/mips/mips.c: Likewise.
23929 * config/mmix/mmix.c: Likewise.
23930 * config/mn10300/mn10300.c: Likewise.
23931 * config/moxie/moxie.c: Likewise.
23932 * config/msp430/msp430.c: Likewise.
23933 * config/nds32/nds32.c: Likewise.
23934 * config/nds32/nds32-cost.c: Likewise.
23935 * config/nds32/nds32-fp-as-gp.c: Likewise.
23936 * config/nds32/nds32-intrinsic.c: Likewise.
23937 * config/nds32/nds32-isr.c: Likewise.
23938 * config/nds32/nds32-md-auxiliary.c: Likewise.
23939 * config/nds32/nds32-memory-manipulation.c: Likewise.
23940 * config/nds32/nds32-pipelines-auxiliary.c: Likewise.
23941 * config/nds32/nds32-predicates.c: Likewise.
23942 * config/nios2/nios2.c: Likewise.
23943 * config/nvptx/nvptx.c: Likewise.
23944 * config/pa/pa.c: Likewise.
23945 * config/pdp11/pdp11.c: Likewise.
23946 * config/rl78/rl78.c: Likewise.
23947 * config/rs6000/rs6000.c: Likewise.
23948 * config/rx/rx.c: Likewise.
23949 * config/s390/s390.c: Likewise.
23950 * config/sh/sh.c: Likewise.
23951 * config/sh/sh-mem.cc: Likewise.
23952 * config/sh/sh_optimize_sett_clrt.cc: Likewise.
23953 * config/sh/sh_treg_combine.cc: Likewise.
23954 * config/sparc/sparc.c: Likewise.
23955 * config/spu/spu.c: Likewise.
23956 * config/stormy16/stormy16.c: Likewise.
23957 * config/tilegx/tilegx.c: Likewise.
23958 * config/tilepro/tilepro.c: Likewise.
23959 * config/v850/v850.c: Likewise.
23960 * config/vax/vax.c: Likewise.
23961 * config/visium/visium.c: Likewise.
23962 * config/xtensa/xtensa.c: Likewise.
23963
23964 2015-07-10 Richard Biener <rguenther@suse.de>
23965
23966 * genmatch.c (dt_node::gen_kids_1): Fix indenting of case labels.
23967 (decision_tree::gen_gimple): Likewise.
23968 (decision_tree::gen_generic): Likewise.
23969
23970 2015-07-10 Uros Bizjak <ubizjak@gmail.com>
23971
23972 PR target/66813
23973 * config/i386/i386.c (ix86_md_asm_adjust): Emit movstrictqi
23974 sequence for TARGET_ZERO_EXTEND_WITH_AND targets.
23975
23976 2015-07-10 Jakub Jelinek <jakub@redhat.com>
23977
23978 PR middle-end/66820
23979 * gimplify.c (maybe_fold_stmt): Don't fold in ORT_PARALLEL
23980 or ORT_TASK contexts.
23981 * omp-low.c (lower_omp): Call fold_stmt even if taskreg_nesting_level
23982 is non-zero.
23983
23984 2015-07-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
23985
23986 * expr.c (expand_cond_expr_using_cmove): Fix typos in comment
23987 above function.
23988
23989 2015-07-10 Tom de Vries <tom@codesourcery.com>
23990
23991 * tree-parloops.c (try_transform_to_exit_first_loop_alt): If not found,
23992 insert nit + 1 bound.
23993
23994 2015-07-10 Richard Biener <rguenther@suse.de>
23995
23996 * tree-if-conv.c (if_convertible_gimple_assign_stmt_p):
23997 Use ifcvt_could_trap_p also when not flag_tree_loop_if_convert_stores.
23998 (if_convertible_loop_p_1): For this always compute bb predicates.
23999 (if_convertible_loop_p): And free them.
24000
24001 2015-07-10 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
24002
24003 * ipa-icf.c (sem_item_optimizer::do_congruence_step): Fix typo
24004 in dump message.
24005
24006 2015-07-10 Richard Biener <rguenther@suse.de>
24007
24008 PR tree-optimization/66823
24009 * tree-if-conv.c (memrefs_read_or_written_unconditionally): Fix
24010 inverted predicate.
24011
24012 2015-07-09 Steve Ellcey <sellcey@imgtec.com>
24013
24014 * config/mips/mti-linux.h (MIPS_SYSVERSION_SPEC): Update
24015 to handle mips[32|64]r3 and mips[32|64]r5.
24016
24017 2015-07-09 Jakub Jelinek <jakub@redhat.com>
24018
24019 PR middle-end/66633
24020 * tree-nested.c (get_static_chain): Or in a flag into
24021 info->static_chain_added.
24022 (get_frame_field, get_nonlocal_debug_decl): Likewise.
24023 (convert_nonlocal_omp_clauses, convert_local_omp_clauses): Revert
24024 2015-07-01 changes.
24025 (convert_tramp_reference_stmt): If a frame_decl or chain_decl
24026 is needed newly inside of GIMPLE_OMP_{PARALLEL,TASK,TARGET} body,
24027 add it to clauses.
24028
24029 PR tree-optimization/66718
24030 * tree-vect-stmts.c (struct simd_call_arg_info): Add simd_lane_linear
24031 field.
24032 (vect_simd_lane_linear): New function.
24033 (vectorizable_simd_clone_call): Support using linear arguments for
24034 addresses of arrays elements indexed by GOMP_SIMD_LANE result.
24035
24036 2015-07-09 H.J. Lu <hongjiu.lu@intel.com>
24037
24038 PR target/66821
24039 * config/i386/i386.c (iamcu_cost): Adjust variable shift costs.
24040
24041 2015-07-09 Michael Meissner <meissner@linux.vnet.ibm.com>
24042
24043 * config/rs6000/rs6000-protos.h (rs6000_secondary_reload_memory):
24044 Use machine mode, not enum machine_mode in the prototype.
24045
24046 * config/rs6000/rs6000.h (FLOAT128_IEEE_P): New helper macros to
24047 classify 128-bit floating point support.
24048 (FLOAT128_IBM_P): Likewise.
24049 (FLOAT128_VECTOR_P): Likewise.
24050 (FLOAT128_2REG_P): Likewise.
24051 (SCALAR_FLOAT_MODE_NOT_VECTOR_P): Likewise.
24052 (SLOW_UNALIGNED_ACCESS): Add IEEE 128-bit floating point support.
24053 (HARD_REGNO_CALLER_SAVE_MODE): Likewise.
24054 (HARD_REGNO_CALL_PART_CLOBBERED): Likewise.
24055
24056 * config/rs6000/rs6000.c (rs6000_hard_regno_nregs_internal): Drop
24057 tests against TFmode/TDmode, since those modes do not use VSX
24058 addresses.
24059 (rs6000_hard_regno_mode_ok): Add IEEE 128-bit floating point
24060 support.
24061 (rs6000_init_hard_regno_mode_ok): Use new helper macros instead of
24062 tests against TFmode, etc.
24063 (invalid_e500_subreg): Add tests against IFmode/KFmode.
24064 (reg_offset_addressing_ok_p): Likewise.
24065 (rs6000_legitimate_offset_address_p): Likewise.
24066 (rs6000_legitimize_address): Likewise.
24067 (rs6000_legitimize_reload_address): Likewise.
24068 (rs6000_legitimate_address_p): Clean up tests against TFmode and
24069 TDmode to use the new helper macros, which will include IFmode and
24070 KFmode.
24071 (rs6000_emit_move): Likewise.
24072 (rs6000_darwin64_record_arg_recurse): Likewise.
24073 (print_operand): Likewise.
24074 (rs6000_member_type_forces_blk): Treat IEEE 128-bit floating point
24075 that uses a single vector register as a vector and not as a
24076 floating point register in terms of the calling sequence.
24077 (rs6000_discover_homogeneous_aggregate): Likewise.
24078 (rs6000_return_in_memory): Likewise.
24079 (init_cumulative_args): Likewise.
24080 (rs6000_function_arg_boundary): Likewise.
24081 (rs6000_function_arg_advance_1): Likewise.
24082 (rs6000_function_arg): Likewise.
24083 (rs6000_pass_by_reference): Likewise.
24084 (rs6000_gimplify_va_arg): Likewise.
24085 (rs6000_secondary_reload_memory): Use machine_mode not enum
24086 machine mode.
24087 (rs6000_split_multireg_move): Use new helper macros.
24088 (spe_func_has_64bit_regs_p): Likewise.
24089 (rs6000_output_function_epilogue): Add IFmode/KFmode support.
24090 (output_toc): Use new helper macros.
24091 (rs6000_register_move_cost): Likewise.
24092 (rs6000_function_value): Add IEEE 128-bit floating point calling
24093 sequence support.
24094 (rs6000_libcall_value): Likewise.
24095 (rs6000_scalar_mode_supported_p): Add support for IEEE 128-bit
24096 floating point support.
24097 (rs6000_vector_mode_supported_p): Likewise.
24098
24099 2015-07-09 Vladimir Makarov <vmakarov@redhat.com>
24100
24101 PR rtl-optimization/66782
24102 * lra-int.h (struct lra_insn_recog_data): Add comment about
24103 clobbered hard regs for arg_hard_regs.
24104 * lra.c (lra_set_insn_recog_data): Add clobbered hard regs.
24105 * lra-lives.c (process_bb_lives): Process clobbered hard regs.
24106 Add condition for processing used hard regs.
24107 * lra-constraints.c (update_ebb_live_info, inherit_in_ebb):
24108 Process clobbered hard regs.
24109
24110 2015-07-09 Michael Matz <matz@suse.de>
24111
24112 * genmatch.c (fprintf_indent): New function.
24113 (operand::gen_transform): Add indent parameter.
24114 (expr::gen_transform, c_expr::gen_transform,
24115 capture::gen_transform): Ditto and use fprintf_indent.
24116 (dt_node::gen, dt_node::gen_kids, dt_node::gen_kids_1): Ditto.
24117 (dt_operand::gen, dt_operand::gen_predicate,
24118 dt_operand::gen_match_op, dt_operand::gen_gimple_expr,
24119 dt_operand::gen_generic_expr, dt_simplify::gen): Ditto.
24120 (decision_tree::gen_gimple): Adjust calls and indent generated
24121 code.
24122 (decision_tree::gen_generic): Ditto.
24123 (write_predicate): Ditto.
24124
24125 2015-07-08 Uros Bizjak <ubizjak@gmail.com>
24126
24127 PR target/66814
24128 * config/i386/predicates.md (nonimmediate_gr_operand): New predicate.
24129 * config/i386/i386.md (not peephole2): Use nonimmediate_gr_operand.
24130 (varous peephole2s): Use {GENERAL,SSE,MMX}_REGNO_P instead of
24131 {GENERAL,SSE,MMX}_REG_P where appropriate.
24132
24133 2015-07-09 Andrew MacLeod <amacleod@redhat.com>
24134
24135 * lto-streamer.h: Don't include target.h and alloc-pool.h.
24136 * builtins.c: Adjust includes.
24137 * gimple.c: Likewise.
24138 * ipa-icf.c: Likewise.
24139 * lto-opts.c: Likewise.
24140 * ipa-reference.c: Likewise.
24141 * lto-section-out.c: Likewise.
24142 * lto-streamer-in.c: Likewise.
24143 * lto-streamer-out.c: Likewise.
24144 * opts-global.c: Likewise.
24145 * symtab.c: Likewise.
24146 * tree-chkp.c: Likewise.
24147 * tree-ssa-live.c: Likewise.
24148 * tree-streamer-in.c: Likewise.
24149 * tree-streamer-out.c: Likewise.
24150 * config/darwin.c: Likewise.
24151 * config/i386/winnt.c: Likewise.
24152
24153 2015-07-09 Richard Biener <rguenther@suse.de>
24154
24155 * genmatch.c (struct expr): Add force_single_use flag.
24156 (expr::expr): Add copy constructor.
24157 (capture_info::walk_match): Gather force_single_use captures.
24158 (expr::gen_transform): Use possibly NULLified sequence.
24159 (dt_simplify::gen): Apply single-use restrictions by NULLifying
24160 seq if any constrained expr is not single-use.
24161 (parser::parse_expr): Refactor to allow multiple flags. Handle
24162 's' flag to force an expression have a single-use if the pattern
24163 simplifies to more than one statement.
24164 * match.pd: Convert most single_use conditionals to :s flags.
24165
24166 2015-07-09 H.J. Lu <hongjiu.lu@intel.com>
24167
24168 * config/i386/iamcu.h (ASM_OUTPUT_ALIGNED_BSS): New.
24169 (ASM_OUTPUT_MAX_SKIP_ALIGN): Likewise.
24170 (ASM_MAYBE_OUTPUT_ENCODED_ADDR_RTX): Likewise.
24171
24172 2015-07-09 Andrew MacLeod <amacleod@redhat.com>
24173
24174 * flags.h: Don't include flag-types.h or options.h.
24175 * opts-common.c: Adjust includes.
24176 * opts-global.c: Likewise.
24177 * common/config/epiphany/epiphany-common.c: Likewise.
24178
24179 2015-07-09 H.J. Lu <hongjiu.lu@intel.com>
24180
24181 PR target/66818
24182 * config/i386/i386.h (ATTRIBUTE_ALIGNED_VALUE): Defined to 32
24183 for IA MCU.
24184
24185 2015-07-09 H.J. Lu <hongjiu.lu@intel.com>
24186
24187 PR target/66817
24188 * config/i386/i386.c (ix86_return_in_memory): Return true
24189 if int_size_in_bytes returns negative for IA MCU.
24190
24191 2015-07-09 Marek Polacek <polacek@redhat.com>
24192
24193 PR tree-optimization/66718
24194 * Makefile.in (OBJS): Add gimple-laddress.o.
24195 * passes.def: Schedule pass_laddress.
24196 * timevar.def (DEFTIMEVAR): Add TV_GIMPLE_LADDRESS.
24197 * tree-pass.h (make_pass_laddress): Declare.
24198 * gimple-laddress.c: New file.
24199
24200 2015-07-09 Richard Biener <rguenther@suse.de>
24201
24202 * toplev.c (compile_file): Reset maximum_field_alignment after parsing.
24203
24204 2015-07-09 Richard Biener <rguenther@suse.de>
24205
24206 PR tree-optimization/66807
24207 * tree-chkp-opt.c (chkp_opt_fini): Free post dominator info.
24208
24209 2015-07-08 Kito Cheng <kito.cheng@gmail.com>
24210
24211 * function.c (stack_protect_epilogue): Use if rather than switch for
24212 check targetm.have_stack_protect_test.
24213
24214 2015-07-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
24215
24216 * defaults.h: Provide default for WORD_REGISTER_OPERATIONS.
24217 * config/alpha/alpha.h: Define WORD_REGISTER_OPERATIONS to 1.
24218 * config/arc/arc.h: Likewise.
24219 * config/arm/arm.h: Likewise.
24220 * config/bfin/bfin.h: Likewise.
24221 * config/epiphany/epiphany.h: Likewise.
24222 * config/frv/frv.h: Likewise.
24223 * config/ia64/ia64.h: Likewise.
24224 * config/iq2000/iq2000.h: Likewise.
24225 * config/lm32/lm32.h: Likewise.
24226 * config/m32r/m32r.h: Likewise.
24227 * config/mcore/mcore.h: Likewise.
24228 * config/mep/mep.h: Likewise.
24229 * config/microblaze/microblaze.h: Likewise.
24230 * config/mips/mips.h: Likewise.
24231 * config/mmix/mmix.h: Likewise.
24232 * config/mn10300/mn10300.h: Likewise.
24233 * config/nds32/nds32.h: Likewise.
24234 * config/nios2/nios2.h: Likewise.
24235 * config/pa/pa.h: Likewise.
24236 * config/rl78/rl78.h: Likewise.
24237 * config/sh/sh.h: Likewise.
24238 * config/sparc/sparc.h: Likewise.
24239 * config/stormy16/stormy16.h: Likewise.
24240 * config/tilegx/tilegx.h: Likewise.
24241 * config/tilepro/tilepro.h: Likewise.
24242 * config/v850/v850.h: Likewise.
24243 * config/xtensa/xtensa.h: Likewise.
24244 * doc/tm.texi: Regenerate.
24245 * doc/tm.texi.in: Adjust.
24246 * combine.c (simplify_set): Likewise.
24247 (simplify_comparison): Likewise.
24248 * expr.c (store_constructor): Likewise.
24249 * internal-fn.c (expand_arith_overflow): Likewise.
24250 * reload.c (push_reload): Likewise.
24251 (find_reloads): Likewise.
24252 (find_reloads_subreg_address): Likewise.
24253 * reload1.c (eliminate_regs_1): Likewise.
24254 * rtlanal.c (nonzero_bits1): Likewise.
24255 (num_sign_bit_copies1): Likewise.
24256 * simplify-rtx.c (simplify_truncation): Likewise.
24257
24258 2015-07-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
24259
24260 * auto-inc-dec.c (pass_inc_dec::execute): Don't check the value
24261 of AUTO_INC_DEC with the preprocessor.
24262 * combine.c (combine_instructions): Likewise.
24263 (can_combine_p): Likewise.
24264 (try_combine): Likewise.
24265 * emit-rtl.c (try_split): Likewise.
24266 * loop-invariant.c (calculate_loop_reg_pressure): Likewise.
24267 * lower-subreg.c (resolve_simple_move): Likewise.
24268 * lra.c (update_inc_notes): Likewise.
24269 * recog.c (asm_operand_ok): Likewise.
24270 (constrain_operands): Likewise.
24271 * regrename.c (scan_rtx_address): Likewise.
24272 * reload.c (update_auto_inc_notes): Likewise.
24273 (reg_inc_found_and_valid_p): Likewise.
24274 * reload1.c (reload): Likewise.
24275 (emit_input_reload_insns): Likewise.
24276 (delete_output_reload): Likewise.
24277 * sched-deps.c (init_insn_reg_pressure_info): Likewise.
24278 * valtrack.c (cleanup_auto_inc_dec): Likewise.
24279
24280 2015-07-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
24281
24282 * rtl.h: Always define AUTO_INC_DEC.
24283 * auto-inc-dec.c (pass_inc_dec::execute): Adjust.
24284 * combine.c (combine_instructions): Likewise.
24285 (can_combine_p): Likewise.
24286 (try_combine): Likewise.
24287 * emit-rtl.c (try_split): Likewise.
24288 * loop-invariant.c (calculate_loop_reg_pressure): Likewise.
24289 * lower-subreg.c (resolve_simple_move): Likewise.
24290 * lra.c (update_inc_notes): Likewise.
24291 * recog.c (asm_operand_ok): Likewise.
24292 (constrain_operands): Likewise.
24293 * regrename.c (scan_rtx_address): Likewise.
24294 * reload.c (update_auto_inc_notes): Likewise.
24295 (find_equiv_reg): Likewise.
24296 * reload1.c (reload): Likewise.
24297 (reload_as_needed): Likewise.
24298 (choose_reload_regs): Likewise.
24299 (emit_input_reload_insns): Likewise.
24300 (delete_output_reload): Likewise.
24301 * sched-deps.c (init_insn_reg_pressure_info): Likewise.
24302 * valtrack.c (cleanup_auto_inc_dec): Likewise.
24303
24304 2015-07-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
24305
24306 * combine.c (can_combine_def_p): Don't check the value of
24307 HARD_FRAME_POINTER_IS_FRAME_POINTER with the preprocessor.
24308 (combinable_i3pat): Likewise.
24309 (mark_used_regs_combine): Likewise.
24310 * regrename.c (rename_chains): Likewise.
24311 * reload.c (find_reloads_address): Likewise.
24312 * sel-sched.c (mark_unavailable_hard_regs): Likewise.
24313
24314 2015-07-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
24315
24316 * combine.c (update_rsp_from_reg_equal): Don't check if
24317 SHORT_IMMEDIATES_SIGN_EXTEND is defined.
24318 (reg_nonzero_bits_for_combine): Likewise.
24319 * config/alpha/alpha.h: Define SHORT_IMMEDIATES_SIGN_EXTEND to
24320 1.
24321 * config/frv/frv.h: Likewise.
24322 * config/lm32/lm32.h: Likewise.
24323 * config/mep/mep.h: Likewise.
24324 * config/mips/mips.h: Likewise.
24325 * config/rs6000/rs6000.h: Likewise.
24326 * config/sh/sh.h: Likewise.
24327 * config/tilegx/tilegx.h (enum reg_class): Likewise.
24328 * config/tilepro/tilepro.h: Likewise.
24329 * defaults.h: Add default for SHORT_IMMEDIATES_SIGN_EXTEND.
24330 * doc/tm.texi: Regenerate.
24331 * doc/tm.texi.in: Adjust.
24332 * rtlanal.c (nonzero_bits1): Likewise.
24333
24334 2015-07-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
24335
24336 * combine.c (do_SUBST_MODE): Don't check the value of HAVE_cc0
24337 with the preprocessor.
24338 (combine_instructions): Likewise.
24339 (try_combine): Likewise.
24340 (subst): Likewise.
24341 (distribute_notes): Likewise.
24342
24343 2015-07-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
24344
24345 * combine.c (try_combine): Don't check if LOAD_EXTEND_OP is
24346 defined.
24347 (simplify_set): Likewise.
24348 * cse.c (cse_insn): Likewise.
24349 * fold-const.c (fold_single_bit_test): Likewise.
24350 (fold_unary_loc): Likewise.
24351 * postreload.c (reload_cse_simplify_set): Likewise.
24352 (reload_cse_simplify_operands): Likewise.
24353
24354 2015-07-08 Jiong Wang <jiong.wang@arm.com>
24355
24356 * config/aarch64/aarch64.c (aarch64_unspec_may_trap_p): New function.
24357 (TARGET_UNSPEC_MAY_TRAP_P): Define as aarch64_unspec_may_trap_p.
24358
24359 2015-07-08 H.J. Lu <hongjiu.lu@intel.com>
24360
24361 PR target/66746
24362 * config/i386/x86intrin.h: Include <adxintrin.h> even if
24363 __iamcu__ is defined.
24364
24365 2015-07-08 Uros Bizjak <ubizjak@gmail.com>
24366
24367 * config/i386/predicates.md (general_reg_operand): Use GENERAL_REGNO_P.
24368
24369 2015-07-08 Iain Sandoe <iain@codesourcery.com>
24370
24371 PR target/66523
24372 * config/darwin.c (darwin_mark_decl_preserved): Exclude 'L' label
24373 names from preservation.
24374
24375 2015-07-08 H.J. Lu <hongjiu.lu@intel.com>
24376
24377 PR target/66806
24378 * config/i386/i386.c (type_natural_mode): Don't warn vector ABI
24379 change for IAMCU.
24380 (function_arg_advance_32): Don't pass vectors in registers for
24381 IAMCU.
24382 (function_arg_32): Likewise.
24383 (ix86_return_in_memory): Don't return vectors in registers for
24384 IAMCU.
24385
24386 2015-07-08 Vladimir Makarov <vmakarov@redhat.com>
24387
24388 PR middle-end/66334
24389 * ira-lives.c (process_bb_node_lives): Make conflicts with PIC
24390 hard regno live at the start of BB with incoming abnormal edges.
24391 * lra-lives.c (process_bb_lives): Ditto.
24392
24393 2015-07-08 Thomas Schwinge <thomas@codesourcery.com>
24394
24395 PR libgomp/65099
24396 * config/nvptx/mkoffload.c (main): Create an offload image only in
24397 64-bit configurations.
24398
24399 2015-07-08 Martin Liska <mliska@suse.cz>
24400
24401 PR bootstrap/66744
24402 * tree-sra.c (create_access_1): Call ctor without brackets.
24403 (create_artificial_child_access): Likewise.
24404
24405 2015-07-08 Richard Biener <rguenther@suse.de>
24406
24407 PR tree-optimization/66793
24408 * gimple-ssa-isolate-paths.c (insert_trap_and_remove_trailing_statemen):
24409 Properly split the block after stmts ending it.
24410
24411 2015-07-08 Richard Biener <rguenther@suse.de>
24412
24413 PR tree-optimization/66794
24414 * passes.c (execute_function_todo): Assert that post-dominators
24415 are not computed.
24416 * gimple-ssa-isolate-paths.c (gimple_ssa_isolate_erroneous_paths):
24417 Free post-dominators.
24418
24419 2015-07-08 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
24420
24421 * config/s390/s390.c (s390_init_frame_layout): Replace assertion
24422 with early exit.
24423
24424 2015-07-08 Uros Bizjak <ubizjak@gmail.com>
24425
24426 * config/i386/i386.md (*jcc_bt<mode>): Only allow const_int values
24427 more than or equal 8 and less than 32 when optimizing for size.
24428
24429 2015-07-08 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
24430
24431 * config/arm/arm.c (arm_new_rtx_costs): Initialise cost to
24432 COSTS_N_INSNS (1) and increment it appropriately throughout the
24433 function.
24434
24435 2015-07-08 Richard Biener <rguenther@suse.de>
24436
24437 * fold-const.c (fold_widened_comparison): Fix inverted comparison.
24438
24439 2015-07-08 Alan Modra <amodra@gmail.com>
24440
24441 * target.def (rtx_costs): Remove "code" param, add "mode".
24442 * rtl.h (rtx_cost, get_full_rtx_cost): Update prototype.
24443 (set_src_cost, get_full_set_src_cost): Likewise. Move later in file.
24444 (set_rtx_cost, get_full_set_rtx_cost): Move later in file.
24445 * rtlanal.c (rtx_cost): Add "mode" parameter. Update targetm.rtx_costs
24446 call. Track mode when given in rtx.
24447 (get_full_rtx_cost): Add "mode" parameter. Update rtx_cost calls.
24448 (default_address_cost): Pass Pmode to rtx_cost.
24449 (insn_rtx_cost): Pass dest mode of set to set_src_cost.
24450 * cprop.c (try_replace_reg): Ensure set_rtx_cost is not called
24451 with NULL set.
24452 * cse.c (COST, COST_IN): Add MODE param. Update all uses.
24453 (notreg_cost): Add mode param. Use it.
24454 * gcse.c (want_to_gcse_p): Delete forward declaration. Add
24455 mode param and pass to set_src_cost. Update all calls.
24456 (hash_scan_set): Formatting.
24457 * hooks.c (hook_bool_rtx_int_int_int_intp_bool_false): Delete.
24458 (hook_bool_rtx_mode_int_int_intp_bool_false): New function.
24459 * hooks.h: Ditto.
24460 * expmed.c (init_expmed_one_conv, init_expmed_one_mode,
24461 init_expmed, expand_mult, mult_by_coeff_cost, expand_smod_pow2,
24462 emit_store_flag): Update set_src_cost and rtx_cost calls.
24463 * auto-inc-dec.c (attempt_change): Likewise.
24464 * calls.c (precompute_register_parameters): Likewise.
24465 * combine.c (expand_compound_operation, make_extraction,
24466 force_to_mode, distribute_and_simplify_rtx): Likewise.
24467 * dojump.c (prefer_and_bit_test): Likewise.
24468 * dse.c (find_shift_sequence): Likewise.
24469 * expr.c (compress_float_constant): Likewise.
24470 * fwprop.c (should_replace_address, try_fwprop_subst): Likewise.
24471 * ifcvt.c (noce_try_sign_mask): Likewise.
24472 * loop-doloop.c (doloop_optimize): Likewise.
24473 * loop-invariant.c (create_new_invariant): Likewise.
24474 * lower-subreg.c (shift_cost, compute_costs): Likewise.
24475 * optabs.c (avoid_expensive_constant, prepare_cmp_insn,
24476 lshift_cheap_p): Likewise.
24477 * postreload.c (reload_cse_simplify_set, reload_cse_simplify_operands,
24478 try_replace_in_use, reload_cse_move2add): Likewise.
24479 * reload1.c (calculate_elim_costs_all_insns, note_reg_elim_costly):
24480 Likewise.
24481 * simplify-rtx.c (simplify_binary_operation_1): Likewise.
24482 * tree-ssa-loop-ivopts.c (computation_cost): Likewise.
24483 * tree-ssa-reassoc.c (optimize_range_tests_to_bit_test): Likewise.
24484 * tree-switch-conversion.c (emit_case_bit_tests): Likewise.
24485 * config/aarch64/aarch64.c (aarch64_rtx_costs): Delete "code" param,
24486 add "mode" param. Use "mode: in place of GET_MODE (x). Pass mode
24487 to rtx_cost calls.
24488 * config/alpha/alpha.c (alpha_rtx_costs): Likewise.
24489 * config/arc/arc.c (arc_rtx_costs): Likewise.
24490 * config/arm/arm.c (arm_rtx_costs): Likewise.
24491 * config/avr/avr.c (avr_rtx_costs, avr_rtx_costs_1): Likewise.
24492 * config/bfin/bfin.c (bfin_rtx_costs): Likewise.
24493 * config/c6x/c6x.c (c6x_rtx_costs): Likewise.
24494 * config/cris/cris.c (cris_rtx_costs): Likewise.
24495 * config/epiphany/epiphany.c (epiphany_rtx_costs): Likewise.
24496 * config/frv/frv.c (frv_rtx_costs): Likewise.
24497 * config/h8300/h8300.c (h8300_rtx_costs): Likewise.
24498 * config/i386/i386.c (ix86_rtx_costs): Likewise.
24499 * config/ia64/ia64.c (ia64_rtx_costs): Likewise.
24500 * config/iq2000/iq2000.c (iq2000_rtx_costs): Likewise.
24501 * config/lm32/lm32.c (lm32_rtx_costs): Likewise.
24502 * config/m32c/m32c.c (m32c_rtx_costs): Likewise.
24503 * config/m32r/m32r.c (m32r_rtx_costs): Likewise.
24504 * config/m68k/m68k.c (m68k_rtx_costs): Likewise.
24505 * config/mcore/mcore.c (mcore_rtx_costs): Likewise.
24506 * config/mep/mep.c (mep_rtx_cost): Likewise.
24507 * config/microblaze/microblaze.c (microblaze_rtx_costs): Likewise.
24508 * config/mips/mips.c (mips_rtx_costs): Likewise.
24509 * config/mmix/mmix.c (mmix_rtx_costs): Likewise.
24510 * config/mn10300/mn10300.c (mn10300_rtx_costs): Likewise.
24511 * config/msp430/msp430.c (msp430_rtx_costs): Likewise.
24512 * config/nds32/nds32-cost.c (nds32_rtx_costs_impl): Likewise.
24513 * config/nds32/nds32-protos.h (nds32_rtx_costs_impl): Likewise.
24514 * config/nds32/nds32.c (nds32_rtx_costs): Likewise.
24515 * config/nios2/nios2.c (nios2_rtx_costs): Likewise.
24516 * config/pa/pa.c (hppa_rtx_costs): Likewise.
24517 * config/pdp11/pdp11.c (pdp11_rtx_costs): Likewise.
24518 * config/rl78/rl78.c (rl78_rtx_costs): Likewise.
24519 * config/rs6000/rs6000.c (rs6000_rtx_costs): Likewise.
24520 * config/s390/s390.c (s390_rtx_costs): Likewise.
24521 * config/sh/sh.c (sh_rtx_costs): Likewise.
24522 * config/sparc/sparc.c (sparc_rtx_costs): Likewise.
24523 * config/spu/spu.c (spu_rtx_costs): Likewise.
24524 * config/stormy16/stormy16.c (xstormy16_rtx_costs): Likewise.
24525 * config/tilegx/tilegx.c (tilegx_rtx_costs): Likewise.
24526 * config/tilepro/tilepro.c (tilepro_rtx_costs): Likewise.
24527 * config/v850/v850.c (v850_rtx_costs): Likewise.
24528 * config/vax/vax.c (vax_rtx_costs): Likewise.
24529 * config/visium/visium.c (visium_rtx_costs): Likewise.
24530 * config/xtensa/xtensa.c (xtensa_rtx_costs): Likewise.
24531 * config/aarch64/aarch64.c (aarch64_rtx_mult_cost): Change type of
24532 "code" param, and pass as outer_code to first rtx_cost call. Pass
24533 mode to rtx_cost calls.
24534 (aarch64_address_cost, aarch64_if_then_else_costs): Update rtx_cost
24535 calls.
24536 (aarch64_rtx_costs_wrapper): Update.
24537 * config/arm/arm.c (arm_rtx_costs_1, arm_size_rtx_costs,
24538 arm_unspec_cost, arm_new_rtx_costs, arm_slowmul_rtx_costs): Update
24539 rtx_cost calls.
24540 * config/avr/avr.c (avr_final_prescan_insn): Update set_src_cost
24541 and rtx_cost calls.
24542 (avr_operand_rtx_cost): Similarly.
24543 (avr_rtx_costs_1): Correct mode passed to avr_operand_rtx_cost
24544 for subexpressions of ZERO_EXTEND, SIGN_EXTEND and COMPARE.
24545 * config/mips/mips.c (mips_stack_address_p): Comment typo.
24546 (mips_binary_cost): Update rtx_cost and set_src_cost calls.
24547 (mips_rtx_costs): Use GET_MODE (x) to detect const_int.
24548 * config/mn10300/mn10300.c (mn10300_address_cost): Pass Pmode to
24549 rtx_cost.
24550 (mn10300_rtx_costs): Correct mode passed to mn10300_address_cost.
24551 * config/rs6000/rs6000.c (rs6000_debug_rtx_costs): Update.
24552 * config/sh/sh.c (and_xor_ior_costs): Update rtx_cost call.
24553 * doc/tm.texi: Regenerate.
24554
24555 2015-07-07 Andrew MacLeod <amacleod@redhat.com>
24556
24557 * tree-core.h: Include symtab.h.
24558 * rtl.h: Include hard-reg-set.h but not flags.h.
24559 (HARD_CONST): Remove condition compilation involving HARD_CONST since
24560 hard-reg-set.h is always included.
24561 * regs.h: Don't include hard-reg-set.h or rtl.h.
24562 * cfg.h: Include dominance.h.
24563 * gimple.h: Include tree-ssa-alias.h and gimple-expr.h.
24564 * backend.h: New. Aggregate commonly used backend header files.
24565 * gimple-ssa.h: Don't include tree-hasher.h.
24566 * ssa.h: New. Aggregate commonly used SSA header files.
24567 * regset.h: Remove bitmap.h and hard-reg-set.h #includes.
24568 * sel-sched-ir.h: Flatten includes.
24569 * lra-int.h: Flatten completely.
24570 * sel-sched-dump.h: Flatten includes.
24571 * ira-int.h: Flatten includes.
24572 * gimple-streamer.h: Remove all includes.
24573 * cfgloop.h: Remove all #includes except cfgloopmanip.h.
24574 * resource.h: Flatten hard-reg-set.h and df.h.
24575 * sched-int.h: Flatten insn-arrt.h and df.h.
24576 * valtrack.h: flatten bitmap.h, df.h, and rtl.h
24577 * df.h: Flatten includes, leaving regset.h, alloc-pool.h and timevar.h.
24578 * genattrtab.c (write_header): Adjust generated includes.
24579 * genautomata.c (main): Likewise.
24580 * genconditions.c (write-header): Likewise.
24581 * genemit.c (main): Likewise.
24582 * gengtype.c (open_base_files): Likewise.
24583 * genopinit.c (main): Likewise.
24584 * genoutput.c (output_prologue): Likewise.
24585 * genpeep.c (main): Likewise.
24586 * genpreds.c (write_insn_preds_c): Likewise.
24587 * genrecog.c (write_header): Likewise.
24588 * alias.c: Adjust includes.
24589 * asan.c: Likewise.
24590 * attribs.c: Likewise.
24591 * auto-inc-dec.c: Likewise.
24592 * auto-profile.c: Likewise.
24593 * bb-reorder.c: Likewise.
24594 * bt-load.c: Likewise.
24595 * builtins.c: Likewise.
24596 * caller-save.c: Likewise.
24597 * calls.c: Likewise.
24598 * ccmp.c: Likewise.
24599 * cfg.c: Likewise.
24600 * cfganal.c: Likewise.
24601 * cfgbuild.c: Likewise.
24602 * cfgcleanup.c: Likewise.
24603 * cfgexpand.c: Likewise.
24604 * cfghooks.c: Likewise.
24605 * cfgloop.c: Likewise.
24606 * cfgloopanal.c: Likewise.
24607 * cfgloopmanip.c: Likewise.
24608 * cfgrtl.c: Likewise.
24609 * cgraph.c: Likewise.
24610 * cgraphbuild.c: Likewise.
24611 * cgraphclones.c: Likewise.
24612 * cgraphunit.c: Likewise.
24613 * cilk-common.c: Likewise.
24614 * combine-stack-adj.c: Likewise.
24615 * combine.c: Likewise.
24616 * compare-elim.c: Likewise.
24617 * convert.c: Likewise.
24618 * coverage.c: Likewise.
24619 * cppbuiltin.c: Likewise.
24620 * cprop.c: Likewise.
24621 * cse.c: Likewise.
24622 * cselib.c: Likewise.
24623 * data-streamer-in.c: Likewise.
24624 * data-streamer-out.c: Likewise.
24625 * data-streamer.c: Likewise.
24626 * dbxout.c: Likewise.
24627 * dce.c: Likewise.
24628 * ddg.c: Likewise.
24629 * debug.c: Likewise.
24630 * df-core.c: Likewise.
24631 * df-problems.c: Likewise.
24632 * df-scan.c: Likewise.
24633 * dfp.c: Likewise.
24634 * dojump.c: Likewise.
24635 * dominance.c: Likewise.
24636 * domwalk.c: Likewise.
24637 * double-int.c: Likewise.
24638 * dse.c: Likewise.
24639 * dumpfile.c: Likewise.
24640 * dwarf2asm.c: Likewise.
24641 * dwarf2cfi.c: Likewise.
24642 * dwarf2out.c: Likewise.
24643 * emit-rtl.c: Likewise.
24644 * et-forest.c: Likewise.
24645 * except.c: Likewise.
24646 * explow.c: Likewise.
24647 * expmed.c: Likewise.
24648 * expr.c: Likewise.
24649 * final.c: Likewise.
24650 * fixed-value.c: Likewise.
24651 * fold-const.c: Likewise.
24652 * function.c: Likewise.
24653 * fwprop.c: Likewise.
24654 * gcc-plugin.h: Likewise.
24655 * gcse-common.c: Likewise.
24656 * gcse.c: Likewise.
24657 * generic-match-head.c: Likewise.
24658 * ggc-page.c: Likewise.
24659 * gimple-builder.c: Likewise.
24660 * gimple-expr.c: Likewise.
24661 * gimple-fold.c: Likewise.
24662 * gimple-iterator.c: Likewise.
24663 * gimple-low.c: Likewise.
24664 * gimple-match-head.c: Likewise.
24665 * gimple-pretty-print.c: Likewise.
24666 * gimple-ssa-isolate-paths.c: Likewise.
24667 * gimple-ssa-strength-reduction.c: Likewise.
24668 * gimple-streamer-in.c: Likewise.
24669 * gimple-streamer-out.c: Likewise.
24670 * gimple-walk.c: Likewise.
24671 * gimple.c: Likewise.
24672 * gimplify-me.c: Likewise.
24673 * gimplify.c: Likewise.
24674 * godump.c: Likewise.
24675 * graph.c: Likewise.
24676 * graphite-blocking.c: Likewise.
24677 * graphite-dependences.c: Likewise.
24678 * graphite-interchange.c: Likewise.
24679 * graphite-isl-ast-to-gimple.c: Likewise.
24680 * graphite-optimize-isl.c: Likewise.
24681 * graphite-poly.c: Likewise.
24682 * graphite-scop-detection.c: Likewise.
24683 * graphite-sese-to-poly.c: Likewise.
24684 * graphite.c: Likewise.
24685 * haifa-sched.c: Likewise.
24686 * hw-doloop.c: Likewise.
24687 * ifcvt.c: Likewise.
24688 * init-regs.c: Likewise.
24689 * internal-fn.c: Likewise.
24690 * ipa-chkp.c: Likewise.
24691 * ipa-comdats.c: Likewise.
24692 * ipa-cp.c: Likewise.
24693 * ipa-devirt.c: Likewise.
24694 * ipa-icf-gimple.c: Likewise.
24695 * ipa-icf.c: Likewise.
24696 * ipa-inline-analysis.c: Likewise.
24697 * ipa-inline-transform.c: Likewise.
24698 * ipa-inline.c: Likewise.
24699 * ipa-polymorphic-call.c: Likewise.
24700 * ipa-profile.c: Likewise.
24701 * ipa-prop.c: Likewise.
24702 * ipa-pure-const.c: Likewise.
24703 * ipa-ref.c: Likewise.
24704 * ipa-reference.c: Likewise.
24705 * ipa-split.c: Likewise.
24706 * ipa-utils.c: Likewise.
24707 * ipa-visibility.c: Likewise.
24708 * ipa.c: Likewise.
24709 * ira-build.c: Likewise.
24710 * ira-color.c: Likewise.
24711 * ira-conflicts.c: Likewise.
24712 * ira-costs.c: Likewise.
24713 * ira-emit.c: Likewise.
24714 * ira-lives.c: Likewise.
24715 * ira.c: Likewise.
24716 * jump.c: Likewise.
24717 * langhooks.c: Likewise.
24718 * lcm.c: Likewise.
24719 * loop-doloop.c: Likewise.
24720 * loop-init.c: Likewise.
24721 * loop-invariant.c: Likewise.
24722 * loop-iv.c: Likewise.
24723 * loop-unroll.c: Likewise.
24724 * lower-subreg.c: Likewise.
24725 * lra-assigns.c: Likewise.
24726 * lra-coalesce.c: Likewise.
24727 * lra-constraints.c: Likewise.
24728 * lra-eliminations.c: Likewise.
24729 * lra-lives.c: Likewise.
24730 * lra-remat.c: Likewise.
24731 * lra-spills.c: Likewise.
24732 * lra.c: Likewise.
24733 * lto-cgraph.c: Likewise.
24734 * lto-compress.c: Likewise.
24735 * lto-opts.c: Likewise.
24736 * lto-section-in.c: Likewise.
24737 * lto-section-out.c: Likewise.
24738 * lto-streamer-in.c: Likewise.
24739 * lto-streamer-out.c: Likewise.
24740 * lto-streamer.c: Likewise.
24741 * mcf.c: Likewise.
24742 * mode-switching.c: Likewise.
24743 * modulo-sched.c: Likewise.
24744 * omega.c: Likewise.
24745 * omp-low.c: Likewise.
24746 * optabs.c: Likewise.
24747 * opts-global.c: Likewise.
24748 * passes.c: Likewise.
24749 * plugin.c: Likewise.
24750 * postreload-gcse.c: Likewise.
24751 * postreload.c: Likewise.
24752 * predict.c: Likewise.
24753 * print-rtl.c: Likewise.
24754 * print-tree.c: Likewise.
24755 * profile.c: Likewise.
24756 * real.c: Likewise.
24757 * realmpfr.c: Likewise.
24758 * recog.c: Likewise.
24759 * ree.c: Likewise.
24760 * reg-stack.c: Likewise.
24761 * regcprop.c: Likewise.
24762 * reginfo.c: Likewise.
24763 * regrename.c: Likewise.
24764 * regstat.c: Likewise.
24765 * reload.c: Likewise.
24766 * reload1.c: Likewise.
24767 * reorg.c: Likewise.
24768 * resource.c: Likewise.
24769 * rtl-chkp.c: Likewise.
24770 * rtlanal.c: Likewise.
24771 * rtlhooks.c: Likewise.
24772 * sanopt.c: Likewise.
24773 * sched-deps.c: Likewise.
24774 * sched-ebb.c: Likewise.
24775 * sched-rgn.c: Likewise.
24776 * sched-vis.c: Likewise.
24777 * sdbout.c: Likewise.
24778 * sel-sched-dump.c: Likewise.
24779 * sel-sched-ir.c: Likewise.
24780 * sel-sched.c: Likewise.
24781 * sese.c: Likewise.
24782 * shrink-wrap.c: Likewise.
24783 * simplify-rtx.c: Likewise.
24784 * stack-ptr-mod.c: Likewise.
24785 * stmt.c: Likewise.
24786 * stor-layout.c: Likewise.
24787 * store-motion.c: Likewise.
24788 * stringpool.c: Likewise.
24789 * symtab.c: Likewise.
24790 * target-globals.c: Likewise.
24791 * targhooks.c: Likewise.
24792 * toplev.c: Likewise.
24793 * tracer.c: Likewise.
24794 * trans-mem.c: Likewise.
24795 * tree-affine.c: Likewise.
24796 * tree-browser.c: Likewise.
24797 * tree-call-cdce.c: Likewise.
24798 * tree-cfg.c: Likewise.
24799 * tree-cfgcleanup.c: Likewise.
24800 * tree-chkp-opt.c: Likewise.
24801 * tree-chkp.c: Likewise.
24802 * tree-chrec.c: Likewise.
24803 * tree-complex.c: Likewise.
24804 * tree-data-ref.c: Likewise.
24805 * tree-dfa.c: Likewise.
24806 * tree-diagnostic.c: Likewise.
24807 * tree-dump.c: Likewise.
24808 * tree-eh.c: Likewise.
24809 * tree-emutls.c: Likewise.
24810 * tree-if-conv.c: Likewise.
24811 * tree-inline.c: Likewise.
24812 * tree-into-ssa.c: Likewise.
24813 * tree-iterator.c: Likewise.
24814 * tree-loop-distribution.c: Likewise.
24815 * tree-nested.c: Likewise.
24816 * tree-nrv.c: Likewise.
24817 * tree-object-size.c: Likewise.
24818 * tree-outof-ssa.c: Likewise.
24819 * tree-parloops.c: Likewise.
24820 * tree-phinodes.c: Likewise.
24821 * tree-predcom.c: Likewise.
24822 * tree-pretty-print.c: Likewise.
24823 * tree-profile.c: Likewise.
24824 * tree-scalar-evolution.c: Likewise.
24825 * tree-sra.c: Likewise.
24826 * tree-ssa-address.c: Likewise.
24827 * tree-ssa-alias.c: Likewise.
24828 * tree-ssa-ccp.c: Likewise.
24829 * tree-ssa-coalesce.c: Likewise.
24830 * tree-ssa-copy.c: Likewise.
24831 * tree-ssa-copyrename.c: Likewise.
24832 * tree-ssa-dce.c: Likewise.
24833 * tree-ssa-dom.c: Likewise.
24834 * tree-ssa-dse.c: Likewise.
24835 * tree-ssa-forwprop.c: Likewise.
24836 * tree-ssa-ifcombine.c: Likewise.
24837 * tree-ssa-live.c: Likewise.
24838 * tree-ssa-loop-ch.c: Likewise.
24839 * tree-ssa-loop-im.c: Likewise.
24840 * tree-ssa-loop-ivcanon.c: Likewise.
24841 * tree-ssa-loop-ivopts.c: Likewise.
24842 * tree-ssa-loop-manip.c: Likewise.
24843 * tree-ssa-loop-niter.c: Likewise.
24844 * tree-ssa-loop-prefetch.c: Likewise.
24845 * tree-ssa-loop-unswitch.c: Likewise.
24846 * tree-ssa-loop.c: Likewise.
24847 * tree-ssa-math-opts.c: Likewise.
24848 * tree-ssa-operands.c: Likewise.
24849 * tree-ssa-phiopt.c: Likewise.
24850 * tree-ssa-phiprop.c: Likewise.
24851 * tree-ssa-pre.c: Likewise.
24852 * tree-ssa-propagate.c: Likewise.
24853 * tree-ssa-reassoc.c: Likewise.
24854 * tree-ssa-sccvn.c: Likewise.
24855 * tree-ssa-scopedtables.c: Likewise.
24856 * tree-ssa-sink.c: Likewise.
24857 * tree-ssa-strlen.c: Likewise.
24858 * tree-ssa-structalias.c: Likewise.
24859 * tree-ssa-tail-merge.c: Likewise.
24860 * tree-ssa-ter.c: Likewise.
24861 * tree-ssa-threadedge.c: Likewise.
24862 * tree-ssa-threadupdate.c: Likewise.
24863 * tree-ssa-uncprop.c: Likewise.
24864 * tree-ssa-uninit.c: Likewise.
24865 * tree-ssa.c: Likewise.
24866 * tree-ssanames.c: Likewise.
24867 * tree-stdarg.c: Likewise.
24868 * tree-streamer-in.c: Likewise.
24869 * tree-streamer-out.c: Likewise.
24870 * tree-streamer.c: Likewise.
24871 * tree-switch-conversion.c: Likewise.
24872 * tree-tailcall.c: Likewise.
24873 * tree-vect-data-refs.c: Likewise.
24874 * tree-vect-generic.c: Likewise.
24875 * tree-vect-loop-manip.c: Likewise.
24876 * tree-vect-loop.c: Likewise.
24877 * tree-vect-patterns.c: Likewise.
24878 * tree-vect-slp.c: Likewise.
24879 * tree-vect-stmts.c: Likewise.
24880 * tree-vectorizer.c: Likewise.
24881 * tree-vrp.c: Likewise.
24882 * tree.c: Likewise.
24883 * tsan.c: Likewise.
24884 * ubsan.c: Likewise.
24885 * valtrack.c: Likewise.
24886 * value-prof.c: Likewise.
24887 * var-tracking.c: Likewise.
24888 * varasm.c: Likewise.
24889 * varpool.c: Likewise.
24890 * vmsdbgout.c: Likewise.
24891 * vtable-verify.c: Likewise.
24892 * web.c: Likewise.
24893 * wide-int.cc: Likewise.
24894 * xcoffout.c: Likewise.
24895 * config/aarch64/aarch64-builtins.c: Likewise.
24896 * config/aarch64/aarch64.c: Likewise.
24897 * config/aarch64/cortex-a57-fma-steering.c: Likewise.
24898 * config/alpha/alpha.c: Likewise.
24899 * config/arc/arc.c: Likewise.
24900 * config/arm/aarch-common.c: Likewise.
24901 * config/arm/arm-builtins.c: Likewise.
24902 * config/arm/arm-c.c: Likewise.
24903 * config/arm/arm.c: Likewise.
24904 * config/avr/avr-c.c: Likewise.
24905 * config/avr/avr-log.c: Likewise.
24906 * config/avr/avr.c: Likewise.
24907 * config/bfin/bfin.c: Likewise.
24908 * config/c6x/c6x.c: Likewise.
24909 * config/cr16/cr16.c: Likewise.
24910 * config/cris/cris.c: Likewise.
24911 * config/darwin-c.c: Likewise.
24912 * config/darwin.c: Likewise.
24913 * config/epiphany/epiphany.c: Likewise.
24914 * config/epiphany/mode-switch-use.c: Likewise.
24915 * config/epiphany/resolve-sw-modes.c: Likewise.
24916 * config/fr30/fr30.c: Likewise.
24917 * config/frv/frv.c: Likewise.
24918 * config/ft32/ft32.c: Likewise.
24919 * config/h8300/h8300.c: Likewise.
24920 * config/i386/i386-c.c: Likewise.
24921 * config/i386/i386.c: Likewise.
24922 * config/i386/msformat-c.c: Likewise.
24923 * config/i386/winnt-cxx.c: Likewise.
24924 * config/i386/winnt-stubs.c: Likewise.
24925 * config/i386/winnt.c: Likewise.
24926 * config/ia64/ia64-c.c: Likewise.
24927 * config/ia64/ia64.c: Likewise.
24928 * config/iq2000/iq2000.c: Likewise.
24929 * config/lm32/lm32.c: Likewise.
24930 * config/m32c/m32c-pragma.c: Likewise.
24931 * config/m32c/m32c.c: Likewise.
24932 * config/m32r/m32r.c: Likewise.
24933 * config/m68k/m68k.c: Likewise.
24934 * config/mcore/mcore.c: Likewise.
24935 * config/mep/mep-pragma.c: Likewise.
24936 * config/mep/mep.c: Likewise.
24937 * config/microblaze/microblaze-c.c: Likewise.
24938 * config/microblaze/microblaze.c: Likewise.
24939 * config/mips/mips.c: Likewise.
24940 * config/mmix/mmix.c: Likewise.
24941 * config/mn10300/mn10300.c: Likewise.
24942 * config/moxie/moxie.c: Likewise.
24943 * config/msp430/msp430-c.c: Likewise.
24944 * config/msp430/msp430.c: Likewise.
24945 * config/nds32/nds32-cost.c: Likewise.
24946 * config/nds32/nds32-fp-as-gp.c: Likewise.
24947 * config/nds32/nds32-intrinsic.c: Likewise.
24948 * config/nds32/nds32-isr.c: Likewise.
24949 * config/nds32/nds32-md-auxiliary.c: Likewise.
24950 * config/nds32/nds32-memory-manipulation.c: Likewise.
24951 * config/nds32/nds32-pipelines-auxiliary.c: Likewise.
24952 * config/nds32/nds32-predicates.c: Likewise.
24953 * config/nds32/nds32.c: Likewise.
24954 * config/nios2/nios2.c: Likewise.
24955 * config/nvptx/nvptx.c: Likewise.
24956 * config/pa/pa.c: Likewise.
24957 * config/pdp11/pdp11.c: Likewise.
24958 * config/rl78/rl78-c.c: Likewise.
24959 * config/rl78/rl78.c: Likewise.
24960 * config/rs6000/rs6000-c.c: Likewise.
24961 * config/rs6000/rs6000.c: Likewise.
24962 * config/rx/rx.c: Likewise.
24963 * config/s390/s390-c.c: Likewise.
24964 * config/s390/s390.c: Likewise.
24965 * config/sh/sh-c.c: Likewise.
24966 * config/sh/sh-mem.cc: Likewise.
24967 * config/sh/sh.c: Likewise.
24968 * config/sh/sh_optimize_sett_clrt.cc: Likewise.
24969 * config/sh/sh_treg_combine.cc: Likewise.
24970 * config/sol2-c.c: Likewise.
24971 * config/sol2-cxx.c: Likewise.
24972 * config/sol2-stubs.c: Likewise.
24973 * config/sol2.c: Likewise.
24974 * config/sparc/sparc-c.c: Likewise.
24975 * config/sparc/sparc.c: Likewise.
24976 * config/spu/spu-c.c: Likewise.
24977 * config/spu/spu.c: Likewise.
24978 * config/stormy16/stormy16.c: Likewise.
24979 * config/tilegx/mul-tables.c: Likewise.
24980 * config/tilegx/tilegx-c.c: Likewise.
24981 * config/tilegx/tilegx.c: Likewise.
24982 * config/tilepro/mul-tables.c: Likewise.
24983 * config/tilepro/tilepro-c.c: Likewise.
24984 * config/tilepro/tilepro.c: Likewise.
24985 * config/v850/v850-c.c: Likewise.
24986 * config/v850/v850.c: Likewise.
24987 * config/vax/vax.c: Likewise.
24988 * config/visium/visium.c: Likewise.
24989 * config/vms/vms-c.c: Likewise.
24990 * config/vms/vms.c: Likewise.
24991 * config/vxworks.c: Likewise.
24992 * config/xtensa/xtensa.c: Likewise.
24993
24994 2015-07-07 Uros Bizjak <ubizjak@gmail.com>
24995
24996 * config/i386/i386.md (*jcc_bt<mode>): Only split before reload.
24997 Remove operand constraints. Change operand 2 predicate to
24998 nonmemory operand. Limit const_int values to mode bitsize. Only
24999 allow const_int values less than 32 when optimizing for size.
25000 (*jcc_bt<mode>_1, *jcc_bt<mode>_mask): Only split before reload.
25001 Remove operand constraints.
25002 (*bt<mode>): Use SImode for const_int values less than 32.
25003 (regmode): Remove mode attribute.
25004
25005 2015-07-07 Anatoly Sokolov <aesok@post.ru>
25006
25007 * config/moxie/moxie.h (GO_IF_LEGITIMATE_ADDRESS): Remove macros.
25008 * config/moxie/moxie.c (moxie_reg_ok_for_base_p,
25009 moxie_legitimate_address_p): New functions.
25010 (TARGET_ADDR_SPACE_LEGITIMATE_ADDRESS_P): Define.
25011
25012 2015-07-07 Tom de Vries <tom@codesourcery.com>
25013
25014 PR tree-optimization/66642
25015 * tree-parloops.c (transform_to_exit_first_loop_alt): Update function
25016 header comment. Rename split_edge variable to edge_at_split. Split
25017 exit edge to create new loop exit bb. Insert loop exit phis in new
25018 loop exit bb.
25019
25020 2015-07-07 Tom de Vries <tom@codesourcery.com>
25021
25022 * tree-cfg.c (get_virtual_phi): New function.
25023 * tree-cfg.h (get_virtual_phi): Declare.
25024 * tree-ssa-loop-manip.c (replace_uses_in_dominated_bbs)
25025 (rewrite_virtuals_into_loop_closed_ssa): New function.
25026 * tree-ssa-loop-manip.h (rewrite_virtuals_into_loop_closed_ssa):
25027 Declare.
25028 * tree-parloops.c (replace_uses_in_bbs_by): Remove.
25029 (transform_to_exit_first_loop_alt): Use
25030 rewrite_virtuals_into_loop_closed_ssa.
25031
25032 2015-07-07 Richard Biener <rguenther@suse.de>
25033
25034 * fold-const.c (fold_binary_loc): Move
25035 (X & C2) << C1 -> (X << C1) & (C2 << C1) simplification ...
25036 * match.pd: ... here.
25037 Add (X * C1) % C2 -> 0 simplification pattern derived from
25038 extract_muldiv_1.
25039
25040 2015-07-07 Kaz Kojima <kkojima@gcc.gnu.org>
25041
25042 PR target/66780
25043 * config/sh/sh.md (symGOT_load): Revert a part of 2015-03-03
25044 change for target/65249.
25045
25046 2015-07-07 Paulo Matos <pmatos@broadcom.com>
25047
25048 * symtab.c (address_matters_1): Fix typo in comment above.
25049 (can_increase_alignment_p): Likewise.
25050
25051 2015-07-07 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
25052
25053 * function.c (free_after_compilation): Clear PROP_cfg in
25054 f->curr_properties.
25055
25056 2015-07-07 Richard Biener <rguenther@suse.de>
25057
25058 * tree-ssa-propagate.c (add_ssa_edge): Dump what edge list we
25059 add which use to.
25060 (add_control_edge): Remove excessive vertical space in dumping.
25061 (process_ssa_edge_worklist): Simulate at most one statement and
25062 return whether we did. Do not simulate PHIs if they are in a
25063 BB not yet simulated.
25064 (ssa_propagate): Adjust to always drain the BB worklist whenever
25065 a BB is available there, likewise the VARYING edges list before
25066 the interesting edge list.
25067
25068 2015-07-07 Christian Bruel <christian.bruel@st.com>
25069
25070 PR target/52144
25071 * config/arm/elf.h (TARGET_ASM_FILE_START_APP_OFF): Delete.
25072
25073 2015-07-07 Richard Biener <rguenther@suse.de>
25074
25075 PR middle-end/66739
25076 * match.pd: Condition A - B ==/!= 0 -> A ==/!= B on single-use
25077 A - B.
25078
25079 2015-07-06 Uros Bizjak <ubizjak@gmail.com>
25080
25081 * config/i386/i386.md (insv<mode>): Rename from insv. Use SWI48
25082 modes for operands 0 and 3. Use SImode for operands 2 and 3.
25083 Copy operand 0 to a temporary if !ext_register_operand. Remove
25084 ancient extract_bit_field workaround.
25085 (insv<mode>_1): Rename from mov<mode>_insv_1.
25086 (*insvqi): Rename from *movqi_insv_2.
25087 * config/i386/i386.c (emit_i386_cw_initialization): Update calls
25088 for renamed insvsi_1.
25089 (promote_duplicated_reg): Ditto for renamed insv<mode>_1.
25090
25091 2015-07-06 Nathan Sidwell <nathan@codesourcery.com>
25092
25093 * config/nvptx/nvptx.c (nvptx_reorg): Remove unused vars. Fix
25094 call to nvptx_reorg_subreg.
25095
25096 2015-07-06 Jim Wilson <jim.wilson@linaro.org>
25097
25098 * graphite-blocking.c (HAVE_isl): Include <stddef.h>.
25099 * graphite-dependencies.c, graphite-interchange.c,
25100 graphite-isl-ast-to-gimple.c, graphite-optimize-isl.c, graphite-poly.c,
25101 graphite-scop-detection.c, graphite-sese-to-poly.c, graphite.c:
25102 Likewise.
25103
25104 2015-07-06 Marc Glisse <marc.glisse@inria.fr>
25105
25106 * match.pd: Remove element_mode inside HONOR_*.
25107 (~ (-A) -> A - 1, ~ (A - 1) -> -A): Handle complex types.
25108 (~X | X -> -1, ~X ^ X -> -1): Merge.
25109 * tree.c (build_each_one_cst): New function.
25110 * tree.h (build_each_one_cst): Likewise.
25111
25112 2015-07-06 H.J. Lu <hongjiu.lu@intel.com>
25113
25114 * config/i386/i386-c.c (ix86_target_macros_internal): Handle
25115 PROCESSOR_IAMCU.
25116
25117 2015-07-06 Steve Ellcey <sellcey@imgtec.com>
25118
25119 * config.gcc <mips*-*-*>: Add fused-madd.opt.
25120 * config/mips/mips.opt (mfused-madd): Remove.
25121 * config/mips/mips.c (mips_rtx_costs): Update cost calculations.
25122 * config/mips/mips.h (TARGET_MIPS8000): New.
25123 (ISA_HAS_FP_MADD4_MSUB4): Remove.
25124 (ISA_HAS_FP_MADDF_MSUBF): Remove.
25125 (ISA_HAS_FP_MADD3_MSUB3): Remove.
25126 (ISA_HAS_NMADD4_NMSUB4): Remove.
25127 (ISA_HAS_NMADD3_NMSUB3): Remove.
25128 (ISA_HAS_FUSED_MADD4): New.
25129 (ISA_HAS_UNFUSED_MADD4): New.
25130 (ISA_HAS_FUSED_MADDF): New.
25131 (ISA_HAS_FUSED_MADD3): New.
25132 * config/mips/mips.md: (fma<mode>4) Change from insn to expand.
25133 (*fma<mode>4_madd3) New.
25134 (*fma<mode>4_madd4) New.
25135 (*fma<mode>4_maddf) New.
25136 (fms<mode>4) New.
25137 (*fms<mode>4_msub3) New.
25138 (*fms<mode>4_msub4) New.
25139 (fnma<mode>4) New.
25140 (*fnma<mode>4_nmadd3) New.
25141 (*fnma<mode>4_nmadd4) New.
25142 (fnms<mode>4) New.
25143 (*fnms<mode>4_nmsub3) New.
25144 (*fnms<mode>4_nmsub4) New.
25145 (*madd4<mode>) Modify to be unfused only.
25146 (*msub4<mode>) Modify to be unfused only.
25147 (*nmadd4<mode>) Modify to be unfused only.
25148 (*nmsub4<mode>) Modify to be unfused only.
25149 (*madd3<mode>) Remove.
25150 (*msub3<mode>) Remove.
25151 (*nmadd3<mode>) Remove.
25152 (*nmsub3<mode>) Remove.
25153 (*nmadd3<mode>_fastmath) Remove.
25154 (*nmsub3<mode>_fastmath) Remove.
25155 (*nmadd4<mode>_fastmath) Update condition.
25156 (*nmsub4<mode>_fastmath) Update condition.
25157
25158 2015-07-06 Alan Lawrence <alan.lawrence@arm.com>
25159
25160 PR target/65956
25161 * config/arm/arm.c (arm_needs_doubleword_align): Drop any outer
25162 alignment attribute, exploring one level down for records and arrays.
25163
25164 2015-07-06 Uros Bizjak <ubizjak@gmail.com>
25165
25166 * config/i386/i386.md (extv<mode>): Rename from extv. Use SWI24
25167 modes for operands 0 and 1. Use SImode for operands 2 and 3.
25168 Copy operand 1 to a temporary if !ext_register_operand. Remove
25169 ancient extract_bit_field workaround.
25170 (*extv<mode>): Rename from *mov<mode>_extv_1.
25171 (*extvqi): Rename from *movqi_extv_1.
25172 (extzv<mode>): Rename from extzv. Use SWI248 modes for
25173 operands 0 and 1. Use SImode for operands 2 and 3. Copy operand 1
25174 to a temporary if !ext_register_operand. Remove ancient
25175 extract_bit_field workaround.
25176 (*extzv<mode>): Rename from *mov<mode>_extzv_1.
25177 (*extzvqi): Rename from *movqi_extzv_2.
25178 (*testqi_ext_3): Remove modes from const_int_operand predicated
25179 operands. Add "n" constraint.
25180 (*btsq, *btrq, *btcq): Remove mode from const_0_to_63 predicated
25181 operand. Add "J" constraint.
25182 (*btsq, *btrq, *btcq peephole2s): Remove mode from
25183 const_0_to_63 predicated operand.
25184 (regmode): New insn attribute.
25185 (*bt<mode>): Use SImode for operand 1. Change operand 1 predicate
25186 to nonmemory_operand. Use regmode insn attribute.
25187 (*jcc_bt<mode>_1): Convert operand 2 to SImode.
25188 (*jcc_bt<mode>_mask): Remove mode from operand 3.
25189 (*jcc_btsi_1, *jcc_btsi_mask_1): Remove patterns.
25190 (tbm_bextri_<mode>): Remove modes from const_0_to_255 predicated
25191 operands. Use "N" constraint instead of "n".
25192
25193 2015-07-06 Alan Lawrence <alan.lawrence@arm.com>
25194
25195 * config/arm/arm.md (movdi): Avoid odd-number ldrd/strd in ARM state.
25196
25197 2015-07-06 H.J. Lu <hongjiu.lu@intel.com>
25198
25199 PR target/66749
25200 * config/i386/i386.c (iamcu_cost): New.
25201 (m_IAMCU): Likewise.
25202 (initial_ix86_arch_features): Disable X86_ARCH_CMOV for m_IAMCU.
25203 (processor_target_table): Add an entry for "iamcu".
25204 (processor_alias_table): Likewise.
25205 (ix86_issue_rate): Handle PROCESSOR_IAMCU.
25206 (ix86_adjust_cost): Likewise.
25207 (ia32_multipass_dfa_lookahead): Likewise.
25208 * config/i386/i386.h (processor_type): Add PROCESSOR_IAMCU.
25209 * config/i386/x86-tune.def: Updated for m_IAMCU.
25210
25211 2015-07-06 Richard Biener <rguenther@suse.de>
25212
25213 PR tree-optimization/66772
25214 * tree-ssa-ccp.c (ccp_visit_phi_node): Make sure that copy
25215 values are available in the PHI node BB when there are
25216 still unexecutable edges.
25217
25218 2015-07-06 Richard Biener <rguenther@suse.de>
25219
25220 PR tree-optimization/66767
25221 * tree-vect-loop-manip.c (vect_create_cond_for_align_checks):
25222 Make sure to build the alignment test on a SSA name without
25223 final alignment info valid only if the alignment test
25224 evaluates to true.
25225
25226 2015-07-06 Bernd Schmidt <bernds@codesourcery.com>
25227
25228 PR target/66620
25229 * config/bfin/bfin.c (hwloop_optimize): Create new bb between jump and
25230 loop start when inserting LSETUP.
25231
25232 2015-07-06 H.J. Lu <hongjiu.lu@intel.com>
25233
25234 PR target/53383
25235 * config/i386/i386.c (ix86_option_override_internal): Allow
25236 -mincoming-stack-boundary=3 for 64-bit if SSE is disabled.
25237
25238 2015-07-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
25239
25240 * read-md.c (decimal_string): Rename to ...
25241 (md_decimal_string): ... this.
25242 (handle_enum): Reflect this.
25243
25244 2015-07-06 Szabolcs Nagy <szabolcs.nagy@arm.com>
25245
25246 PR target/66731
25247 * config/aarch64/aarch64.md (fnmul<mode>3): Handle -frounding-math.
25248
25249 2015-07-06 Richard Biener <rguenther@suse.de>
25250
25251 PR middle-end/66759
25252 * match.pd: Add missing constraint of y to REAL_CST in
25253 REAL_CST - x CMP y to y - CST CMP x simplification.
25254
25255 2015-07-06 Eric Botcazou <ebotcazou@adacore.com>
25256
25257 PR tree-optimization/66757
25258 * match.pd: Add missing condition to ~X ^ C -> X ^ ~C.
25259
25260 2015-07-05 Chung-Lin Tang <cltang@codesourcery.com>
25261 Sandra Loosemore <sandra@codesourcery.com>
25262
25263 * config/nios2/nios2-protos.h (nios2_symbol_ref_in_small_data_p):
25264 Delete extern declaration.
25265 (gprel_constant_p): Add extern declaration.
25266 * config/nios2/constraints.md ("S"): Use gprel_constant_p
25267 instead of nios2_symbol_ref_in_small_data_p.
25268 * config/nios2/nios2.c (nios2_legitimate_address_p): Likewise.
25269 (nios2_symbol_ref_in_small_data_p): Make static.
25270 (gprel_constant_p): Make non-static.
25271
25272 2015-07-05 Gerald Pfeifer <gerald@pfeifer.com>
25273
25274 * doc/fragments.texi (Target Fragment): Convert debian.org
25275 link to use https.
25276 * doc/install.texi (Configuration): Ditto.
25277
25278 2015-07-05 Jakub Jelinek <jakub@redhat.com>
25279
25280 PR tree-optimization/66718
25281 * tree-vect-stmts.c (vectorizable_call): Replace uses of
25282 GOMP_SIMD_LANE outside of loop with vf - 1 rather than 0.
25283
25284 PR tree-optimization/66718
25285 * tree-vect-stmts.c (vectorizable_assignment, vectorizable_store,
25286 vectorizable_load, vectorizable_condition): Move vectype,
25287 nunits, ncopies computation after checking what kind of statement
25288 stmt is.
25289
25290 2015-07-05 Richard Sandiford <richard.sandiford@arm.com>
25291
25292 * target-insns.def (extv, extzv, insv): New targetm instruction
25293 patterns.
25294 * optabs.c (get_extraction_insn): Use them instead of HAVE_*/gen_*
25295 interface.
25296 * recog.c (simplify_while_replacing): Likewise.
25297
25298 2015-07-05 Richard Sandiford <richard.sandiford@arm.com>
25299
25300 * target-insns.def (doloop_begin, doloop_end): New targetm
25301 instruction patterns.
25302 * loop-init.c: Include target.h.
25303 (pass_loop2::gate): Use the new targetm patterns instead of
25304 HAVE_*/gen_* interface.
25305 (pass_rtl_doloop::gate): Likewise.
25306 (pass_rtl_doloop::execute): Remove preprocessor condition.
25307 * hw-doloop.c: Build unconditionally.
25308 * loop-doloop.c: Likewise.
25309 (doloop_optimize): Use the new targetm patterns instead of
25310 HAVE_*/gen_* interface.
25311 (doloop_modify): Likewise. Change type of doloop_seq to rtx_insn *.
25312 * modulo-sched.c (doloop_register_get): Likewise.
25313
25314 2015-07-05 Richard Sandiford <richard.sandiford@arm.com>
25315
25316 * target-insns.def (clear_cache): New targetm instruction pattern.
25317 * builtins.c (expand_builtin___clear_cache): Use it instead of
25318 HAVE_*/gen_* interface.
25319
25320 2015-07-05 Richard Sandiford <richard.sandiford@arm.com>
25321
25322 * target-insns.def (allocate_stack, check_stack, probe_stack)
25323 (probe_stack_address, split_stack_prologue, split_stack_space_check):
25324 New targetm instruction patterns.
25325 * explow.c (allocate_dynamic_stack_space): Use them instead of
25326 HAVE_*/gen_* interface.
25327 (emit_stack_probe): Likewise.
25328 (probe_stack_range): Likewise.
25329 * function.c (thread_prologue_and_epilogue_insns): Likewise.
25330
25331 2015-07-05 Richard Sandiford <richard.sandiford@arm.com>
25332
25333 * target-insns.def (stack_protect_set, stack_protect_test): New
25334 targetm instruction patterns.
25335 * cfgexpand.c (stack_protect_prologue): Use them instead of
25336 HAVE_*/gen_* interface.
25337 * function.c (stack_protect_epilogue): Likewise.
25338
25339 2015-07-05 Richard Sandiford <richard.sandiford@arm.com>
25340
25341 * expr.h (gen_move_insn_uncast): Delete.
25342 * expr.c (gen_move_insn_uncast): Delete.
25343
25344 2015-07-05 Richard Sandiford <richard.sandiford@arm.com>
25345
25346 * target-insns.def (restore_stack_block, restore_stack_function)
25347 (restore_stack_nonlocal, save_stack_block, save_stack_function)
25348 (save_stack_nonlocal): New targetm instruction patterns.
25349 * builtins.c (expand_builtin_apply): Use them instead of
25350 HAVE_*/gen_* interface.
25351 * explow.c (emit_stack_save, emit_stack_restore): Likewise.
25352
25353 2015-07-05 Richard Sandiford <richard.sandiford@arm.com>
25354
25355 * target-insns.def (trap): New targetm instruction pattern.
25356 * builtins.c (expand_builtin_trap): Use it instead of HAVE_*/gen_*
25357 interface.
25358 * explow.c (allocate_dynamic_stack_space): Likewise.
25359 * ifcvt.c (find_if_header): Likewise.
25360
25361 2015-07-05 Richard Sandiford <richard.sandiford@arm.com>
25362
25363 * target-insns.def (prefetch): New targetm instruction pattern.
25364 * tree-ssa-loop-prefetch.c: Include targeth.
25365 (tree_ssa_prefetch_arrays): Use prefetch targetm pattern instead
25366 of HAVE_*/gen_* interface.
25367 * builtins.c (expand_builtin_prefetch): Likewise.
25368 * toplev.c (process_options): Likewise.
25369
25370 2015-07-05 Richard Sandiford <richard.sandiford@arm.com>
25371
25372 * target-insns.def (untyped_call, untyped_return): New targetm
25373 instruction patterns.
25374 * builtins.c (expand_builtin_apply): Use them instead of
25375 HAVE_*/gen_* interface.
25376 (result_vector): Define unconditionally.
25377
25378 2015-07-05 Richard Sandiford <richard.sandiford@arm.com>
25379
25380 * target-insns.def (builtin_longjmp, builtin_setjmp_receiver)
25381 (builtin_setjmp_setup, exception_receiver, nonlocal_goto)
25382 (nonlocal_goto_receiver): New targetm instruction patterns.
25383 * builtins.c (expand_builtin_setjmp_setup): Use them instead
25384 of HAVE_*/gen_* interface.
25385 (expand_builtin_setjmp_receiver): Likewise.
25386 (expand_builtin_longjmp, expand_builtin_nonlocal_goto): Likewise.
25387 * except.c (expand_dw2_landing_pad_for_region): Likewise.
25388
25389 2015-07-05 Richard Sandiford <richard.sandiford@arm.com>
25390
25391 * target.def: Add code_for_* hooks.
25392 * gentarget-def.c (def_target_insn): Add TARGET_CODE_FOR_* macros.
25393 * defaults.h (HAVE_tablejump, gen_tablejump): Delete.
25394 * target-insns.def (casesi, tablejump): New targetm instruction
25395 patterns.
25396 * expr.c (try_casesi): Use them instead of HAVE_*/gen_* interface.
25397 (do_tablejump): Likewise.
25398 * stmt.c (expand_switch_as_decision_tree_p): Likewise.
25399 (expand_sjlj_dispatch_table): Likewise.
25400 * targhooks.c (default_case_values_threshold): Likewise.
25401
25402 2015-07-04 Sandra Loosemore <sandra@codesourcery.com>
25403
25404 * config/nios2/nios2.c (save_reg, restore_reg): Use plus_constant.
25405 Use rtx_insn * instead of rtx.
25406 (nios2_emit_add_constant): Use rtx_insn * instead of rtx.
25407 (nios2_expand_prologue, nios2_expand_epilogue): Likewise.
25408 (nios2_call_tls_get_addr): Likewise.
25409 (nios2_emit_expensive_div): Likewise.
25410 (nios2_emit_move_sequence): Change return type to bool.
25411 * config/nios2/nios2-protos.h (nios2_emit_move_sequence):
25412 Change return type to bool.
25413
25414 2015-07-04 Bernd Edlinger <bernd.edlinger@hotmail.de>
25415
25416 PR target/66747
25417 * config/mips/mips.c (mips_find_gp_ref): Handle instruction sequences.
25418
25419 2015-07-04 John David Anglin <danglin@gcc.gnu.org>
25420
25421 PR target/66114
25422 * config/pa/pa.md (indirect_jump): Use pmode_register_operand instead
25423 of register_operand. Remove constraint.
25424
25425 2015-07-04 Marc Glisse <marc.glisse@inria.fr>
25426
25427 * tree-cfg.c (verify_gimple_assign_ternary) <VEC_COND_EXPR>: Check
25428 the first argument.
25429
25430 2015-07-03 Paolo Carlini <paolo.carlini@oracle.com>
25431
25432 * attribs.c (decl_attributes): Guard inform with the return value
25433 of the preceding warning.
25434
25435 2015-07-03 James Greenhalgh <james.greenhalgh@arm.com>
25436
25437 * doc/invoke.texi (moverride): Move to correct section.
25438
25439 2015-07-03 Richard Biener <rguenther@suse.de>
25440
25441 * genmatch.c (commutative_tree_code, commutative_ternary_tree_code):
25442 Copy from tree.c
25443 (dt_operand::gen_gimple_expr): After valueizing operands
25444 re-canonicalize operand order for commutative tree codes.
25445
25446 2015-07-03 H.J. Lu <hongjiu.lu@intel.com>
25447
25448 PR target/66746.
25449 * config/i386/ia32intrin.h (__crc32b): Don't define if __iamcu__
25450 is defined.
25451 (__crc32w): Likewise.
25452 (__crc32d): Likewise.
25453 (__rdpmc): Likewise.
25454 (__rdtscp): Likewise.
25455 (_rdpmc): Likewise.
25456 (_rdtscp): Likewise.
25457 * config/i386/x86intrin.h: Only include ia32intrin.h if __iamcu__
25458 is defined.
25459
25460 2015-07-03 Richard Biener <rguenther@suse.de>
25461
25462 * fold-const.c (fold_mathfn_compare): Remove.
25463 (fold_inf_compare): Likewise.
25464 (fold_comparison): Move floating point comparison simplifications...
25465 * match.pd: ... to patterns here. Introduce simple_comparisons
25466 operator list and use it for patterns formerly in fold_comparison.
25467
25468 2015-07-03 James Greenhalgh <james.greenhalgh@arm.com>
25469
25470 PR tree-optimization/66119
25471 * toplev.c (process_options): Don't set up default values for
25472 the sra_max_scalarization_size_{speed,size} parameters.
25473 * tree-sra (analyze_all_variable_accesses): If no values
25474 have been set for the sra_max_scalarization_size_{speed,size}
25475 parameters, call get_move_ratio to get target defaults.
25476
25477 2015-07-03 Richard Biener <rguenther@suse.de>
25478
25479 * fold-const.c (fold_binary_loc): Move (T)ptr & CST folding...
25480 * match.pd: ... here.
25481
25482 2015-07-03 Gerald Pfeifer <gerald@pfeifer.com>
25483
25484 PR target/37072
25485 * doc/invoke.texi (i386 and x86-64 Options): -mno-fancy-math-387
25486 is not actually the default on FreeBSD.
25487
25488 2015-07-02 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
25489
25490 * config/rs6000/rs6000-builtin.def (CMPGE_16QI): New built-in
25491 definition.
25492 (CMPGE_8HI): Likewise.
25493 (CMPGE_4SI): Likewise.
25494 (CMPGE_2DI): Likewise.
25495 (CMPGE_U16QI): Likewise.
25496 (CMPGE_U8HI): Likewise.
25497 (CMPGE_U4SI): Likewise.
25498 (CMPGE_U2DI): Likewise.
25499 (CMPLE_16QI): Likewise.
25500 (CMPLE_8HI): Likewise.
25501 (CMPLE_4SI): Likewise.
25502 (CMPLE_2DI): Likewise.
25503 (CMPLE_U16QI): Likewise.
25504 (CMPLE_U8HI): Likewise.
25505 (CMPLE_U4SI): Likewise.
25506 (CMPLE_U2DI): Likewise.
25507 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
25508 overloads for ALTIVEC_BUILTIN_VEC_CMPGE and
25509 ALTIVEC_BUILTIN_VEC_CMPLE.
25510 * config/rs6000/vector.md (vector_ge<mode>): Restrict to
25511 floating-point vector modes.
25512 (vector_nlt<mode>): New define_expand.
25513 (vector_nltu<mode>): Likewise.
25514 (vector_ngt<mode>): Likewise.
25515 (vector_ngtu<mode>): Likewise.
25516
25517 2015-07-02 Segher Boessenkool <segher@kernel.crashing.org>
25518
25519 PR rtl-optimization/66706
25520 * combine.c (make_compound_operation): If an AND of SUBREG of
25521 LSHIFTRT does not simplify, see if just the AND of SUBREG does.
25522
25523 2015-07-02 Alan Lawrence <alan.lawrence@arm.com>
25524
25525 * tree-pass.h (make_pass_ch_vect): New.
25526 * passes.def: Add pass_ch_vect just before pass_if_conversion.
25527
25528 * tree-ssa-loop-ch.c (ch_base, pass_ch_vect, pass_data_ch_vect,
25529 pass_ch::process_loop_p, pass_ch_vect::process_loop_p,
25530 make_pass_ch_vect): New.
25531 (pass_ch): Extend ch_base.
25532
25533 (pass_ch::execute): Move all but loop_optimizer_init/finalize to...
25534 (ch_base::copy_headers): ...here.
25535
25536 2015-07-02 Richard Biener <rguenther@suse.de>
25537
25538 * builtins.c (get_pointer_alignment_1): Handle POINTER_PLUS_EXPR.
25539 * fold-const.c (get_pointer_modulus_and_residue): Remove.
25540 (fold_binary_loc): Implement (T)ptr & CST in terms of
25541 get_pointer_alignment_1.
25542 * tree-vect-loop-manip.c (vect_gen_niters_for_prolog_loop):
25543 Make sure to build the alignment test on a SSA name without
25544 final alignment info valid only after the prologue.
25545
25546 2015-07-02 Hans-Peter Nilsson <hp@axis.com>
25547
25548 * config/cris/cris.md ("epilogue"): Remove condition.
25549 ("prologue"): Ditto.
25550
25551 2015-07-02 Richard Biener <rguenther@suse.de>
25552
25553 * tree-ssa-dom.c (build_and_record_new_cond): Add optional
25554 parameter to record a condition that is false.
25555 (record_conditions): When recording an extra NE_EXPR that is
25556 true also record a EQ_EXPR that is false.
25557
25558 2015-07-02 Bin Cheng <bin.cheng@arm.com>
25559
25560 * tree-ssa-loop-ivopts.c (struct ivopts_data): New field iv_obstack.
25561 (tree_ssa_iv_optimize_init): Initialize iv_obstack.
25562 (alloc_iv): New parameter. Allocate struct iv using obstack_alloc.
25563 (set_iv, find_interesting_uses_address, add_candidate_1): New
25564 argument to alloc_iv.
25565 (find_interesting_uses_op, find_interesting_uses_cond): Don't
25566 duplicate struct iv.
25567 (free_loop_data): Don't free struct iv explicitly.
25568 (tree_ssa_iv_optimize_finalize): Free iv_obstack.
25569
25570 2015-07-01 DJ Delorie <dj@redhat.com>
25571
25572 * config/s390/tpf.h (LIBSTDCXX): Change to CPP1.
25573 (LIB_SPEC): Add.
25574 (SUPPORTS_DISCRIMINATOR): Define.
25575
25576 2015-07-01 Richard Sandiford <richard.sandiford@arm.com>
25577
25578 PR bootstrap/66685
25579 * rtl.c (classify_insn): Only return JUMP_INSN for parallel returns if
25580 there are no CALLs in the same pattern.
25581
25582 2015-07-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
25583
25584 PR rtl-optimization/61047
25585 * rtlanal.c (get_initial_register_offset): New function.
25586 (rtx_addr_can_trap_p_1): Check offsets of stack references.
25587
25588 2015-07-01 Richard Biener <rguenther@suse.de>
25589
25590 * fold-const.c (fold_comparison): Move X - Y CMP 0 -> X CMP Y,
25591 X * C1 CMP 0 -> X CMP 0, X CMP X, ~X CMP ~Y -> Y CMP X and
25592 ~X CMP C -> X CMP' ~C to ...
25593 * match.pd: ... patterns here.
25594
25595 2015-07-01 Nick Clifton <nickc@redhat.com>
25596
25597 * config/msp430/msp430.md (zero_extendhipsi2): Use MOVX.A to store
25598 a 16-bit value into a 20-bit memory slot.
25599
25600 2015-07-01 Jiong Wang <jiong.wang@arm.com>
25601
25602 * doc/sourcebuild.texi (AArch64-specific attributes): Document
25603 "aarch64_tiny", "aarch64_small", "aarch64_large",
25604 "aarch64_little_endian", "aarch64_big_endian".
25605
25606 2015-07-01 Jiong Wang <jiong.wang@arm.com>
25607
25608 * doc/sourcebuild.texi (AArch64-specific attributes): New subsection.
25609 Document "aarch64_small_fpic".
25610
25611 2015-07-01 Jiong Wang <jiong.wang@arm.com>
25612
25613 * configure.ac: Add check for aarch64 assembler -fpic relocation
25614 modifier support.
25615 * configure: Regenerate.
25616 * config.in: Regenerate.
25617 * config/aarch64/aarch64.c (initialize_aarch64_code_model): Fall back
25618 to -fPIC if not support of -fpic relocation modifier in assembler.
25619
25620 2015-07-01 Richard Sandiford <richard.sandiford@arm.com>
25621
25622 PR bootstrap/66685
25623 * rtl.c (classify_insn): Handle returns in PARALLELs.
25624
25625 2015-07-01 Eric Botcazou <ebotcazou@adacore.com>
25626
25627 PR middle-end/66633
25628 * tree-nested.c (convert_nonlocal_omp_clauses): Initialize need_chain
25629 to true if the function is nested and if not optimizing.
25630 (convert_local_omp_clauses): Initialize need_frame to true if the
25631 function contains nested functions and if not optimizing.
25632
25633 2015-07-01 Richard Biener <rguenther@suse.de>
25634
25635 * fold-const.c (fold_binary_loc): Move ~X ^ X -> -1 and
25636 (X & Y) ^ Y -> ~X & Y transforms to ...
25637 * match.pd: ... here.
25638
25639 2015-07-01 Richard Biener <rguenther@suse.de>
25640
25641 * genmatch.c (expr::gen_transform): Shortcut re-simplifying
25642 of converts to avoid uninteresting noise from the conversion
25643 simplifying patterns.
25644
25645 2015-06-30 Sandra Loosemore <sandra@codesourcery.com>
25646
25647 * config/c6x/c6x.c (try_rename_operands): Do not depend on
25648 gcc_assert evaluating its argument for side-effect.
25649
25650 2015-06-30 Kaz Kojima <kkojima@gcc.gnu.org>
25651
25652 PR target/64833
25653 * config/sh/sh.md (casesi_worker_1): Set length to 8 when
25654 flag_pic is set.
25655
25656 2015-06-30 Eric Botcazou <ebotcazou@adacore.com>
25657
25658 * lto-streamer-out.c (class DFS): Adjust hash_scc method.
25659 (DFS::DFS): Pass this_ref_p and ref_p to hash_scc.
25660 (hash_scc): Add this_ref_p and ref_p parameters and pass them
25661 to the inner DFS walk.
25662
25663 2015-06-30 Richard Sandiford <richard.sandiford@arm.com>
25664
25665 * target-insns.def (jump): New targetm instruction pattern.
25666 * bb-reorder.c (get_uncond_jump_length): Use targetm.gen_jump
25667 instead of gen_jump.
25668 (fix_up_crossing_landing_pad): Likewise.
25669 (add_labels_and_missing_jumps): Likewise.
25670 (fix_crossing_conditional_branches): Likewise.
25671 * cfgrtl.c (try_redirect_by_replacing_jump): Likewise.
25672 (force_nonfallthru_and_redirect): Likewise.
25673 * cse.c (cse_insn): Likewise.
25674 * expmed.c (expand_divmod): Likewise.
25675 * expr.c (store_expr_with_bounds, expand_expr_real_2): Likewise.
25676 * haifa-sched.c (init_before_recovery): Likewise.
25677 (sched_create_recovery_edges): Likewise.
25678 * ifcvt.c (find_cond_trap): Likewise.
25679 * optabs.c (expand_doubleword_shift, expand_doubleword_clz): Likewise.
25680 (expand_float, expand_fix): Likewise.
25681 * stmt.c (emit_jump): Likewise.
25682
25683 2015-06-30 Richard Sandiford <richard.sandiford@arm.com>
25684
25685 * defaults.h (HAVE_load_multiple, gen_load_multiple)
25686 (HAVE_store_multiple, gen_store_multiple): Delete.
25687 * target-insns.def (load_multiple, store_multiple): New targetm
25688 instruction patterns.
25689 * expr.c (move_block_to_reg, move_block_from_reg): Use them instead
25690 of HAVE_*/gen_* interface.
25691
25692 2015-06-30 Richard Sandiford <richard.sandiford@arm.com>
25693
25694 * defaults.h (HAVE_mem_thread_fence, gen_mem_thread_fence)
25695 (HAVE_memory_barrier, gen_memory_barrier, HAVE_mem_signal_fence)
25696 (gen_mem_signal_fence): Delete.
25697 * target-insns.def (mem_signal_fence, mem_thread_fence)
25698 (memory_barrier): New targetm instruction patterns.
25699 * optabs.c (expand_mem_thread_fence): Use them instead of HAVE_*/gen_*
25700 interface.
25701 (expand_mem_signal_fence): Likewise.
25702
25703 2015-06-30 Richard Sandiford <richard.sandiford@arm.com>
25704
25705 * defaults.h (HAVE_epilogue, gen_epilogue): Delete.
25706 * target-insns.def (epilogue, prologue, sibcall_prologue): New
25707 targetm instruction patterns.
25708 * alias.c (init_alias_analysis): Use them instead of HAVE_*/gen_*
25709 interface.
25710 * calls.c (expand_call): Likewise.
25711 * cfgrtl.c (cfg_layout_finalize): Likewise.
25712 * df-scan.c (df_get_entry_block_def_set): Likewise.
25713 (df_get_exit_block_use_set): Likewise.
25714 * dwarf2cfi.c (pass_dwarf2_frame::gate): Likewise.
25715 * final.c (final_start_function): Likewise.
25716 * function.c (thread_prologue_and_epilogue_insns): Likewise.
25717 (reposition_prologue_and_epilogue_notes): Likewise.
25718 * reorg.c (find_end_label): Likewise.
25719 * toplev.c (process_options): Likewise.
25720
25721 2015-06-30 David Malcolm <dmalcolm@redhat.com>
25722
25723 * typed-splay-tree.h: New file.
25724
25725 2015-06-30 Vladimir Makarov <vmakarov@redhat.com>
25726
25727 PR debug/66691
25728 * lra-int.h (lra_substitute_pseudo): Add a parameter.
25729 (lra_substitute_pseudo_within_insn): Ditto.
25730 * lra.c (lra_substitute_pseudo): Add a parameter. Simplify subreg
25731 of constant.
25732 (lra_substitute_pseudo_within_insn): Add a parameter. Transfer it
25733 to lra_substitute_pseudo.
25734 * lra-lives.c (process_bb_lives): Add an argument to
25735 lra_substitute_pseudo_within_insn call.
25736 * lra-constraints.c (inherit_reload_reg, split_reg): Add an
25737 argument to lra_substitute_pseudo and
25738 lra_substitute_pseudo_within_insn calls.
25739 (remove_inheritance_pseudos, undo_optional_reloads): Ditto.
25740
25741 2015-06-30 H.J. Lu <hongjiu.lu@intel.com>
25742
25743 * configure: Regenerated.
25744
25745 2015-06-30 H.J. Lu <hongjiu.lu@intel.com>
25746
25747 * config.gcc: Support i[34567]86-*-elfiamcu target.
25748 * config/i386/iamcu.h: New.
25749 * config/i386/i386.opt: Add -miamcu.
25750 * doc/invoke.texi: Document -miamcu.
25751 * common/config/i386/i386-common.c (ix86_handle_option): Turn
25752 off x87/MMX/SSE/AVX codegen for -miamcu.
25753 * config/i386/i386-c.c (ix86_target_macros_internal): Define
25754 __iamcu/__iamcu__ for -miamcu.
25755 * config/i386/i386.h (PREFERRED_STACK_BOUNDARY_DEFAULT): Set
25756 to MIN_STACK_BOUNDARY if TARGET_IAMCU is true.
25757 (BIGGEST_ALIGNMENT): Set to 32 if TARGET_IAMCU is true.
25758 * config/i386/i386.c (ix86_option_override_internal): Ignore and
25759 warn -mregparm for Intel MCU. Turn on -mregparm=3 for Intel
25760 MCU by default. Default long double to 64-bit for Intel MCU.
25761 Turn on -freg-struct-return for Intel MCU. Issue an error when
25762 -miamcu is used in 64-bit or x32 mode or if x87, MMX, SSE or
25763 AVX is turned on.
25764 (function_arg_advance_32): Pass value whose size is no larger
25765 than 8 bytes in registers for Intel MCU.
25766 (function_arg_32): Likewise.
25767 (ix86_return_in_memory): Return value whose size is no larger
25768 than 8 bytes in registers for Intel MCU.
25769 (iamcu_alignment): New function.
25770 (ix86_data_alignment): Call iamcu_alignment if TARGET_IAMCU is
25771 true.
25772 (ix86_local_alignment): Don't increase alignment for Intel MCU.
25773 (x86_field_alignment): Return iamcu_alignment if TARGET_IAMCU is
25774 true.
25775
25776 2015-06-30 Marek Polacek <polacek@redhat.com>
25777
25778 * match.pd (X - (X / Y) * Y): Use convert1 and convert2. Convert
25779 both operands of the resulting expression.
25780
25781 * match.pd (~x | x): Don't use tree_nop_conversion_p. Build
25782 the final expression with the operand's type and then convert
25783 it to the type of the expression.
25784
25785 2015-06-30 Richard Biener <rguenther@suse.de>
25786
25787 * fold-const.c (fold_binary_loc): Move ~x & ~y -> ~(x | y) and
25788 ~x | ~y -> ~(x & y), (x & CST) ^ (x & CST2) -> (x & CST) | (x & CST2),
25789 (X | Y) ^ X -> Y & ~ X, ~X ^ ~Y to X ^ Y and ~X ^ C to X ^ ~C ...
25790 * match.pd: ... to patterns here.
25791
25792 2015-06-30 Richard Biener <rguenther@suse.de>
25793
25794 PR tree-optimization/66704
25795 * tree-vect-data-refs.c (vect_setup_realignment): Use
25796 make_ssa_name for non-SSA name source.
25797
25798 2015-06-30 Jakub Jelinek <jakub@redhat.com>
25799
25800 PR middle-end/66702
25801 * omp-low.c (simd_clone_adjust): Handle addressable linear
25802 or uniform parameters or non-gimple type uniform parameters.
25803
25804 2015-06-30 Richard Biener <rguenther@suse.de>
25805
25806 * fold-const.c (fold_unary_loc): Move abs(abs(x)) -> abs(x),
25807 ~ (-A) to A - 1, ~ (A - 1) or ~ (A + -1) to -A and some cases of
25808 ~(X ^ Y) to ~X ^ Y or X ^ ~Y if ~X or ~Y simplify to ...
25809 * match.pd: ... here.
25810 Add a few cases of A - B -> A + (-B) when B "easily" negates.
25811 Move (x & y) | x -> x and friends before
25812 (x | CST1) & CST2 -> (x & CST2) | (CST1 & CST2).
25813
25814 2015-06-30 Eric Botcazou <ebotcazou@adacore.com>
25815
25816 * config/sparc/leon.md (leon_load): Enable for all LEON variants if
25817 -mfix-ut699 is not specified.
25818 (leon3_load): Rename into...
25819 (ut699_load): ...this. Enable for all LEON variants if -mfix-ut699
25820 is specified.
25821
25822 2015-06-30 Marek Polacek <polacek@redhat.com>
25823
25824 * fold-const.c (fold_binary_loc): Move ~X | X folding ...
25825 * match.pd: ... here.
25826
25827 2015-06-30 Richard Biener <rguenther@suse.de>
25828
25829 * target-insns.def (canonicalize_funcptr_for_compare): Add.
25830 * fold-const.c (build_range_check): Replace uses of
25831 HAVE_canonicalize_funcptr_for_compare.
25832 (fold_widened_comparison): Likewise.
25833 (fold_sign_changed_comparison): Likewise.
25834 * dojump.c: Include "target.h".
25835 (do_compare_and_jump): Replace uses of
25836 HAVE_canonicalize_funcptr_for_compare and
25837 gen_canonicalize_funcptr_for_compare.
25838 * expr.c (do_store_flag): Likewise.
25839
25840 2015-06-30 Tom de Vries <tom@codesourcery.com>
25841
25842 PR tree-optimization/66652
25843 * tree-parloops.c (try_transform_to_exit_first_loop_alt): Use
25844 max_loop_iterations to determine if nit + 1 overflows.
25845
25846 2015-06-30 Richard Biener <rguenther@suse.de>
25847
25848 * tree-vrp.c (register_edge_assert_for_2): Also register
25849 asserts for dominating conversion results.
25850
25851 2015-06-30 Bin Cheng <bin.cheng@arm.com>
25852
25853 * tree-ssa-loop-ivopts.c (record_sub_use): Don't reset ssa_name
25854 field in struct iv.
25855
25856 2015-06-29 Jack Howarth <howarth.at.gcc@gmail.com>
25857
25858 PR target/66509
25859 * configure.ac: Fix filds and fildq test for 64-bit.
25860 * configure: Regenerated.
25861
25862 2015-06-29 Nathan Sidwell <nathan@codesourcery.com>
25863
25864 * config/nvptx/nvptx.md (nvptx_reorg_subreg): New fn, broken out of ...
25865 (nvptx_reorg): Here. Keep the non-subreg pieces.
25866
25867 2015-06-29 H.J. Lu <hongjiu.lu@intel.com>
25868
25869 * config/gnu-user.h (GNU_USER_TARGET_ENDFILE_SPEC): Use
25870 PIE_SPEC and NO_PIE_SPEC if HAVE_LD_PIE is defined.
25871
25872 2015-06-29 Uros Bizjak <ubizjak@gmail.com>
25873
25874 * config/i386/i386.md (*jcc_1): Use %! in asm template.
25875 Set attribute "length_nobnd" instead of "length".
25876 (*jcc_2): Ditto.
25877 (jump): Ditto.
25878 (*jcc_1_bnd, *jcc_2_bnd, jump_bnd): Remove insn patterns.
25879
25880 2015-06-29 Sandra Loosemore <sandra@codesourcery.com>
25881
25882 * config/nios2/nios2.c (nios2_delegitimize_address): Make
25883 assert less restrictive.
25884
25885 2015-06-29 Manuel López-Ibáñez <manu@gcc.gnu.org>
25886
25887 PR fortran/66605
25888 * cgraphunit.c (cgraph_node::finalize_function): Do not call
25889 do_warn_unused_parameter.
25890 * function.c (do_warn_unused_parameter): Move from here.
25891 * function.h (do_warn_unused_parameter): Do not declare.
25892
25893 2015-06-29 Matthew Wahab <matthew.wahab@arm.com>
25894
25895 PR target/65697
25896 * gcc.target/arm/armv-sync-comp-swap.c: New.
25897 * gcc.target/arm/armv-sync-op-acquire.c: New.
25898 * gcc.target/arm/armv-sync-op-full.c: New.
25899 * gcc.target/arm/armv-sync-op-release.c: New.
25900
25901 2015-06-29 Matthew Wahab <matthew.wahab@arm.com>
25902
25903 PR target/65697
25904 * config/armc/arm.c (arm_split_compare_and_swap): For ARMv8, replace an
25905 initial acquire barrier with final barrier.
25906
25907 2015-06-29 Matthew Wahab <matthew.wahab@arm.com>
25908
25909 PR target/65697
25910 * config/armc/arm.c (arm_split_atomic_op): For ARMv8, replace an
25911 initial acquire barrier with final barrier.
25912
25913 2015-06-29 Richard Henderson <rth@redhat.com>
25914
25915 * config/i386/constraints.md (Bf): New constraint.
25916 * config/i386/i386-c.c (ix86_target_macros): Define
25917 __GCC_ASM_FLAG_OUTPUTS__.
25918 * config/i386/i386.c (ix86_md_asm_adjust): Handle =@cc* constraints
25919 as flags outputs.
25920 * doc/extend.texi (FlagOutputOperands): Document them.
25921
25922 2015-06-29 Jiong Wang <jiong.wang@arm.com>
25923
25924 * config/arch64/aarch64.md (UNSPEC_TLSLE): New enumeration.
25925 * config/arch64/aarch64.md (tlsle_small): Rename to tlsle and use new
25926 unspec name.
25927 (tlsle_small_<mode>): Rename to tlsle_<mode> and use new unspec name.
25928 * config/arch64/aarch64-protos.h (arch64_symbol_type): Rename
25929 SYMBOL_SMALL_TPREL to SYMBOL_TLSLE.
25930 (aarch64_symbol_context): Ditto.
25931 * config/aarch64/aarch64.c (aarch64_load_symref_appropriately): Ditto
25932 and use new pattern name.
25933 (aarch64_expand_mov_immediate): Ditto.
25934 (aarch64_print_operand): Ditto.
25935 (aarch64_classify_tls_symbol): Ditto.
25936
25937 2015-06-29 Marek Polacek <polacek@redhat.com>
25938 Marc Glisse <marc.glisse@inria.fr>
25939
25940 * fold-const.c (fold_binary_loc): Move X - (X / Y) * Y -> X % Y to ...
25941 * match.pd: ... pattern here.
25942
25943 2015-06-29 Tom de Vries <tom@codesourcery.com>
25944
25945 * tree-parloops.c (try_transform_to_exit_first_loop_alt): Simplify
25946 function structure.
25947
25948 2015-06-29 Matthew Wahab <matthew.wahab@arm.com>
25949
25950 * doc/invoke.texi (Aarch64 Options, -march): Split out arch and
25951 feature description, split out the native option, add a link to
25952 the feature documentation, rearrange and slightly rewrite text.
25953 (Aarch64 options, -mcpu): Likewise.
25954 (Aarch64 options, Feature Modifiers): Add an anchor. Mention
25955 +rdma implies Adv. SIMD.
25956
25957 2015-06-29 Marek Polacek <polacek@redhat.com>
25958
25959 PR c/66322
25960 * function.c (stack_protect_epilogue): Remove a cast to int.
25961 * doc/invoke.texi: Update -Wswitch-bool description.
25962
25963 2015-06-29 Richard Biener <rguenther@suse.de>
25964
25965 * genmatch.c (add_operator): Treat ADDR_EXPR as atom.
25966 * fold-const.c (fold_binary_loc): Move &A - &B simplification
25967 via ptr_difference_const ...
25968 * match.pd: ... here.
25969 When matching (X ^ Y) == Y also match with swapped operands.
25970
25971 2015-06-29 Richard Biener <rguenther@suse.de>
25972
25973 * lto-streamer.h (LTO_major_version): Bump to 5.
25974
25975 2015-06-29 Richard Biener <rguenther@suse.de>
25976
25977 PR tree-optimization/66677
25978 * tree-vect-stmts.c (vect_transform_stmt): Make assert about
25979 STMT_VINFO_VEC_STMT clobbering less strict.
25980
25981 2015-06-29 Kugan Vivekanandarajah <kuganv@linaro.org>
25982
25983 PR middle-end/64130
25984 * tree-vrp.c (extract_range_from_binary_expr_1): For unsigned
25985 division, compute max and min when value ranges for dividend and
25986 divisor are available.
25987
25988 2015-06-28 Chung-Lin Tang <cltang@codesourcery.com>
25989 Sandra Loosemore <sandra@codesourcery.com>
25990
25991 * regrename.h (regrename_do_replace): Change to return bool.
25992 * regrename.c (rename_chains): Check return value of
25993 regname_do_replace.
25994 (regrename_do_replace): Re-validate the modified insns and
25995 return bool status.
25996 * config/aarch64/cortex-a57-fma-steering.c (rename_single_chain):
25997 Update to match rename_chains changes.
25998 * config/c6x/c6x.c (try_rename_operands): Assert that
25999 regrename_do_replace returns true.
26000
26001 2015-06-28 Uros Bizjak <ubizjak@gmail.com>
26002
26003 * config/i386/i386.md (<mode>_ldx): Do not zero-extend non-Pmode
26004 operand 2 here. Use copy_addr_to_reg to copy non-index
26005 register operand 2 to a temporary.
26006 (<mode>_stx): Ditto for operand 1.
26007 (*<mode>_ldx, *<mode>_stx): Remove enclosing parallel.
26008 * config/i386/i386.c (ix86_load_bounds): Zero-extend non-Pmode ptr here.
26009 (ix86_store_bounds): Ditto.
26010
26011 2015-06-27 Patrick Palka <ppalka@gcc.gnu.org>
26012
26013 * print-tree.c (print_node) [TREE_VEC]: Print its length.
26014
26015 2015-06-26 Andrew MacLeod <amacleod@redhat.com>
26016
26017 * gimple.c (gimple_call_set_fndecl): Remove.
26018 * gimple.h (gimple_call_set_fndecl): Relocate to gimple.h and call
26019 build1_loc directly instead of build_fold_addr_expr_loc.
26020
26021 2015-06-26 Richard Sandiford <richard.sandiford@arm.com>
26022
26023 * hash-map.h (hash_map::traverse): Use the definition of the
26024 Key typedef rather than the typedef itself.
26025
26026 2015-06-26 Martin Jambor <mjambor@suse.cz>
26027
26028 PR debug/66301
26029 * tree-ssa-pre.c (before_dom_children): Check that dump_file is not
26030 NULL instead of calling dump_enabled_p.
26031
26032 2015-06-26 James Greenhalgh <james.greenhalgh@arm.com>
26033
26034 * config/aarch64/aarch64.opt: (override): New.
26035 * doc/invoke.texi (override): Document.
26036 * config/aarch64/aarch64.c (aarch64_flag_desc): New
26037 (aarch64_fusible_pairs): Likewise.
26038 (aarch64_tuning_flags): Likewise.
26039 (aarch64_tuning_override_function): Likewise.
26040 (aarch64_tuning_override_functions): Likewise.
26041 (aarch64_parse_one_option_token): Likewise.
26042 (aarch64_parse_boolean_options): Likewise.
26043 (aarch64_parse_fuse_string): Likewise.
26044 (aarch64_parse_tune_string): Likewise.
26045 (aarch64_parse_one_override_token): Likewise.
26046 (aarch64_parse_override_string): Likewise.
26047 (aarch64_override_options): Parse the -override string if it
26048 is present.
26049
26050 2015-06-26 James Greenhalgh <james.greenhalgh@arm.com>
26051
26052 * config/aarch64/aarch64-protos.h (tune_params): Remove
26053 const from members.
26054 (aarch64_tune_params): Remove const, change to no longer be
26055 a pointer.
26056 * config/aarch64/aarch64.c (aarch64_tune_params): Remove const,
26057 change to no longer be a pointer, initialize to generic_tunings.
26058 (aarch64_min_divisions_for_recip_mul): Change dereference of
26059 aarch64_tune_params to member access.
26060 (aarch64_reassociation_width): Likewise.
26061 (aarch64_rtx_mult_cost): Likewise.
26062 (aarch64_address_cost): Likewise.
26063 (aarch64_branch_cost): Likewise.
26064 (aarch64_rtx_costs): Likewise.
26065 (aarch64_register_move_cost): Likewise.
26066 (aarch64_memory_move_cost): Likewise.
26067 (aarch64_sched_issue_rate): Likewise.
26068 (aarch64_builtin_vectorization_cost): Likewise.
26069 (aarch64_override_options): Take a copy of the selected tuning
26070 struct in to aarch64_tune_params, rather than just setting
26071 a pointer, change dereferences of aarch64_tune_params to member
26072 accesses.
26073 (aarch64_override_options_after_change): Change dereferences of
26074 aarch64_tune_params to member access.
26075 (aarch64_macro_fusion_p): Likewise.
26076 (aarch_macro_fusion_pair_p): Likewise.
26077 * config/aarch64/cortex-a57-fma-steering.c (gate): Likewise.
26078
26079 2015-06-26 James Greenhalgh <james.greenhalgh@arm.com>
26080
26081 * config/aarch64/aarch64.h (AARCH64_FL_USE_FMA_STEERING_PASS): Delete.
26082 (aarch64_tune_flags): Likewise.
26083 (AARCH64_TUNE_FMA_STEERING): Likewise.
26084 * config/aarch64/aarch64-cores.def (cortex-a57): Remove reference
26085 to AARCH64_FL_USE_FMA_STEERING_PASS.
26086 (cortex-a57.cortex-a53): Likewise.
26087 (cortex-a72): Use cortexa72_tunings.
26088 (cortex-a72.cortex-a53): Likewise.
26089 (exynos-m1): Likewise.
26090 * config/aarch64/aarch64-protos.h (tune_params): Add
26091 a field: extra_tuning_flags.
26092 * config/aarch64/aarch64-tuning-flags.def: New.
26093 * config/aarch64/aarch64-protos.h (AARCH64_EXTRA_TUNING_OPTION): New.
26094 (aarch64_extra_tuning_flags): Likewise.
26095 (aarch64_tune_params): Declare here.
26096 * config/aarch64/aarch64.c (generic_tunings): Set extra_tuning_flags.
26097 (cortexa53_tunings): Likewise.
26098 (cortexa57_tunings): Likewise.
26099 (thunderx_tunings): Likewise.
26100 (xgene1_tunings): Likewise.
26101 (cortexa72_tunings): New.
26102 * config/aarch64/cortex-a57-fma-steering.c: Include aarch64-protos.h.
26103 (gate): Check against aarch64_tune_params.
26104 * config/aarch64/t-aarch64 (cortex-a57-fma-steering.o): Depend on
26105 aarch64-protos.h.
26106
26107 2015-06-26 James Greenhalgh <james.greenhalgh@arm.com>
26108
26109 * config/aarch64/aarch64-fusion-pairs.def: New.
26110 * config/aarch64/aarch64-protos.h (aarch64_fusion_pairs): New.
26111 * config/aarch64/aarch64.c (AARCH64_FUSE_NOTHING): Move to
26112 aarch64_fusion_pairs.
26113 (AARCH64_FUSE_MOV_MOVK): Likewise.
26114 (AARCH64_FUSE_ADRP_ADD): Likewise.
26115 (AARCH64_FUSE_MOVK_MOVK): Likewise.
26116 (AARCH64_FUSE_ADRP_LDR): Likewise.
26117 (AARCH64_FUSE_CMP_BRANCH): Likewise.
26118
26119 2015-06-26 Jiong Wang <jiong.wang@arm.com>
26120
26121 * config/aarch64/aarch64-protos.h (aarch64_symbol_type): New type
26122 SYMBOL_SMALL_GOT_28K.
26123 * config/aarch64/aarch64.md: (ldr_got_small_<mode>): Support new GOT
26124 relocation modifiers.
26125 (unspec): New enum "UNSPEC_GOTMALLPIC28K.
26126 (ldr_got_small_28k_<mode>): New.
26127 (ldr_got_small_28k_sidi): New.
26128 * config/aarch64/iterators.md (got_modifier): New mode iterator.
26129 * config/aarch64/aarch64-otps.h (aarch64_code_model): New model.
26130 * config/aarch64/aarch64.c (aarch64_load_symref_appropriately): Support
26131 SYMBOL_SMALL_GOT_28K.
26132 (aarch64_rtx_costs): Add costs for new instruction sequences.
26133 (initialize_aarch64_code_model): Initialize new model.
26134 (aarch64_classify_symbol): Recognize new model and new symbol classification.
26135 (aarch64_asm_preferred_eh_data_format): Support new model.
26136 (aarch64_load_symref_appropriately): Generate new instruction
26137 sequences for -fpic.
26138 (TARGET_USE_PSEUDO_PIC_REG): New definition.
26139 (aarch64_use_pseudo_pic_reg): New function.
26140
26141 2015-06-26 Jiong Wang <jiong.wang@arm.com>
26142
26143 * config/aarch64/aarch64-protos.h (aarch64_symbol_type): Rename
26144 SYMBOL_SMALL_GOT to SYMBOL_SMALL_GOT_4G.
26145 * config/aarch64/aarch64.c (aarch64_load_symref_appropriately): Ditto.
26146 (aarch64_expand_mov_immediate): Ditto.
26147 (aarch64_print_operand): Ditto.
26148 (aarch64_classify_symbol): Ditto.
26149
26150 2015-06-26 Nathan Sidwell <nathan@codesourcery.com>
26151
26152 * config/nvptx/nvptx.md (call_operation): Remove unused variables.
26153
26154 2015-06-26 Bin Cheng <bin.cheng@arm.com>
26155
26156 PR bootstrap/66638
26157 * tree-ssa-loop-niter.c (loop_exits_before_overflow): Skip if
26158 assertion failed. Remove assertion itself.
26159
26160 2015-06-26 Richard Biener <rguenther@suse.de>
26161
26162 * fold-const.c (fold_binary_loc): Remove -A CMP -B -> A CMP B
26163 and -A CMP CST -> A CMP -CST which is redundant with a pattern
26164 in match.pd.
26165 Move (A | C) == D where C & ~D != 0 -> 0, (X ^ Y) ==/!= 0 -> X ==/!= Y,
26166 (X ^ Y) ==/!= {Y,X} -> {X,Y} ==/!= 0 and
26167 (X ^ C1) op C2 -> X op (C1 ^ C2) to ...
26168 * match.pd: ... patterns here.
26169
26170 2015-06-26 Marek Polacek <polacek@redhat.com>
26171
26172 * match.pd ((x | y) & ~(x & y) -> x ^ y,
26173 (x | y) & (~x ^ y) -> x & y): New patterns.
26174
26175 2015-06-26 Richard Sandiford <richard.sandiford@arm.com>
26176
26177 * rtl.h (emit): Add an optional boolean parameter to control
26178 whether barriers are emitted.
26179 * emit-rtl.c (emit): Likewise.
26180 * gensupport.c (get_emit_function): Return null rather than "emit".
26181 * genemit.c (gen_emit_seq): Handle the null return value.
26182 Don't emit barriers after the final instruction in the sequence.
26183 * gentarget-def.c (main): Don't emit barriers after the instruction.
26184
26185 2015-06-26 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
26186
26187 * config/arm/arm.c (arm_output_multireg_pop): Fix use of
26188 TARGET_UNIFIED_ASM.
26189
26190 2015-06-26 Richard Biener <rguenther@suse.de>
26191
26192 * match.pd: Allow associating FLOAT_TYPE_P when flag_associative_math.
26193
26194 2015-06-26 Richard Biener <rguenther@suse.de>
26195
26196 * match.pd: Allow (p +p off1) +p off2 to (p +p (off1 + off2))
26197 irrespective on whether the inner operation has a single use
26198 of both off are constant.
26199
26200 2015-06-26 Uros Bizjak <ubizjak@gmail.com>
26201 Segher Boessenkool <segher@kernel.crashing.org>
26202
26203 PR target/66412
26204 * config/i386/i386.md (various splitters): Use shallow_copy_rtx
26205 before doing PUT_MODE or PUT_CODE on operands to avoid
26206 in-place RTX modification.
26207
26208 2015-06-25 H.J. Lu <hongjiu.lu@intel.com>
26209
26210 * gentarget-def.c (def_target_insn): Cast return of strtol to
26211 unsigned int.
26212
26213 2015-06-25 Andrew MacLeod <amacleod@redhat.com>
26214
26215 * gimple.h (gimple_call_set_fn): Move inline function.
26216 * gimple.c (gimple_call_set_fn): Relocate here.
26217
26218 2015-06-25 Oleg Endo <olegendo@gcc.gnu.org>
26219
26220 PR target/65979
26221 PR target/66611
26222 * config/sh/sh.md (tstsi_t peephole2): Use insn_invalid_p to check if
26223 the replacement insn will work.
26224
26225 2015-06-25 H.J. Lu <hongjiu.lu@intel.com>
26226
26227 * gcc.c (driver_handle_option): Validate -pie if PIE is enabled
26228 by default.
26229
26230 2015-06-25 Andrew MacLeod <amacleod@redhat.com>
26231
26232 * function.h (ipa_opt_pass, ipa_opt_pass_d): Move forward declarations.
26233 * cgraph.h: Include ipa-ref.h and plugin-api.h.
26234 (ipa_opt_pass, ipa_opt_pass_d)): Relocate forward declarations here.
26235 (symtab_node::address_can_be_compared_p): Move function.
26236 * cgraph.c (symtab_node::address_can_be_compared_p): Relocate function
26237 definition here.
26238 * asan.c: Remove ipa-ref.h and plugin-api.h from include list.
26239 * auto-profile.c: Likewise.
26240 * bb-reorder.c: Likewise.
26241 * builtins.c: Likewise.
26242 * calls.c: Likewise.
26243 * cfgexpand.c: Likewise.
26244 * cgraphbuild.c: Likewise.
26245 * cgraphclones.c: Likewise.
26246 * cgraphunit.c: Likewise.
26247 * combine.c: Likewise.
26248 * coverage.c: Likewise.
26249 * data-streamer-in.c: Likewise.
26250 * data-streamer-out.c: Likewise.
26251 * data-streamer.c: Likewise.
26252 * dbxout.c: Likewise.
26253 * dwarf2out.c: Likewise.
26254 * except.c: Likewise.
26255 * expr.c: Likewise.
26256 * final.c: Likewise.
26257 * fold-const.c: Likewise.
26258 * ggc-page.c: Likewise.
26259 * gimple-fold.c: Likewise.
26260 * gimple-iterator.c: Likewise.
26261 * gimple-pretty-print.c: Likewise.
26262 * gimple-streamer-in.c: Likewise.
26263 * gimple-streamer-out.c: Likewise.
26264 * gimple.c: Likewise.
26265 * gimplify.c: Likewise.
26266 * ipa-chkp.c: Likewise.
26267 * ipa-comdats.c: Likewise.
26268 * ipa-cp.c: Likewise.
26269 * ipa-devirt.c: Likewise.
26270 * ipa-icf-gimple.c: Likewise.
26271 * ipa-icf.c: Likewise.
26272 * ipa-inline-analysis.c: Likewise.
26273 * ipa-inline-transform.c: Likewise.
26274 * ipa-inline.c: Likewise.
26275 * ipa-polymorphic-call.c: Likewise.
26276 * ipa-profile.c: Likewise.
26277 * ipa-prop.c: Likewise.
26278 * ipa-pure-const.c: Likewise.
26279 * ipa-ref.c: Likewise.
26280 * ipa-reference.c: Likewise.
26281 * ipa-split.c: Likewise.
26282 * ipa-utils.c: Likewise.
26283 * ipa-visibility.c: Likewise.
26284 * ipa.c: Likewise.
26285 * langhooks.c: Likewise.
26286 * lto-cgraph.c: Likewise.
26287 * lto-compress.c: Likewise.
26288 * lto-opts.c: Likewise.
26289 * lto-section-in.c: Likewise.
26290 * lto-section-out.c: Likewise.
26291 * lto-streamer-in.c: Likewise.
26292 * lto-streamer-out.c: Likewise.
26293 * lto-streamer.c: Likewise.
26294 * omp-low.c: Likewise.
26295 * opts-global.c: Likewise.
26296 * passes.c: Likewise.
26297 * predict.c: Likewise.
26298 * print-tree.c: Likewise.
26299 * profile.c: Likewise.
26300 * ree.c: Likewise.
26301 * sanopt.c: Likewise.
26302 * stor-layout.c: Likewise.
26303 * symtab.c: Likewise.
26304 * toplev.c: Likewise.
26305 * trans-mem.c: Likewise.
26306 * tree-cfg.c: Likewise.
26307 * tree-chkp.c: Likewise.
26308 * tree-eh.c: Likewise.
26309 * tree-emutls.c: Likewise.
26310 * tree-inline.c: Likewise.
26311 * tree-nested.c: Likewise.
26312 * tree-parloops.c: Likewise.
26313 * tree-pretty-print.c: Likewise.
26314 * tree-profile.c: Likewise.
26315 * tree-sra.c: Likewise.
26316 * tree-ssa-alias.c: Likewise.
26317 * tree-ssa-live.c: Likewise.
26318 * tree-ssa-loop-ivcanon.c: Likewise.
26319 * tree-ssa-loop-ivopts.c: Likewise.
26320 * tree-ssa-pre.c: Likewise.
26321 * tree-ssa-sccvn.c: Likewise.
26322 * tree-ssa-strlen.c: Likewise.
26323 * tree-ssa-structalias.c: Likewise.
26324 * tree-streamer-in.c: Likewise.
26325 * tree-streamer-out.c: Likewise.
26326 * tree-streamer.c: Likewise.
26327 * tree-switch-conversion.c: Likewise.
26328 * tree-tailcall.c: Likewise.
26329 * tree-vect-data-refs.c: Likewise.
26330 * tree-vect-stmts.c: Likewise.
26331 * tree-vectorizer.c: Likewise.
26332 * tree.c: Likewise.
26333 * tsan.c: Likewise.
26334 * ubsan.c: Likewise.
26335 * value-prof.c: Likewise.
26336 * varasm.c: Likewise.
26337 * varpool.c: Likewise.
26338 * config/arm/arm.c: Likewise.
26339 * config/bfin/bfin.c: Likewise.
26340 * config/c6x/c6x.c: Likewise.
26341 * config/cris/cris.c: Likewise.
26342 * config/darwin-c.c: Likewise.
26343 * config/darwin.c: Likewise.
26344 * config/i386/i386.c: Likewise.
26345 * config/i386/winnt.c: Likewise.
26346 * config/microblaze/microblaze.c: Likewise.
26347 * config/mips/mips.c: Likewise.
26348 * config/rs6000/rs6000.c: Likewise.
26349 * config/rx/rx.c: Likewise.
26350 * config/s390/s390.c: Likewise.
26351 * config/tilegx/mul-tables.c: Likewise.
26352
26353 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
26354
26355 * config/aarch64/aarch64.c, config/alpha/alpha.c,
26356 config/arm/arm.c, config/avr/avr.c, config/bfin/bfin.c,
26357 config/c6x/c6x.c, config/cr16/cr16.c, config/cris/cris.c,
26358 config/fr30/fr30.c, config/frv/frv.c, config/h8300/h8300.c,
26359 config/i386/i386.c, config/ia64/ia64.c, config/iq2000/iq2000.c,
26360 config/lm32/lm32.c, config/m32c/m32c.c, config/m32r/m32r.c,
26361 config/m68k/m68k.c, config/mcore/mcore.c, config/mep/mep.c,
26362 config/microblaze/microblaze.c, config/mips/mips.c,
26363 config/mmix/mmix.c, config/mn10300/mn10300.c,
26364 config/moxie/moxie.c, config/msp430/msp430.c,
26365 config/nds32/nds32.c, config/nios2/nios2.c, config/nvptx/nvptx.c,
26366 config/pa/pa.c, config/pdp11/pdp11.c, config/rl78/rl78.c,
26367 config/rs6000/rs6000.c, config/rx/rx.c, config/s390/s390.c,
26368 config/sh/sh.c, config/sparc/sparc.c, config/spu/spu.c,
26369 config/stormy16/stormy16.c, config/tilegx/tilegx.c,
26370 config/tilepro/tilepro.c, config/v850/v850.c, config/vax/vax.c,
26371 config/visium/visium.c, config/xtensa/xtensa.c: Add comment above
26372 target-def.h include.
26373 * config/ft32/ft32.c: Likewise. Fix misapplied hunk.
26374
26375 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
26376
26377 * Makefile.in (TARGET_DEF): Add target-insns.def.
26378 (.PRECIOUS, simple_rtl_generated_h): Add insn-target-def.h.
26379 (build/gentarget-def.o): New rule.
26380 (genprogrtl): Add target-def.
26381 * target-insns.def, gentarget-def.c: New files.
26382 * target.def: Add targetm.have_* and targetm.gen_* hooks,
26383 based on the contents of target-insns.def.
26384 * defaults.h (HAVE_simple_return, gen_simple_return): Delete.
26385 (HAVE_return, gen_return): Delete.
26386 * target-def.h: Include insn-target-def.h.
26387 * cfgrtl.c (force_nonfallthru_and_redirect): Use targetm interface
26388 instead of direct calls. Rely on them to do the appropriate assertions.
26389 * function.c (gen_return_pattern): Likewise. Return an rtx_insn *.
26390 (convert_jumps_to_returns): Use targetm interface instead of
26391 direct calls.
26392 (thread_prologue_and_epilogue_insns): Likewise.
26393 * reorg.c (find_end_label, dbr_schedule): Likewise.
26394 * shrink-wrap.h (SHRINK_WRAPPING_ENABLED): Likewise.
26395 * shrink-wrap.c (convert_to_simple_return): Likewise.
26396 (try_shrink_wrapping): Use SHRINK_WRAPPING_ENABLED.
26397
26398 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
26399
26400 * config/aarch64/aarch64.c, config/alpha/alpha.c, config/arm/arm.c,
26401 config/avr/avr.c, config/bfin/bfin.c, config/c6x/c6x.c,
26402 config/cr16/cr16.c, config/cris/cris.c, config/fr30/fr30.c,
26403 config/frv/frv.c, config/ft32/ft32.c, config/h8300/h8300.c,
26404 config/i386/i386.c, config/ia64/ia64.c, config/iq2000/iq2000.c,
26405 config/lm32/lm32.c, config/m32c/m32c.c, config/m32r/m32r.c,
26406 config/m68k/m68k.c, config/mcore/mcore.c, config/mep/mep.c,
26407 config/microblaze/microblaze.c, config/mips/mips.c, config/mmix/mmix.c,
26408 config/mn10300/mn10300.c, config/moxie/moxie.c, config/msp430/msp430.c,
26409 config/nds32/nds32.c, config/nios2/nios2.c, config/nvptx/nvptx.c,
26410 config/pa/pa.c, config/pdp11/pdp11.c, config/rl78/rl78.c,
26411 config/rs6000/rs6000.c, config/rx/rx.c, config/s390/s390.c,
26412 config/sh/sh.c, config/sparc/sparc.c, config/spu/spu.c,
26413 config/stormy16/stormy16.c, config/tilegx/tilegx.c,
26414 config/tilepro/tilepro.c, config/v850/v850.c, config/vax/vax.c,
26415 config/visium/visium.c, config/xtensa/xtensa.c: Move target-def.h
26416 includes to end.
26417
26418 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
26419
26420 * hash-map-traits.h (simple_hashmap_traits::key_type): New typedef.
26421 (unbounded_int_hashmap_traits::key_type): Likewise.
26422 * hash-map.h (hash_map): Get the key type from the traits.
26423 * hash-traits.h (default_hash_traits): By default, inherit from the
26424 template parameter.
26425 * alias.c (alias_set_traits): Delete.
26426 (alias_set_entry_d::children): Use alias_set_hash as the first
26427 template parameter.
26428 (record_alias_subset): Update accordingly.
26429 * except.c (tree_hash_traits): Delete.
26430 (type_to_runtime_map): Use tree_hash as the first template parameter.
26431 (init_eh): Update accordingly.
26432 * genmatch.c (capture_id_map_hasher): Delete.
26433 (cid_map_t): Use nofree_string_hash as first template parameter.
26434 * ipa-icf.h (symbol_compare_hashmap_traits): Delete.
26435 * ipa-icf.c (sem_item_optimizer::subdivide_classes_by_sensitive_refs):
26436 Use symbol_compare_hash as the first template parameter in
26437 subdivide_hash_map.
26438 * mem-stats.h (mem_usage_pair::mem_alloc_hashmap_traits): Delete.
26439 (mem_usage_pair::mem_map_t): Use mem_location_hash as the first
26440 template parameter.
26441 * passes.c (pass_registry_hasher): Delete.
26442 (name_to_pass_map): Use nofree_string_hash as the first template
26443 parameter.
26444 (register_pass_name): Update accordingly.
26445 * sanopt.c (sanopt_tree_map_traits): Delete.
26446 (sanopt_tree_triplet_map_traits): Delete.
26447 (sanopt_ctx::asan_check_map): Use tree_operand_hash as the first
26448 template parameter.
26449 (sanopt_ctx::vptr_check_map): Use sanopt_tree_triplet_hash as
26450 the first template parameter.
26451 * sese.c (rename_map_hasher): Delete.
26452 (rename_map_type): Use tree_ssa_name_hash as the first template
26453 parameter.
26454 * symbol-summary.h (function_summary::summary_hashmap_traits): Delete.
26455 (function_summary::m_map): Use map_hash as the first template
26456 parameter.
26457 (function_summary::release): Update accordingly.
26458 * tree-if-conv.c (phi_args_hash_traits): Delete.
26459 (predicate_scalar_phi): Use tree_operand_hash as the first template
26460 parameter to phi_arg_map.
26461 * tree-inline.h (dependence_hasher): Delete.
26462 (copy_body_data::dependence_map): Use dependence_hash as the first
26463 template parameter.
26464 * tree-inline.c (remap_dependence_clique): Update accordingly.
26465 * tree-ssa-strlen.c (stridxlist_hash_traits): Delete.
26466 (decl_to_stridxlist_htab): Use tree_decl_hash as the first template
26467 parameter.
26468 (addr_stridxptr): Update accordingly.
26469 * value-prof.c (profile_id_traits): Delete.
26470 (cgraph_node_map): Use profile_id_hash as the first template
26471 parameter.
26472 (init_node_map): Update accordingly.
26473 * config/alpha/alpha.c (string_traits): Delete.
26474 (machine_function::links): Use nofree_string_hash as the first
26475 template parameter.
26476 (alpha_use_linkage, alpha_write_linkage): Update accordingly.
26477 * config/m32c/m32c.c (pragma_traits): Delete.
26478 (pragma_htab): Use nofree_string_hash as the first template parameter.
26479 (m32c_note_pragma_address): Update accordingly.
26480 * config/mep/mep.c (pragma_traits): Delete.
26481 (pragma_htab): Use nofree_string_hash as the first template parameter.
26482 (mep_note_pragma_flag): Update accordingly.
26483 * config/mips/mips.c (mips16_flip_traits): Delete.
26484 (mflip_mips16_htab): Use nofree_string_hash as the first template
26485 parameter.
26486 (mflip_mips16_use_mips16_p): Update accordingly.
26487 (local_alias_traits): Delete.
26488 (mips16_local_aliases): Use nofree_string_hash as the first template
26489 parameter.
26490 (mips16_local_alias): Update accordingly.
26491
26492 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
26493
26494 * hash-map-traits.h (default_hashmap_traits): Delete.
26495
26496 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
26497
26498 * hash-map-traits.h (unbounded_hashmap_traits): New class.
26499 (unbounded_int_hashmap_traits): Likewise.
26500 * cfgexpand.c (part_traits): Use unbounded_int_hashmap_traits.
26501
26502 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
26503
26504 * ipa-icf.h (symbol_compare_hash): New class.
26505 (symbol_compare_hashmap_traits): Use it.
26506 * mem-stats.h (mem_alloc_description::mem_location_hash): New class.
26507 (mem_alloc_description::mem_alloc_hashmap_traits): Use it.
26508 (mem_alloc_description::reverse_mem_map_t): Remove redundant
26509 default_hashmap_traits.
26510 * sanopt.c (sanopt_tree_triplet_hash): New class.
26511 (sanopt_tree_triplet_map_traits): Use it.
26512
26513 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
26514
26515 * gengtype-parse.c (require_template_declaration): Allow '+' in
26516 template parameters. Consolidate cases.
26517 * hash-traits.h (int_hash): New class.
26518 * alias.c (alias_set_hash): New structure.
26519 (alias_set_traits): Use it.
26520 * symbol-summary.h (function_summary::map_hash): New class.
26521 (function_summary::summary_hashmap_traits): Use it.
26522 * tree-inline.h (dependence_hash): New class.
26523 (dependence_hasher): Use it.
26524 * tree-ssa-reassoc.c (oecount_hasher): Use int_hash.
26525 * value-prof.c (profile_id_hash): New class.
26526 (profile_id_traits): Use it.
26527
26528 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
26529
26530 * config/mips/mips.c (mips16_flip_traits): Use it.
26531 (local_alias_traits, mips16_local_aliases): Convert from a map of
26532 rtxes to a map of symbol names.
26533 (mips16_local_alias): Update accordingly.
26534
26535 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
26536
26537 * hash-traits.h (string_hash, nofree_string_hash): New classes.
26538 * genmatch.c (capture_id_map_hasher): Use nofree_string_hash.
26539 * passes.c (pass_registry_hasher): Likewise.
26540 * config/alpha/alpha.c (string_traits): Likewise.
26541 * config/i386/winnt.c (i386_find_on_wrapper_list): Likewise.
26542 * config/m32c/m32c.c (pragma_traits): Likewise.
26543 * config/mep/mep.c (pragma_traits): Likewise.
26544
26545 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
26546
26547 * tree-hash-traits.h (tree_hash): New class.
26548 * except.c: Include tree-hash-traits.h.
26549 (tree_hash_traits): Use tree_hash.
26550
26551 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
26552
26553 * tree-hash-traits.h (tree_ssa_name_hasher): New class.
26554 * sese.c: Include tree-hash-traits.h.
26555 (rename_map_hasher): Use tree_ssa_name_hasher.
26556
26557 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
26558
26559 * tree-hash-traits.h (tree_decl_hash): New class.
26560 * tree-ssa-strlen.c: Include tree-hash-traits.h.
26561 (stridxlist_hash_traits): Use tree_decl_hash.
26562
26563 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
26564
26565 * tree-hash-traits.h: New file.
26566 (tree_operand_hash): New class.
26567 * sanopt.c: Include tree-hash-traits.h.
26568 (sanopt_tree_map_traits): Use tree_operand_hash.
26569 * tree-if-conv.c: Include tree-hash-traits.h.
26570 (phi_args_hash_traits): Use tree_operand_hash.
26571 * tree-ssa-uncprop.c: Include tree-hash-traits.h.
26572 (val_ssa_equiv_hash_traits): Use tree_operand_hash.
26573
26574 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
26575
26576 * hash-map-traits.h: Include hash-traits.h.
26577 (simple_hashmap_traits): New class.
26578 * mem-stats.h (hash_map): Change the default traits to
26579 simple_hashmap_traits<default_hash_traits<Key> >.
26580
26581 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
26582
26583 * hash-table.h: Update comments.
26584
26585 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
26586
26587 * hash-traits.h (default_hash_traits): New structure.
26588 * hash-set.h (default_hashset_traits): Delete.
26589 (hash_set): Use default_hash_traits<Key> instead of
26590 default_hashset_traits. Delete hash_entry type and use Key directly.
26591 * ipa-devirt.c (pair_traits): Delete.
26592 (default_hash_traits <type_pair>): Override.
26593 (odr_subtypes_equivalent_p): Remove pair_types template parameter.
26594 (odr_types_equivalent_p, add_type_duplicate): Likewise.
26595
26596 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
26597
26598 * hash-traits.h (typed_noop_remove): Don't require a pointer type.
26599
26600 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
26601
26602 * hash-table.h (has_is_deleted, is_deleted_helper): Delete.
26603 (has_is_empty, is_empty_helper): Delete.
26604 (has_mark_deleted, mark_deleted_helper): Delete.
26605 (has_mark_empty, mark_empty_helper): Delete.
26606 (hash_table::is_deleted): Call the Descriptor unconditionally.
26607 (hash_table::is_empty): Likewise.
26608 (hash_table::mark_deleted): Likewise.
26609 (hash_table::mark_empty): Likewise.
26610
26611 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
26612
26613 * cgraph.h (asmname_hasher): Inherit from ggc_ptr_hash. Remove
26614 redundant typedefs and members.
26615 * coverage.c (counts_entry): Inherit from pointer_hash. Remove
26616 redundant typedefs.
26617 * dwarf2out.c (cu_hash_table_entry_hasher): Likewise.
26618 * ipa-devirt.c (odr_name_hasher): Likewise.
26619 (polymorphic_call_target_hasher): Likewise.
26620 * ira-costs.c (cost_classes_hasher): Likewise.
26621 * statistics.c (stats_counter_hasher): Likewise.
26622 * trans-mem.c (log_entry_hasher): Likewise.
26623 * tree-ssa-dom.c (expr_elt_hasher): Likewise.
26624 * tree-ssa-sccvn.c (vn_phi_hasher, vn_reference_hasher): Likewise.
26625 * tree-ssa-tail-merge.c (same_succ_def): Likewise.
26626 * var-tracking.c (variable_hasher): Likewise.
26627 * valtrack.h (dead_debug_hash_descr): Inherit from free_ptr_hash.
26628 Remove redundant typedefs and members.
26629
26630 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
26631
26632 * hash-traits.h (ggc_cache_hasher): Rename to...
26633 (ggc_cache_remove): ...this and remove typedefs.
26634 (ggc_cache_ptr_hash): New class.
26635 * hash-table.h: Update commentary.
26636 * emit-rtl.c (const_int_hasher): Inherit from ggc_cache_ptr_hash
26637 rather than ggc_cache_hasher.
26638 (const_wide_int_hasher, reg_attr_hasher): Likewise.
26639 (const_double_hasher, const_fixed_hasher): Likewise.
26640 * function.c (insn_cache_hasher): Likewise.
26641 * trans-mem.c (tm_wrapper_hasher): Likewise.
26642 * tree.h (tree_decl_map_cache_hasher): Likewise.
26643 * tree.c (type_cache_hasher, int_cst_hasher): Likewise.
26644 (cl_option_hasher, tree_vec_map_cache_hasher): Likewise.
26645 * ubsan.c (tree_type_map_cache_hasher): Likewise.
26646 * varasm.c (tm_clone_hasher): Likewise.
26647 * config/i386/i386.c (dllimport_hasher): Likewise.
26648 * config/nvptx/nvptx.c (declared_libfunc_hasher): Likewise.
26649 (tree_hasher): Likewise.
26650
26651 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
26652
26653 * hash-traits.h (ggc_hasher): Rename to...
26654 (ggc_remover): ...this and remove typedefs.
26655 (ggc_cache_hasher): Update accordingly. Add typedefs.
26656 (ggc_ptr_hash): New class.
26657 * hash-table.h: Update comment.
26658 * cfgloop.h (loop_exit_hasher): Inherit from ggc_ptr_hash rather than
26659 ggc_hasher.
26660 * cgraph.h (section_name_hasher, cgraph_edge_hasher): Likewise.
26661 (tree_descriptor_hasher): Likewise.
26662 * cgraph.c (function_version_hasher): Likewise.
26663 * dwarf2out.c (indirect_string_hasher, dwarf_file_hasher): Likewise.
26664 (decl_die_hasher, block_die_hasher, decl_loc_hasher): Likewise.
26665 (dw_loc_list_hasher, addr_hasher): Likewise.
26666 * function.h (used_type_hasher): Likewise.
26667 * function.c (temp_address_hasher): Likewise.
26668 * gimple-ssa.h (tm_restart_hasher, ssa_name_hasher): Likewise.
26669 * libfuncs.h (libfunc_hasher): Likewise.
26670 * lto-streamer.h (decl_state_hasher): Likewise.
26671 * optabs.c (libfunc_decl_hasher): Likewise.
26672 * tree-scalar-evolution.c (scev_info_hasher): Likewise.
26673 * varasm.c (section_hasher, object_block_hasher): Likewise.
26674 (const_rtx_desc_hasher): Likewise.
26675 * config/darwin.c (indirection_hasher, cfstring_hasher): Likewise.
26676 * config/rs6000/rs6000.c (toc_hasher, builtin_hasher): Likewise.
26677
26678 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
26679
26680 * hash-traits.h (free_ptr_hash): New class.
26681 * dwarf2out.c (decl_table_entry_hasher): Inherit from free_ptr_hash
26682 rather than typed_free_remove. Remove redudant typedefs.
26683 (external_ref_hasher): Likewise.
26684 * except.c (action_record_hasher, ttypes_filter_hasher): Likewise.
26685 (ehspec_hasher): Likewise.
26686 * ggc-common.c (saving_hasher): Likewise.
26687 * gimplify.c (gimplify_hasher): Likewise.
26688 * haifa-sched.c (delay_i2_hasher): Likewise.
26689 * loop-invariant.c (invariant_expr_hasher): Likewise.
26690 * loop-iv.c (biv_entry_hasher): Likewise.
26691 * loop-unroll.c (iv_split_hasher, var_expand_hasher): Likewise.
26692 * trans-mem.c (tm_mem_map_hasher, tm_memop_hasher): Likewise.
26693 * tree-cfg.c (locus_discrim_hasher): Likewise.
26694 * tree-eh.c (finally_tree_hasher): Likewise.
26695 * tree-into-ssa.c (var_info_hasher): Likewise.
26696 * tree-parloops.c (reduction_hasher, name_to_copy_hasher): Likewise.
26697 * tree-ssa-loop-ivopts.c (iv_inv_expr_hasher): Likewise.
26698 * tree-ssa-phiopt.c (ssa_names_hasher): Likewise.
26699 * tree-ssa-pre.c (expr_pred_trans_d): Likewise.
26700 * tree-ssa-sccvn.c (vn_constant_hasher): Likewise.
26701 * tree-ssa-structalias.c (equiv_class_hasher): Likewise.
26702 (shared_bitmap_hasher): Likewise.
26703 * tree-ssa-threadupdate.c (redirection_data): Likewise.
26704 * tree-vectorizer.h (peel_info_hasher): Likewise.
26705 * tree-vectorizer.c (simduid_to_vf, simd_array_to_simduid): Likewise.
26706 * config/mips/mips.c (mips_lo_sum_offset_hasher): Likewise.
26707
26708 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
26709
26710 * hash-table.h: Update comments.
26711 * hash-traits.h (pointer_hash): Don't inherit from typed_noop_remove.
26712 (nofree_ptr_hash): New class.
26713 * asan.c (asan_mem_ref_hasher): Inherit from nofree_ptr_hash rather
26714 than typed_noop_remove. Remove redudant typedefs.
26715 * attribs.c (attribute_hasher): Likewise.
26716 * cfg.c (bb_copy_hasher): Likewise.
26717 * cselib.c (cselib_hasher): Likewise.
26718 * dse.c (invariant_group_base_hasher): Likewise.
26719 * dwarf2cfi.c (trace_info_hasher): Likewise.
26720 * dwarf2out.c (macinfo_entry_hasher): Likewise.
26721 (comdat_type_hasher, loc_list_hasher): Likewise.
26722 * gcse.c (pre_ldst_expr_hasher): Likewise.
26723 * genmatch.c (id_base): Likewise.
26724 * genrecog.c (test_pattern_hasher): Likewise.
26725 * gimple-ssa-strength-reduction.c (cand_chain_hasher): Likewise.
26726 * haifa-sched.c (delay_i1_hasher): Likewise.
26727 * hard-reg-set.h (simplifiable_subregs_hasher): Likewise.
26728 * ipa-icf.h (congruence_class_group_hash): Likewise.
26729 * ipa-profile.c (histogram_hash): Likewise.
26730 * ira-color.c (allocno_hard_regs_hasher): Likewise.
26731 * lto-streamer.h (string_slot_hasher): Likewise.
26732 * lto-streamer.c (tree_entry_hasher): Likewise.
26733 * plugin.c (event_hasher): Likewise.
26734 * postreload-gcse.c (expr_hasher): Likewise.
26735 * store-motion.c (st_expr_hasher): Likewise.
26736 * tree-sra.c (uid_decl_hasher): Likewise.
26737 * tree-ssa-coalesce.c (coalesce_pair_hasher): Likewise.
26738 (ssa_name_var_hash): Likewise.
26739 * tree-ssa-live.c (tree_int_map_hasher): Likewise.
26740 * tree-ssa-loop-im.c (mem_ref_hasher): Likewise.
26741 * tree-ssa-pre.c (pre_expr_d): Likewise.
26742 * tree-ssa-sccvn.c (vn_nary_op_hasher): Likewise.
26743 * vtable-verify.h (registration_hasher): Likewise.
26744 * vtable-verify.c (vtbl_map_hasher): Likewise.
26745 * config/arm/arm.c (libcall_hasher): Likewise.
26746 * config/i386/winnt.c (wrapped_symbol_hasher): Likewise.
26747 * config/ia64/ia64.c (bundle_state_hasher): Likewise.
26748 * config/sol2.c (comdat_entry_hasher): Likewise.
26749 * fold-const.c (fold): Use nofree_ptr_hash instead of pointer_hash.
26750 (print_fold_checksum, fold_checksum_tree): Likewise.
26751 (debug_fold_checksum, fold_build1_stat_loc): Likewise.
26752 (fold_build2_stat_loc, fold_build3_stat_loc): Likewise.
26753 (fold_build_call_array_loc): Likewise.
26754 * tree-ssa-ccp.c (gimple_htab): Likewise.
26755 * tree-browser.c (tree_upper_hasher): Inherit from nofree_ptr_hash
26756 rather than pointer_type.
26757
26758 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
26759
26760 * hash-traits.h (pointer_hash::mark_deleted, pointer_hash::mark_empty)
26761 (pointer_hash::is_deleted, pointer_hash::is_empty): New functions.
26762
26763 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
26764
26765 * hash-traits.h (ggc_hasher::remove): Take a reference parameter.
26766 (ggc_hasher::ggc_mx): Likewise.
26767 (ggc_cache_hasher): Inherit from ggc_hasher. Remove definitions
26768 that duplicate ggc_hasher ones.
26769
26770 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
26771
26772 * hash-table.h (hash_table): Add gt_cleare_cache as a friend.
26773 (gt_cleare_cache): Check here for deleted and empty entries.
26774 Replace handle_cache_entry with a call to keep_cache_entry.
26775 * hash-traits.h (ggc_cache_hasher::handle_cache_entry): Delete.
26776 (ggc_cache_hasher::keep_cache_entry): New function.
26777 * trans-mem.c (tm_wrapper_hasher::handle_cache_entry): Delete.
26778 (tm_wrapper_hasher::keep_cache_entry): New function.
26779 * tree.h (tree_decl_map_cache_hasher::handle_cache_entry): Delete.
26780 (tree_vec_map_cache_hasher::keep_cache_entry): New function.
26781 * tree.c (type_cache_hasher::handle_cache_entry): Delete.
26782 (type_cache_hasher::keep_cache_entry): New function.
26783 (tree_vec_map_cache_hasher::handle_cache_entry): Delete.
26784 (tree_vec_map_cache_hasher::keep_cache_entry): New function.
26785 * ubsan.c (tree_type_map_cache_hasher::handle_cache_entry): Delete.
26786 (tree_type_map_cache_hasher::keep_cache_entry): New function.
26787 * varasm.c (tm_clone_hasher::handle_cache_entry): Delete.
26788 (tm_clone_hasher::keep_cache_entry): New function.
26789 * config/i386/i386.c (dllimport_hasher::handle_cache_entry): Delete.
26790 (dllimport_hasher::keep_cache_entry): New function.
26791
26792 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
26793
26794 * hash-table.h: Include hash-traits.h.
26795 (typed_free_remove, typed_noop_remove, pointer_hash, ggc_hasher)
26796 (ggc_cache_hasher): Move to...
26797 * hash-traits.h: ...this new file.
26798
26799 2015-06-25 Andrew MacLeod <amacleod@redhat.com>
26800
26801 * tree-core.h (struct tree_optimization_option): Make opts a pointer to
26802 struct cl_optimization.
26803 * tree.h (TREE_OPTIMIZATION): Return the pointer, not the address of it.
26804 * tree.c (make_node_stat): Allocate cl_optimization struct.
26805 (copy_node_stat): Allocate and copy cl_optimization struct.
26806
26807 2015-06-25 Andrew MacLeod <amacleod@redhat.com>
26808
26809 * function.h (struct incoming_args): Move struct.
26810 (pass_by_reference, reference_callee_copied): Remove prototypes.
26811 * emit-rtl.h (struct incoming_args): Relocate struct here.
26812 * calls.h (pass_by_reference, reference_callee_copied): Relocate
26813 prototypes here.
26814 * function.c (pass_by_reference, reference_callee_copied): Move.
26815 * calls.c (pass_by_reference, reference_callee_copied): Relocate here.
26816 * cfgloop.h: Don't include tm.h or hard-reg-set.h.
26817 * ipa-chkp.c: Include calls.h.
26818
26819 2015-06-25 Andrew Macleod <amacleod@redhat.com>
26820
26821 * alias.h (alias_set_type): Move typedef.
26822 * coretypes.h (alias_set_type): Relocate typedef here.
26823 * rtl.h: Don't include alias.h.
26824
26825 2015-06-25 Andrew MacLeod <amacleod@redhat.com>
26826
26827 * cgraph.h (cgraph_rtl_info): Move to rtl.h
26828 (cgraph_node): Maintain pointer to struct cgraph_rtl_info instead of
26829 and instance.
26830 * rtl.h (struct cgraph_rtl_info): Define when HARD_REG_SET available.
26831 * cgraph.c (cgraph_node::rtl_info): Allocate cgraph_rtl_info if one
26832 doesn't exist.
26833 * calls.c: Include hard-reg-set.h before rtl.h.
26834 * ira.c: Likewise.
26835
26836 2015-06-25 Zhouyi Zhou <yizhouzhou@ict.ac.cn>
26837 Vladimir Makarov <vmakarov@redhat.com>
26838
26839 * ira-color.c (assign_hard_reg): Remove unecessary bitmap check.
26840 Add assert.
26841
26842 2015-06-25 Richard Biener <rguenther@suse.de>
26843
26844 * fold-const.c (fold_binary_loc): Move simplification of
26845 (X <<>> C1) & C2 ...
26846 * match.pd: ... here.
26847
26848 2015-06-25 Eric Botcazou <ebotcazou@adacore.com>
26849
26850 * lto-streamer-out.c (DFS::hash_scc): Fix typos & formatting glitches.
26851
26852 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
26853
26854 * match.pd: Add patterns for vec_conds between 1 and 0.
26855
26856 2015-06-25 Richard Biener <rguenther@suse.de>
26857
26858 * tree-vect-stmts.c (vectorizable_conversion): Do not set
26859 STMT_VINFO_VEC_STMT for SLP.
26860 (vectorizable_store): Likewise.
26861 (vectorizable_load): Likewise.
26862 (vect_transform_stmt): Catch SLP vectorization clobbering
26863 STMT_VINFO_VEC_STMT.
26864
26865 2015-06-25 Richard Biener <rguenther@suse.de>
26866
26867 * tree-vect-slp.c (vect_detect_hybrid_slp_stmts): Improve debug
26868 dumping.
26869 (vect_create_mask_and_perm): Do not set STMT_VINFO_VEC_STMT and
26870 cleanup resulting dead code and parameters.
26871 (vect_transform_slp_perm_load): Adjust.
26872
26873 2015-06-25 Nick Clifton <nickc@redhat.com>
26874
26875 * config/bfin/bfin.c (bfin_expand_prologue): Set
26876 current_function_static_stack_size if flag_stack_usage_info is set.
26877 * config/ft32/ft32.c (ft32_expand_prologue): Likewise.
26878 * config/h8300/h8300.c (h8300_expand_prologue): Likewise.
26879 * config/iq2000/iq2000.c (iq2000_expand_prologue): Likewise.
26880 * config/m32c/m32c.c (m32c_emit_prologue): Likewise.
26881
26882 2015-06-25 Tom de Vries <tom@codesourcery.com>
26883
26884 * tree-ssa-loop-manip.c (canonicalize_loop_ivs): Don't claim in header
26885 comment that the generated IV is unsigned.
26886
26887 2015-06-25 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
26888
26889 PR target/29693
26890 * config/arm/arm.c (arm_dbx_register_number): Return
26891 DWARF_FRAME_REGISTERS by default.
26892
26893 2015-06-25 Tom de Vries <tom@codesourcery.com>
26894
26895 * dominance.c (calculate_dominance_info): Fix verify_dominators call
26896 argument. Call verify_dominator when reusing dominator info.
26897
26898 2015-06-24 Kaz Kojima <kkojima@gcc.gnu.org>
26899
26900 PR target/66563
26901 * config/sh/sh.md (GOTaddr2picreg): Add a new operand for
26902 an additional element of the unspec vector. Modify indices
26903 of operands.
26904 (builtin_setjmp_receiver): Pass const0_rtx to gen_GOTaddr2picreg.
26905 * config/sh/sh.c (prepare_move_operands): Pass incremented
26906 const_int to gen_GOTaddr2picreg.
26907 (sh_expand_prologue): Pass const0_rtx to gen_GOTaddr2picreg.
26908
26909 2015-06-24 Alan Lawrence <alan.lawrence@arm.com>
26910
26911 * config/aarch64/aarch64.md (<optab><fcvt_target><GPF:mode>2):
26912 Condition on TARGET_FLOAT.
26913
26914 2015-06-24 Alan Lawrence <alan.lawrence@arm.com>
26915
26916 * doc/invoke.texi: Clarify AArch64 feature modifiers (no)fp, (no)simd
26917 and (no)crypto.
26918
26919 2015-06-24 Alan Lawrence <alan.lawrence@arm.com>
26920
26921 * config/aarch64/aarch64-protos.h (aarch64_err_no_fpadvsimd): New.
26922
26923 * config/aarch64/aarch64.md (mov<mode>/GPF, movtf): Use
26924 aarch64_err_no_fpadvsimd.
26925
26926 * config/aarch64/aarch64.c (aarch64_err_no_fpadvsimd): New.
26927 (aarch64_layout_arg, aarch64_init_cumulative_args): Use
26928 aarch64_err_no_fpadvsimd if !TARGET_FLOAT and we need FP regs.
26929 (aarch64_expand_builtin_va_start, aarch64_setup_incoming_varargs):
26930 Turn error into assert, test TARGET_FLOAT.
26931 (aarch64_gimplify_va_arg_expr): Use aarch64_err_no_fpadvsimd, test
26932 TARGET_FLOAT.
26933
26934 2015-06-24 Aldy Hernandez <aldyh@redhat.com>
26935
26936 PR debug/66482
26937 * dwarf2out.c (gen_formal_parameter_die): Remove assert.
26938
26939 2015-06-24 Ilya Enkovich <enkovich.gnu@gmail.com>
26940
26941 * tree-vect-slp.c (vect_build_slp_tree_1): Init vectype.
26942
26943 2015-06-24 Renlin Li <renlin.li@arm.com>
26944
26945 * config/aarch64/aarch64.h(TARGET_CPU_CPP_BUILTINS): Add
26946 __ARM_ALIGN_MAX_PWR, __ARM_ALIGN_MAX_STACK_PWR.
26947
26948 2015-06-24 Richard Biener <rguenther@suse.de>
26949
26950 * genmatch.c (enum tree_code): Add VIEW_CONVERT[012].
26951 (main): Likewise.
26952 (lower_opt_convert): Support lowering of conditional view_convert.
26953 (parser::parse_operation): Likewise.
26954 (parser::parse_for): Likewise.
26955
26956 2015-06-24 Renlin Li <renlin.li@arm.com>
26957
26958 * varasm.c (emit_local): Use unsigned int for align variable.
26959
26960 2015-06-24 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
26961
26962 PR target/63408
26963 * config/arm/arm.c (vfp3_const_double_for_fract_bits): Disable
26964 for negative numbers.
26965
26966 2015-06-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
26967
26968 PR rtl-optimization/66306
26969 * reload.c (find_reloads): Swap the match_dup info for
26970 commutative operands.
26971
26972 2015-06-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
26973
26974 * config/s390/vx-builtins.md
26975 ("vec_scatter_element<mode>_<non_vec_int>")
26976 ("vec_scatter_element<V_HW_64:mode>_SI"): Replace gf mode
26977 attribute with bhfgq.
26978
26979 2015-06-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
26980
26981 * config/s390/s390-builtins.def: Fix vpopct instruction comments.
26982
26983 2015-06-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
26984
26985 * config/s390/s390-builtin-types.def: Add flag to indicate the
26986 options under which the function type is needed.
26987 * config/s390/s390-builtins.def: Add flag to indicate the options
26988 under which the builtin is enabled.
26989 * config/s390/s390-builtins.h: Add flags parameter to macro
26990 definitions.
26991 (bflags_for_builtin): New function.
26992 (flags_for_builtin): Renamed to ...
26993 (opflags_for_builtin): ... this.
26994 * config/s390/s390-c.c (s390_resolve_overloaded_builtin): Rename
26995 flags_for_builtin to bflags_for_builtin and
26996 flags_overloaded_builtin_var to opflags_overloaded_builtin_var.
26997 * config/s390/s390.c: Add initialization of bflags_builtin and
26998 opflags_builtin arrays.
26999 Remove code for flags_builtin.
27000 (s390_init_builtins): Only create builtin function types if one of
27001 their flags is active.
27002 Only create builtins if all of their flags are active.
27003 (s390_expand_builtin): Rename flags_for_builtin to
27004 opflags_for_builtin.
27005
27006 2015-06-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
27007
27008 * config/s390/vecintrin.h: Remove internal builtins.
27009
27010 2015-06-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
27011
27012 * config/s390/s390.c (s390_secondary_reload): Fix check for
27013 GENERAL_REGS register class.
27014
27015 2015-06-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
27016
27017 * config/s390/s390.c (s390_support_vector_misalignment): Call
27018 default implementation for !TARGET_VX.
27019
27020 2015-06-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
27021
27022 * config/s390/s390.c (s390_legitimate_constant_p): Add
27023 TARGET_VX check.
27024
27025 2015-06-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
27026
27027 * config/s390/s390.c (s390_vector_abi): New variable definition.
27028 (s390_check_type_for_vector_abi): New function.
27029 (TARGET_ASM_FILE_END): New macro definition.
27030 (s390_asm_file_end): New function.
27031 (s390_function_arg): Call s390_check_type_for_vector_abi.
27032 (s390_gimplify_va_arg): Likewise.
27033 * configure: Regenerate.
27034 * configure.ac: Check for .gnu_attribute Binutils feature.
27035
27036 2015-06-23 Chen Gang <gang.chen.5i5j@gmail.com>
27037
27038 PR target/65803
27039 * config/bfin/bfin.c (hwloop_optimize): Initialize
27040 JUMP_LABEL for newly created jump.
27041
27042 2015-06-23 Tristan Gingold <gingold@adacore.com>
27043
27044 * collect-utils.c (collect_wait): Unlink the response file here
27045 instead of...
27046 (do_wait): ...here.
27047 (utils_cleanup): ...and here.
27048
27049 2015-06-23 Richard Sandiford <richard.sandiford@arm.com>
27050
27051 * df-scan.c: Don't include target-def.h.
27052 * targhooks.c: Likewise.
27053 * config/arm/arm-c.c: Likewise.
27054 * config/i386/i386-c.c: Likewise.
27055 * config/nds32/nds32-cost.c: Likewise.
27056 * config/nds32/nds32-fp-as-gp.c: Likewise.
27057 * config/nds32/nds32-intrinsic.c: Likewise.
27058 * config/nds32/nds32-isr.c: Likewise.
27059 * config/nds32/nds32-md-auxiliary.c: Likewise.
27060 * config/nds32/nds32-memory-manipulation.c: Likewise.
27061 * config/nds32/nds32-pipelines-auxiliary.c: Likewise.
27062 * config/nds32/nds32-predicates.c: Likewise.
27063
27064 2015-06-23 Richard Biener <rguenther@suse.de>
27065
27066 PR tree-optimization/66636
27067 * tree-vect-stmts.c (vectorizable_store): Properly compute the
27068 def type for further defs for strided stores.
27069
27070 2015-06-23 Nathan Sidwell <nathan@codesourcery.com>
27071
27072 * config/nvptx/nvptx.md (sel_true<mode>, sel_false<mode>): New
27073 conditional selects.
27074 (setcc_int<mode>, setcc_float<mode>): Reformat.
27075
27076 2015-06-23 Marek Polacek <polacek@redhat.com>
27077
27078 * match.pd ((x + y) - (x | y) -> x & y,
27079 (x + y) - (x & y) -> x | y): New patterns.
27080
27081 2015-06-23 Ludovic Courtès <ludo@gnu.org>
27082
27083 PR 65711
27084 * config/arm/linux-elf.h (LINUX_TARGET_LINK_SPEC): Move
27085 '-dynamic-linker' within %{!shared: ...}.
27086
27087 2015-06-23 Uros Bizjak <ubizjak@gmail.com>
27088
27089 PR target/66560
27090 * config/i386/predicates.md (addsub_vm_operator): New predicate.
27091 (addsub_vs_operator): Ditto.
27092 (addsub_vs_parallel): Ditto.
27093 * config/i386/sse.md (ssedoublemode): Add V4SF and V2DF modes.
27094 (avx_addsubv4df3, avx_addsubv8sf3, sse3_addsubv2df3, sse3_addsubv4sf3):
27095 Put minus RTX before plus and adjust vec_merge selector.
27096 (*avx_addsubv4df3_1, *avx_addsubv4df3_1s, *sse3_addsubv2df3_1)
27097 (*sse_addsubv2df3_1s, *avx_addsubv8sf3_1, *avx_addsubv8sf3_1s)
27098 (*sse3_addsubv4sf3_1, *sse_addsubv4sf3_1s): Remove insn patterns.
27099 (addsub vec_merge splitters): New combiner splitters.
27100 (addsub vec_select/vec_concat splitters): Ditto.
27101
27102 2015-06-23 Bin Cheng <bin.cheng@arm.com>
27103
27104 PR tree-optimization/66449
27105 * tree-ssa-loop-niter.c (loop_exits_before_overflow): Use
27106 POINTER_PLUS_EXPR for pointers.
27107
27108 2015-06-23 Alan Modra <amodra@gmail.com>
27109
27110 * rtlanal.c (commutative_operand_precedence): Correct comments.
27111 * simplify-rtx.c (simplify_plus_minus_op_data_cmp): Delete forward
27112 declaration. Return an int. Distinguish REG,REG return from
27113 others.
27114 (struct simplify_plus_minus_op_data): Make local to function.
27115 (simplify_plus_minus): Don't set canonicalized if merely sorting
27116 registers. Avoid packing ops if nothing changes. White space fixes.
27117
27118 2015-06-22 Pierre-Marie de Rodat <derodat@adacore.com>
27119
27120 * gcc.c (default_compilers): Pass "-o %g.s" to cc1 for headers even if
27121 -fdump-ada-spec is passed but not if -fsyntax-only is.
27122
27123 2015-06-22 Vladimir Makarov <vmakarov@redhat.com>
27124
27125 PR bootstrap/63740
27126 * lra-lives.c (process_bb_lives): Check insn copying the same
27127 reload pseudo and don't create a copy for it.
27128
27129 2015-06-22 Tom de Vries <tom@codesourcery.com>
27130
27131 * tree-parloops.c (transform_to_exit_first_loop_alt): Add update_stmt
27132 for cond_stmt.
27133
27134 2015-06-22 Tom de Vries <tom@codesourcery.com>
27135
27136 * builtins.def (DEF_GOMP_BUILTIN): Test
27137 'flag_tree_parallelize_loops > 1' instead of
27138 'flag_tree_parallelize_loops'. Test flag_cilkplus.
27139
27140 2015-06-22 Tom de Vries <tom@codesourcery.com>
27141
27142 * dominance.c (calculate_dominance_info): Verify dominators if
27143 early-out.
27144
27145 2015-06-22 Marek Polacek <polacek@redhat.com>
27146
27147 * match.pd ((x ^ y) ^ (x | y) -> x & y,
27148 (x & y) + (x ^ y) -> x | y, (x & y) | (x ^ y) -> x | y,
27149 (x & y) ^ (x ^ y) -> x | y, (x & y) + (x | y) -> x + y,
27150 (x | y) - (x ^ y) -> x & y, (x | y) - (x & y) -> x ^ y): New patterns.
27151
27152 2015-06-22 Uros Bizjak <ubizjak@gmail.com>
27153
27154 PR target/65871
27155 * config/i386/i386.c (ix86_rtx_costs) <case COMPARE>: Ignore the
27156 cost of embedded comparison.
27157
27158 2015-06-22 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
27159
27160 PR target/65914
27161 * config/rs6000/predicates.md (altivec_register_operand): Permit
27162 virtual stack registers.
27163 (vsx_register_operand): Likewise.
27164 (vfloat_operand): Likewise.
27165 (vint_operand): Likewise.
27166 (vlogical_operand): Likewise.
27167
27168 2015-06-22 Richard Biener <rguenther@suse.de>
27169
27170 * tree-vectorizer.h (_loop_vec_info): Add scalar_cost_vec
27171 and single_scalar_iteration_cost members.
27172 (LOOP_VINFO_SCALAR_ITERATION_COST): New.
27173 (LOOP_VINFO_SINGLE_SCALAR_ITERATION_COST): Likewise.
27174 (vect_get_single_scalar_iteration_cost): Remove.
27175 * tree-vect-data-refs.c (vect_peeling_hash_get_lowest_cost):
27176 Use LOOP_VINFO_SCALAR_ITERATION_COST.
27177 * tree-vect-loop.c (destroy_loop_vec_info): Free
27178 scalar_cost_vec.
27179 (vect_get_single_scalar_iteration_cost): Compute result into
27180 LOOP_VINFO_SINGLE_SCALAR_ITERATION_COST and
27181 LOOP_VINFO_SCALAR_ITERATION_COST. Make static.
27182 (vect_analyze_loop_2): Call vect_get_single_scalar_iteration_cost.
27183 (vect_estimate_min_profitable_iters): Use them.
27184
27185 2015-06-22 Christian Bruel <christian.bruel@st.com>
27186
27187 PR target/52144
27188 * config/arm/arm.c (add_attribute, arm_insert_attributes): New functions
27189 (TARGET_INSERT_ATTRIBUTES): Define.
27190 (thumb_flipper): New var.
27191 * config/arm/arm.opt (-mflip-thumb): New switch.
27192
27193 2015-06-22 Jan Hubicka <hubicka@ucw.cz>
27194 Martin Liska <mliska@suse.cz>
27195
27196 PR ipa/65908
27197 * ipa-icf.c (sem_item::target_supports_symbol_aliases): Remove
27198 construction of arg_types.
27199 (sem_function::sem_function): Likewise.
27200 (sem_function::~sem_function): Remove destruction of arg_types.
27201 (sem_function::compatible_parm_types_p): New function.
27202 (sem_function::equals_wpa): Reorg matching of return values
27203 and parameter types.
27204 (sem_function::equals_private): Reorg mathcing of argument types.
27205 (sem_function::parse_tree_args): Remove.
27206 * ipa-icf.h (init_wpa): Do not call it.
27207 (parse_tree_args): Remove.
27208 (compatible_parm_types_p): Declare.
27209 (result_type): Remove.
27210 (arg_types): Remove.
27211
27212 2015-06-22 Jan Hubicka <hubicka@ucw.cz>
27213
27214 PR ipa/66351
27215 * ipa-polymorphic-call.c
27216 (ipa_polymorphic_call_context::get_dynamic_type): Fix thinko when
27217 initializing alias oracle; fix formating; set base_alias_set if it
27218 is known.
27219
27220 2015-06-22 Mikhail Maltsev <maltsevm@gmail.com>
27221
27222 * auto-inc-dec.c (reverse_mem, reverse_inc): Remove.
27223 (parse_add_or_inc): Use std::swap instead of reverse_{mem,inc}.
27224 (find_inc): Likewise.
27225 * combine.c (combine_simplify_rtx): Use std::swap instead of manually
27226 swapping.
27227 * df-core.c (df_worklist_dataflow_doublequeue): Likewise.
27228 * df-scan.c (df_swap_refs): Remove.
27229 (df_sort_and_compress_refs): Use std::swap instead of df_swap_refs.
27230 * dominance.c (link_roots): Use std::swap instead of manually swapping.
27231 * expr.c (expand_expr_real_2, do_store_flag): Likewise.
27232 * fold-const.c (fold_relational_const): Likewise.
27233 * genattrtab.c (simplify_test_exp): Likewise.
27234 * gimple-match-head.c (gimple_resimplify2, gimple_resimplify3,
27235 gimple_simplify): Likewise.
27236 * ifcvt.c (noce_try_abs, find_if_header): Likewise.
27237 * internal-fn.c (expand_addsub_overflow, expand_mul_overflow): Likewise.
27238 * ipa-devirt.c (add_type_duplicate): Likewise.
27239 * loop-iv.c (get_biv_step_1, iv_number_of_iterations): Likewise.
27240 * lra-lives.c (lra_setup_reload_pseudo_preferenced_hard_reg): Likewise.
27241 * lra.c (lra_create_copy): Likewise.
27242 * lto-streamer-out.c (DFS::DFS): Likewise.
27243 * modulo-sched.c (get_sched_window): Likewise.
27244 * omega.c (omega_pretty_print_problem): Likewise.
27245 * optabs.c (prepare_float_lib_cmp, expand_mult_highpart): Likewise.
27246 * reload1.c (reloads_unique_chain_p): Likewise.
27247 * sel-sched-ir.c (exchange_lv_sets, exchange_av_sets): Remove.
27248 (exchange_data_sets): Move logic from exchange_{av,lv}_sets here and
27249 use std::swap.
27250 * simplify-rtx.c (simplify_unary_operation_1): Use std::swap instead of
27251 manually swapping.
27252 * tree-if-conv.c (is_cond_scalar_reduction, predicate_scalar_phi,
27253 predicate_mem_writes): Likewise.
27254 * tree-loop-distribution.c (pg_add_dependence_edges): Likewise.
27255 * tree-predcom.c (combine_chains): Likewise.
27256 * tree-ssa-alias.c (nonoverlapping_component_refs_p,
27257 refs_may_alias_p_1): Likewise.
27258 * tree-ssa-ifcombine.c (recognize_if_then_else): Likewise.
27259 * tree-ssa-loop-ivopts.c (extract_cond_operands): Likewise.
27260 * tree-ssa-loop-niter.c (refine_bounds_using_guard,
27261 number_of_iterations_cond): Likewise.
27262 * tree-ssa-phiopt.c (tree_ssa_phiopt_worker): Likewise.
27263 * tree-ssa-sccvn.c (vn_nary_op_compute_hash): Likewise.
27264 * tree-vect-slp.c (vect_build_slp_tree): Likewise.
27265 * tree-vect-stmts.c (supportable_widening_operation): Likewise.
27266 * tree-vrp.c (extract_range_from_binary_expr_1,
27267 extract_range_from_unary_expr_1): Likewise.
27268
27269 2015-06-20 Marek Polacek <polacek@redhat.com>
27270
27271 * common.opt (fsanitize-undefined-trap-on-error): Add Driver.
27272
27273 2015-06-19 Kaz Kojima <kkojima@gcc.gnu.org>
27274
27275 PR target/66591
27276 * config/sh/sh.c (prepare_move_operands): Replace subreg
27277 index term with R0 for base and index addressing.
27278
27279 2015-06-19 Jim Wilson <jim.wilson@linaro.org>
27280
27281 * config/aarch64/aarch64.md (mov<mode>:GPF): Don't call force_reg if
27282 op1 is an fp zero.
27283 (movsf_aarch64): Change condition from register_operand to
27284 aarch64_reg_or_fp_zero for op1. Change type for alternative 6 to
27285 load1. Change type for alternative 7 to store1.
27286 (movdf_aarch64): Likewise.
27287
27288 2015-06-19 James Greenhalgh <james.greenhalgh@arm.com>
27289
27290 * config/vax/vax.md: Adjust sign/zero extend patterns to
27291 handle SUBREGs in operands[1].
27292
27293 2015-06-19 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
27294
27295 * config/i386/i386.c (ix86_function_versions): Use std::swap instead
27296 of manually swapping.
27297 (expand_vec_perm_interleave2): Likewise.
27298
27299 2015-06-19 Ilya Enkovich <enkovich.gnu@gmail.com>
27300
27301 * tree-chkp.c (chkp_compute_bounds_for_assignment): Don't
27302 reuse bounds created for abnormal ssa names.
27303
27304 2015-06-19 Jakub Jelinek <jakub@redhat.com>
27305
27306 * config/nvptx/nvptx.md (allocate_stack): Rename to...
27307 (allocate_stack_<mode>): ... this, and add :P on both
27308 match_operand and unspec.
27309 (allocate_stack): New expander.
27310
27311 2015-06-19 Christian Bruel <christian.bruel@st.com>
27312
27313 PR target/66541
27314 PR target/52144
27315 * config/arm/arm.c (arm_set_current_function): Handle
27316 explicit default options.
27317
27318 2015-06-18 Uros Bizjak <ubizjak@gmail.com>
27319
27320 * config/i386/i386.md (*movsicc_noc_zext): New insn.
27321 (zero-extended cmove with mem peephole2): New pattern.
27322 (cmove with mem peephole2): Merge patterns.
27323
27324 2015-06-18 Segher Boessenkool <segher@kernel.crashing.org>
27325
27326 * config/rs6000/rs6000.h (WORD_REGISTER_OPERATIONS): Delete.
27327
27328 2015-06-18 Steve Ellcey <sellcey@imgtec.com>
27329
27330 * config/mips/mips.c (mips_rtx_costs): Remove HONOR_NAN check.
27331 * config/mips/mips.md (*madd4<mode>): Ditto.
27332 (*nmadd3<mode>) Ditto.
27333 (*nmadd4<mode>_fastmath): Ditto.
27334 (*nmadd3<mode>_fastmath): Ditto.
27335 (*nmsub4<mode>): Ditto.
27336 (*nmsub3<mode>): Ditto.
27337 (*nmsub4<mode>_fastmath): Ditto.
27338 (*nmsub3<mode>_fastmath): Ditto.
27339
27340 2015-06-18 Michael Matz <matz@suse.de>
27341
27342 PR middle-end/66253
27343 * tree-vect-stmts.c (vectorizable_store): Implement non-SLP
27344 grouped strided stores.
27345 (vectorizable_load): Don't use the DR from first_stmt in
27346 the non-SLP grouped strided case.
27347
27348 2015-06-18 Ilya Enkovich <enkovich.gnu@gmail.com>
27349
27350 PR target/66569
27351 * function.c (assign_bounds): Add arguments assign_regs,
27352 assign_special, assign_bt.
27353 (assign_parms): For vararg functions handle bounds in BT
27354 and special slots after incoming vararg bounds.
27355
27356 2015-06-18 Ilya Enkovich <enkovich.gnu@gmail.com>
27357
27358 PR middle-end/66568
27359 * cfgexpand.c (expand_return): Handle missing bounds.
27360 (expand_gimple_stmt_1): Likewise.
27361 * tree-chkp.c (chkp_expand_zero_bounds): New.
27362 * tree-chkp.h (chkp_expand_zero_bounds): New.
27363
27364 2015-06-18 Ilya Enkovich <enkovich.gnu@gmail.com>
27365
27366 PR middle-end/66567
27367 * ipa-chkp.c (chkp_maybe_create_clone): Require
27368 functions to be instrumentable.
27369 * tree-chkp.c (chkp_replace_function_pointer): Use
27370 chkp_instrumentable_p instead of attribute check.
27371
27372 2015-06-18 Richard Biener <rguenther@suse.de>
27373
27374 PR tree-optimization/66510
27375 * tree-vect-stmts.c (vectorizable_load): Properly compute the
27376 number of vector loads for SLP permuted loads.
27377 * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Also
27378 check the stride for loop vectorization.
27379 (vect_enhance_data_refs_alignment): Deal with SLP adjusted
27380 vectorization factor.
27381 (vect_analyze_group_access): If the group size is not a power
27382 of two require a epilogue loop.
27383 * tree-vect-loop.c (vect_analyze_loop_2): Move alignment
27384 compute and optimizing and alias test pruning after final
27385 vectorization factor computation.
27386 * tree-vect-slp.c (vect_build_slp_tree_1): Remove check on
27387 vector alignment.
27388 (vect_transform_slp_perm_load): Properly compute the original
27389 number of vector load stmts.
27390
27391 2015-06-18 Uros Bizjak <ubizjak@gmail.com>
27392
27393 * doc/invoke.texi (-fsanitize-sections): Split @var to avoid
27394 "unlikely character , in @var" warning.
27395
27396 2015-06-17 Uros Bizjak <ubizjak@gmail.com>
27397
27398 * config/i386/i386.c (ix86_function_arg): Nest TARGET_64BIT code.
27399 (ix86_function_arg_advance): Ditto.
27400 (ix86_pass_by_reference): Ditto. Rewrite MS_ABI part.
27401
27402 2015-06-17 Andrew MacLeod <amacleod@redhat.com>
27403
27404 * function.h (struct rtl_data): Remove struct and accessor macros.
27405 * emit-rtl.h (struct rtl_data): Relocate to here.
27406 * Makefile.in (GTFILES): Add emit-rtl.h.
27407 * df-core.c: Include emit-rtl.h.
27408 * genattrtab.c: Likewise.
27409 * genconditions.c: Likewise.
27410 * genpreds.c: Likewise.
27411 * genrecog.c: Likewise.
27412 * regcprop.c: Likewise.
27413 * resource.c: Likewise.
27414 * sched-rgn.c: Likewise.
27415 * config/aarch64/cortex-a57-fma-steering.c: Likewise.
27416 * config/i386/winnt.c: Likewise.
27417
27418 2015-06-17 Jakub Jelinek <jakub@redhat.com>
27419
27420 PR middle-end/66429
27421 * omp-low.c (expand_omp_taskreg, expand_omp_target): Use child_cfun
27422 instead of DECL_STRUCT_FUNCTION (child_fn). Or in has_simduid_loops
27423 and has_force_vectorize_loops flags from cfun into
27424 child_cfun.
27425 (expand_omp_simd): For broken loop, set cfun->has_simduid_loops
27426 if simduid is non-NULL.
27427 * tree-pass.h (make_pass_simduid_cleanup): New prototype.
27428 * passes.def (pass_simduid_cleanup): Add new pass after loop
27429 passes.
27430 * tree-vectorizer.c (adjust_simduid_builtins): Remove one unnecessary
27431 indirection from htab argument's type.
27432 (shrink_simd_arrays): New function.
27433 (vectorize_loops): Use it. Adjust adjust_simduid_builtins caller.
27434 Don't call adjust_simduid_builtins if there are no loops.
27435 (pass_data_simduid_cleanup, pass_simduid_cleanup): New variables.
27436 (pass_simduid_cleanup::execute): New method.
27437 (make_pass_simduid_cleanup): New function.
27438
27439 2017-06-17 Andrew MacLeod <amacleod@redhat.com>
27440
27441 * tree-core.h (tree_target_option): Make opts field a pointer to a
27442 cl_target_option instead of an instance of the struct.
27443 * tree.h (TREE_TARGET_OPTION): Return the pointer, not an address of
27444 the structure.
27445 * tree.c (make_node_stat ): Allocate a cl_target_option struct for
27446 TARGET_OPTION_NODE.
27447 (copy_node_stat): Allocate and copy struct cl_target_option.
27448
27449 2015-06-17 Andrew MacLeod <amacleod@redhat.com>
27450
27451 * tree.h (merge_dllimport_decl_attributes, handle_dll_attribute):
27452 Remove conditional exposure of prototypes.
27453 (ANON_AGGRNAME_FORMAT, ANON_AGGRNAME_P): Delete.
27454 * tree.c (anon_aggrname_format, anon_aggrname_p): New. Replace macro
27455 definitions in tree.h with functions.
27456 * lto-streamer-out.c (DFS_write_tree_body, hash_tree): Use
27457 anon_aggrname_p.
27458 * tree-streamer-out.c (write_ts_decl_minimal_tree_pointers): Likewise.
27459
27460 2015-06-17 Segher Boessenkool <segher@kernel.crashing.org>
27461
27462 * config/rs6000/rs6000.md (*cmp<mode>_internal1): Rename to...
27463 (*cmp<mode>_signed): ... this.
27464 (*cmpsi_internal2, *cmpdi_internal2): Merge, rename to...
27465 (*cmp<mode>_unsigned): ... this. Remove %b.
27466
27467 2015-06-17 Andrew MacLeod <amacleod@redhat.com>
27468
27469 * coretypes.h: Include input.h and as-a.h.
27470 * rtl.h: Include input.h and as-a.h for generator files.
27471 * hwint.c: Include coretypes.h, don't include diagnostic-core.h.
27472 * vec.c: Don't include diagnostic-core.h.
27473 * alias.c: Do not include input.h, line-map.h or is-a.h.
27474 * asan.c: Likewise.
27475 * attribs.c: Likewise.
27476 * auto-inc-dec.c: Likewise.
27477 * auto-profile.c: Likewise.
27478 * bb-reorder.c: Likewise.
27479 * bt-load.c: Likewise.
27480 * builtins.c: Likewise.
27481 * caller-save.c: Likewise.
27482 * calls.c: Likewise.
27483 * ccmp.c: Likewise.
27484 * cfg.c: Likewise.
27485 * cfganal.c: Likewise.
27486 * cfgbuild.c: Likewise.
27487 * cfgcleanup.c: Likewise.
27488 * cfgexpand.c: Likewise.
27489 * cfghooks.c: Likewise.
27490 * cfgloop.c: Likewise.
27491 * cfgloop.h: Likewise.
27492 * cfgloopanal.c: Likewise.
27493 * cfgloopmanip.c: Likewise.
27494 * cfgrtl.c: Likewise.
27495 * cgraph.c: Likewise.
27496 * cgraphbuild.c: Likewise.
27497 * cgraphclones.c: Likewise.
27498 * cgraphunit.c: Likewise.
27499 * cilk-common.c: Likewise.
27500 * combine-stack-adj.c: Likewise.
27501 * combine.c: Likewise.
27502 * compare-elim.c: Likewise.
27503 * convert.c: Likewise.
27504 * coverage.c: Likewise.
27505 * cppbuiltin.c: Likewise.
27506 * cprop.c: Likewise.
27507 * cse.c: Likewise.
27508 * cselib.c: Likewise.
27509 * data-streamer-in.c: Likewise.
27510 * data-streamer-out.c: Likewise.
27511 * data-streamer.c: Likewise.
27512 * dbxout.c: Likewise.
27513 * dce.c: Likewise.
27514 * ddg.c: Likewise.
27515 * debug.c: Likewise.
27516 * df-core.c: Likewise.
27517 * df-problems.c: Likewise.
27518 * df-scan.c: Likewise.
27519 * df.h: Likewise.
27520 * dfp.c: Likewise.
27521 * diagnostic-core.h: Likewise.
27522 * diagnostic.c: Likewise.
27523 * dojump.c: Likewise.
27524 * dominance.c: Likewise.
27525 * domwalk.c: Likewise.
27526 * double-int.c: Likewise.
27527 * dse.c: Likewise.
27528 * dumpfile.c: Likewise.
27529 * dumpfile.h: Likewise.
27530 * dwarf2asm.c: Likewise.
27531 * dwarf2cfi.c: Likewise.
27532 * dwarf2out.c: Likewise.
27533 * emit-rtl.c: Likewise.
27534 * et-forest.c: Likewise.
27535 * except.c: Likewise.
27536 * explow.c: Likewise.
27537 * expmed.c: Likewise.
27538 * expr.c: Likewise.
27539 * final.c: Likewise.
27540 * fixed-value.c: Likewise.
27541 * fold-const.c: Likewise.
27542 * function.c: Likewise.
27543 * fwprop.c: Likewise.
27544 * gcc-plugin.h: Likewise.
27545 * gcse.c: Likewise.
27546 * generic-match-head.c: Likewise.
27547 * ggc-page.c: Likewise.
27548 * gimple-builder.c: Likewise.
27549 * gimple-expr.c: Likewise.
27550 * gimple-fold.c: Likewise.
27551 * gimple-iterator.c: Likewise.
27552 * gimple-low.c: Likewise.
27553 * gimple-match-head.c: Likewise.
27554 * gimple-pretty-print.c: Likewise.
27555 * gimple-ssa-isolate-paths.c: Likewise.
27556 * gimple-ssa-strength-reduction.c: Likewise.
27557 * gimple-streamer-in.c: Likewise.
27558 * gimple-streamer-out.c: Likewise.
27559 * gimple-streamer.h: Likewise.
27560 * gimple-walk.c: Likewise.
27561 * gimple.c: Likewise.
27562 * gimplify-me.c: Likewise.
27563 * gimplify.c: Likewise.
27564 * godump.c: Likewise.
27565 * graph.c: Likewise.
27566 * graphite-blocking.c: Likewise.
27567 * graphite-dependences.c: Likewise.
27568 * graphite-interchange.c: Likewise.
27569 * graphite-isl-ast-to-gimple.c: Likewise.
27570 * graphite-optimize-isl.c: Likewise.
27571 * graphite-poly.c: Likewise.
27572 * graphite-scop-detection.c: Likewise.
27573 * graphite-sese-to-poly.c: Likewise.
27574 * graphite.c: Likewise.
27575 * haifa-sched.c: Likewise.
27576 * hw-doloop.c: Likewise.
27577 * ifcvt.c: Likewise.
27578 * init-regs.c: Likewise.
27579 * input.c: Likewise.
27580 * internal-fn.c: Likewise.
27581 * ipa-chkp.c: Likewise.
27582 * ipa-comdats.c: Likewise.
27583 * ipa-cp.c: Likewise.
27584 * ipa-devirt.c: Likewise.
27585 * ipa-icf-gimple.c: Likewise.
27586 * ipa-icf.c: Likewise.
27587 * ipa-inline-analysis.c: Likewise.
27588 * ipa-inline-transform.c: Likewise.
27589 * ipa-inline.c: Likewise.
27590 * ipa-polymorphic-call.c: Likewise.
27591 * ipa-profile.c: Likewise.
27592 * ipa-prop.c: Likewise.
27593 * ipa-pure-const.c: Likewise.
27594 * ipa-ref.c: Likewise.
27595 * ipa-reference.c: Likewise.
27596 * ipa-split.c: Likewise.
27597 * ipa-utils.c: Likewise.
27598 * ipa-visibility.c: Likewise.
27599 * ipa.c: Likewise.
27600 * ira-build.c: Likewise.
27601 * ira-color.c: Likewise.
27602 * ira-conflicts.c: Likewise.
27603 * ira-costs.c: Likewise.
27604 * ira-emit.c: Likewise.
27605 * ira-lives.c: Likewise.
27606 * ira.c: Likewise.
27607 * jump.c: Likewise.
27608 * langhooks.c: Likewise.
27609 * lcm.c: Likewise.
27610 * loop-doloop.c: Likewise.
27611 * loop-init.c: Likewise.
27612 * loop-invariant.c: Likewise.
27613 * loop-iv.c: Likewise.
27614 * loop-unroll.c: Likewise.
27615 * lower-subreg.c: Likewise.
27616 * lra-assigns.c: Likewise.
27617 * lra-coalesce.c: Likewise.
27618 * lra-constraints.c: Likewise.
27619 * lra-eliminations.c: Likewise.
27620 * lra-lives.c: Likewise.
27621 * lra-remat.c: Likewise.
27622 * lra-spills.c: Likewise.
27623 * lra.c: Likewise.
27624 * lto-cgraph.c: Likewise.
27625 * lto-compress.c: Likewise.
27626 * lto-opts.c: Likewise.
27627 * lto-section-in.c: Likewise.
27628 * lto-section-out.c: Likewise.
27629 * lto-streamer-in.c: Likewise.
27630 * lto-streamer-out.c: Likewise.
27631 * lto-streamer.c: Likewise.
27632 * mcf.c: Likewise.
27633 * mode-switching.c: Likewise.
27634 * modulo-sched.c: Likewise.
27635 * omega.c: Likewise.
27636 * omp-low.c: Likewise.
27637 * optabs.c: Likewise.
27638 * opts-global.c: Likewise.
27639 * opts.h: Likewise.
27640 * passes.c: Likewise.
27641 * plugin.c: Likewise.
27642 * postreload-gcse.c: Likewise.
27643 * postreload.c: Likewise.
27644 * predict.c: Likewise.
27645 * pretty-print.h: Likewise.
27646 * print-rtl.c: Likewise.
27647 * print-tree.c: Likewise.
27648 * profile.c: Likewise.
27649 * real.c: Likewise.
27650 * realmpfr.c: Likewise.
27651 * recog.c: Likewise.
27652 * ree.c: Likewise.
27653 * reg-stack.c: Likewise.
27654 * regcprop.c: Likewise.
27655 * reginfo.c: Likewise.
27656 * regrename.c: Likewise.
27657 * regstat.c: Likewise.
27658 * reload.c: Likewise.
27659 * reload1.c: Likewise.
27660 * reorg.c: Likewise.
27661 * resource.c: Likewise.
27662 * rtl-chkp.c: Likewise.
27663 * rtl-error.c: Likewise.
27664 * rtlanal.c: Likewise.
27665 * rtlhooks.c: Likewise.
27666 * sanopt.c: Likewise.
27667 * sched-deps.c: Likewise.
27668 * sched-ebb.c: Likewise.
27669 * sched-rgn.c: Likewise.
27670 * sched-vis.c: Likewise.
27671 * sdbout.c: Likewise.
27672 * sel-sched-dump.c: Likewise.
27673 * sel-sched-ir.c: Likewise.
27674 * sel-sched.c: Likewise.
27675 * sese.c: Likewise.
27676 * shrink-wrap.c: Likewise.
27677 * simplify-rtx.c: Likewise.
27678 * stack-ptr-mod.c: Likewise.
27679 * statistics.c: Likewise.
27680 * stmt.c: Likewise.
27681 * stor-layout.c: Likewise.
27682 * store-motion.c: Likewise.
27683 * streamer-hooks.c: Likewise.
27684 * stringpool.c: Likewise.
27685 * symtab.c: Likewise.
27686 * target-globals.c: Likewise.
27687 * targhooks.c: Likewise.
27688 * toplev.c: Likewise.
27689 * tracer.c: Likewise.
27690 * trans-mem.c: Likewise.
27691 * tree-affine.c: Likewise.
27692 * tree-browser.c: Likewise.
27693 * tree-call-cdce.c: Likewise.
27694 * tree-cfg.c: Likewise.
27695 * tree-cfgcleanup.c: Likewise.
27696 * tree-chkp-opt.c: Likewise.
27697 * tree-chkp.c: Likewise.
27698 * tree-chrec.c: Likewise.
27699 * tree-complex.c: Likewise.
27700 * tree-data-ref.c: Likewise.
27701 * tree-dfa.c: Likewise.
27702 * tree-diagnostic.c: Likewise.
27703 * tree-dump.c: Likewise.
27704 * tree-eh.c: Likewise.
27705 * tree-emutls.c: Likewise.
27706 * tree-if-conv.c: Likewise.
27707 * tree-inline.c: Likewise.
27708 * tree-into-ssa.c: Likewise.
27709 * tree-iterator.c: Likewise.
27710 * tree-loop-distribution.c: Likewise.
27711 * tree-nested.c: Likewise.
27712 * tree-nrv.c: Likewise.
27713 * tree-object-size.c: Likewise.
27714 * tree-outof-ssa.c: Likewise.
27715 * tree-parloops.c: Likewise.
27716 * tree-phinodes.c: Likewise.
27717 * tree-predcom.c: Likewise.
27718 * tree-pretty-print.c: Likewise.
27719 * tree-profile.c: Likewise.
27720 * tree-scalar-evolution.c: Likewise.
27721 * tree-sra.c: Likewise.
27722 * tree-ssa-address.c: Likewise.
27723 * tree-ssa-alias.c: Likewise.
27724 * tree-ssa-ccp.c: Likewise.
27725 * tree-ssa-coalesce.c: Likewise.
27726 * tree-ssa-copy.c: Likewise.
27727 * tree-ssa-copyrename.c: Likewise.
27728 * tree-ssa-dce.c: Likewise.
27729 * tree-ssa-dom.c: Likewise.
27730 * tree-ssa-dse.c: Likewise.
27731 * tree-ssa-forwprop.c: Likewise.
27732 * tree-ssa-ifcombine.c: Likewise.
27733 * tree-ssa-live.c: Likewise.
27734 * tree-ssa-loop-ch.c: Likewise.
27735 * tree-ssa-loop-im.c: Likewise.
27736 * tree-ssa-loop-ivcanon.c: Likewise.
27737 * tree-ssa-loop-ivopts.c: Likewise.
27738 * tree-ssa-loop-manip.c: Likewise.
27739 * tree-ssa-loop-niter.c: Likewise.
27740 * tree-ssa-loop-prefetch.c: Likewise.
27741 * tree-ssa-loop-unswitch.c: Likewise.
27742 * tree-ssa-loop.c: Likewise.
27743 * tree-ssa-math-opts.c: Likewise.
27744 * tree-ssa-operands.c: Likewise.
27745 * tree-ssa-phiopt.c: Likewise.
27746 * tree-ssa-phiprop.c: Likewise.
27747 * tree-ssa-pre.c: Likewise.
27748 * tree-ssa-propagate.c: Likewise.
27749 * tree-ssa-reassoc.c: Likewise.
27750 * tree-ssa-sccvn.c: Likewise.
27751 * tree-ssa-scopedtables.c: Likewise.
27752 * tree-ssa-sink.c: Likewise.
27753 * tree-ssa-strlen.c: Likewise.
27754 * tree-ssa-structalias.c: Likewise.
27755 * tree-ssa-tail-merge.c: Likewise.
27756 * tree-ssa-ter.c: Likewise.
27757 * tree-ssa-threadedge.c: Likewise.
27758 * tree-ssa-threadupdate.c: Likewise.
27759 * tree-ssa-uncprop.c: Likewise.
27760 * tree-ssa-uninit.c: Likewise.
27761 * tree-ssa.c: Likewise.
27762 * tree-ssanames.c: Likewise.
27763 * tree-stdarg.c: Likewise.
27764 * tree-streamer-in.c: Likewise.
27765 * tree-streamer-out.c: Likewise.
27766 * tree-streamer.c: Likewise.
27767 * tree-switch-conversion.c: Likewise.
27768 * tree-tailcall.c: Likewise.
27769 * tree-vect-data-refs.c: Likewise.
27770 * tree-vect-generic.c: Likewise.
27771 * tree-vect-loop-manip.c: Likewise.
27772 * tree-vect-loop.c: Likewise.
27773 * tree-vect-patterns.c: Likewise.
27774 * tree-vect-slp.c: Likewise.
27775 * tree-vect-stmts.c: Likewise.
27776 * tree-vectorizer.c: Likewise.
27777 * tree-vrp.c: Likewise.
27778 * tree.c: Likewise.
27779 * tsan.c: Likewise.
27780 * ubsan.c: Likewise.
27781 * valtrack.c: Likewise.
27782 * value-prof.c: Likewise.
27783 * var-tracking.c: Likewise.
27784 * varasm.c: Likewise.
27785 * varpool.c: Likewise.
27786 * vmsdbgout.c: Likewise.
27787 * vtable-verify.c: Likewise.
27788 * web.c: Likewise.
27789 * wide-int.cc: Likewise.
27790 * xcoffout.c: Likewise.
27791 * common/common-target.h: Do not include input.h, line-map.h or is-a.h.
27792 * common/common-targhooks.c: Likewise.
27793 * config/aarch64/aarch64-builtins.c: Likewise.
27794 * config/aarch64/aarch64.c: Likewise.
27795 * config/alpha/alpha.c: Likewise.
27796 * config/arc/arc.c: Likewise.
27797 * config/arm/aarch-common.c: Likewise.
27798 * config/arm/arm-builtins.c: Likewise.
27799 * config/arm/arm-c.c: Likewise.
27800 * config/arm/arm.c: Likewise.
27801 * config/avr/avr-c.c: Likewise.
27802 * config/avr/avr-log.c: Likewise.
27803 * config/avr/avr.c: Likewise.
27804 * config/bfin/bfin.c: Likewise.
27805 * config/c6x/c6x.c: Likewise.
27806 * config/cr16/cr16.c: Likewise.
27807 * config/cris/cris.c: Likewise.
27808 * config/darwin-c.c: Likewise.
27809 * config/darwin.c: Likewise.
27810 * config/default-c.c: Likewise.
27811 * config/epiphany/epiphany.c: Likewise.
27812 * config/epiphany/mode-switch-use.c: Likewise.
27813 * config/epiphany/resolve-sw-modes.c: Likewise.
27814 * config/fr30/fr30.c: Likewise.
27815 * config/frv/frv.c: Likewise.
27816 * config/ft32/ft32.c: Likewise.
27817 * config/glibc-c.c: Likewise.
27818 * config/h8300/h8300.c: Likewise.
27819 * config/i386/i386-c.c: Likewise.
27820 * config/i386/i386.c: Likewise.
27821 * config/i386/msformat-c.c: Likewise.
27822 * config/i386/winnt-cxx.c: Likewise.
27823 * config/i386/winnt-stubs.c: Likewise.
27824 * config/i386/winnt.c: Likewise.
27825 * config/ia64/ia64-c.c: Likewise.
27826 * config/ia64/ia64.c: Likewise.
27827 * config/iq2000/iq2000.c: Likewise.
27828 * config/lm32/lm32.c: Likewise.
27829 * config/m32c/m32c-pragma.c: Likewise.
27830 * config/m32c/m32c.c: Likewise.
27831 * config/m32r/m32r.c: Likewise.
27832 * config/m68k/m68k.c: Likewise.
27833 * config/mcore/mcore.c: Likewise.
27834 * config/mep/mep-pragma.c: Likewise.
27835 * config/mep/mep.c: Likewise.
27836 * config/microblaze/microblaze-c.c: Likewise.
27837 * config/microblaze/microblaze.c: Likewise.
27838 * config/mips/mips.c: Likewise.
27839 * config/mmix/mmix.c: Likewise.
27840 * config/mn10300/mn10300.c: Likewise.
27841 * config/moxie/moxie.c: Likewise.
27842 * config/msp430/msp430-c.c: Likewise.
27843 * config/msp430/msp430.c: Likewise.
27844 * config/nds32/nds32-cost.c: Likewise.
27845 * config/nds32/nds32-fp-as-gp.c: Likewise.
27846 * config/nds32/nds32-intrinsic.c: Likewise.
27847 * config/nds32/nds32-isr.c: Likewise.
27848 * config/nds32/nds32-md-auxiliary.c: Likewise.
27849 * config/nds32/nds32-memory-manipulation.c: Likewise.
27850 * config/nds32/nds32-pipelines-auxiliary.c: Likewise.
27851 * config/nds32/nds32-predicates.c: Likewise.
27852 * config/nds32/nds32.c: Likewise.
27853 * config/nios2/nios2.c: Likewise.
27854 * config/nvptx/nvptx.c: Likewise.
27855 * config/pa/pa.c: Likewise.
27856 * config/pdp11/pdp11.c: Likewise.
27857 * config/rl78/rl78-c.c: Likewise.
27858 * config/rl78/rl78.c: Likewise.
27859 * config/rs6000/rs6000-c.c: Likewise.
27860 * config/rs6000/rs6000.c: Likewise.
27861 * config/rx/rx.c: Likewise.
27862 * config/s390/s390-c.c: Likewise.
27863 * config/s390/s390.c: Likewise.
27864 * config/sh/sh-c.c: Likewise.
27865 * config/sh/sh-mem.cc: Likewise.
27866 * config/sh/sh.c: Likewise.
27867 * config/sh/sh_optimize_sett_clrt.cc: Likewise.
27868 * config/sh/sh_treg_combine.cc: Likewise.
27869 * config/sol2-c.c: Likewise.
27870 * config/sol2-cxx.c: Likewise.
27871 * config/sol2-stubs.c: Likewise.
27872 * config/sol2.c: Likewise.
27873 * config/sparc/sparc-c.c: Likewise.
27874 * config/sparc/sparc.c: Likewise.
27875 * config/spu/spu-c.c: Likewise.
27876 * config/spu/spu.c: Likewise.
27877 * config/stormy16/stormy16.c: Likewise.
27878 * config/tilegx/mul-tables.c: Likewise.
27879 * config/tilegx/tilegx-c.c: Likewise.
27880 * config/tilegx/tilegx.c: Likewise.
27881 * config/tilepro/mul-tables.c: Likewise.
27882 * config/tilepro/tilepro-c.c: Likewise.
27883 * config/tilepro/tilepro.c: Likewise.
27884 * config/v850/v850-c.c: Likewise.
27885 * config/v850/v850.c: Likewise.
27886 * config/vax/vax.c: Likewise.
27887 * config/visium/visium.c: Likewise.
27888 * config/vms/vms-c.c: Likewise.
27889 * config/vms/vms.c: Likewise.
27890 * config/vxworks.c: Likewise.
27891 * config/winnt-c.c: Likewise.
27892 * config/xtensa/xtensa.c: Likewise.
27893
27894 2015-06-17 Robert Suchanek <robert.suchanek@imgtec.com>
27895
27896 * config/mips/mips.c (mips_ira_change_pseudo_allocno_class): New
27897 function.
27898 (TARGET_IRA_CHANGE_PSEUDO_ALLOCNO_CLASS): Define macro.
27899
27900 2015-06-17 Richard Biener <rguenther@suse.de>
27901
27902 PR tree-optimization/66251
27903 * tree-vect-stmts.c (vectorizable_store): Fix gathering of vectorized
27904 stmts for SLP strided stores.
27905
27906 Revert
27907 2015-05-22 Richard Biener <rguenther@suse.de>
27908
27909 PR tree-optimization/66251
27910 * tree-vect-stmts.c (vectorizable_conversion): Properly
27911 set STMT_VINFO_VEC_STMT even for the SLP case.
27912
27913 2015-05-26 Michael Matz <matz@suse.de>
27914
27915 PR middle-end/66251
27916 * tree-vect-stmts.c (vect_create_vectorized_demotion_stmts): Always set
27917 STMT_VINFO_VEC_STMT, also with SLP.
27918
27919 2015-06-16 Uros Bizjak <ubizjak@gmail.com>
27920
27921 PR target/56766
27922 * config/i386/sse.md (*avx_addsubv4df3_1): New insn pattern.
27923 (*avx_addsubv4df3_1s): Ditto.
27924 (*sse3_addsubv2df3_1): Ditto.
27925 (*sse3_addsubv2df3_1s): Ditto.
27926 (*avx_addsubv8sf3_1): Ditto.
27927 (*avx_addsubv8sf3_1s): Ditto.
27928 (*sse3_addsubv4sf3_1): Ditto.
27929 (*sse3_addsubv4sf3_1s): Ditto.
27930
27931 2015-06-16 Steve Ellcey <sellcey@imgtec.com>
27932
27933 * config/mips/mti-linux.h (MIPS_SYSVERSION_SPEC): New.
27934 (SYSROOT_SUFFIX_SPEC): Update.
27935 (SYSROOT_HEADERS_SUFFIX_SPEC): New.
27936 (STARTFILE_PREFIX_SPEC): Update.
27937 * config/mips/t-mti-linux (MULTILIB_EXCEPTIONS): Remove.
27938 (MULTILIB_REQUIRED): New.
27939 (MULTILIB_OSDIRNAMES): New.
27940 * config/mips/t-img-linux (MULTILIB_EXCEPTIONS): Remove.
27941 (MULTILIB_REQUIRED): New.
27942 (MULTILIB_OSDIRNAMES): New.
27943
27944 2015-06-16 Matthew Wahab <matthew.wahab@arm.com>
27945
27946 * config/aarch64/aarch64-arches.def: Add "armv8.1-a".
27947 * config/aarch64/aarch64-options-extensions.def: Update "fP",
27948 "simd" and "crypto". Add "lse", "pan", "lor" and "rdma".
27949 * config/aarch64/aarch64.h (AARCH64_FL_LSE): New.
27950 (AARCH64_FL_PAN): New.
27951 (AARCH64_FL_LOR): New.
27952 (AARCH64_FL_RDMA): New.
27953 (AARCH64_FL_FOR_ARCH8_1): New.
27954 * doc/invoke.texi (AArch64 Options): Add "armv8.1-a" to
27955 -march. Add "lse", "pan", "lor", "rdma" to feature modifiers.
27956
27957 2015-06-16 Martin Liska <mliska@suse.cz>
27958
27959 * bitmap.c (dump_bitmap_statistics): Fix GNU coding style.
27960 * hash-table.c (void dump_hash_table_loc_statistics): Add missing
27961 guard.
27962
27963 2015-06-16 Richard Biener <rguenther@suse.de>
27964
27965 * tree-vect-stmts.c (vectorizable_store): Adjust.
27966 (vectorizable_load): Likewise.
27967 * tree-vect-data-refs.c (vect_create_addr_base_for_vector_ref):
27968 Simplify.
27969 (vect_create_data_ref_ptr): Likewise.
27970 (bump_vector_ptr): Adjust.
27971
27972 2015-06-16 Richard Biener <rguenther@suse.de>
27973
27974 * tree-vect-stmts.c (vectorizable_load): Properly start loads
27975 with the first element if this is grouped loads.
27976
27977 2015-06-16 James Greenhalgh <james.greenhalgh@arm.com>
27978
27979 * config/arm/arm-protos.h (struct tune_params): Rename
27980 log_op_non_sc to log_op_non_short_circuit, and rename enum
27981 values to expand SC to SHORT_CIRCUIT.
27982 * config/arm/arm.c (arm_slowmul_tune): Expand LOG_OP_NON_SC
27983 to LOG_OP_NON_SHORT_CIRCUIT.
27984 (arm_fastmul_tune):Likewise
27985 (arm_strongarm_tune): Likewise.
27986 (arm_xscale_tune): Likewise.
27987 (arm_9e_tune): Likewise.
27988 (arm_marvell_pj4_tune): Likewise.
27989 (arm_v6t2_tune): Likewise.
27990 (arm_cortex_tune): Likewise.
27991 (arm_cortex_a8_tune): Likewise.
27992 (arm_cortex_a7_tune): Likewise.
27993 (arm_cortex_a15_tune): Likewise.
27994 (arm_cortex_a53_tune): Likewise.
27995 (arm_cortex_a57_tune): Likewise.
27996 (arm_xgene1_tune): Likewise.
27997 (arm_cortex_a5_tune): Likewise.
27998 (arm_cortex_a9_tune): Likewise.
27999 (arm_cortex_a12_tune): Likewise.
28000 (arm_v7m_tune): Likewise.
28001 (arm_cortex_m7_tune): Likewise.
28002 (arm_v6m_tune): Likewise.
28003 (arm_fa726te_tune): Likewise.
28004
28005 2015-06-15 David Edelsohn <dje.gcc@gmail.com>
28006
28007 * altivec.md: Delete UNSPEC_VMLADDUHM.
28008 (mulv4si3_p8): New pattern.
28009 (mulv4si3): Use it for POWER8.
28010 (mulv8hi3): Use vmladduhm with zero addend.
28011 (altivec_vmladduhm): Descriptive RTL.
28012
28013 2015-06-15 Jim Wilson <jim.wilson@linaro.org>
28014
28015 * config/aarch64/aarch64.md (mov<mode>_aarch64): Change alternative 2
28016 to use neon_move instead of mov_imm.
28017 (movdi_aarch64): Change alternative 14 to use neon_move not fmov.
28018 (movtf_aarch64): Change alternative 4 to use neon_move_q not fconstd.
28019
28020 * config/aarch64/aarch64.c (aarch64_valid_floating_const): Move
28021 aarch64_float_const_zero_rtx_p check before TFmode check.
28022 * config/aarch64/aarch64.md (movtf): Don't call force_reg if op1 is
28023 an fp zero.
28024 (movtf_aarch64): Separate ?rY alternative into two. Adjust assembly
28025 code and attributes to match. Change condition from register_operand
28026 to aarch64_reg_or_fp_zero for op1. Change type for ldp from
28027 neon_load1_2reg to load2. Change type for stp from neon_store1_2reg
28028 to store2.
28029
28030 2015-06-15 Aldy Hernandez <aldyh@redhat.com>
28031
28032 PR debug/66535
28033 * dwarf2out.c (gen_subprogram_die): Do not check a parent's tag if
28034 there is no parent.
28035
28036 2015-06-14 Shiva Chen <shiva0217@gmail.com>
28037
28038 * aarch64.c (aarch64_simd_lane_bounds): Change %ld to %wd for
28039 HOST_WIDE_INT parameter.
28040
28041 2015-06-14 Jan Hubicka <hubicka@ucw.cz>
28042
28043 PR ipa/66181
28044 * lto-streamer-out.c (hash_tree): Do not hash TYPE_NO_FORCE_BLK.
28045 * tree-streamer-out.c (pack_ts_type_common_value_fields): Do not stream
28046 TYPE_NO_FORCE_BLK.
28047 * tree-streamer-in.c (unpack_ts_type_common_value_fields): Likewise.
28048
28049 2015-06-14 Richard Sandiford <richard.sandiford@arm.com>
28050
28051 * rtl.h (classify_insn): Declare.
28052 * emit-rtl.c (classify_insn): Move to...
28053 * rtl.c: ...here and add generator support.
28054 * gensupport.h (get_emit_function, needs_barrier_p): Declare.
28055 * gensupport.c (get_emit_function, needs_barrier_p): New functions.
28056 * genemit.c (gen_emit_seq): New function.
28057 (gen_expand, gen_split): Use it.
28058
28059 2015-06-13 Patrick Palka <ppalka@gcc.gnu.org>
28060
28061 * tree.c (make_vector_stat): Fix comment to state that the
28062 function returns a VECTOR_CST.
28063
28064 2015-06-13 Richard Sandiford <richard.sandiford@arm.com>
28065
28066 * gensupport.h (add_implicit_parallel): Declare.
28067 * genrecog.c (add_implicit_parallel): Move to...
28068 * gensupport.c (add_implicit_parallel): ...here.
28069 (process_one_cond_exec): Use it.
28070 * genemit.c (gen_insn): Likewise.
28071
28072 2015-06-13 Iain Sandoe <iain@codesourcery.com>
28073
28074 PR bootstrap/66448
28075 * passes.c (rest_of_decl_compilation): Do not register globals for
28076 early debug if they are declared in built-ins.
28077
28078 2015-06-12 Aldy Hernandez <aldyh@redhat.com>
28079
28080 * dwarf2out.c (check_die): Protect with ENABLE_CHECKING.
28081
28082 2015-06-12 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
28083
28084 * ifcvt.c (noce_try_store_flag_constants): Use std::swap instead of
28085 manually swapping.
28086 (noce_try_cmove_arith): Likewise.
28087 (noce_get_alt_condition): Likewise.
28088
28089 2015-06-12 Venkataramanan Kumar <venkataramanan.kumar@amd.com>
28090
28091 * common/config/i386/i386-common.c
28092 (OPTION_MASK_ISA_MWAITX_SET): New.
28093 (ix86_handle_option): Handle mwaitx.
28094 * config.gcc (i[34567]86-*-*): Add mwaitxintrin.h,
28095 (x86_64-*-*): Likewise.
28096 * config/i386/mwaitxintrin.h: New header.
28097 * config/i386/cpuid.h (bit_MWAITX): Define.
28098 * config/i386/driver-i386.c (host_detect_local_cpu): Detect
28099 MWAITX support.
28100 * config/i386/i386.opt (mwaitx): New.
28101 * config/i386/i386-builtin-types.def
28102 (VOID_FTYPE_UNSIGNED_ UNSIGNED_UNSIGNED): New function type.
28103 * config/i386/i386-c.c: Define __MWAITX__ if needed.
28104 * config/i386/i386.c (ix86_target_string): Define -mmwaitx option.
28105 (PTA_MWAITX): New.
28106 (ix86_option_override_internal): Handle new option.
28107 (processor_alias_table): Added PTA_MWAITX.
28108 (ix86_valid_target_attribute_inner_p): Add OPT_mmwaitx.
28109 (ix86_builtins): Add IX86_BUILTIN_MWAITX, IX86_BUILTIN_MONITORX.
28110 (ix86_expand_builtin): Handle IX86_BUILTIN_MWAITX and
28111 IX86_BUILTIN_MONITORX built-ins.
28112 * config/i386/i386.h (TARGET_MWAITX): New.
28113 * config/i386/i386.md (unspecv): Add UNSPEC_MWAITX and
28114 UNSPEC_MONITORX.
28115 (mwaitx): New pattern.
28116 (monitorx_<mode>): New pattern.
28117 * config/i386/x86intrin.h: Include mwaitxintrin.h.
28118 * doc/extend.texi: Document monitorx and mwaitx builtins.
28119 * doc/invoke.texi: Document -mmwaitx option.
28120
28121 2015-06-12 Uros Bizjak <ubizjak@gmail.com>
28122
28123 * emit-rtl.c (need_atomic_barrier_p): Mask model with
28124 MEMMODEL_BASE_MASK. Remove MEMMODEL_SYNC_* cases.
28125
28126 2015-06-11 David Edelsohn <dje.gcc@gmail.com>
28127
28128 * dbxout.c (xcoff_debug_hooks): Provide a function for
28129 register_main_translation_unit hook.
28130
28131 2015-06-11 David Edelsohn <dje.gcc@gmail.com>
28132
28133 * config/rs6000/rs6000.c (rs6000_pre_atomic_barrier): Remove SYNC
28134 variants cases from switch.
28135 (rs6000_post_atomic_barrier): Same.
28136 (rs6000_expand_atomic_compare_and_swap): Use memmodel_base.
28137 (rs6000_expand_atomic_exchange): Same.
28138 (rs6000_expand_atomic_op): Same.
28139 * config/rs6000/sync.md (mem_thread_fence): Use memodel_base. Remove
28140 SYNC variants cases from switch.
28141 (atomic_load): Same.
28142 (atomic_store): Same.
28143
28144 2015-06-11 John David Anglin <danglin@gcc.gnu.org>
28145
28146 * config/pa/pa.c (pa_output_global_address): Handle LABEL_REF plus
28147 CONST_INT for goto.
28148
28149 2015-06-11 Aldy Hernandez <aldyh@redhat.com>
28150
28151 PR bootstrap/66448
28152 * dwarf2out.c (check_die): Check for common duplicate attributes.
28153 (add_location_or_const_value_attribute): Do not add duplicate
28154 attributes.
28155 (gen_formal_parameter_die): Do not add DW_AT_artificial the second
28156 time around.
28157 (gen_struct_or_union_type_die): Bail early if TREE_ASM_WRITTEN.
28158 (gen_type_die_with_usage): Call check_die.
28159 (dwarf2out_decl): Only call check_die() when ENABLE_CHECKING.
28160
28161 2015-06-11 Jason Merrill <jason@redhat.com>
28162
28163 * dwarf2out.c (prune_unused_types): Handle unused top-level limbo
28164 dies.
28165
28166 2015-06-11 Marek Polacek <polacek@redhat.com>
28167
28168 * match.pd ((x & y) ^ (x | y)): Don't check for single_use.
28169
28170 2015-06-11 Eric Botcazou <ebotcazou@adacore.com>
28171
28172 PR bootstrap/66252
28173 * config/sparc/sparc.c (hard_regno_mode_classes): Add ??? comment.
28174 * config/sparc/sparc.md (zero_extendsidi2_insn_sp32): Use single order.
28175 (*addx_extend_sp32): Fix pasto.
28176 (*subx_extend): Rename into...
28177 (*subx_extend_sp32): ...this.
28178 (*adddi3_extend_sp32): Add earlyclobber.
28179 (*subdi3_insn_sp32): Likewise.
28180 (*subdi3_extend_sp32): Likewise.
28181 (*and_not_di_sp32): Likewise.
28182 (*or_not_di_sp32): Likewise.
28183 (*xor_not_di_sp32): Likewise.
28184 (*negdi2_sp32): Likewise.
28185 (*one_cmpldi2_sp32): Likewise.
28186
28187 2015-06-11 Pierre-Marie de Rodat <derodat@adacore.com>
28188
28189 * debug.h (struct gcc_debug_hooks): Add a
28190 register_main_translation_unit hook.
28191 * debug.c (do_nothing_debug_hooks): Provide a function for this
28192 new hook.
28193 * dbxout.c (dbx_debug_hooks): Likewise.
28194 * sdbout.c (sdb_debug_hooks): Likewise.
28195 * vmsdbgout.c (vmsdbg_debug_hooks): Likewise.
28196 * dwarf2out.c (main_translation_unit): New global variable.
28197 (dwarf2out_register_main_translation_unit): New function
28198 implementing the new hook.
28199 (dwarf2_debug_hooks): Assign
28200 dwarf2out_register_main_translation_unit to this new hook.
28201 (dwarf2out_init): Associate any main translation unit to
28202 comp_unit_die ().
28203
28204 2015-06-11 Marek Polacek <polacek@redhat.com>
28205
28206 * match.pd ((x & y) ^ (x | y) -> x ^ y): New pattern.
28207
28208 2015-06-11 Marek Polacek <polacek@redhat.com>
28209
28210 * match.pd: Use single_use throughout.
28211
28212 2015-06-11 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
28213
28214 * config/arm/arm.c (arm_option_params_internal): When optimising
28215 for speed set max_insns_skipped when arm_restrict_it.
28216
28217 2015-06-11 Christian Bruel <christian.bruel@st.com>
28218
28219 PR target/52144
28220 * config/arm/arm-c.c (arm_cpu_cpp_builtins): Conditionally define
28221 macros in ...
28222 (arm_cpu_builtins): New function.
28223 (arm_pragma_target_parse): Call arm_cpu_builtins.
28224 * config/arm/arm-protos.h (arm_cpu_builtins): Declare.
28225 (arm_register_target_pragmas): Likewise.
28226 * config/arm/arm.h (REGISTER_TARGET_PRAGMAS):
28227 Call arm_register_target_pragmas.
28228 * config/arm/arm-c.c (arm_register_target_pragmas): New function.
28229 (arm_pragma_target_parse): Likewise.
28230
28231 2015-06-10 Kaz Kojima <kkojima@gcc.gnu.org>
28232
28233 * config/sh/sh.md (tstsi_t): Add '?' modifier to 'r' alternative
28234 of the second operand.
28235
28236 2015-06-10 Uros Bizjak <ubizjak@gmail.com>
28237
28238 PR target/66473
28239 * config/i386/i386.c (ix86_expand_vector_set): Use gen_int_mode
28240 to prepare mask operand for AVX512 modes.
28241
28242 2015-06-10 Michael Meissner <meissner@linux.vnet.ibm.com>
28243
28244 PR target/66474
28245 * doc/md.texi (Machine Constraints): Document that on the PowerPC
28246 if you use a constraint that targets a VSX register, you must use
28247 %x<n> in the template.
28248
28249 2015-06-10 Max Filippov <jcmvbkbc@gmail.com>
28250
28251 * config/xtensa/xtensa.h (TARGET_DEBUG): New definition.
28252 * config/xtensa/xtensa.md (define_attr "type"): New type "trap".
28253 (define_insn "trap"): New definition.
28254
28255 2015-06-10 Richard Biener <rguenther@suse.de>
28256
28257 * tree-vect-slp.c (vect_attempt_slp_rearrange_stmts): Split
28258 out from ...
28259 (vect_supported_load_permutation_p): ... here. Handle
28260 supportable permutations in reductions.
28261 * tree-vect-stmts.c (vectorizable_load): Handle SLP permutations
28262 for vectorizing strided group loads.
28263
28264 2015-06-10 Jakub Jelinek <jakub@redhat.com>
28265
28266 PR target/66470
28267 * config/i386/i386.c (ix86_split_long_move): For collisions
28268 involving direct tls segment refs, move the UNSPEC_TP possibly
28269 wrapped in ZERO_EXTEND out of the address for lea, to each of
28270 the memory loads.
28271
28272 2015-06-10 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
28273
28274 * config/arm/sync.md (*memory_barrier): Use dmb ish instead of
28275 dmb sy. Adjust tabs.
28276
28277 2015-06-10 Tom de Vries <tom@codesourcery.com>
28278
28279 * omp-low.c (expand_omp_target): Remove duplicate declaration of node.
28280
28281 2015-06-10 Martin Liska <mliska@suse.cz>
28282
28283 PR bootstrap/66471
28284 * mem-stats-traits.h (enum mem_alloc_origin): Add _ORIGIN suffix for
28285 all enum values in mem_alloc_origin.
28286 * alloc-pool.c (dump_alloc_pool_statistics): Use newly changed enum
28287 name.
28288 * alloc-pool.h (pool_allocator::pool_allocator): Likewise.
28289 * bitmap.c (bitmap_register): Likewise.
28290 (dump_bitmap_statistics): Likewise.
28291 * ggc-common.c (dump_ggc_loc_statistics): Likewise.
28292 (ggc_record_overhead): Likewise.
28293 * hash-map.h: Likewise.
28294 * hash-set.h: Likewise.
28295 * hash-table.c (void dump_hash_table_loc_statistics): Likewise.
28296 * hash-table.h: Likewise.
28297 * vec.c (vec_prefix::register_overhead): Likewise.
28298 (vec_prefix::release_overhead): Likewise.
28299 (dump_vec_loc_statistics): Likewise.
28300
28301 2015-06-09 Christian Bruel <christian.bruel@st.com>
28302
28303 PR target/52144
28304 * config/arm/arm.opt (THUMB, arm_restrict_it, inline_asm_unified): Save.
28305 * config/arm/arm-protos.h (arm_valid_target_attribute_tree): Declare.
28306 (arm_reset_previous_fndecl, arm_change_mode_p): Likewise.
28307 * config/arm/arm.h (SWITCHABLE_TARGET): Define.
28308 * config/arm/arm.c (arm_reset_previous_fndecl): New functions.
28309 (arm_valid_target_attribute_tree, arm_change_mode_p): Likewise.
28310 (arm_valid_target_attribute_p): Likewise.
28311 (arm_set_current_function, arm_can_inline_p): Likewise.
28312 (arm_valid_target_attribute_rec): Likewise.
28313 (arm_previous_fndecl): New variable.
28314 (TARGET_SET_CURRENT_FUNCTION, TARGET_OPTION_VALID_ATTRIBUTE_P): Define.
28315 (TARGET_CAN_INLINE_P): Define.
28316 (arm_asm_trampoline_template): Emit mode.
28317 (arm_file_start): Don't set unified syntax.
28318 (arm_declare_function_name): Set unified syntax and mode.
28319 (arm_option_override): Init target_option_default_node.
28320 and target_option_current_node.
28321 * config/arm/arm.md (*call_value_symbol): Set mode when possible.
28322 (*call_symbol): Likewise.
28323 * doc/extend.texi: Document ARM/Thumb target attribute.
28324 * doc/invoke.texi: Likewise.
28325
28326 2015-06-09 Alexandre Oliva <aoliva@redhat.com>
28327
28328 Revert:
28329 2015-06-09 Alexandre Oliva <aoliva@redhat.com>
28330 PR rtl-optimization/64164
28331 * Makefile.in (OBJS): Drop tree-ssa-copyrename.o.
28332 * tree-ssa-copyrename.c: Removed.
28333 * opts.c (default_options_table): Drop -ftree-copyrename. Add
28334 -ftree-coalesce-vars.
28335 * passes.def: Drop all occurrences of pass_rename_ssa_copies.
28336 * common.opt (ftree-copyrename): Ignore.
28337 (ftree-coalesce-inlined-vars): Likewise.
28338 * doc/invoke.texi: Remove the ignored options above.
28339 * gimple-expr.h (gimple_can_coalesce_p): Move declaration
28340 * tree-ssa-coalesce.h: ... here.
28341 * tree-ssa-uncprop.c: Include tree-ssa-coalesce.h and other
28342 headers required by it.
28343 * gimple-expr.c (gimple_can_coalesce_p): Allow coalescing
28344 across variables when flag_tree_coalesce_vars. Check register
28345 use and promoted modes to allow coalescing. Moved to
28346 tree-ssa-coalesce.c.
28347 * tree-ssa-live.c (struct tree_int_map_hasher): Move along
28348 with its member functions to tree-ssa-coalesce.c.
28349 (var_map_base_init): Likewise. Renamed to
28350 compute_samebase_partition_bases.
28351 (partition_view_normal): Drop want_bases parameter.
28352 (partition_view_bitmap): Likewise.
28353 * tree-ssa-live.h: Adjust declarations.
28354 * tree-ssa-coalesce.c: Include explow.h.
28355 (build_ssa_conflict_graph): Process PARM_ and RESULT_DECLs's
28356 default defs at the entry point.
28357 (dump_part_var_map): New.
28358 (compute_optimized_partition_bases): New, called by...
28359 (coalesce_ssa_name): ... when flag_tree_coalesce_vars, instead
28360 of compute_samebase_partition_bases. Adjust.
28361 * alias.c (nonoverlapping_memrefs_p): Disregard gimple-regs.
28362 * cfgexpand.c (leader_merge): New.
28363 (get_rtl_for_parm_ssa_default_def): New.
28364 (set_rtl): Merge exprs and attrs, even for MEMs and non-SSA
28365 vars. Update DECL_RTL for PARM_DECLs and RESULT_DECLs too.
28366 (expand_one_stack_var_at): Handle anonymous SSA_NAMEs. Drop
28367 redundant MEM attr setting.
28368 (expand_one_stack_var_1): Handle anonymous SSA_NAMEs. Renamed
28369 from...
28370 (expand_one_stack_var): ... this. New wrapper to check and
28371 skip already expanded SSA partitions.
28372 (record_alignment_for_reg_var): New, factored out of...
28373 (expand_one_var): ... this.
28374 (expand_one_ssa_partition): New.
28375 (adjust_one_expanded_partition_var): New.
28376 (expand_one_register_var): Check and skip already expanded SSA
28377 partitions.
28378 (expand_used_vars): Don't create DECLs for anonymous SSA
28379 names. Expand all SSA partitions, then adjust all SSA names.
28380 (pass::execute): Replace the loops that set
28381 SA.partition_to_pseudo from partition leaders and cleared
28382 DECL_RTL for multi-location variables, and that which used to
28383 rename vars and set attrs, with one that clears DECL_RTL and
28384 checks that PARMs and RESULTs default_defs match DECL_RTL.
28385 * cfgexpand.h (get_rtl_for_parm_ssa_default_def): Declare.
28386 * emit-rtl.c (set_reg_attrs_for_parm): Handle NULL decl.
28387 * explow.c (promote_ssa_mode): New.
28388 * explow.h (promote_ssa_mode): Declare.
28389 * expr.c (expand_expr_real_1): Handle anonymous SSA_NAMEs.
28390 * function.c: Include cfgexpand.h.
28391 (use_register_for_decl): Handle SSA_NAMEs, anonymous or not.
28392 (use_register_for_parm_decl): Wrapper for the above to
28393 special-case the result_ptr.
28394 (rtl_for_parm): Ditto for get_rtl_for_parm_ssa_default_def.
28395 (maybe_reset_rtl_for_parm): Reset DECL_RTL of parms with
28396 multiple locations.
28397 (assign_parm_adjust_stack_rtl): Add all and parm arguments,
28398 for rtl_for_parm. For SSA-assigned parms, zero stack_parm.
28399 (assign_parm_setup_block): Prefer SSA-assigned location.
28400 (assign_parm_setup_reg): Likewise. Use entry_parm for equiv
28401 if stack_parm is NULL.
28402 (assign_parm_setup_stack): Prefer SSA-assigned location.
28403 (assign_parms): Maybe reset DECL_RTL of params. Adjust stack
28404 rtl before testing for pointer bounds. Special-case result_ptr.
28405 (expand_function_start): Maybe reset DECL_RTL of result.
28406 Prefer SSA-assigned location for result and static chain.
28407 Factor out DECL_RESULT and SET_DECL_RTL.
28408 * tree-outof-ssa.c (insert_value_copy_on_edge): Handle
28409 anonymous SSA names. Use promote_ssa_mode.
28410 (get_temp_reg): Likewise.
28411 (remove_ssa_form): Adjust.
28412 * var-tracking.c (dataflow_set_clear_at_call): Take call_insn
28413 and get its reg_usage for reg invalidation.
28414 (compute_bb_dataflow): Pass it insn.
28415 (emit_notes_in_bb): Likewise.
28416 * tree-ssa-loop-niter.c (loop_exits_before_overflow): Don't
28417 fail assert on conversion between unsigned types.
28418
28419 2015-06-09 Tom de Vries <tom@codesourcery.com>
28420
28421 PR tree-optimization/65460
28422 * omp-low.c (expand_omp_target): Set parallelized_function on
28423 cgraph_node for child_fn.
28424
28425 2015-06-09 Tom de Vries <tom@codesourcery.com>
28426
28427 * omp-low.c (finalize_task_copyfn, expand_omp_taskreg): Mark function
28428 parallelized_function before add_new_function.
28429
28430 2015-06-09 Andrew MacLeod <amacleod@redhat.com>
28431
28432 * gcc-plugin.h: Move decls to plugin.h and include it.
28433 * plugin.h: Relocate decls from gcc-plugin.h
28434 * ggc-page.c: Include required header files.
28435 * passes.c: Likewise.
28436 * cgraphunit.c: Likewise.
28437
28438 2015-06-09 Tom de Vries <tom@codesourcery.com>
28439
28440 * tree-stdarg.c (expand_ifn_va_arg_1): Handle location.
28441
28442 2015-06-09 Jason Merrill <jason@redhat.com>
28443
28444 PR bootstrap/66448
28445 * toplev.c (check_global_declaration): Don't warn about a clone.
28446
28447 2015-06-09 Marek Polacek <polacek@redhat.com>
28448
28449 PR tree-optimization/66299
28450 * match.pd ((CST1 << A) == CST2 -> A == ctz (CST2) - ctz (CST1)
28451 ((CST1 << A) != CST2 -> A != ctz (CST2) - ctz (CST1)): New
28452 patterns.
28453
28454 2015-06-09 Richard Biener <rguenther@suse.de>
28455
28456 * tree-vect-slp.c (vect_build_slp_tree_1): Remove bailout on gaps.
28457 (vect_analyze_slp_instance): Instead do not falsely drop
28458 load permutations.
28459
28460 2015-06-09 Richard Biener <rguenther@suse.de>
28461
28462 PR middle-end/66423
28463 * match.pd: Handle A % (unsigned)(1 << B).
28464
28465 2015-06-09 Aldy Hernandez <aldyh@redhat.com>
28466
28467 * varasm.c (output_object_block_htab): Remove.
28468 (output_object_block_compare): New.
28469 (output_object_blocks): Sort named object_blocks before outputting
28470 them.
28471
28472 2015-06-09 Richard Biener <rguenther@suse.de>
28473
28474 PR tree-optimization/66419
28475 * tree-vect-slp.c (vect_supported_load_permutation_p): Properly
28476 consider GROUP_GAP when detecting a perfect subchain.
28477
28478 2015-06-09 Nick Clifton <nickc@redhat.com>
28479
28480 * config/rl78/rl78.c (rl78_select_section): When -mes0 is active
28481 place read only data in the .frodata section.
28482
28483 2015-06-09 Shiva Chen <shiva0217@gmail.com>
28484
28485 * sync.md (atomic_load<mode>): Add conditional code for lda/ldr
28486 (atomic_store<mode>): Likewise.
28487
28488 2015-06-09 Richard Biener <rguenther@suse.de>
28489
28490 * cfgloop.c (get_loop_body_in_bfs_order): Fix assert.
28491
28492 2015-06-09 Richard Biener <rguenther@suse.de>
28493
28494 PR middle-end/66413
28495 * tree-inline.c (insert_init_debug_bind): Unshare value.
28496
28497 2015-06-09 Richard Biener <rguenther@suse.de>
28498
28499 PR tree-optimization/66396
28500 * graphite-isl-ast-to-gimple.c (graphite_regenerate_ast_isl):
28501 Rename virtual operands.
28502
28503 2015-06-09 Tom de Vries <tom@codesourcery.com>
28504
28505 * gimple-iterator.h (gimple_seq_nondebug_singleton_p): Don't
28506 always return false.
28507
28508 2015-06-09 Alexandre Oliva <aoliva@redhat.com>
28509
28510 PR rtl-optimization/64164
28511 * Makefile.in (OBJS): Drop tree-ssa-copyrename.o.
28512 * tree-ssa-copyrename.c: Removed.
28513 * opts.c (default_options_table): Drop -ftree-copyrename. Add
28514 -ftree-coalesce-vars.
28515 * passes.def: Drop all occurrences of pass_rename_ssa_copies.
28516 * common.opt (ftree-copyrename): Ignore.
28517 (ftree-coalesce-inlined-vars): Likewise.
28518 * doc/invoke.texi: Remove the ignored options above.
28519 * gimple-expr.h (gimple_can_coalesce_p): Move declaration
28520 * tree-ssa-coalesce.h: ... here.
28521 * tree-ssa-uncprop.c: Include tree-ssa-coalesce.h and other
28522 headers required by it.
28523 * gimple-expr.c (gimple_can_coalesce_p): Allow coalescing
28524 across variables when flag_tree_coalesce_vars. Check register
28525 use and promoted modes to allow coalescing. Moved to
28526 tree-ssa-coalesce.c.
28527 * tree-ssa-live.c (struct tree_int_map_hasher): Move along
28528 with its member functions to tree-ssa-coalesce.c.
28529 (var_map_base_init): Likewise. Renamed to
28530 compute_samebase_partition_bases.
28531 (partition_view_normal): Drop want_bases parameter.
28532 (partition_view_bitmap): Likewise.
28533 * tree-ssa-live.h: Adjust declarations.
28534 * tree-ssa-coalesce.c: Include explow.h.
28535 (build_ssa_conflict_graph): Process PARM_ and RESULT_DECLs's
28536 default defs at the entry point.
28537 (dump_part_var_map): New.
28538 (compute_optimized_partition_bases): New, called by...
28539 (coalesce_ssa_name): ... when flag_tree_coalesce_vars, instead
28540 of compute_samebase_partition_bases. Adjust.
28541 * alias.c (nonoverlapping_memrefs_p): Disregard gimple-regs.
28542 * cfgexpand.c (leader_merge): New.
28543 (get_rtl_for_parm_ssa_default_def): New.
28544 (set_rtl): Merge exprs and attrs, even for MEMs and non-SSA
28545 vars. Update DECL_RTL for PARM_DECLs and RESULT_DECLs too.
28546 (expand_one_stack_var_at): Handle anonymous SSA_NAMEs. Drop
28547 redundant MEM attr setting.
28548 (expand_one_stack_var_1): Handle anonymous SSA_NAMEs. Renamed
28549 from...
28550 (expand_one_stack_var): ... this. New wrapper to check and
28551 skip already expanded SSA partitions.
28552 (record_alignment_for_reg_var): New, factored out of...
28553 (expand_one_var): ... this.
28554 (expand_one_ssa_partition): New.
28555 (adjust_one_expanded_partition_var): New.
28556 (expand_one_register_var): Check and skip already expanded SSA
28557 partitions.
28558 (expand_used_vars): Don't create DECLs for anonymous SSA
28559 names. Expand all SSA partitions, then adjust all SSA names.
28560 (pass::execute): Replace the loops that set
28561 SA.partition_to_pseudo from partition leaders and cleared
28562 DECL_RTL for multi-location variables, and that which used to
28563 rename vars and set attrs, with one that clears DECL_RTL and
28564 checks that PARMs and RESULTs default_defs match DECL_RTL.
28565 * cfgexpand.h (get_rtl_for_parm_ssa_default_def): Declare.
28566 * emit-rtl.c (set_reg_attrs_for_parm): Handle NULL decl.
28567 * explow.c (promote_ssa_mode): New.
28568 * explow.h (promote_ssa_mode): Declare.
28569 * expr.c (expand_expr_real_1): Handle anonymous SSA_NAMEs.
28570 * function.c: Include cfgexpand.h.
28571 (use_register_for_decl): Handle SSA_NAMEs, anonymous or not.
28572 (use_register_for_parm_decl): Wrapper for the above to
28573 special-case the result_ptr.
28574 (rtl_for_parm): Ditto for get_rtl_for_parm_ssa_default_def.
28575 (maybe_reset_rtl_for_parm): Reset DECL_RTL of parms with
28576 multiple locations.
28577 (assign_parm_adjust_stack_rtl): Add all and parm arguments,
28578 for rtl_for_parm. For SSA-assigned parms, zero stack_parm.
28579 (assign_parm_setup_block): Prefer SSA-assigned location.
28580 (assign_parm_setup_reg): Likewise. Use entry_parm for equiv
28581 if stack_parm is NULL.
28582 (assign_parm_setup_stack): Prefer SSA-assigned location.
28583 (assign_parms): Maybe reset DECL_RTL of params. Adjust stack
28584 rtl before testing for pointer bounds. Special-case result_ptr.
28585 (expand_function_start): Maybe reset DECL_RTL of result.
28586 Prefer SSA-assigned location for result and static chain.
28587 Factor out DECL_RESULT and SET_DECL_RTL.
28588 * tree-outof-ssa.c (insert_value_copy_on_edge): Handle
28589 anonymous SSA names. Use promote_ssa_mode.
28590 (get_temp_reg): Likewise.
28591 (remove_ssa_form): Adjust.
28592 * var-tracking.c (dataflow_set_clear_at_call): Take call_insn
28593 and get its reg_usage for reg invalidation.
28594 (compute_bb_dataflow): Pass it insn.
28595 (emit_notes_in_bb): Likewise.
28596 * tree-ssa-loop-niter.c (loop_exits_before_overflow): Don't
28597 fail assert on conversion between unsigned types.
28598
28599 2015-06-09 Alexandre Oliva <aoliva@redhat.com>
28600
28601 PR debug/58315
28602 * tree-inline.c (reset_debug_binding): New.
28603 (reset_debug_bindings): Likewise.
28604 (expand_call_inline): Call it.
28605
28606 2015-06-08 Jan Hubicka <hubicka@ucw.cz>
28607
28608 * tree.c (gimple_canonical_types_compatible_p): Drop comparsion of
28609 TYPE_STRING_FLAG.
28610
28611 2015-06-08 Jan Hubicka <hubicka@ucw.cz>
28612
28613 * lto-streamer-out.c (lto_output_location): Stream
28614 reserved locations correctly.
28615 * lto-streamer-in.c (lto_output_location): Likewise.
28616
28617 2015-06-08 Andrew MacLeod <amacleod@redhat.com>
28618
28619 * coretypes.h: Include hash-table.h and hash-set.h for host files.
28620 * ggc.h: Don't include statistics.h>
28621 * hash-map.h: Remove all includes.
28622 * hash-set.h: Likewise.
28623 * hash-table.h: Add statistics.h, inchash.h and hash-map-traits.h to
28624 the include list. Remove <new>.
28625 * inchash.h: Remove all includes.
28626 * mem-stats.h: Likewise.
28627 * vec.h: No special processing for generators or ggc.
28628 * alias.c : Adjust include files.
28629 * alloc-pool.c : Likewise.
28630 * alloc-pool.h : Likewise.
28631 * asan.c : Likewise.
28632 * attribs.c : Likewise.
28633 * auto-inc-dec.c : Likewise.
28634 * auto-profile.c : Likewise.
28635 * bb-reorder.c : Likewise.
28636 * bitmap.c : Likewise.
28637 * bitmap.h : Likewise.
28638 * bt-load.c : Likewise.
28639 * builtins.c : Likewise.
28640 * caller-save.c : Likewise.
28641 * calls.c : Likewise.
28642 * ccmp.c : Likewise.
28643 * cfg.c : Likewise.
28644 * cfganal.c : Likewise.
28645 * cfgbuild.c : Likewise.
28646 * cfgcleanup.c : Likewise.
28647 * cfgexpand.c : Likewise.
28648 * cfghooks.c : Likewise.
28649 * cfgloop.c : Likewise.
28650 * cfgloop.h : Likewise.
28651 * cfgloopanal.c : Likewise.
28652 * cfgloopmanip.c : Likewise.
28653 * cfgrtl.c : Likewise.
28654 * cgraph.c : Likewise.
28655 * cgraphbuild.c : Likewise.
28656 * cgraphclones.c : Likewise.
28657 * cgraphunit.c : Likewise.
28658 * cilk-common.c : Likewise.
28659 * combine-stack-adj.c : Likewise.
28660 * combine.c : Likewise.
28661 * compare-elim.c : Likewise.
28662 * context.c : Likewise.
28663 * convert.c : Likewise.
28664 * coverage.c : Likewise.
28665 * cppbuiltin.c : Likewise.
28666 * cprop.c : Likewise.
28667 * cse.c : Likewise.
28668 * cselib.c : Likewise.
28669 * data-streamer-in.c : Likewise.
28670 * data-streamer-out.c : Likewise.
28671 * data-streamer.c : Likewise.
28672 * data-streamer.h : Likewise.
28673 * dbxout.c : Likewise.
28674 * dce.c : Likewise.
28675 * ddg.c : Likewise.
28676 * debug.c : Likewise.
28677 * df-core.c : Likewise.
28678 * df-problems.c : Likewise.
28679 * df-scan.c : Likewise.
28680 * df.h : Likewise.
28681 * dfp.c : Likewise.
28682 * dojump.c : Likewise.
28683 * dominance.c : Likewise.
28684 * domwalk.c : Likewise.
28685 * double-int.c : Likewise.
28686 * dse.c : Likewise.
28687 * dumpfile.c : Likewise.
28688 * dwarf2asm.c : Likewise.
28689 * dwarf2cfi.c : Likewise.
28690 * dwarf2out.c : Likewise.
28691 * emit-rtl.c : Likewise.
28692 * et-forest.c : Likewise.
28693 * except.c : Likewise.
28694 * except.h : Likewise.
28695 * explow.c : Likewise.
28696 * expmed.c : Likewise.
28697 * expr.c : Likewise.
28698 * final.c : Likewise.
28699 * fixed-value.c : Likewise.
28700 * fold-const.c : Likewise.
28701 * function.c : Likewise.
28702 * fwprop.c : Likewise.
28703 * gcc-plugin.h : Likewise.
28704 * gcc.c : Likewise.
28705 * gcse-common.c : Likewise.
28706 * gcse.c : Likewise.
28707 * genattrtab.c : Likewise.
28708 * genautomata.c : Likewise.
28709 * genconditions.c : Likewise.
28710 * genemit.c : Likewise.
28711 * generic-match-head.c : Likewise.
28712 * genextract.c : Likewise.
28713 * gengtype-state.c : Likewise.
28714 * gengtype.c : Likewise.
28715 * genhooks.c : Likewise.
28716 * genmatch.c : Likewise.
28717 * genmodes.c : Likewise.
28718 * genrecog.c : Likewise.
28719 * gensupport.c : Likewise.
28720 * ggc-common.c : Likewise.
28721 * ggc-internal.h : Likewise.
28722 * ggc-none.c : Likewise.
28723 * ggc-page.c : Likewise.
28724 * gimple-builder.c : Likewise.
28725 * gimple-expr.c : Likewise.
28726 * gimple-fold.c : Likewise.
28727 * gimple-iterator.c : Likewise.
28728 * gimple-low.c : Likewise.
28729 * gimple-match-head.c : Likewise.
28730 * gimple-pretty-print.c : Likewise.
28731 * gimple-ssa-isolate-paths.c : Likewise.
28732 * gimple-ssa-strength-reduction.c : Likewise.
28733 * gimple-ssa.h : Likewise.
28734 * gimple-streamer-in.c : Likewise.
28735 * gimple-streamer-out.c : Likewise.
28736 * gimple-streamer.h : Likewise.
28737 * gimple-walk.c : Likewise.
28738 * gimple.c : Likewise.
28739 * gimplify-me.c : Likewise.
28740 * gimplify.c : Likewise.
28741 * godump.c : Likewise.
28742 * graph.c : Likewise.
28743 * graphds.c : Likewise.
28744 * graphite-blocking.c : Likewise.
28745 * graphite-dependences.c : Likewise.
28746 * graphite-interchange.c : Likewise.
28747 * graphite-isl-ast-to-gimple.c : Likewise.
28748 * graphite-optimize-isl.c : Likewise.
28749 * graphite-poly.c : Likewise.
28750 * graphite-scop-detection.c : Likewise.
28751 * graphite-sese-to-poly.c : Likewise.
28752 * graphite.c : Likewise.
28753 * haifa-sched.c : Likewise.
28754 * hard-reg-set.h : Likewise.
28755 * hw-doloop.c : Likewise.
28756 * ifcvt.c : Likewise.
28757 * inchash.c : Likewise.
28758 * incpath.c : Likewise.
28759 * init-regs.c : Likewise.
28760 * input.c : Likewise.
28761 * internal-fn.c : Likewise.
28762 * ipa-chkp.c : Likewise.
28763 * ipa-comdats.c : Likewise.
28764 * ipa-cp.c : Likewise.
28765 * ipa-devirt.c : Likewise.
28766 * ipa-icf-gimple.c : Likewise.
28767 * ipa-icf.c : Likewise.
28768 * ipa-inline-analysis.c : Likewise.
28769 * ipa-inline-transform.c : Likewise.
28770 * ipa-inline.c : Likewise.
28771 * ipa-polymorphic-call.c : Likewise.
28772 * ipa-profile.c : Likewise.
28773 * ipa-prop.c : Likewise.
28774 * ipa-pure-const.c : Likewise.
28775 * ipa-ref.c : Likewise.
28776 * ipa-reference.c : Likewise.
28777 * ipa-split.c : Likewise.
28778 * ipa-utils.c : Likewise.
28779 * ipa-visibility.c : Likewise.
28780 * ipa.c : Likewise.
28781 * ira-build.c : Likewise.
28782 * ira-color.c : Likewise.
28783 * ira-conflicts.c : Likewise.
28784 * ira-costs.c : Likewise.
28785 * ira-emit.c : Likewise.
28786 * ira-lives.c : Likewise.
28787 * ira.c : Likewise.
28788 * jump.c : Likewise.
28789 * langhooks.c : Likewise.
28790 * lcm.c : Likewise.
28791 * libfuncs.h : Likewise.
28792 * lists.c : Likewise.
28793 * loop-doloop.c : Likewise.
28794 * loop-init.c : Likewise.
28795 * loop-invariant.c : Likewise.
28796 * loop-iv.c : Likewise.
28797 * loop-unroll.c : Likewise.
28798 * lower-subreg.c : Likewise.
28799 * lra-assigns.c : Likewise.
28800 * lra-coalesce.c : Likewise.
28801 * lra-constraints.c : Likewise.
28802 * lra-eliminations.c : Likewise.
28803 * lra-lives.c : Likewise.
28804 * lra-remat.c : Likewise.
28805 * lra-spills.c : Likewise.
28806 * lra.c : Likewise.
28807 * lto-cgraph.c : Likewise.
28808 * lto-compress.c : Likewise.
28809 * lto-opts.c : Likewise.
28810 * lto-section-in.c : Likewise.
28811 * lto-section-out.c : Likewise.
28812 * lto-streamer-in.c : Likewise.
28813 * lto-streamer-out.c : Likewise.
28814 * lto-streamer.c : Likewise.
28815 * lto-streamer.h : Likewise.
28816 * mcf.c : Likewise.
28817 * mode-switching.c : Likewise.
28818 * modulo-sched.c : Likewise.
28819 * omega.c : Likewise.
28820 * omp-low.c : Likewise.
28821 * optabs.c : Likewise.
28822 * opts-global.c : Likewise.
28823 * opts.h : Likewise.
28824 * passes.c : Likewise.
28825 * plugin.c : Likewise.
28826 * postreload-gcse.c : Likewise.
28827 * postreload.c : Likewise.
28828 * predict.c : Likewise.
28829 * print-rtl.c : Likewise.
28830 * print-tree.c : Likewise.
28831 * profile.c : Likewise.
28832 * read-md.c : Likewise.
28833 * read-md.h : Likewise.
28834 * read-rtl.c : Likewise.
28835 * real.c : Likewise.
28836 * realmpfr.c : Likewise.
28837 * recog.c : Likewise.
28838 * ree.c : Likewise.
28839 * reg-stack.c : Likewise.
28840 * regcprop.c : Likewise.
28841 * reginfo.c : Likewise.
28842 * regrename.c : Likewise.
28843 * regstat.c : Likewise.
28844 * reload.c : Likewise.
28845 * reload1.c : Likewise.
28846 * reorg.c : Likewise.
28847 * resource.c : Likewise.
28848 * rtl-chkp.c : Likewise.
28849 * rtl.c : Likewise.
28850 * rtl.h : Likewise.
28851 * rtlanal.c : Likewise.
28852 * rtlhash.c : Likewise.
28853 * rtlhash.h : Likewise.
28854 * rtlhooks.c : Likewise.
28855 * sanopt.c : Likewise.
28856 * sched-deps.c : Likewise.
28857 * sched-ebb.c : Likewise.
28858 * sched-rgn.c : Likewise.
28859 * sched-vis.c : Likewise.
28860 * sdbout.c : Likewise.
28861 * sel-sched-dump.c : Likewise.
28862 * sel-sched-ir.c : Likewise.
28863 * sel-sched-ir.h : Likewise.
28864 * sel-sched.c : Likewise.
28865 * sese.c : Likewise.
28866 * shrink-wrap.c : Likewise.
28867 * shrink-wrap.h : Likewise.
28868 * simplify-rtx.c : Likewise.
28869 * stack-ptr-mod.c : Likewise.
28870 * statistics.c : Likewise.
28871 * stmt.c : Likewise.
28872 * stor-layout.c : Likewise.
28873 * store-motion.c : Likewise.
28874 * stringpool.c : Likewise.
28875 * symtab.c : Likewise.
28876 * target-globals.c : Likewise.
28877 * targhooks.c : Likewise.
28878 * tlink.c : Likewise.
28879 * toplev.c : Likewise.
28880 * tracer.c : Likewise.
28881 * trans-mem.c : Likewise.
28882 * tree-affine.c : Likewise.
28883 * tree-affine.h : Likewise.
28884 * tree-browser.c : Likewise.
28885 * tree-call-cdce.c : Likewise.
28886 * tree-cfg.c : Likewise.
28887 * tree-cfgcleanup.c : Likewise.
28888 * tree-chkp-opt.c : Likewise.
28889 * tree-chkp.c : Likewise.
28890 * tree-chrec.c : Likewise.
28891 * tree-complex.c : Likewise.
28892 * tree-data-ref.c : Likewise.
28893 * tree-dfa.c : Likewise.
28894 * tree-diagnostic.c : Likewise.
28895 * tree-dump.c : Likewise.
28896 * tree-eh.c : Likewise.
28897 * tree-eh.h : Likewise.
28898 * tree-emutls.c : Likewise.
28899 * tree-hasher.h : Likewise.
28900 * tree-if-conv.c : Likewise.
28901 * tree-inline.c : Likewise.
28902 * tree-inline.h : Likewise.
28903 * tree-into-ssa.c : Likewise.
28904 * tree-iterator.c : Likewise.
28905 * tree-loop-distribution.c : Likewise.
28906 * tree-nested.c : Likewise.
28907 * tree-nrv.c : Likewise.
28908 * tree-object-size.c : Likewise.
28909 * tree-outof-ssa.c : Likewise.
28910 * tree-parloops.c : Likewise.
28911 * tree-phinodes.c : Likewise.
28912 * tree-predcom.c : Likewise.
28913 * tree-pretty-print.c : Likewise.
28914 * tree-profile.c : Likewise.
28915 * tree-scalar-evolution.c : Likewise.
28916 * tree-sra.c : Likewise.
28917 * tree-ssa-address.c : Likewise.
28918 * tree-ssa-alias.c : Likewise.
28919 * tree-ssa-ccp.c : Likewise.
28920 * tree-ssa-coalesce.c : Likewise.
28921 * tree-ssa-copy.c : Likewise.
28922 * tree-ssa-copyrename.c : Likewise.
28923 * tree-ssa-dce.c : Likewise.
28924 * tree-ssa-dom.c : Likewise.
28925 * tree-ssa-dse.c : Likewise.
28926 * tree-ssa-forwprop.c : Likewise.
28927 * tree-ssa-ifcombine.c : Likewise.
28928 * tree-ssa-live.c : Likewise.
28929 * tree-ssa-loop-ch.c : Likewise.
28930 * tree-ssa-loop-im.c : Likewise.
28931 * tree-ssa-loop-ivcanon.c : Likewise.
28932 * tree-ssa-loop-ivopts.c : Likewise.
28933 * tree-ssa-loop-manip.c : Likewise.
28934 * tree-ssa-loop-niter.c : Likewise.
28935 * tree-ssa-loop-prefetch.c : Likewise.
28936 * tree-ssa-loop-unswitch.c : Likewise.
28937 * tree-ssa-loop.c : Likewise.
28938 * tree-ssa-math-opts.c : Likewise.
28939 * tree-ssa-operands.c : Likewise.
28940 * tree-ssa-phiopt.c : Likewise.
28941 * tree-ssa-phiprop.c : Likewise.
28942 * tree-ssa-pre.c : Likewise.
28943 * tree-ssa-propagate.c : Likewise.
28944 * tree-ssa-reassoc.c : Likewise.
28945 * tree-ssa-sccvn.c : Likewise.
28946 * tree-ssa-scopedtables.c : Likewise.
28947 * tree-ssa-sink.c : Likewise.
28948 * tree-ssa-strlen.c : Likewise.
28949 * tree-ssa-structalias.c : Likewise.
28950 * tree-ssa-tail-merge.c : Likewise.
28951 * tree-ssa-ter.c : Likewise.
28952 * tree-ssa-threadedge.c : Likewise.
28953 * tree-ssa-threadupdate.c : Likewise.
28954 * tree-ssa-uncprop.c : Likewise.
28955 * tree-ssa-uninit.c : Likewise.
28956 * tree-ssa.c : Likewise.
28957 * tree-ssanames.c : Likewise.
28958 * tree-stdarg.c : Likewise.
28959 * tree-streamer-in.c : Likewise.
28960 * tree-streamer-out.c : Likewise.
28961 * tree-streamer.c : Likewise.
28962 * tree-streamer.h : Likewise.
28963 * tree-switch-conversion.c : Likewise.
28964 * tree-tailcall.c : Likewise.
28965 * tree-vect-data-refs.c : Likewise.
28966 * tree-vect-generic.c : Likewise.
28967 * tree-vect-loop-manip.c : Likewise.
28968 * tree-vect-loop.c : Likewise.
28969 * tree-vect-patterns.c : Likewise.
28970 * tree-vect-slp.c : Likewise.
28971 * tree-vect-stmts.c : Likewise.
28972 * tree-vectorizer.c : Likewise.
28973 * tree-vectorizer.h : Likewise.
28974 * tree-vrp.c : Likewise.
28975 * tree.c : Likewise.
28976 * tsan.c : Likewise.
28977 * ubsan.c : Likewise.
28978 * valtrack.c : Likewise.
28979 * valtrack.h : Likewise.
28980 * value-prof.c : Likewise.
28981 * var-tracking.c : Likewise.
28982 * varasm.c : Likewise.
28983 * varpool.c : Likewise.
28984 * vec.c: Likewise.
28985 * vmsdbgout.c : Likewise.
28986 * vtable-verify.c : Likewise.
28987 * vtable-verify.h : Likewise.
28988 * web.c : Likewise.
28989 * wide-int.cc : Likewise.
28990 * xcoffout.c : Likewise.
28991 * config/aarch64/aarch64-builtins.c : Likewise.
28992 * config/aarch64/aarch64.c : Likewise.
28993 * config/aarch64/cortex-a57-fma-steering.c : Likewise.
28994 * config/alpha/alpha.c : Likewise.
28995 * config/arc/arc.c : Likewise.
28996 * config/arm/aarch-common.c : Likewise.
28997 * config/arm/arm-builtins.c : Likewise.
28998 * config/arm/arm-c.c : Likewise.
28999 * config/arm/arm.c : Likewise.
29000 * config/avr/avr-c.c : Likewise.
29001 * config/avr/avr-log.c : Likewise.
29002 * config/avr/avr.c : Likewise.
29003 * config/bfin/bfin.c : Likewise.
29004 * config/c6x/c6x.c : Likewise.
29005 * config/cr16/cr16.c : Likewise.
29006 * config/cris/cris.c : Likewise.
29007 * config/darwin-c.c : Likewise.
29008 * config/darwin.c : Likewise.
29009 * config/default-c.c : Likewise.
29010 * config/epiphany/epiphany.c : Likewise.
29011 * config/epiphany/mode-switch-use.c : Likewise.
29012 * config/epiphany/resolve-sw-modes.c : Likewise.
29013 * config/fr30/fr30.c : Likewise.
29014 * config/frv/frv.c : Likewise.
29015 * config/ft32/ft32.c : Likewise.
29016 * config/glibc-c.c : Likewise.
29017 * config/h8300/h8300.c : Likewise.
29018 * config/i386/i386-c.c : Likewise.
29019 * config/i386/i386.c : Likewise.
29020 * config/i386/msformat-c.c : Likewise.
29021 * config/i386/winnt-cxx.c : Likewise.
29022 * config/i386/winnt-stubs.c : Likewise.
29023 * config/i386/winnt.c : Likewise.
29024 * config/ia64/ia64-c.c : Likewise.
29025 * config/ia64/ia64.c : Likewise.
29026 * config/iq2000/iq2000.c : Likewise.
29027 * config/lm32/lm32.c : Likewise.
29028 * config/m32c/m32c-pragma.c : Likewise.
29029 * config/m32c/m32c.c : Likewise.
29030 * config/m32r/m32r.c : Likewise.
29031 * config/m68k/m68k.c : Likewise.
29032 * config/mcore/mcore.c : Likewise.
29033 * config/mep/mep-pragma.c : Likewise.
29034 * config/mep/mep.c : Likewise.
29035 * config/microblaze/microblaze-c.c : Likewise.
29036 * config/microblaze/microblaze.c : Likewise.
29037 * config/mips/mips.c : Likewise.
29038 * config/mmix/mmix.c : Likewise.
29039 * config/mn10300/mn10300.c : Likewise.
29040 * config/moxie/moxie.c : Likewise.
29041 * config/msp430/msp430-c.c : Likewise.
29042 * config/msp430/msp430.c : Likewise.
29043 * config/nds32/nds32-cost.c : Likewise.
29044 * config/nds32/nds32-fp-as-gp.c : Likewise.
29045 * config/nds32/nds32-intrinsic.c : Likewise.
29046 * config/nds32/nds32-isr.c : Likewise.
29047 * config/nds32/nds32-md-auxiliary.c : Likewise.
29048 * config/nds32/nds32-memory-manipulation.c : Likewise.
29049 * config/nds32/nds32-pipelines-auxiliary.c : Likewise.
29050 * config/nds32/nds32-predicates.c : Likewise.
29051 * config/nds32/nds32.c : Likewise.
29052 * config/nios2/nios2.c : Likewise.
29053 * config/nvptx/nvptx.c : Likewise.
29054 * config/pa/pa.c : Likewise.
29055 * config/pdp11/pdp11.c : Likewise.
29056 * config/rl78/rl78-c.c : Likewise.
29057 * config/rl78/rl78.c : Likewise.
29058 * config/rs6000/rs6000-c.c : Likewise.
29059 * config/rs6000/rs6000.c : Likewise.
29060 * config/rx/rx.c : Likewise.
29061 * config/s390/s390-c.c : Likewise.
29062 * config/s390/s390.c : Likewise.
29063 * config/sh/sh-c.c : Likewise.
29064 * config/sh/sh-mem.cc : Likewise.
29065 * config/sh/sh.c : Likewise.
29066 * config/sh/sh_optimize_sett_clrt.cc : Likewise.
29067 * config/sh/sh_treg_combine.cc : Likewise.
29068 * config/sol2-c.c : Likewise.
29069 * config/sol2-cxx.c : Likewise.
29070 * config/sol2-stubs.c : Likewise.
29071 * config/sol2.c : Likewise.
29072 * config/sparc/sparc-c.c : Likewise.
29073 * config/sparc/sparc.c : Likewise.
29074 * config/spu/spu-c.c : Likewise.
29075 * config/spu/spu.c : Likewise.
29076 * config/stormy16/stormy16.c : Likewise.
29077 * config/tilegx/mul-tables.c : Likewise.
29078 * config/tilegx/tilegx-c.c : Likewise.
29079 * config/tilegx/tilegx.c : Likewise.
29080 * config/tilepro/mul-tables.c : Likewise.
29081 * config/tilepro/tilepro-c.c : Likewise.
29082 * config/tilepro/tilepro.c : Likewise.
29083 * config/v850/v850-c.c : Likewise.
29084 * config/v850/v850.c : Likewise.
29085 * config/vax/vax.c : Likewise.
29086 * config/visium/visium.c : Likewise.
29087 * config/vms/vms-c.c : Likewise.
29088 * config/vms/vms.c : Likewise.
29089 * config/vxworks.c : Likewise.
29090 * config/winnt-c.c : Likewise.
29091 * config/xtensa/xtensa.c : Likewise.
29092
29093 2015-06-08 Jan Hubicka <hubicka@ucw.cz>
29094
29095 PR lto/65378
29096 * ipa-utils.h (warn_types_mismatch): Update prototype.
29097 * ipa-devirt.c (odr_types_equivalent_p): Add loc1/loc2
29098 parameters.
29099 (type_mismatch_p): New function.
29100 (warn_types_mismatch): Reorg to work better on non-C++ types.
29101 (odr_types_equivalent_p): Add loc1/loc2 parameters.
29102 (add_type_duplicate): Update.
29103
29104 2015-06-08 Tom de Vries <tom@codesourcery.com>
29105
29106 PR rtl-optimization/66444
29107 * postreload.c (reload_combine): Use get_call_reg_set_usage instead of
29108 call_used_regs.
29109
29110 2015-06-08 Richard Biener <rguenther@suse.de>
29111
29112 PR tree-optimization/66422
29113 * tree-ssa-loop-ivcanon.c (remove_exits_and_undefined_stmts): Split
29114 block after inserted gcc_unreachable.
29115
29116 2015-06-08 Nick Clifton <nickc@redhat.com>
29117
29118 * config/rx/rx.c (rx_function_value): Do not promote vector types.
29119 (rx_promote_function_mode): Likewise.
29120 * config/rx/rx.h (LIBCALL_VALUE): Likewise.
29121
29122 2015-06-08 Jakub Jelinek <jakub@redhat.com>
29123
29124 * genattrtab.c (insn_alternatives): Change type from int *
29125 to uint64_t *.
29126 (check_attr_test): Shift ((uint64_t) 1) instead of 1 up.
29127 (get_attr_value): Change type of num_alt to uint64_t.
29128 (compute_alternative_mask): Change return type from
29129 int to uint64_t, shift ((uint64_t) 1) instead of 1 up.
29130 (make_alternative_compare, mk_attr_alt): Change argument type
29131 from int to uint64_t.
29132 (simplify_test_exp): Change type of i from int to uint64_t.
29133 Shift ((uint64_t) 1) instead of 1 up.
29134 (main): Adjust oballocvec first argument from int to uint64_t.
29135 Shift ((uint64_t) 1) instead of 1 up.
29136
29137 2015-06-08 Jan Kratochvil <jan.kratochvil@redhat.com>
29138
29139 PR other/65366
29140 * gdbhooks.py: Import sys.
29141 (intptr): New function. Replace int(...) by intptr(...).
29142
29143 2015-06-08 Richard Biener <rguenther@suse.de>
29144
29145 * tree-vect-stmts.c (vectorizable_load): Compute the pointer
29146 adjustment for gaps at the end of a SLP load group properly.
29147 * tree-vect-slp.c (vect_supported_load_permutation_p): Allow
29148 all permutations we can generate.
29149 (vect_transform_slp_perm_load): Use the correct group-size.
29150
29151 2015-06-08 Marc Glisse <marc.glisse@inria.fr>
29152
29153 * genmatch.c (expr::gen_transform): For conditions, guess the type
29154 from the second operand.
29155
29156 2015-06-08 Tom de Vries <tom@codesourcery.com>
29157
29158 PR tree-optimization/66442
29159 * gimple-iterator.h (gimple_seq_nondebug_singleton_p): Add function.
29160 * tree-parloops.c (try_transform_to_exit_first_loop_alt): Return false
29161 if the loop latch is not a singleton. Use
29162 gimple_seq_nondebug_singleton_p instead of gimple_seq_singleton_p.
29163
29164 2015-06-08 Marek Polacek <polacek@redhat.com>
29165
29166 PR sanitizer/66452
29167 * toplev.c (check_global_declaration): Don't warn about artificial
29168 decls.
29169
29170 2015-06-08 Tom de Vries <tom@codesourcery.com>
29171
29172 PR tree-optimization/66436
29173 * cgraphunit.c (cgraph_node::analyze): Don't dump function to gimple
29174 dump file.
29175 * gimplify.c: Add tree-dump.h include.
29176 (gimplify_function_tree): Dump function to gimple dump file.
29177 * stor-layout.c (finalize_size_functions): Don't dump function to gimple
29178 dump file.
29179
29180 2015-06-08 Tom de Vries <tom@codesourcery.com>
29181
29182 PR tree-optimization/66435
29183 * cgraphunit.c (cgraph_node::add_new_function): Dump message on new
29184 function.
29185
29186 2015-06-06 Jan Hubicka <hubicka@ucw.cz>
29187
29188 * alias.c (get_alias_set): Be ready for TYPE_CANONICAL
29189 of ptr_type_node to not be ptr_to_node.
29190 * tree.c (gimple_types_compatible_p): Do not match TREE_CODE of
29191 TREE_TYPE of pointers.
29192 * gimple-expr.c (useless_type_conversion): Reorder the check for
29193 function pointers and TYPE_CANONICAL.
29194
29195 2015-06-06 John David Anglin <danglin@gcc.gnu.org>
29196
29197 PR bootstrap/66319
29198 * config/pa/pa-hpux10.h (TARGET_OS_CPP_BUILTINS): Rearrange builtin
29199 defines. Define _LARGEFILE_SOURCE and _LARGEFILE64_SOURCE for c++.
29200 Define _XOPEN_UNIX and _XOPEN_SOURCE_EXTENDED for c++ if unix95 or
29201 later.
29202 * config/pa/pa-hpux11.h (TARGET_OS_CPP_BUILTINS): Likewise.
29203 Define _INCLUDE_STDC_SOURCE_PRE_199901, _INCLUDE_STDC_SOURCE_199901,
29204 _INCLUDE_XOPEN_SOURCE_PRE_500, _INCLUDE_XOPEN_SOURCE_520,
29205 _INCLUDE_XOPEN_SOURCE_PRE_600 and _INCLUDE_XOPEN_SOURCE_600 for c++
29206 and non iso if unix2003.
29207
29208 2015-06-06 Aldy Hernandez <aldyh@redhat.com>
29209
29210 * dwarf2out.c (gen_lexical_block_die): Initialize stmt_die.
29211
29212 2015-06-06 Richard Sandiford <richard.sandiford@arm.com>
29213
29214 * emit-rtl.c, expr.c, gcse.c, optabs.c, optabs.h, print-rtl.c,
29215 rtl.h, bb-reorder.c, builtins.c, calls.c, cfgbuild.c, cfgexpand.c,
29216 cfgrtl.c, cilk-common.c, config/i386/i386.md, cse.c, dwarf2cfi.c,
29217 except.c, final.c, function.c, gcse-common.c, genemit.c,
29218 haifa-sched.c, ifcvt.c, jump.c, loop-invariant.c, loop-iv.c,
29219 lra-constraints.c, lra.c, reload1.c, resource.c, rtlanal.c,
29220 sched-deps.c, sched-ebb.c, sel-sched-ir.c, sel-sched.c,
29221 shrink-wrap.c, stmt.c, store-motion.c: Replace rtx base types with
29222 more derived ones.
29223
29224 2015-06-06 Mikhail Maltsev <maltsevm@gmail.com>
29225
29226 * combine.c (combine_split_insns): Remove cast.
29227 * config/bfin/bfin.c (hwloop_fail): Add cast in try_split call.
29228 * config/sh/sh.c (sh_try_split_insn_simple): Remove cast.
29229 * config/sh/sh_treg_combine.cc (sh_treg_combine::execute): Add cast.
29230 * emit-rtl.c (try_split): Promote type of trial argument to rtx_insn.
29231 * genemit.c (gen_split): Change return type of generated functions to
29232 rtx_insn.
29233 * genrecog.c (get_failure_return): Use NULL instead of NULL_RTX.
29234 (print_subroutine_start): Promote rtx to rtx_insn in gen_split_* and
29235 gen_peephole2_* functions.
29236 (print_subroutine, main): Likewise.
29237 * recog.c (peephole2_optimize): Remove cast.
29238 (peep2_next_insn): Promote return type to rtx_insn.
29239 * recog.h (peep2_next_insn): Fix prototype.
29240 * rtl.h (try_split, split_insns): Likewise.
29241
29242 2015-06-06 DJ Delorie <dj@redhat.com>
29243
29244 * config/msp430/msp430.c (msp430_asm_integer): Support addition
29245 and subtraction too.
29246
29247 2015-06-05 Kaz Kojima <kkojima@gcc.gnu.org>
29248
29249 PR target/66410
29250 * config/sh/constraints.md (Sid, Ssd): New memory constraints.
29251 * config/sh/sh.md (*mov<mode>): Use Sid and Ssd alternatives
29252 instead of Snd. Disparage Sid/z alternative with '^'.
29253
29254 2015-06-05 Aldy Hernandez <aldyh@redhat.com>
29255
29256 * dwarf2out.c: Remove deferred_locations*.
29257 (dwarf2_debug_hooks): Add early_finish hook.
29258 Remove global_decl hook.
29259 Add early_global_decl and late_global_decl hook.
29260 New global early_dwarf.
29261 New structure set_early_dwarf.
29262 (output_die): Indicate whether a DIE was generated early
29263 when generating assembly with -dA.
29264 (struct limbo_die_struct): Document created_for field.
29265 Remove file_table_last_lookup.
29266 (remove_AT): Return TRUE if successful.
29267 (remove_child_TAG): Clear die_parent.
29268 (reparent_child): New function abstracted from...
29269 (splice_child_die): ...here.
29270 (new_die): ICE if a DIE ends up in limbo too late.
29271 (check_die): New.
29272 (defer_location): Remove.
29273 (add_subscript_info): Reuse DW_TAG_subrange_type if available.
29274 (fill_variable_array_bounds): New.
29275 (decl_start_label): Call fill_variable_array_bounds.
29276 (gen_formal_parameter_die): Rewrite to reuse previously generated
29277 DIEs.
29278 (gen_subprogram_die): Same.
29279 (gen_variable_die): Same.
29280 (gen_const_die): Same.
29281 (gen_label_die): Same.
29282 (gen_lexical_block_die): Same.
29283 (decl_will_get_specification_p): New.
29284 (local_function_static): New.
29285 (gen_struct_or_union_type_die): Fill in variable-length fields.
29286 (gen_typedef_die): Fill in variable-length typedefs.
29287 (gen_tagged_type_die): Gracefully return on error_mark_node.
29288 Handle re-entrancy.
29289 (gen_type_die_with_usage): Handle variable-length types.
29290 Remove duplicate code for ARRAY_TYPE case.
29291 (process_scope_var): Only process imported modules during early
29292 dwarf.
29293 (dwarf2out_early_global_decl): New.
29294 (dwarf2out_late_global_decl): Rename from dwarf2out_global_decl.
29295 (dwarf2out_type_decl): Set early_dwarf while calling
29296 dwarf2out_decl.
29297 (dwarf2out_decl): Verify that we did not recreate a previously
29298 generated DIE.
29299 Do not return on DECL_EXTERNALs in VAR_DECLs.
29300 Abstract some code to local_function_static.
29301 (lookup_filename): Remove use of file_table_last_lookup.
29302 Gracefully exit on missing file_name.
29303 (dwarf2out_finish): Verify limbo list.
29304 Remove deferred_locations_list use.
29305 Move deferred_asm_name and limbo flushing to...
29306 (dwarf2out_early_finish): ...here. New.
29307 (dwarf2out_c_finalize): Remove set of deferred_location_list,
29308 deferred_asm_name, and file_table_last_lookup.
29309 * cgraph.h (referred_to_p): Add default argument.
29310 * cgraphunit.c (referred_to_p): Add and handle include_self
29311 argument.
29312 (analyze_functions): Add first_time argument.
29313 Call check_global_declaration for all symbols.
29314 Call late_global_decl for nodes for moribund nodes.
29315 (finalize_compilation_unit): Add new argument to
29316 analyze_functions.
29317 Call early_global_decl for functions.
29318 Call early_finish debug hook.
29319 * dbxout.c (dbxout_early_global_decl): New.
29320 (dbxout_late_global_decl): New. Adapted from dbxout_global_decl.
29321 (dbx_debug_hooks): Add new hooks.
29322 (xcoff_debug_hooks): Same.
29323 * debug.c (do_nothing_debug_hooks): Add early_finish field.
29324 Add early and late debug hooks.
29325 Remove global_decl hook.
29326 * debug.h (struct gcc_debug_hooks): Add early_finish,
29327 early_global_decl, and late_global_decl fields.
29328 Remove global_decl field.
29329 Document gcc_debug_hooks.
29330 * gengtype.c (output_typename): Remove.
29331 * godump.c (go_early_global_decl): New.
29332 (go_late_global_decl): New.
29333 (go_global_decl): Remove.
29334 (dump_go_spec_init): Remove global_decl. Add
29335 {early,late}_global_decl.
29336 * langhooks-def.h (LANG_HOOKS_WRITE_GLOBALS): Remove.
29337 (LANG_HOOKS_POST_COMPILATION_PARSING_CLEANUPS): New.
29338 * langhooks.c (lhd_warn_unused_global_decl): Adjust comment.
29339 (write_global_declarations): Remove.
29340 (global_decl_processing): New.
29341 * langhooks.h (struct lang_hooks_for_decls): Remove
29342 final_write_globals field.
29343 Add post_compilation_parsing_cleanups field.
29344 * passes.c (rest_of_decl_compilation): Call early_global_decl.
29345 * sdbout.c: Add early and late_global_decl hooks. Remove
29346 sdbout_global_decl hook.
29347 Add early_finish field for sdb_debug_hooks.
29348 (sdbout_global_decl): Remove.
29349 (sdbout_early_global_decl): New.
29350 (sdbout_late_global_decl): New.
29351 * timevar.def (TV_PHASE_LATE_PARSING_CLEANUPS): New.
29352 * toplev.c (check_global_declaration): Rename from
29353 check_global_declaration_1.
29354 Adapt to use symtab infrastructure.
29355 (check_global_declarations): Remove.
29356 (emit_debug_global_declarations): Remove.
29357 (compile_file): Remove call to final_write_globals langhook.
29358 Run the actual compilation process.
29359 Perform any post compilation parser cleanups.
29360 Generate late debug info.
29361 * toplev.h (check_global_declaration): New.
29362 (check_global_declaration_1): Remove.
29363 (check_global_declarations): Remove.
29364 (write_global_declarations): Remove.
29365 (emit_debug_global_declarations): Remove.
29366 (global_decl_processing): New.
29367 * tree-core.h (struct tree_block): Add DIE field.
29368 * tree.h (BLOCK_DIE): New.
29369 * vmsdbgout.c (vmsdbgout_global_decl): Remove function and its use
29370 throughout.
29371 (vmsdbgout_early_global_decl): New.
29372 (vmsdbgout_late_global_decl): New.
29373 Add early_finish debug hook field to vmsdbg_debug_hooks.
29374 Remove vmsdbgout_decl to vmsdbgout_function_decl.
29375 Add early and late_global_decl debug hooks.
29376
29377 2015-06-05 Julian Brown <julian@codesourcery.com>
29378 Sandra Loosemore <sandra@codesourcery.com>
29379
29380 * config/print-sysroot-suffix.sh: Handle MULTILIB_REUSE settings.
29381 * config/t-sysroot-suffix (sysroot-suffix.h): Pass MULTILIB_REUSE
29382 to print-sysroot-suffix.sh script.
29383
29384 2015-06-05 Tom de Vries <tom@codesourcery.com>
29385
29386 merge from gomp4 branch:
29387 2015-05-28 Tom de Vries <tom@codesourcery.com>
29388
29389 PR tree-optimization/65443
29390 * tree-parloops.c (replace_imm_uses, replace_uses_in_bb_by)
29391 (replace_uses_in_bbs_by, transform_to_exit_first_loop_alt)
29392 (try_transform_to_exit_first_loop_alt): New function.
29393 (transform_to_exit_first_loop): Use
29394 try_transform_to_exit_first_loop_alt.
29395
29396 2015-06-05 James Greenhalgh <james.greenhalgh@arm.com>
29397
29398 * builtins.c (expand_builtin_atomic_compare_exchange): Call
29399 emit_cmp_and_jump_insns with the mode of target.
29400
29401 2015-06-05 Venkataramanan Kumar <venkataramanan.kumar@amd.com>
29402
29403 * config/i386/sse.md (sse3_mwait): Swap the operand constriants.
29404
29405 2015-06-04 DJ Delorie <dj@redhat.com>
29406
29407 * config/msp430/msp430.md (movsi_s): New. Special case for
29408 storing a 20-bit symbol into a 32-bit register.
29409 * config/msp430/msp430.c (msp430_subreg): Add support for it.
29410 * config/msp430/predicates.md (msp430_symbol_operand): New.
29411
29412 2015-06-04 Sriraman Tallam <tmsriram@google.com>
29413
29414 * calls.c (prepare_call_address): Check for noplt
29415 attribute.
29416 * config/i386/i386.c (ix86_expand_call): Check
29417 for noplt attribute.
29418 (ix86_nopic_noplt_attribute_p): New function.
29419 (ix86_output_call_insn): Output indirect call for non-pic
29420 no plt calls.
29421 * doc/extend.texi (noplt): Document new attribute.
29422 * doc/invoke.texi: Document new attribute.
29423
29424 2015-06-04 Andrew MacLeod <amacleod@redhat.com>
29425
29426 * coretypes.h: Include machmode.h, signop.h, wide-int.h, double-int.h,
29427 real.h, and fixed-value.h when included in host source files.
29428 * double-int.h: Remove redundant #includes listed above.
29429 * fixed-value.h: Likewise.
29430 * real.h: Likewise.
29431 * wide-int.h: Likewise.
29432 * inchash.h: Likewise.
29433 * rtl.h: Add some include files When included from a generator file.
29434 * target.h: Remove wide-int.h and insn-modes.h from the include list.
29435 * internal-fn.h: Don't include coretypes.h.
29436 * alias.c: Adjust includes for restructured coretypes.h.
29437 * asan.c: Likewise.
29438 * attribs.c: Likewise.
29439 * auto-inc-dec.c: Likewise.
29440 * auto-profile.c: Likewise.
29441 * bb-reorder.c: Likewise.
29442 * bt-load.c: Likewise.
29443 * builtins.c: Likewise.
29444 * caller-save.c: Likewise.
29445 * calls.c: Likewise.
29446 * ccmp.c: Likewise.
29447 * cfg.c: Likewise.
29448 * cfganal.c: Likewise.
29449 * cfgbuild.c: Likewise.
29450 * cfgcleanup.c: Likewise.
29451 * cfgexpand.c: Likewise.
29452 * cfghooks.c: Likewise.
29453 * cfgloop.c: Likewise.
29454 * cfgloop.h: Likewise.
29455 * cfgloopanal.c: Likewise.
29456 * cfgloopmanip.c: Likewise.
29457 * cfgrtl.c: Likewise.
29458 * cgraph.c: Likewise.
29459 * cgraphbuild.c: Likewise.
29460 * cgraphclones.c: Likewise.
29461 * cgraphunit.c: Likewise.
29462 * cilk-common.c: Likewise.
29463 * combine-stack-adj.c: Likewise.
29464 * combine.c: Likewise.
29465 * compare-elim.c: Likewise.
29466 * convert.c: Likewise.
29467 * coverage.c: Likewise.
29468 * cppbuiltin.c: Likewise.
29469 * cprop.c: Likewise.
29470 * cse.c: Likewise.
29471 * cselib.c: Likewise.
29472 * data-streamer-in.c: Likewise.
29473 * data-streamer-out.c: Likewise.
29474 * data-streamer.c: Likewise.
29475 * dbxout.c: Likewise.
29476 * dce.c: Likewise.
29477 * ddg.c: Likewise.
29478 * debug.c: Likewise.
29479 * df-core.c: Likewise.
29480 * df-problems.c: Likewise.
29481 * df-scan.c: Likewise.
29482 * df.h: Likewise.
29483 * dfp.c: Likewise.
29484 * dojump.c: Likewise.
29485 * dominance.c: Likewise.
29486 * domwalk.c: Likewise.
29487 * double-int.c: Likewise.
29488 * dse.c: Likewise.
29489 * dumpfile.c: Likewise.
29490 * dwarf2asm.c: Likewise.
29491 * dwarf2cfi.c: Likewise.
29492 * dwarf2out.c: Likewise.
29493 * dwarf2out.h: Likewise.
29494 * emit-rtl.c: Likewise.
29495 * et-forest.c: Likewise.
29496 * except.c: Likewise.
29497 * explow.c: Likewise.
29498 * expmed.c: Likewise.
29499 * expr.c: Likewise.
29500 * final.c: Likewise.
29501 * fixed-value.c: Likewise.
29502 * fold-const.c: Likewise.
29503 * function.c: Likewise.
29504 * fwprop.c: Likewise.
29505 * gcc-plugin.h: Likewise.
29506 * gcse.c: Likewise.
29507 * generic-match-head.c: Likewise.
29508 * ggc-page.c: Likewise.
29509 * gimple-builder.c: Likewise.
29510 * gimple-expr.c: Likewise.
29511 * gimple-fold.c: Likewise.
29512 * gimple-iterator.c: Likewise.
29513 * gimple-low.c: Likewise.
29514 * gimple-match-head.c: Likewise.
29515 * gimple-pretty-print.c: Likewise.
29516 * gimple-ssa-isolate-paths.c: Likewise.
29517 * gimple-ssa-strength-reduction.c: Likewise.
29518 * gimple-streamer-in.c: Likewise.
29519 * gimple-streamer-out.c: Likewise.
29520 * gimple-streamer.h: Likewise.
29521 * gimple-walk.c: Likewise.
29522 * gimple.c: Likewise.
29523 * gimplify-me.c: Likewise.
29524 * gimplify.c: Likewise.
29525 * godump.c: Likewise.
29526 * graph.c: Likewise.
29527 * graphite-blocking.c: Likewise.
29528 * graphite-dependences.c: Likewise.
29529 * graphite-interchange.c: Likewise.
29530 * graphite-isl-ast-to-gimple.c: Likewise.
29531 * graphite-optimize-isl.c: Likewise.
29532 * graphite-poly.c: Likewise.
29533 * graphite-scop-detection.c: Likewise.
29534 * graphite-sese-to-poly.c: Likewise.
29535 * graphite.c: Likewise.
29536 * haifa-sched.c: Likewise.
29537 * hooks.h: Likewise.
29538 * hw-doloop.c: Likewise.
29539 * ifcvt.c: Likewise.
29540 * incpath.c: Likewise.
29541 * init-regs.c: Likewise.
29542 * internal-fn.c: Likewise.
29543 * ipa-chkp.c: Likewise.
29544 * ipa-comdats.c: Likewise.
29545 * ipa-cp.c: Likewise.
29546 * ipa-devirt.c: Likewise.
29547 * ipa-icf-gimple.c: Likewise.
29548 * ipa-icf.c: Likewise.
29549 * ipa-inline-analysis.c: Likewise.
29550 * ipa-inline-transform.c: Likewise.
29551 * ipa-inline.c: Likewise.
29552 * ipa-polymorphic-call.c: Likewise.
29553 * ipa-profile.c: Likewise.
29554 * ipa-prop.c: Likewise.
29555 * ipa-pure-const.c: Likewise.
29556 * ipa-ref.c: Likewise.
29557 * ipa-reference.c: Likewise.
29558 * ipa-split.c: Likewise.
29559 * ipa-utils.c: Likewise.
29560 * ipa-visibility.c: Likewise.
29561 * ipa.c: Likewise.
29562 * ira-build.c: Likewise.
29563 * ira-color.c: Likewise.
29564 * ira-conflicts.c: Likewise.
29565 * ira-costs.c: Likewise.
29566 * ira-emit.c: Likewise.
29567 * ira-lives.c: Likewise.
29568 * ira.c: Likewise.
29569 * jump.c: Likewise.
29570 * langhooks.c: Likewise.
29571 * lcm.c: Likewise.
29572 * loop-doloop.c: Likewise.
29573 * loop-init.c: Likewise.
29574 * loop-invariant.c: Likewise.
29575 * loop-iv.c: Likewise.
29576 * loop-unroll.c: Likewise.
29577 * lower-subreg.c: Likewise.
29578 * lra-assigns.c: Likewise.
29579 * lra-coalesce.c: Likewise.
29580 * lra-constraints.c: Likewise.
29581 * lra-eliminations.c: Likewise.
29582 * lra-lives.c: Likewise.
29583 * lra-remat.c: Likewise.
29584 * lra-spills.c: Likewise.
29585 * lra.c: Likewise.
29586 * lto-cgraph.c: Likewise.
29587 * lto-compress.c: Likewise.
29588 * lto-opts.c: Likewise.
29589 * lto-section-in.c: Likewise.
29590 * lto-section-out.c: Likewise.
29591 * lto-streamer-in.c: Likewise.
29592 * lto-streamer-out.c: Likewise.
29593 * lto-streamer.c: Likewise.
29594 * mcf.c: Likewise.
29595 * mode-switching.c: Likewise.
29596 * modulo-sched.c: Likewise.
29597 * omega.c: Likewise.
29598 * omp-low.c: Likewise.
29599 * optabs.c: Likewise.
29600 * opts-global.c: Likewise.
29601 * passes.c: Likewise.
29602 * plugin.c: Likewise.
29603 * postreload-gcse.c: Likewise.
29604 * postreload.c: Likewise.
29605 * predict.c: Likewise.
29606 * print-rtl.c: Likewise.
29607 * print-tree.c: Likewise.
29608 * profile.c: Likewise.
29609 * real.c: Likewise.
29610 * realmpfr.c: Likewise.
29611 * realmpfr.h: Likewise.
29612 * recog.c: Likewise.
29613 * ree.c: Likewise.
29614 * reg-stack.c: Likewise.
29615 * regcprop.c: Likewise.
29616 * reginfo.c: Likewise.
29617 * regrename.c: Likewise.
29618 * regs.h: Likewise.
29619 * regstat.c: Likewise.
29620 * reload.c: Likewise.
29621 * reload1.c: Likewise.
29622 * reorg.c: Likewise.
29623 * resource.c: Likewise.
29624 * rtl-chkp.c: Likewise.
29625 * rtlanal.c: Likewise.
29626 * rtlhooks.c: Likewise.
29627 * sanopt.c: Likewise.
29628 * sched-deps.c: Likewise.
29629 * sched-ebb.c: Likewise.
29630 * sched-rgn.c: Likewise.
29631 * sched-vis.c: Likewise.
29632 * sdbout.c: Likewise.
29633 * sel-sched-dump.c: Likewise.
29634 * sel-sched-ir.c: Likewise.
29635 * sel-sched.c: Likewise.
29636 * sese.c: Likewise.
29637 * shrink-wrap.c: Likewise.
29638 * shrink-wrap.h: Likewise.
29639 * simplify-rtx.c: Likewise.
29640 * stack-ptr-mod.c: Likewise.
29641 * statistics.c: Likewise.
29642 * stmt.c: Likewise.
29643 * stor-layout.c: Likewise.
29644 * store-motion.c: Likewise.
29645 * stringpool.c: Likewise.
29646 * symtab.c: Likewise.
29647 * target-globals.c: Likewise.
29648 * targhooks.c: Likewise.
29649 * toplev.c: Likewise.
29650 * tracer.c: Likewise.
29651 * trans-mem.c: Likewise.
29652 * tree-affine.c: Likewise.
29653 * tree-affine.h: Likewise.
29654 * tree-browser.c: Likewise.
29655 * tree-call-cdce.c: Likewise.
29656 * tree-cfg.c: Likewise.
29657 * tree-cfgcleanup.c: Likewise.
29658 * tree-chkp-opt.c: Likewise.
29659 * tree-chkp.c: Likewise.
29660 * tree-chrec.c: Likewise.
29661 * tree-complex.c: Likewise.
29662 * tree-data-ref.c: Likewise.
29663 * tree-dfa.c: Likewise.
29664 * tree-diagnostic.c: Likewise.
29665 * tree-dump.c: Likewise.
29666 * tree-eh.c: Likewise.
29667 * tree-emutls.c: Likewise.
29668 * tree-if-conv.c: Likewise.
29669 * tree-inline.c: Likewise.
29670 * tree-into-ssa.c: Likewise.
29671 * tree-iterator.c: Likewise.
29672 * tree-loop-distribution.c: Likewise.
29673 * tree-nested.c: Likewise.
29674 * tree-nrv.c: Likewise.
29675 * tree-object-size.c: Likewise.
29676 * tree-outof-ssa.c: Likewise.
29677 * tree-parloops.c: Likewise.
29678 * tree-phinodes.c: Likewise.
29679 * tree-predcom.c: Likewise.
29680 * tree-pretty-print.c: Likewise.
29681 * tree-pretty-print.h: Likewise.
29682 * tree-profile.c: Likewise.
29683 * tree-scalar-evolution.c: Likewise.
29684 * tree-sra.c: Likewise.
29685 * tree-ssa-address.c: Likewise.
29686 * tree-ssa-alias.c: Likewise.
29687 * tree-ssa-ccp.c: Likewise.
29688 * tree-ssa-coalesce.c: Likewise.
29689 * tree-ssa-copy.c: Likewise.
29690 * tree-ssa-copyrename.c: Likewise.
29691 * tree-ssa-dce.c: Likewise.
29692 * tree-ssa-dom.c: Likewise.
29693 * tree-ssa-dse.c: Likewise.
29694 * tree-ssa-forwprop.c: Likewise.
29695 * tree-ssa-ifcombine.c: Likewise.
29696 * tree-ssa-live.c: Likewise.
29697 * tree-ssa-loop-ch.c: Likewise.
29698 * tree-ssa-loop-im.c: Likewise.
29699 * tree-ssa-loop-ivcanon.c: Likewise.
29700 * tree-ssa-loop-ivopts.c: Likewise.
29701 * tree-ssa-loop-manip.c: Likewise.
29702 * tree-ssa-loop-niter.c: Likewise.
29703 * tree-ssa-loop-prefetch.c: Likewise.
29704 * tree-ssa-loop-unswitch.c: Likewise.
29705 * tree-ssa-loop.c: Likewise.
29706 * tree-ssa-loop.h: Likewise.
29707 * tree-ssa-math-opts.c: Likewise.
29708 * tree-ssa-operands.c: Likewise.
29709 * tree-ssa-phiopt.c: Likewise.
29710 * tree-ssa-phiprop.c: Likewise.
29711 * tree-ssa-pre.c: Likewise.
29712 * tree-ssa-propagate.c: Likewise.
29713 * tree-ssa-reassoc.c: Likewise.
29714 * tree-ssa-sccvn.c: Likewise.
29715 * tree-ssa-scopedtables.c: Likewise.
29716 * tree-ssa-sink.c: Likewise.
29717 * tree-ssa-strlen.c: Likewise.
29718 * tree-ssa-structalias.c: Likewise.
29719 * tree-ssa-tail-merge.c: Likewise.
29720 * tree-ssa-ter.c: Likewise.
29721 * tree-ssa-threadedge.c: Likewise.
29722 * tree-ssa-threadupdate.c: Likewise.
29723 * tree-ssa-uncprop.c: Likewise.
29724 * tree-ssa-uninit.c: Likewise.
29725 * tree-ssa.c: Likewise.
29726 * tree-ssanames.c: Likewise.
29727 * tree-stdarg.c: Likewise.
29728 * tree-streamer-in.c: Likewise.
29729 * tree-streamer-out.c: Likewise.
29730 * tree-streamer.c: Likewise.
29731 * tree-switch-conversion.c: Likewise.
29732 * tree-tailcall.c: Likewise.
29733 * tree-vect-data-refs.c: Likewise.
29734 * tree-vect-generic.c: Likewise.
29735 * tree-vect-loop-manip.c: Likewise.
29736 * tree-vect-loop.c: Likewise.
29737 * tree-vect-patterns.c: Likewise.
29738 * tree-vect-slp.c: Likewise.
29739 * tree-vect-stmts.c: Likewise.
29740 * tree-vectorizer.c: Likewise.
29741 * tree-vrp.c: Likewise.
29742 * tree.c: Likewise.
29743 * tsan.c: Likewise.
29744 * ubsan.c: Likewise.
29745 * valtrack.c: Likewise.
29746 * value-prof.c: Likewise.
29747 * var-tracking.c: Likewise.
29748 * varasm.c: Likewise.
29749 * varpool.c: Likewise.
29750 * vmsdbgout.c: Likewise.
29751 * vtable-verify.c: Likewise.
29752 * web.c: Likewise.
29753 * wide-int-print.cc: Likewise.
29754 * wide-int-print.h: Likewise.
29755 * wide-int.cc: Likewise.
29756 * xcoffout.c: Likewise.
29757 * config/aarch64/aarch64-builtins.c: Likewise.
29758 * config/aarch64/aarch64.c: Likewise.
29759 * config/aarch64/cortex-a57-fma-steering.c: Likewise.
29760 * config/alpha/alpha.c: Likewise.
29761 * config/arc/arc.c: Likewise.
29762 * config/arm/aarch-common.c: Likewise.
29763 * config/arm/arm-builtins.c: Likewise.
29764 * config/arm/arm-c.c: Likewise.
29765 * config/arm/arm.c: Likewise.
29766 * config/avr/avr-c.c: Likewise.
29767 * config/avr/avr-log.c: Likewise.
29768 * config/avr/avr.c: Likewise.
29769 * config/bfin/bfin.c: Likewise.
29770 * config/c6x/c6x.c: Likewise.
29771 * config/cr16/cr16.c: Likewise.
29772 * config/cris/cris.c: Likewise.
29773 * config/darwin-c.c: Likewise.
29774 * config/darwin.c: Likewise.
29775 * config/default-c.c: Likewise.
29776 * config/epiphany/epiphany.c: Likewise.
29777 * config/epiphany/mode-switch-use.c: Likewise.
29778 * config/epiphany/resolve-sw-modes.c: Likewise.
29779 * config/fr30/fr30.c: Likewise.
29780 * config/frv/frv.c: Likewise.
29781 * config/ft32/ft32.c: Likewise.
29782 * config/glibc-c.c: Likewise.
29783 * config/h8300/h8300.c: Likewise.
29784 * config/i386/i386-c.c: Likewise.
29785 * config/i386/i386.c: Likewise.
29786 * config/i386/msformat-c.c: Likewise.
29787 * config/i386/winnt-cxx.c: Likewise.
29788 * config/i386/winnt-stubs.c: Likewise.
29789 * config/i386/winnt.c: Likewise.
29790 * config/ia64/ia64-c.c: Likewise.
29791 * config/ia64/ia64.c: Likewise.
29792 * config/iq2000/iq2000.c: Likewise.
29793 * config/lm32/lm32.c: Likewise.
29794 * config/m32c/m32c-pragma.c: Likewise.
29795 * config/m32c/m32c.c: Likewise.
29796 * config/m32r/m32r.c: Likewise.
29797 * config/m68k/m68k.c: Likewise.
29798 * config/mcore/mcore.c: Likewise.
29799 * config/mep/mep-pragma.c: Likewise.
29800 * config/mep/mep.c: Likewise.
29801 * config/microblaze/microblaze-c.c: Likewise.
29802 * config/microblaze/microblaze.c: Likewise.
29803 * config/mips/mips.c: Likewise.
29804 * config/mmix/mmix.c: Likewise.
29805 * config/mn10300/mn10300.c: Likewise.
29806 * config/moxie/moxie.c: Likewise.
29807 * config/msp430/msp430-c.c: Likewise.
29808 * config/msp430/msp430.c: Likewise.
29809 * config/nds32/nds32-cost.c: Likewise.
29810 * config/nds32/nds32-fp-as-gp.c: Likewise.
29811 * config/nds32/nds32-intrinsic.c: Likewise.
29812 * config/nds32/nds32-isr.c: Likewise.
29813 * config/nds32/nds32-md-auxiliary.c: Likewise.
29814 * config/nds32/nds32-memory-manipulation.c: Likewise.
29815 * config/nds32/nds32-pipelines-auxiliary.c: Likewise.
29816 * config/nds32/nds32-predicates.c: Likewise.
29817 * config/nds32/nds32.c: Likewise.
29818 * config/nios2/nios2.c: Likewise.
29819 * config/nvptx/nvptx.c: Likewise.
29820 * config/pa/pa.c: Likewise.
29821 * config/pdp11/pdp11.c: Likewise.
29822 * config/rl78/rl78-c.c: Likewise.
29823 * config/rl78/rl78.c: Likewise.
29824 * config/rs6000/rs6000-c.c: Likewise.
29825 * config/rs6000/rs6000.c: Likewise.
29826 * config/rx/rx.c: Likewise.
29827 * config/s390/s390-c.c: Likewise.
29828 * config/s390/s390.c: Likewise.
29829 * config/sh/sh-c.c: Likewise.
29830 * config/sh/sh-mem.cc: Likewise.
29831 * config/sh/sh.c: Likewise.
29832 * config/sh/sh_optimize_sett_clrt.cc: Likewise.
29833 * config/sh/sh_treg_combine.cc: Likewise.
29834 * config/sol2-c.c: Likewise.
29835 * config/sol2-cxx.c: Likewise.
29836 * config/sol2-stubs.c: Likewise.
29837 * config/sol2.c: Likewise.
29838 * config/sparc/sparc-c.c: Likewise.
29839 * config/sparc/sparc.c: Likewise.
29840 * config/spu/spu-c.c: Likewise.
29841 * config/spu/spu.c: Likewise.
29842 * config/stormy16/stormy16.c: Likewise.
29843 * config/tilegx/mul-tables.c: Likewise.
29844 * config/tilegx/tilegx-c.c: Likewise.
29845 * config/tilegx/tilegx.c: Likewise.
29846 * config/tilepro/mul-tables.c: Likewise.
29847 * config/tilepro/tilepro-c.c: Likewise.
29848 * config/tilepro/tilepro.c: Likewise.
29849 * config/v850/v850-c.c: Likewise.
29850 * config/v850/v850.c: Likewise.
29851 * config/vax/vax.c: Likewise.
29852 * config/visium/visium.c: Likewise.
29853 * config/vms/vms-c.c: Likewise.
29854 * config/vms/vms.c: Likewise.
29855 * config/vxworks.c: Likewise.
29856 * config/winnt-c.c: Likewise.
29857 * config/xtensa/xtensa.c: Likewise.
29858 * common/config/bfin/bfin-common.c: Likewise.
29859
29860 2015-06-04 Jan Hubicka <hubicka@ucw.cz>
29861
29862 * tree.h (tree_code_for_canonical_type_merging): New function.
29863 * tree.c (gimple_canonical_types_compatible_p): Use
29864 tree_code_for_canonical_type_merging..
29865
29866 2015-06-04 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
29867
29868 PR c++/66192
29869 PR target/66200
29870 * doc/tm.texi: Regenerate.
29871 * doc/tm.texi.in (TARGET_RELAXED_ORDERING): Delete.
29872 * target.def (TARGET_RELAXED_ORDERING): Likewise.
29873 * config/alpha/alpha.c (TARGET_RELAXED_ORDERING): Likewise.
29874 * config/ia64/ia64.c (TARGET_RELAXED_ORDERING): Likewise.
29875 * config/rs6000/rs6000.c (TARGET_RELAXED_ORDERING): Likewise.
29876 * config/sparc/linux.h (SPARC_RELAXED_ORDERING): Likewise.
29877 * config/sparc/linux64.h (SPARC_RELAXED_ORDERING): Likewise.
29878 * config/sparc/sparc.c (TARGET_RELAXED_ORDERING): Likewise.
29879 * config/sparc/sparc.h (SPARC_RELAXED_ORDERING): Likewise.
29880
29881 2015-06-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
29882
29883 * config/aarch64/aarch64.c (aarch64_override_options): Unconditionally
29884 register fma steering pass.
29885 * config/aarch64/cortex-a57-fma-steering.c (gate): Add gating on
29886 AARCH64_TUNE_FMA_STEERING.
29887
29888 2015-06-03 Jan Hubicka <hubicka@ucw.cz>
29889
29890 * tree.c (verify_type_variant): Verify that type and variant is
29891 compatible.
29892 (gimple_canonical_types_compatible_p): Look for main variants.
29893
29894 2015-06-03 Michael Meissner <meissner@linux.vnet.ibm.com>
29895
29896 * config.gcc (powerpc*-*-*): Add support for a new configure
29897 option --with-advance-toolchain=<xxx> which overrides using the
29898 default header files, libraries and dynamic linker.
29899
29900 * config/rs6000/linux64.h (SUBSUBTARGET_EXTRA_SPECS): Add new
29901 specs to support the configure --with-advance-toolchain=<xxx>
29902 option.
29903 (INCLUDE_EXTRA_SPEC): Likewise.
29904 (LINK_OS_EXTRA_SPEC32): Likewise.
29905 (LINK_OK_EXTRA_SPEC64): Likewise.
29906 (LINK_OS_NEW_DTAGS_SPEC): Likewise.
29907 (DYNAMIC_LINKER_PREFIX): Likewise.
29908 (CPP_OS_DEFAULT_SPEC): Use the new specs for providing advance
29909 toolchain support.
29910 (GLIBC_DYNAMIC_LINKER32): Likewise.
29911 (GLIBC_DYNAMIC_LINKER64): Likewise.
29912 (LINK_OS_LINUX_SPEC32): Likewise.
29913 (LINK_OS_LINUX_SPEC64): Likewise.
29914
29915 * doc/install.texi (--enable-advance-toolchain=<xx>): Document new
29916 configuration option.
29917
29918 2015-06-03 Uros Bizjak <ubizjak@gmail.com>
29919
29920 PR target/66275
29921 * config/i386/i386.c (ix86_function_arg_regno): Use ix86_cfun_abi
29922 to determine current function ABI.
29923 (ix86_function_value_regno_p): Ditto.
29924
29925 2015-06-03 Martin Liska <mliska@suse.cz>
29926
29927 * alloc-pool.h (struct pool_usage): Correct GNU coding style.
29928 * bitmap.h (struct bitmap_usage): Likewise.
29929 * ggc-common.c (struct ggc_usage): Likewise.
29930 * mem-stats.h (struct mem_location): Likewise.
29931 (struct mem_usage): Likewise.
29932 * vec.c (struct vec_usage): Likewise.
29933
29934 2015-06-03 Benigno B. Junior <bbj@gentoo.org>
29935
29936 * config/netbsd-elf.h (NETBSD_LINK_SPEC_ELF): Turn -symbolic into
29937 -Bsymbolic.
29938
29939 2015-06-02 Andres Tiraboschi <andres.tiraboschi@tallertechnologies.com>
29940
29941 * doc/plugins.texi (enum plugin_event): New event.
29942 * plugin.c (register_callback): Handle PLUGIN_START_PARSE_FUNCTION
29943 and PLUGIN_FINISH_FUNCTION.
29944 * plugin.def (PLUGIN_START_PARSE_FUNCTION): Add plugin event
29945 (PLUGIN_FINISH_PARSE_FUNCTION): Likewise.
29946
29947 2015-06-03 Richard Biener <rguenther@suse.de>
29948
29949 * tree-vect-data-refs.c (vect_analyze_group_access): Properly
29950 compute GROUP_GAP for the first element.
29951 * tree-vect-slp.c (vect_build_slp_tree_1): Remove restriction
29952 on in-group gaps.
29953
29954 2015-06-03 Nick Clifton <nickc@redhat.com>
29955
29956 * config/rl78/rl78-real.md: Add peepholes to avoid a register
29957 copy when calling a function.
29958 * config/rl78/rl78.c (need_to_save): Do not push the frame
29959 pointer in an interrupt handler prologue if it is never used.
29960
29961 2015-06-03 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
29962
29963 * ifcvt (end_ifcvt_sequence): Fix typo in comment above.
29964
29965 2015-06-03 Ilya Enkovich <ilya.enkovich@intel.com>
29966
29967 * ipa-chkp.c (chkp_maybe_create_clone): Create alias
29968 reference when cloning alias node.
29969
29970 2015-06-03 Martin Liska <mliska@suse.cz>
29971
29972 * alloc-pool.h (struct pool_usage): Correct space padding.
29973 * ggc-page.c (ggc_print_statistics): Align columns in a report.
29974 * mem-stats.h (struct mem_usage): Add argument to print_dash_line.
29975 * tree.c (dump_tree_statistics): Align columns in a report.
29976
29977 2015-06-03 Martin Liska <mliska@suse.cz>
29978
29979 * alloc-pool.c (allocate_pool_descriptor): Remove.
29980 (struct pool_output_info): Likewise.
29981 (print_alloc_pool_statistics): Likewise.
29982 (dump_alloc_pool_statistics): Likewise.
29983 * alloc-pool.h (struct pool_usage): New struct.
29984 (pool_allocator::initialize): Change usage of memory statistics
29985 to a new interface.
29986 (pool_allocator::release): Likewise.
29987 (pool_allocator::allocate): Likewise.
29988 (pool_allocator::remove): Likewise.
29989 * mem-stats-traits.h (enum mem_alloc_origin): Add new enum value
29990 for a pool allocator.
29991 * mem-stats.h (struct mem_location): Add new ctor.
29992 (struct mem_usage): Add counter for number of
29993 instances.
29994 (mem_alloc_description::register_descriptor): New overload of
29995 * mem-stats.h (mem_location::to_string): New function.
29996 * bitmap.h (struct bitmap_usage): Use this new function.
29997 * ggc-common.c (struct ggc_usage): Likewise.
29998 the function.
29999
30000 2015-06-03 Richard Sandiford <richard.sandiford@arm.com>
30001
30002 * defaults.h (SWITCHABLE_TARGET, TARGET_SUPPORTS_WIDE_INT): Move out
30003 of GCC_INSN_FLAGS_H block.
30004
30005 2015-06-03 Andrew Bennett <andrew.bennett@imgtec.com>
30006
30007 * explow.c (plus_constant): Update check after force_const_mem call
30008 to see if the value returned is not a NULL_RTX.
30009
30010 2015-06-03 Ilya Enkovich <ilya.enkovich@intel.com>
30011
30012 * ipa.c (symbol_table::remove_unreachable_nodes): Don't
30013 remove instumentation thunks calling reachable functions.
30014 * lto-cgraph.c (output_refs): Always output IPA_REF_CHKP.
30015 * lto/lto-partition.c (privatize_symbol_name_1): New.
30016 (privatize_symbol_name): Privatize both decl and orig_decl
30017 names for instrumented functions.
30018 * cgraph.c (cgraph_node::verify_node): Add transparent
30019 alias chain check for instrumented node.
30020
30021 2015-06-03 Marek Polacek <polacek@redhat.com>
30022
30023 PR c/64223
30024 PR c/29358
30025 * tree.c (attribute_value_equal): Handle attribute format.
30026 (cmp_attrib_identifiers): Factor out of lookup_ident_attribute.
30027
30028 2015-06-03 Richard Biener <rguenther@suse.de>
30029
30030 PR tree-optimization/63916
30031 * tree-ssa-sccvn.c (vn_reference_maybe_forwprop_address):
30032 Forward-propagate non-invariant addresses by splicing their
30033 reference ops if the result isn't going to be used by PRE.
30034 (vn_reference_lookup_3): Remove pointless assert.
30035
30036 2015-06-03 Richard Biener <rguenther@suse.de>
30037
30038 PR tree-optimization/66375
30039 * tree-scalar-evolution.c (follow_ssa_edge_binary): First
30040 add to the evolution before following SSA edges.
30041
30042 2015-06-03 Bin Cheng <bin.cheng@arm.com>
30043
30044 * tree-ssa-loop-ivopts.c (dump_iv): New parameter.
30045 (dump_use, dump_cand, find_induction_variables): Pass new argument
30046 to dump_iv.
30047 (record_use): Preserve the ssa name information in IV.
30048
30049 2015-06-03 Richard Sandiford <richard.sandiford@arm.com>
30050
30051 * genpreds.c (mark_mode_tests): Mark all MATCH_CODEs as
30052 NO_MODE_TEST.
30053 (add_mode_tests): Don't add mode tests if the predicate only
30054 accepts scalar constant integers. Otherwise, allow the mode
30055 of "op" to be VOIDmode if the predicate does accept such integers.
30056
30057 2015-06-02 Jim Wilson <jim.wilson@linaro.org>
30058
30059 PR target/66258
30060 * config/aarch64/aarch64.c (aarch64_function_value_regno_p): Change
30061 !TARGET_GENERAL_REGS_ONLY to TARGET_FLOAT.
30062 (aarch64_secondary_reload): Likewise
30063 (aarch64_expand_builtin_va_start): Change TARGET_GENERAL_REGS_ONLY
30064 to !TARGET_FLOAT.
30065 (aarch64_gimplify_va_arg_expr, aarch64_setup_incoming_varargs):
30066 Likewise.
30067
30068 2015-06-03 Kugan Vivekanandarajah <kuganv@linaro.org>
30069 Zhenqiang Chen <zhenqiang.chen@linaro.org>
30070
30071 PR target/65768
30072 * cprop.c (try_replace_reg): Check cost of constants before propagating.
30073
30074 2015-06-02 Michael Meissner <meissner@linux.vnet.ibm.com>
30075
30076 * config/rs6000/rs6000-modes.def (IFmode): Define IFmode to
30077 provide access to the IBM extended double floating point mode if
30078 long double is IEEE 128-bit floating point.
30079 (KFmode): Define KFmode to provide access to IEEE 128-bit floating
30080 point if long double is the IBM extended double type.
30081
30082 * config/rs6000/rs6000.opt (-mfloat128-none): New switches to
30083 enable adding IEEE 128-bit floating point support.
30084 (-mfloat128-software): Likewise.
30085 (-mfloat128-sw): Likewise.
30086
30087 * config/rs6000/rs6000.c (rs6000_hard_regno_mode_ok): Do not allow
30088 128-bit floating point types to occupy any register if
30089 -mlong-double-64. Do not allow use of IFmode/KFmode unless
30090 -mfloat128-software is enabled.
30091 (rs6000_debug_reg_global): Add IEEE 128-bit floating point debug
30092 support.
30093 (rs6000_option_override_internal): Add -mfloat128-* support.
30094 (rs6000_init_builtins): Setup __ibm128 and __float128 type modes.
30095
30096 * config/rs6000/rs6000.h (rs6000_builtin_type_index): Add ibm128
30097 and float128 type nodes.
30098 (ieee128_float_type_node): Likewise.
30099 (ibm128_float_type_node): Likewise.
30100
30101 2015-06-02 Szabolcs Nagy <szabolcs.nagy@arm.com>
30102
30103 PR target/66136
30104 * config/aarch64/geniterators.sh: Rewrite in awk.
30105
30106 2015-06-02 Martin Liska <mliska@suse.cz>
30107
30108 * alloc-pool.h (pool_allocator::pool_allocator): Set implicit
30109 values to avoid -Wmaybe-uninitialized errors.
30110
30111 2015-06-02 Richard Biener <rguenther@suse.de>
30112
30113 PR debug/65549
30114 * dwarf2out.c (lookup_context_die): New function.
30115 (resolve_addr): Avoid forcing a full DIE for the
30116 target of a DW_TAG_GNU_call_site during late compilation.
30117 Instead create a stub DIE without a type if we have a
30118 context DIE present.
30119
30120 2015-06-02 Uros Bizjak <ubizjak@gmail.com>
30121
30122 * df-scan.c (df_scan_start_dump): Add space between regno and regname.
30123
30124 2015-06-02 Bin Cheng <bin.cheng@arm.com>
30125
30126 PR tree-optimization/48052
30127 * cfgloop.h (struct control_iv): New.
30128 (struct loop): New field control_ivs.
30129 * tree-ssa-loop-niter.c : Include "stor-layout.h".
30130 (number_of_iterations_lt): Set no_overflow information.
30131 (number_of_iterations_exit): Init control iv in niter struct.
30132 (record_control_iv): New.
30133 (estimate_numbers_of_iterations_loop): Call record_control_iv.
30134 (loop_exits_before_overflow): New. Interface factored out of
30135 scev_probably_wraps_p.
30136 (scev_probably_wraps_p): Factor loop niter related code into
30137 loop_exits_before_overflow.
30138 (free_numbers_of_iterations_estimates_loop): Free control ivs.
30139 * tree-ssa-loop-niter.h (free_loop_control_ivs): New.
30140
30141 2015-06-02 Eric Botcazou <ebotcazou@adacore.com>
30142
30143 * gimplify.c (gimplify_modify_expr): Do not create a DECL_DEBUG_EXPR if
30144 the target doesn't belong to the current function.
30145
30146 2015-06-02 Marek Polacek <polacek@redhat.com>
30147
30148 PR middle-end/66345
30149 * gimple-fold.c (gimple_fold_builtin_snprintf): Return false if
30150 get_maxval_strlen does not produce an INTEGER_CST.
30151
30152 2015-06-02 Richard Sandiford <richard.sandiford@arm.com>
30153
30154 * config/arc/constraints.md: Use lower-case names in match_code.
30155 * config/mmix/constraints.md: Likewise.
30156
30157 2015-06-02 Richard Biener <rguenther@suse.de>
30158
30159 PR tree-optimization/65961
30160 * tree-vect-slp.c (vect_get_and_check_slp_defs): Remove bogus
30161 check and clarify dump message.
30162 (vect_build_slp_tree): If all children are built up from scalars
30163 build up the parent from scalars instead.
30164 * tree-vect-stmts.c (vect_is_simple_use): Cleanup.
30165
30166 2015-06-02 Jan Kratochvil <jan.kratochvil@redhat.com>
30167
30168 PR other/65366
30169 * gdbhooks.py: Use int(...) instead of long(...). Use print(...)
30170 instead of print ... .
30171
30172 2015-06-02 Alan Modra <amodra@gmail.com>
30173
30174 * config/rs6000/vsx.md (vsx_extract_v4sf): Revert accidental
30175 2014-08-11 change.
30176
30177 2015-06-02 Bin Cheng <bin.cheng@arm.com>
30178
30179 PR tree-optimization/52563
30180 PR tree-optimization/62173
30181 * tree-ssa-loop-ivopts.c (struct iv): New field. Reorder fields.
30182 (alloc_iv, set_iv): New parameter.
30183 (determine_biv_step): Delete.
30184 (find_bivs): Inline original determine_biv_step. Pass new
30185 argument to set_iv.
30186 (idx_find_step): Use no_overflow information for conversion.
30187 * tree-scalar-evolution.c (analyze_scalar_evolution_in_loop): Let
30188 resolve_mixers handle folded_casts.
30189 (instantiate_scev_name): Change bool parameter to bool pointer.
30190 (instantiate_scev_poly, instantiate_scev_binary): Ditto.
30191 (instantiate_array_ref, instantiate_scev_not): Ditto.
30192 (instantiate_scev_3, instantiate_scev_2): Ditto.
30193 (instantiate_scev_1, instantiate_scev_r): Ditto.
30194 (instantiate_scev_convert, ): Change parameter. Pass argument
30195 to chrec_convert_aggressive.
30196 (instantiate_scev): Change argument.
30197 (resolve_mixers): New parameter and set it.
30198 (scev_const_prop): New argument.
30199 * tree-scalar-evolution.h (resolve_mixers): New parameter.
30200 * tree-chrec.c (convert_affine_scev): Call chrec_convert instead
30201 of chrec_conert_1.
30202 (chrec_convert): New parameter. Move definition below.
30203 (chrec_convert_aggressive): New parameter and set it. Call
30204 convert_affine_scev.
30205 * tree-chrec.h (chrec_convert): New parameter.
30206 (chrec_convert_aggressive): Ditto.
30207
30208 2015-06-01 Eric Botcazou <ebotcazou@adacore.com>
30209
30210 * gimplify.c (gimplify_modify_expr_rhs): Use simple test on the size.
30211 * cgraph.c (cgraph_redirect_edge_call_stmt_to_callee): Do not remove
30212 the LHS of a no-return call if its type has variable size.
30213 * tree-cfgcleanup.c (fixup_noreturn_call): Likewise.
30214 * tree-cfg.c (verify_gimple_call): Accept these no-return calls.
30215
30216 2015-06-01 Andreas Tobler <andreast@gcc.gnu.org>
30217
30218 * read-rtl.c: Adapt to use HAVE_DECL_ATOLL instead of HAVE_ATOLL.
30219 * config.in: Regenerate.
30220
30221 2015-06-01 Yuri Rumyantsev <ysrumyan@gmail.com>
30222
30223 * tree-vect-data-refs.c (vect_analyze_data_ref_access): Allow
30224 consecutive accesses within outer-loop with force_vectorize
30225 for references with zero step in inner-loop.
30226
30227 2015-06-01 Vidya Praveen <vidyapraveen@arm.com>
30228
30229 * Makefile.in: Pick up gcov-dump dependencies from gcc/ directory
30230 rather than from gcc/build directory.
30231
30232 2015-06-01 Matthew Wahab <matthew.wahab@arm.com>
30233
30234 PR target/65697
30235 * config/aarch64/aarch64.c (aarch64_split_compare_and_swap): Check
30236 for __sync memory models, emit initial loads and final barriers as
30237 appropriate.
30238
30239 2015-06-01 Matthew Wahab <matthew.wahab@arm.com>
30240
30241 PR target/65697
30242 * config/aarch64/aarch64.c (aarch64_emit_post_barrier):New.
30243 (aarch64_split_atomic_op): Check for __sync memory models, emit
30244 appropriate initial loads and final barriers.
30245
30246 2015-06-01 Vidya Praveen <vidyapraveen@arm.com>
30247
30248 * Makefile.in: Fix gcov dependencies that should
30249 not point to a build folder.
30250
30251 2015-06-01 Richard Biener <rguenther@suse.de>
30252
30253 Revert
30254 2015-05-29 Richard Biener <rguenther@suse.de>
30255
30256 PR tree-optimization/66314
30257 * tree-ssa-threadupdate.c (create_block_for_threading): Add
30258 parameter that says which loop the new block belongs to.
30259 (ssa_create_duplicates): Blocks duplicated for the threaded
30260 path belong to the loop of the thread destination.
30261
30262 2015-06-01 Martin Liska <mliska@suse.cz>
30263
30264 * sched-deps.c: Include pool-alloc.h before
30265 cselib.h header file is included.
30266
30267 2015-06-01 Richard Biener <rguenther@suse.de>
30268
30269 * tree-ssa-structalias.c (ipa_pta_execute): Handle address-taken
30270 functions.
30271
30272 2015-06-01 Martin Liska <mliska@suse.cz>
30273
30274 * alloc-pool.h: Add ATTRIBUTE_UNUSED for
30275 a function local variable.
30276
30277 2015-06-01 Martin Liska <mliska@suse.cz>
30278
30279 * alloc-pool.c (create_alloc_pool): Remove.
30280 (empty_alloc_pool): Likewise.
30281 (free_alloc_pool): Likewise.
30282 (free_alloc_pool_if_empty): Likewise.
30283 (pool_alloc): Likewise.
30284 (pool_free): Likewise.
30285 * alloc-pool.h: Remove old declarations.
30286
30287 2015-06-01 Martin Liska <mliska@suse.cz>
30288
30289 * ira-build.c (initiate_allocnos): Use new type-based pool allocator.
30290 (ira_create_object): Likewise.
30291 (ira_create_allocno): Likewise.
30292 (ira_create_live_range): Likewise.
30293 (copy_live_range): Likewise.
30294 (ira_finish_live_range): Likewise.
30295 (ira_free_allocno_costs): Likewise.
30296 (finish_allocno): Likewise.
30297 (finish_allocnos): Likewise.
30298 (initiate_prefs): Likewise.
30299 (ira_create_pref): Likewise.
30300 (finish_pref): Likewise.
30301 (finish_prefs): Likewise.
30302 (initiate_copies): Likewise.
30303 (ira_create_copy): Likewise.
30304 (finish_copy): Likewise.
30305 (finish_copies): Likewise.
30306 (finish_prefs): Likewise.
30307
30308 2015-06-01 Martin Liska <mliska@suse.cz>
30309
30310 * ipa-cp.c (ipcp_value::add_source): Use new type-based pool allocator.
30311 (allocate_and_init_ipcp_value): Likewise.
30312 (ipcp_lattice::add_value): Likewise.
30313 (merge_agg_lats_step): Likewise.
30314 (ipcp_driver): Likewise.
30315 * ipa-prop.c (ipa_free_all_structures_after_ipa_cp): Likewise.
30316 (ipa_free_all_structures_after_iinln): Likewise.
30317 * ipa-prop.h: Likewise.
30318
30319 2015-06-01 Martin Liska <mliska@suse.cz>
30320
30321 * ipa-inline-analysis.c (edge_set_predicate): Use new type-based
30322 pool allocator.
30323 (set_hint_predicate): Likewise.
30324 (inline_summary_alloc): Likewise.
30325 (reset_inline_edge_summary): Likewise.
30326 (reset_inline_summary): Likewise.
30327 (set_cond_stmt_execution_predicate): Likewise.
30328 (set_switch_stmt_execution_predicate): Likewise.
30329 (compute_bb_predicates): Likewise.
30330 (estimate_function_body_sizes): Likewise.
30331 (inline_free_summary): Likewise.
30332
30333 2015-06-01 Martin Liska <mliska@suse.cz>
30334
30335 * ipa-prop.c (ipa_set_jf_constant): Use new type-based pool allocator.
30336 (ipa_edge_duplication_hook): Likewise.
30337 (ipa_free_all_structures_after_ipa_cp): Likewise.
30338 (ipa_free_all_structures_after_iinln): Likewise.
30339
30340 2015-06-01 Martin Liska <mliska@suse.cz>
30341
30342 * ipa-profile.c (account_time_size): Use new type-based pool allocator.
30343 (ipa_profile_generate_summary): Likewise.
30344 (ipa_profile_read_summary): Likewise.
30345 (ipa_profile): Likewise.
30346
30347 2015-06-01 Martin Liska <mliska@suse.cz>
30348
30349 * tree-ssa-structalias.c (new_var_info): Use new type-based
30350 pool allocator.
30351 (new_constraint): Likewise.
30352 (init_alias_vars): Likewise.
30353 (delete_points_to_sets): Likewise.
30354
30355 2015-06-01 Martin Liska <mliska@suse.cz>
30356
30357 * tree-ssa-strlen.c (new_strinfo): Use new type-based pool allocator.
30358 (free_strinfo): Likewise.
30359 (pass_strlen::execute): Likewise.
30360
30361 2015-06-01 Martin Liska <mliska@suse.cz>
30362
30363 * tree-ssa-sccvn.c (vn_reference_insert): Use new type-based
30364 pool allocator.
30365 (vn_reference_insert_pieces): Likewise.
30366 (vn_phi_insert): Likewise.
30367 (visit_reference_op_call): Likewise.
30368 (copy_phi): Likewise.
30369 (copy_reference): Likewise.
30370 (process_scc): Likewise.
30371 (allocate_vn_table): Likewise.
30372 (free_vn_table): Likewise.
30373
30374 2015-06-01 Martin Liska <mliska@suse.cz>
30375
30376 * tree-ssa-reassoc.c (add_to_ops_vec): Use new type-based
30377 pool allocator.
30378 (add_repeat_to_ops_vec): Likewise.
30379 (get_ops): Likewise.
30380 (maybe_optimize_range_tests): Likewise.
30381 (init_reassoc): Likewise.
30382 (fini_reassoc): Likewise.
30383
30384 2015-06-01 Martin Liska <mliska@suse.cz>
30385
30386 * tree-ssa-pre.c (get_or_alloc_expr_for_name): Use new type-based
30387 pool allocator.
30388 (bitmap_set_new): Likewise.
30389 (get_or_alloc_expr_for_constant): Likewise.
30390 (get_or_alloc_expr_for): Likewise.
30391 (phi_translate_1): Likewise.
30392 (compute_avail): Likewise.
30393 (init_pre): Likewise.
30394 (fini_pre): Likewise.
30395
30396 2015-06-01 Martin Liska <mliska@suse.cz>
30397
30398 * sched-deps.c (create_dep_node): Use new type-based pool allocator.
30399 (delete_dep_node): Likewise.
30400 (create_deps_list): Likewise.
30401 (free_deps_list): Likewise.
30402 (sched_deps_init): Likewise.
30403 (sched_deps_finish): Likewise.
30404
30405 2015-06-01 Martin Liska <mliska@suse.cz>
30406
30407 * regcprop.c (free_debug_insn_changes): Use new type-based
30408 pool allocator.
30409 (replace_oldest_value_reg): Likewise.
30410 (pass_cprop_hardreg::execute): Likewise.
30411
30412 2015-06-01 Martin Liska <mliska@suse.cz>
30413
30414 * ira-build.c (initiate_cost_vectors): Use new type-based
30415 pool allocator.
30416 (ira_allocate_cost_vector): Likewise.
30417 (ira_free_cost_vector): Likewise.
30418 (finish_cost_vectors): Likewise.
30419
30420 2015-06-01 Martin Liska <mliska@suse.cz>
30421
30422 * sel-sched-ir.c (alloc_sched_pools): Use new type-based
30423 pool allocator.
30424 (free_sched_pools): Likewise.
30425 * sel-sched-ir.h (_list_alloc): Likewise.
30426 (_list_remove): Likewise.
30427
30428 2015-06-01 Martin Liska <mliska@suse.cz>
30429
30430 * stmt.c (add_case_node): Use new type-based pool allocator.
30431 (expand_case): Likewise.
30432 (expand_sjlj_dispatch_table): Likewise.
30433
30434 2015-06-01 Martin Liska <mliska@suse.cz>
30435
30436 * tree-ssa-math-opts.c (occ_new): Use new type-based pool allocator.
30437 (free_bb): Likewise.
30438 (pass_cse_reciprocals::execute): Likewise.
30439
30440 2015-06-01 Martin Liska <mliska@suse.cz>
30441
30442 * tree-sra.c (sra_initialize): Use new type-based pool allocator.
30443 (sra_deinitialize) Likewise.
30444 (create_access_1) Likewise.
30445 (build_accesses_from_assign) Likewise.
30446 (create_artificial_child_access) Likewise.
30447
30448 2015-06-01 Martin Liska <mliska@suse.cz>
30449
30450 * dse.c (get_group_info):Use new type-based pool allocator.
30451 (dse_step0) Likewise.
30452 (free_store_info) Likewise.
30453 (delete_dead_store_insn) Likewise.
30454 (free_read_records) Likewise.
30455 (record_store) Likewise.
30456 (replace_read) Likewise.
30457 (check_mem_read_rtx) Likewise.
30458 (scan_insn) Likewise.
30459 (dse_step1) Likewise.
30460 (dse_step7) Likewise.
30461
30462 2015-06-01 Martin Liska <mliska@suse.cz>
30463
30464 * df-scan.c (struct df_scan_problem_data):Use new type-based
30465 pool allocator.
30466 (df_scan_free_internal) Likewise.
30467 (df_scan_alloc) Likewise.
30468 (df_grow_reg_info) Likewise.
30469 (df_free_ref) Likewise.
30470 (df_insn_create_insn_record) Likewise.
30471 (df_mw_hardreg_chain_delete) Likewise.
30472 (df_insn_info_delete) Likewise.
30473 (df_free_collection_rec) Likewise.
30474 (df_mw_hardreg_chain_delete_eq_uses) Likewise.
30475 (df_sort_and_compress_mws) Likewise.
30476 (df_ref_create_structure) Likewise.
30477 (df_ref_record) Likewise.
30478
30479 2015-06-01 Martin Liska <mliska@suse.cz>
30480
30481 * df-problems.c (df_chain_create):Use new type-based pool allocator.
30482 (df_chain_unlink_1) Likewise.
30483 (df_chain_unlink) Likewise.
30484 (df_chain_remove_problem) Likewise.
30485 (df_chain_alloc) Likewise.
30486 (df_chain_free) Likewise.
30487 * df.h (struct dataflow) Likewise.
30488
30489 2015-06-01 Martin Liska <mliska@suse.cz>
30490
30491 * cselib.c (new_elt_list):Use new type-based pool allocator.
30492 (new_elt_loc_list) Likewise.
30493 (unchain_one_elt_list) Likewise.
30494 (unchain_one_elt_loc_list) Likewise.
30495 (unchain_one_value) Likewise.
30496 (new_cselib_val) Likewise.
30497 (cselib_init) Likewise.
30498 (cselib_finish) Likewise.
30499
30500 2015-06-01 Martin Liska <mliska@suse.cz>
30501
30502 * config/sh/sh.c (add_constant):Use new type-based pool allocator.
30503 (sh_reorg) Likewise.
30504
30505 2015-06-01 Martin Liska <mliska@suse.cz>
30506
30507 * cfg.c (initialize_original_copy_tables):Use new type-based
30508 pool allocator.
30509 (free_original_copy_tables) Likewise.
30510 (copy_original_table_clear) Likewise.
30511 (copy_original_table_set) Likewise.
30512
30513 2015-06-01 Martin Liska <mliska@suse.cz>
30514
30515 * asan.c (asan_mem_ref_get_alloc_pool):Use new type-based
30516 pool allocator.
30517 (asan_mem_ref_new) Likewise.
30518 (free_mem_ref_resources) Likewise.
30519
30520 2015-06-01 Martin Liska <mliska@suse.cz>
30521
30522 * var-tracking.c (variable_htab_free):Use new type-based
30523 pool allocator.
30524 (attrs_list_clear) Likewise.
30525 (attrs_list_insert) Likewise.
30526 (attrs_list_copy) Likewise.
30527 (shared_hash_unshare) Likewise.
30528 (shared_hash_destroy) Likewise.
30529 (unshare_variable) Likewise.
30530 (var_reg_delete_and_set) Likewise.
30531 (var_reg_delete) Likewise.
30532 (var_regno_delete) Likewise.
30533 (drop_overlapping_mem_locs) Likewise.
30534 (variable_union) Likewise.
30535 (insert_into_intersection) Likewise.
30536 (canonicalize_values_star) Likewise.
30537 (variable_merge_over_cur) Likewise.
30538 (dataflow_set_merge) Likewise.
30539 (remove_duplicate_values) Likewise.
30540 (variable_post_merge_new_vals) Likewise.
30541 (dataflow_set_preserve_mem_locs) Likewise.
30542 (dataflow_set_remove_mem_locs) Likewise.
30543 (variable_from_dropped) Likewise.
30544 (variable_was_changed) Likewise.
30545 (set_slot_part) Likewise.
30546 (clobber_slot_part) Likewise.
30547 (delete_slot_part) Likewise.
30548 (loc_exp_insert_dep) Likewise.
30549 (notify_dependents_of_changed_value) Likewise.
30550 (emit_notes_for_differences_1) Likewise.
30551 (vt_emit_notes) Likewise.
30552 (vt_initialize) Likewise.
30553 (vt_finalize) Likewise.
30554
30555 2015-06-01 Martin Liska <mliska@suse.cz>
30556
30557 * ira-color.c (init_update_cost_records):Use new type-based
30558 pool allocator.
30559 (get_update_cost_record) Likewise.
30560 (free_update_cost_record_list) Likewise.
30561 (finish_update_cost_records) Likewise.
30562 (initiate_cost_update) Likewise.
30563
30564 2015-06-01 Martin Liska <mliska@suse.cz>
30565
30566 * lra.c (init_insn_regs): Use new type-based pool allocator.
30567 (new_insn_reg) Likewise.
30568 (free_insn_reg) Likewise.
30569 (free_insn_regs) Likewise.
30570 (finish_insn_regs) Likewise.
30571 (init_insn_recog_data) Likewise.
30572 (init_reg_info) Likewise.
30573 (finish_reg_info) Likewise.
30574 (lra_free_copies) Likewise.
30575 (lra_create_copy) Likewise.
30576 (invalidate_insn_data_regno_info) Likewise.
30577
30578 2015-06-01 Martin Liska <mliska@suse.cz>
30579
30580 * lra-lives.c (free_live_range): Use new type-based pool allocator.
30581 (free_live_range_list) Likewise.
30582 (create_live_range) Likewise.
30583 (copy_live_range) Likewise.
30584 (lra_merge_live_ranges) Likewise.
30585 (remove_some_program_points_and_update_live_ranges) Likewise.
30586 (lra_live_ranges_init) Likewise.
30587 (lra_live_ranges_finish) Likewise.
30588
30589 2015-06-01 Martin Liska <mliska@suse.cz>
30590
30591 * et-forest.c (et_new_occ): Use new type-based pool allocator.
30592 (et_new_tree): Likewise.
30593 (et_free_tree): Likewise.
30594 (et_free_tree_force): Likewise.
30595 (et_free_pools): Likewise.
30596 (et_split): Likewise.
30597
30598 2015-06-01 Martin Liska <mliska@suse.cz>
30599
30600 * alloc-pool.c (struct alloc_pool_descriptor): Move definition
30601 to header file.
30602 * alloc-pool.h (pool_allocator::pool_allocator): New function.
30603 (pool_allocator::release): Likewise.
30604 (inline pool_allocator::release_if_empty): Likewise.
30605 (inline pool_allocator::~pool_allocator): Likewise.
30606 (pool_allocator::allocate): Likewise.
30607 (pool_allocator::remove): Likewise.
30608
30609 2015-06-01 James Greenhalgh <james.greenhalgh@arm.com>
30610
30611 * sched-deps.c (sched_analyze_2): Replace fuseable with fusible
30612 in comment.
30613
30614 2015-06-01 James Greenhalgh <james.greenhalgh@arm.com>
30615
30616 * config/arm/arm-protos.h (tune_params): Rename fuseable_ops
30617 to fusible_ops.
30618 * config/arm/arm.c (arm_print_tune_info): Likewise.
30619 (arm_macro_fusion_p): Likewise.
30620 (arm_macro_fusion_pair_p): Likewise.
30621
30622 2015-06-01 James Greenhalgh <james.greenhalgh@arm.com>
30623
30624 * config/aarch64/aarch64-protos.h (tune_params): Rename
30625 fuseable_ops to fusible_ops.
30626 * config/aarch64/aarch64.c (generic_tunings): Rename
30627 fuseable_ops to fusible_ops.
30628 (cortexa53_tunings): Likewise.
30629 (cortexa57_tunings): Likewise.
30630 (thunderx_tunings): Likewise.
30631 (xgene1_tunings): Likewise.
30632 (aarch64_macro_fusion_p): Likewise.
30633 (aarch64_macro_fusion_pair_p): Likewise.
30634
30635 2015-06-01 Dominik Vogt <vogt@linux.vnet.ibm.com>
30636
30637 * config/s390/driver-native.c: New file.
30638 * config/s390/x-native: New file.
30639 * config.host: Add new files for s390.
30640 * config/s390/s390.h (DRIVER_SELF_SPECS): Add support for -mtune=native
30641 and -march=native
30642 * config.gcc: Likewise.
30643 * config/s390/s390.opt (march): Likewise; add PROCESSOR_NATIVE
30644 * config/s390/s390-opts.h (enum processor_type): Ditto.
30645 * config/s390/s390.c (s390_option_override): Catch unhandled
30646 PROCESSOR_NATIVE
30647
30648 2015-06-01 Ilya Enkovich <ilya.enkovich@intel.com>
30649
30650 PR target/65527
30651 * cgraph.c (cgraph_edge::redirect_call_stmt_to_callee): Add
30652 redirection for instrumented calls.
30653 * lto-wrapper.c (merge_and_complain): Merge -fcheck-pointer-bounds.
30654 (append_compiler_options): Append -fcheck-pointer-bounds.
30655 * tree-chkp.h (chkp_copy_call_skip_bounds): New.
30656 (chkp_redirect_edge): New.
30657 * tree-chkp.c (chkp_copy_call_skip_bounds): New.
30658 (chkp_redirect_edge): New.
30659
30660 2015-06-01 Richard Biener <rguenther@suse.de>
30661
30662 PR tree-optimization/66280
30663 * tree-vect-slp.c (vect_detect_hybrid_slp_stmts): Fix pattern
30664 def-use walking.
30665
30666 2015-06-01 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
30667
30668 * config/aarch64/aarch64.md
30669 (*<LOGICAL:optab>_one_cmpl_<SHIFT:optab><mode>3): Change type to
30670 logic_shift_imm.
30671
30672 2015-06-01 Eric Botcazou <ebotcazou@adacore.com>
30673
30674 * config/i386/winnt.c (i386_pe_encode_section_info) <FUNCTION_DECL>:
30675 Remove obsolete kludge.
30676
30677 2015-06-01 Richard Biener <rguenther@suse.de>
30678
30679 * tree-ssa-reassoc.c (get_rank): Simplify.
30680
30681 2015-05-31 H.J. Lu <hongjiu.lu@intel.com>
30682
30683 * configure.ac (NO_PIE_CFLAGS): Check CXXFLAGS instead of CFLAGS.
30684 * configure: Regenerated.
30685
30686 2015-05-31 Mikhail Maltsev <maltsevm@gmail.com>
30687
30688 * config/cris/cris.h (CRIS_ARCH_CPP_DEFAULT): Fix C++11 compatibility
30689 issue (add space between string literal and macro).
30690 * config/i386/mingw32.h (REAL_LIBGCC_SPEC): Likewise.
30691
30692 2015-05-30 Andreas Schwab <schwab@linux-m68k.org>
30693
30694 * config/m68k/m68k.h (ASM_PCREL_SPEC): Pass --pcrel also for
30695 implict or explicit -fPIE or -fpie.
30696
30697 2015-05-30 Mike Frysinger <vapier@gentoo.org>
30698
30699 * config/alpha/elf.h (ASM_SPEC): Add %{mcpu=*:-m%*}.
30700
30701 2015-05-28 DJ Delorie <dj@redhat.com>
30702
30703 * expmed.c (extract_bit_field_1): Avoid clobbering a
30704 yet-to-be-used base/index register.
30705
30706 2015-05-30 Jan Hubicka <hubicka@ucw.cz>
30707
30708 * alias.c (alias_set_entry_d): Add is_pointer and has_pointer.
30709 (alias_stats): Add num_universal.
30710 (alias_set_subset_of): Special case pointers; be ready for NULL
30711 children.
30712 (alias_sets_conflict_p): Special case pointers; be ready for NULL
30713 children.
30714 (init_alias_set_entry): Break out from ...
30715 (record_alias_subset): ... here; propagate new fields;
30716 allocate children only when really needed.
30717 (get_alias_set): Do less generous pointer globbing.
30718 (dump_alias_stats_in_alias_c): Update statistics.
30719
30720 2015-05-30 Alan Modra <amodra@gmail.com>
30721
30722 * config/rs6000/rs6000.c (split_stack_arg_pointer_used_p): Scan
30723 correct block for use of r12.
30724 (rs6000_expand_split_stack_prologue): Error on r29 asm global reg.
30725
30726 2015-05-29 Dominik Vogt <vogt@linux.vnet.ibm.com>
30727
30728 PR target/66215
30729 * config/s390/s390.c (s390_reorg): Fix placement of post-label NOPs
30730 with -mhotpatch=.
30731
30732 2015-05-29 Jakub Jelinek <jakub@redhat.com>
30733
30734 PR tree-optimization/66142
30735 * tree-if-conv.c (if_convertible_phi_p): Don't give up on
30736 virtual phis that feed themselves.
30737
30738 2015-05-29 Richard Biener <rguenther@suse.de>
30739
30740 PR tree-optimization/66314
30741 * tree-ssa-threadupdate.c (create_block_for_threading): Add
30742 parameter that says which loop the new block belongs to.
30743 (ssa_create_duplicates): Blocks duplicated for the threaded
30744 path belong to the loop of the thread destination.
30745
30746 2015-05-29 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
30747
30748 * config/arm/neon-testgen.ml (emit_epilogue): Remove manual call
30749 to cleanup-saved-temps.
30750 * doc/sourcebuild.texi (Clean up generated test files): Expand
30751 introduction.
30752 (dg-keep-saved-temps): Document new proc.
30753 (cleanup-ipa-dump, cleanup-rtl-dump, cleanup-tree-dump,
30754 cleanup-saved-temps): Remove.
30755
30756 2015-05-28 Andreas Tobler <andreast@gcc.gnu.org>
30757
30758 * configure.ac: Move the atoll check from AC_CHECK_FUNCS to
30759 gcc_AC_CHECK_DECLS.
30760 * configure: Regenerate.
30761
30762 2015-05-28 Mike Frysinger <vapier@gentoo.org>
30763
30764 * config/nios2/linux.h (CPP_SPEC): Define.
30765
30766 2015-05-28 Mike Frysinger <vapier@gentoo.org>
30767
30768 * config/microblaze/linux.h (CPP_SPEC): Define.
30769
30770 2015-05-28 Mike Frysinger <vapier@gentoo.org>
30771
30772 * config/pa/pa-linux.h (CPP_SPEC): Change so -D_REENTRANT is used when
30773 -pthread is specified.
30774
30775 2015-05-28 Richard Biener <rguenther@suse.de>
30776
30777 * tree-vect-loop.c (vect_fixup_reduc_chain): New function.
30778 (vect_fixup_scalar_cycles_with_patterns): Likewise.
30779 (vect_analyze_loop_2): Call vect_fixup_scalar_cycles_with_patterns
30780 after pattern recog.
30781 (vect_create_epilog_for_reduction): Properly handle reductions
30782 with patterns.
30783 (vectorizable_reduction): Likewise.
30784 * tree-vect-slp.c (vect_analyze_slp_instance): Properly mark
30785 reduction chains.
30786 (vect_get_constant_vectors): Create the correct number of
30787 initial values for reductions.
30788 (vect_schedule_slp_instance): Handle reduction chains that are
30789 type changing properly.
30790 * tree-vect-stmts.c (vect_analyze_stmt): Adjust.
30791
30792 2015-05-28 Richard Biener <rguenther@suse.de>
30793
30794 PR tree-optimization/66142
30795 * tree-ssa-sccvn.c (vn_reference_lookup_3): Handle non-GIMPLE
30796 values better in memcpy destination handling. Handle non-aliasing
30797 we discover here.
30798
30799 2015-05-28 Lawrence Velázquez <vq@larryv.me>
30800
30801 PR target/63810
30802 * config/darwin-c.c (version_components): New global enum.
30803 (parse_version, version_as_legacy_macro)
30804 (version_as_modern_macro, macosx_version_as_macro): New functions.
30805 (version_as_macro): Remove.
30806 (darwin_cpp_builtins): Use new function.
30807
30808 2015-05-28 H.J. Lu <hongjiu.lu@intel.com>
30809
30810 * builtins.c (expand_builtin_acc_on_device): Mark parameters
30811 with ATTRIBUTE_UNUSED.
30812
30813 2015-05-28 Julian Brown <julian@codesourcery.com>
30814
30815 PR libgomp/65742
30816
30817 * builtins.c (expand_builtin_acc_on_device): Don't use open-coded
30818 sequence for !ACCEL_COMPILER.
30819
30820 2015-05-28 Nick Clifton <nickc@redhat.com>
30821
30822 * config/rx/rx.c (push_regs): New function. Extracts code from...
30823 (rx_expand_prologue): ... here. Use push_regs to push even small
30824 spans of registers.
30825 (pop_regs): New function.
30826 (rx_expand_epilogue): Use pop_regs to pop even small spans of
30827 registers.
30828
30829 2015-05-28 Richard Biener <rguenther@suse.de>
30830
30831 * tree-vectorizer.h (struct _slp_instance): Remove body_cost_vec
30832 member.
30833 (SLP_INSTANCE_BODY_COST_VEC): Remove.
30834 (vect_update_slp_costs_according_to_vf): Likewise.
30835 (vect_slp_analyze_operations): Update prototype.
30836 * tree-vect-loop.c (vect_analyze_loop_2): Remove call to
30837 vect_update_slp_costs_according_to_vf, adjust.
30838 * tree-vect-slp.c (vect_free_slp_instance): Adjust.
30839 (vect_analyze_slp_cost_1): Likewise.
30840 (vect_analyze_slp_cost): Likewise. Properly deal with
30841 widening reduction ops. Commit body costs.
30842 (vect_analyze_slp_instance): Adjust. Do not analyze SLP
30843 cost for loops from here.
30844 (vect_slp_analyze_operations): But do it from here when
30845 the vectorization factor is known and stmts are analyzed.
30846 (vect_bb_vectorization_profitable_p): Simplify.
30847 (vect_slp_analyze_bb_1): Do not compute SLP cost here.
30848 (vect_update_slp_costs_according_to_vf): Remove.
30849
30850 2015-05-27 Magnus Granberg <zorry@gentoo.org>
30851 H.J. Lu <hongjiu.lu@intel.com>
30852
30853 * Makefile.in (COMPILER): Add @NO_PIE_CFLAGS@.
30854 (BUILD_CFLAGS): Likewise.
30855 (BUILD_CXXFLAGS): Likewise.
30856 (LINKER): Add @NO_PIE_FLAG@.
30857 (BUILD_LDFLAGS): Likewise.
30858 (libgcc.mvars): Set NO_PIE_CFLAGS to -fno-PIE for
30859 --enable-default-pie.
30860 * common.opt (fPIE): Initialize to -1.
30861 (fpie): Likewise.
30862 (no-pie): New option.
30863 (pie): Replace "Negative(shared)" with "Negative(no-pie)".
30864 * configure.ac: Add --enable-default-pie.
30865 (NO_PIE_CFLAGS): New. Check if -fno-PIE works. AC_SUBST.
30866 (NO_PIE_FLAG): New. Check if -no-pie works. AC_SUBST.
30867 * defaults.h (DEFAULT_FLAG_PIE): New. Default PIE to -fPIE.
30868 * gcc.c (NO_PIE_SPEC): New.
30869 (PIE_SPEC): Likewise.
30870 (NO_FPIE1_SPEC): Likewise.
30871 (FPIE1_SPEC): Likewise.
30872 (NO_FPIE2_SPEC): Likewise.
30873 (FPIE2_SPEC): Likewise.
30874 (NO_FPIE2_SPEC): Likewise.
30875 (FPIE_SPEC): Likewise.
30876 (NO_FPIE_SPEC): Likewise.
30877 (NO_FPIC1_SPEC): Likewise.
30878 (FPIC1_SPEC): Likewise.
30879 (NO_FPIC2_SPEC): Likewise.
30880 (FPIC2_SPEC): Likewise.
30881 (NO_FPIC2_SPEC): Likewise.
30882 (FPIC_SPEC): Likewise.
30883 (NO_FPIC_SPEC): Likewise.
30884 (NO_FPIE1_AND_FPIC1_SPEC): Likewise.
30885 (FPIE1_OR_FPIC1_SPEC): Likewise.
30886 (NO_FPIE2_AND_FPIC2_SPEC): Likewise.
30887 (FPIE2_OR_FPIC2_SPEC): Likewise.
30888 (NO_FPIE_AND_FPIC_SPEC): Likewise.
30889 (FPIE_OR_FPIC_SPEC): Likewise.
30890 (LD_PIE_SPEC): Likewise.
30891 (LINK_PIE_SPEC): Handle -no-pie. Use PIE_SPEC and LD_PIE_SPEC.
30892 * opts.c (finish_options): Update opts->x_flag_pie if it is -1.
30893 * config/darwin.h (PIE_SPEC): Renamed to ...
30894 (DARWIN_PIE_SPEC): This.
30895 (LINK_SPEC): Replace PIE_SPEC with DARWIN_PIE_SPEC.
30896 * config/darwin9.h (PIE_SPEC): Renamed to ...
30897 (DARWIN_PIE_SPEC): This.
30898 * config/gnu-user.h (GNU_USER_TARGET_STARTFILE_SPEC): Use
30899 PIE_SPEC and NO_PIE_SPEC if HAVE_LD_PIE is defined.
30900 * config/openbsd.h (ASM_SPEC): Use FPIE1_OR_FPIC1_SPEC and
30901 FPIE2_OR_FPIC2_SPEC.
30902 * config/m68k/netbsd-elf.h (ASM_SPEC): Likewise.
30903 * config/m68k/openbsd.h (ASM_SPEC): Likewise.
30904 * config/sol2.h (ASM_PIC_SPEC): Likewise.
30905 * config/arm/freebsd.h (SUBTARGET_EXTRA_ASM_SPEC): Likewise.
30906 * config/arm/netbsd-elf.h (SUBTARGET_EXTRA_ASM_SPEC): Likewise.
30907 * config/arm/semi.h (SUBTARGET_EXTRA_ASM_SPEC): Likewise.
30908 * config/cris/linux.h (CRIS_ASM_SUBTARGET_SPEC): Likewise.
30909 * config/m32r/m32r.h (ASM_SPEC): Likewise.
30910 * config/m68k/uclinux.h (DRIVER_SELF_SPECS): Likewise.
30911 * config/rs6000/linux64.h (ASM_SPEC32): Likewise.
30912 * config/rs6000/sysv4.h (ASM_SPEC): Likewise.
30913 * config/sparc/freebsd.h (ASM_SPEC): Likewise.
30914 * config/sparc/linux.h (ASM_SPEC): Likewise.
30915 * config/sparc/linux64.h (ASM_SPEC): Likewise.
30916 * config/sparc/netbsd-elf.h (ASM_SPEC): Likewise.
30917 * config/sparc/openbsd64.h (ASM_SPEC): Likewise.
30918 * config/sparc/sp-elf.h (ASM_SPEC): Likewise.
30919 * config/sparc/sp64-elf.h (ASM_SPEC): Likewise.
30920 * config/sparc/sparc.h (ASM_SPEC): Likewise.
30921 * config/sparc/sysv4.h (ASM_SPEC): Likewise.
30922 * config/sparc/vxworks.h (ASM_SPEC): Likewise.
30923 * config/c6x/elf-common.h (ASM_SPEC): Use NO_FPIC2_SPEC,
30924 FPIC2_SPEC, FPIC1_SPEC and FPIC2_SPEC.
30925 * config/c6x/uclinux-elf.h (LINK_SPEC): Use FPIE_SPEC.
30926 * config/frv/frv.h (DRIVER_SELF_SPECS): Use FPIC_SPEC,
30927 NO_FPIC_SPEC and NO_FPIE1_AND_FPIC1_SPEC.
30928 (ASM_SPEC): Use FPIE1_OR_FPIC1_SPEC and FPIE2_OR_FPIC2_SPEC.
30929 * config/m68k/m68k.h (ASM_PCREL_SPEC): Use FPIC_SPEC and NO_FPIC_SPEC.
30930 * config/mips/gnu-user.h (NO_SHARED_SPECS): Use NO_FPIE_AND_FPIC_SPEC.
30931 * config/mips/vxworks.h (SUBTARGET_ASM_SPEC): Use FPIC_SPEC.
30932 * config/rs6000/freebsd64.h (ASM_SPEC32): Likewise.
30933 * config/rs6000/vxworks.h (ASM_SPEC): Likewise.
30934 * config/vax/linux.h (ASM_SPEC): Likewise.
30935 * doc/install.texi: Document --enable-default-pie.
30936 * doc/invoke.texi: Document -no-pie.
30937 * config.in: Regenerated.
30938 * configure: Likewise.
30939
30940 2015-05-28 Thomas Preud'homme <thomas.preudhomme@arm.com>
30941
30942 PR rtl-optimization/66168
30943 * loop-invariant.c (move_invariant_reg): Pass dest rather than reg to
30944 can_move_invariant_reg.
30945
30946 2015-05-27 John David Anglin <danglin@gcc.gnu.org>
30947
30948 PR target/66148
30949 * config/pa/pa.c (pa_emit_move_sequence): Correct placement of
30950 REG_EQUAL note when doing insert.
30951
30952 * config/pa/pa.c (pa_print_operand): Use HOST_WIDE_INT_PRINT_DEC
30953 instead of "%d" for 'o' operand.
30954
30955 2015-05-27 Nathan Sidwell <nathan@acm.org>
30956
30957 PR c++/66270
30958 * tree.c (build_pointer_type_for_mode): Canonical type does not
30959 inherit can_alias_all.
30960 (build_reference_type_for_mode): Likewise.
30961
30962 2015-05-27 Eric Botcazou <ebotcazou@adacore.com>
30963
30964 * expr.h (array_at_struct_end_p): Move to...
30965 (array_ref_element_size): Likewise.
30966 (component_ref_field_offset): Likewise.
30967 * tree.h (array_ref_element_size): ...here.
30968 (array_at_struct_end_p): Likewise.
30969 (component_ref_field_offset): Likewise.
30970 * expr.c (array_ref_element_size): Move to...
30971 (array_ref_low_bound): Likewise.
30972 (array_at_struct_end_p): Likewise.
30973 (array_ref_up_bound): Likewise.
30974 (component_ref_field_offset): Likewise.
30975 * tree.c (array_ref_element_size): ...here.
30976 (array_ref_low_bound): Likewise.
30977 (array_ref_up_bound): Likewise.
30978 (array_at_struct_end_p): Likewise.
30979 (component_ref_field_offset): Likewise.
30980
30981 2015-05-27 Gregor Richards <gregor.richards@uwaterloo.ca>
30982 Szabolcs Nagy <szabolcs.nagy@arm.com>
30983
30984 * config/aarch64/aarch64-linux.h (MUSL_DYNAMIC_LINKER): Define.
30985
30986 2015-05-27 Jason Merrill <jason@redhat.com>
30987
30988 PR bootstrap/66304
30989 * configure.ac: Use ACX_PROG_CXX_WARNING_OPTS,
30990 ACX_PROG_CXX_WARNING_ALMOST_PEDANTIC, and
30991 ACX_PROG_CXX_WARNINGS_ARE_ERRORS.
30992
30993 2015-05-22 Aditya Kumar <hiraditya@msn.com>
30994
30995 * auto-profile.c (afdo_calculate_branch_prob): Break once has_sample
30996 is true.
30997
30998 * statistics.c (statistics_fini_pass): Print pass name.
30999
31000 2015-05-27 Richard Biener <rguenther@suse.de>
31001
31002 PR tree-optimization/66272
31003 Revert parts of
31004 2014-08-15 Richard Biener <rguenther@suse.de>
31005
31006 PR tree-optimization/62031
31007 * tree-data-ref.c (dr_analyze_indices): Do not set
31008 DR_UNCONSTRAINED_BASE.
31009 (dr_may_alias_p): All indirect accesses have to go the
31010 formerly DR_UNCONSTRAINED_BASE path.
31011 * tree-data-ref.h (struct indices): Remove
31012 unconstrained_base member.
31013 (DR_UNCONSTRAINED_BASE): Remove.
31014
31015 2015-05-27 Aldy Hernandez <aldyh@redhat.com>
31016
31017 * dwarf2out.c: Remove block_map.
31018 (gen_call_site_die): Replace block_map use with BLOCK_DIE.
31019 (gen_lexical_block_die): Same.
31020 (dwarf2out_function_decl): Remove block_map use.
31021 (dwarf2out_c_finalize): Same.
31022 * tree-core.h (struct tree_block): Add die field.
31023 * tree.h (BLOCK_DIE): New.
31024
31025 2015-05-27 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
31026
31027 PR target/65358
31028 * expr.c (memory_load_overlap): New function.
31029 (emit_push_insn): When pushing partial args to the stack would
31030 clobber the register part load the overlapping part into a pseudo
31031 and put it into the hard reg after pushing. Change return type
31032 to bool. Add bool argument.
31033 * expr.h (emit_push_insn): Change return type to bool.
31034 Add bool argument.
31035 * calls.c (expand_call): Cancel sibcall optimization when encountering
31036 partial argument on targets with ARGS_GROW_DOWNWARD and
31037 !STACK_GROWS_DOWNWARD.
31038 (emit_library_call_value_1): Update callsite of emit_push_insn.
31039 (store_one_arg): Likewise.
31040
31041 2015-05-27 Gregor Richards <gregor.richards@uwaterloo.ca>
31042
31043 * config/arm/linux-eabi.h (MUSL_DYNAMIC_LINKER): Define.
31044
31045 2015-05-27 Martin Liska <mliska@suse.cz>
31046
31047 * Makefile.in: Add additional dependencies related to memory report
31048 enhancement.
31049 * alloc-pool.c (allocate_pool_descriptor): Use new ctor.
31050 * bitmap.c (struct bitmap_descriptor_d): Remove.
31051 (struct loc): Likewise.
31052 (struct bitmap_desc_hasher): Likewise.
31053 (bitmap_desc_hasher::hash): Likewise.
31054 (bitmap_desc_hasher::equal): Likewise.
31055 (get_bitmap_descriptor): Likewise.
31056 (bitmap_register): User new memory descriptor API.
31057 (register_overhead): Likewise.
31058 (bitmap_find_bit): Register nsearches and search_iter statistics.
31059 (struct bitmap_output_info): Remove.
31060 (print_statistics): Likewise.
31061 (dump_bitmap_statistics): Use new memory descriptor.
31062 * bitmap.h (struct bitmap_usage): New class.
31063 * genmatch.c: Extend header file inclusion.
31064 * genpreds.c: Likewise.
31065 * ggc-common.c (struct ggc_usage): New class.
31066 (struct ggc_loc_desc_hasher): Remove.
31067 (ggc_loc_desc_hasher::hash): Likewise.
31068 (ggc_loc_desc_hasher::equal): Likewise.
31069 (struct ggc_ptr_hash_entry): Likewise.
31070 (struct ptr_hash_hasher): Likewise.
31071 (ptr_hash_hasher::hash): Likewise.
31072 (ptr_hash_hasher::equal): Likewise.
31073 (make_loc_descriptor): Likewise.
31074 (ggc_prune_ptr): Likewise.
31075 (dump_ggc_loc_statistics): Use new memory descriptor.
31076 (ggc_record_overhead): Likewise.
31077 (ggc_free_overhead): Likewise.
31078 (final_cmp_statistic): Remove.
31079 (cmp_statistic): Likewise.
31080 (ggc_add_statistics): Liekwise.
31081 (ggc_prune_overhead_list): Likewise.
31082 * hash-map-traits.h: New file.
31083 * hash-map.h (struct default_hashmap_traits): Move the traits to a
31084 separate header file.
31085 * hash-set.h: Pass memory statistics info to ctor.
31086 * hash-table.c (void dump_hash_table_loc_statistics): New function.
31087 * hash-table.h (hash_table::hash_table): Add new ctor arguments.
31088 (hash_table::~hash_table): Register memory release operation.
31089 (hash_table::alloc_entries): Handle memory allocation operation.
31090 (hash_table::expand): Likewise.
31091 * inchash.c (iterative_hash_hashval_t): Move implementation to header
31092 file.
31093 (iterative_hash_host_wide_int): Likewise.
31094 * inchash.h (class hash): Likewise.
31095 * mem-stats-traits.h: New file.
31096 * mem-stats.h: New file.
31097 (mem_location): Add new class.
31098 (mem_usage): Likewise.
31099 (mem_alloc_description): Likewise.
31100 * sese.c: Add new header file inclusision.
31101 * toplev.c (dump_memory_report): Add report for hash_table, hash_map
31102 and hash_set.
31103 * tree-sra.c: Add new header file inclusision.
31104 * vec.c (struct vec_descriptor): Remove.
31105 (hash_descriptor): Likewise.
31106 (struct vec_usage): Likewise.
31107 (struct ptr_hash_entry): Likewise.
31108 (hash_ptr): Likewise.
31109 (eq_ptr): Likewise.
31110 (vec_prefix::register_overhead): Use new memory descriptor API.
31111 (vec_prefix::release_overhead): Likewise.
31112 (add_statistics): Remove.
31113 (dump_vec_loc_statistics): Use new memory descriptor API.
31114 * vec.h (struct vec_prefix): Likewise.
31115 (va_heap::reserve): Likewise.
31116 (va_heap::release): Likewise.
31117 * emit-rtl.c (gen_raw_REG): Fix passing MEM_STAT.
31118
31119 2015-05-27 Richard Biener <rguenther@suse.de>
31120
31121 * tree-vect-stmts.c (vectorizable_load): Initialize slp_perm
31122 earlier and remove ??? comment.
31123 (vect_analyze_stmt): If we are analyzing a pure SLP stmt
31124 and got called from loop analysis bail out. Always pass the SLP
31125 node to the vectorizable_* functions.
31126 * tree-vect-loop.c (vect_analyze_loop_operations): Remove
31127 the premature SLP check here.
31128 * tree-vect-slp.c (vect_detect_hybrid_slp_stmts): Dump hybrid
31129 detected SLP stmts.
31130 (vect_detect_hybrid_slp_1): Likewise.
31131
31132 2015-05-26 Jeff Law <law@redhat.com>
31133
31134 * combine.c (find_split_point): Verify that the shift count is a
31135 constant when choosing (plus (ashift ...)) as a split point.
31136
31137 * tree-ssa-threadupdate.c: Replace 8 space sequences with tabs.
31138 No functional changes.
31139
31140 2015-05-26 Jan Hubicka <hubicka@ucw.cz>
31141
31142 * ipa-polymorphic-call.c
31143 (ipa_polymorphic_call_context::get_dynamic_type): Short circuit the
31144 case when call target is already known.
31145
31146 2015-05-26 Oleg Endo <olegendo@gcc.gnu.org>
31147
31148 PR target/65979
31149 * config/sh/sh.md (tstsi_t peephole2): Use gen_rtx_SET and
31150 take into account the case that operands[1] and operands[2]
31151 are the same register.
31152
31153 2015-05-26 Michael Matz <matz@suse.de>
31154
31155 PR middle-end/66251
31156
31157 * tree-vect-stmts.c (vect_model_store_cost): Handled strided group
31158 stores.
31159 (vect_create_vectorized_demotion_stmts): Always set
31160 STMT_VINFO_VEC_STMT, also with SLP.
31161 (vectorizable_store): Handle strided group stores.
31162
31163 2015-05-26 Venkataramanan Kumar <venkataramanan.kumar@amd.com>
31164
31165 PR target/66049
31166 * config/aarch64/aarch64.md
31167 (*adds_shift_imm_<mode>): New pattern.
31168 (*subs_shift_imm_<mode>): Likewise.
31169 (*adds_<optab><ALLX:mode>_shift_<GPI:mode>): Likewise.
31170 (*subs_<optab><ALLX:mode>_shift_<GPI:mode>): Likewise.
31171 (*add_uxt<mode>_shift2): Likewise.
31172 (*add_uxtsi_shift2_uxtw): Likewise.
31173 (*sub_uxt<mode>_shift2): Likewise.
31174 (*sub_uxtsi_shift2_uxtw): Likewise.
31175
31176 2015-05-26 David Edelsohn <dje.gcc@gmail.com>
31177
31178 * config/rs6000/constraints.md (Y, U): Use match_test.
31179
31180 2015-05-26 Christian Bruel <christian.bruel@st.com>
31181
31182 PR target/52144
31183 * config/arm/arm.c (arm_option_check_internal)
31184 (arm_option_params_internal): Check opts->target_flags to set macros.
31185 (TREE_TARGET_ARM, TREE_TARGET_THUMB)
31186 (TREE_TARGET_THUMB1, TREE_TARGET_THUMB2) Replace with...
31187 (TARGET_ARM_P, TARGET_THUMB_P, TARGET_THUMB1_P, TARGET_THUMB2_P)
31188 (builtin_define): Replaced with def_or_undef_macro.
31189 * config/arm/arm.h (TREE_TARGET_ARM, TREE_TARGET_THUMB)
31190 TREE_TARGET_THUMB1, TREE_TARGET_THUMB2) Redefine with...
31191 (TARGET_ARM_P, TARGET_THUMB_P, TARGET_THUMB1_P, TARGET_THUMB2_P)
31192 (TARGET_32BIT_P, TARGET_ARM_QBIT_P, TARGET_ARM_SAT_P, TARGET_IDIV_P)
31193 (TARGET_HAVE_LDREX_P, TARGET_HAVE_LDREXBH_P, TARGET_HAVE_LDREXD_P)
31194 (TARGET_ARM_FEATURE_LDREX_P)
31195 (TARGET_DSP_MULTIPLY_P, TARGET_INT_SIMD_P): New macros.
31196 * config/arm/arm-c.c (def_or_undef_macro): New function.
31197 (arm_cpu_cpp_builtins): Use def_or_undef_macro for macros definition.
31198
31199 2015-05-26 Christian Bruel <christian.bruel@st.com>
31200
31201 * c-common.h (builtin_define_with_int_value)
31202 (builtin_define_type_sizeof): Declare.
31203 * c-cppbuiltin.c (builtin_define_with_int_value)
31204 (builtin_define_type_sizeof): Externalize.
31205 (builtin_define_std): Cleanup declaration.
31206 * config/arm/arm-protos.h (arm_cpu_cpp_builtins): Declare.
31207 * config/arm/arm.h (TARGET_CPU_CPP_BUILTINS): Move macro defines into...
31208 * config/arm/arm-c.c (arm_cpu_cpp_builtins): New function.
31209 (builtin_define, builtin_assert): New macros.
31210
31211 2015-05-26 Richard Biener <rguenther@suse.de>
31212
31213 PR tree-optimization/66142
31214 * tree-ssa-sccvn.c (vn_reference_lookup_3): Manually compare
31215 MEM_REFs for the same base address.
31216
31217 2015-05-26 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
31218
31219 PR ipa/66181
31220 * tree.c (verify_type_variant): Do not check TYPE_NO_FORCE_BLK.
31221
31222 2015-05-26 Jason Merrill <jason@redhat.com>
31223
31224 * configure.ac: Set CXXFLAGS for ISL test.
31225 * configure: Regenerate.
31226
31227 * configure.ac: Use C++ for all tests. Use AC_CHECK_DECLS for
31228 strstr and basename.
31229 * configure: Regenerate.
31230
31231 2015-05-26 Richard Biener <rguenther@suse.de>
31232
31233 * fold-const.c (fold_binary_loc): Move X % -Y -> X % Y and
31234 X % C -> X & (C - 1) for C being a power-of two to ...
31235 * match.pd: ... patterns.
31236
31237 2015-05-26 Marc Glisse <marc.glisse@inria.fr>
31238
31239 * match.pd (swapped_tcc_comparison): New operator list.
31240 (-A CMP -B): New simplification.
31241 * fold-const.c (fold_comparison): Remove corresponding code.
31242
31243 2015-05-26 Richard Sandiford <richard.sandiford@arm.com>
31244
31245 * caller-save.c (init_caller_save): Base temporary register numbers
31246 on LAST_VIRTUAL_REGISTER + 1 rather than FIRST_PSEUDO_REGISTER.
31247 * cfgloopanal.c (init_set_costs): Likewise.
31248 * dojump.c (prefer_and_bit_test): Likewise.
31249 * expr.c (init_expr_target): Likewise.
31250 * ira.c (setup_prohibited_mode_move_regs): Likewise.
31251 * lower-subreg.c (init_lower_subreg): Likewise.
31252 * postreload.c (reload_cse_regs_1): Likewise.
31253
31254 2015-05-26 Richard Sandiford <richard.sandiford@arm.com>
31255
31256 * gensupport.h (compute_test_codes): Declare.
31257 * gensupport.c (compute_predicate_codes): Rename to...
31258 (compute_test_codes): ...this. Generalize error message.
31259 (process_define_predicate): Update accordingly.
31260 * genpreds.c (compute_maybe_allows): Delete.
31261 (add_constraint): Use compute_test_codes to determine whether
31262 something can accept a SUBREG, REG or MEM.
31263
31264 2015-05-26 Torvald Riegel <triegel@redhat.com>
31265
31266 * doc/extend.texi (__atomic Builtins): Use 'memory order' instead of
31267 'memory model' to align with C++11; fix description of memory orders;
31268 fix a few typos.
31269
31270 2015-05-26 Richard Biener <rguenther@suse.de>
31271
31272 * tree-vect-loop.c (vect_update_vf_for_slp): Split out from ...
31273 (vect_analyze_loop_operations): ... here. Remove slp parameter,
31274 detect whether we apply SLP. Remove call to
31275 vect_update_slp_costs_according_to_vf.
31276 (vect_analyze_loop_2): Call vect_update_vf_for_slp and
31277 vect_update_slp_costs_according_to_vf from here. Dispatch
31278 to vect_slp_analyze_operations to analyze SLP stmts.
31279 * tree-vect-slp.c (vect_slp_analyze_node_operations): Drop
31280 unused bb_vec_info parameter, adjust assert.
31281 (vect_slp_analyze_operations): Pass in the slp instance tree
31282 instead of bb_vec_info.
31283 (vect_slp_analyze_bb_1): Adjust call to vect_slp_analyze_operations.
31284 * tree-vectorizer.h (vect_slp_analyze_operations): Declare.
31285
31286 2015-05-25 Alexander Monakov <amonakov@ispras.ru>
31287
31288 * config/i386/i386.h (enum reg_class): Move CLOBBERED_REGS prior to
31289 Q_REGS. Expand comment.
31290 (REG_CLASS_NAMES): Ditto.
31291 (REG_CLASS_CONTENTS): Ditto.
31292
31293 2015-05-25 Uros Bizjak <ubizjak@gmail.com>
31294
31295 PR target/66274
31296 * config/i386/i386.c (print_reg): Only print "r" for TARGET_64BIT
31297 when LEGACY_INT_REGNO_P is processed.
31298
31299 2015-05-25 Alexander Monakov <amonakov@ispras.ru>
31300
31301 * config/i386/i386.c (ix86_function_ok_for_sibcall): Check flag_plt.
31302
31303 2015-05-25 Pitchumani Sivanupandi <pitchumani.s@atmel.com>
31304
31305 * config/avr/avr.c (avr_out_load_psi_reg_no_disp_tiny): Restore base
31306 register if not marked dead/unused, before return.
31307
31308 2015-05-24 Jan Hubicka <hubicka@ucw.cz>
31309
31310 PR lto/66180
31311 * ipa-devirt.c (type_with_linkage): Check that TYPE_STUB_DECL
31312 is set; check for assembler name at LTO time.
31313 (type_in_anonymous_namespace): Remove hacks, check that all
31314 anonymous types are called "<anon>"
31315 (odr_type_p): Simplify; add check for "<anon>"
31316 (odr_subtypes_equivalent): Add odr_type_p check.
31317 * tree.c (need_assembler_name_p): Even anonymous namespace needs
31318 assembler name.
31319
31320 2015-05-24 Jan Hubicka <hubicka@ucw.cz>
31321
31322 * ipa-utils.h (method_class_type): Remove.
31323 * cgraphunit.c (walk_polymorphic_call_targets): Use
31324 TYPE_METHOD_BASETYPE.
31325 * ipa-devirt.c (type_in_anonymous_namespace_p): Check that it is called
31326 on main variants only.
31327 (method_class_type): Remove.
31328 (update_type_inheritance_graph): Use TYPE_METHOD_BASETYPE.
31329 (build_type_inheritance_graph): Likewise.
31330 * ipa-icf.c (sem_function::equals_wpa): Likewise.
31331 * pa-polymorphic-call.c (decl_maybe_in_construction_p,
31332 check_stmt_for_type_change): Use TYPE_METHOD_BASETYPE.
31333
31334 2015-05-24 Jan Hubicka <hubicka@ucw.cz>
31335
31336 * tree.c (prototype_p, virtual_method_call_p, obj_type_ref_class,
31337 is_typedef_decl, typedef_variant_p): Constify.
31338 * tree.h (prototype_p, virtual_method_call_p, obj_type_ref_class,
31339 is_typedef_decl, typedef_variant_p): Constify.
31340
31341 2015-05-23 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
31342
31343 * defaults.h (gen_tablejump): New function.
31344 (HAVE_tablejump): Add default value.
31345 * expr.c: Adjust.
31346 * stmt.c: Likewise.
31347
31348 2015-05-23 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
31349
31350 * defaults.h (gen_store_multiple): New function.
31351 (HAVE_store_multiple): Add default value.
31352 * expr.c (move_block_from_reg): Adjust.
31353
31354 2015-05-23 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
31355
31356 * defaults.h (gen_load_multiple): New function.
31357 (HAVE_load_multiple): Add default value.
31358 * expr.c (move_block_to_reg): Adjust.
31359
31360 2015-05-23 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
31361
31362 * defaults.h (gen_mem_signal_fence): New function.
31363 (HAVE_mem_signal_fence): Add default value.
31364 * optabs.c: Adjust.
31365
31366 2015-05-23 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
31367
31368 * defaults.h (gen_memory_barrier): New function.
31369 (HAVE_memory_barrier): Add default value.
31370 * optabs.c: Adjust.
31371
31372 2015-05-23 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
31373
31374 * defaults.h (gen_mem_thread_fence): New function.
31375 (HAVE_mem_thread_fence): Add default definition.
31376 * optabs.c: Adjust.
31377
31378 2015-05-23 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
31379
31380 * combine.c (find_split_point): Check the value of HAVE_lo_sum
31381 instead of if it is defined.
31382 (combine_simplify_rtx): Likewise.
31383 * lra-constraints.c (process_address_1): Likewise.
31384 * config/darwin.c: Adjust.
31385 * genconfig.c (main): Always define HAVE_lo_sum.
31386
31387 2015-05-23 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
31388
31389 * genmatch.c (parser::parse_operation): Reject expanding
31390 operator-list inside 'for'.
31391
31392 2015-05-23 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
31393
31394 * genmatch.c (parser::parse_for): Reject iterator if used as
31395 operator-list.
31396
31397 2015-05-23 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
31398
31399 * genmatch.c (parser::parse_operator_list): Check for CPP_CLOSE_PAREN
31400 after end of id-list.
31401
31402 2015-05-22 Jan Hubicka <hubicka@ucw.cz>
31403
31404 * tree.c (gimple_canonical_types_compatible_p): Sanity check that
31405 we do not try to compute canonical type for type that does not need
31406 alias set.
31407 (verify_type): Drop FIXME for METHOD_TYPE, update FIXME for
31408 FUNCITON_TYPE.
31409 * tree.h (type_with_alias_set_p): New.
31410
31411 2015-05-22 Jan Hubicka <hubicka@ucw.cz>
31412
31413 * tree.c (gimple_canonical_types_compatible_p): Do not compare
31414 function attributes.
31415 (verify_type): Remove METHOD_TYPE FIXME; update FUNCTION_TYPE.
31416
31417 2015-05-22 Jim Wilson <jim.wilson@linaro.org>
31418
31419 * Makefile.in (check_gcc_parallelize): Delete.
31420 (lang_checks_parallelized): Update comment.
31421
31422 2015-05-22 Mikhail Maltsev <maltsevm@gmail.com>
31423
31424 PR rtl-optimization/66237
31425 * bb-reorder.c (fix_crossing_conditional_branches): Fix wrong
31426 location of an "as_a" cast.
31427
31428 2015-05-22 Jeff Law <law@redhat.com>
31429
31430 * config/pa/pa.md (non-canonical shift-add insns): Remove.
31431 (peepholes with non-canonical RTL sources): Remove.
31432 (peepholes for indexed stores of FP regs in integer modes): Match and
31433 generate canonical RTL.
31434
31435 2015-05-22 Marc Glisse <marc.glisse@inria.fr>
31436
31437 PR tree-optimization/63387
31438 * match.pd ((X /[ex] A) * A -> X): Remove unnecessary condition.
31439 ((x ord x) & (y ord y) -> (x ord y),
31440 (x ord x) & (x ord y) -> (x ord y)): New simplifications.
31441 * fold-const.c (tree_unary_nonnegative_warnv_p) <ABS_EXPR>: Handle
31442 vectors like scalars.
31443
31444 2015-05-22 Marc Glisse <marc.glisse@inria.fr>
31445
31446 * convert.c (convert_to_integer, convert_to_vector): Include the
31447 types in the error message.
31448
31449 2015-05-22 Marc Glisse <marc.glisse@inria.fr>
31450
31451 * match.pd ((x | y) & ~x -> y & ~x, (x & y) | ~x -> y | ~x): New
31452 simplifications.
31453
31454 2015-05-22 Jeff Law <law@redhat.com>
31455
31456 * config/pa/pa.md (integer_indexed_store splitters): Use
31457 mem_shadd_operand. Use ASHIFT rather than MULT in the resulting
31458 insns -- adjusting the constant 2nd operand accordingly.
31459
31460 * combine.c (try_combine): Canonicalize (plus (mult X pow2) Y) into
31461 (plus (ashift X log2) Y) if it is a split point.
31462
31463 * config/pa/pa.c (mem_shadd_or_shadd_rtx_p): New function factoredx
31464 out of hppa_legitimize_address to handle both forms of a multiply
31465 by 2, 4 or 8.
31466 (hppa_legitimize_address): Use mem_shadd_or_shadd_rtx_p.
31467 Always generate the ASHIFT variant as the result is not directly
31468 used in a MEM. Update comments and refactor slightly to improve
31469 readability.
31470
31471 2015-05-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
31472
31473 PR target/65491
31474 * config/aarch64/aarch64.c (aarch64_short_vector_p): Move above
31475 aarch64_composite_type_p. Remove check for aarch64_composite_type_p.
31476 (aarch64_composite_type_p): Return false if given type and mode are
31477 for a short vector.
31478
31479 2015-05-22 Richard Biener <rguenther@suse.de>
31480
31481 * tree-vectorizer.h (struct _slp_oprnd_info): Add second_pattern
31482 member.
31483 * tree-vect-loop.c (vect_analyze_loop_operations): Look at
31484 patterns when determining whether SLP is pure.
31485 (vect_is_slp_reduction): Remove check for pattern stmts.
31486 (vect_is_simple_reduction_1): Remove dead code.
31487 * tree-vect-slp.c (vect_create_oprnd_info): Initialize second_pattern.
31488 (vect_get_and_check_slp_defs): Pass in the stmt number.
31489 Allow the first def in a reduction to be not a pattern stmt when
31490 the rest of the stmts def are patterns.
31491 (vect_build_slp_tree_1): Allow tcc_expression codes like
31492 SAD_EXPR and DOT_PROD_EXPR.
31493 (vect_build_slp_tree): Adjust.
31494 (vect_analyze_slp): Refactor and move BB vect error message ...
31495 (vect_slp_analyze_bb_1): ... here.
31496
31497 2015-05-22 Aldy Hernandez <aldyh@redhat.com>
31498
31499 * tree-switch-conversion.c (build_one_array): Set DECL_IGNORED_P
31500 for CSWTCH temporary.
31501
31502 2015-05-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
31503
31504 * config/arm/arm.c (arm_new_rtx_costs): Handle UNSPEC_VOLATILE.
31505 (arm_unspec_cost): Allow UNSPEC_VOLATILE. Do not recurse inside
31506 unknown unspecs.
31507
31508 2015-05-22 Richard Biener <rguenther@suse.de>
31509
31510 PR tree-optimization/66251
31511 * tree-vect-stmts.c (vectorizable_conversion): Properly
31512 set STMT_VINFO_VEC_STMT even for the SLP case.
31513
31514 2015-05-22 Marek Polacek <polacek@redhat.com>
31515
31516 * doc/extend.texi: Use @pxref instead of @xref.
31517
31518 2015-05-22 hiraditya <hiraditya@msn.com>
31519
31520 * gimple.h (gimple_expr_type): Refactor to make it concise. Remove
31521 redundant if.
31522
31523 2015-05-22 Richard Biener <rguenther@suse.de>
31524
31525 PR tree-optimization/65701
31526 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment):
31527 Move peeling cost models into one place. Peel for alignment
31528 for single loads only if an aligned load is cheaper than
31529 an unaligned load.
31530
31531 2015-05-22 Marek Polacek <polacek@redhat.com>
31532
31533 PR c/47043
31534 * doc/extend.texi (Enumerator Attributes): New section.
31535 Document syntax of enumerator attributes.
31536
31537 2015-05-22 Richard Biener <rguenther@suse.de>
31538
31539 * tree-vect-loop.c (get_reduction_op): New function.
31540 (vect_model_reduction_cost): Use it, add reduc_index parameter.
31541 Make ready for BB reductions.
31542 (vect_create_epilog_for_reduction): Use get_reduction_op.
31543 (vectorizable_reduction): Init reduc_index to a valid value.
31544 Adjust vect_model_reduction_cost call.
31545 * tree-vect-slp.c (vect_get_constant_vectors): Use the proper
31546 operand for reduction defaults. Add SAD_EXPR support.
31547 Assert we have a neutral op for SLP reductions.
31548 * tree-vect-stmts.c (vect_mark_stmts_to_be_vectorized): When
31549 walking pattern stmt ops only recurse to SSA names.
31550
31551 2015-05-22 Richard Biener <rguenther@suse.de>
31552
31553 * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Replace
31554 assert with guard, remove check on detected reduction.
31555 (vect_recog_sad_pattern): Likewise.
31556 (vect_recog_widen_sum_pattern): Likewise.
31557
31558 2015-05-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
31559
31560 * config/aarch64/arm_neon.h (vaeseq_u8): Add __extension__ and
31561 __always_inline__ attribute.
31562 (vaesdq_u8): Likewise.
31563 (vaesmcq_u8): Likewise.
31564 (vaesimcq_u8): Likewise.
31565 (vsha1cq_u32): Likewise.
31566 (vsha1mq_u32): Likewise.
31567 (vsha1pq_u32): Likewise.
31568 (vsha1h_u32): Likewise.
31569 (vsha1su0q_u32): Likewise.
31570 (vsha1su1q_u32): Likewise.
31571 (vsha256hq_u32): Likewise.
31572 (vsha256h2q_u32): Likewise.
31573 (vsha256su0q_u32): Likewise.
31574 (vsha256su1q_u32): Likewise.
31575 (vmull_p64): Likewise.
31576 (vmull_high_p64): Likewise.
31577
31578 2015-05-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
31579
31580 * final.c (final_scan_insn): Don't check HAVE_peephole with the
31581 preprocessor.
31582 * output.h: Likewise.
31583 * genconfig.c (main): Alwways define HAVE_peephole.
31584 * genpeep.c: Don't emit checks of HAVE_peephole.
31585
31586 2015-05-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
31587
31588 * combine.c, expmed.c, expr.c, optabs.c optabs.h, toplev.c: DOn't
31589 check HAVE_conditional_move with the preprocessor.
31590
31591 2015-05-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
31592
31593 * genconfig.c (main): Always define HAVE_conditional_move.
31594 * combine.c, expmed.c, expr.c, ifcvt.c, optabs.c, optabs.h,
31595 toplev.c, tree-ssa-phiopt.c: Don't check if HAVE_conditional_move
31596 is defined.
31597
31598 2015-05-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
31599
31600 * combine.c, df-problems.c, df-scan.c, emit-rtl.c, reginfo.c,
31601 reload.c, rtlanal.c: Remove comparison of ARG_FRAME_POINTER_REGNUM
31602 and FRAME_POINTER_REGNUM with the preprocessor.
31603
31604 2015-05-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
31605
31606 * defaults.h: Add default for STACK_PUSH_CODE.
31607 * expr.c: Don't redefine STACK_PUSH_CODE.
31608 * recog.c: Likewise.
31609
31610 2015-05-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
31611
31612 * builtins.c, dwarf2cfi.c, explow.c, expr.c, recog.c,
31613 sched-deps.c: Use if instead of preprocessor checks with
31614 STACK_GROWS_DOWNWARD.
31615
31616 2015-05-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
31617
31618 * *.c: Check the value of STACK_GROWS_DOWNWARD rather than if it
31619 is defined.
31620 * config/**/*.h: Define STACK_GROWS_DOWNWARD to an integer.
31621 * defaults.h: Provide default for STACK_GROWS_DOWNWARD.
31622 * doc/tm.texi.in: Update references to STACK_GROWS_DOWNWARD.
31623 * doc/tm.texi: Regenerate.
31624
31625 2015-05-21 H.J. Lu <hongjiu.lu@intel.com>
31626
31627 PR target/66232
31628 * config/i386/constraints.md (Bg): New constraint for GOT memory
31629 operand.
31630 * config/i386/i386.md (*call_got_x32): New pattern.
31631 (*call_value_got_x32): Likewise.
31632 * config/i386/predicates.md (GOT_memory_operand): New predicate.
31633
31634 2015-05-21 Jakub Jelinek <jakub@redhat.com>
31635
31636 PR tree-optimization/66233
31637 * match.pd (ocvt (icvt@1 @0)): Don't handle vector types.
31638 Simplify.
31639
31640 2015-05-21 Jeff Law <law@redhat.com>
31641
31642 * config/pa/pa.md (add-with-constant splitter): Use ASHIFT rather
31643 than MULT for shadd sequences.
31644
31645 2015-05-08 Jan Hubicka <hubicka@ucw.cz>
31646
31647 * alias.c (alias_stats): New static var.
31648 (alias_sets_conflict_p, alias_sets_must_conflict_p): Update stats.
31649 (dump_alias_stats_in_alias_c): New function.
31650 * alias.h (dump_alias_stats_in_alias_c): Declare.
31651 * tree-ssa-alias.c (dump_alias_stats): Call it.
31652
31653 2015-05-08 Michael Matz <matz@suse.de>
31654
31655 * tree-vectorizer.h (struct _stmt_vec_info): Rename stride_load_p
31656 to strided_p.
31657 (STMT_VINFO_STRIDE_LOAD_P): Rename to ...
31658 (STMT_VINFO_STRIDED_P): ... this.
31659 * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Adjust.
31660 (vect_verify_datarefs_alignment): Likewise.
31661 (vect_enhance_data_refs_alignment): Likewise.
31662 (vect_analyze_data_ref_access): Likewise.
31663 (vect_analyze_data_refs): Accept strided stores.
31664 * tree-vect-stmts.c (vect_model_store_cost): Count strided stores.
31665 (vect_model_load_cost): Adjust for macro rename.
31666 (vectorizable_mask_load_store): Likewise.
31667 (vectorizable_load): Likewise.
31668 (vectorizable_store): Open code strided stores.
31669
31670 2015-05-21 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
31671
31672 * doc/sourcebuild.texi (7.2.3.9 Other hardware attributes):
31673 Document sqrt_insn.
31674
31675 2015-05-21 Richard Biener <rguenther@suse.de>
31676
31677 PR c++/66211
31678 * match.pd: Guard pattern optimzing (int)(float)int
31679 conversions to apply only on GIMPLE.
31680
31681 2015-05-21 Jeff Law <law@redhat.com>
31682
31683 * combine.c (find_split_point): Handle ASHIFT like MULT to encourage
31684 multiply-accumulate/shift-add insn generation.
31685
31686 2015-05-21 Oleg Endo <olegendo@gcc.gnu.org>
31687
31688 PR target/54236
31689 * config/sh/sh.md (*round_int_even): Reject pattern if operands[0] and
31690 operands[1] are the same.
31691
31692 2015-05-21 Ilya Enkovich <enkovich.gnu@gmail.com>
31693
31694 PR middle-end/66221
31695 * ipa-chkp.c (chkp_copy_function_type_adding_bounds): Use
31696 build_distinct_type_copy to copy bounds.
31697
31698 2015-05-21 Thomas Schwinge <thomas@codesourcery.com>
31699
31700 * genrecog.c (MAX_DEPTH, MIN_NUM_STATEMENTS, MAX_NUM_STATEMENTS):
31701 Change to unsigned int.
31702
31703 2015-05-20 Jeff Law <law@redhat.com>
31704
31705 * config/pa/pa.c (pa_print_operand): New 'o' output modifier.
31706 (pa_mem_shadd_constant_p): Renamed from pa_shadd_constant_p.
31707 (pa_shadd_constant_p): Allow constants for shadd insns rather
31708 than valid scaling constants for memory addresses.
31709 * config/pa/pa-protos.h (pa_mem_shadd_constant_p): Add prototype.
31710 * config/pa/predicates.md (mem_shadd_operand): New predicate.
31711 * config/pa/pa.md (shift-add insns using MULT): Use mem_shadd_operand.
31712 (shift-add insns using ASHIFT): New patterns.
31713
31714 2015-05-20 Mikhail Maltsev <maltsevm@gmail.com>
31715
31716 * bb-reorder.c (set_edge_can_fallthru_flag): Use rtx_jump_insn where
31717 feasible.
31718 (fix_up_fall_thru_edges): Likewise.
31719 (fix_crossing_conditional_branches): Likewise. Promote jump targets
31720 from to rtx_insn to rtx_code_label where feasible.
31721 * bt-load.c (move_btr_def): Remove as-a cast of the value returned by
31722 gen_move_insn (returned type changed to rtx_insn).
31723 * builtins.c (expand_errno_check): Fix arguments of
31724 do_compare_rtx_and_jump (now expects rtx_code_label).
31725 (expand_builtin_acc_on_device): Likewise.
31726 * cfgcleanup.c (try_simplify_condjump): Add cast when calling
31727 invert_jump (now exprects rtx_jump_insn).
31728 * cfgexpand.c (label_rtx_for_bb): Promote return type to rtx_code_label.
31729 (construct_init_block): Use rtx_code_label.
31730 * cfgrtl.c (block_label): Promote return type to rtx_code_label.
31731 (try_redirect_by_replacing_jump): Use cast to rtx_jump_insn when
31732 calling redirect_jump.
31733 (patch_jump_insn): Likewise.
31734 (redirect_branch_edge): Likewise.
31735 (force_nonfallthru_and_redirect): Likewise.
31736 (fixup_reorder_chain): Explicitly use rtx_jump_insn instead of rtx_insn
31737 when suitable.
31738 (rtl_lv_add_condition_to_bb): Update call of do_compare_rtx_and_jump.
31739 * cfgrtl.h: Promote return type of block_label to rtx_code_label.
31740 * config/bfin/bfin.c (hwloop_optimize): Fix call of emit_label_before.
31741 * config/i386/i386.c (ix86_emit_cmove): Explicitly use rtx_code_label
31742 to store the value retured by gen_label_rtx.
31743 * config/mips/mips.c (mips16_split_long_branches): Promote rtx_insn to
31744 rtx_jump_insn.
31745 * config/sh/sh.c (gen_far_branch): Likewise. Fix call of invert_jump.
31746 (split_branches): Fix calls of redirect_jump.
31747 * dojump.c (jumpifnot): Promote argument type from rtx to
31748 rtx_code_label.
31749 (jumpifnot_1): Likewise.
31750 (jumpif): Likewise.
31751 (jumpif_1): Likewise.
31752 (do_jump_1): Likewise.
31753 (do_jump): Likewise. Use rtx_code_label when feasible.
31754 (do_jump_by_parts_greater_rtx): Likewise.
31755 (do_jump_by_parts_zero_rtx): Likewise.
31756 (do_jump_by_parts_equality_rtx): Likewise.
31757 (do_compare_rtx_and_jump): Likewise.
31758 * dojump.h: Update function prototypes.
31759 * dse.c (emit_inc_dec_insn_before): Remove case (gen_move_insn now
31760 returns rtx_insn).
31761 * emit-rtl.c (emit_jump_insn_before_noloc): Promote return type to
31762 rtx_jump_insn.
31763 (emit_label_before): Likewise.
31764 (emit_jump_insn_after_noloc): Likewise.
31765 (emit_jump_insn_after_setloc): Likewise.
31766 (emit_jump_insn_after): Likewise
31767 (emit_jump_insn_before_setloc): Likewise.
31768 (emit_jump_insn_before): Likewise.
31769 (emit_label_before): Promote return type to rtx_code_label.
31770 (emit_label): Likewise.
31771 * except.c (sjlj_emit_dispatch_table): Use jump_target_rtx.
31772 * explow.c (emit_stack_save): Use gen_move_insn_uncast instead of
31773 gen_move_insn.
31774 (emit_stack_restore): Likewise.
31775 * expmed.c (emit_store_flag_force): Fix calls of do_compare_rtx_and_jump.
31776 (do_cmp_and_jump): Likewise.
31777 * expr.c (expand_expr_real_2): Likewise. Promote some local variables
31778 from rtx to rtx_code_label.
31779 (gen_move_insn_uncast): New function.
31780 * expr.h: Update return type of gen_move_insn (promote to rtx_insn).
31781 * function.c (convert_jumps_to_returns): Fix call of redirect_jump.
31782 * gcse.c (pre_insert_copy_insn): Use rtx_insn instead of rtx.
31783 * ifcvt.c (dead_or_predicable): Use rtx_jump_insn when calling
31784 invert_jump_1 and redirect_jump_1.
31785 * internal-fn.c (expand_arith_overflow_result_store): Fix call of
31786 do_compare_rtx_and_jump.
31787 (expand_addsub_overflow): Likewise.
31788 (expand_neg_overflow): Likewise.
31789 (expand_mul_overflow): Likewise.
31790 * ira.c (split_live_ranges_for_shrink_wrap): Use rtx_insn for
31791 return value of gen_move_insn.
31792 * jump.c (redirect_jump): Promote argument from rtx to rtx_jump_insn.
31793 * loop-doloop.c (add_test): Use rtx_code_label.
31794 (doloop_modify): Likewise.
31795 (doloop_optimize): Likewise.
31796 * loop-unroll.c (compare_and_jump_seq): Promote rtx to rtx_code_label.
31797 * lra-constraints.c (emit_spill_move): Remove cast of value returned
31798 by gen_move_insn.
31799 (inherit_reload_reg): Add cast when calling dump_insn_slim.
31800 (split_reg): Likewise.
31801 * modulo-sched.c (schedule_reg_moves): Remove cast of value returned by
31802 gen_move_insn.
31803 * optabs.c (expand_binop_directly): Remove casts of values returned by
31804 maybe_gen_insn.
31805 (expand_unop_direct): Likewise.
31806 (expand_abs): Likewise.
31807 (maybe_emit_unop_insn): Likewise.
31808 (maybe_gen_insn): Promote return type to rtx_insn.
31809 * optabs.h: Update prototype of maybe_gen_insn.
31810 * postreload-gcse.c (eliminate_partially_redundant_load): Remove
31811 redundant cast.
31812 * recog.c (struct peep2_insn_data): Promote type of insn field to
31813 rtx_insn.
31814 (peep2_reinit_state): Use NULL instead of NULL_RTX.
31815 (peep2_attempt): Remove casts of insn in peep2_insn_data.
31816 (peep2_fill_buffer): Promote argument from rtx to rtx_insn
31817 * recog.h (struct insn_gen_fn): Promote return types of function
31818 pointers and operator ().from rtx to rtx_insn.
31819 * reorg.c (fill_simple_delay_slots): Promote rtx_insn to rtx_jump_insn.
31820 (fill_eager_delay_slots): Likewise.
31821 (relax_delay_slots): Likewise.
31822 (make_return_insns): Likewise.
31823 (dbr_schedule): Likewise.
31824 (optimize_skips): Likewise.
31825 (reorg_redirect_jump): Likewise.
31826 (fill_slots_from_thread): Likewise.
31827 * reorg.h: Update prototypes.
31828 * resource.c (find_dead_or_set_registers): Use dyn_cast to
31829 rtx_jump_insn instead of check. Use it's jump_target method.
31830 * rtl.h (rtx_jump_insn::jump_label): Define new method.
31831 (rtx_jump_insn::jump_target): Define new method.
31832 (rtx_jump_insn::set_jump_target): Define new method.
31833 * rtlanal.c (tablejump_p): Promote type of one local variable.
31834 * sched-deps.c (sched_analyze_2): Promote rtx to rtx_insn_list.
31835 (sched_analyze_insn): Likewise.
31836 * sched-vis.c (print_insn_with_notes): Promote rtx to rtx_insn.
31837 (print_insn): Likewise.
31838 * stmt.c (label_rtx): Promote return type to rtx_insn.
31839 (force_label_rtx): Likewise.
31840 (jump_target_rtx): Define new function.
31841 (expand_label): Use it, get rid of one cast.
31842 (expand_naked_return): Promote rtx to rtx_code_label.
31843 (do_jump_if_equal): Fix do_compare_rtx_and_jump call.
31844 (expand_case): Use rtx_code_label instread of rtx where feasible.
31845 (expand_sjlj_dispatch_table): Likewise.
31846 (emit_case_nodes): Likewise.
31847 * stmt.h: Declare jump_target_rtx. Update prototypes. Fix comments.
31848 * store-motion.c (insert_store): Make use of new return type of
31849 gen_move_insn and remove a cast.
31850 (replace_store_insn): Likewise.
31851
31852 2015-05-20 Max Filippov <jcmvbkbc@gmail.com>
31853
31854 * config/xtensa/xtensa.c (init_alignment_context): Replace MULT
31855 by BITS_PER_UNIT with ASHIFT by exact_log2 (BITS_PER_UNIT).
31856
31857 2015-05-20 Jeff Law <law@redhat.com>
31858
31859 * tree-ssa-threadupdate.c (mark_threaded_blocks): Properly
31860 dispose of the jump thread path when the jump threading
31861 opportunity is cancelled.
31862
31863 2015-05-20 Manuel López-Ibáñez <manu@gcc.gnu.org>
31864
31865 * diagnostic.c (diagnostic_print_caret_line): Fix off-by-one error
31866 when printing the caret character.
31867
31868 2015-05-20 Marek Polacek <polacek@redhat.com>
31869
31870 * cfgexpand.c (expand_debug_expr): Use UNARY_CLASS_P.
31871
31872 2015-05-20 Marek Polacek <polacek@redhat.com>
31873
31874 * expr.c (expand_cond_expr_using_cmove): Use COMPARISON_CLASS_P.
31875 * gimple-expr.c (gimple_cond_get_ops_from_tree): Likewise.
31876 * gimple-fold.c (canonicalize_bool): Likewise.
31877 (same_bool_result_p): Likewise.
31878 * tree-if-conv.c (parse_predicate): Likewise.
31879
31880 2015-05-20 Marek Polacek <polacek@redhat.com>
31881
31882 * gimple-fold.c (fold_const_aggregate_ref_1): Use DECL_P.
31883 * gimplify.c (gimplify_modify_expr_rhs): Likewise.
31884
31885 2015-05-20 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
31886
31887 * config/aarch64/aarch64.c (aarch64_class_max_nregs):
31888 Use UNITS_PER_VREG and UNITS_PER_WORD instead of their direct
31889 values.
31890
31891 2015-05-20 Robert Suchanek <robert.suchanek@imgtec.com>
31892
31893 * config/mips/mips.h (micromips_globals): Declare.
31894
31895 2015-05-20 David Malcolm <dmalcolm@redhat.com>
31896
31897 * timevar.def (TV_INITIALIZE_RTL): New.
31898 * toplev.c (initialize_rtl): Use an auto_timevar to account this
31899 function's time to TV_INITIALIZE_RTL.
31900
31901 2015-05-20 Ilya Enkovich <enkovich.gnu@gmail.com>
31902
31903 * tree-chkp.c (chkp_maybe_copy_and_register_bounds): Remove useless
31904 gimple_build_nop calls.
31905 (chkp_find_bounds_for_elem): Likewise.
31906 (chkp_get_zero_bounds): Likewise.
31907 (chkp_get_none_bounds): Likewise.
31908 (chkp_get_bounds_by_definition): Likewise.
31909 (chkp_generate_extern_var_bounds): Likewise.
31910 (chkp_get_bounds_for_decl_addr): Likewise.
31911 (chkp_get_bounds_for_string_cst): Likewise.
31912
31913 2015-05-20 Bin Cheng <bin.cheng@arm.com>
31914
31915 PR tree-optimization/65447
31916 * tree-ssa-loop-ivopts.c (struct iv_use): New fields.
31917 (dump_use, dump_uses): Support to dump sub use.
31918 (record_use): New parameters to support sub use. Remove call to
31919 dump_use.
31920 (record_sub_use, record_group_use): New functions.
31921 (compute_max_addr_offset, split_all_small_groups): New functions.
31922 (group_address_uses, rewrite_use_address): New functions.
31923 (strip_offset): New declaration.
31924 (find_interesting_uses_address): Call record_group_use.
31925 (add_candidate): New assertion.
31926 (infinite_cost_p): Move definition forward.
31927 (add_costs): Check INFTY cost and return immediately.
31928 (get_computation_cost_at): Clear setup cost and dependent bitmap
31929 for sub uses.
31930 (determine_use_iv_cost_address): Compute cost for sub uses.
31931 (rewrite_use_address_1): Rename from old rewrite_use_address.
31932 (free_loop_data): Free sub uses.
31933 (tree_ssa_iv_optimize_loop): Call group_address_uses.
31934
31935 2015-05-20 Kugan Vivekanandarajah <kuganv@linaro.org>
31936 Jim Wilson <jim.wilson@linaro.org>
31937
31938 * config/arm/aarch-common-protos.h (struct mem_cost_table): Added
31939 new fields loadv and storev.
31940 * config/aarch64/aarch64-cost-tables.h (thunderx_extra_costs):
31941 Initialize loadv and storev.
31942 * config/arm/aarch-cost-tables.h (generic_extra_costs): Likewise.
31943 (cortexa53_extra_costs): Likewise.
31944 (cortexa57_extra_costs): Likewise.
31945 (xgene1_extra_costs): Likewise.
31946 * config/aarch64/aarch64.c (aarch64_rtx_costs): Update vector
31947 rtx_costs.
31948
31949 2015-05-20 Kugan Vivekanandarajah <kuganv@linaro.org>
31950
31951 * config/arm/arm.c (cortexa9_extra_costs): Initialize loadv and
31952 storev.
31953 (cortexa8_extra_costs): Likewise.
31954 (cortexa5_extra_costs): Likewise.
31955 (cortexa7_extra_costs): Likewise.
31956 (cortexa12_extra_costs): Likewise.
31957 (cortexa15_extra_costs): Likewise.
31958 (v7m_extra_costs): Likewise.
31959
31960 2015-05-20 Jeff Law <law@redhat.com>
31961
31962 * tree-ssa-threadupdate.c (thread_single_edge): Use delete_jump_thread
31963 instead of open-coded version. Also delete the jump thread created
31964 within this function.
31965
31966 2015-05-20 Alan Modra <amodra@gmail.com>
31967
31968 * config/rs6000/rs6000.c (rs6000_emit_allocate_stack): Return
31969 stack adjusting insn. Formatting.
31970 (rs6000_emit_prologue): Track stack adjusting insn, and use of
31971 r12. If possible, emit first -fsplit-stack arg pointer insn
31972 before stack adjust. Don't use r12 to save cr if split-stack.
31973
31974 2015-05-20 Alan Modra <amodra@gmail.com>
31975
31976 * common/config/rs6000/rs6000-common.c (TARGET_SUPPORTS_SPLIT_STACK):
31977 Define.
31978 (rs6000_supports_split_stack): New function.
31979 * config/rs6000/rs6000.c (machine_function): Add
31980 split_stack_arg_pointer.
31981 (TARGET_EXTRA_LIVE_ON_ENTRY, TARGET_INTERNAL_ARG_POINTER): Define.
31982 (setup_incoming_varargs): Use crtl->args.internal_arg_pointer
31983 rather than virtual_incoming_args_rtx.
31984 (rs6000_va_start): Likewise.
31985 (split_stack_arg_pointer_used_p): New function.
31986 (rs6000_emit_prologue): Set up arg pointer for -fsplit-stack.
31987 (morestack_ref): New var.
31988 (gen_add3_const, rs6000_expand_split_stack_prologue,
31989 rs6000_internal_arg_pointer, rs6000_live_on_entry,
31990 rs6000_split_stack_space_check): New functions.
31991 (rs6000_elf_file_end): Call file_end_indicate_split_stack.
31992 * config/rs6000/rs6000.md (UNSPEC_STACK_CHECK): Define.
31993 (UNSPECV_SPLIT_STACK_RETURN): Define.
31994 (split_stack_prologue, load_split_stack_limit,
31995 load_split_stack_limit_di, load_split_stack_limit_si,
31996 split_stack_return, split_stack_space_check): New expands and insns.
31997 * config/rs6000/rs6000-protos.h
31998 (rs6000_expand_split_stack_prologue): Declare.
31999 (rs6000_split_stack_space_check): Declare.
32000
32001 2015-05-20 Alan Modra <amodra@gmail.com>
32002
32003 * config/rs6000/rs6000.c (struct rs6000_stack): Correct comments.
32004 (direct_return): Test vrsave_size rather than vrsave_mask.
32005 (rs6000_emit_prologue): Likewise. Remove redundant altivec tests.
32006 (rs6000_emit_epilogue): Likewise.
32007
32008 2015-05-20 Alan Modra <amodra@gmail.com>
32009
32010 * config/rs6000/rs6000.c (rs6000_stack_info): Don't zero offsets
32011 when not saving registers.
32012 (debug_stack_info): Adjust to omit printing unused offsets,
32013 as before.
32014 (rs6000_emit_epilogue): Adjust use_backchain_to_restore_sp
32015 expression.
32016
32017 2015-05-19 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
32018
32019 PR c++/65835
32020 * config/i386/winnt.c (struct wrapped_symbol_hasher): Change
32021 value_type to const char *.
32022
32023 2015-05-19 Sandra Loosemore <sandra@codesourcery.com>
32024
32025 * config.gcc [powerpc*-*-linux*]: Allow --enable-targets=all
32026 to build a biarch toolchain again.
32027
32028 2015-05-19 Jan Hubicka <hubicka@ucw.cz>
32029
32030 * ipa-devirt.c (type_in_anonymous_namespace_p): Return true
32031 or implicit declarations.
32032 (odr_type_p): Check that TYPE_NAME is TYPE_DECL before looking
32033 into it.
32034 (get_odr_type): Check type has linkage before adding bases.
32035 (register_odr_type): Check that type has linkage before adding it.
32036 (type_known_to_have_no_deriavations_p): Rename to ..
32037 (type_known_to_have_no_derivations_p): This one.
32038 * ipa-utils.h (type_known_to_have_no_deriavations_p): Rename to ..
32039 (type_known_to_have_no_derivations_p): This one.
32040 * ipa-polymorphic-call.c
32041 (ipa_polymorphic_call_context::restrict_to_inner_type): Check that
32042 type has linkage.
32043
32044 2015-05-19 Eric Botcazou <ebotcazou@adacore.com>
32045
32046 * stor-layout.c (finalize_type_size): Use AGGREGATE_TYPE_P.
32047 (layout_type): Use RECORD_OR_UNION_TYPE_P.
32048
32049 2015-05-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
32050
32051 * config/s390/s390.c (s390_vector_bool_type_p): New function.
32052 (s390_invalid_binary_op): New function.
32053 (TARGET_INVALID_BINARY_OP): Define macro.
32054
32055 2015-05-19 David Sherwood <david.sherwood@arm.com>
32056
32057 * loop-invariant.c (create_new_invariant): Don't calculate address cost
32058 if mode is not a scalar integer.
32059 (get_inv_cost): Increase computational cost for unused invariants.
32060
32061 2015-05-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
32062
32063 * config.gcc: Add vecintrin.h to extra_headers. Add s390-c.o to
32064 c_target_objs and cxx_target_objs. Add t-s390 to tmake_file.
32065 * config/s390/s390-builtin-types.def: New file.
32066 * config/s390/s390-builtins.def: New file.
32067 * config/s390/s390-builtins.h: New file.
32068 * config/s390/s390-c.c: New file.
32069 * config/s390/s390-modes.def: Add modes CCVEQANY, CCVH,
32070 CCVHANY, CCVHU, CCVHUANY, CCVFHANY, CCVFHEANY.
32071 * config/s390/s390-protos.h (s390_expand_vec_compare_cc)
32072 (s390_cpu_cpp_builtins, s390_register_target_pragmas): Add
32073 prototypes.
32074 * config/s390/s390.c (s390-builtins.h, s390-builtins.def):
32075 Include.
32076 (flags_builtin, flags_overloaded_builtin_var, s390_builtin_types)
32077 (s390_builtin_fn_types, s390_builtin_decls, code_for_builtin): New
32078 variable definitions.
32079 (s390_const_operand_ok): New function.
32080 (s390_expand_builtin): Rewrite.
32081 (s390_init_builtins): New function.
32082 (s390_handle_vectorbool_attribute): New function.
32083 (s390_attribute_table): Add s390_vector_bool attribute.
32084 (s390_match_ccmode_set): Handle new cc modes CCVH, CCVHU.
32085 (s390_branch_condition_mask): Generate masks for new modes.
32086 (s390_expand_vec_compare_cc): New function.
32087 (s390_mangle_type): Add mangling for vector bool types.
32088 (enum s390_builtin): Remove.
32089 (s390_atomic_assign_expand_fenv): Rename constants for sfpc and
32090 efpc builtins.
32091 * config/s390/s390.h (TARGET_CPU_CPP_BUILTINS): Call
32092 s390_cpu_cpp_builtins.
32093 (REGISTER_TARGET_PRAGMAS): New macro.
32094 * config/s390/s390.md: Define more UNSPEC_VEC_* constants.
32095 (insn_cmp mode attribute): Add new CC modes.
32096 (s390_sfpc, s390_efpc): Rename patterns to sfpc and efpc.
32097 (lcbb): New pattern definition.
32098 * config/s390/s390intrin.h: Include vecintrin.h.
32099 * config/s390/t-s390: New file.
32100 * config/s390/vecintrin.h: New file.
32101 * config/s390/vector.md: Include vx-builtins.md.
32102 * config/s390/vx-builtins.md: New file.S/390 zvector builtin
32103 support.
32104
32105 2015-05-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
32106
32107 * config/s390/s390-modes.def: Add new modes CCVEQ, CCVFH, and
32108 CCVFHE.
32109 * config/s390/s390.c (s390_match_ccmode_set): Handle new modes.
32110 (s390_select_ccmode): Likewise.
32111 (s390_canonicalize_comparison): Swap operands if necessary.
32112 (s390_expand_vec_compare_scalar): Expand DFmode compare using
32113 single element vector instructions.
32114 (s390_emit_compare): Call s390_expand_vec_compare_scalar.
32115 (s390_branch_condition_mask): Generate CC masks for the new modes.
32116 * config/s390/s390.md (v0, vf, vd): New mode attributes.
32117 (VFCMP, asm_fcmp, insn_cmp): New mode iterator and attributes.
32118 (*vec_cmp<insn_cmp>df_cconly, *fixuns_truncdfdi2_z13)
32119 (*fix_trunc<BFP:mode><GPR:mode>2_bfp, *floatunsdidf2_z13)
32120 (*floatuns<GPR:mode><FP:mode>2, *extendsfdf2_z13)
32121 (*extend<DSF:mode><BFP:mode>2): New insn definition.
32122 (fix_trunc<BFP:mode><GPR:mode>2_bfp, loatuns<GPR:mode><FP:mode>2)
32123 (extend<DSF:mode><BFP:mode>2): Turn into expander.
32124 (floatdi<mode>2, truncdfsf2, add<mode>3, sub<mode>3, mul<mode>3)
32125 (div<mode>3, *neg<mode>2, *abs<mode>2, *negabs<mode>2)
32126 (sqrt<mode>2): Add vector instruction.
32127
32128 2015-05-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
32129
32130 * config/s390/constraints.md (j00, jm1, jxx, jyy, v): New
32131 constraints.
32132 * config/s390/predicates.md (const0_operand, constm1_operand)
32133 (constable_operand): Accept vector operands.
32134 * config/s390/s390-modes.def: Add supported vector modes.
32135 * config/s390/s390-protos.h (s390_cannot_change_mode_class)
32136 (s390_function_arg_vector, s390_contiguous_bitmask_vector_p)
32137 (s390_bytemask_vector_p, s390_expand_vec_strlen)
32138 (s390_expand_vec_compare, s390_expand_vcond)
32139 (s390_expand_vec_init): Add prototypes.
32140 * config/s390/s390.c (VEC_ARG_NUM_REG): New macro.
32141 (s390_vector_mode_supported_p): New function.
32142 (s390_contiguous_bitmask_p): Mask out the irrelevant bits.
32143 (s390_contiguous_bitmask_vector_p): New function.
32144 (s390_bytemask_vector_p): New function.
32145 (s390_split_ok_p): Vector regs don't work either.
32146 (regclass_map): Add VEC_REGS.
32147 (s390_legitimate_constant_p): Handle vector constants.
32148 (s390_cannot_force_const_mem): Handle CONST_VECTOR.
32149 (legitimate_reload_vector_constant_p): New function.
32150 (s390_preferred_reload_class): Handle CONST_VECTOR.
32151 (s390_reload_symref_address): Likewise.
32152 (s390_secondary_reload): Vector memory instructions only support
32153 short displacements. Rename reload*_nonoffmem* to reload*_la*.
32154 (s390_emit_ccraw_jump): New function.
32155 (s390_expand_vec_strlen): New function.
32156 (s390_expand_vec_compare): New function.
32157 (s390_expand_vcond): New function.
32158 (s390_expand_vec_init): New function.
32159 (s390_dwarf_frame_reg_mode): New function.
32160 (print_operand): Handle addresses with 'O' and 'R' constraints.
32161 (NR_C_MODES, constant_modes): Add vector modes.
32162 (s390_output_pool_entry): Handle vector constants.
32163 (s390_hard_regno_mode_ok): Handle vector registers.
32164 (s390_class_max_nregs): Likewise.
32165 (s390_cannot_change_mode_class): New function.
32166 (s390_invalid_arg_for_unprototyped_fn): New function.
32167 (s390_function_arg_vector): New function.
32168 (s390_function_arg_float): Remove size variable.
32169 (s390_pass_by_reference): Handle vector arguments.
32170 (s390_function_arg_advance): Likewise.
32171 (s390_function_arg): Likewise.
32172 (s390_return_in_memory): Vector values are returned in a VR if
32173 possible.
32174 (s390_function_and_libcall_value): Handle vector arguments.
32175 (s390_gimplify_va_arg): Likewise.
32176 (s390_call_saved_register_used): Consider the arguments named.
32177 (s390_conditional_register_usage): Disable v16-v31 for non-vec
32178 targets.
32179 (s390_preferred_simd_mode): New function.
32180 (s390_support_vector_misalignment): New function.
32181 (s390_vector_alignment): New function.
32182 (TARGET_STRICT_ARGUMENT_NAMING, TARGET_DWARF_FRAME_REG_MODE)
32183 (TARGET_VECTOR_MODE_SUPPORTED_P)
32184 (TARGET_INVALID_ARG_FOR_UNPROTOTYPED_FN)
32185 (TARGET_VECTORIZE_PREFERRED_SIMD_MODE)
32186 (TARGET_VECTORIZE_SUPPORT_VECTOR_MISALIGNMENT)
32187 (TARGET_VECTOR_ALIGNMENT): Define target macro.
32188 * config/s390/s390.h (FUNCTION_ARG_PADDING): Define macro.
32189 (FIRST_PSEUDO_REGISTER): Increase value.
32190 (VECTOR_NOFP_REGNO_P, VECTOR_REGNO_P, VECTOR_NOFP_REG_P)
32191 (VECTOR_REG_P): Define macros.
32192 (FIXED_REGISTERS, CALL_USED_REGISTERS)
32193 (CALL_REALLY_USED_REGISTERS, REG_ALLOC_ORDER)
32194 (HARD_REGNO_CALL_PART_CLOBBERED, REG_CLASS_NAMES)
32195 (FUNCTION_ARG_REGNO_P, FUNCTION_VALUE_REGNO_P, REGISTER_NAMES):
32196 Add vector registers.
32197 (CANNOT_CHANGE_MODE_CLASS): Call C function.
32198 (enum reg_class): Add VEC_REGS, ADDR_VEC_REGS, GENERAL_VEC_REGS.
32199 (SECONDARY_MEMORY_NEEDED): Allow SF<->SI mode moves without
32200 memory.
32201 (DBX_REGISTER_NUMBER, FIRST_VEC_ARG_REGNO, LAST_VEC_ARG_REGNO)
32202 (SHORT_DISP_IN_RANGE, VECTOR_STORE_FLAG_VALUE): Define macro.
32203 * config/s390/s390.md (UNSPEC_VEC_*): New constants.
32204 (VR*_REGNUM): New constants.
32205 (ALL): New mode iterator.
32206 (INTALL): Remove mode iterator.
32207 Include vector.md.
32208 (movti): Implement TImode moves for VRs.
32209 Disable TImode splitter for VR targets.
32210 Implement splitting TImode GPR<->VR moves.
32211 (reload*_tomem_z10, reload*_toreg_z10): Replace INTALL with ALL.
32212 (reload<mode>_nonoffmem_in, reload<mode>_nonoffmem_out): Rename to
32213 reload<mode>_la_in, reload<mode>_la_out.
32214 (*movdi_64, *movsi_zarch, *movhi, *movqi, *mov<mode>_64dfp)
32215 (*mov<mode>_64, *mov<mode>_31): Add vector instructions.
32216 (TD/TF mode splitter): Enable for GPRs only (formerly !FP).
32217 (mov<mode> SF SD): Prefer lder, lde for loading.
32218 Add lrl and strl instructions.
32219 Add vector instructions.
32220 (strlen<mode>): Rename old strlen<mode> to strlen_srst<mode>.
32221 Call s390_expand_vec_strlen on z13.
32222 (*cc_to_int): Change predicate to nonimmediate_operand.
32223 (addti3): Rename to *addti3. New expander.
32224 (subti3): Rename to *subti3. New expander.
32225 * config/s390/vector.md: New file.
32226
32227 2015-05-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
32228
32229 * common/config/s390/s390-common.c (processor_flags_table): Add
32230 z13.
32231 * config.gcc: Add z13.
32232 * config/s390/s390-opts.h (enum processor_type): Add
32233 PROCESSOR_2964_Z13.
32234 * config/s390/s390.c (s390_adjust_priority): Check for
32235 PROCESSOR_2964_Z13.
32236 (s390_reorg): Likewise.
32237 (s390_sched_reorder): Likewise.
32238 (s390_sched_variable_issue): Likewise.
32239 (s390_loop_unroll_adjust): Likewise.
32240 (s390_option_override): Likewise. Default to -mvx when available.
32241 * config/s390/s390.h (enum processor_flags): Add PF_Z13 and PF_VX.
32242 (TARGET_CPU_Z13, TARGET_CPU_VX, TARGET_Z13, TARGET_VX)
32243 (TARGET_VX_ABI): Define macros.
32244 macros.
32245 (TARGET_DEFAULT): Add MASK_OPT_VX.
32246 * config/s390/s390.md ("cpu" attribute): Add z13.
32247 ("cpu_facility" attribute): Add vec.
32248 * config/s390/s390.opt (processor_type): Add z13.
32249 (mvx): New options.
32250 * doc/invoke.texi: Add z13 option for -march.
32251
32252 2015-05-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
32253
32254 * config/s390/predicates.md (shift_count_or_setmem_operand): Add
32255 mode check to make sure that only scalar integer values are
32256 accepted.
32257
32258 2015-05-19 Jan Hubicka <hubicka@ucw.cz>
32259
32260 * tree.c (verify_type_variant): Fix #undef.
32261 (gimple_canonical_types_compatible_p): Move here from lto.c
32262 (verify_type): Verify TYPE_CANONICAL compatibility.
32263 * tree.h (gimple_canonical_types_compatible_p): Declare.
32264
32265 2015-05-19 Jakub Jelinek <jakub@redhat.com>
32266
32267 PR middle-end/66199
32268 * tree.h (OMP_TEAMS_COMBINED): Define.
32269 * gimplify.c (enum gimplify_omp_var_data): Add
32270 GOVD_LINEAR_LASTPRIVATE_NO_OUTER.
32271 (enum omp_region_type): Add ORT_COMBINED_TEAMS.
32272 (omp_notice_variable): Accept both ORT_TEAMS
32273 and ORT_COMBINED_TEAMS. Don't recurse if
32274 GOVD_LINEAR_LASTPRIVATE_NO_OUTER is set and either
32275 GOVD_LINEAR is set, or GOVD_LASTPRIVATE without
32276 GOVD_FIRSTPRIVATE.
32277 (omp_no_lastprivate): New function.
32278 (gimplify_scan_omp_clauses): For OMP_CLAUSE_LASTPRIVATE
32279 and OMP_CLAUSE_LINEAR, if omp_no_lastprivate, don't
32280 notice_outer and set appropriate bits, otherwise make
32281 sure default(none) combined constructs won't complain.
32282 (gimplify_adjust_omp_clauses): Remove OMP_CLAUSE_LINEAR
32283 outer special casing, for OMP_CLAUSE_LASTPRIVATE if
32284 omp_no_lastprivate either remove the clause or turn it
32285 into OMP_CLAUSE_PRIVATE.
32286 (gimplify_omp_for): Fix up handling of implicit
32287 lastprivate or linear iterators.
32288 (gimplify_omp_workshare): For OMP_TEAMS_COMBINED use
32289 ORT_COMBINED_TEAMS.
32290 * omp-low.c (lower_omp_for_lastprivate): For combined
32291 for simd use fd.loop.n2 from the for rather than simd.
32292
32293 2015-05-19 Richard Sandiford <richard.sandiford@arm.com>
32294
32295 * config/cris/cris.c (cris_expand_prologue): Use gen_raw_REG
32296 instead of gen_rtx_raw_REG.
32297 (cris_expand_epilogue): Likewise.
32298 * config/microblaze/microblaze.c (microblaze_classify_address):
32299 Likewise.
32300 * config/sparc/sparc.md: Likewise.
32301
32302 2015-05-19 Uros Bizjak <ubizjak@gmail.com>
32303
32304 * config/alpha/alpha.c (alpha_legitimize_reload_address)
32305 (alpha_preferred_reload_class, alpha_legitimate_constant_p): Use
32306 CONST_INT_P, CONST_SCALAR_INT_P and CONST_DOUBLE_P predicates.
32307 (alpha_split_reload_pair) <case CONST_INT, case CONST_WIDE_INT>:
32308 Use CASE_CONST_SCALAR_INT.
32309 (print_operand) <case 'M'>: Use mode_width_operand to check the
32310 value of the constant.
32311 * config/alpha/alpha.md (movti): Use CONST_SCALAR_INT_P predicate.
32312 * config/alpha/predicates.md (input_operand): Use general_operand
32313 instead of match_code as operand check.
32314 (symbolic_operand): Use match_code with subexpression digits.
32315 * config/alpha/constraints.md (Q): Ditto.
32316
32317 2015-05-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
32318
32319 * optabs.c (expand_vec_perm): Don't re-use SEL as target operand.
32320
32321 2015-05-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
32322
32323 * config/s390/s390.c (s390_secondary_reload): Fix check for
32324 load/store relative.
32325
32326 2015-05-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
32327
32328 * recog.h: Increase MAX_RECOG_ALTERNATIVES. Change type of
32329 alternative_mask to uint64_t.
32330
32331 2015-05-19 Jakub Jelinek <jakub@redhat.com>
32332
32333 PR tree-optimization/66187
32334 * match.pd ((bit_and (plus/minus (convert @0) (convert @1)) mask)):
32335 Pass TYPE_SIGN to tree_int_cst_min_precision. If
32336 !TYPE_OVERFLOW_WRAPS, ensure @4 is non-negative.
32337
32338 2015-05-19 David Malcolm <dmalcolm@redhat.com>
32339
32340 * diagnostic.c (diagnostic_report_current_module): Strengthen
32341 local "new_map" from const line_map * to
32342 const line_map_ordinary *.
32343 * genmatch.c (error_cb): Likewise for local "map".
32344 (output_line_directive): Likewise for local "map".
32345 * input.c (expand_location_1): Likewise for local "map".
32346 Pass NULL rather than &map to
32347 linemap_unwind_to_first_non_reserved_loc, since the value is never
32348 read from there, and the value written back not read from here.
32349 (is_location_from_builtin_token): Strengthen local "map" from
32350 const line_map * to const line_map_ordinary *.
32351 (dump_location_info): Strengthen locals "map" from
32352 line_map *, one to const line_map_ordinary *, the other
32353 to const line_map_macro *.
32354 * tree-diagnostic.c (loc_map_pair): Strengthen field "map" from
32355 const line_map * to const line_map_macro *.
32356 (maybe_unwind_expanded_macro_loc): Add a call to
32357 linemap_check_macro when writing to the "map" field of the
32358 loc_map_pair.
32359 Introduce local const line_map_ordinary * "ord_map", using it in
32360 place of "map" in the part of the function where we know we have
32361 an ordinary map. Strengthen local "m" from const line_map * to
32362 const line_map_ordinary *.
32363
32364 2015-05-19 Nick Clifton <nickc@redhat.com>
32365
32366 PR target/66156
32367 * config/msp430/msp430.md (zero_extendhisi2): Add support for
32368 separate source and destination registers.
32369
32370 2015-05-19 Richard Biener <rguenther@suse.de>
32371
32372 PR tree-optimization/66165
32373 * tree-vect-slp.c (vect_supported_load_permutation_p): Add guard
32374 for no load permutation.
32375
32376 PR tree-optimization/66185
32377 * tree-vect-slp.c (vect_build_slp_tree): Properly roll back
32378 when building the SLP node from scalars.
32379
32380 2015-05-19 Eric Botcazou <ebotcazou@adacore.com>
32381 Tristan Gingold <gingold@adacore.com>
32382
32383 * insn-notes.def (UPDATE_SJLJ_CONTEXT): New note.
32384 * builtins.c (expand_builtin_update_setjmp_buf): Make global.
32385 (expand_stack_restore): Call record_new_stack_level.
32386 (expand_stack_save): Do not call do_pending_stack_adjust.
32387 * builtins.h (expand_builtin_update_setjmp_buf): Declare.
32388 * calls.c (expand_call): Call record_new_stack_level for alloca.
32389 * except.c (sjlj_mark_call_sites): Expand builtin_update_setjmp_buf
32390 wherever a NOTE_INSN_UPDATE_SJLJ_CONTEXT note is present.
32391 (update_sjlj_context): New global function.
32392 * except.h (update_sjlj_context): Declare.
32393 * explow.c (record_new_stack_level): New global function.
32394 (allocate_dynamic_stack_space): Call record_new_stack_level.
32395 * explow.h (record_new_stack_level): Declare.
32396 * final.c (final_scan_insn): Deal with NOTE_INSN_UPDATE_SJLJ_CONTEXT.
32397 * cfgrtl.c (duplicate_insn_chain): Likewise.
32398
32399 2015-05-19 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
32400
32401 * calls.c: Always define STACK_GROWS_DOWNWARD as 0 or 1.
32402 (mem_overlaps_already_clobbered_arg_p): Rewrite ifdef
32403 STACK_GROWS_DOWNWARD as normal if.
32404 (expand_call): Likewise.
32405
32406 2015-05-19 Oleg Endo <olegendo@gcc.gnu.org>
32407
32408 PR target/54236
32409 * config/sh/sh.md (*round_int_even): New insn_and_split and
32410 accompanying new unnamed split.
32411
32412 2015-05-19 Richard Sandiford <richard.sandiford@arm.com>
32413
32414 * bitmap.c (bitmap_set_range): Handle count==1 specially.
32415 (bitmap_clear_range): Likewise.
32416 * cfgcleanup.c (mark_effect): Use bitmap_clear_range and
32417 bitmap_set_range unconditionally.
32418 * df-problems.c (df_simulate_one_insn_forwards): Likewise.
32419 * df-scan.c (df_mark_reg): Likewise.
32420 * haifa-sched.c (setup_ref_regs): Likewise.
32421 * sched-rgn.c (update_live_1): Likewise.
32422
32423 2015-05-19 Richard Sandiford <richard.sandiford@arm.com>
32424
32425 * regs.h (END_HARD_REGNO): Delete.
32426 (END_REGNO): Move to...
32427 * rtl.h: ...here.
32428 * bt-load.c (note_btr_set): Use END_REGNO instead of END_HARD_REGNO.
32429 * caller-save.c (mark_set_regs): Likewise.
32430 * combine.c (move_deaths, distribute_notes): Likewise.
32431 * cse.c (invalidate, invalidate_for_call): Likewise.
32432 * df-scan.c (df_ref_record): Likewise.
32433 * postreload-gcse.c (reg_changed_after_insn_p): Likewise.
32434 (record_last_reg_set_info): Likewise.
32435 * reg-stack.c (convert_regs_exit): Likewise.
32436 * reload.c (reg_overlap_mentioned_for_reload_p): Likewise.
32437 * resource.c (update_live_status): Likewise.
32438 * rtlanal.c (find_reg_fusage, find_regno_fusage): Likewise.
32439
32440 2015-05-19 Richard Sandiford <richard.sandiford@arm.com>
32441
32442 * rtl.h (reg_info): Add an nregs field.
32443 (REG_NREGS): Use it.
32444 (SET_REGNO_RAW): Delete.
32445 (set_regno_raw): New function.
32446 * regs.h (END_HARD_REGNO): Make equivalent to END_REGNO.
32447 (END_REGNO): Redefine in terms of REG_NREGS.
32448 * read-rtl.c (read_rtx_code): Call set_regno_raw instead of
32449 SET_REGNO_RAW.
32450 * emit-rtl.c (set_mode_and_regno): Likewise.
32451 * df-scan.c (df_ref_change_reg_with_loc): Use set_mode_and_regno
32452 instead of SET_REGNO_RAW.
32453
32454 2015-05-19 Richard Sandiford <richard.sandiford@arm.com>
32455
32456 * rtl.h (PUT_MODE_RAW): New macro.
32457 (PUT_REG_NOTE_KIND): Use it.
32458 (set_mode_and_regno): Declare.
32459 (gen_raw_REG): Change regno to "unsigned int".
32460 (gen_rtx_REG): Change "unsigned" to "unsigned int".
32461 (PUT_MODE): Forward to PUT_MODE_RAW for generators, otherwise
32462 use set_mode_and_regno to change the mode of registers.
32463 * gengenrtl.c (gendef): Use PUT_MODE_RAW.
32464 * emit-rtl.c (set_mode_and_regno): New function.
32465 (gen_raw_REG): Change regno to unsigned int. Use set_mode_and_regno.
32466 * caller-save.c (reg_save_code): Use set_mode_and_regno.
32467 * expr.c (init_expr_target): Likewise.
32468 * ira.c (setup_prohibited_mode_move_regs): Likewise.
32469 * postreload.c (reload_cse_simplify_operands): Likewise.
32470
32471 2015-05-19 Richard Sandiford <richard.sandiford@arm.com>
32472
32473 * caller-save.c (init_caller_save): Use word_mode and
32474 FIRST_PSEUDO_REGISTER when creating temporary rtxes.
32475 * expr.c (init_expr_target): Likewise.
32476 * ira.c (setup_prohibited_mode_move_regs): Likewise.
32477 * postreload.c (reload_cse_regs_1): Likewise.
32478
32479 2015-05-19 Richard Sandiford <richard.sandiford@arm.com>
32480
32481 * rtl.def (REG): Change format to "r".
32482 * rtl.h (rtunion): Remove rt_reg.
32483 (reg_info): New structure.
32484 (rtx_def): Add reg field to main union.
32485 (X0REGATTR): Delete.
32486 (REG_CHECK): New macro.
32487 (SET_REGNO_RAW, rhs_regno, REG_ATTRS): Use it.
32488 * rtl.c (rtx_format): Document "r".
32489 (rtx_code_size): Handle REG specially.
32490 * gengenrtl.c (special_format): Return true for formats
32491 that include 'r'.
32492 * gengtype.c (adjust_field_rtx_def): Handle 'r' fields.
32493 Deal with REG_ATTRS after the field loop.
32494 * emit-rtl.c (gen_raw_REG): Call rtx_alloc_stat directly.
32495 * expmed.c (init_expmed): Call gen_raw_REG instead of
32496 gen_rtx_raw_REG.
32497 * expr.c (init_expr_target): Likewise.
32498 * regcprop.c (maybe_mode_change): Likewise.
32499 * varasm.c (make_decl_rtl): Likewise.
32500 * final.c (leaf_renumber_regs_insn): Return early after
32501 handling REGs.
32502 * genemit.c (gen_exp): Handle 'r' fields.
32503 * genpeep.c (match_rtx): Likewise.
32504 * gensupport.c (subst_pattern_match): Likewise.
32505 (get_alternatives_number, collect_insn_data, alter_predicate_for_insn)
32506 (alter_constraints, subst_dup): Likewise.
32507 * read-rtl.c (read_rtx_code): Likewise.
32508 * print-rtl.c (print_rtx): Likewise.
32509 * genrecog.c (find_operand, find_matching_operand): Likewise.
32510 (validate_pattern, match_pattern_2): Likewise.
32511 (parameter::UINT, rtx_test::REGNO_FIELD): New enum values.
32512 (rtx_test::regno_field): New function.
32513 (operator ==, safe_to_hoist_p, transition_parameter_type)
32514 (parameter_type_string, print_parameter_value)
32515 (print_nonbool_test, print_test): Handle new enum values.
32516 * cselib.c (rtx_equal_for_cselib_1): Handle REG specially.
32517 * lra-constraints.c (operands_match_p): Likewise.
32518
32519 2015-05-19 Richard Sandiford <richard.sandiford@arm.com>
32520
32521 * df.h (df_ref_change_reg_with_loc): Remove old_regno parameter.
32522 Change type of new_regno to unsigned int.
32523 * df-scan.c (df_ref_change_reg_with_loc_1): Change type of
32524 new_regno to unsigned int.
32525 (df_ref_change_reg_with_loc): Remove old_regno parameter.
32526 Change type of new_regno to unsigned int. Use SET_REGNO_RAW.
32527 * rtl.h (SET_REGNO): Update call to df_ref_change_reg_with_loc.
32528 (SET_REGNO_RAW): Add space after ",".
32529
32530 2015-05-19 Richard Sandiford <richard.sandiford@arm.com>
32531
32532 * rtl.h (REG_NREGS): New macro
32533 * alias.c (record_set): Use it.
32534 * cfgcleanup.c (mark_effect): Likewise.
32535 * combine.c (likely_spilled_retval_1): Likewise.
32536 (likely_spilled_retval_p, can_change_dest_mode): Likewise.
32537 (move_deaths, distribute_notes): Likewise.
32538 * cselib.c (cselib_record_set): Likewise.
32539 * df-problems.c (df_simulate_one_insn_forwards): Likewise.
32540 * df-scan.c (df_mark_reg): Likewise.
32541 * dse.c (look_for_hardregs): Likewise.
32542 * dwarf2out.c (reg_loc_descriptor): Likewise.
32543 (multiple_reg_loc_descriptor): Likewise.
32544 * expr.c (write_complex_part, read_complex_part): Likewise.
32545 (emit_move_complex): Likewise.
32546 * haifa-sched.c (setup_ref_regs): Likewise.
32547 * ira-lives.c (mark_hard_reg_live): Likewise.
32548 * lra.c (lra_set_insn_recog_data): Likewise.
32549 * mode-switching.c (create_pre_exit): Likewise.
32550 * postreload.c (reload_combine_recognize_const_pattern): Likewise.
32551 (reload_combine_recognize_pattern): Likewise.
32552 (reload_combine_note_use, move2add_record_mode): Likewise.
32553 (reload_cse_move2add): Likewise.
32554 * reg-stack.c (subst_stack_regs_pat): Likewise.
32555 * regcprop.c (kill_value, copy_value): Likewise.
32556 (copyprop_hardreg_forward_1): Likewise.
32557 * regrename.c (verify_reg_in_set, scan_rtx_reg): Likewise.
32558 (build_def_use): Likewise.
32559 * sched-deps.c (mark_insn_reg_birth, mark_reg_death): Likewise.
32560 (deps_analyze_insn): Likewise.
32561 * sched-rgn.c (check_live_1, update_live_1): Likewise.
32562 * sel-sched.c (count_occurrences_equiv): Likewise.
32563 * valtrack.c (dead_debug_insert_temp): Likewise.
32564
32565 2015-05-19 Richard Sandiford <richard.sandiford@arm.com>
32566
32567 * cfgcleanup.c (mentions_nonequal_regs): Use END_REGNO.
32568 * dse.c (note_add_store): Likewise.
32569 * ira-lives.c (mark_hard_reg_dead): Likewise.
32570 * loop-invariant.c (mark_reg_store): Likewise.
32571 (mark_reg_death): Likewise.
32572 * postreload.c (reload_combine): Likewise.
32573 (reload_combine_note_store): Likewise.
32574 (reload_combine_note_use): Likewise.
32575 * recog.c (peep2_reg_dead_p): Likewise.
32576
32577 2015-05-19 Alan Modra <amodra@gmail.com>
32578
32579 * config/rs6000/predicates.md (gpc_reg_operand): Don't allow all
32580 hard registers numbered greater or equal to ARG_POINTER_REGNUM.
32581 (reg_or_neg_short_operand, fix_trunc_dest_operand): Delete
32582 unused predicates.
32583 * config/rs6000/altivec.md (save_vregs_*, restore_vregs_*):
32584 Use altivec_register_operand. Make insn predicate TARGET_ALTIVEC.
32585 * config/rs6000/rs6000.md (extzvdi_internal2): Use cc_reg_operand.
32586 * config/rs6000/vsx.md (vsx_float<VSi><mode>2): Expand comment.
32587
32588 2015-05-19 Sameera Deshpande <Sameera.Deshpande@imgtec.com>
32589
32590 * config/mips/mips.md (JOIN_MODE): New mode iterator.
32591 (join2_load_Store<JOIN_MODE:mode>): New pattern.
32592 (join2_loadhi): Likewise.
32593 (define_peehole2): Add peephole2 patterns to join 2 HI/SI/SF/DF-mode
32594 load-load and store-stores.
32595 * config/mips/mips.opt (mload-store-pairs): New option.
32596 (TARGET_LOAD_STORE_PAIRS): New macro.
32597 * config/mips/mips.h (ENABLE_LD_ST_PAIRS): Likewise.
32598 * config/mips/mips-protos.h (mips_load_store_bonding_p): New prototype.
32599 * config/mips/mips.c (mips_load_store_bonding_p): New function.
32600
32601 2015-05-19 Mikhail Maltsev <maltsevm@gmail.com>
32602
32603 * bb-reorder.c (fix_up_fall_thru_edges): Use std::swap instead of
32604 explicit swaps.
32605 * dojump.c (do_compare_rtx_and_jump): Likewise.
32606 * expmed.c (emit_store_flag_1): Likewise.
32607 * fibonacci_heap.h (fibonacci_heap::union_with): Likewise.
32608 * final.c (sprint_ul): Use std::reverse for reversing a string.
32609 * fold-const.c (extract_muldiv_1): Use std::swap.
32610 * genmodes.c (emit_mode_int_n): Likewise.
32611 * ifcvt.c (dead_or_predicable): Likewise.
32612 * ira-build.c (ira_merge_live_ranges): Likewise.
32613 (swap_allocno_copy_ends_if_necessary): Likewise.
32614 * ira.c (ira_setup_alts): Likewise.
32615 * loop-iv.c (iv_analyze_expr): Likewise.
32616 (implies_p): Likewise.
32617 (canon_condition): Likewise.
32618 * lra-constraints.c (swap_operands): Likewise.
32619 * lra-lives.c (lra_merge_live_ranges): Likewise.
32620 * omega.c (swap): Remove.
32621 (bswap): Remove.
32622 (omega_unprotect_1): Use std::swap.
32623 (omega_solve_geq): Likewise.
32624 * optabs.c (expand_binop_directly): Likewise.
32625 (expand_binop): Likewise.
32626 (emit_conditional_move): Likewise.
32627 (emit_conditional_add): Likewise.
32628 * postreload.c (reload_cse_simplify_operands): Likewise.
32629 * reg-stack.c (emit_swap_insn): Likewise.
32630 (swap_to_top): Likewise.
32631 (compare_for_stack_reg): Likewise.
32632 (subst_asm_stack_regs): Likewise.
32633 * reload.c (find_reloads): Likewise.
32634 * reload1.c (gen_reload_chain_without_interm_reg_p): Likewise.
32635 * sel-sched.c (invoke_reorder_hooks): Likewise.
32636 (create_block_for_bookkeeping): Likewise.
32637 * tree-data-ref.c (lambda_matrix_row_exchange): Remove.
32638 (lambda_matrix_right_hermite): Use std::swap.
32639 * tree-ssa-coalesce.c (sort_coalesce_list): Likewise.
32640 * tree-ssa-ifcombine.c (ifcombine_ifandif): Likewise.
32641 * tree-ssa-loop-ivopts.c (iv_ca_delta_reverse): Likewise.
32642 * tree-ssa-math-opts.c (is_widening_mult_p): Likewise.
32643 * tree-ssa-phiopt.c (hoist_adjacent_loads): Likewise.
32644 * tree-ssa-reassoc.c (linearize_expr_tree): Likewise.
32645 * tree-ssa-threadedge.c (simplify_control_stmt_condition): Likewise.
32646 * tree-vrp.c (compare_ranges): Likewise.
32647 * var-tracking.c (add_with_sets): Likewise.
32648 (vt_find_locations): Likewise.
32649
32650 2015-05-18 Andreas Tobler <andreast@gcc.gnu.org>
32651
32652 * config/freebsd-spec.h (FBSD_STARTFILE_SPEC): Add the bits to build
32653 pie executables.
32654 (FBSD_ENDFILE_SPEC): Likewise.
32655 * config/i386/freebsd.h (STARTFILE_SPEC): Remove and use the one from
32656 config/freebsd-spec.h.
32657 (ENDFILE_SPEC): Likewise.
32658
32659 2015-05-18 Uros Bizjak <ubizjak@gmail.com>
32660 Richard Henderson <rth@redhat.com>
32661
32662 PR target/57032
32663 * config/alpha/constraints.md (Q): Rewrite as define_memory_constraint.
32664 Check for a memory location that is not a reference (using an AND)
32665 to an unaligned location here.
32666 * config/alpha/predicates.md (normal_memory_operand): Remove.
32667
32668 2015-05-18 Alex Velenko <Alex.Velenko@arm.com>
32669
32670 * config/arm/arm.md (andsi_not_shiftsi_si_scc): New pattern.
32671 (andsi_not_shiftsi_si_scc_no_reuse): New pattern.
32672
32673 2015-05-18 Robert Suchanek <robert.suchanek@imgtec.com>
32674
32675 * config/mips/mips.c (micromips_globals): New variable.
32676 (mips_set_compression_mode): Save and reinitialize target-dependent
32677 state for microMIPS.
32678
32679 2015-05-18 Martin Liska <mliska@suse.cz>
32680
32681 * dbgcnt.def: Add new counter.
32682 * ipa-icf.c (sem_item_optimizer::merge_classes): Use the counter.
32683
32684 2015-05-18 Martin Liska <mliska@suse.cz>
32685
32686 * dbgcnt.def: Sort counters.
32687 * opts.c (common_handle_option): Do not compile if
32688 -fdbg-cnt-list is enabled.
32689
32690 2015-05-18 Tom de Vries <tom@codesourcery.com>
32691
32692 * gimplify.c (gimplify_modify_expr): Remove do_deref handling.
32693 (gimplify_va_arg_expr): Remove do_deref handling. Remove adding of
32694 address operator to va_list operand.
32695 * tree-stdarg.c (expand_ifn_va_arg_1): Do deref of va_list operand
32696 unconditionally.
32697 * config/i386/i386.c (ix86_gimplify_va_arg): Remove deref on va_list
32698 operand.
32699 * config/rs6000/rs6000.c (rs6000_gimplify_va_arg): Same.
32700 * config/s390/s390.c (s390_gimplify_va_arg): Same.
32701 * config/spu/spu.c (spu_gimplify_va_arg_expr): Same.
32702
32703 2015-05-18 Tom de Vries <tom@codesourcery.com>
32704
32705 * tree-ssa-tail-merge.c: Fix whitespace.
32706
32707 2015-05-17 Jim Wilson <jim.wilson@linaro.org>
32708
32709 * doc/invoke.texi (ARM Options, mtune): Add generic-armv7-a,
32710 cortex-a17, and cortex-a17.cortex-a7.
32711
32712 2015-05-17 Oleg Endo <olegendo@gcc.gnu.org>
32713
32714 PR target/54236
32715 * config/sh/sh.md (*addc_2r_t): Use ashift instead of mult.
32716
32717 2015-05-17 Uros Bizjak <ubizjak@gmail.com>
32718
32719 PR target/66174
32720 * config/i386/i386.c (expand_vec_perm_blend): Enable HImode and
32721 QImode inner modes for TARGET_AVX512BW. Force mask operand
32722 to a register for AVX512F modes.
32723
32724 2015-05-16 Jan Hubicka <hubicka@ucw.cz>
32725
32726 * toplev.c (emit_debug_global_declarations): Do not output debug info
32727 when doing slim LTO objects.
32728
32729 2015-05-16 Jan Hubicka <hubicka@ucw.cz>
32730
32731 * ipa-utils.h (warn_types_mismatch, odr_or_derived_type_p,
32732 odr_types_equivalent_p): Declare.
32733 (odr_type_p): Use gcc_checking_assert.
32734 (type_in_anonymous_namespace_p) Declare.
32735 (type_with_linkage_p): Declare.
32736 * common.opt (Wlto-type-mismatch): New warning.
32737 * ipa-devirt.c (compound_type_base): New function.
32738 (odr_or_derived_type_p): New function.
32739 (odr_types_equivalent_p): New function.
32740 (add_type_duplicate): Simplify.
32741 (type_with_linkage_p): Add hack to prevent false positives on C types
32742 (type_in_anonymous_namespace_p): Likewise.
32743 * tree.c (need_assembler_name_p): Use type_with_linkage.
32744 * tree.h (type_in_anonymous_namespace_p): Remove.
32745 * doc/invoke.texi (-Wlto-type-mismatch): Document
32746
32747 2015-05-16 Jan Hubicka <hubicka@ucw.cz>
32748
32749 * tree.c (verify_type_variant): Verify tree_base and type_common flags.
32750 (verify_type): Verify STRING_FLAG.
32751
32752 2015-05-16 Manuel López-Ibáñez <manu@gcc.gnu.org>
32753
32754 PR fortran/44054
32755 * tree-pretty-print.c (percent_K_format): Replace locus pointer
32756 with accessor function.
32757 * tree-diagnostic.c (diagnostic_report_current_function): Use
32758 diagnostic_location function.
32759 (maybe_unwind_expanded_macro_loc): Likewise.
32760 (virt_loc_aware_diagnostic_finalizer): Likewise.
32761 (default_tree_printer): Replace locus pointer with accessor function.
32762 * diagnostic.c (diagnostic_initialize): Initialize caret_chars array.
32763 (diagnostic_set_info_translated): Initialize second location.
32764 (diagnostic_build_prefix): Use CARET_LINE_MARGIN.
32765 (diagnostic_show_locus): Handle two locations. Call
32766 diagnostic_print_caret_line.
32767 (diagnostic_print_caret_line): New.
32768 (default_diagnostic_starter): Use diagnostic_location function.
32769 (diagnostic_report_diagnostic): Use diagnostic_location function.
32770 (verbatim): Do not set text.locus.
32771 * diagnostic.h (struct diagnostic_info): Remove location field.
32772 (struct diagnostic_context): Make caret_chars an array of two.
32773 (diagnostic_location): New inline.
32774 (diagnostic_expand_location): Handle two locations.
32775 (diagnostic_same_line): New inline.
32776 (diagnostic_print_caret_line): Declare.
32777 (CARET_LINE_MARGIN): New constant.
32778 * pretty-print.c (pp_printf): Do not set text.locus.
32779 (pp_verbatim): Do not set text.locus.
32780 * pretty-print.h (MAX_LOCATIONS_PER_MESSAGE): New constant.
32781 (struct text_info): Replace locus pointer with locations
32782 array. Add accessor functions.
32783
32784 2015-05-16 Kugan Vivekanandarajah <kuganv@linaro.org>
32785 Zhenqiang Chen <zhenqiang.chen@linaro.org>
32786
32787 PR target/65768
32788 * config/arm/arm.h (DONT_EARLY_SPLIT_CONSTANT): New macro.
32789 * config/arm/arm.md (subsi3, andsi3, iorsi3, xorsi3, movsi): Keep some
32790 large constants in register instead of splitting them.
32791
32792 2015-05-16 Uros Bizjak <ubizjak@gmail.com>
32793
32794 PR target/66140
32795 * config/alpha/alpha.c (get_aligned_mem): Also look for reload
32796 replacements in memory addresses.
32797 (get_unaligned_address): Ditto.
32798
32799 2015-05-16 James Bowman <james.bowman@ftdichip.com>
32800
32801 * config/ft32/*: New files for FT32 port.
32802 * doc/install.texi: Add FT32 information.
32803 * doc/invoke.texi: Add FT32 information.
32804 * doc/md.texi: Add FT32 information.
32805 * doc/contrib.texi: Self added.
32806
32807 2015-05-15 Marc Glisse <marc.glisse@inria.fr>
32808
32809 PR tree-optimization/64454
32810 * match.pd ((X % Y) % Y, (X % Y) < Y): New patterns.
32811 (-1 - A -> ~A): Remove unnecessary condition.
32812
32813 2015-05-15 Gregor Richards <gregor.richards@uwaterloo.ca>
32814
32815 * config/i386/linux.h (MUSL_DYNAMIC_LINKER): Define.
32816 * config/i386/linux64.h (MUSL_DYNAMIC_LINKER32): Define.
32817 (MUSL_DYNAMIC_LINKER64, MUSL_DYNAMIC_LINKERX32): Define.
32818
32819 2015-05-15 Ilya Enkovich <ilya.enkovich@intel.com>
32820
32821 * ipa-chkp.h (chkp_wrap_function): New.
32822 * ipa-chkp.c (chkp_wrap_function): Remove 'static'.
32823 (chkp_wrap_function_name): New.
32824 (chkp_build_instrumented_fndecl): Use chkp_wrap_function_name
32825 to get wrapper name.
32826 * lto-cgraph.c: Include ipa-chkp.h.
32827 (input_cgraph_1): Avoid alias chain for wrappers.
32828
32829 2015-05-15 Ilya Enkovich <enkovich.gnu@gmail.com>
32830
32831 PR middle-end/66134
32832 * tree-chkp.c (chkp_get_orginal_bounds_for_abnormal_copy): New.
32833 (chkp_maybe_copy_and_register_bounds): Don't copy abnormal copy.
32834
32835 2015-05-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
32836
32837 * config/aarch64/aarch64.h (AARCH64_TUNE_SLOWMUL): Delete.
32838 (AARCH64_FL_SLOWMUL): Delete.
32839 (AARCH64_FL_CRC): Redefine to 1<<3.
32840 (AARCH64_FL_USE_FMA_STEERING_PASS): Redefine to 1<<4.
32841
32842 2015-05-15 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
32843
32844 * config/arm/arm.h (LOGICAL_OP_NON_SHORT_CIRCUIT): Add appropriate
32845 casting.
32846
32847 2015-05-15 Uros Bizjak <ubizjak@gmail.com>
32848
32849 * config/alpha/alpha.md (extendqidi2): Use general_operand
32850 instead of some_operand for operand[1] predicate.
32851 (extendhidi2): Ditto.
32852 (cbranchdi4): Use general_operand instead of some_operand
32853 for operand[1] and operands[2] predicates.
32854 (cstoredi4): Ditto.
32855 * config/alpha/predicates.md (some_operand): Remove unused predicate.
32856 (some_ni_operand): Ditto.
32857
32858 2015-05-15 Uros Bizjak <ubizjak@gmail.com>
32859
32860 * config/alpha/alpha.c (alpha_extract_integer): Do not handle
32861 CONST_WIDE_INT and CONST_DOUBLE. Assert CONST_INT_P (x).
32862 (alpha_legitimate_constant_p) <case CONST_WIDE_INT>: Check high and
32863 low part of the constant using alpha_emit_set_const_1.
32864 (alpha_expand_mov): Do not handle CONST_WIDE_INT and CONST_DOUBLE.
32865
32866 2015-05-14 Rohit Arul Raj <rohitrulraj@freescale.com>
32867
32868 * varasm.c (output_constant_pool_1): Pass down alignment from
32869 constant pool entry's descriptor to output_constant_pool_2.
32870 (output_object_block): Add comment prior to call to
32871 output_constant_pool_1.
32872
32873 2015-05-14 Vladimir Makarov <vmakarov@redhat.com>
32874
32875 PR rtl-optimization/65862
32876 * target.def (ira_change_pseudo_allocno_class): New hook.
32877 * targhooks.c (default_ira_change_pseudo_allocno_class): Default
32878 value of the hook.
32879 * targhooks.h (default_ira_change_pseudo_allocno_class): New extern.
32880 * doc/tm.texi.in (TARGET_IRA_CHANGE_PSEUDO_ALLOCNO_CLASS): Add the
32881 hook.
32882 * ira-costs.c (find_costs_and_classes): Call the hook and change
32883 classes when it is necessary.
32884 * doc/tm.texi: Update.
32885
32886 2015-05-14 Alexander Monakov <amonakov@ispras.ru>
32887
32888 * config/i386/i386.md (sibcall_memory): Check that register with
32889 callee address is not also used as one of the arguments, instead
32890 of checking that it is not live after the sibcall.
32891 (sibcall_pop_memory): Ditto.
32892 (sibcall_value_memory): Ditto.
32893 (sibcall_value_pop_memory): Ditto.
32894
32895 2015-05-14 Marc Glisse <marc.glisse@inria.fr>
32896
32897 * generic-match-head.c (types_match): Handle non-types.
32898 * gimple-match-head.c (types_match): Likewise.
32899 * match.pd: Remove unnecessary TREE_TYPE for types_match.
32900
32901 2015-05-14 Wilco Dijkstra <wdijkstr@arm.com>
32902
32903 * config/aarch64/aarch64.md (absdi2): Optimize abs expansion.
32904 (csneg3<mode>_insn): Enable expansion of pattern.
32905
32906 2015-05-14 Nick Clifton <nickc@redhat.com>
32907
32908 * config/rl78/rl78.c (rl78_select_section): Select the correct
32909 default section based upon the category of the decl.
32910
32911 2015-05-13 Segher Boessenkool <segher@kernel.crashing.org>
32912
32913 PR rtl-optimization/30967
32914 * config/rs6000/rs6000.c (rs6000_rtx_costs): Don't consider
32915 destination mode for the cost of scc patterns.
32916
32917 2015-05-13 Uros Bizjak <ubizjak@gmail.com>
32918
32919 * config/i386/i386.md (*mul<mode>3_1): Merge with *mulhi3_1
32920 using SWIM248 mode iterator.
32921 (*mulv<mode>4): Use x86_64_sext_operand for operand[2] constraint.
32922 (*mulvhi4): mark operand[1] as commutative. Use nonimmediate_operand
32923 for operand[2] constraint.
32924 (*mulv<mode>4_1): Merge with *mulvhi4_1 using SWI248 mode iterator.
32925
32926 2015-05-13 Jakub Jelinek <jakub@redhat.com>
32927
32928 PR middle-end/66133
32929 * omp-low.c (expand_omp_taskreg): For GIMPLE_OMP_TASK expansion,
32930 make sure it is never noreturn, even when the task body does not
32931 return.
32932 (lower_omp_taskreg): For GIMPLE_OMP_TASK, emit GIMPLE_OMP_CONTINUE
32933 right before GIMPLE_OMP_RETURN.
32934 (make_gimple_omp_edges): Accept GIMPLE_OMP_CONTINUE as ->cont
32935 for GIMPLE_OMP_TASK. For GIMPLE_OMP_RETURN corresponding to
32936 GIMPLE_OMP_TASK add an EDGE_ABNORMAL edge from entry to exit.
32937
32938 2015-05-13 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
32939
32940 * params.def (PARAM_MAX_POW_SQRT_DEPTH): New param.
32941 * tree-ssa-math-opts.c: Include params.h
32942 (pow_synth_sqrt_info): New struct.
32943 (representable_as_half_series_p): New function.
32944 (get_fn_chain): Likewise.
32945 (print_nested_fn): Likewise.
32946 (dump_fractional_sqrt_sequence): Likewise.
32947 (dump_integer_part): Likewise.
32948 (expand_pow_as_sqrts): Likewise.
32949 (gimple_expand_builtin_pow): Use above to attempt to expand
32950 pow as series of square roots. Removed now unused variables.
32951
32952 2015-05-13 Uros Bizjak <ubizjak@gmail.com>
32953
32954 * config/alpha/alpha.c (alpha_emit_set_long_const): Remove c1 argument.
32955 (alpha_extract_integer): Redeclare as static HOST_WIDE_INT.
32956 Remove *p0 and *p1 arguments. Rewrite function.
32957 (alpha_legitimate_constant_p): Update call to alpha_extract_integer.
32958 (alpha_split_const_mov): Update calls to alpha_extract_integer and
32959 alpha_emit_set_long_const.
32960 (alpha_expand_epilogue): Update calls to alpha_emit_set_long_const.
32961 (alpha_output_mi_thunk_osf): Ditto.
32962 * config/alpha/alpha.md (movti): Do not check operands[1]
32963 for CONST_DOUBLE.
32964
32965 2015-05-13 Richard Biener <rguenther@suse.de>
32966
32967 PR tree-optimization/66129
32968 * tree-vect-slp.c (vect_build_slp_tree): Make sure all ops are
32969 commutative.
32970 (vect_schedule_slp_instance): Fix typo.
32971
32972 2015-05-13 David Malcolm <dmalcolm@redhat.com>
32973
32974 * common.opt (fdump-internal-locations): New option.
32975 * input.c: Include diagnostic-core.h.
32976 (get_end_location): New function.
32977 (write_digit): New function.
32978 (write_digit_row): New function.
32979 (dump_location_range): New function.
32980 (dump_labelled_location_range): New function.
32981 (dump_location_info): New function.
32982 * input.h (dump_location_info): New prototype.
32983 * toplev.c (compile_file): Handle flag_dump_locations.
32984
32985 2015-05-13 Eric Botcazou <ebotcazou@adacore.com>
32986
32987 * gimple-expr.h (is_gimple_constant): Reorder.
32988 * tree-ssa-propagate.c (before_dom_children): Use inline accessor.
32989
32990 2015-05-13 Segher Boessenkool <segher@kernel.crashing.org>
32991
32992 * combine.c (simplify_set): When generating a CC set, if the
32993 source already is in the correct mode, do not wrap it in a
32994 compare. Simplify the rest of that code.
32995
32996 2015-05-13 Richard Biener <rguenther@suse.de>
32997
32998 PR tree-optimization/66123
32999 * tree-ssa-dom.c (propagate_rhs_into_lhs): Check if we found
33000 a taken edge.
33001
33002 2015-05-13 Richard Biener <rguenther@suse.de>
33003
33004 PR middle-end/66110
33005 * alias.c (alias_sets_conflict_p): Do not treat has_zero_child
33006 specially.
33007 * Makefile.in (dfp.o-warn): Add -Wno-strict-aliasing.
33008
33009 2015-05-13 Michael Haubenwallner <michael.haubenwallner@ssi-schaefer.com>
33010
33011 * doc/install.texi: Bump latest automake 1.11 version to 1.11.6.
33012 * aclocal.m4: Regenerated with automake-1.11.6.
33013
33014 2015-05-13 Tom de Vries <tom@codesourcery.com>
33015
33016 PR tree-optimization/66010
33017 * gimplify.h (gimplify_va_arg_internal): Remove declaration.
33018 * gimplify.c (gimplify_va_arg_internal): Remove and inline into ...
33019 * tree-stdarg.c (expand_ifn_va_arg_1): ... here. Choose between lval
33020 and rval based on do_deref.
33021
33022 2015-05-13 Ilya Enkovich <ilya.enkovich@intel.com>
33023
33024 PR target/65103
33025 * config/i386/i386.c (ix86_rtx_costs): We want to propagate
33026 link time constants into adress expressions and therefore set
33027 their cost to 0.
33028
33029 2015-05-13 Jakub Jelinek <jakub@redhat.com>
33030
33031 PR target/66112
33032 * config/i386/i386.md (mulv<mode>4, umulv<mode>4, *umulv<mode>4):
33033 Use SWI248 iterator instead of SWI.
33034 (*mulv<mode>4_1): Use SWI48 instead of SWI. Simplify output template.
33035 Use eq_attr "alternative" "0" instead of match_test in
33036 length_immediate attribute computation.
33037 (*mulvhi4, *mulvhi4_1): New define_insns.
33038
33039 PR target/66112
33040 * internal-fn.c (get_min_precision): Use UNSIGNED instead of
33041 SIGNED to get precision of non-negative value.
33042
33043 2015-05-13 Ilya Enkovich <ilya.enkovich@intel.com>
33044
33045 PR target/66048
33046 * function.c (diddle_return_value_1): Process bounds first.
33047 * config/i38/i386.c (ix86_function_value_regno_p): Add bnd1
33048 register.
33049
33050 2015-05-13 Thomas Preud'homme <thomas.preudhomme@arm.com>
33051
33052 PR rtl-optimization/64616
33053 * loop-invariant.c (can_move_invariant_reg): New.
33054 (move_invariant_reg): Call above new function to decide whether
33055 instruction can just be moved, skipping creation of temporary
33056 register.
33057
33058 2015-05-12 Jan Hubicka <hubicka@ucw.cz>
33059
33060 PR target/pr66047.c
33061 * i386.c (ix86_function_sseregparm): Only return -1 if local function
33062 with implied regparm is called from -mno-sse function.
33063 (init_cumulative_args): Output error if ix86_function_sseregparm
33064 return -1 and SSE register would be needed.
33065 (function_arg_advance_32): Likewise.
33066 (function_arg_32): Likewise.
33067 * i386.h (ix86_args): Add decl field.
33068
33069 2015-05-12 Jan Hubicka <hubicka@ucw.cz>
33070
33071 PR ipa/65873
33072 * ipa-inline.c (can_inline_edge_p): Allow early inlining of always
33073 inlines across optimization boundary.
33074
33075 2015-05-12 Jason Merrill <jason@redhat.com>
33076
33077 * config/mmix/mmix.c, config/msp430/msp430.c: Add space between
33078 string literal and macro name.
33079
33080 2015-05-12 Steve Ellcey <sellcey@imgtec.com>
33081
33082 * config/mips/mips.c (mips_print_operand): Remove 'y' operand code.
33083 * config/mips/mips.md (<GPR:d>lsa): Rewrite with shift operator.
33084 * config/mips/predicates.md (const_immlsa_operand): Remove log call.
33085
33086 2015-05-12 David Malcolm <dmalcolm@redhat.com>
33087
33088 * doc/invoke.texi (Warning Options): Add -Wmisleading-indentation.
33089 (-Wmisleading-indentation): New option.
33090 * Makefile.in (C_COMMON_OBJS): Add c-family/c-indentation.o.
33091
33092 2015-05-12 Uros Bizjak <ubizjak@gmail.com>
33093
33094 * config/alpha/alpha.h (TARGET_SUPPORTS_WIDE_INT): New define.
33095 * config/alpha/alpha.c (alpha_rtx_costs): Handle CONST_WIDE_INT.
33096 (alpha_extract_integer): Ditto.
33097 (alpha_legitimate_constant_p): Ditto.
33098 (alpha_split_tmode_pair): Ditto.
33099 (alpha_preferred_reload_class): Add CONST_WIDE_INT.
33100 (alpha_expand_mov): Ditto.
33101 (print_operand): Remove handling of 'H' modifier.
33102 <case 'm'>: Remove CONST_DOUBLE handling.
33103 (summarize_insn): Handle CONST_WIDE_INT.
33104 * config/alpha/alpha.md (*andsi_internal): Remove H constraint.
33105 (anddi3): Ditto.
33106 (movti): Handle CONST_WIDE_INT.
33107 * config/alpha/constraints.md ('H'): Remove constraint definition.
33108 ('G'): Do not match MODE_FLOAT class.
33109 * config/alpha/predicates.md (const0_operand): Also match
33110 const_wide_int.
33111 (non_add_const_operand): Ditto.
33112 (non_zero_const_operand): Ditto.
33113 (some_operand): Ditto.
33114 (input_operand): Ditto. Handle CONST_WIDE_INT.
33115 (and_operand): Do not match const_double.
33116 * config/alpha/sync.md (fetchop_constr): Remove H constraint.
33117
33118 2015-05-12 Andrew MacLeod <amacleod@redhat.com>
33119
33120 PR target/65697
33121 * coretypes.h (MEMMODEL_SYNC, MEMMODEL_BASE_MASK): New macros.
33122 (enum memmodel): Add SYNC_{ACQUIRE,RELEASE,SEQ_CST}.
33123 * tree.h (memmodel_from_int, memmodel_base, is_mm_relaxed,
33124 is_mm_consume,is_mm_acquire, is_mm_release, is_mm_acq_rel,
33125 is_mm_seq_cst, is_mm_sync): New accessor functions.
33126 * builtins.c (expand_builtin_sync_operation,
33127 expand_builtin_compare_and_swap): Use MEMMODEL_SYNC_SEQ_CST.
33128 (expand_builtin_sync_lock_release): Use MEMMODEL_SYNC_RELEASE.
33129 (get_memmodel, expand_builtin_atomic_compare_exchange,
33130 expand_builtin_atomic_load, expand_builtin_atomic_store,
33131 expand_builtin_atomic_clear): Use new accessor routines.
33132 (expand_builtin_sync_synchronize): Use MEMMODEL_SYNC_SEQ_CST.
33133 * optabs.c (expand_compare_and_swap_loop): Use MEMMODEL_SYNC_SEQ_CST.
33134 (maybe_emit_sync_lock_test_and_set): Use new accessors and
33135 MEMMODEL_SYNC_ACQUIRE.
33136 (expand_sync_lock_test_and_set): Use MEMMODEL_SYNC_ACQUIRE.
33137 (expand_mem_thread_fence, expand_mem_signal_fence, expand_atomic_load,
33138 expand_atomic_store): Use new accessors.
33139 * emit-rtl.c (need_atomic_barrier_p): Add additional enum cases.
33140 * tsan.c (instrument_builtin_call): Update check for memory model beyond
33141 final enum to use MEMMODEL_LAST.
33142 * c-family/c-common.c: Use new accessor for memmodel_base.
33143 * config/aarch64/aarch64.c (aarch64_expand_compare_and_swap): Use new
33144 accessors.
33145 * config/aarch64/atomics.md (atomic_load<mode>,atomic_store<mode>,
33146 arch64_load_exclusive<mode>, aarch64_store_exclusive<mode>,
33147 mem_thread_fence, *dmb): Likewise.
33148 * config/alpha/alpha.c (alpha_split_compare_and_swap,
33149 alpha_split_compare_and_swap_12): Likewise.
33150 * config/arm/arm.c (arm_expand_compare_and_swap,
33151 arm_split_compare_and_swap, arm_split_atomic_op): Likewise.
33152 * config/arm/sync.md (atomic_load<mode>, atomic_store<mode>,
33153 atomic_loaddi): Likewise.
33154 * config/i386/i386.c (ix86_destroy_cost_data, ix86_memmodel_check):
33155 Likewise.
33156 * config/i386/sync.md (mem_thread_fence, atomic_store<mode>): Likewise.
33157 * config/ia64/ia64.c (ia64_expand_atomic_op): Add new memmodel cases and
33158 use new accessors.
33159 * config/ia64/sync.md (mem_thread_fence, atomic_load<mode>,
33160 atomic_store<mode>, atomic_compare_and_swap<mode>,
33161 atomic_exchange<mode>): Use new accessors.
33162 * config/mips/mips.c (mips_process_sync_loop): Likewise.
33163 * config/pa/pa.md (atomic_loaddi, atomic_storedi): Likewise.
33164 * config/rs6000/rs6000.c (rs6000_pre_atomic_barrier,
33165 rs6000_post_atomic_barrier): Add new cases.
33166 (rs6000_expand_atomic_compare_and_swap): Use new accessors.
33167 * config/rs6000/sync.md (mem_thread_fence): Add new cases.
33168 (atomic_load<mode>): Add new cases and use new accessors.
33169 (store_quadpti): Add new cases.
33170 * config/s390/s390.md (mem_thread_fence, atomic_store<mode>): Use new
33171 accessors.
33172 * config/sparc/sparc.c (sparc_emit_membar_for_model): Use new accessors.
33173 * doc/extend.texi: Update docs to indicate 16 bits are used for memory
33174 model, not 8.
33175
33176 2015-05-12 Jan Hubicka <hubicka@ucw.cz>
33177
33178 * ipa-devirt.c (type_with_linkage_p): New function.
33179 (type_in_anonymous_namespace_p): Move here from tree.c; assert that
33180 type has linkage.
33181 (odr_type_p): Move here from ipa-utils.h; use type_with_linkage_p.
33182 (can_be_name_hashed_p): Simplify.
33183 (hash_odr_name): Check that type has linkage before checking if it is
33184 anonymous.
33185 (types_same_for_odr): Likewise.
33186 (odr_name_hasher::equal): Likewise.
33187 (odr_subtypes_equivalent_p): Likewise.
33188 (warn_types_mismatch): Likewise.
33189 (get_odr_type): Likewise.
33190 (odr_types_equivalent_p): Fix checking of TYPE_MAIN_VARIANT.
33191 * ipa-utils.h (odr_type_p): Move offline.
33192 * tree.c (need_assembler_name_p): Fix handling of types
33193 without linkages.
33194 (type_in_anonymous_namespace_p): Move to ipa-devirt.c
33195
33196 2015-05-12 David Malcolm <dmalcolm@redhat.com>
33197
33198 * timevar.c (timevar_enable): Delete in favor of...
33199 (g_timer): New global.
33200 (struct timevar_def): Move to timevar.h inside class timer.
33201 (struct timevar_stack_def): Likewise.
33202 (timevars): Delete global in favor of field "m_timevars" within
33203 class timer in timevar.h
33204 (stack): Likewise, in favor of field "m_stack".
33205 (unused_stack_instances): Likewise, in favor of field
33206 "m_unused_stack_instances".
33207 (start_time): Likewise, in favor of field "m_start_time".
33208 (get_time): Eliminate check for timevar_enable.
33209 (timer::timer): New function, built from part of timevar_init.
33210 (timevar_init): Rewrite idempotency test from using
33211 "timevar_enable" bool to using dynamic allocation of "g_timer".
33212 Move rest of implementation into timer's constructor.
33213 (timevar_push_1): Rename to...
33214 (timer::push): ...this, adding "m_" prefixes to variables that
33215 are now fields of timer.
33216 (timevar_pop_1): Likewise, rename to...
33217 (timer::pop): ...this, and add "m_" prefixes.
33218 (timevar_start): Replace test for "timevar_enable" with one for
33219 "g_timer", and move bulk of implementation to...
33220 (timer::start): ...here, adding "m_" prefixes.
33221 (timevar_stop): Likewise, from here...
33222 (timer::stop): ...to here.
33223 (timevar_cond_start): Likewise, from here...
33224 (timer::cond_start): ...to here.
33225 (timevar_cond_stop): Likewise, from here...
33226 (timer::cond_stop): ...to here.
33227 (validate_phases): Rename to...
33228 (timer::validate_phases): ...this, and add "m_" prefixes. Make
33229 locals "total" and "tv" const.
33230 (timevar_print): Rename to...
33231 (timer::print): ...this, and add "m_" prefixes. Make locals
33232 "total" and "tv" const. Eliminate test for timevar_enable.
33233 * timevar.h (timevar_enable): Eliminate.
33234 (g_timer): New declaration.
33235 (timevar_push_1): Eliminate.
33236 (timevar_pop_1): Eliminate.
33237 (timevar_print): Eliminate.
33238 (class timer): New class.
33239 (timevar_push): Rewrite to use g_timer.
33240 (timevar_pop): Likewise.
33241 * toplev.c (toplev::~toplev): Likewise.
33242
33243 2015-05-12 Richard Earnshaw <rearnsha@arm.com>
33244
33245 * arm-protos.h (arm_sched_autopref): Delete.
33246 (tune_params): Re-organize, use enums for flag values.
33247 (FUSE_OPS): New macro.
33248 * arm.c (ARM_PREFETCH_NOT_BENEFICIAL): Update.
33249 (ARM_PREFETCH_BENEFICIAL): Likewise.
33250 (ARM_FUSE_NOTHING, ARM_FUSE_MOVW_MOVT): Delete.
33251 (arm_slowmul_tune, arm_fastmul_tune, arm_strongarm_tune)
33252 (arm_xscale_tune, arm_9e_tune, arm_marvell_pj4_tune)
33253 (arm_v6t2_tune, arm_cortex_tune, arm_cortex_a8_tune)
33254 (arm_cortex_a7_tune, arm_cortex_a15_tune, arm_cortex_a53_tune)
33255 (arm_cortex_a57_tune, arm_xgene1_tune, arm_cortex_a5_tune)
33256 (arm_cortex_a9_tune, arm_cortex_a12_tune, arm_v7m_tune)
33257 (arm_cortex_m7_tune, arm_v6m_tune, arm_fa726te_tune): Use new
33258 format.
33259 (arm_option_override, thumb2_reorg, arm_print_tune_info)
33260 (aarch_macro_fusion_pair_p): Update uses of current_tune.
33261 * arm.h (LOGICAL_OP_NON_SHORT_CIRCUIT): Likewise.
33262
33263 2015-05-12 Sandra Loosemore <sandra@codesourcery.com>
33264
33265 * config/nios2/nios2.md (trap, ctrapsi4): Use "trap" instead of
33266 "break".
33267
33268 2015-05-12 Chung-Lin Tang <cltang@codesourcery.com>
33269 Sandra Loosemore <sandra@codesourcery.com>
33270
33271 * config/nios2/nios2.h (enum reg_class): Add IJMP_REGS enum
33272 value.
33273 (REG_CLASS_NAMES): Add "IJMP_REGS".
33274 (REG_CLASS_CONTENTS): Add new entry for IJMP_REGS.
33275 * config/nios2/nios2.md (indirect_jump,*tablejump): Adjust to
33276 use new "c" register constraint.
33277 * config/nios2/constraint.md (c): New register constraint
33278 corresponding to IJMP_REGS.
33279
33280 2015-05-12 Segher Boessenkool <segher@kernel.crashing.org>
33281
33282 * config/rs6000/rs6000.md (*rotlsi3_internal4, *rotlsi3_internal5,
33283 *rotlsi3_internal6, rlwinm, 5 unnamed define_insns, and 6
33284 define_splits): Delete, revamp, transmogrify into ...
33285 (*rotlsi3_mask, *rotlsi3_mask_dot, *rotlsi3_mask_dot2,
33286 *ashlsi3_imm_mask, *ashlsi3_imm_mask_dot, *ashlsi3_imm_mask_dot2,
33287 *lshrsi3_imm_mask, *lshrsi3_imm_mask_dot, *lshrsi3_imm_mask_dot2):
33288 New.
33289
33290 2015-05-12 Segher Boessenkool <segher@kernel.crashing.org>
33291
33292 * config/rs6000/rs6000.md (rs6000_adjust_atomic_subword): Use
33293 gen_ashlsi3 and gen_andsi3 instead of gen_rlwinm.
33294
33295 2015-05-12 Segher Boessenkool <segher@kernel.crashing.org>
33296
33297 * config/rs6000/rs6000.md (extzv): FAIL for SImode.
33298 (extzvsi_internal, *extzvsi_internal1, *extzvsi_internal2,
33299 *rotlsi3_internal7le, *rotlsi3_internal7be, *rotlsi3_internal8le,
33300 *rotlsi3_internal8be, *rotlsi3_internal9le, *rotlsi3_internal9be,
33301 *rotlsi3_internal10le, *rotlsi3_internal10be, *rotlsi3_internal11le,
33302 *rotlsi3_internal11be, *rotlsi3_internal12le, *rotlsi3_internal12be,
33303 *lshiftrt_internal1le, *lshiftrt_internal1be, *lshiftrt_internal2le,
33304 *lshiftrt_internal2be, *lshiftrt_internal3le, *lshiftrt_internal3be,
33305 *lshiftrt_internal4le, *lshiftrt_internal4be, *lshiftrt_internal5le,
33306 *lshiftrt_internal5be, *lshiftrt_internal5le, *lshiftrt_internal5be,
33307 *rotldi3_internal7le, *rotldi3_internal7be, *rotldi3_internal8le,
33308 *rotldi3_internal8be, *rotldi3_internal9le, *rotldi3_internal9be,
33309 *rotldi3_internal10le, *rotldi3_internal10be, *rotldi3_internal11le,
33310 *rotldi3_internal11be, *rotldi3_internal12le, *rotldi3_internal12be,
33311 *rotldi3_internal13le, *rotldi3_internal13be, *rotldi3_internal14le,
33312 *rotldi3_internal14be, *rotldi3_internal15le, *rotldi3_internal15be,
33313 and 30 corresponding splitters): Delete.
33314
33315 2015-05-12 Segher Boessenkool <segher@kernel.crashing.org>
33316
33317 * config/rs6000/rs6000.md (define_split for bswaphi): Don't use
33318 zero_extract.
33319
33320 2015-05-12 Segher Boessenkool <segher@kernel.crashing.org>
33321
33322 * combine.c (recog_for_combine_1): New function, factored out
33323 from recog_for_combine.
33324 (change_zero_ext): New function.
33325 (recog_for_combine): If recog fails, try again with the pattern
33326 modified by change_zero_ext; if that still fails, restore the
33327 pattern.
33328
33329 2015-05-12 Segher Boessenkool <segher@kernel.crashing.org>
33330
33331 * combine.c (get_undo_marker): New function.
33332 (undo_to_marker): New function, largely factored out from ...
33333 (undo_all): ... this. Adjust.
33334
33335 2015-05-12 Richard Biener <rguenther@suse.de>
33336
33337 PR tree-optimization/66101
33338 * tree-ssa-dce.c (remove_dead_stmt): Properly mark loops for
33339 fixup if we turn a loop exit edge to a fallthru edge.
33340
33341 2015-05-12 Richard Biener <rguenther@suse.de>
33342
33343 PR tree-optimization/37021
33344 * tree-vectorizer.h (struct _slp_tree): Add two_operators flag.
33345 (SLP_TREE_TWO_OPERATORS): New define.
33346 * tree-vect-slp.c (vect_create_new_slp_node): Initialize
33347 SLP_TREE_TWO_OPERATORS.
33348 (vect_build_slp_tree_1): Allow two mixing plus/minus in an
33349 SLP node.
33350 (vect_build_slp_tree): Adjust.
33351 (vect_analyze_slp_cost_1): Likewise.
33352 (vect_schedule_slp_instance): Vectorize mixing plus/minus by
33353 emitting two vector stmts and mixing the results.
33354
33355 2015-05-12 Dominik Vogt <vogt@linux.vnet.ibm.com>
33356
33357 * call.c (print_z_candidates): Remove dead code.
33358
33359 2015-05-12 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
33360
33361 * config/s390/2827.md: Split zEC12_simple into zEC12_simple_int
33362 and zEC12_simple_fp.
33363 * config/s390/s390.c (s390_issue_rate): Set issue rate for zEC12
33364 to 1.
33365
33366 2015-05-12 Tom de Vries <tom@codesourcery.com>
33367
33368 PR tree-optimization/66010
33369 * gimplify.c (gimplify_modify_expr): Handle new do_deref argument of
33370 ifn_va_arg.
33371 * gimplify.h (gimplify_va_arg_internal): Remove loc parameter.
33372 (gimplify_va_arg_internal): Remove loc parameter. Assert no array-typed
33373 va_lists are passed, and remove corresponding handling.
33374 (gimplify_va_arg_expr): Only take address of ap if necessary. Add
33375 do_deref argument to ifn_va_arg.
33376 * tree-stdarg.c (expand_ifn_va_arg_1): Handle new do_deref argument of
33377 ifn_va_arg.
33378
33379 2015-05-12 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
33380
33381 PR target/65955
33382 * config/arm/arm.md (movcond_addsi): Check that operands[2] is a
33383 REG before taking its REGNO.
33384
33385 2015-05-12 Thomas Preud'homme <thomas.preudhomme@arm.com>
33386
33387 * combine.c i(set_nonzero_bits_and_sign_copies): Split code updating
33388 rsp->sign_bit_copies and rsp->nonzero_bits into ...
33389 (update_rsp_from_reg_equal): This. Also use REG_EQUAL note on src if
33390 present to get more accurate information about the number of sign bit
33391 copies and non zero bits.
33392
33393 2015-05-12 Richard Biener <rguenther@suse.de>
33394
33395 * tree-vect-slp.c (vect_build_slp_tree_1): For BB vectorization
33396 do not allow unrolling.
33397
33398 2015-05-11 Richard Henderson <rth@redhat.com>
33399
33400 * config/i386/i386-modes.def (CCP): New.
33401 * config/i386/i386.c (put_condition_code): Handle it.
33402 (ix86_match_ccmode, ix86_cc_modes_compatible): Likewise.
33403
33404 2015-05-11 Richard Henderson <rth@redhat.com>
33405
33406 * target.def (md_asm_clobbers): Replace with...
33407 (md_asm_adjust): this.
33408 * tm.texi.in (TARGET_MD_ASM_CLOBBERS): Remove.
33409 (TARGET_MD_ASM_ADJUST): New.
33410 * tm.texi: Rebuild.
33411 * hooks.c (hook_tree_tree_tree_tree_3rd_identity): Remove.
33412 * hooks.h (hook_tree_tree_tree_tree_3rd_identity): Remove.
33413 * system.h (TARGET_MD_ASM_CLOBBERS): Poison.
33414
33415 * cfgexpand.c (check_operand_nalternatives): Accept vector of
33416 constraints instead of lists of outputs and inputs.
33417 (expand_asm_stmt): Save and restore input_location around the
33418 body of the function. Move asm data into vectors instead of
33419 building tree lists. Generate cleanup sequences as needed,
33420 rather than waiting til the end. Use new md_asm_adjust hook.
33421
33422 * config/vxworks.c: Include vec.h before target.h.
33423 * gimple.c: Likewise.
33424 * incpath.c: Likewise.
33425 * mode-switching.c: Likewise.
33426
33427 * config/cris/cris.c (cris_md_asm_clobbers): Convert to...
33428 (cris_md_asm_adjust): this.
33429 (TARGET_MD_ASM_CLOBBERS): Remove.
33430 (TARGET_MD_ASM_ADJUST): New.
33431 * config/i386/i386.c (ix86_md_asm_clobbers): Convert to...
33432 (ix86_md_asm_adjust): this.
33433 (TARGET_MD_ASM_CLOBBERS): Remove.
33434 (TARGET_MD_ASM_ADJUST): New.
33435 * config/mn10300/mn10300.c (mn10300_md_asm_clobbers): Convert to...
33436 (mn10300_md_asm_adjust): this.
33437 (TARGET_MD_ASM_CLOBBERS): Remove.
33438 (TARGET_MD_ASM_ADJUST): New.
33439 * config/rs6000/rs6000.c (rs6000_md_asm_clobbers): Convert to...
33440 (rs6000_md_asm_adjust): this.
33441 (TARGET_MD_ASM_CLOBBERS): Remove.
33442 (TARGET_MD_ASM_ADJUST): New.
33443 * config/visium/visium.c (visium_md_asm_clobbers): Convert to...
33444 (visium_md_asm_adjust): this.
33445 (TARGET_MD_ASM_CLOBBERS): Remove.
33446 (TARGET_MD_ASM_ADJUST): New.
33447
33448 2015-05-11 Richard Henderson <rth@redhat.com>
33449
33450 * gimplify.c (gimplify_asm_expr): Set gimple_asm_volatile_p
33451 if noutputs is zero.
33452 * cfgexpand.c (expand_asm_stmt): Use gimple_asm_volatile_p unchanged.
33453
33454 * cfgexpand.c (expand_asm_operands): Merge into...
33455 (expand_asm_stmt): ... here.
33456
33457 * cfgexpand.c (expand_asm_operands): Don't call
33458 resolve_asm_operand_names.
33459 * stmt.c (resolve_asm_operand_names): Clarify block comment.
33460
33461 2015-05-11 Jan Hubicka <hubicka@ucw.cz>
33462
33463 * dwarf2out.c (gen_member_die): Sanity check that we access
33464 TYPE_MAIN_VARIANT for TYPE_METHODS.
33465 * function.c (use_register_for_decl): Look for TYPE_MAIN_VARIANT when
33466 checking TYPE_METHODS.
33467 * tree.c (free_lang_data_in_type): See TYPE_METHODS to error_mark_node
33468 if non-null.
33469 (build_distinct_type_copy): Clear TYPE_METHODS.
33470 (verify_type_variant): Verify that TYPE_METHODS is NULL for variants.
33471 (verify_type): Allow TYPE_METHODS to be error_mark_node.
33472 * tree.def: Update docs of TYPE_STUB_DECL and TYPE_METHODS.
33473
33474 2015-05-11 Eric Botcazou <ebotcazou@adacore.com>
33475
33476 * emit-rtl.c (emit_pattern_after_setloc): Add missing guard.
33477 (emit_pattern_before_setloc): Likewise.
33478
33479 2015-05-11 Richard Sandiford <richard.sandiford@arm.com>
33480
33481 * genrecog.c (match_pattern_1): Expect the pattern to be a SEQUENCE
33482 for define_peephole2s.
33483 (get_peephole2_pattern): New function.
33484 (main): Use it. Call validate_pattern.
33485
33486 2015-05-11 Pitchumani Sivanupandi <pitchumani.s@atmel.com>
33487
33488 * config/avr/avr.c (avr_hard_regno_call_part_clobbered): Use
33489 LAST_CALLEE_SAVED_REG instead of hard-coded register number.
33490 (Last callee saved reg is different for AVR_TINY architecture)
33491
33492 2015-05-11 Uros Bizjak <ubizjak@gmail.com>
33493
33494 * config/i386/i386.c (ix86_loop_unroll_adjust): Use PATTERN (insn)
33495 when looking for memory references.
33496
33497 2015-05-11 Alexander Monakov <amonakov@ispras.ru>
33498
33499 PR target/65753
33500 * config/i386/i386.c (ix86_function_ok_for_sibcall): Allow PIC sibcalls
33501 via function pointers.
33502
33503 2015-05-11 Alexander Monakov <amonakov@ispras.ru>
33504
33505 * calls.c (prepare_call_address): Transform PLT call to GOT lookup and
33506 indirect call by forcing address into a pseudo with -fno-plt.
33507 * common.opt (flag_plt): New option.
33508 * doc/invoke.texi (Code Generation Options): Add -fno-plt.
33509 ([-fno-plt]): Document.
33510
33511 2015-05-11 Markus Trippelsdorf <markus@trippelsdorf.de>
33512
33513 PR bootstrap/66105
33514 * config/rs6000/option-defaults.h: Add space between string literal
33515 and macro name.
33516
33517 2015-05-11 Thomas Preud'homme <thomas.preudhomme@arm.com>
33518
33519 * gcc.target/arm/pr64616.c: Test dump rather than assembly to work
33520 accross ARM targets.
33521
33522 2015-05-11 Christian Bruel <christian.bruel@st.com>
33523
33524 * config/arm/arm-protos.h (thumb_code, thumb1_code): Remove.
33525 * config/arm/vxworks.h (thumb_code): Replace with TARGET_THUMB.
33526
33527 2015-05-11 Richard Sandiford <richard.sandiford@arm.com>
33528
33529 PR rtl-optimization/66076
33530 * rtlanal.c (generic_subrtx_iterator <T>::add_single_to_queue):
33531 Don't grow the heap array if it is already big enough from a
33532 previous iteration.
33533
33534 2015-05-11 Christian Bruel <christian.bruel@st.com>
33535
33536 * config/arm/arm-protos.h (arm_declare_function_name): Declare.
33537 (is_called_in_ARM_mode): Remove.
33538 * config/arm/arm.c (is_called_in_ARM_mode): Declare static bool.
33539 (arm_declare_function_name): Moved from from ARM_DECLARE_FUNCTION_NAME.
33540 * config/arm/arm.h (ARM_DECLARE_FUNCTION_NAME): Call
33541 arm_declare_function_name.
33542
33543 2015-05-11 Christian Bruel <christian.bruel@st.com>
33544
33545 * config/arm/arm.c (arm_option_override): Reoganized and split into :
33546 (arm_option_params_internal); New function.
33547 (arm_option_check_internal): New function.
33548 (arm_option_override_internal): New function.
33549 (thumb_code, thumb1_code): Remove.
33550 * config/arm/arm.h (TREE_TARGET_THUMB, TREE_TARGET_THUMB1): New macros.
33551 (TREE_TARGET_THUM2, TREE_TARGET_ARM): Likewise.
33552 (thumb_code, thumb1_code): Remove.
33553 * config/arm/arm.md (is_thumb, is_thumb1): Check TARGET flag.
33554
33555 2015-05-11 Uros Bizjak <ubizjak@gmail.com>
33556
33557 * config/alpha/alpha.c (alpha_emit_set_const_1)
33558 (alpha_emit_set_long_const, alpha_extract_integer)
33559 (alpha_legitimate_constant_p, alpha_split_const_mov)
33560 (alpha_expand_block_clear, alpha_expand_zap_mask, print_operand):
33561 [HOST_BITS_PER_WIDE_INT < 64]: Remove dead code.
33562 (alpha_emit_set_const_1): Change "(HOST_WIDE_INT) 1" to
33563 HOST_WIDE_INT_1U.
33564 * config/alpha/predicates.md (mode_mask_operand): Do not match
33565 const_double RTX.
33566 [HOST_BITS_PER_WIDE_INT < 64]: Remove dead code.
33567 * config/alpha/alpha.md (abstf, *abstf_internal, UNSPEC_ZAP splitter):
33568 Change "(HOST_WIDE_INT) 1" to HOST_WIDE_INT_1U.
33569 [HOST_BITS_PER_WIDE_INT < 64]: Remove dead code.
33570 (*negtf_internal): Use gen_int_mode instead of immed_double_const.
33571
33572 2015-05-11 Jakub Jelinek <jakub@redhat.com>
33573
33574 PR target/65780
33575 * config/s390/linux.h (TARGET_BINDS_LOCAL_P): Define to
33576 default_binds_local_p_2.
33577 * config/arm/linux-elf.h (TARGET_BINDS_LOCAL_P): Likewise.
33578 * config/aarch64/aarch64-linux.h (TARGET_BINDS_LOCAL_P): Likewise.
33579
33580 2015-05-09 Jan Hubicka <hubicka@ucw.cz>
33581
33582 * tree.c (verify_type_variant): Check TYPE_VALUES_RAW and TYPE_PRECISION
33583
33584 2015-05-09 Jan Hubicka <hubicka@ucw.cz>
33585
33586 Patch by Richard Biener
33587 * coverage.c (coverage_obj_init): Delay building of type variant
33588 until the type is finished.
33589
33590 2015-05-09 Jan Hubicka <hubicka@ucw.cz>
33591
33592 * ipa-devirt.c (warn_types_mismatch): Do not ICE when warning about
33593 mismatch between C and C++ type; compoare correctly ARG_TYPES
33594 for non-prototypes and output correctly parameter index for METHOD_TYPE.
33595 (odr_types_equivalent_p): Fix wording of warning about attributes;
33596 it is OK to match prototype and non-prototype.
33597
33598 2015-05-09 Jan Hubicka <hubicka@ucw.cz>
33599
33600 * tree.c (free_lang_data_in_type): Free TREE_PURPOSE of
33601 TYPE_ARG_TYPES list.
33602 (verify_type): Permit non-NULL TREE_PURPOSE in non-LTO builds.
33603 * tree.def (FUNCTION_TYPE): Document TREE_PURPOSE in TYPE_ARG_TYPES
33604
33605 2015-05-09 Jan Hubicka <hubicka@ucw.cz>
33606
33607 * tree.c (verify_type): Verify TYPE_BINFO and TYPE_VALUES_RAW.
33608 * tree.h (is_lang_specific): Constify.
33609
33610 2015-05-09 Marc Glisse <marc.glisse@inria.fr>
33611
33612 PR tree-optimization/64454
33613 * tree-vrp.c (extract_range_from_binary_expr_1) <TRUNC_MOD_EXPR>:
33614 Rewrite.
33615
33616 2015-05-08 Jason Merrill <jason@redhat.com>
33617
33618 * bitmap.c, c/c-aux-info.c, cfg.c, cfghooks.c, cgraph.c,
33619 config/aarch64/aarch64.md config/alpha/vms.h, config/darwin.c,
33620 config/darwin.h, config/darwin9.h, config/elfos.h,
33621 config/i386/bsd.h, config/ia64/ia64.c, config/lm32/lm32.h,
33622 config/microblaze/microblaze.h, config/mips/mips.h,
33623 config/mmix/mmix.c, config/msp430/msp430.c, config/nios2/nios2.h,
33624 config/nvptx/nvptx.c, config/nvptx/nvptx.h, config/pa/pa.c,
33625 config/pa/pa.h, config/rs6000/rs6000.c, config/rs6000/sysv4.h,
33626 config/rs6000/xcoff.h, config/rx/rx.h, config/s390/s390.h,
33627 config/sparc/sol2.h, config/sparc/sparc.h, config/visium/visium.h,
33628 cppbuiltin.c, defaults.h, doc/invoke.texi, dwarf2cfi.c,
33629 dwarf2out.c, final.c, gcc.c, gcov-dump.c, gcov.c, ipa-cp.c,
33630 ipa-inline.c, ipa-polymorphic-call.c, ipa-profile.c, ipa-prop.c,
33631 ira-color.c, ira.c, loop-doloop.c, loop-iv.c, mcf.c,
33632 modulo-sched.c, predict.c, profile.c, stor-layout.c, toplev.c,
33633 tree-ssa-reassoc.c, value-prof.c, wide-int-print.cc: Add space
33634 between string literal and macro name.
33635
33636 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
33637
33638 * jump.c: Change argument types to rtx_insn *.
33639 * rtl.h: Adjust.
33640
33641 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
33642
33643 * lra-constraints.c: Change argument type to rtx_insn *.
33644
33645 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
33646
33647 * df-problems.c: Change argument type to rtx_insn *.
33648
33649 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
33650
33651 * combine.c: Change argument type to rtx_insn *.
33652
33653 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
33654
33655 * rtl.h: Adjust.
33656 * rtlanal.c: Change argument type to rtx_insn *.
33657
33658 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
33659
33660 * sched-deps.c: Change argument types to rtx_insn *.
33661 * sched-int.h: Adjust.
33662
33663 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
33664
33665 * dwarf2cfi.c: Change argument type to rtx_insn *.
33666
33667 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
33668
33669 * ira.c (decrease_live_ranges_number): Changetype of local
33670 variable to rtx_insn *.
33671 * recog.c: Change argument types to rtx_insn *.
33672 * recog.h: Adjust.
33673
33674 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
33675
33676 * reorg.c: Change argument types to rtx_insn *.
33677
33678 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
33679
33680 * ira-color.c: Change argument types to rtx_insn *.
33681 * lra-eliminations.c: Likewise.
33682 * ira.h: Adjust.
33683
33684 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
33685
33686 * gcse.c: Change argument types to rtx_insn *.
33687
33688 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
33689
33690 * cse.c (cse_change_cc0_mode): Change argument type to rtx_insn *.
33691
33692 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
33693
33694 * emit-rtl.c (emit_debug_insn_before): Change argument type to
33695 rtx_insn *.
33696 * rtl.h: Adjust.
33697
33698 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
33699
33700 * emit-rtl.c (emit_note_before): Change argument type to rtx_insn *.
33701 * rtl.h: Adjust.
33702
33703 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
33704
33705 * emit-rtl.c (emit_note_after): Change argument type to rtx_insn *.
33706 * rtl.h: Adjust.
33707
33708 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
33709
33710 * emit-rtl.c (prev_cc0_setter): Change argument type to rtx_insn *.
33711 * rtl.h: Adjust.
33712
33713 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
33714
33715 * rtlanal.c (noop_move_p): Change argument type to rtx_insn *.
33716 * rtl.h: Adjust.
33717
33718 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
33719
33720 * rtlanal.c (add_shallow_copy_of_reg_note): Change argument type
33721 to rtx_insn *.
33722 * rtl.h: Adjust.
33723
33724 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
33725
33726 * rtlanal.c (remove_reg_equal_equiv_notes): Change argument type
33727 to rtx_insn *.
33728 * rtl.h: Likewise.
33729
33730 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
33731
33732 * except.c (can_nonlocal_goto): Change type of argument to
33733 rtx_insn *.
33734 * rtl.h: Adjust.
33735
33736 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
33737
33738 * rtlanal.c (computed_jump_p): Cange argument type to rtx_insn *.
33739 * rtl.h: Adjust.
33740
33741 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
33742
33743 * rtlanal.c (in_insn_list_p): Renamed from in_expr_list_p.
33744 * cfgrtl.c (can_delete_label_p): Adjust.
33745 * rtl.h: likewise.
33746
33747 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
33748
33749 * reorg.c (stop_search_p): Change argument to rtx_insn *.
33750
33751 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
33752
33753 * except.c (make_reg_eh_region_note): Change argument to
33754 rtx_insn *.
33755 (make_reg_eh_region_note_nothrow_nononlocal): Likewise.
33756 * except.h: Adjust.
33757
33758 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
33759
33760 * mode-switching.c (commit_mode_sets): Change type of local
33761 variable from rtx to rtx_insn *.
33762
33763 2015-05-08 Jim Wilson <jim.wilson@linaro.org>
33764
33765 * doc/install.texi (--enable-languages): Add missing jit and lto info.
33766 Add ^ to grep command.
33767 * doc/match-and-simplify.texi (GIMPLE API): Add missing fourth tree
33768 arg to last gimple_simplify declaration. Add missing gimple_build
33769 declaration for built-in function case with four tree args.
33770
33771 2015-05-08 Gregor Richards <gregor.richards@uwaterloo.ca>
33772 Szabolcs Nagy <szabolcs.nagy@arm.com>
33773
33774 * config/mips/linux.h (MUSL_DYNAMIC_LINKER32): Define.
33775 (MUSL_DYNAMIC_LINKER64, MUSL_DYNAMIC_LINKERN32): Define.
33776 (GNU_USER_DYNAMIC_LINKERN32): Update.
33777
33778 2015-05-08 Richard Biener <rguenther@suse.de>
33779
33780 PR tree-optimization/66036
33781 * tree-vect-data-refs.c (vect_compute_data_ref_alignment):
33782 Handle strided group loads.
33783 (vect_verify_datarefs_alignment): Likewise.
33784 (vect_enhance_data_refs_alignment): Likewise.
33785 (vect_analyze_group_access): Likewise.
33786 (vect_analyze_data_ref_access): Likewise.
33787 (vect_analyze_data_ref_accesses): Likewise.
33788 * tree-vect-stmts.c (vect_model_load_cost): Likewise.
33789 (vectorizable_load): Likewise.
33790
33791 2015-05-08 Segher Boessenkool <segher@kernel.crashing.org>
33792
33793 * config/rs6000/rs6000.md: Require operand inequality in one
33794 of the peepholes.
33795
33796 2015-05-08 Richard Sandiford <richard.sandiford@arm.com>
33797 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
33798
33799 * config/i386/i386.md (<mode>_ldx, *<mode>_ldx): Remove mode
33800 from (set ...).
33801 * config/rx/rx.md (movdi, movdf): Likewise.
33802 Likewise for define_peephole2s.
33803
33804 2015-05-08 Alan Lawrence <alan.lawrence@arm.com>
33805
33806 * config/aarch64/arm_neon.h (vceq_s64, vceq_u64, vceqz_s64, vceqz_u64,
33807 vcge_s64, vcge_u64, vcgez_s64, vcgt_s64, vcgt_u64, vcgtz_s64, vcle_s64,
33808 vcle_u64, vclez_s64, vclt_s64, vclt_u64, vcltz_s64, vtst_s64,
33809 vtst_u64): Rewrite using gcc vector extensions.
33810
33811 2015-05-08 Alan Lawrence <alan.lawrence@arm.com>
33812
33813 * config/aarch64/aarch64-simd.md (aarch64_vcond_internal<mode><mode>,
33814 vcond<mode><mode>, vcondu<mode><mode>): Add DImode variant.
33815
33816 2015-05-08 Alan Lawrence <alan.lawrence@arm.com>
33817
33818 * optabs.c (vector_compare_rtx): Handle RTL operands having VOIDmode.
33819
33820 2015-05-08 Szabolcs Nagy <szabolcs.nagy@arm.com>
33821
33822 * config/glibc-stdint.h (OPTION_MUSL): Define.
33823 (INT_FAST16_TYPE, INT_FAST32_TYPE, UINT_FAST16_TYPE, UINT_FAST32_TYPE):
33824 Change the definition based on OPTION_MUSL for 64 bit targets.
33825 * config/linux.h (OPTION_MUSL): Redefine.
33826 * config/alpha/linux.h (OPTION_MUSL): Redefine.
33827 * config/rs6000/linux.h (OPTION_MUSL): Redefine.
33828 * config/rs6000/linux64.h (OPTION_MUSL): Redefine.
33829
33830 2015-05-08 Gregor Richards <gregor.richards@uwaterloo.ca>
33831 Szabolcs Nagy <szabolcs.nagy@arm.com>
33832
33833 * config.gcc (LIBC_MUSL): New tm_defines macro.
33834 * config/linux.h (OPTION_MUSL): Define.
33835 (MUSL_DYNAMIC_LINKER, MUSL_DYNAMIC_LINKER32,)
33836 (MUSL_DYNAMIC_LINKER64, MUSL_DYNAMIC_LINKERX32,)
33837 (INCLUDE_DEFAULTS_MUSL_GPP, INCLUDE_DEFAULTS_MUSL_LOCAL,)
33838 (INCLUDE_DEFAULTS_MUSL_PREFIX, INCLUDE_DEFAULTS_MUSL_CROSS,)
33839 (INCLUDE_DEFAULTS_MUSL_TOOL, INCLUDE_DEFAULTS_MUSL_NATIVE): Define.
33840 * config/linux.opt (mmusl): New option.
33841 * doc/invoke.texi (GNU/Linux Options): Document -mmusl.
33842 * configure.ac (gcc_cv_libc_provides_ssp): Add *-*-musl*.
33843 (gcc_cv_target_dl_iterate_phdr): Add *-linux-musl*.
33844 * configure: Regenerate.
33845
33846 2015-05-08 H.J. Lu <hongjiu.lu@intel.com>
33847 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
33848
33849 PR target/48904
33850 * config.gcc (x86_64-*-knetbsd*-gnu): Add i386/knetbsd-gnu64.h.
33851 * config/i386/knetbsd-gnu64.h: New file.
33852
33853 2015-05-08 Marek Polacek <polacek@redhat.com>
33854
33855 PR c/64918
33856 * doc/invoke.texi: Document -Woverride-init-side-effects.
33857
33858 2015-05-07 Marek Polacek <polacek@redhat.com>
33859
33860 PR c/65179
33861 * doc/invoke.texi: Document -Wshift-negative-value.
33862
33863 2015-05-06 Aditya Kumar <hiraditya@msn.com>
33864
33865 * gcov-tool.c (do_merge): Refactore to remove int ret.
33866 * ipa-icf.c (sem_item::hash_referenced_symbol_properties): Change
33867 !type == FUNC to type != FUNC.
33868 * reload.h (struct target_reload): Changee to type of
33869 x_spill_indirect_levels from bool to unsigned char.
33870
33871 2015-05-07 Richard Sandiford <richard.sandiford@arm.com>
33872
33873 * rtl.h (always_void_p): New function.
33874 * gengenrtl.c (always_void_p): Likewise.
33875 (genmacro): Don't add a mode parameter to gen_rtx_foo if rtxes
33876 with code foo are always VOIDmode.
33877 * genemit.c (gen_exp): Update gen_rtx_foo calls accordingly.
33878 * builtins.c, caller-save.c, calls.c, cfgexpand.c, combine.c,
33879 compare-elim.c, config/aarch64/aarch64.c,
33880 config/aarch64/aarch64.md, config/alpha/alpha.c,
33881 config/alpha/alpha.md, config/arc/arc.c, config/arc/arc.md,
33882 config/arm/arm-fixed.md, config/arm/arm.c, config/arm/arm.md,
33883 config/arm/ldrdstrd.md, config/arm/thumb2.md, config/arm/vfp.md,
33884 config/avr/avr.c, config/bfin/bfin.c, config/c6x/c6x.c,
33885 config/c6x/c6x.md, config/cr16/cr16.c, config/cris/cris.c,
33886 config/cris/cris.md, config/darwin.c, config/epiphany/epiphany.c,
33887 config/epiphany/epiphany.md, config/fr30/fr30.c, config/frv/frv.c,
33888 config/frv/frv.md, config/h8300/h8300.c, config/i386/i386.c,
33889 config/i386/i386.md, config/i386/sse.md, config/ia64/ia64.c,
33890 config/ia64/vect.md, config/iq2000/iq2000.c,
33891 config/iq2000/iq2000.md, config/lm32/lm32.c, config/lm32/lm32.md,
33892 config/m32c/m32c.c, config/m32r/m32r.c, config/m68k/m68k.c,
33893 config/m68k/m68k.md, config/mcore/mcore.c, config/mcore/mcore.md,
33894 config/mep/mep.c, config/microblaze/microblaze.c,
33895 config/mips/mips.c, config/mips/mips.md, config/mmix/mmix.c,
33896 config/mn10300/mn10300.c, config/msp430/msp430.c,
33897 config/nds32/nds32-memory-manipulation.c, config/nds32/nds32.c,
33898 config/nds32/nds32.md, config/nios2/nios2.c, config/nvptx/nvptx.c,
33899 config/pa/pa.c, config/pa/pa.md, config/rl78/rl78.c,
33900 config/rs6000/altivec.md, config/rs6000/rs6000.c,
33901 config/rs6000/rs6000.md, config/rs6000/vector.md,
33902 config/rs6000/vsx.md, config/rx/rx.c, config/rx/rx.md,
33903 config/s390/s390.c, config/s390/s390.md, config/sh/sh.c,
33904 config/sh/sh.md, config/sh/sh_treg_combine.cc,
33905 config/sparc/sparc.c, config/sparc/sparc.md, config/spu/spu.c,
33906 config/spu/spu.md, config/stormy16/stormy16.c,
33907 config/tilegx/tilegx.c, config/tilegx/tilegx.md,
33908 config/tilepro/tilepro.c, config/tilepro/tilepro.md,
33909 config/v850/v850.c, config/v850/v850.md, config/vax/vax.c,
33910 config/visium/visium.c, config/xtensa/xtensa.c, cprop.c, dse.c,
33911 expr.c, gcse.c, ifcvt.c, ira.c, jump.c, lower-subreg.c,
33912 lra-constraints.c, lra-eliminations.c, lra.c, postreload.c, ree.c,
33913 reg-stack.c, reload.c, reload1.c, reorg.c, sel-sched.c,
33914 var-tracking.c: Update calls accordingly.
33915
33916 2015-05-07 Segher Boessenkool <segher@kernel.crashing.org>
33917
33918 PR middle-end/192
33919 PR middle-end/54303
33920 * varasm.c (function_mergeable_rodata_prefix): New function.
33921 (mergeable_string_section): Use it.
33922 (mergeable_constant_section): Use it.
33923
33924 2015-05-07 Jeff Law <law@redhat.com>
33925
33926 PR target/39726
33927 * match.pd (bit_and (plus/minus (convert @0) (convert @1) mask): New
33928 simplifier to narrow arithmetic.
33929 * generic-match-head.c: (types_match, single_use): New functions.
33930 * gimple-match-head.c: (types_match, single_use): New functions.
33931
33932 2015-05-07 Venkataramanan Kumar <venkataramanan.kumar@amd.com>
33933
33934 * combine.c (make_compound_operation): Remove checks for PLUS/MINUS
33935 rtx type.
33936
33937 2015-05-07 Richard Biener <rguenther@suse.de>
33938
33939 PR tree-optimization/66002
33940 * passes.def: Schedule another pass_merge_phi after ifcombine, right
33941 before phiopt.
33942
33943 2015-05-07 Marek Polacek <polacek@redhat.com>
33944 Martin Uecker <uecker@eecs.berkeley.edu>
33945
33946 * doc/invoke.texi: Document -fsanitize=bounds-strict.
33947 * flag-types.h (enum sanitize_code): Add SANITIZE_BOUNDS_STRICT, or it
33948 into SANITIZE_NONDEFAULT.
33949 * opts.c (common_handle_option): Handle -fsanitize=bounds-strict.
33950
33951 2015-05-07 Uros Bizjak <ubizjak@gmail.com>
33952
33953 PR target/66015
33954 * config/alpha/alpha.c (alpha_override_options_after_change): New.
33955 (TARGET_OVERRIDE_OPTIONS_AFTER_CHANGE): New.
33956 (alpha_override_options): Move align_loops, align_jumps and
33957 align_functions handling into alpha_override_options_after_change.
33958
33959 2015-05-06 Sandra Loosemore <sandra@codesourcery.com>
33960 Chris Jones <chrisj@nvidia.com>
33961 Joshua Conner <jconner@nvidia.com>
33962
33963 * config/arm/unknown-elf.h (STARTFILE_SPEC): Add conditional
33964 linking of crtfastmath.o.
33965 * config/arm/linux-eabi.h (STARTFILE_SPEC): Likewise.
33966
33967 2015-05-06 Segher Boessenkool <segher@kernel.crashing.org>
33968
33969 * config/rs6000/rs6000.md (cstore<mode>4_signed_imm): New expander.
33970 (cstore<mode>4_unsigned_imm): New expander.
33971 (cstore<mode>4): Remove empty constraint strings. Use the new
33972 expanders.
33973
33974 2015-05-06 Yvan Roux <yvan.roux@linaro.org>
33975
33976 PR target/64208
33977 * config/arm/iwmmxt.md ("*iwmmxt_arm_movdi"): Cleanup redundant
33978 alternatives.
33979
33980 2015-05-06 Szabolcs Nagy <szabolcs.nagy@arm.com>
33981
33982 * config/aarch64/geniterators.sh: Use standard BRE in sed.
33983
33984 2015-05-06 Alan Modra <amodra@gmail.com>
33985
33986 PR target/66033
33987 * config/rs6000/rs6000.md (nop): Use an unspec pattern.
33988 (UNSPEC_NOP): Define.
33989 (reload_vsx_from_gpr<mode>): Add missing DONE.
33990 (reload_gpr_from_vsx<mode>): Likewise.
33991 * config/rs6000/vsx.md (vsx_mul_v2di): Likewise.
33992 (vsx_div_v2di, vsx_udiv_v2di): Likewise.
33993
33994 2015-05-06 Christian Bruel <christian.bruel@st.com>
33995
33996 PR target/66015
33997 * config/aarch64/aarch64.c (aarch64_override_options): Move align_loops,
33998 align_jumps, align_functions into aarch64_override_options_after_change.
33999
34000 2015-05-06 Richard Biener <rguenther@suse.de>
34001
34002 * tree-vect-slp.c (vect_supported_load_permutation_p): Use
34003 vect_transform_slp_perm_load to check if we support a permutation
34004 for basic-block vectorization.
34005
34006 2015-05-06 Nick Clifton <nickc@redhat.com>
34007
34008 * config/rl78/rl78.c (need_to_save): Save register 22 if it is
34009 used, even if it is not being used as a frame pointer.
34010
34011 2015-05-05 Jason Merrill <jason@redhat.com>
34012
34013 * dwarf2out.c (gen_member_die): Don't emit anything for an
34014 anonymous class constructor.
34015
34016 2015-05-05 David Malcolm <dmalcolm@redhat.com>
34017
34018 * auto-profile.c (afdo_find_equiv_class): Fix indentation so
34019 that it reflects the block structure.
34020 (afdo_propagate_edge): Likewise.
34021 (afdo_calculate_branch_prob): Likewise.
34022 (afdo_annotate_cfg): Likewise.
34023 * cfgcleanup.c (equal_different_set_p): Likewise.
34024 (try_crossjump_to_edge): Likewise.
34025 * cgraph.c (cgraph_node::verify_node): Likewise.
34026 * cgraphunit.c (expand_all_functions): Likewise.
34027 * config/i386/i386.c (ix86_expand_copysign): Likewise.
34028 (exact_dependency_1): Likewise.
34029 * dwarf2asm.c (dw2_output_indirect_constants): Likewise.
34030 * dwarf2out.c (tree_add_const_value_attribute_for_decl): Likewise.
34031 * gensupport.c (process_define_subst): Likewise.
34032 * lto-wrapper.c (merge_and_complain): Likewise.
34033 * tree-if-conv.c (if_convertible_bb_p): Likewise.
34034 * tree-ssa-loop-prefetch.c (find_or_create_group): Likewise.
34035 * tree-ssa-tail-merge.c (gsi_advance_fw_nondebug_nonlocal): Likewise.
34036 * tree-vect-data-refs.c (vect_grouped_load_supported): Likewise.
34037 * tree-vect-loop.c (vectorizable_reduction): Likewise.
34038 * tree-vect-slp.c (vect_transform_slp_perm_load): Likewise.
34039 * tree-vect-stmts.c (vectorizable_shift): Likewise.
34040 * tree-vrp.c (vrp_finalize): Likewise.
34041 * tree.c (variably_modified_type_p): Likewise.
34042
34043 2015-05-05 Jack Howarth <howarth.at.gcc@gmail.com>
34044
34045 * config.gcc: Use darwin9.h, darwin10.h and darwin12.h
34046 on darwin12 and later.
34047 * config/darwin12.h (LINK_GCC_C_SEQUENCE_SPEC): Add
34048 file to pass -rdynamic on darwin12 and later.
34049 * config/darwin.opt (rdynamic): Add.
34050
34051 2015-05-05 Uros Bizjak <ubizjak@gmail.com>
34052
34053 * doc/extend.texi (C Extensions): Update menu for moved Variable
34054 Attributes and Type Attributes sections.
34055
34056 2015-05-05 Uros Bizjak <ubizjak@gmail.com>
34057
34058 PR target/65990
34059 * config/i386/i386.c (ix86_parse_stringop_strategy_string): Error out
34060 if rep_8byte stringop strategy was specified for 32-bit target.
34061
34062 2015-05-05 Ilya Tocar <ilya.tocar@intel.com>
34063
34064 PR target/65915
34065 * config/i386/i386.md (vector convert to float spltiter): Check for
34066 xmm16+, when splitting scalar float conversion.
34067 * config/i386/sse.md (sse2_cvtsi2sd): Support EVEX version.
34068
34069 2015-05-05 Nick Clifton <nickc@redhat.com>
34070
34071 * config/msp430/msp430-opts.h (enum msp430_regions): New.
34072 * config/msp430/msp430.c (msp430_override_options): Complain if
34073 -mcode-region or -mdata-region is used on a non MSP430X.
34074 (msp430_section_attr): New function. Checks lower, upper and
34075 either attributes.
34076 (msp430_attribute_table): Add lower, upper and either.
34077 (gen_prefix): New function. Generates a prefix for a section
34078 name.
34079 (msp430_select_section): New function - handles the choice of
34080 section for an object. Takes into account memory region
34081 attributes and options.
34082 (msp430_function_section): Use gen_prefix.
34083 (TARGET_SECTION_TYPE_FLAGS): Define.
34084 (msp430_section_type_flags): New function.
34085 (TARGET_ASM_UNIQUE_SECTION): Define.
34086 (msp430_unique_section): New function.
34087 (msp430_output_aligned_decl_common): New function.
34088 (msp430_do_not_relax_short_jumps): New function.
34089 * config/msp430/msp430.h (USE_SELECT_SECTION_FOR_FUNCTIONS):
34090 Define.
34091 (ASM_OUTPUT_ALIGNED_DECL_COMMON): Define.
34092 * config/msp430/msp430-protos.h
34093 (msp430_do_not_relax_short_jumps): New prototype.
34094 (msp430_output_aligned_decl_common): New prototype.
34095 * config/msp430/msp430.md (length): New attribute.
34096 (cbranchhi4_real): If msp430_do_not_relax_short_jumps is true
34097 then use a long code sequence for short jumps.
34098 * config/msp430/msp430.opt (mcode-region): New.
34099 (mdata-region): New.
34100 * doc/invoke.texi: Document new options.
34101 * doc/extend.texi: Document new attributes.
34102
34103 2015-05-05 Matthew Wahab <matthew.wahab@arm.com>
34104
34105 * config/aarch64-protos.h (struct cpu_branch_cost): New.
34106 (tune_params): Add field branch_costs.
34107 (aarch64_branch_cost): Declare.
34108 * config/aarch64.c (generic_branch_cost): New.
34109 (generic_tunings): Set field cpu_branch_cost to generic_branch_cost.
34110 (cortexa53_tunings): Likewise.
34111 (cortexa57_tunings): Likewise.
34112 (thunderx_tunings): Likewise.
34113 (xgene1_tunings): Likewise.
34114 (aarch64_branch_cost): Define.
34115 * config/aarch64/aarch64.h (BRANCH_COST): Redefine.
34116
34117 2015-05-05 Uros Bizjak <ubizjak@gmail.com>
34118
34119 * config/i386/i386.c: Use HOST_WIDE_INT_1 instead of (HOST_WIDE_INT) 1
34120 and HOST_WIDE_INT_1U instead of (unsigned HOST_WIDE_INT) 1.
34121 * config/i386/i386.md: Ditto.
34122 * config/i386/winnt.c: Ditto.
34123
34124 2015-05-05 Matthew Wahab <matthew.wahab@arm.com>
34125
34126 * doc/extend.texi (__atomic Builtins): Move implementation details
34127 to the end of the description, rewrite opening paragraphs, state
34128 difference with __sync builtins, state C11/C++11 assumptions,
34129 weaken itemized descriptions, add explanation of memory model
34130 behaviour, expand description of compare-exchange, simplify text.
34131
34132 2015-05-05 Renlin Li <renlin.li@arm.com>
34133
34134 * config/aarch64/aarch64.md (add<mode>3): Use mov when allowed.
34135
34136 2015-05-05 Yvan Roux <yvan.roux@linaro.org>
34137
34138 * config/aarch64/aarch64-elf-raw.h (CA53_ERR_843419_SPEC): Define.
34139 (LINK_SPEC): Include CA53_ERR_843419_SPEC.
34140 * config/aarch64/aarch64-linux.h (CA53_ERR_843419_SPEC): Define.
34141 (LINK_SPEC): Include CA53_ERR_843419_SPEC.
34142 * config/aarch64/aarch64.opt (mfix-cortex-a53-843419): New option.
34143 * configure: Regenerate.
34144 * configure.ac: Add --enable-fix-cortex-a53-843419 option.
34145 * doc/install.texi (aarch64*-*-*): Document new
34146 --enable-fix-cortex-a53-843419 option.
34147 * doc/invoke.texi (AArch64 Options): Document -mfix-cortex-a53-843419
34148 and -mno-fix-cortex-a53-843419 options.
34149
34150 2015-05-05 Uros Bizjak <ubizjak@gmail.com>
34151
34152 PR target/65871
34153 * config/i386/i386.md (*bmi_andn_<mode>_ccno): New pattern.
34154
34155 2015-05-04 Jan Hubicka <hubicka@ucw.cz>
34156
34157 * tree.c (verify_type): Check various uses of TYPE_MAXVAL;
34158 fix overactive TYPE_MIN_VALUE check and add FIXME for type
34159 compatibility problems.
34160
34161 2015-05-04 Ajit Agarwal <ajitkum@xilinx.com>
34162
34163 * config/microblaze/microblaze.md (cbranchsi4): Added immediate
34164 constraints.
34165 (cbranchsi4_reg): New.
34166 * config/microblaze/microblaze.c
34167 (microblaze_expand_conditional_branch_reg): New.
34168 * config/microblaze/microblaze-protos.h
34169 (microblaze_expand_conditional_branch_reg): New prototype.
34170
34171 2015-05-04 Ajit Agarwal <ajitkum@xilinx.com>
34172
34173 * config/microblaze/microblaze.md (peephole2): New.
34174
34175 2015-05-04 Jeff Law <law@redhat.com>
34176
34177 Revert:
34178 2015-05-04 Jeff Law <law@redhat.com>
34179
34180 * match.pd (bit_and (plus/minus (convert @0) (convert @1) mask): New
34181 simplifier to narrow arithmetic.
34182 * generic-match-head.c: (types_match, single_use): New functions.
34183 * gimple-match-head.c: (types_match, single_use): New functions.
34184
34185 2015-05-04 Kaz Kojima <kkojima@gcc.gnu.org>
34186
34187 PR target/65987
34188 * config/sh/sh.c (output_far_jump): Take into account crossing jumps.
34189 (split_branches): Likewise.
34190
34191 2015-05-04 Sandra Loosemore <sandra@codesourcery.com>
34192
34193 * common.opt (fdelete-null-pointer-checks): Init to -1.
34194 * config/nios2/elf.h (SUBTARGET_OVERRIDE_OPTIONS): Define to
34195 override flag_delete_null_pointer_checks default.
34196 * doc/invoke.texi (-fdelete-null-pointer-checks): Clarify
34197 behavior re address zero. Better document target-specific behavior.
34198 (-fisolate-errneous-paths-dereference): Mention relationship to
34199 -fdelete-null-pointer-checks.
34200
34201 2015-05-04 Jakub Jelinek <jakub@redhat.com>
34202
34203 PR tree-optimization/65984
34204 * ubsan.c: Include tree-cfg.h.
34205 (instrument_bool_enum_load): Use stmt_ends_bb_p instead of
34206 stmt_could_throw_p test, rename can_throw variable to ends_bb.
34207
34208 2015-05-04 Uros Bizjak <ubizjak@gmail.com>
34209
34210 * config/i386/i386.c: Change GET_CODE (...) == CONST_DOUBLE check
34211 to CONST_DOUBLE_P predicate.
34212 (standard_sse_constant_p): Return 0 for !TARGET_SSE.
34213 (ix86_legitimate_constant_p) <case CONST_WIDE_INT>: For 32bit targets,
34214 allow only operands that satisfy standard_sse_constant_p predicate.
34215 * config/i386/i386.md: Change GET_CODE (...) == CONST_DOUBLE check
34216 to CONST_DOUBLE_P predicate.
34217
34218 2015-05-04 Jeff Law <law@redhat.com>
34219
34220 * match.pd (bit_and (plus/minus (convert @0) (convert @1) mask): New
34221 simplifier to narrow arithmetic.
34222 * generic-match-head.c: (types_match, single_use): New functions.
34223 * gimple-match-head.c: (types_match, single_use): New functions.
34224
34225 2015-05-04 Andreas Tobler <andreast@gcc.gnu.org>
34226
34227 * config/arm/arm.c: Restore bootstrap.
34228
34229 2015-05-04 Uros Bizjak <ubizjak@gmail.com>
34230
34231 * config/i386/i386.h (TARGET_SUPPORTS_WIDE_INT): New define.
34232 * config/i386/i386.c (ix86_legitimate_constant_p): Handle TImode
34233 as CONST_WIDE_INT, not CONST_DOUBLE.
34234 (ix86_cannot_force_const_mem): Handle CONST_WIDE_INT.
34235 (output_pic_addr_const): Do not handle VOIDmode CONST_DOUBLEs.
34236 (ix86_find_base_term): Do not check for CONST_DOUBLE.
34237 (ix86_print_operand): Do not handle non-FPmode CONST_DOUBLEs.
34238 (ix86_build_signbit_mask): Rewrite using wide ints.
34239 (ix86_split_to_parts) [HOST_BITS_PER_WIDE_INT < 64]: Remove.
34240 (ix86_rtx_costs): Handle CONST_WIDE_INT.
34241 (find_constant): Ditto.
34242 * config/i386/i386.md (bts, btr, btc peepholes): Rewrite
34243 using gen_int_mode.
34244 * config/i386/predicates.md (x86_64_immediate_operand)
34245 <case CONST_INT>: Remove HOST_BITS_PER_WIDE_INT == 32 code.
34246 (x86_64_zext_immediate_operand): Remove CONST_DOUBLE handling.
34247 <case CONST_INT>: Remove HOST_BITS_PER_WIDE_INT == 32 code.
34248 (const0_operand): Also match const_wide_int.
34249 (constm1_operand): Ditto.
34250 (const1_operand): Ditto.
34251
34252 2015-05-04 Richard Biener <rguenther@suse.de>
34253
34254 PR tree-optimization/65965
34255 * tree-vect-data-refs.c (vect_analyze_data_ref_accesses): Split
34256 store groups at gaps.
34257
34258 2015-05-04 Richard Biener <rguenther@suse.de>
34259
34260 PR tree-optimization/65935
34261 * tree-vect-slp.c (vect_build_slp_tree): If we swapped operands
34262 then make sure to apply that swapping to the IL.
34263
34264 2015-05-04 Jakub Jelinek <jakub@redhat.com>
34265
34266 * Makefile.in (PATCHLEVEL_c): New variable.
34267 (DATESTAMP_s, REVISION_s): If PATCHLEVEL_c is not 0,
34268 expand the same way as if DEVPHASE_c was non-empty.
34269
34270 2015-05-04 Kai Tietz <ktietz@redhat.com>
34271
34272 PR target/65559
34273 * lto-wrapper.c (run_gcc): Open filename
34274 in binary-mode.
34275
34276 2015-05-03 Sandra Loosemore <sandra@codesourcery.com>
34277
34278 * doc/extend.texi (Variable Attributes, Type Attributes): Move
34279 sections up in file, to immediately after the Function Attributes
34280 section.
34281
34282 2015-05-02 Jan Hubicka <hubicka@ucw.cz>
34283
34284 * tree.c (verify_type): Check various uses of TYPE_MINVAL.
34285
34286 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
34287
34288 * tree-outof-ssa.c (emit_partition_copy): Return rtx_insn *.
34289 (insert_partition_copy_on_edge): Adjust.
34290 (insert_rtx_to_part_on_edge): Likewise.
34291 (insert_part_to_rtx_on_edge): Likewise.
34292
34293 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
34294
34295 * function.c (set_return_jump_label): Change type of argument to
34296 rtx_insn *.
34297 * function.h (set_return_jump_label): Adjust.
34298
34299 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
34300
34301 * reload.h (struct reg_equivs_t): Change type of init to
34302 rtx_insn *.
34303 * ira.c (fix_reg_equiv_init): Adjust.
34304 * reload1.c (eliminate_regs_1): Likewise.
34305 (init_eliminable_invariants): Likewise.
34306
34307 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
34308
34309 * cselib.c (fp_setter_insn): Take a rtx_insn *.
34310 * cselib.h (fp_setter_insn): Adjust.
34311
34312 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
34313
34314 * recog.c (struct validate_replace_src_data): Change type of
34315 insn field to rtx_insn *.
34316 (validate_replace_src_group): Change type of argument to rtx_insn *.
34317 * recog.h (validate_replace_src_group): Adjust.
34318
34319 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
34320
34321 * haifa-sched.c: Change the type of some variables to rtx_insn *.
34322 * sched-deps.c: Likewise.
34323 * sched-int.h: Likewise.
34324 * sched-rgn.c: Likewise.
34325 * sel-sched.c: Likewise.
34326
34327 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
34328
34329 to rtx_insn *.
34330 * config/i386/i386.c: Change the type of some arguments to
34331 rtx_insn *.
34332 * config/arm/arm.c: Likewise.
34333
34334 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
34335
34336 * lra-constraints.c: Change type of some arguments to rtx_insn *.
34337
34338 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
34339
34340 * regcprop.c (kill_autoinc_value): Change type of argument to
34341 rtx_insn *.
34342
34343 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
34344
34345 * genrecog.c (print_subroutine): Adjust.
34346 * recog.c (get_bool_attr_mask_uncached): Likewise.
34347 * recog.h (struct recog_data_d): Change the type of insn to
34348 rtx_insn *.
34349
34350 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
34351
34352 * dwarf2cfi.c (add_cfi_insn): Change type to rtx_insn *.
34353
34354 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
34355
34356 * df-problems.c (df_set_note): Change type of argument to
34357 rtx_insn *.
34358
34359 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
34360
34361 * builtins.c (expand_builtin_trap): Change type of local
34362 variable to rtx_insn *.
34363 (add_sched_insns_for_speculation): Likewise.
34364 (ix86_emit_save_regs): Likewise.
34365 (get_scratch_register_on_entry): Likewise.
34366 (ix86_emit_restore_reg_using_pop): Likewise.
34367 (ix86_emit_leave): Likewise.
34368 (ix86_emit_restore_regs_using_mov): Likewise.
34369 (ix86_expand_epilogue): Likewise.
34370 Likewise.
34371 (rl78_alloc_physical_registers_umul): Likewise.
34372 * cselib.c (discard_useless_locs): Likewise.
34373 (cselib_invalidate_regno): Likewise.
34374 (cselib_invalidate_mem): Likewise.
34375 * function.c (expand_function_start): Likewise.
34376 (emit_use_return_register_into_block): Likewise.
34377 * gcse.c: Likewise.
34378 * haifa-sched.c (ok_for_early_queue_removal): Likewise.
34379 * ifcvt.c (noce_get_alt_condition): Likewise.
34380 * loop-doloop.c (doloop_condition_get): Likewise.
34381 * lra-constraints.c (inherit_in_ebb): Likewise.
34382 * modulo-sched.c (sms_schedule_by_order): Likewise.
34383 * recog.c (next_insn_tests_no_inequality): Likewise.
34384 * reorg.c (emit_delay_sequence): Likewise.
34385 (update_reg_dead_notes): Likewise.
34386 (fix_reg_dead_note): Likewise.
34387 (fill_slots_from_thread): Likewise.
34388 (delete_computation): Likewise.
34389
34390 2015-05-01 Sandra Loosemore <sandra@codesourcery.com>
34391
34392 * doc/extend.texi (Variable Attributes): Add menu and proper
34393 @nodes to subsections. Move Microsoft Windows attributes to
34394 their own subsection.
34395 (Type Attributes): Reorganize introduction to remove duplicate
34396 list of attributes. Add menu and proper @nodes to subsections.
34397 Alphabetize the main table of common attributes.
34398
34399 2015-05-01 Rasmus Villemoes <rv@rasmusvillemoes.dk>
34400
34401 * match.pd: New simplification patterns.
34402 (x + (x & 1)) -> ((x + 1) & ~1)
34403 (x & ~(x & y)) -> ((x & ~y))
34404 (x | ~(x | y)) -> ((x | ~y))
34405
34406 2015-05-01 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
34407
34408 * target.def (attribute_table): Mention that struct attribute_spec
34409 is defined in tree-core.h rather than tree.h
34410 * doc/tm.texi: Regenerate.
34411
34412 2015-05-01 Richard Sandiford <richard.sandiford@arm.com>
34413
34414 * genrecog.c (test): Rename to rtx_test. Update rest of file
34415 accordingly.
34416
34417 2015-05-01 Andreas Schwab <schwab@linux-m68k.org>
34418
34419 PR translation/65959
34420 * params.h (DEFPARAM): Rename msgid to nocmsgid.
34421
34422 2015-05-01 Wilco Dijkstra <wdijkstr@arm.com>
34423
34424 * config/aarch64/aarch64-protos.h (tune_params):
34425 Add min_div_recip_mul_sf and min_div_recip_mul_df fields.
34426 * config/aarch64/aarch64.c (aarch64_min_divisions_for_recip_mul):
34427 Return value depending on target.
34428 (generic_tunings): Initialize new target settings.
34429 (cortexa53_tunings): Likewise.
34430 (cortexa57_tunings): Likewise.
34431 (thunderx_tunings): Likewise.
34432 (xgene1_tunings): Likewise.
34433
34434 2015-05-01 Wilco Dijkstra <wdijkstr@arm.com>
34435
34436 * config/arm/aarch-cost-tables.h (cortexa53_extra_costs):
34437 Make Cortex-A53 shift costs more accurate.
34438
34439 2015-05-01 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
34440
34441 * config/aarch64/aarch64.c (aarch64_rtx_costs): Handle FLOAT and
34442 UNSIGNED_FLOAT.
34443
34444 2015-05-01 Wilco Dijkstra <wdijkstr@arm.com>
34445
34446 * config/aarch64/aarch64.c (aarch64_rtx_costs):
34447 Calculate cost of op0 and op1 in PLUS and MINUS cases.
34448
34449 2015-05-01 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
34450
34451 * config/aarch64/aarch64.c (aarch64_rtx_costs, COMPARE case):
34452 Add cost of op0 in the compare-with-fpzero case.
34453
34454 2015-04-30 David Malcolm <dmalcolm@redhat.com>
34455
34456 * builtins.c (fold_builtin_1): Remove spurious second
34457 semicolon.
34458 * cgraph.h (symtab_node::get_availability): Likewise.
34459 * opts.c (common_handle_option): Remove spurious second semicolon.
34460 * tree-ssa-loop-ivopts.c (extract_cond_operands): Likewise.
34461 * tree-ssa-loop-niter.c (derive_constant_upper_bound_ops): Likewise.
34462
34463 2015-04-30 Caroline Tice <cmtice@google.com>
34464
34465 PR gcov-profile/65929
34466 * config/elfos.h (ASM_DECLARE_COLD_FUNCTION_NAME): New macro definition.
34467 (ASM_DECLARE_COLD_FUNCTION_SIZE): New macro definition.
34468 * doc/tm.texi.in (ASM_DECLARE_COLD_FUNCTION_NAME): Document new macro.
34469 (ASM_DECLARE_COLD_FUNCTION_SIZE): Document new macro.
34470 * doc/tm.texi: Regenerate.
34471 * final.c (final_scan_insn): Use ASM_DECLARE_COLD_FUNCTION_NAME
34472 instead of ASM_DECLARE_FUNCTION_NAME for cold partition name.
34473 * varasm.c (assemble_end_function): Use ASM_DECLARE_COLD_FUNCTION_SIZE
34474 instead of ASM_DECLARE_FUNCTION_SIZE for cold partition size.
34475
34476 2015-04-30 Marek Polacek <polacek@redhat.com>
34477
34478 * varasm.c (handle_cache_entry): Fix logic.
34479
34480 2015-04-30 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
34481
34482 * config/aarch64/aarch64.md (*extr<mode>5_insn_alt): New pattern.
34483 (*extrsi5_insn_uxtw_alt): Likewise.
34484 * config/aarch64/aarch64.c (aarch64_extr_rtx_p): New function.
34485 (aarch64_rtx_costs, IOR case): Use above to properly cost extr
34486 operations.
34487
34488 2015-04-30 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
34489
34490 * config/aarch64/aarch64.c (aarch64_rtx_costs): Handle pattern for
34491 fabd in ABS case.
34492
34493 2015-04-30 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
34494
34495 * config/aarch64/aarch64.md
34496 (*eor_one_cmpl_<SHIFT:optab><mode>3_alt): New pattern.
34497 (*eor_one_cmpl_<SHIFT:optab>sidi3_alt_ze): Likewise.
34498 * config/aarch64/aarch64.c (aarch64_rtx_costs): Handle MVN-shift
34499 appropriately. Handle alternative EON form.
34500
34501 2015-04-30 Renlin Li <renlin.li@arm.com>
34502
34503 * config/aarch64/aarch64-simd.md (vec_shr): Defined as an unspec.
34504 * config/aarch64/iterators.md (unspec): Add UNSPEC_VEC_SHR.
34505
34506 2015-04-30 Jan Hubicka <hubicka@ucw.cz>
34507
34508 PR ipa/65873
34509 * ipa-inline.c (can_inline_edge_p): It is safe to inline across
34510 -fstrict-aliasing boundaries.
34511
34512 2015-04-30 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
34513
34514 * config/aarch64/aarch64.c (aarch64_rtx_mult_cost): Handle MNEG
34515 and [SU]MNEGL patterns.
34516
34517 2015-04-30 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
34518
34519 * config/aarch64/aarch64.c (aarch64_shift_p): New function.
34520 (aarch64_rtx_mult_cost): Update comment to reflect that it also handles
34521 combined arithmetic-shift ops. Properly handle all shift and extend
34522 operations that can occur in combination with PLUS/MINUS.
34523 Rename maybe_fma to compound_p.
34524 (aarch64_rtx_costs): Use aarch64_shift_p when costing compound
34525 arithmetic and shift operations.
34526
34527 2015-04-30 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
34528
34529 * config/aarch64/aarch64.c (aarch64_rtx_costs): Use extend_arith
34530 rather than arith_shift cost when costing ADD/MINUS of an
34531 extended value.
34532
34533 2015-04-30 Jan Hubicka <hubicka@ucw.cz>
34534
34535 PR lto/65948
34536 * ipa-devirt.c (odr_types_equivalent_p): NULLPTR_TYPE is equivalent
34537 to itself.
34538
34539 2015-04-30 Richard Sandiford <richard.sandiford@arm.com>
34540
34541 * genrecog.c (simplify_tests): Check that CONST_INT and XWINT tests
34542 are for the same position.
34543
34544 2015-04-29 Aditya Kumar <hiraditya@hotmail.com>
34545
34546 * tree-vectorizer.c (set_uid_loop_bbs): New. Factored out of
34547 vectorize_loops.
34548 (vectorize_loops): Use it.
34549
34550 2015-04-29 Jan Hubicka <hubicka@ucw.cz>
34551
34552 * ipa-devirt.c (odr_subtypes_equivalent_p): Compare TYPE_NAME only
34553 for aggregate types.
34554 (register_odr_type): Be ready for MAIN_VARIANT of ODR type
34555 type to be non_ODR.
34556 * tree.c (need_assembler_name_p): Compute mangled name for
34557 non-fundamental types and integer types.
34558
34559 2015-04-29 Mikhail Maltsev <maltsevm@gmail.com>
34560
34561 * dojump.c (do_compare_rtx_and_jump): Use std::swap instead of
34562 manual swaps.
34563 * expr.c (expand_expr_real_2): Likewise.
34564
34565 2015-04-29 Jan Hubicka <hubicka@ucw.cz>
34566
34567 * tree.c (build_common_builtin_nodes): Do not build
34568 __builtin_alloca_with_align as equivalent of library alloca.
34569
34570 2015-04-29 Jan Hubicka <hubicka@ucw.cz>
34571
34572 * dwarf2out.c (gen_type_die_with_usage): Call verify_type.
34573 * ipa-chkp.c (chkp_copy_function_type_adding_bounds): Do not produce
34574 bugus variants.
34575 * tree.c: Include print-tree.h and ipa-utils.h
34576 (free_lang_data_in_type): Clear TYPE_VFIELD leaked by C FE.
34577 (free_lang_data_in_cgraph): Call verify_type.
34578 (verify_type_variant): New function.
34579 (verify_type): New function.
34580 * tree.h (verify_type): Declare.
34581
34582 2015-04-29 Steve Ellcey <sellcey@imgtec.com>
34583
34584 * config/mips/mips-cpus.def: (mips4): Change default processor
34585 from PROCESSOR_R8000 to PROCESSOR_R10000.
34586
34587 2015-04-29 Petar Jovanovic <petar.jovanovic@rt-rk.com>
34588
34589 * config/mips/mips.h (CRT_CALL_STATIC_FUNCTION): Fix the macro to use
34590 la/jalr instead of jal.
34591
34592 2015-04-29 Uros Bizjak <ubizjak@gmail.com>
34593
34594 PR target/65871
34595 * config/i386/i386.md (*bmi_bextr_<mode>_ccz): New pattern.
34596 (*bmi2_bzhi_<mode>3_1_ccz): Ditto.
34597 (setcc+movzbl peephole2): Check also clobbered reg.
34598 (setcc+andl peephole2): Ditto.
34599
34600 2015-04-29 Thomas Schwinge <thomas@codesourcery.com>
34601
34602 PR libgomp/65099
34603 * config/nvptx/mkoffload.c (target_ilp32): New variable.
34604 (main): Set it depending on "-foffload-abi=[...]".
34605 (compile_native, main): Use it to pass "-m32" or "-m64" to the
34606 compiler.
34607
34608 2015-04-29 Alan Lawrence <alan.lawrence@arm.com>
34609
34610 PR target/65770
34611 * config/aarch64/aarch64-simd.md (vec_store_lanesoi_lane<mode>,
34612 vec_store_lanesci_lane<mode>, vec_store_lanesxi_lane<mode>):
34613 Flip lane index back at assembly time for bigendian.
34614
34615 2015-04-29 Thomas Schwinge <thomas@codesourcery.com>
34616
34617 * tree.h (OMP_STANDALONE_CLAUSES): New macro.
34618 * gimplify.c (gimplify_omp_workshare): Use it.
34619
34620 2015-04-29 Richard Sandiford <richard.sandiford@arm.com>
34621
34622 * Makefile.in (build/genrecog.o): Depend on inchash.h.
34623 (build/genrecog$(build_exeext): Depend on build/hash-table.o and
34624 build/inchash.o
34625 * genrecog.c: Rewrite most of the code except for the third page.
34626
34627 2015-04-29 Richard Sandiford <richard.sandiford@arm.com>
34628
34629 * inchash.h, inchash.c: Include bconfig.h for build objects.
34630 * Makefile.in (build/inchash.o): New rule.
34631
34632 2015-04-29 Yvan Roux <yvan.roux@linaro.org>
34633
34634 PR target/65924
34635 * config/arm/thumb2.md (*thumb2_addsi3_compare0_scratch): Fix operand
34636 number in type attribute expression.
34637
34638 2015-04-29 Richard Sandiford <richard.sandiford@arm.com>
34639
34640 * loop-iv.c (canon_condition): Generalize to all types of integer
34641 constant.
34642
34643 2015-04-29 Bernhard Reuther-Fischer <aldot@gcc.gnu.org>
34644
34645 * gimple-walk.c: Prune duplicate or unneeded includes.
34646 (walk_gimple_asm): Only call parse_input_constraint or
34647 parse_output_constraint if their findings are used.
34648 Honour parse_input_constraint and parse_output_constraint
34649 result.
34650
34651 2015-04-29 Alan Lawrence <alan.lawrence@arm.com>
34652
34653 * config/arm/neon.md (vec_shl<mode>, vec_shr<mode>): Remove.
34654
34655 2015-04-29 Tom de Vries <tom@codesourcery.com>
34656
34657 PR tree-optimization/65893
34658 * passes.def (pass_all_optimizations): Move pass_stdarg to after
34659 pass_dce.
34660
34661 2015-04-29 Richard Biener <rguenther@suse.de>
34662
34663 * tree-vect-data-refs.c (vect_analyze_group_access): Properly
34664 compute GROUP_SIZE for basic-block SLP.
34665 * tree-vect-slp.c (vect_get_place_in_interleaving_chain): Properly
34666 take into account gaps.
34667 (vect_get_mask_element): Properly reject references to previous
34668 vectors.
34669 (vect_transform_slp_perm_load): Likewise.
34670
34671 2015-04-29 Christian Bruel <christian.bruel@st.com>
34672
34673 PR target/64835
34674 * config/i386/i386.c (ix86_default_align): New function.
34675 (ix86_override_options_after_change): Call ix86_default_align.
34676 (TARGET_OVERRIDE_OPTIONS_AFTER_CHANGE): New hook.
34677 (ix86_override_options_after_change): New function.
34678
34679 2015-04-28 Jeff Law <law@redhat.com>
34680
34681 * tree-ssa-dom.c (record_equality); Fix comment typos.
34682
34683 2015-04-28 Tom de Vries <tom@codesourcery.com>
34684
34685 PR tree-optimization/65887
34686 * gimplify.c (gimplify_modify_expr): Remove ifn_va_arg ap fixup.
34687
34688 2015-04-28 Sandra Loosemore <sandra@codesourcery.com>
34689
34690 * doc/extend.texi (Declaring Attributes of Functions): Split into
34691 subsections by target. Alphabetize the table of common attributes.
34692 Rewrite some of the introductory text to reflect the new structure.
34693 Update some cross-references to point to the new subsections.
34694 (Attribute Syntax): Put paragraph about "__" naming here. Remove
34695 duplicate copies in the discussion of function, label, and type
34696 attributes.
34697
34698 2015-04-28 Dominique d'Humieres <dominiq@lps.ens.fr>
34699
34700 PR bootstrap/65910
34701 * varasm.c (assemble_end_function): Guard ASM_DECLARE_FUNCTION_SIZE.
34702
34703 2015-04-28 Jason Merrill <jason@redhat.com>
34704
34705 PR c++/65734
34706 * stor-layout.c (layout_type): Layout the TYPE_MAIN_VARIANT.
34707 (finalize_type_size): Respect TYPE_USER_ALIGN.
34708 (layout_type) [ARRAY_TYPE]: Likewise.
34709
34710 2015-04-28 Yvan Roux <yvan.roux@linaro.org>
34711
34712 * config/arm/arm.md (*arm_movt): Fix type attribute.
34713 (*cmpsi_shiftsi): Likewise.
34714 (*cmpsi_shiftsi_swp): Likewise.
34715 (*movsicc_insn): Likewise.
34716 (*cond_move): Likewise.
34717 (*if_plus_move): Likewise.
34718 (*if_move_plus): Likewise.
34719 (*if_arith_move): Likewise.
34720 (*if_move_arith): Likewise.
34721 (*if_shift_move): Likewise.
34722 (*if_move_shift): Likewise.
34723 (*arm_movtas_ze): Likewise.
34724 * config/arm/thumb2.md (*thumb2_movsicc_insn): Fix alternative
34725 redundancy and type attribute.
34726 (*thumb2_movsi_insn): Fix type attribute.
34727 (*thumb2_addsi_short): Likewise.
34728 (thumb2_addsi3_compare0): Likewise.
34729 (*thumb2_addsi3_compare0_scratch): Merge alternatives and fix
34730 attributes accordingly.
34731
34732 2015-04-28 Markus Trippelsdorf <markus@trippelsdorf.de>
34733
34734 PR other/65911
34735 * function.c (pad_to_arg_alignment): Add parentheses.
34736
34737 2015-04-28 Uros Bizjak <ubizjak@gmail.com>
34738
34739 * config/frv/frv.h (CRT_GET_RFIB_DATA): Move definition to
34740 libgcc/config/frv/elf-lib.h.
34741
34742 2015-04-28 Tom de Vries <tom@codesourcery.com>
34743
34744 * tree-call-cdce.c: Fix example in header comment.
34745
34746 2015-04-28 Richard Biener <rguenther@suse.de>
34747
34748 PR tree-optimization/62283
34749 * tree-vect-slp.c (vect_build_slp_tree): When the SLP build
34750 fails fatally and we are vectorizing a basic-block simply
34751 cause the child to be constructed piecewise.
34752 (vect_analyze_slp_cost_1): Adjust.
34753 (vect_detect_hybrid_slp_stmts): Likewise.
34754 (vect_bb_slp_scalar_cost): Likewise.
34755 (vect_get_constant_vectors): For piecewise constructed
34756 constants place them after the last def.
34757 (vect_get_slp_defs): Adjust.
34758 * tree-vect-stmts.c (vect_is_simple_use): Detect in-BB
34759 externals for basic-block vectorization.
34760
34761 2015-04-28 Thomas Preud'homme <thomas.preudhomme@arm.com>
34762
34763 PR target/63503
34764 * config.gcc: Add cortex-a57-fma-steering.o to extra_objs for
34765 aarch64-*-*.
34766 * config/aarch64/t-aarch64: Add a rule for cortex-a57-fma-steering.o.
34767 * config/aarch64/aarch64.h (AARCH64_FL_USE_FMA_STEERING_PASS): Define.
34768 (AARCH64_TUNE_FMA_STEERING): Likewise.
34769 * config/aarch64/aarch64-cores.def: Set
34770 AARCH64_FL_USE_FMA_STEERING_PASS for cores with dynamic steering of
34771 FMUL/FMADD instructions.
34772 * config/aarch64/aarch64.c (aarch64_register_fma_steering): Declare.
34773 (aarch64_override_options): Include cortex-a57-fma-steering.h. Call
34774 aarch64_register_fma_steering () if AARCH64_TUNE_FMA_STEERING is true.
34775 * config/aarch64/cortex-a57-fma-steering.h: New file.
34776 * config/aarch64/cortex-a57-fma-steering.c: Likewise.
34777
34778 2015-04-28 Richard Sandiford <richard.sandiford@arm.com>
34779
34780 * gensupport.c (std_preds): Add missing codes to address_operand entry.
34781
34782 2015-04-28 Richard Biener <rguenther@suse.de>
34783
34784 PR tree-optimization/65851
34785 * tree-ssa-ccp.c (set_lattice_value): Perform a meet when
34786 changing CONSTANT to CONSTANT non-copy. Get new_val by reference.
34787 (ccp_lattice_meet): Remove stray argument. Use operand_equal_p
34788 rather than simple_cst_equal as the latter doesn't handle COMPLEX_CST.
34789 (ccp_visit_phi_node): Adjust.
34790 (evaluate_stmt): For simplifications to SSA names return its
34791 lattice value if that isn't VARYING. Return immediately when
34792 simplified to a constant.
34793 (visit_assignment): Adjust.
34794 (ccp_visit_stmt): Likewise.
34795
34796 2015-04-28 Tom de Vries <tom@codesourcery.com>
34797
34798 PR tree-optimization/65818
34799 * tree-stdarg.c (expand_ifn_va_arg_1): Ensure that side-effects are
34800 evaluated.
34801
34802 2015-04-27 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
34803
34804 * calls.c (save_fixed_argument_area): Don't check
34805 ARGS_GROW_DOWNWARD with the preprocessor.
34806 (restore_fixed_argument_area): Likewise.
34807 (mem_overlaps_already_clobbered_arg_p): Likewise.
34808 (check_sibcall_argument_overlap): Likewise.
34809 (expand_call): Likewise.
34810 (emit_library_call_value_1): Likewise.
34811 (store_one_arg): Likewise.
34812 * function.c (assign_parms): Likewise.
34813 (locate_and_pad_parm): Likewise.
34814 (pad_to_arg_alignment): Likewise.
34815 * targhooks.c (std_gimplify_va_arg_expr): Likewise.
34816
34817 2015-04-27 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
34818
34819 * config/pa/pa.h (ARGS_GROW_DOWNWARD): Define to 1.
34820 * defaults.h (ARGS_GROW_DOWNWARD): Define it to 0 by default.
34821 * calls.c (save_fixed_argument_area): Don't chekc if
34822 ARGS_GROW_DOWNWARD is defined.
34823 (restore_fixed_argument_area): Likewise.
34824 (mem_overlaps_already_clobbered_arg_p): Likewise.
34825 (check_sibcall_argument_overlap): Likewise.
34826 (expand_call): Likewise.
34827 (emit_library_call_value_1): Likewise.
34828 (store_one_arg): Likewise.
34829 * function.c (assign_parms): Likewise.
34830 (locate_and_pad_parm): Likewise.
34831 (pad_to_arg_alignment): Likewise.
34832 * targhooks.c (std_gimplify_va_arg_expr): Likewise.
34833
34834 2015-04-27 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
34835
34836 * defaults.h (gen_epilogue): New function.
34837 * alias.c (init_alias_analysis): don't check if HAVE_epilogue is
34838 defined.
34839 * cfgrtl.c (cfg_layout_finalize): Likewise.
34840 * df-scan.c: Likewise.
34841 * function.c (thread_prologue_and_epilogue_insns): Likewise.
34842 (reposition_prologue_and_epilogue_notes): Likewise.
34843 * reorg.c (find_end_label): Likewise.
34844 * toplev.c: Likewise.
34845
34846 2015-04-27 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
34847
34848 * bb-reorder.c (HAVE_return): Don't check if its undefined.
34849 * defaults.h (gen_simple_return): New function.
34850 (gen_simple_return): Likewise.
34851 (HAVE_return): Add default definition to false.
34852 (HAVE_simple_return): Likewise.
34853 * cfgrtl.c (force_nonfallthru_and_redirect): Remove checks if
34854 HAVE_return and HAVE_simple_return are defined.
34855 * function.c (gen_return_pattern): Likewise.
34856 (convert_jumps_to_returns): Likewise.
34857 (thread_prologue_and_epilogue_insns): Likewise.
34858 * reorg.c (find_end_label): Likewise.
34859 (dbr_schedule): Likewise.
34860 * shrink-wrap.c: Likewise.
34861 * shrink-wrap.h: Likewise.
34862
34863 2015-04-27 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
34864
34865 * defaults.h (EPILOGUE_USES): Add default definition of false.
34866 * df-scan.c (EPILOGUE_USES): Remove check if its undefined.
34867 * resource.c (init_resource_info): Likewise.
34868
34869 2015-04-27 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
34870
34871 * defaults.h (PCC_BITFIELD_TYPE_MATTERS): Add default definition
34872 to false.
34873 * dwarf2out.c (field_byte_offset): REmove check if
34874 PCC_BITFIELD_TYPE_MATTERS is defined.
34875 * stor-layout.c (layout_decl): Likewise.
34876 (update_alignment_for_field): Likewise.
34877 (place_field): Likewise.
34878
34879 2015-04-27 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
34880
34881 * defaults.h (HARD_REGNO_RENAME_OK): Add default definition to
34882 true.
34883 * regrename.c (check_new_reg_p): Remove check if
34884 HARD_REGNO_RENAME_OK is defined.
34885 * sel-sched.c (sel_hard_regno_rename_ok): Likewise.
34886
34887 2015-04-27 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
34888
34889 * calls.c (prepare_call_address): Remove ifdef NO_FUNCTION_CSE.
34890 * cse.c (fold_rtx): Likewise.
34891 * config/alpha/alpha.h (NO_FUNCTION_CSE): Define to 1.
34892 * config/arc/arc.h (NO_FUNCTION_CSE): Likewise.
34893 * config/avr/avr.h (NO_FUNCTION_CSE): Likewise.
34894 * config/cr16/cr16.h (NO_FUNCTION_CSE): Likewise.
34895 * config/epiphany/epiphany.h (NO_FUNCTION_CSE): Likewise.
34896 * config/frv/frv.h (NO_FUNCTION_CSE): Likewise.
34897 * config/h8300/h8300.h (NO_FUNCTION_CSE): Likewise.
34898 * config/i386/i386.h (NO_FUNCTION_CSE): Likewise.
34899 * config/ia64/ia64.h (NO_FUNCTION_CSE): Likewise.
34900 * config/lm32/lm32.h (enum reg_class) (NO_FUNCTION_CSE):
34901 * Likewise.
34902 * config/m32r/m32r.h (NO_FUNCTION_CSE): Likewise.
34903 * config/mep/mep.h (NO_FUNCTION_CSE): Likewise.
34904 * config/mn10300/mn10300.h (NO_FUNCTION_CSE): Likewise.
34905 * config/nds32/nds32.h (NO_FUNCTION_CSE): Likewise.
34906 * config/nios2/nios2.h (NO_FUNCTION_CSE): Likewise.
34907 * config/pa/pa.h (NO_FUNCTION_CSE): Likewise.
34908 * config/rs6000/rs6000.h (NO_FUNCTION_CSE): Likewise.
34909 * config/s390/s390.h (NO_FUNCTION_CSE): Likewise.
34910 * config/sparc/sparc.h (NO_FUNCTION_CSE): Likewise.
34911 * config/spu/spu.h (NO_FUNCTION_CSE): Likewise.
34912 * config/stormy16/stormy16.h (NO_FUNCTION_CSE): Likewise.
34913 * config/v850/v850.h (NO_FUNCTION_CSE): Likewise.
34914 * defaults.h (NO_FUNCTION_CSE): Provide default definition to 0.
34915 * doc/tm.texi: Regenerate.
34916 * doc/tm.texi.in: Document NO_FUNCTION_CSE is always defined to
34917 either true or false.
34918
34919 2015-04-27 Jeff Law <law@redhat.com>
34920
34921 PR tree-optimization/65217
34922 * tree-ssa-dom.c (record_equality): Given two SSA_NAMEs, if just one
34923 of them has a single use, make sure it is the LHS of the implied
34924 copy.
34925
34926 2015-04-28 Alan Modra <amodra@gmail.com>
34927
34928 PR target/65810
34929 * config/rs6000/rs6000.c (POWERPC64_TOC_POINTER_ALIGNMENT): Define.
34930 (offsettable_ok_by_alignment): Use minimum of decl and toc
34931 pointer alignment. Replace dead code with assertion.
34932 (use_toc_relative_ref): Add mode arg. Return false in -mcmodel=medium
34933 case if size exceeds toc pointer alignment.
34934 (rs6000_legitimize_reload_address): Update use_toc_relative_ref call.
34935 (rs6000_emit_move): Likewise.
34936 * configure.ac: Add linker toc pointer alignment check.
34937 * configure: Regenerate.
34938 * config.in: Regenerate.
34939
34940 2015-04-27 Yoshinori Sato <ysato@users.sourceforge.jp>
34941
34942 * config.gcc: Add h8300-*-linux.
34943 * config/h8300/linux.h: New.
34944 * config/h8300/t-linux: New.
34945 * config/h8300/h8300.c (h8300_option_override): Normal mode
34946 is not supported for h8300-*-linux.
34947 (h8300_file_start): Target priority change.
34948 (get_shift_alg): Likewise.
34949 (h8300_shift_need_scratch_p): Likewise.
34950 * config/h8300/h8300.h (TARGET_CPU_CPP_BUILTINS): Likewise.
34951 * config/h8300/h8300.md (define_peephole2): Remove duplicate condition.
34952
34953 2015-04-27 Caroline Tice <cmtice@google.com>
34954
34955 * final.c (final_scan_insn): Output cold_function_name as function
34956 type.
34957 * varasm.c (cold_function_name): Make global.
34958 (assemble_start_function): Re-set cold_function_name.
34959 (assemble_end_function): Output cold partition size.
34960 * varasm.h (cold_function_name): Declare global.
34961
34962 2015-04-27 Ilya Tocar <ilya.tocar@intel.com>
34963
34964 * config/i386/i386.h (EXT_REX_SSE_REG_P): New.
34965 * config/i386/i386.md (*cmpi<FPCMP:unord><MODEF:mode>_mixed): Use "v"
34966 constraint.
34967 (*movxi_internal_avx512f): Ditto.
34968 (define_split): Check for xmm16+, when splitting scalar float_extend.
34969 (*extendsfdf2_mixed): Use "v" constraint.
34970 (define_split): Check for xmm16+, when splitting scalar float_truncate.
34971 (*truncdfsf_fast_sse): Use "v" constraint.
34972 (fix_trunc<MODEF:mode><SWI48:mode>_sse): Ditto.
34973 (*float<SWI48:mode><MODEF:mode>2_sse): Ditto.
34974 (define_peephole2): Check for xmm16+, when converting scalar
34975 float_truncate.
34976 (define_peephole2): Check for xmm16+, when converting scalar
34977 float_extend.
34978 (*fop_<mode>_comm_mixed): Use "v" constraint.
34979 (*fop_<mode>_comm_sse): Ditto.
34980 (*fop_<mode>_1_mixed): Ditto.
34981 (*sqrt<mode>2_sse): Ditto.
34982 (*ieee_s<ieee_maxmin><mode>3): Ditto.
34983
34984 2015-04-27 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
34985
34986 * combine.c (simplify_if_then_else): Use std::swap instead
34987 of manually swapping.
34988 (known_cond): Likewise.
34989 (simplify_comparison): Likewise.
34990
34991 2015-04-27 Peter Bergner <bergner@vnet.ibm.com>
34992
34993 PR target/64579
34994 * config/rs6000/htm.md: Remove all define_expands.
34995 (UNSPECV_HTM_TABORTDC, UNSPECV_HTM_TABORTDCI, UNSPECV_HTM_TABORTWC,
34996 UNSPECV_HTM_TABORTWCI): Remove.
34997 (UNSPECV_HTM_TABORTXC, UNSPECV_HTM_TABORTXCI, UNSPECV_HTM_TTEST): New.
34998 (tabort_internal, tbegin_internal, tcheck_internal, tend_internal,
34999 trechkpt_internal, treclaim_internal, tsr_internal): Rename from this...
35000 (tabort, tbegin, tcheck, tend, trechkpt, treclaim, tsr): ...to this.
35001 (tabortdc_internal, tabortdci_internal, tabortwc_internal,
35002 tabortwci_internal): Remove define_insns.
35003 (tabort<wd>c, tabort<wd>ci): New define_insns.
35004 (tabort): Use gpc_reg_operand.
35005 (tcheck): Remove operand.
35006 (htm_mfspr_<mode>, htm_mtspr_<mode>): Use GPR mode macro.
35007 * config/rs6000/htmxlintrin.h (__TM_end): Use _HTM_TRANSACTIONAL as
35008 expected value.
35009 * config/rs6000/rs6000-builtin.def (BU_HTM_SPR0): Remove.
35010 (BU_HTM_SPR1): Rename to BU_HTM_V1. Remove use of RS6000_BTC_SPR.
35011 (tabort, tabortdc, tabortdci, tabortwc, tabortwci, tbegin,
35012 tcheck, tend, tendall, trechkpt, treclaim, tresume, tsuspend,
35013 tsr, ttest): Pass in the RS6000_BTC_CR attribute.
35014 (get_tfhar, set_tfhar, get_tfiar, set_tfiar, get_texasr, set_texasr,
35015 get_texasru, set_texasru): Pass in the RS6000_BTC_SPR attribute.
35016 (tcheck): Remove builtin argument.
35017 * config/rs6000/rs6000.c (rs6000_htm_spr_icode): Use TARGET_POWERPC64
35018 not TARGET_64BIT.
35019 (htm_expand_builtin): Fix usage of expandedp. Disallow usage of the
35020 tabortdc and tabortdci builtins when not in 64-bit mode.
35021 Modify code to handle the loss of the HTM define_expands.
35022 Emit code to copy the CR register to TARGET.
35023 (htm_init_builtins): Modify code to handle the loss of the HTM
35024 define_expands.
35025 * config/rs6000/rs6000.h (RS6000_BTC_32BIT): Delete.
35026 (RS6000_BTC_64BIT): Likewise.
35027 (RS6000_BTC_CR): New macro.
35028 * doc/extend.texi: Update documentation for htm builtins.
35029
35030 2015-04-27 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
35031
35032 * simplify-rtx.c (simplify_gen_binary): Use std::swap instead
35033 of manually swapping.
35034 (simplify_associative_operation): Likewise.
35035 (simplify_binary_operation): Likewise.
35036 (simplify_plus_minus): Likewise.
35037 (simplify_relational_operation): Likewise.
35038 (simplify_ternary_operation): Likewise.
35039
35040 2015-04-27 Richard Sandiford <richard.sandiford@arm.com>
35041
35042 * config/stormy16/predicates.md (xs_hi_general_operand): Delete.
35043 (xs_hi_nonmemory_operand): Remove error.
35044 * config/stormy16/stormy16.md (movhi, movhi_internal): Use
35045 general_operand rather than xs_hi_general_operand.
35046
35047 2015-04-27 Richard Biener <rguenther@suse.de>
35048
35049 * tree-ssa-dom.c (record_equivalences_from_phis): Valueize PHI arg.
35050 (record_equivalences_from_stmt): Valueize rhs.
35051 (record_equality): Canonicalize x and y order via
35052 tree_swap_operands_p. Do not swap operands for same loop depth.
35053
35054 2015-04-27 Georg-Johann Lay <avr@gjlay.de>
35055
35056 PR target/65296
35057 PR target/65895
35058 * config/avr/gen-avr-mmcu-specs.c (print_mcu): Close file.
35059 Add hint how to use own spec file.
35060
35061 2015-04-27 Jakub Jelinek <jakub@redhat.com>
35062
35063 PR tree-optimization/65875
35064 * tree-vrp.c (update_value_range): If in is_new case setting
35065 old_vr to VR_VARYING, also set new_vr to it. Remove
35066 old_vr->type == VR_VARYING test.
35067 (vrp_visit_phi_node): Return SSA_PROP_VARYING instead of
35068 SSA_PROP_INTERESTING if update_value_range returned true,
35069 but new range is VR_VARYING.
35070
35071 2015-04-27 Thomas Preud'homme <thomas.preudhomme@arm.com>
35072
35073 * combine.c (sign_extend_short_imm): New.
35074 (set_nonzero_bits_and_sign_copies): Use above new function for sign
35075 extension of src short immediate.
35076 (reg_nonzero_bits_for_combine): Likewise for tem.
35077
35078 2015-04-27 Eric Botcazou <ebotcazou@adacore.com>
35079
35080 * stor-layout.c (self_referential_component_ref_p): New predicate.
35081 (copy_self_referential_tree_r): Use it.
35082 (self_referential_size): Punt for simple operations directly involving
35083 self-referential component references.
35084 * tree-cfg.c (dump_function_to_file): Add missing final curly bracket.
35085
35086 2015-04-27 Eric Botcazou <ebotcazou@adacore.com>
35087
35088 * ipa-icf.c (icf_handled_component_p): Remove redundant tests.
35089
35090 2015-04-27 Richard Sandiford <richard.sandiford@arm.com>
35091
35092 * vec.h (vec): Make splice arguments const. Update definitions
35093 accordingly.
35094
35095 2015-04-27 Yvan Roux <yvan.roux@linaro.org>
35096
35097 * config/arm/arm.md (*arm_subsi3_insn): Fixed redundant
35098 alternatives.
35099
35100 2015-04-26 Tom de Vries <tom@codesourcery.com>
35101
35102 PR tree-optimization/65826
35103 * internal-fn.def: Mark VA_ARG with ECF_LEAF.
35104
35105 2015-04-24 Steve Ellcey <sellcey@imgtec.com>
35106
35107 * config/mips/mips.md: (*madd4<mode>) Remove accum_in attribute.
35108 (*madd3<mode>): Ditto.
35109 (*msub4<mode>): Ditto.
35110 (*msub3<mode>): Ditto.
35111 (*nmadd4<mode>): Ditto.
35112 (*nmadd3<mode>): Ditto.
35113 (*nmadd4<mode>_fastmath): Ditto.
35114 (*nmadd3<mode>_fastmath): Ditto.
35115 (*nmsub4<mode>): Ditto.
35116 (*nmsub3<mode>): Ditto.
35117 (*nmsub4<mode>_fastmath): Ditto.
35118 (*nmsub3<mode>_fastmath): Ditto.
35119
35120 2015-04-24 Jason Merrill <jason@redhat.com>
35121
35122 PR c++/50800
35123 * tree.c (build_reference_type_for_mode): Don't pass can_alias_all
35124 down when building TYPE_CANONICAL.
35125 (build_pointer_type_for_mode): Likewise.
35126
35127 2015-04-24 Chen Gang <gang.chen.5i5j@gmail.com>
35128
35129 * genrecog.c (validate_pattern): Check matching constraint refers
35130 to a lower numbered operand.
35131
35132 2015-04-24 Michael Meissner <meissner@linux.vnet.ibm.com>
35133
35134 PR target/65849
35135 * config/rs6000/rs6000.opt (-mvsx-align-128): Make options that
35136 save to independent variables use the Save attribute. This will
35137 allow these options to be modified with the #pragma/attribute
35138 target support.
35139 (-mallow-movmisalign): Likewise.
35140 (-mallow-df-permute): Likewise.
35141 (-msched-groups): Likewise.
35142 (-malways-hint): Likewise.
35143 (-malign-branch-targets): Likewise.
35144 (-mvectorize-builtins): Likewise.
35145 (-msave-toc-indirect): Likewise.
35146
35147 * config/rs6000/rs6000.c (rs6000_opt_masks): Add more options that
35148 can be set via the #pragma/attribute target support.
35149 (rs6000_opt_vars): Likewise.
35150 (rs6000_inner_target_options): If VSX was set, also set
35151 -mno-avoid-indexed-addresses.
35152
35153 2015-04-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
35154
35155 * config/arm/iterators.md (shiftable_ops): Rename to...
35156 (SHIFTABLE_OPS): ... This. Update use in comments.
35157 (ior_xor): Rename to...
35158 (IOR_XOR): ... This.
35159 (vqh_ops): Rename to...
35160 (VQH_OPS): ... This.
35161 (vqhs_ops): Rename to...
35162 (VQHS_OPS): ... This.
35163 (rshifts): Rename to...
35164 (RSHIFTS): ... This.
35165 (returns): Rename to...
35166 (RETURNS): ... This.
35167 * config/arm/arm.md: Update uses of the above.
35168 * config/arm/neon.md: Likewise.
35169
35170 2014-04-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
35171
35172 * config.host (case ${host}): Add aarch64*-*-linux case.
35173 * config/aarch64/aarch64-cores.def: Add IMPLEMENTER_ID and PART_NUMBER
35174 fields to all the cores.
35175 * config/aarch64/aarch64-elf.h (DRIVER_SELF_SPECS):
35176 Add MCPU_MTUNE_NATIVE_SPECS.
35177 * config/aarch64/aarch64-option-extensions.def: Add FEATURE_STRING
35178 field to all extensions.
35179 * config/aarch64/aarch64-opts.h: Adjust definition of AARCH64_CORE.
35180 * config/aarch64/aarch64.c: Adjust definition of AARCH64_CORE.
35181 Adjust definition of AARCH64_OPT_EXTENSION.
35182 * config/aarch64/aarch64.h: Adjust definition of AARCH64_CORE.
35183 (MCPU_MTUNE_NATIVE_SPECS): Define.
35184 * config/aarch64/driver-aarch64.c: New file.
35185 * config/aarch64/x-arch64: New file.
35186 * doc/invoke.texi (AArch64 Options): Document native value for -mcpu,
35187 -mtune and -march.
35188
35189 2015-04-24 Uros Bizjak <ubizjak@gmail.com>
35190 Wei Mi <wmi@google.com>
35191
35192 * config/i386/i386-protos.h (ix86_operands_ok_for_move_multiple): New.
35193 * config/i386/i386.c (extract_base_offset_in_addr): New function.
35194 (ix86_operands_ok_for_move_multiple): Ditto.
35195 * config/i386/sse.md (movsd/movhpd to movupd peephole2): New pattern.
35196 (movlpd/movhpd to movupd peephole2): Ditto.
35197
35198 2015-04-24 Marek Polacek <polacek@redhat.com>
35199
35200 PR c/61534
35201 * input.h (from_macro_expansion_at): Define.
35202
35203 PR c/63357
35204 * doc/invoke.texi: Update description of -Wlogical-op.
35205
35206 2015-04-24 Thomas Preud'homme <thomas.preudhomme@arm.com>
35207
35208 * config/arm/unknown-elf.h (ASM_OUTPUT_ALIGNED_DECL_LOCAL): fix
35209 ternary operator in fprintf and harmonize spacing.
35210
35211 2015-04-24 Uros Bizjak <ubizjak@gmail.com>
35212
35213 * config/i386/sse.md (*vec_widen_smult_even_v8si<mask_name>):
35214 Mark operand1 commutative.
35215
35216 2015-04-24 Uros Bizjak <ubizjak@gmail.com>
35217
35218 * config/i386/sse.md (*vec_concatv2sf_sse4_1): Do not allow both
35219 input operands in memory.
35220 (*vec_concatv2si_sse4_1): Ditto.
35221 (*vec_concatv2df): Ditto, except for SSE3 and equal input operands.
35222 (vec_extract_lo_<mode><mask_name>): Change operand 1 predicate to
35223 register_operand.
35224 (vec_extract_hi_v32hi): Ditto.
35225 (vec_extract_hi_v64hi): Ditto.
35226 (<mask_codefor>avx512f_unpckhpd512<mask_name>): Ditto.
35227
35228 2015-04-24 Thomas Preud'homme <thomas.preudhomme@arm.com>
35229 Steven Bosscher <steven@gcc.gnu.org>
35230
35231 PR rtl-optimization/34503
35232 * cprop.c (cprop_reg_p): New.
35233 (hash_scan_set): Use above function to check if register can be
35234 propagated.
35235 (find_avail_set): Return up to two sets, one whose source is a
35236 register and one whose source is a constant. Sets are returned in an
35237 array passed as parameter rather than as a return value.
35238 (cprop_insn): Use a do while loop rather than a goto. Try each of the
35239 sets returned by find_avail_set, starting with the one whose source is
35240 a constant. Use cprop_reg_p to check if register can be propagated.
35241 (do_local_cprop): Use cprop_reg_p to check if register can be
35242 propagated.
35243 (implicit_set_cond_p): Likewise.
35244
35245 2015-04-23 Jan Hubicka <hubicka@ucw.cz>
35246
35247 * ipa-icf.c (sem_function::equals_wpa): Compare thunk info.
35248 (sem_function::equals): IGNORED_NODES parameter is now unused;
35249 update call of equals_private.
35250 (sem_function::equals_private): Do not call equals_wpa; skip
35251 gimple body matching if there is no body.
35252 (sem_function::init): Add logic to hash tthunk info.
35253 (sem_function::parse): Also parse thunks.
35254 * ipa-icf.h (equals_private): Update declaration.
35255
35256 2015-04-23 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
35257
35258 * config/rs6000/altivec.md (*altivec_lvx_<mode>_internal): Remove
35259 asterisk from name so this can be generated directly.
35260 (*altivec_stvx_<mode>_internal): Likewise.
35261 * config/rs6000/rs6000.c (rs6000_emit_le_vsx_store): Add assert
35262 that this is never called during or after reload/lra.
35263 (rs6000_frame_related): Remove split_reg
35264 argument and logic that references it.
35265 (emit_frame_save): Remove last parameter from call to
35266 rs6000_frame_related.
35267 (rs6000_emit_prologue): Remove last parameter from eight calls to
35268 rs6000_frame_related. Force generation of stvx instruction for
35269 Altivec register saves. Remove split_reg handling, which is no
35270 longer needed.
35271 (rs6000_emit_epilogue): Force generation of lvx instruction for
35272 Altivec register restores.
35273
35274 2015-04-23 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
35275
35276 * config/rs6000/rs6000.opt (mcrypto): Change option description to
35277 match category changes in ISA 2.07B.
35278
35279 2015-04-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
35280
35281 * config/arm/iterators.md (GTGE, GTUGEU, COMPARISONS): New code
35282 iterators.
35283 (cmp_op, cmp_type): New code attributes.
35284 (NEON_VCMP, NEON_VACMP): New int iterators.
35285 (cmp_op_unsp): New int attribute.
35286 * config/arm/neon.md (neon_vc<cmp_op><mode>): New define_expand.
35287 (neon_vceq<mode>): Delete.
35288 (neon_vc<cmp_op><mode>_insn): New pattern.
35289 (neon_vc<cmp_op_unsp><mode>_insn_unspec): Likewise.
35290 (neon_vcgeu<mode>): Delete.
35291 (neon_vcle<mode>): Likewise.
35292 (neon_vclt<mode>: Likewise.
35293 (neon_vcage<mode>): Likewise.
35294 (neon_vcagt<mode>): Likewise.
35295 (neon_vca<cmp_op><mode>): New define_expand.
35296 (neon_vca<cmp_op><mode>_insn): New pattern.
35297 (neon_vca<cmp_op_unsp><mode>_insn_unspec): Likewise.
35298
35299 2015-04-23 Jan Hubicka <hubicka@ucw.cz>
35300
35301 * tree.h (attribute_value_equal): Declare.
35302 * tree.c (attribute_value_equal): Export.
35303
35304 2015-04-23 Jan Hubicka <hubicka@ucw.cz>
35305
35306 * ipa-icf.c (sem_item::compare_attributes): New function.
35307 (sem_item::compare_referenced_symbol_properties): Compare variable
35308 attributes.
35309 (sem_item::hash_referenced_symbol_properties): Record DECL_ALIGN.
35310 (sem_function::param_used_p): New function.
35311 (sem_function::equals_wpa): Fix attribute comparsion; match
35312 parameter type codes; do not compare paremter flags when
35313 they are not used; compare edge flags; compare indirect calls.
35314 (sem_item::update_hash_by_addr_refs): Hash reference type.
35315 (sem_function::equals_private): Do not match DECL_ATTRIBUTES.
35316 (sem_variable::equals_wpa): Do not match DECL_ALIGN; match
35317 reference use type.
35318 (sem_item_optimizer::update_hash_by_addr_refs): Use param_used_p.
35319 * ipa-icf.h (compare_attributes, param_used_p): Declare.
35320
35321 2015-04-23 Jan Hubicka <hubicka@ucw.cz>
35322
35323 * ipa-icf.c (symbol_compare_collection::symbol_compare_collection):
35324 cleanup.
35325 (sem_function::get_hash): Do not hash DECL_DISREGARD_INLINE_LIMITS,
35326 DECL_DECLARED_INLINE_P and DECL_IS_OPERATOR_NEW.
35327 (sem_item::compare_referenced_symbol_properties): New.
35328 (sem_item::hash_referenced_symbol_properties): New.
35329 (sem_item::compare_cgraph_references): Rename to ...
35330 (sem_item::compare_symbol_references): ... this one; use
35331 compare_referenced_symbol_properties.
35332 (sem_function::equals_wpa): Do not compare
35333 DECL_DISREGARD_INLINE_LIMITS, DECL_DECLARED_INLINE_P,
35334 DECL_IS_OPERATOR_NEW; compare pointer sizes.
35335 (sem_item::update_hash_by_addr_refs): Call
35336 hash_referenced_symbol_properties.
35337 (sem_item::update_hash_by_local_refs): Cleanup.
35338 (sem_function::merge): Do not mix up symbol properties.
35339 (sem_variable::equals_wpa): Use compare_symbol_references.
35340 * ipa-icf.h (sem_item::compare_referenced_symbol_properties): New.
35341 (sem_item::hash_referenced_symbol_properties): New.
35342 (sem_item::compare_symbol_references): New.
35343 (sem_item::compare_cgraph_references): Remove.
35344
35345 2015-04-23 Kwok Cheung Yeung <kcy@codesourcery.com>
35346
35347 PR target/26702
35348 * config/arm/unknown-elf.h (ASM_OUTPUT_ALIGNED_DECL_LOCAL):
35349 Emit size of local.
35350
35351 2015-04-23 Nick Clifton <nickc@redhat.com>
35352
35353 * config/rl78/rl78.c (rl78_preferred_reload_class): Add
35354 ATTRIBUTE_UNUSED to x parameter.
35355 * config/rl78/rl78-opts.h (enum rl78_mul_types): Remove unused MUL_RL78.
35356
35357 2015-04-23 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
35358
35359 * config/rs6000/crypto.md (crypto_vpmsum<CR_char>): Change
35360 TARGET_CRYPTO to TARGET_P8_VECTOR>
35361 (crypto_vpermxor_<mode>): Likewise.
35362 * config/rs6000/rs6000-builtin.def (BU_CRYPTO_2A): New #define.
35363 (BU_CRYPTO_3A): Likewise.
35364 (BU_CRYPTO_OVERLOAD_2A): Rename from BU_CRYPTO_OVERLOAD_2.
35365 (BU_CRYPTO_OVERLOAD_3A): New #define.
35366 (VPMSUMB): Change from BU_CRYPTO_2 to BU_CRYPTO_2A.
35367 (VPMSUMH): Likewise.
35368 (VPMSUMW): Likewise.
35369 (VPMSUMD): Likewise.
35370 (VPERMXOR_V2DI): Change from BU_CRYPTO_3 to BU_CRYPTO_3A.
35371 (VPERMXOR_V4SI): Likewise.
35372 (VPERMXOR_V8HI): Likewise.
35373 (VPERMXOR_V16QI): Likewise.
35374 (VPMSUM): Change from BU_CRYPTO_OVERLOAD_2 to
35375 BU_CRYPTO_OVERLOAD_2A.
35376 (VPERMXOR): Change from BU_CRYPTO_OVERLOAD3 to
35377 BU_CRYPTO_OVERLOAD_3A.
35378 * config/rs6000/rs6000.opt (mcrypto): Change description of
35379 option.
35380
35381 2015-04-23 Richard Biener <rguenther@suse.de>
35382
35383 * passes.def: Remove copy propagation passes run directly after CCP.
35384 * tree-ssa-ccp.c (get_value_for_expr): Fall back to a COPY for
35385 SSA names.
35386 (ccp_visit_phi_node): Rework to handle first executable edge
35387 specially.
35388
35389 2015-04-23 Matthew Wahab <matthew.wahab@arm.com>
35390
35391 * config/arm/arm.h (LEGITIMIZE_RELOAD_ADDRESS): Remove.
35392 (ARM_LEGITIMIZE_RELOAD_ADDRESS): Remove.
35393 (THUMB_LEGITIMIZE_RELOAD_ADDRESS): Remove.
35394 * config/arm/arm.c (arm_legimitimize_reload_address): Remove.
35395 (thumb_legimitimize_reload_address): Remove.
35396 * config/arm/arm-protos.h (arm_legimitimize_reload_address):
35397 Remove.
35398 (thumb_legimitimize_reload_address): Remove.
35399
35400 2015-04-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
35401
35402 * conditions.h (CC_STATUS_INIT): Gate on #ifndef CC_STATUS_INIT.
35403
35404 2015-04-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
35405
35406 * config/arm/arm.md (load_multiple): Reject operand 2 greater than
35407 MAX_LDM_STM_OPS.
35408 (store_multiple): Likewise.
35409
35410 2015-04-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
35411
35412 * config/arm/arm-protos.h (struct tune_params): Add issue_rate field.
35413 * config/arm/arm.c (arm_slowmul_tune, arm_fastmul_tune,
35414 arm_strongarm_tune, arm_xscale_tune, arm_9e_tune, arm_v6t2_tune,
35415 arm_cortex_tune, arm_cortex_a8_tune, arm_cortex_a7_tune,
35416 arm_cortex_a15_tune, arm_cortex_a53_tune, arm_cortex_a57_tune,
35417 arm_cortex_a9_tune, arm_cortex_a12_tune, arm_v7m_tune, arm_v6m_tune,
35418 arm_fa726te_tune arm_cortex_a5_tune, arm_xgene1_tune):
35419 Specify issue_rate value.
35420 (arm_issue_rate): Look up issue rate from tuning structs. Remove
35421 large switch statement.
35422 (arm_marvell_pj4_tune): New struct.
35423 * config/arm/arm-cores.def (marvell-pj4): Use arm_marvell_pj4_tune
35424 struct.
35425
35426 2015-04-23 Richard Biener <rguenther@suse.de>
35427
35428 * tree-vect-slp.c (vect_find_first_load_in_slp_instance): Remove.
35429 (vect_find_last_store_in_slp_instance): Rename to ...
35430 (vect_find_last_scalar_stmt_in_slp): ... this and generalize.
35431 (vect_analyze_slp_cost_1): Use vector_load for constant defs
35432 and vec_construct for external defs when estimating prologue cost.
35433 (vect_analyze_slp_instance): Do not init SLP_INSTANCE_FIRST_LOAD_STMT.
35434 Compute costs here only when vectorizing loops.
35435 (vect_slp_analyze_bb_1): Compute SLP cost here, after vector types
35436 have been determined.
35437 (vect_schedule_slp_instance): Simplify vectorized code placement
35438 and prepare for in-BB external defs.
35439 * tree-vectorizer.h (struct _slp_instance): Remove first_load member.
35440 (SLP_INSTANCE_FIRST_LOAD_STMT): Remove.
35441 * tree-vect-stmts.c (vect_model_store_cost): Remove PURE_SLP_STMT
35442 guard.
35443 (vect_model_load_cost): Likewise.
35444 (vectorizable_store): Instead add it here.
35445 (vectorizable_load): Likewise.
35446 (vect_is_simple_use): Dump def type textually.
35447
35448 2015-04-23 Richard Biener <rguenther@suse.de>
35449
35450 * cfgexpand.c (expand_gimple_stmt_1): Use ops.code.
35451 * cfgloop.c (verify_loop_structure): Verify the root loop node.
35452 * except.c (duplicate_eh_regions): Call get_eh_region_from_lp_number_fn
35453 instead of get_eh_region_from_lp_number.
35454 * loop-init.c (fix_loop_structure): If we removed a loop, reset
35455 the SCEV cache.
35456
35457 2015-04-23 Anton Blanchard <anton@samba.org>
35458
35459 * config/rs6000/rs6000.c (rs6000_output_function_prologue): No
35460 need for -mprofile-kernel to save LR to stack.
35461
35462 2015-04-22 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
35463
35464 * config/rs6000/rs6000.c (rtx_is_swappable_p): Commentary
35465 adjustments.
35466 (insn_is_swappable_p): Return 1 for a convert from double to
35467 single precision when all of its uses are splats of BE element
35468 zero.
35469
35470 2015-04-23 Kugan Vivekanandarajah <kuganv@linaro.org>
35471
35472 * ira-costs.c (record_operand_costs): Fix typo (remove redundant code).
35473
35474 2015-04-22 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
35475
35476 PR target/65456
35477 * config/rs6000/rs6000.c (rs6000_option_override_internal): For
35478 VSX + POWER8, enable TARGET_ALLOW_MOVMISALIGN and
35479 TARGET_EFFICIENT_UNALIGNED_VSX if not selected by command line
35480 option.
35481 (rs6000_builtin_mask_for_load): Return 0 for targets with
35482 efficient unaligned VSX accesses so that the vectorizer will use
35483 direct unaligned loads.
35484 (rs6000_builtin_support_vector_misalignment): Always return true
35485 for targets with efficient unaligned VSX accesses.
35486 (rs6000_builtin_vectorization_cost): Cost of unaligned loads and
35487 stores on targets with efficient unaligned VSX accesses is almost
35488 always the same as the cost of an aligned load or store, so model
35489 it that way.
35490 * config/rs6000/rs6000.h (SLOW_UNALIGNED_ACCESS): Return 0 for
35491 unaligned vectors if we have efficient unaligned VSX accesses.
35492 * config/rs6000/rs6000.opt (mefficient-unaligned-vector): New
35493 undocumented option.
35494
35495 2015-04-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
35496
35497 Revert:
35498 2015-04-22 Gregor Richards <gregor.richards@uwaterloo.ca>
35499
35500 * config.gcc (LIBC_MUSL): New tm_defines macro.
35501 * config/linux.h (OPTION_MUSL): Define.
35502 (INCLUDE_DEFAULTS_MUSL_GPP, INCLUDE_DEFAULTS_MUSL_LOCAL,)
35503 (INCLUDE_DEFAULTS_MUSL_PREFIX, INCLUDE_DEFAULTS_MUSL_CROSS,)
35504 (INCLUDE_DEFAULTS_MUSL_TOOL, INCLUDE_DEFAULTS_MUSL_NATIVE): Define.
35505
35506 * config/linux.opt (mmusl): New option.
35507 * configure.ac (gcc_cv_libc_provides_ssp): Add *-*-musl*.
35508 (gcc_cv_target_dl_iterate_phdr): Add *-linux-musl*.
35509
35510 * configure: Regenerate.
35511
35512 2015-04-22 Gregor Richards <gregor.richards@uwaterloo.ca>
35513
35514 * config.gcc (LIBC_MUSL): New tm_defines macro.
35515 * config/linux.h (OPTION_MUSL): Define.
35516 (INCLUDE_DEFAULTS_MUSL_GPP, INCLUDE_DEFAULTS_MUSL_LOCAL,)
35517 (INCLUDE_DEFAULTS_MUSL_PREFIX, INCLUDE_DEFAULTS_MUSL_CROSS,)
35518 (INCLUDE_DEFAULTS_MUSL_TOOL, INCLUDE_DEFAULTS_MUSL_NATIVE): Define.
35519
35520 * config/linux.opt (mmusl): New option.
35521 * configure.ac (gcc_cv_libc_provides_ssp): Add *-*-musl*.
35522 (gcc_cv_target_dl_iterate_phdr): Add *-linux-musl*.
35523
35524 * configure: Regenerate.
35525
35526 2015-04-22 Yury Gribov <y.gribov@samsung.com>
35527
35528 * doc/invoke.texi (-fsanitize-sections): Update description.
35529 * asan.c (set_sanitized_sections): Parse incoming arg.
35530 (section_sanitized_p): Support wildcards.
35531
35532 2015-04-22 Tom de Vries <tom@codesourcery.com>
35533
35534 PR tree-optimization/65823
35535 * gimplify.c (gimplify_modify_expr): Use operand_equal_p to test for
35536 equality between ap_copy and ap.
35537
35538 2015-04-22 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
35539
35540 PR target/47098
35541 * config/openbsd-oldgas.h (OBSD_LIB_SPEC): Add.
35542
35543 2015-04-22 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
35544
35545 PR target/47122
35546 * config.gcc (vax-*-openbsd*): Fix name of pthread spec header.
35547
35548 2015-04-22 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
35549
35550 PR target/55144
35551 * config.gcc (bfin*-linux-uclibc*): Prepend tmake_file and
35552 remove already contained t-files.
35553
35554 2015-04-22 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
35555
35556 * tree-tailcall.c (suitable_for_tail_opt_p, find_tail_calls):
35557 Remove unneeded forward declarations.
35558 (suitable_for_tail_call_opt_p): Commentary typo fix.
35559
35560 2015-04-22 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
35561
35562 * varasm.c (emit_bss): Remove redundant guard.
35563
35564 2015-04-22 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
35565
35566 * config/c6x/c6x.h (TARGET_CPU_CPP_BUILTINS): Add unk_isa.
35567
35568 2015-04-22 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
35569
35570 * config/bfin/bfin.h (TARGET_CPU_CPP_BUILTINS): Add BFIN_CPU_UNKNOWN.
35571
35572 2015-04-22 Hale Wang <hale.wang@arm.com>
35573 Terry Guo <terry.guo@arm.com>
35574
35575 PR rtl-optimization/64818
35576 * combine.c (can_combine_p): Don't combine user-specified
35577 register if it is in an asm input.
35578
35579 2015-04-21 Jan Hubicka <hubicka@ucw.cz>
35580
35581 PR ipa/65076
35582 * passes.def (early_optimizations): Add pass_dse.
35583
35584 2015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
35585
35586 * defaults.h (INSN_REFERENCES_ARE_DELAYED): New definition.
35587 * reorg.c (redundant_insn): Remove ifdef
35588 INSN_REFERENCES_ARE_DELAYED.
35589 * resource.c (mark_referenced_resources): Likewise.
35590
35591 2015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
35592
35593 * defaults.h (INSN_SETS_ARE_DELAYED): New definition.
35594 * reorg.c (redundant_insn): Remove ifdef INSN_SETS_ARE_DELAYED.
35595 * resource.c (mark_set_resources): Likewise.
35596
35597 2015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
35598
35599 * caller-save.c (insert_one_insn): Remove ifdef HAVE_cc0.
35600 * cfgcleanup.c (flow_find_cross_jump): Likewise.
35601 (flow_find_head_matching_sequence): Likewise.
35602 (try_head_merge_bb): Likewise.
35603 * combine.c (can_combine_p): Likewise.
35604 (try_combine): Likewise.
35605 (distribute_notes): Likewise.
35606 * df-problems.c (can_move_insns_across): Likewise.
35607 * final.c (final): Likewise.
35608 * gcse.c (insert_insn_end_basic_block): Likewise.
35609 * ira.c (find_moveable_pseudos): Likewise.
35610 * reorg.c (try_merge_delay_insns): Likewise.
35611 (fill_simple_delay_slots): Likewise.
35612 (fill_slots_from_thread): Likewise.
35613 * sched-deps.c (sched_analyze_2): Likewise.
35614
35615 2015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
35616
35617 * df-scan.c (df_get_entry_block_def_set): Remove #ifdef
35618 PIC_OFFSET_TABLE_REGNUM.
35619
35620 2015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
35621
35622 * alias.c (init_alias_target): Remove ifdef
35623 * HARD_FRAME_POINTER_IS_FRAME_POINTER.
35624 * df-scan.c (df_insn_refs_collect): Likewise.
35625 (df_get_regular_block_artificial_uses): Likewise.
35626 (df_get_eh_block_artificial_uses): Likewise.
35627 (df_get_entry_block_def_set): Likewise.
35628 (df_get_exit_block_use_set): Likewise.
35629 * emit-rtl.c (gen_rtx_REG): Likewise.
35630 * ira.c (ira_setup_eliminable_regset): Likewise.
35631 * reginfo.c (init_reg_sets_1): Likewise.
35632 * regrename.c (rename_chains): Likewise.
35633 * reload1.c (reload): Likewise.
35634 (eliminate_regs_in_insn): Likewise.
35635 * resource.c (mark_referenced_resources): Likewise.
35636 (init_resource_info): Likewise.
35637
35638 2015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
35639
35640 * defaults.h (MASK_RETURN_ADDR): New definition.
35641 * except.c (expand_builtin_extract_return_addr): Remove ifdef
35642 MASK_RETURN_ADDR.
35643
35644 2015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
35645
35646 * defaults.h (RETURN_ADDR_OFFSET): New definition.
35647 * except.c (expand_builtin_extract_return_addr): Remove ifdef
35648 RETURN_ADDR_OFFSET.
35649 (expand_builtin_frob_return_addr): Likewise.
35650
35651 2015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
35652
35653 * cfgrtl.c (rtl_merge_blocks): Change #if HAVE_cc0 to if (HAVE_cc0)
35654 (try_redirect_by_replacing_jump): Likewise.
35655 (rtl_tidy_fallthru_edge): Likewise.
35656 * combine.c (insn_a_feeds_b): Likewise.
35657 (find_split_point): Likewise.
35658 (simplify_set): Likewise.
35659 * cprop.c (cprop_jump): Likewise.
35660 * cse.c (cse_extended_basic_block): Likewise.
35661 * df-problems.c (can_move_insns_across): Likewise.
35662 * function.c (emit_use_return_register_into_block): Likewise.
35663 * haifa-sched.c (sched_init): Likewise.
35664 * ira.c (find_moveable_pseudos): Likewise.
35665 * loop-invariant.c (find_invariant_insn): Likewise.
35666 * lra-constraints.c (curr_insn_transform): Likewise.
35667 * postreload.c (reload_combine_recognize_const_pattern):
35668 * Likewise.
35669 * reload.c (find_reloads): Likewise.
35670 * reorg.c (delete_scheduled_jump): Likewise.
35671 (steal_delay_list_from_target): Likewise.
35672 (steal_delay_list_from_fallthrough): Likewise.
35673 (redundant_insn): Likewise.
35674 (fill_simple_delay_slots): Likewise.
35675 (fill_slots_from_thread): Likewise.
35676 (delete_computation): Likewise.
35677 * sched-rgn.c (add_branch_dependences): Likewise.
35678
35679 2015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
35680
35681 * genconfig.c (main): Always define HAVE_cc0.
35682 * caller-save.c (insert_one_insn): Change ifdef HAVE_cc0 to #if
35683 HAVE_cc0.
35684 * cfgcleanup.c (flow_find_cross_jump): Likewise.
35685 (flow_find_head_matching_sequence): Likewise.
35686 (try_head_merge_bb): Likewise.
35687 * cfgrtl.c (rtl_merge_blocks): Likewise.
35688 (try_redirect_by_replacing_jump): Likewise.
35689 (rtl_tidy_fallthru_edge): Likewise.
35690 * combine.c (do_SUBST_MODE): Likewise.
35691 (insn_a_feeds_b): Likewise.
35692 (combine_instructions): Likewise.
35693 (can_combine_p): Likewise.
35694 (try_combine): Likewise.
35695 (find_split_point): Likewise.
35696 (subst): Likewise.
35697 (simplify_set): Likewise.
35698 (distribute_notes): Likewise.
35699 * cprop.c (cprop_jump): Likewise.
35700 * cse.c (cse_extended_basic_block): Likewise.
35701 * df-problems.c (can_move_insns_across): Likewise.
35702 * final.c (final): Likewise.
35703 (final_scan_insn): Likewise.
35704 * function.c (emit_use_return_register_into_block): Likewise.
35705 * gcse.c (insert_insn_end_basic_block): Likewise.
35706 * haifa-sched.c (sched_init): Likewise.
35707 * ira.c (find_moveable_pseudos): Likewise.
35708 * loop-invariant.c (find_invariant_insn): Likewise.
35709 * lra-constraints.c (curr_insn_transform): Likewise.
35710 * optabs.c (prepare_cmp_insn): Likewise.
35711 * postreload.c (reload_combine_recognize_const_pattern):
35712 * Likewise.
35713 * reload.c (find_reloads): Likewise.
35714 (find_reloads_address_1): Likewise.
35715 * reorg.c (delete_scheduled_jump): Likewise.
35716 (steal_delay_list_from_target): Likewise.
35717 (steal_delay_list_from_fallthrough): Likewise.
35718 (try_merge_delay_insns): Likewise.
35719 (redundant_insn): Likewise.
35720 (fill_simple_delay_slots): Likewise.
35721 (fill_slots_from_thread): Likewise.
35722 (delete_computation): Likewise.
35723 (relax_delay_slots): Likewise.
35724 * sched-deps.c (sched_analyze_2): Likewise.
35725 * sched-rgn.c (add_branch_dependences): Likewise.
35726
35727 2015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
35728
35729 * combine.c (find_single_use): Remove HAVE_cc0 ifdef for code
35730 that is trivially ded on non cc0 targets.
35731 (simplify_set): Likewise.
35732 (mark_used_regs_combine): Likewise.
35733 * cse.c (new_basic_block): Likewise.
35734 (fold_rtx): Likewise.
35735 (cse_insn): Likewise.
35736 (cse_extended_basic_block): Likewise.
35737 (set_live_p): Likewise.
35738 * rtlanal.c (canonicalize_condition): Likewise.
35739 * simplify-rtx.c (simplify_binary_operation_1): Likewise.
35740
35741 2015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
35742
35743 * conditions.h: Define macros even if HAVE_cc0 is undefined.
35744 * emit-rtl.c: Define functions even if HAVE_cc0 is undefined.
35745 * final.c: Likewise.
35746 * jump.c: Likewise.
35747 * recog.c: Likewise.
35748 * recog.h: Declare functions even when HAVE_cc0 is undefined.
35749 * sched-deps.c (sched_analyze_2): Always compile case for cc0.
35750
35751 2015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
35752
35753 * defaults.h: New definition of EH_RETURN_DATA_REGNO.
35754 * except.c: Remove definition of EH_RETURN_DATA_REGNO.
35755 * builtins.c (expand_builtin): Remove check if
35756 EH_RETURN_DATA_REGNO is defined.
35757 * df-scan.c (df_bb_refs_collect): Likewise.
35758 (df_get_exit_block_use_set): Likewise.
35759 * haifa-sched.c (initiate_bb_reg_pressure_info): Likewise.
35760 * ira-lives.c (process_bb_node_lives): Likewise.
35761 * lra-lives.c (process_bb_lives): Likewise.
35762
35763 2015-04-21 Uros Bizjak <ubizjak@gmail.com>
35764
35765 * config/i386/i386.md (ARGP_REG, FRAME_REG, BND2_REG, BND3_REG,
35766 FIRST_PSEUDO_REG): New.
35767 * config/i386/i386.h (STACK_POINTER_REGNUM): Define to SP_REG.
35768 (ARG_POINTER_REGNUM): Define to ARGP_REG.
35769 (FRAME_POINTER_REGNUM): Define to FRAME_REG.
35770 (HARD_FRAME_POINTER_REGNUM): Define to BP_REG.
35771 (FIRST_PSEUDO_REGISTER): Define to FIRST_PSEUDO_REG.
35772 (FIRST_INT_REG): New.
35773 (LAST_INT_REG): New.
35774 (FIRST_*_REG): Define using *_REG.
35775 (LAST_*_REG): Ditto.
35776 (QI_REGNO_P): Define using FIRST_QU_REG and LAST_QI_REG.
35777 (LEGACY_INT_REGNO_P): Define using FIRST_INT_REG and LAST_INT_REG.
35778 (FIRST_FLOAT_REG): Define to FIRST_STACK_REG.
35779
35780 2015-04-21 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
35781
35782 * expmed.c: (synth_mult): Only assume overlapping
35783 shift with previous steps in alg_sub_t_m2 case.
35784
35785 2015-04-21 Richard Biener <rguenther@suse.de>
35786
35787 PR tree-optimization/65650
35788 * tree-ssa-ccp.c (valid_lattice_transition): Allow lattice
35789 transitions involving copies.
35790 (set_lattice_value): Adjust for copy lattice state.
35791 (ccp_lattice_meet): Do not merge UNDEFINED and a copy to the copy
35792 if that doesn't dominate the merge point.
35793 (bit_value_unop): Adjust what we treat as varying mask.
35794 (bit_value_binop): Likewise.
35795 (bit_value_assume_aligned): Likewise.
35796 (evaluate_stmt): When we simplified to a SSA name record a copy
35797 instead of dropping to varying.
35798 (visit_assignment): Simplify.
35799
35800 * gimple-match.h (gimple_simplify): Add another callback.
35801 * gimple-fold.c (fold_stmt_1): Adjust caller.
35802 (gimple_fold_stmt_to_constant_1): Likewise - pass valueize
35803 for the 2nd callback.
35804 * gimple-match-head.c (gimple_simplify): Add a callback that is
35805 used to valueize the stmt operands and use it that way.
35806
35807 2015-04-21 Richard Biener <rguenther@suse.de>
35808
35809 PR tree-optimization/65788
35810 * tree-ssa-ccp.c (evaluate_stmt): Evaluate to UNDEFINED early.
35811
35812 2015-04-21 Richard Biener <rguenther@suse.de>
35813
35814 * config/i386/i386.c (ix86_builtin_vectorization_cost): Scale
35815 vec_construct cost by vec_stmt_cost.
35816
35817 2015-04-21 Richard Biener <rguenther@suse.de>
35818
35819 * cfghooks.h (create_basic_block): Replace with two overloads
35820 for RTL and GIMPLE.
35821 (split_block): Likewise.
35822 * cfghooks.c (split_block): Rename to ...
35823 (split_block_1): ... this.
35824 (split_block): Add two type-safe overloads for RTL and GIMPLE.
35825 (split_block_after_labels): Call split_block_1.
35826 (create_basic_block): Rename to ...
35827 (create_basic_block_1): ... this.
35828 (create_basic_block): Add two type-safe overloads for RTL and GIMPLE.
35829 (create_empty_bb): Call create_basic_block_1.
35830 * cfgrtl.c (fixup_fallthru_exit_predecessor): Use
35831 split_block_after_labels.
35832 * omp-low.c (expand_parallel_call): Likewise.
35833 (expand_omp_target): Likewise.
35834 (simd_clone_adjust): Likewise.
35835 * tree-chkp.c (chkp_get_entry_block): Likewise.
35836 * cgraphunit.c (init_lowered_empty_function): Use the GIMPLE
35837 create_basic_block overload.
35838 (cgraph_node::expand_thunk): Likewise.
35839 * tree-cfg.c (make_blocks): Likewise.
35840 (handle_abnormal_edges): Likewise.
35841 * tree-inline.c (copy_bb): Likewise.
35842
35843 2015-04-21 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
35844
35845 * config/aarch64/aarch64.md (*<NLOGICAL:optab>_one_cmplsidi3_ze):
35846 New pattern.
35847 (*xor_one_cmplsidi3_ze): Likewise.
35848
35849 2015-04-21 Thomas Preud'homme <thomas.preudhomme@arm.com>
35850
35851 * df-core.c (df_finish_pass): Iterate over df->problems_by_index[] and
35852 use df_remove_problem rather than manually removing problems, leaving
35853 holes in df->problems_in_order[].
35854
35855 2015-04-21 Tom de Vries <tom@codesourcery.com>
35856
35857 PR tree-optimization/65802
35858 * internal-fn.def (VA_ARG): Add ECF_NOTROW to flags.
35859
35860 2015-04-21 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
35861
35862 * common/config/aarch64/aarch64-common.c (AARCH64_CPU_NAME_LENGTH):
35863 Increase to 128.
35864 (aarch64_rewrite_selected_cpu): Do not chop off extensions starting
35865 at '.'. Assert that there's enough space for everything.
35866
35867 2015-04-21 Uros Bizjak <ubizjak@gmail.com>
35868
35869 PR tree-optimization/64950
35870 Revert:
35871 2010-08-02 Uros Bizjak <ubizjak@gmail.com>
35872
35873 PR target/41089
35874 * config/alpha/alpha.c (alpha_build_builtin_va_list): Mark __offset
35875 as volatile.
35876
35877 2015-04-20 Shiva Chen <shiva0217@gmail.com>
35878
35879 PR rtl-optimization/64916
35880 * cfgcleanup.c (values_equal_p): New function.
35881 (can_replace_by): Use it.
35882
35883 2015-04-20 Paolo Carlini <paolo.carlini@oracle.com>
35884
35885 PR c++/65801
35886 * doc/invoke.texi ([-Wnarrowing]): Update.
35887
35888 2015-04-20 Jeff Law <law@redhat.com>
35889
35890 PR tree-optimization/65658
35891 * tree-ssa-threadupdate.c (redirection_block_p): Remove
35892 redundant test for GIMPLE_ASSIGN in last change.
35893
35894 2015-04-20 Uros Bizjak <ubizjak@gmail.com>
35895
35896 * config/i386/i386.c (set_pic_reg_ever_live): Remove.
35897 (legitimize_pic_address): Do not call set_pic_reg_ever_live.
35898 (legitimize_tls_address): Ditto.
35899 (ix86_expand_move): Ditto.
35900 (ix86_expand_binary_operator): Remove reload_in_progress checks.
35901 (ix86_expand_unary_operator): Ditto.
35902 * config/i386/predicates.md (index_register_operand): Ditto.
35903
35904 2015-04-20 Selim Belbachir <selim.belbachir@fr.thalesgroup.com>
35905
35906 * reorg.c (try_merge_delay_insns): Improve correctness checking
35907 for targets with multiple delay slots.
35908
35909 2015-04-20 Jeff Law <law@redhat.com>
35910
35911 PR tree-optimization/65658
35912 * tree-ssa-threadupdate.c (redirection_block_p): Ignore clobber
35913 statements too.
35914
35915 2015-04-20 Alan Lawrence <alan.lawrence@arm.com>
35916
35917 * config/aarch64/aarch64.c (aarch64_simd_emit_pair_result_insn): Delete.
35918 * config/aarch64/aarch64-protos.h (aarch64_simd_emit_pair_result_insn):
35919 Delete.
35920
35921 2015-04-20 Jakub Jelinek <jakub@redhat.com>
35922
35923 PR debug/65807
35924 * dwarf2out.c (add_AT_wide): Clear attr.dw_attr_val.val_entry.
35925
35926 2015-04-20 Richard Biener <rguenther@suse.de>
35927
35928 * gimple-fold.h (gimple_build): Remove optional valueize arguments.
35929 * gimple-fold.c (gimple_build_valueize): New function.
35930 (gimple_build): Always use gimple_build_valueize as valueize hook.
35931
35932 2015-04-20 Alan Lawrence <alan.lawrence@arm.com>
35933
35934 PR target/64134
35935 * config/aarch64/aarch64.c (aarch64_expand_vector_init): Load constant
35936 and overwrite variable parts if <= 1/2 the elements are variable.
35937
35938 2015-04-19 Vladimir Makarov <vmakarov@redhat.com>
35939
35940 PR rtl-optimization/65805
35941 * lra-eliminations.c (lra_eliminate_regs_1): Add new assert.
35942 Don't use difference of offset and previous offset if
35943 update_sp_offset is non-zero.
35944 (eliminate_regs_in_insn): Ditto.
35945 * lra-spills.c (remove_pseudos): Exchange 4th and 6th args in
35946 lra_eliminate_regs_1 call.
35947 * lra-constraints.c (get_equiv_with_elimination): Ditto.
35948
35949 2015-04-18 Trevor Saunders <tsaunders@mozilla.com>
35950
35951 * hash-table.h: Remove version of hash_table that stored value_type *.
35952 * asan.c, attribs.c, bitmap.c, cfg.c, cgraph.h, config/arm/arm.c,
35953 config/i386/winnt.c, config/ia64/ia64.c, config/mips/mips.c,
35954 config/sol2.c, coverage.c, cselib.c, dse.c, dwarf2cfi.c,
35955 dwarf2out.c, except.c, gcse.c, genmatch.c, ggc-common.c,
35956 gimple-ssa-strength-reduction.c, gimplify.c, haifa-sched.c,
35957 hard-reg-set.h, hash-map.h, hash-set.h, ipa-devirt.c, ipa-icf.h,
35958 ipa-profile.c, ira-color.c, ira-costs.c, loop-invariant.c,
35959 loop-iv.c, loop-unroll.c, lto-streamer.h, plugin.c, postreload-gcse.c,
35960 reginfo.c, statistics.c, store-motion.c, trans-mem.c, tree-cfg.c,
35961 tree-eh.c, tree-hasher.h, tree-into-ssa.c, tree-parloops.c,
35962 tree-sra.c, tree-ssa-coalesce.c, tree-ssa-dom.c, tree-ssa-live.c,
35963 tree-ssa-loop-im.c, tree-ssa-loop-ivopts.c, tree-ssa-phiopt.c,
35964 tree-ssa-pre.c, tree-ssa-reassoc.c, tree-ssa-sccvn.c,
35965 tree-ssa-structalias.c, tree-ssa-tail-merge.c,
35966 tree-ssa-threadupdate.c, tree-vectorizer.c, tree-vectorizer.h,
35967 valtrack.h, var-tracking.c, vtable-verify.c, vtable-verify.h: Adjust.
35968
35969 2015-04-17 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
35970 Jakub Jelinek <jakub@redhat.com>
35971
35972 PR target/65787
35973 * config/rs6000/rs6000.c (rtx_is_swappable_p): Ensure that a
35974 subsequent SH_NONE operand does not overwrite an existing *special
35975 value.
35976 (adjust_extract): Handle case where a vec_extract operation is
35977 wrapped in a PARALLEL.
35978
35979 2015-04-17 H.J. Lu <hongjiu.lu@intel.com>
35980
35981 PR target/65780
35982 * config/i386/i386.c (ix86_binds_local_p): Define only if
35983 TARGET_MACHO and TARGET_DLLIMPORT_DECL_ATTRIBUTES are false.
35984
35985 2015-04-17 Jeff Law <law@redhat.com>
35986
35987 PR tree-optimization/47679
35988 * Makefile.in (OBJS); Add tree-ssa-scopedtables.o.
35989 * tree-ssa-scopedtables.c: New file.
35990 * tree-ssa-scopedtables.h: New file.
35991 * tree-ssa-dom.c: Include tree-ssa-scopedtables.h.
35992 (const_and_copies): Change name/type.
35993 (record_const_or_copy): Move into tree-ssa-scopedtables.c
35994 (record_const_or_copy_1): Similarly.
35995 (restore_vars_to_original_value): Similarly.
35996 (pass_dominator::execute): Create and destroy const_and_copies table.
35997 (thread_across_edge): Update passing of const_and_copies.
35998 (record_temporary_equivalence): Use method calls rather than
35999 manipulating const_and_copies directly.
36000 (record_equality, cprop_into_successor_phis): Similarly.
36001 (dom_opt_dom_walker::before_dom_children): Similarly.
36002 (dom_opt_dom_walker::after_dom_children): Similarly.
36003 (eliminate_redundant_computations): Similarly.
36004 * tree-ssa-threadedge.c (remove_temporary_equivalences): Delete.
36005 (record_temporary_equivalence): Likewise.
36006 (invalidate_equivalences): Likewise.
36007 (record_temporary_equivalences_from_phis): Update due to type
36008 change of const_and_copies. Use method calls rather than
36009 manipulating the stack directly.
36010 (record_temporary_equivalences_from_stmts_at_dest): Likewise.
36011 (thread_through_normal_block, thread_across_edge): Likewise.
36012 (thread_across_edge): Likewise.
36013 * tree-ssa-threadedge.h (thread_across_edge): Update prototype.
36014 * tree-vrp.c: Include tree-ssa-scopedtables.h. Change type
36015 of equiv_stack.
36016 (identify_jump_threads): Update due to type change of equiv_stack.
36017 (finalize_jump_threads): Delete the equiv_stack when complete.
36018
36019 2015-04-17 Uros Bizjak <ubizjak@gmail.com>
36020
36021 * config/i386/i386.h (LEGITIMIZE_RELOAD_ADDRESS): Remove.
36022 * config/i386/i386.c (ix86_legitimize_reload_address): Ditto.
36023 * config/i386/i386-protos.h (ix86_legitimize_reload_address): Ditto.
36024
36025 2015-04-17 Andreas Tobler <andreast@gcc.gnu.org>
36026
36027 PR target/65535
36028 * config.gcc: Exit with a comment when we do not have a major version
36029 number for the FreeBSD target.
36030
36031 2015-04-17 Jakub Jelinek <jakub@redhat.com>
36032
36033 PR target/65689
36034 * genpreds.c (struct constraint_data): Add maybe_allows_reg and
36035 maybe_allows_mem bitfields.
36036 (maybe_allows_none_start, maybe_allows_none_end,
36037 maybe_allows_reg_start, maybe_allows_reg_end, maybe_allows_mem_start,
36038 maybe_allows_mem_end): New variables.
36039 (compute_maybe_allows): New function.
36040 (add_constraint): Use it to initialize maybe_allows_reg and
36041 maybe_allows_mem fields.
36042 (choose_enum_order): Sort the non-is_register/is_const_int/is_memory/
36043 is_address constraints such that those that allow neither mem nor
36044 reg come first, then those that only allow reg but not mem, then
36045 those that only allow mem but not reg, then the rest.
36046 (write_allows_reg_mem_function): New function.
36047 (write_tm_preds_h): Call it.
36048 * stmt.c (parse_output_constraint, parse_input_constraint): Use
36049 the generated insn_extra_constraint_allows_reg_mem function
36050 instead of always setting *allows_reg = true; *allows_mem = true;
36051 for unknown extra constraints.
36052
36053 2015-04-17 H.J. Lu <hongjiu.lu@intel.com>
36054
36055 PR target/65780
36056 * output.h (default_binds_local_p_3): New.
36057 * varasm.c (default_binds_local_p_3): Make it public. Take an
36058 argument to indicate if common symbol may be local. If common
36059 symbol may be local, treat non-external variable as defined
36060 locally.
36061 (default_binds_local_p_2): Pass !flag_pic to default_binds_local_p_3.
36062 (default_binds_local_p_1): Pass false to default_binds_local_p_3.
36063 * config/i386/i386.c (ix86_binds_local_p): New.
36064 (TARGET_BINDS_LOCAL_P): Replace default_binds_local_p_2 with
36065 ix86_binds_local_p.
36066
36067 2015-04-17 Jakub Jelinek <jakub@redhat.com>
36068
36069 PR debug/65771
36070 * dwarf2out.c (mem_loc_descriptor): For CONST, fallback to
36071 trying mem_loc_descriptor on XEXP (rtl, 0).
36072
36073 2015-04-17 Martin Liska <mliska@suse.cz>
36074
36075 * ipa-icf.c (sem_item_optimizer::subdivide_classes_by_sensitive_refs):
36076 Release symbol_compare_collection.
36077 * ipa-reference.c: Add TODO that a vector should be released.
36078
36079 2015-04-17 Sivanupandi Pitchumani <Pitchumani.Sivanupandi@atmel.com>
36080
36081 PR target/65296
36082 * config/avr/gen-avr-mmcu-specs.c (*avrlibc_startfile): Adjust
36083 to new AVR-LibC file layout (bug #44574).
36084 (*avrlibc_devicelib): Same.
36085 * config/avr/avr-mcus.def: Adjust comments.
36086 * config/avr/avr.opt (nodevicelib): Adjust help.
36087
36088 2015-04-17 Alan Lawrence <alan.lawrence@arm.com>
36089
36090 * config/aarch64/arm_neon.h (vdup_n_f32): Remove forward declaration.
36091
36092 2015-04-17 Patrick Palka <ppalka@gcc.gnu.org>
36093
36094 PR c++/64527
36095 * gimplify.c (gimplify_init_constructor): Always emit a
36096 side-effecting constructor.
36097
36098 2015-04-17 Tom de Vries <tom@codesourcery.com>
36099
36100 PR tree-optimization/64950
36101 * gimplify.c (gimplify_function_tree): Tentatively set PROP_gimple_lva
36102 in cfun->curr_properties.
36103 (gimplify_va_arg_expr): Clear PROP_gimple_lva in cfun->curr_properties
36104 if we generate an IFN_VA_ARG.
36105 * tree-inline.c (expand_call_inline): Reset PROP_gimple_lva in dest
36106 function if PROP_gimple_lva is not set in src function.
36107
36108 2015-04-17 Tom de Vries <tom@codesourcery.com>
36109 Michael Matz <matz@suse.de>
36110
36111 PR tree-optimization/64950
36112 * gimple-iterator.c (update_modified_stmts): Remove static.
36113 * gimple-iterator.h (update_modified_stmts): Declare.
36114 * gimplify.c (gimplify_modify_expr): Handle IFN_VA_ARG.
36115 (gimplify_va_arg_internal): New function.
36116 (gimplify_va_arg_expr): Use IFN_VA_ARG.
36117 * gimplify.h (gimplify_va_arg_internal): Declare.
36118 * internal-fn.c (expand_VA_ARG): New unreachable function.
36119 * internal-fn.def (VA_ARG): New DEF_INTERNAL_FN.
36120 * tree-stdarg.c (gimple_call_ifn_va_arg_p, expand_ifn_va_arg_1)
36121 (expand_ifn_va_arg): New function.
36122 (pass_data_stdarg): Add PROP_gimple_lva to properties_provided field.
36123 (pass_stdarg::execute): Call expand_ifn_va_arg.
36124 (pass_data_lower_vaarg): New pass_data.
36125 (pass_lower_vaarg): New gimple_opt_pass.
36126 (pass_lower_vaarg::gate, pass_lower_vaarg::execute)
36127 (make_pass_lower_vaarg): New function.
36128 * cfgexpand.c (pass_data_expand): Add PROP_gimple_lva to
36129 properties_required field.
36130 * passes.def (all_passes): Add pass_lower_vaarg.
36131 * tree-pass.h (PROP_gimple_lva): Add define.
36132 (make_pass_lower_vaarg): Declare.
36133
36134 2015-04-17 Tom de Vries <tom@codesourcery.com>
36135
36136 * fold-const.c (operand_equal_p): Handle INTERNAL_FNs.
36137 * calls.c (call_expr_flags): Same.
36138
36139 2015-04-17 Tom de Vries <tom@codesourcery.com>
36140
36141 * tree-stdarg.c (optimize_va_list_gpr_fpr_size): Factor out of ...
36142 (pass_stdarg::execute): ... here.
36143
36144 2015-04-17 Tom de Vries <tom@codesourcery.com>
36145 Michael Matz <matz@suse.de>
36146
36147 * tree-cfg.c (make_blocks_1): Factor out of ...
36148 (make_blocks): ... here.
36149 (make_edges_bb): Factor out of ...
36150 (make_edges): ... here.
36151 (gimple_find_sub_bbs): New function.
36152 * tree-cfg.h (gimple_find_sub_bbs): Declare.
36153
36154 2015-04-17 Tom de Vries <tom@codesourcery.com>
36155
36156 * tree.c (free_lang_data): Disable lang_hooks.gimplify_expr.
36157
36158 2015-04-17 Yury Gribov <y.gribov@samsung.com>
36159
36160 * asan.c (set_sanitized_sections): New function.
36161 (section_sanitized_p): Ditto.
36162 (asan_protect_global): Optionally sanitize user-defined
36163 sections.
36164 * asan.h (set_sanitized_sections): Declare new function.
36165 * common.opt (fsanitize-sections): New option.
36166 * doc/invoke.texi (-fsanitize-sections): Document new option.
36167 * opts-global.c (handle_common_deferred_options): Handle new
36168 option.
36169
36170 2015-04-17 Jakub Jelinek <jakub@redhat.com>
36171
36172 PR debug/65771
36173 * dwarf2out.c (loc_list_from_tree): Return NULL
36174 for DEBUG_EXPR_DECL.
36175
36176 2015-04-17 Christian Bruel <christian.bruel@st.com>
36177
36178 * ipa-inline.c (can_inline_edge_p): Allow inlining of functions with
36179 same attributes.
36180
36181 2015-04-16 Zhouyi Zhou <yizhouzhou@ict.ac.cn>
36182
36183 * ira-color.c (setup_left_conflict_sizes_p): Do not process
36184 node itself when computing left conflict subnode size.
36185
36186 2015-04-16 Uros Bizjak <ubizjak@gmail.com>
36187
36188 * config/i386/predicates.md (register_mixssei387nonimm_operand): New.
36189 * config/i386/i386.md (*fop_<mode>_1_mixed): Merge with
36190 *fop_<mode>_1_sse using enabled attribute. Use
36191 register_mixssei387nonimm_operand operand 1 predicate. Change
36192 alternative 3 constraints from "x" to "v".
36193
36194 2015-04-16 Richard Biener <rguenther@suse.de>
36195
36196 PR tree-optimization/65774
36197 * tree-ssa-ccp.c (evaluate_stmt): Constrain types we invoke
36198 bit-value tracking on.
36199
36200 2015-04-16 Richard Biener <rguenther@suse.de>
36201
36202 PR tree-optimization/64277
36203 * tree-vrp.c (check_array_ref): Fix anti-range handling,
36204 simplify upper bound handling.
36205 (search_for_addr_array): Simplify.
36206 (check_array_bounds): Handle ADDR_EXPRs here.
36207 (check_all_array_refs): Simplify.
36208
36209 2015-04-16 Uros Bizjak <ubizjak@gmail.com>
36210
36211 * config/i386/i386.c (print_reg): Rewrite function.
36212
36213 2015-04-16 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
36214
36215 * config/s390/s390.h (IRA_HARD_REGNO_ADD_COST_MULTIPLIER):
36216 Invert the condition.
36217
36218 2015-04-16 Renlin Li <renlin.li@arm.com>
36219
36220 * simplify-rtx.c (simplify_unary_operation_1): Fix a typo. Enable two
36221 simplifications for UNSIGNED_FLOAT.
36222
36223 2015-04-16 Nick Clifton <nickc@redhat.com>
36224
36225 * config/rl78/rl78-opts.h (enum rl78_mul_types): Add MUL_G14 and
36226 MUL_UNINIT.
36227 (enum rl78_cpu_type): New.
36228 * config/rl78/rl78-virt.md (attr valloc): Add divhi and divsi.
36229 (umulhi3_shift_virt): Remove m constraint from operand 1.
36230 (umulqihi3_virt): Likewise.
36231 * config/rl78/rl78.c (rl78_option_override): Add code to process
36232 -mcpu and -mmul options.
36233 (rl78_alloc_physical_registers): Add code to handle divhi and
36234 divsi valloc attributes.
36235 (set_origin): Likewise.
36236 * config/rl78/rl78.h (RL78_MUL_G14): Define.
36237 (TARGET_G10, TARGET_G13, TARGET_G14): Define.
36238 (TARGET_CPU_CPP_BUILTINS): Define __RL78_MUL_xxx__ and
36239 __RL78_Gxx__.
36240 (ASM_SPEC): Pass -mcpu on to assembler.
36241 * config/rl78/rl78.md (mulqi3): Add a clobber of AX.
36242 (mulqi3_rl78): Likewise.
36243 (mulhi3_g13): Likewise.
36244 (mulhi3): Generate the G13 or G14 versions of the insn directly.
36245 (mulsi3): Likewise.
36246 (mulhi3_g14): Add clobbers of AX and BC.
36247 (mulsi3_g14): Likewise.
36248 (mulsi3_g13): Likewise.
36249 (udivmodhi4, udivmodhi4_g14, udivmodsi4): New patterns.
36250 (udivmodsi4_g14, udivmodsi4_g13): New patterns.
36251 * config/rl78/rl78.opt (mmul): Initialise value to
36252 RL78_MUL_UNINIT.
36253 (mcpu): New option.
36254 (m13, m14, mrl78): New option aliases.
36255 * config/rl78/t-rl78 (MULTILIB_OPTIONS): Add mg13 and mg14.
36256 (MULTILIB_DIRNAMES): Add g13 and g14.
36257 * doc/invoke.texi: Document -mcpu and -mmul options.
36258
36259 2015-04-16 Richard Biener <rguenther@suse.de>
36260
36261 * tree-ssa-ccp.c (likely_value): See if we have operands that
36262 are marked as never simulate again and return CONSTANT in this
36263 case.
36264 * tree-ssa-propagate.c (simulate_stmt): Mark stmts that do
36265 not have any operands that will be simulated again as
36266 not being simulated again.
36267
36268 2015-04-15 Uros Bizjak <ubizjak@gmail.com>
36269
36270 * config/i386/i386.md (*cmpi<FPCMP:unord><MODEF:mode>_mixed):
36271 Merge with *cmpi<FPCMP:unord><MODEF:mode>_sse using enabled attribute.
36272 (*extendsfdf2_mixed): Merge with *extendsfdf2_sse using enabled
36273 attribute.
36274 (*truncdfsf_fast_mixed): Merge with *truncdfsf_fast_sse using
36275 enabled attribute.
36276 (*float<SWI48:mode><MODEF:mode>2_mixed): Rename from
36277 *float<SWI48:mode><MODEF:mode>2_sse.
36278 (*absneg<mode>2_mixed): Merge with *absneg<mode>2_sse using
36279 enabled attribute.
36280 (*fop_<mode>_comm_mixed): Merge with *fop_<mode>_comm_sse using
36281 enabled attribute.
36282
36283 2015-04-15 Tom de Vries <tom@codesourcery.com>
36284
36285 PR other/65487
36286 * function.c (push_dummy_function): New function.
36287 (init_dummy_function_start): Use push_dummy_function.
36288 (pop_dummy_function): New function. Factored out of ...
36289 (expand_dummy_function_end): ... here.
36290 * function.h (push_dummy_function, pop_dummy_function): Declare.
36291 * passes.c (pass_manager::dump_passes): Use push_dummy_function and
36292 pop_dummy_function.
36293 * tree-chkp.c (chkp_gate): Handle cgraph_node::get (cfun->decl) == NULL.
36294
36295 2015-04-15 Jeff Law <law@redhat.com>
36296
36297 PR tree-optimization/47679
36298 * tree-ssa-dom.c (build_and_record_new_cond): Moved to avoid
36299 need for forward declaration in upcoming changes.
36300 (record_conditions, record_edge_info): Likewise.
36301
36302 PR rtl-optimization/42522
36303 * cse.c (fold_rtx): Try to simplify a ZERO_EXTRACT or
36304 SIGN_EXTRACT as a whole object rather than simplifying
36305 its operand.
36306
36307 2015-04-15 Jakub Jelinek <jakub@redhat.com>
36308
36309 PR ipa/65765
36310 * ipa-icf-gimple.c (func_checker::compare_bb): For GIMPLE_NOP
36311 and GIMPLE_PREDICT use break instead of return true. For
36312 GIMPLE_EH_DISPATCH, compare dispatch region.
36313
36314 2015-04-14 Matthew Wahab <matthew.wahab@arm.com>
36315
36316 * doc/extend.texi (__sync Builtins): Simplify some text. Update
36317 details about the implementation. Make clear preference for
36318 __atomic builtins. Reduce possibility of future change.
36319
36320 2015-04-15 Nick Clifton <nickc@redhat.com>
36321
36322 * config/rx/rx.opt (mallow-string-insns): New option.
36323 * config/rx/rx.c (RX_BUILTIN_RMPA): Disable the use of this
36324 builtin if string instructions are denied.
36325 * config/rx/rx.h (TARGET_CPU_CPP_BUILTINS): Define
36326 __RX_ALLOW_STRING_INSNS__ or __RX_DISALLOW_STRING_INSNS__, as
36327 appropriate.
36328 (ASM_SPEC): Pass -mno-allow-string-insns on to the assembler.
36329 * config/rx/rx.md (movstr): Enable pattern only if string
36330 instructions are allowed.
36331 (rx_movstr, rx_strend, movmemsi, rx_movmem): Likewise.
36332 (cmpstrnsi, cmpstrsi, rx_cmpstrn, rmpa): Likewise.
36333 * config/rx/t-rx (MULTILIB_OPTIONS): Add mno-allow-string-insns.
36334 (MULTILIB_DIRNAMES): Add no-strings.
36335 * doc/invoke.texi: Document -mno-allow-string-insns.
36336
36337 2015-04-15 Alan Modra <amodra@gmail.com>
36338
36339 PR target/65408
36340 PR target/58744
36341 PR middle-end/36043
36342 * calls.c (load_register_parameters): Don't load past end of
36343 mem unless suitably aligned.
36344
36345 2015-04-15 Nick Clifton <nickc@redhat.com>
36346
36347 * config/rl78/rl78.c (rl78_expand_prologue): Mark large stack
36348 decrement instruction as being frame related.
36349 (rl78_print_operand_1): Handle 'p' modifier to add +0 to HL
36350 based addresses.
36351 If zero extending a function address enclose the operation in
36352 %code(...).
36353 (rl78_preferred_reload_class): New function.
36354 (TARGET_PREFERRED_RELOAD_CLASS): Define.
36355 * config/rl78/rl78.md: Remove useless constraints in expanders.
36356 (mulqi3_rl78): Remove + qualifier on input-only operand 1.
36357 (mulhi3_rl78): Likewise.
36358 (mulhi3_g13): Likewise.
36359 (mulsi3_rl78): Likewise.
36360 (es_addr): Move to before the multiply patterns.
36361
36362 2015-04-15 Alan Modra <amodra@gmail.com>
36363
36364 * function.h (struct emit_status): Delete x_first_insn, x_last_insn
36365 and sequence_stack. Add seq.
36366 (seq_stack): Delete.
36367 * function.c (prepare_function_start): Don't access x_last_insn.
36368 * emit-rtl.h (get_current_sequence, get_topmost_sequence): New.
36369 (get_insns, set_first_insn, get_last_insn, set_last_insn): Use them.
36370 * emit_rtl.c (start_sequence, push_topmost_sequence,
36371 pop_topmost_sequence, end_sequence, in_sequence_p, init_emit): Use
36372 sequence accessors.
36373 (get_last_insn_anywhere, add_insn_after_nobb, add_insn_before_nobb,
36374 remove_insn): Likewise. Simplify.
36375 * config/m32c/m32c.c (m32c_leaf_function_p): Use push_topmost_sequence
36376 and pop_topmost_sequence.
36377 (m32c_function_needs_enter): Use get_topmost_sequence. Ignore
36378 debug insns.
36379 * config/rs6000/rs6000.c (rs6000_call_aix): Use get_current_sequence.
36380
36381 2015-04-14 Yvan Roux <yvan.roux@linaro.org>
36382
36383 PR target/65729
36384 * lra-constraints.c (prohibited_class_reg_set_mode_p): Restore and fix
36385 the assertiion.
36386
36387 2015-04-14 Uros Bizjak <ubizjak@gmail.com>
36388
36389 * config/i386/i386.h (LEGACY_INT_REG_P): New define.
36390 (LEGACY_INT_REGNO_P): Ditto.
36391 (GENERAL_REGNO_P): Use LEGACY_INT_REGNO_P.
36392 (ANY_MASK_REG_P): Remove.
36393 (BND_REG_P): Rename from ANY_BND_REG_P.
36394 * config/i386/i386.c (print_reg): Use LEGACY_INT_REG_P to print
36395 legacy integer registers. Do not handle MMX_REG_P in a special way.
36396 Merge 64byte and 32byte SSE handling.
36397
36398 2015-04-14 Nick Clifton <nickc@redhat.com>
36399
36400 * expr.c (expand_assignment): Force an address offset computation
36401 into a register before changing its mode.
36402 (expand_expr_real_1): Likewise.
36403
36404 2015-04-14 Alan Lawrence <alan.lawrence@arm.com>
36405
36406 * config/aarch64/arm_neon.h (vst1_lane_f32, vst1_lane_f64,
36407 vst1_lane_p8, vst1_lane_p16, vst1_lane_s8, vst1_lane_s16,
36408 vst1_lane_s32, vst1_lane_s64, vst1_lane_u8, vst1_lane_u16,
36409 vst1_lane_u32, vst1_lane_u64, vst1q_lane_f32, vst1q_lane_f64,
36410 vst1q_lane_p8, vst1q_lane_p16, vst1q_lane_s8, vst1q_lane_s16,
36411 vst1q_lane_s32, vst1q_lane_s64, vst1q_lane_u8, vst1q_lane_u16,
36412 vst1q_lane_u32, vst1q_lane_u64): Reimplement with pointer dereference
36413 and __aarch64_vget_lane_any.
36414
36415 2015-04-14 Jakub Jelinek <jakub@redhat.com>
36416
36417 PR rtl-optimization/65761
36418 * cfgrtl.c (rtl_split_edge): For EDGE_CROSSING split, use
36419 get_last_bb_insn (after) instead of NEXT_INSN (BB_END (after)).
36420
36421 2015-04-14 Richard Biener <rguenther@suse.de>
36422
36423 * graphite-scop-detection.c: Do not include cp/cp-tree.h.
36424 (graphite_can_represent_scev): Use POINTER_TYPE_P.
36425
36426 2015-04-14 Richard Biener <rguenther@suse.de>
36427
36428 PR tree-optimization/65758
36429 * tree-ssa-ccp.c (get_value_from_alignment): Adjust mask test
36430 against -1.
36431 (ccp_lattice_meet): Likewise.
36432 (bit_value_unop): Likewise.
36433 (bit_value_binop): Likewise.
36434 (bit_value_assume_aligned): Likewise.
36435
36436 2015-04-14 Christian Bruel <christian.bruel@st.com>
36437
36438 * execute_dwarf2_frame (dw_frame_pointer_regnum): Reinitialize for each
36439 function.
36440
36441 2015-04-14 Marc Glisse <marc.glisse@inria.fr>
36442
36443 PR tree-optimization/63387
36444 * match.pd ((x unord x) | (y unord y) -> (x unord y),
36445 (x unord x) | (x unord y) -> (x unord y)): New simplifications.
36446
36447 2015-04-14 Uros Bizjak <ubizjak@gmail.com>
36448
36449 * config/i386/predicates.md (any_QIreg_operand): Rename from
36450 q_regs_operand. Do not process subregs.
36451 (QIreg_operand): Use QI_REGNO_P predicate.
36452 (ext_QIreg_operand): Ditto.
36453 (ext_register_operand): Ditto.
36454 * config/i386/i386.md (TEST splitters): Use QIreg_operand predicate.
36455 (AND splitters): Ditto.
36456 (AND with -65536 splitter): Add SWI48 mode for operand 0.
36457 (AND with -256 splitter): Use any_QIreg_operand predicate and
36458 SWI248 mode for operand 0.
36459 (AND with -65281 splitter): Use QIreg_operand predicate and SWI248
36460 mode for operand 0.
36461 (SETCC + MOVZBL peepholes): Update for renamed any_QIreg_operand.
36462
36463 2015-04-13 Gerald Pfeifer <gerald@pfeifer.com>
36464
36465 * doc/plugins.texi: Rewrite first introductory paragraph.
36466
36467 2015-04-12 Jan Hubicka <hubicka@ucw.cz>
36468
36469 * tree-vrp.c (nonnull_arg_p): THIS pointers and references are non-zero.
36470 (gimple_stmt_nonzero_warnv_p): Reference return values are non-zero.
36471
36472 2015-04-12 Jan Hubicka <hubicka@ucw.cz>
36473
36474 * ipa-profie.c (ipa_profile): Check number of parameters
36475 and possible polymorphic call targets before
36476 devirtualizing.
36477
36478 2015-04-13 Uros Bizjak <ubizjak@gmail.com>
36479
36480 * config/i386/i386.md (*bmi2_umul<mode><dwi>3_1): Merge from
36481 *bmi2_umulsidi3_1 and *bmi2_umulditi3_1 using DWIH mode iterator.
36482
36483 2015-04-13 Richard Biener <rguenther@suse.de>
36484
36485 PR tree-optimization/65204
36486 * tree-ssa-ccp.c (evaluate_stmt): Always evaluate address
36487 takens for bit-CCP.
36488
36489 2015-04-13 Richard Biener <rguenther@suse.de>
36490
36491 PR target/65660
36492 * config/i386/i386.c (bdver1_cost): Double cond_taken_branch_cost
36493 and cond_not_taken_branch_cost to 4 and 2.
36494 (bdver2_cost): Likewise.
36495 (bdver3_cost): Likewise.
36496 (bdver4_cost): Likewise.
36497
36498 2015-04-12 Jan Hubicka <hubicka@ucw.cz>
36499
36500 * hash-table.h (hash_table constructor): Add mem stats.
36501 (alloc_entries): Likewise.
36502
36503 2015-04-12 Jan Hubicka <hubicka@ucw.cz>
36504
36505 * ipa-cp.c (ipcp_driver): Relase prev_edge.
36506 * passes.c (execute_one_pass): Only add transform if pass has one.
36507
36508 2015-04-12 Joseph Myers <joseph@codesourcery.com>
36509
36510 * config/i386/i386.c (ix86_option_override_internal): Don't set
36511 -fprefetch-loop-arrays if optimizing for size.
36512
36513 2015-04-12 Jan Hubicka <hubicka@ucw.cz>
36514 Gerald Pfeifer <gerald@pfeifer.com>
36515
36516 * doc/contrib.texi (Contributors): Add Martin Jambor and
36517 Michael Matz.
36518
36519 2015-04-12 Jakub Jelinek <jakub@redhat.com>
36520
36521 * BASE-VER: Set to 6.0.0.
36522
36523 PR tree-optimization/65747
36524 * ipa-icf-gimple.c (func_checker::compare_operand): Use compare_operand
36525 rather than compare_ssa_name for OBJ_TYPE_REF_OBJECT.
36526
36527 2015-04-12 Gerald Pfeifer <gerald@pfeifer.com>
36528
36529 * doc/invoke.texi (-Wmemset-transposed-args): Break a long
36530 sentence. Improve grammar.
36531
36532 2015-04-12 Gerald Pfeifer <gerald@pfeifer.com>
36533
36534 * doc/contrib.texi (Contributors): Add Maxim Kuvyrkov.
36535
36536 2015-04-11 Jan Hubicka <hubicka@ucw.cz>
36537
36538 PR ipa/65743
36539 * ipa-inline-transform.c (speculation_removed): Remove static var.
36540 (check_speculations): New function.
36541 (clone_inlined_nodes): Do not check spculations.
36542 (inline_call): Call check_speculations.
36543 * ipa-prop.c (ipa_make_edge_direct_to_target): Do not
36544 consider non-invariants.
36545
36546 2015-04-11 Jan Hubicka <hubicka@ucw.cz>
36547 Martin Liska <mliska@suse.cz>
36548
36549 PR ipa/65722
36550 * ipa-icf.c (sem_item::compare_cgraph_references): function and
36551 variable can not match.
36552 (sem_item::update_hash_by_addr_refs): Fix handling of virtual tables.
36553 (sem_variable::equals_wpa): Fix checking of DECL_FINAL_P patch.
36554
36555 2015-04-11 Jakub Jelinek <jakub@redhat.com>
36556
36557 PR tree-optimization/65735
36558 * tree-ssa-threadedge.c (fsm_find_control_statement_thread_paths):
36559 Remove visited_phis argument, add visited_bbs, avoid recursing into the
36560 same bb rather than just into the same phi node.
36561 (thread_through_normal_block): Adjust caller.
36562
36563 2015-04-11 Gerald Pfeifer <gerald@pfeifer.com>
36564
36565 * doc/contrib.texi (Contributors): Add Ira Rosen.
36566
36567 2015-04-11 Benno Schulenberg <bensberg@justemail.net>
36568
36569 * gcov.c (find_source): Fix miswording in error message.
36570 * config/i386/i386.c (ix86_handle_cconv_attribute): Likewise.
36571 (ix86_expand_sse_comi_round): Fix typo in error message.
36572
36573 2015-04-11 Gerald Pfeifer <gerald@pfeifer.com>
36574
36575 * doc/contrib.texi (Contributors): Add Laurynas Biveinis.
36576
36577 2015-04-10 Gerald Pfeifer <gerald@pfeifer.com>
36578
36579 * doc/contrib.texi (Contributors): Update Joe Buck's entry.
36580
36581 2015-04-10 Vladimir Makarov <vmakarov@redhat.com>
36582
36583 PR target/65710
36584 * lra-assigns.c (spill_for): Update smallest_bad_spills_num.
36585 Print bad_spills_num and insn_pseudos_num.
36586
36587 2015-04-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
36588
36589 PR target/65694
36590 * config/arm/arm.c (arm_canonicalize_comparison): Use ARM_SIGN_EXTEND
36591 when creating +1 values for SImode.
36592
36593 2015-04-10 Vladimir Makarov <vmakarov@redhat.com>
36594
36595 PR target/65729
36596 * lra-constraints.c (prohibited_class_reg_set_mode_p): Comment the
36597 assert.
36598
36599 2015-04-10 Jakub Jelinek <jakub@redhat.com>
36600 Iain Sandoe <iain@codesourcery.com>
36601
36602 PR target/65351
36603 * configure: Regenerate.
36604
36605 2015-04-09 Kirill Yukhin <kirill.yukhin@intel.com>
36606
36607 PR target/65671
36608 * config/i386/sse.md: Generate vextract32x4 if AVX-512DQ is disabled.
36609
36610 2015-04-09 Gerald Pfeifer <gerald@pfeifer.com>
36611
36612 * doc/contrib.texi (Contributors): Add John Marino.
36613
36614 2015-04-09 Jakub Jelinek <jakub@redhat.com>
36615
36616 PR tree-optimization/65709
36617 * ubsan.c (instrument_mem_ref): Use TREE_TYPE (base) instead of
36618 TREE_TYPE (TREE_TYPE (t)).
36619
36620 2015-04-09 Vladimir Makarov <vmakarov@redhat.com>
36621
36622 PR target/65710
36623 * lra-int.h (lra_bad_spill_regno_start): New.
36624 * lra.c (lra_bad_spill_regno_start): New.
36625 (lra): Set up lra_bad_spill_regno_start. Set up
36626 lra_constraint_new_regno_start unconditionally.
36627 * lra-assigns.c (spill_for): Use lra_bad_spill_regno_start for
36628 spill preferences.
36629
36630 2015-04-09 Marek Polacek <polacek@redhat.com>
36631 Jakub Jelinek <jakub@redhat.com>
36632
36633 PR middle-end/65554
36634 * gimple-fold.c (gimple_fold_builtin_memory_op): Update comment.
36635 (fold_ctor_reference): Use STRIP_USELESS_TYPE_CONVERSION instead
36636 of STRIP_NOPS.
36637
36638 2015-04-09 Segher Boessenkool <segher@kernel.crashing.org>
36639
36640 PR rtl-optimization/65693
36641 * combine.c (is_parallel_of_n_reg_sets): Move outside of
36642 #ifndef HAVE_cc0.
36643
36644 2015-04-09 Georg-Johann Lay <avr@gjlay.de>
36645
36646 PR target/65296
36647 * config/avr/driver-avr.c (avr_devicespecs_file): Don't specify a
36648 device specs file if "device-specs%s" didn't resolve to a path.
36649
36650 2015-04-09 Kirill Yukhin <kirill.yukhin@intel.com>
36651
36652 PR target/65676
36653 * config/i386/i386.c (fixup_modeless_constant): New.
36654 (ix86_expand_args_builtin): Fixup modeless constant operand.
36655 (ix86_expand_round_builtin): Ditto.
36656 (ix86_expand_special_args_builtin): Ditto.
36657 (ix86_expand_builtin): Ditto.
36658
36659 2015-04-09 Jakub Jelinek <jakub@redhat.com>
36660
36661 PR target/65693
36662 * config/i386/i386.md (*udivmod<mode>4_pow2): Allow
36663 any pow2 integer in between 2 and 0x80000000U inclusive.
36664
36665 2015-04-08 Segher Boessenkool <segher@kernel.crashing.org>
36666
36667 PR rtl-optimization/65693
36668 * combine.c (is_parallel_of_n_reg_sets): Change first argument
36669 from an rtx_insn * to an rtx.
36670 (try_combine): Adjust both callers. Use it once more.
36671
36672 2015-04-08 Ilya Enkovich <ilya.enkovich@intel.com>
36673
36674 * tree-chkp.c (chkp_find_const_bounds_var): Remove.
36675 (chkp_make_static_const_bounds): Search existing
36676 symbol by assembler name. Use make_decl_one_only.
36677 (chkp_get_zero_bounds_var): Remove node search which
36678 is now performed in chkp_make_static_const_bounds.
36679 (chkp_get_none_bounds_var): Likewise.
36680
36681 2015-04-08 Michael Witten <mfwitten@gmail.com>
36682
36683 * doc/extend.texi (Attribute Syntax): Add a trailing semicolon
36684 to an example.
36685
36686 2015-04-08 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
36687
36688 * tree.h (CONVERT_EXPR_P): Commentary typo fix.
36689
36690 2015-04-08 Gerald Pfeifer <gerald@pfeifer.com>
36691
36692 * doc/extend.texi (__sync Builtins): Fix grammar.
36693
36694 2015-04-08 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
36695
36696 * doc/cfg.texi (GIMPLE statement iterators): Fix typo.
36697
36698 2015-04-08 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
36699
36700 * varasm.c (emit_local): Move definition of align.
36701
36702 2015-04-08 Julian Brown <julian@codesourcery.com>
36703
36704 * config/nvptx/mkoffload.c (process): Support variable mapping.
36705
36706 2015-03-27 Trevor Saunders <tbsaunde@tbsaunde.org>
36707
36708 * config/alpha/alpha.c (alpha_use_linkage): Change type of slot to
36709 alpha_links **.
36710 (alpha_write_one_linkage): Correct typo.
36711
36712 2015-04-08 Ilya Enkovich <ilya.enkovich@intel.com>
36713
36714 * ipa-comdats.c (propagate_comdat_group): Walk through thunks.
36715
36716 2015-04-08 Gerald Pfeifer <gerald@pfeifer.com>
36717
36718 * doc/install.texi (bootstrap-lto-noplugin): Rewrite.
36719
36720 2015-04-08 Ilya Enkovich <ilya.enkovich@intel.com>
36721
36722 * tree-chkp.h (chkp_insert_retbnd_call): New.
36723 * tree-chkp.c (chkp_insert_retbnd_call): New.
36724 * ipa-split.c (insert_bndret_call_after): Remove.
36725 (split_function): Use chkp_insert_retbnd_call.
36726 * cgraphunit.c (cgraph_node::expand_thunk): Build returned
36727 bounds for instrumented functions.
36728
36729 2015-04-07 Jan Hubicka <hubicka@ucw.cz>
36730
36731 PR ipa/65540
36732 * calls.c (initialize_argument_information): When producing tail
36733 call also turn SSA_NAMES passed by references to original PARM_DECLs
36734
36735 2015-04-07 Vladimir Makarov <vmakarov@redhat.com>
36736
36737 PR target/65648
36738 * lra-remat.c (do_remat): Process input and non-input insn
36739 registers separately.
36740
36741 2015-04-07 Jakub Jelinek <jakub@redhat.com>
36742
36743 PR debug/65678
36744 * valtrack.c (debug_lowpart_subreg): New function.
36745 (dead_debug_insert_temp): Use it.
36746
36747 PR middle-end/65680
36748 * expr.c (get_inner_reference): Handle bit_offset that doesn't fit
36749 into signed HOST_WIDE_INT the same as negative bit_offset.
36750
36751 2015-04-07 Ilya Enkovich <ilya.enkovich@intel.com>
36752
36753 * ipa-comdats.c (ipa_comdats): Visit all thunks
36754 to set proper comdat group.
36755
36756 2015-04-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
36757
36758 PR target/65489
36759 * config/arm/arm.c (arm_legitimate_constant_p_1): Remove restriction
36760 on constants for NEON VSTRUCT modes.
36761
36762 2015-04-07 Jakub Jelinek <jakub@redhat.com>
36763 Iain Sandoe <iain@codesourcery.com>
36764
36765 PR target/65351
36766 * configure: Regenerate.
36767
36768 2015-04-06 Michael Meissner <meissner@linux.vnet.ibm.com>
36769
36770 PR target/65614
36771 * config/rs6000/rs6000.c (struct processor_costs): Add cost field
36772 for SF->DF conversions to make FLOAT_EXTEND more expensive, so
36773 that LFD is used to load double constants instead of LFS. Add
36774 defaults for all costs structures. Add comments for missing
36775 initialization fields.
36776 (size32_cost): Likewise.
36777 (size64_cost): Likewise.
36778 (rs64a_cost): Likewise.
36779 (mpccore_cost): Likewise.
36780 (ppc403_cost): Likewise.
36781 (ppc405_cost): Likewise.
36782 (ppc440_cost): Likewise.
36783 (ppc476_cost): Likewise.
36784 (ppc601_cost): Likewise.
36785 (ppc603_cost): Likewise.
36786 (ppc604_cost): Likewise.
36787 (ppc604e_cost): Likewise.
36788 (ppc620_cost): Likewise.
36789 (ppc630_cost): Likewise.
36790 (ppccell_cost): Likewise.
36791 (ppc750_cost): Likewise.
36792 (ppc7450_cost): Likewise.
36793 (ppc8540_cost): Likewise.
36794 (ppce300c2c3_cost): Likewise.
36795 (ppce500mc_cost): Likewise.
36796 (ppce500mc64_cost): Likewise.
36797 (ppce5500_cost): Likewise.
36798 (ppce6500_cost): Likewise.
36799 (titan_cost): Likewise.
36800 (power4_cost): Likewise.
36801 (power6_cost): Likewise.
36802 (power7_cost): Likewise.
36803 (power8_cost): Likewise.
36804 (ppca2_cost): Likewise.
36805 (rs6000_rtx_costs): Make FLOAT_EXTEND use SFDF_convert field.
36806
36807 * config/rs6000/rs6000.md (extendsfdf2_fpr): Generate XSCPSGNDP
36808 instead of XXLOR to copy SFmode to clear out dirty bits created
36809 when SFmode denormals are generated.
36810 (mov<mode>_hardfloat, FMOVE32 case): Likewise.
36811 (truncdfsf2_fpr): Add support for ISA 2.07 XSRSP instruction.
36812
36813 2015-04-06 Evandro Menezes <e.menezes@samsung.com>
36814
36815 * doc/invoke.texi (AARCH64/mtune): Add exynos-m1 as an option.
36816 * config/aarch64/aarch64-cores.def (exynos-m1): New core.
36817 * config/aarch64/aarch64-tune.md: Regenerate.
36818
36819 2015-04-06 Evandro Menezes <e.menezes@samsung.com>
36820
36821 * doc/invoke.texi (ARM/mtune): Add "exynos-m1" as an option.
36822 * config/arm/arm.c (arm_issue_rate): Specify "3" for "exynosm1".
36823 * config/arm/arm-cores.def (exynos-m1): New core.
36824 * config/arm/arm-tune.md: Regenerate.
36825 * config/arm/arm-tables.opt: Add entry for "exynos-m1".
36826 * config/arm/bpabi.h: Likewise.
36827
36828 2015-04-06 Ilya Enkovich <ilya.enkovich@intel.com>
36829
36830 * ipa-cp (set_single_call_flag): Remove too
36831 restrictive assert.
36832
36833 2015-04-06 Ilya Verbin <ilya.verbin@intel.com>
36834
36835 * config/i386/intelmic-mkoffload.c (generate_host_descr_file): Call
36836 GOMP_offload_unregister from the destructor.
36837
36838 2015-04-06 Ilya Enkovich <ilya.enkovich@intel.com>
36839
36840 * ipa-chkp.c (chkp_maybe_create_clone): Reset cdtor
36841 flags for instrumentation thunk.
36842 (chkp_produce_thunks): Likewise.
36843
36844 2015-04-05 Martin Liska <mliska@suse.cz>
36845
36846 PR ipa/65665
36847 * ipa-icf.c (sem_function::equals_wpa): Verify that IPA CP
36848 has computed data structure.
36849 (sem_item_optimizer::update_hash_by_addr_refs): Likewise.
36850
36851 2015-04-04 Jan Hubicka <hubicka@ucw.cz>
36852
36853 * invoke.texi (inline-unit-growth): Increase growth to 20%
36854 * params.def (PARAM_INLINE_UNIT_GROWTH): Likewise.
36855
36856 2015-04-04 Vladimir Makarov <vmakarov@redhat.com>
36857
36858 PR target/65647
36859 * lra-int.h (LRA_MAX_REMATERIALIZATION_PASSES): New. Add its
36860 value checking.
36861 (lra_rematerialization_iter): New.
36862 * lra.c (lra): Initialize lra_rematerialization_iter.
36863 Stop updating lra_constraint_new_regno_start after switching of
36864 inheritance and rematerialization.
36865 * lra-remat.c (lra_rematerialization_iter): New.
36866 (lra_remat): Add printing pass iteration. Do rematerialization
36867 only first LRA_MAX_REMATERIALIZATION_PASSES iterations.
36868
36869 2015-04-04 Richard Biener <rguenther@suse.de>
36870
36871 PR tree-optimization/64909
36872 PR tree-optimization/65660
36873 * tree-vectorizer.h (vect_get_known_peeling_cost): Adjust
36874 to take a cost vector for scalar iteration cost.
36875 (vect_get_single_scalar_iteration_cost): Likewise.
36876 * tree-vect-loop.c (vect_get_single_scalar_iteration_cost):
36877 Compute the scalar iteration cost into a cost vector.
36878 (vect_get_known_peeling_cost): Use the scalar cost vector to
36879 account for the cost of the peeled iterations.
36880 (vect_estimate_min_profitable_iters): Likewise.
36881 * tree-vect-data-refs.c (vect_peeling_hash_get_lowest_cost):
36882 Likewise.
36883
36884 2015-04-04 Alan Modra <amodra@gmail.com>
36885
36886 PR target/65576
36887 PR target/65240
36888 * config/rs6000/predicates.md (zero_reg_mem_operand): Exclude
36889 0.0 constant unless TARGET_VSX.
36890 * config/rs6000/rs6000.md (extenddftf2_internal): Remove last
36891 alternative.
36892
36893 2015-04-03 Jan Hubicka <hubicka@ucw.cz>
36894
36895 PR ipa/65654
36896 * ipa-inline-transform.c (inline_call): Skip sanity check to work
36897 around the ICE
36898
36899 2015-04-03 Jan Hubicka <hubicka@ucw.cz>
36900
36901 PR ipa/65655
36902 * ipa-inline-analysis.c (edge_set_predicate): Do not redirect
36903 speculative indirect edges to avoid ordering issue.
36904
36905 2015-04-03 Jan Hubicka <hubicka@ucw.cz>
36906
36907 PR ipa/65076
36908 * ipa-inline.c (edge_badness): Add combined size to the denominator.
36909
36910 2015-04-03 Jakub Jelinek <jakub@redhat.com>
36911
36912 * omp-low.c (scan_omp_parallel, scan_omp_task, scan_omp_target): Set
36913 TYPE_ARTIFICIAL on the .omp_data* types.
36914
36915 2015-04-02 Ilya Enkovich <ilya.enkovich@intel.com>
36916
36917 * cgraphunit.c (cgraph_node::expand_thunk): Don't expand
36918 instrumentation thunks.
36919
36920 2015-04-02 Ilya Enkovich <ilya.enkovich@intel.com>
36921
36922 * config/i386/i386.c (ix86_expand_call): Avoid nested
36923 PARALLEL in returned call value.
36924
36925 2015-04-02 Ilya Enkovich <ilya.enkovich@intel.com>
36926
36927 * lto-cgraph.c (input_cgraph_1): Always link instrumented
36928 assembler name with original one.
36929
36930 2015-04-02 Uros Bizjak <ubizjak@gmail.com>
36931
36932 * config/i386/i386.c (ix86_register_priority): Use AX_REG.
36933
36934 2015-04-02 Uros Bizjak <ubizjak@gmail.com>
36935
36936 Revert parts of r216820.
36937 * config/i386/i386.md (movqi_internal): Correct type calculation
36938 for alternatives 3 and 5.
36939
36940 2015-04-02 Jakub Jelinek <jakub@redhat.com>
36941
36942 PR preprocessor/61977
36943 * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Don't
36944 predefine __vector/__bool/__pixel macros nor context sensitive
36945 macros for CLK_ASM.
36946 * config/spu/spu-c.c (spu_cpu_cpp_builtins): Similarly.
36947
36948 2015-04-02 John David Anglin <danglin@gcc.gnu.org>
36949
36950 * config/pa/pa.c (pa_output_move_double): Directly handle register
36951 indexed memory operand. Simplify handling of scaled register indexed
36952 memory operands.
36953
36954 2015-04-02 Ilya Enkovich <ilya.enkovich@intel.com>
36955
36956 PR driver/65444
36957 * config/i386/linux-common.h (MPX_SPEC): New.
36958 (CHKP_SPEC): Add MPX_SPEC.
36959 * doc/invoke.texi (-fcheck-pointer-boudns): Document
36960 possible issues with '-z bndplt' support in linker.
36961
36962 2015-04-02 Uros Bizjak <ubizjak@gmail.com>
36963
36964 * config/i386/sync.md (UNSPEC_FILD_ATOMIC, UNSPEC_FIST_ATOMIC): New.
36965 (loaddi_via_fpu): Use UNSPEC_FILD_ATOMIC.
36966 (storedi_via_fpu): Use UNSPEC_FIST_ATOMIC.
36967 * reg-stack.c (get_true_reg): Change UNSPEC_LDA to UNSPEC_FILD_ATOMIC.
36968 (subst_stack_regs_pat): Change UNSPEC_STA to UNSPEC_FIST_ATOMIC.
36969
36970 2015-04-01 Uros Bizjak <ubizjak@gmail.com>
36971
36972 * config/i386/sync.md (UNSPEC_MOVA): Remove.
36973 (atomic_load<mode>): Change operand 0 predicate to
36974 nonimmediate_operand and fix up the destination when needed.
36975 Use UNSPEC_LDA.
36976 (atomic_loaddi_fpu): Use UNSPEC_LDA.
36977 (atomic_store<mode>): Change operand 1 predicate to
36978 nonimmendate_operand and move the source to register when needed.
36979 Use UNSPEC_STA.
36980 (atomic_store<mode>_1): Use UNSPEC_STA.
36981 (atomic_storedi_fpu): Change operand 1 to nonimmediate_operand.
36982 Fix moves from memory operand. Use UNSPEC_STA.
36983
36984 2015-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
36985
36986 * expmed.c (strict_volatile_bitfield_p): Check that the access will
36987 not cross a MODESIZE boundary.
36988 (store_bit_field, extract_bit_field): Added assertions in the
36989 strict volatile bitfields code path.
36990
36991 2015-04-01 Max Ostapenko <m.ostapenko@partner.samsung.com>
36992
36993 PR target/65624
36994 * config/aarch64/aarch64-builtins.c (aarch64_simd_expand_builtin):
36995 Increase args array size by one to avoid buffer overflow.
36996
36997 2015-03-31 Jan Hubicka <hubicka@ucw.cz>
36998
36999 * lto-cgraph.c (lto_output_node, input_overwrite_node): Stream
37000 split_part.
37001 * ipa-inline.c (edge_badness): Add wrapper penalty.
37002 (sum_callers): Move up.
37003 (inline_small_functions): Set single_caller.
37004 * ipa-inline.h (inline_summary): Add single_caller.
37005 * ipa-split.c (split_function): Set split_part.
37006 (cgraph_node::create_clone): Do not shadow decl; copy split_part.
37007 * cgraph.h (cgraph_node): Add split_part.
37008
37009 2015-03-31 Uros Bizjak <ubizjak@gmail.com>
37010
37011 PR target/58945
37012 * config/i386/sync.md (atomic_compare_and_swap<dwi>_doubleword):
37013 Do not split operands 0 and operands 2 to halfmode.
37014 (atomic_compare_and_swap<mode>): Update for
37015 atomic_compare_and_swap<dwi>_doubleword changes.
37016
37017 2015-03-31 Jan Hubicka <hubicka@ucw.cz>
37018
37019 * tree.c (need_assembler_name_p): Artificial types have no ODR names.
37020 * ipa-devirt.c (warn_odr): Do not try to apply ODR cache when
37021 no caching is done.
37022
37023 2015-03-31 Martin Liska <mliska@suse.cz>
37024
37025 PR ipa/65557
37026 * ipa-icf.c (sem_function::equals_wpa): Check if IPA CP
37027 has already filled up function summary.
37028 (sem_item_optimizer::update_hash_by_addr_refs): Likewise.
37029
37030 2015-03-31 Richard Biener <rguenther@suse.de>
37031
37032 * tree-sra.c (create_access_replacement): Drop under-/over-alignment
37033 of types.
37034
37035 2015-03-31 Dominik Vogt <vogt@linux.vnet.ibm.com>
37036
37037 * config/s390/s390.c (s390_function_num_hotpatch_hw): Allow hotpatching
37038 nested functions.
37039 (s390_reorg): Adapt to new signature of s390_function_num_hotpatch_hw.
37040 (s390_asm_output_function_label): Adapt to new signature of
37041 s390_function_num_hotpatch_hw
37042 Optimise the code generating assembler output.
37043 Add comments to assembler file.
37044
37045 2015-03-31 Richard Biener <rguenther@suse.de>
37046
37047 PR middle-end/65626
37048 * tree-cfgcleanup.c (fixup_noreturn_call): Only split the block
37049 of the noreturn call so it is last and cleanup_control_flow_bb
37050 can do the CFG part.
37051
37052 2015-03-31 Ilya Enkovich <ilya.enkovich@intel.com>
37053
37054 PR target/65531
37055 * ipa-chkp.c (chkp_maybe_create_clone): Don't set
37056 same_comdat_group for external symbols.
37057 * symtab.c (symtab_node::verify_symtab_nodes): Avoid
37058 infinite same_comdat_group traversal loop.
37059
37060 2015-03-31 Jakub Jelinek <jakub@redhat.com>
37061
37062 PR plugins/61176
37063 * Makefile.in (install-plugin): Add all gcc/*.{h,def} files
37064 automatically to $headers.
37065
37066 2015-03-30 Jakub Jelinek <jakub@redhat.com>
37067
37068 PR ipa/65610
37069 * ipa-utils.h (inlined_polymorphic_ctor_dtor_block_p): Declare.
37070 * ipa-polymorphic-call.c (inlined_polymorphic_ctor_dtor_block_p): New
37071 function.
37072 (decl_maybe_in_construction_p, noncall_stmt_may_be_vtbl_ptr_store):
37073 Use it.
37074 * ipa-prop.c (param_type_may_change_p): Likewise.
37075 * tree-ssa-live.c: Include ipa-utils.h and its dependencies.
37076 (remove_unused_scope_block_p): Add in_ctor_dtor_block
37077 argument. Before inlining, preserve
37078 inlined_polymorphic_ctor_dtor_block_p blocks and the outermost block
37079 with FUNCTION_DECL BLOCK_ABSTRACT_ORIGIN inside of them. Adjust
37080 recursive calls.
37081 (remove_unused_locals): Adjust remove_unused_scope_block_p caller.
37082
37083 2015-03-27 Jan Hubicka <hubicka@ucw.cz>
37084
37085 PR ipa/65076
37086 * ipa-inline.c (edge_badness): Base denominator on callee's
37087 grwoth squared.
37088
37089 2015-03-27 Martin Jambor <mjambor@suse.cz>
37090
37091 PR ipa/65478
37092 * params.def (PARAM_IPA_CP_RECURSION_PENALTY) : New.
37093 (PARAM_IPA_CP_SINGLE_CALL_PENALTY): Likewise.
37094 * ipa-prop.h (ipa_node_params): New flags node_within_scc and
37095 node_calling_single_call.
37096 * ipa-cp.c (count_callers): New function.
37097 (set_single_call_flag): Likewise.
37098 (initialize_node_lattices): Count callers and set single_flag_call if
37099 necessary.
37100 (incorporate_penalties): New function.
37101 (good_cloning_opportunity_p): Use it, dump new flags.
37102 (propagate_constants_topo): Set node_within_scc flag if appropriate.
37103 * doc/invoke.texi (ipa-cp-recursion-penalty,
37104 ipa-cp-single-call-pentalty): Document.
37105
37106 2015-03-27 Jan Hubicka <hubicka@ucw.cz>
37107
37108 PR ipa/65588
37109 * symtab.c (symtab_node::get_partitioning_class): Register vars
37110 are duplicated.
37111 * varpool.c (symbol_table::output_variables) Do not assemble unefined
37112 decls for non-symbols.
37113
37114 2015-03-27 H.J. Lu <hongjiu.lu@intel.com>
37115
37116 PR target/65248
37117 * output.h (default_binds_local_p_2): New.
37118 * varasm.c (default_binds_local_p_2): Renamed to ...
37119 (default_binds_local_p_3): This. Don't return true on protected
37120 data symbol if protected data may be external.
37121 (default_binds_local_p): Use default_binds_local_p_3.
37122 (default_binds_local_p_1): Likewise.
37123 (default_binds_local_p_2): New.
37124 * config/i386/i386.c (TARGET_BINDS_LOCAL_P): Set to
37125 default_binds_local_p_2 if TARGET_MACHO is undefined.
37126
37127 2015-03-27 Jakub Jelinek <jakub@redhat.com>
37128
37129 PR target/65593
37130 * config/i386/i386.c (legitimize_pic_address): If base
37131 is SYMBOL_REF or LABEL_REF using %rip addressing, force
37132 it to reg to avoid PLUS of SYMBOL_REF/LABEL_REF and register.
37133
37134 2015-03-27 Jan Hubicka <hubicka@ucw.cz>
37135
37136 PR target/65531
37137 * symtab.c (symtab_node::verify_symtab_nodes): Fix verification of
37138 comdat groups.
37139
37140 2015-03-27 Jan Hubicka <hubicka@ucw.cz>
37141
37142 PR ipa/65600
37143 * cgraph.c (cgraph_update_edges_for_call_stmt_node): Fix the case
37144 of optimized out indirect call.
37145 (redirect_to_unreachable): Always build symbol table node for
37146 BUILT_IN_UNREACHABLE
37147
37148 2015-03-27 Vladimir Makarov <vmakarov@redhat.com>
37149
37150 PR target/65407
37151 * ira-costs.c (record_reg_classes): Process all constraint string
37152 containing 0-9.
37153
37154 2015-03-27 Bernd Schmidt <bernds@codesourcery.com>
37155
37156 * config/c6x/c6x.md (movmisalign<mode>): Use MEM_P, not
37157 memory_operand.
37158
37159 PR target/65052
37160 * config/c6x/constraints.md (S3): New constraint.
37161 * config/c6x/c6x.md (real_jump): Use it.
37162
37163 2015-03-26 Jan Hubicka <hubicka@ucw.cz>
37164
37165 PR middle-end/65595
37166 * cgraph.c (cgraph_update_edges_for_call_stmt_node): Only
37167 do redirection if the call is not optimized out.
37168
37169 2015-03-27 Ilya Enkovich <ilya.enkovich@intel.com>
37170
37171 PR target/65495
37172 * c-family/c.opt (fcheck-pointer-bounds): List supported languages.
37173 (fchkp-check-incomplete-type): Add LTO.
37174 (fchkp-zero-input-bounds-for-main): Likewise.
37175 (fchkp-first-field-has-own-bounds): Likewise.
37176 (fchkp-narrow-bounds): Likewise.
37177 (fchkp-narrow-to-innermost-array): Likewise.
37178 (fchkp-use-static-bounds): Likewise.
37179 (fchkp-use-static-const-bounds): Likewise.
37180 (fchkp-treat-zero-dynamic-size-as-infinite): Likewise.
37181
37182 2015-03-27 Marek Polacek <polacek@redhat.com>
37183
37184 * gimple-iterator.h (gsi_prev_nondebug): Fix typo.
37185
37186 2015-03-27 Marek Polacek <polacek@redhat.com>
37187
37188 PR sanitizer/65583
37189 * ubsan.c (ubsan_create_edge): New function.
37190 (instrument_bool_enum_load): Call it.
37191 (instrument_nonnull_arg): Likewise.
37192 (instrument_nonnull_return): Likewise.
37193 (instrument_object_size): Likewise.
37194
37195 2015-03-26 Jan Hubicka <hubicka@ucw.cz>
37196
37197 * lto-streamer.h (class lto_location_cache): Turn loc_cache into
37198 auto_vec.
37199
37200 2015-03-26 Jan Hubicka <hubicka@ucw.cz>
37201
37202 PR lto/65536
37203 * lto-streamer.h (class lto_location_cache): New.
37204 (struct data_in): Add location_cache.
37205 (lto_input_location): Update prototype.
37206 (stream_input_location_now): New.
37207 * streamer-hooks.h (struct streamer_hooks): Make input_location to take
37208 pointer to location.
37209 (stream_input_location): Update.
37210 * ipa-devirt.c: Include streamer-hooks.h and lto-streamer.h
37211 (warn_odr): Apply location cache before warning.
37212 (lto_input_location): Update prototype.
37213 * gimple-streamer-in.c (input_phi, input_gimple_stmt):
37214 Use stream_input_location_now.
37215 * lto-streamer-in.c (lto_location_cache::current_cache): New static
37216 variable.
37217 (lto_location_cache::cmp_loc): New function.
37218 (lto_location_cache::apply_location_cache): New function.
37219 (lto_location_cache::accept_location_cache): New function.
37220 (lto_location_cache::revert_location_cache): New function.
37221 (lto_location_cache::input_location): New function.
37222 (lto_input_location): Do location caching.
37223 (stream_input_location_now): New function.
37224 (input_eh_region, input_struct_function_base): Use
37225 stream_input_location_now.
37226 (lto_data_in_create): use new.
37227 (lto_data_in_delete): Use delete.
37228 * tree-streamer-in.c (unpack_ts_block_value_fields,
37229 unpack_ts_omp_clause_value_fields, streamer_read_tree_bitfields,
37230 lto_input_ts_exp_tree_pointers): Update for cached location api.
37231
37232 2015-03-26 Jan Hubicka <hubicka@ucw.cz>
37233
37234 PR ipa/65076
37235 * passes.def: Add pass_nothrow.
37236 * ipa-pure-const.c: (pass_data_nothrow): New.
37237 (pass_nothrow): New.
37238 (pass_nothrow::execute): New.
37239 (make_pass_nothrow): New.
37240 * tree-pass.h (make_pass_nothrow): Declare.
37241
37242 2015-03-26 Jan Hubicka <hubicka@ucw.cz>
37243
37244 * ipa-inline-analysis.c (redirect_to_unreachable): Be prepared for
37245 edge to change by speculation resolution or redirection.
37246 (edge_set_predicate): Likewise.
37247 (inline_summary_t::duplicate): Likewise.
37248 (remap_edge_summaries): Likewise.
37249
37250 2015-03-26 Jan Hubicka <hubicka@ucw.cz>
37251
37252 * ipa-inline.c (check_maybe_up, check_maybe_down, check_match):
37253 New macros.
37254 (can_inline_edge_p): Relax option matching for always inline functions.
37255
37256 2015-03-26 Uros Bizjak <ubizjak@gmail.com>
37257
37258 PR target/65561
37259 * config/i386/sse.md (avx512dq_vextract<shuffletype>64x2_1_maskm):
37260 Check operand 4 and operand 0 for equality.
37261 (avx512f_vextract<shuffletype>32x4_1_maskm):
37262 Check operand 6 and operand 0 for equality.
37263 (vec_extract_lo_<mode>_maskm): Check operand 2 and operand 0
37264 for equality.
37265 (vec_extract_hi_<mode>_maskm): Ditto.
37266
37267 2015-03-26 Jan Hubicka <hubicka@ucw.cz>
37268
37269 * cgraph.c (cgraph_update_edges_for_call_stmt_node): Do not bring
37270 dead calls back to live.
37271 (cgraph_edge::verify_count_and_frequency): Move cgraph/cfg frequency
37272 cross check to ...
37273 (cgraph_node::verify_node): ... here; verify only callee edges,
37274 not caller.
37275 * cif-code.def (CILK_SPAWN): New code.
37276
37277 2015-03-26 Jan Hubicka <hubicka@ucw.cz>
37278
37279 * ipa-inline-analysis.c (redirect_to_unreachable): New function.
37280 (edge_set_predicate): Use it to mark unreachable edges.
37281 (inline_summary_t::duplicate): Remove unnecesary code.
37282 (remap_edge_summaries): Likewise.
37283 (dump_inline_summary): Report contains_cilk_spawn.
37284 (compute_inline_parameters): Compute contains_cilk_spawn.
37285 (inline_read_section, inline_write_summary): Stream
37286 contains_cilk_spawn.
37287 * ipa-inline.c (can_inline_edge_p): Do not touch
37288 DECL_STRUCT_FUNCTION that may not be available;
37289 use CIF_CILK_SPAWN for cilk; fix optimization attribute checks;
37290 remove check for callee_fun->can_throw_non_call_exceptions and
37291 replace it by optimization attribute check; check for flag_exceptions.
37292 * ipa-inline-transform.c (inline_call): Maintain
37293 DECL_FUNCTION_PERSONALITY
37294 * ipa-inline.h (inline_summary): Add contains_cilk_spawn.
37295
37296 2015-03-26 Jakub Jelinek <jakub@redhat.com>
37297
37298 PR tree-optimization/65551
37299 * tree-ssa-sccvn.c (fully_constant_vn_reference_p): Use
37300 TYPE_PRECISION only for INTEGRAL_TYPE_P types.
37301
37302 2015-03-26 Richard Biener <rguenther@suse.de>
37303
37304 PR middle-end/65555
37305 * tree-cfg.c (verify_gimple_call): Do not require a call to
37306 have no LHS if it wasn't recognized as control altering yet.
37307
37308 2015-03-26 Jakub Jelinek <jakub@redhat.com>
37309
37310 PR tree-optimization/64715
37311 * passes.def: Add another instance of pass_object_sizes before ccp1.
37312 * tree-object-size.c (pass_object_sizes::execute): In
37313 first_pass_instance, only handle __bos (, 1) and __bos (, 3)
37314 calls, and keep the call in the IL, as {MIN,MAX}_EXPR of the
37315 __bos result and the computed constant. Remove redundant
37316 checks, obsoleted by gimple_call_builtin_p test.
37317
37318 * var-tracking.c (variable_tracking_main_1): Don't track
37319 variables for targetm.no_register_allocation targets.
37320
37321 2015-03-26 Oleg Endo <olegendo@gcc.gnu.org>
37322
37323 * config/sh/t-linux (DEFAULT_ENDIAN, MULTILIB_EXCEPTIONS): Remove.
37324 * config/sh/t-sh (MULTILIB_EXCEPTIONS): Handle default endian.
37325
37326 2015-03-25 Michael Meissner <meissner@linux.vnet.ibm.com>
37327
37328 PR target/65569
37329 * config/rs6000/rs6000.md (extenddftf2_fprs): On VSX systems use
37330 XXLXOR to create 0.0. On pre-VSX systems make sure the constant
37331 0.0 is correctly setup.
37332 (extenddftf2_internal): Likewise.
37333
37334 2015-03-25 Sebastian Pop <s.pop@samsung.com>
37335
37336 PR tree-optimization/65177
37337 * tree-ssa-threadupdate.c (verify_seme): Renamed verify_jump_thread.
37338 (bb_in_bbs): New.
37339 (duplicate_seme_region): Renamed duplicate_thread_path. Redirect all
37340 edges not adjacent on the path to the original code.
37341
37342 2015-03-25 Uros Bizjak <ubizjak@gmail.com>
37343
37344 PR bootstrap/65537
37345 * doc/install.texi (Building a native compiler): Document new
37346 bootstrap-lto-noplugin configuration. Mention that bootstrap-lto
37347 configuration assumes that the host supports the linker plugin.
37348
37349 2015-03-25 Ilya Enkovich <ilya.enkovich@intel.com>
37350
37351 PR target/65508
37352 * tree-chkp.c (chkp_add_bounds_to_call_stmt): Set static
37353 chain for generated call.
37354
37355 2015-03-25 Richard Biener <rguenther@suse.de>
37356
37357 * passes.c (pass_manager::execute_early_local_passes): Guard
37358 execution of pass_chkp_instrumentation_passes with
37359 flag_check_pointer_bounds.
37360 (pass_chkp_instrumentation_passes::gate): Likewise.
37361
37362 2015-03-25 Martin Liska <mliska@suse.cz>
37363
37364 PR tree-optimization/65538
37365 * symbol-summary.h (function_summary::~function_summary):
37366 Relese memory for allocated summaries.
37367 (function_summary::release): New function.
37368
37369 2015-03-25 Jakub Jelinek <jakub@redhat.com>
37370
37371 PR lto/65515
37372 * lto-streamer-out.c (DFS::worklist): New struct.
37373 (DFS::worklist_vec): New data member.
37374 (DFS::next_dfs_num): Remove.
37375 (DFS::DFS): Rewritten using worklist instead of recursion,
37376 using most of code from DFS::DFS_write_tree.
37377 (DFS::DFS_write_tree_body): Remove SINGLE_P argument, don't
37378 pass it to DFS_write_tree calls.
37379 (DFS::DFS_write_tree): Remove SINGLE_P argument, after
37380 quick initial checks push it into worklist_vec and return.
37381
37382 2015-03-25 Richard Biener <rguenther@suse.de>
37383
37384 PR middle-end/65519
37385 * genmatch.c (expr::gen_transform): Re-write to avoid
37386 using gimple_build.
37387
37388 2015-03-25 Bin Cheng <bin.cheng@arm.com>
37389
37390 * doc/sourcebuild.texi (arm_tune_string_ops_prefer_neon): New.
37391
37392 2015-03-25 Bin Cheng <bin.cheng@arm.com>
37393
37394 * config/arm/arm.opt (print_tune_info): New option.
37395 * config/arm/arm.c (arm_print_tune_info): New function.
37396 (arm_file_start): Call arm_print_tune_info.
37397 * config/arm/arm-protos.h (struct tune_params): Add comment.
37398 * doc/invoke.texi (@item -mprint-tune-info): New item.
37399 (-mtune): mention it in ARM Option Summary.
37400
37401 2015-03-25 DJ Delorie <dj@redhat.com>
37402
37403 * config/rl78/rl78.c (rl78_print_operand_1): Move 'p' test to
37404 correct clause.
37405
37406 2015-03-24 Jan Hubicka <hubicka@ucw.cz>
37407 Martin Liska <mliska@suse.cz>
37408
37409 * ipa-icf-gimple.h (return_with_result): Add missing colon to dump.
37410 * ipa-icf.c (sem_function::get_hash): Hash new declaration properties.
37411 (sem_item::add_type): New function.
37412 (sem_function::hash_stmt): Add TREE_TYPE of gimple_op.
37413 (sem_function::compare_polymorphic_p): Do not consider indirect calls.
37414 (sem_item_optimizer::update_hash_by_addr_refs): Add ODR type to hash.
37415 (sem_function::equals_wpa): Fix typo.
37416 * ipa-icf.h (sem_item::add_type): New function.
37417 (symbol_compare_hashmap_traits): Replace hashing of pointer with symbol
37418 order.
37419
37420 2015-03-24 Jakub Jelinek <jakub@redhat.com>
37421
37422 PR tree-optimization/65533
37423 * tree-vect-slp.c (vect_build_slp_tree): Before re-trying
37424 with swapped operands, call vect_free_slp_tree on
37425 SLP_TREE_CHILDREN of child and truncate the SLP_TREE_CHILDREN
37426 vector.
37427
37428 2015-03-24 Richard Biener <rguenther@suse.de>
37429
37430 PR middle-end/65517
37431 * tree-cfg.c (remove_edge_and_dominated_blocks): Mark loops
37432 for fixup if necessary.
37433
37434 2015-03-23 Sandra Loosemore <sandra@codesourcery.com>
37435
37436 * doc/extend.texi (Function Attributes): Add @cindex entries
37437 for all attributes and regularize their format. Delete text
37438 about long-obsolete 68HC11 and 68HC12 targets. Move misplaced
37439 information about "eightbit_data", "tiny_data", and "model"
37440 variable attributes to the Variable Attributes section. Fix
37441 some obvious typos and copy-editing issues.
37442 (Variable Attributes, Type Attributes): Likewise add/fix
37443 @cindex entries for all attributes.
37444
37445 2015-03-23 Jakub Jelinek <jakub@redhat.com>
37446
37447 PR target/65523
37448 * tree-chkp.c (chkp_build_returned_bound): Ignore
37449 ERF_RETURNS_ARG calls if they have fewer than needed arguments.
37450
37451 2015-03-23 Oleg Endo <olegendo@gcc.gnu.org>
37452
37453 PR target/65505
37454 * config/sh/predicates.md (simple_mem_operand,
37455 displacement_mem_operand): Add test for reg.
37456 (short_displacement_mem_operand): Test for displacement_mem_operand
37457 before invoking sh_disp_addr_displacement.
37458 * config/sh/constraints.md (Sdd, Sra): Simplify.
37459 * config/sh/sync.md (atomic_mem_operand_0, atomic_mem_operand_1):
37460 Remove redundant displacement_mem_operand tests.
37461
37462 2015-03-23 Georg-Johann Lay <avr@gjlay.de>
37463
37464 PR target/65296
37465 * config/avr/driver-avr.c (avr_devicespecs_file): Allow to specify
37466 the same -mmcu=MCU more than once.
37467
37468 2015-03-23 Jakub Jelinek <jakub@redhat.com>
37469
37470 PR bootstrap/65522
37471 * ipa-devirt.c: Remove duplicate demangle.h include.
37472
37473 PR target/65504
37474 * config/i386/i386.c (ix86_copy_addr_to_reg): Set REG_POINTER
37475 on the pseudo.
37476 (expand_set_or_movmem_prologue_epilogue_by_misaligned_moves): Set
37477 REG_POINTER on *destptr after adjusting it for prologue size.
37478
37479 PR ipa/65521
37480 * ipa-icf.c (sem_item::update_hash_by_addr_refs): Hash
37481 ultimate_alias_target ()->order ints instead of
37482 ultimate_alias_target () pointers.
37483
37484 2015-03-23 Richard Biener <rguenther@suse.de>
37485
37486 PR tree-optimization/65518
37487 * tree-vect-stmts.c (vectorizable_load): Reject single-element
37488 interleaving cases we generate absymal code for.
37489
37490 2015-03-23 Richard Biener <rguenther@suse.de>
37491
37492 PR tree-optimization/65494
37493 * tree-vect-slp.c (vect_build_slp_tree): Do not (re-)allocate
37494 matches here.
37495 (vect_analyze_slp_instance): But do that here, always and once.
37496
37497 2015-03-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
37498
37499 * expmed.c (synth_mult): Fix comment about multiplying by T-1 and
37500 adding T or multiplying by T+1 and subracting T.
37501
37502 2015-03-22 Jeff Law <law@redhat.com>
37503
37504 PR rtl-optimization/64317
37505 * Makefile.in (OBJS): Add gcse-common.c
37506 * gcse.c: Include gcse-common.h
37507 (struct modify_pair_s): Move structure definition to gcse-common.h
37508 (compute_transp): Move function to gcse-common.c.
37509 (canon_list_insert): Similarly.
37510 (record_last_mem_set_info): Break out some code and put it into
37511 gcse-common.c. Call into the new common code.
37512 (compute_local_properties): Pass additional arguments to compute_transp.
37513 * postreload-gcse.c: Include gcse-common.h and df.h
37514 (modify_mem_list_set, blocks_with_calls): New variables.
37515 (modify_mem_list, canon_modify_mem_list, transp): Likewise.
37516 (get_bb_avail_insn): Pass in the expression index too.
37517 (alloc_mem): Allocate memory for the new bitmaps and lists.
37518 (free_mem): Free memory for the new bitmaps and lists.
37519 (insert_expr_in_table): Record a bitmap index for each entry we
37520 add to the table.
37521 (record_last_mem_set_info): Call into common code in gcse-common.c.
37522 (get_bb_avail_insn): If no available insn was found in the requested
37523 BB. If BB has a single predecessor, see if the expression is
37524 transparent in BB and available in that single predecessor.
37525 (compute_expr_transp): New wrapper for compute_transp.
37526 (eliminate_partially_redundant_load): Pass expression's bitmap_index
37527 to get_bb_avail_insn. Compute next_pred_bb_end a bit later.
37528 (gcse_after_reload_main): If there are elements in the hash table,
37529 then compute transparency for all the elements in the hash table.
37530 * gcse-common.h: New file.
37531 * gcse-common.c: New file.
37532
37533 2015-03-22 Sandra Loosemore <sandra@codesourcery.com>
37534
37535 * doc/cpp.texi (Search Path): Hyphenate "command-line" when used
37536 as an adjective.
37537 (System Headers): Likewise.
37538 (Ifdef): Likewise.
37539 (Traditional macros): Likewise.
37540 (Invocation): Likewise.
37541 (Option Index): Likewise.
37542 * doc/cppopts.texi (-M): Likewise.
37543 (-finput-charset): Likewise.
37544 (--help): Likewise.
37545 * doc.invoke.texi (AVR Options): Likewise.
37546 (V850 Options): Likewise.
37547
37548 2015-03-22 Jan Hubicka <hubicka@ucw.cz>
37549
37550 PR ipa/65475
37551 * ipa-devirt.c: Include demangle.h
37552 (odr_type_d): Add field rtti_broken.
37553 (odr_subtypes_equivalent_p): Do not require name to match.
37554 (compare_virtual_tables): Fix typo; if type already has ODR violation,
37555 bypass the tests; be ready for function referneces in vtables that are
37556 not DECL_VIRTUAL; make warnings to be OPT_Wodr.
37557 (warn_odr): Give up for nameless types.
37558 (warn_types_mismatch): Report mismatch in mangled names;
37559 report mismatch in anonymous namespaces; look into component types to
37560 give useful error; report when mismatch is dragged in from other ODR
37561 type.
37562 (odr_types_equivalent_p): Match types for being polymorphic; avoid
37563 duplicated diagnostics.
37564 (add_type_duplicate): Reorder checks so more informative ones come
37565 first; fix typo; do not output "the extra base is defined here" when
37566 we did not warn.
37567 (BINFO_N_BASE_BINFOS): Relax sanity check.
37568
37569 2015-03-22 Martin Liska <mliska@suse.cz>
37570 Jakub Jelinek <jakub@redhat.com>
37571
37572 * config/i386/i386.c (def_builtin): Set deferred_isa_values for
37573 masks that can potentially include a builtin.
37574 (ix86_add_new_builtins): Introduce fast filter for isa values
37575 that cannot trigger builtin inclusion.
37576
37577 2015-03-22 Martin Liska <mliska@suse.cz>
37578
37579 * ipa-icf.c (sem_item::update_hash_by_addr_refs): New function.
37580 (sem_item::update_hash_by_local_refs): Likewise.
37581 (sem_variable::get_hash): Empty line is fixed.
37582 (sem_item_optimizer::execute): Include adding of hash references.
37583 (sem_item_optimizer::update_hash_by_addr_refs): New function.
37584 (sem_item_optimizer::build_hash_based_classes): Use local hash.
37585 * ipa-icf.h (sem_item::update_hash_by_addr_refs): New function.
37586 (sem_item::update_hash_by_local_refs): Likewise.
37587
37588 2015-03-20 Jan Hubicka <hubicka@ucw.cz>
37589
37590 PR ipa/65502
37591 * ipa-comdats.c (enqueue_references): Walk through thunks.
37592 (ipa_comdats): Likewise.
37593 (set_comdat_group_1): New function.
37594
37595 2015-03-20 Jan Hubicka <hubicka@ucw.cz>
37596
37597 PR ipa/65475
37598 * ipa-devirt.c (add_type_duplicate): Prevail polymorphic type over
37599 non-polymorphic
37600
37601 2015-03-22 Dave Korn <dave.korn.cygwin@gmail.com>
37602 Gerald Pfeifer <gerald@pfeifer.com>
37603
37604 * doc/contrib.texi (Contributors): Update entry for Danny Smith.
37605
37606 2015-03-21 Chung-Lin Tang <cltang@codesourcery.com>
37607 Sandra Loosemore <sandra@codesourcery.com>
37608
37609 * config/nios2/nios2-protos.h (nios2_adjust_call_address): Adjust
37610 function parameter declaration.
37611 * config/nios2/nios2.md (call,call_value,sibcall,sibcall_value):
37612 Update arguments to nios2_adjust_call_address().
37613 (sibcall_internal): Rename from *sibcall.
37614 (sibcall_value_internal): Rename from *sibcall_value.
37615 * config/nios2/nios2.c (nios2_emit_add_constant): New function.
37616 (nios2_large_got_address): Add target temp reg parameter.
37617 (nios2_got_address): Adjust call to nios2_large_got_address, add
37618 force_reg around it.
37619 (nios2_load_pic_address): Add target temp reg parameter, replace call
37620 to nios2_got_address with corresponding code.
37621 (nios2_legitimize_constant_address): Update call to
37622 nios2_load_pic_address.
37623 (nios2_adjust_call_address): Add temp reg parameter, update PIC case
37624 to use temp reg for PIC loading purposes.
37625 (nios2_asm_output_mi_thunk): Implement TARGET_ASM_OUTPUT_MI_THUNK.
37626 (TARGET_ASM_CAN_OUTPUT_MI_THUNK): Define.
37627 (TARGET_ASM_OUTPUT_MI_THUNK): Likewise.
37628
37629 2015-03-21 Sandra Loosemore <sandra@codesourcery.com>
37630
37631 * doc/invoke.texi (-fno-diagnostics-show-caret): Fix
37632 usage of "the @option{...}".
37633 (-Wopenmp-simd): Likewise.
37634 (-fsanitize-recover): Likewise.
37635 (-fsanitize-undefined-trap-on-error): Likewise.
37636 (-flto): Likewise.
37637 (tracer-dynamic-coverage-feedback): Likewise.
37638 (reorder-block-duplicate-feedback): Likewise.
37639 (loop-unroll-jam-size): Likewise.
37640 (-B): Likewise.
37641 (-I-): Likewise.
37642 (-mabs=legacy): Likewise.
37643 (-mupper-regs-df): Likewise.
37644 (-mupper-regs-sf): Likewise.
37645 (-mpointers-to-nested-functions): Likewise.
37646
37647 2015-03-21 Sandra Loosemore <sandra@codesourcery.com>
37648
37649 * doc/extend.texi (Cilk Plus Builtins): Add markup.
37650
37651 2015-03-21 Sandra Loosemore <sandra@codesourcery.com>
37652
37653 * doc/invoke.texi (-fcheck-pointer-bounds): Copy-edit, add
37654 additional index entries and cross-references.
37655 (-fchkp-check-incomplete-type): Likewise.
37656 (-fchkp-first-field-has-own-bounds): Likewise.
37657 (-fchkp-narrow-to-innermost-array): Likewise.
37658 (-fchkp-use-fast-string-functions): Likewise.
37659 (-fchkp-use-nochk-string-functions): Likewise.
37660 (-fchkp-use-static-const-bounds): Likewise.
37661 (-fchkp-treat-zero-dynamic-size-as-infinite): Likewise.
37662 (-fchkp-instrument-marked-only): Likewise.
37663 (-fchkp-use-wrappers): Likewise.
37664 (-static-libmpx): Likewise.
37665 (-static-libmpxwrappers): Likewise.
37666 * doc/extend.texi (bnd_legacy): Likewise.
37667 (bnd_instrument): Likewise.
37668 (bnd_variable_size): Likewise.
37669 (Pointer Bounds Checker builtins): Likewise.
37670
37671 2015-03-21 Tom de Vries <tom@codesourcery.com>
37672
37673 PR tree-optimization/65458
37674 * cgraph.c (cgraph_node::dump): Handle parallelized_function field.
37675 * cgraph.h (cgraph_node): Add parallelized_function field.
37676 * lto-cgraph.c (lto_output_node): Write parallelized_function field.
37677 (input_overwrite_node): Read parallelized_function field.
37678 * omp-low.c (expand_omp_taskreg, finalize_task_copyfn): Set
37679 parallelized_function on cgraph_node for child_fn.
37680 * tree-parloops.c: Add include of plugin-api.h, ipa-ref.h and cgraph.h.
37681 Remove include of gt-tree-parloops.h.
37682 (parallelized_functions): Remove static variable.
37683 (parallelized_function_p): Rewrite using parallelized_function field of
37684 cgraph_node.
37685 (create_loop_fn): Remove adding to parallelized_functions.
37686 * Makefile.in (GTFILES): Remove tree-parloops.c
37687
37688 2015-03-20 Vladimir Makarov <vmakarov@redhat.com>
37689
37690 PR rtl-optimization/64366
37691 * lra.c (lra_update_insn_regno_info): Consider regs in
37692 CALL_INSN_FUNCTION_USAGE memory.
37693
37694 2015-03-20 Richard Biener <rguenther@suse.de>
37695
37696 PR middle-end/64715
37697 * tree-chrec.c (chrec_fold_poly_cst): Use useless_type_conversion_p
37698 for type comparison and gcc_checking_assert.
37699 (chrec_fold_plus_poly_poly): Likewise.
37700 (chrec_fold_multiply_poly_poly): Likewise.
37701 (chrec_convert_1): Likewise.
37702 * gimplify.c (gimplify_expr): Remove premature folding of
37703 &X + CST to &MEM[&X, CST].
37704
37705 2015-03-20 Jan Hubicka <hubicka@ucw.cz>
37706
37707 * ipa-inline.c (can_inline_edge_p): Short circuit if inline_failed
37708 already is final.
37709 (ipa_inline): Recompute inline_failed codes.
37710 * cif-code.def (FUNCTION_NOT_OPTIMIZED, REDEFINED_EXTERN_INLINE,
37711 USES_COMDAT_LOCAL, ATTRIBUTE_MISMATCH, UNREACHABLE): Declare as
37712 CIF_FINAL_ERROR.
37713
37714 2015-03-20 Uros Bizjak <ubizjak@gmail.com>
37715
37716 PR rtl-optimization/60851
37717 * recog.c (constrain_operands): Accept a pseudo register before reload
37718 for LRA enabled targets.
37719
37720 2015-03-19 Michael Meissner <meissner@linux.vnet.ibm.com>
37721
37722 PR target/65240
37723 * config/rs6000/predicates.md (easy_fp_constant): Remove special
37724 -ffast-math handling that kept non-0 constants live in the RTL
37725 until reload. Remove logic testing the number of instructions it
37726 took to create a constant in a GPR that was never used, due to a
37727 test for soft-float earlier.
37728 (memory_fp_constant): Delete, no longer used.
37729
37730 * config/rs6000/rs6000.md (mov<MODE>_hardfloat): Remove
37731 alternatives for loading non-0 constants into GPRs for hard
37732 floating point that is no longer needed due to changes in
37733 easy_fp_constant. Add support for loading 0.0 into GPRs.
37734 (mov<mode>_hardfloat32): Likewise.
37735 (mov<mode>_hardfloat64): Likewise.
37736 (mov<mode>_64bit_dm): Likewise.
37737 (movtd_64bit_nodm): Likewise.
37738 (pre-reload move FP constant define_split): Delete define_split,
37739 since it is no longer used.
37740 (extenddftf2_internal): Remove GHF constraints that are not valid
37741 for extenddftf2.
37742
37743 2015-03-19 Vladimir Makarov <vmakarov@redhat.com>
37744
37745 PR rtl-optimization/63491
37746 * lra-constraints.c (check_and_process_move): Use src instead of
37747 sreg. Remove some dead code.
37748
37749 2015-03-19 Jan Hubicka <hubicka@ucw.cz>
37750
37751 PR ipa/65380
37752 * ipa-icf.c (sem_function::merge): Do not merge DECL_EXTERNAL symbols.
37753 (sem_variable::merge): Likewise.
37754
37755 2015-03-19 Martin Liska <mliska@suse.cz>
37756
37757 PR ipa/65465
37758 * cgraphunit.c (cgraph_node::create_wrapper): Correctly reset
37759 all fields of cgraph_thunk_info.
37760
37761 2015-03-19 Ilya Enkovich <ilya.enkovich@intel.com>
37762
37763 * ipa-chkp.c (chkp_maybe_create_clone): Don't try to
37764 clone instrumented thunks.
37765
37766 2015-03-19 Richard Biener <rguenther@suse.de>
37767
37768 Revert
37769 2015-03-10 Richard Biener <rguenther@suse.de>
37770
37771 PR middle-end/63155
37772 * tree-ssa-coalesce.h (verify_ssa_coalescing): Declare.
37773 * tree-ssa-coalesce.c: Include timevar.h.
37774 (attempt_coalesce): Handle graph being NULL.
37775 (coalesce_partitions): Call verify_ssa_coalescing if ENABLE_CHECKING.
37776 Split out abnormal coalescing to ...
37777 (perform_abnormal_coalescing): ... this function.
37778 (coalesce_ssa_name): Perform abnormal coalescing without computing
37779 live/conflict.
37780 (verify_ssa_coalescing_worker): New function.
37781 (verify_ssa_coalescing): Likewise.
37782
37783 2015-03-19 Bernd Edlinger <bernd.edlinger@hotmail.de>
37784 Jakub Jelinek <jakub@redhat.com>
37785
37786 PR sanitizer/65400
37787 * tsan.c (instrument_gimple): Clear tail call flag on
37788 calls.
37789
37790 2015-03-19 Jakub Jelinek <jakub@redhat.com>
37791
37792 PR sanitizer/65400
37793 * ipa-split.c (find_return_bb): Allow TSAN_FUNC_EXIT internal
37794 call in the return bb.
37795 (find_split_points): Add RETURN_BB argument, don't call
37796 find_return_bb.
37797 (split_function): Likewise. Add ADD_TSAN_FUNC_EXIT argument,
37798 if true append TSAN_FUNC_EXIT internal call after the call to
37799 the split off function.
37800 (execute_split_functions): Call find_return_bb here.
37801 Don't optimize if TSAN_FUNC_EXIT is found in unexpected places.
37802 Adjust find_split_points and split_function calls.
37803
37804 2015-03-18 DJ Delorie <dj@redhat.com>
37805
37806 * config/rl78/rl78-virt.md (andqi3_virt): Allow far operands.
37807 (iorqi3_virt): Likewise.
37808
37809 2015-03-18 Tom de Vries <tom@codesourcery.com>
37810
37811 * tree-parloops.c (parallelize_loops): Make static.
37812 * tree-parloops.h (parallelize_loops): Remove extern declaration.
37813
37814 2015-03-18 Andrew Stubbs <ams@codesourcery.com>
37815
37816 PR middle-end/64491
37817 Revert:
37818 2014-11-20 Andrew Stubbs <ams@codesourcery.com>
37819
37820 * tree-ssa-loop-niter.c (maybe_lower_iteration_bound): Warn if a loop
37821 condition would be removed due to undefined behaviour.
37822
37823 2015-03-18 Martin Liska <mliska@suse.cz>
37824
37825 PR ipa/65432
37826 * cgraph.c (cgraph_node::get_create): Remove unnecessary
37827 xstrdup_for_dump wrapper.
37828 * ipa-icf.c (sem_item::dump): Use symtab_node::name instead of
37829 sem_item::name.
37830 (sem_function::equals): Wrap symtab_node::name and symtab_node::asm_name
37831 with xstrdup_for_dump.
37832 (sem_variable::equals): Likewise.
37833 (sem_item_optimizer::read_section): Use symtab_node::name instead of
37834 sem_item::name.
37835 (sem_item_optimizer::parse_funcs_and_vars): Likewise.
37836 (sem_item_optimizer::merge_classes): Wrap symtab_node::name and
37837 symtab_node::asm_name with xstrdup_for_dump.
37838 (congruence_class::dump): Use symtab_node::name instead of
37839 sem_item::name.
37840 * ipa-icf.h (symtab_node::name): Remove.
37841 (symtab_node::asm_name): Likewise.
37842
37843 2015-03-18 Jakub Jelinek <jakub@redhat.com>
37844
37845 PR tree-optimization/65450
37846 * tree-vect-data-refs.c (vect_duplicate_ssa_name_ptr_info): New
37847 function.
37848 (vect_create_addr_base_for_vector_ref, vect_create_data_ref_ptr): Use
37849 it instead of duplicate_ssa_name_ptr_info.
37850
37851 PR target/65222
37852 * doc/invoke.texi: Add knl as x86 -march=/-mtune= CPU type.
37853
37854 2015-03-18 Richard Biener <rguenther@suse.de>
37855
37856 * tree-data-ref.h (struct access_matrix): Remove.
37857 (AM_LOOP_NEST, AM_NB_INDUCTION_VARS, AM_PARAMETERS, AM_MATRIX,
37858 AM_NB_PARAMETERS, AM_CONST_COLUMN_INDEX, AM_NB_COLUMNS,
37859 AM_GET_SUBSCRIPT_ACCESS_VECTOR, AM_GET_ACCESS_MATRIX_ELEMENT): Likewise.
37860 (am_vector_index_for_loop): Likewise.
37861 (struct data_reference): Remove access_matrix member.
37862 (DR_ACCESS_MATRIX): Remove.
37863 (lambda_vector_new): Add comment.
37864 (lambda_matrix_new): Use XOBNEWVEC.
37865
37866 2015-03-18 Richard Biener <rguenther@suse.de>
37867
37868 * tree-ssa-loop-ch.c (pass_data_ch): Remove TODO_cleanup_cfg.
37869 (pass_ch::execute): Cleanup the CFG only if we did sth.
37870 * tree-vect-generic.c (pass_data_lower_vector): Remove TODO_cleanup_cfg.
37871
37872 2015-03-18 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
37873
37874 * expmed.c (synth_mult): Use std::swap instead of manually
37875 swapping algorithms.
37876
37877 2015-03-18 Jakub Jelinek <jakub@redhat.com>
37878
37879 PR target/65078
37880 * config/i386/sse.md (movsi/movdi -> vec_extract_*_0 splitter): New.
37881
37882 2015-03-16 Georg-Johann Lay <avr@gjlay.de>
37883
37884 PR target/65296
37885 * config/avr/avr.opt (-nodevicelib): New option.
37886 * doc/invoke.texi (AVR Options): Document it.
37887 * config/avr/avrlibc.h (LIB_SPEC, LIBGCC_SPEC) [avr1]: Don't link
37888 libgcc.a, libc.a, libm.a.
37889 * config/avr/specs.h: Same.
37890 * config/avr/gen-avr-mmcu-specs.c (print_mcu): Don't print specs
37891 which don't (directly) depend on the device. Print more help.
37892 (*avrlibc_devicelib) [-nodevicelib]: Don't link libdev.a.
37893 (*cpp): Don't define __AVR_DEV_LIB_NAME__.
37894 * config/avr/driver-avr.c: Remove -nodevicelib from option list in
37895 case of an error.
37896 (avr_devicespecs_file): Use suffix "%s" instead of absolute path
37897 for specs file name.
37898 * config/avr/avr-arch.h (avr_mcu_t) [.library_name]: Remove.
37899 * config/avr/avr-mcus.def: Adjust initializers and comments.
37900
37901 2015-03-16 Jan Hubicka <hubicka@ucw.cz>
37902
37903 * tree-sra.c (ipa_sra_preliminary_function_checks): Use
37904 DECL_ONE_ONLY to check if decl is one only.
37905 * ipa-split.c (consider_split): Limit splitt of one only functions.
37906
37907 2015-03-16 Jakub Jelinek <jakub@redhat.com>
37908
37909 PR tree-optimization/65427
37910 * tree-vect-generic.c (do_cond, expand_vector_scalar_condition): New
37911 functions.
37912 (expand_vector_operations_1): Handle BLKmode vector COND_EXPR.
37913
37914 2015-03-16 Marek Polacek <polacek@redhat.com>
37915
37916 * cgraph.h (add_new_static_var): Remove declaration.
37917 * varpool.c (add_new_static_var): Remove function.
37918
37919 2015-03-16 Jakub Jelinek <jakub@redhat.com>
37920
37921 * omp-low.c (expand_omp_target): Use auto_vec<tree, 11>
37922 instead of vec<tree> * with vec_alloc and release for args.
37923 Adjust all users.
37924
37925 PR middle-end/65431
37926 * omp-low.c (delete_omp_context): Only splay_tree_delete
37927 reduction_map in GIMPLE_OMP_TARGET is_gimple_omp_offloaded
37928 is_gimple_omp_oacc contexts. Don't look at ctx->outer.
37929
37930 2015-03-16 Max Ostapenko <m.ostapenko@partner.samsung.com>
37931
37932 PR sanitizer/64820
37933 * cfgexpand.c (align_base): New function.
37934 (alloc_stack_frame_space): Call it.
37935 (expand_stack_vars): Align prev_frame to be sure
37936 data->asan_vec elements aligned properly.
37937
37938 2015-03-16 Eric Botcazou <ebotcazou@adacore.com>
37939
37940 PR middle-end/65409
37941 * expr.c (store_field): Do not do a direct block copy if the source is
37942 a PARALLEL with BLKmode.
37943
37944 2015-03-16 Tom de Vries <tom@codesourcery.com>
37945
37946 PR middle-end/65414
37947 Revert:
37948 2015-03-12 Tom de Vries <tom@codesourcery.com>
37949
37950 PR rtl-optimization/64895
37951 * lra-lives.c (check_pseudos_live_through_calls): Use
37952 actual_call_used_reg_set instead of call_used_reg_set, if available.
37953
37954 2015-03-16 Alan Modra <amodra@gmail.com>
37955
37956 PR target/63150
37957 * config/rs6000/rs6000.md (bswapdi2): Remove one scratch reg.
37958 Modify Z->r bswapdi splitter to use dest in place of scratch.
37959 In r->Z and Z->r bswapdi splitter rename word_high, word_low
37960 to word1, word2 and rearrange logic to suit.
37961 (bswapdi2_64bit): Remove early clobber on Z->r alternative.
37962 (bswapdi2_ldbrx): Likewise. Remove '??' on r->r.
37963 (bswapdi2_32bit): Remove early clobber on Z->r alternative.
37964 Add one '?' on r->r. Modify Z->r splitter to avoid need for
37965 early clobber.
37966
37967 2015-03-14 Jakub Jelinek <jakub@redhat.com>
37968
37969 PR tree-optimization/65369
37970 * tree-vect-stmts.c (vectorizable_load) <case dr_explicit_realign>:
37971 Set bump to vs * TYPE_SIZE_UNIT (elem_type) - 1 instead of
37972 (vs - 1) * TYPE_SIZE_UNIT (elem_type).
37973
37974 PR tree-optimization/65418
37975 * tree-ssa-reassoc.c (extract_bit_test_mask): If there
37976 are casts in the first PLUS_EXPR operand, ensure tbias and
37977 *totallowp are in the inner type.
37978
37979 PR rtl-optimization/65401
37980 * combine.c (rtx_equal_for_field_assignment_p): Add widen_x
37981 argument. If true, adjust_address_nv of x with big-endian
37982 correction for the mode widening to GET_MODE (y).
37983 (make_field_assignment): Don't do MEM mode widening here.
37984 Use MEM_P instead of GET_CODE == MEM.
37985
37986 2015-03-13 Ilya Verbin <ilya.verbin@intel.com>
37987
37988 * varpool.c (varpool_node::get_create): Don't set 'offloadable' flag for
37989 the external decls.
37990
37991 2015-03-13 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
37992
37993 PR target/64600
37994 * config/arm/arm.c (arm_gen_constant, AND case): Use
37995 ARM_SIGN_EXTEND when constructing AND mask.
37996
37997 2015-03-13 Thomas Preud'homme <thomas.preudhomme@arm.com>
37998
37999 * graph.c (print_graph_cfg): Make function names visible and append
38000 parenthesis to it. Also make groups of basic blocks belonging to the
38001 same function visible.
38002
38003 2015-03-12 Richard Biener <rguenther@suse.de>
38004
38005 PR middle-end/44563
38006 * tree-inline.c (gimple_expand_calls_inline): Walk BB backwards
38007 to avoid quadratic behavior with inline expansion splitting blocks.
38008 * tree-cfgcleanup.c (cleanup_tree_cfg_bb): Do not merge block
38009 with the successor if the predecessor will be merged with it.
38010 * tree-cfg.c (gimple_can_merge_blocks_p): We can't merge the
38011 entry block with its successor.
38012
38013 2015-03-13 Richard Biener <rguenther@suse.de>
38014
38015 PR middle-end/44563
38016 * tree-cfgcleanup.c (split_bb_on_noreturn_calls): Remove.
38017 (cleanup_tree_cfg_1): Do not call it.
38018 (execute_cleanup_cfg_post_optimizing): Fixup the CFG here.
38019 (fixup_noreturn_call): Mark the stmt as control altering.
38020 * tree-cfg.c (execute_fixup_cfg): Do not dump the function
38021 here.
38022 (pass_data_fixup_cfg): Produce a dump file.
38023 * tree-ssa-dom.c: Include tree-cfgcleanup.h.
38024 (need_noreturn_fixup): New global.
38025 (pass_dominator::execute): Fixup queued noreturn calls.
38026 (optimize_stmt): Queue calls that became noreturn for fixup.
38027 * tree-ssa-forwprop.c (pass_forwprop::execute): Likewise.
38028 * tree-ssa-pre.c: Include tree-cfgcleanup.h.
38029 (el_to_fixup): New global.
38030 (eliminate_dom_walker::before_dom_childre): Queue calls that
38031 became noreturn for fixup.
38032 (eliminate): Fixup queued noreturn calls.
38033 * tree-ssa-propagate.c: Include tree-cfgcleanup.h.
38034 (substitute_and_fold_dom_walker): New member stmts_to_fixup.
38035 (substitute_and_fold_dom_walker::before_dom_children): Queue
38036 alls that became noreturn for fixup.
38037 (substitute_and_fold): Fixup queued noreturn calls.
38038
38039 2015-03-12 Jan Hubicka <hubicka@ucw.cz>
38040
38041 * ipa-icf.c (sem_function::equals_wpa): Match CXX_CONSTRUCTOR_P
38042 and CXX_DESTURCTOR_P. For consutrctors match ODR type of class they
38043 are building; for methods check ODR type of class they belong to if
38044 they may lead to a polymorphic call.
38045 (sem_function::compare_polymorphic_p): Be bit smarter about testing
38046 when function may lead to a polymorphic call.
38047 (sem_function::compare_type_list): Remove.
38048 (sem_variable::equals): Update use of compatible_types_p.
38049 (sem_variable::parse_tree_refs): Remove.
38050 (sem_item_optimizer::filter_removed_items): Do not filter out CXX
38051 cdtor.
38052 * ipa-icf-gimple.c (func_checker::compare_decl): Do polymorphic
38053 matching here.
38054 (func_checker::compatible_polymorphic_types_p): Break out from ...
38055 (unc_checker::compatible_types_p): ... here.
38056 * ipa-icf-gimple.h (func_checker::compatible_polymorphic_types_p):
38057 Declare.
38058 (unc_checker::compatible_types_p): Update.
38059 * ipa-icf.h (compare_type_list, parse_tree_refs, compare_sections):
38060 Remove.
38061
38062 2015-03-12 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
38063
38064 PR rtl-optimization/65235
38065 * simplify-rtx.c (simplify_binary_operation_1, VEC_SELECT case):
38066 When first element of vec_concat is const_int, calculate its size
38067 using second element.
38068
38069 2015-03-12 Richard Biener <rguenther@suse.de>
38070
38071 PR middle-end/65270
38072 * fold-const.c (operand_equal_p): Fix ordering of resetting
38073 OEP_ADDRESS_OF and checking for it in the [TARGET_]MEM_REF case.
38074
38075 2015-03-12 Dominik Vogt <vogt@linux.vnet.ibm.com>
38076
38077 * config/s390/s390.c (s390_reorg): Move code to output nops after label
38078 to s390_reorg ().
38079 (s390_asm_output_function_label): Likewise.
38080 * config/s390/s390.c (s390_asm_output_function_label):
38081 Fix function label alignment with -mhtopatch.
38082 * config/s390/s390.md ("unspecv"): New values UNSPECV_NOP_2_BYTE,
38083 UNSPECV_NOP_4_BYTE and UNSPECV_NOP_6_BYTE
38084 ("nop_2_byte"): New define_insn.
38085 ("nop_4_byte"): Likewise.
38086 ("nop_6_byte"): Likewise.
38087 * doc/extend.texi (hotpatch): hotpatch attribute doc fixes.
38088 * doc/invoke.texi (-mhotpatch): -mhotpatch doc fixes.
38089
38090 2015-03-12 Ilya Enkovich <ilya.enkovich@intel.com>
38091
38092 PR target/65103
38093 * config/i386/i386.c (ix86_address_cost): Fix cost of a PIC
38094 register.
38095
38096 2015-03-12 Ilya Enkovich <ilya.enkovich@intel.com>
38097
38098 PR target/65044
38099 * toplev.c (process_options): Restrict Pointer Bounds Checker
38100 usage with Address Sanitizer.
38101
38102 2015-03-12 Richard Biener <rguenther@suse.de>
38103
38104 * tree-cfg.c (gimple_split_block): Remove loop finding stmt
38105 to split on.
38106 * omp-low.c (expand_omp_taskreg): Split block before removing
38107 the stmt.
38108 (expand_omp_target): Likewise.
38109 * ubsan.c (ubsan_expand_null_ifn): Adjust stmt if we replaced it.
38110 * tree-parloops.c (create_call_for_reduction_1): Pass a proper
38111 stmt to split_block.
38112
38113 2015-03-12 Tom de Vries <tom@codesourcery.com>
38114
38115 PR rtl-optimization/64895
38116 * lra-lives.c (check_pseudos_live_through_calls): Use
38117 actual_call_used_reg_set instead of call_used_reg_set, if available.
38118
38119 2015-03-10 Jan Hubicka <hubicka@ucw.cz>
38120
38121 * cgraph.c (cgraph_node::release_body): Free function_in_decl_state.
38122 (cgraph_node::remove): Likewise.
38123 (cgraph_node::get_untransformed_body): Likewise.
38124 * varpool.c (varpool_node::remove): Likewise.
38125 (varpool_node::get_constructor): Add sanity check.
38126
38127 2015-03-11 Sandra Loosemore <sandra@codesourcery.com>
38128
38129 * doc/invoke.texi (-fgnu89-inline): Remove discussion about
38130 old GCC versions.
38131 (-fabi-compat-version): Likewise.
38132 (-ffriend-injection): Likewise.
38133 (-Wdeclaration-after-statement): Likewise.
38134 (-fomit-frame-pointer): Likewise.
38135 (-ftree-coalesce-inlined-vars): Likewise.
38136 (-fvisibility=): Likewise.
38137 * doc/extend.texi (Typeof): Likewise.
38138 (Zero Length): Likewise.
38139 (Escaped Newlines): Likewise.
38140 (Compound Literals): Likewise.
38141 (Function Attributes): Likewise.
38142 (Label Attributes): Likewise.
38143 (Type Attributes): Likewise.
38144 (Function Names): Likewise.
38145 (Other Builtins): Likewise.
38146 (Function Specific Option Pragmas): Likewise.
38147 (C++ Interface): Likewise.
38148
38149 2015-03-11 Thomas Schwinge <thomas@codesourcery.com>
38150
38151 * config/nvptx/nvptx.h (LIBSTDCXX): Define to "gcc".
38152
38153 2015-03-11 Marek Polacek <polacek@redhat.com>
38154
38155 PR tree-optimization/65388
38156 * tree-ssa-tail-merge.c (same_succ_def::equal): Fix typo in comparison.
38157
38158 2015-03-10 Georg-Johann Lay <avr@gjlay.de>
38159
38160 PR target/65296
38161 * configure.ac [avr]: Check as for options -mrmw, --mlink-relax.
38162 * configure: Regenerate.
38163 * config.in: Regenerate.
38164 * doc/invoke.texi (AVR Options) [-mrmw]: Document it.
38165 [-mn-flash]: Document it.
38166 [__AVR_ARCH__]: Document avrtiny.
38167
38168 * config/avr/gen-avr-mmcu-specs.c (config.h): Include it.
38169 (*asm_relax): Only define spec if HAVE_AS_AVR_MLINK_RELAX_OPTION.
38170 (*asm_rmw): Only define spec if HAVE_AS_AVR_MRMW_OPTION.
38171
38172 2015-03-11 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
38173
38174 * doc/invoke.texi: Add missing cpu values (z196, zEC12).
38175
38176 2015-03-11 Michael Meissner <meissner@linux.vnet.ibm.com>
38177
38178 PR target/65242
38179 * config/rs6000/rs6000.c (rs6000_preferred_reload_class): Do not
38180 allow reloads of PLUS in floating point/VSX registers.
38181
38182 2015-03-11 Junmo Park <junmoz.park@samsung.com>
38183
38184 * config/arm/cortex-a57.md (cortex_a57_crypto_simple): Add
38185 crypto_sha256_fast.
38186 (cortex_a57_crypto_complex): Add crypto_sha256_slow.
38187
38188 2015-03-11 Richard Biener <rguenther@suse.de>
38189
38190 PR tree-optimization/65310
38191 * tree-sra.c (build_ref_for_offset): Also preserve larger
38192 alignment.
38193
38194 2015-03-11 Marat Zakirov <m.zakirov@samsung.com>
38195
38196 * asan.c (instrument_derefs): Disable instrumentation on asan-globals=0.
38197
38198 2015-03-10 Jakub Jelinek <jakub@redhat.com>
38199
38200 PR target/65368
38201 * config/i386/i386.md (bmi2_bzhi_<mode>3): Removed define_insn,
38202 new define_expand.
38203 (*bmi2_bzhi_<mode>3, *bmi2_bzhi_<mode>3_1): New define_insns.
38204
38205 2015-03-10 Jan Hubicka <hubicka@ucw.cz>
38206
38207 * ipa-icf.c (sem_function::equals_wpa): Move here some checks from ...
38208 (sem_function::equals_wpa): ... here.
38209
38210 2015-03-10 Marek Polacek <polacek@redhat.com>
38211 Jakub Jelinek <jakub@redhat.com>
38212
38213 PR sanitizer/65367
38214 * ubsan.c (ubsan_expand_objsize_ifn): Update GSI instead of GSI_ORIG
38215 when only removing the statement. Handle expanding UBSAN_OBJECT_SIZE
38216 separately.
38217
38218 2015-03-10 Jakub Jelinek <jakub@redhat.com>
38219
38220 PR target/65286
38221 * config/rs6000/t-linux: For powerpc64* target set
38222 MULTILIB_OSDIRNAMES instead of MULTIARCH_DIRNAME.
38223
38224 2015-03-10 Richard Biener <rguenther@suse.de>
38225
38226 PR middle-end/44563
38227 * tree-inline.c (copy_cfg_body): Skip block mapped to entry/exit
38228 for redirect_all_calls.
38229
38230 2015-03-10 Marek Polacek <polacek@redhat.com>
38231
38232 * gdbinit.in (pcfun): Define and document.
38233
38234 2015-03-10 Ilya Verbin <ilya.verbin@intel.com>
38235
38236 * config/i386/intelmic-mkoffload.c: Include intelmic-offload.h instead
38237 of libgomp-plugin.h.
38238 (find_target_compiler): Support a case when the path to gcc is
38239 specified in the PATH env var, so COLLECT_GCC doesn't contain a path.
38240 (generate_host_descr_file): Use GOMP_DEVICE_INTEL_MIC from
38241 intelmic-offload.h instead of OFFLOAD_TARGET_TYPE_INTEL_MIC from
38242 libgomp-plugin.h.
38243 (main): Use GCC_INSTALL_NAME as target_driver_name.
38244 * config/i386/t-intelmic (CFLAGS-mkoffload.o): Add GCC_INSTALL_NAME
38245 define.
38246 (mkoffload.o): Remove obsolete include path and defines.
38247 (mkoffload$(exeext)): Use $(LINKER) instead of $(COMPILER).
38248
38249 2015-03-10 Richard Biener <rguenther@suse.de>
38250
38251 PR middle-end/63155
38252 * tree-ssa-coalesce.h (verify_ssa_coalescing): Declare.
38253 * tree-ssa-coalesce.c: Include timevar.h.
38254 (attempt_coalesce): Handle graph being NULL.
38255 (coalesce_partitions): Call verify_ssa_coalescing if ENABLE_CHECKING.
38256 Split out abnormal coalescing to ...
38257 (perform_abnormal_coalescing): ... this function.
38258 (coalesce_ssa_name): Perform abnormal coalescing without computing
38259 live/conflict.
38260 (verify_ssa_coalescing_worker): New function.
38261 (verify_ssa_coalescing): Likewise.
38262
38263 2015-03-10 Georg-Johann Lay <avr@gjlay.de>
38264
38265 PR target/65296
38266 * config.gcc (extra_options) [avr]: Remove.
38267 (extra_gcc_objs) [avr]: Use driver-avr.o, avr-devices.o.
38268 (tm_file) [avr]: Add avr/specs.h after avr/avr.h.
38269 (tm_defines) [avr-*-rtems*]: Add WITH_RTEMS.
38270
38271 * config/avr/avr.opt (config/avr/avr-arch.h): Remove include.
38272 (-mmcu=): Add Var and MissingArgError properties.
38273 (-march=): Remove.
38274 * config/avr/genmultilib.awk: Use -mmcu= instead of -march=.
38275 * config/avr/t-multilib: Regenerate.
38276 * config/avr/specs.h: New file.
38277 * config/avr/driver-avr.c: New file.
38278 * config/avr/genopt.sh: Remove file.
38279 * config/avr/avr-tables.opt: Remove file.
38280 * config/avr/predicates.md (avr_current_arch): Rename to avr_arch.
38281 * config/avr/avr-c.c: Same.
38282 * avr-arch.h: Same.
38283 (avr_current_device): Remove proto.
38284 * config/avr/avr.h (avr_current_arch): Rename to avr_arch.
38285 (AVR_HAVE_8BIT_SP): Don't depend on avr_current_device.
38286 (EXTRA_SPEC_FUNCTIONS): Define.
38287 (avr_devicespecs_file): New specs function proto.
38288 (DRIVER_SELF_SPECS): Use device-specs-file spec function.
38289 * config/avr/avr.c (avr_current_arch): Rename to avr_arch.
38290 (avr_current_device): Remove definition and usage.
38291 (avr_set_core_architecture): New static function.
38292 (avr_option_override): Use it.
38293 * config/avr/avr-devices.c (diagnostic.h, avr-arch.h): Include them.
38294 (mcu_name): New static array.
38295 (comparator, avr_archs_str, avr_mcus_str): New static functions.
38296 (avr_inform_devices, avr_inform_core_architectures): New functions.
38297 * config/avr/gen-avr-mmcu-specs.c (avr-arch.h, specs.h): Include.
38298 (avrlibc.h) [WITH_AVRLIBC]: Include.
38299 (../rtems.h, rtems.h) [WITH_RTEMS]: Include.
38300 (print_mcu): Rewrite from scratch.
38301 * config/avr/avrlibc.h (LIB_SPEC, LIBGCC_SPEC, STARTFILE_SPEC):
38302 Forward to avr-specific specs defined in device-specs file.
38303 * config/avr/t-avr (driver-avr.o): New rule.
38304 (avr-devices.o): Depend on avr-arch.h.
38305 (avr-mcus): No more depend on avr-tables.opt.
38306 (avr-tables.opt): Remove rule.
38307 (install-device-specs): Use INSTALL_DATA, not INSTALL_PROGRAM.
38308
38309 2015-03-10 Ilya Enkovich <ilya.enkovich@intel.com>
38310
38311 * c-family/c.opt (fchkp-use-wrappers): New.
38312 * ipa-chkp.c (CHKP_WRAPPER_SYMBOL_PREFIX): New.
38313 (chkp_wrap_function): New.
38314 (chkp_build_instrumented_fndecl): Support wrapped
38315 functions.
38316 * doc/invoke.texi (-fcheck-pointer-bounds): New.
38317 (-fchkp-check-incomplete-type): New.
38318 (-fchkp-first-field-has-own-bounds): New.
38319 (-fchkp-narrow-bounds): New.
38320 (-fchkp-narrow-to-innermost-array): New.
38321 (-fchkp-optimize): New.
38322 (-fchkp-use-fast-string-functions): New.
38323 (-fchkp-use-nochk-string-functions): New.
38324 (-fchkp-use-static-bounds): New.
38325 (-fchkp-use-static-const-bounds): New.
38326 (-fchkp-treat-zero-dynamic-size-as-infinite): New.
38327 (-fchkp-check-read): New.
38328 (-fchkp-check-write): New.
38329 (-fchkp-store-bounds): New.
38330 (-fchkp-instrument-calls): New.
38331 (-fchkp-instrument-marked-only): New.
38332 (-fchkp-use-wrappers): New.
38333 (-static-libmpx): New.
38334 (-static-libmpxwrappers): New.
38335
38336 2015-03-10 Ilya Enkovich <ilya.enkovich@intel.com>
38337
38338 * config/i386/linux-common.h (LIBMPX_WRAPPERSSPEC): New.
38339 (CHKP_SPEC): Add wrappers library.
38340 * c-family/c.opt (static-libmpxwrappers): New.
38341
38342 2015-03-10 Ilya Enkovich <ilya.enkovich@intel.com>
38343
38344 * config/i386/linux-common.h (LIBMPX_LIBS): New.
38345 (LIBMPX_SPEC): New.
38346 (CHKP_SPEC): New.
38347 * gcc.c (CHKP_SPEC): New.
38348 (LINK_COMMAND_SPEC): Add CHKP_SPEC.
38349 * c-family/c.opt (static-libmpx): New.
38350
38351 2015-03-10 Richard Biener <rguenther@suse.de>
38352
38353 PR middle-end/44563
38354 * cgraph.h (struct cgraph_edge_hasher): Add hash overload
38355 for compare_type.
38356 * cgraph.c (cgraph_edge_hasher::hash): Inline htab_hash_pointer.
38357 (cgraph_update_edge_in_call_site_hash): Use cgraph_edge_hasher::hash.
38358 (cgraph_add_edge_to_call_site_hash): Likewise.
38359 (cgraph_node::get_edge): Likewise.
38360 (cgraph_edge::set_call_stmt): Likewise.
38361 (cgraph_edge::remove_caller): Likewise.
38362
38363 2015-03-10 Chung-Ju Wu <jasonwucj@gmail.com>
38364
38365 * config/nds32/nds32.h (callee_saved_regs_size): Rename to ...
38366 (callee_saved_gpr_regs_size): ... this.
38367 (callee_saved_regs_first_regno): Rename to ...
38368 (callee_saved_first_gpr_regno): ... this.
38369 (callee_saved_regs_last_regno) Rename to ...
38370 (callee_saved_last_gpr_regno): ... this.
38371 * config/nds32/nds32.c (nds32_compute_stack_frame): Adjust renamed
38372 variables.
38373 (nds32_initial_elimination_offset): Likewise.
38374 (nds32_expand_prologue): Likewise.
38375 (nds32_expand_epilogue): Likewise.
38376 (nds32_expand_prologue_v3push): Likewise.
38377 (nds32_expand_epilogue_v3pop): Likewise.
38378 * config/nds32/nds32-md-auxiliary.c (nds32_output_stack_push):
38379 Adjust renamed variables.
38380 (nds32_output_stack_pop): Likewise.
38381
38382 2015-03-10 Thomas Preud'homme <thomas.preudhomme@arm.com>
38383
38384 * dominance.c (nearest_common_dominator_for_set): Fix A_Dominated_by_B
38385 code in comment.
38386
38387 2015-03-10 Jakub Jelinek <jakub@redhat.com>
38388
38389 PR rtl-optimization/65321
38390 * cfgexpand.c (expand_debug_expr): Ensure shift amount isn't wider
38391 than shift mode.
38392 * var-tracking.c (use_narrower_mode): Likewise.
38393
38394 2015-03-10 Jan Hubicka <hubicka@ucw.cz>
38395
38396 PR tree-optimization/65355
38397 * varasm.c (notice_global_symbol): Do not produce RTL.
38398 * symtab.c (symtab_node::can_increase_alignment_p): Check for section
38399 anchor.
38400 * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Do not
38401 check for section anchors.
38402
38403 2015-03-10 Alan Modra <amodra@gmail.com>
38404
38405 PR target/65286
38406 * config.gcc (powerpc*-*-linux*): Arrange for powerpc64le-linux
38407 to be single-arch by default. Set cpu_is_64bit for powerpc64
38408 given --with-cpu=native.
38409 * config/rs6000/t-fprules: Do not set default MULTILIB vars.
38410 * config/rs6000/t-linux (MULTIARCH_DIRNAME): Support powerpc64
38411 and powerpc64le.
38412 * config/rs6000/linux64.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Test
38413 rs6000_isa_flags rather than TARGET_64BIT.
38414
38415 2015-03-09 Yoshinori Sato <ysato@users.sourceforge.jp>
38416 Kaz Kojima <kkojima@gcc.gnu.org>
38417
38418 * config/sh/t-linux (MULTILIB_EXCEPTIONS): Define for m2a cases.
38419
38420 2015-03-09 Jakub Jelinek <jakub@redhat.com>
38421
38422 PR lto/65361
38423 * ipa-devirt.c (add_type_duplicate): Don't use DECL_CONTEXT
38424 on a TREE_BINFO, instead use BINFO_TYPE.
38425
38426 2015-03-09 Richard Biener <rguenther@suse.de>
38427
38428 PR middle-end/65270
38429 * tree-core.h (enum operand_equal_flag): Add OEP_ADDRESS_OF.
38430 * fold-const.c (operand_equal_p): When recursing for ADDR_EXPRs
38431 operand set OEP_ADDRESS_OF. Clear it when recursing to non-bases
38432 of that. When comparing dereferences compare alignment.
38433 When comparing MEM_REFs or TARGET_MEM_REFs compare dependence info.
38434
38435 2015-03-08 Jan Hubicka <hubicka@ucw.cz>
38436
38437 * ipa-inline-analysis.c (check_callers): Check
38438 node->can_remove_if_no_direct_calls_and_refs_p.
38439 (growth_likely_positive): Reorganize to call
38440 can_remove_if_no_direct_calls_p later.
38441 * cgraph.h (will_be_removed_from_program_if_no_direct_calls_p,
38442 will_be_removed_from_program_if_no_direct_calls_p): Add
38443 will_inline parameter.
38444 * cgraph.c (cgraph_node::can_remove_if_no_direct_calls_p,
38445 cgraph_node::will_be_removed_from_program_if_no_direct_calls_p):
38446 Handle inliner case correctly.
38447
38448 2015-03-09 Thomas Preud'homme <thomas.preudhomme@arm.com>
38449
38450 PR tree-optimization/63743
38451 * cfgexpand.c (reorder_operands): Also reorder if only second operand
38452 had its definition forwarded by TER.
38453
38454 2015-03-08 Jan Hubicka <hubicka@ucw.cz>
38455
38456 PR lto/65316
38457 * ipa-utils.h (types_odr_comparable): Add strict argument.
38458 * ipa-devirt.c: Fix whitespace;
38459 (odr_hasher): Remove.
38460 (odr_name_hasher, odr_vtable_hasher): New hashers.
38461 (can_be_name_hashed_p): New predicate.
38462 (hash_type_name): remove.
38463 (hash_odr_name): New.
38464 (odr_name_hasher::hash): new.
38465 (can_be_vtable_hashed_p): New.
38466 (hash_odr_vtable): New.
38467 (odr_vtable_hasher::hash): New.
38468 (types_same_for_odr): Add strict parameter.
38469 (types_odr_comparable): Likewise.
38470 (odr_name_hasher::equal): New.
38471 (odr_vtable_hasher::equal): New.
38472 (odr_name_hasher::remove): New.
38473 (odr_hash_type): Change to hash_table<odr_name_hasher>.
38474 (odr_vtable_hash_type): New.
38475 (odr_vtable_hash): New.
38476 (odr_subtypes_equivalent_p): Do strict comparsion.
38477 (add_type_duplicate): Merge type names; cleanup; avoid type
38478 duplicates.
38479 (register_odr_type): Initialize vtable hash.
38480 (build_type_inheritance_graph): Likewise
38481 (get_odr_type): Reorg to use two hashes.
38482 (dump_possible_polymorphic_call_targets): Move sanity check after debug
38483 output.
38484 (ipa_devirt): Dump type_inheritance_graph.
38485 (types_same_for_odr): Add strict mode.
38486
38487 2015-03-05 Jan Hubicka <hubicka@ucw.cz>
38488
38489 PR ipa/65334
38490 * cgraph.h (symtab_node): Add definition_alignment,
38491 can_increase_alignment_p and increase_alignment.
38492 * symtab.c (symtab_node::can_increase_alignment_p,
38493 increase_alignment_1, symtab_node::increase_alignment,
38494 symtab_node::definition_alignment): New.
38495 * tree-vect-data-refs.c (vect_can_force_dr_alignment_p): Use
38496 can_increase_alignment_p.
38497 * tree-vectorizer.c (increase_alignment): Use increase_alignment.
38498 * tree-vect-stmts.c (ensure_base_align): Likewise.
38499 * varasm.c (function_section_1): Use definition_alignment.
38500 (assemble_start_function): Likewise.
38501 (emit_local): likewise.
38502 (build_constant_desc): Likewsie.
38503 (output_constant_def_contents): Likewise.
38504 (place_block_symbol): Likewise.
38505 (output_object_block): Likewise.
38506
38507 2015-03-05 Jan Hubicka <hubicka@ucw.cz>
38508
38509 PR ipa/65316
38510 * tree.c (free_lang_data_in_type): Be sure to keep BINFO_VTABLE
38511 when outputting debug.
38512
38513 2015-03-07 Marek Polacek <polacek@redhat.com>
38514 Martin Uecker <uecker@eecs.berkeley.edu>
38515
38516 PR sanitizer/65280
38517 * doc/invoke.texi: Update description of -fsanitize=bounds.
38518
38519 2015-03-06 Wilco Dijkstra <wilco.dijkstra@arm.com>
38520
38521 * tree-ssa-phiopt.c (neg_replacement): Remove.
38522 (tree_ssa_phiopt_worker): Remove negate optimization.
38523
38524 2015-03-05 Jan Hubicka <hubicka@ucw.cz>
38525
38526 PR ipa/65302
38527 * value-prof.c (gimple_ic): Pure dead eh edges when needed.
38528
38529 2015-03-06 Richard Biener <rguenther@suse.de>
38530
38531 PR middle-end/64928
38532 * tree-ssa-live.h (struct tree_live_info_d): Add livein_obstack
38533 and liveout_obstack members.
38534 (calculate_live_on_exit): Remove.
38535 (calculate_live_ranges): Change declaration.
38536 * tree-ssa-live.c (liveness_bitmap_obstack): Remove global var.
38537 (new_tree_live_info): Adjust.
38538 (calculate_live_ranges): Delete livein when not wanted.
38539 (calculate_live_ranges): Do not initialize liveness_bitmap_obstack.
38540 Deal with partly deleted live info.
38541 (loe_visit_block): Remove temporary bitmap by using
38542 bitmap_ior_and_compl_into.
38543 (live_worklist): Adjust accordingly.
38544 (calculate_live_on_exit): Make static.
38545 * tree-ssa-coalesce.c (coalesce_ssa_name): Tell calculate_live_ranges
38546 we do not need livein.
38547
38548 2015-03-06 Jonathan Wakely <jwakely@redhat.com>
38549
38550 * real.c (real_from_string): Fix typo in assertion.
38551
38552 2015-03-06 Alex Velenko <alex.velenko@arm.com>
38553
38554 * ChangeLog (2015-03-05): Reflect Richard Henderson as actual author of
38555 the patch.
38556
38557 2015-03-05 Jan Hubicka <hubicka@ucw.cz>
38558
38559 * ipa-icf.c (sem_variable::equals_wpa): Check FINAL flags.
38560
38561 2015-03-05 Vladimir Makarov <vmakarov@redhat.com>
38562
38563 PR target/64342
38564 * lra-assigns.c (find_hard_regno_for): Rename to
38565 find_hard_regno_for_1. Add a new parameter.
38566 (find_hard_regno_for): New function using find_hard_regno_for_1.
38567
38568 2015-03-05 Bernd Edlinger <bernd.edlinger@hotmail.de>
38569
38570 PR rtl-optimization/65067
38571 * expmed.c (store_bit_field, extract_bit_field): Reworked the
38572 strict volatile bitfield handling.
38573
38574 2015-03-05 Martin Liska <mliska@suse.cz>
38575
38576 PR ipa/65318
38577 * ipa-icf.c (sem_variable::equals): Compare variables types.
38578
38579 2015-03-05 Richard Henderson <rth@redhat.com>
38580
38581 PR target/65121
38582 * config/arm/arm.c (arm_function_in_section_p): Fix predicate to
38583 correctly check weak symbol binding.
38584
38585 2015-03-05 Steve Ellcey <sellcey@imgtec.com>
38586
38587 PR middle-end/65315
38588 * cfgexpand.c (expand_stack_vars): Update large_align to maximum
38589 needed alignment.
38590
38591 2015-03-05 Martin Liska <mliska@suse.cz>
38592
38593 * ipa-inline.c (inline_small_functions): Set default value to
38594 prevent warning during bootstrap.
38595 * tree.h: Add pragma guard that ignores false positives during
38596 bootstrap.
38597
38598 2015-03-05 Richard Biener <rguenther@suse.de>
38599
38600 PR tree-optimization/65310
38601 * tree-vect-data-refs.c (vect_compute_data_ref_alignment):
38602 Properly preserve alignment of the base of the access.
38603
38604 2015-03-05 Richard Biener <rguenther@suse.de>
38605
38606 PR ipa/65270
38607 * ipa-icf-gimple.c (func_checker::compare_memory_operand):
38608 Compare dependence info.
38609
38610 2015-03-05 Richard Biener <rguenther@suse.de>
38611
38612 PR middle-end/65233
38613 * ipa-polymorphic-call.c: Include tree-ssa-operands.h and
38614 tree-into-ssa.h.
38615 (walk_ssa_copies): Revert last chage. Instead do not walk
38616 SSA names registered for SSA update.
38617
38618 2015-03-03 Jan Hubicka <hubicka@ucw.cz>
38619
38620 PR ipa/65270
38621 * ipa-icf.c (sem_item::compare_cgraph_references): Compare
38622 vtable references for their containing type.
38623 (sem_function::equals_wpa): Compare TYPE_RESTRICT
38624 and type attributes.
38625
38626 2015-03-04 Eric Botcazou <ebotcazou@adacore.com>
38627
38628 * fold-const.c (round_up_loc): Cast divisor to signed on all paths
38629 before negating it.
38630 * stor-layout.c (finalize_record_size): Revert latest change.
38631
38632 2015-03-04 Andreas Tobler <andreast@gcc.gnu.org>
38633
38634 * config/rs6000/t-freebsd64: Remove 32-bit soft-float multilibs.
38635
38636 2015-03-03 Jan Hubicka <hubicka@ucw.cz>
38637
38638 * cgraph.c (cgraph_node::can_remove_if_no_direct_calls_p): Rewrite
38639 for correct comdat handling.
38640 (cgraph_node::will_be_removed_from_program_if_no_direct_calls_p):
38641 Likewise.
38642 * cgraph.h (call_for_symbol_and_aliases): Fix formating.
38643 (used_from_object_file_p_worker): Remove.
38644 (cgraph_node::only_called_directly_or_alised): Add
38645 used_from_object_file_p.
38646 * ipa-inline-analysis.c (growth_likely_positive): Optimie.
38647 * ipa-inline-transform.c (can_remove_node_now_p_1): Use
38648 can_remove_if_no_direct_calls_and_refs_p.
38649
38650 2015-03-04 Nick Clifton <nickc@redhat.com>
38651
38652 * config/rl78/rl78.h (enum reg_class): Remove real registers from
38653 General register class.
38654 * config/rl78/rl78-real.md: Replace general register constraints
38655 with real+virtual register constraints.
38656
38657 2015-03-04 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
38658
38659 * config/s390/s390.c (s390_expand_builtin): Exlude non-htm builtins
38660 from checking for -mhtm option.
38661
38662 2015-03-03 Jan Hubicka <hubicka@ucw.cz>
38663
38664 * tree-sra.c (convert_callers): Use call_for_symbol_and_aliases.
38665 (struct ipa_sra_check_caller_data): Add has_thunk field.
38666 (ipa_sra_check_caller): Check for thunk.
38667 (ipa_sra_preliminary_function_checks): Give up on function with
38668 thunks.
38669 (ipa_early_sra): Use call_for_symbol_and_aliases.
38670
38671 2015-03-03 Kaz Kojima <kkojima@gcc.gnu.org>
38672
38673 PR target/65249
38674 * config/sh/sh.md (symGOT_load): Use R0 reg for operands[2] when
38675 called for __stack_chk_guard symbol.
38676
38677 2015-03-03 DJ Delorie <dj@redhat.com>
38678
38679 * config/rl78/rl78-real.md (*addqi_real): Allow SADDR types for
38680 inc/dec.
38681 (*addhi3_real): Likewise.
38682 * config/rl78/rl78-virt.md (*inc<mode>3_virt): Additional
38683 pattern to match incrementing memory.
38684 * config/rl78/predicates.md (rl78_1_2_operand): New.
38685 * config/rl78/rl78.c (rl78_force_nonfar_3): Allow far mem-mem if
38686 it's the same and only mem.
38687 (rl78_alloc_physical_registers_op2): If there's effectively only
38688 one MEM, transcode it into HL.
38689 (rl78_far_p): Reject addresses that aren't legitimate.
38690
38691 2015-03-03 Eric Botcazou <ebotcazou@adacore.com>
38692
38693 * fold-const.c (round_up_loc): Cast divisor to HOST_WIDE_INT before
38694 negating it.
38695
38696 * tree-sra.c (pa_sra_preliminary_function_checks): Fix typo in message.
38697
38698 2015-03-03 Max Filippov <jcmvbkbc@gmail.com>
38699
38700 Implement call0 ABI for xtensa
38701 * config/xtensa/constraints.md ("a" constraint): Include stack
38702 pointer in case of call0 ABI.
38703 ("q" constraint): Make empty in case of call0 ABI.
38704 ("D" constraint): Include stack pointer in case of call0 ABI.
38705 * config/xtensa/xtensa-protos.h (xtensa_set_return_address,
38706 xtensa_expand_epilogue, xtensa_regno_to_class): Add new function
38707 prototypes.
38708 * config/xtensa/xtensa.c (xtensa_callee_save_size): New
38709 variable.
38710 (xtensa_regno_to_class): Make it a local variable in the
38711 function xtensa_regno_to_class.
38712 (xtensa_function_epilogue, TARGET_ASM_FUNCTION_EPILOGUE): Remove
38713 macro, function prototype and implementation.
38714 (reg_nonleaf_alloc_order): Make it a local variable in the
38715 function order_regs_for_local_alloc.
38716 (xtensa_conditional_register_usage): New function.
38717 (TARGET_CONDITIONAL_REGISTER_USAGE): Define macro.
38718 (xtensa_valid_move): Allow direct moves to stack pointer
38719 register in call0 ABI.
38720 (xtensa_setup_frame_addresses): Only spill register windows in
38721 windowed ABI.
38722 (xtensa_emit_call): Emit call(x)8 or call(x)0 in windowed and
38723 call0 ABI respectively.
38724 (xtensa_function_arg_1): Only mark a7 register for copying in
38725 windowed ABI.
38726 (xtensa_call_save_reg): New function.
38727 (compute_frame_size): Add space for callee saved register
38728 storage to the frame size in call0 ABI.
38729 (xtensa_expand_prologue): Generate code to set up stack frame
38730 and save callee-saved registers in call0 ABI.
38731 (xtensa_expand_epilogue): New function.
38732 (xtensa_set_return_address): New function.
38733 (xtensa_return_addr): Calculate return address in call0 ABI.
38734 (xtensa_builtin_saveregs): Only mark a7 register for copying and
38735 emit copying code in windowed ABI.
38736 (order_regs_for_local_alloc): Add preferred register allocation
38737 order for non-leaf function in call0 ABI.
38738 (xtensa_static_chain): Add atatic chain passing for call0 ABI.
38739 (xtensa_asm_trampoline_template): Add trampoline generation for
38740 call0 ABI.
38741 (xtensa_trampoline_init): Add trampoline initialization for
38742 call0 ABI.
38743 (xtensa_conditional_register_usage, xtensa_regno_to_class): New
38744 functions.
38745 * config/xtensa/xtensa.h (TARGET_WINDOWED_ABI): New macro.
38746 (TARGET_CPU_CPP_BUILTINS): Add built-in define for call0 ABI.
38747 (CALL_USED_REGISTERS): Modify to encode both windowed and call0
38748 ABI call-used registers.
38749 (HARD_FRAME_POINTER_REGNUM): Add frame pointer for call0 ABI.
38750 (INCOMING_REGNO, OUTGOING_REGNO): Use argument unchanged in
38751 call0 ABI.
38752 (REG_CLASS_CONTENTS): Include all registers into the preferred
38753 reload registers set, adjust the set in the
38754 xtensa_conditional_register_usage.
38755 (xtensa_regno_to_class): Drop variable declaration.
38756 (REGNO_REG_CLASS): Redefine to use xtensa_regno_to_class
38757 function.
38758 (WINDOW_SIZE): Define as 8 or 0 for windowed and call0 ABI
38759 respectively.
38760 (FUNCTION_PROFILER): Add _mcount call for call0 ABI.
38761 (TRAMPOLINE_SIZE): Define trampoline size for call0 ABI.
38762 (RETURN_ADDR_IN_PREVIOUS_FRAME): Define to 0 in call0 ABI.
38763 (ASM_OUTPUT_POOL_PROLOGUE): Always generate literal pool
38764 location in call0 ABI.
38765 (EH_RETURN_STACKADJ_RTX): New definition, use a10 for passing
38766 stack adjustment size when handling exception.
38767 (CRT_CALL_STATIC_FUNCTION): Add definition for call0 ABI.
38768 * config/xtensa/xtensa.md (A9_REG, UNSPECV_BLOCKAGE): New
38769 definitions.
38770 ("return" pattern): Generate ret.n/ret in call0 ABI.
38771 ("epilogue" pattern): Expand epilogue.
38772 ("nonlocal_goto" pattern): Use default in call0 ABI.
38773 ("eh_return" pattern): Move implementation to eh_set_a0_windowed,
38774 emit eh_set_a0_* depending on ABI.
38775 ("eh_set_a0_windowed" pattern): Former eh_return pattern.
38776 ("eh_set_a0_call0", "blockage"): New patterns.
38777
38778 2015-03-03 Martin Liska <mliska@suse.cz>
38779
38780 PR ipa/65287
38781 * ipa-icf.c (sem_variable::parse): Skip all alias variables.
38782
38783 2015-03-03 Michael Meissner <meissner@linux.vnet.ibm.com>
38784
38785 PR 65138/target
38786 * config/rs6000/rs6000-tables.opt: Regenerate table.
38787
38788 2015-03-03 Renlin Li <renlin.li@arm.com>
38789
38790 * doc/md.texi (@item ^): Change ? into ^.
38791
38792 2015-03-03 H.J. Lu <hongjiu.lu@intel.com>
38793
38794 * doc/tm.texi: Regenerated.
38795
38796 2015-03-03 Max Filippov <jcmvbkbc@gmail.com>
38797
38798 * builtins.c (expand_builtin_return_addr): Add
38799 RETURN_ADDR_IN_PREVIOUS_FRAME to 'if' condition, remove
38800 surrounding #ifdef.
38801 * config/sparc/sparc.h (RETURN_ADDR_IN_PREVIOUS_FRAME): Change
38802 definition to 1.
38803 * config/xtensa/xtensa.h (RETURN_ADDR_IN_PREVIOUS_FRAME):
38804 Likewise.
38805 * defaults.h (RETURN_ADDR_IN_PREVIOUS_FRAME): Define to 0 if
38806 undefined.
38807 * doc/tm.texi.in (RETURN_ADDR_IN_PREVIOUS_FRAME): Update
38808 paragraph.
38809
38810 2015-03-03 Martin Jambor <mjambor@suse.cz>
38811 Eric Botcazou <ebotcazou@adacore.com>
38812
38813 * tree-sra.c (ipa_sra_check_caller_data): New type.
38814 (has_caller_p): Removed.
38815 (ipa_sra_check_caller): New function.
38816 (ipa_sra_preliminary_function_checks): Use it.
38817
38818 2015-03-03 Martin Liska <mliska@suse.cz>
38819
38820 * ipa-icf.c (sem_item_optimizer::merge_classes): Use bit or
38821 instead of if branch.
38822
38823 2015-03-03 Martin Liska <mliska@suse.cz>
38824
38825 PR ipa/65282
38826 * ipa-icf.c (sem_variable::equals): Fix wrong condition.
38827
38828 2015-03-23 Jeff Law <law@redhat.com>
38829
38830 PR tree-optimization/65241
38831 * tree-ssa-dom.c (lookup_avail_expr): Only modify the avail_expr
38832 hash table if INSERT is true.
38833
38834 2015-03-03 Georg-Johann Lay <avr@gjlay.de>
38835
38836 PR target/65296
38837 * config.gcc (extra_gcc_objs) [avr-*-rtems*]: Remove.
38838
38839 2015-03-03 Georg-Johann Lay <avr@gjlay.de>
38840
38841 PR target/64331
38842 * config/avr/avr.c (context.h, tree-pass.h): Include them.
38843 (avr_pass_data_recompute_notes): New static variable.
38844 (avr_pass_recompute_notes): New class.
38845 (avr_register_passes): New static function.
38846 (avr_option_override): Call it.
38847
38848 2015-03-03 Georg-Johann Lay <avr@gjlay.de>
38849
38850 Fix various problems with specs file generation.
38851
38852 PR target/65296
38853 * config.gcc (extra_gcc_objs) [avr]: Remove.
38854 * config/avr/driver-avr.c: Remove file.
38855 * config/avr/t-avr (driver-avr.o): Remove rule.
38856 (gen-avr-mmcu-specs): Use CXX_FOR_BUILD, CXXFLAGS_FOR_BUILD and
38857 INCLUDES to build. Depend on TM_H.
38858 * config/avr/gen-avr-mmcu-specs.c: Tidy up code. Fix various
38859 build warnings. Fix non-matching types and non-existing %-codes.
38860 (tm.h): Include.
38861 (*lib) [!WITH_AVRLIBC]: Don't link libdev.a.
38862 (*libgcc) [WITH_AVRLIBC]: Add "-lm".
38863 * config/avr/avrlibc.h (LIBGCC_SPEC): Remove definition.
38864 * config/avr/avr.h (DRIVER_SELF_SPECS): Fix handling of -march=.
38865 (CPP_SPEC, CC1PLUS_SPEC, ASM_SPEC, LINK_SPEC, LIB_SPEC)
38866 (LIBGCC_SPEC): Remove definitions.
38867
38868 2015-03-03 Eric Botcazou <ebotcazou@adacore.com>
38869
38870 * config/ia64/ia64.c (expand_vec_perm_interleave_2): Use gen_raw_REG
38871 to create a register in testing mode.
38872
38873 2015-03-03 Martin Liska <mliska@suse.cz>
38874 Jan Hubicka <hubicka@ucw.cz>
38875
38876 PR ipa/65263
38877 * cgraph.c (cgraph_node::has_thunk_p): New function.
38878 * cgraph.h (cgraph_node::has_thunk_p: Likewise.
38879 * ipa-icf.c (redirect_all_callers): Do not redirect thunks.
38880 (sem_function::merge): Assert is changed.
38881
38882 2015-03-03 Martin Liska <mliska@suse.cz>
38883 Martin Jambor <mjambor@suse.cz>
38884
38885 PR ipa/65087
38886 * ipa-icf.c (sem_item_optimizer::execute): Change function
38887 return value to boolean.
38888 (sem_item_optimizer::merge_classes): Likewise.
38889 (ipa_icf_driver): Return TODO_remove_functions in case there's
38890 a merge operation processed.
38891 * ipa-icf.h: Change function return value to boolean.
38892
38893 2015-03-02 Michael Meissner <meissner@linux.vnet.ibm.com>
38894
38895 PR 65138/target
38896 * config/rs6000/rs6000-cpus.def (powerpc64le): Add new generic
38897 processor type for 64-bit little endian PowerPC.
38898
38899 * config/rs6000/rs6000.c (rs6000_option_override_internal): If
38900 -mdebug=reg, print TARGET_DEFAULT. Fix logic to use
38901 TARGET_DEFAULT if there is no default cpu. Fix -mdebug=reg
38902 printing built-in mask so it does not pass NULL pointers.
38903
38904 * doc/invoke.texi (IBM RS/6000 and PowerPC options): Document
38905 -mcpu=powerpc64le.
38906
38907 2015-03-02 Steve Ellcey <sellcey@imgtec.com>
38908
38909 PR target/58158
38910 * config/mips/mips.md (mov<mode>cc): Change ISA_HAS_SEL check to
38911 !ISA_HAS_FP_CONDMOVE.
38912
38913 2015-03-02 Aldy Hernandez <aldyh@redhat.com>
38914
38915 * config/i386/i386.md (*udivmod<mode>4_pow2): Remove
38916 reload_completed.
38917
38918 2015-03-02 Ulrich Drepper <drepper@gmail.com>
38919
38920 * doc/invoke.texi (Options for Code Generation Conventions):
38921 Fix URL of DSO paper.
38922
38923 2015-03-02 Jan Hubicka <hubicka@ucw.cz>
38924
38925 PR ipa/65130
38926 * ipa-inline.c (check_callers): Looks for recursion.
38927 (inline_to_all_callers): Give up on uninlinable or recursive edges.
38928 * ipa-inline-analysis.c (inline_summary_t::duplicate): Do not update
38929 summary of inline clones.
38930 (do_estimate_growth_1): Fix recursion check.
38931
38932 2015-03-02 Jan Hubicka <hubicka@ucw.cz>
38933
38934 PR ipa/64988
38935 * ipa-inline-transform.c (clone_inlined_nodes): Do not dissolve
38936 comdat groups.
38937
38938 2015-03-02 Jan Hubicka <hubicka@ucw.cz>
38939 Aldy Hernandez <aldyh@redhat.com>
38940
38941 PR lto/65276
38942 * ipa-devirt.c (add_type_duplicate): Remove odr_violated assert
38943 when checking TYPE_BINFO.
38944
38945 2015-03-02 Richard Biener <rguenther@suse.de>
38946
38947 PR ipa/65270
38948 * ipa-icf-gimple.c: Include builtins.h.
38949 (func_checker::compare_memory_operand): Compare base alignment.
38950
38951 2015-03-02 Ilya Enkovich <ilya.enkovich@intel.com>
38952
38953 PR target/65184
38954 * config/i386/i386.c (ix86_pass_by_reference): Bounds are never
38955 passed by reference.
38956
38957 2015-03-02 Ilya Enkovich <ilya.enkovich@intel.com>
38958
38959 PR target/65183
38960 * tree-chkp.c (chkp_check_lower): Don't check against
38961 zero bounds for already instrumented functions.
38962 (chkp_check_upper): Likewise.
38963 (chkp_fini): Clean pass local data to avoid wrong reusage.
38964
38965 2015-02-28 Martin Liska <mliska@suse.cz>
38966 Jan Hubicka <hubicka@ucw.cz>
38967
38968 * ipa-icf.c (sem_variable::equals): Improve debug output;
38969 get variable constructor.
38970 (sem_variable::parse): Do not filter out too early; give up on
38971 volatile and register vars.
38972 (sem_item_optimizer::filter_removed_items): Filter out nonreadonly
38973 variables.
38974 * ipa-icf.h (sem_variable::init): Do not set ctor.
38975 (sem_variable::ctor): Remove.
38976
38977 2015-03-01 Aldy Hernandez <aldyh@redhat.com>
38978
38979 PR middle-end/65233
38980 * ipa-polymorphic-call.c (walk_ssa_copies): Handle empty PHIs.
38981
38982 2015-02-28 Jan Hubicka <hubicka@ucw.cz>
38983
38984 * ipa-icf.c: Include stor-layout.h
38985 (sem_function::compare_cgraph_references): Rename to ...
38986 (sem_item::compare_cgraph_references): ... this one.
38987 (sem_variable::equals_wpa): New function
38988 (sem_variable::equals): Do not check stuff already verified by
38989 equals_wpa.
38990 (sem_variable::equals): Reorg based on varasm.c:compare_constant.
38991 * ipa-icf.h (sem_item): Add compare_cgraph_references.
38992 (sem_function): Remove compare_cgraph_references.
38993 (sem_variable): Turns equals_wpa into non-inline.
38994
38995 2015-02-28 Jan Hubicka <hubicka@ucw.cz>
38996
38997 * ipa-icf.c (sem_function::init): Fix formating; skip GIMPLE_PREDICT.
38998 (sem_item::add_expr): New function.
38999 (sem_function::hash_stmt): Handle operands of most statements.
39000 (sem_variable::get_hash): Hash the actual constructor.
39001 * ipa-icf.h (sem_item): Add add_expr.
39002 (sem_function): Update prototype of hash_stmt
39003
39004 2015-02-28 Martin Liska <mliska@suse.cz>
39005 Jan Hubicka <hubicka@ucw.cz>
39006
39007 PR ipa/65245
39008 * ipa-icf-gimple.c (func_checker::compare_function_decl):
39009 Remove.
39010 (func_checker::compare_variable_decl): Skip symtab vars.
39011 (func_checker::compare_cst_or_decl): Update.
39012 * ipa-icf.c (sem_function::parse): Do not consider aliases.
39013 (sem_function::compare_cgraph_references): Add ADDRESS parameter;
39014 use correct symtab predicates.
39015 (sem_function::equals_wpa): Update uses of compare_cgraph_references.
39016 (sem_variable::parse): Update comment.
39017 (sem_item_optimizer::build_graph): Consider ultimate aliases
39018 for references.
39019
39020 2015-02-28 Jan Hubicka <hubicka@ucw.cz>
39021
39022 * ipa-icf-gimple.c (func_checker::compare_operand): Fix handling
39023 of OBJ_TYPE_REF.
39024
39025 2015-02-28 Jan Hubicka <hubicka@ucw.cz>
39026
39027 * ipa-icf.c (sem_function::merge): Fix handling of COMDAT.
39028 (sem_variable::merge) Likewise.
39029
39030 2015-02-28 Jan Hubicka <hubicka@ucw.cz>
39031
39032 * ipa-inline.c (can_inline_edge_p): Match opt_for_fn on inline
39033 target; also match flag_ipa_devirt.
39034
39035 2015-03-01 Martin Liska <mliska@suse.cz>
39036 Jan Hubicka <hubicka@ucw.cz>
39037
39038 * ipa-icf-gimple.c (func_checker::compare_variable_decl):
39039 Validate variable alignment.
39040 * ipa-icf.c (sem_function::equals_private): Be more precise
39041 about non-common function attributes.
39042 (sem_variable::equals): Likewise.
39043
39044 2015-02-28 Jan Hubicka <hubicka@ucw.cz>
39045
39046 PR ipa/65237
39047 * ipa-icf.c (sem_function::merge): Do not attempt to produce alias
39048 across COMDAT group boundary.
39049
39050 2015-02-28 Jan Hubicka <hubicka@ucw.cz>
39051
39052 PR ipa/65232
39053 * ipa-icf.c (clear_decl_rtl): New function.
39054 (sem_function::merge): Clear RTL before forming alias.
39055 (sem_variable::merge): Clear RTL before forming alias.
39056
39057 2015-02-28 Jan Hubicka <hubicka@ucw.cz>
39058
39059 PR ipa/65236
39060 * cgraphunit.c (cgraph_node::expand_thunk): Enable return slot opt.
39061
39062 2015-02-28 Xingxing Pan <xxingpan@marvell.com>
39063
39064 * config/aarch64/aarch64.md: (mov<mode>_aarch64): Change type
39065 to neon_to_gp<q>.
39066
39067 2015-02-27 Vladimir Makarov <vmakarov@redhat.com>
39068
39069 * params.def (PARAM_LRA_INHERITANCE_EBB_PROBABILITY_CUTOFF): Fix
39070 a typo in the description.
39071
39072 2015-02-27 Vladimir Makarov <vmakarov@redhat.com>
39073
39074 PR target/64317
39075 * params.def (PARAM_LRA_INHERITANCE_EBB_PROBABILITY_CUTOFF): New.
39076 * params.h (LRA_INHERITANCE_EBB_PROBABILITY_CUTOFF): New.
39077 * lra-constraints.c: Include "params.h".
39078 (EBB_PROBABILITY_CUTOFF): Use
39079 LRA_INHERITANCE_EBB_PROBABILITY_CUTOFF.
39080 (lra_inheritance): Use '<' instead of '<=' for
39081 EBB_PROBABILITY_CUTOFF.
39082 * doc/invoke.texi (lra-inheritance-ebb-probability-cutoff):
39083 Document change.
39084
39085 2015-02-27 Martin Liska <mliska@suse.cz>
39086
39087 * ipa-icf.h (struct symbol_compare_hashmap_traits): Add missing
39088 vector length condition.
39089
39090 2015-02-27 Sandra Loosemore <sandra@codesourcery.com>
39091
39092 * doc/extend.texi (x86 transactional memory intrinsics):
39093 Reorganize discussion of _xbegin. Clarify that the return
39094 value is a bit mask. Expand example and move to end of section.
39095
39096 2015-02-26 Jakub Jelinek <jakub@redhat.com>
39097 Aldy Hernandez <aldyh@redhat.com>
39098
39099 PR rtl-optimization/65220
39100 * config/i386/i386.md (*udivmod<mode>4_pow2): New.
39101
39102 2015-02-27 Vladimir Makarov <vmakarov@redhat.com>
39103
39104 PR target/65032
39105 * lra-remat.c (update_scratch_ops): New.
39106 (do_remat): Call it.
39107 * lra.c (lra_register_new_scratch_op): New. Take code from ...
39108 (remove_scratches): ... here.
39109 * lra-int.h (lra_register_new_scratch_op): New prototype.
39110
39111 2015-02-27 Marek Polacek <polacek@redhat.com>
39112
39113 PR c/65040
39114 * doc/invoke.texi: Update to reflect that -Wformat=2 doesn't enable
39115 -Wformat-signedness anymore.
39116
39117 2015-02-27 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
39118
39119 * config/s390/s390.c: (s390_atomic_assign_expand_fenv): New
39120 function.
39121 (TARGET_ATOMIC_ASSIGN_EXPAND_FENV): Define macro.
39122
39123 2015-02-27 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
39124
39125 * config/s390/s390.c (enum s390_builtin):
39126 Add S390_BUILTIN_S390_SFPC and S390_BUILTIN_S390_EFPC.
39127 (code_for_builtin): Add CODE_FOR_s390_sfpc and CODE_FOR_s390_efpc.
39128 (s390_init_builtins): Generate new builtin functions.
39129 * config/s390/s390.md (UNSPECV_SFPC, UNSPECV_EFPC): New constants.
39130 (s390_sfpc, s390_efpc): New pattern definitions.
39131
39132 2015-02-27 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
39133
39134 * config/s390/s390.c: (enum s390_builtin, s390_expand_builtin):
39135 Rename S390_BUILTIN_max to S390_BUILTIN_MAX.
39136 (s390_builtin_decls): New array.
39137 (s390_init_builtins): Put builtin decls into s390_builtin_decls.
39138 (s390_builtin_decl): New function.
39139 (TARGET_BUILTIN_DECL): Define macro.
39140
39141 2015-02-27 Richard Biener <rguenther@suse.de>
39142
39143 PR middle-end/63175
39144 * builtins.c (get_object_alignment_2): Make sure to re-apply
39145 the ANDed mask after recursing to its operand gets us a new
39146 misalignment bit position.
39147
39148 2015-02-26 Jan Hubicka <hubicka@ucw.cz>
39149 Martin Liska <mliska@suse.cz>
39150
39151 PR bootstrap/65150
39152 * ipa-icf.c (symbol_compare_collection::symbol_compare_colleciton):
39153 Use address_matters_p.
39154 (redirect_all_callers, set_addressable): New functions.
39155 (sem_function::merge): Reorganize and fix merging issues.
39156 (sem_variable::merge): Likewise.
39157 (sem_variable::compare_sections): Remove.
39158 * common.opt (fmerge-all-constants, fmerge-constants): Remove
39159 Optimization flag.
39160 * symtab.c (symtab_node::resolve_alias): When alias has aliases,
39161 redirect them.
39162 (symtab_node::make_decl_local): Set ADDRESSABLE bit when
39163 decl is used.
39164 (address_matters_1): New function.
39165 (symtab_node::address_matters_p): New function.
39166 * cgraph.c (cgraph_edge::verify_corresponds_to_fndecl): Fix
39167 check for merged flag.
39168 * cgraph.h (address_matters_p): Declare.
39169 (symtab_node::address_taken_from_non_vtable_p): Remove.
39170 (symtab_node::address_can_be_compared_p): New method.
39171 (ipa_ref::address_matters_p): Move here from ipa-ref.c; simplify.
39172 * ipa-visibility.c (symtab_node::address_taken_from_non_vtable_p):
39173 Remove.
39174 (comdat_can_be_unshared_p_1) Use address_matters_p.
39175 (update_vtable_references): Fix formating.
39176 * ipa-ref.c (ipa_ref::address_matters_p): Move inline.
39177 * cgraphunit.c (cgraph_node::create_wrapper): Drop UNINLINABLE flag.
39178 * cgraphclones.c: Preserve merged and icf_merged flags.
39179
39180 2015-02-26 Sandra Loosemore <sandra@codesourcery.com>
39181
39182 * doc/extend.texi (Function Attributes): Fix spelling and typos.
39183 (Label Attributes): Likewise.
39184 (Cilk Plus Builtins): Likewise.
39185 (ARC SIMD Built-in Functions): Likewise.
39186 (ARM C Language Extensions (ACLE)): Likewise.
39187 (PowerPC Built-in Functions): Likewise.
39188 (PowerPC Hardware Transactional Memory Built-in Functions):
39189 Likewise.
39190
39191 2015-02-26 Jakub Jelinek <jakub@redhat.com>
39192
39193 PR tree-optimization/65216
39194 * tree-ssa-reassoc.c (rewrite_expr_tree): Force creation of
39195 new stmt and new SSA_NAME for lhs whenever the arguments have
39196 changed and weren't just swapped. Fix comment typo.
39197
39198 PR tree-optimization/65215
39199 * tree-ssa-math-opts.c (find_bswap_or_nop_load): Return false
39200 for PDP endian targets.
39201 (perform_symbolic_merge, find_bswap_or_nop_1, find_bswap_or_nop):
39202 Fix up formatting issues.
39203 (bswap_replace): Likewise. For BYTES_BIG_ENDIAN, if the final access
39204 size is smaller than the original, adjust MEM_REF offset by the
39205 difference of sizes. Use is_gimple_mem_ref_addr instead of
39206 is_gimple_min_invariant test to avoid adding address temporaries.
39207
39208 2015-02-26 Martin Liska <mliska@suse.cz>
39209 Jan Hubicka <hubicka@ucw.cz>
39210
39211 PR ipa/64693
39212 * ipa-icf.c (symbol_compare_collection::symbol_compare_collection): New.
39213 (sem_item_optimizer::subdivide_classes_by_sensitive_refs): New function.
39214 (sem_item_optimizer::process_cong_reduction): Include division by
39215 sensitive references.
39216 * ipa-icf.h (struct symbol_compare_hashmap_traits): New class.
39217 * ipa-ref.c (ipa_ref::address_matters_p): New function.
39218 * ipa-ref.h (ipa_ref::address_matters_p): Likewise.
39219
39220 2015-02-26 Georg-Johann Lay <avr@gjlay.de>
39221
39222 PR target/65192
39223 * config/avr/avr-protos.h (tiny_valid_direct_memory_access_range):
39224 Remove.
39225 * config/avr/avr.c: Same.
39226 (avr_legitimate_address_p) <AVR_TINY, CONSTANT_ADDRESS_P>:
39227 Refuse any constant address not in 0..0xbf.
39228 * config/avr/avr.md (*mov<mode>, *movsf): Remove
39229 tiny_valid_direct_memory_access_range from insn conditions.
39230 (mov<mode>): Don't special-case expansion of avrtiny addresses.
39231
39232 2015-02-26 Oleg Endo <olegendo@gcc.gnu.org>
39233
39234 PR target/61142
39235 * config/sh/sh.c (sh_check_add_incdec_notes): New function.
39236 * config/sh/sh-protos.h (sh_check_add_incdec_notes): Declare it.
39237 * config/sh/predicates.md (const_logical_operand): New predicate.
39238 * config/sh/sh.md: Add new peephole2 patterns.
39239
39240 2015-02-26 Marek Polacek <polacek@redhat.com>
39241
39242 PR ipa/65008
39243 * ipa-inline.c (early_inliner): Recompute inline parameters.
39244
39245 2015-02-26 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
39246
39247 PR target/65171
39248 * config/rs6000/rs6000.c (rs6000_analyze_swaps): Ensure
39249 instructions with TImode operands are included in the analysis.
39250
39251 2015-02-26 Sebastian Pop <s.pop@samsung.com>
39252
39253 * tree-ssa-threadupdate.c (dump_jump_thread_path): Print all edges
39254 of an EDGE_FSM_THREAD.
39255
39256 2015-02-25 Adhemerval Zanella <azanella@linux.vnet.ibm.com>
39257
39258 * config/rs6000/htm.md (tcheck): Fix assembly encoding.
39259
39260 2015-02-25 Aldy Hernandez <aldyh@redhat.com>
39261
39262 PR debug/46102
39263 * dwarf2out.c (dwarf2out_init): Disable -feliminate-dwarf2-dups.
39264
39265 2015-02-26 Sebastian Pop <s.pop@samsung.com>
39266
39267 PR tree-optimization/65048
39268 * tree-ssa-threadupdate.c (valid_jump_thread_path): New.
39269 (thread_through_all_blocks): Call valid_jump_thread_path.
39270 Remove invalid FSM jump-thread paths.
39271
39272 2015-02-26 Jakub Jelinek <jakub@redhat.com>
39273
39274 * passes.c (ipa_write_summaries_1): Call lto_output_init_mode_table.
39275 (ipa_write_optimization_summaries): Likewise.
39276 * tree-streamer.h: Include data-streamer.h.
39277 (streamer_mode_table): Declare extern variable.
39278 (bp_pack_machine_mode, bp_unpack_machine_mode): New inline functions.
39279 * lto-streamer-out.c (lto_output_init_mode_table,
39280 lto_write_mode_table): New functions.
39281 (produce_asm_for_decls): Call lto_write_mode_table when streaming
39282 offloading LTO.
39283 * lto-section-in.c (lto_section_name): Add "mode_table" entry.
39284 (lto_create_simple_input_block): Add mode_table argument to the
39285 lto_input_block constructors.
39286 * ipa-prop.c (ipa_prop_read_section, read_replacements_section):
39287 Likewise.
39288 * data-streamer-in.c (string_for_index): Likewise.
39289 * ipa-inline-analysis.c (inline_read_section): Likewise.
39290 * ipa-icf.c (sem_item_optimizer::read_section): Likewise.
39291 * lto-cgraph.c (input_cgraph_opt_section): Likewise.
39292 * lto-streamer-in.c (lto_read_body_or_constructor,
39293 lto_input_toplevel_asms): Likewise.
39294 (lto_input_mode_table): New function.
39295 * tree-streamer-out.c (pack_ts_fixed_cst_value_fields,
39296 pack_ts_decl_common_value_fields, pack_ts_type_common_value_fields):
39297 Use bp_pack_machine_mode.
39298 * real.h (struct real_format): Add name field.
39299 * lto-streamer.h (enum lto_section_type): Add LTO_section_mode_table.
39300 (class lto_input_block): Add mode_table member.
39301 (lto_input_block::lto_input_block): Add mode_table_ argument,
39302 initialize mode_table.
39303 (struct lto_file_decl_data): Add mode_table field.
39304 (lto_input_mode_table, lto_output_init_mode_table): New prototypes.
39305 * tree-streamer-in.c (unpack_ts_fixed_cst_value_fields,
39306 unpack_ts_decl_common_value_fields,
39307 unpack_ts_type_common_value_fields): Call bp_unpack_machine_mode.
39308 * tree-streamer.c (streamer_mode_table): New variable.
39309 * real.c (ieee_single_format, mips_single_format,
39310 motorola_single_format, spu_single_format, ieee_double_format,
39311 mips_double_format, motorola_double_format,
39312 ieee_extended_motorola_format, ieee_extended_intel_96_format,
39313 ieee_extended_intel_128_format, ieee_extended_intel_96_round_53_format,
39314 ibm_extended_format, mips_extended_format, ieee_quad_format,
39315 mips_quad_format, vax_f_format, vax_d_format, vax_g_format,
39316 decimal_single_format, decimal_double_format, decimal_quad_format,
39317 ieee_half_format, arm_half_format, real_internal_format): Add name
39318 field.
39319 * config/pdp11/pdp11.c (pdp11_f_format, pdp11_d_format): Likewise.
39320
39321 2015-02-26 Yuri Rumyantsev <ysrumyan@gmail.com>
39322
39323 PR target/65161
39324 * config/i386/i386.c (ix86_sched_reorder): Skip instruction
39325 reordering for selective scheduling.
39326
39327 2015-02-26 Terry Guo <terry.guo@arm.com>
39328
39329 * config/arm/arm-cores.def (cortex-m7): Add flag FL_NO_VOLATILE_CE.
39330 * config/arm/arm-protos.h (FL_NO_VOLATILE_CE): New flag.
39331 (arm_arch_no_volatile_ce): Declare new global variable.
39332 * config/arm/arm.c (arm_arch_no_volatile_ce): New global variable.
39333 (arm_option_override): Assign value to arm_arch_no_volatile_ce.
39334 * config/arm/arm.h (arm_arch_no_volatile_ce): Declare it.
39335 (TARGET_NO_VOLATILE_CE): New macro.
39336 * config/arm/arm.md (arm_comparison_operator): Disabled if not allow
39337 volatile memory access in IT block
39338
39339 2015-02-25 Kai Tietz <ktietz@redhat.com>
39340
39341 PR tree-optimization/61917
39342 * tree-vect-loop.c (vectorizable_reduction): Handle obvious case
39343 that reduc_def_stmt is null.
39344
39345 2015-02-25 Martin Liska <mliska@suse.cz>
39346
39347 * ipa-icf-gimple.c (func_checker::compare_variable_decl): Compare
39348 hard register variables.
39349
39350 2015-02-25 Kai Tietz <ktietz@redhat.com>
39351
39352 PR target/64212
39353 * symtab.c (symtab::make_decl_local): Set DECL_IMPORT_P explicit to 0.
39354 (symtab::noninterposable_alias): Likewise.
39355
39356 2015-02-25 Ilya Enkovich <ilya.enkovich@intel.com>
39357
39358 PR target/65167
39359 * config/i386/i386.c (ix86_function_arg_regno_p): Support
39360 bounds registers.
39361 (avoid_func_arg_motion): Add dependencies for BNDSTX insns.
39362
39363 2015-02-25 Alan Lawrence <alan.lawrence@arm.com>
39364
39365 PR target/64997
39366 * config/aarch64/aarch64.md (*xor_one_cmpl<mode>3): Use FP_REGNUM_P
39367 as split condition; force split via '#' in output pattern.
39368
39369 2015-02-25 Richard Biener <rguenther@suse.de>
39370 Kai Tietz <ktietz@redhat.com>
39371
39372 PR tree-optimization/61917
39373 * tree-vect-loop.c (vectorizable_reduction): Allow
39374 vect_internal_def without reduction to exit graceful.
39375
39376 2015-02-25 Georg-Johann Lay <avr@gjlay.de>
39377
39378 PR target/65196
39379 * config/avr/avr.c (avr_adjust_insn_length): Call recog_memoized
39380 only with NONDEBUG_INSN_P.
39381
39382 2015-02-25 Georg-Johann Lay <avr@gjlay.de>
39383
39384 Use variadic macros with avr-log.c.
39385
39386 * config/avr/avr-protos.h (avr_vdump): New prototype.
39387 (avr_log_set_caller_e, avr_log_set_caller_f): Remove protos.
39388 (avr_edump, avr_fdump, avr_dump): (Re)define to use avr_vdump.
39389 * config/avr/avr-log.c: Adjust comments.
39390 (avr_vdump): New function.
39391 (avr_vadump): Pass caller as 2nd argument instead of format string.
39392 (avr_log_caller, avr_log_fdump_e, avr_log_fdump_f)
39393 (avr_log_set_caller_e, avr_log_set_caller_f): Remove.
39394
39395 2015-02-25 Jakub Jelinek <jakub@redhat.com>
39396
39397 PR lto/64374
39398 * target.def (target_option_stream_in): New target hook.
39399 * tree-streamer-in.c (streamer_read_tree_bitfields): Invoke
39400 targetm.target_option.post_stream_in if non-NULL.
39401 * doc/tm.texi.in: Add @hook TARGET_OPTION_POST_STREAM_IN.
39402 * doc/tm.texi: Updated.
39403 * config/i386/i386.c (ix86_function_specific_post_stream_in): New
39404 function.
39405 (TARGET_OPTION_POST_STREAM_IN): Redefine.
39406
39407 2015-02-24 Jeff Law <law@redhat.com>
39408
39409 PR target/65117
39410 * config/xtensa/xtensa.md (zero_cost_loop_start): Reverse numbering
39411 of operand 0 and operand 2.
39412 (zero_cost_loop_end, loop_end): Similarly.
39413
39414 2015-02-24 Aldy Hernandez <aldyh@redhat.com>
39415
39416 * gimple.h (gimple_build_assign): Rename CXX_MEM_STAT_DECL to
39417 CXX_MEM_STAT_INFO.
39418
39419 2015-02-24 DJ Delorie <dj@redhat.com>
39420
39421 * config/rl78/rl78-protos.h (rl78_split_movsi): Accept a mode as well.
39422 * config/rl78/rl78-expand.md (movsf): New, same as movsi.
39423 * config/rl78/rl78.c (rl78_split_movsi): Accept a mode, use it
39424 instead of hardcoding SImode.
39425
39426 2015-02-24 Bernd Schmidt <bernds@codesourcery.com>
39427
39428 * omp-low.c (create_omp_child_function): Tag entrypoint
39429 functions with a special attribute.
39430
39431 2015-02-24 Michael Haubenwallner <michael.haubenwallner@ssi-schaefer.com>
39432
39433 PR target/65058
39434 * config/rs6000/xcoff.h (ASM_OUTPUT_EXTERNAL): Drop unused variable.
39435
39436 2015-02-24 Vladimir Makarov <vmakarov@redhat.com>
39437
39438 PR rtl-optimization/65123
39439 * lra-remat.c (operand_to_remat): Check hard regs in insn
39440 definition too.
39441
39442 2015-02-24 Nick Clifton <nickc@redhat.com>
39443
39444 * config/v850/v850.h (ASM_SPEC): Pass -msoft-float/-mhard-float on
39445 to the assembler.
39446
39447 2015-02-24 Thomas Schwinge <thomas@codesourcery.com>
39448
39449 PR libgomp/64625
39450 * omp-builtins.def (BUILT_IN_GOACC_DATA_START): Specify as
39451 BT_FN_VOID_INT_SIZE_PTR_PTR_PTR, not
39452 BT_FN_VOID_INT_PTR_SIZE_PTR_PTR_PTR.
39453 (BUILT_IN_GOACC_ENTER_EXIT_DATA, BUILT_IN_GOACC_UPDATE): Specify as
39454 BT_FN_VOID_INT_SIZE_PTR_PTR_PTR_INT_INT_VAR, not
39455 BT_FN_VOID_INT_PTR_SIZE_PTR_PTR_PTR_INT_INT_VAR.
39456 (BUILT_IN_GOACC_PARALLEL): Specify as
39457 BT_FN_VOID_INT_OMPFN_SIZE_PTR_PTR_PTR_INT_INT_INT_INT_INT_VAR, not
39458 BT_FN_VOID_INT_OMPFN_PTR_SIZE_PTR_PTR_PTR_INT_INT_INT_INT_INT_VAR.
39459 * builtin-types.def
39460 (BT_FN_VOID_INT_PTR_SIZE_PTR_PTR_PTR_INT_INT_VAR)
39461 (BT_FN_VOID_INT_OMPFN_PTR_SIZE_PTR_PTR_PTR_INT_INT_INT_INT_INT_VAR):
39462 Remove function types.
39463 (BT_FN_VOID_INT_SIZE_PTR_PTR_PTR)
39464 (BT_FN_VOID_INT_SIZE_PTR_PTR_PTR_INT_INT_VAR)
39465 (BT_FN_VOID_INT_OMPFN_SIZE_PTR_PTR_PTR_INT_INT_INT_INT_INT_VAR):
39466 New function types.
39467
39468 2015-02-24 Georg-Johann Lay <avr@gjlay.de>
39469
39470 * config/avr/stdfix.h [__WITH_AVRLIBC__]: Include <stdfix-avrlibc.h>.
39471
39472 2015-02-24 Jakub Jelinek <jakub@redhat.com>
39473
39474 PR tree-optimization/65170
39475 * wide-int.cc (wi::mul_internal): For the umul_ppmm optimization,
39476 if val[1] < 0, clear also val[2] and return 3.
39477
39478 2015-02-24 Alan Modra <amodra@gmail.com>
39479
39480 PR target/65172
39481 * config/rs6000/rs6000.c (get_memref_parts): Only return true
39482 when *base is a reg. Handle nested plus addresses. Simplify
39483 pre_modify test.
39484
39485 2015-02-22 Max Filippov <jcmvbkbc@gmail.com>
39486
39487 * config/xtensa/xtensa.h (CONSTANT_ALIGNMENT, DATA_ALIGNMENT):
39488 use natural alignment when optimizing for size.
39489
39490 2015-02-23 Kaz Kojima <kkojima@gcc.gnu.org>
39491
39492 PR target/65153
39493 * config/sh/sh.md (movsicc_true+3): Remove peephole.
39494 * config/sh/sh-protos.h (replace_n_hard_rtx): Don't declare.
39495 * config/sh/sh.c (replace_n_hard_rtx): Remove.
39496
39497 2015-02-23 Richard Sandiford <richard.sandiford@arm.com>
39498
39499 PR fortran/63427
39500 * wide-int.cc (wi::from_mpz): Cope with unwrapped values that are
39501 too big for a wide_int. Implement missing wrapping operation.
39502
39503 2015-02-23 Oleg Endo <olegendo@gcc.gnu.org>
39504
39505 PR target/65163
39506 * config/sh/sh.md (swapbsi2, related peephole2): Use const_int -65536
39507 instead of const_int 4294901760.
39508
39509 2015-02-23 Georg-Johann Lay <avr@gjlay.de>
39510
39511 * config/avr/t-avr: Fix typo in comment.
39512
39513 2015-02-21 Richard Sandiford <richard.sandiford@arm.com>
39514
39515 * doc/rtl.texi (fma): Clarify documentation.
39516
39517 2015-02-20 Aldy Hernandez <aldyh@redhat.com>
39518
39519 PR debug/58123
39520 * gimplify.c (gimplify_expr): Prefer location of TRY_FINALLY_EXPR
39521 over input_location.
39522
39523 2015-02-20 Bernd Schmidt <bernds@codesourcery.com>
39524
39525 * tree-streamer-in.c (unpack_ts_decl_common_value_fields,
39526 unpack_ts_type_common_value_fields): If ACCEL_COMPILER,
39527 restrict alignments to absolute_biggest_alignment.
39528 * config/i386/i386.c (TARGET_ABSOLUTE_BIGGEST_ALIGNMENT):
39529 Define.
39530 * doc/tm.texi.in (TARGET_ABSOLUTE_BIGGEST_ALIGNMENT): Add.
39531 * doc/tm.texi: Regenerate.
39532 * target.def (absolute_biggest_alignment): New DEFHOOKPOD.
39533
39534 2015-02-20 Vladimir Makarov <vmakarov@redhat.com>
39535
39536 PR target/64172
39537 * ira-color.c (color_pass): Prevent splitting multi-register pseudos.
39538
39539 2015-02-20 Richard Biener <rguenther@suse.de>
39540
39541 PR tree-optimization/65136
39542 * tree-ssa-propagate.c: Include cfgloop.h.
39543 (replace_phi_args_in): Avoid replacing loop latch edge PHI
39544 arguments with constants.
39545
39546 2015-02-20 Jakub Jelinek <jakub@redhat.com>
39547 Martin Liska <mliska@suse.cz>
39548
39549 PR target/63892
39550 * ipa-icf.c (sem_function::merge): If DECL_COMDAT_GROUP (alias->decl),
39551 don't try to create_thunk if stdarg_p. If
39552 !sem_item::target_supports_symbol_aliases_p (), similarly, and try to
39553 redirect_callers if possible.
39554 (sem_item_optimizer::execute): Call unregister_hooks here...
39555 (ipa_icf_driver): ... instead of here.
39556
39557 2015-02-20 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
39558
39559 * config/aarch64/aarch64.md (*aarch64_lshr_sisd_or_int_<mode>3):
39560 Mark operand 0 as earlyclobber in 2nd alternative.
39561 (1st define_split below *aarch64_lshr_sisd_or_int_<mode>3):
39562 Write negated shift amount into QI lowpart operand 0 and use it
39563 in the shift step.
39564 (2nd define_split below *aarch64_lshr_sisd_or_int_<mode>3): Likewise.
39565
39566 2015-02-20 Bernd Schmidt <bernds@codesourcery.com>
39567
39568 * cgraph.h (clone_function_name_1): Declare.
39569 * cgraphclones.c (clone_function_name_1): New function.
39570 (clone_function_name): Use it.
39571 * lto-partition.c: Include "stringpool.h".
39572 (must_not_rename, maybe_rewrite_identifier)
39573 (validize_symbol_for_target): New static functions.
39574 (privatize_symbol_name): Use must_not_rename.
39575 (promote_symbol): Call validize_symbol_for_target.
39576 (lto_promote_cross_file_statics): Likewise.
39577 (lto_promote_statics_nonwpa): Likewise.
39578
39579 2015-02-20 Georg-Johann Lay <avr@gjlay.de>
39580
39581 PR target/64452
39582 * config/avr/avr.md (pushhi_insn): New insn.
39583 (push<mode>1): Push virtual regs in one chunk using pushhi1_insn.
39584
39585 2015-02-20 Bernd Schmidt <bernds@codesourcery.com>
39586 Jakub Jelinek <jakub@redhat.com>
39587
39588 * tree-streamer.c (preload_common_nodes): Don't preload
39589 TI_VA_LIST* for offloading.
39590 * tree-stdarg.c (pass_stdarg::gate): Disable for ACCEL_COMPILER
39591 in_lto_p.
39592
39593 2015-02-19 John David Anglin <danlgin@gcc.gnu.org>
39594
39595 * config/pa/pa.c (pa_emit_move_sequence): Always force
39596 (const (plus (symbol) (const_int))) to const mem. Put REG_EQUAL
39597 note on insn.
39598
39599 * config/pa/pa.c (pa_reloc_rw_mask): New function.
39600 (TARGET_ASM_RELOC_RW_MASK): Define.
39601 (pa_cannot_force_const_mem): Revert previous change.
39602
39603 2015-02-19 Martin Jambor <mjmabor@suse.cz>
39604 Jan Hubicka <hubicka@ucw.cz>
39605
39606 PR ipa/65028
39607 * ipa-cp.c (propagate_alignment_accross_jump_function): Fix propagation
39608 across jump functions.
39609
39610 2015-02-19 Uros Bizjak <ubizjak@gmail.com>
39611
39612 * config/alpha/alpha.c (alpha_in_small_data_p): Reject common symbols.
39613
39614 2015-02-19 Sandra Loosemore <sandra@codesourcery.com>
39615
39616 * doc/extend.texi (x86 transactional memory intrinsics): Copy-edit.
39617
39618 2015-02-19 Richard Henderson <rth@redhat.com>
39619
39620 PR middle-end/65074
39621 * varasm.c (default_binds_local_p_2): Don't test node->definition;
39622 test DECL_EXTERNAL independent of symtab_node.
39623
39624 2015-02-19 Jakub Jelinek <jakub@redhat.com>
39625
39626 PR lto/65012
39627 * varpool.c (varpool_node::get_constructor): Return early
39628 if this->lto_file_data is NULL.
39629
39630 2015-02-19 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
39631
39632 * haifa-sched.c (enum rfs_decision, rfs_str): Remove RFS_DEBUG.
39633 (rank_for_schedule_debug): Update.
39634 (ready_sort): Make static. Move sorting logic to ...
39635 (ready_sort_debug, ready_sort_real): New static functions.
39636 (schedule_block): Sort both debug insns and real insns in preparation
39637 for ready list trimming. Improve debug output.
39638 * sched-int.h (ready_sort): Remove global declaration.
39639
39640 2015-02-18 Trevor Saunders <tsaunders@mozilla.com>
39641
39642 * ipa-icf.c (sem_function::equals_private): Adjust.
39643 (sem_function::bb_dict_test): Take a vec<int> * instead of
39644 auto_vec<int>.
39645 * ipa-icf.h (bb_dict_test): Likewise.
39646
39647 2015-02-18 Jakub Jelinek <jakub@redhat.com>
39648
39649 PR gcov-profile/64634
39650 * tree-eh.c (frob_into_branch_around): Fix up typos
39651 in function comment.
39652 (lower_catch): Put eh_seq resulting from EH lowering of
39653 the cleanup sequence after the cleanup rather than before it.
39654
39655 2015-02-18 Tom de Vries <tom@codesourcery.com>
39656
39657 * common.opt (fstdarg-opt): New option.
39658 * tree-stdarg.c (pass_stdarg::gate): Use flag_stdarg_opt.
39659 * doc/invoke.texi (@item Optimization Options): Add -fstdarg-opt.
39660 (@item -fstdarg-opt): New item.
39661
39662 2015-02-18 H.J. Lu <hongjiu.lu@intel.com>
39663
39664 PR target/65064
39665 * config/ia64/predicates.md (sdata_symbolic_operand): Return false
39666 for common symbols.
39667
39668 2015-02-18 Jakub Jelinek <jakub@redhat.com>
39669
39670 * config/i386/t-intelmic (mkoffload.o): Remove dependency on
39671 insn-modes.h.
39672 (ALL_HOST_OBJS): Add mkoffload.o.
39673 * config/nvptx/t-nvptx (ALL_HOST_OBJS): Likewise.
39674
39675 2015-02-18 Jan Hubicka <hubicka@ucw.cz>
39676
39677 * ipa-devirt.c (odr_subtypes_equivalent_p): Fix formating.
39678 (compare_virtual_tables): Be smarter about skipping typeinfos;
39679 do sane output on virtual table table mismatch.
39680 (warn_odr): Be ready for forward declarations of enums;
39681 output sane info on base mismatch and virtual table mismatch.
39682 (add_type_duplicate): Fix code choosing prevailing type; do not ICE
39683 when only one type is polymorphic.
39684 (get_odr_type): Fix hashtable corruption.
39685 (dump_odr_type): Dump mangled names.
39686
39687 2015-02-18 Richard Biener <rguenther@suse.de>
39688
39689 PR tree-optimization/65063
39690 * tree-predcom.c (determine_unroll_factor): Return 1 if we
39691 have replaced looparound PHIs.
39692
39693 2015-02-18 Martin Liska <mliska@suse.cz>
39694
39695 * lto-streamer.c (lto_streamer_init): Encapsulate
39696 streamer_check_handled_ts_structures with checking macro.
39697
39698 2015-02-18 Jakub Jelinek <jakub@redhat.com>
39699
39700 PR ipa/65087
39701 * cgraphclones.c (cgraph_node::create_virtual_clone): Only copy
39702 section if !implicit_section.
39703 (cgraph_node::create_version_clone_with_body): Likewise.
39704 * trans-mem.c (ipa_tm_create_version): Likewise.
39705
39706 2015-02-18 Richard Biener <rguenther@suse.de>
39707
39708 PR tree-optimization/62217
39709 * tree-ssa-dom.c (cprop_operand): Avoid propagating copies
39710 into BIVs.
39711
39712 2015-02-18 Marek Polacek <polacek@redhat.com>
39713
39714 PR sanitizer/65081
39715 * ubsan.c (OBJSZ_MAX_OFFSET): Define.
39716 (ubsan_expand_objsize_ifn): Don't emit run-time check if the offset
39717 is in range [-16K, -1]. Don't issue run-time error if
39718 (ptr > ptr + offset).
39719
39720 2015-02-18 Thomas Schwinge <thomas@codesourcery.com>
39721
39722 * doc/install.texi (nvptx-*-none): New section.
39723 * doc/invoke.texi (Nvidia PTX Options): Likewise.
39724 * config/nvptx/nvptx.opt: Update.
39725
39726 * config/nvptx/mkoffload.c (parse_env_var, free_array_of_ptrs)
39727 (access_check): New functions, copied from
39728 config/i386/intelmic-mkoffload.c.
39729 (main): For non-installed testing, look in all COMPILER_PATHs for
39730 GCC_INSTALL_NAME.
39731
39732 * config/nvptx/nvptx.h (GOMP_SELF_SPECS): Define macro.
39733
39734 2015-02-18 Andrew Pinski <apinski@cavium.com>
39735 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
39736
39737 * config/aarch64/aarch64.c (*aarch64_load_symref_appropriately):
39738 Check whether the destination of SYMBOL_SMALL_TPREL is Pmode.
39739
39740 2015-02-17 Jan Hubicka <hubicka@ucw.cz>
39741
39742 * ipa-visibility.c (function_and_variable_visibility): Only
39743 check locality if node is not already local.
39744 * ipa-inline.c (want_inline_function_to_all_callers_p): Use
39745 call_for_symbol_and_aliases instead of
39746 call_for_symbol_thunks_and_aliases.
39747 (ipa_inline): Likewise.
39748 * cgraph.c (cgraph_node::call_for_symbol_thunks_and_aliases):
39749 first walk aliases.
39750 * ipa.c (symbol_table::remove_unreachable_nodes): Use
39751 call_for_symbol_and_aliases.
39752 * ipa-profile.c (ipa_propagate_frequency_data): Add function_symbol.
39753 (ipa_propagate_frequency_1): Use it; use opt_for_fn
39754 (ipa_propagate_frequency): Update.
39755 (ipa_profile): Add opt_for_fn gueards.
39756
39757 2015-02-17 Oleg Endo <olegendo@gcc.gnu.org>
39758
39759 * config/sh/sh.opt (mcbranch-force-delay-slot): New option.
39760 * doc/invoke.texi (SH options): Document it.
39761 * config/sh/sh.c (sh_insn_length_adjustment): Check
39762 TARGET_CBRANCH_FORCE_DELAY_SLOT instead of sh_cpu_attr == CPU_SH2E.
39763
39764 2015-02-17 H.J. Lu <hongjiu.lu@intel.com>
39765
39766 * common.opt (fipa-cp-alignment): New.
39767 * ipa-cp.c (ipcp_store_alignment_results): Check
39768 flag_ipa_cp_alignment.
39769 * opts.c (default_options_table): Enable -fipa-cp-alignment for
39770 -O2.
39771 (enable_fdo_optimizations): Set x_flag_ipa_cp_alignment.
39772 * doc/invoke.texi: Document -fipa-cp-alignment.
39773
39774 2015-02-17 Oleg Endo <olegendo@gcc.gnu.org>
39775
39776 PR target/64793
39777 * config/sh/sh.md (cbranch define_delay): Set annulled true branch insn
39778 to nil. Adjust comments.
39779
39780 2015-02-17 Jan Hubicka <hubicka@ucw.cz>
39781
39782 * ipa-visibility.c (function_and_variable_visibility): Only
39783 check locality if node is not already local.
39784 * ipa-inline.c (want_inline_function_to_all_callers_p): Use
39785 call_for_symbol_and_aliases instead of
39786 call_for_symbol_thunks_and_aliases.
39787 (ipa_inline): Likewise.
39788 * cgraph.c (cgraph_node::call_for_symbol_thunks_and_aliases):
39789 first walk aliases.
39790 * ipa.c (symbol_table::remove_unreachable_nodes): Use
39791 call_for_symbol_and_aliases.
39792 * ipa-profile.c (ipa_propagate_frequency_data): Add function_symbol.
39793 (ipa_propagate_frequency_1): Use it; use opt_for_fn
39794 (ipa_propagate_frequency): Update.
39795 (ipa_profile): Add opt_for_fn guards.
39796
39797 2015-02-17 Thomas Schwinge <thomas@codesourcery.com>
39798
39799 * config/nvptx/mkoffload.c (parse_file): Fix logic error in
39800 skipping of "strange" tokens.
39801
39802 2015-02-17 Jeff Law <law@redhat.com>
39803
39804 * tree-vrp.c (identify_jump_threads): Use last_stmt. Remove
39805 obsolete comment.
39806
39807 2015-02-17 James Greenhalgh <james.greenhalgh@arm.com>
39808
39809 * haifa-sched.c (recompute_todo_spec): Treat SCHED_GROUP_P
39810 as forcing a HARD_DEP between instructions, thereby
39811 disallowing rewriting to break dependencies.
39812
39813 2015-02-16 Jan Hubicka <hubicka@ucw.cz>
39814
39815 * symtab.c (symtab_node::verify_base): Verify body_removed->!definiton
39816 * lto-cgraph.c (lto_output_varpool_node): Do not keep definition of
39817 variables in boundary that have no inlitalizer encoded and are
39818 not aliases.
39819 * varasm.c (default_binds_local_p_2): External definitions do not
39820 count as definitions here.
39821
39822 2015-02-16 Jeff Law <law@redhat.com>
39823
39824 PR tree-optimization/64823
39825 * tree-vrp.c (identify_jump_threads): Handle blocks with no real
39826 statements.
39827 * tree-ssa-threadedge.c (potentially_threadable_block): Allow
39828 threading through blocks with PHIs, but no statements.
39829 (thread_through_normal_block): Distinguish between blocks where
39830 we did not process all the statements and blocks with no statements.
39831
39832 2015-02-16 Jakub Jelinek <jakub@redhat.com>
39833 James Greenhalgh <james.greenhalgh@arm.com>
39834
39835 PR ipa/64963
39836 * cgraphclones.c (cgraph_node::create_virtual_clone): Copy
39837 section if not linkonce. Fix up formatting.
39838 (cgraph_node::create_version_clone_with_body): Copy section.
39839 * trans-mem.c (ipa_tm_create_version): Likewise.
39840
39841 2015-02-16 Richard Biener <rguenther@suse.de>
39842
39843 PR tree-optimization/65077
39844 * tree-ssa-structalias.c (get_constraint_for_1): Handle
39845 IMAGPART_EXPR, REALPART_EXPR and BIT_FIELD_REF.
39846 (find_func_aliases): Allow float values to carry pointers again.
39847
39848 2015-02-16 James Greenhalgh <james.greenhalgh@arm.com>
39849
39850 * doc/install.texi (Specific): Reorder targets list to put
39851 aarch64 in alphabetical order. Add a link to aarch64*-*-*
39852 from the top menu.
39853
39854 2015-02-16 Michael Haubenwallner <michael.haubenwallner@ssi-schaefer.com>
39855 David Edelsohn <dje.gcc@gmail.com>
39856
39857 PR target/65058
39858 * config/rs6000/rs6000.c (rs6000_output_symbol_ref): Append storage
39859 mapping class to external variable or function reference.
39860 * config/rs6000/xcoff.h (ASM_OUTPUT_EXTERNAL): Do not append storage
39861 mapping class.
39862
39863 2015-02-16 David Eelsohn <dje.gcc@gmail.com>
39864
39865 PR target/53348
39866 * config/rs6000/rs6000.c (rs6000_declare_alias): Only use
39867 ASM_WEAKEN_DECL if defined.
39868
39869 2015-02-16 Richard Biener <rguenther@suse.de>
39870
39871 PR lto/65015
39872 * varasm.c (default_file_start): For LTO produced units
39873 emit <artificial> as file directive.
39874
39875 2015-02-16 Richard Biener <rguenther@suse.de>
39876
39877 PR tree-optimization/63593
39878 * tree-predcom.c (execute_pred_commoning_chain): Delay removing
39879 stmts and releasing SSA names until...
39880 (execute_pred_commoning): ... after processing all chains.
39881
39882 2015-02-16 Jan Hubicka <hubicka@ucw.cz>
39883
39884 PR ipa/65059
39885 * ipa-comdats.c (ipa_comdats): Do not categorize thunks to
39886 external functions.
39887
39888 2015-02-15 Sandra Loosemore <sandra@codesourcery.com>
39889
39890 * doc/bugreport.texi: Adjust section titles throughout the file
39891 to use "Title Case".
39892 * doc/extend.texi: Likewise.
39893 * doc/gcov.texi: Likewise.
39894 * doc/implement-c.texi: Likewise.
39895 * doc/implement-cxx.texi: Likewise.
39896 * doc/invoke.texi: Likewise.
39897 * doc/objc.texi: Likewise.
39898 * doc/standards.texi: Likewise.
39899 * doc/trouble.texi: Likewise.
39900
39901 2015-02-15 Jan Hubicka <hubicka@ucw.cz>
39902
39903 * cgraph.h (symtab_node::has_aliases_p): Simplify.
39904 (symtab_node::call_for_symbol_and_aliases): Use has_aliases_p
39905 * tree.c (lookup_binfo_at_offset): Make static.
39906 (get_binfo_at_offset): Do not shadow offset; add explanatory
39907 comment.
39908
39909 2015-02-15 John David Anglin <danglin@gcc.gnu.org>
39910
39911 * config/pa/pa.c (pa_secondary_reload): Request a secondary reload
39912 for all floading point loads and stores except those using a register
39913 index address.
39914 * config/pa/pa.md: Add new patterns to load a lo_sum DLT operand
39915 to a register.
39916
39917 2015-02-14 Jan Hubicka <hubicka@ucw.cz>
39918
39919 * ipa-inline-analysis.c (growth_data): Add uninlinable field.
39920 (do_estimate_growth_1): Record if any uninlinable edge was seen.
39921 (estimate_growth): Handle uninlinable edges correctly.
39922 (check_callers): New.
39923 (growth_likely_positive): Handle aliases correctly.
39924
39925 2015-02-14 Jan Hubicka <hubicka@ucw.cz>
39926
39927 * ipa-chkp.c: Use iterate_direct_aliases.
39928 * symtab.c (resolution_used_from_other_file_p): Move inline.
39929 (symtab_node::create_reference): Fix formating.
39930 (symtab_node::has_aliases_p): Move inline; use iterate_direct_aliases.
39931 (symtab_node::iterate_reference): Move inline.
39932 (symtab_node::iterate_referring): Move inline.
39933 (symtab_node::iterate_direct_aliases): Move inline.
39934 (symtab_node::used_from_object_file_p_worker): Inline into ...
39935 (symtab_node::used_from_object_file_p): ... this one; move inline.
39936 (symtab_node::call_for_symbol_and_aliases): Move inline;
39937 use iterate_direct_aliases.
39938 (symtab_node::call_for_symbol_and_aliases_1): New method.
39939 (cgraph_node::call_for_symbol_and_aliases): Move inline;
39940 use iterate_direct_aliases.
39941 (cgraph_node::call_for_symbol_and_aliases_1): New method.
39942 (varpool_node::call_for_node_and_aliases): Rename to ...
39943 (varpool_node::call_for_symbol_and_aliases): ... this one; Move inline;
39944 use iterate_direct_aliases.
39945 (varpool_node::call_for_symbol_and_aliases_1): New method.
39946 * ipa.c (ipa_single_use): Use iterate_direct_aliases.
39947 (ipa_discover_readonly_nonaddressable_var): Update.
39948 * ipa-devirt.c: Fix formating.
39949 * cgraph.c (cgraph_node::can_remove_if_no_direct_calls_and_refs_p):
39950 Move inline.
39951 (cgraph_node::call_for_symbol_and_aliases): Move inline.
39952 (cgraph_node::call_for_symbol_and_aliases_1): New function..
39953 * cgraph.h (used_from_object_file_p_worker): Remove.
39954 (resolution_used_from_other_file_p): Move inline.
39955 (symtab_node::has_aliases_p): Move inline; use iterate_direct_aliases.
39956 (symtab_node::iterate_reference): Move inline.
39957 (symtab_node::iterate_referring): Move inline.
39958 (symtab_node::iterate_direct_aliases): Move inline.
39959 (symtab_node::used_from_object_file_p_worker): Inline into ...
39960 (symtab_node::used_from_object_file_p): Move inline.
39961 * tree-emutls.c (ipa_lower_emutls): Update.
39962 * varpool.c (varpool_node::call_for_symbol_and_aliases_1): New method.
39963 (varpool_node::call_for_node_and_aliases): Remove.
39964
39965 2015-02-14 Jakub Jelinek <jakub@redhat.com>
39966
39967 PR tree-optimization/62209
39968 * tree-ssa-reassoc.c (update_range_test): If stmt is a PHI and
39969 op == range->exp, insert seq and gimplified code after labels
39970 instead of after the phi.
39971
39972 2015-02-13 Jeff Law <law@redhat.com>
39973
39974 PR bootstrap/65060
39975 Revert my change for tree-optimization/64823.
39976
39977 2015-02-13 Jakub Jelinek <jakub@redhat.com>
39978
39979 PR tree-optimization/65053
39980 * tree-ssa-phiopt.c (value_replacement): When moving assign before
39981 cond, either reset VR on lhs or set it to phi result VR.
39982
39983 2015-02-13 Jeff Law <law@redhat.com>
39984
39985 PR tree-optimization/64823
39986 * tree-vrp.c (identify_jump_threads): Handle blocks with no statements.
39987 * tree-ssa-threadedge.c (potentially_threadable_block): Allow
39988 threading through blocks with PHIs, but no statements.
39989 (thread_through_normal_block): Distinguish between blocks where
39990 we did not process all the statements and blocks with no statements.
39991
39992 PR rtl-optimization/47477
39993 * match.pd (convert (plus/minus (convert @0) (convert @1): New
39994 simplifier to narrow arithmetic.
39995
39996 2015-02-13 Jan Hubicka <hubicka@ucw.cz>
39997
39998 PR ipa/65028
39999 * ipa-prop.c (update_indirect_edges_after_inlining): Do not drop
40000 polymorphic call info when type is not known to be preserved.
40001
40002 2015-02-13 Maritn Jambor <mjambor@suse.cz>
40003
40004 PR ipa/65028
40005 * ipa-inline-transform.c (mark_all_inlined_calls_cdtor): New function.
40006 (inline_call): Use it.
40007
40008 2015-02-13 Thomas Schwinge <thomas@codesourcery.com>
40009
40010 * config/nvptx/offload.h (ACCEL_COMPILER_acc_device): Define to
40011 GOMP_DEVICE_NVIDIA_PTX.
40012
40013 2015-02-13 Jakub Jelinek <jakub@redhat.com>
40014
40015 PR ipa/65034
40016 * stmt.c (emit_case_nodes): Use void_type_node instead of
40017 NULL_TREE as LABEL_DECL type.
40018
40019 2015-02-13 John David Anglin <danglin@gcc.gnu.org>
40020
40021 * config/pa/constraints.md: Change "Q" and "T" constraints to memory
40022 constraints.
40023 * config/pa/pa.c (pa_cannot_force_const_mem): Don't allow constant
40024 symbolic references to data to be forced to constant memory on the
40025 SOM target.
40026
40027 2015-02-13 Ilya Enkovich <ilya.enkovich@intel.com>
40028
40029 PR tree-optimization/65002
40030 * tree-cfg.c (pass_data_fixup_cfg): Don't update
40031 SSA on start.
40032 * tree-sra.c (some_callers_have_no_vuse_p): New.
40033 (ipa_early_sra): Reject functions whose callers
40034 assume function is read only.
40035
40036 2015-02-13 Richard Biener <rguenther@suse.de>
40037
40038 PR lto/65015
40039 * dwarf2out.c (dwarf2out_finish): Use <artificial> as DW_AT_name
40040 for LTO produced CUs.
40041
40042 2015-02-13 Bin Cheng <bin.cheng@arm.com>
40043
40044 PR tree-optimization/64705
40045 * tree-ssa-loop-niter.h (expand_simple_operations): New parameter.
40046 * tree-ssa-loop-niter.c (expand_simple_operations): New parameter.
40047 * tree-ssa-loop-ivopts.c (extract_single_var_from_expr): New.
40048 (find_bivs, find_givs_in_stmt_scev): Pass new argument to
40049 expand_simple_operations.
40050
40051 2015-02-13 H.J. Lu <hongjiu.lu@intel.com>
40052 Richard Henderson <rth@redhat.com>
40053
40054 PR rtl/32219
40055 * cgraphunit.c (cgraph_node::finalize_function): Set definition
40056 before notice_global_symbol.
40057 (varpool_node::finalize_decl): Likewise.
40058 * varasm.c (default_binds_local_p_2): Rename from
40059 default_binds_local_p_1, add weak_dominate argument. Use direct
40060 returns instead of assigning to local variable. Unify varpool and
40061 cgraph paths via symtab_node. Reject undef weak variables before
40062 testing visibility. Reorder tests for simplicity.
40063 (default_binds_local_p): Use default_binds_local_p_2.
40064 (default_binds_local_p_1): Likewise.
40065 (decl_binds_to_current_def_p): Unify varpool and cgraph paths
40066 via symtab_node.
40067 (default_elf_asm_output_external): Emit visibility when specified.
40068
40069 2015-02-13 Alan Modra <amodra@gmail.com>
40070
40071 * config/rs6000/rs6000.c (rs6000_emit_epilogue): Fix typo in
40072 code setting up r11 for out-of-line fp restore.
40073
40074 2015-02-13 Eric Botcazou <ebotcazou@adacore.com>
40075
40076 * config/visium/visium.opt (msv-mode): Add RejectNegative and Report.
40077 (muser-mode): Likewise.
40078
40079 2015-02-13 Alan Modra <amodra@gmail.com>
40080
40081 * config/rs6000/rs6000.c (rs6000_emit_epilogue): Use addsi3_carry
40082 or adddi3_carry when restoring frame_reg_rtx from r0 after restvr.
40083
40084 2015-02-12 David Howells <dhowells@redhat.com>
40085
40086 * tree-sra.c (dump_dereferences_table): Avoid -Wformat-security
40087 warning.
40088 * tree-ssa-uninit.c (dump_predicates): Likewise.
40089 * opts.c (print_filtered_help): Likewise.
40090
40091 2015-02-12 Jakub Jelinek <jakub@redhat.com>
40092
40093 * dwarf2out.c (output_die): Use "%s", name instead of name to
40094 avoid -Wformat-security warning.
40095
40096 * dwarf2asm.c (dw2_asm_output_vms_delta): Only define
40097 if ASM_OUTPUT_DWARF_VMS_DELTA is defined.
40098 * dwarf2out.c (output_die): Use dw2_asm_output_vms_delta
40099 only if ASM_OUTPUT_DWARF_VMS_DELTA is defined.
40100
40101 2015-02-12 Jason Merrill <jason@redhat.com>
40102
40103 * common.opt (-flifetime-dse): New.
40104
40105 2015-02-12 Jakub Jelinek <jakub@redhat.com>
40106
40107 PR sanitizer/65019
40108 * ubsan.c (ubsan_expand_objsize_ifn): Always return true.
40109
40110 PR tree-optimization/65014
40111 * fold-const.c (fold_binary_loc): When creating {L,R}ROTATE_EXPR,
40112 use original second operand of arg0 or arg1 instead of
40113 that adjusted by STRIP_NOPS.
40114
40115 2015-02-11 Jeff Law <law@redhat.com>
40116
40117 PR target/63347
40118 * haifa-sched.c (prune_ready_list): If we have a SCHED_GROUP_P insn
40119 that needs to be queued, just queue it for a single cycle.
40120
40121 2015-02-11 Jan Hubicka <hubicka@ucw.cz>
40122
40123 * ipa.c (symbol_table::remove_unreachable_nodes): Avoid releasing
40124 bodies of thunks; comment on why.
40125 * symtab.c (symtab_node::get_partitioning_class): Aliases of extern
40126 symbols are extern.
40127
40128 2015-02-11 Richard Henderson <rth@redhat.com>
40129
40130 PR sanitize/65000
40131 * tree-eh.c (mark_reachable_handlers): Mark source and destination
40132 regions of __builtin_eh_copy_values.
40133
40134 2015-02-11 Jakub Jelinek <jakub@redhat.com>
40135
40136 PR middle-end/65003
40137 * varasm.c (place_block_symbol): Assert that DECL_RTL of the
40138 ultimate alias is MEM with SYMBOL_REF satisfying
40139 SYMBOL_REF_HAS_BLOCK_INFO_P as its operand. Don't pass the MEM
40140 to place_block_symbol, but instead pass the SYMBOL_REF operand of it.
40141
40142 2015-02-11 Thomas Schwinge <thomas@codesourcery.com>
40143
40144 * config/nvptx/mkoffload.c: Include "diagnostic.h" instead of
40145 "diagnostic-core.h".
40146 (main): Initialize progname, and call diagnostic_initialize.
40147
40148 * config/nvptx/mkoffload.c (process): Refer to __OFFLOAD_TABLE__
40149 instead of __OPENMP_TARGET__.
40150
40151 * config/nvptx/mkoffload.c: Include "gomp-constants.h".
40152 (process): Use its GOMP_DEVICE_NVIDIA_PTX instead of (wrongly)
40153 hard-coding PTX_ID.
40154
40155 2015-02-11 H.J. Lu <hongjiu.lu@intel.com>
40156
40157 * doc/sourcebuild.texi (pie_enabled): Document.
40158
40159 2015-02-11 Martin Liska <mliska@suse.cz>
40160
40161 PR ipa/64813
40162 * cgraphunit.c (cgraph_node::expand_thunk): Do not create
40163 a return value for call to a function that is noreturn.
40164
40165 2015-02-11 Richard Biener <rguenther@suse.de>
40166
40167 PR lto/65015
40168 * dwarf2out.c (gen_producer_string): Drop -fltrans-output-list
40169 and -fresolution.
40170
40171 2015-02-11 Andrew Pinski <apinski@cavium.com>
40172
40173 PR target/64893
40174 * config/aarch64/aarch64-builtins.c (aarch64_init_simd_builtins):
40175 Change the first argument type to size_type_node and add another
40176 size_type_node.
40177 (aarch64_simd_expand_builtin): Handle the new argument to
40178 AARCH64_SIMD_BUILTIN_LANE_CHECK and don't ICE but rather
40179 print an out when the first two arguments are not
40180 nonzero integer constants.
40181 * config/aarch64/arm_neon.h (__AARCH64_LANE_CHECK):
40182 Pass the sizeof directly to __builtin_aarch64_im_lane_boundsi.
40183
40184 2015-02-11 Jakub Jelinek <jakub@redhat.com>
40185
40186 PR target/61925
40187 * config/i386/i386.c (ix86_reset_to_default_globals): Removed.
40188 (ix86_reset_previous_fndecl): Restore it here, unconditionally.
40189 (ix86_set_current_function): Rewritten.
40190 (ix86_add_new_builtins): Temporarily clear current_target_pragma
40191 when creating builtin fndecls.
40192
40193 2015-02-10 Jan Hubicka <hubicka@ucw.cz>
40194
40195 PR ipa/65005
40196 * ipa-visibility.c (cgraph_node::non_local_p): Turn into static
40197 function.
40198 * symtab.c (symtab_node::verify_base): Remove check that non-definitions
40199 have no comdat group.
40200 * lto-cgraph.c (lto_output_node): Always output thunk and alias info.
40201 (lto_output_varpool_node): Always output alias info.
40202 (output_refs): Output refs of boundary aliases, too.
40203 (compute_ltrans_boundary): Add alias and thunk target into boundaries.
40204 (output_symtab): Output call eges in thunks in boundary.
40205 (get_alias_symbol): Remove.
40206 (input_node, input_varpool_node): Do not special case weakrefs.
40207 * ipa.c (symbol_table::remove_unreachable_nodes): Do not remove
40208 alias and thunks targets in the boundary; do not take removed symbols
40209 from their comdat groups.
40210 * cgraph.c (cgraph_node::local_info): Look through aliases and thunks.
40211 (cgraph_node::global_info): Remove.
40212 (cgraph_node::rtl_info): Look through aliases and thunks.
40213 * cgrpah.h (global_info): Remove.
40214 (non_local_p): Remove.
40215
40216 2015-02-10 David Wohlferd <dw@LimeGreenSocks.com>
40217 Sandra Loosemore <sandra@codesourcery.com>
40218
40219 * doc/invoke.texi (x86 Options [-masm=dialect]): Add cross-references
40220 to inline asm. List dialects in proper order.
40221
40222 2015-02-10 David Wohlferd <dw@LimeGreenSocks.com>
40223 Sandra Loosemore <sandra@codesourcery.com>
40224
40225 * doc/extend.texi (Loop-Specific Pragmas): Fix grammar error.
40226
40227 2015-02-10 David Wohlferd <dw@LimeGreenSocks.com>
40228
40229 * doc/extend.texi (Symbol-Renaming Pragmas): Restore (slightly
40230 modified) reference to Solaris.
40231
40232 2015-02-10 Sandra Loosemore <sandra@codesourcery.com>
40233
40234 * doc/extend.texi (Extended Asm): Fix typos.
40235
40236 2015-02-10 Jakub Jelinek <jakub@redhat.com>
40237
40238 PR sanitizer/65004
40239 * ubsan.c (ubsan_expand_vptr_ifn): Always return true.
40240
40241 2015-02-10 Oleg Endo <olegendo@gcc.gnu.org>
40242
40243 PR target/64661
40244 * config/sh/sh-protos.h (TARGET_ATOMIC_ANY, TARGET_ATOMIC_STRICT,
40245 TARGET_ATOMIC_SOFT_GUSA, TARGET_ATOMIC_HARD_LLCS,
40246 TARGET_ATOMIC_SOFT_TCB, TARGET_ATOMIC_SOFT_IMASK): Add parentheses.
40247 * config/sh/constraints.md (Ara, Add): New constraints.
40248 * config/sh/sync.md (atomic_mem_operand_0, atomic_mem_operand_1): New
40249 predicates.
40250 (atomic_compare_and_swap<mode>, atomic_exchange<mode>): Use
40251 atomic_mem_operand_0. Don't use force_reg on the memory address.
40252 (atomic_compare_and_swapsi_hard): Use atomic_mem_operand_0 predicate and
40253 Sra constraint. Convert to insn_and_split. Add workaround for
40254 PR 64974.
40255 (atomic_compare_and_swap<mode>_hard): Copy to
40256 atomic_compare_and_swap<mode>_hard_1. Convert to insn_and_split.
40257 Use atomic_mem_operand_0 predicate.
40258 (atomic_compare_and_swap<mode>_soft_gusa,
40259 atomic_exchange<mode>_soft_gusa): Use atomic_mem_operand_0 predicate and
40260 AraAdd constraints.
40261 (atomic_compare_and_swap<mode>_soft_tcb,
40262 atomic_compare_and_swap<mode>_soft_imask,
40263 atomic_exchange<mode>_soft_tcb, atomic_exchange<mode>_soft_imask): Use
40264 atomic_mem_operand_0 predicate and SraSdd constraints.
40265 (atomic_exchangesi_hard) Use atomic_mem_operand_0 predicate and Sra
40266 constraint.
40267 (atomic_exchange<mode>_hard): Copy to atomic_exchange<mode>_hard_1.
40268 Convert to insn_and_split. Use atomic_mem_operand_0 predicate.
40269 (atomic_fetch_<fetchop_name><mode>, atomic_fetch_nand<mode>,
40270 atomic_<fetchop_name>_fetch<mode>): Use atomic_mem_operand_1. Don't use
40271 force_reg on the memory address.
40272 (atomic_fetch_<fetchop_name>si_hard, atomic_fetch_notsi_hard,
40273 atomic_fetch_nandsi_hard, atomic_<fetchop_name>_fetchsi_hard,
40274 atomic_not_fetchsi_hard, atomic_nand_fetchsi_hard): Use
40275 atomic_mem_operand_1 predicate and Sra constraint.
40276 (atomic_fetch_<fetchop_name><mode>_hard): Copy to
40277 atomic_fetch_<fetchop_name><mode>_hard_1. Convert to insn_and_split.
40278 Use atomic_mem_operand_1 predicate.
40279 (atomic_<fetchop_name><mode>_hard): Copy to
40280 atomic_<fetchop_name><mode>_hard_1. Convert to insn_and_split.
40281 Use atomic_mem_operand_1 predicate.
40282 (atomic_fetch_nand<mode>_hard): Copy to atomic_fetch_nand<mode>_hard_1.
40283 Convert to insn_and_split. Use atomic_mem_operand_1 predicate.
40284 (atomic_nand<mode>_hard): Copy to atomic_nand<mode>_hard_1. Convert to
40285 insn_and_split. Use atomic_mem_operand_1 predicate.
40286 (atomic_<fetchop_name>_fetch<mode>_hard): Copy to
40287 atomic_<fetchop_name>_fetch<mode>_hard_1. Convert to insn_and_split.
40288 Use atomic_mem_operand_1 predicate.
40289 (atomic_nand_fetch<mode>_hard): Copy to atomic_nand_fetch<mode>_hard_1.
40290 Convert to insn_and_split. Use atomic_mem_operand_1 predicate.
40291 (atomic_fetch_not<mode>_hard, atomic_not_fetch<mode>_hard): Replace mems
40292 in generated insn with original mem operand before emitting the insn.
40293 (atomic_fetch_<fetchop_name><mode>_soft_gusa,
40294 atomic_fetch_not<mode>_soft_gusa, atomic_fetch_nand<mode>_soft_gusa,
40295 atomic_<fetchop_name>_fetch<mode>_soft_gusa,
40296 atomic_not_fetch<mode>_soft_gusa, atomic_nand_fetch<mode>_soft_gusa):
40297 Use atomic_mem_operand_1 predicate and AraAdd constraints.
40298 (atomic_fetch_<fetchop_name><mode>_soft_tcb,
40299 atomic_<fetchop_name><mode>_soft_tcb, atomic_fetch_not<mode>_soft_tcb,
40300 atomic_not<mode>_soft_tcb, atomic_fetch_<fetchop_name><mode>_soft_imask,
40301 atomic_fetch_not<mode>_soft_imask, atomic_fetch_nand<mode>_soft_tcb,
40302 atomic_nand<mode>_soft_tcb, atomic_fetch_nand<mode>_soft_imask,
40303 atomic_<fetchop_name>_fetch<mode>_soft_tcb,
40304 atomic_not_fetch<mode>_soft_tcb,
40305 atomic_<fetchop_name>_fetch<mode>_soft_imask,
40306 atomic_not_fetch<mode>_soft_imask, atomic_nand_fetch<mode>,
40307 atomic_nand_fetch<mode>_soft_tcb, atomic_nand_fetch<mode>_soft_imask):
40308 Use atomic_mem_operand_1 predicate and SraSdd constraints.
40309
40310 2015-02-10 Uros Bizjak <ubizjak@gmail.com>
40311
40312 * config/alpha/alpha.md (reload_out<mode>_aligned): Make operands 2
40313 and 3 earlyclobber operands.
40314
40315 2015-02-10 Jan Hubicka <hubicka@ucw.cz>
40316
40317 * common.opt (fstack-reuse): Mark as optimization.
40318
40319 2015-02-10 Jan Hubicka <hubicka@ucw.cz>
40320
40321 PR ipa/64982
40322 * cgraphunit.c (cgraph_node::expand_thunk): Look for stdarg thunks.
40323
40324 2015-02-10 Trevor Saunders <tsaunders@mozilla.com>
40325
40326 PR tree-optimization/64326
40327 * cfghooks.c (make_forwarder_block): Cap frequency of created block.
40328
40329 2015-02-10 Rainer Emrich <rainer@emrich-ebersheim.de>
40330
40331 PR gcov-profile/61889
40332 * gcov-tool.c: Remove wrong #if !defined(_WIN32)
40333
40334 2015-02-10 Richard Biener <rguenther@suse.de>
40335
40336 PR tree-optimization/64995
40337 * tree-ssa-sccvn.c (set_ssa_val_to): Assert that the
40338 value we use is final.
40339 (visit_reference_op_store): Always valueize op.
40340 (visit_use): Properly valueize vuses.
40341
40342 2015-02-10 Richard Biener <rguenther@suse.de>
40343
40344 PR tree-optimization/64909
40345 * tree-vect-loop.c (vect_estimate_min_profitable_iters): Properly
40346 pass a scalar-stmt count estimate to the cost model.
40347 * tree-vect-data-refs.c (vect_peeling_hash_get_lowest_cost): Likewise.
40348
40349 2015-02-10 Alexander Monakov <amonakov@ispras.ru>
40350
40351 * doc/invoke.texi (-fvar-tracking-assignments): Clarify that VTA is
40352 enabled by default together with var-tracking.
40353
40354 2015-02-10 Nick Clifton <nickc@redhat.com>
40355
40356 * config/rl78/rl78.c: Remove DIV attribute code accidentally
40357 included in previous rl78 commit.
40358
40359 2015-02-10 Richard Biener <rguenther@suse.de>
40360
40361 * tree-streamer.h (streamer_read_tree_bitfields): Adjust.
40362 * tree-streamer-in.c (streamer_read_tree_bitfields): Do not
40363 return the bitpack.
40364
40365 2015-02-09 Trevor Saunders <tsaunders@mozilla.com>
40366
40367 PR gcov-profile/61889
40368 * config.in: regenerate.
40369 * configure.in: Likewise.
40370 * configure.ac: Check for ftw.h.
40371 * gcov-tool.c: Check for ftw.h before using nftw.
40372
40373 2015-02-09 Trevor Saunders <tsaunders@mozilla.com>
40374
40375 PR lto/64076
40376 * ipa-visibility.c (update_visibility_by_resolution_info): Only
40377 assert when not in lto mode.
40378
40379 2015-02-09 Zhouyi Zhou <yizhouzhou@ict.ac.cn>
40380
40381 * ira-color.c (setup_left_conflict_sizes_p): Simplify
40382 initialization/assignment of conflict_size.
40383
40384 2015-02-09 Jan Hubicka <hubicka@ucw.cz>
40385
40386 PR ipa/64978
40387 * ipa-cp.c (gather_caller_stats): Skip thunks.
40388 (propagate_constants_topo): Skip aliases.
40389
40390 2015-02-09 Kaz Kojima <kkojima@gcc.gnu.org>
40391
40392 PR target/64761
40393 * config/sh/sh.c (sh_option_override): Don't change
40394 -freorder-blocks-and-partition to -freorder-blocks even when
40395 unwinding is enabled.
40396 (sh_can_follow_jump): Return false if the followee jump is
40397 a crossing jump when -freorder-blocks-and-partition is specified.
40398 * config/sh/sh.md (*jump_compact_crossing): New insn.
40399
40400 2015-02-09 Joern Rennecke <joern.rennecke@embecosm.com>
40401 Kaz Kojima <kkojima@gcc.gnu.org>
40402
40403 PR target/64761
40404 * config/sh/sh-protos.h (sh_can_redirect_branch): Don't declare.
40405 * config/sh/sh.c (TARGET_CAN_FOLLOW_JUMP): Redefine.
40406 (sh_can_redirect_branch): Rename to ...
40407 (sh_can_follow_jump): ... this. Constify argument types.
40408 * config/sh/sh.h (MD_CAN_REDIRECT_BRANCH): Don't define.
40409 * doc/tm.texi.in (MD_CAN_REDIRECT_BRANCH): Remove documentation.
40410 * reorg.c (steal_delay_list_from_target): Use targetm.can_follow_jump.
40411 * doc/tm.texi: Regenerate.
40412
40413 2015-02-09 Jakub Jelinek <jakub@redhat.com>
40414
40415 PR sanitizer/64981
40416 * builtins.c (expand_builtin): Call targetm.expand_builtin
40417 for BUILT_IN_MD builtins regardless of asan_intercepted_p.
40418
40419 2015-02-08 Jan Hubicka <hubicka@ucw.cz>
40420
40421 PR ipa/61548
40422 * tree-emutls.c (ipa_lower_emutls): Avoid duplicates in TLS_VARS.
40423
40424 2015-02-08 Jan Hubicka <hubicka@ucw.cz>
40425
40426 PR ipa/63566
40427 * ipa-icf.c (set_local): New function.
40428 (sem_function::merge): Use it.
40429
40430 2015-02-08 Jan Hubicka <hubicka@ucw.cz>
40431
40432 * ipa-devirt.c (odr_types_equivalent_p): Fix formating.
40433 (add_type_duplicate): Fix comparison of BINFOs.
40434
40435 2015-02-08 Jan Hubicka <hubicka@ucw.cz>
40436
40437 * ipa-polymorphic-call.c (ipa_polymorphic_call_context): Avoid ICE
40438 on getting VOID pointer.
40439
40440 2015-02-09 Jakub Jelinek <jakub@redhat.com>
40441
40442 PR target/64979
40443 * tree-stdarg.c (pass_stdarg::execute): Scan phi node args for
40444 va_list escapes.
40445
40446 2015-02-09 Richard Biener <rguenther@suse.de>
40447
40448 * genmatch.c (replace_id): Copy expr_type.
40449
40450 2015-02-09 Richard Biener <rguenther@suse.de>
40451
40452 * tree-streamer.h (streamer_pack_tree_bitfields): Remove.
40453 (streamer_write_tree_bitfields): Declare.
40454 * tree-streamer-in.c (unpack_ts_base_value_fields): Inline,
40455 properly unpack padding.
40456 (unpack_value_fields): Inline ...
40457 (streamer_read_tree_bitfields): ... here.
40458 * tree-streamer-out.c (pack_ts_base_value_fields): Inline
40459 and properly add padding bits.
40460 (streamer_pack_tree_bitfields): Fold into ...
40461 (streamer_write_tree_bitfields): ... this new function,
40462 exposing the bitpack object.
40463 * lto-streamer-out.c (lto_write_tree_1): Call
40464 streamer_write_tree_bitfields.
40465
40466 2015-02-09 Richard Biener <rguenther@suse.de>
40467
40468 PR tree-optimization/54000
40469 * tree-ssa-looo-ivopts.c: Include tree-vectorizer.h.
40470 (struct ivopts_data): Add loop_loc member.
40471 (tree_ssa_iv_optimize_loop): Dump loop location.
40472 (create_new_ivs): Likewise, also dump number of IVs generated.
40473
40474 2015-02-09 Martin Liska <mliska@suse.cz>
40475
40476 * ipa-icf.c (sem_item_optimizer::register_hooks): Register hooks
40477 just if not yet registered.
40478 (ipa_icf_generate_summary): Register callgraph hooks.
40479
40480 2015-02-08 Andrew Pinski <apinski@cavium.com>
40481
40482 * config/aarch64/aarch64.c (gty_dummy): Delete.
40483
40484 2015-02-08 Jan Hubicka <hubicka@ucw.cz>
40485
40486 PR ipa/63566
40487 * ipa-visibility.c (cgraph_node::non_local_p): Accept aliases.
40488 (cgraph_node::local_p): Remove thunk related FIXME.
40489
40490 2015-02-08 Jan Hubicka <hubicka@ucw.cz>
40491
40492 PR ipa/63566
40493 * i386.c (ix86_function_regparm): Look through aliases to see if callee
40494 is local and optimized.
40495 (ix86_function_sseregparm): Likewise; also use target's SSE math
40496 settings; error out instead of silently generating wrong code
40497 on mismatches.
40498 (init_cumulative_args): Look through aliases.
40499
40500 2015-02-08 Jan Hubicka <hubicka@ucw.cz>
40501
40502 PR ipa/63566
40503 * ipa-split.c (execute_split_functions): Split if function has aliases.
40504
40505 2015-02-08 Jan Hubicka <hubicka@ucw.cz>
40506
40507 PR ipa/63566
40508 * cgraphunit.c (cgraph_node::analyze): Be sure target of thunk is
40509 aliases before trying to expand it.
40510 (cgraph_node::expand_thunk): Fix formating.
40511
40512 2015-02-07 Sandra Loosemore <sandra@codesourcery.com>
40513
40514 * doc/extend.texi (Function Attributes [naked]): Copy-edit.
40515 (Using Assembly Language with C): Expand introduction.
40516 (Basic Asm): Copy-edit. Add more information about uses of
40517 basic asm.
40518 (Extended Asm): Copy-edit. Document new escape syntax and
40519 %l[label] syntax.
40520 (Global Reg Vars): Copy-edit.
40521 (Local Reg Vars): Likewise.
40522
40523 2015-02-06 David Edelsohn <dje.gcc@gmail.com>
40524
40525 PR debug/2714
40526 PR bootstrap/64256
40527 * xcoffout.h (DBX_CONTIN_LENGTH): Define as 16384.
40528 (DBX_CONTIN_CHAR): Define.
40529
40530 2015-02-06 Sebastian Pop <s.pop@samsung.com>
40531 Brian Rzycki <b.rzycki@samsung.com>
40532
40533 PR tree-optimization/64878
40534 * tree-ssa-threadedge.c: Include tree-ssa-loop.h.
40535 (fsm_find_control_statement_thread_paths): Add parameter seen_loop_phi.
40536 Stop recursion at loop phi nodes after having visited a loop phi node.
40537
40538 2015-02-06 Jakub Jelinek <jakub@redhat.com>
40539
40540 * toplev.c (process_options): Change flag_ipa_ra before creating
40541 optimization_{default,current}_node.
40542
40543 PR ipa/64896
40544 * cgraphunit.c (cgraph_node::expand_thunk): If
40545 restype is not is_gimple_reg_type nor the thunk_fndecl
40546 returns aggregate_value_p, set restmp to a temporary variable
40547 instead of resdecl.
40548
40549 2015-02-06 Vladimir Makarov <vmakarov@redhat.com>
40550
40551 * lra.c (lra_emit_add): Fix a typo in using disp instead of base.
40552
40553 2015-02-06 Michael Meissner <meissner@linux.vnet.ibm.com>
40554
40555 PR target/64205
40556 * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Do not
40557 add a general secondary reload handler for SDmode, unless we have
40558 both read/write support for SDmode.
40559
40560 2015-02-06 Jakub Jelinek <jakub@redhat.com>
40561
40562 PR middle-end/64937
40563 * dwarf2out.c (set_block_abstract_flags, set_decl_abstract_flags):
40564 Replace setting argument with abstract_vec, always set BLOCK_ABSTRACT
40565 or DECL_ABSTRACT_P flags to 1 rather than to setting, and if it wasn't
40566 1 before, push it to abstract_vec.
40567 (dwarf2out_abstract_function): Adjust caller. Don't call
40568 set_decl_abstract_flags second time, instead clear BLOCK_ABSTRACT or
40569 DECL_ABSTRACT_P flags for all abstract_vec elts.
40570
40571 2015-02-06 Renlin Li <renlin.li@arm.com>
40572
40573 * tree-ssa-forwprop.c (execute): Keep location info while rewrite
40574 complex gimple.
40575 * tree-ssa.c (execute_update_addresses_taken): Likewise.
40576
40577 2015-02-06 Jeff Law <law@redhat.com>
40578
40579 PR target/64889
40580 * config/h8300/h8300.c (push): New argument "in_prologue".
40581 Pass "in_prologue" along to "F".
40582 (h8300_push_pop): Corresponding changes.
40583 (h8300_expand_prologue): Likewise.
40584 (h8300_swap_into_er6): Likewise. Do not set RTX_FRAME_RELATED_P.
40585
40586 2015-02-06 Jakub Jelinek <jakub@redhat.com>
40587
40588 PR rtl-optimization/64957
40589 PR debug/64817
40590 * simplify-rtx.c (simplify_binary_operation_1): Use ~cval for
40591 IOR rather than for AND.
40592
40593 2015-02-06 Eric Botcazou <ebotcazou@adacore.com>
40594
40595 PR target/62631
40596 * tree-ssa-loop-ivopts.c (get_shiftadd_cost): Use the mininum of costs
40597 of shift-add and (add + shift) operations. Rename local variable.
40598
40599 2015-02-05 Jeff Law <law@redhat.com>
40600
40601 PR target/17306
40602 * config/h8300/constraints.md (U): Correctly dectect
40603 "eightbit_data" memory addresses.
40604 * config/h8300/h8300.c (eightbit_constant_address_p): Also
40605 handle (const (plus (symbol_ref (x)))) where x is declared
40606 as an 8-bit data memory address.
40607 * config/h8300/h8300.md (call, call_value): Correctly detect
40608 "funcvec" functions.
40609
40610 PR target/43264
40611 * config/h8300/h8300.c (get_shift_alg): Fix ASHIFTRT by
40612 24 to 28 bits for the H8/300.
40613
40614 2015-02-06 Alan Modra <amodra@gmail.com>
40615
40616 PR target/64876
40617 * config/rs6000/rs6000.c (chain_already_loaded): New function.
40618 (rs6000_call_aix): Use it.
40619
40620 2015-02-05 Jan Hubicka <hubicka@ucw.cz>
40621
40622 * ipa-cp.c (ipa_value_from_jfunc, ipa_context_from_jfunc): Add bounds
40623 check.
40624
40625 2015-02-05 Joern Rennecke <joern.rennecke@embecosm.com>
40626
40627 * config/h8300/constraints.md ("U" constraint): Use strict
40628 variant of REG_OK_FOR_BASE_P after reload has started.
40629
40630 2015-02-04 Mantas Mikaitis <mantas.mikaitis@arm.com>
40631
40632 * config/arm/arm.h (TARGET_NEON_FP): Removed conditional definition,
40633 define to zero if !TARGET_NEON.
40634 (TARGET_ARM_FP): Added !TARGET_SOFT_FLOAT into conditional definition.
40635
40636 2015-02-04 Jan Hubicka <hubicka@ucw.cz>
40637 Trevor Saunders <tsaunders@mozilla.com>
40638
40639 PR ipa/61548
40640 * tree-emultls.c (new_emutls_decl): Resolve alias after creating it.
40641
40642 2015-02-04 Jan Hubicka <hubicka@ucw.cz>
40643
40644 PR ipa/61548
40645 * ipa.c (symbol_table::remove_unreachable_nodes): Fix ordering issue
40646 when removing varpool nodes.
40647
40648 2015-02-04 Jan Hubicka <hubicka@ucw.cz>
40649
40650 PR ipa/61548
40651 * varpool.c (varpool_node::remove): Fix order of variables.
40652
40653 2015-02-04 Jan Hubicka <hubicka@ucw.cz>
40654
40655 PR ipa/64686
40656 * ipa-inline.c (inline_small_functions): Fix ordering issue between
40657 speculation resolution and key updates.
40658
40659 2015-02-04 Jan Hubicka <hubicka@ucw.cz>
40660
40661 * ipa-prop.c (update_indirect_edges_after_inlining): By more careful
40662 about not letting any speculative edges unupdated.
40663
40664 2015-02-04 Jan Hubicka <hubicka@ucw.cz>
40665
40666 PR gcov/64123
40667 * gcov-io.c (gcov_var): Export.
40668
40669 2015-02-04 Jan Hubicka <hubicka@ucw.cz>
40670
40671 PR middle-end/64922
40672 * ipa-prop.c (update_indirect_edges_after_inlining): Correctly update
40673 edges that become speculative.
40674
40675 2015-02-04 Jakub Jelinek <jakub@redhat.com>
40676
40677 * dwarf2out.c (is_fortran): Also return true for DW_LANG_Fortran03
40678 or DW_LANG_Fortran08.
40679 (lower_bound_default): Return 1 for DW_LANG_Fortran03 or
40680 DW_LANG_Fortran08.
40681 (gen_compile_unit_die): Handle "GNU Fortran2003" and
40682 "GNU Fortran2008" language strings.
40683 * dbxout.c (get_lang_number): Use lang_GNU_Fortran.
40684 * langhooks.h (lang_GNU_Fortran): New prototype.
40685 * langhooks.c (lang_GNU_Fortran): New function.
40686 * config/rs6000/rs6000.c (rs6000_output_function_epilogue): Use
40687 lang_GNU_Fortran.
40688
40689 2015-02-04 Eric Botcazou <ebotcazou@adacore.com>
40690
40691 * config/sparc/sparc.c (RTX_OK_FOR_OFFSET_P): Fix off-by-one error.
40692 (RTX_OK_FOR_OLO10_P): Likewise.
40693
40694 2015-02-04 Eric Botcazou <ebotcazou@adacore.com>
40695
40696 * tree-ssa-loop-ivopts.c (get_address_cost): Use right mode for offset.
40697
40698 2015-02-04 Jan Hubicka <hubicka@ucw.cz>
40699
40700 PR middle-end/64922
40701 * gimple.c: Include gimple-ssa.h.
40702 (maybe_remove_unused_call_args): New function.
40703 * gimple.h (maybe_remove_unused_call_args): Declare.
40704 * cgraph.c (cgraph_edge::redirect_call_stmt_to_callee): Use it.
40705 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children): Likewise.
40706 * gimple-fold.c (gimple_fold_call): Likewise.
40707
40708 2015-02-04 H.J. Lu <hongjiu.lu@intel.com>
40709
40710 PR rtl-optimization/64905
40711 * lra-eliminations.c (setup_can_eliminate): Clear hard frame
40712 pointer alignment if it isn't needed.
40713
40714 2015-02-04 Matthew Wahab <matthew.wahab@arm.com>
40715
40716 * config/aarch64/aarch64-cores.def: Add cortex-a72 and
40717 cortex-a72.cortex-a53.
40718 * config/aarch64/aarch64-tune.md: Regenerate.
40719 * doc/invoke.texi (AArch64 Options/-mtune): Add "cortex-a72".
40720
40721 2015-02-04 Nick Clifton <nickc@redhat.com>
40722
40723 * config/rl78/rl78.c (rl78_note_reg_set): Note the use of REGs
40724 inside a MEM.
40725
40726 2015-02-04 Jakub Jelinek <jakub@redhat.com>
40727
40728 * builtins.def (DEF_BUILTIN_CHKP): Define if not defined.
40729 (DEF_LIB_BUILTIN_CHKP, DEF_EXT_LIB_BUILTIN_CHKP): Redefine.
40730 (DEF_CHKP_BUILTIN): Define using DEF_BUILTIN_CHKP instead
40731 of DEF_BUILTIN.
40732 (BUILT_IN_MEMCPY, BUILT_IN_MEMMOVE, BUILT_IN_MEMSET, BUILT_IN_STRCAT,
40733 BUILT_IN_STRCHR, BUILT_IN_STRCPY, BUILT_IN_STRLEN): Use
40734 DEF_LIB_BUILTIN_CHKP macro instead of DEF_LIB_BUILTIN.
40735 (BUILT_IN_MEMCPY_CHK, BUILT_IN_MEMMOVE_CHK, BUILT_IN_MEMPCPY_CHK,
40736 BUILT_IN_MEMPCPY, BUILT_IN_MEMSET_CHK, BUILT_IN_STPCPY_CHK,
40737 BUILT_IN_STPCPY, BUILT_IN_STRCAT_CHK, BUILT_IN_STRCPY_CHK): Use
40738 DEF_EXT_LIB_BUILTIN_CHKP macro instead of DEF_EXT_LIB_BUILTIN.
40739 * tree-core.h (enum built_in_function): In between
40740 BEGIN_CHKP_BUILTINS and END_CHKP_BUILTINS only define enum values
40741 for builtins that use DEF_BUILTIN_CHKP macro.
40742
40743 2015-02-04 Alexandre Oliva <aoliva@redhat.com>
40744
40745 PR debug/64817
40746 * cfgexpand.c (expand_debug_expr): Compute unsignedp from
40747 operands for tcc_comparison exprs. Fix typos.
40748
40749 PR debug/64817
40750 * simplify-rtx.c (simplify_binary_operation_1): Simplify one
40751 of two XORs that have an intervening AND or IOR.
40752
40753 PR debug/64817
40754 * simplify-rtx.c (simplify_binary_operation_1): Rewrite
40755 simplification of XOR of AND to not allocate new rtx before
40756 committing to a simplification.
40757
40758 2015-02-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
40759
40760 * config/aarch64/aarch64-ldpstp.md: Use std::swap instead of
40761 manual swaps in all peepholes.
40762
40763 2015-02-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
40764
40765 * config/aarch64/aarch64.c (aarch64_evpc_ext): Use std::swap instead
40766 of manual swapping implementation.
40767 (aarch64_expand_vec_perm_const_1): Likewise.
40768
40769 2015-02-04 James Greenhalgh <james.greenhalgh@arm.com>
40770
40771 * config/aarch64/aarch64.c (NAMED_PARAM): Delete it.
40772 (generic_addrcost_table): Remove NAMED_PARAM.
40773 (cortexa57_addrcost_table): Likewise.
40774 (xgene1_addrcost_table): Likewise.
40775 (generic_regmove_table): Likewise.
40776 (cortexa53_regmove_table): Likewise.
40777 (xgene1_regmove_table): Likewise.
40778 (generic_vector_table): Likewise.
40779 (cortexa57_vector_table): Likewise.
40780 (xgene1_vector_table): Likewise.
40781 (generic_tunings): Likewise.
40782 (cortexa53_tunings): Likewise.
40783 (cortexa57_tunings): Likewise.
40784 (xgene1_tunings): Likewise.
40785
40786 2015-02-04 Matthew Wahab <matthew.wahab@arm.com>
40787
40788 * config/arm/arm-cores.def: Add cortex-a72 and
40789 cortex-a72.cortex-a53.
40790 * config/arm/bpabi.h (BE8_LINK_SPEC): Likewise.
40791 * config/arm/t-aprofile (MULTILIB_MATCHES): Likewise.
40792 * config/arm/arm-tune.md: Regenerate.
40793 * config/arm/arm-tables.opt: Add entries for "cortex-a72" and
40794 "cortex-a72.cortex-a53".
40795 * doc/invoke.texi (ARM Options/-mtune): Likewise.
40796
40797 2015-02-04 Nick Clifton <nickc@redhat.com>
40798
40799 PR target/64408
40800 * config/fr30/predicates.md (di_operand): Add SUBREG to the list
40801 of accepted codes.
40802 (nonimmediate_di_operand): Likewise.
40803
40804 * config/msp430/msp430.c (msp430_use_f5_series_hwmult): Add more
40805 prefixes of known F5 using MSP430 MCUs.
40806
40807 2015-02-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
40808
40809 * config/aarch64/aarch64-simd-builtins.def (sqrt): Use BUILTIN_VDQF_DF.
40810 * config/aarch64/arm_neon.h (vsqrt_f64): Use __builtin_aarch64_sqrtdf
40811 instead of __builtin_sqrt.
40812
40813 2015-02-04 Ilya Enkovich <ilya.enkovich@intel.com>
40814
40815 * varasm.c (do_assemble_alias): Follow transparent alias
40816 chain for target.
40817 (default_assemble_visibility): Follow transparent alias
40818 chain for decl name.
40819
40820 2015-02-04 Thomas Preud'homme <thomas.preudhomme@arm.com>
40821
40822 PR middle-end/62103
40823 * tree-ssa-sccvn.c (fully_constant_vn_reference_p): Use TYPE_PRECISION
40824 to compute size of referenced value in the constant case.
40825
40826 2015-02-03 Jakub Jelinek <jakub@redhat.com>
40827
40828 PR rtl-optimization/64756
40829 * cse.c (invalidate_dest): New function.
40830 (cse_insn): Use it. If dest != SET_DEST (sets[i].rtl) and
40831 HASH (SET_DEST (sets[i].rtl), mode) computation sets do_not_record,
40832 invalidate and do not record it.
40833
40834 2015-02-03 Oleg Endo <olegendo@gcc.gnu.org>
40835
40836 PR target/64660
40837 * config/sh/sync.md (atomic_<fetchop_name><mode>_hard,
40838 atomic_not<mode>_hard, atomic_<fetchop_name><mode>_soft_tcb,
40839 atomic_not<mode>_soft_tcb, atomic_nand<mode>_hard,
40840 atomic_nand<mode>_soft_tcb): New insns.
40841 (atomic_fetch_<fetchop_name>si_hard): Convert to insn_and_split.
40842 Split into atomic_<fetchop_name>_fetchsi_hard if operands[0] is unused.
40843 (define_insn "atomic_fetch_notsi_hard): Convert to insn_and_split.
40844 Split into atomic_not_fetchsi_hard if operands[0] is unused.
40845 (atomic_fetch_<fetchop_name><mode>_hard): Convert to insn_and_split.
40846 Split into atomic_<fetchop_name><mode>_hard if operands[0] is unused.
40847 (atomic_fetch_not<mode>_hard): Convert to insn_and_split. Split into
40848 atomic_not<mode>_hard if operands[0] is unused.
40849 (atomic_fetch_<fetchop_name><mode>_soft_gusa): Convert to
40850 insn_and_split. Split into atomic_<fetchop_name>_fetch<mode>_soft_gusa
40851 if operands[0] is unused.
40852 (atomic_fetch_not<mode>_soft_gusa): Convert to insn_and_split. Split
40853 into atomic_not_fetch<mode>_soft_gusa if operands[0] is unused.
40854 (atomic_fetch_<fetchop_name><mode>_soft_tcb): Convert to insn_and_split.
40855 Split into atomic_<fetchop_name><mode>_soft_tcb if operands[0] is
40856 unused.
40857 (atomic_fetch_not<mode>_soft_tcb): Convert to insn_and_split. Split
40858 into atomic_not<mode>_soft_tcb if operands[0] is unused.
40859 (atomic_fetch_<fetchop_name><mode>_soft_imask): Convert to
40860 insn_and_split. Split into atomic_<fetchop_name>_fetch<mode>_soft_imask
40861 if operands[0] is unused.
40862 (atomic_fetch_not<mode>_soft_imask): Convert to insn_and_split. Split
40863 into atomic_not_fetch<mode>_soft_imask is operands[0] is unused.
40864 (atomic_fetch_nandsi_hard): Convert to insn_and_split. Split into
40865 atomic_nand_fetchsi_hard if operands[0] is unused.
40866 (atomic_fetch_nand<mode>_hard): Convert to insn_and_split. Split into
40867 atomic_nand<mode>_hard if operands[0] is unused.
40868 (atomic_fetch_nand<mode>_soft_gusa): Convert to insn_and_split. Split
40869 into atomic_nand_fetch<mode>_soft_gusa if operands[0] is unused.
40870 (atomic_fetch_nand<mode>_soft_tcb): Convert to insn_and_split. Split
40871 into atomic_nand<mode>_soft_tcb if operands[0] is unused.
40872 (atomic_fetch_nand<mode>_soft_imask): Convert to insn_and_split. Split
40873 into atomic_nand_fetch<mode>_soft_imask if operands[0] is unused.
40874 (atomic_<fetchop_name>_fetch<mode>_hard): Convert to insn_and_split.
40875 Split into atomic_<fetchop_name><mode>_hard if operands[0] is unused.
40876 (atomic_not_fetch<mode>_hard): Convert to insn_and_split. Split into
40877 atomic_not<mode>_hard if operands[0] is unused.
40878 (atomic_<fetchop_name>_fetch<mode>_soft_tcb): Convert to insn_and_split.
40879 Split into atomic_<fetchop_name><mode>_soft_tcb if operands[0] is
40880 unused.
40881 (atomic_not_fetch<mode>_soft_tcb): Convert to insn_and_split. Split
40882 into atomic_not<mode>_soft_tcb if operands[0] is unused.
40883 (atomic_nand_fetch<mode>_hard): Convert to insn_and_split. Split into
40884 atomic_nand<mode>_hard if operands[0] is unused.
40885 (atomic_nand_fetch<mode>_soft_tcb): Convert to insn_and_split. Split
40886 into atomic_nand<mode>_soft_tcb if operands[0] is unused.
40887
40888 2015-02-03 David Malcolm <dmalcolm@redhat.com>
40889
40890 PR jit/64810
40891 * Makefile.in (GCC_OBJS): Add gcc-main.o.
40892 * gcc-main.c: New file, containing "main" taken from gcc.c.
40893 * gcc.c (do_self_spec): Free decoded_options.
40894 (class driver): Move declaration to gcc.h.
40895 (main): Move declaration and implementation to new file
40896 gcc-main.c.
40897 (driver_get_configure_time_options): New function.
40898 * gcc.h (class driver): Move this declaration here, from
40899 gcc.c.
40900 (driver_get_configure_time_options): New declaration.
40901
40902 2015-02-03 Jan Hubicka <hubicka@ucw.cz>
40903
40904 * ipa-inline-analysis.c (simple_edge_hints): Fix check for
40905 cross-module inlining.
40906 * cgraph.h (cgraph_node): Add flag merged.
40907 * ipa-icf.c (sem_function::merge): Maintain it.
40908
40909 2015-02-03 Richard Sandiford <richard.sandiford@arm.com>
40910
40911 * config/arm/arm.c (thumb2_reorg): Test UNARY_P and BINARY_P
40912 instead of OBJECT_P.
40913
40914 2015-02-03 Eric Botcazou <ebotcazou@adacore.com>
40915
40916 PR target/62631
40917 * config/sparc/sparc.h (TARGET_HARD_MUL): Remove TARGET_V8PLUS.
40918 (TARGET_HARD_MUL32): Rewrite based on TARGET_HARD_MUL.
40919 * config/sparc/sparc.c (sparc_rtx_costs) <MULT>: Return costs based on
40920 int_mulX for integers in 64-bit mode if TARGET_HARD_MUL is not set.
40921
40922 2015-02-03 Jakub Jelinek <jakub@redhat.com>
40923
40924 PR other/63504
40925 * combine.c (reg_n_sets_max): New variable.
40926 (can_change_dest_mode, reg_nonzero_bits_for_combine,
40927 reg_num_sign_bit_copies_for_combine, get_last_value_validate,
40928 get_last_value): Use REG_N_SETS only on pseudos < reg_n_sets_max.
40929 (try_combine): Use INC_REG_N_SETS only on pseudos < reg_n_sets_max.
40930 (rest_of_handle_combine): Initialize reg_n_sets_max.
40931
40932 2015-02-02 Jan Hubicka <hubicka@ucw.cz>
40933
40934 * ipa-inline.c (early_inliner): Skip inlining only in always_inlined;
40935 if some always_inline was inlined, apply changes before inlining
40936 heuristically.
40937
40938 2015-02-02 David Malcolm <dmalcolm@redhat.com>
40939
40940 PR jit/64810
40941 * config/arm/arm.c (arm_option_override): Set
40942 arm_selected_arch/cpu/tune to NULL on entry.
40943
40944 2015-02-02 Tejas Belagod <tejas.belagod@arm.com>
40945 Andrew Pinski <pinskia@gcc.gnu.org>
40946 Jakub Jelinek <jakub@gcc.gnu.org>
40947
40948 PR target/64231
40949 * config/aarch64/aarch64.c (aarch64_classify_symbol): Fix large
40950 integer typing for small model. Use IN_RANGE.
40951
40952 2015-02-02 Richard Biener <rguenther@suse.de>
40953
40954 * tree-ssa-ccp.c (valueize_op_1): Always allow valueizing default-defs.
40955 * tree-vrp.c (vrp_valueize_1): Likewise.
40956
40957 2015-02-02 Alan Modra <amodra@gmail.com>
40958
40959 * config/rs6000/rs6000.c (rs6000_call_aix): Use unspec rather
40960 than mem for toc_restore.
40961 * config/rs6000/rs6000.md (UNSPEC_TOCSLOT): Define.
40962 (call_indirect_aix, call_value_indirect_aix): Adjust to suit.
40963 (call_indirect_elfv2, call_value_indirect_elfv2): Likewise.
40964
40965 2015-02-01 David Edelsohn <dje.gcc@gmail.com>
40966
40967 PR target/64047
40968 * config/rs6000/rs6000.c (rs6000_set_current_function): Handle
40969 explicit default options.
40970
40971 2015-02-01 Jan Hubicka <hubicka@ucw.cz>
40972
40973 PR ipa/64872
40974 * ipa-utils.c (ipa_merge_profiles): Add release argument.
40975 * ipa-icf.c (sem_function::merge): Do not release body when merging.
40976 * ipa-utils.h (ipa_merge_profiles): Update prototype.
40977
40978 2015-02-01 Jakub Jelinek <jakub@redhat.com>
40979
40980 PR debug/64817
40981 * cfgexpand.c (deep_ter_debug_map): New variable.
40982 (avoid_deep_ter_for_debug): New function.
40983 (expand_debug_expr): If TERed SSA_NAME is in
40984 deep_ter_debug_map, use the corresponding DEBUG_EXPR_DECL
40985 instead of trying to expand SSA_NAME's def stmt.
40986 (expand_debug_locations): When expanding debug bind
40987 of a DEBUG_EXPR_DECL to corresponding SSA_NAME,
40988 temporarily remove the DEBUG_EXPR_DECL from deep_ter_debug_map's
40989 value.
40990 (pass_expand::execute): Call avoid_deep_ter_for_debug on
40991 all debug bind stmts. Delete deep_ter_debug_map after
40992 expand_debug_location if non-NULL and clear it.
40993
40994 2015-02-01 Oleg Endo <olegendo@gcc.gnu.org>
40995
40996 PR target/64851
40997 * config/sh/sync.md (atomic_fetch_notsi_hard,
40998 atomic_fetch_not<mode>_hard, atomic_fetch_not<mode>_soft_gusa,
40999 atomic_fetch_not<mode>_soft_tcb, atomic_fetch_not<mode>_soft_imask,
41000 atomic_not_fetchsi_hard, atomic_not_fetch<mode>_hard,
41001 atomic_not_fetch<mode>_soft_gusa, atomic_not_fetch<mode>_soft_tcb,
41002 atomic_not_fetch<mode>_soft_imask): New insns.
41003
41004 2015-02-01 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
41005
41006 * haifa-sched.c (INSN_RFS_DEBUG_ORIG_ORDER): New access macro.
41007 (rank_for_schedule_debug): Split from ...
41008 (rank_for_schedule): ... this.
41009 (ready_sort): Sort DEBUG_INSNs separately from normal INSNs.
41010 * sched-int.h (struct _haifa_insn_data): New field rfs_debug_orig_order.
41011
41012 2015-01-31 Sandra Loosemore <sandra@codesourcery.com>
41013
41014 * doc/md.texi (Machine Constraints): Alphabetize table by target.
41015 * doc/extend.texi (x86 Variable Attributes): Move section to
41016 correct alphabetization after renaming.
41017 (x86 Type Attributes): Likewise.
41018 (Target Builtins): Re-alphabetize menu.
41019 (x86 Built-in Functions): Move section to correct alphabetization
41020 after renaming.
41021 (x86 transactional memory intrinsics): Likewise.
41022 * doc/invoke.texi (Option Summary): Re-alphabetize x86 Options
41023 and x86 Windows Options in table and menu.
41024 (x86 Options): Move section to correct alphabetization after
41025 renaming.
41026 (x86 Windows Options): Likewise.
41027
41028 2015-01-31 Sandra Loosemore <sandra@codesourcery.com>
41029
41030 * doc/extend.texi: Use "x86", "x86-32", and "x86-64" as the
41031 preferred names of the architecture and its 32- and 64-bit
41032 variants.
41033 * doc/invoke.texi: Likewise.
41034 * doc/md.texi: Likewise.
41035
41036 2015-01-31 Uros Bizjak <ubizjak@gmail.com>
41037
41038 PR target/64882
41039 * config/i386/predicates.md (address_no_seg_operand): Reject
41040 non-CONST_INT_P operands in invalid mode.
41041
41042 2015-01-31 Uros Bizjak <ubizjak@gmail.com>
41043
41044 * config/i386/i386.md (*prefetch_prefetchw1): Remove mode of
41045 address_operand 0. Rename from *prefetch_prefetchwt1_<mode>.
41046 * config/i386/predicates.md (address_no_seg_operand): Call
41047 address_operand with VOIDmode.
41048 (vsib_address_operand): Ditto.
41049 (address_mpx_no_base_operand): Ditto.
41050 (address_mpx_no_index_operand): Ditto.
41051
41052 2015-01-30 Vladimir Makarov <vmakarov@redhat.com>
41053
41054 PR target/64688
41055 * lra-constraints.c (original_subreg_reg_mode): New.
41056 (simplify_operand_subreg): Try to simplify subreg of const. Use
41057 original_subreg_reg_mode for it.
41058 (swap_operands): Update original_subreg_reg_mode.
41059 (curr_insn_transform): Set up original_subreg_reg_mode.
41060
41061 2015-01-30 Vladimir Makarov <vmakarov@redhat.com>
41062
41063 PR target/64617
41064 * lra-constraints.c (prohibited_class_reg_set_mode_p): New
41065 function.
41066 (process_alt_operands): Use it.
41067 (curr_insn_transform): Check the optional reload pseudo class is
41068 ok for the mode.
41069
41070 2015-01-30 Joseph Myers <joseph@codesourcery.com>
41071
41072 * diagnostic.c (fatal_error (const char *, ...)): Remove function.
41073 * diagnostic-core.h (fatal_error (const char *, ...)): Remove
41074 prototype.
41075 * toplev.h (init_asm_output): Update comment on use of
41076 UNKNOWN_LOCATION with fatal_error.
41077 * cgraph.c, collect-utils.c, collect2.c, config/arc/arc.c,
41078 config/arc/arc.md, config/avr/avr.c, config/c6x/c6x.h,
41079 config/darwin.c, config/host-darwin.c, config/i386/host-cygwin.c,
41080 config/i386/intelmic-mkoffload.c, config/nios2/nios2.c,
41081 config/nvptx/mkoffload.c, config/nvptx/nvptx.h,
41082 config/rs6000/host-darwin.c, config/rs6000/rs6000.c,
41083 config/s390/s390.c, gcc.c, gcov-io.h, gcov-tool.c, ggc-common.c,
41084 ggc-page.c, graph.c, ipa-inline-analysis.c, ipa-reference.c,
41085 lto-cgraph.c, lto-section-in.c, lto-streamer-in.c, lto-streamer.c,
41086 lto-wrapper.c, objc/objc-act.c, opts.c, passes.c, plugin.c,
41087 tlink.c, toplev.c, tree-streamer-in.c, varpool.c: All callers of
41088 fatal_error changed to pass input_location as first argument.
41089
41090 2015-01-30 Martin Liska <mliska@suse.cz>
41091
41092 * tree.h: Change GCC_VERSION >= 4004 to GCC_VERSION >= 4006
41093 in #pragma GCC diagnostic guards.
41094
41095 2015-01-30 Richard Biener <rguenther@suse.de>
41096
41097 PR tree-optimization/64829
41098 * tree-vect-patterns.c (vect_handle_widen_op_by_const): Do
41099 not add a widening conversion pattern but hand off extra
41100 widenings to callers.
41101 (vect_recog_widen_mult_pattern): Handle extra widening produced
41102 by vect_handle_widen_op_by_const.
41103 (vect_recog_widen_shift_pattern): Likewise.
41104 (vect_pattern_recog_1): Remove excess vertical space in dumping.
41105 * tree-vect-stmts.c (vect_mark_stmts_to_be_vectorized): Likewise.
41106 (vect_init_vector_1): Likewise.
41107 (vect_get_vec_def_for_operand): Likewise.
41108 (vect_finish_stmt_generation): Likewise.
41109 (vectorizable_load): Likewise.
41110 (vect_analyze_stmt): Likewise.
41111 (vect_is_simple_use): Likewise.
41112
41113 2015-01-29 Jeff Law <law@redhat.com>
41114
41115 * combine.c (try_combine): Fix typo in comment.
41116
41117 2015-01-29 Segher Boessenkool <segher@kernel.crashing.org>
41118
41119 PR target/64580
41120 * config.rs6000/rs6000.c (compute_vrsave_mask): Reverse loop order.
41121 (rs6000_stack_info): Add assert.
41122 (rs6000_output_savres_externs): New function, split off from...
41123 (rs6000_output_function_prologue): ... here. Do not call it for
41124 thunks.
41125
41126 2015-01-29 Jeff Law <law@redhat.com>
41127
41128 PR target/15184
41129 * combine.c (try_combine): If I0 is a memory load and I3 a store
41130 to a related address, increase the "goodness" of doing a 4-insn
41131 combination with I0-I3.
41132 (make_field_assignment): Handle SUBREGs in the ior+and case.
41133
41134 2015-01-29 Yuri Rumyantsev <ysrumyan@gmail.com>
41135
41136 PR tree-optimization/64746
41137 * tree-if-conv.c (mask_exists): New function.
41138 (predicate_mem_writes): Save created mask with given size for further
41139 use.
41140 (stmt_is_root_of_bool_pattern): Remove argument VAR and store to it.
41141 (ifcvt_repair_bool_pattern): Collect all statements that are root
41142 of bool pattern and use iterative algorithm to remove multiple uses
41143 of predicates, display number of required iterations.
41144
41145 2015-01-29 Richard Biener <rguenther@suse.de>
41146
41147 PR tree-optimization/64853
41148 * tree-vrp.c (vrp_valueize_1): Do not return anything if the
41149 stmt will get simulated again.
41150 * tree-ssa-ccp.c (valueize_op_1): Likewise.
41151
41152 2015-01-29 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
41153
41154 * config/arm/arm.c (arm_emit_multi_reg_pop): Simplify definition of
41155 return_in_pc. Remove redundant assignments.
41156 (thumb2_emit_ldrd_pop): Simplify definition of return_in_pc.
41157 (arm_expand_epilogue): Don't compare boolean with true in if condition.
41158
41159 2015-01-29 Uros Bizjak <ubizjak@gmail.com>
41160
41161 * config/i386/i386.c (ix86_mode_after): Make static.
41162
41163 2015-01-29 Richard Biener <rguenther@suse.de>
41164
41165 PR tree-optimization/64844
41166 * tree-vect-loop.c (vect_estimate_min_profitable_iters): Always
41167 dump cost model analysis.
41168 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment):
41169 Do not register adjusted load/store costs here.
41170
41171 2015-01-29 Ilya Enkovich <ilya.enkovich@intel.com>
41172 Uros Bizjak <ubizjak@gmail.com>
41173
41174 * config/i386/i386-protos.h (ix86_use_pseudo_pic_reg): New.
41175 * config/i386/i386.h (PIC_OFFSET_TABLE_REGNUM): Simplify by
41176 using x86_use_pseudo_pic_reg.
41177 * config/i386/i386.c (ix86_conditional_register_usage): Remove
41178 support for fixed PIC register.
41179 (ix86_use_pseudo_pic_reg): Not static any more.
41180
41181 2015-01-29 Ilya Enkovich <ilya.enkovich@intel.com>
41182
41183 PR middle-end/64805
41184 * ipa-inline.c (early_inliner): Rebuild IPA_REF_CHKP reference
41185 to avoid error in cgraph node verification.
41186
41187 2015-01-29 Marek Polacek <polacek@redhat.com>
41188
41189 * doc/standards.texi: Reflect that the default for C is gnu11.
41190
41191 2015-01-29 Kaz Kojima <kkojima@gcc.gnu.org>
41192
41193 PR target/64761
41194 * reorg.c (switch_text_sections_between_p): New function.
41195 (relax_delay_slots): Call it when testing if the jump insn
41196 is removable. Use targetm.can_follow_jump when testing if
41197 the conditional branch can follow an unconditional jump.
41198
41199 2015-01-27 Caroline Tice <cmtice@google.com>
41200
41201 Committing VTV Cywin/Ming patch for Patrick Wollgast
41202 * config/i386/cygwin.h (STARTFILE_SPEC): Add vtv_start.o,
41203 if -fvtable-verify=preinit/std is used.
41204 * config/i386/mingw-w64.h (STARTFILE_SPEC): Likewise.
41205 * config/i386/mingw32.h (STARTFILE_SPEC): Likewise.
41206 * config/i386/cygwin.h (ENDFILE_SPEC): Add vtv_end.o,
41207 if -fvtable-verify=preinit/std is used.
41208 * config/i386/mingw32.h (ENDFILE_SPEC): Likewise.
41209 * config/i386/cygwin.h (LIB_SPEC): Pass -lvtv and -lpsapi,
41210 if -fvtable-verify=preinit/std is used.
41211 * config/i386/mingw-w64.h (LIB_SPEC): Likewise.
41212 * config/i386/mingw32.h (LIB_SPEC): Likewise.
41213 * varasm.c (assemble_variable): Add code to properly set the comdat
41214 section and name for the .vtable_map_vars section in case the
41215 target is PE or COFF.
41216
41217 2015-01-29 Jan Hubicka <hubicka@ucw.cz>
41218
41219 PR ipa/64801
41220 * cgraphunit.c (init_lowered_empty_function): Add CoUNT parameter;
41221 make sane BB profile.
41222 (cgraph_node::expand_thunk): Make sane BB profile.
41223 (cgraph_node::create_wrapper): Do not set call_stmt_cannot_inline_p.
41224 * cgraph.h (init_lowered_empty_function): Update prototype.
41225 * config/i386/i386.c (make_resolver_func): Update call.
41226 * predict.c (gate): Disable branch prediction pass if
41227 profile is already there.
41228
41229 2015-01-29 Jan Hubicka <hubicka@ucw.cz>
41230
41231 * optc-save-gen.awk: flag_fp_contract_mode is no longer speical.
41232 * opth-gen.awk: Likewise.
41233 * common.opt: Mark flag_fp_contract_mode as Optimization.
41234
41235 2015-01-29 Bernd Edlinger <bernd.edlinger@hotmail.de>
41236
41237 * config/i386/cygwin.h (LIBGCJ_SONAME): Set libgcj version to -16.
41238 * config/i386/mingw32.h (LIBGCJ_SONAME): Set libgcj version to -16.
41239
41240 2015-01-28 Oleg Endo <olegendo@gcc.gnu.org>
41241
41242 PR target/64659
41243 * config/sh/predicates.md (atomic_arith_operand,
41244 atomic_logical_operand): Remove.
41245 * config/sh/sync.md (fetchop_predicate, fetchop_constraint): Remove.
41246 (atomic_arith_operand_0): New predicate.
41247 (atomic_compare_and_swap<mode>): Use arith_reg_dest for output values.
41248 Use atomic_arith_operand_0 for input values.
41249 (atomic_compare_and_swapsi_hard, atomic_compare_and_swap<mode>_hard,
41250 atomic_compare_and_swap<mode>_soft_gusa,
41251 atomic_compare_and_swap<mode>_soft_tcb,
41252 atomic_compare_and_swap<mode>_soft_imask): Use arith_reg_dest and
41253 arith_reg_operand instead of register_operand.
41254 (atomic_exchange<mode>): Use arith_reg_dest for output value. Use
41255 atomic_arith_operand_0 for newval input.
41256 (atomic_exchangesi_hard, atomic_exchange<mode>_hard,
41257 atomic_exchange<mode>_soft_gusa, atomic_exchange<mode>_soft_tcb,
41258 atomic_exchange<mode>_soft_imask): Use arith_reg_dest and
41259 arith_reg_operand instead of register_operand.
41260 (atomic_arith_operand_1, atomic_logical_operand_1): New predicates.
41261 fetchop_predicate_1, fetchop_constraint_1_llcs,
41262 fetchop_constraint_1_gusa, fetchop_constraint_1_tcb,
41263 fetchop_constraint_1_imask): New code iterator attributes.
41264 (atomic_fetch_<fetchop_name><mode>): Use arith_reg_dest instead of
41265 register_operand. Use fetchop_predicate_1.
41266 (atomic_fetch_<fetchop_name>si_hard,
41267 atomic_fetch_<fetchop_name><mode>_hard): Use arith_reg_dest instead of
41268 register_operand. Use fetchop_predicate_1, fetchop_constraint_1_llcs.
41269 (atomic_fetch_<fetchop_name><mode>_soft_gusa): Use arith_reg_dest
41270 and arith_reg_operand instead of register_operand. Use
41271 fetchop_predicate_1, fetchop_constraint_1_gusa.
41272 (atomic_fetch_<fetchop_name><mode>_soft_tcb): Use arith_reg_dest
41273 and arith_reg_operand instead of register_operand. Use
41274 fetchop_predicate_1, fetchop_constraint_1_tcb. Adjust asm sequence
41275 to allow R0 usage.
41276 (atomic_fetch_<fetchop_name><mode>_soft_imask): Use arith_reg_dest
41277 and arith_reg_operand instead of register_operand. Use
41278 fetchop_predicate_1, fetchop_constraint_1_imask. Adjust asm sequence
41279 to allow R0 usage.
41280 (atomic_fetch_nand<mode>): Use arith_reg_dest instead of
41281 register_operand. Use atomic_logical_operand_1.
41282 (atomic_fetch_nandsi_hard, atomic_fetch_nand<mode>_hard,
41283 atomic_fetch_nand<mode>_soft_gusa): Use arith_reg_dest and
41284 arith_reg_operand instead of register_operand.
41285 (atomic_fetch_nand<mode>_soft_tcb, atomic_fetch_nand<mode>_soft_imask):
41286 Use arith_reg_dest and arith_reg_operand instead of register_operand.
41287 Use logical_operand and rK08. Adjust asm sequence to allow R0 usage.
41288 (atomic_<fetchop_name>_fetch<mode>): Use arith_reg_dest instead of
41289 register_operand. Use fetchop_predicate_1.
41290 (atomic_<fetchop_name>_fetchsi_hard,
41291 atomic_<fetchop_name>_fetch<mode>_hard): Use arith_reg_dest and
41292 arith_reg_operand instead of register_operand. Use fetchop_predicate_1,
41293 fetchop_constraint_1_llcs.
41294 (atomic_<fetchop_name>_fetch<mode>_soft_gusa): Use arith_reg_dest and
41295 arith_reg_operand instead of register_operand. Use fetchop_predicate_1,
41296 fetchop_constraint_1_gusa.
41297 (atomic_<fetchop_name>_fetch<mode>_soft_tcb): Use arith_reg_dest and
41298 arith_reg_operand instead of register_operand. Use fetchop_predicate_1,
41299 fetchop_constraint_1_tcb. Adjust asm sequence to allow R0 usage.
41300 (atomic_<fetchop_name>_fetch<mode>_soft_imask): Use arith_reg_dest and
41301 arith_reg_operand instead of register_operand. Use fetchop_predicate_1,
41302 fetchop_constraint_1_imask. Adjust asm sequence to allow R0 usage.
41303 (atomic_nand_fetch<mode>): Use arith_reg_dest instead of
41304 register_operand. Use atomic_logical_operand_1.
41305 (atomic_nand_fetchsi_hard, atomic_nand_fetch<mode>_hard,
41306 atomic_nand_fetch<mode>_soft_gusa): Use arith_reg_dest and
41307 arith_reg_operand instead of register_operand.
41308 (atomic_nand_fetch<mode>_soft_tcb): Use arith_reg_dest and
41309 arith_reg_operand instead of register_operand. Use logical_operand
41310 and K08. Adjust asm sequence to allow R0 usage.
41311 (atomic_nand_fetch<mode>_soft_imask): Use arith_reg_dest and
41312 arith_reg_operand instead of register_operand. Use logical_operand
41313 and K08.
41314
41315 2015-01-28 Jakub Jelinek <jakub@redhat.com>
41316
41317 PR other/63504
41318 * dwarf2out.c (add_AT_wide, mem_loc_descriptor, loc_descriptor):
41319 Use ggc_alloc<wide_int> instead of ggc_cleared_alloc<wide_int>.
41320 (attr_checksum, attr_checksum_ordered, hash_loc_operands): Checksum
41321 only get_full_len HOST_WIDE_INTs from get_val () array rather than
41322 all bits in *val_wide.
41323
41324 2015-01-28 Jan Hubicka <hubicka@ucw.cz>
41325
41326 * varpool.c (tls_model_names): Fix names.
41327 (varpool_node::dump): Dump tls- prefix for tls models.
41328
41329 2015-01-28 Thomas Schwinge <thomas@codesourcery.com>
41330 Bernd Schmidt <bernds@codesourcery.com>
41331 Nathan Sidwell <nathan@codesourcery.com>
41332
41333 * config/nvptx/mkoffload.c: New file.
41334 * config/nvptx/t-nvptx: Add build rules for it.
41335 * config.gcc <nvptx-*> [$enable_as_accelerator = yes]
41336 (extra_programs): Add mkoffload.
41337 * config/nvptx/nvptx.c (nvptx_record_offload_symbol): New
41338 function.
41339 (TARGET_RECORD_OFFLOAD_SYMBOL): Define macro to use it.
41340
41341 2015-01-28 Yuri Rumyantsev <ysrumyan@gmail.com>
41342
41343 PR middle-end/64809
41344 * cfgexpand.c (reorder_operands): Skip debug gimples.
41345
41346 2015-01-28 Ilya Enkovich <ilya.enkovich@intel.com>
41347
41348 PR tree-optimization/64277
41349 * tree-ssa-loop-niter.c (record_nonwrapping_iv): Use base
41350 range info when possible to refine estimation.
41351
41352 2015-01-28 Thomas Preud'homme <thomas.preudhomme@arm.com>
41353
41354 PR tree-optimization/64718
41355 * tree-ssa-math-opts.c (pass_optimize_bswap::execute): Make bswap_type
41356 be a 16bit unsigned integer when n->range is 16.
41357 (bswap_replace): Convert src to that type if necessary for all bswap
41358 sizes. Fix rotation right notation in nearby comment. Use bswap_type
41359 set in pass_optimize_bswap::execute ().
41360
41361 2015-01-28 James Greenhalgh <james.greenhalgh@arm.com>
41362
41363 * config/aarch64/aarch64-simd.md (aarch64_abs<mode>): New.
41364 * config/aarch64/aarch64-simd-builtins.def (abs): Split by
41365 integer and floating point variants.
41366 * config/aarch64/iterators.md (unspec): Add UNSPEC_ABS.
41367
41368 2015-01-28 Robert Suchanek <robert.suchanek@imgtec.com>
41369
41370 * config/mips/mips.c (mips_hard_regno_mode_ok_p): Prohibit accumulators
41371 for all vector modes.
41372
41373 2015-01-28 Jakub Jelinek <jakub@redhat.com>
41374
41375 PR bootstrap/64612
41376 * doc/sourcebuild.texi (comdat_group): Document.
41377
41378 2015-01-28 Terry Guo <terry.guo@arm.com>
41379
41380 * config/arm/thumb1.md (*thumb1_movpc_insn): New insn pattern.
41381
41382 2015-01-27 David Malcolm <dmalcolm@redhat.com>
41383
41384 * toplev.c (print_version): Add param "show_global_state", and
41385 only print GGC and plugin information if it is true.
41386 (init_asm_output): Pass in "true" for the new param when calling
41387 print_version.
41388 (process_options): Likewise.
41389 (toplev::main): Likewise.
41390 * toplev.h (print_version): Add new param to decl.
41391
41392 2015-01-27 Jan Hubicka <hubicka@ucw.cz>
41393
41394 PR ipa/60871
41395 PR ipa/64139
41396 * tree.c (lookup_binfo_at_offset): New function.
41397 (get_binfo_at_offset): Use it.
41398
41399 2015-01-27 Jan Hubicka <hubicka@ucw.cz>
41400
41401 PR ipa/64282
41402 * gimple-fold.c (gimple_get_virt_method_for_vtable): Remove assert
41403 on vtable being vtable.
41404
41405 2015-01-27 Dominik Vogt <vogt@linux.vnet.ibm.com>
41406
41407 * doc/extend.texi: s/390: Update documentation of hotpatch attribute.
41408 * doc/invoke.texi (-mhotpatch): s/390: Update documentation of
41409 -mhotpatch= option.
41410 * config/s390/s390.opt (mhotpatch): s/390: Remove -mhotpatch and
41411 -mno-hotpatch options. Change syntax of -mhotpatch= option.
41412 * config/s390/s390.c (s390_hotpatch_trampoline_halfwords_default):
41413 Renamed.
41414 (s390_hotpatch_trampoline_halfwords_max): Renamed.
41415 (s390_hotpatch_hw_max): New name.
41416 (s390_hotpatch_trampoline_halfwords): Renamed.
41417 (s390_hotpatch_hw_before_label): New name.
41418 (get_hotpatch_attribute): Removed.
41419 (s390_hotpatch_hw_after_label): New name.
41420 (s390_handle_hotpatch_attribute): Add second parameter to hotpatch
41421 attribute.
41422 (s390_attribute_table): Ditto.
41423 (s390_function_num_hotpatch_trampoline_halfwords): Renamed.
41424 (s390_function_num_hotpatch_hw): New name.
41425 Remove special handling of inline functions and hotpatching.
41426 Return number of nops before and after the function label.
41427 (s390_can_inline_p): Removed.
41428 (s390_asm_output_function_label): Emit a configurable number of nops
41429 after the function label.
41430 (s390_option_override): Update -mhotpatch= syntax and remove -mhotpatch.
41431 (TARGET_CAN_INLINE_P) Removed.
41432 (TARGET_FUNCTION_ATTRIBUTE_INLINABLE_P): New.
41433
41434 2015-01-27 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
41435 Jiong Wang <jiong.wang@arm.com>
41436
41437 * config/aarch64/aarch64.md (tb<optab><mode>1): Clobber CC reg instead
41438 of scratch reg.
41439 (cb<optab><mode>1): Likewise.
41440 * config/aarch64/iterators.md (bcond): New define_code_attr.
41441
41442 2015-01-27 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
41443
41444 * config/s390/s390.c (s390_memory_move_cost): Increase costs for
41445 memory accesses.
41446
41447 2015-01-27 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
41448
41449 * config/s390/s390.c (s390_register_move_cost): Increase costs for
41450 FPR->GPR moves.
41451
41452 2015-01-27 Richard Biener <rguenther@suse.de>
41453
41454 * tree-vrp.c (update_value_range): Intersect the range with
41455 old recorded SSA name range information.
41456
41457 2015-01-27 Nick Clifton <nickc@redhat.com>
41458
41459 * config/rl78/rl78.c (rl78_expand_prologue): In G10 mode push the
41460 BC, DE and HL registers directly, not via AX.
41461 When decrementing the stack pointer by a large amount, transfer SP
41462 into AX and perform the subtraction there.
41463 (rl78_expand_epilogue): Perform the inverse of the above
41464 enhancements.
41465
41466 2015-01-27 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
41467
41468 * config/i386/sysv4.h (CRT_GET_RFIB_DATA): Remove.
41469
41470 2015-01-27 Jakub Jelinek <jakub@redhat.com>
41471 Yury Gribov <y.gribov@samsung.com>
41472
41473 PR ubsan/64741
41474 * ubsan.c (ubsan_source_location): Refactor code.
41475 (ubsan_type_descriptor): Update type size. Refactor code.
41476
41477 2015-01-27 Richard Biener <rguenther@suse.de>
41478
41479 PR tree-optimization/56273
41480 PR tree-optimization/59124
41481 PR tree-optimization/64277
41482 * tree-vrp.c (vrp_finalize): Emit array-bound warnings only
41483 from the first VRP pass.
41484
41485 2015-01-27 Jakub Jelinek <jakub@redhat.com>
41486
41487 PR ipa/64776
41488 * cgraphunit.c (cgraph_node::expand_thunk): If not this_adjusting,
41489 handle the first argument in the same loop as all the other arguments.
41490
41491 PR rtl-optimization/61058
41492 * jump.c (cleanup_barriers): Update basic block boundaries
41493 if BLOCK_FOR_INSN is non-NULL on PREV.
41494
41495 2015-01-27 Ilya Enkovich <ilya.enkovich@intel.com>
41496
41497 * tree-chkp.c (chkp_call_returns_bounds_p): Fix handling of
41498 bounds narrowing, already instrumented calls and calls to
41499 not instrumentable functions.
41500
41501 2015-01-27 Jakub Jelinek <jakub@redhat.com>
41502
41503 PR tree-optimization/64807
41504 * wide-int.cc (wi::divmod_internal): Clear
41505 b_dividend[dividend_blocks_needed].
41506
41507 2015-01-26 DJ Delorie <dj@redhat.com>
41508
41509 * config/rl78/rl78.c (move_elim_pass): Don't optimize away
41510 volatile memory references.
41511
41512 2015-01-26 Oleg Endo <olegendo@gcc.gnu.org>
41513
41514 PR target/49263
41515 * config/sh/sh.c (sh_split_treg_set_expr): Invoke emit_insn before
41516 remove_insn.
41517 * config/sh/sh.md (tstsi_t): Don't try to optimize constant with right
41518 shifts if it already fits into K08.
41519
41520 2015-01-26 Jakub Jelinek <jakub@redhat.com>
41521
41522 PR ipa/64730
41523 * ipa-inline.c (inline_small_functions): Print "unknown" even
41524 if edge->call_stmt is non-NULL, but has builtins or unknown
41525 location.
41526
41527 PR middle-end/64421
41528 * omp-low.c (simd_clone_mangle): If DECL_ASSEMBLER_NAME starts
41529 with asterisk, skip the first character.
41530
41531 2015-01-26 H.J. Lu <hongjiu.lu@intel.com>
41532
41533 PR target/64806
41534 * config/i386/i386 (feature_priority): Revert the last P_POPCNT
41535 order change.
41536
41537 2015-01-26 Uros Bizjak <ubizjak@gmail.com>
41538
41539 PR target/64795
41540 * config/i386/i386.md (*movdi_internal): Also check operand 0
41541 to determine TYPE_LEA operand.
41542 (*movsi_internal): Ditto.
41543
41544 2015-01-26 Jakub Jelinek <jakub@redhat.com>
41545
41546 * config/rs6000/rs6000-cpus.def (POWERPC_MASKS): Add
41547 OPTION_MASK_QUAD_MEMORY_ATOMIC.
41548
41549 2015-01-26 Renlin Li <renlin.li@arm.com>
41550
41551 * config/aarch64/aarch64.c (aarch64_load_symref_appropriately): Correct
41552 the comment.
41553 * config/aarch64/aarch64.md (tlsle_small_<mode>): Add left shift 12-bit
41554 for higher part.
41555
41556 2015-01-26 Richard Biener <rguenther@suse.de>
41557
41558 PR middle-end/64764
41559 * tree-ssa-uninit.c (is_pred_expr_subset_of): Handle
41560 combining two BIT_AND_EXPR predicates.
41561
41562 2015-01-26 H.J. Lu <hongjiu.lu@intel.com>
41563
41564 PR bootstrap/64754
41565 * tree-ssa-structalias.c (new_var_info): Initialize ruid.
41566
41567 2015-01-26 Terry Guo <terry.guo@arm.com>
41568
41569 * config/arm/arm.c (arm_file_start): Update the assignment of
41570 Tag_ABI_HardFP_use.
41571
41572 2015-01-25 James Greenhalgh <james.greenhalgh@arm.com>
41573
41574 * config/arm/arm-cores.def (cortex-a57): Use the new Cortex-A57
41575 pipeline model.
41576 config/arm/arm.md: Include the new Cortex-A57 model.
41577 (generic_sched): Don't use generic_sched when tuning for
41578 Cortex-A57.
41579
41580 2015-01-25 Allan Sandfeld Jensen <sandfeld@kde.org>
41581 Uros Bizjak <ubizjak@gmail.com>
41582
41583 * config/i386/i386.c (get_builtin_code_for_version): Add
41584 support for BMI and BMI2 multiversion functions.
41585
41586 2015-01-25 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
41587
41588 * emit-rtl.h (store_bit_field): Move prototype to expmed.h.
41589 (extract_bit_field): Likewise.
41590 (extract_low_bits): Likewise.
41591 (expand_mult): Likewise.
41592 (expand_mult_highpart_adjust): Likewise.
41593
41594 2015-01-24 H.J. Lu <hongjiu.lu@intel.com>
41595
41596 * config/i386/driver-i386.c (host_detect_local_cpu): Check new
41597 Silvermont, Haswell, Broadwell and Knights Landing model numbers.
41598 * config/i386/i386.c (processor_model): Add
41599 M_INTEL_COREI7_BROADWELL.
41600 (arch_names_table): Add "broadwell".
41601
41602 2015-01-24 Oleg Endo <olegendo@gcc.gnu.org>
41603
41604 PR target/49263
41605 PR target/53987
41606 PR target/64345
41607 PR target/59533
41608 PR target/52933
41609 PR target/54236
41610 PR target/51244
41611 * config/sh/sh-protos.h
41612 (sh_extending_set_of_reg::can_use_as_unextended_reg,
41613 sh_extending_set_of_reg::use_as_unextended_reg,
41614 sh_is_nott_insn, sh_movt_set_dest, sh_movrt_set_dest, sh_is_movt_insn,
41615 sh_is_movrt_insn, sh_insn_operands_modified_between_p,
41616 sh_reg_dead_or_unused_after_insn, sh_in_recog_treg_set_expr,
41617 sh_recog_treg_set_expr, sh_split_treg_set_expr): New functions.
41618 (sh_treg_insns): New class.
41619 * config/sh/sh.c (TARGET_LEGITIMATE_COMBINED_INSN): Define target hook.
41620 (scope_counter): New class.
41621 (sh_legitimate_combined_insn, sh_is_nott_insn, sh_movt_set_dest,
41622 sh_movrt_set_dest, sh_reg_dead_or_unused_after_insn,
41623 sh_extending_set_of_reg::can_use_as_unextended_reg,
41624 sh_extending_set_of_reg::use_as_unextended_reg, sh_recog_treg_set_expr,
41625 sh_in_recog_treg_set_expr, sh_try_split_insn_simple,
41626 sh_split_treg_set_expr): New functions.
41627 (addsubcosts): Handle treg_set_expr.
41628 (sh_rtx_costs): Handle IF_THEN_ELSE and ZERO_EXTRACT.
41629 (sh_rtx_costs): Use arith_reg_operand in SIGN_EXTEND and ZERO_EXTEND.
41630 (sh_rtx_costs): Handle additional bit test patterns in EQ and AND cases.
41631 (sh_insn_operands_modified_between_p): Make non-static.
41632 * config/sh/predicates.md (zero_extend_movu_operand): Allow
41633 simple_mem_operand in addition to displacement_mem_operand.
41634 (zero_extend_operand): Don't allow zero_extend_movu_operand.
41635 (treg_set_expr, treg_set_expr_not_const01,
41636 arith_reg_or_treg_set_expr): New predicates.
41637 * config/sh/sh.md (tstsi_t): Use arith_reg_operand and
41638 arith_or_int_operand instead of logical_operand. Convert to
41639 insn_and_split. Try to optimize constant operand in splitter.
41640 (tsthi_t, tstqi_t): Fold into *tst<mode>_t. Convert to insn_and_split.
41641 (*tstqi_t_zero): Delete.
41642 (*tst<mode>_t_subregs): Add !sh_in_recog_treg_set_expr split condition.
41643 (tstsi_t_and_not): Delete.
41644 (tst<mode>_t_zero_extract_eq): Rename to *tst<mode>_t_zero_extract.
41645 Convert to insn_and_split.
41646 (unnamed split, tstsi_t_zero_extract_xor,
41647 tstsi_t_zero_extract_subreg_xor_little,
41648 tstsi_t_zero_extract_subreg_xor_big): Delete.
41649 (*tstsi_t_shift_mask): New insn_and_split.
41650 (cmpeqsi_t, cmpgesi_t): Add new split for const_int 0 operands and try
41651 to recombine with surrounding insns when splitting.
41652 (*negtstsi): Add !sh_in_recog_treg_set_expr condition.
41653 (cmp_div0s_0, cmp_div0s_1, *cmp_div0s_0, *cmp_div0s_1): Rewrite as ...
41654 (cmp_div0s, *cmp_div0s_1, *cmp_div0s_2, *cmp_div0s_3, *cmp_div0s_4,
41655 *cmp_div0s_5, *cmp_div0s_6): ... these new insn_and_split patterns.
41656 (*cbranch_div0s: Delete.
41657 (*addc): Convert to insn_and_split. Use treg_set_expr as 3rd operand.
41658 Try to recombine with surrounding insns when splitting. Add operand
41659 order variants.
41660 (*addc_t_r, *addc_r_t): Use treg_set_expr_not_const01.
41661 (*addc_r_r_1, *addc_r_lsb, *addc_r_r_lsb, *addc_r_lsb_r, *addc_r_msb,
41662 *addc_r_r_msb, *addc_2r_msb): Delete.
41663 (*addc_2r_lsb): Rename to *addc_2r_t. Use treg_set_expr. Add operand
41664 order variant.
41665 (*addc_negreg_t): New insn_and_split.
41666 (*subc): Convert to insn_and_split. Use treg_set_expr as 3rd operand.
41667 Try to recombine with surrounding insns when splitting.
41668 Add operand order variants.
41669 (*subc_negt_reg, *subc_negreg_t, *reg_lsb_t, *reg_msb_t): New
41670 insn_and_split patterns.
41671 (*rotcr): Use arith_reg_or_treg_set_expr. Try to recombine with
41672 surrounding insns when splitting.
41673 (unnamed rotcr split): Use arith_reg_or_treg_set_expr.
41674 (*rotcl): Likewise. Add zero_extract variant.
41675 (*ashrsi2_31): New insn_and_split.
41676 (*negc): Convert to insn_and_split. Use treg_set_expr.
41677 (*zero_extend<mode>si2_disp_mem): Update comment.
41678 (movrt_negc, *movrt_negc, nott): Add !sh_in_recog_treg_set_expr split
41679 condition.
41680 (*mov_t_msb_neg, mov_neg_si_t): Use treg_set_expr. Try to recombine
41681 with surrounding insns when splitting.
41682 (any_treg_expr_to_reg): New insn_and_split.
41683 (*neg_zero_extract_0, *neg_zero_extract_1, *neg_zero_extract_2,
41684 *neg_zero_extract_3, *neg_zero_extract_4, *neg_zero_extract_5,
41685 *neg_zero_extract_6, *zero_extract_0, *zero_extract_1,
41686 *zero_extract_2): New single bit zero extract patterns.
41687 (bld_reg, *bld_regqi): Fold into bld<mode>_reg.
41688 (*get_thread_pointersi, store_gbr, *mov<mode>_gbr_load,
41689 *mov<mode>_gbr_load, *mov<mode>_gbr_load, *mov<mode>_gbr_load,
41690 *movdi_gbr_load): Use arith_reg_dest instead of register_operand for
41691 set destination.
41692 (set_thread_pointersi, load_gbr): Use arith_reg_operand instead of
41693 register_operand for set source.
41694
41695 2015-01-23 Jan Hubicka <hubicka@ucw.cz>
41696
41697 * i386.opt (prefetch_sse): New targetsave.
41698 * i386.c (ix86_function_specific_save): Save prefetch_sse.
41699 (ix86_function_specific_restore): Restore prefetch_sse and initialize
41700 ix86_cost/ix86_tune_cost.
41701
41702 2015-01-23 David Malcolm <dmalcolm@redhat.com>
41703
41704 * config/rs6000/rs6000.c (rs6000_output_function_epilogue):
41705 Support the JIT by using 0 as the language type.
41706
41707 2015-01-23 Vladimir Makarov <vmakarov@redhat.com>
41708
41709 PR target/64317
41710 * lra-lives.c (make_hard_regno_born): Add parameter. Don't make
41711 REAL_PIC_OFFSET_TABLE_REGNUM conflicting with pic offset pseudo.
41712 (mark_regno_live, process_bb_lives): Pass new parameter value to
41713 make_hard_regno_born.
41714
41715 2015-01-23 Jakub Jelinek <jakub@redhat.com>
41716
41717 PR rtl-optimization/63637
41718 PR rtl-optimization/60663
41719 * cse.c (merge_equiv_classes): Set new_elt->cost to MAX_COST
41720 if elt->cost is MAX_COST for ASM_OPERANDS.
41721 (find_sets_in_insn): Fix up comment typo.
41722 (cse_insn): Don't set src_volatile for all non-volatile
41723 ASM_OPERANDS in PARALLELs, but just those with multiple outputs
41724 or with "memory" clobber. Set elt->cost to MAX_COST
41725 for ASM_OPERANDS in PARALLEL. Set src_elt->cost to MAX_COST
41726 if new_src is ASM_OPERANDS and elt->cost is MAX_COST.
41727
41728 2015-01-23 Uros Bizjak <ubizjak@gmail.com>
41729
41730 * config/i386/sse.md (sse2_loadld): Set attribute isa to sse2 for
41731 alternative 1.
41732
41733 2015-01-23 Uros Bizjak <ubizjak@gmail.com>
41734
41735 * config/i386/gnu-user.h (CRT_GET_RFIB_DATA): Move definition to
41736 libgcc/config/i386/elf-lib.h.
41737
41738 2015-01-23 Jakub Jelinek <jakub@redhat.com>
41739
41740 PR driver/64737
41741 * gcc.c (print_configuration): Don't print a blank line at the end
41742 here...
41743 (run_attempt): ... but here unstead.
41744
41745 PR middle-end/64734
41746 * omp-low.c (scan_sharing_clauses): Don't ignore
41747 OMP_CLAUSE_MAP_ZERO_BIAS_ARRAY_SECTION GOMP_MAP_POINTER clauses
41748 on target data/update constructs.
41749
41750 2015-01-23 Bernd Edlinger <bernd.edlinger@hotmail.de>
41751
41752 PR target/50928
41753 * config/m32c/m32c.c (encode_pattern_1): Removed gcc_unreachable here.
41754 (DEBUG_RELOAD): Removed define.
41755 (m32c_limit_reload_class): Enable traces with if DEBUG0.
41756 (m32c_function_arg): Added a type cast.
41757 (m32c_legitimize_reload_address): Push A_REGS reload with PSImode.
41758 * config/m32c/addsub.md (addsi3_1): Specify the mode of all arguments.
41759 * config/m32c/bitops.md (andqi3_16): Likewise.
41760 * config/m32c/mov.md (m32c_immd_dbl_mov): Likewise.
41761 (push_a01_l): Likewise.
41762
41763 2015-01-23 David Malcolm <dmalcolm@redhat.com>
41764
41765 PR jit/64721
41766 * main.c (main): Construct toplev instances with init_signals=true.
41767 * toplev.c (general_init): Add param "init_signals", and use it to
41768 conditionalize the calls to signal and host_hooks.extra_signals.
41769 (toplev::toplev): Add param "init_signals".
41770 (toplev::main): When invoking general_init, pass m_init_signals
41771 to control whether signal-handlers are installed.
41772 * toplev.h (toplev::toplev): Add param "init_signals".
41773 (toplev::m_init_signals): New field.
41774
41775 2015-01-23 David Malcolm <dmalcolm@redhat.com>
41776
41777 PR jit/64722
41778 * emit-rtl.c (init_emit_regs): Set pic_offset_table_rtx to
41779 NULL_RTX before testing PIC_OFFSET_TABLE_REGNUM, since the
41780 latter may be affected by the former (e.g. on i686).
41781
41782 2015-01-23 Martin Liska <mliska@suse.cz>
41783
41784 * tree.h (tree_vec_elt_check): Workaround -Wstrict-overflow
41785 false positive during profiledbootstrap.
41786
41787 2015-01-23 Tom de Vries <tom@codesourcery.com>
41788
41789 PR libgomp/64672
41790 * lto-opts.c (lto_write_options): Output non-explicit conservative
41791 -fno-openacc.
41792 * lto-wrapper.c (merge_and_complain): Handle merging -fopenacc.
41793 (append_compiler_options): Pass -fopenacc through.
41794
41795 2015-01-23 Tom de Vries <tom@codesourcery.com>
41796
41797 PR libgomp/64707
41798 * lto-opts.c (lto_write_options): Output non-explicit conservative
41799 -fno-openmp.
41800 * lto-wrapper.c (merge_and_complain): Handle merging -fopenmp.
41801 (append_compiler_options): Pass -fopenmp through.
41802
41803 2015-01-23 Jakub Jelinek <jakub@redhat.com>
41804
41805 PR debug/64511
41806 * dwarf2out.c (struct dw_loc_descr_node): Add chain_next
41807 GTY markup.
41808
41809 * diagnostic-core.h (internal_error_no_backtrace): New prototype.
41810 * diagnostic.def (DK_ICE_NOBT): New kind.
41811 * diagnostic.c (diagnostic_action_after_output): Handle DK_ICE_NOBT
41812 like DK_ICE, but never print backtrace.
41813 (diagnostic_report_diagnostic): Handle DK_ICE_NOBT like DK_ICE.
41814 (internal_error_no_backtrace): New function.
41815 * gcc.c (execute): Use internal_error_no_backtrace instead of
41816 internal_error.
41817
41818 2015-01-22 Jeff Law <law@redhat.com>
41819
41820 PR target/52076
41821 * config/m68k/m68k.md (xorsi3_internal): Twiddle constraints to
41822 improve code density for small immediate to memory case.
41823 (insv): Better handle bitfield assignments when the field is
41824 being set to all ones.
41825 * config/m68k/predicates.md (reg_or_pow2_m1_operand): New
41826 operand predicate.
41827
41828 2015-01-22 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
41829 Jakub Jelinek <jakub@redhat.com>
41830
41831 PR middle-end/64729
41832 * gcc.c (LINK_SSP_SPEC): Handle -fstack-protector-explicit
41833 for !TARGET_LIBC_PROVIDES_SSP version and
41834 -fstack-protector-{all,strong,explicit} otherwise.
41835 * config/freebsd.h (LINK_SSP_SPEC): Handle
41836 -fstack-protector-{strong,explicit}.
41837
41838 2015-01-22 Jan Hubicka <hubicka@ucw.cz>
41839 H.J. Lu <hongjiu.lu@intel.com>
41840
41841 PR ipa/64694
41842 * ipa-inline.c (inline_small_functions): Fix thinko in maintenance of
41843 heap.
41844
41845 2015-01-22 Wei Mi <wmi@google.com>
41846
41847 PR rtl-optimization/64557
41848 * dse.c (record_store): Call get_addr for mem_addr.
41849 (check_mem_read_rtx): Likewise.
41850
41851 2015-01-22 Eric Botcazou <ebotcazou@adacore.com>
41852
41853 * fold-const.c (const_binop): Add early return for non-tcc_binary.
41854
41855 2015-01-22 Chen Gang <gang.chen.5i5j@gmail.com>
41856
41857 * toplev.c (init_local_tick): Process the failure when read
41858 fails for random_seed.
41859
41860 * ubsan.c (ubsan_type_descriptor): Use 'pretty_print' for
41861 'pretty_name' to avoid memory overflow.
41862
41863 2015-01-22 Richard Biener <rguenther@suse.de>
41864
41865 PR middle-end/64728
41866 * tree-ssa-coalesce.c (coalesce_partitions): Do not perform
41867 abnormal coalescing on undefined SSA names.
41868
41869 2015-22-01 Uros Bizjak <ubizjak@gmail.com>
41870
41871 PR target/64688
41872 PR target/64477
41873 * config/i386/sse.md (vec_set<mode>_0): Use (Yi/r/C) constraints
41874 for alternative 3.
41875 (*vec_dup<mode>): Use (Yi/$r) constraints for alternative 1.
41876
41877 2015-01-22 Trevor Saunders <tsaunders@mozilla.com>
41878
41879 PR middle-end/63325
41880 * fold-const.c (fold_checksum_tree): Don't include value of
41881 expr->decl_with_vis.symtab_node in the checksum.
41882
41883 2015-01-22 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
41884
41885 * config/s390/s390.md (atomic code attribute): Fix typo "ior" -> "or".
41886
41887 2015-01-22 Max Ostapenko <m.ostapenko@partner.samsung.com>
41888
41889 PR driver/64690
41890 * gcc.c (insert_comments): New function.
41891 (try_generate_repro): Call it.
41892 (append_text): Removed.
41893
41894 2015-01-22 Richard Biener <rguenther@suse.de>
41895
41896 * ipa-inline.c (can_inline_edge_p): Disable inlining of edges
41897 with IL incompatible options. Properly honor user optimize
41898 attributes.
41899
41900 2015-01-21 Segher Boessenkool <segher@kernel.crashing.org>
41901
41902 PR rtl-optimization/64682
41903 * combine.c (distribute_notes): When moving a death note for
41904 a register that is set in the new I2, make sure to put it
41905 before that new I2.
41906
41907 2015-01-21 David Edelsohn <dje.gcc@gmail.com>
41908
41909 * config/rs6000/rs6000.c (rs6000_file_start): Use rs6000_isa_flags
41910 not TARGET_DEFAULT.
41911
41912 2015-01-21 Jakub Jelinek <jakub@redhat.com>
41913
41914 PR debug/64511
41915 * simplify-rtx.c (simplify_relational_operation_1): Don't try to
41916 optimize (eq/ne (and (side_effects) (const_int 0)) (const_int 0))
41917 into (eq/ne (and (not (side_effects)) (const_int 0)) (const_int 0)).
41918
41919 PR sanitizer/64706
41920 * doc/invoke.texi (-fsanitize=vptr): Document.
41921
41922 PR rtl-optimization/62078
41923 * dse.c: Include cfgcleanup.h.
41924 (rest_of_handle_dse): For -fnon-call-exceptions, if DSE removed
41925 anything call purge_all_dead_edges and cleanup_cfg at the end
41926 of the pass.
41927
41928 2015-01-21 Jan Hubicka <hubicka@ucw.cz>
41929
41930 * ipa-utils.c (ipa_merge_profiles): Avoid ICE on mismatch in indirect
41931 edges.
41932
41933 2015-01-21 Bernd Edlinger <bernd.edlinger@hotmail.de>
41934
41935 * gimplify.c (gimplify_function_tree): Check the no_sanitize_thread
41936 decl attribute.
41937
41938 2015-01-21 David Sherwood <david.sherwood@arm.com>
41939 Tejas Belagod <Tejas.Belagod@arm.com>
41940
41941 * config/aarch64/aarch64.h (CANNOT_CHANGE_MODE_CLASS): Removed.
41942 * config/aarch64/aarch64.c (aarch64_cannot_change_mode_class): Removed.
41943 * config/aarch64/aarch64-protos.h (aarch64_cannot_change_mode_class):
41944 Removed.
41945
41946 2015-01-21 David Sherwood <david.sherwood@arm.com>
41947 Tejas Belagod <Tejas.Belagod@arm.com>
41948
41949 * config/aarch64/aarch64-protos.h (aarch64_simd_attr_length_rglist)
41950 (aarch64_reverse_mask): New decls.
41951 * config/aarch64/iterators.md (UNSPEC_REV_REGLIST): New enum.
41952 (insn_count): New mode_attr.
41953 * config/aarch64/aarch64-simd.md (vec_store_lanesoi, vec_store_lanesci)
41954 (vec_store_lanesxi, vec_load_lanesoi, vec_load_lanesci)
41955 (vec_load_lanesxi): Made ABI compliant for Big Endian targets.
41956 (aarch64_rev_reglist, aarch64_simd_ld2, aarch64_simd_ld3)
41957 (aarch64_simd_ld4, aarch64_simd_st2, aarch64_simd_st3)
41958 (aarch64_simd_st4): New patterns.
41959 * config/aarch64/aarch64.c (aarch64_simd_attr_length_rglist)
41960 (aarch64_reverse_mask): New functions.
41961
41962 2015-01-21 Alan Hayward <alan.hayward@arm.com>
41963
41964 * config/aarch64/aarch64-protos.h (aarch64_simd_disambiguate_copy):
41965 Declare.
41966 * config/aarch64/aarch64.c (aarch64_classify_address): Allow extra
41967 addressing modes for BE.
41968 (aarch64_print_operand): Add 'R' specifier.
41969 (aarch64_simd_disambiguate_copy): Delete.
41970 (aarch64_simd_emit_reg_reg_move): New function.
41971 * config/aarch64/aarch64-simd.md: Use aarch64_simd_emit_reg_reg_move
41972 in define_splits for structural moves.
41973 (mov<mode>): Use less restrictive predicates.
41974 (*aarch64_mov<mode>): Simplify and only allow for LE.
41975 (*aarch64_be_movoi, *aarch64_be_movci, *aarch64_be_movxi): New.
41976
41977 2015-01-21 Alan Hayward <alan.hayward@arm.com>
41978
41979 * rtlanal.c (subreg_get_info): Exit early for simple and common cases.
41980
41981 2015-01-21 Richard Henderson <rth@redhat.com>
41982
41983 PR target/64669
41984 * ccmp.c (used_in_cond_stmt_p): Remove.
41985 (expand_ccmp_expr): Don't use it.
41986
41987 2015-01-21 Nick Clifton <nickc@redhat.com>
41988
41989 * config/rl78/rl78.c (rl78_calculate_death_notes): Look inside
41990 PARALLELs.
41991
41992 2015-01-21 Richard Biener <rguenther@suse.de>
41993
41994 PR middle-end/64313
41995 * tree-core.h (builtin_info, builtin_info_type): Turn from
41996 an object with two arrays into an array of an object with
41997 decl and two flags, implicit_p and declared_p.
41998 * tree.h (builtin_decl_explicit, builtin_decl_implicit,
41999 set_builtin_decl, set_builtin_decl_implicit_p,
42000 builtin_decl_explicit_p, builtin_decl_implicit_p): Adjust.
42001 (set_builtin_decl_declared_p, builtin_decl_declared_p): New functions.
42002 * builtins.c (builtin_info): Adjust.
42003 * gimplify.c (gimplify_addr_expr): References to builtins
42004 that have been declared by the user makes them eligible for
42005 use by the compiler. Call set_builtin_decl_implicit_p on them.
42006
42007 2015-01-20 Jeff Law <law@redhat.com>
42008
42009 PR target/59946
42010 * config/m68k/m68k.md (Comparison expanders and patterns): Do not
42011 allow pc-relative addresses in operand predicates or constraints.
42012
42013 2015-01-21 Bin Cheng <bin.cheng@arm.com>
42014
42015 * config/arm/arm.c (arm_cortex_a53_tune, arm_cortex_a57_tune): Prefer
42016 neon on aarch32 processors for stringops.
42017
42018 2015-01-19 Jan Hubicka <hubicka@ucw.cz>
42019
42020 PR ipa/63576
42021 * ipa-utils.c (ipa_merge_profiles): Merge speculative edges.
42022
42023 2015-01-19 Jan Hubicka <hubicka@ucw.cz>
42024
42025 PR lto/45375
42026 * ipa-inline.c: Include lto-streamer.h
42027 (report_inline_failed_reason): Output source file differences and
42028 flags on optimization/target node mismatch.
42029 (can_inline_edge_p): Consider caller to be the outer inline function;
42030 be less restrictive about matching opimize and optimize_size attributes.
42031 (inline_account_function_p): Break out from ...
42032 (inline_small_functions): ... here.
42033 * ipa-inline-transform.c (clone_inlined_nodes): Use
42034 inline_account_function_p.
42035 (inline_call): Use optimize attribution; use inline_account_function_p.
42036 (inline_transform): Use opt_for_fn.
42037 * ipa-inline.h (inline_account_function_p): Declare.
42038
42039 2015-01-20 Jakub Jelinek <jakub@redhat.com>
42040
42041 PR debug/64663
42042 * dwarf2out.c (decl_piece_node): Don't put bitsize into
42043 mode if bitsize <= 0.
42044 (decl_piece_bitsize, adjust_piece_list, add_var_loc_to_decl,
42045 dw_sra_loc_expr): Use HOST_WIDE_INT instead of int for bit
42046 sizes and positions.
42047
42048 2015-01-20 Chung-Lin Tang <cltang@codesourcery.com>
42049
42050 * config/nios2/nios2.c (nios2_asm_file_end): Implement
42051 TARGET_ASM_FILE_END hook for adding .note.GNU-stack section when
42052 needed.
42053 (TARGET_ASM_FILE_END): Define.
42054
42055 2015-01-20 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
42056
42057 * config/arm/arm-protos.h (enum arm_sched_autopref): New constants.
42058 (struct tune_params): Use the enum.
42059 * arm.c (arm_*_tune): Update.
42060 (arm_option_override): Update.
42061
42062 2015-01-20 Richard Biener <rguenther@suse.de>
42063
42064 PR ipa/64684
42065 * ipa-reference.c (add_static_var): Inline ...
42066 (analyze_function): ... here after splitting out from ...
42067 (is_proper_for_analysis): ... this.
42068
42069 2015-01-20 Matthew Wahab <matthew.wahab@arm.com>
42070
42071 PR target/64149
42072 * config/arm/arm.opt: Remove lra option and arm_lra_flag variablesle.
42073 * config/arm/arm.h (MODE_BASE_REG_CLASS): Remove use of arm_lra_flagag,
42074 replace the conditional with it's true branch.
42075 * config/arm/arm.config (TARGET_LRA_P): Set to hook_bool_void_true.
42076 (arm_lra_p): Remove.
42077
42078 2015-01-20 Eric Botcazou <ebotcazou@adacore.com>
42079
42080 * config/visium/visium.h (LIB_SPEC): Adjust in default case.
42081
42082 2015-01-20 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
42083
42084 * config/tilegx/mul-tables.c: Move symtab.h include after
42085 coretypes.h include.
42086 * config/tilepro/mul-tables.c: Add includes hashtab.h, hash-set.h,
42087 vec.h, machmode.h, tm.h, hard-reg-set.h, input.h, function.h, rtl.h,
42088 flags.h, statistics.h, double-int.h, real.h, fixed-value.h, alias.h,
42089 wide-int.h, inchash.h, tree.h, insn-config.h, expmed.h, dojump.h,
42090 explow.h, calls.h, emit-rtl.h, varasm.h, stmt.h.
42091
42092 2015-01-20 Igor Zamyatin <igor.zamyatin@intel.com>
42093
42094 PR bootstrap/64676
42095 Revert:
42096 2015-01-19 Igor Zamyatin <igor.zamyatin@intel.com>
42097
42098 PR rtl-optimization/64081
42099 * loop-iv.c (def_pred_latch_p): New function.
42100 (latch_dominating_def): Allow specific cases with non-single
42101 definitions.
42102 (iv_get_reaching_def): Likewise.
42103 (check_complex_exit_p): New function.
42104 (check_simple_exit): Use check_complex_exit_p to allow certain cases
42105 with exits not executing on any iteration.
42106
42107 2015-01-19 Jan Hubicka <hubicka@ucw.cz>
42108
42109 PR lto/45375
42110 * i386.c (ix86_option_override_internal): Use ix86_tune_cost
42111 to set branch cost.
42112
42113 2015-01-19 Jan Hubicka <hubicka@ucw.cz>
42114
42115 PR lto/45375
42116 * i386.c (gate): Check flag_expensive_optimizations and
42117 optimize_size.
42118 (ix86_option_override_internal): Drop optimize_size condition
42119 on MASK_ACCUMULATE_OUTGOING_ARGS, MASK_VZEROUPPER,
42120 MASK_AVX256_SPLIT_UNALIGNED_LOAD, MASK_AVX256_SPLIT_UNALIGNED_STORE,
42121 MASK_PREFER_AVX128.
42122 (ix86_avx256_split_vector_move_misalign,
42123 ix86_avx256_split_vector_move_misalign): Check optimize_insn_for_speed.
42124 * sse.md (all uses of TARGET_PREFER_AVX128): Add
42125 optimize_insn_for_speed_p check.
42126
42127 2015-01-19 Matthew Fortune <matthew.fortune@imgtec.com>
42128
42129 * config/mips/mips.h (FP_ASM_SPEC): New define.
42130 (ASM_SPEC): Remove floating-point options and use FP_ASM_SPEC
42131 instead.
42132
42133 2015-01-19 Oleg Endo <olegendo@gcc.gnu.org>
42134
42135 PR target/53988
42136 * config/sh/sh-protos.h (sh_find_set_of_reg): Make sure not to return
42137 nullptr for insn when reaching the first insn.
42138 * config/sh/sh.c (sh_unspec_insn_p): Rewrite using subrtx_iterator.
42139 (sh_insn_operands_modified_between_p): Add nullptr check.
42140 (sh_find_extending_set_of_reg): Fix log message. Don't accept
42141 sign extending mem load if the insn contains any UNSPEC or
42142 UNSPEC_VOLATILE.
42143
42144 2015-01-19 Jan Hubicka <hubicka@ucw.cz>
42145
42146 * params.def (inline-unit-growth): Drop to 15%.
42147 * invoke.texi (inline-unit-growth): Document change.
42148
42149 2015-01-19 Martin Liska <mliska@suse.cz>
42150
42151 PR ipa/64668
42152 * ipa-icf-gimple.c (func_checker::compare_operand): Call proper
42153 function for second argument of OBJ_TYPE_REF.
42154
42155 2015-01-19 Jan Hubicka <hubicka@ucw.cz>
42156
42157 PR ipa/64218
42158 * ipa-inline.c (want_inline_function_to_all_callers_p): Fix check
42159 whether function is an alias.
42160
42161 2015-01-19 Jan Hubicka <hubicka@ucw.cz>
42162
42163 * ipa-devirt.c (ipa_devirt): Drop polymorphic call info in hopeless
42164 cases.
42165
42166 2015-01-19 Vladimir Makarov <vmakarov@redhat.com>
42167
42168 PR rtl-optimization/64671
42169 * lra-remat.c (operand_to_remat): Don't consider jump and call
42170 insns.
42171
42172 2015-01-19 David Edelsohn <dje.gcc@gmail.com>
42173
42174 PR target/59828
42175 * config/rs6000/default64.h: Include rs6000-cpus.def.
42176 (TARGET_DEFAULT) [LITTLE_ENDIAN]: Use ISA 2.7 (POWER8).
42177 (TARGET_DEFAULT) [BIG_ENDIAN]: Use POWER4.
42178 * config/rs6000/driver-rs6000.c (detect_processor_aix): Add POWER7
42179 and POWER8.
42180 * config/rs6000/linux64.h (PROCESSOR_DEFAULT64): Always default to
42181 POWER8.
42182 * config/rs6000/rs6000.c (rs6000_file_start): Emit .machine
42183 pseudo-op to specify assembler dialect.
42184
42185 2015-01-19 Martin Liska <mliska@suse.cz>
42186
42187 PR ipa/64664
42188 * ipa-icf.c (sem_item_optimizer::filter_removed_items):
42189 Handle safe potentially removed nodes during filtering.
42190
42191 2015-01-19 Martin Liska <mliska@suse.cz>
42192
42193 * doc/extend.texi (no_icf): Add new attribute description.
42194 * ipa-icf.c (sem_item_optimizer::merge_classes): Handle cases
42195 where the pass attempts to merge a function with no_icf attribute.
42196
42197 2015-01-19 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
42198
42199 PR target/64532
42200 * doc/md.texi (ARM Options): Document register constraints.
42201
42202 2015-01-19 Jiong Wang <jiong.wang@arm.com>
42203 Andrew Pinski <apinski@cavium.com>
42204
42205 PR target/64304
42206 * config/aarch64/aarch64.md (define_insn "*ashl<mode>3_insn"): Deleted.
42207 (ashl<mode>3): Don't expand if operands[2] is not constant.
42208
42209 2015-01-19 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
42210
42211 PR target/64448
42212 * config/aarch64/aarch64-simd.md (aarch64_simd_bsl<mode>_internal):
42213 Match xor-and-xor RTL pattern.
42214
42215 2015-01-19 Igor Zamyatin <igor.zamyatin@intel.com>
42216
42217 PR rtl-optimization/64081
42218 * loop-iv.c (def_pred_latch_p): New function.
42219 (latch_dominating_def): Allow specific cases with non-single
42220 definitions.
42221 (iv_get_reaching_def): Likewise.
42222 (check_complex_exit_p): New function.
42223 (check_simple_exit): Use check_complex_exit_p to allow certain cases
42224 with exits not executing on any iteration.
42225
42226 2015-01-19 Jakub Jelinek <jakub@redhat.com>
42227
42228 * common.opt (fgraphite): Fix a typo.
42229
42230 2015-01-19 Felix Yang <felix.yang@huawei.com>
42231
42232 * config/aarch64/aarch64-simd.md (aarch64_<maxmin_uns>p<mode>): New
42233 pattern.
42234 * config/aarch64/aarch64-simd-builtins.def (smaxp, sminp, umaxp,
42235 uminp, smax_nanp, smin_nanp): New builtins.
42236 * config/aarch64/arm_neon.h (vpmax_s8, vpmax_s16, vpmax_s32,
42237 vpmax_u8, vpmax_u16, vpmax_u32, vpmaxq_s8, vpmaxq_s16, vpmaxq_s32,
42238 vpmaxq_u8, vpmaxq_u16, vpmaxq_u32, vpmax_f32, vpmaxq_f32, vpmaxq_f64,
42239 vpmaxqd_f64, vpmaxs_f32, vpmaxnm_f32, vpmaxnmq_f32, vpmaxnmq_f64,
42240 vpmaxnmqd_f64, vpmaxnms_f32, vpmin_s8, vpmin_s16, vpmin_s32, vpmin_u8,
42241 vpmin_u16, vpmin_u32, vpminq_s8, vpminq_s16, vpminq_s32, vpminq_u8,
42242 vpminq_u16, vpminq_u32, vpmin_f32, vpminq_f32, vpminq_f64, vpminqd_f64,
42243 vpmins_f32, vpminnm_f32, vpminnmq_f32, vpminnmq_f64, vpminnmqd_f64,
42244 vpminnms_f32): Rewrite using builtin functions.
42245
42246 2015-01-19 Thomas Schwinge <thomas@codesourcery.com>
42247
42248 PR libgomp/64625
42249 * omp-low.c (offload_symbol_decl): Remove variable.
42250 (get_offload_symbol_decl): Remove function.
42251 (expand_omp_target): For BUILT_IN_GOMP_TARGET,
42252 BUILT_IN_GOMP_TARGET_DATA, BUILT_IN_GOMP_TARGET_UPDATE pass NULL
42253 instead of &__OFFLOAD_TABLE__, for BUILT_IN_GOACC_DATA_START,
42254 BUILT_IN_GOACC_ENTER_EXIT_DATA, BUILT_IN_GOACC_PARALLEL,
42255 BUILT_IN_GOACC_UPDATE don't pass it at all.
42256
42257 2015-01-19 Ilya Enkovich <ilya.enkovich@intel.com>
42258
42259 * tree-sra.c (some_callers_have_mismatched_arguments_p): Allow thunk
42260 callers.
42261
42262 2015-01-19 Ilya Enkovich <ilya.enkovich@intel.com>
42263
42264 * ipa-chkp.c (chkp_produce_thunks): Add early param
42265 to split thunks production into two passes. Keep
42266 'always_inline' function bodies after the first pass.
42267 (pass_data_ipa_chkp_early_produce_thunks): New.
42268 (pass_ipa_chkp_early_produce_thunks): New.
42269 (pass_ipa_chkp_produce_thunks::execute): Adjust to new
42270 chkp_produce_thunks signature.
42271 (make_pass_ipa_chkp_early_produce_thunks): New.
42272 * passes.def (pass_ipa_chkp_early_produce_thunks): New.
42273 (pass_ipa_chkp_produce_thunks): Move after local optimizations.
42274 * tree-pass.h (make_pass_ipa_chkp_early_produce_thunks): New.
42275
42276 2015-01-18 Jan Hubicka <hubicka@ucw.cz>
42277
42278 * cgraph.c (cgraph_node::dump): Dump profile flags.
42279
42280 2015-01-18 Oleg Endo <olegendo@gcc.gnu.org>
42281
42282 PR target/64652
42283 * config/sh/sh.md (udivsi3_i4, divsi3_i4): Make use of sfunc address
42284 reg appear first in the parallel.
42285
42286 2015-01-18 Jan Hubicka <hubicka@ucw.cz>
42287
42288 * ipa-reference.c (set_reference_optimization_summary,
42289 ipa_reference_get_not_written_global): Do nothing if ipa-reference is
42290 disabled.
42291 (ignore_module_statics): New static var.
42292 (propagate_bits): If ipa-reference is disabled, do not look into local
42293 properties.
42294 (analyze_function): Disable analysis when ipa_reference is disabled.
42295 (generate_summary): Do not dump when reference is disabled;
42296 collect vars accessed from functions with ipa-reference disabled.
42297 (get_read_write_all_from_node): When ipa-reference is disabled, use the
42298 node flags.
42299 (gate): Enable for LTO.
42300 (ignore_edge_p): New function.
42301 (propagate): Skip functions w/o ipa-reference analysis.
42302 * optc-save-gen.awk: Handle optimize_debug correctly.
42303 * opth-gen.awk: Likewise.
42304 * common.opt (fauto-inc-dec, fdelete-dead-exceptions, ffunction-cse,
42305 fgraphite, fstrict-volatile-bitfields, fira-algorithm, fira-region,
42306 fira-share-save-slots, fira-share-spill-slots,
42307 fmodulo-sched-allow-regmoves, fpartial-inlining,
42308 sched-stalled-insns, fsched-stalled-insns-dep, fstrict-overflow,
42309 ftracer, ftree-parallelize-loops, fassociative-math,
42310 freciprocal-math, fvect-cost-model, fsimd-cost-model): Mark as
42311 Optimization
42312 (fauto-profile, fcommon, fdata-sections, fipa-icf-variables,
42313 ftoplevel-reorder, funit-at-a-time, fwhole-program): Do not mark as
42314 Optimization.
42315 * ipa-icf.c (gate, sem_item_optimizer::filter_removed_items):
42316 Fix for IPA.
42317
42318 2015-01-18 Jan Hubicka <hubicka@ucw.cz>
42319
42320 PR ipa/64378
42321 * ipa-prop.c (try_make_edge_direct_virtual_call): Clear speculative
42322 flag correctly.
42323 * ipa-cp.c (ipa_get_indirect_edge_target_1): Handle speculation.
42324
42325 2015-01-18 Sandra Loosemore <sandra@codesourcery.com>
42326
42327 * doc/invoke.texi ([-funroll-loops], [-funroll-all-loops]):
42328 Remove duplicate option listings.
42329
42330 2015-01-18 Felix Yang <felix.yang@huawei.com>
42331
42332 * auto-profile.c (afdo_find_equiv_class): Remove unnecessary test.
42333 (autofdo_source_profile::get_callsite_total_count,
42334 function_instance::get_function_instance_by_decl,
42335 string_table::get_index, string_table::get_index_by_decl,
42336 afdo_vpt_for_early_inline, afdo_callsite_hot_enough_for_early_inline):
42337 Fix comment typos. Reformatting and minor code rearrangement.
42338
42339 2015-01-17 Segher Boessenkool <segher@kernel.crashing.org>
42340
42341 * config/rs6000/rs6000.md (probe_stack): Delete.
42342 (probe_stack_address): New.
42343
42344 2015-01-17 Segher Boessenkool <segher@kernel.crashing.org>
42345
42346 * config/rs6000/rs6000.c (rs6000_gimplify_va_arg): Use TARGET_32BIT
42347 to test for 32-bit ABIs, not !TARGET_POWERPC64.
42348
42349 2015-01-17 Segher Boessenkool <segher@kernel.crashing.org>
42350
42351 * config/rs6000/rs6000.c (rs6000_parallel_return): New function.
42352 (rs6000_function_value): Use it. Handle SCmode and TCmode as well,
42353 for TARGET_32BIT && TARGET_POWERPC64. Fix another BITS_PER_WORD
42354 snafu.
42355 (rs6000_libcall_value): Use the new function.
42356
42357 2015-01-17 Sandra Loosemore <sandra@codesourcery.com>
42358
42359 * doc/invoke.texi ([-ftracer]): Remove duplicate option listing.
42360
42361 2015-01-17 Eric Botcazou <ebotcazou@adacore.com>
42362
42363 * reorg.c (fill_simple_delay_slots): If TARGET_FLAGS_REGNUM is valid,
42364 implement a more precise life analysis for it during backward scan.
42365
42366 2015-01-17 Jan Kratochvil <jan.kratochvil@redhat.com>
42367
42368 * dwarf2out.c (gen_producer_string): Ignore also OPT_fpreprocessed.
42369
42370 2015-01-17 Bernd Schmidt <bernds@codesourcery.com>
42371
42372 PR rtl-optimization/52773
42373 * calls.c (emit_library_call_value): When pushing arguments use
42374 stack_pointer_rtx rather than virtual_outgoing_args_rtx in
42375 CALL_INSN_FUNCTION_USAGE. Only emit one of use of the magic
42376 stack pointer reference into CALL_INSN_FUNCTION_USAGE.
42377
42378 2015-01-17 Jeff Law <law@redhat.com>
42379
42380 PR rtl-optimization/32790
42381 * reginfo.c (reg_scan_mark_refs): Look for ZERO_EXTRACT,
42382 not ZERO_EXTEND in SET_DESTs.
42383
42384 2015-01-17 Alan Modra <amodra@gmail.com>
42385
42386 * cprop.c (do_local_cprop): Revert last change.
42387
42388 2015-01-16 DJ Delorie <dj@redhat.com>
42389 Nick Clifton <nickc@redhat.com>
42390
42391 * config/rl78/rl78-real.md (addqi3_real): Allow volatiles.
42392 (addhi3_real): Likewise. Fix [HL+0] syntax.
42393 (subqi3_real): Likewise.
42394 (subhi3_real): Likewise.
42395 (cbranchqi4_real): Likewise. Allow saddr,#imm.
42396 (cbranchhi4_real): Likewise.
42397 (cbranchhi4_real_inverted): Likewise.
42398 (cbranchsi4_real_lt): Likewise.
42399 (cbranchsi4_real_ge): Likewise.
42400 (cbranchsi4_real_ge): Likewise.
42401 * config/rl78/rl78-virt.md (add<mode>3_virt): Likewise.
42402 (sub<mode>3_virt): Likewise.
42403 (cbranchqi4_virt): Likewise.
42404 (cbranchhi4_virt): Likewise.
42405 * config/rl78/rl78.c (rl78_print_operand_1): 'p' modifier means
42406 always use '[reg+imm]' even when imm is zero.
42407 * config/rl78/predicates.md (rl78_volatile_memory_operand): New.
42408 (rl78_general_operand): New.
42409 (rl78_nonimmediate_operand): New.
42410 (rl78_nonfar_operand): Use them.
42411 (rl78_nonfar_nonimm_operand): Likewise.
42412 (rl78_stack_based_mem): Fix.
42413 * config/rl78/constraints.md (Ibqi): New.
42414 (IBqi): New.
42415 (Wsa): New.
42416 (Wsf): New.
42417 (Cs1): Fix.
42418 * config/rl78/rl78-expand.md (andqi3): Accept volatiles.
42419 (iorqi3): Likewise.
42420 (xorqi3): Likewise.
42421 * config/rl78/rl78-protos.h (rl78_sfr_p): New.
42422
42423 * config/rl78/constrains (Qs8): New constraint.
42424 * config/rl78/rl78.c (rl78_flags_already_set): New function.
42425 * config/rl78/rl78-protos.h (rl78_flags_already_set): New prototype.
42426 * config/rl78/rl78-real.md (update_Z): New attribute.
42427 Update patterns to set it.
42428 (cbranchqi4_real): Call rl78_flags_already_set() to determine if a
42429 shorter compare and branch sequence can be used.
42430 (cbranchhi4_real): Likewise.
42431 (cbranchhi4_real_inverted): Likewise.
42432
42433 * config/rl78/predicates.md (uword_operand): Allow symbol_refs.
42434 * config/rl78/rl78-c.c (rl78_register_pragmas): Register __near
42435 address space.
42436 * config/rl78/rl78.c (rl78_get_name_encoding): New.
42437 (rl78_option_override): Allow -mes0 only if C.
42438 (characterize_address): Support subregs of symbol_refs.
42439 (rl78_addr_space_address_mode): Move. Add __near.
42440 (rl78_far_p): Likewise.
42441 (rl78_addr_space_pointer_mode): Likewise.
42442 (rl78_as_legitimate_address): Likewise.
42443 (rl78_addr_space_subset_p): Likewise.
42444 (rl78_addr_space_convert): Likewise.
42445 (rl78_print_operand_1): Support 16-bit addressing of 32-bit
42446 symbols with -mes0.
42447 (transcode_memory_rtx): Don't copy ES if -mes0. Allow symbol[BC]
42448 addressing.
42449 (rl78_alloc_physical_registers_op1): Change logic to prefer
42450 symbol[BC] addressing.
42451 (frodata_section): New.
42452 (rl78_asm_init_sections): Initialize it.
42453 (rl78_select_section): Put __far readonly symbols in .frodata.
42454 (rl78_make_type_far): New.
42455 (rl78_insert_attributes): Force all readonly symbols to be
42456 __far when -mes0.
42457 (rl78_asm_out_integer): New.
42458 * config/rl78/rl78.h (ADDR_SPACE_NEAR): New.
42459 * config/rl78/rl78.opt (-mes0): New.
42460
42461 * config/rl78/rl78.h (ASM_OUTPUT_LABELREF): New.
42462 (ASM_OUTPUT_ALIGNED_DECL_COMMON): New.
42463 (ASM_OUTPUT_ALIGNED_DECL_LOCAL): New.
42464 * config/rl78/rl78-protos.h (rl78_output_labelref): New.
42465 (rl78_saddr_p): New.
42466 (rl78_output_aligned_common): New.
42467 * config/rl78/rl78.c (rl78_output_symbol_ref): Strip encodings.
42468 (rl78_handle_saddr_attribute): New.
42469 (rl78_handle_naked_attribute): New.
42470 (rl78_attribute_table): Add saddr.
42471 (rl78_print_operand_1): Don't print '!' on saddr operands.
42472 (rl78_print_operand_1): Strip encodings.
42473 (rl78_sfr_p): New.
42474 (rl78_strip_name_encoding): New.
42475 (rl78_attrlist_to_encoding): New.
42476 (rl78_encode_section_info): New.
42477 (rl78_asm_init_sections): New.
42478 (rl78_select_section): New.
42479 (rl78_output_labelref): New.
42480 (rl78_output_aligned_common): New.
42481 (rl78_asm_out_integer): New.
42482 (rl78_asm_ctor_dtor): New.
42483 (rl78_asm_constructor): New.
42484 (rl78_asm_destructor): New.
42485
42486 * config/rl78/rl78-real.md (movqi_es): Rename to movqi_to_es.
42487 * config/rl78/rl78.c (rl78_expand_epilogue): Update.
42488 (transcode_memory_rtx): Update.
42489 (rl78_expand_epilogue): Use A_REG instead of 0.
42490
42491 2015-01-17 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
42492
42493 * config/arm/arm-protos.h (struct tune_params): New field
42494 sched_autopref_queue_depth.
42495 * config/arm/arm.c (sched-int.h): Include header.
42496 (arm_first_cycle_multipass_dfa_lookahead_guard,)
42497 (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD): Define hook.
42498 (arm_slowmul_tune, arm_fastmul_tune, arm_strongarm_tune,)
42499 (arm_xscale_tune, arm_9e_tune, arm_v6t2_tune, arm_cortex_tune,)
42500 (arm_cortex_a8_tune, arm_cortex_a7_tune, arm_cortex_a15_tune,)
42501 (arm_cortex_a53_tune, arm_cortex_a57_tune, arm_xgene1_tune,)
42502 (arm_cortex_a5_tune, arm_cortex_a9_tune, arm_cortex_a12_tune,)
42503 (arm_v7m_tune, arm_cortex_m7_tune, arm_v6m_tune, arm_fa726te_tune):
42504 Specify sched_autopref_queue_depth value. Enabled for A15 and A57.
42505 * config/arm/t-arm (arm.o): Update.
42506 * haifa-sched.c (update_insn_after_change): Update.
42507 (rank_for_schedule): Use auto-prefetcher model, if requested.
42508 (autopref_multipass_init): New static function.
42509 (autopref_rank_for_schedule): New rank_for_schedule heuristic.
42510 (autopref_multipass_dfa_lookahead_guard_started_dump_p): New static
42511 variable for debug dumps.
42512 (autopref_multipass_dfa_lookahead_guard_1): New static helper function.
42513 (autopref_multipass_dfa_lookahead_guard): New global function that
42514 implements TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD hook.
42515 (init_h_i_d): Update.
42516 * params.def (PARAM_SCHED_AUTOPREF_QUEUE_DEPTH): New tuning knob.
42517 * sched-int.h (enum autopref_multipass_data_status): New const enum.
42518 (autopref_multipass_data_): Structure for auto-prefetcher data.
42519 (autopref_multipass_data_def, autopref_multipass_data_t): New typedefs.
42520 (struct _haifa_insn_data:autopref_multipass_data): New field.
42521 (INSN_AUTOPREF_MULTIPASS_DATA): New access macro.
42522 (autopref_multipass_dfa_lookahead_guard): Declare.
42523
42524 2015-01-17 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
42525
42526 * rtlanal.c (get_base_term): Handle SCRATCH.
42527
42528 2015-01-17 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
42529
42530 * config/aarch64/aarch64.c
42531 (aarch64_sched_first_cycle_multipass_dfa_lookahead): Implement hook.
42532 (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD): Define.
42533 * config/arm/arm.c
42534 (arm_first_cycle_multipass_dfa_lookahead): Implement hook.
42535 (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD): Define.
42536
42537 2015-01-17 Alan Modra <amodra@gmail.com>
42538
42539 * cprop.c (do_local_cprop): Disallow replacement of fixed
42540 hard registers.
42541
42542 2015-01-16 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
42543
42544 PR target/62066
42545 * config/arm/arm-builtins.c (arm_expand_neon_args): Call va_end before
42546 early return 0.
42547
42548 2015-01-16 Bernd Edlinger <bernd.edlinger@hotmail.de>
42549
42550 * sanitizer.def (BUILT_IN_TSAN_VPTR_UPDATE): Fixed parameters.
42551 * tsan.c (instrument_expr): Fixed parameters of __tsan_vptr_update.
42552
42553 2015-01-16 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
42554
42555 * config/arm/arm.md: Move comment about splitting Thumb1 patterns to...
42556 * config/arm/thumb1.md: ... Here.
42557
42558 2015-01-16 Segher Boessenkool <segher@kernel.crashing.org>
42559
42560 * config/rs6000/rs6000.c (rs6000_scalar_mode_supported_p): Disallow
42561 TImode for TARGET_32BIT.
42562
42563 2015-01-16 Segher Boessenkool <segher@kernel.crashing.org>
42564
42565 * config/rs6000/rs6000.c (TARGET_LIBGCC_CMP_RETURN_MODE,
42566 TARGET_LIBGCC_SHIFT_COUNT_MODE, TARGET_UNWIND_WORD_MODE): Implement
42567 as ...
42568 (rs6000_abi_word_mode): New function.
42569
42570 2015-01-16 Segher Boessenkool <segher@kernel.crashing.org>
42571
42572 * config/rs6000/rs6000.c (rs6000_va_start): Use MIN_UNITS_PER_WORD
42573 instead of UNITS_PER_WORD to describe the size of stack slots.
42574
42575 2015-01-16 Segher Boessenkool <segher@kernel.crashing.org>
42576
42577 * config/rs6000/rs6000.c (TARGET_PROMOTE_FUNCTION_MODE): Implement
42578 as rs6000_promote_function_mode. Move comment to there.
42579 (rs6000_promote_function_mode): New function.
42580
42581 2015-01-16 Segher Boessenkool <segher@kernel.crashing.org>
42582
42583 * config/rs6000/rs6000.h (PROMOTE_MODE): Correct test for when -m32
42584 -mpowerpc64 is active.
42585
42586 2015-01-16 Ilya Enkovich <ilya.enkovich@intel.com>
42587
42588 PR middle-end/64353
42589 * tree-cfg.c (pass_data_fixup_cfg): Update SSA for
42590 virtuals on start.
42591
42592 2015-01-16 James Greenhalgh <james.greenhalgh@arm.com>
42593
42594 * config/arm/cortex-a57.md: Remove duplicate of file accidentally
42595 introduced in revision 219724.
42596
42597 2015-01-16 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
42598 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
42599
42600 PR target/64263
42601 * config/aarch64/aarch64.md (*movsi_aarch64): Don't split if the
42602 destination is not a GP reg.
42603 (*movdi_aarch64): Likewise.
42604
42605 2015-01-16 David Edelsohn <dje.gcc@gmail.com>
42606
42607 PR target/64623
42608 * config/rs6000/default64.h: Revert ISA change.
42609
42610 2015-01-16 Richard Biener <rguenther@suse.de>
42611
42612 PR middle-end/64614
42613 * tree-ssa-uninit.c: Include tree-cfg.h.
42614 (MAX_SWITCH_CASES): New define.
42615 (convert_control_dep_chain_into_preds): Handle switch statements.
42616 (is_pred_expr_subset_of): Handle x == CST vs. (x & CST) != 0.
42617 (normalize_one_pred_1): Do not split bit-manipulations.
42618 Record (x & CST).
42619
42620 2015-01-16 Richard Biener <rguenther@suse.de>
42621
42622 PR tree-optimization/64568
42623 * tree-ssa-forwprop.c (pass_forwprop::execute): Guard
42624 complex load rewriting for TARGET_MEM_REFs.
42625
42626 2015-01-16 Uros Bizjak <ubizjak@gmail.com>
42627
42628 * builtins.c (expand_builtin_acc_on_device): Check target for NULL.
42629
42630 2015-01-16 Matthew Wahab <matthew.wahab@arm.com>
42631
42632 PR target/64149
42633 * config/aarch64/aarch64.opt: Remove lra option and aarch64_lra_flag
42634 variable.
42635 * config/aarch64/aarch64.c (TARGET_LRA_P): Set to hook_bool_void_true.
42636 (aarch64_lra_p): Remove.
42637
42638 2015-01-16 Ilya Enkovich <ilya.enkovich@intel.com>
42639
42640 PR target/64363
42641 * ipa-chkp.h (chkp_instrumentable_p): New.
42642 * ipa-chkp.c: Include tree-inline.h.
42643 (chkp_instrumentable_p): New.
42644 (chkp_maybe_create_clone): Use chkp_instrumentable_p.
42645 Fix processing of not instrumentable functions.
42646 (chkp_versioning): Use chkp_instrumentable_p. Warn about
42647 not instrumentable functions.
42648 * tree-chkp.c (chkp_add_bounds_to_call_stmt): Use
42649 chkp_instrumentable_p.
42650 * tree-inline.h (copy_forbidden): New.
42651 * tree-inline.c (copy_forbidden): Not static anymore.
42652
42653 2015-01-16 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
42654
42655 * optc-save-gen.awk (cl_target_option_print_diff): Mark indent,
42656 ptr1, ptr2 unused.
42657
42658 2015-01-16 Robert Suchanek <robert.suchanek@imgtec.com>
42659
42660 * lra-constraints.c (curr_insn_transform): Change a reload pseudo of
42661 type OP_OUT to OP_INOUT.
42662
42663 2015-01-16 Robert Suchanek <robert.suchanek@imgtec.com>
42664
42665 * simplify-rtx.c (simplify_replace_fn_rtx): Simplify (lo_sum
42666 (high x) y) to y if x and y have the same base.
42667
42668 2015-01-16 James Greenhalgh <james.greenhalgh@arm.com>
42669
42670 * config/arm/cortex-a57.md: New.
42671 * config/aarch64/aarch64.md: Include it.
42672 * config/aarch64/aarch64-cores.def (cortex-a57): Tune for it.
42673 * config/aarch64/aarch64-tune.md: Regenerate.
42674
42675 2015-01-16 Zhenqiang Chen <zhenqiang.chen@arm.com>
42676
42677 PR target/64015
42678 * ccmp.c (expand_ccmp_next): New function.
42679 (expand_ccmp_expr_1, expand_ccmp_expr): Handle operand insn sequence
42680 and compare insn sequence.
42681 * config/aarch64/aarch64.c (aarch64_code_to_ccmode,
42682 aarch64_gen_ccmp_first, aarch64_gen_ccmp_next): New functions.
42683 (TARGET_GEN_CCMP_FIRST, TARGET_GEN_CCMP_NEXT): New MICRO.
42684 * config/aarch64/aarch64.md (*ccmp_and): Changed to ccmp_and<mode>.
42685 (*ccmp_ior): Changed to ccmp_ior<mode>.
42686 (cmp<mode>): New pattern.
42687 * doc/tm.texi (TARGET_GEN_CCMP_FIRST, TARGET_GEN_CCMP_NEXT): Update
42688 parameters.
42689 * target.def (gen_ccmp_first, gen_ccmp_next): Update parameters.
42690
42691 2015-01-16 Ilya Tocar <ilya.tocar@intel.com>
42692
42693 * config/i386/avx2intrin.h (_mm256_bslli_epi128,
42694 _mm256_bsrli_epi128): New.
42695 * config/i386/emmintrin.h (_mm_bsrli_si128, _mm_bslli_si128): Ditto.
42696
42697 2015-01-15 Jiong Wang <jiong.wang@arm.com>
42698
42699 * expmed.c (store_bit_field_using_insv): Improve warning message.
42700 Use %wu instead of HOST_WIDE_INT_PRINT_UNSIGNED.
42701
42702 2015-01-15 Jiong Wang <jiong.wang@arm.com>
42703
42704 PR rtl-optimization/64011
42705 * expmed.c (store_bit_field_using_insv): Warn and truncate bitsize when
42706 there is partial overflow.
42707
42708 2015-01-16 Chung-Ju Wu <jasonwucj@gmail.com>
42709
42710 * config/nds32/nds32-protos.h (nds32_expand_epilogue): Change
42711 prototype.
42712 (nds32_expand_epilogue_v3pop): Likewise.
42713 * config/nds32/nds32.md (sibcall): Define this for sibling call
42714 optimization.
42715 (sibcall_register): Likewise.
42716 (sibcall_immediate): Likewise.
42717 (sibcall_value): Likewise.
42718 (sibcall_value_register): Likewise.
42719 (sibcall_value_immediate): Likewise.
42720 (sibcall_epilogue): Likewise.
42721 (epilogue): Pass false to indicate this is not a sibcall epilogue.
42722 * config/nds32/nds32.c (nds32_expand_epilogue): Consider sibcall case.
42723 (nds32_expand_epilogue_v3pop): Likewise.
42724
42725 2015-01-16 Chung-Ju Wu <jasonwucj@gmail.com>
42726
42727 * config/nds32/nds32-protos.h (nds32_can_use_return_insn): New.
42728 * config/nds32/nds32.md (unspec_volatile_func_return): Remove.
42729 (return_internal): New.
42730 (return): Define this named pattern.
42731 (simple_return): Define this named pattern.
42732 * config/nds32/nds32.c (nds32_expand_epilogue): Emit return_internal
42733 pattern instead of unspec_volatile_func_return.
42734 (nds32_expand_epilogue_v3pop): Likewise.
42735 (nds32_can_use_return_insn): New function.
42736
42737 2015-01-16 Chung-Ju Wu <jasonwucj@gmail.com>
42738
42739 * config/nds32/constants.md (UNSPEC_VOLATILE_POP25_RETURN): New.
42740 * config/nds32/nds32.md (pop25return): New.
42741 * config/nds32/nds32.c (nds32_expand_epilogue_v3pop): Emit
42742 pop25return pattern.
42743
42744 2015-01-16 Chung-Ju Wu <jasonwucj@gmail.com>
42745
42746 * doc/invoke.texi (NDS32 Options): Remove -mforce-fp-as-gp,
42747 -mforbid-fp-as-gp, and -mex9 options.
42748
42749 2015-01-16 Chung-Ju Wu <jasonwucj@gmail.com>
42750
42751 * doc/invoke.texi (NDS32 Options): Add -mcmodel= option and
42752 remove -mgp-direct option.
42753
42754 2015-01-15 Jan Hubicka <hubicka@ucw.cz>
42755
42756 * doc/invoke.texi (--param early-inlining-insns): Update default value.
42757 * params.def (PARAM_EARLY_INLINING_INSNS): Set to 14.
42758
42759 2015-01-15 Jan Hubicka <hubicka@ucw.cz>
42760
42761 * ipa-inline.c (inline_small_functions): Work around hints
42762 cache issue.
42763
42764 2015-01-15 Sandra Loosemore <sandra@codesourcery.com>
42765
42766 PR target/59710
42767 * doc/invoke.texi (Option Summary): Document new Nios II
42768 -mgpopt= syntax.
42769 (Nios II Options): Likewise.
42770 * config/nios2/nios2.opt: Add -mgpopt= option support.
42771 Modify existing -mgpopt and -mno-gpopt options to be aliases.
42772 * config/nios2/nios2-opts.h (enum nios2_gpopt_type): New.
42773 * config/nios2/nios2.c (nios2_option_override): Adjust
42774 -mgpopt defaulting.
42775 (nios2_in_small_data_p): Return true for explicit small data
42776 sections even with -G0.
42777 (nios2_symbol_ref_in_small_data_p): Adjust to handle new -mgpopt=
42778 option choices.
42779
42780 2015-01-15 Jan Hubicka <hubicka@ucw.cz>
42781
42782 PR ipa/64612
42783 * ipa-inline-transform.c (can_remove_node_now_p): Fix handling
42784 of comdat locals.
42785 (inline_call): Fix removal of aliases.
42786
42787 2015-01-15 Jakub Jelinek <jakub@redhat.com>
42788
42789 * flag-types.h (enum sanitize_code): Add SANITIZE_VPTR,
42790 include SANITIZE_VPTR in SANITIZE_UNDEFINED.
42791 * opts.c (common_handle_option): Add -fsanitize=vptr.
42792 * sanitizer.def (BUILT_IN_UBSAN_HANDLE_DYNAMIC_TYPE_CACHE_MISS,
42793 BUILT_IN_UBSAN_HANDLE_DYNAMIC_TYPE_CACHE_MISS_ABORT): New.
42794 * ubsan.h (enum ubsan_null_ckind): Add UBSAN_DOWNCAST_POINTER,
42795 UBSAN_DOWNCAST_REFERENCE, UBSAN_UPCAST and UBSAN_CAST_TO_VBASE.
42796 (ubsan_expand_vptr_ifn): New prototype.
42797 * internal-fn.c (expand_ANNOTATE, expand_GOMP_SIMD_LANE,
42798 expand_GOMP_SIMD_VF, expand_GOMP_SIMD_LAST_LANE, expand_UBSAN_NULL,
42799 expand_UBSAN_BOUNDS, expand_UBSAN_OBJECT_SIZE, expand_ASAN_CHECK,
42800 expand_LOOP_VECTORIZED): Make argument nameless, remove
42801 ATTRIBUTE_UNUSED.
42802 (expand_UBSAN_VPTR): New function.
42803 * internal-fn.def (UBSAN_NULL, ASAN_CHECK): Use R instead of W
42804 in fn spec.
42805 (UBSAN_VPTR): New internal function.
42806 * sanopt.c (tree_map_traits): Renamed to ...
42807 (sanopt_tree_map_traits): ... this.
42808 (sanopt_tree_triplet, sanopt_tree_triplet_map_traits): New classes.
42809 (sanopt_ctx): Adjust asan_check_map type for tree_map_traits
42810 to sanopt_tree_map_traits renaming. Add vptr_check_map field.
42811 (maybe_optimize_ubsan_vptr_ifn): New function.
42812 (sanopt_optimize_walker): Handle IFN_UBSAN_VPTR.
42813 (pass_sanopt::execute): Likewise. Call sanopt_optimize even for
42814 -fsanitize=vptr.
42815 * tree-ssa-alias.c (call_may_clobber_ref_p_1): Handle certain
42816 internal calls like pure functions for aliasing, even when they
42817 have other side-effects that prevent making them ECF_PURE.
42818 * ubsan.c (ubsan_vptr_type_cache_decl): New variable.
42819 (ubsan_expand_vptr_ifn): New function.
42820
42821 2015-01-15 Vladimir Makarov <vmakarov@redhat.com>
42822
42823 PR rtl-optimization/64110
42824 * stmt.c (parse_output_constraint): Process '^' and '$'.
42825 (parse_input_constraint): Ditto.
42826 * lra-constraints.c (process_alt_operands): Process the new
42827 constraints.
42828 * ira-costs.c (record_reg_classes): Process the new constraint
42829 '^'.
42830 * genoutput.c (indep_constraints): Add '^' and '$'.
42831 * config/i386/sse.md (*vec_dup<mode>): Use '$' instead of '!'.
42832 * doc/md.texi: Add description of the new constraints.
42833
42834 2015-01-15 Thomas Schwinge <thomas@codesourcery.com>
42835 Bernd Schmidt <bernds@codesourcery.com>
42836 Cesar Philippidis <cesar@codesourcery.com>
42837 James Norris <jnorris@codesourcery.com>
42838 Tom de Vries <tom@codesourcery.com>
42839 Ilmir Usmanov <i.usmanov@samsung.com>
42840 Dmitry Bocharnikov <dmitry.b@samsung.com>
42841 Evgeny Gavrin <e.gavrin@samsung.com>
42842 Jakub Jelinek <jakub@redhat.com>
42843
42844 * builtin-types.def (BT_FN_VOID_INT_INT_VAR)
42845 (BT_FN_VOID_INT_PTR_SIZE_PTR_PTR_PTR_INT_INT_VAR)
42846 (BT_FN_VOID_INT_OMPFN_PTR_SIZE_PTR_PTR_PTR_INT_INT_INT_INT_INT_VAR):
42847 New function types.
42848 * builtins.c: Include "gomp-constants.h".
42849 (expand_builtin_acc_on_device): New function.
42850 (expand_builtin, is_inexpensive_builtin): Handle
42851 BUILT_IN_ACC_ON_DEVICE.
42852 * builtins.def (DEF_GOACC_BUILTIN, DEF_GOACC_BUILTIN_COMPILER):
42853 New macros.
42854 * cgraph.c (cgraph_node::create): Consider flag_openacc next to
42855 flag_openmp.
42856 * config.gcc <nvptx-*> (tm_file): Add nvptx/offload.h.
42857 <*-intelmic-* | *-intelmicemul-*> (tm_file): Add
42858 i386/intelmic-offload.h.
42859 * gcc.c (LINK_COMMAND_SPEC, GOMP_SELF_SPECS): For -fopenacc, link
42860 to libgomp and its dependencies.
42861 * config/arc/arc.h (LINK_COMMAND_SPEC): Likewise.
42862 * config/darwin.h (LINK_COMMAND_SPEC_A): Likewise.
42863 * config/i386/mingw32.h (GOMP_SELF_SPECS): Likewise.
42864 * config/ia64/hpux.h (LIB_SPEC): Likewise.
42865 * config/pa/pa-hpux11.h (LIB_SPEC): Likewise.
42866 * config/pa/pa64-hpux.h (LIB_SPEC): Likewise.
42867 * doc/generic.texi: Update for OpenACC changes.
42868 * doc/gimple.texi: Likewise.
42869 * doc/invoke.texi: Likewise.
42870 * doc/sourcebuild.texi: Likewise.
42871 * gimple-pretty-print.c (dump_gimple_omp_for): Handle
42872 GF_OMP_FOR_KIND_OACC_LOOP.
42873 (dump_gimple_omp_target): Handle GF_OMP_TARGET_KIND_OACC_KERNELS,
42874 GF_OMP_TARGET_KIND_OACC_PARALLEL, GF_OMP_TARGET_KIND_OACC_DATA,
42875 GF_OMP_TARGET_KIND_OACC_UPDATE,
42876 GF_OMP_TARGET_KIND_OACC_ENTER_EXIT_DATA.
42877 Dump more data.
42878 * gimple.c: Update comments for OpenACC changes.
42879 * gimple.def: Likewise.
42880 * gimple.h: Likewise.
42881 (enum gf_mask): Add GF_OMP_FOR_KIND_OACC_LOOP,
42882 GF_OMP_TARGET_KIND_OACC_PARALLEL, GF_OMP_TARGET_KIND_OACC_KERNELS,
42883 GF_OMP_TARGET_KIND_OACC_DATA, GF_OMP_TARGET_KIND_OACC_UPDATE,
42884 GF_OMP_TARGET_KIND_OACC_ENTER_EXIT_DATA.
42885 (gimple_omp_for_cond, gimple_omp_for_set_cond): Sort in the
42886 appropriate place.
42887 (is_gimple_omp_oacc, is_gimple_omp_offloaded): New functions.
42888 * gimplify.c: Include "gomp-constants.h".
42889 Update comments for OpenACC changes.
42890 (is_gimple_stmt): Handle OACC_PARALLEL, OACC_KERNELS, OACC_DATA,
42891 OACC_HOST_DATA, OACC_DECLARE, OACC_UPDATE, OACC_ENTER_DATA,
42892 OACC_EXIT_DATA, OACC_CACHE, OACC_LOOP.
42893 (gimplify_scan_omp_clauses, gimplify_adjust_omp_clauses): Handle
42894 OMP_CLAUSE__CACHE_, OMP_CLAUSE_ASYNC, OMP_CLAUSE_WAIT,
42895 OMP_CLAUSE_NUM_GANGS, OMP_CLAUSE_NUM_WORKERS,
42896 OMP_CLAUSE_VECTOR_LENGTH, OMP_CLAUSE_GANG, OMP_CLAUSE_WORKER,
42897 OMP_CLAUSE_VECTOR, OMP_CLAUSE_DEVICE_RESIDENT,
42898 OMP_CLAUSE_USE_DEVICE, OMP_CLAUSE_INDEPENDENT, OMP_CLAUSE_AUTO,
42899 OMP_CLAUSE_SEQ.
42900 (gimplify_adjust_omp_clauses_1, gimplify_adjust_omp_clauses): Use
42901 GOMP_MAP_* instead of OMP_CLAUSE_MAP_*. Use
42902 OMP_CLAUSE_SET_MAP_KIND.
42903 (gimplify_oacc_cache): New function.
42904 (gimplify_omp_for): Handle OACC_LOOP.
42905 (gimplify_omp_workshare): Handle OACC_KERNELS, OACC_PARALLEL,
42906 OACC_DATA.
42907 (gimplify_omp_target_update): Handle OACC_ENTER_DATA,
42908 OACC_EXIT_DATA, OACC_UPDATE.
42909 (gimplify_expr): Handle OACC_LOOP, OACC_CACHE, OACC_HOST_DATA,
42910 OACC_DECLARE, OACC_KERNELS, OACC_PARALLEL, OACC_DATA,
42911 OACC_ENTER_DATA, OACC_EXIT_DATA, OACC_UPDATE.
42912 (gimplify_body): Consider flag_openacc next to flag_openmp.
42913 * lto-streamer-out.c: Include "gomp-constants.h".
42914 * omp-builtins.def (BUILT_IN_ACC_GET_DEVICE_TYPE)
42915 (BUILT_IN_GOACC_DATA_START, BUILT_IN_GOACC_DATA_END)
42916 (BUILT_IN_GOACC_ENTER_EXIT_DATA, BUILT_IN_GOACC_PARALLEL)
42917 (BUILT_IN_GOACC_UPDATE, BUILT_IN_GOACC_WAIT)
42918 (BUILT_IN_GOACC_GET_THREAD_NUM, BUILT_IN_GOACC_GET_NUM_THREADS)
42919 (BUILT_IN_ACC_ON_DEVICE): New builtins.
42920 * omp-low.c: Include "gomp-constants.h".
42921 Update comments for OpenACC changes.
42922 (struct omp_context): Add reduction_map, gwv_below, gwv_this
42923 members.
42924 (extract_omp_for_data, use_pointer_for_field, install_var_field)
42925 (new_omp_context, delete_omp_context, scan_sharing_clauses)
42926 (create_omp_child_function, scan_omp_for, scan_omp_target)
42927 (check_omp_nesting_restrictions, lower_reduction_clauses)
42928 (build_omp_regions_1, diagnose_sb_0, make_gimple_omp_edges):
42929 Update for OpenACC changes.
42930 (scan_sharing_clauses): Handle OMP_CLAUSE_NUM_GANGS:
42931 OMP_CLAUSE_NUM_WORKERS: OMP_CLAUSE_VECTOR_LENGTH,
42932 OMP_CLAUSE_ASYNC, OMP_CLAUSE_WAIT, OMP_CLAUSE_GANG,
42933 OMP_CLAUSE_WORKER, OMP_CLAUSE_VECTOR, OMP_CLAUSE_DEVICE_RESIDENT,
42934 OMP_CLAUSE_USE_DEVICE, OMP_CLAUSE__CACHE_, OMP_CLAUSE_INDEPENDENT,
42935 OMP_CLAUSE_AUTO, OMP_CLAUSE_SEQ. Use GOMP_MAP_* instead of
42936 OMP_CLAUSE_MAP_*.
42937 (expand_omp_for_static_nochunk, expand_omp_for_static_chunk):
42938 Handle GF_OMP_FOR_KIND_OACC_LOOP.
42939 (expand_omp_target, lower_omp_target): Handle
42940 GF_OMP_TARGET_KIND_OACC_PARALLEL, GF_OMP_TARGET_KIND_OACC_KERNELS,
42941 GF_OMP_TARGET_KIND_OACC_UPDATE,
42942 GF_OMP_TARGET_KIND_OACC_ENTER_EXIT_DATA,
42943 GF_OMP_TARGET_KIND_OACC_DATA.
42944 (pass_expand_omp::execute, execute_lower_omp)
42945 (pass_diagnose_omp_blocks::gate): Consider flag_openacc next to
42946 flag_openmp.
42947 (offload_symbol_decl): New variable.
42948 (oacc_get_reduction_array_id, oacc_max_threads)
42949 (get_offload_symbol_decl, get_base_type, lookup_oacc_reduction)
42950 (maybe_lookup_oacc_reduction, enclosing_target_ctx)
42951 (oacc_loop_or_target_p, oacc_lower_reduction_var_helper)
42952 (oacc_gimple_assign, oacc_initialize_reduction_data)
42953 (oacc_finalize_reduction_data, oacc_process_reduction_data): New
42954 functions.
42955 (is_targetreg_ctx): Remove function.
42956 * tree-core.h (enum omp_clause_code): Add OMP_CLAUSE__CACHE_,
42957 OMP_CLAUSE_DEVICE_RESIDENT, OMP_CLAUSE_USE_DEVICE,
42958 OMP_CLAUSE_GANG, OMP_CLAUSE_ASYNC, OMP_CLAUSE_WAIT,
42959 OMP_CLAUSE_AUTO, OMP_CLAUSE_SEQ, OMP_CLAUSE_INDEPENDENT,
42960 OMP_CLAUSE_WORKER, OMP_CLAUSE_VECTOR, OMP_CLAUSE_NUM_GANGS,
42961 OMP_CLAUSE_NUM_WORKERS, OMP_CLAUSE_VECTOR_LENGTH.
42962 * tree.c (omp_clause_code_name, walk_tree_1): Update accordingly.
42963 * tree.h (OMP_CLAUSE_GANG_EXPR, OMP_CLAUSE_GANG_STATIC_EXPR)
42964 (OMP_CLAUSE_ASYNC_EXPR, OMP_CLAUSE_WAIT_EXPR)
42965 (OMP_CLAUSE_VECTOR_EXPR, OMP_CLAUSE_WORKER_EXPR)
42966 (OMP_CLAUSE_NUM_GANGS_EXPR, OMP_CLAUSE_NUM_WORKERS_EXPR)
42967 (OMP_CLAUSE_VECTOR_LENGTH_EXPR): New macros.
42968 * tree-core.h: Update comments for OpenACC changes.
42969 (enum omp_clause_map_kind): Remove.
42970 (struct tree_omp_clause): Change type of map_kind member from enum
42971 omp_clause_map_kind to unsigned char.
42972 * tree-inline.c: Update comments for OpenACC changes.
42973 * tree-nested.c: Likewise. Include "gomp-constants.h".
42974 (convert_nonlocal_reference_stmt, convert_local_reference_stmt)
42975 (convert_tramp_reference_stmt, convert_gimple_call): Update for
42976 OpenACC changes. Use GOMP_MAP_* instead of OMP_CLAUSE_MAP_*. Use
42977 OMP_CLAUSE_SET_MAP_KIND.
42978 * tree-pretty-print.c: Include "gomp-constants.h".
42979 (dump_omp_clause): Handle OMP_CLAUSE_DEVICE_RESIDENT,
42980 OMP_CLAUSE_USE_DEVICE, OMP_CLAUSE__CACHE_, OMP_CLAUSE_GANG,
42981 OMP_CLAUSE_ASYNC, OMP_CLAUSE_AUTO, OMP_CLAUSE_SEQ,
42982 OMP_CLAUSE_WAIT, OMP_CLAUSE_WORKER, OMP_CLAUSE_VECTOR,
42983 OMP_CLAUSE_NUM_GANGS, OMP_CLAUSE_NUM_WORKERS,
42984 OMP_CLAUSE_VECTOR_LENGTH, OMP_CLAUSE_INDEPENDENT. Use GOMP_MAP_*
42985 instead of OMP_CLAUSE_MAP_*.
42986 (dump_generic_node): Handle OACC_PARALLEL, OACC_KERNELS,
42987 OACC_DATA, OACC_HOST_DATA, OACC_DECLARE, OACC_UPDATE,
42988 OACC_ENTER_DATA, OACC_EXIT_DATA, OACC_CACHE, OACC_LOOP.
42989 * tree-streamer-in.c: Include "gomp-constants.h".
42990 (unpack_ts_omp_clause_value_fields) Use GOMP_MAP_* instead of
42991 OMP_CLAUSE_MAP_*. Use OMP_CLAUSE_SET_MAP_KIND.
42992 * tree-streamer-out.c: Include "gomp-constants.h".
42993 (pack_ts_omp_clause_value_fields): Use GOMP_MAP_* instead of
42994 OMP_CLAUSE_MAP_*.
42995 * tree.def (OACC_PARALLEL, OACC_KERNELS, OACC_DATA)
42996 (OACC_HOST_DATA, OACC_LOOP, OACC_CACHE, OACC_DECLARE)
42997 (OACC_ENTER_DATA, OACC_EXIT_DATA, OACC_UPDATE): New tree codes.
42998 * tree.c (omp_clause_num_ops): Update accordingly.
42999 * tree.h (OMP_BODY, OMP_CLAUSES, OMP_LOOP_CHECK, OMP_CLAUSE_SIZE):
43000 Likewise.
43001 (OACC_PARALLEL_BODY, OACC_PARALLEL_CLAUSES, OACC_KERNELS_BODY)
43002 (OACC_KERNELS_CLAUSES, OACC_DATA_BODY, OACC_DATA_CLAUSES)
43003 (OACC_HOST_DATA_BODY, OACC_HOST_DATA_CLAUSES, OACC_CACHE_CLAUSES)
43004 (OACC_DECLARE_CLAUSES, OACC_ENTER_DATA_CLAUSES)
43005 (OACC_EXIT_DATA_CLAUSES, OACC_UPDATE_CLAUSES)
43006 (OACC_KERNELS_COMBINED, OACC_PARALLEL_COMBINED): New macros.
43007 * tree.h (OMP_CLAUSE_MAP_KIND): Cast it to enum gomp_map_kind.
43008 (OMP_CLAUSE_SET_MAP_KIND): New macro.
43009 * varpool.c (varpool_node::get_create): Consider flag_openacc next
43010 to flag_openmp.
43011 * config/i386/intelmic-offload.h: New file.
43012 * config/nvptx/offload.h: Likewise.
43013
43014 2015-01-15 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
43015
43016 * explow.h: Remove duplicate contents.
43017 * dojump.h: Likewise.
43018
43019 2015-01-15 Richard Earnshaw <rearnsha@arm.com>
43020
43021 * arm.c (arm_xgene_tune): Add default initializer for instruction
43022 fusion.
43023
43024 2015-01-15 Jan Hubicka <hubicka@ucw.cz>
43025
43026 PR ipa/64068
43027 PR ipa/64559
43028 * ipa.c (symbol_table::remove_unreachable_nodes):
43029 Do not put abstract origins into boundary.
43030
43031 2015-01-15 Evgeny Stupachenko <evstupac@gmail.com>
43032
43033 * config/i386/gnu-user.h (CRT_GET_RFIB_DATA): Remove EBX register usage.
43034 * config/i386/sysv4.h (CRT_GET_RFIB_DATA): Ditto.
43035
43036 2015-01-15 Steve Ellcey <sellcey@mips.com>
43037
43038 * Makefile.in (PLUGIN_HEADERS): Add dominance.h, cfg.h, cfgrtl.h,
43039 cfganal.h, cfgbuild.h, cfgcleanup.h, lcm.h, cfgloopmanip.h,
43040 builtins.def, and chkp-builtins.def.
43041
43042 2015-01-15 David Edelsohn <dje.gcc@gmail.com>
43043
43044 * config/rs6000/default64.h (TARGET_DEFAULT) [LITTLE_ENDIAN]: Use
43045 ISA 2.7 (POWER8).
43046
43047 2015-01-15 Richard Biener <rguenther@suse.de>
43048
43049 PR tree-optimization/61743
43050 * tree-ssa-pre.c (insert_into_preds_of_block): Preserve range
43051 information on PHIs for some simple cases.
43052
43053 2015-01-15 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
43054
43055 * config/arm/arm.md (generic_sched): Specify xgene1 in 'no' list.
43056 Include xgene1.md.
43057 * config/arm/arm.c (arm_issue_rate): Specify 4 for xgene1.
43058 * config/arm/arm-cores.def (xgene1): New entry.
43059 * config/arm/arm-tables.opt: Regenerate.
43060 * config/arm/arm-tune.md: Regenerate.
43061 * config/arm/bpabi.h (BE8_LINK_SPEC): Specify mcpu=xgene1.
43062
43063 2015-01-15 Yuri Rumyantsev <ysrumyan@gmail.com>
43064
43065 * tree-if-conv.c: Include hash-map.h.
43066 (aggressive_if_conv): New variable.
43067 (fold_build_cond_expr): Add simplification of non-zero condition.
43068 (add_to_dst_predicate_list): Invoke add_to_predicate_list if edge
43069 destination block is not always executed.
43070 (if_convertible_phi_p): Fix commentary, allow phi nodes have more
43071 than two predecessors if AGGRESSIVE_IF_CONV is true.
43072 (if_convertible_stmt_p): Fix commentary.
43073 (all_preds_critical_p): New function.
43074 (has_pred_critical_p): New function.
43075 (if_convertible_bb_p): Fix commentary, if AGGRESSIVE_IF_CONV is true
43076 BB can have more than two predecessors and all incoming edges can be
43077 critical.
43078 (predicate_bbs): Skip predication for loop exit block, use build2_loc
43079 to compute predicate for true edge.
43080 (find_phi_replacement_condition): Delete this function.
43081 (is_cond_scalar_reduction): Add arguments ARG_0, ARG_1 and EXTENDED.
43082 Allow interchange PHI arguments if EXTENDED is false.
43083 Change check that block containing reduction statement candidate
43084 is predecessor of phi-block since phi may have more than two arguments.
43085 (phi_args_hash_traits): New helper structure.
43086 (struct phi_args_hash_traits): New type.
43087 (phi_args_hash_traits::hash): New function.
43088 (phi_args_hash_traits::equal_keys): New function.
43089 (gen_phi_arg_condition): New function.
43090 (predicate_scalar_phi): Add handling of phi nodes with more than two
43091 arguments, delete COND and TRUE_BB arguments, insert body of
43092 find_phi_replacement_condition to predicate ordinary phi nodes.
43093 (predicate_all_scalar_phis): Skip blocks with the only predecessor,
43094 delete call of find_phi_replacement_condition and invoke
43095 predicate_scalar_phi with two arguments.
43096 (insert_gimplified_predicates): Add assert that non-predicated block
43097 don't have statements to insert.
43098 (ifcvt_split_critical_edges): New function.
43099 (ifcvt_split_def_stmt): Likewise.
43100 (ifcvt_walk_pattern_tree): Likewise.
43101 (stmt_is_root_of_bool_pattern): Likewise.
43102 (ifcvt_repair_bool_pattern): Likewise.
43103 (ifcvt_local_dce): Likewise.
43104 (tree_if_conversion): Add initialization of AGGRESSIVE_IF_CONV which
43105 is copy of inner or outer loop force_vectorize field, invoke
43106 ifcvt_split_critical_edges, ifcvt_local_dce and
43107 ifcvt_repair_bool_pattern for aggressive if-conversion.
43108
43109 2015-01-15 Philipp Tomsich <ptomsich@theobroma-systems.com>
43110
43111 * config/aarch64/aarch64.md: Include xgene1.md.
43112 * config/aarch64/xgene1.md: New file.
43113
43114 2015-01-15 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
43115
43116 * config/aarch64/aarch64-cores.def (xgene1): Update/add the
43117 xgene1 (APM XGene-1) core definition.
43118 * config/aarch64/aarch64.c: Add cost tables for APM XGene-1
43119 * config/arm/aarch-cost-tables.h: Add cost tables for APM XGene-1
43120 * doc/invoke.texi: Document -mcpu=xgene1.
43121
43122 2015-01-15 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
43123
43124 * dojump.h: New header file.
43125 * explow.h: Likewise.
43126 * expr.h: Remove includes.
43127 Move expmed.c prototypes to expmed.h.
43128 Move dojump.c prototypes to dojump.h.
43129 Move alias.c prototypes to alias.h.
43130 Move explow.c prototypes to explow.h.
43131 Move calls.c prototypes to calls.h.
43132 Move emit-rtl.c prototypes to emit-rtl.h.
43133 Move varasm.c prototypes to varasm.h.
43134 Move stmt.c prototypes to stmt.h.
43135 (saved_pending_stack_adjust): Move to dojump.h.
43136 (adjust_address): Move to explow.h.
43137 (adjust_address_nv): Move to emit-rtl.h.
43138 (adjust_bitfield_address): Likewise.
43139 (adjust_bitfield_address_size): Likewise.
43140 (adjust_bitfield_address_nv): Likewise.
43141 (adjust_automodify_address_nv): Likewise.
43142 * explow.c (expr_size): Move to expr.c.
43143 (int_expr_size): Likewise.
43144 (tree_expr_size): Likewise.
43145 Include calls.h dojump.h emit-rtl.h explow.h expmed.h
43146 fixed-value.h hashtab.h statistics.h stmt.h varasm.h.
43147 * genemit.c (main): Generate includes statistics.h, real.h,
43148 fixed-value.h, insn-config.h, expmed.h, dojump.h, explow.h, emit-rtl.h,
43149 stmt.h.
43150 * genopinit.c (main): Generate includes hashtab.h, hard-reg-set.h,
43151 function.h, statistics.h, real.h, fixed-value.h, expmed.h, dojump.h,
43152 explow.h, emit-rtl.h, stmt.h.
43153 * genoutput.c (main): Generate includes hashtab.h, statistics.h, real.h,
43154 fixed-value.h, expmed.h, dojump.h, explow.h, emit-rtl.h, stmt.h.
43155 * genemit.c (open_base_files): Generate includes flags.h, statistics.h,
43156 real.h, fixed-value.h, tree.h, expmed.h, dojump.h, explow.h, calls.h,
43157 emit-rtl.h, varasm.h, stmt.h.
43158 * config/tilepro/gen-mul-tables.cc: Generate includes hashtab.h,
43159 hash-set.h, vec.h, machmode.h, tm.h, hard-reg-set.h, input.h,
43160 function.h, rtl.h, flags.h, statistics.h, double-int.h, real.h,
43161 fixed-value.h, alias.h, wide-int.h, inchash.h, tree.h, insn-config.h,
43162 expmed.h, dojump.h, explow.h, calls.h, emit-rtl.h, varasm.h, stmt.h.
43163 * config/tilegx/mul-tables.c: Include alias.h calls.h dojump.h
43164 double-int.h emit-rtl.h explow.h expmed.h fixed-value.h flags.h
43165 function.h hard-reg-set.h hash-set.h hashtab.h inchash.h input.h
43166 insn-config.h machmode.h real.h rtl.h statistics.h stmt.h symtab.h
43167 tm.h tree.h varasm.h vec.h wide-int.h.
43168 * rtlhooks.c: Include alias.h calls.h dojump.h double-int.h emit-rtl.h
43169 explow.h expmed.h fixed-value.h flags.h function.h hard-reg-set.h
43170 hash-set.h hashtab.h inchash.h input.h insn-config.h machmode.h
43171 real.h statistics.h stmt.h tree.h varasm.h vec.h wide-int.h.
43172 * cfgloopanal.c: Include alias.h calls.h dojump.h double-int.h
43173 emit-rtl.h explow.h expmed.h fixed-value.h flags.h inchash.h
43174 insn-config.h real.h statistics.h stmt.h tree.h varasm.h wide-int.h.
43175 * loop-iv.c: Likewise.
43176 * lra-assigns.c: Include alias.h calls.h dojump.h double-int.h
43177 emit-rtl.h explow.h expmed.h fixed-value.h flags.h inchash.h real.h
43178 statistics.h stmt.h tree.h varasm.h wide-int.h.
43179 * lra-constraints.c: Likewise.
43180 * lra-eliminations.c: Likewise.
43181 * lra-lives.c: Likewise.
43182 * lra-remat.c: Likewise.
43183 * bt-load.c: Include alias.h calls.h dojump.h double-int.h emit-rtl.h
43184 explow.h expmed.h fixed-value.h inchash.h insn-config.h real.h
43185 statistics.h stmt.h tree.h varasm.h wide-int.h.
43186 * hw-doloop.c: Likewise.
43187 * ira-color.c: Likewise.
43188 * ira-emit.c: Likewise.
43189 * loop-doloop.c: Likewise.
43190 * loop-invariant.c: Likewise.
43191 * reload.c: Include alias.h calls.h dojump.h double-int.h emit-rtl.h
43192 explow.h expmed.h fixed-value.h inchash.h real.h rtl.h
43193 statistics.h stmt.h tree.h varasm.h wide-int.h.
43194 * caller-save.c: Include alias.h calls.h dojump.h double-int.h
43195 emit-rtl.h explow.h expmed.h fixed-value.h inchash.h real.h
43196 statistics.h stmt.h tree.h varasm.h wide-int.h.
43197 * combine-stack-adj.c: Likewise.
43198 * cse.c: Likewise.
43199 * ddg.c: Likewise.
43200 * ifcvt.c: Likewise.
43201 * ira-costs.c: Likewise.
43202 * jump.c: Likewise.
43203 * lra-coalesce.c: Likewise.
43204 * lra-spills.c: Likewise.
43205 * profile.c: Include alias.h calls.h dojump.h double-int.h emit-rtl.h
43206 explow.h expmed.h fixed-value.h insn-config.h real.h statistics.h
43207 stmt.h varasm.h wide-int.h.
43208 * lra.c: Include alias.h calls.h dojump.h double-int.h emit-rtl.h
43209 explow.h expmed.h fixed-value.h real.h statistics.h stmt.h
43210 varasm.h.
43211 * config/sh/sh_treg_combine.cc: Include alias.h calls.h dojump.h
43212 double-int.h explow.h expmed.h fixed-value.h flags.h real.h
43213 statistics.h stmt.h varasm.h wide-int.h.
43214 * reorg.c: Include alias.h calls.h dojump.h double-int.h explow.h
43215 expmed.h fixed-value.h inchash.h real.h statistics.h stmt.h tree.h
43216 varasm.h wide-int.h.
43217 * reload1.c: Include alias.h calls.h dojump.h double-int.h explow.h
43218 expmed.h fixed-value.h real.h rtl.h statistics.h stmt.h varasm.h.
43219 * config/tilegx/tilegx.c: Include alias.h dojump.h double-int.h
43220 emit-rtl.h explow.h expmed.h fixed-value.h flags.h real.h
43221 statistics.h stmt.h.
43222 * config/tilepro/tilepro.c: Likewise.
43223 * config/mmix/mmix.c: Include alias.h dojump.h double-int.h emit-rtl.h
43224 explow.h expmed.h fixed-value.h real.h statistics.h stmt.h.
43225 * config/pdp11/pdp11.c: Likewise.
43226 * config/xtensa/xtensa.c: Likewise.
43227 * config/lm32/lm32.c: Include alias.h dojump.h double-int.h emit-rtl.h
43228 explow.h expmed.h fixed-value.h real.h statistics.h stmt.h
43229 varasm.h.
43230 * tree-chkp.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
43231 fixed-value.h flags.h function.h hard-reg-set.h hashtab.h
43232 insn-config.h real.h rtl.h statistics.h stmt.h tm.h.
43233 * cilk-common.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
43234 fixed-value.h flags.h function.h hard-reg-set.h hashtab.h
43235 insn-config.h real.h rtl.h statistics.h stmt.h tm.h varasm.h.
43236 * rtl-chkp.c: Likewise.
43237 * tree-chkp-opt.c: Likewise.
43238 * config/arm/arm-builtins.c: Include calls.h dojump.h emit-rtl.h
43239 explow.h expmed.h fixed-value.h flags.h function.h hard-reg-set.h
43240 hashtab.h insn-config.h real.h statistics.h stmt.h varasm.h.
43241 * ipa-icf.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
43242 fixed-value.h flags.h hashtab.h insn-config.h real.h rtl.h
43243 statistics.h stmt.h.
43244 * tree-vect-data-refs.c: Likewise.
43245 * graphite-sese-to-poly.c: Include calls.h dojump.h emit-rtl.h explow.h
43246 expmed.h fixed-value.h flags.h hashtab.h insn-config.h real.h
43247 rtl.h statistics.h stmt.h varasm.h.
43248 * internal-fn.c: Likewise.
43249 * ipa-icf-gimple.c: Likewise.
43250 * lto-section-out.c: Likewise.
43251 * tree-data-ref.c: Likewise.
43252 * tree-nested.c: Likewise.
43253 * tree-outof-ssa.c: Likewise.
43254 * tree-predcom.c: Likewise.
43255 * tree-pretty-print.c: Likewise.
43256 * tree-scalar-evolution.c: Likewise.
43257 * tree-ssa-strlen.c: Likewise.
43258 * tree-vect-loop.c: Likewise.
43259 * tree-vect-patterns.c: Likewise.
43260 * tree-vect-slp.c: Likewise.
43261 * tree-vect-stmts.c: Likewise.
43262 * tsan.c: Likewise.
43263 * targhooks.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
43264 fixed-value.h flags.h hashtab.h insn-config.h real.h statistics.h
43265 stmt.h.
43266 * config/sh/sh-mem.cc: Include calls.h dojump.h emit-rtl.h explow.h
43267 expmed.h fixed-value.h flags.h hashtab.h insn-config.h real.h
43268 statistics.h stmt.h varasm.h.
43269 * loop-unroll.c: Likewise.
43270 * ubsan.c: Likewise.
43271 * tree-ssa-loop-prefetch.c: Include calls.h dojump.h emit-rtl.h explow.h
43272 expmed.h fixed-value.h flags.h hashtab.h real.h rtl.h statistics.h
43273 stmt.h varasm.h.
43274 * dse.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
43275 fixed-value.h function.h hashtab.h statistics.h stmt.h varasm.h.
43276 * tree-switch-conversion.c: Include calls.h dojump.h emit-rtl.h explow.h
43277 expmed.h fixed-value.h hashtab.h insn-config.h real.h rtl.h
43278 statistics.h stmt.h.
43279 * generic-match-head.c: Include calls.h dojump.h emit-rtl.h explow.h
43280 expmed.h fixed-value.h hashtab.h insn-config.h real.h rtl.h
43281 statistics.h stmt.h varasm.h.
43282 * gimple-match-head.c: Likewise.
43283 * lto-cgraph.c: Likewise.
43284 * lto-section-in.c: Likewise.
43285 * lto-streamer-in.c: Likewise.
43286 * lto-streamer-out.c: Likewise.
43287 * tree-affine.c: Likewise.
43288 * tree-cfg.c: Likewise.
43289 * tree-cfgcleanup.c: Likewise.
43290 * tree-if-conv.c: Likewise.
43291 * tree-into-ssa.c: Likewise.
43292 * tree-ssa-alias.c: Likewise.
43293 * tree-ssa-copyrename.c: Likewise.
43294 * tree-ssa-dse.c: Likewise.
43295 * tree-ssa-forwprop.c: Likewise.
43296 * tree-ssa-live.c: Likewise.
43297 * tree-ssa-math-opts.c: Likewise.
43298 * tree-ssa-pre.c: Likewise.
43299 * tree-ssa-sccvn.c: Likewise.
43300 * tree-tailcall.c: Likewise.
43301 * tree-vect-generic.c: Likewise.
43302 * tree-sra.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
43303 fixed-value.h hashtab.h insn-config.h real.h rtl.h stmt.h varasm.h.
43304 * stor-layout.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
43305 fixed-value.h hashtab.h insn-config.h real.h statistics.h stmt.h.
43306 * varasm.c: Likewise.
43307 * coverage.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
43308 fixed-value.h hashtab.h insn-config.h real.h statistics.h stmt.h
43309 varasm.h.
43310 * init-regs.c: Likewise.
43311 * ira.c: Likewise.
43312 * omp-low.c: Likewise.
43313 * stack-ptr-mod.c: Likewise.
43314 * tree-ssa-reassoc.c: Likewise.
43315 * tree-complex.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
43316 fixed-value.h hashtab.h insn-config.h rtl.h statistics.h stmt.h
43317 varasm.h.
43318 * dwarf2cfi.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
43319 fixed-value.h hashtab.h insn-config.h statistics.h stmt.h varasm.h.
43320 * shrink-wrap.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
43321 fixed-value.h hashtab.h real.h rtl.h statistics.h stmt.h.
43322 * recog.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
43323 fixed-value.h hashtab.h real.h rtl.h statistics.h stmt.h varasm.h.
43324 * tree-ssa-phiopt.c: Likewise.
43325 * config/darwin.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
43326 fixed-value.h hashtab.h real.h statistics.h stmt.h.
43327 * config/fr30/fr30.c: Likewise.
43328 * config/frv/frv.c: Likewise.
43329 * expr.c: Likewise.
43330 * final.c: Likewise.
43331 * optabs.c: Likewise.
43332 * passes.c: Likewise.
43333 * simplify-rtx.c: Likewise.
43334 * stmt.c: Likewise.
43335 * toplev.c: Likewise.
43336 * var-tracking.c: Likewise.
43337 * gcse.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
43338 fixed-value.h hashtab.h real.h statistics.h stmt.h varasm.h.
43339 * lower-subreg.c: Likewise.
43340 * postreload-gcse.c: Likewise.
43341 * ree.c: Likewise.
43342 * reginfo.c: Likewise.
43343 * store-motion.c: Likewise.
43344 * combine.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
43345 fixed-value.h hashtab.h real.h stmt.h varasm.h.
43346 * emit-rtl.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
43347 fixed-value.h hashtab.h statistics.h stmt.h.
43348 * dojump.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
43349 fixed-value.h hashtab.h statistics.h stmt.h varasm.h.
43350 * except.c: Likewise.
43351 * explow.c: Likewise.
43352 * tree-dfa.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
43353 fixed-value.h insn-config.h real.h rtl.h statistics.h stmt.h
43354 varasm.h.
43355 * gimple-fold.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
43356 fixed-value.h insn-config.h real.h rtl.h statistics.h varasm.h.
43357 * tree-ssa-structalias.c: Likewise.
43358 * cfgexpand.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
43359 fixed-value.h insn-config.h real.h statistics.h.
43360 * calls.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
43361 fixed-value.h insn-config.h real.h statistics.h stmt.h.
43362 * bb-reorder.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
43363 fixed-value.h insn-config.h real.h statistics.h stmt.h varasm.h.
43364 * cfgbuild.c: Likewise.
43365 * function.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
43366 fixed-value.h real.h rtl.h statistics.h stmt.h.
43367 * cfgrtl.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
43368 fixed-value.h real.h rtl.h statistics.h stmt.h varasm.h.
43369 * dbxout.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
43370 fixed-value.h real.h statistics.h stmt.h.
43371 * auto-inc-dec.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
43372 fixed-value.h real.h statistics.h stmt.h varasm.h.
43373 * cprop.c: Likewise.
43374 * modulo-sched.c: Likewise.
43375 * postreload.c: Likewise.
43376 * ccmp.c: Include calls.h dojump.h emit-rtl.h explow.h fixed-value.h
43377 flags.h function.h hard-reg-set.h hashtab.h insn-config.h real.h
43378 statistics.h stmt.h varasm.h.
43379 * gimple-ssa-strength-reduction.c: Include calls.h dojump.h emit-rtl.h
43380 explow.h fixed-value.h flags.h hashtab.h insn-config.h real.h
43381 rtl.h statistics.h stmt.h varasm.h.
43382 * tree-ssa-loop-ivopts.c: Include calls.h dojump.h emit-rtl.h explow.h
43383 fixed-value.h flags.h hashtab.h real.h rtl.h statistics.h stmt.h
43384 varasm.h.
43385 * expmed.c: Include calls.h dojump.h emit-rtl.h explow.h fixed-value.h
43386 function.h hard-reg-set.h hashtab.h real.h statistics.h stmt.h
43387 varasm.h.
43388 * target-globals.c: Include calls.h dojump.h emit-rtl.h explow.h
43389 fixed-value.h function.h hashtab.h real.h statistics.h stmt.h
43390 varasm.h.
43391 * tree-ssa-address.c: Include calls.h dojump.h emit-rtl.h explow.h
43392 fixed-value.h hashtab.h real.h statistics.h stmt.h varasm.h.
43393 * cfgcleanup.c: Include calls.h dojump.h explow.h expmed.h fixed-value.h
43394 function.h real.h statistics.h stmt.h varasm.h.
43395 * alias.c: Include calls.h dojump.h explow.h expmed.h fixed-value.h
43396 insn-config.h real.h statistics.h stmt.h.
43397 * dwarf2out.c: Include calls.h dojump.h explow.h expmed.h fixed-value.h
43398 statistics.h stmt.h.
43399 * config/nvptx/nvptx.c: Include dojump.h emit-rtl.h explow.h expmed.h
43400 fixed-value.h flags.h hard-reg-set.h insn-config.h real.h
43401 statistics.h stmt.h varasm.h.
43402 * gimplify.c: Include dojump.h emit-rtl.h explow.h expmed.h
43403 fixed-value.h flags.h hashtab.h insn-config.h real.h rtl.h statistics.h.
43404 * asan.c: Include dojump.h emit-rtl.h explow.h expmed.h fixed-value.h
43405 flags.h hashtab.h insn-config.h real.h rtl.h statistics.h stmt.h.
43406 * ipa-devirt.c: Include dojump.h emit-rtl.h explow.h expmed.h
43407 fixed-value.h flags.h hashtab.h insn-config.h real.h rtl.h
43408 statistics.h stmt.h varasm.h.
43409 * ipa-polymorphic-call.c: Likewise.
43410 * config/aarch64/aarch64.c: Include dojump.h emit-rtl.h explow.h
43411 expmed.h fixed-value.h flags.h hashtab.h insn-config.h real.h
43412 statistics.h stmt.h.
43413 * config/c6x/c6x.c: Likewise.
43414 * config/aarch64/aarch64-builtins.c: Include dojump.h emit-rtl.h
43415 explow.h expmed.h fixed-value.h flags.h hashtab.h insn-config.h real.h
43416 statistics.h stmt.h varasm.h.
43417 * ipa-prop.c: Include dojump.h emit-rtl.h explow.h expmed.h
43418 fixed-value.h hashtab.h insn-config.h real.h rtl.h statistics.h
43419 stmt.h varasm.h.
43420 * ipa-split.c: Likewise.
43421 * tree-eh.c: Likewise.
43422 * tree-ssa-dce.c: Likewise.
43423 * tree-ssa-loop-niter.c: Likewise.
43424 * tree-vrp.c: Likewise.
43425 * config/nds32/nds32-cost.c: Include dojump.h emit-rtl.h explow.h
43426 expmed.h fixed-value.h hashtab.h insn-config.h real.h statistics.h
43427 stmt.h.
43428 * config/nds32/nds32-fp-as-gp.c: Likewise.
43429 * config/nds32/nds32-intrinsic.c: Likewise.
43430 * config/nds32/nds32-isr.c: Likewise.
43431 * config/nds32/nds32-md-auxiliary.c: Likewise.
43432 * config/nds32/nds32-memory-manipulation.c: Likewise.
43433 * config/nds32/nds32-pipelines-auxiliary.c: Likewise.
43434 * config/nds32/nds32-predicates.c: Likewise.
43435 * config/nds32/nds32.c: Likewise.
43436 * config/cris/cris.c: Include dojump.h emit-rtl.h explow.h expmed.h
43437 fixed-value.h hashtab.h real.h statistics.h.
43438 * config/alpha/alpha.c: Include dojump.h emit-rtl.h explow.h expmed.h
43439 fixed-value.h hashtab.h real.h statistics.h stmt.h.
43440 * config/arm/arm.c: Likewise.
43441 * config/avr/avr.c: Likewise.
43442 * config/bfin/bfin.c: Likewise.
43443 * config/h8300/h8300.c: Likewise.
43444 * config/i386/i386.c: Likewise.
43445 * config/ia64/ia64.c: Likewise.
43446 * config/iq2000/iq2000.c: Likewise.
43447 * config/m32c/m32c.c: Likewise.
43448 * config/m32r/m32r.c: Likewise.
43449 * config/m68k/m68k.c: Likewise.
43450 * config/mcore/mcore.c: Likewise.
43451 * config/mep/mep.c: Likewise.
43452 * config/mips/mips.c: Likewise.
43453 * config/mn10300/mn10300.c: Likewise.
43454 * config/moxie/moxie.c: Likewise.
43455 * config/pa/pa.c: Likewise.
43456 * config/rl78/rl78.c: Likewise.
43457 * config/rx/rx.c: Likewise.
43458 * config/s390/s390.c: Likewise.
43459 * config/sh/sh.c: Likewise.
43460 * config/sparc/sparc.c: Likewise.
43461 * config/spu/spu.c: Likewise.
43462 * config/stormy16/stormy16.c: Likewise.
43463 * config/v850/v850.c: Likewise.
43464 * config/vax/vax.c: Likewise.
43465 * config/cr16/cr16.c: Include dojump.h emit-rtl.h explow.h expmed.h
43466 fixed-value.h hashtab.h real.h statistics.h stmt.h varasm.h.
43467 * config/msp430/msp430.c: Likewise.
43468 * predict.c: Likewise.
43469 * value-prof.c: Likewise.
43470 * config/epiphany/epiphany.c: Include dojump.h emit-rtl.h explow.h
43471 expmed.h fixed-value.h hashtab.h statistics.h stmt.h.
43472 * config/microblaze/microblaze.c: Likewise.
43473 * config/nios2/nios2.c: Likewise.
43474 * config/rs6000/rs6000.c: Likewise.
43475 * tree.c: Include dojump.h emit-rtl.h explow.h expmed.h fixed-value.h
43476 insn-config.h real.h rtl.h statistics.h stmt.h.
43477 * cgraph.c: Include dojump.h emit-rtl.h explow.h expmed.h fixed-value.h
43478 insn-config.h real.h statistics.h stmt.h.
43479 * fold-const.c: Include dojump.h emit-rtl.h explow.h expmed.h
43480 fixed-value.h insn-config.h real.h statistics.h stmt.h varasm.h.
43481 * tree-inline.c: Include dojump.h emit-rtl.h explow.h expmed.h
43482 fixed-value.h real.h rtl.h statistics.h stmt.h varasm.h.
43483 * builtins.c: Include dojump.h emit-rtl.h explow.h expmed.h
43484 fixed-value.h real.h statistics.h stmt.h.
43485 * config/arc/arc.c: Include dojump.h emit-rtl.h explow.h expmed.h
43486 fixed-value.h statistics.h stmt.h.
43487 * config/visium/visium.c: Include dojump.h emit-rtl.h explow.h expmed.h
43488 stmt.h.
43489
43490 2015-01-15 Jakub Jelinek <jakub@redhat.com>
43491
43492 * gengtype.c (create_user_defined_type): Workaround
43493 -Wmaybe-uninitialized false positives.
43494 * cse.c (fold_rtx): Likewise.
43495 * loop-invariant.c (gain_for_invariant): Likewise.
43496
43497 2015-01-15 Eric Botcazou <ebotcazou@adacore.com>
43498
43499 * expr.c (expand_expr_real_1) <normal_inner_ref>: Use the expression to
43500 set the memory attributes in all cases but clear MEM_EXPR if need be.
43501
43502 2015-01-15 Yuri Rumyantsev <ysrumyan@gmail.com>
43503
43504 PR tree-optimization/64434
43505 * cfgexpand.c (reorder_operands): New function.
43506 (expand_gimple_basic_block): Insert call of reorder_operands if
43507 optimized is true.
43508
43509 2015-01-15 Matthew Fortune <matthew.fortune@imgtec.com>
43510
43511 * config/mips/micromips.md (*swp): Remove explicit parallel.
43512 (jraddiusp, *movep<MOVEP1:mode><MOVEP2:mode>): Likewise.
43513 * config/mips/mips-dsp.md (add<DSPV:mode>3): Likewise.
43514 (mips_add<DSP:dspfmt1>_s_<DSP:dspfmt2>, sub<DSPV:mode>3): Likewise.
43515 (mips_sub<DSP:dspfmt1>_s_<DSP:dspfmt2>, mips_addsc): Likewise.
43516 (mips_addwc, mips_absq_s_<DSPQ:dspfmt2>): Likewise.
43517 (mips_precrq_rs_ph_w, mips_precrqu_s_qb_ph): Likewise.
43518 (mips_shll_<DSPV:dspfmt2>, mips_shll_s_<DSPQ:dspfmt2>): Likewise.
43519 (mips_muleu_s_ph_qbl, mips_muleu_s_ph_qbr): Likewise.
43520 (mips_mulq_rs_ph, mips_muleq_s_w_phl, mips_muleq_s_w_phr): Likewise.
43521 (mips_dpaq_s_w_ph, mips_dpsq_s_w_ph, mips_mulsaq_s_w_ph): Likewise.
43522 (mips_dpaq_sa_l_w, mips_dpsq_sa_l_w, mips_maq_s_w_phl): Likewise.
43523 (mips_maq_s_w_phr, mips_maq_sa_w_phl, mips_maq_sa_w_phr): Likewise.
43524 (mips_extr_w, mips_extr_r_w, mips_extr_rs_w): Likewise.
43525 (mips_extr_s_h, mips_extp, mips_extpdp, mips_mthlip): Likewise.
43526 (mips_wrdsp): Likewise.
43527 * config/mips/mips-dspr2.md (mips_absq_s_qb): Remove explicit
43528 parallel.
43529 (mips_addu_ph, mips_addu_s_ph, mips_cmpgdu_eq_qb): Likewise.
43530 (mips_cmpgdu_lt_qb, mips_cmpgdu_le_qb, mulv2hi3): Likewise.
43531 (mips_mul_s_ph, mips_mulq_rs_w, mips_mulq_s_ph): Likewise.
43532 (mips_mulq_s_w, mips_subu_ph, mips_subu_s_ph): Likewise.
43533 (mips_dpaqx_s_w_ph, mips_dpaqx_sa_w_ph): Likewise.
43534 (mips_dpsqx_s_w_ph, mips_dpsqx_sa_w_ph): Likewise.
43535 * config/mips/mips-fixed.md (usadd<mode>3): Remove explicit parallel.
43536 (ssadd<mode>3, ussub<mode>3, sssub<mode>3, ssmul<mode>3): Likewise.
43537 (ssmaddsqdq4, ssmsubsqdq4): Likewise.
43538
43539 2015-01-14 Matthew Fortune <matthew.fortune@imgtec.com>
43540
43541 * config/mips/mips.c (mips_rtx_costs): Set costs for LSA/DLSA.
43542 (mips_print_operand): Support 'y' to print exact log2 in decimal
43543 of a const_int.
43544 * config/mips/mips.h (ISA_HAS_LSA): New define.
43545 (ISA_HAS_DLSA): Likewise.
43546 * config/mips/mips.md (<GPR:d>lsa): New define_insn.
43547 * config/mips/predicates.md (const_immlsa_operand): New predicate.
43548
43549 2015-01-15 Martin Liska <mliska@suse.cz>
43550
43551 PR target/64377
43552 * optc-save-gen.awk: Add support for array types.
43553
43554 2015-01-15 Richard Biener <rguenther@suse.de>
43555
43556 PR middle-end/64365
43557 * tree-data-ref.c (dr_analyze_indices): Make sure that accesses
43558 for MEM_REF access functions with the same base can never partially
43559 overlap.
43560
43561 2015-01-14 Marcos Diaz <marcos.diaz@tallertechnologies.com>
43562
43563 * common.opt: New option -fstack-protector-explicit.
43564 * cfgexpand.c (SPCT_FLAG_EXPLICIT): New enum.
43565 (stack_protect_decl_phase): Handle stack_protect attribute for
43566 explicit stack protection requests.
43567 (expand_used_vars): Similarly.
43568 * doc/cpp.texi (__SSP_EXPLICIT__): Document predefined macro.
43569 * doc/extend.texi: Add documentation for "stack_protect" attribute.
43570 * doc/invoke.texi: Add documentation for -fstack-protector-explicit.
43571
43572 2015-01-14 Oleg Endo <olegendo@gcc.gnu.org>
43573
43574 PR target/53988
43575 * config/sh/sh-protos.h (sh_find_set_of_reg): Add option to ignore
43576 reg-reg copies.
43577 (sh_extending_set_of_reg): New struct.
43578 (sh_find_extending_set_of_reg, sh_split_tst_subregs,
43579 sh_remove_reg_dead_or_unused_notes): New Declarations.
43580 * config/sh/sh.c (sh_remove_reg_dead_or_unused_notes,
43581 sh_find_extending_set_of_reg, sh_split_tst_subregs,
43582 sh_extending_set_of_reg::use_as_extended_reg): New functions.
43583 * config/sh/sh.md (*tst<mode>_t_zero): Rename to *tst<mode>_t_subregs,
43584 convert to insn_and_split and use new function sh_split_tst_subregs.
43585
43586 2015-01-14 Sandra Loosemore <sandra@codesourcery.com>
43587
43588 * doc/invoke.texi (Option Summary): Reclassify -fuse-ld as a linker
43589 option.
43590 (Optimization Options): Move -fuse-ld documentation to...
43591 (Link Options): ...here.
43592
43593 2015-01-14 Matthew Fortune <matthew.fortune@imgtec.com>
43594
43595 * config/mips/constraints.md (ZC): Add support for R6 LL/SC
43596 offsets.
43597 (ZD): Update to use ISA_HAS_9BIT_DISPLACEMENT.
43598 * config/mips/mips.h (ISA_HAS_PREFETCH_9BIT): Rename to...
43599 (ISA_HAS_9BIT_DISPLACEMENT): ... this. New macro.
43600 * config/mips/sync.md (sync_compare_and_swap<mode>): Use ZC
43601 instead of ZR for the memory operand of LL/SC.
43602 (compare_and_swap_12, sync_add<mode>): Likewise.
43603 (sync_<optab>_12, sync_old_<optab>_12): Likewise.
43604 (sync_new_<optab>_12, sync_nand_12): Likewise.
43605 (sync_old_nand_12, sync_new_nand_12): Likewise.
43606 (sync_sub<mode>, sync_old_add<mode>): Likewise.
43607 (sync_old_sub<mode>, sync_new_add<mode>): Likewise.
43608 (sync_new_sub<mode>, sync_<optab><mode>): Likewise.
43609 (sync_old_<optab><mode>, sync_new_<optab><mode>"): Likewise.
43610 (sync_nand<mode>, sync_old_nand<mode>): Likewise.
43611 (sync_new_nand<mode>, sync_lock_test_and_set<mode>): Likewise.
43612 (test_and_set_12, atomic_compare_and_swap<mode>): Likewise.
43613 (atomic_exchange<mode>_llsc, atomic_fetch_add<mode>_llsc): Likewise.
43614 * doc/md.texi (ZC): Update description.
43615
43616 2015-01-14 Andrew MacLeod <amacleod@redhat.com>
43617
43618 * builtins.c (expand_builtin_atomic_exchange): Remove error when
43619 memory model is CONSUME.
43620 (expand_builtin_atomic_compare_exchange, expand_builtin_atomic_load,
43621 expand_builtin_atomic_store): Change invalid memory model errors to
43622 warnings.
43623 (expand_builtin_atomic_clear): Change invalid model errors to warnings
43624 and issue warning for CONSUME.
43625
43626 2015-01-14 Aldy Hernandez <aldyh@redhat.com>
43627
43628 * lto-cgraph: Update function comments for
43629 lto_symtab_encoder_encode_*.
43630
43631 2015-01-14 Ilya Verbin <ilya.verbin@intel.com>
43632
43633 * Makefile.in (site.exp): Do not set ENABLE_LTO.
43634
43635 2015-01-14 Ilya Verbin <ilya.verbin@intel.com>
43636
43637 * cgraphunit.c (ipa_passes): Remove argument from ipa_write_summaries.
43638 * lto-cgraph.c (select_what_to_stream): Remove argument, use
43639 lto_stream_offload_p instead.
43640 * lto-streamer.h (select_what_to_stream): Remove argument.
43641 * passes.c (ipa_write_summaries): Likewise.
43642 * tree-pass.h (ipa_write_summaries): Likewise.
43643
43644 2015-01-14 Richard Biener <rguenther@suse.de>
43645
43646 PR tree-optimization/59354
43647 * tree-vect-slp.c (vect_build_slp_tree_1): Treat loads from
43648 groups larger than the slp group size as having gaps.
43649
43650 2015-01-14 Andrew MacLeod <amacleod@redhat.com>
43651
43652 PR middle-end/59448
43653 * builtins.c (get_memmodel): Promote consume to acquire always.
43654
43655 2015-01-14 Ilya Tocar <ilya.tocar@intel.com>
43656
43657 PR target/64386
43658 * config/i386/i386.c (ix86_expand_sse_cmp): Handle V64QImode,
43659 V32HImode.
43660
43661 2015-01-14 Ilya Tocar <ilya.tocar@intel.com>
43662
43663 PR target/64393
43664 * common/config/i386/i386-common.c (OPTION_MASK_ISA_AVX512VBMI_SET):
43665 Enable AVX512BW.
43666 (OPTION_MASK_ISA_AVX512BW_UNSET): Disable AVX512VBMI.
43667 * config/i386/i386.c (ix86_hard_regno_mode_ok): Don't check
43668 AVX512VBMI, as it implies AVX512BW.
43669
43670 2015-01-14 Ilya Tocar <ilya.tocar@intel.com>
43671
43672 PR target/64387
43673 * config/i386/sse.md (vec_unpacks_hi_v8sf): Fix predicate.
43674 (vec_unpacks_hi_v16sf): Ditto.
43675
43676 2015-01-14 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
43677
43678 * config/aarch64/arm_neon.h: Error out if AdvancedSIMD
43679 is not available.
43680
43681 2015-01-14 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
43682
43683 * doc/invoke.texi (mapcs): Mention deprecation.
43684 (mapcs-frame): Likewise.
43685
43686 2015-01-14 Thomas Preud'homme <thomas.preudhomme@arm.com>
43687
43688 PR target/64453
43689 * config/arm/arm.c (callee_saved_reg_p): Define.
43690 (arm_compute_save_reg0_reg12_mask): Use callee_saved_reg_p to check if
43691 register is callee saved instead of !call_used_regs[reg].
43692 (thumb1_compute_save_reg_mask): Likewise.
43693
43694 2015-01-14 Hale Wang <hale.wang@arm.com>
43695
43696 * config/arm/arm.c: Tune the max_cond_insns/branch_cost for
43697 Cortex-M7.
43698
43699 2015-01-14 Richard Biener <rguenther@suse.de>
43700
43701 PR lto/64415
43702 * tree-inline.c (insert_debug_decl_map): Check destination
43703 function MAY_HAVE_DEBUG_STMTS.
43704 (insert_init_debug_bind): Likewise.
43705 (insert_init_stmt): Remove redundant check.
43706 (remap_gimple_stmt): Drop debug stmts if the destination
43707 function has var-tracking assignments disabled.
43708
43709 2015-01-14 Martin Liska <mliska@suse.cz>
43710
43711 * ipa-icf-gimple.c (func_checker::compare_operand): Add support for
43712 IMAGPART_EXPR and REALPART_EXPR and fix BIT_FIELD_REF comparison.
43713
43714 2015-01-14 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
43715
43716 PR target/64460
43717 * config/arm/arm.md (*<arith_shift_insn>_multsi): Set 'shift' to 2.
43718 (*<arith_shift_insn>_shiftsi): Set 'shift' attr to 3.
43719
43720 2015-01-14 Matthew Fortune <matthew.fortune@imgtec.com>
43721
43722 * config/mips/mips.h (MIPS_ISA_LEVEL_SPEC): Only infer an ISA
43723 level from an ARCH; do not inject the default.
43724 (MIPS_DEFAULT_ISA_LEVEL_SPEC): New macro split out from
43725 MIPS_ISA_LEVEL_SPEC.
43726 (MIPS_ISA_NAN2008_SPEC): Update comment.
43727 (BASE_DRIVER_SELF_SPECS): Likewise.
43728 * config/mips/elfoabi.h (DRIVER_SELF_SPECS): Add
43729 MIPS_DEFAULT_ISA_LEVEL_SPEC.
43730 * config/mips/mti-elf.h (DRIVER_SELF_SPECS): Likewise.
43731 * config/mips/mti-linux.h (DRIVER_SELF_SPECS): Likewise.
43732 * config/mips/sde.h (DRIVER_SELF_SPECS): Likewise.
43733
43734 2015-01-14 Richard Biener <rguenther@suse.de>
43735
43736 PR tree-optimization/64493
43737 PR tree-optimization/64495
43738 * tree-vect-loop.c (vect_finalize_reduction): For double-reductions
43739 assign the proper vectorized PHI to the inner loop exit PHIs.
43740
43741 2015-01-14 Joey Ye <joey.ye@arm.com>
43742
43743 * config/arm/arm.c (arm_compute_save_reg_mask):
43744 Do not save lr in case of tail call.
43745 * config/arm/thumb2.md (*thumb2_pop_single): New pattern.
43746
43747 2015-01-14 Martin Uecker <uecker@eecs.berkeley.edu>
43748
43749 * tree-vrp.c (check_array_ref): Emit more warnings
43750 for warn_array_bounds >= 2.
43751 * common.opt: New option -Warray-bounds=.
43752 * doc/invoke.texi: Document -Warray-bounds=.
43753
43754 2015-01-14 Chung-Ju Wu <jasonwucj@gmail.com>
43755
43756 * config/nds32/nds32.opt (mforce-fp-as-gp): Remove.
43757 (mforbid-fp-as-gp): Remove.
43758 (mex9): Remove.
43759 * config/nds32/nds32-fp-as-gp.c (nds32_have_prologue_p): Remove.
43760 (nds32_symbol_load_store_p): Remove.
43761 (nds32_fp_as_gp_check_available): Clean up implementation.
43762 * config/nds32/nds32.h (LINK_SPEC): Remove -mforce-as-gp and -mex9
43763 cases.
43764 * config/nds32/nds32.c (nds32_asm_file_start): No need to consider
43765 fp-as-gp and ex9 cases.
43766
43767 2015-01-13 Jan Hubicka <hubicka@ucw.cz>
43768
43769 * tree-profile.c (init_ic_make_global_vars): Drop workaround
43770 for bintuils bug 14342.
43771 (init_ic_make_global_vars): Likewise.
43772 (gimple_init_edge_profiler): Likewise.
43773 (gimple_gen_ic_func_profiler): Likewise.
43774
43775 2015-01-13 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
43776
43777 * ipa-inline.c (inline_small_functions): Swap the operands in
43778 enum.
43779
43780 2015-01-13 Jan Hubicka <hubicka@ucw.cz>
43781
43782 PR ipa/64481
43783 * ipa-inline-analysis.c (node_growth_cache): Remove.
43784 (initialize_growth_caches): Do not initialize it.
43785 (free_growth_caches): Do not free it.
43786 (do_estimate_growth): Rename to ...
43787 (estimate_growth): ... this one; drop growth cache code.
43788 (growth_likely_positive): Always go the heuristics way.
43789 * ipa-inline.c (can_inline_edge_p): Walk through aliases.
43790 (reset_edge_caches): Do not reset node growth.
43791 (heap_edge_removal_hook): Do not maintain cache.
43792 (inline_small_functions): Likewise; strenghten sanity check.
43793 (ipa_inline): Do not maintain caches.
43794 * ipa-inline.h (node_growth_cache): Remove.
43795 (do_estimate_growth): Remove to ...
43796 (estimate_growth): this one; remove inline version.
43797 (reset_node_growth_cache): Remove.
43798
43799 2015-01-13 Jan Hubicka <hubicka@ucw.cz>
43800
43801 PR ipa/64565
43802 * ipa-inline.c (inline_small_functions): Update callee keys after
43803 resolving speculation
43804 (inline_small_functions): Always check monotonicity of the queue.
43805
43806 2015-01-13 Marek Polacek <polacek@redhat.com>
43807
43808 PR middle-end/64391
43809 * trans-mem.c (get_attrs_for): Return NULL_TREE if X is NULL_TREE.
43810
43811 2015-01-13 Jakub Jelinek <jakub@redhat.com>
43812
43813 PR rtl-optimization/64286
43814 * ree.c (combine_reaching_defs): Move part of comment earlier,
43815 remove !SCALAR_INT_MODE_P check.
43816 (add_removable_extension): Don't add vector mode
43817 extensions if all uses of the source register aren't the same
43818 vector extensions.
43819
43820 2015-01-13 Renlin Li <renlin.li@arm.com>
43821
43822 * config/arm/arm.h (CLZ_DEFINED_VALUE_AT_ZERO): Return 2.
43823 (CTZ_DEFINED_VALUE_AT_ZERO): Ditto.
43824
43825 2015-01-13 Martin Liska <mliska@suse.cz>
43826
43827 * ipa-icf.c (sem_function::equals_private): Call new functions
43828 cl_target_option_print_diff and cl_optimization_print_diff.
43829 * optc-save-gen.awk (cl_target_option_print_diff): New function.
43830 (cl_optimization_print_diff): Likewise.
43831 * opth-gen.awk: Likewise.
43832
43833 2015-01-13 Richard Sandiford <richard.sandiford@arm.com>
43834
43835 * config/aarch64/aarch64.md (subsi3, *subsi3_uxtw, subdi3)
43836 (*sub_<optab><ALLX:mode>_<GPI:mode>, *sub_<optab><SHORT:mode>_si_uxtw)
43837 (*sub_<optab><ALLX:mode>_shft_<GPI:mode>)
43838 (*sub_<optab><SHORT:mode>_shft_si_uxtw, *sub_<optab><mode>_multp2)
43839 (*sub_<optab>si_multp2_uxtw, *sub_uxt<mode>_multp2)
43840 (*sub_uxtsi_multp2_uxtw): Add stack pointer sources.
43841
43842 2015-01-13 Andrew Pinski <apinski@cavium.com>
43843
43844 * config/aarch64/aarch64.c (fusion_load_store): Check dest mode
43845 instead of src mode.
43846
43847 2015-01-13 Richard Biener <rguenther@suse.de>
43848
43849 PR lto/64373
43850 * lto-streamer-out.c (tree_is_indexable): Guard for NULL
43851 DECL_CONTEXT.
43852
43853 2015-01-13 Andrew Pinski <apinski@cavium.com>
43854
43855 * config/aarch64/aarch64.c (aarch64_operands_ok_for_ldpstp): Reject
43856 volatile mems.
43857 (aarch64_operands_adjust_ok_for_ldpstp): Likewise.
43858
43859 2015-01-13 Jakub Jelinek <jakub@redhat.com>
43860
43861 PR middle-end/63974
43862 * cfgexpand.c (expand_computed_goto): Don't call
43863 convert_memory_address here.
43864
43865 2015-01-13 Richard Biener <rguenther@suse.de>
43866
43867 PR tree-optimization/64406
43868 * tree-loop-distibution.c (pass_loop_distribution::execute):
43869 Reset the SCEV hashtable if we distributed anything.
43870
43871 2015-01-13 Richard Biener <rguenther@suse.de>
43872
43873 PR tree-optimization/64404
43874 * tree-vect-stmts.c (vectorizable_load): Reject conflicting
43875 SLP types for CSEd loads.
43876
43877 2015-01-13 Thomas Preud'homme <thomas.preudhomme@arm.com>
43878
43879 PR tree-optimization/64436
43880 * tree-ssa-math-opts.c (find_bswap_or_nop_1): Move code performing the
43881 merge of two symbolic numbers for a bitwise OR to ...
43882 (perform_symbolic_merge): This. Also fix computation of the range and
43883 end of the symbolic number corresponding to the result of a bitwise OR.
43884
43885 2015-01-13 Richard Biener <rguenther@suse.de>
43886
43887 PR tree-optimization/64568
43888 * tree-ssa-forwprop.c (pass_forwprop::execute): Properly
43889 release defs of removed stmts, avoid splitting TARGET_MEM_REFs.
43890
43891 2015-01-13 Chung-Ju Wu <jasonwucj@gmail.com>
43892
43893 * config/nds32/nds32.c (nds32_legitimate_address_p): Consider
43894 TARGET_CMODEL_LARGE and TARGET_CMODEL_MEDIUM cases.
43895
43896 2015-01-13 Chung-Ju Wu <jasonwucj@gmail.com>
43897
43898 * config/nds32/nds32.h (NDS32_SYMBOL_FLAG_RODATA): Define our own
43899 target-specific symbol_ref flag.
43900 (NDS32_SYMBOL_REF_RODATA_P): Define it to check if the symbol_ref
43901 resides in rodata section.
43902 * config/nds32/nds32.c (TARGET_ENCODE_SECTION_INFO): Define.
43903 (nds32_encode_section_info): New function.
43904
43905 2015-01-13 Chung-Ju Wu <jasonwucj@gmail.com>
43906
43907 * config/nds32/nds32.md (call): Use pseudo instruction bal which
43908 clobbers TA_REGNUM if large code model is specified.
43909 (call_register): Likewise.
43910 (call_immediate): Likewise.
43911 (call_value): Likewise.
43912 (call_value_register): Likewise.
43913 (call_value_immediate): Likewise.
43914
43915 2015-01-13 Chung-Ju Wu <jasonwucj@gmail.com>
43916
43917 * config/nds32/nds32.h (TARGET_CMODEL_SMALL): New macro.
43918 (TARGET_CMODEL_MEDIUM): New macro.
43919 (TARGET_CMODEL_LARGE): New macro.
43920 * config/nds32/nds32.c (nds32_asm_file_start): Display corresponding
43921 code model setting in assembly code.
43922
43923 2015-01-13 Chung-Ju Wu <jasonwucj@gmail.com>
43924
43925 * common/config/nds32/nds32-common.c (TARGET_DEFAULT_TARGET_FLAGS):
43926 Remove MASK_GP_DIRECT flag.
43927 * config/nds32/nds32.h (MULTILIB_DEFAULTS): Have -mcmodel=medium as
43928 one of the multilib default options.
43929 * config/nds32/nds32.opt (mgp-direct): Remove.
43930 * config/nds32/t-mlibs (MULTILIB_OPTIONS): Use -mcmodel instead of
43931 -mgp-direct. We also remove unnecessary -mlittle-endian/-mbig-endian.
43932
43933 2015-01-13 Chung-Ju Wu <jasonwucj@gmail.com>
43934
43935 * config/nds32/nds32.opt (mcmodel): Add new option.
43936 * config/nds32/nds32-opts.h (nds32_cmodel_type): Add new enum type
43937 to describe code model.
43938
43939 2015-01-13 Oleg Endo <olegendo@gcc.gnu.org>
43940
43941 PR target/64479
43942 * rtlanal.c (set_reg_p): Handle SEQUENCE constructs.
43943
43944 2015-01-12 Kaz Kojima <kkojima@gcc.gnu.org>
43945
43946 * config/sh/sh.c (sh_atomic_assign_expand_fenv): New function.
43947 (TARGET_ATOMIC_ASSIGN_EXPAND_FENV): Define.
43948 (sh_builtin_get_fpscr, sh_builtin_set_fpscr): New variables.
43949 (sh_init_builtins): Record decls for __builtin_sh_get_fpscr and
43950 __builtin_sh_set_fpscr.
43951
43952 2015-01-12 Sandra Loosemore <sandra@codesourcery.com>
43953
43954 * doc/invoke.texi ([-Wsuggest-attribute=]): Don't use parentheses
43955 after a funtion name just to indicate it is a function.
43956 ([-fsanitize-undefined-trap-on-error]): Likewise.
43957 ([-fdbg-cnt=]): Likewise.
43958 ([-mmemcpy]): Likewise.
43959 ([-mflush-func]): Likewise.
43960 ([-msynci]): Likewise.
43961
43962 2015-01-12 Sandra Loosemore <sandra@codesourcery.com>
43963
43964 * doc/invoke.texi ([-Wbad-function-cast]): Rewrite to avoid confusing
43965 example.
43966
43967 2015-01-12 Jakub Jelinek <jakub@redhat.com>
43968
43969 PR tree-optimization/64563
43970 * tree-vrp.c (vrp_evaluate_conditional): Check for VR_RANGE
43971 instead of != VR_VARYING.
43972
43973 PR target/64513
43974 * config/i386/i386.c (ix86_expand_prologue): Add
43975 REG_FRAME_RELATED_EXPR to %rax and %r10 pushes.
43976
43977 PR tree-optimization/64454
43978 * tree-vrp.c (simplify_div_or_mod_using_ranges): Optimize
43979 op0 % op1 into op0 if op0 is in range [-op1 + 1, op1 - 1]
43980 for signed or [0, op1 - 1] for unsigned modulo.
43981 (simplify_stmt_using_ranges): Call simplify_div_or_mod_using_ranges
43982 even if op1 does not satisfy integer_pow2p.
43983
43984 PR other/64370
43985 * sreal.c (sreal::to_double): Use ldexp instead of scalbnl.
43986
43987 2015-01-12 Jeff Law <law@redhat.com>
43988
43989 PR target/64461
43990 * config/m68k/m68k.md (truncsiqi2): Disable for TARGET_COLDFIRE.
43991 (trunchiqi2, truncsihi2): Similarly.
43992
43993 * config/h8300/h8300.c (Fpa): Use RTX_FRAME_RELATED_P directly
43994 rather than calling F.
43995
43996 2015-01-12 Bernd Edlinger <bernd.edlinger@hotmail.de>
43997
43998 * tsan.c (instrument_expr): Use force_gimple_operand.
43999 Use may_be_nonaddressable_p instead of is_gimple_addressable.
44000
44001 2015-01-12 Richard Biener <rguenther@suse.de>
44002
44003 PR tree-optimization/64530
44004 * tree-loop-distribution.c (pg_add_dependence_edges): Shuffle
44005 back dr1.
44006
44007 2015-01-12 Richard Biener <rguenther@suse.de>
44008
44009 PR middle-end/64357
44010 * tree-cfg.c (gimple_can_merge_blocks_p): Protect simple
44011 latches properly.
44012
44013 2015-01-12 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
44014
44015 * config/arm/arm.c (arm_cortex_a12_tune): Update entries to match
44016 Cortex-A17 tuning parameters.
44017 * config/arm/arm-cores.def (cortex-a12): Schedule for cortex-a17.
44018
44019 2015-01-12 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
44020
44021 * config/arm/arm-protos.h (tune_params): Add fuseable_ops field.
44022 * config/arm/arm.c (arm_macro_fusion_p): New function.
44023 (arm_macro_fusion_pair_p): Likewise.
44024 (TARGET_SCHED_MACRO_FUSION_P): Define.
44025 (TARGET_SCHED_MACRO_FUSION_PAIR_P): Likewise.
44026 (ARM_FUSE_NOTHING): Likewise.
44027 (ARM_FUSE_MOVW_MOVT): Likewise.
44028 (arm_slowmul_tune, arm_fastmul_tune, arm_strongarm_tune,
44029 arm_xscale_tune, arm_9e_tune, arm_v6t2_tune, arm_cortex_tune,
44030 arm_cortex_a8_tune, arm_cortex_a7_tune, arm_cortex_a15_tune,
44031 arm_cortex_a53_tune, arm_cortex_a57_tune, arm_cortex_a9_tune,
44032 arm_cortex_a12_tune, arm_v7m_tune, arm_v6m_tune, arm_fa726te_tune
44033 arm_cortex_a5_tune): Specify fuseable_ops value.
44034
44035 2015-01-12 H.J. Lu <hongjiu.lu@intel.com>
44036
44037 PR bootstrap/64561
44038 * configure.ac (HAVE_LD_PIE_COPYRELOC): Update Linux/x86-64 linker
44039 test for PIE with copy reloc.
44040 * configure: Regenerated.
44041
44042 2015-01-12 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
44043
44044 * config/arm/arm.c (arm_load_tp): Use R0_REGNUM instead of constant 0
44045 in gen_rtx_REG.
44046 (arm_tls_descseq_addr): Likewise.
44047 (arm_gen_movmemqi): Likewise.
44048 (arm_expand_epilogue_apcs_frame): Likewise.
44049 (arm_expand_epilogue): Likewise.
44050 (arm_expand_prologue): Likewise. Use R1_REGNUM instead of constant 1
44051 in gen_rtx_REG.
44052
44053 2015-01-12 Martin Liska <mliska@suse.cz>
44054
44055 PR ipa/64550
44056 * ipa-icf-gimple.c (func_checker::compare_memory_operand): Compare
44057 volatility for correct operands.
44058
44059 2015-01-12 Martin Liska <mliska@suse.cz>
44060
44061 * ipa-icf.c (sem_function::equals_wpa): Add indirect_calls as
44062 indication that a function is not leaf.
44063 (sem_function::compare_polymorphic_p): Likewise.
44064
44065 2015-01-12 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
44066
44067 * config/visium/visium.c: Add includes hashtab.h, hash-set.h,
44068 machmode.h, input.h, statistics.h, vec.h, double-int.h, real.h,
44069 fixed-value.h, alias.h, symtab.h, tree-core.h, wide-int.h, inchash.h,
44070 fold-const.h, tree-check.h.
44071
44072 2015-01-12 Jan Hubicka <hubicka@ucw.cz>
44073
44074 PR ipa/63967
44075 PR ipa/64425
44076 * ipa-inline.c (compute_uninlined_call_time,
44077 compute_inlined_call_time): Use counts for extra precision when
44078 needed possible.
44079 (big_speedup_p): Fix formating.
44080 (RELATIVE_TIME_BENEFIT_RANGE): Remove.
44081 (relative_time_benefit): Remove.
44082 (edge_badness): Turn DECL_DISREGARD_INLINE_LIMITS into hint;
44083 merge guessed and read profile paths.
44084 (inline_small_functions): Count only !optimize_size functions into
44085 initial size; be more lax about sanity check when profile is used;
44086 be sure to update inlined function profile when profile is read.
44087
44088 2015-01-12 Jan Hubicka <hubicka@ucw.cz>
44089
44090 PR ipa/63470
44091 * ipa-inline-analysis.c (inline_edge_duplication_hook): Adjust
44092 cost when edge becomes direct.
44093 * ipa-prop.c (make_edge_direct): Do not adjust when speculation
44094 is resolved or when introducing new speculation.
44095
44096 2015-01-12 Chen Gang <gang.chen.5i5j@gmail.com>
44097
44098 PR ipa/64551
44099 PR ipa/64552
44100 * ipa-icf.c (sem_function::equals_private): Use '&&' instead of
44101 '||' to fix typo issue.
44102
44103 * tree.h (target_opts_for_fn): Check NULL_TREE since it can
44104 accept and return NULL.
44105
44106 2015-01-12 Martin Liska <mliska@suse.cz>
44107
44108 * cgraph.c (cgraph_edge::remove_callee): Move function to header
44109 file for being inlined.
44110 (cgraph_set_edge_callee): Delete.
44111 (cgraph_edge::redirect_callee): Move function to header file
44112 for being inlined.
44113 (cgraph_edge::make_direct): Use new function.
44114 (cgraph_edge::dump_edge_flags): New function created from
44115 static dump_edge_flags function.
44116 (cgraph_node::dump): Use new function.
44117 (cgraph_edge::verify_count_and_frequency): New function created
44118 from verify_edge_count_and_frequency.
44119 (cgraph_edge::verify_corresponds_to_fndecl): New function created
44120 from verify_edge_corresponds_to_fndecl.
44121 (verify_edge_corresponds_to_fndecl): Delete.
44122 (cgraph_node::verify_node): Use new function.
44123 * cgraph.h (cgraph_edge::set_callee): New function.
44124 (cgraph_edge::dump_edge_flags): Likewise.
44125 (cgraph_edge::verify_corresponds_to_fndecl): Likewise.
44126
44127 2015-01-11 Jan Hubicka <hubicka@ucw.cz>
44128
44129 * ipa-utils.c (estimate_function_body_sizes): Do not
44130 free node params when called late with early=true.
44131
44132 2015-01-11 James Greenhalgh <james.greenhalgh@arm.com>
44133
44134 * doc/md.texi (Instruction Patterns): Rewrite text for
44135 clarity.
44136 (Example): Likewise.
44137
44138 2015-01-10 Sandra Loosemore <sandra@codesourcery.com>
44139
44140 * doc/invoke.texi (Option Summary): Break long lines.
44141 [(-fdiagnostics-color)]: Put long literal in @smallexample
44142 instead of inline.
44143 [(-fsanitize-recover)]: Likewise.
44144 [(-fdump-rtl-split*)]: Rewrite to fix over-full hbox.
44145 [(-ffast-math)]: Likewise.
44146 [(--param max-inline-insns-recursive)]: Likewise.
44147 [(--param max-inline-recursive-depth)]: Likewise.
44148 [(-mno-text-section-literals)]: Likewise.
44149
44150 2015-01-10 Thomas Schwinge <thomas@codesourcery.com>
44151
44152 * doc/install.texi: Update for libgomp being renamed from "GNU
44153 OpenMP Runtime Library" to "GNU Offloading and Multi Processing
44154 Runtime Library".
44155 * doc/sourcebuild.texi: Likewise.
44156
44157 2015-01-10 Anthony Green <green@moxielogic.com>
44158
44159 * config/moxie/moxie.c (moxie_option_override): Fix forcing of
44160 mul.x availability for moxiebox configuration.
44161
44162 2015-01-09 Anthony Green <green@moxielogic.com>
44163
44164 * config/moxie/moxie.md: Tabify assembly output.
44165
44166 2015-01-09 Anthony Green <green@moxielogic.com>
44167
44168 * config/moxie/moxie.md (CC_REG): Correct register definition.
44169
44170 2015-01-09 Sandra Loosemore <sandra@codesourcery.com>
44171
44172 * doc/invoke.texi ([-fvtable-verify]): Copy-edit and fix markup.
44173 ([-fvtv-debug], [-fvtv-counts]): Likewise. Correct location
44174 of log files.
44175
44176 2015-01-09 Andreas Tobler <andreast@gcc.gnu.org>
44177
44178 * config/arm/arm.h (MAX_SYNC_LIBFUNC_SIZE): Delete semicolon.
44179
44180 2015-01-09 Bernd Schmidt <bernds@codesourcery.com>
44181 Jakub Jelinek <jakub@redhat.com>
44182
44183 PR middle-end/64412
44184 * lto-streamer.h (lto_stream_offload_p): New declaration.
44185 * lto-streamer.c (lto_stream_offload_p): New variable.
44186 * cgraphunit.c (ipa_passes): Set lto_stream_offload_p
44187 at the same time as section_name_prefix.
44188 * lto-streamer-out.c (hash_tree): Don't hash TREE_TARGET_OPTION
44189 if lto_stream_offload_p.
44190 * tree-streamer-out.c (streamer_pack_tree_bitfields): Don't
44191 stream TREE_TARGET_OPTION if lto_stream_offload_p.
44192 (write_ts_function_decl_tree_pointers): Don't
44193 stream DECL_FUNCTION_SPECIFIC_TARGET if lto_stream_offload_p.
44194 * tree-streamer-in.c (unpack_value_fields): Don't stream
44195 TREE_TARGET_OPTION in if ACCEL_COMPILER.
44196 (lto_input_ts_function_decl_tree_pointers): Don't stream
44197 DECL_FUNCTION_SPECIFIC_TARGET in if ACCEL_COMPILER.
44198 * lto-opts.c (lto_write_options): Use lto_stream_offload_p
44199 instead of section_name_prefix string comparisons.
44200
44201 2015-01-09 Jakub Jelinek <jakub@redhat.com>
44202
44203 PR rtl-optimization/64536
44204 * cfgrtl.c (rtl_tidy_fallthru_edge): Handle removal of degenerate
44205 tablejumps.
44206
44207 2015-01-09 Michael Collison <michael.collison@linaro.org>
44208
44209 PR tree-optimization/64322
44210 * tree-vrp.c (extract_range_from_binary_expr_1): Attempt to derive
44211 range for RSHIFT_EXPR even if vr0 range is not VR_RANGE or is symbolic.
44212
44213 2015-01-09 Tom de Vries <tom@codesourcery.com>
44214
44215 PR rtl-optimization/64539
44216 * regcprop.c (kill_clobbered_values): Factor out of ...
44217 (copyprop_hardreg_forward_1): ... here. Use kill_clobbered_values
44218 instead of note_stores with kill_clobbered_value.
44219
44220 2015-01-09 Andreas Tobler <andreast@gcc.gnu.org>
44221
44222 * ginclude/unwind-arm-common.h: Revert previous commit.
44223
44224 2015-01-09 Andreas Tobler <andreast@gcc.gnu.org>
44225
44226 * config.gcc (arm*-*-freebsd*): New configuration.
44227 * config/arm/freebsd.h: New file.
44228 * config.host: Add extra components for arm*-*-freebsd*.
44229 * config/arm/arm.h: Introduce MAX_SYNC_LIBFUNC_SIZE.
44230 * config/arm/arm.c (arm_init_libfuncs): Use MAX_SYNC_LIBFUNC_SIZE.
44231
44232 2015-01-09 Sebastian Huber <sebastian.huber@embedded-brains.de>
44233
44234 * config/rs6000/rtems.h (CPP_OS_RTEMS_SPEC): Define __PPC_CPU_E6500__
44235 for -mcpu=e6500.
44236 * config/rs6000/t-rtems: Add e6500 multilibs.
44237
44238 2015-01-09 Sebastian Huber <sebastian.huber@embedded-brains.de>
44239
44240 * config/rs6000/t-rtems: Add -mno-spe to soft-float multilib for
44241 MPC8540.
44242
44243 2015-01-09 Sebastian Huber <sebastian.huber@embedded-brains.de>
44244
44245 * config/rs6000/t-rtems: Use MULTILIB_REQUIRED instead of
44246 MULTILIB_EXCEPTIONS.
44247
44248 2015-01-09 Sebastian Huber <sebastian.huber@embedded-brains.de>
44249
44250 * config/arm/t-rtems: Use MULTILIB_REQUIRED instead of
44251 MULTILIB_EXCEPTIONS.
44252
44253 2015-01-09 Sebastian Huber <sebastian.huber@embedded-brains.de>
44254
44255 * config/arm/t-rtems-eabi: Rename to...
44256 * config/arm/t-rtems: ...this.
44257 * config/arm/rtems-eabi.h: Rename to...
44258 * config/arm/rtems.h: ...this.
44259 * config.gcc (arm*-*-rtems*): Reflect changes above.
44260
44261 2015-01-09 Richard Biener <rguenther@suse.de>
44262
44263 PR tree-optimization/64410
44264 * tree-ssa.c (non_rewritable_lvalue_p): Allow REALPART/IMAGPART_EXPR
44265 on the LHS.
44266 (execute_update_addresses_taken): Deal with that.
44267 * tree-ssa-forwprop.c (pass_forwprop::execute): Use component-wise
44268 loads/stores for complex variables.
44269
44270 2015-01-09 Martin Liska <mliska@suse.cz>
44271
44272 * ipa-icf-gimple.c (func_checker::compare_ssa_name): Enhance SSA
44273 name comparison.
44274 (func_checker::compare_memory_operand): New function.
44275 (func_checker::compare_operand): Split case to newly
44276 added functions.
44277 (func_checker::compare_cst_or_decl): New function.
44278 (func_checker::compare_gimple_call): Identify
44279 memory operands.
44280 (func_checker::compare_gimple_assign): Likewise.
44281 * ipa-icf-gimple.h: New function.
44282
44283 2015-01-09 Martin Liska <mliska@suse.cz>
44284
44285 PR ipa/64503
44286 * sreal.c (sreal::dump): Change unsigned format to signed for
44287 m_exp value.
44288 (sreal::to_double): Replace exp2 with scalbln.
44289
44290 2015-01-09 Martin Liska <mliska@suse.cz>
44291
44292 * cgraphunit.c (cgraph_node::create_wrapper): Fix level of indentation.
44293 * ipa-icf.c (sem_function::equals_private): Add support for target and
44294 (sem_item_optimizer::merge_classes): Remove redundant function
44295 optimization flags comparison.
44296 * tree.h (target_opts_for_fn): New function.
44297
44298 2015-01-09 Tom de Vries <tom@codesourcery.com>
44299
44300 * omp-low.c (expand_omp_for_static_chunk): Fix assert.
44301
44302 2015-01-09 Kito Cheng <kito@0xlab.org>
44303
44304 PR rtl-optimization/64348
44305 * lra-constraints.c (split_reg): Fix caller-save store/restore
44306 instruction generation.
44307
44308 2015-01-08 John David Anglin <danglin@gcc.gnu.org>
44309
44310 PR gcov-profile/61790
44311 * gcov-tool.c (do_rewrite): Use strtoll instead of atoll if host has
44312 long long. Fallback to int64_t if host doesn't have long long and
44313 use strtol if int64_t is long. Otherwise, use sscanf for conversion.
44314
44315 2015-01-08 Jakub Jelinek <jakub@redhat.com>
44316
44317 PR tree-optimization/63989
44318 * params.def (PARAM_MAX_TRACKED_STRLENS): Increment default
44319 from 1000 to 10000.
44320 * tree-ssa-strlen.c (get_strinfo): Moved earlier.
44321 (get_stridx): If we don't have a record for certain SSA_NAME,
44322 but it is POINTER_PLUS_EXPR of some SSA_NAME we do with
44323 constant offset, call get_stridx_plus_constant.
44324 (get_stridx_plus_constant): New function.
44325 (zero_length_string): Don't use get_stridx here.
44326
44327 PR target/55023
44328 PR middle-end/64388
44329 * dse.c (struct insn_info): Mention frame_read set also
44330 before reload for tail calls on some targets.
44331 (scan_insn): Revert 2014-12-22 change. Set frame_read
44332 also before reload for tail calls if
44333 HARD_FRAME_POINTER_IS_ARG_POINTER. Call add_wild_read
44334 instead of add_non_frame_wild_read for non-const/memset
44335 tail calls after reload.
44336
44337 2015-01-08 Jason Merrill <jason@redhat.com>
44338
44339 * ubsan.c (do_ubsan_in_current_function): New.
44340 (pass_ubsan::gate): Use it.
44341 * ubsan.h: Declare it.
44342 * convert.c (convert_to_integer): Use it.
44343
44344 2015-01-08 Jakub Jelinek <jakub@redhat.com>
44345
44346 PR target/64338
44347 * config/i386/i386.c (ix86_expand_int_movcc): Don't reverse
44348 compare_code when it is unconditionally overwritten afterwards.
44349 Use ix86_reverse_condition instead of reverse_condition. Don't
44350 change code if *reverse_condition* returned UNKNOWN and don't
44351 swap ct/cf and negate diff in that case.
44352
44353 2015-01-08 Mike Stump <mikestump@comcast.net>
44354
44355 * tsan.c (pass_tsan::gate): Add no_sanitize_thread support.
44356 (pass_tsan_O0::gate): Likewise.
44357 * extend.texi (Function Attributes): Add no_sanitize_thread
44358 documentation.
44359
44360 2015-01-08 Thomas Schwinge <thomas@codesourcery.com>
44361
44362 * builtins.def (DEF_GOMP_BUILTIN): Also consider flag_offload_abi
44363 for registering builtins.
44364 * config/i386/intelmic-mkoffload.c (prepare_target_image): Don't
44365 add -fopenmp to the argv_obstack used when invoking
44366 compile_for_target.
44367
44368 * config/i386/intelmic-mkoffload.c (compile_for_target): Always
44369 add "-m32" or "-m64" to argv_obstack.
44370 (generate_host_descr_file): Likewise, when invoking host_compiler.
44371 (main): Always add "-m elf_i386" or "-m elf_x86_64" when invoking
44372 ld.
44373
44374 2015-01-08 Oleg Endo <olegendo@gcc.gnu.org>
44375
44376 * config/sh/sh-mem.cc: Use constant as second operand when emitting
44377 tstsi_t insns.
44378
44379 2015-01-08 Oleg Endo <olegendo@gcc.gnu.org>
44380
44381 PR target/55212
44382 * config/sh/sh.md (*addsi3_compact): Emit reg-reg copy instead of
44383 constant load if constant operand fits into I08.
44384
44385 2015-01-08 Jakub Jelinek <jakub@redhat.com>
44386
44387 PR sanitizer/64336
44388 * tree.c (build2_stat): Fix up initialization of TREE_READONLY
44389 and TREE_THIS_VOLATILE for MEM_REFs.
44390 (build5_stat): Fix up initialization of TREE_READONLY and
44391 TREE_THIS_VOLATILE for TARGET_MEM_REFs.
44392
44393 2015-01-08 Kaz Kojima <kkojima@gcc.gnu.org>
44394
44395 PR target/64533
44396 * config/sh/sh.md (*addsi3_compact): Use u constraint instead
44397 of r for the second alternative of the destination operand.
44398
44399 2015-01-07 Segher Boessenkool <segher@kernel.crashing.org>
44400
44401 PR target/36557
44402 * config/rs6000/rs6000.md (*eqsi3_ext<mode>, *nesi3_ext<mode>): New.
44403
44404 2015-01-07 Sandra Loosemore <sandra@codesourcery.com>
44405
44406 * doc/invoke.texi ([-fvtable-verify]): Fix markup on option
44407 keywords.
44408 ([-fivar-visibility], [-fvisibility]): Likewise.
44409
44410 2015-01-07 Sandra Loosemore <sandra@codesourcery.com>
44411
44412 * doc/invoke.texi: Fix incorrect uses of @samp markup throughout
44413 the file where @code, @command, etc is more appropriate.
44414
44415 2015-01-06 Sandra Loosemore <sandra@codesourcery.com>
44416
44417 * doc/invoke.texi (RS/6000 and PowerPC Options): Tidy formatting
44418 of -mrecip= documentation.
44419
44420 2015-01-06 Michael Meissner <meissner@linux.vnet.ibm.com>
44421
44422 PR target/64505
44423 * config/rs6000/rs6000.c (rs6000_secondary_reload): Return the
44424 correct reload handler if -m32 -mpowerpc64 is used.
44425
44426 2015-01-06 Tom de Vries <tom@codesourcery.com>
44427
44428 * tree-ssa-tail-merge.c: Fix typo in struct same_succ_def comment.
44429
44430 2015-01-08 Christian Bruel <christian.bruel@st.com>
44431
44432 PR target/64507
44433 * config/sh/sh-mem.cc (sh_expand_cmpnstr): Check 0 length.
44434
44435 2015-01-06 Thomas Preud'homme <thomas.preudhomme@arm.com>
44436
44437 PR tree-optimization/63259
44438 * tree-ssa-math-opts.c (pass_optimize_bswap::execute): Stop checking
44439 if optab exists for 16bit byteswap.
44440
44441 2015-01-06 Jakub Jelinek <jakub@redhat.com>
44442
44443 * opts.c (common_handle_option): Add support for
44444 -fno-sanitize=all and -f{,no-}sanitize-recover=all.
44445 * doc/invoke.texi: Document -fno-sanitize=all,
44446 -f{,no-}sanitize-recover=all. Document that
44447 -fsanitize=float-cast-overflow is not enabled
44448 by -fsanitize=undefined. Fix up documentation
44449 of -f{,no-}sanitize-recover.
44450
44451 2015-01-06 Eric Botcazou <ebotcazou@adacore.com>
44452
44453 * config.gcc: Add Visium support.
44454 * configure.ac: Likewise.
44455 * configure: Regenerate.
44456 * doc/extend.texi (interrupt attribute): Add Visium.
44457 * doc/invoke.texi: Document Visium options.
44458 * doc/install.texi: Document Visium target.
44459 * doc/md.texi: Document Visium constraints.
44460 * common/config/visium: New directory.
44461 * config/visium: Likewise.
44462
44463 2015-01-05 Segher Boessenkool <segher@kernel.crashing.org>
44464
44465 * simplify-rtx.c (simplify_binary_operation_1): Handle more cases
44466 for the "(and X (ior (not X) Y) -> (and X Y)" transform.
44467
44468 2015-01-05 Segher Boessenkool <segher@kernel.crashing.org>
44469
44470 * combine.c (combine_validate_cost): Do not count the cost of a
44471 split I2 twice. Do not display it twice in the dump, either.
44472
44473 2015-01-05 Sandra Loosemore <sandra@codesourcery.com>
44474
44475 Revert parts of r219199.
44476 * doc/invoke.texi ([-Wliteral-suffix]): Restore markup on
44477 <inttypes.h>.
44478 ([-Wtraditional]): Restore markup on <limits.h>.
44479
44480 2015-01-05 Trevor Saunders <tsaunders@mozilla.com>
44481
44482 PR c++/31397
44483 * doc/invoke.texi: Document -Wsuggest-override.
44484
44485 2015-01-05 Radovan Obradovic <radovan.obradovic@imgtec.com>
44486
44487 PR rtl-optimization/64287
44488 * toplev.c (HAVE_epilogue, HAVE_prologue): Provide default.
44489 (process_options): Disable flag_ipa_ra if profiling.
44490
44491 2015-01-05 Eric Botcazou <ebotcazou@adacore.com>
44492
44493 * config/nds32/nds32-peephole2.md: Do not mention define_peephole.
44494
44495 2015-01-05 Max Filippov <jcmvbkbc@gmail.com>
44496
44497 * config/xtensa/xtensa.c (hwloop_optimize, hwloop_fail,
44498 hwloop_pattern_reg, xtensa_doloop_hooks, xtensa_reorg_loops):
44499 put under #if TARGET_LOOPS guard.
44500
44501 2015-01-05 Uros Bizjak <ubizjak@gmail.com>
44502
44503 * config/i386/i386.c (output_387_binary_op): Use std::swap.
44504
44505 2015-01-05 Oleg Endo <olegendo@gcc.gnu.org>
44506
44507 * rtlanal.c (refers_to_regno_p): Change return value from int to bool.
44508 * rtl.h (refers_to_regno_p): Add overload.
44509 * cse.c: Use it.
44510 * bt-load.c: Likewise.
44511 * combine.c: Likewise.
44512 * df-scan.c: Likewise.
44513 * sched-deps.c: Likewise.
44514 * config/s390/s390.c: Likewise.
44515 * config/m32r/m32r.c: Likewise.
44516 * config/rs6000/spe.md: Likewise.
44517 * config/rs6000/rs6000.c: Likewise.
44518 * config/pa/pa.c: Likewise.
44519 * config/stormy16/stormy16.c: Likewise.
44520 * config/cris/cris.c: Likewise.
44521 * config/arc/arc.md: Likewise.
44522 * config/arc/arc.c: Likewise.
44523 * config/sh/sh.md: Likewise.
44524 * config/sh/sh.c: Likewise.
44525 * config/frv/frv.c: Likewise.
44526
44527 2015-01-05 Jakub Jelinek <jakub@redhat.com>
44528
44529 PR sanitizer/64265
44530 * gimplify.c (gimplify_function_tree): Add TSAN_FUNC_EXIT internal
44531 call as cleanup of the whole body.
44532 * internal-fn.def (TSAN_FUNC_EXIT): New internal call.
44533 * tsan.c (replace_func_exit): New function.
44534 (instrument_func_exit): Moved earlier.
44535 (instrument_memory_accesses): Adjust TSAN_FUNC_EXIT internal calls.
44536 Call instrument_func_exit if no TSAN_FUNC_EXIT internal calls have
44537 been found.
44538 (tsan_pass): Don't call instrument_func_exit.
44539 * internal-fn.c (expand_TSAN_FUNC_EXIT): New function.
44540 * tree-inline.c (copy_bb): Drop TSAN_FUNC_EXIT internal calls during
44541 inlining.
44542
44543 PR sanitizer/64344
44544 * ubsan.h (ubsan_instrument_float_cast): Add ARG argument.
44545 * ubsan.c (ubsan_instrument_float_cast): Add ARG argument, pass
44546 it to libubsan handler instead of EXPR. Fold comparisons earlier,
44547 if the result is integer_zerop, return NULL_TREE.
44548 * convert.c (convert_to_integer): Pass expr as ARG.
44549
44550 PR tree-optimization/64465
44551 * tree-inline.c (redirect_all_calls): During inlining
44552 clean up EH stmts and EH edges if redirect_call_stmt_to_callee
44553 changed the stmt to a non-throwing call.
44554
44555 2015-01-05 Sandra Loosemore <sandra@codesourcery.com>
44556
44557 * doc/invoke.texi: Fix incorrect uses of @code, @option, @samp,
44558 etc markup throughout the file.
44559
44560 2015-01-05 Bernd Edlinger <bernd.edlinger@hotmail.de>
44561
44562 Enable experimental TSAN support for Ada.
44563 * tsan.c (instrument_expr): Handle VIEW_CONVERT_EXPR.
44564
44565 2015-01-05 Jakub Jelinek <jakub@redhat.com>
44566
44567 PR tree-optimization/64494
44568 * tree-ssa-loop-im.c (move_computations_dom_walker::before_dom): Also
44569 clear SSA_NAME_ANTI_RANGE_P flag.
44570
44571 2015-01-05 Marek Polacek <polacek@redhat.com>
44572
44573 * doc/extend.texi (Arrays of Length Zero): Add missing comma.
44574
44575 2015-01-05 Jakub Jelinek <jakub@redhat.com>
44576
44577 Update copyright years.
44578
44579 * gcc.c (process_command): Update copyright notice dates.
44580 * gcov-dump.c: Ditto.
44581 * gcov.c: Ditto.
44582 * doc/cpp.texi: Bump @copying's copyright year.
44583 * doc/cppinternals.texi: Ditto.
44584 * doc/gcc.texi: Ditto.
44585 * doc/gccint.texi: Ditto.
44586 * doc/gcov.texi: Ditto.
44587 * doc/install.texi: Ditto.
44588 * doc/invoke.texi: Ditto.
44589
44590 * auto-profile.c, auto-profile.h: Fix up Copyright line.
44591
44592 2015-01-04 Sandra Loosemore <sandra@codesourcery.com>
44593
44594 * doc/invoke.texi ([-fsized-deallocation]): Copy-edit to fix
44595 verb tense, etc.
44596 ([-fvtable-verify], [-fvtv-debug]): Likewise.
44597 ([-Wabi]): Likewise.
44598 ([-fmessage-length]): Likewise.
44599 ([-Wsuggest-final-types], [-Wsuggest-final-methods]): Likewise.
44600 ([-Wno-discarded-qualifiers]): Likewise.
44601 ([-Wnodiscarded-array-qualifiers]): Likewise.
44602 ([-Wno-virtual-move-assign]): Likewise.
44603 ([-fsanitize=address], [-fsanitize=thread]): Likewise.
44604 ([-fsanitize=leak], [-fsanitize=undefined]): Likewise.
44605 ([-fsanitize=unreachable], [-fsanitize-recover]): Likewise.
44606 ([-fsanitize-undefined-trap-on-error]): Likewise.
44607 ([-floop-interchange]): Likewise.
44608 ([-ftree-coalesce-inlined-vars]): Likewise.
44609 ([-fvect-cost-model]): Likewise.
44610 ([-flto]): Likewise.
44611 ([--param]): Likewise.
44612 (Spec Files): Likewise.
44613 ([-mstrict-align]): Likewise.
44614 ([-mfix-cortex-a53-835769]): Likewise.
44615 ([-march], [-mtune]): Likewise.
44616 ([-mpic-register]): Likewise.
44617 ([-munaligned-access]): Likewise.
44618 ([-msp8]): Likewise.
44619 (EIND and Devices with more than 128 Ki Bytes of Flash): Likewise.
44620 (AVR Built-in Macros): Likewise.
44621 ([-mpreferred-stack-boundary]): Likewise.
44622 ([-mtune-crtl]): Likewise.
44623 ([-mashf]): Likewise.
44624 ([-mmcu=]): Likewise.
44625 ([-minrt]): Likewise.
44626 ([-maltivec], [-maltivec=be], [-maltivec=le]): Likewise.
44627 ([-mupper-regs]): Likewise.
44628 ([-matomic-model]): Likewise.
44629 ([-mdiv]): Likewise.
44630 ([-mzdcbranch]): Likewise.
44631 ([-mdisable-callt]): Likewise.
44632 ([-msoft-float]): Likewise.
44633 ([-m8byte-align]): Likewise.
44634 ([-fstack-reuse]): Likewise.
44635
44636 2015-01-03 Sandra Loosemore <sandra@codesourcery.com>
44637
44638 * doc/invoke.texi ([-fprofile-generate], [-fprofile-use]):
44639 Fix markup, light copy-editing.
44640 ([-fauto-profile]): Rewrite to fix formatting and content
44641 problems.
44642
44643 2015-01-03 Sandra Loosemore <sandra@codesourcery.com>
44644
44645 * doc/invoke.texi ([-fisolate-erroneous-paths-dereference]):
44646 Copy-edit description.
44647 ([-fisolate-erroneous-paths-attribute]): Likewise.
44648 * common.opt (fisolate-erroneous-paths-dereference):
44649 Copy-edit description.
44650 (fisolate-erroneous-paths-attribute): Likewise.
44651
44652 2015-01-03 Sandra Loosemore <sandra@codesourcery.com>
44653
44654 * doc/invoke.texi ([-fsemantic-interposition]): Fix typos and
44655 tidy grammar.
44656
44657 2015-01-03 Sandra Loosemore <sandra@codesourcery.com>
44658
44659 * doc/invoke.texi ([-fplan9-extensions]): Add/fix @opindex.
44660 ([-fvtv-debug]): Likewise.
44661 ([-Wc++-compat]): Likewise.
44662 ([-Wc++11-compat]): Likewise.
44663 ([-Wc++14-compat]): Likewise.
44664 ([-Wno-sized-deallocation]): Likewise.
44665 ([-femit-class-debug-always]): Likewise.
44666 ([-femit-struct-debug-detailed]): Likewise.
44667 ([-fno-keep-inline-dllexport]): Likewise.
44668 ([-fira-algorithm]): Likewise.
44669 ([-fira-region]): Likewise.
44670 ([-flra-remat]): Likewise.
44671 ([-fipa-ra]): Likewise.
44672 ([-fhoist-adjacent-loads]): Likewise.
44673 ([-fisolate-erroneous-paths-dereference]): Likewise.
44674 ([-fisolate-erroneous-paths-attribute]): Likewise.
44675 ([-ftree-switch-conversion]): Likewise.
44676 ([-ftree-tail-merge]): Likewise.
44677 ([-ftree-loop-if-convert]): Likewise.
44678 ([-ftree-loop-if-convert-stores]): Likewise.
44679 ([-ftree-loop-distribution]): Likewise.
44680 ([-ftree-loop-distribute-patterns]): Likewise.
44681 ([-flto-compression-level]): Likewise.
44682 ([-flto-report]): Likewise.
44683 ([-flto-report-wpa]): Likewise.
44684 ([-fuse-linker-plugin]): Likewise.
44685 ([-mfix-cortex-a53-835769]): Likewise.
44686 ([-mno-fix-cortex-a53-835769]): Likewise.
44687 ([-mmmx]...[-mno-3dnow]): Remove the -mno- forms from the
44688 explicit listing; add a note to the discussion indicating they
44689 exist. Reorder table to group similar options. Add missing
44690 @opindex entries. Add @need commands throughout the table to
44691 allow it to be split across multiple pages.
44692 ([-m8bit-idiv]): Fix @opindex.
44693 ([-mavx256-split-unaligned-load]): Likewise.
44694 ([-mavx256-split-unaligned-store]): Likewise.
44695 ([-mstack-protector-guard]): Likewise.
44696 ([-mcpu=]): Likewise.
44697 ([-mcpu]): Likewise.
44698 ([-mpointer-size=]): Likewise.
44699
44700 2015-01-03 John David Anglin <danglin@gcc.gnu.org>
44701
44702 * config/pa/pa.md (decrement_and_branch_until_zero): Use `Q' constraint
44703 instead of `m' constraint. Likewise for unnamed movb comparison
44704 patterns using reg_before_reload_operand predicate.
44705 * config/pa/predicates.md (reg_before_reload_operand): Tighten
44706 predicate to reject register index and LO_SUM DLT memory forms
44707 after reload.
44708
44709 2015-01-02 Sandra Loosemore <sandra@codesourcery.com>
44710
44711 * doc/invoke.texi (Option Summary): Fix spelling of
44712 -fdevirtualize-at-ltrans.
44713 ([-fdevirtualize]): Fix markup.
44714 ([-fdevirtualize-speculatively]): Fix typo.
44715 ([-fdevirtualize-at-ltrans]): Likewise. Make description less
44716 implementor-speaky.
44717 * common.opt (fdevirtualize-at-ltrans): Likewise.
44718 * ipa-devirt.c: Fix typos in comments throughout the file.
44719 (ipa_devirt): Fix typos in format strings for dump output.
44720
44721 2015-01-02 Sandra Loosemore <sandra@codesourcery.com>
44722
44723 * doc/invoke.texi ([-fopt-info]): Fix markup, consolidate
44724 discussion of defaults, light copy-editing.
44725
44726 2015-01-02 Bernd Edlinger <bernd.edlinger@hotmail.de>
44727
44728 * tsan.c (instrument_expr): corrected previous checkin.
44729
44730 2015-01-02 Bernd Edlinger <bernd.edlinger@hotmail.de>
44731
44732 Instrument bit field and unaligned accesses for TSAN.
44733 * sanitizer.def (BUILT_IN_TSAN_READ_RANGE): New built-in function.
44734 (BUILT_IN_TSAN_WRITE_RANGE): New built-in function.
44735 * tsan.c (instrument_expr): Handle COMPONENT_REF and BIT_FIELD_REF.
44736 Use BUILT_IN_TSAN_READ_RANGE and BUILT_IN_TSAN_WRITE_RANGE for
44737 unaligned memory regions.
44738
44739 2015-01-01 Anthony Green <green@moxielogic.com>
44740
44741 * config/moxie/predicates.md (moxie_general_movsrc_operand):
44742 Restrict move source register offsets to 16 bits.
44743 \f
44744 Copyright (C) 2015 Free Software Foundation, Inc.
44745
44746 Copying and distribution of this file, with or without modification,
44747 are permitted in any medium without royalty provided the copyright
44748 notice and this notice are preserved.