dcd5d4768f529caddc7bef8743134b36a29ab20b
[gcc.git] / gcc / ChangeLog
1 2015-08-18 Robert Suchanek <robert.suchanek@imgtec.com>
2
3 * config/mips/mips-protos.h (mips_hard_regno_rename_ok): New prototype.
4 * config/mips/mips.c (mips_hard_regno_rename_ok): New function.
5 (mips_hard_regno_scratch_ok): Likewise.
6 (TARGET_HARD_REGNO_SCRATCH_OK): Define macro.
7 * config/mips/mips.h (HARD_REGNO_RENAME_OK): New.
8
9 2015-08-18 Bin Cheng <bin.cheng@arm.com>
10
11 * tree-ssa-loop-niter.c (refine_value_range_using_guard): New.
12 (determine_value_range): Call refine_value_range_using_guard for
13 each loop initial condition to improve value range.
14
15 2015-08-17 Aldy Hernandez <aldyh@redhat.com>
16
17 * config/i386/i386.c: Remove include of fibheap.h.
18
19 2015-08-17 Richard Biener <rguenther@suse.de>
20
21 PR tree-optimization/67221
22 * tree-ssa-sccvn.c (visit_phi): Keep all-TOP args TOP.
23 (sccvn_dom_walker::before_dom_children): Mark backedges of
24 non-executable blocks as not executable.
25
26 2015-08-17 David Sherwood <david.sherwood@arm.com>
27
28 * config/arm/arm.c (neon_element_bits): Replace call to
29 GET_MODE_BITSIZE (GET_MODE_INNER (m)) with GET_MODE_UNIT_BITSIZE (m).
30 * config/arm/neon.md (neon_vget_lane<mode>): Likewise.
31 (neon_vget_laneu<mode>, neon_vset_lane<mode>): Likewise
32 (neon_vdup_lane<mode>): Likewise.
33 * config/i386/i386.c (ix86_expand_int_vcond): Likewise.
34 (ix86_expand_multi_arg_builtin, ix86_expand_reduc): Likewise.
35 (expand_vec_perm_palignr, ix86_expand_sse2_abs): Likewise.
36 * config/rs6000/rs6000.c (rs6000_do_expand_vec_perm): Likewise.
37 * config/spu/spu.c (arith_immediate_p): Likewise.
38 * expmed.c (store_bit_field_1, extract_bit_field_1): Likewise.
39 * expr.c (expand_expr_real_2): Likewise.
40 * optabs.c (shift_amt_for_vec_perm_mask): Likewise.
41 * simplify-rtx.c (simplify_immed_subreg): Likewise.
42 * tree-cfg.c (verify_gimple_assign_ternary): Likewise.
43 * tree-vect-patterns.c (vect_recog_mixed_size_cond_pattern): Likewise.
44 New variable.
45 * fold-const.c (fold_binary_loc): Replace call to
46 GET_MODE_PRECISION (GET_MODE_INNER (m)) with
47 GET_MODE_UNIT_PRECISION (m).
48
49 2015-08-17 Mike Stump <mikestump@comcast.net>
50
51 * config/arm/arm.c (arm_block_move_unaligned_straight):
52 Emit normal move instead of unaligned load when source or destination
53 are appropriately aligned.
54
55 2015-08-17 Richard Biener <rguenther@suse.de>
56 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
57
58 PR middle-end/16107
59 * match.pd (div (coss (op @0) : New simplifier.
60
61 2015-08-14 Alexandre Oliva <aoliva@redhat.com>
62
63 PR rtl-optimization/64164
64 PR bootstrap/66978
65 PR middle-end/66983
66 PR rtl-optimization/67000
67 PR middle-end/67034
68 PR middle-end/67035
69 * Makefile.in (OBJS): Drop tree-ssa-copyrename.o.
70 * tree-ssa-copyrename.c: Removed.
71 * opts.c (default_options_table): Drop -ftree-copyrename. Add
72 -ftree-coalesce-vars.
73 * passes.def: Drop all occurrences of pass_rename_ssa_copies.
74 * common.opt (ftree-copyrename): Ignore.
75 (ftree-coalesce-inlined-vars): Likewise.
76 * doc/invoke.texi: Remove the ignored options above.
77 * gimple-expr.h (gimple_can_coalesce_p): Move declaration
78 * tree-ssa-coalesce.h: ... here.
79 * tree-ssa-uncprop.c: Include tree-ssa-coalesce.h and other
80 headers required by it.
81 * gimple-expr.c (gimple_can_coalesce_p): Allow coalescing
82 across variables when flag_tree_coalesce_vars. Check register
83 use and promoted modes to allow coalescing. Do not coalesce
84 maybe-byref parms with SSA_NAMEs of other variables, or
85 anonymous SSA_NAMEs. Moved to tree-ssa-coalesce.c.
86 * tree-ssa-live.c (struct tree_int_map_hasher): Move along
87 with its member functions to tree-ssa-coalesce.c.
88 (var_map_base_init): Likewise. Renamed to
89 compute_samebase_partition_bases.
90 (partition_view_normal): Drop want_bases parameter.
91 (partition_view_bitmap): Likewise.
92 * tree-ssa-live.h: Adjust declarations.
93 * tree-ssa-coalesce.c: Include explow.h and cfgexpand.h.
94 (build_ssa_conflict_graph): Process PARM_ and RESULT_DECLs's
95 default defs at the entry point.
96 (dump_part_var_map): New.
97 (compute_optimized_partition_bases): New, called by...
98 (coalesce_ssa_name): ... when flag_tree_coalesce_vars, instead
99 of compute_samebase_partition_bases. Adjust.
100 * alias.c (nonoverlapping_memrefs_p): Disregard gimple-regs.
101 * cfgexpand.c (leader_merge, parm_maybe_byref_p): New.
102 (ssa_default_def_partition): New.
103 (get_rtl_for_parm_ssa_default_def): New.
104 (align_local_variable, add_stack_var): Support anonymous SSA
105 names.
106 (defer_stack_allocation): Likewise. Declare earlier.
107 (set_rtl): Merge exprs and attrs, even for MEMs and non-SSA
108 vars. Update DECL_RTL for PARM_DECLs and RESULT_DECLs too.
109 Do no record deferred-allocation marker in
110 SA.partition_to_pseudo.
111 (expand_stack_vars): Adjust check for the marker in it.
112 (expand_one_stack_var_at): Handle anonymous SSA_NAMEs. Drop
113 redundant MEM attr setting.
114 (expand_one_stack_var_1): Handle anonymous SSA_NAMEs. Renamed
115 from...
116 (expand_one_stack_var): ... this. New wrapper to check and
117 skip already expanded SSA partitions.
118 (record_alignment_for_reg_var): New, factored out of...
119 (expand_one_var): ... this.
120 (expand_one_ssa_partition): New.
121 (adjust_one_expanded_partition_var): New.
122 (expand_one_register_var): Check and skip already expanded SSA
123 partitions.
124 (expand_used_vars): Don't create DECLs for anonymous SSA
125 names. Expand all SSA partitions, then adjust all SSA names.
126 (pass::execute): Replace the loops that set
127 SA.partition_to_pseudo from partition leaders and cleared
128 DECL_RTL for multi-location variables, and that which used to
129 rename vars and set attrs, with one that clears DECL_RTL and
130 checks that PARMs and RESULTs default_defs match DECL_RTL.
131 * cfgexpand.h (get_rtl_for_parm_ssa_default_def): Declare.
132 * emit-rtl.c: Include stor-layout.h.
133 (set_reg_attrs_for_parm): Handle NULL decl.
134 (set_reg_attrs_for_decl_rtl): Take mode from expression if
135 it's not a DECL.
136 * stmt.c (emit_case_decision_tree): Pass it the SSA_NAME
137 rather than its possibly-NULL DECL.
138 * explow.c (promote_ssa_mode): New.
139 * explow.h (promote_ssa_mode): Declare.
140 * expr.c (expand_expr_real_1): Handle anonymous SSA_NAMEs.
141 (read_complex_part): Export.
142 * expr.h (read_complex_part): Declare.
143 * cfgexpand.h (parm_maybe_byref_p): Declare.
144 * function.c: Include cfgexpand.h.
145 (use_register_for_decl): Handle SSA_NAMEs, anonymous or not.
146 (use_register_for_parm_decl): Wrapper for the above to
147 special-case the result_ptr.
148 (rtl_for_parm): Ditto for get_rtl_for_parm_ssa_default_def.
149 (split_complex_args): Take assign_parm_data_all argument.
150 Pass it to rtl_for_parm. Set up rtl and context for split
151 args. Reset complex parm before fetching its default decl
152 rtl.
153 (assign_parms_unsplit_complex): Use the default-def complex
154 parm rtl if it matches the components.
155 (assign_parms_augmented_arg_list): Adjust.
156 (maybe_reset_rtl_for_parm): Reset DECL_RTL of parms with
157 multiple locations. Recognize split complex args.
158 (assign_parm_adjust_stack_rtl): Add all and parm arguments,
159 for rtl_for_parm. For SSA-assigned parms, zero stack_parm.
160 (assign_parm_setup_block): Prefer SSA-assigned location, and
161 fill in its address if the memory location of a maybe-byref
162 parm was not assigned by cfgexpand.
163 (assign_parm_setup_reg): Likewise. Adjust its mode as
164 needed. Use entry_parm for equiv if stack_parm is NULL. Make
165 sure passed_pointer parms don't need conversion. Copy address
166 or value as needed.
167 (assign_parm_setup_stack): Prefer SSA-assigned location.
168 (assign_parms): Maybe reset DECL_RTL of params. Adjust stack
169 rtl before testing for pointer bounds. Special-case result_ptr.
170 (expand_function_start): Maybe reset DECL_RTL of result.
171 Prefer SSA-assigned location for result and static chain.
172 Factor out DECL_RESULT and SET_DECL_RTL. Convert static chain
173 to Pmode if needed, from H.J. Lu <hongjiu.lu@intel.com>.
174 * tree-outof-ssa.c (insert_value_copy_on_edge): Handle
175 anonymous SSA names. Use promote_ssa_mode.
176 (get_temp_reg): Likewise.
177 (remove_ssa_form): Adjust.
178 * stor-layout.c (layout_decl): Don't set mem attributes of
179 non-MEMs.
180 * var-tracking.c (dataflow_set_clear_at_call): Take call_insn
181 and get its reg_usage for reg invalidation.
182 (compute_bb_dataflow): Pass it insn.
183 (emit_notes_in_bb): Likewise.
184
185 2015-08-14 Marek Polacek <polacek@redhat.com>
186
187 * tree-core.h (tree_base): Fix typo.
188
189 2015-08-14 Marek Polacek <polacek@redhat.com>
190
191 PR middle-end/67133
192 * gimple.c (infer_nonnull_range_by_attribute): Check that the
193 nonnull argument position is not outside function arguments.
194
195 2015-08-14 Matthew Wahab <matthew.wahab@arm.com>
196
197 PR target/67143
198 * config/aarch64/atomics.md (atomic_<optab><mode>): Replace
199 'lconst_atomic' with 'const_atomic'.
200 (atomic_fetch_<optab><mode>): Likewise.
201 (atomic_<optab>_fetch<mode>): Likewise.
202 * config/aarch64/iterators.md (lconst-atomic): Move below
203 'const_atomic'.
204 (const_atomic): New.
205
206 2015-08-14 Thomas Schwinge <thomas@codesourcery.com>
207 Bernd Schmidt <bernds@codesourcery.com>
208
209 * config/nvptx/nvptx.c (nvptx_option_override): Don't override
210 debug options.
211 * config/nvptx/nvptx.h (DWARF2_LINENO_DEBUGGING_INFO): Define.
212 (DWARF2_DEBUGGING_INFO): Don't define.
213 * debug.h (dwarf2_lineno_debug_hooks): Declare.
214 * toplev.c (process_options): Add a case for it.
215 * dwarf2out.c (dwarf2_lineno_debug_hooks): New variable.
216 (dwarf2out_init): Skip most initializations if
217 DWARF2_LINENO_DEBUGGING_INFO, but set cur_line_info_table in that
218 case.
219 * defaults.h (PREFERRED_DEBUGGING_TYPE): Also use DWARF2_DEBUG if
220 DWARF2_LINENO_DEBUGGING_INFO.
221 * opts.c (set_debug_level): Likewise.
222
223 2015-08-14 James Greenhalgh <james.greenhalgh@arm.com>
224
225 * config/arm/types.md (is_neon_type): Add missing types.
226
227 2015-08-14 Yuri Rumyantsev <ysrumyan@gmail.com>
228
229 * config/i386/driver-i386.c (host_detect_local_cpu): Add support
230 for skylake.
231 * config/i386/i386.c (PTA_SKYLAKE): New macros.
232 (processor_alias_table): Add skylake description.
233 (enum processor_model): Add skylake processor.
234 (arch_names_table): Add skylake record.
235 * doc/invoke.texi: Add skylake item.
236
237 2015-08-13 Andrew MacLeod <amacleod@redhat.com>
238
239 * ira-int.h: Include recog.h.
240 * ira-build.c: Don't include recog.h.
241 * ira-color.c: Likewise.
242 * ira-conflicts.c: Likewise.
243 * ira-costs.c: Likewise.
244 * ira-emit.c: Likewise.
245 * ira-lives.c: Likewise.
246 * ira.c: Likewise.
247 * sched-deps.c: Likewise.
248 * sel-sched.c: Likewise.
249 * target-globals.c: Likewise.
250
251 2015-08-13 Richard Sandiford <richard.sandiford@arm.com>
252
253 PR bootstrap/55035
254 * reload1.c (elimination_costs_in_insn): Make it obvious to the
255 compiler that the n_dups and n_operands loop bounds are invariant.
256
257 2015-08-13 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
258
259 * ifcvt.c (noce_try_store_flag_constants): Handle PLUS-immediate
260 expressions in A and B.
261
262 2015-08-13 Richard Biener <rguenther@suse.de>
263
264 * tree.c (nonnull_arg_p): Move from ...
265 * tree-vrp.c (nonnull_arg_p): ... here.
266 * tree.h (nonnull_arg_p): Declare.
267 * tree-ssa-sccvn.c (init_scc_vn): Perform all lattice init
268 here, register ptr != 0 for nonnull_arg_p pointer arguments.
269 Properly initialize static chain and by-reference result pointer.
270 (run_scc_vn): Adjust.
271
272 2015-08-13 Robert Suchanek <robert.suchanek@imgtec.com>
273
274 * config/mips/mips.h (ENABLE_LD_ST_PAIRS): Enable load/store pairs for
275 TUNE_I6400.
276
277 2015-08-13 Matthew Wahab <matthew.wahab@arm.com>
278
279 * config/aarch64/aarch64-protos.h
280 (aarch64_gen_atomic_cas): Declare.
281 * config/aarch64/aarch64.c (aarch64_expand_compare_and_swap):
282 Choose appropriate instruction pattern for the target.
283 (aarch64_gen_atomic_cas): New.
284 * config/aarch64/atomics.md (UNSPECV_ATOMIC_CAS): New.
285 (atomic_compare_and_swap<mode>_1): Rename to
286 aarch64_compare_and_swap<mode>. Fix some indentation.
287 (aarch64_compare_and_swap<mode>_lse): New.
288 (aarch64_atomic_cas<mode>): New.
289
290 2015-08-13 Matthew Wahab <matthew.wahab@arm.com>
291
292 * config/aarch64/aarch64.h (AARCH64_ISA_LSE): New.
293 (TARGET_LSE): New.
294
295 2015-08-13 Richard Biener <rguenther@suse.de>
296
297 PR tree-optimization/67191
298 * tree-ssa-sccvn.c (sccvn_dom_walker::before_dom_children): Remove
299 assert we value-numbered last stmts operand because it can validly
300 trigger for unreachable code.
301
302 2015-08-13 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
303
304 PR rtl-optimization/67103
305 * ifcvt.c (noce_try_store_flag_constants): Move
306 x = (-(test != 0) & (b - a)) + a transformation to...
307 (noce_try_cmove): ... Here. Try it if normal conditional
308 move fails.
309
310 2015-08-13 Robert Suchanek <robert.suchanek@imgtec.com>
311
312 * config/mips/mips.c (mips_rtx_cost_data): Remove costs for W32 and W64
313 pseudo-processors.
314 * config/mips/mips.md (processor): Remove w32 and w64.
315
316 2015-08-13 Richard Biener <rguenther@suse.de>
317
318 PR tree-optimization/66502
319 PR tree-optimization/67167
320 * tree-ssa-sccvn.c (vn_phi_compute_hash): Do not include
321 backedge arguments.
322 (vn_phi_lookup): Adjust.
323 (vn_phi_insert): Likewise.
324 (visit_phi): Prefer to value-number to another PHI node
325 over value-numbering to a PHI argument.
326 (init_scc_vn): Mark DFS back edges.
327
328 2015-08-13 Richard Biener <rguenther@suse.de>
329
330 * gimple.h (gcall::code_): New constant static member.
331 (gcond::code_): Likewise.
332 * gimple.c (gcall::code_): Define.
333 (gcond::code_): Likewise.
334 (is_a_helper <const gcond *>): Add.
335 (gimple_call_lhs): Use GIMPLE_CHECK2 in the gimple overload
336 and forward to a new gcall overload with less checking and a
337 cheaper way to access the operand.
338 (gimple_call_lhs_ptr): Likewise.
339 (gimple_call_set_lhs): Likewise.
340 (gimple_call_internal_p): Likewise.
341 (gimple_call_with_bounds_p): Likewise.
342 (gimple_call_set_with_bounds): Likewise.
343 (gimple_call_internal_fn): Likewise.
344 (gimple_call_set_ctrl_altering): Likewise.
345 (gimple_call_ctrl_altering_p): Likewise.
346 (gimple_call_fntype): Likewise.
347 (gimple_call_fn): Likewise.
348 (gimple_call_fn_ptr): Likewise.
349 (gimple_call_set_fndecl): Likewise.
350 (gimple_call_fndecl): Likewise.
351 (gimple_call_chain): Likewise.
352 (gimple_call_num_args): Likewise.
353 (gimple_call_arg): Likewise.
354 (gimple_call_arg_ptr): Likewise.
355 (gimple_call_set_arg): Likewise.
356 (gimple_call_noreturn_p): Likewise.
357 (gimple_cond_code): Likewise.
358 (gimple_cond_lhs): Likewise.
359 (gimple_cond_rhs): Likewise.
360 (gimple_has_lhs): Reduce checking.
361
362 2015-08-13 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
363
364 PR middle-end/25529
365 * match.pd (div (mult @0 @1) @1) : New simplifier.
366
367 2015-08-12 Michael Meissner <meissner@linux.vnet.ibm.com>
368
369 PR target/67071
370 * config/rs6000/predicates.md (easy_vector_constant_vsldoi): New
371 predicate to allow construction of vector constants using the
372 VSLDOI vector shift instruction.
373
374 * config/rs6000/rs6000-protos.h (vspltis_shifted): Add
375 declaration.
376
377 * config/rs6000/rs6000.c (vspltis_shifted): New function to return
378 the number of bytes to be shifted left and filled in with either
379 all zero or all one bits.
380 (gen_easy_altivec_constant): Call vsplitis_shifted if no other
381 methods exist.
382 (output_vec_const_move): On power8, generate XXLORC to generate
383 a vector constant with all 1's. Do a split if we need to use a
384 VSLDOI instruction.
385
386 * config/rs6000/rs6000.h (EASY_VECTOR_MSB): Use mode mask to
387 properly test for the MSB.
388
389 * config/rs6000/altivec.md (VSLDOI splitter): Add splitter for
390 vector constants that can be created with VSLDOI.
391
392 2015-08-11 Trevor Saunders <tbsaunde@tbsaunde.org>
393
394 revert:
395 * compare-elim.c, dce.c, dse.c, gimple-ssa-isolate-paths.c,
396 gimple-ssa-strength-reduction.c, graphite.c, init-regs.c,
397 ipa-pure-const.c, ipa-visibility.c, ipa.c, mode-switching.c,
398 omp-low.c, reorg.c, sanopt.c, trans-mem.c, tree-eh.c,
399 tree-if-conv.c, tree-ssa-copyrename.c, tree-ssa-dce.c,
400 tree-ssa-dom.c, tree-ssa-dse.c, tree-ssa-forwprop.c,
401 tree-ssa-sink.c, tree-ssanames.c, tree-stdarg.c, tree-tailcall.c,
402 tree-vect-generic.c, tree.c, ubsan.c, var-tracking.c,
403 vtable-verify.c, web.c: Use GCC_FINAL instead of the anonymous
404
405 2015-08-12 Max Filippov <jcmvbkbc@gmail.com>
406
407 * config/xtensa/constraints.md (define_constraint "Y"): New
408 constraint.
409 * config/xtensa/elf.h (ASM_SPEC): Add m(no-)auto-litpools.
410 * config/xtensa/linux.h (ASM_SPEC): Likewise.
411 * config/xtensa/predicates.md (move_operand): Match constants
412 and symbols in the presence of TARGET_AUTO_LITPOOLS.
413 * config/xtensa/xtensa.c (xtensa_valid_move): Don't allow
414 immediate references to TLS data.
415 (xtensa_emit_move_sequence): Don't force constants to memory in
416 the presence of TARGET_AUTO_LITPOOLS.
417 (print_operand): Add 'y' format, same as default, but capable of
418 printing SF mode constants as well.
419 * config/xtensa/xtensa.md (movsi_internal, movhi_internal)
420 (movsf_internal): Add movi pattern that loads literal.
421 (movsf, movdf): Don't force constants to memory in the presence
422 of TARGET_AUTO_LITPOOLS.
423 (movdf_internal): Add 'Y' constraint.
424 * config/xtensa/xtensa.opt (mauto-litpools): New option.
425 * doc/invoke.text (Xtensa options): Document -mauto-litpools.
426
427 2015-08-12 Matthew Wahab <matthew.wahab@arm.com>
428
429 * config/arm/arm-fpus.def: Replace booleans with feature flags.
430 Update comment.
431 * config/arm/arm.c (ARM_FPU): Update macro.
432 * config/arm/arm.h (TARGET_NEON_FP16): Update feature test.
433 (TARGET_FP16): Likewise.
434 (TARGET_CRYPTO): Likewise.
435 (TARGET_NEON): Likewise.
436 (struct arm_fpu_desc): Remove fields neon, fp16 and crypto. Add
437 field features.
438
439 2015-08-12 Tom de Vries <tom@codesourcery.com>
440
441 PR other/67092
442 PR other/67098
443 * doc/install.texi: Remove --with_host_libstdcxx item. Update
444 --with-stage1-libs, --with-boot-ldflags and --with-boot-libs items
445 accordingly. Mention default for --with-stage1-ldflags.
446
447 2015-08-12 Matthew Wahab <matthew.wahab@arm.com>
448
449 * config/arm/arm.h (arm_fpu_feature_set): New.
450 (ARM_FPU_FSET_HAS): New.
451 (FPU_FL_NONE): New.
452 (FPU_FL_NEON): New.
453 (FPU_FL_FP16): New.
454 (FPU_FL_CRYPTO): New.
455
456 2015-08-12 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
457
458 * config/aarch64/aarch64.c (initialize_aarch64_code_model): Break
459 after -mcmodel=large -fPIC sorry.
460
461 2015-08-12 Richard Biener <rguenther@suse.de>
462
463 * tree-ssa-sccvn.c (vn_nary_op_compute_hash): Also canonicalize
464 comparison operand order and commutative ternary op operand order.
465 (sccvn_dom_walker::cond_stack): New state to track temporary
466 expressions.
467 (sccvn_dom_walker::after_dom_children): Remove tempoary expressions
468 no longer valid.
469 (sccvn_dom_walker::record_cond): Add a single temporary conditional
470 expression.
471 (sccvn_dom_walker::record_conds): Add a temporary conditional
472 expressions and all related expressions also true/false.
473 (sccvn_dom_walker::before_dom_children): Record temporary
474 expressions based on the controlling condition of a single
475 predecessor. When trying to simplify a conditional statement
476 lookup expressions we might have inserted earlier.
477
478 2015-08-12 Yvan Roux <yvan.roux@linaro.org>
479
480 PR target/67127
481 * config/arm/arm.md (movdi): Restrict illegitimate ldrd/strd checking
482 to ARM core registers.
483
484 2015-08-12 Nathan Sidwell <nathan@acm.org>
485
486 * tree-vrp.c (simplify_min_or_max_using_ranges): New.
487 (simplify_stmt_using_ranges): Simplify MIN and MAX exprs.
488
489 2015-08-12 Simon Dardis <simon.dardis@imgtec.com>
490
491 * config/mips/mips.c (mips_store_data_bypass_p): Bring code into
492 line with comments.
493 * config/mips/sb1.md: Update usage of mips_store_data_bypass_p.
494
495 2015-08-12 Richard Biener <rguenther@suse.de>
496
497 * gimple.h (remove_pointer): New trait.
498 (GIMPLE_CHECK2): New inline template function.
499 (gassign::code_): New constant static member.
500 (is_a_helper<const gassign *>): Add.
501 (gimple_assign_lhs): Use GIMPLE_CHECK2 in the gimple overload
502 and forward to a new gassign overload with less checking and a
503 cheaper way to access the operand.
504 (gimple_assign_lhs_ptr): Likewise.
505 (gimple_assign_set_lhs): Likewise.
506 (gimple_assign_rhs1, gimple_assign_rhs1_ptr, gimple_assign_set_rhs1):
507 Likewise.
508 (gimple_assign_rhs2, gimple_assign_rhs2_ptr, gimple_assign_set_rhs2):
509 Likewise.
510 (gimple_assign_rhs3, gimple_assign_rhs3_ptr, gimple_assign_set_rhs3):
511 Likewise.
512 (gimple_assign_rhs_code): Likewise.
513 * gimple.c (gassign::code_): Define.
514
515 2015-08-12 Richard Biener <rguenther@suse.de>
516
517 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children):
518 Eliminate edges marked as not executable by SCCVN.
519 * tree-ssa-sccvn.c: Include gimple-iterator.h.
520 (cond_dom_walker): Rename to sccvn_dom_walker.
521 (sccvn_dom_walker::before_dom_children): Value-number defs
522 of all stmts.
523 (run_scc_vn): Remove loop value-numbering all SSA names.
524 Drop not visited SSA names to varying.
525
526 2015-08-11 Trevor Saunders <tbsaunde@tbsaunde.org>
527
528 * compare-elim.c, dce.c, dse.c, gimple-ssa-isolate-paths.c,
529 gimple-ssa-strength-reduction.c, graphite.c, init-regs.c,
530 ipa-pure-const.c, ipa-visibility.c, ipa.c, mode-switching.c,
531 omp-low.c, reorg.c, sanopt.c, trans-mem.c, tree-eh.c,
532 tree-if-conv.c, tree-ssa-copyrename.c, tree-ssa-dce.c,
533 tree-ssa-dom.c, tree-ssa-dse.c, tree-ssa-forwprop.c,
534 tree-ssa-sink.c, tree-ssanames.c, tree-stdarg.c, tree-tailcall.c,
535 tree-vect-generic.c, tree.c, ubsan.c, var-tracking.c,
536 vtable-verify.c, web.c: Use GCC_FINAL instead of the anonymous
537
538 2015-08-11 Uros Bizjak <ubizjak@gmail.com>
539
540 PR target/66954
541 * config/i386/i386.c (get_builtin_code_for_version): Add P_PCLMUL
542 to enum feature_priority and feature_list.
543 (fold_builtin_cpu): Add F_PCLMUL to enum processor_features
544 and isa_names_table.
545
546 2015-08-11 Yuri Rumyantsev <ysrumyan@gmail.com>
547
548 * tree-vect-stmts.c (vectorizable_shift): Add missed test on
549 vect_induction_def.
550
551 2015-08-11 Manuel López-Ibáñez <manu@gcc.gnu.org>
552
553 PR c/66098
554 PR c/66711
555 * diagnostic.c (diagnostic_classify_diagnostic): Take -Werror into
556 account when deciding what was the command-line status.
557
558 2015-08-11 Nathan Sidwell <nathan@acm.org>
559
560 * tree-vrp.c (simplify_abs_using_ranges): Simplify.
561
562 * tree-ssa-phiopt.c (minmax_replacement): Create new ssa name if
563 we're not the only contributor to target phi.
564
565 2015-08-11 Jiong Wang <jiong.wang@arm.com>
566
567 * config/aarch64/aarch64.h (REG_CLASS_NAMES): Add the missing ',' after
568 FIXED_REG0.
569
570 2015-08-11 Tom de Vries <tom@codesourcery.com>
571
572 * tree-cfg.c (move_sese_region_to_fn): Add todo comment.
573
574 2015-08-10 H.J. Lu <hongjiu.lu@intel.com>
575
576 * config/i386/i386.c (processor_alias_table): Replace CPU_KNL
577 with CPU_SLM.
578 * config/i386/i386.md (cpu): Remove knl.
579
580 2015-08-10 Thomas Schwinge <thomas@codesourcery.com>
581
582 PR libgomp/65742
583 PR middle-end/66332
584 * builtins.c (expand_builtin_acc_on_device) [ACCEL_COMPILER]: Emit
585 open-coded sequence.
586 * omp-low.c (oacc_process_reduction_data): Remove handline of
587 GOMP_DEVICE_HOST_NONSHM.
588
589 * lto-streamer-in.c (lto_input_mode_table): Adjust to
590 GET_MODE_INNER changes.
591
592 2015-08-10 Thomas Schwinge <thomas@codesourcery.com>
593 Ilya Verbin <ilya.verbin@intel.com>
594
595 * lto-streamer-in.c (lto_input_mode_table): Correctly advance
596 iterator.
597
598 2015-08-09 Manuel López-Ibáñez <manu@gcc.gnu.org>
599
600 * doc/options.texi (EnabledBy): Document that the argument must be
601 a Common option.
602 * doc/invoke.texi (Wnull-dereference): Move after Wnonnull.
603 Not enabled by -Wall.
604 * optc-gen.awk: Give nicer error messages. Detect if the argument
605 of EnabledBy is not a Common option.
606 * common.opt (Wnull-dereference): Not enabled by -Wall.
607 * opt-functions.awk (lang_enabled_by): Nicer error messages.
608
609 2015-08-09 H.J. Lu <hongjiu.lu@intel.com>
610
611 * config/i386/driver-i386.c (host_detect_local_cpu): Treat
612 model == 0x4f as Broadwell.
613
614 2015-08-08 Segher Boessenkool <segher@kernel.crashing.org>
615
616 PR rtl-optimization/67028
617 * combine.c (simplify_comparison): Fix comment. Rearrange code.
618 Add test to see if a const_int fits in the new mode.
619
620 2015-08-07 DJ Delorie <dj@redhat.com>
621
622 * config/rx/rx.c (rx_mode_dependent_address_p): Remove unneeded asserts.
623
624 2015-08-07 H.J. Lu <hongjiu.lu@intel.com>
625
626 PR rtl-optimization/67029
627 * ira-color.c: Include "recog.h" before including "ira-int.h".
628 * target-globals.c: Likewise.
629 * ira-lives.c (ira_implicitly_set_insn_hard_regs): Add an
630 adds an alternative_mask argument and use it instead of
631 preferred_alternatives.
632 * ira.h (ira_implicitly_set_insn_hard_regs): Moved to ...
633 * ira-int.h (ira_implicitly_set_insn_hard_regs): Here.
634 * sched-deps.c: Include "ira-int.h" after including "ira.h".
635 (sched_analyze_insn): Update call to
636 ira_implicitly_set_insn_hard_regs.
637 * sel-sched.c: Include "ira-int.h" after including "ira.h".
638 (implicit_clobber_conflict_p): Update call to
639 ira_implicitly_set_insn_hard_regs.
640
641 2015-08-06 Uros Bizjak <ubizjak@gmail.com>
642
643 * Makefile.in (.INTERMEDIATE): Add gpl.pod.
644
645 2015-08-07 Kaz Kojima <kkojima@gcc.gnu.org>
646
647 PR target/67002
648 * config/sh/sh.c (sh_recog_treg_set_expr): Return false when
649 currently_expanding_to_rtl is set.
650
651 2015-08-06 Yaakov Selkowitz <yselkowi@redhat.com>
652
653 * configure.ac: Define LIBICONV_DEP with in-tree libiconv.
654 * configure: Regenerate.
655
656 2015-08-06 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
657 Jiong Wang <jiong.wang@arm.com>
658
659 * config/aarch64/aarch64.d (tlsdesc_small_pseudo_<mode>): New pattern.
660 * config/aarch64/aarch64.h (reg_class): New enumeration FIXED_REG0.
661 (REG_CLASS_NAMES): Likewise.
662 (REG_CLASS_CONTENTS): Likewise.
663 * config/aarch64/aarch64.c (aarch64_class_max_nregs): Likewise.
664 (aarch64_register_move_cost): Likewise.
665 (aarch64_load_symref_appropriately): Invoke the new added pattern if
666 possible.
667 * config/aarch64/constraints.md (Uc0): New constraint.
668
669 2015-08-06 Jiong Wang <jiong.wang@arm.com>
670
671 * config/aarch64/constraints.md (Usf): Add the test of
672 aarch64_is_noplt_call_p.
673
674 2015-08-06 Jiong Wang <jiong.wang@arm.com>
675
676 * config/aarch64/aarch64-protos.h (aarch64_is_noplt_call_p): New
677 declaration.
678 * config/aarch64/aarch64.c (aarch64_is_noplt_call_p): New function.
679 * config/aarch64/aarch64.md (call_value_symbol): Check noplt scenarios.
680 (call_symbol): Likewise.
681
682 2015-08-06 Venkataramanan Kumar <Venkataramanan.kumar@amd.com>
683
684 * tree-vect-patterns.c (vect_recog_mult_pattern): New function
685 for vectorizing multiplication patterns.
686 * tree-vectorizer.h: Adjust the number of patterns.
687
688 2015-08-06 Uros Bizjak <ubizjak@gmail.com>
689
690 * config/i386/sse.md (*vec_concatv2df): Declare added
691 alternatives as sselog type.
692
693 2015-08-06 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
694
695 * config/s390/s390.c (s390_dwarf_frame_reg_mode): Return Pmode for
696 all GPRs.
697
698 2015-08-06 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
699
700 * config/s390/s390.c (s390_expand_tbegin): Expand either
701 tbegin_1_z13 or tbegin_1 depending on VX flag.
702 * config/s390/s390.md ("tbegin_1_z13"): New expander.
703
704 2015-08-06 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
705
706 * config/s390/s390.opt: Clarify description for -mzvector
707 * doc/invoke.texi: Add documentation for -mhtm, -mvx, and
708 -mzvector.
709
710 2015-08-06 Richard Biener <rguenther@suse.de>
711
712 * gimple.h (gimple_call_set_fn): Access op member directly.
713 (gimple_call_chain_ptr): Likewise.
714 (gimple_call_set_chain): Likewise.
715 (gimple_cond_lhs_ptr): Likewise.
716 (gimple_cond_set_lhs): Likewise.
717 (gimple_cond_rhs_ptr): Likewise.
718 (gimple_cond_set_rhs): Likewise.
719 (gimple_cond_true_label): Likewise.
720 (gimple_cond_set_true_label): Likewise.
721 (gimple_cond_set_false_label): Likewise.
722 (gimple_cond_false_label): Likewise.
723 (gimple_label_label): Likewise.
724 (gimple_label_set_label): Likewise.
725 (gimple_goto_set_dest): Likewise.
726 (gimple_asm_input_op): Likewise.
727 (gimple_asm_input_op_ptr): Likewise.
728 (gimple_asm_set_input_op): Likewise.
729 (gimple_asm_output_op): Likewise.
730 (gimple_asm_output_op_ptr): Likewise.
731 (gimple_asm_set_output_op): Likewise.
732 (gimple_asm_clobber_op): Likewise.
733 (gimple_asm_set_clobber_op): Likewise.
734 (gimple_asm_label_op): Likewise.
735 (gimple_asm_set_label_op): Likewise.
736 (gimple_switch_index): Likewise.
737 (gimple_switch_index_ptr): Likewise.
738 (gimple_return_retval_ptr): Likewise.
739 (gimple_return_retval): Likewise.
740 (gimple_return_set_retval): Likewise.
741 (gimple_switch_set_index): Likewise. Remove superfluous GIMPLE_CHECK.
742 (gimple_switch_label): Likewise.
743 (gimple_switch_set_label): Likewise.
744
745 2015-08-06 Richard Biener <rguenther@suse.de>
746
747 * gimple-fold.c (gimple_fold_stmt_to_constant_1): Simplify
748 bool comparison canonicalization and restrict to integers.
749
750 2015-08-05 Andrew MacLeod <amacleod@redhat.com>
751
752 * coretypes.h (enum symbol_visibility): Relocate here.
753 * flag-types.h (enum symbol_visibility): Remove.
754 * tree-core.h (enum symbol_visibility): Remove.
755
756 2015-08-05 Lynn Boger <laboger@linux.vnet.ibm.com>
757
758 PR target/66870
759 * gcc/config/rs6000/rs6000.c (rs6000_emit_prologue): Check
760 for no_split_stack function attribute along with
761 flag_split_stack.
762 (rs6000_expand_split_stack_prologue): Likewise.
763
764 2015-08-05 Manuel López-Ibáñez <manu@gcc.gnu.org>
765 Jeff Law <law@redhat.com>
766
767 PR c/16351
768 * doc/invoke.texi (Wnull-dereference): New.
769 * tree-vrp.c (infer_value_range): Update call to infer_nonnull_range.
770 * gimple-ssa-isolate-paths.c (find_implicit_erroneous_behaviour):
771 Warn for potential NULL dereferences.
772 (find_explicit_erroneous_behaviour): Warn for NULL dereferences.
773 * ubsan.c (instrument_nonnull_arg): Call
774 infer_nonnull_range_by_attribute.
775 (instrument_nonnull_return): Likewise.
776 * common.opt (Wnull-dereference); New.
777 * gimple.c (infer_nonnull_range): Remove bool arguments.
778 (infer_nonnull_range_by_dereference): New.
779 (infer_nonnull_range_by_attribute): New.
780 * gimple.h: Update declarations.
781
782 2015-08-05 Richard Sandiford <richard.sandiford@arm.com>
783
784 * gensupport.c (sequence_num): Replace with...
785 (insn_sequence_num, split_sequence_num, peephole2_sequence_num):
786 ...these new variables.
787 (init_rtx_reader_args_cb): Update accordingly.
788 (get_num_code_insns): Likewise.
789 (read_md_rtx): Rework to use a while loop and get_c_test.
790 Use the new counters. Remove redundant DEFINE_SUBST case.
791 * genoutput.c (gen_split): Delete.
792 (main): Don't call it.
793
794 2015-08-05 Richard Sandiford <richard.sandiford@arm.com>
795
796 * gensupport.h (get_c_test): Declare.
797 * gensupport.c (get_c_test): New function.
798 * genconditions.c (main): Use it.
799 * genrecog.c (validate_pattern): Likewise.
800 (match_pattern_1): Likewise. Remove c_test argument.
801 (match_pattern): Update accordingly and remove c_test argument.
802 (main): Update accordingly.
803
804 2015-08-05 Richard Sandiford <richard.sandiford@arm.com>
805
806 * gensupport.h (get_num_insn_codes): Declare.
807 * gensupport.c (get_num_insn_codes): New function.
808 * genattrtab.c (optimize_attrs): Rename max_insn_code to
809 num_insn_codes.
810 (main): Likewise. Use get_num_insn_codes.
811 * gencodes.c (main): Remove "last" and use get_num_insn_codes.
812
813 2015-08-05 Richard Sandiford <richard.sandiford@arm.com>
814
815 PR middle-end/66311
816 * wide-int.cc (wi::from_mpz): Make sure that absolute mpz value
817 is zero- rather than sign-extended.
818
819 2015-08-05 Richard Sandiford <richard.sandiford@arm.com>
820
821 * target-insns.def (can_extend): Delete.
822
823 2015-08-05 Richard Biener <rguenther@suse.de>
824
825 PR tree-optimization/67121
826 * tree-if-conv.c (combine_blocks): Clear range-info produced
827 by stmts no longer executed conditionally.
828
829 2015-08-05 Nick Clifton <nickc@redhat.com>
830
831 * config/rl78/rl78.c (rl78_force_nonfar_3): Remove optimization
832 to allow identical far pointers to remain.
833
834 2015-08-05 Richard Biener <rguenther@suse.de>
835
836 PR middle-end/67120
837 * match.pd: Compare address bases with == if they are decls
838 or SSA names, not operand_equal_p. Otherwise fail.
839
840 2015-08-05 Richard Biener <rguenther@suse.de>
841
842 PR tree-optimization/67055
843 * tree-ssa-ccp.c (fold_builtin_alloca_with_align): Handle
844 NULL gimple_block.
845
846 * g++.dg/torture/pr67055.C: New testcase.
847
848 2015-08-05 Kirill Yukhin <kirill.yukhin@intel.com>
849
850 * config/i386/i386.md (define_attr "isa"): Addd avx512vl and
851 noavx512vl.
852 (define_attr "enabled"): Handle avx521vl and noavx512vl.
853 * config/i386/sse.md (define_insn "vec_dupv2df<mask_name>"): Split
854 AVX-512 alternative out of SSE.
855 (define_insn "*vec_concatv2df"): Ditto.
856
857 2015-08-05 Kirill Yukhin <kirill.yukhin@intel.com>
858
859 * config/i386/i386.c (bdesc_args): Rename CODE_FOR_sse4_1_ptest into
860 CODE_FOR_sse4_1_ptestv2di and CODE_FOR_avx_vtestps256 into
861 CODE_FOR_avx_ptestv4di.
862 * config/i386/sse.md (define_mode_iterator V_AVX): New.
863 (define_mode_attr sse4_1): Extend to other 128/256-bit modes.
864 (define_insn "avx_ptest256"): Merge this ...
865 (define_insn "sse4_1_ptest"): And this ...
866 (define_insn "<sse4_1>_ptest<mode>"): Into this. Use V_AVX iterator.
867
868 2015-08-05 Richard Biener <rguenther@suse.de>
869
870 PR tree-optimization/67109
871 * tree-vect-data-refs.c (vect_analyze_group_access_1): Check
872 against too big groups. Print whether this is a load or store
873 group. Rename from ...
874 (vect_analyze_group_access): ... this which is now a wrapper
875 dissolving an invalid group.
876 (vect_analyze_data_ref_accesses): Print whether this is a load
877 or store group.
878
879 2015-08-05 Richard Biener <rguenther@suse.de>
880
881 PR middle-end/67107
882 * match.pd: Guard const_binop result checking against NULL_TREE
883 result.
884
885 2015-08-05 Kugan Vivekanandarajah <kuganv@linaro.org>
886
887 * cse.c (cse_insn): Restoring old behaviour for src_eqv
888 when dest and value in the REG_EQUAL are same and dest
889 is STRICT_LOW_PART.
890
891 2015-08-04 Anatoly Sokolov <aesok@post.ru>
892
893 * config/moxie/moxie.h (PRINT_OPERAND,
894 PRINT_OPERAND_ADDRESS): Remove macros.
895 * config/moxie/moxie-protos.h (moxie_print_operand,
896 moxie_print_operand_address): Remove declaration.
897 * config/moxie/moxie.c (TARGET_PRINT_OPERAND,
898 TARGET_PRINT_OPERAND_ADDRESS): Define.
899 (moxie_print_operand, moxie_print_operand_address): Make static.
900
901 2015-08-04 Szabolcs Nagy <szabolcs.nagy@arm.com>
902
903 PR target/66731
904 * config/aarch64/aarch64.c (aarch64_rtx_costs): Fix NEG cost for FNMUL.
905 (aarch64_rtx_mult_cost): Fix MULT cost with -frounding-math.
906
907 2015-08-04 Richard Biener <rguenther@suse.de>
908
909 * genmatch.c (dt_node::gen_kids_1): Use gassign and gcall in
910 generated code.
911 (dt_operand::gen_gimple_expr): Adjust.
912
913 2015-08-04 Richard Biener <rguenther@suse.de>
914
915 * gimple-fold.c (gimple_fold_stmt_to_constant_1): Canonicalize
916 bool compares on RHS.
917 * match.pd: Add X ==/!= !X is false/true pattern.
918
919 2015-08-04 Pawel Kupidura <pawel.kupidura@arm.com>
920
921 * config/aarch64/aarch64.c: Change inner loop statement cost
922 to be consistent with other targets.
923
924 2015-08-04 Christophe Lyon <christophe.lyon@linaro.org>
925
926 * config/arm/neon.md (neon_vget_lanev2di): Handle big-endian
927 targets.
928
929 2015-08-04 Nathan Sidwell <nathan@codesourcery.com>
930
931 * config/nvptx/nvptx.h (struct nvptx_pseudo_info): Delete.
932 (machine_function): Remove pseudos field.
933
934 2015-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
935
936 * config/aarch64/aarch64.c (aarch64_option_valid_attribute_p):
937 Exit early and use target_option_current_node if processing current
938 pragma.
939
940 2015-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
941
942 * doc/extend.texi (AArch64 Function Attributes): New node.
943 (AArch64 Pragmas): Likewise.
944
945 2015-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
946
947 * config/aarch64/aarch64.c (aarch64_option_valid_attribute_p):
948 Initialize simd builtins if TARGET_SIMD.
949 * config/aarch64/aarch64-builtins.c (aarch64_init_simd_builtins):
950 Make sure that the builtins are initialized only once no matter how
951 many times the function is called.
952 (aarch64_init_builtins): Unconditionally initialize crc builtins.
953 (aarch64_relayout_simd_param): New function.
954 (aarch64_simd_expand_args): Use above during argument expansion.
955 * config/aarch64/aarch64-c.c (aarch64_pragma_target_parse): Initialize
956 simd builtins if TARGET_SIMD.
957 * config/aarch64/aarch64-protos.h (aarch64_init_simd_builtins): New
958 prototype.
959 (aarch64_relayout_simd_types): Likewise.
960
961 2015-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
962
963 * config.gcc (aarch64*-*-*): Specify c_target_objs and cxx_target_objs.
964 * config/aarch64/aarch64.h (REGISTER_TARGET_PRAGMAS): Define.
965 (TARGET_CPU_CPP_BUILTINS): Redefine to call aarch64_cpu_cpp_builtins.
966 * config/aarch64/aarch64.c (aarch64_override_options_internal): Remove
967 static keyword.
968 (aarch64_reset_previous_fndecl): New function.
969 (aarch64_handle_attr_isa_flags): Handle "+nothing" in the beginning of
970 the string.
971 * config/aarch64/aarch64-c.c: New file.
972 * config/aarch64/arm_acle.h: Add pragma +crc+nofp at the top.
973 Push and pop options at beginning and end. Remove ifdef
974 __ARM_FEATURE_CRC32.
975 * config/aarch64/arm_neon.h: Remove #ifdef check on __ARM_NEON.
976 Add pragma +nothing+simd and +nothing+crypto where appropriate.
977 * config/aarch64/t-aarch64 (aarch64-c.o): New rule.
978 * config/aarch64/aarch64-protos.h (aarch64_cpu_cpp_builtins):
979 Define prototype.
980 (aarch64_register_pragmas): Likewise.
981 (aarch64_reset_previous_fndecl): Likewise.
982 (aarch64_process_target_attr): Likewise.
983 (aarch64_override_options_internal): Likewise.
984
985 2015-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
986
987 * config/aarch64/aarch64.c (aarch64_tribools_ok_for_inlining_p):
988 New function.
989 (aarch64_can_inline_p): Likewise.
990 (TARGET_CAN_INLINE_P): Define.
991
992 2015-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
993
994 * common/config/aarch64/aarch64-common.c (aarch64_handle_option):
995 Remove static. Handle OPT_mgeneral_regs_only,
996 OPT_mfix_cortex_a53_835769, OPT_mstrict_align,
997 OPT_momit_leaf_frame_pointer.
998 * config/aarch64/aarch64.c: Include opts.h and diagnostic.h
999 (aarch64_attr_opt_type): New enum.
1000 (aarch64_attribute_info): New struct.
1001 (aarch64_handle_attr_arch): New function.
1002 (aarch64_handle_attr_cpu): Likewise.
1003 (aarch64_handle_attr_tune): Likewise.
1004 (aarch64_handle_attr_isa_flags): Likewise.
1005 (aarch64_attributes): New table.
1006 (aarch64_process_one_target_attr): New function.
1007 (num_occurences_in_str): Likewise.
1008 (aarch64_process_target_attr): Likewise.
1009 (aarch64_option_valid_attribute_p): Likewise.
1010 (TARGET_OPTION_VALID_ATTRIBUTE_P): Define.
1011 * config/aarch64/aarch64-protos.h: Include input.h
1012 (aarch64_handle_option): Declare prototype.
1013
1014 2015-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
1015
1016 * config/aarch64/aarch64.h (SWITCHABLE_TARGET): Define.
1017 * config/aarch64/aarch64.c: Include target-globals.h
1018 (aarch64_previous_fndecl): New variable.
1019 (aarch64_set_current_function): New function.
1020 (TARGET_SET_CURRENT_FUNCTION): Define.
1021
1022 2015-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
1023
1024 * config/aarch64/aarch64.opt (explicit_tune_core): New TargetVariable.
1025 (explicit_arch): Likewise.
1026 (x_aarch64_isa_flags): Likewise.
1027 (mgeneral-regs-only): Mark as Save.
1028 (mfix-cortex-a53-835769): Likewise.
1029 (mcmodel=): Likewise.
1030 (mstrict-align): Likewise.
1031 (momit-leaf-frame-pointer): Likewise.
1032 (mtls-dialect): Likewise.
1033 (master=): Likewise.
1034 * config/aarch64/aarch64.h (ASM_DECLARE_FUNCTION_NAME): Define.
1035 (aarch64_isa_flags): Remove extern declaration.
1036 * config/aarch64/aarch64.c (aarch64_validate_mcpu): Return a bool
1037 to indicate success or failure.
1038 (aarch64_validate_march): Likewise.
1039 (aarch64_validate_mtune): Likewise.
1040 (aarch64_isa_flags): Delete.
1041 (aarch64_override_options_internal): Access opts->x_aarch64_isa_flags
1042 instead of aarch64_isa_flags.
1043 (aarch64_get_tune_cpu): New function.
1044 (aarch64_get_arch): Likewise.
1045 (aarch64_override_options): Use above and set up explicit_tune_core
1046 and explicit_arch.
1047 (aarch64_print_extension): Move earlier in file. Add isa_flags
1048 argument and use that instead of the global aarch64_isa_flags.
1049 (aarch64_option_save): New function.
1050 (aarch64_option_restore): Likewise.
1051 (aarch64_option_print): Likewise.
1052 (aarch64_declare_function_name): Likewise.
1053 (aarch64_start_file): Delete.
1054 (TARGET_ASM_FILE_START): Do not define.
1055 (TARGET_OPTION_RESTORE, TARGET_OPTION_PRINT): Define.
1056 * config/aarch64/aarch64-protos.h (aarch64_declare_function_name):
1057 Declare prototype.
1058
1059 2015-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
1060
1061 * config/aarch64/aarch64.opt (momit-leaf-frame-pointer): Initialize
1062 flag_omit_leaf_frame_pointer to 2.
1063
1064 2015-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
1065
1066 * config/aarch64/aarch64.h (TARGET_FIX_ERR_A53_835769_DEFAULT): Always
1067 define to 0 or 1.
1068 (TARGET_FIX_ERR_A53_835769): New macro.
1069 * config/aarch64/aarch64.c (aarch64_override_options_internal): Remove
1070 handling of opts->x_aarch64_fix_a53_err835769.
1071 (aarch64_madd_needs_nop): Check for TARGET_FIX_ERR_A53_835769 rather
1072 than aarch64_fix_a53_err835769.
1073 * config/aarch64/aarch64-elf-raw.h: Update for above changes.
1074 * config/aarch64/aarch64-linux.h: Likewise.
1075
1076 2015-08-04 Uros Bizjak <ubizjak@gmail.com>
1077
1078 * config/i386/i386.c (ix86_expand_int_movcc): Check result of
1079 ix86_expand_int_movcc as boolean.
1080
1081 2015-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
1082
1083 * config/aarch64/aarch64.opt (aarch64_arch_string): Delete.
1084 (aarch64_cpu_string): Likewise.
1085 (aarch64_tune_string): Likewise.
1086 * config/aarch64/aarch64.c (aarch64_parse_opt_result): New enum.
1087 (aarch64_parse_extension): Return aarch64_parse_opt_result.
1088 Add extra argument to put result into.
1089 (aarch64_parse_arch): Likewise. Do not set selected_cpu.
1090 (aarch64_parse_cpu): Add arguments to put results into. Return
1091 aarch64_parse_opt_result.
1092 (aarch64_parse_tune): Likewise.
1093 (aarch64_override_options_after_change_1): New function.
1094 (aarch64_override_options_internal): New function.
1095 (aarch64_validate_mcpu): Likewise.
1096 (aarch64_validate_march): Likewise.
1097 (aarch64_validate_mtune): Likewise.
1098 (aarch64_override_options): Update to reflect above changes.
1099 Move some logic into aarch64_override_options_internal.
1100 Initialize target_option_default_node and target_option_current_node.
1101 (aarch64_override_options_after_change): Move logic into
1102 aarch64_override_options_after_change_1 and call it with global_options.
1103 (initialize_aarch64_code_model): Take a gcc_options pointer and use the
1104 flag values from that.
1105
1106 2015-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
1107
1108 * config/aarch64/aarch64.h (TARGET_CPU_CPP_BUILTINS): Define
1109 __ARM_ARCH_8A directly rather than with cpp_define_formatted.
1110 * config/aarch64/aarch64.c (struct processor): Add arch field.
1111 (all_architectures): Handle above, move above all_cores.
1112 (all_cores): Handle above.
1113 (aarch64_parse_arch): Handle above changes.
1114 * config/aarch64/aarch64-arches.def (armv8-a): Extend according to
1115 above. Update comments.
1116 (armv8.1-a): Likewise.
1117 * config/aarch64/aarch64-cores.def: Update according to above.
1118 * config/aarch64/aarch64-opts.h (aarch64_arch): New enum.
1119 * config/aarch64/driver-aarch64.c (struct aarch64_arch): Rename to
1120 aarch64_arch_driver_info.
1121
1122 2015-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
1123
1124 * config/aarch64/aarch64.c (struct processor): Add ident field.
1125 Rename core sched_core.
1126 (all_cores): Handle above changes.
1127 (all_architectures): Likewise.
1128 (aarch64_parse_arch): Likewise.
1129 (aarch64_override_options): Likewise.
1130
1131 2015-08-04 Richard Biener <rguenther@suse.de>
1132
1133 * gimple-fold.c (gimple_fold_stmt_to_constant_1): Remove
1134 dispatching to fold_binary for GIMPLE_BINARY_RHS and for
1135 comparisons embedded in [VEC_]COND_EXPRs.
1136
1137 2015-08-03 Abe Skolnik <a.skolnik@samsung.com>
1138
1139 * tree-if-conv.c: Fix various typos in comments.
1140 * tree-vect-stmts.c: Likewise.
1141
1142 2015-08-04 Thomas Preud'homme <thomas.preudhomme@arm.com>
1143
1144 PR tree-optimization/67043
1145 * loop-invariant.c (move_invariant_reg): Recompute luids in loop
1146 preheader after hoisting invariant in it.
1147 (find_defs): Force recomputation of all luids.
1148
1149 2015-08-03 Peter Bergner <bergner@vnet.ibm.com>
1150
1151 * config/rs6000/htm.md (tabort.): Restrict the source operand to
1152 using a base register.
1153
1154 2015-08-03 David Malcolm <dmalcolm@redhat.com>
1155
1156 * main.c (main): Pass in NULL for toplev's external_timer.
1157 * timevar.c: Include coretypes.h.
1158 (class timer::named_items): New.
1159 (timer::named_items::named_items): New.
1160 (timer::named_items::~named_items): New.
1161 (timer::named_items::push): New.
1162 (timer::named_items::pop): New.
1163 (timer::named_items::print): New.
1164 (timer::timer): Initialize field "m_jit_client_items".
1165 (timer::~timer): New.
1166 (timer::push): Move bulk of implementation to...
1167 (timer::push_internal): ...here. New function.
1168 (timer::pop): Move bulk of implementation to...
1169 (timer::pop_internal): ...here. New function.
1170 (timer::push_client_item): New.
1171 (timer::pop_client_item): New.
1172 (timer::print_row): New function, taken from timer::print.
1173 (timer::print): Print "GCC items" header if we also have client
1174 items. Move row-printing to timer::print_row. Print any client
1175 items.
1176 (timer::get_topmost_item_name): New method.
1177 * timevar.def (TV_JIT_ACQUIRING_MUTEX): New.
1178 (TV_JIT_CLIENT_CODE): New.
1179 * timevar.h (timer::push_client_item): New declaration.
1180 (timer::pop_client_item): New declaration.
1181 (timer::get_topmost_item_name): New method.
1182 (timer::push_internal): New declaration.
1183 (timer::pop_internal): New declaration.
1184 (timer::print_row): New declaration.
1185 (timer::named_items): New declaration.
1186 (timer::m_jit_client_items): New field.
1187 (timer): Add friend class named_items.
1188 (auto_timevar::auto_timevar): Add timer param.
1189 (auto_timevar::~auto_timevar): Use field "m_timer".
1190 (auto_timevar::m_timer): New field.
1191 * toplev.c (initialize_rtl): Add g_timer as param when
1192 constructing auto_timevar instance.
1193 (toplev::toplev): Add "external_timer" param, and use it to
1194 initialize the "g_timer" global if non-NULL.
1195 (toplev::~toplev): If this created "g_timer", delete it.
1196 * toplev.h (toplev::toplev): Replace "use_TV_TOTAL" bool param
1197 with "external_timer" timer *.
1198
1199 2015-08-03 Alexander Basov <coohpt@gmail.com>
1200
1201 PR middle-end/64744
1202 PR middle-end/48470
1203 PR middle-end/43404
1204 * cfgexpand.c (expand_one_var): Add check if stack is going to
1205 be used in naked function.
1206 * expr.c (expand_expr_addr_expr_1): Remove excess checking
1207 whether expression should not reside in MEM.
1208 * function.c (use_register_for_decl): Do not use registers for
1209 non-register things (volatile, float, BLKMode) in naked functions.
1210
1211 2015-08-03 John David Anglin <danglin@gcc.gnu.org>
1212
1213 PR target/67060
1214 * config/pa/pa.md (call_reg_64bit): Remove reg:DI 1 clobber.
1215 Adjust splits to match new pattern.
1216
1217 2015-08-03 Michael Meissner <meissner@linux.vnet.ibm.com>
1218
1219 * config/rs6000/vector.md (VEC_L): Add KFmode and TFmode.
1220 (VEC_M): Likewise.
1221 (VEC_N): Likewise.
1222 (mov<mode>, VEC_M iterator): Add support for IEEE 128-bit floating
1223 point in VSX registers.
1224
1225 * config/rs6000/constraints.md (wb constraint): Document unused
1226 w<x> constraint.
1227 (we constraint): Likewise.
1228 (wo constraint): Likewise.
1229 (wp constraint): New constraint for IEEE 128-bit floating point in
1230 VSX registers.
1231 (wq constraint): Likewise.
1232
1233 * config/rs6000/predicates.md (easy_fp_constant): Add support for
1234 IEEE 128-bit floating point in VSX registers.
1235 (easy_scalar_constant): Likewise.
1236
1237 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Add new
1238 constraints (wp, wq) for IEEE 128-bit floating point in VSX
1239 registers.
1240 (rs6000_init_hard_regno_mode_ok): Likewise.
1241
1242 * config/rs6000/vsx.md (VSX_LE_128): Add support for IEEE 128-bit
1243 floating point in VSX registers.
1244 (VSX_L): Likewise.
1245 (VSX_M): Likewise.
1246 (VSX_M2): Likewise.
1247 (VSm): Likewise.
1248 (VSs): Likewise.
1249 (VSr): Likewise.
1250 (VSa): Likewise.
1251 (VSv): Likewise.
1252 (vsx_le_permute_<mode>): Add support to properly swap bytes for
1253 IEEE 128-bit floating point in VSX registers on little endian.
1254 (vsx_le_undo_permute_<mode>): Likewise.
1255 (vsx_le_perm_load_<mode>): Likewise.
1256 (vsx_le_perm_store_<mode>): Likewise.
1257 (splitters for IEEE 128-bit fp moves): Likewise.
1258
1259 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Add wp and
1260 wq constraints.
1261
1262 * config/rs6000/altivec.md (VM): Add support for IEEE 128-bit
1263 floating point in VSX registers.
1264 (VM2): Likewise.
1265
1266 * doc/md.text (Machine Constraints): Document wp and wq
1267 constraints on PowerPC.
1268
1269 2015-08-03 Jeff Law <law@redhat.com>
1270
1271 PR middle-end/66314
1272 PR gcov-profile/66899
1273 * tree-ssa-threadupdate.c (mark_threaded_blocks): Correctly
1274 iterate over the jump threading paths when an element in the
1275 jump threading paths array is eliminated.
1276
1277 2015-08-03 Segher Boessenkool <segher@kernel.crashing.org>
1278
1279 * Makefile.in (OBJS): Put gimple-match.o and generic-match.o first.
1280
1281 2015-08-03 Patrick Palka <ppalka@gcc.gnu.org>
1282
1283 * tree-ssa-uninit.c (find_uninit_use): Declare and pass to
1284 is_use_properly_guarded the variable def_preds. Free its
1285 contents before returning.
1286 (prune_uninit_phi_opnds_in_unrealizable_paths): Same.
1287 (is_use_properly_guarded): Replace local variable def_preds with
1288 a parameter. Adjust accordingly. Only update *def_preds if it's
1289 the empty vector.
1290
1291 2015-08-03 Richard Biener <rguenther@suse.de>
1292
1293 * genmatch.c (simplify::for_subst_vec): New member.
1294 (binary_ok): New helper for for lowering.
1295 (lower_for): Delay substituting operators into result expressions
1296 if we can merge the results eventually again.
1297 (capture_info::walk_result): Adjust for user_id appearing as
1298 result expression operator.
1299 (expr::gen_transform): Likewise.
1300 (dt_simplify::gen_1): Likewise.
1301 (dt_simplify::gen): Pass not substituted operators to tail
1302 functions or initialize local variable with it.
1303 (decision_tree::gen): Adjust function signature.
1304 * match.pd: Fix tests against global code and add default
1305 cases to switch stmts.
1306
1307 2015-08-03 Richard Biener <rguenther@suse.de>
1308
1309 * genmatch.c (dt_simplify::gen): Create captures array
1310 with an initializer.
1311
1312 2015-08-03 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
1313
1314 * configure.ac: Set aliasing_flags to -fno-strict-aliasing if
1315 the host compiler is affected by placement new aliasing bug.
1316 * configure: Regenerate.
1317 * Makefile.in (ALIASING_FLAGS): New variable.
1318 (ALL_CXXFLAGS): Add $(ALIASING_FLAGS).
1319
1320 2015-08-03 Szabolcs Nagy <szabolcs.nagy@arm.com>
1321
1322 PR target/66731
1323 * config/arm/vfp.md (negmuldf3_vfp): Add new pattern.
1324 (negmulsf3_vfp): Likewise.
1325 (muldf3negdf_vfp): Disable for -frounding-math.
1326 (mulsf3negsf_vfp): Likewise.
1327 * config/arm/arm.c (arm_new_rtx_costs): Fix NEG cost for VNMUL,
1328 fix MULT cost with -frounding-math.
1329
1330 2015-08-03 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
1331
1332 * ifcvt.c (noce_try_store_flag_constants): Make logic of the case
1333 when diff == STORE_FLAG_VALUE or diff == -STORE_FLAG_VALUE more
1334 explicit. Prefer to add the flag whenever possible.
1335 (noce_process_if_block): Try noce_try_store_flag_constants before
1336 noce_try_cmove.
1337
1338 2015-08-03 Richard Biener <rguenther@suse.de>
1339
1340 * genmatch.c (struct sinfo, struct sinfo_hashmap_traits, sinfo_map_t):
1341 New hash-map to record equivalent transforms.
1342 (dt_node::analyze): Populate the equivalent transforms hash-map.
1343 (dt_simplify::info): Add reference to hash-map entry.
1344 (dt_simplify::gen): If we have split out a function for the
1345 transform, generate a call to it.
1346 (sinfo_hashmap_traits::hash): New function.
1347 (compare_op): New helper function for ...
1348 (sinfo_hashmap_traits::equal_keys): ... this new function.
1349 (decision_tree::gen): Split out common equivalent transforms
1350 into functions.
1351
1352 2015-08-03 Richard Biener <rguenther@suse.de>
1353
1354 * gimple-fold.c (fold_gimple_assign): Remove folding of
1355 the comparison in COND_EXPRs.
1356
1357 2015-08-03 Richard Biener <rguenther@suse.de>
1358
1359 * gimple-match-head.c (gimple_simplify): For [VEC_]COND_EXPRs
1360 on the rhs of assignments first simplify the embedded
1361 GENERIC condition.
1362
1363 2015-08-03 Richard Biener <rguenther@suse.de>
1364
1365 PR tree-optimization/66917
1366 * tree-vectorizer.h (struct dataref_aux): Add base_element_aligned
1367 field.
1368 (DR_VECT_AUX): New macro.
1369 (set_dr_misalignment): Adjust.
1370 (dr_misalignment): Likewise.
1371 * tree-vect-data-refs.c (vect_compute_data_ref_alignment):
1372 Compute whether the base is at least element aligned.
1373 * tree-vect-stmts.c (ensure_base_align): Adjust.
1374 (vectorizable_store): If the base is not element aligned
1375 preserve alignment of the original access if misalignment is unknown.
1376 (vectorizable_load): Likewise.
1377
1378 2015-08-02 Martin Sebor <msebor@redhat.com>
1379
1380 * c-family/c.opt (-Wframe-address): New warning option.
1381 * doc/invoke.texi (Wframe-address): Document it.
1382 * doc/extend.texi (__builtin_frame_address, __builtin_return_address):
1383 Clarify possible effects of calling the functions with non-zero
1384 arguments and mention -Wframe-address.
1385 * builtins.c (expand_builtin_frame_address): Handle -Wframe-address.
1386
1387 2015-08-01 Michael Collison <michael.collison@linaro.org
1388 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
1389
1390 * gcc/config/arm/arm.md (*arm_smin_cmp): New pattern.
1391 (*arm_umin_cmp): Likewise.
1392
1393 2015-08-01 Caroline Tice <cmtice@google.com>
1394
1395 PR 66521
1396 * vtable-verify.c (vtbl_mangled_name_types, vtbl_mangled_name_ids): New
1397 global variables.
1398 (vtbl_find_mangled_name): New function.
1399 (vtbl_register_mangled_name): New function.
1400 (vtbl_map_get_node): If DECL_ASSEMBLER_NAME is "<anon>", look up
1401 mangled name in mangled name vectors.
1402 (find_or_create_vtbl_map_node): Ditto.
1403 (var_is_used_for_virtual_call_p): Add recursion_depth parameter;
1404 update recursion_depth on function entry; pass it to every recursive
1405 call; automatically exit if depth > 25 (give up looking at that point).
1406 (verify_bb_vtables): Initialize recursion_depth and pass it to
1407 var_is_used_for_virtual_call_p.
1408 * vtable-verify.h (vtbl_mangbled_name_types, vtbl_mangled_name_ids): New
1409 global variable decls.
1410 (vtbl_register_mangled_name): New extern function decl.
1411
1412 2015-08-01 Tom de Vries <tom@codesourcery.com>
1413
1414 * tree.c (operation_can_overflow, operation_no_trapping_overflow): New
1415 function.
1416 * tree.h (operation_can_overflow, operation_no_trapping_overflow):
1417 Declare.
1418 * tree-vect-loop.c (vect_is_simple_reduction_1): Use
1419 operation_no_trapping_overflow. Allow non-overflow operations.
1420 * graphite-sese-to-poly.c (is_reduction_operation_p): Allow non-overflow
1421 operations.
1422
1423 2015-07-31 Kaz Kojima <kkojima@gcc.gnu.org>
1424
1425 PR target/67049
1426 * config/sh/sh.md (GOTaddr2picreg): Fix typo.
1427
1428 2015-07-31 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
1429
1430 * config/arm/arm.md (*if_neg_move): Convert to insn_and_split.
1431 Enable for TARGET_32BIT.
1432 (*if_move_neg): Likewise.
1433
1434 2015-07-31 Nick Clifton <nickc@redhat.com>
1435
1436 * config/m32r/m32r.c (m32r_attribute_identifier): New function.
1437 Returns true for __model__.
1438 (TARGET_ATTRIBUTE_TAKES_IDENTIFIER_P): Define.
1439
1440 2015-07-31 Alan Modra <amodra@gmail.com>
1441
1442 PR target/66870
1443 * config/rs6000/rs6000.c (machine_function): Add split_stack_argp_used.
1444 (rs6000_emit_prologue): Set it.
1445 (rs6000_set_up_by_prologue): Specify r12 when split_stack_argp_used.
1446
1447 2015-07-31 Richard Biener <rguenther@suse.de>
1448
1449 * fold-const.c (fold_binary_loc): Remove X ^ C1 == C2
1450 -> X == (C1 ^ C2) which is already implemented in match.pd.
1451 Remove redundant dispatching to fold_relational_const.
1452 Move unordered self and NaN compares ...
1453 * match.pd: ... as patterns here. Remove some stray captures
1454 and add a comment.
1455
1456 2015-07-31 Petr Murzin <petr.murzin@intel.com>
1457
1458 * config/i386/i386.c
1459 (bdesc_special_args): Convert mask type from signed to unsigned for
1460 masked builtins.
1461 (ix86_expand_args_builtin): Do not handle UINT_FTYPE_V2DF,
1462 UINT64_FTYPE_V2DF, UINT64_FTYPE_V4SF, V16QI_FTYPE_V8DI,
1463 V16HI_FTYPE_V16SI, V16SI_FTYPE_V16SI, V16SF_FTYPE_FLOAT,
1464 V8HI_FTYPE_V8DI, V8UHI_FTYPE_V8UHI, V8SI_FTYPE_V8DI, V8SF_FTYPE_V8DF,
1465 V8DI_FTYPE_INT64, V8DI_FTYPE_V4DI, V8DI_FTYPE_V8DI, V8DF_FTYPE_DOUBLE,
1466 V8DF_FTYPE_V8SI, V16SI_FTYPE_V16SI_V16SI, V16SF_FTYPE_V16SF_V16SI,
1467 V8DI_FTYPE_V8DI_V8DI, V8DF_FTYPE_V8DF_V8DI, V4SI_FTYPE_V4SF_V4SF,
1468 V4SF_FTYPE_V4SF_UINT64, V2UDI_FTYPE_V4USI_V4USI, V2DI_FTYPE_V2DF_V2DF,
1469 V2DF_FTYPE_V2DF_UINT64, V4UDI_FTYPE_V8USI_V8USI, QI_FTYPE_V8DI_V8DI,
1470 HI_FTYPE_V16SI_V16SI, HI_FTYPE_HI_INT, V16SF_FTYPE_V16SF_V16SF_V16SF,
1471 V16SF_FTYPE_V16SF_V16SI_V16SF, V16SF_FTYPE_V16SI_V16SF_HI,
1472 V16SF_FTYPE_V16SI_V16SF_V16SF, V16SI_FTYPE_V16SF_V16SI_HI,
1473 V8DI_FTYPE_V8SF_V8DI_QI, V8SF_FTYPE_V8DI_V8SF_QI, V8DI_FTYPE_PV4DI,
1474 V8DF_FTYPE_V8DI_V8DF_QI, V16SI_FTYPE_V16SI_V16SI_V16SI,
1475 V2DI_FTYPE_V2DI_V2DI_V2DI, V8DI_FTYPE_V8DF_V8DI_QI, V8DF_FTYPE_PV4DF,
1476 V8SI_FTYPE_V8SI_V8SI_V8SI, V8DF_FTYPE_V8DF_V8DF_V8DF, UINT_FTYPE_V4SF,
1477 V8DF_FTYPE_V8DF_V8DI_V8DF, V8DF_FTYPE_V8DI_V8DF_V8DF,
1478 V8DF_FTYPE_V8SF_V8DF_QI, V8DI_FTYPE_V8DI_V8DI_V8DI, V16SF_FTYPE_PV4SF,
1479 V8SF_FTYPE_V8DF_V8SF_QI, V8SI_FTYPE_V8DF_V8SI_QI, V16SI_FTYPE_PV4SI,
1480 V2DF_FTYPE_V2DF_V4SF_V2DF_QI, V4SF_FTYPE_V4SF_V2DF_V4SF_QI,
1481 V8DI_FTYPE_V8DI_SI_V8DI_V8DI, QI_FTYPE_V8DF_V8DF_INT_QI,
1482 HI_FTYPE_V16SF_V16SF_INT_HI, V16SF_FTYPE_V16SF_V16SF_V16SI_INT_HI,
1483 VOID_FTYPE_PDOUBLE_V2DF_QI, VOID_FTYPE_PFLOAT_V4SF_QI,
1484 V2DF_FTYPE_PCDOUBLE_V2DF_QI, V4SF_FTYPE_PCFLOAT_V4SF_QI.
1485 * config/i386/i386-builtin-types.def
1486 (V16QI_FTYPE_V16SI): Remove.
1487 (V8DF_FTYPE_V8SI): Ditto.
1488 (V8HI_FTYPE_V8DI): Ditto.
1489 (V8SI_FTYPE_V8DI): Ditto.
1490 (V8SF_FTYPE_V8DF): Ditto.
1491 (V8SF_FTYPE_V8DF_V8SF_QI): Ditto.
1492 (V16HI_FTYPE_V16SI): Ditto.
1493 (V16SF_FTYPE_V16HI): Ditto.
1494 (V16SF_FTYPE_V16HI_V16SF_HI): Ditto.
1495 (V16SF_FTYPE_V16SI): Ditto.
1496 (V4DI_FTYPE_V4DI): Ditto.
1497 (V16SI_FTYPE_V16SF): Ditto.
1498 (V16SF_FTYPE_FLOAT): Ditto.
1499 (V8DF_FTYPE_DOUBLE): Ditto.
1500 (V8DI_FTYPE_INT64): Ditto.
1501 (V8DI_FTYPE_V4DI): Ditto.
1502 (V16QI_FTYPE_V8DI): Ditto.
1503 (UINT_FTYPE_V4SF): Ditto.
1504 (UINT64_FTYPE_V4SF): Ditto.
1505 (UINT_FTYPE_V2DF): Ditto.
1506 (UINT64_FTYPE_V2DF): Ditto.
1507 (V16SI_FTYPE_V16SI): Ditto.
1508 (V8DI_FTYPE_V8DI): Ditto.
1509 (V16SI_FTYPE_PV4SI): Ditto.
1510 (V16SF_FTYPE_PV4SF): Ditto.
1511 (V8DI_FTYPE_PV2DI): Ditto.
1512 (V8DF_FTYPE_PV2DF): Ditto.
1513 (V4DI_FTYPE_PV2DI): Ditto.
1514 (V4DF_FTYPE_PV2DF): Ditto.
1515 (V16SI_FTYPE_PV2SI): Ditto.
1516 (V16SF_FTYPE_PV2SF): Ditto.
1517 (V8DI_FTYPE_PV4DI): Ditto.
1518 (V8DF_FTYPE_PV4DF): Ditto.
1519 (V8SF_FTYPE_FLOAT): Ditto.
1520 (V4SF_FTYPE_FLOAT): Ditto.
1521 (V4DF_FTYPE_DOUBLE): Ditto.
1522 (V8SF_FTYPE_PV4SF): Ditto.
1523 (V8SI_FTYPE_PV4SI): Ditto.
1524 (V4SI_FTYPE_PV2SI): Ditto.
1525 (V8SF_FTYPE_PV2SF): Ditto.
1526 (V8SI_FTYPE_PV2SI): Ditto.
1527 (V16SF_FTYPE_PV8SF): Ditto.
1528 (V16SI_FTYPE_PV8SI): Ditto.
1529 (V8DI_FTYPE_V8SF): Ditto.
1530 (V4DI_FTYPE_V4SF): Ditto.
1531 (V2DI_FTYPE_V4SF): Ditto.
1532 (V64QI_FTYPE_QI): Ditto.
1533 (V32HI_FTYPE_HI): Ditto.
1534 (V8UHI_FTYPE_V8UHI): Ditto.
1535 (V16UHI_FTYPE_V16UHI): Ditto.
1536 (V32UHI_FTYPE_V32UHI): Ditto.
1537 (V2UDI_FTYPE_V2UDI): Ditto.
1538 (V4UDI_FTYPE_V4UDI): Ditto.
1539 (V8UDI_FTYPE_V8UDI): Ditto.
1540 (V4USI_FTYPE_V4USI): Ditto.
1541 (V8USI_FTYPE_V8USI): Ditto.
1542 (V16USI_FTYPE_V16USI): Ditto.
1543 (V2DF_FTYPE_V2DF_UINT64): Ditto.
1544 (V2DI_FTYPE_V2DF_V2DF): Ditto.
1545 (V2UDI_FTYPE_V4USI_V4USI): Ditto.
1546 (V8DF_FTYPE_V8DF_V8DI): Ditto.
1547 (V4SF_FTYPE_V4SF_UINT64): Ditto.
1548 (V4SI_FTYPE_V4SF_V4SF): Ditto.
1549 (V16SF_FTYPE_V16SF_V16SI): Ditto.
1550 (V64QI_FTYPE_V32HI_V32HI): Ditto.
1551 (V32HI_FTYPE_V16SI_V16SI): Ditto.
1552 (V8DF_FTYPE_V8DF_V8DF_V8DI_INT_QI): Ditto.
1553 (V16SF_FTYPE_V16SF_V16SF_V16SI_INT_HI): Ditto.
1554 (V32HI_FTYPE_V64QI_V64QI): Ditto.
1555 (V32HI_FTYPE_V32HI_V32HI): Ditto.
1556 (V16HI_FTYPE_V16HI_V16HI_INT_V16HI_HI): Ditto.
1557 (V16SI_FTYPE_V16SI_V4SI): Ditto.
1558 (V16SI_FTYPE_V16SI_V16SI): Ditto.
1559 (V16SI_FTYPE_V32HI_V32HI): Ditto.
1560 (V16SI_FTYPE_V16SI_SI): Ditto.
1561 (V8DI_FTYPE_V8DI_V8DI): Ditto.
1562 (V4UDI_FTYPE_V8USI_V8USI): Ditto.
1563 (V8DI_FTYPE_V16SI_V16SI): Ditto.
1564 (V8DI_FTYPE_V8DI_V2DI): Ditto.
1565 (QI_FTYPE_QI): Ditto.
1566 (SI_FTYPE_SI): Ditto.
1567 (DI_FTYPE_DI): Ditto.
1568 (QI_FTYPE_QI_QI): Ditto.
1569 (QI_FTYPE_QI_INT): Ditto.
1570 (HI_FTYPE_HI_INT): Ditto.
1571 (SI_FTYPE_SI_INT): Ditto.
1572 (DI_FTYPE_DI_INT): Ditto.
1573 (HI_FTYPE_V16QI_V16QI): Ditto.
1574 (SI_FTYPE_V32QI_V32QI): Ditto.
1575 (DI_FTYPE_V64QI_V64QI): Ditto.
1576 (QI_FTYPE_V8HI_V8HI): Ditto.
1577 (HI_FTYPE_V16HI_V16HI): Ditto.
1578 (SI_FTYPE_V32HI_V32HI): Ditto.
1579 (QI_FTYPE_V4SI_V4SI): Ditto.
1580 (QI_FTYPE_V8SI_V8SI): Ditto.
1581 (QI_FTYPE_V2DI_V2DI): Ditto.
1582 (QI_FTYPE_V4DI_V4DI): Ditto.
1583 (QI_FTYPE_V8DI_V8DI): Ditto.
1584 (HI_FTYPE_V16SI_V16SI): Ditto.
1585 (HI_FTYPE_V16SI_V16SI_INT_HI): Ditto.
1586 (QI_FTYPE_V8DF_V8DF_INT_QI): Ditto.
1587 (HI_FTYPE_V16SF_V16SF_INT_HI): Ditto.
1588 (V32HI_FTYPE_V32HI_V32HI_V32HI): Ditto.
1589 (V4SF_FTYPE_V4SF_V2DF_V4SF_QI): Ditto.
1590 (V8DF_FTYPE_V8DF_V8DF_V8DF): Ditto.
1591 (V16SF_FTYPE_V16SF_V16SF_V16SF): Ditto.
1592 (V8DF_FTYPE_V8SF_V8DF_QI): Ditto.
1593 (V8DI_FTYPE_V8DF_V8DI_QI): Ditto.
1594 (V8DF_FTYPE_V8DI_V8DF_V8DF): Ditto.
1595 (V2DF_FTYPE_V2DF_V4SF_V2DF_QI): Ditto.
1596 (V16SF_FTYPE_V16SI_V16SF_HI): Ditto.
1597 (V16SF_FTYPE_V16SI_V16SF_V16SF): Ditto.
1598 (V8SI_FTYPE_V8DF_V8SI_QI): Ditto.
1599 (V8DI_FTYPE_PCCHAR_V8DI_QI): Ditto.
1600 (V8SF_FTYPE_PCFLOAT_V8SF_QI): Ditto.
1601 (V4SF_FTYPE_PCFLOAT_V4SF_QI): Ditto.
1602 (V4DF_FTYPE_PCDOUBLE_V4DF_QI): Ditto.
1603 (V2DF_FTYPE_PCDOUBLE_V2DF_QI): Ditto.
1604 (V8SI_FTYPE_PCCHAR_V8SI_QI): Ditto.
1605 (V4SI_FTYPE_PCCHAR_V4SI_QI): Ditto.
1606 (V4DI_FTYPE_PCCHAR_V4DI_QI): Ditto.
1607 (V2DI_FTYPE_PCCHAR_V2DI_QI): Ditto.
1608 (V16SF_FTYPE_PCV8SF_V16SF_HI): Ditto.
1609 (V16SI_FTYPE_PCV8SI_V16SI_HI): Ditto.
1610 (V8DF_FTYPE_PCV2DF_V8DF_QI): Ditto.
1611 (V8SF_FTYPE_PCV4SF_V8SF_QI): Ditto.
1612 (V8DI_FTYPE_PCV2DI_V8DI_QI): Ditto.
1613 (V8SI_FTYPE_PCV4SI_V8SI_QI): Ditto.
1614 (V4DF_FTYPE_PCV2DF_V4DF_QI): Ditto.
1615 (V4DI_FTYPE_PCV2DI_V4DI_QI): Ditto.
1616 (VOID_FTYPE_PDOUBLE_V2DF_QI): Ditto.
1617 (VOID_FTYPE_PFLOAT_V4SF_QI): Ditto.
1618 (V16SI_FTYPE_V16SF_V16SI_HI): Ditto.
1619 (V8DI_FTYPE_V8SF_V8DI_QI): Ditto.
1620 (V8SF_FTYPE_V8DI_V8SF_QI): Ditto.
1621 (V8DF_FTYPE_V8DI_V8DF_QI): Ditto.
1622 (V2DF_FTYPE_V2DF_V2DF_V2DI): Ditto.
1623 (V4SF_FTYPE_V4SF_V4SF_V4SI): Ditto.
1624 (V2UDI_FTYPE_V2UDI_V2UDI_V2UDI): Ditto.
1625 (V4USI_FTYPE_V4USI_V4USI_V4USI): Ditto.
1626 (V8UHI_FTYPE_V8UHI_V8UHI_V8UHI): Ditto.
1627 (V16UQI_FTYPE_V16UQI_V16UQI_V16UQI): Ditto.
1628 (V4DF_FTYPE_V4DF_V4DF_V4DI): Ditto.
1629 (V8SF_FTYPE_V8SF_V8SF_V8SI): Ditto.
1630 (V8DI_FTYPE_V8DI_V8DI_V8DI): Ditto.
1631 (V16SI_FTYPE_V16SI_V16SI_V16SI): Ditto.
1632 (V2DF_FTYPE_V2DF_V2DI_V2DF): Ditto.
1633 (V4DF_FTYPE_V4DF_V4DI_V4DF): Ditto.
1634 (V8DF_FTYPE_V8DF_V8DI_V8DF): Ditto.
1635 (V4SF_FTYPE_V4SF_V4SI_V4SF): Ditto.
1636 (V8SF_FTYPE_V8SF_V8SI_V8SF): Ditto.
1637 (V16SF_FTYPE_V16SF_V16SI_V16SF): Ditto.
1638 (V8DI_FTYPE_V8DI_SI_V8DI_V8DI): Ditto.
1639 (PVOID_FTYPE_PVOID_PVOID_ULONG): Ditto.
1640 (V4SF_FTYPE_V2DF_V4SF_QI): Convert mask type from signed to unsigned.
1641 (V4SF_FTYPE_V4DF_V4SF_QI): Ditto.
1642 (V4SF_FTYPE_V8HI_V4SF_QI): Ditto.
1643 (V8SF_FTYPE_V8HI_V8SF_QI): Ditto.
1644 (V16SI_FTYPE_V16SI_V16SI_HI): Ditto.
1645 (V8DI_FTYPE_V8DI_V8DI_QI): Ditto.
1646 (V2DF_FTYPE_V4DF_INT_V2DF_QI): Ditto.
1647 (V2DF_FTYPE_V8DF_INT_V2DF_QI): Ditto.
1648 (V2DI_FTYPE_V2DI_INT_V2DI_QI): Ditto.
1649 (V4DF_FTYPE_V8DF_INT_V4DF_QI): Ditto.
1650 (V4SF_FTYPE_V8SF_INT_V4SF_QI): Ditto.
1651 (V4SI_FTYPE_V2DF_V4SI_QI): Ditto.
1652 (V4SI_FTYPE_V4SI_INT_V4SI_QI): Ditto.
1653 (V4SI_FTYPE_V8HI_V8HI_V4SI_QI): Ditto.
1654 (V4SI_FTYPE_V8SI_INT_V4SI_QI): Ditto.
1655 (V8HI_FTYPE_V16QI_V16QI_V8HI_QI): Ditto.
1656 (V8HI_FTYPE_V8SF_INT_V8HI_QI): Ditto.
1657 (V8HI_FTYPE_V4SF_INT_V8HI_QI): Ditto.
1658 (V8SF_FTYPE_V16SF_INT_V8SF_QI): Ditto.
1659 (V4SF_FTYPE_V16SF_INT_V4SF_QI): Ditto.
1660 (V8DF_FTYPE_V8DF_V2DF_INT_V8DF_QI): Ditto.
1661 (V8DF_FTYPE_V8DF_V4DF_INT_V8DF_QI): Ditto.
1662 (V8DF_FTYPE_V8DF_V8DF_INT_V8DF_QI): Ditto.
1663 (V8DF_FTYPE_V8DF_INT_V8DF_QI): Ditto.
1664 (V4DF_FTYPE_V4DF_V4DF_V4DI_INT_QI): Ditto.
1665 (V2DF_FTYPE_V2DF_V2DF_V2DI_INT_QI): Ditto.
1666 (V16SF_FTYPE_V16SF_V16SF_INT_V16SF_HI): Ditto.
1667 (V16SF_FTYPE_V16SF_INT_V16SF_HI): Ditto.
1668 (V16SI_FTYPE_V16SI_V4SI_INT_V16SI_HI): Ditto.
1669 (V8SF_FTYPE_V8SF_V8SF_V8SI_INT_QI): Ditto.
1670 (V4SF_FTYPE_V4SF_V4SF_V4SI_INT_QI): Ditto.
1671 (V16SF_FTYPE_V16SF_V4SF_INT_V16SF_HI): Ditto.
1672 (V16SF_FTYPE_V16SF_V8SF_INT_V16SF_HI): Ditto.
1673 (V16HI_FTYPE_V32QI_V32QI_V16HI_HI): Ditto.
1674 (V32HI_FTYPE_V64QI_V64QI_V32HI_SI): Ditto.
1675 (V16HI_FTYPE_V16SF_INT_V16HI_HI): Ditto.
1676 (V16SI_FTYPE_V16SI_V8SI_INT_V16SI_HI): Ditto.
1677 (V4SI_FTYPE_V16SI_INT_V4SI_QI): Ditto.
1678 (V16SI_FTYPE_V16SI_V16SI_INT_V16SI_HI): Ditto.
1679 (V8SI_FTYPE_V16HI_V16HI_V8SI_QI): Ditto.
1680 (V16SI_FTYPE_V32HI_V32HI_V16SI_HI): Ditto.
1681 (V8SI_FTYPE_V8SI_INT_V8SI_QI): Ditto.
1682 (V8SI_FTYPE_V16SI_INT_V8SI_QI): Ditto.
1683 (V16SI_FTYPE_V16SI_V4SI_V16SI_HI): Ditto.
1684 (V16SI_FTYPE_V16SI_INT_V16SI_HI): Ditto.
1685 (V8DI_FTYPE_V8DI_V8DI_INT_V8DI_QI): Ditto.
1686 (V8DI_FTYPE_V8DI_V8DI_INT_V8DI_DI): Ditto.
1687 (V4DI_FTYPE_V4DI_V4DI_INT_V4DI_SI): Ditto.
1688 (V2DI_FTYPE_V2DI_V2DI_INT_V2DI_HI): Ditto.
1689 (V8DI_FTYPE_V8DI_V2DI_INT_V8DI_QI): Ditto.
1690 (V8DI_FTYPE_V8DI_V4DI_INT_V8DI_QI): Ditto.
1691 (V4DI_FTYPE_V8DI_INT_V4DI_QI): Ditto.
1692 (V8DI_FTYPE_V8DI_V2DI_V8DI_QI): Ditto.
1693 (V8DI_FTYPE_V8DI_INT_V8DI_QI): Ditto.
1694 (V4DI_FTYPE_V4DI_INT_V4DI_QI): Ditto.
1695 (V2DI_FTYPE_V4DI_INT_V2DI_QI): Ditto.
1696 (V2DI_FTYPE_V8DI_INT_V2DI_QI): Ditto.
1697 (HI_FTYPE_HI): Ditto.
1698 (HI_FTYPE_V16QI): Ditto.
1699 (SI_FTYPE_V32QI): Ditto.
1700 (DI_FTYPE_V64QI): Ditto.
1701 (QI_FTYPE_V8HI): Ditto.
1702 (HI_FTYPE_V16HI): Ditto.
1703 (SI_FTYPE_V32HI): Ditto.
1704 (QI_FTYPE_V4SI): Ditto.
1705 (QI_FTYPE_V8SI): Ditto.
1706 (HI_FTYPE_V16SI): Ditto.
1707 (QI_FTYPE_V2DI): Ditto.
1708 (QI_FTYPE_V4DI): Ditto.
1709 (QI_FTYPE_V8DI): Ditto.
1710 (V16QI_FTYPE_HI): Ditto.
1711 (V32QI_FTYPE_SI): Ditto.
1712 (V64QI_FTYPE_DI): Ditto.
1713 (V8HI_FTYPE_QI): Ditto.
1714 (V16HI_FTYPE_HI): Ditto.
1715 (V32HI_FTYPE_SI): Ditto.
1716 (V4SI_FTYPE_QI): Ditto.
1717 (V4SI_FTYPE_HI): Ditto.
1718 (V8SI_FTYPE_QI): Ditto.
1719 (V8SI_FTYPE_HI): Ditto.
1720 (V2DI_FTYPE_QI): Ditto.
1721 (V4DI_FTYPE_QI): Ditto.
1722 (HI_FTYPE_HI_HI): Ditto.
1723 (SI_FTYPE_SI_SI): Ditto.
1724 (DI_FTYPE_DI_DI): Ditto.
1725 (HI_FTYPE_V16QI_V16QI_HI): Ditto.
1726 (HI_FTYPE_V16QI_V16QI_INT_HI): Ditto.
1727 (SI_FTYPE_V32QI_V32QI_SI): Ditto.
1728 (SI_FTYPE_V32QI_V32QI_INT_SI): Ditto.
1729 (DI_FTYPE_V64QI_V64QI_DI): Ditto.
1730 (DI_FTYPE_V64QI_V64QI_INT_DI): Ditto.
1731 (QI_FTYPE_V8HI_V8HI_QI): Ditto.
1732 (QI_FTYPE_V8HI_V8HI_INT_QI): Ditto.
1733 (HI_FTYPE_V16HI_V16HI_HI): Ditto.
1734 (HI_FTYPE_V16HI_V16HI_INT_HI): Ditto.
1735 (SI_FTYPE_V32HI_V32HI_SI): Ditto.
1736 (SI_FTYPE_V32HI_V32HI_INT_SI): Ditto.
1737 (QI_FTYPE_V4SI_V4SI_QI): Ditto.
1738 (QI_FTYPE_V4SI_V4SI_INT_QI): Ditto.
1739 (QI_FTYPE_V8SI_V8SI_QI): Ditto.
1740 (QI_FTYPE_V8SI_V8SI_INT_QI): Ditto.
1741 (QI_FTYPE_V2DI_V2DI_QI): Ditto.
1742 (QI_FTYPE_V2DI_V2DI_INT_QI): Ditto.
1743 (QI_FTYPE_V4DI_V4DI_QI): Ditto.
1744 (QI_FTYPE_V4DI_V4DI_INT_QI): Ditto.
1745 (QI_FTYPE_V8DI_V8DI_QI): Ditto.
1746 (HI_FTYPE_V16SI_V16SI_HI): Ditto.
1747 (QI_FTYPE_V8DI_V8DI_INT): Ditto.
1748 (QI_FTYPE_V8DI_V8DI_INT_QI): Ditto.
1749 (HI_FTYPE_V16SI_V16SI_INT): Ditto.
1750 (HI_FTYPE_V16SI_V16SI_INT _HI): Ditto.
1751 (QI_FTYPE_V8DF_V8DF_INT): Ditto.
1752 (QI_FTYPE_V8DF_V8DF_INT_QI_INT): Ditto.
1753 (HI_FTYPE_V16SF_V16SF_INT): Ditto.
1754 (HI_FTYPE_V16SF_V16SF_INT_HI_INT): Ditto.
1755 (QI_FTYPE_V2DF_V2DF_INT): Ditto.
1756 (QI_FTYPE_V2DF_V2DF_INT_QI): Ditto.
1757 (QI_FTYPE_V2DF_V2DF_INT_QI_INT): Ditto.
1758 (QI_FTYPE_V4SF_V4SF_INT): Ditto.
1759 (QI_FTYPE_V4SF_V4SF_INT_QI): Ditto.
1760 (QI_FTYPE_V4SF_V4SF_INT_QI_INT): Ditto.
1761 (V16SI_FTYPE_HI): Ditto.
1762 (V8DI_FTYPE_QI): Ditto.
1763 (V2DF_FTYPE_V2DI_V2DF_V2DF_QI): Ditto.
1764 (V2DF_FTYPE_V2DF_V2DI_V2DF_QI): Ditto.
1765 (V4DF_FTYPE_V4DF_V2DF_INT_V4DF_QI): Ditto.
1766 (V4SF_FTYPE_V4SI_V4SF_V4SF_QI): Ditto.
1767 (V4SF_FTYPE_V4SF_V4SI_V4SF_QI): Ditto.
1768 (V4SF_FTYPE_V4SF_V4SF_V4SF_QI): Ditto.
1769 (V8SF_FTYPE_V8SF_V4SF_INT_V8SF_QI): Ditto.
1770 (V8SI_FTYPE_V8SI_V4SI_INT_V8SI_QI): Ditto.
1771 (V4DI_FTYPE_V4DI_V2DI_INT_V4DI_QI): Ditto.
1772 (V2DF_FTYPE_V2DF_V2DF_QI): Ditto.
1773 (V2DF_FTYPE_V4SF_V2DF_QI): Ditto.
1774 (V2DF_FTYPE_V4SI_V2DF_QI): Ditto.
1775 (V4DF_FTYPE_V4DF_V4DF_QI): Ditto.
1776 (V4DF_FTYPE_V4SF_V4DF_QI): Ditto.
1777 (V4DF_FTYPE_V4SI_V4DF_QI): Ditto.
1778 (V8DF_FTYPE_V8DF_V8DF_QI): Ditto.
1779 (V8DF_FTYPE_V8SI_V8DF_QI): Ditto.
1780 (V2DI_FTYPE_V4SI_V2DI_QI): Ditto.
1781 (V2DI_FTYPE_V8HI_V2DI_QI): Ditto.
1782 (V4DI_FTYPE_V4DF_V4DI_QI): Ditto.
1783 (V2DI_FTYPE_V2DF_V2DI_QI): Ditto.
1784 (V2DI_FTYPE_V2DI_V2DI_V2DI_QI): Ditto.
1785 (V2DI_FTYPE_V2DI_V2DI_INT_V2DI_QI): Ditto.
1786 (V4DI_FTYPE_V4DI_V4DI_V4DI_QI): Ditto.
1787 (V4DI_FTYPE_V4DI_V4DI_INT_V4DI_QI): Ditto.
1788 (V8DI_FTYPE_V8SI_V8DI_QI): Ditto.
1789 (V8DI_FTYPE_V8HI_V8DI_QI): Ditto.
1790 (V8DI_FTYPE_V16QI_V8DI_QI): Ditto.
1791 (V2DI_FTYPE_V16QI_V2DI_QI): Ditto.
1792 (V4DI_FTYPE_V16QI_V4DI_QI): Ditto.
1793 (V4DI_FTYPE_V4DI_V4DI_QI): Ditto.
1794 (V4DI_FTYPE_V4SI_V4DI_QI): Ditto.
1795 (V4DI_FTYPE_V8HI_V4DI_QI): Ditto.
1796 (V8DI_FTYPE_V8DI_V8DI_V8DI_QI): Ditto.
1797 (V8DF_FTYPE_V8DI_V8DF_V8DF_QI): Ditto.
1798 (V8DF_FTYPE_V8DF_V8DI_V8DF_QI): Ditto.
1799 (V4DF_FTYPE_V4DI_V4DF_V4DF_QI): Ditto.
1800 (V4DF_FTYPE_V4DF_V4DI_V4DF_QI): Ditto.
1801 (V4DF_FTYPE_V4DF_V4DF_V4DF_QI): Ditto.
1802 (V8DF_FTYPE_V8DF_V8DF_V8DF_QI): Ditto.
1803 (V16QI_FTYPE_V16QI_V16QI_V16QI_HI): Ditto.
1804 (V16HI_FTYPE_V16HI_V16HI_V16HI_HI): Ditto.
1805 (V16SI_FTYPE_V16SI_V16SI_V16SI_HI): Ditto.
1806 (V2DF_FTYPE_V2DF_V2DF_V2DF_QI): Ditto.
1807 (V32HI_FTYPE_V32HI_V32HI_V32HI_SI): Ditto.
1808 (V64QI_FTYPE_V64QI_V64QI_V64QI_DI): Ditto.
1809 (V32QI_FTYPE_V32QI_V32QI_V32QI_SI): Ditto.
1810 (V8HI_FTYPE_V8HI_V8HI_V8HI_QI): Ditto.
1811 (V4SF_FTYPE_V4SF_V4SF_QI): Ditto.
1812 (V4SF_FTYPE_V4SI_V4SF_QI): Ditto.
1813 (V8SF_FTYPE_V8SF_V8SF_QI): Ditto.
1814 (V8SF_FTYPE_V8SI_V8SF_QI): Ditto.
1815 (V16SF_FTYPE_V16SF_V16SF_HI): Ditto.
1816 (V4SI_FTYPE_V16QI_V4SI_QI): Ditto.
1817 (V4SI_FTYPE_V8HI_V4SI_QI): Ditto.
1818 (V8SI_FTYPE_V8SI_V8SI_QI): Ditto.
1819 (V8SI_FTYPE_V8HI_V8SI_QI): Ditto.
1820 (V8SI_FTYPE_V16QI_V8SI_QI): Ditto.
1821 (V4SI_FTYPE_V4SI_V4SI_V4SI_QI): Ditto.
1822 (V4SI_FTYPE_V4SI_V4SI_INT_V4SI_QI): Ditto.
1823 (V8SF_FTYPE_V8SF_V8SF_V8SF_QI): Ditto.
1824 (V8SF_FTYPE_V8SI_V8SF_V8SF_QI): Ditto.
1825 (V8SF_FTYPE_V8SF_V8SI_V8SF_QI): Ditto.
1826 (V8SI_FTYPE_V8SI_V8SI_V8SI_QI): Ditto.
1827 (V8SI_FTYPE_V8SI_V8SI_INT_V8SI_QI): Ditto.
1828 (V16SF_FTYPE_V16SF_V16SF_V16SF_HI): Ditto.
1829 (V16SF_FTYPE_V16SI_V16SF_V16SF_HI): Ditto.
1830 (V16SF_FTYPE_V16SF_V16SI_V16SF_HI): Ditto.
1831 (V16SF_FTYPE_V8SF_V16SF_HI): Ditto.
1832 (V16SF_FTYPE_V4SF_V16SF_HI): Ditto.
1833 (V8DF_FTYPE_V4DF_V8DF_QI): Ditto.
1834 (V8DF_FTYPE_V2DF_V8DF_QI): Ditto.
1835 (V16SI_FTYPE_V8SI_V16SI_HI): Ditto.
1836 (V16SI_FTYPE_V4SI_V16SI_HI): Ditto.
1837 (V16SI_FTYPE_SI_V16SI_HI): Ditto.
1838 (V16SI_FTYPE_V16HI_V16SI_HI): Ditto.
1839 (V16SI_FTYPE_V16QI_V16SI_HI): Ditto.
1840 (V8DI_FTYPE_V4DI_V8DI_QI): Ditto.
1841 (V4SI_FTYPE_V4DF_V4SI_QI): Ditto.
1842 (V8DI_FTYPE_V2DI_V8DI_QI): Ditto.
1843 (V8DI_FTYPE_DI_V8DI_QI): Ditto.
1844 (V16QI_FTYPE_V16SI_V16QI_HI): Ditto.
1845 (V16QI_FTYPE_V8DI_V16QI_QI): Ditto.
1846 (V32HI_FTYPE_V32HI_V32HI_SI): Ditto.
1847 (V32HI_FTYPE_V32QI_V32HI_SI): Ditto.
1848 (V16HI_FTYPE_V16HI_V16HI_HI): Ditto.
1849 (V16HI_FTYPE_V16QI_V16HI_HI): Ditto.
1850 (V8HI_FTYPE_V16QI_V8HI_QI): Ditto.
1851 (V8SF_FTYPE_V4SF_V8SF_QI): Ditto.
1852 (V4DF_FTYPE_V2DF_V4DF_QI): Ditto.
1853 (V8SI_FTYPE_V4SI_V8SI_QI): Ditto.
1854 (V8SI_FTYPE_SI_V8SI_QI): Ditto.
1855 (V4SI_FTYPE_V4SI_V4SI_QI): Ditto.
1856 (V4SI_FTYPE_SI_V4SI_QI): Ditto.
1857 (V4DI_FTYPE_V2DI_V4DI_QI): Ditto.
1858 (V4DI_FTYPE_DI_V4DI_QI): Ditto.
1859 (V2DI_FTYPE_V2DI_V2DI_QI): Ditto.
1860 (V2DI_FTYPE_DI_V2DI_QI): Ditto.
1861 (V64QI_FTYPE_V64QI_V64QI_DI): Ditto.
1862 (V64QI_FTYPE_V16QI_V64QI_DI): Ditto.
1863 (V64QI_FTYPE_QI_V64QI_DI): Ditto.
1864 (V32QI_FTYPE_V32QI_V32QI_SI): Ditto.
1865 (V32QI_FTYPE_V16QI_V32QI_SI): Ditto.
1866 (V32QI_FTYPE_QI_V32QI_SI): Ditto.
1867 (V16QI_FTYPE_V16QI_V16QI_HI): Ditto.
1868 (V16QI_FTYPE_QI_V16QI_HI): Ditto.
1869 (V32HI_FTYPE_V8HI_V32HI_SI): Ditto.
1870 (V32HI_FTYPE_HI_V32HI_SI): Ditto.
1871 (V16HI_FTYPE_V8HI_V16HI_HI): Ditto.
1872 (V16HI_FTYPE_HI_V16HI_HI): Ditto.
1873 (V8HI_FTYPE_V8HI_V8HI_QI): Ditto.
1874 (V8HI_FTYPE_HI_V8HI_QI): Ditto.
1875 (V64QI_FTYPE_PCV64QI_V64QI_DI): Ditto.
1876 (V32HI_FTYPE_PCV32HI_V32HI_SI): Ditto.
1877 (V32QI_FTYPE_PCV32QI_V32QI_SI): Ditto.
1878 (V16SF_FTYPE_PCV16SF_V16SF_HI): Ditto.
1879 (V8DF_FTYPE_PCV8DF_V8DF_QI): Ditto.
1880 (V16SI_FTYPE_PCV16SI_V16SI_HI): Ditto.
1881 (V16HI_FTYPE_PCV16HI_V16HI_HI): Ditto.
1882 (V16QI_FTYPE_PCV16QI_V16QI_HI): Ditto.
1883 (V8SF_FTYPE_PCV8SF_V8SF_QI): Ditto.
1884 (V8DI_FTYPE_PCV8DI_V8DI_QI): Ditto.
1885 (V8SI_FTYPE_PCV8SI_V8SI_QI): Ditto.
1886 (V8HI_FTYPE_PCV8HI_V8HI_QI): Ditto.
1887 (V4DF_FTYPE_PCV4DF_V4DF_QI): Ditto.
1888 (V4SF_FTYPE_PCV4SF_V4SF_QI): Ditto.
1889 (V4DI_FTYPE_PCV4DI_V4DI_QI): Ditto.
1890 (V4SI_FTYPE_PCV4SI_V4SI_QI): Ditto.
1891 (V2DF_FTYPE_PCV2DF_V2DF_QI): Ditto.
1892 (V2DI_FTYPE_PCV2DI_V2DI_QI): Ditto.
1893 (V16HI_FTYPE_V16SI_V16HI_HI): Ditto.
1894 (V8SI_FTYPE_V8DI_V8SI_QI): Ditto.
1895 (V8HI_FTYPE_V8DI_V8HI_QI): Ditto.
1896 (V16QI_FTYPE_V8HI_V16QI_QI): Ditto.
1897 (V16QI_FTYPE_V16HI_V16QI_HI): Ditto.
1898 (V16QI_FTYPE_V4SI_V16QI_QI): Ditto.
1899 (V16QI_FTYPE_V8SI_V16QI_QI): Ditto.
1900 (V8HI_FTYPE_V4SI_V8HI_QI): Ditto.
1901 (V8HI_FTYPE_V8SI_V8HI_QI): Ditto.
1902 (V16QI_FTYPE_V2DI_V16QI_QI): Ditto.
1903 (V16QI_FTYPE_V4DI_V16QI_QI): Ditto.
1904 (V8HI_FTYPE_V2DI_V8HI_QI): Ditto.
1905 (V8HI_FTYPE_V4DI_V8HI_QI): Ditto.
1906 (V4SI_FTYPE_V2DI_V4SI_QI): Ditto.
1907 (V4SI_FTYPE_V4DI_V4SI_QI): Ditto.
1908 (V32QI_FTYPE_V32HI_V32QI_SI): Ditto.
1909 (V2DF_FTYPE_V2DF_INT_V2DF_QI): Ditto.
1910 (V4DF_FTYPE_V4DF_INT_V4DF_QI): Ditto.
1911 (V4SF_FTYPE_V4SF_INT_V4SF_QI): Ditto.
1912 (V8SF_FTYPE_V8SF_INT_V8SF_QI): Ditto.
1913 (V4DF_FTYPE_V4DF_V4DF_INT_V4DF_QI): Ditto.
1914 (V2DF_FTYPE_V2DF_V2DF_INT_V2DF_QI): Ditto.
1915 (V8SF_FTYPE_V8SF_V8SF_INT_V8SF_QI): Ditto.
1916 (V4SF_FTYPE_V4SF_V4SF_INT_V4SF_QI): Ditto.
1917 (VOID_FTYPE_PV8DF_V8DF_QI): Ditto.
1918 (VOID_FTYPE_PV8SI_V8DI_QI): Ditto.
1919 (VOID_FTYPE_PV8HI_V8DI_QI): Ditto.
1920 (VOID_FTYPE_PV8HI_V4DI_QI): Ditto.
1921 (VOID_FTYPE_PV8HI_V2DI_QI): Ditto.
1922 (VOID_FTYPE_PV4SI_V4DI_QI): Ditto.
1923 (VOID_FTYPE_PV4SI_V2DI_QI): Ditto.
1924 (VOID_FTYPE_PV8HI_V8SI_QI): Ditto.
1925 (VOID_FTYPE_PV8HI_V4SI_QI): Ditto.
1926 (VOID_FTYPE_PV4DF_V4DF_QI): Ditto.
1927 (VOID_FTYPE_PV2DF_V2DF_QI): Ditto.
1928 (VOID_FTYPE_PV16SF_V16SF_HI): Ditto.
1929 (VOID_FTYPE_PV8SF_V8SF_QI): Ditto.
1930 (VOID_FTYPE_PV4SF_V4SF_QI): Ditto.
1931 (VOID_FTYPE_PV8DI_V8DI_QI): Ditto.
1932 (VOID_FTYPE_PV4DI_V4DI_QI): Ditto.
1933 (VOID_FTYPE_PV2DI_V2DI_QI): Ditto.
1934 (VOID_FTYPE_PV16SI_V16SI_HI): Ditto.
1935 (VOID_FTYPE_PV16HI_V16SI_HI): Ditto.
1936 (VOID_FTYPE_PV16QI_V16SI_HI): Ditto.
1937 (VOID_FTYPE_PV16QI_V8SI_QI): Ditto.
1938 (VOID_FTYPE_PV16QI_V4SI_QI): Ditto.
1939 (VOID_FTYPE_PV16QI_V8DI_QI): Ditto.
1940 (VOID_FTYPE_PV16QI_V4DI_QI): Ditto.
1941 (VOID_FTYPE_PV16QI_V2DI_QI): Ditto.
1942 (VOID_FTYPE_PV8SI_V8SI_QI): Ditto.
1943 (VOID_FTYPE_PV4SI_V4SI_QI): Ditto.
1944 (VOID_FTYPE_PV32HI_V32HI_SI): Ditto.
1945 (VOID_FTYPE_PV16HI_V16HI_HI): Ditto.
1946 (VOID_FTYPE_PV8HI_V8HI_QI): Ditto.
1947 (VOID_FTYPE_PV64QI_V64QI_DI): Ditto.
1948 (VOID_FTYPE_PV32QI_V32QI_SI): Ditto.
1949 (VOID_FTYPE_PV16QI_V16QI_HI): Ditto.
1950 (V8DI_FTYPE_V8DI_V8DI_V8DI_INT_QI): Ditto.
1951 (V8SI_FTYPE_V8SF_V8SI_QI): Ditto.
1952 (V4SI_FTYPE_V4SF_V4SI_QI): Ditto.
1953 (V4DI_FTYPE_V4SF_V4DI_QI): Ditto.
1954 (V2DI_FTYPE_V4SF_V2DI_QI): Ditto.
1955 (V4SF_FTYPE_V4DI_V4SF_QI): Ditto.
1956 (V4SF_FTYPE_V2DI_V4SF_QI): Ditto.
1957 (V4DF_FTYPE_V4DI_V4DF_QI): Ditto.
1958 (V2DF_FTYPE_V2DI_V2DF_QI): Ditto.
1959 (V32HI_FTYPE_V32HI_INT_V32HI_SI): Ditto.
1960 (V32HI_FTYPE_V32HI_V8HI_V32HI_SI): Ditto.
1961 (V16HI_FTYPE_V16HI_INT_V16HI_HI): Ditto.
1962 (V16HI_FTYPE_V16HI_V8HI_V16HI_HI): Ditto.
1963 (V8HI_FTYPE_V8HI_INT_V8HI_QI): Ditto.
1964 (V32HI_FTYPE_V64QI_V64QI_INT_V32HI_SI): Ditto.
1965 (V16HI_FTYPE_V32QI_V32QI_INT_V16HI_HI): Ditto.
1966 (V8HI_FTYPE_V16QI_V16QI_INT_V8HI_QI): Ditto.
1967 (V64QI_FTYPE_V32HI_V32HI_V64QI_DI): Ditto.
1968 (V32QI_FTYPE_V16HI_V16HI_V32QI_SI): Ditto.
1969 (V16QI_FTYPE_V8HI_V8HI_V16QI_HI): Ditto.
1970 (V32HI_FTYPE_V16SI_V16SI_V32HI_SI): Ditto.
1971 (V16HI_FTYPE_V8SI_V8SI_V16HI_HI): Ditto.
1972 (V8HI_FTYPE_V4SI_V4SI_V8HI_QI): Ditto.
1973 (V8DI_FTYPE_V16SI_V16SI_V8DI_QI): Ditto.
1974 (V4DI_FTYPE_V8SI_V8SI_V4DI_QI): Ditto.
1975 (V2DI_FTYPE_V4SI_V4SI_V2DI_QI): Ditto.
1976 (V16SI_FTYPE_V16SI_V16SI_V16SI_INT_HI): Ditto.
1977 (V8SI_FTYPE_V8SI_V8SI_V8SI_INT_QI): Ditto.
1978 (V4DI_FTYPE_V4DI_V4DI_V4DI_INT_QI): Ditto.
1979 (V4SI_FTYPE_V4SI_V4SI_V4SI_INT_QI): Ditto.
1980 (V2DI_FTYPE_V2DI_V2DI_V2DI_INT_QI): Ditto.
1981 (V8SI_FTYPE_V8SI_V4SI_V8SI_QI): Ditto.
1982 (V4DI_FTYPE_V4DI_V2DI_V4DI_QI): Ditto.
1983 (QI_FTYPE_V4DF_V4DF_INT_QI): Ditto.
1984 (QI_FTYPE_V8SF_V8SF_INT_QI): Ditto.
1985 (QI_FTYPE_V8DF_INT_QI): Ditto.
1986 (QI_FTYPE_V4DF_INT_QI): Ditto.
1987 (QI_FTYPE_V2DF_INT_QI): Ditto.
1988 (HI_FTYPE_V16SF_INT_HI): Ditto.
1989 (QI_FTYPE_V8SF_INT_QI): Ditto.
1990 (QI_FTYPE_V4SF_INT_QI): Ditto.
1991 (V8DF_FTYPE_V8DF_V8DF_V8DF_QI_INT): Ditto.
1992
1993 2015-07-31 Richard Biener <rguenther@suse.de>
1994
1995 * gimple-fold.c (fold_gimple_assign): Remove folding of
1996 GIMPLE_BINARY_RHS.
1997
1998 2015-07-31 Tom de Vries <tom@codesourcery.com>
1999
2000 PR tree-optimization/66846
2001 * omp-low.c (expand_omp_taskreg) [ENABLE_CHECKING]: Call
2002 verify_loop_structure for child_cfun if !LOOPS_NEED_FIXUP.
2003 (expand_omp_target) [ENABLE_CHECKING]: Same.
2004 (execute_expand_omp) [ENABLE_CHECKING]: Call verify_loop_structure for
2005 cfun if !LOOPS_NEED_FIXUP.
2006 (expand_omp_for_static_nochunk): Handle simple latch bb. Handle case
2007 that omp_for already has its own loop struct.
2008 * tree-parloops.c (create_phi_for_local_result)
2009 (create_call_for_reduction): Handle simple latch bb.
2010 (create_parallel_loop): Add simple latch bb to preserve
2011 LOOPS_HAVE_SIMPLE_LATCHES. Record new exit. Handle simple latch bb.
2012 (gen_parallel_loop): Remove call to cancel_loop_tree.
2013 (parallelize_loops): Skip loops that are inner loops of parallelized
2014 loops.
2015 (pass_parallelize_loops::execute) [ENABLE_CHECKING]: Call
2016 verify_loop_structure.
2017
2018 2015-07-30 Anatoly Sokolov <aesok@post.ru>
2019
2020 * config/v850/v850.h (LIBCALL_VALUE): Remove macros.
2021 * config/v850/v850.md (RV_REGNUM): New constants.
2022 * config/v850/v850.c (v850_libcall_value): New functions.
2023 (v850_function_value_regno_p, v850_function_value): Use RV_REGNUM.
2024 (TARGET_LIBCALL_VALUE): Define.
2025
2026 2015-07-30 Anatoly Sokolov <aesok@post.ru>
2027
2028 * rtl.h (lowpart_subreg): Move in file.
2029 * loop-iv.c (lowpart_subreg): Move to...
2030 * simplify-rtx.c (lowpart_subreg): ...here.
2031 (simplify_binary_operation_1): Use lowpart_subreg instead of
2032 simplify_gen_subreg.
2033 * expr.c (expand_expr_real_2): Ditto.
2034 * emit-rtl.c (gen_lowpart_common): Ditto.
2035 * combine.c (gen_lowpart_for_combine): Ditto.
2036 * cfgexpand.c (convert_debug_memory_address, expand_debug_expr,
2037 expand_debug_source_expr): Ditto.
2038
2039 2015-07-30 Richard Sandiford <richard.sandiford@arm.com>
2040
2041 * builtins.c (HAVE_atomic_clear, gen_atomic_clear): Delete.
2042 (expand_builtin_atomic_clear): Remove support for atomic_clear
2043 pattern.
2044
2045 2015-07-30 Richard Biener <rguenther@suse.de>
2046
2047 * gimple-fold.c (fold_gimple_assign): Only fold !tcc_comparison
2048 binaries. Move X == 0, X == 1, X != 0, and X != 1 canonicalization ...
2049 (fold_stmt_1): ... here and work on GIMPLE directly. Remove
2050 redundant operand canonicalization.
2051
2052 2015-07-30 David Sherwood <david.sherwood@arm.com>
2053
2054 * config/aarch64/aarch64-simd.md (aarch64_ext<mode>): Replace call to
2055 GET_MODE_SIZE (GET_MODE_INNER (m)) with GET_MODE_UNIT_SIZE (m).
2056 * config/aarch64/aarch64.c (aarch64_simd_valid_immediate): Likewise.
2057 * config/arm/arm.c (neon_valid_immediate): Likewise.
2058 * config/i386/i386.c (classify_argument, ix86_expand_int_vcond)
2059 (expand_vec_perm_blend, expand_vec_perm_pshufb): Likewise.
2060 (expand_vec_perm_pshufb2, expand_vec_perm_vpshufb2_vpermq): Likewise.
2061 (expand_vec_perm_vpshufb2_vpermq): Likewise.
2062 (expand_vec_perm_vpshufb2_vpermq_even_odd): Likewise.
2063 (expand_vec_perm_vpshufb4_vpermq2): Likewise.
2064 * config/i386/sse.md
2065 (<extract_type>_vinsert<shuffletype><extract_suf>_mask): Likewise.
2066 (*ssse3_palignr<mode>_perm): Likewise.
2067 * config/rs6000/rs6000.c (rs6000_complex_function_value): Likewise.
2068 * config/spu/spu.c (arith_immediate_p): Likewise.
2069 * simplify-rtx.c (simplify_const_unary_operation): Likewise.
2070 (simplify_binary_operation_1, simplify_ternary_operation): Likewise.
2071
2072 2015-07-30 Richard Biener <rguenther@suse.de>
2073
2074 * genmatch.c (decision_tree::gen_gimple): Merge with ...
2075 (decision_tree::gen_generic): ... this into ...
2076 (decision_tree::gen): ... this.
2077 (main): Adjust callers.
2078
2079 2015-07-30 Richard Biener <rguenther@suse.de>
2080
2081 * genmatch.c (verbose): New global.
2082 (warning_at): Add overload with source_location.
2083 (capture_info::capture_info): Add bool whether generating gimple
2084 or generic. Add gimple member.
2085 (capture_info::cinfo): Add capture member.
2086 (capture_info::walk_match): Record capture. Warn on
2087 non-captured leafs.
2088 (capture_info::walk_c_expr): Add more fragments captures cannot
2089 escape through. Warn on escaped captures.
2090 (dt_simplify::gen_1): Warn on operands we force to have no
2091 side-effects.
2092 (main): Initialize verbose.
2093 * match.pd: Add integer_nonzerop and HONOR_NANS predicates.
2094
2095 2015-07-30 Richard Biener <rguenther@suse.de>
2096
2097 PR middle-end/67053
2098 * match.pd: Allow both operands to independently have conversion
2099 when simplifying compares of addresses.
2100
2101 2015-07-29 Segher Boessenkool <segher@kernel.crashing.org>
2102
2103 PR target/66217
2104 PR target/67045
2105 * config/rs6000/rs6000.md (and<mode>3): Put a CONST_INT_P check
2106 around those cases that need one.
2107
2108 2015-07-29 Aditya Kumar <hiraditya@msn.com>
2109
2110 * params.def (PARAM_GRAPHITE_MAX_NB_SCOP_PARAMS): Default to 3.
2111
2112 2015-07-29 H.J. Lu <hongjiu.lu@intel.com>
2113
2114 * config/i386/iamcu.h (TARGET_ASM_FILE_START_FILE_DIRECTIVE):
2115 New. Copied from config/i386/gnu-user.h.
2116 (ASM_COMMENT_START): Likewise.
2117 (DBX_REGISTER_NUMBER): Likewise.
2118
2119 2015-07-29 Richard Biener <rguenther@suse.de>
2120
2121 * gimple-fold.c (fold_gimple_cond): Remove.
2122 (fold_stmt_1): Do not call it.
2123
2124 2015-07-29 Alan Lawrence <alan.lawrence@arm.com>
2125
2126 * config/aarch64/aarch64-builtins.c (aarch64_fp16_type_node): New.
2127 (aarch64_init_builtins): Make aarch64_fp16_type_node, use for __fp16.
2128
2129 * config/aarch64/aarch64-modes.def: Add HFmode.
2130
2131 * config/aarch64/aarch64.h (TARGET_CPU_CPP_BUILTINS): Define
2132 __ARM_FP16_FORMAT_IEEE and __ARM_FP16_ARGS. Set bit 1 of __ARM_FP.
2133
2134 * config/aarch64/aarch64.c (aarch64_init_libfuncs,
2135 aarch64_promoted_type): New.
2136
2137 (aarch64_float_const_representable_p): Disable HFmode.
2138 (aarch64_mangle_type): Mangle half-precision floats to "Dh".
2139 (TARGET_PROMOTED_TYPE): Define to aarch64_promoted_type.
2140 (TARGET_INIT_LIBFUNCS): Define to aarch64_init_libfuncs.
2141
2142 * config/aarch64/aarch64.md (mov<mode>): Include HFmode using GPF_F16.
2143 (movhf_aarch64, extendhfsf2, extendhfdf2, truncsfhf2, truncdfhf2): New.
2144
2145 * config/aarch64/iterators.md (GPF_F16): New.
2146
2147 2015-07-29 Richard Biener <rguenther@suse.de>
2148
2149 * match.pd: Merge address comparison patterns and make them
2150 handle some more cases.
2151
2152 2015-07-29 Richard Biener <rguenther@suse.de>
2153
2154 * genmatch.c (c_expr::gen_transform): Error on unknown captures.
2155 (parser::parse_capture): Add bool argument on whether to reject
2156 unknown captures.
2157 (parser::parse_expr): Adjust.
2158 (parser::parse_op): Likewise.
2159 (parser::parse_pattern): Likewise.
2160
2161 2015-07-29 Richard Biener <rguenther@suse.de>
2162
2163 * gimple-fold.c (has_use_on_stmt): New function.
2164 (replace_stmt_with_simplification): Use it to allow
2165 abnormals originally referenced in the stmt.
2166 (fold_stmt_1): Canonicalize operand order.
2167
2168 2015-07-28 David Sherwood <david.sherwood@arm.com>
2169
2170 * config/arm/arm.c (neon_element_bits, neon_valid_immediate): Call
2171 GET_MODE_INNER unconditionally.
2172 * config/spu/spu.c (arith_immediate_p): Likewise.
2173 * config/i386/i386.c (ix86_build_signbit_mask): Likewise.
2174 * expmed.c (synth_mult): Remove check for VOIDmode result from
2175 GET_MODE_INNER.
2176 (expand_mult_const): Likewise.
2177 * fold-const.c (fold_binary_loc): Replace call to element_precision
2178 with call to GET_MODE_PRECISION.
2179 * genmodes.c (emit_mode_inner_inline): Replace void_mode->name with
2180 m->name.
2181 (emit_mode_inner): Likewise.
2182 * lto-streamer-out.c (lto_write_mode_table): Update GET_MODE_INNER
2183 result check.
2184 * machmode.h (GET_MODE_UNIT_SIZE): Simplify.
2185 (GET_MODE_UNIT_PRECISION): Likewise.
2186 * rtlanal.c (subreg_get_info): Call GET_MODE_INNER unconditionally.
2187 * simplify-rtx.c (simplify_immed_subreg): Likewise.
2188 * stor-layout.c (bitwise_type_for_mode): Update assert.
2189 (element_precision): Remove.
2190
2191 2015-07-28 Richard Sandiford <richard.sandiford@arm.com>
2192
2193 * target-insns.def (reload_load_address): New targetm instruction
2194 pattern.
2195 * reload1.c (gen_reload): Use it instead of HAVE_*/gen_* interface.
2196
2197 2015-07-28 Richard Sandiford <richard.sandiford@arm.com>
2198
2199 * target-insns.def (atomic_test_and_set): New targetm instruction
2200 pattern.
2201 * optabs.c (maybe_emit_atomic_test_and_set): Use it instead of
2202 HAVE_*/gen_* interface.
2203
2204 2015-07-28 Richard Sandiford <richard.sandiford@arm.com>
2205
2206 * target-insns.def (can_extend, ptr_extend): New targetm instruction
2207 patterns.
2208 * optabs.c (can_extend_p): Use them instead of HAVE_*/gen_* interface.
2209 * simplify-rtx.c (simplify_unary_operation_1): Likewise.
2210 * emit-rtl.c (set_reg_attrs_from_value): Likewise.
2211 * rtlanal.c (nonzero_bits1): Likewise.
2212 (num_sign_bit_copies1): Likewise.
2213
2214 2015-07-28 Richard Sandiford <richard.sandiford@arm.com>
2215
2216 * target-insns.def (eh_return): New targetm instruction pattern.
2217 * except.c (expand_eh_return): Use it instead of HAVE_*/gen_*
2218 interface.
2219 * function.c (thread_prologue_and_epilogue_insns): Remove
2220 preprocessor condition.
2221
2222 2015-07-28 Richard Sandiford <richard.sandiford@arm.com>
2223
2224 * target-insns.def (indirect_jump): New targetm instruction pattern.
2225 * optabs.c (emit_indirect_jump): Use it instead of HAVE_*/gen_*
2226 interface.
2227
2228 2015-07-28 Richard Sandiford <richard.sandiford@arm.com>
2229
2230 * config/fr30/fr30.md (indirect_jump): Use pmode_register_operand
2231 instead of nonimmediate_operand. Remove C condiition.
2232
2233 2015-07-28 Richard Biener <rguenther@suse.de>
2234
2235 * match.pd: Add more simplification of address comparisons.
2236
2237 2015-07-28 Richard Biener <rguenther@suse.de>
2238
2239 * match.pd: Re-order two cases in comparison with max/min
2240 value simplification to make it apply for bools.
2241
2242 2015-07-28 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2243
2244 * config/aarch64/aarch64.c (aarch64_rtx_arith_op_extract_p):
2245 Handle simple SIGN_EXTEND or ZERO_EXTEND.
2246 (aarch64_rtx_costs): Properly strip extend or extract before
2247 passing down to rtx costs again.
2248
2249 2015-07-28 Nick Clifton <nickc@redhat.com>
2250
2251 * config/rl78/rl78.c (rl78_addsi3_internal): New function.
2252 Optimizes the case where -mes0 is active and a constant symbolic
2253 address is used.
2254 * config/rl78/rl78-protos.h: Prototype the new function.
2255 * config/rl78/rl78.md (addsi3_internal_real): Call new function.
2256
2257 2015-07-28 Tom de Vries <tom@codesourcery.com>
2258
2259 * tree-parloops.c (reduc_stmt_res): New function.
2260 (initialize_reductions, add_field_for_reduction)
2261 (create_phi_for_local_result, create_loads_for_reductions)
2262 (create_stores_for_reduction, build_new_reduction): Handle case that
2263 reduc_stmt is a phi.
2264 (gather_scalar_reductions): Allow double_reduc reductions.
2265
2266 2015-07-28 Richard Biener <rguenther@suse.de>
2267
2268 * fold-const.c (fold_comparison): Remove equality folding
2269 of decl addresses ...
2270 * match.pd: ... here and merge with existing pattern.
2271
2272 2015-07-28 Thomas Preud'homme <thomas.preudhomme@arm.com>
2273
2274 PR tree-optimization/66828
2275 * tree-ssa-math-opts.c (perform_symbolic_merge): Change type of inc
2276 from int64_t to uint64_t.
2277
2278 2015-07-28 Dominik Vogt <vogt@linux.vnet.ibm.com>
2279
2280 * opts-common.c (read_cmdline_option): List DriverOnly enum values
2281 as valid only in the error message of the driver, not in the
2282 messages of the language compilers.
2283
2284 2015-07-27 Tom de Vries <tom@codesourcery.com>
2285
2286 * tree-parloops.c (gather_scalar_reductions): Simplify function
2287 structure.
2288
2289 2015-07-27 Marek Polacek <polacek@redhat.com>
2290
2291 * ipa-devirt.c (types_same_for_odr): Fix typo.
2292
2293 2015-07-27 Jason Merrill <jason@redhat.com>
2294
2295 PR debug/66468
2296 * dwarf2out.c (gen_inlined_subroutine_die): Check
2297 cgraph_function_possibly_inlined_p.
2298
2299 2015-07-27 Wilco Dijkstra <wdijkstr@arm.com>
2300
2301 * gcc/config/aarch64/aarch64.md (aarch64_lshr_sisd_or_int_<mode>3):
2302 Place integer variant first.
2303 (aarch64_ashr_sisd_or_int_<mode>3): Likewise.
2304
2305 2015-07-27 Alan Lawrence <alan.lawrence@arm.com>
2306
2307 PR/63870
2308 * config/arm/arm-builtins.c (enum arm_builtins):
2309 Add ARM_BUILTIN_NEON_BASE and ARM_BUILTIN_NEON_LANE_CHECK.
2310 (ARM_BUILTIN_NEON_BASE): Rename macro to....
2311 (ARM_BUILTIN_NEON_PATTERN_START): ...this.
2312 (arm_init_neon_builtins): Register __builtin_arm_lane_check.
2313 (arm_expand_neon_builtin): Handle ARM_BUILTIN_NEON_LANE_CHECK.
2314
2315 2015-07-27 Alan Lawrence <alan.lawrence@arm.com>
2316
2317 PR/63870
2318 * config/arm/arm-builtins.c (enum arm_type_qualifiers):
2319 Add qualifier_lane_index.
2320 (arm_binop_imm_qualifiers, BINOP_IMM_QUALIFIERS): New.
2321 (arm_getlane_qualifiers): Use qualifier_lane_index.
2322 (arm_lanemac_qualifiers): Rename to...
2323 (arm_mac_n_qualifiers): ...this.
2324 (LANEMAC_QUALIFIERS): Rename to...
2325 (MAC_N_QUALIFIERS): ...this.
2326 (arm_mac_lane_qualifiers, MAC_LANE_QUALIFIERS): New.
2327 (arm_setlane_qualifiers): Use qualifier_lane_index.
2328 (arm_ternop_imm_qualifiers, TERNOP_IMM_QUALIFIERS): New.
2329 (enum builtin_arg): Add NEON_ARG_LANE_INDEX.
2330 (arm_expand_neon_args): Handle NEON_ARG_LANE_INDEX.
2331 (arm_expand_neon_builtin): Handle qualifier_lane_index.
2332
2333 * config/arm/arm-protos.h (neon_lane_bounds): Add const_tree parameter.
2334 * config/arm/arm.c (bounds_check): Likewise, improve error message.
2335 (neon_lane_bounds, neon_const_bounds): Add arguments to bounds_check.
2336 * config/arm/arm_neon_builtins.def (vshrs_n, vshru_n, vrshrs_n,
2337 vrshru_n, vshrn_n, vrshrn_n, vqshrns_n, vqshrnu_n, vqrshrns_n,
2338 vqrshrnu_n, vqshrun_n, vqrshrun_n, vshl_n, vqshl_s_n, vqshl_u_n,
2339 vqshlu_n, vshlls_n, vshllu_n): Change qualifiers to BINOP_IMM.
2340 (vsras_n, vsrau_n, vrsras_n, vrsrau_n, vsri_n, vsli_n): Change
2341 qualifiers to TERNOP_IMM.
2342 (vdup_lane): Change qualifiers to GETLANE.
2343 (vmla_lane, vmlals_lane, vmlalu_lane, vqdmlal_lane, vmls_lane,
2344 vmlsls_lane, vmlslu_lane, vqdmlsl_lane): Change qualifiers to MAC_LANE.
2345 (vmla_n, vmlals_n, vmlalu_n, vqdmlal_n, vmls_n, vmlsls_n, vmlslu_n,
2346 vqdmlsl_n): Change qualifiers to MAC_N.
2347
2348 * config/arm/neon.md (neon_vget_lane<mode>, neon_vget_laneu<mode>,
2349 neon_vget_lanedi, neon_vget_lanev2di, neon_vset_lane<mode>,
2350 neon_vset_lanedi, neon_vdup_lane<mode>, neon_vdup_lanedi,
2351 neon_vdup_lanev2di, neon_vmul_lane<mode>, neon_vmul_lane<mode>,
2352 neon_vmull<sup>_lane<mode>, neon_vqdmull_lane<mode>,
2353 neon_vq<r>dmulh_lane<mode>, neon_vq<r>dmulh_lane<mode>,
2354 neon_vmla_lane<mode>, neon_vmla_lane<mode>, neon_vmlal<sup>_lane<mode>,
2355 neon_vqdmlal_lane<mode>, neon_vmls_lane<mode>, neon_vmls_lane<mode>,
2356 neon_vmlsl<sup>_lane<mode>, neon_vqdmlsl_lane<mode>):
2357 Remove call to neon_lane_bounds.
2358
2359 2015-07-27 Wilco Dijkstra <wdijkstr@arm.com>
2360
2361 * config/aarch64/aarch64.md (aarch64_ashl_sisd_or_int_<mode>3):
2362 Place integer variant first.
2363
2364 2015-07-27 Matthew Wahab <matthew.wahab@arm.com>
2365
2366 * config/arm/arm-arches.def: Add "armv6kz". Replace 6ZK with 6KZ
2367 and FL_FOR_ARCH6ZK with FL_FOR_ARCH6KZ.
2368 * config/arm/arm-c.c (arm_cpu_builtins): Emit "__ARM_ARCH_6ZK__"
2369 for armv6kz targets.
2370 * config/arm/arm-cores.def: Replace 6ZK with 6KZ.
2371 * config/arm/arm-protos.h (FL_ARCH6KZ): New.
2372 (FL_FOR_ARCH6ZK): Remove.
2373 (FL_FOR_ARCH6KZ): New.
2374 (arm_arch6zk): New declaration.
2375 * config/arm/arm-tables.opt: Regenerate.
2376 * config/arm/arm.c (arm_arch6kz): New.
2377 (arm_option_override): Set arm_arch6kz.
2378 * config/arm/arm.h (BASE_ARCH_6ZK): Rename to BASE_ARCH_6KZ.
2379 * config/arm/driver-arm.c: Add comment to "armv6zk" entry.
2380 * doc/invoke.texi: Replace "armv6zk" with "armv6kz".
2381
2382 2015-07-27 Marek Polacek <polacek@redhat.com>
2383
2384 PR c++/66555
2385 PR c/54979
2386 * doc/invoke.texi: Document -Wtautological-compare.
2387
2388 2015-07-27 Richard Biener <rguenther@suse.de>
2389
2390 * genmatch.c (decision_tree::gen_gimple): Split out large
2391 subtrees into separate functions.
2392 (decision_tree::gen_generic): Likewise.
2393
2394 2015-07-26 Uros Bizjak <ubizjak@gmail.com>
2395
2396 * config/alpha/alpha.c: Use SUBREG_P predicate.
2397 * config/alpha/predicates.md: Ditto.
2398
2399 2015-07-25 Dominik Vogt <vogt@linux.vnet.ibm.com>
2400
2401 * config.host (s390*-*-*): Include driver-native.c only when
2402 building with s390* as host *and* target.
2403
2404 2015-07-25 Oleg Endo <olegendo@gcc.gnu.org>
2405
2406 PR target/66930
2407 * config/sh/sh.c (sh_split_movrt_negc_to_movt_xor): Add missing
2408 T bit register modified_between_p check.
2409
2410 2015-07-25 Uros Bizjak <ubizjak@gmail.com>
2411
2412 * config/i386/i386.c: Use SUBREG_P predicate.
2413 * config/i386/i386.md: Ditto.
2414 * config/i386/sse.md: Ditto.
2415 * config/i386/predicates.md: Ditto.
2416
2417 2015-07-25 Uros Bizjak <ubizjak@gmail.com>
2418
2419 PR target/67004
2420 * config/i386/i386.h (ADJUST_INSN_LENGTH): Use NONDEBUG_INSN_P (INSN)
2421 predicate and INSN_CODE (INSN) >= 0 to check for valid instruction.
2422
2423 2015-07-25 Sebastian Pop <s.pop@samsung.com>
2424
2425 * Makefile.in: Remove use of TREEBROWSER.
2426 * config.in: Regenerated.
2427 * configure: Regenerated.
2428 * configure.ac: Remove definition of TREEBROWSER.
2429 * tree-browser.c: Removed.
2430 * tree-browser.def: Removed.
2431
2432 2015-07-25 Sebastian Pop <s.pop@samsung.com>
2433
2434 * graphite-scop-detection.c: Include gimple-pretty-print.h.
2435 (stmt_simple_for_scop_p): Print when a stmt is not handled in
2436 Graphite.
2437 (scopdet_basic_block_info): Print when a loop or bb cannot be
2438 represented in Graphite.
2439
2440 2015-07-25 Uros Bizjak <ubizjak@gmail.com>
2441
2442 PR target/66648
2443 * config/i386/i386.c (ix86_expand_set_or_movmem): Emit main loop
2444 execution guard when min_size is less than size_needed.
2445
2446 2015-07-25 Sebastian Pop <s.pop@samsung.com>
2447
2448 * doc/install.texi: Document supported versions of ISL.
2449
2450 2015-07-25 Jeff Law <law@redhat.com>
2451
2452 Revert:
2453 PR lto/66752
2454 * tree-ssa-threadedge.c (simplify_conrol_stmt_condition): If we are
2455 unable to find X NE 0 in the tables, return X as the simplified
2456 condition.
2457 (fsm_find_control_statement_thread_paths): If nodes in NEXT_PATH are
2458 in VISISTED_BBS, then return failure. Else add nodes from NEXT_PATH
2459 to VISISTED_BBS. */
2460 * tree-ssa-threadupdate.c (duplicate_thread_path): Fix up edge flags
2461 after removing the control flow statement and unnecessary edges.
2462
2463 2015-07-25 David Edelsohn <dje.gcc@gmail.com>
2464
2465 Revert:
2466 2015-07-23 Alexandre Oliva <aoliva@redhat.com>
2467
2468 PR rtl-optimization/64164
2469 * Makefile.in (OBJS): Drop tree-ssa-copyrename.o.
2470 * tree-ssa-copyrename.c: Removed.
2471 * opts.c (default_options_table): Drop -ftree-copyrename. Add
2472 -ftree-coalesce-vars.
2473 * passes.def: Drop all occurrences of pass_rename_ssa_copies.
2474 * common.opt (ftree-copyrename): Ignore.
2475 (ftree-coalesce-inlined-vars): Likewise.
2476 * doc/invoke.texi: Remove the ignored options above.
2477 * gimple-expr.h (gimple_can_coalesce_p): Move declaration
2478 * tree-ssa-coalesce.h: ... here.
2479 * tree-ssa-uncprop.c: Include tree-ssa-coalesce.h and other
2480 headers required by it.
2481 * gimple-expr.c (gimple_can_coalesce_p): Allow coalescing
2482 across variables when flag_tree_coalesce_vars. Check register
2483 use and promoted modes to allow coalescing. Moved to
2484 tree-ssa-coalesce.c.
2485 * tree-ssa-live.c (struct tree_int_map_hasher): Move along
2486 with its member functions to tree-ssa-coalesce.c.
2487 (var_map_base_init): Likewise. Renamed to
2488 compute_samebase_partition_bases.
2489 (partition_view_normal): Drop want_bases parameter.
2490 (partition_view_bitmap): Likewise.
2491 * tree-ssa-live.h: Adjust declarations.
2492 * tree-ssa-coalesce.c: Include explow.h.
2493 (build_ssa_conflict_graph): Process PARM_ and RESULT_DECLs's
2494 default defs at the entry point.
2495 (dump_part_var_map): New.
2496 (compute_optimized_partition_bases): New, called by...
2497 (coalesce_ssa_name): ... when flag_tree_coalesce_vars, instead
2498 of compute_samebase_partition_bases. Adjust.
2499 * alias.c (nonoverlapping_memrefs_p): Disregard gimple-regs.
2500 * cfgexpand.c (leader_merge): New.
2501 (get_rtl_for_parm_ssa_default_def): New.
2502 (set_rtl): Merge exprs and attrs, even for MEMs and non-SSA
2503 vars. Update DECL_RTL for PARM_DECLs and RESULT_DECLs too.
2504 (expand_one_stack_var_at): Handle anonymous SSA_NAMEs. Drop
2505 redundant MEM attr setting.
2506 (expand_one_stack_var_1): Handle anonymous SSA_NAMEs. Renamed
2507 from...
2508 (expand_one_stack_var): ... this. New wrapper to check and
2509 skip already expanded SSA partitions.
2510 (record_alignment_for_reg_var): New, factored out of...
2511 (expand_one_var): ... this.
2512 (expand_one_ssa_partition): New.
2513 (adjust_one_expanded_partition_var): New.
2514 (expand_one_register_var): Check and skip already expanded SSA
2515 partitions.
2516 (expand_used_vars): Don't create DECLs for anonymous SSA
2517 names. Expand all SSA partitions, then adjust all SSA names.
2518 (pass::execute): Replace the loops that set
2519 SA.partition_to_pseudo from partition leaders and cleared
2520 DECL_RTL for multi-location variables, and that which used to
2521 rename vars and set attrs, with one that clears DECL_RTL and
2522 checks that PARMs and RESULTs default_defs match DECL_RTL.
2523 * cfgexpand.h (get_rtl_for_parm_ssa_default_def): Declare.
2524 * emit-rtl.c (set_reg_attrs_for_parm): Handle NULL decl.
2525 * explow.c (promote_ssa_mode): New.
2526 * explow.h (promote_ssa_mode): Declare.
2527 * expr.c (expand_expr_real_1): Handle anonymous SSA_NAMEs.
2528 * function.c: Include cfgexpand.h.
2529 (use_register_for_decl): Handle SSA_NAMEs, anonymous or not.
2530 (use_register_for_parm_decl): Wrapper for the above to
2531 special-case the result_ptr.
2532 (rtl_for_parm): Ditto for get_rtl_for_parm_ssa_default_def.
2533 (split_complex_args): Take assign_parm_data_all argument.
2534 Pass it to rtl_for_parm. Set up rtl and context for split
2535 args.
2536 (assign_parms_augmented_arg_list): Adjust.
2537 (maybe_reset_rtl_for_parm): Reset DECL_RTL of parms with
2538 multiple locations. Recognize split complex args.
2539 (assign_parm_adjust_stack_rtl): Add all and parm arguments,
2540 for rtl_for_parm. For SSA-assigned parms, zero stack_parm.
2541 (assign_parm_setup_block): Prefer SSA-assigned location.
2542 (assign_parm_setup_reg): Likewise. Use entry_parm for equiv
2543 if stack_parm is NULL.
2544 (assign_parm_setup_stack): Prefer SSA-assigned location.
2545 (assign_parms): Maybe reset DECL_RTL of params. Adjust stack
2546 rtl before testing for pointer bounds. Special-case result_ptr.
2547 (expand_function_start): Maybe reset DECL_RTL of result.
2548 Prefer SSA-assigned location for result and static chain.
2549 Factor out DECL_RESULT and SET_DECL_RTL.
2550 * tree-outof-ssa.c (insert_value_copy_on_edge): Handle
2551 anonymous SSA names. Use promote_ssa_mode.
2552 (get_temp_reg): Likewise.
2553 (remove_ssa_form): Adjust.
2554 * stor-layout.c (layout_decl): Don't set mem attributes of
2555 non-MEMs.
2556 * var-tracking.c (dataflow_set_clear_at_call): Take call_insn
2557 and get its reg_usage for reg invalidation.
2558 (compute_bb_dataflow): Pass it insn.
2559 (emit_notes_in_bb): Likewise.
2560
2561 2015-07-25 Uros Bizjak <ubizjak@gmail.com>
2562
2563 * config/i386/i386.c (ix86_va_start): Remove
2564 unneeded !TARGET_64BIT check.
2565 (ix86_gimplify_va_arg): Ditto.
2566
2567 2015-07-24 Tom de Vries <tom@codesourcery.com>
2568
2569 * graphite-sese-to-poly.c (build_poly_scop): Always call
2570 rewrite_commutative_reductions_out_of_ssa.
2571
2572 2015-07-24 Tom de Vries <tom@codesourcery.com>
2573
2574 * graphite-sese-to-poly.c (is_reduction_operation_p): Limit
2575 flag_associative_math to FLOAT_TYPE_P. Honour
2576 TYPE_OVERFLOW_WRAPS for INTEGRAL_TYPE_P. Don't allow any other types.
2577
2578 2015-07-24 Manuel López-Ibáñez <manu@gcc.gnu.org>
2579
2580 PR c++/64079
2581 * toplev.c (check_global_declaration): Use DECL_SOURCE_LOCATION
2582 and "%qD" in warning_at instead of "%q+D" in warning.
2583
2584 2015-07-24 Uros Bizjak <ubizjak@gmail.com>
2585
2586 * config/i386/i386.c (ix86_call_abi_override): Call ix86_function_abi.
2587 (ix86_function_abi): Cleanup.
2588
2589 2015-07-24 Michael Darling <darlingm@gmail.com>
2590
2591 PR other/66259
2592 * acinclude.m4: Reflects renaming of configure.in to configure.ac
2593 * configure: Likewise
2594 * configure.ac: Likewise
2595 * doc/install.texi: Likewise
2596 * doc/tm.texi: Likewise
2597 * doc/tm.texi.in: Likewise
2598
2599 2015-07-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2600
2601 * alias.c (nonoverlapping_memrefs_p): Use std::swap instead of
2602 manually swapping values.
2603 * cse.c (fold_rtx): Likewise.
2604 * lra-eliminations.c (form_sum): Likewise.
2605
2606 2015-07-24 Uros Bizjak <ubizjak@gmail.com>
2607
2608 PR target/64003
2609 * config/i386/i386.h (ADJUST_INSN_LENGTH): New define.
2610 * config/i386/i386.md (maybe_prefix_bnd): New attribute.
2611 (*jcc_1, *jcc_2, jump, simple_return_internal)
2612 (simple_return_pop_internal): Set attribute maybe_prefix_bnd.
2613 Set length_nobnd attribute instead of length attribute.
2614 (indirect_jump, *tablejump_1): Set attribute maybe_prefix_bnd.
2615 (length_nobnd): Remove attribute.
2616 (length): Remove length_nobnd processing.
2617
2618 2015-07-24 Nathan Sidwell <nathan@codesourcery.com>
2619
2620 * gimplify.c (omp_default_clause): New function. Reorganize flow
2621 for clarity. Broken out of ...
2622 (omp_notice_variable): ... here.
2623
2624 2015-07-24 Gary Funck <gary@intrepid.com>
2625
2626 PR middle-end/66984
2627 * fold-const.c (fold_binary_loc): Call fold_convert on arguments to
2628 fold_build2 for CEIL_DIV_EXPR and FLOOR_DIV_EXPR optimization.
2629
2630 2015-07-24 Tom de Vries <tom@codesourcery.com>
2631
2632 * tree-parloops.c (gen_parallel_loop): Add debug print for alternative
2633 exit-first loop transform.
2634
2635 2015-07-24 Cesar Philippidis <cesar@codesourcery.com>
2636
2637 PR 66714
2638 * tree-cfg.c (struct replace_decls_d): New struct.
2639 (replace_block_vars_by_duplicates_1): New function.
2640 (replace_block_vars_by_duplicates): Use it to replace the decls
2641 in the value exprs by duplicates.
2642
2643 2015-07-24 Szabolcs Nagy <szabolcs.nagy@arm.com>
2644
2645 * config/aarch64/aarch64-elf-raw.h (LINK_SPEC): Handle -h, -static,
2646 -shared, -symbolic, -rdynamic.
2647
2648 2015-07-24 Szabolcs Nagy <szabolcs.nagy@arm.com>
2649
2650 PR target/65711
2651 * config/aarch64/aarch64-linux.h (LINUX_TARGET_LINK_SPEC): Move
2652 -dynamic-linker within %{!static %{!shared, and -rdynamic within
2653 %{!static.
2654
2655 2015-07-24 Ilya Enkovich <enkovich.gnu@gmail.com>
2656
2657 PR ipa/66566
2658 * ipa-inline-analysis.c (estimate_calls_size_and_time): Check
2659 edge summary is available.
2660
2661 2015-07-24 Richard Biener <rguenther@suse.de>
2662
2663 * genmatch.c (struct dt_node): Add statistic fields.
2664 (dt_node::analyze): New method.
2665 (decision_tree::gen_gimple): Call analyze on the root node
2666 and print statistics to stderr.
2667 (decision_tree::gen_generic): Likewise.
2668
2669 2015-07-24 Richard Biener <rguenther@suse.de>
2670
2671 * fold-const.c (fold_binary_loc): Move simplifying of comparisons
2672 against the highest or lowest possible integer ...
2673 * match.pd: ... as patterns here.
2674
2675 2015-07-24 Richard Biener <rguenther@suse.de>
2676
2677 * genmatch.c (struct capture_info): Add same_as field.
2678 (capture_info::capture_info): Initialize same_as.
2679 (capture_info::walk_match): Compute same_as.
2680 (capture_info::walk_result): Compute stuff for the leader.
2681 (capture_info::walk_c_expr): Likewise.
2682 (dt_simplify::gen_1): Only look at leaders when deciding
2683 to force no side-effects or emit side-effects of omitted operands.
2684
2685 2015-07-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
2686
2687 * config/s390/s390.c (s390_save_gprs_to_fprs): Add CFA_REGISTER
2688 reg note to the GPR -> FPR save instructions.
2689
2690 2015-07-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
2691
2692 * config/s390/s390.c (s390_rtx_costs): Make risbg patterns
2693 cheaper.
2694 (s390_expand_insv): Don't generate risbg pattern for constant zero
2695 sources.
2696 * config/s390/s390.md ("*insv<mode>_zEC12_appendbitsleft")
2697 ("*insv<mode>_z10_appendbitsleft"): New pattern definitions. New
2698 splitters.
2699
2700 2015-07-24 Dominik Vogt <vogt@linux.vnet.ibm.com>
2701
2702 * config/s390/s390.c (s390_reorg): Clean up handling of processors
2703 with
2704 -mtune=
2705 (s390_issue_rate): Likewise.
2706 (s390_sched_reorder): Likewise.
2707 (s390_sched_variable_issue): Likewise.
2708 (s390_loop_unroll_adjust): Likewise.
2709 (s390_option_override): Likewise.
2710
2711 2015-07-24 Dominik Vogt <vogt@linux.vnet.ibm.com>
2712
2713 * config/s390/driver-native.c (s390_host_detect_local_cpu): Handle
2714 processor capabilities with -march=native.
2715 * config/s390/s390.h (MARCH_MTUNE_NATIVE_SPECS): Likewise.
2716 (DRIVER_SELF_SPECS): Likewise. Join specs for 31 and 64 bit.
2717 (S390_TARGET_BITS_STRING): Macro to simplify specs.
2718
2719 2015-07-24 Dominik Vogt <vogt@linux.vnet.ibm.com>
2720
2721 * config/s390/s390.c (s390_issue_rate): Handle
2722 PROCESSOR_2094_Z9_EC.
2723 (s390_option_override): Likewise.
2724 (s390_adjust_priority): Likewise.
2725
2726 2015-07-24 Dominik Vogt <vogt@linux.vnet.ibm.com>
2727
2728 * config/s390/s390.h: S390: Do not define EXTRA_SPEC_FUNCTIONS
2729 when cross compiling.
2730
2731 2015-07-24 Richard Biener <rguenther@suse.de>
2732
2733 * fold-const.c (maybe_canonicalize_comparison_1): Move
2734 A code CST canonicalization ...
2735 * match.pd: ... to a pattern here.
2736
2737 2015-07-24 Jiong Wang <jiong.wang@arm.com>
2738
2739 Revert:
2740 2015-07-22 Jiong Wang <jiong.wang@arm.com>
2741 PR target/63521
2742 * config/aarch64/aarch64.h (REG_ALLOC_ORDER): Define.
2743 (HONOR_REG_ALLOC_ORDER): Define.
2744
2745 2015-07-24 Richard Biener <rguenther@suse.de>
2746
2747 * genmatch.c (add_operator): Allow SSA_NAME as predicate.
2748 * fold-const.c (fold_comparison): Move parameter does not
2749 alias &local simplification ...
2750 * match.pd: ... as a pattern here.
2751
2752 2015-07-24 Richard Biener <rguenther@suse.de>
2753
2754 * gimple-fold.c (replace_stmt_with_simplification): Special-case
2755 valueizing call operands.
2756 * gimple-match-head.c (maybe_push_res_to_seq): Take
2757 number of call arguments from ops array.
2758 (do_valueize): New function.
2759 (gimple_simplify): Return true if valueization changed
2760 any operand even if the result didn't simplify further.
2761
2762 2015-07-24 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
2763
2764 PR middle-end/25530
2765 * match.pd (mult (trunc_div @0 integer_pow2p@1) @1) : New simplifier.
2766
2767 2015-07-24 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
2768
2769 PR middle-end/25529
2770 * match.pd (trunc_div (mult @0 integer_pow2p@1) @1) : New simplifier.
2771
2772 2015-07-23 Kugan Vivekanandarajah <kuganv@linaro.org>
2773
2774 * config/arm/arm.c (arm_emit_movpair): Add REG_EQUAL notes to
2775 instruction.
2776
2777 2015-07-23 Kugan Vivekanandarajah <kuganv@linaro.org>
2778
2779 * cse.c (cse_insn): Fix missing check for STRICT_LOW_PART and minor
2780 clean up.
2781
2782 2015-07-23 Uros Bizjak <ubizjak@gmail.com>
2783
2784 * config/i386/i386.c (ix86_build_builtin_va_list_64): Rename
2785 from ix86_build_builtin_va_list_abi. Handle only 64bit non-MS_ABI
2786 targets here.
2787 (ix86_build_builtin_va_list): Rewrite sysv_va_list_type_node and
2788 ms_va_list_type_node initialization.
2789
2790 2015-07-23 Jeff Law <law@redhat.com>
2791
2792 PR lto/66752
2793 * tree-ssa-threadedge.c (simplify_conrol_stmt_condition): If we are
2794 unable to find X NE 0 in the tables, return X as the simplified
2795 condition.
2796 (fsm_find_control_statement_thread_paths): If nodes in NEXT_PATH are
2797 in VISISTED_BBS, then return failure. Else add nodes from NEXT_PATH
2798 to VISISTED_BBS. */
2799 * tree-ssa-threadupdate.c (duplicate_thread_path): Fix up edge flags
2800 after removing the control flow statement and unnecessary edges.
2801
2802 2015-07-23 Bernd Edlinger <bernd.edlinger@hotmail.de>
2803
2804 * tree-pass.h (get_current_pass_name): Removed.
2805
2806 2015-07-23 Alexandre Oliva <aoliva@redhat.com>
2807
2808 PR rtl-optimization/64164
2809 * Makefile.in (OBJS): Drop tree-ssa-copyrename.o.
2810 * tree-ssa-copyrename.c: Removed.
2811 * opts.c (default_options_table): Drop -ftree-copyrename. Add
2812 -ftree-coalesce-vars.
2813 * passes.def: Drop all occurrences of pass_rename_ssa_copies.
2814 * common.opt (ftree-copyrename): Ignore.
2815 (ftree-coalesce-inlined-vars): Likewise.
2816 * doc/invoke.texi: Remove the ignored options above.
2817 * gimple-expr.h (gimple_can_coalesce_p): Move declaration
2818 * tree-ssa-coalesce.h: ... here.
2819 * tree-ssa-uncprop.c: Include tree-ssa-coalesce.h and other
2820 headers required by it.
2821 * gimple-expr.c (gimple_can_coalesce_p): Allow coalescing
2822 across variables when flag_tree_coalesce_vars. Check register
2823 use and promoted modes to allow coalescing. Moved to
2824 tree-ssa-coalesce.c.
2825 * tree-ssa-live.c (struct tree_int_map_hasher): Move along
2826 with its member functions to tree-ssa-coalesce.c.
2827 (var_map_base_init): Likewise. Renamed to
2828 compute_samebase_partition_bases.
2829 (partition_view_normal): Drop want_bases parameter.
2830 (partition_view_bitmap): Likewise.
2831 * tree-ssa-live.h: Adjust declarations.
2832 * tree-ssa-coalesce.c: Include explow.h.
2833 (build_ssa_conflict_graph): Process PARM_ and RESULT_DECLs's
2834 default defs at the entry point.
2835 (dump_part_var_map): New.
2836 (compute_optimized_partition_bases): New, called by...
2837 (coalesce_ssa_name): ... when flag_tree_coalesce_vars, instead
2838 of compute_samebase_partition_bases. Adjust.
2839 * alias.c (nonoverlapping_memrefs_p): Disregard gimple-regs.
2840 * cfgexpand.c (leader_merge): New.
2841 (get_rtl_for_parm_ssa_default_def): New.
2842 (set_rtl): Merge exprs and attrs, even for MEMs and non-SSA
2843 vars. Update DECL_RTL for PARM_DECLs and RESULT_DECLs too.
2844 (expand_one_stack_var_at): Handle anonymous SSA_NAMEs. Drop
2845 redundant MEM attr setting.
2846 (expand_one_stack_var_1): Handle anonymous SSA_NAMEs. Renamed
2847 from...
2848 (expand_one_stack_var): ... this. New wrapper to check and
2849 skip already expanded SSA partitions.
2850 (record_alignment_for_reg_var): New, factored out of...
2851 (expand_one_var): ... this.
2852 (expand_one_ssa_partition): New.
2853 (adjust_one_expanded_partition_var): New.
2854 (expand_one_register_var): Check and skip already expanded SSA
2855 partitions.
2856 (expand_used_vars): Don't create DECLs for anonymous SSA
2857 names. Expand all SSA partitions, then adjust all SSA names.
2858 (pass::execute): Replace the loops that set
2859 SA.partition_to_pseudo from partition leaders and cleared
2860 DECL_RTL for multi-location variables, and that which used to
2861 rename vars and set attrs, with one that clears DECL_RTL and
2862 checks that PARMs and RESULTs default_defs match DECL_RTL.
2863 * cfgexpand.h (get_rtl_for_parm_ssa_default_def): Declare.
2864 * emit-rtl.c (set_reg_attrs_for_parm): Handle NULL decl.
2865 * explow.c (promote_ssa_mode): New.
2866 * explow.h (promote_ssa_mode): Declare.
2867 * expr.c (expand_expr_real_1): Handle anonymous SSA_NAMEs.
2868 * function.c: Include cfgexpand.h.
2869 (use_register_for_decl): Handle SSA_NAMEs, anonymous or not.
2870 (use_register_for_parm_decl): Wrapper for the above to
2871 special-case the result_ptr.
2872 (rtl_for_parm): Ditto for get_rtl_for_parm_ssa_default_def.
2873 (split_complex_args): Take assign_parm_data_all argument.
2874 Pass it to rtl_for_parm. Set up rtl and context for split
2875 args.
2876 (assign_parms_augmented_arg_list): Adjust.
2877 (maybe_reset_rtl_for_parm): Reset DECL_RTL of parms with
2878 multiple locations. Recognize split complex args.
2879 (assign_parm_adjust_stack_rtl): Add all and parm arguments,
2880 for rtl_for_parm. For SSA-assigned parms, zero stack_parm.
2881 (assign_parm_setup_block): Prefer SSA-assigned location.
2882 (assign_parm_setup_reg): Likewise. Use entry_parm for equiv
2883 if stack_parm is NULL.
2884 (assign_parm_setup_stack): Prefer SSA-assigned location.
2885 (assign_parms): Maybe reset DECL_RTL of params. Adjust stack
2886 rtl before testing for pointer bounds. Special-case result_ptr.
2887 (expand_function_start): Maybe reset DECL_RTL of result.
2888 Prefer SSA-assigned location for result and static chain.
2889 Factor out DECL_RESULT and SET_DECL_RTL.
2890 * tree-outof-ssa.c (insert_value_copy_on_edge): Handle
2891 anonymous SSA names. Use promote_ssa_mode.
2892 (get_temp_reg): Likewise.
2893 (remove_ssa_form): Adjust.
2894 * stor-layout.c (layout_decl): Don't set mem attributes of
2895 non-MEMs.
2896 * var-tracking.c (dataflow_set_clear_at_call): Take call_insn
2897 and get its reg_usage for reg invalidation.
2898 (compute_bb_dataflow): Pass it insn.
2899 (emit_notes_in_bb): Likewise.
2900
2901 2015-07-23 Segher Boessenkool <segher@kernel.crashing.org>
2902
2903 PR target/66217
2904 * config/rs6000/rs6000-protos.h (rs6000_emit_2insn_and): Change
2905 prototype.
2906 * config/rs6000/rs6000.c (rs6000_emit_dot_insn): New function.
2907 (rs6000_emit_2insn_and): Handle dot forms.
2908 * config/rs6000/rs6000.md (and<mode>3): Adjust.
2909 (*and<mode>3_2insn): Remove TODO. Adjust. Add "type" attr.
2910 (*and<mode>3_2insn_dot, *and<mode>3_2insn_dot2): New.
2911
2912 2015-07-23 Richard Biener <rguenther@suse.de>
2913
2914 * generic-match-head.c: Include cgraph.h.
2915 * gimple-match-head.c: Likewise.
2916 * tree-ssa-sccvn.c (free_scc_vn): Guard against newly created
2917 SSA names.
2918 * fold-const.c (fold_binary_loc): Move &A ==/!= &B simplification...
2919 * match.pd: ...to a pattern here. Add &A ==/!= 0 simplification
2920 pattern.
2921
2922 2015-07-23 Richard Biener <rguenther@suse.de>
2923
2924 * gimple-fold.c (fold_gimple_cond): Do not require folding
2925 results to pass valid_gimple_rhs_p.
2926 * tree-cfg.h (fold_cond_expr_cond): Remove.
2927 * tree-cfg.c (fold_cond_expr_cond): Likewise.
2928 (make_edges): Do not call it.
2929 * tree-inline.c (tree_function_versioning): Likewise.
2930
2931 2015-07-23 Tom de Vries <tom@codesourcery.com>
2932
2933 * tree-parloops.c (gather_scalar_reductions): Add arg to call to
2934 vect_force_simple_reduction.
2935 * tree-vect-loop.c (vect_analyze_scalar_cycles_1): Same.
2936 (vect_is_simple_reduction_1): Add and handle
2937 need_wrapping_integral_overflow parameter.
2938 (vect_is_simple_reduction, vect_force_simple_reduction): Add and pass
2939 need_wrapping_integral_overflow parameter.
2940 (vectorizable_reduction): Add arg to call to vect_is_simple_reduction.
2941 * tree-vectorizer.h (vect_force_simple_reduction): Add parameter to
2942 decl.
2943
2944 2015-07-23 Yuri Rumyantsev <ysrumyan@gmail.com>
2945
2946 PR tree-optimization/66926,66951
2947 * tree-vect-loop-manip.c (slpeel_tree_peel_loop_to_edge): Delete
2948 INNER_LOOP and fix up condition for renaming virtual operands.
2949
2950 2015-07-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2951
2952 * combine.c (try_combine): Use std::swap instead of manually
2953 swapping.
2954
2955 2015-07-23 Prachi Godbole <prachi.godbole@imgtec.com>
2956
2957 * config/mips/i6400.md: New file.
2958 * config/mips/mips-cpus.def (mips32r6): Change to PROCESSOR_I6400.
2959 (mips64r6): Likewise.
2960 (i6400): Define.
2961 * config/mips/mips-tables.opt: Regenerate.
2962 * config/mips/mips.c (mips_rtx_cost_data): Add I6400 processor.
2963 (mips_issue_rate): Add support for i6400.
2964 (mips_multipass_dfa_lookahead): Likewise.
2965 * config/mips/mips.h (TUNE_I6400): Define.
2966 * config/mips/mips.md: Include i6400.md.
2967 (processor): Add i6400.
2968 * doc/invoke.texi (-march=@var{arch}): Add i6400.
2969
2970 2015-07-23 Richard Biener <rguenther@suse.de>
2971
2972 PR middle-end/66916
2973 * match.pd: Guard widen and sign-change comparison simplification
2974 with single_use.
2975
2976 2015-07-23 Richard Biener <rguenther@suse.de>
2977
2978 PR tree-optimization/66945
2979 * tree-ssa-propagate.c (substitute_and_fold_dom_walker
2980 ::before_dom_children): Force the propagators idea of
2981 non-executable edges to materialize, not what the folder
2982 chooses.
2983
2984 2015-07-23 Richard Biener <rguenther@suse.de>
2985
2986 * gimple.h (gimple_cond_make_false): Use 0 != 0.
2987 (gimple_cond_make_true): Use 1 != 0.
2988
2989 2015-07-22 DJ Delorie <dj@redhat.com>
2990
2991 * config/msp430/t-msp430 (MULTILIB_DIRNAMES): Remove trailing
2992 slashes.
2993
2994 * config/msp430/msp430.md (ashlhi3): Optimize shifts of subregs.
2995 (ashrhi3): Likewise.
2996 (lshrhi3): Likewise.
2997 (movhi): Take advantage of zero-extend to load small constants.
2998 (movpsi): Likewise.
2999 (and<mode>3): Likewise.
3000 (zero_extendqihi2): Likewise.
3001 (zero_extendqisi2): New.
3002 * config/msp430/constraints.md (N,O): New.
3003 * config/msp430/msp430.h (WORD_REGISTER_OPERATIONS): Define.
3004
3005 2015-07-22 Uros Bizjak <ubizjak@gmail.com>
3006
3007 PR target/66954
3008 * config/i386/i386.c (get_builtin_code_for_version): Add P_AES
3009 to enum feature_priority and feature_list.
3010 (fold_builtin_cpu): Add F_AES to enum processor_features
3011 and isa_names_table.
3012
3013 2015-07-22 Ilya Enkovich <enkovich.gnu@gmail.com>
3014
3015 PR driver/66737
3016 * config/i386/linux-common.h (MPX_SPEC): Use linker option
3017 for 64bit target only.
3018
3019 2015-07-22 Bernd Schmidt <bernds@codesourcery.com>
3020
3021 * config/nvptx/nvptx.c: Expand some comments.
3022
3023 2015-07-22 James Greenhalgh <james.greenhalgh@arm.com>
3024
3025 * config/arm/cortex-a53 (cortex_53_advsimd): Rename to...
3026 (cortex_a53_advsimd): ...This.
3027
3028 2015-07-22 Richard Biener <rguenther@suse.de>
3029
3030 * genmatch.c (expr::gen_transform): Clarify error message
3031 and display location.
3032
3033 2015-07-22 Richard Biener <rguenther@suse.de>
3034
3035 * genmatch.c (struct operand): Add location member.
3036 (predicate, expr, c_expr, capture, if_expr, with_expr): Adjust
3037 constructors.
3038 (struct simplify): Remove match_location and result_location
3039 members.
3040 (elsehwere): Adjust.
3041
3042 2015-07-22 Prachi Godbole <prachi.godbole@imgtec.com>
3043
3044 * config/mips/m5100.md: New file.
3045 * config/mips/mips-cpus.def (m5100, m5101): Define.
3046 * config/mips/mips-tables.opt: Regenerate.
3047 * config/mips/mips.c (mips_rtx_cost_data): Add costs for m5100.
3048 * config/mips/mips.h (MIPS_ISA_LEVEL_SPEC): Map -march=m5100 and
3049 -march=m5101 to -mips32r5.
3050 (MIPS_ARCH_FLOAT_SPEC): Map -m5101 to -msoft-float.
3051 (MIPS_ISA_NAN2008_SPEC): Map -march=m51* to -mnan=2008 if
3052 !-msoft-float.
3053 * config/mips/mips.md: Include m5100.md.
3054 (processor): Add m5100.
3055 * doc/invoke.texi (-march=@var{arch}): Add m5100, m5101.
3056
3057 2015-07-22 Robert Suchanek <robert.suchanek@imgtec.com>
3058
3059 * config/mips/mips-cpus.def (interaptiv): Define.
3060 * config/mips/mips-tables.opt: Regenerate.
3061 * config/mips/mips.h (MIPS_ISA_LEVEL_SPEC): Map -march=interaptiv to
3062 -mips32r2.
3063 (BASE_DRIVER_SELF_SPECS): Likewise but map to -mdsp.
3064 * doc/invoke.texi (-march=@var{arch}): Add interaptiv.
3065
3066 2015-07-22 Jiong Wang <jiong.wang@arm.com>
3067
3068 PR target/63521
3069 * config/aarch64/aarch64.h (REG_ALLOC_ORDER): Define.
3070 (HONOR_REG_ALLOC_ORDER): Define.
3071
3072 2015-07-22 Richard Biener <rguenther@suse.de>
3073
3074 PR tree-optimization/66952
3075 * tree-ssa-ifcombine.c (pass_tree_ifcombine::execute): For
3076 blocks we end up executing unconditionally reset all SSA
3077 info such as range and alignment.
3078 * tree-ssanames.h (reset_flow_sensitive_info): Declare.
3079 * tree-ssanames.c (reset_flow_sensitive_info): New function.
3080
3081 2015-07-22 Charles Baylis <charles.baylis@linaro.org>
3082
3083 * config/aarch64/aarch64-simd.md (vec_store_lanesoi_lane<mode>): Fix
3084 typo in attribute.
3085
3086 2015-07-22 Richard Biener <rguenther@suse.de>
3087
3088 * genmatch.c (parser::parse_result): Properly handle
3089 match with result operands and conditions.
3090
3091 2015-07-22 Charles Baylis <charles.baylis@linaro.org>
3092
3093 PR target/63870
3094 * config/aarch64/aarch64-builtins.c (enum aarch64_type_qualifiers):
3095 Add qualifier_struct_load_store_lane_index.
3096 (aarch64_types_loadstruct_lane_qualifiers): Use
3097 qualifier_struct_load_store_lane_index for lane index argument for
3098 last argument.
3099 (aarch64_types_storestruct_lane_qualifiers): Ditto.
3100 (builtin_simd_arg): Add SIMD_ARG_STRUCT_LOAD_STORE_LANE_INDEX.
3101 (aarch64_simd_expand_args): Add new argument describing mode of
3102 builtin. Check lane bounds for arguments with
3103 SIMD_ARG_STRUCT_LOAD_STORE_LANE_INDEX.
3104 (aarch64_simd_expand_builtin): Emit error for incorrect lane indices
3105 if marked with SIMD_ARG_STRUCT_LOAD_STORE_LANE_INDEX.
3106 (aarch64_simd_expand_builtin): Handle arguments with
3107 qualifier_struct_load_store_lane_index. Pass machine mode of builtin to
3108 aarch64_simd_expand_args.
3109 * config/aarch64/aarch64-simd-builtins.def: Declare ld[234]_lane and
3110 vst[234]_lane with BUILTIN_VALLDIF.
3111 * config/aarch64/aarch64-simd.md:
3112 (aarch64_vec_load_lanesoi_lane<mode>): Use VALLDIF iterator. Perform
3113 endianness reversal on lane index.
3114 (aarch64_vec_load_lanesci_lane<mode>): Ditto.
3115 (aarch64_vec_load_lanesxi_lane<mode>): Ditto.
3116 (vec_store_lanesoi_lane<mode>): Use VALLDIF iterator.
3117 (vec_store_lanesci_lane<mode>): Ditto.
3118 (vec_store_lanesxi_lane<mode>): Ditto.
3119 (aarch64_ld2_lane<mode>): Use VALLDIF iterator. Remove endianness
3120 reversal of lane index.
3121 (aarch64_ld3_lane<mode>): Ditto.
3122 (aarch64_ld4_lane<mode>): Ditto.
3123 (aarch64_st2_lane<mode>): Ditto.
3124 (aarch64_st3_lane<mode>): Ditto.
3125 (aarch64_st4_lane<mode>): Ditto.
3126 * config/aarch64/arm_neon.h (__LD2_LANE_FUNC): Rename mode parameter
3127 to qmode. Add new mode parameter. Update uses.
3128 (__LD3_LANE_FUNC): Ditto.
3129 (__LD4_LANE_FUNC): Ditto.
3130 (__ST2_LANE_FUNC): Ditto.
3131 (__ST3_LANE_FUNC): Ditto.
3132 (__ST4_LANE_FUNC): Ditto.
3133
3134 2015-07-22 Jonathan Wakely <jwakely@redhat.com>
3135
3136 * doc/invoke.texi (Language Independent Options): Rename node to
3137 Diagnostic Message Formatting Options.
3138
3139 2015-07-21 Vladimir Makarov <vmakarov@redhat.com>
3140
3141 PR ipa/66424.
3142 * lra-remat.c (operand_to_remat): Prevent using insns with input
3143 subregs processed separately by IRA.
3144
3145 2015-07-21 Andrew MacLeod <amacleod@redhat.com>
3146
3147 * ssa-iterators.h (has_zero_uses, has_single_use): Implement as
3148 straight loops.
3149 (single_imm_use): Check for iterator node.
3150 (num_imm_uses): Likewise.
3151 * tree-ssa-operands.c (has_zero_uses_1): Delete.
3152 (single_imm_use_1): Check for iterator node.
3153
3154 2015-07-21 Mike Frysinger <vapier@gentoo.org>
3155 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
3156
3157 * configure.ac: Add check for new options in isl-0.15.
3158 * config.in, configure: Rebuilt.
3159 * graphite-blocking.c: Include <isl/constraint.h>
3160 * graphite-interchange.c, graphite-poly.c: Likewise.
3161 * graphhite-scop-detection.c, graphite-sese-to-poly.c: Likewise.
3162 * graphite.c: Likewise.
3163 * graphite-isl-ast-to-gimple.c: Include <isl/constraint.h> and
3164 <isl/union_set.h>.
3165 * graphite-dependences.c: Include <isl/constraint.h>.
3166 (max_number_of_out_dimensions): Returns isl_stat.
3167 (extend_schedule_1): Likewise
3168 (extend_schedule): Corresponding changes.
3169 * graphite-optimize-isl.c: Include <isl/constraint.h> and
3170 <isl/union_set.h>.
3171 (getSingleMap): Change return type of isl_stat.
3172 (optimize_isl): Conditionally use
3173 isl_options_set_schedule_serialize_sccs.
3174 * graphite-poly.h (isl_stat, isl_stat_ok): Define fallbacks
3175 if not HAVE_ISL_OPTIONS_SET_SCHEDULE_SERIALIZE_SCCS.
3176
3177 2015-07-21 Georg-Johann Lay <avr@gjlay.de>
3178
3179 PR target/66956
3180 * config/avr/avr-dimode.md (<extend_u>mulsidi3_insn)
3181 (<extend_u>mulsidi3): Don't use if !AVR_HAVE_MUL.
3182
3183 2015-07-21 Richard Biener <rguenther@suse.de>
3184
3185 PR tree-optimization/66948
3186 * genmatch.c (capture_info::walk_match): Also recurse to
3187 captures. Properly compute expr state from captures of
3188 captures.
3189 * match.pd: Add single-use guards to
3190 (X & C2) >> C1 into (X >> C1) & (C2 >> C1) transform.
3191
3192 2015-07-21 Nathan Sidwell <nathan@codesourcery.com>
3193
3194 * config/nvptx/mkoffload.c (process): Add static destructor call.
3195
3196 2015-07-21 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3197
3198 PR middle-end/66915
3199 * match.pd (A - B -> A + (-B)): Don't allow folding
3200 when type if a fixed-point type.
3201
3202 2015-07-20 DJ Delorie <dj@redhat.com>
3203
3204 * config/rl78/rl78-real.md (andqi3_real): Expand operands for clr1.
3205 (iorqi3_real): Likewise for set1.
3206
3207 2015-07-20 Uros Bizjak <ubizjak@gmail.com>
3208
3209 * config/i386/i386.c (ix86_md_asm_adjust): Handle DImode dest_mode
3210 for !TARGET_64BIT.
3211
3212 2015-07-20 Aditya Kumar <hiraditya@msn.com>
3213
3214 * graphite-isl-ast-to-gimple.c:
3215 Refactor so that each function can access 'region'. This will help
3216 maintain a parameter rename_map within a region.
3217
3218 2015-07-20 Segher Boessenkool <segher@kernel.crashing.org>
3219
3220 * config/rs6000/rs6000.md (*lt0_disi): New.
3221
3222 2015-07-20 Segher Boessenkool <segher@kernel.crashing.org>
3223
3224 PR target/66217
3225 * config/rs6000/constraints.md ("S", "T", "t"): Delete. Update
3226 "available letters" comment.
3227 * config/rs6000/predicates.md (mask_operand, mask_operand_wrap,
3228 mask64_operand, mask64_2_operand, any_mask_operand, and64_2_operand,
3229 and_2rld_operand): Delete.
3230 (and_operand): Adjust.
3231 (rotate_mask_operator): New.
3232 * config/rs6000/rs6000-protos.h (build_mask64_2_operands,
3233 includes_lshift_p, includes_rshift_p, includes_rldic_lshift_p,
3234 includes_rldicr_lshift_p, insvdi_rshift_rlwimi_p, extract_MB,
3235 extract_ME): Delete.
3236 (rs6000_is_valid_mask, rs6000_is_valid_and_mask,
3237 rs6000_is_valid_shift_mask, rs6000_is_valid_insert_mask,
3238 rs6000_insn_for_and_mask, rs6000_insn_for_shift_mask,
3239 rs6000_insn_for_insert_mask, rs6000_is_valid_2insn_and,
3240 rs6000_emit_2insn_and): New.
3241 * config/rs6000/rs6000.c (num_insns_constant): Adjust.
3242 (build_mask64_2_operands, includes_lshift_p, includes_rshift_p,
3243 includes_rldic_lshift_p, includes_rldicr_lshift_p,
3244 insvdi_rshift_rlwimi_p, extract_MB, extract_ME): Delete.
3245 (rs6000_is_valid_mask, rs6000_is_valid_and_mask,
3246 rs6000_insn_for_and_mask, rs6000_is_valid_shift_mask,
3247 s6000_insn_for_shift_mask, rs6000_is_valid_insert_mask,
3248 rs6000_insn_for_insert_mask, rs6000_is_valid_2insn_and,
3249 rs6000_emit_2insn_and): New.
3250 (print_operand) <'b', 'B', 'm', 'M', 's', 'S', 'W'>: Delete.
3251 (rs6000_rtx_costs) <CONST_INT>: Delete mask_operand and mask64_operand
3252 handling.
3253 <NOT>: Don't fall through to next case.
3254 <AND>: Handle the various rotate-and-mask cases directly.
3255 <IOR>: Always cost as one insn.
3256 * config/rs6000/rs6000.md (splitter for bswap:SI): Adjust.
3257 (and<mode>3): Adjust expander for the new patterns.
3258 (and<mode>3_imm, and<mode>3_imm_dot, and<mode>3_imm_dot2,
3259 and<mode>3_imm_mask_dot, and<mode>3_imm_mask_dot2): Adjust condition.
3260 (*and<mode>3_imm_dot_shifted): New.
3261 (*and<mode>3_mask): Delete, rewrite as ...
3262 (and<mode>3_mask): ... New.
3263 (*and<mode>3_mask_dot, *and<mode>3_mask_dot): Rewrite.
3264 (andsi3_internal0_nomc): Delete.
3265 (*andsi3_internal6): Delete.
3266 (*and<mode>3_2insn): New.
3267 (insv, insvsi_internal, *insvsi_internal1, *insvsi_internal2,
3268 *insvsi_internal3, *insvsi_internal4, *insvsi_internal5,
3269 *insvsi_internal6, insvdi_internal, *insvdi_internal2,
3270 *insvdi_internal3): Delete.
3271 (*rotl<mode>3_mask, *rotl<mode>3_mask_dot, *rotl<mode>3_mask_dot2,
3272 *rotl<mode>3_insert, *rotl<mode>3_insert_2, *rotl<mode>3_insert_3,
3273 *rotl<mode>3_insert_4, two splitters for multi-precision shifts,
3274 *ior<mode>_mask): New.
3275 (extzv, extzvdi_internal, *extzvdi_internal1, *extzvdi_internal2,
3276 *rotlsi3_mask, *rotlsi3_mask_dot, *rotlsi3_mask_dot2,
3277 *ashlsi3_imm_mask, *ashlsi3_imm_mask_dot, *ashlsi3_imm_mask_dot2,
3278 *lshrsi3_imm_mask, *lshrsi3_imm_mask_dot, *lshrsi3_imm_mask_dot2):
3279 Delete.
3280 (ashr<mode>3): Delete expander.
3281 (*ashr<mode>3): Rename to ...
3282 (ashr<mode>3): ... This.
3283 (ashrdi3_no_power, *ashrdisi3_noppc64be): Delete.
3284 (*rotldi3_internal4, *rotldi3_internal5 and split,
3285 *rotldi3_internal6 and split, *ashldi3_internal4, ashldi3_internal5
3286 and split, *ashldi3_internal6 and split, *ashldi3_internal7,
3287 ashldi3_internal8 and split, *ashldi3_internal9 and split): Delete.
3288 (*anddi3_2rld, *anddi3_2rld_dot, *anddi3_2rld_dot2): Delete.
3289 (splitter for loading a mask): Adjust.
3290 * doc/md.texi (Machine Constraints): Remove q, S, T, t constraints.
3291
3292 2015-07-20 Marek Polacek <polacek@redhat.com>
3293
3294 * genemit.c (print_code, gen_exp, gen_insn, gen_expand, gen_split,
3295 output_add_clobbers, output_added_clobbers_hard_reg_p,
3296 gen_rtx_scratch): Remove declarations.
3297
3298 2015-07-20 Marek Polacek <polacek@redhat.com>
3299
3300 PR c++/55095
3301 * doc/invoke.texi: Document -Wshift-overflow and -Wshift-overflow=.
3302
3303 2015-07-20 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3304
3305 * simplify-rtx.c (simplify_unary_operation_1, NEG case):
3306 (neg (x ? (neg y) : y)) -> !x ? (neg y) : y.
3307
3308 2015-07-20 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3309
3310 * combine.c (combine_simplify_rtx): Move simplification step
3311 before various transformations/substitutions.
3312
3313 2015-07-20 Mikhail Maltsev <maltsevm@gmail.com>
3314
3315 * wide-int.h (struct binary_traits): Fix partial specialization syntax.
3316 (struct int_traits): Likewise.
3317
3318 2015-07-18 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
3319
3320 * vmsdbgout.c (vmsdbgout_decl): Change name of prototyped
3321 function to vmsdbgout_function_decl.
3322
3323 2015-07-18 Uros Bizjak <ubizjak@gmail.com>
3324
3325 PR target/66922
3326 * config/i386/i386.c (ix86_expand_pextr): Reject extractions
3327 from misaligned positions.
3328 (ix86_expand_pinsr): Reject insertions to misaligned positions.
3329
3330 2015-07-18 Sebastian Pop <s.pop@samsung.com>
3331
3332 PR middle-end/46851
3333 PR middle-end/60340
3334 * Makefile.in: Removed omega.o.
3335 * common.opt: Document flag fcheck-data-deps as deprecated.
3336 * doc/invoke.texi: Remove documentation for fcheck-data-deps and
3337 its associated params: omega-max-vars, omega-max-geqs,
3338 omega-max-eqs, omega-max-wild-cards, omega-hash-table-size,
3339 omega-max-keys, omega-eliminate-redundant-constraints.
3340 * doc/loop.texi: Remove all the section on Omega.
3341 * graphite-blocking.c: Include missing params.h: it used to be
3342 included through tree-data-ref.h and omega.h.
3343 * graphite-isl-ast-to-gimple.c: Same.
3344 * graphite-optimize-isl.c: Same.
3345 * graphite-sese-to-poly.c: Same.
3346 * graphite.c: Same.
3347 * omega.c: Remove.
3348 * omega.h: Remove.
3349 * params.def: Removed PARAM_OMEGA_MAX_VARS, PARAM_OMEGA_MAX_GEQS,
3350 PARAM_OMEGA_MAX_EQS, PARAM_OMEGA_MAX_WILD_CARDS,
3351 PARAM_OMEGA_HASH_TABLE_SIZE, PARAM_OMEGA_MAX_KEYS, and
3352 PARAM_OMEGA_ELIMINATE_REDUNDANT_CONSTRAINTS.
3353 * passes.def: Remove pass_check_data_deps.
3354 * tree-data-ref.c (dump_affine_function): Declare DEBUG_FUNCTION.
3355 (dump_conflict_function): Same.
3356 (dump_subscript): Same.
3357 (print_direction_vector): Same.
3358 (print_dir_vectors): Same.
3359 (print_lambda_vector): Same.
3360 (print_dist_vectors): Same.
3361 (dump_data_dependence_relation): Same.
3362 (dump_data_dependence_relations): Same.
3363 (dump_dist_dir_vectors): Same.
3364 (dump_ddrs): Same.
3365 (init_omega_eq_with_af): Removed.
3366 (omega_extract_distance_vectors): Removed.
3367 (omega_setup_subscript): Removed.
3368 (init_omega_for_ddr_1): Removed.
3369 (init_omega_for_ddr): Removed.
3370 (ddr_consistent_p): Removed.
3371 (compute_affine_dependence): Do not use omega to check data
3372 dependences.
3373 (compute_data_dependences_for_bb): Removed.
3374 (analyze_all_data_dependences): Removed.
3375 (tree_check_data_deps): Removed.
3376 * tree-data-ref.h: Do not include omega.h.
3377 (compute_data_dependences_for_bb): Removed.
3378 (tree_check_data_deps): Removed.
3379 * tree-ssa-loop.c (pass_check_data_deps): Removed.
3380 (make_pass_check_data_deps): Removed.
3381 * tree-ssa-phiopt.c: Include params.h.
3382 * tree-vect-data-refs.c: Same.
3383 * tree-vect-slp.c: Same.
3384
3385 2015-07-18 Uros Bizjak <ubizjak@gmail.com>
3386
3387 * config/i386/i386.md (pushsf splitter): Pass curr_insn to
3388 find_constant_src. FAIL if find_constant_src returns NULL_RTX.
3389 (mem->fpreg splitters): Ditto.
3390 (general_operand->nonimmediate_operand splitter): Use explicit modes.
3391 Disable DFmode for TARGET_64BIT.
3392
3393 2015-07-17 H.J. Lu <hongjiu.lu@intel.com>
3394
3395 PR target/66906
3396 * config/i386/i386.c (ix86_expand_prologue): Replicate static
3397 chain on the stack.
3398
3399 2015-07-17 Nathan Sidwell <nathan@codesourcery.com>
3400
3401 * config/nvptx/mkoffload.c (process): Constify host data.
3402 * config/i386/intelmic-mkoffload.c (generate_target_descr_file):
3403 Constify host data.
3404 (generate_host_descr_file): Likewise.
3405
3406 2015-07-17 Aditya Kumar <aditya.k7@samsung.com>
3407 Sebastian Pop <s.pop@samsung.com>
3408
3409 PR middle-end/61929
3410 * graphite-dependences.c (add_pdr_constraints): Renamed
3411 pdr->extent to pdr->subscript_sizes.
3412 * graphite-interchange.c (build_linearized_memory_access): Add
3413 back all gcc_assert's that the "isl_int to isl_val conversion"
3414 patch has removed. Refactored.
3415 (pdr_stride_in_loop): Renamed pdr->extent to pdr->subscript_sizes.
3416 * graphite-poly.c (new_poly_dr): Same.
3417 (free_poly_dr): Same.
3418 * graphite-poly.h (struct poly_dr): Same.
3419 * graphite-scop-detection.c (stmt_has_simple_data_refs_p): Ignore
3420 all data references other than ARRAY_REF, MEM_REF, and COMPONENT_REF.
3421 * graphite-scop-detection.h: Fix space.
3422 * graphite-sese-to-poly.c (build_pbb_scattering_polyhedrons): Add
3423 back all gcc_assert's removed by a previous patch.
3424 (wrap): Remove the_isl_ctx global variable that the same patch has
3425 added.
3426 (build_loop_iteration_domains): Same.
3427 (add_param_constraints): Same.
3428 (pdr_add_data_dimensions): Same. Refactored.
3429 (build_poly_dr): Renamed extent to subscript_sizes.
3430
3431 2015-07-17 Marek Polacek <polacek@redhat.com>
3432
3433 * fold-const.c (fold_binary_loc): Move A - (A & B) into ~B & A ...
3434 * match.pd: ... here.
3435
3436 2015-07-17 Nathan Sidwell <nathan@codesourcery.com>
3437
3438 * config/nvptx/mkoffload.c (process): Constify target data.
3439 * config/i386/intelmic-mkoffload.c (generate_target_descr_file):
3440 Constify target data.
3441 (generate_target_offloadend_file): Likewise.
3442
3443 2015-07-17 Yuri Rumyantsev <ysrumyan@gmail.com>
3444
3445 * tree-vect-loop-manip.c (rename_variables_in_bb): Add argument
3446 to allow renaming of PHI arguments on edges incoming from outer
3447 loop header, add corresponding check before start PHI iterator.
3448 (slpeel_tree_duplicate_loop_to_edge_cfg): Introduce new bool
3449 variable DUPLICATE_OUTER_LOOP and set it to true for outer loops
3450 with true force_vectorize. Set-up dominator for outer loop too.
3451 Pass DUPLICATE_OUTER_LOOP as argument to rename_variables_in_bb.
3452 (slpeel_can_duplicate_loop_p): Allow duplicate of outer loop if it
3453 was marked with force_vectorize and has restricted cfg.
3454 (slpeel_tree_peel_loop_to_edge): Do not rename exit PHI uses in
3455 inner loop.
3456 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment): Do not
3457 do peeling for outer loops.
3458
3459 2015-07-17 Yvan Roux <yvan.roux@linaro.org>
3460 Matthias Klose <doko@ubuntu.com>
3461
3462 * configure.ac: Move AC_ARG_WITH checks for native-system-header-dir,
3463 build-sysroot, sysroot from the `Miscenalleous configure options' to
3464 the `Directories' section and strip trailing `/' from with_sysroot.
3465 (gcc_gxx_include_dir): Don't strip a `/' sysroot value.
3466 * configure: Regenerated.
3467
3468 2015-07-17 Uros Bizjak <ubizjak@gmail.com>
3469
3470 PR target/66824
3471 * config/i386/i386.h (TARGET_HARD_SF_REGS): New define.
3472 (TARGET_HARD_DF_REGS): Ditto.
3473 (TARGET_HARD_XF_REGS): Ditto.
3474 * config/i386/i386.md (*movxf_internal): Add alternatives 9 and 10.
3475 Enable alternatives 9 and 10 only for !TARGET_HARD_XF_REG target.
3476 (*movdf_internal): Add alternatives 22, 23, 24 and 25. Enable
3477 alternatives 22, 23, 24 and 25 only for !TARGET_HARD_DF_REG target.
3478 (*movsf_internal): Add alternatives 16 and 17. Enable
3479 alternatives 16 and 17 only for !TARGET_HARD_SF_REG target.
3480
3481 2015-07-17 Uros Bizjak <ubizjak@gmail.com>
3482
3483 PR rtl-optimization/66891
3484 * calls.c (expand_call): Wrap precompute_register_parameters with
3485 NO_DEFER_POP/OK_DEFER_POP to prevent deferred pops.
3486
3487 2015-07-16 Nathan Sidwell <nathan@codesourcery.com>
3488
3489 * config/nvptx/mkoffload.c (process): Constify mapping variables.
3490 Define target data struct and initialize it.
3491
3492 2015-07-16 Vladimir Makarov <vmakarov@redhat.com>
3493
3494 PR rtl-optimization/66626
3495 * ira.h (emit-rtl.h): Include.
3496 (non_spilled_static_chain_regno_p): New.
3497 * ira-color.c (setup_profitable_hard_regs): Clear profitable regs
3498 unless it is non spilled static chain pseudo.
3499 (assign_hard_rego): Spill memory profitable allocno unless it is
3500 non spilled static chain pseudo.
3501 (allocno_spill_priority_compare): Put non spilled static chain
3502 pseudo at the end of sorted array.
3503 (improve_allocation): Do nothing if we have static chain and
3504 non-local goto.
3505 (allocno__priority_compare_func): Put non spilled static chain
3506 pseudo at the beginning of sorted array.
3507 (move_spill_restore): Ignore non spilled static chain pseudo.
3508 * ira-costs.c (find_costs_and_classes): Don't assign class NO_REGS
3509 to non spilled static chain pseudo.
3510 * lra-assigns.c (pseudo_compare_func): Put non spilled static chain
3511 pseudo at the beginning of sorted array.
3512 (spill_for): Spill non spilled static chain pseudo last.
3513 * lra-constraints.c (lra_constraints): Remove static chain pseudo
3514 check for equivalence.
3515
3516 2015-07-16 Martin Liska <mliska@suse.cz>
3517
3518 PR ipa/66896.
3519 * ipa-prop.c (update_jump_functions_after_inlining): Create properly
3520 dst_ctx if it does not exist.
3521
3522 2015-07-16 Martin Liska <mliska@suse.cz>
3523
3524 * hash-set.h (remove): New function.
3525 (iterator): New iteration class for hash_set.
3526
3527 2015-07-16 Richard Sandiford <richard.sandiford@arm.com>
3528
3529 * genattrtab.c (make_canonical): Add a file_location parameter.
3530 Use fatal_at rather than fatal.
3531 (get_attr_value): Likewise. Update call to make_canonical.
3532 (fill_attr, make_length_attrs, optimize_attrs, gen_attr)
3533 (make_internal_attr): Update calls accordingly.
3534
3535 2015-07-16 Richard Sandiford <richard.sandiford@arm.com>
3536
3537 * read-md.h (message_with_line, error_with_line): Delete.
3538 * read-md.c (message_with_line, error_with_line): Delete.
3539 * gensupport.h: Include read-md.h.
3540 (md_rtx_info): New structure.
3541 (read_md_rtx): Use it. Return a bool success value.
3542 * gensupport.c (read_md_rtx): Likewise.
3543 * genattr-common.c (gen_attr): Take an md_rtx_info rather than an rtx.
3544 (main): Update after interface changes.
3545 * genattr.c (gen_attr): Take an md_rtx_info rather than an rtx.
3546 (main): Update after interface changes.
3547 * genattrtab.c (insn_code_number): Delete.
3548 (optimize_attrs): Add a max_insn_code parameter and use it instead
3549 of insn_code_number.
3550 (gen_attr): Take an md_rtx_info rather than an rtx and lineno.
3551 Use *_at rather than *_with_line functions.
3552 (gen_insn): Likewise.
3553 (gen_delay): Likewise.
3554 (gen_insn_reserv): Likewise.
3555 (gen_bypass): Take an md_rtx_info rather than an rtx.
3556 (main): Update after interface changes. Use a local max_insn_code
3557 variable instead of insn_code_number.
3558 * genautomata.c (gen_cpu_unit): Take an md_rtx_info rather than
3559 an rtx. Use fatal_at rather than fatal.
3560 (gen_query_cpu_unit, gen_bypass, gen_excl_set)
3561 (gen_presence_absence_set, gen_presence_set, gen_final_presence_set)
3562 (gen_absence_set, gen_final_absence_set, gen_automaton)
3563 (gen_automata_option, gen_reserv, gen_insn_reserv): Likewise.
3564 (main): Update after interface changes.
3565 * gencodes.c (gen_insn): Take an md_rtx_info rather than an rtx
3566 and code number.
3567 (main): Update after interface changes.
3568 * genconditions.c (main): Use new read_md_rtx interface.
3569 * genconfig.c (gen_insn): Take an md_rtx_info rather than an rtx.
3570 (gen_expand, gen_split, gen_peephole, gen_peephole2): Likewise.
3571 (main): Update after interface changes.
3572 * genemit.c (insn_code_number, insn_index_number): Delete.
3573 (gen_insn): Take an md_rtx_info rather than an rtx and lineno.
3574 Use fatal_at rather than fatal.
3575 (gen_expand): Take an md_rtx_info rather than an rtx. Use fatal_at
3576 rather than fatal.
3577 (gen_split): Likewise.
3578 (main): Update after interface changes.
3579 * genextract.c (line_no): Delete.
3580 (gen_insn): Take an md_rtx_info rather than an rtx and lineno.
3581 Update call to walk_rtx.
3582 (VEC_safe_set_locstr): Add an md_rtx_info argument. Use message_at
3583 rather than message_with_line.
3584 (walk_rtx): Add an md_rtx_info argument. Update call to
3585 VEC_safe_set_locstr.
3586 (main): Update after interface changes.
3587 * genflags.c (gen_insn): Take an md_rtx_info rather than an rtx
3588 and lineno. Use error_at rather than separate message_with_line
3589 calls and have_error assignments.
3590 (main): Update after interface changes.
3591 * genmddump.c (main): Use new read_md_rtx interface.
3592 * genopinit.c (insn): Take an md_rtx_info rather than an rtx.
3593 (main): Update after interface changes.
3594 * genoutput.c (next_code_number): Delete.
3595 (gen_insn): Take an md_rtx_info rather than an rtx and lineno.
3596 (gen_peephole, gen_expand, gen_split): Likewise.
3597 (note_constraint): Likewise. Use *_at rather than *_with_line
3598 functions.
3599 (main): Update after interface changes.
3600 * genpeep.c (gen_peephole): Take an md_rtx_info rather than an
3601 rtx and lineno.
3602 (main): Update after interface changes.
3603 * genpreds.c (process_define_predicate): Take an md_rtx_info rather
3604 than an rtx and lineno.
3605 (process_define_constraint): Likewise.
3606 (process_define_register_constraint): Likewise.
3607 (main): Update after interface changes.
3608 * genrecog.c (next_insn_code, pattern_lineno): Delete.
3609 (validate_pattern): Replace top-level rtx with an md_rtx_info.
3610 Use *_at rather than *_with_line functions.
3611 (match_pattern_2): Likewise.
3612 (match_pattern_1, match_pattern): Add an md_rtx_info parameter.
3613 (get_peephole2_pattern): Take an md_rtx_info rather than an rtvec.
3614 Use *_at rather than *_with_line functions.
3615 * gentarget-def.c (add_insn): New function.
3616 (main): Use it. Use new read_md_rtx interface.
3617
3618 2015-07-16 Richard Sandiford <richard.sandiford@arm.com>
3619
3620 * gensupport.h (compute_test_codes): Take a file_location rather
3621 than a line number.
3622 * gensupport.c (compute_test_codes): Likewise. Use *_at functions
3623 rather than *_with_line functions.
3624 (process_define_predicate): Update call to compute_test_codes.
3625 * genpreds.c (validate_exp): Take a file_location rather than a
3626 line number. Use *_at functions rather than *_with_line functions.
3627 (process_define_predicate): Update call to validate_exp.
3628 (constraint_data): Replace lineno field with a file_location.
3629 (add_constraint): Take a file_location rather than a line number.
3630 Use *_at functions rather than *_with_line functions. Fix error
3631 message for address constraints. Update after changes to
3632 validate_exp, constraint_data and compute_test_codes.
3633 (process_define_constraint): Update accordingly.
3634 (process_define_register_constraint): Likewise.
3635
3636 2015-07-16 Richard Sandiford <richard.sandiford@arm.com>
3637
3638 * genoutput.c (data): Use a file_location to record the source
3639 position.
3640 (nothing): Delete.
3641 (idata, idata_end): Remove initialization.
3642 (constraint_data): Replace lineno with a file_location.
3643 (output_insn_data): Update after changes to data.
3644 (gen_insn, gen_peephole, gen_expand, gen_split): Likewise.
3645 (scan_operands): Likewise, using *_at rather than *_with_line
3646 functions.
3647 (process_template): Likewise.
3648 (validate_insn_alternatives): Likewise.
3649 (validate_insn_operands): Likewise.
3650 (validate_optab_operands): Likewise.
3651 (init_insn_for_nothing): Initialize idata and idata_end.
3652 (note_constraint): Update after changes to constraint_data,
3653 using at rather than with_line functions.
3654 (mdep_constraint_len): Take a file_location rather than a
3655 line number. Use at rather than with_line functions.
3656
3657 2015-07-16 Richard Sandiford <richard.sandiford@arm.com>
3658
3659 * read-md.h (fatal_at): Declare.
3660 * read-md.c (fatal_at): New function.
3661 * genattrtab.c (insn_def, attr_desc, delay_desc): Use a file_location
3662 to record the source position.
3663 (check_attr_test): Take a file_location instead of a line number.
3664 Use fatal_at instead of fatal.
3665 (check_attr_value): Update after above changes, using "at"
3666 rather than "with_line" reporting functions.
3667 (convert_set_attr_alternative): Likewise.
3668 (gen_attr): Likewise.
3669 (check_defs): Likewise. Don't assign to read_md_filename.
3670 (gen_insn): Update initialization after above changes.
3671 (gen_delay): Likewise.
3672 (write_insn_cases): Print the filename for a define_peephole.
3673 (gen_insn_reserv): Take a line number as argument and update
3674 the call to check_attr_test.
3675 (main): Pass a line number to gen_insn_reserv.
3676
3677 2015-07-16 Richard Sandiford <richard.sandiford@arm.com>
3678
3679 * read-md.h (file_location): New structure.
3680 (directive_handler_t): Take a file_location rather than a line number.
3681 (message_at, error_at): Declare.
3682 (read_skip_construct): Delete.
3683 * read-md.c (message_with_line_1): Replace with...
3684 (message_at_1): ...this new function.
3685 (message_at, error_at): New functions.
3686 (message_with_line, error_with_line): Update to use message_at_1.
3687 (handle_enum): Take a file_location rather than a line number
3688 and use error_at for error reporting.
3689 (handle_include): Likewise.
3690 (read_skip_construct): Likewise. Make static.
3691 (handle_file): Update after above changes. Pass a file_location
3692 rather than a line number to handle_directive.
3693 * gensupport.c (queue_elem): Replace separate filename and lineno
3694 with a file_location.
3695 (queue_pattern): Replace filename and lineno arguments with a
3696 file_location. Update after change to queue_elem.
3697 (process_define_predicate): Replace lineno argument with a
3698 file_location and use error_at for error reporting. Update
3699 after above changes.
3700 (process_rtx): Likewise.
3701 (subst_pattern_match): Likewise.
3702 (get_alternatives_number): Likewise.
3703 (alter_predicate_for_insn): Likewise.
3704 (rtx_handle_directive): Likewise.
3705 (is_predicable): Update after above changes, using error_at rather
3706 than error_with_line.
3707 (has_subst_attribute): Likewise.
3708 (identify_predicable_attribute): Likewise.
3709 (alter_attrs_for_subst_insn): Likewise.
3710 (process_one_cond_exec): Likewise.
3711 (process_substs_on_one_elem): Likewise.
3712 (process_define_subst): Likewise.
3713 (check_define_attr_duplicates): Likewise.
3714 (read_md_rtx): Update after change to queue_elem.
3715
3716 2015-07-16 Richard Sandiford <richard.sandiford@arm.com>
3717
3718 * genoutput.c (next_index_number): Delete.
3719 (data): Remove index_number.
3720 (gen_insn, gen_peephole, gen_expand, gen_split): Update accordingly.
3721 (main): Remove manipulation of next_index_number.
3722
3723 2015-07-16 Richard Sandiford <richard.sandiford@arm.com>
3724
3725 * genattrtab.c (check_attr_value): Remove handling of null attrs.
3726 (make_canonical): Likewise.
3727
3728 2015-07-16 Eric Botcazou <ebotcazou@adacore.com>
3729
3730 * config/sparc/sparc.md (save_stack_nonlocal): Use adjust_address
3731 instead of adjust_address_nv.
3732 (restore_stack_nonlocal): Likewise.
3733 (nonlocal_goto): Likewise.
3734
3735 2015-07-16 Tom de Vries <tom@codesourcery.com>
3736
3737 * tree-parloops.c (create_parallel_loop): Handle case that exit phi does
3738 not have a corresponding loop header phi.
3739
3740 2015-07-16 Tom de Vries <tom@codesourcery.com>
3741
3742 * tree-parloops.c (create_loads_for_reductions): Handle case that
3743 reduction is unused.
3744
3745 2015-07-16 Richard Biener <rguenther@suse.de>
3746
3747 PR tree-optimization/66894
3748 * tree-vrp.c (register_edge_assert_for_2): Fix bad assumption
3749 about deriving NE_EXPR from truncated values.
3750
3751 2015-07-16 Martin Liska <mliska@suse.cz>
3752
3753 * alloc-pool.h
3754 (object_allocator): Add new class.
3755 (pool_allocator::initialize): Use the underlying class.
3756 (pool_allocator::allocate): Likewise.
3757 (pool_allocator::remove): Likewise.
3758 (operator new): A new generic allocator.
3759 * asan.c (struct asan_mem_ref): Remove unused members.
3760 (asan_mem_ref_new): Replace new operator with
3761 object_allocator::allocate.
3762 (free_mem_ref_resources): Change deallocation.
3763 * cfg.c (initialize_original_copy_tables): Replace pool_allocator
3764 with object_allocator.
3765 * config/sh/sh.c (add_constant): Replace new operator with
3766 object_allocator::allocate.
3767 (sh_reorg): Change call to a release method.
3768 * cselib.c (struct elt_list): Remove unused members.
3769 (new_elt_list): Replace new operator with
3770 object_allocator::allocate.
3771 (new_elt_loc_list): Likewise.
3772 (new_cselib_val): Likewise.
3773 (unchain_one_elt_list): Change delete operator with remove method.
3774 (unchain_one_elt_loc_list): Likewise.
3775 (unchain_one_value): Likewise.
3776 (cselib_finish): Release newly added static allocators.
3777 * cselib.h (struct cselib_val): Remove unused members.
3778 (struct elt_loc_list): Likewise.
3779 * df-problems.c (df_chain_alloc): Replace pool_allocator with
3780 object_allocator.
3781 * df-scan.c (struct df_scan_problem_data): Likewise.
3782 (df_scan_alloc): Likewise.
3783 * df.h (struct dataflow): Likewise.
3784 * dse.c (struct read_info_type): Likewise.
3785 (struct insn_info_type): Likewise.
3786 (struct dse_bb_info_type): Likewise.
3787 (struct group_info): Likewise.
3788 (struct deferred_change): Likewise.
3789 (get_group_info): Likewise.
3790 (delete_dead_store_insn): Likewise.
3791 (free_read_records): Likewise.
3792 (replace_read): Likewise.
3793 (check_mem_read_rtx): Likewise.
3794 (scan_insn): Likewise.
3795 (dse_step1): Likewise.
3796 (dse_step7): Likewise.
3797 * et-forest.c (struct et_occ): Remove unused members.
3798 (et_new_occ): Use allocate instead of new operator.
3799 (et_new_tree): Likewise.
3800 (et_free_tree): Call release method explicitly.
3801 (et_free_tree_force): Likewise.
3802 (et_free_pools): Likewise.
3803 (et_split): Use remove instead of delete operator.
3804 * et-forest.h (struct et_node): Remove unused members.
3805 * ipa-cp.c: Change pool_allocator to object_allocator.
3806 * ipa-inline-analysis.c: Likewise.
3807 * ipa-profile.c: Likewise.
3808 * ipa-prop.c: Likewise.
3809 * ipa-prop.h: Likewise.
3810 * ira-build.c (initiate_cost_vectors): Cast return value.
3811 (ira_allocate_cost_vector): Likewise.
3812 * ira-color.c (struct update_cost_record): Remove unused members.
3813 * lra-int.h (struct lra_live_range): Likewise.
3814 (struct lra_copy): Likewise.
3815 (struct lra_insn_reg): Likewise.
3816 * lra-lives.c (lra_live_ranges_finish): Release new static allocator.
3817 * lra.c (new_insn_reg): Replace new operator with allocate method.
3818 (free_insn_regs): Same for operator delete.
3819 (finish_insn_regs): Release new static allocator.
3820 (finish_insn_recog_data): Likewise.
3821 (lra_free_copies): Replace delete operator with remove method.
3822 (lra_create_copy): Replace operator new with allocate method.
3823 (invalidate_insn_data_regno_info): Same for remove method.
3824 * regcprop.c (struct queued_debug_insn_change): Remove unused members.
3825 (free_debug_insn_changes): Replace delete operator with remove method.
3826 (replace_oldest_value_reg): Replace operator new with allocate method.
3827 (pass_cprop_hardreg::execute): Release new static variable.
3828 * sched-deps.c (sched_deps_init): Change pool_allocator to
3829 object_allocator.
3830 * sel-sched-ir.c: Likewise.
3831 * sel-sched-ir.h: Likewise.
3832 * stmt.c (expand_case): Likewise.
3833 (expand_sjlj_dispatch_table): Likewise.
3834 * tree-sra.c (struct access): Remove unused members.
3835 (struct assign_link): Likewise.
3836 (sra_deinitialize): Release newly added static pools.
3837 (create_access_1):Replace operator new with allocate method.
3838 (build_accesses_from_assign): Likewise.
3839 (create_artificial_child_access): Likewise.
3840 * tree-ssa-math-opts.c (pass_cse_reciprocals::execute): Change
3841 pool_allocator to object_allocator.
3842 * tree-ssa-pre.c: Likewise.
3843 * tree-ssa-reassoc.c: Likewise.
3844 * tree-ssa-sccvn.c (allocate_vn_table): Likewise.
3845 * tree-ssa-strlen.c: Likewise.
3846 * tree-ssa-structalias.c: Likewise.
3847 * var-tracking.c (onepart_pool_allocate): New function.
3848 (unshare_variable): Use the newly added function.
3849 (variable_merge_over_cur): Likewise.
3850 (variable_from_dropped): Likewise.
3851 (variable_was_changed): Likewise.
3852 (set_slot_part): Likewise.
3853 (emit_notes_for_differences_1): Likewise.
3854 (vt_finalize): Release newly added static pools.
3855
3856 2015-07-16 Martin Jambor <mjambor@suse.cz>
3857
3858 * ipa-prop.h (param_aa_status): Rename to ipa_param_aa_status. Adjust
3859 all uses. Fix two typos in its general comment.
3860 (func_body_info): Rename to ipa_func_body_info. Adjust all uses.
3861
3862 2015-07-16 Ilya Enkovich <enkovich.gnu@gmail.com>
3863
3864 * config/i386/linux-common.h (LINK_MPX): New.
3865 (MPX_SPEC): Use LINK_MPX instead of %(link_mpx).
3866 * configure.ac: Add HAVE_LD_BNDPLT_SUPPORT macro
3867 indicating '-z bndplt' support by linker.
3868 * configure: Regenerate.
3869 * config.in: Regenerate.
3870
3871 2015-07-16 Richard Biener <rguenther@suse.de>
3872
3873 * fold-const.c (fold_widened_comparison): Remove.
3874 (fold_sign_changed_comparison): Likewise.
3875 (fold_comparison): Move widened and sign-changed comparison
3876 simplification ...
3877 * match.pd: ... to patterns here.
3878 * generic-match-head.c: Include target.h.
3879 * gimple-match-head.c: Likewise.
3880
3881 2015-07-16 Richard Biener <rguenther@suse.de>
3882
3883 * tree-ssa-dom.c (dom_valueize): New function.
3884 (record_temporary_equivalences): Also record equivalences
3885 for dominating stmts that have uses of equivalences we are
3886 about to record.
3887
3888 2015-07-16 Bin Cheng <bin.cheng@arm.com>
3889
3890 * tree-ssa-loop-ivopts.c (add_candidate): Remove call to
3891 add_autoinc_candidates.
3892 (add_iv_candidate_for_biv): Rename to add_iv_candidate_for_biv.
3893 (add_iv_candidate_for_biv): Rename from add_iv_candidate_for_biv.
3894 (add_old_ivs_candidates): Rename to add_iv_candidate_for_bivs.
3895 (add_iv_candidate_for_bivs): Rename from add_old_ivs_candidates.
3896 Call new function.
3897 (add_iv_value_candidates): Rename to add_iv_candidate_for_use.
3898 (add_iv_candidate_for_use): Rename from add_iv_value_candidates.
3899 Remove parameter struct iv*. Call add_autoinc_candidates here.
3900 (add_derived_ivs_candidates): Rename to add_iv_candidate_for_uses.
3901 (add_iv_candidate_for_uses): Rename from add_derived_ivs_candidates.
3902 Call new function.
3903 (find_iv_candidates): Call new functions.
3904
3905 2015-07-16 Sandra Loosemore <sandra@codesourcery.com>
3906
3907 * config/nios2/nios2.c (nios2_emit_stack_limit_check): Fix
3908 uninitialized-variable warning.
3909
3910 2015-07-16 Kaz Kojima <kkojima@gcc.gnu.org>
3911
3912 PR target/65249
3913 * config/sh/sh.md (movdi): Split simple reg move to two movsi
3914 when the destination is R0.
3915
3916 2015-07-16 Uros Bizjak <ubizjak@gmail.com>
3917
3918 PR target/66866
3919 * config/i386/i386-protos.h (ix86_expand_pextr): New prototype.
3920 * config/i386/i386.c (ix86_expand_pextr): New function.
3921 (ix86_expand_pinsr): Handle V1TI and TI modes. Call ix86_expand_pextr
3922 for non-lowpart subregs.
3923 * config/i386/i386.md (extzv<mode>): Expand with ix86_expand_pextr.
3924 (insv<mode>): Use SWI248 mode iterator.
3925 (insv<mode>_1): Ditto.
3926
3927 2015-07-15 Aditya Kumar <aditya.k7@samsung.com>
3928 Sebastian Pop <s.pop@samsung.com>
3929
3930 * graphite-sese-to-poly.c (rewrite_cross_bb_scalar_deps): Point
3931 iterator to use_stmt.
3932
3933 2015-07-15 Aditya Kumar <aditya.k7@samsung.com>
3934 Sebastian Pop <s.pop@samsung.com>
3935
3936 * graphite-scop-detection.c (build_scops_1): Discard scops for
3937 which entry==exit.
3938
3939 2015-07-15 Aditya Kumar <aditya.k7@samsung.com>
3940 Sebastian Pop <s.pop@samsung.com>
3941
3942 * graphite-scop-detection.c (stmt_simple_for_scop_p): Bail out in
3943 case of a return statement in scop.
3944
3945 2015-07-15 Aditya Kumar <aditya.k7@samsung.com>
3946 Sebastian Pop <s.pop@samsung.com>
3947
3948 * graphite-sese-to-poly.c (parameter_index_in_region): Only handle
3949 INTEGER_TYPE parameters.
3950 (scan_tree_for_params): Handle REAL_CST, COMPLEX_CST, and
3951 VECTOR_CST in scan_tree_for_params.
3952 (add_conditions_to_domain): Only constrain on INTEGER_TYPE.
3953
3954 2015-07-15 Andrew MacLeod <amacleod@redhat.com>
3955
3956 * gimple-pretty-print.h: Don't include pretty-print.h.
3957 * tree-streamer.h: Don't include lto-streamer.h.
3958 * gimple-streamer.h: Include tree-streamer.h rather than lto-streamer.h.
3959 * gimple-streamer-in.c: Remove redundant includes.
3960 * gimple-streamer-out.c: Likewise.
3961 * ipa-devirt.c: Likewise.
3962 * ipa-icf.c: Likewise.
3963 * ipa-inline-analysis.c: Likewise.
3964 * ipa-polymorphic-call.c: Likewise.
3965 * ipa-profile.c: Likewise.
3966 * ipa-prop.c: Likewise.
3967 * ipa-pure-const.c: Likewise.
3968 * lto-cgraph.c: Likewise.
3969 * lto-streamer-in.c: Likewise.
3970 * lto-streamer-out.c: Likewise.
3971 * lto-streamer.c: Likewise.
3972 * tree-streamer-in.c: Likewise.
3973 * tree-streamer-out.c: Likewise.
3974 * tree-streamer.c: Likewise.
3975
3976 2015-07-15 Andrew MacLeod <amacleod@redhat.com>
3977
3978 * opth-gen.awk: Check for UNKNOWN_LOCATION rather than GCC_TM_H, don't
3979 include input.h.
3980 * opts.c: Remove multiline #include comment.
3981
3982 2015-07-15 Nathan Sidwell <nathan@codesourcery.com>
3983
3984 * config/nvptx/mkoffload.c (process): Add C++ protection to
3985 emitted code.
3986
3987 2015-07-14 Michael Meissner <meissner@linux.vnet.ibm.com>
3988
3989 PR target/66854
3990 * config/rs6000/rs6000.c (rs6000_pass_by_reference): Move test for
3991 null before IEEE 128-bit floating point support patch.
3992
3993 2015-07-15 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
3994
3995 * simplify-rtx.c (simplify_ternary_operation): Add simplification
3996 for (!c) != {0,...,0} ? a : b for vector modes.
3997
3998 2015-07-15 Paolo Bonzini <bonzini@gnu.org>
3999 Martin Jambor <mjambor@suse.cz>
4000
4001 * ipa-inline-analysis.c (unmodified_parm_or_parm_agg_item): Accept
4002 struct func_body_info* instead of struct ipa_node_params*, expecting
4003 fbi->info to be filled in. Replace throughout. Adjust call to
4004 ipa_load_from_parm_agg.
4005 (set_cond_stmt_execution_predicate): Accept struct func_body_info*
4006 instead of struct ipa_node_params*. Adjust calls to other functions
4007 so that they pass either fbi or fbi->info.
4008 (set_switch_stmt_execution_predicate): Likewise.
4009 (will_be_nonconstant_predicate): Likewise.
4010 (compute_bb_predicates): Likewise.
4011 (estimate_function_body_sizes): Move asserts earlier. Fill in
4012 struct func_body_info, replace parms_info with fbi.info. Adjust
4013 calls to functions that now accept struct func_body_info.
4014 * ipa-prop.c (param_aa_status, struct ipa_bb_info): Move to ipa-prop.h.
4015 (struct func_body_info): Likewise.
4016 (ipa_load_from_parm_agg_1): Rename to ipa_load_from_parm_agg,
4017 remove static. Adjust callers.
4018 (ipa_load_from_parm_agg): Remove.
4019 * ipa-prop.h (param_aa_status, ipa_bb_info): Move from ipa-prop.c.
4020 (func_body_info): Likewise.
4021 (ipa_load_from_parm_agg): Adjust prototype.
4022
4023 2015-07-12 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
4024
4025 * gensupport.c (rtx_handle_directive): Adjust.
4026 * read-rtl.c (apply_iterators): Take vector to add rtxs to
4027 instead of expr list rtx.
4028 (add_define_attr_for_define_subst): Likewise.
4029 (add_define_subst_attr): Likewise.
4030 (read_subst_mapping): Likewise.
4031 (read_rtx): Likewise.
4032 * rtl.h (read_rtx): Adjust.
4033
4034 2015-07-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
4035
4036 * config/aarch64/aarch64.md (*csinc2<mode>_insn): Use cinc mnemonic.
4037
4038 2015-07-15 Uros Bizjak <ubizjak@gmail.com>
4039
4040 PR target/58066
4041 * config/i386/i386.md (*tls_global_dynamic_64_<mode>): Depend on SP_REG.
4042 (*tls_local_dynamic_base_64_<mode>): Ditto.
4043 (*tls_local_dynamic_base_64_largepic): Ditto.
4044 (tls_global_dynamic_64_<mode>): Update expander pattern.
4045 (tls_local_dynamic_base_64_<mode>): Ditto.
4046
4047 2015-07-15 Richard Biener <rguenther@suse.de>
4048
4049 * fold-const.c (fold_binary_loc): Move bool_var != 0 -> bool_var
4050 and bool_var == 1 -> bool_var simplifications ...
4051 * match.pd: ... to patterns here. Factor out negate_expr_p
4052 cases from the A - B -> A + (-B) patterns as negate_expr_p
4053 predicate and add a -(A + B) -> (-B) - A pattern.
4054
4055 2015-07-15 Robert Suchanek <robert.suchanek@imgtec.com>
4056
4057 * config/mips/mips.c (mips_emit_save_slot_move): Fix typo.
4058
4059 2015-07-15 Matthew Fortune <matthew.fortune@imgtec.com>
4060 Robert Suchanek <robert.suchanek@imgtec.com>
4061
4062 * config/mips/mips.c (mips_int_mask): New enum.
4063 (mips_shadow_set): Likewise.
4064 (int_mask): New variable.
4065 (use_shadow_register_set_p): Change type to enum mips_shadow_set.
4066 (machine_function): Add int_mask and use_shadow_register_set.
4067 (mips_attribute_table): Add attribute handlers for interrupt and
4068 use_shadow_register_set.
4069 (mips_interrupt_mask): New static function.
4070 (mips_handle_interrupt_attr): Likewise.
4071 (mips_handle_use_shadow_register_set_attr): Likewise.
4072 (mips_use_shadow_register_set): Change return type to enum
4073 mips_shadow_set. Add argument handling for use_shadow_register_set
4074 attribute.
4075 (mips_interrupt_extra_called_saved_reg_p): Update the conditional to
4076 compare with mips_shadow_set enum.
4077 (mips_compute_frame_info): Add interrupt mask and
4078 use_shadow_register_set to per-function information structure.
4079 Add a stack slot for EPC unconditionally.
4080 (mips_expand_prologue): Compare use_shadow_register_set value
4081 with mips_shadow_set enum. Save EPC always in K1, clobber only K1 for
4082 masked interrupt register but in EIC mode use K0 and save Cause in K0.
4083 EPC saved and restored unconditionally. Use PMODE_INSN macro when
4084 copying the stack pointer from the shadow register set.
4085 * config/mips/mips.h (SR_IM0): New define.
4086 * config/mips/mips.md (mips_rdpgpr): Rename to...
4087 (mips_rdpgpr_<mode>): ...this. Use the Pmode iterator.
4088 * doc/extend.texi (Declaring Attributes of Functions): Document
4089 optional arguments for interrupt and use_shadow_register_set
4090 attributes.
4091
4092 2015-07-15 Robert Suchanek <robert.suchanek@imgtec.com>
4093
4094 * config/mips/mips.c (mips_compute_frame_info): Allow -mhard-float in
4095 interrupt attribute.
4096 (mips_expand_prologue): Disable the floating point unit in an ISR.
4097 * config/mips/mips.h (SR_COP1): New define.
4098
4099 2015-07-15 Richard Biener <rguenther@suse.de>
4100
4101 * genmatch.c (parser::peek, parser::peek_ident): Add argument
4102 to tell how many tokens to peek ahead (default 1).
4103 (parser::eat_token, parser::eat_ident): Return token consumed.
4104 (parser::parse_result): Parse new switch statement.
4105 * match.pd: Use case statements where appropriate.
4106
4107 2015-07-15 Uros Bizjak <ubizjak@gmail.com>
4108
4109 PR rtl-optimization/58066
4110 * calls.c (expand_call): Precompute register parameters before stack
4111 alignment is performed.
4112
4113 2015-07-15 Uros Bizjak <ubizjak@gmail.com>
4114
4115 PR rtl-optimization/66838
4116 * postreload.c (reload_cse_move2add): Also process
4117 CALL_INSN_FUNCTION_USAGE when resetting information of
4118 call-clobbered registers.
4119
4120 2015-07-14 Sandra Loosemore <sandra@codesourcery.com>
4121 Cesar Philippidis <cesar@codesourcery.com>
4122 Chung-Lin Tang <cltang@codesourcery.com>
4123
4124 * config/nios2/constraints.md (U, v): New constraints.
4125 * config/nios2/predicates.md (rdprs_dcache_operand): New.
4126 (ldstex_memory_operand): New.
4127 * config/nios2/sync.md: New file.
4128 * config/nios2/nios2.md (unspecv): Add new builtin function
4129 UNSPECV codes.
4130 (rdprs, flushd, flushda, wrpie, eni): New patterns.
4131 (top-level): Include sync.md.
4132 * config/nios2/nios2.c (N2_FTYPES): Add function types for
4133 new builtins.
4134 (N2_BUILTINS): Add arch field setting, add new builtins.
4135 (enum nios2_builtin_code,nios2_builtins): Update N2_BUILTIN_DEF
4136 for arch field.
4137 (nios2_expand_ldst_builtin): Rename from nios2_expand_ldstio_builtin.
4138 Also handle ldex/stex/ldsex/stsex builtins.
4139 (nios2_expand_rdprs_builtin): New function.
4140 (nios2_expand_cache_builtin): New function.
4141 (nios2_expand_wrpie_builtin): New function.
4142 (nios2_expand_eni_builtin): New function.
4143 (nios2_expand_builtin): Add arch field handling and new builtin
4144 cases.
4145 * doc/extend.texi (Altera Nios II Built-in Functions): Document
4146 new builtins.
4147 * doc/md.texi (Machine Constraints): Document U and v constraints.
4148
4149 2015-07-14 Sandra Loosemore <sandra@codesourcery.com>
4150 Cesar Philippidis <cesar@codesourcery.com>
4151 Chung-Lin Tang <cltang@codesourcery.com>
4152
4153 * config/nios2/nios2-protos.h (nios2_expand_return): Declare.
4154 * config/nios2/nios2.c (struct GTY (()) machine_function): Add
4155 callee_save_reg_size and uses_anonymous_args fields.
4156 (nios2_compute_frame_layout): Update for CDX push.n/pop.n usage.
4157 (nios2_create_cfa_notes): New function.
4158 (nios2_adjust_stack): New function for adjusting stack.
4159 (nios2_expand_prologue): Update for CDX push.n/pop.n usage.
4160 Use nios2_adjust_stack.
4161 (nios2_expand_epilogue): Likewise.
4162 (nios2_expand_return): New function.
4163 (nios2_can_use_return_insn): Update for CDX pop.n usage.
4164 (nios2_setup_incoming_varargs): Set uses_anonymous_args flag.
4165 If TARGET_HAS_CDX, defer pushing regs to nios2_expand_prologue.
4166 * config/nios2/nios2.md (return): Use nios2_expand_return.
4167
4168 2015-07-14 Sandra Loosemore <sandra@codesourcery.com>
4169 Cesar Philippidis <cesar@codesourcery.com>
4170 Chung-Lin Tang <cltang@codesourcery.com>
4171
4172 * config/nios2/predicates.md (pop_operation): New.
4173 (ldwm_operation, stwm_operation): New.
4174 (nios2_hard_register_operand): New.
4175 * config/nios2/nios2-protos.h (pop_operation_p): Declare.
4176 (ldstwm_operation_p): Declare.
4177 (gen_ldstwm_peep): Declare.
4178 * config/nios2/nios2.c: (nios2_ldst_parallel): Declare.
4179 (base_reg_adjustment_p): New.
4180 (pop_operation_p): New.
4181 (CDX_LDSTWM_VALID_REGS_0, CDX_LDSTWM_VALID_REGS_1): Define.
4182 (nios2_ldstwm_regset_p): New.
4183 (ldstwm_operation_p): New.
4184 (gen_ldst): New.
4185 (nios2_ldst_parallel): New.
4186 (struct ldswm_operand): Declare.
4187 (compare_ldstwm_operands): New.
4188 (can_use_cdx_ldstw): New.
4189 (gen_ldstwm_peep): New.
4190 * config/nios2/nios2-ldstwm.sml: New.
4191 * config/nios2/nios2.md: Include ldstwm.md.
4192 * config/nios2/ldstwm.md: Generated.
4193
4194 2015-07-14 Sandra Loosemore <sandra@codesourcery.com>
4195 Cesar Philippidis <cesar@codesourcery.com>
4196 Chung-Lin Tang <cltang@codesourcery.com>
4197
4198 * config/nios2/nios2.h (LABEL_ALIGN): Define.
4199 (REG_ALLOC_ORDER): Define.
4200 (ADJUST_REG_ALLOC_ORDER): Define.
4201 (HONOR_REG_ALLOC_ORDER): Define.
4202 (CDX_REG_P): Define.
4203 (ANDCLEAR_INT): Define.
4204 * config/nios2/nios2-protos.h (nios2_add_insn_asm): Declare.
4205 (nios2_label_align): Declare.
4206 (nios2_cdx_narrow_form_p): Declare.
4207 (nios2_adjust_reg_alloc_order): Declare.
4208 * config/nios2/nios2.c (nios2_rtx_costs): Adjust for BMX zero-extract
4209 operation.
4210 (nios2_large_unspec_reloc_p): New function, split from...
4211 (nios2_legitimate_pic_operand_p): ...here.
4212 (nios2_emit_move_sequence): Add *high/*lo_sum constant expand code.
4213 (nios2_print_operand_punct_valid_p): New.
4214 (nios2_print_operand): Add %., %!, %x, %y, %A. Remove %U.
4215 (split_mem_address): New.
4216 (split_alu_insn): New.
4217 (cdxreg): New.
4218 (cdx_add_immed, cdx_and_immed, cdx_mov_immed, cdx_shift_immed): New.
4219 (enum nios2_add_insn_kind): New.
4220 (nios2_add_insn_names, nios2_add_insn_narrow): New.
4221 (nios2_add_insn_classify): New.
4222 (nios2_add_insn_asm): New.
4223 (nios2_cdx_narrow_form_p): New.
4224 (label_align, min_labelno, max_labelno): New.
4225 (nios2_reorg): New.
4226 (nios2_label_align): New.
4227 (nios2_adjust_reg_alloc_order): New.
4228 (TARGET_PRINT_OPERAND_PUNCT_VALID_P): Define.
4229 (TARGET_MACHINE_DEPENDENT_REORG): Define.
4230 * config/nios2/constraints.md (P): New constraint.
4231 * config/nios2/predicates.md (const_and_operand): New.
4232 (and_operand): New.
4233 (stack_memory_operand): New.
4234 * config/nios2/nios2.md (SP_REGNO): Define stack pointer regno.
4235 (length): Update to use nios2_cdx_narrow_form_p().
4236 (type): Add new insn type values.
4237 (control, alu, st, ld, shift): Update insn reservations with
4238 new insn type values.
4239 (*high, *lo_sum): Define new insn patterns for constant generation.
4240 (movqi_internal, movhi_internal, movsi_internal): Reduce
4241 alternatives, update asm template to handle CDX variants, update
4242 type attributes.
4243 (zero_extendhisi2, zero_extendqi<mode>2): Add CDX variants to asm
4244 template, update type attributes.
4245 (extendhisi2, extendqi<mode>2): Likewise.
4246 (addsi3): Change to use function for asm string.
4247 (subsi3): Add CDX notation to asm template, update type attributes.
4248 (negsi3, one_cmplsi3): Likewise.
4249 (andsi3): New pattern, specialized from logical patterns.
4250 (<code>si3): Remove and case, combine alternatives, update asm
4251 template.
4252 (<shift_op>si3): Add CDX notation, update type attributes.
4253 (rotrsi3): Update type attribute.
4254 (*merge, extzv, insv): New insn patterns.
4255 (return): Change to define_expand.
4256 (simple_return): Add CDX notation, update type attributes.
4257 (indirect_jump): Add CDX notation.
4258 (jump): Update asm cases, update length attribute expression.
4259 (*call, *call_value, *sibcall, *sibcall_value): Add CDX variant.
4260 (nios2_cbranch): Update asm cases and length attribute expression
4261 to handle CDX variants.
4262 (nios2_cmp<code>): Update asm template.
4263 (nop): Add CDX notation, update type attributes.
4264 (trap): Add CDX notation.
4265 (ctrapsi4): Update asm cases and length attribute expression to
4266 handle CDX variant.
4267 * doc/md.texi (Machine Constraints): Document P constraint.
4268
4269 2015-07-14 Sandra Loosemore <sandra@codesourcery.com>
4270 Cesar Philippidis <cesar@codesourcery.com>
4271 Chung-Lin Tang <cltang@codesourcery.com>
4272
4273 * config/nios2/nios2.h (SMALL_INT12): New macro.
4274 * config/nios2/nios2.c (nios2_valid_addr_offset_p): New function.
4275 (nios2_valid_addr_expr_p): Use it.
4276 (nios2_symbol_ref_in_small_data_p): Disallow GP-relative addressing
4277 with implicit "io" instructions on R2.
4278 * config/nios2/constraints.md (w): New constraint.
4279 * config/nios2/predicates.md (ldstio_memory_operand): New.
4280 * config/nios2/nios2.md (ld<bhw_uns>io, ld<bh>io): Update memory
4281 operand predicate and constraint.
4282 (ld<bh>io_signed, st<bhw>io>): Likewise.
4283 * doc/md.texi (Machine Constraints): Document w constraint.
4284
4285 2015-07-14 Sandra Loosemore <sandra@codesourcery.com>
4286 Cesar Philippidis <cesar@codesourcery.com>
4287 Chung-Lin Tang <cltang@codesourcery.com>
4288
4289 * config/nios2/nios2.opt (march, mbmx, mcdx): New options.
4290 * config/nios2/nios2-opts.h (enum nios2_arch_type): New enum for
4291 Nios II architecture level.
4292 * config/nios2/nios2.h (TARGET_ARCH_R2): New define.
4293 (TARGET_CPU_CPP_BUILTINS): Add definition of __nios2_arch__ symbol.
4294 (OPTION_DEFAULT_SPECS): Define.
4295 (ASM_SPEC): Add -march= spec strings.
4296 * config/nios2/nios2.c (nios2_option_override): Check for
4297 conflicts involving new options.
4298 * config.gcc (nios2*-*-*): Support --with-arch=.
4299 * doc/invoke.texi (Option Summary, Nios II Options): Document
4300 -march=, -mbmx, and -mcdx.
4301
4302 2015-07-14 Vladimir Makarov <vmakarov@redhat.com>
4303
4304 PR rtl-optimization/66626
4305 * lra-constraints.c (lra_constraints): Prevent equivalence
4306 substitution for static chain pseudo in functions with nonlocal
4307 goto.
4308
4309 2015-07-14 Sandra Loosemore <sandra@codesourcery.com>
4310
4311 * config/nios2/nios2.c (TEMP_REG_NUM): Move define up in file.
4312 (nios2_emit_stack_limit_check): Add size parameter. Handle
4313 -fstack-limit-symbol as well as -fstack-limit-register.
4314 (nios2_expand_prologue): Emit only a single stack limit check,
4315 even if multiple stack adjustments are required.
4316 (nios2_option_override): Diagnose unsupported combination of -fpic
4317 and -stack-limit-symbol.
4318
4319 2015-07-14 H.J. Lu <hongjiu.lu@intel.com>
4320
4321 * Makefile.in (top_srcdir): New.
4322 * configure.ac: Use AM_ZLIB.
4323 * configure: Regeneated.
4324
4325 2015-07-14 Matthias Klose <doko@ubuntu.com>
4326
4327 PR target/66840
4328 * config/rs6000/t-rs6000 (TM_H): Add rs6000-cpus.def.
4329
4330 2015-07-14 Richard Biener <rguenther@suse.de>
4331
4332 PR tree-optimization/66863
4333 * tree-vrp.c (register_edge_assert_for_2): Properly restrict
4334 what we record for conversion use stmt lhs inequalities.
4335
4336 2015-07-14 Richard Biener <rguenther@suse.de>
4337
4338 * genmatch.c (dt_node::gen_kids_1): Fix case label indenting.
4339 (decision_tree::gen_gimple): Likewise.
4340
4341 2015-07-14 Tom de Vries <tom@codesourcery.com>
4342
4343 * gcc.c (greater_than_spec_func): Declare forward.
4344 (LINK_COMMAND_SPEC, GOMP_SELF_SPECS): Use gt to ignore
4345 -ftree-parallelize-loops={0,1}.
4346 (static_spec_functions): Add greater_than_spec_func function with name
4347 "gt".
4348 (greater_than_spec_func): New function.
4349
4350 2015-07-14 Richard Biener <rguenther@suse.de>
4351
4352 * tree-ssa-dom.c (record_temporary_equivalences): Merge
4353 wideing type conversion case from record_equivalences_from_incoming_edge
4354 and use record_equality to record equivalences.
4355 (record_equivalences_from_incoming_edge): Call
4356 record_temporary_equivalences.
4357
4358 2015-07-14 Richard Biener <rguenther@suse.de>
4359
4360 * genmatch.c (struct operand): Add OP_IF and OP_WITH op_types.
4361 (struct if_expr): New.
4362 (struct with_expr): Likewise.
4363 (is_a_helper): Add helpers for if_expr and with_expr.
4364 (struct simplify): Add simplify_kind enum and member. Remove
4365 ifexpr_vec member.
4366 (simplify::simplify): Adjust.
4367 (lower_commutative): Adjust.
4368 (lower_opt_convert): Likewise.
4369 (lower_cond): Likewise.
4370 (replace_id): Handle with_expr and if_expr.
4371 (lower_for): Adjust.
4372 (dt_simplify::gen_1): New recursive worker, split out from ...
4373 (dt_simplify::gen): ... here. Deal with if and with expansion
4374 recursively.
4375 (capture_info::capture_info): Take context argument
4376 (capture_info::walk_result): Only analyze specific result.
4377 (parser::parse_result): New function.
4378 (parser::parse_simplify): Adjust to parse ifs with then end
4379 else case.
4380 (parser::parse_if): Simplify.
4381 (parser::parse_pattern): Pass down simplify kind.
4382 * match.pd: Convert if structure to new syntax.
4383
4384 2015-07-13 Marek Polacek <polacek@redhat.com>
4385
4386 * rtl.c (rtx_equal_p_cb): Fix typo.
4387
4388 2015-07-13 Andrew MacLeod <amacleod@redhat.com>
4389
4390 * omega.h: Don't include config.h, don't include params.h again if
4391 omega.h has already been included.
4392 * graphite-poly.h: Include sese.h.
4393 * graphite.c: Don't include sese.h, remove needless includes and
4394 minimize includes outside #ifdef HAVE_isl block.
4395 * graphite-blocking.c: Don't include sese.h, remove needless includes,
4396 and wrap entire file in #ifdef HAVE_isl
4397 * graphite-dependences.c: Likewise.
4398 * graphite-interchange.c: Likewise.
4399 * graphite-isl-ast-to-gimple.c: Likewise.
4400 * graphite-optimize-isl.c: Likewise.
4401 * graphite-poly.c: Likewise.
4402 * graphite-scop-detection.c: Likewise.
4403 * graphite-sese-to-poly.c: Likewise.
4404
4405 2015-07-13 Tom de Vries <tom@codesourcery.com>
4406
4407 * omp-low.c (build_receiver_ref): Mark *.omp_data_i as non-trapping.
4408
4409 2015-07-13 Renlin Li <renlin.li@arm.com>
4410
4411 PR rtl/66556
4412 * simplify-rtx.c (simplify_const_relational_operation): Add
4413 side_effects_p checks.
4414
4415 2015-07-12 Aldy Hernandez <aldyh@redhat.com>
4416
4417 * bitmap.h: Fix double word typos.
4418 * builtins.c: Same.
4419 * calls.c: Same.
4420 * cfgloopmanip.c: Same.
4421 * cgraph.c: Same.
4422 * cgraph.h: Same.
4423 * cgraphclones.c: Same.
4424 * combine.c: Same.
4425 * config/aarch64/aarch64-protos.h: Same.
4426 * config/aarch64/aarch64.c: Same.
4427 * config/aarch64/aarch64.md: Same.
4428 * config/arm/arm.md: Same.
4429 * config/arm/arm1020e.md: Same.
4430 * config/arm/arm1026ejs.md: Same.
4431 * config/arm/arm926ejs.md: Same.
4432 * config/arm/fa526.md: Same.
4433 * config/arm/fa606te.md: Same.
4434 * config/arm/fa626te.md: Same.
4435 * config/arm/fa726te.md: Same.
4436 * config/arm/fmp626.md: Same.
4437 * config/darwin.c: Same.
4438 * config/epiphany/epiphany.c: Same.
4439 * config/frv/frv.c: Same.
4440 * config/ft32/ft32.c: Same.
4441 * config/gnu-user.h: Same.
4442 * config/h8300/constraints.md: Same.
4443 * config/i386/i386.c: Same.
4444 * config/i386/i386.md: Same.
4445 * config/iq2000/iq2000.md: Same.
4446 * config/mips/mips.c: Same.
4447 * config/mmix/mmix.md: Same.
4448 * config/moxie/moxie.c: Same.
4449 * config/nds32/nds32.md: Same.
4450 * config/pa/pa.h: Same.
4451 * config/rs6000/aix.h: Same.
4452 * config/rs6000/rs6000.h: Same.
4453 * config/sh/sh.c: Same.
4454 * config/tilegx/tilegx.md: Same.
4455 * config/tilepro/gen-mul-tables.cc: Same.
4456 * cse.c: Same.
4457 * dbxout.c: Same.
4458 * doc/invoke.texi: Same.
4459 * dse.c: Same.
4460 * dwarf2out.c: Same.
4461 * final.c: Same.
4462 * gcc.c: Same.
4463 * genmatch.c: Same.
4464 * gimplify.c: Same.
4465 * hash-table.h: Same.
4466 * internal-fn.c: Same.
4467 * ipa-cp.c: Same.
4468 * ipa-devirt.c: Same.
4469 * ipa-icf.c: Same.
4470 * ipa-icf.h: Same.
4471 * ipa-profile.c: Same.
4472 * ipa-prop.c: Same.
4473 * ipa-prop.h: Same.
4474 * ira.c: Same.
4475 * omp-low.c: Same.
4476 * reg-stack.c: Same.
4477 * regcprop.c: Same.
4478 * reorg.c: Same.
4479 * rtl.h: Same.
4480 * sbitmap.h: Same.
4481 * tree-eh.c: Same.
4482 * tree-inline.c: Same.
4483 * tree-sra.c: Same.
4484 * tree-ssa-dom.c: Same.
4485 * tree-ssa-loop-ivopts.c: Same.
4486 * tree-ssa-structalias.c: Same.
4487 * tree-ssa-tail-merge.c: Same.
4488 * tree-ssa-ter.c: Same.
4489 * tree-ssa-threadupdate.c: Same.
4490 * tree-ssa-uninit.c: Same.
4491 * tree-ssanames.c: Same.
4492 * tree-vect-loop-manip.c: Same.
4493 * tree-vrp.c: Same.
4494 * tree.c: Same.
4495 * valtrack.c: Same.
4496 * vec.h: Same.
4497
4498 2015-07-12 Kugan Vivekanandarajah <kuganv@linaro.org>
4499
4500 PR middle-end/66726
4501 * tree-ssa-phiopt.c(factor_out_conditional_conversion): New function.
4502 tree_ssa_phiopt_worker): Call it.
4503
4504 2015-07-12 Kugan Vivekanandarajah <kuganv@linaro.org>
4505
4506 * cse.c (cse_insn): Calculate src_eqv for ZERO_EXTRACT.
4507 * emit-rtl.c (set_for_reg_notes): Allow ZERO_EXTRACT to set
4508 REG_EQUAL note.
4509
4510 2015-07-11 Marek Polacek <polacek@redhat.com>
4511
4512 PR middle-end/66353
4513 * basic-block.h (has_abnormal_call_or_eh_pred_edge_p): New function.
4514 * ira-lives.c (bb_has_abnormal_call_pred): Remove function.
4515 (process_bb_node_lives): Call has_abnormal_call_or_eh_pred_edge_p
4516 rather than bb_has_abnormal_call_pred.
4517 * lra-lives.c (bb_has_abnormal_call_pred): Remove function.
4518 (process_bb_lives): Call has_abnormal_call_or_eh_pred_edge_p
4519 rather than bb_has_abnormal_call_pred.
4520
4521 2015-07-10 Anatoly Sokolov <aesok@post.ru>
4522
4523 * config/v850/v850.h (REG_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P,
4524 REG_OK_FOR_BASE_P_STRICT, REG_OK_FOR_INDEX_P_STRICT, STRICT,
4525 RTX_OK_FOR_BASE_P, GO_IF_LEGITIMATE_ADDRESS): Remove macros.
4526 * config/v850/v850.c (v850_reg_ok_for_base_, v850_rtx_ok_for_base_p,
4527 v850_legitimate_address_p): New functions.
4528 (TARGET_ADDR_SPACE_LEGITIMATE_ADDRESS_P): Define.
4529
4530 2015-07-10 H.J. Lu <hongjiu.lu@intel.com>
4531
4532 PR target/66819
4533 * config/i386/i386.c (ix86_function_ok_for_sibcall): Allow
4534 indirect sibcall with register arguments if register available
4535 for argument passing.
4536 (init_cumulative_args): Set cfun->machine->arg_reg_available
4537 to (cum->nregs > 0) or to true if function has a variable
4538 argument list.
4539 (function_arg_advance_32): Set cfun->machine->arg_reg_available
4540 to false if cum->nregs <= 0.
4541 * config/i386/i386.h (machine_function): Add arg_reg_available.
4542
4543 2015-07-10 Uros Bizjak <ubizjak@gmail.com>
4544
4545 * config/i386/sse.md (movdi_to_sse): Use gen_lowpart
4546 and gen_higpart instead of gen_rtx_SUBREG.
4547 * config/i386/i386.md
4548 (floatdi<X87MODEF:mode>2_i387_with_xmm splitter): Ditto.
4549 (read-modify peephole2): Use gen_lowpart instead of
4550 gen_rtx_SUBREG for operand 5.
4551
4552 2015-07-10 Andrew MacLeod <amacleod@redhat.com>
4553
4554 * config/tilepro/gen-mul-tables.cc (main): Change include list for
4555 generated files.
4556 * config/tilepro/mul-tables.c: Regenerate.
4557 * config/tilegx/mul-tables.c: Regenerate.
4558
4559 2015-07-10 Richard Biener <rguenther@suse.de>
4560
4561 * fold-const.c (distribute_bit_expr): Remove.
4562 (fold_binary_loc): Move simplifying (A & C1) + (B & C2)
4563 to (A & C1) | (B & C2), distributing (A & B) | (A & C)
4564 to A & (B | C) and simplifying A << C1 << C2 to ...
4565 * match.pd: ... patterns here.
4566
4567 2015-07-10 Jiong Wang <jiong.wang@arm.com>
4568
4569 * config/aarch64/aarch64.c (aarch64_load_symref_appropriately):
4570 Mark mem as READONLY and NOTRAP for PIC symbol.
4571
4572 2015-07-10 Andrew MacLeod <amacleod@redhat.com>
4573
4574 * gimple-predict.h: New file.
4575 (gimple_predict_predictor, gimple_predict_set_predictor,
4576 gimple_predict_outcome, gimple_predict_set_outcome,
4577 gimple_build_predict): Relocate here.
4578 * gimple.h (gimple_predict_predictor, gimple_predict_set_predictor,
4579 gimple_predict_outcome, gimple_predict_set_outcome): Move to
4580 gimple-predict.h.
4581 * gimple.c (gimple_build_predict): Move to gimple-predict.h
4582 * basic-block.h: Don't include cfghooks.h.
4583 * backend.h: Don't include predict.h.
4584 * cfghooks.h: Include predict.h.
4585 * gimple-pretty-print.c: Include gimple-predict.h.
4586 * gimplify.c: Likwise.
4587 * predict.c: Adjust includes.
4588 * tree-inline.c: Likewise.
4589 * asan.c: Likewise.
4590 * auto-inc-dec.c: Likewise.
4591 * auto-profile.c: Likewise.
4592 * bb-reorder.c: Likewise.
4593 * builtins.c: Likewise.
4594 * caller-save.c: Likewise.
4595 * calls.c: Likewise.
4596 * cfganal.c: Likewise.
4597 * cfgbuild.c: Likewise.
4598 * cfg.c: Likewise.
4599 * cfgcleanup.c: Likewise.
4600 * cfgexpand.c: Likewise.
4601 * cfghooks.c: Likewise.
4602 * cfgloopanal.c: Likewise.
4603 * cfgloop.c: Likewise.
4604 * cfgloopmanip.c: Likewise.
4605 * cfgrtl.c: Likewise.
4606 * cgraph.c: Likewise.
4607 * cgraphunit.c: Likewise.
4608 * combine.c: Likewise.
4609 * cprop.c: Likewise.
4610 * cse.c: Likewise.
4611 * dce.c: Likewise.
4612 * dojump.c: Likewise.
4613 * dse.c: Likewise.
4614 * except.c: Likewise.
4615 * expmed.c: Likewise.
4616 * expr.c: Likewise.
4617 * final.c: Likewise.
4618 * fold-const.c: Likewise.
4619 * function.c: Likewise.
4620 * fwprop.c: Likewise.
4621 * gcc-plugin.h: Likewise.
4622 * gcse.c: Likewise.
4623 * genattrtab.c: Likewise.
4624 * genemit.c: Likewise.
4625 * gengtype.c: Likewise.
4626 * genopinit.c: Likewise.
4627 * genoutput.c: Likewise.
4628 * genpreds.c: Likewise.
4629 * genrecog.c: Likewise.
4630 * gimple-fold.c: Likewise.
4631 * gimple-iterator.c: Likewise.
4632 * gimple-ssa-isolate-paths.c: Likewise.
4633 * gimple-ssa-strength-reduction.c: Likewise.
4634 * graph.c: Likewise.
4635 * graphite-blocking.c: Likewise.
4636 * graphite.c: Likewise.
4637 * graphite-dependences.c: Likewise.
4638 * graphite-interchange.c: Likewise.
4639 * graphite-isl-ast-to-gimple.c: Likewise.
4640 * graphite-optimize-isl.c: Likewise.
4641 * graphite-poly.c: Likewise.
4642 * graphite-scop-detection.c: Likewise.
4643 * graphite-sese-to-poly.c: Likewise.
4644 * haifa-sched.c: Likewise.
4645 * ifcvt.c: Likewise.
4646 * internal-fn.c: Likewise.
4647 * ipa-cp.c: Likewise.
4648 * ipa-profile.c: Likewise.
4649 * ipa-split.c: Likewise.
4650 * ipa-utils.c: Likewise.
4651 * ira-build.c: Likewise.
4652 * ira-color.c: Likewise.
4653 * ira-conflicts.c: Likewise.
4654 * ira-costs.c: Likewise.
4655 * ira-emit.c: Likewise.
4656 * ira-lives.c: Likewise.
4657 * jump.c: Likewise.
4658 * loop-doloop.c: Likewise.
4659 * loop-init.c: Likewise.
4660 * loop-invariant.c: Likewise.
4661 * loop-unroll.c: Likewise.
4662 * lower-subreg.c: Likewise.
4663 * lra-assigns.c: Likewise.
4664 * lra.c: Likewise.
4665 * lra-coalesce.c: Likewise.
4666 * lra-constraints.c: Likewise.
4667 * lra-lives.c: Likewise.
4668 * lto-cgraph.c: Likewise.
4669 * lto-streamer-in.c: Likewise.
4670 * mode-switching.c: Likewise.
4671 * modulo-sched.c: Likewise.
4672 * omp-low.c: Likewise.
4673 * optabs.c: Likewise.
4674 * passes.c: Likewise.
4675 * postreload.c: Likewise.
4676 * postreload-gcse.c: Likewise.
4677 * profile.c: Likewise.
4678 * recog.c: Likewise.
4679 * regstat.c: Likewise.
4680 * reload1.c: Likewise.
4681 * reorg.c: Likewise.
4682 * rtlanal.c: Likewise.
4683 * sched-ebb.c: Likewise.
4684 * sel-sched-ir.c: Likewise.
4685 * sese.c: Likewise.
4686 * shrink-wrap.c: Likewise.
4687 * simplify-rtx.c: Likewise.
4688 * stmt.c: Likewise.
4689 * store-motion.c: Likewise.
4690 * tracer.c: Likewise.
4691 * trans-mem.c: Likewise.
4692 * tree-call-cdce.c: Likewise.
4693 * tree-cfg.c: Likewise.
4694 * tree-cfgcleanup.c: Likewise.
4695 * tree-chkp.c: Likewise.
4696 * tree-complex.c: Likewise.
4697 * tree-eh.c: Likewise.
4698 * tree-if-conv.c: Likewise.
4699 * tree-loop-distribution.c: Likewise.
4700 * tree-outof-ssa.c: Likewise.
4701 * tree-parloops.c: Likewise.
4702 * tree-predcom.c: Likewise.
4703 * tree-pretty-print.c: Likewise.
4704 * tree-profile.c: Likewise.
4705 * tree-sra.c: Likewise.
4706 * tree-ssa.c: Likewise.
4707 * tree-ssa-coalesce.c: Likewise.
4708 * tree-ssa-dce.c: Likewise.
4709 * tree-ssa-dom.c: Likewise.
4710 * tree-ssa-forwprop.c: Likewise.
4711 * tree-ssa-ifcombine.c: Likewise.
4712 * tree-ssa-loop-ch.c: Likewise.
4713 * tree-ssa-loop-im.c: Likewise.
4714 * tree-ssa-loop-ivcanon.c: Likewise.
4715 * tree-ssa-loop-ivopts.c: Likewise.
4716 * tree-ssa-loop-manip.c: Likewise.
4717 * tree-ssa-loop-prefetch.c: Likewise.
4718 * tree-ssa-loop-unswitch.c: Likewise.
4719 * tree-ssa-math-opts.c: Likewise.
4720 * tree-ssa-phiopt.c: Likewise.
4721 * tree-ssa-pre.c: Likewise.
4722 * tree-ssa-reassoc.c: Likewise.
4723 * tree-ssa-sink.c: Likewise.
4724 * tree-ssa-tail-merge.c: Likewise.
4725 * tree-ssa-threadedge.c: Likewise.
4726 * tree-ssa-threadupdate.c: Likewise.
4727 * tree-switch-conversion.c: Likewise.
4728 * tree-tailcall.c: Likewise.
4729 * tree-vect-data-refs.c: Likewise.
4730 * tree-vect-loop.c: Likewise.
4731 * tree-vect-loop-manip.c: Likewise.
4732 * tree-vectorizer.c: Likewise.
4733 * tree-vrp.c: Likewise.
4734 * ubsan.c: Likewise.
4735 * value-prof.c: Likewise.
4736 * varasm.c: Likewise.
4737 * var-tracking.c: Likewise.
4738 * config/aarch64/aarch64-builtins.c: Likewise.
4739 * config/aarch64/aarch64.c: Likewise.
4740 * config/aarch64/cortex-a57-fma-steering.c: Likewise.
4741 * config/alpha/alpha.c: Likewise.
4742 * config/arc/arc.c: Likewise.
4743 * config/arm/arm.c: Likewise.
4744 * config/avr/avr.c: Likewise.
4745 * config/bfin/bfin.c: Likewise.
4746 * config/c6x/c6x.c: Likewise.
4747 * config/cr16/cr16.c: Likewise.
4748 * config/cris/cris.c: Likewise.
4749 * config/darwin.c: Likewise.
4750 * config/darwin-c.c: Likewise.
4751 * config/epiphany/epiphany.c: Likewise.
4752 * config/epiphany/mode-switch-use.c: Likewise.
4753 * config/epiphany/resolve-sw-modes.c: Likewise.
4754 * config/fr30/fr30.c: Likewise.
4755 * config/frv/frv.c: Likewise.
4756 * config/ft32/ft32.c: Likewise.
4757 * config/h8300/h8300.c: Likewise.
4758 * config/i386/i386.c: Likewise.
4759 * config/i386/winnt.c: Likewise.
4760 * config/ia64/ia64.c: Likewise.
4761 * config/iq2000/iq2000.c: Likewise.
4762 * config/lm32/lm32.c: Likewise.
4763 * config/m32c/m32c.c: Likewise.
4764 * config/m32r/m32r.c: Likewise.
4765 * config/m68k/m68k.c: Likewise.
4766 * config/mcore/mcore.c: Likewise.
4767 * config/mep/mep.c: Likewise.
4768 * config/microblaze/microblaze.c: Likewise.
4769 * config/mips/mips.c: Likewise.
4770 * config/mmix/mmix.c: Likewise.
4771 * config/mn10300/mn10300.c: Likewise.
4772 * config/moxie/moxie.c: Likewise.
4773 * config/msp430/msp430.c: Likewise.
4774 * config/nds32/nds32.c: Likewise.
4775 * config/nds32/nds32-cost.c: Likewise.
4776 * config/nds32/nds32-fp-as-gp.c: Likewise.
4777 * config/nds32/nds32-intrinsic.c: Likewise.
4778 * config/nds32/nds32-isr.c: Likewise.
4779 * config/nds32/nds32-md-auxiliary.c: Likewise.
4780 * config/nds32/nds32-memory-manipulation.c: Likewise.
4781 * config/nds32/nds32-pipelines-auxiliary.c: Likewise.
4782 * config/nds32/nds32-predicates.c: Likewise.
4783 * config/nios2/nios2.c: Likewise.
4784 * config/nvptx/nvptx.c: Likewise.
4785 * config/pa/pa.c: Likewise.
4786 * config/pdp11/pdp11.c: Likewise.
4787 * config/rl78/rl78.c: Likewise.
4788 * config/rs6000/rs6000.c: Likewise.
4789 * config/rx/rx.c: Likewise.
4790 * config/s390/s390.c: Likewise.
4791 * config/sh/sh.c: Likewise.
4792 * config/sh/sh-mem.cc: Likewise.
4793 * config/sh/sh_optimize_sett_clrt.cc: Likewise.
4794 * config/sh/sh_treg_combine.cc: Likewise.
4795 * config/sparc/sparc.c: Likewise.
4796 * config/spu/spu.c: Likewise.
4797 * config/stormy16/stormy16.c: Likewise.
4798 * config/tilegx/tilegx.c: Likewise.
4799 * config/tilepro/tilepro.c: Likewise.
4800 * config/v850/v850.c: Likewise.
4801 * config/vax/vax.c: Likewise.
4802 * config/visium/visium.c: Likewise.
4803 * config/xtensa/xtensa.c: Likewise.
4804
4805 2015-07-10 Richard Biener <rguenther@suse.de>
4806
4807 * genmatch.c (dt_node::gen_kids_1): Fix indenting of case labels.
4808 (decision_tree::gen_gimple): Likewise.
4809 (decision_tree::gen_generic): Likewise.
4810
4811 2015-07-10 Uros Bizjak <ubizjak@gmail.com>
4812
4813 PR target/66813
4814 * config/i386/i386.c (ix86_md_asm_adjust): Emit movstrictqi
4815 sequence for TARGET_ZERO_EXTEND_WITH_AND targets.
4816
4817 2015-07-10 Jakub Jelinek <jakub@redhat.com>
4818
4819 PR middle-end/66820
4820 * gimplify.c (maybe_fold_stmt): Don't fold in ORT_PARALLEL
4821 or ORT_TASK contexts.
4822 * omp-low.c (lower_omp): Call fold_stmt even if taskreg_nesting_level
4823 is non-zero.
4824
4825 2015-07-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
4826
4827 * expr.c (expand_cond_expr_using_cmove): Fix typos in comment
4828 above function.
4829
4830 2015-07-10 Tom de Vries <tom@codesourcery.com>
4831
4832 * tree-parloops.c (try_transform_to_exit_first_loop_alt): If not found,
4833 insert nit + 1 bound.
4834
4835 2015-07-10 Richard Biener <rguenther@suse.de>
4836
4837 * tree-if-conv.c (if_convertible_gimple_assign_stmt_p):
4838 Use ifcvt_could_trap_p also when not flag_tree_loop_if_convert_stores.
4839 (if_convertible_loop_p_1): For this always compute bb predicates.
4840 (if_convertible_loop_p): And free them.
4841
4842 2015-07-10 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
4843
4844 * ipa-icf.c (sem_item_optimizer::do_congruence_step): Fix typo
4845 in dump message.
4846
4847 2015-07-10 Richard Biener <rguenther@suse.de>
4848
4849 PR tree-optimization/66823
4850 * tree-if-conv.c (memrefs_read_or_written_unconditionally): Fix
4851 inverted predicate.
4852
4853 2015-07-09 Steve Ellcey <sellcey@imgtec.com>
4854
4855 * config/mips/mti-linux.h (MIPS_SYSVERSION_SPEC): Update
4856 to handle mips[32|64]r3 and mips[32|64]r5.
4857
4858 2015-07-09 Jakub Jelinek <jakub@redhat.com>
4859
4860 PR middle-end/66633
4861 * tree-nested.c (get_static_chain): Or in a flag into
4862 info->static_chain_added.
4863 (get_frame_field, get_nonlocal_debug_decl): Likewise.
4864 (convert_nonlocal_omp_clauses, convert_local_omp_clauses): Revert
4865 2015-07-01 changes.
4866 (convert_tramp_reference_stmt): If a frame_decl or chain_decl
4867 is needed newly inside of GIMPLE_OMP_{PARALLEL,TASK,TARGET} body,
4868 add it to clauses.
4869
4870 PR tree-optimization/66718
4871 * tree-vect-stmts.c (struct simd_call_arg_info): Add simd_lane_linear
4872 field.
4873 (vect_simd_lane_linear): New function.
4874 (vectorizable_simd_clone_call): Support using linear arguments for
4875 addresses of arrays elements indexed by GOMP_SIMD_LANE result.
4876
4877 2015-07-09 H.J. Lu <hongjiu.lu@intel.com>
4878
4879 PR target/66821
4880 * config/i386/i386.c (iamcu_cost): Adjust variable shift costs.
4881
4882 2015-07-09 Michael Meissner <meissner@linux.vnet.ibm.com>
4883
4884 * config/rs6000/rs6000-protos.h (rs6000_secondary_reload_memory):
4885 Use machine mode, not enum machine_mode in the prototype.
4886
4887 * config/rs6000/rs6000.h (FLOAT128_IEEE_P): New helper macros to
4888 classify 128-bit floating point support.
4889 (FLOAT128_IBM_P): Likewise.
4890 (FLOAT128_VECTOR_P): Likewise.
4891 (FLOAT128_2REG_P): Likewise.
4892 (SCALAR_FLOAT_MODE_NOT_VECTOR_P): Likewise.
4893 (SLOW_UNALIGNED_ACCESS): Add IEEE 128-bit floating point support.
4894 (HARD_REGNO_CALLER_SAVE_MODE): Likewise.
4895 (HARD_REGNO_CALL_PART_CLOBBERED): Likewise.
4896
4897 * config/rs6000/rs6000.c (rs6000_hard_regno_nregs_internal): Drop
4898 tests against TFmode/TDmode, since those modes do not use VSX
4899 addresses.
4900 (rs6000_hard_regno_mode_ok): Add IEEE 128-bit floating point
4901 support.
4902 (rs6000_init_hard_regno_mode_ok): Use new helper macros instead of
4903 tests against TFmode, etc.
4904 (invalid_e500_subreg): Add tests against IFmode/KFmode.
4905 (reg_offset_addressing_ok_p): Likewise.
4906 (rs6000_legitimate_offset_address_p): Likewise.
4907 (rs6000_legitimize_address): Likewise.
4908 (rs6000_legitimize_reload_address): Likewise.
4909 (rs6000_legitimate_address_p): Clean up tests against TFmode and
4910 TDmode to use the new helper macros, which will include IFmode and
4911 KFmode.
4912 (rs6000_emit_move): Likewise.
4913 (rs6000_darwin64_record_arg_recurse): Likewise.
4914 (print_operand): Likewise.
4915 (rs6000_member_type_forces_blk): Treat IEEE 128-bit floating point
4916 that uses a single vector register as a vector and not as a
4917 floating point register in terms of the calling sequence.
4918 (rs6000_discover_homogeneous_aggregate): Likewise.
4919 (rs6000_return_in_memory): Likewise.
4920 (init_cumulative_args): Likewise.
4921 (rs6000_function_arg_boundary): Likewise.
4922 (rs6000_function_arg_advance_1): Likewise.
4923 (rs6000_function_arg): Likewise.
4924 (rs6000_pass_by_reference): Likewise.
4925 (rs6000_gimplify_va_arg): Likewise.
4926 (rs6000_secondary_reload_memory): Use machine_mode not enum
4927 machine mode.
4928 (rs6000_split_multireg_move): Use new helper macros.
4929 (spe_func_has_64bit_regs_p): Likewise.
4930 (rs6000_output_function_epilogue): Add IFmode/KFmode support.
4931 (output_toc): Use new helper macros.
4932 (rs6000_register_move_cost): Likewise.
4933 (rs6000_function_value): Add IEEE 128-bit floating point calling
4934 sequence support.
4935 (rs6000_libcall_value): Likewise.
4936 (rs6000_scalar_mode_supported_p): Add support for IEEE 128-bit
4937 floating point support.
4938 (rs6000_vector_mode_supported_p): Likewise.
4939
4940 2015-07-09 Vladimir Makarov <vmakarov@redhat.com>
4941
4942 PR rtl-optimization/66782
4943 * lra-int.h (struct lra_insn_recog_data): Add comment about
4944 clobbered hard regs for arg_hard_regs.
4945 * lra.c (lra_set_insn_recog_data): Add clobbered hard regs.
4946 * lra-lives.c (process_bb_lives): Process clobbered hard regs.
4947 Add condition for processing used hard regs.
4948 * lra-constraints.c (update_ebb_live_info, inherit_in_ebb):
4949 Process clobbered hard regs.
4950
4951 2015-07-09 Michael Matz <matz@suse.de>
4952
4953 * genmatch.c (fprintf_indent): New function.
4954 (operand::gen_transform): Add indent parameter.
4955 (expr::gen_transform, c_expr::gen_transform,
4956 capture::gen_transform): Ditto and use fprintf_indent.
4957 (dt_node::gen, dt_node::gen_kids, dt_node::gen_kids_1): Ditto.
4958 (dt_operand::gen, dt_operand::gen_predicate,
4959 dt_operand::gen_match_op, dt_operand::gen_gimple_expr,
4960 dt_operand::gen_generic_expr, dt_simplify::gen): Ditto.
4961 (decision_tree::gen_gimple): Adjust calls and indent generated
4962 code.
4963 (decision_tree::gen_generic): Ditto.
4964 (write_predicate): Ditto.
4965
4966 2015-07-08 Uros Bizjak <ubizjak@gmail.com>
4967
4968 PR target/66814
4969 * config/i386/predicates.md (nonimmediate_gr_operand): New predicate.
4970 * config/i386/i386.md (not peephole2): Use nonimmediate_gr_operand.
4971 (varous peephole2s): Use {GENERAL,SSE,MMX}_REGNO_P instead of
4972 {GENERAL,SSE,MMX}_REG_P where appropriate.
4973
4974 2015-07-09 Andrew MacLeod <amacleod@redhat.com>
4975
4976 * lto-streamer.h: Don't include target.h and alloc-pool.h.
4977 * builtins.c: Adjust includes.
4978 * gimple.c: Likewise.
4979 * ipa-icf.c: Likewise.
4980 * lto-opts.c: Likewise.
4981 * ipa-reference.c: Likewise.
4982 * lto-section-out.c: Likewise.
4983 * lto-streamer-in.c: Likewise.
4984 * lto-streamer-out.c: Likewise.
4985 * opts-global.c: Likewise.
4986 * symtab.c: Likewise.
4987 * tree-chkp.c: Likewise.
4988 * tree-ssa-live.c: Likewise.
4989 * tree-streamer-in.c: Likewise.
4990 * tree-streamer-out.c: Likewise.
4991 * config/darwin.c: Likewise.
4992 * config/i386/winnt.c: Likewise.
4993
4994 2015-07-09 Richard Biener <rguenther@suse.de>
4995
4996 * genmatch.c (struct expr): Add force_single_use flag.
4997 (expr::expr): Add copy constructor.
4998 (capture_info::walk_match): Gather force_single_use captures.
4999 (expr::gen_transform): Use possibly NULLified sequence.
5000 (dt_simplify::gen): Apply single-use restrictions by NULLifying
5001 seq if any constrained expr is not single-use.
5002 (parser::parse_expr): Refactor to allow multiple flags. Handle
5003 's' flag to force an expression have a single-use if the pattern
5004 simplifies to more than one statement.
5005 * match.pd: Convert most single_use conditionals to :s flags.
5006
5007 2015-07-09 H.J. Lu <hongjiu.lu@intel.com>
5008
5009 * config/i386/iamcu.h (ASM_OUTPUT_ALIGNED_BSS): New.
5010 (ASM_OUTPUT_MAX_SKIP_ALIGN): Likewise.
5011 (ASM_MAYBE_OUTPUT_ENCODED_ADDR_RTX): Likewise.
5012
5013 2015-07-09 Andrew MacLeod <amacleod@redhat.com>
5014
5015 * flags.h: Don't include flag-types.h or options.h.
5016 * opts-common.c: Adjust includes.
5017 * opts-global.c: Likewise.
5018 * common/config/epiphany/epiphany-common.c: Likewise.
5019
5020 2015-07-09 H.J. Lu <hongjiu.lu@intel.com>
5021
5022 PR target/66818
5023 * config/i386/i386.h (ATTRIBUTE_ALIGNED_VALUE): Defined to 32
5024 for IA MCU.
5025
5026 2015-07-09 H.J. Lu <hongjiu.lu@intel.com>
5027
5028 PR target/66817
5029 * config/i386/i386.c (ix86_return_in_memory): Return true
5030 if int_size_in_bytes returns negative for IA MCU.
5031
5032 2015-07-09 Marek Polacek <polacek@redhat.com>
5033
5034 PR tree-optimization/66718
5035 * Makefile.in (OBJS): Add gimple-laddress.o.
5036 * passes.def: Schedule pass_laddress.
5037 * timevar.def (DEFTIMEVAR): Add TV_GIMPLE_LADDRESS.
5038 * tree-pass.h (make_pass_laddress): Declare.
5039 * gimple-laddress.c: New file.
5040
5041 2015-07-09 Richard Biener <rguenther@suse.de>
5042
5043 * toplev.c (compile_file): Reset maximum_field_alignment after parsing.
5044
5045 2015-07-09 Richard Biener <rguenther@suse.de>
5046
5047 PR tree-optimization/66807
5048 * tree-chkp-opt.c (chkp_opt_fini): Free post dominator info.
5049
5050 2015-07-08 Kito Cheng <kito.cheng@gmail.com>
5051
5052 * function.c (stack_protect_epilogue): Use if rather than switch for
5053 check targetm.have_stack_protect_test.
5054
5055 2015-07-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
5056
5057 * defaults.h: Provide default for WORD_REGISTER_OPERATIONS.
5058 * config/alpha/alpha.h: Define WORD_REGISTER_OPERATIONS to 1.
5059 * config/arc/arc.h: Likewise.
5060 * config/arm/arm.h: Likewise.
5061 * config/bfin/bfin.h: Likewise.
5062 * config/epiphany/epiphany.h: Likewise.
5063 * config/frv/frv.h: Likewise.
5064 * config/ia64/ia64.h: Likewise.
5065 * config/iq2000/iq2000.h: Likewise.
5066 * config/lm32/lm32.h: Likewise.
5067 * config/m32r/m32r.h: Likewise.
5068 * config/mcore/mcore.h: Likewise.
5069 * config/mep/mep.h: Likewise.
5070 * config/microblaze/microblaze.h: Likewise.
5071 * config/mips/mips.h: Likewise.
5072 * config/mmix/mmix.h: Likewise.
5073 * config/mn10300/mn10300.h: Likewise.
5074 * config/nds32/nds32.h: Likewise.
5075 * config/nios2/nios2.h: Likewise.
5076 * config/pa/pa.h: Likewise.
5077 * config/rl78/rl78.h: Likewise.
5078 * config/sh/sh.h: Likewise.
5079 * config/sparc/sparc.h: Likewise.
5080 * config/stormy16/stormy16.h: Likewise.
5081 * config/tilegx/tilegx.h: Likewise.
5082 * config/tilepro/tilepro.h: Likewise.
5083 * config/v850/v850.h: Likewise.
5084 * config/xtensa/xtensa.h: Likewise.
5085 * doc/tm.texi: Regenerate.
5086 * doc/tm.texi.in: Adjust.
5087 * combine.c (simplify_set): Likewise.
5088 (simplify_comparison): Likewise.
5089 * expr.c (store_constructor): Likewise.
5090 * internal-fn.c (expand_arith_overflow): Likewise.
5091 * reload.c (push_reload): Likewise.
5092 (find_reloads): Likewise.
5093 (find_reloads_subreg_address): Likewise.
5094 * reload1.c (eliminate_regs_1): Likewise.
5095 * rtlanal.c (nonzero_bits1): Likewise.
5096 (num_sign_bit_copies1): Likewise.
5097 * simplify-rtx.c (simplify_truncation): Likewise.
5098
5099 2015-07-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
5100
5101 * auto-inc-dec.c (pass_inc_dec::execute): Don't check the value
5102 of AUTO_INC_DEC with the preprocessor.
5103 * combine.c (combine_instructions): Likewise.
5104 (can_combine_p): Likewise.
5105 (try_combine): Likewise.
5106 * emit-rtl.c (try_split): Likewise.
5107 * loop-invariant.c (calculate_loop_reg_pressure): Likewise.
5108 * lower-subreg.c (resolve_simple_move): Likewise.
5109 * lra.c (update_inc_notes): Likewise.
5110 * recog.c (asm_operand_ok): Likewise.
5111 (constrain_operands): Likewise.
5112 * regrename.c (scan_rtx_address): Likewise.
5113 * reload.c (update_auto_inc_notes): Likewise.
5114 (reg_inc_found_and_valid_p): Likewise.
5115 * reload1.c (reload): Likewise.
5116 (emit_input_reload_insns): Likewise.
5117 (delete_output_reload): Likewise.
5118 * sched-deps.c (init_insn_reg_pressure_info): Likewise.
5119 * valtrack.c (cleanup_auto_inc_dec): Likewise.
5120
5121 2015-07-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
5122
5123 * rtl.h: Always define AUTO_INC_DEC.
5124 * auto-inc-dec.c (pass_inc_dec::execute): Adjust.
5125 * combine.c (combine_instructions): Likewise.
5126 (can_combine_p): Likewise.
5127 (try_combine): Likewise.
5128 * emit-rtl.c (try_split): Likewise.
5129 * loop-invariant.c (calculate_loop_reg_pressure): Likewise.
5130 * lower-subreg.c (resolve_simple_move): Likewise.
5131 * lra.c (update_inc_notes): Likewise.
5132 * recog.c (asm_operand_ok): Likewise.
5133 (constrain_operands): Likewise.
5134 * regrename.c (scan_rtx_address): Likewise.
5135 * reload.c (update_auto_inc_notes): Likewise.
5136 (find_equiv_reg): Likewise.
5137 * reload1.c (reload): Likewise.
5138 (reload_as_needed): Likewise.
5139 (choose_reload_regs): Likewise.
5140 (emit_input_reload_insns): Likewise.
5141 (delete_output_reload): Likewise.
5142 * sched-deps.c (init_insn_reg_pressure_info): Likewise.
5143 * valtrack.c (cleanup_auto_inc_dec): Likewise.
5144
5145 2015-07-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
5146
5147 * combine.c (can_combine_def_p): Don't check the value of
5148 HARD_FRAME_POINTER_IS_FRAME_POINTER with the preprocessor.
5149 (combinable_i3pat): Likewise.
5150 (mark_used_regs_combine): Likewise.
5151 * regrename.c (rename_chains): Likewise.
5152 * reload.c (find_reloads_address): Likewise.
5153 * sel-sched.c (mark_unavailable_hard_regs): Likewise.
5154
5155 2015-07-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
5156
5157 * combine.c (update_rsp_from_reg_equal): Don't check if
5158 SHORT_IMMEDIATES_SIGN_EXTEND is defined.
5159 (reg_nonzero_bits_for_combine): Likewise.
5160 * config/alpha/alpha.h: Define SHORT_IMMEDIATES_SIGN_EXTEND to
5161 1.
5162 * config/frv/frv.h: Likewise.
5163 * config/lm32/lm32.h: Likewise.
5164 * config/mep/mep.h: Likewise.
5165 * config/mips/mips.h: Likewise.
5166 * config/rs6000/rs6000.h: Likewise.
5167 * config/sh/sh.h: Likewise.
5168 * config/tilegx/tilegx.h (enum reg_class): Likewise.
5169 * config/tilepro/tilepro.h: Likewise.
5170 * defaults.h: Add default for SHORT_IMMEDIATES_SIGN_EXTEND.
5171 * doc/tm.texi: Regenerate.
5172 * doc/tm.texi.in: Adjust.
5173 * rtlanal.c (nonzero_bits1): Likewise.
5174
5175 2015-07-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
5176
5177 * combine.c (do_SUBST_MODE): Don't check the value of HAVE_cc0
5178 with the preprocessor.
5179 (combine_instructions): Likewise.
5180 (try_combine): Likewise.
5181 (subst): Likewise.
5182 (distribute_notes): Likewise.
5183
5184 2015-07-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
5185
5186 * combine.c (try_combine): Don't check if LOAD_EXTEND_OP is
5187 defined.
5188 (simplify_set): Likewise.
5189 * cse.c (cse_insn): Likewise.
5190 * fold-const.c (fold_single_bit_test): Likewise.
5191 (fold_unary_loc): Likewise.
5192 * postreload.c (reload_cse_simplify_set): Likewise.
5193 (reload_cse_simplify_operands): Likewise.
5194
5195 2015-07-08 Jiong Wang <jiong.wang@arm.com>
5196
5197 * config/aarch64/aarch64.c (aarch64_unspec_may_trap_p): New function.
5198 (TARGET_UNSPEC_MAY_TRAP_P): Define as aarch64_unspec_may_trap_p.
5199
5200 2015-07-08 H.J. Lu <hongjiu.lu@intel.com>
5201
5202 PR target/66746
5203 * config/i386/x86intrin.h: Include <adxintrin.h> even if
5204 __iamcu__ is defined.
5205
5206 2015-07-08 Uros Bizjak <ubizjak@gmail.com>
5207
5208 * config/i386/predicates.md (general_reg_operand): Use GENERAL_REGNO_P.
5209
5210 2015-07-08 Iain Sandoe <iain@codesourcery.com>
5211
5212 PR target/66523
5213 * config/darwin.c (darwin_mark_decl_preserved): Exclude 'L' label
5214 names from preservation.
5215
5216 2015-07-08 H.J. Lu <hongjiu.lu@intel.com>
5217
5218 PR target/66806
5219 * config/i386/i386.c (type_natural_mode): Don't warn vector ABI
5220 change for IAMCU.
5221 (function_arg_advance_32): Don't pass vectors in registers for
5222 IAMCU.
5223 (function_arg_32): Likewise.
5224 (ix86_return_in_memory): Don't return vectors in registers for
5225 IAMCU.
5226
5227 2015-07-08 Vladimir Makarov <vmakarov@redhat.com>
5228
5229 PR middle-end/66334
5230 * ira-lives.c (process_bb_node_lives): Make conflicts with PIC
5231 hard regno live at the start of BB with incoming abnormal edges.
5232 * lra-lives.c (process_bb_lives): Ditto.
5233
5234 2015-07-08 Thomas Schwinge <thomas@codesourcery.com>
5235
5236 PR libgomp/65099
5237 * config/nvptx/mkoffload.c (main): Create an offload image only in
5238 64-bit configurations.
5239
5240 2015-07-08 Martin Liska <mliska@suse.cz>
5241
5242 PR bootstrap/66744
5243 * tree-sra.c (create_access_1): Call ctor without brackets.
5244 (create_artificial_child_access): Likewise.
5245
5246 2015-07-08 Richard Biener <rguenther@suse.de>
5247
5248 PR tree-optimization/66793
5249 * gimple-ssa-isolate-paths.c (insert_trap_and_remove_trailing_statemen):
5250 Properly split the block after stmts ending it.
5251
5252 2015-07-08 Richard Biener <rguenther@suse.de>
5253
5254 PR tree-optimization/66794
5255 * passes.c (execute_function_todo): Assert that post-dominators
5256 are not computed.
5257 * gimple-ssa-isolate-paths.c (gimple_ssa_isolate_erroneous_paths):
5258 Free post-dominators.
5259
5260 2015-07-08 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
5261
5262 * config/s390/s390.c (s390_init_frame_layout): Replace assertion
5263 with early exit.
5264
5265 2015-07-08 Uros Bizjak <ubizjak@gmail.com>
5266
5267 * config/i386/i386.md (*jcc_bt<mode>): Only allow const_int values
5268 more than or equal 8 and less than 32 when optimizing for size.
5269
5270 2015-07-08 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5271
5272 * config/arm/arm.c (arm_new_rtx_costs): Initialise cost to
5273 COSTS_N_INSNS (1) and increment it appropriately throughout the
5274 function.
5275
5276 2015-07-08 Richard Biener <rguenther@suse.de>
5277
5278 * fold-const.c (fold_widened_comparison): Fix inverted comparison.
5279
5280 2015-07-08 Alan Modra <amodra@gmail.com>
5281
5282 * target.def (rtx_costs): Remove "code" param, add "mode".
5283 * rtl.h (rtx_cost, get_full_rtx_cost): Update prototype.
5284 (set_src_cost, get_full_set_src_cost): Likewise. Move later in file.
5285 (set_rtx_cost, get_full_set_rtx_cost): Move later in file.
5286 * rtlanal.c (rtx_cost): Add "mode" parameter. Update targetm.rtx_costs
5287 call. Track mode when given in rtx.
5288 (get_full_rtx_cost): Add "mode" parameter. Update rtx_cost calls.
5289 (default_address_cost): Pass Pmode to rtx_cost.
5290 (insn_rtx_cost): Pass dest mode of set to set_src_cost.
5291 * cprop.c (try_replace_reg): Ensure set_rtx_cost is not called
5292 with NULL set.
5293 * cse.c (COST, COST_IN): Add MODE param. Update all uses.
5294 (notreg_cost): Add mode param. Use it.
5295 * gcse.c (want_to_gcse_p): Delete forward declaration. Add
5296 mode param and pass to set_src_cost. Update all calls.
5297 (hash_scan_set): Formatting.
5298 * hooks.c (hook_bool_rtx_int_int_int_intp_bool_false): Delete.
5299 (hook_bool_rtx_mode_int_int_intp_bool_false): New function.
5300 * hooks.h: Ditto.
5301 * expmed.c (init_expmed_one_conv, init_expmed_one_mode,
5302 init_expmed, expand_mult, mult_by_coeff_cost, expand_smod_pow2,
5303 emit_store_flag): Update set_src_cost and rtx_cost calls.
5304 * auto-inc-dec.c (attempt_change): Likewise.
5305 * calls.c (precompute_register_parameters): Likewise.
5306 * combine.c (expand_compound_operation, make_extraction,
5307 force_to_mode, distribute_and_simplify_rtx): Likewise.
5308 * dojump.c (prefer_and_bit_test): Likewise.
5309 * dse.c (find_shift_sequence): Likewise.
5310 * expr.c (compress_float_constant): Likewise.
5311 * fwprop.c (should_replace_address, try_fwprop_subst): Likewise.
5312 * ifcvt.c (noce_try_sign_mask): Likewise.
5313 * loop-doloop.c (doloop_optimize): Likewise.
5314 * loop-invariant.c (create_new_invariant): Likewise.
5315 * lower-subreg.c (shift_cost, compute_costs): Likewise.
5316 * optabs.c (avoid_expensive_constant, prepare_cmp_insn,
5317 lshift_cheap_p): Likewise.
5318 * postreload.c (reload_cse_simplify_set, reload_cse_simplify_operands,
5319 try_replace_in_use, reload_cse_move2add): Likewise.
5320 * reload1.c (calculate_elim_costs_all_insns, note_reg_elim_costly):
5321 Likewise.
5322 * simplify-rtx.c (simplify_binary_operation_1): Likewise.
5323 * tree-ssa-loop-ivopts.c (computation_cost): Likewise.
5324 * tree-ssa-reassoc.c (optimize_range_tests_to_bit_test): Likewise.
5325 * tree-switch-conversion.c (emit_case_bit_tests): Likewise.
5326 * config/aarch64/aarch64.c (aarch64_rtx_costs): Delete "code" param,
5327 add "mode" param. Use "mode: in place of GET_MODE (x). Pass mode
5328 to rtx_cost calls.
5329 * config/alpha/alpha.c (alpha_rtx_costs): Likewise.
5330 * config/arc/arc.c (arc_rtx_costs): Likewise.
5331 * config/arm/arm.c (arm_rtx_costs): Likewise.
5332 * config/avr/avr.c (avr_rtx_costs, avr_rtx_costs_1): Likewise.
5333 * config/bfin/bfin.c (bfin_rtx_costs): Likewise.
5334 * config/c6x/c6x.c (c6x_rtx_costs): Likewise.
5335 * config/cris/cris.c (cris_rtx_costs): Likewise.
5336 * config/epiphany/epiphany.c (epiphany_rtx_costs): Likewise.
5337 * config/frv/frv.c (frv_rtx_costs): Likewise.
5338 * config/h8300/h8300.c (h8300_rtx_costs): Likewise.
5339 * config/i386/i386.c (ix86_rtx_costs): Likewise.
5340 * config/ia64/ia64.c (ia64_rtx_costs): Likewise.
5341 * config/iq2000/iq2000.c (iq2000_rtx_costs): Likewise.
5342 * config/lm32/lm32.c (lm32_rtx_costs): Likewise.
5343 * config/m32c/m32c.c (m32c_rtx_costs): Likewise.
5344 * config/m32r/m32r.c (m32r_rtx_costs): Likewise.
5345 * config/m68k/m68k.c (m68k_rtx_costs): Likewise.
5346 * config/mcore/mcore.c (mcore_rtx_costs): Likewise.
5347 * config/mep/mep.c (mep_rtx_cost): Likewise.
5348 * config/microblaze/microblaze.c (microblaze_rtx_costs): Likewise.
5349 * config/mips/mips.c (mips_rtx_costs): Likewise.
5350 * config/mmix/mmix.c (mmix_rtx_costs): Likewise.
5351 * config/mn10300/mn10300.c (mn10300_rtx_costs): Likewise.
5352 * config/msp430/msp430.c (msp430_rtx_costs): Likewise.
5353 * config/nds32/nds32-cost.c (nds32_rtx_costs_impl): Likewise.
5354 * config/nds32/nds32-protos.h (nds32_rtx_costs_impl): Likewise.
5355 * config/nds32/nds32.c (nds32_rtx_costs): Likewise.
5356 * config/nios2/nios2.c (nios2_rtx_costs): Likewise.
5357 * config/pa/pa.c (hppa_rtx_costs): Likewise.
5358 * config/pdp11/pdp11.c (pdp11_rtx_costs): Likewise.
5359 * config/rl78/rl78.c (rl78_rtx_costs): Likewise.
5360 * config/rs6000/rs6000.c (rs6000_rtx_costs): Likewise.
5361 * config/s390/s390.c (s390_rtx_costs): Likewise.
5362 * config/sh/sh.c (sh_rtx_costs): Likewise.
5363 * config/sparc/sparc.c (sparc_rtx_costs): Likewise.
5364 * config/spu/spu.c (spu_rtx_costs): Likewise.
5365 * config/stormy16/stormy16.c (xstormy16_rtx_costs): Likewise.
5366 * config/tilegx/tilegx.c (tilegx_rtx_costs): Likewise.
5367 * config/tilepro/tilepro.c (tilepro_rtx_costs): Likewise.
5368 * config/v850/v850.c (v850_rtx_costs): Likewise.
5369 * config/vax/vax.c (vax_rtx_costs): Likewise.
5370 * config/visium/visium.c (visium_rtx_costs): Likewise.
5371 * config/xtensa/xtensa.c (xtensa_rtx_costs): Likewise.
5372 * config/aarch64/aarch64.c (aarch64_rtx_mult_cost): Change type of
5373 "code" param, and pass as outer_code to first rtx_cost call. Pass
5374 mode to rtx_cost calls.
5375 (aarch64_address_cost, aarch64_if_then_else_costs): Update rtx_cost
5376 calls.
5377 (aarch64_rtx_costs_wrapper): Update.
5378 * config/arm/arm.c (arm_rtx_costs_1, arm_size_rtx_costs,
5379 arm_unspec_cost, arm_new_rtx_costs, arm_slowmul_rtx_costs): Update
5380 rtx_cost calls.
5381 * config/avr/avr.c (avr_final_prescan_insn): Update set_src_cost
5382 and rtx_cost calls.
5383 (avr_operand_rtx_cost): Similarly.
5384 (avr_rtx_costs_1): Correct mode passed to avr_operand_rtx_cost
5385 for subexpressions of ZERO_EXTEND, SIGN_EXTEND and COMPARE.
5386 * config/mips/mips.c (mips_stack_address_p): Comment typo.
5387 (mips_binary_cost): Update rtx_cost and set_src_cost calls.
5388 (mips_rtx_costs): Use GET_MODE (x) to detect const_int.
5389 * config/mn10300/mn10300.c (mn10300_address_cost): Pass Pmode to
5390 rtx_cost.
5391 (mn10300_rtx_costs): Correct mode passed to mn10300_address_cost.
5392 * config/rs6000/rs6000.c (rs6000_debug_rtx_costs): Update.
5393 * config/sh/sh.c (and_xor_ior_costs): Update rtx_cost call.
5394 * doc/tm.texi: Regenerate.
5395
5396 2015-07-07 Andrew MacLeod <amacleod@redhat.com>
5397
5398 * tree-core.h: Include symtab.h.
5399 * rtl.h: Include hard-reg-set.h but not flags.h.
5400 (HARD_CONST): Remove condition compilation involving HARD_CONST since
5401 hard-reg-set.h is always included.
5402 * regs.h: Don't include hard-reg-set.h or rtl.h.
5403 * cfg.h: Include dominance.h.
5404 * gimple.h: Include tree-ssa-alias.h and gimple-expr.h.
5405 * backend.h: New. Aggregate commonly used backend header files.
5406 * gimple-ssa.h: Don't include tree-hasher.h.
5407 * ssa.h: New. Aggregate commonly used SSA header files.
5408 * regset.h: Remove bitmap.h and hard-reg-set.h #includes.
5409 * sel-sched-ir.h: Flatten includes.
5410 * lra-int.h: Flatten completely.
5411 * sel-sched-dump.h: Flatten includes.
5412 * ira-int.h: Flatten includes.
5413 * gimple-streamer.h: Remove all includes.
5414 * cfgloop.h: Remove all #includes except cfgloopmanip.h.
5415 * resource.h: Flatten hard-reg-set.h and df.h.
5416 * sched-int.h: Flatten insn-arrt.h and df.h.
5417 * valtrack.h: flatten bitmap.h, df.h, and rtl.h
5418 * df.h: Flatten includes, leaving regset.h, alloc-pool.h and timevar.h.
5419 * genattrtab.c (write_header): Adjust generated includes.
5420 * genautomata.c (main): Likewise.
5421 * genconditions.c (write-header): Likewise.
5422 * genemit.c (main): Likewise.
5423 * gengtype.c (open_base_files): Likewise.
5424 * genopinit.c (main): Likewise.
5425 * genoutput.c (output_prologue): Likewise.
5426 * genpeep.c (main): Likewise.
5427 * genpreds.c (write_insn_preds_c): Likewise.
5428 * genrecog.c (write_header): Likewise.
5429 * alias.c: Adjust includes.
5430 * asan.c: Likewise.
5431 * attribs.c: Likewise.
5432 * auto-inc-dec.c: Likewise.
5433 * auto-profile.c: Likewise.
5434 * bb-reorder.c: Likewise.
5435 * bt-load.c: Likewise.
5436 * builtins.c: Likewise.
5437 * caller-save.c: Likewise.
5438 * calls.c: Likewise.
5439 * ccmp.c: Likewise.
5440 * cfg.c: Likewise.
5441 * cfganal.c: Likewise.
5442 * cfgbuild.c: Likewise.
5443 * cfgcleanup.c: Likewise.
5444 * cfgexpand.c: Likewise.
5445 * cfghooks.c: Likewise.
5446 * cfgloop.c: Likewise.
5447 * cfgloopanal.c: Likewise.
5448 * cfgloopmanip.c: Likewise.
5449 * cfgrtl.c: Likewise.
5450 * cgraph.c: Likewise.
5451 * cgraphbuild.c: Likewise.
5452 * cgraphclones.c: Likewise.
5453 * cgraphunit.c: Likewise.
5454 * cilk-common.c: Likewise.
5455 * combine-stack-adj.c: Likewise.
5456 * combine.c: Likewise.
5457 * compare-elim.c: Likewise.
5458 * convert.c: Likewise.
5459 * coverage.c: Likewise.
5460 * cppbuiltin.c: Likewise.
5461 * cprop.c: Likewise.
5462 * cse.c: Likewise.
5463 * cselib.c: Likewise.
5464 * data-streamer-in.c: Likewise.
5465 * data-streamer-out.c: Likewise.
5466 * data-streamer.c: Likewise.
5467 * dbxout.c: Likewise.
5468 * dce.c: Likewise.
5469 * ddg.c: Likewise.
5470 * debug.c: Likewise.
5471 * df-core.c: Likewise.
5472 * df-problems.c: Likewise.
5473 * df-scan.c: Likewise.
5474 * dfp.c: Likewise.
5475 * dojump.c: Likewise.
5476 * dominance.c: Likewise.
5477 * domwalk.c: Likewise.
5478 * double-int.c: Likewise.
5479 * dse.c: Likewise.
5480 * dumpfile.c: Likewise.
5481 * dwarf2asm.c: Likewise.
5482 * dwarf2cfi.c: Likewise.
5483 * dwarf2out.c: Likewise.
5484 * emit-rtl.c: Likewise.
5485 * et-forest.c: Likewise.
5486 * except.c: Likewise.
5487 * explow.c: Likewise.
5488 * expmed.c: Likewise.
5489 * expr.c: Likewise.
5490 * final.c: Likewise.
5491 * fixed-value.c: Likewise.
5492 * fold-const.c: Likewise.
5493 * function.c: Likewise.
5494 * fwprop.c: Likewise.
5495 * gcc-plugin.h: Likewise.
5496 * gcse-common.c: Likewise.
5497 * gcse.c: Likewise.
5498 * generic-match-head.c: Likewise.
5499 * ggc-page.c: Likewise.
5500 * gimple-builder.c: Likewise.
5501 * gimple-expr.c: Likewise.
5502 * gimple-fold.c: Likewise.
5503 * gimple-iterator.c: Likewise.
5504 * gimple-low.c: Likewise.
5505 * gimple-match-head.c: Likewise.
5506 * gimple-pretty-print.c: Likewise.
5507 * gimple-ssa-isolate-paths.c: Likewise.
5508 * gimple-ssa-strength-reduction.c: Likewise.
5509 * gimple-streamer-in.c: Likewise.
5510 * gimple-streamer-out.c: Likewise.
5511 * gimple-walk.c: Likewise.
5512 * gimple.c: Likewise.
5513 * gimplify-me.c: Likewise.
5514 * gimplify.c: Likewise.
5515 * godump.c: Likewise.
5516 * graph.c: Likewise.
5517 * graphite-blocking.c: Likewise.
5518 * graphite-dependences.c: Likewise.
5519 * graphite-interchange.c: Likewise.
5520 * graphite-isl-ast-to-gimple.c: Likewise.
5521 * graphite-optimize-isl.c: Likewise.
5522 * graphite-poly.c: Likewise.
5523 * graphite-scop-detection.c: Likewise.
5524 * graphite-sese-to-poly.c: Likewise.
5525 * graphite.c: Likewise.
5526 * haifa-sched.c: Likewise.
5527 * hw-doloop.c: Likewise.
5528 * ifcvt.c: Likewise.
5529 * init-regs.c: Likewise.
5530 * internal-fn.c: Likewise.
5531 * ipa-chkp.c: Likewise.
5532 * ipa-comdats.c: Likewise.
5533 * ipa-cp.c: Likewise.
5534 * ipa-devirt.c: Likewise.
5535 * ipa-icf-gimple.c: Likewise.
5536 * ipa-icf.c: Likewise.
5537 * ipa-inline-analysis.c: Likewise.
5538 * ipa-inline-transform.c: Likewise.
5539 * ipa-inline.c: Likewise.
5540 * ipa-polymorphic-call.c: Likewise.
5541 * ipa-profile.c: Likewise.
5542 * ipa-prop.c: Likewise.
5543 * ipa-pure-const.c: Likewise.
5544 * ipa-ref.c: Likewise.
5545 * ipa-reference.c: Likewise.
5546 * ipa-split.c: Likewise.
5547 * ipa-utils.c: Likewise.
5548 * ipa-visibility.c: Likewise.
5549 * ipa.c: Likewise.
5550 * ira-build.c: Likewise.
5551 * ira-color.c: Likewise.
5552 * ira-conflicts.c: Likewise.
5553 * ira-costs.c: Likewise.
5554 * ira-emit.c: Likewise.
5555 * ira-lives.c: Likewise.
5556 * ira.c: Likewise.
5557 * jump.c: Likewise.
5558 * langhooks.c: Likewise.
5559 * lcm.c: Likewise.
5560 * loop-doloop.c: Likewise.
5561 * loop-init.c: Likewise.
5562 * loop-invariant.c: Likewise.
5563 * loop-iv.c: Likewise.
5564 * loop-unroll.c: Likewise.
5565 * lower-subreg.c: Likewise.
5566 * lra-assigns.c: Likewise.
5567 * lra-coalesce.c: Likewise.
5568 * lra-constraints.c: Likewise.
5569 * lra-eliminations.c: Likewise.
5570 * lra-lives.c: Likewise.
5571 * lra-remat.c: Likewise.
5572 * lra-spills.c: Likewise.
5573 * lra.c: Likewise.
5574 * lto-cgraph.c: Likewise.
5575 * lto-compress.c: Likewise.
5576 * lto-opts.c: Likewise.
5577 * lto-section-in.c: Likewise.
5578 * lto-section-out.c: Likewise.
5579 * lto-streamer-in.c: Likewise.
5580 * lto-streamer-out.c: Likewise.
5581 * lto-streamer.c: Likewise.
5582 * mcf.c: Likewise.
5583 * mode-switching.c: Likewise.
5584 * modulo-sched.c: Likewise.
5585 * omega.c: Likewise.
5586 * omp-low.c: Likewise.
5587 * optabs.c: Likewise.
5588 * opts-global.c: Likewise.
5589 * passes.c: Likewise.
5590 * plugin.c: Likewise.
5591 * postreload-gcse.c: Likewise.
5592 * postreload.c: Likewise.
5593 * predict.c: Likewise.
5594 * print-rtl.c: Likewise.
5595 * print-tree.c: Likewise.
5596 * profile.c: Likewise.
5597 * real.c: Likewise.
5598 * realmpfr.c: Likewise.
5599 * recog.c: Likewise.
5600 * ree.c: Likewise.
5601 * reg-stack.c: Likewise.
5602 * regcprop.c: Likewise.
5603 * reginfo.c: Likewise.
5604 * regrename.c: Likewise.
5605 * regstat.c: Likewise.
5606 * reload.c: Likewise.
5607 * reload1.c: Likewise.
5608 * reorg.c: Likewise.
5609 * resource.c: Likewise.
5610 * rtl-chkp.c: Likewise.
5611 * rtlanal.c: Likewise.
5612 * rtlhooks.c: Likewise.
5613 * sanopt.c: Likewise.
5614 * sched-deps.c: Likewise.
5615 * sched-ebb.c: Likewise.
5616 * sched-rgn.c: Likewise.
5617 * sched-vis.c: Likewise.
5618 * sdbout.c: Likewise.
5619 * sel-sched-dump.c: Likewise.
5620 * sel-sched-ir.c: Likewise.
5621 * sel-sched.c: Likewise.
5622 * sese.c: Likewise.
5623 * shrink-wrap.c: Likewise.
5624 * simplify-rtx.c: Likewise.
5625 * stack-ptr-mod.c: Likewise.
5626 * stmt.c: Likewise.
5627 * stor-layout.c: Likewise.
5628 * store-motion.c: Likewise.
5629 * stringpool.c: Likewise.
5630 * symtab.c: Likewise.
5631 * target-globals.c: Likewise.
5632 * targhooks.c: Likewise.
5633 * toplev.c: Likewise.
5634 * tracer.c: Likewise.
5635 * trans-mem.c: Likewise.
5636 * tree-affine.c: Likewise.
5637 * tree-browser.c: Likewise.
5638 * tree-call-cdce.c: Likewise.
5639 * tree-cfg.c: Likewise.
5640 * tree-cfgcleanup.c: Likewise.
5641 * tree-chkp-opt.c: Likewise.
5642 * tree-chkp.c: Likewise.
5643 * tree-chrec.c: Likewise.
5644 * tree-complex.c: Likewise.
5645 * tree-data-ref.c: Likewise.
5646 * tree-dfa.c: Likewise.
5647 * tree-diagnostic.c: Likewise.
5648 * tree-dump.c: Likewise.
5649 * tree-eh.c: Likewise.
5650 * tree-emutls.c: Likewise.
5651 * tree-if-conv.c: Likewise.
5652 * tree-inline.c: Likewise.
5653 * tree-into-ssa.c: Likewise.
5654 * tree-iterator.c: Likewise.
5655 * tree-loop-distribution.c: Likewise.
5656 * tree-nested.c: Likewise.
5657 * tree-nrv.c: Likewise.
5658 * tree-object-size.c: Likewise.
5659 * tree-outof-ssa.c: Likewise.
5660 * tree-parloops.c: Likewise.
5661 * tree-phinodes.c: Likewise.
5662 * tree-predcom.c: Likewise.
5663 * tree-pretty-print.c: Likewise.
5664 * tree-profile.c: Likewise.
5665 * tree-scalar-evolution.c: Likewise.
5666 * tree-sra.c: Likewise.
5667 * tree-ssa-address.c: Likewise.
5668 * tree-ssa-alias.c: Likewise.
5669 * tree-ssa-ccp.c: Likewise.
5670 * tree-ssa-coalesce.c: Likewise.
5671 * tree-ssa-copy.c: Likewise.
5672 * tree-ssa-copyrename.c: Likewise.
5673 * tree-ssa-dce.c: Likewise.
5674 * tree-ssa-dom.c: Likewise.
5675 * tree-ssa-dse.c: Likewise.
5676 * tree-ssa-forwprop.c: Likewise.
5677 * tree-ssa-ifcombine.c: Likewise.
5678 * tree-ssa-live.c: Likewise.
5679 * tree-ssa-loop-ch.c: Likewise.
5680 * tree-ssa-loop-im.c: Likewise.
5681 * tree-ssa-loop-ivcanon.c: Likewise.
5682 * tree-ssa-loop-ivopts.c: Likewise.
5683 * tree-ssa-loop-manip.c: Likewise.
5684 * tree-ssa-loop-niter.c: Likewise.
5685 * tree-ssa-loop-prefetch.c: Likewise.
5686 * tree-ssa-loop-unswitch.c: Likewise.
5687 * tree-ssa-loop.c: Likewise.
5688 * tree-ssa-math-opts.c: Likewise.
5689 * tree-ssa-operands.c: Likewise.
5690 * tree-ssa-phiopt.c: Likewise.
5691 * tree-ssa-phiprop.c: Likewise.
5692 * tree-ssa-pre.c: Likewise.
5693 * tree-ssa-propagate.c: Likewise.
5694 * tree-ssa-reassoc.c: Likewise.
5695 * tree-ssa-sccvn.c: Likewise.
5696 * tree-ssa-scopedtables.c: Likewise.
5697 * tree-ssa-sink.c: Likewise.
5698 * tree-ssa-strlen.c: Likewise.
5699 * tree-ssa-structalias.c: Likewise.
5700 * tree-ssa-tail-merge.c: Likewise.
5701 * tree-ssa-ter.c: Likewise.
5702 * tree-ssa-threadedge.c: Likewise.
5703 * tree-ssa-threadupdate.c: Likewise.
5704 * tree-ssa-uncprop.c: Likewise.
5705 * tree-ssa-uninit.c: Likewise.
5706 * tree-ssa.c: Likewise.
5707 * tree-ssanames.c: Likewise.
5708 * tree-stdarg.c: Likewise.
5709 * tree-streamer-in.c: Likewise.
5710 * tree-streamer-out.c: Likewise.
5711 * tree-streamer.c: Likewise.
5712 * tree-switch-conversion.c: Likewise.
5713 * tree-tailcall.c: Likewise.
5714 * tree-vect-data-refs.c: Likewise.
5715 * tree-vect-generic.c: Likewise.
5716 * tree-vect-loop-manip.c: Likewise.
5717 * tree-vect-loop.c: Likewise.
5718 * tree-vect-patterns.c: Likewise.
5719 * tree-vect-slp.c: Likewise.
5720 * tree-vect-stmts.c: Likewise.
5721 * tree-vectorizer.c: Likewise.
5722 * tree-vrp.c: Likewise.
5723 * tree.c: Likewise.
5724 * tsan.c: Likewise.
5725 * ubsan.c: Likewise.
5726 * valtrack.c: Likewise.
5727 * value-prof.c: Likewise.
5728 * var-tracking.c: Likewise.
5729 * varasm.c: Likewise.
5730 * varpool.c: Likewise.
5731 * vmsdbgout.c: Likewise.
5732 * vtable-verify.c: Likewise.
5733 * web.c: Likewise.
5734 * wide-int.cc: Likewise.
5735 * xcoffout.c: Likewise.
5736 * config/aarch64/aarch64-builtins.c: Likewise.
5737 * config/aarch64/aarch64.c: Likewise.
5738 * config/aarch64/cortex-a57-fma-steering.c: Likewise.
5739 * config/alpha/alpha.c: Likewise.
5740 * config/arc/arc.c: Likewise.
5741 * config/arm/aarch-common.c: Likewise.
5742 * config/arm/arm-builtins.c: Likewise.
5743 * config/arm/arm-c.c: Likewise.
5744 * config/arm/arm.c: Likewise.
5745 * config/avr/avr-c.c: Likewise.
5746 * config/avr/avr-log.c: Likewise.
5747 * config/avr/avr.c: Likewise.
5748 * config/bfin/bfin.c: Likewise.
5749 * config/c6x/c6x.c: Likewise.
5750 * config/cr16/cr16.c: Likewise.
5751 * config/cris/cris.c: Likewise.
5752 * config/darwin-c.c: Likewise.
5753 * config/darwin.c: Likewise.
5754 * config/epiphany/epiphany.c: Likewise.
5755 * config/epiphany/mode-switch-use.c: Likewise.
5756 * config/epiphany/resolve-sw-modes.c: Likewise.
5757 * config/fr30/fr30.c: Likewise.
5758 * config/frv/frv.c: Likewise.
5759 * config/ft32/ft32.c: Likewise.
5760 * config/h8300/h8300.c: Likewise.
5761 * config/i386/i386-c.c: Likewise.
5762 * config/i386/i386.c: Likewise.
5763 * config/i386/msformat-c.c: Likewise.
5764 * config/i386/winnt-cxx.c: Likewise.
5765 * config/i386/winnt-stubs.c: Likewise.
5766 * config/i386/winnt.c: Likewise.
5767 * config/ia64/ia64-c.c: Likewise.
5768 * config/ia64/ia64.c: Likewise.
5769 * config/iq2000/iq2000.c: Likewise.
5770 * config/lm32/lm32.c: Likewise.
5771 * config/m32c/m32c-pragma.c: Likewise.
5772 * config/m32c/m32c.c: Likewise.
5773 * config/m32r/m32r.c: Likewise.
5774 * config/m68k/m68k.c: Likewise.
5775 * config/mcore/mcore.c: Likewise.
5776 * config/mep/mep-pragma.c: Likewise.
5777 * config/mep/mep.c: Likewise.
5778 * config/microblaze/microblaze-c.c: Likewise.
5779 * config/microblaze/microblaze.c: Likewise.
5780 * config/mips/mips.c: Likewise.
5781 * config/mmix/mmix.c: Likewise.
5782 * config/mn10300/mn10300.c: Likewise.
5783 * config/moxie/moxie.c: Likewise.
5784 * config/msp430/msp430-c.c: Likewise.
5785 * config/msp430/msp430.c: Likewise.
5786 * config/nds32/nds32-cost.c: Likewise.
5787 * config/nds32/nds32-fp-as-gp.c: Likewise.
5788 * config/nds32/nds32-intrinsic.c: Likewise.
5789 * config/nds32/nds32-isr.c: Likewise.
5790 * config/nds32/nds32-md-auxiliary.c: Likewise.
5791 * config/nds32/nds32-memory-manipulation.c: Likewise.
5792 * config/nds32/nds32-pipelines-auxiliary.c: Likewise.
5793 * config/nds32/nds32-predicates.c: Likewise.
5794 * config/nds32/nds32.c: Likewise.
5795 * config/nios2/nios2.c: Likewise.
5796 * config/nvptx/nvptx.c: Likewise.
5797 * config/pa/pa.c: Likewise.
5798 * config/pdp11/pdp11.c: Likewise.
5799 * config/rl78/rl78-c.c: Likewise.
5800 * config/rl78/rl78.c: Likewise.
5801 * config/rs6000/rs6000-c.c: Likewise.
5802 * config/rs6000/rs6000.c: Likewise.
5803 * config/rx/rx.c: Likewise.
5804 * config/s390/s390-c.c: Likewise.
5805 * config/s390/s390.c: Likewise.
5806 * config/sh/sh-c.c: Likewise.
5807 * config/sh/sh-mem.cc: Likewise.
5808 * config/sh/sh.c: Likewise.
5809 * config/sh/sh_optimize_sett_clrt.cc: Likewise.
5810 * config/sh/sh_treg_combine.cc: Likewise.
5811 * config/sol2-c.c: Likewise.
5812 * config/sol2-cxx.c: Likewise.
5813 * config/sol2-stubs.c: Likewise.
5814 * config/sol2.c: Likewise.
5815 * config/sparc/sparc-c.c: Likewise.
5816 * config/sparc/sparc.c: Likewise.
5817 * config/spu/spu-c.c: Likewise.
5818 * config/spu/spu.c: Likewise.
5819 * config/stormy16/stormy16.c: Likewise.
5820 * config/tilegx/mul-tables.c: Likewise.
5821 * config/tilegx/tilegx-c.c: Likewise.
5822 * config/tilegx/tilegx.c: Likewise.
5823 * config/tilepro/mul-tables.c: Likewise.
5824 * config/tilepro/tilepro-c.c: Likewise.
5825 * config/tilepro/tilepro.c: Likewise.
5826 * config/v850/v850-c.c: Likewise.
5827 * config/v850/v850.c: Likewise.
5828 * config/vax/vax.c: Likewise.
5829 * config/visium/visium.c: Likewise.
5830 * config/vms/vms-c.c: Likewise.
5831 * config/vms/vms.c: Likewise.
5832 * config/vxworks.c: Likewise.
5833 * config/xtensa/xtensa.c: Likewise.
5834
5835 2015-07-07 Uros Bizjak <ubizjak@gmail.com>
5836
5837 * config/i386/i386.md (*jcc_bt<mode>): Only split before reload.
5838 Remove operand constraints. Change operand 2 predicate to
5839 nonmemory operand. Limit const_int values to mode bitsize. Only
5840 allow const_int values less than 32 when optimizing for size.
5841 (*jcc_bt<mode>_1, *jcc_bt<mode>_mask): Only split before reload.
5842 Remove operand constraints.
5843 (*bt<mode>): Use SImode for const_int values less than 32.
5844 (regmode): Remove mode attribute.
5845
5846 2015-07-07 Anatoly Sokolov <aesok@post.ru>
5847
5848 * config/moxie/moxie.h (GO_IF_LEGITIMATE_ADDRESS): Remove macros.
5849 * config/moxie/moxie.c (moxie_reg_ok_for_base_p,
5850 moxie_legitimate_address_p): New functions.
5851 (TARGET_ADDR_SPACE_LEGITIMATE_ADDRESS_P): Define.
5852
5853 2015-07-07 Tom de Vries <tom@codesourcery.com>
5854
5855 PR tree-optimization/66642
5856 * tree-parloops.c (transform_to_exit_first_loop_alt): Update function
5857 header comment. Rename split_edge variable to edge_at_split. Split
5858 exit edge to create new loop exit bb. Insert loop exit phis in new
5859 loop exit bb.
5860
5861 2015-07-07 Tom de Vries <tom@codesourcery.com>
5862
5863 * tree-cfg.c (get_virtual_phi): New function.
5864 * tree-cfg.h (get_virtual_phi): Declare.
5865 * tree-ssa-loop-manip.c (replace_uses_in_dominated_bbs)
5866 (rewrite_virtuals_into_loop_closed_ssa): New function.
5867 * tree-ssa-loop-manip.h (rewrite_virtuals_into_loop_closed_ssa):
5868 Declare.
5869 * tree-parloops.c (replace_uses_in_bbs_by): Remove.
5870 (transform_to_exit_first_loop_alt): Use
5871 rewrite_virtuals_into_loop_closed_ssa.
5872
5873 2015-07-07 Richard Biener <rguenther@suse.de>
5874
5875 * fold-const.c (fold_binary_loc): Move
5876 (X & C2) << C1 -> (X << C1) & (C2 << C1) simplification ...
5877 * match.pd: ... here.
5878 Add (X * C1) % C2 -> 0 simplification pattern derived from
5879 extract_muldiv_1.
5880
5881 2015-07-07 Kaz Kojima <kkojima@gcc.gnu.org>
5882
5883 PR target/66780
5884 * config/sh/sh.md (symGOT_load): Revert a part of 2015-03-03
5885 change for target/65249.
5886
5887 2015-07-07 Paulo Matos <pmatos@broadcom.com>
5888
5889 * symtab.c (address_matters_1): Fix typo in comment above.
5890 (can_increase_alignment_p): Likewise.
5891
5892 2015-07-07 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
5893
5894 * function.c (free_after_compilation): Clear PROP_cfg in
5895 f->curr_properties.
5896
5897 2015-07-07 Richard Biener <rguenther@suse.de>
5898
5899 * tree-ssa-propagate.c (add_ssa_edge): Dump what edge list we
5900 add which use to.
5901 (add_control_edge): Remove excessive vertical space in dumping.
5902 (process_ssa_edge_worklist): Simulate at most one statement and
5903 return whether we did. Do not simulate PHIs if they are in a
5904 BB not yet simulated.
5905 (ssa_propagate): Adjust to always drain the BB worklist whenever
5906 a BB is available there, likewise the VARYING edges list before
5907 the interesting edge list.
5908
5909 2015-07-07 Christian Bruel <christian.bruel@st.com>
5910
5911 PR target/52144
5912 * config/arm/elf.h (TARGET_ASM_FILE_START_APP_OFF): Delete.
5913
5914 2015-07-07 Richard Biener <rguenther@suse.de>
5915
5916 PR middle-end/66739
5917 * match.pd: Condition A - B ==/!= 0 -> A ==/!= B on single-use
5918 A - B.
5919
5920 2015-07-06 Uros Bizjak <ubizjak@gmail.com>
5921
5922 * config/i386/i386.md (insv<mode>): Rename from insv. Use SWI48
5923 modes for operands 0 and 3. Use SImode for operands 2 and 3.
5924 Copy operand 0 to a temporary if !ext_register_operand. Remove
5925 ancient extract_bit_field workaround.
5926 (insv<mode>_1): Rename from mov<mode>_insv_1.
5927 (*insvqi): Rename from *movqi_insv_2.
5928 * config/i386/i386.c (emit_i386_cw_initialization): Update calls
5929 for renamed insvsi_1.
5930 (promote_duplicated_reg): Ditto for renamed insv<mode>_1.
5931
5932 2015-07-06 Nathan Sidwell <nathan@codesourcery.com>
5933
5934 * config/nvptx/nvptx.c (nvptx_reorg): Remove unused vars. Fix
5935 call to nvptx_reorg_subreg.
5936
5937 2015-07-06 Jim Wilson <jim.wilson@linaro.org>
5938
5939 * graphite-blocking.c (HAVE_isl): Include <stddef.h>.
5940 * graphite-dependencies.c, graphite-interchange.c,
5941 graphite-isl-ast-to-gimple.c, graphite-optimize-isl.c, graphite-poly.c,
5942 graphite-scop-detection.c, graphite-sese-to-poly.c, graphite.c:
5943 Likewise.
5944
5945 2015-07-06 Marc Glisse <marc.glisse@inria.fr>
5946
5947 * match.pd: Remove element_mode inside HONOR_*.
5948 (~ (-A) -> A - 1, ~ (A - 1) -> -A): Handle complex types.
5949 (~X | X -> -1, ~X ^ X -> -1): Merge.
5950 * tree.c (build_each_one_cst): New function.
5951 * tree.h (build_each_one_cst): Likewise.
5952
5953 2015-07-06 H.J. Lu <hongjiu.lu@intel.com>
5954
5955 * config/i386/i386-c.c (ix86_target_macros_internal): Handle
5956 PROCESSOR_IAMCU.
5957
5958 2015-07-06 Steve Ellcey <sellcey@imgtec.com>
5959
5960 * config.gcc <mips*-*-*>: Add fused-madd.opt.
5961 * config/mips/mips.opt (mfused-madd): Remove.
5962 * config/mips/mips.c (mips_rtx_costs): Update cost calculations.
5963 * config/mips/mips.h (TARGET_MIPS8000): New.
5964 (ISA_HAS_FP_MADD4_MSUB4): Remove.
5965 (ISA_HAS_FP_MADDF_MSUBF): Remove.
5966 (ISA_HAS_FP_MADD3_MSUB3): Remove.
5967 (ISA_HAS_NMADD4_NMSUB4): Remove.
5968 (ISA_HAS_NMADD3_NMSUB3): Remove.
5969 (ISA_HAS_FUSED_MADD4): New.
5970 (ISA_HAS_UNFUSED_MADD4): New.
5971 (ISA_HAS_FUSED_MADDF): New.
5972 (ISA_HAS_FUSED_MADD3): New.
5973 * config/mips/mips.md: (fma<mode>4) Change from insn to expand.
5974 (*fma<mode>4_madd3) New.
5975 (*fma<mode>4_madd4) New.
5976 (*fma<mode>4_maddf) New.
5977 (fms<mode>4) New.
5978 (*fms<mode>4_msub3) New.
5979 (*fms<mode>4_msub4) New.
5980 (fnma<mode>4) New.
5981 (*fnma<mode>4_nmadd3) New.
5982 (*fnma<mode>4_nmadd4) New.
5983 (fnms<mode>4) New.
5984 (*fnms<mode>4_nmsub3) New.
5985 (*fnms<mode>4_nmsub4) New.
5986 (*madd4<mode>) Modify to be unfused only.
5987 (*msub4<mode>) Modify to be unfused only.
5988 (*nmadd4<mode>) Modify to be unfused only.
5989 (*nmsub4<mode>) Modify to be unfused only.
5990 (*madd3<mode>) Remove.
5991 (*msub3<mode>) Remove.
5992 (*nmadd3<mode>) Remove.
5993 (*nmsub3<mode>) Remove.
5994 (*nmadd3<mode>_fastmath) Remove.
5995 (*nmsub3<mode>_fastmath) Remove.
5996 (*nmadd4<mode>_fastmath) Update condition.
5997 (*nmsub4<mode>_fastmath) Update condition.
5998
5999 2015-07-06 Alan Lawrence <alan.lawrence@arm.com>
6000
6001 PR target/65956
6002 * config/arm/arm.c (arm_needs_doubleword_align): Drop any outer
6003 alignment attribute, exploring one level down for records and arrays.
6004
6005 2015-07-06 Uros Bizjak <ubizjak@gmail.com>
6006
6007 * config/i386/i386.md (extv<mode>): Rename from extv. Use SWI24
6008 modes for operands 0 and 1. Use SImode for operands 2 and 3.
6009 Copy operand 1 to a temporary if !ext_register_operand. Remove
6010 ancient extract_bit_field workaround.
6011 (*extv<mode>): Rename from *mov<mode>_extv_1.
6012 (*extvqi): Rename from *movqi_extv_1.
6013 (extzv<mode>): Rename from extzv. Use SWI248 modes for
6014 operands 0 and 1. Use SImode for operands 2 and 3. Copy operand 1
6015 to a temporary if !ext_register_operand. Remove ancient
6016 extract_bit_field workaround.
6017 (*extzv<mode>): Rename from *mov<mode>_extzv_1.
6018 (*extzvqi): Rename from *movqi_extzv_2.
6019 (*testqi_ext_3): Remove modes from const_int_operand predicated
6020 operands. Add "n" constraint.
6021 (*btsq, *btrq, *btcq): Remove mode from const_0_to_63 predicated
6022 operand. Add "J" constraint.
6023 (*btsq, *btrq, *btcq peephole2s): Remove mode from
6024 const_0_to_63 predicated operand.
6025 (regmode): New insn attribute.
6026 (*bt<mode>): Use SImode for operand 1. Change operand 1 predicate
6027 to nonmemory_operand. Use regmode insn attribute.
6028 (*jcc_bt<mode>_1): Convert operand 2 to SImode.
6029 (*jcc_bt<mode>_mask): Remove mode from operand 3.
6030 (*jcc_btsi_1, *jcc_btsi_mask_1): Remove patterns.
6031 (tbm_bextri_<mode>): Remove modes from const_0_to_255 predicated
6032 operands. Use "N" constraint instead of "n".
6033
6034 2015-07-06 Alan Lawrence <alan.lawrence@arm.com>
6035
6036 * config/arm/arm.md (movdi): Avoid odd-number ldrd/strd in ARM state.
6037
6038 2015-07-06 H.J. Lu <hongjiu.lu@intel.com>
6039
6040 PR target/66749
6041 * config/i386/i386.c (iamcu_cost): New.
6042 (m_IAMCU): Likewise.
6043 (initial_ix86_arch_features): Disable X86_ARCH_CMOV for m_IAMCU.
6044 (processor_target_table): Add an entry for "iamcu".
6045 (processor_alias_table): Likewise.
6046 (ix86_issue_rate): Handle PROCESSOR_IAMCU.
6047 (ix86_adjust_cost): Likewise.
6048 (ia32_multipass_dfa_lookahead): Likewise.
6049 * config/i386/i386.h (processor_type): Add PROCESSOR_IAMCU.
6050 * config/i386/x86-tune.def: Updated for m_IAMCU.
6051
6052 2015-07-06 Richard Biener <rguenther@suse.de>
6053
6054 PR tree-optimization/66772
6055 * tree-ssa-ccp.c (ccp_visit_phi_node): Make sure that copy
6056 values are available in the PHI node BB when there are
6057 still unexecutable edges.
6058
6059 2015-07-06 Richard Biener <rguenther@suse.de>
6060
6061 PR tree-optimization/66767
6062 * tree-vect-loop-manip.c (vect_create_cond_for_align_checks):
6063 Make sure to build the alignment test on a SSA name without
6064 final alignment info valid only if the alignment test
6065 evaluates to true.
6066
6067 2015-07-06 Bernd Schmidt <bernds@codesourcery.com>
6068
6069 PR target/66620
6070 * config/bfin/bfin.c (hwloop_optimize): Create new bb between jump and
6071 loop start when inserting LSETUP.
6072
6073 2015-07-06 H.J. Lu <hongjiu.lu@intel.com>
6074
6075 PR target/53383
6076 * config/i386/i386.c (ix86_option_override_internal): Allow
6077 -mincoming-stack-boundary=3 for 64-bit if SSE is disabled.
6078
6079 2015-07-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6080
6081 * read-md.c (decimal_string): Rename to ...
6082 (md_decimal_string): ... this.
6083 (handle_enum): Reflect this.
6084
6085 2015-07-06 Szabolcs Nagy <szabolcs.nagy@arm.com>
6086
6087 PR target/66731
6088 * config/aarch64/aarch64.md (fnmul<mode>3): Handle -frounding-math.
6089
6090 2015-07-06 Richard Biener <rguenther@suse.de>
6091
6092 PR middle-end/66759
6093 * match.pd: Add missing constraint of y to REAL_CST in
6094 REAL_CST - x CMP y to y - CST CMP x simplification.
6095
6096 2015-07-06 Eric Botcazou <ebotcazou@adacore.com>
6097
6098 PR tree-optimization/66757
6099 * match.pd: Add missing condition to ~X ^ C -> X ^ ~C.
6100
6101 2015-07-05 Chung-Lin Tang <cltang@codesourcery.com>
6102 Sandra Loosemore <sandra@codesourcery.com>
6103
6104 * config/nios2/nios2-protos.h (nios2_symbol_ref_in_small_data_p):
6105 Delete extern declaration.
6106 (gprel_constant_p): Add extern declaration.
6107 * config/nios2/constraints.md ("S"): Use gprel_constant_p
6108 instead of nios2_symbol_ref_in_small_data_p.
6109 * config/nios2/nios2.c (nios2_legitimate_address_p): Likewise.
6110 (nios2_symbol_ref_in_small_data_p): Make static.
6111 (gprel_constant_p): Make non-static.
6112
6113 2015-07-05 Gerald Pfeifer <gerald@pfeifer.com>
6114
6115 * doc/fragments.texi (Target Fragment): Convert debian.org
6116 link to use https.
6117 * doc/install.texi (Configuration): Ditto.
6118
6119 2015-07-05 Jakub Jelinek <jakub@redhat.com>
6120
6121 PR tree-optimization/66718
6122 * tree-vect-stmts.c (vectorizable_call): Replace uses of
6123 GOMP_SIMD_LANE outside of loop with vf - 1 rather than 0.
6124
6125 PR tree-optimization/66718
6126 * tree-vect-stmts.c (vectorizable_assignment, vectorizable_store,
6127 vectorizable_load, vectorizable_condition): Move vectype,
6128 nunits, ncopies computation after checking what kind of statement
6129 stmt is.
6130
6131 2015-07-05 Richard Sandiford <richard.sandiford@arm.com>
6132
6133 * target-insns.def (extv, extzv, insv): New targetm instruction
6134 patterns.
6135 * optabs.c (get_extraction_insn): Use them instead of HAVE_*/gen_*
6136 interface.
6137 * recog.c (simplify_while_replacing): Likewise.
6138
6139 2015-07-05 Richard Sandiford <richard.sandiford@arm.com>
6140
6141 * target-insns.def (doloop_begin, doloop_end): New targetm
6142 instruction patterns.
6143 * loop-init.c: Include target.h.
6144 (pass_loop2::gate): Use the new targetm patterns instead of
6145 HAVE_*/gen_* interface.
6146 (pass_rtl_doloop::gate): Likewise.
6147 (pass_rtl_doloop::execute): Remove preprocessor condition.
6148 * hw-doloop.c: Build unconditionally.
6149 * loop-doloop.c: Likewise.
6150 (doloop_optimize): Use the new targetm patterns instead of
6151 HAVE_*/gen_* interface.
6152 (doloop_modify): Likewise. Change type of doloop_seq to rtx_insn *.
6153 * modulo-sched.c (doloop_register_get): Likewise.
6154
6155 2015-07-05 Richard Sandiford <richard.sandiford@arm.com>
6156
6157 * target-insns.def (clear_cache): New targetm instruction pattern.
6158 * builtins.c (expand_builtin___clear_cache): Use it instead of
6159 HAVE_*/gen_* interface.
6160
6161 2015-07-05 Richard Sandiford <richard.sandiford@arm.com>
6162
6163 * target-insns.def (allocate_stack, check_stack, probe_stack)
6164 (probe_stack_address, split_stack_prologue, split_stack_space_check):
6165 New targetm instruction patterns.
6166 * explow.c (allocate_dynamic_stack_space): Use them instead of
6167 HAVE_*/gen_* interface.
6168 (emit_stack_probe): Likewise.
6169 (probe_stack_range): Likewise.
6170 * function.c (thread_prologue_and_epilogue_insns): Likewise.
6171
6172 2015-07-05 Richard Sandiford <richard.sandiford@arm.com>
6173
6174 * target-insns.def (stack_protect_set, stack_protect_test): New
6175 targetm instruction patterns.
6176 * cfgexpand.c (stack_protect_prologue): Use them instead of
6177 HAVE_*/gen_* interface.
6178 * function.c (stack_protect_epilogue): Likewise.
6179
6180 2015-07-05 Richard Sandiford <richard.sandiford@arm.com>
6181
6182 * expr.h (gen_move_insn_uncast): Delete.
6183 * expr.c (gen_move_insn_uncast): Delete.
6184
6185 2015-07-05 Richard Sandiford <richard.sandiford@arm.com>
6186
6187 * target-insns.def (restore_stack_block, restore_stack_function)
6188 (restore_stack_nonlocal, save_stack_block, save_stack_function)
6189 (save_stack_nonlocal): New targetm instruction patterns.
6190 * builtins.c (expand_builtin_apply): Use them instead of
6191 HAVE_*/gen_* interface.
6192 * explow.c (emit_stack_save, emit_stack_restore): Likewise.
6193
6194 2015-07-05 Richard Sandiford <richard.sandiford@arm.com>
6195
6196 * target-insns.def (trap): New targetm instruction pattern.
6197 * builtins.c (expand_builtin_trap): Use it instead of HAVE_*/gen_*
6198 interface.
6199 * explow.c (allocate_dynamic_stack_space): Likewise.
6200 * ifcvt.c (find_if_header): Likewise.
6201
6202 2015-07-05 Richard Sandiford <richard.sandiford@arm.com>
6203
6204 * target-insns.def (prefetch): New targetm instruction pattern.
6205 * tree-ssa-loop-prefetch.c: Include targeth.
6206 (tree_ssa_prefetch_arrays): Use prefetch targetm pattern instead
6207 of HAVE_*/gen_* interface.
6208 * builtins.c (expand_builtin_prefetch): Likewise.
6209 * toplev.c (process_options): Likewise.
6210
6211 2015-07-05 Richard Sandiford <richard.sandiford@arm.com>
6212
6213 * target-insns.def (untyped_call, untyped_return): New targetm
6214 instruction patterns.
6215 * builtins.c (expand_builtin_apply): Use them instead of
6216 HAVE_*/gen_* interface.
6217 (result_vector): Define unconditionally.
6218
6219 2015-07-05 Richard Sandiford <richard.sandiford@arm.com>
6220
6221 * target-insns.def (builtin_longjmp, builtin_setjmp_receiver)
6222 (builtin_setjmp_setup, exception_receiver, nonlocal_goto)
6223 (nonlocal_goto_receiver): New targetm instruction patterns.
6224 * builtins.c (expand_builtin_setjmp_setup): Use them instead
6225 of HAVE_*/gen_* interface.
6226 (expand_builtin_setjmp_receiver): Likewise.
6227 (expand_builtin_longjmp, expand_builtin_nonlocal_goto): Likewise.
6228 * except.c (expand_dw2_landing_pad_for_region): Likewise.
6229
6230 2015-07-05 Richard Sandiford <richard.sandiford@arm.com>
6231
6232 * target.def: Add code_for_* hooks.
6233 * gentarget-def.c (def_target_insn): Add TARGET_CODE_FOR_* macros.
6234 * defaults.h (HAVE_tablejump, gen_tablejump): Delete.
6235 * target-insns.def (casesi, tablejump): New targetm instruction
6236 patterns.
6237 * expr.c (try_casesi): Use them instead of HAVE_*/gen_* interface.
6238 (do_tablejump): Likewise.
6239 * stmt.c (expand_switch_as_decision_tree_p): Likewise.
6240 (expand_sjlj_dispatch_table): Likewise.
6241 * targhooks.c (default_case_values_threshold): Likewise.
6242
6243 2015-07-04 Sandra Loosemore <sandra@codesourcery.com>
6244
6245 * config/nios2/nios2.c (save_reg, restore_reg): Use plus_constant.
6246 Use rtx_insn * instead of rtx.
6247 (nios2_emit_add_constant): Use rtx_insn * instead of rtx.
6248 (nios2_expand_prologue, nios2_expand_epilogue): Likewise.
6249 (nios2_call_tls_get_addr): Likewise.
6250 (nios2_emit_expensive_div): Likewise.
6251 (nios2_emit_move_sequence): Change return type to bool.
6252 * config/nios2/nios2-protos.h (nios2_emit_move_sequence):
6253 Change return type to bool.
6254
6255 2015-07-04 Bernd Edlinger <bernd.edlinger@hotmail.de>
6256
6257 PR target/66747
6258 * config/mips/mips.c (mips_find_gp_ref): Handle instruction sequences.
6259
6260 2015-07-04 John David Anglin <danglin@gcc.gnu.org>
6261
6262 PR target/66114
6263 * config/pa/pa.md (indirect_jump): Use pmode_register_operand instead
6264 of register_operand. Remove constraint.
6265
6266 2015-07-04 Marc Glisse <marc.glisse@inria.fr>
6267
6268 * tree-cfg.c (verify_gimple_assign_ternary) <VEC_COND_EXPR>: Check
6269 the first argument.
6270
6271 2015-07-03 Paolo Carlini <paolo.carlini@oracle.com>
6272
6273 * attribs.c (decl_attributes): Guard inform with the return value
6274 of the preceding warning.
6275
6276 2015-07-03 James Greenhalgh <james.greenhalgh@arm.com>
6277
6278 * doc/invoke.texi (moverride): Move to correct section.
6279
6280 2015-07-03 Richard Biener <rguenther@suse.de>
6281
6282 * genmatch.c (commutative_tree_code, commutative_ternary_tree_code):
6283 Copy from tree.c
6284 (dt_operand::gen_gimple_expr): After valueizing operands
6285 re-canonicalize operand order for commutative tree codes.
6286
6287 2015-07-03 H.J. Lu <hongjiu.lu@intel.com>
6288
6289 PR target/66746.
6290 * config/i386/ia32intrin.h (__crc32b): Don't define if __iamcu__
6291 is defined.
6292 (__crc32w): Likewise.
6293 (__crc32d): Likewise.
6294 (__rdpmc): Likewise.
6295 (__rdtscp): Likewise.
6296 (_rdpmc): Likewise.
6297 (_rdtscp): Likewise.
6298 * config/i386/x86intrin.h: Only include ia32intrin.h if __iamcu__
6299 is defined.
6300
6301 2015-07-03 Richard Biener <rguenther@suse.de>
6302
6303 * fold-const.c (fold_mathfn_compare): Remove.
6304 (fold_inf_compare): Likewise.
6305 (fold_comparison): Move floating point comparison simplifications...
6306 * match.pd: ... to patterns here. Introduce simple_comparisons
6307 operator list and use it for patterns formerly in fold_comparison.
6308
6309 2015-07-03 James Greenhalgh <james.greenhalgh@arm.com>
6310
6311 PR tree-optimization/66119
6312 * toplev.c (process_options): Don't set up default values for
6313 the sra_max_scalarization_size_{speed,size} parameters.
6314 * tree-sra (analyze_all_variable_accesses): If no values
6315 have been set for the sra_max_scalarization_size_{speed,size}
6316 parameters, call get_move_ratio to get target defaults.
6317
6318 2015-07-03 Richard Biener <rguenther@suse.de>
6319
6320 * fold-const.c (fold_binary_loc): Move (T)ptr & CST folding...
6321 * match.pd: ... here.
6322
6323 2015-07-03 Gerald Pfeifer <gerald@pfeifer.com>
6324
6325 PR target/37072
6326 * doc/invoke.texi (i386 and x86-64 Options): -mno-fancy-math-387
6327 is not actually the default on FreeBSD.
6328
6329 2015-07-02 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
6330
6331 * config/rs6000/rs6000-builtin.def (CMPGE_16QI): New built-in
6332 definition.
6333 (CMPGE_8HI): Likewise.
6334 (CMPGE_4SI): Likewise.
6335 (CMPGE_2DI): Likewise.
6336 (CMPGE_U16QI): Likewise.
6337 (CMPGE_U8HI): Likewise.
6338 (CMPGE_U4SI): Likewise.
6339 (CMPGE_U2DI): Likewise.
6340 (CMPLE_16QI): Likewise.
6341 (CMPLE_8HI): Likewise.
6342 (CMPLE_4SI): Likewise.
6343 (CMPLE_2DI): Likewise.
6344 (CMPLE_U16QI): Likewise.
6345 (CMPLE_U8HI): Likewise.
6346 (CMPLE_U4SI): Likewise.
6347 (CMPLE_U2DI): Likewise.
6348 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
6349 overloads for ALTIVEC_BUILTIN_VEC_CMPGE and
6350 ALTIVEC_BUILTIN_VEC_CMPLE.
6351 * config/rs6000/vector.md (vector_ge<mode>): Restrict to
6352 floating-point vector modes.
6353 (vector_nlt<mode>): New define_expand.
6354 (vector_nltu<mode>): Likewise.
6355 (vector_ngt<mode>): Likewise.
6356 (vector_ngtu<mode>): Likewise.
6357
6358 2015-07-02 Segher Boessenkool <segher@kernel.crashing.org>
6359
6360 PR rtl-optimization/66706
6361 * combine.c (make_compound_operation): If an AND of SUBREG of
6362 LSHIFTRT does not simplify, see if just the AND of SUBREG does.
6363
6364 2015-07-02 Alan Lawrence <alan.lawrence@arm.com>
6365
6366 * tree-pass.h (make_pass_ch_vect): New.
6367 * passes.def: Add pass_ch_vect just before pass_if_conversion.
6368
6369 * tree-ssa-loop-ch.c (ch_base, pass_ch_vect, pass_data_ch_vect,
6370 pass_ch::process_loop_p, pass_ch_vect::process_loop_p,
6371 make_pass_ch_vect): New.
6372 (pass_ch): Extend ch_base.
6373
6374 (pass_ch::execute): Move all but loop_optimizer_init/finalize to...
6375 (ch_base::copy_headers): ...here.
6376
6377 2015-07-02 Richard Biener <rguenther@suse.de>
6378
6379 * builtins.c (get_pointer_alignment_1): Handle POINTER_PLUS_EXPR.
6380 * fold-const.c (get_pointer_modulus_and_residue): Remove.
6381 (fold_binary_loc): Implement (T)ptr & CST in terms of
6382 get_pointer_alignment_1.
6383 * tree-vect-loop-manip.c (vect_gen_niters_for_prolog_loop):
6384 Make sure to build the alignment test on a SSA name without
6385 final alignment info valid only after the prologue.
6386
6387 2015-07-02 Hans-Peter Nilsson <hp@axis.com>
6388
6389 * config/cris/cris.md ("epilogue"): Remove condition.
6390 ("prologue"): Ditto.
6391
6392 2015-07-02 Richard Biener <rguenther@suse.de>
6393
6394 * tree-ssa-dom.c (build_and_record_new_cond): Add optional
6395 parameter to record a condition that is false.
6396 (record_conditions): When recording an extra NE_EXPR that is
6397 true also record a EQ_EXPR that is false.
6398
6399 2015-07-02 Bin Cheng <bin.cheng@arm.com>
6400
6401 * tree-ssa-loop-ivopts.c (struct ivopts_data): New field iv_obstack.
6402 (tree_ssa_iv_optimize_init): Initialize iv_obstack.
6403 (alloc_iv): New parameter. Allocate struct iv using obstack_alloc.
6404 (set_iv, find_interesting_uses_address, add_candidate_1): New
6405 argument to alloc_iv.
6406 (find_interesting_uses_op, find_interesting_uses_cond): Don't
6407 duplicate struct iv.
6408 (free_loop_data): Don't free struct iv explicitly.
6409 (tree_ssa_iv_optimize_finalize): Free iv_obstack.
6410
6411 2015-07-01 DJ Delorie <dj@redhat.com>
6412
6413 * config/s390/tpf.h (LIBSTDCXX): Change to CPP1.
6414 (LIB_SPEC): Add.
6415 (SUPPORTS_DISCRIMINATOR): Define.
6416
6417 2015-07-01 Richard Sandiford <richard.sandiford@arm.com>
6418
6419 PR bootstrap/66685
6420 * rtl.c (classify_insn): Only return JUMP_INSN for parallel returns if
6421 there are no CALLs in the same pattern.
6422
6423 2015-07-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
6424
6425 PR rtl-optimization/61047
6426 * rtlanal.c (get_initial_register_offset): New function.
6427 (rtx_addr_can_trap_p_1): Check offsets of stack references.
6428
6429 2015-07-01 Richard Biener <rguenther@suse.de>
6430
6431 * fold-const.c (fold_comparison): Move X - Y CMP 0 -> X CMP Y,
6432 X * C1 CMP 0 -> X CMP 0, X CMP X, ~X CMP ~Y -> Y CMP X and
6433 ~X CMP C -> X CMP' ~C to ...
6434 * match.pd: ... patterns here.
6435
6436 2015-07-01 Nick Clifton <nickc@redhat.com>
6437
6438 * config/msp430/msp430.md (zero_extendhipsi2): Use MOVX.A to store
6439 a 16-bit value into a 20-bit memory slot.
6440
6441 2015-07-01 Jiong Wang <jiong.wang@arm.com>
6442
6443 * doc/sourcebuild.texi (AArch64-specific attributes): Document
6444 "aarch64_tiny", "aarch64_small", "aarch64_large",
6445 "aarch64_little_endian", "aarch64_big_endian".
6446
6447 2015-07-01 Jiong Wang <jiong.wang@arm.com>
6448
6449 * doc/sourcebuild.texi (AArch64-specific attributes): New subsection.
6450 Document "aarch64_small_fpic".
6451
6452 2015-07-01 Jiong Wang <jiong.wang@arm.com>
6453
6454 * configure.ac: Add check for aarch64 assembler -fpic relocation
6455 modifier support.
6456 * configure: Regenerate.
6457 * config.in: Regenerate.
6458 * config/aarch64/aarch64.c (initialize_aarch64_code_model): Fall back
6459 to -fPIC if not support of -fpic relocation modifier in assembler.
6460
6461 2015-07-01 Richard Sandiford <richard.sandiford@arm.com>
6462
6463 PR bootstrap/66685
6464 * rtl.c (classify_insn): Handle returns in PARALLELs.
6465
6466 2015-07-01 Eric Botcazou <ebotcazou@adacore.com>
6467
6468 PR middle-end/66633
6469 * tree-nested.c (convert_nonlocal_omp_clauses): Initialize need_chain
6470 to true if the function is nested and if not optimizing.
6471 (convert_local_omp_clauses): Initialize need_frame to true if the
6472 function contains nested functions and if not optimizing.
6473
6474 2015-07-01 Richard Biener <rguenther@suse.de>
6475
6476 * fold-const.c (fold_binary_loc): Move ~X ^ X -> -1 and
6477 (X & Y) ^ Y -> ~X & Y transforms to ...
6478 * match.pd: ... here.
6479
6480 2015-07-01 Richard Biener <rguenther@suse.de>
6481
6482 * genmatch.c (expr::gen_transform): Shortcut re-simplifying
6483 of converts to avoid uninteresting noise from the conversion
6484 simplifying patterns.
6485
6486 2015-06-30 Sandra Loosemore <sandra@codesourcery.com>
6487
6488 * config/c6x/c6x.c (try_rename_operands): Do not depend on
6489 gcc_assert evaluating its argument for side-effect.
6490
6491 2015-06-30 Kaz Kojima <kkojima@gcc.gnu.org>
6492
6493 PR target/64833
6494 * config/sh/sh.md (casesi_worker_1): Set length to 8 when
6495 flag_pic is set.
6496
6497 2015-06-30 Eric Botcazou <ebotcazou@adacore.com>
6498
6499 * lto-streamer-out.c (class DFS): Adjust hash_scc method.
6500 (DFS::DFS): Pass this_ref_p and ref_p to hash_scc.
6501 (hash_scc): Add this_ref_p and ref_p parameters and pass them
6502 to the inner DFS walk.
6503
6504 2015-06-30 Richard Sandiford <richard.sandiford@arm.com>
6505
6506 * target-insns.def (jump): New targetm instruction pattern.
6507 * bb-reorder.c (get_uncond_jump_length): Use targetm.gen_jump
6508 instead of gen_jump.
6509 (fix_up_crossing_landing_pad): Likewise.
6510 (add_labels_and_missing_jumps): Likewise.
6511 (fix_crossing_conditional_branches): Likewise.
6512 * cfgrtl.c (try_redirect_by_replacing_jump): Likewise.
6513 (force_nonfallthru_and_redirect): Likewise.
6514 * cse.c (cse_insn): Likewise.
6515 * expmed.c (expand_divmod): Likewise.
6516 * expr.c (store_expr_with_bounds, expand_expr_real_2): Likewise.
6517 * haifa-sched.c (init_before_recovery): Likewise.
6518 (sched_create_recovery_edges): Likewise.
6519 * ifcvt.c (find_cond_trap): Likewise.
6520 * optabs.c (expand_doubleword_shift, expand_doubleword_clz): Likewise.
6521 (expand_float, expand_fix): Likewise.
6522 * stmt.c (emit_jump): Likewise.
6523
6524 2015-06-30 Richard Sandiford <richard.sandiford@arm.com>
6525
6526 * defaults.h (HAVE_load_multiple, gen_load_multiple)
6527 (HAVE_store_multiple, gen_store_multiple): Delete.
6528 * target-insns.def (load_multiple, store_multiple): New targetm
6529 instruction patterns.
6530 * expr.c (move_block_to_reg, move_block_from_reg): Use them instead
6531 of HAVE_*/gen_* interface.
6532
6533 2015-06-30 Richard Sandiford <richard.sandiford@arm.com>
6534
6535 * defaults.h (HAVE_mem_thread_fence, gen_mem_thread_fence)
6536 (HAVE_memory_barrier, gen_memory_barrier, HAVE_mem_signal_fence)
6537 (gen_mem_signal_fence): Delete.
6538 * target-insns.def (mem_signal_fence, mem_thread_fence)
6539 (memory_barrier): New targetm instruction patterns.
6540 * optabs.c (expand_mem_thread_fence): Use them instead of HAVE_*/gen_*
6541 interface.
6542 (expand_mem_signal_fence): Likewise.
6543
6544 2015-06-30 Richard Sandiford <richard.sandiford@arm.com>
6545
6546 * defaults.h (HAVE_epilogue, gen_epilogue): Delete.
6547 * target-insns.def (epilogue, prologue, sibcall_prologue): New
6548 targetm instruction patterns.
6549 * alias.c (init_alias_analysis): Use them instead of HAVE_*/gen_*
6550 interface.
6551 * calls.c (expand_call): Likewise.
6552 * cfgrtl.c (cfg_layout_finalize): Likewise.
6553 * df-scan.c (df_get_entry_block_def_set): Likewise.
6554 (df_get_exit_block_use_set): Likewise.
6555 * dwarf2cfi.c (pass_dwarf2_frame::gate): Likewise.
6556 * final.c (final_start_function): Likewise.
6557 * function.c (thread_prologue_and_epilogue_insns): Likewise.
6558 (reposition_prologue_and_epilogue_notes): Likewise.
6559 * reorg.c (find_end_label): Likewise.
6560 * toplev.c (process_options): Likewise.
6561
6562 2015-06-30 David Malcolm <dmalcolm@redhat.com>
6563
6564 * typed-splay-tree.h: New file.
6565
6566 2015-06-30 Vladimir Makarov <vmakarov@redhat.com>
6567
6568 PR debug/66691
6569 * lra-int.h (lra_substitute_pseudo): Add a parameter.
6570 (lra_substitute_pseudo_within_insn): Ditto.
6571 * lra.c (lra_substitute_pseudo): Add a parameter. Simplify subreg
6572 of constant.
6573 (lra_substitute_pseudo_within_insn): Add a parameter. Transfer it
6574 to lra_substitute_pseudo.
6575 * lra-lives.c (process_bb_lives): Add an argument to
6576 lra_substitute_pseudo_within_insn call.
6577 * lra-constraints.c (inherit_reload_reg, split_reg): Add an
6578 argument to lra_substitute_pseudo and
6579 lra_substitute_pseudo_within_insn calls.
6580 (remove_inheritance_pseudos, undo_optional_reloads): Ditto.
6581
6582 2015-06-30 H.J. Lu <hongjiu.lu@intel.com>
6583
6584 * configure: Regenerated.
6585
6586 2015-06-30 H.J. Lu <hongjiu.lu@intel.com>
6587
6588 * config.gcc: Support i[34567]86-*-elfiamcu target.
6589 * config/i386/iamcu.h: New.
6590 * config/i386/i386.opt: Add -miamcu.
6591 * doc/invoke.texi: Document -miamcu.
6592 * common/config/i386/i386-common.c (ix86_handle_option): Turn
6593 off x87/MMX/SSE/AVX codegen for -miamcu.
6594 * config/i386/i386-c.c (ix86_target_macros_internal): Define
6595 __iamcu/__iamcu__ for -miamcu.
6596 * config/i386/i386.h (PREFERRED_STACK_BOUNDARY_DEFAULT): Set
6597 to MIN_STACK_BOUNDARY if TARGET_IAMCU is true.
6598 (BIGGEST_ALIGNMENT): Set to 32 if TARGET_IAMCU is true.
6599 * config/i386/i386.c (ix86_option_override_internal): Ignore and
6600 warn -mregparm for Intel MCU. Turn on -mregparm=3 for Intel
6601 MCU by default. Default long double to 64-bit for Intel MCU.
6602 Turn on -freg-struct-return for Intel MCU. Issue an error when
6603 -miamcu is used in 64-bit or x32 mode or if x87, MMX, SSE or
6604 AVX is turned on.
6605 (function_arg_advance_32): Pass value whose size is no larger
6606 than 8 bytes in registers for Intel MCU.
6607 (function_arg_32): Likewise.
6608 (ix86_return_in_memory): Return value whose size is no larger
6609 than 8 bytes in registers for Intel MCU.
6610 (iamcu_alignment): New function.
6611 (ix86_data_alignment): Call iamcu_alignment if TARGET_IAMCU is
6612 true.
6613 (ix86_local_alignment): Don't increase alignment for Intel MCU.
6614 (x86_field_alignment): Return iamcu_alignment if TARGET_IAMCU is
6615 true.
6616
6617 2015-06-30 Marek Polacek <polacek@redhat.com>
6618
6619 * match.pd (X - (X / Y) * Y): Use convert1 and convert2. Convert
6620 both operands of the resulting expression.
6621
6622 * match.pd (~x | x): Don't use tree_nop_conversion_p. Build
6623 the final expression with the operand's type and then convert
6624 it to the type of the expression.
6625
6626 2015-06-30 Richard Biener <rguenther@suse.de>
6627
6628 * fold-const.c (fold_binary_loc): Move ~x & ~y -> ~(x | y) and
6629 ~x | ~y -> ~(x & y), (x & CST) ^ (x & CST2) -> (x & CST) | (x & CST2),
6630 (X | Y) ^ X -> Y & ~ X, ~X ^ ~Y to X ^ Y and ~X ^ C to X ^ ~C ...
6631 * match.pd: ... to patterns here.
6632
6633 2015-06-30 Richard Biener <rguenther@suse.de>
6634
6635 PR tree-optimization/66704
6636 * tree-vect-data-refs.c (vect_setup_realignment): Use
6637 make_ssa_name for non-SSA name source.
6638
6639 2015-06-30 Jakub Jelinek <jakub@redhat.com>
6640
6641 PR middle-end/66702
6642 * omp-low.c (simd_clone_adjust): Handle addressable linear
6643 or uniform parameters or non-gimple type uniform parameters.
6644
6645 2015-06-30 Richard Biener <rguenther@suse.de>
6646
6647 * fold-const.c (fold_unary_loc): Move abs(abs(x)) -> abs(x),
6648 ~ (-A) to A - 1, ~ (A - 1) or ~ (A + -1) to -A and some cases of
6649 ~(X ^ Y) to ~X ^ Y or X ^ ~Y if ~X or ~Y simplify to ...
6650 * match.pd: ... here.
6651 Add a few cases of A - B -> A + (-B) when B "easily" negates.
6652 Move (x & y) | x -> x and friends before
6653 (x | CST1) & CST2 -> (x & CST2) | (CST1 & CST2).
6654
6655 2015-06-30 Eric Botcazou <ebotcazou@adacore.com>
6656
6657 * config/sparc/leon.md (leon_load): Enable for all LEON variants if
6658 -mfix-ut699 is not specified.
6659 (leon3_load): Rename into...
6660 (ut699_load): ...this. Enable for all LEON variants if -mfix-ut699
6661 is specified.
6662
6663 2015-06-30 Marek Polacek <polacek@redhat.com>
6664
6665 * fold-const.c (fold_binary_loc): Move ~X | X folding ...
6666 * match.pd: ... here.
6667
6668 2015-06-30 Richard Biener <rguenther@suse.de>
6669
6670 * target-insns.def (canonicalize_funcptr_for_compare): Add.
6671 * fold-const.c (build_range_check): Replace uses of
6672 HAVE_canonicalize_funcptr_for_compare.
6673 (fold_widened_comparison): Likewise.
6674 (fold_sign_changed_comparison): Likewise.
6675 * dojump.c: Include "target.h".
6676 (do_compare_and_jump): Replace uses of
6677 HAVE_canonicalize_funcptr_for_compare and
6678 gen_canonicalize_funcptr_for_compare.
6679 * expr.c (do_store_flag): Likewise.
6680
6681 2015-06-30 Tom de Vries <tom@codesourcery.com>
6682
6683 PR tree-optimization/66652
6684 * tree-parloops.c (try_transform_to_exit_first_loop_alt): Use
6685 max_loop_iterations to determine if nit + 1 overflows.
6686
6687 2015-06-30 Richard Biener <rguenther@suse.de>
6688
6689 * tree-vrp.c (register_edge_assert_for_2): Also register
6690 asserts for dominating conversion results.
6691
6692 2015-06-30 Bin Cheng <bin.cheng@arm.com>
6693
6694 * tree-ssa-loop-ivopts.c (record_sub_use): Don't reset ssa_name
6695 field in struct iv.
6696
6697 2015-06-29 Jack Howarth <howarth.at.gcc@gmail.com>
6698
6699 PR target/66509
6700 * configure.ac: Fix filds and fildq test for 64-bit.
6701 * configure: Regenerated.
6702
6703 2015-06-29 Nathan Sidwell <nathan@codesourcery.com>
6704
6705 * config/nvptx/nvptx.md (nvptx_reorg_subreg): New fn, broken out of ...
6706 (nvptx_reorg): Here. Keep the non-subreg pieces.
6707
6708 2015-06-29 H.J. Lu <hongjiu.lu@intel.com>
6709
6710 * config/gnu-user.h (GNU_USER_TARGET_ENDFILE_SPEC): Use
6711 PIE_SPEC and NO_PIE_SPEC if HAVE_LD_PIE is defined.
6712
6713 2015-06-29 Uros Bizjak <ubizjak@gmail.com>
6714
6715 * config/i386/i386.md (*jcc_1): Use %! in asm template.
6716 Set attribute "length_nobnd" instead of "length".
6717 (*jcc_2): Ditto.
6718 (jump): Ditto.
6719 (*jcc_1_bnd, *jcc_2_bnd, jump_bnd): Remove insn patterns.
6720
6721 2015-06-29 Sandra Loosemore <sandra@codesourcery.com>
6722
6723 * config/nios2/nios2.c (nios2_delegitimize_address): Make
6724 assert less restrictive.
6725
6726 2015-06-29 Manuel López-Ibáñez <manu@gcc.gnu.org>
6727
6728 PR fortran/66605
6729 * cgraphunit.c (cgraph_node::finalize_function): Do not call
6730 do_warn_unused_parameter.
6731 * function.c (do_warn_unused_parameter): Move from here.
6732 * function.h (do_warn_unused_parameter): Do not declare.
6733
6734 2015-06-29 Matthew Wahab <matthew.wahab@arm.com>
6735
6736 PR target/65697
6737 * gcc.target/arm/armv-sync-comp-swap.c: New.
6738 * gcc.target/arm/armv-sync-op-acquire.c: New.
6739 * gcc.target/arm/armv-sync-op-full.c: New.
6740 * gcc.target/arm/armv-sync-op-release.c: New.
6741
6742 2015-06-29 Matthew Wahab <matthew.wahab@arm.com>
6743
6744 PR target/65697
6745 * config/armc/arm.c (arm_split_compare_and_swap): For ARMv8, replace an
6746 initial acquire barrier with final barrier.
6747
6748 2015-06-29 Matthew Wahab <matthew.wahab@arm.com>
6749
6750 PR target/65697
6751 * config/armc/arm.c (arm_split_atomic_op): For ARMv8, replace an
6752 initial acquire barrier with final barrier.
6753
6754 2015-06-29 Richard Henderson <rth@redhat.com>
6755
6756 * config/i386/constraints.md (Bf): New constraint.
6757 * config/i386/i386-c.c (ix86_target_macros): Define
6758 __GCC_ASM_FLAG_OUTPUTS__.
6759 * config/i386/i386.c (ix86_md_asm_adjust): Handle =@cc* constraints
6760 as flags outputs.
6761 * doc/extend.texi (FlagOutputOperands): Document them.
6762
6763 2015-06-29 Jiong Wang <jiong.wang@arm.com>
6764
6765 * config/arch64/aarch64.md (UNSPEC_TLSLE): New enumeration.
6766 * config/arch64/aarch64.md (tlsle_small): Rename to tlsle and use new
6767 unspec name.
6768 (tlsle_small_<mode>): Rename to tlsle_<mode> and use new unspec name.
6769 * config/arch64/aarch64-protos.h (arch64_symbol_type): Rename
6770 SYMBOL_SMALL_TPREL to SYMBOL_TLSLE.
6771 (aarch64_symbol_context): Ditto.
6772 * config/aarch64/aarch64.c (aarch64_load_symref_appropriately): Ditto
6773 and use new pattern name.
6774 (aarch64_expand_mov_immediate): Ditto.
6775 (aarch64_print_operand): Ditto.
6776 (aarch64_classify_tls_symbol): Ditto.
6777
6778 2015-06-29 Marek Polacek <polacek@redhat.com>
6779 Marc Glisse <marc.glisse@inria.fr>
6780
6781 * fold-const.c (fold_binary_loc): Move X - (X / Y) * Y -> X % Y to ...
6782 * match.pd: ... pattern here.
6783
6784 2015-06-29 Tom de Vries <tom@codesourcery.com>
6785
6786 * tree-parloops.c (try_transform_to_exit_first_loop_alt): Simplify
6787 function structure.
6788
6789 2015-06-29 Matthew Wahab <matthew.wahab@arm.com>
6790
6791 * doc/invoke.texi (Aarch64 Options, -march): Split out arch and
6792 feature description, split out the native option, add a link to
6793 the feature documentation, rearrange and slightly rewrite text.
6794 (Aarch64 options, -mcpu): Likewise.
6795 (Aarch64 options, Feature Modifiers): Add an anchor. Mention
6796 +rdma implies Adv. SIMD.
6797
6798 2015-06-29 Marek Polacek <polacek@redhat.com>
6799
6800 PR c/66322
6801 * function.c (stack_protect_epilogue): Remove a cast to int.
6802 * doc/invoke.texi: Update -Wswitch-bool description.
6803
6804 2015-06-29 Richard Biener <rguenther@suse.de>
6805
6806 * genmatch.c (add_operator): Treat ADDR_EXPR as atom.
6807 * fold-const.c (fold_binary_loc): Move &A - &B simplification
6808 via ptr_difference_const ...
6809 * match.pd: ... here.
6810 When matching (X ^ Y) == Y also match with swapped operands.
6811
6812 2015-06-29 Richard Biener <rguenther@suse.de>
6813
6814 * lto-streamer.h (LTO_major_version): Bump to 5.
6815
6816 2015-06-29 Richard Biener <rguenther@suse.de>
6817
6818 PR tree-optimization/66677
6819 * tree-vect-stmts.c (vect_transform_stmt): Make assert about
6820 STMT_VINFO_VEC_STMT clobbering less strict.
6821
6822 2015-06-29 Kugan Vivekanandarajah <kuganv@linaro.org>
6823
6824 PR middle-end/64130
6825 * tree-vrp.c (extract_range_from_binary_expr_1): For unsigned
6826 division, compute max and min when value ranges for dividend and
6827 divisor are available.
6828
6829 2015-06-28 Chung-Lin Tang <cltang@codesourcery.com>
6830 Sandra Loosemore <sandra@codesourcery.com>
6831
6832 * regrename.h (regrename_do_replace): Change to return bool.
6833 * regrename.c (rename_chains): Check return value of
6834 regname_do_replace.
6835 (regrename_do_replace): Re-validate the modified insns and
6836 return bool status.
6837 * config/aarch64/cortex-a57-fma-steering.c (rename_single_chain):
6838 Update to match rename_chains changes.
6839 * config/c6x/c6x.c (try_rename_operands): Assert that
6840 regrename_do_replace returns true.
6841
6842 2015-06-28 Uros Bizjak <ubizjak@gmail.com>
6843
6844 * config/i386/i386.md (<mode>_ldx): Do not zero-extend non-Pmode
6845 operand 2 here. Use copy_addr_to_reg to copy non-index
6846 register operand 2 to a temporary.
6847 (<mode>_stx): Ditto for operand 1.
6848 (*<mode>_ldx, *<mode>_stx): Remove enclosing parallel.
6849 * config/i386/i386.c (ix86_load_bounds): Zero-extend non-Pmode ptr here.
6850 (ix86_store_bounds): Ditto.
6851
6852 2015-06-27 Patrick Palka <ppalka@gcc.gnu.org>
6853
6854 * print-tree.c (print_node) [TREE_VEC]: Print its length.
6855
6856 2015-06-26 Andrew MacLeod <amacleod@redhat.com>
6857
6858 * gimple.c (gimple_call_set_fndecl): Remove.
6859 * gimple.h (gimple_call_set_fndecl): Relocate to gimple.h and call
6860 build1_loc directly instead of build_fold_addr_expr_loc.
6861
6862 2015-06-26 Richard Sandiford <richard.sandiford@arm.com>
6863
6864 * hash-map.h (hash_map::traverse): Use the definition of the
6865 Key typedef rather than the typedef itself.
6866
6867 2015-06-26 Martin Jambor <mjambor@suse.cz>
6868
6869 PR debug/66301
6870 * tree-ssa-pre.c (before_dom_children): Check that dump_file is not
6871 NULL instead of calling dump_enabled_p.
6872
6873 2015-06-26 James Greenhalgh <james.greenhalgh@arm.com>
6874
6875 * config/aarch64/aarch64.opt: (override): New.
6876 * doc/invoke.texi (override): Document.
6877 * config/aarch64/aarch64.c (aarch64_flag_desc): New
6878 (aarch64_fusible_pairs): Likewise.
6879 (aarch64_tuning_flags): Likewise.
6880 (aarch64_tuning_override_function): Likewise.
6881 (aarch64_tuning_override_functions): Likewise.
6882 (aarch64_parse_one_option_token): Likewise.
6883 (aarch64_parse_boolean_options): Likewise.
6884 (aarch64_parse_fuse_string): Likewise.
6885 (aarch64_parse_tune_string): Likewise.
6886 (aarch64_parse_one_override_token): Likewise.
6887 (aarch64_parse_override_string): Likewise.
6888 (aarch64_override_options): Parse the -override string if it
6889 is present.
6890
6891 2015-06-26 James Greenhalgh <james.greenhalgh@arm.com>
6892
6893 * config/aarch64/aarch64-protos.h (tune_params): Remove
6894 const from members.
6895 (aarch64_tune_params): Remove const, change to no longer be
6896 a pointer.
6897 * config/aarch64/aarch64.c (aarch64_tune_params): Remove const,
6898 change to no longer be a pointer, initialize to generic_tunings.
6899 (aarch64_min_divisions_for_recip_mul): Change dereference of
6900 aarch64_tune_params to member access.
6901 (aarch64_reassociation_width): Likewise.
6902 (aarch64_rtx_mult_cost): Likewise.
6903 (aarch64_address_cost): Likewise.
6904 (aarch64_branch_cost): Likewise.
6905 (aarch64_rtx_costs): Likewise.
6906 (aarch64_register_move_cost): Likewise.
6907 (aarch64_memory_move_cost): Likewise.
6908 (aarch64_sched_issue_rate): Likewise.
6909 (aarch64_builtin_vectorization_cost): Likewise.
6910 (aarch64_override_options): Take a copy of the selected tuning
6911 struct in to aarch64_tune_params, rather than just setting
6912 a pointer, change dereferences of aarch64_tune_params to member
6913 accesses.
6914 (aarch64_override_options_after_change): Change dereferences of
6915 aarch64_tune_params to member access.
6916 (aarch64_macro_fusion_p): Likewise.
6917 (aarch_macro_fusion_pair_p): Likewise.
6918 * config/aarch64/cortex-a57-fma-steering.c (gate): Likewise.
6919
6920 2015-06-26 James Greenhalgh <james.greenhalgh@arm.com>
6921
6922 * config/aarch64/aarch64.h (AARCH64_FL_USE_FMA_STEERING_PASS): Delete.
6923 (aarch64_tune_flags): Likewise.
6924 (AARCH64_TUNE_FMA_STEERING): Likewise.
6925 * config/aarch64/aarch64-cores.def (cortex-a57): Remove reference
6926 to AARCH64_FL_USE_FMA_STEERING_PASS.
6927 (cortex-a57.cortex-a53): Likewise.
6928 (cortex-a72): Use cortexa72_tunings.
6929 (cortex-a72.cortex-a53): Likewise.
6930 (exynos-m1): Likewise.
6931 * config/aarch64/aarch64-protos.h (tune_params): Add
6932 a field: extra_tuning_flags.
6933 * config/aarch64/aarch64-tuning-flags.def: New.
6934 * config/aarch64/aarch64-protos.h (AARCH64_EXTRA_TUNING_OPTION): New.
6935 (aarch64_extra_tuning_flags): Likewise.
6936 (aarch64_tune_params): Declare here.
6937 * config/aarch64/aarch64.c (generic_tunings): Set extra_tuning_flags.
6938 (cortexa53_tunings): Likewise.
6939 (cortexa57_tunings): Likewise.
6940 (thunderx_tunings): Likewise.
6941 (xgene1_tunings): Likewise.
6942 (cortexa72_tunings): New.
6943 * config/aarch64/cortex-a57-fma-steering.c: Include aarch64-protos.h.
6944 (gate): Check against aarch64_tune_params.
6945 * config/aarch64/t-aarch64 (cortex-a57-fma-steering.o): Depend on
6946 aarch64-protos.h.
6947
6948 2015-06-26 James Greenhalgh <james.greenhalgh@arm.com>
6949
6950 * config/aarch64/aarch64-fusion-pairs.def: New.
6951 * config/aarch64/aarch64-protos.h (aarch64_fusion_pairs): New.
6952 * config/aarch64/aarch64.c (AARCH64_FUSE_NOTHING): Move to
6953 aarch64_fusion_pairs.
6954 (AARCH64_FUSE_MOV_MOVK): Likewise.
6955 (AARCH64_FUSE_ADRP_ADD): Likewise.
6956 (AARCH64_FUSE_MOVK_MOVK): Likewise.
6957 (AARCH64_FUSE_ADRP_LDR): Likewise.
6958 (AARCH64_FUSE_CMP_BRANCH): Likewise.
6959
6960 2015-06-26 Jiong Wang <jiong.wang@arm.com>
6961
6962 * config/aarch64/aarch64-protos.h (aarch64_symbol_type): New type
6963 SYMBOL_SMALL_GOT_28K.
6964 * config/aarch64/aarch64.md: (ldr_got_small_<mode>): Support new GOT
6965 relocation modifiers.
6966 (unspec): New enum "UNSPEC_GOTMALLPIC28K.
6967 (ldr_got_small_28k_<mode>): New.
6968 (ldr_got_small_28k_sidi): New.
6969 * config/aarch64/iterators.md (got_modifier): New mode iterator.
6970 * config/aarch64/aarch64-otps.h (aarch64_code_model): New model.
6971 * config/aarch64/aarch64.c (aarch64_load_symref_appropriately): Support
6972 SYMBOL_SMALL_GOT_28K.
6973 (aarch64_rtx_costs): Add costs for new instruction sequences.
6974 (initialize_aarch64_code_model): Initialize new model.
6975 (aarch64_classify_symbol): Recognize new model and new symbol classification.
6976 (aarch64_asm_preferred_eh_data_format): Support new model.
6977 (aarch64_load_symref_appropriately): Generate new instruction
6978 sequences for -fpic.
6979 (TARGET_USE_PSEUDO_PIC_REG): New definition.
6980 (aarch64_use_pseudo_pic_reg): New function.
6981
6982 2015-06-26 Jiong Wang <jiong.wang@arm.com>
6983
6984 * config/aarch64/aarch64-protos.h (aarch64_symbol_type): Rename
6985 SYMBOL_SMALL_GOT to SYMBOL_SMALL_GOT_4G.
6986 * config/aarch64/aarch64.c (aarch64_load_symref_appropriately): Ditto.
6987 (aarch64_expand_mov_immediate): Ditto.
6988 (aarch64_print_operand): Ditto.
6989 (aarch64_classify_symbol): Ditto.
6990
6991 2015-06-26 Nathan Sidwell <nathan@codesourcery.com>
6992
6993 * config/nvptx/nvptx.md (call_operation): Remove unused variables.
6994
6995 2015-06-26 Bin Cheng <bin.cheng@arm.com>
6996
6997 PR bootstrap/66638
6998 * tree-ssa-loop-niter.c (loop_exits_before_overflow): Skip if
6999 assertion failed. Remove assertion itself.
7000
7001 2015-06-26 Richard Biener <rguenther@suse.de>
7002
7003 * fold-const.c (fold_binary_loc): Remove -A CMP -B -> A CMP B
7004 and -A CMP CST -> A CMP -CST which is redundant with a pattern
7005 in match.pd.
7006 Move (A | C) == D where C & ~D != 0 -> 0, (X ^ Y) ==/!= 0 -> X ==/!= Y,
7007 (X ^ Y) ==/!= {Y,X} -> {X,Y} ==/!= 0 and
7008 (X ^ C1) op C2 -> X op (C1 ^ C2) to ...
7009 * match.pd: ... patterns here.
7010
7011 2015-06-26 Marek Polacek <polacek@redhat.com>
7012
7013 * match.pd ((x | y) & ~(x & y) -> x ^ y,
7014 (x | y) & (~x ^ y) -> x & y): New patterns.
7015
7016 2015-06-26 Richard Sandiford <richard.sandiford@arm.com>
7017
7018 * rtl.h (emit): Add an optional boolean parameter to control
7019 whether barriers are emitted.
7020 * emit-rtl.c (emit): Likewise.
7021 * gensupport.c (get_emit_function): Return null rather than "emit".
7022 * genemit.c (gen_emit_seq): Handle the null return value.
7023 Don't emit barriers after the final instruction in the sequence.
7024 * gentarget-def.c (main): Don't emit barriers after the instruction.
7025
7026 2015-06-26 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
7027
7028 * config/arm/arm.c (arm_output_multireg_pop): Fix use of
7029 TARGET_UNIFIED_ASM.
7030
7031 2015-06-26 Richard Biener <rguenther@suse.de>
7032
7033 * match.pd: Allow associating FLOAT_TYPE_P when flag_associative_math.
7034
7035 2015-06-26 Richard Biener <rguenther@suse.de>
7036
7037 * match.pd: Allow (p +p off1) +p off2 to (p +p (off1 + off2))
7038 irrespective on whether the inner operation has a single use
7039 of both off are constant.
7040
7041 2015-06-26 Uros Bizjak <ubizjak@gmail.com>
7042 Segher Boessenkool <segher@kernel.crashing.org>
7043
7044 PR target/66412
7045 * config/i386/i386.md (various splitters): Use shallow_copy_rtx
7046 before doing PUT_MODE or PUT_CODE on operands to avoid
7047 in-place RTX modification.
7048
7049 2015-06-25 H.J. Lu <hongjiu.lu@intel.com>
7050
7051 * gentarget-def.c (def_target_insn): Cast return of strtol to
7052 unsigned int.
7053
7054 2015-06-25 Andrew MacLeod <amacleod@redhat.com>
7055
7056 * gimple.h (gimple_call_set_fn): Move inline function.
7057 * gimple.c (gimple_call_set_fn): Relocate here.
7058
7059 2015-06-25 Oleg Endo <olegendo@gcc.gnu.org>
7060
7061 PR target/65979
7062 PR target/66611
7063 * config/sh/sh.md (tstsi_t peephole2): Use insn_invalid_p to check if
7064 the replacement insn will work.
7065
7066 2015-06-25 H.J. Lu <hongjiu.lu@intel.com>
7067
7068 * gcc.c (driver_handle_option): Validate -pie if PIE is enabled
7069 by default.
7070
7071 2015-06-25 Andrew MacLeod <amacleod@redhat.com>
7072
7073 * function.h (ipa_opt_pass, ipa_opt_pass_d): Move forward declarations.
7074 * cgraph.h: Include ipa-ref.h and plugin-api.h.
7075 (ipa_opt_pass, ipa_opt_pass_d)): Relocate forward declarations here.
7076 (symtab_node::address_can_be_compared_p): Move function.
7077 * cgraph.c (symtab_node::address_can_be_compared_p): Relocate function
7078 definition here.
7079 * asan.c: Remove ipa-ref.h and plugin-api.h from include list.
7080 * auto-profile.c: Likewise.
7081 * bb-reorder.c: Likewise.
7082 * builtins.c: Likewise.
7083 * calls.c: Likewise.
7084 * cfgexpand.c: Likewise.
7085 * cgraphbuild.c: Likewise.
7086 * cgraphclones.c: Likewise.
7087 * cgraphunit.c: Likewise.
7088 * combine.c: Likewise.
7089 * coverage.c: Likewise.
7090 * data-streamer-in.c: Likewise.
7091 * data-streamer-out.c: Likewise.
7092 * data-streamer.c: Likewise.
7093 * dbxout.c: Likewise.
7094 * dwarf2out.c: Likewise.
7095 * except.c: Likewise.
7096 * expr.c: Likewise.
7097 * final.c: Likewise.
7098 * fold-const.c: Likewise.
7099 * ggc-page.c: Likewise.
7100 * gimple-fold.c: Likewise.
7101 * gimple-iterator.c: Likewise.
7102 * gimple-pretty-print.c: Likewise.
7103 * gimple-streamer-in.c: Likewise.
7104 * gimple-streamer-out.c: Likewise.
7105 * gimple.c: Likewise.
7106 * gimplify.c: Likewise.
7107 * ipa-chkp.c: Likewise.
7108 * ipa-comdats.c: Likewise.
7109 * ipa-cp.c: Likewise.
7110 * ipa-devirt.c: Likewise.
7111 * ipa-icf-gimple.c: Likewise.
7112 * ipa-icf.c: Likewise.
7113 * ipa-inline-analysis.c: Likewise.
7114 * ipa-inline-transform.c: Likewise.
7115 * ipa-inline.c: Likewise.
7116 * ipa-polymorphic-call.c: Likewise.
7117 * ipa-profile.c: Likewise.
7118 * ipa-prop.c: Likewise.
7119 * ipa-pure-const.c: Likewise.
7120 * ipa-ref.c: Likewise.
7121 * ipa-reference.c: Likewise.
7122 * ipa-split.c: Likewise.
7123 * ipa-utils.c: Likewise.
7124 * ipa-visibility.c: Likewise.
7125 * ipa.c: Likewise.
7126 * langhooks.c: Likewise.
7127 * lto-cgraph.c: Likewise.
7128 * lto-compress.c: Likewise.
7129 * lto-opts.c: Likewise.
7130 * lto-section-in.c: Likewise.
7131 * lto-section-out.c: Likewise.
7132 * lto-streamer-in.c: Likewise.
7133 * lto-streamer-out.c: Likewise.
7134 * lto-streamer.c: Likewise.
7135 * omp-low.c: Likewise.
7136 * opts-global.c: Likewise.
7137 * passes.c: Likewise.
7138 * predict.c: Likewise.
7139 * print-tree.c: Likewise.
7140 * profile.c: Likewise.
7141 * ree.c: Likewise.
7142 * sanopt.c: Likewise.
7143 * stor-layout.c: Likewise.
7144 * symtab.c: Likewise.
7145 * toplev.c: Likewise.
7146 * trans-mem.c: Likewise.
7147 * tree-cfg.c: Likewise.
7148 * tree-chkp.c: Likewise.
7149 * tree-eh.c: Likewise.
7150 * tree-emutls.c: Likewise.
7151 * tree-inline.c: Likewise.
7152 * tree-nested.c: Likewise.
7153 * tree-parloops.c: Likewise.
7154 * tree-pretty-print.c: Likewise.
7155 * tree-profile.c: Likewise.
7156 * tree-sra.c: Likewise.
7157 * tree-ssa-alias.c: Likewise.
7158 * tree-ssa-live.c: Likewise.
7159 * tree-ssa-loop-ivcanon.c: Likewise.
7160 * tree-ssa-loop-ivopts.c: Likewise.
7161 * tree-ssa-pre.c: Likewise.
7162 * tree-ssa-sccvn.c: Likewise.
7163 * tree-ssa-strlen.c: Likewise.
7164 * tree-ssa-structalias.c: Likewise.
7165 * tree-streamer-in.c: Likewise.
7166 * tree-streamer-out.c: Likewise.
7167 * tree-streamer.c: Likewise.
7168 * tree-switch-conversion.c: Likewise.
7169 * tree-tailcall.c: Likewise.
7170 * tree-vect-data-refs.c: Likewise.
7171 * tree-vect-stmts.c: Likewise.
7172 * tree-vectorizer.c: Likewise.
7173 * tree.c: Likewise.
7174 * tsan.c: Likewise.
7175 * ubsan.c: Likewise.
7176 * value-prof.c: Likewise.
7177 * varasm.c: Likewise.
7178 * varpool.c: Likewise.
7179 * config/arm/arm.c: Likewise.
7180 * config/bfin/bfin.c: Likewise.
7181 * config/c6x/c6x.c: Likewise.
7182 * config/cris/cris.c: Likewise.
7183 * config/darwin-c.c: Likewise.
7184 * config/darwin.c: Likewise.
7185 * config/i386/i386.c: Likewise.
7186 * config/i386/winnt.c: Likewise.
7187 * config/microblaze/microblaze.c: Likewise.
7188 * config/mips/mips.c: Likewise.
7189 * config/rs6000/rs6000.c: Likewise.
7190 * config/rx/rx.c: Likewise.
7191 * config/s390/s390.c: Likewise.
7192 * config/tilegx/mul-tables.c: Likewise.
7193
7194 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
7195
7196 * config/aarch64/aarch64.c, config/alpha/alpha.c,
7197 config/arm/arm.c, config/avr/avr.c, config/bfin/bfin.c,
7198 config/c6x/c6x.c, config/cr16/cr16.c, config/cris/cris.c,
7199 config/fr30/fr30.c, config/frv/frv.c, config/h8300/h8300.c,
7200 config/i386/i386.c, config/ia64/ia64.c, config/iq2000/iq2000.c,
7201 config/lm32/lm32.c, config/m32c/m32c.c, config/m32r/m32r.c,
7202 config/m68k/m68k.c, config/mcore/mcore.c, config/mep/mep.c,
7203 config/microblaze/microblaze.c, config/mips/mips.c,
7204 config/mmix/mmix.c, config/mn10300/mn10300.c,
7205 config/moxie/moxie.c, config/msp430/msp430.c,
7206 config/nds32/nds32.c, config/nios2/nios2.c, config/nvptx/nvptx.c,
7207 config/pa/pa.c, config/pdp11/pdp11.c, config/rl78/rl78.c,
7208 config/rs6000/rs6000.c, config/rx/rx.c, config/s390/s390.c,
7209 config/sh/sh.c, config/sparc/sparc.c, config/spu/spu.c,
7210 config/stormy16/stormy16.c, config/tilegx/tilegx.c,
7211 config/tilepro/tilepro.c, config/v850/v850.c, config/vax/vax.c,
7212 config/visium/visium.c, config/xtensa/xtensa.c: Add comment above
7213 target-def.h include.
7214 * config/ft32/ft32.c: Likewise. Fix misapplied hunk.
7215
7216 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
7217
7218 * Makefile.in (TARGET_DEF): Add target-insns.def.
7219 (.PRECIOUS, simple_rtl_generated_h): Add insn-target-def.h.
7220 (build/gentarget-def.o): New rule.
7221 (genprogrtl): Add target-def.
7222 * target-insns.def, gentarget-def.c: New files.
7223 * target.def: Add targetm.have_* and targetm.gen_* hooks,
7224 based on the contents of target-insns.def.
7225 * defaults.h (HAVE_simple_return, gen_simple_return): Delete.
7226 (HAVE_return, gen_return): Delete.
7227 * target-def.h: Include insn-target-def.h.
7228 * cfgrtl.c (force_nonfallthru_and_redirect): Use targetm interface
7229 instead of direct calls. Rely on them to do the appropriate assertions.
7230 * function.c (gen_return_pattern): Likewise. Return an rtx_insn *.
7231 (convert_jumps_to_returns): Use targetm interface instead of
7232 direct calls.
7233 (thread_prologue_and_epilogue_insns): Likewise.
7234 * reorg.c (find_end_label, dbr_schedule): Likewise.
7235 * shrink-wrap.h (SHRINK_WRAPPING_ENABLED): Likewise.
7236 * shrink-wrap.c (convert_to_simple_return): Likewise.
7237 (try_shrink_wrapping): Use SHRINK_WRAPPING_ENABLED.
7238
7239 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
7240
7241 * config/aarch64/aarch64.c, config/alpha/alpha.c, config/arm/arm.c,
7242 config/avr/avr.c, config/bfin/bfin.c, config/c6x/c6x.c,
7243 config/cr16/cr16.c, config/cris/cris.c, config/fr30/fr30.c,
7244 config/frv/frv.c, config/ft32/ft32.c, config/h8300/h8300.c,
7245 config/i386/i386.c, config/ia64/ia64.c, config/iq2000/iq2000.c,
7246 config/lm32/lm32.c, config/m32c/m32c.c, config/m32r/m32r.c,
7247 config/m68k/m68k.c, config/mcore/mcore.c, config/mep/mep.c,
7248 config/microblaze/microblaze.c, config/mips/mips.c, config/mmix/mmix.c,
7249 config/mn10300/mn10300.c, config/moxie/moxie.c, config/msp430/msp430.c,
7250 config/nds32/nds32.c, config/nios2/nios2.c, config/nvptx/nvptx.c,
7251 config/pa/pa.c, config/pdp11/pdp11.c, config/rl78/rl78.c,
7252 config/rs6000/rs6000.c, config/rx/rx.c, config/s390/s390.c,
7253 config/sh/sh.c, config/sparc/sparc.c, config/spu/spu.c,
7254 config/stormy16/stormy16.c, config/tilegx/tilegx.c,
7255 config/tilepro/tilepro.c, config/v850/v850.c, config/vax/vax.c,
7256 config/visium/visium.c, config/xtensa/xtensa.c: Move target-def.h
7257 includes to end.
7258
7259 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
7260
7261 * hash-map-traits.h (simple_hashmap_traits::key_type): New typedef.
7262 (unbounded_int_hashmap_traits::key_type): Likewise.
7263 * hash-map.h (hash_map): Get the key type from the traits.
7264 * hash-traits.h (default_hash_traits): By default, inherit from the
7265 template parameter.
7266 * alias.c (alias_set_traits): Delete.
7267 (alias_set_entry_d::children): Use alias_set_hash as the first
7268 template parameter.
7269 (record_alias_subset): Update accordingly.
7270 * except.c (tree_hash_traits): Delete.
7271 (type_to_runtime_map): Use tree_hash as the first template parameter.
7272 (init_eh): Update accordingly.
7273 * genmatch.c (capture_id_map_hasher): Delete.
7274 (cid_map_t): Use nofree_string_hash as first template parameter.
7275 * ipa-icf.h (symbol_compare_hashmap_traits): Delete.
7276 * ipa-icf.c (sem_item_optimizer::subdivide_classes_by_sensitive_refs):
7277 Use symbol_compare_hash as the first template parameter in
7278 subdivide_hash_map.
7279 * mem-stats.h (mem_usage_pair::mem_alloc_hashmap_traits): Delete.
7280 (mem_usage_pair::mem_map_t): Use mem_location_hash as the first
7281 template parameter.
7282 * passes.c (pass_registry_hasher): Delete.
7283 (name_to_pass_map): Use nofree_string_hash as the first template
7284 parameter.
7285 (register_pass_name): Update accordingly.
7286 * sanopt.c (sanopt_tree_map_traits): Delete.
7287 (sanopt_tree_triplet_map_traits): Delete.
7288 (sanopt_ctx::asan_check_map): Use tree_operand_hash as the first
7289 template parameter.
7290 (sanopt_ctx::vptr_check_map): Use sanopt_tree_triplet_hash as
7291 the first template parameter.
7292 * sese.c (rename_map_hasher): Delete.
7293 (rename_map_type): Use tree_ssa_name_hash as the first template
7294 parameter.
7295 * symbol-summary.h (function_summary::summary_hashmap_traits): Delete.
7296 (function_summary::m_map): Use map_hash as the first template
7297 parameter.
7298 (function_summary::release): Update accordingly.
7299 * tree-if-conv.c (phi_args_hash_traits): Delete.
7300 (predicate_scalar_phi): Use tree_operand_hash as the first template
7301 parameter to phi_arg_map.
7302 * tree-inline.h (dependence_hasher): Delete.
7303 (copy_body_data::dependence_map): Use dependence_hash as the first
7304 template parameter.
7305 * tree-inline.c (remap_dependence_clique): Update accordingly.
7306 * tree-ssa-strlen.c (stridxlist_hash_traits): Delete.
7307 (decl_to_stridxlist_htab): Use tree_decl_hash as the first template
7308 parameter.
7309 (addr_stridxptr): Update accordingly.
7310 * value-prof.c (profile_id_traits): Delete.
7311 (cgraph_node_map): Use profile_id_hash as the first template
7312 parameter.
7313 (init_node_map): Update accordingly.
7314 * config/alpha/alpha.c (string_traits): Delete.
7315 (machine_function::links): Use nofree_string_hash as the first
7316 template parameter.
7317 (alpha_use_linkage, alpha_write_linkage): Update accordingly.
7318 * config/m32c/m32c.c (pragma_traits): Delete.
7319 (pragma_htab): Use nofree_string_hash as the first template parameter.
7320 (m32c_note_pragma_address): Update accordingly.
7321 * config/mep/mep.c (pragma_traits): Delete.
7322 (pragma_htab): Use nofree_string_hash as the first template parameter.
7323 (mep_note_pragma_flag): Update accordingly.
7324 * config/mips/mips.c (mips16_flip_traits): Delete.
7325 (mflip_mips16_htab): Use nofree_string_hash as the first template
7326 parameter.
7327 (mflip_mips16_use_mips16_p): Update accordingly.
7328 (local_alias_traits): Delete.
7329 (mips16_local_aliases): Use nofree_string_hash as the first template
7330 parameter.
7331 (mips16_local_alias): Update accordingly.
7332
7333 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
7334
7335 * hash-map-traits.h (default_hashmap_traits): Delete.
7336
7337 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
7338
7339 * hash-map-traits.h (unbounded_hashmap_traits): New class.
7340 (unbounded_int_hashmap_traits): Likewise.
7341 * cfgexpand.c (part_traits): Use unbounded_int_hashmap_traits.
7342
7343 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
7344
7345 * ipa-icf.h (symbol_compare_hash): New class.
7346 (symbol_compare_hashmap_traits): Use it.
7347 * mem-stats.h (mem_alloc_description::mem_location_hash): New class.
7348 (mem_alloc_description::mem_alloc_hashmap_traits): Use it.
7349 (mem_alloc_description::reverse_mem_map_t): Remove redundant
7350 default_hashmap_traits.
7351 * sanopt.c (sanopt_tree_triplet_hash): New class.
7352 (sanopt_tree_triplet_map_traits): Use it.
7353
7354 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
7355
7356 * gengtype-parse.c (require_template_declaration): Allow '+' in
7357 template parameters. Consolidate cases.
7358 * hash-traits.h (int_hash): New class.
7359 * alias.c (alias_set_hash): New structure.
7360 (alias_set_traits): Use it.
7361 * symbol-summary.h (function_summary::map_hash): New class.
7362 (function_summary::summary_hashmap_traits): Use it.
7363 * tree-inline.h (dependence_hash): New class.
7364 (dependence_hasher): Use it.
7365 * tree-ssa-reassoc.c (oecount_hasher): Use int_hash.
7366 * value-prof.c (profile_id_hash): New class.
7367 (profile_id_traits): Use it.
7368
7369 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
7370
7371 * config/mips/mips.c (mips16_flip_traits): Use it.
7372 (local_alias_traits, mips16_local_aliases): Convert from a map of
7373 rtxes to a map of symbol names.
7374 (mips16_local_alias): Update accordingly.
7375
7376 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
7377
7378 * hash-traits.h (string_hash, nofree_string_hash): New classes.
7379 * genmatch.c (capture_id_map_hasher): Use nofree_string_hash.
7380 * passes.c (pass_registry_hasher): Likewise.
7381 * config/alpha/alpha.c (string_traits): Likewise.
7382 * config/i386/winnt.c (i386_find_on_wrapper_list): Likewise.
7383 * config/m32c/m32c.c (pragma_traits): Likewise.
7384 * config/mep/mep.c (pragma_traits): Likewise.
7385
7386 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
7387
7388 * tree-hash-traits.h (tree_hash): New class.
7389 * except.c: Include tree-hash-traits.h.
7390 (tree_hash_traits): Use tree_hash.
7391
7392 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
7393
7394 * tree-hash-traits.h (tree_ssa_name_hasher): New class.
7395 * sese.c: Include tree-hash-traits.h.
7396 (rename_map_hasher): Use tree_ssa_name_hasher.
7397
7398 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
7399
7400 * tree-hash-traits.h (tree_decl_hash): New class.
7401 * tree-ssa-strlen.c: Include tree-hash-traits.h.
7402 (stridxlist_hash_traits): Use tree_decl_hash.
7403
7404 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
7405
7406 * tree-hash-traits.h: New file.
7407 (tree_operand_hash): New class.
7408 * sanopt.c: Include tree-hash-traits.h.
7409 (sanopt_tree_map_traits): Use tree_operand_hash.
7410 * tree-if-conv.c: Include tree-hash-traits.h.
7411 (phi_args_hash_traits): Use tree_operand_hash.
7412 * tree-ssa-uncprop.c: Include tree-hash-traits.h.
7413 (val_ssa_equiv_hash_traits): Use tree_operand_hash.
7414
7415 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
7416
7417 * hash-map-traits.h: Include hash-traits.h.
7418 (simple_hashmap_traits): New class.
7419 * mem-stats.h (hash_map): Change the default traits to
7420 simple_hashmap_traits<default_hash_traits<Key> >.
7421
7422 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
7423
7424 * hash-table.h: Update comments.
7425
7426 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
7427
7428 * hash-traits.h (default_hash_traits): New structure.
7429 * hash-set.h (default_hashset_traits): Delete.
7430 (hash_set): Use default_hash_traits<Key> instead of
7431 default_hashset_traits. Delete hash_entry type and use Key directly.
7432 * ipa-devirt.c (pair_traits): Delete.
7433 (default_hash_traits <type_pair>): Override.
7434 (odr_subtypes_equivalent_p): Remove pair_types template parameter.
7435 (odr_types_equivalent_p, add_type_duplicate): Likewise.
7436
7437 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
7438
7439 * hash-traits.h (typed_noop_remove): Don't require a pointer type.
7440
7441 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
7442
7443 * hash-table.h (has_is_deleted, is_deleted_helper): Delete.
7444 (has_is_empty, is_empty_helper): Delete.
7445 (has_mark_deleted, mark_deleted_helper): Delete.
7446 (has_mark_empty, mark_empty_helper): Delete.
7447 (hash_table::is_deleted): Call the Descriptor unconditionally.
7448 (hash_table::is_empty): Likewise.
7449 (hash_table::mark_deleted): Likewise.
7450 (hash_table::mark_empty): Likewise.
7451
7452 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
7453
7454 * cgraph.h (asmname_hasher): Inherit from ggc_ptr_hash. Remove
7455 redundant typedefs and members.
7456 * coverage.c (counts_entry): Inherit from pointer_hash. Remove
7457 redundant typedefs.
7458 * dwarf2out.c (cu_hash_table_entry_hasher): Likewise.
7459 * ipa-devirt.c (odr_name_hasher): Likewise.
7460 (polymorphic_call_target_hasher): Likewise.
7461 * ira-costs.c (cost_classes_hasher): Likewise.
7462 * statistics.c (stats_counter_hasher): Likewise.
7463 * trans-mem.c (log_entry_hasher): Likewise.
7464 * tree-ssa-dom.c (expr_elt_hasher): Likewise.
7465 * tree-ssa-sccvn.c (vn_phi_hasher, vn_reference_hasher): Likewise.
7466 * tree-ssa-tail-merge.c (same_succ_def): Likewise.
7467 * var-tracking.c (variable_hasher): Likewise.
7468 * valtrack.h (dead_debug_hash_descr): Inherit from free_ptr_hash.
7469 Remove redundant typedefs and members.
7470
7471 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
7472
7473 * hash-traits.h (ggc_cache_hasher): Rename to...
7474 (ggc_cache_remove): ...this and remove typedefs.
7475 (ggc_cache_ptr_hash): New class.
7476 * hash-table.h: Update commentary.
7477 * emit-rtl.c (const_int_hasher): Inherit from ggc_cache_ptr_hash
7478 rather than ggc_cache_hasher.
7479 (const_wide_int_hasher, reg_attr_hasher): Likewise.
7480 (const_double_hasher, const_fixed_hasher): Likewise.
7481 * function.c (insn_cache_hasher): Likewise.
7482 * trans-mem.c (tm_wrapper_hasher): Likewise.
7483 * tree.h (tree_decl_map_cache_hasher): Likewise.
7484 * tree.c (type_cache_hasher, int_cst_hasher): Likewise.
7485 (cl_option_hasher, tree_vec_map_cache_hasher): Likewise.
7486 * ubsan.c (tree_type_map_cache_hasher): Likewise.
7487 * varasm.c (tm_clone_hasher): Likewise.
7488 * config/i386/i386.c (dllimport_hasher): Likewise.
7489 * config/nvptx/nvptx.c (declared_libfunc_hasher): Likewise.
7490 (tree_hasher): Likewise.
7491
7492 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
7493
7494 * hash-traits.h (ggc_hasher): Rename to...
7495 (ggc_remover): ...this and remove typedefs.
7496 (ggc_cache_hasher): Update accordingly. Add typedefs.
7497 (ggc_ptr_hash): New class.
7498 * hash-table.h: Update comment.
7499 * cfgloop.h (loop_exit_hasher): Inherit from ggc_ptr_hash rather than
7500 ggc_hasher.
7501 * cgraph.h (section_name_hasher, cgraph_edge_hasher): Likewise.
7502 (tree_descriptor_hasher): Likewise.
7503 * cgraph.c (function_version_hasher): Likewise.
7504 * dwarf2out.c (indirect_string_hasher, dwarf_file_hasher): Likewise.
7505 (decl_die_hasher, block_die_hasher, decl_loc_hasher): Likewise.
7506 (dw_loc_list_hasher, addr_hasher): Likewise.
7507 * function.h (used_type_hasher): Likewise.
7508 * function.c (temp_address_hasher): Likewise.
7509 * gimple-ssa.h (tm_restart_hasher, ssa_name_hasher): Likewise.
7510 * libfuncs.h (libfunc_hasher): Likewise.
7511 * lto-streamer.h (decl_state_hasher): Likewise.
7512 * optabs.c (libfunc_decl_hasher): Likewise.
7513 * tree-scalar-evolution.c (scev_info_hasher): Likewise.
7514 * varasm.c (section_hasher, object_block_hasher): Likewise.
7515 (const_rtx_desc_hasher): Likewise.
7516 * config/darwin.c (indirection_hasher, cfstring_hasher): Likewise.
7517 * config/rs6000/rs6000.c (toc_hasher, builtin_hasher): Likewise.
7518
7519 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
7520
7521 * hash-traits.h (free_ptr_hash): New class.
7522 * dwarf2out.c (decl_table_entry_hasher): Inherit from free_ptr_hash
7523 rather than typed_free_remove. Remove redudant typedefs.
7524 (external_ref_hasher): Likewise.
7525 * except.c (action_record_hasher, ttypes_filter_hasher): Likewise.
7526 (ehspec_hasher): Likewise.
7527 * ggc-common.c (saving_hasher): Likewise.
7528 * gimplify.c (gimplify_hasher): Likewise.
7529 * haifa-sched.c (delay_i2_hasher): Likewise.
7530 * loop-invariant.c (invariant_expr_hasher): Likewise.
7531 * loop-iv.c (biv_entry_hasher): Likewise.
7532 * loop-unroll.c (iv_split_hasher, var_expand_hasher): Likewise.
7533 * trans-mem.c (tm_mem_map_hasher, tm_memop_hasher): Likewise.
7534 * tree-cfg.c (locus_discrim_hasher): Likewise.
7535 * tree-eh.c (finally_tree_hasher): Likewise.
7536 * tree-into-ssa.c (var_info_hasher): Likewise.
7537 * tree-parloops.c (reduction_hasher, name_to_copy_hasher): Likewise.
7538 * tree-ssa-loop-ivopts.c (iv_inv_expr_hasher): Likewise.
7539 * tree-ssa-phiopt.c (ssa_names_hasher): Likewise.
7540 * tree-ssa-pre.c (expr_pred_trans_d): Likewise.
7541 * tree-ssa-sccvn.c (vn_constant_hasher): Likewise.
7542 * tree-ssa-structalias.c (equiv_class_hasher): Likewise.
7543 (shared_bitmap_hasher): Likewise.
7544 * tree-ssa-threadupdate.c (redirection_data): Likewise.
7545 * tree-vectorizer.h (peel_info_hasher): Likewise.
7546 * tree-vectorizer.c (simduid_to_vf, simd_array_to_simduid): Likewise.
7547 * config/mips/mips.c (mips_lo_sum_offset_hasher): Likewise.
7548
7549 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
7550
7551 * hash-table.h: Update comments.
7552 * hash-traits.h (pointer_hash): Don't inherit from typed_noop_remove.
7553 (nofree_ptr_hash): New class.
7554 * asan.c (asan_mem_ref_hasher): Inherit from nofree_ptr_hash rather
7555 than typed_noop_remove. Remove redudant typedefs.
7556 * attribs.c (attribute_hasher): Likewise.
7557 * cfg.c (bb_copy_hasher): Likewise.
7558 * cselib.c (cselib_hasher): Likewise.
7559 * dse.c (invariant_group_base_hasher): Likewise.
7560 * dwarf2cfi.c (trace_info_hasher): Likewise.
7561 * dwarf2out.c (macinfo_entry_hasher): Likewise.
7562 (comdat_type_hasher, loc_list_hasher): Likewise.
7563 * gcse.c (pre_ldst_expr_hasher): Likewise.
7564 * genmatch.c (id_base): Likewise.
7565 * genrecog.c (test_pattern_hasher): Likewise.
7566 * gimple-ssa-strength-reduction.c (cand_chain_hasher): Likewise.
7567 * haifa-sched.c (delay_i1_hasher): Likewise.
7568 * hard-reg-set.h (simplifiable_subregs_hasher): Likewise.
7569 * ipa-icf.h (congruence_class_group_hash): Likewise.
7570 * ipa-profile.c (histogram_hash): Likewise.
7571 * ira-color.c (allocno_hard_regs_hasher): Likewise.
7572 * lto-streamer.h (string_slot_hasher): Likewise.
7573 * lto-streamer.c (tree_entry_hasher): Likewise.
7574 * plugin.c (event_hasher): Likewise.
7575 * postreload-gcse.c (expr_hasher): Likewise.
7576 * store-motion.c (st_expr_hasher): Likewise.
7577 * tree-sra.c (uid_decl_hasher): Likewise.
7578 * tree-ssa-coalesce.c (coalesce_pair_hasher): Likewise.
7579 (ssa_name_var_hash): Likewise.
7580 * tree-ssa-live.c (tree_int_map_hasher): Likewise.
7581 * tree-ssa-loop-im.c (mem_ref_hasher): Likewise.
7582 * tree-ssa-pre.c (pre_expr_d): Likewise.
7583 * tree-ssa-sccvn.c (vn_nary_op_hasher): Likewise.
7584 * vtable-verify.h (registration_hasher): Likewise.
7585 * vtable-verify.c (vtbl_map_hasher): Likewise.
7586 * config/arm/arm.c (libcall_hasher): Likewise.
7587 * config/i386/winnt.c (wrapped_symbol_hasher): Likewise.
7588 * config/ia64/ia64.c (bundle_state_hasher): Likewise.
7589 * config/sol2.c (comdat_entry_hasher): Likewise.
7590 * fold-const.c (fold): Use nofree_ptr_hash instead of pointer_hash.
7591 (print_fold_checksum, fold_checksum_tree): Likewise.
7592 (debug_fold_checksum, fold_build1_stat_loc): Likewise.
7593 (fold_build2_stat_loc, fold_build3_stat_loc): Likewise.
7594 (fold_build_call_array_loc): Likewise.
7595 * tree-ssa-ccp.c (gimple_htab): Likewise.
7596 * tree-browser.c (tree_upper_hasher): Inherit from nofree_ptr_hash
7597 rather than pointer_type.
7598
7599 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
7600
7601 * hash-traits.h (pointer_hash::mark_deleted, pointer_hash::mark_empty)
7602 (pointer_hash::is_deleted, pointer_hash::is_empty): New functions.
7603
7604 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
7605
7606 * hash-traits.h (ggc_hasher::remove): Take a reference parameter.
7607 (ggc_hasher::ggc_mx): Likewise.
7608 (ggc_cache_hasher): Inherit from ggc_hasher. Remove definitions
7609 that duplicate ggc_hasher ones.
7610
7611 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
7612
7613 * hash-table.h (hash_table): Add gt_cleare_cache as a friend.
7614 (gt_cleare_cache): Check here for deleted and empty entries.
7615 Replace handle_cache_entry with a call to keep_cache_entry.
7616 * hash-traits.h (ggc_cache_hasher::handle_cache_entry): Delete.
7617 (ggc_cache_hasher::keep_cache_entry): New function.
7618 * trans-mem.c (tm_wrapper_hasher::handle_cache_entry): Delete.
7619 (tm_wrapper_hasher::keep_cache_entry): New function.
7620 * tree.h (tree_decl_map_cache_hasher::handle_cache_entry): Delete.
7621 (tree_vec_map_cache_hasher::keep_cache_entry): New function.
7622 * tree.c (type_cache_hasher::handle_cache_entry): Delete.
7623 (type_cache_hasher::keep_cache_entry): New function.
7624 (tree_vec_map_cache_hasher::handle_cache_entry): Delete.
7625 (tree_vec_map_cache_hasher::keep_cache_entry): New function.
7626 * ubsan.c (tree_type_map_cache_hasher::handle_cache_entry): Delete.
7627 (tree_type_map_cache_hasher::keep_cache_entry): New function.
7628 * varasm.c (tm_clone_hasher::handle_cache_entry): Delete.
7629 (tm_clone_hasher::keep_cache_entry): New function.
7630 * config/i386/i386.c (dllimport_hasher::handle_cache_entry): Delete.
7631 (dllimport_hasher::keep_cache_entry): New function.
7632
7633 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
7634
7635 * hash-table.h: Include hash-traits.h.
7636 (typed_free_remove, typed_noop_remove, pointer_hash, ggc_hasher)
7637 (ggc_cache_hasher): Move to...
7638 * hash-traits.h: ...this new file.
7639
7640 2015-06-25 Andrew MacLeod <amacleod@redhat.com>
7641
7642 * tree-core.h (struct tree_optimization_option): Make opts a pointer to
7643 struct cl_optimization.
7644 * tree.h (TREE_OPTIMIZATION): Return the pointer, not the address of it.
7645 * tree.c (make_node_stat): Allocate cl_optimization struct.
7646 (copy_node_stat): Allocate and copy cl_optimization struct.
7647
7648 2015-06-25 Andrew MacLeod <amacleod@redhat.com>
7649
7650 * function.h (struct incoming_args): Move struct.
7651 (pass_by_reference, reference_callee_copied): Remove prototypes.
7652 * emit-rtl.h (struct incoming_args): Relocate struct here.
7653 * calls.h (pass_by_reference, reference_callee_copied): Relocate
7654 prototypes here.
7655 * function.c (pass_by_reference, reference_callee_copied): Move.
7656 * calls.c (pass_by_reference, reference_callee_copied): Relocate here.
7657 * cfgloop.h: Don't include tm.h or hard-reg-set.h.
7658 * ipa-chkp.c: Include calls.h.
7659
7660 2015-06-25 Andrew Macleod <amacleod@redhat.com>
7661
7662 * alias.h (alias_set_type): Move typedef.
7663 * coretypes.h (alias_set_type): Relocate typedef here.
7664 * rtl.h: Don't include alias.h.
7665
7666 2015-06-25 Andrew MacLeod <amacleod@redhat.com>
7667
7668 * cgraph.h (cgraph_rtl_info): Move to rtl.h
7669 (cgraph_node): Maintain pointer to struct cgraph_rtl_info instead of
7670 and instance.
7671 * rtl.h (struct cgraph_rtl_info): Define when HARD_REG_SET available.
7672 * cgraph.c (cgraph_node::rtl_info): Allocate cgraph_rtl_info if one
7673 doesn't exist.
7674 * calls.c: Include hard-reg-set.h before rtl.h.
7675 * ira.c: Likewise.
7676
7677 2015-06-25 Zhouyi Zhou <yizhouzhou@ict.ac.cn>
7678 Vladimir Makarov <vmakarov@redhat.com>
7679
7680 * ira-color.c (assign_hard_reg): Remove unecessary bitmap check.
7681 Add assert.
7682
7683 2015-06-25 Richard Biener <rguenther@suse.de>
7684
7685 * fold-const.c (fold_binary_loc): Move simplification of
7686 (X <<>> C1) & C2 ...
7687 * match.pd: ... here.
7688
7689 2015-06-25 Eric Botcazou <ebotcazou@adacore.com>
7690
7691 * lto-streamer-out.c (DFS::hash_scc): Fix typos & formatting glitches.
7692
7693 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
7694
7695 * match.pd: Add patterns for vec_conds between 1 and 0.
7696
7697 2015-06-25 Richard Biener <rguenther@suse.de>
7698
7699 * tree-vect-stmts.c (vectorizable_conversion): Do not set
7700 STMT_VINFO_VEC_STMT for SLP.
7701 (vectorizable_store): Likewise.
7702 (vectorizable_load): Likewise.
7703 (vect_transform_stmt): Catch SLP vectorization clobbering
7704 STMT_VINFO_VEC_STMT.
7705
7706 2015-06-25 Richard Biener <rguenther@suse.de>
7707
7708 * tree-vect-slp.c (vect_detect_hybrid_slp_stmts): Improve debug
7709 dumping.
7710 (vect_create_mask_and_perm): Do not set STMT_VINFO_VEC_STMT and
7711 cleanup resulting dead code and parameters.
7712 (vect_transform_slp_perm_load): Adjust.
7713
7714 2015-06-25 Nick Clifton <nickc@redhat.com>
7715
7716 * config/bfin/bfin.c (bfin_expand_prologue): Set
7717 current_function_static_stack_size if flag_stack_usage_info is set.
7718 * config/ft32/ft32.c (ft32_expand_prologue): Likewise.
7719 * config/h8300/h8300.c (h8300_expand_prologue): Likewise.
7720 * config/iq2000/iq2000.c (iq2000_expand_prologue): Likewise.
7721 * config/m32c/m32c.c (m32c_emit_prologue): Likewise.
7722
7723 2015-06-25 Tom de Vries <tom@codesourcery.com>
7724
7725 * tree-ssa-loop-manip.c (canonicalize_loop_ivs): Don't claim in header
7726 comment that the generated IV is unsigned.
7727
7728 2015-06-25 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
7729
7730 PR target/29693
7731 * config/arm/arm.c (arm_dbx_register_number): Return
7732 DWARF_FRAME_REGISTERS by default.
7733
7734 2015-06-25 Tom de Vries <tom@codesourcery.com>
7735
7736 * dominance.c (calculate_dominance_info): Fix verify_dominators call
7737 argument. Call verify_dominator when reusing dominator info.
7738
7739 2015-06-24 Kaz Kojima <kkojima@gcc.gnu.org>
7740
7741 PR target/66563
7742 * config/sh/sh.md (GOTaddr2picreg): Add a new operand for
7743 an additional element of the unspec vector. Modify indices
7744 of operands.
7745 (builtin_setjmp_receiver): Pass const0_rtx to gen_GOTaddr2picreg.
7746 * config/sh/sh.c (prepare_move_operands): Pass incremented
7747 const_int to gen_GOTaddr2picreg.
7748 (sh_expand_prologue): Pass const0_rtx to gen_GOTaddr2picreg.
7749
7750 2015-06-24 Alan Lawrence <alan.lawrence@arm.com>
7751
7752 * config/aarch64/aarch64.md (<optab><fcvt_target><GPF:mode>2):
7753 Condition on TARGET_FLOAT.
7754
7755 2015-06-24 Alan Lawrence <alan.lawrence@arm.com>
7756
7757 * doc/invoke.texi: Clarify AArch64 feature modifiers (no)fp, (no)simd
7758 and (no)crypto.
7759
7760 2015-06-24 Alan Lawrence <alan.lawrence@arm.com>
7761
7762 * config/aarch64/aarch64-protos.h (aarch64_err_no_fpadvsimd): New.
7763
7764 * config/aarch64/aarch64.md (mov<mode>/GPF, movtf): Use
7765 aarch64_err_no_fpadvsimd.
7766
7767 * config/aarch64/aarch64.c (aarch64_err_no_fpadvsimd): New.
7768 (aarch64_layout_arg, aarch64_init_cumulative_args): Use
7769 aarch64_err_no_fpadvsimd if !TARGET_FLOAT and we need FP regs.
7770 (aarch64_expand_builtin_va_start, aarch64_setup_incoming_varargs):
7771 Turn error into assert, test TARGET_FLOAT.
7772 (aarch64_gimplify_va_arg_expr): Use aarch64_err_no_fpadvsimd, test
7773 TARGET_FLOAT.
7774
7775 2015-06-24 Aldy Hernandez <aldyh@redhat.com>
7776
7777 PR debug/66482
7778 * dwarf2out.c (gen_formal_parameter_die): Remove assert.
7779
7780 2015-06-24 Ilya Enkovich <enkovich.gnu@gmail.com>
7781
7782 * tree-vect-slp.c (vect_build_slp_tree_1): Init vectype.
7783
7784 2015-06-24 Renlin Li <renlin.li@arm.com>
7785
7786 * config/aarch64/aarch64.h(TARGET_CPU_CPP_BUILTINS): Add
7787 __ARM_ALIGN_MAX_PWR, __ARM_ALIGN_MAX_STACK_PWR.
7788
7789 2015-06-24 Richard Biener <rguenther@suse.de>
7790
7791 * genmatch.c (enum tree_code): Add VIEW_CONVERT[012].
7792 (main): Likewise.
7793 (lower_opt_convert): Support lowering of conditional view_convert.
7794 (parser::parse_operation): Likewise.
7795 (parser::parse_for): Likewise.
7796
7797 2015-06-24 Renlin Li <renlin.li@arm.com>
7798
7799 * varasm.c (emit_local): Use unsigned int for align variable.
7800
7801 2015-06-24 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
7802
7803 PR target/63408
7804 * config/arm/arm.c (vfp3_const_double_for_fract_bits): Disable
7805 for negative numbers.
7806
7807 2015-06-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
7808
7809 PR rtl-optimization/66306
7810 * reload.c (find_reloads): Swap the match_dup info for
7811 commutative operands.
7812
7813 2015-06-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
7814
7815 * config/s390/vx-builtins.md
7816 ("vec_scatter_element<mode>_<non_vec_int>")
7817 ("vec_scatter_element<V_HW_64:mode>_SI"): Replace gf mode
7818 attribute with bhfgq.
7819
7820 2015-06-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
7821
7822 * config/s390/s390-builtins.def: Fix vpopct instruction comments.
7823
7824 2015-06-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
7825
7826 * config/s390/s390-builtin-types.def: Add flag to indicate the
7827 options under which the function type is needed.
7828 * config/s390/s390-builtins.def: Add flag to indicate the options
7829 under which the builtin is enabled.
7830 * config/s390/s390-builtins.h: Add flags parameter to macro
7831 definitions.
7832 (bflags_for_builtin): New function.
7833 (flags_for_builtin): Renamed to ...
7834 (opflags_for_builtin): ... this.
7835 * config/s390/s390-c.c (s390_resolve_overloaded_builtin): Rename
7836 flags_for_builtin to bflags_for_builtin and
7837 flags_overloaded_builtin_var to opflags_overloaded_builtin_var.
7838 * config/s390/s390.c: Add initialization of bflags_builtin and
7839 opflags_builtin arrays.
7840 Remove code for flags_builtin.
7841 (s390_init_builtins): Only create builtin function types if one of
7842 their flags is active.
7843 Only create builtins if all of their flags are active.
7844 (s390_expand_builtin): Rename flags_for_builtin to
7845 opflags_for_builtin.
7846
7847 2015-06-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
7848
7849 * config/s390/vecintrin.h: Remove internal builtins.
7850
7851 2015-06-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
7852
7853 * config/s390/s390.c (s390_secondary_reload): Fix check for
7854 GENERAL_REGS register class.
7855
7856 2015-06-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
7857
7858 * config/s390/s390.c (s390_support_vector_misalignment): Call
7859 default implementation for !TARGET_VX.
7860
7861 2015-06-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
7862
7863 * config/s390/s390.c (s390_legitimate_constant_p): Add
7864 TARGET_VX check.
7865
7866 2015-06-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
7867
7868 * config/s390/s390.c (s390_vector_abi): New variable definition.
7869 (s390_check_type_for_vector_abi): New function.
7870 (TARGET_ASM_FILE_END): New macro definition.
7871 (s390_asm_file_end): New function.
7872 (s390_function_arg): Call s390_check_type_for_vector_abi.
7873 (s390_gimplify_va_arg): Likewise.
7874 * configure: Regenerate.
7875 * configure.ac: Check for .gnu_attribute Binutils feature.
7876
7877 2015-06-23 Chen Gang <gang.chen.5i5j@gmail.com>
7878
7879 PR target/65803
7880 * config/bfin/bfin.c (hwloop_optimize): Initialize
7881 JUMP_LABEL for newly created jump.
7882
7883 2015-06-23 Tristan Gingold <gingold@adacore.com>
7884
7885 * collect-utils.c (collect_wait): Unlink the response file here
7886 instead of...
7887 (do_wait): ...here.
7888 (utils_cleanup): ...and here.
7889
7890 2015-06-23 Richard Sandiford <richard.sandiford@arm.com>
7891
7892 * df-scan.c: Don't include target-def.h.
7893 * targhooks.c: Likewise.
7894 * config/arm/arm-c.c: Likewise.
7895 * config/i386/i386-c.c: Likewise.
7896 * config/nds32/nds32-cost.c: Likewise.
7897 * config/nds32/nds32-fp-as-gp.c: Likewise.
7898 * config/nds32/nds32-intrinsic.c: Likewise.
7899 * config/nds32/nds32-isr.c: Likewise.
7900 * config/nds32/nds32-md-auxiliary.c: Likewise.
7901 * config/nds32/nds32-memory-manipulation.c: Likewise.
7902 * config/nds32/nds32-pipelines-auxiliary.c: Likewise.
7903 * config/nds32/nds32-predicates.c: Likewise.
7904
7905 2015-06-23 Richard Biener <rguenther@suse.de>
7906
7907 PR tree-optimization/66636
7908 * tree-vect-stmts.c (vectorizable_store): Properly compute the
7909 def type for further defs for strided stores.
7910
7911 2015-06-23 Nathan Sidwell <nathan@codesourcery.com>
7912
7913 * config/nvptx/nvptx.md (sel_true<mode>, sel_false<mode>): New
7914 conditional selects.
7915 (setcc_int<mode>, setcc_float<mode>): Reformat.
7916
7917 2015-06-23 Marek Polacek <polacek@redhat.com>
7918
7919 * match.pd ((x + y) - (x | y) -> x & y,
7920 (x + y) - (x & y) -> x | y): New patterns.
7921
7922 2015-06-23 Ludovic Courtès <ludo@gnu.org>
7923
7924 PR 65711
7925 * config/arm/linux-elf.h (LINUX_TARGET_LINK_SPEC): Move
7926 '-dynamic-linker' within %{!shared: ...}.
7927
7928 2015-06-23 Uros Bizjak <ubizjak@gmail.com>
7929
7930 PR target/66560
7931 * config/i386/predicates.md (addsub_vm_operator): New predicate.
7932 (addsub_vs_operator): Ditto.
7933 (addsub_vs_parallel): Ditto.
7934 * config/i386/sse.md (ssedoublemode): Add V4SF and V2DF modes.
7935 (avx_addsubv4df3, avx_addsubv8sf3, sse3_addsubv2df3, sse3_addsubv4sf3):
7936 Put minus RTX before plus and adjust vec_merge selector.
7937 (*avx_addsubv4df3_1, *avx_addsubv4df3_1s, *sse3_addsubv2df3_1)
7938 (*sse_addsubv2df3_1s, *avx_addsubv8sf3_1, *avx_addsubv8sf3_1s)
7939 (*sse3_addsubv4sf3_1, *sse_addsubv4sf3_1s): Remove insn patterns.
7940 (addsub vec_merge splitters): New combiner splitters.
7941 (addsub vec_select/vec_concat splitters): Ditto.
7942
7943 2015-06-23 Bin Cheng <bin.cheng@arm.com>
7944
7945 PR tree-optimization/66449
7946 * tree-ssa-loop-niter.c (loop_exits_before_overflow): Use
7947 POINTER_PLUS_EXPR for pointers.
7948
7949 2015-06-23 Alan Modra <amodra@gmail.com>
7950
7951 * rtlanal.c (commutative_operand_precedence): Correct comments.
7952 * simplify-rtx.c (simplify_plus_minus_op_data_cmp): Delete forward
7953 declaration. Return an int. Distinguish REG,REG return from
7954 others.
7955 (struct simplify_plus_minus_op_data): Make local to function.
7956 (simplify_plus_minus): Don't set canonicalized if merely sorting
7957 registers. Avoid packing ops if nothing changes. White space fixes.
7958
7959 2015-06-22 Pierre-Marie de Rodat <derodat@adacore.com>
7960
7961 * gcc.c (default_compilers): Pass "-o %g.s" to cc1 for headers even if
7962 -fdump-ada-spec is passed but not if -fsyntax-only is.
7963
7964 2015-06-22 Vladimir Makarov <vmakarov@redhat.com>
7965
7966 PR bootstrap/63740
7967 * lra-lives.c (process_bb_lives): Check insn copying the same
7968 reload pseudo and don't create a copy for it.
7969
7970 2015-06-22 Tom de Vries <tom@codesourcery.com>
7971
7972 * tree-parloops.c (transform_to_exit_first_loop_alt): Add update_stmt
7973 for cond_stmt.
7974
7975 2015-06-22 Tom de Vries <tom@codesourcery.com>
7976
7977 * builtins.def (DEF_GOMP_BUILTIN): Test
7978 'flag_tree_parallelize_loops > 1' instead of
7979 'flag_tree_parallelize_loops'. Test flag_cilkplus.
7980
7981 2015-06-22 Tom de Vries <tom@codesourcery.com>
7982
7983 * dominance.c (calculate_dominance_info): Verify dominators if
7984 early-out.
7985
7986 2015-06-22 Marek Polacek <polacek@redhat.com>
7987
7988 * match.pd ((x ^ y) ^ (x | y) -> x & y,
7989 (x & y) + (x ^ y) -> x | y, (x & y) | (x ^ y) -> x | y,
7990 (x & y) ^ (x ^ y) -> x | y, (x & y) + (x | y) -> x + y,
7991 (x | y) - (x ^ y) -> x & y, (x | y) - (x & y) -> x ^ y): New patterns.
7992
7993 2015-06-22 Uros Bizjak <ubizjak@gmail.com>
7994
7995 PR target/65871
7996 * config/i386/i386.c (ix86_rtx_costs) <case COMPARE>: Ignore the
7997 cost of embedded comparison.
7998
7999 2015-06-22 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
8000
8001 PR target/65914
8002 * config/rs6000/predicates.md (altivec_register_operand): Permit
8003 virtual stack registers.
8004 (vsx_register_operand): Likewise.
8005 (vfloat_operand): Likewise.
8006 (vint_operand): Likewise.
8007 (vlogical_operand): Likewise.
8008
8009 2015-06-22 Richard Biener <rguenther@suse.de>
8010
8011 * tree-vectorizer.h (_loop_vec_info): Add scalar_cost_vec
8012 and single_scalar_iteration_cost members.
8013 (LOOP_VINFO_SCALAR_ITERATION_COST): New.
8014 (LOOP_VINFO_SINGLE_SCALAR_ITERATION_COST): Likewise.
8015 (vect_get_single_scalar_iteration_cost): Remove.
8016 * tree-vect-data-refs.c (vect_peeling_hash_get_lowest_cost):
8017 Use LOOP_VINFO_SCALAR_ITERATION_COST.
8018 * tree-vect-loop.c (destroy_loop_vec_info): Free
8019 scalar_cost_vec.
8020 (vect_get_single_scalar_iteration_cost): Compute result into
8021 LOOP_VINFO_SINGLE_SCALAR_ITERATION_COST and
8022 LOOP_VINFO_SCALAR_ITERATION_COST. Make static.
8023 (vect_analyze_loop_2): Call vect_get_single_scalar_iteration_cost.
8024 (vect_estimate_min_profitable_iters): Use them.
8025
8026 2015-06-22 Christian Bruel <christian.bruel@st.com>
8027
8028 PR target/52144
8029 * config/arm/arm.c (add_attribute, arm_insert_attributes): New functions
8030 (TARGET_INSERT_ATTRIBUTES): Define.
8031 (thumb_flipper): New var.
8032 * config/arm/arm.opt (-mflip-thumb): New switch.
8033
8034 2015-06-22 Jan Hubicka <hubicka@ucw.cz>
8035 Martin Liska <mliska@suse.cz>
8036
8037 PR ipa/65908
8038 * ipa-icf.c (sem_item::target_supports_symbol_aliases): Remove
8039 construction of arg_types.
8040 (sem_function::sem_function): Likewise.
8041 (sem_function::~sem_function): Remove destruction of arg_types.
8042 (sem_function::compatible_parm_types_p): New function.
8043 (sem_function::equals_wpa): Reorg matching of return values
8044 and parameter types.
8045 (sem_function::equals_private): Reorg mathcing of argument types.
8046 (sem_function::parse_tree_args): Remove.
8047 * ipa-icf.h (init_wpa): Do not call it.
8048 (parse_tree_args): Remove.
8049 (compatible_parm_types_p): Declare.
8050 (result_type): Remove.
8051 (arg_types): Remove.
8052
8053 2015-06-22 Jan Hubicka <hubicka@ucw.cz>
8054
8055 PR ipa/66351
8056 * ipa-polymorphic-call.c
8057 (ipa_polymorphic_call_context::get_dynamic_type): Fix thinko when
8058 initializing alias oracle; fix formating; set base_alias_set if it
8059 is known.
8060
8061 2015-06-22 Mikhail Maltsev <maltsevm@gmail.com>
8062
8063 * auto-inc-dec.c (reverse_mem, reverse_inc): Remove.
8064 (parse_add_or_inc): Use std::swap instead of reverse_{mem,inc}.
8065 (find_inc): Likewise.
8066 * combine.c (combine_simplify_rtx): Use std::swap instead of manually
8067 swapping.
8068 * df-core.c (df_worklist_dataflow_doublequeue): Likewise.
8069 * df-scan.c (df_swap_refs): Remove.
8070 (df_sort_and_compress_refs): Use std::swap instead of df_swap_refs.
8071 * dominance.c (link_roots): Use std::swap instead of manually swapping.
8072 * expr.c (expand_expr_real_2, do_store_flag): Likewise.
8073 * fold-const.c (fold_relational_const): Likewise.
8074 * genattrtab.c (simplify_test_exp): Likewise.
8075 * gimple-match-head.c (gimple_resimplify2, gimple_resimplify3,
8076 gimple_simplify): Likewise.
8077 * ifcvt.c (noce_try_abs, find_if_header): Likewise.
8078 * internal-fn.c (expand_addsub_overflow, expand_mul_overflow): Likewise.
8079 * ipa-devirt.c (add_type_duplicate): Likewise.
8080 * loop-iv.c (get_biv_step_1, iv_number_of_iterations): Likewise.
8081 * lra-lives.c (lra_setup_reload_pseudo_preferenced_hard_reg): Likewise.
8082 * lra.c (lra_create_copy): Likewise.
8083 * lto-streamer-out.c (DFS::DFS): Likewise.
8084 * modulo-sched.c (get_sched_window): Likewise.
8085 * omega.c (omega_pretty_print_problem): Likewise.
8086 * optabs.c (prepare_float_lib_cmp, expand_mult_highpart): Likewise.
8087 * reload1.c (reloads_unique_chain_p): Likewise.
8088 * sel-sched-ir.c (exchange_lv_sets, exchange_av_sets): Remove.
8089 (exchange_data_sets): Move logic from exchange_{av,lv}_sets here and
8090 use std::swap.
8091 * simplify-rtx.c (simplify_unary_operation_1): Use std::swap instead of
8092 manually swapping.
8093 * tree-if-conv.c (is_cond_scalar_reduction, predicate_scalar_phi,
8094 predicate_mem_writes): Likewise.
8095 * tree-loop-distribution.c (pg_add_dependence_edges): Likewise.
8096 * tree-predcom.c (combine_chains): Likewise.
8097 * tree-ssa-alias.c (nonoverlapping_component_refs_p,
8098 refs_may_alias_p_1): Likewise.
8099 * tree-ssa-ifcombine.c (recognize_if_then_else): Likewise.
8100 * tree-ssa-loop-ivopts.c (extract_cond_operands): Likewise.
8101 * tree-ssa-loop-niter.c (refine_bounds_using_guard,
8102 number_of_iterations_cond): Likewise.
8103 * tree-ssa-phiopt.c (tree_ssa_phiopt_worker): Likewise.
8104 * tree-ssa-sccvn.c (vn_nary_op_compute_hash): Likewise.
8105 * tree-vect-slp.c (vect_build_slp_tree): Likewise.
8106 * tree-vect-stmts.c (supportable_widening_operation): Likewise.
8107 * tree-vrp.c (extract_range_from_binary_expr_1,
8108 extract_range_from_unary_expr_1): Likewise.
8109
8110 2015-06-20 Marek Polacek <polacek@redhat.com>
8111
8112 * common.opt (fsanitize-undefined-trap-on-error): Add Driver.
8113
8114 2015-06-19 Kaz Kojima <kkojima@gcc.gnu.org>
8115
8116 PR target/66591
8117 * config/sh/sh.c (prepare_move_operands): Replace subreg
8118 index term with R0 for base and index addressing.
8119
8120 2015-06-19 Jim Wilson <jim.wilson@linaro.org>
8121
8122 * config/aarch64/aarch64.md (mov<mode>:GPF): Don't call force_reg if
8123 op1 is an fp zero.
8124 (movsf_aarch64): Change condition from register_operand to
8125 aarch64_reg_or_fp_zero for op1. Change type for alternative 6 to
8126 load1. Change type for alternative 7 to store1.
8127 (movdf_aarch64): Likewise.
8128
8129 2015-06-19 James Greenhalgh <james.greenhalgh@arm.com>
8130
8131 * config/vax/vax.md: Adjust sign/zero extend patterns to
8132 handle SUBREGs in operands[1].
8133
8134 2015-06-19 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
8135
8136 * config/i386/i386.c (ix86_function_versions): Use std::swap instead
8137 of manually swapping.
8138 (expand_vec_perm_interleave2): Likewise.
8139
8140 2015-06-19 Ilya Enkovich <enkovich.gnu@gmail.com>
8141
8142 * tree-chkp.c (chkp_compute_bounds_for_assignment): Don't
8143 reuse bounds created for abnormal ssa names.
8144
8145 2015-06-19 Jakub Jelinek <jakub@redhat.com>
8146
8147 * config/nvptx/nvptx.md (allocate_stack): Rename to...
8148 (allocate_stack_<mode>): ... this, and add :P on both
8149 match_operand and unspec.
8150 (allocate_stack): New expander.
8151
8152 2015-06-19 Christian Bruel <christian.bruel@st.com>
8153
8154 PR target/66541
8155 PR target/52144
8156 * config/arm/arm.c (arm_set_current_function): Handle
8157 explicit default options.
8158
8159 2015-06-18 Uros Bizjak <ubizjak@gmail.com>
8160
8161 * config/i386/i386.md (*movsicc_noc_zext): New insn.
8162 (zero-extended cmove with mem peephole2): New pattern.
8163 (cmove with mem peephole2): Merge patterns.
8164
8165 2015-06-18 Segher Boessenkool <segher@kernel.crashing.org>
8166
8167 * config/rs6000/rs6000.h (WORD_REGISTER_OPERATIONS): Delete.
8168
8169 2015-06-18 Steve Ellcey <sellcey@imgtec.com>
8170
8171 * config/mips/mips.c (mips_rtx_costs): Remove HONOR_NAN check.
8172 * config/mips/mips.md (*madd4<mode>): Ditto.
8173 (*nmadd3<mode>) Ditto.
8174 (*nmadd4<mode>_fastmath): Ditto.
8175 (*nmadd3<mode>_fastmath): Ditto.
8176 (*nmsub4<mode>): Ditto.
8177 (*nmsub3<mode>): Ditto.
8178 (*nmsub4<mode>_fastmath): Ditto.
8179 (*nmsub3<mode>_fastmath): Ditto.
8180
8181 2015-06-18 Michael Matz <matz@suse.de>
8182
8183 PR middle-end/66253
8184 * tree-vect-stmts.c (vectorizable_store): Implement non-SLP
8185 grouped strided stores.
8186 (vectorizable_load): Don't use the DR from first_stmt in
8187 the non-SLP grouped strided case.
8188
8189 2015-06-18 Ilya Enkovich <enkovich.gnu@gmail.com>
8190
8191 PR target/66569
8192 * function.c (assign_bounds): Add arguments assign_regs,
8193 assign_special, assign_bt.
8194 (assign_parms): For vararg functions handle bounds in BT
8195 and special slots after incoming vararg bounds.
8196
8197 2015-06-18 Ilya Enkovich <enkovich.gnu@gmail.com>
8198
8199 PR middle-end/66568
8200 * cfgexpand.c (expand_return): Handle missing bounds.
8201 (expand_gimple_stmt_1): Likewise.
8202 * tree-chkp.c (chkp_expand_zero_bounds): New.
8203 * tree-chkp.h (chkp_expand_zero_bounds): New.
8204
8205 2015-06-18 Ilya Enkovich <enkovich.gnu@gmail.com>
8206
8207 PR middle-end/66567
8208 * ipa-chkp.c (chkp_maybe_create_clone): Require
8209 functions to be instrumentable.
8210 * tree-chkp.c (chkp_replace_function_pointer): Use
8211 chkp_instrumentable_p instead of attribute check.
8212
8213 2015-06-18 Richard Biener <rguenther@suse.de>
8214
8215 PR tree-optimization/66510
8216 * tree-vect-stmts.c (vectorizable_load): Properly compute the
8217 number of vector loads for SLP permuted loads.
8218 * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Also
8219 check the stride for loop vectorization.
8220 (vect_enhance_data_refs_alignment): Deal with SLP adjusted
8221 vectorization factor.
8222 (vect_analyze_group_access): If the group size is not a power
8223 of two require a epilogue loop.
8224 * tree-vect-loop.c (vect_analyze_loop_2): Move alignment
8225 compute and optimizing and alias test pruning after final
8226 vectorization factor computation.
8227 * tree-vect-slp.c (vect_build_slp_tree_1): Remove check on
8228 vector alignment.
8229 (vect_transform_slp_perm_load): Properly compute the original
8230 number of vector load stmts.
8231
8232 2015-06-18 Uros Bizjak <ubizjak@gmail.com>
8233
8234 * doc/invoke.texi (-fsanitize-sections): Split @var to avoid
8235 "unlikely character , in @var" warning.
8236
8237 2015-06-17 Uros Bizjak <ubizjak@gmail.com>
8238
8239 * config/i386/i386.c (ix86_function_arg): Nest TARGET_64BIT code.
8240 (ix86_function_arg_advance): Ditto.
8241 (ix86_pass_by_reference): Ditto. Rewrite MS_ABI part.
8242
8243 2015-06-17 Andrew MacLeod <amacleod@redhat.com>
8244
8245 * function.h (struct rtl_data): Remove struct and accessor macros.
8246 * emit-rtl.h (struct rtl_data): Relocate to here.
8247 * Makefile.in (GTFILES): Add emit-rtl.h.
8248 * df-core.c: Include emit-rtl.h.
8249 * genattrtab.c: Likewise.
8250 * genconditions.c: Likewise.
8251 * genpreds.c: Likewise.
8252 * genrecog.c: Likewise.
8253 * regcprop.c: Likewise.
8254 * resource.c: Likewise.
8255 * sched-rgn.c: Likewise.
8256 * config/aarch64/cortex-a57-fma-steering.c: Likewise.
8257 * config/i386/winnt.c: Likewise.
8258
8259 2015-06-17 Jakub Jelinek <jakub@redhat.com>
8260
8261 PR middle-end/66429
8262 * omp-low.c (expand_omp_taskreg, expand_omp_target): Use child_cfun
8263 instead of DECL_STRUCT_FUNCTION (child_fn). Or in has_simduid_loops
8264 and has_force_vectorize_loops flags from cfun into
8265 child_cfun.
8266 (expand_omp_simd): For broken loop, set cfun->has_simduid_loops
8267 if simduid is non-NULL.
8268 * tree-pass.h (make_pass_simduid_cleanup): New prototype.
8269 * passes.def (pass_simduid_cleanup): Add new pass after loop
8270 passes.
8271 * tree-vectorizer.c (adjust_simduid_builtins): Remove one unnecessary
8272 indirection from htab argument's type.
8273 (shrink_simd_arrays): New function.
8274 (vectorize_loops): Use it. Adjust adjust_simduid_builtins caller.
8275 Don't call adjust_simduid_builtins if there are no loops.
8276 (pass_data_simduid_cleanup, pass_simduid_cleanup): New variables.
8277 (pass_simduid_cleanup::execute): New method.
8278 (make_pass_simduid_cleanup): New function.
8279
8280 2017-06-17 Andrew MacLeod <amacleod@redhat.com>
8281
8282 * tree-core.h (tree_target_option): Make opts field a pointer to a
8283 cl_target_option instead of an instance of the struct.
8284 * tree.h (TREE_TARGET_OPTION): Return the pointer, not an address of
8285 the structure.
8286 * tree.c (make_node_stat ): Allocate a cl_target_option struct for
8287 TARGET_OPTION_NODE.
8288 (copy_node_stat): Allocate and copy struct cl_target_option.
8289
8290 2015-06-17 Andrew MacLeod <amacleod@redhat.com>
8291
8292 * tree.h (merge_dllimport_decl_attributes, handle_dll_attribute):
8293 Remove conditional exposure of prototypes.
8294 (ANON_AGGRNAME_FORMAT, ANON_AGGRNAME_P): Delete.
8295 * tree.c (anon_aggrname_format, anon_aggrname_p): New. Replace macro
8296 definitions in tree.h with functions.
8297 * lto-streamer-out.c (DFS_write_tree_body, hash_tree): Use
8298 anon_aggrname_p.
8299 * tree-streamer-out.c (write_ts_decl_minimal_tree_pointers): Likewise.
8300
8301 2015-06-17 Segher Boessenkool <segher@kernel.crashing.org>
8302
8303 * config/rs6000/rs6000.md (*cmp<mode>_internal1): Rename to...
8304 (*cmp<mode>_signed): ... this.
8305 (*cmpsi_internal2, *cmpdi_internal2): Merge, rename to...
8306 (*cmp<mode>_unsigned): ... this. Remove %b.
8307
8308 2015-06-17 Andrew MacLeod <amacleod@redhat.com>
8309
8310 * coretypes.h: Include input.h and as-a.h.
8311 * rtl.h: Include input.h and as-a.h for generator files.
8312 * hwint.c: Include coretypes.h, don't include diagnostic-core.h.
8313 * vec.c: Don't include diagnostic-core.h.
8314 * alias.c: Do not include input.h, line-map.h or is-a.h.
8315 * asan.c: Likewise.
8316 * attribs.c: Likewise.
8317 * auto-inc-dec.c: Likewise.
8318 * auto-profile.c: Likewise.
8319 * bb-reorder.c: Likewise.
8320 * bt-load.c: Likewise.
8321 * builtins.c: Likewise.
8322 * caller-save.c: Likewise.
8323 * calls.c: Likewise.
8324 * ccmp.c: Likewise.
8325 * cfg.c: Likewise.
8326 * cfganal.c: Likewise.
8327 * cfgbuild.c: Likewise.
8328 * cfgcleanup.c: Likewise.
8329 * cfgexpand.c: Likewise.
8330 * cfghooks.c: Likewise.
8331 * cfgloop.c: Likewise.
8332 * cfgloop.h: Likewise.
8333 * cfgloopanal.c: Likewise.
8334 * cfgloopmanip.c: Likewise.
8335 * cfgrtl.c: Likewise.
8336 * cgraph.c: Likewise.
8337 * cgraphbuild.c: Likewise.
8338 * cgraphclones.c: Likewise.
8339 * cgraphunit.c: Likewise.
8340 * cilk-common.c: Likewise.
8341 * combine-stack-adj.c: Likewise.
8342 * combine.c: Likewise.
8343 * compare-elim.c: Likewise.
8344 * convert.c: Likewise.
8345 * coverage.c: Likewise.
8346 * cppbuiltin.c: Likewise.
8347 * cprop.c: Likewise.
8348 * cse.c: Likewise.
8349 * cselib.c: Likewise.
8350 * data-streamer-in.c: Likewise.
8351 * data-streamer-out.c: Likewise.
8352 * data-streamer.c: Likewise.
8353 * dbxout.c: Likewise.
8354 * dce.c: Likewise.
8355 * ddg.c: Likewise.
8356 * debug.c: Likewise.
8357 * df-core.c: Likewise.
8358 * df-problems.c: Likewise.
8359 * df-scan.c: Likewise.
8360 * df.h: Likewise.
8361 * dfp.c: Likewise.
8362 * diagnostic-core.h: Likewise.
8363 * diagnostic.c: Likewise.
8364 * dojump.c: Likewise.
8365 * dominance.c: Likewise.
8366 * domwalk.c: Likewise.
8367 * double-int.c: Likewise.
8368 * dse.c: Likewise.
8369 * dumpfile.c: Likewise.
8370 * dumpfile.h: Likewise.
8371 * dwarf2asm.c: Likewise.
8372 * dwarf2cfi.c: Likewise.
8373 * dwarf2out.c: Likewise.
8374 * emit-rtl.c: Likewise.
8375 * et-forest.c: Likewise.
8376 * except.c: Likewise.
8377 * explow.c: Likewise.
8378 * expmed.c: Likewise.
8379 * expr.c: Likewise.
8380 * final.c: Likewise.
8381 * fixed-value.c: Likewise.
8382 * fold-const.c: Likewise.
8383 * function.c: Likewise.
8384 * fwprop.c: Likewise.
8385 * gcc-plugin.h: Likewise.
8386 * gcse.c: Likewise.
8387 * generic-match-head.c: Likewise.
8388 * ggc-page.c: Likewise.
8389 * gimple-builder.c: Likewise.
8390 * gimple-expr.c: Likewise.
8391 * gimple-fold.c: Likewise.
8392 * gimple-iterator.c: Likewise.
8393 * gimple-low.c: Likewise.
8394 * gimple-match-head.c: Likewise.
8395 * gimple-pretty-print.c: Likewise.
8396 * gimple-ssa-isolate-paths.c: Likewise.
8397 * gimple-ssa-strength-reduction.c: Likewise.
8398 * gimple-streamer-in.c: Likewise.
8399 * gimple-streamer-out.c: Likewise.
8400 * gimple-streamer.h: Likewise.
8401 * gimple-walk.c: Likewise.
8402 * gimple.c: Likewise.
8403 * gimplify-me.c: Likewise.
8404 * gimplify.c: Likewise.
8405 * godump.c: Likewise.
8406 * graph.c: Likewise.
8407 * graphite-blocking.c: Likewise.
8408 * graphite-dependences.c: Likewise.
8409 * graphite-interchange.c: Likewise.
8410 * graphite-isl-ast-to-gimple.c: Likewise.
8411 * graphite-optimize-isl.c: Likewise.
8412 * graphite-poly.c: Likewise.
8413 * graphite-scop-detection.c: Likewise.
8414 * graphite-sese-to-poly.c: Likewise.
8415 * graphite.c: Likewise.
8416 * haifa-sched.c: Likewise.
8417 * hw-doloop.c: Likewise.
8418 * ifcvt.c: Likewise.
8419 * init-regs.c: Likewise.
8420 * input.c: Likewise.
8421 * internal-fn.c: Likewise.
8422 * ipa-chkp.c: Likewise.
8423 * ipa-comdats.c: Likewise.
8424 * ipa-cp.c: Likewise.
8425 * ipa-devirt.c: Likewise.
8426 * ipa-icf-gimple.c: Likewise.
8427 * ipa-icf.c: Likewise.
8428 * ipa-inline-analysis.c: Likewise.
8429 * ipa-inline-transform.c: Likewise.
8430 * ipa-inline.c: Likewise.
8431 * ipa-polymorphic-call.c: Likewise.
8432 * ipa-profile.c: Likewise.
8433 * ipa-prop.c: Likewise.
8434 * ipa-pure-const.c: Likewise.
8435 * ipa-ref.c: Likewise.
8436 * ipa-reference.c: Likewise.
8437 * ipa-split.c: Likewise.
8438 * ipa-utils.c: Likewise.
8439 * ipa-visibility.c: Likewise.
8440 * ipa.c: Likewise.
8441 * ira-build.c: Likewise.
8442 * ira-color.c: Likewise.
8443 * ira-conflicts.c: Likewise.
8444 * ira-costs.c: Likewise.
8445 * ira-emit.c: Likewise.
8446 * ira-lives.c: Likewise.
8447 * ira.c: Likewise.
8448 * jump.c: Likewise.
8449 * langhooks.c: Likewise.
8450 * lcm.c: Likewise.
8451 * loop-doloop.c: Likewise.
8452 * loop-init.c: Likewise.
8453 * loop-invariant.c: Likewise.
8454 * loop-iv.c: Likewise.
8455 * loop-unroll.c: Likewise.
8456 * lower-subreg.c: Likewise.
8457 * lra-assigns.c: Likewise.
8458 * lra-coalesce.c: Likewise.
8459 * lra-constraints.c: Likewise.
8460 * lra-eliminations.c: Likewise.
8461 * lra-lives.c: Likewise.
8462 * lra-remat.c: Likewise.
8463 * lra-spills.c: Likewise.
8464 * lra.c: Likewise.
8465 * lto-cgraph.c: Likewise.
8466 * lto-compress.c: Likewise.
8467 * lto-opts.c: Likewise.
8468 * lto-section-in.c: Likewise.
8469 * lto-section-out.c: Likewise.
8470 * lto-streamer-in.c: Likewise.
8471 * lto-streamer-out.c: Likewise.
8472 * lto-streamer.c: Likewise.
8473 * mcf.c: Likewise.
8474 * mode-switching.c: Likewise.
8475 * modulo-sched.c: Likewise.
8476 * omega.c: Likewise.
8477 * omp-low.c: Likewise.
8478 * optabs.c: Likewise.
8479 * opts-global.c: Likewise.
8480 * opts.h: Likewise.
8481 * passes.c: Likewise.
8482 * plugin.c: Likewise.
8483 * postreload-gcse.c: Likewise.
8484 * postreload.c: Likewise.
8485 * predict.c: Likewise.
8486 * pretty-print.h: Likewise.
8487 * print-rtl.c: Likewise.
8488 * print-tree.c: Likewise.
8489 * profile.c: Likewise.
8490 * real.c: Likewise.
8491 * realmpfr.c: Likewise.
8492 * recog.c: Likewise.
8493 * ree.c: Likewise.
8494 * reg-stack.c: Likewise.
8495 * regcprop.c: Likewise.
8496 * reginfo.c: Likewise.
8497 * regrename.c: Likewise.
8498 * regstat.c: Likewise.
8499 * reload.c: Likewise.
8500 * reload1.c: Likewise.
8501 * reorg.c: Likewise.
8502 * resource.c: Likewise.
8503 * rtl-chkp.c: Likewise.
8504 * rtl-error.c: Likewise.
8505 * rtlanal.c: Likewise.
8506 * rtlhooks.c: Likewise.
8507 * sanopt.c: Likewise.
8508 * sched-deps.c: Likewise.
8509 * sched-ebb.c: Likewise.
8510 * sched-rgn.c: Likewise.
8511 * sched-vis.c: Likewise.
8512 * sdbout.c: Likewise.
8513 * sel-sched-dump.c: Likewise.
8514 * sel-sched-ir.c: Likewise.
8515 * sel-sched.c: Likewise.
8516 * sese.c: Likewise.
8517 * shrink-wrap.c: Likewise.
8518 * simplify-rtx.c: Likewise.
8519 * stack-ptr-mod.c: Likewise.
8520 * statistics.c: Likewise.
8521 * stmt.c: Likewise.
8522 * stor-layout.c: Likewise.
8523 * store-motion.c: Likewise.
8524 * streamer-hooks.c: Likewise.
8525 * stringpool.c: Likewise.
8526 * symtab.c: Likewise.
8527 * target-globals.c: Likewise.
8528 * targhooks.c: Likewise.
8529 * toplev.c: Likewise.
8530 * tracer.c: Likewise.
8531 * trans-mem.c: Likewise.
8532 * tree-affine.c: Likewise.
8533 * tree-browser.c: Likewise.
8534 * tree-call-cdce.c: Likewise.
8535 * tree-cfg.c: Likewise.
8536 * tree-cfgcleanup.c: Likewise.
8537 * tree-chkp-opt.c: Likewise.
8538 * tree-chkp.c: Likewise.
8539 * tree-chrec.c: Likewise.
8540 * tree-complex.c: Likewise.
8541 * tree-data-ref.c: Likewise.
8542 * tree-dfa.c: Likewise.
8543 * tree-diagnostic.c: Likewise.
8544 * tree-dump.c: Likewise.
8545 * tree-eh.c: Likewise.
8546 * tree-emutls.c: Likewise.
8547 * tree-if-conv.c: Likewise.
8548 * tree-inline.c: Likewise.
8549 * tree-into-ssa.c: Likewise.
8550 * tree-iterator.c: Likewise.
8551 * tree-loop-distribution.c: Likewise.
8552 * tree-nested.c: Likewise.
8553 * tree-nrv.c: Likewise.
8554 * tree-object-size.c: Likewise.
8555 * tree-outof-ssa.c: Likewise.
8556 * tree-parloops.c: Likewise.
8557 * tree-phinodes.c: Likewise.
8558 * tree-predcom.c: Likewise.
8559 * tree-pretty-print.c: Likewise.
8560 * tree-profile.c: Likewise.
8561 * tree-scalar-evolution.c: Likewise.
8562 * tree-sra.c: Likewise.
8563 * tree-ssa-address.c: Likewise.
8564 * tree-ssa-alias.c: Likewise.
8565 * tree-ssa-ccp.c: Likewise.
8566 * tree-ssa-coalesce.c: Likewise.
8567 * tree-ssa-copy.c: Likewise.
8568 * tree-ssa-copyrename.c: Likewise.
8569 * tree-ssa-dce.c: Likewise.
8570 * tree-ssa-dom.c: Likewise.
8571 * tree-ssa-dse.c: Likewise.
8572 * tree-ssa-forwprop.c: Likewise.
8573 * tree-ssa-ifcombine.c: Likewise.
8574 * tree-ssa-live.c: Likewise.
8575 * tree-ssa-loop-ch.c: Likewise.
8576 * tree-ssa-loop-im.c: Likewise.
8577 * tree-ssa-loop-ivcanon.c: Likewise.
8578 * tree-ssa-loop-ivopts.c: Likewise.
8579 * tree-ssa-loop-manip.c: Likewise.
8580 * tree-ssa-loop-niter.c: Likewise.
8581 * tree-ssa-loop-prefetch.c: Likewise.
8582 * tree-ssa-loop-unswitch.c: Likewise.
8583 * tree-ssa-loop.c: Likewise.
8584 * tree-ssa-math-opts.c: Likewise.
8585 * tree-ssa-operands.c: Likewise.
8586 * tree-ssa-phiopt.c: Likewise.
8587 * tree-ssa-phiprop.c: Likewise.
8588 * tree-ssa-pre.c: Likewise.
8589 * tree-ssa-propagate.c: Likewise.
8590 * tree-ssa-reassoc.c: Likewise.
8591 * tree-ssa-sccvn.c: Likewise.
8592 * tree-ssa-scopedtables.c: Likewise.
8593 * tree-ssa-sink.c: Likewise.
8594 * tree-ssa-strlen.c: Likewise.
8595 * tree-ssa-structalias.c: Likewise.
8596 * tree-ssa-tail-merge.c: Likewise.
8597 * tree-ssa-ter.c: Likewise.
8598 * tree-ssa-threadedge.c: Likewise.
8599 * tree-ssa-threadupdate.c: Likewise.
8600 * tree-ssa-uncprop.c: Likewise.
8601 * tree-ssa-uninit.c: Likewise.
8602 * tree-ssa.c: Likewise.
8603 * tree-ssanames.c: Likewise.
8604 * tree-stdarg.c: Likewise.
8605 * tree-streamer-in.c: Likewise.
8606 * tree-streamer-out.c: Likewise.
8607 * tree-streamer.c: Likewise.
8608 * tree-switch-conversion.c: Likewise.
8609 * tree-tailcall.c: Likewise.
8610 * tree-vect-data-refs.c: Likewise.
8611 * tree-vect-generic.c: Likewise.
8612 * tree-vect-loop-manip.c: Likewise.
8613 * tree-vect-loop.c: Likewise.
8614 * tree-vect-patterns.c: Likewise.
8615 * tree-vect-slp.c: Likewise.
8616 * tree-vect-stmts.c: Likewise.
8617 * tree-vectorizer.c: Likewise.
8618 * tree-vrp.c: Likewise.
8619 * tree.c: Likewise.
8620 * tsan.c: Likewise.
8621 * ubsan.c: Likewise.
8622 * valtrack.c: Likewise.
8623 * value-prof.c: Likewise.
8624 * var-tracking.c: Likewise.
8625 * varasm.c: Likewise.
8626 * varpool.c: Likewise.
8627 * vmsdbgout.c: Likewise.
8628 * vtable-verify.c: Likewise.
8629 * web.c: Likewise.
8630 * wide-int.cc: Likewise.
8631 * xcoffout.c: Likewise.
8632 * common/common-target.h: Do not include input.h, line-map.h or is-a.h.
8633 * common/common-targhooks.c: Likewise.
8634 * config/aarch64/aarch64-builtins.c: Likewise.
8635 * config/aarch64/aarch64.c: Likewise.
8636 * config/alpha/alpha.c: Likewise.
8637 * config/arc/arc.c: Likewise.
8638 * config/arm/aarch-common.c: Likewise.
8639 * config/arm/arm-builtins.c: Likewise.
8640 * config/arm/arm-c.c: Likewise.
8641 * config/arm/arm.c: Likewise.
8642 * config/avr/avr-c.c: Likewise.
8643 * config/avr/avr-log.c: Likewise.
8644 * config/avr/avr.c: Likewise.
8645 * config/bfin/bfin.c: Likewise.
8646 * config/c6x/c6x.c: Likewise.
8647 * config/cr16/cr16.c: Likewise.
8648 * config/cris/cris.c: Likewise.
8649 * config/darwin-c.c: Likewise.
8650 * config/darwin.c: Likewise.
8651 * config/default-c.c: Likewise.
8652 * config/epiphany/epiphany.c: Likewise.
8653 * config/epiphany/mode-switch-use.c: Likewise.
8654 * config/epiphany/resolve-sw-modes.c: Likewise.
8655 * config/fr30/fr30.c: Likewise.
8656 * config/frv/frv.c: Likewise.
8657 * config/ft32/ft32.c: Likewise.
8658 * config/glibc-c.c: Likewise.
8659 * config/h8300/h8300.c: Likewise.
8660 * config/i386/i386-c.c: Likewise.
8661 * config/i386/i386.c: Likewise.
8662 * config/i386/msformat-c.c: Likewise.
8663 * config/i386/winnt-cxx.c: Likewise.
8664 * config/i386/winnt-stubs.c: Likewise.
8665 * config/i386/winnt.c: Likewise.
8666 * config/ia64/ia64-c.c: Likewise.
8667 * config/ia64/ia64.c: Likewise.
8668 * config/iq2000/iq2000.c: Likewise.
8669 * config/lm32/lm32.c: Likewise.
8670 * config/m32c/m32c-pragma.c: Likewise.
8671 * config/m32c/m32c.c: Likewise.
8672 * config/m32r/m32r.c: Likewise.
8673 * config/m68k/m68k.c: Likewise.
8674 * config/mcore/mcore.c: Likewise.
8675 * config/mep/mep-pragma.c: Likewise.
8676 * config/mep/mep.c: Likewise.
8677 * config/microblaze/microblaze-c.c: Likewise.
8678 * config/microblaze/microblaze.c: Likewise.
8679 * config/mips/mips.c: Likewise.
8680 * config/mmix/mmix.c: Likewise.
8681 * config/mn10300/mn10300.c: Likewise.
8682 * config/moxie/moxie.c: Likewise.
8683 * config/msp430/msp430-c.c: Likewise.
8684 * config/msp430/msp430.c: Likewise.
8685 * config/nds32/nds32-cost.c: Likewise.
8686 * config/nds32/nds32-fp-as-gp.c: Likewise.
8687 * config/nds32/nds32-intrinsic.c: Likewise.
8688 * config/nds32/nds32-isr.c: Likewise.
8689 * config/nds32/nds32-md-auxiliary.c: Likewise.
8690 * config/nds32/nds32-memory-manipulation.c: Likewise.
8691 * config/nds32/nds32-pipelines-auxiliary.c: Likewise.
8692 * config/nds32/nds32-predicates.c: Likewise.
8693 * config/nds32/nds32.c: Likewise.
8694 * config/nios2/nios2.c: Likewise.
8695 * config/nvptx/nvptx.c: Likewise.
8696 * config/pa/pa.c: Likewise.
8697 * config/pdp11/pdp11.c: Likewise.
8698 * config/rl78/rl78-c.c: Likewise.
8699 * config/rl78/rl78.c: Likewise.
8700 * config/rs6000/rs6000-c.c: Likewise.
8701 * config/rs6000/rs6000.c: Likewise.
8702 * config/rx/rx.c: Likewise.
8703 * config/s390/s390-c.c: Likewise.
8704 * config/s390/s390.c: Likewise.
8705 * config/sh/sh-c.c: Likewise.
8706 * config/sh/sh-mem.cc: Likewise.
8707 * config/sh/sh.c: Likewise.
8708 * config/sh/sh_optimize_sett_clrt.cc: Likewise.
8709 * config/sh/sh_treg_combine.cc: Likewise.
8710 * config/sol2-c.c: Likewise.
8711 * config/sol2-cxx.c: Likewise.
8712 * config/sol2-stubs.c: Likewise.
8713 * config/sol2.c: Likewise.
8714 * config/sparc/sparc-c.c: Likewise.
8715 * config/sparc/sparc.c: Likewise.
8716 * config/spu/spu-c.c: Likewise.
8717 * config/spu/spu.c: Likewise.
8718 * config/stormy16/stormy16.c: Likewise.
8719 * config/tilegx/mul-tables.c: Likewise.
8720 * config/tilegx/tilegx-c.c: Likewise.
8721 * config/tilegx/tilegx.c: Likewise.
8722 * config/tilepro/mul-tables.c: Likewise.
8723 * config/tilepro/tilepro-c.c: Likewise.
8724 * config/tilepro/tilepro.c: Likewise.
8725 * config/v850/v850-c.c: Likewise.
8726 * config/v850/v850.c: Likewise.
8727 * config/vax/vax.c: Likewise.
8728 * config/visium/visium.c: Likewise.
8729 * config/vms/vms-c.c: Likewise.
8730 * config/vms/vms.c: Likewise.
8731 * config/vxworks.c: Likewise.
8732 * config/winnt-c.c: Likewise.
8733 * config/xtensa/xtensa.c: Likewise.
8734
8735 2015-06-17 Robert Suchanek <robert.suchanek@imgtec.com>
8736
8737 * config/mips/mips.c (mips_ira_change_pseudo_allocno_class): New
8738 function.
8739 (TARGET_IRA_CHANGE_PSEUDO_ALLOCNO_CLASS): Define macro.
8740
8741 2015-06-17 Richard Biener <rguenther@suse.de>
8742
8743 PR tree-optimization/66251
8744 * tree-vect-stmts.c (vectorizable_store): Fix gathering of vectorized
8745 stmts for SLP strided stores.
8746
8747 Revert
8748 2015-05-22 Richard Biener <rguenther@suse.de>
8749
8750 PR tree-optimization/66251
8751 * tree-vect-stmts.c (vectorizable_conversion): Properly
8752 set STMT_VINFO_VEC_STMT even for the SLP case.
8753
8754 2015-05-26 Michael Matz <matz@suse.de>
8755
8756 PR middle-end/66251
8757 * tree-vect-stmts.c (vect_create_vectorized_demotion_stmts): Always set
8758 STMT_VINFO_VEC_STMT, also with SLP.
8759
8760 2015-06-16 Uros Bizjak <ubizjak@gmail.com>
8761
8762 PR target/56766
8763 * config/i386/sse.md (*avx_addsubv4df3_1): New insn pattern.
8764 (*avx_addsubv4df3_1s): Ditto.
8765 (*sse3_addsubv2df3_1): Ditto.
8766 (*sse3_addsubv2df3_1s): Ditto.
8767 (*avx_addsubv8sf3_1): Ditto.
8768 (*avx_addsubv8sf3_1s): Ditto.
8769 (*sse3_addsubv4sf3_1): Ditto.
8770 (*sse3_addsubv4sf3_1s): Ditto.
8771
8772 2015-06-16 Steve Ellcey <sellcey@imgtec.com>
8773
8774 * config/mips/mti-linux.h (MIPS_SYSVERSION_SPEC): New.
8775 (SYSROOT_SUFFIX_SPEC): Update.
8776 (SYSROOT_HEADERS_SUFFIX_SPEC): New.
8777 (STARTFILE_PREFIX_SPEC): Update.
8778 * config/mips/t-mti-linux (MULTILIB_EXCEPTIONS): Remove.
8779 (MULTILIB_REQUIRED): New.
8780 (MULTILIB_OSDIRNAMES): New.
8781 * config/mips/t-img-linux (MULTILIB_EXCEPTIONS): Remove.
8782 (MULTILIB_REQUIRED): New.
8783 (MULTILIB_OSDIRNAMES): New.
8784
8785 2015-06-16 Matthew Wahab <matthew.wahab@arm.com>
8786
8787 * config/aarch64/aarch64-arches.def: Add "armv8.1-a".
8788 * config/aarch64/aarch64-options-extensions.def: Update "fP",
8789 "simd" and "crypto". Add "lse", "pan", "lor" and "rdma".
8790 * gcc/config/aarch64/aarch64.h (AARCH64_FL_LSE): New.
8791 (AARCH64_FL_PAN): New.
8792 (AARCH64_FL_LOR): New.
8793 (AARCH64_FL_RDMA): New.
8794 (AARCH64_FL_FOR_ARCH8_1): New.
8795 * doc/invoke.texi (AArch64 Options): Add "armv8.1-a" to
8796 -march. Add "lse", "pan", "lor", "rdma" to feature modifiers.
8797
8798 2015-06-16 Martin Liska <mliska@suse.cz>
8799
8800 * bitmap.c (dump_bitmap_statistics): Fix GNU coding style.
8801 * hash-table.c (void dump_hash_table_loc_statistics): Add missing
8802 guard.
8803
8804 2015-06-16 Richard Biener <rguenther@suse.de>
8805
8806 * tree-vect-stmts.c (vectorizable_store): Adjust.
8807 (vectorizable_load): Likewise.
8808 * tree-vect-data-refs.c (vect_create_addr_base_for_vector_ref):
8809 Simplify.
8810 (vect_create_data_ref_ptr): Likewise.
8811 (bump_vector_ptr): Adjust.
8812
8813 2015-06-16 Richard Biener <rguenther@suse.de>
8814
8815 * tree-vect-stmts.c (vectorizable_load): Properly start loads
8816 with the first element if this is grouped loads.
8817
8818 2015-06-16 James Greenhalgh <james.greenhalgh@arm.com>
8819
8820 * config/arm/arm-protos.h (struct tune_params): Rename
8821 log_op_non_sc to log_op_non_short_circuit, and rename enum
8822 values to expand SC to SHORT_CIRCUIT.
8823 * config/arm/arm.c (arm_slowmul_tune): Expand LOG_OP_NON_SC
8824 to LOG_OP_NON_SHORT_CIRCUIT.
8825 (arm_fastmul_tune):Likewise
8826 (arm_strongarm_tune): Likewise.
8827 (arm_xscale_tune): Likewise.
8828 (arm_9e_tune): Likewise.
8829 (arm_marvell_pj4_tune): Likewise.
8830 (arm_v6t2_tune): Likewise.
8831 (arm_cortex_tune): Likewise.
8832 (arm_cortex_a8_tune): Likewise.
8833 (arm_cortex_a7_tune): Likewise.
8834 (arm_cortex_a15_tune): Likewise.
8835 (arm_cortex_a53_tune): Likewise.
8836 (arm_cortex_a57_tune): Likewise.
8837 (arm_xgene1_tune): Likewise.
8838 (arm_cortex_a5_tune): Likewise.
8839 (arm_cortex_a9_tune): Likewise.
8840 (arm_cortex_a12_tune): Likewise.
8841 (arm_v7m_tune): Likewise.
8842 (arm_cortex_m7_tune): Likewise.
8843 (arm_v6m_tune): Likewise.
8844 (arm_fa726te_tune): Likewise.
8845
8846 2015-06-15 David Edelsohn <dje.gcc@gmail.com>
8847
8848 * altivec.md: Delete UNSPEC_VMLADDUHM.
8849 (mulv4si3_p8): New pattern.
8850 (mulv4si3): Use it for POWER8.
8851 (mulv8hi3): Use vmladduhm with zero addend.
8852 (altivec_vmladduhm): Descriptive RTL.
8853
8854 2015-06-15 Jim Wilson <jim.wilson@linaro.org>
8855
8856 * config/aarch64/aarch64.md (mov<mode>_aarch64): Change alternative 2
8857 to use neon_move instead of mov_imm.
8858 (movdi_aarch64): Change alternative 14 to use neon_move not fmov.
8859 (movtf_aarch64): Change alternative 4 to use neon_move_q not fconstd.
8860
8861 * config/aarch64/aarch64.c (aarch64_valid_floating_const): Move
8862 aarch64_float_const_zero_rtx_p check before TFmode check.
8863 * config/aarch64/aarch64.md (movtf): Don't call force_reg if op1 is
8864 an fp zero.
8865 (movtf_aarch64): Separate ?rY alternative into two. Adjust assembly
8866 code and attributes to match. Change condition from register_operand
8867 to aarch64_reg_or_fp_zero for op1. Change type for ldp from
8868 neon_load1_2reg to load2. Change type for stp from neon_store1_2reg
8869 to store2.
8870
8871 2015-06-15 Aldy Hernandez <aldyh@redhat.com>
8872
8873 PR debug/66535
8874 * dwarf2out.c (gen_subprogram_die): Do not check a parent's tag if
8875 there is no parent.
8876
8877 2015-06-14 Shiva Chen <shiva0217@gmail.com>
8878
8879 * aarch64.c (aarch64_simd_lane_bounds): Change %ld to %wd for
8880 HOST_WIDE_INT parameter.
8881
8882 2015-06-14 Jan Hubicka <hubicka@ucw.cz>
8883
8884 PR ipa/66181
8885 * lto-streamer-out.c (hash_tree): Do not hash TYPE_NO_FORCE_BLK.
8886 * tree-streamer-out.c (pack_ts_type_common_value_fields): Do not stream
8887 TYPE_NO_FORCE_BLK.
8888 * tree-streamer-in.c (unpack_ts_type_common_value_fields): Likewise.
8889
8890 2015-06-14 Richard Sandiford <richard.sandiford@arm.com>
8891
8892 * rtl.h (classify_insn): Declare.
8893 * emit-rtl.c (classify_insn): Move to...
8894 * rtl.c: ...here and add generator support.
8895 * gensupport.h (get_emit_function, needs_barrier_p): Declare.
8896 * gensupport.c (get_emit_function, needs_barrier_p): New functions.
8897 * genemit.c (gen_emit_seq): New function.
8898 (gen_expand, gen_split): Use it.
8899
8900 2015-06-13 Patrick Palka <ppalka@gcc.gnu.org>
8901
8902 * tree.c (make_vector_stat): Fix comment to state that the
8903 function returns a VECTOR_CST.
8904
8905 2015-06-13 Richard Sandiford <richard.sandiford@arm.com>
8906
8907 * gensupport.h (add_implicit_parallel): Declare.
8908 * genrecog.c (add_implicit_parallel): Move to...
8909 * gensupport.c (add_implicit_parallel): ...here.
8910 (process_one_cond_exec): Use it.
8911 * genemit.c (gen_insn): Likewise.
8912
8913 2015-06-13 Iain Sandoe <iain@codesourcery.com>
8914
8915 PR bootstrap/66448
8916 * passes.c (rest_of_decl_compilation): Do not register globals for
8917 early debug if they are declared in built-ins.
8918
8919 2015-06-12 Aldy Hernandez <aldyh@redhat.com>
8920
8921 * dwarf2out.c (check_die): Protect with ENABLE_CHECKING.
8922
8923 2015-06-12 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
8924
8925 * ifcvt.c (noce_try_store_flag_constants): Use std::swap instead of
8926 manually swapping.
8927 (noce_try_cmove_arith): Likewise.
8928 (noce_get_alt_condition): Likewise.
8929
8930 2015-06-12 Venkataramanan Kumar <venkataramanan.kumar@amd.com>
8931
8932 * common/config/i386/i386-common.c
8933 (OPTION_MASK_ISA_MWAITX_SET): New.
8934 (ix86_handle_option): Handle mwaitx.
8935 * config.gcc (i[34567]86-*-*): Add mwaitxintrin.h,
8936 (x86_64-*-*): Likewise.
8937 * config/i386/mwaitxintrin.h: New header.
8938 * config/i386/cpuid.h (bit_MWAITX): Define.
8939 * config/i386/driver-i386.c (host_detect_local_cpu): Detect
8940 MWAITX support.
8941 * config/i386/i386.opt (mwaitx): New.
8942 * config/i386/i386-builtin-types.def
8943 (VOID_FTYPE_UNSIGNED_ UNSIGNED_UNSIGNED): New function type.
8944 * config/i386/i386-c.c: Define __MWAITX__ if needed.
8945 * config/i386/i386.c (ix86_target_string): Define -mmwaitx option.
8946 (PTA_MWAITX): New.
8947 (ix86_option_override_internal): Handle new option.
8948 (processor_alias_table): Added PTA_MWAITX.
8949 (ix86_valid_target_attribute_inner_p): Add OPT_mmwaitx.
8950 (ix86_builtins): Add IX86_BUILTIN_MWAITX, IX86_BUILTIN_MONITORX.
8951 (ix86_expand_builtin): Handle IX86_BUILTIN_MWAITX and
8952 IX86_BUILTIN_MONITORX built-ins.
8953 * config/i386/i386.h (TARGET_MWAITX): New.
8954 * config/i386/i386.md (unspecv): Add UNSPEC_MWAITX and
8955 UNSPEC_MONITORX.
8956 (mwaitx): New pattern.
8957 (monitorx_<mode>): New pattern.
8958 * config/i386/x86intrin.h: Include mwaitxintrin.h.
8959 * doc/extend.texi: Document monitorx and mwaitx builtins.
8960 * doc/invoke.texi: Document -mmwaitx option.
8961
8962 2015-06-12 Uros Bizjak <ubizjak@gmail.com>
8963
8964 * emit-rtl.c (need_atomic_barrier_p): Mask model with
8965 MEMMODEL_BASE_MASK. Remove MEMMODEL_SYNC_* cases.
8966
8967 2015-06-11 David Edelsohn <dje.gcc@gmail.com>
8968
8969 * dbxout.c (xcoff_debug_hooks): Provide a function for
8970 register_main_translation_unit hook.
8971
8972 2015-06-11 David Edelsohn <dje.gcc@gmail.com>
8973
8974 * config/rs6000/rs6000.c (rs6000_pre_atomic_barrier): Remove SYNC
8975 variants cases from switch.
8976 (rs6000_post_atomic_barrier): Same.
8977 (rs6000_expand_atomic_compare_and_swap): Use memmodel_base.
8978 (rs6000_expand_atomic_exchange): Same.
8979 (rs6000_expand_atomic_op): Same.
8980 * config/rs6000/sync.md (mem_thread_fence): Use memodel_base. Remove
8981 SYNC variants cases from switch.
8982 (atomic_load): Same.
8983 (atomic_store): Same.
8984
8985 2015-06-11 John David Anglin <danglin@gcc.gnu.org>
8986
8987 * config/pa/pa.c (pa_output_global_address): Handle LABEL_REF plus
8988 CONST_INT for goto.
8989
8990 2015-06-11 Aldy Hernandez <aldyh@redhat.com>
8991
8992 PR bootstrap/66448
8993 * dwarf2out.c (check_die): Check for common duplicate attributes.
8994 (add_location_or_const_value_attribute): Do not add duplicate
8995 attributes.
8996 (gen_formal_parameter_die): Do not add DW_AT_artificial the second
8997 time around.
8998 (gen_struct_or_union_type_die): Bail early if TREE_ASM_WRITTEN.
8999 (gen_type_die_with_usage): Call check_die.
9000 (dwarf2out_decl): Only call check_die() when ENABLE_CHECKING.
9001
9002 2015-06-11 Jason Merrill <jason@redhat.com>
9003
9004 * dwarf2out.c (prune_unused_types): Handle unused top-level limbo
9005 dies.
9006
9007 2015-06-11 Marek Polacek <polacek@redhat.com>
9008
9009 * match.pd ((x & y) ^ (x | y)): Don't check for single_use.
9010
9011 2015-06-11 Eric Botcazou <ebotcazou@adacore.com>
9012
9013 PR bootstrap/66252
9014 * config/sparc/sparc.c (hard_regno_mode_classes): Add ??? comment.
9015 * config/sparc/sparc.md (zero_extendsidi2_insn_sp32): Use single order.
9016 (*addx_extend_sp32): Fix pasto.
9017 (*subx_extend): Rename into...
9018 (*subx_extend_sp32): ...this.
9019 (*adddi3_extend_sp32): Add earlyclobber.
9020 (*subdi3_insn_sp32): Likewise.
9021 (*subdi3_extend_sp32): Likewise.
9022 (*and_not_di_sp32): Likewise.
9023 (*or_not_di_sp32): Likewise.
9024 (*xor_not_di_sp32): Likewise.
9025 (*negdi2_sp32): Likewise.
9026 (*one_cmpldi2_sp32): Likewise.
9027
9028 2015-06-11 Pierre-Marie de Rodat <derodat@adacore.com>
9029
9030 * debug.h (struct gcc_debug_hooks): Add a
9031 register_main_translation_unit hook.
9032 * debug.c (do_nothing_debug_hooks): Provide a function for this
9033 new hook.
9034 * dbxout.c (dbx_debug_hooks): Likewise.
9035 * sdbout.c (sdb_debug_hooks): Likewise.
9036 * vmsdbgout.c (vmsdbg_debug_hooks): Likewise.
9037 * dwarf2out.c (main_translation_unit): New global variable.
9038 (dwarf2out_register_main_translation_unit): New function
9039 implementing the new hook.
9040 (dwarf2_debug_hooks): Assign
9041 dwarf2out_register_main_translation_unit to this new hook.
9042 (dwarf2out_init): Associate any main translation unit to
9043 comp_unit_die ().
9044
9045 2015-06-11 Marek Polacek <polacek@redhat.com>
9046
9047 * match.pd ((x & y) ^ (x | y) -> x ^ y): New pattern.
9048
9049 2015-06-11 Marek Polacek <polacek@redhat.com>
9050
9051 * match.pd: Use single_use throughout.
9052
9053 2015-06-11 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
9054
9055 * config/arm/arm.c (arm_option_params_internal): When optimising
9056 for speed set max_insns_skipped when arm_restrict_it.
9057
9058 2015-06-11 Christian Bruel <christian.bruel@st.com>
9059
9060 PR target/52144
9061 * config/arm/arm-c.c (arm_cpu_cpp_builtins): Conditionally define
9062 macros in ...
9063 (arm_cpu_builtins): New function.
9064 (arm_pragma_target_parse): Call arm_cpu_builtins.
9065 * config/arm/arm-protos.h (arm_cpu_builtins): Declare.
9066 (arm_register_target_pragmas): Likewise.
9067 * config/arm/arm.h (REGISTER_TARGET_PRAGMAS):
9068 Call arm_register_target_pragmas.
9069 * config/arm/arm-c.c (arm_register_target_pragmas): New function.
9070 (arm_pragma_target_parse): Likewise.
9071
9072 2015-06-10 Kaz Kojima <kkojima@gcc.gnu.org>
9073
9074 * config/sh/sh.md (tstsi_t): Add '?' modifier to 'r' alternative
9075 of the second operand.
9076
9077 2015-06-10 Uros Bizjak <ubizjak@gmail.com>
9078
9079 PR target/66473
9080 * config/i386/i386.c (ix86_expand_vector_set): Use gen_int_mode
9081 to prepare mask operand for AVX512 modes.
9082
9083 2015-06-10 Michael Meissner <meissner@linux.vnet.ibm.com>
9084
9085 PR target/66474
9086 * doc/md.texi (Machine Constraints): Document that on the PowerPC
9087 if you use a constraint that targets a VSX register, you must use
9088 %x<n> in the template.
9089
9090 2015-06-10 Max Filippov <jcmvbkbc@gmail.com>
9091
9092 * config/xtensa/xtensa.h (TARGET_DEBUG): New definition.
9093 * config/xtensa/xtensa.md (define_attr "type"): New type "trap".
9094 (define_insn "trap"): New definition.
9095
9096 2015-06-10 Richard Biener <rguenther@suse.de>
9097
9098 * tree-vect-slp.c (vect_attempt_slp_rearrange_stmts): Split
9099 out from ...
9100 (vect_supported_load_permutation_p): ... here. Handle
9101 supportable permutations in reductions.
9102 * tree-vect-stmts.c (vectorizable_load): Handle SLP permutations
9103 for vectorizing strided group loads.
9104
9105 2015-06-10 Jakub Jelinek <jakub@redhat.com>
9106
9107 PR target/66470
9108 * config/i386/i386.c (ix86_split_long_move): For collisions
9109 involving direct tls segment refs, move the UNSPEC_TP possibly
9110 wrapped in ZERO_EXTEND out of the address for lea, to each of
9111 the memory loads.
9112
9113 2015-06-10 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
9114
9115 * config/arm/sync.md (*memory_barrier): Use dmb ish instead of
9116 dmb sy. Adjust tabs.
9117
9118 2015-06-10 Tom de Vries <tom@codesourcery.com>
9119
9120 * omp-low.c (expand_omp_target): Remove duplicate declaration of node.
9121
9122 2015-06-10 Martin Liska <mliska@suse.cz>
9123
9124 PR bootstrap/66471
9125 * mem-stats-traits.h (enum mem_alloc_origin): Add _ORIGIN suffix for
9126 all enum values in mem_alloc_origin.
9127 * alloc-pool.c (dump_alloc_pool_statistics): Use newly changed enum
9128 name.
9129 * alloc-pool.h (pool_allocator::pool_allocator): Likewise.
9130 * bitmap.c (bitmap_register): Likewise.
9131 (dump_bitmap_statistics): Likewise.
9132 * ggc-common.c (dump_ggc_loc_statistics): Likewise.
9133 (ggc_record_overhead): Likewise.
9134 * hash-map.h: Likewise.
9135 * hash-set.h: Likewise.
9136 * hash-table.c (void dump_hash_table_loc_statistics): Likewise.
9137 * hash-table.h: Likewise.
9138 * vec.c (vec_prefix::register_overhead): Likewise.
9139 (vec_prefix::release_overhead): Likewise.
9140 (dump_vec_loc_statistics): Likewise.
9141
9142 2015-06-09 Christian Bruel <christian.bruel@st.com>
9143
9144 PR target/52144
9145 * config/arm/arm.opt (THUMB, arm_restrict_it, inline_asm_unified): Save.
9146 * config/arm/arm-protos.h (arm_valid_target_attribute_tree): Declare.
9147 (arm_reset_previous_fndecl, arm_change_mode_p): Likewise.
9148 * config/arm/arm.h (SWITCHABLE_TARGET): Define.
9149 * config/arm/arm.c (arm_reset_previous_fndecl): New functions.
9150 (arm_valid_target_attribute_tree, arm_change_mode_p): Likewise.
9151 (arm_valid_target_attribute_p): Likewise.
9152 (arm_set_current_function, arm_can_inline_p): Likewise.
9153 (arm_valid_target_attribute_rec): Likewise.
9154 (arm_previous_fndecl): New variable.
9155 (TARGET_SET_CURRENT_FUNCTION, TARGET_OPTION_VALID_ATTRIBUTE_P): Define.
9156 (TARGET_CAN_INLINE_P): Define.
9157 (arm_asm_trampoline_template): Emit mode.
9158 (arm_file_start): Don't set unified syntax.
9159 (arm_declare_function_name): Set unified syntax and mode.
9160 (arm_option_override): Init target_option_default_node.
9161 and target_option_current_node.
9162 * config/arm/arm.md (*call_value_symbol): Set mode when possible.
9163 (*call_symbol): Likewise.
9164 * doc/extend.texi: Document ARM/Thumb target attribute.
9165 * doc/invoke.texi: Likewise.
9166
9167 2015-06-09 Alexandre Oliva <aoliva@redhat.com>
9168
9169 Revert:
9170 2015-06-09 Alexandre Oliva <aoliva@redhat.com>
9171 PR rtl-optimization/64164
9172 * Makefile.in (OBJS): Drop tree-ssa-copyrename.o.
9173 * tree-ssa-copyrename.c: Removed.
9174 * opts.c (default_options_table): Drop -ftree-copyrename. Add
9175 -ftree-coalesce-vars.
9176 * passes.def: Drop all occurrences of pass_rename_ssa_copies.
9177 * common.opt (ftree-copyrename): Ignore.
9178 (ftree-coalesce-inlined-vars): Likewise.
9179 * doc/invoke.texi: Remove the ignored options above.
9180 * gimple-expr.h (gimple_can_coalesce_p): Move declaration
9181 * tree-ssa-coalesce.h: ... here.
9182 * tree-ssa-uncprop.c: Include tree-ssa-coalesce.h and other
9183 headers required by it.
9184 * gimple-expr.c (gimple_can_coalesce_p): Allow coalescing
9185 across variables when flag_tree_coalesce_vars. Check register
9186 use and promoted modes to allow coalescing. Moved to
9187 tree-ssa-coalesce.c.
9188 * tree-ssa-live.c (struct tree_int_map_hasher): Move along
9189 with its member functions to tree-ssa-coalesce.c.
9190 (var_map_base_init): Likewise. Renamed to
9191 compute_samebase_partition_bases.
9192 (partition_view_normal): Drop want_bases parameter.
9193 (partition_view_bitmap): Likewise.
9194 * tree-ssa-live.h: Adjust declarations.
9195 * tree-ssa-coalesce.c: Include explow.h.
9196 (build_ssa_conflict_graph): Process PARM_ and RESULT_DECLs's
9197 default defs at the entry point.
9198 (dump_part_var_map): New.
9199 (compute_optimized_partition_bases): New, called by...
9200 (coalesce_ssa_name): ... when flag_tree_coalesce_vars, instead
9201 of compute_samebase_partition_bases. Adjust.
9202 * alias.c (nonoverlapping_memrefs_p): Disregard gimple-regs.
9203 * cfgexpand.c (leader_merge): New.
9204 (get_rtl_for_parm_ssa_default_def): New.
9205 (set_rtl): Merge exprs and attrs, even for MEMs and non-SSA
9206 vars. Update DECL_RTL for PARM_DECLs and RESULT_DECLs too.
9207 (expand_one_stack_var_at): Handle anonymous SSA_NAMEs. Drop
9208 redundant MEM attr setting.
9209 (expand_one_stack_var_1): Handle anonymous SSA_NAMEs. Renamed
9210 from...
9211 (expand_one_stack_var): ... this. New wrapper to check and
9212 skip already expanded SSA partitions.
9213 (record_alignment_for_reg_var): New, factored out of...
9214 (expand_one_var): ... this.
9215 (expand_one_ssa_partition): New.
9216 (adjust_one_expanded_partition_var): New.
9217 (expand_one_register_var): Check and skip already expanded SSA
9218 partitions.
9219 (expand_used_vars): Don't create DECLs for anonymous SSA
9220 names. Expand all SSA partitions, then adjust all SSA names.
9221 (pass::execute): Replace the loops that set
9222 SA.partition_to_pseudo from partition leaders and cleared
9223 DECL_RTL for multi-location variables, and that which used to
9224 rename vars and set attrs, with one that clears DECL_RTL and
9225 checks that PARMs and RESULTs default_defs match DECL_RTL.
9226 * cfgexpand.h (get_rtl_for_parm_ssa_default_def): Declare.
9227 * emit-rtl.c (set_reg_attrs_for_parm): Handle NULL decl.
9228 * explow.c (promote_ssa_mode): New.
9229 * explow.h (promote_ssa_mode): Declare.
9230 * expr.c (expand_expr_real_1): Handle anonymous SSA_NAMEs.
9231 * function.c: Include cfgexpand.h.
9232 (use_register_for_decl): Handle SSA_NAMEs, anonymous or not.
9233 (use_register_for_parm_decl): Wrapper for the above to
9234 special-case the result_ptr.
9235 (rtl_for_parm): Ditto for get_rtl_for_parm_ssa_default_def.
9236 (maybe_reset_rtl_for_parm): Reset DECL_RTL of parms with
9237 multiple locations.
9238 (assign_parm_adjust_stack_rtl): Add all and parm arguments,
9239 for rtl_for_parm. For SSA-assigned parms, zero stack_parm.
9240 (assign_parm_setup_block): Prefer SSA-assigned location.
9241 (assign_parm_setup_reg): Likewise. Use entry_parm for equiv
9242 if stack_parm is NULL.
9243 (assign_parm_setup_stack): Prefer SSA-assigned location.
9244 (assign_parms): Maybe reset DECL_RTL of params. Adjust stack
9245 rtl before testing for pointer bounds. Special-case result_ptr.
9246 (expand_function_start): Maybe reset DECL_RTL of result.
9247 Prefer SSA-assigned location for result and static chain.
9248 Factor out DECL_RESULT and SET_DECL_RTL.
9249 * tree-outof-ssa.c (insert_value_copy_on_edge): Handle
9250 anonymous SSA names. Use promote_ssa_mode.
9251 (get_temp_reg): Likewise.
9252 (remove_ssa_form): Adjust.
9253 * var-tracking.c (dataflow_set_clear_at_call): Take call_insn
9254 and get its reg_usage for reg invalidation.
9255 (compute_bb_dataflow): Pass it insn.
9256 (emit_notes_in_bb): Likewise.
9257 * tree-ssa-loop-niter.c (loop_exits_before_overflow): Don't
9258 fail assert on conversion between unsigned types.
9259
9260 2015-06-09 Tom de Vries <tom@codesourcery.com>
9261
9262 PR tree-optimization/65460
9263 * omp-low.c (expand_omp_target): Set parallelized_function on
9264 cgraph_node for child_fn.
9265
9266 2015-06-09 Tom de Vries <tom@codesourcery.com>
9267
9268 * omp-low.c (finalize_task_copyfn, expand_omp_taskreg): Mark function
9269 parallelized_function before add_new_function.
9270
9271 2015-06-09 Andrew MacLeod <amacleod@redhat.com>
9272
9273 * gcc-plugin.h: Move decls to plugin.h and include it.
9274 * plugin.h: Relocate decls from gcc-plugin.h
9275 * ggc-page.c: Include required header files.
9276 * passes.c: Likewise.
9277 * cgraphunit.c: Likewise.
9278
9279 2015-06-09 Tom de Vries <tom@codesourcery.com>
9280
9281 * tree-stdarg.c (expand_ifn_va_arg_1): Handle location.
9282
9283 2015-06-09 Jason Merrill <jason@redhat.com>
9284
9285 PR bootstrap/66448
9286 * toplev.c (check_global_declaration): Don't warn about a clone.
9287
9288 2015-06-09 Marek Polacek <polacek@redhat.com>
9289
9290 PR tree-optimization/66299
9291 * match.pd ((CST1 << A) == CST2 -> A == ctz (CST2) - ctz (CST1)
9292 ((CST1 << A) != CST2 -> A != ctz (CST2) - ctz (CST1)): New
9293 patterns.
9294
9295 2015-06-09 Richard Biener <rguenther@suse.de>
9296
9297 * tree-vect-slp.c (vect_build_slp_tree_1): Remove bailout on gaps.
9298 (vect_analyze_slp_instance): Instead do not falsely drop
9299 load permutations.
9300
9301 2015-06-09 Richard Biener <rguenther@suse.de>
9302
9303 PR middle-end/66423
9304 * match.pd: Handle A % (unsigned)(1 << B).
9305
9306 2015-06-09 Aldy Hernandez <aldyh@redhat.com>
9307
9308 * varasm.c (output_object_block_htab): Remove.
9309 (output_object_block_compare): New.
9310 (output_object_blocks): Sort named object_blocks before outputting
9311 them.
9312
9313 2015-06-09 Richard Biener <rguenther@suse.de>
9314
9315 PR tree-optimization/66419
9316 * tree-vect-slp.c (vect_supported_load_permutation_p): Properly
9317 consider GROUP_GAP when detecting a perfect subchain.
9318
9319 2015-06-09 Nick Clifton <nickc@redhat.com>
9320
9321 * config/rl78/rl78.c (rl78_select_section): When -mes0 is active
9322 place read only data in the .frodata section.
9323
9324 2015-06-09 Shiva Chen <shiva0217@gmail.com>
9325
9326 * sync.md (atomic_load<mode>): Add conditional code for lda/ldr
9327 (atomic_store<mode>): Likewise.
9328
9329 2015-06-09 Richard Biener <rguenther@suse.de>
9330
9331 * cfgloop.c (get_loop_body_in_bfs_order): Fix assert.
9332
9333 2015-06-09 Richard Biener <rguenther@suse.de>
9334
9335 PR middle-end/66413
9336 * tree-inline.c (insert_init_debug_bind): Unshare value.
9337
9338 2015-06-09 Richard Biener <rguenther@suse.de>
9339
9340 PR tree-optimization/66396
9341 * graphite-isl-ast-to-gimple.c (graphite_regenerate_ast_isl):
9342 Rename virtual operands.
9343
9344 2015-06-09 Tom de Vries <tom@codesourcery.com>
9345
9346 * gimple-iterator.h (gimple_seq_nondebug_singleton_p): Don't
9347 always return false.
9348
9349 2015-06-09 Alexandre Oliva <aoliva@redhat.com>
9350
9351 PR rtl-optimization/64164
9352 * Makefile.in (OBJS): Drop tree-ssa-copyrename.o.
9353 * tree-ssa-copyrename.c: Removed.
9354 * opts.c (default_options_table): Drop -ftree-copyrename. Add
9355 -ftree-coalesce-vars.
9356 * passes.def: Drop all occurrences of pass_rename_ssa_copies.
9357 * common.opt (ftree-copyrename): Ignore.
9358 (ftree-coalesce-inlined-vars): Likewise.
9359 * doc/invoke.texi: Remove the ignored options above.
9360 * gimple-expr.h (gimple_can_coalesce_p): Move declaration
9361 * tree-ssa-coalesce.h: ... here.
9362 * tree-ssa-uncprop.c: Include tree-ssa-coalesce.h and other
9363 headers required by it.
9364 * gimple-expr.c (gimple_can_coalesce_p): Allow coalescing
9365 across variables when flag_tree_coalesce_vars. Check register
9366 use and promoted modes to allow coalescing. Moved to
9367 tree-ssa-coalesce.c.
9368 * tree-ssa-live.c (struct tree_int_map_hasher): Move along
9369 with its member functions to tree-ssa-coalesce.c.
9370 (var_map_base_init): Likewise. Renamed to
9371 compute_samebase_partition_bases.
9372 (partition_view_normal): Drop want_bases parameter.
9373 (partition_view_bitmap): Likewise.
9374 * tree-ssa-live.h: Adjust declarations.
9375 * tree-ssa-coalesce.c: Include explow.h.
9376 (build_ssa_conflict_graph): Process PARM_ and RESULT_DECLs's
9377 default defs at the entry point.
9378 (dump_part_var_map): New.
9379 (compute_optimized_partition_bases): New, called by...
9380 (coalesce_ssa_name): ... when flag_tree_coalesce_vars, instead
9381 of compute_samebase_partition_bases. Adjust.
9382 * alias.c (nonoverlapping_memrefs_p): Disregard gimple-regs.
9383 * cfgexpand.c (leader_merge): New.
9384 (get_rtl_for_parm_ssa_default_def): New.
9385 (set_rtl): Merge exprs and attrs, even for MEMs and non-SSA
9386 vars. Update DECL_RTL for PARM_DECLs and RESULT_DECLs too.
9387 (expand_one_stack_var_at): Handle anonymous SSA_NAMEs. Drop
9388 redundant MEM attr setting.
9389 (expand_one_stack_var_1): Handle anonymous SSA_NAMEs. Renamed
9390 from...
9391 (expand_one_stack_var): ... this. New wrapper to check and
9392 skip already expanded SSA partitions.
9393 (record_alignment_for_reg_var): New, factored out of...
9394 (expand_one_var): ... this.
9395 (expand_one_ssa_partition): New.
9396 (adjust_one_expanded_partition_var): New.
9397 (expand_one_register_var): Check and skip already expanded SSA
9398 partitions.
9399 (expand_used_vars): Don't create DECLs for anonymous SSA
9400 names. Expand all SSA partitions, then adjust all SSA names.
9401 (pass::execute): Replace the loops that set
9402 SA.partition_to_pseudo from partition leaders and cleared
9403 DECL_RTL for multi-location variables, and that which used to
9404 rename vars and set attrs, with one that clears DECL_RTL and
9405 checks that PARMs and RESULTs default_defs match DECL_RTL.
9406 * cfgexpand.h (get_rtl_for_parm_ssa_default_def): Declare.
9407 * emit-rtl.c (set_reg_attrs_for_parm): Handle NULL decl.
9408 * explow.c (promote_ssa_mode): New.
9409 * explow.h (promote_ssa_mode): Declare.
9410 * expr.c (expand_expr_real_1): Handle anonymous SSA_NAMEs.
9411 * function.c: Include cfgexpand.h.
9412 (use_register_for_decl): Handle SSA_NAMEs, anonymous or not.
9413 (use_register_for_parm_decl): Wrapper for the above to
9414 special-case the result_ptr.
9415 (rtl_for_parm): Ditto for get_rtl_for_parm_ssa_default_def.
9416 (maybe_reset_rtl_for_parm): Reset DECL_RTL of parms with
9417 multiple locations.
9418 (assign_parm_adjust_stack_rtl): Add all and parm arguments,
9419 for rtl_for_parm. For SSA-assigned parms, zero stack_parm.
9420 (assign_parm_setup_block): Prefer SSA-assigned location.
9421 (assign_parm_setup_reg): Likewise. Use entry_parm for equiv
9422 if stack_parm is NULL.
9423 (assign_parm_setup_stack): Prefer SSA-assigned location.
9424 (assign_parms): Maybe reset DECL_RTL of params. Adjust stack
9425 rtl before testing for pointer bounds. Special-case result_ptr.
9426 (expand_function_start): Maybe reset DECL_RTL of result.
9427 Prefer SSA-assigned location for result and static chain.
9428 Factor out DECL_RESULT and SET_DECL_RTL.
9429 * tree-outof-ssa.c (insert_value_copy_on_edge): Handle
9430 anonymous SSA names. Use promote_ssa_mode.
9431 (get_temp_reg): Likewise.
9432 (remove_ssa_form): Adjust.
9433 * var-tracking.c (dataflow_set_clear_at_call): Take call_insn
9434 and get its reg_usage for reg invalidation.
9435 (compute_bb_dataflow): Pass it insn.
9436 (emit_notes_in_bb): Likewise.
9437 * tree-ssa-loop-niter.c (loop_exits_before_overflow): Don't
9438 fail assert on conversion between unsigned types.
9439
9440 2015-06-09 Alexandre Oliva <aoliva@redhat.com>
9441
9442 PR debug/58315
9443 * tree-inline.c (reset_debug_binding): New.
9444 (reset_debug_bindings): Likewise.
9445 (expand_call_inline): Call it.
9446
9447 2015-06-08 Jan Hubicka <hubicka@ucw.cz>
9448
9449 * tree.c (gimple_canonical_types_compatible_p): Drop comparsion of
9450 TYPE_STRING_FLAG.
9451
9452 2015-06-08 Jan Hubicka <hubicka@ucw.cz>
9453
9454 * lto-streamer-out.c (lto_output_location): Stream
9455 reserved locations correctly.
9456 * lto-streamer-in.c (lto_output_location): Likewise.
9457
9458 2015-06-08 Andrew MacLeod <amacleod@redhat.com>
9459
9460 * coretypes.h: Include hash-table.h and hash-set.h for host files.
9461 * ggc.h: Don't include statistics.h>
9462 * hash-map.h: Remove all includes.
9463 * hash-set.h: Likewise.
9464 * hash-table.h: Add statistics.h, inchash.h and hash-map-traits.h to
9465 the include list. Remove <new>.
9466 * inchash.h: Remove all includes.
9467 * mem-stats.h: Likewise.
9468 * vec.h: No special processing for generators or ggc.
9469 * alias.c : Adjust include files.
9470 * alloc-pool.c : Likewise.
9471 * alloc-pool.h : Likewise.
9472 * asan.c : Likewise.
9473 * attribs.c : Likewise.
9474 * auto-inc-dec.c : Likewise.
9475 * auto-profile.c : Likewise.
9476 * bb-reorder.c : Likewise.
9477 * bitmap.c : Likewise.
9478 * bitmap.h : Likewise.
9479 * bt-load.c : Likewise.
9480 * builtins.c : Likewise.
9481 * caller-save.c : Likewise.
9482 * calls.c : Likewise.
9483 * ccmp.c : Likewise.
9484 * cfg.c : Likewise.
9485 * cfganal.c : Likewise.
9486 * cfgbuild.c : Likewise.
9487 * cfgcleanup.c : Likewise.
9488 * cfgexpand.c : Likewise.
9489 * cfghooks.c : Likewise.
9490 * cfgloop.c : Likewise.
9491 * cfgloop.h : Likewise.
9492 * cfgloopanal.c : Likewise.
9493 * cfgloopmanip.c : Likewise.
9494 * cfgrtl.c : Likewise.
9495 * cgraph.c : Likewise.
9496 * cgraphbuild.c : Likewise.
9497 * cgraphclones.c : Likewise.
9498 * cgraphunit.c : Likewise.
9499 * cilk-common.c : Likewise.
9500 * combine-stack-adj.c : Likewise.
9501 * combine.c : Likewise.
9502 * compare-elim.c : Likewise.
9503 * context.c : Likewise.
9504 * convert.c : Likewise.
9505 * coverage.c : Likewise.
9506 * cppbuiltin.c : Likewise.
9507 * cprop.c : Likewise.
9508 * cse.c : Likewise.
9509 * cselib.c : Likewise.
9510 * data-streamer-in.c : Likewise.
9511 * data-streamer-out.c : Likewise.
9512 * data-streamer.c : Likewise.
9513 * data-streamer.h : Likewise.
9514 * dbxout.c : Likewise.
9515 * dce.c : Likewise.
9516 * ddg.c : Likewise.
9517 * debug.c : Likewise.
9518 * df-core.c : Likewise.
9519 * df-problems.c : Likewise.
9520 * df-scan.c : Likewise.
9521 * df.h : Likewise.
9522 * dfp.c : Likewise.
9523 * dojump.c : Likewise.
9524 * dominance.c : Likewise.
9525 * domwalk.c : Likewise.
9526 * double-int.c : Likewise.
9527 * dse.c : Likewise.
9528 * dumpfile.c : Likewise.
9529 * dwarf2asm.c : Likewise.
9530 * dwarf2cfi.c : Likewise.
9531 * dwarf2out.c : Likewise.
9532 * emit-rtl.c : Likewise.
9533 * et-forest.c : Likewise.
9534 * except.c : Likewise.
9535 * except.h : Likewise.
9536 * explow.c : Likewise.
9537 * expmed.c : Likewise.
9538 * expr.c : Likewise.
9539 * final.c : Likewise.
9540 * fixed-value.c : Likewise.
9541 * fold-const.c : Likewise.
9542 * function.c : Likewise.
9543 * fwprop.c : Likewise.
9544 * gcc-plugin.h : Likewise.
9545 * gcc.c : Likewise.
9546 * gcse-common.c : Likewise.
9547 * gcse.c : Likewise.
9548 * genattrtab.c : Likewise.
9549 * genautomata.c : Likewise.
9550 * genconditions.c : Likewise.
9551 * genemit.c : Likewise.
9552 * generic-match-head.c : Likewise.
9553 * genextract.c : Likewise.
9554 * gengtype-state.c : Likewise.
9555 * gengtype.c : Likewise.
9556 * genhooks.c : Likewise.
9557 * genmatch.c : Likewise.
9558 * genmodes.c : Likewise.
9559 * genrecog.c : Likewise.
9560 * gensupport.c : Likewise.
9561 * ggc-common.c : Likewise.
9562 * ggc-internal.h : Likewise.
9563 * ggc-none.c : Likewise.
9564 * ggc-page.c : Likewise.
9565 * gimple-builder.c : Likewise.
9566 * gimple-expr.c : Likewise.
9567 * gimple-fold.c : Likewise.
9568 * gimple-iterator.c : Likewise.
9569 * gimple-low.c : Likewise.
9570 * gimple-match-head.c : Likewise.
9571 * gimple-pretty-print.c : Likewise.
9572 * gimple-ssa-isolate-paths.c : Likewise.
9573 * gimple-ssa-strength-reduction.c : Likewise.
9574 * gimple-ssa.h : Likewise.
9575 * gimple-streamer-in.c : Likewise.
9576 * gimple-streamer-out.c : Likewise.
9577 * gimple-streamer.h : Likewise.
9578 * gimple-walk.c : Likewise.
9579 * gimple.c : Likewise.
9580 * gimplify-me.c : Likewise.
9581 * gimplify.c : Likewise.
9582 * godump.c : Likewise.
9583 * graph.c : Likewise.
9584 * graphds.c : Likewise.
9585 * graphite-blocking.c : Likewise.
9586 * graphite-dependences.c : Likewise.
9587 * graphite-interchange.c : Likewise.
9588 * graphite-isl-ast-to-gimple.c : Likewise.
9589 * graphite-optimize-isl.c : Likewise.
9590 * graphite-poly.c : Likewise.
9591 * graphite-scop-detection.c : Likewise.
9592 * graphite-sese-to-poly.c : Likewise.
9593 * graphite.c : Likewise.
9594 * haifa-sched.c : Likewise.
9595 * hard-reg-set.h : Likewise.
9596 * hw-doloop.c : Likewise.
9597 * ifcvt.c : Likewise.
9598 * inchash.c : Likewise.
9599 * incpath.c : Likewise.
9600 * init-regs.c : Likewise.
9601 * input.c : Likewise.
9602 * internal-fn.c : Likewise.
9603 * ipa-chkp.c : Likewise.
9604 * ipa-comdats.c : Likewise.
9605 * ipa-cp.c : Likewise.
9606 * ipa-devirt.c : Likewise.
9607 * ipa-icf-gimple.c : Likewise.
9608 * ipa-icf.c : Likewise.
9609 * ipa-inline-analysis.c : Likewise.
9610 * ipa-inline-transform.c : Likewise.
9611 * ipa-inline.c : Likewise.
9612 * ipa-polymorphic-call.c : Likewise.
9613 * ipa-profile.c : Likewise.
9614 * ipa-prop.c : Likewise.
9615 * ipa-pure-const.c : Likewise.
9616 * ipa-ref.c : Likewise.
9617 * ipa-reference.c : Likewise.
9618 * ipa-split.c : Likewise.
9619 * ipa-utils.c : Likewise.
9620 * ipa-visibility.c : Likewise.
9621 * ipa.c : Likewise.
9622 * ira-build.c : Likewise.
9623 * ira-color.c : Likewise.
9624 * ira-conflicts.c : Likewise.
9625 * ira-costs.c : Likewise.
9626 * ira-emit.c : Likewise.
9627 * ira-lives.c : Likewise.
9628 * ira.c : Likewise.
9629 * jump.c : Likewise.
9630 * langhooks.c : Likewise.
9631 * lcm.c : Likewise.
9632 * libfuncs.h : Likewise.
9633 * lists.c : Likewise.
9634 * loop-doloop.c : Likewise.
9635 * loop-init.c : Likewise.
9636 * loop-invariant.c : Likewise.
9637 * loop-iv.c : Likewise.
9638 * loop-unroll.c : Likewise.
9639 * lower-subreg.c : Likewise.
9640 * lra-assigns.c : Likewise.
9641 * lra-coalesce.c : Likewise.
9642 * lra-constraints.c : Likewise.
9643 * lra-eliminations.c : Likewise.
9644 * lra-lives.c : Likewise.
9645 * lra-remat.c : Likewise.
9646 * lra-spills.c : Likewise.
9647 * lra.c : Likewise.
9648 * lto-cgraph.c : Likewise.
9649 * lto-compress.c : Likewise.
9650 * lto-opts.c : Likewise.
9651 * lto-section-in.c : Likewise.
9652 * lto-section-out.c : Likewise.
9653 * lto-streamer-in.c : Likewise.
9654 * lto-streamer-out.c : Likewise.
9655 * lto-streamer.c : Likewise.
9656 * lto-streamer.h : Likewise.
9657 * mcf.c : Likewise.
9658 * mode-switching.c : Likewise.
9659 * modulo-sched.c : Likewise.
9660 * omega.c : Likewise.
9661 * omp-low.c : Likewise.
9662 * optabs.c : Likewise.
9663 * opts-global.c : Likewise.
9664 * opts.h : Likewise.
9665 * passes.c : Likewise.
9666 * plugin.c : Likewise.
9667 * postreload-gcse.c : Likewise.
9668 * postreload.c : Likewise.
9669 * predict.c : Likewise.
9670 * print-rtl.c : Likewise.
9671 * print-tree.c : Likewise.
9672 * profile.c : Likewise.
9673 * read-md.c : Likewise.
9674 * read-md.h : Likewise.
9675 * read-rtl.c : Likewise.
9676 * real.c : Likewise.
9677 * realmpfr.c : Likewise.
9678 * recog.c : Likewise.
9679 * ree.c : Likewise.
9680 * reg-stack.c : Likewise.
9681 * regcprop.c : Likewise.
9682 * reginfo.c : Likewise.
9683 * regrename.c : Likewise.
9684 * regstat.c : Likewise.
9685 * reload.c : Likewise.
9686 * reload1.c : Likewise.
9687 * reorg.c : Likewise.
9688 * resource.c : Likewise.
9689 * rtl-chkp.c : Likewise.
9690 * rtl.c : Likewise.
9691 * rtl.h : Likewise.
9692 * rtlanal.c : Likewise.
9693 * rtlhash.c : Likewise.
9694 * rtlhash.h : Likewise.
9695 * rtlhooks.c : Likewise.
9696 * sanopt.c : Likewise.
9697 * sched-deps.c : Likewise.
9698 * sched-ebb.c : Likewise.
9699 * sched-rgn.c : Likewise.
9700 * sched-vis.c : Likewise.
9701 * sdbout.c : Likewise.
9702 * sel-sched-dump.c : Likewise.
9703 * sel-sched-ir.c : Likewise.
9704 * sel-sched-ir.h : Likewise.
9705 * sel-sched.c : Likewise.
9706 * sese.c : Likewise.
9707 * shrink-wrap.c : Likewise.
9708 * shrink-wrap.h : Likewise.
9709 * simplify-rtx.c : Likewise.
9710 * stack-ptr-mod.c : Likewise.
9711 * statistics.c : Likewise.
9712 * stmt.c : Likewise.
9713 * stor-layout.c : Likewise.
9714 * store-motion.c : Likewise.
9715 * stringpool.c : Likewise.
9716 * symtab.c : Likewise.
9717 * target-globals.c : Likewise.
9718 * targhooks.c : Likewise.
9719 * tlink.c : Likewise.
9720 * toplev.c : Likewise.
9721 * tracer.c : Likewise.
9722 * trans-mem.c : Likewise.
9723 * tree-affine.c : Likewise.
9724 * tree-affine.h : Likewise.
9725 * tree-browser.c : Likewise.
9726 * tree-call-cdce.c : Likewise.
9727 * tree-cfg.c : Likewise.
9728 * tree-cfgcleanup.c : Likewise.
9729 * tree-chkp-opt.c : Likewise.
9730 * tree-chkp.c : Likewise.
9731 * tree-chrec.c : Likewise.
9732 * tree-complex.c : Likewise.
9733 * tree-data-ref.c : Likewise.
9734 * tree-dfa.c : Likewise.
9735 * tree-diagnostic.c : Likewise.
9736 * tree-dump.c : Likewise.
9737 * tree-eh.c : Likewise.
9738 * tree-eh.h : Likewise.
9739 * tree-emutls.c : Likewise.
9740 * tree-hasher.h : Likewise.
9741 * tree-if-conv.c : Likewise.
9742 * tree-inline.c : Likewise.
9743 * tree-inline.h : Likewise.
9744 * tree-into-ssa.c : Likewise.
9745 * tree-iterator.c : Likewise.
9746 * tree-loop-distribution.c : Likewise.
9747 * tree-nested.c : Likewise.
9748 * tree-nrv.c : Likewise.
9749 * tree-object-size.c : Likewise.
9750 * tree-outof-ssa.c : Likewise.
9751 * tree-parloops.c : Likewise.
9752 * tree-phinodes.c : Likewise.
9753 * tree-predcom.c : Likewise.
9754 * tree-pretty-print.c : Likewise.
9755 * tree-profile.c : Likewise.
9756 * tree-scalar-evolution.c : Likewise.
9757 * tree-sra.c : Likewise.
9758 * tree-ssa-address.c : Likewise.
9759 * tree-ssa-alias.c : Likewise.
9760 * tree-ssa-ccp.c : Likewise.
9761 * tree-ssa-coalesce.c : Likewise.
9762 * tree-ssa-copy.c : Likewise.
9763 * tree-ssa-copyrename.c : Likewise.
9764 * tree-ssa-dce.c : Likewise.
9765 * tree-ssa-dom.c : Likewise.
9766 * tree-ssa-dse.c : Likewise.
9767 * tree-ssa-forwprop.c : Likewise.
9768 * tree-ssa-ifcombine.c : Likewise.
9769 * tree-ssa-live.c : Likewise.
9770 * tree-ssa-loop-ch.c : Likewise.
9771 * tree-ssa-loop-im.c : Likewise.
9772 * tree-ssa-loop-ivcanon.c : Likewise.
9773 * tree-ssa-loop-ivopts.c : Likewise.
9774 * tree-ssa-loop-manip.c : Likewise.
9775 * tree-ssa-loop-niter.c : Likewise.
9776 * tree-ssa-loop-prefetch.c : Likewise.
9777 * tree-ssa-loop-unswitch.c : Likewise.
9778 * tree-ssa-loop.c : Likewise.
9779 * tree-ssa-math-opts.c : Likewise.
9780 * tree-ssa-operands.c : Likewise.
9781 * tree-ssa-phiopt.c : Likewise.
9782 * tree-ssa-phiprop.c : Likewise.
9783 * tree-ssa-pre.c : Likewise.
9784 * tree-ssa-propagate.c : Likewise.
9785 * tree-ssa-reassoc.c : Likewise.
9786 * tree-ssa-sccvn.c : Likewise.
9787 * tree-ssa-scopedtables.c : Likewise.
9788 * tree-ssa-sink.c : Likewise.
9789 * tree-ssa-strlen.c : Likewise.
9790 * tree-ssa-structalias.c : Likewise.
9791 * tree-ssa-tail-merge.c : Likewise.
9792 * tree-ssa-ter.c : Likewise.
9793 * tree-ssa-threadedge.c : Likewise.
9794 * tree-ssa-threadupdate.c : Likewise.
9795 * tree-ssa-uncprop.c : Likewise.
9796 * tree-ssa-uninit.c : Likewise.
9797 * tree-ssa.c : Likewise.
9798 * tree-ssanames.c : Likewise.
9799 * tree-stdarg.c : Likewise.
9800 * tree-streamer-in.c : Likewise.
9801 * tree-streamer-out.c : Likewise.
9802 * tree-streamer.c : Likewise.
9803 * tree-streamer.h : Likewise.
9804 * tree-switch-conversion.c : Likewise.
9805 * tree-tailcall.c : Likewise.
9806 * tree-vect-data-refs.c : Likewise.
9807 * tree-vect-generic.c : Likewise.
9808 * tree-vect-loop-manip.c : Likewise.
9809 * tree-vect-loop.c : Likewise.
9810 * tree-vect-patterns.c : Likewise.
9811 * tree-vect-slp.c : Likewise.
9812 * tree-vect-stmts.c : Likewise.
9813 * tree-vectorizer.c : Likewise.
9814 * tree-vectorizer.h : Likewise.
9815 * tree-vrp.c : Likewise.
9816 * tree.c : Likewise.
9817 * tsan.c : Likewise.
9818 * ubsan.c : Likewise.
9819 * valtrack.c : Likewise.
9820 * valtrack.h : Likewise.
9821 * value-prof.c : Likewise.
9822 * var-tracking.c : Likewise.
9823 * varasm.c : Likewise.
9824 * varpool.c : Likewise.
9825 * vec.c: Likewise.
9826 * vmsdbgout.c : Likewise.
9827 * vtable-verify.c : Likewise.
9828 * vtable-verify.h : Likewise.
9829 * web.c : Likewise.
9830 * wide-int.cc : Likewise.
9831 * xcoffout.c : Likewise.
9832 * config/aarch64/aarch64-builtins.c : Likewise.
9833 * config/aarch64/aarch64.c : Likewise.
9834 * config/aarch64/cortex-a57-fma-steering.c : Likewise.
9835 * config/alpha/alpha.c : Likewise.
9836 * config/arc/arc.c : Likewise.
9837 * config/arm/aarch-common.c : Likewise.
9838 * config/arm/arm-builtins.c : Likewise.
9839 * config/arm/arm-c.c : Likewise.
9840 * config/arm/arm.c : Likewise.
9841 * config/avr/avr-c.c : Likewise.
9842 * config/avr/avr-log.c : Likewise.
9843 * config/avr/avr.c : Likewise.
9844 * config/bfin/bfin.c : Likewise.
9845 * config/c6x/c6x.c : Likewise.
9846 * config/cr16/cr16.c : Likewise.
9847 * config/cris/cris.c : Likewise.
9848 * config/darwin-c.c : Likewise.
9849 * config/darwin.c : Likewise.
9850 * config/default-c.c : Likewise.
9851 * config/epiphany/epiphany.c : Likewise.
9852 * config/epiphany/mode-switch-use.c : Likewise.
9853 * config/epiphany/resolve-sw-modes.c : Likewise.
9854 * config/fr30/fr30.c : Likewise.
9855 * config/frv/frv.c : Likewise.
9856 * config/ft32/ft32.c : Likewise.
9857 * config/glibc-c.c : Likewise.
9858 * config/h8300/h8300.c : Likewise.
9859 * config/i386/i386-c.c : Likewise.
9860 * config/i386/i386.c : Likewise.
9861 * config/i386/msformat-c.c : Likewise.
9862 * config/i386/winnt-cxx.c : Likewise.
9863 * config/i386/winnt-stubs.c : Likewise.
9864 * config/i386/winnt.c : Likewise.
9865 * config/ia64/ia64-c.c : Likewise.
9866 * config/ia64/ia64.c : Likewise.
9867 * config/iq2000/iq2000.c : Likewise.
9868 * config/lm32/lm32.c : Likewise.
9869 * config/m32c/m32c-pragma.c : Likewise.
9870 * config/m32c/m32c.c : Likewise.
9871 * config/m32r/m32r.c : Likewise.
9872 * config/m68k/m68k.c : Likewise.
9873 * config/mcore/mcore.c : Likewise.
9874 * config/mep/mep-pragma.c : Likewise.
9875 * config/mep/mep.c : Likewise.
9876 * config/microblaze/microblaze-c.c : Likewise.
9877 * config/microblaze/microblaze.c : Likewise.
9878 * config/mips/mips.c : Likewise.
9879 * config/mmix/mmix.c : Likewise.
9880 * config/mn10300/mn10300.c : Likewise.
9881 * config/moxie/moxie.c : Likewise.
9882 * config/msp430/msp430-c.c : Likewise.
9883 * config/msp430/msp430.c : Likewise.
9884 * config/nds32/nds32-cost.c : Likewise.
9885 * config/nds32/nds32-fp-as-gp.c : Likewise.
9886 * config/nds32/nds32-intrinsic.c : Likewise.
9887 * config/nds32/nds32-isr.c : Likewise.
9888 * config/nds32/nds32-md-auxiliary.c : Likewise.
9889 * config/nds32/nds32-memory-manipulation.c : Likewise.
9890 * config/nds32/nds32-pipelines-auxiliary.c : Likewise.
9891 * config/nds32/nds32-predicates.c : Likewise.
9892 * config/nds32/nds32.c : Likewise.
9893 * config/nios2/nios2.c : Likewise.
9894 * config/nvptx/nvptx.c : Likewise.
9895 * config/pa/pa.c : Likewise.
9896 * config/pdp11/pdp11.c : Likewise.
9897 * config/rl78/rl78-c.c : Likewise.
9898 * config/rl78/rl78.c : Likewise.
9899 * config/rs6000/rs6000-c.c : Likewise.
9900 * config/rs6000/rs6000.c : Likewise.
9901 * config/rx/rx.c : Likewise.
9902 * config/s390/s390-c.c : Likewise.
9903 * config/s390/s390.c : Likewise.
9904 * config/sh/sh-c.c : Likewise.
9905 * config/sh/sh-mem.cc : Likewise.
9906 * config/sh/sh.c : Likewise.
9907 * config/sh/sh_optimize_sett_clrt.cc : Likewise.
9908 * config/sh/sh_treg_combine.cc : Likewise.
9909 * config/sol2-c.c : Likewise.
9910 * config/sol2-cxx.c : Likewise.
9911 * config/sol2-stubs.c : Likewise.
9912 * config/sol2.c : Likewise.
9913 * config/sparc/sparc-c.c : Likewise.
9914 * config/sparc/sparc.c : Likewise.
9915 * config/spu/spu-c.c : Likewise.
9916 * config/spu/spu.c : Likewise.
9917 * config/stormy16/stormy16.c : Likewise.
9918 * config/tilegx/mul-tables.c : Likewise.
9919 * config/tilegx/tilegx-c.c : Likewise.
9920 * config/tilegx/tilegx.c : Likewise.
9921 * config/tilepro/mul-tables.c : Likewise.
9922 * config/tilepro/tilepro-c.c : Likewise.
9923 * config/tilepro/tilepro.c : Likewise.
9924 * config/v850/v850-c.c : Likewise.
9925 * config/v850/v850.c : Likewise.
9926 * config/vax/vax.c : Likewise.
9927 * config/visium/visium.c : Likewise.
9928 * config/vms/vms-c.c : Likewise.
9929 * config/vms/vms.c : Likewise.
9930 * config/vxworks.c : Likewise.
9931 * config/winnt-c.c : Likewise.
9932 * config/xtensa/xtensa.c : Likewise.
9933
9934 2015-06-08 Jan Hubicka <hubicka@ucw.cz>
9935
9936 PR lto/65378
9937 * ipa-utils.h (warn_types_mismatch): Update prototype.
9938 * ipa-devirt.c (odr_types_equivalent_p): Add loc1/loc2
9939 parameters.
9940 (type_mismatch_p): New function.
9941 (warn_types_mismatch): Reorg to work better on non-C++ types.
9942 (odr_types_equivalent_p): Add loc1/loc2 parameters.
9943 (add_type_duplicate): Update.
9944
9945 2015-06-08 Tom de Vries <tom@codesourcery.com>
9946
9947 PR rtl-optimization/66444
9948 * postreload.c (reload_combine): Use get_call_reg_set_usage instead of
9949 call_used_regs.
9950
9951 2015-06-08 Richard Biener <rguenther@suse.de>
9952
9953 PR tree-optimization/66422
9954 * tree-ssa-loop-ivcanon.c (remove_exits_and_undefined_stmts): Split
9955 block after inserted gcc_unreachable.
9956
9957 2015-06-08 Nick Clifton <nickc@redhat.com>
9958
9959 * config/rx/rx.c (rx_function_value): Do not promote vector types.
9960 (rx_promote_function_mode): Likewise.
9961 * config/rx/rx.h (LIBCALL_VALUE): Likewise.
9962
9963 2015-06-08 Jakub Jelinek <jakub@redhat.com>
9964
9965 * genattrtab.c (insn_alternatives): Change type from int *
9966 to uint64_t *.
9967 (check_attr_test): Shift ((uint64_t) 1) instead of 1 up.
9968 (get_attr_value): Change type of num_alt to uint64_t.
9969 (compute_alternative_mask): Change return type from
9970 int to uint64_t, shift ((uint64_t) 1) instead of 1 up.
9971 (make_alternative_compare, mk_attr_alt): Change argument type
9972 from int to uint64_t.
9973 (simplify_test_exp): Change type of i from int to uint64_t.
9974 Shift ((uint64_t) 1) instead of 1 up.
9975 (main): Adjust oballocvec first argument from int to uint64_t.
9976 Shift ((uint64_t) 1) instead of 1 up.
9977
9978 2015-06-08 Jan Kratochvil <jan.kratochvil@redhat.com>
9979
9980 PR other/65366
9981 * gdbhooks.py: Import sys.
9982 (intptr): New function. Replace int(...) by intptr(...).
9983
9984 2015-06-08 Richard Biener <rguenther@suse.de>
9985
9986 * tree-vect-stmts.c (vectorizable_load): Compute the pointer
9987 adjustment for gaps at the end of a SLP load group properly.
9988 * tree-vect-slp.c (vect_supported_load_permutation_p): Allow
9989 all permutations we can generate.
9990 (vect_transform_slp_perm_load): Use the correct group-size.
9991
9992 2015-06-08 Marc Glisse <marc.glisse@inria.fr>
9993
9994 * genmatch.c (expr::gen_transform): For conditions, guess the type
9995 from the second operand.
9996
9997 2015-06-08 Tom de Vries <tom@codesourcery.com>
9998
9999 PR tree-optimization/66442
10000 * gimple-iterator.h (gimple_seq_nondebug_singleton_p): Add function.
10001 * tree-parloops.c (try_transform_to_exit_first_loop_alt): Return false
10002 if the loop latch is not a singleton. Use
10003 gimple_seq_nondebug_singleton_p instead of gimple_seq_singleton_p.
10004
10005 2015-06-08 Marek Polacek <polacek@redhat.com>
10006
10007 PR sanitizer/66452
10008 * toplev.c (check_global_declaration): Don't warn about artificial
10009 decls.
10010
10011 2015-06-08 Tom de Vries <tom@codesourcery.com>
10012
10013 PR tree-optimization/66436
10014 * cgraphunit.c (cgraph_node::analyze): Don't dump function to gimple
10015 dump file.
10016 * gimplify.c: Add tree-dump.h include.
10017 (gimplify_function_tree): Dump function to gimple dump file.
10018 * stor-layout.c (finalize_size_functions): Don't dump function to gimple
10019 dump file.
10020
10021 2015-06-08 Tom de Vries <tom@codesourcery.com>
10022
10023 PR tree-optimization/66435
10024 * cgraphunit.c (cgraph_node::add_new_function): Dump message on new
10025 function.
10026
10027 2015-06-06 Jan Hubicka <hubicka@ucw.cz>
10028
10029 * alias.c (get_alias_set): Be ready for TYPE_CANONICAL
10030 of ptr_type_node to not be ptr_to_node.
10031 * tree.c (gimple_types_compatible_p): Do not match TREE_CODE of
10032 TREE_TYPE of pointers.
10033 * gimple-expr.c (useless_type_conversion): Reorder the check for
10034 function pointers and TYPE_CANONICAL.
10035
10036 2015-06-06 John David Anglin <danglin@gcc.gnu.org>
10037
10038 PR bootstrap/66319
10039 * config/pa/pa-hpux10.h (TARGET_OS_CPP_BUILTINS): Rearrange builtin
10040 defines. Define _LARGEFILE_SOURCE and _LARGEFILE64_SOURCE for c++.
10041 Define _XOPEN_UNIX and _XOPEN_SOURCE_EXTENDED for c++ if unix95 or
10042 later.
10043 * config/pa/pa-hpux11.h (TARGET_OS_CPP_BUILTINS): Likewise.
10044 Define _INCLUDE_STDC_SOURCE_PRE_199901, _INCLUDE_STDC_SOURCE_199901,
10045 _INCLUDE_XOPEN_SOURCE_PRE_500, _INCLUDE_XOPEN_SOURCE_520,
10046 _INCLUDE_XOPEN_SOURCE_PRE_600 and _INCLUDE_XOPEN_SOURCE_600 for c++
10047 and non iso if unix2003.
10048
10049 2015-06-06 Aldy Hernandez <aldyh@redhat.com>
10050
10051 * dwarf2out.c (gen_lexical_block_die): Initialize stmt_die.
10052
10053 2015-06-06 Richard Sandiford <richard.sandiford@arm.com>
10054
10055 * emit-rtl.c, expr.c, gcse.c, optabs.c, optabs.h, print-rtl.c,
10056 rtl.h, bb-reorder.c, builtins.c, calls.c, cfgbuild.c, cfgexpand.c,
10057 cfgrtl.c, cilk-common.c, config/i386/i386.md, cse.c, dwarf2cfi.c,
10058 except.c, final.c, function.c, gcse-common.c, genemit.c,
10059 haifa-sched.c, ifcvt.c, jump.c, loop-invariant.c, loop-iv.c,
10060 lra-constraints.c, lra.c, reload1.c, resource.c, rtlanal.c,
10061 sched-deps.c, sched-ebb.c, sel-sched-ir.c, sel-sched.c,
10062 shrink-wrap.c, stmt.c, store-motion.c: Replace rtx base types with
10063 more derived ones.
10064
10065 2015-06-06 Mikhail Maltsev <maltsevm@gmail.com>
10066
10067 * combine.c (combine_split_insns): Remove cast.
10068 * config/bfin/bfin.c (hwloop_fail): Add cast in try_split call.
10069 * config/sh/sh.c (sh_try_split_insn_simple): Remove cast.
10070 * config/sh/sh_treg_combine.cc (sh_treg_combine::execute): Add cast.
10071 * emit-rtl.c (try_split): Promote type of trial argument to rtx_insn.
10072 * genemit.c (gen_split): Change return type of generated functions to
10073 rtx_insn.
10074 * genrecog.c (get_failure_return): Use NULL instead of NULL_RTX.
10075 (print_subroutine_start): Promote rtx to rtx_insn in gen_split_* and
10076 gen_peephole2_* functions.
10077 (print_subroutine, main): Likewise.
10078 * recog.c (peephole2_optimize): Remove cast.
10079 (peep2_next_insn): Promote return type to rtx_insn.
10080 * recog.h (peep2_next_insn): Fix prototype.
10081 * rtl.h (try_split, split_insns): Likewise.
10082
10083 2015-06-06 DJ Delorie <dj@redhat.com>
10084
10085 * config/msp430/msp430.c (msp430_asm_integer): Support addition
10086 and subtraction too.
10087
10088 2015-06-05 Kaz Kojima <kkojima@gcc.gnu.org>
10089
10090 PR target/66410
10091 * config/sh/constraints.md (Sid, Ssd): New memory constraints.
10092 * config/sh/sh.md (*mov<mode>): Use Sid and Ssd alternatives
10093 instead of Snd. Disparage Sid/z alternative with '^'.
10094
10095 2015-06-05 Aldy Hernandez <aldyh@redhat.com>
10096
10097 * dwarf2out.c: Remove deferred_locations*.
10098 (dwarf2_debug_hooks): Add early_finish hook.
10099 Remove global_decl hook.
10100 Add early_global_decl and late_global_decl hook.
10101 New global early_dwarf.
10102 New structure set_early_dwarf.
10103 (output_die): Indicate whether a DIE was generated early
10104 when generating assembly with -dA.
10105 (struct limbo_die_struct): Document created_for field.
10106 Remove file_table_last_lookup.
10107 (remove_AT): Return TRUE if successful.
10108 (remove_child_TAG): Clear die_parent.
10109 (reparent_child): New function abstracted from...
10110 (splice_child_die): ...here.
10111 (new_die): ICE if a DIE ends up in limbo too late.
10112 (check_die): New.
10113 (defer_location): Remove.
10114 (add_subscript_info): Reuse DW_TAG_subrange_type if available.
10115 (fill_variable_array_bounds): New.
10116 (decl_start_label): Call fill_variable_array_bounds.
10117 (gen_formal_parameter_die): Rewrite to reuse previously generated
10118 DIEs.
10119 (gen_subprogram_die): Same.
10120 (gen_variable_die): Same.
10121 (gen_const_die): Same.
10122 (gen_label_die): Same.
10123 (gen_lexical_block_die): Same.
10124 (decl_will_get_specification_p): New.
10125 (local_function_static): New.
10126 (gen_struct_or_union_type_die): Fill in variable-length fields.
10127 (gen_typedef_die): Fill in variable-length typedefs.
10128 (gen_tagged_type_die): Gracefully return on error_mark_node.
10129 Handle re-entrancy.
10130 (gen_type_die_with_usage): Handle variable-length types.
10131 Remove duplicate code for ARRAY_TYPE case.
10132 (process_scope_var): Only process imported modules during early
10133 dwarf.
10134 (dwarf2out_early_global_decl): New.
10135 (dwarf2out_late_global_decl): Rename from dwarf2out_global_decl.
10136 (dwarf2out_type_decl): Set early_dwarf while calling
10137 dwarf2out_decl.
10138 (dwarf2out_decl): Verify that we did not recreate a previously
10139 generated DIE.
10140 Do not return on DECL_EXTERNALs in VAR_DECLs.
10141 Abstract some code to local_function_static.
10142 (lookup_filename): Remove use of file_table_last_lookup.
10143 Gracefully exit on missing file_name.
10144 (dwarf2out_finish): Verify limbo list.
10145 Remove deferred_locations_list use.
10146 Move deferred_asm_name and limbo flushing to...
10147 (dwarf2out_early_finish): ...here. New.
10148 (dwarf2out_c_finalize): Remove set of deferred_location_list,
10149 deferred_asm_name, and file_table_last_lookup.
10150 * cgraph.h (referred_to_p): Add default argument.
10151 * cgraphunit.c (referred_to_p): Add and handle include_self
10152 argument.
10153 (analyze_functions): Add first_time argument.
10154 Call check_global_declaration for all symbols.
10155 Call late_global_decl for nodes for moribund nodes.
10156 (finalize_compilation_unit): Add new argument to
10157 analyze_functions.
10158 Call early_global_decl for functions.
10159 Call early_finish debug hook.
10160 * dbxout.c (dbxout_early_global_decl): New.
10161 (dbxout_late_global_decl): New. Adapted from dbxout_global_decl.
10162 (dbx_debug_hooks): Add new hooks.
10163 (xcoff_debug_hooks): Same.
10164 * debug.c (do_nothing_debug_hooks): Add early_finish field.
10165 Add early and late debug hooks.
10166 Remove global_decl hook.
10167 * debug.h (struct gcc_debug_hooks): Add early_finish,
10168 early_global_decl, and late_global_decl fields.
10169 Remove global_decl field.
10170 Document gcc_debug_hooks.
10171 * gengtype.c (output_typename): Remove.
10172 * godump.c (go_early_global_decl): New.
10173 (go_late_global_decl): New.
10174 (go_global_decl): Remove.
10175 (dump_go_spec_init): Remove global_decl. Add
10176 {early,late}_global_decl.
10177 * langhooks-def.h (LANG_HOOKS_WRITE_GLOBALS): Remove.
10178 (LANG_HOOKS_POST_COMPILATION_PARSING_CLEANUPS): New.
10179 * langhooks.c (lhd_warn_unused_global_decl): Adjust comment.
10180 (write_global_declarations): Remove.
10181 (global_decl_processing): New.
10182 * langhooks.h (struct lang_hooks_for_decls): Remove
10183 final_write_globals field.
10184 Add post_compilation_parsing_cleanups field.
10185 * passes.c (rest_of_decl_compilation): Call early_global_decl.
10186 * sdbout.c: Add early and late_global_decl hooks. Remove
10187 sdbout_global_decl hook.
10188 Add early_finish field for sdb_debug_hooks.
10189 (sdbout_global_decl): Remove.
10190 (sdbout_early_global_decl): New.
10191 (sdbout_late_global_decl): New.
10192 * timevar.def (TV_PHASE_LATE_PARSING_CLEANUPS): New.
10193 * toplev.c (check_global_declaration): Rename from
10194 check_global_declaration_1.
10195 Adapt to use symtab infrastructure.
10196 (check_global_declarations): Remove.
10197 (emit_debug_global_declarations): Remove.
10198 (compile_file): Remove call to final_write_globals langhook.
10199 Run the actual compilation process.
10200 Perform any post compilation parser cleanups.
10201 Generate late debug info.
10202 * toplev.h (check_global_declaration): New.
10203 (check_global_declaration_1): Remove.
10204 (check_global_declarations): Remove.
10205 (write_global_declarations): Remove.
10206 (emit_debug_global_declarations): Remove.
10207 (global_decl_processing): New.
10208 * tree-core.h (struct tree_block): Add DIE field.
10209 * tree.h (BLOCK_DIE): New.
10210 * vmsdbgout.c (vmsdbgout_global_decl): Remove function and its use
10211 throughout.
10212 (vmsdbgout_early_global_decl): New.
10213 (vmsdbgout_late_global_decl): New.
10214 Add early_finish debug hook field to vmsdbg_debug_hooks.
10215 Remove vmsdbgout_decl to vmsdbgout_function_decl.
10216 Add early and late_global_decl debug hooks.
10217
10218 2015-06-05 Julian Brown <julian@codesourcery.com>
10219 Sandra Loosemore <sandra@codesourcery.com>
10220
10221 * config/print-sysroot-suffix.sh: Handle MULTILIB_REUSE settings.
10222 * config/t-sysroot-suffix (sysroot-suffix.h): Pass MULTILIB_REUSE
10223 to print-sysroot-suffix.sh script.
10224
10225 2015-06-05 Tom de Vries <tom@codesourcery.com>
10226
10227 merge from gomp4 branch:
10228 2015-05-28 Tom de Vries <tom@codesourcery.com>
10229
10230 PR tree-optimization/65443
10231 * tree-parloops.c (replace_imm_uses, replace_uses_in_bb_by)
10232 (replace_uses_in_bbs_by, transform_to_exit_first_loop_alt)
10233 (try_transform_to_exit_first_loop_alt): New function.
10234 (transform_to_exit_first_loop): Use
10235 try_transform_to_exit_first_loop_alt.
10236
10237 2015-06-05 James Greenhalgh <james.greenhalgh@arm.com>
10238
10239 * builtins.c (expand_builtin_atomic_compare_exchange): Call
10240 emit_cmp_and_jump_insns with the mode of target.
10241
10242 2015-06-05 Venkataramanan Kumar <venkataramanan.kumar@amd.com>
10243
10244 * config/i386/sse.md (sse3_mwait): Swap the operand constriants.
10245
10246 2015-06-04 DJ Delorie <dj@redhat.com>
10247
10248 * config/msp430/msp430.md (movsi_s): New. Special case for
10249 storing a 20-bit symbol into a 32-bit register.
10250 * config/msp430/msp430.c (msp430_subreg): Add support for it.
10251 * config/msp430/predicates.md (msp430_symbol_operand): New.
10252
10253 2015-06-04 Sriraman Tallam <tmsriram@google.com>
10254
10255 * c-family/c-common.c (noplt): New attribute.
10256 (handle_noplt_attribute): New handler.
10257 * calls.c (prepare_call_address): Check for noplt
10258 attribute.
10259 * config/i386/i386.c (ix86_expand_call): Check
10260 for noplt attribute.
10261 (ix86_nopic_noplt_attribute_p): New function.
10262 (ix86_output_call_insn): Output indirect call for non-pic
10263 no plt calls.
10264 * doc/extend.texi (noplt): Document new attribute.
10265 * doc/invoke.texi: Document new attribute.
10266
10267 2015-06-04 Andrew MacLeod <amacleod@redhat.com>
10268
10269 * coretypes.h: Include machmode.h, signop.h, wide-int.h, double-int.h,
10270 real.h, and fixed-value.h when included in host source files.
10271 * double-int.h: Remove redundant #includes listed above.
10272 * fixed-value.h: Likewise.
10273 * real.h: Likewise.
10274 * wide-int.h: Likewise.
10275 * inchash.h: Likewise.
10276 * rtl.h: Add some include files When included from a generator file.
10277 * target.h: Remove wide-int.h and insn-modes.h from the include list.
10278 * internal-fn.h: Don't include coretypes.h.
10279 * alias.c: Adjust includes for restructured coretypes.h.
10280 * asan.c: Likewise.
10281 * attribs.c: Likewise.
10282 * auto-inc-dec.c: Likewise.
10283 * auto-profile.c: Likewise.
10284 * bb-reorder.c: Likewise.
10285 * bt-load.c: Likewise.
10286 * builtins.c: Likewise.
10287 * caller-save.c: Likewise.
10288 * calls.c: Likewise.
10289 * ccmp.c: Likewise.
10290 * cfg.c: Likewise.
10291 * cfganal.c: Likewise.
10292 * cfgbuild.c: Likewise.
10293 * cfgcleanup.c: Likewise.
10294 * cfgexpand.c: Likewise.
10295 * cfghooks.c: Likewise.
10296 * cfgloop.c: Likewise.
10297 * cfgloop.h: Likewise.
10298 * cfgloopanal.c: Likewise.
10299 * cfgloopmanip.c: Likewise.
10300 * cfgrtl.c: Likewise.
10301 * cgraph.c: Likewise.
10302 * cgraphbuild.c: Likewise.
10303 * cgraphclones.c: Likewise.
10304 * cgraphunit.c: Likewise.
10305 * cilk-common.c: Likewise.
10306 * combine-stack-adj.c: Likewise.
10307 * combine.c: Likewise.
10308 * compare-elim.c: Likewise.
10309 * convert.c: Likewise.
10310 * coverage.c: Likewise.
10311 * cppbuiltin.c: Likewise.
10312 * cprop.c: Likewise.
10313 * cse.c: Likewise.
10314 * cselib.c: Likewise.
10315 * data-streamer-in.c: Likewise.
10316 * data-streamer-out.c: Likewise.
10317 * data-streamer.c: Likewise.
10318 * dbxout.c: Likewise.
10319 * dce.c: Likewise.
10320 * ddg.c: Likewise.
10321 * debug.c: Likewise.
10322 * df-core.c: Likewise.
10323 * df-problems.c: Likewise.
10324 * df-scan.c: Likewise.
10325 * df.h: Likewise.
10326 * dfp.c: Likewise.
10327 * dojump.c: Likewise.
10328 * dominance.c: Likewise.
10329 * domwalk.c: Likewise.
10330 * double-int.c: Likewise.
10331 * dse.c: Likewise.
10332 * dumpfile.c: Likewise.
10333 * dwarf2asm.c: Likewise.
10334 * dwarf2cfi.c: Likewise.
10335 * dwarf2out.c: Likewise.
10336 * dwarf2out.h: Likewise.
10337 * emit-rtl.c: Likewise.
10338 * et-forest.c: Likewise.
10339 * except.c: Likewise.
10340 * explow.c: Likewise.
10341 * expmed.c: Likewise.
10342 * expr.c: Likewise.
10343 * final.c: Likewise.
10344 * fixed-value.c: Likewise.
10345 * fold-const.c: Likewise.
10346 * function.c: Likewise.
10347 * fwprop.c: Likewise.
10348 * gcc-plugin.h: Likewise.
10349 * gcse.c: Likewise.
10350 * generic-match-head.c: Likewise.
10351 * ggc-page.c: Likewise.
10352 * gimple-builder.c: Likewise.
10353 * gimple-expr.c: Likewise.
10354 * gimple-fold.c: Likewise.
10355 * gimple-iterator.c: Likewise.
10356 * gimple-low.c: Likewise.
10357 * gimple-match-head.c: Likewise.
10358 * gimple-pretty-print.c: Likewise.
10359 * gimple-ssa-isolate-paths.c: Likewise.
10360 * gimple-ssa-strength-reduction.c: Likewise.
10361 * gimple-streamer-in.c: Likewise.
10362 * gimple-streamer-out.c: Likewise.
10363 * gimple-streamer.h: Likewise.
10364 * gimple-walk.c: Likewise.
10365 * gimple.c: Likewise.
10366 * gimplify-me.c: Likewise.
10367 * gimplify.c: Likewise.
10368 * godump.c: Likewise.
10369 * graph.c: Likewise.
10370 * graphite-blocking.c: Likewise.
10371 * graphite-dependences.c: Likewise.
10372 * graphite-interchange.c: Likewise.
10373 * graphite-isl-ast-to-gimple.c: Likewise.
10374 * graphite-optimize-isl.c: Likewise.
10375 * graphite-poly.c: Likewise.
10376 * graphite-scop-detection.c: Likewise.
10377 * graphite-sese-to-poly.c: Likewise.
10378 * graphite.c: Likewise.
10379 * haifa-sched.c: Likewise.
10380 * hooks.h: Likewise.
10381 * hw-doloop.c: Likewise.
10382 * ifcvt.c: Likewise.
10383 * incpath.c: Likewise.
10384 * init-regs.c: Likewise.
10385 * internal-fn.c: Likewise.
10386 * ipa-chkp.c: Likewise.
10387 * ipa-comdats.c: Likewise.
10388 * ipa-cp.c: Likewise.
10389 * ipa-devirt.c: Likewise.
10390 * ipa-icf-gimple.c: Likewise.
10391 * ipa-icf.c: Likewise.
10392 * ipa-inline-analysis.c: Likewise.
10393 * ipa-inline-transform.c: Likewise.
10394 * ipa-inline.c: Likewise.
10395 * ipa-polymorphic-call.c: Likewise.
10396 * ipa-profile.c: Likewise.
10397 * ipa-prop.c: Likewise.
10398 * ipa-pure-const.c: Likewise.
10399 * ipa-ref.c: Likewise.
10400 * ipa-reference.c: Likewise.
10401 * ipa-split.c: Likewise.
10402 * ipa-utils.c: Likewise.
10403 * ipa-visibility.c: Likewise.
10404 * ipa.c: Likewise.
10405 * ira-build.c: Likewise.
10406 * ira-color.c: Likewise.
10407 * ira-conflicts.c: Likewise.
10408 * ira-costs.c: Likewise.
10409 * ira-emit.c: Likewise.
10410 * ira-lives.c: Likewise.
10411 * ira.c: Likewise.
10412 * jump.c: Likewise.
10413 * langhooks.c: Likewise.
10414 * lcm.c: Likewise.
10415 * loop-doloop.c: Likewise.
10416 * loop-init.c: Likewise.
10417 * loop-invariant.c: Likewise.
10418 * loop-iv.c: Likewise.
10419 * loop-unroll.c: Likewise.
10420 * lower-subreg.c: Likewise.
10421 * lra-assigns.c: Likewise.
10422 * lra-coalesce.c: Likewise.
10423 * lra-constraints.c: Likewise.
10424 * lra-eliminations.c: Likewise.
10425 * lra-lives.c: Likewise.
10426 * lra-remat.c: Likewise.
10427 * lra-spills.c: Likewise.
10428 * lra.c: Likewise.
10429 * lto-cgraph.c: Likewise.
10430 * lto-compress.c: Likewise.
10431 * lto-opts.c: Likewise.
10432 * lto-section-in.c: Likewise.
10433 * lto-section-out.c: Likewise.
10434 * lto-streamer-in.c: Likewise.
10435 * lto-streamer-out.c: Likewise.
10436 * lto-streamer.c: Likewise.
10437 * mcf.c: Likewise.
10438 * mode-switching.c: Likewise.
10439 * modulo-sched.c: Likewise.
10440 * omega.c: Likewise.
10441 * omp-low.c: Likewise.
10442 * optabs.c: Likewise.
10443 * opts-global.c: Likewise.
10444 * passes.c: Likewise.
10445 * plugin.c: Likewise.
10446 * postreload-gcse.c: Likewise.
10447 * postreload.c: Likewise.
10448 * predict.c: Likewise.
10449 * print-rtl.c: Likewise.
10450 * print-tree.c: Likewise.
10451 * profile.c: Likewise.
10452 * real.c: Likewise.
10453 * realmpfr.c: Likewise.
10454 * realmpfr.h: Likewise.
10455 * recog.c: Likewise.
10456 * ree.c: Likewise.
10457 * reg-stack.c: Likewise.
10458 * regcprop.c: Likewise.
10459 * reginfo.c: Likewise.
10460 * regrename.c: Likewise.
10461 * regs.h: Likewise.
10462 * regstat.c: Likewise.
10463 * reload.c: Likewise.
10464 * reload1.c: Likewise.
10465 * reorg.c: Likewise.
10466 * resource.c: Likewise.
10467 * rtl-chkp.c: Likewise.
10468 * rtlanal.c: Likewise.
10469 * rtlhooks.c: Likewise.
10470 * sanopt.c: Likewise.
10471 * sched-deps.c: Likewise.
10472 * sched-ebb.c: Likewise.
10473 * sched-rgn.c: Likewise.
10474 * sched-vis.c: Likewise.
10475 * sdbout.c: Likewise.
10476 * sel-sched-dump.c: Likewise.
10477 * sel-sched-ir.c: Likewise.
10478 * sel-sched.c: Likewise.
10479 * sese.c: Likewise.
10480 * shrink-wrap.c: Likewise.
10481 * shrink-wrap.h: Likewise.
10482 * simplify-rtx.c: Likewise.
10483 * stack-ptr-mod.c: Likewise.
10484 * statistics.c: Likewise.
10485 * stmt.c: Likewise.
10486 * stor-layout.c: Likewise.
10487 * store-motion.c: Likewise.
10488 * stringpool.c: Likewise.
10489 * symtab.c: Likewise.
10490 * target-globals.c: Likewise.
10491 * targhooks.c: Likewise.
10492 * toplev.c: Likewise.
10493 * tracer.c: Likewise.
10494 * trans-mem.c: Likewise.
10495 * tree-affine.c: Likewise.
10496 * tree-affine.h: Likewise.
10497 * tree-browser.c: Likewise.
10498 * tree-call-cdce.c: Likewise.
10499 * tree-cfg.c: Likewise.
10500 * tree-cfgcleanup.c: Likewise.
10501 * tree-chkp-opt.c: Likewise.
10502 * tree-chkp.c: Likewise.
10503 * tree-chrec.c: Likewise.
10504 * tree-complex.c: Likewise.
10505 * tree-data-ref.c: Likewise.
10506 * tree-dfa.c: Likewise.
10507 * tree-diagnostic.c: Likewise.
10508 * tree-dump.c: Likewise.
10509 * tree-eh.c: Likewise.
10510 * tree-emutls.c: Likewise.
10511 * tree-if-conv.c: Likewise.
10512 * tree-inline.c: Likewise.
10513 * tree-into-ssa.c: Likewise.
10514 * tree-iterator.c: Likewise.
10515 * tree-loop-distribution.c: Likewise.
10516 * tree-nested.c: Likewise.
10517 * tree-nrv.c: Likewise.
10518 * tree-object-size.c: Likewise.
10519 * tree-outof-ssa.c: Likewise.
10520 * tree-parloops.c: Likewise.
10521 * tree-phinodes.c: Likewise.
10522 * tree-predcom.c: Likewise.
10523 * tree-pretty-print.c: Likewise.
10524 * tree-pretty-print.h: Likewise.
10525 * tree-profile.c: Likewise.
10526 * tree-scalar-evolution.c: Likewise.
10527 * tree-sra.c: Likewise.
10528 * tree-ssa-address.c: Likewise.
10529 * tree-ssa-alias.c: Likewise.
10530 * tree-ssa-ccp.c: Likewise.
10531 * tree-ssa-coalesce.c: Likewise.
10532 * tree-ssa-copy.c: Likewise.
10533 * tree-ssa-copyrename.c: Likewise.
10534 * tree-ssa-dce.c: Likewise.
10535 * tree-ssa-dom.c: Likewise.
10536 * tree-ssa-dse.c: Likewise.
10537 * tree-ssa-forwprop.c: Likewise.
10538 * tree-ssa-ifcombine.c: Likewise.
10539 * tree-ssa-live.c: Likewise.
10540 * tree-ssa-loop-ch.c: Likewise.
10541 * tree-ssa-loop-im.c: Likewise.
10542 * tree-ssa-loop-ivcanon.c: Likewise.
10543 * tree-ssa-loop-ivopts.c: Likewise.
10544 * tree-ssa-loop-manip.c: Likewise.
10545 * tree-ssa-loop-niter.c: Likewise.
10546 * tree-ssa-loop-prefetch.c: Likewise.
10547 * tree-ssa-loop-unswitch.c: Likewise.
10548 * tree-ssa-loop.c: Likewise.
10549 * tree-ssa-loop.h: Likewise.
10550 * tree-ssa-math-opts.c: Likewise.
10551 * tree-ssa-operands.c: Likewise.
10552 * tree-ssa-phiopt.c: Likewise.
10553 * tree-ssa-phiprop.c: Likewise.
10554 * tree-ssa-pre.c: Likewise.
10555 * tree-ssa-propagate.c: Likewise.
10556 * tree-ssa-reassoc.c: Likewise.
10557 * tree-ssa-sccvn.c: Likewise.
10558 * tree-ssa-scopedtables.c: Likewise.
10559 * tree-ssa-sink.c: Likewise.
10560 * tree-ssa-strlen.c: Likewise.
10561 * tree-ssa-structalias.c: Likewise.
10562 * tree-ssa-tail-merge.c: Likewise.
10563 * tree-ssa-ter.c: Likewise.
10564 * tree-ssa-threadedge.c: Likewise.
10565 * tree-ssa-threadupdate.c: Likewise.
10566 * tree-ssa-uncprop.c: Likewise.
10567 * tree-ssa-uninit.c: Likewise.
10568 * tree-ssa.c: Likewise.
10569 * tree-ssanames.c: Likewise.
10570 * tree-stdarg.c: Likewise.
10571 * tree-streamer-in.c: Likewise.
10572 * tree-streamer-out.c: Likewise.
10573 * tree-streamer.c: Likewise.
10574 * tree-switch-conversion.c: Likewise.
10575 * tree-tailcall.c: Likewise.
10576 * tree-vect-data-refs.c: Likewise.
10577 * tree-vect-generic.c: Likewise.
10578 * tree-vect-loop-manip.c: Likewise.
10579 * tree-vect-loop.c: Likewise.
10580 * tree-vect-patterns.c: Likewise.
10581 * tree-vect-slp.c: Likewise.
10582 * tree-vect-stmts.c: Likewise.
10583 * tree-vectorizer.c: Likewise.
10584 * tree-vrp.c: Likewise.
10585 * tree.c: Likewise.
10586 * tsan.c: Likewise.
10587 * ubsan.c: Likewise.
10588 * valtrack.c: Likewise.
10589 * value-prof.c: Likewise.
10590 * var-tracking.c: Likewise.
10591 * varasm.c: Likewise.
10592 * varpool.c: Likewise.
10593 * vmsdbgout.c: Likewise.
10594 * vtable-verify.c: Likewise.
10595 * web.c: Likewise.
10596 * wide-int-print.cc: Likewise.
10597 * wide-int-print.h: Likewise.
10598 * wide-int.cc: Likewise.
10599 * xcoffout.c: Likewise.
10600 * config/aarch64/aarch64-builtins.c: Likewise.
10601 * config/aarch64/aarch64.c: Likewise.
10602 * config/aarch64/cortex-a57-fma-steering.c: Likewise.
10603 * config/alpha/alpha.c: Likewise.
10604 * config/arc/arc.c: Likewise.
10605 * config/arm/aarch-common.c: Likewise.
10606 * config/arm/arm-builtins.c: Likewise.
10607 * config/arm/arm-c.c: Likewise.
10608 * config/arm/arm.c: Likewise.
10609 * config/avr/avr-c.c: Likewise.
10610 * config/avr/avr-log.c: Likewise.
10611 * config/avr/avr.c: Likewise.
10612 * config/bfin/bfin.c: Likewise.
10613 * config/c6x/c6x.c: Likewise.
10614 * config/cr16/cr16.c: Likewise.
10615 * config/cris/cris.c: Likewise.
10616 * config/darwin-c.c: Likewise.
10617 * config/darwin.c: Likewise.
10618 * config/default-c.c: Likewise.
10619 * config/epiphany/epiphany.c: Likewise.
10620 * config/epiphany/mode-switch-use.c: Likewise.
10621 * config/epiphany/resolve-sw-modes.c: Likewise.
10622 * config/fr30/fr30.c: Likewise.
10623 * config/frv/frv.c: Likewise.
10624 * config/ft32/ft32.c: Likewise.
10625 * config/glibc-c.c: Likewise.
10626 * config/h8300/h8300.c: Likewise.
10627 * config/i386/i386-c.c: Likewise.
10628 * config/i386/i386.c: Likewise.
10629 * config/i386/msformat-c.c: Likewise.
10630 * config/i386/winnt-cxx.c: Likewise.
10631 * config/i386/winnt-stubs.c: Likewise.
10632 * config/i386/winnt.c: Likewise.
10633 * config/ia64/ia64-c.c: Likewise.
10634 * config/ia64/ia64.c: Likewise.
10635 * config/iq2000/iq2000.c: Likewise.
10636 * config/lm32/lm32.c: Likewise.
10637 * config/m32c/m32c-pragma.c: Likewise.
10638 * config/m32c/m32c.c: Likewise.
10639 * config/m32r/m32r.c: Likewise.
10640 * config/m68k/m68k.c: Likewise.
10641 * config/mcore/mcore.c: Likewise.
10642 * config/mep/mep-pragma.c: Likewise.
10643 * config/mep/mep.c: Likewise.
10644 * config/microblaze/microblaze-c.c: Likewise.
10645 * config/microblaze/microblaze.c: Likewise.
10646 * config/mips/mips.c: Likewise.
10647 * config/mmix/mmix.c: Likewise.
10648 * config/mn10300/mn10300.c: Likewise.
10649 * config/moxie/moxie.c: Likewise.
10650 * config/msp430/msp430-c.c: Likewise.
10651 * config/msp430/msp430.c: Likewise.
10652 * config/nds32/nds32-cost.c: Likewise.
10653 * config/nds32/nds32-fp-as-gp.c: Likewise.
10654 * config/nds32/nds32-intrinsic.c: Likewise.
10655 * config/nds32/nds32-isr.c: Likewise.
10656 * config/nds32/nds32-md-auxiliary.c: Likewise.
10657 * config/nds32/nds32-memory-manipulation.c: Likewise.
10658 * config/nds32/nds32-pipelines-auxiliary.c: Likewise.
10659 * config/nds32/nds32-predicates.c: Likewise.
10660 * config/nds32/nds32.c: Likewise.
10661 * config/nios2/nios2.c: Likewise.
10662 * config/nvptx/nvptx.c: Likewise.
10663 * config/pa/pa.c: Likewise.
10664 * config/pdp11/pdp11.c: Likewise.
10665 * config/rl78/rl78-c.c: Likewise.
10666 * config/rl78/rl78.c: Likewise.
10667 * config/rs6000/rs6000-c.c: Likewise.
10668 * config/rs6000/rs6000.c: Likewise.
10669 * config/rx/rx.c: Likewise.
10670 * config/s390/s390-c.c: Likewise.
10671 * config/s390/s390.c: Likewise.
10672 * config/sh/sh-c.c: Likewise.
10673 * config/sh/sh-mem.cc: Likewise.
10674 * config/sh/sh.c: Likewise.
10675 * config/sh/sh_optimize_sett_clrt.cc: Likewise.
10676 * config/sh/sh_treg_combine.cc: Likewise.
10677 * config/sol2-c.c: Likewise.
10678 * config/sol2-cxx.c: Likewise.
10679 * config/sol2-stubs.c: Likewise.
10680 * config/sol2.c: Likewise.
10681 * config/sparc/sparc-c.c: Likewise.
10682 * config/sparc/sparc.c: Likewise.
10683 * config/spu/spu-c.c: Likewise.
10684 * config/spu/spu.c: Likewise.
10685 * config/stormy16/stormy16.c: Likewise.
10686 * config/tilegx/mul-tables.c: Likewise.
10687 * config/tilegx/tilegx-c.c: Likewise.
10688 * config/tilegx/tilegx.c: Likewise.
10689 * config/tilepro/mul-tables.c: Likewise.
10690 * config/tilepro/tilepro-c.c: Likewise.
10691 * config/tilepro/tilepro.c: Likewise.
10692 * config/v850/v850-c.c: Likewise.
10693 * config/v850/v850.c: Likewise.
10694 * config/vax/vax.c: Likewise.
10695 * config/visium/visium.c: Likewise.
10696 * config/vms/vms-c.c: Likewise.
10697 * config/vms/vms.c: Likewise.
10698 * config/vxworks.c: Likewise.
10699 * config/winnt-c.c: Likewise.
10700 * config/xtensa/xtensa.c: Likewise.
10701 * common/config/bfin/bfin-common.c: Likewise.
10702
10703 2015-06-04 Jan Hubicka <hubicka@ucw.cz>
10704
10705 * tree.h (tree_code_for_canonical_type_merging): New function.
10706 * tree.c (gimple_canonical_types_compatible_p): Use
10707 tree_code_for_canonical_type_merging..
10708
10709 2015-06-04 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
10710
10711 PR c++/66192
10712 PR target/66200
10713 * doc/tm.texi: Regenerate.
10714 * doc/tm.texi.in (TARGET_RELAXED_ORDERING): Delete.
10715 * target.def (TARGET_RELAXED_ORDERING): Likewise.
10716 * config/alpha/alpha.c (TARGET_RELAXED_ORDERING): Likewise.
10717 * config/ia64/ia64.c (TARGET_RELAXED_ORDERING): Likewise.
10718 * config/rs6000/rs6000.c (TARGET_RELAXED_ORDERING): Likewise.
10719 * config/sparc/linux.h (SPARC_RELAXED_ORDERING): Likewise.
10720 * config/sparc/linux64.h (SPARC_RELAXED_ORDERING): Likewise.
10721 * config/sparc/sparc.c (TARGET_RELAXED_ORDERING): Likewise.
10722 * config/sparc/sparc.h (SPARC_RELAXED_ORDERING): Likewise.
10723
10724 2015-06-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
10725
10726 * config/aarch64/aarch64.c (aarch64_override_options): Unconditionally
10727 register fma steering pass.
10728 * config/aarch64/cortex-a57-fma-steering.c (gate): Add gating on
10729 AARCH64_TUNE_FMA_STEERING.
10730
10731 2015-06-03 Jan Hubicka <hubicka@ucw.cz>
10732
10733 * tree.c (verify_type_variant): Verify that type and variant is
10734 compatible.
10735 (gimple_canonical_types_compatible_p): Look for main variants.
10736
10737 2015-06-03 Michael Meissner <meissner@linux.vnet.ibm.com>
10738
10739 * config.gcc (powerpc*-*-*): Add support for a new configure
10740 option --with-advance-toolchain=<xxx> which overrides using the
10741 default header files, libraries and dynamic linker.
10742
10743 * config/rs6000/linux64.h (SUBSUBTARGET_EXTRA_SPECS): Add new
10744 specs to support the configure --with-advance-toolchain=<xxx>
10745 option.
10746 (INCLUDE_EXTRA_SPEC): Likewise.
10747 (LINK_OS_EXTRA_SPEC32): Likewise.
10748 (LINK_OK_EXTRA_SPEC64): Likewise.
10749 (LINK_OS_NEW_DTAGS_SPEC): Likewise.
10750 (DYNAMIC_LINKER_PREFIX): Likewise.
10751 (CPP_OS_DEFAULT_SPEC): Use the new specs for providing advance
10752 toolchain support.
10753 (GLIBC_DYNAMIC_LINKER32): Likewise.
10754 (GLIBC_DYNAMIC_LINKER64): Likewise.
10755 (LINK_OS_LINUX_SPEC32): Likewise.
10756 (LINK_OS_LINUX_SPEC64): Likewise.
10757
10758 * doc/install.texi (--enable-advance-toolchain=<xx>): Document new
10759 configuration option.
10760
10761 2015-06-03 Uros Bizjak <ubizjak@gmail.com>
10762
10763 PR target/66275
10764 * config/i386/i386.c (ix86_function_arg_regno): Use ix86_cfun_abi
10765 to determine current function ABI.
10766 (ix86_function_value_regno_p): Ditto.
10767
10768 2015-06-03 Martin Liska <mliska@suse.cz>
10769
10770 * alloc-pool.h (struct pool_usage): Correct GNU coding style.
10771 * bitmap.h (struct bitmap_usage): Likewise.
10772 * ggc-common.c (struct ggc_usage): Likewise.
10773 * mem-stats.h (struct mem_location): Likewise.
10774 (struct mem_usage): Likewise.
10775 * vec.c (struct vec_usage): Likewise.
10776
10777 2015-06-03 Benigno B. Junior <bbj@gentoo.org>
10778
10779 * config/netbsd-elf.h (NETBSD_LINK_SPEC_ELF): Turn -symbolic into
10780 -Bsymbolic.
10781
10782 2015-06-02 Andres Tiraboschi <andres.tiraboschi@tallertechnologies.com>
10783
10784 * doc/plugins.texi (enum plugin_event): New event.
10785 * plugin.c (register_callback): Handle PLUGIN_START_PARSE_FUNCTION
10786 and PLUGIN_FINISH_FUNCTION.
10787 * plugin.def (PLUGIN_START_PARSE_FUNCTION): Add plugin event
10788 (PLUGIN_FINISH_PARSE_FUNCTION): Likewise.
10789
10790 2015-06-03 Richard Biener <rguenther@suse.de>
10791
10792 * tree-vect-data-refs.c (vect_analyze_group_access): Properly
10793 compute GROUP_GAP for the first element.
10794 * tree-vect-slp.c (vect_build_slp_tree_1): Remove restriction
10795 on in-group gaps.
10796
10797 2015-06-03 Nick Clifton <nickc@redhat.com>
10798
10799 * config/rl78/rl78-real.md: Add peepholes to avoid a register
10800 copy when calling a function.
10801 * config/rl78/rl78.c (need_to_save): Do not push the frame
10802 pointer in an interrupt handler prologue if it is never used.
10803
10804 2015-06-03 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
10805
10806 * ifcvt (end_ifcvt_sequence): Fix typo in comment above.
10807
10808 2015-06-03 Ilya Enkovich <ilya.enkovich@intel.com>
10809
10810 * ipa-chkp.c (chkp_maybe_create_clone): Create alias
10811 reference when cloning alias node.
10812
10813 2015-06-03 Martin Liska <mliska@suse.cz>
10814
10815 * alloc-pool.h (struct pool_usage): Correct space padding.
10816 * ggc-page.c (ggc_print_statistics): Align columns in a report.
10817 * mem-stats.h (struct mem_usage): Add argument to print_dash_line.
10818 * tree.c (dump_tree_statistics): Align columns in a report.
10819
10820 2015-06-03 Martin Liska <mliska@suse.cz>
10821
10822 * alloc-pool.c (allocate_pool_descriptor): Remove.
10823 (struct pool_output_info): Likewise.
10824 (print_alloc_pool_statistics): Likewise.
10825 (dump_alloc_pool_statistics): Likewise.
10826 * alloc-pool.h (struct pool_usage): New struct.
10827 (pool_allocator::initialize): Change usage of memory statistics
10828 to a new interface.
10829 (pool_allocator::release): Likewise.
10830 (pool_allocator::allocate): Likewise.
10831 (pool_allocator::remove): Likewise.
10832 * mem-stats-traits.h (enum mem_alloc_origin): Add new enum value
10833 for a pool allocator.
10834 * mem-stats.h (struct mem_location): Add new ctor.
10835 (struct mem_usage): Add counter for number of
10836 instances.
10837 (mem_alloc_description::register_descriptor): New overload of
10838 * mem-stats.h (mem_location::to_string): New function.
10839 * bitmap.h (struct bitmap_usage): Use this new function.
10840 * ggc-common.c (struct ggc_usage): Likewise.
10841 the function.
10842
10843 2015-06-03 Richard Sandiford <richard.sandiford@arm.com>
10844
10845 * defaults.h (SWITCHABLE_TARGET, TARGET_SUPPORTS_WIDE_INT): Move out
10846 of GCC_INSN_FLAGS_H block.
10847
10848 2015-06-03 Andrew Bennett <andrew.bennett@imgtec.com>
10849
10850 * explow.c (plus_constant): Update check after force_const_mem call
10851 to see if the value returned is not a NULL_RTX.
10852
10853 2015-06-03 Ilya Enkovich <ilya.enkovich@intel.com>
10854
10855 * ipa.c (symbol_table::remove_unreachable_nodes): Don't
10856 remove instumentation thunks calling reachable functions.
10857 * lto-cgraph.c (output_refs): Always output IPA_REF_CHKP.
10858 * lto/lto-partition.c (privatize_symbol_name_1): New.
10859 (privatize_symbol_name): Privatize both decl and orig_decl
10860 names for instrumented functions.
10861 * cgraph.c (cgraph_node::verify_node): Add transparent
10862 alias chain check for instrumented node.
10863
10864 2015-06-03 Marek Polacek <polacek@redhat.com>
10865
10866 PR c/64223
10867 PR c/29358
10868 * tree.c (attribute_value_equal): Handle attribute format.
10869 (cmp_attrib_identifiers): Factor out of lookup_ident_attribute.
10870
10871 2015-06-03 Richard Biener <rguenther@suse.de>
10872
10873 PR tree-optimization/63916
10874 * tree-ssa-sccvn.c (vn_reference_maybe_forwprop_address):
10875 Forward-propagate non-invariant addresses by splicing their
10876 reference ops if the result isn't going to be used by PRE.
10877 (vn_reference_lookup_3): Remove pointless assert.
10878
10879 2015-06-03 Richard Biener <rguenther@suse.de>
10880
10881 PR tree-optimization/66375
10882 * tree-scalar-evolution.c (follow_ssa_edge_binary): First
10883 add to the evolution before following SSA edges.
10884
10885 2015-06-03 Bin Cheng <bin.cheng@arm.com>
10886
10887 * tree-ssa-loop-ivopts.c (dump_iv): New parameter.
10888 (dump_use, dump_cand, find_induction_variables): Pass new argument
10889 to dump_iv.
10890 (record_use): Preserve the ssa name information in IV.
10891
10892 2015-06-03 Richard Sandiford <richard.sandiford@arm.com>
10893
10894 * genpreds.c (mark_mode_tests): Mark all MATCH_CODEs as
10895 NO_MODE_TEST.
10896 (add_mode_tests): Don't add mode tests if the predicate only
10897 accepts scalar constant integers. Otherwise, allow the mode
10898 of "op" to be VOIDmode if the predicate does accept such integers.
10899
10900 2015-06-02 Jim Wilson <jim.wilson@linaro.org>
10901
10902 PR target/66258
10903 * config/aarch64/aarch64.c (aarch64_function_value_regno_p): Change
10904 !TARGET_GENERAL_REGS_ONLY to TARGET_FLOAT.
10905 (aarch64_secondary_reload): Likewise
10906 (aarch64_expand_builtin_va_start): Change TARGET_GENERAL_REGS_ONLY
10907 to !TARGET_FLOAT.
10908 (aarch64_gimplify_va_arg_expr, aarch64_setup_incoming_varargs):
10909 Likewise.
10910
10911 2015-06-03 Kugan Vivekanandarajah <kuganv@linaro.org>
10912 Zhenqiang Chen <zhenqiang.chen@linaro.org>
10913
10914 PR target/65768
10915 * cprop.c (try_replace_reg): Check cost of constants before propagating.
10916
10917 2015-06-02 Michael Meissner <meissner@linux.vnet.ibm.com>
10918
10919 * config/rs6000/rs6000-modes.def (IFmode): Define IFmode to
10920 provide access to the IBM extended double floating point mode if
10921 long double is IEEE 128-bit floating point.
10922 (KFmode): Define KFmode to provide access to IEEE 128-bit floating
10923 point if long double is the IBM extended double type.
10924
10925 * config/rs6000/rs6000.opt (-mfloat128-none): New switches to
10926 enable adding IEEE 128-bit floating point support.
10927 (-mfloat128-software): Likewise.
10928 (-mfloat128-sw): Likewise.
10929
10930 * config/rs6000/rs6000.c (rs6000_hard_regno_mode_ok): Do not allow
10931 128-bit floating point types to occupy any register if
10932 -mlong-double-64. Do not allow use of IFmode/KFmode unless
10933 -mfloat128-software is enabled.
10934 (rs6000_debug_reg_global): Add IEEE 128-bit floating point debug
10935 support.
10936 (rs6000_option_override_internal): Add -mfloat128-* support.
10937 (rs6000_init_builtins): Setup __ibm128 and __float128 type modes.
10938
10939 * config/rs6000/rs6000.h (rs6000_builtin_type_index): Add ibm128
10940 and float128 type nodes.
10941 (ieee128_float_type_node): Likewise.
10942 (ibm128_float_type_node): Likewise.
10943
10944 2015-06-02 Szabolcs Nagy <szabolcs.nagy@arm.com>
10945
10946 PR target/66136
10947 * config/aarch64/geniterators.sh: Rewrite in awk.
10948
10949 2015-06-02 Martin Liska <mliska@suse.cz>
10950
10951 * alloc-pool.h (pool_allocator::pool_allocator): Set implicit
10952 values to avoid -Wmaybe-uninitialized errors.
10953
10954 2015-06-02 Richard Biener <rguenther@suse.de>
10955
10956 PR debug/65549
10957 * dwarf2out.c (lookup_context_die): New function.
10958 (resolve_addr): Avoid forcing a full DIE for the
10959 target of a DW_TAG_GNU_call_site during late compilation.
10960 Instead create a stub DIE without a type if we have a
10961 context DIE present.
10962
10963 2015-06-02 Uros Bizjak <ubizjak@gmail.com>
10964
10965 * df-scan.c (df_scan_start_dump): Add space between regno and regname.
10966
10967 2015-06-02 Bin Cheng <bin.cheng@arm.com>
10968
10969 PR tree-optimization/48052
10970 * cfgloop.h (struct control_iv): New.
10971 (struct loop): New field control_ivs.
10972 * tree-ssa-loop-niter.c : Include "stor-layout.h".
10973 (number_of_iterations_lt): Set no_overflow information.
10974 (number_of_iterations_exit): Init control iv in niter struct.
10975 (record_control_iv): New.
10976 (estimate_numbers_of_iterations_loop): Call record_control_iv.
10977 (loop_exits_before_overflow): New. Interface factored out of
10978 scev_probably_wraps_p.
10979 (scev_probably_wraps_p): Factor loop niter related code into
10980 loop_exits_before_overflow.
10981 (free_numbers_of_iterations_estimates_loop): Free control ivs.
10982 * tree-ssa-loop-niter.h (free_loop_control_ivs): New.
10983
10984 2015-06-02 Eric Botcazou <ebotcazou@adacore.com>
10985
10986 * gimplify.c (gimplify_modify_expr): Do not create a DECL_DEBUG_EXPR if
10987 the target doesn't belong to the current function.
10988
10989 2015-06-02 Marek Polacek <polacek@redhat.com>
10990
10991 PR middle-end/66345
10992 * gimple-fold.c (gimple_fold_builtin_snprintf): Return false if
10993 get_maxval_strlen does not produce an INTEGER_CST.
10994
10995 2015-06-02 Richard Sandiford <richard.sandiford@arm.com>
10996
10997 * config/arc/constraints.md: Use lower-case names in match_code.
10998 * config/mmix/constraints.md: Likewise.
10999
11000 2015-06-02 Richard Biener <rguenther@suse.de>
11001
11002 PR tree-optimization/65961
11003 * tree-vect-slp.c (vect_get_and_check_slp_defs): Remove bogus
11004 check and clarify dump message.
11005 (vect_build_slp_tree): If all children are built up from scalars
11006 build up the parent from scalars instead.
11007 * tree-vect-stmts.c (vect_is_simple_use): Cleanup.
11008
11009 2015-06-02 Jan Kratochvil <jan.kratochvil@redhat.com>
11010
11011 PR other/65366
11012 * gdbhooks.py: Use int(...) instead of long(...). Use print(...)
11013 instead of print ... .
11014
11015 2015-06-02 Alan Modra <amodra@gmail.com>
11016
11017 * config/rs6000/vsx.md (vsx_extract_v4sf): Revert accidental
11018 2014-08-11 change.
11019
11020 2015-06-02 Bin Cheng <bin.cheng@arm.com>
11021
11022 PR tree-optimization/52563
11023 PR tree-optimization/62173
11024 * tree-ssa-loop-ivopts.c (struct iv): New field. Reorder fields.
11025 (alloc_iv, set_iv): New parameter.
11026 (determine_biv_step): Delete.
11027 (find_bivs): Inline original determine_biv_step. Pass new
11028 argument to set_iv.
11029 (idx_find_step): Use no_overflow information for conversion.
11030 * tree-scalar-evolution.c (analyze_scalar_evolution_in_loop): Let
11031 resolve_mixers handle folded_casts.
11032 (instantiate_scev_name): Change bool parameter to bool pointer.
11033 (instantiate_scev_poly, instantiate_scev_binary): Ditto.
11034 (instantiate_array_ref, instantiate_scev_not): Ditto.
11035 (instantiate_scev_3, instantiate_scev_2): Ditto.
11036 (instantiate_scev_1, instantiate_scev_r): Ditto.
11037 (instantiate_scev_convert, ): Change parameter. Pass argument
11038 to chrec_convert_aggressive.
11039 (instantiate_scev): Change argument.
11040 (resolve_mixers): New parameter and set it.
11041 (scev_const_prop): New argument.
11042 * tree-scalar-evolution.h (resolve_mixers): New parameter.
11043 * tree-chrec.c (convert_affine_scev): Call chrec_convert instead
11044 of chrec_conert_1.
11045 (chrec_convert): New parameter. Move definition below.
11046 (chrec_convert_aggressive): New parameter and set it. Call
11047 convert_affine_scev.
11048 * tree-chrec.h (chrec_convert): New parameter.
11049 (chrec_convert_aggressive): Ditto.
11050
11051 2015-06-01 Eric Botcazou <ebotcazou@adacore.com>
11052
11053 * gimplify.c (gimplify_modify_expr_rhs): Use simple test on the size.
11054 * cgraph.c (cgraph_redirect_edge_call_stmt_to_callee): Do not remove
11055 the LHS of a no-return call if its type has variable size.
11056 * tree-cfgcleanup.c (fixup_noreturn_call): Likewise.
11057 * tree-cfg.c (verify_gimple_call): Accept these no-return calls.
11058
11059 2015-06-01 Andreas Tobler <andreast@gcc.gnu.org>
11060
11061 * read-rtl.c: Adapt to use HAVE_DECL_ATOLL instead of HAVE_ATOLL.
11062 * config.in: Regenerate.
11063
11064 2015-06-01 Yuri Rumyantsev <ysrumyan@gmail.com>
11065
11066 * tree-vect-data-refs.c (vect_analyze_data_ref_access): Allow
11067 consecutive accesses within outer-loop with force_vectorize
11068 for references with zero step in inner-loop.
11069
11070 2015-06-01 Vidya Praveen <vidyapraveen@arm.com>
11071
11072 * Makefile.in: Pick up gcov-dump dependencies from gcc/ directory
11073 rather than from gcc/build directory.
11074
11075 2015-06-01 Matthew Wahab <matthew.wahab@arm.com>
11076
11077 PR target/65697
11078 * config/aarch64/aarch64.c (aarch64_split_compare_and_swap): Check
11079 for __sync memory models, emit initial loads and final barriers as
11080 appropriate.
11081
11082 2015-06-01 Matthew Wahab <matthew.wahab@arm.com>
11083
11084 PR target/65697
11085 * config/aarch64/aarch64.c (aarch64_emit_post_barrier):New.
11086 (aarch64_split_atomic_op): Check for __sync memory models, emit
11087 appropriate initial loads and final barriers.
11088
11089 2015-06-01 Vidya Praveen <vidyapraveen@arm.com>
11090
11091 * Makefile.in: Fix gcov dependencies that should
11092 not point to a build folder.
11093
11094 2015-06-01 Richard Biener <rguenther@suse.de>
11095
11096 Revert
11097 2015-05-29 Richard Biener <rguenther@suse.de>
11098
11099 PR tree-optimization/66314
11100 * tree-ssa-threadupdate.c (create_block_for_threading): Add
11101 parameter that says which loop the new block belongs to.
11102 (ssa_create_duplicates): Blocks duplicated for the threaded
11103 path belong to the loop of the thread destination.
11104
11105 2015-06-01 Martin Liska <mliska@suse.cz>
11106
11107 * sched-deps.c: Include pool-alloc.h before
11108 cselib.h header file is included.
11109
11110 2015-06-01 Richard Biener <rguenther@suse.de>
11111
11112 * tree-ssa-structalias.c (ipa_pta_execute): Handle address-taken
11113 functions.
11114
11115 2015-06-01 Martin Liska <mliska@suse.cz>
11116
11117 * alloc-pool.h: Add ATTRIBUTE_UNUSED for
11118 a function local variable.
11119
11120 2015-06-01 Martin Liska <mliska@suse.cz>
11121
11122 * alloc-pool.c (create_alloc_pool): Remove.
11123 (empty_alloc_pool): Likewise.
11124 (free_alloc_pool): Likewise.
11125 (free_alloc_pool_if_empty): Likewise.
11126 (pool_alloc): Likewise.
11127 (pool_free): Likewise.
11128 * alloc-pool.h: Remove old declarations.
11129
11130 2015-06-01 Martin Liska <mliska@suse.cz>
11131
11132 * ira-build.c (initiate_allocnos): Use new type-based pool allocator.
11133 (ira_create_object): Likewise.
11134 (ira_create_allocno): Likewise.
11135 (ira_create_live_range): Likewise.
11136 (copy_live_range): Likewise.
11137 (ira_finish_live_range): Likewise.
11138 (ira_free_allocno_costs): Likewise.
11139 (finish_allocno): Likewise.
11140 (finish_allocnos): Likewise.
11141 (initiate_prefs): Likewise.
11142 (ira_create_pref): Likewise.
11143 (finish_pref): Likewise.
11144 (finish_prefs): Likewise.
11145 (initiate_copies): Likewise.
11146 (ira_create_copy): Likewise.
11147 (finish_copy): Likewise.
11148 (finish_copies): Likewise.
11149 (finish_prefs): Likewise.
11150
11151 2015-06-01 Martin Liska <mliska@suse.cz>
11152
11153 * ipa-cp.c (ipcp_value::add_source): Use new type-based pool allocator.
11154 (allocate_and_init_ipcp_value): Likewise.
11155 (ipcp_lattice::add_value): Likewise.
11156 (merge_agg_lats_step): Likewise.
11157 (ipcp_driver): Likewise.
11158 * ipa-prop.c (ipa_free_all_structures_after_ipa_cp): Likewise.
11159 (ipa_free_all_structures_after_iinln): Likewise.
11160 * ipa-prop.h: Likewise.
11161
11162 2015-06-01 Martin Liska <mliska@suse.cz>
11163
11164 * ipa-inline-analysis.c (edge_set_predicate): Use new type-based
11165 pool allocator.
11166 (set_hint_predicate): Likewise.
11167 (inline_summary_alloc): Likewise.
11168 (reset_inline_edge_summary): Likewise.
11169 (reset_inline_summary): Likewise.
11170 (set_cond_stmt_execution_predicate): Likewise.
11171 (set_switch_stmt_execution_predicate): Likewise.
11172 (compute_bb_predicates): Likewise.
11173 (estimate_function_body_sizes): Likewise.
11174 (inline_free_summary): Likewise.
11175
11176 2015-06-01 Martin Liska <mliska@suse.cz>
11177
11178 * ipa-prop.c (ipa_set_jf_constant): Use new type-based pool allocator.
11179 (ipa_edge_duplication_hook): Likewise.
11180 (ipa_free_all_structures_after_ipa_cp): Likewise.
11181 (ipa_free_all_structures_after_iinln): Likewise.
11182
11183 2015-06-01 Martin Liska <mliska@suse.cz>
11184
11185 * ipa-profile.c (account_time_size): Use new type-based pool allocator.
11186 (ipa_profile_generate_summary): Likewise.
11187 (ipa_profile_read_summary): Likewise.
11188 (ipa_profile): Likewise.
11189
11190 2015-06-01 Martin Liska <mliska@suse.cz>
11191
11192 * tree-ssa-structalias.c (new_var_info): Use new type-based
11193 pool allocator.
11194 (new_constraint): Likewise.
11195 (init_alias_vars): Likewise.
11196 (delete_points_to_sets): Likewise.
11197
11198 2015-06-01 Martin Liska <mliska@suse.cz>
11199
11200 * tree-ssa-strlen.c (new_strinfo): Use new type-based pool allocator.
11201 (free_strinfo): Likewise.
11202 (pass_strlen::execute): Likewise.
11203
11204 2015-06-01 Martin Liska <mliska@suse.cz>
11205
11206 * tree-ssa-sccvn.c (vn_reference_insert): Use new type-based
11207 pool allocator.
11208 (vn_reference_insert_pieces): Likewise.
11209 (vn_phi_insert): Likewise.
11210 (visit_reference_op_call): Likewise.
11211 (copy_phi): Likewise.
11212 (copy_reference): Likewise.
11213 (process_scc): Likewise.
11214 (allocate_vn_table): Likewise.
11215 (free_vn_table): Likewise.
11216
11217 2015-06-01 Martin Liska <mliska@suse.cz>
11218
11219 * tree-ssa-reassoc.c (add_to_ops_vec): Use new type-based
11220 pool allocator.
11221 (add_repeat_to_ops_vec): Likewise.
11222 (get_ops): Likewise.
11223 (maybe_optimize_range_tests): Likewise.
11224 (init_reassoc): Likewise.
11225 (fini_reassoc): Likewise.
11226
11227 2015-06-01 Martin Liska <mliska@suse.cz>
11228
11229 * tree-ssa-pre.c (get_or_alloc_expr_for_name): Use new type-based
11230 pool allocator.
11231 (bitmap_set_new): Likewise.
11232 (get_or_alloc_expr_for_constant): Likewise.
11233 (get_or_alloc_expr_for): Likewise.
11234 (phi_translate_1): Likewise.
11235 (compute_avail): Likewise.
11236 (init_pre): Likewise.
11237 (fini_pre): Likewise.
11238
11239 2015-06-01 Martin Liska <mliska@suse.cz>
11240
11241 * sched-deps.c (create_dep_node): Use new type-based pool allocator.
11242 (delete_dep_node): Likewise.
11243 (create_deps_list): Likewise.
11244 (free_deps_list): Likewise.
11245 (sched_deps_init): Likewise.
11246 (sched_deps_finish): Likewise.
11247
11248 2015-06-01 Martin Liska <mliska@suse.cz>
11249
11250 * regcprop.c (free_debug_insn_changes): Use new type-based
11251 pool allocator.
11252 (replace_oldest_value_reg): Likewise.
11253 (pass_cprop_hardreg::execute): Likewise.
11254
11255 2015-06-01 Martin Liska <mliska@suse.cz>
11256
11257 * ira-build.c (initiate_cost_vectors): Use new type-based
11258 pool allocator.
11259 (ira_allocate_cost_vector): Likewise.
11260 (ira_free_cost_vector): Likewise.
11261 (finish_cost_vectors): Likewise.
11262
11263 2015-06-01 Martin Liska <mliska@suse.cz>
11264
11265 * sel-sched-ir.c (alloc_sched_pools): Use new type-based
11266 pool allocator.
11267 (free_sched_pools): Likewise.
11268 * sel-sched-ir.h (_list_alloc): Likewise.
11269 (_list_remove): Likewise.
11270
11271 2015-06-01 Martin Liska <mliska@suse.cz>
11272
11273 * stmt.c (add_case_node): Use new type-based pool allocator.
11274 (expand_case): Likewise.
11275 (expand_sjlj_dispatch_table): Likewise.
11276
11277 2015-06-01 Martin Liska <mliska@suse.cz>
11278
11279 * tree-ssa-math-opts.c (occ_new): Use new type-based pool allocator.
11280 (free_bb): Likewise.
11281 (pass_cse_reciprocals::execute): Likewise.
11282
11283 2015-06-01 Martin Liska <mliska@suse.cz>
11284
11285 * tree-sra.c (sra_initialize): Use new type-based pool allocator.
11286 (sra_deinitialize) Likewise.
11287 (create_access_1) Likewise.
11288 (build_accesses_from_assign) Likewise.
11289 (create_artificial_child_access) Likewise.
11290
11291 2015-06-01 Martin Liska <mliska@suse.cz>
11292
11293 * dse.c (get_group_info):Use new type-based pool allocator.
11294 (dse_step0) Likewise.
11295 (free_store_info) Likewise.
11296 (delete_dead_store_insn) Likewise.
11297 (free_read_records) Likewise.
11298 (record_store) Likewise.
11299 (replace_read) Likewise.
11300 (check_mem_read_rtx) Likewise.
11301 (scan_insn) Likewise.
11302 (dse_step1) Likewise.
11303 (dse_step7) Likewise.
11304
11305 2015-06-01 Martin Liska <mliska@suse.cz>
11306
11307 * df-scan.c (struct df_scan_problem_data):Use new type-based
11308 pool allocator.
11309 (df_scan_free_internal) Likewise.
11310 (df_scan_alloc) Likewise.
11311 (df_grow_reg_info) Likewise.
11312 (df_free_ref) Likewise.
11313 (df_insn_create_insn_record) Likewise.
11314 (df_mw_hardreg_chain_delete) Likewise.
11315 (df_insn_info_delete) Likewise.
11316 (df_free_collection_rec) Likewise.
11317 (df_mw_hardreg_chain_delete_eq_uses) Likewise.
11318 (df_sort_and_compress_mws) Likewise.
11319 (df_ref_create_structure) Likewise.
11320 (df_ref_record) Likewise.
11321
11322 2015-06-01 Martin Liska <mliska@suse.cz>
11323
11324 * df-problems.c (df_chain_create):Use new type-based pool allocator.
11325 (df_chain_unlink_1) Likewise.
11326 (df_chain_unlink) Likewise.
11327 (df_chain_remove_problem) Likewise.
11328 (df_chain_alloc) Likewise.
11329 (df_chain_free) Likewise.
11330 * df.h (struct dataflow) Likewise.
11331
11332 2015-06-01 Martin Liska <mliska@suse.cz>
11333
11334 * cselib.c (new_elt_list):Use new type-based pool allocator.
11335 (new_elt_loc_list) Likewise.
11336 (unchain_one_elt_list) Likewise.
11337 (unchain_one_elt_loc_list) Likewise.
11338 (unchain_one_value) Likewise.
11339 (new_cselib_val) Likewise.
11340 (cselib_init) Likewise.
11341 (cselib_finish) Likewise.
11342
11343 2015-06-01 Martin Liska <mliska@suse.cz>
11344
11345 * config/sh/sh.c (add_constant):Use new type-based pool allocator.
11346 (sh_reorg) Likewise.
11347
11348 2015-06-01 Martin Liska <mliska@suse.cz>
11349
11350 * cfg.c (initialize_original_copy_tables):Use new type-based
11351 pool allocator.
11352 (free_original_copy_tables) Likewise.
11353 (copy_original_table_clear) Likewise.
11354 (copy_original_table_set) Likewise.
11355
11356 2015-06-01 Martin Liska <mliska@suse.cz>
11357
11358 * asan.c (asan_mem_ref_get_alloc_pool):Use new type-based
11359 pool allocator.
11360 (asan_mem_ref_new) Likewise.
11361 (free_mem_ref_resources) Likewise.
11362
11363 2015-06-01 Martin Liska <mliska@suse.cz>
11364
11365 * var-tracking.c (variable_htab_free):Use new type-based
11366 pool allocator.
11367 (attrs_list_clear) Likewise.
11368 (attrs_list_insert) Likewise.
11369 (attrs_list_copy) Likewise.
11370 (shared_hash_unshare) Likewise.
11371 (shared_hash_destroy) Likewise.
11372 (unshare_variable) Likewise.
11373 (var_reg_delete_and_set) Likewise.
11374 (var_reg_delete) Likewise.
11375 (var_regno_delete) Likewise.
11376 (drop_overlapping_mem_locs) Likewise.
11377 (variable_union) Likewise.
11378 (insert_into_intersection) Likewise.
11379 (canonicalize_values_star) Likewise.
11380 (variable_merge_over_cur) Likewise.
11381 (dataflow_set_merge) Likewise.
11382 (remove_duplicate_values) Likewise.
11383 (variable_post_merge_new_vals) Likewise.
11384 (dataflow_set_preserve_mem_locs) Likewise.
11385 (dataflow_set_remove_mem_locs) Likewise.
11386 (variable_from_dropped) Likewise.
11387 (variable_was_changed) Likewise.
11388 (set_slot_part) Likewise.
11389 (clobber_slot_part) Likewise.
11390 (delete_slot_part) Likewise.
11391 (loc_exp_insert_dep) Likewise.
11392 (notify_dependents_of_changed_value) Likewise.
11393 (emit_notes_for_differences_1) Likewise.
11394 (vt_emit_notes) Likewise.
11395 (vt_initialize) Likewise.
11396 (vt_finalize) Likewise.
11397
11398 2015-06-01 Martin Liska <mliska@suse.cz>
11399
11400 * ira-color.c (init_update_cost_records):Use new type-based
11401 pool allocator.
11402 (get_update_cost_record) Likewise.
11403 (free_update_cost_record_list) Likewise.
11404 (finish_update_cost_records) Likewise.
11405 (initiate_cost_update) Likewise.
11406
11407 2015-06-01 Martin Liska <mliska@suse.cz>
11408
11409 * lra.c (init_insn_regs): Use new type-based pool allocator.
11410 (new_insn_reg) Likewise.
11411 (free_insn_reg) Likewise.
11412 (free_insn_regs) Likewise.
11413 (finish_insn_regs) Likewise.
11414 (init_insn_recog_data) Likewise.
11415 (init_reg_info) Likewise.
11416 (finish_reg_info) Likewise.
11417 (lra_free_copies) Likewise.
11418 (lra_create_copy) Likewise.
11419 (invalidate_insn_data_regno_info) Likewise.
11420
11421 2015-06-01 Martin Liska <mliska@suse.cz>
11422
11423 * lra-lives.c (free_live_range): Use new type-based pool allocator.
11424 (free_live_range_list) Likewise.
11425 (create_live_range) Likewise.
11426 (copy_live_range) Likewise.
11427 (lra_merge_live_ranges) Likewise.
11428 (remove_some_program_points_and_update_live_ranges) Likewise.
11429 (lra_live_ranges_init) Likewise.
11430 (lra_live_ranges_finish) Likewise.
11431
11432 2015-06-01 Martin Liska <mliska@suse.cz>
11433
11434 * et-forest.c (et_new_occ): Use new type-based pool allocator.
11435 (et_new_tree): Likewise.
11436 (et_free_tree): Likewise.
11437 (et_free_tree_force): Likewise.
11438 (et_free_pools): Likewise.
11439 (et_split): Likewise.
11440
11441 2015-06-01 Martin Liska <mliska@suse.cz>
11442
11443 * alloc-pool.c (struct alloc_pool_descriptor): Move definition
11444 to header file.
11445 * alloc-pool.h (pool_allocator::pool_allocator): New function.
11446 (pool_allocator::release): Likewise.
11447 (inline pool_allocator::release_if_empty): Likewise.
11448 (inline pool_allocator::~pool_allocator): Likewise.
11449 (pool_allocator::allocate): Likewise.
11450 (pool_allocator::remove): Likewise.
11451
11452 2015-06-01 James Greenhalgh <james.greenhalgh@arm.com>
11453
11454 * sched-deps.c (sched_analyze_2): Replace fuseable with fusible
11455 in comment.
11456
11457 2015-06-01 James Greenhalgh <james.greenhalgh@arm.com>
11458
11459 * gcc/config/arm/arm-protos.h (tune_params): Rename fuseable_ops
11460 to fusible_ops.
11461 * gcc/config/arm/arm.c (arm_print_tune_info): Likewise.
11462 (arm_macro_fusion_p): Likewise.
11463 (arm_macro_fusion_pair_p): Likewise.
11464
11465 2015-06-01 James Greenhalgh <james.greenhalgh@arm.com>
11466
11467 * config/aarch64/aarch64-protos.h (tune_params): Rename
11468 fuseable_ops to fusible_ops.
11469 * config/aarch64/aarch64.c (generic_tunings): Rename
11470 fuseable_ops to fusible_ops.
11471 (cortexa53_tunings): Likewise.
11472 (cortexa57_tunings): Likewise.
11473 (thunderx_tunings): Likewise.
11474 (xgene1_tunings): Likewise.
11475 (aarch64_macro_fusion_p): Likewise.
11476 (aarch64_macro_fusion_pair_p): Likewise.
11477
11478 2015-06-01 Dominik Vogt <vogt@linux.vnet.ibm.com>
11479
11480 * config/s390/driver-native.c: New file.
11481 * config/s390/x-native: New file.
11482 * config.host: Add new files for s390.
11483 * config/s390/s390.h (DRIVER_SELF_SPECS): Add support for -mtune=native
11484 and -march=native
11485 * config.gcc: Likewise.
11486 * config/s390/s390.opt (march): Likewise; add PROCESSOR_NATIVE
11487 * config/s390/s390-opts.h (enum processor_type): Ditto.
11488 * config/s390/s390.c (s390_option_override): Catch unhandled
11489 PROCESSOR_NATIVE
11490
11491 2015-06-01 Ilya Enkovich <ilya.enkovich@intel.com>
11492
11493 PR target/65527
11494 * cgraph.c (cgraph_edge::redirect_call_stmt_to_callee): Add
11495 redirection for instrumented calls.
11496 * lto-wrapper.c (merge_and_complain): Merge -fcheck-pointer-bounds.
11497 (append_compiler_options): Append -fcheck-pointer-bounds.
11498 * tree-chkp.h (chkp_copy_call_skip_bounds): New.
11499 (chkp_redirect_edge): New.
11500 * tree-chkp.c (chkp_copy_call_skip_bounds): New.
11501 (chkp_redirect_edge): New.
11502
11503 2015-06-01 Richard Biener <rguenther@suse.de>
11504
11505 PR tree-optimization/66280
11506 * tree-vect-slp.c (vect_detect_hybrid_slp_stmts): Fix pattern
11507 def-use walking.
11508
11509 2015-06-01 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
11510
11511 * config/aarch64/aarch64.md
11512 (*<LOGICAL:optab>_one_cmpl_<SHIFT:optab><mode>3): Change type to
11513 logic_shift_imm.
11514
11515 2015-06-01 Eric Botcazou <ebotcazou@adacore.com>
11516
11517 * config/i386/winnt.c (i386_pe_encode_section_info) <FUNCTION_DECL>:
11518 Remove obsolete kludge.
11519
11520 2015-06-01 Richard Biener <rguenther@suse.de>
11521
11522 * tree-ssa-reassoc.c (get_rank): Simplify.
11523
11524 2015-05-31 H.J. Lu <hongjiu.lu@intel.com>
11525
11526 * configure.ac (NO_PIE_CFLAGS): Check CXXFLAGS instead of CFLAGS.
11527 * configure: Regenerated.
11528
11529 2015-05-31 Mikhail Maltsev <maltsevm@gmail.com>
11530
11531 * config/cris/cris.h (CRIS_ARCH_CPP_DEFAULT): Fix C++11 compatibility
11532 issue (add space between string literal and macro).
11533 * config/i386/mingw32.h (REAL_LIBGCC_SPEC): Likewise.
11534
11535 2015-05-30 Andreas Schwab <schwab@linux-m68k.org>
11536
11537 * config/m68k/m68k.h (ASM_PCREL_SPEC): Pass --pcrel also for
11538 implict or explicit -fPIE or -fpie.
11539
11540 2015-05-30 Mike Frysinger <vapier@gentoo.org>
11541
11542 * gcc/config/alpha/elf.h (ASM_SPEC): Add %{mcpu=*:-m%*}.
11543
11544 2015-05-28 DJ Delorie <dj@redhat.com>
11545
11546 * expmed.c (extract_bit_field_1): Avoid clobbering a
11547 yet-to-be-used base/index register.
11548
11549 2015-05-30 Jan Hubicka <hubicka@ucw.cz>
11550
11551 * alias.c (alias_set_entry_d): Add is_pointer and has_pointer.
11552 (alias_stats): Add num_universal.
11553 (alias_set_subset_of): Special case pointers; be ready for NULL
11554 children.
11555 (alias_sets_conflict_p): Special case pointers; be ready for NULL
11556 children.
11557 (init_alias_set_entry): Break out from ...
11558 (record_alias_subset): ... here; propagate new fields;
11559 allocate children only when really needed.
11560 (get_alias_set): Do less generous pointer globbing.
11561 (dump_alias_stats_in_alias_c): Update statistics.
11562
11563 2015-05-30 Alan Modra <amodra@gmail.com>
11564
11565 * config/rs6000/rs6000.c (split_stack_arg_pointer_used_p): Scan
11566 correct block for use of r12.
11567 (rs6000_expand_split_stack_prologue): Error on r29 asm global reg.
11568
11569 2015-05-29 Dominik Vogt <vogt@linux.vnet.ibm.com>
11570
11571 PR target/66215
11572 * config/s390/s390.c (s390_reorg): Fix placement of post-label NOPs
11573 with -mhotpatch=.
11574
11575 2015-05-29 Jakub Jelinek <jakub@redhat.com>
11576
11577 PR tree-optimization/66142
11578 * tree-if-conv.c (if_convertible_phi_p): Don't give up on
11579 virtual phis that feed themselves.
11580
11581 2015-05-29 Richard Biener <rguenther@suse.de>
11582
11583 PR tree-optimization/66314
11584 * tree-ssa-threadupdate.c (create_block_for_threading): Add
11585 parameter that says which loop the new block belongs to.
11586 (ssa_create_duplicates): Blocks duplicated for the threaded
11587 path belong to the loop of the thread destination.
11588
11589 2015-05-29 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
11590
11591 * config/arm/neon-testgen.ml (emit_epilogue): Remove manual call
11592 to cleanup-saved-temps.
11593 * doc/sourcebuild.texi (Clean up generated test files): Expand
11594 introduction.
11595 (dg-keep-saved-temps): Document new proc.
11596 (cleanup-ipa-dump, cleanup-rtl-dump, cleanup-tree-dump,
11597 cleanup-saved-temps): Remove.
11598
11599 2015-05-28 Andreas Tobler <andreast@gcc.gnu.org>
11600
11601 * configure.ac: Move the atoll check from AC_CHECK_FUNCS to
11602 gcc_AC_CHECK_DECLS.
11603 * configure: Regenerate.
11604
11605 2015-05-28 Mike Frysinger <vapier@gentoo.org>
11606
11607 * config/nios2/linux.h (CPP_SPEC): Define.
11608
11609 2015-05-28 Mike Frysinger <vapier@gentoo.org>
11610
11611 * config/microblaze/linux.h (CPP_SPEC): Define.
11612
11613 2015-05-28 Mike Frysinger <vapier@gentoo.org>
11614
11615 * config/pa/pa-linux.h (CPP_SPEC): Change so -D_REENTRANT is used when
11616 -pthread is specified.
11617
11618 2015-05-28 Richard Biener <rguenther@suse.de>
11619
11620 * tree-vect-loop.c (vect_fixup_reduc_chain): New function.
11621 (vect_fixup_scalar_cycles_with_patterns): Likewise.
11622 (vect_analyze_loop_2): Call vect_fixup_scalar_cycles_with_patterns
11623 after pattern recog.
11624 (vect_create_epilog_for_reduction): Properly handle reductions
11625 with patterns.
11626 (vectorizable_reduction): Likewise.
11627 * tree-vect-slp.c (vect_analyze_slp_instance): Properly mark
11628 reduction chains.
11629 (vect_get_constant_vectors): Create the correct number of
11630 initial values for reductions.
11631 (vect_schedule_slp_instance): Handle reduction chains that are
11632 type changing properly.
11633 * tree-vect-stmts.c (vect_analyze_stmt): Adjust.
11634
11635 2015-05-28 Richard Biener <rguenther@suse.de>
11636
11637 PR tree-optimization/66142
11638 * tree-ssa-sccvn.c (vn_reference_lookup_3): Handle non-GIMPLE
11639 values better in memcpy destination handling. Handle non-aliasing
11640 we discover here.
11641
11642 2015-05-28 Lawrence Velázquez <vq@larryv.me>
11643
11644 PR target/63810
11645 * config/darwin-c.c (version_components): New global enum.
11646 (parse_version, version_as_legacy_macro)
11647 (version_as_modern_macro, macosx_version_as_macro): New functions.
11648 (version_as_macro): Remove.
11649 (darwin_cpp_builtins): Use new function.
11650
11651 2015-05-28 H.J. Lu <hongjiu.lu@intel.com>
11652
11653 * builtins.c (expand_builtin_acc_on_device): Mark parameters
11654 with ATTRIBUTE_UNUSED.
11655
11656 2015-05-28 Julian Brown <julian@codesourcery.com>
11657
11658 PR libgomp/65742
11659
11660 * builtins.c (expand_builtin_acc_on_device): Don't use open-coded
11661 sequence for !ACCEL_COMPILER.
11662
11663 2015-05-28 Nick Clifton <nickc@redhat.com>
11664
11665 * config/rx/rx.c (push_regs): New function. Extracts code from...
11666 (rx_expand_prologue): ... here. Use push_regs to push even small
11667 spans of registers.
11668 (pop_regs): New function.
11669 (rx_expand_epilogue): Use pop_regs to pop even small spans of
11670 registers.
11671
11672 2015-05-28 Richard Biener <rguenther@suse.de>
11673
11674 * tree-vectorizer.h (struct _slp_instance): Remove body_cost_vec
11675 member.
11676 (SLP_INSTANCE_BODY_COST_VEC): Remove.
11677 (vect_update_slp_costs_according_to_vf): Likewise.
11678 (vect_slp_analyze_operations): Update prototype.
11679 * tree-vect-loop.c (vect_analyze_loop_2): Remove call to
11680 vect_update_slp_costs_according_to_vf, adjust.
11681 * tree-vect-slp.c (vect_free_slp_instance): Adjust.
11682 (vect_analyze_slp_cost_1): Likewise.
11683 (vect_analyze_slp_cost): Likewise. Properly deal with
11684 widening reduction ops. Commit body costs.
11685 (vect_analyze_slp_instance): Adjust. Do not analyze SLP
11686 cost for loops from here.
11687 (vect_slp_analyze_operations): But do it from here when
11688 the vectorization factor is known and stmts are analyzed.
11689 (vect_bb_vectorization_profitable_p): Simplify.
11690 (vect_slp_analyze_bb_1): Do not compute SLP cost here.
11691 (vect_update_slp_costs_according_to_vf): Remove.
11692
11693 2015-05-27 Magnus Granberg <zorry@gentoo.org>
11694 H.J. Lu <hongjiu.lu@intel.com>
11695
11696 * Makefile.in (COMPILER): Add @NO_PIE_CFLAGS@.
11697 (BUILD_CFLAGS): Likewise.
11698 (BUILD_CXXFLAGS): Likewise.
11699 (LINKER): Add @NO_PIE_FLAG@.
11700 (BUILD_LDFLAGS): Likewise.
11701 (libgcc.mvars): Set NO_PIE_CFLAGS to -fno-PIE for
11702 --enable-default-pie.
11703 * common.opt (fPIE): Initialize to -1.
11704 (fpie): Likewise.
11705 (no-pie): New option.
11706 (pie): Replace "Negative(shared)" with "Negative(no-pie)".
11707 * configure.ac: Add --enable-default-pie.
11708 (NO_PIE_CFLAGS): New. Check if -fno-PIE works. AC_SUBST.
11709 (NO_PIE_FLAG): New. Check if -no-pie works. AC_SUBST.
11710 * defaults.h (DEFAULT_FLAG_PIE): New. Default PIE to -fPIE.
11711 * gcc.c (NO_PIE_SPEC): New.
11712 (PIE_SPEC): Likewise.
11713 (NO_FPIE1_SPEC): Likewise.
11714 (FPIE1_SPEC): Likewise.
11715 (NO_FPIE2_SPEC): Likewise.
11716 (FPIE2_SPEC): Likewise.
11717 (NO_FPIE2_SPEC): Likewise.
11718 (FPIE_SPEC): Likewise.
11719 (NO_FPIE_SPEC): Likewise.
11720 (NO_FPIC1_SPEC): Likewise.
11721 (FPIC1_SPEC): Likewise.
11722 (NO_FPIC2_SPEC): Likewise.
11723 (FPIC2_SPEC): Likewise.
11724 (NO_FPIC2_SPEC): Likewise.
11725 (FPIC_SPEC): Likewise.
11726 (NO_FPIC_SPEC): Likewise.
11727 (NO_FPIE1_AND_FPIC1_SPEC): Likewise.
11728 (FPIE1_OR_FPIC1_SPEC): Likewise.
11729 (NO_FPIE2_AND_FPIC2_SPEC): Likewise.
11730 (FPIE2_OR_FPIC2_SPEC): Likewise.
11731 (NO_FPIE_AND_FPIC_SPEC): Likewise.
11732 (FPIE_OR_FPIC_SPEC): Likewise.
11733 (LD_PIE_SPEC): Likewise.
11734 (LINK_PIE_SPEC): Handle -no-pie. Use PIE_SPEC and LD_PIE_SPEC.
11735 * opts.c (finish_options): Update opts->x_flag_pie if it is -1.
11736 * config/darwin.h (PIE_SPEC): Renamed to ...
11737 (DARWIN_PIE_SPEC): This.
11738 (LINK_SPEC): Replace PIE_SPEC with DARWIN_PIE_SPEC.
11739 * config/darwin9.h (PIE_SPEC): Renamed to ...
11740 (DARWIN_PIE_SPEC): This.
11741 * config/gnu-user.h (GNU_USER_TARGET_STARTFILE_SPEC): Use
11742 PIE_SPEC and NO_PIE_SPEC if HAVE_LD_PIE is defined.
11743 * config/openbsd.h (ASM_SPEC): Use FPIE1_OR_FPIC1_SPEC and
11744 FPIE2_OR_FPIC2_SPEC.
11745 * config/m68k/netbsd-elf.h (ASM_SPEC): Likewise.
11746 * config/m68k/openbsd.h (ASM_SPEC): Likewise.
11747 * gcc/config/sol2.h (ASM_PIC_SPEC): Likewise.
11748 * config/arm/freebsd.h (SUBTARGET_EXTRA_ASM_SPEC): Likewise.
11749 * config/arm/netbsd-elf.h (SUBTARGET_EXTRA_ASM_SPEC): Likewise.
11750 * config/arm/semi.h (SUBTARGET_EXTRA_ASM_SPEC): Likewise.
11751 * config/cris/linux.h (CRIS_ASM_SUBTARGET_SPEC): Likewise.
11752 * config/m32r/m32r.h (ASM_SPEC): Likewise.
11753 * config/m68k/uclinux.h (DRIVER_SELF_SPECS): Likewise.
11754 * config/rs6000/linux64.h (ASM_SPEC32): Likewise.
11755 * config/rs6000/sysv4.h (ASM_SPEC): Likewise.
11756 * config/sparc/freebsd.h (ASM_SPEC): Likewise.
11757 * config/sparc/linux.h (ASM_SPEC): Likewise.
11758 * config/sparc/linux64.h (ASM_SPEC): Likewise.
11759 * config/sparc/netbsd-elf.h (ASM_SPEC): Likewise.
11760 * config/sparc/openbsd64.h (ASM_SPEC): Likewise.
11761 * config/sparc/sp-elf.h (ASM_SPEC): Likewise.
11762 * config/sparc/sp64-elf.h (ASM_SPEC): Likewise.
11763 * config/sparc/sparc.h (ASM_SPEC): Likewise.
11764 * config/sparc/sysv4.h (ASM_SPEC): Likewise.
11765 * config/sparc/vxworks.h (ASM_SPEC): Likewise.
11766 * config/c6x/elf-common.h (ASM_SPEC): Use NO_FPIC2_SPEC,
11767 FPIC2_SPEC, FPIC1_SPEC and FPIC2_SPEC.
11768 * config/c6x/uclinux-elf.h (LINK_SPEC): Use FPIE_SPEC.
11769 * config/frv/frv.h (DRIVER_SELF_SPECS): Use FPIC_SPEC,
11770 NO_FPIC_SPEC and NO_FPIE1_AND_FPIC1_SPEC.
11771 (ASM_SPEC): Use FPIE1_OR_FPIC1_SPEC and FPIE2_OR_FPIC2_SPEC.
11772 * config/m68k/m68k.h (ASM_PCREL_SPEC): Use FPIC_SPEC and NO_FPIC_SPEC.
11773 * config/mips/gnu-user.h (NO_SHARED_SPECS): Use NO_FPIE_AND_FPIC_SPEC.
11774 * config/mips/vxworks.h (SUBTARGET_ASM_SPEC): Use FPIC_SPEC.
11775 * config/rs6000/freebsd64.h (ASM_SPEC32): Likewise.
11776 * config/rs6000/vxworks.h (ASM_SPEC): Likewise.
11777 * config/vax/linux.h (ASM_SPEC): Likewise.
11778 * doc/install.texi: Document --enable-default-pie.
11779 * doc/invoke.texi: Document -no-pie.
11780 * config.in: Regenerated.
11781 * configure: Likewise.
11782
11783 2015-05-28 Thomas Preud'homme <thomas.preudhomme@arm.com>
11784
11785 PR rtl-optimization/66168
11786 * loop-invariant.c (move_invariant_reg): Pass dest rather than reg to
11787 can_move_invariant_reg.
11788
11789 2015-05-27 John David Anglin <danglin@gcc.gnu.org>
11790
11791 PR target/66148
11792 * config/pa/pa.c (pa_emit_move_sequence): Correct placement of
11793 REG_EQUAL note when doing insert.
11794
11795 * config/pa/pa.c (pa_print_operand): Use HOST_WIDE_INT_PRINT_DEC
11796 instead of "%d" for 'o' operand.
11797
11798 2015-05-27 Nathan Sidwell <nathan@acm.org>
11799
11800 PR c++/66270
11801 * tree.c (build_pointer_type_for_mode): Canonical type does not
11802 inherit can_alias_all.
11803 (build_reference_type_for_mode): Likewise.
11804
11805 2015-05-27 Eric Botcazou <ebotcazou@adacore.com>
11806
11807 * expr.h (array_at_struct_end_p): Move to...
11808 (array_ref_element_size): Likewise.
11809 (component_ref_field_offset): Likewise.
11810 * tree.h (array_ref_element_size): ...here.
11811 (array_at_struct_end_p): Likewise.
11812 (component_ref_field_offset): Likewise.
11813 * expr.c (array_ref_element_size): Move to...
11814 (array_ref_low_bound): Likewise.
11815 (array_at_struct_end_p): Likewise.
11816 (array_ref_up_bound): Likewise.
11817 (component_ref_field_offset): Likewise.
11818 * tree.c (array_ref_element_size): ...here.
11819 (array_ref_low_bound): Likewise.
11820 (array_ref_up_bound): Likewise.
11821 (array_at_struct_end_p): Likewise.
11822 (component_ref_field_offset): Likewise.
11823
11824 2015-05-27 Gregor Richards <gregor.richards@uwaterloo.ca>
11825 Szabolcs Nagy <szabolcs.nagy@arm.com>
11826
11827 * config/aarch64/aarch64-linux.h (MUSL_DYNAMIC_LINKER): Define.
11828
11829 2015-05-27 Jason Merrill <jason@redhat.com>
11830
11831 PR bootstrap/66304
11832 * configure.ac: Use ACX_PROG_CXX_WARNING_OPTS,
11833 ACX_PROG_CXX_WARNING_ALMOST_PEDANTIC, and
11834 ACX_PROG_CXX_WARNINGS_ARE_ERRORS.
11835
11836 2015-05-22 Aditya Kumar <hiraditya@msn.com>
11837
11838 * auto-profile.c (afdo_calculate_branch_prob): Break once has_sample
11839 is true.
11840
11841 * statistics.c (statistics_fini_pass): Print pass name.
11842
11843 2015-05-27 Richard Biener <rguenther@suse.de>
11844
11845 PR tree-optimization/66272
11846 Revert parts of
11847 2014-08-15 Richard Biener <rguenther@suse.de>
11848
11849 PR tree-optimization/62031
11850 * tree-data-ref.c (dr_analyze_indices): Do not set
11851 DR_UNCONSTRAINED_BASE.
11852 (dr_may_alias_p): All indirect accesses have to go the
11853 formerly DR_UNCONSTRAINED_BASE path.
11854 * tree-data-ref.h (struct indices): Remove
11855 unconstrained_base member.
11856 (DR_UNCONSTRAINED_BASE): Remove.
11857
11858 2015-05-27 Aldy Hernandez <aldyh@redhat.com>
11859
11860 * dwarf2out.c: Remove block_map.
11861 (gen_call_site_die): Replace block_map use with BLOCK_DIE.
11862 (gen_lexical_block_die): Same.
11863 (dwarf2out_function_decl): Remove block_map use.
11864 (dwarf2out_c_finalize): Same.
11865 * tree-core.h (struct tree_block): Add die field.
11866 * tree.h (BLOCK_DIE): New.
11867
11868 2015-05-27 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
11869
11870 PR target/65358
11871 * expr.c (memory_load_overlap): New function.
11872 (emit_push_insn): When pushing partial args to the stack would
11873 clobber the register part load the overlapping part into a pseudo
11874 and put it into the hard reg after pushing. Change return type
11875 to bool. Add bool argument.
11876 * expr.h (emit_push_insn): Change return type to bool.
11877 Add bool argument.
11878 * calls.c (expand_call): Cancel sibcall optimization when encountering
11879 partial argument on targets with ARGS_GROW_DOWNWARD and
11880 !STACK_GROWS_DOWNWARD.
11881 (emit_library_call_value_1): Update callsite of emit_push_insn.
11882 (store_one_arg): Likewise.
11883
11884 2015-05-27 Gregor Richards <gregor.richards@uwaterloo.ca>
11885
11886 * config/arm/linux-eabi.h (MUSL_DYNAMIC_LINKER): Define.
11887
11888 2015-05-27 Martin Liska <mliska@suse.cz>
11889
11890 * Makefile.in: Add additional dependencies related to memory report
11891 enhancement.
11892 * alloc-pool.c (allocate_pool_descriptor): Use new ctor.
11893 * bitmap.c (struct bitmap_descriptor_d): Remove.
11894 (struct loc): Likewise.
11895 (struct bitmap_desc_hasher): Likewise.
11896 (bitmap_desc_hasher::hash): Likewise.
11897 (bitmap_desc_hasher::equal): Likewise.
11898 (get_bitmap_descriptor): Likewise.
11899 (bitmap_register): User new memory descriptor API.
11900 (register_overhead): Likewise.
11901 (bitmap_find_bit): Register nsearches and search_iter statistics.
11902 (struct bitmap_output_info): Remove.
11903 (print_statistics): Likewise.
11904 (dump_bitmap_statistics): Use new memory descriptor.
11905 * bitmap.h (struct bitmap_usage): New class.
11906 * genmatch.c: Extend header file inclusion.
11907 * genpreds.c: Likewise.
11908 * ggc-common.c (struct ggc_usage): New class.
11909 (struct ggc_loc_desc_hasher): Remove.
11910 (ggc_loc_desc_hasher::hash): Likewise.
11911 (ggc_loc_desc_hasher::equal): Likewise.
11912 (struct ggc_ptr_hash_entry): Likewise.
11913 (struct ptr_hash_hasher): Likewise.
11914 (ptr_hash_hasher::hash): Likewise.
11915 (ptr_hash_hasher::equal): Likewise.
11916 (make_loc_descriptor): Likewise.
11917 (ggc_prune_ptr): Likewise.
11918 (dump_ggc_loc_statistics): Use new memory descriptor.
11919 (ggc_record_overhead): Likewise.
11920 (ggc_free_overhead): Likewise.
11921 (final_cmp_statistic): Remove.
11922 (cmp_statistic): Likewise.
11923 (ggc_add_statistics): Liekwise.
11924 (ggc_prune_overhead_list): Likewise.
11925 * hash-map-traits.h: New file.
11926 * hash-map.h (struct default_hashmap_traits): Move the traits to a
11927 separate header file.
11928 * hash-set.h: Pass memory statistics info to ctor.
11929 * hash-table.c (void dump_hash_table_loc_statistics): New function.
11930 * hash-table.h (hash_table::hash_table): Add new ctor arguments.
11931 (hash_table::~hash_table): Register memory release operation.
11932 (hash_table::alloc_entries): Handle memory allocation operation.
11933 (hash_table::expand): Likewise.
11934 * inchash.c (iterative_hash_hashval_t): Move implementation to header
11935 file.
11936 (iterative_hash_host_wide_int): Likewise.
11937 * inchash.h (class hash): Likewise.
11938 * mem-stats-traits.h: New file.
11939 * mem-stats.h: New file.
11940 (mem_location): Add new class.
11941 (mem_usage): Likewise.
11942 (mem_alloc_description): Likewise.
11943 * sese.c: Add new header file inclusision.
11944 * toplev.c (dump_memory_report): Add report for hash_table, hash_map
11945 and hash_set.
11946 * tree-sra.c: Add new header file inclusision.
11947 * vec.c (struct vec_descriptor): Remove.
11948 (hash_descriptor): Likewise.
11949 (struct vec_usage): Likewise.
11950 (struct ptr_hash_entry): Likewise.
11951 (hash_ptr): Likewise.
11952 (eq_ptr): Likewise.
11953 (vec_prefix::register_overhead): Use new memory descriptor API.
11954 (vec_prefix::release_overhead): Likewise.
11955 (add_statistics): Remove.
11956 (dump_vec_loc_statistics): Use new memory descriptor API.
11957 * vec.h (struct vec_prefix): Likewise.
11958 (va_heap::reserve): Likewise.
11959 (va_heap::release): Likewise.
11960 * emit-rtl.c (gen_raw_REG): Fix passing MEM_STAT.
11961
11962 2015-05-27 Richard Biener <rguenther@suse.de>
11963
11964 * tree-vect-stmts.c (vectorizable_load): Initialize slp_perm
11965 earlier and remove ??? comment.
11966 (vect_analyze_stmt): If we are analyzing a pure SLP stmt
11967 and got called from loop analysis bail out. Always pass the SLP
11968 node to the vectorizable_* functions.
11969 * tree-vect-loop.c (vect_analyze_loop_operations): Remove
11970 the premature SLP check here.
11971 * tree-vect-slp.c (vect_detect_hybrid_slp_stmts): Dump hybrid
11972 detected SLP stmts.
11973 (vect_detect_hybrid_slp_1): Likewise.
11974
11975 2015-05-26 Jeff Law <law@redhat.com>
11976
11977 * combine.c (find_split_point): Verify that the shift count is a
11978 constant when choosing (plus (ashift ...)) as a split point.
11979
11980 * tree-ssa-threadupdate.c: Replace 8 space sequences with tabs.
11981 No functional changes.
11982
11983 2015-05-26 Jan Hubicka <hubicka@ucw.cz>
11984
11985 * ipa-polymorphic-call.c
11986 (ipa_polymorphic_call_context::get_dynamic_type): Short circuit the
11987 case when call target is already known.
11988
11989 2015-05-26 Oleg Endo <olegendo@gcc.gnu.org>
11990
11991 PR target/65979
11992 * config/sh/sh.md (tstsi_t peephole2): Use gen_rtx_SET and
11993 take into account the case that operands[1] and operands[2]
11994 are the same register.
11995
11996 2015-05-26 Michael Matz <matz@suse.de>
11997
11998 PR middle-end/66251
11999
12000 * tree-vect-stmts.c (vect_model_store_cost): Handled strided group
12001 stores.
12002 (vect_create_vectorized_demotion_stmts): Always set
12003 STMT_VINFO_VEC_STMT, also with SLP.
12004 (vectorizable_store): Handle strided group stores.
12005
12006 2015-05-26 Venkataramanan Kumar <venkataramanan.kumar@amd.com>
12007
12008 PR target/66049
12009 * config/aarch64/aarch64.md
12010 (*adds_shift_imm_<mode>): New pattern.
12011 (*subs_shift_imm_<mode>): Likewise.
12012 (*adds_<optab><ALLX:mode>_shift_<GPI:mode>): Likewise.
12013 (*subs_<optab><ALLX:mode>_shift_<GPI:mode>): Likewise.
12014 (*add_uxt<mode>_shift2): Likewise.
12015 (*add_uxtsi_shift2_uxtw): Likewise.
12016 (*sub_uxt<mode>_shift2): Likewise.
12017 (*sub_uxtsi_shift2_uxtw): Likewise.
12018
12019 2015-05-26 David Edelsohn <dje.gcc@gmail.com>
12020
12021 * config/rs6000/constraints.md (Y, U): Use match_test.
12022
12023 2015-05-26 Christian Bruel <christian.bruel@st.com>
12024
12025 PR target/52144
12026 * config/arm/arm.c (arm_option_check_internal)
12027 (arm_option_params_internal): Check opts->target_flags to set macros.
12028 (TREE_TARGET_ARM, TREE_TARGET_THUMB)
12029 (TREE_TARGET_THUMB1, TREE_TARGET_THUMB2) Replace with...
12030 (TARGET_ARM_P, TARGET_THUMB_P, TARGET_THUMB1_P, TARGET_THUMB2_P)
12031 (builtin_define): Replaced with def_or_undef_macro.
12032 * config/arm/arm.h (TREE_TARGET_ARM, TREE_TARGET_THUMB)
12033 TREE_TARGET_THUMB1, TREE_TARGET_THUMB2) Redefine with...
12034 (TARGET_ARM_P, TARGET_THUMB_P, TARGET_THUMB1_P, TARGET_THUMB2_P)
12035 (TARGET_32BIT_P, TARGET_ARM_QBIT_P, TARGET_ARM_SAT_P, TARGET_IDIV_P)
12036 (TARGET_HAVE_LDREX_P, TARGET_HAVE_LDREXBH_P, TARGET_HAVE_LDREXD_P)
12037 (TARGET_ARM_FEATURE_LDREX_P)
12038 (TARGET_DSP_MULTIPLY_P, TARGET_INT_SIMD_P): New macros.
12039 * config/arm/arm-c.c (def_or_undef_macro): New function.
12040 (arm_cpu_cpp_builtins): Use def_or_undef_macro for macros definition.
12041
12042 2015-05-26 Christian Bruel <christian.bruel@st.com>
12043
12044 * c-common.h (builtin_define_with_int_value)
12045 (builtin_define_type_sizeof): Declare.
12046 * c-cppbuiltin.c (builtin_define_with_int_value)
12047 (builtin_define_type_sizeof): Externalize.
12048 (builtin_define_std): Cleanup declaration.
12049 * config/arm/arm-protos.h (arm_cpu_cpp_builtins): Declare.
12050 * config/arm/arm.h (TARGET_CPU_CPP_BUILTINS): Move macro defines into...
12051 * config/arm/arm-c.c (arm_cpu_cpp_builtins): New function.
12052 (builtin_define, builtin_assert): New macros.
12053
12054 2015-05-26 Richard Biener <rguenther@suse.de>
12055
12056 PR tree-optimization/66142
12057 * tree-ssa-sccvn.c (vn_reference_lookup_3): Manually compare
12058 MEM_REFs for the same base address.
12059
12060 2015-05-26 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
12061
12062 PR ipa/66181
12063 * tree.c (verify_type_variant): Do not check TYPE_NO_FORCE_BLK.
12064
12065 2015-05-26 Jason Merrill <jason@redhat.com>
12066
12067 * configure.ac: Set CXXFLAGS for ISL test.
12068 * configure: Regenerate.
12069
12070 * configure.ac: Use C++ for all tests. Use AC_CHECK_DECLS for
12071 strstr and basename.
12072 * configure: Regenerate.
12073
12074 2015-05-26 Richard Biener <rguenther@suse.de>
12075
12076 * fold-const.c (fold_binary_loc): Move X % -Y -> X % Y and
12077 X % C -> X & (C - 1) for C being a power-of two to ...
12078 * match.pd: ... patterns.
12079
12080 2015-05-26 Marc Glisse <marc.glisse@inria.fr>
12081
12082 * match.pd (swapped_tcc_comparison): New operator list.
12083 (-A CMP -B): New simplification.
12084 * fold-const.c (fold_comparison): Remove corresponding code.
12085
12086 2015-05-26 Richard Sandiford <richard.sandiford@arm.com>
12087
12088 * caller-save.c (init_caller_save): Base temporary register numbers
12089 on LAST_VIRTUAL_REGISTER + 1 rather than FIRST_PSEUDO_REGISTER.
12090 * cfgloopanal.c (init_set_costs): Likewise.
12091 * dojump.c (prefer_and_bit_test): Likewise.
12092 * expr.c (init_expr_target): Likewise.
12093 * ira.c (setup_prohibited_mode_move_regs): Likewise.
12094 * lower-subreg.c (init_lower_subreg): Likewise.
12095 * postreload.c (reload_cse_regs_1): Likewise.
12096
12097 2015-05-26 Richard Sandiford <richard.sandiford@arm.com>
12098
12099 * gensupport.h (compute_test_codes): Declare.
12100 * gensupport.c (compute_predicate_codes): Rename to...
12101 (compute_test_codes): ...this. Generalize error message.
12102 (process_define_predicate): Update accordingly.
12103 * genpreds.c (compute_maybe_allows): Delete.
12104 (add_constraint): Use compute_test_codes to determine whether
12105 something can accept a SUBREG, REG or MEM.
12106
12107 2015-05-26 Torvald Riegel <triegel@redhat.com>
12108
12109 * doc/extend.texi (__atomic Builtins): Use 'memory order' instead of
12110 'memory model' to align with C++11; fix description of memory orders;
12111 fix a few typos.
12112
12113 2015-05-26 Richard Biener <rguenther@suse.de>
12114
12115 * tree-vect-loop.c (vect_update_vf_for_slp): Split out from ...
12116 (vect_analyze_loop_operations): ... here. Remove slp parameter,
12117 detect whether we apply SLP. Remove call to
12118 vect_update_slp_costs_according_to_vf.
12119 (vect_analyze_loop_2): Call vect_update_vf_for_slp and
12120 vect_update_slp_costs_according_to_vf from here. Dispatch
12121 to vect_slp_analyze_operations to analyze SLP stmts.
12122 * tree-vect-slp.c (vect_slp_analyze_node_operations): Drop
12123 unused bb_vec_info parameter, adjust assert.
12124 (vect_slp_analyze_operations): Pass in the slp instance tree
12125 instead of bb_vec_info.
12126 (vect_slp_analyze_bb_1): Adjust call to vect_slp_analyze_operations.
12127 * tree-vectorizer.h (vect_slp_analyze_operations): Declare.
12128
12129 2015-05-25 Alexander Monakov <amonakov@ispras.ru>
12130
12131 * config/i386/i386.h (enum reg_class): Move CLOBBERED_REGS prior to
12132 Q_REGS. Expand comment.
12133 (REG_CLASS_NAMES): Ditto.
12134 (REG_CLASS_CONTENTS): Ditto.
12135
12136 2015-05-25 Uros Bizjak <ubizjak@gmail.com>
12137
12138 PR target/66274
12139 * config/i386/i386.c (print_reg): Only print "r" for TARGET_64BIT
12140 when LEGACY_INT_REGNO_P is processed.
12141
12142 2015-05-25 Alexander Monakov <amonakov@ispras.ru>
12143
12144 * config/i386/i386.c (ix86_function_ok_for_sibcall): Check flag_plt.
12145
12146 2015-05-25 Pitchumani Sivanupandi <pitchumani.s@atmel.com>
12147
12148 * config/avr/avr.c (avr_out_load_psi_reg_no_disp_tiny): Restore base
12149 register if not marked dead/unused, before return.
12150
12151 2015-05-24 Jan Hubicka <hubicka@ucw.cz>
12152
12153 PR lto/66180
12154 * ipa-devirt.c (type_with_linkage): Check that TYPE_STUB_DECL
12155 is set; check for assembler name at LTO time.
12156 (type_in_anonymous_namespace): Remove hacks, check that all
12157 anonymous types are called "<anon>"
12158 (odr_type_p): Simplify; add check for "<anon>"
12159 (odr_subtypes_equivalent): Add odr_type_p check.
12160 * tree.c (need_assembler_name_p): Even anonymous namespace needs
12161 assembler name.
12162
12163 2015-05-24 Jan Hubicka <hubicka@ucw.cz>
12164
12165 * ipa-utils.h (method_class_type): Remove.
12166 * cgraphunit.c (walk_polymorphic_call_targets): Use
12167 TYPE_METHOD_BASETYPE.
12168 * ipa-devirt.c (type_in_anonymous_namespace_p): Check that it is called
12169 on main variants only.
12170 (method_class_type): Remove.
12171 (update_type_inheritance_graph): Use TYPE_METHOD_BASETYPE.
12172 (build_type_inheritance_graph): Likewise.
12173 * ipa-icf.c (sem_function::equals_wpa): Likewise.
12174 * pa-polymorphic-call.c (decl_maybe_in_construction_p,
12175 check_stmt_for_type_change): Use TYPE_METHOD_BASETYPE.
12176
12177 2015-05-24 Jan Hubicka <hubicka@ucw.cz>
12178
12179 * tree.c (prototype_p, virtual_method_call_p, obj_type_ref_class,
12180 is_typedef_decl, typedef_variant_p): Constify.
12181 * tree.h (prototype_p, virtual_method_call_p, obj_type_ref_class,
12182 is_typedef_decl, typedef_variant_p): Constify.
12183
12184 2015-05-23 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
12185
12186 * defaults.h (gen_tablejump): New function.
12187 (HAVE_tablejump): Add default value.
12188 * expr.c: Adjust.
12189 * stmt.c: Likewise.
12190
12191 2015-05-23 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
12192
12193 * defaults.h (gen_store_multiple): New function.
12194 (HAVE_store_multiple): Add default value.
12195 * expr.c (move_block_from_reg): Adjust.
12196
12197 2015-05-23 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
12198
12199 * defaults.h (gen_load_multiple): New function.
12200 (HAVE_load_multiple): Add default value.
12201 * expr.c (move_block_to_reg): Adjust.
12202
12203 2015-05-23 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
12204
12205 * defaults.h (gen_mem_signal_fence): New function.
12206 (HAVE_mem_signal_fence): Add default value.
12207 * optabs.c: Adjust.
12208
12209 2015-05-23 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
12210
12211 * defaults.h (gen_memory_barrier): New function.
12212 (HAVE_memory_barrier): Add default value.
12213 * optabs.c: Adjust.
12214
12215 2015-05-23 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
12216
12217 * defaults.h (gen_mem_thread_fence): New function.
12218 (HAVE_mem_thread_fence): Add default definition.
12219 * optabs.c: Adjust.
12220
12221 2015-05-23 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
12222
12223 * combine.c (find_split_point): Check the value of HAVE_lo_sum
12224 instead of if it is defined.
12225 (combine_simplify_rtx): Likewise.
12226 * lra-constraints.c (process_address_1): Likewise.
12227 * config/darwin.c: Adjust.
12228 * genconfig.c (main): Always define HAVE_lo_sum.
12229
12230 2015-05-23 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
12231
12232 * genmatch.c (parser::parse_operation): Reject expanding
12233 operator-list inside 'for'.
12234
12235 2015-05-23 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
12236
12237 * genmatch.c (parser::parse_for): Reject iterator if used as
12238 operator-list.
12239
12240 2015-05-23 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
12241
12242 * genmatch.c (parser::parse_operator_list): Check for CPP_CLOSE_PAREN
12243 after end of id-list.
12244
12245 2015-05-22 Jan Hubicka <hubicka@ucw.cz>
12246
12247 * tree.c (gimple_canonical_types_compatible_p): Sanity check that
12248 we do not try to compute canonical type for type that does not need
12249 alias set.
12250 (verify_type): Drop FIXME for METHOD_TYPE, update FIXME for
12251 FUNCITON_TYPE.
12252 * tree.h (type_with_alias_set_p): New.
12253
12254 2015-05-22 Jan Hubicka <hubicka@ucw.cz>
12255
12256 * tree.c (gimple_canonical_types_compatible_p): Do not compare
12257 function attributes.
12258 (verify_type): Remove METHOD_TYPE FIXME; update FUNCTION_TYPE.
12259
12260 2015-05-22 Jim Wilson <jim.wilson@linaro.org>
12261
12262 * Makefile.in (check_gcc_parallelize): Delete.
12263 (lang_checks_parallelized): Update comment.
12264
12265 2015-05-22 Mikhail Maltsev <maltsevm@gmail.com>
12266
12267 PR rtl-optimization/66237
12268 * bb-reorder.c (fix_crossing_conditional_branches): Fix wrong
12269 location of an "as_a" cast.
12270
12271 2015-05-22 Jeff Law <law@redhat.com>
12272
12273 * config/pa/pa.md (non-canonical shift-add insns): Remove.
12274 (peepholes with non-canonical RTL sources): Remove.
12275 (peepholes for indexed stores of FP regs in integer modes): Match and
12276 generate canonical RTL.
12277
12278 2015-05-22 Marc Glisse <marc.glisse@inria.fr>
12279
12280 PR tree-optimization/63387
12281 * match.pd ((X /[ex] A) * A -> X): Remove unnecessary condition.
12282 ((x ord x) & (y ord y) -> (x ord y),
12283 (x ord x) & (x ord y) -> (x ord y)): New simplifications.
12284 * fold-const.c (tree_unary_nonnegative_warnv_p) <ABS_EXPR>: Handle
12285 vectors like scalars.
12286
12287 2015-05-22 Marc Glisse <marc.glisse@inria.fr>
12288
12289 * convert.c (convert_to_integer, convert_to_vector): Include the
12290 types in the error message.
12291
12292 2015-05-22 Marc Glisse <marc.glisse@inria.fr>
12293
12294 * match.pd ((x | y) & ~x -> y & ~x, (x & y) | ~x -> y | ~x): New
12295 simplifications.
12296
12297 2015-05-22 Jeff Law <law@redhat.com>
12298
12299 * config/pa/pa.md (integer_indexed_store splitters): Use
12300 mem_shadd_operand. Use ASHIFT rather than MULT in the resulting
12301 insns -- adjusting the constant 2nd operand accordingly.
12302
12303 * combine.c (try_combine): Canonicalize (plus (mult X pow2) Y) into
12304 (plus (ashift X log2) Y) if it is a split point.
12305
12306 * config/pa/pa.c (mem_shadd_or_shadd_rtx_p): New function factoredx
12307 out of hppa_legitimize_address to handle both forms of a multiply
12308 by 2, 4 or 8.
12309 (hppa_legitimize_address): Use mem_shadd_or_shadd_rtx_p.
12310 Always generate the ASHIFT variant as the result is not directly
12311 used in a MEM. Update comments and refactor slightly to improve
12312 readability.
12313
12314 2015-05-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
12315
12316 PR target/65491
12317 * config/aarch64/aarch64.c (aarch64_short_vector_p): Move above
12318 aarch64_composite_type_p. Remove check for aarch64_composite_type_p.
12319 (aarch64_composite_type_p): Return false if given type and mode are
12320 for a short vector.
12321
12322 2015-05-22 Richard Biener <rguenther@suse.de>
12323
12324 * tree-vectorizer.h (struct _slp_oprnd_info): Add second_pattern
12325 member.
12326 * tree-vect-loop.c (vect_analyze_loop_operations): Look at
12327 patterns when determining whether SLP is pure.
12328 (vect_is_slp_reduction): Remove check for pattern stmts.
12329 (vect_is_simple_reduction_1): Remove dead code.
12330 * tree-vect-slp.c (vect_create_oprnd_info): Initialize second_pattern.
12331 (vect_get_and_check_slp_defs): Pass in the stmt number.
12332 Allow the first def in a reduction to be not a pattern stmt when
12333 the rest of the stmts def are patterns.
12334 (vect_build_slp_tree_1): Allow tcc_expression codes like
12335 SAD_EXPR and DOT_PROD_EXPR.
12336 (vect_build_slp_tree): Adjust.
12337 (vect_analyze_slp): Refactor and move BB vect error message ...
12338 (vect_slp_analyze_bb_1): ... here.
12339
12340 2015-05-22 Aldy Hernandez <aldyh@redhat.com>
12341
12342 * tree-switch-conversion.c (build_one_array): Set DECL_IGNORED_P
12343 for CSWTCH temporary.
12344
12345 2015-05-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
12346
12347 * config/arm/arm.c (arm_new_rtx_costs): Handle UNSPEC_VOLATILE.
12348 (arm_unspec_cost): Allow UNSPEC_VOLATILE. Do not recurse inside
12349 unknown unspecs.
12350
12351 2015-05-22 Richard Biener <rguenther@suse.de>
12352
12353 PR tree-optimization/66251
12354 * tree-vect-stmts.c (vectorizable_conversion): Properly
12355 set STMT_VINFO_VEC_STMT even for the SLP case.
12356
12357 2015-05-22 Marek Polacek <polacek@redhat.com>
12358
12359 * doc/extend.texi: Use @pxref instead of @xref.
12360
12361 2015-05-22 hiraditya <hiraditya@msn.com>
12362
12363 * gimple.h (gimple_expr_type): Refactor to make it concise. Remove
12364 redundant if.
12365
12366 2015-05-22 Richard Biener <rguenther@suse.de>
12367
12368 PR tree-optimization/65701
12369 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment):
12370 Move peeling cost models into one place. Peel for alignment
12371 for single loads only if an aligned load is cheaper than
12372 an unaligned load.
12373
12374 2015-05-22 Marek Polacek <polacek@redhat.com>
12375
12376 PR c/47043
12377 * doc/extend.texi (Enumerator Attributes): New section.
12378 Document syntax of enumerator attributes.
12379
12380 2015-05-22 Richard Biener <rguenther@suse.de>
12381
12382 * tree-vect-loop.c (get_reduction_op): New function.
12383 (vect_model_reduction_cost): Use it, add reduc_index parameter.
12384 Make ready for BB reductions.
12385 (vect_create_epilog_for_reduction): Use get_reduction_op.
12386 (vectorizable_reduction): Init reduc_index to a valid value.
12387 Adjust vect_model_reduction_cost call.
12388 * tree-vect-slp.c (vect_get_constant_vectors): Use the proper
12389 operand for reduction defaults. Add SAD_EXPR support.
12390 Assert we have a neutral op for SLP reductions.
12391 * tree-vect-stmts.c (vect_mark_stmts_to_be_vectorized): When
12392 walking pattern stmt ops only recurse to SSA names.
12393
12394 2015-05-22 Richard Biener <rguenther@suse.de>
12395
12396 * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Replace
12397 assert with guard, remove check on detected reduction.
12398 (vect_recog_sad_pattern): Likewise.
12399 (vect_recog_widen_sum_pattern): Likewise.
12400
12401 2015-05-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
12402
12403 * config/aarch64/arm_neon.h (vaeseq_u8): Add __extension__ and
12404 __always_inline__ attribute.
12405 (vaesdq_u8): Likewise.
12406 (vaesmcq_u8): Likewise.
12407 (vaesimcq_u8): Likewise.
12408 (vsha1cq_u32): Likewise.
12409 (vsha1mq_u32): Likewise.
12410 (vsha1pq_u32): Likewise.
12411 (vsha1h_u32): Likewise.
12412 (vsha1su0q_u32): Likewise.
12413 (vsha1su1q_u32): Likewise.
12414 (vsha256hq_u32): Likewise.
12415 (vsha256h2q_u32): Likewise.
12416 (vsha256su0q_u32): Likewise.
12417 (vsha256su1q_u32): Likewise.
12418 (vmull_p64): Likewise.
12419 (vmull_high_p64): Likewise.
12420
12421 2015-05-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
12422
12423 * final.c (final_scan_insn): Don't check HAVE_peephole with the
12424 preprocessor.
12425 * output.h: Likewise.
12426 * genconfig.c (main): Alwways define HAVE_peephole.
12427 * genpeep.c: Don't emit checks of HAVE_peephole.
12428
12429 2015-05-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
12430
12431 * combine.c, expmed.c, expr.c, optabs.c optabs.h, toplev.c: DOn't
12432 check HAVE_conditional_move with the preprocessor.
12433
12434 2015-05-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
12435
12436 * genconfig.c (main): Always define HAVE_conditional_move.
12437 * combine.c, expmed.c, expr.c, ifcvt.c, optabs.c, optabs.h,
12438 toplev.c, tree-ssa-phiopt.c: Don't check if HAVE_conditional_move
12439 is defined.
12440
12441 2015-05-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
12442
12443 * combine.c, df-problems.c, df-scan.c, emit-rtl.c, reginfo.c,
12444 reload.c, rtlanal.c: Remove comparison of ARG_FRAME_POINTER_REGNUM
12445 and FRAME_POINTER_REGNUM with the preprocessor.
12446
12447 2015-05-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
12448
12449 * defaults.h: Add default for STACK_PUSH_CODE.
12450 * expr.c: Don't redefine STACK_PUSH_CODE.
12451 * recog.c: Likewise.
12452
12453 2015-05-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
12454
12455 * builtins.c, dwarf2cfi.c, explow.c, expr.c, recog.c,
12456 sched-deps.c: Use if instead of preprocessor checks with
12457 STACK_GROWS_DOWNWARD.
12458
12459 2015-05-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
12460
12461 * *.c: Check the value of STACK_GROWS_DOWNWARD rather than if it
12462 is defined.
12463 * config/**/*.h: Define STACK_GROWS_DOWNWARD to an integer.
12464 * defaults.h: Provide default for STACK_GROWS_DOWNWARD.
12465 * doc/tm.texi.in: Update references to STACK_GROWS_DOWNWARD.
12466 * doc/tm.texi: Regenerate.
12467
12468 2015-05-21 H.J. Lu <hongjiu.lu@intel.com>
12469
12470 PR target/66232
12471 * config/i386/constraints.md (Bg): New constraint for GOT memory
12472 operand.
12473 * config/i386/i386.md (*call_got_x32): New pattern.
12474 (*call_value_got_x32): Likewise.
12475 * config/i386/predicates.md (GOT_memory_operand): New predicate.
12476
12477 2015-05-21 Jakub Jelinek <jakub@redhat.com>
12478
12479 PR tree-optimization/66233
12480 * match.pd (ocvt (icvt@1 @0)): Don't handle vector types.
12481 Simplify.
12482
12483 2015-05-21 Jeff Law <law@redhat.com>
12484
12485 * config/pa/pa.md (add-with-constant splitter): Use ASHIFT rather
12486 than MULT for shadd sequences.
12487
12488 2015-05-08 Jan Hubicka <hubicka@ucw.cz>
12489
12490 * alias.c (alias_stats): New static var.
12491 (alias_sets_conflict_p, alias_sets_must_conflict_p): Update stats.
12492 (dump_alias_stats_in_alias_c): New function.
12493 * alias.h (dump_alias_stats_in_alias_c): Declare.
12494 * tree-ssa-alias.c (dump_alias_stats): Call it.
12495
12496 2015-05-08 Michael Matz <matz@suse.de>
12497
12498 * tree-vectorizer.h (struct _stmt_vec_info): Rename stride_load_p
12499 to strided_p.
12500 (STMT_VINFO_STRIDE_LOAD_P): Rename to ...
12501 (STMT_VINFO_STRIDED_P): ... this.
12502 * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Adjust.
12503 (vect_verify_datarefs_alignment): Likewise.
12504 (vect_enhance_data_refs_alignment): Likewise.
12505 (vect_analyze_data_ref_access): Likewise.
12506 (vect_analyze_data_refs): Accept strided stores.
12507 * tree-vect-stmts.c (vect_model_store_cost): Count strided stores.
12508 (vect_model_load_cost): Adjust for macro rename.
12509 (vectorizable_mask_load_store): Likewise.
12510 (vectorizable_load): Likewise.
12511 (vectorizable_store): Open code strided stores.
12512
12513 2015-05-21 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
12514
12515 * doc/sourcebuild.texi (7.2.3.9 Other hardware attributes):
12516 Document sqrt_insn.
12517
12518 2015-05-21 Richard Biener <rguenther@suse.de>
12519
12520 PR c++/66211
12521 * match.pd: Guard pattern optimzing (int)(float)int
12522 conversions to apply only on GIMPLE.
12523
12524 2015-05-21 Jeff Law <law@redhat.com>
12525
12526 * combine.c (find_split_point): Handle ASHIFT like MULT to encourage
12527 multiply-accumulate/shift-add insn generation.
12528
12529 2015-05-21 Oleg Endo <olegendo@gcc.gnu.org>
12530
12531 PR target/54236
12532 * config/sh/sh.md (*round_int_even): Reject pattern if operands[0] and
12533 operands[1] are the same.
12534
12535 2015-05-21 Ilya Enkovich <enkovich.gnu@gmail.com>
12536
12537 PR middle-end/66221
12538 * ipa-chkp.c (chkp_copy_function_type_adding_bounds): Use
12539 build_distinct_type_copy to copy bounds.
12540
12541 2015-05-21 Thomas Schwinge <thomas@codesourcery.com>
12542
12543 * genrecog.c (MAX_DEPTH, MIN_NUM_STATEMENTS, MAX_NUM_STATEMENTS):
12544 Change to unsigned int.
12545
12546 2015-05-20 Jeff Law <law@redhat.com>
12547
12548 * config/pa/pa.c (pa_print_operand): New 'o' output modifier.
12549 (pa_mem_shadd_constant_p): Renamed from pa_shadd_constant_p.
12550 (pa_shadd_constant_p): Allow constants for shadd insns rather
12551 than valid scaling constants for memory addresses.
12552 * config/pa/pa-protos.h (pa_mem_shadd_constant_p): Add prototype.
12553 * config/pa/predicates.md (mem_shadd_operand): New predicate.
12554 * config/pa/pa.md (shift-add insns using MULT): Use mem_shadd_operand.
12555 (shift-add insns using ASHIFT): New patterns.
12556
12557 2015-05-20 Mikhail Maltsev <maltsevm@gmail.com>
12558
12559 * bb-reorder.c (set_edge_can_fallthru_flag): Use rtx_jump_insn where
12560 feasible.
12561 (fix_up_fall_thru_edges): Likewise.
12562 (fix_crossing_conditional_branches): Likewise. Promote jump targets
12563 from to rtx_insn to rtx_code_label where feasible.
12564 * bt-load.c (move_btr_def): Remove as-a cast of the value returned by
12565 gen_move_insn (returned type changed to rtx_insn).
12566 * builtins.c (expand_errno_check): Fix arguments of
12567 do_compare_rtx_and_jump (now expects rtx_code_label).
12568 (expand_builtin_acc_on_device): Likewise.
12569 * cfgcleanup.c (try_simplify_condjump): Add cast when calling
12570 invert_jump (now exprects rtx_jump_insn).
12571 * cfgexpand.c (label_rtx_for_bb): Promote return type to rtx_code_label.
12572 (construct_init_block): Use rtx_code_label.
12573 * cfgrtl.c (block_label): Promote return type to rtx_code_label.
12574 (try_redirect_by_replacing_jump): Use cast to rtx_jump_insn when
12575 calling redirect_jump.
12576 (patch_jump_insn): Likewise.
12577 (redirect_branch_edge): Likewise.
12578 (force_nonfallthru_and_redirect): Likewise.
12579 (fixup_reorder_chain): Explicitly use rtx_jump_insn instead of rtx_insn
12580 when suitable.
12581 (rtl_lv_add_condition_to_bb): Update call of do_compare_rtx_and_jump.
12582 * cfgrtl.h: Promote return type of block_label to rtx_code_label.
12583 * config/bfin/bfin.c (hwloop_optimize): Fix call of emit_label_before.
12584 * config/i386/i386.c (ix86_emit_cmove): Explicitly use rtx_code_label
12585 to store the value retured by gen_label_rtx.
12586 * config/mips/mips.c (mips16_split_long_branches): Promote rtx_insn to
12587 rtx_jump_insn.
12588 * config/sh/sh.c (gen_far_branch): Likewise. Fix call of invert_jump.
12589 (split_branches): Fix calls of redirect_jump.
12590 * dojump.c (jumpifnot): Promote argument type from rtx to
12591 rtx_code_label.
12592 (jumpifnot_1): Likewise.
12593 (jumpif): Likewise.
12594 (jumpif_1): Likewise.
12595 (do_jump_1): Likewise.
12596 (do_jump): Likewise. Use rtx_code_label when feasible.
12597 (do_jump_by_parts_greater_rtx): Likewise.
12598 (do_jump_by_parts_zero_rtx): Likewise.
12599 (do_jump_by_parts_equality_rtx): Likewise.
12600 (do_compare_rtx_and_jump): Likewise.
12601 * dojump.h: Update function prototypes.
12602 * dse.c (emit_inc_dec_insn_before): Remove case (gen_move_insn now
12603 returns rtx_insn).
12604 * emit-rtl.c (emit_jump_insn_before_noloc): Promote return type to
12605 rtx_jump_insn.
12606 (emit_label_before): Likewise.
12607 (emit_jump_insn_after_noloc): Likewise.
12608 (emit_jump_insn_after_setloc): Likewise.
12609 (emit_jump_insn_after): Likewise
12610 (emit_jump_insn_before_setloc): Likewise.
12611 (emit_jump_insn_before): Likewise.
12612 (emit_label_before): Promote return type to rtx_code_label.
12613 (emit_label): Likewise.
12614 * except.c (sjlj_emit_dispatch_table): Use jump_target_rtx.
12615 * explow.c (emit_stack_save): Use gen_move_insn_uncast instead of
12616 gen_move_insn.
12617 (emit_stack_restore): Likewise.
12618 * expmed.c (emit_store_flag_force): Fix calls of do_compare_rtx_and_jump.
12619 (do_cmp_and_jump): Likewise.
12620 * expr.c (expand_expr_real_2): Likewise. Promote some local variables
12621 from rtx to rtx_code_label.
12622 (gen_move_insn_uncast): New function.
12623 * expr.h: Update return type of gen_move_insn (promote to rtx_insn).
12624 * function.c (convert_jumps_to_returns): Fix call of redirect_jump.
12625 * gcse.c (pre_insert_copy_insn): Use rtx_insn instead of rtx.
12626 * ifcvt.c (dead_or_predicable): Use rtx_jump_insn when calling
12627 invert_jump_1 and redirect_jump_1.
12628 * internal-fn.c (expand_arith_overflow_result_store): Fix call of
12629 do_compare_rtx_and_jump.
12630 (expand_addsub_overflow): Likewise.
12631 (expand_neg_overflow): Likewise.
12632 (expand_mul_overflow): Likewise.
12633 * ira.c (split_live_ranges_for_shrink_wrap): Use rtx_insn for
12634 return value of gen_move_insn.
12635 * jump.c (redirect_jump): Promote argument from rtx to rtx_jump_insn.
12636 * loop-doloop.c (add_test): Use rtx_code_label.
12637 (doloop_modify): Likewise.
12638 (doloop_optimize): Likewise.
12639 * loop-unroll.c (compare_and_jump_seq): Promote rtx to rtx_code_label.
12640 * lra-constraints.c (emit_spill_move): Remove cast of value returned
12641 by gen_move_insn.
12642 (inherit_reload_reg): Add cast when calling dump_insn_slim.
12643 (split_reg): Likewise.
12644 * modulo-sched.c (schedule_reg_moves): Remove cast of value returned by
12645 gen_move_insn.
12646 * optabs.c (expand_binop_directly): Remove casts of values returned by
12647 maybe_gen_insn.
12648 (expand_unop_direct): Likewise.
12649 (expand_abs): Likewise.
12650 (maybe_emit_unop_insn): Likewise.
12651 (maybe_gen_insn): Promote return type to rtx_insn.
12652 * optabs.h: Update prototype of maybe_gen_insn.
12653 * postreload-gcse.c (eliminate_partially_redundant_load): Remove
12654 redundant cast.
12655 * recog.c (struct peep2_insn_data): Promote type of insn field to
12656 rtx_insn.
12657 (peep2_reinit_state): Use NULL instead of NULL_RTX.
12658 (peep2_attempt): Remove casts of insn in peep2_insn_data.
12659 (peep2_fill_buffer): Promote argument from rtx to rtx_insn
12660 * recog.h (struct insn_gen_fn): Promote return types of function
12661 pointers and operator ().from rtx to rtx_insn.
12662 * reorg.c (fill_simple_delay_slots): Promote rtx_insn to rtx_jump_insn.
12663 (fill_eager_delay_slots): Likewise.
12664 (relax_delay_slots): Likewise.
12665 (make_return_insns): Likewise.
12666 (dbr_schedule): Likewise.
12667 (optimize_skips): Likewise.
12668 (reorg_redirect_jump): Likewise.
12669 (fill_slots_from_thread): Likewise.
12670 * reorg.h: Update prototypes.
12671 * resource.c (find_dead_or_set_registers): Use dyn_cast to
12672 rtx_jump_insn instead of check. Use it's jump_target method.
12673 * rtl.h (rtx_jump_insn::jump_label): Define new method.
12674 (rtx_jump_insn::jump_target): Define new method.
12675 (rtx_jump_insn::set_jump_target): Define new method.
12676 * rtlanal.c (tablejump_p): Promote type of one local variable.
12677 * sched-deps.c (sched_analyze_2): Promote rtx to rtx_insn_list.
12678 (sched_analyze_insn): Likewise.
12679 * sched-vis.c (print_insn_with_notes): Promote rtx to rtx_insn.
12680 (print_insn): Likewise.
12681 * stmt.c (label_rtx): Promote return type to rtx_insn.
12682 (force_label_rtx): Likewise.
12683 (jump_target_rtx): Define new function.
12684 (expand_label): Use it, get rid of one cast.
12685 (expand_naked_return): Promote rtx to rtx_code_label.
12686 (do_jump_if_equal): Fix do_compare_rtx_and_jump call.
12687 (expand_case): Use rtx_code_label instread of rtx where feasible.
12688 (expand_sjlj_dispatch_table): Likewise.
12689 (emit_case_nodes): Likewise.
12690 * stmt.h: Declare jump_target_rtx. Update prototypes. Fix comments.
12691 * store-motion.c (insert_store): Make use of new return type of
12692 gen_move_insn and remove a cast.
12693 (replace_store_insn): Likewise.
12694
12695 2015-05-20 Max Filippov <jcmvbkbc@gmail.com>
12696
12697 * config/xtensa/xtensa.c (init_alignment_context): Replace MULT
12698 by BITS_PER_UNIT with ASHIFT by exact_log2 (BITS_PER_UNIT).
12699
12700 2015-05-20 Jeff Law <law@redhat.com>
12701
12702 * tree-ssa-threadupdate.c (mark_threaded_blocks): Properly
12703 dispose of the jump thread path when the jump threading
12704 opportunity is cancelled.
12705
12706 2015-05-20 Manuel López-Ibáñez <manu@gcc.gnu.org>
12707
12708 * diagnostic.c (diagnostic_print_caret_line): Fix off-by-one error
12709 when printing the caret character.
12710
12711 2015-05-20 Marek Polacek <polacek@redhat.com>
12712
12713 * cfgexpand.c (expand_debug_expr): Use UNARY_CLASS_P.
12714
12715 2015-05-20 Marek Polacek <polacek@redhat.com>
12716
12717 * expr.c (expand_cond_expr_using_cmove): Use COMPARISON_CLASS_P.
12718 * gimple-expr.c (gimple_cond_get_ops_from_tree): Likewise.
12719 * gimple-fold.c (canonicalize_bool): Likewise.
12720 (same_bool_result_p): Likewise.
12721 * tree-if-conv.c (parse_predicate): Likewise.
12722
12723 2015-05-20 Marek Polacek <polacek@redhat.com>
12724
12725 * gimple-fold.c (fold_const_aggregate_ref_1): Use DECL_P.
12726 * gimplify.c (gimplify_modify_expr_rhs): Likewise.
12727
12728 2015-05-20 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
12729
12730 * config/aarch64/aarch64.c (aarch64_class_max_nregs):
12731 Use UNITS_PER_VREG and UNITS_PER_WORD instead of their direct
12732 values.
12733
12734 2015-05-20 Robert Suchanek <robert.suchanek@imgtec.com>
12735
12736 * config/mips/mips.h (micromips_globals): Declare.
12737
12738 2015-05-20 David Malcolm <dmalcolm@redhat.com>
12739
12740 * timevar.def (TV_INITIALIZE_RTL): New.
12741 * toplev.c (initialize_rtl): Use an auto_timevar to account this
12742 function's time to TV_INITIALIZE_RTL.
12743
12744 2015-05-20 Ilya Enkovich <enkovich.gnu@gmail.com>
12745
12746 * tree-chkp.c (chkp_maybe_copy_and_register_bounds): Remove useless
12747 gimple_build_nop calls.
12748 (chkp_find_bounds_for_elem): Likewise.
12749 (chkp_get_zero_bounds): Likewise.
12750 (chkp_get_none_bounds): Likewise.
12751 (chkp_get_bounds_by_definition): Likewise.
12752 (chkp_generate_extern_var_bounds): Likewise.
12753 (chkp_get_bounds_for_decl_addr): Likewise.
12754 (chkp_get_bounds_for_string_cst): Likewise.
12755
12756 2015-05-20 Bin Cheng <bin.cheng@arm.com>
12757
12758 PR tree-optimization/65447
12759 * tree-ssa-loop-ivopts.c (struct iv_use): New fields.
12760 (dump_use, dump_uses): Support to dump sub use.
12761 (record_use): New parameters to support sub use. Remove call to
12762 dump_use.
12763 (record_sub_use, record_group_use): New functions.
12764 (compute_max_addr_offset, split_all_small_groups): New functions.
12765 (group_address_uses, rewrite_use_address): New functions.
12766 (strip_offset): New declaration.
12767 (find_interesting_uses_address): Call record_group_use.
12768 (add_candidate): New assertion.
12769 (infinite_cost_p): Move definition forward.
12770 (add_costs): Check INFTY cost and return immediately.
12771 (get_computation_cost_at): Clear setup cost and dependent bitmap
12772 for sub uses.
12773 (determine_use_iv_cost_address): Compute cost for sub uses.
12774 (rewrite_use_address_1): Rename from old rewrite_use_address.
12775 (free_loop_data): Free sub uses.
12776 (tree_ssa_iv_optimize_loop): Call group_address_uses.
12777
12778 2015-05-20 Kugan Vivekanandarajah <kuganv@linaro.org>
12779 Jim Wilson <jim.wilson@linaro.org>
12780
12781 * config/arm/aarch-common-protos.h (struct mem_cost_table): Added
12782 new fields loadv and storev.
12783 * config/aarch64/aarch64-cost-tables.h (thunderx_extra_costs):
12784 Initialize loadv and storev.
12785 * config/arm/aarch-cost-tables.h (generic_extra_costs): Likewise.
12786 (cortexa53_extra_costs): Likewise.
12787 (cortexa57_extra_costs): Likewise.
12788 (xgene1_extra_costs): Likewise.
12789 * config/aarch64/aarch64.c (aarch64_rtx_costs): Update vector
12790 rtx_costs.
12791
12792 2015-05-20 Kugan Vivekanandarajah <kuganv@linaro.org>
12793
12794 * config/arm/arm.c (cortexa9_extra_costs): Initialize loadv and
12795 storev.
12796 (cortexa8_extra_costs): Likewise.
12797 (cortexa5_extra_costs): Likewise.
12798 (cortexa7_extra_costs): Likewise.
12799 (cortexa12_extra_costs): Likewise.
12800 (cortexa15_extra_costs): Likewise.
12801 (v7m_extra_costs): Likewise.
12802
12803 2015-05-20 Jeff Law <law@redhat.com>
12804
12805 * tree-ssa-threadupdate.c (thread_single_edge): Use delete_jump_thread
12806 instead of open-coded version. Also delete the jump thread created
12807 within this function.
12808
12809 2015-05-20 Alan Modra <amodra@gmail.com>
12810
12811 * config/rs6000/rs6000.c (rs6000_emit_allocate_stack): Return
12812 stack adjusting insn. Formatting.
12813 (rs6000_emit_prologue): Track stack adjusting insn, and use of
12814 r12. If possible, emit first -fsplit-stack arg pointer insn
12815 before stack adjust. Don't use r12 to save cr if split-stack.
12816
12817 2015-05-20 Alan Modra <amodra@gmail.com>
12818
12819 * common/config/rs6000/rs6000-common.c (TARGET_SUPPORTS_SPLIT_STACK):
12820 Define.
12821 (rs6000_supports_split_stack): New function.
12822 * gcc/config/rs6000/rs6000.c (machine_function): Add
12823 split_stack_arg_pointer.
12824 (TARGET_EXTRA_LIVE_ON_ENTRY, TARGET_INTERNAL_ARG_POINTER): Define.
12825 (setup_incoming_varargs): Use crtl->args.internal_arg_pointer
12826 rather than virtual_incoming_args_rtx.
12827 (rs6000_va_start): Likewise.
12828 (split_stack_arg_pointer_used_p): New function.
12829 (rs6000_emit_prologue): Set up arg pointer for -fsplit-stack.
12830 (morestack_ref): New var.
12831 (gen_add3_const, rs6000_expand_split_stack_prologue,
12832 rs6000_internal_arg_pointer, rs6000_live_on_entry,
12833 rs6000_split_stack_space_check): New functions.
12834 (rs6000_elf_file_end): Call file_end_indicate_split_stack.
12835 * gcc/config/rs6000/rs6000.md (UNSPEC_STACK_CHECK): Define.
12836 (UNSPECV_SPLIT_STACK_RETURN): Define.
12837 (split_stack_prologue, load_split_stack_limit,
12838 load_split_stack_limit_di, load_split_stack_limit_si,
12839 split_stack_return, split_stack_space_check): New expands and insns.
12840 * gcc/config/rs6000/rs6000-protos.h
12841 (rs6000_expand_split_stack_prologue): Declare.
12842 (rs6000_split_stack_space_check): Declare.
12843
12844 2015-05-20 Alan Modra <amodra@gmail.com>
12845
12846 * config/rs6000/rs6000.c (struct rs6000_stack): Correct comments.
12847 (direct_return): Test vrsave_size rather than vrsave_mask.
12848 (rs6000_emit_prologue): Likewise. Remove redundant altivec tests.
12849 (rs6000_emit_epilogue): Likewise.
12850
12851 2015-05-20 Alan Modra <amodra@gmail.com>
12852
12853 * config/rs6000/rs6000.c (rs6000_stack_info): Don't zero offsets
12854 when not saving registers.
12855 (debug_stack_info): Adjust to omit printing unused offsets,
12856 as before.
12857 (rs6000_emit_epilogue): Adjust use_backchain_to_restore_sp
12858 expression.
12859
12860 2015-05-19 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
12861
12862 PR c++/65835
12863 * config/i386/winnt.c (struct wrapped_symbol_hasher): Change
12864 value_type to const char *.
12865
12866 2015-05-19 Sandra Loosemore <sandra@codesourcery.com>
12867
12868 * config.gcc [powerpc*-*-linux*]: Allow --enable-targets=all
12869 to build a biarch toolchain again.
12870
12871 2015-05-19 Jan Hubicka <hubicka@ucw.cz>
12872
12873 * ipa-devirt.c (type_in_anonymous_namespace_p): Return true
12874 or implicit declarations.
12875 (odr_type_p): Check that TYPE_NAME is TYPE_DECL before looking
12876 into it.
12877 (get_odr_type): Check type has linkage before adding bases.
12878 (register_odr_type): Check that type has linkage before adding it.
12879 (type_known_to_have_no_deriavations_p): Rename to ..
12880 (type_known_to_have_no_derivations_p): This one.
12881 * ipa-utils.h (type_known_to_have_no_deriavations_p): Rename to ..
12882 (type_known_to_have_no_derivations_p): This one.
12883 * ipa-polymorphic-call.c
12884 (ipa_polymorphic_call_context::restrict_to_inner_type): Check that
12885 type has linkage.
12886
12887 2015-05-19 Eric Botcazou <ebotcazou@adacore.com>
12888
12889 * stor-layout.c (finalize_type_size): Use AGGREGATE_TYPE_P.
12890 (layout_type): Use RECORD_OR_UNION_TYPE_P.
12891
12892 2015-05-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
12893
12894 * config/s390/s390.c (s390_vector_bool_type_p): New function.
12895 (s390_invalid_binary_op): New function.
12896 (TARGET_INVALID_BINARY_OP): Define macro.
12897
12898 2015-05-19 David Sherwood <david.sherwood@arm.com>
12899
12900 * loop-invariant.c (create_new_invariant): Don't calculate address cost
12901 if mode is not a scalar integer.
12902 (get_inv_cost): Increase computational cost for unused invariants.
12903
12904 2015-05-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
12905
12906 * config.gcc: Add vecintrin.h to extra_headers. Add s390-c.o to
12907 c_target_objs and cxx_target_objs. Add t-s390 to tmake_file.
12908 * config/s390/s390-builtin-types.def: New file.
12909 * config/s390/s390-builtins.def: New file.
12910 * config/s390/s390-builtins.h: New file.
12911 * config/s390/s390-c.c: New file.
12912 * config/s390/s390-modes.def: Add modes CCVEQANY, CCVH,
12913 CCVHANY, CCVHU, CCVHUANY, CCVFHANY, CCVFHEANY.
12914 * config/s390/s390-protos.h (s390_expand_vec_compare_cc)
12915 (s390_cpu_cpp_builtins, s390_register_target_pragmas): Add
12916 prototypes.
12917 * config/s390/s390.c (s390-builtins.h, s390-builtins.def):
12918 Include.
12919 (flags_builtin, flags_overloaded_builtin_var, s390_builtin_types)
12920 (s390_builtin_fn_types, s390_builtin_decls, code_for_builtin): New
12921 variable definitions.
12922 (s390_const_operand_ok): New function.
12923 (s390_expand_builtin): Rewrite.
12924 (s390_init_builtins): New function.
12925 (s390_handle_vectorbool_attribute): New function.
12926 (s390_attribute_table): Add s390_vector_bool attribute.
12927 (s390_match_ccmode_set): Handle new cc modes CCVH, CCVHU.
12928 (s390_branch_condition_mask): Generate masks for new modes.
12929 (s390_expand_vec_compare_cc): New function.
12930 (s390_mangle_type): Add mangling for vector bool types.
12931 (enum s390_builtin): Remove.
12932 (s390_atomic_assign_expand_fenv): Rename constants for sfpc and
12933 efpc builtins.
12934 * config/s390/s390.h (TARGET_CPU_CPP_BUILTINS): Call
12935 s390_cpu_cpp_builtins.
12936 (REGISTER_TARGET_PRAGMAS): New macro.
12937 * config/s390/s390.md: Define more UNSPEC_VEC_* constants.
12938 (insn_cmp mode attribute): Add new CC modes.
12939 (s390_sfpc, s390_efpc): Rename patterns to sfpc and efpc.
12940 (lcbb): New pattern definition.
12941 * config/s390/s390intrin.h: Include vecintrin.h.
12942 * config/s390/t-s390: New file.
12943 * config/s390/vecintrin.h: New file.
12944 * config/s390/vector.md: Include vx-builtins.md.
12945 * config/s390/vx-builtins.md: New file.S/390 zvector builtin
12946 support.
12947
12948 2015-05-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
12949
12950 * config/s390/s390-modes.def: Add new modes CCVEQ, CCVFH, and
12951 CCVFHE.
12952 * config/s390/s390.c (s390_match_ccmode_set): Handle new modes.
12953 (s390_select_ccmode): Likewise.
12954 (s390_canonicalize_comparison): Swap operands if necessary.
12955 (s390_expand_vec_compare_scalar): Expand DFmode compare using
12956 single element vector instructions.
12957 (s390_emit_compare): Call s390_expand_vec_compare_scalar.
12958 (s390_branch_condition_mask): Generate CC masks for the new modes.
12959 * config/s390/s390.md (v0, vf, vd): New mode attributes.
12960 (VFCMP, asm_fcmp, insn_cmp): New mode iterator and attributes.
12961 (*vec_cmp<insn_cmp>df_cconly, *fixuns_truncdfdi2_z13)
12962 (*fix_trunc<BFP:mode><GPR:mode>2_bfp, *floatunsdidf2_z13)
12963 (*floatuns<GPR:mode><FP:mode>2, *extendsfdf2_z13)
12964 (*extend<DSF:mode><BFP:mode>2): New insn definition.
12965 (fix_trunc<BFP:mode><GPR:mode>2_bfp, loatuns<GPR:mode><FP:mode>2)
12966 (extend<DSF:mode><BFP:mode>2): Turn into expander.
12967 (floatdi<mode>2, truncdfsf2, add<mode>3, sub<mode>3, mul<mode>3)
12968 (div<mode>3, *neg<mode>2, *abs<mode>2, *negabs<mode>2)
12969 (sqrt<mode>2): Add vector instruction.
12970
12971 2015-05-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
12972
12973 * config/s390/constraints.md (j00, jm1, jxx, jyy, v): New
12974 constraints.
12975 * config/s390/predicates.md (const0_operand, constm1_operand)
12976 (constable_operand): Accept vector operands.
12977 * config/s390/s390-modes.def: Add supported vector modes.
12978 * config/s390/s390-protos.h (s390_cannot_change_mode_class)
12979 (s390_function_arg_vector, s390_contiguous_bitmask_vector_p)
12980 (s390_bytemask_vector_p, s390_expand_vec_strlen)
12981 (s390_expand_vec_compare, s390_expand_vcond)
12982 (s390_expand_vec_init): Add prototypes.
12983 * config/s390/s390.c (VEC_ARG_NUM_REG): New macro.
12984 (s390_vector_mode_supported_p): New function.
12985 (s390_contiguous_bitmask_p): Mask out the irrelevant bits.
12986 (s390_contiguous_bitmask_vector_p): New function.
12987 (s390_bytemask_vector_p): New function.
12988 (s390_split_ok_p): Vector regs don't work either.
12989 (regclass_map): Add VEC_REGS.
12990 (s390_legitimate_constant_p): Handle vector constants.
12991 (s390_cannot_force_const_mem): Handle CONST_VECTOR.
12992 (legitimate_reload_vector_constant_p): New function.
12993 (s390_preferred_reload_class): Handle CONST_VECTOR.
12994 (s390_reload_symref_address): Likewise.
12995 (s390_secondary_reload): Vector memory instructions only support
12996 short displacements. Rename reload*_nonoffmem* to reload*_la*.
12997 (s390_emit_ccraw_jump): New function.
12998 (s390_expand_vec_strlen): New function.
12999 (s390_expand_vec_compare): New function.
13000 (s390_expand_vcond): New function.
13001 (s390_expand_vec_init): New function.
13002 (s390_dwarf_frame_reg_mode): New function.
13003 (print_operand): Handle addresses with 'O' and 'R' constraints.
13004 (NR_C_MODES, constant_modes): Add vector modes.
13005 (s390_output_pool_entry): Handle vector constants.
13006 (s390_hard_regno_mode_ok): Handle vector registers.
13007 (s390_class_max_nregs): Likewise.
13008 (s390_cannot_change_mode_class): New function.
13009 (s390_invalid_arg_for_unprototyped_fn): New function.
13010 (s390_function_arg_vector): New function.
13011 (s390_function_arg_float): Remove size variable.
13012 (s390_pass_by_reference): Handle vector arguments.
13013 (s390_function_arg_advance): Likewise.
13014 (s390_function_arg): Likewise.
13015 (s390_return_in_memory): Vector values are returned in a VR if
13016 possible.
13017 (s390_function_and_libcall_value): Handle vector arguments.
13018 (s390_gimplify_va_arg): Likewise.
13019 (s390_call_saved_register_used): Consider the arguments named.
13020 (s390_conditional_register_usage): Disable v16-v31 for non-vec
13021 targets.
13022 (s390_preferred_simd_mode): New function.
13023 (s390_support_vector_misalignment): New function.
13024 (s390_vector_alignment): New function.
13025 (TARGET_STRICT_ARGUMENT_NAMING, TARGET_DWARF_FRAME_REG_MODE)
13026 (TARGET_VECTOR_MODE_SUPPORTED_P)
13027 (TARGET_INVALID_ARG_FOR_UNPROTOTYPED_FN)
13028 (TARGET_VECTORIZE_PREFERRED_SIMD_MODE)
13029 (TARGET_VECTORIZE_SUPPORT_VECTOR_MISALIGNMENT)
13030 (TARGET_VECTOR_ALIGNMENT): Define target macro.
13031 * config/s390/s390.h (FUNCTION_ARG_PADDING): Define macro.
13032 (FIRST_PSEUDO_REGISTER): Increase value.
13033 (VECTOR_NOFP_REGNO_P, VECTOR_REGNO_P, VECTOR_NOFP_REG_P)
13034 (VECTOR_REG_P): Define macros.
13035 (FIXED_REGISTERS, CALL_USED_REGISTERS)
13036 (CALL_REALLY_USED_REGISTERS, REG_ALLOC_ORDER)
13037 (HARD_REGNO_CALL_PART_CLOBBERED, REG_CLASS_NAMES)
13038 (FUNCTION_ARG_REGNO_P, FUNCTION_VALUE_REGNO_P, REGISTER_NAMES):
13039 Add vector registers.
13040 (CANNOT_CHANGE_MODE_CLASS): Call C function.
13041 (enum reg_class): Add VEC_REGS, ADDR_VEC_REGS, GENERAL_VEC_REGS.
13042 (SECONDARY_MEMORY_NEEDED): Allow SF<->SI mode moves without
13043 memory.
13044 (DBX_REGISTER_NUMBER, FIRST_VEC_ARG_REGNO, LAST_VEC_ARG_REGNO)
13045 (SHORT_DISP_IN_RANGE, VECTOR_STORE_FLAG_VALUE): Define macro.
13046 * config/s390/s390.md (UNSPEC_VEC_*): New constants.
13047 (VR*_REGNUM): New constants.
13048 (ALL): New mode iterator.
13049 (INTALL): Remove mode iterator.
13050 Include vector.md.
13051 (movti): Implement TImode moves for VRs.
13052 Disable TImode splitter for VR targets.
13053 Implement splitting TImode GPR<->VR moves.
13054 (reload*_tomem_z10, reload*_toreg_z10): Replace INTALL with ALL.
13055 (reload<mode>_nonoffmem_in, reload<mode>_nonoffmem_out): Rename to
13056 reload<mode>_la_in, reload<mode>_la_out.
13057 (*movdi_64, *movsi_zarch, *movhi, *movqi, *mov<mode>_64dfp)
13058 (*mov<mode>_64, *mov<mode>_31): Add vector instructions.
13059 (TD/TF mode splitter): Enable for GPRs only (formerly !FP).
13060 (mov<mode> SF SD): Prefer lder, lde for loading.
13061 Add lrl and strl instructions.
13062 Add vector instructions.
13063 (strlen<mode>): Rename old strlen<mode> to strlen_srst<mode>.
13064 Call s390_expand_vec_strlen on z13.
13065 (*cc_to_int): Change predicate to nonimmediate_operand.
13066 (addti3): Rename to *addti3. New expander.
13067 (subti3): Rename to *subti3. New expander.
13068 * config/s390/vector.md: New file.
13069
13070 2015-05-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
13071
13072 * common/config/s390/s390-common.c (processor_flags_table): Add
13073 z13.
13074 * config.gcc: Add z13.
13075 * config/s390/s390-opts.h (enum processor_type): Add
13076 PROCESSOR_2964_Z13.
13077 * config/s390/s390.c (s390_adjust_priority): Check for
13078 PROCESSOR_2964_Z13.
13079 (s390_reorg): Likewise.
13080 (s390_sched_reorder): Likewise.
13081 (s390_sched_variable_issue): Likewise.
13082 (s390_loop_unroll_adjust): Likewise.
13083 (s390_option_override): Likewise. Default to -mvx when available.
13084 * config/s390/s390.h (enum processor_flags): Add PF_Z13 and PF_VX.
13085 (TARGET_CPU_Z13, TARGET_CPU_VX, TARGET_Z13, TARGET_VX)
13086 (TARGET_VX_ABI): Define macros.
13087 macros.
13088 (TARGET_DEFAULT): Add MASK_OPT_VX.
13089 * config/s390/s390.md ("cpu" attribute): Add z13.
13090 ("cpu_facility" attribute): Add vec.
13091 * config/s390/s390.opt (processor_type): Add z13.
13092 (mvx): New options.
13093 * doc/invoke.texi: Add z13 option for -march.
13094
13095 2015-05-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
13096
13097 * config/s390/predicates.md (shift_count_or_setmem_operand): Add
13098 mode check to make sure that only scalar integer values are
13099 accepted.
13100
13101 2015-05-19 Jan Hubicka <hubicka@ucw.cz>
13102
13103 * tree.c (verify_type_variant): Fix #undef.
13104 (gimple_canonical_types_compatible_p): Move here from lto.c
13105 (verify_type): Verify TYPE_CANONICAL compatibility.
13106 * tree.h (gimple_canonical_types_compatible_p): Declare.
13107
13108 2015-05-19 Jakub Jelinek <jakub@redhat.com>
13109
13110 PR middle-end/66199
13111 * tree.h (OMP_TEAMS_COMBINED): Define.
13112 * gimplify.c (enum gimplify_omp_var_data): Add
13113 GOVD_LINEAR_LASTPRIVATE_NO_OUTER.
13114 (enum omp_region_type): Add ORT_COMBINED_TEAMS.
13115 (omp_notice_variable): Accept both ORT_TEAMS
13116 and ORT_COMBINED_TEAMS. Don't recurse if
13117 GOVD_LINEAR_LASTPRIVATE_NO_OUTER is set and either
13118 GOVD_LINEAR is set, or GOVD_LASTPRIVATE without
13119 GOVD_FIRSTPRIVATE.
13120 (omp_no_lastprivate): New function.
13121 (gimplify_scan_omp_clauses): For OMP_CLAUSE_LASTPRIVATE
13122 and OMP_CLAUSE_LINEAR, if omp_no_lastprivate, don't
13123 notice_outer and set appropriate bits, otherwise make
13124 sure default(none) combined constructs won't complain.
13125 (gimplify_adjust_omp_clauses): Remove OMP_CLAUSE_LINEAR
13126 outer special casing, for OMP_CLAUSE_LASTPRIVATE if
13127 omp_no_lastprivate either remove the clause or turn it
13128 into OMP_CLAUSE_PRIVATE.
13129 (gimplify_omp_for): Fix up handling of implicit
13130 lastprivate or linear iterators.
13131 (gimplify_omp_workshare): For OMP_TEAMS_COMBINED use
13132 ORT_COMBINED_TEAMS.
13133 * omp-low.c (lower_omp_for_lastprivate): For combined
13134 for simd use fd.loop.n2 from the for rather than simd.
13135
13136 2015-05-19 Richard Sandiford <richard.sandiford@arm.com>
13137
13138 * config/cris/cris.c (cris_expand_prologue): Use gen_raw_REG
13139 instead of gen_rtx_raw_REG.
13140 (cris_expand_epilogue): Likewise.
13141 * config/microblaze/microblaze.c (microblaze_classify_address):
13142 Likewise.
13143 * config/sparc/sparc.md: Likewise.
13144
13145 2015-05-19 Uros Bizjak <ubizjak@gmail.com>
13146
13147 * config/alpha/alpha.c (alpha_legitimize_reload_address)
13148 (alpha_preferred_reload_class, alpha_legitimate_constant_p): Use
13149 CONST_INT_P, CONST_SCALAR_INT_P and CONST_DOUBLE_P predicates.
13150 (alpha_split_reload_pair) <case CONST_INT, case CONST_WIDE_INT>:
13151 Use CASE_CONST_SCALAR_INT.
13152 (print_operand) <case 'M'>: Use mode_width_operand to check the
13153 value of the constant.
13154 * config/alpha/alpha.md (movti): Use CONST_SCALAR_INT_P predicate.
13155 * config/alpha/predicates.md (input_operand): Use general_operand
13156 instead of match_code as operand check.
13157 (symbolic_operand): Use match_code with subexpression digits.
13158 * config/alpha/constraints.md (Q): Ditto.
13159
13160 2015-05-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
13161
13162 * optabs.c (expand_vec_perm): Don't re-use SEL as target operand.
13163
13164 2015-05-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
13165
13166 * config/s390/s390.c (s390_secondary_reload): Fix check for
13167 load/store relative.
13168
13169 2015-05-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
13170
13171 * recog.h: Increase MAX_RECOG_ALTERNATIVES. Change type of
13172 alternative_mask to uint64_t.
13173
13174 2015-05-19 Jakub Jelinek <jakub@redhat.com>
13175
13176 PR tree-optimization/66187
13177 * match.pd ((bit_and (plus/minus (convert @0) (convert @1)) mask)):
13178 Pass TYPE_SIGN to tree_int_cst_min_precision. If
13179 !TYPE_OVERFLOW_WRAPS, ensure @4 is non-negative.
13180
13181 2015-05-19 David Malcolm <dmalcolm@redhat.com>
13182
13183 * diagnostic.c (diagnostic_report_current_module): Strengthen
13184 local "new_map" from const line_map * to
13185 const line_map_ordinary *.
13186 * genmatch.c (error_cb): Likewise for local "map".
13187 (output_line_directive): Likewise for local "map".
13188 * input.c (expand_location_1): Likewise for local "map".
13189 Pass NULL rather than &map to
13190 linemap_unwind_to_first_non_reserved_loc, since the value is never
13191 read from there, and the value written back not read from here.
13192 (is_location_from_builtin_token): Strengthen local "map" from
13193 const line_map * to const line_map_ordinary *.
13194 (dump_location_info): Strengthen locals "map" from
13195 line_map *, one to const line_map_ordinary *, the other
13196 to const line_map_macro *.
13197 * tree-diagnostic.c (loc_map_pair): Strengthen field "map" from
13198 const line_map * to const line_map_macro *.
13199 (maybe_unwind_expanded_macro_loc): Add a call to
13200 linemap_check_macro when writing to the "map" field of the
13201 loc_map_pair.
13202 Introduce local const line_map_ordinary * "ord_map", using it in
13203 place of "map" in the part of the function where we know we have
13204 an ordinary map. Strengthen local "m" from const line_map * to
13205 const line_map_ordinary *.
13206
13207 2015-05-19 Nick Clifton <nickc@redhat.com>
13208
13209 PR target/66156
13210 * config/msp430/msp430.md (zero_extendhisi2): Add support for
13211 separate source and destination registers.
13212
13213 2015-05-19 Richard Biener <rguenther@suse.de>
13214
13215 PR tree-optimization/66165
13216 * tree-vect-slp.c (vect_supported_load_permutation_p): Add guard
13217 for no load permutation.
13218
13219 PR tree-optimization/66185
13220 * tree-vect-slp.c (vect_build_slp_tree): Properly roll back
13221 when building the SLP node from scalars.
13222
13223 2015-05-19 Eric Botcazou <ebotcazou@adacore.com>
13224 Tristan Gingold <gingold@adacore.com>
13225
13226 * insn-notes.def (UPDATE_SJLJ_CONTEXT): New note.
13227 * builtins.c (expand_builtin_update_setjmp_buf): Make global.
13228 (expand_stack_restore): Call record_new_stack_level.
13229 (expand_stack_save): Do not call do_pending_stack_adjust.
13230 * builtins.h (expand_builtin_update_setjmp_buf): Declare.
13231 * calls.c (expand_call): Call record_new_stack_level for alloca.
13232 * except.c (sjlj_mark_call_sites): Expand builtin_update_setjmp_buf
13233 wherever a NOTE_INSN_UPDATE_SJLJ_CONTEXT note is present.
13234 (update_sjlj_context): New global function.
13235 * except.h (update_sjlj_context): Declare.
13236 * explow.c (record_new_stack_level): New global function.
13237 (allocate_dynamic_stack_space): Call record_new_stack_level.
13238 * explow.h (record_new_stack_level): Declare.
13239 * final.c (final_scan_insn): Deal with NOTE_INSN_UPDATE_SJLJ_CONTEXT.
13240 * cfgrtl.c (duplicate_insn_chain): Likewise.
13241
13242 2015-05-19 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
13243
13244 * calls.c: Always define STACK_GROWS_DOWNWARD as 0 or 1.
13245 (mem_overlaps_already_clobbered_arg_p): Rewrite ifdef
13246 STACK_GROWS_DOWNWARD as normal if.
13247 (expand_call): Likewise.
13248
13249 2015-05-19 Oleg Endo <olegendo@gcc.gnu.org>
13250
13251 PR target/54236
13252 * config/sh/sh.md (*round_int_even): New insn_and_split and
13253 accompanying new unnamed split.
13254
13255 2015-05-19 Richard Sandiford <richard.sandiford@arm.com>
13256
13257 * bitmap.c (bitmap_set_range): Handle count==1 specially.
13258 (bitmap_clear_range): Likewise.
13259 * cfgcleanup.c (mark_effect): Use bitmap_clear_range and
13260 bitmap_set_range unconditionally.
13261 * df-problems.c (df_simulate_one_insn_forwards): Likewise.
13262 * df-scan.c (df_mark_reg): Likewise.
13263 * haifa-sched.c (setup_ref_regs): Likewise.
13264 * sched-rgn.c (update_live_1): Likewise.
13265
13266 2015-05-19 Richard Sandiford <richard.sandiford@arm.com>
13267
13268 * regs.h (END_HARD_REGNO): Delete.
13269 (END_REGNO): Move to...
13270 * rtl.h: ...here.
13271 * bt-load.c (note_btr_set): Use END_REGNO instead of END_HARD_REGNO.
13272 * caller-save.c (mark_set_regs): Likewise.
13273 * combine.c (move_deaths, distribute_notes): Likewise.
13274 * cse.c (invalidate, invalidate_for_call): Likewise.
13275 * df-scan.c (df_ref_record): Likewise.
13276 * postreload-gcse.c (reg_changed_after_insn_p): Likewise.
13277 (record_last_reg_set_info): Likewise.
13278 * reg-stack.c (convert_regs_exit): Likewise.
13279 * reload.c (reg_overlap_mentioned_for_reload_p): Likewise.
13280 * resource.c (update_live_status): Likewise.
13281 * rtlanal.c (find_reg_fusage, find_regno_fusage): Likewise.
13282
13283 2015-05-19 Richard Sandiford <richard.sandiford@arm.com>
13284
13285 * rtl.h (reg_info): Add an nregs field.
13286 (REG_NREGS): Use it.
13287 (SET_REGNO_RAW): Delete.
13288 (set_regno_raw): New function.
13289 * regs.h (END_HARD_REGNO): Make equivalent to END_REGNO.
13290 (END_REGNO): Redefine in terms of REG_NREGS.
13291 * read-rtl.c (read_rtx_code): Call set_regno_raw instead of
13292 SET_REGNO_RAW.
13293 * emit-rtl.c (set_mode_and_regno): Likewise.
13294 * df-scan.c (df_ref_change_reg_with_loc): Use set_mode_and_regno
13295 instead of SET_REGNO_RAW.
13296
13297 2015-05-19 Richard Sandiford <richard.sandiford@arm.com>
13298
13299 * rtl.h (PUT_MODE_RAW): New macro.
13300 (PUT_REG_NOTE_KIND): Use it.
13301 (set_mode_and_regno): Declare.
13302 (gen_raw_REG): Change regno to "unsigned int".
13303 (gen_rtx_REG): Change "unsigned" to "unsigned int".
13304 (PUT_MODE): Forward to PUT_MODE_RAW for generators, otherwise
13305 use set_mode_and_regno to change the mode of registers.
13306 * gengenrtl.c (gendef): Use PUT_MODE_RAW.
13307 * emit-rtl.c (set_mode_and_regno): New function.
13308 (gen_raw_REG): Change regno to unsigned int. Use set_mode_and_regno.
13309 * caller-save.c (reg_save_code): Use set_mode_and_regno.
13310 * expr.c (init_expr_target): Likewise.
13311 * ira.c (setup_prohibited_mode_move_regs): Likewise.
13312 * postreload.c (reload_cse_simplify_operands): Likewise.
13313
13314 2015-05-19 Richard Sandiford <richard.sandiford@arm.com>
13315
13316 * caller-save.c (init_caller_save): Use word_mode and
13317 FIRST_PSEUDO_REGISTER when creating temporary rtxes.
13318 * expr.c (init_expr_target): Likewise.
13319 * ira.c (setup_prohibited_mode_move_regs): Likewise.
13320 * postreload.c (reload_cse_regs_1): Likewise.
13321
13322 2015-05-19 Richard Sandiford <richard.sandiford@arm.com>
13323
13324 * rtl.def (REG): Change format to "r".
13325 * rtl.h (rtunion): Remove rt_reg.
13326 (reg_info): New structure.
13327 (rtx_def): Add reg field to main union.
13328 (X0REGATTR): Delete.
13329 (REG_CHECK): New macro.
13330 (SET_REGNO_RAW, rhs_regno, REG_ATTRS): Use it.
13331 * rtl.c (rtx_format): Document "r".
13332 (rtx_code_size): Handle REG specially.
13333 * gengenrtl.c (special_format): Return true for formats
13334 that include 'r'.
13335 * gengtype.c (adjust_field_rtx_def): Handle 'r' fields.
13336 Deal with REG_ATTRS after the field loop.
13337 * emit-rtl.c (gen_raw_REG): Call rtx_alloc_stat directly.
13338 * expmed.c (init_expmed): Call gen_raw_REG instead of
13339 gen_rtx_raw_REG.
13340 * expr.c (init_expr_target): Likewise.
13341 * regcprop.c (maybe_mode_change): Likewise.
13342 * varasm.c (make_decl_rtl): Likewise.
13343 * final.c (leaf_renumber_regs_insn): Return early after
13344 handling REGs.
13345 * genemit.c (gen_exp): Handle 'r' fields.
13346 * genpeep.c (match_rtx): Likewise.
13347 * gensupport.c (subst_pattern_match): Likewise.
13348 (get_alternatives_number, collect_insn_data, alter_predicate_for_insn)
13349 (alter_constraints, subst_dup): Likewise.
13350 * read-rtl.c (read_rtx_code): Likewise.
13351 * print-rtl.c (print_rtx): Likewise.
13352 * genrecog.c (find_operand, find_matching_operand): Likewise.
13353 (validate_pattern, match_pattern_2): Likewise.
13354 (parameter::UINT, rtx_test::REGNO_FIELD): New enum values.
13355 (rtx_test::regno_field): New function.
13356 (operator ==, safe_to_hoist_p, transition_parameter_type)
13357 (parameter_type_string, print_parameter_value)
13358 (print_nonbool_test, print_test): Handle new enum values.
13359 * cselib.c (rtx_equal_for_cselib_1): Handle REG specially.
13360 * lra-constraints.c (operands_match_p): Likewise.
13361
13362 2015-05-19 Richard Sandiford <richard.sandiford@arm.com>
13363
13364 * df.h (df_ref_change_reg_with_loc): Remove old_regno parameter.
13365 Change type of new_regno to unsigned int.
13366 * df-scan.c (df_ref_change_reg_with_loc_1): Change type of
13367 new_regno to unsigned int.
13368 (df_ref_change_reg_with_loc): Remove old_regno parameter.
13369 Change type of new_regno to unsigned int. Use SET_REGNO_RAW.
13370 * rtl.h (SET_REGNO): Update call to df_ref_change_reg_with_loc.
13371 (SET_REGNO_RAW): Add space after ",".
13372
13373 2015-05-19 Richard Sandiford <richard.sandiford@arm.com>
13374
13375 * rtl.h (REG_NREGS): New macro
13376 * alias.c (record_set): Use it.
13377 * cfgcleanup.c (mark_effect): Likewise.
13378 * combine.c (likely_spilled_retval_1): Likewise.
13379 (likely_spilled_retval_p, can_change_dest_mode): Likewise.
13380 (move_deaths, distribute_notes): Likewise.
13381 * cselib.c (cselib_record_set): Likewise.
13382 * df-problems.c (df_simulate_one_insn_forwards): Likewise.
13383 * df-scan.c (df_mark_reg): Likewise.
13384 * dse.c (look_for_hardregs): Likewise.
13385 * dwarf2out.c (reg_loc_descriptor): Likewise.
13386 (multiple_reg_loc_descriptor): Likewise.
13387 * expr.c (write_complex_part, read_complex_part): Likewise.
13388 (emit_move_complex): Likewise.
13389 * haifa-sched.c (setup_ref_regs): Likewise.
13390 * ira-lives.c (mark_hard_reg_live): Likewise.
13391 * lra.c (lra_set_insn_recog_data): Likewise.
13392 * mode-switching.c (create_pre_exit): Likewise.
13393 * postreload.c (reload_combine_recognize_const_pattern): Likewise.
13394 (reload_combine_recognize_pattern): Likewise.
13395 (reload_combine_note_use, move2add_record_mode): Likewise.
13396 (reload_cse_move2add): Likewise.
13397 * reg-stack.c (subst_stack_regs_pat): Likewise.
13398 * regcprop.c (kill_value, copy_value): Likewise.
13399 (copyprop_hardreg_forward_1): Likewise.
13400 * regrename.c (verify_reg_in_set, scan_rtx_reg): Likewise.
13401 (build_def_use): Likewise.
13402 * sched-deps.c (mark_insn_reg_birth, mark_reg_death): Likewise.
13403 (deps_analyze_insn): Likewise.
13404 * sched-rgn.c (check_live_1, update_live_1): Likewise.
13405 * sel-sched.c (count_occurrences_equiv): Likewise.
13406 * valtrack.c (dead_debug_insert_temp): Likewise.
13407
13408 2015-05-19 Richard Sandiford <richard.sandiford@arm.com>
13409
13410 * cfgcleanup.c (mentions_nonequal_regs): Use END_REGNO.
13411 * dse.c (note_add_store): Likewise.
13412 * ira-lives.c (mark_hard_reg_dead): Likewise.
13413 * loop-invariant.c (mark_reg_store): Likewise.
13414 (mark_reg_death): Likewise.
13415 * postreload.c (reload_combine): Likewise.
13416 (reload_combine_note_store): Likewise.
13417 (reload_combine_note_use): Likewise.
13418 * recog.c (peep2_reg_dead_p): Likewise.
13419
13420 2015-05-19 Alan Modra <amodra@gmail.com>
13421
13422 * config/rs6000/predicates.md (gpc_reg_operand): Don't allow all
13423 hard registers numbered greater or equal to ARG_POINTER_REGNUM.
13424 (reg_or_neg_short_operand, fix_trunc_dest_operand): Delete
13425 unused predicates.
13426 * config/rs6000/altivec.md (save_vregs_*, restore_vregs_*):
13427 Use altivec_register_operand. Make insn predicate TARGET_ALTIVEC.
13428 * config/rs6000/rs6000.md (extzvdi_internal2): Use cc_reg_operand.
13429 * config/rs6000/vsx.md (vsx_float<VSi><mode>2): Expand comment.
13430
13431 2015-05-19 Sameera Deshpande <Sameera.Deshpande@imgtec.com>
13432
13433 * config/mips/mips.md (JOIN_MODE): New mode iterator.
13434 (join2_load_Store<JOIN_MODE:mode>): New pattern.
13435 (join2_loadhi): Likewise.
13436 (define_peehole2): Add peephole2 patterns to join 2 HI/SI/SF/DF-mode
13437 load-load and store-stores.
13438 * config/mips/mips.opt (mload-store-pairs): New option.
13439 (TARGET_LOAD_STORE_PAIRS): New macro.
13440 * config/mips/mips.h (ENABLE_LD_ST_PAIRS): Likewise.
13441 * config/mips/mips-protos.h (mips_load_store_bonding_p): New prototype.
13442 * config/mips/mips.c (mips_load_store_bonding_p): New function.
13443
13444 2015-05-19 Mikhail Maltsev <maltsevm@gmail.com>
13445
13446 * bb-reorder.c (fix_up_fall_thru_edges): Use std::swap instead of
13447 explicit swaps.
13448 * dojump.c (do_compare_rtx_and_jump): Likewise.
13449 * expmed.c (emit_store_flag_1): Likewise.
13450 * fibonacci_heap.h (fibonacci_heap::union_with): Likewise.
13451 * final.c (sprint_ul): Use std::reverse for reversing a string.
13452 * fold-const.c (extract_muldiv_1): Use std::swap.
13453 * genmodes.c (emit_mode_int_n): Likewise.
13454 * ifcvt.c (dead_or_predicable): Likewise.
13455 * ira-build.c (ira_merge_live_ranges): Likewise.
13456 (swap_allocno_copy_ends_if_necessary): Likewise.
13457 * ira.c (ira_setup_alts): Likewise.
13458 * loop-iv.c (iv_analyze_expr): Likewise.
13459 (implies_p): Likewise.
13460 (canon_condition): Likewise.
13461 * lra-constraints.c (swap_operands): Likewise.
13462 * lra-lives.c (lra_merge_live_ranges): Likewise.
13463 * omega.c (swap): Remove.
13464 (bswap): Remove.
13465 (omega_unprotect_1): Use std::swap.
13466 (omega_solve_geq): Likewise.
13467 * optabs.c (expand_binop_directly): Likewise.
13468 (expand_binop): Likewise.
13469 (emit_conditional_move): Likewise.
13470 (emit_conditional_add): Likewise.
13471 * postreload.c (reload_cse_simplify_operands): Likewise.
13472 * reg-stack.c (emit_swap_insn): Likewise.
13473 (swap_to_top): Likewise.
13474 (compare_for_stack_reg): Likewise.
13475 (subst_asm_stack_regs): Likewise.
13476 * reload.c (find_reloads): Likewise.
13477 * reload1.c (gen_reload_chain_without_interm_reg_p): Likewise.
13478 * sel-sched.c (invoke_reorder_hooks): Likewise.
13479 (create_block_for_bookkeeping): Likewise.
13480 * tree-data-ref.c (lambda_matrix_row_exchange): Remove.
13481 (lambda_matrix_right_hermite): Use std::swap.
13482 * tree-ssa-coalesce.c (sort_coalesce_list): Likewise.
13483 * tree-ssa-ifcombine.c (ifcombine_ifandif): Likewise.
13484 * tree-ssa-loop-ivopts.c (iv_ca_delta_reverse): Likewise.
13485 * tree-ssa-math-opts.c (is_widening_mult_p): Likewise.
13486 * tree-ssa-phiopt.c (hoist_adjacent_loads): Likewise.
13487 * tree-ssa-reassoc.c (linearize_expr_tree): Likewise.
13488 * tree-ssa-threadedge.c (simplify_control_stmt_condition): Likewise.
13489 * tree-vrp.c (compare_ranges): Likewise.
13490 * var-tracking.c (add_with_sets): Likewise.
13491 (vt_find_locations): Likewise.
13492
13493 2015-05-18 Andreas Tobler <andreast@gcc.gnu.org>
13494
13495 * config/freebsd-spec.h (FBSD_STARTFILE_SPEC): Add the bits to build
13496 pie executables.
13497 (FBSD_ENDFILE_SPEC): Likewise.
13498 * config/i386/freebsd.h (STARTFILE_SPEC): Remove and use the one from
13499 config/freebsd-spec.h.
13500 (ENDFILE_SPEC): Likewise.
13501
13502 2015-05-18 Uros Bizjak <ubizjak@gmail.com>
13503 Richard Henderson <rth@redhat.com>
13504
13505 PR target/57032
13506 * config/alpha/constraints.md (Q): Rewrite as define_memory_constraint.
13507 Check for a memory location that is not a reference (using an AND)
13508 to an unaligned location here.
13509 * config/alpha/predicates.md (normal_memory_operand): Remove.
13510
13511 2015-05-18 Alex Velenko <Alex.Velenko@arm.com>
13512
13513 * config/arm/arm.md (andsi_not_shiftsi_si_scc): New pattern.
13514 (andsi_not_shiftsi_si_scc_no_reuse): New pattern.
13515
13516 2015-05-18 Robert Suchanek <robert.suchanek@imgtec.com>
13517
13518 * config/mips/mips.c (micromips_globals): New variable.
13519 (mips_set_compression_mode): Save and reinitialize target-dependent
13520 state for microMIPS.
13521
13522 2015-05-18 Martin Liska <mliska@suse.cz>
13523
13524 * dbgcnt.def: Add new counter.
13525 * ipa-icf.c (sem_item_optimizer::merge_classes): Use the counter.
13526
13527 2015-05-18 Martin Liska <mliska@suse.cz>
13528
13529 * dbgcnt.def: Sort counters.
13530 * opts.c (common_handle_option): Do not compile if
13531 -fdbg-cnt-list is enabled.
13532
13533 2015-05-18 Tom de Vries <tom@codesourcery.com>
13534
13535 * gimplify.c (gimplify_modify_expr): Remove do_deref handling.
13536 (gimplify_va_arg_expr): Remove do_deref handling. Remove adding of
13537 address operator to va_list operand.
13538 * tree-stdarg.c (expand_ifn_va_arg_1): Do deref of va_list operand
13539 unconditionally.
13540 * config/i386/i386.c (ix86_gimplify_va_arg): Remove deref on va_list
13541 operand.
13542 * config/rs6000/rs6000.c (rs6000_gimplify_va_arg): Same.
13543 * config/s390/s390.c (s390_gimplify_va_arg): Same.
13544 * config/spu/spu.c (spu_gimplify_va_arg_expr): Same.
13545
13546 2015-05-18 Tom de Vries <tom@codesourcery.com>
13547
13548 * tree-ssa-tail-merge.c: Fix whitespace.
13549
13550 2015-05-17 Jim Wilson <jim.wilson@linaro.org>
13551
13552 * doc/invoke.texi (ARM Options, mtune): Add generic-armv7-a,
13553 cortex-a17, and cortex-a17.cortex-a7.
13554
13555 2015-05-17 Oleg Endo <olegendo@gcc.gnu.org>
13556
13557 PR target/54236
13558 * config/sh/sh.md (*addc_2r_t): Use ashift instead of mult.
13559
13560 2015-05-17 Uros Bizjak <ubizjak@gmail.com>
13561
13562 PR target/66174
13563 * config/i386/i386.c (expand_vec_perm_blend): Enable HImode and
13564 QImode inner modes for TARGET_AVX512BW. Force mask operand
13565 to a register for AVX512F modes.
13566
13567 2015-05-16 Jan Hubicka <hubicka@ucw.cz>
13568
13569 * toplev.c (emit_debug_global_declarations): Do not output debug info
13570 when doing slim LTO objects.
13571
13572 2015-05-16 Jan Hubicka <hubicka@ucw.cz>
13573
13574 * ipa-utils.h (warn_types_mismatch, odr_or_derived_type_p,
13575 odr_types_equivalent_p): Declare.
13576 (odr_type_p): Use gcc_checking_assert.
13577 (type_in_anonymous_namespace_p) Declare.
13578 (type_with_linkage_p): Declare.
13579 * common.opt (Wlto-type-mismatch): New warning.
13580 * ipa-devirt.c (compound_type_base): New function.
13581 (odr_or_derived_type_p): New function.
13582 (odr_types_equivalent_p): New function.
13583 (add_type_duplicate): Simplify.
13584 (type_with_linkage_p): Add hack to prevent false positives on C types
13585 (type_in_anonymous_namespace_p): Likewise.
13586 * tree.c (need_assembler_name_p): Use type_with_linkage.
13587 * tree.h (type_in_anonymous_namespace_p): Remove.
13588 * doc/invoke.texi (-Wlto-type-mismatch): Document
13589
13590 2015-05-16 Jan Hubicka <hubicka@ucw.cz>
13591
13592 * tree.c (verify_type_variant): Verify tree_base and type_common flags.
13593 (verify_type): Verify STRING_FLAG.
13594
13595 2015-05-16 Manuel López-Ibáñez <manu@gcc.gnu.org>
13596
13597 PR fortran/44054
13598 * tree-pretty-print.c (percent_K_format): Replace locus pointer
13599 with accessor function.
13600 * tree-diagnostic.c (diagnostic_report_current_function): Use
13601 diagnostic_location function.
13602 (maybe_unwind_expanded_macro_loc): Likewise.
13603 (virt_loc_aware_diagnostic_finalizer): Likewise.
13604 (default_tree_printer): Replace locus pointer with accessor function.
13605 * diagnostic.c (diagnostic_initialize): Initialize caret_chars array.
13606 (diagnostic_set_info_translated): Initialize second location.
13607 (diagnostic_build_prefix): Use CARET_LINE_MARGIN.
13608 (diagnostic_show_locus): Handle two locations. Call
13609 diagnostic_print_caret_line.
13610 (diagnostic_print_caret_line): New.
13611 (default_diagnostic_starter): Use diagnostic_location function.
13612 (diagnostic_report_diagnostic): Use diagnostic_location function.
13613 (verbatim): Do not set text.locus.
13614 * diagnostic.h (struct diagnostic_info): Remove location field.
13615 (struct diagnostic_context): Make caret_chars an array of two.
13616 (diagnostic_location): New inline.
13617 (diagnostic_expand_location): Handle two locations.
13618 (diagnostic_same_line): New inline.
13619 (diagnostic_print_caret_line): Declare.
13620 (CARET_LINE_MARGIN): New constant.
13621 * pretty-print.c (pp_printf): Do not set text.locus.
13622 (pp_verbatim): Do not set text.locus.
13623 * pretty-print.h (MAX_LOCATIONS_PER_MESSAGE): New constant.
13624 (struct text_info): Replace locus pointer with locations
13625 array. Add accessor functions.
13626
13627 2015-05-16 Kugan Vivekanandarajah <kuganv@linaro.org>
13628 Zhenqiang Chen <zhenqiang.chen@linaro.org>
13629
13630 PR target/65768
13631 * config/arm/arm.h (DONT_EARLY_SPLIT_CONSTANT): New macro.
13632 * config/arm/arm.md (subsi3, andsi3, iorsi3, xorsi3, movsi): Keep some
13633 large constants in register instead of splitting them.
13634
13635 2015-05-16 Uros Bizjak <ubizjak@gmail.com>
13636
13637 PR target/66140
13638 * config/alpha/alpha.c (get_aligned_mem): Also look for reload
13639 replacements in memory addresses.
13640 (get_unaligned_address): Ditto.
13641
13642 2015-05-16 James Bowman <james.bowman@ftdichip.com>
13643
13644 * config/ft32/*: New files for FT32 port.
13645 * doc/install.texi: Add FT32 information.
13646 * doc/invoke.texi: Add FT32 information.
13647 * doc/md.texi: Add FT32 information.
13648 * doc/contrib.texi: Self added.
13649
13650 2015-05-15 Marc Glisse <marc.glisse@inria.fr>
13651
13652 PR tree-optimization/64454
13653 * match.pd ((X % Y) % Y, (X % Y) < Y): New patterns.
13654 (-1 - A -> ~A): Remove unnecessary condition.
13655
13656 2015-05-15 Gregor Richards <gregor.richards@uwaterloo.ca>
13657
13658 * config/i386/linux.h (MUSL_DYNAMIC_LINKER): Define.
13659 * config/i386/linux64.h (MUSL_DYNAMIC_LINKER32): Define.
13660 (MUSL_DYNAMIC_LINKER64, MUSL_DYNAMIC_LINKERX32): Define.
13661
13662 2015-05-15 Ilya Enkovich <ilya.enkovich@intel.com>
13663
13664 * ipa-chkp.h (chkp_wrap_function): New.
13665 * ipa-chkp.c (chkp_wrap_function): Remove 'static'.
13666 (chkp_wrap_function_name): New.
13667 (chkp_build_instrumented_fndecl): Use chkp_wrap_function_name
13668 to get wrapper name.
13669 * lto-cgraph.c: Include ipa-chkp.h.
13670 (input_cgraph_1): Avoid alias chain for wrappers.
13671
13672 2015-05-15 Ilya Enkovich <enkovich.gnu@gmail.com>
13673
13674 PR middle-end/66134
13675 * tree-chkp.c (chkp_get_orginal_bounds_for_abnormal_copy): New.
13676 (chkp_maybe_copy_and_register_bounds): Don't copy abnormal copy.
13677
13678 2015-05-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
13679
13680 * config/aarch64/aarch64.h (AARCH64_TUNE_SLOWMUL): Delete.
13681 (AARCH64_FL_SLOWMUL): Delete.
13682 (AARCH64_FL_CRC): Redefine to 1<<3.
13683 (AARCH64_FL_USE_FMA_STEERING_PASS): Redefine to 1<<4.
13684
13685 2015-05-15 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
13686
13687 * config/arm/arm.h (LOGICAL_OP_NON_SHORT_CIRCUIT): Add appropriate
13688 casting.
13689
13690 2015-05-15 Uros Bizjak <ubizjak@gmail.com>
13691
13692 * config/alpha/alpha.md (extendqidi2): Use general_operand
13693 instead of some_operand for operand[1] predicate.
13694 (extendhidi2): Ditto.
13695 (cbranchdi4): Use general_operand instead of some_operand
13696 for operand[1] and operands[2] predicates.
13697 (cstoredi4): Ditto.
13698 * config/alpha/predicates.md (some_operand): Remove unused predicate.
13699 (some_ni_operand): Ditto.
13700
13701 2015-05-15 Uros Bizjak <ubizjak@gmail.com>
13702
13703 * config/alpha/alpha.c (alpha_extract_integer): Do not handle
13704 CONST_WIDE_INT and CONST_DOUBLE. Assert CONST_INT_P (x).
13705 (alpha_legitimate_constant_p) <case CONST_WIDE_INT>: Check high and
13706 low part of the constant using alpha_emit_set_const_1.
13707 (alpha_expand_mov): Do not handle CONST_WIDE_INT and CONST_DOUBLE.
13708
13709 2015-05-14 Rohit Arul Raj <rohitrulraj@freescale.com>
13710
13711 * varasm.c (output_constant_pool_1): Pass down alignment from
13712 constant pool entry's descriptor to output_constant_pool_2.
13713 (output_object_block): Add comment prior to call to
13714 output_constant_pool_1.
13715
13716 2015-05-14 Vladimir Makarov <vmakarov@redhat.com>
13717
13718 PR rtl-optimization/65862
13719 * target.def (ira_change_pseudo_allocno_class): New hook.
13720 * targhooks.c (default_ira_change_pseudo_allocno_class): Default
13721 value of the hook.
13722 * targhooks.h (default_ira_change_pseudo_allocno_class): New extern.
13723 * doc/tm.texi.in (TARGET_IRA_CHANGE_PSEUDO_ALLOCNO_CLASS): Add the
13724 hook.
13725 * ira-costs.c (find_costs_and_classes): Call the hook and change
13726 classes when it is necessary.
13727 * doc/tm.texi: Update.
13728
13729 2015-05-14 Alexander Monakov <amonakov@ispras.ru>
13730
13731 * config/i386/i386.md (sibcall_memory): Check that register with
13732 callee address is not also used as one of the arguments, instead
13733 of checking that it is not live after the sibcall.
13734 (sibcall_pop_memory): Ditto.
13735 (sibcall_value_memory): Ditto.
13736 (sibcall_value_pop_memory): Ditto.
13737
13738 2015-05-14 Marc Glisse <marc.glisse@inria.fr>
13739
13740 * generic-match-head.c (types_match): Handle non-types.
13741 * gimple-match-head.c (types_match): Likewise.
13742 * match.pd: Remove unnecessary TREE_TYPE for types_match.
13743
13744 2015-05-14 Wilco Dijkstra <wdijkstr@arm.com>
13745
13746 * config/aarch64/aarch64.md (absdi2): Optimize abs expansion.
13747 (csneg3<mode>_insn): Enable expansion of pattern.
13748
13749 2015-05-14 Nick Clifton <nickc@redhat.com>
13750
13751 * config/rl78/rl78.c (rl78_select_section): Select the correct
13752 default section based upon the category of the decl.
13753
13754 2015-05-13 Segher Boessenkool <segher@kernel.crashing.org>
13755
13756 PR rtl-optimization/30967
13757 * config/rs6000/rs6000.c (rs6000_rtx_costs): Don't consider
13758 destination mode for the cost of scc patterns.
13759
13760 2015-05-13 Uros Bizjak <ubizjak@gmail.com>
13761
13762 * config/i386/i386.md (*mul<mode>3_1): Merge with *mulhi3_1
13763 using SWIM248 mode iterator.
13764 (*mulv<mode>4): Use x86_64_sext_operand for operand[2] constraint.
13765 (*mulvhi4): mark operand[1] as commutative. Use nonimmediate_operand
13766 for operand[2] constraint.
13767 (*mulv<mode>4_1): Merge with *mulvhi4_1 using SWI248 mode iterator.
13768
13769 2015-05-13 Jakub Jelinek <jakub@redhat.com>
13770
13771 PR middle-end/66133
13772 * omp-low.c (expand_omp_taskreg): For GIMPLE_OMP_TASK expansion,
13773 make sure it is never noreturn, even when the task body does not
13774 return.
13775 (lower_omp_taskreg): For GIMPLE_OMP_TASK, emit GIMPLE_OMP_CONTINUE
13776 right before GIMPLE_OMP_RETURN.
13777 (make_gimple_omp_edges): Accept GIMPLE_OMP_CONTINUE as ->cont
13778 for GIMPLE_OMP_TASK. For GIMPLE_OMP_RETURN corresponding to
13779 GIMPLE_OMP_TASK add an EDGE_ABNORMAL edge from entry to exit.
13780
13781 2015-05-13 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
13782
13783 * params.def (PARAM_MAX_POW_SQRT_DEPTH): New param.
13784 * tree-ssa-math-opts.c: Include params.h
13785 (pow_synth_sqrt_info): New struct.
13786 (representable_as_half_series_p): New function.
13787 (get_fn_chain): Likewise.
13788 (print_nested_fn): Likewise.
13789 (dump_fractional_sqrt_sequence): Likewise.
13790 (dump_integer_part): Likewise.
13791 (expand_pow_as_sqrts): Likewise.
13792 (gimple_expand_builtin_pow): Use above to attempt to expand
13793 pow as series of square roots. Removed now unused variables.
13794
13795 2015-05-13 Uros Bizjak <ubizjak@gmail.com>
13796
13797 * config/alpha/alpha.c (alpha_emit_set_long_const): Remove c1 argument.
13798 (alpha_extract_integer): Redeclare as static HOST_WIDE_INT.
13799 Remove *p0 and *p1 arguments. Rewrite function.
13800 (alpha_legitimate_constant_p): Update call to alpha_extract_integer.
13801 (alpha_split_const_mov): Update calls to alpha_extract_integer and
13802 alpha_emit_set_long_const.
13803 (alpha_expand_epilogue): Update calls to alpha_emit_set_long_const.
13804 (alpha_output_mi_thunk_osf): Ditto.
13805 * config/alpha/alpha.md (movti): Do not check operands[1]
13806 for CONST_DOUBLE.
13807
13808 2015-05-13 Richard Biener <rguenther@suse.de>
13809
13810 PR tree-optimization/66129
13811 * tree-vect-slp.c (vect_build_slp_tree): Make sure all ops are
13812 commutative.
13813 (vect_schedule_slp_instance): Fix typo.
13814
13815 2015-05-13 David Malcolm <dmalcolm@redhat.com>
13816
13817 * common.opt (fdump-internal-locations): New option.
13818 * input.c: Include diagnostic-core.h.
13819 (get_end_location): New function.
13820 (write_digit): New function.
13821 (write_digit_row): New function.
13822 (dump_location_range): New function.
13823 (dump_labelled_location_range): New function.
13824 (dump_location_info): New function.
13825 * input.h (dump_location_info): New prototype.
13826 * toplev.c (compile_file): Handle flag_dump_locations.
13827
13828 2015-05-13 Eric Botcazou <ebotcazou@adacore.com>
13829
13830 * gimple-expr.h (is_gimple_constant): Reorder.
13831 * tree-ssa-propagate.c (before_dom_children): Use inline accessor.
13832
13833 2015-05-13 Segher Boessenkool <segher@kernel.crashing.org>
13834
13835 * combine.c (simplify_set): When generating a CC set, if the
13836 source already is in the correct mode, do not wrap it in a
13837 compare. Simplify the rest of that code.
13838
13839 2015-05-13 Richard Biener <rguenther@suse.de>
13840
13841 PR tree-optimization/66123
13842 * tree-ssa-dom.c (propagate_rhs_into_lhs): Check if we found
13843 a taken edge.
13844
13845 2015-05-13 Richard Biener <rguenther@suse.de>
13846
13847 PR middle-end/66110
13848 * alias.c (alias_sets_conflict_p): Do not treat has_zero_child
13849 specially.
13850 * Makefile.in (dfp.o-warn): Add -Wno-strict-aliasing.
13851
13852 2015-05-13 Michael Haubenwallner <michael.haubenwallner@ssi-schaefer.com>
13853
13854 * doc/install.texi: Bump latest automake 1.11 version to 1.11.6.
13855 * aclocal.m4: Regenerated with automake-1.11.6.
13856
13857 2015-05-13 Tom de Vries <tom@codesourcery.com>
13858
13859 PR tree-optimization/66010
13860 * gimplify.h (gimplify_va_arg_internal): Remove declaration.
13861 * gimplify.c (gimplify_va_arg_internal): Remove and inline into ...
13862 * tree-stdarg.c (expand_ifn_va_arg_1): ... here. Choose between lval
13863 and rval based on do_deref.
13864
13865 2015-05-13 Ilya Enkovich <ilya.enkovich@intel.com>
13866
13867 PR target/65103
13868 * config/i386/i386.c (ix86_rtx_costs): We want to propagate
13869 link time constants into adress expressions and therefore set
13870 their cost to 0.
13871
13872 2015-05-13 Jakub Jelinek <jakub@redhat.com>
13873
13874 PR target/66112
13875 * config/i386/i386.md (mulv<mode>4, umulv<mode>4, *umulv<mode>4):
13876 Use SWI248 iterator instead of SWI.
13877 (*mulv<mode>4_1): Use SWI48 instead of SWI. Simplify output template.
13878 Use eq_attr "alternative" "0" instead of match_test in
13879 length_immediate attribute computation.
13880 (*mulvhi4, *mulvhi4_1): New define_insns.
13881
13882 PR target/66112
13883 * internal-fn.c (get_min_precision): Use UNSIGNED instead of
13884 SIGNED to get precision of non-negative value.
13885
13886 2015-05-13 Ilya Enkovich <ilya.enkovich@intel.com>
13887
13888 PR target/66048
13889 * function.c (diddle_return_value_1): Process bounds first.
13890 * config/i38/i386.c (ix86_function_value_regno_p): Add bnd1
13891 register.
13892
13893 2015-05-13 Thomas Preud'homme <thomas.preudhomme@arm.com>
13894
13895 PR rtl-optimization/64616
13896 * loop-invariant.c (can_move_invariant_reg): New.
13897 (move_invariant_reg): Call above new function to decide whether
13898 instruction can just be moved, skipping creation of temporary
13899 register.
13900
13901 2015-05-12 Jan Hubicka <hubicka@ucw.cz>
13902
13903 PR target/pr66047.c
13904 * i386.c (ix86_function_sseregparm): Only return -1 if local function
13905 with implied regparm is called from -mno-sse function.
13906 (init_cumulative_args): Output error if ix86_function_sseregparm
13907 return -1 and SSE register would be needed.
13908 (function_arg_advance_32): Likewise.
13909 (function_arg_32): Likewise.
13910 * i386.h (ix86_args): Add decl field.
13911
13912 2015-05-12 Jan Hubicka <hubicka@ucw.cz>
13913
13914 PR ipa/65873
13915 * ipa-inline.c (can_inline_edge_p): Allow early inlining of always
13916 inlines across optimization boundary.
13917
13918 2015-05-12 Jason Merrill <jason@redhat.com>
13919
13920 * config/mmix/mmix.c, config/msp430/msp430.c: Add space between
13921 string literal and macro name.
13922
13923 2015-05-12 Steve Ellcey <sellcey@imgtec.com>
13924
13925 * config/mips/mips.c (mips_print_operand): Remove 'y' operand code.
13926 * config/mips/mips.md (<GPR:d>lsa): Rewrite with shift operator.
13927 * config/mips/predicates.md (const_immlsa_operand): Remove log call.
13928
13929 2015-05-12 David Malcolm <dmalcolm@redhat.com>
13930
13931 * doc/invoke.texi (Warning Options): Add -Wmisleading-indentation.
13932 (-Wmisleading-indentation): New option.
13933 * Makefile.in (C_COMMON_OBJS): Add c-family/c-indentation.o.
13934
13935 2015-05-12 Uros Bizjak <ubizjak@gmail.com>
13936
13937 * config/alpha/alpha.h (TARGET_SUPPORTS_WIDE_INT): New define.
13938 * config/alpha/alpha.c (alpha_rtx_costs): Handle CONST_WIDE_INT.
13939 (alpha_extract_integer): Ditto.
13940 (alpha_legitimate_constant_p): Ditto.
13941 (alpha_split_tmode_pair): Ditto.
13942 (alpha_preferred_reload_class): Add CONST_WIDE_INT.
13943 (alpha_expand_mov): Ditto.
13944 (print_operand): Remove handling of 'H' modifier.
13945 <case 'm'>: Remove CONST_DOUBLE handling.
13946 (summarize_insn): Handle CONST_WIDE_INT.
13947 * config/alpha/alpha.md (*andsi_internal): Remove H constraint.
13948 (anddi3): Ditto.
13949 (movti): Handle CONST_WIDE_INT.
13950 * config/alpha/constraints.md ('H'): Remove constraint definition.
13951 ('G'): Do not match MODE_FLOAT class.
13952 * config/alpha/predicates.md (const0_operand): Also match
13953 const_wide_int.
13954 (non_add_const_operand): Ditto.
13955 (non_zero_const_operand): Ditto.
13956 (some_operand): Ditto.
13957 (input_operand): Ditto. Handle CONST_WIDE_INT.
13958 (and_operand): Do not match const_double.
13959 * config/alpha/sync.md (fetchop_constr): Remove H constraint.
13960
13961 2015-05-12 Andrew MacLeod <amacleod@redhat.com>
13962
13963 PR target/65697
13964 * coretypes.h (MEMMODEL_SYNC, MEMMODEL_BASE_MASK): New macros.
13965 (enum memmodel): Add SYNC_{ACQUIRE,RELEASE,SEQ_CST}.
13966 * tree.h (memmodel_from_int, memmodel_base, is_mm_relaxed,
13967 is_mm_consume,is_mm_acquire, is_mm_release, is_mm_acq_rel,
13968 is_mm_seq_cst, is_mm_sync): New accessor functions.
13969 * builtins.c (expand_builtin_sync_operation,
13970 expand_builtin_compare_and_swap): Use MEMMODEL_SYNC_SEQ_CST.
13971 (expand_builtin_sync_lock_release): Use MEMMODEL_SYNC_RELEASE.
13972 (get_memmodel, expand_builtin_atomic_compare_exchange,
13973 expand_builtin_atomic_load, expand_builtin_atomic_store,
13974 expand_builtin_atomic_clear): Use new accessor routines.
13975 (expand_builtin_sync_synchronize): Use MEMMODEL_SYNC_SEQ_CST.
13976 * optabs.c (expand_compare_and_swap_loop): Use MEMMODEL_SYNC_SEQ_CST.
13977 (maybe_emit_sync_lock_test_and_set): Use new accessors and
13978 MEMMODEL_SYNC_ACQUIRE.
13979 (expand_sync_lock_test_and_set): Use MEMMODEL_SYNC_ACQUIRE.
13980 (expand_mem_thread_fence, expand_mem_signal_fence, expand_atomic_load,
13981 expand_atomic_store): Use new accessors.
13982 * emit-rtl.c (need_atomic_barrier_p): Add additional enum cases.
13983 * tsan.c (instrument_builtin_call): Update check for memory model beyond
13984 final enum to use MEMMODEL_LAST.
13985 * c-family/c-common.c: Use new accessor for memmodel_base.
13986 * config/aarch64/aarch64.c (aarch64_expand_compare_and_swap): Use new
13987 accessors.
13988 * config/aarch64/atomics.md (atomic_load<mode>,atomic_store<mode>,
13989 arch64_load_exclusive<mode>, aarch64_store_exclusive<mode>,
13990 mem_thread_fence, *dmb): Likewise.
13991 * config/alpha/alpha.c (alpha_split_compare_and_swap,
13992 alpha_split_compare_and_swap_12): Likewise.
13993 * config/arm/arm.c (arm_expand_compare_and_swap,
13994 arm_split_compare_and_swap, arm_split_atomic_op): Likewise.
13995 * config/arm/sync.md (atomic_load<mode>, atomic_store<mode>,
13996 atomic_loaddi): Likewise.
13997 * config/i386/i386.c (ix86_destroy_cost_data, ix86_memmodel_check):
13998 Likewise.
13999 * config/i386/sync.md (mem_thread_fence, atomic_store<mode>): Likewise.
14000 * config/ia64/ia64.c (ia64_expand_atomic_op): Add new memmodel cases and
14001 use new accessors.
14002 * config/ia64/sync.md (mem_thread_fence, atomic_load<mode>,
14003 atomic_store<mode>, atomic_compare_and_swap<mode>,
14004 atomic_exchange<mode>): Use new accessors.
14005 * config/mips/mips.c (mips_process_sync_loop): Likewise.
14006 * config/pa/pa.md (atomic_loaddi, atomic_storedi): Likewise.
14007 * config/rs6000/rs6000.c (rs6000_pre_atomic_barrier,
14008 rs6000_post_atomic_barrier): Add new cases.
14009 (rs6000_expand_atomic_compare_and_swap): Use new accessors.
14010 * config/rs6000/sync.md (mem_thread_fence): Add new cases.
14011 (atomic_load<mode>): Add new cases and use new accessors.
14012 (store_quadpti): Add new cases.
14013 * config/s390/s390.md (mem_thread_fence, atomic_store<mode>): Use new
14014 accessors.
14015 * config/sparc/sparc.c (sparc_emit_membar_for_model): Use new accessors.
14016 * doc/extend.texi: Update docs to indicate 16 bits are used for memory
14017 model, not 8.
14018
14019 2015-05-12 Jan Hubicka <hubicka@ucw.cz>
14020
14021 * ipa-devirt.c (type_with_linkage_p): New function.
14022 (type_in_anonymous_namespace_p): Move here from tree.c; assert that
14023 type has linkage.
14024 (odr_type_p): Move here from ipa-utils.h; use type_with_linkage_p.
14025 (can_be_name_hashed_p): Simplify.
14026 (hash_odr_name): Check that type has linkage before checking if it is
14027 anonymous.
14028 (types_same_for_odr): Likewise.
14029 (odr_name_hasher::equal): Likewise.
14030 (odr_subtypes_equivalent_p): Likewise.
14031 (warn_types_mismatch): Likewise.
14032 (get_odr_type): Likewise.
14033 (odr_types_equivalent_p): Fix checking of TYPE_MAIN_VARIANT.
14034 * ipa-utils.h (odr_type_p): Move offline.
14035 * tree.c (need_assembler_name_p): Fix handling of types
14036 without linkages.
14037 (type_in_anonymous_namespace_p): Move to ipa-devirt.c
14038
14039 2015-05-12 David Malcolm <dmalcolm@redhat.com>
14040
14041 * timevar.c (timevar_enable): Delete in favor of...
14042 (g_timer): New global.
14043 (struct timevar_def): Move to timevar.h inside class timer.
14044 (struct timevar_stack_def): Likewise.
14045 (timevars): Delete global in favor of field "m_timevars" within
14046 class timer in timevar.h
14047 (stack): Likewise, in favor of field "m_stack".
14048 (unused_stack_instances): Likewise, in favor of field
14049 "m_unused_stack_instances".
14050 (start_time): Likewise, in favor of field "m_start_time".
14051 (get_time): Eliminate check for timevar_enable.
14052 (timer::timer): New function, built from part of timevar_init.
14053 (timevar_init): Rewrite idempotency test from using
14054 "timevar_enable" bool to using dynamic allocation of "g_timer".
14055 Move rest of implementation into timer's constructor.
14056 (timevar_push_1): Rename to...
14057 (timer::push): ...this, adding "m_" prefixes to variables that
14058 are now fields of timer.
14059 (timevar_pop_1): Likewise, rename to...
14060 (timer::pop): ...this, and add "m_" prefixes.
14061 (timevar_start): Replace test for "timevar_enable" with one for
14062 "g_timer", and move bulk of implementation to...
14063 (timer::start): ...here, adding "m_" prefixes.
14064 (timevar_stop): Likewise, from here...
14065 (timer::stop): ...to here.
14066 (timevar_cond_start): Likewise, from here...
14067 (timer::cond_start): ...to here.
14068 (timevar_cond_stop): Likewise, from here...
14069 (timer::cond_stop): ...to here.
14070 (validate_phases): Rename to...
14071 (timer::validate_phases): ...this, and add "m_" prefixes. Make
14072 locals "total" and "tv" const.
14073 (timevar_print): Rename to...
14074 (timer::print): ...this, and add "m_" prefixes. Make locals
14075 "total" and "tv" const. Eliminate test for timevar_enable.
14076 * timevar.h (timevar_enable): Eliminate.
14077 (g_timer): New declaration.
14078 (timevar_push_1): Eliminate.
14079 (timevar_pop_1): Eliminate.
14080 (timevar_print): Eliminate.
14081 (class timer): New class.
14082 (timevar_push): Rewrite to use g_timer.
14083 (timevar_pop): Likewise.
14084 * toplev.c (toplev::~toplev): Likewise.
14085
14086 2015-05-12 Richard Earnshaw <rearnsha@arm.com>
14087
14088 * arm-protos.h (arm_sched_autopref): Delete.
14089 (tune_params): Re-organize, use enums for flag values.
14090 (FUSE_OPS): New macro.
14091 * arm.c (ARM_PREFETCH_NOT_BENEFICIAL): Update.
14092 (ARM_PREFETCH_BENEFICIAL): Likewise.
14093 (ARM_FUSE_NOTHING, ARM_FUSE_MOVW_MOVT): Delete.
14094 (arm_slowmul_tune, arm_fastmul_tune, arm_strongarm_tune)
14095 (arm_xscale_tune, arm_9e_tune, arm_marvell_pj4_tune)
14096 (arm_v6t2_tune, arm_cortex_tune, arm_cortex_a8_tune)
14097 (arm_cortex_a7_tune, arm_cortex_a15_tune, arm_cortex_a53_tune)
14098 (arm_cortex_a57_tune, arm_xgene1_tune, arm_cortex_a5_tune)
14099 (arm_cortex_a9_tune, arm_cortex_a12_tune, arm_v7m_tune)
14100 (arm_cortex_m7_tune, arm_v6m_tune, arm_fa726te_tune): Use new
14101 format.
14102 (arm_option_override, thumb2_reorg, arm_print_tune_info)
14103 (aarch_macro_fusion_pair_p): Update uses of current_tune.
14104 * arm.h (LOGICAL_OP_NON_SHORT_CIRCUIT): Likewise.
14105
14106 2015-05-12 Sandra Loosemore <sandra@codesourcery.com>
14107
14108 * config/nios2/nios2.md (trap, ctrapsi4): Use "trap" instead of
14109 "break".
14110
14111 2015-05-12 Chung-Lin Tang <cltang@codesourcery.com>
14112 Sandra Loosemore <sandra@codesourcery.com>
14113
14114 * config/nios2/nios2.h (enum reg_class): Add IJMP_REGS enum
14115 value.
14116 (REG_CLASS_NAMES): Add "IJMP_REGS".
14117 (REG_CLASS_CONTENTS): Add new entry for IJMP_REGS.
14118 * config/nios2/nios2.md (indirect_jump,*tablejump): Adjust to
14119 use new "c" register constraint.
14120 * config/nios2/constraint.md (c): New register constraint
14121 corresponding to IJMP_REGS.
14122
14123 2015-05-12 Segher Boessenkool <segher@kernel.crashing.org>
14124
14125 * config/rs6000/rs6000.md (*rotlsi3_internal4, *rotlsi3_internal5,
14126 *rotlsi3_internal6, rlwinm, 5 unnamed define_insns, and 6
14127 define_splits): Delete, revamp, transmogrify into ...
14128 (*rotlsi3_mask, *rotlsi3_mask_dot, *rotlsi3_mask_dot2,
14129 *ashlsi3_imm_mask, *ashlsi3_imm_mask_dot, *ashlsi3_imm_mask_dot2,
14130 *lshrsi3_imm_mask, *lshrsi3_imm_mask_dot, *lshrsi3_imm_mask_dot2):
14131 New.
14132
14133 2015-05-12 Segher Boessenkool <segher@kernel.crashing.org>
14134
14135 * config/rs6000/rs6000.md (rs6000_adjust_atomic_subword): Use
14136 gen_ashlsi3 and gen_andsi3 instead of gen_rlwinm.
14137
14138 2015-05-12 Segher Boessenkool <segher@kernel.crashing.org>
14139
14140 * config/rs6000/rs6000.md (extzv): FAIL for SImode.
14141 (extzvsi_internal, *extzvsi_internal1, *extzvsi_internal2,
14142 *rotlsi3_internal7le, *rotlsi3_internal7be, *rotlsi3_internal8le,
14143 *rotlsi3_internal8be, *rotlsi3_internal9le, *rotlsi3_internal9be,
14144 *rotlsi3_internal10le, *rotlsi3_internal10be, *rotlsi3_internal11le,
14145 *rotlsi3_internal11be, *rotlsi3_internal12le, *rotlsi3_internal12be,
14146 *lshiftrt_internal1le, *lshiftrt_internal1be, *lshiftrt_internal2le,
14147 *lshiftrt_internal2be, *lshiftrt_internal3le, *lshiftrt_internal3be,
14148 *lshiftrt_internal4le, *lshiftrt_internal4be, *lshiftrt_internal5le,
14149 *lshiftrt_internal5be, *lshiftrt_internal5le, *lshiftrt_internal5be,
14150 *rotldi3_internal7le, *rotldi3_internal7be, *rotldi3_internal8le,
14151 *rotldi3_internal8be, *rotldi3_internal9le, *rotldi3_internal9be,
14152 *rotldi3_internal10le, *rotldi3_internal10be, *rotldi3_internal11le,
14153 *rotldi3_internal11be, *rotldi3_internal12le, *rotldi3_internal12be,
14154 *rotldi3_internal13le, *rotldi3_internal13be, *rotldi3_internal14le,
14155 *rotldi3_internal14be, *rotldi3_internal15le, *rotldi3_internal15be,
14156 and 30 corresponding splitters): Delete.
14157
14158 2015-05-12 Segher Boessenkool <segher@kernel.crashing.org>
14159
14160 * config/rs6000/rs6000.md (define_split for bswaphi): Don't use
14161 zero_extract.
14162
14163 2015-05-12 Segher Boessenkool <segher@kernel.crashing.org>
14164
14165 * combine.c (recog_for_combine_1): New function, factored out
14166 from recog_for_combine.
14167 (change_zero_ext): New function.
14168 (recog_for_combine): If recog fails, try again with the pattern
14169 modified by change_zero_ext; if that still fails, restore the
14170 pattern.
14171
14172 2015-05-12 Segher Boessenkool <segher@kernel.crashing.org>
14173
14174 * combine.c (get_undo_marker): New function.
14175 (undo_to_marker): New function, largely factored out from ...
14176 (undo_all): ... this. Adjust.
14177
14178 2015-05-12 Richard Biener <rguenther@suse.de>
14179
14180 PR tree-optimization/66101
14181 * tree-ssa-dce.c (remove_dead_stmt): Properly mark loops for
14182 fixup if we turn a loop exit edge to a fallthru edge.
14183
14184 2015-05-12 Richard Biener <rguenther@suse.de>
14185
14186 PR tree-optimization/37021
14187 * tree-vectorizer.h (struct _slp_tree): Add two_operators flag.
14188 (SLP_TREE_TWO_OPERATORS): New define.
14189 * tree-vect-slp.c (vect_create_new_slp_node): Initialize
14190 SLP_TREE_TWO_OPERATORS.
14191 (vect_build_slp_tree_1): Allow two mixing plus/minus in an
14192 SLP node.
14193 (vect_build_slp_tree): Adjust.
14194 (vect_analyze_slp_cost_1): Likewise.
14195 (vect_schedule_slp_instance): Vectorize mixing plus/minus by
14196 emitting two vector stmts and mixing the results.
14197
14198 2015-05-12 Dominik Vogt <vogt@linux.vnet.ibm.com>
14199
14200 * call.c (print_z_candidates): Remove dead code.
14201
14202 2015-05-12 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
14203
14204 * config/s390/2827.md: Split zEC12_simple into zEC12_simple_int
14205 and zEC12_simple_fp.
14206 * config/s390/s390.c (s390_issue_rate): Set issue rate for zEC12
14207 to 1.
14208
14209 2015-05-12 Tom de Vries <tom@codesourcery.com>
14210
14211 PR tree-optimization/66010
14212 * gimplify.c (gimplify_modify_expr): Handle new do_deref argument of
14213 ifn_va_arg.
14214 * gimplify.h (gimplify_va_arg_internal): Remove loc parameter.
14215 (gimplify_va_arg_internal): Remove loc parameter. Assert no array-typed
14216 va_lists are passed, and remove corresponding handling.
14217 (gimplify_va_arg_expr): Only take address of ap if necessary. Add
14218 do_deref argument to ifn_va_arg.
14219 * tree-stdarg.c (expand_ifn_va_arg_1): Handle new do_deref argument of
14220 ifn_va_arg.
14221
14222 2015-05-12 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
14223
14224 PR target/65955
14225 * config/arm/arm.md (movcond_addsi): Check that operands[2] is a
14226 REG before taking its REGNO.
14227
14228 2015-05-12 Thomas Preud'homme <thomas.preudhomme@arm.com>
14229
14230 * combine.c i(set_nonzero_bits_and_sign_copies): Split code updating
14231 rsp->sign_bit_copies and rsp->nonzero_bits into ...
14232 (update_rsp_from_reg_equal): This. Also use REG_EQUAL note on src if
14233 present to get more accurate information about the number of sign bit
14234 copies and non zero bits.
14235
14236 2015-05-12 Richard Biener <rguenther@suse.de>
14237
14238 * tree-vect-slp.c (vect_build_slp_tree_1): For BB vectorization
14239 do not allow unrolling.
14240
14241 2015-05-11 Richard Henderson <rth@redhat.com>
14242
14243 * config/i386/i386-modes.def (CCP): New.
14244 * config/i386/i386.c (put_condition_code): Handle it.
14245 (ix86_match_ccmode, ix86_cc_modes_compatible): Likewise.
14246
14247 2015-05-11 Richard Henderson <rth@redhat.com>
14248
14249 * target.def (md_asm_clobbers): Replace with...
14250 (md_asm_adjust): this.
14251 * tm.texi.in (TARGET_MD_ASM_CLOBBERS): Remove.
14252 (TARGET_MD_ASM_ADJUST): New.
14253 * tm.texi: Rebuild.
14254 * hooks.c (hook_tree_tree_tree_tree_3rd_identity): Remove.
14255 * hooks.h (hook_tree_tree_tree_tree_3rd_identity): Remove.
14256 * system.h (TARGET_MD_ASM_CLOBBERS): Poison.
14257
14258 * cfgexpand.c (check_operand_nalternatives): Accept vector of
14259 constraints instead of lists of outputs and inputs.
14260 (expand_asm_stmt): Save and restore input_location around the
14261 body of the function. Move asm data into vectors instead of
14262 building tree lists. Generate cleanup sequences as needed,
14263 rather than waiting til the end. Use new md_asm_adjust hook.
14264
14265 * config/vxworks.c: Include vec.h before target.h.
14266 * gimple.c: Likewise.
14267 * incpath.c: Likewise.
14268 * mode-switching.c: Likewise.
14269
14270 * config/cris/cris.c (cris_md_asm_clobbers): Convert to...
14271 (cris_md_asm_adjust): this.
14272 (TARGET_MD_ASM_CLOBBERS): Remove.
14273 (TARGET_MD_ASM_ADJUST): New.
14274 * config/i386/i386.c (ix86_md_asm_clobbers): Convert to...
14275 (ix86_md_asm_adjust): this.
14276 (TARGET_MD_ASM_CLOBBERS): Remove.
14277 (TARGET_MD_ASM_ADJUST): New.
14278 * config/mn10300/mn10300.c (mn10300_md_asm_clobbers): Convert to...
14279 (mn10300_md_asm_adjust): this.
14280 (TARGET_MD_ASM_CLOBBERS): Remove.
14281 (TARGET_MD_ASM_ADJUST): New.
14282 * config/rs6000/rs6000.c (rs6000_md_asm_clobbers): Convert to...
14283 (rs6000_md_asm_adjust): this.
14284 (TARGET_MD_ASM_CLOBBERS): Remove.
14285 (TARGET_MD_ASM_ADJUST): New.
14286 * config/visium/visium.c (visium_md_asm_clobbers): Convert to...
14287 (visium_md_asm_adjust): this.
14288 (TARGET_MD_ASM_CLOBBERS): Remove.
14289 (TARGET_MD_ASM_ADJUST): New.
14290
14291 2015-05-11 Richard Henderson <rth@redhat.com>
14292
14293 * gimplify.c (gimplify_asm_expr): Set gimple_asm_volatile_p
14294 if noutputs is zero.
14295 * cfgexpand.c (expand_asm_stmt): Use gimple_asm_volatile_p unchanged.
14296
14297 * cfgexpand.c (expand_asm_operands): Merge into...
14298 (expand_asm_stmt): ... here.
14299
14300 * cfgexpand.c (expand_asm_operands): Don't call
14301 resolve_asm_operand_names.
14302 * stmt.c (resolve_asm_operand_names): Clarify block comment.
14303
14304 2015-05-11 Jan Hubicka <hubicka@ucw.cz>
14305
14306 * dwarf2out.c (gen_member_die): Sanity check that we access
14307 TYPE_MAIN_VARIANT for TYPE_METHODS.
14308 * function.c (use_register_for_decl): Look for TYPE_MAIN_VARIANT when
14309 checking TYPE_METHODS.
14310 * tree.c (free_lang_data_in_type): See TYPE_METHODS to error_mark_node
14311 if non-null.
14312 (build_distinct_type_copy): Clear TYPE_METHODS.
14313 (verify_type_variant): Verify that TYPE_METHODS is NULL for variants.
14314 (verify_type): Allow TYPE_METHODS to be error_mark_node.
14315 * tree.def: Update docs of TYPE_STUB_DECL and TYPE_METHODS.
14316
14317 2015-05-11 Eric Botcazou <ebotcazou@adacore.com>
14318
14319 * emit-rtl.c (emit_pattern_after_setloc): Add missing guard.
14320 (emit_pattern_before_setloc): Likewise.
14321
14322 2015-05-11 Richard Sandiford <richard.sandiford@arm.com>
14323
14324 * genrecog.c (match_pattern_1): Expect the pattern to be a SEQUENCE
14325 for define_peephole2s.
14326 (get_peephole2_pattern): New function.
14327 (main): Use it. Call validate_pattern.
14328
14329 2015-05-11 Pitchumani Sivanupandi <pitchumani.s@atmel.com>
14330
14331 * config/avr/avr.c (avr_hard_regno_call_part_clobbered): Use
14332 LAST_CALLEE_SAVED_REG instead of hard-coded register number.
14333 (Last callee saved reg is different for AVR_TINY architecture)
14334
14335 2015-05-11 Uros Bizjak <ubizjak@gmail.com>
14336
14337 * config/i386/i386.c (ix86_loop_unroll_adjust): Use PATTERN (insn)
14338 when looking for memory references.
14339
14340 2015-05-11 Alexander Monakov <amonakov@ispras.ru>
14341
14342 PR target/65753
14343 * config/i386/i386.c (ix86_function_ok_for_sibcall): Allow PIC sibcalls
14344 via function pointers.
14345
14346 2015-05-11 Alexander Monakov <amonakov@ispras.ru>
14347
14348 * calls.c (prepare_call_address): Transform PLT call to GOT lookup and
14349 indirect call by forcing address into a pseudo with -fno-plt.
14350 * common.opt (flag_plt): New option.
14351 * doc/invoke.texi (Code Generation Options): Add -fno-plt.
14352 ([-fno-plt]): Document.
14353
14354 2015-05-11 Markus Trippelsdorf <markus@trippelsdorf.de>
14355
14356 PR bootstrap/66105
14357 * config/rs6000/option-defaults.h: Add space between string literal
14358 and macro name.
14359
14360 2015-05-11 Thomas Preud'homme <thomas.preudhomme@arm.com>
14361
14362 * gcc.target/arm/pr64616.c: Test dump rather than assembly to work
14363 accross ARM targets.
14364
14365 2015-05-11 Christian Bruel <christian.bruel@st.com>
14366
14367 * config/arm/arm-protos.h (thumb_code, thumb1_code): Remove.
14368 * config/arm/vxworks.h (thumb_code): Replace with TARGET_THUMB.
14369
14370 2015-05-11 Richard Sandiford <richard.sandiford@arm.com>
14371
14372 PR rtl-optimization/66076
14373 * rtlanal.c (generic_subrtx_iterator <T>::add_single_to_queue):
14374 Don't grow the heap array if it is already big enough from a
14375 previous iteration.
14376
14377 2015-05-11 Christian Bruel <christian.bruel@st.com>
14378
14379 * config/arm/arm-protos.h (arm_declare_function_name): Declare.
14380 (is_called_in_ARM_mode): Remove.
14381 * config/arm/arm.c (is_called_in_ARM_mode): Declare static bool.
14382 (arm_declare_function_name): Moved from from ARM_DECLARE_FUNCTION_NAME.
14383 * config/arm/arm.h (ARM_DECLARE_FUNCTION_NAME): Call
14384 arm_declare_function_name.
14385
14386 2015-05-11 Christian Bruel <christian.bruel@st.com>
14387
14388 * config/arm/arm.c (arm_option_override): Reoganized and split into :
14389 (arm_option_params_internal); New function.
14390 (arm_option_check_internal): New function.
14391 (arm_option_override_internal): New function.
14392 (thumb_code, thumb1_code): Remove.
14393 * config/arm/arm.h (TREE_TARGET_THUMB, TREE_TARGET_THUMB1): New macros.
14394 (TREE_TARGET_THUM2, TREE_TARGET_ARM): Likewise.
14395 (thumb_code, thumb1_code): Remove.
14396 * config/arm/arm.md (is_thumb, is_thumb1): Check TARGET flag.
14397
14398 2015-05-11 Uros Bizjak <ubizjak@gmail.com>
14399
14400 * config/alpha/alpha.c (alpha_emit_set_const_1)
14401 (alpha_emit_set_long_const, alpha_extract_integer)
14402 (alpha_legitimate_constant_p, alpha_split_const_mov)
14403 (alpha_expand_block_clear, alpha_expand_zap_mask, print_operand):
14404 [HOST_BITS_PER_WIDE_INT < 64]: Remove dead code.
14405 (alpha_emit_set_const_1): Change "(HOST_WIDE_INT) 1" to
14406 HOST_WIDE_INT_1U.
14407 * config/alpha/predicates.md (mode_mask_operand): Do not match
14408 const_double RTX.
14409 [HOST_BITS_PER_WIDE_INT < 64]: Remove dead code.
14410 * config/alpha/alpha.md (abstf, *abstf_internal, UNSPEC_ZAP splitter):
14411 Change "(HOST_WIDE_INT) 1" to HOST_WIDE_INT_1U.
14412 [HOST_BITS_PER_WIDE_INT < 64]: Remove dead code.
14413 (*negtf_internal): Use gen_int_mode instead of immed_double_const.
14414
14415 2015-05-11 Jakub Jelinek <jakub@redhat.com>
14416
14417 PR target/65780
14418 * config/s390/linux.h (TARGET_BINDS_LOCAL_P): Define to
14419 default_binds_local_p_2.
14420 * config/arm/linux-elf.h (TARGET_BINDS_LOCAL_P): Likewise.
14421 * config/aarch64/aarch64-linux.h (TARGET_BINDS_LOCAL_P): Likewise.
14422
14423 2015-05-09 Jan Hubicka <hubicka@ucw.cz>
14424
14425 * tree.c (verify_type_variant): Check TYPE_VALUES_RAW and TYPE_PRECISION
14426
14427 2015-05-09 Jan Hubicka <hubicka@ucw.cz>
14428
14429 Patch by Richard Biener
14430 * coverage.c (coverage_obj_init): Delay building of type variant
14431 until the type is finished.
14432
14433 2015-05-09 Jan Hubicka <hubicka@ucw.cz>
14434
14435 * ipa-devirt.c (warn_types_mismatch): Do not ICE when warning about
14436 mismatch between C and C++ type; compoare correctly ARG_TYPES
14437 for non-prototypes and output correctly parameter index for METHOD_TYPE.
14438 (odr_types_equivalent_p): Fix wording of warning about attributes;
14439 it is OK to match prototype and non-prototype.
14440
14441 2015-05-09 Jan Hubicka <hubicka@ucw.cz>
14442
14443 * tree.c (free_lang_data_in_type): Free TREE_PURPOSE of
14444 TYPE_ARG_TYPES list.
14445 (verify_type): Permit non-NULL TREE_PURPOSE in non-LTO builds.
14446 * tree.def (FUNCTION_TYPE): Document TREE_PURPOSE in TYPE_ARG_TYPES
14447
14448 2015-05-09 Jan Hubicka <hubicka@ucw.cz>
14449
14450 * tree.c (verify_type): Verify TYPE_BINFO and TYPE_VALUES_RAW.
14451 * tree.h (is_lang_specific): Constify.
14452
14453 2015-05-09 Marc Glisse <marc.glisse@inria.fr>
14454
14455 PR tree-optimization/64454
14456 * tree-vrp.c (extract_range_from_binary_expr_1) <TRUNC_MOD_EXPR>:
14457 Rewrite.
14458
14459 2015-05-08 Jason Merrill <jason@redhat.com>
14460
14461 * bitmap.c, c/c-aux-info.c, cfg.c, cfghooks.c, cgraph.c,
14462 config/aarch64/aarch64.md config/alpha/vms.h, config/darwin.c,
14463 config/darwin.h, config/darwin9.h, config/elfos.h,
14464 config/i386/bsd.h, config/ia64/ia64.c, config/lm32/lm32.h,
14465 config/microblaze/microblaze.h, config/mips/mips.h,
14466 config/mmix/mmix.c, config/msp430/msp430.c, config/nios2/nios2.h,
14467 config/nvptx/nvptx.c, config/nvptx/nvptx.h, config/pa/pa.c,
14468 config/pa/pa.h, config/rs6000/rs6000.c, config/rs6000/sysv4.h,
14469 config/rs6000/xcoff.h, config/rx/rx.h, config/s390/s390.h,
14470 config/sparc/sol2.h, config/sparc/sparc.h, config/visium/visium.h,
14471 cppbuiltin.c, defaults.h, doc/invoke.texi, dwarf2cfi.c,
14472 dwarf2out.c, final.c, gcc.c, gcov-dump.c, gcov.c, ipa-cp.c,
14473 ipa-inline.c, ipa-polymorphic-call.c, ipa-profile.c, ipa-prop.c,
14474 ira-color.c, ira.c, loop-doloop.c, loop-iv.c, mcf.c,
14475 modulo-sched.c, predict.c, profile.c, stor-layout.c, toplev.c,
14476 tree-ssa-reassoc.c, value-prof.c, wide-int-print.cc: Add space
14477 between string literal and macro name.
14478
14479 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
14480
14481 * jump.c: Change argument types to rtx_insn *.
14482 * rtl.h: Adjust.
14483
14484 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
14485
14486 * lra-constraints.c: Change argument type to rtx_insn *.
14487
14488 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
14489
14490 * df-problems.c: Change argument type to rtx_insn *.
14491
14492 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
14493
14494 * combine.c: Change argument type to rtx_insn *.
14495
14496 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
14497
14498 * rtl.h: Adjust.
14499 * rtlanal.c: Change argument type to rtx_insn *.
14500
14501 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
14502
14503 * sched-deps.c: Change argument types to rtx_insn *.
14504 * sched-int.h: Adjust.
14505
14506 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
14507
14508 * dwarf2cfi.c: Change argument type to rtx_insn *.
14509
14510 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
14511
14512 * ira.c (decrease_live_ranges_number): Changetype of local
14513 variable to rtx_insn *.
14514 * recog.c: Change argument types to rtx_insn *.
14515 * recog.h: Adjust.
14516
14517 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
14518
14519 * reorg.c: Change argument types to rtx_insn *.
14520
14521 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
14522
14523 * ira-color.c: Change argument types to rtx_insn *.
14524 * lra-eliminations.c: Likewise.
14525 * ira.h: Adjust.
14526
14527 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
14528
14529 * gcse.c: Change argument types to rtx_insn *.
14530
14531 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
14532
14533 * cse.c (cse_change_cc0_mode): Change argument type to rtx_insn *.
14534
14535 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
14536
14537 * emit-rtl.c (emit_debug_insn_before): Change argument type to
14538 rtx_insn *.
14539 * rtl.h: Adjust.
14540
14541 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
14542
14543 * emit-rtl.c (emit_note_before): Change argument type to rtx_insn *.
14544 * rtl.h: Adjust.
14545
14546 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
14547
14548 * emit-rtl.c (emit_note_after): Change argument type to rtx_insn *.
14549 * rtl.h: Adjust.
14550
14551 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
14552
14553 * emit-rtl.c (prev_cc0_setter): Change argument type to rtx_insn *.
14554 * rtl.h: Adjust.
14555
14556 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
14557
14558 * rtlanal.c (noop_move_p): Change argument type to rtx_insn *.
14559 * rtl.h: Adjust.
14560
14561 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
14562
14563 * rtlanal.c (add_shallow_copy_of_reg_note): Change argument type
14564 to rtx_insn *.
14565 * rtl.h: Adjust.
14566
14567 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
14568
14569 * rtlanal.c (remove_reg_equal_equiv_notes): Change argument type
14570 to rtx_insn *.
14571 * rtl.h: Likewise.
14572
14573 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
14574
14575 * except.c (can_nonlocal_goto): Change type of argument to
14576 rtx_insn *.
14577 * rtl.h: Adjust.
14578
14579 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
14580
14581 * rtlanal.c (computed_jump_p): Cange argument type to rtx_insn *.
14582 * rtl.h: Adjust.
14583
14584 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
14585
14586 * rtlanal.c (in_insn_list_p): Renamed from in_expr_list_p.
14587 * cfgrtl.c (can_delete_label_p): Adjust.
14588 * rtl.h: likewise.
14589
14590 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
14591
14592 * reorg.c (stop_search_p): Change argument to rtx_insn *.
14593
14594 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
14595
14596 * except.c (make_reg_eh_region_note): Change argument to
14597 rtx_insn *.
14598 (make_reg_eh_region_note_nothrow_nononlocal): Likewise.
14599 * except.h: Adjust.
14600
14601 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
14602
14603 * mode-switching.c (commit_mode_sets): Change type of local
14604 variable from rtx to rtx_insn *.
14605
14606 2015-05-08 Jim Wilson <jim.wilson@linaro.org>
14607
14608 * doc/install.texi (--enable-languages): Add missing jit and lto info.
14609 Add ^ to grep command.
14610 * doc/match-and-simplify.texi (GIMPLE API): Add missing fourth tree
14611 arg to last gimple_simplify declaration. Add missing gimple_build
14612 declaration for built-in function case with four tree args.
14613
14614 2015-05-08 Gregor Richards <gregor.richards@uwaterloo.ca>
14615 Szabolcs Nagy <szabolcs.nagy@arm.com>
14616
14617 * config/mips/linux.h (MUSL_DYNAMIC_LINKER32): Define.
14618 (MUSL_DYNAMIC_LINKER64, MUSL_DYNAMIC_LINKERN32): Define.
14619 (GNU_USER_DYNAMIC_LINKERN32): Update.
14620
14621 2015-05-08 Richard Biener <rguenther@suse.de>
14622
14623 PR tree-optimization/66036
14624 * tree-vect-data-refs.c (vect_compute_data_ref_alignment):
14625 Handle strided group loads.
14626 (vect_verify_datarefs_alignment): Likewise.
14627 (vect_enhance_data_refs_alignment): Likewise.
14628 (vect_analyze_group_access): Likewise.
14629 (vect_analyze_data_ref_access): Likewise.
14630 (vect_analyze_data_ref_accesses): Likewise.
14631 * tree-vect-stmts.c (vect_model_load_cost): Likewise.
14632 (vectorizable_load): Likewise.
14633
14634 2015-05-08 Segher Boessenkool <segher@kernel.crashing.org>
14635
14636 * config/rs6000/rs6000.md: Require operand inequality in one
14637 of the peepholes.
14638
14639 2015-05-08 Richard Sandiford <richard.sandiford@arm.com>
14640 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
14641
14642 * config/i386/i386.md (<mode>_ldx, *<mode>_ldx): Remove mode
14643 from (set ...).
14644 * config/rx/rx.md (movdi, movdf): Likewise.
14645 Likewise for define_peephole2s.
14646
14647 2015-05-08 Alan Lawrence <alan.lawrence@arm.com>
14648
14649 * config/aarch64/arm_neon.h (vceq_s64, vceq_u64, vceqz_s64, vceqz_u64,
14650 vcge_s64, vcge_u64, vcgez_s64, vcgt_s64, vcgt_u64, vcgtz_s64, vcle_s64,
14651 vcle_u64, vclez_s64, vclt_s64, vclt_u64, vcltz_s64, vtst_s64,
14652 vtst_u64): Rewrite using gcc vector extensions.
14653
14654 2015-05-08 Alan Lawrence <alan.lawrence@arm.com>
14655
14656 * config/aarch64/aarch64-simd.md (aarch64_vcond_internal<mode><mode>,
14657 vcond<mode><mode>, vcondu<mode><mode>): Add DImode variant.
14658
14659 2015-05-08 Alan Lawrence <alan.lawrence@arm.com>
14660
14661 * optabs.c (vector_compare_rtx): Handle RTL operands having VOIDmode.
14662
14663 2015-05-08 Szabolcs Nagy <szabolcs.nagy@arm.com>
14664
14665 * config/glibc-stdint.h (OPTION_MUSL): Define.
14666 (INT_FAST16_TYPE, INT_FAST32_TYPE, UINT_FAST16_TYPE, UINT_FAST32_TYPE):
14667 Change the definition based on OPTION_MUSL for 64 bit targets.
14668 * config/linux.h (OPTION_MUSL): Redefine.
14669 * config/alpha/linux.h (OPTION_MUSL): Redefine.
14670 * config/rs6000/linux.h (OPTION_MUSL): Redefine.
14671 * config/rs6000/linux64.h (OPTION_MUSL): Redefine.
14672
14673 2015-05-08 Gregor Richards <gregor.richards@uwaterloo.ca>
14674 Szabolcs Nagy <szabolcs.nagy@arm.com>
14675
14676 * config.gcc (LIBC_MUSL): New tm_defines macro.
14677 * config/linux.h (OPTION_MUSL): Define.
14678 (MUSL_DYNAMIC_LINKER, MUSL_DYNAMIC_LINKER32,)
14679 (MUSL_DYNAMIC_LINKER64, MUSL_DYNAMIC_LINKERX32,)
14680 (INCLUDE_DEFAULTS_MUSL_GPP, INCLUDE_DEFAULTS_MUSL_LOCAL,)
14681 (INCLUDE_DEFAULTS_MUSL_PREFIX, INCLUDE_DEFAULTS_MUSL_CROSS,)
14682 (INCLUDE_DEFAULTS_MUSL_TOOL, INCLUDE_DEFAULTS_MUSL_NATIVE): Define.
14683 * config/linux.opt (mmusl): New option.
14684 * doc/invoke.texi (GNU/Linux Options): Document -mmusl.
14685 * configure.ac (gcc_cv_libc_provides_ssp): Add *-*-musl*.
14686 (gcc_cv_target_dl_iterate_phdr): Add *-linux-musl*.
14687 * configure: Regenerate.
14688
14689 2015-05-08 H.J. Lu <hongjiu.lu@intel.com>
14690 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
14691
14692 PR target/48904
14693 * config.gcc (x86_64-*-knetbsd*-gnu): Add i386/knetbsd-gnu64.h.
14694 * config/i386/knetbsd-gnu64.h: New file.
14695
14696 2015-05-08 Marek Polacek <polacek@redhat.com>
14697
14698 PR c/64918
14699 * doc/invoke.texi: Document -Woverride-init-side-effects.
14700
14701 2015-05-07 Marek Polacek <polacek@redhat.com>
14702
14703 PR c/65179
14704 * doc/invoke.texi: Document -Wshift-negative-value.
14705
14706 2015-05-06 Aditya Kumar <hiraditya@msn.com>
14707
14708 * gcov-tool.c (do_merge): Refactore to remove int ret.
14709 * ipa-icf.c (sem_item::hash_referenced_symbol_properties): Change
14710 !type == FUNC to type != FUNC.
14711 * reload.h (struct target_reload): Changee to type of
14712 x_spill_indirect_levels from bool to unsigned char.
14713
14714 2015-05-07 Richard Sandiford <richard.sandiford@arm.com>
14715
14716 * rtl.h (always_void_p): New function.
14717 * gengenrtl.c (always_void_p): Likewise.
14718 (genmacro): Don't add a mode parameter to gen_rtx_foo if rtxes
14719 with code foo are always VOIDmode.
14720 * genemit.c (gen_exp): Update gen_rtx_foo calls accordingly.
14721 * builtins.c, caller-save.c, calls.c, cfgexpand.c, combine.c,
14722 compare-elim.c, config/aarch64/aarch64.c,
14723 config/aarch64/aarch64.md, config/alpha/alpha.c,
14724 config/alpha/alpha.md, config/arc/arc.c, config/arc/arc.md,
14725 config/arm/arm-fixed.md, config/arm/arm.c, config/arm/arm.md,
14726 config/arm/ldrdstrd.md, config/arm/thumb2.md, config/arm/vfp.md,
14727 config/avr/avr.c, config/bfin/bfin.c, config/c6x/c6x.c,
14728 config/c6x/c6x.md, config/cr16/cr16.c, config/cris/cris.c,
14729 config/cris/cris.md, config/darwin.c, config/epiphany/epiphany.c,
14730 config/epiphany/epiphany.md, config/fr30/fr30.c, config/frv/frv.c,
14731 config/frv/frv.md, config/h8300/h8300.c, config/i386/i386.c,
14732 config/i386/i386.md, config/i386/sse.md, config/ia64/ia64.c,
14733 config/ia64/vect.md, config/iq2000/iq2000.c,
14734 config/iq2000/iq2000.md, config/lm32/lm32.c, config/lm32/lm32.md,
14735 config/m32c/m32c.c, config/m32r/m32r.c, config/m68k/m68k.c,
14736 config/m68k/m68k.md, config/mcore/mcore.c, config/mcore/mcore.md,
14737 config/mep/mep.c, config/microblaze/microblaze.c,
14738 config/mips/mips.c, config/mips/mips.md, config/mmix/mmix.c,
14739 config/mn10300/mn10300.c, config/msp430/msp430.c,
14740 config/nds32/nds32-memory-manipulation.c, config/nds32/nds32.c,
14741 config/nds32/nds32.md, config/nios2/nios2.c, config/nvptx/nvptx.c,
14742 config/pa/pa.c, config/pa/pa.md, config/rl78/rl78.c,
14743 config/rs6000/altivec.md, config/rs6000/rs6000.c,
14744 config/rs6000/rs6000.md, config/rs6000/vector.md,
14745 config/rs6000/vsx.md, config/rx/rx.c, config/rx/rx.md,
14746 config/s390/s390.c, config/s390/s390.md, config/sh/sh.c,
14747 config/sh/sh.md, config/sh/sh_treg_combine.cc,
14748 config/sparc/sparc.c, config/sparc/sparc.md, config/spu/spu.c,
14749 config/spu/spu.md, config/stormy16/stormy16.c,
14750 config/tilegx/tilegx.c, config/tilegx/tilegx.md,
14751 config/tilepro/tilepro.c, config/tilepro/tilepro.md,
14752 config/v850/v850.c, config/v850/v850.md, config/vax/vax.c,
14753 config/visium/visium.c, config/xtensa/xtensa.c, cprop.c, dse.c,
14754 expr.c, gcse.c, ifcvt.c, ira.c, jump.c, lower-subreg.c,
14755 lra-constraints.c, lra-eliminations.c, lra.c, postreload.c, ree.c,
14756 reg-stack.c, reload.c, reload1.c, reorg.c, sel-sched.c,
14757 var-tracking.c: Update calls accordingly.
14758
14759 2015-05-07 Segher Boessenkool <segher@kernel.crashing.org>
14760
14761 PR middle-end/192
14762 PR middle-end/54303
14763 * varasm.c (function_mergeable_rodata_prefix): New function.
14764 (mergeable_string_section): Use it.
14765 (mergeable_constant_section): Use it.
14766
14767 2015-05-07 Jeff Law <law@redhat.com>
14768
14769 PR target/39726
14770 * match.pd (bit_and (plus/minus (convert @0) (convert @1) mask): New
14771 simplifier to narrow arithmetic.
14772 * generic-match-head.c: (types_match, single_use): New functions.
14773 * gimple-match-head.c: (types_match, single_use): New functions.
14774
14775 2015-05-07 Venkataramanan Kumar <venkataramanan.kumar@amd.com>
14776
14777 * combine.c (make_compound_operation): Remove checks for PLUS/MINUS
14778 rtx type.
14779
14780 2015-05-07 Richard Biener <rguenther@suse.de>
14781
14782 PR tree-optimization/66002
14783 * passes.def: Schedule another pass_merge_phi after ifcombine, right
14784 before phiopt.
14785
14786 2015-05-07 Marek Polacek <polacek@redhat.com>
14787 Martin Uecker <uecker@eecs.berkeley.edu>
14788
14789 * doc/invoke.texi: Document -fsanitize=bounds-strict.
14790 * flag-types.h (enum sanitize_code): Add SANITIZE_BOUNDS_STRICT, or it
14791 into SANITIZE_NONDEFAULT.
14792 * opts.c (common_handle_option): Handle -fsanitize=bounds-strict.
14793
14794 2015-05-07 Uros Bizjak <ubizjak@gmail.com>
14795
14796 PR target/66015
14797 * config/alpha/alpha.c (alpha_override_options_after_change): New.
14798 (TARGET_OVERRIDE_OPTIONS_AFTER_CHANGE): New.
14799 (alpha_override_options): Move align_loops, align_jumps and
14800 align_functions handling into alpha_override_options_after_change.
14801
14802 2015-05-06 Sandra Loosemore <sandra@codesourcery.com>
14803 Chris Jones <chrisj@nvidia.com>
14804 Joshua Conner <jconner@nvidia.com>
14805
14806 * config/arm/unknown-elf.h (STARTFILE_SPEC): Add conditional
14807 linking of crtfastmath.o.
14808 * config/arm/linux-eabi.h (STARTFILE_SPEC): Likewise.
14809
14810 2015-05-06 Segher Boessenkool <segher@kernel.crashing.org>
14811
14812 * config/rs6000/rs6000.md (cstore<mode>4_signed_imm): New expander.
14813 (cstore<mode>4_unsigned_imm): New expander.
14814 (cstore<mode>4): Remove empty constraint strings. Use the new
14815 expanders.
14816
14817 2015-05-06 Yvan Roux <yvan.roux@linaro.org>
14818
14819 PR target/64208
14820 * config/arm/iwmmxt.md ("*iwmmxt_arm_movdi"): Cleanup redundant
14821 alternatives.
14822
14823 2015-05-06 Szabolcs Nagy <szabolcs.nagy@arm.com>
14824
14825 * config/aarch64/geniterators.sh: Use standard BRE in sed.
14826
14827 2015-05-06 Alan Modra <amodra@gmail.com>
14828
14829 PR target/66033
14830 * config/rs6000/rs6000.md (nop): Use an unspec pattern.
14831 (UNSPEC_NOP): Define.
14832 (reload_vsx_from_gpr<mode>): Add missing DONE.
14833 (reload_gpr_from_vsx<mode>): Likewise.
14834 * config/rs6000/vsx.md (vsx_mul_v2di): Likewise.
14835 (vsx_div_v2di, vsx_udiv_v2di): Likewise.
14836
14837 2015-05-06 Christian Bruel <christian.bruel@st.com>
14838
14839 PR target/66015
14840 * config/aarch64/aarch64.c (aarch64_override_options): Move align_loops,
14841 align_jumps, align_functions into aarch64_override_options_after_change.
14842
14843 2015-05-06 Richard Biener <rguenther@suse.de>
14844
14845 * tree-vect-slp.c (vect_supported_load_permutation_p): Use
14846 vect_transform_slp_perm_load to check if we support a permutation
14847 for basic-block vectorization.
14848
14849 2015-05-06 Nick Clifton <nickc@redhat.com>
14850
14851 * config/rl78/rl78.c (need_to_save): Save register 22 if it is
14852 used, even if it is not being used as a frame pointer.
14853
14854 2015-05-05 Jason Merrill <jason@redhat.com>
14855
14856 * dwarf2out.c (gen_member_die): Don't emit anything for an
14857 anonymous class constructor.
14858
14859 2015-05-05 David Malcolm <dmalcolm@redhat.com>
14860
14861 * auto-profile.c (afdo_find_equiv_class): Fix indentation so
14862 that it reflects the block structure.
14863 (afdo_propagate_edge): Likewise.
14864 (afdo_calculate_branch_prob): Likewise.
14865 (afdo_annotate_cfg): Likewise.
14866 * cfgcleanup.c (equal_different_set_p): Likewise.
14867 (try_crossjump_to_edge): Likewise.
14868 * cgraph.c (cgraph_node::verify_node): Likewise.
14869 * cgraphunit.c (expand_all_functions): Likewise.
14870 * config/i386/i386.c (ix86_expand_copysign): Likewise.
14871 (exact_dependency_1): Likewise.
14872 * dwarf2asm.c (dw2_output_indirect_constants): Likewise.
14873 * dwarf2out.c (tree_add_const_value_attribute_for_decl): Likewise.
14874 * gensupport.c (process_define_subst): Likewise.
14875 * lto-wrapper.c (merge_and_complain): Likewise.
14876 * tree-if-conv.c (if_convertible_bb_p): Likewise.
14877 * tree-ssa-loop-prefetch.c (find_or_create_group): Likewise.
14878 * tree-ssa-tail-merge.c (gsi_advance_fw_nondebug_nonlocal): Likewise.
14879 * tree-vect-data-refs.c (vect_grouped_load_supported): Likewise.
14880 * tree-vect-loop.c (vectorizable_reduction): Likewise.
14881 * tree-vect-slp.c (vect_transform_slp_perm_load): Likewise.
14882 * tree-vect-stmts.c (vectorizable_shift): Likewise.
14883 * tree-vrp.c (vrp_finalize): Likewise.
14884 * tree.c (variably_modified_type_p): Likewise.
14885
14886 2015-05-05 Jack Howarth <howarth.at.gcc@gmail.com>
14887
14888 * config.gcc: Use darwin9.h, darwin10.h and darwin12.h
14889 on darwin12 and later.
14890 * config/darwin12.h (LINK_GCC_C_SEQUENCE_SPEC): Add
14891 file to pass -rdynamic on darwin12 and later.
14892 * config/darwin.opt (rdynamic): Add.
14893
14894 2015-05-05 Uros Bizjak <ubizjak@gmail.com>
14895
14896 * doc/extend.texi (C Extensions): Update menu for moved Variable
14897 Attributes and Type Attributes sections.
14898
14899 2015-05-05 Uros Bizjak <ubizjak@gmail.com>
14900
14901 PR target/65990
14902 * config/i386/i386.c (ix86_parse_stringop_strategy_string): Error out
14903 if rep_8byte stringop strategy was specified for 32-bit target.
14904
14905 2015-05-05 Ilya Tocar <ilya.tocar@intel.com>
14906
14907 PR target/65915
14908 * config/i386/i386.md (vector convert to float spltiter): Check for
14909 xmm16+, when splitting scalar float conversion.
14910 * config/i386/sse.md (sse2_cvtsi2sd): Support EVEX version.
14911
14912 2015-05-05 Nick Clifton <nickc@redhat.com>
14913
14914 * config/msp430/msp430-opts.h (enum msp430_regions): New.
14915 * config/msp430/msp430.c (msp430_override_options): Complain if
14916 -mcode-region or -mdata-region is used on a non MSP430X.
14917 (msp430_section_attr): New function. Checks lower, upper and
14918 either attributes.
14919 (msp430_attribute_table): Add lower, upper and either.
14920 (gen_prefix): New function. Generates a prefix for a section
14921 name.
14922 (msp430_select_section): New function - handles the choice of
14923 section for an object. Takes into account memory region
14924 attributes and options.
14925 (msp430_function_section): Use gen_prefix.
14926 (TARGET_SECTION_TYPE_FLAGS): Define.
14927 (msp430_section_type_flags): New function.
14928 (TARGET_ASM_UNIQUE_SECTION): Define.
14929 (msp430_unique_section): New function.
14930 (msp430_output_aligned_decl_common): New function.
14931 (msp430_do_not_relax_short_jumps): New function.
14932 * config/msp430/msp430.h (USE_SELECT_SECTION_FOR_FUNCTIONS):
14933 Define.
14934 (ASM_OUTPUT_ALIGNED_DECL_COMMON): Define.
14935 * config/msp430/msp430-protos.h
14936 (msp430_do_not_relax_short_jumps): New prototype.
14937 (msp430_output_aligned_decl_common): New prototype.
14938 * config/msp430/msp430.md (length): New attribute.
14939 (cbranchhi4_real): If msp430_do_not_relax_short_jumps is true
14940 then use a long code sequence for short jumps.
14941 * config/msp430/msp430.opt (mcode-region): New.
14942 (mdata-region): New.
14943 * doc/invoke.texi: Document new options.
14944 * doc/extend.texi: Document new attributes.
14945
14946 2015-05-05 Matthew Wahab <matthew.wahab@arm.com>
14947
14948 * gcc/config/aarch64-protos.h (struct cpu_branch_cost): New.
14949 (tune_params): Add field branch_costs.
14950 (aarch64_branch_cost): Declare.
14951 * gcc/config/aarch64.c (generic_branch_cost): New.
14952 (generic_tunings): Set field cpu_branch_cost to generic_branch_cost.
14953 (cortexa53_tunings): Likewise.
14954 (cortexa57_tunings): Likewise.
14955 (thunderx_tunings): Likewise.
14956 (xgene1_tunings): Likewise.
14957 (aarch64_branch_cost): Define.
14958 * gcc/config/aarch64/aarch64.h (BRANCH_COST): Redefine.
14959
14960 2015-05-05 Uros Bizjak <ubizjak@gmail.com>
14961
14962 * config/i386/i386.c: Use HOST_WIDE_INT_1 instead of (HOST_WIDE_INT) 1
14963 and HOST_WIDE_INT_1U instead of (unsigned HOST_WIDE_INT) 1.
14964 * config/i386/i386.md: Ditto.
14965 * config/i386/winnt.c: Ditto.
14966
14967 2015-05-05 Matthew Wahab <matthew.wahab@arm.com>
14968
14969 * doc/extend.texi (__atomic Builtins): Move implementation details
14970 to the end of the description, rewrite opening paragraphs, state
14971 difference with __sync builtins, state C11/C++11 assumptions,
14972 weaken itemized descriptions, add explanation of memory model
14973 behaviour, expand description of compare-exchange, simplify text.
14974
14975 2015-05-05 Renlin Li <renlin.li@arm.com>
14976
14977 * config/aarch64/aarch64.md (add<mode>3): Use mov when allowed.
14978
14979 2015-05-05 Yvan Roux <yvan.roux@linaro.org>
14980
14981 * config/aarch64/aarch64-elf-raw.h (CA53_ERR_843419_SPEC): Define.
14982 (LINK_SPEC): Include CA53_ERR_843419_SPEC.
14983 * config/aarch64/aarch64-linux.h (CA53_ERR_843419_SPEC): Define.
14984 (LINK_SPEC): Include CA53_ERR_843419_SPEC.
14985 * config/aarch64/aarch64.opt (mfix-cortex-a53-843419): New option.
14986 * configure: Regenerate.
14987 * configure.ac: Add --enable-fix-cortex-a53-843419 option.
14988 * doc/install.texi (aarch64*-*-*): Document new
14989 --enable-fix-cortex-a53-843419 option.
14990 * doc/invoke.texi (AArch64 Options): Document -mfix-cortex-a53-843419
14991 and -mno-fix-cortex-a53-843419 options.
14992
14993 2015-05-05 Uros Bizjak <ubizjak@gmail.com>
14994
14995 PR target/65871
14996 * config/i386/i386.md (*bmi_andn_<mode>_ccno): New pattern.
14997
14998 2015-05-04 Jan Hubicka <hubicka@ucw.cz>
14999
15000 * tree.c (verify_type): Check various uses of TYPE_MAXVAL;
15001 fix overactive TYPE_MIN_VALUE check and add FIXME for type
15002 compatibility problems.
15003
15004 2015-05-04 Ajit Agarwal <ajitkum@xilinx.com>
15005
15006 * config/microblaze/microblaze.md (cbranchsi4): Added immediate
15007 constraints.
15008 (cbranchsi4_reg): New.
15009 * config/microblaze/microblaze.c
15010 (microblaze_expand_conditional_branch_reg): New.
15011 * config/microblaze/microblaze-protos.h
15012 (microblaze_expand_conditional_branch_reg): New prototype.
15013
15014 2015-05-04 Ajit Agarwal <ajitkum@xilinx.com>
15015
15016 * config/microblaze/microblaze.md (peephole2): New.
15017
15018 2015-05-04 Jeff Law <law@redhat.com>
15019
15020 Revert:
15021 2015-05-04 Jeff Law <law@redhat.com>
15022
15023 * match.pd (bit_and (plus/minus (convert @0) (convert @1) mask): New
15024 simplifier to narrow arithmetic.
15025 * generic-match-head.c: (types_match, single_use): New functions.
15026 * gimple-match-head.c: (types_match, single_use): New functions.
15027
15028 2015-05-04 Kaz Kojima <kkojima@gcc.gnu.org>
15029
15030 PR target/65987
15031 * config/sh/sh.c (output_far_jump): Take into account crossing jumps.
15032 (split_branches): Likewise.
15033
15034 2015-05-04 Sandra Loosemore <sandra@codesourcery.com>
15035
15036 * common.opt (fdelete-null-pointer-checks): Init to -1.
15037 * config/nios2/elf.h (SUBTARGET_OVERRIDE_OPTIONS): Define to
15038 override flag_delete_null_pointer_checks default.
15039 * doc/invoke.texi (-fdelete-null-pointer-checks): Clarify
15040 behavior re address zero. Better document target-specific behavior.
15041 (-fisolate-errneous-paths-dereference): Mention relationship to
15042 -fdelete-null-pointer-checks.
15043
15044 2015-05-04 Jakub Jelinek <jakub@redhat.com>
15045
15046 PR tree-optimization/65984
15047 * ubsan.c: Include tree-cfg.h.
15048 (instrument_bool_enum_load): Use stmt_ends_bb_p instead of
15049 stmt_could_throw_p test, rename can_throw variable to ends_bb.
15050
15051 2015-05-04 Uros Bizjak <ubizjak@gmail.com>
15052
15053 * config/i386/i386.c: Change GET_CODE (...) == CONST_DOUBLE check
15054 to CONST_DOUBLE_P predicate.
15055 (standard_sse_constant_p): Return 0 for !TARGET_SSE.
15056 (ix86_legitimate_constant_p) <case CONST_WIDE_INT>: For 32bit targets,
15057 allow only operands that satisfy standard_sse_constant_p predicate.
15058 * config/i386/i386.md: Change GET_CODE (...) == CONST_DOUBLE check
15059 to CONST_DOUBLE_P predicate.
15060
15061 2015-05-04 Jeff Law <law@redhat.com>
15062
15063 * match.pd (bit_and (plus/minus (convert @0) (convert @1) mask): New
15064 simplifier to narrow arithmetic.
15065 * generic-match-head.c: (types_match, single_use): New functions.
15066 * gimple-match-head.c: (types_match, single_use): New functions.
15067
15068 2015-05-04 Andreas Tobler <andreast@gcc.gnu.org>
15069
15070 * config/arm/arm.c: Restore bootstrap.
15071
15072 2015-05-04 Uros Bizjak <ubizjak@gmail.com>
15073
15074 * config/i386/i386.h (TARGET_SUPPORTS_WIDE_INT): New define.
15075 * config/i386/i386.c (ix86_legitimate_constant_p): Handle TImode
15076 as CONST_WIDE_INT, not CONST_DOUBLE.
15077 (ix86_cannot_force_const_mem): Handle CONST_WIDE_INT.
15078 (output_pic_addr_const): Do not handle VOIDmode CONST_DOUBLEs.
15079 (ix86_find_base_term): Do not check for CONST_DOUBLE.
15080 (ix86_print_operand): Do not handle non-FPmode CONST_DOUBLEs.
15081 (ix86_build_signbit_mask): Rewrite using wide ints.
15082 (ix86_split_to_parts) [HOST_BITS_PER_WIDE_INT < 64]: Remove.
15083 (ix86_rtx_costs): Handle CONST_WIDE_INT.
15084 (find_constant): Ditto.
15085 * config/i386/i386.md (bts, btr, btc peepholes): Rewrite
15086 using gen_int_mode.
15087 * config/i386/predicates.md (x86_64_immediate_operand)
15088 <case CONST_INT>: Remove HOST_BITS_PER_WIDE_INT == 32 code.
15089 (x86_64_zext_immediate_operand): Remove CONST_DOUBLE handling.
15090 <case CONST_INT>: Remove HOST_BITS_PER_WIDE_INT == 32 code.
15091 (const0_operand): Also match const_wide_int.
15092 (constm1_operand): Ditto.
15093 (const1_operand): Ditto.
15094
15095 2015-05-04 Richard Biener <rguenther@suse.de>
15096
15097 PR tree-optimization/65965
15098 * tree-vect-data-refs.c (vect_analyze_data_ref_accesses): Split
15099 store groups at gaps.
15100
15101 2015-05-04 Richard Biener <rguenther@suse.de>
15102
15103 PR tree-optimization/65935
15104 * tree-vect-slp.c (vect_build_slp_tree): If we swapped operands
15105 then make sure to apply that swapping to the IL.
15106
15107 2015-05-04 Jakub Jelinek <jakub@redhat.com>
15108
15109 * Makefile.in (PATCHLEVEL_c): New variable.
15110 (DATESTAMP_s, REVISION_s): If PATCHLEVEL_c is not 0,
15111 expand the same way as if DEVPHASE_c was non-empty.
15112
15113 2015-05-04 Kai Tietz <ktietz@redhat.com>
15114
15115 PR target/65559
15116 * lto-wrapper.c (run_gcc): Open filename
15117 in binary-mode.
15118
15119 2015-05-03 Sandra Loosemore <sandra@codesourcery.com>
15120
15121 * doc/extend.texi (Variable Attributes, Type Attributes): Move
15122 sections up in file, to immediately after the Function Attributes
15123 section.
15124
15125 2015-05-02 Jan Hubicka <hubicka@ucw.cz>
15126
15127 * tree.c (verify_type): Check various uses of TYPE_MINVAL.
15128
15129 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
15130
15131 * tree-outof-ssa.c (emit_partition_copy): Return rtx_insn *.
15132 (insert_partition_copy_on_edge): Adjust.
15133 (insert_rtx_to_part_on_edge): Likewise.
15134 (insert_part_to_rtx_on_edge): Likewise.
15135
15136 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
15137
15138 * function.c (set_return_jump_label): Change type of argument to
15139 rtx_insn *.
15140 * function.h (set_return_jump_label): Adjust.
15141
15142 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
15143
15144 * reload.h (struct reg_equivs_t): Change type of init to
15145 rtx_insn *.
15146 * ira.c (fix_reg_equiv_init): Adjust.
15147 * reload1.c (eliminate_regs_1): Likewise.
15148 (init_eliminable_invariants): Likewise.
15149
15150 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
15151
15152 * cselib.c (fp_setter_insn): Take a rtx_insn *.
15153 * cselib.h (fp_setter_insn): Adjust.
15154
15155 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
15156
15157 * recog.c (struct validate_replace_src_data): Change type of
15158 insn field to rtx_insn *.
15159 (validate_replace_src_group): Change type of argument to rtx_insn *.
15160 * recog.h (validate_replace_src_group): Adjust.
15161
15162 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
15163
15164 * haifa-sched.c: Change the type of some variables to rtx_insn *.
15165 * sched-deps.c: Likewise.
15166 * sched-int.h: Likewise.
15167 * sched-rgn.c: Likewise.
15168 * sel-sched.c: Likewise.
15169
15170 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
15171
15172 to rtx_insn *.
15173 * config/i386/i386.c: Change the type of some arguments to
15174 rtx_insn *.
15175 * config/arm/arm.c: Likewise.
15176
15177 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
15178
15179 * lra-constraints.c: Change type of some arguments to rtx_insn *.
15180
15181 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
15182
15183 * regcprop.c (kill_autoinc_value): Change type of argument to
15184 rtx_insn *.
15185
15186 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
15187
15188 * genrecog.c (print_subroutine): Adjust.
15189 * recog.c (get_bool_attr_mask_uncached): Likewise.
15190 * recog.h (struct recog_data_d): Change the type of insn to
15191 rtx_insn *.
15192
15193 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
15194
15195 * dwarf2cfi.c (add_cfi_insn): Change type to rtx_insn *.
15196
15197 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
15198
15199 * df-problems.c (df_set_note): Change type of argument to
15200 rtx_insn *.
15201
15202 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
15203
15204 * builtins.c (expand_builtin_trap): Change type of local
15205 variable to rtx_insn *.
15206 (add_sched_insns_for_speculation): Likewise.
15207 (ix86_emit_save_regs): Likewise.
15208 (get_scratch_register_on_entry): Likewise.
15209 (ix86_emit_restore_reg_using_pop): Likewise.
15210 (ix86_emit_leave): Likewise.
15211 (ix86_emit_restore_regs_using_mov): Likewise.
15212 (ix86_expand_epilogue): Likewise.
15213 Likewise.
15214 (rl78_alloc_physical_registers_umul): Likewise.
15215 * cselib.c (discard_useless_locs): Likewise.
15216 (cselib_invalidate_regno): Likewise.
15217 (cselib_invalidate_mem): Likewise.
15218 * function.c (expand_function_start): Likewise.
15219 (emit_use_return_register_into_block): Likewise.
15220 * gcse.c: Likewise.
15221 * haifa-sched.c (ok_for_early_queue_removal): Likewise.
15222 * ifcvt.c (noce_get_alt_condition): Likewise.
15223 * loop-doloop.c (doloop_condition_get): Likewise.
15224 * lra-constraints.c (inherit_in_ebb): Likewise.
15225 * modulo-sched.c (sms_schedule_by_order): Likewise.
15226 * recog.c (next_insn_tests_no_inequality): Likewise.
15227 * reorg.c (emit_delay_sequence): Likewise.
15228 (update_reg_dead_notes): Likewise.
15229 (fix_reg_dead_note): Likewise.
15230 (fill_slots_from_thread): Likewise.
15231 (delete_computation): Likewise.
15232
15233 2015-05-01 Sandra Loosemore <sandra@codesourcery.com>
15234
15235 * doc/extend.texi (Variable Attributes): Add menu and proper
15236 @nodes to subsections. Move Microsoft Windows attributes to
15237 their own subsection.
15238 (Type Attributes): Reorganize introduction to remove duplicate
15239 list of attributes. Add menu and proper @nodes to subsections.
15240 Alphabetize the main table of common attributes.
15241
15242 2015-05-01 Rasmus Villemoes <rv@rasmusvillemoes.dk>
15243
15244 * match.pd: New simplification patterns.
15245 (x + (x & 1)) -> ((x + 1) & ~1)
15246 (x & ~(x & y)) -> ((x & ~y))
15247 (x | ~(x | y)) -> ((x | ~y))
15248
15249 2015-05-01 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
15250
15251 * target.def (attribute_table): Mention that struct attribute_spec
15252 is defined in tree-core.h rather than tree.h
15253 * doc/tm.texi: Regenerate.
15254
15255 2015-05-01 Richard Sandiford <richard.sandiford@arm.com>
15256
15257 * genrecog.c (test): Rename to rtx_test. Update rest of file
15258 accordingly.
15259
15260 2015-05-01 Andreas Schwab <schwab@linux-m68k.org>
15261
15262 PR translation/65959
15263 * params.h (DEFPARAM): Rename msgid to nocmsgid.
15264
15265 2015-05-01 Wilco Dijkstra <wdijkstr@arm.com>
15266
15267 * gcc/config/aarch64/aarch64-protos.h (tune_params):
15268 Add min_div_recip_mul_sf and min_div_recip_mul_df fields.
15269 * gcc/config/aarch64/aarch64.c (aarch64_min_divisions_for_recip_mul):
15270 Return value depending on target.
15271 (generic_tunings): Initialize new target settings.
15272 (cortexa53_tunings): Likewise.
15273 (cortexa57_tunings): Likewise.
15274 (thunderx_tunings): Likewise.
15275 (xgene1_tunings): Likewise.
15276
15277 2015-05-01 Wilco Dijkstra <wdijkstr@arm.com>
15278
15279 * gcc/config/arm/aarch-cost-tables.h (cortexa53_extra_costs):
15280 Make Cortex-A53 shift costs more accurate.
15281
15282 2015-05-01 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
15283
15284 * config/aarch64/aarch64.c (aarch64_rtx_costs): Handle FLOAT and
15285 UNSIGNED_FLOAT.
15286
15287 2015-05-01 Wilco Dijkstra <wdijkstr@arm.com>
15288
15289 * gcc/config/aarch64/aarch64.c (aarch64_rtx_costs):
15290 Calculate cost of op0 and op1 in PLUS and MINUS cases.
15291
15292 2015-05-01 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
15293
15294 * config/aarch64/aarch64.c (aarch64_rtx_costs, COMPARE case):
15295 Add cost of op0 in the compare-with-fpzero case.
15296
15297 2015-04-30 David Malcolm <dmalcolm@redhat.com>
15298
15299 * builtins.c (fold_builtin_1): Remove spurious second
15300 semicolon.
15301 * cgraph.h (symtab_node::get_availability): Likewise.
15302 * opts.c (common_handle_option): Remove spurious second semicolon.
15303 * tree-ssa-loop-ivopts.c (extract_cond_operands): Likewise.
15304 * tree-ssa-loop-niter.c (derive_constant_upper_bound_ops): Likewise.
15305
15306 2015-04-30 Caroline Tice <cmtice@google.com>
15307
15308 PR gcov-profile/65929
15309 * config/elfos.h (ASM_DECLARE_COLD_FUNCTION_NAME): New macro definition.
15310 (ASM_DECLARE_COLD_FUNCTION_SIZE): New macro definition.
15311 * doc/tm.texi.in (ASM_DECLARE_COLD_FUNCTION_NAME): Document new macro.
15312 (ASM_DECLARE_COLD_FUNCTION_SIZE): Document new macro.
15313 * doc/tm.texi: Regenerate.
15314 * final.c (final_scan_insn): Use ASM_DECLARE_COLD_FUNCTION_NAME
15315 instead of ASM_DECLARE_FUNCTION_NAME for cold partition name.
15316 * varasm.c (assemble_end_function): Use ASM_DECLARE_COLD_FUNCTION_SIZE
15317 instead of ASM_DECLARE_FUNCTION_SIZE for cold partition size.
15318
15319 2015-04-30 Marek Polacek <polacek@redhat.com>
15320
15321 * varasm.c (handle_cache_entry): Fix logic.
15322
15323 2015-04-30 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
15324
15325 * config/aarch64/aarch64.md (*extr<mode>5_insn_alt): New pattern.
15326 (*extrsi5_insn_uxtw_alt): Likewise.
15327 * config/aarch64/aarch64.c (aarch64_extr_rtx_p): New function.
15328 (aarch64_rtx_costs, IOR case): Use above to properly cost extr
15329 operations.
15330
15331 2015-04-30 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
15332
15333 * config/aarch64/aarch64.c (aarch64_rtx_costs): Handle pattern for
15334 fabd in ABS case.
15335
15336 2015-04-30 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
15337
15338 * config/aarch64/aarch64.md
15339 (*eor_one_cmpl_<SHIFT:optab><mode>3_alt): New pattern.
15340 (*eor_one_cmpl_<SHIFT:optab>sidi3_alt_ze): Likewise.
15341 * config/aarch64/aarch64.c (aarch64_rtx_costs): Handle MVN-shift
15342 appropriately. Handle alternative EON form.
15343
15344 2015-04-30 Renlin Li <renlin.li@arm.com>
15345
15346 * config/aarch64/aarch64-simd.md (vec_shr): Defined as an unspec.
15347 * config/aarch64/iterators.md (unspec): Add UNSPEC_VEC_SHR.
15348
15349 2015-04-30 Jan Hubicka <hubicka@ucw.cz>
15350
15351 PR ipa/65873
15352 * ipa-inline.c (can_inline_edge_p): It is safe to inline across
15353 -fstrict-aliasing boundaries.
15354
15355 2015-04-30 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
15356
15357 * config/aarch64/aarch64.c (aarch64_rtx_mult_cost): Handle MNEG
15358 and [SU]MNEGL patterns.
15359
15360 2015-04-30 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
15361
15362 * config/aarch64/aarch64.c (aarch64_shift_p): New function.
15363 (aarch64_rtx_mult_cost): Update comment to reflect that it also handles
15364 combined arithmetic-shift ops. Properly handle all shift and extend
15365 operations that can occur in combination with PLUS/MINUS.
15366 Rename maybe_fma to compound_p.
15367 (aarch64_rtx_costs): Use aarch64_shift_p when costing compound
15368 arithmetic and shift operations.
15369
15370 2015-04-30 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
15371
15372 * config/aarch64/aarch64.c (aarch64_rtx_costs): Use extend_arith
15373 rather than arith_shift cost when costing ADD/MINUS of an
15374 extended value.
15375
15376 2015-04-30 Jan Hubicka <hubicka@ucw.cz>
15377
15378 PR lto/65948
15379 * ipa-devirt.c (odr_types_equivalent_p): NULLPTR_TYPE is equivalent
15380 to itself.
15381
15382 2015-04-30 Richard Sandiford <richard.sandiford@arm.com>
15383
15384 * genrecog.c (simplify_tests): Check that CONST_INT and XWINT tests
15385 are for the same position.
15386
15387 2015-04-29 Aditya Kumar <hiraditya@hotmail.com>
15388
15389 * tree-vectorizer.c (set_uid_loop_bbs): New. Factored out of
15390 vectorize_loops.
15391 (vectorize_loops): Use it.
15392
15393 2015-04-29 Jan Hubicka <hubicka@ucw.cz>
15394
15395 * ipa-devirt.c (odr_subtypes_equivalent_p): Compare TYPE_NAME only
15396 for aggregate types.
15397 (register_odr_type): Be ready for MAIN_VARIANT of ODR type
15398 type to be non_ODR.
15399 * tree.c (need_assembler_name_p): Compute mangled name for
15400 non-fundamental types and integer types.
15401
15402 2015-04-29 Mikhail Maltsev <maltsevm@gmail.com>
15403
15404 * dojump.c (do_compare_rtx_and_jump): Use std::swap instead of
15405 manual swaps.
15406 * expr.c (expand_expr_real_2): Likewise.
15407
15408 2015-04-29 Jan Hubicka <hubicka@ucw.cz>
15409
15410 * tree.c (build_common_builtin_nodes): Do not build
15411 __builtin_alloca_with_align as equivalent of library alloca.
15412
15413 2015-04-29 Jan Hubicka <hubicka@ucw.cz>
15414
15415 * dwarf2out.c (gen_type_die_with_usage): Call verify_type.
15416 * ipa-chkp.c (chkp_copy_function_type_adding_bounds): Do not produce
15417 bugus variants.
15418 * tree.c: Include print-tree.h and ipa-utils.h
15419 (free_lang_data_in_type): Clear TYPE_VFIELD leaked by C FE.
15420 (free_lang_data_in_cgraph): Call verify_type.
15421 (verify_type_variant): New function.
15422 (verify_type): New function.
15423 * tree.h (verify_type): Declare.
15424
15425 2015-04-29 Steve Ellcey <sellcey@imgtec.com>
15426
15427 * config/mips/mips-cpus.def: (mips4): Change default processor
15428 from PROCESSOR_R8000 to PROCESSOR_R10000.
15429
15430 2015-04-29 Petar Jovanovic <petar.jovanovic@rt-rk.com>
15431
15432 * config/mips/mips.h (CRT_CALL_STATIC_FUNCTION): Fix the macro to use
15433 la/jalr instead of jal.
15434
15435 2015-04-29 Uros Bizjak <ubizjak@gmail.com>
15436
15437 PR target/65871
15438 * config/i386/i386.md (*bmi_bextr_<mode>_ccz): New pattern.
15439 (*bmi2_bzhi_<mode>3_1_ccz): Ditto.
15440 (setcc+movzbl peephole2): Check also clobbered reg.
15441 (setcc+andl peephole2): Ditto.
15442
15443 2015-04-29 Thomas Schwinge <thomas@codesourcery.com>
15444
15445 PR libgomp/65099
15446 * config/nvptx/mkoffload.c (target_ilp32): New variable.
15447 (main): Set it depending on "-foffload-abi=[...]".
15448 (compile_native, main): Use it to pass "-m32" or "-m64" to the
15449 compiler.
15450
15451 2015-04-29 Alan Lawrence <alan.lawrence@arm.com>
15452
15453 PR target/65770
15454 * config/aarch64/aarch64-simd.md (vec_store_lanesoi_lane<mode>,
15455 vec_store_lanesci_lane<mode>, vec_store_lanesxi_lane<mode>):
15456 Flip lane index back at assembly time for bigendian.
15457
15458 2015-04-29 Thomas Schwinge <thomas@codesourcery.com>
15459
15460 * tree.h (OMP_STANDALONE_CLAUSES): New macro.
15461 * gimplify.c (gimplify_omp_workshare): Use it.
15462
15463 2015-04-29 Richard Sandiford <richard.sandiford@arm.com>
15464
15465 * Makefile.in (build/genrecog.o): Depend on inchash.h.
15466 (build/genrecog$(build_exeext): Depend on build/hash-table.o and
15467 build/inchash.o
15468 * genrecog.c: Rewrite most of the code except for the third page.
15469
15470 2015-04-29 Richard Sandiford <richard.sandiford@arm.com>
15471
15472 * inchash.h, inchash.c: Include bconfig.h for build objects.
15473 * Makefile.in (build/inchash.o): New rule.
15474
15475 2015-04-29 Yvan Roux <yvan.roux@linaro.org>
15476
15477 PR target/65924
15478 * config/arm/thumb2.md (*thumb2_addsi3_compare0_scratch): Fix operand
15479 number in type attribute expression.
15480
15481 2015-04-29 Richard Sandiford <richard.sandiford@arm.com>
15482
15483 * loop-iv.c (canon_condition): Generalize to all types of integer
15484 constant.
15485
15486 2015-04-29 Bernhard Reuther-Fischer <aldot@gcc.gnu.org>
15487
15488 * gimple-walk.c: Prune duplicate or unneeded includes.
15489 (walk_gimple_asm): Only call parse_input_constraint or
15490 parse_output_constraint if their findings are used.
15491 Honour parse_input_constraint and parse_output_constraint
15492 result.
15493
15494 2015-04-29 Alan Lawrence <alan.lawrence@arm.com>
15495
15496 * config/arm/neon.md (vec_shl<mode>, vec_shr<mode>): Remove.
15497
15498 2015-04-29 Tom de Vries <tom@codesourcery.com>
15499
15500 PR tree-optimization/65893
15501 * passes.def (pass_all_optimizations): Move pass_stdarg to after
15502 pass_dce.
15503
15504 2015-04-29 Richard Biener <rguenther@suse.de>
15505
15506 * tree-vect-data-refs.c (vect_analyze_group_access): Properly
15507 compute GROUP_SIZE for basic-block SLP.
15508 * tree-vect-slp.c (vect_get_place_in_interleaving_chain): Properly
15509 take into account gaps.
15510 (vect_get_mask_element): Properly reject references to previous
15511 vectors.
15512 (vect_transform_slp_perm_load): Likewise.
15513
15514 2015-04-29 Christian Bruel <christian.bruel@st.com>
15515
15516 PR target/64835
15517 * config/i386/i386.c (ix86_default_align): New function.
15518 (ix86_override_options_after_change): Call ix86_default_align.
15519 (TARGET_OVERRIDE_OPTIONS_AFTER_CHANGE): New hook.
15520 (ix86_override_options_after_change): New function.
15521
15522 2015-04-28 Jeff Law <law@redhat.com>
15523
15524 * tree-ssa-dom.c (record_equality); Fix comment typos.
15525
15526 2015-04-28 Tom de Vries <tom@codesourcery.com>
15527
15528 PR tree-optimization/65887
15529 * gimplify.c (gimplify_modify_expr): Remove ifn_va_arg ap fixup.
15530
15531 2015-04-28 Sandra Loosemore <sandra@codesourcery.com>
15532
15533 * doc/extend.texi (Declaring Attributes of Functions): Split into
15534 subsections by target. Alphabetize the table of common attributes.
15535 Rewrite some of the introductory text to reflect the new structure.
15536 Update some cross-references to point to the new subsections.
15537 (Attribute Syntax): Put paragraph about "__" naming here. Remove
15538 duplicate copies in the discussion of function, label, and type
15539 attributes.
15540
15541 2015-04-28 Dominique d'Humieres <dominiq@lps.ens.fr>
15542
15543 PR bootstrap/65910
15544 * varasm.c (assemble_end_function): Guard ASM_DECLARE_FUNCTION_SIZE.
15545
15546 2015-04-28 Jason Merrill <jason@redhat.com>
15547
15548 PR c++/65734
15549 * stor-layout.c (layout_type): Layout the TYPE_MAIN_VARIANT.
15550 (finalize_type_size): Respect TYPE_USER_ALIGN.
15551 (layout_type) [ARRAY_TYPE]: Likewise.
15552
15553 2015-04-28 Yvan Roux <yvan.roux@linaro.org>
15554
15555 * config/arm/arm.md (*arm_movt): Fix type attribute.
15556 (*cmpsi_shiftsi): Likewise.
15557 (*cmpsi_shiftsi_swp): Likewise.
15558 (*movsicc_insn): Likewise.
15559 (*cond_move): Likewise.
15560 (*if_plus_move): Likewise.
15561 (*if_move_plus): Likewise.
15562 (*if_arith_move): Likewise.
15563 (*if_move_arith): Likewise.
15564 (*if_shift_move): Likewise.
15565 (*if_move_shift): Likewise.
15566 (*arm_movtas_ze): Likewise.
15567 * config/arm/thumb2.md (*thumb2_movsicc_insn): Fix alternative
15568 redundancy and type attribute.
15569 (*thumb2_movsi_insn): Fix type attribute.
15570 (*thumb2_addsi_short): Likewise.
15571 (thumb2_addsi3_compare0): Likewise.
15572 (*thumb2_addsi3_compare0_scratch): Merge alternatives and fix
15573 attributes accordingly.
15574
15575 2015-04-28 Markus Trippelsdorf <markus@trippelsdorf.de>
15576
15577 PR other/65911
15578 * function.c (pad_to_arg_alignment): Add parentheses.
15579
15580 2015-04-28 Uros Bizjak <ubizjak@gmail.com>
15581
15582 * config/frv/frv.h (CRT_GET_RFIB_DATA): Move definition to
15583 libgcc/config/frv/elf-lib.h.
15584
15585 2015-04-28 Tom de Vries <tom@codesourcery.com>
15586
15587 * tree-call-cdce.c: Fix example in header comment.
15588
15589 2015-04-28 Richard Biener <rguenther@suse.de>
15590
15591 PR tree-optimization/62283
15592 * tree-vect-slp.c (vect_build_slp_tree): When the SLP build
15593 fails fatally and we are vectorizing a basic-block simply
15594 cause the child to be constructed piecewise.
15595 (vect_analyze_slp_cost_1): Adjust.
15596 (vect_detect_hybrid_slp_stmts): Likewise.
15597 (vect_bb_slp_scalar_cost): Likewise.
15598 (vect_get_constant_vectors): For piecewise constructed
15599 constants place them after the last def.
15600 (vect_get_slp_defs): Adjust.
15601 * tree-vect-stmts.c (vect_is_simple_use): Detect in-BB
15602 externals for basic-block vectorization.
15603
15604 2015-04-28 Thomas Preud'homme <thomas.preudhomme@arm.com>
15605
15606 PR target/63503
15607 * config.gcc: Add cortex-a57-fma-steering.o to extra_objs for
15608 aarch64-*-*.
15609 * config/aarch64/t-aarch64: Add a rule for cortex-a57-fma-steering.o.
15610 * config/aarch64/aarch64.h (AARCH64_FL_USE_FMA_STEERING_PASS): Define.
15611 (AARCH64_TUNE_FMA_STEERING): Likewise.
15612 * config/aarch64/aarch64-cores.def: Set
15613 AARCH64_FL_USE_FMA_STEERING_PASS for cores with dynamic steering of
15614 FMUL/FMADD instructions.
15615 * config/aarch64/aarch64.c (aarch64_register_fma_steering): Declare.
15616 (aarch64_override_options): Include cortex-a57-fma-steering.h. Call
15617 aarch64_register_fma_steering () if AARCH64_TUNE_FMA_STEERING is true.
15618 * config/aarch64/cortex-a57-fma-steering.h: New file.
15619 * config/aarch64/cortex-a57-fma-steering.c: Likewise.
15620
15621 2015-04-28 Richard Sandiford <richard.sandiford@arm.com>
15622
15623 * gensupport.c (std_preds): Add missing codes to address_operand entry.
15624
15625 2015-04-28 Richard Biener <rguenther@suse.de>
15626
15627 PR tree-optimization/65851
15628 * tree-ssa-ccp.c (set_lattice_value): Perform a meet when
15629 changing CONSTANT to CONSTANT non-copy. Get new_val by reference.
15630 (ccp_lattice_meet): Remove stray argument. Use operand_equal_p
15631 rather than simple_cst_equal as the latter doesn't handle COMPLEX_CST.
15632 (ccp_visit_phi_node): Adjust.
15633 (evaluate_stmt): For simplifications to SSA names return its
15634 lattice value if that isn't VARYING. Return immediately when
15635 simplified to a constant.
15636 (visit_assignment): Adjust.
15637 (ccp_visit_stmt): Likewise.
15638
15639 2015-04-28 Tom de Vries <tom@codesourcery.com>
15640
15641 PR tree-optimization/65818
15642 * tree-stdarg.c (expand_ifn_va_arg_1): Ensure that side-effects are
15643 evaluated.
15644
15645 2015-04-27 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
15646
15647 * calls.c (save_fixed_argument_area): Don't check
15648 ARGS_GROW_DOWNWARD with the preprocessor.
15649 (restore_fixed_argument_area): Likewise.
15650 (mem_overlaps_already_clobbered_arg_p): Likewise.
15651 (check_sibcall_argument_overlap): Likewise.
15652 (expand_call): Likewise.
15653 (emit_library_call_value_1): Likewise.
15654 (store_one_arg): Likewise.
15655 * function.c (assign_parms): Likewise.
15656 (locate_and_pad_parm): Likewise.
15657 (pad_to_arg_alignment): Likewise.
15658 * targhooks.c (std_gimplify_va_arg_expr): Likewise.
15659
15660 2015-04-27 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
15661
15662 * config/pa/pa.h (ARGS_GROW_DOWNWARD): Define to 1.
15663 * defaults.h (ARGS_GROW_DOWNWARD): Define it to 0 by default.
15664 * calls.c (save_fixed_argument_area): Don't chekc if
15665 ARGS_GROW_DOWNWARD is defined.
15666 (restore_fixed_argument_area): Likewise.
15667 (mem_overlaps_already_clobbered_arg_p): Likewise.
15668 (check_sibcall_argument_overlap): Likewise.
15669 (expand_call): Likewise.
15670 (emit_library_call_value_1): Likewise.
15671 (store_one_arg): Likewise.
15672 * function.c (assign_parms): Likewise.
15673 (locate_and_pad_parm): Likewise.
15674 (pad_to_arg_alignment): Likewise.
15675 * targhooks.c (std_gimplify_va_arg_expr): Likewise.
15676
15677 2015-04-27 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
15678
15679 * defaults.h (gen_epilogue): New function.
15680 * alias.c (init_alias_analysis): don't check if HAVE_epilogue is
15681 defined.
15682 * cfgrtl.c (cfg_layout_finalize): Likewise.
15683 * df-scan.c: Likewise.
15684 * function.c (thread_prologue_and_epilogue_insns): Likewise.
15685 (reposition_prologue_and_epilogue_notes): Likewise.
15686 * reorg.c (find_end_label): Likewise.
15687 * toplev.c: Likewise.
15688
15689 2015-04-27 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
15690
15691 * bb-reorder.c (HAVE_return): Don't check if its undefined.
15692 * defaults.h (gen_simple_return): New function.
15693 (gen_simple_return): Likewise.
15694 (HAVE_return): Add default definition to false.
15695 (HAVE_simple_return): Likewise.
15696 * cfgrtl.c (force_nonfallthru_and_redirect): Remove checks if
15697 HAVE_return and HAVE_simple_return are defined.
15698 * function.c (gen_return_pattern): Likewise.
15699 (convert_jumps_to_returns): Likewise.
15700 (thread_prologue_and_epilogue_insns): Likewise.
15701 * reorg.c (find_end_label): Likewise.
15702 (dbr_schedule): Likewise.
15703 * shrink-wrap.c: Likewise.
15704 * shrink-wrap.h: Likewise.
15705
15706 2015-04-27 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
15707
15708 * defaults.h (EPILOGUE_USES): Add default definition of false.
15709 * df-scan.c (EPILOGUE_USES): Remove check if its undefined.
15710 * resource.c (init_resource_info): Likewise.
15711
15712 2015-04-27 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
15713
15714 * defaults.h (PCC_BITFIELD_TYPE_MATTERS): Add default definition
15715 to false.
15716 * dwarf2out.c (field_byte_offset): REmove check if
15717 PCC_BITFIELD_TYPE_MATTERS is defined.
15718 * stor-layout.c (layout_decl): Likewise.
15719 (update_alignment_for_field): Likewise.
15720 (place_field): Likewise.
15721
15722 2015-04-27 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
15723
15724 * defaults.h (HARD_REGNO_RENAME_OK): Add default definition to
15725 true.
15726 * regrename.c (check_new_reg_p): Remove check if
15727 HARD_REGNO_RENAME_OK is defined.
15728 * sel-sched.c (sel_hard_regno_rename_ok): Likewise.
15729
15730 2015-04-27 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
15731
15732 * calls.c (prepare_call_address): Remove ifdef NO_FUNCTION_CSE.
15733 * cse.c (fold_rtx): Likewise.
15734 * config/alpha/alpha.h (NO_FUNCTION_CSE): Define to 1.
15735 * config/arc/arc.h (NO_FUNCTION_CSE): Likewise.
15736 * config/avr/avr.h (NO_FUNCTION_CSE): Likewise.
15737 * config/cr16/cr16.h (NO_FUNCTION_CSE): Likewise.
15738 * config/epiphany/epiphany.h (NO_FUNCTION_CSE): Likewise.
15739 * config/frv/frv.h (NO_FUNCTION_CSE): Likewise.
15740 * config/h8300/h8300.h (NO_FUNCTION_CSE): Likewise.
15741 * config/i386/i386.h (NO_FUNCTION_CSE): Likewise.
15742 * config/ia64/ia64.h (NO_FUNCTION_CSE): Likewise.
15743 * config/lm32/lm32.h (enum reg_class) (NO_FUNCTION_CSE):
15744 * Likewise.
15745 * config/m32r/m32r.h (NO_FUNCTION_CSE): Likewise.
15746 * config/mep/mep.h (NO_FUNCTION_CSE): Likewise.
15747 * config/mn10300/mn10300.h (NO_FUNCTION_CSE): Likewise.
15748 * config/nds32/nds32.h (NO_FUNCTION_CSE): Likewise.
15749 * config/nios2/nios2.h (NO_FUNCTION_CSE): Likewise.
15750 * config/pa/pa.h (NO_FUNCTION_CSE): Likewise.
15751 * config/rs6000/rs6000.h (NO_FUNCTION_CSE): Likewise.
15752 * config/s390/s390.h (NO_FUNCTION_CSE): Likewise.
15753 * config/sparc/sparc.h (NO_FUNCTION_CSE): Likewise.
15754 * config/spu/spu.h (NO_FUNCTION_CSE): Likewise.
15755 * config/stormy16/stormy16.h (NO_FUNCTION_CSE): Likewise.
15756 * config/v850/v850.h (NO_FUNCTION_CSE): Likewise.
15757 * defaults.h (NO_FUNCTION_CSE): Provide default definition to 0.
15758 * doc/tm.texi: Regenerate.
15759 * doc/tm.texi.in: Document NO_FUNCTION_CSE is always defined to
15760 either true or false.
15761
15762 2015-04-27 Jeff Law <law@redhat.com>
15763
15764 PR tree-optimization/65217
15765 * tree-ssa-dom.c (record_equality): Given two SSA_NAMEs, if just one
15766 of them has a single use, make sure it is the LHS of the implied
15767 copy.
15768
15769 2015-04-28 Alan Modra <amodra@gmail.com>
15770
15771 PR target/65810
15772 * config/rs6000/rs6000.c (POWERPC64_TOC_POINTER_ALIGNMENT): Define.
15773 (offsettable_ok_by_alignment): Use minimum of decl and toc
15774 pointer alignment. Replace dead code with assertion.
15775 (use_toc_relative_ref): Add mode arg. Return false in -mcmodel=medium
15776 case if size exceeds toc pointer alignment.
15777 (rs6000_legitimize_reload_address): Update use_toc_relative_ref call.
15778 (rs6000_emit_move): Likewise.
15779 * configure.ac: Add linker toc pointer alignment check.
15780 * configure: Regenerate.
15781 * config.in: Regenerate.
15782
15783 2015-04-27 Yoshinori Sato <ysato@users.sourceforge.jp>
15784
15785 * config.gcc: Add h8300-*-linux.
15786 * config/h8300/linux.h: New.
15787 * config/h8300/t-linux: New.
15788 * config/h8300/h8300.c (h8300_option_override): Normal mode
15789 is not supported for h8300-*-linux.
15790 (h8300_file_start): Target priority change.
15791 (get_shift_alg): Likewise.
15792 (h8300_shift_need_scratch_p): Likewise.
15793 * config/h8300/h8300.h (TARGET_CPU_CPP_BUILTINS): Likewise.
15794 * config/h8300/h8300.md (define_peephole2): Remove duplicate condition.
15795
15796 2015-04-27 Caroline Tice <cmtice@google.com>
15797
15798 * final.c (final_scan_insn): Output cold_function_name as function
15799 type.
15800 * varasm.c (cold_function_name): Make global.
15801 (assemble_start_function): Re-set cold_function_name.
15802 (assemble_end_function): Output cold partition size.
15803 * varasm.h (cold_function_name): Declare global.
15804
15805 2015-04-27 Ilya Tocar <ilya.tocar@intel.com>
15806
15807 * config/i386/i386.h (EXT_REX_SSE_REG_P): New.
15808 * config/i386/i386.md (*cmpi<FPCMP:unord><MODEF:mode>_mixed): Use "v"
15809 constraint.
15810 (*movxi_internal_avx512f): Ditto.
15811 (define_split): Check for xmm16+, when splitting scalar float_extend.
15812 (*extendsfdf2_mixed): Use "v" constraint.
15813 (define_split): Check for xmm16+, when splitting scalar float_truncate.
15814 (*truncdfsf_fast_sse): Use "v" constraint.
15815 (fix_trunc<MODEF:mode><SWI48:mode>_sse): Ditto.
15816 (*float<SWI48:mode><MODEF:mode>2_sse): Ditto.
15817 (define_peephole2): Check for xmm16+, when converting scalar
15818 float_truncate.
15819 (define_peephole2): Check for xmm16+, when converting scalar
15820 float_extend.
15821 (*fop_<mode>_comm_mixed): Use "v" constraint.
15822 (*fop_<mode>_comm_sse): Ditto.
15823 (*fop_<mode>_1_mixed): Ditto.
15824 (*sqrt<mode>2_sse): Ditto.
15825 (*ieee_s<ieee_maxmin><mode>3): Ditto.
15826
15827 2015-04-27 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
15828
15829 * combine.c (simplify_if_then_else): Use std::swap instead
15830 of manually swapping.
15831 (known_cond): Likewise.
15832 (simplify_comparison): Likewise.
15833
15834 2015-04-27 Peter Bergner <bergner@vnet.ibm.com>
15835
15836 PR target/64579
15837 * config/rs6000/htm.md: Remove all define_expands.
15838 (UNSPECV_HTM_TABORTDC, UNSPECV_HTM_TABORTDCI, UNSPECV_HTM_TABORTWC,
15839 UNSPECV_HTM_TABORTWCI): Remove.
15840 (UNSPECV_HTM_TABORTXC, UNSPECV_HTM_TABORTXCI, UNSPECV_HTM_TTEST): New.
15841 (tabort_internal, tbegin_internal, tcheck_internal, tend_internal,
15842 trechkpt_internal, treclaim_internal, tsr_internal): Rename from this...
15843 (tabort, tbegin, tcheck, tend, trechkpt, treclaim, tsr): ...to this.
15844 (tabortdc_internal, tabortdci_internal, tabortwc_internal,
15845 tabortwci_internal): Remove define_insns.
15846 (tabort<wd>c, tabort<wd>ci): New define_insns.
15847 (tabort): Use gpc_reg_operand.
15848 (tcheck): Remove operand.
15849 (htm_mfspr_<mode>, htm_mtspr_<mode>): Use GPR mode macro.
15850 * config/rs6000/htmxlintrin.h (__TM_end): Use _HTM_TRANSACTIONAL as
15851 expected value.
15852 * config/rs6000/rs6000-builtin.def (BU_HTM_SPR0): Remove.
15853 (BU_HTM_SPR1): Rename to BU_HTM_V1. Remove use of RS6000_BTC_SPR.
15854 (tabort, tabortdc, tabortdci, tabortwc, tabortwci, tbegin,
15855 tcheck, tend, tendall, trechkpt, treclaim, tresume, tsuspend,
15856 tsr, ttest): Pass in the RS6000_BTC_CR attribute.
15857 (get_tfhar, set_tfhar, get_tfiar, set_tfiar, get_texasr, set_texasr,
15858 get_texasru, set_texasru): Pass in the RS6000_BTC_SPR attribute.
15859 (tcheck): Remove builtin argument.
15860 * config/rs6000/rs6000.c (rs6000_htm_spr_icode): Use TARGET_POWERPC64
15861 not TARGET_64BIT.
15862 (htm_expand_builtin): Fix usage of expandedp. Disallow usage of the
15863 tabortdc and tabortdci builtins when not in 64-bit mode.
15864 Modify code to handle the loss of the HTM define_expands.
15865 Emit code to copy the CR register to TARGET.
15866 (htm_init_builtins): Modify code to handle the loss of the HTM
15867 define_expands.
15868 * config/rs6000/rs6000.h (RS6000_BTC_32BIT): Delete.
15869 (RS6000_BTC_64BIT): Likewise.
15870 (RS6000_BTC_CR): New macro.
15871 * doc/extend.texi: Update documentation for htm builtins.
15872
15873 2015-04-27 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
15874
15875 * simplify-rtx.c (simplify_gen_binary): Use std::swap instead
15876 of manually swapping.
15877 (simplify_associative_operation): Likewise.
15878 (simplify_binary_operation): Likewise.
15879 (simplify_plus_minus): Likewise.
15880 (simplify_relational_operation): Likewise.
15881 (simplify_ternary_operation): Likewise.
15882
15883 2015-04-27 Richard Sandiford <richard.sandiford@arm.com>
15884
15885 * config/stormy16/predicates.md (xs_hi_general_operand): Delete.
15886 (xs_hi_nonmemory_operand): Remove error.
15887 * config/stormy16/stormy16.md (movhi, movhi_internal): Use
15888 general_operand rather than xs_hi_general_operand.
15889
15890 2015-04-27 Richard Biener <rguenther@suse.de>
15891
15892 * tree-ssa-dom.c (record_equivalences_from_phis): Valueize PHI arg.
15893 (record_equivalences_from_stmt): Valueize rhs.
15894 (record_equality): Canonicalize x and y order via
15895 tree_swap_operands_p. Do not swap operands for same loop depth.
15896
15897 2015-04-27 Georg-Johann Lay <avr@gjlay.de>
15898
15899 PR target/65296
15900 PR target/65895
15901 * config/avr/gen-avr-mmcu-specs.c (print_mcu): Close file.
15902 Add hint how to use own spec file.
15903
15904 2015-04-27 Jakub Jelinek <jakub@redhat.com>
15905
15906 PR tree-optimization/65875
15907 * tree-vrp.c (update_value_range): If in is_new case setting
15908 old_vr to VR_VARYING, also set new_vr to it. Remove
15909 old_vr->type == VR_VARYING test.
15910 (vrp_visit_phi_node): Return SSA_PROP_VARYING instead of
15911 SSA_PROP_INTERESTING if update_value_range returned true,
15912 but new range is VR_VARYING.
15913
15914 2015-04-27 Thomas Preud'homme <thomas.preudhomme@arm.com>
15915
15916 * combine.c (sign_extend_short_imm): New.
15917 (set_nonzero_bits_and_sign_copies): Use above new function for sign
15918 extension of src short immediate.
15919 (reg_nonzero_bits_for_combine): Likewise for tem.
15920
15921 2015-04-27 Eric Botcazou <ebotcazou@adacore.com>
15922
15923 * stor-layout.c (self_referential_component_ref_p): New predicate.
15924 (copy_self_referential_tree_r): Use it.
15925 (self_referential_size): Punt for simple operations directly involving
15926 self-referential component references.
15927 * tree-cfg.c (dump_function_to_file): Add missing final curly bracket.
15928
15929 2015-04-27 Eric Botcazou <ebotcazou@adacore.com>
15930
15931 * ipa-icf.c (icf_handled_component_p): Remove redundant tests.
15932
15933 2015-04-27 Richard Sandiford <richard.sandiford@arm.com>
15934
15935 * vec.h (vec): Make splice arguments const. Update definitions
15936 accordingly.
15937
15938 2015-04-27 Yvan Roux <yvan.roux@linaro.org>
15939
15940 * config/arm/arm.md (*arm_subsi3_insn): Fixed redundant
15941 alternatives.
15942
15943 2015-04-26 Tom de Vries <tom@codesourcery.com>
15944
15945 PR tree-optimization/65826
15946 * internal-fn.def: Mark VA_ARG with ECF_LEAF.
15947
15948 2015-04-24 Steve Ellcey <sellcey@imgtec.com>
15949
15950 * config/mips/mips.md: (*madd4<mode>) Remove accum_in attribute.
15951 (*madd3<mode>): Ditto.
15952 (*msub4<mode>): Ditto.
15953 (*msub3<mode>): Ditto.
15954 (*nmadd4<mode>): Ditto.
15955 (*nmadd3<mode>): Ditto.
15956 (*nmadd4<mode>_fastmath): Ditto.
15957 (*nmadd3<mode>_fastmath): Ditto.
15958 (*nmsub4<mode>): Ditto.
15959 (*nmsub3<mode>): Ditto.
15960 (*nmsub4<mode>_fastmath): Ditto.
15961 (*nmsub3<mode>_fastmath): Ditto.
15962
15963 2015-04-24 Jason Merrill <jason@redhat.com>
15964
15965 PR c++/50800
15966 * tree.c (build_reference_type_for_mode): Don't pass can_alias_all
15967 down when building TYPE_CANONICAL.
15968 (build_pointer_type_for_mode): Likewise.
15969
15970 2015-04-24 Chen Gang <gang.chen.5i5j@gmail.com>
15971
15972 * genrecog.c (validate_pattern): Check matching constraint refers
15973 to a lower numbered operand.
15974
15975 2015-04-24 Michael Meissner <meissner@linux.vnet.ibm.com>
15976
15977 PR target/65849
15978 * config/rs6000/rs6000.opt (-mvsx-align-128): Make options that
15979 save to independent variables use the Save attribute. This will
15980 allow these options to be modified with the #pragma/attribute
15981 target support.
15982 (-mallow-movmisalign): Likewise.
15983 (-mallow-df-permute): Likewise.
15984 (-msched-groups): Likewise.
15985 (-malways-hint): Likewise.
15986 (-malign-branch-targets): Likewise.
15987 (-mvectorize-builtins): Likewise.
15988 (-msave-toc-indirect): Likewise.
15989
15990 * config/rs6000/rs6000.c (rs6000_opt_masks): Add more options that
15991 can be set via the #pragma/attribute target support.
15992 (rs6000_opt_vars): Likewise.
15993 (rs6000_inner_target_options): If VSX was set, also set
15994 -mno-avoid-indexed-addresses.
15995
15996 2015-04-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
15997
15998 * config/arm/iterators.md (shiftable_ops): Rename to...
15999 (SHIFTABLE_OPS): ... This. Update use in comments.
16000 (ior_xor): Rename to...
16001 (IOR_XOR): ... This.
16002 (vqh_ops): Rename to...
16003 (VQH_OPS): ... This.
16004 (vqhs_ops): Rename to...
16005 (VQHS_OPS): ... This.
16006 (rshifts): Rename to...
16007 (RSHIFTS): ... This.
16008 (returns): Rename to...
16009 (RETURNS): ... This.
16010 * config/arm/arm.md: Update uses of the above.
16011 * config/arm/neon.md: Likewise.
16012
16013 2014-04-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
16014
16015 * config.host (case ${host}): Add aarch64*-*-linux case.
16016 * config/aarch64/aarch64-cores.def: Add IMPLEMENTER_ID and PART_NUMBER
16017 fields to all the cores.
16018 * config/aarch64/aarch64-elf.h (DRIVER_SELF_SPECS):
16019 Add MCPU_MTUNE_NATIVE_SPECS.
16020 * config/aarch64/aarch64-option-extensions.def: Add FEATURE_STRING
16021 field to all extensions.
16022 * config/aarch64/aarch64-opts.h: Adjust definition of AARCH64_CORE.
16023 * config/aarch64/aarch64.c: Adjust definition of AARCH64_CORE.
16024 Adjust definition of AARCH64_OPT_EXTENSION.
16025 * config/aarch64/aarch64.h: Adjust definition of AARCH64_CORE.
16026 (MCPU_MTUNE_NATIVE_SPECS): Define.
16027 * config/aarch64/driver-aarch64.c: New file.
16028 * config/aarch64/x-arch64: New file.
16029 * doc/invoke.texi (AArch64 Options): Document native value for -mcpu,
16030 -mtune and -march.
16031
16032 2015-04-24 Uros Bizjak <ubizjak@gmail.com>
16033 Wei Mi <wmi@google.com>
16034
16035 * config/i386/i386-protos.h (ix86_operands_ok_for_move_multiple): New.
16036 * config/i386/i386.c (extract_base_offset_in_addr): New function.
16037 (ix86_operands_ok_for_move_multiple): Ditto.
16038 * config/i386/sse.md (movsd/movhpd to movupd peephole2): New pattern.
16039 (movlpd/movhpd to movupd peephole2): Ditto.
16040
16041 2015-04-24 Marek Polacek <polacek@redhat.com>
16042
16043 PR c/61534
16044 * input.h (from_macro_expansion_at): Define.
16045
16046 PR c/63357
16047 * doc/invoke.texi: Update description of -Wlogical-op.
16048
16049 2015-04-24 Thomas Preud'homme <thomas.preudhomme@arm.com>
16050
16051 * config/arm/unknown-elf.h (ASM_OUTPUT_ALIGNED_DECL_LOCAL): fix
16052 ternary operator in fprintf and harmonize spacing.
16053
16054 2015-04-24 Uros Bizjak <ubizjak@gmail.com>
16055
16056 * config/i386/sse.md (*vec_widen_smult_even_v8si<mask_name>):
16057 Mark operand1 commutative.
16058
16059 2015-04-24 Uros Bizjak <ubizjak@gmail.com>
16060
16061 * config/i386/sse.md (*vec_concatv2sf_sse4_1): Do not allow both
16062 input operands in memory.
16063 (*vec_concatv2si_sse4_1): Ditto.
16064 (*vec_concatv2df): Ditto, except for SSE3 and equal input operands.
16065 (vec_extract_lo_<mode><mask_name>): Change operand 1 predicate to
16066 register_operand.
16067 (vec_extract_hi_v32hi): Ditto.
16068 (vec_extract_hi_v64hi): Ditto.
16069 (<mask_codefor>avx512f_unpckhpd512<mask_name>): Ditto.
16070
16071 2015-04-24 Thomas Preud'homme <thomas.preudhomme@arm.com>
16072 Steven Bosscher <steven@gcc.gnu.org>
16073
16074 PR rtl-optimization/34503
16075 * cprop.c (cprop_reg_p): New.
16076 (hash_scan_set): Use above function to check if register can be
16077 propagated.
16078 (find_avail_set): Return up to two sets, one whose source is a
16079 register and one whose source is a constant. Sets are returned in an
16080 array passed as parameter rather than as a return value.
16081 (cprop_insn): Use a do while loop rather than a goto. Try each of the
16082 sets returned by find_avail_set, starting with the one whose source is
16083 a constant. Use cprop_reg_p to check if register can be propagated.
16084 (do_local_cprop): Use cprop_reg_p to check if register can be
16085 propagated.
16086 (implicit_set_cond_p): Likewise.
16087
16088 2015-04-23 Jan Hubicka <hubicka@ucw.cz>
16089
16090 * ipa-icf.c (sem_function::equals_wpa): Compare thunk info.
16091 (sem_function::equals): IGNORED_NODES parameter is now unused;
16092 update call of equals_private.
16093 (sem_function::equals_private): Do not call equals_wpa; skip
16094 gimple body matching if there is no body.
16095 (sem_function::init): Add logic to hash tthunk info.
16096 (sem_function::parse): Also parse thunks.
16097 * ipa-icf.h (equals_private): Update declaration.
16098
16099 2015-04-23 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
16100
16101 * config/rs6000/altivec.md (*altivec_lvx_<mode>_internal): Remove
16102 asterisk from name so this can be generated directly.
16103 (*altivec_stvx_<mode>_internal): Likewise.
16104 * config/rs6000/rs6000.c (rs6000_emit_le_vsx_store): Add assert
16105 that this is never called during or after reload/lra.
16106 (rs6000_frame_related): Remove split_reg
16107 argument and logic that references it.
16108 (emit_frame_save): Remove last parameter from call to
16109 rs6000_frame_related.
16110 (rs6000_emit_prologue): Remove last parameter from eight calls to
16111 rs6000_frame_related. Force generation of stvx instruction for
16112 Altivec register saves. Remove split_reg handling, which is no
16113 longer needed.
16114 (rs6000_emit_epilogue): Force generation of lvx instruction for
16115 Altivec register restores.
16116
16117 2015-04-23 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
16118
16119 * config/rs6000/rs6000.opt (mcrypto): Change option description to
16120 match category changes in ISA 2.07B.
16121
16122 2015-04-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
16123
16124 * config/arm/iterators.md (GTGE, GTUGEU, COMPARISONS): New code
16125 iterators.
16126 (cmp_op, cmp_type): New code attributes.
16127 (NEON_VCMP, NEON_VACMP): New int iterators.
16128 (cmp_op_unsp): New int attribute.
16129 * config/arm/neon.md (neon_vc<cmp_op><mode>): New define_expand.
16130 (neon_vceq<mode>): Delete.
16131 (neon_vc<cmp_op><mode>_insn): New pattern.
16132 (neon_vc<cmp_op_unsp><mode>_insn_unspec): Likewise.
16133 (neon_vcgeu<mode>): Delete.
16134 (neon_vcle<mode>): Likewise.
16135 (neon_vclt<mode>: Likewise.
16136 (neon_vcage<mode>): Likewise.
16137 (neon_vcagt<mode>): Likewise.
16138 (neon_vca<cmp_op><mode>): New define_expand.
16139 (neon_vca<cmp_op><mode>_insn): New pattern.
16140 (neon_vca<cmp_op_unsp><mode>_insn_unspec): Likewise.
16141
16142 2015-04-23 Jan Hubicka <hubicka@ucw.cz>
16143
16144 * tree.h (attribute_value_equal): Declare.
16145 * tree.c (attribute_value_equal): Export.
16146
16147 2015-04-23 Jan Hubicka <hubicka@ucw.cz>
16148
16149 * ipa-icf.c (sem_item::compare_attributes): New function.
16150 (sem_item::compare_referenced_symbol_properties): Compare variable
16151 attributes.
16152 (sem_item::hash_referenced_symbol_properties): Record DECL_ALIGN.
16153 (sem_function::param_used_p): New function.
16154 (sem_function::equals_wpa): Fix attribute comparsion; match
16155 parameter type codes; do not compare paremter flags when
16156 they are not used; compare edge flags; compare indirect calls.
16157 (sem_item::update_hash_by_addr_refs): Hash reference type.
16158 (sem_function::equals_private): Do not match DECL_ATTRIBUTES.
16159 (sem_variable::equals_wpa): Do not match DECL_ALIGN; match
16160 reference use type.
16161 (sem_item_optimizer::update_hash_by_addr_refs): Use param_used_p.
16162 * ipa-icf.h (compare_attributes, param_used_p): Declare.
16163
16164 2015-04-23 Jan Hubicka <hubicka@ucw.cz>
16165
16166 * ipa-icf.c (symbol_compare_collection::symbol_compare_collection):
16167 cleanup.
16168 (sem_function::get_hash): Do not hash DECL_DISREGARD_INLINE_LIMITS,
16169 DECL_DECLARED_INLINE_P and DECL_IS_OPERATOR_NEW.
16170 (sem_item::compare_referenced_symbol_properties): New.
16171 (sem_item::hash_referenced_symbol_properties): New.
16172 (sem_item::compare_cgraph_references): Rename to ...
16173 (sem_item::compare_symbol_references): ... this one; use
16174 compare_referenced_symbol_properties.
16175 (sem_function::equals_wpa): Do not compare
16176 DECL_DISREGARD_INLINE_LIMITS, DECL_DECLARED_INLINE_P,
16177 DECL_IS_OPERATOR_NEW; compare pointer sizes.
16178 (sem_item::update_hash_by_addr_refs): Call
16179 hash_referenced_symbol_properties.
16180 (sem_item::update_hash_by_local_refs): Cleanup.
16181 (sem_function::merge): Do not mix up symbol properties.
16182 (sem_variable::equals_wpa): Use compare_symbol_references.
16183 * ipa-icf.h (sem_item::compare_referenced_symbol_properties): New.
16184 (sem_item::hash_referenced_symbol_properties): New.
16185 (sem_item::compare_symbol_references): New.
16186 (sem_item::compare_cgraph_references): Remove.
16187
16188 2015-04-23 Kwok Cheung Yeung <kcy@codesourcery.com>
16189
16190 PR target/26702
16191 * config/arm/unknown-elf.h (ASM_OUTPUT_ALIGNED_DECL_LOCAL):
16192 Emit size of local.
16193
16194 2015-04-23 Nick Clifton <nickc@redhat.com>
16195
16196 * config/rl78/rl78.c (rl78_preferred_reload_class): Add
16197 ATTRIBUTE_UNUSED to x parameter.
16198 * config/rl78/rl78-opts.h (enum rl78_mul_types): Remove unused MUL_RL78.
16199
16200 2015-04-23 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
16201
16202 * config/rs6000/crypto.md (crypto_vpmsum<CR_char>): Change
16203 TARGET_CRYPTO to TARGET_P8_VECTOR>
16204 (crypto_vpermxor_<mode>): Likewise.
16205 * config/rs6000/rs6000-builtin.def (BU_CRYPTO_2A): New #define.
16206 (BU_CRYPTO_3A): Likewise.
16207 (BU_CRYPTO_OVERLOAD_2A): Rename from BU_CRYPTO_OVERLOAD_2.
16208 (BU_CRYPTO_OVERLOAD_3A): New #define.
16209 (VPMSUMB): Change from BU_CRYPTO_2 to BU_CRYPTO_2A.
16210 (VPMSUMH): Likewise.
16211 (VPMSUMW): Likewise.
16212 (VPMSUMD): Likewise.
16213 (VPERMXOR_V2DI): Change from BU_CRYPTO_3 to BU_CRYPTO_3A.
16214 (VPERMXOR_V4SI): Likewise.
16215 (VPERMXOR_V8HI): Likewise.
16216 (VPERMXOR_V16QI): Likewise.
16217 (VPMSUM): Change from BU_CRYPTO_OVERLOAD_2 to
16218 BU_CRYPTO_OVERLOAD_2A.
16219 (VPERMXOR): Change from BU_CRYPTO_OVERLOAD3 to
16220 BU_CRYPTO_OVERLOAD_3A.
16221 * config/rs6000/rs6000.opt (mcrypto): Change description of
16222 option.
16223
16224 2015-04-23 Richard Biener <rguenther@suse.de>
16225
16226 * passes.def: Remove copy propagation passes run directly after CCP.
16227 * tree-ssa-ccp.c (get_value_for_expr): Fall back to a COPY for
16228 SSA names.
16229 (ccp_visit_phi_node): Rework to handle first executable edge
16230 specially.
16231
16232 2015-04-23 Matthew Wahab <matthew.wahab@arm.com>
16233
16234 * config/arm/arm.h (LEGITIMIZE_RELOAD_ADDRESS): Remove.
16235 (ARM_LEGITIMIZE_RELOAD_ADDRESS): Remove.
16236 (THUMB_LEGITIMIZE_RELOAD_ADDRESS): Remove.
16237 * config/arm/arm.c (arm_legimitimize_reload_address): Remove.
16238 (thumb_legimitimize_reload_address): Remove.
16239 * config/arm/arm-protos.h (arm_legimitimize_reload_address):
16240 Remove.
16241 (thumb_legimitimize_reload_address): Remove.
16242
16243 2015-04-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
16244
16245 * conditions.h (CC_STATUS_INIT): Gate on #ifndef CC_STATUS_INIT.
16246
16247 2015-04-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
16248
16249 * config/arm/arm.md (load_multiple): Reject operand 2 greater than
16250 MAX_LDM_STM_OPS.
16251 (store_multiple): Likewise.
16252
16253 2015-04-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
16254
16255 * config/arm/arm-protos.h (struct tune_params): Add issue_rate field.
16256 * config/arm/arm.c (arm_slowmul_tune, arm_fastmul_tune,
16257 arm_strongarm_tune, arm_xscale_tune, arm_9e_tune, arm_v6t2_tune,
16258 arm_cortex_tune, arm_cortex_a8_tune, arm_cortex_a7_tune,
16259 arm_cortex_a15_tune, arm_cortex_a53_tune, arm_cortex_a57_tune,
16260 arm_cortex_a9_tune, arm_cortex_a12_tune, arm_v7m_tune, arm_v6m_tune,
16261 arm_fa726te_tune arm_cortex_a5_tune, arm_xgene1_tune):
16262 Specify issue_rate value.
16263 (arm_issue_rate): Look up issue rate from tuning structs. Remove
16264 large switch statement.
16265 (arm_marvell_pj4_tune): New struct.
16266 * config/arm/arm-cores.def (marvell-pj4): Use arm_marvell_pj4_tune
16267 struct.
16268
16269 2015-04-23 Richard Biener <rguenther@suse.de>
16270
16271 * tree-vect-slp.c (vect_find_first_load_in_slp_instance): Remove.
16272 (vect_find_last_store_in_slp_instance): Rename to ...
16273 (vect_find_last_scalar_stmt_in_slp): ... this and generalize.
16274 (vect_analyze_slp_cost_1): Use vector_load for constant defs
16275 and vec_construct for external defs when estimating prologue cost.
16276 (vect_analyze_slp_instance): Do not init SLP_INSTANCE_FIRST_LOAD_STMT.
16277 Compute costs here only when vectorizing loops.
16278 (vect_slp_analyze_bb_1): Compute SLP cost here, after vector types
16279 have been determined.
16280 (vect_schedule_slp_instance): Simplify vectorized code placement
16281 and prepare for in-BB external defs.
16282 * tree-vectorizer.h (struct _slp_instance): Remove first_load member.
16283 (SLP_INSTANCE_FIRST_LOAD_STMT): Remove.
16284 * tree-vect-stmts.c (vect_model_store_cost): Remove PURE_SLP_STMT
16285 guard.
16286 (vect_model_load_cost): Likewise.
16287 (vectorizable_store): Instead add it here.
16288 (vectorizable_load): Likewise.
16289 (vect_is_simple_use): Dump def type textually.
16290
16291 2015-04-23 Richard Biener <rguenther@suse.de>
16292
16293 * cfgexpand.c (expand_gimple_stmt_1): Use ops.code.
16294 * cfgloop.c (verify_loop_structure): Verify the root loop node.
16295 * except.c (duplicate_eh_regions): Call get_eh_region_from_lp_number_fn
16296 instead of get_eh_region_from_lp_number.
16297 * loop-init.c (fix_loop_structure): If we removed a loop, reset
16298 the SCEV cache.
16299
16300 2015-04-23 Anton Blanchard <anton@samba.org>
16301
16302 * config/rs6000/rs6000.c (rs6000_output_function_prologue): No
16303 need for -mprofile-kernel to save LR to stack.
16304
16305 2015-04-22 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
16306
16307 * config/rs6000/rs6000.c (rtx_is_swappable_p): Commentary
16308 adjustments.
16309 (insn_is_swappable_p): Return 1 for a convert from double to
16310 single precision when all of its uses are splats of BE element
16311 zero.
16312
16313 2015-04-23 Kugan Vivekanandarajah <kuganv@linaro.org>
16314
16315 * ira-costs.c (record_operand_costs): Fix typo (remove redundant code).
16316
16317 2015-04-22 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
16318
16319 PR target/65456
16320 * config/rs6000/rs6000.c (rs6000_option_override_internal): For
16321 VSX + POWER8, enable TARGET_ALLOW_MOVMISALIGN and
16322 TARGET_EFFICIENT_UNALIGNED_VSX if not selected by command line
16323 option.
16324 (rs6000_builtin_mask_for_load): Return 0 for targets with
16325 efficient unaligned VSX accesses so that the vectorizer will use
16326 direct unaligned loads.
16327 (rs6000_builtin_support_vector_misalignment): Always return true
16328 for targets with efficient unaligned VSX accesses.
16329 (rs6000_builtin_vectorization_cost): Cost of unaligned loads and
16330 stores on targets with efficient unaligned VSX accesses is almost
16331 always the same as the cost of an aligned load or store, so model
16332 it that way.
16333 * config/rs6000/rs6000.h (SLOW_UNALIGNED_ACCESS): Return 0 for
16334 unaligned vectors if we have efficient unaligned VSX accesses.
16335 * config/rs6000/rs6000.opt (mefficient-unaligned-vector): New
16336 undocumented option.
16337
16338 2015-04-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
16339
16340 Revert:
16341 2015-04-22 Gregor Richards <gregor.richards@uwaterloo.ca>
16342
16343 * config.gcc (LIBC_MUSL): New tm_defines macro.
16344 * config/linux.h (OPTION_MUSL): Define.
16345 (INCLUDE_DEFAULTS_MUSL_GPP, INCLUDE_DEFAULTS_MUSL_LOCAL,)
16346 (INCLUDE_DEFAULTS_MUSL_PREFIX, INCLUDE_DEFAULTS_MUSL_CROSS,)
16347 (INCLUDE_DEFAULTS_MUSL_TOOL, INCLUDE_DEFAULTS_MUSL_NATIVE): Define.
16348
16349 * config/linux.opt (mmusl): New option.
16350 * configure.ac (gcc_cv_libc_provides_ssp): Add *-*-musl*.
16351 (gcc_cv_target_dl_iterate_phdr): Add *-linux-musl*.
16352
16353 * configure: Regenerate.
16354
16355 2015-04-22 Gregor Richards <gregor.richards@uwaterloo.ca>
16356
16357 * config.gcc (LIBC_MUSL): New tm_defines macro.
16358 * config/linux.h (OPTION_MUSL): Define.
16359 (INCLUDE_DEFAULTS_MUSL_GPP, INCLUDE_DEFAULTS_MUSL_LOCAL,)
16360 (INCLUDE_DEFAULTS_MUSL_PREFIX, INCLUDE_DEFAULTS_MUSL_CROSS,)
16361 (INCLUDE_DEFAULTS_MUSL_TOOL, INCLUDE_DEFAULTS_MUSL_NATIVE): Define.
16362
16363 * config/linux.opt (mmusl): New option.
16364 * configure.ac (gcc_cv_libc_provides_ssp): Add *-*-musl*.
16365 (gcc_cv_target_dl_iterate_phdr): Add *-linux-musl*.
16366
16367 * configure: Regenerate.
16368
16369 2015-04-22 Yury Gribov <y.gribov@samsung.com>
16370
16371 * doc/invoke.texi (-fsanitize-sections): Update description.
16372 * asan.c (set_sanitized_sections): Parse incoming arg.
16373 (section_sanitized_p): Support wildcards.
16374
16375 2015-04-22 Tom de Vries <tom@codesourcery.com>
16376
16377 PR tree-optimization/65823
16378 * gimplify.c (gimplify_modify_expr): Use operand_equal_p to test for
16379 equality between ap_copy and ap.
16380
16381 2015-04-22 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
16382
16383 PR target/47098
16384 * config/openbsd-oldgas.h (OBSD_LIB_SPEC): Add.
16385
16386 2015-04-22 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
16387
16388 PR target/47122
16389 * config.gcc (vax-*-openbsd*): Fix name of pthread spec header.
16390
16391 2015-04-22 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
16392
16393 PR target/55144
16394 * config.gcc (bfin*-linux-uclibc*): Prepend tmake_file and
16395 remove already contained t-files.
16396
16397 2015-04-22 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
16398
16399 * tree-tailcall.c (suitable_for_tail_opt_p, find_tail_calls):
16400 Remove unneeded forward declarations.
16401 (suitable_for_tail_call_opt_p): Commentary typo fix.
16402
16403 2015-04-22 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
16404
16405 * varasm.c (emit_bss): Remove redundant guard.
16406
16407 2015-04-22 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
16408
16409 * config/c6x/c6x.h (TARGET_CPU_CPP_BUILTINS): Add unk_isa.
16410
16411 2015-04-22 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
16412
16413 * config/bfin/bfin.h (TARGET_CPU_CPP_BUILTINS): Add BFIN_CPU_UNKNOWN.
16414
16415 2015-04-22 Hale Wang <hale.wang@arm.com>
16416 Terry Guo <terry.guo@arm.com>
16417
16418 PR rtl-optimization/64818
16419 * combine.c (can_combine_p): Don't combine user-specified
16420 register if it is in an asm input.
16421
16422 2015-04-21 Jan Hubicka <hubicka@ucw.cz>
16423
16424 PR ipa/65076
16425 * passes.def (early_optimizations): Add pass_dse.
16426
16427 2015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
16428
16429 * defaults.h (INSN_REFERENCES_ARE_DELAYED): New definition.
16430 * reorg.c (redundant_insn): Remove ifdef
16431 INSN_REFERENCES_ARE_DELAYED.
16432 * resource.c (mark_referenced_resources): Likewise.
16433
16434 2015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
16435
16436 * defaults.h (INSN_SETS_ARE_DELAYED): New definition.
16437 * reorg.c (redundant_insn): Remove ifdef INSN_SETS_ARE_DELAYED.
16438 * resource.c (mark_set_resources): Likewise.
16439
16440 2015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
16441
16442 * caller-save.c (insert_one_insn): Remove ifdef HAVE_cc0.
16443 * cfgcleanup.c (flow_find_cross_jump): Likewise.
16444 (flow_find_head_matching_sequence): Likewise.
16445 (try_head_merge_bb): Likewise.
16446 * combine.c (can_combine_p): Likewise.
16447 (try_combine): Likewise.
16448 (distribute_notes): Likewise.
16449 * df-problems.c (can_move_insns_across): Likewise.
16450 * final.c (final): Likewise.
16451 * gcse.c (insert_insn_end_basic_block): Likewise.
16452 * ira.c (find_moveable_pseudos): Likewise.
16453 * reorg.c (try_merge_delay_insns): Likewise.
16454 (fill_simple_delay_slots): Likewise.
16455 (fill_slots_from_thread): Likewise.
16456 * sched-deps.c (sched_analyze_2): Likewise.
16457
16458 2015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
16459
16460 * df-scan.c (df_get_entry_block_def_set): Remove #ifdef
16461 PIC_OFFSET_TABLE_REGNUM.
16462
16463 2015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
16464
16465 * alias.c (init_alias_target): Remove ifdef
16466 * HARD_FRAME_POINTER_IS_FRAME_POINTER.
16467 * df-scan.c (df_insn_refs_collect): Likewise.
16468 (df_get_regular_block_artificial_uses): Likewise.
16469 (df_get_eh_block_artificial_uses): Likewise.
16470 (df_get_entry_block_def_set): Likewise.
16471 (df_get_exit_block_use_set): Likewise.
16472 * emit-rtl.c (gen_rtx_REG): Likewise.
16473 * ira.c (ira_setup_eliminable_regset): Likewise.
16474 * reginfo.c (init_reg_sets_1): Likewise.
16475 * regrename.c (rename_chains): Likewise.
16476 * reload1.c (reload): Likewise.
16477 (eliminate_regs_in_insn): Likewise.
16478 * resource.c (mark_referenced_resources): Likewise.
16479 (init_resource_info): Likewise.
16480
16481 2015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
16482
16483 * defaults.h (MASK_RETURN_ADDR): New definition.
16484 * except.c (expand_builtin_extract_return_addr): Remove ifdef
16485 MASK_RETURN_ADDR.
16486
16487 2015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
16488
16489 * defaults.h (RETURN_ADDR_OFFSET): New definition.
16490 * except.c (expand_builtin_extract_return_addr): Remove ifdef
16491 RETURN_ADDR_OFFSET.
16492 (expand_builtin_frob_return_addr): Likewise.
16493
16494 2015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
16495
16496 * cfgrtl.c (rtl_merge_blocks): Change #if HAVE_cc0 to if (HAVE_cc0)
16497 (try_redirect_by_replacing_jump): Likewise.
16498 (rtl_tidy_fallthru_edge): Likewise.
16499 * combine.c (insn_a_feeds_b): Likewise.
16500 (find_split_point): Likewise.
16501 (simplify_set): Likewise.
16502 * cprop.c (cprop_jump): Likewise.
16503 * cse.c (cse_extended_basic_block): Likewise.
16504 * df-problems.c (can_move_insns_across): Likewise.
16505 * function.c (emit_use_return_register_into_block): Likewise.
16506 * haifa-sched.c (sched_init): Likewise.
16507 * ira.c (find_moveable_pseudos): Likewise.
16508 * loop-invariant.c (find_invariant_insn): Likewise.
16509 * lra-constraints.c (curr_insn_transform): Likewise.
16510 * postreload.c (reload_combine_recognize_const_pattern):
16511 * Likewise.
16512 * reload.c (find_reloads): Likewise.
16513 * reorg.c (delete_scheduled_jump): Likewise.
16514 (steal_delay_list_from_target): Likewise.
16515 (steal_delay_list_from_fallthrough): Likewise.
16516 (redundant_insn): Likewise.
16517 (fill_simple_delay_slots): Likewise.
16518 (fill_slots_from_thread): Likewise.
16519 (delete_computation): Likewise.
16520 * sched-rgn.c (add_branch_dependences): Likewise.
16521
16522 2015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
16523
16524 * genconfig.c (main): Always define HAVE_cc0.
16525 * caller-save.c (insert_one_insn): Change ifdef HAVE_cc0 to #if
16526 HAVE_cc0.
16527 * cfgcleanup.c (flow_find_cross_jump): Likewise.
16528 (flow_find_head_matching_sequence): Likewise.
16529 (try_head_merge_bb): Likewise.
16530 * cfgrtl.c (rtl_merge_blocks): Likewise.
16531 (try_redirect_by_replacing_jump): Likewise.
16532 (rtl_tidy_fallthru_edge): Likewise.
16533 * combine.c (do_SUBST_MODE): Likewise.
16534 (insn_a_feeds_b): Likewise.
16535 (combine_instructions): Likewise.
16536 (can_combine_p): Likewise.
16537 (try_combine): Likewise.
16538 (find_split_point): Likewise.
16539 (subst): Likewise.
16540 (simplify_set): Likewise.
16541 (distribute_notes): Likewise.
16542 * cprop.c (cprop_jump): Likewise.
16543 * cse.c (cse_extended_basic_block): Likewise.
16544 * df-problems.c (can_move_insns_across): Likewise.
16545 * final.c (final): Likewise.
16546 (final_scan_insn): Likewise.
16547 * function.c (emit_use_return_register_into_block): Likewise.
16548 * gcse.c (insert_insn_end_basic_block): Likewise.
16549 * haifa-sched.c (sched_init): Likewise.
16550 * ira.c (find_moveable_pseudos): Likewise.
16551 * loop-invariant.c (find_invariant_insn): Likewise.
16552 * lra-constraints.c (curr_insn_transform): Likewise.
16553 * optabs.c (prepare_cmp_insn): Likewise.
16554 * postreload.c (reload_combine_recognize_const_pattern):
16555 * Likewise.
16556 * reload.c (find_reloads): Likewise.
16557 (find_reloads_address_1): Likewise.
16558 * reorg.c (delete_scheduled_jump): Likewise.
16559 (steal_delay_list_from_target): Likewise.
16560 (steal_delay_list_from_fallthrough): Likewise.
16561 (try_merge_delay_insns): Likewise.
16562 (redundant_insn): Likewise.
16563 (fill_simple_delay_slots): Likewise.
16564 (fill_slots_from_thread): Likewise.
16565 (delete_computation): Likewise.
16566 (relax_delay_slots): Likewise.
16567 * sched-deps.c (sched_analyze_2): Likewise.
16568 * sched-rgn.c (add_branch_dependences): Likewise.
16569
16570 2015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
16571
16572 * combine.c (find_single_use): Remove HAVE_cc0 ifdef for code
16573 that is trivially ded on non cc0 targets.
16574 (simplify_set): Likewise.
16575 (mark_used_regs_combine): Likewise.
16576 * cse.c (new_basic_block): Likewise.
16577 (fold_rtx): Likewise.
16578 (cse_insn): Likewise.
16579 (cse_extended_basic_block): Likewise.
16580 (set_live_p): Likewise.
16581 * rtlanal.c (canonicalize_condition): Likewise.
16582 * simplify-rtx.c (simplify_binary_operation_1): Likewise.
16583
16584 2015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
16585
16586 * conditions.h: Define macros even if HAVE_cc0 is undefined.
16587 * emit-rtl.c: Define functions even if HAVE_cc0 is undefined.
16588 * final.c: Likewise.
16589 * jump.c: Likewise.
16590 * recog.c: Likewise.
16591 * recog.h: Declare functions even when HAVE_cc0 is undefined.
16592 * sched-deps.c (sched_analyze_2): Always compile case for cc0.
16593
16594 2015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
16595
16596 * defaults.h: New definition of EH_RETURN_DATA_REGNO.
16597 * except.c: Remove definition of EH_RETURN_DATA_REGNO.
16598 * builtins.c (expand_builtin): Remove check if
16599 EH_RETURN_DATA_REGNO is defined.
16600 * df-scan.c (df_bb_refs_collect): Likewise.
16601 (df_get_exit_block_use_set): Likewise.
16602 * haifa-sched.c (initiate_bb_reg_pressure_info): Likewise.
16603 * ira-lives.c (process_bb_node_lives): Likewise.
16604 * lra-lives.c (process_bb_lives): Likewise.
16605
16606 2015-04-21 Uros Bizjak <ubizjak@gmail.com>
16607
16608 * config/i386/i386.md (ARGP_REG, FRAME_REG, BND2_REG, BND3_REG,
16609 FIRST_PSEUDO_REG): New.
16610 * config/i386/i386.h (STACK_POINTER_REGNUM): Define to SP_REG.
16611 (ARG_POINTER_REGNUM): Define to ARGP_REG.
16612 (FRAME_POINTER_REGNUM): Define to FRAME_REG.
16613 (HARD_FRAME_POINTER_REGNUM): Define to BP_REG.
16614 (FIRST_PSEUDO_REGISTER): Define to FIRST_PSEUDO_REG.
16615 (FIRST_INT_REG): New.
16616 (LAST_INT_REG): New.
16617 (FIRST_*_REG): Define using *_REG.
16618 (LAST_*_REG): Ditto.
16619 (QI_REGNO_P): Define using FIRST_QU_REG and LAST_QI_REG.
16620 (LEGACY_INT_REGNO_P): Define using FIRST_INT_REG and LAST_INT_REG.
16621 (FIRST_FLOAT_REG): Define to FIRST_STACK_REG.
16622
16623 2015-04-21 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
16624
16625 * expmed.c: (synth_mult): Only assume overlapping
16626 shift with previous steps in alg_sub_t_m2 case.
16627
16628 2015-04-21 Richard Biener <rguenther@suse.de>
16629
16630 PR tree-optimization/65650
16631 * tree-ssa-ccp.c (valid_lattice_transition): Allow lattice
16632 transitions involving copies.
16633 (set_lattice_value): Adjust for copy lattice state.
16634 (ccp_lattice_meet): Do not merge UNDEFINED and a copy to the copy
16635 if that doesn't dominate the merge point.
16636 (bit_value_unop): Adjust what we treat as varying mask.
16637 (bit_value_binop): Likewise.
16638 (bit_value_assume_aligned): Likewise.
16639 (evaluate_stmt): When we simplified to a SSA name record a copy
16640 instead of dropping to varying.
16641 (visit_assignment): Simplify.
16642
16643 * gimple-match.h (gimple_simplify): Add another callback.
16644 * gimple-fold.c (fold_stmt_1): Adjust caller.
16645 (gimple_fold_stmt_to_constant_1): Likewise - pass valueize
16646 for the 2nd callback.
16647 * gimple-match-head.c (gimple_simplify): Add a callback that is
16648 used to valueize the stmt operands and use it that way.
16649
16650 2015-04-21 Richard Biener <rguenther@suse.de>
16651
16652 PR tree-optimization/65788
16653 * tree-ssa-ccp.c (evaluate_stmt): Evaluate to UNDEFINED early.
16654
16655 2015-04-21 Richard Biener <rguenther@suse.de>
16656
16657 * config/i386/i386.c (ix86_builtin_vectorization_cost): Scale
16658 vec_construct cost by vec_stmt_cost.
16659
16660 2015-04-21 Richard Biener <rguenther@suse.de>
16661
16662 * cfghooks.h (create_basic_block): Replace with two overloads
16663 for RTL and GIMPLE.
16664 (split_block): Likewise.
16665 * cfghooks.c (split_block): Rename to ...
16666 (split_block_1): ... this.
16667 (split_block): Add two type-safe overloads for RTL and GIMPLE.
16668 (split_block_after_labels): Call split_block_1.
16669 (create_basic_block): Rename to ...
16670 (create_basic_block_1): ... this.
16671 (create_basic_block): Add two type-safe overloads for RTL and GIMPLE.
16672 (create_empty_bb): Call create_basic_block_1.
16673 * cfgrtl.c (fixup_fallthru_exit_predecessor): Use
16674 split_block_after_labels.
16675 * omp-low.c (expand_parallel_call): Likewise.
16676 (expand_omp_target): Likewise.
16677 (simd_clone_adjust): Likewise.
16678 * tree-chkp.c (chkp_get_entry_block): Likewise.
16679 * cgraphunit.c (init_lowered_empty_function): Use the GIMPLE
16680 create_basic_block overload.
16681 (cgraph_node::expand_thunk): Likewise.
16682 * tree-cfg.c (make_blocks): Likewise.
16683 (handle_abnormal_edges): Likewise.
16684 * tree-inline.c (copy_bb): Likewise.
16685
16686 2015-04-21 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
16687
16688 * config/aarch64/aarch64.md (*<NLOGICAL:optab>_one_cmplsidi3_ze):
16689 New pattern.
16690 (*xor_one_cmplsidi3_ze): Likewise.
16691
16692 2015-04-21 Thomas Preud'homme <thomas.preudhomme@arm.com>
16693
16694 * df-core.c (df_finish_pass): Iterate over df->problems_by_index[] and
16695 use df_remove_problem rather than manually removing problems, leaving
16696 holes in df->problems_in_order[].
16697
16698 2015-04-21 Tom de Vries <tom@codesourcery.com>
16699
16700 PR tree-optimization/65802
16701 * internal-fn.def (VA_ARG): Add ECF_NOTROW to flags.
16702
16703 2015-04-21 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
16704
16705 * common/config/aarch64/aarch64-common.c (AARCH64_CPU_NAME_LENGTH):
16706 Increase to 128.
16707 (aarch64_rewrite_selected_cpu): Do not chop off extensions starting
16708 at '.'. Assert that there's enough space for everything.
16709
16710 2015-04-21 Uros Bizjak <ubizjak@gmail.com>
16711
16712 PR tree-optimization/64950
16713 Revert:
16714 2010-08-02 Uros Bizjak <ubizjak@gmail.com>
16715
16716 PR target/41089
16717 * config/alpha/alpha.c (alpha_build_builtin_va_list): Mark __offset
16718 as volatile.
16719
16720 2015-04-20 Shiva Chen <shiva0217@gmail.com>
16721
16722 PR rtl-optimization/64916
16723 * cfgcleanup.c (values_equal_p): New function.
16724 (can_replace_by): Use it.
16725
16726 2015-04-20 Paolo Carlini <paolo.carlini@oracle.com>
16727
16728 PR c++/65801
16729 * doc/invoke.texi ([-Wnarrowing]): Update.
16730
16731 2015-04-20 Jeff Law <law@redhat.com>
16732
16733 PR tree-optimization/65658
16734 * tree-ssa-threadupdate.c (redirection_block_p): Remove
16735 redundant test for GIMPLE_ASSIGN in last change.
16736
16737 2015-04-20 Uros Bizjak <ubizjak@gmail.com>
16738
16739 * config/i386/i386.c (set_pic_reg_ever_live): Remove.
16740 (legitimize_pic_address): Do not call set_pic_reg_ever_live.
16741 (legitimize_tls_address): Ditto.
16742 (ix86_expand_move): Ditto.
16743 (ix86_expand_binary_operator): Remove reload_in_progress checks.
16744 (ix86_expand_unary_operator): Ditto.
16745 * config/i386/predicates.md (index_register_operand): Ditto.
16746
16747 2015-04-20 Selim Belbachir <selim.belbachir@fr.thalesgroup.com>
16748
16749 * reorg.c (try_merge_delay_insns): Improve correctness checking
16750 for targets with multiple delay slots.
16751
16752 2015-04-20 Jeff Law <law@redhat.com>
16753
16754 PR tree-optimization/65658
16755 * tree-ssa-threadupdate.c (redirection_block_p): Ignore clobber
16756 statements too.
16757
16758 2015-04-20 Alan Lawrence <alan.lawrence@arm.com>
16759
16760 * config/aarch64/aarch64.c (aarch64_simd_emit_pair_result_insn): Delete.
16761 * config/aarch64/aarch64-protos.h (aarch64_simd_emit_pair_result_insn):
16762 Delete.
16763
16764 2015-04-20 Jakub Jelinek <jakub@redhat.com>
16765
16766 PR debug/65807
16767 * dwarf2out.c (add_AT_wide): Clear attr.dw_attr_val.val_entry.
16768
16769 2015-04-20 Richard Biener <rguenther@suse.de>
16770
16771 * gimple-fold.h (gimple_build): Remove optional valueize arguments.
16772 * gimple-fold.c (gimple_build_valueize): New function.
16773 (gimple_build): Always use gimple_build_valueize as valueize hook.
16774
16775 2015-04-20 Alan Lawrence <alan.lawrence@arm.com>
16776
16777 PR target/64134
16778 * config/aarch64/aarch64.c (aarch64_expand_vector_init): Load constant
16779 and overwrite variable parts if <= 1/2 the elements are variable.
16780
16781 2015-04-19 Vladimir Makarov <vmakarov@redhat.com>
16782
16783 PR rtl-optimization/65805
16784 * lra-eliminations.c (lra_eliminate_regs_1): Add new assert.
16785 Don't use difference of offset and previous offset if
16786 update_sp_offset is non-zero.
16787 (eliminate_regs_in_insn): Ditto.
16788 * lra-spills.c (remove_pseudos): Exchange 4th and 6th args in
16789 lra_eliminate_regs_1 call.
16790 * lra-constraints.c (get_equiv_with_elimination): Ditto.
16791
16792 2015-04-18 Trevor Saunders <tsaunders@mozilla.com>
16793
16794 * hash-table.h: Remove version of hash_table that stored value_type *.
16795 * asan.c, attribs.c, bitmap.c, cfg.c, cgraph.h, config/arm/arm.c,
16796 config/i386/winnt.c, config/ia64/ia64.c, config/mips/mips.c,
16797 config/sol2.c, coverage.c, cselib.c, dse.c, dwarf2cfi.c,
16798 dwarf2out.c, except.c, gcse.c, genmatch.c, ggc-common.c,
16799 gimple-ssa-strength-reduction.c, gimplify.c, haifa-sched.c,
16800 hard-reg-set.h, hash-map.h, hash-set.h, ipa-devirt.c, ipa-icf.h,
16801 ipa-profile.c, ira-color.c, ira-costs.c, loop-invariant.c,
16802 loop-iv.c, loop-unroll.c, lto-streamer.h, plugin.c, postreload-gcse.c,
16803 reginfo.c, statistics.c, store-motion.c, trans-mem.c, tree-cfg.c,
16804 tree-eh.c, tree-hasher.h, tree-into-ssa.c, tree-parloops.c,
16805 tree-sra.c, tree-ssa-coalesce.c, tree-ssa-dom.c, tree-ssa-live.c,
16806 tree-ssa-loop-im.c, tree-ssa-loop-ivopts.c, tree-ssa-phiopt.c,
16807 tree-ssa-pre.c, tree-ssa-reassoc.c, tree-ssa-sccvn.c,
16808 tree-ssa-structalias.c, tree-ssa-tail-merge.c,
16809 tree-ssa-threadupdate.c, tree-vectorizer.c, tree-vectorizer.h,
16810 valtrack.h, var-tracking.c, vtable-verify.c, vtable-verify.h: Adjust.
16811
16812 2015-04-17 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
16813 Jakub Jelinek <jakub@redhat.com>
16814
16815 PR target/65787
16816 * config/rs6000/rs6000.c (rtx_is_swappable_p): Ensure that a
16817 subsequent SH_NONE operand does not overwrite an existing *special
16818 value.
16819 (adjust_extract): Handle case where a vec_extract operation is
16820 wrapped in a PARALLEL.
16821
16822 2015-04-17 H.J. Lu <hongjiu.lu@intel.com>
16823
16824 PR target/65780
16825 * config/i386/i386.c (ix86_binds_local_p): Define only if
16826 TARGET_MACHO and TARGET_DLLIMPORT_DECL_ATTRIBUTES are false.
16827
16828 2015-04-17 Jeff Law <law@redhat.com>
16829
16830 PR tree-optimization/47679
16831 * Makefile.in (OBJS); Add tree-ssa-scopedtables.o.
16832 * tree-ssa-scopedtables.c: New file.
16833 * tree-ssa-scopedtables.h: New file.
16834 * tree-ssa-dom.c: Include tree-ssa-scopedtables.h.
16835 (const_and_copies): Change name/type.
16836 (record_const_or_copy): Move into tree-ssa-scopedtables.c
16837 (record_const_or_copy_1): Similarly.
16838 (restore_vars_to_original_value): Similarly.
16839 (pass_dominator::execute): Create and destroy const_and_copies table.
16840 (thread_across_edge): Update passing of const_and_copies.
16841 (record_temporary_equivalence): Use method calls rather than
16842 manipulating const_and_copies directly.
16843 (record_equality, cprop_into_successor_phis): Similarly.
16844 (dom_opt_dom_walker::before_dom_children): Similarly.
16845 (dom_opt_dom_walker::after_dom_children): Similarly.
16846 (eliminate_redundant_computations): Similarly.
16847 * tree-ssa-threadedge.c (remove_temporary_equivalences): Delete.
16848 (record_temporary_equivalence): Likewise.
16849 (invalidate_equivalences): Likewise.
16850 (record_temporary_equivalences_from_phis): Update due to type
16851 change of const_and_copies. Use method calls rather than
16852 manipulating the stack directly.
16853 (record_temporary_equivalences_from_stmts_at_dest): Likewise.
16854 (thread_through_normal_block, thread_across_edge): Likewise.
16855 (thread_across_edge): Likewise.
16856 * tree-ssa-threadedge.h (thread_across_edge): Update prototype.
16857 * tree-vrp.c: Include tree-ssa-scopedtables.h. Change type
16858 of equiv_stack.
16859 (identify_jump_threads): Update due to type change of equiv_stack.
16860 (finalize_jump_threads): Delete the equiv_stack when complete.
16861
16862 2015-04-17 Uros Bizjak <ubizjak@gmail.com>
16863
16864 * config/i386/i386.h (LEGITIMIZE_RELOAD_ADDRESS): Remove.
16865 * config/i386/i386.c (ix86_legitimize_reload_address): Ditto.
16866 * config/i386/i386-protos.h (ix86_legitimize_reload_address): Ditto.
16867
16868 2015-04-17 Andreas Tobler <andreast@gcc.gnu.org>
16869
16870 PR target/65535
16871 * config.gcc: Exit with a comment when we do not have a major version
16872 number for the FreeBSD target.
16873
16874 2015-04-17 Jakub Jelinek <jakub@redhat.com>
16875
16876 PR target/65689
16877 * genpreds.c (struct constraint_data): Add maybe_allows_reg and
16878 maybe_allows_mem bitfields.
16879 (maybe_allows_none_start, maybe_allows_none_end,
16880 maybe_allows_reg_start, maybe_allows_reg_end, maybe_allows_mem_start,
16881 maybe_allows_mem_end): New variables.
16882 (compute_maybe_allows): New function.
16883 (add_constraint): Use it to initialize maybe_allows_reg and
16884 maybe_allows_mem fields.
16885 (choose_enum_order): Sort the non-is_register/is_const_int/is_memory/
16886 is_address constraints such that those that allow neither mem nor
16887 reg come first, then those that only allow reg but not mem, then
16888 those that only allow mem but not reg, then the rest.
16889 (write_allows_reg_mem_function): New function.
16890 (write_tm_preds_h): Call it.
16891 * stmt.c (parse_output_constraint, parse_input_constraint): Use
16892 the generated insn_extra_constraint_allows_reg_mem function
16893 instead of always setting *allows_reg = true; *allows_mem = true;
16894 for unknown extra constraints.
16895
16896 2015-04-17 H.J. Lu <hongjiu.lu@intel.com>
16897
16898 PR target/65780
16899 * output.h (default_binds_local_p_3): New.
16900 * varasm.c (default_binds_local_p_3): Make it public. Take an
16901 argument to indicate if common symbol may be local. If common
16902 symbol may be local, treat non-external variable as defined
16903 locally.
16904 (default_binds_local_p_2): Pass !flag_pic to default_binds_local_p_3.
16905 (default_binds_local_p_1): Pass false to default_binds_local_p_3.
16906 * config/i386/i386.c (ix86_binds_local_p): New.
16907 (TARGET_BINDS_LOCAL_P): Replace default_binds_local_p_2 with
16908 ix86_binds_local_p.
16909
16910 2015-04-17 Jakub Jelinek <jakub@redhat.com>
16911
16912 PR debug/65771
16913 * dwarf2out.c (mem_loc_descriptor): For CONST, fallback to
16914 trying mem_loc_descriptor on XEXP (rtl, 0).
16915
16916 2015-04-17 Martin Liska <mliska@suse.cz>
16917
16918 * ipa-icf.c (sem_item_optimizer::subdivide_classes_by_sensitive_refs):
16919 Release symbol_compare_collection.
16920 * ipa-reference.c: Add TODO that a vector should be released.
16921
16922 2015-04-17 Sivanupandi Pitchumani <Pitchumani.Sivanupandi@atmel.com>
16923
16924 PR target/65296
16925 * config/avr/gen-avr-mmcu-specs.c (*avrlibc_startfile): Adjust
16926 to new AVR-LibC file layout (bug #44574).
16927 (*avrlibc_devicelib): Same.
16928 * config/avr/avr-mcus.def: Adjust comments.
16929 * config/avr/avr.opt (nodevicelib): Adjust help.
16930
16931 2015-04-17 Alan Lawrence <alan.lawrence@arm.com>
16932
16933 * config/aarch64/arm_neon.h (vdup_n_f32): Remove forward declaration.
16934
16935 2015-04-17 Patrick Palka <ppalka@gcc.gnu.org>
16936
16937 PR c++/64527
16938 * gimplify.c (gimplify_init_constructor): Always emit a
16939 side-effecting constructor.
16940
16941 2015-04-17 Tom de Vries <tom@codesourcery.com>
16942
16943 PR tree-optimization/64950
16944 * gimplify.c (gimplify_function_tree): Tentatively set PROP_gimple_lva
16945 in cfun->curr_properties.
16946 (gimplify_va_arg_expr): Clear PROP_gimple_lva in cfun->curr_properties
16947 if we generate an IFN_VA_ARG.
16948 * tree-inline.c (expand_call_inline): Reset PROP_gimple_lva in dest
16949 function if PROP_gimple_lva is not set in src function.
16950
16951 2015-04-17 Tom de Vries <tom@codesourcery.com>
16952 Michael Matz <matz@suse.de>
16953
16954 PR tree-optimization/64950
16955 * gimple-iterator.c (update_modified_stmts): Remove static.
16956 * gimple-iterator.h (update_modified_stmts): Declare.
16957 * gimplify.c (gimplify_modify_expr): Handle IFN_VA_ARG.
16958 (gimplify_va_arg_internal): New function.
16959 (gimplify_va_arg_expr): Use IFN_VA_ARG.
16960 * gimplify.h (gimplify_va_arg_internal): Declare.
16961 * internal-fn.c (expand_VA_ARG): New unreachable function.
16962 * internal-fn.def (VA_ARG): New DEF_INTERNAL_FN.
16963 * tree-stdarg.c (gimple_call_ifn_va_arg_p, expand_ifn_va_arg_1)
16964 (expand_ifn_va_arg): New function.
16965 (pass_data_stdarg): Add PROP_gimple_lva to properties_provided field.
16966 (pass_stdarg::execute): Call expand_ifn_va_arg.
16967 (pass_data_lower_vaarg): New pass_data.
16968 (pass_lower_vaarg): New gimple_opt_pass.
16969 (pass_lower_vaarg::gate, pass_lower_vaarg::execute)
16970 (make_pass_lower_vaarg): New function.
16971 * cfgexpand.c (pass_data_expand): Add PROP_gimple_lva to
16972 properties_required field.
16973 * passes.def (all_passes): Add pass_lower_vaarg.
16974 * tree-pass.h (PROP_gimple_lva): Add define.
16975 (make_pass_lower_vaarg): Declare.
16976
16977 2015-04-17 Tom de Vries <tom@codesourcery.com>
16978
16979 * fold-const.c (operand_equal_p): Handle INTERNAL_FNs.
16980 * calls.c (call_expr_flags): Same.
16981
16982 2015-04-17 Tom de Vries <tom@codesourcery.com>
16983
16984 * tree-stdarg.c (optimize_va_list_gpr_fpr_size): Factor out of ...
16985 (pass_stdarg::execute): ... here.
16986
16987 2015-04-17 Tom de Vries <tom@codesourcery.com>
16988 Michael Matz <matz@suse.de>
16989
16990 * tree-cfg.c (make_blocks_1): Factor out of ...
16991 (make_blocks): ... here.
16992 (make_edges_bb): Factor out of ...
16993 (make_edges): ... here.
16994 (gimple_find_sub_bbs): New function.
16995 * tree-cfg.h (gimple_find_sub_bbs): Declare.
16996
16997 2015-04-17 Tom de Vries <tom@codesourcery.com>
16998
16999 * tree.c (free_lang_data): Disable lang_hooks.gimplify_expr.
17000
17001 2015-04-17 Yury Gribov <y.gribov@samsung.com>
17002
17003 * asan.c (set_sanitized_sections): New function.
17004 (section_sanitized_p): Ditto.
17005 (asan_protect_global): Optionally sanitize user-defined
17006 sections.
17007 * asan.h (set_sanitized_sections): Declare new function.
17008 * common.opt (fsanitize-sections): New option.
17009 * doc/invoke.texi (-fsanitize-sections): Document new option.
17010 * opts-global.c (handle_common_deferred_options): Handle new
17011 option.
17012
17013 2015-04-17 Jakub Jelinek <jakub@redhat.com>
17014
17015 PR debug/65771
17016 * dwarf2out.c (loc_list_from_tree): Return NULL
17017 for DEBUG_EXPR_DECL.
17018
17019 2015-04-17 Christian Bruel <christian.bruel@st.com>
17020
17021 * ipa-inline.c (can_inline_edge_p): Allow inlining of functions with
17022 same attributes.
17023
17024 2015-04-16 Zhouyi Zhou <yizhouzhou@ict.ac.cn>
17025
17026 * ira-color.c (setup_left_conflict_sizes_p): Do not process
17027 node itself when computing left conflict subnode size.
17028
17029 2015-04-16 Uros Bizjak <ubizjak@gmail.com>
17030
17031 * config/i386/predicates.md (register_mixssei387nonimm_operand): New.
17032 * config/i386/i386.md (*fop_<mode>_1_mixed): Merge with
17033 *fop_<mode>_1_sse using enabled attribute. Use
17034 register_mixssei387nonimm_operand operand 1 predicate. Change
17035 alternative 3 constraints from "x" to "v".
17036
17037 2015-04-16 Richard Biener <rguenther@suse.de>
17038
17039 PR tree-optimization/65774
17040 * tree-ssa-ccp.c (evaluate_stmt): Constrain types we invoke
17041 bit-value tracking on.
17042
17043 2015-04-16 Richard Biener <rguenther@suse.de>
17044
17045 PR tree-optimization/64277
17046 * tree-vrp.c (check_array_ref): Fix anti-range handling,
17047 simplify upper bound handling.
17048 (search_for_addr_array): Simplify.
17049 (check_array_bounds): Handle ADDR_EXPRs here.
17050 (check_all_array_refs): Simplify.
17051
17052 2015-04-16 Uros Bizjak <ubizjak@gmail.com>
17053
17054 * config/i386/i386.c (print_reg): Rewrite function.
17055
17056 2015-04-16 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
17057
17058 * config/s390/s390.h (IRA_HARD_REGNO_ADD_COST_MULTIPLIER):
17059 Invert the condition.
17060
17061 2015-04-16 Renlin Li <renlin.li@arm.com>
17062
17063 * simplify-rtx.c (simplify_unary_operation_1): Fix a typo. Enable two
17064 simplifications for UNSIGNED_FLOAT.
17065
17066 2015-04-16 Nick Clifton <nickc@redhat.com>
17067
17068 * config/rl78/rl78-opts.h (enum rl78_mul_types): Add MUL_G14 and
17069 MUL_UNINIT.
17070 (enum rl78_cpu_type): New.
17071 * config/rl78/rl78-virt.md (attr valloc): Add divhi and divsi.
17072 (umulhi3_shift_virt): Remove m constraint from operand 1.
17073 (umulqihi3_virt): Likewise.
17074 * config/rl78/rl78.c (rl78_option_override): Add code to process
17075 -mcpu and -mmul options.
17076 (rl78_alloc_physical_registers): Add code to handle divhi and
17077 divsi valloc attributes.
17078 (set_origin): Likewise.
17079 * config/rl78/rl78.h (RL78_MUL_G14): Define.
17080 (TARGET_G10, TARGET_G13, TARGET_G14): Define.
17081 (TARGET_CPU_CPP_BUILTINS): Define __RL78_MUL_xxx__ and
17082 __RL78_Gxx__.
17083 (ASM_SPEC): Pass -mcpu on to assembler.
17084 * config/rl78/rl78.md (mulqi3): Add a clobber of AX.
17085 (mulqi3_rl78): Likewise.
17086 (mulhi3_g13): Likewise.
17087 (mulhi3): Generate the G13 or G14 versions of the insn directly.
17088 (mulsi3): Likewise.
17089 (mulhi3_g14): Add clobbers of AX and BC.
17090 (mulsi3_g14): Likewise.
17091 (mulsi3_g13): Likewise.
17092 (udivmodhi4, udivmodhi4_g14, udivmodsi4): New patterns.
17093 (udivmodsi4_g14, udivmodsi4_g13): New patterns.
17094 * config/rl78/rl78.opt (mmul): Initialise value to
17095 RL78_MUL_UNINIT.
17096 (mcpu): New option.
17097 (m13, m14, mrl78): New option aliases.
17098 * config/rl78/t-rl78 (MULTILIB_OPTIONS): Add mg13 and mg14.
17099 (MULTILIB_DIRNAMES): Add g13 and g14.
17100 * doc/invoke.texi: Document -mcpu and -mmul options.
17101
17102 2015-04-16 Richard Biener <rguenther@suse.de>
17103
17104 * tree-ssa-ccp.c (likely_value): See if we have operands that
17105 are marked as never simulate again and return CONSTANT in this
17106 case.
17107 * tree-ssa-propagate.c (simulate_stmt): Mark stmts that do
17108 not have any operands that will be simulated again as
17109 not being simulated again.
17110
17111 2015-04-15 Uros Bizjak <ubizjak@gmail.com>
17112
17113 * config/i386/i386.md (*cmpi<FPCMP:unord><MODEF:mode>_mixed):
17114 Merge with *cmpi<FPCMP:unord><MODEF:mode>_sse using enabled attribute.
17115 (*extendsfdf2_mixed): Merge with *extendsfdf2_sse using enabled
17116 attribute.
17117 (*truncdfsf_fast_mixed): Merge with *truncdfsf_fast_sse using
17118 enabled attribute.
17119 (*float<SWI48:mode><MODEF:mode>2_mixed): Rename from
17120 *float<SWI48:mode><MODEF:mode>2_sse.
17121 (*absneg<mode>2_mixed): Merge with *absneg<mode>2_sse using
17122 enabled attribute.
17123 (*fop_<mode>_comm_mixed): Merge with *fop_<mode>_comm_sse using
17124 enabled attribute.
17125
17126 2015-04-15 Tom de Vries <tom@codesourcery.com>
17127
17128 PR other/65487
17129 * function.c (push_dummy_function): New function.
17130 (init_dummy_function_start): Use push_dummy_function.
17131 (pop_dummy_function): New function. Factored out of ...
17132 (expand_dummy_function_end): ... here.
17133 * function.h (push_dummy_function, pop_dummy_function): Declare.
17134 * passes.c (pass_manager::dump_passes): Use push_dummy_function and
17135 pop_dummy_function.
17136 * tree-chkp.c (chkp_gate): Handle cgraph_node::get (cfun->decl) == NULL.
17137
17138 2015-04-15 Jeff Law <law@redhat.com>
17139
17140 PR tree-optimization/47679
17141 * tree-ssa-dom.c (build_and_record_new_cond): Moved to avoid
17142 need for forward declaration in upcoming changes.
17143 (record_conditions, record_edge_info): Likewise.
17144
17145 PR rtl-optimization/42522
17146 * cse.c (fold_rtx): Try to simplify a ZERO_EXTRACT or
17147 SIGN_EXTRACT as a whole object rather than simplifying
17148 its operand.
17149
17150 2015-04-15 Jakub Jelinek <jakub@redhat.com>
17151
17152 PR ipa/65765
17153 * ipa-icf-gimple.c (func_checker::compare_bb): For GIMPLE_NOP
17154 and GIMPLE_PREDICT use break instead of return true. For
17155 GIMPLE_EH_DISPATCH, compare dispatch region.
17156
17157 2015-04-14 Matthew Wahab <matthew.wahab@arm.com>
17158
17159 * doc/extend.texi (__sync Builtins): Simplify some text. Update
17160 details about the implementation. Make clear preference for
17161 __atomic builtins. Reduce possibility of future change.
17162
17163 2015-04-15 Nick Clifton <nickc@redhat.com>
17164
17165 * config/rx/rx.opt (mallow-string-insns): New option.
17166 * config/rx/rx.c (RX_BUILTIN_RMPA): Disable the use of this
17167 builtin if string instructions are denied.
17168 * config/rx/rx.h (TARGET_CPU_CPP_BUILTINS): Define
17169 __RX_ALLOW_STRING_INSNS__ or __RX_DISALLOW_STRING_INSNS__, as
17170 appropriate.
17171 (ASM_SPEC): Pass -mno-allow-string-insns on to the assembler.
17172 * config/rx/rx.md (movstr): Enable pattern only if string
17173 instructions are allowed.
17174 (rx_movstr, rx_strend, movmemsi, rx_movmem): Likewise.
17175 (cmpstrnsi, cmpstrsi, rx_cmpstrn, rmpa): Likewise.
17176 * config/rx/t-rx (MULTILIB_OPTIONS): Add mno-allow-string-insns.
17177 (MULTILIB_DIRNAMES): Add no-strings.
17178 * doc/invoke.texi: Document -mno-allow-string-insns.
17179
17180 2015-04-15 Alan Modra <amodra@gmail.com>
17181
17182 PR target/65408
17183 PR target/58744
17184 PR middle-end/36043
17185 * calls.c (load_register_parameters): Don't load past end of
17186 mem unless suitably aligned.
17187
17188 2015-04-15 Nick Clifton <nickc@redhat.com>
17189
17190 * config/rl78/rl78.c (rl78_expand_prologue): Mark large stack
17191 decrement instruction as being frame related.
17192 (rl78_print_operand_1): Handle 'p' modifier to add +0 to HL
17193 based addresses.
17194 If zero extending a function address enclose the operation in
17195 %code(...).
17196 (rl78_preferred_reload_class): New function.
17197 (TARGET_PREFERRED_RELOAD_CLASS): Define.
17198 * config/rl78/rl78.md: Remove useless constraints in expanders.
17199 (mulqi3_rl78): Remove + qualifier on input-only operand 1.
17200 (mulhi3_rl78): Likewise.
17201 (mulhi3_g13): Likewise.
17202 (mulsi3_rl78): Likewise.
17203 (es_addr): Move to before the multiply patterns.
17204
17205 2015-04-15 Alan Modra <amodra@gmail.com>
17206
17207 * function.h (struct emit_status): Delete x_first_insn, x_last_insn
17208 and sequence_stack. Add seq.
17209 (seq_stack): Delete.
17210 * function.c (prepare_function_start): Don't access x_last_insn.
17211 * emit-rtl.h (get_current_sequence, get_topmost_sequence): New.
17212 (get_insns, set_first_insn, get_last_insn, set_last_insn): Use them.
17213 * emit_rtl.c (start_sequence, push_topmost_sequence,
17214 pop_topmost_sequence, end_sequence, in_sequence_p, init_emit): Use
17215 sequence accessors.
17216 (get_last_insn_anywhere, add_insn_after_nobb, add_insn_before_nobb,
17217 remove_insn): Likewise. Simplify.
17218 * config/m32c/m32c.c (m32c_leaf_function_p): Use push_topmost_sequence
17219 and pop_topmost_sequence.
17220 (m32c_function_needs_enter): Use get_topmost_sequence. Ignore
17221 debug insns.
17222 * config/rs6000/rs6000.c (rs6000_call_aix): Use get_current_sequence.
17223
17224 2015-04-14 Yvan Roux <yvan.roux@linaro.org>
17225
17226 PR target/65729
17227 * lra-constraints.c (prohibited_class_reg_set_mode_p): Restore and fix
17228 the assertiion.
17229
17230 2015-04-14 Uros Bizjak <ubizjak@gmail.com>
17231
17232 * config/i386/i386.h (LEGACY_INT_REG_P): New define.
17233 (LEGACY_INT_REGNO_P): Ditto.
17234 (GENERAL_REGNO_P): Use LEGACY_INT_REGNO_P.
17235 (ANY_MASK_REG_P): Remove.
17236 (BND_REG_P): Rename from ANY_BND_REG_P.
17237 * config/i386/i386.c (print_reg): Use LEGACY_INT_REG_P to print
17238 legacy integer registers. Do not handle MMX_REG_P in a special way.
17239 Merge 64byte and 32byte SSE handling.
17240
17241 2015-04-14 Nick Clifton <nickc@redhat.com>
17242
17243 * expr.c (expand_assignment): Force an address offset computation
17244 into a register before changing its mode.
17245 (expand_expr_real_1): Likewise.
17246
17247 2015-04-14 Alan Lawrence <alan.lawrence@arm.com>
17248
17249 * config/aarch64/arm_neon.h (vst1_lane_f32, vst1_lane_f64,
17250 vst1_lane_p8, vst1_lane_p16, vst1_lane_s8, vst1_lane_s16,
17251 vst1_lane_s32, vst1_lane_s64, vst1_lane_u8, vst1_lane_u16,
17252 vst1_lane_u32, vst1_lane_u64, vst1q_lane_f32, vst1q_lane_f64,
17253 vst1q_lane_p8, vst1q_lane_p16, vst1q_lane_s8, vst1q_lane_s16,
17254 vst1q_lane_s32, vst1q_lane_s64, vst1q_lane_u8, vst1q_lane_u16,
17255 vst1q_lane_u32, vst1q_lane_u64): Reimplement with pointer dereference
17256 and __aarch64_vget_lane_any.
17257
17258 2015-04-14 Jakub Jelinek <jakub@redhat.com>
17259
17260 PR rtl-optimization/65761
17261 * cfgrtl.c (rtl_split_edge): For EDGE_CROSSING split, use
17262 get_last_bb_insn (after) instead of NEXT_INSN (BB_END (after)).
17263
17264 2015-04-14 Richard Biener <rguenther@suse.de>
17265
17266 * graphite-scop-detection.c: Do not include cp/cp-tree.h.
17267 (graphite_can_represent_scev): Use POINTER_TYPE_P.
17268
17269 2015-04-14 Richard Biener <rguenther@suse.de>
17270
17271 PR tree-optimization/65758
17272 * tree-ssa-ccp.c (get_value_from_alignment): Adjust mask test
17273 against -1.
17274 (ccp_lattice_meet): Likewise.
17275 (bit_value_unop): Likewise.
17276 (bit_value_binop): Likewise.
17277 (bit_value_assume_aligned): Likewise.
17278
17279 2015-04-14 Christian Bruel <christian.bruel@st.com>
17280
17281 * execute_dwarf2_frame (dw_frame_pointer_regnum): Reinitialize for each
17282 function.
17283
17284 2015-04-14 Marc Glisse <marc.glisse@inria.fr>
17285
17286 PR tree-optimization/63387
17287 * match.pd ((x unord x) | (y unord y) -> (x unord y),
17288 (x unord x) | (x unord y) -> (x unord y)): New simplifications.
17289
17290 2015-04-14 Uros Bizjak <ubizjak@gmail.com>
17291
17292 * config/i386/predicates.md (any_QIreg_operand): Rename from
17293 q_regs_operand. Do not process subregs.
17294 (QIreg_operand): Use QI_REGNO_P predicate.
17295 (ext_QIreg_operand): Ditto.
17296 (ext_register_operand): Ditto.
17297 * config/i386/i386.md (TEST splitters): Use QIreg_operand predicate.
17298 (AND splitters): Ditto.
17299 (AND with -65536 splitter): Add SWI48 mode for operand 0.
17300 (AND with -256 splitter): Use any_QIreg_operand predicate and
17301 SWI248 mode for operand 0.
17302 (AND with -65281 splitter): Use QIreg_operand predicate and SWI248
17303 mode for operand 0.
17304 (SETCC + MOVZBL peepholes): Update for renamed any_QIreg_operand.
17305
17306 2015-04-13 Gerald Pfeifer <gerald@pfeifer.com>
17307
17308 * doc/plugins.texi: Rewrite first introductory paragraph.
17309
17310 2015-04-12 Jan Hubicka <hubicka@ucw.cz>
17311
17312 * tree-vrp.c (nonnull_arg_p): THIS pointers and references are non-zero.
17313 (gimple_stmt_nonzero_warnv_p): Reference return values are non-zero.
17314
17315 2015-04-12 Jan Hubicka <hubicka@ucw.cz>
17316
17317 * ipa-profie.c (ipa_profile): Check number of parameters
17318 and possible polymorphic call targets before
17319 devirtualizing.
17320
17321 2015-04-13 Uros Bizjak <ubizjak@gmail.com>
17322
17323 * config/i386/i386.md (*bmi2_umul<mode><dwi>3_1): Merge from
17324 *bmi2_umulsidi3_1 and *bmi2_umulditi3_1 using DWIH mode iterator.
17325
17326 2015-04-13 Richard Biener <rguenther@suse.de>
17327
17328 PR tree-optimization/65204
17329 * tree-ssa-ccp.c (evaluate_stmt): Always evaluate address
17330 takens for bit-CCP.
17331
17332 2015-04-13 Richard Biener <rguenther@suse.de>
17333
17334 PR target/65660
17335 * config/i386/i386.c (bdver1_cost): Double cond_taken_branch_cost
17336 and cond_not_taken_branch_cost to 4 and 2.
17337 (bdver2_cost): Likewise.
17338 (bdver3_cost): Likewise.
17339 (bdver4_cost): Likewise.
17340
17341 2015-04-12 Jan Hubicka <hubicka@ucw.cz>
17342
17343 * hash-table.h (hash_table constructor): Add mem stats.
17344 (alloc_entries): Likewise.
17345
17346 2015-04-12 Jan Hubicka <hubicka@ucw.cz>
17347
17348 * ipa-cp.c (ipcp_driver): Relase prev_edge.
17349 * passes.c (execute_one_pass): Only add transform if pass has one.
17350
17351 2015-04-12 Joseph Myers <joseph@codesourcery.com>
17352
17353 * config/i386/i386.c (ix86_option_override_internal): Don't set
17354 -fprefetch-loop-arrays if optimizing for size.
17355
17356 2015-04-12 Jan Hubicka <hubicka@ucw.cz>
17357 Gerald Pfeifer <gerald@pfeifer.com>
17358
17359 * doc/contrib.texi (Contributors): Add Martin Jambor and
17360 Michael Matz.
17361
17362 2015-04-12 Jakub Jelinek <jakub@redhat.com>
17363
17364 * BASE-VER: Set to 6.0.0.
17365
17366 PR tree-optimization/65747
17367 * ipa-icf-gimple.c (func_checker::compare_operand): Use compare_operand
17368 rather than compare_ssa_name for OBJ_TYPE_REF_OBJECT.
17369
17370 2015-04-12 Gerald Pfeifer <gerald@pfeifer.com>
17371
17372 * doc/invoke.texi (-Wmemset-transposed-args): Break a long
17373 sentence. Improve grammar.
17374
17375 2015-04-12 Gerald Pfeifer <gerald@pfeifer.com>
17376
17377 * doc/contrib.texi (Contributors): Add Maxim Kuvyrkov.
17378
17379 2015-04-11 Jan Hubicka <hubicka@ucw.cz>
17380
17381 PR ipa/65743
17382 * ipa-inline-transform.c (speculation_removed): Remove static var.
17383 (check_speculations): New function.
17384 (clone_inlined_nodes): Do not check spculations.
17385 (inline_call): Call check_speculations.
17386 * ipa-prop.c (ipa_make_edge_direct_to_target): Do not
17387 consider non-invariants.
17388
17389 2015-04-11 Jan Hubicka <hubicka@ucw.cz>
17390 Martin Liska <mliska@suse.cz>
17391
17392 PR ipa/65722
17393 * ipa-icf.c (sem_item::compare_cgraph_references): function and
17394 variable can not match.
17395 (sem_item::update_hash_by_addr_refs): Fix handling of virtual tables.
17396 (sem_variable::equals_wpa): Fix checking of DECL_FINAL_P patch.
17397
17398 2015-04-11 Jakub Jelinek <jakub@redhat.com>
17399
17400 PR tree-optimization/65735
17401 * tree-ssa-threadedge.c (fsm_find_control_statement_thread_paths):
17402 Remove visited_phis argument, add visited_bbs, avoid recursing into the
17403 same bb rather than just into the same phi node.
17404 (thread_through_normal_block): Adjust caller.
17405
17406 2015-04-11 Gerald Pfeifer <gerald@pfeifer.com>
17407
17408 * doc/contrib.texi (Contributors): Add Ira Rosen.
17409
17410 2015-04-11 Benno Schulenberg <bensberg@justemail.net>
17411
17412 * gcov.c (find_source): Fix miswording in error message.
17413 * config/i386/i386.c (ix86_handle_cconv_attribute): Likewise.
17414 (ix86_expand_sse_comi_round): Fix typo in error message.
17415
17416 2015-04-11 Gerald Pfeifer <gerald@pfeifer.com>
17417
17418 * doc/contrib.texi (Contributors): Add Laurynas Biveinis.
17419
17420 2015-04-10 Gerald Pfeifer <gerald@pfeifer.com>
17421
17422 * doc/contrib.texi (Contributors): Update Joe Buck's entry.
17423
17424 2015-04-10 Vladimir Makarov <vmakarov@redhat.com>
17425
17426 PR target/65710
17427 * lra-assigns.c (spill_for): Update smallest_bad_spills_num.
17428 Print bad_spills_num and insn_pseudos_num.
17429
17430 2015-04-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
17431
17432 PR target/65694
17433 * config/arm/arm.c (arm_canonicalize_comparison): Use ARM_SIGN_EXTEND
17434 when creating +1 values for SImode.
17435
17436 2015-04-10 Vladimir Makarov <vmakarov@redhat.com>
17437
17438 PR target/65729
17439 * lra-constraints.c (prohibited_class_reg_set_mode_p): Comment the
17440 assert.
17441
17442 2015-04-10 Jakub Jelinek <jakub@redhat.com>
17443 Iain Sandoe <iain@codesourcery.com>
17444
17445 PR target/65351
17446 * configure: Regenerate.
17447
17448 2015-04-09 Kirill Yukhin <kirill.yukhin@intel.com>
17449
17450 PR target/65671
17451 * config/i386/sse.md: Generate vextract32x4 if AVX-512DQ is disabled.
17452
17453 2015-04-09 Gerald Pfeifer <gerald@pfeifer.com>
17454
17455 * doc/contrib.texi (Contributors): Add John Marino.
17456
17457 2015-04-09 Jakub Jelinek <jakub@redhat.com>
17458
17459 PR tree-optimization/65709
17460 * ubsan.c (instrument_mem_ref): Use TREE_TYPE (base) instead of
17461 TREE_TYPE (TREE_TYPE (t)).
17462
17463 2015-04-09 Vladimir Makarov <vmakarov@redhat.com>
17464
17465 PR target/65710
17466 * lra-int.h (lra_bad_spill_regno_start): New.
17467 * lra.c (lra_bad_spill_regno_start): New.
17468 (lra): Set up lra_bad_spill_regno_start. Set up
17469 lra_constraint_new_regno_start unconditionally.
17470 * lra-assigns.c (spill_for): Use lra_bad_spill_regno_start for
17471 spill preferences.
17472
17473 2015-04-09 Marek Polacek <polacek@redhat.com>
17474 Jakub Jelinek <jakub@redhat.com>
17475
17476 PR middle-end/65554
17477 * gimple-fold.c (gimple_fold_builtin_memory_op): Update comment.
17478 (fold_ctor_reference): Use STRIP_USELESS_TYPE_CONVERSION instead
17479 of STRIP_NOPS.
17480
17481 2015-04-09 Segher Boessenkool <segher@kernel.crashing.org>
17482
17483 PR rtl-optimization/65693
17484 * combine.c (is_parallel_of_n_reg_sets): Move outside of
17485 #ifndef HAVE_cc0.
17486
17487 2015-04-09 Georg-Johann Lay <avr@gjlay.de>
17488
17489 PR target/65296
17490 * config/avr/driver-avr.c (avr_devicespecs_file): Don't specify a
17491 device specs file if "device-specs%s" didn't resolve to a path.
17492
17493 2015-04-09 Kirill Yukhin <kirill.yukhin@intel.com>
17494
17495 PR target/65676
17496 * config/i386/i386.c (fixup_modeless_constant): New.
17497 (ix86_expand_args_builtin): Fixup modeless constant operand.
17498 (ix86_expand_round_builtin): Ditto.
17499 (ix86_expand_special_args_builtin): Ditto.
17500 (ix86_expand_builtin): Ditto.
17501
17502 2015-04-09 Jakub Jelinek <jakub@redhat.com>
17503
17504 PR target/65693
17505 * config/i386/i386.md (*udivmod<mode>4_pow2): Allow
17506 any pow2 integer in between 2 and 0x80000000U inclusive.
17507
17508 2015-04-08 Segher Boessenkool <segher@kernel.crashing.org>
17509
17510 PR rtl-optimization/65693
17511 * combine.c (is_parallel_of_n_reg_sets): Change first argument
17512 from an rtx_insn * to an rtx.
17513 (try_combine): Adjust both callers. Use it once more.
17514
17515 2015-04-08 Ilya Enkovich <ilya.enkovich@intel.com>
17516
17517 * tree-chkp.c (chkp_find_const_bounds_var): Remove.
17518 (chkp_make_static_const_bounds): Search existing
17519 symbol by assembler name. Use make_decl_one_only.
17520 (chkp_get_zero_bounds_var): Remove node search which
17521 is now performed in chkp_make_static_const_bounds.
17522 (chkp_get_none_bounds_var): Likewise.
17523
17524 2015-04-08 Michael Witten <mfwitten@gmail.com>
17525
17526 * doc/extend.texi (Attribute Syntax): Add a trailing semicolon
17527 to an example.
17528
17529 2015-04-08 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
17530
17531 * tree.h (CONVERT_EXPR_P): Commentary typo fix.
17532
17533 2015-04-08 Gerald Pfeifer <gerald@pfeifer.com>
17534
17535 * doc/extend.texi (__sync Builtins): Fix grammar.
17536
17537 2015-04-08 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
17538
17539 * doc/cfg.texi (GIMPLE statement iterators): Fix typo.
17540
17541 2015-04-08 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
17542
17543 * varasm.c (emit_local): Move definition of align.
17544
17545 2015-04-08 Julian Brown <julian@codesourcery.com>
17546
17547 * config/nvptx/mkoffload.c (process): Support variable mapping.
17548
17549 2015-03-27 Trevor Saunders <tbsaunde@tbsaunde.org>
17550
17551 * config/alpha/alpha.c (alpha_use_linkage): Change type of slot to
17552 alpha_links **.
17553 (alpha_write_one_linkage): Correct typo.
17554
17555 2015-04-08 Ilya Enkovich <ilya.enkovich@intel.com>
17556
17557 * ipa-comdats.c (propagate_comdat_group): Walk through thunks.
17558
17559 2015-04-08 Gerald Pfeifer <gerald@pfeifer.com>
17560
17561 * doc/install.texi (bootstrap-lto-noplugin): Rewrite.
17562
17563 2015-04-08 Ilya Enkovich <ilya.enkovich@intel.com>
17564
17565 * tree-chkp.h (chkp_insert_retbnd_call): New.
17566 * tree-chkp.c (chkp_insert_retbnd_call): New.
17567 * ipa-split.c (insert_bndret_call_after): Remove.
17568 (split_function): Use chkp_insert_retbnd_call.
17569 * cgraphunit.c (cgraph_node::expand_thunk): Build returned
17570 bounds for instrumented functions.
17571
17572 2015-04-07 Jan Hubicka <hubicka@ucw.cz>
17573
17574 PR ipa/65540
17575 * calls.c (initialize_argument_information): When producing tail
17576 call also turn SSA_NAMES passed by references to original PARM_DECLs
17577
17578 2015-04-07 Vladimir Makarov <vmakarov@redhat.com>
17579
17580 PR target/65648
17581 * lra-remat.c (do_remat): Process input and non-input insn
17582 registers separately.
17583
17584 2015-04-07 Jakub Jelinek <jakub@redhat.com>
17585
17586 PR debug/65678
17587 * valtrack.c (debug_lowpart_subreg): New function.
17588 (dead_debug_insert_temp): Use it.
17589
17590 PR middle-end/65680
17591 * expr.c (get_inner_reference): Handle bit_offset that doesn't fit
17592 into signed HOST_WIDE_INT the same as negative bit_offset.
17593
17594 2015-04-07 Ilya Enkovich <ilya.enkovich@intel.com>
17595
17596 * ipa-comdats.c (ipa_comdats): Visit all thunks
17597 to set proper comdat group.
17598
17599 2015-04-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
17600
17601 PR target/65489
17602 * config/arm/arm.c (arm_legitimate_constant_p_1): Remove restriction
17603 on constants for NEON VSTRUCT modes.
17604
17605 2015-04-07 Jakub Jelinek <jakub@redhat.com>
17606 Iain Sandoe <iain@codesourcery.com>
17607
17608 PR target/65351
17609 * configure: Regenerate.
17610
17611 2015-04-06 Michael Meissner <meissner@linux.vnet.ibm.com>
17612
17613 PR target/65614
17614 * config/rs6000/rs6000.c (struct processor_costs): Add cost field
17615 for SF->DF conversions to make FLOAT_EXTEND more expensive, so
17616 that LFD is used to load double constants instead of LFS. Add
17617 defaults for all costs structures. Add comments for missing
17618 initialization fields.
17619 (size32_cost): Likewise.
17620 (size64_cost): Likewise.
17621 (rs64a_cost): Likewise.
17622 (mpccore_cost): Likewise.
17623 (ppc403_cost): Likewise.
17624 (ppc405_cost): Likewise.
17625 (ppc440_cost): Likewise.
17626 (ppc476_cost): Likewise.
17627 (ppc601_cost): Likewise.
17628 (ppc603_cost): Likewise.
17629 (ppc604_cost): Likewise.
17630 (ppc604e_cost): Likewise.
17631 (ppc620_cost): Likewise.
17632 (ppc630_cost): Likewise.
17633 (ppccell_cost): Likewise.
17634 (ppc750_cost): Likewise.
17635 (ppc7450_cost): Likewise.
17636 (ppc8540_cost): Likewise.
17637 (ppce300c2c3_cost): Likewise.
17638 (ppce500mc_cost): Likewise.
17639 (ppce500mc64_cost): Likewise.
17640 (ppce5500_cost): Likewise.
17641 (ppce6500_cost): Likewise.
17642 (titan_cost): Likewise.
17643 (power4_cost): Likewise.
17644 (power6_cost): Likewise.
17645 (power7_cost): Likewise.
17646 (power8_cost): Likewise.
17647 (ppca2_cost): Likewise.
17648 (rs6000_rtx_costs): Make FLOAT_EXTEND use SFDF_convert field.
17649
17650 * config/rs6000/rs6000.md (extendsfdf2_fpr): Generate XSCPSGNDP
17651 instead of XXLOR to copy SFmode to clear out dirty bits created
17652 when SFmode denormals are generated.
17653 (mov<mode>_hardfloat, FMOVE32 case): Likewise.
17654 (truncdfsf2_fpr): Add support for ISA 2.07 XSRSP instruction.
17655
17656 2015-04-06 Evandro Menezes <e.menezes@samsung.com>
17657
17658 * doc/invoke.texi (AARCH64/mtune): Add exynos-m1 as an option.
17659 * config/aarch64/aarch64-cores.def (exynos-m1): New core.
17660 * config/aarch64/aarch64-tune.md: Regenerate.
17661
17662 2015-04-06 Evandro Menezes <e.menezes@samsung.com>
17663
17664 * doc/invoke.texi (ARM/mtune): Add "exynos-m1" as an option.
17665 * config/arm/arm.c (arm_issue_rate): Specify "3" for "exynosm1".
17666 * config/arm/arm-cores.def (exynos-m1): New core.
17667 * config/arm/arm-tune.md: Regenerate.
17668 * config/arm/arm-tables.opt: Add entry for "exynos-m1".
17669 * config/arm/bpabi.h: Likewise.
17670
17671 2015-04-06 Ilya Enkovich <ilya.enkovich@intel.com>
17672
17673 * ipa-cp (set_single_call_flag): Remove too
17674 restrictive assert.
17675
17676 2015-04-06 Ilya Verbin <ilya.verbin@intel.com>
17677
17678 * config/i386/intelmic-mkoffload.c (generate_host_descr_file): Call
17679 GOMP_offload_unregister from the destructor.
17680
17681 2015-04-06 Ilya Enkovich <ilya.enkovich@intel.com>
17682
17683 * ipa-chkp.c (chkp_maybe_create_clone): Reset cdtor
17684 flags for instrumentation thunk.
17685 (chkp_produce_thunks): Likewise.
17686
17687 2015-04-05 Martin Liska <mliska@suse.cz>
17688
17689 PR ipa/65665
17690 * ipa-icf.c (sem_function::equals_wpa): Verify that IPA CP
17691 has computed data structure.
17692 (sem_item_optimizer::update_hash_by_addr_refs): Likewise.
17693
17694 2015-04-04 Jan Hubicka <hubicka@ucw.cz>
17695
17696 * invoke.texi (inline-unit-growth): Increase growth to 20%
17697 * params.def (PARAM_INLINE_UNIT_GROWTH): Likewise.
17698
17699 2015-04-04 Vladimir Makarov <vmakarov@redhat.com>
17700
17701 PR target/65647
17702 * lra-int.h (LRA_MAX_REMATERIALIZATION_PASSES): New. Add its
17703 value checking.
17704 (lra_rematerialization_iter): New.
17705 * lra.c (lra): Initialize lra_rematerialization_iter.
17706 Stop updating lra_constraint_new_regno_start after switching of
17707 inheritance and rematerialization.
17708 * lra-remat.c (lra_rematerialization_iter): New.
17709 (lra_remat): Add printing pass iteration. Do rematerialization
17710 only first LRA_MAX_REMATERIALIZATION_PASSES iterations.
17711
17712 2015-04-04 Richard Biener <rguenther@suse.de>
17713
17714 PR tree-optimization/64909
17715 PR tree-optimization/65660
17716 * tree-vectorizer.h (vect_get_known_peeling_cost): Adjust
17717 to take a cost vector for scalar iteration cost.
17718 (vect_get_single_scalar_iteration_cost): Likewise.
17719 * tree-vect-loop.c (vect_get_single_scalar_iteration_cost):
17720 Compute the scalar iteration cost into a cost vector.
17721 (vect_get_known_peeling_cost): Use the scalar cost vector to
17722 account for the cost of the peeled iterations.
17723 (vect_estimate_min_profitable_iters): Likewise.
17724 * tree-vect-data-refs.c (vect_peeling_hash_get_lowest_cost):
17725 Likewise.
17726
17727 2015-04-04 Alan Modra <amodra@gmail.com>
17728
17729 PR target/65576
17730 PR target/65240
17731 * config/rs6000/predicates.md (zero_reg_mem_operand): Exclude
17732 0.0 constant unless TARGET_VSX.
17733 * config/rs6000/rs6000.md (extenddftf2_internal): Remove last
17734 alternative.
17735
17736 2015-04-03 Jan Hubicka <hubicka@ucw.cz>
17737
17738 PR ipa/65654
17739 * ipa-inline-transform.c (inline_call): Skip sanity check to work
17740 around the ICE
17741
17742 2015-04-03 Jan Hubicka <hubicka@ucw.cz>
17743
17744 PR ipa/65655
17745 * ipa-inline-analysis.c (edge_set_predicate): Do not redirect
17746 speculative indirect edges to avoid ordering issue.
17747
17748 2015-04-03 Jan Hubicka <hubicka@ucw.cz>
17749
17750 PR ipa/65076
17751 * ipa-inline.c (edge_badness): Add combined size to the denominator.
17752
17753 2015-04-03 Jakub Jelinek <jakub@redhat.com>
17754
17755 * omp-low.c (scan_omp_parallel, scan_omp_task, scan_omp_target): Set
17756 TYPE_ARTIFICIAL on the .omp_data* types.
17757
17758 2015-04-02 Ilya Enkovich <ilya.enkovich@intel.com>
17759
17760 * cgraphunit.c (cgraph_node::expand_thunk): Don't expand
17761 instrumentation thunks.
17762
17763 2015-04-02 Ilya Enkovich <ilya.enkovich@intel.com>
17764
17765 * config/i386/i386.c (ix86_expand_call): Avoid nested
17766 PARALLEL in returned call value.
17767
17768 2015-04-02 Ilya Enkovich <ilya.enkovich@intel.com>
17769
17770 * lto-cgraph.c (input_cgraph_1): Always link instrumented
17771 assembler name with original one.
17772
17773 2015-04-02 Uros Bizjak <ubizjak@gmail.com>
17774
17775 * config/i386/i386.c (ix86_register_priority): Use AX_REG.
17776
17777 2015-04-02 Uros Bizjak <ubizjak@gmail.com>
17778
17779 Revert parts of r216820.
17780 * config/i386/i386.md (movqi_internal): Correct type calculation
17781 for alternatives 3 and 5.
17782
17783 2015-04-02 Jakub Jelinek <jakub@redhat.com>
17784
17785 PR preprocessor/61977
17786 * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Don't
17787 predefine __vector/__bool/__pixel macros nor context sensitive
17788 macros for CLK_ASM.
17789 * config/spu/spu-c.c (spu_cpu_cpp_builtins): Similarly.
17790
17791 2015-04-02 John David Anglin <danglin@gcc.gnu.org>
17792
17793 * config/pa/pa.c (pa_output_move_double): Directly handle register
17794 indexed memory operand. Simplify handling of scaled register indexed
17795 memory operands.
17796
17797 2015-04-02 Ilya Enkovich <ilya.enkovich@intel.com>
17798
17799 PR driver/65444
17800 * config/i386/linux-common.h (MPX_SPEC): New.
17801 (CHKP_SPEC): Add MPX_SPEC.
17802 * doc/invoke.texi (-fcheck-pointer-boudns): Document
17803 possible issues with '-z bndplt' support in linker.
17804
17805 2015-04-02 Uros Bizjak <ubizjak@gmail.com>
17806
17807 * config/i386/sync.md (UNSPEC_FILD_ATOMIC, UNSPEC_FIST_ATOMIC): New.
17808 (loaddi_via_fpu): Use UNSPEC_FILD_ATOMIC.
17809 (storedi_via_fpu): Use UNSPEC_FIST_ATOMIC.
17810 * reg-stack.c (get_true_reg): Change UNSPEC_LDA to UNSPEC_FILD_ATOMIC.
17811 (subst_stack_regs_pat): Change UNSPEC_STA to UNSPEC_FIST_ATOMIC.
17812
17813 2015-04-01 Uros Bizjak <ubizjak@gmail.com>
17814
17815 * config/i386/sync.md (UNSPEC_MOVA): Remove.
17816 (atomic_load<mode>): Change operand 0 predicate to
17817 nonimmediate_operand and fix up the destination when needed.
17818 Use UNSPEC_LDA.
17819 (atomic_loaddi_fpu): Use UNSPEC_LDA.
17820 (atomic_store<mode>): Change operand 1 predicate to
17821 nonimmendate_operand and move the source to register when needed.
17822 Use UNSPEC_STA.
17823 (atomic_store<mode>_1): Use UNSPEC_STA.
17824 (atomic_storedi_fpu): Change operand 1 to nonimmediate_operand.
17825 Fix moves from memory operand. Use UNSPEC_STA.
17826
17827 2015-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
17828
17829 * expmed.c (strict_volatile_bitfield_p): Check that the access will
17830 not cross a MODESIZE boundary.
17831 (store_bit_field, extract_bit_field): Added assertions in the
17832 strict volatile bitfields code path.
17833
17834 2015-04-01 Max Ostapenko <m.ostapenko@partner.samsung.com>
17835
17836 PR target/65624
17837 * config/aarch64/aarch64-builtins.c (aarch64_simd_expand_builtin):
17838 Increase args array size by one to avoid buffer overflow.
17839
17840 2015-03-31 Jan Hubicka <hubicka@ucw.cz>
17841
17842 * lto-cgraph.c (lto_output_node, input_overwrite_node): Stream
17843 split_part.
17844 * ipa-inline.c (edge_badness): Add wrapper penalty.
17845 (sum_callers): Move up.
17846 (inline_small_functions): Set single_caller.
17847 * ipa-inline.h (inline_summary): Add single_caller.
17848 * ipa-split.c (split_function): Set split_part.
17849 (cgraph_node::create_clone): Do not shadow decl; copy split_part.
17850 * cgraph.h (cgraph_node): Add split_part.
17851
17852 2015-03-31 Uros Bizjak <ubizjak@gmail.com>
17853
17854 PR target/58945
17855 * config/i386/sync.md (atomic_compare_and_swap<dwi>_doubleword):
17856 Do not split operands 0 and operands 2 to halfmode.
17857 (atomic_compare_and_swap<mode>): Update for
17858 atomic_compare_and_swap<dwi>_doubleword changes.
17859
17860 2015-03-31 Jan Hubicka <hubicka@ucw.cz>
17861
17862 * tree.c (need_assembler_name_p): Artificial types have no ODR names.
17863 * ipa-devirt.c (warn_odr): Do not try to apply ODR cache when
17864 no caching is done.
17865
17866 2015-03-31 Martin Liska <mliska@suse.cz>
17867
17868 PR ipa/65557
17869 * ipa-icf.c (sem_function::equals_wpa): Check if IPA CP
17870 has already filled up function summary.
17871 (sem_item_optimizer::update_hash_by_addr_refs): Likewise.
17872
17873 2015-03-31 Richard Biener <rguenther@suse.de>
17874
17875 * tree-sra.c (create_access_replacement): Drop under-/over-alignment
17876 of types.
17877
17878 2015-03-31 Dominik Vogt <vogt@linux.vnet.ibm.com>
17879
17880 * config/s390/s390.c (s390_function_num_hotpatch_hw): Allow hotpatching
17881 nested functions.
17882 (s390_reorg): Adapt to new signature of s390_function_num_hotpatch_hw.
17883 (s390_asm_output_function_label): Adapt to new signature of
17884 s390_function_num_hotpatch_hw
17885 Optimise the code generating assembler output.
17886 Add comments to assembler file.
17887
17888 2015-03-31 Richard Biener <rguenther@suse.de>
17889
17890 PR middle-end/65626
17891 * tree-cfgcleanup.c (fixup_noreturn_call): Only split the block
17892 of the noreturn call so it is last and cleanup_control_flow_bb
17893 can do the CFG part.
17894
17895 2015-03-31 Ilya Enkovich <ilya.enkovich@intel.com>
17896
17897 PR target/65531
17898 * ipa-chkp.c (chkp_maybe_create_clone): Don't set
17899 same_comdat_group for external symbols.
17900 * symtab.c (symtab_node::verify_symtab_nodes): Avoid
17901 infinite same_comdat_group traversal loop.
17902
17903 2015-03-31 Jakub Jelinek <jakub@redhat.com>
17904
17905 PR plugins/61176
17906 * Makefile.in (install-plugin): Add all gcc/*.{h,def} files
17907 automatically to $headers.
17908
17909 2015-03-30 Jakub Jelinek <jakub@redhat.com>
17910
17911 PR ipa/65610
17912 * ipa-utils.h (inlined_polymorphic_ctor_dtor_block_p): Declare.
17913 * ipa-polymorphic-call.c (inlined_polymorphic_ctor_dtor_block_p): New
17914 function.
17915 (decl_maybe_in_construction_p, noncall_stmt_may_be_vtbl_ptr_store):
17916 Use it.
17917 * ipa-prop.c (param_type_may_change_p): Likewise.
17918 * tree-ssa-live.c: Include ipa-utils.h and its dependencies.
17919 (remove_unused_scope_block_p): Add in_ctor_dtor_block
17920 argument. Before inlining, preserve
17921 inlined_polymorphic_ctor_dtor_block_p blocks and the outermost block
17922 with FUNCTION_DECL BLOCK_ABSTRACT_ORIGIN inside of them. Adjust
17923 recursive calls.
17924 (remove_unused_locals): Adjust remove_unused_scope_block_p caller.
17925
17926 2015-03-27 Jan Hubicka <hubicka@ucw.cz>
17927
17928 PR ipa/65076
17929 * ipa-inline.c (edge_badness): Base denominator on callee's
17930 grwoth squared.
17931
17932 2015-03-27 Martin Jambor <mjambor@suse.cz>
17933
17934 PR ipa/65478
17935 * params.def (PARAM_IPA_CP_RECURSION_PENALTY) : New.
17936 (PARAM_IPA_CP_SINGLE_CALL_PENALTY): Likewise.
17937 * ipa-prop.h (ipa_node_params): New flags node_within_scc and
17938 node_calling_single_call.
17939 * ipa-cp.c (count_callers): New function.
17940 (set_single_call_flag): Likewise.
17941 (initialize_node_lattices): Count callers and set single_flag_call if
17942 necessary.
17943 (incorporate_penalties): New function.
17944 (good_cloning_opportunity_p): Use it, dump new flags.
17945 (propagate_constants_topo): Set node_within_scc flag if appropriate.
17946 * doc/invoke.texi (ipa-cp-recursion-penalty,
17947 ipa-cp-single-call-pentalty): Document.
17948
17949 2015-03-27 Jan Hubicka <hubicka@ucw.cz>
17950
17951 PR ipa/65588
17952 * symtab.c (symtab_node::get_partitioning_class): Register vars
17953 are duplicated.
17954 * varpool.c (symbol_table::output_variables) Do not assemble unefined
17955 decls for non-symbols.
17956
17957 2015-03-27 H.J. Lu <hongjiu.lu@intel.com>
17958
17959 PR target/65248
17960 * output.h (default_binds_local_p_2): New.
17961 * varasm.c (default_binds_local_p_2): Renamed to ...
17962 (default_binds_local_p_3): This. Don't return true on protected
17963 data symbol if protected data may be external.
17964 (default_binds_local_p): Use default_binds_local_p_3.
17965 (default_binds_local_p_1): Likewise.
17966 (default_binds_local_p_2): New.
17967 * config/i386/i386.c (TARGET_BINDS_LOCAL_P): Set to
17968 default_binds_local_p_2 if TARGET_MACHO is undefined.
17969
17970 2015-03-27 Jakub Jelinek <jakub@redhat.com>
17971
17972 PR target/65593
17973 * config/i386/i386.c (legitimize_pic_address): If base
17974 is SYMBOL_REF or LABEL_REF using %rip addressing, force
17975 it to reg to avoid PLUS of SYMBOL_REF/LABEL_REF and register.
17976
17977 2015-03-27 Jan Hubicka <hubicka@ucw.cz>
17978
17979 PR target/65531
17980 * symtab.c (symtab_node::verify_symtab_nodes): Fix verification of
17981 comdat groups.
17982
17983 2015-03-27 Jan Hubicka <hubicka@ucw.cz>
17984
17985 PR ipa/65600
17986 * cgraph.c (cgraph_update_edges_for_call_stmt_node): Fix the case
17987 of optimized out indirect call.
17988 (redirect_to_unreachable): Always build symbol table node for
17989 BUILT_IN_UNREACHABLE
17990
17991 2015-03-27 Vladimir Makarov <vmakarov@redhat.com>
17992
17993 PR target/65407
17994 * ira-costs.c (record_reg_classes): Process all constraint string
17995 containing 0-9.
17996
17997 2015-03-27 Bernd Schmidt <bernds@codesourcery.com>
17998
17999 * config/c6x/c6x.md (movmisalign<mode>): Use MEM_P, not
18000 memory_operand.
18001
18002 PR target/65052
18003 * config/c6x/constraints.md (S3): New constraint.
18004 * config/c6x/c6x.md (real_jump): Use it.
18005
18006 2015-03-26 Jan Hubicka <hubicka@ucw.cz>
18007
18008 PR middle-end/65595
18009 * cgraph.c (cgraph_update_edges_for_call_stmt_node): Only
18010 do redirection if the call is not optimized out.
18011
18012 2015-03-27 Ilya Enkovich <ilya.enkovich@intel.com>
18013
18014 PR target/65495
18015 * c-family/c.opt (fcheck-pointer-bounds): List supported languages.
18016 (fchkp-check-incomplete-type): Add LTO.
18017 (fchkp-zero-input-bounds-for-main): Likewise.
18018 (fchkp-first-field-has-own-bounds): Likewise.
18019 (fchkp-narrow-bounds): Likewise.
18020 (fchkp-narrow-to-innermost-array): Likewise.
18021 (fchkp-use-static-bounds): Likewise.
18022 (fchkp-use-static-const-bounds): Likewise.
18023 (fchkp-treat-zero-dynamic-size-as-infinite): Likewise.
18024
18025 2015-03-27 Marek Polacek <polacek@redhat.com>
18026
18027 * gimple-iterator.h (gsi_prev_nondebug): Fix typo.
18028
18029 2015-03-27 Marek Polacek <polacek@redhat.com>
18030
18031 PR sanitizer/65583
18032 * ubsan.c (ubsan_create_edge): New function.
18033 (instrument_bool_enum_load): Call it.
18034 (instrument_nonnull_arg): Likewise.
18035 (instrument_nonnull_return): Likewise.
18036 (instrument_object_size): Likewise.
18037
18038 2015-03-26 Jan Hubicka <hubicka@ucw.cz>
18039
18040 * lto-streamer.h (class lto_location_cache): Turn loc_cache into
18041 auto_vec.
18042
18043 2015-03-26 Jan Hubicka <hubicka@ucw.cz>
18044
18045 PR lto/65536
18046 * lto-streamer.h (class lto_location_cache): New.
18047 (struct data_in): Add location_cache.
18048 (lto_input_location): Update prototype.
18049 (stream_input_location_now): New.
18050 * streamer-hooks.h (struct streamer_hooks): Make input_location to take
18051 pointer to location.
18052 (stream_input_location): Update.
18053 * ipa-devirt.c: Include streamer-hooks.h and lto-streamer.h
18054 (warn_odr): Apply location cache before warning.
18055 (lto_input_location): Update prototype.
18056 * gimple-streamer-in.c (input_phi, input_gimple_stmt):
18057 Use stream_input_location_now.
18058 * lto-streamer-in.c (lto_location_cache::current_cache): New static
18059 variable.
18060 (lto_location_cache::cmp_loc): New function.
18061 (lto_location_cache::apply_location_cache): New function.
18062 (lto_location_cache::accept_location_cache): New function.
18063 (lto_location_cache::revert_location_cache): New function.
18064 (lto_location_cache::input_location): New function.
18065 (lto_input_location): Do location caching.
18066 (stream_input_location_now): New function.
18067 (input_eh_region, input_struct_function_base): Use
18068 stream_input_location_now.
18069 (lto_data_in_create): use new.
18070 (lto_data_in_delete): Use delete.
18071 * tree-streamer-in.c (unpack_ts_block_value_fields,
18072 unpack_ts_omp_clause_value_fields, streamer_read_tree_bitfields,
18073 lto_input_ts_exp_tree_pointers): Update for cached location api.
18074
18075 2015-03-26 Jan Hubicka <hubicka@ucw.cz>
18076
18077 PR ipa/65076
18078 * passes.def: Add pass_nothrow.
18079 * ipa-pure-const.c: (pass_data_nothrow): New.
18080 (pass_nothrow): New.
18081 (pass_nothrow::execute): New.
18082 (make_pass_nothrow): New.
18083 * tree-pass.h (make_pass_nothrow): Declare.
18084
18085 2015-03-26 Jan Hubicka <hubicka@ucw.cz>
18086
18087 * ipa-inline-analysis.c (redirect_to_unreachable): Be prepared for
18088 edge to change by speculation resolution or redirection.
18089 (edge_set_predicate): Likewise.
18090 (inline_summary_t::duplicate): Likewise.
18091 (remap_edge_summaries): Likewise.
18092
18093 2015-03-26 Jan Hubicka <hubicka@ucw.cz>
18094
18095 * ipa-inline.c (check_maybe_up, check_maybe_down, check_match):
18096 New macros.
18097 (can_inline_edge_p): Relax option matching for always inline functions.
18098
18099 2015-03-26 Uros Bizjak <ubizjak@gmail.com>
18100
18101 PR target/65561
18102 * config/i386/sse.md (avx512dq_vextract<shuffletype>64x2_1_maskm):
18103 Check operand 4 and operand 0 for equality.
18104 (avx512f_vextract<shuffletype>32x4_1_maskm):
18105 Check operand 6 and operand 0 for equality.
18106 (vec_extract_lo_<mode>_maskm): Check operand 2 and operand 0
18107 for equality.
18108 (vec_extract_hi_<mode>_maskm): Ditto.
18109
18110 2015-03-26 Jan Hubicka <hubicka@ucw.cz>
18111
18112 * cgraph.c (cgraph_update_edges_for_call_stmt_node): Do not bring
18113 dead calls back to live.
18114 (cgraph_edge::verify_count_and_frequency): Move cgraph/cfg frequency
18115 cross check to ...
18116 (cgraph_node::verify_node): ... here; verify only callee edges,
18117 not caller.
18118 * cif-code.def (CILK_SPAWN): New code.
18119
18120 2015-03-26 Jan Hubicka <hubicka@ucw.cz>
18121
18122 * ipa-inline-analysis.c (redirect_to_unreachable): New function.
18123 (edge_set_predicate): Use it to mark unreachable edges.
18124 (inline_summary_t::duplicate): Remove unnecesary code.
18125 (remap_edge_summaries): Likewise.
18126 (dump_inline_summary): Report contains_cilk_spawn.
18127 (compute_inline_parameters): Compute contains_cilk_spawn.
18128 (inline_read_section, inline_write_summary): Stream
18129 contains_cilk_spawn.
18130 * ipa-inline.c (can_inline_edge_p): Do not touch
18131 DECL_STRUCT_FUNCTION that may not be available;
18132 use CIF_CILK_SPAWN for cilk; fix optimization attribute checks;
18133 remove check for callee_fun->can_throw_non_call_exceptions and
18134 replace it by optimization attribute check; check for flag_exceptions.
18135 * ipa-inline-transform.c (inline_call): Maintain
18136 DECL_FUNCTION_PERSONALITY
18137 * ipa-inline.h (inline_summary): Add contains_cilk_spawn.
18138
18139 2015-03-26 Jakub Jelinek <jakub@redhat.com>
18140
18141 PR tree-optimization/65551
18142 * tree-ssa-sccvn.c (fully_constant_vn_reference_p): Use
18143 TYPE_PRECISION only for INTEGRAL_TYPE_P types.
18144
18145 2015-03-26 Richard Biener <rguenther@suse.de>
18146
18147 PR middle-end/65555
18148 * tree-cfg.c (verify_gimple_call): Do not require a call to
18149 have no LHS if it wasn't recognized as control altering yet.
18150
18151 2015-03-26 Jakub Jelinek <jakub@redhat.com>
18152
18153 PR tree-optimization/64715
18154 * passes.def: Add another instance of pass_object_sizes before ccp1.
18155 * tree-object-size.c (pass_object_sizes::execute): In
18156 first_pass_instance, only handle __bos (, 1) and __bos (, 3)
18157 calls, and keep the call in the IL, as {MIN,MAX}_EXPR of the
18158 __bos result and the computed constant. Remove redundant
18159 checks, obsoleted by gimple_call_builtin_p test.
18160
18161 * var-tracking.c (variable_tracking_main_1): Don't track
18162 variables for targetm.no_register_allocation targets.
18163
18164 2015-03-26 Oleg Endo <olegendo@gcc.gnu.org>
18165
18166 * config/sh/t-linux (DEFAULT_ENDIAN, MULTILIB_EXCEPTIONS): Remove.
18167 * config/sh/t-sh (MULTILIB_EXCEPTIONS): Handle default endian.
18168
18169 2015-03-25 Michael Meissner <meissner@linux.vnet.ibm.com>
18170
18171 PR target/65569
18172 * config/rs6000/rs6000.md (extenddftf2_fprs): On VSX systems use
18173 XXLXOR to create 0.0. On pre-VSX systems make sure the constant
18174 0.0 is correctly setup.
18175 (extenddftf2_internal): Likewise.
18176
18177 2015-03-25 Sebastian Pop <s.pop@samsung.com>
18178
18179 PR tree-optimization/65177
18180 * tree-ssa-threadupdate.c (verify_seme): Renamed verify_jump_thread.
18181 (bb_in_bbs): New.
18182 (duplicate_seme_region): Renamed duplicate_thread_path. Redirect all
18183 edges not adjacent on the path to the original code.
18184
18185 2015-03-25 Uros Bizjak <ubizjak@gmail.com>
18186
18187 PR bootstrap/65537
18188 * doc/install.texi (Building a native compiler): Document new
18189 bootstrap-lto-noplugin configuration. Mention that bootstrap-lto
18190 configuration assumes that the host supports the linker plugin.
18191
18192 2015-03-25 Ilya Enkovich <ilya.enkovich@intel.com>
18193
18194 PR target/65508
18195 * tree-chkp.c (chkp_add_bounds_to_call_stmt): Set static
18196 chain for generated call.
18197
18198 2015-03-25 Richard Biener <rguenther@suse.de>
18199
18200 * passes.c (pass_manager::execute_early_local_passes): Guard
18201 execution of pass_chkp_instrumentation_passes with
18202 flag_check_pointer_bounds.
18203 (pass_chkp_instrumentation_passes::gate): Likewise.
18204
18205 2015-03-25 Martin Liska <mliska@suse.cz>
18206
18207 PR tree-optimization/65538
18208 * symbol-summary.h (function_summary::~function_summary):
18209 Relese memory for allocated summaries.
18210 (function_summary::release): New function.
18211
18212 2015-03-25 Jakub Jelinek <jakub@redhat.com>
18213
18214 PR lto/65515
18215 * lto-streamer-out.c (DFS::worklist): New struct.
18216 (DFS::worklist_vec): New data member.
18217 (DFS::next_dfs_num): Remove.
18218 (DFS::DFS): Rewritten using worklist instead of recursion,
18219 using most of code from DFS::DFS_write_tree.
18220 (DFS::DFS_write_tree_body): Remove SINGLE_P argument, don't
18221 pass it to DFS_write_tree calls.
18222 (DFS::DFS_write_tree): Remove SINGLE_P argument, after
18223 quick initial checks push it into worklist_vec and return.
18224
18225 2015-03-25 Richard Biener <rguenther@suse.de>
18226
18227 PR middle-end/65519
18228 * genmatch.c (expr::gen_transform): Re-write to avoid
18229 using gimple_build.
18230
18231 2015-03-25 Bin Cheng <bin.cheng@arm.com>
18232
18233 * doc/sourcebuild.texi (arm_tune_string_ops_prefer_neon): New.
18234
18235 2015-03-25 Bin Cheng <bin.cheng@arm.com>
18236
18237 * config/arm/arm.opt (print_tune_info): New option.
18238 * config/arm/arm.c (arm_print_tune_info): New function.
18239 (arm_file_start): Call arm_print_tune_info.
18240 * config/arm/arm-protos.h (struct tune_params): Add comment.
18241 * doc/invoke.texi (@item -mprint-tune-info): New item.
18242 (-mtune): mention it in ARM Option Summary.
18243
18244 2015-03-25 DJ Delorie <dj@redhat.com>
18245
18246 * config/rl78/rl78.c (rl78_print_operand_1): Move 'p' test to
18247 correct clause.
18248
18249 2015-03-24 Jan Hubicka <hubicka@ucw.cz>
18250 Martin Liska <mliska@suse.cz>
18251
18252 * ipa-icf-gimple.h (return_with_result): Add missing colon to dump.
18253 * ipa-icf.c (sem_function::get_hash): Hash new declaration properties.
18254 (sem_item::add_type): New function.
18255 (sem_function::hash_stmt): Add TREE_TYPE of gimple_op.
18256 (sem_function::compare_polymorphic_p): Do not consider indirect calls.
18257 (sem_item_optimizer::update_hash_by_addr_refs): Add ODR type to hash.
18258 (sem_function::equals_wpa): Fix typo.
18259 * ipa-icf.h (sem_item::add_type): New function.
18260 (symbol_compare_hashmap_traits): Replace hashing of pointer with symbol
18261 order.
18262
18263 2015-03-24 Jakub Jelinek <jakub@redhat.com>
18264
18265 PR tree-optimization/65533
18266 * tree-vect-slp.c (vect_build_slp_tree): Before re-trying
18267 with swapped operands, call vect_free_slp_tree on
18268 SLP_TREE_CHILDREN of child and truncate the SLP_TREE_CHILDREN
18269 vector.
18270
18271 2015-03-24 Richard Biener <rguenther@suse.de>
18272
18273 PR middle-end/65517
18274 * tree-cfg.c (remove_edge_and_dominated_blocks): Mark loops
18275 for fixup if necessary.
18276
18277 2015-03-23 Sandra Loosemore <sandra@codesourcery.com>
18278
18279 * doc/extend.texi (Function Attributes): Add @cindex entries
18280 for all attributes and regularize their format. Delete text
18281 about long-obsolete 68HC11 and 68HC12 targets. Move misplaced
18282 information about "eightbit_data", "tiny_data", and "model"
18283 variable attributes to the Variable Attributes section. Fix
18284 some obvious typos and copy-editing issues.
18285 (Variable Attributes, Type Attributes): Likewise add/fix
18286 @cindex entries for all attributes.
18287
18288 2015-03-23 Jakub Jelinek <jakub@redhat.com>
18289
18290 PR target/65523
18291 * tree-chkp.c (chkp_build_returned_bound): Ignore
18292 ERF_RETURNS_ARG calls if they have fewer than needed arguments.
18293
18294 2015-03-23 Oleg Endo <olegendo@gcc.gnu.org>
18295
18296 PR target/65505
18297 * config/sh/predicates.md (simple_mem_operand,
18298 displacement_mem_operand): Add test for reg.
18299 (short_displacement_mem_operand): Test for displacement_mem_operand
18300 before invoking sh_disp_addr_displacement.
18301 * config/sh/constraints.md (Sdd, Sra): Simplify.
18302 * config/sh/sync.md (atomic_mem_operand_0, atomic_mem_operand_1):
18303 Remove redundant displacement_mem_operand tests.
18304
18305 2015-03-23 Georg-Johann Lay <avr@gjlay.de>
18306
18307 PR target/65296
18308 * config/avr/driver-avr.c (avr_devicespecs_file): Allow to specify
18309 the same -mmcu=MCU more than once.
18310
18311 2015-03-23 Jakub Jelinek <jakub@redhat.com>
18312
18313 PR bootstrap/65522
18314 * ipa-devirt.c: Remove duplicate demangle.h include.
18315
18316 PR target/65504
18317 * config/i386/i386.c (ix86_copy_addr_to_reg): Set REG_POINTER
18318 on the pseudo.
18319 (expand_set_or_movmem_prologue_epilogue_by_misaligned_moves): Set
18320 REG_POINTER on *destptr after adjusting it for prologue size.
18321
18322 PR ipa/65521
18323 * ipa-icf.c (sem_item::update_hash_by_addr_refs): Hash
18324 ultimate_alias_target ()->order ints instead of
18325 ultimate_alias_target () pointers.
18326
18327 2015-03-23 Richard Biener <rguenther@suse.de>
18328
18329 PR tree-optimization/65518
18330 * tree-vect-stmts.c (vectorizable_load): Reject single-element
18331 interleaving cases we generate absymal code for.
18332
18333 2015-03-23 Richard Biener <rguenther@suse.de>
18334
18335 PR tree-optimization/65494
18336 * tree-vect-slp.c (vect_build_slp_tree): Do not (re-)allocate
18337 matches here.
18338 (vect_analyze_slp_instance): But do that here, always and once.
18339
18340 2015-03-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
18341
18342 * expmed.c (synth_mult): Fix comment about multiplying by T-1 and
18343 adding T or multiplying by T+1 and subracting T.
18344
18345 2015-03-22 Jeff Law <law@redhat.com>
18346
18347 PR rtl-optimization/64317
18348 * Makefile.in (OBJS): Add gcse-common.c
18349 * gcse.c: Include gcse-common.h
18350 (struct modify_pair_s): Move structure definition to gcse-common.h
18351 (compute_transp): Move function to gcse-common.c.
18352 (canon_list_insert): Similarly.
18353 (record_last_mem_set_info): Break out some code and put it into
18354 gcse-common.c. Call into the new common code.
18355 (compute_local_properties): Pass additional arguments to compute_transp.
18356 * postreload-gcse.c: Include gcse-common.h and df.h
18357 (modify_mem_list_set, blocks_with_calls): New variables.
18358 (modify_mem_list, canon_modify_mem_list, transp): Likewise.
18359 (get_bb_avail_insn): Pass in the expression index too.
18360 (alloc_mem): Allocate memory for the new bitmaps and lists.
18361 (free_mem): Free memory for the new bitmaps and lists.
18362 (insert_expr_in_table): Record a bitmap index for each entry we
18363 add to the table.
18364 (record_last_mem_set_info): Call into common code in gcse-common.c.
18365 (get_bb_avail_insn): If no available insn was found in the requested
18366 BB. If BB has a single predecessor, see if the expression is
18367 transparent in BB and available in that single predecessor.
18368 (compute_expr_transp): New wrapper for compute_transp.
18369 (eliminate_partially_redundant_load): Pass expression's bitmap_index
18370 to get_bb_avail_insn. Compute next_pred_bb_end a bit later.
18371 (gcse_after_reload_main): If there are elements in the hash table,
18372 then compute transparency for all the elements in the hash table.
18373 * gcse-common.h: New file.
18374 * gcse-common.c: New file.
18375
18376 2015-03-22 Sandra Loosemore <sandra@codesourcery.com>
18377
18378 * doc/cpp.texi (Search Path): Hyphenate "command-line" when used
18379 as an adjective.
18380 (System Headers): Likewise.
18381 (Ifdef): Likewise.
18382 (Traditional macros): Likewise.
18383 (Invocation): Likewise.
18384 (Option Index): Likewise.
18385 * doc/cppopts.texi (-M): Likewise.
18386 (-finput-charset): Likewise.
18387 (--help): Likewise.
18388 * doc.invoke.texi (AVR Options): Likewise.
18389 (V850 Options): Likewise.
18390
18391 2015-03-22 Jan Hubicka <hubicka@ucw.cz>
18392
18393 PR ipa/65475
18394 * ipa-devirt.c: Include demangle.h
18395 (odr_type_d): Add field rtti_broken.
18396 (odr_subtypes_equivalent_p): Do not require name to match.
18397 (compare_virtual_tables): Fix typo; if type already has ODR violation,
18398 bypass the tests; be ready for function referneces in vtables that are
18399 not DECL_VIRTUAL; make warnings to be OPT_Wodr.
18400 (warn_odr): Give up for nameless types.
18401 (warn_types_mismatch): Report mismatch in mangled names;
18402 report mismatch in anonymous namespaces; look into component types to
18403 give useful error; report when mismatch is dragged in from other ODR
18404 type.
18405 (odr_types_equivalent_p): Match types for being polymorphic; avoid
18406 duplicated diagnostics.
18407 (add_type_duplicate): Reorder checks so more informative ones come
18408 first; fix typo; do not output "the extra base is defined here" when
18409 we did not warn.
18410 (BINFO_N_BASE_BINFOS): Relax sanity check.
18411
18412 2015-03-22 Martin Liska <mliska@suse.cz>
18413 Jakub Jelinek <jakub@redhat.com>
18414
18415 * config/i386/i386.c (def_builtin): Set deferred_isa_values for
18416 masks that can potentially include a builtin.
18417 (ix86_add_new_builtins): Introduce fast filter for isa values
18418 that cannot trigger builtin inclusion.
18419
18420 2015-03-22 Martin Liska <mliska@suse.cz>
18421
18422 * ipa-icf.c (sem_item::update_hash_by_addr_refs): New function.
18423 (sem_item::update_hash_by_local_refs): Likewise.
18424 (sem_variable::get_hash): Empty line is fixed.
18425 (sem_item_optimizer::execute): Include adding of hash references.
18426 (sem_item_optimizer::update_hash_by_addr_refs): New function.
18427 (sem_item_optimizer::build_hash_based_classes): Use local hash.
18428 * ipa-icf.h (sem_item::update_hash_by_addr_refs): New function.
18429 (sem_item::update_hash_by_local_refs): Likewise.
18430
18431 2015-03-20 Jan Hubicka <hubicka@ucw.cz>
18432
18433 PR ipa/65502
18434 * ipa-comdats.c (enqueue_references): Walk through thunks.
18435 (ipa_comdats): Likewise.
18436 (set_comdat_group_1): New function.
18437
18438 2015-03-20 Jan Hubicka <hubicka@ucw.cz>
18439
18440 PR ipa/65475
18441 * ipa-devirt.c (add_type_duplicate): Prevail polymorphic type over
18442 non-polymorphic
18443
18444 2015-03-22 Dave Korn <dave.korn.cygwin@gmail.com>
18445 Gerald Pfeifer <gerald@pfeifer.com>
18446
18447 * doc/contrib.texi (Contributors): Update entry for Danny Smith.
18448
18449 2015-03-21 Chung-Lin Tang <cltang@codesourcery.com>
18450 Sandra Loosemore <sandra@codesourcery.com>
18451
18452 * config/nios2/nios2-protos.h (nios2_adjust_call_address): Adjust
18453 function parameter declaration.
18454 * config/nios2/nios2.md (call,call_value,sibcall,sibcall_value):
18455 Update arguments to nios2_adjust_call_address().
18456 (sibcall_internal): Rename from *sibcall.
18457 (sibcall_value_internal): Rename from *sibcall_value.
18458 * config/nios2/nios2.c (nios2_emit_add_constant): New function.
18459 (nios2_large_got_address): Add target temp reg parameter.
18460 (nios2_got_address): Adjust call to nios2_large_got_address, add
18461 force_reg around it.
18462 (nios2_load_pic_address): Add target temp reg parameter, replace call
18463 to nios2_got_address with corresponding code.
18464 (nios2_legitimize_constant_address): Update call to
18465 nios2_load_pic_address.
18466 (nios2_adjust_call_address): Add temp reg parameter, update PIC case
18467 to use temp reg for PIC loading purposes.
18468 (nios2_asm_output_mi_thunk): Implement TARGET_ASM_OUTPUT_MI_THUNK.
18469 (TARGET_ASM_CAN_OUTPUT_MI_THUNK): Define.
18470 (TARGET_ASM_OUTPUT_MI_THUNK): Likewise.
18471
18472 2015-03-21 Sandra Loosemore <sandra@codesourcery.com>
18473
18474 * doc/invoke.texi (-fno-diagnostics-show-caret): Fix
18475 usage of "the @option{...}".
18476 (-Wopenmp-simd): Likewise.
18477 (-fsanitize-recover): Likewise.
18478 (-fsanitize-undefined-trap-on-error): Likewise.
18479 (-flto): Likewise.
18480 (tracer-dynamic-coverage-feedback): Likewise.
18481 (reorder-block-duplicate-feedback): Likewise.
18482 (loop-unroll-jam-size): Likewise.
18483 (-B): Likewise.
18484 (-I-): Likewise.
18485 (-mabs=legacy): Likewise.
18486 (-mupper-regs-df): Likewise.
18487 (-mupper-regs-sf): Likewise.
18488 (-mpointers-to-nested-functions): Likewise.
18489
18490 2015-03-21 Sandra Loosemore <sandra@codesourcery.com>
18491
18492 * doc/extend.texi (Cilk Plus Builtins): Add markup.
18493
18494 2015-03-21 Sandra Loosemore <sandra@codesourcery.com>
18495
18496 * doc/invoke.texi (-fcheck-pointer-bounds): Copy-edit, add
18497 additional index entries and cross-references.
18498 (-fchkp-check-incomplete-type): Likewise.
18499 (-fchkp-first-field-has-own-bounds): Likewise.
18500 (-fchkp-narrow-to-innermost-array): Likewise.
18501 (-fchkp-use-fast-string-functions): Likewise.
18502 (-fchkp-use-nochk-string-functions): Likewise.
18503 (-fchkp-use-static-const-bounds): Likewise.
18504 (-fchkp-treat-zero-dynamic-size-as-infinite): Likewise.
18505 (-fchkp-instrument-marked-only): Likewise.
18506 (-fchkp-use-wrappers): Likewise.
18507 (-static-libmpx): Likewise.
18508 (-static-libmpxwrappers): Likewise.
18509 * doc/extend.texi (bnd_legacy): Likewise.
18510 (bnd_instrument): Likewise.
18511 (bnd_variable_size): Likewise.
18512 (Pointer Bounds Checker builtins): Likewise.
18513
18514 2015-03-21 Tom de Vries <tom@codesourcery.com>
18515
18516 PR tree-optimization/65458
18517 * cgraph.c (cgraph_node::dump): Handle parallelized_function field.
18518 * cgraph.h (cgraph_node): Add parallelized_function field.
18519 * lto-cgraph.c (lto_output_node): Write parallelized_function field.
18520 (input_overwrite_node): Read parallelized_function field.
18521 * omp-low.c (expand_omp_taskreg, finalize_task_copyfn): Set
18522 parallelized_function on cgraph_node for child_fn.
18523 * tree-parloops.c: Add include of plugin-api.h, ipa-ref.h and cgraph.h.
18524 Remove include of gt-tree-parloops.h.
18525 (parallelized_functions): Remove static variable.
18526 (parallelized_function_p): Rewrite using parallelized_function field of
18527 cgraph_node.
18528 (create_loop_fn): Remove adding to parallelized_functions.
18529 * Makefile.in (GTFILES): Remove tree-parloops.c
18530
18531 2015-03-20 Vladimir Makarov <vmakarov@redhat.com>
18532
18533 PR rtl-optimization/64366
18534 * lra.c (lra_update_insn_regno_info): Consider regs in
18535 CALL_INSN_FUNCTION_USAGE memory.
18536
18537 2015-03-20 Richard Biener <rguenther@suse.de>
18538
18539 PR middle-end/64715
18540 * tree-chrec.c (chrec_fold_poly_cst): Use useless_type_conversion_p
18541 for type comparison and gcc_checking_assert.
18542 (chrec_fold_plus_poly_poly): Likewise.
18543 (chrec_fold_multiply_poly_poly): Likewise.
18544 (chrec_convert_1): Likewise.
18545 * gimplify.c (gimplify_expr): Remove premature folding of
18546 &X + CST to &MEM[&X, CST].
18547
18548 2015-03-20 Jan Hubicka <hubicka@ucw.cz>
18549
18550 * ipa-inline.c (can_inline_edge_p): Short circuit if inline_failed
18551 already is final.
18552 (ipa_inline): Recompute inline_failed codes.
18553 * cif-code.def (FUNCTION_NOT_OPTIMIZED, REDEFINED_EXTERN_INLINE,
18554 USES_COMDAT_LOCAL, ATTRIBUTE_MISMATCH, UNREACHABLE): Declare as
18555 CIF_FINAL_ERROR.
18556
18557 2015-03-20 Uros Bizjak <ubizjak@gmail.com>
18558
18559 PR rtl-optimization/60851
18560 * recog.c (constrain_operands): Accept a pseudo register before reload
18561 for LRA enabled targets.
18562
18563 2015-03-19 Michael Meissner <meissner@linux.vnet.ibm.com>
18564
18565 PR target/65240
18566 * config/rs6000/predicates.md (easy_fp_constant): Remove special
18567 -ffast-math handling that kept non-0 constants live in the RTL
18568 until reload. Remove logic testing the number of instructions it
18569 took to create a constant in a GPR that was never used, due to a
18570 test for soft-float earlier.
18571 (memory_fp_constant): Delete, no longer used.
18572
18573 * config/rs6000/rs6000.md (mov<MODE>_hardfloat): Remove
18574 alternatives for loading non-0 constants into GPRs for hard
18575 floating point that is no longer needed due to changes in
18576 easy_fp_constant. Add support for loading 0.0 into GPRs.
18577 (mov<mode>_hardfloat32): Likewise.
18578 (mov<mode>_hardfloat64): Likewise.
18579 (mov<mode>_64bit_dm): Likewise.
18580 (movtd_64bit_nodm): Likewise.
18581 (pre-reload move FP constant define_split): Delete define_split,
18582 since it is no longer used.
18583 (extenddftf2_internal): Remove GHF constraints that are not valid
18584 for extenddftf2.
18585
18586 2015-03-19 Vladimir Makarov <vmakarov@redhat.com>
18587
18588 PR rtl-optimization/63491
18589 * lra-constraints.c (check_and_process_move): Use src instead of
18590 sreg. Remove some dead code.
18591
18592 2015-03-19 Jan Hubicka <hubicka@ucw.cz>
18593
18594 PR ipa/65380
18595 * ipa-icf.c (sem_function::merge): Do not merge DECL_EXTERNAL symbols.
18596 (sem_variable::merge): Likewise.
18597
18598 2015-03-19 Martin Liska <mliska@suse.cz>
18599
18600 PR ipa/65465
18601 * cgraphunit.c (cgraph_node::create_wrapper): Correctly reset
18602 all fields of cgraph_thunk_info.
18603
18604 2015-03-19 Ilya Enkovich <ilya.enkovich@intel.com>
18605
18606 * ipa-chkp.c (chkp_maybe_create_clone): Don't try to
18607 clone instrumented thunks.
18608
18609 2015-03-19 Richard Biener <rguenther@suse.de>
18610
18611 Revert
18612 2015-03-10 Richard Biener <rguenther@suse.de>
18613
18614 PR middle-end/63155
18615 * tree-ssa-coalesce.h (verify_ssa_coalescing): Declare.
18616 * tree-ssa-coalesce.c: Include timevar.h.
18617 (attempt_coalesce): Handle graph being NULL.
18618 (coalesce_partitions): Call verify_ssa_coalescing if ENABLE_CHECKING.
18619 Split out abnormal coalescing to ...
18620 (perform_abnormal_coalescing): ... this function.
18621 (coalesce_ssa_name): Perform abnormal coalescing without computing
18622 live/conflict.
18623 (verify_ssa_coalescing_worker): New function.
18624 (verify_ssa_coalescing): Likewise.
18625
18626 2015-03-19 Bernd Edlinger <bernd.edlinger@hotmail.de>
18627 Jakub Jelinek <jakub@redhat.com>
18628
18629 PR sanitizer/65400
18630 * tsan.c (instrument_gimple): Clear tail call flag on
18631 calls.
18632
18633 2015-03-19 Jakub Jelinek <jakub@redhat.com>
18634
18635 PR sanitizer/65400
18636 * ipa-split.c (find_return_bb): Allow TSAN_FUNC_EXIT internal
18637 call in the return bb.
18638 (find_split_points): Add RETURN_BB argument, don't call
18639 find_return_bb.
18640 (split_function): Likewise. Add ADD_TSAN_FUNC_EXIT argument,
18641 if true append TSAN_FUNC_EXIT internal call after the call to
18642 the split off function.
18643 (execute_split_functions): Call find_return_bb here.
18644 Don't optimize if TSAN_FUNC_EXIT is found in unexpected places.
18645 Adjust find_split_points and split_function calls.
18646
18647 2015-03-18 DJ Delorie <dj@redhat.com>
18648
18649 * config/rl78/rl78-virt.md (andqi3_virt): Allow far operands.
18650 (iorqi3_virt): Likewise.
18651
18652 2015-03-18 Tom de Vries <tom@codesourcery.com>
18653
18654 * tree-parloops.c (parallelize_loops): Make static.
18655 * tree-parloops.h (parallelize_loops): Remove extern declaration.
18656
18657 2015-03-18 Andrew Stubbs <ams@codesourcery.com>
18658
18659 PR middle-end/64491
18660 Revert:
18661 2014-11-20 Andrew Stubbs <ams@codesourcery.com>
18662
18663 * tree-ssa-loop-niter.c (maybe_lower_iteration_bound): Warn if a loop
18664 condition would be removed due to undefined behaviour.
18665
18666 2015-03-18 Martin Liska <mliska@suse.cz>
18667
18668 PR ipa/65432
18669 * cgraph.c (cgraph_node::get_create): Remove unnecessary
18670 xstrdup_for_dump wrapper.
18671 * ipa-icf.c (sem_item::dump): Use symtab_node::name instead of
18672 sem_item::name.
18673 (sem_function::equals): Wrap symtab_node::name and symtab_node::asm_name
18674 with xstrdup_for_dump.
18675 (sem_variable::equals): Likewise.
18676 (sem_item_optimizer::read_section): Use symtab_node::name instead of
18677 sem_item::name.
18678 (sem_item_optimizer::parse_funcs_and_vars): Likewise.
18679 (sem_item_optimizer::merge_classes): Wrap symtab_node::name and
18680 symtab_node::asm_name with xstrdup_for_dump.
18681 (congruence_class::dump): Use symtab_node::name instead of
18682 sem_item::name.
18683 * ipa-icf.h (symtab_node::name): Remove.
18684 (symtab_node::asm_name): Likewise.
18685
18686 2015-03-18 Jakub Jelinek <jakub@redhat.com>
18687
18688 PR tree-optimization/65450
18689 * tree-vect-data-refs.c (vect_duplicate_ssa_name_ptr_info): New
18690 function.
18691 (vect_create_addr_base_for_vector_ref, vect_create_data_ref_ptr): Use
18692 it instead of duplicate_ssa_name_ptr_info.
18693
18694 PR target/65222
18695 * doc/invoke.texi: Add knl as x86 -march=/-mtune= CPU type.
18696
18697 2015-03-18 Richard Biener <rguenther@suse.de>
18698
18699 * tree-data-ref.h (struct access_matrix): Remove.
18700 (AM_LOOP_NEST, AM_NB_INDUCTION_VARS, AM_PARAMETERS, AM_MATRIX,
18701 AM_NB_PARAMETERS, AM_CONST_COLUMN_INDEX, AM_NB_COLUMNS,
18702 AM_GET_SUBSCRIPT_ACCESS_VECTOR, AM_GET_ACCESS_MATRIX_ELEMENT): Likewise.
18703 (am_vector_index_for_loop): Likewise.
18704 (struct data_reference): Remove access_matrix member.
18705 (DR_ACCESS_MATRIX): Remove.
18706 (lambda_vector_new): Add comment.
18707 (lambda_matrix_new): Use XOBNEWVEC.
18708
18709 2015-03-18 Richard Biener <rguenther@suse.de>
18710
18711 * tree-ssa-loop-ch.c (pass_data_ch): Remove TODO_cleanup_cfg.
18712 (pass_ch::execute): Cleanup the CFG only if we did sth.
18713 * tree-vect-generic.c (pass_data_lower_vector): Remove TODO_cleanup_cfg.
18714
18715 2015-03-18 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
18716
18717 * expmed.c (synth_mult): Use std::swap instead of manually
18718 swapping algorithms.
18719
18720 2015-03-18 Jakub Jelinek <jakub@redhat.com>
18721
18722 PR target/65078
18723 * config/i386/sse.md (movsi/movdi -> vec_extract_*_0 splitter): New.
18724
18725 2015-03-16 Georg-Johann Lay <avr@gjlay.de>
18726
18727 PR target/65296
18728 * config/avr/avr.opt (-nodevicelib): New option.
18729 * doc/invoke.texi (AVR Options): Document it.
18730 * config/avr/avrlibc.h (LIB_SPEC, LIBGCC_SPEC) [avr1]: Don't link
18731 libgcc.a, libc.a, libm.a.
18732 * config/avr/specs.h: Same.
18733 * config/avr/gen-avr-mmcu-specs.c (print_mcu): Don't print specs
18734 which don't (directly) depend on the device. Print more help.
18735 (*avrlibc_devicelib) [-nodevicelib]: Don't link libdev.a.
18736 (*cpp): Don't define __AVR_DEV_LIB_NAME__.
18737 * config/avr/driver-avr.c: Remove -nodevicelib from option list in
18738 case of an error.
18739 (avr_devicespecs_file): Use suffix "%s" instead of absolute path
18740 for specs file name.
18741 * config/avr/avr-arch.h (avr_mcu_t) [.library_name]: Remove.
18742 * config/avr/avr-mcus.def: Adjust initializers and comments.
18743
18744 2015-03-16 Jan Hubicka <hubicka@ucw.cz>
18745
18746 * tree-sra.c (ipa_sra_preliminary_function_checks): Use
18747 DECL_ONE_ONLY to check if decl is one only.
18748 * ipa-split.c (consider_split): Limit splitt of one only functions.
18749
18750 2015-03-16 Jakub Jelinek <jakub@redhat.com>
18751
18752 PR tree-optimization/65427
18753 * tree-vect-generic.c (do_cond, expand_vector_scalar_condition): New
18754 functions.
18755 (expand_vector_operations_1): Handle BLKmode vector COND_EXPR.
18756
18757 2015-03-16 Marek Polacek <polacek@redhat.com>
18758
18759 * cgraph.h (add_new_static_var): Remove declaration.
18760 * varpool.c (add_new_static_var): Remove function.
18761
18762 2015-03-16 Jakub Jelinek <jakub@redhat.com>
18763
18764 * omp-low.c (expand_omp_target): Use auto_vec<tree, 11>
18765 instead of vec<tree> * with vec_alloc and release for args.
18766 Adjust all users.
18767
18768 PR middle-end/65431
18769 * omp-low.c (delete_omp_context): Only splay_tree_delete
18770 reduction_map in GIMPLE_OMP_TARGET is_gimple_omp_offloaded
18771 is_gimple_omp_oacc contexts. Don't look at ctx->outer.
18772
18773 2015-03-16 Max Ostapenko <m.ostapenko@partner.samsung.com>
18774
18775 PR sanitizer/64820
18776 * cfgexpand.c (align_base): New function.
18777 (alloc_stack_frame_space): Call it.
18778 (expand_stack_vars): Align prev_frame to be sure
18779 data->asan_vec elements aligned properly.
18780
18781 2015-03-16 Eric Botcazou <ebotcazou@adacore.com>
18782
18783 PR middle-end/65409
18784 * expr.c (store_field): Do not do a direct block copy if the source is
18785 a PARALLEL with BLKmode.
18786
18787 2015-03-16 Tom de Vries <tom@codesourcery.com>
18788
18789 PR middle-end/65414
18790 Revert:
18791 2015-03-12 Tom de Vries <tom@codesourcery.com>
18792
18793 PR rtl-optimization/64895
18794 * lra-lives.c (check_pseudos_live_through_calls): Use
18795 actual_call_used_reg_set instead of call_used_reg_set, if available.
18796
18797 2015-03-16 Alan Modra <amodra@gmail.com>
18798
18799 PR target/63150
18800 * config/rs6000/rs6000.md (bswapdi2): Remove one scratch reg.
18801 Modify Z->r bswapdi splitter to use dest in place of scratch.
18802 In r->Z and Z->r bswapdi splitter rename word_high, word_low
18803 to word1, word2 and rearrange logic to suit.
18804 (bswapdi2_64bit): Remove early clobber on Z->r alternative.
18805 (bswapdi2_ldbrx): Likewise. Remove '??' on r->r.
18806 (bswapdi2_32bit): Remove early clobber on Z->r alternative.
18807 Add one '?' on r->r. Modify Z->r splitter to avoid need for
18808 early clobber.
18809
18810 2015-03-14 Jakub Jelinek <jakub@redhat.com>
18811
18812 PR tree-optimization/65369
18813 * tree-vect-stmts.c (vectorizable_load) <case dr_explicit_realign>:
18814 Set bump to vs * TYPE_SIZE_UNIT (elem_type) - 1 instead of
18815 (vs - 1) * TYPE_SIZE_UNIT (elem_type).
18816
18817 PR tree-optimization/65418
18818 * tree-ssa-reassoc.c (extract_bit_test_mask): If there
18819 are casts in the first PLUS_EXPR operand, ensure tbias and
18820 *totallowp are in the inner type.
18821
18822 PR rtl-optimization/65401
18823 * combine.c (rtx_equal_for_field_assignment_p): Add widen_x
18824 argument. If true, adjust_address_nv of x with big-endian
18825 correction for the mode widening to GET_MODE (y).
18826 (make_field_assignment): Don't do MEM mode widening here.
18827 Use MEM_P instead of GET_CODE == MEM.
18828
18829 2015-03-13 Ilya Verbin <ilya.verbin@intel.com>
18830
18831 * varpool.c (varpool_node::get_create): Don't set 'offloadable' flag for
18832 the external decls.
18833
18834 2015-03-13 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
18835
18836 PR target/64600
18837 * config/arm/arm.c (arm_gen_constant, AND case): Use
18838 ARM_SIGN_EXTEND when constructing AND mask.
18839
18840 2015-03-13 Thomas Preud'homme <thomas.preudhomme@arm.com>
18841
18842 * graph.c (print_graph_cfg): Make function names visible and append
18843 parenthesis to it. Also make groups of basic blocks belonging to the
18844 same function visible.
18845
18846 2015-03-12 Richard Biener <rguenther@suse.de>
18847
18848 PR middle-end/44563
18849 * tree-inline.c (gimple_expand_calls_inline): Walk BB backwards
18850 to avoid quadratic behavior with inline expansion splitting blocks.
18851 * tree-cfgcleanup.c (cleanup_tree_cfg_bb): Do not merge block
18852 with the successor if the predecessor will be merged with it.
18853 * tree-cfg.c (gimple_can_merge_blocks_p): We can't merge the
18854 entry block with its successor.
18855
18856 2015-03-13 Richard Biener <rguenther@suse.de>
18857
18858 PR middle-end/44563
18859 * tree-cfgcleanup.c (split_bb_on_noreturn_calls): Remove.
18860 (cleanup_tree_cfg_1): Do not call it.
18861 (execute_cleanup_cfg_post_optimizing): Fixup the CFG here.
18862 (fixup_noreturn_call): Mark the stmt as control altering.
18863 * tree-cfg.c (execute_fixup_cfg): Do not dump the function
18864 here.
18865 (pass_data_fixup_cfg): Produce a dump file.
18866 * tree-ssa-dom.c: Include tree-cfgcleanup.h.
18867 (need_noreturn_fixup): New global.
18868 (pass_dominator::execute): Fixup queued noreturn calls.
18869 (optimize_stmt): Queue calls that became noreturn for fixup.
18870 * tree-ssa-forwprop.c (pass_forwprop::execute): Likewise.
18871 * tree-ssa-pre.c: Include tree-cfgcleanup.h.
18872 (el_to_fixup): New global.
18873 (eliminate_dom_walker::before_dom_childre): Queue calls that
18874 became noreturn for fixup.
18875 (eliminate): Fixup queued noreturn calls.
18876 * tree-ssa-propagate.c: Include tree-cfgcleanup.h.
18877 (substitute_and_fold_dom_walker): New member stmts_to_fixup.
18878 (substitute_and_fold_dom_walker::before_dom_children): Queue
18879 alls that became noreturn for fixup.
18880 (substitute_and_fold): Fixup queued noreturn calls.
18881
18882 2015-03-12 Jan Hubicka <hubicka@ucw.cz>
18883
18884 * ipa-icf.c (sem_function::equals_wpa): Match CXX_CONSTRUCTOR_P
18885 and CXX_DESTURCTOR_P. For consutrctors match ODR type of class they
18886 are building; for methods check ODR type of class they belong to if
18887 they may lead to a polymorphic call.
18888 (sem_function::compare_polymorphic_p): Be bit smarter about testing
18889 when function may lead to a polymorphic call.
18890 (sem_function::compare_type_list): Remove.
18891 (sem_variable::equals): Update use of compatible_types_p.
18892 (sem_variable::parse_tree_refs): Remove.
18893 (sem_item_optimizer::filter_removed_items): Do not filter out CXX
18894 cdtor.
18895 * ipa-icf-gimple.c (func_checker::compare_decl): Do polymorphic
18896 matching here.
18897 (func_checker::compatible_polymorphic_types_p): Break out from ...
18898 (unc_checker::compatible_types_p): ... here.
18899 * ipa-icf-gimple.h (func_checker::compatible_polymorphic_types_p):
18900 Declare.
18901 (unc_checker::compatible_types_p): Update.
18902 * ipa-icf.h (compare_type_list, parse_tree_refs, compare_sections):
18903 Remove.
18904
18905 2015-03-12 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
18906
18907 PR rtl-optimization/65235
18908 * simplify-rtx.c (simplify_binary_operation_1, VEC_SELECT case):
18909 When first element of vec_concat is const_int, calculate its size
18910 using second element.
18911
18912 2015-03-12 Richard Biener <rguenther@suse.de>
18913
18914 PR middle-end/65270
18915 * fold-const.c (operand_equal_p): Fix ordering of resetting
18916 OEP_ADDRESS_OF and checking for it in the [TARGET_]MEM_REF case.
18917
18918 2015-03-12 Dominik Vogt <vogt@linux.vnet.ibm.com>
18919
18920 * config/s390/s390.c (s390_reorg): Move code to output nops after label
18921 to s390_reorg ().
18922 (s390_asm_output_function_label): Likewise.
18923 * config/s390/s390.c (s390_asm_output_function_label):
18924 Fix function label alignment with -mhtopatch.
18925 * config/s390/s390.md ("unspecv"): New values UNSPECV_NOP_2_BYTE,
18926 UNSPECV_NOP_4_BYTE and UNSPECV_NOP_6_BYTE
18927 ("nop_2_byte"): New define_insn.
18928 ("nop_4_byte"): Likewise.
18929 ("nop_6_byte"): Likewise.
18930 * doc/extend.texi (hotpatch): hotpatch attribute doc fixes.
18931 * doc/invoke.texi (-mhotpatch): -mhotpatch doc fixes.
18932
18933 2015-03-12 Ilya Enkovich <ilya.enkovich@intel.com>
18934
18935 PR target/65103
18936 * config/i386/i386.c (ix86_address_cost): Fix cost of a PIC
18937 register.
18938
18939 2015-03-12 Ilya Enkovich <ilya.enkovich@intel.com>
18940
18941 PR target/65044
18942 * toplev.c (process_options): Restrict Pointer Bounds Checker
18943 usage with Address Sanitizer.
18944
18945 2015-03-12 Richard Biener <rguenther@suse.de>
18946
18947 * tree-cfg.c (gimple_split_block): Remove loop finding stmt
18948 to split on.
18949 * omp-low.c (expand_omp_taskreg): Split block before removing
18950 the stmt.
18951 (expand_omp_target): Likewise.
18952 * ubsan.c (ubsan_expand_null_ifn): Adjust stmt if we replaced it.
18953 * tree-parloops.c (create_call_for_reduction_1): Pass a proper
18954 stmt to split_block.
18955
18956 2015-03-12 Tom de Vries <tom@codesourcery.com>
18957
18958 PR rtl-optimization/64895
18959 * lra-lives.c (check_pseudos_live_through_calls): Use
18960 actual_call_used_reg_set instead of call_used_reg_set, if available.
18961
18962 2015-03-10 Jan Hubicka <hubicka@ucw.cz>
18963
18964 * cgraph.c (cgraph_node::release_body): Free function_in_decl_state.
18965 (cgraph_node::remove): Likewise.
18966 (cgraph_node::get_untransformed_body): Likewise.
18967 * varpool.c (varpool_node::remove): Likewise.
18968 (varpool_node::get_constructor): Add sanity check.
18969
18970 2015-03-11 Sandra Loosemore <sandra@codesourcery.com>
18971
18972 * doc/invoke.texi (-fgnu89-inline): Remove discussion about
18973 old GCC versions.
18974 (-fabi-compat-version): Likewise.
18975 (-ffriend-injection): Likewise.
18976 (-Wdeclaration-after-statement): Likewise.
18977 (-fomit-frame-pointer): Likewise.
18978 (-ftree-coalesce-inlined-vars): Likewise.
18979 (-fvisibility=): Likewise.
18980 * doc/extend.texi (Typeof): Likewise.
18981 (Zero Length): Likewise.
18982 (Escaped Newlines): Likewise.
18983 (Compound Literals): Likewise.
18984 (Function Attributes): Likewise.
18985 (Label Attributes): Likewise.
18986 (Type Attributes): Likewise.
18987 (Function Names): Likewise.
18988 (Other Builtins): Likewise.
18989 (Function Specific Option Pragmas): Likewise.
18990 (C++ Interface): Likewise.
18991
18992 2015-03-11 Thomas Schwinge <thomas@codesourcery.com>
18993
18994 * config/nvptx/nvptx.h (LIBSTDCXX): Define to "gcc".
18995
18996 2015-03-11 Marek Polacek <polacek@redhat.com>
18997
18998 PR tree-optimization/65388
18999 * tree-ssa-tail-merge.c (same_succ_def::equal): Fix typo in comparison.
19000
19001 2015-03-10 Georg-Johann Lay <avr@gjlay.de>
19002
19003 PR target/65296
19004 * configure.ac [avr]: Check as for options -mrmw, --mlink-relax.
19005 * configure: Regenerate.
19006 * config.in: Regenerate.
19007 * doc/invoke.texi (AVR Options) [-mrmw]: Document it.
19008 [-mn-flash]: Document it.
19009 [__AVR_ARCH__]: Document avrtiny.
19010
19011 * config/avr/gen-avr-mmcu-specs.c (config.h): Include it.
19012 (*asm_relax): Only define spec if HAVE_AS_AVR_MLINK_RELAX_OPTION.
19013 (*asm_rmw): Only define spec if HAVE_AS_AVR_MRMW_OPTION.
19014
19015 2015-03-11 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
19016
19017 * doc/invoke.texi: Add missing cpu values (z196, zEC12).
19018
19019 2015-03-11 Michael Meissner <meissner@linux.vnet.ibm.com>
19020
19021 PR target/65242
19022 * config/rs6000/rs6000.c (rs6000_preferred_reload_class): Do not
19023 allow reloads of PLUS in floating point/VSX registers.
19024
19025 2015-03-11 Junmo Park <junmoz.park@samsung.com>
19026
19027 * config/arm/cortex-a57.md (cortex_a57_crypto_simple): Add
19028 crypto_sha256_fast.
19029 (cortex_a57_crypto_complex): Add crypto_sha256_slow.
19030
19031 2015-03-11 Richard Biener <rguenther@suse.de>
19032
19033 PR tree-optimization/65310
19034 * tree-sra.c (build_ref_for_offset): Also preserve larger
19035 alignment.
19036
19037 2015-03-11 Marat Zakirov <m.zakirov@samsung.com>
19038
19039 * asan.c (instrument_derefs): Disable instrumentation on asan-globals=0.
19040
19041 2015-03-10 Jakub Jelinek <jakub@redhat.com>
19042
19043 PR target/65368
19044 * config/i386/i386.md (bmi2_bzhi_<mode>3): Removed define_insn,
19045 new define_expand.
19046 (*bmi2_bzhi_<mode>3, *bmi2_bzhi_<mode>3_1): New define_insns.
19047
19048 2015-03-10 Jan Hubicka <hubicka@ucw.cz>
19049
19050 * ipa-icf.c (sem_function::equals_wpa): Move here some checks from ...
19051 (sem_function::equals_wpa): ... here.
19052
19053 2015-03-10 Marek Polacek <polacek@redhat.com>
19054 Jakub Jelinek <jakub@redhat.com>
19055
19056 PR sanitizer/65367
19057 * ubsan.c (ubsan_expand_objsize_ifn): Update GSI instead of GSI_ORIG
19058 when only removing the statement. Handle expanding UBSAN_OBJECT_SIZE
19059 separately.
19060
19061 2015-03-10 Jakub Jelinek <jakub@redhat.com>
19062
19063 PR target/65286
19064 * config/rs6000/t-linux: For powerpc64* target set
19065 MULTILIB_OSDIRNAMES instead of MULTIARCH_DIRNAME.
19066
19067 2015-03-10 Richard Biener <rguenther@suse.de>
19068
19069 PR middle-end/44563
19070 * tree-inline.c (copy_cfg_body): Skip block mapped to entry/exit
19071 for redirect_all_calls.
19072
19073 2015-03-10 Marek Polacek <polacek@redhat.com>
19074
19075 * gdbinit.in (pcfun): Define and document.
19076
19077 2015-03-10 Ilya Verbin <ilya.verbin@intel.com>
19078
19079 * config/i386/intelmic-mkoffload.c: Include intelmic-offload.h instead
19080 of libgomp-plugin.h.
19081 (find_target_compiler): Support a case when the path to gcc is
19082 specified in the PATH env var, so COLLECT_GCC doesn't contain a path.
19083 (generate_host_descr_file): Use GOMP_DEVICE_INTEL_MIC from
19084 intelmic-offload.h instead of OFFLOAD_TARGET_TYPE_INTEL_MIC from
19085 libgomp-plugin.h.
19086 (main): Use GCC_INSTALL_NAME as target_driver_name.
19087 * config/i386/t-intelmic (CFLAGS-mkoffload.o): Add GCC_INSTALL_NAME
19088 define.
19089 (mkoffload.o): Remove obsolete include path and defines.
19090 (mkoffload$(exeext)): Use $(LINKER) instead of $(COMPILER).
19091
19092 2015-03-10 Richard Biener <rguenther@suse.de>
19093
19094 PR middle-end/63155
19095 * tree-ssa-coalesce.h (verify_ssa_coalescing): Declare.
19096 * tree-ssa-coalesce.c: Include timevar.h.
19097 (attempt_coalesce): Handle graph being NULL.
19098 (coalesce_partitions): Call verify_ssa_coalescing if ENABLE_CHECKING.
19099 Split out abnormal coalescing to ...
19100 (perform_abnormal_coalescing): ... this function.
19101 (coalesce_ssa_name): Perform abnormal coalescing without computing
19102 live/conflict.
19103 (verify_ssa_coalescing_worker): New function.
19104 (verify_ssa_coalescing): Likewise.
19105
19106 2015-03-10 Georg-Johann Lay <avr@gjlay.de>
19107
19108 PR target/65296
19109 * config.gcc (extra_options) [avr]: Remove.
19110 (extra_gcc_objs) [avr]: Use driver-avr.o, avr-devices.o.
19111 (tm_file) [avr]: Add avr/specs.h after avr/avr.h.
19112 (tm_defines) [avr-*-rtems*]: Add WITH_RTEMS.
19113
19114 * config/avr/avr.opt (config/avr/avr-arch.h): Remove include.
19115 (-mmcu=): Add Var and MissingArgError properties.
19116 (-march=): Remove.
19117 * config/avr/genmultilib.awk: Use -mmcu= instead of -march=.
19118 * config/avr/t-multilib: Regenerate.
19119 * config/avr/specs.h: New file.
19120 * config/avr/driver-avr.c: New file.
19121 * config/avr/genopt.sh: Remove file.
19122 * config/avr/avr-tables.opt: Remove file.
19123 * config/avr/predicates.md (avr_current_arch): Rename to avr_arch.
19124 * config/avr/avr-c.c: Same.
19125 * avr-arch.h: Same.
19126 (avr_current_device): Remove proto.
19127 * config/avr/avr.h (avr_current_arch): Rename to avr_arch.
19128 (AVR_HAVE_8BIT_SP): Don't depend on avr_current_device.
19129 (EXTRA_SPEC_FUNCTIONS): Define.
19130 (avr_devicespecs_file): New specs function proto.
19131 (DRIVER_SELF_SPECS): Use device-specs-file spec function.
19132 * config/avr/avr.c (avr_current_arch): Rename to avr_arch.
19133 (avr_current_device): Remove definition and usage.
19134 (avr_set_core_architecture): New static function.
19135 (avr_option_override): Use it.
19136 * config/avr/avr-devices.c (diagnostic.h, avr-arch.h): Include them.
19137 (mcu_name): New static array.
19138 (comparator, avr_archs_str, avr_mcus_str): New static functions.
19139 (avr_inform_devices, avr_inform_core_architectures): New functions.
19140 * config/avr/gen-avr-mmcu-specs.c (avr-arch.h, specs.h): Include.
19141 (avrlibc.h) [WITH_AVRLIBC]: Include.
19142 (../rtems.h, rtems.h) [WITH_RTEMS]: Include.
19143 (print_mcu): Rewrite from scratch.
19144 * config/avr/avrlibc.h (LIB_SPEC, LIBGCC_SPEC, STARTFILE_SPEC):
19145 Forward to avr-specific specs defined in device-specs file.
19146 * config/avr/t-avr (driver-avr.o): New rule.
19147 (avr-devices.o): Depend on avr-arch.h.
19148 (avr-mcus): No more depend on avr-tables.opt.
19149 (avr-tables.opt): Remove rule.
19150 (install-device-specs): Use INSTALL_DATA, not INSTALL_PROGRAM.
19151
19152 2015-03-10 Ilya Enkovich <ilya.enkovich@intel.com>
19153
19154 * c-family/c.opt (fchkp-use-wrappers): New.
19155 * ipa-chkp.c (CHKP_WRAPPER_SYMBOL_PREFIX): New.
19156 (chkp_wrap_function): New.
19157 (chkp_build_instrumented_fndecl): Support wrapped
19158 functions.
19159 * doc/invoke.texi (-fcheck-pointer-bounds): New.
19160 (-fchkp-check-incomplete-type): New.
19161 (-fchkp-first-field-has-own-bounds): New.
19162 (-fchkp-narrow-bounds): New.
19163 (-fchkp-narrow-to-innermost-array): New.
19164 (-fchkp-optimize): New.
19165 (-fchkp-use-fast-string-functions): New.
19166 (-fchkp-use-nochk-string-functions): New.
19167 (-fchkp-use-static-bounds): New.
19168 (-fchkp-use-static-const-bounds): New.
19169 (-fchkp-treat-zero-dynamic-size-as-infinite): New.
19170 (-fchkp-check-read): New.
19171 (-fchkp-check-write): New.
19172 (-fchkp-store-bounds): New.
19173 (-fchkp-instrument-calls): New.
19174 (-fchkp-instrument-marked-only): New.
19175 (-fchkp-use-wrappers): New.
19176 (-static-libmpx): New.
19177 (-static-libmpxwrappers): New.
19178
19179 2015-03-10 Ilya Enkovich <ilya.enkovich@intel.com>
19180
19181 * config/i386/linux-common.h (LIBMPX_WRAPPERSSPEC): New.
19182 (CHKP_SPEC): Add wrappers library.
19183 * c-family/c.opt (static-libmpxwrappers): New.
19184
19185 2015-03-10 Ilya Enkovich <ilya.enkovich@intel.com>
19186
19187 * config/i386/linux-common.h (LIBMPX_LIBS): New.
19188 (LIBMPX_SPEC): New.
19189 (CHKP_SPEC): New.
19190 * gcc.c (CHKP_SPEC): New.
19191 (LINK_COMMAND_SPEC): Add CHKP_SPEC.
19192 * c-family/c.opt (static-libmpx): New.
19193
19194 2015-03-10 Richard Biener <rguenther@suse.de>
19195
19196 PR middle-end/44563
19197 * cgraph.h (struct cgraph_edge_hasher): Add hash overload
19198 for compare_type.
19199 * cgraph.c (cgraph_edge_hasher::hash): Inline htab_hash_pointer.
19200 (cgraph_update_edge_in_call_site_hash): Use cgraph_edge_hasher::hash.
19201 (cgraph_add_edge_to_call_site_hash): Likewise.
19202 (cgraph_node::get_edge): Likewise.
19203 (cgraph_edge::set_call_stmt): Likewise.
19204 (cgraph_edge::remove_caller): Likewise.
19205
19206 2015-03-10 Chung-Ju Wu <jasonwucj@gmail.com>
19207
19208 * config/nds32/nds32.h (callee_saved_regs_size): Rename to ...
19209 (callee_saved_gpr_regs_size): ... this.
19210 (callee_saved_regs_first_regno): Rename to ...
19211 (callee_saved_first_gpr_regno): ... this.
19212 (callee_saved_regs_last_regno) Rename to ...
19213 (callee_saved_last_gpr_regno): ... this.
19214 * config/nds32/nds32.c (nds32_compute_stack_frame): Adjust renamed
19215 variables.
19216 (nds32_initial_elimination_offset): Likewise.
19217 (nds32_expand_prologue): Likewise.
19218 (nds32_expand_epilogue): Likewise.
19219 (nds32_expand_prologue_v3push): Likewise.
19220 (nds32_expand_epilogue_v3pop): Likewise.
19221 * config/nds32/nds32-md-auxiliary.c (nds32_output_stack_push):
19222 Adjust renamed variables.
19223 (nds32_output_stack_pop): Likewise.
19224
19225 2015-03-10 Thomas Preud'homme <thomas.preudhomme@arm.com>
19226
19227 * dominance.c (nearest_common_dominator_for_set): Fix A_Dominated_by_B
19228 code in comment.
19229
19230 2015-03-10 Jakub Jelinek <jakub@redhat.com>
19231
19232 PR rtl-optimization/65321
19233 * cfgexpand.c (expand_debug_expr): Ensure shift amount isn't wider
19234 than shift mode.
19235 * var-tracking.c (use_narrower_mode): Likewise.
19236
19237 2015-03-10 Jan Hubicka <hubicka@ucw.cz>
19238
19239 PR tree-optimization/65355
19240 * varasm.c (notice_global_symbol): Do not produce RTL.
19241 * symtab.c (symtab_node::can_increase_alignment_p): Check for section
19242 anchor.
19243 * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Do not
19244 check for section anchors.
19245
19246 2015-03-10 Alan Modra <amodra@gmail.com>
19247
19248 PR target/65286
19249 * config.gcc (powerpc*-*-linux*): Arrange for powerpc64le-linux
19250 to be single-arch by default. Set cpu_is_64bit for powerpc64
19251 given --with-cpu=native.
19252 * config/rs6000/t-fprules: Do not set default MULTILIB vars.
19253 * config/rs6000/t-linux (MULTIARCH_DIRNAME): Support powerpc64
19254 and powerpc64le.
19255 * config/rs6000/linux64.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Test
19256 rs6000_isa_flags rather than TARGET_64BIT.
19257
19258 2015-03-09 Yoshinori Sato <ysato@users.sourceforge.jp>
19259 Kaz Kojima <kkojima@gcc.gnu.org>
19260
19261 * config/sh/t-linux (MULTILIB_EXCEPTIONS): Define for m2a cases.
19262
19263 2015-03-09 Jakub Jelinek <jakub@redhat.com>
19264
19265 PR lto/65361
19266 * ipa-devirt.c (add_type_duplicate): Don't use DECL_CONTEXT
19267 on a TREE_BINFO, instead use BINFO_TYPE.
19268
19269 2015-03-09 Richard Biener <rguenther@suse.de>
19270
19271 PR middle-end/65270
19272 * tree-core.h (enum operand_equal_flag): Add OEP_ADDRESS_OF.
19273 * fold-const.c (operand_equal_p): When recursing for ADDR_EXPRs
19274 operand set OEP_ADDRESS_OF. Clear it when recursing to non-bases
19275 of that. When comparing dereferences compare alignment.
19276 When comparing MEM_REFs or TARGET_MEM_REFs compare dependence info.
19277
19278 2015-03-08 Jan Hubicka <hubicka@ucw.cz>
19279
19280 * ipa-inline-analysis.c (check_callers): Check
19281 node->can_remove_if_no_direct_calls_and_refs_p.
19282 (growth_likely_positive): Reorganize to call
19283 can_remove_if_no_direct_calls_p later.
19284 * cgraph.h (will_be_removed_from_program_if_no_direct_calls_p,
19285 will_be_removed_from_program_if_no_direct_calls_p): Add
19286 will_inline parameter.
19287 * cgraph.c (cgraph_node::can_remove_if_no_direct_calls_p,
19288 cgraph_node::will_be_removed_from_program_if_no_direct_calls_p):
19289 Handle inliner case correctly.
19290
19291 2015-03-09 Thomas Preud'homme <thomas.preudhomme@arm.com>
19292
19293 PR tree-optimization/63743
19294 * cfgexpand.c (reorder_operands): Also reorder if only second operand
19295 had its definition forwarded by TER.
19296
19297 2015-03-08 Jan Hubicka <hubicka@ucw.cz>
19298
19299 PR lto/65316
19300 * ipa-utils.h (types_odr_comparable): Add strict argument.
19301 * ipa-devirt.c: Fix whitespace;
19302 (odr_hasher): Remove.
19303 (odr_name_hasher, odr_vtable_hasher): New hashers.
19304 (can_be_name_hashed_p): New predicate.
19305 (hash_type_name): remove.
19306 (hash_odr_name): New.
19307 (odr_name_hasher::hash): new.
19308 (can_be_vtable_hashed_p): New.
19309 (hash_odr_vtable): New.
19310 (odr_vtable_hasher::hash): New.
19311 (types_same_for_odr): Add strict parameter.
19312 (types_odr_comparable): Likewise.
19313 (odr_name_hasher::equal): New.
19314 (odr_vtable_hasher::equal): New.
19315 (odr_name_hasher::remove): New.
19316 (odr_hash_type): Change to hash_table<odr_name_hasher>.
19317 (odr_vtable_hash_type): New.
19318 (odr_vtable_hash): New.
19319 (odr_subtypes_equivalent_p): Do strict comparsion.
19320 (add_type_duplicate): Merge type names; cleanup; avoid type
19321 duplicates.
19322 (register_odr_type): Initialize vtable hash.
19323 (build_type_inheritance_graph): Likewise
19324 (get_odr_type): Reorg to use two hashes.
19325 (dump_possible_polymorphic_call_targets): Move sanity check after debug
19326 output.
19327 (ipa_devirt): Dump type_inheritance_graph.
19328 (types_same_for_odr): Add strict mode.
19329
19330 2015-03-05 Jan Hubicka <hubicka@ucw.cz>
19331
19332 PR ipa/65334
19333 * cgraph.h (symtab_node): Add definition_alignment,
19334 can_increase_alignment_p and increase_alignment.
19335 * symtab.c (symtab_node::can_increase_alignment_p,
19336 increase_alignment_1, symtab_node::increase_alignment,
19337 symtab_node::definition_alignment): New.
19338 * tree-vect-data-refs.c (vect_can_force_dr_alignment_p): Use
19339 can_increase_alignment_p.
19340 * tree-vectorizer.c (increase_alignment): Use increase_alignment.
19341 * tree-vect-stmts.c (ensure_base_align): Likewise.
19342 * varasm.c (function_section_1): Use definition_alignment.
19343 (assemble_start_function): Likewise.
19344 (emit_local): likewise.
19345 (build_constant_desc): Likewsie.
19346 (output_constant_def_contents): Likewise.
19347 (place_block_symbol): Likewise.
19348 (output_object_block): Likewise.
19349
19350 2015-03-05 Jan Hubicka <hubicka@ucw.cz>
19351
19352 PR ipa/65316
19353 * tree.c (free_lang_data_in_type): Be sure to keep BINFO_VTABLE
19354 when outputting debug.
19355
19356 2015-03-07 Marek Polacek <polacek@redhat.com>
19357 Martin Uecker <uecker@eecs.berkeley.edu>
19358
19359 PR sanitizer/65280
19360 * doc/invoke.texi: Update description of -fsanitize=bounds.
19361
19362 2015-03-06 Wilco Dijkstra <wilco.dijkstra@arm.com>
19363
19364 * tree-ssa-phiopt.c (neg_replacement): Remove.
19365 (tree_ssa_phiopt_worker): Remove negate optimization.
19366
19367 2015-03-05 Jan Hubicka <hubicka@ucw.cz>
19368
19369 PR ipa/65302
19370 * value-prof.c (gimple_ic): Pure dead eh edges when needed.
19371
19372 2015-03-06 Richard Biener <rguenther@suse.de>
19373
19374 PR middle-end/64928
19375 * tree-ssa-live.h (struct tree_live_info_d): Add livein_obstack
19376 and liveout_obstack members.
19377 (calculate_live_on_exit): Remove.
19378 (calculate_live_ranges): Change declaration.
19379 * tree-ssa-live.c (liveness_bitmap_obstack): Remove global var.
19380 (new_tree_live_info): Adjust.
19381 (calculate_live_ranges): Delete livein when not wanted.
19382 (calculate_live_ranges): Do not initialize liveness_bitmap_obstack.
19383 Deal with partly deleted live info.
19384 (loe_visit_block): Remove temporary bitmap by using
19385 bitmap_ior_and_compl_into.
19386 (live_worklist): Adjust accordingly.
19387 (calculate_live_on_exit): Make static.
19388 * tree-ssa-coalesce.c (coalesce_ssa_name): Tell calculate_live_ranges
19389 we do not need livein.
19390
19391 2015-03-06 Jonathan Wakely <jwakely@redhat.com>
19392
19393 * real.c (real_from_string): Fix typo in assertion.
19394
19395 2015-03-06 Alex Velenko <alex.velenko@arm.com>
19396
19397 * ChangeLog (2015-03-05): Reflect Richard Henderson as actual author of
19398 the patch.
19399
19400 2015-03-05 Jan Hubicka <hubicka@ucw.cz>
19401
19402 * ipa-icf.c (sem_variable::equals_wpa): Check FINAL flags.
19403
19404 2015-03-05 Vladimir Makarov <vmakarov@redhat.com>
19405
19406 PR target/64342
19407 * lra-assigns.c (find_hard_regno_for): Rename to
19408 find_hard_regno_for_1. Add a new parameter.
19409 (find_hard_regno_for): New function using find_hard_regno_for_1.
19410
19411 2015-03-05 Bernd Edlinger <bernd.edlinger@hotmail.de>
19412
19413 PR rtl-optimization/65067
19414 * expmed.c (store_bit_field, extract_bit_field): Reworked the
19415 strict volatile bitfield handling.
19416
19417 2015-03-05 Martin Liska <mliska@suse.cz>
19418
19419 PR ipa/65318
19420 * ipa-icf.c (sem_variable::equals): Compare variables types.
19421
19422 2015-03-05 Richard Henderson <rth@redhat.com>
19423
19424 PR target/65121
19425 * config/arm/arm.c (arm_function_in_section_p): Fix predicate to
19426 correctly check weak symbol binding.
19427
19428 2015-03-05 Steve Ellcey <sellcey@imgtec.com>
19429
19430 PR middle-end/65315
19431 * cfgexpand.c (expand_stack_vars): Update large_align to maximum
19432 needed alignment.
19433
19434 2015-03-05 Martin Liska <mliska@suse.cz>
19435
19436 * ipa-inline.c (inline_small_functions): Set default value to
19437 prevent warning during bootstrap.
19438 * tree.h: Add pragma guard that ignores false positives during
19439 bootstrap.
19440
19441 2015-03-05 Richard Biener <rguenther@suse.de>
19442
19443 PR tree-optimization/65310
19444 * tree-vect-data-refs.c (vect_compute_data_ref_alignment):
19445 Properly preserve alignment of the base of the access.
19446
19447 2015-03-05 Richard Biener <rguenther@suse.de>
19448
19449 PR ipa/65270
19450 * ipa-icf-gimple.c (func_checker::compare_memory_operand):
19451 Compare dependence info.
19452
19453 2015-03-05 Richard Biener <rguenther@suse.de>
19454
19455 PR middle-end/65233
19456 * ipa-polymorphic-call.c: Include tree-ssa-operands.h and
19457 tree-into-ssa.h.
19458 (walk_ssa_copies): Revert last chage. Instead do not walk
19459 SSA names registered for SSA update.
19460
19461 2015-03-03 Jan Hubicka <hubicka@ucw.cz>
19462
19463 PR ipa/65270
19464 * ipa-icf.c (sem_item::compare_cgraph_references): Compare
19465 vtable references for their containing type.
19466 (sem_function::equals_wpa): Compare TYPE_RESTRICT
19467 and type attributes.
19468
19469 2015-03-04 Eric Botcazou <ebotcazou@adacore.com>
19470
19471 * fold-const.c (round_up_loc): Cast divisor to signed on all paths
19472 before negating it.
19473 * stor-layout.c (finalize_record_size): Revert latest change.
19474
19475 2015-03-04 Andreas Tobler <andreast@gcc.gnu.org>
19476
19477 * config/rs6000/t-freebsd64: Remove 32-bit soft-float multilibs.
19478
19479 2015-03-03 Jan Hubicka <hubicka@ucw.cz>
19480
19481 * cgraph.c (cgraph_node::can_remove_if_no_direct_calls_p): Rewrite
19482 for correct comdat handling.
19483 (cgraph_node::will_be_removed_from_program_if_no_direct_calls_p):
19484 Likewise.
19485 * cgraph.h (call_for_symbol_and_aliases): Fix formating.
19486 (used_from_object_file_p_worker): Remove.
19487 (cgraph_node::only_called_directly_or_alised): Add
19488 used_from_object_file_p.
19489 * ipa-inline-analysis.c (growth_likely_positive): Optimie.
19490 * ipa-inline-transform.c (can_remove_node_now_p_1): Use
19491 can_remove_if_no_direct_calls_and_refs_p.
19492
19493 2015-03-04 Nick Clifton <nickc@redhat.com>
19494
19495 * config/rl78/rl78.h (enum reg_class): Remove real registers from
19496 General register class.
19497 * config/rl78/rl78-real.md: Replace general register constraints
19498 with real+virtual register constraints.
19499
19500 2015-03-04 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
19501
19502 * config/s390/s390.c (s390_expand_builtin): Exlude non-htm builtins
19503 from checking for -mhtm option.
19504
19505 2015-03-03 Jan Hubicka <hubicka@ucw.cz>
19506
19507 * tree-sra.c (convert_callers): Use call_for_symbol_and_aliases.
19508 (struct ipa_sra_check_caller_data): Add has_thunk field.
19509 (ipa_sra_check_caller): Check for thunk.
19510 (ipa_sra_preliminary_function_checks): Give up on function with
19511 thunks.
19512 (ipa_early_sra): Use call_for_symbol_and_aliases.
19513
19514 2015-03-03 Kaz Kojima <kkojima@gcc.gnu.org>
19515
19516 PR target/65249
19517 * config/sh/sh.md (symGOT_load): Use R0 reg for operands[2] when
19518 called for __stack_chk_guard symbol.
19519
19520 2015-03-03 DJ Delorie <dj@redhat.com>
19521
19522 * config/rl78/rl78-real.md (*addqi_real): Allow SADDR types for
19523 inc/dec.
19524 (*addhi3_real): Likewise.
19525 * config/rl78/rl78-virt.md (*inc<mode>3_virt): Additional
19526 pattern to match incrementing memory.
19527 * config/rl78/predicates.md (rl78_1_2_operand): New.
19528 * config/rl78/rl78.c (rl78_force_nonfar_3): Allow far mem-mem if
19529 it's the same and only mem.
19530 (rl78_alloc_physical_registers_op2): If there's effectively only
19531 one MEM, transcode it into HL.
19532 (rl78_far_p): Reject addresses that aren't legitimate.
19533
19534 2015-03-03 Eric Botcazou <ebotcazou@adacore.com>
19535
19536 * fold-const.c (round_up_loc): Cast divisor to HOST_WIDE_INT before
19537 negating it.
19538
19539 * tree-sra.c (pa_sra_preliminary_function_checks): Fix typo in message.
19540
19541 2015-03-03 Max Filippov <jcmvbkbc@gmail.com>
19542
19543 Implement call0 ABI for xtensa
19544 * config/xtensa/constraints.md ("a" constraint): Include stack
19545 pointer in case of call0 ABI.
19546 ("q" constraint): Make empty in case of call0 ABI.
19547 ("D" constraint): Include stack pointer in case of call0 ABI.
19548 * config/xtensa/xtensa-protos.h (xtensa_set_return_address,
19549 xtensa_expand_epilogue, xtensa_regno_to_class): Add new function
19550 prototypes.
19551 * config/xtensa/xtensa.c (xtensa_callee_save_size): New
19552 variable.
19553 (xtensa_regno_to_class): Make it a local variable in the
19554 function xtensa_regno_to_class.
19555 (xtensa_function_epilogue, TARGET_ASM_FUNCTION_EPILOGUE): Remove
19556 macro, function prototype and implementation.
19557 (reg_nonleaf_alloc_order): Make it a local variable in the
19558 function order_regs_for_local_alloc.
19559 (xtensa_conditional_register_usage): New function.
19560 (TARGET_CONDITIONAL_REGISTER_USAGE): Define macro.
19561 (xtensa_valid_move): Allow direct moves to stack pointer
19562 register in call0 ABI.
19563 (xtensa_setup_frame_addresses): Only spill register windows in
19564 windowed ABI.
19565 (xtensa_emit_call): Emit call(x)8 or call(x)0 in windowed and
19566 call0 ABI respectively.
19567 (xtensa_function_arg_1): Only mark a7 register for copying in
19568 windowed ABI.
19569 (xtensa_call_save_reg): New function.
19570 (compute_frame_size): Add space for callee saved register
19571 storage to the frame size in call0 ABI.
19572 (xtensa_expand_prologue): Generate code to set up stack frame
19573 and save callee-saved registers in call0 ABI.
19574 (xtensa_expand_epilogue): New function.
19575 (xtensa_set_return_address): New function.
19576 (xtensa_return_addr): Calculate return address in call0 ABI.
19577 (xtensa_builtin_saveregs): Only mark a7 register for copying and
19578 emit copying code in windowed ABI.
19579 (order_regs_for_local_alloc): Add preferred register allocation
19580 order for non-leaf function in call0 ABI.
19581 (xtensa_static_chain): Add atatic chain passing for call0 ABI.
19582 (xtensa_asm_trampoline_template): Add trampoline generation for
19583 call0 ABI.
19584 (xtensa_trampoline_init): Add trampoline initialization for
19585 call0 ABI.
19586 (xtensa_conditional_register_usage, xtensa_regno_to_class): New
19587 functions.
19588 * config/xtensa/xtensa.h (TARGET_WINDOWED_ABI): New macro.
19589 (TARGET_CPU_CPP_BUILTINS): Add built-in define for call0 ABI.
19590 (CALL_USED_REGISTERS): Modify to encode both windowed and call0
19591 ABI call-used registers.
19592 (HARD_FRAME_POINTER_REGNUM): Add frame pointer for call0 ABI.
19593 (INCOMING_REGNO, OUTGOING_REGNO): Use argument unchanged in
19594 call0 ABI.
19595 (REG_CLASS_CONTENTS): Include all registers into the preferred
19596 reload registers set, adjust the set in the
19597 xtensa_conditional_register_usage.
19598 (xtensa_regno_to_class): Drop variable declaration.
19599 (REGNO_REG_CLASS): Redefine to use xtensa_regno_to_class
19600 function.
19601 (WINDOW_SIZE): Define as 8 or 0 for windowed and call0 ABI
19602 respectively.
19603 (FUNCTION_PROFILER): Add _mcount call for call0 ABI.
19604 (TRAMPOLINE_SIZE): Define trampoline size for call0 ABI.
19605 (RETURN_ADDR_IN_PREVIOUS_FRAME): Define to 0 in call0 ABI.
19606 (ASM_OUTPUT_POOL_PROLOGUE): Always generate literal pool
19607 location in call0 ABI.
19608 (EH_RETURN_STACKADJ_RTX): New definition, use a10 for passing
19609 stack adjustment size when handling exception.
19610 (CRT_CALL_STATIC_FUNCTION): Add definition for call0 ABI.
19611 * config/xtensa/xtensa.md (A9_REG, UNSPECV_BLOCKAGE): New
19612 definitions.
19613 ("return" pattern): Generate ret.n/ret in call0 ABI.
19614 ("epilogue" pattern): Expand epilogue.
19615 ("nonlocal_goto" pattern): Use default in call0 ABI.
19616 ("eh_return" pattern): Move implementation to eh_set_a0_windowed,
19617 emit eh_set_a0_* depending on ABI.
19618 ("eh_set_a0_windowed" pattern): Former eh_return pattern.
19619 ("eh_set_a0_call0", "blockage"): New patterns.
19620
19621 2015-03-03 Martin Liska <mliska@suse.cz>
19622
19623 PR ipa/65287
19624 * ipa-icf.c (sem_variable::parse): Skip all alias variables.
19625
19626 2015-03-03 Michael Meissner <meissner@linux.vnet.ibm.com>
19627
19628 PR 65138/target
19629 * config/rs6000/rs6000-tables.opt: Regenerate table.
19630
19631 2015-03-03 Renlin Li <renlin.li@arm.com>
19632
19633 * doc/md.texi (@item ^): Change ? into ^.
19634
19635 2015-03-03 H.J. Lu <hongjiu.lu@intel.com>
19636
19637 * doc/tm.texi: Regenerated.
19638
19639 2015-03-03 Max Filippov <jcmvbkbc@gmail.com>
19640
19641 * builtins.c (expand_builtin_return_addr): Add
19642 RETURN_ADDR_IN_PREVIOUS_FRAME to 'if' condition, remove
19643 surrounding #ifdef.
19644 * config/sparc/sparc.h (RETURN_ADDR_IN_PREVIOUS_FRAME): Change
19645 definition to 1.
19646 * config/xtensa/xtensa.h (RETURN_ADDR_IN_PREVIOUS_FRAME):
19647 Likewise.
19648 * defaults.h (RETURN_ADDR_IN_PREVIOUS_FRAME): Define to 0 if
19649 undefined.
19650 * doc/tm.texi.in (RETURN_ADDR_IN_PREVIOUS_FRAME): Update
19651 paragraph.
19652
19653 2015-03-03 Martin Jambor <mjambor@suse.cz>
19654 Eric Botcazou <ebotcazou@adacore.com>
19655
19656 * tree-sra.c (ipa_sra_check_caller_data): New type.
19657 (has_caller_p): Removed.
19658 (ipa_sra_check_caller): New function.
19659 (ipa_sra_preliminary_function_checks): Use it.
19660
19661 2015-03-03 Martin Liska <mliska@suse.cz>
19662
19663 * ipa-icf.c (sem_item_optimizer::merge_classes): Use bit or
19664 instead of if branch.
19665
19666 2015-03-03 Martin Liska <mliska@suse.cz>
19667
19668 PR ipa/65282
19669 * ipa-icf.c (sem_variable::equals): Fix wrong condition.
19670
19671 2015-03-23 Jeff Law <law@redhat.com>
19672
19673 PR tree-optimization/65241
19674 * tree-ssa-dom.c (lookup_avail_expr): Only modify the avail_expr
19675 hash table if INSERT is true.
19676
19677 2015-03-03 Georg-Johann Lay <avr@gjlay.de>
19678
19679 PR target/65296
19680 * config.gcc (extra_gcc_objs) [avr-*-rtems*]: Remove.
19681
19682 2015-03-03 Georg-Johann Lay <avr@gjlay.de>
19683
19684 PR target/64331
19685 * config/avr/avr.c (context.h, tree-pass.h): Include them.
19686 (avr_pass_data_recompute_notes): New static variable.
19687 (avr_pass_recompute_notes): New class.
19688 (avr_register_passes): New static function.
19689 (avr_option_override): Call it.
19690
19691 2015-03-03 Georg-Johann Lay <avr@gjlay.de>
19692
19693 Fix various problems with specs file generation.
19694
19695 PR target/65296
19696 * config.gcc (extra_gcc_objs) [avr]: Remove.
19697 * config/avr/driver-avr.c: Remove file.
19698 * config/avr/t-avr (driver-avr.o): Remove rule.
19699 (gen-avr-mmcu-specs): Use CXX_FOR_BUILD, CXXFLAGS_FOR_BUILD and
19700 INCLUDES to build. Depend on TM_H.
19701 * config/avr/gen-avr-mmcu-specs.c: Tidy up code. Fix various
19702 build warnings. Fix non-matching types and non-existing %-codes.
19703 (tm.h): Include.
19704 (*lib) [!WITH_AVRLIBC]: Don't link libdev.a.
19705 (*libgcc) [WITH_AVRLIBC]: Add "-lm".
19706 * config/avr/avrlibc.h (LIBGCC_SPEC): Remove definition.
19707 * config/avr/avr.h (DRIVER_SELF_SPECS): Fix handling of -march=.
19708 (CPP_SPEC, CC1PLUS_SPEC, ASM_SPEC, LINK_SPEC, LIB_SPEC)
19709 (LIBGCC_SPEC): Remove definitions.
19710
19711 2015-03-03 Eric Botcazou <ebotcazou@adacore.com>
19712
19713 * config/ia64/ia64.c (expand_vec_perm_interleave_2): Use gen_raw_REG
19714 to create a register in testing mode.
19715
19716 2015-03-03 Martin Liska <mliska@suse.cz>
19717 Jan Hubicka <hubicka@ucw.cz>
19718
19719 PR ipa/65263
19720 * cgraph.c (cgraph_node::has_thunk_p): New function.
19721 * cgraph.h (cgraph_node::has_thunk_p: Likewise.
19722 * ipa-icf.c (redirect_all_callers): Do not redirect thunks.
19723 (sem_function::merge): Assert is changed.
19724
19725 2015-03-03 Martin Liska <mliska@suse.cz>
19726 Martin Jambor <mjambor@suse.cz>
19727
19728 PR ipa/65087
19729 * ipa-icf.c (sem_item_optimizer::execute): Change function
19730 return value to boolean.
19731 (sem_item_optimizer::merge_classes): Likewise.
19732 (ipa_icf_driver): Return TODO_remove_functions in case there's
19733 a merge operation processed.
19734 * ipa-icf.h: Change function return value to boolean.
19735
19736 2015-03-02 Michael Meissner <meissner@linux.vnet.ibm.com>
19737
19738 PR 65138/target
19739 * config/rs6000/rs6000-cpus.def (powerpc64le): Add new generic
19740 processor type for 64-bit little endian PowerPC.
19741
19742 * config/rs6000/rs6000.c (rs6000_option_override_internal): If
19743 -mdebug=reg, print TARGET_DEFAULT. Fix logic to use
19744 TARGET_DEFAULT if there is no default cpu. Fix -mdebug=reg
19745 printing built-in mask so it does not pass NULL pointers.
19746
19747 * doc/invoke.texi (IBM RS/6000 and PowerPC options): Document
19748 -mcpu=powerpc64le.
19749
19750 2015-03-02 Steve Ellcey <sellcey@imgtec.com>
19751
19752 PR target/58158
19753 * config/mips/mips.md (mov<mode>cc): Change ISA_HAS_SEL check to
19754 !ISA_HAS_FP_CONDMOVE.
19755
19756 2015-03-02 Aldy Hernandez <aldyh@redhat.com>
19757
19758 * config/i386/i386.md (*udivmod<mode>4_pow2): Remove
19759 reload_completed.
19760
19761 2015-03-02 Ulrich Drepper <drepper@gmail.com>
19762
19763 * doc/invoke.texi (Options for Code Generation Conventions):
19764 Fix URL of DSO paper.
19765
19766 2015-03-02 Jan Hubicka <hubicka@ucw.cz>
19767
19768 PR ipa/65130
19769 * ipa-inline.c (check_callers): Looks for recursion.
19770 (inline_to_all_callers): Give up on uninlinable or recursive edges.
19771 * ipa-inline-analysis.c (inline_summary_t::duplicate): Do not update
19772 summary of inline clones.
19773 (do_estimate_growth_1): Fix recursion check.
19774
19775 2015-03-02 Jan Hubicka <hubicka@ucw.cz>
19776
19777 PR ipa/64988
19778 * ipa-inline-transform.c (clone_inlined_nodes): Do not dissolve
19779 comdat groups.
19780
19781 2015-03-02 Jan Hubicka <hubicka@ucw.cz>
19782 Aldy Hernandez <aldyh@redhat.com>
19783
19784 PR lto/65276
19785 * ipa-devirt.c (add_type_duplicate): Remove odr_violated assert
19786 when checking TYPE_BINFO.
19787
19788 2015-03-02 Richard Biener <rguenther@suse.de>
19789
19790 PR ipa/65270
19791 * ipa-icf-gimple.c: Include builtins.h.
19792 (func_checker::compare_memory_operand): Compare base alignment.
19793
19794 2015-03-02 Ilya Enkovich <ilya.enkovich@intel.com>
19795
19796 PR target/65184
19797 * gcc/config/i386/i386.c (ix86_pass_by_reference) Bounds
19798 are never passed by reference.
19799
19800 2015-03-02 Ilya Enkovich <ilya.enkovich@intel.com>
19801
19802 PR target/65183
19803 * tree-chkp.c (chkp_check_lower): Don't check against
19804 zero bounds for already instrumented functions.
19805 (chkp_check_upper): Likewise.
19806 (chkp_fini): Clean pass local data to avoid wrong reusage.
19807
19808 2015-02-28 Martin Liska <mliska@suse.cz>
19809 Jan Hubicka <hubicka@ucw.cz>
19810
19811 * ipa-icf.c (sem_variable::equals): Improve debug output;
19812 get variable constructor.
19813 (sem_variable::parse): Do not filter out too early; give up on
19814 volatile and register vars.
19815 (sem_item_optimizer::filter_removed_items): Filter out nonreadonly
19816 variables.
19817 * ipa-icf.h (sem_variable::init): Do not set ctor.
19818 (sem_variable::ctor): Remove.
19819
19820 2015-03-01 Aldy Hernandez <aldyh@redhat.com>
19821
19822 PR middle-end/65233
19823 * ipa-polymorphic-call.c (walk_ssa_copies): Handle empty PHIs.
19824
19825 2015-02-28 Jan Hubicka <hubicka@ucw.cz>
19826
19827 * ipa-icf.c: Include stor-layout.h
19828 (sem_function::compare_cgraph_references): Rename to ...
19829 (sem_item::compare_cgraph_references): ... this one.
19830 (sem_variable::equals_wpa): New function
19831 (sem_variable::equals): Do not check stuff already verified by
19832 equals_wpa.
19833 (sem_variable::equals): Reorg based on varasm.c:compare_constant.
19834 * ipa-icf.h (sem_item): Add compare_cgraph_references.
19835 (sem_function): Remove compare_cgraph_references.
19836 (sem_variable): Turns equals_wpa into non-inline.
19837
19838 2015-02-28 Jan Hubicka <hubicka@ucw.cz>
19839
19840 * ipa-icf.c (sem_function::init): Fix formating; skip GIMPLE_PREDICT.
19841 (sem_item::add_expr): New function.
19842 (sem_function::hash_stmt): Handle operands of most statements.
19843 (sem_variable::get_hash): Hash the actual constructor.
19844 * ipa-icf.h (sem_item): Add add_expr.
19845 (sem_function): Update prototype of hash_stmt
19846
19847 2015-02-28 Martin Liska <mliska@suse.cz>
19848 Jan Hubicka <hubicka@ucw.cz>
19849
19850 PR ipa/65245
19851 * ipa-icf-gimple.c (func_checker::compare_function_decl):
19852 Remove.
19853 (func_checker::compare_variable_decl): Skip symtab vars.
19854 (func_checker::compare_cst_or_decl): Update.
19855 * ipa-icf.c (sem_function::parse): Do not consider aliases.
19856 (sem_function::compare_cgraph_references): Add ADDRESS parameter;
19857 use correct symtab predicates.
19858 (sem_function::equals_wpa): Update uses of compare_cgraph_references.
19859 (sem_variable::parse): Update comment.
19860 (sem_item_optimizer::build_graph): Consider ultimate aliases
19861 for references.
19862
19863 2015-02-28 Jan Hubicka <hubicka@ucw.cz>
19864
19865 * ipa-icf-gimple.c (func_checker::compare_operand): Fix handling
19866 of OBJ_TYPE_REF.
19867
19868 2015-02-28 Jan Hubicka <hubicka@ucw.cz>
19869
19870 * ipa-icf.c (sem_function::merge): Fix handling of COMDAT.
19871 (sem_variable::merge) Likewise.
19872
19873 2015-02-28 Jan Hubicka <hubicka@ucw.cz>
19874
19875 * ipa-inline.c (can_inline_edge_p): Match opt_for_fn on inline
19876 target; also match flag_ipa_devirt.
19877
19878 2015-03-01 Martin Liska <mliska@suse.cz>
19879 Jan Hubicka <hubicka@ucw.cz>
19880
19881 * ipa-icf-gimple.c (func_checker::compare_variable_decl):
19882 Validate variable alignment.
19883 * ipa-icf.c (sem_function::equals_private): Be more precise
19884 about non-common function attributes.
19885 (sem_variable::equals): Likewise.
19886
19887 2015-02-28 Jan Hubicka <hubicka@ucw.cz>
19888
19889 PR ipa/65237
19890 * ipa-icf.c (sem_function::merge): Do not attempt to produce alias
19891 across COMDAT group boundary.
19892
19893 2015-02-28 Jan Hubicka <hubicka@ucw.cz>
19894
19895 PR ipa/65232
19896 * ipa-icf.c (clear_decl_rtl): New function.
19897 (sem_function::merge): Clear RTL before forming alias.
19898 (sem_variable::merge): Clear RTL before forming alias.
19899
19900 2015-02-28 Jan Hubicka <hubicka@ucw.cz>
19901
19902 PR ipa/65236
19903 * cgraphunit.c (cgraph_node::expand_thunk): Enable return slot opt.
19904
19905 2015-02-28 Xingxing Pan <xxingpan@marvell.com>
19906
19907 * config/aarch64/aarch64.md: (mov<mode>_aarch64): Change type
19908 to neon_to_gp<q>.
19909
19910 2015-02-27 Vladimir Makarov <vmakarov@redhat.com>
19911
19912 * params.def (PARAM_LRA_INHERITANCE_EBB_PROBABILITY_CUTOFF): Fix
19913 a typo in the description.
19914
19915 2015-02-27 Vladimir Makarov <vmakarov@redhat.com>
19916
19917 PR target/64317
19918 * params.def (PARAM_LRA_INHERITANCE_EBB_PROBABILITY_CUTOFF): New.
19919 * params.h (LRA_INHERITANCE_EBB_PROBABILITY_CUTOFF): New.
19920 * lra-constraints.c: Include "params.h".
19921 (EBB_PROBABILITY_CUTOFF): Use
19922 LRA_INHERITANCE_EBB_PROBABILITY_CUTOFF.
19923 (lra_inheritance): Use '<' instead of '<=' for
19924 EBB_PROBABILITY_CUTOFF.
19925 * doc/invoke.texi (lra-inheritance-ebb-probability-cutoff):
19926 Document change.
19927
19928 2015-02-27 Martin Liska <mliska@suse.cz>
19929
19930 * ipa-icf.h (struct symbol_compare_hashmap_traits): Add missing
19931 vector length condition.
19932
19933 2015-02-27 Sandra Loosemore <sandra@codesourcery.com>
19934
19935 * doc/extend.texi (x86 transactional memory intrinsics):
19936 Reorganize discussion of _xbegin. Clarify that the return
19937 value is a bit mask. Expand example and move to end of section.
19938
19939 2015-02-26 Jakub Jelinek <jakub@redhat.com>
19940 Aldy Hernandez <aldyh@redhat.com>
19941
19942 PR rtl-optimization/65220
19943 * config/i386/i386.md (*udivmod<mode>4_pow2): New.
19944
19945 2015-02-27 Vladimir Makarov <vmakarov@redhat.com>
19946
19947 PR target/65032
19948 * lra-remat.c (update_scratch_ops): New.
19949 (do_remat): Call it.
19950 * lra.c (lra_register_new_scratch_op): New. Take code from ...
19951 (remove_scratches): ... here.
19952 * lra-int.h (lra_register_new_scratch_op): New prototype.
19953
19954 2015-02-27 Marek Polacek <polacek@redhat.com>
19955
19956 PR c/65040
19957 * doc/invoke.texi: Update to reflect that -Wformat=2 doesn't enable
19958 -Wformat-signedness anymore.
19959
19960 2015-02-27 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
19961
19962 * config/s390/s390.c: (s390_atomic_assign_expand_fenv): New
19963 function.
19964 (TARGET_ATOMIC_ASSIGN_EXPAND_FENV): Define macro.
19965
19966 2015-02-27 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
19967
19968 * config/s390/s390.c (enum s390_builtin):
19969 Add S390_BUILTIN_S390_SFPC and S390_BUILTIN_S390_EFPC.
19970 (code_for_builtin): Add CODE_FOR_s390_sfpc and CODE_FOR_s390_efpc.
19971 (s390_init_builtins): Generate new builtin functions.
19972 * config/s390/s390.md (UNSPECV_SFPC, UNSPECV_EFPC): New constants.
19973 (s390_sfpc, s390_efpc): New pattern definitions.
19974
19975 2015-02-27 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
19976
19977 * config/s390/s390.c: (enum s390_builtin, s390_expand_builtin):
19978 Rename S390_BUILTIN_max to S390_BUILTIN_MAX.
19979 (s390_builtin_decls): New array.
19980 (s390_init_builtins): Put builtin decls into s390_builtin_decls.
19981 (s390_builtin_decl): New function.
19982 (TARGET_BUILTIN_DECL): Define macro.
19983
19984 2015-02-27 Richard Biener <rguenther@suse.de>
19985
19986 PR middle-end/63175
19987 * builtins.c (get_object_alignment_2): Make sure to re-apply
19988 the ANDed mask after recursing to its operand gets us a new
19989 misalignment bit position.
19990
19991 2015-02-26 Jan Hubicka <hubicka@ucw.cz>
19992 Martin Liska <mliska@suse.cz>
19993
19994 PR bootstrap/65150
19995 * ipa-icf.c (symbol_compare_collection::symbol_compare_colleciton):
19996 Use address_matters_p.
19997 (redirect_all_callers, set_addressable): New functions.
19998 (sem_function::merge): Reorganize and fix merging issues.
19999 (sem_variable::merge): Likewise.
20000 (sem_variable::compare_sections): Remove.
20001 * common.opt (fmerge-all-constants, fmerge-constants): Remove
20002 Optimization flag.
20003 * symtab.c (symtab_node::resolve_alias): When alias has aliases,
20004 redirect them.
20005 (symtab_node::make_decl_local): Set ADDRESSABLE bit when
20006 decl is used.
20007 (address_matters_1): New function.
20008 (symtab_node::address_matters_p): New function.
20009 * cgraph.c (cgraph_edge::verify_corresponds_to_fndecl): Fix
20010 check for merged flag.
20011 * cgraph.h (address_matters_p): Declare.
20012 (symtab_node::address_taken_from_non_vtable_p): Remove.
20013 (symtab_node::address_can_be_compared_p): New method.
20014 (ipa_ref::address_matters_p): Move here from ipa-ref.c; simplify.
20015 * ipa-visibility.c (symtab_node::address_taken_from_non_vtable_p):
20016 Remove.
20017 (comdat_can_be_unshared_p_1) Use address_matters_p.
20018 (update_vtable_references): Fix formating.
20019 * ipa-ref.c (ipa_ref::address_matters_p): Move inline.
20020 * cgraphunit.c (cgraph_node::create_wrapper): Drop UNINLINABLE flag.
20021 * cgraphclones.c: Preserve merged and icf_merged flags.
20022
20023 2015-02-26 Sandra Loosemore <sandra@codesourcery.com>
20024
20025 * doc/extend.texi (Function Attributes): Fix spelling and typos.
20026 (Label Attributes): Likewise.
20027 (Cilk Plus Builtins): Likewise.
20028 (ARC SIMD Built-in Functions): Likewise.
20029 (ARM C Language Extensions (ACLE)): Likewise.
20030 (PowerPC Built-in Functions): Likewise.
20031 (PowerPC Hardware Transactional Memory Built-in Functions):
20032 Likewise.
20033
20034 2015-02-26 Jakub Jelinek <jakub@redhat.com>
20035
20036 PR tree-optimization/65216
20037 * tree-ssa-reassoc.c (rewrite_expr_tree): Force creation of
20038 new stmt and new SSA_NAME for lhs whenever the arguments have
20039 changed and weren't just swapped. Fix comment typo.
20040
20041 PR tree-optimization/65215
20042 * tree-ssa-math-opts.c (find_bswap_or_nop_load): Return false
20043 for PDP endian targets.
20044 (perform_symbolic_merge, find_bswap_or_nop_1, find_bswap_or_nop):
20045 Fix up formatting issues.
20046 (bswap_replace): Likewise. For BYTES_BIG_ENDIAN, if the final access
20047 size is smaller than the original, adjust MEM_REF offset by the
20048 difference of sizes. Use is_gimple_mem_ref_addr instead of
20049 is_gimple_min_invariant test to avoid adding address temporaries.
20050
20051 2015-02-26 Martin Liska <mliska@suse.cz>
20052 Jan Hubicka <hubicka@ucw.cz>
20053
20054 PR ipa/64693
20055 * ipa-icf.c (symbol_compare_collection::symbol_compare_collection): New.
20056 (sem_item_optimizer::subdivide_classes_by_sensitive_refs): New function.
20057 (sem_item_optimizer::process_cong_reduction): Include division by
20058 sensitive references.
20059 * ipa-icf.h (struct symbol_compare_hashmap_traits): New class.
20060 * ipa-ref.c (ipa_ref::address_matters_p): New function.
20061 * ipa-ref.h (ipa_ref::address_matters_p): Likewise.
20062
20063 2015-02-26 Georg-Johann Lay <avr@gjlay.de>
20064
20065 PR target/65192
20066 * config/avr/avr-protos.h (tiny_valid_direct_memory_access_range):
20067 Remove.
20068 * config/avr/avr.c: Same.
20069 (avr_legitimate_address_p) <AVR_TINY, CONSTANT_ADDRESS_P>:
20070 Refuse any constant address not in 0..0xbf.
20071 * config/avr/avr.md (*mov<mode>, *movsf): Remove
20072 tiny_valid_direct_memory_access_range from insn conditions.
20073 (mov<mode>): Don't special-case expansion of avrtiny addresses.
20074
20075 2015-02-26 Oleg Endo <olegendo@gcc.gnu.org>
20076
20077 PR target/61142
20078 * config/sh/sh.c (sh_check_add_incdec_notes): New function.
20079 * config/sh/sh-protos.h (sh_check_add_incdec_notes): Declare it.
20080 * config/sh/predicates.md (const_logical_operand): New predicate.
20081 * config/sh/sh.md: Add new peephole2 patterns.
20082
20083 2015-02-26 Marek Polacek <polacek@redhat.com>
20084
20085 PR ipa/65008
20086 * ipa-inline.c (early_inliner): Recompute inline parameters.
20087
20088 2015-02-26 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
20089
20090 PR target/65171
20091 * config/rs6000/rs6000.c (rs6000_analyze_swaps): Ensure
20092 instructions with TImode operands are included in the analysis.
20093
20094 2015-02-26 Sebastian Pop <s.pop@samsung.com>
20095
20096 * tree-ssa-threadupdate.c (dump_jump_thread_path): Print all edges
20097 of an EDGE_FSM_THREAD.
20098
20099 2015-02-25 Adhemerval Zanella <azanella@linux.vnet.ibm.com>
20100
20101 * config/rs6000/htm.md (tcheck): Fix assembly encoding.
20102
20103 2015-02-25 Aldy Hernandez <aldyh@redhat.com>
20104
20105 PR debug/46102
20106 * dwarf2out.c (dwarf2out_init): Disable -feliminate-dwarf2-dups.
20107
20108 2015-02-26 Sebastian Pop <s.pop@samsung.com>
20109
20110 PR tree-optimization/65048
20111 * tree-ssa-threadupdate.c (valid_jump_thread_path): New.
20112 (thread_through_all_blocks): Call valid_jump_thread_path.
20113 Remove invalid FSM jump-thread paths.
20114
20115 2015-02-26 Jakub Jelinek <jakub@redhat.com>
20116
20117 * passes.c (ipa_write_summaries_1): Call lto_output_init_mode_table.
20118 (ipa_write_optimization_summaries): Likewise.
20119 * tree-streamer.h: Include data-streamer.h.
20120 (streamer_mode_table): Declare extern variable.
20121 (bp_pack_machine_mode, bp_unpack_machine_mode): New inline functions.
20122 * lto-streamer-out.c (lto_output_init_mode_table,
20123 lto_write_mode_table): New functions.
20124 (produce_asm_for_decls): Call lto_write_mode_table when streaming
20125 offloading LTO.
20126 * lto-section-in.c (lto_section_name): Add "mode_table" entry.
20127 (lto_create_simple_input_block): Add mode_table argument to the
20128 lto_input_block constructors.
20129 * ipa-prop.c (ipa_prop_read_section, read_replacements_section):
20130 Likewise.
20131 * data-streamer-in.c (string_for_index): Likewise.
20132 * ipa-inline-analysis.c (inline_read_section): Likewise.
20133 * ipa-icf.c (sem_item_optimizer::read_section): Likewise.
20134 * lto-cgraph.c (input_cgraph_opt_section): Likewise.
20135 * lto-streamer-in.c (lto_read_body_or_constructor,
20136 lto_input_toplevel_asms): Likewise.
20137 (lto_input_mode_table): New function.
20138 * tree-streamer-out.c (pack_ts_fixed_cst_value_fields,
20139 pack_ts_decl_common_value_fields, pack_ts_type_common_value_fields):
20140 Use bp_pack_machine_mode.
20141 * real.h (struct real_format): Add name field.
20142 * lto-streamer.h (enum lto_section_type): Add LTO_section_mode_table.
20143 (class lto_input_block): Add mode_table member.
20144 (lto_input_block::lto_input_block): Add mode_table_ argument,
20145 initialize mode_table.
20146 (struct lto_file_decl_data): Add mode_table field.
20147 (lto_input_mode_table, lto_output_init_mode_table): New prototypes.
20148 * tree-streamer-in.c (unpack_ts_fixed_cst_value_fields,
20149 unpack_ts_decl_common_value_fields,
20150 unpack_ts_type_common_value_fields): Call bp_unpack_machine_mode.
20151 * tree-streamer.c (streamer_mode_table): New variable.
20152 * real.c (ieee_single_format, mips_single_format,
20153 motorola_single_format, spu_single_format, ieee_double_format,
20154 mips_double_format, motorola_double_format,
20155 ieee_extended_motorola_format, ieee_extended_intel_96_format,
20156 ieee_extended_intel_128_format, ieee_extended_intel_96_round_53_format,
20157 ibm_extended_format, mips_extended_format, ieee_quad_format,
20158 mips_quad_format, vax_f_format, vax_d_format, vax_g_format,
20159 decimal_single_format, decimal_double_format, decimal_quad_format,
20160 ieee_half_format, arm_half_format, real_internal_format): Add name
20161 field.
20162 * config/pdp11/pdp11.c (pdp11_f_format, pdp11_d_format): Likewise.
20163
20164 2015-02-26 Yuri Rumyantsev <ysrumyan@gmail.com>
20165
20166 PR target/65161
20167 * config/i386/i386.c (ix86_sched_reorder): Skip instruction
20168 reordering for selective scheduling.
20169
20170 2015-02-26 Terry Guo <terry.guo@arm.com>
20171
20172 * config/arm/arm-cores.def (cortex-m7): Add flag FL_NO_VOLATILE_CE.
20173 * config/arm/arm-protos.h (FL_NO_VOLATILE_CE): New flag.
20174 (arm_arch_no_volatile_ce): Declare new global variable.
20175 * config/arm/arm.c (arm_arch_no_volatile_ce): New global variable.
20176 (arm_option_override): Assign value to arm_arch_no_volatile_ce.
20177 * config/arm/arm.h (arm_arch_no_volatile_ce): Declare it.
20178 (TARGET_NO_VOLATILE_CE): New macro.
20179 * config/arm/arm.md (arm_comparison_operator): Disabled if not allow
20180 volatile memory access in IT block
20181
20182 2015-02-25 Kai Tietz <ktietz@redhat.com>
20183
20184 PR tree-optimization/61917
20185 * tree-vect-loop.c (vectorizable_reduction): Handle obvious case
20186 that reduc_def_stmt is null.
20187
20188 2015-02-25 Martin Liska <mliska@suse.cz>
20189
20190 * ipa-icf-gimple.c (func_checker::compare_variable_decl): Compare
20191 hard register variables.
20192
20193 2015-02-25 Kai Tietz <ktietz@redhat.com>
20194
20195 PR target/64212
20196 * symtab.c (symtab::make_decl_local): Set DECL_IMPORT_P explicit to 0.
20197 (symtab::noninterposable_alias): Likewise.
20198
20199 2015-02-25 Ilya Enkovich <ilya.enkovich@intel.com>
20200
20201 PR target/65167
20202 * gcc/config/i386/i386.c (ix86_function_arg_regno_p): Support
20203 bounds registers.
20204 (avoid_func_arg_motion): Add dependencies for BNDSTX insns.
20205
20206 2015-02-25 Alan Lawrence <alan.lawrence@arm.com>
20207
20208 PR target/64997
20209 * config/aarch64/aarch64.md (*xor_one_cmpl<mode>3): Use FP_REGNUM_P
20210 as split condition; force split via '#' in output pattern.
20211
20212 2015-02-25 Richard Biener <rguenther@suse.de>
20213 Kai Tietz <ktietz@redhat.com>
20214
20215 PR tree-optimization/61917
20216 * tree-vect-loop.c (vectorizable_reduction): Allow
20217 vect_internal_def without reduction to exit graceful.
20218
20219 2015-02-25 Georg-Johann Lay <avr@gjlay.de>
20220
20221 PR target/65196
20222 * config/avr/avr.c (avr_adjust_insn_length): Call recog_memoized
20223 only with NONDEBUG_INSN_P.
20224
20225 2015-02-25 Georg-Johann Lay <avr@gjlay.de>
20226
20227 Use variadic macros with avr-log.c.
20228
20229 * config/avr/avr-protos.h (avr_vdump): New prototype.
20230 (avr_log_set_caller_e, avr_log_set_caller_f): Remove protos.
20231 (avr_edump, avr_fdump, avr_dump): (Re)define to use avr_vdump.
20232 * config/avr/avr-log.c: Adjust comments.
20233 (avr_vdump): New function.
20234 (avr_vadump): Pass caller as 2nd argument instead of format string.
20235 (avr_log_caller, avr_log_fdump_e, avr_log_fdump_f)
20236 (avr_log_set_caller_e, avr_log_set_caller_f): Remove.
20237
20238 2015-02-25 Jakub Jelinek <jakub@redhat.com>
20239
20240 PR lto/64374
20241 * target.def (target_option_stream_in): New target hook.
20242 * tree-streamer-in.c (streamer_read_tree_bitfields): Invoke
20243 targetm.target_option.post_stream_in if non-NULL.
20244 * doc/tm.texi.in: Add @hook TARGET_OPTION_POST_STREAM_IN.
20245 * doc/tm.texi: Updated.
20246 * config/i386/i386.c (ix86_function_specific_post_stream_in): New
20247 function.
20248 (TARGET_OPTION_POST_STREAM_IN): Redefine.
20249
20250 2015-02-24 Jeff Law <law@redhat.com>
20251
20252 PR target/65117
20253 * config/xtensa/xtensa.md (zero_cost_loop_start): Reverse numbering
20254 of operand 0 and operand 2.
20255 (zero_cost_loop_end, loop_end): Similarly.
20256
20257 2015-02-24 Aldy Hernandez <aldyh@redhat.com>
20258
20259 * gimple.h (gimple_build_assign): Rename CXX_MEM_STAT_DECL to
20260 CXX_MEM_STAT_INFO.
20261
20262 2015-02-24 DJ Delorie <dj@redhat.com>
20263
20264 * config/rl78/rl78-protos.h (rl78_split_movsi): Accept a mode as well.
20265 * config/rl78/rl78-expand.md (movsf): New, same as movsi.
20266 * config/rl78/rl78.c (rl78_split_movsi): Accept a mode, use it
20267 instead of hardcoding SImode.
20268
20269 2015-02-24 Bernd Schmidt <bernds@codesourcery.com>
20270
20271 * omp-low.c (create_omp_child_function): Tag entrypoint
20272 functions with a special attribute.
20273
20274 2015-02-24 Michael Haubenwallner <michael.haubenwallner@ssi-schaefer.com>
20275
20276 PR target/65058
20277 * config/rs6000/xcoff.h (ASM_OUTPUT_EXTERNAL): Drop unused variable.
20278
20279 2015-02-24 Vladimir Makarov <vmakarov@redhat.com>
20280
20281 PR rtl-optimization/65123
20282 * lra-remat.c (operand_to_remat): Check hard regs in insn
20283 definition too.
20284
20285 2015-02-24 Nick Clifton <nickc@redhat.com>
20286
20287 * config/v850/v850.h (ASM_SPEC): Pass -msoft-float/-mhard-float on
20288 to the assembler.
20289
20290 2015-02-24 Thomas Schwinge <thomas@codesourcery.com>
20291
20292 PR libgomp/64625
20293 * omp-builtins.def (BUILT_IN_GOACC_DATA_START): Specify as
20294 BT_FN_VOID_INT_SIZE_PTR_PTR_PTR, not
20295 BT_FN_VOID_INT_PTR_SIZE_PTR_PTR_PTR.
20296 (BUILT_IN_GOACC_ENTER_EXIT_DATA, BUILT_IN_GOACC_UPDATE): Specify as
20297 BT_FN_VOID_INT_SIZE_PTR_PTR_PTR_INT_INT_VAR, not
20298 BT_FN_VOID_INT_PTR_SIZE_PTR_PTR_PTR_INT_INT_VAR.
20299 (BUILT_IN_GOACC_PARALLEL): Specify as
20300 BT_FN_VOID_INT_OMPFN_SIZE_PTR_PTR_PTR_INT_INT_INT_INT_INT_VAR, not
20301 BT_FN_VOID_INT_OMPFN_PTR_SIZE_PTR_PTR_PTR_INT_INT_INT_INT_INT_VAR.
20302 * builtin-types.def
20303 (BT_FN_VOID_INT_PTR_SIZE_PTR_PTR_PTR_INT_INT_VAR)
20304 (BT_FN_VOID_INT_OMPFN_PTR_SIZE_PTR_PTR_PTR_INT_INT_INT_INT_INT_VAR):
20305 Remove function types.
20306 (BT_FN_VOID_INT_SIZE_PTR_PTR_PTR)
20307 (BT_FN_VOID_INT_SIZE_PTR_PTR_PTR_INT_INT_VAR)
20308 (BT_FN_VOID_INT_OMPFN_SIZE_PTR_PTR_PTR_INT_INT_INT_INT_INT_VAR):
20309 New function types.
20310
20311 2015-02-24 Georg-Johann Lay <avr@gjlay.de>
20312
20313 * config/avr/stdfix.h [__WITH_AVRLIBC__]: Include <stdfix-avrlibc.h>.
20314
20315 2015-02-24 Jakub Jelinek <jakub@redhat.com>
20316
20317 PR tree-optimization/65170
20318 * wide-int.cc (wi::mul_internal): For the umul_ppmm optimization,
20319 if val[1] < 0, clear also val[2] and return 3.
20320
20321 2015-02-24 Alan Modra <amodra@gmail.com>
20322
20323 PR target/65172
20324 * config/rs6000/rs6000.c (get_memref_parts): Only return true
20325 when *base is a reg. Handle nested plus addresses. Simplify
20326 pre_modify test.
20327
20328 2015-02-22 Max Filippov <jcmvbkbc@gmail.com>
20329
20330 * config/xtensa/xtensa.h (CONSTANT_ALIGNMENT, DATA_ALIGNMENT):
20331 use natural alignment when optimizing for size.
20332
20333 2015-02-23 Kaz Kojima <kkojima@gcc.gnu.org>
20334
20335 PR target/65153
20336 * config/sh/sh.md (movsicc_true+3): Remove peephole.
20337 * config/sh/sh-protos.h (replace_n_hard_rtx): Don't declare.
20338 * config/sh/sh.c (replace_n_hard_rtx): Remove.
20339
20340 2015-02-23 Richard Sandiford <richard.sandiford@arm.com>
20341
20342 PR fortran/63427
20343 * wide-int.cc (wi::from_mpz): Cope with unwrapped values that are
20344 too big for a wide_int. Implement missing wrapping operation.
20345
20346 2015-02-23 Oleg Endo <olegendo@gcc.gnu.org>
20347
20348 PR target/65163
20349 * config/sh/sh.md (swapbsi2, related peephole2): Use const_int -65536
20350 instead of const_int 4294901760.
20351
20352 2015-02-23 Georg-Johann Lay <avr@gjlay.de>
20353
20354 * config/avr/t-avr: Fix typo in comment.
20355
20356 2015-02-21 Richard Sandiford <richard.sandiford@arm.com>
20357
20358 * doc/rtl.texi (fma): Clarify documentation.
20359
20360 2015-02-20 Aldy Hernandez <aldyh@redhat.com>
20361
20362 PR debug/58123
20363 * gimplify.c (gimplify_expr): Prefer location of TRY_FINALLY_EXPR
20364 over input_location.
20365
20366 2015-02-20 Bernd Schmidt <bernds@codesourcery.com>
20367
20368 * tree-streamer-in.c (unpack_ts_decl_common_value_fields,
20369 unpack_ts_type_common_value_fields): If ACCEL_COMPILER,
20370 restrict alignments to absolute_biggest_alignment.
20371 * config/i386/i386.c (TARGET_ABSOLUTE_BIGGEST_ALIGNMENT):
20372 Define.
20373 * doc/tm.texi.in (TARGET_ABSOLUTE_BIGGEST_ALIGNMENT): Add.
20374 * doc/tm.texi: Regenerate.
20375 * target.def (absolute_biggest_alignment): New DEFHOOKPOD.
20376
20377 2015-02-20 Vladimir Makarov <vmakarov@redhat.com>
20378
20379 PR target/64172
20380 * ira-color.c (color_pass): Prevent splitting multi-register pseudos.
20381
20382 2015-02-20 Richard Biener <rguenther@suse.de>
20383
20384 PR tree-optimization/65136
20385 * tree-ssa-propagate.c: Include cfgloop.h.
20386 (replace_phi_args_in): Avoid replacing loop latch edge PHI
20387 arguments with constants.
20388
20389 2015-02-20 Jakub Jelinek <jakub@redhat.com>
20390 Martin Liska <mliska@suse.cz>
20391
20392 PR target/63892
20393 * ipa-icf.c (sem_function::merge): If DECL_COMDAT_GROUP (alias->decl),
20394 don't try to create_thunk if stdarg_p. If
20395 !sem_item::target_supports_symbol_aliases_p (), similarly, and try to
20396 redirect_callers if possible.
20397 (sem_item_optimizer::execute): Call unregister_hooks here...
20398 (ipa_icf_driver): ... instead of here.
20399
20400 2015-02-20 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
20401
20402 * config/aarch64/aarch64.md (*aarch64_lshr_sisd_or_int_<mode>3):
20403 Mark operand 0 as earlyclobber in 2nd alternative.
20404 (1st define_split below *aarch64_lshr_sisd_or_int_<mode>3):
20405 Write negated shift amount into QI lowpart operand 0 and use it
20406 in the shift step.
20407 (2nd define_split below *aarch64_lshr_sisd_or_int_<mode>3): Likewise.
20408
20409 2015-02-20 Bernd Schmidt <bernds@codesourcery.com>
20410
20411 * cgraph.h (clone_function_name_1): Declare.
20412 * cgraphclones.c (clone_function_name_1): New function.
20413 (clone_function_name): Use it.
20414 * lto-partition.c: Include "stringpool.h".
20415 (must_not_rename, maybe_rewrite_identifier)
20416 (validize_symbol_for_target): New static functions.
20417 (privatize_symbol_name): Use must_not_rename.
20418 (promote_symbol): Call validize_symbol_for_target.
20419 (lto_promote_cross_file_statics): Likewise.
20420 (lto_promote_statics_nonwpa): Likewise.
20421
20422 2015-02-20 Georg-Johann Lay <avr@gjlay.de>
20423
20424 PR target/64452
20425 * config/avr/avr.md (pushhi_insn): New insn.
20426 (push<mode>1): Push virtual regs in one chunk using pushhi1_insn.
20427
20428 2015-02-20 Bernd Schmidt <bernds@codesourcery.com>
20429 Jakub Jelinek <jakub@redhat.com>
20430
20431 * tree-streamer.c (preload_common_nodes): Don't preload
20432 TI_VA_LIST* for offloading.
20433 * tree-stdarg.c (pass_stdarg::gate): Disable for ACCEL_COMPILER
20434 in_lto_p.
20435
20436 2015-02-19 John David Anglin <danlgin@gcc.gnu.org>
20437
20438 * config/pa/pa.c (pa_emit_move_sequence): Always force
20439 (const (plus (symbol) (const_int))) to const mem. Put REG_EQUAL
20440 note on insn.
20441
20442 * config/pa/pa.c (pa_reloc_rw_mask): New function.
20443 (TARGET_ASM_RELOC_RW_MASK): Define.
20444 (pa_cannot_force_const_mem): Revert previous change.
20445
20446 2015-02-19 Martin Jambor <mjmabor@suse.cz>
20447 Jan Hubicka <hubicka@ucw.cz>
20448
20449 PR ipa/65028
20450 * ipa-cp.c (propagate_alignment_accross_jump_function): Fix propagation
20451 across jump functions.
20452
20453 2015-02-19 Uros Bizjak <ubizjak@gmail.com>
20454
20455 * config/alpha/alpha.c (alpha_in_small_data_p): Reject common symbols.
20456
20457 2015-02-19 Sandra Loosemore <sandra@codesourcery.com>
20458
20459 * doc/extend.texi (x86 transactional memory intrinsics): Copy-edit.
20460
20461 2015-02-19 Richard Henderson <rth@redhat.com>
20462
20463 PR middle-end/65074
20464 * varasm.c (default_binds_local_p_2): Don't test node->definition;
20465 test DECL_EXTERNAL independent of symtab_node.
20466
20467 2015-02-19 Jakub Jelinek <jakub@redhat.com>
20468
20469 PR lto/65012
20470 * varpool.c (varpool_node::get_constructor): Return early
20471 if this->lto_file_data is NULL.
20472
20473 2015-02-19 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
20474
20475 * haifa-sched.c (enum rfs_decision, rfs_str): Remove RFS_DEBUG.
20476 (rank_for_schedule_debug): Update.
20477 (ready_sort): Make static. Move sorting logic to ...
20478 (ready_sort_debug, ready_sort_real): New static functions.
20479 (schedule_block): Sort both debug insns and real insns in preparation
20480 for ready list trimming. Improve debug output.
20481 * sched-int.h (ready_sort): Remove global declaration.
20482
20483 2015-02-18 Trevor Saunders <tsaunders@mozilla.com>
20484
20485 * ipa-icf.c (sem_function::equals_private): Adjust.
20486 (sem_function::bb_dict_test): Take a vec<int> * instead of
20487 auto_vec<int>.
20488 * ipa-icf.h (bb_dict_test): Likewise.
20489
20490 2015-02-18 Jakub Jelinek <jakub@redhat.com>
20491
20492 PR gcov-profile/64634
20493 * tree-eh.c (frob_into_branch_around): Fix up typos
20494 in function comment.
20495 (lower_catch): Put eh_seq resulting from EH lowering of
20496 the cleanup sequence after the cleanup rather than before it.
20497
20498 2015-02-18 Tom de Vries <tom@codesourcery.com>
20499
20500 * common.opt (fstdarg-opt): New option.
20501 * tree-stdarg.c (pass_stdarg::gate): Use flag_stdarg_opt.
20502 * doc/invoke.texi (@item Optimization Options): Add -fstdarg-opt.
20503 (@item -fstdarg-opt): New item.
20504
20505 2015-02-18 H.J. Lu <hongjiu.lu@intel.com>
20506
20507 PR target/65064
20508 * config/ia64/predicates.md (sdata_symbolic_operand): Return false
20509 for common symbols.
20510
20511 2015-02-18 Jakub Jelinek <jakub@redhat.com>
20512
20513 * config/i386/t-intelmic (mkoffload.o): Remove dependency on
20514 insn-modes.h.
20515 (ALL_HOST_OBJS): Add mkoffload.o.
20516 * config/nvptx/t-nvptx (ALL_HOST_OBJS): Likewise.
20517
20518 2015-02-18 Jan Hubicka <hubicka@ucw.cz>
20519
20520 * ipa-devirt.c (odr_subtypes_equivalent_p): Fix formating.
20521 (compare_virtual_tables): Be smarter about skipping typeinfos;
20522 do sane output on virtual table table mismatch.
20523 (warn_odr): Be ready for forward declarations of enums;
20524 output sane info on base mismatch and virtual table mismatch.
20525 (add_type_duplicate): Fix code choosing prevailing type; do not ICE
20526 when only one type is polymorphic.
20527 (get_odr_type): Fix hashtable corruption.
20528 (dump_odr_type): Dump mangled names.
20529
20530 2015-02-18 Richard Biener <rguenther@suse.de>
20531
20532 PR tree-optimization/65063
20533 * tree-predcom.c (determine_unroll_factor): Return 1 if we
20534 have replaced looparound PHIs.
20535
20536 2015-02-18 Martin Liska <mliska@suse.cz>
20537
20538 * lto-streamer.c (lto_streamer_init): Encapsulate
20539 streamer_check_handled_ts_structures with checking macro.
20540
20541 2015-02-18 Jakub Jelinek <jakub@redhat.com>
20542
20543 PR ipa/65087
20544 * cgraphclones.c (cgraph_node::create_virtual_clone): Only copy
20545 section if !implicit_section.
20546 (cgraph_node::create_version_clone_with_body): Likewise.
20547 * trans-mem.c (ipa_tm_create_version): Likewise.
20548
20549 2015-02-18 Richard Biener <rguenther@suse.de>
20550
20551 PR tree-optimization/62217
20552 * tree-ssa-dom.c (cprop_operand): Avoid propagating copies
20553 into BIVs.
20554
20555 2015-02-18 Marek Polacek <polacek@redhat.com>
20556
20557 PR sanitizer/65081
20558 * ubsan.c (OBJSZ_MAX_OFFSET): Define.
20559 (ubsan_expand_objsize_ifn): Don't emit run-time check if the offset
20560 is in range [-16K, -1]. Don't issue run-time error if
20561 (ptr > ptr + offset).
20562
20563 2015-02-18 Thomas Schwinge <thomas@codesourcery.com>
20564
20565 * doc/install.texi (nvptx-*-none): New section.
20566 * doc/invoke.texi (Nvidia PTX Options): Likewise.
20567 * config/nvptx/nvptx.opt: Update.
20568
20569 * config/nvptx/mkoffload.c (parse_env_var, free_array_of_ptrs)
20570 (access_check): New functions, copied from
20571 config/i386/intelmic-mkoffload.c.
20572 (main): For non-installed testing, look in all COMPILER_PATHs for
20573 GCC_INSTALL_NAME.
20574
20575 * config/nvptx/nvptx.h (GOMP_SELF_SPECS): Define macro.
20576
20577 2015-02-18 Andrew Pinski <apinski@cavium.com>
20578 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
20579
20580 * config/aarch64/aarch64.c (*aarch64_load_symref_appropriately):
20581 Check whether the destination of SYMBOL_SMALL_TPREL is Pmode.
20582
20583 2015-02-17 Jan Hubicka <hubicka@ucw.cz>
20584
20585 * ipa-visibility.c (function_and_variable_visibility): Only
20586 check locality if node is not already local.
20587 * ipa-inline.c (want_inline_function_to_all_callers_p): Use
20588 call_for_symbol_and_aliases instead of
20589 call_for_symbol_thunks_and_aliases.
20590 (ipa_inline): Likewise.
20591 * cgraph.c (cgraph_node::call_for_symbol_thunks_and_aliases):
20592 first walk aliases.
20593 * ipa.c (symbol_table::remove_unreachable_nodes): Use
20594 call_for_symbol_and_aliases.
20595 * ipa-profile.c (ipa_propagate_frequency_data): Add function_symbol.
20596 (ipa_propagate_frequency_1): Use it; use opt_for_fn
20597 (ipa_propagate_frequency): Update.
20598 (ipa_profile): Add opt_for_fn gueards.
20599
20600 2015-02-17 Oleg Endo <olegendo@gcc.gnu.org>
20601
20602 * config/sh/sh.opt (mcbranch-force-delay-slot): New option.
20603 * doc/invoke.texi (SH options): Document it.
20604 * config/sh/sh.c (sh_insn_length_adjustment): Check
20605 TARGET_CBRANCH_FORCE_DELAY_SLOT instead of sh_cpu_attr == CPU_SH2E.
20606
20607 2015-02-17 H.J. Lu <hongjiu.lu@intel.com>
20608
20609 * common.opt (fipa-cp-alignment): New.
20610 * ipa-cp.c (ipcp_store_alignment_results): Check
20611 flag_ipa_cp_alignment.
20612 * opts.c (default_options_table): Enable -fipa-cp-alignment for
20613 -O2.
20614 (enable_fdo_optimizations): Set x_flag_ipa_cp_alignment.
20615 * doc/invoke.texi: Document -fipa-cp-alignment.
20616
20617 2015-02-17 Oleg Endo <olegendo@gcc.gnu.org>
20618
20619 PR target/64793
20620 * config/sh/sh.md (cbranch define_delay): Set annulled true branch insn
20621 to nil. Adjust comments.
20622
20623 2015-02-17 Jan Hubicka <hubicka@ucw.cz>
20624
20625 * ipa-visibility.c (function_and_variable_visibility): Only
20626 check locality if node is not already local.
20627 * ipa-inline.c (want_inline_function_to_all_callers_p): Use
20628 call_for_symbol_and_aliases instead of
20629 call_for_symbol_thunks_and_aliases.
20630 (ipa_inline): Likewise.
20631 * cgraph.c (cgraph_node::call_for_symbol_thunks_and_aliases):
20632 first walk aliases.
20633 * ipa.c (symbol_table::remove_unreachable_nodes): Use
20634 call_for_symbol_and_aliases.
20635 * ipa-profile.c (ipa_propagate_frequency_data): Add function_symbol.
20636 (ipa_propagate_frequency_1): Use it; use opt_for_fn
20637 (ipa_propagate_frequency): Update.
20638 (ipa_profile): Add opt_for_fn guards.
20639
20640 2015-02-17 Thomas Schwinge <thomas@codesourcery.com>
20641
20642 * config/nvptx/mkoffload.c (parse_file): Fix logic error in
20643 skipping of "strange" tokens.
20644
20645 2015-02-17 Jeff Law <law@redhat.com>
20646
20647 * tree-vrp.c (identify_jump_threads): Use last_stmt. Remove
20648 obsolete comment.
20649
20650 2015-02-17 James Greenhalgh <james.greenhalgh@arm.com>
20651
20652 * haifa-sched.c (recompute_todo_spec): Treat SCHED_GROUP_P
20653 as forcing a HARD_DEP between instructions, thereby
20654 disallowing rewriting to break dependencies.
20655
20656 2015-02-16 Jan Hubicka <hubicka@ucw.cz>
20657
20658 * symtab.c (symtab_node::verify_base): Verify body_removed->!definiton
20659 * lto-cgraph.c (lto_output_varpool_node): Do not keep definition of
20660 variables in boundary that have no inlitalizer encoded and are
20661 not aliases.
20662 * varasm.c (default_binds_local_p_2): External definitions do not
20663 count as definitions here.
20664
20665 2015-02-16 Jeff Law <law@redhat.com>
20666
20667 PR tree-optimization/64823
20668 * tree-vrp.c (identify_jump_threads): Handle blocks with no real
20669 statements.
20670 * tree-ssa-threadedge.c (potentially_threadable_block): Allow
20671 threading through blocks with PHIs, but no statements.
20672 (thread_through_normal_block): Distinguish between blocks where
20673 we did not process all the statements and blocks with no statements.
20674
20675 2015-02-16 Jakub Jelinek <jakub@redhat.com>
20676 James Greenhalgh <james.greenhalgh@arm.com>
20677
20678 PR ipa/64963
20679 * cgraphclones.c (cgraph_node::create_virtual_clone): Copy
20680 section if not linkonce. Fix up formatting.
20681 (cgraph_node::create_version_clone_with_body): Copy section.
20682 * trans-mem.c (ipa_tm_create_version): Likewise.
20683
20684 2015-02-16 Richard Biener <rguenther@suse.de>
20685
20686 PR tree-optimization/65077
20687 * tree-ssa-structalias.c (get_constraint_for_1): Handle
20688 IMAGPART_EXPR, REALPART_EXPR and BIT_FIELD_REF.
20689 (find_func_aliases): Allow float values to carry pointers again.
20690
20691 2015-02-16 James Greenhalgh <james.greenhalgh@arm.com>
20692
20693 * doc/install.texi (Specific): Reorder targets list to put
20694 aarch64 in alphabetical order. Add a link to aarch64*-*-*
20695 from the top menu.
20696
20697 2015-02-16 Michael Haubenwallner <michael.haubenwallner@ssi-schaefer.com>
20698 David Edelsohn <dje.gcc@gmail.com>
20699
20700 PR target/65058
20701 * config/rs6000/rs6000.c (rs6000_output_symbol_ref): Append storage
20702 mapping class to external variable or function reference.
20703 * config/rs6000/xcoff.h (ASM_OUTPUT_EXTERNAL): Do not append storage
20704 mapping class.
20705
20706 2015-02-16 David Eelsohn <dje.gcc@gmail.com>
20707
20708 PR target/53348
20709 * config/rs6000/rs6000.c (rs6000_declare_alias): Only use
20710 ASM_WEAKEN_DECL if defined.
20711
20712 2015-02-16 Richard Biener <rguenther@suse.de>
20713
20714 PR lto/65015
20715 * varasm.c (default_file_start): For LTO produced units
20716 emit <artificial> as file directive.
20717
20718 2015-02-16 Richard Biener <rguenther@suse.de>
20719
20720 PR tree-optimization/63593
20721 * tree-predcom.c (execute_pred_commoning_chain): Delay removing
20722 stmts and releasing SSA names until...
20723 (execute_pred_commoning): ... after processing all chains.
20724
20725 2015-02-16 Jan Hubicka <hubicka@ucw.cz>
20726
20727 PR ipa/65059
20728 * ipa-comdats.c (ipa_comdats): Do not categorize thunks to
20729 external functions.
20730
20731 2015-02-15 Sandra Loosemore <sandra@codesourcery.com>
20732
20733 * doc/bugreport.texi: Adjust section titles throughout the file
20734 to use "Title Case".
20735 * doc/extend.texi: Likewise.
20736 * doc/gcov.texi: Likewise.
20737 * doc/implement-c.texi: Likewise.
20738 * doc/implement-cxx.texi: Likewise.
20739 * doc/invoke.texi: Likewise.
20740 * doc/objc.texi: Likewise.
20741 * doc/standards.texi: Likewise.
20742 * doc/trouble.texi: Likewise.
20743
20744 2015-02-15 Jan Hubicka <hubicka@ucw.cz>
20745
20746 * cgraph.h (symtab_node::has_aliases_p): Simplify.
20747 (symtab_node::call_for_symbol_and_aliases): Use has_aliases_p
20748 * tree.c (lookup_binfo_at_offset): Make static.
20749 (get_binfo_at_offset): Do not shadow offset; add explanatory
20750 comment.
20751
20752 2015-02-15 John David Anglin <danglin@gcc.gnu.org>
20753
20754 * config/pa/pa.c (pa_secondary_reload): Request a secondary reload
20755 for all floading point loads and stores except those using a register
20756 index address.
20757 * config/pa/pa.md: Add new patterns to load a lo_sum DLT operand
20758 to a register.
20759
20760 2015-02-14 Jan Hubicka <hubicka@ucw.cz>
20761
20762 * ipa-inline-analysis.c (growth_data): Add uninlinable field.
20763 (do_estimate_growth_1): Record if any uninlinable edge was seen.
20764 (estimate_growth): Handle uninlinable edges correctly.
20765 (check_callers): New.
20766 (growth_likely_positive): Handle aliases correctly.
20767
20768 2015-02-14 Jan Hubicka <hubicka@ucw.cz>
20769
20770 * ipa-chkp.c: Use iterate_direct_aliases.
20771 * symtab.c (resolution_used_from_other_file_p): Move inline.
20772 (symtab_node::create_reference): Fix formating.
20773 (symtab_node::has_aliases_p): Move inline; use iterate_direct_aliases.
20774 (symtab_node::iterate_reference): Move inline.
20775 (symtab_node::iterate_referring): Move inline.
20776 (symtab_node::iterate_direct_aliases): Move inline.
20777 (symtab_node::used_from_object_file_p_worker): Inline into ...
20778 (symtab_node::used_from_object_file_p): ... this one; move inline.
20779 (symtab_node::call_for_symbol_and_aliases): Move inline;
20780 use iterate_direct_aliases.
20781 (symtab_node::call_for_symbol_and_aliases_1): New method.
20782 (cgraph_node::call_for_symbol_and_aliases): Move inline;
20783 use iterate_direct_aliases.
20784 (cgraph_node::call_for_symbol_and_aliases_1): New method.
20785 (varpool_node::call_for_node_and_aliases): Rename to ...
20786 (varpool_node::call_for_symbol_and_aliases): ... this one; Move inline;
20787 use iterate_direct_aliases.
20788 (varpool_node::call_for_symbol_and_aliases_1): New method.
20789 * ipa.c (ipa_single_use): Use iterate_direct_aliases.
20790 (ipa_discover_readonly_nonaddressable_var): Update.
20791 * ipa-devirt.c: Fix formating.
20792 * cgraph.c (cgraph_node::can_remove_if_no_direct_calls_and_refs_p):
20793 Move inline.
20794 (cgraph_node::call_for_symbol_and_aliases): Move inline.
20795 (cgraph_node::call_for_symbol_and_aliases_1): New function..
20796 * cgraph.h (used_from_object_file_p_worker): Remove.
20797 (resolution_used_from_other_file_p): Move inline.
20798 (symtab_node::has_aliases_p): Move inline; use iterate_direct_aliases.
20799 (symtab_node::iterate_reference): Move inline.
20800 (symtab_node::iterate_referring): Move inline.
20801 (symtab_node::iterate_direct_aliases): Move inline.
20802 (symtab_node::used_from_object_file_p_worker): Inline into ...
20803 (symtab_node::used_from_object_file_p): Move inline.
20804 * tree-emutls.c (ipa_lower_emutls): Update.
20805 * varpool.c (varpool_node::call_for_symbol_and_aliases_1): New method.
20806 (varpool_node::call_for_node_and_aliases): Remove.
20807
20808 2015-02-14 Jakub Jelinek <jakub@redhat.com>
20809
20810 PR tree-optimization/62209
20811 * tree-ssa-reassoc.c (update_range_test): If stmt is a PHI and
20812 op == range->exp, insert seq and gimplified code after labels
20813 instead of after the phi.
20814
20815 2015-02-13 Jeff Law <law@redhat.com>
20816
20817 PR bootstrap/65060
20818 Revert my change for tree-optimization/64823.
20819
20820 2015-02-13 Jakub Jelinek <jakub@redhat.com>
20821
20822 PR tree-optimization/65053
20823 * tree-ssa-phiopt.c (value_replacement): When moving assign before
20824 cond, either reset VR on lhs or set it to phi result VR.
20825
20826 2015-02-13 Jeff Law <law@redhat.com>
20827
20828 PR tree-optimization/64823
20829 * tree-vrp.c (identify_jump_threads): Handle blocks with no statements.
20830 * tree-ssa-threadedge.c (potentially_threadable_block): Allow
20831 threading through blocks with PHIs, but no statements.
20832 (thread_through_normal_block): Distinguish between blocks where
20833 we did not process all the statements and blocks with no statements.
20834
20835 PR rtl-optimization/47477
20836 * match.pd (convert (plus/minus (convert @0) (convert @1): New
20837 simplifier to narrow arithmetic.
20838
20839 2015-02-13 Jan Hubicka <hubicka@ucw.cz>
20840
20841 PR ipa/65028
20842 * ipa-prop.c (update_indirect_edges_after_inlining): Do not drop
20843 polymorphic call info when type is not known to be preserved.
20844
20845 2015-02-13 Maritn Jambor <mjambor@suse.cz>
20846
20847 PR ipa/65028
20848 * ipa-inline-transform.c (mark_all_inlined_calls_cdtor): New function.
20849 (inline_call): Use it.
20850
20851 2015-02-13 Thomas Schwinge <thomas@codesourcery.com>
20852
20853 * config/nvptx/offload.h (ACCEL_COMPILER_acc_device): Define to
20854 GOMP_DEVICE_NVIDIA_PTX.
20855
20856 2015-02-13 Jakub Jelinek <jakub@redhat.com>
20857
20858 PR ipa/65034
20859 * stmt.c (emit_case_nodes): Use void_type_node instead of
20860 NULL_TREE as LABEL_DECL type.
20861
20862 2015-02-13 John David Anglin <danglin@gcc.gnu.org>
20863
20864 * config/pa/constraints.md: Change "Q" and "T" constraints to memory
20865 constraints.
20866 * config/pa/pa.c (pa_cannot_force_const_mem): Don't allow constant
20867 symbolic references to data to be forced to constant memory on the
20868 SOM target.
20869
20870 2015-02-13 Ilya Enkovich <ilya.enkovich@intel.com>
20871
20872 PR tree-optimization/65002
20873 * tree-cfg.c (pass_data_fixup_cfg): Don't update
20874 SSA on start.
20875 * tree-sra.c (some_callers_have_no_vuse_p): New.
20876 (ipa_early_sra): Reject functions whose callers
20877 assume function is read only.
20878
20879 2015-02-13 Richard Biener <rguenther@suse.de>
20880
20881 PR lto/65015
20882 * dwarf2out.c (dwarf2out_finish): Use <artificial> as DW_AT_name
20883 for LTO produced CUs.
20884
20885 2015-02-13 Bin Cheng <bin.cheng@arm.com>
20886
20887 PR tree-optimization/64705
20888 * tree-ssa-loop-niter.h (expand_simple_operations): New parameter.
20889 * tree-ssa-loop-niter.c (expand_simple_operations): New parameter.
20890 * tree-ssa-loop-ivopts.c (extract_single_var_from_expr): New.
20891 (find_bivs, find_givs_in_stmt_scev): Pass new argument to
20892 expand_simple_operations.
20893
20894 2015-02-13 H.J. Lu <hongjiu.lu@intel.com>
20895 Richard Henderson <rth@redhat.com>
20896
20897 PR rtl/32219
20898 * cgraphunit.c (cgraph_node::finalize_function): Set definition
20899 before notice_global_symbol.
20900 (varpool_node::finalize_decl): Likewise.
20901 * varasm.c (default_binds_local_p_2): Rename from
20902 default_binds_local_p_1, add weak_dominate argument. Use direct
20903 returns instead of assigning to local variable. Unify varpool and
20904 cgraph paths via symtab_node. Reject undef weak variables before
20905 testing visibility. Reorder tests for simplicity.
20906 (default_binds_local_p): Use default_binds_local_p_2.
20907 (default_binds_local_p_1): Likewise.
20908 (decl_binds_to_current_def_p): Unify varpool and cgraph paths
20909 via symtab_node.
20910 (default_elf_asm_output_external): Emit visibility when specified.
20911
20912 2015-02-13 Alan Modra <amodra@gmail.com>
20913
20914 * config/rs6000/rs6000.c (rs6000_emit_epilogue): Fix typo in
20915 code setting up r11 for out-of-line fp restore.
20916
20917 2015-02-13 Eric Botcazou <ebotcazou@adacore.com>
20918
20919 * config/visium/visium.opt (msv-mode): Add RejectNegative and Report.
20920 (muser-mode): Likewise.
20921
20922 2015-02-13 Alan Modra <amodra@gmail.com>
20923
20924 * config/rs6000/rs6000.c (rs6000_emit_epilogue): Use addsi3_carry
20925 or adddi3_carry when restoring frame_reg_rtx from r0 after restvr.
20926
20927 2015-02-12 David Howells <dhowells@redhat.com>
20928
20929 * tree-sra.c (dump_dereferences_table): Avoid -Wformat-security
20930 warning.
20931 * tree-ssa-uninit.c (dump_predicates): Likewise.
20932 * opts.c (print_filtered_help): Likewise.
20933
20934 2015-02-12 Jakub Jelinek <jakub@redhat.com>
20935
20936 * dwarf2out.c (output_die): Use "%s", name instead of name to
20937 avoid -Wformat-security warning.
20938
20939 * dwarf2asm.c (dw2_asm_output_vms_delta): Only define
20940 if ASM_OUTPUT_DWARF_VMS_DELTA is defined.
20941 * dwarf2out.c (output_die): Use dw2_asm_output_vms_delta
20942 only if ASM_OUTPUT_DWARF_VMS_DELTA is defined.
20943
20944 2015-02-12 Jason Merrill <jason@redhat.com>
20945
20946 * common.opt (-flifetime-dse): New.
20947
20948 2015-02-12 Jakub Jelinek <jakub@redhat.com>
20949
20950 PR sanitizer/65019
20951 * ubsan.c (ubsan_expand_objsize_ifn): Always return true.
20952
20953 PR tree-optimization/65014
20954 * fold-const.c (fold_binary_loc): When creating {L,R}ROTATE_EXPR,
20955 use original second operand of arg0 or arg1 instead of
20956 that adjusted by STRIP_NOPS.
20957
20958 2015-02-11 Jeff Law <law@redhat.com>
20959
20960 PR target/63347
20961 * haifa-sched.c (prune_ready_list): If we have a SCHED_GROUP_P insn
20962 that needs to be queued, just queue it for a single cycle.
20963
20964 2015-02-11 Jan Hubicka <hubicka@ucw.cz>
20965
20966 * ipa.c (symbol_table::remove_unreachable_nodes): Avoid releasing
20967 bodies of thunks; comment on why.
20968 * symtab.c (symtab_node::get_partitioning_class): Aliases of extern
20969 symbols are extern.
20970
20971 2015-02-11 Richard Henderson <rth@redhat.com>
20972
20973 PR sanitize/65000
20974 * tree-eh.c (mark_reachable_handlers): Mark source and destination
20975 regions of __builtin_eh_copy_values.
20976
20977 2015-02-11 Jakub Jelinek <jakub@redhat.com>
20978
20979 PR middle-end/65003
20980 * varasm.c (place_block_symbol): Assert that DECL_RTL of the
20981 ultimate alias is MEM with SYMBOL_REF satisfying
20982 SYMBOL_REF_HAS_BLOCK_INFO_P as its operand. Don't pass the MEM
20983 to place_block_symbol, but instead pass the SYMBOL_REF operand of it.
20984
20985 2015-02-11 Thomas Schwinge <thomas@codesourcery.com>
20986
20987 * config/nvptx/mkoffload.c: Include "diagnostic.h" instead of
20988 "diagnostic-core.h".
20989 (main): Initialize progname, and call diagnostic_initialize.
20990
20991 * config/nvptx/mkoffload.c (process): Refer to __OFFLOAD_TABLE__
20992 instead of __OPENMP_TARGET__.
20993
20994 * config/nvptx/mkoffload.c: Include "gomp-constants.h".
20995 (process): Use its GOMP_DEVICE_NVIDIA_PTX instead of (wrongly)
20996 hard-coding PTX_ID.
20997
20998 2015-02-11 H.J. Lu <hongjiu.lu@intel.com>
20999
21000 * doc/sourcebuild.texi (pie_enabled): Document.
21001
21002 2015-02-11 Martin Liska <mliska@suse.cz>
21003
21004 PR ipa/64813
21005 * cgraphunit.c (cgraph_node::expand_thunk): Do not create
21006 a return value for call to a function that is noreturn.
21007
21008 2015-02-11 Richard Biener <rguenther@suse.de>
21009
21010 PR lto/65015
21011 * dwarf2out.c (gen_producer_string): Drop -fltrans-output-list
21012 and -fresolution.
21013
21014 2015-02-11 Andrew Pinski <apinski@cavium.com>
21015
21016 PR target/64893
21017 * config/aarch64/aarch64-builtins.c (aarch64_init_simd_builtins):
21018 Change the first argument type to size_type_node and add another
21019 size_type_node.
21020 (aarch64_simd_expand_builtin): Handle the new argument to
21021 AARCH64_SIMD_BUILTIN_LANE_CHECK and don't ICE but rather
21022 print an out when the first two arguments are not
21023 nonzero integer constants.
21024 * config/aarch64/arm_neon.h (__AARCH64_LANE_CHECK):
21025 Pass the sizeof directly to __builtin_aarch64_im_lane_boundsi.
21026
21027 2015-02-11 Jakub Jelinek <jakub@redhat.com>
21028
21029 PR target/61925
21030 * config/i386/i386.c (ix86_reset_to_default_globals): Removed.
21031 (ix86_reset_previous_fndecl): Restore it here, unconditionally.
21032 (ix86_set_current_function): Rewritten.
21033 (ix86_add_new_builtins): Temporarily clear current_target_pragma
21034 when creating builtin fndecls.
21035
21036 2015-02-10 Jan Hubicka <hubicka@ucw.cz>
21037
21038 PR ipa/65005
21039 * ipa-visibility.c (cgraph_node::non_local_p): Turn into static
21040 function.
21041 * symtab.c (symtab_node::verify_base): Remove check that non-definitions
21042 have no comdat group.
21043 * lto-cgraph.c (lto_output_node): Always output thunk and alias info.
21044 (lto_output_varpool_node): Always output alias info.
21045 (output_refs): Output refs of boundary aliases, too.
21046 (compute_ltrans_boundary): Add alias and thunk target into boundaries.
21047 (output_symtab): Output call eges in thunks in boundary.
21048 (get_alias_symbol): Remove.
21049 (input_node, input_varpool_node): Do not special case weakrefs.
21050 * ipa.c (symbol_table::remove_unreachable_nodes): Do not remove
21051 alias and thunks targets in the boundary; do not take removed symbols
21052 from their comdat groups.
21053 * cgraph.c (cgraph_node::local_info): Look through aliases and thunks.
21054 (cgraph_node::global_info): Remove.
21055 (cgraph_node::rtl_info): Look through aliases and thunks.
21056 * cgrpah.h (global_info): Remove.
21057 (non_local_p): Remove.
21058
21059 2015-02-10 David Wohlferd <dw@LimeGreenSocks.com>
21060 Sandra Loosemore <sandra@codesourcery.com>
21061
21062 * doc/invoke.texi (x86 Options [-masm=dialect]): Add cross-references
21063 to inline asm. List dialects in proper order.
21064
21065 2015-02-10 David Wohlferd <dw@LimeGreenSocks.com>
21066 Sandra Loosemore <sandra@codesourcery.com>
21067
21068 * doc/extend.texi (Loop-Specific Pragmas): Fix grammar error.
21069
21070 2015-02-10 David Wohlferd <dw@LimeGreenSocks.com>
21071
21072 * doc/extend.texi (Symbol-Renaming Pragmas): Restore (slightly
21073 modified) reference to Solaris.
21074
21075 2015-02-10 Sandra Loosemore <sandra@codesourcery.com>
21076
21077 * doc/extend.texi (Extended Asm): Fix typos.
21078
21079 2015-02-10 Jakub Jelinek <jakub@redhat.com>
21080
21081 PR sanitizer/65004
21082 * ubsan.c (ubsan_expand_vptr_ifn): Always return true.
21083
21084 2015-02-10 Oleg Endo <olegendo@gcc.gnu.org>
21085
21086 PR target/64661
21087 * config/sh/sh-protos.h (TARGET_ATOMIC_ANY, TARGET_ATOMIC_STRICT,
21088 TARGET_ATOMIC_SOFT_GUSA, TARGET_ATOMIC_HARD_LLCS,
21089 TARGET_ATOMIC_SOFT_TCB, TARGET_ATOMIC_SOFT_IMASK): Add parentheses.
21090 * config/sh/constraints.md (Ara, Add): New constraints.
21091 * config/sh/sync.md (atomic_mem_operand_0, atomic_mem_operand_1): New
21092 predicates.
21093 (atomic_compare_and_swap<mode>, atomic_exchange<mode>): Use
21094 atomic_mem_operand_0. Don't use force_reg on the memory address.
21095 (atomic_compare_and_swapsi_hard): Use atomic_mem_operand_0 predicate and
21096 Sra constraint. Convert to insn_and_split. Add workaround for
21097 PR 64974.
21098 (atomic_compare_and_swap<mode>_hard): Copy to
21099 atomic_compare_and_swap<mode>_hard_1. Convert to insn_and_split.
21100 Use atomic_mem_operand_0 predicate.
21101 (atomic_compare_and_swap<mode>_soft_gusa,
21102 atomic_exchange<mode>_soft_gusa): Use atomic_mem_operand_0 predicate and
21103 AraAdd constraints.
21104 (atomic_compare_and_swap<mode>_soft_tcb,
21105 atomic_compare_and_swap<mode>_soft_imask,
21106 atomic_exchange<mode>_soft_tcb, atomic_exchange<mode>_soft_imask): Use
21107 atomic_mem_operand_0 predicate and SraSdd constraints.
21108 (atomic_exchangesi_hard) Use atomic_mem_operand_0 predicate and Sra
21109 constraint.
21110 (atomic_exchange<mode>_hard): Copy to atomic_exchange<mode>_hard_1.
21111 Convert to insn_and_split. Use atomic_mem_operand_0 predicate.
21112 (atomic_fetch_<fetchop_name><mode>, atomic_fetch_nand<mode>,
21113 atomic_<fetchop_name>_fetch<mode>): Use atomic_mem_operand_1. Don't use
21114 force_reg on the memory address.
21115 (atomic_fetch_<fetchop_name>si_hard, atomic_fetch_notsi_hard,
21116 atomic_fetch_nandsi_hard, atomic_<fetchop_name>_fetchsi_hard,
21117 atomic_not_fetchsi_hard, atomic_nand_fetchsi_hard): Use
21118 atomic_mem_operand_1 predicate and Sra constraint.
21119 (atomic_fetch_<fetchop_name><mode>_hard): Copy to
21120 atomic_fetch_<fetchop_name><mode>_hard_1. Convert to insn_and_split.
21121 Use atomic_mem_operand_1 predicate.
21122 (atomic_<fetchop_name><mode>_hard): Copy to
21123 atomic_<fetchop_name><mode>_hard_1. Convert to insn_and_split.
21124 Use atomic_mem_operand_1 predicate.
21125 (atomic_fetch_nand<mode>_hard): Copy to atomic_fetch_nand<mode>_hard_1.
21126 Convert to insn_and_split. Use atomic_mem_operand_1 predicate.
21127 (atomic_nand<mode>_hard): Copy to atomic_nand<mode>_hard_1. Convert to
21128 insn_and_split. Use atomic_mem_operand_1 predicate.
21129 (atomic_<fetchop_name>_fetch<mode>_hard): Copy to
21130 atomic_<fetchop_name>_fetch<mode>_hard_1. Convert to insn_and_split.
21131 Use atomic_mem_operand_1 predicate.
21132 (atomic_nand_fetch<mode>_hard): Copy to atomic_nand_fetch<mode>_hard_1.
21133 Convert to insn_and_split. Use atomic_mem_operand_1 predicate.
21134 (atomic_fetch_not<mode>_hard, atomic_not_fetch<mode>_hard): Replace mems
21135 in generated insn with original mem operand before emitting the insn.
21136 (atomic_fetch_<fetchop_name><mode>_soft_gusa,
21137 atomic_fetch_not<mode>_soft_gusa, atomic_fetch_nand<mode>_soft_gusa,
21138 atomic_<fetchop_name>_fetch<mode>_soft_gusa,
21139 atomic_not_fetch<mode>_soft_gusa, atomic_nand_fetch<mode>_soft_gusa):
21140 Use atomic_mem_operand_1 predicate and AraAdd constraints.
21141 (atomic_fetch_<fetchop_name><mode>_soft_tcb,
21142 atomic_<fetchop_name><mode>_soft_tcb, atomic_fetch_not<mode>_soft_tcb,
21143 atomic_not<mode>_soft_tcb, atomic_fetch_<fetchop_name><mode>_soft_imask,
21144 atomic_fetch_not<mode>_soft_imask, atomic_fetch_nand<mode>_soft_tcb,
21145 atomic_nand<mode>_soft_tcb, atomic_fetch_nand<mode>_soft_imask,
21146 atomic_<fetchop_name>_fetch<mode>_soft_tcb,
21147 atomic_not_fetch<mode>_soft_tcb,
21148 atomic_<fetchop_name>_fetch<mode>_soft_imask,
21149 atomic_not_fetch<mode>_soft_imask, atomic_nand_fetch<mode>,
21150 atomic_nand_fetch<mode>_soft_tcb, atomic_nand_fetch<mode>_soft_imask):
21151 Use atomic_mem_operand_1 predicate and SraSdd constraints.
21152
21153 2015-02-10 Uros Bizjak <ubizjak@gmail.com>
21154
21155 * config/alpha/alpha.md (reload_out<mode>_aligned): Make operands 2
21156 and 3 earlyclobber operands.
21157
21158 2015-02-10 Jan Hubicka <hubicka@ucw.cz>
21159
21160 * common.opt (fstack-reuse): Mark as optimization.
21161
21162 2015-02-10 Jan Hubicka <hubicka@ucw.cz>
21163
21164 PR ipa/64982
21165 * cgraphunit.c (cgraph_node::expand_thunk): Look for stdarg thunks.
21166
21167 2015-02-10 Trevor Saunders <tsaunders@mozilla.com>
21168
21169 PR tree-optimization/64326
21170 * cfghooks.c (make_forwarder_block): Cap frequency of created block.
21171
21172 2015-02-10 Rainer Emrich <rainer@emrich-ebersheim.de>
21173
21174 PR gcov-profile/61889
21175 * gcov-tool.c: Remove wrong #if !defined(_WIN32)
21176
21177 2015-02-10 Richard Biener <rguenther@suse.de>
21178
21179 PR tree-optimization/64995
21180 * tree-ssa-sccvn.c (set_ssa_val_to): Assert that the
21181 value we use is final.
21182 (visit_reference_op_store): Always valueize op.
21183 (visit_use): Properly valueize vuses.
21184
21185 2015-02-10 Richard Biener <rguenther@suse.de>
21186
21187 PR tree-optimization/64909
21188 * tree-vect-loop.c (vect_estimate_min_profitable_iters): Properly
21189 pass a scalar-stmt count estimate to the cost model.
21190 * tree-vect-data-refs.c (vect_peeling_hash_get_lowest_cost): Likewise.
21191
21192 2015-02-10 Alexander Monakov <amonakov@ispras.ru>
21193
21194 * doc/invoke.texi (-fvar-tracking-assignments): Clarify that VTA is
21195 enabled by default together with var-tracking.
21196
21197 2015-02-10 Nick Clifton <nickc@redhat.com>
21198
21199 * config/rl78/rl78.c: Remove DIV attribute code accidentally
21200 included in previous rl78 commit.
21201
21202 2015-02-10 Richard Biener <rguenther@suse.de>
21203
21204 * tree-streamer.h (streamer_read_tree_bitfields): Adjust.
21205 * tree-streamer-in.c (streamer_read_tree_bitfields): Do not
21206 return the bitpack.
21207
21208 2015-02-09 Trevor Saunders <tsaunders@mozilla.com>
21209
21210 PR gcov-profile/61889
21211 * config.in: regenerate.
21212 * configure.in: Likewise.
21213 * configure.ac: Check for ftw.h.
21214 * gcov-tool.c: Check for ftw.h before using nftw.
21215
21216 2015-02-09 Trevor Saunders <tsaunders@mozilla.com>
21217
21218 PR lto/64076
21219 * ipa-visibility.c (update_visibility_by_resolution_info): Only
21220 assert when not in lto mode.
21221
21222 2015-02-09 Zhouyi Zhou <yizhouzhou@ict.ac.cn>
21223
21224 * ira-color.c (setup_left_conflict_sizes_p): Simplify
21225 initialization/assignment of conflict_size.
21226
21227 2015-02-09 Jan Hubicka <hubicka@ucw.cz>
21228
21229 PR ipa/64978
21230 * ipa-cp.c (gather_caller_stats): Skip thunks.
21231 (propagate_constants_topo): Skip aliases.
21232
21233 2015-02-09 Kaz Kojima <kkojima@gcc.gnu.org>
21234
21235 PR target/64761
21236 * config/sh/sh.c (sh_option_override): Don't change
21237 -freorder-blocks-and-partition to -freorder-blocks even when
21238 unwinding is enabled.
21239 (sh_can_follow_jump): Return false if the followee jump is
21240 a crossing jump when -freorder-blocks-and-partition is specified.
21241 * config/sh/sh.md (*jump_compact_crossing): New insn.
21242
21243 2015-02-09 Joern Rennecke <joern.rennecke@embecosm.com>
21244 Kaz Kojima <kkojima@gcc.gnu.org>
21245
21246 PR target/64761
21247 * config/sh/sh-protos.h (sh_can_redirect_branch): Don't declare.
21248 * config/sh/sh.c (TARGET_CAN_FOLLOW_JUMP): Redefine.
21249 (sh_can_redirect_branch): Rename to ...
21250 (sh_can_follow_jump): ... this. Constify argument types.
21251 * config/sh/sh.h (MD_CAN_REDIRECT_BRANCH): Don't define.
21252 * doc/tm.texi.in (MD_CAN_REDIRECT_BRANCH): Remove documentation.
21253 * reorg.c (steal_delay_list_from_target): Use targetm.can_follow_jump.
21254 * doc/tm.texi: Regenerate.
21255
21256 2015-02-09 Jakub Jelinek <jakub@redhat.com>
21257
21258 PR sanitizer/64981
21259 * builtins.c (expand_builtin): Call targetm.expand_builtin
21260 for BUILT_IN_MD builtins regardless of asan_intercepted_p.
21261
21262 2015-02-08 Jan Hubicka <hubicka@ucw.cz>
21263
21264 PR ipa/61548
21265 * tree-emutls.c (ipa_lower_emutls): Avoid duplicates in TLS_VARS.
21266
21267 2015-02-08 Jan Hubicka <hubicka@ucw.cz>
21268
21269 PR ipa/63566
21270 * ipa-icf.c (set_local): New function.
21271 (sem_function::merge): Use it.
21272
21273 2015-02-08 Jan Hubicka <hubicka@ucw.cz>
21274
21275 * ipa-devirt.c (odr_types_equivalent_p): Fix formating.
21276 (add_type_duplicate): Fix comparison of BINFOs.
21277
21278 2015-02-08 Jan Hubicka <hubicka@ucw.cz>
21279
21280 * ipa-polymorphic-call.c (ipa_polymorphic_call_context): Avoid ICE
21281 on getting VOID pointer.
21282
21283 2015-02-09 Jakub Jelinek <jakub@redhat.com>
21284
21285 PR target/64979
21286 * tree-stdarg.c (pass_stdarg::execute): Scan phi node args for
21287 va_list escapes.
21288
21289 2015-02-09 Richard Biener <rguenther@suse.de>
21290
21291 * genmatch.c (replace_id): Copy expr_type.
21292
21293 2015-02-09 Richard Biener <rguenther@suse.de>
21294
21295 * tree-streamer.h (streamer_pack_tree_bitfields): Remove.
21296 (streamer_write_tree_bitfields): Declare.
21297 * tree-streamer-in.c (unpack_ts_base_value_fields): Inline,
21298 properly unpack padding.
21299 (unpack_value_fields): Inline ...
21300 (streamer_read_tree_bitfields): ... here.
21301 * tree-streamer-out.c (pack_ts_base_value_fields): Inline
21302 and properly add padding bits.
21303 (streamer_pack_tree_bitfields): Fold into ...
21304 (streamer_write_tree_bitfields): ... this new function,
21305 exposing the bitpack object.
21306 * lto-streamer-out.c (lto_write_tree_1): Call
21307 streamer_write_tree_bitfields.
21308
21309 2015-02-09 Richard Biener <rguenther@suse.de>
21310
21311 PR tree-optimization/54000
21312 * tree-ssa-looo-ivopts.c: Include tree-vectorizer.h.
21313 (struct ivopts_data): Add loop_loc member.
21314 (tree_ssa_iv_optimize_loop): Dump loop location.
21315 (create_new_ivs): Likewise, also dump number of IVs generated.
21316
21317 2015-02-09 Martin Liska <mliska@suse.cz>
21318
21319 * ipa-icf.c (sem_item_optimizer::register_hooks): Register hooks
21320 just if not yet registered.
21321 (ipa_icf_generate_summary): Register callgraph hooks.
21322
21323 2015-02-08 Andrew Pinski <apinski@cavium.com>
21324
21325 * config/aarch64/aarch64.c (gty_dummy): Delete.
21326
21327 2015-02-08 Jan Hubicka <hubicka@ucw.cz>
21328
21329 PR ipa/63566
21330 * ipa-visibility.c (cgraph_node::non_local_p): Accept aliases.
21331 (cgraph_node::local_p): Remove thunk related FIXME.
21332
21333 2015-02-08 Jan Hubicka <hubicka@ucw.cz>
21334
21335 PR ipa/63566
21336 * i386.c (ix86_function_regparm): Look through aliases to see if callee
21337 is local and optimized.
21338 (ix86_function_sseregparm): Likewise; also use target's SSE math
21339 settings; error out instead of silently generating wrong code
21340 on mismatches.
21341 (init_cumulative_args): Look through aliases.
21342
21343 2015-02-08 Jan Hubicka <hubicka@ucw.cz>
21344
21345 PR ipa/63566
21346 * ipa-split.c (execute_split_functions): Split if function has aliases.
21347
21348 2015-02-08 Jan Hubicka <hubicka@ucw.cz>
21349
21350 PR ipa/63566
21351 * cgraphunit.c (cgraph_node::analyze): Be sure target of thunk is
21352 aliases before trying to expand it.
21353 (cgraph_node::expand_thunk): Fix formating.
21354
21355 2015-02-07 Sandra Loosemore <sandra@codesourcery.com>
21356
21357 * doc/extend.texi (Function Attributes [naked]): Copy-edit.
21358 (Using Assembly Language with C): Expand introduction.
21359 (Basic Asm): Copy-edit. Add more information about uses of
21360 basic asm.
21361 (Extended Asm): Copy-edit. Document new escape syntax and
21362 %l[label] syntax.
21363 (Global Reg Vars): Copy-edit.
21364 (Local Reg Vars): Likewise.
21365
21366 2015-02-06 David Edelsohn <dje.gcc@gmail.com>
21367
21368 PR debug/2714
21369 PR bootstrap/64256
21370 * xcoffout.h (DBX_CONTIN_LENGTH): Define as 16384.
21371 (DBX_CONTIN_CHAR): Define.
21372
21373 2015-02-06 Sebastian Pop <s.pop@samsung.com>
21374 Brian Rzycki <b.rzycki@samsung.com>
21375
21376 PR tree-optimization/64878
21377 * tree-ssa-threadedge.c: Include tree-ssa-loop.h.
21378 (fsm_find_control_statement_thread_paths): Add parameter seen_loop_phi.
21379 Stop recursion at loop phi nodes after having visited a loop phi node.
21380
21381 2015-02-06 Jakub Jelinek <jakub@redhat.com>
21382
21383 * toplev.c (process_options): Change flag_ipa_ra before creating
21384 optimization_{default,current}_node.
21385
21386 PR ipa/64896
21387 * cgraphunit.c (cgraph_node::expand_thunk): If
21388 restype is not is_gimple_reg_type nor the thunk_fndecl
21389 returns aggregate_value_p, set restmp to a temporary variable
21390 instead of resdecl.
21391
21392 2015-02-06 Vladimir Makarov <vmakarov@redhat.com>
21393
21394 * lra.c (lra_emit_add): Fix a typo in using disp instead of base.
21395
21396 2015-02-06 Michael Meissner <meissner@linux.vnet.ibm.com>
21397
21398 PR target/64205
21399 * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Do not
21400 add a general secondary reload handler for SDmode, unless we have
21401 both read/write support for SDmode.
21402
21403 2015-02-06 Jakub Jelinek <jakub@redhat.com>
21404
21405 PR middle-end/64937
21406 * dwarf2out.c (set_block_abstract_flags, set_decl_abstract_flags):
21407 Replace setting argument with abstract_vec, always set BLOCK_ABSTRACT
21408 or DECL_ABSTRACT_P flags to 1 rather than to setting, and if it wasn't
21409 1 before, push it to abstract_vec.
21410 (dwarf2out_abstract_function): Adjust caller. Don't call
21411 set_decl_abstract_flags second time, instead clear BLOCK_ABSTRACT or
21412 DECL_ABSTRACT_P flags for all abstract_vec elts.
21413
21414 2015-02-06 Renlin Li <renlin.li@arm.com>
21415
21416 * tree-ssa-forwprop.c (execute): Keep location info while rewrite
21417 complex gimple.
21418 * tree-ssa.c (execute_update_addresses_taken): Likewise.
21419
21420 2015-02-06 Jeff Law <law@redhat.com>
21421
21422 PR target/64889
21423 * config/h8300/h8300.c (push): New argument "in_prologue".
21424 Pass "in_prologue" along to "F".
21425 (h8300_push_pop): Corresponding changes.
21426 (h8300_expand_prologue): Likewise.
21427 (h8300_swap_into_er6): Likewise. Do not set RTX_FRAME_RELATED_P.
21428
21429 2015-02-06 Jakub Jelinek <jakub@redhat.com>
21430
21431 PR rtl-optimization/64957
21432 PR debug/64817
21433 * simplify-rtx.c (simplify_binary_operation_1): Use ~cval for
21434 IOR rather than for AND.
21435
21436 2015-02-06 Eric Botcazou <ebotcazou@adacore.com>
21437
21438 PR target/62631
21439 * tree-ssa-loop-ivopts.c (get_shiftadd_cost): Use the mininum of costs
21440 of shift-add and (add + shift) operations. Rename local variable.
21441
21442 2015-02-05 Jeff Law <law@redhat.com>
21443
21444 PR target/17306
21445 * config/h8300/constraints.md (U): Correctly dectect
21446 "eightbit_data" memory addresses.
21447 * config/h8300/h8300.c (eightbit_constant_address_p): Also
21448 handle (const (plus (symbol_ref (x)))) where x is declared
21449 as an 8-bit data memory address.
21450 * config/h8300/h8300.md (call, call_value): Correctly detect
21451 "funcvec" functions.
21452
21453 PR target/43264
21454 * config/h8300/h8300.c (get_shift_alg): Fix ASHIFTRT by
21455 24 to 28 bits for the H8/300.
21456
21457 2015-02-06 Alan Modra <amodra@gmail.com>
21458
21459 PR target/64876
21460 * config/rs6000/rs6000.c (chain_already_loaded): New function.
21461 (rs6000_call_aix): Use it.
21462
21463 2015-02-05 Jan Hubicka <hubicka@ucw.cz>
21464
21465 * ipa-cp.c (ipa_value_from_jfunc, ipa_context_from_jfunc): Add bounds
21466 check.
21467
21468 2015-02-05 Joern Rennecke <joern.rennecke@embecosm.com>
21469
21470 * config/h8300/constraints.md ("U" constraint): Use strict
21471 variant of REG_OK_FOR_BASE_P after reload has started.
21472
21473 2015-02-04 Mantas Mikaitis <mantas.mikaitis@arm.com>
21474
21475 * config/arm/arm.h (TARGET_NEON_FP): Removed conditional definition,
21476 define to zero if !TARGET_NEON.
21477 (TARGET_ARM_FP): Added !TARGET_SOFT_FLOAT into conditional definition.
21478
21479 2015-02-04 Jan Hubicka <hubicka@ucw.cz>
21480 Trevor Saunders <tsaunders@mozilla.com>
21481
21482 PR ipa/61548
21483 * tree-emultls.c (new_emutls_decl): Resolve alias after creating it.
21484
21485 2015-02-04 Jan Hubicka <hubicka@ucw.cz>
21486
21487 PR ipa/61548
21488 * ipa.c (symbol_table::remove_unreachable_nodes): Fix ordering issue
21489 when removing varpool nodes.
21490
21491 2015-02-04 Jan Hubicka <hubicka@ucw.cz>
21492
21493 PR ipa/61548
21494 * varpool.c (varpool_node::remove): Fix order of variables.
21495
21496 2015-02-04 Jan Hubicka <hubicka@ucw.cz>
21497
21498 PR ipa/64686
21499 * ipa-inline.c (inline_small_functions): Fix ordering issue between
21500 speculation resolution and key updates.
21501
21502 2015-02-04 Jan Hubicka <hubicka@ucw.cz>
21503
21504 * ipa-prop.c (update_indirect_edges_after_inlining): By more careful
21505 about not letting any speculative edges unupdated.
21506
21507 2015-02-04 Jan Hubicka <hubicka@ucw.cz>
21508
21509 PR gcov/64123
21510 * gcov-io.c (gcov_var): Export.
21511
21512 2015-02-04 Jan Hubicka <hubicka@ucw.cz>
21513
21514 PR middle-end/64922
21515 * ipa-prop.c (update_indirect_edges_after_inlining): Correctly update
21516 edges that become speculative.
21517
21518 2015-02-04 Jakub Jelinek <jakub@redhat.com>
21519
21520 * dwarf2out.c (is_fortran): Also return true for DW_LANG_Fortran03
21521 or DW_LANG_Fortran08.
21522 (lower_bound_default): Return 1 for DW_LANG_Fortran03 or
21523 DW_LANG_Fortran08.
21524 (gen_compile_unit_die): Handle "GNU Fortran2003" and
21525 "GNU Fortran2008" language strings.
21526 * dbxout.c (get_lang_number): Use lang_GNU_Fortran.
21527 * langhooks.h (lang_GNU_Fortran): New prototype.
21528 * langhooks.c (lang_GNU_Fortran): New function.
21529 * config/rs6000/rs6000.c (rs6000_output_function_epilogue): Use
21530 lang_GNU_Fortran.
21531
21532 2015-02-04 Eric Botcazou <ebotcazou@adacore.com>
21533
21534 * config/sparc/sparc.c (RTX_OK_FOR_OFFSET_P): Fix off-by-one error.
21535 (RTX_OK_FOR_OLO10_P): Likewise.
21536
21537 2015-02-04 Eric Botcazou <ebotcazou@adacore.com>
21538
21539 * tree-ssa-loop-ivopts.c (get_address_cost): Use right mode for offset.
21540
21541 2015-02-04 Jan Hubicka <hubicka@ucw.cz>
21542
21543 PR middle-end/64922
21544 * gimple.c: Include gimple-ssa.h.
21545 (maybe_remove_unused_call_args): New function.
21546 * gimple.h (maybe_remove_unused_call_args): Declare.
21547 * cgraph.c (cgraph_edge::redirect_call_stmt_to_callee): Use it.
21548 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children): Likewise.
21549 * gimple-fold.c (gimple_fold_call): Likewise.
21550
21551 2015-02-04 H.J. Lu <hongjiu.lu@intel.com>
21552
21553 PR rtl-optimization/64905
21554 * lra-eliminations.c (setup_can_eliminate): Clear hard frame
21555 pointer alignment if it isn't needed.
21556
21557 2015-02-04 Matthew Wahab <matthew.wahab@arm.com>
21558
21559 * config/aarch64/aarch64-cores.def: Add cortex-a72 and
21560 cortex-a72.cortex-a53.
21561 * config/aarch64/aarch64-tune.md: Regenerate.
21562 * doc/invoke.texi (AArch64 Options/-mtune): Add "cortex-a72".
21563
21564 2015-02-04 Nick Clifton <nickc@redhat.com>
21565
21566 * config/rl78/rl78.c (rl78_note_reg_set): Note the use of REGs
21567 inside a MEM.
21568
21569 2015-02-04 Jakub Jelinek <jakub@redhat.com>
21570
21571 * builtins.def (DEF_BUILTIN_CHKP): Define if not defined.
21572 (DEF_LIB_BUILTIN_CHKP, DEF_EXT_LIB_BUILTIN_CHKP): Redefine.
21573 (DEF_CHKP_BUILTIN): Define using DEF_BUILTIN_CHKP instead
21574 of DEF_BUILTIN.
21575 (BUILT_IN_MEMCPY, BUILT_IN_MEMMOVE, BUILT_IN_MEMSET, BUILT_IN_STRCAT,
21576 BUILT_IN_STRCHR, BUILT_IN_STRCPY, BUILT_IN_STRLEN): Use
21577 DEF_LIB_BUILTIN_CHKP macro instead of DEF_LIB_BUILTIN.
21578 (BUILT_IN_MEMCPY_CHK, BUILT_IN_MEMMOVE_CHK, BUILT_IN_MEMPCPY_CHK,
21579 BUILT_IN_MEMPCPY, BUILT_IN_MEMSET_CHK, BUILT_IN_STPCPY_CHK,
21580 BUILT_IN_STPCPY, BUILT_IN_STRCAT_CHK, BUILT_IN_STRCPY_CHK): Use
21581 DEF_EXT_LIB_BUILTIN_CHKP macro instead of DEF_EXT_LIB_BUILTIN.
21582 * tree-core.h (enum built_in_function): In between
21583 BEGIN_CHKP_BUILTINS and END_CHKP_BUILTINS only define enum values
21584 for builtins that use DEF_BUILTIN_CHKP macro.
21585
21586 2015-02-04 Alexandre Oliva <aoliva@redhat.com>
21587
21588 PR debug/64817
21589 * cfgexpand.c (expand_debug_expr): Compute unsignedp from
21590 operands for tcc_comparison exprs. Fix typos.
21591
21592 PR debug/64817
21593 * simplify-rtx.c (simplify_binary_operation_1): Simplify one
21594 of two XORs that have an intervening AND or IOR.
21595
21596 PR debug/64817
21597 * simplify-rtx.c (simplify_binary_operation_1): Rewrite
21598 simplification of XOR of AND to not allocate new rtx before
21599 committing to a simplification.
21600
21601 2015-02-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
21602
21603 * config/aarch64/aarch64-ldpstp.md: Use std::swap instead of
21604 manual swaps in all peepholes.
21605
21606 2015-02-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
21607
21608 * config/aarch64/aarch64.c (aarch64_evpc_ext): Use std::swap instead
21609 of manual swapping implementation.
21610 (aarch64_expand_vec_perm_const_1): Likewise.
21611
21612 2015-02-04 James Greenhalgh <james.greenhalgh@arm.com>
21613
21614 * config/aarch64/aarch64.c (NAMED_PARAM): Delete it.
21615 (generic_addrcost_table): Remove NAMED_PARAM.
21616 (cortexa57_addrcost_table): Likewise.
21617 (xgene1_addrcost_table): Likewise.
21618 (generic_regmove_table): Likewise.
21619 (cortexa53_regmove_table): Likewise.
21620 (xgene1_regmove_table): Likewise.
21621 (generic_vector_table): Likewise.
21622 (cortexa57_vector_table): Likewise.
21623 (xgene1_vector_table): Likewise.
21624 (generic_tunings): Likewise.
21625 (cortexa53_tunings): Likewise.
21626 (cortexa57_tunings): Likewise.
21627 (xgene1_tunings): Likewise.
21628
21629 2015-02-04 Matthew Wahab <matthew.wahab@arm.com>
21630
21631 * config/arm/arm-cores.def: Add cortex-a72 and
21632 cortex-a72.cortex-a53.
21633 * config/arm/bpabi.h (BE8_LINK_SPEC): Likewise.
21634 * config/arm/t-aprofile (MULTILIB_MATCHES): Likewise.
21635 * config/arm/arm-tune.md: Regenerate.
21636 * config/arm/arm-tables.opt: Add entries for "cortex-a72" and
21637 "cortex-a72.cortex-a53".
21638 * doc/invoke.texi (ARM Options/-mtune): Likewise.
21639
21640 2015-02-04 Nick Clifton <nickc@redhat.com>
21641
21642 PR target/64408
21643 * config/fr30/predicates.md (di_operand): Add SUBREG to the list
21644 of accepted codes.
21645 (nonimmediate_di_operand): Likewise.
21646
21647 * config/msp430/msp430.c (msp430_use_f5_series_hwmult): Add more
21648 prefixes of known F5 using MSP430 MCUs.
21649
21650 2015-02-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
21651
21652 * config/aarch64/aarch64-simd-builtins.def (sqrt): Use BUILTIN_VDQF_DF.
21653 * config/aarch64/arm_neon.h (vsqrt_f64): Use __builtin_aarch64_sqrtdf
21654 instead of __builtin_sqrt.
21655
21656 2015-02-04 Ilya Enkovich <ilya.enkovich@intel.com>
21657
21658 * varasm.c (do_assemble_alias): Follow transparent alias
21659 chain for target.
21660 (default_assemble_visibility): Follow transparent alias
21661 chain for decl name.
21662
21663 2015-02-04 Thomas Preud'homme <thomas.preudhomme@arm.com>
21664
21665 PR middle-end/62103
21666 * tree-ssa-sccvn.c (fully_constant_vn_reference_p): Use TYPE_PRECISION
21667 to compute size of referenced value in the constant case.
21668
21669 2015-02-03 Jakub Jelinek <jakub@redhat.com>
21670
21671 PR rtl-optimization/64756
21672 * cse.c (invalidate_dest): New function.
21673 (cse_insn): Use it. If dest != SET_DEST (sets[i].rtl) and
21674 HASH (SET_DEST (sets[i].rtl), mode) computation sets do_not_record,
21675 invalidate and do not record it.
21676
21677 2015-02-03 Oleg Endo <olegendo@gcc.gnu.org>
21678
21679 PR target/64660
21680 * config/sh/sync.md (atomic_<fetchop_name><mode>_hard,
21681 atomic_not<mode>_hard, atomic_<fetchop_name><mode>_soft_tcb,
21682 atomic_not<mode>_soft_tcb, atomic_nand<mode>_hard,
21683 atomic_nand<mode>_soft_tcb): New insns.
21684 (atomic_fetch_<fetchop_name>si_hard): Convert to insn_and_split.
21685 Split into atomic_<fetchop_name>_fetchsi_hard if operands[0] is unused.
21686 (define_insn "atomic_fetch_notsi_hard): Convert to insn_and_split.
21687 Split into atomic_not_fetchsi_hard if operands[0] is unused.
21688 (atomic_fetch_<fetchop_name><mode>_hard): Convert to insn_and_split.
21689 Split into atomic_<fetchop_name><mode>_hard if operands[0] is unused.
21690 (atomic_fetch_not<mode>_hard): Convert to insn_and_split. Split into
21691 atomic_not<mode>_hard if operands[0] is unused.
21692 (atomic_fetch_<fetchop_name><mode>_soft_gusa): Convert to
21693 insn_and_split. Split into atomic_<fetchop_name>_fetch<mode>_soft_gusa
21694 if operands[0] is unused.
21695 (atomic_fetch_not<mode>_soft_gusa): Convert to insn_and_split. Split
21696 into atomic_not_fetch<mode>_soft_gusa if operands[0] is unused.
21697 (atomic_fetch_<fetchop_name><mode>_soft_tcb): Convert to insn_and_split.
21698 Split into atomic_<fetchop_name><mode>_soft_tcb if operands[0] is
21699 unused.
21700 (atomic_fetch_not<mode>_soft_tcb): Convert to insn_and_split. Split
21701 into atomic_not<mode>_soft_tcb if operands[0] is unused.
21702 (atomic_fetch_<fetchop_name><mode>_soft_imask): Convert to
21703 insn_and_split. Split into atomic_<fetchop_name>_fetch<mode>_soft_imask
21704 if operands[0] is unused.
21705 (atomic_fetch_not<mode>_soft_imask): Convert to insn_and_split. Split
21706 into atomic_not_fetch<mode>_soft_imask is operands[0] is unused.
21707 (atomic_fetch_nandsi_hard): Convert to insn_and_split. Split into
21708 atomic_nand_fetchsi_hard if operands[0] is unused.
21709 (atomic_fetch_nand<mode>_hard): Convert to insn_and_split. Split into
21710 atomic_nand<mode>_hard if operands[0] is unused.
21711 (atomic_fetch_nand<mode>_soft_gusa): Convert to insn_and_split. Split
21712 into atomic_nand_fetch<mode>_soft_gusa if operands[0] is unused.
21713 (atomic_fetch_nand<mode>_soft_tcb): Convert to insn_and_split. Split
21714 into atomic_nand<mode>_soft_tcb if operands[0] is unused.
21715 (atomic_fetch_nand<mode>_soft_imask): Convert to insn_and_split. Split
21716 into atomic_nand_fetch<mode>_soft_imask if operands[0] is unused.
21717 (atomic_<fetchop_name>_fetch<mode>_hard): Convert to insn_and_split.
21718 Split into atomic_<fetchop_name><mode>_hard if operands[0] is unused.
21719 (atomic_not_fetch<mode>_hard): Convert to insn_and_split. Split into
21720 atomic_not<mode>_hard if operands[0] is unused.
21721 (atomic_<fetchop_name>_fetch<mode>_soft_tcb): Convert to insn_and_split.
21722 Split into atomic_<fetchop_name><mode>_soft_tcb if operands[0] is
21723 unused.
21724 (atomic_not_fetch<mode>_soft_tcb): Convert to insn_and_split. Split
21725 into atomic_not<mode>_soft_tcb if operands[0] is unused.
21726 (atomic_nand_fetch<mode>_hard): Convert to insn_and_split. Split into
21727 atomic_nand<mode>_hard if operands[0] is unused.
21728 (atomic_nand_fetch<mode>_soft_tcb): Convert to insn_and_split. Split
21729 into atomic_nand<mode>_soft_tcb if operands[0] is unused.
21730
21731 2015-02-03 David Malcolm <dmalcolm@redhat.com>
21732
21733 PR jit/64810
21734 * Makefile.in (GCC_OBJS): Add gcc-main.o.
21735 * gcc-main.c: New file, containing "main" taken from gcc.c.
21736 * gcc.c (do_self_spec): Free decoded_options.
21737 (class driver): Move declaration to gcc.h.
21738 (main): Move declaration and implementation to new file
21739 gcc-main.c.
21740 (driver_get_configure_time_options): New function.
21741 * gcc.h (class driver): Move this declaration here, from
21742 gcc.c.
21743 (driver_get_configure_time_options): New declaration.
21744
21745 2015-02-03 Jan Hubicka <hubicka@ucw.cz>
21746
21747 * ipa-inline-analysis.c (simple_edge_hints): Fix check for
21748 cross-module inlining.
21749 * cgraph.h (cgraph_node): Add flag merged.
21750 * ipa-icf.c (sem_function::merge): Maintain it.
21751
21752 2015-02-03 Richard Sandiford <richard.sandiford@arm.com>
21753
21754 * config/arm/arm.c (thumb2_reorg): Test UNARY_P and BINARY_P
21755 instead of OBJECT_P.
21756
21757 2015-02-03 Eric Botcazou <ebotcazou@adacore.com>
21758
21759 PR target/62631
21760 * config/sparc/sparc.h (TARGET_HARD_MUL): Remove TARGET_V8PLUS.
21761 (TARGET_HARD_MUL32): Rewrite based on TARGET_HARD_MUL.
21762 * config/sparc/sparc.c (sparc_rtx_costs) <MULT>: Return costs based on
21763 int_mulX for integers in 64-bit mode if TARGET_HARD_MUL is not set.
21764
21765 2015-02-03 Jakub Jelinek <jakub@redhat.com>
21766
21767 PR other/63504
21768 * combine.c (reg_n_sets_max): New variable.
21769 (can_change_dest_mode, reg_nonzero_bits_for_combine,
21770 reg_num_sign_bit_copies_for_combine, get_last_value_validate,
21771 get_last_value): Use REG_N_SETS only on pseudos < reg_n_sets_max.
21772 (try_combine): Use INC_REG_N_SETS only on pseudos < reg_n_sets_max.
21773 (rest_of_handle_combine): Initialize reg_n_sets_max.
21774
21775 2015-02-02 Jan Hubicka <hubicka@ucw.cz>
21776
21777 * ipa-inline.c (early_inliner): Skip inlining only in always_inlined;
21778 if some always_inline was inlined, apply changes before inlining
21779 heuristically.
21780
21781 2015-02-02 David Malcolm <dmalcolm@redhat.com>
21782
21783 PR jit/64810
21784 * config/arm/arm.c (arm_option_override): Set
21785 arm_selected_arch/cpu/tune to NULL on entry.
21786
21787 2015-02-02 Tejas Belagod <tejas.belagod@arm.com>
21788 Andrew Pinski <pinskia@gcc.gnu.org>
21789 Jakub Jelinek <jakub@gcc.gnu.org>
21790
21791 PR target/64231
21792 * config/aarch64/aarch64.c (aarch64_classify_symbol): Fix large
21793 integer typing for small model. Use IN_RANGE.
21794
21795 2015-02-02 Richard Biener <rguenther@suse.de>
21796
21797 * tree-ssa-ccp.c (valueize_op_1): Always allow valueizing default-defs.
21798 * tree-vrp.c (vrp_valueize_1): Likewise.
21799
21800 2015-02-02 Alan Modra <amodra@gmail.com>
21801
21802 * config/rs6000/rs6000.c (rs6000_call_aix): Use unspec rather
21803 than mem for toc_restore.
21804 * config/rs6000/rs6000.md (UNSPEC_TOCSLOT): Define.
21805 (call_indirect_aix, call_value_indirect_aix): Adjust to suit.
21806 (call_indirect_elfv2, call_value_indirect_elfv2): Likewise.
21807
21808 2015-02-01 David Edelsohn <dje.gcc@gmail.com>
21809
21810 PR target/64047
21811 * config/rs6000/rs6000.c (rs6000_set_current_function): Handle
21812 explicit default options.
21813
21814 2015-02-01 Jan Hubicka <hubicka@ucw.cz>
21815
21816 PR ipa/64872
21817 * ipa-utils.c (ipa_merge_profiles): Add release argument.
21818 * ipa-icf.c (sem_function::merge): Do not release body when merging.
21819 * ipa-utils.h (ipa_merge_profiles): Update prototype.
21820
21821 2015-02-01 Jakub Jelinek <jakub@redhat.com>
21822
21823 PR debug/64817
21824 * cfgexpand.c (deep_ter_debug_map): New variable.
21825 (avoid_deep_ter_for_debug): New function.
21826 (expand_debug_expr): If TERed SSA_NAME is in
21827 deep_ter_debug_map, use the corresponding DEBUG_EXPR_DECL
21828 instead of trying to expand SSA_NAME's def stmt.
21829 (expand_debug_locations): When expanding debug bind
21830 of a DEBUG_EXPR_DECL to corresponding SSA_NAME,
21831 temporarily remove the DEBUG_EXPR_DECL from deep_ter_debug_map's
21832 value.
21833 (pass_expand::execute): Call avoid_deep_ter_for_debug on
21834 all debug bind stmts. Delete deep_ter_debug_map after
21835 expand_debug_location if non-NULL and clear it.
21836
21837 2015-02-01 Oleg Endo <olegendo@gcc.gnu.org>
21838
21839 PR target/64851
21840 * config/sh/sync.md (atomic_fetch_notsi_hard,
21841 atomic_fetch_not<mode>_hard, atomic_fetch_not<mode>_soft_gusa,
21842 atomic_fetch_not<mode>_soft_tcb, atomic_fetch_not<mode>_soft_imask,
21843 atomic_not_fetchsi_hard, atomic_not_fetch<mode>_hard,
21844 atomic_not_fetch<mode>_soft_gusa, atomic_not_fetch<mode>_soft_tcb,
21845 atomic_not_fetch<mode>_soft_imask): New insns.
21846
21847 2015-02-01 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
21848
21849 * haifa-sched.c (INSN_RFS_DEBUG_ORIG_ORDER): New access macro.
21850 (rank_for_schedule_debug): Split from ...
21851 (rank_for_schedule): ... this.
21852 (ready_sort): Sort DEBUG_INSNs separately from normal INSNs.
21853 * sched-int.h (struct _haifa_insn_data): New field rfs_debug_orig_order.
21854
21855 2015-01-31 Sandra Loosemore <sandra@codesourcery.com>
21856
21857 * doc/md.texi (Machine Constraints): Alphabetize table by target.
21858 * doc/extend.texi (x86 Variable Attributes): Move section to
21859 correct alphabetization after renaming.
21860 (x86 Type Attributes): Likewise.
21861 (Target Builtins): Re-alphabetize menu.
21862 (x86 Built-in Functions): Move section to correct alphabetization
21863 after renaming.
21864 (x86 transactional memory intrinsics): Likewise.
21865 * doc/invoke.texi (Option Summary): Re-alphabetize x86 Options
21866 and x86 Windows Options in table and menu.
21867 (x86 Options): Move section to correct alphabetization after
21868 renaming.
21869 (x86 Windows Options): Likewise.
21870
21871 2015-01-31 Sandra Loosemore <sandra@codesourcery.com>
21872
21873 * doc/extend.texi: Use "x86", "x86-32", and "x86-64" as the
21874 preferred names of the architecture and its 32- and 64-bit
21875 variants.
21876 * doc/invoke.texi: Likewise.
21877 * doc/md.texi: Likewise.
21878
21879 2015-01-31 Uros Bizjak <ubizjak@gmail.com>
21880
21881 PR target/64882
21882 * config/i386/predicates.md (address_no_seg_operand): Reject
21883 non-CONST_INT_P operands in invalid mode.
21884
21885 2015-01-31 Uros Bizjak <ubizjak@gmail.com>
21886
21887 * config/i386/i386.md (*prefetch_prefetchw1): Remove mode of
21888 address_operand 0. Rename from *prefetch_prefetchwt1_<mode>.
21889 * config/i386/predicates.md (address_no_seg_operand): Call
21890 address_operand with VOIDmode.
21891 (vsib_address_operand): Ditto.
21892 (address_mpx_no_base_operand): Ditto.
21893 (address_mpx_no_index_operand): Ditto.
21894
21895 2015-01-30 Vladimir Makarov <vmakarov@redhat.com>
21896
21897 PR target/64688
21898 * lra-constraints.c (original_subreg_reg_mode): New.
21899 (simplify_operand_subreg): Try to simplify subreg of const. Use
21900 original_subreg_reg_mode for it.
21901 (swap_operands): Update original_subreg_reg_mode.
21902 (curr_insn_transform): Set up original_subreg_reg_mode.
21903
21904 2015-01-30 Vladimir Makarov <vmakarov@redhat.com>
21905
21906 PR target/64617
21907 * lra-constraints.c (prohibited_class_reg_set_mode_p): New
21908 function.
21909 (process_alt_operands): Use it.
21910 (curr_insn_transform): Check the optional reload pseudo class is
21911 ok for the mode.
21912
21913 2015-01-30 Joseph Myers <joseph@codesourcery.com>
21914
21915 * diagnostic.c (fatal_error (const char *, ...)): Remove function.
21916 * diagnostic-core.h (fatal_error (const char *, ...)): Remove
21917 prototype.
21918 * toplev.h (init_asm_output): Update comment on use of
21919 UNKNOWN_LOCATION with fatal_error.
21920 * cgraph.c, collect-utils.c, collect2.c, config/arc/arc.c,
21921 config/arc/arc.md, config/avr/avr.c, config/c6x/c6x.h,
21922 config/darwin.c, config/host-darwin.c, config/i386/host-cygwin.c,
21923 config/i386/intelmic-mkoffload.c, config/nios2/nios2.c,
21924 config/nvptx/mkoffload.c, config/nvptx/nvptx.h,
21925 config/rs6000/host-darwin.c, config/rs6000/rs6000.c,
21926 config/s390/s390.c, gcc.c, gcov-io.h, gcov-tool.c, ggc-common.c,
21927 ggc-page.c, graph.c, ipa-inline-analysis.c, ipa-reference.c,
21928 lto-cgraph.c, lto-section-in.c, lto-streamer-in.c, lto-streamer.c,
21929 lto-wrapper.c, objc/objc-act.c, opts.c, passes.c, plugin.c,
21930 tlink.c, toplev.c, tree-streamer-in.c, varpool.c: All callers of
21931 fatal_error changed to pass input_location as first argument.
21932
21933 2015-01-30 Martin Liska <mliska@suse.cz>
21934
21935 * tree.h: Change GCC_VERSION >= 4004 to GCC_VERSION >= 4006
21936 in #pragma GCC diagnostic guards.
21937
21938 2015-01-30 Richard Biener <rguenther@suse.de>
21939
21940 PR tree-optimization/64829
21941 * tree-vect-patterns.c (vect_handle_widen_op_by_const): Do
21942 not add a widening conversion pattern but hand off extra
21943 widenings to callers.
21944 (vect_recog_widen_mult_pattern): Handle extra widening produced
21945 by vect_handle_widen_op_by_const.
21946 (vect_recog_widen_shift_pattern): Likewise.
21947 (vect_pattern_recog_1): Remove excess vertical space in dumping.
21948 * tree-vect-stmts.c (vect_mark_stmts_to_be_vectorized): Likewise.
21949 (vect_init_vector_1): Likewise.
21950 (vect_get_vec_def_for_operand): Likewise.
21951 (vect_finish_stmt_generation): Likewise.
21952 (vectorizable_load): Likewise.
21953 (vect_analyze_stmt): Likewise.
21954 (vect_is_simple_use): Likewise.
21955
21956 2015-01-29 Jeff Law <law@redhat.com>
21957
21958 * combine.c (try_combine): Fix typo in comment.
21959
21960 2015-01-29 Segher Boessenkool <segher@kernel.crashing.org>
21961
21962 PR target/64580
21963 * config.rs6000/rs6000.c (compute_vrsave_mask): Reverse loop order.
21964 (rs6000_stack_info): Add assert.
21965 (rs6000_output_savres_externs): New function, split off from...
21966 (rs6000_output_function_prologue): ... here. Do not call it for
21967 thunks.
21968
21969 2015-01-29 Jeff Law <law@redhat.com>
21970
21971 PR target/15184
21972 * combine.c (try_combine): If I0 is a memory load and I3 a store
21973 to a related address, increase the "goodness" of doing a 4-insn
21974 combination with I0-I3.
21975 (make_field_assignment): Handle SUBREGs in the ior+and case.
21976
21977 2015-01-29 Yuri Rumyantsev <ysrumyan@gmail.com>
21978
21979 PR tree-optimization/64746
21980 * tree-if-conv.c (mask_exists): New function.
21981 (predicate_mem_writes): Save created mask with given size for further
21982 use.
21983 (stmt_is_root_of_bool_pattern): Remove argument VAR and store to it.
21984 (ifcvt_repair_bool_pattern): Collect all statements that are root
21985 of bool pattern and use iterative algorithm to remove multiple uses
21986 of predicates, display number of required iterations.
21987
21988 2015-01-29 Richard Biener <rguenther@suse.de>
21989
21990 PR tree-optimization/64853
21991 * tree-vrp.c (vrp_valueize_1): Do not return anything if the
21992 stmt will get simulated again.
21993 * tree-ssa-ccp.c (valueize_op_1): Likewise.
21994
21995 2015-01-29 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
21996
21997 * config/arm/arm.c (arm_emit_multi_reg_pop): Simplify definition of
21998 return_in_pc. Remove redundant assignments.
21999 (thumb2_emit_ldrd_pop): Simplify definition of return_in_pc.
22000 (arm_expand_epilogue): Don't compare boolean with true in if condition.
22001
22002 2015-01-29 Uros Bizjak <ubizjak@gmail.com>
22003
22004 * config/i386/i386.c (ix86_mode_after): Make static.
22005
22006 2015-01-29 Richard Biener <rguenther@suse.de>
22007
22008 PR tree-optimization/64844
22009 * tree-vect-loop.c (vect_estimate_min_profitable_iters): Always
22010 dump cost model analysis.
22011 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment):
22012 Do not register adjusted load/store costs here.
22013
22014 2015-01-29 Ilya Enkovich <ilya.enkovich@intel.com>
22015 Uros Bizjak <ubizjak@gmail.com>
22016
22017 * config/i386/i386-protos.h (ix86_use_pseudo_pic_reg): New.
22018 * config/i386/i386.h (PIC_OFFSET_TABLE_REGNUM): Simplify by
22019 using x86_use_pseudo_pic_reg.
22020 * config/i386/i386.c (ix86_conditional_register_usage): Remove
22021 support for fixed PIC register.
22022 (ix86_use_pseudo_pic_reg): Not static any more.
22023
22024 2015-01-29 Ilya Enkovich <ilya.enkovich@intel.com>
22025
22026 PR middle-end/64805
22027 * ipa-inline.c (early_inliner): Rebuild IPA_REF_CHKP reference
22028 to avoid error in cgraph node verification.
22029
22030 2015-01-29 Marek Polacek <polacek@redhat.com>
22031
22032 * doc/standards.texi: Reflect that the default for C is gnu11.
22033
22034 2015-01-29 Kaz Kojima <kkojima@gcc.gnu.org>
22035
22036 PR target/64761
22037 * reorg.c (switch_text_sections_between_p): New function.
22038 (relax_delay_slots): Call it when testing if the jump insn
22039 is removable. Use targetm.can_follow_jump when testing if
22040 the conditional branch can follow an unconditional jump.
22041
22042 2015-01-27 Caroline Tice <cmtice@google.com>
22043
22044 Committing VTV Cywin/Ming patch for Patrick Wollgast
22045 * config/i386/cygwin.h (STARTFILE_SPEC): Add vtv_start.o,
22046 if -fvtable-verify=preinit/std is used.
22047 * config/i386/mingw-w64.h (STARTFILE_SPEC): Likewise.
22048 * config/i386/mingw32.h (STARTFILE_SPEC): Likewise.
22049 * config/i386/cygwin.h (ENDFILE_SPEC): Add vtv_end.o,
22050 if -fvtable-verify=preinit/std is used.
22051 * config/i386/mingw32.h (ENDFILE_SPEC): Likewise.
22052 * config/i386/cygwin.h (LIB_SPEC): Pass -lvtv and -lpsapi,
22053 if -fvtable-verify=preinit/std is used.
22054 * config/i386/mingw-w64.h (LIB_SPEC): Likewise.
22055 * config/i386/mingw32.h (LIB_SPEC): Likewise.
22056 * varasm.c (assemble_variable): Add code to properly set the comdat
22057 section and name for the .vtable_map_vars section in case the
22058 target is PE or COFF.
22059
22060 2015-01-29 Jan Hubicka <hubicka@ucw.cz>
22061
22062 PR ipa/64801
22063 * cgraphunit.c (init_lowered_empty_function): Add CoUNT parameter;
22064 make sane BB profile.
22065 (cgraph_node::expand_thunk): Make sane BB profile.
22066 (cgraph_node::create_wrapper): Do not set call_stmt_cannot_inline_p.
22067 * cgraph.h (init_lowered_empty_function): Update prototype.
22068 * config/i386/i386.c (make_resolver_func): Update call.
22069 * predict.c (gate): Disable branch prediction pass if
22070 profile is already there.
22071
22072 2015-01-29 Jan Hubicka <hubicka@ucw.cz>
22073
22074 * optc-save-gen.awk: flag_fp_contract_mode is no longer speical.
22075 * opth-gen.awk: Likewise.
22076 * common.opt: Mark flag_fp_contract_mode as Optimization.
22077
22078 2015-01-29 Bernd Edlinger <bernd.edlinger@hotmail.de>
22079
22080 * config/i386/cygwin.h (LIBGCJ_SONAME): Set libgcj version to -16.
22081 * config/i386/mingw32.h (LIBGCJ_SONAME): Set libgcj version to -16.
22082
22083 2015-01-28 Oleg Endo <olegendo@gcc.gnu.org>
22084
22085 PR target/64659
22086 * config/sh/predicates.md (atomic_arith_operand,
22087 atomic_logical_operand): Remove.
22088 * config/sh/sync.md (fetchop_predicate, fetchop_constraint): Remove.
22089 (atomic_arith_operand_0): New predicate.
22090 (atomic_compare_and_swap<mode>): Use arith_reg_dest for output values.
22091 Use atomic_arith_operand_0 for input values.
22092 (atomic_compare_and_swapsi_hard, atomic_compare_and_swap<mode>_hard,
22093 atomic_compare_and_swap<mode>_soft_gusa,
22094 atomic_compare_and_swap<mode>_soft_tcb,
22095 atomic_compare_and_swap<mode>_soft_imask): Use arith_reg_dest and
22096 arith_reg_operand instead of register_operand.
22097 (atomic_exchange<mode>): Use arith_reg_dest for output value. Use
22098 atomic_arith_operand_0 for newval input.
22099 (atomic_exchangesi_hard, atomic_exchange<mode>_hard,
22100 atomic_exchange<mode>_soft_gusa, atomic_exchange<mode>_soft_tcb,
22101 atomic_exchange<mode>_soft_imask): Use arith_reg_dest and
22102 arith_reg_operand instead of register_operand.
22103 (atomic_arith_operand_1, atomic_logical_operand_1): New predicates.
22104 fetchop_predicate_1, fetchop_constraint_1_llcs,
22105 fetchop_constraint_1_gusa, fetchop_constraint_1_tcb,
22106 fetchop_constraint_1_imask): New code iterator attributes.
22107 (atomic_fetch_<fetchop_name><mode>): Use arith_reg_dest instead of
22108 register_operand. Use fetchop_predicate_1.
22109 (atomic_fetch_<fetchop_name>si_hard,
22110 atomic_fetch_<fetchop_name><mode>_hard): Use arith_reg_dest instead of
22111 register_operand. Use fetchop_predicate_1, fetchop_constraint_1_llcs.
22112 (atomic_fetch_<fetchop_name><mode>_soft_gusa): Use arith_reg_dest
22113 and arith_reg_operand instead of register_operand. Use
22114 fetchop_predicate_1, fetchop_constraint_1_gusa.
22115 (atomic_fetch_<fetchop_name><mode>_soft_tcb): Use arith_reg_dest
22116 and arith_reg_operand instead of register_operand. Use
22117 fetchop_predicate_1, fetchop_constraint_1_tcb. Adjust asm sequence
22118 to allow R0 usage.
22119 (atomic_fetch_<fetchop_name><mode>_soft_imask): Use arith_reg_dest
22120 and arith_reg_operand instead of register_operand. Use
22121 fetchop_predicate_1, fetchop_constraint_1_imask. Adjust asm sequence
22122 to allow R0 usage.
22123 (atomic_fetch_nand<mode>): Use arith_reg_dest instead of
22124 register_operand. Use atomic_logical_operand_1.
22125 (atomic_fetch_nandsi_hard, atomic_fetch_nand<mode>_hard,
22126 atomic_fetch_nand<mode>_soft_gusa): Use arith_reg_dest and
22127 arith_reg_operand instead of register_operand.
22128 (atomic_fetch_nand<mode>_soft_tcb, atomic_fetch_nand<mode>_soft_imask):
22129 Use arith_reg_dest and arith_reg_operand instead of register_operand.
22130 Use logical_operand and rK08. Adjust asm sequence to allow R0 usage.
22131 (atomic_<fetchop_name>_fetch<mode>): Use arith_reg_dest instead of
22132 register_operand. Use fetchop_predicate_1.
22133 (atomic_<fetchop_name>_fetchsi_hard,
22134 atomic_<fetchop_name>_fetch<mode>_hard): Use arith_reg_dest and
22135 arith_reg_operand instead of register_operand. Use fetchop_predicate_1,
22136 fetchop_constraint_1_llcs.
22137 (atomic_<fetchop_name>_fetch<mode>_soft_gusa): Use arith_reg_dest and
22138 arith_reg_operand instead of register_operand. Use fetchop_predicate_1,
22139 fetchop_constraint_1_gusa.
22140 (atomic_<fetchop_name>_fetch<mode>_soft_tcb): Use arith_reg_dest and
22141 arith_reg_operand instead of register_operand. Use fetchop_predicate_1,
22142 fetchop_constraint_1_tcb. Adjust asm sequence to allow R0 usage.
22143 (atomic_<fetchop_name>_fetch<mode>_soft_imask): Use arith_reg_dest and
22144 arith_reg_operand instead of register_operand. Use fetchop_predicate_1,
22145 fetchop_constraint_1_imask. Adjust asm sequence to allow R0 usage.
22146 (atomic_nand_fetch<mode>): Use arith_reg_dest instead of
22147 register_operand. Use atomic_logical_operand_1.
22148 (atomic_nand_fetchsi_hard, atomic_nand_fetch<mode>_hard,
22149 atomic_nand_fetch<mode>_soft_gusa): Use arith_reg_dest and
22150 arith_reg_operand instead of register_operand.
22151 (atomic_nand_fetch<mode>_soft_tcb): Use arith_reg_dest and
22152 arith_reg_operand instead of register_operand. Use logical_operand
22153 and K08. Adjust asm sequence to allow R0 usage.
22154 (atomic_nand_fetch<mode>_soft_imask): Use arith_reg_dest and
22155 arith_reg_operand instead of register_operand. Use logical_operand
22156 and K08.
22157
22158 2015-01-28 Jakub Jelinek <jakub@redhat.com>
22159
22160 PR other/63504
22161 * dwarf2out.c (add_AT_wide, mem_loc_descriptor, loc_descriptor):
22162 Use ggc_alloc<wide_int> instead of ggc_cleared_alloc<wide_int>.
22163 (attr_checksum, attr_checksum_ordered, hash_loc_operands): Checksum
22164 only get_full_len HOST_WIDE_INTs from get_val () array rather than
22165 all bits in *val_wide.
22166
22167 2015-01-28 Jan Hubicka <hubicka@ucw.cz>
22168
22169 * varpool.c (tls_model_names): Fix names.
22170 (varpool_node::dump): Dump tls- prefix for tls models.
22171
22172 2015-01-28 Thomas Schwinge <thomas@codesourcery.com>
22173 Bernd Schmidt <bernds@codesourcery.com>
22174 Nathan Sidwell <nathan@codesourcery.com>
22175
22176 * config/nvptx/mkoffload.c: New file.
22177 * config/nvptx/t-nvptx: Add build rules for it.
22178 * config.gcc <nvptx-*> [$enable_as_accelerator = yes]
22179 (extra_programs): Add mkoffload.
22180 * config/nvptx/nvptx.c (nvptx_record_offload_symbol): New
22181 function.
22182 (TARGET_RECORD_OFFLOAD_SYMBOL): Define macro to use it.
22183
22184 2015-01-28 Yuri Rumyantsev <ysrumyan@gmail.com>
22185
22186 PR middle-end/64809
22187 * cfgexpand.c (reorder_operands): Skip debug gimples.
22188
22189 2015-01-28 Ilya Enkovich <ilya.enkovich@intel.com>
22190
22191 PR tree-optimization/64277
22192 * tree-ssa-loop-niter.c (record_nonwrapping_iv): Use base
22193 range info when possible to refine estimation.
22194
22195 2015-01-28 Thomas Preud'homme <thomas.preudhomme@arm.com>
22196
22197 PR tree-optimization/64718
22198 * tree-ssa-math-opts.c (pass_optimize_bswap::execute): Make bswap_type
22199 be a 16bit unsigned integer when n->range is 16.
22200 (bswap_replace): Convert src to that type if necessary for all bswap
22201 sizes. Fix rotation right notation in nearby comment. Use bswap_type
22202 set in pass_optimize_bswap::execute ().
22203
22204 2015-01-28 James Greenhalgh <james.greenhalgh@arm.com>
22205
22206 * config/aarch64/aarch64-simd.md (aarch64_abs<mode>): New.
22207 * config/aarch64/aarch64-simd-builtins.def (abs): Split by
22208 integer and floating point variants.
22209 * config/aarch64/iterators.md (unspec): Add UNSPEC_ABS.
22210
22211 2015-01-28 Robert Suchanek <robert.suchanek@imgtec.com>
22212
22213 * config/mips/mips.c (mips_hard_regno_mode_ok_p): Prohibit accumulators
22214 for all vector modes.
22215
22216 2015-01-28 Jakub Jelinek <jakub@redhat.com>
22217
22218 PR bootstrap/64612
22219 * doc/sourcebuild.texi (comdat_group): Document.
22220
22221 2015-01-28 Terry Guo <terry.guo@arm.com>
22222
22223 * config/arm/thumb1.md (*thumb1_movpc_insn): New insn pattern.
22224
22225 2015-01-27 David Malcolm <dmalcolm@redhat.com>
22226
22227 * toplev.c (print_version): Add param "show_global_state", and
22228 only print GGC and plugin information if it is true.
22229 (init_asm_output): Pass in "true" for the new param when calling
22230 print_version.
22231 (process_options): Likewise.
22232 (toplev::main): Likewise.
22233 * toplev.h (print_version): Add new param to decl.
22234
22235 2015-01-27 Jan Hubicka <hubicka@ucw.cz>
22236
22237 PR ipa/60871
22238 PR ipa/64139
22239 * tree.c (lookup_binfo_at_offset): New function.
22240 (get_binfo_at_offset): Use it.
22241
22242 2015-01-27 Jan Hubicka <hubicka@ucw.cz>
22243
22244 PR ipa/64282
22245 * gimple-fold.c (gimple_get_virt_method_for_vtable): Remove assert
22246 on vtable being vtable.
22247
22248 2015-01-27 Dominik Vogt <vogt@linux.vnet.ibm.com>
22249
22250 * doc/extend.texi: s/390: Update documentation of hotpatch attribute.
22251 * doc/invoke.texi (-mhotpatch): s/390: Update documentation of
22252 -mhotpatch= option.
22253 * config/s390/s390.opt (mhotpatch): s/390: Remove -mhotpatch and
22254 -mno-hotpatch options. Change syntax of -mhotpatch= option.
22255 * config/s390/s390.c (s390_hotpatch_trampoline_halfwords_default):
22256 Renamed.
22257 (s390_hotpatch_trampoline_halfwords_max): Renamed.
22258 (s390_hotpatch_hw_max): New name.
22259 (s390_hotpatch_trampoline_halfwords): Renamed.
22260 (s390_hotpatch_hw_before_label): New name.
22261 (get_hotpatch_attribute): Removed.
22262 (s390_hotpatch_hw_after_label): New name.
22263 (s390_handle_hotpatch_attribute): Add second parameter to hotpatch
22264 attribute.
22265 (s390_attribute_table): Ditto.
22266 (s390_function_num_hotpatch_trampoline_halfwords): Renamed.
22267 (s390_function_num_hotpatch_hw): New name.
22268 Remove special handling of inline functions and hotpatching.
22269 Return number of nops before and after the function label.
22270 (s390_can_inline_p): Removed.
22271 (s390_asm_output_function_label): Emit a configurable number of nops
22272 after the function label.
22273 (s390_option_override): Update -mhotpatch= syntax and remove -mhotpatch.
22274 (TARGET_CAN_INLINE_P) Removed.
22275 (TARGET_FUNCTION_ATTRIBUTE_INLINABLE_P): New.
22276
22277 2015-01-27 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
22278 Jiong Wang <jiong.wang@arm.com>
22279
22280 * config/aarch64/aarch64.md (tb<optab><mode>1): Clobber CC reg instead
22281 of scratch reg.
22282 (cb<optab><mode>1): Likewise.
22283 * config/aarch64/iterators.md (bcond): New define_code_attr.
22284
22285 2015-01-27 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
22286
22287 * config/s390/s390.c (s390_memory_move_cost): Increase costs for
22288 memory accesses.
22289
22290 2015-01-27 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
22291
22292 * config/s390/s390.c (s390_register_move_cost): Increase costs for
22293 FPR->GPR moves.
22294
22295 2015-01-27 Richard Biener <rguenther@suse.de>
22296
22297 * tree-vrp.c (update_value_range): Intersect the range with
22298 old recorded SSA name range information.
22299
22300 2015-01-27 Nick Clifton <nickc@redhat.com>
22301
22302 * config/rl78/rl78.c (rl78_expand_prologue): In G10 mode push the
22303 BC, DE and HL registers directly, not via AX.
22304 When decrementing the stack pointer by a large amount, transfer SP
22305 into AX and perform the subtraction there.
22306 (rl78_expand_epilogue): Perform the inverse of the above
22307 enhancements.
22308
22309 2015-01-27 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
22310
22311 * config/i386/sysv4.h (CRT_GET_RFIB_DATA): Remove.
22312
22313 2015-01-27 Jakub Jelinek <jakub@redhat.com>
22314 Yury Gribov <y.gribov@samsung.com>
22315
22316 PR ubsan/64741
22317 * ubsan.c (ubsan_source_location): Refactor code.
22318 (ubsan_type_descriptor): Update type size. Refactor code.
22319
22320 2015-01-27 Richard Biener <rguenther@suse.de>
22321
22322 PR tree-optimization/56273
22323 PR tree-optimization/59124
22324 PR tree-optimization/64277
22325 * tree-vrp.c (vrp_finalize): Emit array-bound warnings only
22326 from the first VRP pass.
22327
22328 2015-01-27 Jakub Jelinek <jakub@redhat.com>
22329
22330 PR ipa/64776
22331 * cgraphunit.c (cgraph_node::expand_thunk): If not this_adjusting,
22332 handle the first argument in the same loop as all the other arguments.
22333
22334 PR rtl-optimization/61058
22335 * jump.c (cleanup_barriers): Update basic block boundaries
22336 if BLOCK_FOR_INSN is non-NULL on PREV.
22337
22338 2015-01-27 Ilya Enkovich <ilya.enkovich@intel.com>
22339
22340 * tree-chkp.c (chkp_call_returns_bounds_p): Fix handling of
22341 bounds narrowing, already instrumented calls and calls to
22342 not instrumentable functions.
22343
22344 2015-01-27 Jakub Jelinek <jakub@redhat.com>
22345
22346 PR tree-optimization/64807
22347 * wide-int.cc (wi::divmod_internal): Clear
22348 b_dividend[dividend_blocks_needed].
22349
22350 2015-01-26 DJ Delorie <dj@redhat.com>
22351
22352 * config/rl78/rl78.c (move_elim_pass): Don't optimize away
22353 volatile memory references.
22354
22355 2015-01-26 Oleg Endo <olegendo@gcc.gnu.org>
22356
22357 PR target/49263
22358 * config/sh/sh.c (sh_split_treg_set_expr): Invoke emit_insn before
22359 remove_insn.
22360 * config/sh/sh.md (tstsi_t): Don't try to optimize constant with right
22361 shifts if it already fits into K08.
22362
22363 2015-01-26 Jakub Jelinek <jakub@redhat.com>
22364
22365 PR ipa/64730
22366 * ipa-inline.c (inline_small_functions): Print "unknown" even
22367 if edge->call_stmt is non-NULL, but has builtins or unknown
22368 location.
22369
22370 PR middle-end/64421
22371 * omp-low.c (simd_clone_mangle): If DECL_ASSEMBLER_NAME starts
22372 with asterisk, skip the first character.
22373
22374 2015-01-26 H.J. Lu <hongjiu.lu@intel.com>
22375
22376 PR target/64806
22377 * config/i386/i386 (feature_priority): Revert the last P_POPCNT
22378 order change.
22379
22380 2015-01-26 Uros Bizjak <ubizjak@gmail.com>
22381
22382 PR target/64795
22383 * config/i386/i386.md (*movdi_internal): Also check operand 0
22384 to determine TYPE_LEA operand.
22385 (*movsi_internal): Ditto.
22386
22387 2015-01-26 Jakub Jelinek <jakub@redhat.com>
22388
22389 * config/rs6000/rs6000-cpus.def (POWERPC_MASKS): Add
22390 OPTION_MASK_QUAD_MEMORY_ATOMIC.
22391
22392 2015-01-26 Renlin Li <renlin.li@arm.com>
22393
22394 * config/aarch64/aarch64.c (aarch64_load_symref_appropriately): Correct
22395 the comment.
22396 * config/aarch64/aarch64.md (tlsle_small_<mode>): Add left shift 12-bit
22397 for higher part.
22398
22399 2015-01-26 Richard Biener <rguenther@suse.de>
22400
22401 PR middle-end/64764
22402 * tree-ssa-uninit.c (is_pred_expr_subset_of): Handle
22403 combining two BIT_AND_EXPR predicates.
22404
22405 2015-01-26 H.J. Lu <hongjiu.lu@intel.com>
22406
22407 PR bootstrap/64754
22408 * tree-ssa-structalias.c (new_var_info): Initialize ruid.
22409
22410 2015-01-26 Terry Guo <terry.guo@arm.com>
22411
22412 * config/arm/arm.c (arm_file_start): Update the assignment of
22413 Tag_ABI_HardFP_use.
22414
22415 2015-01-25 James Greenhalgh <james.greenhalgh@arm.com>
22416
22417 * config/arm/arm-cores.def (cortex-a57): Use the new Cortex-A57
22418 pipeline model.
22419 config/arm/arm.md: Include the new Cortex-A57 model.
22420 (generic_sched): Don't use generic_sched when tuning for
22421 Cortex-A57.
22422
22423 2015-01-25 Allan Sandfeld Jensen <sandfeld@kde.org>
22424 Uros Bizjak <ubizjak@gmail.com>
22425
22426 * config/i386/i386.c (get_builtin_code_for_version): Add
22427 support for BMI and BMI2 multiversion functions.
22428
22429 2015-01-25 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
22430
22431 * emit-rtl.h (store_bit_field): Move prototype to expmed.h.
22432 (extract_bit_field): Likewise.
22433 (extract_low_bits): Likewise.
22434 (expand_mult): Likewise.
22435 (expand_mult_highpart_adjust): Likewise.
22436
22437 2015-01-24 H.J. Lu <hongjiu.lu@intel.com>
22438
22439 * config/i386/driver-i386.c (host_detect_local_cpu): Check new
22440 Silvermont, Haswell, Broadwell and Knights Landing model numbers.
22441 * config/i386/i386.c (processor_model): Add
22442 M_INTEL_COREI7_BROADWELL.
22443 (arch_names_table): Add "broadwell".
22444
22445 2015-01-24 Oleg Endo <olegendo@gcc.gnu.org>
22446
22447 PR target/49263
22448 PR target/53987
22449 PR target/64345
22450 PR target/59533
22451 PR target/52933
22452 PR target/54236
22453 PR target/51244
22454 * config/sh/sh-protos.h
22455 (sh_extending_set_of_reg::can_use_as_unextended_reg,
22456 sh_extending_set_of_reg::use_as_unextended_reg,
22457 sh_is_nott_insn, sh_movt_set_dest, sh_movrt_set_dest, sh_is_movt_insn,
22458 sh_is_movrt_insn, sh_insn_operands_modified_between_p,
22459 sh_reg_dead_or_unused_after_insn, sh_in_recog_treg_set_expr,
22460 sh_recog_treg_set_expr, sh_split_treg_set_expr): New functions.
22461 (sh_treg_insns): New class.
22462 * config/sh/sh.c (TARGET_LEGITIMATE_COMBINED_INSN): Define target hook.
22463 (scope_counter): New class.
22464 (sh_legitimate_combined_insn, sh_is_nott_insn, sh_movt_set_dest,
22465 sh_movrt_set_dest, sh_reg_dead_or_unused_after_insn,
22466 sh_extending_set_of_reg::can_use_as_unextended_reg,
22467 sh_extending_set_of_reg::use_as_unextended_reg, sh_recog_treg_set_expr,
22468 sh_in_recog_treg_set_expr, sh_try_split_insn_simple,
22469 sh_split_treg_set_expr): New functions.
22470 (addsubcosts): Handle treg_set_expr.
22471 (sh_rtx_costs): Handle IF_THEN_ELSE and ZERO_EXTRACT.
22472 (sh_rtx_costs): Use arith_reg_operand in SIGN_EXTEND and ZERO_EXTEND.
22473 (sh_rtx_costs): Handle additional bit test patterns in EQ and AND cases.
22474 (sh_insn_operands_modified_between_p): Make non-static.
22475 * config/sh/predicates.md (zero_extend_movu_operand): Allow
22476 simple_mem_operand in addition to displacement_mem_operand.
22477 (zero_extend_operand): Don't allow zero_extend_movu_operand.
22478 (treg_set_expr, treg_set_expr_not_const01,
22479 arith_reg_or_treg_set_expr): New predicates.
22480 * config/sh/sh.md (tstsi_t): Use arith_reg_operand and
22481 arith_or_int_operand instead of logical_operand. Convert to
22482 insn_and_split. Try to optimize constant operand in splitter.
22483 (tsthi_t, tstqi_t): Fold into *tst<mode>_t. Convert to insn_and_split.
22484 (*tstqi_t_zero): Delete.
22485 (*tst<mode>_t_subregs): Add !sh_in_recog_treg_set_expr split condition.
22486 (tstsi_t_and_not): Delete.
22487 (tst<mode>_t_zero_extract_eq): Rename to *tst<mode>_t_zero_extract.
22488 Convert to insn_and_split.
22489 (unnamed split, tstsi_t_zero_extract_xor,
22490 tstsi_t_zero_extract_subreg_xor_little,
22491 tstsi_t_zero_extract_subreg_xor_big): Delete.
22492 (*tstsi_t_shift_mask): New insn_and_split.
22493 (cmpeqsi_t, cmpgesi_t): Add new split for const_int 0 operands and try
22494 to recombine with surrounding insns when splitting.
22495 (*negtstsi): Add !sh_in_recog_treg_set_expr condition.
22496 (cmp_div0s_0, cmp_div0s_1, *cmp_div0s_0, *cmp_div0s_1): Rewrite as ...
22497 (cmp_div0s, *cmp_div0s_1, *cmp_div0s_2, *cmp_div0s_3, *cmp_div0s_4,
22498 *cmp_div0s_5, *cmp_div0s_6): ... these new insn_and_split patterns.
22499 (*cbranch_div0s: Delete.
22500 (*addc): Convert to insn_and_split. Use treg_set_expr as 3rd operand.
22501 Try to recombine with surrounding insns when splitting. Add operand
22502 order variants.
22503 (*addc_t_r, *addc_r_t): Use treg_set_expr_not_const01.
22504 (*addc_r_r_1, *addc_r_lsb, *addc_r_r_lsb, *addc_r_lsb_r, *addc_r_msb,
22505 *addc_r_r_msb, *addc_2r_msb): Delete.
22506 (*addc_2r_lsb): Rename to *addc_2r_t. Use treg_set_expr. Add operand
22507 order variant.
22508 (*addc_negreg_t): New insn_and_split.
22509 (*subc): Convert to insn_and_split. Use treg_set_expr as 3rd operand.
22510 Try to recombine with surrounding insns when splitting.
22511 Add operand order variants.
22512 (*subc_negt_reg, *subc_negreg_t, *reg_lsb_t, *reg_msb_t): New
22513 insn_and_split patterns.
22514 (*rotcr): Use arith_reg_or_treg_set_expr. Try to recombine with
22515 surrounding insns when splitting.
22516 (unnamed rotcr split): Use arith_reg_or_treg_set_expr.
22517 (*rotcl): Likewise. Add zero_extract variant.
22518 (*ashrsi2_31): New insn_and_split.
22519 (*negc): Convert to insn_and_split. Use treg_set_expr.
22520 (*zero_extend<mode>si2_disp_mem): Update comment.
22521 (movrt_negc, *movrt_negc, nott): Add !sh_in_recog_treg_set_expr split
22522 condition.
22523 (*mov_t_msb_neg, mov_neg_si_t): Use treg_set_expr. Try to recombine
22524 with surrounding insns when splitting.
22525 (any_treg_expr_to_reg): New insn_and_split.
22526 (*neg_zero_extract_0, *neg_zero_extract_1, *neg_zero_extract_2,
22527 *neg_zero_extract_3, *neg_zero_extract_4, *neg_zero_extract_5,
22528 *neg_zero_extract_6, *zero_extract_0, *zero_extract_1,
22529 *zero_extract_2): New single bit zero extract patterns.
22530 (bld_reg, *bld_regqi): Fold into bld<mode>_reg.
22531 (*get_thread_pointersi, store_gbr, *mov<mode>_gbr_load,
22532 *mov<mode>_gbr_load, *mov<mode>_gbr_load, *mov<mode>_gbr_load,
22533 *movdi_gbr_load): Use arith_reg_dest instead of register_operand for
22534 set destination.
22535 (set_thread_pointersi, load_gbr): Use arith_reg_operand instead of
22536 register_operand for set source.
22537
22538 2015-01-23 Jan Hubicka <hubicka@ucw.cz>
22539
22540 * i386.opt (prefetch_sse): New targetsave.
22541 * i386.c (ix86_function_specific_save): Save prefetch_sse.
22542 (ix86_function_specific_restore): Restore prefetch_sse and initialize
22543 ix86_cost/ix86_tune_cost.
22544
22545 2015-01-23 David Malcolm <dmalcolm@redhat.com>
22546
22547 * config/rs6000/rs6000.c (rs6000_output_function_epilogue):
22548 Support the JIT by using 0 as the language type.
22549
22550 2015-01-23 Vladimir Makarov <vmakarov@redhat.com>
22551
22552 PR target/64317
22553 * lra-lives.c (make_hard_regno_born): Add parameter. Don't make
22554 REAL_PIC_OFFSET_TABLE_REGNUM conflicting with pic offset pseudo.
22555 (mark_regno_live, process_bb_lives): Pass new parameter value to
22556 make_hard_regno_born.
22557
22558 2015-01-23 Jakub Jelinek <jakub@redhat.com>
22559
22560 PR rtl-optimization/63637
22561 PR rtl-optimization/60663
22562 * cse.c (merge_equiv_classes): Set new_elt->cost to MAX_COST
22563 if elt->cost is MAX_COST for ASM_OPERANDS.
22564 (find_sets_in_insn): Fix up comment typo.
22565 (cse_insn): Don't set src_volatile for all non-volatile
22566 ASM_OPERANDS in PARALLELs, but just those with multiple outputs
22567 or with "memory" clobber. Set elt->cost to MAX_COST
22568 for ASM_OPERANDS in PARALLEL. Set src_elt->cost to MAX_COST
22569 if new_src is ASM_OPERANDS and elt->cost is MAX_COST.
22570
22571 2015-01-23 Uros Bizjak <ubizjak@gmail.com>
22572
22573 * config/i386/sse.md (sse2_loadld): Set attribute isa to sse2 for
22574 alternative 1.
22575
22576 2015-01-23 Uros Bizjak <ubizjak@gmail.com>
22577
22578 * config/i386/gnu-user.h (CRT_GET_RFIB_DATA): Move definition to
22579 libgcc/config/i386/elf-lib.h.
22580
22581 2015-01-23 Jakub Jelinek <jakub@redhat.com>
22582
22583 PR driver/64737
22584 * gcc.c (print_configuration): Don't print a blank line at the end
22585 here...
22586 (run_attempt): ... but here unstead.
22587
22588 PR middle-end/64734
22589 * omp-low.c (scan_sharing_clauses): Don't ignore
22590 OMP_CLAUSE_MAP_ZERO_BIAS_ARRAY_SECTION GOMP_MAP_POINTER clauses
22591 on target data/update constructs.
22592
22593 2015-01-23 Bernd Edlinger <bernd.edlinger@hotmail.de>
22594
22595 PR target/50928
22596 * config/m32c/m32c.c (encode_pattern_1): Removed gcc_unreachable here.
22597 (DEBUG_RELOAD): Removed define.
22598 (m32c_limit_reload_class): Enable traces with if DEBUG0.
22599 (m32c_function_arg): Added a type cast.
22600 (m32c_legitimize_reload_address): Push A_REGS reload with PSImode.
22601 * config/m32c/addsub.md (addsi3_1): Specify the mode of all arguments.
22602 * config/m32c/bitops.md (andqi3_16): Likewise.
22603 * config/m32c/mov.md (m32c_immd_dbl_mov): Likewise.
22604 (push_a01_l): Likewise.
22605
22606 2015-01-23 David Malcolm <dmalcolm@redhat.com>
22607
22608 PR jit/64721
22609 * main.c (main): Construct toplev instances with init_signals=true.
22610 * toplev.c (general_init): Add param "init_signals", and use it to
22611 conditionalize the calls to signal and host_hooks.extra_signals.
22612 (toplev::toplev): Add param "init_signals".
22613 (toplev::main): When invoking general_init, pass m_init_signals
22614 to control whether signal-handlers are installed.
22615 * toplev.h (toplev::toplev): Add param "init_signals".
22616 (toplev::m_init_signals): New field.
22617
22618 2015-01-23 David Malcolm <dmalcolm@redhat.com>
22619
22620 PR jit/64722
22621 * emit-rtl.c (init_emit_regs): Set pic_offset_table_rtx to
22622 NULL_RTX before testing PIC_OFFSET_TABLE_REGNUM, since the
22623 latter may be affected by the former (e.g. on i686).
22624
22625 2015-01-23 Martin Liska <mliska@suse.cz>
22626
22627 * tree.h (tree_vec_elt_check): Workaround -Wstrict-overflow
22628 false positive during profiledbootstrap.
22629
22630 2015-01-23 Tom de Vries <tom@codesourcery.com>
22631
22632 PR libgomp/64672
22633 * lto-opts.c (lto_write_options): Output non-explicit conservative
22634 -fno-openacc.
22635 * lto-wrapper.c (merge_and_complain): Handle merging -fopenacc.
22636 (append_compiler_options): Pass -fopenacc through.
22637
22638 2015-01-23 Tom de Vries <tom@codesourcery.com>
22639
22640 PR libgomp/64707
22641 * lto-opts.c (lto_write_options): Output non-explicit conservative
22642 -fno-openmp.
22643 * lto-wrapper.c (merge_and_complain): Handle merging -fopenmp.
22644 (append_compiler_options): Pass -fopenmp through.
22645
22646 2015-01-23 Jakub Jelinek <jakub@redhat.com>
22647
22648 PR debug/64511
22649 * dwarf2out.c (struct dw_loc_descr_node): Add chain_next
22650 GTY markup.
22651
22652 * diagnostic-core.h (internal_error_no_backtrace): New prototype.
22653 * diagnostic.def (DK_ICE_NOBT): New kind.
22654 * diagnostic.c (diagnostic_action_after_output): Handle DK_ICE_NOBT
22655 like DK_ICE, but never print backtrace.
22656 (diagnostic_report_diagnostic): Handle DK_ICE_NOBT like DK_ICE.
22657 (internal_error_no_backtrace): New function.
22658 * gcc.c (execute): Use internal_error_no_backtrace instead of
22659 internal_error.
22660
22661 2015-01-22 Jeff Law <law@redhat.com>
22662
22663 PR target/52076
22664 * config/m68k/m68k.md (xorsi3_internal): Twiddle constraints to
22665 improve code density for small immediate to memory case.
22666 (insv): Better handle bitfield assignments when the field is
22667 being set to all ones.
22668 * config/m68k/predicates.md (reg_or_pow2_m1_operand): New
22669 operand predicate.
22670
22671 2015-01-22 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
22672 Jakub Jelinek <jakub@redhat.com>
22673
22674 PR middle-end/64729
22675 * gcc.c (LINK_SSP_SPEC): Handle -fstack-protector-explicit
22676 for !TARGET_LIBC_PROVIDES_SSP version and
22677 -fstack-protector-{all,strong,explicit} otherwise.
22678 * config/freebsd.h (LINK_SSP_SPEC): Handle
22679 -fstack-protector-{strong,explicit}.
22680
22681 2015-01-22 Jan Hubicka <hubicka@ucw.cz>
22682 H.J. Lu <hongjiu.lu@intel.com>
22683
22684 PR ipa/64694
22685 * ipa-inline.c (inline_small_functions): Fix thinko in maintenance of
22686 heap.
22687
22688 2015-01-22 Wei Mi <wmi@google.com>
22689
22690 PR rtl-optimization/64557
22691 * dse.c (record_store): Call get_addr for mem_addr.
22692 (check_mem_read_rtx): Likewise.
22693
22694 2015-01-22 Eric Botcazou <ebotcazou@adacore.com>
22695
22696 * fold-const.c (const_binop): Add early return for non-tcc_binary.
22697
22698 2015-01-22 Chen Gang <gang.chen.5i5j@gmail.com>
22699
22700 * toplev.c (init_local_tick): Process the failure when read
22701 fails for random_seed.
22702
22703 * ubsan.c (ubsan_type_descriptor): Use 'pretty_print' for
22704 'pretty_name' to avoid memory overflow.
22705
22706 2015-01-22 Richard Biener <rguenther@suse.de>
22707
22708 PR middle-end/64728
22709 * tree-ssa-coalesce.c (coalesce_partitions): Do not perform
22710 abnormal coalescing on undefined SSA names.
22711
22712 2015-22-01 Uros Bizjak <ubizjak@gmail.com>
22713
22714 PR target/64688
22715 PR target/64477
22716 * config/i386/sse.md (vec_set<mode>_0): Use (Yi/r/C) constraints
22717 for alternative 3.
22718 (*vec_dup<mode>): Use (Yi/$r) constraints for alternative 1.
22719
22720 2015-01-22 Trevor Saunders <tsaunders@mozilla.com>
22721
22722 PR middle-end/63325
22723 * fold-const.c (fold_checksum_tree): Don't include value of
22724 expr->decl_with_vis.symtab_node in the checksum.
22725
22726 2015-01-22 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
22727
22728 * config/s390/s390.md (atomic code attribute): Fix typo "ior" -> "or".
22729
22730 2015-01-22 Max Ostapenko <m.ostapenko@partner.samsung.com>
22731
22732 PR driver/64690
22733 * gcc.c (insert_comments): New function.
22734 (try_generate_repro): Call it.
22735 (append_text): Removed.
22736
22737 2015-01-22 Richard Biener <rguenther@suse.de>
22738
22739 * ipa-inline.c (can_inline_edge_p): Disable inlining of edges
22740 with IL incompatible options. Properly honor user optimize
22741 attributes.
22742
22743 2015-01-21 Segher Boessenkool <segher@kernel.crashing.org>
22744
22745 PR rtl-optimization/64682
22746 * combine.c (distribute_notes): When moving a death note for
22747 a register that is set in the new I2, make sure to put it
22748 before that new I2.
22749
22750 2015-01-21 David Edelsohn <dje.gcc@gmail.com>
22751
22752 * config/rs6000/rs6000.c (rs6000_file_start): Use rs6000_isa_flags
22753 not TARGET_DEFAULT.
22754
22755 2015-01-21 Jakub Jelinek <jakub@redhat.com>
22756
22757 PR debug/64511
22758 * simplify-rtx.c (simplify_relational_operation_1): Don't try to
22759 optimize (eq/ne (and (side_effects) (const_int 0)) (const_int 0))
22760 into (eq/ne (and (not (side_effects)) (const_int 0)) (const_int 0)).
22761
22762 PR sanitizer/64706
22763 * doc/invoke.texi (-fsanitize=vptr): Document.
22764
22765 PR rtl-optimization/62078
22766 * dse.c: Include cfgcleanup.h.
22767 (rest_of_handle_dse): For -fnon-call-exceptions, if DSE removed
22768 anything call purge_all_dead_edges and cleanup_cfg at the end
22769 of the pass.
22770
22771 2015-01-21 Jan Hubicka <hubicka@ucw.cz>
22772
22773 * ipa-utils.c (ipa_merge_profiles): Avoid ICE on mismatch in indirect
22774 edges.
22775
22776 2015-01-21 Bernd Edlinger <bernd.edlinger@hotmail.de>
22777
22778 * gimplify.c (gimplify_function_tree): Check the no_sanitize_thread
22779 decl attribute.
22780
22781 2015-01-21 David Sherwood <david.sherwood@arm.com>
22782 Tejas Belagod <Tejas.Belagod@arm.com>
22783
22784 * config/aarch64/aarch64.h (CANNOT_CHANGE_MODE_CLASS): Removed.
22785 * config/aarch64/aarch64.c (aarch64_cannot_change_mode_class): Removed.
22786 * config/aarch64/aarch64-protos.h (aarch64_cannot_change_mode_class):
22787 Removed.
22788
22789 2015-01-21 David Sherwood <david.sherwood@arm.com>
22790 Tejas Belagod <Tejas.Belagod@arm.com>
22791
22792 * config/aarch64/aarch64-protos.h (aarch64_simd_attr_length_rglist)
22793 (aarch64_reverse_mask): New decls.
22794 * config/aarch64/iterators.md (UNSPEC_REV_REGLIST): New enum.
22795 (insn_count): New mode_attr.
22796 * config/aarch64/aarch64-simd.md (vec_store_lanesoi, vec_store_lanesci)
22797 (vec_store_lanesxi, vec_load_lanesoi, vec_load_lanesci)
22798 (vec_load_lanesxi): Made ABI compliant for Big Endian targets.
22799 (aarch64_rev_reglist, aarch64_simd_ld2, aarch64_simd_ld3)
22800 (aarch64_simd_ld4, aarch64_simd_st2, aarch64_simd_st3)
22801 (aarch64_simd_st4): New patterns.
22802 * config/aarch64/aarch64.c (aarch64_simd_attr_length_rglist)
22803 (aarch64_reverse_mask): New functions.
22804
22805 2015-01-21 Richard Sandiford <richard.sandiford@arm.com>
22806
22807 * config/aarch64/aarch64-protos.h (aarch64_simd_disambiguate_copy):
22808 Declare.
22809 * config/aarch64/aarch64.c (aarch64_classify_address): Allow extra
22810 addressing modes for BE.
22811 (aarch64_print_operand): Add 'R' specifier.
22812 (aarch64_simd_disambiguate_copy): Delete.
22813 (aarch64_simd_emit_reg_reg_move): New function.
22814 * config/aarch64/aarch64-simd.md: Use aarch64_simd_emit_reg_reg_move
22815 in define_splits for structural moves.
22816 (mov<mode>): Use less restrictive predicates.
22817 (*aarch64_mov<mode>): Simplify and only allow for LE.
22818 (*aarch64_be_movoi, *aarch64_be_movci, *aarch64_be_movxi): New.
22819
22820 2015-01-21 Alan Hayward <alan.hayward@arm.com>
22821
22822 * rtlanal.c (subreg_get_info): Exit early for simple and common cases.
22823
22824 2015-01-21 Richard Henderson <rth@redhat.com>
22825
22826 PR target/64669
22827 * ccmp.c (used_in_cond_stmt_p): Remove.
22828 (expand_ccmp_expr): Don't use it.
22829
22830 2015-01-21 Nick Clifton <nickc@redhat.com>
22831
22832 * config/rl78/rl78.c (rl78_calculate_death_notes): Look inside
22833 PARALLELs.
22834
22835 2015-01-21 Richard Biener <rguenther@suse.de>
22836
22837 PR middle-end/64313
22838 * tree-core.h (builtin_info, builtin_info_type): Turn from
22839 an object with two arrays into an array of an object with
22840 decl and two flags, implicit_p and declared_p.
22841 * tree.h (builtin_decl_explicit, builtin_decl_implicit,
22842 set_builtin_decl, set_builtin_decl_implicit_p,
22843 builtin_decl_explicit_p, builtin_decl_implicit_p): Adjust.
22844 (set_builtin_decl_declared_p, builtin_decl_declared_p): New functions.
22845 * builtins.c (builtin_info): Adjust.
22846 * gimplify.c (gimplify_addr_expr): References to builtins
22847 that have been declared by the user makes them eligible for
22848 use by the compiler. Call set_builtin_decl_implicit_p on them.
22849
22850 2015-01-20 Jeff Law <law@redhat.com>
22851
22852 PR target/59946
22853 * config/m68k/m68k.md (Comparison expanders and patterns): Do not
22854 allow pc-relative addresses in operand predicates or constraints.
22855
22856 2015-01-21 Bin Cheng <bin.cheng@arm.com>
22857
22858 * config/arm/arm.c (arm_cortex_a53_tune, arm_cortex_a57_tune): Prefer
22859 neon on aarch32 processors for stringops.
22860
22861 2015-01-19 Jan Hubicka <hubicka@ucw.cz>
22862
22863 PR ipa/63576
22864 * ipa-utils.c (ipa_merge_profiles): Merge speculative edges.
22865
22866 2015-01-19 Jan Hubicka <hubicka@ucw.cz>
22867
22868 PR lto/45375
22869 * ipa-inline.c: Include lto-streamer.h
22870 (report_inline_failed_reason): Output source file differences and
22871 flags on optimization/target node mismatch.
22872 (can_inline_edge_p): Consider caller to be the outer inline function;
22873 be less restrictive about matching opimize and optimize_size attributes.
22874 (inline_account_function_p): Break out from ...
22875 (inline_small_functions): ... here.
22876 * ipa-inline-transform.c (clone_inlined_nodes): Use
22877 inline_account_function_p.
22878 (inline_call): Use optimize attribution; use inline_account_function_p.
22879 (inline_transform): Use opt_for_fn.
22880 * ipa-inline.h (inline_account_function_p): Declare.
22881
22882 2015-01-20 Jakub Jelinek <jakub@redhat.com>
22883
22884 PR debug/64663
22885 * dwarf2out.c (decl_piece_node): Don't put bitsize into
22886 mode if bitsize <= 0.
22887 (decl_piece_bitsize, adjust_piece_list, add_var_loc_to_decl,
22888 dw_sra_loc_expr): Use HOST_WIDE_INT instead of int for bit
22889 sizes and positions.
22890
22891 2015-01-20 Chung-Lin Tang <cltang@codesourcery.com>
22892
22893 * config/nios2/nios2.c (nios2_asm_file_end): Implement
22894 TARGET_ASM_FILE_END hook for adding .note.GNU-stack section when
22895 needed.
22896 (TARGET_ASM_FILE_END): Define.
22897
22898 2015-01-20 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
22899
22900 * config/arm/arm-protos.h (enum arm_sched_autopref): New constants.
22901 (struct tune_params): Use the enum.
22902 * arm.c (arm_*_tune): Update.
22903 (arm_option_override): Update.
22904
22905 2015-01-20 Richard Biener <rguenther@suse.de>
22906
22907 PR ipa/64684
22908 * ipa-reference.c (add_static_var): Inline ...
22909 (analyze_function): ... here after splitting out from ...
22910 (is_proper_for_analysis): ... this.
22911
22912 2015-01-20 Matthew Wahab <matthew.wahab@arm.com>
22913
22914 PR target/64149
22915 * config/arm/arm.opt: Remove lra option and arm_lra_flag variablesle.
22916 * config/arm/arm.h (MODE_BASE_REG_CLASS): Remove use of arm_lra_flagag,
22917 replace the conditional with it's true branch.
22918 * config/arm/arm.config (TARGET_LRA_P): Set to hook_bool_void_true.
22919 (arm_lra_p): Remove.
22920
22921 2015-01-20 Eric Botcazou <ebotcazou@adacore.com>
22922
22923 * config/visium/visium.h (LIB_SPEC): Adjust in default case.
22924
22925 2015-01-20 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
22926
22927 * config/tilegx/mul-tables.c: Move symtab.h include after
22928 coretypes.h include.
22929 * config/tilepro/mul-tables.c: Add includes hashtab.h, hash-set.h,
22930 vec.h, machmode.h, tm.h, hard-reg-set.h, input.h, function.h, rtl.h,
22931 flags.h, statistics.h, double-int.h, real.h, fixed-value.h, alias.h,
22932 wide-int.h, inchash.h, tree.h, insn-config.h, expmed.h, dojump.h,
22933 explow.h, calls.h, emit-rtl.h, varasm.h, stmt.h.
22934
22935 2015-01-20 Igor Zamyatin <igor.zamyatin@intel.com>
22936
22937 PR bootstrap/64676
22938 Revert:
22939 2015-01-19 Igor Zamyatin <igor.zamyatin@intel.com>
22940
22941 PR rtl-optimization/64081
22942 * loop-iv.c (def_pred_latch_p): New function.
22943 (latch_dominating_def): Allow specific cases with non-single
22944 definitions.
22945 (iv_get_reaching_def): Likewise.
22946 (check_complex_exit_p): New function.
22947 (check_simple_exit): Use check_complex_exit_p to allow certain cases
22948 with exits not executing on any iteration.
22949
22950 2015-01-19 Jan Hubicka <hubicka@ucw.cz>
22951
22952 PR lto/45375
22953 * i386.c (ix86_option_override_internal): Use ix86_tune_cost
22954 to set branch cost.
22955
22956 2015-01-19 Jan Hubicka <hubicka@ucw.cz>
22957
22958 PR lto/45375
22959 * i386.c (gate): Check flag_expensive_optimizations and
22960 optimize_size.
22961 (ix86_option_override_internal): Drop optimize_size condition
22962 on MASK_ACCUMULATE_OUTGOING_ARGS, MASK_VZEROUPPER,
22963 MASK_AVX256_SPLIT_UNALIGNED_LOAD, MASK_AVX256_SPLIT_UNALIGNED_STORE,
22964 MASK_PREFER_AVX128.
22965 (ix86_avx256_split_vector_move_misalign,
22966 ix86_avx256_split_vector_move_misalign): Check optimize_insn_for_speed.
22967 * sse.md (all uses of TARGET_PREFER_AVX128): Add
22968 optimize_insn_for_speed_p check.
22969
22970 2015-01-19 Matthew Fortune <matthew.fortune@imgtec.com>
22971
22972 * config/mips/mips.h (FP_ASM_SPEC): New define.
22973 (ASM_SPEC): Remove floating-point options and use FP_ASM_SPEC
22974 instead.
22975
22976 2015-01-19 Oleg Endo <olegendo@gcc.gnu.org>
22977
22978 PR target/53988
22979 * config/sh/sh-protos.h (sh_find_set_of_reg): Make sure not to return
22980 nullptr for insn when reaching the first insn.
22981 * config/sh/sh.c (sh_unspec_insn_p): Rewrite using subrtx_iterator.
22982 (sh_insn_operands_modified_between_p): Add nullptr check.
22983 (sh_find_extending_set_of_reg): Fix log message. Don't accept
22984 sign extending mem load if the insn contains any UNSPEC or
22985 UNSPEC_VOLATILE.
22986
22987 2015-01-19 Jan Hubicka <hubicka@ucw.cz>
22988
22989 * params.def (inline-unit-growth): Drop to 15%.
22990 * invoke.texi (inline-unit-growth): Document change.
22991
22992 2015-01-19 Martin Liska <mliska@suse.cz>
22993
22994 PR ipa/64668
22995 * ipa-icf-gimple.c (func_checker::compare_operand): Call proper
22996 function for second argument of OBJ_TYPE_REF.
22997
22998 2015-01-19 Jan Hubicka <hubicka@ucw.cz>
22999
23000 PR ipa/64218
23001 * ipa-inline.c (want_inline_function_to_all_callers_p): Fix check
23002 whether function is an alias.
23003
23004 2015-01-19 Jan Hubicka <hubicka@ucw.cz>
23005
23006 * ipa-devirt.c (ipa_devirt): Drop polymorphic call info in hopeless
23007 cases.
23008
23009 2015-01-19 Vladimir Makarov <vmakarov@redhat.com>
23010
23011 PR rtl-optimization/64671
23012 * lra-remat.c (operand_to_remat): Don't consider jump and call
23013 insns.
23014
23015 2015-01-19 David Edelsohn <dje.gcc@gmail.com>
23016
23017 PR target/59828
23018 * config/rs6000/default64.h: Include rs6000-cpus.def.
23019 (TARGET_DEFAULT) [LITTLE_ENDIAN]: Use ISA 2.7 (POWER8).
23020 (TARGET_DEFAULT) [BIG_ENDIAN]: Use POWER4.
23021 * config/rs6000/driver-rs6000.c (detect_processor_aix): Add POWER7
23022 and POWER8.
23023 * config/rs6000/linux64.h (PROCESSOR_DEFAULT64): Always default to
23024 POWER8.
23025 * config/rs6000/rs6000.c (rs6000_file_start): Emit .machine
23026 pseudo-op to specify assembler dialect.
23027
23028 2015-01-19 Martin Liska <mliska@suse.cz>
23029
23030 PR ipa/64664
23031 * ipa-icf.c (sem_item_optimizer::filter_removed_items):
23032 Handle safe potentially removed nodes during filtering.
23033
23034 2015-01-19 Martin Liska <mliska@suse.cz>
23035
23036 * doc/extend.texi (no_icf): Add new attribute description.
23037 * ipa-icf.c (sem_item_optimizer::merge_classes): Handle cases
23038 where the pass attempts to merge a function with no_icf attribute.
23039
23040 2015-01-19 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
23041
23042 PR target/64532
23043 * doc/md.texi (ARM Options): Document register constraints.
23044
23045 2015-01-19 Jiong Wang <jiong.wang@arm.com>
23046 Andrew Pinski <apinski@cavium.com>
23047
23048 PR target/64304
23049 * config/aarch64/aarch64.md (define_insn "*ashl<mode>3_insn"): Deleted.
23050 (ashl<mode>3): Don't expand if operands[2] is not constant.
23051
23052 2015-01-19 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
23053
23054 PR target/64448
23055 * config/aarch64/aarch64-simd.md (aarch64_simd_bsl<mode>_internal):
23056 Match xor-and-xor RTL pattern.
23057
23058 2015-01-19 Igor Zamyatin <igor.zamyatin@intel.com>
23059
23060 PR rtl-optimization/64081
23061 * loop-iv.c (def_pred_latch_p): New function.
23062 (latch_dominating_def): Allow specific cases with non-single
23063 definitions.
23064 (iv_get_reaching_def): Likewise.
23065 (check_complex_exit_p): New function.
23066 (check_simple_exit): Use check_complex_exit_p to allow certain cases
23067 with exits not executing on any iteration.
23068
23069 2015-01-19 Jakub Jelinek <jakub@redhat.com>
23070
23071 * common.opt (fgraphite): Fix a typo.
23072
23073 2015-01-19 Felix Yang <felix.yang@huawei.com>
23074
23075 * config/aarch64/aarch64-simd.md (aarch64_<maxmin_uns>p<mode>): New
23076 pattern.
23077 * config/aarch64/aarch64-simd-builtins.def (smaxp, sminp, umaxp,
23078 uminp, smax_nanp, smin_nanp): New builtins.
23079 * config/aarch64/arm_neon.h (vpmax_s8, vpmax_s16, vpmax_s32,
23080 vpmax_u8, vpmax_u16, vpmax_u32, vpmaxq_s8, vpmaxq_s16, vpmaxq_s32,
23081 vpmaxq_u8, vpmaxq_u16, vpmaxq_u32, vpmax_f32, vpmaxq_f32, vpmaxq_f64,
23082 vpmaxqd_f64, vpmaxs_f32, vpmaxnm_f32, vpmaxnmq_f32, vpmaxnmq_f64,
23083 vpmaxnmqd_f64, vpmaxnms_f32, vpmin_s8, vpmin_s16, vpmin_s32, vpmin_u8,
23084 vpmin_u16, vpmin_u32, vpminq_s8, vpminq_s16, vpminq_s32, vpminq_u8,
23085 vpminq_u16, vpminq_u32, vpmin_f32, vpminq_f32, vpminq_f64, vpminqd_f64,
23086 vpmins_f32, vpminnm_f32, vpminnmq_f32, vpminnmq_f64, vpminnmqd_f64,
23087 vpminnms_f32): Rewrite using builtin functions.
23088
23089 2015-01-19 Thomas Schwinge <thomas@codesourcery.com>
23090
23091 PR libgomp/64625
23092 * omp-low.c (offload_symbol_decl): Remove variable.
23093 (get_offload_symbol_decl): Remove function.
23094 (expand_omp_target): For BUILT_IN_GOMP_TARGET,
23095 BUILT_IN_GOMP_TARGET_DATA, BUILT_IN_GOMP_TARGET_UPDATE pass NULL
23096 instead of &__OFFLOAD_TABLE__, for BUILT_IN_GOACC_DATA_START,
23097 BUILT_IN_GOACC_ENTER_EXIT_DATA, BUILT_IN_GOACC_PARALLEL,
23098 BUILT_IN_GOACC_UPDATE don't pass it at all.
23099
23100 2015-01-19 Ilya Enkovich <ilya.enkovich@intel.com>
23101
23102 * tree-sra.c (some_callers_have_mismatched_arguments_p): Allow thunk
23103 callers.
23104
23105 2015-01-19 Ilya Enkovich <ilya.enkovich@intel.com>
23106
23107 * ipa-chkp.c (chkp_produce_thunks): Add early param
23108 to split thunks production into two passes. Keep
23109 'always_inline' function bodies after the first pass.
23110 (pass_data_ipa_chkp_early_produce_thunks): New.
23111 (pass_ipa_chkp_early_produce_thunks): New.
23112 (pass_ipa_chkp_produce_thunks::execute): Adjust to new
23113 chkp_produce_thunks signature.
23114 (make_pass_ipa_chkp_early_produce_thunks): New.
23115 * passes.def (pass_ipa_chkp_early_produce_thunks): New.
23116 (pass_ipa_chkp_produce_thunks): Move after local optimizations.
23117 * tree-pass.h (make_pass_ipa_chkp_early_produce_thunks): New.
23118
23119 2015-01-18 Jan Hubicka <hubicka@ucw.cz>
23120
23121 * cgraph.c (cgraph_node::dump): Dump profile flags.
23122
23123 2015-01-18 Oleg Endo <olegendo@gcc.gnu.org>
23124
23125 PR target/64652
23126 * config/sh/sh.md (udivsi3_i4, divsi3_i4): Make use of sfunc address
23127 reg appear first in the parallel.
23128
23129 2015-01-18 Jan Hubicka <hubicka@ucw.cz>
23130
23131 * ipa-reference.c (set_reference_optimization_summary,
23132 ipa_reference_get_not_written_global): Do nothing if ipa-reference is
23133 disabled.
23134 (ignore_module_statics): New static var.
23135 (propagate_bits): If ipa-reference is disabled, do not look into local
23136 properties.
23137 (analyze_function): Disable analysis when ipa_reference is disabled.
23138 (generate_summary): Do not dump when reference is disabled;
23139 collect vars accessed from functions with ipa-reference disabled.
23140 (get_read_write_all_from_node): When ipa-reference is disabled, use the
23141 node flags.
23142 (gate): Enable for LTO.
23143 (ignore_edge_p): New function.
23144 (propagate): Skip functions w/o ipa-reference analysis.
23145 * optc-save-gen.awk: Handle optimize_debug correctly.
23146 * opth-gen.awk: Likewise.
23147 * common.opt (fauto-inc-dec, fdelete-dead-exceptions, ffunction-cse,
23148 fgraphite, fstrict-volatile-bitfields, fira-algorithm, fira-region,
23149 fira-share-save-slots, fira-share-spill-slots,
23150 fmodulo-sched-allow-regmoves, fpartial-inlining,
23151 sched-stalled-insns, fsched-stalled-insns-dep, fstrict-overflow,
23152 ftracer, ftree-parallelize-loops, fassociative-math,
23153 freciprocal-math, fvect-cost-model, fsimd-cost-model): Mark as
23154 Optimization
23155 (fauto-profile, fcommon, fdata-sections, fipa-icf-variables,
23156 ftoplevel-reorder, funit-at-a-time, fwhole-program): Do not mark as
23157 Optimization.
23158 * ipa-icf.c (gate, sem_item_optimizer::filter_removed_items):
23159 Fix for IPA.
23160
23161 2015-01-18 Jan Hubicka <hubicka@ucw.cz>
23162
23163 PR ipa/64378
23164 * ipa-prop.c (try_make_edge_direct_virtual_call): Clear speculative
23165 flag correctly.
23166 * ipa-cp.c (ipa_get_indirect_edge_target_1): Handle speculation.
23167
23168 2015-01-18 Sandra Loosemore <sandra@codesourcery.com>
23169
23170 * doc/invoke.texi ([-funroll-loops], [-funroll-all-loops]):
23171 Remove duplicate option listings.
23172
23173 2015-01-18 Felix Yang <felix.yang@huawei.com>
23174
23175 * auto-profile.c (afdo_find_equiv_class): Remove unnecessary test.
23176 (autofdo_source_profile::get_callsite_total_count,
23177 function_instance::get_function_instance_by_decl,
23178 string_table::get_index, string_table::get_index_by_decl,
23179 afdo_vpt_for_early_inline, afdo_callsite_hot_enough_for_early_inline):
23180 Fix comment typos. Reformatting and minor code rearrangement.
23181
23182 2015-01-17 Segher Boessenkool <segher@kernel.crashing.org>
23183
23184 * config/rs6000/rs6000.md (probe_stack): Delete.
23185 (probe_stack_address): New.
23186
23187 2015-01-17 Segher Boessenkool <segher@kernel.crashing.org>
23188
23189 * config/rs6000/rs6000.c (rs6000_gimplify_va_arg): Use TARGET_32BIT
23190 to test for 32-bit ABIs, not !TARGET_POWERPC64.
23191
23192 2015-01-17 Segher Boessenkool <segher@kernel.crashing.org>
23193
23194 * config/rs6000/rs6000.c (rs6000_parallel_return): New function.
23195 (rs6000_function_value): Use it. Handle SCmode and TCmode as well,
23196 for TARGET_32BIT && TARGET_POWERPC64. Fix another BITS_PER_WORD
23197 snafu.
23198 (rs6000_libcall_value): Use the new function.
23199
23200 2015-01-17 Sandra Loosemore <sandra@codesourcery.com>
23201
23202 * doc/invoke.texi ([-ftracer]): Remove duplicate option listing.
23203
23204 2015-01-17 Eric Botcazou <ebotcazou@adacore.com>
23205
23206 * reorg.c (fill_simple_delay_slots): If TARGET_FLAGS_REGNUM is valid,
23207 implement a more precise life analysis for it during backward scan.
23208
23209 2015-01-17 Jan Kratochvil <jan.kratochvil@redhat.com>
23210
23211 * dwarf2out.c (gen_producer_string): Ignore also OPT_fpreprocessed.
23212
23213 2015-01-17 Bernd Schmidt <bernds@codesourcery.com>
23214
23215 PR rtl-optimization/52773
23216 * calls.c (emit_library_call_value): When pushing arguments use
23217 stack_pointer_rtx rather than virtual_outgoing_args_rtx in
23218 CALL_INSN_FUNCTION_USAGE. Only emit one of use of the magic
23219 stack pointer reference into CALL_INSN_FUNCTION_USAGE.
23220
23221 2015-01-17 Jeff Law <law@redhat.com>
23222
23223 PR rtl-optimization/32790
23224 * reginfo.c (reg_scan_mark_refs): Look for ZERO_EXTRACT,
23225 not ZERO_EXTEND in SET_DESTs.
23226
23227 2015-01-17 Alan Modra <amodra@gmail.com>
23228
23229 * cprop.c (do_local_cprop): Revert last change.
23230
23231 2015-01-16 DJ Delorie <dj@redhat.com>
23232 Nick Clifton <nickc@redhat.com>
23233
23234 * config/rl78/rl78-real.md (addqi3_real): Allow volatiles.
23235 (addhi3_real): Likewise. Fix [HL+0] syntax.
23236 (subqi3_real): Likewise.
23237 (subhi3_real): Likewise.
23238 (cbranchqi4_real): Likewise. Allow saddr,#imm.
23239 (cbranchhi4_real): Likewise.
23240 (cbranchhi4_real_inverted): Likewise.
23241 (cbranchsi4_real_lt): Likewise.
23242 (cbranchsi4_real_ge): Likewise.
23243 (cbranchsi4_real_ge): Likewise.
23244 * config/rl78/rl78-virt.md (add<mode>3_virt): Likewise.
23245 (sub<mode>3_virt): Likewise.
23246 (cbranchqi4_virt): Likewise.
23247 (cbranchhi4_virt): Likewise.
23248 * config/rl78/rl78.c (rl78_print_operand_1): 'p' modifier means
23249 always use '[reg+imm]' even when imm is zero.
23250 * config/rl78/predicates.md (rl78_volatile_memory_operand): New.
23251 (rl78_general_operand): New.
23252 (rl78_nonimmediate_operand): New.
23253 (rl78_nonfar_operand): Use them.
23254 (rl78_nonfar_nonimm_operand): Likewise.
23255 (rl78_stack_based_mem): Fix.
23256 * config/rl78/constraints.md (Ibqi): New.
23257 (IBqi): New.
23258 (Wsa): New.
23259 (Wsf): New.
23260 (Cs1): Fix.
23261 * config/rl78/rl78-expand.md (andqi3): Accept volatiles.
23262 (iorqi3): Likewise.
23263 (xorqi3): Likewise.
23264 * config/rl78/rl78-protos.h (rl78_sfr_p): New.
23265
23266 * config/rl78/constrains (Qs8): New constraint.
23267 * config/rl78/rl78.c (rl78_flags_already_set): New function.
23268 * config/rl78/rl78-protos.h (rl78_flags_already_set): New prototype.
23269 * config/rl78/rl78-real.md (update_Z): New attribute.
23270 Update patterns to set it.
23271 (cbranchqi4_real): Call rl78_flags_already_set() to determine if a
23272 shorter compare and branch sequence can be used.
23273 (cbranchhi4_real): Likewise.
23274 (cbranchhi4_real_inverted): Likewise.
23275
23276 * config/rl78/predicates.md (uword_operand): Allow symbol_refs.
23277 * config/rl78/rl78-c.c (rl78_register_pragmas): Register __near
23278 address space.
23279 * config/rl78/rl78.c (rl78_get_name_encoding): New.
23280 (rl78_option_override): Allow -mes0 only if C.
23281 (characterize_address): Support subregs of symbol_refs.
23282 (rl78_addr_space_address_mode): Move. Add __near.
23283 (rl78_far_p): Likewise.
23284 (rl78_addr_space_pointer_mode): Likewise.
23285 (rl78_as_legitimate_address): Likewise.
23286 (rl78_addr_space_subset_p): Likewise.
23287 (rl78_addr_space_convert): Likewise.
23288 (rl78_print_operand_1): Support 16-bit addressing of 32-bit
23289 symbols with -mes0.
23290 (transcode_memory_rtx): Don't copy ES if -mes0. Allow symbol[BC]
23291 addressing.
23292 (rl78_alloc_physical_registers_op1): Change logic to prefer
23293 symbol[BC] addressing.
23294 (frodata_section): New.
23295 (rl78_asm_init_sections): Initialize it.
23296 (rl78_select_section): Put __far readonly symbols in .frodata.
23297 (rl78_make_type_far): New.
23298 (rl78_insert_attributes): Force all readonly symbols to be
23299 __far when -mes0.
23300 (rl78_asm_out_integer): New.
23301 * config/rl78/rl78.h (ADDR_SPACE_NEAR): New.
23302 * config/rl78/rl78.opt (-mes0): New.
23303
23304 * config/rl78/rl78.h (ASM_OUTPUT_LABELREF): New.
23305 (ASM_OUTPUT_ALIGNED_DECL_COMMON): New.
23306 (ASM_OUTPUT_ALIGNED_DECL_LOCAL): New.
23307 * config/rl78/rl78-protos.h (rl78_output_labelref): New.
23308 (rl78_saddr_p): New.
23309 (rl78_output_aligned_common): New.
23310 * config/rl78/rl78.c (rl78_output_symbol_ref): Strip encodings.
23311 (rl78_handle_saddr_attribute): New.
23312 (rl78_handle_naked_attribute): New.
23313 (rl78_attribute_table): Add saddr.
23314 (rl78_print_operand_1): Don't print '!' on saddr operands.
23315 (rl78_print_operand_1): Strip encodings.
23316 (rl78_sfr_p): New.
23317 (rl78_strip_name_encoding): New.
23318 (rl78_attrlist_to_encoding): New.
23319 (rl78_encode_section_info): New.
23320 (rl78_asm_init_sections): New.
23321 (rl78_select_section): New.
23322 (rl78_output_labelref): New.
23323 (rl78_output_aligned_common): New.
23324 (rl78_asm_out_integer): New.
23325 (rl78_asm_ctor_dtor): New.
23326 (rl78_asm_constructor): New.
23327 (rl78_asm_destructor): New.
23328
23329 * config/rl78/rl78-real.md (movqi_es): Rename to movqi_to_es.
23330 * config/rl78/rl78.c (rl78_expand_epilogue): Update.
23331 (transcode_memory_rtx): Update.
23332 (rl78_expand_epilogue): Use A_REG instead of 0.
23333
23334 2015-01-17 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
23335
23336 * config/arm/arm-protos.h (struct tune_params): New field
23337 sched_autopref_queue_depth.
23338 * config/arm/arm.c (sched-int.h): Include header.
23339 (arm_first_cycle_multipass_dfa_lookahead_guard,)
23340 (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD): Define hook.
23341 (arm_slowmul_tune, arm_fastmul_tune, arm_strongarm_tune,)
23342 (arm_xscale_tune, arm_9e_tune, arm_v6t2_tune, arm_cortex_tune,)
23343 (arm_cortex_a8_tune, arm_cortex_a7_tune, arm_cortex_a15_tune,)
23344 (arm_cortex_a53_tune, arm_cortex_a57_tune, arm_xgene1_tune,)
23345 (arm_cortex_a5_tune, arm_cortex_a9_tune, arm_cortex_a12_tune,)
23346 (arm_v7m_tune, arm_cortex_m7_tune, arm_v6m_tune, arm_fa726te_tune):
23347 Specify sched_autopref_queue_depth value. Enabled for A15 and A57.
23348 * config/arm/t-arm (arm.o): Update.
23349 * haifa-sched.c (update_insn_after_change): Update.
23350 (rank_for_schedule): Use auto-prefetcher model, if requested.
23351 (autopref_multipass_init): New static function.
23352 (autopref_rank_for_schedule): New rank_for_schedule heuristic.
23353 (autopref_multipass_dfa_lookahead_guard_started_dump_p): New static
23354 variable for debug dumps.
23355 (autopref_multipass_dfa_lookahead_guard_1): New static helper function.
23356 (autopref_multipass_dfa_lookahead_guard): New global function that
23357 implements TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD hook.
23358 (init_h_i_d): Update.
23359 * params.def (PARAM_SCHED_AUTOPREF_QUEUE_DEPTH): New tuning knob.
23360 * sched-int.h (enum autopref_multipass_data_status): New const enum.
23361 (autopref_multipass_data_): Structure for auto-prefetcher data.
23362 (autopref_multipass_data_def, autopref_multipass_data_t): New typedefs.
23363 (struct _haifa_insn_data:autopref_multipass_data): New field.
23364 (INSN_AUTOPREF_MULTIPASS_DATA): New access macro.
23365 (autopref_multipass_dfa_lookahead_guard): Declare.
23366
23367 2015-01-17 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
23368
23369 * rtlanal.c (get_base_term): Handle SCRATCH.
23370
23371 2015-01-17 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
23372
23373 * config/aarch64/aarch64.c
23374 (aarch64_sched_first_cycle_multipass_dfa_lookahead): Implement hook.
23375 (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD): Define.
23376 * config/arm/arm.c
23377 (arm_first_cycle_multipass_dfa_lookahead): Implement hook.
23378 (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD): Define.
23379
23380 2015-01-17 Alan Modra <amodra@gmail.com>
23381
23382 * cprop.c (do_local_cprop): Disallow replacement of fixed
23383 hard registers.
23384
23385 2015-01-16 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
23386
23387 PR target/62066
23388 * config/arm/arm-builtins.c (arm_expand_neon_args): Call va_end before
23389 early return 0.
23390
23391 2015-01-16 Bernd Edlinger <bernd.edlinger@hotmail.de>
23392
23393 * sanitizer.def (BUILT_IN_TSAN_VPTR_UPDATE): Fixed parameters.
23394 * tsan.c (instrument_expr): Fixed parameters of __tsan_vptr_update.
23395
23396 2015-01-16 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
23397
23398 * config/arm/arm.md: Move comment about splitting Thumb1 patterns to...
23399 * config/arm/thumb1.md: ... Here.
23400
23401 2015-01-16 Segher Boessenkool <segher@kernel.crashing.org>
23402
23403 * config/rs6000/rs6000.c (rs6000_scalar_mode_supported_p): Disallow
23404 TImode for TARGET_32BIT.
23405
23406 2015-01-16 Segher Boessenkool <segher@kernel.crashing.org>
23407
23408 * config/rs6000/rs6000.c (TARGET_LIBGCC_CMP_RETURN_MODE,
23409 TARGET_LIBGCC_SHIFT_COUNT_MODE, TARGET_UNWIND_WORD_MODE): Implement
23410 as ...
23411 (rs6000_abi_word_mode): New function.
23412
23413 2015-01-16 Segher Boessenkool <segher@kernel.crashing.org>
23414
23415 * config/rs6000/rs6000.c (rs6000_va_start): Use MIN_UNITS_PER_WORD
23416 instead of UNITS_PER_WORD to describe the size of stack slots.
23417
23418 2015-01-16 Segher Boessenkool <segher@kernel.crashing.org>
23419
23420 * config/rs6000/rs6000.c (TARGET_PROMOTE_FUNCTION_MODE): Implement
23421 as rs6000_promote_function_mode. Move comment to there.
23422 (rs6000_promote_function_mode): New function.
23423
23424 2015-01-16 Segher Boessenkool <segher@kernel.crashing.org>
23425
23426 * config/rs6000/rs6000.h (PROMOTE_MODE): Correct test for when -m32
23427 -mpowerpc64 is active.
23428
23429 2015-01-16 Ilya Enkovich <ilya.enkovich@intel.com>
23430
23431 PR middle-end/64353
23432 * tree-cfg.c (pass_data_fixup_cfg): Update SSA for
23433 virtuals on start.
23434
23435 2015-01-16 James Greenhalgh <james.greenhalgh@arm.com>
23436
23437 * config/arm/cortex-a57.md: Remove duplicate of file accidentally
23438 introduced in revision 219724.
23439
23440 2015-01-16 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
23441 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
23442
23443 PR target/64263
23444 * config/aarch64/aarch64.md (*movsi_aarch64): Don't split if the
23445 destination is not a GP reg.
23446 (*movdi_aarch64): Likewise.
23447
23448 2015-01-16 David Edelsohn <dje.gcc@gmail.com>
23449
23450 PR target/64623
23451 * config/rs6000/default64.h: Revert ISA change.
23452
23453 2015-01-16 Richard Biener <rguenther@suse.de>
23454
23455 PR middle-end/64614
23456 * tree-ssa-uninit.c: Include tree-cfg.h.
23457 (MAX_SWITCH_CASES): New define.
23458 (convert_control_dep_chain_into_preds): Handle switch statements.
23459 (is_pred_expr_subset_of): Handle x == CST vs. (x & CST) != 0.
23460 (normalize_one_pred_1): Do not split bit-manipulations.
23461 Record (x & CST).
23462
23463 2015-01-16 Richard Biener <rguenther@suse.de>
23464
23465 PR tree-optimization/64568
23466 * tree-ssa-forwprop.c (pass_forwprop::execute): Guard
23467 complex load rewriting for TARGET_MEM_REFs.
23468
23469 2015-01-16 Uros Bizjak <ubizjak@gmail.com>
23470
23471 * builtins.c (expand_builtin_acc_on_device): Check target for NULL.
23472
23473 2015-01-16 Matthew Wahab <matthew.wahab@arm.com>
23474
23475 PR target/64149
23476 * config/aarch64/aarch64.opt: Remove lra option and aarch64_lra_flag
23477 variable.
23478 * config/aarch64/aarch64.c (TARGET_LRA_P): Set to hook_bool_void_true.
23479 (aarch64_lra_p): Remove.
23480
23481 2015-01-16 Ilya Enkovich <ilya.enkovich@intel.com>
23482
23483 PR target/64363
23484 * ipa-chkp.h (chkp_instrumentable_p): New.
23485 * ipa-chkp.c: Include tree-inline.h.
23486 (chkp_instrumentable_p): New.
23487 (chkp_maybe_create_clone): Use chkp_instrumentable_p.
23488 Fix processing of not instrumentable functions.
23489 (chkp_versioning): Use chkp_instrumentable_p. Warn about
23490 not instrumentable functions.
23491 * tree-chkp.c (chkp_add_bounds_to_call_stmt): Use
23492 chkp_instrumentable_p.
23493 * tree-inline.h (copy_forbidden): New.
23494 * tree-inline.c (copy_forbidden): Not static anymore.
23495
23496 2015-01-16 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
23497
23498 * optc-save-gen.awk (cl_target_option_print_diff): Mark indent,
23499 ptr1, ptr2 unused.
23500
23501 2015-01-16 Robert Suchanek <robert.suchanek@imgtec.com>
23502
23503 * lra-constraints.c (curr_insn_transform): Change a reload pseudo of
23504 type OP_OUT to OP_INOUT.
23505
23506 2015-01-16 Robert Suchanek <robert.suchanek@imgtec.com>
23507
23508 * simplify-rtx.c (simplify_replace_fn_rtx): Simplify (lo_sum
23509 (high x) y) to y if x and y have the same base.
23510
23511 2015-01-16 James Greenhalgh <james.greenhalgh@arm.com>
23512
23513 * config/arm/cortex-a57.md: New.
23514 * config/aarch64/aarch64.md: Include it.
23515 * config/aarch64/aarch64-cores.def (cortex-a57): Tune for it.
23516 * config/aarch64/aarch64-tune.md: Regenerate.
23517
23518 2015-01-16 Zhenqiang Chen <zhenqiang.chen@arm.com>
23519
23520 PR target/64015
23521 * ccmp.c (expand_ccmp_next): New function.
23522 (expand_ccmp_expr_1, expand_ccmp_expr): Handle operand insn sequence
23523 and compare insn sequence.
23524 * config/aarch64/aarch64.c (aarch64_code_to_ccmode,
23525 aarch64_gen_ccmp_first, aarch64_gen_ccmp_next): New functions.
23526 (TARGET_GEN_CCMP_FIRST, TARGET_GEN_CCMP_NEXT): New MICRO.
23527 * config/aarch64/aarch64.md (*ccmp_and): Changed to ccmp_and<mode>.
23528 (*ccmp_ior): Changed to ccmp_ior<mode>.
23529 (cmp<mode>): New pattern.
23530 * doc/tm.texi (TARGET_GEN_CCMP_FIRST, TARGET_GEN_CCMP_NEXT): Update
23531 parameters.
23532 * target.def (gen_ccmp_first, gen_ccmp_next): Update parameters.
23533
23534 2015-01-16 Ilya Tocar <ilya.tocar@intel.com>
23535
23536 * config/i386/avx2intrin.h (_mm256_bslli_epi128,
23537 _mm256_bsrli_epi128): New.
23538 * config/i386/emmintrin.h (_mm_bsrli_si128, _mm_bslli_si128): Ditto.
23539
23540 2015-01-15 Jiong Wang <jiong.wang@arm.com>
23541
23542 * expmed.c (store_bit_field_using_insv): Improve warning message.
23543 Use %wu instead of HOST_WIDE_INT_PRINT_UNSIGNED.
23544
23545 2015-01-15 Jiong Wang <jiong.wang@arm.com>
23546
23547 PR rtl-optimization/64011
23548 * expmed.c (store_bit_field_using_insv): Warn and truncate bitsize when
23549 there is partial overflow.
23550
23551 2015-01-16 Chung-Ju Wu <jasonwucj@gmail.com>
23552
23553 * config/nds32/nds32-protos.h (nds32_expand_epilogue): Change
23554 prototype.
23555 (nds32_expand_epilogue_v3pop): Likewise.
23556 * config/nds32/nds32.md (sibcall): Define this for sibling call
23557 optimization.
23558 (sibcall_register): Likewise.
23559 (sibcall_immediate): Likewise.
23560 (sibcall_value): Likewise.
23561 (sibcall_value_register): Likewise.
23562 (sibcall_value_immediate): Likewise.
23563 (sibcall_epilogue): Likewise.
23564 (epilogue): Pass false to indicate this is not a sibcall epilogue.
23565 * config/nds32/nds32.c (nds32_expand_epilogue): Consider sibcall case.
23566 (nds32_expand_epilogue_v3pop): Likewise.
23567
23568 2015-01-16 Chung-Ju Wu <jasonwucj@gmail.com>
23569
23570 * config/nds32/nds32-protos.h (nds32_can_use_return_insn): New.
23571 * config/nds32/nds32.md (unspec_volatile_func_return): Remove.
23572 (return_internal): New.
23573 (return): Define this named pattern.
23574 (simple_return): Define this named pattern.
23575 * config/nds32/nds32.c (nds32_expand_epilogue): Emit return_internal
23576 pattern instead of unspec_volatile_func_return.
23577 (nds32_expand_epilogue_v3pop): Likewise.
23578 (nds32_can_use_return_insn): New function.
23579
23580 2015-01-16 Chung-Ju Wu <jasonwucj@gmail.com>
23581
23582 * config/nds32/constants.md (UNSPEC_VOLATILE_POP25_RETURN): New.
23583 * config/nds32/nds32.md (pop25return): New.
23584 * config/nds32/nds32.c (nds32_expand_epilogue_v3pop): Emit
23585 pop25return pattern.
23586
23587 2015-01-16 Chung-Ju Wu <jasonwucj@gmail.com>
23588
23589 * doc/invoke.texi (NDS32 Options): Remove -mforce-fp-as-gp,
23590 -mforbid-fp-as-gp, and -mex9 options.
23591
23592 2015-01-16 Chung-Ju Wu <jasonwucj@gmail.com>
23593
23594 * doc/invoke.texi (NDS32 Options): Add -mcmodel= option and
23595 remove -mgp-direct option.
23596
23597 2015-01-15 Jan Hubicka <hubicka@ucw.cz>
23598
23599 * doc/invoke.texi (--param early-inlining-insns): Update default value.
23600 * params.def (PARAM_EARLY_INLINING_INSNS): Set to 14.
23601
23602 2015-01-15 Jan Hubicka <hubicka@ucw.cz>
23603
23604 * ipa-inline.c (inline_small_functions): Work around hints
23605 cache issue.
23606
23607 2015-01-15 Sandra Loosemore <sandra@codesourcery.com>
23608
23609 PR target/59710
23610 * doc/invoke.texi (Option Summary): Document new Nios II
23611 -mgpopt= syntax.
23612 (Nios II Options): Likewise.
23613 * config/nios2/nios2.opt: Add -mgpopt= option support.
23614 Modify existing -mgpopt and -mno-gpopt options to be aliases.
23615 * config/nios2/nios2-opts.h (enum nios2_gpopt_type): New.
23616 * config/nios2/nios2.c (nios2_option_override): Adjust
23617 -mgpopt defaulting.
23618 (nios2_in_small_data_p): Return true for explicit small data
23619 sections even with -G0.
23620 (nios2_symbol_ref_in_small_data_p): Adjust to handle new -mgpopt=
23621 option choices.
23622
23623 2015-01-15 Jan Hubicka <hubicka@ucw.cz>
23624
23625 PR ipa/64612
23626 * ipa-inline-transform.c (can_remove_node_now_p): Fix handling
23627 of comdat locals.
23628 (inline_call): Fix removal of aliases.
23629
23630 2015-01-15 Jakub Jelinek <jakub@redhat.com>
23631
23632 * flag-types.h (enum sanitize_code): Add SANITIZE_VPTR,
23633 include SANITIZE_VPTR in SANITIZE_UNDEFINED.
23634 * opts.c (common_handle_option): Add -fsanitize=vptr.
23635 * sanitizer.def (BUILT_IN_UBSAN_HANDLE_DYNAMIC_TYPE_CACHE_MISS,
23636 BUILT_IN_UBSAN_HANDLE_DYNAMIC_TYPE_CACHE_MISS_ABORT): New.
23637 * ubsan.h (enum ubsan_null_ckind): Add UBSAN_DOWNCAST_POINTER,
23638 UBSAN_DOWNCAST_REFERENCE, UBSAN_UPCAST and UBSAN_CAST_TO_VBASE.
23639 (ubsan_expand_vptr_ifn): New prototype.
23640 * internal-fn.c (expand_ANNOTATE, expand_GOMP_SIMD_LANE,
23641 expand_GOMP_SIMD_VF, expand_GOMP_SIMD_LAST_LANE, expand_UBSAN_NULL,
23642 expand_UBSAN_BOUNDS, expand_UBSAN_OBJECT_SIZE, expand_ASAN_CHECK,
23643 expand_LOOP_VECTORIZED): Make argument nameless, remove
23644 ATTRIBUTE_UNUSED.
23645 (expand_UBSAN_VPTR): New function.
23646 * internal-fn.def (UBSAN_NULL, ASAN_CHECK): Use R instead of W
23647 in fn spec.
23648 (UBSAN_VPTR): New internal function.
23649 * sanopt.c (tree_map_traits): Renamed to ...
23650 (sanopt_tree_map_traits): ... this.
23651 (sanopt_tree_triplet, sanopt_tree_triplet_map_traits): New classes.
23652 (sanopt_ctx): Adjust asan_check_map type for tree_map_traits
23653 to sanopt_tree_map_traits renaming. Add vptr_check_map field.
23654 (maybe_optimize_ubsan_vptr_ifn): New function.
23655 (sanopt_optimize_walker): Handle IFN_UBSAN_VPTR.
23656 (pass_sanopt::execute): Likewise. Call sanopt_optimize even for
23657 -fsanitize=vptr.
23658 * tree-ssa-alias.c (call_may_clobber_ref_p_1): Handle certain
23659 internal calls like pure functions for aliasing, even when they
23660 have other side-effects that prevent making them ECF_PURE.
23661 * ubsan.c (ubsan_vptr_type_cache_decl): New variable.
23662 (ubsan_expand_vptr_ifn): New function.
23663
23664 2015-01-15 Vladimir Makarov <vmakarov@redhat.com>
23665
23666 PR rtl-optimization/64110
23667 * stmt.c (parse_output_constraint): Process '^' and '$'.
23668 (parse_input_constraint): Ditto.
23669 * lra-constraints.c (process_alt_operands): Process the new
23670 constraints.
23671 * ira-costs.c (record_reg_classes): Process the new constraint
23672 '^'.
23673 * genoutput.c (indep_constraints): Add '^' and '$'.
23674 * config/i386/sse.md (*vec_dup<mode>): Use '$' instead of '!'.
23675 * doc/md.texi: Add description of the new constraints.
23676
23677 2015-01-15 Thomas Schwinge <thomas@codesourcery.com>
23678 Bernd Schmidt <bernds@codesourcery.com>
23679 Cesar Philippidis <cesar@codesourcery.com>
23680 James Norris <jnorris@codesourcery.com>
23681 Tom de Vries <tom@codesourcery.com>
23682 Ilmir Usmanov <i.usmanov@samsung.com>
23683 Dmitry Bocharnikov <dmitry.b@samsung.com>
23684 Evgeny Gavrin <e.gavrin@samsung.com>
23685 Jakub Jelinek <jakub@redhat.com>
23686
23687 * builtin-types.def (BT_FN_VOID_INT_INT_VAR)
23688 (BT_FN_VOID_INT_PTR_SIZE_PTR_PTR_PTR_INT_INT_VAR)
23689 (BT_FN_VOID_INT_OMPFN_PTR_SIZE_PTR_PTR_PTR_INT_INT_INT_INT_INT_VAR):
23690 New function types.
23691 * builtins.c: Include "gomp-constants.h".
23692 (expand_builtin_acc_on_device): New function.
23693 (expand_builtin, is_inexpensive_builtin): Handle
23694 BUILT_IN_ACC_ON_DEVICE.
23695 * builtins.def (DEF_GOACC_BUILTIN, DEF_GOACC_BUILTIN_COMPILER):
23696 New macros.
23697 * cgraph.c (cgraph_node::create): Consider flag_openacc next to
23698 flag_openmp.
23699 * config.gcc <nvptx-*> (tm_file): Add nvptx/offload.h.
23700 <*-intelmic-* | *-intelmicemul-*> (tm_file): Add
23701 i386/intelmic-offload.h.
23702 * gcc.c (LINK_COMMAND_SPEC, GOMP_SELF_SPECS): For -fopenacc, link
23703 to libgomp and its dependencies.
23704 * config/arc/arc.h (LINK_COMMAND_SPEC): Likewise.
23705 * config/darwin.h (LINK_COMMAND_SPEC_A): Likewise.
23706 * config/i386/mingw32.h (GOMP_SELF_SPECS): Likewise.
23707 * config/ia64/hpux.h (LIB_SPEC): Likewise.
23708 * config/pa/pa-hpux11.h (LIB_SPEC): Likewise.
23709 * config/pa/pa64-hpux.h (LIB_SPEC): Likewise.
23710 * doc/generic.texi: Update for OpenACC changes.
23711 * doc/gimple.texi: Likewise.
23712 * doc/invoke.texi: Likewise.
23713 * doc/sourcebuild.texi: Likewise.
23714 * gimple-pretty-print.c (dump_gimple_omp_for): Handle
23715 GF_OMP_FOR_KIND_OACC_LOOP.
23716 (dump_gimple_omp_target): Handle GF_OMP_TARGET_KIND_OACC_KERNELS,
23717 GF_OMP_TARGET_KIND_OACC_PARALLEL, GF_OMP_TARGET_KIND_OACC_DATA,
23718 GF_OMP_TARGET_KIND_OACC_UPDATE,
23719 GF_OMP_TARGET_KIND_OACC_ENTER_EXIT_DATA.
23720 Dump more data.
23721 * gimple.c: Update comments for OpenACC changes.
23722 * gimple.def: Likewise.
23723 * gimple.h: Likewise.
23724 (enum gf_mask): Add GF_OMP_FOR_KIND_OACC_LOOP,
23725 GF_OMP_TARGET_KIND_OACC_PARALLEL, GF_OMP_TARGET_KIND_OACC_KERNELS,
23726 GF_OMP_TARGET_KIND_OACC_DATA, GF_OMP_TARGET_KIND_OACC_UPDATE,
23727 GF_OMP_TARGET_KIND_OACC_ENTER_EXIT_DATA.
23728 (gimple_omp_for_cond, gimple_omp_for_set_cond): Sort in the
23729 appropriate place.
23730 (is_gimple_omp_oacc, is_gimple_omp_offloaded): New functions.
23731 * gimplify.c: Include "gomp-constants.h".
23732 Update comments for OpenACC changes.
23733 (is_gimple_stmt): Handle OACC_PARALLEL, OACC_KERNELS, OACC_DATA,
23734 OACC_HOST_DATA, OACC_DECLARE, OACC_UPDATE, OACC_ENTER_DATA,
23735 OACC_EXIT_DATA, OACC_CACHE, OACC_LOOP.
23736 (gimplify_scan_omp_clauses, gimplify_adjust_omp_clauses): Handle
23737 OMP_CLAUSE__CACHE_, OMP_CLAUSE_ASYNC, OMP_CLAUSE_WAIT,
23738 OMP_CLAUSE_NUM_GANGS, OMP_CLAUSE_NUM_WORKERS,
23739 OMP_CLAUSE_VECTOR_LENGTH, OMP_CLAUSE_GANG, OMP_CLAUSE_WORKER,
23740 OMP_CLAUSE_VECTOR, OMP_CLAUSE_DEVICE_RESIDENT,
23741 OMP_CLAUSE_USE_DEVICE, OMP_CLAUSE_INDEPENDENT, OMP_CLAUSE_AUTO,
23742 OMP_CLAUSE_SEQ.
23743 (gimplify_adjust_omp_clauses_1, gimplify_adjust_omp_clauses): Use
23744 GOMP_MAP_* instead of OMP_CLAUSE_MAP_*. Use
23745 OMP_CLAUSE_SET_MAP_KIND.
23746 (gimplify_oacc_cache): New function.
23747 (gimplify_omp_for): Handle OACC_LOOP.
23748 (gimplify_omp_workshare): Handle OACC_KERNELS, OACC_PARALLEL,
23749 OACC_DATA.
23750 (gimplify_omp_target_update): Handle OACC_ENTER_DATA,
23751 OACC_EXIT_DATA, OACC_UPDATE.
23752 (gimplify_expr): Handle OACC_LOOP, OACC_CACHE, OACC_HOST_DATA,
23753 OACC_DECLARE, OACC_KERNELS, OACC_PARALLEL, OACC_DATA,
23754 OACC_ENTER_DATA, OACC_EXIT_DATA, OACC_UPDATE.
23755 (gimplify_body): Consider flag_openacc next to flag_openmp.
23756 * lto-streamer-out.c: Include "gomp-constants.h".
23757 * omp-builtins.def (BUILT_IN_ACC_GET_DEVICE_TYPE)
23758 (BUILT_IN_GOACC_DATA_START, BUILT_IN_GOACC_DATA_END)
23759 (BUILT_IN_GOACC_ENTER_EXIT_DATA, BUILT_IN_GOACC_PARALLEL)
23760 (BUILT_IN_GOACC_UPDATE, BUILT_IN_GOACC_WAIT)
23761 (BUILT_IN_GOACC_GET_THREAD_NUM, BUILT_IN_GOACC_GET_NUM_THREADS)
23762 (BUILT_IN_ACC_ON_DEVICE): New builtins.
23763 * omp-low.c: Include "gomp-constants.h".
23764 Update comments for OpenACC changes.
23765 (struct omp_context): Add reduction_map, gwv_below, gwv_this
23766 members.
23767 (extract_omp_for_data, use_pointer_for_field, install_var_field)
23768 (new_omp_context, delete_omp_context, scan_sharing_clauses)
23769 (create_omp_child_function, scan_omp_for, scan_omp_target)
23770 (check_omp_nesting_restrictions, lower_reduction_clauses)
23771 (build_omp_regions_1, diagnose_sb_0, make_gimple_omp_edges):
23772 Update for OpenACC changes.
23773 (scan_sharing_clauses): Handle OMP_CLAUSE_NUM_GANGS:
23774 OMP_CLAUSE_NUM_WORKERS: OMP_CLAUSE_VECTOR_LENGTH,
23775 OMP_CLAUSE_ASYNC, OMP_CLAUSE_WAIT, OMP_CLAUSE_GANG,
23776 OMP_CLAUSE_WORKER, OMP_CLAUSE_VECTOR, OMP_CLAUSE_DEVICE_RESIDENT,
23777 OMP_CLAUSE_USE_DEVICE, OMP_CLAUSE__CACHE_, OMP_CLAUSE_INDEPENDENT,
23778 OMP_CLAUSE_AUTO, OMP_CLAUSE_SEQ. Use GOMP_MAP_* instead of
23779 OMP_CLAUSE_MAP_*.
23780 (expand_omp_for_static_nochunk, expand_omp_for_static_chunk):
23781 Handle GF_OMP_FOR_KIND_OACC_LOOP.
23782 (expand_omp_target, lower_omp_target): Handle
23783 GF_OMP_TARGET_KIND_OACC_PARALLEL, GF_OMP_TARGET_KIND_OACC_KERNELS,
23784 GF_OMP_TARGET_KIND_OACC_UPDATE,
23785 GF_OMP_TARGET_KIND_OACC_ENTER_EXIT_DATA,
23786 GF_OMP_TARGET_KIND_OACC_DATA.
23787 (pass_expand_omp::execute, execute_lower_omp)
23788 (pass_diagnose_omp_blocks::gate): Consider flag_openacc next to
23789 flag_openmp.
23790 (offload_symbol_decl): New variable.
23791 (oacc_get_reduction_array_id, oacc_max_threads)
23792 (get_offload_symbol_decl, get_base_type, lookup_oacc_reduction)
23793 (maybe_lookup_oacc_reduction, enclosing_target_ctx)
23794 (oacc_loop_or_target_p, oacc_lower_reduction_var_helper)
23795 (oacc_gimple_assign, oacc_initialize_reduction_data)
23796 (oacc_finalize_reduction_data, oacc_process_reduction_data): New
23797 functions.
23798 (is_targetreg_ctx): Remove function.
23799 * tree-core.h (enum omp_clause_code): Add OMP_CLAUSE__CACHE_,
23800 OMP_CLAUSE_DEVICE_RESIDENT, OMP_CLAUSE_USE_DEVICE,
23801 OMP_CLAUSE_GANG, OMP_CLAUSE_ASYNC, OMP_CLAUSE_WAIT,
23802 OMP_CLAUSE_AUTO, OMP_CLAUSE_SEQ, OMP_CLAUSE_INDEPENDENT,
23803 OMP_CLAUSE_WORKER, OMP_CLAUSE_VECTOR, OMP_CLAUSE_NUM_GANGS,
23804 OMP_CLAUSE_NUM_WORKERS, OMP_CLAUSE_VECTOR_LENGTH.
23805 * tree.c (omp_clause_code_name, walk_tree_1): Update accordingly.
23806 * tree.h (OMP_CLAUSE_GANG_EXPR, OMP_CLAUSE_GANG_STATIC_EXPR)
23807 (OMP_CLAUSE_ASYNC_EXPR, OMP_CLAUSE_WAIT_EXPR)
23808 (OMP_CLAUSE_VECTOR_EXPR, OMP_CLAUSE_WORKER_EXPR)
23809 (OMP_CLAUSE_NUM_GANGS_EXPR, OMP_CLAUSE_NUM_WORKERS_EXPR)
23810 (OMP_CLAUSE_VECTOR_LENGTH_EXPR): New macros.
23811 * tree-core.h: Update comments for OpenACC changes.
23812 (enum omp_clause_map_kind): Remove.
23813 (struct tree_omp_clause): Change type of map_kind member from enum
23814 omp_clause_map_kind to unsigned char.
23815 * tree-inline.c: Update comments for OpenACC changes.
23816 * tree-nested.c: Likewise. Include "gomp-constants.h".
23817 (convert_nonlocal_reference_stmt, convert_local_reference_stmt)
23818 (convert_tramp_reference_stmt, convert_gimple_call): Update for
23819 OpenACC changes. Use GOMP_MAP_* instead of OMP_CLAUSE_MAP_*. Use
23820 OMP_CLAUSE_SET_MAP_KIND.
23821 * tree-pretty-print.c: Include "gomp-constants.h".
23822 (dump_omp_clause): Handle OMP_CLAUSE_DEVICE_RESIDENT,
23823 OMP_CLAUSE_USE_DEVICE, OMP_CLAUSE__CACHE_, OMP_CLAUSE_GANG,
23824 OMP_CLAUSE_ASYNC, OMP_CLAUSE_AUTO, OMP_CLAUSE_SEQ,
23825 OMP_CLAUSE_WAIT, OMP_CLAUSE_WORKER, OMP_CLAUSE_VECTOR,
23826 OMP_CLAUSE_NUM_GANGS, OMP_CLAUSE_NUM_WORKERS,
23827 OMP_CLAUSE_VECTOR_LENGTH, OMP_CLAUSE_INDEPENDENT. Use GOMP_MAP_*
23828 instead of OMP_CLAUSE_MAP_*.
23829 (dump_generic_node): Handle OACC_PARALLEL, OACC_KERNELS,
23830 OACC_DATA, OACC_HOST_DATA, OACC_DECLARE, OACC_UPDATE,
23831 OACC_ENTER_DATA, OACC_EXIT_DATA, OACC_CACHE, OACC_LOOP.
23832 * tree-streamer-in.c: Include "gomp-constants.h".
23833 (unpack_ts_omp_clause_value_fields) Use GOMP_MAP_* instead of
23834 OMP_CLAUSE_MAP_*. Use OMP_CLAUSE_SET_MAP_KIND.
23835 * tree-streamer-out.c: Include "gomp-constants.h".
23836 (pack_ts_omp_clause_value_fields): Use GOMP_MAP_* instead of
23837 OMP_CLAUSE_MAP_*.
23838 * tree.def (OACC_PARALLEL, OACC_KERNELS, OACC_DATA)
23839 (OACC_HOST_DATA, OACC_LOOP, OACC_CACHE, OACC_DECLARE)
23840 (OACC_ENTER_DATA, OACC_EXIT_DATA, OACC_UPDATE): New tree codes.
23841 * tree.c (omp_clause_num_ops): Update accordingly.
23842 * tree.h (OMP_BODY, OMP_CLAUSES, OMP_LOOP_CHECK, OMP_CLAUSE_SIZE):
23843 Likewise.
23844 (OACC_PARALLEL_BODY, OACC_PARALLEL_CLAUSES, OACC_KERNELS_BODY)
23845 (OACC_KERNELS_CLAUSES, OACC_DATA_BODY, OACC_DATA_CLAUSES)
23846 (OACC_HOST_DATA_BODY, OACC_HOST_DATA_CLAUSES, OACC_CACHE_CLAUSES)
23847 (OACC_DECLARE_CLAUSES, OACC_ENTER_DATA_CLAUSES)
23848 (OACC_EXIT_DATA_CLAUSES, OACC_UPDATE_CLAUSES)
23849 (OACC_KERNELS_COMBINED, OACC_PARALLEL_COMBINED): New macros.
23850 * tree.h (OMP_CLAUSE_MAP_KIND): Cast it to enum gomp_map_kind.
23851 (OMP_CLAUSE_SET_MAP_KIND): New macro.
23852 * varpool.c (varpool_node::get_create): Consider flag_openacc next
23853 to flag_openmp.
23854 * config/i386/intelmic-offload.h: New file.
23855 * config/nvptx/offload.h: Likewise.
23856
23857 2015-01-15 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
23858
23859 * explow.h: Remove duplicate contents.
23860 * dojump.h: Likewise.
23861
23862 2015-01-15 Richard Earnshaw <rearnsha@arm.com>
23863
23864 * arm.c (arm_xgene_tune): Add default initializer for instruction
23865 fusion.
23866
23867 2015-01-15 Jan Hubicka <hubicka@ucw.cz>
23868
23869 PR ipa/64068
23870 PR ipa/64559
23871 * ipa.c (symbol_table::remove_unreachable_nodes):
23872 Do not put abstract origins into boundary.
23873
23874 2015-01-15 Evgeny Stupachenko <evstupac@gmail.com>
23875
23876 * config/i386/gnu-user.h (CRT_GET_RFIB_DATA): Remove EBX register usage.
23877 * config/i386/sysv4.h (CRT_GET_RFIB_DATA): Ditto.
23878
23879 2015-01-15 Steve Ellcey <sellcey@mips.com>
23880
23881 * Makefile.in (PLUGIN_HEADERS): Add dominance.h, cfg.h, cfgrtl.h,
23882 cfganal.h, cfgbuild.h, cfgcleanup.h, lcm.h, cfgloopmanip.h,
23883 builtins.def, and chkp-builtins.def.
23884
23885 2015-01-15 David Edelsohn <dje.gcc@gmail.com>
23886
23887 * config/rs6000/default64.h (TARGET_DEFAULT) [LITTLE_ENDIAN]: Use
23888 ISA 2.7 (POWER8).
23889
23890 2015-01-15 Richard Biener <rguenther@suse.de>
23891
23892 PR tree-optimization/61743
23893 * tree-ssa-pre.c (insert_into_preds_of_block): Preserve range
23894 information on PHIs for some simple cases.
23895
23896 2015-01-15 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
23897
23898 * config/arm/arm.md (generic_sched): Specify xgene1 in 'no' list.
23899 Include xgene1.md.
23900 * config/arm/arm.c (arm_issue_rate): Specify 4 for xgene1.
23901 * config/arm/arm-cores.def (xgene1): New entry.
23902 * config/arm/arm-tables.opt: Regenerate.
23903 * config/arm/arm-tune.md: Regenerate.
23904 * config/arm/bpabi.h (BE8_LINK_SPEC): Specify mcpu=xgene1.
23905
23906 2015-01-15 Yuri Rumyantsev <ysrumyan@gmail.com>
23907
23908 * tree-if-conv.c: Include hash-map.h.
23909 (aggressive_if_conv): New variable.
23910 (fold_build_cond_expr): Add simplification of non-zero condition.
23911 (add_to_dst_predicate_list): Invoke add_to_predicate_list if edge
23912 destination block is not always executed.
23913 (if_convertible_phi_p): Fix commentary, allow phi nodes have more
23914 than two predecessors if AGGRESSIVE_IF_CONV is true.
23915 (if_convertible_stmt_p): Fix commentary.
23916 (all_preds_critical_p): New function.
23917 (has_pred_critical_p): New function.
23918 (if_convertible_bb_p): Fix commentary, if AGGRESSIVE_IF_CONV is true
23919 BB can have more than two predecessors and all incoming edges can be
23920 critical.
23921 (predicate_bbs): Skip predication for loop exit block, use build2_loc
23922 to compute predicate for true edge.
23923 (find_phi_replacement_condition): Delete this function.
23924 (is_cond_scalar_reduction): Add arguments ARG_0, ARG_1 and EXTENDED.
23925 Allow interchange PHI arguments if EXTENDED is false.
23926 Change check that block containing reduction statement candidate
23927 is predecessor of phi-block since phi may have more than two arguments.
23928 (phi_args_hash_traits): New helper structure.
23929 (struct phi_args_hash_traits): New type.
23930 (phi_args_hash_traits::hash): New function.
23931 (phi_args_hash_traits::equal_keys): New function.
23932 (gen_phi_arg_condition): New function.
23933 (predicate_scalar_phi): Add handling of phi nodes with more than two
23934 arguments, delete COND and TRUE_BB arguments, insert body of
23935 find_phi_replacement_condition to predicate ordinary phi nodes.
23936 (predicate_all_scalar_phis): Skip blocks with the only predecessor,
23937 delete call of find_phi_replacement_condition and invoke
23938 predicate_scalar_phi with two arguments.
23939 (insert_gimplified_predicates): Add assert that non-predicated block
23940 don't have statements to insert.
23941 (ifcvt_split_critical_edges): New function.
23942 (ifcvt_split_def_stmt): Likewise.
23943 (ifcvt_walk_pattern_tree): Likewise.
23944 (stmt_is_root_of_bool_pattern): Likewise.
23945 (ifcvt_repair_bool_pattern): Likewise.
23946 (ifcvt_local_dce): Likewise.
23947 (tree_if_conversion): Add initialization of AGGRESSIVE_IF_CONV which
23948 is copy of inner or outer loop force_vectorize field, invoke
23949 ifcvt_split_critical_edges, ifcvt_local_dce and
23950 ifcvt_repair_bool_pattern for aggressive if-conversion.
23951
23952 2015-01-15 Philipp Tomsich <ptomsich@theobroma-systems.com>
23953
23954 * config/aarch64/aarch64.md: Include xgene1.md.
23955 * config/aarch64/xgene1.md: New file.
23956
23957 2015-01-15 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
23958
23959 * config/aarch64/aarch64-cores.def (xgene1): Update/add the
23960 xgene1 (APM XGene-1) core definition.
23961 * gcc/config/aarch64/aarch64.c: Add cost tables for APM XGene-1
23962 * config/arm/aarch-cost-tables.h: Add cost tables for APM XGene-1
23963 * doc/invoke.texi: Document -mcpu=xgene1.
23964
23965 2015-01-15 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
23966
23967 * dojump.h: New header file.
23968 * explow.h: Likewise.
23969 * expr.h: Remove includes.
23970 Move expmed.c prototypes to expmed.h.
23971 Move dojump.c prototypes to dojump.h.
23972 Move alias.c prototypes to alias.h.
23973 Move explow.c prototypes to explow.h.
23974 Move calls.c prototypes to calls.h.
23975 Move emit-rtl.c prototypes to emit-rtl.h.
23976 Move varasm.c prototypes to varasm.h.
23977 Move stmt.c prototypes to stmt.h.
23978 (saved_pending_stack_adjust): Move to dojump.h.
23979 (adjust_address): Move to explow.h.
23980 (adjust_address_nv): Move to emit-rtl.h.
23981 (adjust_bitfield_address): Likewise.
23982 (adjust_bitfield_address_size): Likewise.
23983 (adjust_bitfield_address_nv): Likewise.
23984 (adjust_automodify_address_nv): Likewise.
23985 * explow.c (expr_size): Move to expr.c.
23986 (int_expr_size): Likewise.
23987 (tree_expr_size): Likewise.
23988 Include calls.h dojump.h emit-rtl.h explow.h expmed.h
23989 fixed-value.h hashtab.h statistics.h stmt.h varasm.h.
23990 * genemit.c (main): Generate includes statistics.h, real.h,
23991 fixed-value.h, insn-config.h, expmed.h, dojump.h, explow.h, emit-rtl.h,
23992 stmt.h.
23993 * genopinit.c (main): Generate includes hashtab.h, hard-reg-set.h,
23994 function.h, statistics.h, real.h, fixed-value.h, expmed.h, dojump.h,
23995 explow.h, emit-rtl.h, stmt.h.
23996 * genoutput.c (main): Generate includes hashtab.h, statistics.h, real.h,
23997 fixed-value.h, expmed.h, dojump.h, explow.h, emit-rtl.h, stmt.h.
23998 * genemit.c (open_base_files): Generate includes flags.h, statistics.h,
23999 real.h, fixed-value.h, tree.h, expmed.h, dojump.h, explow.h, calls.h,
24000 emit-rtl.h, varasm.h, stmt.h.
24001 * config/tilepro/gen-mul-tables.cc: Generate includes hashtab.h,
24002 hash-set.h, vec.h, machmode.h, tm.h, hard-reg-set.h, input.h,
24003 function.h, rtl.h, flags.h, statistics.h, double-int.h, real.h,
24004 fixed-value.h, alias.h, wide-int.h, inchash.h, tree.h, insn-config.h,
24005 expmed.h, dojump.h, explow.h, calls.h, emit-rtl.h, varasm.h, stmt.h.
24006 * config/tilegx/mul-tables.c: Include alias.h calls.h dojump.h
24007 double-int.h emit-rtl.h explow.h expmed.h fixed-value.h flags.h
24008 function.h hard-reg-set.h hash-set.h hashtab.h inchash.h input.h
24009 insn-config.h machmode.h real.h rtl.h statistics.h stmt.h symtab.h
24010 tm.h tree.h varasm.h vec.h wide-int.h.
24011 * rtlhooks.c: Include alias.h calls.h dojump.h double-int.h emit-rtl.h
24012 explow.h expmed.h fixed-value.h flags.h function.h hard-reg-set.h
24013 hash-set.h hashtab.h inchash.h input.h insn-config.h machmode.h
24014 real.h statistics.h stmt.h tree.h varasm.h vec.h wide-int.h.
24015 * cfgloopanal.c: Include alias.h calls.h dojump.h double-int.h
24016 emit-rtl.h explow.h expmed.h fixed-value.h flags.h inchash.h
24017 insn-config.h real.h statistics.h stmt.h tree.h varasm.h wide-int.h.
24018 * loop-iv.c: Likewise.
24019 * lra-assigns.c: Include alias.h calls.h dojump.h double-int.h
24020 emit-rtl.h explow.h expmed.h fixed-value.h flags.h inchash.h real.h
24021 statistics.h stmt.h tree.h varasm.h wide-int.h.
24022 * lra-constraints.c: Likewise.
24023 * lra-eliminations.c: Likewise.
24024 * lra-lives.c: Likewise.
24025 * lra-remat.c: Likewise.
24026 * bt-load.c: Include alias.h calls.h dojump.h double-int.h emit-rtl.h
24027 explow.h expmed.h fixed-value.h inchash.h insn-config.h real.h
24028 statistics.h stmt.h tree.h varasm.h wide-int.h.
24029 * hw-doloop.c: Likewise.
24030 * ira-color.c: Likewise.
24031 * ira-emit.c: Likewise.
24032 * loop-doloop.c: Likewise.
24033 * loop-invariant.c: Likewise.
24034 * reload.c: Include alias.h calls.h dojump.h double-int.h emit-rtl.h
24035 explow.h expmed.h fixed-value.h inchash.h real.h rtl.h
24036 statistics.h stmt.h tree.h varasm.h wide-int.h.
24037 * caller-save.c: Include alias.h calls.h dojump.h double-int.h
24038 emit-rtl.h explow.h expmed.h fixed-value.h inchash.h real.h
24039 statistics.h stmt.h tree.h varasm.h wide-int.h.
24040 * combine-stack-adj.c: Likewise.
24041 * cse.c: Likewise.
24042 * ddg.c: Likewise.
24043 * ifcvt.c: Likewise.
24044 * ira-costs.c: Likewise.
24045 * jump.c: Likewise.
24046 * lra-coalesce.c: Likewise.
24047 * lra-spills.c: Likewise.
24048 * profile.c: Include alias.h calls.h dojump.h double-int.h emit-rtl.h
24049 explow.h expmed.h fixed-value.h insn-config.h real.h statistics.h
24050 stmt.h varasm.h wide-int.h.
24051 * lra.c: Include alias.h calls.h dojump.h double-int.h emit-rtl.h
24052 explow.h expmed.h fixed-value.h real.h statistics.h stmt.h
24053 varasm.h.
24054 * config/sh/sh_treg_combine.cc: Include alias.h calls.h dojump.h
24055 double-int.h explow.h expmed.h fixed-value.h flags.h real.h
24056 statistics.h stmt.h varasm.h wide-int.h.
24057 * reorg.c: Include alias.h calls.h dojump.h double-int.h explow.h
24058 expmed.h fixed-value.h inchash.h real.h statistics.h stmt.h tree.h
24059 varasm.h wide-int.h.
24060 * reload1.c: Include alias.h calls.h dojump.h double-int.h explow.h
24061 expmed.h fixed-value.h real.h rtl.h statistics.h stmt.h varasm.h.
24062 * config/tilegx/tilegx.c: Include alias.h dojump.h double-int.h
24063 emit-rtl.h explow.h expmed.h fixed-value.h flags.h real.h
24064 statistics.h stmt.h.
24065 * config/tilepro/tilepro.c: Likewise.
24066 * config/mmix/mmix.c: Include alias.h dojump.h double-int.h emit-rtl.h
24067 explow.h expmed.h fixed-value.h real.h statistics.h stmt.h.
24068 * config/pdp11/pdp11.c: Likewise.
24069 * config/xtensa/xtensa.c: Likewise.
24070 * config/lm32/lm32.c: Include alias.h dojump.h double-int.h emit-rtl.h
24071 explow.h expmed.h fixed-value.h real.h statistics.h stmt.h
24072 varasm.h.
24073 * tree-chkp.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
24074 fixed-value.h flags.h function.h hard-reg-set.h hashtab.h
24075 insn-config.h real.h rtl.h statistics.h stmt.h tm.h.
24076 * cilk-common.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
24077 fixed-value.h flags.h function.h hard-reg-set.h hashtab.h
24078 insn-config.h real.h rtl.h statistics.h stmt.h tm.h varasm.h.
24079 * rtl-chkp.c: Likewise.
24080 * tree-chkp-opt.c: Likewise.
24081 * config/arm/arm-builtins.c: Include calls.h dojump.h emit-rtl.h
24082 explow.h expmed.h fixed-value.h flags.h function.h hard-reg-set.h
24083 hashtab.h insn-config.h real.h statistics.h stmt.h varasm.h.
24084 * ipa-icf.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
24085 fixed-value.h flags.h hashtab.h insn-config.h real.h rtl.h
24086 statistics.h stmt.h.
24087 * tree-vect-data-refs.c: Likewise.
24088 * graphite-sese-to-poly.c: Include calls.h dojump.h emit-rtl.h explow.h
24089 expmed.h fixed-value.h flags.h hashtab.h insn-config.h real.h
24090 rtl.h statistics.h stmt.h varasm.h.
24091 * internal-fn.c: Likewise.
24092 * ipa-icf-gimple.c: Likewise.
24093 * lto-section-out.c: Likewise.
24094 * tree-data-ref.c: Likewise.
24095 * tree-nested.c: Likewise.
24096 * tree-outof-ssa.c: Likewise.
24097 * tree-predcom.c: Likewise.
24098 * tree-pretty-print.c: Likewise.
24099 * tree-scalar-evolution.c: Likewise.
24100 * tree-ssa-strlen.c: Likewise.
24101 * tree-vect-loop.c: Likewise.
24102 * tree-vect-patterns.c: Likewise.
24103 * tree-vect-slp.c: Likewise.
24104 * tree-vect-stmts.c: Likewise.
24105 * tsan.c: Likewise.
24106 * targhooks.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
24107 fixed-value.h flags.h hashtab.h insn-config.h real.h statistics.h
24108 stmt.h.
24109 * config/sh/sh-mem.cc: Include calls.h dojump.h emit-rtl.h explow.h
24110 expmed.h fixed-value.h flags.h hashtab.h insn-config.h real.h
24111 statistics.h stmt.h varasm.h.
24112 * loop-unroll.c: Likewise.
24113 * ubsan.c: Likewise.
24114 * tree-ssa-loop-prefetch.c: Include calls.h dojump.h emit-rtl.h explow.h
24115 expmed.h fixed-value.h flags.h hashtab.h real.h rtl.h statistics.h
24116 stmt.h varasm.h.
24117 * dse.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
24118 fixed-value.h function.h hashtab.h statistics.h stmt.h varasm.h.
24119 * tree-switch-conversion.c: Include calls.h dojump.h emit-rtl.h explow.h
24120 expmed.h fixed-value.h hashtab.h insn-config.h real.h rtl.h
24121 statistics.h stmt.h.
24122 * generic-match-head.c: Include calls.h dojump.h emit-rtl.h explow.h
24123 expmed.h fixed-value.h hashtab.h insn-config.h real.h rtl.h
24124 statistics.h stmt.h varasm.h.
24125 * gimple-match-head.c: Likewise.
24126 * lto-cgraph.c: Likewise.
24127 * lto-section-in.c: Likewise.
24128 * lto-streamer-in.c: Likewise.
24129 * lto-streamer-out.c: Likewise.
24130 * tree-affine.c: Likewise.
24131 * tree-cfg.c: Likewise.
24132 * tree-cfgcleanup.c: Likewise.
24133 * tree-if-conv.c: Likewise.
24134 * tree-into-ssa.c: Likewise.
24135 * tree-ssa-alias.c: Likewise.
24136 * tree-ssa-copyrename.c: Likewise.
24137 * tree-ssa-dse.c: Likewise.
24138 * tree-ssa-forwprop.c: Likewise.
24139 * tree-ssa-live.c: Likewise.
24140 * tree-ssa-math-opts.c: Likewise.
24141 * tree-ssa-pre.c: Likewise.
24142 * tree-ssa-sccvn.c: Likewise.
24143 * tree-tailcall.c: Likewise.
24144 * tree-vect-generic.c: Likewise.
24145 * tree-sra.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
24146 fixed-value.h hashtab.h insn-config.h real.h rtl.h stmt.h varasm.h.
24147 * stor-layout.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
24148 fixed-value.h hashtab.h insn-config.h real.h statistics.h stmt.h.
24149 * varasm.c: Likewise.
24150 * coverage.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
24151 fixed-value.h hashtab.h insn-config.h real.h statistics.h stmt.h
24152 varasm.h.
24153 * init-regs.c: Likewise.
24154 * ira.c: Likewise.
24155 * omp-low.c: Likewise.
24156 * stack-ptr-mod.c: Likewise.
24157 * tree-ssa-reassoc.c: Likewise.
24158 * tree-complex.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
24159 fixed-value.h hashtab.h insn-config.h rtl.h statistics.h stmt.h
24160 varasm.h.
24161 * dwarf2cfi.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
24162 fixed-value.h hashtab.h insn-config.h statistics.h stmt.h varasm.h.
24163 * shrink-wrap.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
24164 fixed-value.h hashtab.h real.h rtl.h statistics.h stmt.h.
24165 * recog.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
24166 fixed-value.h hashtab.h real.h rtl.h statistics.h stmt.h varasm.h.
24167 * tree-ssa-phiopt.c: Likewise.
24168 * config/darwin.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
24169 fixed-value.h hashtab.h real.h statistics.h stmt.h.
24170 * config/fr30/fr30.c: Likewise.
24171 * config/frv/frv.c: Likewise.
24172 * expr.c: Likewise.
24173 * final.c: Likewise.
24174 * optabs.c: Likewise.
24175 * passes.c: Likewise.
24176 * simplify-rtx.c: Likewise.
24177 * stmt.c: Likewise.
24178 * toplev.c: Likewise.
24179 * var-tracking.c: Likewise.
24180 * gcse.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
24181 fixed-value.h hashtab.h real.h statistics.h stmt.h varasm.h.
24182 * lower-subreg.c: Likewise.
24183 * postreload-gcse.c: Likewise.
24184 * ree.c: Likewise.
24185 * reginfo.c: Likewise.
24186 * store-motion.c: Likewise.
24187 * combine.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
24188 fixed-value.h hashtab.h real.h stmt.h varasm.h.
24189 * emit-rtl.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
24190 fixed-value.h hashtab.h statistics.h stmt.h.
24191 * dojump.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
24192 fixed-value.h hashtab.h statistics.h stmt.h varasm.h.
24193 * except.c: Likewise.
24194 * explow.c: Likewise.
24195 * tree-dfa.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
24196 fixed-value.h insn-config.h real.h rtl.h statistics.h stmt.h
24197 varasm.h.
24198 * gimple-fold.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
24199 fixed-value.h insn-config.h real.h rtl.h statistics.h varasm.h.
24200 * tree-ssa-structalias.c: Likewise.
24201 * cfgexpand.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
24202 fixed-value.h insn-config.h real.h statistics.h.
24203 * calls.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
24204 fixed-value.h insn-config.h real.h statistics.h stmt.h.
24205 * bb-reorder.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
24206 fixed-value.h insn-config.h real.h statistics.h stmt.h varasm.h.
24207 * cfgbuild.c: Likewise.
24208 * function.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
24209 fixed-value.h real.h rtl.h statistics.h stmt.h.
24210 * cfgrtl.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
24211 fixed-value.h real.h rtl.h statistics.h stmt.h varasm.h.
24212 * dbxout.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
24213 fixed-value.h real.h statistics.h stmt.h.
24214 * auto-inc-dec.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
24215 fixed-value.h real.h statistics.h stmt.h varasm.h.
24216 * cprop.c: Likewise.
24217 * modulo-sched.c: Likewise.
24218 * postreload.c: Likewise.
24219 * ccmp.c: Include calls.h dojump.h emit-rtl.h explow.h fixed-value.h
24220 flags.h function.h hard-reg-set.h hashtab.h insn-config.h real.h
24221 statistics.h stmt.h varasm.h.
24222 * gimple-ssa-strength-reduction.c: Include calls.h dojump.h emit-rtl.h
24223 explow.h fixed-value.h flags.h hashtab.h insn-config.h real.h
24224 rtl.h statistics.h stmt.h varasm.h.
24225 * tree-ssa-loop-ivopts.c: Include calls.h dojump.h emit-rtl.h explow.h
24226 fixed-value.h flags.h hashtab.h real.h rtl.h statistics.h stmt.h
24227 varasm.h.
24228 * expmed.c: Include calls.h dojump.h emit-rtl.h explow.h fixed-value.h
24229 function.h hard-reg-set.h hashtab.h real.h statistics.h stmt.h
24230 varasm.h.
24231 * target-globals.c: Include calls.h dojump.h emit-rtl.h explow.h
24232 fixed-value.h function.h hashtab.h real.h statistics.h stmt.h
24233 varasm.h.
24234 * tree-ssa-address.c: Include calls.h dojump.h emit-rtl.h explow.h
24235 fixed-value.h hashtab.h real.h statistics.h stmt.h varasm.h.
24236 * cfgcleanup.c: Include calls.h dojump.h explow.h expmed.h fixed-value.h
24237 function.h real.h statistics.h stmt.h varasm.h.
24238 * alias.c: Include calls.h dojump.h explow.h expmed.h fixed-value.h
24239 insn-config.h real.h statistics.h stmt.h.
24240 * dwarf2out.c: Include calls.h dojump.h explow.h expmed.h fixed-value.h
24241 statistics.h stmt.h.
24242 * config/nvptx/nvptx.c: Include dojump.h emit-rtl.h explow.h expmed.h
24243 fixed-value.h flags.h hard-reg-set.h insn-config.h real.h
24244 statistics.h stmt.h varasm.h.
24245 * gimplify.c: Include dojump.h emit-rtl.h explow.h expmed.h
24246 fixed-value.h flags.h hashtab.h insn-config.h real.h rtl.h statistics.h.
24247 * asan.c: Include dojump.h emit-rtl.h explow.h expmed.h fixed-value.h
24248 flags.h hashtab.h insn-config.h real.h rtl.h statistics.h stmt.h.
24249 * ipa-devirt.c: Include dojump.h emit-rtl.h explow.h expmed.h
24250 fixed-value.h flags.h hashtab.h insn-config.h real.h rtl.h
24251 statistics.h stmt.h varasm.h.
24252 * ipa-polymorphic-call.c: Likewise.
24253 * config/aarch64/aarch64.c: Include dojump.h emit-rtl.h explow.h
24254 expmed.h fixed-value.h flags.h hashtab.h insn-config.h real.h
24255 statistics.h stmt.h.
24256 * config/c6x/c6x.c: Likewise.
24257 * config/aarch64/aarch64-builtins.c: Include dojump.h emit-rtl.h
24258 explow.h expmed.h fixed-value.h flags.h hashtab.h insn-config.h real.h
24259 statistics.h stmt.h varasm.h.
24260 * ipa-prop.c: Include dojump.h emit-rtl.h explow.h expmed.h
24261 fixed-value.h hashtab.h insn-config.h real.h rtl.h statistics.h
24262 stmt.h varasm.h.
24263 * ipa-split.c: Likewise.
24264 * tree-eh.c: Likewise.
24265 * tree-ssa-dce.c: Likewise.
24266 * tree-ssa-loop-niter.c: Likewise.
24267 * tree-vrp.c: Likewise.
24268 * config/nds32/nds32-cost.c: Include dojump.h emit-rtl.h explow.h
24269 expmed.h fixed-value.h hashtab.h insn-config.h real.h statistics.h
24270 stmt.h.
24271 * config/nds32/nds32-fp-as-gp.c: Likewise.
24272 * config/nds32/nds32-intrinsic.c: Likewise.
24273 * config/nds32/nds32-isr.c: Likewise.
24274 * config/nds32/nds32-md-auxiliary.c: Likewise.
24275 * config/nds32/nds32-memory-manipulation.c: Likewise.
24276 * config/nds32/nds32-pipelines-auxiliary.c: Likewise.
24277 * config/nds32/nds32-predicates.c: Likewise.
24278 * config/nds32/nds32.c: Likewise.
24279 * config/cris/cris.c: Include dojump.h emit-rtl.h explow.h expmed.h
24280 fixed-value.h hashtab.h real.h statistics.h.
24281 * config/alpha/alpha.c: Include dojump.h emit-rtl.h explow.h expmed.h
24282 fixed-value.h hashtab.h real.h statistics.h stmt.h.
24283 * config/arm/arm.c: Likewise.
24284 * config/avr/avr.c: Likewise.
24285 * config/bfin/bfin.c: Likewise.
24286 * config/h8300/h8300.c: Likewise.
24287 * config/i386/i386.c: Likewise.
24288 * config/ia64/ia64.c: Likewise.
24289 * config/iq2000/iq2000.c: Likewise.
24290 * config/m32c/m32c.c: Likewise.
24291 * config/m32r/m32r.c: Likewise.
24292 * config/m68k/m68k.c: Likewise.
24293 * config/mcore/mcore.c: Likewise.
24294 * config/mep/mep.c: Likewise.
24295 * config/mips/mips.c: Likewise.
24296 * config/mn10300/mn10300.c: Likewise.
24297 * config/moxie/moxie.c: Likewise.
24298 * config/pa/pa.c: Likewise.
24299 * config/rl78/rl78.c: Likewise.
24300 * config/rx/rx.c: Likewise.
24301 * config/s390/s390.c: Likewise.
24302 * config/sh/sh.c: Likewise.
24303 * config/sparc/sparc.c: Likewise.
24304 * config/spu/spu.c: Likewise.
24305 * config/stormy16/stormy16.c: Likewise.
24306 * config/v850/v850.c: Likewise.
24307 * config/vax/vax.c: Likewise.
24308 * config/cr16/cr16.c: Include dojump.h emit-rtl.h explow.h expmed.h
24309 fixed-value.h hashtab.h real.h statistics.h stmt.h varasm.h.
24310 * config/msp430/msp430.c: Likewise.
24311 * predict.c: Likewise.
24312 * value-prof.c: Likewise.
24313 * config/epiphany/epiphany.c: Include dojump.h emit-rtl.h explow.h
24314 expmed.h fixed-value.h hashtab.h statistics.h stmt.h.
24315 * config/microblaze/microblaze.c: Likewise.
24316 * config/nios2/nios2.c: Likewise.
24317 * config/rs6000/rs6000.c: Likewise.
24318 * tree.c: Include dojump.h emit-rtl.h explow.h expmed.h fixed-value.h
24319 insn-config.h real.h rtl.h statistics.h stmt.h.
24320 * cgraph.c: Include dojump.h emit-rtl.h explow.h expmed.h fixed-value.h
24321 insn-config.h real.h statistics.h stmt.h.
24322 * fold-const.c: Include dojump.h emit-rtl.h explow.h expmed.h
24323 fixed-value.h insn-config.h real.h statistics.h stmt.h varasm.h.
24324 * tree-inline.c: Include dojump.h emit-rtl.h explow.h expmed.h
24325 fixed-value.h real.h rtl.h statistics.h stmt.h varasm.h.
24326 * builtins.c: Include dojump.h emit-rtl.h explow.h expmed.h
24327 fixed-value.h real.h statistics.h stmt.h.
24328 * config/arc/arc.c: Include dojump.h emit-rtl.h explow.h expmed.h
24329 fixed-value.h statistics.h stmt.h.
24330 * config/visium/visium.c: Include dojump.h emit-rtl.h explow.h expmed.h
24331 stmt.h.
24332
24333 2015-01-15 Jakub Jelinek <jakub@redhat.com>
24334
24335 * gengtype.c (create_user_defined_type): Workaround
24336 -Wmaybe-uninitialized false positives.
24337 * cse.c (fold_rtx): Likewise.
24338 * loop-invariant.c (gain_for_invariant): Likewise.
24339
24340 2015-01-15 Eric Botcazou <ebotcazou@adacore.com>
24341
24342 * expr.c (expand_expr_real_1) <normal_inner_ref>: Use the expression to
24343 set the memory attributes in all cases but clear MEM_EXPR if need be.
24344
24345 2015-01-15 Yuri Rumyantsev <ysrumyan@gmail.com>
24346
24347 PR tree-optimization/64434
24348 * cfgexpand.c (reorder_operands): New function.
24349 (expand_gimple_basic_block): Insert call of reorder_operands if
24350 optimized is true.
24351
24352 2015-01-15 Matthew Fortune <matthew.fortune@imgtec.com>
24353
24354 * config/mips/micromips.md (*swp): Remove explicit parallel.
24355 (jraddiusp, *movep<MOVEP1:mode><MOVEP2:mode>): Likewise.
24356 * config/mips/mips-dsp.md (add<DSPV:mode>3): Likewise.
24357 (mips_add<DSP:dspfmt1>_s_<DSP:dspfmt2>, sub<DSPV:mode>3): Likewise.
24358 (mips_sub<DSP:dspfmt1>_s_<DSP:dspfmt2>, mips_addsc): Likewise.
24359 (mips_addwc, mips_absq_s_<DSPQ:dspfmt2>): Likewise.
24360 (mips_precrq_rs_ph_w, mips_precrqu_s_qb_ph): Likewise.
24361 (mips_shll_<DSPV:dspfmt2>, mips_shll_s_<DSPQ:dspfmt2>): Likewise.
24362 (mips_muleu_s_ph_qbl, mips_muleu_s_ph_qbr): Likewise.
24363 (mips_mulq_rs_ph, mips_muleq_s_w_phl, mips_muleq_s_w_phr): Likewise.
24364 (mips_dpaq_s_w_ph, mips_dpsq_s_w_ph, mips_mulsaq_s_w_ph): Likewise.
24365 (mips_dpaq_sa_l_w, mips_dpsq_sa_l_w, mips_maq_s_w_phl): Likewise.
24366 (mips_maq_s_w_phr, mips_maq_sa_w_phl, mips_maq_sa_w_phr): Likewise.
24367 (mips_extr_w, mips_extr_r_w, mips_extr_rs_w): Likewise.
24368 (mips_extr_s_h, mips_extp, mips_extpdp, mips_mthlip): Likewise.
24369 (mips_wrdsp): Likewise.
24370 * config/mips/mips-dspr2.md (mips_absq_s_qb): Remove explicit
24371 parallel.
24372 (mips_addu_ph, mips_addu_s_ph, mips_cmpgdu_eq_qb): Likewise.
24373 (mips_cmpgdu_lt_qb, mips_cmpgdu_le_qb, mulv2hi3): Likewise.
24374 (mips_mul_s_ph, mips_mulq_rs_w, mips_mulq_s_ph): Likewise.
24375 (mips_mulq_s_w, mips_subu_ph, mips_subu_s_ph): Likewise.
24376 (mips_dpaqx_s_w_ph, mips_dpaqx_sa_w_ph): Likewise.
24377 (mips_dpsqx_s_w_ph, mips_dpsqx_sa_w_ph): Likewise.
24378 * config/mips/mips-fixed.md (usadd<mode>3): Remove explicit parallel.
24379 (ssadd<mode>3, ussub<mode>3, sssub<mode>3, ssmul<mode>3): Likewise.
24380 (ssmaddsqdq4, ssmsubsqdq4): Likewise.
24381
24382 2015-01-14 Matthew Fortune <matthew.fortune@imgtec.com>
24383
24384 * config/mips/mips.c (mips_rtx_costs): Set costs for LSA/DLSA.
24385 (mips_print_operand): Support 'y' to print exact log2 in decimal
24386 of a const_int.
24387 * config/mips/mips.h (ISA_HAS_LSA): New define.
24388 (ISA_HAS_DLSA): Likewise.
24389 * config/mips/mips.md (<GPR:d>lsa): New define_insn.
24390 * config/mips/predicates.md (const_immlsa_operand): New predicate.
24391
24392 2015-01-15 Martin Liska <mliska@suse.cz>
24393
24394 PR target/64377
24395 * optc-save-gen.awk: Add support for array types.
24396
24397 2015-01-15 Richard Biener <rguenther@suse.de>
24398
24399 PR middle-end/64365
24400 * tree-data-ref.c (dr_analyze_indices): Make sure that accesses
24401 for MEM_REF access functions with the same base can never partially
24402 overlap.
24403
24404 2015-01-14 Marcos Diaz <marcos.diaz@tallertechnologies.com>
24405
24406 * common.opt: New option -fstack-protector-explicit.
24407 * cfgexpand.c (SPCT_FLAG_EXPLICIT): New enum.
24408 (stack_protect_decl_phase): Handle stack_protect attribute for
24409 explicit stack protection requests.
24410 (expand_used_vars): Similarly.
24411 * doc/cpp.texi (__SSP_EXPLICIT__): Document predefined macro.
24412 * doc/extend.texi: Add documentation for "stack_protect" attribute.
24413 * doc/invoke.texi: Add documentation for -fstack-protector-explicit.
24414
24415 2015-01-14 Oleg Endo <olegendo@gcc.gnu.org>
24416
24417 PR target/53988
24418 * config/sh/sh-protos.h (sh_find_set_of_reg): Add option to ignore
24419 reg-reg copies.
24420 (sh_extending_set_of_reg): New struct.
24421 (sh_find_extending_set_of_reg, sh_split_tst_subregs,
24422 sh_remove_reg_dead_or_unused_notes): New Declarations.
24423 * config/sh/sh.c (sh_remove_reg_dead_or_unused_notes,
24424 sh_find_extending_set_of_reg, sh_split_tst_subregs,
24425 sh_extending_set_of_reg::use_as_extended_reg): New functions.
24426 * config/sh/sh.md (*tst<mode>_t_zero): Rename to *tst<mode>_t_subregs,
24427 convert to insn_and_split and use new function sh_split_tst_subregs.
24428
24429 2015-01-14 Sandra Loosemore <sandra@codesourcery.com>
24430
24431 * doc/invoke.texi (Option Summary): Reclassify -fuse-ld as a linker
24432 option.
24433 (Optimization Options): Move -fuse-ld documentation to...
24434 (Link Options): ...here.
24435
24436 2015-01-14 Matthew Fortune <matthew.fortune@imgtec.com>
24437
24438 * config/mips/constraints.md (ZC): Add support for R6 LL/SC
24439 offsets.
24440 (ZD): Update to use ISA_HAS_9BIT_DISPLACEMENT.
24441 * config/mips/mips.h (ISA_HAS_PREFETCH_9BIT): Rename to...
24442 (ISA_HAS_9BIT_DISPLACEMENT): ... this. New macro.
24443 * config/mips/sync.md (sync_compare_and_swap<mode>): Use ZC
24444 instead of ZR for the memory operand of LL/SC.
24445 (compare_and_swap_12, sync_add<mode>): Likewise.
24446 (sync_<optab>_12, sync_old_<optab>_12): Likewise.
24447 (sync_new_<optab>_12, sync_nand_12): Likewise.
24448 (sync_old_nand_12, sync_new_nand_12): Likewise.
24449 (sync_sub<mode>, sync_old_add<mode>): Likewise.
24450 (sync_old_sub<mode>, sync_new_add<mode>): Likewise.
24451 (sync_new_sub<mode>, sync_<optab><mode>): Likewise.
24452 (sync_old_<optab><mode>, sync_new_<optab><mode>"): Likewise.
24453 (sync_nand<mode>, sync_old_nand<mode>): Likewise.
24454 (sync_new_nand<mode>, sync_lock_test_and_set<mode>): Likewise.
24455 (test_and_set_12, atomic_compare_and_swap<mode>): Likewise.
24456 (atomic_exchange<mode>_llsc, atomic_fetch_add<mode>_llsc): Likewise.
24457 * doc/md.texi (ZC): Update description.
24458
24459 2015-01-14 Andrew MacLeod <amacleod@redhat.com>
24460
24461 * builtins.c (expand_builtin_atomic_exchange): Remove error when
24462 memory model is CONSUME.
24463 (expand_builtin_atomic_compare_exchange, expand_builtin_atomic_load,
24464 expand_builtin_atomic_store): Change invalid memory model errors to
24465 warnings.
24466 (expand_builtin_atomic_clear): Change invalid model errors to warnings
24467 and issue warning for CONSUME.
24468
24469 2015-01-14 Aldy Hernandez <aldyh@redhat.com>
24470
24471 * lto-cgraph: Update function comments for
24472 lto_symtab_encoder_encode_*.
24473
24474 2015-01-14 Ilya Verbin <ilya.verbin@intel.com>
24475
24476 * Makefile.in (site.exp): Do not set ENABLE_LTO.
24477
24478 2015-01-14 Ilya Verbin <ilya.verbin@intel.com>
24479
24480 * cgraphunit.c (ipa_passes): Remove argument from ipa_write_summaries.
24481 * lto-cgraph.c (select_what_to_stream): Remove argument, use
24482 lto_stream_offload_p instead.
24483 * lto-streamer.h (select_what_to_stream): Remove argument.
24484 * passes.c (ipa_write_summaries): Likewise.
24485 * tree-pass.h (ipa_write_summaries): Likewise.
24486
24487 2015-01-14 Richard Biener <rguenther@suse.de>
24488
24489 PR tree-optimization/59354
24490 * tree-vect-slp.c (vect_build_slp_tree_1): Treat loads from
24491 groups larger than the slp group size as having gaps.
24492
24493 2015-01-14 Andrew MacLeod <amacleod@redhat.com>
24494
24495 PR middle-end/59448
24496 * builtins.c (get_memmodel): Promote consume to acquire always.
24497
24498 2015-01-14 Ilya Tocar <ilya.tocar@intel.com>
24499
24500 PR target/64386
24501 * config/i386/i386.c (ix86_expand_sse_cmp): Handle V64QImode,
24502 V32HImode.
24503
24504 2015-01-14 Ilya Tocar <ilya.tocar@intel.com>
24505
24506 PR target/64393
24507 * common/config/i386/i386-common.c (OPTION_MASK_ISA_AVX512VBMI_SET):
24508 Enable AVX512BW.
24509 (OPTION_MASK_ISA_AVX512BW_UNSET): Disable AVX512VBMI.
24510 * config/i386/i386.c (ix86_hard_regno_mode_ok): Don't check
24511 AVX512VBMI, as it implies AVX512BW.
24512
24513 2015-01-14 Ilya Tocar <ilya.tocar@intel.com>
24514
24515 PR target/64387
24516 * config/i386/sse.md (vec_unpacks_hi_v8sf): Fix predicate.
24517 (vec_unpacks_hi_v16sf): Ditto.
24518
24519 2015-01-14 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
24520
24521 * config/aarch64/arm_neon.h: Error out if AdvancedSIMD
24522 is not available.
24523
24524 2015-01-14 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
24525
24526 * doc/invoke.texi (mapcs): Mention deprecation.
24527 (mapcs-frame): Likewise.
24528
24529 2015-01-14 Thomas Preud'homme <thomas.preudhomme@arm.com>
24530
24531 PR target/64453
24532 * config/arm/arm.c (callee_saved_reg_p): Define.
24533 (arm_compute_save_reg0_reg12_mask): Use callee_saved_reg_p to check if
24534 register is callee saved instead of !call_used_regs[reg].
24535 (thumb1_compute_save_reg_mask): Likewise.
24536
24537 2015-01-14 Hale Wang <hale.wang@arm.com>
24538
24539 * config/arm/arm.c: Tune the max_cond_insns/branch_cost for
24540 Cortex-M7.
24541
24542 2015-01-14 Richard Biener <rguenther@suse.de>
24543
24544 PR lto/64415
24545 * tree-inline.c (insert_debug_decl_map): Check destination
24546 function MAY_HAVE_DEBUG_STMTS.
24547 (insert_init_debug_bind): Likewise.
24548 (insert_init_stmt): Remove redundant check.
24549 (remap_gimple_stmt): Drop debug stmts if the destination
24550 function has var-tracking assignments disabled.
24551
24552 2015-01-14 Martin Liska <mliska@suse.cz>
24553
24554 * ipa-icf-gimple.c (func_checker::compare_operand): Add support for
24555 IMAGPART_EXPR and REALPART_EXPR and fix BIT_FIELD_REF comparison.
24556
24557 2015-01-14 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
24558
24559 PR target/64460
24560 * config/arm/arm.md (*<arith_shift_insn>_multsi): Set 'shift' to 2.
24561 (*<arith_shift_insn>_shiftsi): Set 'shift' attr to 3.
24562
24563 2015-01-14 Matthew Fortune <matthew.fortune@imgtec.com>
24564
24565 * config/mips/mips.h (MIPS_ISA_LEVEL_SPEC): Only infer an ISA
24566 level from an ARCH; do not inject the default.
24567 (MIPS_DEFAULT_ISA_LEVEL_SPEC): New macro split out from
24568 MIPS_ISA_LEVEL_SPEC.
24569 (MIPS_ISA_NAN2008_SPEC): Update comment.
24570 (BASE_DRIVER_SELF_SPECS): Likewise.
24571 * config/mips/elfoabi.h (DRIVER_SELF_SPECS): Add
24572 MIPS_DEFAULT_ISA_LEVEL_SPEC.
24573 * config/mips/mti-elf.h (DRIVER_SELF_SPECS): Likewise.
24574 * config/mips/mti-linux.h (DRIVER_SELF_SPECS): Likewise.
24575 * config/mips/sde.h (DRIVER_SELF_SPECS): Likewise.
24576
24577 2015-01-14 Richard Biener <rguenther@suse.de>
24578
24579 PR tree-optimization/64493
24580 PR tree-optimization/64495
24581 * tree-vect-loop.c (vect_finalize_reduction): For double-reductions
24582 assign the proper vectorized PHI to the inner loop exit PHIs.
24583
24584 2015-01-14 Joey Ye <joey.ye@arm.com>
24585
24586 * config/arm/arm.c (arm_compute_save_reg_mask):
24587 Do not save lr in case of tail call.
24588 * config/arm/thumb2.md (*thumb2_pop_single): New pattern.
24589
24590 2015-01-14 Martin Uecker <uecker@eecs.berkeley.edu>
24591
24592 * tree-vrp.c (check_array_ref): Emit more warnings
24593 for warn_array_bounds >= 2.
24594 * common.opt: New option -Warray-bounds=.
24595 * doc/invoke.texi: Document -Warray-bounds=.
24596
24597 2015-01-14 Chung-Ju Wu <jasonwucj@gmail.com>
24598
24599 * config/nds32/nds32.opt (mforce-fp-as-gp): Remove.
24600 (mforbid-fp-as-gp): Remove.
24601 (mex9): Remove.
24602 * config/nds32/nds32-fp-as-gp.c (nds32_have_prologue_p): Remove.
24603 (nds32_symbol_load_store_p): Remove.
24604 (nds32_fp_as_gp_check_available): Clean up implementation.
24605 * config/nds32/nds32.h (LINK_SPEC): Remove -mforce-as-gp and -mex9
24606 cases.
24607 * config/nds32/nds32.c (nds32_asm_file_start): No need to consider
24608 fp-as-gp and ex9 cases.
24609
24610 2015-01-13 Jan Hubicka <hubicka@ucw.cz>
24611
24612 * tree-profile.c (init_ic_make_global_vars): Drop workaround
24613 for bintuils bug 14342.
24614 (init_ic_make_global_vars): Likewise.
24615 (gimple_init_edge_profiler): Likewise.
24616 (gimple_gen_ic_func_profiler): Likewise.
24617
24618 2015-01-13 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
24619
24620 * ipa-inline.c (inline_small_functions): Swap the operands in
24621 enum.
24622
24623 2015-01-13 Jan Hubicka <hubicka@ucw.cz>
24624
24625 PR ipa/64481
24626 * ipa-inline-analysis.c (node_growth_cache): Remove.
24627 (initialize_growth_caches): Do not initialize it.
24628 (free_growth_caches): Do not free it.
24629 (do_estimate_growth): Rename to ...
24630 (estimate_growth): ... this one; drop growth cache code.
24631 (growth_likely_positive): Always go the heuristics way.
24632 * ipa-inline.c (can_inline_edge_p): Walk through aliases.
24633 (reset_edge_caches): Do not reset node growth.
24634 (heap_edge_removal_hook): Do not maintain cache.
24635 (inline_small_functions): Likewise; strenghten sanity check.
24636 (ipa_inline): Do not maintain caches.
24637 * ipa-inline.h (node_growth_cache): Remove.
24638 (do_estimate_growth): Remove to ...
24639 (estimate_growth): this one; remove inline version.
24640 (reset_node_growth_cache): Remove.
24641
24642 2015-01-13 Jan Hubicka <hubicka@ucw.cz>
24643
24644 PR ipa/64565
24645 * ipa-inline.c (inline_small_functions): Update callee keys after
24646 resolving speculation
24647 (inline_small_functions): Always check monotonicity of the queue.
24648
24649 2015-01-13 Marek Polacek <polacek@redhat.com>
24650
24651 PR middle-end/64391
24652 * trans-mem.c (get_attrs_for): Return NULL_TREE if X is NULL_TREE.
24653
24654 2015-01-13 Jakub Jelinek <jakub@redhat.com>
24655
24656 PR rtl-optimization/64286
24657 * ree.c (combine_reaching_defs): Move part of comment earlier,
24658 remove !SCALAR_INT_MODE_P check.
24659 (add_removable_extension): Don't add vector mode
24660 extensions if all uses of the source register aren't the same
24661 vector extensions.
24662
24663 2015-01-13 Renlin Li <renlin.li@arm.com>
24664
24665 * config/arm/arm.h (CLZ_DEFINED_VALUE_AT_ZERO): Return 2.
24666 (CTZ_DEFINED_VALUE_AT_ZERO): Ditto.
24667
24668 2015-01-13 Martin Liska <mliska@suse.cz>
24669
24670 * ipa-icf.c (sem_function::equals_private): Call new functions
24671 cl_target_option_print_diff and cl_optimization_print_diff.
24672 * optc-save-gen.awk (cl_target_option_print_diff): New function.
24673 (cl_optimization_print_diff): Likewise.
24674 * opth-gen.awk: Likewise.
24675
24676 2015-01-13 Richard Sandiford <richard.sandiford@arm.com>
24677
24678 * config/aarch64/aarch64.md (subsi3, *subsi3_uxtw, subdi3)
24679 (*sub_<optab><ALLX:mode>_<GPI:mode>, *sub_<optab><SHORT:mode>_si_uxtw)
24680 (*sub_<optab><ALLX:mode>_shft_<GPI:mode>)
24681 (*sub_<optab><SHORT:mode>_shft_si_uxtw, *sub_<optab><mode>_multp2)
24682 (*sub_<optab>si_multp2_uxtw, *sub_uxt<mode>_multp2)
24683 (*sub_uxtsi_multp2_uxtw): Add stack pointer sources.
24684
24685 2015-01-13 Andrew Pinski <apinski@cavium.com>
24686
24687 * config/aarch64/aarch64.c (fusion_load_store): Check dest mode
24688 instead of src mode.
24689
24690 2015-01-13 Richard Biener <rguenther@suse.de>
24691
24692 PR lto/64373
24693 * lto-streamer-out.c (tree_is_indexable): Guard for NULL
24694 DECL_CONTEXT.
24695
24696 2015-01-13 Andrew Pinski <apinski@cavium.com>
24697
24698 * config/aarch64/aarch64.c (aarch64_operands_ok_for_ldpstp): Reject
24699 volatile mems.
24700 (aarch64_operands_adjust_ok_for_ldpstp): Likewise.
24701
24702 2015-01-13 Jakub Jelinek <jakub@redhat.com>
24703
24704 PR middle-end/63974
24705 * cfgexpand.c (expand_computed_goto): Don't call
24706 convert_memory_address here.
24707
24708 2015-01-13 Richard Biener <rguenther@suse.de>
24709
24710 PR tree-optimization/64406
24711 * tree-loop-distibution.c (pass_loop_distribution::execute):
24712 Reset the SCEV hashtable if we distributed anything.
24713
24714 2015-01-13 Richard Biener <rguenther@suse.de>
24715
24716 PR tree-optimization/64404
24717 * tree-vect-stmts.c (vectorizable_load): Reject conflicting
24718 SLP types for CSEd loads.
24719
24720 2015-01-13 Thomas Preud'homme <thomas.preudhomme@arm.com>
24721
24722 PR tree-optimization/64436
24723 * tree-ssa-math-opts.c (find_bswap_or_nop_1): Move code performing the
24724 merge of two symbolic numbers for a bitwise OR to ...
24725 (perform_symbolic_merge): This. Also fix computation of the range and
24726 end of the symbolic number corresponding to the result of a bitwise OR.
24727
24728 2015-01-13 Richard Biener <rguenther@suse.de>
24729
24730 PR tree-optimization/64568
24731 * tree-ssa-forwprop.c (pass_forwprop::execute): Properly
24732 release defs of removed stmts, avoid splitting TARGET_MEM_REFs.
24733
24734 2015-01-13 Chung-Ju Wu <jasonwucj@gmail.com>
24735
24736 * config/nds32/nds32.c (nds32_legitimate_address_p): Consider
24737 TARGET_CMODEL_LARGE and TARGET_CMODEL_MEDIUM cases.
24738
24739 2015-01-13 Chung-Ju Wu <jasonwucj@gmail.com>
24740
24741 * config/nds32/nds32.h (NDS32_SYMBOL_FLAG_RODATA): Define our own
24742 target-specific symbol_ref flag.
24743 (NDS32_SYMBOL_REF_RODATA_P): Define it to check if the symbol_ref
24744 resides in rodata section.
24745 * config/nds32/nds32.c (TARGET_ENCODE_SECTION_INFO): Define.
24746 (nds32_encode_section_info): New function.
24747
24748 2015-01-13 Chung-Ju Wu <jasonwucj@gmail.com>
24749
24750 * config/nds32/nds32.md (call): Use pseudo instruction bal which
24751 clobbers TA_REGNUM if large code model is specified.
24752 (call_register): Likewise.
24753 (call_immediate): Likewise.
24754 (call_value): Likewise.
24755 (call_value_register): Likewise.
24756 (call_value_immediate): Likewise.
24757
24758 2015-01-13 Chung-Ju Wu <jasonwucj@gmail.com>
24759
24760 * config/nds32/nds32.h (TARGET_CMODEL_SMALL): New macro.
24761 (TARGET_CMODEL_MEDIUM): New macro.
24762 (TARGET_CMODEL_LARGE): New macro.
24763 * config/nds32/nds32.c (nds32_asm_file_start): Display corresponding
24764 code model setting in assembly code.
24765
24766 2015-01-13 Chung-Ju Wu <jasonwucj@gmail.com>
24767
24768 * common/config/nds32/nds32-common.c (TARGET_DEFAULT_TARGET_FLAGS):
24769 Remove MASK_GP_DIRECT flag.
24770 * config/nds32/nds32.h (MULTILIB_DEFAULTS): Have -mcmodel=medium as
24771 one of the multilib default options.
24772 * config/nds32/nds32.opt (mgp-direct): Remove.
24773 * config/nds32/t-mlibs (MULTILIB_OPTIONS): Use -mcmodel instead of
24774 -mgp-direct. We also remove unnecessary -mlittle-endian/-mbig-endian.
24775
24776 2015-01-13 Chung-Ju Wu <jasonwucj@gmail.com>
24777
24778 * config/nds32/nds32.opt (mcmodel): Add new option.
24779 * config/nds32/nds32-opts.h (nds32_cmodel_type): Add new enum type
24780 to describe code model.
24781
24782 2015-01-13 Oleg Endo <olegendo@gcc.gnu.org>
24783
24784 PR target/64479
24785 * rtlanal.c (set_reg_p): Handle SEQUENCE constructs.
24786
24787 2015-01-12 Kaz Kojima <kkojima@gcc.gnu.org>
24788
24789 * config/sh/sh.c (sh_atomic_assign_expand_fenv): New function.
24790 (TARGET_ATOMIC_ASSIGN_EXPAND_FENV): Define.
24791 (sh_builtin_get_fpscr, sh_builtin_set_fpscr): New variables.
24792 (sh_init_builtins): Record decls for __builtin_sh_get_fpscr and
24793 __builtin_sh_set_fpscr.
24794
24795 2015-01-12 Sandra Loosemore <sandra@codesourcery.com>
24796
24797 * doc/invoke.texi ([-Wsuggest-attribute=]): Don't use parentheses
24798 after a funtion name just to indicate it is a function.
24799 ([-fsanitize-undefined-trap-on-error]): Likewise.
24800 ([-fdbg-cnt=]): Likewise.
24801 ([-mmemcpy]): Likewise.
24802 ([-mflush-func]): Likewise.
24803 ([-msynci]): Likewise.
24804
24805 2015-01-12 Sandra Loosemore <sandra@codesourcery.com>
24806
24807 * doc/invoke.texi ([-Wbad-function-cast]): Rewrite to avoid confusing
24808 example.
24809
24810 2015-01-12 Jakub Jelinek <jakub@redhat.com>
24811
24812 PR tree-optimization/64563
24813 * tree-vrp.c (vrp_evaluate_conditional): Check for VR_RANGE
24814 instead of != VR_VARYING.
24815
24816 PR target/64513
24817 * config/i386/i386.c (ix86_expand_prologue): Add
24818 REG_FRAME_RELATED_EXPR to %rax and %r10 pushes.
24819
24820 PR tree-optimization/64454
24821 * tree-vrp.c (simplify_div_or_mod_using_ranges): Optimize
24822 op0 % op1 into op0 if op0 is in range [-op1 + 1, op1 - 1]
24823 for signed or [0, op1 - 1] for unsigned modulo.
24824 (simplify_stmt_using_ranges): Call simplify_div_or_mod_using_ranges
24825 even if op1 does not satisfy integer_pow2p.
24826
24827 PR other/64370
24828 * sreal.c (sreal::to_double): Use ldexp instead of scalbnl.
24829
24830 2015-01-12 Jeff Law <law@redhat.com>
24831
24832 PR target/64461
24833 * config/m68k/m68k.md (truncsiqi2): Disable for TARGET_COLDFIRE.
24834 (trunchiqi2, truncsihi2): Similarly.
24835
24836 * config/h8300/h8300.c (Fpa): Use RTX_FRAME_RELATED_P directly
24837 rather than calling F.
24838
24839 2015-01-12 Bernd Edlinger <bernd.edlinger@hotmail.de>
24840
24841 * tsan.c (instrument_expr): Use force_gimple_operand.
24842 Use may_be_nonaddressable_p instead of is_gimple_addressable.
24843
24844 2015-01-12 Richard Biener <rguenther@suse.de>
24845
24846 PR tree-optimization/64530
24847 * tree-loop-distribution.c (pg_add_dependence_edges): Shuffle
24848 back dr1.
24849
24850 2015-01-12 Richard Biener <rguenther@suse.de>
24851
24852 PR middle-end/64357
24853 * tree-cfg.c (gimple_can_merge_blocks_p): Protect simple
24854 latches properly.
24855
24856 2015-01-12 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
24857
24858 * config/arm/arm.c (arm_cortex_a12_tune): Update entries to match
24859 Cortex-A17 tuning parameters.
24860 * config/arm/arm-cores.def (cortex-a12): Schedule for cortex-a17.
24861
24862 2015-01-12 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
24863
24864 * config/arm/arm-protos.h (tune_params): Add fuseable_ops field.
24865 * config/arm/arm.c (arm_macro_fusion_p): New function.
24866 (arm_macro_fusion_pair_p): Likewise.
24867 (TARGET_SCHED_MACRO_FUSION_P): Define.
24868 (TARGET_SCHED_MACRO_FUSION_PAIR_P): Likewise.
24869 (ARM_FUSE_NOTHING): Likewise.
24870 (ARM_FUSE_MOVW_MOVT): Likewise.
24871 (arm_slowmul_tune, arm_fastmul_tune, arm_strongarm_tune,
24872 arm_xscale_tune, arm_9e_tune, arm_v6t2_tune, arm_cortex_tune,
24873 arm_cortex_a8_tune, arm_cortex_a7_tune, arm_cortex_a15_tune,
24874 arm_cortex_a53_tune, arm_cortex_a57_tune, arm_cortex_a9_tune,
24875 arm_cortex_a12_tune, arm_v7m_tune, arm_v6m_tune, arm_fa726te_tune
24876 arm_cortex_a5_tune): Specify fuseable_ops value.
24877
24878 2015-01-12 H.J. Lu <hongjiu.lu@intel.com>
24879
24880 PR bootstrap/64561
24881 * configure.ac (HAVE_LD_PIE_COPYRELOC): Update Linux/x86-64 linker
24882 test for PIE with copy reloc.
24883 * configure: Regenerated.
24884
24885 2015-01-12 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
24886
24887 * config/arm/arm.c (arm_load_tp): Use R0_REGNUM instead of constant 0
24888 in gen_rtx_REG.
24889 (arm_tls_descseq_addr): Likewise.
24890 (arm_gen_movmemqi): Likewise.
24891 (arm_expand_epilogue_apcs_frame): Likewise.
24892 (arm_expand_epilogue): Likewise.
24893 (arm_expand_prologue): Likewise. Use R1_REGNUM instead of constant 1
24894 in gen_rtx_REG.
24895
24896 2015-01-12 Martin Liska <mliska@suse.cz>
24897
24898 PR ipa/64550
24899 * ipa-icf-gimple.c (func_checker::compare_memory_operand): Compare
24900 volatility for correct operands.
24901
24902 2015-01-12 Martin Liska <mliska@suse.cz>
24903
24904 * ipa-icf.c (sem_function::equals_wpa): Add indirect_calls as
24905 indication that a function is not leaf.
24906 (sem_function::compare_polymorphic_p): Likewise.
24907
24908 2015-01-12 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
24909
24910 * config/visium/visium.c: Add includes hashtab.h, hash-set.h,
24911 machmode.h, input.h, statistics.h, vec.h, double-int.h, real.h,
24912 fixed-value.h, alias.h, symtab.h, tree-core.h, wide-int.h, inchash.h,
24913 fold-const.h, tree-check.h.
24914
24915 2015-01-12 Jan Hubicka <hubicka@ucw.cz>
24916
24917 PR ipa/63967
24918 PR ipa/64425
24919 * ipa-inline.c (compute_uninlined_call_time,
24920 compute_inlined_call_time): Use counts for extra precision when
24921 needed possible.
24922 (big_speedup_p): Fix formating.
24923 (RELATIVE_TIME_BENEFIT_RANGE): Remove.
24924 (relative_time_benefit): Remove.
24925 (edge_badness): Turn DECL_DISREGARD_INLINE_LIMITS into hint;
24926 merge guessed and read profile paths.
24927 (inline_small_functions): Count only !optimize_size functions into
24928 initial size; be more lax about sanity check when profile is used;
24929 be sure to update inlined function profile when profile is read.
24930
24931 2015-01-12 Jan Hubicka <hubicka@ucw.cz>
24932
24933 PR ipa/63470
24934 * ipa-inline-analysis.c (inline_edge_duplication_hook): Adjust
24935 cost when edge becomes direct.
24936 * ipa-prop.c (make_edge_direct): Do not adjust when speculation
24937 is resolved or when introducing new speculation.
24938
24939 2015-01-12 Chen Gang <gang.chen.5i5j@gmail.com>
24940
24941 PR ipa/64551
24942 PR ipa/64552
24943 * ipa-icf.c (sem_function::equals_private): Use '&&' instead of
24944 '||' to fix typo issue.
24945
24946 * gcc/tree.h (target_opts_for_fn): Check NULL_TREE since it can
24947 accept and return NULL.
24948
24949 2015-01-12 Martin Liska <mliska@suse.cz>
24950
24951 * cgraph.c (cgraph_edge::remove_callee): Move function to header
24952 file for being inlined.
24953 (cgraph_set_edge_callee): Delete.
24954 (cgraph_edge::redirect_callee): Move function to header file
24955 for being inlined.
24956 (cgraph_edge::make_direct): Use new function.
24957 (cgraph_edge::dump_edge_flags): New function created from
24958 static dump_edge_flags function.
24959 (cgraph_node::dump): Use new function.
24960 (cgraph_edge::verify_count_and_frequency): New function created
24961 from verify_edge_count_and_frequency.
24962 (cgraph_edge::verify_corresponds_to_fndecl): New function created
24963 from verify_edge_corresponds_to_fndecl.
24964 (verify_edge_corresponds_to_fndecl): Delete.
24965 (cgraph_node::verify_node): Use new function.
24966 * cgraph.h (cgraph_edge::set_callee): New function.
24967 (cgraph_edge::dump_edge_flags): Likewise.
24968 (cgraph_edge::verify_corresponds_to_fndecl): Likewise.
24969
24970 2015-01-11 Jan Hubicka <hubicka@ucw.cz>
24971
24972 * ipa-utils.c (estimate_function_body_sizes): Do not
24973 free node params when called late with early=true.
24974
24975 2015-01-11 James Greenhalgh <james.greenhalgh@arm.com>
24976
24977 * doc/md.texi (Instruction Patterns): Rewrite text for
24978 clarity.
24979 (Example): Likewise.
24980
24981 2015-01-10 Sandra Loosemore <sandra@codesourcery.com>
24982
24983 * doc/invoke.texi (Option Summary): Break long lines.
24984 [(-fdiagnostics-color)]: Put long literal in @smallexample
24985 instead of inline.
24986 [(-fsanitize-recover)]: Likewise.
24987 [(-fdump-rtl-split*)]: Rewrite to fix over-full hbox.
24988 [(-ffast-math)]: Likewise.
24989 [(--param max-inline-insns-recursive)]: Likewise.
24990 [(--param max-inline-recursive-depth)]: Likewise.
24991 [(-mno-text-section-literals)]: Likewise.
24992
24993 2015-01-10 Thomas Schwinge <thomas@codesourcery.com>
24994
24995 * doc/install.texi: Update for libgomp being renamed from "GNU
24996 OpenMP Runtime Library" to "GNU Offloading and Multi Processing
24997 Runtime Library".
24998 * doc/sourcebuild.texi: Likewise.
24999
25000 2015-01-10 Anthony Green <green@moxielogic.com>
25001
25002 * config/moxie/moxie.c (moxie_option_override): Fix forcing of
25003 mul.x availability for moxiebox configuration.
25004
25005 2015-01-09 Anthony Green <green@moxielogic.com>
25006
25007 * config/moxie/moxie.md: Tabify assembly output.
25008
25009 2015-01-09 Anthony Green <green@moxielogic.com>
25010
25011 * config/moxie/moxie.md (CC_REG): Correct register definition.
25012
25013 2015-01-09 Sandra Loosemore <sandra@codesourcery.com>
25014
25015 * doc/invoke.texi ([-fvtable-verify]): Copy-edit and fix markup.
25016 ([-fvtv-debug], [-fvtv-counts]): Likewise. Correct location
25017 of log files.
25018
25019 2015-01-09 Andreas Tobler <andreast@gcc.gnu.org>
25020
25021 * config/arm/arm.h (MAX_SYNC_LIBFUNC_SIZE): Delete semicolon.
25022
25023 2015-01-09 Bernd Schmidt <bernds@codesourcery.com>
25024 Jakub Jelinek <jakub@redhat.com>
25025
25026 PR middle-end/64412
25027 * lto-streamer.h (lto_stream_offload_p): New declaration.
25028 * lto-streamer.c (lto_stream_offload_p): New variable.
25029 * cgraphunit.c (ipa_passes): Set lto_stream_offload_p
25030 at the same time as section_name_prefix.
25031 * lto-streamer-out.c (hash_tree): Don't hash TREE_TARGET_OPTION
25032 if lto_stream_offload_p.
25033 * tree-streamer-out.c (streamer_pack_tree_bitfields): Don't
25034 stream TREE_TARGET_OPTION if lto_stream_offload_p.
25035 (write_ts_function_decl_tree_pointers): Don't
25036 stream DECL_FUNCTION_SPECIFIC_TARGET if lto_stream_offload_p.
25037 * tree-streamer-in.c (unpack_value_fields): Don't stream
25038 TREE_TARGET_OPTION in if ACCEL_COMPILER.
25039 (lto_input_ts_function_decl_tree_pointers): Don't stream
25040 DECL_FUNCTION_SPECIFIC_TARGET in if ACCEL_COMPILER.
25041 * lto-opts.c (lto_write_options): Use lto_stream_offload_p
25042 instead of section_name_prefix string comparisons.
25043
25044 2015-01-09 Jakub Jelinek <jakub@redhat.com>
25045
25046 PR rtl-optimization/64536
25047 * cfgrtl.c (rtl_tidy_fallthru_edge): Handle removal of degenerate
25048 tablejumps.
25049
25050 2015-01-09 Michael Collison <michael.collison@linaro.org>
25051
25052 PR tree-optimization/64322
25053 * tree-vrp.c (extract_range_from_binary_expr_1): Attempt to derive
25054 range for RSHIFT_EXPR even if vr0 range is not VR_RANGE or is symbolic.
25055
25056 2015-01-09 Tom de Vries <tom@codesourcery.com>
25057
25058 PR rtl-optimization/64539
25059 * regcprop.c (kill_clobbered_values): Factor out of ...
25060 (copyprop_hardreg_forward_1): ... here. Use kill_clobbered_values
25061 instead of note_stores with kill_clobbered_value.
25062
25063 2015-01-09 Andreas Tobler <andreast@gcc.gnu.org>
25064
25065 * ginclude/unwind-arm-common.h: Revert previous commit.
25066
25067 2015-01-09 Andreas Tobler <andreast@gcc.gnu.org>
25068
25069 * config.gcc (arm*-*-freebsd*): New configuration.
25070 * config/arm/freebsd.h: New file.
25071 * config.host: Add extra components for arm*-*-freebsd*.
25072 * config/arm/arm.h: Introduce MAX_SYNC_LIBFUNC_SIZE.
25073 * config/arm/arm.c (arm_init_libfuncs): Use MAX_SYNC_LIBFUNC_SIZE.
25074
25075 2015-01-09 Sebastian Huber <sebastian.huber@embedded-brains.de>
25076
25077 * config/rs6000/rtems.h (CPP_OS_RTEMS_SPEC): Define __PPC_CPU_E6500__
25078 for -mcpu=e6500.
25079 * config/rs6000/t-rtems: Add e6500 multilibs.
25080
25081 2015-01-09 Sebastian Huber <sebastian.huber@embedded-brains.de>
25082
25083 * config/rs6000/t-rtems: Add -mno-spe to soft-float multilib for
25084 MPC8540.
25085
25086 2015-01-09 Sebastian Huber <sebastian.huber@embedded-brains.de>
25087
25088 * config/rs6000/t-rtems: Use MULTILIB_REQUIRED instead of
25089 MULTILIB_EXCEPTIONS.
25090
25091 2015-01-09 Sebastian Huber <sebastian.huber@embedded-brains.de>
25092
25093 * config/arm/t-rtems: Use MULTILIB_REQUIRED instead of
25094 MULTILIB_EXCEPTIONS.
25095
25096 2015-01-09 Sebastian Huber <sebastian.huber@embedded-brains.de>
25097
25098 * config/arm/t-rtems-eabi: Rename to...
25099 * config/arm/t-rtems: ...this.
25100 * config/arm/rtems-eabi.h: Rename to...
25101 * config/arm/rtems.h: ...this.
25102 * config.gcc (arm*-*-rtems*): Reflect changes above.
25103
25104 2015-01-09 Richard Biener <rguenther@suse.de>
25105
25106 PR tree-optimization/64410
25107 * tree-ssa.c (non_rewritable_lvalue_p): Allow REALPART/IMAGPART_EXPR
25108 on the LHS.
25109 (execute_update_addresses_taken): Deal with that.
25110 * tree-ssa-forwprop.c (pass_forwprop::execute): Use component-wise
25111 loads/stores for complex variables.
25112
25113 2015-01-09 Martin Liska <mliska@suse.cz>
25114
25115 * ipa-icf-gimple.c (func_checker::compare_ssa_name): Enhance SSA
25116 name comparison.
25117 (func_checker::compare_memory_operand): New function.
25118 (func_checker::compare_operand): Split case to newly
25119 added functions.
25120 (func_checker::compare_cst_or_decl): New function.
25121 (func_checker::compare_gimple_call): Identify
25122 memory operands.
25123 (func_checker::compare_gimple_assign): Likewise.
25124 * ipa-icf-gimple.h: New function.
25125
25126 2015-01-09 Martin Liska <mliska@suse.cz>
25127
25128 PR ipa/64503
25129 * sreal.c (sreal::dump): Change unsigned format to signed for
25130 m_exp value.
25131 (sreal::to_double): Replace exp2 with scalbln.
25132
25133 2015-01-09 Martin Liska <mliska@suse.cz>
25134
25135 * cgraphunit.c (cgraph_node::create_wrapper): Fix level of indentation.
25136 * ipa-icf.c (sem_function::equals_private): Add support for target and
25137 (sem_item_optimizer::merge_classes): Remove redundant function
25138 optimization flags comparison.
25139 * tree.h (target_opts_for_fn): New function.
25140
25141 2015-01-09 Tom de Vries <tom@codesourcery.com>
25142
25143 * omp-low.c (expand_omp_for_static_chunk): Fix assert.
25144
25145 2015-01-09 Kito Cheng <kito@0xlab.org>
25146
25147 PR rtl-optimization/64348
25148 * lra-constraints.c (split_reg): Fix caller-save store/restore
25149 instruction generation.
25150
25151 2015-01-08 John David Anglin <danglin@gcc.gnu.org>
25152
25153 PR gcov-profile/61790
25154 * gcov-tool.c (do_rewrite): Use strtoll instead of atoll if host has
25155 long long. Fallback to int64_t if host doesn't have long long and
25156 use strtol if int64_t is long. Otherwise, use sscanf for conversion.
25157
25158 2015-01-08 Jakub Jelinek <jakub@redhat.com>
25159
25160 PR tree-optimization/63989
25161 * params.def (PARAM_MAX_TRACKED_STRLENS): Increment default
25162 from 1000 to 10000.
25163 * tree-ssa-strlen.c (get_strinfo): Moved earlier.
25164 (get_stridx): If we don't have a record for certain SSA_NAME,
25165 but it is POINTER_PLUS_EXPR of some SSA_NAME we do with
25166 constant offset, call get_stridx_plus_constant.
25167 (get_stridx_plus_constant): New function.
25168 (zero_length_string): Don't use get_stridx here.
25169
25170 PR target/55023
25171 PR middle-end/64388
25172 * dse.c (struct insn_info): Mention frame_read set also
25173 before reload for tail calls on some targets.
25174 (scan_insn): Revert 2014-12-22 change. Set frame_read
25175 also before reload for tail calls if
25176 HARD_FRAME_POINTER_IS_ARG_POINTER. Call add_wild_read
25177 instead of add_non_frame_wild_read for non-const/memset
25178 tail calls after reload.
25179
25180 2015-01-08 Jason Merrill <jason@redhat.com>
25181
25182 * ubsan.c (do_ubsan_in_current_function): New.
25183 (pass_ubsan::gate): Use it.
25184 * ubsan.h: Declare it.
25185 * convert.c (convert_to_integer): Use it.
25186
25187 2015-01-08 Jakub Jelinek <jakub@redhat.com>
25188
25189 PR target/64338
25190 * config/i386/i386.c (ix86_expand_int_movcc): Don't reverse
25191 compare_code when it is unconditionally overwritten afterwards.
25192 Use ix86_reverse_condition instead of reverse_condition. Don't
25193 change code if *reverse_condition* returned UNKNOWN and don't
25194 swap ct/cf and negate diff in that case.
25195
25196 2015-01-08 Mike Stump <mikestump@comcast.net>
25197
25198 * tsan.c (pass_tsan::gate): Add no_sanitize_thread support.
25199 (pass_tsan_O0::gate): Likewise.
25200 * extend.texi (Function Attributes): Add no_sanitize_thread
25201 documentation.
25202
25203 2015-01-08 Thomas Schwinge <thomas@codesourcery.com>
25204
25205 * builtins.def (DEF_GOMP_BUILTIN): Also consider flag_offload_abi
25206 for registering builtins.
25207 * config/i386/intelmic-mkoffload.c (prepare_target_image): Don't
25208 add -fopenmp to the argv_obstack used when invoking
25209 compile_for_target.
25210
25211 * config/i386/intelmic-mkoffload.c (compile_for_target): Always
25212 add "-m32" or "-m64" to argv_obstack.
25213 (generate_host_descr_file): Likewise, when invoking host_compiler.
25214 (main): Always add "-m elf_i386" or "-m elf_x86_64" when invoking
25215 ld.
25216
25217 2015-01-08 Oleg Endo <olegendo@gcc.gnu.org>
25218
25219 * config/sh/sh-mem.cc: Use constant as second operand when emitting
25220 tstsi_t insns.
25221
25222 2015-01-08 Oleg Endo <olegendo@gcc.gnu.org>
25223
25224 PR target/55212
25225 * config/sh/sh.md (*addsi3_compact): Emit reg-reg copy instead of
25226 constant load if constant operand fits into I08.
25227
25228 2015-01-08 Jakub Jelinek <jakub@redhat.com>
25229
25230 PR sanitizer/64336
25231 * tree.c (build2_stat): Fix up initialization of TREE_READONLY
25232 and TREE_THIS_VOLATILE for MEM_REFs.
25233 (build5_stat): Fix up initialization of TREE_READONLY and
25234 TREE_THIS_VOLATILE for TARGET_MEM_REFs.
25235
25236 2015-01-08 Kaz Kojima <kkojima@gcc.gnu.org>
25237
25238 PR target/64533
25239 * config/sh/sh.md (*addsi3_compact): Use u constraint instead
25240 of r for the second alternative of the destination operand.
25241
25242 2015-01-07 Segher Boessenkool <segher@kernel.crashing.org>
25243
25244 PR target/36557
25245 * config/rs6000/rs6000.md (*eqsi3_ext<mode>, *nesi3_ext<mode>): New.
25246
25247 2015-01-07 Sandra Loosemore <sandra@codesourcery.com>
25248
25249 * doc/invoke.texi ([-fvtable-verify]): Fix markup on option
25250 keywords.
25251 ([-fivar-visibility], [-fvisibility]): Likewise.
25252
25253 2015-01-07 Sandra Loosemore <sandra@codesourcery.com>
25254
25255 * doc/invoke.texi: Fix incorrect uses of @samp markup throughout
25256 the file where @code, @command, etc is more appropriate.
25257
25258 2015-01-06 Sandra Loosemore <sandra@codesourcery.com>
25259
25260 * doc/invoke.texi (RS/6000 and PowerPC Options): Tidy formatting
25261 of -mrecip= documentation.
25262
25263 2015-01-06 Michael Meissner <meissner@linux.vnet.ibm.com>
25264
25265 PR target/64505
25266 * config/rs6000/rs6000.c (rs6000_secondary_reload): Return the
25267 correct reload handler if -m32 -mpowerpc64 is used.
25268
25269 2015-01-06 Tom de Vries <tom@codesourcery.com>
25270
25271 * tree-ssa-tail-merge.c: Fix typo in struct same_succ_def comment.
25272
25273 2015-01-08 Christian Bruel <christian.bruel@st.com>
25274
25275 PR target/64507
25276 * config/sh/sh-mem.cc (sh_expand_cmpnstr): Check 0 length.
25277
25278 2015-01-06 Thomas Preud'homme <thomas.preudhomme@arm.com>
25279
25280 PR tree-optimization/63259
25281 * tree-ssa-math-opts.c (pass_optimize_bswap::execute): Stop checking
25282 if optab exists for 16bit byteswap.
25283
25284 2015-01-06 Jakub Jelinek <jakub@redhat.com>
25285
25286 * opts.c (common_handle_option): Add support for
25287 -fno-sanitize=all and -f{,no-}sanitize-recover=all.
25288 * doc/invoke.texi: Document -fno-sanitize=all,
25289 -f{,no-}sanitize-recover=all. Document that
25290 -fsanitize=float-cast-overflow is not enabled
25291 by -fsanitize=undefined. Fix up documentation
25292 of -f{,no-}sanitize-recover.
25293
25294 2015-01-06 Eric Botcazou <ebotcazou@adacore.com>
25295
25296 * config.gcc: Add Visium support.
25297 * configure.ac: Likewise.
25298 * configure: Regenerate.
25299 * doc/extend.texi (interrupt attribute): Add Visium.
25300 * doc/invoke.texi: Document Visium options.
25301 * doc/install.texi: Document Visium target.
25302 * doc/md.texi: Document Visium constraints.
25303 * common/config/visium: New directory.
25304 * config/visium: Likewise.
25305
25306 2015-01-05 Segher Boessenkool <segher@kernel.crashing.org>
25307
25308 * simplify-rtx.c (simplify_binary_operation_1): Handle more cases
25309 for the "(and X (ior (not X) Y) -> (and X Y)" transform.
25310
25311 2015-01-05 Segher Boessenkool <segher@kernel.crashing.org>
25312
25313 * combine.c (combine_validate_cost): Do not count the cost of a
25314 split I2 twice. Do not display it twice in the dump, either.
25315
25316 2015-01-05 Sandra Loosemore <sandra@codesourcery.com>
25317
25318 Revert parts of r219199.
25319 * doc/invoke.texi ([-Wliteral-suffix]): Restore markup on
25320 <inttypes.h>.
25321 ([-Wtraditional]): Restore markup on <limits.h>.
25322
25323 2015-01-05 Trevor Saunders <tsaunders@mozilla.com>
25324
25325 PR c++/31397
25326 * doc/invoke.texi: Document -Wsuggest-override.
25327
25328 2015-01-05 Radovan Obradovic <radovan.obradovic@imgtec.com>
25329
25330 PR rtl-optimization/64287
25331 * toplev.c (HAVE_epilogue, HAVE_prologue): Provide default.
25332 (process_options): Disable flag_ipa_ra if profiling.
25333
25334 2015-01-05 Eric Botcazou <ebotcazou@adacore.com>
25335
25336 * config/nds32/nds32-peephole2.md: Do not mention define_peephole.
25337
25338 2015-01-05 Max Filippov <jcmvbkbc@gmail.com>
25339
25340 * config/xtensa/xtensa.c (hwloop_optimize, hwloop_fail,
25341 hwloop_pattern_reg, xtensa_doloop_hooks, xtensa_reorg_loops):
25342 put under #if TARGET_LOOPS guard.
25343
25344 2015-01-05 Uros Bizjak <ubizjak@gmail.com>
25345
25346 * config/i386/i386.c (output_387_binary_op): Use std::swap.
25347
25348 2015-01-05 Oleg Endo <olegendo@gcc.gnu.org>
25349
25350 * rtlanal.c (refers_to_regno_p): Change return value from int to bool.
25351 * rtl.h (refers_to_regno_p): Add overload.
25352 * cse.c: Use it.
25353 * bt-load.c: Likewise.
25354 * combine.c: Likewise.
25355 * df-scan.c: Likewise.
25356 * sched-deps.c: Likewise.
25357 * config/s390/s390.c: Likewise.
25358 * config/m32r/m32r.c: Likewise.
25359 * config/rs6000/spe.md: Likewise.
25360 * config/rs6000/rs6000.c: Likewise.
25361 * config/pa/pa.c: Likewise.
25362 * config/stormy16/stormy16.c: Likewise.
25363 * config/cris/cris.c: Likewise.
25364 * config/arc/arc.md: Likewise.
25365 * config/arc/arc.c: Likewise.
25366 * config/sh/sh.md: Likewise.
25367 * config/sh/sh.c: Likewise.
25368 * config/frv/frv.c: Likewise.
25369
25370 2015-01-05 Jakub Jelinek <jakub@redhat.com>
25371
25372 PR sanitizer/64265
25373 * gimplify.c (gimplify_function_tree): Add TSAN_FUNC_EXIT internal
25374 call as cleanup of the whole body.
25375 * internal-fn.def (TSAN_FUNC_EXIT): New internal call.
25376 * tsan.c (replace_func_exit): New function.
25377 (instrument_func_exit): Moved earlier.
25378 (instrument_memory_accesses): Adjust TSAN_FUNC_EXIT internal calls.
25379 Call instrument_func_exit if no TSAN_FUNC_EXIT internal calls have
25380 been found.
25381 (tsan_pass): Don't call instrument_func_exit.
25382 * internal-fn.c (expand_TSAN_FUNC_EXIT): New function.
25383 * tree-inline.c (copy_bb): Drop TSAN_FUNC_EXIT internal calls during
25384 inlining.
25385
25386 PR sanitizer/64344
25387 * ubsan.h (ubsan_instrument_float_cast): Add ARG argument.
25388 * ubsan.c (ubsan_instrument_float_cast): Add ARG argument, pass
25389 it to libubsan handler instead of EXPR. Fold comparisons earlier,
25390 if the result is integer_zerop, return NULL_TREE.
25391 * convert.c (convert_to_integer): Pass expr as ARG.
25392
25393 PR tree-optimization/64465
25394 * tree-inline.c (redirect_all_calls): During inlining
25395 clean up EH stmts and EH edges if redirect_call_stmt_to_callee
25396 changed the stmt to a non-throwing call.
25397
25398 2015-01-05 Sandra Loosemore <sandra@codesourcery.com>
25399
25400 * doc/invoke.texi: Fix incorrect uses of @code, @option, @samp,
25401 etc markup throughout the file.
25402
25403 2015-01-05 Bernd Edlinger <bernd.edlinger@hotmail.de>
25404
25405 Enable experimental TSAN support for Ada.
25406 * tsan.c (instrument_expr): Handle VIEW_CONVERT_EXPR.
25407
25408 2015-01-05 Jakub Jelinek <jakub@redhat.com>
25409
25410 PR tree-optimization/64494
25411 * tree-ssa-loop-im.c (move_computations_dom_walker::before_dom): Also
25412 clear SSA_NAME_ANTI_RANGE_P flag.
25413
25414 2015-01-05 Marek Polacek <polacek@redhat.com>
25415
25416 * doc/extend.texi (Arrays of Length Zero): Add missing comma.
25417
25418 2015-01-05 Jakub Jelinek <jakub@redhat.com>
25419
25420 Update copyright years.
25421
25422 * gcc.c (process_command): Update copyright notice dates.
25423 * gcov-dump.c: Ditto.
25424 * gcov.c: Ditto.
25425 * doc/cpp.texi: Bump @copying's copyright year.
25426 * doc/cppinternals.texi: Ditto.
25427 * doc/gcc.texi: Ditto.
25428 * doc/gccint.texi: Ditto.
25429 * doc/gcov.texi: Ditto.
25430 * doc/install.texi: Ditto.
25431 * doc/invoke.texi: Ditto.
25432
25433 * auto-profile.c, auto-profile.h: Fix up Copyright line.
25434
25435 2015-01-04 Sandra Loosemore <sandra@codesourcery.com>
25436
25437 * doc/invoke.texi ([-fsized-deallocation]): Copy-edit to fix
25438 verb tense, etc.
25439 ([-fvtable-verify], [-fvtv-debug]): Likewise.
25440 ([-Wabi]): Likewise.
25441 ([-fmessage-length]): Likewise.
25442 ([-Wsuggest-final-types], [-Wsuggest-final-methods]): Likewise.
25443 ([-Wno-discarded-qualifiers]): Likewise.
25444 ([-Wnodiscarded-array-qualifiers]): Likewise.
25445 ([-Wno-virtual-move-assign]): Likewise.
25446 ([-fsanitize=address], [-fsanitize=thread]): Likewise.
25447 ([-fsanitize=leak], [-fsanitize=undefined]): Likewise.
25448 ([-fsanitize=unreachable], [-fsanitize-recover]): Likewise.
25449 ([-fsanitize-undefined-trap-on-error]): Likewise.
25450 ([-floop-interchange]): Likewise.
25451 ([-ftree-coalesce-inlined-vars]): Likewise.
25452 ([-fvect-cost-model]): Likewise.
25453 ([-flto]): Likewise.
25454 ([--param]): Likewise.
25455 (Spec Files): Likewise.
25456 ([-mstrict-align]): Likewise.
25457 ([-mfix-cortex-a53-835769]): Likewise.
25458 ([-march], [-mtune]): Likewise.
25459 ([-mpic-register]): Likewise.
25460 ([-munaligned-access]): Likewise.
25461 ([-msp8]): Likewise.
25462 (EIND and Devices with more than 128 Ki Bytes of Flash): Likewise.
25463 (AVR Built-in Macros): Likewise.
25464 ([-mpreferred-stack-boundary]): Likewise.
25465 ([-mtune-crtl]): Likewise.
25466 ([-mashf]): Likewise.
25467 ([-mmcu=]): Likewise.
25468 ([-minrt]): Likewise.
25469 ([-maltivec], [-maltivec=be], [-maltivec=le]): Likewise.
25470 ([-mupper-regs]): Likewise.
25471 ([-matomic-model]): Likewise.
25472 ([-mdiv]): Likewise.
25473 ([-mzdcbranch]): Likewise.
25474 ([-mdisable-callt]): Likewise.
25475 ([-msoft-float]): Likewise.
25476 ([-m8byte-align]): Likewise.
25477 ([-fstack-reuse]): Likewise.
25478
25479 2015-01-03 Sandra Loosemore <sandra@codesourcery.com>
25480
25481 * doc/invoke.texi ([-fprofile-generate], [-fprofile-use]):
25482 Fix markup, light copy-editing.
25483 ([-fauto-profile]): Rewrite to fix formatting and content
25484 problems.
25485
25486 2015-01-03 Sandra Loosemore <sandra@codesourcery.com>
25487
25488 * doc/invoke.texi ([-fisolate-erroneous-paths-dereference]):
25489 Copy-edit description.
25490 ([-fisolate-erroneous-paths-attribute]): Likewise.
25491 * common.opt (fisolate-erroneous-paths-dereference):
25492 Copy-edit description.
25493 (fisolate-erroneous-paths-attribute): Likewise.
25494
25495 2015-01-03 Sandra Loosemore <sandra@codesourcery.com>
25496
25497 * doc/invoke.texi ([-fsemantic-interposition]): Fix typos and
25498 tidy grammar.
25499
25500 2015-01-03 Sandra Loosemore <sandra@codesourcery.com>
25501
25502 * doc/invoke.texi ([-fplan9-extensions]): Add/fix @opindex.
25503 ([-fvtv-debug]): Likewise.
25504 ([-Wc++-compat]): Likewise.
25505 ([-Wc++11-compat]): Likewise.
25506 ([-Wc++14-compat]): Likewise.
25507 ([-Wno-sized-deallocation]): Likewise.
25508 ([-femit-class-debug-always]): Likewise.
25509 ([-femit-struct-debug-detailed]): Likewise.
25510 ([-fno-keep-inline-dllexport]): Likewise.
25511 ([-fira-algorithm]): Likewise.
25512 ([-fira-region]): Likewise.
25513 ([-flra-remat]): Likewise.
25514 ([-fipa-ra]): Likewise.
25515 ([-fhoist-adjacent-loads]): Likewise.
25516 ([-fisolate-erroneous-paths-dereference]): Likewise.
25517 ([-fisolate-erroneous-paths-attribute]): Likewise.
25518 ([-ftree-switch-conversion]): Likewise.
25519 ([-ftree-tail-merge]): Likewise.
25520 ([-ftree-loop-if-convert]): Likewise.
25521 ([-ftree-loop-if-convert-stores]): Likewise.
25522 ([-ftree-loop-distribution]): Likewise.
25523 ([-ftree-loop-distribute-patterns]): Likewise.
25524 ([-flto-compression-level]): Likewise.
25525 ([-flto-report]): Likewise.
25526 ([-flto-report-wpa]): Likewise.
25527 ([-fuse-linker-plugin]): Likewise.
25528 ([-mfix-cortex-a53-835769]): Likewise.
25529 ([-mno-fix-cortex-a53-835769]): Likewise.
25530 ([-mmmx]...[-mno-3dnow]): Remove the -mno- forms from the
25531 explicit listing; add a note to the discussion indicating they
25532 exist. Reorder table to group similar options. Add missing
25533 @opindex entries. Add @need commands throughout the table to
25534 allow it to be split across multiple pages.
25535 ([-m8bit-idiv]): Fix @opindex.
25536 ([-mavx256-split-unaligned-load]): Likewise.
25537 ([-mavx256-split-unaligned-store]): Likewise.
25538 ([-mstack-protector-guard]): Likewise.
25539 ([-mcpu=]): Likewise.
25540 ([-mcpu]): Likewise.
25541 ([-mpointer-size=]): Likewise.
25542
25543 2015-01-03 John David Anglin <danglin@gcc.gnu.org>
25544
25545 * config/pa/pa.md (decrement_and_branch_until_zero): Use `Q' constraint
25546 instead of `m' constraint. Likewise for unnamed movb comparison
25547 patterns using reg_before_reload_operand predicate.
25548 * config/pa/predicates.md (reg_before_reload_operand): Tighten
25549 predicate to reject register index and LO_SUM DLT memory forms
25550 after reload.
25551
25552 2015-01-02 Sandra Loosemore <sandra@codesourcery.com>
25553
25554 * doc/invoke.texi (Option Summary): Fix spelling of
25555 -fdevirtualize-at-ltrans.
25556 ([-fdevirtualize]): Fix markup.
25557 ([-fdevirtualize-speculatively]): Fix typo.
25558 ([-fdevirtualize-at-ltrans]): Likewise. Make description less
25559 implementor-speaky.
25560 * common.opt (fdevirtualize-at-ltrans): Likewise.
25561 * ipa-devirt.c: Fix typos in comments throughout the file.
25562 (ipa_devirt): Fix typos in format strings for dump output.
25563
25564 2015-01-02 Sandra Loosemore <sandra@codesourcery.com>
25565
25566 * doc/invoke.texi ([-fopt-info]): Fix markup, consolidate
25567 discussion of defaults, light copy-editing.
25568
25569 2015-01-02 Bernd Edlinger <bernd.edlinger@hotmail.de>
25570
25571 * tsan.c (instrument_expr): corrected previous checkin.
25572
25573 2015-01-02 Bernd Edlinger <bernd.edlinger@hotmail.de>
25574
25575 Instrument bit field and unaligned accesses for TSAN.
25576 * sanitizer.def (BUILT_IN_TSAN_READ_RANGE): New built-in function.
25577 (BUILT_IN_TSAN_WRITE_RANGE): New built-in function.
25578 * tsan.c (instrument_expr): Handle COMPONENT_REF and BIT_FIELD_REF.
25579 Use BUILT_IN_TSAN_READ_RANGE and BUILT_IN_TSAN_WRITE_RANGE for
25580 unaligned memory regions.
25581
25582 2015-01-01 Anthony Green <green@moxielogic.com>
25583
25584 * config/moxie/predicates.md (moxie_general_movsrc_operand):
25585 Restrict move source register offsets to 16 bits.
25586 \f
25587 Copyright (C) 2015 Free Software Foundation, Inc.
25588
25589 Copying and distribution of this file, with or without modification,
25590 are permitted in any medium without royalty provided the copyright
25591 notice and this notice are preserved.