]> git.ipfire.org Git - thirdparty/gcc.git/blob - gcc/ChangeLog
gcc/
[thirdparty/gcc.git] / gcc / ChangeLog
1 2015-08-14 Yuri Rumyantsev <ysrumyan@gmail.com>
2
3 * config/i386/driver-i386.c (host_detect_local_cpu): Add support
4 for skylake.
5 * config/i386/i386.c (PTA_SKYLAKE): New macros.
6 (processor_alias_table): Add skylake description.
7 (enum processor_model): Add skylake processor.
8 (arch_names_table): Add skylake record.
9 * doc/invoke.texi: Add skylake item.
10
11 2015-08-13 Andrew MacLeod <amacleod@redhat.com>
12
13 * ira-int.h: Include recog.h.
14 * ira-build.c: Don't include recog.h.
15 * ira-color.c: Likewise.
16 * ira-conflicts.c: Likewise.
17 * ira-costs.c: Likewise.
18 * ira-emit.c: Likewise.
19 * ira-lives.c: Likewise.
20 * ira.c: Likewise.
21 * sched-deps.c: Likewise.
22 * sel-sched.c: Likewise.
23 * target-globals.c: Likewise.
24
25 2015-08-13 Richard Sandiford <richard.sandiford@arm.com>
26
27 PR bootstrap/55035
28 * reload1.c (elimination_costs_in_insn): Make it obvious to the
29 compiler that the n_dups and n_operands loop bounds are invariant.
30
31 2015-08-13 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
32
33 * ifcvt.c (noce_try_store_flag_constants): Handle PLUS-immediate
34 expressions in A and B.
35
36 2015-08-13 Richard Biener <rguenther@suse.de>
37
38 * tree.c (nonnull_arg_p): Move from ...
39 * tree-vrp.c (nonnull_arg_p): ... here.
40 * tree.h (nonnull_arg_p): Declare.
41 * tree-ssa-sccvn.c (init_scc_vn): Perform all lattice init
42 here, register ptr != 0 for nonnull_arg_p pointer arguments.
43 Properly initialize static chain and by-reference result pointer.
44 (run_scc_vn): Adjust.
45
46 2015-08-13 Robert Suchanek <robert.suchanek@imgtec.com>
47
48 * config/mips/mips.h (ENABLE_LD_ST_PAIRS): Enable load/store pairs for
49 TUNE_I6400.
50
51 2015-08-13 Matthew Wahab <matthew.wahab@arm.com>
52
53 * config/aarch64/aarch64-protos.h
54 (aarch64_gen_atomic_cas): Declare.
55 * config/aarch64/aarch64.c (aarch64_expand_compare_and_swap):
56 Choose appropriate instruction pattern for the target.
57 (aarch64_gen_atomic_cas): New.
58 * config/aarch64/atomics.md (UNSPECV_ATOMIC_CAS): New.
59 (atomic_compare_and_swap<mode>_1): Rename to
60 aarch64_compare_and_swap<mode>. Fix some indentation.
61 (aarch64_compare_and_swap<mode>_lse): New.
62 (aarch64_atomic_cas<mode>): New.
63
64 2015-08-13 Matthew Wahab <matthew.wahab@arm.com>
65
66 * config/aarch64/aarch64.h (AARCH64_ISA_LSE): New.
67 (TARGET_LSE): New.
68
69 2015-08-13 Richard Biener <rguenther@suse.de>
70
71 PR tree-optimization/67191
72 * tree-ssa-sccvn.c (sccvn_dom_walker::before_dom_children): Remove
73 assert we value-numbered last stmts operand because it can validly
74 trigger for unreachable code.
75
76 2015-08-13 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
77
78 PR rtl-optimization/67103
79 * ifcvt.c (noce_try_store_flag_constants): Move
80 x = (-(test != 0) & (b - a)) + a transformation to...
81 (noce_try_cmove): ... Here. Try it if normal conditional
82 move fails.
83
84 2015-08-13 Robert Suchanek <robert.suchanek@imgtec.com>
85
86 * config/mips/mips.c (mips_rtx_cost_data): Remove costs for W32 and W64
87 pseudo-processors.
88 * config/mips/mips.md (processor): Remove w32 and w64.
89
90 2015-08-13 Richard Biener <rguenther@suse.de>
91
92 PR tree-optimization/66502
93 PR tree-optimization/67167
94 * tree-ssa-sccvn.c (vn_phi_compute_hash): Do not include
95 backedge arguments.
96 (vn_phi_lookup): Adjust.
97 (vn_phi_insert): Likewise.
98 (visit_phi): Prefer to value-number to another PHI node
99 over value-numbering to a PHI argument.
100 (init_scc_vn): Mark DFS back edges.
101
102 2015-08-13 Richard Biener <rguenther@suse.de>
103
104 * gimple.h (gcall::code_): New constant static member.
105 (gcond::code_): Likewise.
106 * gimple.c (gcall::code_): Define.
107 (gcond::code_): Likewise.
108 (is_a_helper <const gcond *>): Add.
109 (gimple_call_lhs): Use GIMPLE_CHECK2 in the gimple overload
110 and forward to a new gcall overload with less checking and a
111 cheaper way to access the operand.
112 (gimple_call_lhs_ptr): Likewise.
113 (gimple_call_set_lhs): Likewise.
114 (gimple_call_internal_p): Likewise.
115 (gimple_call_with_bounds_p): Likewise.
116 (gimple_call_set_with_bounds): Likewise.
117 (gimple_call_internal_fn): Likewise.
118 (gimple_call_set_ctrl_altering): Likewise.
119 (gimple_call_ctrl_altering_p): Likewise.
120 (gimple_call_fntype): Likewise.
121 (gimple_call_fn): Likewise.
122 (gimple_call_fn_ptr): Likewise.
123 (gimple_call_set_fndecl): Likewise.
124 (gimple_call_fndecl): Likewise.
125 (gimple_call_chain): Likewise.
126 (gimple_call_num_args): Likewise.
127 (gimple_call_arg): Likewise.
128 (gimple_call_arg_ptr): Likewise.
129 (gimple_call_set_arg): Likewise.
130 (gimple_call_noreturn_p): Likewise.
131 (gimple_cond_code): Likewise.
132 (gimple_cond_lhs): Likewise.
133 (gimple_cond_rhs): Likewise.
134 (gimple_has_lhs): Reduce checking.
135
136 2015-08-13 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
137
138 PR middle-end/25529
139 * match.pd (div (mult @0 @1) @1) : New simplifier.
140
141 2015-08-12 Michael Meissner <meissner@linux.vnet.ibm.com>
142
143 PR target/67071
144 * config/rs6000/predicates.md (easy_vector_constant_vsldoi): New
145 predicate to allow construction of vector constants using the
146 VSLDOI vector shift instruction.
147
148 * config/rs6000/rs6000-protos.h (vspltis_shifted): Add
149 declaration.
150
151 * config/rs6000/rs6000.c (vspltis_shifted): New function to return
152 the number of bytes to be shifted left and filled in with either
153 all zero or all one bits.
154 (gen_easy_altivec_constant): Call vsplitis_shifted if no other
155 methods exist.
156 (output_vec_const_move): On power8, generate XXLORC to generate
157 a vector constant with all 1's. Do a split if we need to use a
158 VSLDOI instruction.
159
160 * config/rs6000/rs6000.h (EASY_VECTOR_MSB): Use mode mask to
161 properly test for the MSB.
162
163 * config/rs6000/altivec.md (VSLDOI splitter): Add splitter for
164 vector constants that can be created with VSLDOI.
165
166 2015-08-11 Trevor Saunders <tbsaunde@tbsaunde.org>
167
168 revert:
169 * compare-elim.c, dce.c, dse.c, gimple-ssa-isolate-paths.c,
170 gimple-ssa-strength-reduction.c, graphite.c, init-regs.c,
171 ipa-pure-const.c, ipa-visibility.c, ipa.c, mode-switching.c,
172 omp-low.c, reorg.c, sanopt.c, trans-mem.c, tree-eh.c,
173 tree-if-conv.c, tree-ssa-copyrename.c, tree-ssa-dce.c,
174 tree-ssa-dom.c, tree-ssa-dse.c, tree-ssa-forwprop.c,
175 tree-ssa-sink.c, tree-ssanames.c, tree-stdarg.c, tree-tailcall.c,
176 tree-vect-generic.c, tree.c, ubsan.c, var-tracking.c,
177 vtable-verify.c, web.c: Use GCC_FINAL instead of the anonymous
178
179 2015-08-12 Max Filippov <jcmvbkbc@gmail.com>
180
181 * config/xtensa/constraints.md (define_constraint "Y"): New
182 constraint.
183 * config/xtensa/elf.h (ASM_SPEC): Add m(no-)auto-litpools.
184 * config/xtensa/linux.h (ASM_SPEC): Likewise.
185 * config/xtensa/predicates.md (move_operand): Match constants
186 and symbols in the presence of TARGET_AUTO_LITPOOLS.
187 * config/xtensa/xtensa.c (xtensa_valid_move): Don't allow
188 immediate references to TLS data.
189 (xtensa_emit_move_sequence): Don't force constants to memory in
190 the presence of TARGET_AUTO_LITPOOLS.
191 (print_operand): Add 'y' format, same as default, but capable of
192 printing SF mode constants as well.
193 * config/xtensa/xtensa.md (movsi_internal, movhi_internal)
194 (movsf_internal): Add movi pattern that loads literal.
195 (movsf, movdf): Don't force constants to memory in the presence
196 of TARGET_AUTO_LITPOOLS.
197 (movdf_internal): Add 'Y' constraint.
198 * config/xtensa/xtensa.opt (mauto-litpools): New option.
199 * doc/invoke.text (Xtensa options): Document -mauto-litpools.
200
201 2015-08-12 Matthew Wahab <matthew.wahab@arm.com>
202
203 * config/arm/arm-fpus.def: Replace booleans with feature flags.
204 Update comment.
205 * config/arm/arm.c (ARM_FPU): Update macro.
206 * config/arm/arm.h (TARGET_NEON_FP16): Update feature test.
207 (TARGET_FP16): Likewise.
208 (TARGET_CRYPTO): Likewise.
209 (TARGET_NEON): Likewise.
210 (struct arm_fpu_desc): Remove fields neon, fp16 and crypto. Add
211 field features.
212
213 2015-08-12 Tom de Vries <tom@codesourcery.com>
214
215 PR other/67092
216 PR other/67098
217 * doc/install.texi: Remove --with_host_libstdcxx item. Update
218 --with-stage1-libs, --with-boot-ldflags and --with-boot-libs items
219 accordingly. Mention default for --with-stage1-ldflags.
220
221 2015-08-12 Matthew Wahab <matthew.wahab@arm.com>
222
223 * config/arm/arm.h (arm_fpu_feature_set): New.
224 (ARM_FPU_FSET_HAS): New.
225 (FPU_FL_NONE): New.
226 (FPU_FL_NEON): New.
227 (FPU_FL_FP16): New.
228 (FPU_FL_CRYPTO): New.
229
230 2015-08-12 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
231
232 * config/aarch64/aarch64.c (initialize_aarch64_code_model): Break
233 after -mcmodel=large -fPIC sorry.
234
235 2015-08-12 Richard Biener <rguenther@suse.de>
236
237 * tree-ssa-sccvn.c (vn_nary_op_compute_hash): Also canonicalize
238 comparison operand order and commutative ternary op operand order.
239 (sccvn_dom_walker::cond_stack): New state to track temporary
240 expressions.
241 (sccvn_dom_walker::after_dom_children): Remove tempoary expressions
242 no longer valid.
243 (sccvn_dom_walker::record_cond): Add a single temporary conditional
244 expression.
245 (sccvn_dom_walker::record_conds): Add a temporary conditional
246 expressions and all related expressions also true/false.
247 (sccvn_dom_walker::before_dom_children): Record temporary
248 expressions based on the controlling condition of a single
249 predecessor. When trying to simplify a conditional statement
250 lookup expressions we might have inserted earlier.
251
252 2015-08-12 Yvan Roux <yvan.roux@linaro.org>
253
254 PR target/67127
255 * config/arm/arm.md (movdi): Restrict illegitimate ldrd/strd checking
256 to ARM core registers.
257
258 2015-08-12 Nathan Sidwell <nathan@acm.org>
259
260 * tree-vrp.c (simplify_min_or_max_using_ranges): New.
261 (simplify_stmt_using_ranges): Simplify MIN and MAX exprs.
262
263 2015-08-12 Simon Dardis <simon.dardis@imgtec.com>
264
265 * config/mips/mips.c (mips_store_data_bypass_p): Bring code into
266 line with comments.
267 * config/mips/sb1.md: Update usage of mips_store_data_bypass_p.
268
269 2015-08-12 Richard Biener <rguenther@suse.de>
270
271 * gimple.h (remove_pointer): New trait.
272 (GIMPLE_CHECK2): New inline template function.
273 (gassign::code_): New constant static member.
274 (is_a_helper<const gassign *>): Add.
275 (gimple_assign_lhs): Use GIMPLE_CHECK2 in the gimple overload
276 and forward to a new gassign overload with less checking and a
277 cheaper way to access the operand.
278 (gimple_assign_lhs_ptr): Likewise.
279 (gimple_assign_set_lhs): Likewise.
280 (gimple_assign_rhs1, gimple_assign_rhs1_ptr, gimple_assign_set_rhs1):
281 Likewise.
282 (gimple_assign_rhs2, gimple_assign_rhs2_ptr, gimple_assign_set_rhs2):
283 Likewise.
284 (gimple_assign_rhs3, gimple_assign_rhs3_ptr, gimple_assign_set_rhs3):
285 Likewise.
286 (gimple_assign_rhs_code): Likewise.
287 * gimple.c (gassign::code_): Define.
288
289 2015-08-12 Richard Biener <rguenther@suse.de>
290
291 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children):
292 Eliminate edges marked as not executable by SCCVN.
293 * tree-ssa-sccvn.c: Include gimple-iterator.h.
294 (cond_dom_walker): Rename to sccvn_dom_walker.
295 (sccvn_dom_walker::before_dom_children): Value-number defs
296 of all stmts.
297 (run_scc_vn): Remove loop value-numbering all SSA names.
298 Drop not visited SSA names to varying.
299
300 2015-08-11 Trevor Saunders <tbsaunde@tbsaunde.org>
301
302 * compare-elim.c, dce.c, dse.c, gimple-ssa-isolate-paths.c,
303 gimple-ssa-strength-reduction.c, graphite.c, init-regs.c,
304 ipa-pure-const.c, ipa-visibility.c, ipa.c, mode-switching.c,
305 omp-low.c, reorg.c, sanopt.c, trans-mem.c, tree-eh.c,
306 tree-if-conv.c, tree-ssa-copyrename.c, tree-ssa-dce.c,
307 tree-ssa-dom.c, tree-ssa-dse.c, tree-ssa-forwprop.c,
308 tree-ssa-sink.c, tree-ssanames.c, tree-stdarg.c, tree-tailcall.c,
309 tree-vect-generic.c, tree.c, ubsan.c, var-tracking.c,
310 vtable-verify.c, web.c: Use GCC_FINAL instead of the anonymous
311
312 2015-08-11 Uros Bizjak <ubizjak@gmail.com>
313
314 PR target/66954
315 * config/i386/i386.c (get_builtin_code_for_version): Add P_PCLMUL
316 to enum feature_priority and feature_list.
317 (fold_builtin_cpu): Add F_PCLMUL to enum processor_features
318 and isa_names_table.
319
320 2015-08-11 Yuri Rumyantsev <ysrumyan@gmail.com>
321
322 * tree-vect-stmts.c (vectorizable_shift): Add missed test on
323 vect_induction_def.
324
325 2015-08-11 Manuel López-Ibáñez <manu@gcc.gnu.org>
326
327 PR c/66098
328 PR c/66711
329 * diagnostic.c (diagnostic_classify_diagnostic): Take -Werror into
330 account when deciding what was the command-line status.
331
332 2015-08-11 Nathan Sidwell <nathan@acm.org>
333
334 * tree-vrp.c (simplify_abs_using_ranges): Simplify.
335
336 * tree-ssa-phiopt.c (minmax_replacement): Create new ssa name if
337 we're not the only contributor to target phi.
338
339 2015-08-11 Jiong Wang <jiong.wang@arm.com>
340
341 * config/aarch64/aarch64.h (REG_CLASS_NAMES): Add the missing ',' after
342 FIXED_REG0.
343
344 2015-08-11 Tom de Vries <tom@codesourcery.com>
345
346 * tree-cfg.c (move_sese_region_to_fn): Add todo comment.
347
348 2015-08-10 H.J. Lu <hongjiu.lu@intel.com>
349
350 * config/i386/i386.c (processor_alias_table): Replace CPU_KNL
351 with CPU_SLM.
352 * config/i386/i386.md (cpu): Remove knl.
353
354 2015-08-10 Thomas Schwinge <thomas@codesourcery.com>
355
356 PR libgomp/65742
357 PR middle-end/66332
358 * builtins.c (expand_builtin_acc_on_device) [ACCEL_COMPILER]: Emit
359 open-coded sequence.
360 * omp-low.c (oacc_process_reduction_data): Remove handline of
361 GOMP_DEVICE_HOST_NONSHM.
362
363 * lto-streamer-in.c (lto_input_mode_table): Adjust to
364 GET_MODE_INNER changes.
365
366 2015-08-10 Thomas Schwinge <thomas@codesourcery.com>
367 Ilya Verbin <ilya.verbin@intel.com>
368
369 * lto-streamer-in.c (lto_input_mode_table): Correctly advance
370 iterator.
371
372 2015-08-09 Manuel López-Ibáñez <manu@gcc.gnu.org>
373
374 * doc/options.texi (EnabledBy): Document that the argument must be
375 a Common option.
376 * doc/invoke.texi (Wnull-dereference): Move after Wnonnull.
377 Not enabled by -Wall.
378 * optc-gen.awk: Give nicer error messages. Detect if the argument
379 of EnabledBy is not a Common option.
380 * common.opt (Wnull-dereference): Not enabled by -Wall.
381 * opt-functions.awk (lang_enabled_by): Nicer error messages.
382
383 2015-08-09 H.J. Lu <hongjiu.lu@intel.com>
384
385 * config/i386/driver-i386.c (host_detect_local_cpu): Treat
386 model == 0x4f as Broadwell.
387
388 2015-08-08 Segher Boessenkool <segher@kernel.crashing.org>
389
390 PR rtl-optimization/67028
391 * combine.c (simplify_comparison): Fix comment. Rearrange code.
392 Add test to see if a const_int fits in the new mode.
393
394 2015-08-07 DJ Delorie <dj@redhat.com>
395
396 * config/rx/rx.c (rx_mode_dependent_address_p): Remove unneeded asserts.
397
398 2015-08-07 H.J. Lu <hongjiu.lu@intel.com>
399
400 PR rtl-optimization/67029
401 * ira-color.c: Include "recog.h" before including "ira-int.h".
402 * target-globals.c: Likewise.
403 * ira-lives.c (ira_implicitly_set_insn_hard_regs): Add an
404 adds an alternative_mask argument and use it instead of
405 preferred_alternatives.
406 * ira.h (ira_implicitly_set_insn_hard_regs): Moved to ...
407 * ira-int.h (ira_implicitly_set_insn_hard_regs): Here.
408 * sched-deps.c: Include "ira-int.h" after including "ira.h".
409 (sched_analyze_insn): Update call to
410 ira_implicitly_set_insn_hard_regs.
411 * sel-sched.c: Include "ira-int.h" after including "ira.h".
412 (implicit_clobber_conflict_p): Update call to
413 ira_implicitly_set_insn_hard_regs.
414
415 2015-08-06 Uros Bizjak <ubizjak@gmail.com>
416
417 * Makefile.in (.INTERMEDIATE): Add gpl.pod.
418
419 2015-08-07 Kaz Kojima <kkojima@gcc.gnu.org>
420
421 PR target/67002
422 * config/sh/sh.c (sh_recog_treg_set_expr): Return false when
423 currently_expanding_to_rtl is set.
424
425 2015-08-06 Yaakov Selkowitz <yselkowi@redhat.com>
426
427 * configure.ac: Define LIBICONV_DEP with in-tree libiconv.
428 * configure: Regenerate.
429
430 2015-08-06 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
431 Jiong Wang <jiong.wang@arm.com>
432
433 * config/aarch64/aarch64.d (tlsdesc_small_pseudo_<mode>): New pattern.
434 * config/aarch64/aarch64.h (reg_class): New enumeration FIXED_REG0.
435 (REG_CLASS_NAMES): Likewise.
436 (REG_CLASS_CONTENTS): Likewise.
437 * config/aarch64/aarch64.c (aarch64_class_max_nregs): Likewise.
438 (aarch64_register_move_cost): Likewise.
439 (aarch64_load_symref_appropriately): Invoke the new added pattern if
440 possible.
441 * config/aarch64/constraints.md (Uc0): New constraint.
442
443 2015-08-06 Jiong Wang <jiong.wang@arm.com>
444
445 * config/aarch64/constraints.md (Usf): Add the test of
446 aarch64_is_noplt_call_p.
447
448 2015-08-06 Jiong Wang <jiong.wang@arm.com>
449
450 * config/aarch64/aarch64-protos.h (aarch64_is_noplt_call_p): New
451 declaration.
452 * config/aarch64/aarch64.c (aarch64_is_noplt_call_p): New function.
453 * config/aarch64/aarch64.md (call_value_symbol): Check noplt scenarios.
454 (call_symbol): Likewise.
455
456 2015-08-06 Venkataramanan Kumar <Venkataramanan.kumar@amd.com>
457
458 * tree-vect-patterns.c (vect_recog_mult_pattern): New function
459 for vectorizing multiplication patterns.
460 * tree-vectorizer.h: Adjust the number of patterns.
461
462 2015-08-06 Uros Bizjak <ubizjak@gmail.com>
463
464 * config/i386/sse.md (*vec_concatv2df): Declare added
465 alternatives as sselog type.
466
467 2015-08-06 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
468
469 * config/s390/s390.c (s390_dwarf_frame_reg_mode): Return Pmode for
470 all GPRs.
471
472 2015-08-06 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
473
474 * config/s390/s390.c (s390_expand_tbegin): Expand either
475 tbegin_1_z13 or tbegin_1 depending on VX flag.
476 * config/s390/s390.md ("tbegin_1_z13"): New expander.
477
478 2015-08-06 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
479
480 * config/s390/s390.opt: Clarify description for -mzvector
481 * doc/invoke.texi: Add documentation for -mhtm, -mvx, and
482 -mzvector.
483
484 2015-08-06 Richard Biener <rguenther@suse.de>
485
486 * gimple.h (gimple_call_set_fn): Access op member directly.
487 (gimple_call_chain_ptr): Likewise.
488 (gimple_call_set_chain): Likewise.
489 (gimple_cond_lhs_ptr): Likewise.
490 (gimple_cond_set_lhs): Likewise.
491 (gimple_cond_rhs_ptr): Likewise.
492 (gimple_cond_set_rhs): Likewise.
493 (gimple_cond_true_label): Likewise.
494 (gimple_cond_set_true_label): Likewise.
495 (gimple_cond_set_false_label): Likewise.
496 (gimple_cond_false_label): Likewise.
497 (gimple_label_label): Likewise.
498 (gimple_label_set_label): Likewise.
499 (gimple_goto_set_dest): Likewise.
500 (gimple_asm_input_op): Likewise.
501 (gimple_asm_input_op_ptr): Likewise.
502 (gimple_asm_set_input_op): Likewise.
503 (gimple_asm_output_op): Likewise.
504 (gimple_asm_output_op_ptr): Likewise.
505 (gimple_asm_set_output_op): Likewise.
506 (gimple_asm_clobber_op): Likewise.
507 (gimple_asm_set_clobber_op): Likewise.
508 (gimple_asm_label_op): Likewise.
509 (gimple_asm_set_label_op): Likewise.
510 (gimple_switch_index): Likewise.
511 (gimple_switch_index_ptr): Likewise.
512 (gimple_return_retval_ptr): Likewise.
513 (gimple_return_retval): Likewise.
514 (gimple_return_set_retval): Likewise.
515 (gimple_switch_set_index): Likewise. Remove superfluous GIMPLE_CHECK.
516 (gimple_switch_label): Likewise.
517 (gimple_switch_set_label): Likewise.
518
519 2015-08-06 Richard Biener <rguenther@suse.de>
520
521 * gimple-fold.c (gimple_fold_stmt_to_constant_1): Simplify
522 bool comparison canonicalization and restrict to integers.
523
524 2015-08-05 Andrew MacLeod <amacleod@redhat.com>
525
526 * coretypes.h (enum symbol_visibility): Relocate here.
527 * flag-types.h (enum symbol_visibility): Remove.
528 * tree-core.h (enum symbol_visibility): Remove.
529
530 2015-08-05 Lynn Boger <laboger@linux.vnet.ibm.com>
531
532 PR target/66870
533 * gcc/config/rs6000/rs6000.c (rs6000_emit_prologue): Check
534 for no_split_stack function attribute along with
535 flag_split_stack.
536 (rs6000_expand_split_stack_prologue): Likewise.
537
538 2015-08-05 Manuel López-Ibáñez <manu@gcc.gnu.org>
539 Jeff Law <law@redhat.com>
540
541 PR c/16351
542 * doc/invoke.texi (Wnull-dereference): New.
543 * tree-vrp.c (infer_value_range): Update call to infer_nonnull_range.
544 * gimple-ssa-isolate-paths.c (find_implicit_erroneous_behaviour):
545 Warn for potential NULL dereferences.
546 (find_explicit_erroneous_behaviour): Warn for NULL dereferences.
547 * ubsan.c (instrument_nonnull_arg): Call
548 infer_nonnull_range_by_attribute.
549 (instrument_nonnull_return): Likewise.
550 * common.opt (Wnull-dereference); New.
551 * gimple.c (infer_nonnull_range): Remove bool arguments.
552 (infer_nonnull_range_by_dereference): New.
553 (infer_nonnull_range_by_attribute): New.
554 * gimple.h: Update declarations.
555
556 2015-08-05 Richard Sandiford <richard.sandiford@arm.com>
557
558 * gensupport.c (sequence_num): Replace with...
559 (insn_sequence_num, split_sequence_num, peephole2_sequence_num):
560 ...these new variables.
561 (init_rtx_reader_args_cb): Update accordingly.
562 (get_num_code_insns): Likewise.
563 (read_md_rtx): Rework to use a while loop and get_c_test.
564 Use the new counters. Remove redundant DEFINE_SUBST case.
565 * genoutput.c (gen_split): Delete.
566 (main): Don't call it.
567
568 2015-08-05 Richard Sandiford <richard.sandiford@arm.com>
569
570 * gensupport.h (get_c_test): Declare.
571 * gensupport.c (get_c_test): New function.
572 * genconditions.c (main): Use it.
573 * genrecog.c (validate_pattern): Likewise.
574 (match_pattern_1): Likewise. Remove c_test argument.
575 (match_pattern): Update accordingly and remove c_test argument.
576 (main): Update accordingly.
577
578 2015-08-05 Richard Sandiford <richard.sandiford@arm.com>
579
580 * gensupport.h (get_num_insn_codes): Declare.
581 * gensupport.c (get_num_insn_codes): New function.
582 * genattrtab.c (optimize_attrs): Rename max_insn_code to
583 num_insn_codes.
584 (main): Likewise. Use get_num_insn_codes.
585 * gencodes.c (main): Remove "last" and use get_num_insn_codes.
586
587 2015-08-05 Richard Sandiford <richard.sandiford@arm.com>
588
589 PR middle-end/66311
590 * wide-int.cc (wi::from_mpz): Make sure that absolute mpz value
591 is zero- rather than sign-extended.
592
593 2015-08-05 Richard Sandiford <richard.sandiford@arm.com>
594
595 * target-insns.def (can_extend): Delete.
596
597 2015-08-05 Richard Biener <rguenther@suse.de>
598
599 PR tree-optimization/67121
600 * tree-if-conv.c (combine_blocks): Clear range-info produced
601 by stmts no longer executed conditionally.
602
603 2015-08-05 Nick Clifton <nickc@redhat.com>
604
605 * config/rl78/rl78.c (rl78_force_nonfar_3): Remove optimization
606 to allow identical far pointers to remain.
607
608 2015-08-05 Richard Biener <rguenther@suse.de>
609
610 PR middle-end/67120
611 * match.pd: Compare address bases with == if they are decls
612 or SSA names, not operand_equal_p. Otherwise fail.
613
614 2015-08-05 Richard Biener <rguenther@suse.de>
615
616 PR tree-optimization/67055
617 * tree-ssa-ccp.c (fold_builtin_alloca_with_align): Handle
618 NULL gimple_block.
619
620 * g++.dg/torture/pr67055.C: New testcase.
621
622 2015-08-05 Kirill Yukhin <kirill.yukhin@intel.com>
623
624 * config/i386/i386.md (define_attr "isa"): Addd avx512vl and
625 noavx512vl.
626 (define_attr "enabled"): Handle avx521vl and noavx512vl.
627 * config/i386/sse.md (define_insn "vec_dupv2df<mask_name>"): Split
628 AVX-512 alternative out of SSE.
629 (define_insn "*vec_concatv2df"): Ditto.
630
631 2015-08-05 Kirill Yukhin <kirill.yukhin@intel.com>
632
633 * config/i386/i386.c (bdesc_args): Rename CODE_FOR_sse4_1_ptest into
634 CODE_FOR_sse4_1_ptestv2di and CODE_FOR_avx_vtestps256 into
635 CODE_FOR_avx_ptestv4di.
636 * config/i386/sse.md (define_mode_iterator V_AVX): New.
637 (define_mode_attr sse4_1): Extend to other 128/256-bit modes.
638 (define_insn "avx_ptest256"): Merge this ...
639 (define_insn "sse4_1_ptest"): And this ...
640 (define_insn "<sse4_1>_ptest<mode>"): Into this. Use V_AVX iterator.
641
642 2015-08-05 Richard Biener <rguenther@suse.de>
643
644 PR tree-optimization/67109
645 * tree-vect-data-refs.c (vect_analyze_group_access_1): Check
646 against too big groups. Print whether this is a load or store
647 group. Rename from ...
648 (vect_analyze_group_access): ... this which is now a wrapper
649 dissolving an invalid group.
650 (vect_analyze_data_ref_accesses): Print whether this is a load
651 or store group.
652
653 2015-08-05 Richard Biener <rguenther@suse.de>
654
655 PR middle-end/67107
656 * match.pd: Guard const_binop result checking against NULL_TREE
657 result.
658
659 2015-08-05 Kugan Vivekanandarajah <kuganv@linaro.org>
660
661 * cse.c (cse_insn): Restoring old behaviour for src_eqv
662 when dest and value in the REG_EQUAL are same and dest
663 is STRICT_LOW_PART.
664
665 2015-08-04 Anatoly Sokolov <aesok@post.ru>
666
667 * config/moxie/moxie.h (PRINT_OPERAND,
668 PRINT_OPERAND_ADDRESS): Remove macros.
669 * config/moxie/moxie-protos.h (moxie_print_operand,
670 moxie_print_operand_address): Remove declaration.
671 * config/moxie/moxie.c (TARGET_PRINT_OPERAND,
672 TARGET_PRINT_OPERAND_ADDRESS): Define.
673 (moxie_print_operand, moxie_print_operand_address): Make static.
674
675 2015-08-04 Szabolcs Nagy <szabolcs.nagy@arm.com>
676
677 PR target/66731
678 * config/aarch64/aarch64.c (aarch64_rtx_costs): Fix NEG cost for FNMUL.
679 (aarch64_rtx_mult_cost): Fix MULT cost with -frounding-math.
680
681 2015-08-04 Richard Biener <rguenther@suse.de>
682
683 * genmatch.c (dt_node::gen_kids_1): Use gassign and gcall in
684 generated code.
685 (dt_operand::gen_gimple_expr): Adjust.
686
687 2015-08-04 Richard Biener <rguenther@suse.de>
688
689 * gimple-fold.c (gimple_fold_stmt_to_constant_1): Canonicalize
690 bool compares on RHS.
691 * match.pd: Add X ==/!= !X is false/true pattern.
692
693 2015-08-04 Pawel Kupidura <pawel.kupidura@arm.com>
694
695 * config/aarch64/aarch64.c: Change inner loop statement cost
696 to be consistent with other targets.
697
698 2015-08-04 Christophe Lyon <christophe.lyon@linaro.org>
699
700 * config/arm/neon.md (neon_vget_lanev2di): Handle big-endian
701 targets.
702
703 2015-08-04 Nathan Sidwell <nathan@codesourcery.com>
704
705 * config/nvptx/nvptx.h (struct nvptx_pseudo_info): Delete.
706 (machine_function): Remove pseudos field.
707
708 2015-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
709
710 * config/aarch64/aarch64.c (aarch64_option_valid_attribute_p):
711 Exit early and use target_option_current_node if processing current
712 pragma.
713
714 2015-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
715
716 * doc/extend.texi (AArch64 Function Attributes): New node.
717 (AArch64 Pragmas): Likewise.
718
719 2015-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
720
721 * config/aarch64/aarch64.c (aarch64_option_valid_attribute_p):
722 Initialize simd builtins if TARGET_SIMD.
723 * config/aarch64/aarch64-builtins.c (aarch64_init_simd_builtins):
724 Make sure that the builtins are initialized only once no matter how
725 many times the function is called.
726 (aarch64_init_builtins): Unconditionally initialize crc builtins.
727 (aarch64_relayout_simd_param): New function.
728 (aarch64_simd_expand_args): Use above during argument expansion.
729 * config/aarch64/aarch64-c.c (aarch64_pragma_target_parse): Initialize
730 simd builtins if TARGET_SIMD.
731 * config/aarch64/aarch64-protos.h (aarch64_init_simd_builtins): New
732 prototype.
733 (aarch64_relayout_simd_types): Likewise.
734
735 2015-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
736
737 * config.gcc (aarch64*-*-*): Specify c_target_objs and cxx_target_objs.
738 * config/aarch64/aarch64.h (REGISTER_TARGET_PRAGMAS): Define.
739 (TARGET_CPU_CPP_BUILTINS): Redefine to call aarch64_cpu_cpp_builtins.
740 * config/aarch64/aarch64.c (aarch64_override_options_internal): Remove
741 static keyword.
742 (aarch64_reset_previous_fndecl): New function.
743 (aarch64_handle_attr_isa_flags): Handle "+nothing" in the beginning of
744 the string.
745 * config/aarch64/aarch64-c.c: New file.
746 * config/aarch64/arm_acle.h: Add pragma +crc+nofp at the top.
747 Push and pop options at beginning and end. Remove ifdef
748 __ARM_FEATURE_CRC32.
749 * config/aarch64/arm_neon.h: Remove #ifdef check on __ARM_NEON.
750 Add pragma +nothing+simd and +nothing+crypto where appropriate.
751 * config/aarch64/t-aarch64 (aarch64-c.o): New rule.
752 * config/aarch64/aarch64-protos.h (aarch64_cpu_cpp_builtins):
753 Define prototype.
754 (aarch64_register_pragmas): Likewise.
755 (aarch64_reset_previous_fndecl): Likewise.
756 (aarch64_process_target_attr): Likewise.
757 (aarch64_override_options_internal): Likewise.
758
759 2015-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
760
761 * config/aarch64/aarch64.c (aarch64_tribools_ok_for_inlining_p):
762 New function.
763 (aarch64_can_inline_p): Likewise.
764 (TARGET_CAN_INLINE_P): Define.
765
766 2015-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
767
768 * common/config/aarch64/aarch64-common.c (aarch64_handle_option):
769 Remove static. Handle OPT_mgeneral_regs_only,
770 OPT_mfix_cortex_a53_835769, OPT_mstrict_align,
771 OPT_momit_leaf_frame_pointer.
772 * config/aarch64/aarch64.c: Include opts.h and diagnostic.h
773 (aarch64_attr_opt_type): New enum.
774 (aarch64_attribute_info): New struct.
775 (aarch64_handle_attr_arch): New function.
776 (aarch64_handle_attr_cpu): Likewise.
777 (aarch64_handle_attr_tune): Likewise.
778 (aarch64_handle_attr_isa_flags): Likewise.
779 (aarch64_attributes): New table.
780 (aarch64_process_one_target_attr): New function.
781 (num_occurences_in_str): Likewise.
782 (aarch64_process_target_attr): Likewise.
783 (aarch64_option_valid_attribute_p): Likewise.
784 (TARGET_OPTION_VALID_ATTRIBUTE_P): Define.
785 * config/aarch64/aarch64-protos.h: Include input.h
786 (aarch64_handle_option): Declare prototype.
787
788 2015-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
789
790 * config/aarch64/aarch64.h (SWITCHABLE_TARGET): Define.
791 * config/aarch64/aarch64.c: Include target-globals.h
792 (aarch64_previous_fndecl): New variable.
793 (aarch64_set_current_function): New function.
794 (TARGET_SET_CURRENT_FUNCTION): Define.
795
796 2015-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
797
798 * config/aarch64/aarch64.opt (explicit_tune_core): New TargetVariable.
799 (explicit_arch): Likewise.
800 (x_aarch64_isa_flags): Likewise.
801 (mgeneral-regs-only): Mark as Save.
802 (mfix-cortex-a53-835769): Likewise.
803 (mcmodel=): Likewise.
804 (mstrict-align): Likewise.
805 (momit-leaf-frame-pointer): Likewise.
806 (mtls-dialect): Likewise.
807 (master=): Likewise.
808 * config/aarch64/aarch64.h (ASM_DECLARE_FUNCTION_NAME): Define.
809 (aarch64_isa_flags): Remove extern declaration.
810 * config/aarch64/aarch64.c (aarch64_validate_mcpu): Return a bool
811 to indicate success or failure.
812 (aarch64_validate_march): Likewise.
813 (aarch64_validate_mtune): Likewise.
814 (aarch64_isa_flags): Delete.
815 (aarch64_override_options_internal): Access opts->x_aarch64_isa_flags
816 instead of aarch64_isa_flags.
817 (aarch64_get_tune_cpu): New function.
818 (aarch64_get_arch): Likewise.
819 (aarch64_override_options): Use above and set up explicit_tune_core
820 and explicit_arch.
821 (aarch64_print_extension): Move earlier in file. Add isa_flags
822 argument and use that instead of the global aarch64_isa_flags.
823 (aarch64_option_save): New function.
824 (aarch64_option_restore): Likewise.
825 (aarch64_option_print): Likewise.
826 (aarch64_declare_function_name): Likewise.
827 (aarch64_start_file): Delete.
828 (TARGET_ASM_FILE_START): Do not define.
829 (TARGET_OPTION_RESTORE, TARGET_OPTION_PRINT): Define.
830 * config/aarch64/aarch64-protos.h (aarch64_declare_function_name):
831 Declare prototype.
832
833 2015-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
834
835 * config/aarch64/aarch64.opt (momit-leaf-frame-pointer): Initialize
836 flag_omit_leaf_frame_pointer to 2.
837
838 2015-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
839
840 * config/aarch64/aarch64.h (TARGET_FIX_ERR_A53_835769_DEFAULT): Always
841 define to 0 or 1.
842 (TARGET_FIX_ERR_A53_835769): New macro.
843 * config/aarch64/aarch64.c (aarch64_override_options_internal): Remove
844 handling of opts->x_aarch64_fix_a53_err835769.
845 (aarch64_madd_needs_nop): Check for TARGET_FIX_ERR_A53_835769 rather
846 than aarch64_fix_a53_err835769.
847 * config/aarch64/aarch64-elf-raw.h: Update for above changes.
848 * config/aarch64/aarch64-linux.h: Likewise.
849
850 2015-08-04 Uros Bizjak <ubizjak@gmail.com>
851
852 * config/i386/i386.c (ix86_expand_int_movcc): Check result of
853 ix86_expand_int_movcc as boolean.
854
855 2015-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
856
857 * config/aarch64/aarch64.opt (aarch64_arch_string): Delete.
858 (aarch64_cpu_string): Likewise.
859 (aarch64_tune_string): Likewise.
860 * config/aarch64/aarch64.c (aarch64_parse_opt_result): New enum.
861 (aarch64_parse_extension): Return aarch64_parse_opt_result.
862 Add extra argument to put result into.
863 (aarch64_parse_arch): Likewise. Do not set selected_cpu.
864 (aarch64_parse_cpu): Add arguments to put results into. Return
865 aarch64_parse_opt_result.
866 (aarch64_parse_tune): Likewise.
867 (aarch64_override_options_after_change_1): New function.
868 (aarch64_override_options_internal): New function.
869 (aarch64_validate_mcpu): Likewise.
870 (aarch64_validate_march): Likewise.
871 (aarch64_validate_mtune): Likewise.
872 (aarch64_override_options): Update to reflect above changes.
873 Move some logic into aarch64_override_options_internal.
874 Initialize target_option_default_node and target_option_current_node.
875 (aarch64_override_options_after_change): Move logic into
876 aarch64_override_options_after_change_1 and call it with global_options.
877 (initialize_aarch64_code_model): Take a gcc_options pointer and use the
878 flag values from that.
879
880 2015-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
881
882 * config/aarch64/aarch64.h (TARGET_CPU_CPP_BUILTINS): Define
883 __ARM_ARCH_8A directly rather than with cpp_define_formatted.
884 * config/aarch64/aarch64.c (struct processor): Add arch field.
885 (all_architectures): Handle above, move above all_cores.
886 (all_cores): Handle above.
887 (aarch64_parse_arch): Handle above changes.
888 * config/aarch64/aarch64-arches.def (armv8-a): Extend according to
889 above. Update comments.
890 (armv8.1-a): Likewise.
891 * config/aarch64/aarch64-cores.def: Update according to above.
892 * config/aarch64/aarch64-opts.h (aarch64_arch): New enum.
893 * config/aarch64/driver-aarch64.c (struct aarch64_arch): Rename to
894 aarch64_arch_driver_info.
895
896 2015-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
897
898 * config/aarch64/aarch64.c (struct processor): Add ident field.
899 Rename core sched_core.
900 (all_cores): Handle above changes.
901 (all_architectures): Likewise.
902 (aarch64_parse_arch): Likewise.
903 (aarch64_override_options): Likewise.
904
905 2015-08-04 Richard Biener <rguenther@suse.de>
906
907 * gimple-fold.c (gimple_fold_stmt_to_constant_1): Remove
908 dispatching to fold_binary for GIMPLE_BINARY_RHS and for
909 comparisons embedded in [VEC_]COND_EXPRs.
910
911 2015-08-03 Abe Skolnik <a.skolnik@samsung.com>
912
913 * tree-if-conv.c: Fix various typos in comments.
914 * tree-vect-stmts.c: Likewise.
915
916 2015-08-04 Thomas Preud'homme <thomas.preudhomme@arm.com>
917
918 PR tree-optimization/67043
919 * loop-invariant.c (move_invariant_reg): Recompute luids in loop
920 preheader after hoisting invariant in it.
921 (find_defs): Force recomputation of all luids.
922
923 2015-08-03 Peter Bergner <bergner@vnet.ibm.com>
924
925 * config/rs6000/htm.md (tabort.): Restrict the source operand to
926 using a base register.
927
928 2015-08-03 David Malcolm <dmalcolm@redhat.com>
929
930 * main.c (main): Pass in NULL for toplev's external_timer.
931 * timevar.c: Include coretypes.h.
932 (class timer::named_items): New.
933 (timer::named_items::named_items): New.
934 (timer::named_items::~named_items): New.
935 (timer::named_items::push): New.
936 (timer::named_items::pop): New.
937 (timer::named_items::print): New.
938 (timer::timer): Initialize field "m_jit_client_items".
939 (timer::~timer): New.
940 (timer::push): Move bulk of implementation to...
941 (timer::push_internal): ...here. New function.
942 (timer::pop): Move bulk of implementation to...
943 (timer::pop_internal): ...here. New function.
944 (timer::push_client_item): New.
945 (timer::pop_client_item): New.
946 (timer::print_row): New function, taken from timer::print.
947 (timer::print): Print "GCC items" header if we also have client
948 items. Move row-printing to timer::print_row. Print any client
949 items.
950 (timer::get_topmost_item_name): New method.
951 * timevar.def (TV_JIT_ACQUIRING_MUTEX): New.
952 (TV_JIT_CLIENT_CODE): New.
953 * timevar.h (timer::push_client_item): New declaration.
954 (timer::pop_client_item): New declaration.
955 (timer::get_topmost_item_name): New method.
956 (timer::push_internal): New declaration.
957 (timer::pop_internal): New declaration.
958 (timer::print_row): New declaration.
959 (timer::named_items): New declaration.
960 (timer::m_jit_client_items): New field.
961 (timer): Add friend class named_items.
962 (auto_timevar::auto_timevar): Add timer param.
963 (auto_timevar::~auto_timevar): Use field "m_timer".
964 (auto_timevar::m_timer): New field.
965 * toplev.c (initialize_rtl): Add g_timer as param when
966 constructing auto_timevar instance.
967 (toplev::toplev): Add "external_timer" param, and use it to
968 initialize the "g_timer" global if non-NULL.
969 (toplev::~toplev): If this created "g_timer", delete it.
970 * toplev.h (toplev::toplev): Replace "use_TV_TOTAL" bool param
971 with "external_timer" timer *.
972
973 2015-08-03 Alexander Basov <coohpt@gmail.com>
974
975 PR middle-end/64744
976 PR middle-end/48470
977 PR middle-end/43404
978 * cfgexpand.c (expand_one_var): Add check if stack is going to
979 be used in naked function.
980 * expr.c (expand_expr_addr_expr_1): Remove excess checking
981 whether expression should not reside in MEM.
982 * function.c (use_register_for_decl): Do not use registers for
983 non-register things (volatile, float, BLKMode) in naked functions.
984
985 2015-08-03 John David Anglin <danglin@gcc.gnu.org>
986
987 PR target/67060
988 * config/pa/pa.md (call_reg_64bit): Remove reg:DI 1 clobber.
989 Adjust splits to match new pattern.
990
991 2015-08-03 Michael Meissner <meissner@linux.vnet.ibm.com>
992
993 * config/rs6000/vector.md (VEC_L): Add KFmode and TFmode.
994 (VEC_M): Likewise.
995 (VEC_N): Likewise.
996 (mov<mode>, VEC_M iterator): Add support for IEEE 128-bit floating
997 point in VSX registers.
998
999 * config/rs6000/constraints.md (wb constraint): Document unused
1000 w<x> constraint.
1001 (we constraint): Likewise.
1002 (wo constraint): Likewise.
1003 (wp constraint): New constraint for IEEE 128-bit floating point in
1004 VSX registers.
1005 (wq constraint): Likewise.
1006
1007 * config/rs6000/predicates.md (easy_fp_constant): Add support for
1008 IEEE 128-bit floating point in VSX registers.
1009 (easy_scalar_constant): Likewise.
1010
1011 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Add new
1012 constraints (wp, wq) for IEEE 128-bit floating point in VSX
1013 registers.
1014 (rs6000_init_hard_regno_mode_ok): Likewise.
1015
1016 * config/rs6000/vsx.md (VSX_LE_128): Add support for IEEE 128-bit
1017 floating point in VSX registers.
1018 (VSX_L): Likewise.
1019 (VSX_M): Likewise.
1020 (VSX_M2): Likewise.
1021 (VSm): Likewise.
1022 (VSs): Likewise.
1023 (VSr): Likewise.
1024 (VSa): Likewise.
1025 (VSv): Likewise.
1026 (vsx_le_permute_<mode>): Add support to properly swap bytes for
1027 IEEE 128-bit floating point in VSX registers on little endian.
1028 (vsx_le_undo_permute_<mode>): Likewise.
1029 (vsx_le_perm_load_<mode>): Likewise.
1030 (vsx_le_perm_store_<mode>): Likewise.
1031 (splitters for IEEE 128-bit fp moves): Likewise.
1032
1033 * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Add wp and
1034 wq constraints.
1035
1036 * config/rs6000/altivec.md (VM): Add support for IEEE 128-bit
1037 floating point in VSX registers.
1038 (VM2): Likewise.
1039
1040 * doc/md.text (Machine Constraints): Document wp and wq
1041 constraints on PowerPC.
1042
1043 2015-08-03 Jeff Law <law@redhat.com>
1044
1045 PR middle-end/66314
1046 PR gcov-profile/66899
1047 * tree-ssa-threadupdate.c (mark_threaded_blocks): Correctly
1048 iterate over the jump threading paths when an element in the
1049 jump threading paths array is eliminated.
1050
1051 2015-08-03 Segher Boessenkool <segher@kernel.crashing.org>
1052
1053 * Makefile.in (OBJS): Put gimple-match.o and generic-match.o first.
1054
1055 2015-08-03 Patrick Palka <ppalka@gcc.gnu.org>
1056
1057 * tree-ssa-uninit.c (find_uninit_use): Declare and pass to
1058 is_use_properly_guarded the variable def_preds. Free its
1059 contents before returning.
1060 (prune_uninit_phi_opnds_in_unrealizable_paths): Same.
1061 (is_use_properly_guarded): Replace local variable def_preds with
1062 a parameter. Adjust accordingly. Only update *def_preds if it's
1063 the empty vector.
1064
1065 2015-08-03 Richard Biener <rguenther@suse.de>
1066
1067 * genmatch.c (simplify::for_subst_vec): New member.
1068 (binary_ok): New helper for for lowering.
1069 (lower_for): Delay substituting operators into result expressions
1070 if we can merge the results eventually again.
1071 (capture_info::walk_result): Adjust for user_id appearing as
1072 result expression operator.
1073 (expr::gen_transform): Likewise.
1074 (dt_simplify::gen_1): Likewise.
1075 (dt_simplify::gen): Pass not substituted operators to tail
1076 functions or initialize local variable with it.
1077 (decision_tree::gen): Adjust function signature.
1078 * match.pd: Fix tests against global code and add default
1079 cases to switch stmts.
1080
1081 2015-08-03 Richard Biener <rguenther@suse.de>
1082
1083 * genmatch.c (dt_simplify::gen): Create captures array
1084 with an initializer.
1085
1086 2015-08-03 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
1087
1088 * configure.ac: Set aliasing_flags to -fno-strict-aliasing if
1089 the host compiler is affected by placement new aliasing bug.
1090 * configure: Regenerate.
1091 * Makefile.in (ALIASING_FLAGS): New variable.
1092 (ALL_CXXFLAGS): Add $(ALIASING_FLAGS).
1093
1094 2015-08-03 Szabolcs Nagy <szabolcs.nagy@arm.com>
1095
1096 PR target/66731
1097 * config/arm/vfp.md (negmuldf3_vfp): Add new pattern.
1098 (negmulsf3_vfp): Likewise.
1099 (muldf3negdf_vfp): Disable for -frounding-math.
1100 (mulsf3negsf_vfp): Likewise.
1101 * config/arm/arm.c (arm_new_rtx_costs): Fix NEG cost for VNMUL,
1102 fix MULT cost with -frounding-math.
1103
1104 2015-08-03 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
1105
1106 * ifcvt.c (noce_try_store_flag_constants): Make logic of the case
1107 when diff == STORE_FLAG_VALUE or diff == -STORE_FLAG_VALUE more
1108 explicit. Prefer to add the flag whenever possible.
1109 (noce_process_if_block): Try noce_try_store_flag_constants before
1110 noce_try_cmove.
1111
1112 2015-08-03 Richard Biener <rguenther@suse.de>
1113
1114 * genmatch.c (struct sinfo, struct sinfo_hashmap_traits, sinfo_map_t):
1115 New hash-map to record equivalent transforms.
1116 (dt_node::analyze): Populate the equivalent transforms hash-map.
1117 (dt_simplify::info): Add reference to hash-map entry.
1118 (dt_simplify::gen): If we have split out a function for the
1119 transform, generate a call to it.
1120 (sinfo_hashmap_traits::hash): New function.
1121 (compare_op): New helper function for ...
1122 (sinfo_hashmap_traits::equal_keys): ... this new function.
1123 (decision_tree::gen): Split out common equivalent transforms
1124 into functions.
1125
1126 2015-08-03 Richard Biener <rguenther@suse.de>
1127
1128 * gimple-fold.c (fold_gimple_assign): Remove folding of
1129 the comparison in COND_EXPRs.
1130
1131 2015-08-03 Richard Biener <rguenther@suse.de>
1132
1133 * gimple-match-head.c (gimple_simplify): For [VEC_]COND_EXPRs
1134 on the rhs of assignments first simplify the embedded
1135 GENERIC condition.
1136
1137 2015-08-03 Richard Biener <rguenther@suse.de>
1138
1139 PR tree-optimization/66917
1140 * tree-vectorizer.h (struct dataref_aux): Add base_element_aligned
1141 field.
1142 (DR_VECT_AUX): New macro.
1143 (set_dr_misalignment): Adjust.
1144 (dr_misalignment): Likewise.
1145 * tree-vect-data-refs.c (vect_compute_data_ref_alignment):
1146 Compute whether the base is at least element aligned.
1147 * tree-vect-stmts.c (ensure_base_align): Adjust.
1148 (vectorizable_store): If the base is not element aligned
1149 preserve alignment of the original access if misalignment is unknown.
1150 (vectorizable_load): Likewise.
1151
1152 2015-08-02 Martin Sebor <msebor@redhat.com>
1153
1154 * c-family/c.opt (-Wframe-address): New warning option.
1155 * doc/invoke.texi (Wframe-address): Document it.
1156 * doc/extend.texi (__builtin_frame_address, __builtin_return_address):
1157 Clarify possible effects of calling the functions with non-zero
1158 arguments and mention -Wframe-address.
1159 * builtins.c (expand_builtin_frame_address): Handle -Wframe-address.
1160
1161 2015-08-01 Michael Collison <michael.collison@linaro.org
1162 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
1163
1164 * gcc/config/arm/arm.md (*arm_smin_cmp): New pattern.
1165 (*arm_umin_cmp): Likewise.
1166
1167 2015-08-01 Caroline Tice <cmtice@google.com>
1168
1169 PR 66521
1170 * vtable-verify.c (vtbl_mangled_name_types, vtbl_mangled_name_ids): New
1171 global variables.
1172 (vtbl_find_mangled_name): New function.
1173 (vtbl_register_mangled_name): New function.
1174 (vtbl_map_get_node): If DECL_ASSEMBLER_NAME is "<anon>", look up
1175 mangled name in mangled name vectors.
1176 (find_or_create_vtbl_map_node): Ditto.
1177 (var_is_used_for_virtual_call_p): Add recursion_depth parameter;
1178 update recursion_depth on function entry; pass it to every recursive
1179 call; automatically exit if depth > 25 (give up looking at that point).
1180 (verify_bb_vtables): Initialize recursion_depth and pass it to
1181 var_is_used_for_virtual_call_p.
1182 * vtable-verify.h (vtbl_mangbled_name_types, vtbl_mangled_name_ids): New
1183 global variable decls.
1184 (vtbl_register_mangled_name): New extern function decl.
1185
1186 2015-08-01 Tom de Vries <tom@codesourcery.com>
1187
1188 * tree.c (operation_can_overflow, operation_no_trapping_overflow): New
1189 function.
1190 * tree.h (operation_can_overflow, operation_no_trapping_overflow):
1191 Declare.
1192 * tree-vect-loop.c (vect_is_simple_reduction_1): Use
1193 operation_no_trapping_overflow. Allow non-overflow operations.
1194 * graphite-sese-to-poly.c (is_reduction_operation_p): Allow non-overflow
1195 operations.
1196
1197 2015-07-31 Kaz Kojima <kkojima@gcc.gnu.org>
1198
1199 PR target/67049
1200 * config/sh/sh.md (GOTaddr2picreg): Fix typo.
1201
1202 2015-07-31 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
1203
1204 * config/arm/arm.md (*if_neg_move): Convert to insn_and_split.
1205 Enable for TARGET_32BIT.
1206 (*if_move_neg): Likewise.
1207
1208 2015-07-31 Nick Clifton <nickc@redhat.com>
1209
1210 * config/m32r/m32r.c (m32r_attribute_identifier): New function.
1211 Returns true for __model__.
1212 (TARGET_ATTRIBUTE_TAKES_IDENTIFIER_P): Define.
1213
1214 2015-07-31 Alan Modra <amodra@gmail.com>
1215
1216 PR target/66870
1217 * config/rs6000/rs6000.c (machine_function): Add split_stack_argp_used.
1218 (rs6000_emit_prologue): Set it.
1219 (rs6000_set_up_by_prologue): Specify r12 when split_stack_argp_used.
1220
1221 2015-07-31 Richard Biener <rguenther@suse.de>
1222
1223 * fold-const.c (fold_binary_loc): Remove X ^ C1 == C2
1224 -> X == (C1 ^ C2) which is already implemented in match.pd.
1225 Remove redundant dispatching to fold_relational_const.
1226 Move unordered self and NaN compares ...
1227 * match.pd: ... as patterns here. Remove some stray captures
1228 and add a comment.
1229
1230 2015-07-31 Petr Murzin <petr.murzin@intel.com>
1231
1232 * config/i386/i386.c
1233 (bdesc_special_args): Convert mask type from signed to unsigned for
1234 masked builtins.
1235 (ix86_expand_args_builtin): Do not handle UINT_FTYPE_V2DF,
1236 UINT64_FTYPE_V2DF, UINT64_FTYPE_V4SF, V16QI_FTYPE_V8DI,
1237 V16HI_FTYPE_V16SI, V16SI_FTYPE_V16SI, V16SF_FTYPE_FLOAT,
1238 V8HI_FTYPE_V8DI, V8UHI_FTYPE_V8UHI, V8SI_FTYPE_V8DI, V8SF_FTYPE_V8DF,
1239 V8DI_FTYPE_INT64, V8DI_FTYPE_V4DI, V8DI_FTYPE_V8DI, V8DF_FTYPE_DOUBLE,
1240 V8DF_FTYPE_V8SI, V16SI_FTYPE_V16SI_V16SI, V16SF_FTYPE_V16SF_V16SI,
1241 V8DI_FTYPE_V8DI_V8DI, V8DF_FTYPE_V8DF_V8DI, V4SI_FTYPE_V4SF_V4SF,
1242 V4SF_FTYPE_V4SF_UINT64, V2UDI_FTYPE_V4USI_V4USI, V2DI_FTYPE_V2DF_V2DF,
1243 V2DF_FTYPE_V2DF_UINT64, V4UDI_FTYPE_V8USI_V8USI, QI_FTYPE_V8DI_V8DI,
1244 HI_FTYPE_V16SI_V16SI, HI_FTYPE_HI_INT, V16SF_FTYPE_V16SF_V16SF_V16SF,
1245 V16SF_FTYPE_V16SF_V16SI_V16SF, V16SF_FTYPE_V16SI_V16SF_HI,
1246 V16SF_FTYPE_V16SI_V16SF_V16SF, V16SI_FTYPE_V16SF_V16SI_HI,
1247 V8DI_FTYPE_V8SF_V8DI_QI, V8SF_FTYPE_V8DI_V8SF_QI, V8DI_FTYPE_PV4DI,
1248 V8DF_FTYPE_V8DI_V8DF_QI, V16SI_FTYPE_V16SI_V16SI_V16SI,
1249 V2DI_FTYPE_V2DI_V2DI_V2DI, V8DI_FTYPE_V8DF_V8DI_QI, V8DF_FTYPE_PV4DF,
1250 V8SI_FTYPE_V8SI_V8SI_V8SI, V8DF_FTYPE_V8DF_V8DF_V8DF, UINT_FTYPE_V4SF,
1251 V8DF_FTYPE_V8DF_V8DI_V8DF, V8DF_FTYPE_V8DI_V8DF_V8DF,
1252 V8DF_FTYPE_V8SF_V8DF_QI, V8DI_FTYPE_V8DI_V8DI_V8DI, V16SF_FTYPE_PV4SF,
1253 V8SF_FTYPE_V8DF_V8SF_QI, V8SI_FTYPE_V8DF_V8SI_QI, V16SI_FTYPE_PV4SI,
1254 V2DF_FTYPE_V2DF_V4SF_V2DF_QI, V4SF_FTYPE_V4SF_V2DF_V4SF_QI,
1255 V8DI_FTYPE_V8DI_SI_V8DI_V8DI, QI_FTYPE_V8DF_V8DF_INT_QI,
1256 HI_FTYPE_V16SF_V16SF_INT_HI, V16SF_FTYPE_V16SF_V16SF_V16SI_INT_HI,
1257 VOID_FTYPE_PDOUBLE_V2DF_QI, VOID_FTYPE_PFLOAT_V4SF_QI,
1258 V2DF_FTYPE_PCDOUBLE_V2DF_QI, V4SF_FTYPE_PCFLOAT_V4SF_QI.
1259 * config/i386/i386-builtin-types.def
1260 (V16QI_FTYPE_V16SI): Remove.
1261 (V8DF_FTYPE_V8SI): Ditto.
1262 (V8HI_FTYPE_V8DI): Ditto.
1263 (V8SI_FTYPE_V8DI): Ditto.
1264 (V8SF_FTYPE_V8DF): Ditto.
1265 (V8SF_FTYPE_V8DF_V8SF_QI): Ditto.
1266 (V16HI_FTYPE_V16SI): Ditto.
1267 (V16SF_FTYPE_V16HI): Ditto.
1268 (V16SF_FTYPE_V16HI_V16SF_HI): Ditto.
1269 (V16SF_FTYPE_V16SI): Ditto.
1270 (V4DI_FTYPE_V4DI): Ditto.
1271 (V16SI_FTYPE_V16SF): Ditto.
1272 (V16SF_FTYPE_FLOAT): Ditto.
1273 (V8DF_FTYPE_DOUBLE): Ditto.
1274 (V8DI_FTYPE_INT64): Ditto.
1275 (V8DI_FTYPE_V4DI): Ditto.
1276 (V16QI_FTYPE_V8DI): Ditto.
1277 (UINT_FTYPE_V4SF): Ditto.
1278 (UINT64_FTYPE_V4SF): Ditto.
1279 (UINT_FTYPE_V2DF): Ditto.
1280 (UINT64_FTYPE_V2DF): Ditto.
1281 (V16SI_FTYPE_V16SI): Ditto.
1282 (V8DI_FTYPE_V8DI): Ditto.
1283 (V16SI_FTYPE_PV4SI): Ditto.
1284 (V16SF_FTYPE_PV4SF): Ditto.
1285 (V8DI_FTYPE_PV2DI): Ditto.
1286 (V8DF_FTYPE_PV2DF): Ditto.
1287 (V4DI_FTYPE_PV2DI): Ditto.
1288 (V4DF_FTYPE_PV2DF): Ditto.
1289 (V16SI_FTYPE_PV2SI): Ditto.
1290 (V16SF_FTYPE_PV2SF): Ditto.
1291 (V8DI_FTYPE_PV4DI): Ditto.
1292 (V8DF_FTYPE_PV4DF): Ditto.
1293 (V8SF_FTYPE_FLOAT): Ditto.
1294 (V4SF_FTYPE_FLOAT): Ditto.
1295 (V4DF_FTYPE_DOUBLE): Ditto.
1296 (V8SF_FTYPE_PV4SF): Ditto.
1297 (V8SI_FTYPE_PV4SI): Ditto.
1298 (V4SI_FTYPE_PV2SI): Ditto.
1299 (V8SF_FTYPE_PV2SF): Ditto.
1300 (V8SI_FTYPE_PV2SI): Ditto.
1301 (V16SF_FTYPE_PV8SF): Ditto.
1302 (V16SI_FTYPE_PV8SI): Ditto.
1303 (V8DI_FTYPE_V8SF): Ditto.
1304 (V4DI_FTYPE_V4SF): Ditto.
1305 (V2DI_FTYPE_V4SF): Ditto.
1306 (V64QI_FTYPE_QI): Ditto.
1307 (V32HI_FTYPE_HI): Ditto.
1308 (V8UHI_FTYPE_V8UHI): Ditto.
1309 (V16UHI_FTYPE_V16UHI): Ditto.
1310 (V32UHI_FTYPE_V32UHI): Ditto.
1311 (V2UDI_FTYPE_V2UDI): Ditto.
1312 (V4UDI_FTYPE_V4UDI): Ditto.
1313 (V8UDI_FTYPE_V8UDI): Ditto.
1314 (V4USI_FTYPE_V4USI): Ditto.
1315 (V8USI_FTYPE_V8USI): Ditto.
1316 (V16USI_FTYPE_V16USI): Ditto.
1317 (V2DF_FTYPE_V2DF_UINT64): Ditto.
1318 (V2DI_FTYPE_V2DF_V2DF): Ditto.
1319 (V2UDI_FTYPE_V4USI_V4USI): Ditto.
1320 (V8DF_FTYPE_V8DF_V8DI): Ditto.
1321 (V4SF_FTYPE_V4SF_UINT64): Ditto.
1322 (V4SI_FTYPE_V4SF_V4SF): Ditto.
1323 (V16SF_FTYPE_V16SF_V16SI): Ditto.
1324 (V64QI_FTYPE_V32HI_V32HI): Ditto.
1325 (V32HI_FTYPE_V16SI_V16SI): Ditto.
1326 (V8DF_FTYPE_V8DF_V8DF_V8DI_INT_QI): Ditto.
1327 (V16SF_FTYPE_V16SF_V16SF_V16SI_INT_HI): Ditto.
1328 (V32HI_FTYPE_V64QI_V64QI): Ditto.
1329 (V32HI_FTYPE_V32HI_V32HI): Ditto.
1330 (V16HI_FTYPE_V16HI_V16HI_INT_V16HI_HI): Ditto.
1331 (V16SI_FTYPE_V16SI_V4SI): Ditto.
1332 (V16SI_FTYPE_V16SI_V16SI): Ditto.
1333 (V16SI_FTYPE_V32HI_V32HI): Ditto.
1334 (V16SI_FTYPE_V16SI_SI): Ditto.
1335 (V8DI_FTYPE_V8DI_V8DI): Ditto.
1336 (V4UDI_FTYPE_V8USI_V8USI): Ditto.
1337 (V8DI_FTYPE_V16SI_V16SI): Ditto.
1338 (V8DI_FTYPE_V8DI_V2DI): Ditto.
1339 (QI_FTYPE_QI): Ditto.
1340 (SI_FTYPE_SI): Ditto.
1341 (DI_FTYPE_DI): Ditto.
1342 (QI_FTYPE_QI_QI): Ditto.
1343 (QI_FTYPE_QI_INT): Ditto.
1344 (HI_FTYPE_HI_INT): Ditto.
1345 (SI_FTYPE_SI_INT): Ditto.
1346 (DI_FTYPE_DI_INT): Ditto.
1347 (HI_FTYPE_V16QI_V16QI): Ditto.
1348 (SI_FTYPE_V32QI_V32QI): Ditto.
1349 (DI_FTYPE_V64QI_V64QI): Ditto.
1350 (QI_FTYPE_V8HI_V8HI): Ditto.
1351 (HI_FTYPE_V16HI_V16HI): Ditto.
1352 (SI_FTYPE_V32HI_V32HI): Ditto.
1353 (QI_FTYPE_V4SI_V4SI): Ditto.
1354 (QI_FTYPE_V8SI_V8SI): Ditto.
1355 (QI_FTYPE_V2DI_V2DI): Ditto.
1356 (QI_FTYPE_V4DI_V4DI): Ditto.
1357 (QI_FTYPE_V8DI_V8DI): Ditto.
1358 (HI_FTYPE_V16SI_V16SI): Ditto.
1359 (HI_FTYPE_V16SI_V16SI_INT_HI): Ditto.
1360 (QI_FTYPE_V8DF_V8DF_INT_QI): Ditto.
1361 (HI_FTYPE_V16SF_V16SF_INT_HI): Ditto.
1362 (V32HI_FTYPE_V32HI_V32HI_V32HI): Ditto.
1363 (V4SF_FTYPE_V4SF_V2DF_V4SF_QI): Ditto.
1364 (V8DF_FTYPE_V8DF_V8DF_V8DF): Ditto.
1365 (V16SF_FTYPE_V16SF_V16SF_V16SF): Ditto.
1366 (V8DF_FTYPE_V8SF_V8DF_QI): Ditto.
1367 (V8DI_FTYPE_V8DF_V8DI_QI): Ditto.
1368 (V8DF_FTYPE_V8DI_V8DF_V8DF): Ditto.
1369 (V2DF_FTYPE_V2DF_V4SF_V2DF_QI): Ditto.
1370 (V16SF_FTYPE_V16SI_V16SF_HI): Ditto.
1371 (V16SF_FTYPE_V16SI_V16SF_V16SF): Ditto.
1372 (V8SI_FTYPE_V8DF_V8SI_QI): Ditto.
1373 (V8DI_FTYPE_PCCHAR_V8DI_QI): Ditto.
1374 (V8SF_FTYPE_PCFLOAT_V8SF_QI): Ditto.
1375 (V4SF_FTYPE_PCFLOAT_V4SF_QI): Ditto.
1376 (V4DF_FTYPE_PCDOUBLE_V4DF_QI): Ditto.
1377 (V2DF_FTYPE_PCDOUBLE_V2DF_QI): Ditto.
1378 (V8SI_FTYPE_PCCHAR_V8SI_QI): Ditto.
1379 (V4SI_FTYPE_PCCHAR_V4SI_QI): Ditto.
1380 (V4DI_FTYPE_PCCHAR_V4DI_QI): Ditto.
1381 (V2DI_FTYPE_PCCHAR_V2DI_QI): Ditto.
1382 (V16SF_FTYPE_PCV8SF_V16SF_HI): Ditto.
1383 (V16SI_FTYPE_PCV8SI_V16SI_HI): Ditto.
1384 (V8DF_FTYPE_PCV2DF_V8DF_QI): Ditto.
1385 (V8SF_FTYPE_PCV4SF_V8SF_QI): Ditto.
1386 (V8DI_FTYPE_PCV2DI_V8DI_QI): Ditto.
1387 (V8SI_FTYPE_PCV4SI_V8SI_QI): Ditto.
1388 (V4DF_FTYPE_PCV2DF_V4DF_QI): Ditto.
1389 (V4DI_FTYPE_PCV2DI_V4DI_QI): Ditto.
1390 (VOID_FTYPE_PDOUBLE_V2DF_QI): Ditto.
1391 (VOID_FTYPE_PFLOAT_V4SF_QI): Ditto.
1392 (V16SI_FTYPE_V16SF_V16SI_HI): Ditto.
1393 (V8DI_FTYPE_V8SF_V8DI_QI): Ditto.
1394 (V8SF_FTYPE_V8DI_V8SF_QI): Ditto.
1395 (V8DF_FTYPE_V8DI_V8DF_QI): Ditto.
1396 (V2DF_FTYPE_V2DF_V2DF_V2DI): Ditto.
1397 (V4SF_FTYPE_V4SF_V4SF_V4SI): Ditto.
1398 (V2UDI_FTYPE_V2UDI_V2UDI_V2UDI): Ditto.
1399 (V4USI_FTYPE_V4USI_V4USI_V4USI): Ditto.
1400 (V8UHI_FTYPE_V8UHI_V8UHI_V8UHI): Ditto.
1401 (V16UQI_FTYPE_V16UQI_V16UQI_V16UQI): Ditto.
1402 (V4DF_FTYPE_V4DF_V4DF_V4DI): Ditto.
1403 (V8SF_FTYPE_V8SF_V8SF_V8SI): Ditto.
1404 (V8DI_FTYPE_V8DI_V8DI_V8DI): Ditto.
1405 (V16SI_FTYPE_V16SI_V16SI_V16SI): Ditto.
1406 (V2DF_FTYPE_V2DF_V2DI_V2DF): Ditto.
1407 (V4DF_FTYPE_V4DF_V4DI_V4DF): Ditto.
1408 (V8DF_FTYPE_V8DF_V8DI_V8DF): Ditto.
1409 (V4SF_FTYPE_V4SF_V4SI_V4SF): Ditto.
1410 (V8SF_FTYPE_V8SF_V8SI_V8SF): Ditto.
1411 (V16SF_FTYPE_V16SF_V16SI_V16SF): Ditto.
1412 (V8DI_FTYPE_V8DI_SI_V8DI_V8DI): Ditto.
1413 (PVOID_FTYPE_PVOID_PVOID_ULONG): Ditto.
1414 (V4SF_FTYPE_V2DF_V4SF_QI): Convert mask type from signed to unsigned.
1415 (V4SF_FTYPE_V4DF_V4SF_QI): Ditto.
1416 (V4SF_FTYPE_V8HI_V4SF_QI): Ditto.
1417 (V8SF_FTYPE_V8HI_V8SF_QI): Ditto.
1418 (V16SI_FTYPE_V16SI_V16SI_HI): Ditto.
1419 (V8DI_FTYPE_V8DI_V8DI_QI): Ditto.
1420 (V2DF_FTYPE_V4DF_INT_V2DF_QI): Ditto.
1421 (V2DF_FTYPE_V8DF_INT_V2DF_QI): Ditto.
1422 (V2DI_FTYPE_V2DI_INT_V2DI_QI): Ditto.
1423 (V4DF_FTYPE_V8DF_INT_V4DF_QI): Ditto.
1424 (V4SF_FTYPE_V8SF_INT_V4SF_QI): Ditto.
1425 (V4SI_FTYPE_V2DF_V4SI_QI): Ditto.
1426 (V4SI_FTYPE_V4SI_INT_V4SI_QI): Ditto.
1427 (V4SI_FTYPE_V8HI_V8HI_V4SI_QI): Ditto.
1428 (V4SI_FTYPE_V8SI_INT_V4SI_QI): Ditto.
1429 (V8HI_FTYPE_V16QI_V16QI_V8HI_QI): Ditto.
1430 (V8HI_FTYPE_V8SF_INT_V8HI_QI): Ditto.
1431 (V8HI_FTYPE_V4SF_INT_V8HI_QI): Ditto.
1432 (V8SF_FTYPE_V16SF_INT_V8SF_QI): Ditto.
1433 (V4SF_FTYPE_V16SF_INT_V4SF_QI): Ditto.
1434 (V8DF_FTYPE_V8DF_V2DF_INT_V8DF_QI): Ditto.
1435 (V8DF_FTYPE_V8DF_V4DF_INT_V8DF_QI): Ditto.
1436 (V8DF_FTYPE_V8DF_V8DF_INT_V8DF_QI): Ditto.
1437 (V8DF_FTYPE_V8DF_INT_V8DF_QI): Ditto.
1438 (V4DF_FTYPE_V4DF_V4DF_V4DI_INT_QI): Ditto.
1439 (V2DF_FTYPE_V2DF_V2DF_V2DI_INT_QI): Ditto.
1440 (V16SF_FTYPE_V16SF_V16SF_INT_V16SF_HI): Ditto.
1441 (V16SF_FTYPE_V16SF_INT_V16SF_HI): Ditto.
1442 (V16SI_FTYPE_V16SI_V4SI_INT_V16SI_HI): Ditto.
1443 (V8SF_FTYPE_V8SF_V8SF_V8SI_INT_QI): Ditto.
1444 (V4SF_FTYPE_V4SF_V4SF_V4SI_INT_QI): Ditto.
1445 (V16SF_FTYPE_V16SF_V4SF_INT_V16SF_HI): Ditto.
1446 (V16SF_FTYPE_V16SF_V8SF_INT_V16SF_HI): Ditto.
1447 (V16HI_FTYPE_V32QI_V32QI_V16HI_HI): Ditto.
1448 (V32HI_FTYPE_V64QI_V64QI_V32HI_SI): Ditto.
1449 (V16HI_FTYPE_V16SF_INT_V16HI_HI): Ditto.
1450 (V16SI_FTYPE_V16SI_V8SI_INT_V16SI_HI): Ditto.
1451 (V4SI_FTYPE_V16SI_INT_V4SI_QI): Ditto.
1452 (V16SI_FTYPE_V16SI_V16SI_INT_V16SI_HI): Ditto.
1453 (V8SI_FTYPE_V16HI_V16HI_V8SI_QI): Ditto.
1454 (V16SI_FTYPE_V32HI_V32HI_V16SI_HI): Ditto.
1455 (V8SI_FTYPE_V8SI_INT_V8SI_QI): Ditto.
1456 (V8SI_FTYPE_V16SI_INT_V8SI_QI): Ditto.
1457 (V16SI_FTYPE_V16SI_V4SI_V16SI_HI): Ditto.
1458 (V16SI_FTYPE_V16SI_INT_V16SI_HI): Ditto.
1459 (V8DI_FTYPE_V8DI_V8DI_INT_V8DI_QI): Ditto.
1460 (V8DI_FTYPE_V8DI_V8DI_INT_V8DI_DI): Ditto.
1461 (V4DI_FTYPE_V4DI_V4DI_INT_V4DI_SI): Ditto.
1462 (V2DI_FTYPE_V2DI_V2DI_INT_V2DI_HI): Ditto.
1463 (V8DI_FTYPE_V8DI_V2DI_INT_V8DI_QI): Ditto.
1464 (V8DI_FTYPE_V8DI_V4DI_INT_V8DI_QI): Ditto.
1465 (V4DI_FTYPE_V8DI_INT_V4DI_QI): Ditto.
1466 (V8DI_FTYPE_V8DI_V2DI_V8DI_QI): Ditto.
1467 (V8DI_FTYPE_V8DI_INT_V8DI_QI): Ditto.
1468 (V4DI_FTYPE_V4DI_INT_V4DI_QI): Ditto.
1469 (V2DI_FTYPE_V4DI_INT_V2DI_QI): Ditto.
1470 (V2DI_FTYPE_V8DI_INT_V2DI_QI): Ditto.
1471 (HI_FTYPE_HI): Ditto.
1472 (HI_FTYPE_V16QI): Ditto.
1473 (SI_FTYPE_V32QI): Ditto.
1474 (DI_FTYPE_V64QI): Ditto.
1475 (QI_FTYPE_V8HI): Ditto.
1476 (HI_FTYPE_V16HI): Ditto.
1477 (SI_FTYPE_V32HI): Ditto.
1478 (QI_FTYPE_V4SI): Ditto.
1479 (QI_FTYPE_V8SI): Ditto.
1480 (HI_FTYPE_V16SI): Ditto.
1481 (QI_FTYPE_V2DI): Ditto.
1482 (QI_FTYPE_V4DI): Ditto.
1483 (QI_FTYPE_V8DI): Ditto.
1484 (V16QI_FTYPE_HI): Ditto.
1485 (V32QI_FTYPE_SI): Ditto.
1486 (V64QI_FTYPE_DI): Ditto.
1487 (V8HI_FTYPE_QI): Ditto.
1488 (V16HI_FTYPE_HI): Ditto.
1489 (V32HI_FTYPE_SI): Ditto.
1490 (V4SI_FTYPE_QI): Ditto.
1491 (V4SI_FTYPE_HI): Ditto.
1492 (V8SI_FTYPE_QI): Ditto.
1493 (V8SI_FTYPE_HI): Ditto.
1494 (V2DI_FTYPE_QI): Ditto.
1495 (V4DI_FTYPE_QI): Ditto.
1496 (HI_FTYPE_HI_HI): Ditto.
1497 (SI_FTYPE_SI_SI): Ditto.
1498 (DI_FTYPE_DI_DI): Ditto.
1499 (HI_FTYPE_V16QI_V16QI_HI): Ditto.
1500 (HI_FTYPE_V16QI_V16QI_INT_HI): Ditto.
1501 (SI_FTYPE_V32QI_V32QI_SI): Ditto.
1502 (SI_FTYPE_V32QI_V32QI_INT_SI): Ditto.
1503 (DI_FTYPE_V64QI_V64QI_DI): Ditto.
1504 (DI_FTYPE_V64QI_V64QI_INT_DI): Ditto.
1505 (QI_FTYPE_V8HI_V8HI_QI): Ditto.
1506 (QI_FTYPE_V8HI_V8HI_INT_QI): Ditto.
1507 (HI_FTYPE_V16HI_V16HI_HI): Ditto.
1508 (HI_FTYPE_V16HI_V16HI_INT_HI): Ditto.
1509 (SI_FTYPE_V32HI_V32HI_SI): Ditto.
1510 (SI_FTYPE_V32HI_V32HI_INT_SI): Ditto.
1511 (QI_FTYPE_V4SI_V4SI_QI): Ditto.
1512 (QI_FTYPE_V4SI_V4SI_INT_QI): Ditto.
1513 (QI_FTYPE_V8SI_V8SI_QI): Ditto.
1514 (QI_FTYPE_V8SI_V8SI_INT_QI): Ditto.
1515 (QI_FTYPE_V2DI_V2DI_QI): Ditto.
1516 (QI_FTYPE_V2DI_V2DI_INT_QI): Ditto.
1517 (QI_FTYPE_V4DI_V4DI_QI): Ditto.
1518 (QI_FTYPE_V4DI_V4DI_INT_QI): Ditto.
1519 (QI_FTYPE_V8DI_V8DI_QI): Ditto.
1520 (HI_FTYPE_V16SI_V16SI_HI): Ditto.
1521 (QI_FTYPE_V8DI_V8DI_INT): Ditto.
1522 (QI_FTYPE_V8DI_V8DI_INT_QI): Ditto.
1523 (HI_FTYPE_V16SI_V16SI_INT): Ditto.
1524 (HI_FTYPE_V16SI_V16SI_INT _HI): Ditto.
1525 (QI_FTYPE_V8DF_V8DF_INT): Ditto.
1526 (QI_FTYPE_V8DF_V8DF_INT_QI_INT): Ditto.
1527 (HI_FTYPE_V16SF_V16SF_INT): Ditto.
1528 (HI_FTYPE_V16SF_V16SF_INT_HI_INT): Ditto.
1529 (QI_FTYPE_V2DF_V2DF_INT): Ditto.
1530 (QI_FTYPE_V2DF_V2DF_INT_QI): Ditto.
1531 (QI_FTYPE_V2DF_V2DF_INT_QI_INT): Ditto.
1532 (QI_FTYPE_V4SF_V4SF_INT): Ditto.
1533 (QI_FTYPE_V4SF_V4SF_INT_QI): Ditto.
1534 (QI_FTYPE_V4SF_V4SF_INT_QI_INT): Ditto.
1535 (V16SI_FTYPE_HI): Ditto.
1536 (V8DI_FTYPE_QI): Ditto.
1537 (V2DF_FTYPE_V2DI_V2DF_V2DF_QI): Ditto.
1538 (V2DF_FTYPE_V2DF_V2DI_V2DF_QI): Ditto.
1539 (V4DF_FTYPE_V4DF_V2DF_INT_V4DF_QI): Ditto.
1540 (V4SF_FTYPE_V4SI_V4SF_V4SF_QI): Ditto.
1541 (V4SF_FTYPE_V4SF_V4SI_V4SF_QI): Ditto.
1542 (V4SF_FTYPE_V4SF_V4SF_V4SF_QI): Ditto.
1543 (V8SF_FTYPE_V8SF_V4SF_INT_V8SF_QI): Ditto.
1544 (V8SI_FTYPE_V8SI_V4SI_INT_V8SI_QI): Ditto.
1545 (V4DI_FTYPE_V4DI_V2DI_INT_V4DI_QI): Ditto.
1546 (V2DF_FTYPE_V2DF_V2DF_QI): Ditto.
1547 (V2DF_FTYPE_V4SF_V2DF_QI): Ditto.
1548 (V2DF_FTYPE_V4SI_V2DF_QI): Ditto.
1549 (V4DF_FTYPE_V4DF_V4DF_QI): Ditto.
1550 (V4DF_FTYPE_V4SF_V4DF_QI): Ditto.
1551 (V4DF_FTYPE_V4SI_V4DF_QI): Ditto.
1552 (V8DF_FTYPE_V8DF_V8DF_QI): Ditto.
1553 (V8DF_FTYPE_V8SI_V8DF_QI): Ditto.
1554 (V2DI_FTYPE_V4SI_V2DI_QI): Ditto.
1555 (V2DI_FTYPE_V8HI_V2DI_QI): Ditto.
1556 (V4DI_FTYPE_V4DF_V4DI_QI): Ditto.
1557 (V2DI_FTYPE_V2DF_V2DI_QI): Ditto.
1558 (V2DI_FTYPE_V2DI_V2DI_V2DI_QI): Ditto.
1559 (V2DI_FTYPE_V2DI_V2DI_INT_V2DI_QI): Ditto.
1560 (V4DI_FTYPE_V4DI_V4DI_V4DI_QI): Ditto.
1561 (V4DI_FTYPE_V4DI_V4DI_INT_V4DI_QI): Ditto.
1562 (V8DI_FTYPE_V8SI_V8DI_QI): Ditto.
1563 (V8DI_FTYPE_V8HI_V8DI_QI): Ditto.
1564 (V8DI_FTYPE_V16QI_V8DI_QI): Ditto.
1565 (V2DI_FTYPE_V16QI_V2DI_QI): Ditto.
1566 (V4DI_FTYPE_V16QI_V4DI_QI): Ditto.
1567 (V4DI_FTYPE_V4DI_V4DI_QI): Ditto.
1568 (V4DI_FTYPE_V4SI_V4DI_QI): Ditto.
1569 (V4DI_FTYPE_V8HI_V4DI_QI): Ditto.
1570 (V8DI_FTYPE_V8DI_V8DI_V8DI_QI): Ditto.
1571 (V8DF_FTYPE_V8DI_V8DF_V8DF_QI): Ditto.
1572 (V8DF_FTYPE_V8DF_V8DI_V8DF_QI): Ditto.
1573 (V4DF_FTYPE_V4DI_V4DF_V4DF_QI): Ditto.
1574 (V4DF_FTYPE_V4DF_V4DI_V4DF_QI): Ditto.
1575 (V4DF_FTYPE_V4DF_V4DF_V4DF_QI): Ditto.
1576 (V8DF_FTYPE_V8DF_V8DF_V8DF_QI): Ditto.
1577 (V16QI_FTYPE_V16QI_V16QI_V16QI_HI): Ditto.
1578 (V16HI_FTYPE_V16HI_V16HI_V16HI_HI): Ditto.
1579 (V16SI_FTYPE_V16SI_V16SI_V16SI_HI): Ditto.
1580 (V2DF_FTYPE_V2DF_V2DF_V2DF_QI): Ditto.
1581 (V32HI_FTYPE_V32HI_V32HI_V32HI_SI): Ditto.
1582 (V64QI_FTYPE_V64QI_V64QI_V64QI_DI): Ditto.
1583 (V32QI_FTYPE_V32QI_V32QI_V32QI_SI): Ditto.
1584 (V8HI_FTYPE_V8HI_V8HI_V8HI_QI): Ditto.
1585 (V4SF_FTYPE_V4SF_V4SF_QI): Ditto.
1586 (V4SF_FTYPE_V4SI_V4SF_QI): Ditto.
1587 (V8SF_FTYPE_V8SF_V8SF_QI): Ditto.
1588 (V8SF_FTYPE_V8SI_V8SF_QI): Ditto.
1589 (V16SF_FTYPE_V16SF_V16SF_HI): Ditto.
1590 (V4SI_FTYPE_V16QI_V4SI_QI): Ditto.
1591 (V4SI_FTYPE_V8HI_V4SI_QI): Ditto.
1592 (V8SI_FTYPE_V8SI_V8SI_QI): Ditto.
1593 (V8SI_FTYPE_V8HI_V8SI_QI): Ditto.
1594 (V8SI_FTYPE_V16QI_V8SI_QI): Ditto.
1595 (V4SI_FTYPE_V4SI_V4SI_V4SI_QI): Ditto.
1596 (V4SI_FTYPE_V4SI_V4SI_INT_V4SI_QI): Ditto.
1597 (V8SF_FTYPE_V8SF_V8SF_V8SF_QI): Ditto.
1598 (V8SF_FTYPE_V8SI_V8SF_V8SF_QI): Ditto.
1599 (V8SF_FTYPE_V8SF_V8SI_V8SF_QI): Ditto.
1600 (V8SI_FTYPE_V8SI_V8SI_V8SI_QI): Ditto.
1601 (V8SI_FTYPE_V8SI_V8SI_INT_V8SI_QI): Ditto.
1602 (V16SF_FTYPE_V16SF_V16SF_V16SF_HI): Ditto.
1603 (V16SF_FTYPE_V16SI_V16SF_V16SF_HI): Ditto.
1604 (V16SF_FTYPE_V16SF_V16SI_V16SF_HI): Ditto.
1605 (V16SF_FTYPE_V8SF_V16SF_HI): Ditto.
1606 (V16SF_FTYPE_V4SF_V16SF_HI): Ditto.
1607 (V8DF_FTYPE_V4DF_V8DF_QI): Ditto.
1608 (V8DF_FTYPE_V2DF_V8DF_QI): Ditto.
1609 (V16SI_FTYPE_V8SI_V16SI_HI): Ditto.
1610 (V16SI_FTYPE_V4SI_V16SI_HI): Ditto.
1611 (V16SI_FTYPE_SI_V16SI_HI): Ditto.
1612 (V16SI_FTYPE_V16HI_V16SI_HI): Ditto.
1613 (V16SI_FTYPE_V16QI_V16SI_HI): Ditto.
1614 (V8DI_FTYPE_V4DI_V8DI_QI): Ditto.
1615 (V4SI_FTYPE_V4DF_V4SI_QI): Ditto.
1616 (V8DI_FTYPE_V2DI_V8DI_QI): Ditto.
1617 (V8DI_FTYPE_DI_V8DI_QI): Ditto.
1618 (V16QI_FTYPE_V16SI_V16QI_HI): Ditto.
1619 (V16QI_FTYPE_V8DI_V16QI_QI): Ditto.
1620 (V32HI_FTYPE_V32HI_V32HI_SI): Ditto.
1621 (V32HI_FTYPE_V32QI_V32HI_SI): Ditto.
1622 (V16HI_FTYPE_V16HI_V16HI_HI): Ditto.
1623 (V16HI_FTYPE_V16QI_V16HI_HI): Ditto.
1624 (V8HI_FTYPE_V16QI_V8HI_QI): Ditto.
1625 (V8SF_FTYPE_V4SF_V8SF_QI): Ditto.
1626 (V4DF_FTYPE_V2DF_V4DF_QI): Ditto.
1627 (V8SI_FTYPE_V4SI_V8SI_QI): Ditto.
1628 (V8SI_FTYPE_SI_V8SI_QI): Ditto.
1629 (V4SI_FTYPE_V4SI_V4SI_QI): Ditto.
1630 (V4SI_FTYPE_SI_V4SI_QI): Ditto.
1631 (V4DI_FTYPE_V2DI_V4DI_QI): Ditto.
1632 (V4DI_FTYPE_DI_V4DI_QI): Ditto.
1633 (V2DI_FTYPE_V2DI_V2DI_QI): Ditto.
1634 (V2DI_FTYPE_DI_V2DI_QI): Ditto.
1635 (V64QI_FTYPE_V64QI_V64QI_DI): Ditto.
1636 (V64QI_FTYPE_V16QI_V64QI_DI): Ditto.
1637 (V64QI_FTYPE_QI_V64QI_DI): Ditto.
1638 (V32QI_FTYPE_V32QI_V32QI_SI): Ditto.
1639 (V32QI_FTYPE_V16QI_V32QI_SI): Ditto.
1640 (V32QI_FTYPE_QI_V32QI_SI): Ditto.
1641 (V16QI_FTYPE_V16QI_V16QI_HI): Ditto.
1642 (V16QI_FTYPE_QI_V16QI_HI): Ditto.
1643 (V32HI_FTYPE_V8HI_V32HI_SI): Ditto.
1644 (V32HI_FTYPE_HI_V32HI_SI): Ditto.
1645 (V16HI_FTYPE_V8HI_V16HI_HI): Ditto.
1646 (V16HI_FTYPE_HI_V16HI_HI): Ditto.
1647 (V8HI_FTYPE_V8HI_V8HI_QI): Ditto.
1648 (V8HI_FTYPE_HI_V8HI_QI): Ditto.
1649 (V64QI_FTYPE_PCV64QI_V64QI_DI): Ditto.
1650 (V32HI_FTYPE_PCV32HI_V32HI_SI): Ditto.
1651 (V32QI_FTYPE_PCV32QI_V32QI_SI): Ditto.
1652 (V16SF_FTYPE_PCV16SF_V16SF_HI): Ditto.
1653 (V8DF_FTYPE_PCV8DF_V8DF_QI): Ditto.
1654 (V16SI_FTYPE_PCV16SI_V16SI_HI): Ditto.
1655 (V16HI_FTYPE_PCV16HI_V16HI_HI): Ditto.
1656 (V16QI_FTYPE_PCV16QI_V16QI_HI): Ditto.
1657 (V8SF_FTYPE_PCV8SF_V8SF_QI): Ditto.
1658 (V8DI_FTYPE_PCV8DI_V8DI_QI): Ditto.
1659 (V8SI_FTYPE_PCV8SI_V8SI_QI): Ditto.
1660 (V8HI_FTYPE_PCV8HI_V8HI_QI): Ditto.
1661 (V4DF_FTYPE_PCV4DF_V4DF_QI): Ditto.
1662 (V4SF_FTYPE_PCV4SF_V4SF_QI): Ditto.
1663 (V4DI_FTYPE_PCV4DI_V4DI_QI): Ditto.
1664 (V4SI_FTYPE_PCV4SI_V4SI_QI): Ditto.
1665 (V2DF_FTYPE_PCV2DF_V2DF_QI): Ditto.
1666 (V2DI_FTYPE_PCV2DI_V2DI_QI): Ditto.
1667 (V16HI_FTYPE_V16SI_V16HI_HI): Ditto.
1668 (V8SI_FTYPE_V8DI_V8SI_QI): Ditto.
1669 (V8HI_FTYPE_V8DI_V8HI_QI): Ditto.
1670 (V16QI_FTYPE_V8HI_V16QI_QI): Ditto.
1671 (V16QI_FTYPE_V16HI_V16QI_HI): Ditto.
1672 (V16QI_FTYPE_V4SI_V16QI_QI): Ditto.
1673 (V16QI_FTYPE_V8SI_V16QI_QI): Ditto.
1674 (V8HI_FTYPE_V4SI_V8HI_QI): Ditto.
1675 (V8HI_FTYPE_V8SI_V8HI_QI): Ditto.
1676 (V16QI_FTYPE_V2DI_V16QI_QI): Ditto.
1677 (V16QI_FTYPE_V4DI_V16QI_QI): Ditto.
1678 (V8HI_FTYPE_V2DI_V8HI_QI): Ditto.
1679 (V8HI_FTYPE_V4DI_V8HI_QI): Ditto.
1680 (V4SI_FTYPE_V2DI_V4SI_QI): Ditto.
1681 (V4SI_FTYPE_V4DI_V4SI_QI): Ditto.
1682 (V32QI_FTYPE_V32HI_V32QI_SI): Ditto.
1683 (V2DF_FTYPE_V2DF_INT_V2DF_QI): Ditto.
1684 (V4DF_FTYPE_V4DF_INT_V4DF_QI): Ditto.
1685 (V4SF_FTYPE_V4SF_INT_V4SF_QI): Ditto.
1686 (V8SF_FTYPE_V8SF_INT_V8SF_QI): Ditto.
1687 (V4DF_FTYPE_V4DF_V4DF_INT_V4DF_QI): Ditto.
1688 (V2DF_FTYPE_V2DF_V2DF_INT_V2DF_QI): Ditto.
1689 (V8SF_FTYPE_V8SF_V8SF_INT_V8SF_QI): Ditto.
1690 (V4SF_FTYPE_V4SF_V4SF_INT_V4SF_QI): Ditto.
1691 (VOID_FTYPE_PV8DF_V8DF_QI): Ditto.
1692 (VOID_FTYPE_PV8SI_V8DI_QI): Ditto.
1693 (VOID_FTYPE_PV8HI_V8DI_QI): Ditto.
1694 (VOID_FTYPE_PV8HI_V4DI_QI): Ditto.
1695 (VOID_FTYPE_PV8HI_V2DI_QI): Ditto.
1696 (VOID_FTYPE_PV4SI_V4DI_QI): Ditto.
1697 (VOID_FTYPE_PV4SI_V2DI_QI): Ditto.
1698 (VOID_FTYPE_PV8HI_V8SI_QI): Ditto.
1699 (VOID_FTYPE_PV8HI_V4SI_QI): Ditto.
1700 (VOID_FTYPE_PV4DF_V4DF_QI): Ditto.
1701 (VOID_FTYPE_PV2DF_V2DF_QI): Ditto.
1702 (VOID_FTYPE_PV16SF_V16SF_HI): Ditto.
1703 (VOID_FTYPE_PV8SF_V8SF_QI): Ditto.
1704 (VOID_FTYPE_PV4SF_V4SF_QI): Ditto.
1705 (VOID_FTYPE_PV8DI_V8DI_QI): Ditto.
1706 (VOID_FTYPE_PV4DI_V4DI_QI): Ditto.
1707 (VOID_FTYPE_PV2DI_V2DI_QI): Ditto.
1708 (VOID_FTYPE_PV16SI_V16SI_HI): Ditto.
1709 (VOID_FTYPE_PV16HI_V16SI_HI): Ditto.
1710 (VOID_FTYPE_PV16QI_V16SI_HI): Ditto.
1711 (VOID_FTYPE_PV16QI_V8SI_QI): Ditto.
1712 (VOID_FTYPE_PV16QI_V4SI_QI): Ditto.
1713 (VOID_FTYPE_PV16QI_V8DI_QI): Ditto.
1714 (VOID_FTYPE_PV16QI_V4DI_QI): Ditto.
1715 (VOID_FTYPE_PV16QI_V2DI_QI): Ditto.
1716 (VOID_FTYPE_PV8SI_V8SI_QI): Ditto.
1717 (VOID_FTYPE_PV4SI_V4SI_QI): Ditto.
1718 (VOID_FTYPE_PV32HI_V32HI_SI): Ditto.
1719 (VOID_FTYPE_PV16HI_V16HI_HI): Ditto.
1720 (VOID_FTYPE_PV8HI_V8HI_QI): Ditto.
1721 (VOID_FTYPE_PV64QI_V64QI_DI): Ditto.
1722 (VOID_FTYPE_PV32QI_V32QI_SI): Ditto.
1723 (VOID_FTYPE_PV16QI_V16QI_HI): Ditto.
1724 (V8DI_FTYPE_V8DI_V8DI_V8DI_INT_QI): Ditto.
1725 (V8SI_FTYPE_V8SF_V8SI_QI): Ditto.
1726 (V4SI_FTYPE_V4SF_V4SI_QI): Ditto.
1727 (V4DI_FTYPE_V4SF_V4DI_QI): Ditto.
1728 (V2DI_FTYPE_V4SF_V2DI_QI): Ditto.
1729 (V4SF_FTYPE_V4DI_V4SF_QI): Ditto.
1730 (V4SF_FTYPE_V2DI_V4SF_QI): Ditto.
1731 (V4DF_FTYPE_V4DI_V4DF_QI): Ditto.
1732 (V2DF_FTYPE_V2DI_V2DF_QI): Ditto.
1733 (V32HI_FTYPE_V32HI_INT_V32HI_SI): Ditto.
1734 (V32HI_FTYPE_V32HI_V8HI_V32HI_SI): Ditto.
1735 (V16HI_FTYPE_V16HI_INT_V16HI_HI): Ditto.
1736 (V16HI_FTYPE_V16HI_V8HI_V16HI_HI): Ditto.
1737 (V8HI_FTYPE_V8HI_INT_V8HI_QI): Ditto.
1738 (V32HI_FTYPE_V64QI_V64QI_INT_V32HI_SI): Ditto.
1739 (V16HI_FTYPE_V32QI_V32QI_INT_V16HI_HI): Ditto.
1740 (V8HI_FTYPE_V16QI_V16QI_INT_V8HI_QI): Ditto.
1741 (V64QI_FTYPE_V32HI_V32HI_V64QI_DI): Ditto.
1742 (V32QI_FTYPE_V16HI_V16HI_V32QI_SI): Ditto.
1743 (V16QI_FTYPE_V8HI_V8HI_V16QI_HI): Ditto.
1744 (V32HI_FTYPE_V16SI_V16SI_V32HI_SI): Ditto.
1745 (V16HI_FTYPE_V8SI_V8SI_V16HI_HI): Ditto.
1746 (V8HI_FTYPE_V4SI_V4SI_V8HI_QI): Ditto.
1747 (V8DI_FTYPE_V16SI_V16SI_V8DI_QI): Ditto.
1748 (V4DI_FTYPE_V8SI_V8SI_V4DI_QI): Ditto.
1749 (V2DI_FTYPE_V4SI_V4SI_V2DI_QI): Ditto.
1750 (V16SI_FTYPE_V16SI_V16SI_V16SI_INT_HI): Ditto.
1751 (V8SI_FTYPE_V8SI_V8SI_V8SI_INT_QI): Ditto.
1752 (V4DI_FTYPE_V4DI_V4DI_V4DI_INT_QI): Ditto.
1753 (V4SI_FTYPE_V4SI_V4SI_V4SI_INT_QI): Ditto.
1754 (V2DI_FTYPE_V2DI_V2DI_V2DI_INT_QI): Ditto.
1755 (V8SI_FTYPE_V8SI_V4SI_V8SI_QI): Ditto.
1756 (V4DI_FTYPE_V4DI_V2DI_V4DI_QI): Ditto.
1757 (QI_FTYPE_V4DF_V4DF_INT_QI): Ditto.
1758 (QI_FTYPE_V8SF_V8SF_INT_QI): Ditto.
1759 (QI_FTYPE_V8DF_INT_QI): Ditto.
1760 (QI_FTYPE_V4DF_INT_QI): Ditto.
1761 (QI_FTYPE_V2DF_INT_QI): Ditto.
1762 (HI_FTYPE_V16SF_INT_HI): Ditto.
1763 (QI_FTYPE_V8SF_INT_QI): Ditto.
1764 (QI_FTYPE_V4SF_INT_QI): Ditto.
1765 (V8DF_FTYPE_V8DF_V8DF_V8DF_QI_INT): Ditto.
1766
1767 2015-07-31 Richard Biener <rguenther@suse.de>
1768
1769 * gimple-fold.c (fold_gimple_assign): Remove folding of
1770 GIMPLE_BINARY_RHS.
1771
1772 2015-07-31 Tom de Vries <tom@codesourcery.com>
1773
1774 PR tree-optimization/66846
1775 * omp-low.c (expand_omp_taskreg) [ENABLE_CHECKING]: Call
1776 verify_loop_structure for child_cfun if !LOOPS_NEED_FIXUP.
1777 (expand_omp_target) [ENABLE_CHECKING]: Same.
1778 (execute_expand_omp) [ENABLE_CHECKING]: Call verify_loop_structure for
1779 cfun if !LOOPS_NEED_FIXUP.
1780 (expand_omp_for_static_nochunk): Handle simple latch bb. Handle case
1781 that omp_for already has its own loop struct.
1782 * tree-parloops.c (create_phi_for_local_result)
1783 (create_call_for_reduction): Handle simple latch bb.
1784 (create_parallel_loop): Add simple latch bb to preserve
1785 LOOPS_HAVE_SIMPLE_LATCHES. Record new exit. Handle simple latch bb.
1786 (gen_parallel_loop): Remove call to cancel_loop_tree.
1787 (parallelize_loops): Skip loops that are inner loops of parallelized
1788 loops.
1789 (pass_parallelize_loops::execute) [ENABLE_CHECKING]: Call
1790 verify_loop_structure.
1791
1792 2015-07-30 Anatoly Sokolov <aesok@post.ru>
1793
1794 * config/v850/v850.h (LIBCALL_VALUE): Remove macros.
1795 * config/v850/v850.md (RV_REGNUM): New constants.
1796 * config/v850/v850.c (v850_libcall_value): New functions.
1797 (v850_function_value_regno_p, v850_function_value): Use RV_REGNUM.
1798 (TARGET_LIBCALL_VALUE): Define.
1799
1800 2015-07-30 Anatoly Sokolov <aesok@post.ru>
1801
1802 * rtl.h (lowpart_subreg): Move in file.
1803 * loop-iv.c (lowpart_subreg): Move to...
1804 * simplify-rtx.c (lowpart_subreg): ...here.
1805 (simplify_binary_operation_1): Use lowpart_subreg instead of
1806 simplify_gen_subreg.
1807 * expr.c (expand_expr_real_2): Ditto.
1808 * emit-rtl.c (gen_lowpart_common): Ditto.
1809 * combine.c (gen_lowpart_for_combine): Ditto.
1810 * cfgexpand.c (convert_debug_memory_address, expand_debug_expr,
1811 expand_debug_source_expr): Ditto.
1812
1813 2015-07-30 Richard Sandiford <richard.sandiford@arm.com>
1814
1815 * builtins.c (HAVE_atomic_clear, gen_atomic_clear): Delete.
1816 (expand_builtin_atomic_clear): Remove support for atomic_clear
1817 pattern.
1818
1819 2015-07-30 Richard Biener <rguenther@suse.de>
1820
1821 * gimple-fold.c (fold_gimple_assign): Only fold !tcc_comparison
1822 binaries. Move X == 0, X == 1, X != 0, and X != 1 canonicalization ...
1823 (fold_stmt_1): ... here and work on GIMPLE directly. Remove
1824 redundant operand canonicalization.
1825
1826 2015-07-30 David Sherwood <david.sherwood@arm.com>
1827
1828 * config/aarch64/aarch64-simd.md (aarch64_ext<mode>): Replace call to
1829 GET_MODE_SIZE (GET_MODE_INNER (m)) with GET_MODE_UNIT_SIZE (m).
1830 * config/aarch64/aarch64.c (aarch64_simd_valid_immediate): Likewise.
1831 * config/arm/arm.c (neon_valid_immediate): Likewise.
1832 * config/i386/i386.c (classify_argument, ix86_expand_int_vcond)
1833 (expand_vec_perm_blend, expand_vec_perm_pshufb): Likewise.
1834 (expand_vec_perm_pshufb2, expand_vec_perm_vpshufb2_vpermq): Likewise.
1835 (expand_vec_perm_vpshufb2_vpermq): Likewise.
1836 (expand_vec_perm_vpshufb2_vpermq_even_odd): Likewise.
1837 (expand_vec_perm_vpshufb4_vpermq2): Likewise.
1838 * config/i386/sse.md
1839 (<extract_type>_vinsert<shuffletype><extract_suf>_mask): Likewise.
1840 (*ssse3_palignr<mode>_perm): Likewise.
1841 * config/rs6000/rs6000.c (rs6000_complex_function_value): Likewise.
1842 * config/spu/spu.c (arith_immediate_p): Likewise.
1843 * simplify-rtx.c (simplify_const_unary_operation): Likewise.
1844 (simplify_binary_operation_1, simplify_ternary_operation): Likewise.
1845
1846 2015-07-30 Richard Biener <rguenther@suse.de>
1847
1848 * genmatch.c (decision_tree::gen_gimple): Merge with ...
1849 (decision_tree::gen_generic): ... this into ...
1850 (decision_tree::gen): ... this.
1851 (main): Adjust callers.
1852
1853 2015-07-30 Richard Biener <rguenther@suse.de>
1854
1855 * genmatch.c (verbose): New global.
1856 (warning_at): Add overload with source_location.
1857 (capture_info::capture_info): Add bool whether generating gimple
1858 or generic. Add gimple member.
1859 (capture_info::cinfo): Add capture member.
1860 (capture_info::walk_match): Record capture. Warn on
1861 non-captured leafs.
1862 (capture_info::walk_c_expr): Add more fragments captures cannot
1863 escape through. Warn on escaped captures.
1864 (dt_simplify::gen_1): Warn on operands we force to have no
1865 side-effects.
1866 (main): Initialize verbose.
1867 * match.pd: Add integer_nonzerop and HONOR_NANS predicates.
1868
1869 2015-07-30 Richard Biener <rguenther@suse.de>
1870
1871 PR middle-end/67053
1872 * match.pd: Allow both operands to independently have conversion
1873 when simplifying compares of addresses.
1874
1875 2015-07-29 Segher Boessenkool <segher@kernel.crashing.org>
1876
1877 PR target/66217
1878 PR target/67045
1879 * config/rs6000/rs6000.md (and<mode>3): Put a CONST_INT_P check
1880 around those cases that need one.
1881
1882 2015-07-29 Aditya Kumar <hiraditya@msn.com>
1883
1884 * params.def (PARAM_GRAPHITE_MAX_NB_SCOP_PARAMS): Default to 3.
1885
1886 2015-07-29 H.J. Lu <hongjiu.lu@intel.com>
1887
1888 * config/i386/iamcu.h (TARGET_ASM_FILE_START_FILE_DIRECTIVE):
1889 New. Copied from config/i386/gnu-user.h.
1890 (ASM_COMMENT_START): Likewise.
1891 (DBX_REGISTER_NUMBER): Likewise.
1892
1893 2015-07-29 Richard Biener <rguenther@suse.de>
1894
1895 * gimple-fold.c (fold_gimple_cond): Remove.
1896 (fold_stmt_1): Do not call it.
1897
1898 2015-07-29 Alan Lawrence <alan.lawrence@arm.com>
1899
1900 * config/aarch64/aarch64-builtins.c (aarch64_fp16_type_node): New.
1901 (aarch64_init_builtins): Make aarch64_fp16_type_node, use for __fp16.
1902
1903 * config/aarch64/aarch64-modes.def: Add HFmode.
1904
1905 * config/aarch64/aarch64.h (TARGET_CPU_CPP_BUILTINS): Define
1906 __ARM_FP16_FORMAT_IEEE and __ARM_FP16_ARGS. Set bit 1 of __ARM_FP.
1907
1908 * config/aarch64/aarch64.c (aarch64_init_libfuncs,
1909 aarch64_promoted_type): New.
1910
1911 (aarch64_float_const_representable_p): Disable HFmode.
1912 (aarch64_mangle_type): Mangle half-precision floats to "Dh".
1913 (TARGET_PROMOTED_TYPE): Define to aarch64_promoted_type.
1914 (TARGET_INIT_LIBFUNCS): Define to aarch64_init_libfuncs.
1915
1916 * config/aarch64/aarch64.md (mov<mode>): Include HFmode using GPF_F16.
1917 (movhf_aarch64, extendhfsf2, extendhfdf2, truncsfhf2, truncdfhf2): New.
1918
1919 * config/aarch64/iterators.md (GPF_F16): New.
1920
1921 2015-07-29 Richard Biener <rguenther@suse.de>
1922
1923 * match.pd: Merge address comparison patterns and make them
1924 handle some more cases.
1925
1926 2015-07-29 Richard Biener <rguenther@suse.de>
1927
1928 * genmatch.c (c_expr::gen_transform): Error on unknown captures.
1929 (parser::parse_capture): Add bool argument on whether to reject
1930 unknown captures.
1931 (parser::parse_expr): Adjust.
1932 (parser::parse_op): Likewise.
1933 (parser::parse_pattern): Likewise.
1934
1935 2015-07-29 Richard Biener <rguenther@suse.de>
1936
1937 * gimple-fold.c (has_use_on_stmt): New function.
1938 (replace_stmt_with_simplification): Use it to allow
1939 abnormals originally referenced in the stmt.
1940 (fold_stmt_1): Canonicalize operand order.
1941
1942 2015-07-28 David Sherwood <david.sherwood@arm.com>
1943
1944 * config/arm/arm.c (neon_element_bits, neon_valid_immediate): Call
1945 GET_MODE_INNER unconditionally.
1946 * config/spu/spu.c (arith_immediate_p): Likewise.
1947 * config/i386/i386.c (ix86_build_signbit_mask): Likewise.
1948 * expmed.c (synth_mult): Remove check for VOIDmode result from
1949 GET_MODE_INNER.
1950 (expand_mult_const): Likewise.
1951 * fold-const.c (fold_binary_loc): Replace call to element_precision
1952 with call to GET_MODE_PRECISION.
1953 * genmodes.c (emit_mode_inner_inline): Replace void_mode->name with
1954 m->name.
1955 (emit_mode_inner): Likewise.
1956 * lto-streamer-out.c (lto_write_mode_table): Update GET_MODE_INNER
1957 result check.
1958 * machmode.h (GET_MODE_UNIT_SIZE): Simplify.
1959 (GET_MODE_UNIT_PRECISION): Likewise.
1960 * rtlanal.c (subreg_get_info): Call GET_MODE_INNER unconditionally.
1961 * simplify-rtx.c (simplify_immed_subreg): Likewise.
1962 * stor-layout.c (bitwise_type_for_mode): Update assert.
1963 (element_precision): Remove.
1964
1965 2015-07-28 Richard Sandiford <richard.sandiford@arm.com>
1966
1967 * target-insns.def (reload_load_address): New targetm instruction
1968 pattern.
1969 * reload1.c (gen_reload): Use it instead of HAVE_*/gen_* interface.
1970
1971 2015-07-28 Richard Sandiford <richard.sandiford@arm.com>
1972
1973 * target-insns.def (atomic_test_and_set): New targetm instruction
1974 pattern.
1975 * optabs.c (maybe_emit_atomic_test_and_set): Use it instead of
1976 HAVE_*/gen_* interface.
1977
1978 2015-07-28 Richard Sandiford <richard.sandiford@arm.com>
1979
1980 * target-insns.def (can_extend, ptr_extend): New targetm instruction
1981 patterns.
1982 * optabs.c (can_extend_p): Use them instead of HAVE_*/gen_* interface.
1983 * simplify-rtx.c (simplify_unary_operation_1): Likewise.
1984 * emit-rtl.c (set_reg_attrs_from_value): Likewise.
1985 * rtlanal.c (nonzero_bits1): Likewise.
1986 (num_sign_bit_copies1): Likewise.
1987
1988 2015-07-28 Richard Sandiford <richard.sandiford@arm.com>
1989
1990 * target-insns.def (eh_return): New targetm instruction pattern.
1991 * except.c (expand_eh_return): Use it instead of HAVE_*/gen_*
1992 interface.
1993 * function.c (thread_prologue_and_epilogue_insns): Remove
1994 preprocessor condition.
1995
1996 2015-07-28 Richard Sandiford <richard.sandiford@arm.com>
1997
1998 * target-insns.def (indirect_jump): New targetm instruction pattern.
1999 * optabs.c (emit_indirect_jump): Use it instead of HAVE_*/gen_*
2000 interface.
2001
2002 2015-07-28 Richard Sandiford <richard.sandiford@arm.com>
2003
2004 * config/fr30/fr30.md (indirect_jump): Use pmode_register_operand
2005 instead of nonimmediate_operand. Remove C condiition.
2006
2007 2015-07-28 Richard Biener <rguenther@suse.de>
2008
2009 * match.pd: Add more simplification of address comparisons.
2010
2011 2015-07-28 Richard Biener <rguenther@suse.de>
2012
2013 * match.pd: Re-order two cases in comparison with max/min
2014 value simplification to make it apply for bools.
2015
2016 2015-07-28 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2017
2018 * config/aarch64/aarch64.c (aarch64_rtx_arith_op_extract_p):
2019 Handle simple SIGN_EXTEND or ZERO_EXTEND.
2020 (aarch64_rtx_costs): Properly strip extend or extract before
2021 passing down to rtx costs again.
2022
2023 2015-07-28 Nick Clifton <nickc@redhat.com>
2024
2025 * config/rl78/rl78.c (rl78_addsi3_internal): New function.
2026 Optimizes the case where -mes0 is active and a constant symbolic
2027 address is used.
2028 * config/rl78/rl78-protos.h: Prototype the new function.
2029 * config/rl78/rl78.md (addsi3_internal_real): Call new function.
2030
2031 2015-07-28 Tom de Vries <tom@codesourcery.com>
2032
2033 * tree-parloops.c (reduc_stmt_res): New function.
2034 (initialize_reductions, add_field_for_reduction)
2035 (create_phi_for_local_result, create_loads_for_reductions)
2036 (create_stores_for_reduction, build_new_reduction): Handle case that
2037 reduc_stmt is a phi.
2038 (gather_scalar_reductions): Allow double_reduc reductions.
2039
2040 2015-07-28 Richard Biener <rguenther@suse.de>
2041
2042 * fold-const.c (fold_comparison): Remove equality folding
2043 of decl addresses ...
2044 * match.pd: ... here and merge with existing pattern.
2045
2046 2015-07-28 Thomas Preud'homme <thomas.preudhomme@arm.com>
2047
2048 PR tree-optimization/66828
2049 * tree-ssa-math-opts.c (perform_symbolic_merge): Change type of inc
2050 from int64_t to uint64_t.
2051
2052 2015-07-28 Dominik Vogt <vogt@linux.vnet.ibm.com>
2053
2054 * opts-common.c (read_cmdline_option): List DriverOnly enum values
2055 as valid only in the error message of the driver, not in the
2056 messages of the language compilers.
2057
2058 2015-07-27 Tom de Vries <tom@codesourcery.com>
2059
2060 * tree-parloops.c (gather_scalar_reductions): Simplify function
2061 structure.
2062
2063 2015-07-27 Marek Polacek <polacek@redhat.com>
2064
2065 * ipa-devirt.c (types_same_for_odr): Fix typo.
2066
2067 2015-07-27 Jason Merrill <jason@redhat.com>
2068
2069 PR debug/66468
2070 * dwarf2out.c (gen_inlined_subroutine_die): Check
2071 cgraph_function_possibly_inlined_p.
2072
2073 2015-07-27 Wilco Dijkstra <wdijkstr@arm.com>
2074
2075 * gcc/config/aarch64/aarch64.md (aarch64_lshr_sisd_or_int_<mode>3):
2076 Place integer variant first.
2077 (aarch64_ashr_sisd_or_int_<mode>3): Likewise.
2078
2079 2015-07-27 Alan Lawrence <alan.lawrence@arm.com>
2080
2081 PR/63870
2082 * config/arm/arm-builtins.c (enum arm_builtins):
2083 Add ARM_BUILTIN_NEON_BASE and ARM_BUILTIN_NEON_LANE_CHECK.
2084 (ARM_BUILTIN_NEON_BASE): Rename macro to....
2085 (ARM_BUILTIN_NEON_PATTERN_START): ...this.
2086 (arm_init_neon_builtins): Register __builtin_arm_lane_check.
2087 (arm_expand_neon_builtin): Handle ARM_BUILTIN_NEON_LANE_CHECK.
2088
2089 2015-07-27 Alan Lawrence <alan.lawrence@arm.com>
2090
2091 PR/63870
2092 * config/arm/arm-builtins.c (enum arm_type_qualifiers):
2093 Add qualifier_lane_index.
2094 (arm_binop_imm_qualifiers, BINOP_IMM_QUALIFIERS): New.
2095 (arm_getlane_qualifiers): Use qualifier_lane_index.
2096 (arm_lanemac_qualifiers): Rename to...
2097 (arm_mac_n_qualifiers): ...this.
2098 (LANEMAC_QUALIFIERS): Rename to...
2099 (MAC_N_QUALIFIERS): ...this.
2100 (arm_mac_lane_qualifiers, MAC_LANE_QUALIFIERS): New.
2101 (arm_setlane_qualifiers): Use qualifier_lane_index.
2102 (arm_ternop_imm_qualifiers, TERNOP_IMM_QUALIFIERS): New.
2103 (enum builtin_arg): Add NEON_ARG_LANE_INDEX.
2104 (arm_expand_neon_args): Handle NEON_ARG_LANE_INDEX.
2105 (arm_expand_neon_builtin): Handle qualifier_lane_index.
2106
2107 * config/arm/arm-protos.h (neon_lane_bounds): Add const_tree parameter.
2108 * config/arm/arm.c (bounds_check): Likewise, improve error message.
2109 (neon_lane_bounds, neon_const_bounds): Add arguments to bounds_check.
2110 * config/arm/arm_neon_builtins.def (vshrs_n, vshru_n, vrshrs_n,
2111 vrshru_n, vshrn_n, vrshrn_n, vqshrns_n, vqshrnu_n, vqrshrns_n,
2112 vqrshrnu_n, vqshrun_n, vqrshrun_n, vshl_n, vqshl_s_n, vqshl_u_n,
2113 vqshlu_n, vshlls_n, vshllu_n): Change qualifiers to BINOP_IMM.
2114 (vsras_n, vsrau_n, vrsras_n, vrsrau_n, vsri_n, vsli_n): Change
2115 qualifiers to TERNOP_IMM.
2116 (vdup_lane): Change qualifiers to GETLANE.
2117 (vmla_lane, vmlals_lane, vmlalu_lane, vqdmlal_lane, vmls_lane,
2118 vmlsls_lane, vmlslu_lane, vqdmlsl_lane): Change qualifiers to MAC_LANE.
2119 (vmla_n, vmlals_n, vmlalu_n, vqdmlal_n, vmls_n, vmlsls_n, vmlslu_n,
2120 vqdmlsl_n): Change qualifiers to MAC_N.
2121
2122 * config/arm/neon.md (neon_vget_lane<mode>, neon_vget_laneu<mode>,
2123 neon_vget_lanedi, neon_vget_lanev2di, neon_vset_lane<mode>,
2124 neon_vset_lanedi, neon_vdup_lane<mode>, neon_vdup_lanedi,
2125 neon_vdup_lanev2di, neon_vmul_lane<mode>, neon_vmul_lane<mode>,
2126 neon_vmull<sup>_lane<mode>, neon_vqdmull_lane<mode>,
2127 neon_vq<r>dmulh_lane<mode>, neon_vq<r>dmulh_lane<mode>,
2128 neon_vmla_lane<mode>, neon_vmla_lane<mode>, neon_vmlal<sup>_lane<mode>,
2129 neon_vqdmlal_lane<mode>, neon_vmls_lane<mode>, neon_vmls_lane<mode>,
2130 neon_vmlsl<sup>_lane<mode>, neon_vqdmlsl_lane<mode>):
2131 Remove call to neon_lane_bounds.
2132
2133 2015-07-27 Wilco Dijkstra <wdijkstr@arm.com>
2134
2135 * config/aarch64/aarch64.md (aarch64_ashl_sisd_or_int_<mode>3):
2136 Place integer variant first.
2137
2138 2015-07-27 Matthew Wahab <matthew.wahab@arm.com>
2139
2140 * config/arm/arm-arches.def: Add "armv6kz". Replace 6ZK with 6KZ
2141 and FL_FOR_ARCH6ZK with FL_FOR_ARCH6KZ.
2142 * config/arm/arm-c.c (arm_cpu_builtins): Emit "__ARM_ARCH_6ZK__"
2143 for armv6kz targets.
2144 * config/arm/arm-cores.def: Replace 6ZK with 6KZ.
2145 * config/arm/arm-protos.h (FL_ARCH6KZ): New.
2146 (FL_FOR_ARCH6ZK): Remove.
2147 (FL_FOR_ARCH6KZ): New.
2148 (arm_arch6zk): New declaration.
2149 * config/arm/arm-tables.opt: Regenerate.
2150 * config/arm/arm.c (arm_arch6kz): New.
2151 (arm_option_override): Set arm_arch6kz.
2152 * config/arm/arm.h (BASE_ARCH_6ZK): Rename to BASE_ARCH_6KZ.
2153 * config/arm/driver-arm.c: Add comment to "armv6zk" entry.
2154 * doc/invoke.texi: Replace "armv6zk" with "armv6kz".
2155
2156 2015-07-27 Marek Polacek <polacek@redhat.com>
2157
2158 PR c++/66555
2159 PR c/54979
2160 * doc/invoke.texi: Document -Wtautological-compare.
2161
2162 2015-07-27 Richard Biener <rguenther@suse.de>
2163
2164 * genmatch.c (decision_tree::gen_gimple): Split out large
2165 subtrees into separate functions.
2166 (decision_tree::gen_generic): Likewise.
2167
2168 2015-07-26 Uros Bizjak <ubizjak@gmail.com>
2169
2170 * config/alpha/alpha.c: Use SUBREG_P predicate.
2171 * config/alpha/predicates.md: Ditto.
2172
2173 2015-07-25 Dominik Vogt <vogt@linux.vnet.ibm.com>
2174
2175 * config.host (s390*-*-*): Include driver-native.c only when
2176 building with s390* as host *and* target.
2177
2178 2015-07-25 Oleg Endo <olegendo@gcc.gnu.org>
2179
2180 PR target/66930
2181 * config/sh/sh.c (sh_split_movrt_negc_to_movt_xor): Add missing
2182 T bit register modified_between_p check.
2183
2184 2015-07-25 Uros Bizjak <ubizjak@gmail.com>
2185
2186 * config/i386/i386.c: Use SUBREG_P predicate.
2187 * config/i386/i386.md: Ditto.
2188 * config/i386/sse.md: Ditto.
2189 * config/i386/predicates.md: Ditto.
2190
2191 2015-07-25 Uros Bizjak <ubizjak@gmail.com>
2192
2193 PR target/67004
2194 * config/i386/i386.h (ADJUST_INSN_LENGTH): Use NONDEBUG_INSN_P (INSN)
2195 predicate and INSN_CODE (INSN) >= 0 to check for valid instruction.
2196
2197 2015-07-25 Sebastian Pop <s.pop@samsung.com>
2198
2199 * Makefile.in: Remove use of TREEBROWSER.
2200 * config.in: Regenerated.
2201 * configure: Regenerated.
2202 * configure.ac: Remove definition of TREEBROWSER.
2203 * tree-browser.c: Removed.
2204 * tree-browser.def: Removed.
2205
2206 2015-07-25 Sebastian Pop <s.pop@samsung.com>
2207
2208 * graphite-scop-detection.c: Include gimple-pretty-print.h.
2209 (stmt_simple_for_scop_p): Print when a stmt is not handled in
2210 Graphite.
2211 (scopdet_basic_block_info): Print when a loop or bb cannot be
2212 represented in Graphite.
2213
2214 2015-07-25 Uros Bizjak <ubizjak@gmail.com>
2215
2216 PR target/66648
2217 * config/i386/i386.c (ix86_expand_set_or_movmem): Emit main loop
2218 execution guard when min_size is less than size_needed.
2219
2220 2015-07-25 Sebastian Pop <s.pop@samsung.com>
2221
2222 * doc/install.texi: Document supported versions of ISL.
2223
2224 2015-07-25 Jeff Law <law@redhat.com>
2225
2226 Revert:
2227 PR lto/66752
2228 * tree-ssa-threadedge.c (simplify_conrol_stmt_condition): If we are
2229 unable to find X NE 0 in the tables, return X as the simplified
2230 condition.
2231 (fsm_find_control_statement_thread_paths): If nodes in NEXT_PATH are
2232 in VISISTED_BBS, then return failure. Else add nodes from NEXT_PATH
2233 to VISISTED_BBS. */
2234 * tree-ssa-threadupdate.c (duplicate_thread_path): Fix up edge flags
2235 after removing the control flow statement and unnecessary edges.
2236
2237 2015-07-25 David Edelsohn <dje.gcc@gmail.com>
2238
2239 Revert:
2240 2015-07-23 Alexandre Oliva <aoliva@redhat.com>
2241
2242 PR rtl-optimization/64164
2243 * Makefile.in (OBJS): Drop tree-ssa-copyrename.o.
2244 * tree-ssa-copyrename.c: Removed.
2245 * opts.c (default_options_table): Drop -ftree-copyrename. Add
2246 -ftree-coalesce-vars.
2247 * passes.def: Drop all occurrences of pass_rename_ssa_copies.
2248 * common.opt (ftree-copyrename): Ignore.
2249 (ftree-coalesce-inlined-vars): Likewise.
2250 * doc/invoke.texi: Remove the ignored options above.
2251 * gimple-expr.h (gimple_can_coalesce_p): Move declaration
2252 * tree-ssa-coalesce.h: ... here.
2253 * tree-ssa-uncprop.c: Include tree-ssa-coalesce.h and other
2254 headers required by it.
2255 * gimple-expr.c (gimple_can_coalesce_p): Allow coalescing
2256 across variables when flag_tree_coalesce_vars. Check register
2257 use and promoted modes to allow coalescing. Moved to
2258 tree-ssa-coalesce.c.
2259 * tree-ssa-live.c (struct tree_int_map_hasher): Move along
2260 with its member functions to tree-ssa-coalesce.c.
2261 (var_map_base_init): Likewise. Renamed to
2262 compute_samebase_partition_bases.
2263 (partition_view_normal): Drop want_bases parameter.
2264 (partition_view_bitmap): Likewise.
2265 * tree-ssa-live.h: Adjust declarations.
2266 * tree-ssa-coalesce.c: Include explow.h.
2267 (build_ssa_conflict_graph): Process PARM_ and RESULT_DECLs's
2268 default defs at the entry point.
2269 (dump_part_var_map): New.
2270 (compute_optimized_partition_bases): New, called by...
2271 (coalesce_ssa_name): ... when flag_tree_coalesce_vars, instead
2272 of compute_samebase_partition_bases. Adjust.
2273 * alias.c (nonoverlapping_memrefs_p): Disregard gimple-regs.
2274 * cfgexpand.c (leader_merge): New.
2275 (get_rtl_for_parm_ssa_default_def): New.
2276 (set_rtl): Merge exprs and attrs, even for MEMs and non-SSA
2277 vars. Update DECL_RTL for PARM_DECLs and RESULT_DECLs too.
2278 (expand_one_stack_var_at): Handle anonymous SSA_NAMEs. Drop
2279 redundant MEM attr setting.
2280 (expand_one_stack_var_1): Handle anonymous SSA_NAMEs. Renamed
2281 from...
2282 (expand_one_stack_var): ... this. New wrapper to check and
2283 skip already expanded SSA partitions.
2284 (record_alignment_for_reg_var): New, factored out of...
2285 (expand_one_var): ... this.
2286 (expand_one_ssa_partition): New.
2287 (adjust_one_expanded_partition_var): New.
2288 (expand_one_register_var): Check and skip already expanded SSA
2289 partitions.
2290 (expand_used_vars): Don't create DECLs for anonymous SSA
2291 names. Expand all SSA partitions, then adjust all SSA names.
2292 (pass::execute): Replace the loops that set
2293 SA.partition_to_pseudo from partition leaders and cleared
2294 DECL_RTL for multi-location variables, and that which used to
2295 rename vars and set attrs, with one that clears DECL_RTL and
2296 checks that PARMs and RESULTs default_defs match DECL_RTL.
2297 * cfgexpand.h (get_rtl_for_parm_ssa_default_def): Declare.
2298 * emit-rtl.c (set_reg_attrs_for_parm): Handle NULL decl.
2299 * explow.c (promote_ssa_mode): New.
2300 * explow.h (promote_ssa_mode): Declare.
2301 * expr.c (expand_expr_real_1): Handle anonymous SSA_NAMEs.
2302 * function.c: Include cfgexpand.h.
2303 (use_register_for_decl): Handle SSA_NAMEs, anonymous or not.
2304 (use_register_for_parm_decl): Wrapper for the above to
2305 special-case the result_ptr.
2306 (rtl_for_parm): Ditto for get_rtl_for_parm_ssa_default_def.
2307 (split_complex_args): Take assign_parm_data_all argument.
2308 Pass it to rtl_for_parm. Set up rtl and context for split
2309 args.
2310 (assign_parms_augmented_arg_list): Adjust.
2311 (maybe_reset_rtl_for_parm): Reset DECL_RTL of parms with
2312 multiple locations. Recognize split complex args.
2313 (assign_parm_adjust_stack_rtl): Add all and parm arguments,
2314 for rtl_for_parm. For SSA-assigned parms, zero stack_parm.
2315 (assign_parm_setup_block): Prefer SSA-assigned location.
2316 (assign_parm_setup_reg): Likewise. Use entry_parm for equiv
2317 if stack_parm is NULL.
2318 (assign_parm_setup_stack): Prefer SSA-assigned location.
2319 (assign_parms): Maybe reset DECL_RTL of params. Adjust stack
2320 rtl before testing for pointer bounds. Special-case result_ptr.
2321 (expand_function_start): Maybe reset DECL_RTL of result.
2322 Prefer SSA-assigned location for result and static chain.
2323 Factor out DECL_RESULT and SET_DECL_RTL.
2324 * tree-outof-ssa.c (insert_value_copy_on_edge): Handle
2325 anonymous SSA names. Use promote_ssa_mode.
2326 (get_temp_reg): Likewise.
2327 (remove_ssa_form): Adjust.
2328 * stor-layout.c (layout_decl): Don't set mem attributes of
2329 non-MEMs.
2330 * var-tracking.c (dataflow_set_clear_at_call): Take call_insn
2331 and get its reg_usage for reg invalidation.
2332 (compute_bb_dataflow): Pass it insn.
2333 (emit_notes_in_bb): Likewise.
2334
2335 2015-07-25 Uros Bizjak <ubizjak@gmail.com>
2336
2337 * config/i386/i386.c (ix86_va_start): Remove
2338 unneeded !TARGET_64BIT check.
2339 (ix86_gimplify_va_arg): Ditto.
2340
2341 2015-07-24 Tom de Vries <tom@codesourcery.com>
2342
2343 * graphite-sese-to-poly.c (build_poly_scop): Always call
2344 rewrite_commutative_reductions_out_of_ssa.
2345
2346 2015-07-24 Tom de Vries <tom@codesourcery.com>
2347
2348 * graphite-sese-to-poly.c (is_reduction_operation_p): Limit
2349 flag_associative_math to FLOAT_TYPE_P. Honour
2350 TYPE_OVERFLOW_WRAPS for INTEGRAL_TYPE_P. Don't allow any other types.
2351
2352 2015-07-24 Manuel López-Ibáñez <manu@gcc.gnu.org>
2353
2354 PR c++/64079
2355 * toplev.c (check_global_declaration): Use DECL_SOURCE_LOCATION
2356 and "%qD" in warning_at instead of "%q+D" in warning.
2357
2358 2015-07-24 Uros Bizjak <ubizjak@gmail.com>
2359
2360 * config/i386/i386.c (ix86_call_abi_override): Call ix86_function_abi.
2361 (ix86_function_abi): Cleanup.
2362
2363 2015-07-24 Michael Darling <darlingm@gmail.com>
2364
2365 PR other/66259
2366 * acinclude.m4: Reflects renaming of configure.in to configure.ac
2367 * configure: Likewise
2368 * configure.ac: Likewise
2369 * doc/install.texi: Likewise
2370 * doc/tm.texi: Likewise
2371 * doc/tm.texi.in: Likewise
2372
2373 2015-07-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2374
2375 * alias.c (nonoverlapping_memrefs_p): Use std::swap instead of
2376 manually swapping values.
2377 * cse.c (fold_rtx): Likewise.
2378 * lra-eliminations.c (form_sum): Likewise.
2379
2380 2015-07-24 Uros Bizjak <ubizjak@gmail.com>
2381
2382 PR target/64003
2383 * config/i386/i386.h (ADJUST_INSN_LENGTH): New define.
2384 * config/i386/i386.md (maybe_prefix_bnd): New attribute.
2385 (*jcc_1, *jcc_2, jump, simple_return_internal)
2386 (simple_return_pop_internal): Set attribute maybe_prefix_bnd.
2387 Set length_nobnd attribute instead of length attribute.
2388 (indirect_jump, *tablejump_1): Set attribute maybe_prefix_bnd.
2389 (length_nobnd): Remove attribute.
2390 (length): Remove length_nobnd processing.
2391
2392 2015-07-24 Nathan Sidwell <nathan@codesourcery.com>
2393
2394 * gimplify.c (omp_default_clause): New function. Reorganize flow
2395 for clarity. Broken out of ...
2396 (omp_notice_variable): ... here.
2397
2398 2015-07-24 Gary Funck <gary@intrepid.com>
2399
2400 PR middle-end/66984
2401 * fold-const.c (fold_binary_loc): Call fold_convert on arguments to
2402 fold_build2 for CEIL_DIV_EXPR and FLOOR_DIV_EXPR optimization.
2403
2404 2015-07-24 Tom de Vries <tom@codesourcery.com>
2405
2406 * tree-parloops.c (gen_parallel_loop): Add debug print for alternative
2407 exit-first loop transform.
2408
2409 2015-07-24 Cesar Philippidis <cesar@codesourcery.com>
2410
2411 PR 66714
2412 * tree-cfg.c (struct replace_decls_d): New struct.
2413 (replace_block_vars_by_duplicates_1): New function.
2414 (replace_block_vars_by_duplicates): Use it to replace the decls
2415 in the value exprs by duplicates.
2416
2417 2015-07-24 Szabolcs Nagy <szabolcs.nagy@arm.com>
2418
2419 * config/aarch64/aarch64-elf-raw.h (LINK_SPEC): Handle -h, -static,
2420 -shared, -symbolic, -rdynamic.
2421
2422 2015-07-24 Szabolcs Nagy <szabolcs.nagy@arm.com>
2423
2424 PR target/65711
2425 * config/aarch64/aarch64-linux.h (LINUX_TARGET_LINK_SPEC): Move
2426 -dynamic-linker within %{!static %{!shared, and -rdynamic within
2427 %{!static.
2428
2429 2015-07-24 Ilya Enkovich <enkovich.gnu@gmail.com>
2430
2431 PR ipa/66566
2432 * ipa-inline-analysis.c (estimate_calls_size_and_time): Check
2433 edge summary is available.
2434
2435 2015-07-24 Richard Biener <rguenther@suse.de>
2436
2437 * genmatch.c (struct dt_node): Add statistic fields.
2438 (dt_node::analyze): New method.
2439 (decision_tree::gen_gimple): Call analyze on the root node
2440 and print statistics to stderr.
2441 (decision_tree::gen_generic): Likewise.
2442
2443 2015-07-24 Richard Biener <rguenther@suse.de>
2444
2445 * fold-const.c (fold_binary_loc): Move simplifying of comparisons
2446 against the highest or lowest possible integer ...
2447 * match.pd: ... as patterns here.
2448
2449 2015-07-24 Richard Biener <rguenther@suse.de>
2450
2451 * genmatch.c (struct capture_info): Add same_as field.
2452 (capture_info::capture_info): Initialize same_as.
2453 (capture_info::walk_match): Compute same_as.
2454 (capture_info::walk_result): Compute stuff for the leader.
2455 (capture_info::walk_c_expr): Likewise.
2456 (dt_simplify::gen_1): Only look at leaders when deciding
2457 to force no side-effects or emit side-effects of omitted operands.
2458
2459 2015-07-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
2460
2461 * config/s390/s390.c (s390_save_gprs_to_fprs): Add CFA_REGISTER
2462 reg note to the GPR -> FPR save instructions.
2463
2464 2015-07-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
2465
2466 * config/s390/s390.c (s390_rtx_costs): Make risbg patterns
2467 cheaper.
2468 (s390_expand_insv): Don't generate risbg pattern for constant zero
2469 sources.
2470 * config/s390/s390.md ("*insv<mode>_zEC12_appendbitsleft")
2471 ("*insv<mode>_z10_appendbitsleft"): New pattern definitions. New
2472 splitters.
2473
2474 2015-07-24 Dominik Vogt <vogt@linux.vnet.ibm.com>
2475
2476 * config/s390/s390.c (s390_reorg): Clean up handling of processors
2477 with
2478 -mtune=
2479 (s390_issue_rate): Likewise.
2480 (s390_sched_reorder): Likewise.
2481 (s390_sched_variable_issue): Likewise.
2482 (s390_loop_unroll_adjust): Likewise.
2483 (s390_option_override): Likewise.
2484
2485 2015-07-24 Dominik Vogt <vogt@linux.vnet.ibm.com>
2486
2487 * config/s390/driver-native.c (s390_host_detect_local_cpu): Handle
2488 processor capabilities with -march=native.
2489 * config/s390/s390.h (MARCH_MTUNE_NATIVE_SPECS): Likewise.
2490 (DRIVER_SELF_SPECS): Likewise. Join specs for 31 and 64 bit.
2491 (S390_TARGET_BITS_STRING): Macro to simplify specs.
2492
2493 2015-07-24 Dominik Vogt <vogt@linux.vnet.ibm.com>
2494
2495 * config/s390/s390.c (s390_issue_rate): Handle
2496 PROCESSOR_2094_Z9_EC.
2497 (s390_option_override): Likewise.
2498 (s390_adjust_priority): Likewise.
2499
2500 2015-07-24 Dominik Vogt <vogt@linux.vnet.ibm.com>
2501
2502 * config/s390/s390.h: S390: Do not define EXTRA_SPEC_FUNCTIONS
2503 when cross compiling.
2504
2505 2015-07-24 Richard Biener <rguenther@suse.de>
2506
2507 * fold-const.c (maybe_canonicalize_comparison_1): Move
2508 A code CST canonicalization ...
2509 * match.pd: ... to a pattern here.
2510
2511 2015-07-24 Jiong Wang <jiong.wang@arm.com>
2512
2513 Revert:
2514 2015-07-22 Jiong Wang <jiong.wang@arm.com>
2515 PR target/63521
2516 * config/aarch64/aarch64.h (REG_ALLOC_ORDER): Define.
2517 (HONOR_REG_ALLOC_ORDER): Define.
2518
2519 2015-07-24 Richard Biener <rguenther@suse.de>
2520
2521 * genmatch.c (add_operator): Allow SSA_NAME as predicate.
2522 * fold-const.c (fold_comparison): Move parameter does not
2523 alias &local simplification ...
2524 * match.pd: ... as a pattern here.
2525
2526 2015-07-24 Richard Biener <rguenther@suse.de>
2527
2528 * gimple-fold.c (replace_stmt_with_simplification): Special-case
2529 valueizing call operands.
2530 * gimple-match-head.c (maybe_push_res_to_seq): Take
2531 number of call arguments from ops array.
2532 (do_valueize): New function.
2533 (gimple_simplify): Return true if valueization changed
2534 any operand even if the result didn't simplify further.
2535
2536 2015-07-24 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
2537
2538 PR middle-end/25530
2539 * match.pd (mult (trunc_div @0 integer_pow2p@1) @1) : New simplifier.
2540
2541 2015-07-24 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
2542
2543 PR middle-end/25529
2544 * match.pd (trunc_div (mult @0 integer_pow2p@1) @1) : New simplifier.
2545
2546 2015-07-23 Kugan Vivekanandarajah <kuganv@linaro.org>
2547
2548 * config/arm/arm.c (arm_emit_movpair): Add REG_EQUAL notes to
2549 instruction.
2550
2551 2015-07-23 Kugan Vivekanandarajah <kuganv@linaro.org>
2552
2553 * cse.c (cse_insn): Fix missing check for STRICT_LOW_PART and minor
2554 clean up.
2555
2556 2015-07-23 Uros Bizjak <ubizjak@gmail.com>
2557
2558 * config/i386/i386.c (ix86_build_builtin_va_list_64): Rename
2559 from ix86_build_builtin_va_list_abi. Handle only 64bit non-MS_ABI
2560 targets here.
2561 (ix86_build_builtin_va_list): Rewrite sysv_va_list_type_node and
2562 ms_va_list_type_node initialization.
2563
2564 2015-07-23 Jeff Law <law@redhat.com>
2565
2566 PR lto/66752
2567 * tree-ssa-threadedge.c (simplify_conrol_stmt_condition): If we are
2568 unable to find X NE 0 in the tables, return X as the simplified
2569 condition.
2570 (fsm_find_control_statement_thread_paths): If nodes in NEXT_PATH are
2571 in VISISTED_BBS, then return failure. Else add nodes from NEXT_PATH
2572 to VISISTED_BBS. */
2573 * tree-ssa-threadupdate.c (duplicate_thread_path): Fix up edge flags
2574 after removing the control flow statement and unnecessary edges.
2575
2576 2015-07-23 Bernd Edlinger <bernd.edlinger@hotmail.de>
2577
2578 * tree-pass.h (get_current_pass_name): Removed.
2579
2580 2015-07-23 Alexandre Oliva <aoliva@redhat.com>
2581
2582 PR rtl-optimization/64164
2583 * Makefile.in (OBJS): Drop tree-ssa-copyrename.o.
2584 * tree-ssa-copyrename.c: Removed.
2585 * opts.c (default_options_table): Drop -ftree-copyrename. Add
2586 -ftree-coalesce-vars.
2587 * passes.def: Drop all occurrences of pass_rename_ssa_copies.
2588 * common.opt (ftree-copyrename): Ignore.
2589 (ftree-coalesce-inlined-vars): Likewise.
2590 * doc/invoke.texi: Remove the ignored options above.
2591 * gimple-expr.h (gimple_can_coalesce_p): Move declaration
2592 * tree-ssa-coalesce.h: ... here.
2593 * tree-ssa-uncprop.c: Include tree-ssa-coalesce.h and other
2594 headers required by it.
2595 * gimple-expr.c (gimple_can_coalesce_p): Allow coalescing
2596 across variables when flag_tree_coalesce_vars. Check register
2597 use and promoted modes to allow coalescing. Moved to
2598 tree-ssa-coalesce.c.
2599 * tree-ssa-live.c (struct tree_int_map_hasher): Move along
2600 with its member functions to tree-ssa-coalesce.c.
2601 (var_map_base_init): Likewise. Renamed to
2602 compute_samebase_partition_bases.
2603 (partition_view_normal): Drop want_bases parameter.
2604 (partition_view_bitmap): Likewise.
2605 * tree-ssa-live.h: Adjust declarations.
2606 * tree-ssa-coalesce.c: Include explow.h.
2607 (build_ssa_conflict_graph): Process PARM_ and RESULT_DECLs's
2608 default defs at the entry point.
2609 (dump_part_var_map): New.
2610 (compute_optimized_partition_bases): New, called by...
2611 (coalesce_ssa_name): ... when flag_tree_coalesce_vars, instead
2612 of compute_samebase_partition_bases. Adjust.
2613 * alias.c (nonoverlapping_memrefs_p): Disregard gimple-regs.
2614 * cfgexpand.c (leader_merge): New.
2615 (get_rtl_for_parm_ssa_default_def): New.
2616 (set_rtl): Merge exprs and attrs, even for MEMs and non-SSA
2617 vars. Update DECL_RTL for PARM_DECLs and RESULT_DECLs too.
2618 (expand_one_stack_var_at): Handle anonymous SSA_NAMEs. Drop
2619 redundant MEM attr setting.
2620 (expand_one_stack_var_1): Handle anonymous SSA_NAMEs. Renamed
2621 from...
2622 (expand_one_stack_var): ... this. New wrapper to check and
2623 skip already expanded SSA partitions.
2624 (record_alignment_for_reg_var): New, factored out of...
2625 (expand_one_var): ... this.
2626 (expand_one_ssa_partition): New.
2627 (adjust_one_expanded_partition_var): New.
2628 (expand_one_register_var): Check and skip already expanded SSA
2629 partitions.
2630 (expand_used_vars): Don't create DECLs for anonymous SSA
2631 names. Expand all SSA partitions, then adjust all SSA names.
2632 (pass::execute): Replace the loops that set
2633 SA.partition_to_pseudo from partition leaders and cleared
2634 DECL_RTL for multi-location variables, and that which used to
2635 rename vars and set attrs, with one that clears DECL_RTL and
2636 checks that PARMs and RESULTs default_defs match DECL_RTL.
2637 * cfgexpand.h (get_rtl_for_parm_ssa_default_def): Declare.
2638 * emit-rtl.c (set_reg_attrs_for_parm): Handle NULL decl.
2639 * explow.c (promote_ssa_mode): New.
2640 * explow.h (promote_ssa_mode): Declare.
2641 * expr.c (expand_expr_real_1): Handle anonymous SSA_NAMEs.
2642 * function.c: Include cfgexpand.h.
2643 (use_register_for_decl): Handle SSA_NAMEs, anonymous or not.
2644 (use_register_for_parm_decl): Wrapper for the above to
2645 special-case the result_ptr.
2646 (rtl_for_parm): Ditto for get_rtl_for_parm_ssa_default_def.
2647 (split_complex_args): Take assign_parm_data_all argument.
2648 Pass it to rtl_for_parm. Set up rtl and context for split
2649 args.
2650 (assign_parms_augmented_arg_list): Adjust.
2651 (maybe_reset_rtl_for_parm): Reset DECL_RTL of parms with
2652 multiple locations. Recognize split complex args.
2653 (assign_parm_adjust_stack_rtl): Add all and parm arguments,
2654 for rtl_for_parm. For SSA-assigned parms, zero stack_parm.
2655 (assign_parm_setup_block): Prefer SSA-assigned location.
2656 (assign_parm_setup_reg): Likewise. Use entry_parm for equiv
2657 if stack_parm is NULL.
2658 (assign_parm_setup_stack): Prefer SSA-assigned location.
2659 (assign_parms): Maybe reset DECL_RTL of params. Adjust stack
2660 rtl before testing for pointer bounds. Special-case result_ptr.
2661 (expand_function_start): Maybe reset DECL_RTL of result.
2662 Prefer SSA-assigned location for result and static chain.
2663 Factor out DECL_RESULT and SET_DECL_RTL.
2664 * tree-outof-ssa.c (insert_value_copy_on_edge): Handle
2665 anonymous SSA names. Use promote_ssa_mode.
2666 (get_temp_reg): Likewise.
2667 (remove_ssa_form): Adjust.
2668 * stor-layout.c (layout_decl): Don't set mem attributes of
2669 non-MEMs.
2670 * var-tracking.c (dataflow_set_clear_at_call): Take call_insn
2671 and get its reg_usage for reg invalidation.
2672 (compute_bb_dataflow): Pass it insn.
2673 (emit_notes_in_bb): Likewise.
2674
2675 2015-07-23 Segher Boessenkool <segher@kernel.crashing.org>
2676
2677 PR target/66217
2678 * config/rs6000/rs6000-protos.h (rs6000_emit_2insn_and): Change
2679 prototype.
2680 * config/rs6000/rs6000.c (rs6000_emit_dot_insn): New function.
2681 (rs6000_emit_2insn_and): Handle dot forms.
2682 * config/rs6000/rs6000.md (and<mode>3): Adjust.
2683 (*and<mode>3_2insn): Remove TODO. Adjust. Add "type" attr.
2684 (*and<mode>3_2insn_dot, *and<mode>3_2insn_dot2): New.
2685
2686 2015-07-23 Richard Biener <rguenther@suse.de>
2687
2688 * generic-match-head.c: Include cgraph.h.
2689 * gimple-match-head.c: Likewise.
2690 * tree-ssa-sccvn.c (free_scc_vn): Guard against newly created
2691 SSA names.
2692 * fold-const.c (fold_binary_loc): Move &A ==/!= &B simplification...
2693 * match.pd: ...to a pattern here. Add &A ==/!= 0 simplification
2694 pattern.
2695
2696 2015-07-23 Richard Biener <rguenther@suse.de>
2697
2698 * gimple-fold.c (fold_gimple_cond): Do not require folding
2699 results to pass valid_gimple_rhs_p.
2700 * tree-cfg.h (fold_cond_expr_cond): Remove.
2701 * tree-cfg.c (fold_cond_expr_cond): Likewise.
2702 (make_edges): Do not call it.
2703 * tree-inline.c (tree_function_versioning): Likewise.
2704
2705 2015-07-23 Tom de Vries <tom@codesourcery.com>
2706
2707 * tree-parloops.c (gather_scalar_reductions): Add arg to call to
2708 vect_force_simple_reduction.
2709 * tree-vect-loop.c (vect_analyze_scalar_cycles_1): Same.
2710 (vect_is_simple_reduction_1): Add and handle
2711 need_wrapping_integral_overflow parameter.
2712 (vect_is_simple_reduction, vect_force_simple_reduction): Add and pass
2713 need_wrapping_integral_overflow parameter.
2714 (vectorizable_reduction): Add arg to call to vect_is_simple_reduction.
2715 * tree-vectorizer.h (vect_force_simple_reduction): Add parameter to
2716 decl.
2717
2718 2015-07-23 Yuri Rumyantsev <ysrumyan@gmail.com>
2719
2720 PR tree-optimization/66926,66951
2721 * tree-vect-loop-manip.c (slpeel_tree_peel_loop_to_edge): Delete
2722 INNER_LOOP and fix up condition for renaming virtual operands.
2723
2724 2015-07-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2725
2726 * combine.c (try_combine): Use std::swap instead of manually
2727 swapping.
2728
2729 2015-07-23 Prachi Godbole <prachi.godbole@imgtec.com>
2730
2731 * config/mips/i6400.md: New file.
2732 * config/mips/mips-cpus.def (mips32r6): Change to PROCESSOR_I6400.
2733 (mips64r6): Likewise.
2734 (i6400): Define.
2735 * config/mips/mips-tables.opt: Regenerate.
2736 * config/mips/mips.c (mips_rtx_cost_data): Add I6400 processor.
2737 (mips_issue_rate): Add support for i6400.
2738 (mips_multipass_dfa_lookahead): Likewise.
2739 * config/mips/mips.h (TUNE_I6400): Define.
2740 * config/mips/mips.md: Include i6400.md.
2741 (processor): Add i6400.
2742 * doc/invoke.texi (-march=@var{arch}): Add i6400.
2743
2744 2015-07-23 Richard Biener <rguenther@suse.de>
2745
2746 PR middle-end/66916
2747 * match.pd: Guard widen and sign-change comparison simplification
2748 with single_use.
2749
2750 2015-07-23 Richard Biener <rguenther@suse.de>
2751
2752 PR tree-optimization/66945
2753 * tree-ssa-propagate.c (substitute_and_fold_dom_walker
2754 ::before_dom_children): Force the propagators idea of
2755 non-executable edges to materialize, not what the folder
2756 chooses.
2757
2758 2015-07-23 Richard Biener <rguenther@suse.de>
2759
2760 * gimple.h (gimple_cond_make_false): Use 0 != 0.
2761 (gimple_cond_make_true): Use 1 != 0.
2762
2763 2015-07-22 DJ Delorie <dj@redhat.com>
2764
2765 * config/msp430/t-msp430 (MULTILIB_DIRNAMES): Remove trailing
2766 slashes.
2767
2768 * config/msp430/msp430.md (ashlhi3): Optimize shifts of subregs.
2769 (ashrhi3): Likewise.
2770 (lshrhi3): Likewise.
2771 (movhi): Take advantage of zero-extend to load small constants.
2772 (movpsi): Likewise.
2773 (and<mode>3): Likewise.
2774 (zero_extendqihi2): Likewise.
2775 (zero_extendqisi2): New.
2776 * config/msp430/constraints.md (N,O): New.
2777 * config/msp430/msp430.h (WORD_REGISTER_OPERATIONS): Define.
2778
2779 2015-07-22 Uros Bizjak <ubizjak@gmail.com>
2780
2781 PR target/66954
2782 * config/i386/i386.c (get_builtin_code_for_version): Add P_AES
2783 to enum feature_priority and feature_list.
2784 (fold_builtin_cpu): Add F_AES to enum processor_features
2785 and isa_names_table.
2786
2787 2015-07-22 Ilya Enkovich <enkovich.gnu@gmail.com>
2788
2789 PR driver/66737
2790 * config/i386/linux-common.h (MPX_SPEC): Use linker option
2791 for 64bit target only.
2792
2793 2015-07-22 Bernd Schmidt <bernds@codesourcery.com>
2794
2795 * config/nvptx/nvptx.c: Expand some comments.
2796
2797 2015-07-22 James Greenhalgh <james.greenhalgh@arm.com>
2798
2799 * config/arm/cortex-a53 (cortex_53_advsimd): Rename to...
2800 (cortex_a53_advsimd): ...This.
2801
2802 2015-07-22 Richard Biener <rguenther@suse.de>
2803
2804 * genmatch.c (expr::gen_transform): Clarify error message
2805 and display location.
2806
2807 2015-07-22 Richard Biener <rguenther@suse.de>
2808
2809 * genmatch.c (struct operand): Add location member.
2810 (predicate, expr, c_expr, capture, if_expr, with_expr): Adjust
2811 constructors.
2812 (struct simplify): Remove match_location and result_location
2813 members.
2814 (elsehwere): Adjust.
2815
2816 2015-07-22 Prachi Godbole <prachi.godbole@imgtec.com>
2817
2818 * config/mips/m5100.md: New file.
2819 * config/mips/mips-cpus.def (m5100, m5101): Define.
2820 * config/mips/mips-tables.opt: Regenerate.
2821 * config/mips/mips.c (mips_rtx_cost_data): Add costs for m5100.
2822 * config/mips/mips.h (MIPS_ISA_LEVEL_SPEC): Map -march=m5100 and
2823 -march=m5101 to -mips32r5.
2824 (MIPS_ARCH_FLOAT_SPEC): Map -m5101 to -msoft-float.
2825 (MIPS_ISA_NAN2008_SPEC): Map -march=m51* to -mnan=2008 if
2826 !-msoft-float.
2827 * config/mips/mips.md: Include m5100.md.
2828 (processor): Add m5100.
2829 * doc/invoke.texi (-march=@var{arch}): Add m5100, m5101.
2830
2831 2015-07-22 Robert Suchanek <robert.suchanek@imgtec.com>
2832
2833 * config/mips/mips-cpus.def (interaptiv): Define.
2834 * config/mips/mips-tables.opt: Regenerate.
2835 * config/mips/mips.h (MIPS_ISA_LEVEL_SPEC): Map -march=interaptiv to
2836 -mips32r2.
2837 (BASE_DRIVER_SELF_SPECS): Likewise but map to -mdsp.
2838 * doc/invoke.texi (-march=@var{arch}): Add interaptiv.
2839
2840 2015-07-22 Jiong Wang <jiong.wang@arm.com>
2841
2842 PR target/63521
2843 * config/aarch64/aarch64.h (REG_ALLOC_ORDER): Define.
2844 (HONOR_REG_ALLOC_ORDER): Define.
2845
2846 2015-07-22 Richard Biener <rguenther@suse.de>
2847
2848 PR tree-optimization/66952
2849 * tree-ssa-ifcombine.c (pass_tree_ifcombine::execute): For
2850 blocks we end up executing unconditionally reset all SSA
2851 info such as range and alignment.
2852 * tree-ssanames.h (reset_flow_sensitive_info): Declare.
2853 * tree-ssanames.c (reset_flow_sensitive_info): New function.
2854
2855 2015-07-22 Charles Baylis <charles.baylis@linaro.org>
2856
2857 * config/aarch64/aarch64-simd.md (vec_store_lanesoi_lane<mode>): Fix
2858 typo in attribute.
2859
2860 2015-07-22 Richard Biener <rguenther@suse.de>
2861
2862 * genmatch.c (parser::parse_result): Properly handle
2863 match with result operands and conditions.
2864
2865 2015-07-22 Charles Baylis <charles.baylis@linaro.org>
2866
2867 PR target/63870
2868 * config/aarch64/aarch64-builtins.c (enum aarch64_type_qualifiers):
2869 Add qualifier_struct_load_store_lane_index.
2870 (aarch64_types_loadstruct_lane_qualifiers): Use
2871 qualifier_struct_load_store_lane_index for lane index argument for
2872 last argument.
2873 (aarch64_types_storestruct_lane_qualifiers): Ditto.
2874 (builtin_simd_arg): Add SIMD_ARG_STRUCT_LOAD_STORE_LANE_INDEX.
2875 (aarch64_simd_expand_args): Add new argument describing mode of
2876 builtin. Check lane bounds for arguments with
2877 SIMD_ARG_STRUCT_LOAD_STORE_LANE_INDEX.
2878 (aarch64_simd_expand_builtin): Emit error for incorrect lane indices
2879 if marked with SIMD_ARG_STRUCT_LOAD_STORE_LANE_INDEX.
2880 (aarch64_simd_expand_builtin): Handle arguments with
2881 qualifier_struct_load_store_lane_index. Pass machine mode of builtin to
2882 aarch64_simd_expand_args.
2883 * config/aarch64/aarch64-simd-builtins.def: Declare ld[234]_lane and
2884 vst[234]_lane with BUILTIN_VALLDIF.
2885 * config/aarch64/aarch64-simd.md:
2886 (aarch64_vec_load_lanesoi_lane<mode>): Use VALLDIF iterator. Perform
2887 endianness reversal on lane index.
2888 (aarch64_vec_load_lanesci_lane<mode>): Ditto.
2889 (aarch64_vec_load_lanesxi_lane<mode>): Ditto.
2890 (vec_store_lanesoi_lane<mode>): Use VALLDIF iterator.
2891 (vec_store_lanesci_lane<mode>): Ditto.
2892 (vec_store_lanesxi_lane<mode>): Ditto.
2893 (aarch64_ld2_lane<mode>): Use VALLDIF iterator. Remove endianness
2894 reversal of lane index.
2895 (aarch64_ld3_lane<mode>): Ditto.
2896 (aarch64_ld4_lane<mode>): Ditto.
2897 (aarch64_st2_lane<mode>): Ditto.
2898 (aarch64_st3_lane<mode>): Ditto.
2899 (aarch64_st4_lane<mode>): Ditto.
2900 * config/aarch64/arm_neon.h (__LD2_LANE_FUNC): Rename mode parameter
2901 to qmode. Add new mode parameter. Update uses.
2902 (__LD3_LANE_FUNC): Ditto.
2903 (__LD4_LANE_FUNC): Ditto.
2904 (__ST2_LANE_FUNC): Ditto.
2905 (__ST3_LANE_FUNC): Ditto.
2906 (__ST4_LANE_FUNC): Ditto.
2907
2908 2015-07-22 Jonathan Wakely <jwakely@redhat.com>
2909
2910 * doc/invoke.texi (Language Independent Options): Rename node to
2911 Diagnostic Message Formatting Options.
2912
2913 2015-07-21 Vladimir Makarov <vmakarov@redhat.com>
2914
2915 PR ipa/66424.
2916 * lra-remat.c (operand_to_remat): Prevent using insns with input
2917 subregs processed separately by IRA.
2918
2919 2015-07-21 Andrew MacLeod <amacleod@redhat.com>
2920
2921 * ssa-iterators.h (has_zero_uses, has_single_use): Implement as
2922 straight loops.
2923 (single_imm_use): Check for iterator node.
2924 (num_imm_uses): Likewise.
2925 * tree-ssa-operands.c (has_zero_uses_1): Delete.
2926 (single_imm_use_1): Check for iterator node.
2927
2928 2015-07-21 Mike Frysinger <vapier@gentoo.org>
2929 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
2930
2931 * configure.ac: Add check for new options in isl-0.15.
2932 * config.in, configure: Rebuilt.
2933 * graphite-blocking.c: Include <isl/constraint.h>
2934 * graphite-interchange.c, graphite-poly.c: Likewise.
2935 * graphhite-scop-detection.c, graphite-sese-to-poly.c: Likewise.
2936 * graphite.c: Likewise.
2937 * graphite-isl-ast-to-gimple.c: Include <isl/constraint.h> and
2938 <isl/union_set.h>.
2939 * graphite-dependences.c: Include <isl/constraint.h>.
2940 (max_number_of_out_dimensions): Returns isl_stat.
2941 (extend_schedule_1): Likewise
2942 (extend_schedule): Corresponding changes.
2943 * graphite-optimize-isl.c: Include <isl/constraint.h> and
2944 <isl/union_set.h>.
2945 (getSingleMap): Change return type of isl_stat.
2946 (optimize_isl): Conditionally use
2947 isl_options_set_schedule_serialize_sccs.
2948 * graphite-poly.h (isl_stat, isl_stat_ok): Define fallbacks
2949 if not HAVE_ISL_OPTIONS_SET_SCHEDULE_SERIALIZE_SCCS.
2950
2951 2015-07-21 Georg-Johann Lay <avr@gjlay.de>
2952
2953 PR target/66956
2954 * config/avr/avr-dimode.md (<extend_u>mulsidi3_insn)
2955 (<extend_u>mulsidi3): Don't use if !AVR_HAVE_MUL.
2956
2957 2015-07-21 Richard Biener <rguenther@suse.de>
2958
2959 PR tree-optimization/66948
2960 * genmatch.c (capture_info::walk_match): Also recurse to
2961 captures. Properly compute expr state from captures of
2962 captures.
2963 * match.pd: Add single-use guards to
2964 (X & C2) >> C1 into (X >> C1) & (C2 >> C1) transform.
2965
2966 2015-07-21 Nathan Sidwell <nathan@codesourcery.com>
2967
2968 * config/nvptx/mkoffload.c (process): Add static destructor call.
2969
2970 2015-07-21 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2971
2972 PR middle-end/66915
2973 * match.pd (A - B -> A + (-B)): Don't allow folding
2974 when type if a fixed-point type.
2975
2976 2015-07-20 DJ Delorie <dj@redhat.com>
2977
2978 * config/rl78/rl78-real.md (andqi3_real): Expand operands for clr1.
2979 (iorqi3_real): Likewise for set1.
2980
2981 2015-07-20 Uros Bizjak <ubizjak@gmail.com>
2982
2983 * config/i386/i386.c (ix86_md_asm_adjust): Handle DImode dest_mode
2984 for !TARGET_64BIT.
2985
2986 2015-07-20 Aditya Kumar <hiraditya@msn.com>
2987
2988 * graphite-isl-ast-to-gimple.c:
2989 Refactor so that each function can access 'region'. This will help
2990 maintain a parameter rename_map within a region.
2991
2992 2015-07-20 Segher Boessenkool <segher@kernel.crashing.org>
2993
2994 * config/rs6000/rs6000.md (*lt0_disi): New.
2995
2996 2015-07-20 Segher Boessenkool <segher@kernel.crashing.org>
2997
2998 PR target/66217
2999 * config/rs6000/constraints.md ("S", "T", "t"): Delete. Update
3000 "available letters" comment.
3001 * config/rs6000/predicates.md (mask_operand, mask_operand_wrap,
3002 mask64_operand, mask64_2_operand, any_mask_operand, and64_2_operand,
3003 and_2rld_operand): Delete.
3004 (and_operand): Adjust.
3005 (rotate_mask_operator): New.
3006 * config/rs6000/rs6000-protos.h (build_mask64_2_operands,
3007 includes_lshift_p, includes_rshift_p, includes_rldic_lshift_p,
3008 includes_rldicr_lshift_p, insvdi_rshift_rlwimi_p, extract_MB,
3009 extract_ME): Delete.
3010 (rs6000_is_valid_mask, rs6000_is_valid_and_mask,
3011 rs6000_is_valid_shift_mask, rs6000_is_valid_insert_mask,
3012 rs6000_insn_for_and_mask, rs6000_insn_for_shift_mask,
3013 rs6000_insn_for_insert_mask, rs6000_is_valid_2insn_and,
3014 rs6000_emit_2insn_and): New.
3015 * config/rs6000/rs6000.c (num_insns_constant): Adjust.
3016 (build_mask64_2_operands, includes_lshift_p, includes_rshift_p,
3017 includes_rldic_lshift_p, includes_rldicr_lshift_p,
3018 insvdi_rshift_rlwimi_p, extract_MB, extract_ME): Delete.
3019 (rs6000_is_valid_mask, rs6000_is_valid_and_mask,
3020 rs6000_insn_for_and_mask, rs6000_is_valid_shift_mask,
3021 s6000_insn_for_shift_mask, rs6000_is_valid_insert_mask,
3022 rs6000_insn_for_insert_mask, rs6000_is_valid_2insn_and,
3023 rs6000_emit_2insn_and): New.
3024 (print_operand) <'b', 'B', 'm', 'M', 's', 'S', 'W'>: Delete.
3025 (rs6000_rtx_costs) <CONST_INT>: Delete mask_operand and mask64_operand
3026 handling.
3027 <NOT>: Don't fall through to next case.
3028 <AND>: Handle the various rotate-and-mask cases directly.
3029 <IOR>: Always cost as one insn.
3030 * config/rs6000/rs6000.md (splitter for bswap:SI): Adjust.
3031 (and<mode>3): Adjust expander for the new patterns.
3032 (and<mode>3_imm, and<mode>3_imm_dot, and<mode>3_imm_dot2,
3033 and<mode>3_imm_mask_dot, and<mode>3_imm_mask_dot2): Adjust condition.
3034 (*and<mode>3_imm_dot_shifted): New.
3035 (*and<mode>3_mask): Delete, rewrite as ...
3036 (and<mode>3_mask): ... New.
3037 (*and<mode>3_mask_dot, *and<mode>3_mask_dot): Rewrite.
3038 (andsi3_internal0_nomc): Delete.
3039 (*andsi3_internal6): Delete.
3040 (*and<mode>3_2insn): New.
3041 (insv, insvsi_internal, *insvsi_internal1, *insvsi_internal2,
3042 *insvsi_internal3, *insvsi_internal4, *insvsi_internal5,
3043 *insvsi_internal6, insvdi_internal, *insvdi_internal2,
3044 *insvdi_internal3): Delete.
3045 (*rotl<mode>3_mask, *rotl<mode>3_mask_dot, *rotl<mode>3_mask_dot2,
3046 *rotl<mode>3_insert, *rotl<mode>3_insert_2, *rotl<mode>3_insert_3,
3047 *rotl<mode>3_insert_4, two splitters for multi-precision shifts,
3048 *ior<mode>_mask): New.
3049 (extzv, extzvdi_internal, *extzvdi_internal1, *extzvdi_internal2,
3050 *rotlsi3_mask, *rotlsi3_mask_dot, *rotlsi3_mask_dot2,
3051 *ashlsi3_imm_mask, *ashlsi3_imm_mask_dot, *ashlsi3_imm_mask_dot2,
3052 *lshrsi3_imm_mask, *lshrsi3_imm_mask_dot, *lshrsi3_imm_mask_dot2):
3053 Delete.
3054 (ashr<mode>3): Delete expander.
3055 (*ashr<mode>3): Rename to ...
3056 (ashr<mode>3): ... This.
3057 (ashrdi3_no_power, *ashrdisi3_noppc64be): Delete.
3058 (*rotldi3_internal4, *rotldi3_internal5 and split,
3059 *rotldi3_internal6 and split, *ashldi3_internal4, ashldi3_internal5
3060 and split, *ashldi3_internal6 and split, *ashldi3_internal7,
3061 ashldi3_internal8 and split, *ashldi3_internal9 and split): Delete.
3062 (*anddi3_2rld, *anddi3_2rld_dot, *anddi3_2rld_dot2): Delete.
3063 (splitter for loading a mask): Adjust.
3064 * doc/md.texi (Machine Constraints): Remove q, S, T, t constraints.
3065
3066 2015-07-20 Marek Polacek <polacek@redhat.com>
3067
3068 * genemit.c (print_code, gen_exp, gen_insn, gen_expand, gen_split,
3069 output_add_clobbers, output_added_clobbers_hard_reg_p,
3070 gen_rtx_scratch): Remove declarations.
3071
3072 2015-07-20 Marek Polacek <polacek@redhat.com>
3073
3074 PR c++/55095
3075 * doc/invoke.texi: Document -Wshift-overflow and -Wshift-overflow=.
3076
3077 2015-07-20 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3078
3079 * simplify-rtx.c (simplify_unary_operation_1, NEG case):
3080 (neg (x ? (neg y) : y)) -> !x ? (neg y) : y.
3081
3082 2015-07-20 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3083
3084 * combine.c (combine_simplify_rtx): Move simplification step
3085 before various transformations/substitutions.
3086
3087 2015-07-20 Mikhail Maltsev <maltsevm@gmail.com>
3088
3089 * wide-int.h (struct binary_traits): Fix partial specialization syntax.
3090 (struct int_traits): Likewise.
3091
3092 2015-07-18 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
3093
3094 * vmsdbgout.c (vmsdbgout_decl): Change name of prototyped
3095 function to vmsdbgout_function_decl.
3096
3097 2015-07-18 Uros Bizjak <ubizjak@gmail.com>
3098
3099 PR target/66922
3100 * config/i386/i386.c (ix86_expand_pextr): Reject extractions
3101 from misaligned positions.
3102 (ix86_expand_pinsr): Reject insertions to misaligned positions.
3103
3104 2015-07-18 Sebastian Pop <s.pop@samsung.com>
3105
3106 PR middle-end/46851
3107 PR middle-end/60340
3108 * Makefile.in: Removed omega.o.
3109 * common.opt: Document flag fcheck-data-deps as deprecated.
3110 * doc/invoke.texi: Remove documentation for fcheck-data-deps and
3111 its associated params: omega-max-vars, omega-max-geqs,
3112 omega-max-eqs, omega-max-wild-cards, omega-hash-table-size,
3113 omega-max-keys, omega-eliminate-redundant-constraints.
3114 * doc/loop.texi: Remove all the section on Omega.
3115 * graphite-blocking.c: Include missing params.h: it used to be
3116 included through tree-data-ref.h and omega.h.
3117 * graphite-isl-ast-to-gimple.c: Same.
3118 * graphite-optimize-isl.c: Same.
3119 * graphite-sese-to-poly.c: Same.
3120 * graphite.c: Same.
3121 * omega.c: Remove.
3122 * omega.h: Remove.
3123 * params.def: Removed PARAM_OMEGA_MAX_VARS, PARAM_OMEGA_MAX_GEQS,
3124 PARAM_OMEGA_MAX_EQS, PARAM_OMEGA_MAX_WILD_CARDS,
3125 PARAM_OMEGA_HASH_TABLE_SIZE, PARAM_OMEGA_MAX_KEYS, and
3126 PARAM_OMEGA_ELIMINATE_REDUNDANT_CONSTRAINTS.
3127 * passes.def: Remove pass_check_data_deps.
3128 * tree-data-ref.c (dump_affine_function): Declare DEBUG_FUNCTION.
3129 (dump_conflict_function): Same.
3130 (dump_subscript): Same.
3131 (print_direction_vector): Same.
3132 (print_dir_vectors): Same.
3133 (print_lambda_vector): Same.
3134 (print_dist_vectors): Same.
3135 (dump_data_dependence_relation): Same.
3136 (dump_data_dependence_relations): Same.
3137 (dump_dist_dir_vectors): Same.
3138 (dump_ddrs): Same.
3139 (init_omega_eq_with_af): Removed.
3140 (omega_extract_distance_vectors): Removed.
3141 (omega_setup_subscript): Removed.
3142 (init_omega_for_ddr_1): Removed.
3143 (init_omega_for_ddr): Removed.
3144 (ddr_consistent_p): Removed.
3145 (compute_affine_dependence): Do not use omega to check data
3146 dependences.
3147 (compute_data_dependences_for_bb): Removed.
3148 (analyze_all_data_dependences): Removed.
3149 (tree_check_data_deps): Removed.
3150 * tree-data-ref.h: Do not include omega.h.
3151 (compute_data_dependences_for_bb): Removed.
3152 (tree_check_data_deps): Removed.
3153 * tree-ssa-loop.c (pass_check_data_deps): Removed.
3154 (make_pass_check_data_deps): Removed.
3155 * tree-ssa-phiopt.c: Include params.h.
3156 * tree-vect-data-refs.c: Same.
3157 * tree-vect-slp.c: Same.
3158
3159 2015-07-18 Uros Bizjak <ubizjak@gmail.com>
3160
3161 * config/i386/i386.md (pushsf splitter): Pass curr_insn to
3162 find_constant_src. FAIL if find_constant_src returns NULL_RTX.
3163 (mem->fpreg splitters): Ditto.
3164 (general_operand->nonimmediate_operand splitter): Use explicit modes.
3165 Disable DFmode for TARGET_64BIT.
3166
3167 2015-07-17 H.J. Lu <hongjiu.lu@intel.com>
3168
3169 PR target/66906
3170 * config/i386/i386.c (ix86_expand_prologue): Replicate static
3171 chain on the stack.
3172
3173 2015-07-17 Nathan Sidwell <nathan@codesourcery.com>
3174
3175 * config/nvptx/mkoffload.c (process): Constify host data.
3176 * config/i386/intelmic-mkoffload.c (generate_target_descr_file):
3177 Constify host data.
3178 (generate_host_descr_file): Likewise.
3179
3180 2015-07-17 Aditya Kumar <aditya.k7@samsung.com>
3181 Sebastian Pop <s.pop@samsung.com>
3182
3183 PR middle-end/61929
3184 * graphite-dependences.c (add_pdr_constraints): Renamed
3185 pdr->extent to pdr->subscript_sizes.
3186 * graphite-interchange.c (build_linearized_memory_access): Add
3187 back all gcc_assert's that the "isl_int to isl_val conversion"
3188 patch has removed. Refactored.
3189 (pdr_stride_in_loop): Renamed pdr->extent to pdr->subscript_sizes.
3190 * graphite-poly.c (new_poly_dr): Same.
3191 (free_poly_dr): Same.
3192 * graphite-poly.h (struct poly_dr): Same.
3193 * graphite-scop-detection.c (stmt_has_simple_data_refs_p): Ignore
3194 all data references other than ARRAY_REF, MEM_REF, and COMPONENT_REF.
3195 * graphite-scop-detection.h: Fix space.
3196 * graphite-sese-to-poly.c (build_pbb_scattering_polyhedrons): Add
3197 back all gcc_assert's removed by a previous patch.
3198 (wrap): Remove the_isl_ctx global variable that the same patch has
3199 added.
3200 (build_loop_iteration_domains): Same.
3201 (add_param_constraints): Same.
3202 (pdr_add_data_dimensions): Same. Refactored.
3203 (build_poly_dr): Renamed extent to subscript_sizes.
3204
3205 2015-07-17 Marek Polacek <polacek@redhat.com>
3206
3207 * fold-const.c (fold_binary_loc): Move A - (A & B) into ~B & A ...
3208 * match.pd: ... here.
3209
3210 2015-07-17 Nathan Sidwell <nathan@codesourcery.com>
3211
3212 * config/nvptx/mkoffload.c (process): Constify target data.
3213 * config/i386/intelmic-mkoffload.c (generate_target_descr_file):
3214 Constify target data.
3215 (generate_target_offloadend_file): Likewise.
3216
3217 2015-07-17 Yuri Rumyantsev <ysrumyan@gmail.com>
3218
3219 * tree-vect-loop-manip.c (rename_variables_in_bb): Add argument
3220 to allow renaming of PHI arguments on edges incoming from outer
3221 loop header, add corresponding check before start PHI iterator.
3222 (slpeel_tree_duplicate_loop_to_edge_cfg): Introduce new bool
3223 variable DUPLICATE_OUTER_LOOP and set it to true for outer loops
3224 with true force_vectorize. Set-up dominator for outer loop too.
3225 Pass DUPLICATE_OUTER_LOOP as argument to rename_variables_in_bb.
3226 (slpeel_can_duplicate_loop_p): Allow duplicate of outer loop if it
3227 was marked with force_vectorize and has restricted cfg.
3228 (slpeel_tree_peel_loop_to_edge): Do not rename exit PHI uses in
3229 inner loop.
3230 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment): Do not
3231 do peeling for outer loops.
3232
3233 2015-07-17 Yvan Roux <yvan.roux@linaro.org>
3234 Matthias Klose <doko@ubuntu.com>
3235
3236 * configure.ac: Move AC_ARG_WITH checks for native-system-header-dir,
3237 build-sysroot, sysroot from the `Miscenalleous configure options' to
3238 the `Directories' section and strip trailing `/' from with_sysroot.
3239 (gcc_gxx_include_dir): Don't strip a `/' sysroot value.
3240 * configure: Regenerated.
3241
3242 2015-07-17 Uros Bizjak <ubizjak@gmail.com>
3243
3244 PR target/66824
3245 * config/i386/i386.h (TARGET_HARD_SF_REGS): New define.
3246 (TARGET_HARD_DF_REGS): Ditto.
3247 (TARGET_HARD_XF_REGS): Ditto.
3248 * config/i386/i386.md (*movxf_internal): Add alternatives 9 and 10.
3249 Enable alternatives 9 and 10 only for !TARGET_HARD_XF_REG target.
3250 (*movdf_internal): Add alternatives 22, 23, 24 and 25. Enable
3251 alternatives 22, 23, 24 and 25 only for !TARGET_HARD_DF_REG target.
3252 (*movsf_internal): Add alternatives 16 and 17. Enable
3253 alternatives 16 and 17 only for !TARGET_HARD_SF_REG target.
3254
3255 2015-07-17 Uros Bizjak <ubizjak@gmail.com>
3256
3257 PR rtl-optimization/66891
3258 * calls.c (expand_call): Wrap precompute_register_parameters with
3259 NO_DEFER_POP/OK_DEFER_POP to prevent deferred pops.
3260
3261 2015-07-16 Nathan Sidwell <nathan@codesourcery.com>
3262
3263 * config/nvptx/mkoffload.c (process): Constify mapping variables.
3264 Define target data struct and initialize it.
3265
3266 2015-07-16 Vladimir Makarov <vmakarov@redhat.com>
3267
3268 PR rtl-optimization/66626
3269 * ira.h (emit-rtl.h): Include.
3270 (non_spilled_static_chain_regno_p): New.
3271 * ira-color.c (setup_profitable_hard_regs): Clear profitable regs
3272 unless it is non spilled static chain pseudo.
3273 (assign_hard_rego): Spill memory profitable allocno unless it is
3274 non spilled static chain pseudo.
3275 (allocno_spill_priority_compare): Put non spilled static chain
3276 pseudo at the end of sorted array.
3277 (improve_allocation): Do nothing if we have static chain and
3278 non-local goto.
3279 (allocno__priority_compare_func): Put non spilled static chain
3280 pseudo at the beginning of sorted array.
3281 (move_spill_restore): Ignore non spilled static chain pseudo.
3282 * ira-costs.c (find_costs_and_classes): Don't assign class NO_REGS
3283 to non spilled static chain pseudo.
3284 * lra-assigns.c (pseudo_compare_func): Put non spilled static chain
3285 pseudo at the beginning of sorted array.
3286 (spill_for): Spill non spilled static chain pseudo last.
3287 * lra-constraints.c (lra_constraints): Remove static chain pseudo
3288 check for equivalence.
3289
3290 2015-07-16 Martin Liska <mliska@suse.cz>
3291
3292 PR ipa/66896.
3293 * ipa-prop.c (update_jump_functions_after_inlining): Create properly
3294 dst_ctx if it does not exist.
3295
3296 2015-07-16 Martin Liska <mliska@suse.cz>
3297
3298 * hash-set.h (remove): New function.
3299 (iterator): New iteration class for hash_set.
3300
3301 2015-07-16 Richard Sandiford <richard.sandiford@arm.com>
3302
3303 * genattrtab.c (make_canonical): Add a file_location parameter.
3304 Use fatal_at rather than fatal.
3305 (get_attr_value): Likewise. Update call to make_canonical.
3306 (fill_attr, make_length_attrs, optimize_attrs, gen_attr)
3307 (make_internal_attr): Update calls accordingly.
3308
3309 2015-07-16 Richard Sandiford <richard.sandiford@arm.com>
3310
3311 * read-md.h (message_with_line, error_with_line): Delete.
3312 * read-md.c (message_with_line, error_with_line): Delete.
3313 * gensupport.h: Include read-md.h.
3314 (md_rtx_info): New structure.
3315 (read_md_rtx): Use it. Return a bool success value.
3316 * gensupport.c (read_md_rtx): Likewise.
3317 * genattr-common.c (gen_attr): Take an md_rtx_info rather than an rtx.
3318 (main): Update after interface changes.
3319 * genattr.c (gen_attr): Take an md_rtx_info rather than an rtx.
3320 (main): Update after interface changes.
3321 * genattrtab.c (insn_code_number): Delete.
3322 (optimize_attrs): Add a max_insn_code parameter and use it instead
3323 of insn_code_number.
3324 (gen_attr): Take an md_rtx_info rather than an rtx and lineno.
3325 Use *_at rather than *_with_line functions.
3326 (gen_insn): Likewise.
3327 (gen_delay): Likewise.
3328 (gen_insn_reserv): Likewise.
3329 (gen_bypass): Take an md_rtx_info rather than an rtx.
3330 (main): Update after interface changes. Use a local max_insn_code
3331 variable instead of insn_code_number.
3332 * genautomata.c (gen_cpu_unit): Take an md_rtx_info rather than
3333 an rtx. Use fatal_at rather than fatal.
3334 (gen_query_cpu_unit, gen_bypass, gen_excl_set)
3335 (gen_presence_absence_set, gen_presence_set, gen_final_presence_set)
3336 (gen_absence_set, gen_final_absence_set, gen_automaton)
3337 (gen_automata_option, gen_reserv, gen_insn_reserv): Likewise.
3338 (main): Update after interface changes.
3339 * gencodes.c (gen_insn): Take an md_rtx_info rather than an rtx
3340 and code number.
3341 (main): Update after interface changes.
3342 * genconditions.c (main): Use new read_md_rtx interface.
3343 * genconfig.c (gen_insn): Take an md_rtx_info rather than an rtx.
3344 (gen_expand, gen_split, gen_peephole, gen_peephole2): Likewise.
3345 (main): Update after interface changes.
3346 * genemit.c (insn_code_number, insn_index_number): Delete.
3347 (gen_insn): Take an md_rtx_info rather than an rtx and lineno.
3348 Use fatal_at rather than fatal.
3349 (gen_expand): Take an md_rtx_info rather than an rtx. Use fatal_at
3350 rather than fatal.
3351 (gen_split): Likewise.
3352 (main): Update after interface changes.
3353 * genextract.c (line_no): Delete.
3354 (gen_insn): Take an md_rtx_info rather than an rtx and lineno.
3355 Update call to walk_rtx.
3356 (VEC_safe_set_locstr): Add an md_rtx_info argument. Use message_at
3357 rather than message_with_line.
3358 (walk_rtx): Add an md_rtx_info argument. Update call to
3359 VEC_safe_set_locstr.
3360 (main): Update after interface changes.
3361 * genflags.c (gen_insn): Take an md_rtx_info rather than an rtx
3362 and lineno. Use error_at rather than separate message_with_line
3363 calls and have_error assignments.
3364 (main): Update after interface changes.
3365 * genmddump.c (main): Use new read_md_rtx interface.
3366 * genopinit.c (insn): Take an md_rtx_info rather than an rtx.
3367 (main): Update after interface changes.
3368 * genoutput.c (next_code_number): Delete.
3369 (gen_insn): Take an md_rtx_info rather than an rtx and lineno.
3370 (gen_peephole, gen_expand, gen_split): Likewise.
3371 (note_constraint): Likewise. Use *_at rather than *_with_line
3372 functions.
3373 (main): Update after interface changes.
3374 * genpeep.c (gen_peephole): Take an md_rtx_info rather than an
3375 rtx and lineno.
3376 (main): Update after interface changes.
3377 * genpreds.c (process_define_predicate): Take an md_rtx_info rather
3378 than an rtx and lineno.
3379 (process_define_constraint): Likewise.
3380 (process_define_register_constraint): Likewise.
3381 (main): Update after interface changes.
3382 * genrecog.c (next_insn_code, pattern_lineno): Delete.
3383 (validate_pattern): Replace top-level rtx with an md_rtx_info.
3384 Use *_at rather than *_with_line functions.
3385 (match_pattern_2): Likewise.
3386 (match_pattern_1, match_pattern): Add an md_rtx_info parameter.
3387 (get_peephole2_pattern): Take an md_rtx_info rather than an rtvec.
3388 Use *_at rather than *_with_line functions.
3389 * gentarget-def.c (add_insn): New function.
3390 (main): Use it. Use new read_md_rtx interface.
3391
3392 2015-07-16 Richard Sandiford <richard.sandiford@arm.com>
3393
3394 * gensupport.h (compute_test_codes): Take a file_location rather
3395 than a line number.
3396 * gensupport.c (compute_test_codes): Likewise. Use *_at functions
3397 rather than *_with_line functions.
3398 (process_define_predicate): Update call to compute_test_codes.
3399 * genpreds.c (validate_exp): Take a file_location rather than a
3400 line number. Use *_at functions rather than *_with_line functions.
3401 (process_define_predicate): Update call to validate_exp.
3402 (constraint_data): Replace lineno field with a file_location.
3403 (add_constraint): Take a file_location rather than a line number.
3404 Use *_at functions rather than *_with_line functions. Fix error
3405 message for address constraints. Update after changes to
3406 validate_exp, constraint_data and compute_test_codes.
3407 (process_define_constraint): Update accordingly.
3408 (process_define_register_constraint): Likewise.
3409
3410 2015-07-16 Richard Sandiford <richard.sandiford@arm.com>
3411
3412 * genoutput.c (data): Use a file_location to record the source
3413 position.
3414 (nothing): Delete.
3415 (idata, idata_end): Remove initialization.
3416 (constraint_data): Replace lineno with a file_location.
3417 (output_insn_data): Update after changes to data.
3418 (gen_insn, gen_peephole, gen_expand, gen_split): Likewise.
3419 (scan_operands): Likewise, using *_at rather than *_with_line
3420 functions.
3421 (process_template): Likewise.
3422 (validate_insn_alternatives): Likewise.
3423 (validate_insn_operands): Likewise.
3424 (validate_optab_operands): Likewise.
3425 (init_insn_for_nothing): Initialize idata and idata_end.
3426 (note_constraint): Update after changes to constraint_data,
3427 using at rather than with_line functions.
3428 (mdep_constraint_len): Take a file_location rather than a
3429 line number. Use at rather than with_line functions.
3430
3431 2015-07-16 Richard Sandiford <richard.sandiford@arm.com>
3432
3433 * read-md.h (fatal_at): Declare.
3434 * read-md.c (fatal_at): New function.
3435 * genattrtab.c (insn_def, attr_desc, delay_desc): Use a file_location
3436 to record the source position.
3437 (check_attr_test): Take a file_location instead of a line number.
3438 Use fatal_at instead of fatal.
3439 (check_attr_value): Update after above changes, using "at"
3440 rather than "with_line" reporting functions.
3441 (convert_set_attr_alternative): Likewise.
3442 (gen_attr): Likewise.
3443 (check_defs): Likewise. Don't assign to read_md_filename.
3444 (gen_insn): Update initialization after above changes.
3445 (gen_delay): Likewise.
3446 (write_insn_cases): Print the filename for a define_peephole.
3447 (gen_insn_reserv): Take a line number as argument and update
3448 the call to check_attr_test.
3449 (main): Pass a line number to gen_insn_reserv.
3450
3451 2015-07-16 Richard Sandiford <richard.sandiford@arm.com>
3452
3453 * read-md.h (file_location): New structure.
3454 (directive_handler_t): Take a file_location rather than a line number.
3455 (message_at, error_at): Declare.
3456 (read_skip_construct): Delete.
3457 * read-md.c (message_with_line_1): Replace with...
3458 (message_at_1): ...this new function.
3459 (message_at, error_at): New functions.
3460 (message_with_line, error_with_line): Update to use message_at_1.
3461 (handle_enum): Take a file_location rather than a line number
3462 and use error_at for error reporting.
3463 (handle_include): Likewise.
3464 (read_skip_construct): Likewise. Make static.
3465 (handle_file): Update after above changes. Pass a file_location
3466 rather than a line number to handle_directive.
3467 * gensupport.c (queue_elem): Replace separate filename and lineno
3468 with a file_location.
3469 (queue_pattern): Replace filename and lineno arguments with a
3470 file_location. Update after change to queue_elem.
3471 (process_define_predicate): Replace lineno argument with a
3472 file_location and use error_at for error reporting. Update
3473 after above changes.
3474 (process_rtx): Likewise.
3475 (subst_pattern_match): Likewise.
3476 (get_alternatives_number): Likewise.
3477 (alter_predicate_for_insn): Likewise.
3478 (rtx_handle_directive): Likewise.
3479 (is_predicable): Update after above changes, using error_at rather
3480 than error_with_line.
3481 (has_subst_attribute): Likewise.
3482 (identify_predicable_attribute): Likewise.
3483 (alter_attrs_for_subst_insn): Likewise.
3484 (process_one_cond_exec): Likewise.
3485 (process_substs_on_one_elem): Likewise.
3486 (process_define_subst): Likewise.
3487 (check_define_attr_duplicates): Likewise.
3488 (read_md_rtx): Update after change to queue_elem.
3489
3490 2015-07-16 Richard Sandiford <richard.sandiford@arm.com>
3491
3492 * genoutput.c (next_index_number): Delete.
3493 (data): Remove index_number.
3494 (gen_insn, gen_peephole, gen_expand, gen_split): Update accordingly.
3495 (main): Remove manipulation of next_index_number.
3496
3497 2015-07-16 Richard Sandiford <richard.sandiford@arm.com>
3498
3499 * genattrtab.c (check_attr_value): Remove handling of null attrs.
3500 (make_canonical): Likewise.
3501
3502 2015-07-16 Eric Botcazou <ebotcazou@adacore.com>
3503
3504 * config/sparc/sparc.md (save_stack_nonlocal): Use adjust_address
3505 instead of adjust_address_nv.
3506 (restore_stack_nonlocal): Likewise.
3507 (nonlocal_goto): Likewise.
3508
3509 2015-07-16 Tom de Vries <tom@codesourcery.com>
3510
3511 * tree-parloops.c (create_parallel_loop): Handle case that exit phi does
3512 not have a corresponding loop header phi.
3513
3514 2015-07-16 Tom de Vries <tom@codesourcery.com>
3515
3516 * tree-parloops.c (create_loads_for_reductions): Handle case that
3517 reduction is unused.
3518
3519 2015-07-16 Richard Biener <rguenther@suse.de>
3520
3521 PR tree-optimization/66894
3522 * tree-vrp.c (register_edge_assert_for_2): Fix bad assumption
3523 about deriving NE_EXPR from truncated values.
3524
3525 2015-07-16 Martin Liska <mliska@suse.cz>
3526
3527 * alloc-pool.h
3528 (object_allocator): Add new class.
3529 (pool_allocator::initialize): Use the underlying class.
3530 (pool_allocator::allocate): Likewise.
3531 (pool_allocator::remove): Likewise.
3532 (operator new): A new generic allocator.
3533 * asan.c (struct asan_mem_ref): Remove unused members.
3534 (asan_mem_ref_new): Replace new operator with
3535 object_allocator::allocate.
3536 (free_mem_ref_resources): Change deallocation.
3537 * cfg.c (initialize_original_copy_tables): Replace pool_allocator
3538 with object_allocator.
3539 * config/sh/sh.c (add_constant): Replace new operator with
3540 object_allocator::allocate.
3541 (sh_reorg): Change call to a release method.
3542 * cselib.c (struct elt_list): Remove unused members.
3543 (new_elt_list): Replace new operator with
3544 object_allocator::allocate.
3545 (new_elt_loc_list): Likewise.
3546 (new_cselib_val): Likewise.
3547 (unchain_one_elt_list): Change delete operator with remove method.
3548 (unchain_one_elt_loc_list): Likewise.
3549 (unchain_one_value): Likewise.
3550 (cselib_finish): Release newly added static allocators.
3551 * cselib.h (struct cselib_val): Remove unused members.
3552 (struct elt_loc_list): Likewise.
3553 * df-problems.c (df_chain_alloc): Replace pool_allocator with
3554 object_allocator.
3555 * df-scan.c (struct df_scan_problem_data): Likewise.
3556 (df_scan_alloc): Likewise.
3557 * df.h (struct dataflow): Likewise.
3558 * dse.c (struct read_info_type): Likewise.
3559 (struct insn_info_type): Likewise.
3560 (struct dse_bb_info_type): Likewise.
3561 (struct group_info): Likewise.
3562 (struct deferred_change): Likewise.
3563 (get_group_info): Likewise.
3564 (delete_dead_store_insn): Likewise.
3565 (free_read_records): Likewise.
3566 (replace_read): Likewise.
3567 (check_mem_read_rtx): Likewise.
3568 (scan_insn): Likewise.
3569 (dse_step1): Likewise.
3570 (dse_step7): Likewise.
3571 * et-forest.c (struct et_occ): Remove unused members.
3572 (et_new_occ): Use allocate instead of new operator.
3573 (et_new_tree): Likewise.
3574 (et_free_tree): Call release method explicitly.
3575 (et_free_tree_force): Likewise.
3576 (et_free_pools): Likewise.
3577 (et_split): Use remove instead of delete operator.
3578 * et-forest.h (struct et_node): Remove unused members.
3579 * ipa-cp.c: Change pool_allocator to object_allocator.
3580 * ipa-inline-analysis.c: Likewise.
3581 * ipa-profile.c: Likewise.
3582 * ipa-prop.c: Likewise.
3583 * ipa-prop.h: Likewise.
3584 * ira-build.c (initiate_cost_vectors): Cast return value.
3585 (ira_allocate_cost_vector): Likewise.
3586 * ira-color.c (struct update_cost_record): Remove unused members.
3587 * lra-int.h (struct lra_live_range): Likewise.
3588 (struct lra_copy): Likewise.
3589 (struct lra_insn_reg): Likewise.
3590 * lra-lives.c (lra_live_ranges_finish): Release new static allocator.
3591 * lra.c (new_insn_reg): Replace new operator with allocate method.
3592 (free_insn_regs): Same for operator delete.
3593 (finish_insn_regs): Release new static allocator.
3594 (finish_insn_recog_data): Likewise.
3595 (lra_free_copies): Replace delete operator with remove method.
3596 (lra_create_copy): Replace operator new with allocate method.
3597 (invalidate_insn_data_regno_info): Same for remove method.
3598 * regcprop.c (struct queued_debug_insn_change): Remove unused members.
3599 (free_debug_insn_changes): Replace delete operator with remove method.
3600 (replace_oldest_value_reg): Replace operator new with allocate method.
3601 (pass_cprop_hardreg::execute): Release new static variable.
3602 * sched-deps.c (sched_deps_init): Change pool_allocator to
3603 object_allocator.
3604 * sel-sched-ir.c: Likewise.
3605 * sel-sched-ir.h: Likewise.
3606 * stmt.c (expand_case): Likewise.
3607 (expand_sjlj_dispatch_table): Likewise.
3608 * tree-sra.c (struct access): Remove unused members.
3609 (struct assign_link): Likewise.
3610 (sra_deinitialize): Release newly added static pools.
3611 (create_access_1):Replace operator new with allocate method.
3612 (build_accesses_from_assign): Likewise.
3613 (create_artificial_child_access): Likewise.
3614 * tree-ssa-math-opts.c (pass_cse_reciprocals::execute): Change
3615 pool_allocator to object_allocator.
3616 * tree-ssa-pre.c: Likewise.
3617 * tree-ssa-reassoc.c: Likewise.
3618 * tree-ssa-sccvn.c (allocate_vn_table): Likewise.
3619 * tree-ssa-strlen.c: Likewise.
3620 * tree-ssa-structalias.c: Likewise.
3621 * var-tracking.c (onepart_pool_allocate): New function.
3622 (unshare_variable): Use the newly added function.
3623 (variable_merge_over_cur): Likewise.
3624 (variable_from_dropped): Likewise.
3625 (variable_was_changed): Likewise.
3626 (set_slot_part): Likewise.
3627 (emit_notes_for_differences_1): Likewise.
3628 (vt_finalize): Release newly added static pools.
3629
3630 2015-07-16 Martin Jambor <mjambor@suse.cz>
3631
3632 * ipa-prop.h (param_aa_status): Rename to ipa_param_aa_status. Adjust
3633 all uses. Fix two typos in its general comment.
3634 (func_body_info): Rename to ipa_func_body_info. Adjust all uses.
3635
3636 2015-07-16 Ilya Enkovich <enkovich.gnu@gmail.com>
3637
3638 * config/i386/linux-common.h (LINK_MPX): New.
3639 (MPX_SPEC): Use LINK_MPX instead of %(link_mpx).
3640 * configure.ac: Add HAVE_LD_BNDPLT_SUPPORT macro
3641 indicating '-z bndplt' support by linker.
3642 * configure: Regenerate.
3643 * config.in: Regenerate.
3644
3645 2015-07-16 Richard Biener <rguenther@suse.de>
3646
3647 * fold-const.c (fold_widened_comparison): Remove.
3648 (fold_sign_changed_comparison): Likewise.
3649 (fold_comparison): Move widened and sign-changed comparison
3650 simplification ...
3651 * match.pd: ... to patterns here.
3652 * generic-match-head.c: Include target.h.
3653 * gimple-match-head.c: Likewise.
3654
3655 2015-07-16 Richard Biener <rguenther@suse.de>
3656
3657 * tree-ssa-dom.c (dom_valueize): New function.
3658 (record_temporary_equivalences): Also record equivalences
3659 for dominating stmts that have uses of equivalences we are
3660 about to record.
3661
3662 2015-07-16 Bin Cheng <bin.cheng@arm.com>
3663
3664 * tree-ssa-loop-ivopts.c (add_candidate): Remove call to
3665 add_autoinc_candidates.
3666 (add_iv_candidate_for_biv): Rename to add_iv_candidate_for_biv.
3667 (add_iv_candidate_for_biv): Rename from add_iv_candidate_for_biv.
3668 (add_old_ivs_candidates): Rename to add_iv_candidate_for_bivs.
3669 (add_iv_candidate_for_bivs): Rename from add_old_ivs_candidates.
3670 Call new function.
3671 (add_iv_value_candidates): Rename to add_iv_candidate_for_use.
3672 (add_iv_candidate_for_use): Rename from add_iv_value_candidates.
3673 Remove parameter struct iv*. Call add_autoinc_candidates here.
3674 (add_derived_ivs_candidates): Rename to add_iv_candidate_for_uses.
3675 (add_iv_candidate_for_uses): Rename from add_derived_ivs_candidates.
3676 Call new function.
3677 (find_iv_candidates): Call new functions.
3678
3679 2015-07-16 Sandra Loosemore <sandra@codesourcery.com>
3680
3681 * config/nios2/nios2.c (nios2_emit_stack_limit_check): Fix
3682 uninitialized-variable warning.
3683
3684 2015-07-16 Kaz Kojima <kkojima@gcc.gnu.org>
3685
3686 PR target/65249
3687 * config/sh/sh.md (movdi): Split simple reg move to two movsi
3688 when the destination is R0.
3689
3690 2015-07-16 Uros Bizjak <ubizjak@gmail.com>
3691
3692 PR target/66866
3693 * config/i386/i386-protos.h (ix86_expand_pextr): New prototype.
3694 * config/i386/i386.c (ix86_expand_pextr): New function.
3695 (ix86_expand_pinsr): Handle V1TI and TI modes. Call ix86_expand_pextr
3696 for non-lowpart subregs.
3697 * config/i386/i386.md (extzv<mode>): Expand with ix86_expand_pextr.
3698 (insv<mode>): Use SWI248 mode iterator.
3699 (insv<mode>_1): Ditto.
3700
3701 2015-07-15 Aditya Kumar <aditya.k7@samsung.com>
3702 Sebastian Pop <s.pop@samsung.com>
3703
3704 * graphite-sese-to-poly.c (rewrite_cross_bb_scalar_deps): Point
3705 iterator to use_stmt.
3706
3707 2015-07-15 Aditya Kumar <aditya.k7@samsung.com>
3708 Sebastian Pop <s.pop@samsung.com>
3709
3710 * graphite-scop-detection.c (build_scops_1): Discard scops for
3711 which entry==exit.
3712
3713 2015-07-15 Aditya Kumar <aditya.k7@samsung.com>
3714 Sebastian Pop <s.pop@samsung.com>
3715
3716 * graphite-scop-detection.c (stmt_simple_for_scop_p): Bail out in
3717 case of a return statement in scop.
3718
3719 2015-07-15 Aditya Kumar <aditya.k7@samsung.com>
3720 Sebastian Pop <s.pop@samsung.com>
3721
3722 * graphite-sese-to-poly.c (parameter_index_in_region): Only handle
3723 INTEGER_TYPE parameters.
3724 (scan_tree_for_params): Handle REAL_CST, COMPLEX_CST, and
3725 VECTOR_CST in scan_tree_for_params.
3726 (add_conditions_to_domain): Only constrain on INTEGER_TYPE.
3727
3728 2015-07-15 Andrew MacLeod <amacleod@redhat.com>
3729
3730 * gimple-pretty-print.h: Don't include pretty-print.h.
3731 * tree-streamer.h: Don't include lto-streamer.h.
3732 * gimple-streamer.h: Include tree-streamer.h rather than lto-streamer.h.
3733 * gimple-streamer-in.c: Remove redundant includes.
3734 * gimple-streamer-out.c: Likewise.
3735 * ipa-devirt.c: Likewise.
3736 * ipa-icf.c: Likewise.
3737 * ipa-inline-analysis.c: Likewise.
3738 * ipa-polymorphic-call.c: Likewise.
3739 * ipa-profile.c: Likewise.
3740 * ipa-prop.c: Likewise.
3741 * ipa-pure-const.c: Likewise.
3742 * lto-cgraph.c: Likewise.
3743 * lto-streamer-in.c: Likewise.
3744 * lto-streamer-out.c: Likewise.
3745 * lto-streamer.c: Likewise.
3746 * tree-streamer-in.c: Likewise.
3747 * tree-streamer-out.c: Likewise.
3748 * tree-streamer.c: Likewise.
3749
3750 2015-07-15 Andrew MacLeod <amacleod@redhat.com>
3751
3752 * opth-gen.awk: Check for UNKNOWN_LOCATION rather than GCC_TM_H, don't
3753 include input.h.
3754 * opts.c: Remove multiline #include comment.
3755
3756 2015-07-15 Nathan Sidwell <nathan@codesourcery.com>
3757
3758 * config/nvptx/mkoffload.c (process): Add C++ protection to
3759 emitted code.
3760
3761 2015-07-14 Michael Meissner <meissner@linux.vnet.ibm.com>
3762
3763 PR target/66854
3764 * config/rs6000/rs6000.c (rs6000_pass_by_reference): Move test for
3765 null before IEEE 128-bit floating point support patch.
3766
3767 2015-07-15 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
3768
3769 * simplify-rtx.c (simplify_ternary_operation): Add simplification
3770 for (!c) != {0,...,0} ? a : b for vector modes.
3771
3772 2015-07-15 Paolo Bonzini <bonzini@gnu.org>
3773 Martin Jambor <mjambor@suse.cz>
3774
3775 * ipa-inline-analysis.c (unmodified_parm_or_parm_agg_item): Accept
3776 struct func_body_info* instead of struct ipa_node_params*, expecting
3777 fbi->info to be filled in. Replace throughout. Adjust call to
3778 ipa_load_from_parm_agg.
3779 (set_cond_stmt_execution_predicate): Accept struct func_body_info*
3780 instead of struct ipa_node_params*. Adjust calls to other functions
3781 so that they pass either fbi or fbi->info.
3782 (set_switch_stmt_execution_predicate): Likewise.
3783 (will_be_nonconstant_predicate): Likewise.
3784 (compute_bb_predicates): Likewise.
3785 (estimate_function_body_sizes): Move asserts earlier. Fill in
3786 struct func_body_info, replace parms_info with fbi.info. Adjust
3787 calls to functions that now accept struct func_body_info.
3788 * ipa-prop.c (param_aa_status, struct ipa_bb_info): Move to ipa-prop.h.
3789 (struct func_body_info): Likewise.
3790 (ipa_load_from_parm_agg_1): Rename to ipa_load_from_parm_agg,
3791 remove static. Adjust callers.
3792 (ipa_load_from_parm_agg): Remove.
3793 * ipa-prop.h (param_aa_status, ipa_bb_info): Move from ipa-prop.c.
3794 (func_body_info): Likewise.
3795 (ipa_load_from_parm_agg): Adjust prototype.
3796
3797 2015-07-12 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
3798
3799 * gensupport.c (rtx_handle_directive): Adjust.
3800 * read-rtl.c (apply_iterators): Take vector to add rtxs to
3801 instead of expr list rtx.
3802 (add_define_attr_for_define_subst): Likewise.
3803 (add_define_subst_attr): Likewise.
3804 (read_subst_mapping): Likewise.
3805 (read_rtx): Likewise.
3806 * rtl.h (read_rtx): Adjust.
3807
3808 2015-07-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3809
3810 * config/aarch64/aarch64.md (*csinc2<mode>_insn): Use cinc mnemonic.
3811
3812 2015-07-15 Uros Bizjak <ubizjak@gmail.com>
3813
3814 PR target/58066
3815 * config/i386/i386.md (*tls_global_dynamic_64_<mode>): Depend on SP_REG.
3816 (*tls_local_dynamic_base_64_<mode>): Ditto.
3817 (*tls_local_dynamic_base_64_largepic): Ditto.
3818 (tls_global_dynamic_64_<mode>): Update expander pattern.
3819 (tls_local_dynamic_base_64_<mode>): Ditto.
3820
3821 2015-07-15 Richard Biener <rguenther@suse.de>
3822
3823 * fold-const.c (fold_binary_loc): Move bool_var != 0 -> bool_var
3824 and bool_var == 1 -> bool_var simplifications ...
3825 * match.pd: ... to patterns here. Factor out negate_expr_p
3826 cases from the A - B -> A + (-B) patterns as negate_expr_p
3827 predicate and add a -(A + B) -> (-B) - A pattern.
3828
3829 2015-07-15 Robert Suchanek <robert.suchanek@imgtec.com>
3830
3831 * config/mips/mips.c (mips_emit_save_slot_move): Fix typo.
3832
3833 2015-07-15 Matthew Fortune <matthew.fortune@imgtec.com>
3834 Robert Suchanek <robert.suchanek@imgtec.com>
3835
3836 * config/mips/mips.c (mips_int_mask): New enum.
3837 (mips_shadow_set): Likewise.
3838 (int_mask): New variable.
3839 (use_shadow_register_set_p): Change type to enum mips_shadow_set.
3840 (machine_function): Add int_mask and use_shadow_register_set.
3841 (mips_attribute_table): Add attribute handlers for interrupt and
3842 use_shadow_register_set.
3843 (mips_interrupt_mask): New static function.
3844 (mips_handle_interrupt_attr): Likewise.
3845 (mips_handle_use_shadow_register_set_attr): Likewise.
3846 (mips_use_shadow_register_set): Change return type to enum
3847 mips_shadow_set. Add argument handling for use_shadow_register_set
3848 attribute.
3849 (mips_interrupt_extra_called_saved_reg_p): Update the conditional to
3850 compare with mips_shadow_set enum.
3851 (mips_compute_frame_info): Add interrupt mask and
3852 use_shadow_register_set to per-function information structure.
3853 Add a stack slot for EPC unconditionally.
3854 (mips_expand_prologue): Compare use_shadow_register_set value
3855 with mips_shadow_set enum. Save EPC always in K1, clobber only K1 for
3856 masked interrupt register but in EIC mode use K0 and save Cause in K0.
3857 EPC saved and restored unconditionally. Use PMODE_INSN macro when
3858 copying the stack pointer from the shadow register set.
3859 * config/mips/mips.h (SR_IM0): New define.
3860 * config/mips/mips.md (mips_rdpgpr): Rename to...
3861 (mips_rdpgpr_<mode>): ...this. Use the Pmode iterator.
3862 * doc/extend.texi (Declaring Attributes of Functions): Document
3863 optional arguments for interrupt and use_shadow_register_set
3864 attributes.
3865
3866 2015-07-15 Robert Suchanek <robert.suchanek@imgtec.com>
3867
3868 * config/mips/mips.c (mips_compute_frame_info): Allow -mhard-float in
3869 interrupt attribute.
3870 (mips_expand_prologue): Disable the floating point unit in an ISR.
3871 * config/mips/mips.h (SR_COP1): New define.
3872
3873 2015-07-15 Richard Biener <rguenther@suse.de>
3874
3875 * genmatch.c (parser::peek, parser::peek_ident): Add argument
3876 to tell how many tokens to peek ahead (default 1).
3877 (parser::eat_token, parser::eat_ident): Return token consumed.
3878 (parser::parse_result): Parse new switch statement.
3879 * match.pd: Use case statements where appropriate.
3880
3881 2015-07-15 Uros Bizjak <ubizjak@gmail.com>
3882
3883 PR rtl-optimization/58066
3884 * calls.c (expand_call): Precompute register parameters before stack
3885 alignment is performed.
3886
3887 2015-07-15 Uros Bizjak <ubizjak@gmail.com>
3888
3889 PR rtl-optimization/66838
3890 * postreload.c (reload_cse_move2add): Also process
3891 CALL_INSN_FUNCTION_USAGE when resetting information of
3892 call-clobbered registers.
3893
3894 2015-07-14 Sandra Loosemore <sandra@codesourcery.com>
3895 Cesar Philippidis <cesar@codesourcery.com>
3896 Chung-Lin Tang <cltang@codesourcery.com>
3897
3898 * config/nios2/constraints.md (U, v): New constraints.
3899 * config/nios2/predicates.md (rdprs_dcache_operand): New.
3900 (ldstex_memory_operand): New.
3901 * config/nios2/sync.md: New file.
3902 * config/nios2/nios2.md (unspecv): Add new builtin function
3903 UNSPECV codes.
3904 (rdprs, flushd, flushda, wrpie, eni): New patterns.
3905 (top-level): Include sync.md.
3906 * config/nios2/nios2.c (N2_FTYPES): Add function types for
3907 new builtins.
3908 (N2_BUILTINS): Add arch field setting, add new builtins.
3909 (enum nios2_builtin_code,nios2_builtins): Update N2_BUILTIN_DEF
3910 for arch field.
3911 (nios2_expand_ldst_builtin): Rename from nios2_expand_ldstio_builtin.
3912 Also handle ldex/stex/ldsex/stsex builtins.
3913 (nios2_expand_rdprs_builtin): New function.
3914 (nios2_expand_cache_builtin): New function.
3915 (nios2_expand_wrpie_builtin): New function.
3916 (nios2_expand_eni_builtin): New function.
3917 (nios2_expand_builtin): Add arch field handling and new builtin
3918 cases.
3919 * doc/extend.texi (Altera Nios II Built-in Functions): Document
3920 new builtins.
3921 * doc/md.texi (Machine Constraints): Document U and v constraints.
3922
3923 2015-07-14 Sandra Loosemore <sandra@codesourcery.com>
3924 Cesar Philippidis <cesar@codesourcery.com>
3925 Chung-Lin Tang <cltang@codesourcery.com>
3926
3927 * config/nios2/nios2-protos.h (nios2_expand_return): Declare.
3928 * config/nios2/nios2.c (struct GTY (()) machine_function): Add
3929 callee_save_reg_size and uses_anonymous_args fields.
3930 (nios2_compute_frame_layout): Update for CDX push.n/pop.n usage.
3931 (nios2_create_cfa_notes): New function.
3932 (nios2_adjust_stack): New function for adjusting stack.
3933 (nios2_expand_prologue): Update for CDX push.n/pop.n usage.
3934 Use nios2_adjust_stack.
3935 (nios2_expand_epilogue): Likewise.
3936 (nios2_expand_return): New function.
3937 (nios2_can_use_return_insn): Update for CDX pop.n usage.
3938 (nios2_setup_incoming_varargs): Set uses_anonymous_args flag.
3939 If TARGET_HAS_CDX, defer pushing regs to nios2_expand_prologue.
3940 * config/nios2/nios2.md (return): Use nios2_expand_return.
3941
3942 2015-07-14 Sandra Loosemore <sandra@codesourcery.com>
3943 Cesar Philippidis <cesar@codesourcery.com>
3944 Chung-Lin Tang <cltang@codesourcery.com>
3945
3946 * config/nios2/predicates.md (pop_operation): New.
3947 (ldwm_operation, stwm_operation): New.
3948 (nios2_hard_register_operand): New.
3949 * config/nios2/nios2-protos.h (pop_operation_p): Declare.
3950 (ldstwm_operation_p): Declare.
3951 (gen_ldstwm_peep): Declare.
3952 * config/nios2/nios2.c: (nios2_ldst_parallel): Declare.
3953 (base_reg_adjustment_p): New.
3954 (pop_operation_p): New.
3955 (CDX_LDSTWM_VALID_REGS_0, CDX_LDSTWM_VALID_REGS_1): Define.
3956 (nios2_ldstwm_regset_p): New.
3957 (ldstwm_operation_p): New.
3958 (gen_ldst): New.
3959 (nios2_ldst_parallel): New.
3960 (struct ldswm_operand): Declare.
3961 (compare_ldstwm_operands): New.
3962 (can_use_cdx_ldstw): New.
3963 (gen_ldstwm_peep): New.
3964 * config/nios2/nios2-ldstwm.sml: New.
3965 * config/nios2/nios2.md: Include ldstwm.md.
3966 * config/nios2/ldstwm.md: Generated.
3967
3968 2015-07-14 Sandra Loosemore <sandra@codesourcery.com>
3969 Cesar Philippidis <cesar@codesourcery.com>
3970 Chung-Lin Tang <cltang@codesourcery.com>
3971
3972 * config/nios2/nios2.h (LABEL_ALIGN): Define.
3973 (REG_ALLOC_ORDER): Define.
3974 (ADJUST_REG_ALLOC_ORDER): Define.
3975 (HONOR_REG_ALLOC_ORDER): Define.
3976 (CDX_REG_P): Define.
3977 (ANDCLEAR_INT): Define.
3978 * config/nios2/nios2-protos.h (nios2_add_insn_asm): Declare.
3979 (nios2_label_align): Declare.
3980 (nios2_cdx_narrow_form_p): Declare.
3981 (nios2_adjust_reg_alloc_order): Declare.
3982 * config/nios2/nios2.c (nios2_rtx_costs): Adjust for BMX zero-extract
3983 operation.
3984 (nios2_large_unspec_reloc_p): New function, split from...
3985 (nios2_legitimate_pic_operand_p): ...here.
3986 (nios2_emit_move_sequence): Add *high/*lo_sum constant expand code.
3987 (nios2_print_operand_punct_valid_p): New.
3988 (nios2_print_operand): Add %., %!, %x, %y, %A. Remove %U.
3989 (split_mem_address): New.
3990 (split_alu_insn): New.
3991 (cdxreg): New.
3992 (cdx_add_immed, cdx_and_immed, cdx_mov_immed, cdx_shift_immed): New.
3993 (enum nios2_add_insn_kind): New.
3994 (nios2_add_insn_names, nios2_add_insn_narrow): New.
3995 (nios2_add_insn_classify): New.
3996 (nios2_add_insn_asm): New.
3997 (nios2_cdx_narrow_form_p): New.
3998 (label_align, min_labelno, max_labelno): New.
3999 (nios2_reorg): New.
4000 (nios2_label_align): New.
4001 (nios2_adjust_reg_alloc_order): New.
4002 (TARGET_PRINT_OPERAND_PUNCT_VALID_P): Define.
4003 (TARGET_MACHINE_DEPENDENT_REORG): Define.
4004 * config/nios2/constraints.md (P): New constraint.
4005 * config/nios2/predicates.md (const_and_operand): New.
4006 (and_operand): New.
4007 (stack_memory_operand): New.
4008 * config/nios2/nios2.md (SP_REGNO): Define stack pointer regno.
4009 (length): Update to use nios2_cdx_narrow_form_p().
4010 (type): Add new insn type values.
4011 (control, alu, st, ld, shift): Update insn reservations with
4012 new insn type values.
4013 (*high, *lo_sum): Define new insn patterns for constant generation.
4014 (movqi_internal, movhi_internal, movsi_internal): Reduce
4015 alternatives, update asm template to handle CDX variants, update
4016 type attributes.
4017 (zero_extendhisi2, zero_extendqi<mode>2): Add CDX variants to asm
4018 template, update type attributes.
4019 (extendhisi2, extendqi<mode>2): Likewise.
4020 (addsi3): Change to use function for asm string.
4021 (subsi3): Add CDX notation to asm template, update type attributes.
4022 (negsi3, one_cmplsi3): Likewise.
4023 (andsi3): New pattern, specialized from logical patterns.
4024 (<code>si3): Remove and case, combine alternatives, update asm
4025 template.
4026 (<shift_op>si3): Add CDX notation, update type attributes.
4027 (rotrsi3): Update type attribute.
4028 (*merge, extzv, insv): New insn patterns.
4029 (return): Change to define_expand.
4030 (simple_return): Add CDX notation, update type attributes.
4031 (indirect_jump): Add CDX notation.
4032 (jump): Update asm cases, update length attribute expression.
4033 (*call, *call_value, *sibcall, *sibcall_value): Add CDX variant.
4034 (nios2_cbranch): Update asm cases and length attribute expression
4035 to handle CDX variants.
4036 (nios2_cmp<code>): Update asm template.
4037 (nop): Add CDX notation, update type attributes.
4038 (trap): Add CDX notation.
4039 (ctrapsi4): Update asm cases and length attribute expression to
4040 handle CDX variant.
4041 * doc/md.texi (Machine Constraints): Document P constraint.
4042
4043 2015-07-14 Sandra Loosemore <sandra@codesourcery.com>
4044 Cesar Philippidis <cesar@codesourcery.com>
4045 Chung-Lin Tang <cltang@codesourcery.com>
4046
4047 * config/nios2/nios2.h (SMALL_INT12): New macro.
4048 * config/nios2/nios2.c (nios2_valid_addr_offset_p): New function.
4049 (nios2_valid_addr_expr_p): Use it.
4050 (nios2_symbol_ref_in_small_data_p): Disallow GP-relative addressing
4051 with implicit "io" instructions on R2.
4052 * config/nios2/constraints.md (w): New constraint.
4053 * config/nios2/predicates.md (ldstio_memory_operand): New.
4054 * config/nios2/nios2.md (ld<bhw_uns>io, ld<bh>io): Update memory
4055 operand predicate and constraint.
4056 (ld<bh>io_signed, st<bhw>io>): Likewise.
4057 * doc/md.texi (Machine Constraints): Document w constraint.
4058
4059 2015-07-14 Sandra Loosemore <sandra@codesourcery.com>
4060 Cesar Philippidis <cesar@codesourcery.com>
4061 Chung-Lin Tang <cltang@codesourcery.com>
4062
4063 * config/nios2/nios2.opt (march, mbmx, mcdx): New options.
4064 * config/nios2/nios2-opts.h (enum nios2_arch_type): New enum for
4065 Nios II architecture level.
4066 * config/nios2/nios2.h (TARGET_ARCH_R2): New define.
4067 (TARGET_CPU_CPP_BUILTINS): Add definition of __nios2_arch__ symbol.
4068 (OPTION_DEFAULT_SPECS): Define.
4069 (ASM_SPEC): Add -march= spec strings.
4070 * config/nios2/nios2.c (nios2_option_override): Check for
4071 conflicts involving new options.
4072 * config.gcc (nios2*-*-*): Support --with-arch=.
4073 * doc/invoke.texi (Option Summary, Nios II Options): Document
4074 -march=, -mbmx, and -mcdx.
4075
4076 2015-07-14 Vladimir Makarov <vmakarov@redhat.com>
4077
4078 PR rtl-optimization/66626
4079 * lra-constraints.c (lra_constraints): Prevent equivalence
4080 substitution for static chain pseudo in functions with nonlocal
4081 goto.
4082
4083 2015-07-14 Sandra Loosemore <sandra@codesourcery.com>
4084
4085 * config/nios2/nios2.c (TEMP_REG_NUM): Move define up in file.
4086 (nios2_emit_stack_limit_check): Add size parameter. Handle
4087 -fstack-limit-symbol as well as -fstack-limit-register.
4088 (nios2_expand_prologue): Emit only a single stack limit check,
4089 even if multiple stack adjustments are required.
4090 (nios2_option_override): Diagnose unsupported combination of -fpic
4091 and -stack-limit-symbol.
4092
4093 2015-07-14 H.J. Lu <hongjiu.lu@intel.com>
4094
4095 * Makefile.in (top_srcdir): New.
4096 * configure.ac: Use AM_ZLIB.
4097 * configure: Regeneated.
4098
4099 2015-07-14 Matthias Klose <doko@ubuntu.com>
4100
4101 PR target/66840
4102 * config/rs6000/t-rs6000 (TM_H): Add rs6000-cpus.def.
4103
4104 2015-07-14 Richard Biener <rguenther@suse.de>
4105
4106 PR tree-optimization/66863
4107 * tree-vrp.c (register_edge_assert_for_2): Properly restrict
4108 what we record for conversion use stmt lhs inequalities.
4109
4110 2015-07-14 Richard Biener <rguenther@suse.de>
4111
4112 * genmatch.c (dt_node::gen_kids_1): Fix case label indenting.
4113 (decision_tree::gen_gimple): Likewise.
4114
4115 2015-07-14 Tom de Vries <tom@codesourcery.com>
4116
4117 * gcc.c (greater_than_spec_func): Declare forward.
4118 (LINK_COMMAND_SPEC, GOMP_SELF_SPECS): Use gt to ignore
4119 -ftree-parallelize-loops={0,1}.
4120 (static_spec_functions): Add greater_than_spec_func function with name
4121 "gt".
4122 (greater_than_spec_func): New function.
4123
4124 2015-07-14 Richard Biener <rguenther@suse.de>
4125
4126 * tree-ssa-dom.c (record_temporary_equivalences): Merge
4127 wideing type conversion case from record_equivalences_from_incoming_edge
4128 and use record_equality to record equivalences.
4129 (record_equivalences_from_incoming_edge): Call
4130 record_temporary_equivalences.
4131
4132 2015-07-14 Richard Biener <rguenther@suse.de>
4133
4134 * genmatch.c (struct operand): Add OP_IF and OP_WITH op_types.
4135 (struct if_expr): New.
4136 (struct with_expr): Likewise.
4137 (is_a_helper): Add helpers for if_expr and with_expr.
4138 (struct simplify): Add simplify_kind enum and member. Remove
4139 ifexpr_vec member.
4140 (simplify::simplify): Adjust.
4141 (lower_commutative): Adjust.
4142 (lower_opt_convert): Likewise.
4143 (lower_cond): Likewise.
4144 (replace_id): Handle with_expr and if_expr.
4145 (lower_for): Adjust.
4146 (dt_simplify::gen_1): New recursive worker, split out from ...
4147 (dt_simplify::gen): ... here. Deal with if and with expansion
4148 recursively.
4149 (capture_info::capture_info): Take context argument
4150 (capture_info::walk_result): Only analyze specific result.
4151 (parser::parse_result): New function.
4152 (parser::parse_simplify): Adjust to parse ifs with then end
4153 else case.
4154 (parser::parse_if): Simplify.
4155 (parser::parse_pattern): Pass down simplify kind.
4156 * match.pd: Convert if structure to new syntax.
4157
4158 2015-07-13 Marek Polacek <polacek@redhat.com>
4159
4160 * rtl.c (rtx_equal_p_cb): Fix typo.
4161
4162 2015-07-13 Andrew MacLeod <amacleod@redhat.com>
4163
4164 * omega.h: Don't include config.h, don't include params.h again if
4165 omega.h has already been included.
4166 * graphite-poly.h: Include sese.h.
4167 * graphite.c: Don't include sese.h, remove needless includes and
4168 minimize includes outside #ifdef HAVE_isl block.
4169 * graphite-blocking.c: Don't include sese.h, remove needless includes,
4170 and wrap entire file in #ifdef HAVE_isl
4171 * graphite-dependences.c: Likewise.
4172 * graphite-interchange.c: Likewise.
4173 * graphite-isl-ast-to-gimple.c: Likewise.
4174 * graphite-optimize-isl.c: Likewise.
4175 * graphite-poly.c: Likewise.
4176 * graphite-scop-detection.c: Likewise.
4177 * graphite-sese-to-poly.c: Likewise.
4178
4179 2015-07-13 Tom de Vries <tom@codesourcery.com>
4180
4181 * omp-low.c (build_receiver_ref): Mark *.omp_data_i as non-trapping.
4182
4183 2015-07-13 Renlin Li <renlin.li@arm.com>
4184
4185 PR rtl/66556
4186 * simplify-rtx.c (simplify_const_relational_operation): Add
4187 side_effects_p checks.
4188
4189 2015-07-12 Aldy Hernandez <aldyh@redhat.com>
4190
4191 * bitmap.h: Fix double word typos.
4192 * builtins.c: Same.
4193 * calls.c: Same.
4194 * cfgloopmanip.c: Same.
4195 * cgraph.c: Same.
4196 * cgraph.h: Same.
4197 * cgraphclones.c: Same.
4198 * combine.c: Same.
4199 * config/aarch64/aarch64-protos.h: Same.
4200 * config/aarch64/aarch64.c: Same.
4201 * config/aarch64/aarch64.md: Same.
4202 * config/arm/arm.md: Same.
4203 * config/arm/arm1020e.md: Same.
4204 * config/arm/arm1026ejs.md: Same.
4205 * config/arm/arm926ejs.md: Same.
4206 * config/arm/fa526.md: Same.
4207 * config/arm/fa606te.md: Same.
4208 * config/arm/fa626te.md: Same.
4209 * config/arm/fa726te.md: Same.
4210 * config/arm/fmp626.md: Same.
4211 * config/darwin.c: Same.
4212 * config/epiphany/epiphany.c: Same.
4213 * config/frv/frv.c: Same.
4214 * config/ft32/ft32.c: Same.
4215 * config/gnu-user.h: Same.
4216 * config/h8300/constraints.md: Same.
4217 * config/i386/i386.c: Same.
4218 * config/i386/i386.md: Same.
4219 * config/iq2000/iq2000.md: Same.
4220 * config/mips/mips.c: Same.
4221 * config/mmix/mmix.md: Same.
4222 * config/moxie/moxie.c: Same.
4223 * config/nds32/nds32.md: Same.
4224 * config/pa/pa.h: Same.
4225 * config/rs6000/aix.h: Same.
4226 * config/rs6000/rs6000.h: Same.
4227 * config/sh/sh.c: Same.
4228 * config/tilegx/tilegx.md: Same.
4229 * config/tilepro/gen-mul-tables.cc: Same.
4230 * cse.c: Same.
4231 * dbxout.c: Same.
4232 * doc/invoke.texi: Same.
4233 * dse.c: Same.
4234 * dwarf2out.c: Same.
4235 * final.c: Same.
4236 * gcc.c: Same.
4237 * genmatch.c: Same.
4238 * gimplify.c: Same.
4239 * hash-table.h: Same.
4240 * internal-fn.c: Same.
4241 * ipa-cp.c: Same.
4242 * ipa-devirt.c: Same.
4243 * ipa-icf.c: Same.
4244 * ipa-icf.h: Same.
4245 * ipa-profile.c: Same.
4246 * ipa-prop.c: Same.
4247 * ipa-prop.h: Same.
4248 * ira.c: Same.
4249 * omp-low.c: Same.
4250 * reg-stack.c: Same.
4251 * regcprop.c: Same.
4252 * reorg.c: Same.
4253 * rtl.h: Same.
4254 * sbitmap.h: Same.
4255 * tree-eh.c: Same.
4256 * tree-inline.c: Same.
4257 * tree-sra.c: Same.
4258 * tree-ssa-dom.c: Same.
4259 * tree-ssa-loop-ivopts.c: Same.
4260 * tree-ssa-structalias.c: Same.
4261 * tree-ssa-tail-merge.c: Same.
4262 * tree-ssa-ter.c: Same.
4263 * tree-ssa-threadupdate.c: Same.
4264 * tree-ssa-uninit.c: Same.
4265 * tree-ssanames.c: Same.
4266 * tree-vect-loop-manip.c: Same.
4267 * tree-vrp.c: Same.
4268 * tree.c: Same.
4269 * valtrack.c: Same.
4270 * vec.h: Same.
4271
4272 2015-07-12 Kugan Vivekanandarajah <kuganv@linaro.org>
4273
4274 PR middle-end/66726
4275 * tree-ssa-phiopt.c(factor_out_conditional_conversion): New function.
4276 tree_ssa_phiopt_worker): Call it.
4277
4278 2015-07-12 Kugan Vivekanandarajah <kuganv@linaro.org>
4279
4280 * cse.c (cse_insn): Calculate src_eqv for ZERO_EXTRACT.
4281 * emit-rtl.c (set_for_reg_notes): Allow ZERO_EXTRACT to set
4282 REG_EQUAL note.
4283
4284 2015-07-11 Marek Polacek <polacek@redhat.com>
4285
4286 PR middle-end/66353
4287 * basic-block.h (has_abnormal_call_or_eh_pred_edge_p): New function.
4288 * ira-lives.c (bb_has_abnormal_call_pred): Remove function.
4289 (process_bb_node_lives): Call has_abnormal_call_or_eh_pred_edge_p
4290 rather than bb_has_abnormal_call_pred.
4291 * lra-lives.c (bb_has_abnormal_call_pred): Remove function.
4292 (process_bb_lives): Call has_abnormal_call_or_eh_pred_edge_p
4293 rather than bb_has_abnormal_call_pred.
4294
4295 2015-07-10 Anatoly Sokolov <aesok@post.ru>
4296
4297 * config/v850/v850.h (REG_OK_FOR_BASE_P, REG_OK_FOR_INDEX_P,
4298 REG_OK_FOR_BASE_P_STRICT, REG_OK_FOR_INDEX_P_STRICT, STRICT,
4299 RTX_OK_FOR_BASE_P, GO_IF_LEGITIMATE_ADDRESS): Remove macros.
4300 * config/v850/v850.c (v850_reg_ok_for_base_, v850_rtx_ok_for_base_p,
4301 v850_legitimate_address_p): New functions.
4302 (TARGET_ADDR_SPACE_LEGITIMATE_ADDRESS_P): Define.
4303
4304 2015-07-10 H.J. Lu <hongjiu.lu@intel.com>
4305
4306 PR target/66819
4307 * config/i386/i386.c (ix86_function_ok_for_sibcall): Allow
4308 indirect sibcall with register arguments if register available
4309 for argument passing.
4310 (init_cumulative_args): Set cfun->machine->arg_reg_available
4311 to (cum->nregs > 0) or to true if function has a variable
4312 argument list.
4313 (function_arg_advance_32): Set cfun->machine->arg_reg_available
4314 to false if cum->nregs <= 0.
4315 * config/i386/i386.h (machine_function): Add arg_reg_available.
4316
4317 2015-07-10 Uros Bizjak <ubizjak@gmail.com>
4318
4319 * config/i386/sse.md (movdi_to_sse): Use gen_lowpart
4320 and gen_higpart instead of gen_rtx_SUBREG.
4321 * config/i386/i386.md
4322 (floatdi<X87MODEF:mode>2_i387_with_xmm splitter): Ditto.
4323 (read-modify peephole2): Use gen_lowpart instead of
4324 gen_rtx_SUBREG for operand 5.
4325
4326 2015-07-10 Andrew MacLeod <amacleod@redhat.com>
4327
4328 * config/tilepro/gen-mul-tables.cc (main): Change include list for
4329 generated files.
4330 * config/tilepro/mul-tables.c: Regenerate.
4331 * config/tilegx/mul-tables.c: Regenerate.
4332
4333 2015-07-10 Richard Biener <rguenther@suse.de>
4334
4335 * fold-const.c (distribute_bit_expr): Remove.
4336 (fold_binary_loc): Move simplifying (A & C1) + (B & C2)
4337 to (A & C1) | (B & C2), distributing (A & B) | (A & C)
4338 to A & (B | C) and simplifying A << C1 << C2 to ...
4339 * match.pd: ... patterns here.
4340
4341 2015-07-10 Jiong Wang <jiong.wang@arm.com>
4342
4343 * config/aarch64/aarch64.c (aarch64_load_symref_appropriately):
4344 Mark mem as READONLY and NOTRAP for PIC symbol.
4345
4346 2015-07-10 Andrew MacLeod <amacleod@redhat.com>
4347
4348 * gimple-predict.h: New file.
4349 (gimple_predict_predictor, gimple_predict_set_predictor,
4350 gimple_predict_outcome, gimple_predict_set_outcome,
4351 gimple_build_predict): Relocate here.
4352 * gimple.h (gimple_predict_predictor, gimple_predict_set_predictor,
4353 gimple_predict_outcome, gimple_predict_set_outcome): Move to
4354 gimple-predict.h.
4355 * gimple.c (gimple_build_predict): Move to gimple-predict.h
4356 * basic-block.h: Don't include cfghooks.h.
4357 * backend.h: Don't include predict.h.
4358 * cfghooks.h: Include predict.h.
4359 * gimple-pretty-print.c: Include gimple-predict.h.
4360 * gimplify.c: Likwise.
4361 * predict.c: Adjust includes.
4362 * tree-inline.c: Likewise.
4363 * asan.c: Likewise.
4364 * auto-inc-dec.c: Likewise.
4365 * auto-profile.c: Likewise.
4366 * bb-reorder.c: Likewise.
4367 * builtins.c: Likewise.
4368 * caller-save.c: Likewise.
4369 * calls.c: Likewise.
4370 * cfganal.c: Likewise.
4371 * cfgbuild.c: Likewise.
4372 * cfg.c: Likewise.
4373 * cfgcleanup.c: Likewise.
4374 * cfgexpand.c: Likewise.
4375 * cfghooks.c: Likewise.
4376 * cfgloopanal.c: Likewise.
4377 * cfgloop.c: Likewise.
4378 * cfgloopmanip.c: Likewise.
4379 * cfgrtl.c: Likewise.
4380 * cgraph.c: Likewise.
4381 * cgraphunit.c: Likewise.
4382 * combine.c: Likewise.
4383 * cprop.c: Likewise.
4384 * cse.c: Likewise.
4385 * dce.c: Likewise.
4386 * dojump.c: Likewise.
4387 * dse.c: Likewise.
4388 * except.c: Likewise.
4389 * expmed.c: Likewise.
4390 * expr.c: Likewise.
4391 * final.c: Likewise.
4392 * fold-const.c: Likewise.
4393 * function.c: Likewise.
4394 * fwprop.c: Likewise.
4395 * gcc-plugin.h: Likewise.
4396 * gcse.c: Likewise.
4397 * genattrtab.c: Likewise.
4398 * genemit.c: Likewise.
4399 * gengtype.c: Likewise.
4400 * genopinit.c: Likewise.
4401 * genoutput.c: Likewise.
4402 * genpreds.c: Likewise.
4403 * genrecog.c: Likewise.
4404 * gimple-fold.c: Likewise.
4405 * gimple-iterator.c: Likewise.
4406 * gimple-ssa-isolate-paths.c: Likewise.
4407 * gimple-ssa-strength-reduction.c: Likewise.
4408 * graph.c: Likewise.
4409 * graphite-blocking.c: Likewise.
4410 * graphite.c: Likewise.
4411 * graphite-dependences.c: Likewise.
4412 * graphite-interchange.c: Likewise.
4413 * graphite-isl-ast-to-gimple.c: Likewise.
4414 * graphite-optimize-isl.c: Likewise.
4415 * graphite-poly.c: Likewise.
4416 * graphite-scop-detection.c: Likewise.
4417 * graphite-sese-to-poly.c: Likewise.
4418 * haifa-sched.c: Likewise.
4419 * ifcvt.c: Likewise.
4420 * internal-fn.c: Likewise.
4421 * ipa-cp.c: Likewise.
4422 * ipa-profile.c: Likewise.
4423 * ipa-split.c: Likewise.
4424 * ipa-utils.c: Likewise.
4425 * ira-build.c: Likewise.
4426 * ira-color.c: Likewise.
4427 * ira-conflicts.c: Likewise.
4428 * ira-costs.c: Likewise.
4429 * ira-emit.c: Likewise.
4430 * ira-lives.c: Likewise.
4431 * jump.c: Likewise.
4432 * loop-doloop.c: Likewise.
4433 * loop-init.c: Likewise.
4434 * loop-invariant.c: Likewise.
4435 * loop-unroll.c: Likewise.
4436 * lower-subreg.c: Likewise.
4437 * lra-assigns.c: Likewise.
4438 * lra.c: Likewise.
4439 * lra-coalesce.c: Likewise.
4440 * lra-constraints.c: Likewise.
4441 * lra-lives.c: Likewise.
4442 * lto-cgraph.c: Likewise.
4443 * lto-streamer-in.c: Likewise.
4444 * mode-switching.c: Likewise.
4445 * modulo-sched.c: Likewise.
4446 * omp-low.c: Likewise.
4447 * optabs.c: Likewise.
4448 * passes.c: Likewise.
4449 * postreload.c: Likewise.
4450 * postreload-gcse.c: Likewise.
4451 * profile.c: Likewise.
4452 * recog.c: Likewise.
4453 * regstat.c: Likewise.
4454 * reload1.c: Likewise.
4455 * reorg.c: Likewise.
4456 * rtlanal.c: Likewise.
4457 * sched-ebb.c: Likewise.
4458 * sel-sched-ir.c: Likewise.
4459 * sese.c: Likewise.
4460 * shrink-wrap.c: Likewise.
4461 * simplify-rtx.c: Likewise.
4462 * stmt.c: Likewise.
4463 * store-motion.c: Likewise.
4464 * tracer.c: Likewise.
4465 * trans-mem.c: Likewise.
4466 * tree-call-cdce.c: Likewise.
4467 * tree-cfg.c: Likewise.
4468 * tree-cfgcleanup.c: Likewise.
4469 * tree-chkp.c: Likewise.
4470 * tree-complex.c: Likewise.
4471 * tree-eh.c: Likewise.
4472 * tree-if-conv.c: Likewise.
4473 * tree-loop-distribution.c: Likewise.
4474 * tree-outof-ssa.c: Likewise.
4475 * tree-parloops.c: Likewise.
4476 * tree-predcom.c: Likewise.
4477 * tree-pretty-print.c: Likewise.
4478 * tree-profile.c: Likewise.
4479 * tree-sra.c: Likewise.
4480 * tree-ssa.c: Likewise.
4481 * tree-ssa-coalesce.c: Likewise.
4482 * tree-ssa-dce.c: Likewise.
4483 * tree-ssa-dom.c: Likewise.
4484 * tree-ssa-forwprop.c: Likewise.
4485 * tree-ssa-ifcombine.c: Likewise.
4486 * tree-ssa-loop-ch.c: Likewise.
4487 * tree-ssa-loop-im.c: Likewise.
4488 * tree-ssa-loop-ivcanon.c: Likewise.
4489 * tree-ssa-loop-ivopts.c: Likewise.
4490 * tree-ssa-loop-manip.c: Likewise.
4491 * tree-ssa-loop-prefetch.c: Likewise.
4492 * tree-ssa-loop-unswitch.c: Likewise.
4493 * tree-ssa-math-opts.c: Likewise.
4494 * tree-ssa-phiopt.c: Likewise.
4495 * tree-ssa-pre.c: Likewise.
4496 * tree-ssa-reassoc.c: Likewise.
4497 * tree-ssa-sink.c: Likewise.
4498 * tree-ssa-tail-merge.c: Likewise.
4499 * tree-ssa-threadedge.c: Likewise.
4500 * tree-ssa-threadupdate.c: Likewise.
4501 * tree-switch-conversion.c: Likewise.
4502 * tree-tailcall.c: Likewise.
4503 * tree-vect-data-refs.c: Likewise.
4504 * tree-vect-loop.c: Likewise.
4505 * tree-vect-loop-manip.c: Likewise.
4506 * tree-vectorizer.c: Likewise.
4507 * tree-vrp.c: Likewise.
4508 * ubsan.c: Likewise.
4509 * value-prof.c: Likewise.
4510 * varasm.c: Likewise.
4511 * var-tracking.c: Likewise.
4512 * config/aarch64/aarch64-builtins.c: Likewise.
4513 * config/aarch64/aarch64.c: Likewise.
4514 * config/aarch64/cortex-a57-fma-steering.c: Likewise.
4515 * config/alpha/alpha.c: Likewise.
4516 * config/arc/arc.c: Likewise.
4517 * config/arm/arm.c: Likewise.
4518 * config/avr/avr.c: Likewise.
4519 * config/bfin/bfin.c: Likewise.
4520 * config/c6x/c6x.c: Likewise.
4521 * config/cr16/cr16.c: Likewise.
4522 * config/cris/cris.c: Likewise.
4523 * config/darwin.c: Likewise.
4524 * config/darwin-c.c: Likewise.
4525 * config/epiphany/epiphany.c: Likewise.
4526 * config/epiphany/mode-switch-use.c: Likewise.
4527 * config/epiphany/resolve-sw-modes.c: Likewise.
4528 * config/fr30/fr30.c: Likewise.
4529 * config/frv/frv.c: Likewise.
4530 * config/ft32/ft32.c: Likewise.
4531 * config/h8300/h8300.c: Likewise.
4532 * config/i386/i386.c: Likewise.
4533 * config/i386/winnt.c: Likewise.
4534 * config/ia64/ia64.c: Likewise.
4535 * config/iq2000/iq2000.c: Likewise.
4536 * config/lm32/lm32.c: Likewise.
4537 * config/m32c/m32c.c: Likewise.
4538 * config/m32r/m32r.c: Likewise.
4539 * config/m68k/m68k.c: Likewise.
4540 * config/mcore/mcore.c: Likewise.
4541 * config/mep/mep.c: Likewise.
4542 * config/microblaze/microblaze.c: Likewise.
4543 * config/mips/mips.c: Likewise.
4544 * config/mmix/mmix.c: Likewise.
4545 * config/mn10300/mn10300.c: Likewise.
4546 * config/moxie/moxie.c: Likewise.
4547 * config/msp430/msp430.c: Likewise.
4548 * config/nds32/nds32.c: Likewise.
4549 * config/nds32/nds32-cost.c: Likewise.
4550 * config/nds32/nds32-fp-as-gp.c: Likewise.
4551 * config/nds32/nds32-intrinsic.c: Likewise.
4552 * config/nds32/nds32-isr.c: Likewise.
4553 * config/nds32/nds32-md-auxiliary.c: Likewise.
4554 * config/nds32/nds32-memory-manipulation.c: Likewise.
4555 * config/nds32/nds32-pipelines-auxiliary.c: Likewise.
4556 * config/nds32/nds32-predicates.c: Likewise.
4557 * config/nios2/nios2.c: Likewise.
4558 * config/nvptx/nvptx.c: Likewise.
4559 * config/pa/pa.c: Likewise.
4560 * config/pdp11/pdp11.c: Likewise.
4561 * config/rl78/rl78.c: Likewise.
4562 * config/rs6000/rs6000.c: Likewise.
4563 * config/rx/rx.c: Likewise.
4564 * config/s390/s390.c: Likewise.
4565 * config/sh/sh.c: Likewise.
4566 * config/sh/sh-mem.cc: Likewise.
4567 * config/sh/sh_optimize_sett_clrt.cc: Likewise.
4568 * config/sh/sh_treg_combine.cc: Likewise.
4569 * config/sparc/sparc.c: Likewise.
4570 * config/spu/spu.c: Likewise.
4571 * config/stormy16/stormy16.c: Likewise.
4572 * config/tilegx/tilegx.c: Likewise.
4573 * config/tilepro/tilepro.c: Likewise.
4574 * config/v850/v850.c: Likewise.
4575 * config/vax/vax.c: Likewise.
4576 * config/visium/visium.c: Likewise.
4577 * config/xtensa/xtensa.c: Likewise.
4578
4579 2015-07-10 Richard Biener <rguenther@suse.de>
4580
4581 * genmatch.c (dt_node::gen_kids_1): Fix indenting of case labels.
4582 (decision_tree::gen_gimple): Likewise.
4583 (decision_tree::gen_generic): Likewise.
4584
4585 2015-07-10 Uros Bizjak <ubizjak@gmail.com>
4586
4587 PR target/66813
4588 * config/i386/i386.c (ix86_md_asm_adjust): Emit movstrictqi
4589 sequence for TARGET_ZERO_EXTEND_WITH_AND targets.
4590
4591 2015-07-10 Jakub Jelinek <jakub@redhat.com>
4592
4593 PR middle-end/66820
4594 * gimplify.c (maybe_fold_stmt): Don't fold in ORT_PARALLEL
4595 or ORT_TASK contexts.
4596 * omp-low.c (lower_omp): Call fold_stmt even if taskreg_nesting_level
4597 is non-zero.
4598
4599 2015-07-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
4600
4601 * expr.c (expand_cond_expr_using_cmove): Fix typos in comment
4602 above function.
4603
4604 2015-07-10 Tom de Vries <tom@codesourcery.com>
4605
4606 * tree-parloops.c (try_transform_to_exit_first_loop_alt): If not found,
4607 insert nit + 1 bound.
4608
4609 2015-07-10 Richard Biener <rguenther@suse.de>
4610
4611 * tree-if-conv.c (if_convertible_gimple_assign_stmt_p):
4612 Use ifcvt_could_trap_p also when not flag_tree_loop_if_convert_stores.
4613 (if_convertible_loop_p_1): For this always compute bb predicates.
4614 (if_convertible_loop_p): And free them.
4615
4616 2015-07-10 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
4617
4618 * ipa-icf.c (sem_item_optimizer::do_congruence_step): Fix typo
4619 in dump message.
4620
4621 2015-07-10 Richard Biener <rguenther@suse.de>
4622
4623 PR tree-optimization/66823
4624 * tree-if-conv.c (memrefs_read_or_written_unconditionally): Fix
4625 inverted predicate.
4626
4627 2015-07-09 Steve Ellcey <sellcey@imgtec.com>
4628
4629 * config/mips/mti-linux.h (MIPS_SYSVERSION_SPEC): Update
4630 to handle mips[32|64]r3 and mips[32|64]r5.
4631
4632 2015-07-09 Jakub Jelinek <jakub@redhat.com>
4633
4634 PR middle-end/66633
4635 * tree-nested.c (get_static_chain): Or in a flag into
4636 info->static_chain_added.
4637 (get_frame_field, get_nonlocal_debug_decl): Likewise.
4638 (convert_nonlocal_omp_clauses, convert_local_omp_clauses): Revert
4639 2015-07-01 changes.
4640 (convert_tramp_reference_stmt): If a frame_decl or chain_decl
4641 is needed newly inside of GIMPLE_OMP_{PARALLEL,TASK,TARGET} body,
4642 add it to clauses.
4643
4644 PR tree-optimization/66718
4645 * tree-vect-stmts.c (struct simd_call_arg_info): Add simd_lane_linear
4646 field.
4647 (vect_simd_lane_linear): New function.
4648 (vectorizable_simd_clone_call): Support using linear arguments for
4649 addresses of arrays elements indexed by GOMP_SIMD_LANE result.
4650
4651 2015-07-09 H.J. Lu <hongjiu.lu@intel.com>
4652
4653 PR target/66821
4654 * config/i386/i386.c (iamcu_cost): Adjust variable shift costs.
4655
4656 2015-07-09 Michael Meissner <meissner@linux.vnet.ibm.com>
4657
4658 * config/rs6000/rs6000-protos.h (rs6000_secondary_reload_memory):
4659 Use machine mode, not enum machine_mode in the prototype.
4660
4661 * config/rs6000/rs6000.h (FLOAT128_IEEE_P): New helper macros to
4662 classify 128-bit floating point support.
4663 (FLOAT128_IBM_P): Likewise.
4664 (FLOAT128_VECTOR_P): Likewise.
4665 (FLOAT128_2REG_P): Likewise.
4666 (SCALAR_FLOAT_MODE_NOT_VECTOR_P): Likewise.
4667 (SLOW_UNALIGNED_ACCESS): Add IEEE 128-bit floating point support.
4668 (HARD_REGNO_CALLER_SAVE_MODE): Likewise.
4669 (HARD_REGNO_CALL_PART_CLOBBERED): Likewise.
4670
4671 * config/rs6000/rs6000.c (rs6000_hard_regno_nregs_internal): Drop
4672 tests against TFmode/TDmode, since those modes do not use VSX
4673 addresses.
4674 (rs6000_hard_regno_mode_ok): Add IEEE 128-bit floating point
4675 support.
4676 (rs6000_init_hard_regno_mode_ok): Use new helper macros instead of
4677 tests against TFmode, etc.
4678 (invalid_e500_subreg): Add tests against IFmode/KFmode.
4679 (reg_offset_addressing_ok_p): Likewise.
4680 (rs6000_legitimate_offset_address_p): Likewise.
4681 (rs6000_legitimize_address): Likewise.
4682 (rs6000_legitimize_reload_address): Likewise.
4683 (rs6000_legitimate_address_p): Clean up tests against TFmode and
4684 TDmode to use the new helper macros, which will include IFmode and
4685 KFmode.
4686 (rs6000_emit_move): Likewise.
4687 (rs6000_darwin64_record_arg_recurse): Likewise.
4688 (print_operand): Likewise.
4689 (rs6000_member_type_forces_blk): Treat IEEE 128-bit floating point
4690 that uses a single vector register as a vector and not as a
4691 floating point register in terms of the calling sequence.
4692 (rs6000_discover_homogeneous_aggregate): Likewise.
4693 (rs6000_return_in_memory): Likewise.
4694 (init_cumulative_args): Likewise.
4695 (rs6000_function_arg_boundary): Likewise.
4696 (rs6000_function_arg_advance_1): Likewise.
4697 (rs6000_function_arg): Likewise.
4698 (rs6000_pass_by_reference): Likewise.
4699 (rs6000_gimplify_va_arg): Likewise.
4700 (rs6000_secondary_reload_memory): Use machine_mode not enum
4701 machine mode.
4702 (rs6000_split_multireg_move): Use new helper macros.
4703 (spe_func_has_64bit_regs_p): Likewise.
4704 (rs6000_output_function_epilogue): Add IFmode/KFmode support.
4705 (output_toc): Use new helper macros.
4706 (rs6000_register_move_cost): Likewise.
4707 (rs6000_function_value): Add IEEE 128-bit floating point calling
4708 sequence support.
4709 (rs6000_libcall_value): Likewise.
4710 (rs6000_scalar_mode_supported_p): Add support for IEEE 128-bit
4711 floating point support.
4712 (rs6000_vector_mode_supported_p): Likewise.
4713
4714 2015-07-09 Vladimir Makarov <vmakarov@redhat.com>
4715
4716 PR rtl-optimization/66782
4717 * lra-int.h (struct lra_insn_recog_data): Add comment about
4718 clobbered hard regs for arg_hard_regs.
4719 * lra.c (lra_set_insn_recog_data): Add clobbered hard regs.
4720 * lra-lives.c (process_bb_lives): Process clobbered hard regs.
4721 Add condition for processing used hard regs.
4722 * lra-constraints.c (update_ebb_live_info, inherit_in_ebb):
4723 Process clobbered hard regs.
4724
4725 2015-07-09 Michael Matz <matz@suse.de>
4726
4727 * genmatch.c (fprintf_indent): New function.
4728 (operand::gen_transform): Add indent parameter.
4729 (expr::gen_transform, c_expr::gen_transform,
4730 capture::gen_transform): Ditto and use fprintf_indent.
4731 (dt_node::gen, dt_node::gen_kids, dt_node::gen_kids_1): Ditto.
4732 (dt_operand::gen, dt_operand::gen_predicate,
4733 dt_operand::gen_match_op, dt_operand::gen_gimple_expr,
4734 dt_operand::gen_generic_expr, dt_simplify::gen): Ditto.
4735 (decision_tree::gen_gimple): Adjust calls and indent generated
4736 code.
4737 (decision_tree::gen_generic): Ditto.
4738 (write_predicate): Ditto.
4739
4740 2015-07-08 Uros Bizjak <ubizjak@gmail.com>
4741
4742 PR target/66814
4743 * config/i386/predicates.md (nonimmediate_gr_operand): New predicate.
4744 * config/i386/i386.md (not peephole2): Use nonimmediate_gr_operand.
4745 (varous peephole2s): Use {GENERAL,SSE,MMX}_REGNO_P instead of
4746 {GENERAL,SSE,MMX}_REG_P where appropriate.
4747
4748 2015-07-09 Andrew MacLeod <amacleod@redhat.com>
4749
4750 * lto-streamer.h: Don't include target.h and alloc-pool.h.
4751 * builtins.c: Adjust includes.
4752 * gimple.c: Likewise.
4753 * ipa-icf.c: Likewise.
4754 * lto-opts.c: Likewise.
4755 * ipa-reference.c: Likewise.
4756 * lto-section-out.c: Likewise.
4757 * lto-streamer-in.c: Likewise.
4758 * lto-streamer-out.c: Likewise.
4759 * opts-global.c: Likewise.
4760 * symtab.c: Likewise.
4761 * tree-chkp.c: Likewise.
4762 * tree-ssa-live.c: Likewise.
4763 * tree-streamer-in.c: Likewise.
4764 * tree-streamer-out.c: Likewise.
4765 * config/darwin.c: Likewise.
4766 * config/i386/winnt.c: Likewise.
4767
4768 2015-07-09 Richard Biener <rguenther@suse.de>
4769
4770 * genmatch.c (struct expr): Add force_single_use flag.
4771 (expr::expr): Add copy constructor.
4772 (capture_info::walk_match): Gather force_single_use captures.
4773 (expr::gen_transform): Use possibly NULLified sequence.
4774 (dt_simplify::gen): Apply single-use restrictions by NULLifying
4775 seq if any constrained expr is not single-use.
4776 (parser::parse_expr): Refactor to allow multiple flags. Handle
4777 's' flag to force an expression have a single-use if the pattern
4778 simplifies to more than one statement.
4779 * match.pd: Convert most single_use conditionals to :s flags.
4780
4781 2015-07-09 H.J. Lu <hongjiu.lu@intel.com>
4782
4783 * config/i386/iamcu.h (ASM_OUTPUT_ALIGNED_BSS): New.
4784 (ASM_OUTPUT_MAX_SKIP_ALIGN): Likewise.
4785 (ASM_MAYBE_OUTPUT_ENCODED_ADDR_RTX): Likewise.
4786
4787 2015-07-09 Andrew MacLeod <amacleod@redhat.com>
4788
4789 * flags.h: Don't include flag-types.h or options.h.
4790 * opts-common.c: Adjust includes.
4791 * opts-global.c: Likewise.
4792 * common/config/epiphany/epiphany-common.c: Likewise.
4793
4794 2015-07-09 H.J. Lu <hongjiu.lu@intel.com>
4795
4796 PR target/66818
4797 * config/i386/i386.h (ATTRIBUTE_ALIGNED_VALUE): Defined to 32
4798 for IA MCU.
4799
4800 2015-07-09 H.J. Lu <hongjiu.lu@intel.com>
4801
4802 PR target/66817
4803 * config/i386/i386.c (ix86_return_in_memory): Return true
4804 if int_size_in_bytes returns negative for IA MCU.
4805
4806 2015-07-09 Marek Polacek <polacek@redhat.com>
4807
4808 PR tree-optimization/66718
4809 * Makefile.in (OBJS): Add gimple-laddress.o.
4810 * passes.def: Schedule pass_laddress.
4811 * timevar.def (DEFTIMEVAR): Add TV_GIMPLE_LADDRESS.
4812 * tree-pass.h (make_pass_laddress): Declare.
4813 * gimple-laddress.c: New file.
4814
4815 2015-07-09 Richard Biener <rguenther@suse.de>
4816
4817 * toplev.c (compile_file): Reset maximum_field_alignment after parsing.
4818
4819 2015-07-09 Richard Biener <rguenther@suse.de>
4820
4821 PR tree-optimization/66807
4822 * tree-chkp-opt.c (chkp_opt_fini): Free post dominator info.
4823
4824 2015-07-08 Kito Cheng <kito.cheng@gmail.com>
4825
4826 * function.c (stack_protect_epilogue): Use if rather than switch for
4827 check targetm.have_stack_protect_test.
4828
4829 2015-07-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
4830
4831 * defaults.h: Provide default for WORD_REGISTER_OPERATIONS.
4832 * config/alpha/alpha.h: Define WORD_REGISTER_OPERATIONS to 1.
4833 * config/arc/arc.h: Likewise.
4834 * config/arm/arm.h: Likewise.
4835 * config/bfin/bfin.h: Likewise.
4836 * config/epiphany/epiphany.h: Likewise.
4837 * config/frv/frv.h: Likewise.
4838 * config/ia64/ia64.h: Likewise.
4839 * config/iq2000/iq2000.h: Likewise.
4840 * config/lm32/lm32.h: Likewise.
4841 * config/m32r/m32r.h: Likewise.
4842 * config/mcore/mcore.h: Likewise.
4843 * config/mep/mep.h: Likewise.
4844 * config/microblaze/microblaze.h: Likewise.
4845 * config/mips/mips.h: Likewise.
4846 * config/mmix/mmix.h: Likewise.
4847 * config/mn10300/mn10300.h: Likewise.
4848 * config/nds32/nds32.h: Likewise.
4849 * config/nios2/nios2.h: Likewise.
4850 * config/pa/pa.h: Likewise.
4851 * config/rl78/rl78.h: Likewise.
4852 * config/sh/sh.h: Likewise.
4853 * config/sparc/sparc.h: Likewise.
4854 * config/stormy16/stormy16.h: Likewise.
4855 * config/tilegx/tilegx.h: Likewise.
4856 * config/tilepro/tilepro.h: Likewise.
4857 * config/v850/v850.h: Likewise.
4858 * config/xtensa/xtensa.h: Likewise.
4859 * doc/tm.texi: Regenerate.
4860 * doc/tm.texi.in: Adjust.
4861 * combine.c (simplify_set): Likewise.
4862 (simplify_comparison): Likewise.
4863 * expr.c (store_constructor): Likewise.
4864 * internal-fn.c (expand_arith_overflow): Likewise.
4865 * reload.c (push_reload): Likewise.
4866 (find_reloads): Likewise.
4867 (find_reloads_subreg_address): Likewise.
4868 * reload1.c (eliminate_regs_1): Likewise.
4869 * rtlanal.c (nonzero_bits1): Likewise.
4870 (num_sign_bit_copies1): Likewise.
4871 * simplify-rtx.c (simplify_truncation): Likewise.
4872
4873 2015-07-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
4874
4875 * auto-inc-dec.c (pass_inc_dec::execute): Don't check the value
4876 of AUTO_INC_DEC with the preprocessor.
4877 * combine.c (combine_instructions): Likewise.
4878 (can_combine_p): Likewise.
4879 (try_combine): Likewise.
4880 * emit-rtl.c (try_split): Likewise.
4881 * loop-invariant.c (calculate_loop_reg_pressure): Likewise.
4882 * lower-subreg.c (resolve_simple_move): Likewise.
4883 * lra.c (update_inc_notes): Likewise.
4884 * recog.c (asm_operand_ok): Likewise.
4885 (constrain_operands): Likewise.
4886 * regrename.c (scan_rtx_address): Likewise.
4887 * reload.c (update_auto_inc_notes): Likewise.
4888 (reg_inc_found_and_valid_p): Likewise.
4889 * reload1.c (reload): Likewise.
4890 (emit_input_reload_insns): Likewise.
4891 (delete_output_reload): Likewise.
4892 * sched-deps.c (init_insn_reg_pressure_info): Likewise.
4893 * valtrack.c (cleanup_auto_inc_dec): Likewise.
4894
4895 2015-07-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
4896
4897 * rtl.h: Always define AUTO_INC_DEC.
4898 * auto-inc-dec.c (pass_inc_dec::execute): Adjust.
4899 * combine.c (combine_instructions): Likewise.
4900 (can_combine_p): Likewise.
4901 (try_combine): Likewise.
4902 * emit-rtl.c (try_split): Likewise.
4903 * loop-invariant.c (calculate_loop_reg_pressure): Likewise.
4904 * lower-subreg.c (resolve_simple_move): Likewise.
4905 * lra.c (update_inc_notes): Likewise.
4906 * recog.c (asm_operand_ok): Likewise.
4907 (constrain_operands): Likewise.
4908 * regrename.c (scan_rtx_address): Likewise.
4909 * reload.c (update_auto_inc_notes): Likewise.
4910 (find_equiv_reg): Likewise.
4911 * reload1.c (reload): Likewise.
4912 (reload_as_needed): Likewise.
4913 (choose_reload_regs): Likewise.
4914 (emit_input_reload_insns): Likewise.
4915 (delete_output_reload): Likewise.
4916 * sched-deps.c (init_insn_reg_pressure_info): Likewise.
4917 * valtrack.c (cleanup_auto_inc_dec): Likewise.
4918
4919 2015-07-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
4920
4921 * combine.c (can_combine_def_p): Don't check the value of
4922 HARD_FRAME_POINTER_IS_FRAME_POINTER with the preprocessor.
4923 (combinable_i3pat): Likewise.
4924 (mark_used_regs_combine): Likewise.
4925 * regrename.c (rename_chains): Likewise.
4926 * reload.c (find_reloads_address): Likewise.
4927 * sel-sched.c (mark_unavailable_hard_regs): Likewise.
4928
4929 2015-07-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
4930
4931 * combine.c (update_rsp_from_reg_equal): Don't check if
4932 SHORT_IMMEDIATES_SIGN_EXTEND is defined.
4933 (reg_nonzero_bits_for_combine): Likewise.
4934 * config/alpha/alpha.h: Define SHORT_IMMEDIATES_SIGN_EXTEND to
4935 1.
4936 * config/frv/frv.h: Likewise.
4937 * config/lm32/lm32.h: Likewise.
4938 * config/mep/mep.h: Likewise.
4939 * config/mips/mips.h: Likewise.
4940 * config/rs6000/rs6000.h: Likewise.
4941 * config/sh/sh.h: Likewise.
4942 * config/tilegx/tilegx.h (enum reg_class): Likewise.
4943 * config/tilepro/tilepro.h: Likewise.
4944 * defaults.h: Add default for SHORT_IMMEDIATES_SIGN_EXTEND.
4945 * doc/tm.texi: Regenerate.
4946 * doc/tm.texi.in: Adjust.
4947 * rtlanal.c (nonzero_bits1): Likewise.
4948
4949 2015-07-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
4950
4951 * combine.c (do_SUBST_MODE): Don't check the value of HAVE_cc0
4952 with the preprocessor.
4953 (combine_instructions): Likewise.
4954 (try_combine): Likewise.
4955 (subst): Likewise.
4956 (distribute_notes): Likewise.
4957
4958 2015-07-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
4959
4960 * combine.c (try_combine): Don't check if LOAD_EXTEND_OP is
4961 defined.
4962 (simplify_set): Likewise.
4963 * cse.c (cse_insn): Likewise.
4964 * fold-const.c (fold_single_bit_test): Likewise.
4965 (fold_unary_loc): Likewise.
4966 * postreload.c (reload_cse_simplify_set): Likewise.
4967 (reload_cse_simplify_operands): Likewise.
4968
4969 2015-07-08 Jiong Wang <jiong.wang@arm.com>
4970
4971 * config/aarch64/aarch64.c (aarch64_unspec_may_trap_p): New function.
4972 (TARGET_UNSPEC_MAY_TRAP_P): Define as aarch64_unspec_may_trap_p.
4973
4974 2015-07-08 H.J. Lu <hongjiu.lu@intel.com>
4975
4976 PR target/66746
4977 * config/i386/x86intrin.h: Include <adxintrin.h> even if
4978 __iamcu__ is defined.
4979
4980 2015-07-08 Uros Bizjak <ubizjak@gmail.com>
4981
4982 * config/i386/predicates.md (general_reg_operand): Use GENERAL_REGNO_P.
4983
4984 2015-07-08 Iain Sandoe <iain@codesourcery.com>
4985
4986 PR target/66523
4987 * config/darwin.c (darwin_mark_decl_preserved): Exclude 'L' label
4988 names from preservation.
4989
4990 2015-07-08 H.J. Lu <hongjiu.lu@intel.com>
4991
4992 PR target/66806
4993 * config/i386/i386.c (type_natural_mode): Don't warn vector ABI
4994 change for IAMCU.
4995 (function_arg_advance_32): Don't pass vectors in registers for
4996 IAMCU.
4997 (function_arg_32): Likewise.
4998 (ix86_return_in_memory): Don't return vectors in registers for
4999 IAMCU.
5000
5001 2015-07-08 Vladimir Makarov <vmakarov@redhat.com>
5002
5003 PR middle-end/66334
5004 * ira-lives.c (process_bb_node_lives): Make conflicts with PIC
5005 hard regno live at the start of BB with incoming abnormal edges.
5006 * lra-lives.c (process_bb_lives): Ditto.
5007
5008 2015-07-08 Thomas Schwinge <thomas@codesourcery.com>
5009
5010 PR libgomp/65099
5011 * config/nvptx/mkoffload.c (main): Create an offload image only in
5012 64-bit configurations.
5013
5014 2015-07-08 Martin Liska <mliska@suse.cz>
5015
5016 PR bootstrap/66744
5017 * tree-sra.c (create_access_1): Call ctor without brackets.
5018 (create_artificial_child_access): Likewise.
5019
5020 2015-07-08 Richard Biener <rguenther@suse.de>
5021
5022 PR tree-optimization/66793
5023 * gimple-ssa-isolate-paths.c (insert_trap_and_remove_trailing_statemen):
5024 Properly split the block after stmts ending it.
5025
5026 2015-07-08 Richard Biener <rguenther@suse.de>
5027
5028 PR tree-optimization/66794
5029 * passes.c (execute_function_todo): Assert that post-dominators
5030 are not computed.
5031 * gimple-ssa-isolate-paths.c (gimple_ssa_isolate_erroneous_paths):
5032 Free post-dominators.
5033
5034 2015-07-08 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
5035
5036 * config/s390/s390.c (s390_init_frame_layout): Replace assertion
5037 with early exit.
5038
5039 2015-07-08 Uros Bizjak <ubizjak@gmail.com>
5040
5041 * config/i386/i386.md (*jcc_bt<mode>): Only allow const_int values
5042 more than or equal 8 and less than 32 when optimizing for size.
5043
5044 2015-07-08 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5045
5046 * config/arm/arm.c (arm_new_rtx_costs): Initialise cost to
5047 COSTS_N_INSNS (1) and increment it appropriately throughout the
5048 function.
5049
5050 2015-07-08 Richard Biener <rguenther@suse.de>
5051
5052 * fold-const.c (fold_widened_comparison): Fix inverted comparison.
5053
5054 2015-07-08 Alan Modra <amodra@gmail.com>
5055
5056 * target.def (rtx_costs): Remove "code" param, add "mode".
5057 * rtl.h (rtx_cost, get_full_rtx_cost): Update prototype.
5058 (set_src_cost, get_full_set_src_cost): Likewise. Move later in file.
5059 (set_rtx_cost, get_full_set_rtx_cost): Move later in file.
5060 * rtlanal.c (rtx_cost): Add "mode" parameter. Update targetm.rtx_costs
5061 call. Track mode when given in rtx.
5062 (get_full_rtx_cost): Add "mode" parameter. Update rtx_cost calls.
5063 (default_address_cost): Pass Pmode to rtx_cost.
5064 (insn_rtx_cost): Pass dest mode of set to set_src_cost.
5065 * cprop.c (try_replace_reg): Ensure set_rtx_cost is not called
5066 with NULL set.
5067 * cse.c (COST, COST_IN): Add MODE param. Update all uses.
5068 (notreg_cost): Add mode param. Use it.
5069 * gcse.c (want_to_gcse_p): Delete forward declaration. Add
5070 mode param and pass to set_src_cost. Update all calls.
5071 (hash_scan_set): Formatting.
5072 * hooks.c (hook_bool_rtx_int_int_int_intp_bool_false): Delete.
5073 (hook_bool_rtx_mode_int_int_intp_bool_false): New function.
5074 * hooks.h: Ditto.
5075 * expmed.c (init_expmed_one_conv, init_expmed_one_mode,
5076 init_expmed, expand_mult, mult_by_coeff_cost, expand_smod_pow2,
5077 emit_store_flag): Update set_src_cost and rtx_cost calls.
5078 * auto-inc-dec.c (attempt_change): Likewise.
5079 * calls.c (precompute_register_parameters): Likewise.
5080 * combine.c (expand_compound_operation, make_extraction,
5081 force_to_mode, distribute_and_simplify_rtx): Likewise.
5082 * dojump.c (prefer_and_bit_test): Likewise.
5083 * dse.c (find_shift_sequence): Likewise.
5084 * expr.c (compress_float_constant): Likewise.
5085 * fwprop.c (should_replace_address, try_fwprop_subst): Likewise.
5086 * ifcvt.c (noce_try_sign_mask): Likewise.
5087 * loop-doloop.c (doloop_optimize): Likewise.
5088 * loop-invariant.c (create_new_invariant): Likewise.
5089 * lower-subreg.c (shift_cost, compute_costs): Likewise.
5090 * optabs.c (avoid_expensive_constant, prepare_cmp_insn,
5091 lshift_cheap_p): Likewise.
5092 * postreload.c (reload_cse_simplify_set, reload_cse_simplify_operands,
5093 try_replace_in_use, reload_cse_move2add): Likewise.
5094 * reload1.c (calculate_elim_costs_all_insns, note_reg_elim_costly):
5095 Likewise.
5096 * simplify-rtx.c (simplify_binary_operation_1): Likewise.
5097 * tree-ssa-loop-ivopts.c (computation_cost): Likewise.
5098 * tree-ssa-reassoc.c (optimize_range_tests_to_bit_test): Likewise.
5099 * tree-switch-conversion.c (emit_case_bit_tests): Likewise.
5100 * config/aarch64/aarch64.c (aarch64_rtx_costs): Delete "code" param,
5101 add "mode" param. Use "mode: in place of GET_MODE (x). Pass mode
5102 to rtx_cost calls.
5103 * config/alpha/alpha.c (alpha_rtx_costs): Likewise.
5104 * config/arc/arc.c (arc_rtx_costs): Likewise.
5105 * config/arm/arm.c (arm_rtx_costs): Likewise.
5106 * config/avr/avr.c (avr_rtx_costs, avr_rtx_costs_1): Likewise.
5107 * config/bfin/bfin.c (bfin_rtx_costs): Likewise.
5108 * config/c6x/c6x.c (c6x_rtx_costs): Likewise.
5109 * config/cris/cris.c (cris_rtx_costs): Likewise.
5110 * config/epiphany/epiphany.c (epiphany_rtx_costs): Likewise.
5111 * config/frv/frv.c (frv_rtx_costs): Likewise.
5112 * config/h8300/h8300.c (h8300_rtx_costs): Likewise.
5113 * config/i386/i386.c (ix86_rtx_costs): Likewise.
5114 * config/ia64/ia64.c (ia64_rtx_costs): Likewise.
5115 * config/iq2000/iq2000.c (iq2000_rtx_costs): Likewise.
5116 * config/lm32/lm32.c (lm32_rtx_costs): Likewise.
5117 * config/m32c/m32c.c (m32c_rtx_costs): Likewise.
5118 * config/m32r/m32r.c (m32r_rtx_costs): Likewise.
5119 * config/m68k/m68k.c (m68k_rtx_costs): Likewise.
5120 * config/mcore/mcore.c (mcore_rtx_costs): Likewise.
5121 * config/mep/mep.c (mep_rtx_cost): Likewise.
5122 * config/microblaze/microblaze.c (microblaze_rtx_costs): Likewise.
5123 * config/mips/mips.c (mips_rtx_costs): Likewise.
5124 * config/mmix/mmix.c (mmix_rtx_costs): Likewise.
5125 * config/mn10300/mn10300.c (mn10300_rtx_costs): Likewise.
5126 * config/msp430/msp430.c (msp430_rtx_costs): Likewise.
5127 * config/nds32/nds32-cost.c (nds32_rtx_costs_impl): Likewise.
5128 * config/nds32/nds32-protos.h (nds32_rtx_costs_impl): Likewise.
5129 * config/nds32/nds32.c (nds32_rtx_costs): Likewise.
5130 * config/nios2/nios2.c (nios2_rtx_costs): Likewise.
5131 * config/pa/pa.c (hppa_rtx_costs): Likewise.
5132 * config/pdp11/pdp11.c (pdp11_rtx_costs): Likewise.
5133 * config/rl78/rl78.c (rl78_rtx_costs): Likewise.
5134 * config/rs6000/rs6000.c (rs6000_rtx_costs): Likewise.
5135 * config/s390/s390.c (s390_rtx_costs): Likewise.
5136 * config/sh/sh.c (sh_rtx_costs): Likewise.
5137 * config/sparc/sparc.c (sparc_rtx_costs): Likewise.
5138 * config/spu/spu.c (spu_rtx_costs): Likewise.
5139 * config/stormy16/stormy16.c (xstormy16_rtx_costs): Likewise.
5140 * config/tilegx/tilegx.c (tilegx_rtx_costs): Likewise.
5141 * config/tilepro/tilepro.c (tilepro_rtx_costs): Likewise.
5142 * config/v850/v850.c (v850_rtx_costs): Likewise.
5143 * config/vax/vax.c (vax_rtx_costs): Likewise.
5144 * config/visium/visium.c (visium_rtx_costs): Likewise.
5145 * config/xtensa/xtensa.c (xtensa_rtx_costs): Likewise.
5146 * config/aarch64/aarch64.c (aarch64_rtx_mult_cost): Change type of
5147 "code" param, and pass as outer_code to first rtx_cost call. Pass
5148 mode to rtx_cost calls.
5149 (aarch64_address_cost, aarch64_if_then_else_costs): Update rtx_cost
5150 calls.
5151 (aarch64_rtx_costs_wrapper): Update.
5152 * config/arm/arm.c (arm_rtx_costs_1, arm_size_rtx_costs,
5153 arm_unspec_cost, arm_new_rtx_costs, arm_slowmul_rtx_costs): Update
5154 rtx_cost calls.
5155 * config/avr/avr.c (avr_final_prescan_insn): Update set_src_cost
5156 and rtx_cost calls.
5157 (avr_operand_rtx_cost): Similarly.
5158 (avr_rtx_costs_1): Correct mode passed to avr_operand_rtx_cost
5159 for subexpressions of ZERO_EXTEND, SIGN_EXTEND and COMPARE.
5160 * config/mips/mips.c (mips_stack_address_p): Comment typo.
5161 (mips_binary_cost): Update rtx_cost and set_src_cost calls.
5162 (mips_rtx_costs): Use GET_MODE (x) to detect const_int.
5163 * config/mn10300/mn10300.c (mn10300_address_cost): Pass Pmode to
5164 rtx_cost.
5165 (mn10300_rtx_costs): Correct mode passed to mn10300_address_cost.
5166 * config/rs6000/rs6000.c (rs6000_debug_rtx_costs): Update.
5167 * config/sh/sh.c (and_xor_ior_costs): Update rtx_cost call.
5168 * doc/tm.texi: Regenerate.
5169
5170 2015-07-07 Andrew MacLeod <amacleod@redhat.com>
5171
5172 * tree-core.h: Include symtab.h.
5173 * rtl.h: Include hard-reg-set.h but not flags.h.
5174 (HARD_CONST): Remove condition compilation involving HARD_CONST since
5175 hard-reg-set.h is always included.
5176 * regs.h: Don't include hard-reg-set.h or rtl.h.
5177 * cfg.h: Include dominance.h.
5178 * gimple.h: Include tree-ssa-alias.h and gimple-expr.h.
5179 * backend.h: New. Aggregate commonly used backend header files.
5180 * gimple-ssa.h: Don't include tree-hasher.h.
5181 * ssa.h: New. Aggregate commonly used SSA header files.
5182 * regset.h: Remove bitmap.h and hard-reg-set.h #includes.
5183 * sel-sched-ir.h: Flatten includes.
5184 * lra-int.h: Flatten completely.
5185 * sel-sched-dump.h: Flatten includes.
5186 * ira-int.h: Flatten includes.
5187 * gimple-streamer.h: Remove all includes.
5188 * cfgloop.h: Remove all #includes except cfgloopmanip.h.
5189 * resource.h: Flatten hard-reg-set.h and df.h.
5190 * sched-int.h: Flatten insn-arrt.h and df.h.
5191 * valtrack.h: flatten bitmap.h, df.h, and rtl.h
5192 * df.h: Flatten includes, leaving regset.h, alloc-pool.h and timevar.h.
5193 * genattrtab.c (write_header): Adjust generated includes.
5194 * genautomata.c (main): Likewise.
5195 * genconditions.c (write-header): Likewise.
5196 * genemit.c (main): Likewise.
5197 * gengtype.c (open_base_files): Likewise.
5198 * genopinit.c (main): Likewise.
5199 * genoutput.c (output_prologue): Likewise.
5200 * genpeep.c (main): Likewise.
5201 * genpreds.c (write_insn_preds_c): Likewise.
5202 * genrecog.c (write_header): Likewise.
5203 * alias.c: Adjust includes.
5204 * asan.c: Likewise.
5205 * attribs.c: Likewise.
5206 * auto-inc-dec.c: Likewise.
5207 * auto-profile.c: Likewise.
5208 * bb-reorder.c: Likewise.
5209 * bt-load.c: Likewise.
5210 * builtins.c: Likewise.
5211 * caller-save.c: Likewise.
5212 * calls.c: Likewise.
5213 * ccmp.c: Likewise.
5214 * cfg.c: Likewise.
5215 * cfganal.c: Likewise.
5216 * cfgbuild.c: Likewise.
5217 * cfgcleanup.c: Likewise.
5218 * cfgexpand.c: Likewise.
5219 * cfghooks.c: Likewise.
5220 * cfgloop.c: Likewise.
5221 * cfgloopanal.c: Likewise.
5222 * cfgloopmanip.c: Likewise.
5223 * cfgrtl.c: Likewise.
5224 * cgraph.c: Likewise.
5225 * cgraphbuild.c: Likewise.
5226 * cgraphclones.c: Likewise.
5227 * cgraphunit.c: Likewise.
5228 * cilk-common.c: Likewise.
5229 * combine-stack-adj.c: Likewise.
5230 * combine.c: Likewise.
5231 * compare-elim.c: Likewise.
5232 * convert.c: Likewise.
5233 * coverage.c: Likewise.
5234 * cppbuiltin.c: Likewise.
5235 * cprop.c: Likewise.
5236 * cse.c: Likewise.
5237 * cselib.c: Likewise.
5238 * data-streamer-in.c: Likewise.
5239 * data-streamer-out.c: Likewise.
5240 * data-streamer.c: Likewise.
5241 * dbxout.c: Likewise.
5242 * dce.c: Likewise.
5243 * ddg.c: Likewise.
5244 * debug.c: Likewise.
5245 * df-core.c: Likewise.
5246 * df-problems.c: Likewise.
5247 * df-scan.c: Likewise.
5248 * dfp.c: Likewise.
5249 * dojump.c: Likewise.
5250 * dominance.c: Likewise.
5251 * domwalk.c: Likewise.
5252 * double-int.c: Likewise.
5253 * dse.c: Likewise.
5254 * dumpfile.c: Likewise.
5255 * dwarf2asm.c: Likewise.
5256 * dwarf2cfi.c: Likewise.
5257 * dwarf2out.c: Likewise.
5258 * emit-rtl.c: Likewise.
5259 * et-forest.c: Likewise.
5260 * except.c: Likewise.
5261 * explow.c: Likewise.
5262 * expmed.c: Likewise.
5263 * expr.c: Likewise.
5264 * final.c: Likewise.
5265 * fixed-value.c: Likewise.
5266 * fold-const.c: Likewise.
5267 * function.c: Likewise.
5268 * fwprop.c: Likewise.
5269 * gcc-plugin.h: Likewise.
5270 * gcse-common.c: Likewise.
5271 * gcse.c: Likewise.
5272 * generic-match-head.c: Likewise.
5273 * ggc-page.c: Likewise.
5274 * gimple-builder.c: Likewise.
5275 * gimple-expr.c: Likewise.
5276 * gimple-fold.c: Likewise.
5277 * gimple-iterator.c: Likewise.
5278 * gimple-low.c: Likewise.
5279 * gimple-match-head.c: Likewise.
5280 * gimple-pretty-print.c: Likewise.
5281 * gimple-ssa-isolate-paths.c: Likewise.
5282 * gimple-ssa-strength-reduction.c: Likewise.
5283 * gimple-streamer-in.c: Likewise.
5284 * gimple-streamer-out.c: Likewise.
5285 * gimple-walk.c: Likewise.
5286 * gimple.c: Likewise.
5287 * gimplify-me.c: Likewise.
5288 * gimplify.c: Likewise.
5289 * godump.c: Likewise.
5290 * graph.c: Likewise.
5291 * graphite-blocking.c: Likewise.
5292 * graphite-dependences.c: Likewise.
5293 * graphite-interchange.c: Likewise.
5294 * graphite-isl-ast-to-gimple.c: Likewise.
5295 * graphite-optimize-isl.c: Likewise.
5296 * graphite-poly.c: Likewise.
5297 * graphite-scop-detection.c: Likewise.
5298 * graphite-sese-to-poly.c: Likewise.
5299 * graphite.c: Likewise.
5300 * haifa-sched.c: Likewise.
5301 * hw-doloop.c: Likewise.
5302 * ifcvt.c: Likewise.
5303 * init-regs.c: Likewise.
5304 * internal-fn.c: Likewise.
5305 * ipa-chkp.c: Likewise.
5306 * ipa-comdats.c: Likewise.
5307 * ipa-cp.c: Likewise.
5308 * ipa-devirt.c: Likewise.
5309 * ipa-icf-gimple.c: Likewise.
5310 * ipa-icf.c: Likewise.
5311 * ipa-inline-analysis.c: Likewise.
5312 * ipa-inline-transform.c: Likewise.
5313 * ipa-inline.c: Likewise.
5314 * ipa-polymorphic-call.c: Likewise.
5315 * ipa-profile.c: Likewise.
5316 * ipa-prop.c: Likewise.
5317 * ipa-pure-const.c: Likewise.
5318 * ipa-ref.c: Likewise.
5319 * ipa-reference.c: Likewise.
5320 * ipa-split.c: Likewise.
5321 * ipa-utils.c: Likewise.
5322 * ipa-visibility.c: Likewise.
5323 * ipa.c: Likewise.
5324 * ira-build.c: Likewise.
5325 * ira-color.c: Likewise.
5326 * ira-conflicts.c: Likewise.
5327 * ira-costs.c: Likewise.
5328 * ira-emit.c: Likewise.
5329 * ira-lives.c: Likewise.
5330 * ira.c: Likewise.
5331 * jump.c: Likewise.
5332 * langhooks.c: Likewise.
5333 * lcm.c: Likewise.
5334 * loop-doloop.c: Likewise.
5335 * loop-init.c: Likewise.
5336 * loop-invariant.c: Likewise.
5337 * loop-iv.c: Likewise.
5338 * loop-unroll.c: Likewise.
5339 * lower-subreg.c: Likewise.
5340 * lra-assigns.c: Likewise.
5341 * lra-coalesce.c: Likewise.
5342 * lra-constraints.c: Likewise.
5343 * lra-eliminations.c: Likewise.
5344 * lra-lives.c: Likewise.
5345 * lra-remat.c: Likewise.
5346 * lra-spills.c: Likewise.
5347 * lra.c: Likewise.
5348 * lto-cgraph.c: Likewise.
5349 * lto-compress.c: Likewise.
5350 * lto-opts.c: Likewise.
5351 * lto-section-in.c: Likewise.
5352 * lto-section-out.c: Likewise.
5353 * lto-streamer-in.c: Likewise.
5354 * lto-streamer-out.c: Likewise.
5355 * lto-streamer.c: Likewise.
5356 * mcf.c: Likewise.
5357 * mode-switching.c: Likewise.
5358 * modulo-sched.c: Likewise.
5359 * omega.c: Likewise.
5360 * omp-low.c: Likewise.
5361 * optabs.c: Likewise.
5362 * opts-global.c: Likewise.
5363 * passes.c: Likewise.
5364 * plugin.c: Likewise.
5365 * postreload-gcse.c: Likewise.
5366 * postreload.c: Likewise.
5367 * predict.c: Likewise.
5368 * print-rtl.c: Likewise.
5369 * print-tree.c: Likewise.
5370 * profile.c: Likewise.
5371 * real.c: Likewise.
5372 * realmpfr.c: Likewise.
5373 * recog.c: Likewise.
5374 * ree.c: Likewise.
5375 * reg-stack.c: Likewise.
5376 * regcprop.c: Likewise.
5377 * reginfo.c: Likewise.
5378 * regrename.c: Likewise.
5379 * regstat.c: Likewise.
5380 * reload.c: Likewise.
5381 * reload1.c: Likewise.
5382 * reorg.c: Likewise.
5383 * resource.c: Likewise.
5384 * rtl-chkp.c: Likewise.
5385 * rtlanal.c: Likewise.
5386 * rtlhooks.c: Likewise.
5387 * sanopt.c: Likewise.
5388 * sched-deps.c: Likewise.
5389 * sched-ebb.c: Likewise.
5390 * sched-rgn.c: Likewise.
5391 * sched-vis.c: Likewise.
5392 * sdbout.c: Likewise.
5393 * sel-sched-dump.c: Likewise.
5394 * sel-sched-ir.c: Likewise.
5395 * sel-sched.c: Likewise.
5396 * sese.c: Likewise.
5397 * shrink-wrap.c: Likewise.
5398 * simplify-rtx.c: Likewise.
5399 * stack-ptr-mod.c: Likewise.
5400 * stmt.c: Likewise.
5401 * stor-layout.c: Likewise.
5402 * store-motion.c: Likewise.
5403 * stringpool.c: Likewise.
5404 * symtab.c: Likewise.
5405 * target-globals.c: Likewise.
5406 * targhooks.c: Likewise.
5407 * toplev.c: Likewise.
5408 * tracer.c: Likewise.
5409 * trans-mem.c: Likewise.
5410 * tree-affine.c: Likewise.
5411 * tree-browser.c: Likewise.
5412 * tree-call-cdce.c: Likewise.
5413 * tree-cfg.c: Likewise.
5414 * tree-cfgcleanup.c: Likewise.
5415 * tree-chkp-opt.c: Likewise.
5416 * tree-chkp.c: Likewise.
5417 * tree-chrec.c: Likewise.
5418 * tree-complex.c: Likewise.
5419 * tree-data-ref.c: Likewise.
5420 * tree-dfa.c: Likewise.
5421 * tree-diagnostic.c: Likewise.
5422 * tree-dump.c: Likewise.
5423 * tree-eh.c: Likewise.
5424 * tree-emutls.c: Likewise.
5425 * tree-if-conv.c: Likewise.
5426 * tree-inline.c: Likewise.
5427 * tree-into-ssa.c: Likewise.
5428 * tree-iterator.c: Likewise.
5429 * tree-loop-distribution.c: Likewise.
5430 * tree-nested.c: Likewise.
5431 * tree-nrv.c: Likewise.
5432 * tree-object-size.c: Likewise.
5433 * tree-outof-ssa.c: Likewise.
5434 * tree-parloops.c: Likewise.
5435 * tree-phinodes.c: Likewise.
5436 * tree-predcom.c: Likewise.
5437 * tree-pretty-print.c: Likewise.
5438 * tree-profile.c: Likewise.
5439 * tree-scalar-evolution.c: Likewise.
5440 * tree-sra.c: Likewise.
5441 * tree-ssa-address.c: Likewise.
5442 * tree-ssa-alias.c: Likewise.
5443 * tree-ssa-ccp.c: Likewise.
5444 * tree-ssa-coalesce.c: Likewise.
5445 * tree-ssa-copy.c: Likewise.
5446 * tree-ssa-copyrename.c: Likewise.
5447 * tree-ssa-dce.c: Likewise.
5448 * tree-ssa-dom.c: Likewise.
5449 * tree-ssa-dse.c: Likewise.
5450 * tree-ssa-forwprop.c: Likewise.
5451 * tree-ssa-ifcombine.c: Likewise.
5452 * tree-ssa-live.c: Likewise.
5453 * tree-ssa-loop-ch.c: Likewise.
5454 * tree-ssa-loop-im.c: Likewise.
5455 * tree-ssa-loop-ivcanon.c: Likewise.
5456 * tree-ssa-loop-ivopts.c: Likewise.
5457 * tree-ssa-loop-manip.c: Likewise.
5458 * tree-ssa-loop-niter.c: Likewise.
5459 * tree-ssa-loop-prefetch.c: Likewise.
5460 * tree-ssa-loop-unswitch.c: Likewise.
5461 * tree-ssa-loop.c: Likewise.
5462 * tree-ssa-math-opts.c: Likewise.
5463 * tree-ssa-operands.c: Likewise.
5464 * tree-ssa-phiopt.c: Likewise.
5465 * tree-ssa-phiprop.c: Likewise.
5466 * tree-ssa-pre.c: Likewise.
5467 * tree-ssa-propagate.c: Likewise.
5468 * tree-ssa-reassoc.c: Likewise.
5469 * tree-ssa-sccvn.c: Likewise.
5470 * tree-ssa-scopedtables.c: Likewise.
5471 * tree-ssa-sink.c: Likewise.
5472 * tree-ssa-strlen.c: Likewise.
5473 * tree-ssa-structalias.c: Likewise.
5474 * tree-ssa-tail-merge.c: Likewise.
5475 * tree-ssa-ter.c: Likewise.
5476 * tree-ssa-threadedge.c: Likewise.
5477 * tree-ssa-threadupdate.c: Likewise.
5478 * tree-ssa-uncprop.c: Likewise.
5479 * tree-ssa-uninit.c: Likewise.
5480 * tree-ssa.c: Likewise.
5481 * tree-ssanames.c: Likewise.
5482 * tree-stdarg.c: Likewise.
5483 * tree-streamer-in.c: Likewise.
5484 * tree-streamer-out.c: Likewise.
5485 * tree-streamer.c: Likewise.
5486 * tree-switch-conversion.c: Likewise.
5487 * tree-tailcall.c: Likewise.
5488 * tree-vect-data-refs.c: Likewise.
5489 * tree-vect-generic.c: Likewise.
5490 * tree-vect-loop-manip.c: Likewise.
5491 * tree-vect-loop.c: Likewise.
5492 * tree-vect-patterns.c: Likewise.
5493 * tree-vect-slp.c: Likewise.
5494 * tree-vect-stmts.c: Likewise.
5495 * tree-vectorizer.c: Likewise.
5496 * tree-vrp.c: Likewise.
5497 * tree.c: Likewise.
5498 * tsan.c: Likewise.
5499 * ubsan.c: Likewise.
5500 * valtrack.c: Likewise.
5501 * value-prof.c: Likewise.
5502 * var-tracking.c: Likewise.
5503 * varasm.c: Likewise.
5504 * varpool.c: Likewise.
5505 * vmsdbgout.c: Likewise.
5506 * vtable-verify.c: Likewise.
5507 * web.c: Likewise.
5508 * wide-int.cc: Likewise.
5509 * xcoffout.c: Likewise.
5510 * config/aarch64/aarch64-builtins.c: Likewise.
5511 * config/aarch64/aarch64.c: Likewise.
5512 * config/aarch64/cortex-a57-fma-steering.c: Likewise.
5513 * config/alpha/alpha.c: Likewise.
5514 * config/arc/arc.c: Likewise.
5515 * config/arm/aarch-common.c: Likewise.
5516 * config/arm/arm-builtins.c: Likewise.
5517 * config/arm/arm-c.c: Likewise.
5518 * config/arm/arm.c: Likewise.
5519 * config/avr/avr-c.c: Likewise.
5520 * config/avr/avr-log.c: Likewise.
5521 * config/avr/avr.c: Likewise.
5522 * config/bfin/bfin.c: Likewise.
5523 * config/c6x/c6x.c: Likewise.
5524 * config/cr16/cr16.c: Likewise.
5525 * config/cris/cris.c: Likewise.
5526 * config/darwin-c.c: Likewise.
5527 * config/darwin.c: Likewise.
5528 * config/epiphany/epiphany.c: Likewise.
5529 * config/epiphany/mode-switch-use.c: Likewise.
5530 * config/epiphany/resolve-sw-modes.c: Likewise.
5531 * config/fr30/fr30.c: Likewise.
5532 * config/frv/frv.c: Likewise.
5533 * config/ft32/ft32.c: Likewise.
5534 * config/h8300/h8300.c: Likewise.
5535 * config/i386/i386-c.c: Likewise.
5536 * config/i386/i386.c: Likewise.
5537 * config/i386/msformat-c.c: Likewise.
5538 * config/i386/winnt-cxx.c: Likewise.
5539 * config/i386/winnt-stubs.c: Likewise.
5540 * config/i386/winnt.c: Likewise.
5541 * config/ia64/ia64-c.c: Likewise.
5542 * config/ia64/ia64.c: Likewise.
5543 * config/iq2000/iq2000.c: Likewise.
5544 * config/lm32/lm32.c: Likewise.
5545 * config/m32c/m32c-pragma.c: Likewise.
5546 * config/m32c/m32c.c: Likewise.
5547 * config/m32r/m32r.c: Likewise.
5548 * config/m68k/m68k.c: Likewise.
5549 * config/mcore/mcore.c: Likewise.
5550 * config/mep/mep-pragma.c: Likewise.
5551 * config/mep/mep.c: Likewise.
5552 * config/microblaze/microblaze-c.c: Likewise.
5553 * config/microblaze/microblaze.c: Likewise.
5554 * config/mips/mips.c: Likewise.
5555 * config/mmix/mmix.c: Likewise.
5556 * config/mn10300/mn10300.c: Likewise.
5557 * config/moxie/moxie.c: Likewise.
5558 * config/msp430/msp430-c.c: Likewise.
5559 * config/msp430/msp430.c: Likewise.
5560 * config/nds32/nds32-cost.c: Likewise.
5561 * config/nds32/nds32-fp-as-gp.c: Likewise.
5562 * config/nds32/nds32-intrinsic.c: Likewise.
5563 * config/nds32/nds32-isr.c: Likewise.
5564 * config/nds32/nds32-md-auxiliary.c: Likewise.
5565 * config/nds32/nds32-memory-manipulation.c: Likewise.
5566 * config/nds32/nds32-pipelines-auxiliary.c: Likewise.
5567 * config/nds32/nds32-predicates.c: Likewise.
5568 * config/nds32/nds32.c: Likewise.
5569 * config/nios2/nios2.c: Likewise.
5570 * config/nvptx/nvptx.c: Likewise.
5571 * config/pa/pa.c: Likewise.
5572 * config/pdp11/pdp11.c: Likewise.
5573 * config/rl78/rl78-c.c: Likewise.
5574 * config/rl78/rl78.c: Likewise.
5575 * config/rs6000/rs6000-c.c: Likewise.
5576 * config/rs6000/rs6000.c: Likewise.
5577 * config/rx/rx.c: Likewise.
5578 * config/s390/s390-c.c: Likewise.
5579 * config/s390/s390.c: Likewise.
5580 * config/sh/sh-c.c: Likewise.
5581 * config/sh/sh-mem.cc: Likewise.
5582 * config/sh/sh.c: Likewise.
5583 * config/sh/sh_optimize_sett_clrt.cc: Likewise.
5584 * config/sh/sh_treg_combine.cc: Likewise.
5585 * config/sol2-c.c: Likewise.
5586 * config/sol2-cxx.c: Likewise.
5587 * config/sol2-stubs.c: Likewise.
5588 * config/sol2.c: Likewise.
5589 * config/sparc/sparc-c.c: Likewise.
5590 * config/sparc/sparc.c: Likewise.
5591 * config/spu/spu-c.c: Likewise.
5592 * config/spu/spu.c: Likewise.
5593 * config/stormy16/stormy16.c: Likewise.
5594 * config/tilegx/mul-tables.c: Likewise.
5595 * config/tilegx/tilegx-c.c: Likewise.
5596 * config/tilegx/tilegx.c: Likewise.
5597 * config/tilepro/mul-tables.c: Likewise.
5598 * config/tilepro/tilepro-c.c: Likewise.
5599 * config/tilepro/tilepro.c: Likewise.
5600 * config/v850/v850-c.c: Likewise.
5601 * config/v850/v850.c: Likewise.
5602 * config/vax/vax.c: Likewise.
5603 * config/visium/visium.c: Likewise.
5604 * config/vms/vms-c.c: Likewise.
5605 * config/vms/vms.c: Likewise.
5606 * config/vxworks.c: Likewise.
5607 * config/xtensa/xtensa.c: Likewise.
5608
5609 2015-07-07 Uros Bizjak <ubizjak@gmail.com>
5610
5611 * config/i386/i386.md (*jcc_bt<mode>): Only split before reload.
5612 Remove operand constraints. Change operand 2 predicate to
5613 nonmemory operand. Limit const_int values to mode bitsize. Only
5614 allow const_int values less than 32 when optimizing for size.
5615 (*jcc_bt<mode>_1, *jcc_bt<mode>_mask): Only split before reload.
5616 Remove operand constraints.
5617 (*bt<mode>): Use SImode for const_int values less than 32.
5618 (regmode): Remove mode attribute.
5619
5620 2015-07-07 Anatoly Sokolov <aesok@post.ru>
5621
5622 * config/moxie/moxie.h (GO_IF_LEGITIMATE_ADDRESS): Remove macros.
5623 * config/moxie/moxie.c (moxie_reg_ok_for_base_p,
5624 moxie_legitimate_address_p): New functions.
5625 (TARGET_ADDR_SPACE_LEGITIMATE_ADDRESS_P): Define.
5626
5627 2015-07-07 Tom de Vries <tom@codesourcery.com>
5628
5629 PR tree-optimization/66642
5630 * tree-parloops.c (transform_to_exit_first_loop_alt): Update function
5631 header comment. Rename split_edge variable to edge_at_split. Split
5632 exit edge to create new loop exit bb. Insert loop exit phis in new
5633 loop exit bb.
5634
5635 2015-07-07 Tom de Vries <tom@codesourcery.com>
5636
5637 * tree-cfg.c (get_virtual_phi): New function.
5638 * tree-cfg.h (get_virtual_phi): Declare.
5639 * tree-ssa-loop-manip.c (replace_uses_in_dominated_bbs)
5640 (rewrite_virtuals_into_loop_closed_ssa): New function.
5641 * tree-ssa-loop-manip.h (rewrite_virtuals_into_loop_closed_ssa):
5642 Declare.
5643 * tree-parloops.c (replace_uses_in_bbs_by): Remove.
5644 (transform_to_exit_first_loop_alt): Use
5645 rewrite_virtuals_into_loop_closed_ssa.
5646
5647 2015-07-07 Richard Biener <rguenther@suse.de>
5648
5649 * fold-const.c (fold_binary_loc): Move
5650 (X & C2) << C1 -> (X << C1) & (C2 << C1) simplification ...
5651 * match.pd: ... here.
5652 Add (X * C1) % C2 -> 0 simplification pattern derived from
5653 extract_muldiv_1.
5654
5655 2015-07-07 Kaz Kojima <kkojima@gcc.gnu.org>
5656
5657 PR target/66780
5658 * config/sh/sh.md (symGOT_load): Revert a part of 2015-03-03
5659 change for target/65249.
5660
5661 2015-07-07 Paulo Matos <pmatos@broadcom.com>
5662
5663 * symtab.c (address_matters_1): Fix typo in comment above.
5664 (can_increase_alignment_p): Likewise.
5665
5666 2015-07-07 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
5667
5668 * function.c (free_after_compilation): Clear PROP_cfg in
5669 f->curr_properties.
5670
5671 2015-07-07 Richard Biener <rguenther@suse.de>
5672
5673 * tree-ssa-propagate.c (add_ssa_edge): Dump what edge list we
5674 add which use to.
5675 (add_control_edge): Remove excessive vertical space in dumping.
5676 (process_ssa_edge_worklist): Simulate at most one statement and
5677 return whether we did. Do not simulate PHIs if they are in a
5678 BB not yet simulated.
5679 (ssa_propagate): Adjust to always drain the BB worklist whenever
5680 a BB is available there, likewise the VARYING edges list before
5681 the interesting edge list.
5682
5683 2015-07-07 Christian Bruel <christian.bruel@st.com>
5684
5685 PR target/52144
5686 * config/arm/elf.h (TARGET_ASM_FILE_START_APP_OFF): Delete.
5687
5688 2015-07-07 Richard Biener <rguenther@suse.de>
5689
5690 PR middle-end/66739
5691 * match.pd: Condition A - B ==/!= 0 -> A ==/!= B on single-use
5692 A - B.
5693
5694 2015-07-06 Uros Bizjak <ubizjak@gmail.com>
5695
5696 * config/i386/i386.md (insv<mode>): Rename from insv. Use SWI48
5697 modes for operands 0 and 3. Use SImode for operands 2 and 3.
5698 Copy operand 0 to a temporary if !ext_register_operand. Remove
5699 ancient extract_bit_field workaround.
5700 (insv<mode>_1): Rename from mov<mode>_insv_1.
5701 (*insvqi): Rename from *movqi_insv_2.
5702 * config/i386/i386.c (emit_i386_cw_initialization): Update calls
5703 for renamed insvsi_1.
5704 (promote_duplicated_reg): Ditto for renamed insv<mode>_1.
5705
5706 2015-07-06 Nathan Sidwell <nathan@codesourcery.com>
5707
5708 * config/nvptx/nvptx.c (nvptx_reorg): Remove unused vars. Fix
5709 call to nvptx_reorg_subreg.
5710
5711 2015-07-06 Jim Wilson <jim.wilson@linaro.org>
5712
5713 * graphite-blocking.c (HAVE_isl): Include <stddef.h>.
5714 * graphite-dependencies.c, graphite-interchange.c,
5715 graphite-isl-ast-to-gimple.c, graphite-optimize-isl.c, graphite-poly.c,
5716 graphite-scop-detection.c, graphite-sese-to-poly.c, graphite.c:
5717 Likewise.
5718
5719 2015-07-06 Marc Glisse <marc.glisse@inria.fr>
5720
5721 * match.pd: Remove element_mode inside HONOR_*.
5722 (~ (-A) -> A - 1, ~ (A - 1) -> -A): Handle complex types.
5723 (~X | X -> -1, ~X ^ X -> -1): Merge.
5724 * tree.c (build_each_one_cst): New function.
5725 * tree.h (build_each_one_cst): Likewise.
5726
5727 2015-07-06 H.J. Lu <hongjiu.lu@intel.com>
5728
5729 * config/i386/i386-c.c (ix86_target_macros_internal): Handle
5730 PROCESSOR_IAMCU.
5731
5732 2015-07-06 Steve Ellcey <sellcey@imgtec.com>
5733
5734 * config.gcc <mips*-*-*>: Add fused-madd.opt.
5735 * config/mips/mips.opt (mfused-madd): Remove.
5736 * config/mips/mips.c (mips_rtx_costs): Update cost calculations.
5737 * config/mips/mips.h (TARGET_MIPS8000): New.
5738 (ISA_HAS_FP_MADD4_MSUB4): Remove.
5739 (ISA_HAS_FP_MADDF_MSUBF): Remove.
5740 (ISA_HAS_FP_MADD3_MSUB3): Remove.
5741 (ISA_HAS_NMADD4_NMSUB4): Remove.
5742 (ISA_HAS_NMADD3_NMSUB3): Remove.
5743 (ISA_HAS_FUSED_MADD4): New.
5744 (ISA_HAS_UNFUSED_MADD4): New.
5745 (ISA_HAS_FUSED_MADDF): New.
5746 (ISA_HAS_FUSED_MADD3): New.
5747 * config/mips/mips.md: (fma<mode>4) Change from insn to expand.
5748 (*fma<mode>4_madd3) New.
5749 (*fma<mode>4_madd4) New.
5750 (*fma<mode>4_maddf) New.
5751 (fms<mode>4) New.
5752 (*fms<mode>4_msub3) New.
5753 (*fms<mode>4_msub4) New.
5754 (fnma<mode>4) New.
5755 (*fnma<mode>4_nmadd3) New.
5756 (*fnma<mode>4_nmadd4) New.
5757 (fnms<mode>4) New.
5758 (*fnms<mode>4_nmsub3) New.
5759 (*fnms<mode>4_nmsub4) New.
5760 (*madd4<mode>) Modify to be unfused only.
5761 (*msub4<mode>) Modify to be unfused only.
5762 (*nmadd4<mode>) Modify to be unfused only.
5763 (*nmsub4<mode>) Modify to be unfused only.
5764 (*madd3<mode>) Remove.
5765 (*msub3<mode>) Remove.
5766 (*nmadd3<mode>) Remove.
5767 (*nmsub3<mode>) Remove.
5768 (*nmadd3<mode>_fastmath) Remove.
5769 (*nmsub3<mode>_fastmath) Remove.
5770 (*nmadd4<mode>_fastmath) Update condition.
5771 (*nmsub4<mode>_fastmath) Update condition.
5772
5773 2015-07-06 Alan Lawrence <alan.lawrence@arm.com>
5774
5775 PR target/65956
5776 * config/arm/arm.c (arm_needs_doubleword_align): Drop any outer
5777 alignment attribute, exploring one level down for records and arrays.
5778
5779 2015-07-06 Uros Bizjak <ubizjak@gmail.com>
5780
5781 * config/i386/i386.md (extv<mode>): Rename from extv. Use SWI24
5782 modes for operands 0 and 1. Use SImode for operands 2 and 3.
5783 Copy operand 1 to a temporary if !ext_register_operand. Remove
5784 ancient extract_bit_field workaround.
5785 (*extv<mode>): Rename from *mov<mode>_extv_1.
5786 (*extvqi): Rename from *movqi_extv_1.
5787 (extzv<mode>): Rename from extzv. Use SWI248 modes for
5788 operands 0 and 1. Use SImode for operands 2 and 3. Copy operand 1
5789 to a temporary if !ext_register_operand. Remove ancient
5790 extract_bit_field workaround.
5791 (*extzv<mode>): Rename from *mov<mode>_extzv_1.
5792 (*extzvqi): Rename from *movqi_extzv_2.
5793 (*testqi_ext_3): Remove modes from const_int_operand predicated
5794 operands. Add "n" constraint.
5795 (*btsq, *btrq, *btcq): Remove mode from const_0_to_63 predicated
5796 operand. Add "J" constraint.
5797 (*btsq, *btrq, *btcq peephole2s): Remove mode from
5798 const_0_to_63 predicated operand.
5799 (regmode): New insn attribute.
5800 (*bt<mode>): Use SImode for operand 1. Change operand 1 predicate
5801 to nonmemory_operand. Use regmode insn attribute.
5802 (*jcc_bt<mode>_1): Convert operand 2 to SImode.
5803 (*jcc_bt<mode>_mask): Remove mode from operand 3.
5804 (*jcc_btsi_1, *jcc_btsi_mask_1): Remove patterns.
5805 (tbm_bextri_<mode>): Remove modes from const_0_to_255 predicated
5806 operands. Use "N" constraint instead of "n".
5807
5808 2015-07-06 Alan Lawrence <alan.lawrence@arm.com>
5809
5810 * config/arm/arm.md (movdi): Avoid odd-number ldrd/strd in ARM state.
5811
5812 2015-07-06 H.J. Lu <hongjiu.lu@intel.com>
5813
5814 PR target/66749
5815 * config/i386/i386.c (iamcu_cost): New.
5816 (m_IAMCU): Likewise.
5817 (initial_ix86_arch_features): Disable X86_ARCH_CMOV for m_IAMCU.
5818 (processor_target_table): Add an entry for "iamcu".
5819 (processor_alias_table): Likewise.
5820 (ix86_issue_rate): Handle PROCESSOR_IAMCU.
5821 (ix86_adjust_cost): Likewise.
5822 (ia32_multipass_dfa_lookahead): Likewise.
5823 * config/i386/i386.h (processor_type): Add PROCESSOR_IAMCU.
5824 * config/i386/x86-tune.def: Updated for m_IAMCU.
5825
5826 2015-07-06 Richard Biener <rguenther@suse.de>
5827
5828 PR tree-optimization/66772
5829 * tree-ssa-ccp.c (ccp_visit_phi_node): Make sure that copy
5830 values are available in the PHI node BB when there are
5831 still unexecutable edges.
5832
5833 2015-07-06 Richard Biener <rguenther@suse.de>
5834
5835 PR tree-optimization/66767
5836 * tree-vect-loop-manip.c (vect_create_cond_for_align_checks):
5837 Make sure to build the alignment test on a SSA name without
5838 final alignment info valid only if the alignment test
5839 evaluates to true.
5840
5841 2015-07-06 Bernd Schmidt <bernds@codesourcery.com>
5842
5843 PR target/66620
5844 * config/bfin/bfin.c (hwloop_optimize): Create new bb between jump and
5845 loop start when inserting LSETUP.
5846
5847 2015-07-06 H.J. Lu <hongjiu.lu@intel.com>
5848
5849 PR target/53383
5850 * config/i386/i386.c (ix86_option_override_internal): Allow
5851 -mincoming-stack-boundary=3 for 64-bit if SSE is disabled.
5852
5853 2015-07-06 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5854
5855 * read-md.c (decimal_string): Rename to ...
5856 (md_decimal_string): ... this.
5857 (handle_enum): Reflect this.
5858
5859 2015-07-06 Szabolcs Nagy <szabolcs.nagy@arm.com>
5860
5861 PR target/66731
5862 * config/aarch64/aarch64.md (fnmul<mode>3): Handle -frounding-math.
5863
5864 2015-07-06 Richard Biener <rguenther@suse.de>
5865
5866 PR middle-end/66759
5867 * match.pd: Add missing constraint of y to REAL_CST in
5868 REAL_CST - x CMP y to y - CST CMP x simplification.
5869
5870 2015-07-06 Eric Botcazou <ebotcazou@adacore.com>
5871
5872 PR tree-optimization/66757
5873 * match.pd: Add missing condition to ~X ^ C -> X ^ ~C.
5874
5875 2015-07-05 Chung-Lin Tang <cltang@codesourcery.com>
5876 Sandra Loosemore <sandra@codesourcery.com>
5877
5878 * config/nios2/nios2-protos.h (nios2_symbol_ref_in_small_data_p):
5879 Delete extern declaration.
5880 (gprel_constant_p): Add extern declaration.
5881 * config/nios2/constraints.md ("S"): Use gprel_constant_p
5882 instead of nios2_symbol_ref_in_small_data_p.
5883 * config/nios2/nios2.c (nios2_legitimate_address_p): Likewise.
5884 (nios2_symbol_ref_in_small_data_p): Make static.
5885 (gprel_constant_p): Make non-static.
5886
5887 2015-07-05 Gerald Pfeifer <gerald@pfeifer.com>
5888
5889 * doc/fragments.texi (Target Fragment): Convert debian.org
5890 link to use https.
5891 * doc/install.texi (Configuration): Ditto.
5892
5893 2015-07-05 Jakub Jelinek <jakub@redhat.com>
5894
5895 PR tree-optimization/66718
5896 * tree-vect-stmts.c (vectorizable_call): Replace uses of
5897 GOMP_SIMD_LANE outside of loop with vf - 1 rather than 0.
5898
5899 PR tree-optimization/66718
5900 * tree-vect-stmts.c (vectorizable_assignment, vectorizable_store,
5901 vectorizable_load, vectorizable_condition): Move vectype,
5902 nunits, ncopies computation after checking what kind of statement
5903 stmt is.
5904
5905 2015-07-05 Richard Sandiford <richard.sandiford@arm.com>
5906
5907 * target-insns.def (extv, extzv, insv): New targetm instruction
5908 patterns.
5909 * optabs.c (get_extraction_insn): Use them instead of HAVE_*/gen_*
5910 interface.
5911 * recog.c (simplify_while_replacing): Likewise.
5912
5913 2015-07-05 Richard Sandiford <richard.sandiford@arm.com>
5914
5915 * target-insns.def (doloop_begin, doloop_end): New targetm
5916 instruction patterns.
5917 * loop-init.c: Include target.h.
5918 (pass_loop2::gate): Use the new targetm patterns instead of
5919 HAVE_*/gen_* interface.
5920 (pass_rtl_doloop::gate): Likewise.
5921 (pass_rtl_doloop::execute): Remove preprocessor condition.
5922 * hw-doloop.c: Build unconditionally.
5923 * loop-doloop.c: Likewise.
5924 (doloop_optimize): Use the new targetm patterns instead of
5925 HAVE_*/gen_* interface.
5926 (doloop_modify): Likewise. Change type of doloop_seq to rtx_insn *.
5927 * modulo-sched.c (doloop_register_get): Likewise.
5928
5929 2015-07-05 Richard Sandiford <richard.sandiford@arm.com>
5930
5931 * target-insns.def (clear_cache): New targetm instruction pattern.
5932 * builtins.c (expand_builtin___clear_cache): Use it instead of
5933 HAVE_*/gen_* interface.
5934
5935 2015-07-05 Richard Sandiford <richard.sandiford@arm.com>
5936
5937 * target-insns.def (allocate_stack, check_stack, probe_stack)
5938 (probe_stack_address, split_stack_prologue, split_stack_space_check):
5939 New targetm instruction patterns.
5940 * explow.c (allocate_dynamic_stack_space): Use them instead of
5941 HAVE_*/gen_* interface.
5942 (emit_stack_probe): Likewise.
5943 (probe_stack_range): Likewise.
5944 * function.c (thread_prologue_and_epilogue_insns): Likewise.
5945
5946 2015-07-05 Richard Sandiford <richard.sandiford@arm.com>
5947
5948 * target-insns.def (stack_protect_set, stack_protect_test): New
5949 targetm instruction patterns.
5950 * cfgexpand.c (stack_protect_prologue): Use them instead of
5951 HAVE_*/gen_* interface.
5952 * function.c (stack_protect_epilogue): Likewise.
5953
5954 2015-07-05 Richard Sandiford <richard.sandiford@arm.com>
5955
5956 * expr.h (gen_move_insn_uncast): Delete.
5957 * expr.c (gen_move_insn_uncast): Delete.
5958
5959 2015-07-05 Richard Sandiford <richard.sandiford@arm.com>
5960
5961 * target-insns.def (restore_stack_block, restore_stack_function)
5962 (restore_stack_nonlocal, save_stack_block, save_stack_function)
5963 (save_stack_nonlocal): New targetm instruction patterns.
5964 * builtins.c (expand_builtin_apply): Use them instead of
5965 HAVE_*/gen_* interface.
5966 * explow.c (emit_stack_save, emit_stack_restore): Likewise.
5967
5968 2015-07-05 Richard Sandiford <richard.sandiford@arm.com>
5969
5970 * target-insns.def (trap): New targetm instruction pattern.
5971 * builtins.c (expand_builtin_trap): Use it instead of HAVE_*/gen_*
5972 interface.
5973 * explow.c (allocate_dynamic_stack_space): Likewise.
5974 * ifcvt.c (find_if_header): Likewise.
5975
5976 2015-07-05 Richard Sandiford <richard.sandiford@arm.com>
5977
5978 * target-insns.def (prefetch): New targetm instruction pattern.
5979 * tree-ssa-loop-prefetch.c: Include targeth.
5980 (tree_ssa_prefetch_arrays): Use prefetch targetm pattern instead
5981 of HAVE_*/gen_* interface.
5982 * builtins.c (expand_builtin_prefetch): Likewise.
5983 * toplev.c (process_options): Likewise.
5984
5985 2015-07-05 Richard Sandiford <richard.sandiford@arm.com>
5986
5987 * target-insns.def (untyped_call, untyped_return): New targetm
5988 instruction patterns.
5989 * builtins.c (expand_builtin_apply): Use them instead of
5990 HAVE_*/gen_* interface.
5991 (result_vector): Define unconditionally.
5992
5993 2015-07-05 Richard Sandiford <richard.sandiford@arm.com>
5994
5995 * target-insns.def (builtin_longjmp, builtin_setjmp_receiver)
5996 (builtin_setjmp_setup, exception_receiver, nonlocal_goto)
5997 (nonlocal_goto_receiver): New targetm instruction patterns.
5998 * builtins.c (expand_builtin_setjmp_setup): Use them instead
5999 of HAVE_*/gen_* interface.
6000 (expand_builtin_setjmp_receiver): Likewise.
6001 (expand_builtin_longjmp, expand_builtin_nonlocal_goto): Likewise.
6002 * except.c (expand_dw2_landing_pad_for_region): Likewise.
6003
6004 2015-07-05 Richard Sandiford <richard.sandiford@arm.com>
6005
6006 * target.def: Add code_for_* hooks.
6007 * gentarget-def.c (def_target_insn): Add TARGET_CODE_FOR_* macros.
6008 * defaults.h (HAVE_tablejump, gen_tablejump): Delete.
6009 * target-insns.def (casesi, tablejump): New targetm instruction
6010 patterns.
6011 * expr.c (try_casesi): Use them instead of HAVE_*/gen_* interface.
6012 (do_tablejump): Likewise.
6013 * stmt.c (expand_switch_as_decision_tree_p): Likewise.
6014 (expand_sjlj_dispatch_table): Likewise.
6015 * targhooks.c (default_case_values_threshold): Likewise.
6016
6017 2015-07-04 Sandra Loosemore <sandra@codesourcery.com>
6018
6019 * config/nios2/nios2.c (save_reg, restore_reg): Use plus_constant.
6020 Use rtx_insn * instead of rtx.
6021 (nios2_emit_add_constant): Use rtx_insn * instead of rtx.
6022 (nios2_expand_prologue, nios2_expand_epilogue): Likewise.
6023 (nios2_call_tls_get_addr): Likewise.
6024 (nios2_emit_expensive_div): Likewise.
6025 (nios2_emit_move_sequence): Change return type to bool.
6026 * config/nios2/nios2-protos.h (nios2_emit_move_sequence):
6027 Change return type to bool.
6028
6029 2015-07-04 Bernd Edlinger <bernd.edlinger@hotmail.de>
6030
6031 PR target/66747
6032 * config/mips/mips.c (mips_find_gp_ref): Handle instruction sequences.
6033
6034 2015-07-04 John David Anglin <danglin@gcc.gnu.org>
6035
6036 PR target/66114
6037 * config/pa/pa.md (indirect_jump): Use pmode_register_operand instead
6038 of register_operand. Remove constraint.
6039
6040 2015-07-04 Marc Glisse <marc.glisse@inria.fr>
6041
6042 * tree-cfg.c (verify_gimple_assign_ternary) <VEC_COND_EXPR>: Check
6043 the first argument.
6044
6045 2015-07-03 Paolo Carlini <paolo.carlini@oracle.com>
6046
6047 * attribs.c (decl_attributes): Guard inform with the return value
6048 of the preceding warning.
6049
6050 2015-07-03 James Greenhalgh <james.greenhalgh@arm.com>
6051
6052 * doc/invoke.texi (moverride): Move to correct section.
6053
6054 2015-07-03 Richard Biener <rguenther@suse.de>
6055
6056 * genmatch.c (commutative_tree_code, commutative_ternary_tree_code):
6057 Copy from tree.c
6058 (dt_operand::gen_gimple_expr): After valueizing operands
6059 re-canonicalize operand order for commutative tree codes.
6060
6061 2015-07-03 H.J. Lu <hongjiu.lu@intel.com>
6062
6063 PR target/66746.
6064 * config/i386/ia32intrin.h (__crc32b): Don't define if __iamcu__
6065 is defined.
6066 (__crc32w): Likewise.
6067 (__crc32d): Likewise.
6068 (__rdpmc): Likewise.
6069 (__rdtscp): Likewise.
6070 (_rdpmc): Likewise.
6071 (_rdtscp): Likewise.
6072 * config/i386/x86intrin.h: Only include ia32intrin.h if __iamcu__
6073 is defined.
6074
6075 2015-07-03 Richard Biener <rguenther@suse.de>
6076
6077 * fold-const.c (fold_mathfn_compare): Remove.
6078 (fold_inf_compare): Likewise.
6079 (fold_comparison): Move floating point comparison simplifications...
6080 * match.pd: ... to patterns here. Introduce simple_comparisons
6081 operator list and use it for patterns formerly in fold_comparison.
6082
6083 2015-07-03 James Greenhalgh <james.greenhalgh@arm.com>
6084
6085 PR tree-optimization/66119
6086 * toplev.c (process_options): Don't set up default values for
6087 the sra_max_scalarization_size_{speed,size} parameters.
6088 * tree-sra (analyze_all_variable_accesses): If no values
6089 have been set for the sra_max_scalarization_size_{speed,size}
6090 parameters, call get_move_ratio to get target defaults.
6091
6092 2015-07-03 Richard Biener <rguenther@suse.de>
6093
6094 * fold-const.c (fold_binary_loc): Move (T)ptr & CST folding...
6095 * match.pd: ... here.
6096
6097 2015-07-03 Gerald Pfeifer <gerald@pfeifer.com>
6098
6099 PR target/37072
6100 * doc/invoke.texi (i386 and x86-64 Options): -mno-fancy-math-387
6101 is not actually the default on FreeBSD.
6102
6103 2015-07-02 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
6104
6105 * config/rs6000/rs6000-builtin.def (CMPGE_16QI): New built-in
6106 definition.
6107 (CMPGE_8HI): Likewise.
6108 (CMPGE_4SI): Likewise.
6109 (CMPGE_2DI): Likewise.
6110 (CMPGE_U16QI): Likewise.
6111 (CMPGE_U8HI): Likewise.
6112 (CMPGE_U4SI): Likewise.
6113 (CMPGE_U2DI): Likewise.
6114 (CMPLE_16QI): Likewise.
6115 (CMPLE_8HI): Likewise.
6116 (CMPLE_4SI): Likewise.
6117 (CMPLE_2DI): Likewise.
6118 (CMPLE_U16QI): Likewise.
6119 (CMPLE_U8HI): Likewise.
6120 (CMPLE_U4SI): Likewise.
6121 (CMPLE_U2DI): Likewise.
6122 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
6123 overloads for ALTIVEC_BUILTIN_VEC_CMPGE and
6124 ALTIVEC_BUILTIN_VEC_CMPLE.
6125 * config/rs6000/vector.md (vector_ge<mode>): Restrict to
6126 floating-point vector modes.
6127 (vector_nlt<mode>): New define_expand.
6128 (vector_nltu<mode>): Likewise.
6129 (vector_ngt<mode>): Likewise.
6130 (vector_ngtu<mode>): Likewise.
6131
6132 2015-07-02 Segher Boessenkool <segher@kernel.crashing.org>
6133
6134 PR rtl-optimization/66706
6135 * combine.c (make_compound_operation): If an AND of SUBREG of
6136 LSHIFTRT does not simplify, see if just the AND of SUBREG does.
6137
6138 2015-07-02 Alan Lawrence <alan.lawrence@arm.com>
6139
6140 * tree-pass.h (make_pass_ch_vect): New.
6141 * passes.def: Add pass_ch_vect just before pass_if_conversion.
6142
6143 * tree-ssa-loop-ch.c (ch_base, pass_ch_vect, pass_data_ch_vect,
6144 pass_ch::process_loop_p, pass_ch_vect::process_loop_p,
6145 make_pass_ch_vect): New.
6146 (pass_ch): Extend ch_base.
6147
6148 (pass_ch::execute): Move all but loop_optimizer_init/finalize to...
6149 (ch_base::copy_headers): ...here.
6150
6151 2015-07-02 Richard Biener <rguenther@suse.de>
6152
6153 * builtins.c (get_pointer_alignment_1): Handle POINTER_PLUS_EXPR.
6154 * fold-const.c (get_pointer_modulus_and_residue): Remove.
6155 (fold_binary_loc): Implement (T)ptr & CST in terms of
6156 get_pointer_alignment_1.
6157 * tree-vect-loop-manip.c (vect_gen_niters_for_prolog_loop):
6158 Make sure to build the alignment test on a SSA name without
6159 final alignment info valid only after the prologue.
6160
6161 2015-07-02 Hans-Peter Nilsson <hp@axis.com>
6162
6163 * config/cris/cris.md ("epilogue"): Remove condition.
6164 ("prologue"): Ditto.
6165
6166 2015-07-02 Richard Biener <rguenther@suse.de>
6167
6168 * tree-ssa-dom.c (build_and_record_new_cond): Add optional
6169 parameter to record a condition that is false.
6170 (record_conditions): When recording an extra NE_EXPR that is
6171 true also record a EQ_EXPR that is false.
6172
6173 2015-07-02 Bin Cheng <bin.cheng@arm.com>
6174
6175 * tree-ssa-loop-ivopts.c (struct ivopts_data): New field iv_obstack.
6176 (tree_ssa_iv_optimize_init): Initialize iv_obstack.
6177 (alloc_iv): New parameter. Allocate struct iv using obstack_alloc.
6178 (set_iv, find_interesting_uses_address, add_candidate_1): New
6179 argument to alloc_iv.
6180 (find_interesting_uses_op, find_interesting_uses_cond): Don't
6181 duplicate struct iv.
6182 (free_loop_data): Don't free struct iv explicitly.
6183 (tree_ssa_iv_optimize_finalize): Free iv_obstack.
6184
6185 2015-07-01 DJ Delorie <dj@redhat.com>
6186
6187 * config/s390/tpf.h (LIBSTDCXX): Change to CPP1.
6188 (LIB_SPEC): Add.
6189 (SUPPORTS_DISCRIMINATOR): Define.
6190
6191 2015-07-01 Richard Sandiford <richard.sandiford@arm.com>
6192
6193 PR bootstrap/66685
6194 * rtl.c (classify_insn): Only return JUMP_INSN for parallel returns if
6195 there are no CALLs in the same pattern.
6196
6197 2015-07-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
6198
6199 PR rtl-optimization/61047
6200 * rtlanal.c (get_initial_register_offset): New function.
6201 (rtx_addr_can_trap_p_1): Check offsets of stack references.
6202
6203 2015-07-01 Richard Biener <rguenther@suse.de>
6204
6205 * fold-const.c (fold_comparison): Move X - Y CMP 0 -> X CMP Y,
6206 X * C1 CMP 0 -> X CMP 0, X CMP X, ~X CMP ~Y -> Y CMP X and
6207 ~X CMP C -> X CMP' ~C to ...
6208 * match.pd: ... patterns here.
6209
6210 2015-07-01 Nick Clifton <nickc@redhat.com>
6211
6212 * config/msp430/msp430.md (zero_extendhipsi2): Use MOVX.A to store
6213 a 16-bit value into a 20-bit memory slot.
6214
6215 2015-07-01 Jiong Wang <jiong.wang@arm.com>
6216
6217 * doc/sourcebuild.texi (AArch64-specific attributes): Document
6218 "aarch64_tiny", "aarch64_small", "aarch64_large",
6219 "aarch64_little_endian", "aarch64_big_endian".
6220
6221 2015-07-01 Jiong Wang <jiong.wang@arm.com>
6222
6223 * doc/sourcebuild.texi (AArch64-specific attributes): New subsection.
6224 Document "aarch64_small_fpic".
6225
6226 2015-07-01 Jiong Wang <jiong.wang@arm.com>
6227
6228 * configure.ac: Add check for aarch64 assembler -fpic relocation
6229 modifier support.
6230 * configure: Regenerate.
6231 * config.in: Regenerate.
6232 * config/aarch64/aarch64.c (initialize_aarch64_code_model): Fall back
6233 to -fPIC if not support of -fpic relocation modifier in assembler.
6234
6235 2015-07-01 Richard Sandiford <richard.sandiford@arm.com>
6236
6237 PR bootstrap/66685
6238 * rtl.c (classify_insn): Handle returns in PARALLELs.
6239
6240 2015-07-01 Eric Botcazou <ebotcazou@adacore.com>
6241
6242 PR middle-end/66633
6243 * tree-nested.c (convert_nonlocal_omp_clauses): Initialize need_chain
6244 to true if the function is nested and if not optimizing.
6245 (convert_local_omp_clauses): Initialize need_frame to true if the
6246 function contains nested functions and if not optimizing.
6247
6248 2015-07-01 Richard Biener <rguenther@suse.de>
6249
6250 * fold-const.c (fold_binary_loc): Move ~X ^ X -> -1 and
6251 (X & Y) ^ Y -> ~X & Y transforms to ...
6252 * match.pd: ... here.
6253
6254 2015-07-01 Richard Biener <rguenther@suse.de>
6255
6256 * genmatch.c (expr::gen_transform): Shortcut re-simplifying
6257 of converts to avoid uninteresting noise from the conversion
6258 simplifying patterns.
6259
6260 2015-06-30 Sandra Loosemore <sandra@codesourcery.com>
6261
6262 * config/c6x/c6x.c (try_rename_operands): Do not depend on
6263 gcc_assert evaluating its argument for side-effect.
6264
6265 2015-06-30 Kaz Kojima <kkojima@gcc.gnu.org>
6266
6267 PR target/64833
6268 * config/sh/sh.md (casesi_worker_1): Set length to 8 when
6269 flag_pic is set.
6270
6271 2015-06-30 Eric Botcazou <ebotcazou@adacore.com>
6272
6273 * lto-streamer-out.c (class DFS): Adjust hash_scc method.
6274 (DFS::DFS): Pass this_ref_p and ref_p to hash_scc.
6275 (hash_scc): Add this_ref_p and ref_p parameters and pass them
6276 to the inner DFS walk.
6277
6278 2015-06-30 Richard Sandiford <richard.sandiford@arm.com>
6279
6280 * target-insns.def (jump): New targetm instruction pattern.
6281 * bb-reorder.c (get_uncond_jump_length): Use targetm.gen_jump
6282 instead of gen_jump.
6283 (fix_up_crossing_landing_pad): Likewise.
6284 (add_labels_and_missing_jumps): Likewise.
6285 (fix_crossing_conditional_branches): Likewise.
6286 * cfgrtl.c (try_redirect_by_replacing_jump): Likewise.
6287 (force_nonfallthru_and_redirect): Likewise.
6288 * cse.c (cse_insn): Likewise.
6289 * expmed.c (expand_divmod): Likewise.
6290 * expr.c (store_expr_with_bounds, expand_expr_real_2): Likewise.
6291 * haifa-sched.c (init_before_recovery): Likewise.
6292 (sched_create_recovery_edges): Likewise.
6293 * ifcvt.c (find_cond_trap): Likewise.
6294 * optabs.c (expand_doubleword_shift, expand_doubleword_clz): Likewise.
6295 (expand_float, expand_fix): Likewise.
6296 * stmt.c (emit_jump): Likewise.
6297
6298 2015-06-30 Richard Sandiford <richard.sandiford@arm.com>
6299
6300 * defaults.h (HAVE_load_multiple, gen_load_multiple)
6301 (HAVE_store_multiple, gen_store_multiple): Delete.
6302 * target-insns.def (load_multiple, store_multiple): New targetm
6303 instruction patterns.
6304 * expr.c (move_block_to_reg, move_block_from_reg): Use them instead
6305 of HAVE_*/gen_* interface.
6306
6307 2015-06-30 Richard Sandiford <richard.sandiford@arm.com>
6308
6309 * defaults.h (HAVE_mem_thread_fence, gen_mem_thread_fence)
6310 (HAVE_memory_barrier, gen_memory_barrier, HAVE_mem_signal_fence)
6311 (gen_mem_signal_fence): Delete.
6312 * target-insns.def (mem_signal_fence, mem_thread_fence)
6313 (memory_barrier): New targetm instruction patterns.
6314 * optabs.c (expand_mem_thread_fence): Use them instead of HAVE_*/gen_*
6315 interface.
6316 (expand_mem_signal_fence): Likewise.
6317
6318 2015-06-30 Richard Sandiford <richard.sandiford@arm.com>
6319
6320 * defaults.h (HAVE_epilogue, gen_epilogue): Delete.
6321 * target-insns.def (epilogue, prologue, sibcall_prologue): New
6322 targetm instruction patterns.
6323 * alias.c (init_alias_analysis): Use them instead of HAVE_*/gen_*
6324 interface.
6325 * calls.c (expand_call): Likewise.
6326 * cfgrtl.c (cfg_layout_finalize): Likewise.
6327 * df-scan.c (df_get_entry_block_def_set): Likewise.
6328 (df_get_exit_block_use_set): Likewise.
6329 * dwarf2cfi.c (pass_dwarf2_frame::gate): Likewise.
6330 * final.c (final_start_function): Likewise.
6331 * function.c (thread_prologue_and_epilogue_insns): Likewise.
6332 (reposition_prologue_and_epilogue_notes): Likewise.
6333 * reorg.c (find_end_label): Likewise.
6334 * toplev.c (process_options): Likewise.
6335
6336 2015-06-30 David Malcolm <dmalcolm@redhat.com>
6337
6338 * typed-splay-tree.h: New file.
6339
6340 2015-06-30 Vladimir Makarov <vmakarov@redhat.com>
6341
6342 PR debug/66691
6343 * lra-int.h (lra_substitute_pseudo): Add a parameter.
6344 (lra_substitute_pseudo_within_insn): Ditto.
6345 * lra.c (lra_substitute_pseudo): Add a parameter. Simplify subreg
6346 of constant.
6347 (lra_substitute_pseudo_within_insn): Add a parameter. Transfer it
6348 to lra_substitute_pseudo.
6349 * lra-lives.c (process_bb_lives): Add an argument to
6350 lra_substitute_pseudo_within_insn call.
6351 * lra-constraints.c (inherit_reload_reg, split_reg): Add an
6352 argument to lra_substitute_pseudo and
6353 lra_substitute_pseudo_within_insn calls.
6354 (remove_inheritance_pseudos, undo_optional_reloads): Ditto.
6355
6356 2015-06-30 H.J. Lu <hongjiu.lu@intel.com>
6357
6358 * configure: Regenerated.
6359
6360 2015-06-30 H.J. Lu <hongjiu.lu@intel.com>
6361
6362 * config.gcc: Support i[34567]86-*-elfiamcu target.
6363 * config/i386/iamcu.h: New.
6364 * config/i386/i386.opt: Add -miamcu.
6365 * doc/invoke.texi: Document -miamcu.
6366 * common/config/i386/i386-common.c (ix86_handle_option): Turn
6367 off x87/MMX/SSE/AVX codegen for -miamcu.
6368 * config/i386/i386-c.c (ix86_target_macros_internal): Define
6369 __iamcu/__iamcu__ for -miamcu.
6370 * config/i386/i386.h (PREFERRED_STACK_BOUNDARY_DEFAULT): Set
6371 to MIN_STACK_BOUNDARY if TARGET_IAMCU is true.
6372 (BIGGEST_ALIGNMENT): Set to 32 if TARGET_IAMCU is true.
6373 * config/i386/i386.c (ix86_option_override_internal): Ignore and
6374 warn -mregparm for Intel MCU. Turn on -mregparm=3 for Intel
6375 MCU by default. Default long double to 64-bit for Intel MCU.
6376 Turn on -freg-struct-return for Intel MCU. Issue an error when
6377 -miamcu is used in 64-bit or x32 mode or if x87, MMX, SSE or
6378 AVX is turned on.
6379 (function_arg_advance_32): Pass value whose size is no larger
6380 than 8 bytes in registers for Intel MCU.
6381 (function_arg_32): Likewise.
6382 (ix86_return_in_memory): Return value whose size is no larger
6383 than 8 bytes in registers for Intel MCU.
6384 (iamcu_alignment): New function.
6385 (ix86_data_alignment): Call iamcu_alignment if TARGET_IAMCU is
6386 true.
6387 (ix86_local_alignment): Don't increase alignment for Intel MCU.
6388 (x86_field_alignment): Return iamcu_alignment if TARGET_IAMCU is
6389 true.
6390
6391 2015-06-30 Marek Polacek <polacek@redhat.com>
6392
6393 * match.pd (X - (X / Y) * Y): Use convert1 and convert2. Convert
6394 both operands of the resulting expression.
6395
6396 * match.pd (~x | x): Don't use tree_nop_conversion_p. Build
6397 the final expression with the operand's type and then convert
6398 it to the type of the expression.
6399
6400 2015-06-30 Richard Biener <rguenther@suse.de>
6401
6402 * fold-const.c (fold_binary_loc): Move ~x & ~y -> ~(x | y) and
6403 ~x | ~y -> ~(x & y), (x & CST) ^ (x & CST2) -> (x & CST) | (x & CST2),
6404 (X | Y) ^ X -> Y & ~ X, ~X ^ ~Y to X ^ Y and ~X ^ C to X ^ ~C ...
6405 * match.pd: ... to patterns here.
6406
6407 2015-06-30 Richard Biener <rguenther@suse.de>
6408
6409 PR tree-optimization/66704
6410 * tree-vect-data-refs.c (vect_setup_realignment): Use
6411 make_ssa_name for non-SSA name source.
6412
6413 2015-06-30 Jakub Jelinek <jakub@redhat.com>
6414
6415 PR middle-end/66702
6416 * omp-low.c (simd_clone_adjust): Handle addressable linear
6417 or uniform parameters or non-gimple type uniform parameters.
6418
6419 2015-06-30 Richard Biener <rguenther@suse.de>
6420
6421 * fold-const.c (fold_unary_loc): Move abs(abs(x)) -> abs(x),
6422 ~ (-A) to A - 1, ~ (A - 1) or ~ (A + -1) to -A and some cases of
6423 ~(X ^ Y) to ~X ^ Y or X ^ ~Y if ~X or ~Y simplify to ...
6424 * match.pd: ... here.
6425 Add a few cases of A - B -> A + (-B) when B "easily" negates.
6426 Move (x & y) | x -> x and friends before
6427 (x | CST1) & CST2 -> (x & CST2) | (CST1 & CST2).
6428
6429 2015-06-30 Eric Botcazou <ebotcazou@adacore.com>
6430
6431 * config/sparc/leon.md (leon_load): Enable for all LEON variants if
6432 -mfix-ut699 is not specified.
6433 (leon3_load): Rename into...
6434 (ut699_load): ...this. Enable for all LEON variants if -mfix-ut699
6435 is specified.
6436
6437 2015-06-30 Marek Polacek <polacek@redhat.com>
6438
6439 * fold-const.c (fold_binary_loc): Move ~X | X folding ...
6440 * match.pd: ... here.
6441
6442 2015-06-30 Richard Biener <rguenther@suse.de>
6443
6444 * target-insns.def (canonicalize_funcptr_for_compare): Add.
6445 * fold-const.c (build_range_check): Replace uses of
6446 HAVE_canonicalize_funcptr_for_compare.
6447 (fold_widened_comparison): Likewise.
6448 (fold_sign_changed_comparison): Likewise.
6449 * dojump.c: Include "target.h".
6450 (do_compare_and_jump): Replace uses of
6451 HAVE_canonicalize_funcptr_for_compare and
6452 gen_canonicalize_funcptr_for_compare.
6453 * expr.c (do_store_flag): Likewise.
6454
6455 2015-06-30 Tom de Vries <tom@codesourcery.com>
6456
6457 PR tree-optimization/66652
6458 * tree-parloops.c (try_transform_to_exit_first_loop_alt): Use
6459 max_loop_iterations to determine if nit + 1 overflows.
6460
6461 2015-06-30 Richard Biener <rguenther@suse.de>
6462
6463 * tree-vrp.c (register_edge_assert_for_2): Also register
6464 asserts for dominating conversion results.
6465
6466 2015-06-30 Bin Cheng <bin.cheng@arm.com>
6467
6468 * tree-ssa-loop-ivopts.c (record_sub_use): Don't reset ssa_name
6469 field in struct iv.
6470
6471 2015-06-29 Jack Howarth <howarth.at.gcc@gmail.com>
6472
6473 PR target/66509
6474 * configure.ac: Fix filds and fildq test for 64-bit.
6475 * configure: Regenerated.
6476
6477 2015-06-29 Nathan Sidwell <nathan@codesourcery.com>
6478
6479 * config/nvptx/nvptx.md (nvptx_reorg_subreg): New fn, broken out of ...
6480 (nvptx_reorg): Here. Keep the non-subreg pieces.
6481
6482 2015-06-29 H.J. Lu <hongjiu.lu@intel.com>
6483
6484 * config/gnu-user.h (GNU_USER_TARGET_ENDFILE_SPEC): Use
6485 PIE_SPEC and NO_PIE_SPEC if HAVE_LD_PIE is defined.
6486
6487 2015-06-29 Uros Bizjak <ubizjak@gmail.com>
6488
6489 * config/i386/i386.md (*jcc_1): Use %! in asm template.
6490 Set attribute "length_nobnd" instead of "length".
6491 (*jcc_2): Ditto.
6492 (jump): Ditto.
6493 (*jcc_1_bnd, *jcc_2_bnd, jump_bnd): Remove insn patterns.
6494
6495 2015-06-29 Sandra Loosemore <sandra@codesourcery.com>
6496
6497 * config/nios2/nios2.c (nios2_delegitimize_address): Make
6498 assert less restrictive.
6499
6500 2015-06-29 Manuel López-Ibáñez <manu@gcc.gnu.org>
6501
6502 PR fortran/66605
6503 * cgraphunit.c (cgraph_node::finalize_function): Do not call
6504 do_warn_unused_parameter.
6505 * function.c (do_warn_unused_parameter): Move from here.
6506 * function.h (do_warn_unused_parameter): Do not declare.
6507
6508 2015-06-29 Matthew Wahab <matthew.wahab@arm.com>
6509
6510 PR target/65697
6511 * gcc.target/arm/armv-sync-comp-swap.c: New.
6512 * gcc.target/arm/armv-sync-op-acquire.c: New.
6513 * gcc.target/arm/armv-sync-op-full.c: New.
6514 * gcc.target/arm/armv-sync-op-release.c: New.
6515
6516 2015-06-29 Matthew Wahab <matthew.wahab@arm.com>
6517
6518 PR target/65697
6519 * config/armc/arm.c (arm_split_compare_and_swap): For ARMv8, replace an
6520 initial acquire barrier with final barrier.
6521
6522 2015-06-29 Matthew Wahab <matthew.wahab@arm.com>
6523
6524 PR target/65697
6525 * config/armc/arm.c (arm_split_atomic_op): For ARMv8, replace an
6526 initial acquire barrier with final barrier.
6527
6528 2015-06-29 Richard Henderson <rth@redhat.com>
6529
6530 * config/i386/constraints.md (Bf): New constraint.
6531 * config/i386/i386-c.c (ix86_target_macros): Define
6532 __GCC_ASM_FLAG_OUTPUTS__.
6533 * config/i386/i386.c (ix86_md_asm_adjust): Handle =@cc* constraints
6534 as flags outputs.
6535 * doc/extend.texi (FlagOutputOperands): Document them.
6536
6537 2015-06-29 Jiong Wang <jiong.wang@arm.com>
6538
6539 * config/arch64/aarch64.md (UNSPEC_TLSLE): New enumeration.
6540 * config/arch64/aarch64.md (tlsle_small): Rename to tlsle and use new
6541 unspec name.
6542 (tlsle_small_<mode>): Rename to tlsle_<mode> and use new unspec name.
6543 * config/arch64/aarch64-protos.h (arch64_symbol_type): Rename
6544 SYMBOL_SMALL_TPREL to SYMBOL_TLSLE.
6545 (aarch64_symbol_context): Ditto.
6546 * config/aarch64/aarch64.c (aarch64_load_symref_appropriately): Ditto
6547 and use new pattern name.
6548 (aarch64_expand_mov_immediate): Ditto.
6549 (aarch64_print_operand): Ditto.
6550 (aarch64_classify_tls_symbol): Ditto.
6551
6552 2015-06-29 Marek Polacek <polacek@redhat.com>
6553 Marc Glisse <marc.glisse@inria.fr>
6554
6555 * fold-const.c (fold_binary_loc): Move X - (X / Y) * Y -> X % Y to ...
6556 * match.pd: ... pattern here.
6557
6558 2015-06-29 Tom de Vries <tom@codesourcery.com>
6559
6560 * tree-parloops.c (try_transform_to_exit_first_loop_alt): Simplify
6561 function structure.
6562
6563 2015-06-29 Matthew Wahab <matthew.wahab@arm.com>
6564
6565 * doc/invoke.texi (Aarch64 Options, -march): Split out arch and
6566 feature description, split out the native option, add a link to
6567 the feature documentation, rearrange and slightly rewrite text.
6568 (Aarch64 options, -mcpu): Likewise.
6569 (Aarch64 options, Feature Modifiers): Add an anchor. Mention
6570 +rdma implies Adv. SIMD.
6571
6572 2015-06-29 Marek Polacek <polacek@redhat.com>
6573
6574 PR c/66322
6575 * function.c (stack_protect_epilogue): Remove a cast to int.
6576 * doc/invoke.texi: Update -Wswitch-bool description.
6577
6578 2015-06-29 Richard Biener <rguenther@suse.de>
6579
6580 * genmatch.c (add_operator): Treat ADDR_EXPR as atom.
6581 * fold-const.c (fold_binary_loc): Move &A - &B simplification
6582 via ptr_difference_const ...
6583 * match.pd: ... here.
6584 When matching (X ^ Y) == Y also match with swapped operands.
6585
6586 2015-06-29 Richard Biener <rguenther@suse.de>
6587
6588 * lto-streamer.h (LTO_major_version): Bump to 5.
6589
6590 2015-06-29 Richard Biener <rguenther@suse.de>
6591
6592 PR tree-optimization/66677
6593 * tree-vect-stmts.c (vect_transform_stmt): Make assert about
6594 STMT_VINFO_VEC_STMT clobbering less strict.
6595
6596 2015-06-29 Kugan Vivekanandarajah <kuganv@linaro.org>
6597
6598 PR middle-end/64130
6599 * tree-vrp.c (extract_range_from_binary_expr_1): For unsigned
6600 division, compute max and min when value ranges for dividend and
6601 divisor are available.
6602
6603 2015-06-28 Chung-Lin Tang <cltang@codesourcery.com>
6604 Sandra Loosemore <sandra@codesourcery.com>
6605
6606 * regrename.h (regrename_do_replace): Change to return bool.
6607 * regrename.c (rename_chains): Check return value of
6608 regname_do_replace.
6609 (regrename_do_replace): Re-validate the modified insns and
6610 return bool status.
6611 * config/aarch64/cortex-a57-fma-steering.c (rename_single_chain):
6612 Update to match rename_chains changes.
6613 * config/c6x/c6x.c (try_rename_operands): Assert that
6614 regrename_do_replace returns true.
6615
6616 2015-06-28 Uros Bizjak <ubizjak@gmail.com>
6617
6618 * config/i386/i386.md (<mode>_ldx): Do not zero-extend non-Pmode
6619 operand 2 here. Use copy_addr_to_reg to copy non-index
6620 register operand 2 to a temporary.
6621 (<mode>_stx): Ditto for operand 1.
6622 (*<mode>_ldx, *<mode>_stx): Remove enclosing parallel.
6623 * config/i386/i386.c (ix86_load_bounds): Zero-extend non-Pmode ptr here.
6624 (ix86_store_bounds): Ditto.
6625
6626 2015-06-27 Patrick Palka <ppalka@gcc.gnu.org>
6627
6628 * print-tree.c (print_node) [TREE_VEC]: Print its length.
6629
6630 2015-06-26 Andrew MacLeod <amacleod@redhat.com>
6631
6632 * gimple.c (gimple_call_set_fndecl): Remove.
6633 * gimple.h (gimple_call_set_fndecl): Relocate to gimple.h and call
6634 build1_loc directly instead of build_fold_addr_expr_loc.
6635
6636 2015-06-26 Richard Sandiford <richard.sandiford@arm.com>
6637
6638 * hash-map.h (hash_map::traverse): Use the definition of the
6639 Key typedef rather than the typedef itself.
6640
6641 2015-06-26 Martin Jambor <mjambor@suse.cz>
6642
6643 PR debug/66301
6644 * tree-ssa-pre.c (before_dom_children): Check that dump_file is not
6645 NULL instead of calling dump_enabled_p.
6646
6647 2015-06-26 James Greenhalgh <james.greenhalgh@arm.com>
6648
6649 * config/aarch64/aarch64.opt: (override): New.
6650 * doc/invoke.texi (override): Document.
6651 * config/aarch64/aarch64.c (aarch64_flag_desc): New
6652 (aarch64_fusible_pairs): Likewise.
6653 (aarch64_tuning_flags): Likewise.
6654 (aarch64_tuning_override_function): Likewise.
6655 (aarch64_tuning_override_functions): Likewise.
6656 (aarch64_parse_one_option_token): Likewise.
6657 (aarch64_parse_boolean_options): Likewise.
6658 (aarch64_parse_fuse_string): Likewise.
6659 (aarch64_parse_tune_string): Likewise.
6660 (aarch64_parse_one_override_token): Likewise.
6661 (aarch64_parse_override_string): Likewise.
6662 (aarch64_override_options): Parse the -override string if it
6663 is present.
6664
6665 2015-06-26 James Greenhalgh <james.greenhalgh@arm.com>
6666
6667 * config/aarch64/aarch64-protos.h (tune_params): Remove
6668 const from members.
6669 (aarch64_tune_params): Remove const, change to no longer be
6670 a pointer.
6671 * config/aarch64/aarch64.c (aarch64_tune_params): Remove const,
6672 change to no longer be a pointer, initialize to generic_tunings.
6673 (aarch64_min_divisions_for_recip_mul): Change dereference of
6674 aarch64_tune_params to member access.
6675 (aarch64_reassociation_width): Likewise.
6676 (aarch64_rtx_mult_cost): Likewise.
6677 (aarch64_address_cost): Likewise.
6678 (aarch64_branch_cost): Likewise.
6679 (aarch64_rtx_costs): Likewise.
6680 (aarch64_register_move_cost): Likewise.
6681 (aarch64_memory_move_cost): Likewise.
6682 (aarch64_sched_issue_rate): Likewise.
6683 (aarch64_builtin_vectorization_cost): Likewise.
6684 (aarch64_override_options): Take a copy of the selected tuning
6685 struct in to aarch64_tune_params, rather than just setting
6686 a pointer, change dereferences of aarch64_tune_params to member
6687 accesses.
6688 (aarch64_override_options_after_change): Change dereferences of
6689 aarch64_tune_params to member access.
6690 (aarch64_macro_fusion_p): Likewise.
6691 (aarch_macro_fusion_pair_p): Likewise.
6692 * config/aarch64/cortex-a57-fma-steering.c (gate): Likewise.
6693
6694 2015-06-26 James Greenhalgh <james.greenhalgh@arm.com>
6695
6696 * config/aarch64/aarch64.h (AARCH64_FL_USE_FMA_STEERING_PASS): Delete.
6697 (aarch64_tune_flags): Likewise.
6698 (AARCH64_TUNE_FMA_STEERING): Likewise.
6699 * config/aarch64/aarch64-cores.def (cortex-a57): Remove reference
6700 to AARCH64_FL_USE_FMA_STEERING_PASS.
6701 (cortex-a57.cortex-a53): Likewise.
6702 (cortex-a72): Use cortexa72_tunings.
6703 (cortex-a72.cortex-a53): Likewise.
6704 (exynos-m1): Likewise.
6705 * config/aarch64/aarch64-protos.h (tune_params): Add
6706 a field: extra_tuning_flags.
6707 * config/aarch64/aarch64-tuning-flags.def: New.
6708 * config/aarch64/aarch64-protos.h (AARCH64_EXTRA_TUNING_OPTION): New.
6709 (aarch64_extra_tuning_flags): Likewise.
6710 (aarch64_tune_params): Declare here.
6711 * config/aarch64/aarch64.c (generic_tunings): Set extra_tuning_flags.
6712 (cortexa53_tunings): Likewise.
6713 (cortexa57_tunings): Likewise.
6714 (thunderx_tunings): Likewise.
6715 (xgene1_tunings): Likewise.
6716 (cortexa72_tunings): New.
6717 * config/aarch64/cortex-a57-fma-steering.c: Include aarch64-protos.h.
6718 (gate): Check against aarch64_tune_params.
6719 * config/aarch64/t-aarch64 (cortex-a57-fma-steering.o): Depend on
6720 aarch64-protos.h.
6721
6722 2015-06-26 James Greenhalgh <james.greenhalgh@arm.com>
6723
6724 * config/aarch64/aarch64-fusion-pairs.def: New.
6725 * config/aarch64/aarch64-protos.h (aarch64_fusion_pairs): New.
6726 * config/aarch64/aarch64.c (AARCH64_FUSE_NOTHING): Move to
6727 aarch64_fusion_pairs.
6728 (AARCH64_FUSE_MOV_MOVK): Likewise.
6729 (AARCH64_FUSE_ADRP_ADD): Likewise.
6730 (AARCH64_FUSE_MOVK_MOVK): Likewise.
6731 (AARCH64_FUSE_ADRP_LDR): Likewise.
6732 (AARCH64_FUSE_CMP_BRANCH): Likewise.
6733
6734 2015-06-26 Jiong Wang <jiong.wang@arm.com>
6735
6736 * config/aarch64/aarch64-protos.h (aarch64_symbol_type): New type
6737 SYMBOL_SMALL_GOT_28K.
6738 * config/aarch64/aarch64.md: (ldr_got_small_<mode>): Support new GOT
6739 relocation modifiers.
6740 (unspec): New enum "UNSPEC_GOTMALLPIC28K.
6741 (ldr_got_small_28k_<mode>): New.
6742 (ldr_got_small_28k_sidi): New.
6743 * config/aarch64/iterators.md (got_modifier): New mode iterator.
6744 * config/aarch64/aarch64-otps.h (aarch64_code_model): New model.
6745 * config/aarch64/aarch64.c (aarch64_load_symref_appropriately): Support
6746 SYMBOL_SMALL_GOT_28K.
6747 (aarch64_rtx_costs): Add costs for new instruction sequences.
6748 (initialize_aarch64_code_model): Initialize new model.
6749 (aarch64_classify_symbol): Recognize new model and new symbol classification.
6750 (aarch64_asm_preferred_eh_data_format): Support new model.
6751 (aarch64_load_symref_appropriately): Generate new instruction
6752 sequences for -fpic.
6753 (TARGET_USE_PSEUDO_PIC_REG): New definition.
6754 (aarch64_use_pseudo_pic_reg): New function.
6755
6756 2015-06-26 Jiong Wang <jiong.wang@arm.com>
6757
6758 * config/aarch64/aarch64-protos.h (aarch64_symbol_type): Rename
6759 SYMBOL_SMALL_GOT to SYMBOL_SMALL_GOT_4G.
6760 * config/aarch64/aarch64.c (aarch64_load_symref_appropriately): Ditto.
6761 (aarch64_expand_mov_immediate): Ditto.
6762 (aarch64_print_operand): Ditto.
6763 (aarch64_classify_symbol): Ditto.
6764
6765 2015-06-26 Nathan Sidwell <nathan@codesourcery.com>
6766
6767 * config/nvptx/nvptx.md (call_operation): Remove unused variables.
6768
6769 2015-06-26 Bin Cheng <bin.cheng@arm.com>
6770
6771 PR bootstrap/66638
6772 * tree-ssa-loop-niter.c (loop_exits_before_overflow): Skip if
6773 assertion failed. Remove assertion itself.
6774
6775 2015-06-26 Richard Biener <rguenther@suse.de>
6776
6777 * fold-const.c (fold_binary_loc): Remove -A CMP -B -> A CMP B
6778 and -A CMP CST -> A CMP -CST which is redundant with a pattern
6779 in match.pd.
6780 Move (A | C) == D where C & ~D != 0 -> 0, (X ^ Y) ==/!= 0 -> X ==/!= Y,
6781 (X ^ Y) ==/!= {Y,X} -> {X,Y} ==/!= 0 and
6782 (X ^ C1) op C2 -> X op (C1 ^ C2) to ...
6783 * match.pd: ... patterns here.
6784
6785 2015-06-26 Marek Polacek <polacek@redhat.com>
6786
6787 * match.pd ((x | y) & ~(x & y) -> x ^ y,
6788 (x | y) & (~x ^ y) -> x & y): New patterns.
6789
6790 2015-06-26 Richard Sandiford <richard.sandiford@arm.com>
6791
6792 * rtl.h (emit): Add an optional boolean parameter to control
6793 whether barriers are emitted.
6794 * emit-rtl.c (emit): Likewise.
6795 * gensupport.c (get_emit_function): Return null rather than "emit".
6796 * genemit.c (gen_emit_seq): Handle the null return value.
6797 Don't emit barriers after the final instruction in the sequence.
6798 * gentarget-def.c (main): Don't emit barriers after the instruction.
6799
6800 2015-06-26 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
6801
6802 * config/arm/arm.c (arm_output_multireg_pop): Fix use of
6803 TARGET_UNIFIED_ASM.
6804
6805 2015-06-26 Richard Biener <rguenther@suse.de>
6806
6807 * match.pd: Allow associating FLOAT_TYPE_P when flag_associative_math.
6808
6809 2015-06-26 Richard Biener <rguenther@suse.de>
6810
6811 * match.pd: Allow (p +p off1) +p off2 to (p +p (off1 + off2))
6812 irrespective on whether the inner operation has a single use
6813 of both off are constant.
6814
6815 2015-06-26 Uros Bizjak <ubizjak@gmail.com>
6816 Segher Boessenkool <segher@kernel.crashing.org>
6817
6818 PR target/66412
6819 * config/i386/i386.md (various splitters): Use shallow_copy_rtx
6820 before doing PUT_MODE or PUT_CODE on operands to avoid
6821 in-place RTX modification.
6822
6823 2015-06-25 H.J. Lu <hongjiu.lu@intel.com>
6824
6825 * gentarget-def.c (def_target_insn): Cast return of strtol to
6826 unsigned int.
6827
6828 2015-06-25 Andrew MacLeod <amacleod@redhat.com>
6829
6830 * gimple.h (gimple_call_set_fn): Move inline function.
6831 * gimple.c (gimple_call_set_fn): Relocate here.
6832
6833 2015-06-25 Oleg Endo <olegendo@gcc.gnu.org>
6834
6835 PR target/65979
6836 PR target/66611
6837 * config/sh/sh.md (tstsi_t peephole2): Use insn_invalid_p to check if
6838 the replacement insn will work.
6839
6840 2015-06-25 H.J. Lu <hongjiu.lu@intel.com>
6841
6842 * gcc.c (driver_handle_option): Validate -pie if PIE is enabled
6843 by default.
6844
6845 2015-06-25 Andrew MacLeod <amacleod@redhat.com>
6846
6847 * function.h (ipa_opt_pass, ipa_opt_pass_d): Move forward declarations.
6848 * cgraph.h: Include ipa-ref.h and plugin-api.h.
6849 (ipa_opt_pass, ipa_opt_pass_d)): Relocate forward declarations here.
6850 (symtab_node::address_can_be_compared_p): Move function.
6851 * cgraph.c (symtab_node::address_can_be_compared_p): Relocate function
6852 definition here.
6853 * asan.c: Remove ipa-ref.h and plugin-api.h from include list.
6854 * auto-profile.c: Likewise.
6855 * bb-reorder.c: Likewise.
6856 * builtins.c: Likewise.
6857 * calls.c: Likewise.
6858 * cfgexpand.c: Likewise.
6859 * cgraphbuild.c: Likewise.
6860 * cgraphclones.c: Likewise.
6861 * cgraphunit.c: Likewise.
6862 * combine.c: Likewise.
6863 * coverage.c: Likewise.
6864 * data-streamer-in.c: Likewise.
6865 * data-streamer-out.c: Likewise.
6866 * data-streamer.c: Likewise.
6867 * dbxout.c: Likewise.
6868 * dwarf2out.c: Likewise.
6869 * except.c: Likewise.
6870 * expr.c: Likewise.
6871 * final.c: Likewise.
6872 * fold-const.c: Likewise.
6873 * ggc-page.c: Likewise.
6874 * gimple-fold.c: Likewise.
6875 * gimple-iterator.c: Likewise.
6876 * gimple-pretty-print.c: Likewise.
6877 * gimple-streamer-in.c: Likewise.
6878 * gimple-streamer-out.c: Likewise.
6879 * gimple.c: Likewise.
6880 * gimplify.c: Likewise.
6881 * ipa-chkp.c: Likewise.
6882 * ipa-comdats.c: Likewise.
6883 * ipa-cp.c: Likewise.
6884 * ipa-devirt.c: Likewise.
6885 * ipa-icf-gimple.c: Likewise.
6886 * ipa-icf.c: Likewise.
6887 * ipa-inline-analysis.c: Likewise.
6888 * ipa-inline-transform.c: Likewise.
6889 * ipa-inline.c: Likewise.
6890 * ipa-polymorphic-call.c: Likewise.
6891 * ipa-profile.c: Likewise.
6892 * ipa-prop.c: Likewise.
6893 * ipa-pure-const.c: Likewise.
6894 * ipa-ref.c: Likewise.
6895 * ipa-reference.c: Likewise.
6896 * ipa-split.c: Likewise.
6897 * ipa-utils.c: Likewise.
6898 * ipa-visibility.c: Likewise.
6899 * ipa.c: Likewise.
6900 * langhooks.c: Likewise.
6901 * lto-cgraph.c: Likewise.
6902 * lto-compress.c: Likewise.
6903 * lto-opts.c: Likewise.
6904 * lto-section-in.c: Likewise.
6905 * lto-section-out.c: Likewise.
6906 * lto-streamer-in.c: Likewise.
6907 * lto-streamer-out.c: Likewise.
6908 * lto-streamer.c: Likewise.
6909 * omp-low.c: Likewise.
6910 * opts-global.c: Likewise.
6911 * passes.c: Likewise.
6912 * predict.c: Likewise.
6913 * print-tree.c: Likewise.
6914 * profile.c: Likewise.
6915 * ree.c: Likewise.
6916 * sanopt.c: Likewise.
6917 * stor-layout.c: Likewise.
6918 * symtab.c: Likewise.
6919 * toplev.c: Likewise.
6920 * trans-mem.c: Likewise.
6921 * tree-cfg.c: Likewise.
6922 * tree-chkp.c: Likewise.
6923 * tree-eh.c: Likewise.
6924 * tree-emutls.c: Likewise.
6925 * tree-inline.c: Likewise.
6926 * tree-nested.c: Likewise.
6927 * tree-parloops.c: Likewise.
6928 * tree-pretty-print.c: Likewise.
6929 * tree-profile.c: Likewise.
6930 * tree-sra.c: Likewise.
6931 * tree-ssa-alias.c: Likewise.
6932 * tree-ssa-live.c: Likewise.
6933 * tree-ssa-loop-ivcanon.c: Likewise.
6934 * tree-ssa-loop-ivopts.c: Likewise.
6935 * tree-ssa-pre.c: Likewise.
6936 * tree-ssa-sccvn.c: Likewise.
6937 * tree-ssa-strlen.c: Likewise.
6938 * tree-ssa-structalias.c: Likewise.
6939 * tree-streamer-in.c: Likewise.
6940 * tree-streamer-out.c: Likewise.
6941 * tree-streamer.c: Likewise.
6942 * tree-switch-conversion.c: Likewise.
6943 * tree-tailcall.c: Likewise.
6944 * tree-vect-data-refs.c: Likewise.
6945 * tree-vect-stmts.c: Likewise.
6946 * tree-vectorizer.c: Likewise.
6947 * tree.c: Likewise.
6948 * tsan.c: Likewise.
6949 * ubsan.c: Likewise.
6950 * value-prof.c: Likewise.
6951 * varasm.c: Likewise.
6952 * varpool.c: Likewise.
6953 * config/arm/arm.c: Likewise.
6954 * config/bfin/bfin.c: Likewise.
6955 * config/c6x/c6x.c: Likewise.
6956 * config/cris/cris.c: Likewise.
6957 * config/darwin-c.c: Likewise.
6958 * config/darwin.c: Likewise.
6959 * config/i386/i386.c: Likewise.
6960 * config/i386/winnt.c: Likewise.
6961 * config/microblaze/microblaze.c: Likewise.
6962 * config/mips/mips.c: Likewise.
6963 * config/rs6000/rs6000.c: Likewise.
6964 * config/rx/rx.c: Likewise.
6965 * config/s390/s390.c: Likewise.
6966 * config/tilegx/mul-tables.c: Likewise.
6967
6968 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
6969
6970 * config/aarch64/aarch64.c, config/alpha/alpha.c,
6971 config/arm/arm.c, config/avr/avr.c, config/bfin/bfin.c,
6972 config/c6x/c6x.c, config/cr16/cr16.c, config/cris/cris.c,
6973 config/fr30/fr30.c, config/frv/frv.c, config/h8300/h8300.c,
6974 config/i386/i386.c, config/ia64/ia64.c, config/iq2000/iq2000.c,
6975 config/lm32/lm32.c, config/m32c/m32c.c, config/m32r/m32r.c,
6976 config/m68k/m68k.c, config/mcore/mcore.c, config/mep/mep.c,
6977 config/microblaze/microblaze.c, config/mips/mips.c,
6978 config/mmix/mmix.c, config/mn10300/mn10300.c,
6979 config/moxie/moxie.c, config/msp430/msp430.c,
6980 config/nds32/nds32.c, config/nios2/nios2.c, config/nvptx/nvptx.c,
6981 config/pa/pa.c, config/pdp11/pdp11.c, config/rl78/rl78.c,
6982 config/rs6000/rs6000.c, config/rx/rx.c, config/s390/s390.c,
6983 config/sh/sh.c, config/sparc/sparc.c, config/spu/spu.c,
6984 config/stormy16/stormy16.c, config/tilegx/tilegx.c,
6985 config/tilepro/tilepro.c, config/v850/v850.c, config/vax/vax.c,
6986 config/visium/visium.c, config/xtensa/xtensa.c: Add comment above
6987 target-def.h include.
6988 * config/ft32/ft32.c: Likewise. Fix misapplied hunk.
6989
6990 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
6991
6992 * Makefile.in (TARGET_DEF): Add target-insns.def.
6993 (.PRECIOUS, simple_rtl_generated_h): Add insn-target-def.h.
6994 (build/gentarget-def.o): New rule.
6995 (genprogrtl): Add target-def.
6996 * target-insns.def, gentarget-def.c: New files.
6997 * target.def: Add targetm.have_* and targetm.gen_* hooks,
6998 based on the contents of target-insns.def.
6999 * defaults.h (HAVE_simple_return, gen_simple_return): Delete.
7000 (HAVE_return, gen_return): Delete.
7001 * target-def.h: Include insn-target-def.h.
7002 * cfgrtl.c (force_nonfallthru_and_redirect): Use targetm interface
7003 instead of direct calls. Rely on them to do the appropriate assertions.
7004 * function.c (gen_return_pattern): Likewise. Return an rtx_insn *.
7005 (convert_jumps_to_returns): Use targetm interface instead of
7006 direct calls.
7007 (thread_prologue_and_epilogue_insns): Likewise.
7008 * reorg.c (find_end_label, dbr_schedule): Likewise.
7009 * shrink-wrap.h (SHRINK_WRAPPING_ENABLED): Likewise.
7010 * shrink-wrap.c (convert_to_simple_return): Likewise.
7011 (try_shrink_wrapping): Use SHRINK_WRAPPING_ENABLED.
7012
7013 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
7014
7015 * config/aarch64/aarch64.c, config/alpha/alpha.c, config/arm/arm.c,
7016 config/avr/avr.c, config/bfin/bfin.c, config/c6x/c6x.c,
7017 config/cr16/cr16.c, config/cris/cris.c, config/fr30/fr30.c,
7018 config/frv/frv.c, config/ft32/ft32.c, config/h8300/h8300.c,
7019 config/i386/i386.c, config/ia64/ia64.c, config/iq2000/iq2000.c,
7020 config/lm32/lm32.c, config/m32c/m32c.c, config/m32r/m32r.c,
7021 config/m68k/m68k.c, config/mcore/mcore.c, config/mep/mep.c,
7022 config/microblaze/microblaze.c, config/mips/mips.c, config/mmix/mmix.c,
7023 config/mn10300/mn10300.c, config/moxie/moxie.c, config/msp430/msp430.c,
7024 config/nds32/nds32.c, config/nios2/nios2.c, config/nvptx/nvptx.c,
7025 config/pa/pa.c, config/pdp11/pdp11.c, config/rl78/rl78.c,
7026 config/rs6000/rs6000.c, config/rx/rx.c, config/s390/s390.c,
7027 config/sh/sh.c, config/sparc/sparc.c, config/spu/spu.c,
7028 config/stormy16/stormy16.c, config/tilegx/tilegx.c,
7029 config/tilepro/tilepro.c, config/v850/v850.c, config/vax/vax.c,
7030 config/visium/visium.c, config/xtensa/xtensa.c: Move target-def.h
7031 includes to end.
7032
7033 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
7034
7035 * hash-map-traits.h (simple_hashmap_traits::key_type): New typedef.
7036 (unbounded_int_hashmap_traits::key_type): Likewise.
7037 * hash-map.h (hash_map): Get the key type from the traits.
7038 * hash-traits.h (default_hash_traits): By default, inherit from the
7039 template parameter.
7040 * alias.c (alias_set_traits): Delete.
7041 (alias_set_entry_d::children): Use alias_set_hash as the first
7042 template parameter.
7043 (record_alias_subset): Update accordingly.
7044 * except.c (tree_hash_traits): Delete.
7045 (type_to_runtime_map): Use tree_hash as the first template parameter.
7046 (init_eh): Update accordingly.
7047 * genmatch.c (capture_id_map_hasher): Delete.
7048 (cid_map_t): Use nofree_string_hash as first template parameter.
7049 * ipa-icf.h (symbol_compare_hashmap_traits): Delete.
7050 * ipa-icf.c (sem_item_optimizer::subdivide_classes_by_sensitive_refs):
7051 Use symbol_compare_hash as the first template parameter in
7052 subdivide_hash_map.
7053 * mem-stats.h (mem_usage_pair::mem_alloc_hashmap_traits): Delete.
7054 (mem_usage_pair::mem_map_t): Use mem_location_hash as the first
7055 template parameter.
7056 * passes.c (pass_registry_hasher): Delete.
7057 (name_to_pass_map): Use nofree_string_hash as the first template
7058 parameter.
7059 (register_pass_name): Update accordingly.
7060 * sanopt.c (sanopt_tree_map_traits): Delete.
7061 (sanopt_tree_triplet_map_traits): Delete.
7062 (sanopt_ctx::asan_check_map): Use tree_operand_hash as the first
7063 template parameter.
7064 (sanopt_ctx::vptr_check_map): Use sanopt_tree_triplet_hash as
7065 the first template parameter.
7066 * sese.c (rename_map_hasher): Delete.
7067 (rename_map_type): Use tree_ssa_name_hash as the first template
7068 parameter.
7069 * symbol-summary.h (function_summary::summary_hashmap_traits): Delete.
7070 (function_summary::m_map): Use map_hash as the first template
7071 parameter.
7072 (function_summary::release): Update accordingly.
7073 * tree-if-conv.c (phi_args_hash_traits): Delete.
7074 (predicate_scalar_phi): Use tree_operand_hash as the first template
7075 parameter to phi_arg_map.
7076 * tree-inline.h (dependence_hasher): Delete.
7077 (copy_body_data::dependence_map): Use dependence_hash as the first
7078 template parameter.
7079 * tree-inline.c (remap_dependence_clique): Update accordingly.
7080 * tree-ssa-strlen.c (stridxlist_hash_traits): Delete.
7081 (decl_to_stridxlist_htab): Use tree_decl_hash as the first template
7082 parameter.
7083 (addr_stridxptr): Update accordingly.
7084 * value-prof.c (profile_id_traits): Delete.
7085 (cgraph_node_map): Use profile_id_hash as the first template
7086 parameter.
7087 (init_node_map): Update accordingly.
7088 * config/alpha/alpha.c (string_traits): Delete.
7089 (machine_function::links): Use nofree_string_hash as the first
7090 template parameter.
7091 (alpha_use_linkage, alpha_write_linkage): Update accordingly.
7092 * config/m32c/m32c.c (pragma_traits): Delete.
7093 (pragma_htab): Use nofree_string_hash as the first template parameter.
7094 (m32c_note_pragma_address): Update accordingly.
7095 * config/mep/mep.c (pragma_traits): Delete.
7096 (pragma_htab): Use nofree_string_hash as the first template parameter.
7097 (mep_note_pragma_flag): Update accordingly.
7098 * config/mips/mips.c (mips16_flip_traits): Delete.
7099 (mflip_mips16_htab): Use nofree_string_hash as the first template
7100 parameter.
7101 (mflip_mips16_use_mips16_p): Update accordingly.
7102 (local_alias_traits): Delete.
7103 (mips16_local_aliases): Use nofree_string_hash as the first template
7104 parameter.
7105 (mips16_local_alias): Update accordingly.
7106
7107 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
7108
7109 * hash-map-traits.h (default_hashmap_traits): Delete.
7110
7111 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
7112
7113 * hash-map-traits.h (unbounded_hashmap_traits): New class.
7114 (unbounded_int_hashmap_traits): Likewise.
7115 * cfgexpand.c (part_traits): Use unbounded_int_hashmap_traits.
7116
7117 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
7118
7119 * ipa-icf.h (symbol_compare_hash): New class.
7120 (symbol_compare_hashmap_traits): Use it.
7121 * mem-stats.h (mem_alloc_description::mem_location_hash): New class.
7122 (mem_alloc_description::mem_alloc_hashmap_traits): Use it.
7123 (mem_alloc_description::reverse_mem_map_t): Remove redundant
7124 default_hashmap_traits.
7125 * sanopt.c (sanopt_tree_triplet_hash): New class.
7126 (sanopt_tree_triplet_map_traits): Use it.
7127
7128 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
7129
7130 * gengtype-parse.c (require_template_declaration): Allow '+' in
7131 template parameters. Consolidate cases.
7132 * hash-traits.h (int_hash): New class.
7133 * alias.c (alias_set_hash): New structure.
7134 (alias_set_traits): Use it.
7135 * symbol-summary.h (function_summary::map_hash): New class.
7136 (function_summary::summary_hashmap_traits): Use it.
7137 * tree-inline.h (dependence_hash): New class.
7138 (dependence_hasher): Use it.
7139 * tree-ssa-reassoc.c (oecount_hasher): Use int_hash.
7140 * value-prof.c (profile_id_hash): New class.
7141 (profile_id_traits): Use it.
7142
7143 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
7144
7145 * config/mips/mips.c (mips16_flip_traits): Use it.
7146 (local_alias_traits, mips16_local_aliases): Convert from a map of
7147 rtxes to a map of symbol names.
7148 (mips16_local_alias): Update accordingly.
7149
7150 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
7151
7152 * hash-traits.h (string_hash, nofree_string_hash): New classes.
7153 * genmatch.c (capture_id_map_hasher): Use nofree_string_hash.
7154 * passes.c (pass_registry_hasher): Likewise.
7155 * config/alpha/alpha.c (string_traits): Likewise.
7156 * config/i386/winnt.c (i386_find_on_wrapper_list): Likewise.
7157 * config/m32c/m32c.c (pragma_traits): Likewise.
7158 * config/mep/mep.c (pragma_traits): Likewise.
7159
7160 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
7161
7162 * tree-hash-traits.h (tree_hash): New class.
7163 * except.c: Include tree-hash-traits.h.
7164 (tree_hash_traits): Use tree_hash.
7165
7166 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
7167
7168 * tree-hash-traits.h (tree_ssa_name_hasher): New class.
7169 * sese.c: Include tree-hash-traits.h.
7170 (rename_map_hasher): Use tree_ssa_name_hasher.
7171
7172 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
7173
7174 * tree-hash-traits.h (tree_decl_hash): New class.
7175 * tree-ssa-strlen.c: Include tree-hash-traits.h.
7176 (stridxlist_hash_traits): Use tree_decl_hash.
7177
7178 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
7179
7180 * tree-hash-traits.h: New file.
7181 (tree_operand_hash): New class.
7182 * sanopt.c: Include tree-hash-traits.h.
7183 (sanopt_tree_map_traits): Use tree_operand_hash.
7184 * tree-if-conv.c: Include tree-hash-traits.h.
7185 (phi_args_hash_traits): Use tree_operand_hash.
7186 * tree-ssa-uncprop.c: Include tree-hash-traits.h.
7187 (val_ssa_equiv_hash_traits): Use tree_operand_hash.
7188
7189 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
7190
7191 * hash-map-traits.h: Include hash-traits.h.
7192 (simple_hashmap_traits): New class.
7193 * mem-stats.h (hash_map): Change the default traits to
7194 simple_hashmap_traits<default_hash_traits<Key> >.
7195
7196 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
7197
7198 * hash-table.h: Update comments.
7199
7200 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
7201
7202 * hash-traits.h (default_hash_traits): New structure.
7203 * hash-set.h (default_hashset_traits): Delete.
7204 (hash_set): Use default_hash_traits<Key> instead of
7205 default_hashset_traits. Delete hash_entry type and use Key directly.
7206 * ipa-devirt.c (pair_traits): Delete.
7207 (default_hash_traits <type_pair>): Override.
7208 (odr_subtypes_equivalent_p): Remove pair_types template parameter.
7209 (odr_types_equivalent_p, add_type_duplicate): Likewise.
7210
7211 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
7212
7213 * hash-traits.h (typed_noop_remove): Don't require a pointer type.
7214
7215 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
7216
7217 * hash-table.h (has_is_deleted, is_deleted_helper): Delete.
7218 (has_is_empty, is_empty_helper): Delete.
7219 (has_mark_deleted, mark_deleted_helper): Delete.
7220 (has_mark_empty, mark_empty_helper): Delete.
7221 (hash_table::is_deleted): Call the Descriptor unconditionally.
7222 (hash_table::is_empty): Likewise.
7223 (hash_table::mark_deleted): Likewise.
7224 (hash_table::mark_empty): Likewise.
7225
7226 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
7227
7228 * cgraph.h (asmname_hasher): Inherit from ggc_ptr_hash. Remove
7229 redundant typedefs and members.
7230 * coverage.c (counts_entry): Inherit from pointer_hash. Remove
7231 redundant typedefs.
7232 * dwarf2out.c (cu_hash_table_entry_hasher): Likewise.
7233 * ipa-devirt.c (odr_name_hasher): Likewise.
7234 (polymorphic_call_target_hasher): Likewise.
7235 * ira-costs.c (cost_classes_hasher): Likewise.
7236 * statistics.c (stats_counter_hasher): Likewise.
7237 * trans-mem.c (log_entry_hasher): Likewise.
7238 * tree-ssa-dom.c (expr_elt_hasher): Likewise.
7239 * tree-ssa-sccvn.c (vn_phi_hasher, vn_reference_hasher): Likewise.
7240 * tree-ssa-tail-merge.c (same_succ_def): Likewise.
7241 * var-tracking.c (variable_hasher): Likewise.
7242 * valtrack.h (dead_debug_hash_descr): Inherit from free_ptr_hash.
7243 Remove redundant typedefs and members.
7244
7245 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
7246
7247 * hash-traits.h (ggc_cache_hasher): Rename to...
7248 (ggc_cache_remove): ...this and remove typedefs.
7249 (ggc_cache_ptr_hash): New class.
7250 * hash-table.h: Update commentary.
7251 * emit-rtl.c (const_int_hasher): Inherit from ggc_cache_ptr_hash
7252 rather than ggc_cache_hasher.
7253 (const_wide_int_hasher, reg_attr_hasher): Likewise.
7254 (const_double_hasher, const_fixed_hasher): Likewise.
7255 * function.c (insn_cache_hasher): Likewise.
7256 * trans-mem.c (tm_wrapper_hasher): Likewise.
7257 * tree.h (tree_decl_map_cache_hasher): Likewise.
7258 * tree.c (type_cache_hasher, int_cst_hasher): Likewise.
7259 (cl_option_hasher, tree_vec_map_cache_hasher): Likewise.
7260 * ubsan.c (tree_type_map_cache_hasher): Likewise.
7261 * varasm.c (tm_clone_hasher): Likewise.
7262 * config/i386/i386.c (dllimport_hasher): Likewise.
7263 * config/nvptx/nvptx.c (declared_libfunc_hasher): Likewise.
7264 (tree_hasher): Likewise.
7265
7266 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
7267
7268 * hash-traits.h (ggc_hasher): Rename to...
7269 (ggc_remover): ...this and remove typedefs.
7270 (ggc_cache_hasher): Update accordingly. Add typedefs.
7271 (ggc_ptr_hash): New class.
7272 * hash-table.h: Update comment.
7273 * cfgloop.h (loop_exit_hasher): Inherit from ggc_ptr_hash rather than
7274 ggc_hasher.
7275 * cgraph.h (section_name_hasher, cgraph_edge_hasher): Likewise.
7276 (tree_descriptor_hasher): Likewise.
7277 * cgraph.c (function_version_hasher): Likewise.
7278 * dwarf2out.c (indirect_string_hasher, dwarf_file_hasher): Likewise.
7279 (decl_die_hasher, block_die_hasher, decl_loc_hasher): Likewise.
7280 (dw_loc_list_hasher, addr_hasher): Likewise.
7281 * function.h (used_type_hasher): Likewise.
7282 * function.c (temp_address_hasher): Likewise.
7283 * gimple-ssa.h (tm_restart_hasher, ssa_name_hasher): Likewise.
7284 * libfuncs.h (libfunc_hasher): Likewise.
7285 * lto-streamer.h (decl_state_hasher): Likewise.
7286 * optabs.c (libfunc_decl_hasher): Likewise.
7287 * tree-scalar-evolution.c (scev_info_hasher): Likewise.
7288 * varasm.c (section_hasher, object_block_hasher): Likewise.
7289 (const_rtx_desc_hasher): Likewise.
7290 * config/darwin.c (indirection_hasher, cfstring_hasher): Likewise.
7291 * config/rs6000/rs6000.c (toc_hasher, builtin_hasher): Likewise.
7292
7293 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
7294
7295 * hash-traits.h (free_ptr_hash): New class.
7296 * dwarf2out.c (decl_table_entry_hasher): Inherit from free_ptr_hash
7297 rather than typed_free_remove. Remove redudant typedefs.
7298 (external_ref_hasher): Likewise.
7299 * except.c (action_record_hasher, ttypes_filter_hasher): Likewise.
7300 (ehspec_hasher): Likewise.
7301 * ggc-common.c (saving_hasher): Likewise.
7302 * gimplify.c (gimplify_hasher): Likewise.
7303 * haifa-sched.c (delay_i2_hasher): Likewise.
7304 * loop-invariant.c (invariant_expr_hasher): Likewise.
7305 * loop-iv.c (biv_entry_hasher): Likewise.
7306 * loop-unroll.c (iv_split_hasher, var_expand_hasher): Likewise.
7307 * trans-mem.c (tm_mem_map_hasher, tm_memop_hasher): Likewise.
7308 * tree-cfg.c (locus_discrim_hasher): Likewise.
7309 * tree-eh.c (finally_tree_hasher): Likewise.
7310 * tree-into-ssa.c (var_info_hasher): Likewise.
7311 * tree-parloops.c (reduction_hasher, name_to_copy_hasher): Likewise.
7312 * tree-ssa-loop-ivopts.c (iv_inv_expr_hasher): Likewise.
7313 * tree-ssa-phiopt.c (ssa_names_hasher): Likewise.
7314 * tree-ssa-pre.c (expr_pred_trans_d): Likewise.
7315 * tree-ssa-sccvn.c (vn_constant_hasher): Likewise.
7316 * tree-ssa-structalias.c (equiv_class_hasher): Likewise.
7317 (shared_bitmap_hasher): Likewise.
7318 * tree-ssa-threadupdate.c (redirection_data): Likewise.
7319 * tree-vectorizer.h (peel_info_hasher): Likewise.
7320 * tree-vectorizer.c (simduid_to_vf, simd_array_to_simduid): Likewise.
7321 * config/mips/mips.c (mips_lo_sum_offset_hasher): Likewise.
7322
7323 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
7324
7325 * hash-table.h: Update comments.
7326 * hash-traits.h (pointer_hash): Don't inherit from typed_noop_remove.
7327 (nofree_ptr_hash): New class.
7328 * asan.c (asan_mem_ref_hasher): Inherit from nofree_ptr_hash rather
7329 than typed_noop_remove. Remove redudant typedefs.
7330 * attribs.c (attribute_hasher): Likewise.
7331 * cfg.c (bb_copy_hasher): Likewise.
7332 * cselib.c (cselib_hasher): Likewise.
7333 * dse.c (invariant_group_base_hasher): Likewise.
7334 * dwarf2cfi.c (trace_info_hasher): Likewise.
7335 * dwarf2out.c (macinfo_entry_hasher): Likewise.
7336 (comdat_type_hasher, loc_list_hasher): Likewise.
7337 * gcse.c (pre_ldst_expr_hasher): Likewise.
7338 * genmatch.c (id_base): Likewise.
7339 * genrecog.c (test_pattern_hasher): Likewise.
7340 * gimple-ssa-strength-reduction.c (cand_chain_hasher): Likewise.
7341 * haifa-sched.c (delay_i1_hasher): Likewise.
7342 * hard-reg-set.h (simplifiable_subregs_hasher): Likewise.
7343 * ipa-icf.h (congruence_class_group_hash): Likewise.
7344 * ipa-profile.c (histogram_hash): Likewise.
7345 * ira-color.c (allocno_hard_regs_hasher): Likewise.
7346 * lto-streamer.h (string_slot_hasher): Likewise.
7347 * lto-streamer.c (tree_entry_hasher): Likewise.
7348 * plugin.c (event_hasher): Likewise.
7349 * postreload-gcse.c (expr_hasher): Likewise.
7350 * store-motion.c (st_expr_hasher): Likewise.
7351 * tree-sra.c (uid_decl_hasher): Likewise.
7352 * tree-ssa-coalesce.c (coalesce_pair_hasher): Likewise.
7353 (ssa_name_var_hash): Likewise.
7354 * tree-ssa-live.c (tree_int_map_hasher): Likewise.
7355 * tree-ssa-loop-im.c (mem_ref_hasher): Likewise.
7356 * tree-ssa-pre.c (pre_expr_d): Likewise.
7357 * tree-ssa-sccvn.c (vn_nary_op_hasher): Likewise.
7358 * vtable-verify.h (registration_hasher): Likewise.
7359 * vtable-verify.c (vtbl_map_hasher): Likewise.
7360 * config/arm/arm.c (libcall_hasher): Likewise.
7361 * config/i386/winnt.c (wrapped_symbol_hasher): Likewise.
7362 * config/ia64/ia64.c (bundle_state_hasher): Likewise.
7363 * config/sol2.c (comdat_entry_hasher): Likewise.
7364 * fold-const.c (fold): Use nofree_ptr_hash instead of pointer_hash.
7365 (print_fold_checksum, fold_checksum_tree): Likewise.
7366 (debug_fold_checksum, fold_build1_stat_loc): Likewise.
7367 (fold_build2_stat_loc, fold_build3_stat_loc): Likewise.
7368 (fold_build_call_array_loc): Likewise.
7369 * tree-ssa-ccp.c (gimple_htab): Likewise.
7370 * tree-browser.c (tree_upper_hasher): Inherit from nofree_ptr_hash
7371 rather than pointer_type.
7372
7373 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
7374
7375 * hash-traits.h (pointer_hash::mark_deleted, pointer_hash::mark_empty)
7376 (pointer_hash::is_deleted, pointer_hash::is_empty): New functions.
7377
7378 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
7379
7380 * hash-traits.h (ggc_hasher::remove): Take a reference parameter.
7381 (ggc_hasher::ggc_mx): Likewise.
7382 (ggc_cache_hasher): Inherit from ggc_hasher. Remove definitions
7383 that duplicate ggc_hasher ones.
7384
7385 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
7386
7387 * hash-table.h (hash_table): Add gt_cleare_cache as a friend.
7388 (gt_cleare_cache): Check here for deleted and empty entries.
7389 Replace handle_cache_entry with a call to keep_cache_entry.
7390 * hash-traits.h (ggc_cache_hasher::handle_cache_entry): Delete.
7391 (ggc_cache_hasher::keep_cache_entry): New function.
7392 * trans-mem.c (tm_wrapper_hasher::handle_cache_entry): Delete.
7393 (tm_wrapper_hasher::keep_cache_entry): New function.
7394 * tree.h (tree_decl_map_cache_hasher::handle_cache_entry): Delete.
7395 (tree_vec_map_cache_hasher::keep_cache_entry): New function.
7396 * tree.c (type_cache_hasher::handle_cache_entry): Delete.
7397 (type_cache_hasher::keep_cache_entry): New function.
7398 (tree_vec_map_cache_hasher::handle_cache_entry): Delete.
7399 (tree_vec_map_cache_hasher::keep_cache_entry): New function.
7400 * ubsan.c (tree_type_map_cache_hasher::handle_cache_entry): Delete.
7401 (tree_type_map_cache_hasher::keep_cache_entry): New function.
7402 * varasm.c (tm_clone_hasher::handle_cache_entry): Delete.
7403 (tm_clone_hasher::keep_cache_entry): New function.
7404 * config/i386/i386.c (dllimport_hasher::handle_cache_entry): Delete.
7405 (dllimport_hasher::keep_cache_entry): New function.
7406
7407 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
7408
7409 * hash-table.h: Include hash-traits.h.
7410 (typed_free_remove, typed_noop_remove, pointer_hash, ggc_hasher)
7411 (ggc_cache_hasher): Move to...
7412 * hash-traits.h: ...this new file.
7413
7414 2015-06-25 Andrew MacLeod <amacleod@redhat.com>
7415
7416 * tree-core.h (struct tree_optimization_option): Make opts a pointer to
7417 struct cl_optimization.
7418 * tree.h (TREE_OPTIMIZATION): Return the pointer, not the address of it.
7419 * tree.c (make_node_stat): Allocate cl_optimization struct.
7420 (copy_node_stat): Allocate and copy cl_optimization struct.
7421
7422 2015-06-25 Andrew MacLeod <amacleod@redhat.com>
7423
7424 * function.h (struct incoming_args): Move struct.
7425 (pass_by_reference, reference_callee_copied): Remove prototypes.
7426 * emit-rtl.h (struct incoming_args): Relocate struct here.
7427 * calls.h (pass_by_reference, reference_callee_copied): Relocate
7428 prototypes here.
7429 * function.c (pass_by_reference, reference_callee_copied): Move.
7430 * calls.c (pass_by_reference, reference_callee_copied): Relocate here.
7431 * cfgloop.h: Don't include tm.h or hard-reg-set.h.
7432 * ipa-chkp.c: Include calls.h.
7433
7434 2015-06-25 Andrew Macleod <amacleod@redhat.com>
7435
7436 * alias.h (alias_set_type): Move typedef.
7437 * coretypes.h (alias_set_type): Relocate typedef here.
7438 * rtl.h: Don't include alias.h.
7439
7440 2015-06-25 Andrew MacLeod <amacleod@redhat.com>
7441
7442 * cgraph.h (cgraph_rtl_info): Move to rtl.h
7443 (cgraph_node): Maintain pointer to struct cgraph_rtl_info instead of
7444 and instance.
7445 * rtl.h (struct cgraph_rtl_info): Define when HARD_REG_SET available.
7446 * cgraph.c (cgraph_node::rtl_info): Allocate cgraph_rtl_info if one
7447 doesn't exist.
7448 * calls.c: Include hard-reg-set.h before rtl.h.
7449 * ira.c: Likewise.
7450
7451 2015-06-25 Zhouyi Zhou <yizhouzhou@ict.ac.cn>
7452 Vladimir Makarov <vmakarov@redhat.com>
7453
7454 * ira-color.c (assign_hard_reg): Remove unecessary bitmap check.
7455 Add assert.
7456
7457 2015-06-25 Richard Biener <rguenther@suse.de>
7458
7459 * fold-const.c (fold_binary_loc): Move simplification of
7460 (X <<>> C1) & C2 ...
7461 * match.pd: ... here.
7462
7463 2015-06-25 Eric Botcazou <ebotcazou@adacore.com>
7464
7465 * lto-streamer-out.c (DFS::hash_scc): Fix typos & formatting glitches.
7466
7467 2015-06-25 Richard Sandiford <richard.sandiford@arm.com>
7468
7469 * match.pd: Add patterns for vec_conds between 1 and 0.
7470
7471 2015-06-25 Richard Biener <rguenther@suse.de>
7472
7473 * tree-vect-stmts.c (vectorizable_conversion): Do not set
7474 STMT_VINFO_VEC_STMT for SLP.
7475 (vectorizable_store): Likewise.
7476 (vectorizable_load): Likewise.
7477 (vect_transform_stmt): Catch SLP vectorization clobbering
7478 STMT_VINFO_VEC_STMT.
7479
7480 2015-06-25 Richard Biener <rguenther@suse.de>
7481
7482 * tree-vect-slp.c (vect_detect_hybrid_slp_stmts): Improve debug
7483 dumping.
7484 (vect_create_mask_and_perm): Do not set STMT_VINFO_VEC_STMT and
7485 cleanup resulting dead code and parameters.
7486 (vect_transform_slp_perm_load): Adjust.
7487
7488 2015-06-25 Nick Clifton <nickc@redhat.com>
7489
7490 * config/bfin/bfin.c (bfin_expand_prologue): Set
7491 current_function_static_stack_size if flag_stack_usage_info is set.
7492 * config/ft32/ft32.c (ft32_expand_prologue): Likewise.
7493 * config/h8300/h8300.c (h8300_expand_prologue): Likewise.
7494 * config/iq2000/iq2000.c (iq2000_expand_prologue): Likewise.
7495 * config/m32c/m32c.c (m32c_emit_prologue): Likewise.
7496
7497 2015-06-25 Tom de Vries <tom@codesourcery.com>
7498
7499 * tree-ssa-loop-manip.c (canonicalize_loop_ivs): Don't claim in header
7500 comment that the generated IV is unsigned.
7501
7502 2015-06-25 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
7503
7504 PR target/29693
7505 * config/arm/arm.c (arm_dbx_register_number): Return
7506 DWARF_FRAME_REGISTERS by default.
7507
7508 2015-06-25 Tom de Vries <tom@codesourcery.com>
7509
7510 * dominance.c (calculate_dominance_info): Fix verify_dominators call
7511 argument. Call verify_dominator when reusing dominator info.
7512
7513 2015-06-24 Kaz Kojima <kkojima@gcc.gnu.org>
7514
7515 PR target/66563
7516 * config/sh/sh.md (GOTaddr2picreg): Add a new operand for
7517 an additional element of the unspec vector. Modify indices
7518 of operands.
7519 (builtin_setjmp_receiver): Pass const0_rtx to gen_GOTaddr2picreg.
7520 * config/sh/sh.c (prepare_move_operands): Pass incremented
7521 const_int to gen_GOTaddr2picreg.
7522 (sh_expand_prologue): Pass const0_rtx to gen_GOTaddr2picreg.
7523
7524 2015-06-24 Alan Lawrence <alan.lawrence@arm.com>
7525
7526 * config/aarch64/aarch64.md (<optab><fcvt_target><GPF:mode>2):
7527 Condition on TARGET_FLOAT.
7528
7529 2015-06-24 Alan Lawrence <alan.lawrence@arm.com>
7530
7531 * doc/invoke.texi: Clarify AArch64 feature modifiers (no)fp, (no)simd
7532 and (no)crypto.
7533
7534 2015-06-24 Alan Lawrence <alan.lawrence@arm.com>
7535
7536 * config/aarch64/aarch64-protos.h (aarch64_err_no_fpadvsimd): New.
7537
7538 * config/aarch64/aarch64.md (mov<mode>/GPF, movtf): Use
7539 aarch64_err_no_fpadvsimd.
7540
7541 * config/aarch64/aarch64.c (aarch64_err_no_fpadvsimd): New.
7542 (aarch64_layout_arg, aarch64_init_cumulative_args): Use
7543 aarch64_err_no_fpadvsimd if !TARGET_FLOAT and we need FP regs.
7544 (aarch64_expand_builtin_va_start, aarch64_setup_incoming_varargs):
7545 Turn error into assert, test TARGET_FLOAT.
7546 (aarch64_gimplify_va_arg_expr): Use aarch64_err_no_fpadvsimd, test
7547 TARGET_FLOAT.
7548
7549 2015-06-24 Aldy Hernandez <aldyh@redhat.com>
7550
7551 PR debug/66482
7552 * dwarf2out.c (gen_formal_parameter_die): Remove assert.
7553
7554 2015-06-24 Ilya Enkovich <enkovich.gnu@gmail.com>
7555
7556 * tree-vect-slp.c (vect_build_slp_tree_1): Init vectype.
7557
7558 2015-06-24 Renlin Li <renlin.li@arm.com>
7559
7560 * config/aarch64/aarch64.h(TARGET_CPU_CPP_BUILTINS): Add
7561 __ARM_ALIGN_MAX_PWR, __ARM_ALIGN_MAX_STACK_PWR.
7562
7563 2015-06-24 Richard Biener <rguenther@suse.de>
7564
7565 * genmatch.c (enum tree_code): Add VIEW_CONVERT[012].
7566 (main): Likewise.
7567 (lower_opt_convert): Support lowering of conditional view_convert.
7568 (parser::parse_operation): Likewise.
7569 (parser::parse_for): Likewise.
7570
7571 2015-06-24 Renlin Li <renlin.li@arm.com>
7572
7573 * varasm.c (emit_local): Use unsigned int for align variable.
7574
7575 2015-06-24 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
7576
7577 PR target/63408
7578 * config/arm/arm.c (vfp3_const_double_for_fract_bits): Disable
7579 for negative numbers.
7580
7581 2015-06-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
7582
7583 PR rtl-optimization/66306
7584 * reload.c (find_reloads): Swap the match_dup info for
7585 commutative operands.
7586
7587 2015-06-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
7588
7589 * config/s390/vx-builtins.md
7590 ("vec_scatter_element<mode>_<non_vec_int>")
7591 ("vec_scatter_element<V_HW_64:mode>_SI"): Replace gf mode
7592 attribute with bhfgq.
7593
7594 2015-06-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
7595
7596 * config/s390/s390-builtins.def: Fix vpopct instruction comments.
7597
7598 2015-06-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
7599
7600 * config/s390/s390-builtin-types.def: Add flag to indicate the
7601 options under which the function type is needed.
7602 * config/s390/s390-builtins.def: Add flag to indicate the options
7603 under which the builtin is enabled.
7604 * config/s390/s390-builtins.h: Add flags parameter to macro
7605 definitions.
7606 (bflags_for_builtin): New function.
7607 (flags_for_builtin): Renamed to ...
7608 (opflags_for_builtin): ... this.
7609 * config/s390/s390-c.c (s390_resolve_overloaded_builtin): Rename
7610 flags_for_builtin to bflags_for_builtin and
7611 flags_overloaded_builtin_var to opflags_overloaded_builtin_var.
7612 * config/s390/s390.c: Add initialization of bflags_builtin and
7613 opflags_builtin arrays.
7614 Remove code for flags_builtin.
7615 (s390_init_builtins): Only create builtin function types if one of
7616 their flags is active.
7617 Only create builtins if all of their flags are active.
7618 (s390_expand_builtin): Rename flags_for_builtin to
7619 opflags_for_builtin.
7620
7621 2015-06-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
7622
7623 * config/s390/vecintrin.h: Remove internal builtins.
7624
7625 2015-06-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
7626
7627 * config/s390/s390.c (s390_secondary_reload): Fix check for
7628 GENERAL_REGS register class.
7629
7630 2015-06-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
7631
7632 * config/s390/s390.c (s390_support_vector_misalignment): Call
7633 default implementation for !TARGET_VX.
7634
7635 2015-06-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
7636
7637 * config/s390/s390.c (s390_legitimate_constant_p): Add
7638 TARGET_VX check.
7639
7640 2015-06-24 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
7641
7642 * config/s390/s390.c (s390_vector_abi): New variable definition.
7643 (s390_check_type_for_vector_abi): New function.
7644 (TARGET_ASM_FILE_END): New macro definition.
7645 (s390_asm_file_end): New function.
7646 (s390_function_arg): Call s390_check_type_for_vector_abi.
7647 (s390_gimplify_va_arg): Likewise.
7648 * configure: Regenerate.
7649 * configure.ac: Check for .gnu_attribute Binutils feature.
7650
7651 2015-06-23 Chen Gang <gang.chen.5i5j@gmail.com>
7652
7653 PR target/65803
7654 * config/bfin/bfin.c (hwloop_optimize): Initialize
7655 JUMP_LABEL for newly created jump.
7656
7657 2015-06-23 Tristan Gingold <gingold@adacore.com>
7658
7659 * collect-utils.c (collect_wait): Unlink the response file here
7660 instead of...
7661 (do_wait): ...here.
7662 (utils_cleanup): ...and here.
7663
7664 2015-06-23 Richard Sandiford <richard.sandiford@arm.com>
7665
7666 * df-scan.c: Don't include target-def.h.
7667 * targhooks.c: Likewise.
7668 * config/arm/arm-c.c: Likewise.
7669 * config/i386/i386-c.c: Likewise.
7670 * config/nds32/nds32-cost.c: Likewise.
7671 * config/nds32/nds32-fp-as-gp.c: Likewise.
7672 * config/nds32/nds32-intrinsic.c: Likewise.
7673 * config/nds32/nds32-isr.c: Likewise.
7674 * config/nds32/nds32-md-auxiliary.c: Likewise.
7675 * config/nds32/nds32-memory-manipulation.c: Likewise.
7676 * config/nds32/nds32-pipelines-auxiliary.c: Likewise.
7677 * config/nds32/nds32-predicates.c: Likewise.
7678
7679 2015-06-23 Richard Biener <rguenther@suse.de>
7680
7681 PR tree-optimization/66636
7682 * tree-vect-stmts.c (vectorizable_store): Properly compute the
7683 def type for further defs for strided stores.
7684
7685 2015-06-23 Nathan Sidwell <nathan@codesourcery.com>
7686
7687 * config/nvptx/nvptx.md (sel_true<mode>, sel_false<mode>): New
7688 conditional selects.
7689 (setcc_int<mode>, setcc_float<mode>): Reformat.
7690
7691 2015-06-23 Marek Polacek <polacek@redhat.com>
7692
7693 * match.pd ((x + y) - (x | y) -> x & y,
7694 (x + y) - (x & y) -> x | y): New patterns.
7695
7696 2015-06-23 Ludovic Courtès <ludo@gnu.org>
7697
7698 PR 65711
7699 * config/arm/linux-elf.h (LINUX_TARGET_LINK_SPEC): Move
7700 '-dynamic-linker' within %{!shared: ...}.
7701
7702 2015-06-23 Uros Bizjak <ubizjak@gmail.com>
7703
7704 PR target/66560
7705 * config/i386/predicates.md (addsub_vm_operator): New predicate.
7706 (addsub_vs_operator): Ditto.
7707 (addsub_vs_parallel): Ditto.
7708 * config/i386/sse.md (ssedoublemode): Add V4SF and V2DF modes.
7709 (avx_addsubv4df3, avx_addsubv8sf3, sse3_addsubv2df3, sse3_addsubv4sf3):
7710 Put minus RTX before plus and adjust vec_merge selector.
7711 (*avx_addsubv4df3_1, *avx_addsubv4df3_1s, *sse3_addsubv2df3_1)
7712 (*sse_addsubv2df3_1s, *avx_addsubv8sf3_1, *avx_addsubv8sf3_1s)
7713 (*sse3_addsubv4sf3_1, *sse_addsubv4sf3_1s): Remove insn patterns.
7714 (addsub vec_merge splitters): New combiner splitters.
7715 (addsub vec_select/vec_concat splitters): Ditto.
7716
7717 2015-06-23 Bin Cheng <bin.cheng@arm.com>
7718
7719 PR tree-optimization/66449
7720 * tree-ssa-loop-niter.c (loop_exits_before_overflow): Use
7721 POINTER_PLUS_EXPR for pointers.
7722
7723 2015-06-23 Alan Modra <amodra@gmail.com>
7724
7725 * rtlanal.c (commutative_operand_precedence): Correct comments.
7726 * simplify-rtx.c (simplify_plus_minus_op_data_cmp): Delete forward
7727 declaration. Return an int. Distinguish REG,REG return from
7728 others.
7729 (struct simplify_plus_minus_op_data): Make local to function.
7730 (simplify_plus_minus): Don't set canonicalized if merely sorting
7731 registers. Avoid packing ops if nothing changes. White space fixes.
7732
7733 2015-06-22 Pierre-Marie de Rodat <derodat@adacore.com>
7734
7735 * gcc.c (default_compilers): Pass "-o %g.s" to cc1 for headers even if
7736 -fdump-ada-spec is passed but not if -fsyntax-only is.
7737
7738 2015-06-22 Vladimir Makarov <vmakarov@redhat.com>
7739
7740 PR bootstrap/63740
7741 * lra-lives.c (process_bb_lives): Check insn copying the same
7742 reload pseudo and don't create a copy for it.
7743
7744 2015-06-22 Tom de Vries <tom@codesourcery.com>
7745
7746 * tree-parloops.c (transform_to_exit_first_loop_alt): Add update_stmt
7747 for cond_stmt.
7748
7749 2015-06-22 Tom de Vries <tom@codesourcery.com>
7750
7751 * builtins.def (DEF_GOMP_BUILTIN): Test
7752 'flag_tree_parallelize_loops > 1' instead of
7753 'flag_tree_parallelize_loops'. Test flag_cilkplus.
7754
7755 2015-06-22 Tom de Vries <tom@codesourcery.com>
7756
7757 * dominance.c (calculate_dominance_info): Verify dominators if
7758 early-out.
7759
7760 2015-06-22 Marek Polacek <polacek@redhat.com>
7761
7762 * match.pd ((x ^ y) ^ (x | y) -> x & y,
7763 (x & y) + (x ^ y) -> x | y, (x & y) | (x ^ y) -> x | y,
7764 (x & y) ^ (x ^ y) -> x | y, (x & y) + (x | y) -> x + y,
7765 (x | y) - (x ^ y) -> x & y, (x | y) - (x & y) -> x ^ y): New patterns.
7766
7767 2015-06-22 Uros Bizjak <ubizjak@gmail.com>
7768
7769 PR target/65871
7770 * config/i386/i386.c (ix86_rtx_costs) <case COMPARE>: Ignore the
7771 cost of embedded comparison.
7772
7773 2015-06-22 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
7774
7775 PR target/65914
7776 * config/rs6000/predicates.md (altivec_register_operand): Permit
7777 virtual stack registers.
7778 (vsx_register_operand): Likewise.
7779 (vfloat_operand): Likewise.
7780 (vint_operand): Likewise.
7781 (vlogical_operand): Likewise.
7782
7783 2015-06-22 Richard Biener <rguenther@suse.de>
7784
7785 * tree-vectorizer.h (_loop_vec_info): Add scalar_cost_vec
7786 and single_scalar_iteration_cost members.
7787 (LOOP_VINFO_SCALAR_ITERATION_COST): New.
7788 (LOOP_VINFO_SINGLE_SCALAR_ITERATION_COST): Likewise.
7789 (vect_get_single_scalar_iteration_cost): Remove.
7790 * tree-vect-data-refs.c (vect_peeling_hash_get_lowest_cost):
7791 Use LOOP_VINFO_SCALAR_ITERATION_COST.
7792 * tree-vect-loop.c (destroy_loop_vec_info): Free
7793 scalar_cost_vec.
7794 (vect_get_single_scalar_iteration_cost): Compute result into
7795 LOOP_VINFO_SINGLE_SCALAR_ITERATION_COST and
7796 LOOP_VINFO_SCALAR_ITERATION_COST. Make static.
7797 (vect_analyze_loop_2): Call vect_get_single_scalar_iteration_cost.
7798 (vect_estimate_min_profitable_iters): Use them.
7799
7800 2015-06-22 Christian Bruel <christian.bruel@st.com>
7801
7802 PR target/52144
7803 * config/arm/arm.c (add_attribute, arm_insert_attributes): New functions
7804 (TARGET_INSERT_ATTRIBUTES): Define.
7805 (thumb_flipper): New var.
7806 * config/arm/arm.opt (-mflip-thumb): New switch.
7807
7808 2015-06-22 Jan Hubicka <hubicka@ucw.cz>
7809 Martin Liska <mliska@suse.cz>
7810
7811 PR ipa/65908
7812 * ipa-icf.c (sem_item::target_supports_symbol_aliases): Remove
7813 construction of arg_types.
7814 (sem_function::sem_function): Likewise.
7815 (sem_function::~sem_function): Remove destruction of arg_types.
7816 (sem_function::compatible_parm_types_p): New function.
7817 (sem_function::equals_wpa): Reorg matching of return values
7818 and parameter types.
7819 (sem_function::equals_private): Reorg mathcing of argument types.
7820 (sem_function::parse_tree_args): Remove.
7821 * ipa-icf.h (init_wpa): Do not call it.
7822 (parse_tree_args): Remove.
7823 (compatible_parm_types_p): Declare.
7824 (result_type): Remove.
7825 (arg_types): Remove.
7826
7827 2015-06-22 Jan Hubicka <hubicka@ucw.cz>
7828
7829 PR ipa/66351
7830 * ipa-polymorphic-call.c
7831 (ipa_polymorphic_call_context::get_dynamic_type): Fix thinko when
7832 initializing alias oracle; fix formating; set base_alias_set if it
7833 is known.
7834
7835 2015-06-22 Mikhail Maltsev <maltsevm@gmail.com>
7836
7837 * auto-inc-dec.c (reverse_mem, reverse_inc): Remove.
7838 (parse_add_or_inc): Use std::swap instead of reverse_{mem,inc}.
7839 (find_inc): Likewise.
7840 * combine.c (combine_simplify_rtx): Use std::swap instead of manually
7841 swapping.
7842 * df-core.c (df_worklist_dataflow_doublequeue): Likewise.
7843 * df-scan.c (df_swap_refs): Remove.
7844 (df_sort_and_compress_refs): Use std::swap instead of df_swap_refs.
7845 * dominance.c (link_roots): Use std::swap instead of manually swapping.
7846 * expr.c (expand_expr_real_2, do_store_flag): Likewise.
7847 * fold-const.c (fold_relational_const): Likewise.
7848 * genattrtab.c (simplify_test_exp): Likewise.
7849 * gimple-match-head.c (gimple_resimplify2, gimple_resimplify3,
7850 gimple_simplify): Likewise.
7851 * ifcvt.c (noce_try_abs, find_if_header): Likewise.
7852 * internal-fn.c (expand_addsub_overflow, expand_mul_overflow): Likewise.
7853 * ipa-devirt.c (add_type_duplicate): Likewise.
7854 * loop-iv.c (get_biv_step_1, iv_number_of_iterations): Likewise.
7855 * lra-lives.c (lra_setup_reload_pseudo_preferenced_hard_reg): Likewise.
7856 * lra.c (lra_create_copy): Likewise.
7857 * lto-streamer-out.c (DFS::DFS): Likewise.
7858 * modulo-sched.c (get_sched_window): Likewise.
7859 * omega.c (omega_pretty_print_problem): Likewise.
7860 * optabs.c (prepare_float_lib_cmp, expand_mult_highpart): Likewise.
7861 * reload1.c (reloads_unique_chain_p): Likewise.
7862 * sel-sched-ir.c (exchange_lv_sets, exchange_av_sets): Remove.
7863 (exchange_data_sets): Move logic from exchange_{av,lv}_sets here and
7864 use std::swap.
7865 * simplify-rtx.c (simplify_unary_operation_1): Use std::swap instead of
7866 manually swapping.
7867 * tree-if-conv.c (is_cond_scalar_reduction, predicate_scalar_phi,
7868 predicate_mem_writes): Likewise.
7869 * tree-loop-distribution.c (pg_add_dependence_edges): Likewise.
7870 * tree-predcom.c (combine_chains): Likewise.
7871 * tree-ssa-alias.c (nonoverlapping_component_refs_p,
7872 refs_may_alias_p_1): Likewise.
7873 * tree-ssa-ifcombine.c (recognize_if_then_else): Likewise.
7874 * tree-ssa-loop-ivopts.c (extract_cond_operands): Likewise.
7875 * tree-ssa-loop-niter.c (refine_bounds_using_guard,
7876 number_of_iterations_cond): Likewise.
7877 * tree-ssa-phiopt.c (tree_ssa_phiopt_worker): Likewise.
7878 * tree-ssa-sccvn.c (vn_nary_op_compute_hash): Likewise.
7879 * tree-vect-slp.c (vect_build_slp_tree): Likewise.
7880 * tree-vect-stmts.c (supportable_widening_operation): Likewise.
7881 * tree-vrp.c (extract_range_from_binary_expr_1,
7882 extract_range_from_unary_expr_1): Likewise.
7883
7884 2015-06-20 Marek Polacek <polacek@redhat.com>
7885
7886 * common.opt (fsanitize-undefined-trap-on-error): Add Driver.
7887
7888 2015-06-19 Kaz Kojima <kkojima@gcc.gnu.org>
7889
7890 PR target/66591
7891 * config/sh/sh.c (prepare_move_operands): Replace subreg
7892 index term with R0 for base and index addressing.
7893
7894 2015-06-19 Jim Wilson <jim.wilson@linaro.org>
7895
7896 * config/aarch64/aarch64.md (mov<mode>:GPF): Don't call force_reg if
7897 op1 is an fp zero.
7898 (movsf_aarch64): Change condition from register_operand to
7899 aarch64_reg_or_fp_zero for op1. Change type for alternative 6 to
7900 load1. Change type for alternative 7 to store1.
7901 (movdf_aarch64): Likewise.
7902
7903 2015-06-19 James Greenhalgh <james.greenhalgh@arm.com>
7904
7905 * config/vax/vax.md: Adjust sign/zero extend patterns to
7906 handle SUBREGs in operands[1].
7907
7908 2015-06-19 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7909
7910 * config/i386/i386.c (ix86_function_versions): Use std::swap instead
7911 of manually swapping.
7912 (expand_vec_perm_interleave2): Likewise.
7913
7914 2015-06-19 Ilya Enkovich <enkovich.gnu@gmail.com>
7915
7916 * tree-chkp.c (chkp_compute_bounds_for_assignment): Don't
7917 reuse bounds created for abnormal ssa names.
7918
7919 2015-06-19 Jakub Jelinek <jakub@redhat.com>
7920
7921 * config/nvptx/nvptx.md (allocate_stack): Rename to...
7922 (allocate_stack_<mode>): ... this, and add :P on both
7923 match_operand and unspec.
7924 (allocate_stack): New expander.
7925
7926 2015-06-19 Christian Bruel <christian.bruel@st.com>
7927
7928 PR target/66541
7929 PR target/52144
7930 * config/arm/arm.c (arm_set_current_function): Handle
7931 explicit default options.
7932
7933 2015-06-18 Uros Bizjak <ubizjak@gmail.com>
7934
7935 * config/i386/i386.md (*movsicc_noc_zext): New insn.
7936 (zero-extended cmove with mem peephole2): New pattern.
7937 (cmove with mem peephole2): Merge patterns.
7938
7939 2015-06-18 Segher Boessenkool <segher@kernel.crashing.org>
7940
7941 * config/rs6000/rs6000.h (WORD_REGISTER_OPERATIONS): Delete.
7942
7943 2015-06-18 Steve Ellcey <sellcey@imgtec.com>
7944
7945 * config/mips/mips.c (mips_rtx_costs): Remove HONOR_NAN check.
7946 * config/mips/mips.md (*madd4<mode>): Ditto.
7947 (*nmadd3<mode>) Ditto.
7948 (*nmadd4<mode>_fastmath): Ditto.
7949 (*nmadd3<mode>_fastmath): Ditto.
7950 (*nmsub4<mode>): Ditto.
7951 (*nmsub3<mode>): Ditto.
7952 (*nmsub4<mode>_fastmath): Ditto.
7953 (*nmsub3<mode>_fastmath): Ditto.
7954
7955 2015-06-18 Michael Matz <matz@suse.de>
7956
7957 PR middle-end/66253
7958 * tree-vect-stmts.c (vectorizable_store): Implement non-SLP
7959 grouped strided stores.
7960 (vectorizable_load): Don't use the DR from first_stmt in
7961 the non-SLP grouped strided case.
7962
7963 2015-06-18 Ilya Enkovich <enkovich.gnu@gmail.com>
7964
7965 PR target/66569
7966 * function.c (assign_bounds): Add arguments assign_regs,
7967 assign_special, assign_bt.
7968 (assign_parms): For vararg functions handle bounds in BT
7969 and special slots after incoming vararg bounds.
7970
7971 2015-06-18 Ilya Enkovich <enkovich.gnu@gmail.com>
7972
7973 PR middle-end/66568
7974 * cfgexpand.c (expand_return): Handle missing bounds.
7975 (expand_gimple_stmt_1): Likewise.
7976 * tree-chkp.c (chkp_expand_zero_bounds): New.
7977 * tree-chkp.h (chkp_expand_zero_bounds): New.
7978
7979 2015-06-18 Ilya Enkovich <enkovich.gnu@gmail.com>
7980
7981 PR middle-end/66567
7982 * ipa-chkp.c (chkp_maybe_create_clone): Require
7983 functions to be instrumentable.
7984 * tree-chkp.c (chkp_replace_function_pointer): Use
7985 chkp_instrumentable_p instead of attribute check.
7986
7987 2015-06-18 Richard Biener <rguenther@suse.de>
7988
7989 PR tree-optimization/66510
7990 * tree-vect-stmts.c (vectorizable_load): Properly compute the
7991 number of vector loads for SLP permuted loads.
7992 * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Also
7993 check the stride for loop vectorization.
7994 (vect_enhance_data_refs_alignment): Deal with SLP adjusted
7995 vectorization factor.
7996 (vect_analyze_group_access): If the group size is not a power
7997 of two require a epilogue loop.
7998 * tree-vect-loop.c (vect_analyze_loop_2): Move alignment
7999 compute and optimizing and alias test pruning after final
8000 vectorization factor computation.
8001 * tree-vect-slp.c (vect_build_slp_tree_1): Remove check on
8002 vector alignment.
8003 (vect_transform_slp_perm_load): Properly compute the original
8004 number of vector load stmts.
8005
8006 2015-06-18 Uros Bizjak <ubizjak@gmail.com>
8007
8008 * doc/invoke.texi (-fsanitize-sections): Split @var to avoid
8009 "unlikely character , in @var" warning.
8010
8011 2015-06-17 Uros Bizjak <ubizjak@gmail.com>
8012
8013 * config/i386/i386.c (ix86_function_arg): Nest TARGET_64BIT code.
8014 (ix86_function_arg_advance): Ditto.
8015 (ix86_pass_by_reference): Ditto. Rewrite MS_ABI part.
8016
8017 2015-06-17 Andrew MacLeod <amacleod@redhat.com>
8018
8019 * function.h (struct rtl_data): Remove struct and accessor macros.
8020 * emit-rtl.h (struct rtl_data): Relocate to here.
8021 * Makefile.in (GTFILES): Add emit-rtl.h.
8022 * df-core.c: Include emit-rtl.h.
8023 * genattrtab.c: Likewise.
8024 * genconditions.c: Likewise.
8025 * genpreds.c: Likewise.
8026 * genrecog.c: Likewise.
8027 * regcprop.c: Likewise.
8028 * resource.c: Likewise.
8029 * sched-rgn.c: Likewise.
8030 * config/aarch64/cortex-a57-fma-steering.c: Likewise.
8031 * config/i386/winnt.c: Likewise.
8032
8033 2015-06-17 Jakub Jelinek <jakub@redhat.com>
8034
8035 PR middle-end/66429
8036 * omp-low.c (expand_omp_taskreg, expand_omp_target): Use child_cfun
8037 instead of DECL_STRUCT_FUNCTION (child_fn). Or in has_simduid_loops
8038 and has_force_vectorize_loops flags from cfun into
8039 child_cfun.
8040 (expand_omp_simd): For broken loop, set cfun->has_simduid_loops
8041 if simduid is non-NULL.
8042 * tree-pass.h (make_pass_simduid_cleanup): New prototype.
8043 * passes.def (pass_simduid_cleanup): Add new pass after loop
8044 passes.
8045 * tree-vectorizer.c (adjust_simduid_builtins): Remove one unnecessary
8046 indirection from htab argument's type.
8047 (shrink_simd_arrays): New function.
8048 (vectorize_loops): Use it. Adjust adjust_simduid_builtins caller.
8049 Don't call adjust_simduid_builtins if there are no loops.
8050 (pass_data_simduid_cleanup, pass_simduid_cleanup): New variables.
8051 (pass_simduid_cleanup::execute): New method.
8052 (make_pass_simduid_cleanup): New function.
8053
8054 2017-06-17 Andrew MacLeod <amacleod@redhat.com>
8055
8056 * tree-core.h (tree_target_option): Make opts field a pointer to a
8057 cl_target_option instead of an instance of the struct.
8058 * tree.h (TREE_TARGET_OPTION): Return the pointer, not an address of
8059 the structure.
8060 * tree.c (make_node_stat ): Allocate a cl_target_option struct for
8061 TARGET_OPTION_NODE.
8062 (copy_node_stat): Allocate and copy struct cl_target_option.
8063
8064 2015-06-17 Andrew MacLeod <amacleod@redhat.com>
8065
8066 * tree.h (merge_dllimport_decl_attributes, handle_dll_attribute):
8067 Remove conditional exposure of prototypes.
8068 (ANON_AGGRNAME_FORMAT, ANON_AGGRNAME_P): Delete.
8069 * tree.c (anon_aggrname_format, anon_aggrname_p): New. Replace macro
8070 definitions in tree.h with functions.
8071 * lto-streamer-out.c (DFS_write_tree_body, hash_tree): Use
8072 anon_aggrname_p.
8073 * tree-streamer-out.c (write_ts_decl_minimal_tree_pointers): Likewise.
8074
8075 2015-06-17 Segher Boessenkool <segher@kernel.crashing.org>
8076
8077 * config/rs6000/rs6000.md (*cmp<mode>_internal1): Rename to...
8078 (*cmp<mode>_signed): ... this.
8079 (*cmpsi_internal2, *cmpdi_internal2): Merge, rename to...
8080 (*cmp<mode>_unsigned): ... this. Remove %b.
8081
8082 2015-06-17 Andrew MacLeod <amacleod@redhat.com>
8083
8084 * coretypes.h: Include input.h and as-a.h.
8085 * rtl.h: Include input.h and as-a.h for generator files.
8086 * hwint.c: Include coretypes.h, don't include diagnostic-core.h.
8087 * vec.c: Don't include diagnostic-core.h.
8088 * alias.c: Do not include input.h, line-map.h or is-a.h.
8089 * asan.c: Likewise.
8090 * attribs.c: Likewise.
8091 * auto-inc-dec.c: Likewise.
8092 * auto-profile.c: Likewise.
8093 * bb-reorder.c: Likewise.
8094 * bt-load.c: Likewise.
8095 * builtins.c: Likewise.
8096 * caller-save.c: Likewise.
8097 * calls.c: Likewise.
8098 * ccmp.c: Likewise.
8099 * cfg.c: Likewise.
8100 * cfganal.c: Likewise.
8101 * cfgbuild.c: Likewise.
8102 * cfgcleanup.c: Likewise.
8103 * cfgexpand.c: Likewise.
8104 * cfghooks.c: Likewise.
8105 * cfgloop.c: Likewise.
8106 * cfgloop.h: Likewise.
8107 * cfgloopanal.c: Likewise.
8108 * cfgloopmanip.c: Likewise.
8109 * cfgrtl.c: Likewise.
8110 * cgraph.c: Likewise.
8111 * cgraphbuild.c: Likewise.
8112 * cgraphclones.c: Likewise.
8113 * cgraphunit.c: Likewise.
8114 * cilk-common.c: Likewise.
8115 * combine-stack-adj.c: Likewise.
8116 * combine.c: Likewise.
8117 * compare-elim.c: Likewise.
8118 * convert.c: Likewise.
8119 * coverage.c: Likewise.
8120 * cppbuiltin.c: Likewise.
8121 * cprop.c: Likewise.
8122 * cse.c: Likewise.
8123 * cselib.c: Likewise.
8124 * data-streamer-in.c: Likewise.
8125 * data-streamer-out.c: Likewise.
8126 * data-streamer.c: Likewise.
8127 * dbxout.c: Likewise.
8128 * dce.c: Likewise.
8129 * ddg.c: Likewise.
8130 * debug.c: Likewise.
8131 * df-core.c: Likewise.
8132 * df-problems.c: Likewise.
8133 * df-scan.c: Likewise.
8134 * df.h: Likewise.
8135 * dfp.c: Likewise.
8136 * diagnostic-core.h: Likewise.
8137 * diagnostic.c: Likewise.
8138 * dojump.c: Likewise.
8139 * dominance.c: Likewise.
8140 * domwalk.c: Likewise.
8141 * double-int.c: Likewise.
8142 * dse.c: Likewise.
8143 * dumpfile.c: Likewise.
8144 * dumpfile.h: Likewise.
8145 * dwarf2asm.c: Likewise.
8146 * dwarf2cfi.c: Likewise.
8147 * dwarf2out.c: Likewise.
8148 * emit-rtl.c: Likewise.
8149 * et-forest.c: Likewise.
8150 * except.c: Likewise.
8151 * explow.c: Likewise.
8152 * expmed.c: Likewise.
8153 * expr.c: Likewise.
8154 * final.c: Likewise.
8155 * fixed-value.c: Likewise.
8156 * fold-const.c: Likewise.
8157 * function.c: Likewise.
8158 * fwprop.c: Likewise.
8159 * gcc-plugin.h: Likewise.
8160 * gcse.c: Likewise.
8161 * generic-match-head.c: Likewise.
8162 * ggc-page.c: Likewise.
8163 * gimple-builder.c: Likewise.
8164 * gimple-expr.c: Likewise.
8165 * gimple-fold.c: Likewise.
8166 * gimple-iterator.c: Likewise.
8167 * gimple-low.c: Likewise.
8168 * gimple-match-head.c: Likewise.
8169 * gimple-pretty-print.c: Likewise.
8170 * gimple-ssa-isolate-paths.c: Likewise.
8171 * gimple-ssa-strength-reduction.c: Likewise.
8172 * gimple-streamer-in.c: Likewise.
8173 * gimple-streamer-out.c: Likewise.
8174 * gimple-streamer.h: Likewise.
8175 * gimple-walk.c: Likewise.
8176 * gimple.c: Likewise.
8177 * gimplify-me.c: Likewise.
8178 * gimplify.c: Likewise.
8179 * godump.c: Likewise.
8180 * graph.c: Likewise.
8181 * graphite-blocking.c: Likewise.
8182 * graphite-dependences.c: Likewise.
8183 * graphite-interchange.c: Likewise.
8184 * graphite-isl-ast-to-gimple.c: Likewise.
8185 * graphite-optimize-isl.c: Likewise.
8186 * graphite-poly.c: Likewise.
8187 * graphite-scop-detection.c: Likewise.
8188 * graphite-sese-to-poly.c: Likewise.
8189 * graphite.c: Likewise.
8190 * haifa-sched.c: Likewise.
8191 * hw-doloop.c: Likewise.
8192 * ifcvt.c: Likewise.
8193 * init-regs.c: Likewise.
8194 * input.c: Likewise.
8195 * internal-fn.c: Likewise.
8196 * ipa-chkp.c: Likewise.
8197 * ipa-comdats.c: Likewise.
8198 * ipa-cp.c: Likewise.
8199 * ipa-devirt.c: Likewise.
8200 * ipa-icf-gimple.c: Likewise.
8201 * ipa-icf.c: Likewise.
8202 * ipa-inline-analysis.c: Likewise.
8203 * ipa-inline-transform.c: Likewise.
8204 * ipa-inline.c: Likewise.
8205 * ipa-polymorphic-call.c: Likewise.
8206 * ipa-profile.c: Likewise.
8207 * ipa-prop.c: Likewise.
8208 * ipa-pure-const.c: Likewise.
8209 * ipa-ref.c: Likewise.
8210 * ipa-reference.c: Likewise.
8211 * ipa-split.c: Likewise.
8212 * ipa-utils.c: Likewise.
8213 * ipa-visibility.c: Likewise.
8214 * ipa.c: Likewise.
8215 * ira-build.c: Likewise.
8216 * ira-color.c: Likewise.
8217 * ira-conflicts.c: Likewise.
8218 * ira-costs.c: Likewise.
8219 * ira-emit.c: Likewise.
8220 * ira-lives.c: Likewise.
8221 * ira.c: Likewise.
8222 * jump.c: Likewise.
8223 * langhooks.c: Likewise.
8224 * lcm.c: Likewise.
8225 * loop-doloop.c: Likewise.
8226 * loop-init.c: Likewise.
8227 * loop-invariant.c: Likewise.
8228 * loop-iv.c: Likewise.
8229 * loop-unroll.c: Likewise.
8230 * lower-subreg.c: Likewise.
8231 * lra-assigns.c: Likewise.
8232 * lra-coalesce.c: Likewise.
8233 * lra-constraints.c: Likewise.
8234 * lra-eliminations.c: Likewise.
8235 * lra-lives.c: Likewise.
8236 * lra-remat.c: Likewise.
8237 * lra-spills.c: Likewise.
8238 * lra.c: Likewise.
8239 * lto-cgraph.c: Likewise.
8240 * lto-compress.c: Likewise.
8241 * lto-opts.c: Likewise.
8242 * lto-section-in.c: Likewise.
8243 * lto-section-out.c: Likewise.
8244 * lto-streamer-in.c: Likewise.
8245 * lto-streamer-out.c: Likewise.
8246 * lto-streamer.c: Likewise.
8247 * mcf.c: Likewise.
8248 * mode-switching.c: Likewise.
8249 * modulo-sched.c: Likewise.
8250 * omega.c: Likewise.
8251 * omp-low.c: Likewise.
8252 * optabs.c: Likewise.
8253 * opts-global.c: Likewise.
8254 * opts.h: Likewise.
8255 * passes.c: Likewise.
8256 * plugin.c: Likewise.
8257 * postreload-gcse.c: Likewise.
8258 * postreload.c: Likewise.
8259 * predict.c: Likewise.
8260 * pretty-print.h: Likewise.
8261 * print-rtl.c: Likewise.
8262 * print-tree.c: Likewise.
8263 * profile.c: Likewise.
8264 * real.c: Likewise.
8265 * realmpfr.c: Likewise.
8266 * recog.c: Likewise.
8267 * ree.c: Likewise.
8268 * reg-stack.c: Likewise.
8269 * regcprop.c: Likewise.
8270 * reginfo.c: Likewise.
8271 * regrename.c: Likewise.
8272 * regstat.c: Likewise.
8273 * reload.c: Likewise.
8274 * reload1.c: Likewise.
8275 * reorg.c: Likewise.
8276 * resource.c: Likewise.
8277 * rtl-chkp.c: Likewise.
8278 * rtl-error.c: Likewise.
8279 * rtlanal.c: Likewise.
8280 * rtlhooks.c: Likewise.
8281 * sanopt.c: Likewise.
8282 * sched-deps.c: Likewise.
8283 * sched-ebb.c: Likewise.
8284 * sched-rgn.c: Likewise.
8285 * sched-vis.c: Likewise.
8286 * sdbout.c: Likewise.
8287 * sel-sched-dump.c: Likewise.
8288 * sel-sched-ir.c: Likewise.
8289 * sel-sched.c: Likewise.
8290 * sese.c: Likewise.
8291 * shrink-wrap.c: Likewise.
8292 * simplify-rtx.c: Likewise.
8293 * stack-ptr-mod.c: Likewise.
8294 * statistics.c: Likewise.
8295 * stmt.c: Likewise.
8296 * stor-layout.c: Likewise.
8297 * store-motion.c: Likewise.
8298 * streamer-hooks.c: Likewise.
8299 * stringpool.c: Likewise.
8300 * symtab.c: Likewise.
8301 * target-globals.c: Likewise.
8302 * targhooks.c: Likewise.
8303 * toplev.c: Likewise.
8304 * tracer.c: Likewise.
8305 * trans-mem.c: Likewise.
8306 * tree-affine.c: Likewise.
8307 * tree-browser.c: Likewise.
8308 * tree-call-cdce.c: Likewise.
8309 * tree-cfg.c: Likewise.
8310 * tree-cfgcleanup.c: Likewise.
8311 * tree-chkp-opt.c: Likewise.
8312 * tree-chkp.c: Likewise.
8313 * tree-chrec.c: Likewise.
8314 * tree-complex.c: Likewise.
8315 * tree-data-ref.c: Likewise.
8316 * tree-dfa.c: Likewise.
8317 * tree-diagnostic.c: Likewise.
8318 * tree-dump.c: Likewise.
8319 * tree-eh.c: Likewise.
8320 * tree-emutls.c: Likewise.
8321 * tree-if-conv.c: Likewise.
8322 * tree-inline.c: Likewise.
8323 * tree-into-ssa.c: Likewise.
8324 * tree-iterator.c: Likewise.
8325 * tree-loop-distribution.c: Likewise.
8326 * tree-nested.c: Likewise.
8327 * tree-nrv.c: Likewise.
8328 * tree-object-size.c: Likewise.
8329 * tree-outof-ssa.c: Likewise.
8330 * tree-parloops.c: Likewise.
8331 * tree-phinodes.c: Likewise.
8332 * tree-predcom.c: Likewise.
8333 * tree-pretty-print.c: Likewise.
8334 * tree-profile.c: Likewise.
8335 * tree-scalar-evolution.c: Likewise.
8336 * tree-sra.c: Likewise.
8337 * tree-ssa-address.c: Likewise.
8338 * tree-ssa-alias.c: Likewise.
8339 * tree-ssa-ccp.c: Likewise.
8340 * tree-ssa-coalesce.c: Likewise.
8341 * tree-ssa-copy.c: Likewise.
8342 * tree-ssa-copyrename.c: Likewise.
8343 * tree-ssa-dce.c: Likewise.
8344 * tree-ssa-dom.c: Likewise.
8345 * tree-ssa-dse.c: Likewise.
8346 * tree-ssa-forwprop.c: Likewise.
8347 * tree-ssa-ifcombine.c: Likewise.
8348 * tree-ssa-live.c: Likewise.
8349 * tree-ssa-loop-ch.c: Likewise.
8350 * tree-ssa-loop-im.c: Likewise.
8351 * tree-ssa-loop-ivcanon.c: Likewise.
8352 * tree-ssa-loop-ivopts.c: Likewise.
8353 * tree-ssa-loop-manip.c: Likewise.
8354 * tree-ssa-loop-niter.c: Likewise.
8355 * tree-ssa-loop-prefetch.c: Likewise.
8356 * tree-ssa-loop-unswitch.c: Likewise.
8357 * tree-ssa-loop.c: Likewise.
8358 * tree-ssa-math-opts.c: Likewise.
8359 * tree-ssa-operands.c: Likewise.
8360 * tree-ssa-phiopt.c: Likewise.
8361 * tree-ssa-phiprop.c: Likewise.
8362 * tree-ssa-pre.c: Likewise.
8363 * tree-ssa-propagate.c: Likewise.
8364 * tree-ssa-reassoc.c: Likewise.
8365 * tree-ssa-sccvn.c: Likewise.
8366 * tree-ssa-scopedtables.c: Likewise.
8367 * tree-ssa-sink.c: Likewise.
8368 * tree-ssa-strlen.c: Likewise.
8369 * tree-ssa-structalias.c: Likewise.
8370 * tree-ssa-tail-merge.c: Likewise.
8371 * tree-ssa-ter.c: Likewise.
8372 * tree-ssa-threadedge.c: Likewise.
8373 * tree-ssa-threadupdate.c: Likewise.
8374 * tree-ssa-uncprop.c: Likewise.
8375 * tree-ssa-uninit.c: Likewise.
8376 * tree-ssa.c: Likewise.
8377 * tree-ssanames.c: Likewise.
8378 * tree-stdarg.c: Likewise.
8379 * tree-streamer-in.c: Likewise.
8380 * tree-streamer-out.c: Likewise.
8381 * tree-streamer.c: Likewise.
8382 * tree-switch-conversion.c: Likewise.
8383 * tree-tailcall.c: Likewise.
8384 * tree-vect-data-refs.c: Likewise.
8385 * tree-vect-generic.c: Likewise.
8386 * tree-vect-loop-manip.c: Likewise.
8387 * tree-vect-loop.c: Likewise.
8388 * tree-vect-patterns.c: Likewise.
8389 * tree-vect-slp.c: Likewise.
8390 * tree-vect-stmts.c: Likewise.
8391 * tree-vectorizer.c: Likewise.
8392 * tree-vrp.c: Likewise.
8393 * tree.c: Likewise.
8394 * tsan.c: Likewise.
8395 * ubsan.c: Likewise.
8396 * valtrack.c: Likewise.
8397 * value-prof.c: Likewise.
8398 * var-tracking.c: Likewise.
8399 * varasm.c: Likewise.
8400 * varpool.c: Likewise.
8401 * vmsdbgout.c: Likewise.
8402 * vtable-verify.c: Likewise.
8403 * web.c: Likewise.
8404 * wide-int.cc: Likewise.
8405 * xcoffout.c: Likewise.
8406 * common/common-target.h: Do not include input.h, line-map.h or is-a.h.
8407 * common/common-targhooks.c: Likewise.
8408 * config/aarch64/aarch64-builtins.c: Likewise.
8409 * config/aarch64/aarch64.c: Likewise.
8410 * config/alpha/alpha.c: Likewise.
8411 * config/arc/arc.c: Likewise.
8412 * config/arm/aarch-common.c: Likewise.
8413 * config/arm/arm-builtins.c: Likewise.
8414 * config/arm/arm-c.c: Likewise.
8415 * config/arm/arm.c: Likewise.
8416 * config/avr/avr-c.c: Likewise.
8417 * config/avr/avr-log.c: Likewise.
8418 * config/avr/avr.c: Likewise.
8419 * config/bfin/bfin.c: Likewise.
8420 * config/c6x/c6x.c: Likewise.
8421 * config/cr16/cr16.c: Likewise.
8422 * config/cris/cris.c: Likewise.
8423 * config/darwin-c.c: Likewise.
8424 * config/darwin.c: Likewise.
8425 * config/default-c.c: Likewise.
8426 * config/epiphany/epiphany.c: Likewise.
8427 * config/epiphany/mode-switch-use.c: Likewise.
8428 * config/epiphany/resolve-sw-modes.c: Likewise.
8429 * config/fr30/fr30.c: Likewise.
8430 * config/frv/frv.c: Likewise.
8431 * config/ft32/ft32.c: Likewise.
8432 * config/glibc-c.c: Likewise.
8433 * config/h8300/h8300.c: Likewise.
8434 * config/i386/i386-c.c: Likewise.
8435 * config/i386/i386.c: Likewise.
8436 * config/i386/msformat-c.c: Likewise.
8437 * config/i386/winnt-cxx.c: Likewise.
8438 * config/i386/winnt-stubs.c: Likewise.
8439 * config/i386/winnt.c: Likewise.
8440 * config/ia64/ia64-c.c: Likewise.
8441 * config/ia64/ia64.c: Likewise.
8442 * config/iq2000/iq2000.c: Likewise.
8443 * config/lm32/lm32.c: Likewise.
8444 * config/m32c/m32c-pragma.c: Likewise.
8445 * config/m32c/m32c.c: Likewise.
8446 * config/m32r/m32r.c: Likewise.
8447 * config/m68k/m68k.c: Likewise.
8448 * config/mcore/mcore.c: Likewise.
8449 * config/mep/mep-pragma.c: Likewise.
8450 * config/mep/mep.c: Likewise.
8451 * config/microblaze/microblaze-c.c: Likewise.
8452 * config/microblaze/microblaze.c: Likewise.
8453 * config/mips/mips.c: Likewise.
8454 * config/mmix/mmix.c: Likewise.
8455 * config/mn10300/mn10300.c: Likewise.
8456 * config/moxie/moxie.c: Likewise.
8457 * config/msp430/msp430-c.c: Likewise.
8458 * config/msp430/msp430.c: Likewise.
8459 * config/nds32/nds32-cost.c: Likewise.
8460 * config/nds32/nds32-fp-as-gp.c: Likewise.
8461 * config/nds32/nds32-intrinsic.c: Likewise.
8462 * config/nds32/nds32-isr.c: Likewise.
8463 * config/nds32/nds32-md-auxiliary.c: Likewise.
8464 * config/nds32/nds32-memory-manipulation.c: Likewise.
8465 * config/nds32/nds32-pipelines-auxiliary.c: Likewise.
8466 * config/nds32/nds32-predicates.c: Likewise.
8467 * config/nds32/nds32.c: Likewise.
8468 * config/nios2/nios2.c: Likewise.
8469 * config/nvptx/nvptx.c: Likewise.
8470 * config/pa/pa.c: Likewise.
8471 * config/pdp11/pdp11.c: Likewise.
8472 * config/rl78/rl78-c.c: Likewise.
8473 * config/rl78/rl78.c: Likewise.
8474 * config/rs6000/rs6000-c.c: Likewise.
8475 * config/rs6000/rs6000.c: Likewise.
8476 * config/rx/rx.c: Likewise.
8477 * config/s390/s390-c.c: Likewise.
8478 * config/s390/s390.c: Likewise.
8479 * config/sh/sh-c.c: Likewise.
8480 * config/sh/sh-mem.cc: Likewise.
8481 * config/sh/sh.c: Likewise.
8482 * config/sh/sh_optimize_sett_clrt.cc: Likewise.
8483 * config/sh/sh_treg_combine.cc: Likewise.
8484 * config/sol2-c.c: Likewise.
8485 * config/sol2-cxx.c: Likewise.
8486 * config/sol2-stubs.c: Likewise.
8487 * config/sol2.c: Likewise.
8488 * config/sparc/sparc-c.c: Likewise.
8489 * config/sparc/sparc.c: Likewise.
8490 * config/spu/spu-c.c: Likewise.
8491 * config/spu/spu.c: Likewise.
8492 * config/stormy16/stormy16.c: Likewise.
8493 * config/tilegx/mul-tables.c: Likewise.
8494 * config/tilegx/tilegx-c.c: Likewise.
8495 * config/tilegx/tilegx.c: Likewise.
8496 * config/tilepro/mul-tables.c: Likewise.
8497 * config/tilepro/tilepro-c.c: Likewise.
8498 * config/tilepro/tilepro.c: Likewise.
8499 * config/v850/v850-c.c: Likewise.
8500 * config/v850/v850.c: Likewise.
8501 * config/vax/vax.c: Likewise.
8502 * config/visium/visium.c: Likewise.
8503 * config/vms/vms-c.c: Likewise.
8504 * config/vms/vms.c: Likewise.
8505 * config/vxworks.c: Likewise.
8506 * config/winnt-c.c: Likewise.
8507 * config/xtensa/xtensa.c: Likewise.
8508
8509 2015-06-17 Robert Suchanek <robert.suchanek@imgtec.com>
8510
8511 * config/mips/mips.c (mips_ira_change_pseudo_allocno_class): New
8512 function.
8513 (TARGET_IRA_CHANGE_PSEUDO_ALLOCNO_CLASS): Define macro.
8514
8515 2015-06-17 Richard Biener <rguenther@suse.de>
8516
8517 PR tree-optimization/66251
8518 * tree-vect-stmts.c (vectorizable_store): Fix gathering of vectorized
8519 stmts for SLP strided stores.
8520
8521 Revert
8522 2015-05-22 Richard Biener <rguenther@suse.de>
8523
8524 PR tree-optimization/66251
8525 * tree-vect-stmts.c (vectorizable_conversion): Properly
8526 set STMT_VINFO_VEC_STMT even for the SLP case.
8527
8528 2015-05-26 Michael Matz <matz@suse.de>
8529
8530 PR middle-end/66251
8531 * tree-vect-stmts.c (vect_create_vectorized_demotion_stmts): Always set
8532 STMT_VINFO_VEC_STMT, also with SLP.
8533
8534 2015-06-16 Uros Bizjak <ubizjak@gmail.com>
8535
8536 PR target/56766
8537 * config/i386/sse.md (*avx_addsubv4df3_1): New insn pattern.
8538 (*avx_addsubv4df3_1s): Ditto.
8539 (*sse3_addsubv2df3_1): Ditto.
8540 (*sse3_addsubv2df3_1s): Ditto.
8541 (*avx_addsubv8sf3_1): Ditto.
8542 (*avx_addsubv8sf3_1s): Ditto.
8543 (*sse3_addsubv4sf3_1): Ditto.
8544 (*sse3_addsubv4sf3_1s): Ditto.
8545
8546 2015-06-16 Steve Ellcey <sellcey@imgtec.com>
8547
8548 * config/mips/mti-linux.h (MIPS_SYSVERSION_SPEC): New.
8549 (SYSROOT_SUFFIX_SPEC): Update.
8550 (SYSROOT_HEADERS_SUFFIX_SPEC): New.
8551 (STARTFILE_PREFIX_SPEC): Update.
8552 * config/mips/t-mti-linux (MULTILIB_EXCEPTIONS): Remove.
8553 (MULTILIB_REQUIRED): New.
8554 (MULTILIB_OSDIRNAMES): New.
8555 * config/mips/t-img-linux (MULTILIB_EXCEPTIONS): Remove.
8556 (MULTILIB_REQUIRED): New.
8557 (MULTILIB_OSDIRNAMES): New.
8558
8559 2015-06-16 Matthew Wahab <matthew.wahab@arm.com>
8560
8561 * config/aarch64/aarch64-arches.def: Add "armv8.1-a".
8562 * config/aarch64/aarch64-options-extensions.def: Update "fP",
8563 "simd" and "crypto". Add "lse", "pan", "lor" and "rdma".
8564 * gcc/config/aarch64/aarch64.h (AARCH64_FL_LSE): New.
8565 (AARCH64_FL_PAN): New.
8566 (AARCH64_FL_LOR): New.
8567 (AARCH64_FL_RDMA): New.
8568 (AARCH64_FL_FOR_ARCH8_1): New.
8569 * doc/invoke.texi (AArch64 Options): Add "armv8.1-a" to
8570 -march. Add "lse", "pan", "lor", "rdma" to feature modifiers.
8571
8572 2015-06-16 Martin Liska <mliska@suse.cz>
8573
8574 * bitmap.c (dump_bitmap_statistics): Fix GNU coding style.
8575 * hash-table.c (void dump_hash_table_loc_statistics): Add missing
8576 guard.
8577
8578 2015-06-16 Richard Biener <rguenther@suse.de>
8579
8580 * tree-vect-stmts.c (vectorizable_store): Adjust.
8581 (vectorizable_load): Likewise.
8582 * tree-vect-data-refs.c (vect_create_addr_base_for_vector_ref):
8583 Simplify.
8584 (vect_create_data_ref_ptr): Likewise.
8585 (bump_vector_ptr): Adjust.
8586
8587 2015-06-16 Richard Biener <rguenther@suse.de>
8588
8589 * tree-vect-stmts.c (vectorizable_load): Properly start loads
8590 with the first element if this is grouped loads.
8591
8592 2015-06-16 James Greenhalgh <james.greenhalgh@arm.com>
8593
8594 * config/arm/arm-protos.h (struct tune_params): Rename
8595 log_op_non_sc to log_op_non_short_circuit, and rename enum
8596 values to expand SC to SHORT_CIRCUIT.
8597 * config/arm/arm.c (arm_slowmul_tune): Expand LOG_OP_NON_SC
8598 to LOG_OP_NON_SHORT_CIRCUIT.
8599 (arm_fastmul_tune):Likewise
8600 (arm_strongarm_tune): Likewise.
8601 (arm_xscale_tune): Likewise.
8602 (arm_9e_tune): Likewise.
8603 (arm_marvell_pj4_tune): Likewise.
8604 (arm_v6t2_tune): Likewise.
8605 (arm_cortex_tune): Likewise.
8606 (arm_cortex_a8_tune): Likewise.
8607 (arm_cortex_a7_tune): Likewise.
8608 (arm_cortex_a15_tune): Likewise.
8609 (arm_cortex_a53_tune): Likewise.
8610 (arm_cortex_a57_tune): Likewise.
8611 (arm_xgene1_tune): Likewise.
8612 (arm_cortex_a5_tune): Likewise.
8613 (arm_cortex_a9_tune): Likewise.
8614 (arm_cortex_a12_tune): Likewise.
8615 (arm_v7m_tune): Likewise.
8616 (arm_cortex_m7_tune): Likewise.
8617 (arm_v6m_tune): Likewise.
8618 (arm_fa726te_tune): Likewise.
8619
8620 2015-06-15 David Edelsohn <dje.gcc@gmail.com>
8621
8622 * altivec.md: Delete UNSPEC_VMLADDUHM.
8623 (mulv4si3_p8): New pattern.
8624 (mulv4si3): Use it for POWER8.
8625 (mulv8hi3): Use vmladduhm with zero addend.
8626 (altivec_vmladduhm): Descriptive RTL.
8627
8628 2015-06-15 Jim Wilson <jim.wilson@linaro.org>
8629
8630 * config/aarch64/aarch64.md (mov<mode>_aarch64): Change alternative 2
8631 to use neon_move instead of mov_imm.
8632 (movdi_aarch64): Change alternative 14 to use neon_move not fmov.
8633 (movtf_aarch64): Change alternative 4 to use neon_move_q not fconstd.
8634
8635 * config/aarch64/aarch64.c (aarch64_valid_floating_const): Move
8636 aarch64_float_const_zero_rtx_p check before TFmode check.
8637 * config/aarch64/aarch64.md (movtf): Don't call force_reg if op1 is
8638 an fp zero.
8639 (movtf_aarch64): Separate ?rY alternative into two. Adjust assembly
8640 code and attributes to match. Change condition from register_operand
8641 to aarch64_reg_or_fp_zero for op1. Change type for ldp from
8642 neon_load1_2reg to load2. Change type for stp from neon_store1_2reg
8643 to store2.
8644
8645 2015-06-15 Aldy Hernandez <aldyh@redhat.com>
8646
8647 PR debug/66535
8648 * dwarf2out.c (gen_subprogram_die): Do not check a parent's tag if
8649 there is no parent.
8650
8651 2015-06-14 Shiva Chen <shiva0217@gmail.com>
8652
8653 * aarch64.c (aarch64_simd_lane_bounds): Change %ld to %wd for
8654 HOST_WIDE_INT parameter.
8655
8656 2015-06-14 Jan Hubicka <hubicka@ucw.cz>
8657
8658 PR ipa/66181
8659 * lto-streamer-out.c (hash_tree): Do not hash TYPE_NO_FORCE_BLK.
8660 * tree-streamer-out.c (pack_ts_type_common_value_fields): Do not stream
8661 TYPE_NO_FORCE_BLK.
8662 * tree-streamer-in.c (unpack_ts_type_common_value_fields): Likewise.
8663
8664 2015-06-14 Richard Sandiford <richard.sandiford@arm.com>
8665
8666 * rtl.h (classify_insn): Declare.
8667 * emit-rtl.c (classify_insn): Move to...
8668 * rtl.c: ...here and add generator support.
8669 * gensupport.h (get_emit_function, needs_barrier_p): Declare.
8670 * gensupport.c (get_emit_function, needs_barrier_p): New functions.
8671 * genemit.c (gen_emit_seq): New function.
8672 (gen_expand, gen_split): Use it.
8673
8674 2015-06-13 Patrick Palka <ppalka@gcc.gnu.org>
8675
8676 * tree.c (make_vector_stat): Fix comment to state that the
8677 function returns a VECTOR_CST.
8678
8679 2015-06-13 Richard Sandiford <richard.sandiford@arm.com>
8680
8681 * gensupport.h (add_implicit_parallel): Declare.
8682 * genrecog.c (add_implicit_parallel): Move to...
8683 * gensupport.c (add_implicit_parallel): ...here.
8684 (process_one_cond_exec): Use it.
8685 * genemit.c (gen_insn): Likewise.
8686
8687 2015-06-13 Iain Sandoe <iain@codesourcery.com>
8688
8689 PR bootstrap/66448
8690 * passes.c (rest_of_decl_compilation): Do not register globals for
8691 early debug if they are declared in built-ins.
8692
8693 2015-06-12 Aldy Hernandez <aldyh@redhat.com>
8694
8695 * dwarf2out.c (check_die): Protect with ENABLE_CHECKING.
8696
8697 2015-06-12 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
8698
8699 * ifcvt.c (noce_try_store_flag_constants): Use std::swap instead of
8700 manually swapping.
8701 (noce_try_cmove_arith): Likewise.
8702 (noce_get_alt_condition): Likewise.
8703
8704 2015-06-12 Venkataramanan Kumar <venkataramanan.kumar@amd.com>
8705
8706 * common/config/i386/i386-common.c
8707 (OPTION_MASK_ISA_MWAITX_SET): New.
8708 (ix86_handle_option): Handle mwaitx.
8709 * config.gcc (i[34567]86-*-*): Add mwaitxintrin.h,
8710 (x86_64-*-*): Likewise.
8711 * config/i386/mwaitxintrin.h: New header.
8712 * config/i386/cpuid.h (bit_MWAITX): Define.
8713 * config/i386/driver-i386.c (host_detect_local_cpu): Detect
8714 MWAITX support.
8715 * config/i386/i386.opt (mwaitx): New.
8716 * config/i386/i386-builtin-types.def
8717 (VOID_FTYPE_UNSIGNED_ UNSIGNED_UNSIGNED): New function type.
8718 * config/i386/i386-c.c: Define __MWAITX__ if needed.
8719 * config/i386/i386.c (ix86_target_string): Define -mmwaitx option.
8720 (PTA_MWAITX): New.
8721 (ix86_option_override_internal): Handle new option.
8722 (processor_alias_table): Added PTA_MWAITX.
8723 (ix86_valid_target_attribute_inner_p): Add OPT_mmwaitx.
8724 (ix86_builtins): Add IX86_BUILTIN_MWAITX, IX86_BUILTIN_MONITORX.
8725 (ix86_expand_builtin): Handle IX86_BUILTIN_MWAITX and
8726 IX86_BUILTIN_MONITORX built-ins.
8727 * config/i386/i386.h (TARGET_MWAITX): New.
8728 * config/i386/i386.md (unspecv): Add UNSPEC_MWAITX and
8729 UNSPEC_MONITORX.
8730 (mwaitx): New pattern.
8731 (monitorx_<mode>): New pattern.
8732 * config/i386/x86intrin.h: Include mwaitxintrin.h.
8733 * doc/extend.texi: Document monitorx and mwaitx builtins.
8734 * doc/invoke.texi: Document -mmwaitx option.
8735
8736 2015-06-12 Uros Bizjak <ubizjak@gmail.com>
8737
8738 * emit-rtl.c (need_atomic_barrier_p): Mask model with
8739 MEMMODEL_BASE_MASK. Remove MEMMODEL_SYNC_* cases.
8740
8741 2015-06-11 David Edelsohn <dje.gcc@gmail.com>
8742
8743 * dbxout.c (xcoff_debug_hooks): Provide a function for
8744 register_main_translation_unit hook.
8745
8746 2015-06-11 David Edelsohn <dje.gcc@gmail.com>
8747
8748 * config/rs6000/rs6000.c (rs6000_pre_atomic_barrier): Remove SYNC
8749 variants cases from switch.
8750 (rs6000_post_atomic_barrier): Same.
8751 (rs6000_expand_atomic_compare_and_swap): Use memmodel_base.
8752 (rs6000_expand_atomic_exchange): Same.
8753 (rs6000_expand_atomic_op): Same.
8754 * config/rs6000/sync.md (mem_thread_fence): Use memodel_base. Remove
8755 SYNC variants cases from switch.
8756 (atomic_load): Same.
8757 (atomic_store): Same.
8758
8759 2015-06-11 John David Anglin <danglin@gcc.gnu.org>
8760
8761 * config/pa/pa.c (pa_output_global_address): Handle LABEL_REF plus
8762 CONST_INT for goto.
8763
8764 2015-06-11 Aldy Hernandez <aldyh@redhat.com>
8765
8766 PR bootstrap/66448
8767 * dwarf2out.c (check_die): Check for common duplicate attributes.
8768 (add_location_or_const_value_attribute): Do not add duplicate
8769 attributes.
8770 (gen_formal_parameter_die): Do not add DW_AT_artificial the second
8771 time around.
8772 (gen_struct_or_union_type_die): Bail early if TREE_ASM_WRITTEN.
8773 (gen_type_die_with_usage): Call check_die.
8774 (dwarf2out_decl): Only call check_die() when ENABLE_CHECKING.
8775
8776 2015-06-11 Jason Merrill <jason@redhat.com>
8777
8778 * dwarf2out.c (prune_unused_types): Handle unused top-level limbo
8779 dies.
8780
8781 2015-06-11 Marek Polacek <polacek@redhat.com>
8782
8783 * match.pd ((x & y) ^ (x | y)): Don't check for single_use.
8784
8785 2015-06-11 Eric Botcazou <ebotcazou@adacore.com>
8786
8787 PR bootstrap/66252
8788 * config/sparc/sparc.c (hard_regno_mode_classes): Add ??? comment.
8789 * config/sparc/sparc.md (zero_extendsidi2_insn_sp32): Use single order.
8790 (*addx_extend_sp32): Fix pasto.
8791 (*subx_extend): Rename into...
8792 (*subx_extend_sp32): ...this.
8793 (*adddi3_extend_sp32): Add earlyclobber.
8794 (*subdi3_insn_sp32): Likewise.
8795 (*subdi3_extend_sp32): Likewise.
8796 (*and_not_di_sp32): Likewise.
8797 (*or_not_di_sp32): Likewise.
8798 (*xor_not_di_sp32): Likewise.
8799 (*negdi2_sp32): Likewise.
8800 (*one_cmpldi2_sp32): Likewise.
8801
8802 2015-06-11 Pierre-Marie de Rodat <derodat@adacore.com>
8803
8804 * debug.h (struct gcc_debug_hooks): Add a
8805 register_main_translation_unit hook.
8806 * debug.c (do_nothing_debug_hooks): Provide a function for this
8807 new hook.
8808 * dbxout.c (dbx_debug_hooks): Likewise.
8809 * sdbout.c (sdb_debug_hooks): Likewise.
8810 * vmsdbgout.c (vmsdbg_debug_hooks): Likewise.
8811 * dwarf2out.c (main_translation_unit): New global variable.
8812 (dwarf2out_register_main_translation_unit): New function
8813 implementing the new hook.
8814 (dwarf2_debug_hooks): Assign
8815 dwarf2out_register_main_translation_unit to this new hook.
8816 (dwarf2out_init): Associate any main translation unit to
8817 comp_unit_die ().
8818
8819 2015-06-11 Marek Polacek <polacek@redhat.com>
8820
8821 * match.pd ((x & y) ^ (x | y) -> x ^ y): New pattern.
8822
8823 2015-06-11 Marek Polacek <polacek@redhat.com>
8824
8825 * match.pd: Use single_use throughout.
8826
8827 2015-06-11 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
8828
8829 * config/arm/arm.c (arm_option_params_internal): When optimising
8830 for speed set max_insns_skipped when arm_restrict_it.
8831
8832 2015-06-11 Christian Bruel <christian.bruel@st.com>
8833
8834 PR target/52144
8835 * config/arm/arm-c.c (arm_cpu_cpp_builtins): Conditionally define
8836 macros in ...
8837 (arm_cpu_builtins): New function.
8838 (arm_pragma_target_parse): Call arm_cpu_builtins.
8839 * config/arm/arm-protos.h (arm_cpu_builtins): Declare.
8840 (arm_register_target_pragmas): Likewise.
8841 * config/arm/arm.h (REGISTER_TARGET_PRAGMAS):
8842 Call arm_register_target_pragmas.
8843 * config/arm/arm-c.c (arm_register_target_pragmas): New function.
8844 (arm_pragma_target_parse): Likewise.
8845
8846 2015-06-10 Kaz Kojima <kkojima@gcc.gnu.org>
8847
8848 * config/sh/sh.md (tstsi_t): Add '?' modifier to 'r' alternative
8849 of the second operand.
8850
8851 2015-06-10 Uros Bizjak <ubizjak@gmail.com>
8852
8853 PR target/66473
8854 * config/i386/i386.c (ix86_expand_vector_set): Use gen_int_mode
8855 to prepare mask operand for AVX512 modes.
8856
8857 2015-06-10 Michael Meissner <meissner@linux.vnet.ibm.com>
8858
8859 PR target/66474
8860 * doc/md.texi (Machine Constraints): Document that on the PowerPC
8861 if you use a constraint that targets a VSX register, you must use
8862 %x<n> in the template.
8863
8864 2015-06-10 Max Filippov <jcmvbkbc@gmail.com>
8865
8866 * config/xtensa/xtensa.h (TARGET_DEBUG): New definition.
8867 * config/xtensa/xtensa.md (define_attr "type"): New type "trap".
8868 (define_insn "trap"): New definition.
8869
8870 2015-06-10 Richard Biener <rguenther@suse.de>
8871
8872 * tree-vect-slp.c (vect_attempt_slp_rearrange_stmts): Split
8873 out from ...
8874 (vect_supported_load_permutation_p): ... here. Handle
8875 supportable permutations in reductions.
8876 * tree-vect-stmts.c (vectorizable_load): Handle SLP permutations
8877 for vectorizing strided group loads.
8878
8879 2015-06-10 Jakub Jelinek <jakub@redhat.com>
8880
8881 PR target/66470
8882 * config/i386/i386.c (ix86_split_long_move): For collisions
8883 involving direct tls segment refs, move the UNSPEC_TP possibly
8884 wrapped in ZERO_EXTEND out of the address for lea, to each of
8885 the memory loads.
8886
8887 2015-06-10 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
8888
8889 * config/arm/sync.md (*memory_barrier): Use dmb ish instead of
8890 dmb sy. Adjust tabs.
8891
8892 2015-06-10 Tom de Vries <tom@codesourcery.com>
8893
8894 * omp-low.c (expand_omp_target): Remove duplicate declaration of node.
8895
8896 2015-06-10 Martin Liska <mliska@suse.cz>
8897
8898 PR bootstrap/66471
8899 * mem-stats-traits.h (enum mem_alloc_origin): Add _ORIGIN suffix for
8900 all enum values in mem_alloc_origin.
8901 * alloc-pool.c (dump_alloc_pool_statistics): Use newly changed enum
8902 name.
8903 * alloc-pool.h (pool_allocator::pool_allocator): Likewise.
8904 * bitmap.c (bitmap_register): Likewise.
8905 (dump_bitmap_statistics): Likewise.
8906 * ggc-common.c (dump_ggc_loc_statistics): Likewise.
8907 (ggc_record_overhead): Likewise.
8908 * hash-map.h: Likewise.
8909 * hash-set.h: Likewise.
8910 * hash-table.c (void dump_hash_table_loc_statistics): Likewise.
8911 * hash-table.h: Likewise.
8912 * vec.c (vec_prefix::register_overhead): Likewise.
8913 (vec_prefix::release_overhead): Likewise.
8914 (dump_vec_loc_statistics): Likewise.
8915
8916 2015-06-09 Christian Bruel <christian.bruel@st.com>
8917
8918 PR target/52144
8919 * config/arm/arm.opt (THUMB, arm_restrict_it, inline_asm_unified): Save.
8920 * config/arm/arm-protos.h (arm_valid_target_attribute_tree): Declare.
8921 (arm_reset_previous_fndecl, arm_change_mode_p): Likewise.
8922 * config/arm/arm.h (SWITCHABLE_TARGET): Define.
8923 * config/arm/arm.c (arm_reset_previous_fndecl): New functions.
8924 (arm_valid_target_attribute_tree, arm_change_mode_p): Likewise.
8925 (arm_valid_target_attribute_p): Likewise.
8926 (arm_set_current_function, arm_can_inline_p): Likewise.
8927 (arm_valid_target_attribute_rec): Likewise.
8928 (arm_previous_fndecl): New variable.
8929 (TARGET_SET_CURRENT_FUNCTION, TARGET_OPTION_VALID_ATTRIBUTE_P): Define.
8930 (TARGET_CAN_INLINE_P): Define.
8931 (arm_asm_trampoline_template): Emit mode.
8932 (arm_file_start): Don't set unified syntax.
8933 (arm_declare_function_name): Set unified syntax and mode.
8934 (arm_option_override): Init target_option_default_node.
8935 and target_option_current_node.
8936 * config/arm/arm.md (*call_value_symbol): Set mode when possible.
8937 (*call_symbol): Likewise.
8938 * doc/extend.texi: Document ARM/Thumb target attribute.
8939 * doc/invoke.texi: Likewise.
8940
8941 2015-06-09 Alexandre Oliva <aoliva@redhat.com>
8942
8943 Revert:
8944 2015-06-09 Alexandre Oliva <aoliva@redhat.com>
8945 PR rtl-optimization/64164
8946 * Makefile.in (OBJS): Drop tree-ssa-copyrename.o.
8947 * tree-ssa-copyrename.c: Removed.
8948 * opts.c (default_options_table): Drop -ftree-copyrename. Add
8949 -ftree-coalesce-vars.
8950 * passes.def: Drop all occurrences of pass_rename_ssa_copies.
8951 * common.opt (ftree-copyrename): Ignore.
8952 (ftree-coalesce-inlined-vars): Likewise.
8953 * doc/invoke.texi: Remove the ignored options above.
8954 * gimple-expr.h (gimple_can_coalesce_p): Move declaration
8955 * tree-ssa-coalesce.h: ... here.
8956 * tree-ssa-uncprop.c: Include tree-ssa-coalesce.h and other
8957 headers required by it.
8958 * gimple-expr.c (gimple_can_coalesce_p): Allow coalescing
8959 across variables when flag_tree_coalesce_vars. Check register
8960 use and promoted modes to allow coalescing. Moved to
8961 tree-ssa-coalesce.c.
8962 * tree-ssa-live.c (struct tree_int_map_hasher): Move along
8963 with its member functions to tree-ssa-coalesce.c.
8964 (var_map_base_init): Likewise. Renamed to
8965 compute_samebase_partition_bases.
8966 (partition_view_normal): Drop want_bases parameter.
8967 (partition_view_bitmap): Likewise.
8968 * tree-ssa-live.h: Adjust declarations.
8969 * tree-ssa-coalesce.c: Include explow.h.
8970 (build_ssa_conflict_graph): Process PARM_ and RESULT_DECLs's
8971 default defs at the entry point.
8972 (dump_part_var_map): New.
8973 (compute_optimized_partition_bases): New, called by...
8974 (coalesce_ssa_name): ... when flag_tree_coalesce_vars, instead
8975 of compute_samebase_partition_bases. Adjust.
8976 * alias.c (nonoverlapping_memrefs_p): Disregard gimple-regs.
8977 * cfgexpand.c (leader_merge): New.
8978 (get_rtl_for_parm_ssa_default_def): New.
8979 (set_rtl): Merge exprs and attrs, even for MEMs and non-SSA
8980 vars. Update DECL_RTL for PARM_DECLs and RESULT_DECLs too.
8981 (expand_one_stack_var_at): Handle anonymous SSA_NAMEs. Drop
8982 redundant MEM attr setting.
8983 (expand_one_stack_var_1): Handle anonymous SSA_NAMEs. Renamed
8984 from...
8985 (expand_one_stack_var): ... this. New wrapper to check and
8986 skip already expanded SSA partitions.
8987 (record_alignment_for_reg_var): New, factored out of...
8988 (expand_one_var): ... this.
8989 (expand_one_ssa_partition): New.
8990 (adjust_one_expanded_partition_var): New.
8991 (expand_one_register_var): Check and skip already expanded SSA
8992 partitions.
8993 (expand_used_vars): Don't create DECLs for anonymous SSA
8994 names. Expand all SSA partitions, then adjust all SSA names.
8995 (pass::execute): Replace the loops that set
8996 SA.partition_to_pseudo from partition leaders and cleared
8997 DECL_RTL for multi-location variables, and that which used to
8998 rename vars and set attrs, with one that clears DECL_RTL and
8999 checks that PARMs and RESULTs default_defs match DECL_RTL.
9000 * cfgexpand.h (get_rtl_for_parm_ssa_default_def): Declare.
9001 * emit-rtl.c (set_reg_attrs_for_parm): Handle NULL decl.
9002 * explow.c (promote_ssa_mode): New.
9003 * explow.h (promote_ssa_mode): Declare.
9004 * expr.c (expand_expr_real_1): Handle anonymous SSA_NAMEs.
9005 * function.c: Include cfgexpand.h.
9006 (use_register_for_decl): Handle SSA_NAMEs, anonymous or not.
9007 (use_register_for_parm_decl): Wrapper for the above to
9008 special-case the result_ptr.
9009 (rtl_for_parm): Ditto for get_rtl_for_parm_ssa_default_def.
9010 (maybe_reset_rtl_for_parm): Reset DECL_RTL of parms with
9011 multiple locations.
9012 (assign_parm_adjust_stack_rtl): Add all and parm arguments,
9013 for rtl_for_parm. For SSA-assigned parms, zero stack_parm.
9014 (assign_parm_setup_block): Prefer SSA-assigned location.
9015 (assign_parm_setup_reg): Likewise. Use entry_parm for equiv
9016 if stack_parm is NULL.
9017 (assign_parm_setup_stack): Prefer SSA-assigned location.
9018 (assign_parms): Maybe reset DECL_RTL of params. Adjust stack
9019 rtl before testing for pointer bounds. Special-case result_ptr.
9020 (expand_function_start): Maybe reset DECL_RTL of result.
9021 Prefer SSA-assigned location for result and static chain.
9022 Factor out DECL_RESULT and SET_DECL_RTL.
9023 * tree-outof-ssa.c (insert_value_copy_on_edge): Handle
9024 anonymous SSA names. Use promote_ssa_mode.
9025 (get_temp_reg): Likewise.
9026 (remove_ssa_form): Adjust.
9027 * var-tracking.c (dataflow_set_clear_at_call): Take call_insn
9028 and get its reg_usage for reg invalidation.
9029 (compute_bb_dataflow): Pass it insn.
9030 (emit_notes_in_bb): Likewise.
9031 * tree-ssa-loop-niter.c (loop_exits_before_overflow): Don't
9032 fail assert on conversion between unsigned types.
9033
9034 2015-06-09 Tom de Vries <tom@codesourcery.com>
9035
9036 PR tree-optimization/65460
9037 * omp-low.c (expand_omp_target): Set parallelized_function on
9038 cgraph_node for child_fn.
9039
9040 2015-06-09 Tom de Vries <tom@codesourcery.com>
9041
9042 * omp-low.c (finalize_task_copyfn, expand_omp_taskreg): Mark function
9043 parallelized_function before add_new_function.
9044
9045 2015-06-09 Andrew MacLeod <amacleod@redhat.com>
9046
9047 * gcc-plugin.h: Move decls to plugin.h and include it.
9048 * plugin.h: Relocate decls from gcc-plugin.h
9049 * ggc-page.c: Include required header files.
9050 * passes.c: Likewise.
9051 * cgraphunit.c: Likewise.
9052
9053 2015-06-09 Tom de Vries <tom@codesourcery.com>
9054
9055 * tree-stdarg.c (expand_ifn_va_arg_1): Handle location.
9056
9057 2015-06-09 Jason Merrill <jason@redhat.com>
9058
9059 PR bootstrap/66448
9060 * toplev.c (check_global_declaration): Don't warn about a clone.
9061
9062 2015-06-09 Marek Polacek <polacek@redhat.com>
9063
9064 PR tree-optimization/66299
9065 * match.pd ((CST1 << A) == CST2 -> A == ctz (CST2) - ctz (CST1)
9066 ((CST1 << A) != CST2 -> A != ctz (CST2) - ctz (CST1)): New
9067 patterns.
9068
9069 2015-06-09 Richard Biener <rguenther@suse.de>
9070
9071 * tree-vect-slp.c (vect_build_slp_tree_1): Remove bailout on gaps.
9072 (vect_analyze_slp_instance): Instead do not falsely drop
9073 load permutations.
9074
9075 2015-06-09 Richard Biener <rguenther@suse.de>
9076
9077 PR middle-end/66423
9078 * match.pd: Handle A % (unsigned)(1 << B).
9079
9080 2015-06-09 Aldy Hernandez <aldyh@redhat.com>
9081
9082 * varasm.c (output_object_block_htab): Remove.
9083 (output_object_block_compare): New.
9084 (output_object_blocks): Sort named object_blocks before outputting
9085 them.
9086
9087 2015-06-09 Richard Biener <rguenther@suse.de>
9088
9089 PR tree-optimization/66419
9090 * tree-vect-slp.c (vect_supported_load_permutation_p): Properly
9091 consider GROUP_GAP when detecting a perfect subchain.
9092
9093 2015-06-09 Nick Clifton <nickc@redhat.com>
9094
9095 * config/rl78/rl78.c (rl78_select_section): When -mes0 is active
9096 place read only data in the .frodata section.
9097
9098 2015-06-09 Shiva Chen <shiva0217@gmail.com>
9099
9100 * sync.md (atomic_load<mode>): Add conditional code for lda/ldr
9101 (atomic_store<mode>): Likewise.
9102
9103 2015-06-09 Richard Biener <rguenther@suse.de>
9104
9105 * cfgloop.c (get_loop_body_in_bfs_order): Fix assert.
9106
9107 2015-06-09 Richard Biener <rguenther@suse.de>
9108
9109 PR middle-end/66413
9110 * tree-inline.c (insert_init_debug_bind): Unshare value.
9111
9112 2015-06-09 Richard Biener <rguenther@suse.de>
9113
9114 PR tree-optimization/66396
9115 * graphite-isl-ast-to-gimple.c (graphite_regenerate_ast_isl):
9116 Rename virtual operands.
9117
9118 2015-06-09 Tom de Vries <tom@codesourcery.com>
9119
9120 * gimple-iterator.h (gimple_seq_nondebug_singleton_p): Don't
9121 always return false.
9122
9123 2015-06-09 Alexandre Oliva <aoliva@redhat.com>
9124
9125 PR rtl-optimization/64164
9126 * Makefile.in (OBJS): Drop tree-ssa-copyrename.o.
9127 * tree-ssa-copyrename.c: Removed.
9128 * opts.c (default_options_table): Drop -ftree-copyrename. Add
9129 -ftree-coalesce-vars.
9130 * passes.def: Drop all occurrences of pass_rename_ssa_copies.
9131 * common.opt (ftree-copyrename): Ignore.
9132 (ftree-coalesce-inlined-vars): Likewise.
9133 * doc/invoke.texi: Remove the ignored options above.
9134 * gimple-expr.h (gimple_can_coalesce_p): Move declaration
9135 * tree-ssa-coalesce.h: ... here.
9136 * tree-ssa-uncprop.c: Include tree-ssa-coalesce.h and other
9137 headers required by it.
9138 * gimple-expr.c (gimple_can_coalesce_p): Allow coalescing
9139 across variables when flag_tree_coalesce_vars. Check register
9140 use and promoted modes to allow coalescing. Moved to
9141 tree-ssa-coalesce.c.
9142 * tree-ssa-live.c (struct tree_int_map_hasher): Move along
9143 with its member functions to tree-ssa-coalesce.c.
9144 (var_map_base_init): Likewise. Renamed to
9145 compute_samebase_partition_bases.
9146 (partition_view_normal): Drop want_bases parameter.
9147 (partition_view_bitmap): Likewise.
9148 * tree-ssa-live.h: Adjust declarations.
9149 * tree-ssa-coalesce.c: Include explow.h.
9150 (build_ssa_conflict_graph): Process PARM_ and RESULT_DECLs's
9151 default defs at the entry point.
9152 (dump_part_var_map): New.
9153 (compute_optimized_partition_bases): New, called by...
9154 (coalesce_ssa_name): ... when flag_tree_coalesce_vars, instead
9155 of compute_samebase_partition_bases. Adjust.
9156 * alias.c (nonoverlapping_memrefs_p): Disregard gimple-regs.
9157 * cfgexpand.c (leader_merge): New.
9158 (get_rtl_for_parm_ssa_default_def): New.
9159 (set_rtl): Merge exprs and attrs, even for MEMs and non-SSA
9160 vars. Update DECL_RTL for PARM_DECLs and RESULT_DECLs too.
9161 (expand_one_stack_var_at): Handle anonymous SSA_NAMEs. Drop
9162 redundant MEM attr setting.
9163 (expand_one_stack_var_1): Handle anonymous SSA_NAMEs. Renamed
9164 from...
9165 (expand_one_stack_var): ... this. New wrapper to check and
9166 skip already expanded SSA partitions.
9167 (record_alignment_for_reg_var): New, factored out of...
9168 (expand_one_var): ... this.
9169 (expand_one_ssa_partition): New.
9170 (adjust_one_expanded_partition_var): New.
9171 (expand_one_register_var): Check and skip already expanded SSA
9172 partitions.
9173 (expand_used_vars): Don't create DECLs for anonymous SSA
9174 names. Expand all SSA partitions, then adjust all SSA names.
9175 (pass::execute): Replace the loops that set
9176 SA.partition_to_pseudo from partition leaders and cleared
9177 DECL_RTL for multi-location variables, and that which used to
9178 rename vars and set attrs, with one that clears DECL_RTL and
9179 checks that PARMs and RESULTs default_defs match DECL_RTL.
9180 * cfgexpand.h (get_rtl_for_parm_ssa_default_def): Declare.
9181 * emit-rtl.c (set_reg_attrs_for_parm): Handle NULL decl.
9182 * explow.c (promote_ssa_mode): New.
9183 * explow.h (promote_ssa_mode): Declare.
9184 * expr.c (expand_expr_real_1): Handle anonymous SSA_NAMEs.
9185 * function.c: Include cfgexpand.h.
9186 (use_register_for_decl): Handle SSA_NAMEs, anonymous or not.
9187 (use_register_for_parm_decl): Wrapper for the above to
9188 special-case the result_ptr.
9189 (rtl_for_parm): Ditto for get_rtl_for_parm_ssa_default_def.
9190 (maybe_reset_rtl_for_parm): Reset DECL_RTL of parms with
9191 multiple locations.
9192 (assign_parm_adjust_stack_rtl): Add all and parm arguments,
9193 for rtl_for_parm. For SSA-assigned parms, zero stack_parm.
9194 (assign_parm_setup_block): Prefer SSA-assigned location.
9195 (assign_parm_setup_reg): Likewise. Use entry_parm for equiv
9196 if stack_parm is NULL.
9197 (assign_parm_setup_stack): Prefer SSA-assigned location.
9198 (assign_parms): Maybe reset DECL_RTL of params. Adjust stack
9199 rtl before testing for pointer bounds. Special-case result_ptr.
9200 (expand_function_start): Maybe reset DECL_RTL of result.
9201 Prefer SSA-assigned location for result and static chain.
9202 Factor out DECL_RESULT and SET_DECL_RTL.
9203 * tree-outof-ssa.c (insert_value_copy_on_edge): Handle
9204 anonymous SSA names. Use promote_ssa_mode.
9205 (get_temp_reg): Likewise.
9206 (remove_ssa_form): Adjust.
9207 * var-tracking.c (dataflow_set_clear_at_call): Take call_insn
9208 and get its reg_usage for reg invalidation.
9209 (compute_bb_dataflow): Pass it insn.
9210 (emit_notes_in_bb): Likewise.
9211 * tree-ssa-loop-niter.c (loop_exits_before_overflow): Don't
9212 fail assert on conversion between unsigned types.
9213
9214 2015-06-09 Alexandre Oliva <aoliva@redhat.com>
9215
9216 PR debug/58315
9217 * tree-inline.c (reset_debug_binding): New.
9218 (reset_debug_bindings): Likewise.
9219 (expand_call_inline): Call it.
9220
9221 2015-06-08 Jan Hubicka <hubicka@ucw.cz>
9222
9223 * tree.c (gimple_canonical_types_compatible_p): Drop comparsion of
9224 TYPE_STRING_FLAG.
9225
9226 2015-06-08 Jan Hubicka <hubicka@ucw.cz>
9227
9228 * lto-streamer-out.c (lto_output_location): Stream
9229 reserved locations correctly.
9230 * lto-streamer-in.c (lto_output_location): Likewise.
9231
9232 2015-06-08 Andrew MacLeod <amacleod@redhat.com>
9233
9234 * coretypes.h: Include hash-table.h and hash-set.h for host files.
9235 * ggc.h: Don't include statistics.h>
9236 * hash-map.h: Remove all includes.
9237 * hash-set.h: Likewise.
9238 * hash-table.h: Add statistics.h, inchash.h and hash-map-traits.h to
9239 the include list. Remove <new>.
9240 * inchash.h: Remove all includes.
9241 * mem-stats.h: Likewise.
9242 * vec.h: No special processing for generators or ggc.
9243 * alias.c : Adjust include files.
9244 * alloc-pool.c : Likewise.
9245 * alloc-pool.h : Likewise.
9246 * asan.c : Likewise.
9247 * attribs.c : Likewise.
9248 * auto-inc-dec.c : Likewise.
9249 * auto-profile.c : Likewise.
9250 * bb-reorder.c : Likewise.
9251 * bitmap.c : Likewise.
9252 * bitmap.h : Likewise.
9253 * bt-load.c : Likewise.
9254 * builtins.c : Likewise.
9255 * caller-save.c : Likewise.
9256 * calls.c : Likewise.
9257 * ccmp.c : Likewise.
9258 * cfg.c : Likewise.
9259 * cfganal.c : Likewise.
9260 * cfgbuild.c : Likewise.
9261 * cfgcleanup.c : Likewise.
9262 * cfgexpand.c : Likewise.
9263 * cfghooks.c : Likewise.
9264 * cfgloop.c : Likewise.
9265 * cfgloop.h : Likewise.
9266 * cfgloopanal.c : Likewise.
9267 * cfgloopmanip.c : Likewise.
9268 * cfgrtl.c : Likewise.
9269 * cgraph.c : Likewise.
9270 * cgraphbuild.c : Likewise.
9271 * cgraphclones.c : Likewise.
9272 * cgraphunit.c : Likewise.
9273 * cilk-common.c : Likewise.
9274 * combine-stack-adj.c : Likewise.
9275 * combine.c : Likewise.
9276 * compare-elim.c : Likewise.
9277 * context.c : Likewise.
9278 * convert.c : Likewise.
9279 * coverage.c : Likewise.
9280 * cppbuiltin.c : Likewise.
9281 * cprop.c : Likewise.
9282 * cse.c : Likewise.
9283 * cselib.c : Likewise.
9284 * data-streamer-in.c : Likewise.
9285 * data-streamer-out.c : Likewise.
9286 * data-streamer.c : Likewise.
9287 * data-streamer.h : Likewise.
9288 * dbxout.c : Likewise.
9289 * dce.c : Likewise.
9290 * ddg.c : Likewise.
9291 * debug.c : Likewise.
9292 * df-core.c : Likewise.
9293 * df-problems.c : Likewise.
9294 * df-scan.c : Likewise.
9295 * df.h : Likewise.
9296 * dfp.c : Likewise.
9297 * dojump.c : Likewise.
9298 * dominance.c : Likewise.
9299 * domwalk.c : Likewise.
9300 * double-int.c : Likewise.
9301 * dse.c : Likewise.
9302 * dumpfile.c : Likewise.
9303 * dwarf2asm.c : Likewise.
9304 * dwarf2cfi.c : Likewise.
9305 * dwarf2out.c : Likewise.
9306 * emit-rtl.c : Likewise.
9307 * et-forest.c : Likewise.
9308 * except.c : Likewise.
9309 * except.h : Likewise.
9310 * explow.c : Likewise.
9311 * expmed.c : Likewise.
9312 * expr.c : Likewise.
9313 * final.c : Likewise.
9314 * fixed-value.c : Likewise.
9315 * fold-const.c : Likewise.
9316 * function.c : Likewise.
9317 * fwprop.c : Likewise.
9318 * gcc-plugin.h : Likewise.
9319 * gcc.c : Likewise.
9320 * gcse-common.c : Likewise.
9321 * gcse.c : Likewise.
9322 * genattrtab.c : Likewise.
9323 * genautomata.c : Likewise.
9324 * genconditions.c : Likewise.
9325 * genemit.c : Likewise.
9326 * generic-match-head.c : Likewise.
9327 * genextract.c : Likewise.
9328 * gengtype-state.c : Likewise.
9329 * gengtype.c : Likewise.
9330 * genhooks.c : Likewise.
9331 * genmatch.c : Likewise.
9332 * genmodes.c : Likewise.
9333 * genrecog.c : Likewise.
9334 * gensupport.c : Likewise.
9335 * ggc-common.c : Likewise.
9336 * ggc-internal.h : Likewise.
9337 * ggc-none.c : Likewise.
9338 * ggc-page.c : Likewise.
9339 * gimple-builder.c : Likewise.
9340 * gimple-expr.c : Likewise.
9341 * gimple-fold.c : Likewise.
9342 * gimple-iterator.c : Likewise.
9343 * gimple-low.c : Likewise.
9344 * gimple-match-head.c : Likewise.
9345 * gimple-pretty-print.c : Likewise.
9346 * gimple-ssa-isolate-paths.c : Likewise.
9347 * gimple-ssa-strength-reduction.c : Likewise.
9348 * gimple-ssa.h : Likewise.
9349 * gimple-streamer-in.c : Likewise.
9350 * gimple-streamer-out.c : Likewise.
9351 * gimple-streamer.h : Likewise.
9352 * gimple-walk.c : Likewise.
9353 * gimple.c : Likewise.
9354 * gimplify-me.c : Likewise.
9355 * gimplify.c : Likewise.
9356 * godump.c : Likewise.
9357 * graph.c : Likewise.
9358 * graphds.c : Likewise.
9359 * graphite-blocking.c : Likewise.
9360 * graphite-dependences.c : Likewise.
9361 * graphite-interchange.c : Likewise.
9362 * graphite-isl-ast-to-gimple.c : Likewise.
9363 * graphite-optimize-isl.c : Likewise.
9364 * graphite-poly.c : Likewise.
9365 * graphite-scop-detection.c : Likewise.
9366 * graphite-sese-to-poly.c : Likewise.
9367 * graphite.c : Likewise.
9368 * haifa-sched.c : Likewise.
9369 * hard-reg-set.h : Likewise.
9370 * hw-doloop.c : Likewise.
9371 * ifcvt.c : Likewise.
9372 * inchash.c : Likewise.
9373 * incpath.c : Likewise.
9374 * init-regs.c : Likewise.
9375 * input.c : Likewise.
9376 * internal-fn.c : Likewise.
9377 * ipa-chkp.c : Likewise.
9378 * ipa-comdats.c : Likewise.
9379 * ipa-cp.c : Likewise.
9380 * ipa-devirt.c : Likewise.
9381 * ipa-icf-gimple.c : Likewise.
9382 * ipa-icf.c : Likewise.
9383 * ipa-inline-analysis.c : Likewise.
9384 * ipa-inline-transform.c : Likewise.
9385 * ipa-inline.c : Likewise.
9386 * ipa-polymorphic-call.c : Likewise.
9387 * ipa-profile.c : Likewise.
9388 * ipa-prop.c : Likewise.
9389 * ipa-pure-const.c : Likewise.
9390 * ipa-ref.c : Likewise.
9391 * ipa-reference.c : Likewise.
9392 * ipa-split.c : Likewise.
9393 * ipa-utils.c : Likewise.
9394 * ipa-visibility.c : Likewise.
9395 * ipa.c : Likewise.
9396 * ira-build.c : Likewise.
9397 * ira-color.c : Likewise.
9398 * ira-conflicts.c : Likewise.
9399 * ira-costs.c : Likewise.
9400 * ira-emit.c : Likewise.
9401 * ira-lives.c : Likewise.
9402 * ira.c : Likewise.
9403 * jump.c : Likewise.
9404 * langhooks.c : Likewise.
9405 * lcm.c : Likewise.
9406 * libfuncs.h : Likewise.
9407 * lists.c : Likewise.
9408 * loop-doloop.c : Likewise.
9409 * loop-init.c : Likewise.
9410 * loop-invariant.c : Likewise.
9411 * loop-iv.c : Likewise.
9412 * loop-unroll.c : Likewise.
9413 * lower-subreg.c : Likewise.
9414 * lra-assigns.c : Likewise.
9415 * lra-coalesce.c : Likewise.
9416 * lra-constraints.c : Likewise.
9417 * lra-eliminations.c : Likewise.
9418 * lra-lives.c : Likewise.
9419 * lra-remat.c : Likewise.
9420 * lra-spills.c : Likewise.
9421 * lra.c : Likewise.
9422 * lto-cgraph.c : Likewise.
9423 * lto-compress.c : Likewise.
9424 * lto-opts.c : Likewise.
9425 * lto-section-in.c : Likewise.
9426 * lto-section-out.c : Likewise.
9427 * lto-streamer-in.c : Likewise.
9428 * lto-streamer-out.c : Likewise.
9429 * lto-streamer.c : Likewise.
9430 * lto-streamer.h : Likewise.
9431 * mcf.c : Likewise.
9432 * mode-switching.c : Likewise.
9433 * modulo-sched.c : Likewise.
9434 * omega.c : Likewise.
9435 * omp-low.c : Likewise.
9436 * optabs.c : Likewise.
9437 * opts-global.c : Likewise.
9438 * opts.h : Likewise.
9439 * passes.c : Likewise.
9440 * plugin.c : Likewise.
9441 * postreload-gcse.c : Likewise.
9442 * postreload.c : Likewise.
9443 * predict.c : Likewise.
9444 * print-rtl.c : Likewise.
9445 * print-tree.c : Likewise.
9446 * profile.c : Likewise.
9447 * read-md.c : Likewise.
9448 * read-md.h : Likewise.
9449 * read-rtl.c : Likewise.
9450 * real.c : Likewise.
9451 * realmpfr.c : Likewise.
9452 * recog.c : Likewise.
9453 * ree.c : Likewise.
9454 * reg-stack.c : Likewise.
9455 * regcprop.c : Likewise.
9456 * reginfo.c : Likewise.
9457 * regrename.c : Likewise.
9458 * regstat.c : Likewise.
9459 * reload.c : Likewise.
9460 * reload1.c : Likewise.
9461 * reorg.c : Likewise.
9462 * resource.c : Likewise.
9463 * rtl-chkp.c : Likewise.
9464 * rtl.c : Likewise.
9465 * rtl.h : Likewise.
9466 * rtlanal.c : Likewise.
9467 * rtlhash.c : Likewise.
9468 * rtlhash.h : Likewise.
9469 * rtlhooks.c : Likewise.
9470 * sanopt.c : Likewise.
9471 * sched-deps.c : Likewise.
9472 * sched-ebb.c : Likewise.
9473 * sched-rgn.c : Likewise.
9474 * sched-vis.c : Likewise.
9475 * sdbout.c : Likewise.
9476 * sel-sched-dump.c : Likewise.
9477 * sel-sched-ir.c : Likewise.
9478 * sel-sched-ir.h : Likewise.
9479 * sel-sched.c : Likewise.
9480 * sese.c : Likewise.
9481 * shrink-wrap.c : Likewise.
9482 * shrink-wrap.h : Likewise.
9483 * simplify-rtx.c : Likewise.
9484 * stack-ptr-mod.c : Likewise.
9485 * statistics.c : Likewise.
9486 * stmt.c : Likewise.
9487 * stor-layout.c : Likewise.
9488 * store-motion.c : Likewise.
9489 * stringpool.c : Likewise.
9490 * symtab.c : Likewise.
9491 * target-globals.c : Likewise.
9492 * targhooks.c : Likewise.
9493 * tlink.c : Likewise.
9494 * toplev.c : Likewise.
9495 * tracer.c : Likewise.
9496 * trans-mem.c : Likewise.
9497 * tree-affine.c : Likewise.
9498 * tree-affine.h : Likewise.
9499 * tree-browser.c : Likewise.
9500 * tree-call-cdce.c : Likewise.
9501 * tree-cfg.c : Likewise.
9502 * tree-cfgcleanup.c : Likewise.
9503 * tree-chkp-opt.c : Likewise.
9504 * tree-chkp.c : Likewise.
9505 * tree-chrec.c : Likewise.
9506 * tree-complex.c : Likewise.
9507 * tree-data-ref.c : Likewise.
9508 * tree-dfa.c : Likewise.
9509 * tree-diagnostic.c : Likewise.
9510 * tree-dump.c : Likewise.
9511 * tree-eh.c : Likewise.
9512 * tree-eh.h : Likewise.
9513 * tree-emutls.c : Likewise.
9514 * tree-hasher.h : Likewise.
9515 * tree-if-conv.c : Likewise.
9516 * tree-inline.c : Likewise.
9517 * tree-inline.h : Likewise.
9518 * tree-into-ssa.c : Likewise.
9519 * tree-iterator.c : Likewise.
9520 * tree-loop-distribution.c : Likewise.
9521 * tree-nested.c : Likewise.
9522 * tree-nrv.c : Likewise.
9523 * tree-object-size.c : Likewise.
9524 * tree-outof-ssa.c : Likewise.
9525 * tree-parloops.c : Likewise.
9526 * tree-phinodes.c : Likewise.
9527 * tree-predcom.c : Likewise.
9528 * tree-pretty-print.c : Likewise.
9529 * tree-profile.c : Likewise.
9530 * tree-scalar-evolution.c : Likewise.
9531 * tree-sra.c : Likewise.
9532 * tree-ssa-address.c : Likewise.
9533 * tree-ssa-alias.c : Likewise.
9534 * tree-ssa-ccp.c : Likewise.
9535 * tree-ssa-coalesce.c : Likewise.
9536 * tree-ssa-copy.c : Likewise.
9537 * tree-ssa-copyrename.c : Likewise.
9538 * tree-ssa-dce.c : Likewise.
9539 * tree-ssa-dom.c : Likewise.
9540 * tree-ssa-dse.c : Likewise.
9541 * tree-ssa-forwprop.c : Likewise.
9542 * tree-ssa-ifcombine.c : Likewise.
9543 * tree-ssa-live.c : Likewise.
9544 * tree-ssa-loop-ch.c : Likewise.
9545 * tree-ssa-loop-im.c : Likewise.
9546 * tree-ssa-loop-ivcanon.c : Likewise.
9547 * tree-ssa-loop-ivopts.c : Likewise.
9548 * tree-ssa-loop-manip.c : Likewise.
9549 * tree-ssa-loop-niter.c : Likewise.
9550 * tree-ssa-loop-prefetch.c : Likewise.
9551 * tree-ssa-loop-unswitch.c : Likewise.
9552 * tree-ssa-loop.c : Likewise.
9553 * tree-ssa-math-opts.c : Likewise.
9554 * tree-ssa-operands.c : Likewise.
9555 * tree-ssa-phiopt.c : Likewise.
9556 * tree-ssa-phiprop.c : Likewise.
9557 * tree-ssa-pre.c : Likewise.
9558 * tree-ssa-propagate.c : Likewise.
9559 * tree-ssa-reassoc.c : Likewise.
9560 * tree-ssa-sccvn.c : Likewise.
9561 * tree-ssa-scopedtables.c : Likewise.
9562 * tree-ssa-sink.c : Likewise.
9563 * tree-ssa-strlen.c : Likewise.
9564 * tree-ssa-structalias.c : Likewise.
9565 * tree-ssa-tail-merge.c : Likewise.
9566 * tree-ssa-ter.c : Likewise.
9567 * tree-ssa-threadedge.c : Likewise.
9568 * tree-ssa-threadupdate.c : Likewise.
9569 * tree-ssa-uncprop.c : Likewise.
9570 * tree-ssa-uninit.c : Likewise.
9571 * tree-ssa.c : Likewise.
9572 * tree-ssanames.c : Likewise.
9573 * tree-stdarg.c : Likewise.
9574 * tree-streamer-in.c : Likewise.
9575 * tree-streamer-out.c : Likewise.
9576 * tree-streamer.c : Likewise.
9577 * tree-streamer.h : Likewise.
9578 * tree-switch-conversion.c : Likewise.
9579 * tree-tailcall.c : Likewise.
9580 * tree-vect-data-refs.c : Likewise.
9581 * tree-vect-generic.c : Likewise.
9582 * tree-vect-loop-manip.c : Likewise.
9583 * tree-vect-loop.c : Likewise.
9584 * tree-vect-patterns.c : Likewise.
9585 * tree-vect-slp.c : Likewise.
9586 * tree-vect-stmts.c : Likewise.
9587 * tree-vectorizer.c : Likewise.
9588 * tree-vectorizer.h : Likewise.
9589 * tree-vrp.c : Likewise.
9590 * tree.c : Likewise.
9591 * tsan.c : Likewise.
9592 * ubsan.c : Likewise.
9593 * valtrack.c : Likewise.
9594 * valtrack.h : Likewise.
9595 * value-prof.c : Likewise.
9596 * var-tracking.c : Likewise.
9597 * varasm.c : Likewise.
9598 * varpool.c : Likewise.
9599 * vec.c: Likewise.
9600 * vmsdbgout.c : Likewise.
9601 * vtable-verify.c : Likewise.
9602 * vtable-verify.h : Likewise.
9603 * web.c : Likewise.
9604 * wide-int.cc : Likewise.
9605 * xcoffout.c : Likewise.
9606 * config/aarch64/aarch64-builtins.c : Likewise.
9607 * config/aarch64/aarch64.c : Likewise.
9608 * config/aarch64/cortex-a57-fma-steering.c : Likewise.
9609 * config/alpha/alpha.c : Likewise.
9610 * config/arc/arc.c : Likewise.
9611 * config/arm/aarch-common.c : Likewise.
9612 * config/arm/arm-builtins.c : Likewise.
9613 * config/arm/arm-c.c : Likewise.
9614 * config/arm/arm.c : Likewise.
9615 * config/avr/avr-c.c : Likewise.
9616 * config/avr/avr-log.c : Likewise.
9617 * config/avr/avr.c : Likewise.
9618 * config/bfin/bfin.c : Likewise.
9619 * config/c6x/c6x.c : Likewise.
9620 * config/cr16/cr16.c : Likewise.
9621 * config/cris/cris.c : Likewise.
9622 * config/darwin-c.c : Likewise.
9623 * config/darwin.c : Likewise.
9624 * config/default-c.c : Likewise.
9625 * config/epiphany/epiphany.c : Likewise.
9626 * config/epiphany/mode-switch-use.c : Likewise.
9627 * config/epiphany/resolve-sw-modes.c : Likewise.
9628 * config/fr30/fr30.c : Likewise.
9629 * config/frv/frv.c : Likewise.
9630 * config/ft32/ft32.c : Likewise.
9631 * config/glibc-c.c : Likewise.
9632 * config/h8300/h8300.c : Likewise.
9633 * config/i386/i386-c.c : Likewise.
9634 * config/i386/i386.c : Likewise.
9635 * config/i386/msformat-c.c : Likewise.
9636 * config/i386/winnt-cxx.c : Likewise.
9637 * config/i386/winnt-stubs.c : Likewise.
9638 * config/i386/winnt.c : Likewise.
9639 * config/ia64/ia64-c.c : Likewise.
9640 * config/ia64/ia64.c : Likewise.
9641 * config/iq2000/iq2000.c : Likewise.
9642 * config/lm32/lm32.c : Likewise.
9643 * config/m32c/m32c-pragma.c : Likewise.
9644 * config/m32c/m32c.c : Likewise.
9645 * config/m32r/m32r.c : Likewise.
9646 * config/m68k/m68k.c : Likewise.
9647 * config/mcore/mcore.c : Likewise.
9648 * config/mep/mep-pragma.c : Likewise.
9649 * config/mep/mep.c : Likewise.
9650 * config/microblaze/microblaze-c.c : Likewise.
9651 * config/microblaze/microblaze.c : Likewise.
9652 * config/mips/mips.c : Likewise.
9653 * config/mmix/mmix.c : Likewise.
9654 * config/mn10300/mn10300.c : Likewise.
9655 * config/moxie/moxie.c : Likewise.
9656 * config/msp430/msp430-c.c : Likewise.
9657 * config/msp430/msp430.c : Likewise.
9658 * config/nds32/nds32-cost.c : Likewise.
9659 * config/nds32/nds32-fp-as-gp.c : Likewise.
9660 * config/nds32/nds32-intrinsic.c : Likewise.
9661 * config/nds32/nds32-isr.c : Likewise.
9662 * config/nds32/nds32-md-auxiliary.c : Likewise.
9663 * config/nds32/nds32-memory-manipulation.c : Likewise.
9664 * config/nds32/nds32-pipelines-auxiliary.c : Likewise.
9665 * config/nds32/nds32-predicates.c : Likewise.
9666 * config/nds32/nds32.c : Likewise.
9667 * config/nios2/nios2.c : Likewise.
9668 * config/nvptx/nvptx.c : Likewise.
9669 * config/pa/pa.c : Likewise.
9670 * config/pdp11/pdp11.c : Likewise.
9671 * config/rl78/rl78-c.c : Likewise.
9672 * config/rl78/rl78.c : Likewise.
9673 * config/rs6000/rs6000-c.c : Likewise.
9674 * config/rs6000/rs6000.c : Likewise.
9675 * config/rx/rx.c : Likewise.
9676 * config/s390/s390-c.c : Likewise.
9677 * config/s390/s390.c : Likewise.
9678 * config/sh/sh-c.c : Likewise.
9679 * config/sh/sh-mem.cc : Likewise.
9680 * config/sh/sh.c : Likewise.
9681 * config/sh/sh_optimize_sett_clrt.cc : Likewise.
9682 * config/sh/sh_treg_combine.cc : Likewise.
9683 * config/sol2-c.c : Likewise.
9684 * config/sol2-cxx.c : Likewise.
9685 * config/sol2-stubs.c : Likewise.
9686 * config/sol2.c : Likewise.
9687 * config/sparc/sparc-c.c : Likewise.
9688 * config/sparc/sparc.c : Likewise.
9689 * config/spu/spu-c.c : Likewise.
9690 * config/spu/spu.c : Likewise.
9691 * config/stormy16/stormy16.c : Likewise.
9692 * config/tilegx/mul-tables.c : Likewise.
9693 * config/tilegx/tilegx-c.c : Likewise.
9694 * config/tilegx/tilegx.c : Likewise.
9695 * config/tilepro/mul-tables.c : Likewise.
9696 * config/tilepro/tilepro-c.c : Likewise.
9697 * config/tilepro/tilepro.c : Likewise.
9698 * config/v850/v850-c.c : Likewise.
9699 * config/v850/v850.c : Likewise.
9700 * config/vax/vax.c : Likewise.
9701 * config/visium/visium.c : Likewise.
9702 * config/vms/vms-c.c : Likewise.
9703 * config/vms/vms.c : Likewise.
9704 * config/vxworks.c : Likewise.
9705 * config/winnt-c.c : Likewise.
9706 * config/xtensa/xtensa.c : Likewise.
9707
9708 2015-06-08 Jan Hubicka <hubicka@ucw.cz>
9709
9710 PR lto/65378
9711 * ipa-utils.h (warn_types_mismatch): Update prototype.
9712 * ipa-devirt.c (odr_types_equivalent_p): Add loc1/loc2
9713 parameters.
9714 (type_mismatch_p): New function.
9715 (warn_types_mismatch): Reorg to work better on non-C++ types.
9716 (odr_types_equivalent_p): Add loc1/loc2 parameters.
9717 (add_type_duplicate): Update.
9718
9719 2015-06-08 Tom de Vries <tom@codesourcery.com>
9720
9721 PR rtl-optimization/66444
9722 * postreload.c (reload_combine): Use get_call_reg_set_usage instead of
9723 call_used_regs.
9724
9725 2015-06-08 Richard Biener <rguenther@suse.de>
9726
9727 PR tree-optimization/66422
9728 * tree-ssa-loop-ivcanon.c (remove_exits_and_undefined_stmts): Split
9729 block after inserted gcc_unreachable.
9730
9731 2015-06-08 Nick Clifton <nickc@redhat.com>
9732
9733 * config/rx/rx.c (rx_function_value): Do not promote vector types.
9734 (rx_promote_function_mode): Likewise.
9735 * config/rx/rx.h (LIBCALL_VALUE): Likewise.
9736
9737 2015-06-08 Jakub Jelinek <jakub@redhat.com>
9738
9739 * genattrtab.c (insn_alternatives): Change type from int *
9740 to uint64_t *.
9741 (check_attr_test): Shift ((uint64_t) 1) instead of 1 up.
9742 (get_attr_value): Change type of num_alt to uint64_t.
9743 (compute_alternative_mask): Change return type from
9744 int to uint64_t, shift ((uint64_t) 1) instead of 1 up.
9745 (make_alternative_compare, mk_attr_alt): Change argument type
9746 from int to uint64_t.
9747 (simplify_test_exp): Change type of i from int to uint64_t.
9748 Shift ((uint64_t) 1) instead of 1 up.
9749 (main): Adjust oballocvec first argument from int to uint64_t.
9750 Shift ((uint64_t) 1) instead of 1 up.
9751
9752 2015-06-08 Jan Kratochvil <jan.kratochvil@redhat.com>
9753
9754 PR other/65366
9755 * gdbhooks.py: Import sys.
9756 (intptr): New function. Replace int(...) by intptr(...).
9757
9758 2015-06-08 Richard Biener <rguenther@suse.de>
9759
9760 * tree-vect-stmts.c (vectorizable_load): Compute the pointer
9761 adjustment for gaps at the end of a SLP load group properly.
9762 * tree-vect-slp.c (vect_supported_load_permutation_p): Allow
9763 all permutations we can generate.
9764 (vect_transform_slp_perm_load): Use the correct group-size.
9765
9766 2015-06-08 Marc Glisse <marc.glisse@inria.fr>
9767
9768 * genmatch.c (expr::gen_transform): For conditions, guess the type
9769 from the second operand.
9770
9771 2015-06-08 Tom de Vries <tom@codesourcery.com>
9772
9773 PR tree-optimization/66442
9774 * gimple-iterator.h (gimple_seq_nondebug_singleton_p): Add function.
9775 * tree-parloops.c (try_transform_to_exit_first_loop_alt): Return false
9776 if the loop latch is not a singleton. Use
9777 gimple_seq_nondebug_singleton_p instead of gimple_seq_singleton_p.
9778
9779 2015-06-08 Marek Polacek <polacek@redhat.com>
9780
9781 PR sanitizer/66452
9782 * toplev.c (check_global_declaration): Don't warn about artificial
9783 decls.
9784
9785 2015-06-08 Tom de Vries <tom@codesourcery.com>
9786
9787 PR tree-optimization/66436
9788 * cgraphunit.c (cgraph_node::analyze): Don't dump function to gimple
9789 dump file.
9790 * gimplify.c: Add tree-dump.h include.
9791 (gimplify_function_tree): Dump function to gimple dump file.
9792 * stor-layout.c (finalize_size_functions): Don't dump function to gimple
9793 dump file.
9794
9795 2015-06-08 Tom de Vries <tom@codesourcery.com>
9796
9797 PR tree-optimization/66435
9798 * cgraphunit.c (cgraph_node::add_new_function): Dump message on new
9799 function.
9800
9801 2015-06-06 Jan Hubicka <hubicka@ucw.cz>
9802
9803 * alias.c (get_alias_set): Be ready for TYPE_CANONICAL
9804 of ptr_type_node to not be ptr_to_node.
9805 * tree.c (gimple_types_compatible_p): Do not match TREE_CODE of
9806 TREE_TYPE of pointers.
9807 * gimple-expr.c (useless_type_conversion): Reorder the check for
9808 function pointers and TYPE_CANONICAL.
9809
9810 2015-06-06 John David Anglin <danglin@gcc.gnu.org>
9811
9812 PR bootstrap/66319
9813 * config/pa/pa-hpux10.h (TARGET_OS_CPP_BUILTINS): Rearrange builtin
9814 defines. Define _LARGEFILE_SOURCE and _LARGEFILE64_SOURCE for c++.
9815 Define _XOPEN_UNIX and _XOPEN_SOURCE_EXTENDED for c++ if unix95 or
9816 later.
9817 * config/pa/pa-hpux11.h (TARGET_OS_CPP_BUILTINS): Likewise.
9818 Define _INCLUDE_STDC_SOURCE_PRE_199901, _INCLUDE_STDC_SOURCE_199901,
9819 _INCLUDE_XOPEN_SOURCE_PRE_500, _INCLUDE_XOPEN_SOURCE_520,
9820 _INCLUDE_XOPEN_SOURCE_PRE_600 and _INCLUDE_XOPEN_SOURCE_600 for c++
9821 and non iso if unix2003.
9822
9823 2015-06-06 Aldy Hernandez <aldyh@redhat.com>
9824
9825 * dwarf2out.c (gen_lexical_block_die): Initialize stmt_die.
9826
9827 2015-06-06 Richard Sandiford <richard.sandiford@arm.com>
9828
9829 * emit-rtl.c, expr.c, gcse.c, optabs.c, optabs.h, print-rtl.c,
9830 rtl.h, bb-reorder.c, builtins.c, calls.c, cfgbuild.c, cfgexpand.c,
9831 cfgrtl.c, cilk-common.c, config/i386/i386.md, cse.c, dwarf2cfi.c,
9832 except.c, final.c, function.c, gcse-common.c, genemit.c,
9833 haifa-sched.c, ifcvt.c, jump.c, loop-invariant.c, loop-iv.c,
9834 lra-constraints.c, lra.c, reload1.c, resource.c, rtlanal.c,
9835 sched-deps.c, sched-ebb.c, sel-sched-ir.c, sel-sched.c,
9836 shrink-wrap.c, stmt.c, store-motion.c: Replace rtx base types with
9837 more derived ones.
9838
9839 2015-06-06 Mikhail Maltsev <maltsevm@gmail.com>
9840
9841 * combine.c (combine_split_insns): Remove cast.
9842 * config/bfin/bfin.c (hwloop_fail): Add cast in try_split call.
9843 * config/sh/sh.c (sh_try_split_insn_simple): Remove cast.
9844 * config/sh/sh_treg_combine.cc (sh_treg_combine::execute): Add cast.
9845 * emit-rtl.c (try_split): Promote type of trial argument to rtx_insn.
9846 * genemit.c (gen_split): Change return type of generated functions to
9847 rtx_insn.
9848 * genrecog.c (get_failure_return): Use NULL instead of NULL_RTX.
9849 (print_subroutine_start): Promote rtx to rtx_insn in gen_split_* and
9850 gen_peephole2_* functions.
9851 (print_subroutine, main): Likewise.
9852 * recog.c (peephole2_optimize): Remove cast.
9853 (peep2_next_insn): Promote return type to rtx_insn.
9854 * recog.h (peep2_next_insn): Fix prototype.
9855 * rtl.h (try_split, split_insns): Likewise.
9856
9857 2015-06-06 DJ Delorie <dj@redhat.com>
9858
9859 * config/msp430/msp430.c (msp430_asm_integer): Support addition
9860 and subtraction too.
9861
9862 2015-06-05 Kaz Kojima <kkojima@gcc.gnu.org>
9863
9864 PR target/66410
9865 * config/sh/constraints.md (Sid, Ssd): New memory constraints.
9866 * config/sh/sh.md (*mov<mode>): Use Sid and Ssd alternatives
9867 instead of Snd. Disparage Sid/z alternative with '^'.
9868
9869 2015-06-05 Aldy Hernandez <aldyh@redhat.com>
9870
9871 * dwarf2out.c: Remove deferred_locations*.
9872 (dwarf2_debug_hooks): Add early_finish hook.
9873 Remove global_decl hook.
9874 Add early_global_decl and late_global_decl hook.
9875 New global early_dwarf.
9876 New structure set_early_dwarf.
9877 (output_die): Indicate whether a DIE was generated early
9878 when generating assembly with -dA.
9879 (struct limbo_die_struct): Document created_for field.
9880 Remove file_table_last_lookup.
9881 (remove_AT): Return TRUE if successful.
9882 (remove_child_TAG): Clear die_parent.
9883 (reparent_child): New function abstracted from...
9884 (splice_child_die): ...here.
9885 (new_die): ICE if a DIE ends up in limbo too late.
9886 (check_die): New.
9887 (defer_location): Remove.
9888 (add_subscript_info): Reuse DW_TAG_subrange_type if available.
9889 (fill_variable_array_bounds): New.
9890 (decl_start_label): Call fill_variable_array_bounds.
9891 (gen_formal_parameter_die): Rewrite to reuse previously generated
9892 DIEs.
9893 (gen_subprogram_die): Same.
9894 (gen_variable_die): Same.
9895 (gen_const_die): Same.
9896 (gen_label_die): Same.
9897 (gen_lexical_block_die): Same.
9898 (decl_will_get_specification_p): New.
9899 (local_function_static): New.
9900 (gen_struct_or_union_type_die): Fill in variable-length fields.
9901 (gen_typedef_die): Fill in variable-length typedefs.
9902 (gen_tagged_type_die): Gracefully return on error_mark_node.
9903 Handle re-entrancy.
9904 (gen_type_die_with_usage): Handle variable-length types.
9905 Remove duplicate code for ARRAY_TYPE case.
9906 (process_scope_var): Only process imported modules during early
9907 dwarf.
9908 (dwarf2out_early_global_decl): New.
9909 (dwarf2out_late_global_decl): Rename from dwarf2out_global_decl.
9910 (dwarf2out_type_decl): Set early_dwarf while calling
9911 dwarf2out_decl.
9912 (dwarf2out_decl): Verify that we did not recreate a previously
9913 generated DIE.
9914 Do not return on DECL_EXTERNALs in VAR_DECLs.
9915 Abstract some code to local_function_static.
9916 (lookup_filename): Remove use of file_table_last_lookup.
9917 Gracefully exit on missing file_name.
9918 (dwarf2out_finish): Verify limbo list.
9919 Remove deferred_locations_list use.
9920 Move deferred_asm_name and limbo flushing to...
9921 (dwarf2out_early_finish): ...here. New.
9922 (dwarf2out_c_finalize): Remove set of deferred_location_list,
9923 deferred_asm_name, and file_table_last_lookup.
9924 * cgraph.h (referred_to_p): Add default argument.
9925 * cgraphunit.c (referred_to_p): Add and handle include_self
9926 argument.
9927 (analyze_functions): Add first_time argument.
9928 Call check_global_declaration for all symbols.
9929 Call late_global_decl for nodes for moribund nodes.
9930 (finalize_compilation_unit): Add new argument to
9931 analyze_functions.
9932 Call early_global_decl for functions.
9933 Call early_finish debug hook.
9934 * dbxout.c (dbxout_early_global_decl): New.
9935 (dbxout_late_global_decl): New. Adapted from dbxout_global_decl.
9936 (dbx_debug_hooks): Add new hooks.
9937 (xcoff_debug_hooks): Same.
9938 * debug.c (do_nothing_debug_hooks): Add early_finish field.
9939 Add early and late debug hooks.
9940 Remove global_decl hook.
9941 * debug.h (struct gcc_debug_hooks): Add early_finish,
9942 early_global_decl, and late_global_decl fields.
9943 Remove global_decl field.
9944 Document gcc_debug_hooks.
9945 * gengtype.c (output_typename): Remove.
9946 * godump.c (go_early_global_decl): New.
9947 (go_late_global_decl): New.
9948 (go_global_decl): Remove.
9949 (dump_go_spec_init): Remove global_decl. Add
9950 {early,late}_global_decl.
9951 * langhooks-def.h (LANG_HOOKS_WRITE_GLOBALS): Remove.
9952 (LANG_HOOKS_POST_COMPILATION_PARSING_CLEANUPS): New.
9953 * langhooks.c (lhd_warn_unused_global_decl): Adjust comment.
9954 (write_global_declarations): Remove.
9955 (global_decl_processing): New.
9956 * langhooks.h (struct lang_hooks_for_decls): Remove
9957 final_write_globals field.
9958 Add post_compilation_parsing_cleanups field.
9959 * passes.c (rest_of_decl_compilation): Call early_global_decl.
9960 * sdbout.c: Add early and late_global_decl hooks. Remove
9961 sdbout_global_decl hook.
9962 Add early_finish field for sdb_debug_hooks.
9963 (sdbout_global_decl): Remove.
9964 (sdbout_early_global_decl): New.
9965 (sdbout_late_global_decl): New.
9966 * timevar.def (TV_PHASE_LATE_PARSING_CLEANUPS): New.
9967 * toplev.c (check_global_declaration): Rename from
9968 check_global_declaration_1.
9969 Adapt to use symtab infrastructure.
9970 (check_global_declarations): Remove.
9971 (emit_debug_global_declarations): Remove.
9972 (compile_file): Remove call to final_write_globals langhook.
9973 Run the actual compilation process.
9974 Perform any post compilation parser cleanups.
9975 Generate late debug info.
9976 * toplev.h (check_global_declaration): New.
9977 (check_global_declaration_1): Remove.
9978 (check_global_declarations): Remove.
9979 (write_global_declarations): Remove.
9980 (emit_debug_global_declarations): Remove.
9981 (global_decl_processing): New.
9982 * tree-core.h (struct tree_block): Add DIE field.
9983 * tree.h (BLOCK_DIE): New.
9984 * vmsdbgout.c (vmsdbgout_global_decl): Remove function and its use
9985 throughout.
9986 (vmsdbgout_early_global_decl): New.
9987 (vmsdbgout_late_global_decl): New.
9988 Add early_finish debug hook field to vmsdbg_debug_hooks.
9989 Remove vmsdbgout_decl to vmsdbgout_function_decl.
9990 Add early and late_global_decl debug hooks.
9991
9992 2015-06-05 Julian Brown <julian@codesourcery.com>
9993 Sandra Loosemore <sandra@codesourcery.com>
9994
9995 * config/print-sysroot-suffix.sh: Handle MULTILIB_REUSE settings.
9996 * config/t-sysroot-suffix (sysroot-suffix.h): Pass MULTILIB_REUSE
9997 to print-sysroot-suffix.sh script.
9998
9999 2015-06-05 Tom de Vries <tom@codesourcery.com>
10000
10001 merge from gomp4 branch:
10002 2015-05-28 Tom de Vries <tom@codesourcery.com>
10003
10004 PR tree-optimization/65443
10005 * tree-parloops.c (replace_imm_uses, replace_uses_in_bb_by)
10006 (replace_uses_in_bbs_by, transform_to_exit_first_loop_alt)
10007 (try_transform_to_exit_first_loop_alt): New function.
10008 (transform_to_exit_first_loop): Use
10009 try_transform_to_exit_first_loop_alt.
10010
10011 2015-06-05 James Greenhalgh <james.greenhalgh@arm.com>
10012
10013 * builtins.c (expand_builtin_atomic_compare_exchange): Call
10014 emit_cmp_and_jump_insns with the mode of target.
10015
10016 2015-06-05 Venkataramanan Kumar <venkataramanan.kumar@amd.com>
10017
10018 * config/i386/sse.md (sse3_mwait): Swap the operand constriants.
10019
10020 2015-06-04 DJ Delorie <dj@redhat.com>
10021
10022 * config/msp430/msp430.md (movsi_s): New. Special case for
10023 storing a 20-bit symbol into a 32-bit register.
10024 * config/msp430/msp430.c (msp430_subreg): Add support for it.
10025 * config/msp430/predicates.md (msp430_symbol_operand): New.
10026
10027 2015-06-04 Sriraman Tallam <tmsriram@google.com>
10028
10029 * c-family/c-common.c (noplt): New attribute.
10030 (handle_noplt_attribute): New handler.
10031 * calls.c (prepare_call_address): Check for noplt
10032 attribute.
10033 * config/i386/i386.c (ix86_expand_call): Check
10034 for noplt attribute.
10035 (ix86_nopic_noplt_attribute_p): New function.
10036 (ix86_output_call_insn): Output indirect call for non-pic
10037 no plt calls.
10038 * doc/extend.texi (noplt): Document new attribute.
10039 * doc/invoke.texi: Document new attribute.
10040
10041 2015-06-04 Andrew MacLeod <amacleod@redhat.com>
10042
10043 * coretypes.h: Include machmode.h, signop.h, wide-int.h, double-int.h,
10044 real.h, and fixed-value.h when included in host source files.
10045 * double-int.h: Remove redundant #includes listed above.
10046 * fixed-value.h: Likewise.
10047 * real.h: Likewise.
10048 * wide-int.h: Likewise.
10049 * inchash.h: Likewise.
10050 * rtl.h: Add some include files When included from a generator file.
10051 * target.h: Remove wide-int.h and insn-modes.h from the include list.
10052 * internal-fn.h: Don't include coretypes.h.
10053 * alias.c: Adjust includes for restructured coretypes.h.
10054 * asan.c: Likewise.
10055 * attribs.c: Likewise.
10056 * auto-inc-dec.c: Likewise.
10057 * auto-profile.c: Likewise.
10058 * bb-reorder.c: Likewise.
10059 * bt-load.c: Likewise.
10060 * builtins.c: Likewise.
10061 * caller-save.c: Likewise.
10062 * calls.c: Likewise.
10063 * ccmp.c: Likewise.
10064 * cfg.c: Likewise.
10065 * cfganal.c: Likewise.
10066 * cfgbuild.c: Likewise.
10067 * cfgcleanup.c: Likewise.
10068 * cfgexpand.c: Likewise.
10069 * cfghooks.c: Likewise.
10070 * cfgloop.c: Likewise.
10071 * cfgloop.h: Likewise.
10072 * cfgloopanal.c: Likewise.
10073 * cfgloopmanip.c: Likewise.
10074 * cfgrtl.c: Likewise.
10075 * cgraph.c: Likewise.
10076 * cgraphbuild.c: Likewise.
10077 * cgraphclones.c: Likewise.
10078 * cgraphunit.c: Likewise.
10079 * cilk-common.c: Likewise.
10080 * combine-stack-adj.c: Likewise.
10081 * combine.c: Likewise.
10082 * compare-elim.c: Likewise.
10083 * convert.c: Likewise.
10084 * coverage.c: Likewise.
10085 * cppbuiltin.c: Likewise.
10086 * cprop.c: Likewise.
10087 * cse.c: Likewise.
10088 * cselib.c: Likewise.
10089 * data-streamer-in.c: Likewise.
10090 * data-streamer-out.c: Likewise.
10091 * data-streamer.c: Likewise.
10092 * dbxout.c: Likewise.
10093 * dce.c: Likewise.
10094 * ddg.c: Likewise.
10095 * debug.c: Likewise.
10096 * df-core.c: Likewise.
10097 * df-problems.c: Likewise.
10098 * df-scan.c: Likewise.
10099 * df.h: Likewise.
10100 * dfp.c: Likewise.
10101 * dojump.c: Likewise.
10102 * dominance.c: Likewise.
10103 * domwalk.c: Likewise.
10104 * double-int.c: Likewise.
10105 * dse.c: Likewise.
10106 * dumpfile.c: Likewise.
10107 * dwarf2asm.c: Likewise.
10108 * dwarf2cfi.c: Likewise.
10109 * dwarf2out.c: Likewise.
10110 * dwarf2out.h: Likewise.
10111 * emit-rtl.c: Likewise.
10112 * et-forest.c: Likewise.
10113 * except.c: Likewise.
10114 * explow.c: Likewise.
10115 * expmed.c: Likewise.
10116 * expr.c: Likewise.
10117 * final.c: Likewise.
10118 * fixed-value.c: Likewise.
10119 * fold-const.c: Likewise.
10120 * function.c: Likewise.
10121 * fwprop.c: Likewise.
10122 * gcc-plugin.h: Likewise.
10123 * gcse.c: Likewise.
10124 * generic-match-head.c: Likewise.
10125 * ggc-page.c: Likewise.
10126 * gimple-builder.c: Likewise.
10127 * gimple-expr.c: Likewise.
10128 * gimple-fold.c: Likewise.
10129 * gimple-iterator.c: Likewise.
10130 * gimple-low.c: Likewise.
10131 * gimple-match-head.c: Likewise.
10132 * gimple-pretty-print.c: Likewise.
10133 * gimple-ssa-isolate-paths.c: Likewise.
10134 * gimple-ssa-strength-reduction.c: Likewise.
10135 * gimple-streamer-in.c: Likewise.
10136 * gimple-streamer-out.c: Likewise.
10137 * gimple-streamer.h: Likewise.
10138 * gimple-walk.c: Likewise.
10139 * gimple.c: Likewise.
10140 * gimplify-me.c: Likewise.
10141 * gimplify.c: Likewise.
10142 * godump.c: Likewise.
10143 * graph.c: Likewise.
10144 * graphite-blocking.c: Likewise.
10145 * graphite-dependences.c: Likewise.
10146 * graphite-interchange.c: Likewise.
10147 * graphite-isl-ast-to-gimple.c: Likewise.
10148 * graphite-optimize-isl.c: Likewise.
10149 * graphite-poly.c: Likewise.
10150 * graphite-scop-detection.c: Likewise.
10151 * graphite-sese-to-poly.c: Likewise.
10152 * graphite.c: Likewise.
10153 * haifa-sched.c: Likewise.
10154 * hooks.h: Likewise.
10155 * hw-doloop.c: Likewise.
10156 * ifcvt.c: Likewise.
10157 * incpath.c: Likewise.
10158 * init-regs.c: Likewise.
10159 * internal-fn.c: Likewise.
10160 * ipa-chkp.c: Likewise.
10161 * ipa-comdats.c: Likewise.
10162 * ipa-cp.c: Likewise.
10163 * ipa-devirt.c: Likewise.
10164 * ipa-icf-gimple.c: Likewise.
10165 * ipa-icf.c: Likewise.
10166 * ipa-inline-analysis.c: Likewise.
10167 * ipa-inline-transform.c: Likewise.
10168 * ipa-inline.c: Likewise.
10169 * ipa-polymorphic-call.c: Likewise.
10170 * ipa-profile.c: Likewise.
10171 * ipa-prop.c: Likewise.
10172 * ipa-pure-const.c: Likewise.
10173 * ipa-ref.c: Likewise.
10174 * ipa-reference.c: Likewise.
10175 * ipa-split.c: Likewise.
10176 * ipa-utils.c: Likewise.
10177 * ipa-visibility.c: Likewise.
10178 * ipa.c: Likewise.
10179 * ira-build.c: Likewise.
10180 * ira-color.c: Likewise.
10181 * ira-conflicts.c: Likewise.
10182 * ira-costs.c: Likewise.
10183 * ira-emit.c: Likewise.
10184 * ira-lives.c: Likewise.
10185 * ira.c: Likewise.
10186 * jump.c: Likewise.
10187 * langhooks.c: Likewise.
10188 * lcm.c: Likewise.
10189 * loop-doloop.c: Likewise.
10190 * loop-init.c: Likewise.
10191 * loop-invariant.c: Likewise.
10192 * loop-iv.c: Likewise.
10193 * loop-unroll.c: Likewise.
10194 * lower-subreg.c: Likewise.
10195 * lra-assigns.c: Likewise.
10196 * lra-coalesce.c: Likewise.
10197 * lra-constraints.c: Likewise.
10198 * lra-eliminations.c: Likewise.
10199 * lra-lives.c: Likewise.
10200 * lra-remat.c: Likewise.
10201 * lra-spills.c: Likewise.
10202 * lra.c: Likewise.
10203 * lto-cgraph.c: Likewise.
10204 * lto-compress.c: Likewise.
10205 * lto-opts.c: Likewise.
10206 * lto-section-in.c: Likewise.
10207 * lto-section-out.c: Likewise.
10208 * lto-streamer-in.c: Likewise.
10209 * lto-streamer-out.c: Likewise.
10210 * lto-streamer.c: Likewise.
10211 * mcf.c: Likewise.
10212 * mode-switching.c: Likewise.
10213 * modulo-sched.c: Likewise.
10214 * omega.c: Likewise.
10215 * omp-low.c: Likewise.
10216 * optabs.c: Likewise.
10217 * opts-global.c: Likewise.
10218 * passes.c: Likewise.
10219 * plugin.c: Likewise.
10220 * postreload-gcse.c: Likewise.
10221 * postreload.c: Likewise.
10222 * predict.c: Likewise.
10223 * print-rtl.c: Likewise.
10224 * print-tree.c: Likewise.
10225 * profile.c: Likewise.
10226 * real.c: Likewise.
10227 * realmpfr.c: Likewise.
10228 * realmpfr.h: Likewise.
10229 * recog.c: Likewise.
10230 * ree.c: Likewise.
10231 * reg-stack.c: Likewise.
10232 * regcprop.c: Likewise.
10233 * reginfo.c: Likewise.
10234 * regrename.c: Likewise.
10235 * regs.h: Likewise.
10236 * regstat.c: Likewise.
10237 * reload.c: Likewise.
10238 * reload1.c: Likewise.
10239 * reorg.c: Likewise.
10240 * resource.c: Likewise.
10241 * rtl-chkp.c: Likewise.
10242 * rtlanal.c: Likewise.
10243 * rtlhooks.c: Likewise.
10244 * sanopt.c: Likewise.
10245 * sched-deps.c: Likewise.
10246 * sched-ebb.c: Likewise.
10247 * sched-rgn.c: Likewise.
10248 * sched-vis.c: Likewise.
10249 * sdbout.c: Likewise.
10250 * sel-sched-dump.c: Likewise.
10251 * sel-sched-ir.c: Likewise.
10252 * sel-sched.c: Likewise.
10253 * sese.c: Likewise.
10254 * shrink-wrap.c: Likewise.
10255 * shrink-wrap.h: Likewise.
10256 * simplify-rtx.c: Likewise.
10257 * stack-ptr-mod.c: Likewise.
10258 * statistics.c: Likewise.
10259 * stmt.c: Likewise.
10260 * stor-layout.c: Likewise.
10261 * store-motion.c: Likewise.
10262 * stringpool.c: Likewise.
10263 * symtab.c: Likewise.
10264 * target-globals.c: Likewise.
10265 * targhooks.c: Likewise.
10266 * toplev.c: Likewise.
10267 * tracer.c: Likewise.
10268 * trans-mem.c: Likewise.
10269 * tree-affine.c: Likewise.
10270 * tree-affine.h: Likewise.
10271 * tree-browser.c: Likewise.
10272 * tree-call-cdce.c: Likewise.
10273 * tree-cfg.c: Likewise.
10274 * tree-cfgcleanup.c: Likewise.
10275 * tree-chkp-opt.c: Likewise.
10276 * tree-chkp.c: Likewise.
10277 * tree-chrec.c: Likewise.
10278 * tree-complex.c: Likewise.
10279 * tree-data-ref.c: Likewise.
10280 * tree-dfa.c: Likewise.
10281 * tree-diagnostic.c: Likewise.
10282 * tree-dump.c: Likewise.
10283 * tree-eh.c: Likewise.
10284 * tree-emutls.c: Likewise.
10285 * tree-if-conv.c: Likewise.
10286 * tree-inline.c: Likewise.
10287 * tree-into-ssa.c: Likewise.
10288 * tree-iterator.c: Likewise.
10289 * tree-loop-distribution.c: Likewise.
10290 * tree-nested.c: Likewise.
10291 * tree-nrv.c: Likewise.
10292 * tree-object-size.c: Likewise.
10293 * tree-outof-ssa.c: Likewise.
10294 * tree-parloops.c: Likewise.
10295 * tree-phinodes.c: Likewise.
10296 * tree-predcom.c: Likewise.
10297 * tree-pretty-print.c: Likewise.
10298 * tree-pretty-print.h: Likewise.
10299 * tree-profile.c: Likewise.
10300 * tree-scalar-evolution.c: Likewise.
10301 * tree-sra.c: Likewise.
10302 * tree-ssa-address.c: Likewise.
10303 * tree-ssa-alias.c: Likewise.
10304 * tree-ssa-ccp.c: Likewise.
10305 * tree-ssa-coalesce.c: Likewise.
10306 * tree-ssa-copy.c: Likewise.
10307 * tree-ssa-copyrename.c: Likewise.
10308 * tree-ssa-dce.c: Likewise.
10309 * tree-ssa-dom.c: Likewise.
10310 * tree-ssa-dse.c: Likewise.
10311 * tree-ssa-forwprop.c: Likewise.
10312 * tree-ssa-ifcombine.c: Likewise.
10313 * tree-ssa-live.c: Likewise.
10314 * tree-ssa-loop-ch.c: Likewise.
10315 * tree-ssa-loop-im.c: Likewise.
10316 * tree-ssa-loop-ivcanon.c: Likewise.
10317 * tree-ssa-loop-ivopts.c: Likewise.
10318 * tree-ssa-loop-manip.c: Likewise.
10319 * tree-ssa-loop-niter.c: Likewise.
10320 * tree-ssa-loop-prefetch.c: Likewise.
10321 * tree-ssa-loop-unswitch.c: Likewise.
10322 * tree-ssa-loop.c: Likewise.
10323 * tree-ssa-loop.h: Likewise.
10324 * tree-ssa-math-opts.c: Likewise.
10325 * tree-ssa-operands.c: Likewise.
10326 * tree-ssa-phiopt.c: Likewise.
10327 * tree-ssa-phiprop.c: Likewise.
10328 * tree-ssa-pre.c: Likewise.
10329 * tree-ssa-propagate.c: Likewise.
10330 * tree-ssa-reassoc.c: Likewise.
10331 * tree-ssa-sccvn.c: Likewise.
10332 * tree-ssa-scopedtables.c: Likewise.
10333 * tree-ssa-sink.c: Likewise.
10334 * tree-ssa-strlen.c: Likewise.
10335 * tree-ssa-structalias.c: Likewise.
10336 * tree-ssa-tail-merge.c: Likewise.
10337 * tree-ssa-ter.c: Likewise.
10338 * tree-ssa-threadedge.c: Likewise.
10339 * tree-ssa-threadupdate.c: Likewise.
10340 * tree-ssa-uncprop.c: Likewise.
10341 * tree-ssa-uninit.c: Likewise.
10342 * tree-ssa.c: Likewise.
10343 * tree-ssanames.c: Likewise.
10344 * tree-stdarg.c: Likewise.
10345 * tree-streamer-in.c: Likewise.
10346 * tree-streamer-out.c: Likewise.
10347 * tree-streamer.c: Likewise.
10348 * tree-switch-conversion.c: Likewise.
10349 * tree-tailcall.c: Likewise.
10350 * tree-vect-data-refs.c: Likewise.
10351 * tree-vect-generic.c: Likewise.
10352 * tree-vect-loop-manip.c: Likewise.
10353 * tree-vect-loop.c: Likewise.
10354 * tree-vect-patterns.c: Likewise.
10355 * tree-vect-slp.c: Likewise.
10356 * tree-vect-stmts.c: Likewise.
10357 * tree-vectorizer.c: Likewise.
10358 * tree-vrp.c: Likewise.
10359 * tree.c: Likewise.
10360 * tsan.c: Likewise.
10361 * ubsan.c: Likewise.
10362 * valtrack.c: Likewise.
10363 * value-prof.c: Likewise.
10364 * var-tracking.c: Likewise.
10365 * varasm.c: Likewise.
10366 * varpool.c: Likewise.
10367 * vmsdbgout.c: Likewise.
10368 * vtable-verify.c: Likewise.
10369 * web.c: Likewise.
10370 * wide-int-print.cc: Likewise.
10371 * wide-int-print.h: Likewise.
10372 * wide-int.cc: Likewise.
10373 * xcoffout.c: Likewise.
10374 * config/aarch64/aarch64-builtins.c: Likewise.
10375 * config/aarch64/aarch64.c: Likewise.
10376 * config/aarch64/cortex-a57-fma-steering.c: Likewise.
10377 * config/alpha/alpha.c: Likewise.
10378 * config/arc/arc.c: Likewise.
10379 * config/arm/aarch-common.c: Likewise.
10380 * config/arm/arm-builtins.c: Likewise.
10381 * config/arm/arm-c.c: Likewise.
10382 * config/arm/arm.c: Likewise.
10383 * config/avr/avr-c.c: Likewise.
10384 * config/avr/avr-log.c: Likewise.
10385 * config/avr/avr.c: Likewise.
10386 * config/bfin/bfin.c: Likewise.
10387 * config/c6x/c6x.c: Likewise.
10388 * config/cr16/cr16.c: Likewise.
10389 * config/cris/cris.c: Likewise.
10390 * config/darwin-c.c: Likewise.
10391 * config/darwin.c: Likewise.
10392 * config/default-c.c: Likewise.
10393 * config/epiphany/epiphany.c: Likewise.
10394 * config/epiphany/mode-switch-use.c: Likewise.
10395 * config/epiphany/resolve-sw-modes.c: Likewise.
10396 * config/fr30/fr30.c: Likewise.
10397 * config/frv/frv.c: Likewise.
10398 * config/ft32/ft32.c: Likewise.
10399 * config/glibc-c.c: Likewise.
10400 * config/h8300/h8300.c: Likewise.
10401 * config/i386/i386-c.c: Likewise.
10402 * config/i386/i386.c: Likewise.
10403 * config/i386/msformat-c.c: Likewise.
10404 * config/i386/winnt-cxx.c: Likewise.
10405 * config/i386/winnt-stubs.c: Likewise.
10406 * config/i386/winnt.c: Likewise.
10407 * config/ia64/ia64-c.c: Likewise.
10408 * config/ia64/ia64.c: Likewise.
10409 * config/iq2000/iq2000.c: Likewise.
10410 * config/lm32/lm32.c: Likewise.
10411 * config/m32c/m32c-pragma.c: Likewise.
10412 * config/m32c/m32c.c: Likewise.
10413 * config/m32r/m32r.c: Likewise.
10414 * config/m68k/m68k.c: Likewise.
10415 * config/mcore/mcore.c: Likewise.
10416 * config/mep/mep-pragma.c: Likewise.
10417 * config/mep/mep.c: Likewise.
10418 * config/microblaze/microblaze-c.c: Likewise.
10419 * config/microblaze/microblaze.c: Likewise.
10420 * config/mips/mips.c: Likewise.
10421 * config/mmix/mmix.c: Likewise.
10422 * config/mn10300/mn10300.c: Likewise.
10423 * config/moxie/moxie.c: Likewise.
10424 * config/msp430/msp430-c.c: Likewise.
10425 * config/msp430/msp430.c: Likewise.
10426 * config/nds32/nds32-cost.c: Likewise.
10427 * config/nds32/nds32-fp-as-gp.c: Likewise.
10428 * config/nds32/nds32-intrinsic.c: Likewise.
10429 * config/nds32/nds32-isr.c: Likewise.
10430 * config/nds32/nds32-md-auxiliary.c: Likewise.
10431 * config/nds32/nds32-memory-manipulation.c: Likewise.
10432 * config/nds32/nds32-pipelines-auxiliary.c: Likewise.
10433 * config/nds32/nds32-predicates.c: Likewise.
10434 * config/nds32/nds32.c: Likewise.
10435 * config/nios2/nios2.c: Likewise.
10436 * config/nvptx/nvptx.c: Likewise.
10437 * config/pa/pa.c: Likewise.
10438 * config/pdp11/pdp11.c: Likewise.
10439 * config/rl78/rl78-c.c: Likewise.
10440 * config/rl78/rl78.c: Likewise.
10441 * config/rs6000/rs6000-c.c: Likewise.
10442 * config/rs6000/rs6000.c: Likewise.
10443 * config/rx/rx.c: Likewise.
10444 * config/s390/s390-c.c: Likewise.
10445 * config/s390/s390.c: Likewise.
10446 * config/sh/sh-c.c: Likewise.
10447 * config/sh/sh-mem.cc: Likewise.
10448 * config/sh/sh.c: Likewise.
10449 * config/sh/sh_optimize_sett_clrt.cc: Likewise.
10450 * config/sh/sh_treg_combine.cc: Likewise.
10451 * config/sol2-c.c: Likewise.
10452 * config/sol2-cxx.c: Likewise.
10453 * config/sol2-stubs.c: Likewise.
10454 * config/sol2.c: Likewise.
10455 * config/sparc/sparc-c.c: Likewise.
10456 * config/sparc/sparc.c: Likewise.
10457 * config/spu/spu-c.c: Likewise.
10458 * config/spu/spu.c: Likewise.
10459 * config/stormy16/stormy16.c: Likewise.
10460 * config/tilegx/mul-tables.c: Likewise.
10461 * config/tilegx/tilegx-c.c: Likewise.
10462 * config/tilegx/tilegx.c: Likewise.
10463 * config/tilepro/mul-tables.c: Likewise.
10464 * config/tilepro/tilepro-c.c: Likewise.
10465 * config/tilepro/tilepro.c: Likewise.
10466 * config/v850/v850-c.c: Likewise.
10467 * config/v850/v850.c: Likewise.
10468 * config/vax/vax.c: Likewise.
10469 * config/visium/visium.c: Likewise.
10470 * config/vms/vms-c.c: Likewise.
10471 * config/vms/vms.c: Likewise.
10472 * config/vxworks.c: Likewise.
10473 * config/winnt-c.c: Likewise.
10474 * config/xtensa/xtensa.c: Likewise.
10475 * common/config/bfin/bfin-common.c: Likewise.
10476
10477 2015-06-04 Jan Hubicka <hubicka@ucw.cz>
10478
10479 * tree.h (tree_code_for_canonical_type_merging): New function.
10480 * tree.c (gimple_canonical_types_compatible_p): Use
10481 tree_code_for_canonical_type_merging..
10482
10483 2015-06-04 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
10484
10485 PR c++/66192
10486 PR target/66200
10487 * doc/tm.texi: Regenerate.
10488 * doc/tm.texi.in (TARGET_RELAXED_ORDERING): Delete.
10489 * target.def (TARGET_RELAXED_ORDERING): Likewise.
10490 * config/alpha/alpha.c (TARGET_RELAXED_ORDERING): Likewise.
10491 * config/ia64/ia64.c (TARGET_RELAXED_ORDERING): Likewise.
10492 * config/rs6000/rs6000.c (TARGET_RELAXED_ORDERING): Likewise.
10493 * config/sparc/linux.h (SPARC_RELAXED_ORDERING): Likewise.
10494 * config/sparc/linux64.h (SPARC_RELAXED_ORDERING): Likewise.
10495 * config/sparc/sparc.c (TARGET_RELAXED_ORDERING): Likewise.
10496 * config/sparc/sparc.h (SPARC_RELAXED_ORDERING): Likewise.
10497
10498 2015-06-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
10499
10500 * config/aarch64/aarch64.c (aarch64_override_options): Unconditionally
10501 register fma steering pass.
10502 * config/aarch64/cortex-a57-fma-steering.c (gate): Add gating on
10503 AARCH64_TUNE_FMA_STEERING.
10504
10505 2015-06-03 Jan Hubicka <hubicka@ucw.cz>
10506
10507 * tree.c (verify_type_variant): Verify that type and variant is
10508 compatible.
10509 (gimple_canonical_types_compatible_p): Look for main variants.
10510
10511 2015-06-03 Michael Meissner <meissner@linux.vnet.ibm.com>
10512
10513 * config.gcc (powerpc*-*-*): Add support for a new configure
10514 option --with-advance-toolchain=<xxx> which overrides using the
10515 default header files, libraries and dynamic linker.
10516
10517 * config/rs6000/linux64.h (SUBSUBTARGET_EXTRA_SPECS): Add new
10518 specs to support the configure --with-advance-toolchain=<xxx>
10519 option.
10520 (INCLUDE_EXTRA_SPEC): Likewise.
10521 (LINK_OS_EXTRA_SPEC32): Likewise.
10522 (LINK_OK_EXTRA_SPEC64): Likewise.
10523 (LINK_OS_NEW_DTAGS_SPEC): Likewise.
10524 (DYNAMIC_LINKER_PREFIX): Likewise.
10525 (CPP_OS_DEFAULT_SPEC): Use the new specs for providing advance
10526 toolchain support.
10527 (GLIBC_DYNAMIC_LINKER32): Likewise.
10528 (GLIBC_DYNAMIC_LINKER64): Likewise.
10529 (LINK_OS_LINUX_SPEC32): Likewise.
10530 (LINK_OS_LINUX_SPEC64): Likewise.
10531
10532 * doc/install.texi (--enable-advance-toolchain=<xx>): Document new
10533 configuration option.
10534
10535 2015-06-03 Uros Bizjak <ubizjak@gmail.com>
10536
10537 PR target/66275
10538 * config/i386/i386.c (ix86_function_arg_regno): Use ix86_cfun_abi
10539 to determine current function ABI.
10540 (ix86_function_value_regno_p): Ditto.
10541
10542 2015-06-03 Martin Liska <mliska@suse.cz>
10543
10544 * alloc-pool.h (struct pool_usage): Correct GNU coding style.
10545 * bitmap.h (struct bitmap_usage): Likewise.
10546 * ggc-common.c (struct ggc_usage): Likewise.
10547 * mem-stats.h (struct mem_location): Likewise.
10548 (struct mem_usage): Likewise.
10549 * vec.c (struct vec_usage): Likewise.
10550
10551 2015-06-03 Benigno B. Junior <bbj@gentoo.org>
10552
10553 * config/netbsd-elf.h (NETBSD_LINK_SPEC_ELF): Turn -symbolic into
10554 -Bsymbolic.
10555
10556 2015-06-02 Andres Tiraboschi <andres.tiraboschi@tallertechnologies.com>
10557
10558 * doc/plugins.texi (enum plugin_event): New event.
10559 * plugin.c (register_callback): Handle PLUGIN_START_PARSE_FUNCTION
10560 and PLUGIN_FINISH_FUNCTION.
10561 * plugin.def (PLUGIN_START_PARSE_FUNCTION): Add plugin event
10562 (PLUGIN_FINISH_PARSE_FUNCTION): Likewise.
10563
10564 2015-06-03 Richard Biener <rguenther@suse.de>
10565
10566 * tree-vect-data-refs.c (vect_analyze_group_access): Properly
10567 compute GROUP_GAP for the first element.
10568 * tree-vect-slp.c (vect_build_slp_tree_1): Remove restriction
10569 on in-group gaps.
10570
10571 2015-06-03 Nick Clifton <nickc@redhat.com>
10572
10573 * config/rl78/rl78-real.md: Add peepholes to avoid a register
10574 copy when calling a function.
10575 * config/rl78/rl78.c (need_to_save): Do not push the frame
10576 pointer in an interrupt handler prologue if it is never used.
10577
10578 2015-06-03 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
10579
10580 * ifcvt (end_ifcvt_sequence): Fix typo in comment above.
10581
10582 2015-06-03 Ilya Enkovich <ilya.enkovich@intel.com>
10583
10584 * ipa-chkp.c (chkp_maybe_create_clone): Create alias
10585 reference when cloning alias node.
10586
10587 2015-06-03 Martin Liska <mliska@suse.cz>
10588
10589 * alloc-pool.h (struct pool_usage): Correct space padding.
10590 * ggc-page.c (ggc_print_statistics): Align columns in a report.
10591 * mem-stats.h (struct mem_usage): Add argument to print_dash_line.
10592 * tree.c (dump_tree_statistics): Align columns in a report.
10593
10594 2015-06-03 Martin Liska <mliska@suse.cz>
10595
10596 * alloc-pool.c (allocate_pool_descriptor): Remove.
10597 (struct pool_output_info): Likewise.
10598 (print_alloc_pool_statistics): Likewise.
10599 (dump_alloc_pool_statistics): Likewise.
10600 * alloc-pool.h (struct pool_usage): New struct.
10601 (pool_allocator::initialize): Change usage of memory statistics
10602 to a new interface.
10603 (pool_allocator::release): Likewise.
10604 (pool_allocator::allocate): Likewise.
10605 (pool_allocator::remove): Likewise.
10606 * mem-stats-traits.h (enum mem_alloc_origin): Add new enum value
10607 for a pool allocator.
10608 * mem-stats.h (struct mem_location): Add new ctor.
10609 (struct mem_usage): Add counter for number of
10610 instances.
10611 (mem_alloc_description::register_descriptor): New overload of
10612 * mem-stats.h (mem_location::to_string): New function.
10613 * bitmap.h (struct bitmap_usage): Use this new function.
10614 * ggc-common.c (struct ggc_usage): Likewise.
10615 the function.
10616
10617 2015-06-03 Richard Sandiford <richard.sandiford@arm.com>
10618
10619 * defaults.h (SWITCHABLE_TARGET, TARGET_SUPPORTS_WIDE_INT): Move out
10620 of GCC_INSN_FLAGS_H block.
10621
10622 2015-06-03 Andrew Bennett <andrew.bennett@imgtec.com>
10623
10624 * explow.c (plus_constant): Update check after force_const_mem call
10625 to see if the value returned is not a NULL_RTX.
10626
10627 2015-06-03 Ilya Enkovich <ilya.enkovich@intel.com>
10628
10629 * ipa.c (symbol_table::remove_unreachable_nodes): Don't
10630 remove instumentation thunks calling reachable functions.
10631 * lto-cgraph.c (output_refs): Always output IPA_REF_CHKP.
10632 * lto/lto-partition.c (privatize_symbol_name_1): New.
10633 (privatize_symbol_name): Privatize both decl and orig_decl
10634 names for instrumented functions.
10635 * cgraph.c (cgraph_node::verify_node): Add transparent
10636 alias chain check for instrumented node.
10637
10638 2015-06-03 Marek Polacek <polacek@redhat.com>
10639
10640 PR c/64223
10641 PR c/29358
10642 * tree.c (attribute_value_equal): Handle attribute format.
10643 (cmp_attrib_identifiers): Factor out of lookup_ident_attribute.
10644
10645 2015-06-03 Richard Biener <rguenther@suse.de>
10646
10647 PR tree-optimization/63916
10648 * tree-ssa-sccvn.c (vn_reference_maybe_forwprop_address):
10649 Forward-propagate non-invariant addresses by splicing their
10650 reference ops if the result isn't going to be used by PRE.
10651 (vn_reference_lookup_3): Remove pointless assert.
10652
10653 2015-06-03 Richard Biener <rguenther@suse.de>
10654
10655 PR tree-optimization/66375
10656 * tree-scalar-evolution.c (follow_ssa_edge_binary): First
10657 add to the evolution before following SSA edges.
10658
10659 2015-06-03 Bin Cheng <bin.cheng@arm.com>
10660
10661 * tree-ssa-loop-ivopts.c (dump_iv): New parameter.
10662 (dump_use, dump_cand, find_induction_variables): Pass new argument
10663 to dump_iv.
10664 (record_use): Preserve the ssa name information in IV.
10665
10666 2015-06-03 Richard Sandiford <richard.sandiford@arm.com>
10667
10668 * genpreds.c (mark_mode_tests): Mark all MATCH_CODEs as
10669 NO_MODE_TEST.
10670 (add_mode_tests): Don't add mode tests if the predicate only
10671 accepts scalar constant integers. Otherwise, allow the mode
10672 of "op" to be VOIDmode if the predicate does accept such integers.
10673
10674 2015-06-02 Jim Wilson <jim.wilson@linaro.org>
10675
10676 PR target/66258
10677 * config/aarch64/aarch64.c (aarch64_function_value_regno_p): Change
10678 !TARGET_GENERAL_REGS_ONLY to TARGET_FLOAT.
10679 (aarch64_secondary_reload): Likewise
10680 (aarch64_expand_builtin_va_start): Change TARGET_GENERAL_REGS_ONLY
10681 to !TARGET_FLOAT.
10682 (aarch64_gimplify_va_arg_expr, aarch64_setup_incoming_varargs):
10683 Likewise.
10684
10685 2015-06-03 Kugan Vivekanandarajah <kuganv@linaro.org>
10686 Zhenqiang Chen <zhenqiang.chen@linaro.org>
10687
10688 PR target/65768
10689 * cprop.c (try_replace_reg): Check cost of constants before propagating.
10690
10691 2015-06-02 Michael Meissner <meissner@linux.vnet.ibm.com>
10692
10693 * config/rs6000/rs6000-modes.def (IFmode): Define IFmode to
10694 provide access to the IBM extended double floating point mode if
10695 long double is IEEE 128-bit floating point.
10696 (KFmode): Define KFmode to provide access to IEEE 128-bit floating
10697 point if long double is the IBM extended double type.
10698
10699 * config/rs6000/rs6000.opt (-mfloat128-none): New switches to
10700 enable adding IEEE 128-bit floating point support.
10701 (-mfloat128-software): Likewise.
10702 (-mfloat128-sw): Likewise.
10703
10704 * config/rs6000/rs6000.c (rs6000_hard_regno_mode_ok): Do not allow
10705 128-bit floating point types to occupy any register if
10706 -mlong-double-64. Do not allow use of IFmode/KFmode unless
10707 -mfloat128-software is enabled.
10708 (rs6000_debug_reg_global): Add IEEE 128-bit floating point debug
10709 support.
10710 (rs6000_option_override_internal): Add -mfloat128-* support.
10711 (rs6000_init_builtins): Setup __ibm128 and __float128 type modes.
10712
10713 * config/rs6000/rs6000.h (rs6000_builtin_type_index): Add ibm128
10714 and float128 type nodes.
10715 (ieee128_float_type_node): Likewise.
10716 (ibm128_float_type_node): Likewise.
10717
10718 2015-06-02 Szabolcs Nagy <szabolcs.nagy@arm.com>
10719
10720 PR target/66136
10721 * config/aarch64/geniterators.sh: Rewrite in awk.
10722
10723 2015-06-02 Martin Liska <mliska@suse.cz>
10724
10725 * alloc-pool.h (pool_allocator::pool_allocator): Set implicit
10726 values to avoid -Wmaybe-uninitialized errors.
10727
10728 2015-06-02 Richard Biener <rguenther@suse.de>
10729
10730 PR debug/65549
10731 * dwarf2out.c (lookup_context_die): New function.
10732 (resolve_addr): Avoid forcing a full DIE for the
10733 target of a DW_TAG_GNU_call_site during late compilation.
10734 Instead create a stub DIE without a type if we have a
10735 context DIE present.
10736
10737 2015-06-02 Uros Bizjak <ubizjak@gmail.com>
10738
10739 * df-scan.c (df_scan_start_dump): Add space between regno and regname.
10740
10741 2015-06-02 Bin Cheng <bin.cheng@arm.com>
10742
10743 PR tree-optimization/48052
10744 * cfgloop.h (struct control_iv): New.
10745 (struct loop): New field control_ivs.
10746 * tree-ssa-loop-niter.c : Include "stor-layout.h".
10747 (number_of_iterations_lt): Set no_overflow information.
10748 (number_of_iterations_exit): Init control iv in niter struct.
10749 (record_control_iv): New.
10750 (estimate_numbers_of_iterations_loop): Call record_control_iv.
10751 (loop_exits_before_overflow): New. Interface factored out of
10752 scev_probably_wraps_p.
10753 (scev_probably_wraps_p): Factor loop niter related code into
10754 loop_exits_before_overflow.
10755 (free_numbers_of_iterations_estimates_loop): Free control ivs.
10756 * tree-ssa-loop-niter.h (free_loop_control_ivs): New.
10757
10758 2015-06-02 Eric Botcazou <ebotcazou@adacore.com>
10759
10760 * gimplify.c (gimplify_modify_expr): Do not create a DECL_DEBUG_EXPR if
10761 the target doesn't belong to the current function.
10762
10763 2015-06-02 Marek Polacek <polacek@redhat.com>
10764
10765 PR middle-end/66345
10766 * gimple-fold.c (gimple_fold_builtin_snprintf): Return false if
10767 get_maxval_strlen does not produce an INTEGER_CST.
10768
10769 2015-06-02 Richard Sandiford <richard.sandiford@arm.com>
10770
10771 * config/arc/constraints.md: Use lower-case names in match_code.
10772 * config/mmix/constraints.md: Likewise.
10773
10774 2015-06-02 Richard Biener <rguenther@suse.de>
10775
10776 PR tree-optimization/65961
10777 * tree-vect-slp.c (vect_get_and_check_slp_defs): Remove bogus
10778 check and clarify dump message.
10779 (vect_build_slp_tree): If all children are built up from scalars
10780 build up the parent from scalars instead.
10781 * tree-vect-stmts.c (vect_is_simple_use): Cleanup.
10782
10783 2015-06-02 Jan Kratochvil <jan.kratochvil@redhat.com>
10784
10785 PR other/65366
10786 * gdbhooks.py: Use int(...) instead of long(...). Use print(...)
10787 instead of print ... .
10788
10789 2015-06-02 Alan Modra <amodra@gmail.com>
10790
10791 * config/rs6000/vsx.md (vsx_extract_v4sf): Revert accidental
10792 2014-08-11 change.
10793
10794 2015-06-02 Bin Cheng <bin.cheng@arm.com>
10795
10796 PR tree-optimization/52563
10797 PR tree-optimization/62173
10798 * tree-ssa-loop-ivopts.c (struct iv): New field. Reorder fields.
10799 (alloc_iv, set_iv): New parameter.
10800 (determine_biv_step): Delete.
10801 (find_bivs): Inline original determine_biv_step. Pass new
10802 argument to set_iv.
10803 (idx_find_step): Use no_overflow information for conversion.
10804 * tree-scalar-evolution.c (analyze_scalar_evolution_in_loop): Let
10805 resolve_mixers handle folded_casts.
10806 (instantiate_scev_name): Change bool parameter to bool pointer.
10807 (instantiate_scev_poly, instantiate_scev_binary): Ditto.
10808 (instantiate_array_ref, instantiate_scev_not): Ditto.
10809 (instantiate_scev_3, instantiate_scev_2): Ditto.
10810 (instantiate_scev_1, instantiate_scev_r): Ditto.
10811 (instantiate_scev_convert, ): Change parameter. Pass argument
10812 to chrec_convert_aggressive.
10813 (instantiate_scev): Change argument.
10814 (resolve_mixers): New parameter and set it.
10815 (scev_const_prop): New argument.
10816 * tree-scalar-evolution.h (resolve_mixers): New parameter.
10817 * tree-chrec.c (convert_affine_scev): Call chrec_convert instead
10818 of chrec_conert_1.
10819 (chrec_convert): New parameter. Move definition below.
10820 (chrec_convert_aggressive): New parameter and set it. Call
10821 convert_affine_scev.
10822 * tree-chrec.h (chrec_convert): New parameter.
10823 (chrec_convert_aggressive): Ditto.
10824
10825 2015-06-01 Eric Botcazou <ebotcazou@adacore.com>
10826
10827 * gimplify.c (gimplify_modify_expr_rhs): Use simple test on the size.
10828 * cgraph.c (cgraph_redirect_edge_call_stmt_to_callee): Do not remove
10829 the LHS of a no-return call if its type has variable size.
10830 * tree-cfgcleanup.c (fixup_noreturn_call): Likewise.
10831 * tree-cfg.c (verify_gimple_call): Accept these no-return calls.
10832
10833 2015-06-01 Andreas Tobler <andreast@gcc.gnu.org>
10834
10835 * read-rtl.c: Adapt to use HAVE_DECL_ATOLL instead of HAVE_ATOLL.
10836 * config.in: Regenerate.
10837
10838 2015-06-01 Yuri Rumyantsev <ysrumyan@gmail.com>
10839
10840 * tree-vect-data-refs.c (vect_analyze_data_ref_access): Allow
10841 consecutive accesses within outer-loop with force_vectorize
10842 for references with zero step in inner-loop.
10843
10844 2015-06-01 Vidya Praveen <vidyapraveen@arm.com>
10845
10846 * Makefile.in: Pick up gcov-dump dependencies from gcc/ directory
10847 rather than from gcc/build directory.
10848
10849 2015-06-01 Matthew Wahab <matthew.wahab@arm.com>
10850
10851 PR target/65697
10852 * config/aarch64/aarch64.c (aarch64_split_compare_and_swap): Check
10853 for __sync memory models, emit initial loads and final barriers as
10854 appropriate.
10855
10856 2015-06-01 Matthew Wahab <matthew.wahab@arm.com>
10857
10858 PR target/65697
10859 * config/aarch64/aarch64.c (aarch64_emit_post_barrier):New.
10860 (aarch64_split_atomic_op): Check for __sync memory models, emit
10861 appropriate initial loads and final barriers.
10862
10863 2015-06-01 Vidya Praveen <vidyapraveen@arm.com>
10864
10865 * Makefile.in: Fix gcov dependencies that should
10866 not point to a build folder.
10867
10868 2015-06-01 Richard Biener <rguenther@suse.de>
10869
10870 Revert
10871 2015-05-29 Richard Biener <rguenther@suse.de>
10872
10873 PR tree-optimization/66314
10874 * tree-ssa-threadupdate.c (create_block_for_threading): Add
10875 parameter that says which loop the new block belongs to.
10876 (ssa_create_duplicates): Blocks duplicated for the threaded
10877 path belong to the loop of the thread destination.
10878
10879 2015-06-01 Martin Liska <mliska@suse.cz>
10880
10881 * sched-deps.c: Include pool-alloc.h before
10882 cselib.h header file is included.
10883
10884 2015-06-01 Richard Biener <rguenther@suse.de>
10885
10886 * tree-ssa-structalias.c (ipa_pta_execute): Handle address-taken
10887 functions.
10888
10889 2015-06-01 Martin Liska <mliska@suse.cz>
10890
10891 * alloc-pool.h: Add ATTRIBUTE_UNUSED for
10892 a function local variable.
10893
10894 2015-06-01 Martin Liska <mliska@suse.cz>
10895
10896 * alloc-pool.c (create_alloc_pool): Remove.
10897 (empty_alloc_pool): Likewise.
10898 (free_alloc_pool): Likewise.
10899 (free_alloc_pool_if_empty): Likewise.
10900 (pool_alloc): Likewise.
10901 (pool_free): Likewise.
10902 * alloc-pool.h: Remove old declarations.
10903
10904 2015-06-01 Martin Liska <mliska@suse.cz>
10905
10906 * ira-build.c (initiate_allocnos): Use new type-based pool allocator.
10907 (ira_create_object): Likewise.
10908 (ira_create_allocno): Likewise.
10909 (ira_create_live_range): Likewise.
10910 (copy_live_range): Likewise.
10911 (ira_finish_live_range): Likewise.
10912 (ira_free_allocno_costs): Likewise.
10913 (finish_allocno): Likewise.
10914 (finish_allocnos): Likewise.
10915 (initiate_prefs): Likewise.
10916 (ira_create_pref): Likewise.
10917 (finish_pref): Likewise.
10918 (finish_prefs): Likewise.
10919 (initiate_copies): Likewise.
10920 (ira_create_copy): Likewise.
10921 (finish_copy): Likewise.
10922 (finish_copies): Likewise.
10923 (finish_prefs): Likewise.
10924
10925 2015-06-01 Martin Liska <mliska@suse.cz>
10926
10927 * ipa-cp.c (ipcp_value::add_source): Use new type-based pool allocator.
10928 (allocate_and_init_ipcp_value): Likewise.
10929 (ipcp_lattice::add_value): Likewise.
10930 (merge_agg_lats_step): Likewise.
10931 (ipcp_driver): Likewise.
10932 * ipa-prop.c (ipa_free_all_structures_after_ipa_cp): Likewise.
10933 (ipa_free_all_structures_after_iinln): Likewise.
10934 * ipa-prop.h: Likewise.
10935
10936 2015-06-01 Martin Liska <mliska@suse.cz>
10937
10938 * ipa-inline-analysis.c (edge_set_predicate): Use new type-based
10939 pool allocator.
10940 (set_hint_predicate): Likewise.
10941 (inline_summary_alloc): Likewise.
10942 (reset_inline_edge_summary): Likewise.
10943 (reset_inline_summary): Likewise.
10944 (set_cond_stmt_execution_predicate): Likewise.
10945 (set_switch_stmt_execution_predicate): Likewise.
10946 (compute_bb_predicates): Likewise.
10947 (estimate_function_body_sizes): Likewise.
10948 (inline_free_summary): Likewise.
10949
10950 2015-06-01 Martin Liska <mliska@suse.cz>
10951
10952 * ipa-prop.c (ipa_set_jf_constant): Use new type-based pool allocator.
10953 (ipa_edge_duplication_hook): Likewise.
10954 (ipa_free_all_structures_after_ipa_cp): Likewise.
10955 (ipa_free_all_structures_after_iinln): Likewise.
10956
10957 2015-06-01 Martin Liska <mliska@suse.cz>
10958
10959 * ipa-profile.c (account_time_size): Use new type-based pool allocator.
10960 (ipa_profile_generate_summary): Likewise.
10961 (ipa_profile_read_summary): Likewise.
10962 (ipa_profile): Likewise.
10963
10964 2015-06-01 Martin Liska <mliska@suse.cz>
10965
10966 * tree-ssa-structalias.c (new_var_info): Use new type-based
10967 pool allocator.
10968 (new_constraint): Likewise.
10969 (init_alias_vars): Likewise.
10970 (delete_points_to_sets): Likewise.
10971
10972 2015-06-01 Martin Liska <mliska@suse.cz>
10973
10974 * tree-ssa-strlen.c (new_strinfo): Use new type-based pool allocator.
10975 (free_strinfo): Likewise.
10976 (pass_strlen::execute): Likewise.
10977
10978 2015-06-01 Martin Liska <mliska@suse.cz>
10979
10980 * tree-ssa-sccvn.c (vn_reference_insert): Use new type-based
10981 pool allocator.
10982 (vn_reference_insert_pieces): Likewise.
10983 (vn_phi_insert): Likewise.
10984 (visit_reference_op_call): Likewise.
10985 (copy_phi): Likewise.
10986 (copy_reference): Likewise.
10987 (process_scc): Likewise.
10988 (allocate_vn_table): Likewise.
10989 (free_vn_table): Likewise.
10990
10991 2015-06-01 Martin Liska <mliska@suse.cz>
10992
10993 * tree-ssa-reassoc.c (add_to_ops_vec): Use new type-based
10994 pool allocator.
10995 (add_repeat_to_ops_vec): Likewise.
10996 (get_ops): Likewise.
10997 (maybe_optimize_range_tests): Likewise.
10998 (init_reassoc): Likewise.
10999 (fini_reassoc): Likewise.
11000
11001 2015-06-01 Martin Liska <mliska@suse.cz>
11002
11003 * tree-ssa-pre.c (get_or_alloc_expr_for_name): Use new type-based
11004 pool allocator.
11005 (bitmap_set_new): Likewise.
11006 (get_or_alloc_expr_for_constant): Likewise.
11007 (get_or_alloc_expr_for): Likewise.
11008 (phi_translate_1): Likewise.
11009 (compute_avail): Likewise.
11010 (init_pre): Likewise.
11011 (fini_pre): Likewise.
11012
11013 2015-06-01 Martin Liska <mliska@suse.cz>
11014
11015 * sched-deps.c (create_dep_node): Use new type-based pool allocator.
11016 (delete_dep_node): Likewise.
11017 (create_deps_list): Likewise.
11018 (free_deps_list): Likewise.
11019 (sched_deps_init): Likewise.
11020 (sched_deps_finish): Likewise.
11021
11022 2015-06-01 Martin Liska <mliska@suse.cz>
11023
11024 * regcprop.c (free_debug_insn_changes): Use new type-based
11025 pool allocator.
11026 (replace_oldest_value_reg): Likewise.
11027 (pass_cprop_hardreg::execute): Likewise.
11028
11029 2015-06-01 Martin Liska <mliska@suse.cz>
11030
11031 * ira-build.c (initiate_cost_vectors): Use new type-based
11032 pool allocator.
11033 (ira_allocate_cost_vector): Likewise.
11034 (ira_free_cost_vector): Likewise.
11035 (finish_cost_vectors): Likewise.
11036
11037 2015-06-01 Martin Liska <mliska@suse.cz>
11038
11039 * sel-sched-ir.c (alloc_sched_pools): Use new type-based
11040 pool allocator.
11041 (free_sched_pools): Likewise.
11042 * sel-sched-ir.h (_list_alloc): Likewise.
11043 (_list_remove): Likewise.
11044
11045 2015-06-01 Martin Liska <mliska@suse.cz>
11046
11047 * stmt.c (add_case_node): Use new type-based pool allocator.
11048 (expand_case): Likewise.
11049 (expand_sjlj_dispatch_table): Likewise.
11050
11051 2015-06-01 Martin Liska <mliska@suse.cz>
11052
11053 * tree-ssa-math-opts.c (occ_new): Use new type-based pool allocator.
11054 (free_bb): Likewise.
11055 (pass_cse_reciprocals::execute): Likewise.
11056
11057 2015-06-01 Martin Liska <mliska@suse.cz>
11058
11059 * tree-sra.c (sra_initialize): Use new type-based pool allocator.
11060 (sra_deinitialize) Likewise.
11061 (create_access_1) Likewise.
11062 (build_accesses_from_assign) Likewise.
11063 (create_artificial_child_access) Likewise.
11064
11065 2015-06-01 Martin Liska <mliska@suse.cz>
11066
11067 * dse.c (get_group_info):Use new type-based pool allocator.
11068 (dse_step0) Likewise.
11069 (free_store_info) Likewise.
11070 (delete_dead_store_insn) Likewise.
11071 (free_read_records) Likewise.
11072 (record_store) Likewise.
11073 (replace_read) Likewise.
11074 (check_mem_read_rtx) Likewise.
11075 (scan_insn) Likewise.
11076 (dse_step1) Likewise.
11077 (dse_step7) Likewise.
11078
11079 2015-06-01 Martin Liska <mliska@suse.cz>
11080
11081 * df-scan.c (struct df_scan_problem_data):Use new type-based
11082 pool allocator.
11083 (df_scan_free_internal) Likewise.
11084 (df_scan_alloc) Likewise.
11085 (df_grow_reg_info) Likewise.
11086 (df_free_ref) Likewise.
11087 (df_insn_create_insn_record) Likewise.
11088 (df_mw_hardreg_chain_delete) Likewise.
11089 (df_insn_info_delete) Likewise.
11090 (df_free_collection_rec) Likewise.
11091 (df_mw_hardreg_chain_delete_eq_uses) Likewise.
11092 (df_sort_and_compress_mws) Likewise.
11093 (df_ref_create_structure) Likewise.
11094 (df_ref_record) Likewise.
11095
11096 2015-06-01 Martin Liska <mliska@suse.cz>
11097
11098 * df-problems.c (df_chain_create):Use new type-based pool allocator.
11099 (df_chain_unlink_1) Likewise.
11100 (df_chain_unlink) Likewise.
11101 (df_chain_remove_problem) Likewise.
11102 (df_chain_alloc) Likewise.
11103 (df_chain_free) Likewise.
11104 * df.h (struct dataflow) Likewise.
11105
11106 2015-06-01 Martin Liska <mliska@suse.cz>
11107
11108 * cselib.c (new_elt_list):Use new type-based pool allocator.
11109 (new_elt_loc_list) Likewise.
11110 (unchain_one_elt_list) Likewise.
11111 (unchain_one_elt_loc_list) Likewise.
11112 (unchain_one_value) Likewise.
11113 (new_cselib_val) Likewise.
11114 (cselib_init) Likewise.
11115 (cselib_finish) Likewise.
11116
11117 2015-06-01 Martin Liska <mliska@suse.cz>
11118
11119 * config/sh/sh.c (add_constant):Use new type-based pool allocator.
11120 (sh_reorg) Likewise.
11121
11122 2015-06-01 Martin Liska <mliska@suse.cz>
11123
11124 * cfg.c (initialize_original_copy_tables):Use new type-based
11125 pool allocator.
11126 (free_original_copy_tables) Likewise.
11127 (copy_original_table_clear) Likewise.
11128 (copy_original_table_set) Likewise.
11129
11130 2015-06-01 Martin Liska <mliska@suse.cz>
11131
11132 * asan.c (asan_mem_ref_get_alloc_pool):Use new type-based
11133 pool allocator.
11134 (asan_mem_ref_new) Likewise.
11135 (free_mem_ref_resources) Likewise.
11136
11137 2015-06-01 Martin Liska <mliska@suse.cz>
11138
11139 * var-tracking.c (variable_htab_free):Use new type-based
11140 pool allocator.
11141 (attrs_list_clear) Likewise.
11142 (attrs_list_insert) Likewise.
11143 (attrs_list_copy) Likewise.
11144 (shared_hash_unshare) Likewise.
11145 (shared_hash_destroy) Likewise.
11146 (unshare_variable) Likewise.
11147 (var_reg_delete_and_set) Likewise.
11148 (var_reg_delete) Likewise.
11149 (var_regno_delete) Likewise.
11150 (drop_overlapping_mem_locs) Likewise.
11151 (variable_union) Likewise.
11152 (insert_into_intersection) Likewise.
11153 (canonicalize_values_star) Likewise.
11154 (variable_merge_over_cur) Likewise.
11155 (dataflow_set_merge) Likewise.
11156 (remove_duplicate_values) Likewise.
11157 (variable_post_merge_new_vals) Likewise.
11158 (dataflow_set_preserve_mem_locs) Likewise.
11159 (dataflow_set_remove_mem_locs) Likewise.
11160 (variable_from_dropped) Likewise.
11161 (variable_was_changed) Likewise.
11162 (set_slot_part) Likewise.
11163 (clobber_slot_part) Likewise.
11164 (delete_slot_part) Likewise.
11165 (loc_exp_insert_dep) Likewise.
11166 (notify_dependents_of_changed_value) Likewise.
11167 (emit_notes_for_differences_1) Likewise.
11168 (vt_emit_notes) Likewise.
11169 (vt_initialize) Likewise.
11170 (vt_finalize) Likewise.
11171
11172 2015-06-01 Martin Liska <mliska@suse.cz>
11173
11174 * ira-color.c (init_update_cost_records):Use new type-based
11175 pool allocator.
11176 (get_update_cost_record) Likewise.
11177 (free_update_cost_record_list) Likewise.
11178 (finish_update_cost_records) Likewise.
11179 (initiate_cost_update) Likewise.
11180
11181 2015-06-01 Martin Liska <mliska@suse.cz>
11182
11183 * lra.c (init_insn_regs): Use new type-based pool allocator.
11184 (new_insn_reg) Likewise.
11185 (free_insn_reg) Likewise.
11186 (free_insn_regs) Likewise.
11187 (finish_insn_regs) Likewise.
11188 (init_insn_recog_data) Likewise.
11189 (init_reg_info) Likewise.
11190 (finish_reg_info) Likewise.
11191 (lra_free_copies) Likewise.
11192 (lra_create_copy) Likewise.
11193 (invalidate_insn_data_regno_info) Likewise.
11194
11195 2015-06-01 Martin Liska <mliska@suse.cz>
11196
11197 * lra-lives.c (free_live_range): Use new type-based pool allocator.
11198 (free_live_range_list) Likewise.
11199 (create_live_range) Likewise.
11200 (copy_live_range) Likewise.
11201 (lra_merge_live_ranges) Likewise.
11202 (remove_some_program_points_and_update_live_ranges) Likewise.
11203 (lra_live_ranges_init) Likewise.
11204 (lra_live_ranges_finish) Likewise.
11205
11206 2015-06-01 Martin Liska <mliska@suse.cz>
11207
11208 * et-forest.c (et_new_occ): Use new type-based pool allocator.
11209 (et_new_tree): Likewise.
11210 (et_free_tree): Likewise.
11211 (et_free_tree_force): Likewise.
11212 (et_free_pools): Likewise.
11213 (et_split): Likewise.
11214
11215 2015-06-01 Martin Liska <mliska@suse.cz>
11216
11217 * alloc-pool.c (struct alloc_pool_descriptor): Move definition
11218 to header file.
11219 * alloc-pool.h (pool_allocator::pool_allocator): New function.
11220 (pool_allocator::release): Likewise.
11221 (inline pool_allocator::release_if_empty): Likewise.
11222 (inline pool_allocator::~pool_allocator): Likewise.
11223 (pool_allocator::allocate): Likewise.
11224 (pool_allocator::remove): Likewise.
11225
11226 2015-06-01 James Greenhalgh <james.greenhalgh@arm.com>
11227
11228 * sched-deps.c (sched_analyze_2): Replace fuseable with fusible
11229 in comment.
11230
11231 2015-06-01 James Greenhalgh <james.greenhalgh@arm.com>
11232
11233 * gcc/config/arm/arm-protos.h (tune_params): Rename fuseable_ops
11234 to fusible_ops.
11235 * gcc/config/arm/arm.c (arm_print_tune_info): Likewise.
11236 (arm_macro_fusion_p): Likewise.
11237 (arm_macro_fusion_pair_p): Likewise.
11238
11239 2015-06-01 James Greenhalgh <james.greenhalgh@arm.com>
11240
11241 * config/aarch64/aarch64-protos.h (tune_params): Rename
11242 fuseable_ops to fusible_ops.
11243 * config/aarch64/aarch64.c (generic_tunings): Rename
11244 fuseable_ops to fusible_ops.
11245 (cortexa53_tunings): Likewise.
11246 (cortexa57_tunings): Likewise.
11247 (thunderx_tunings): Likewise.
11248 (xgene1_tunings): Likewise.
11249 (aarch64_macro_fusion_p): Likewise.
11250 (aarch64_macro_fusion_pair_p): Likewise.
11251
11252 2015-06-01 Dominik Vogt <vogt@linux.vnet.ibm.com>
11253
11254 * config/s390/driver-native.c: New file.
11255 * config/s390/x-native: New file.
11256 * config.host: Add new files for s390.
11257 * config/s390/s390.h (DRIVER_SELF_SPECS): Add support for -mtune=native
11258 and -march=native
11259 * config.gcc: Likewise.
11260 * config/s390/s390.opt (march): Likewise; add PROCESSOR_NATIVE
11261 * config/s390/s390-opts.h (enum processor_type): Ditto.
11262 * config/s390/s390.c (s390_option_override): Catch unhandled
11263 PROCESSOR_NATIVE
11264
11265 2015-06-01 Ilya Enkovich <ilya.enkovich@intel.com>
11266
11267 PR target/65527
11268 * cgraph.c (cgraph_edge::redirect_call_stmt_to_callee): Add
11269 redirection for instrumented calls.
11270 * lto-wrapper.c (merge_and_complain): Merge -fcheck-pointer-bounds.
11271 (append_compiler_options): Append -fcheck-pointer-bounds.
11272 * tree-chkp.h (chkp_copy_call_skip_bounds): New.
11273 (chkp_redirect_edge): New.
11274 * tree-chkp.c (chkp_copy_call_skip_bounds): New.
11275 (chkp_redirect_edge): New.
11276
11277 2015-06-01 Richard Biener <rguenther@suse.de>
11278
11279 PR tree-optimization/66280
11280 * tree-vect-slp.c (vect_detect_hybrid_slp_stmts): Fix pattern
11281 def-use walking.
11282
11283 2015-06-01 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
11284
11285 * config/aarch64/aarch64.md
11286 (*<LOGICAL:optab>_one_cmpl_<SHIFT:optab><mode>3): Change type to
11287 logic_shift_imm.
11288
11289 2015-06-01 Eric Botcazou <ebotcazou@adacore.com>
11290
11291 * config/i386/winnt.c (i386_pe_encode_section_info) <FUNCTION_DECL>:
11292 Remove obsolete kludge.
11293
11294 2015-06-01 Richard Biener <rguenther@suse.de>
11295
11296 * tree-ssa-reassoc.c (get_rank): Simplify.
11297
11298 2015-05-31 H.J. Lu <hongjiu.lu@intel.com>
11299
11300 * configure.ac (NO_PIE_CFLAGS): Check CXXFLAGS instead of CFLAGS.
11301 * configure: Regenerated.
11302
11303 2015-05-31 Mikhail Maltsev <maltsevm@gmail.com>
11304
11305 * config/cris/cris.h (CRIS_ARCH_CPP_DEFAULT): Fix C++11 compatibility
11306 issue (add space between string literal and macro).
11307 * config/i386/mingw32.h (REAL_LIBGCC_SPEC): Likewise.
11308
11309 2015-05-30 Andreas Schwab <schwab@linux-m68k.org>
11310
11311 * config/m68k/m68k.h (ASM_PCREL_SPEC): Pass --pcrel also for
11312 implict or explicit -fPIE or -fpie.
11313
11314 2015-05-30 Mike Frysinger <vapier@gentoo.org>
11315
11316 * gcc/config/alpha/elf.h (ASM_SPEC): Add %{mcpu=*:-m%*}.
11317
11318 2015-05-28 DJ Delorie <dj@redhat.com>
11319
11320 * expmed.c (extract_bit_field_1): Avoid clobbering a
11321 yet-to-be-used base/index register.
11322
11323 2015-05-30 Jan Hubicka <hubicka@ucw.cz>
11324
11325 * alias.c (alias_set_entry_d): Add is_pointer and has_pointer.
11326 (alias_stats): Add num_universal.
11327 (alias_set_subset_of): Special case pointers; be ready for NULL
11328 children.
11329 (alias_sets_conflict_p): Special case pointers; be ready for NULL
11330 children.
11331 (init_alias_set_entry): Break out from ...
11332 (record_alias_subset): ... here; propagate new fields;
11333 allocate children only when really needed.
11334 (get_alias_set): Do less generous pointer globbing.
11335 (dump_alias_stats_in_alias_c): Update statistics.
11336
11337 2015-05-30 Alan Modra <amodra@gmail.com>
11338
11339 * config/rs6000/rs6000.c (split_stack_arg_pointer_used_p): Scan
11340 correct block for use of r12.
11341 (rs6000_expand_split_stack_prologue): Error on r29 asm global reg.
11342
11343 2015-05-29 Dominik Vogt <vogt@linux.vnet.ibm.com>
11344
11345 PR target/66215
11346 * config/s390/s390.c (s390_reorg): Fix placement of post-label NOPs
11347 with -mhotpatch=.
11348
11349 2015-05-29 Jakub Jelinek <jakub@redhat.com>
11350
11351 PR tree-optimization/66142
11352 * tree-if-conv.c (if_convertible_phi_p): Don't give up on
11353 virtual phis that feed themselves.
11354
11355 2015-05-29 Richard Biener <rguenther@suse.de>
11356
11357 PR tree-optimization/66314
11358 * tree-ssa-threadupdate.c (create_block_for_threading): Add
11359 parameter that says which loop the new block belongs to.
11360 (ssa_create_duplicates): Blocks duplicated for the threaded
11361 path belong to the loop of the thread destination.
11362
11363 2015-05-29 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
11364
11365 * config/arm/neon-testgen.ml (emit_epilogue): Remove manual call
11366 to cleanup-saved-temps.
11367 * doc/sourcebuild.texi (Clean up generated test files): Expand
11368 introduction.
11369 (dg-keep-saved-temps): Document new proc.
11370 (cleanup-ipa-dump, cleanup-rtl-dump, cleanup-tree-dump,
11371 cleanup-saved-temps): Remove.
11372
11373 2015-05-28 Andreas Tobler <andreast@gcc.gnu.org>
11374
11375 * configure.ac: Move the atoll check from AC_CHECK_FUNCS to
11376 gcc_AC_CHECK_DECLS.
11377 * configure: Regenerate.
11378
11379 2015-05-28 Mike Frysinger <vapier@gentoo.org>
11380
11381 * config/nios2/linux.h (CPP_SPEC): Define.
11382
11383 2015-05-28 Mike Frysinger <vapier@gentoo.org>
11384
11385 * config/microblaze/linux.h (CPP_SPEC): Define.
11386
11387 2015-05-28 Mike Frysinger <vapier@gentoo.org>
11388
11389 * config/pa/pa-linux.h (CPP_SPEC): Change so -D_REENTRANT is used when
11390 -pthread is specified.
11391
11392 2015-05-28 Richard Biener <rguenther@suse.de>
11393
11394 * tree-vect-loop.c (vect_fixup_reduc_chain): New function.
11395 (vect_fixup_scalar_cycles_with_patterns): Likewise.
11396 (vect_analyze_loop_2): Call vect_fixup_scalar_cycles_with_patterns
11397 after pattern recog.
11398 (vect_create_epilog_for_reduction): Properly handle reductions
11399 with patterns.
11400 (vectorizable_reduction): Likewise.
11401 * tree-vect-slp.c (vect_analyze_slp_instance): Properly mark
11402 reduction chains.
11403 (vect_get_constant_vectors): Create the correct number of
11404 initial values for reductions.
11405 (vect_schedule_slp_instance): Handle reduction chains that are
11406 type changing properly.
11407 * tree-vect-stmts.c (vect_analyze_stmt): Adjust.
11408
11409 2015-05-28 Richard Biener <rguenther@suse.de>
11410
11411 PR tree-optimization/66142
11412 * tree-ssa-sccvn.c (vn_reference_lookup_3): Handle non-GIMPLE
11413 values better in memcpy destination handling. Handle non-aliasing
11414 we discover here.
11415
11416 2015-05-28 Lawrence Velázquez <vq@larryv.me>
11417
11418 PR target/63810
11419 * config/darwin-c.c (version_components): New global enum.
11420 (parse_version, version_as_legacy_macro)
11421 (version_as_modern_macro, macosx_version_as_macro): New functions.
11422 (version_as_macro): Remove.
11423 (darwin_cpp_builtins): Use new function.
11424
11425 2015-05-28 H.J. Lu <hongjiu.lu@intel.com>
11426
11427 * builtins.c (expand_builtin_acc_on_device): Mark parameters
11428 with ATTRIBUTE_UNUSED.
11429
11430 2015-05-28 Julian Brown <julian@codesourcery.com>
11431
11432 PR libgomp/65742
11433
11434 * builtins.c (expand_builtin_acc_on_device): Don't use open-coded
11435 sequence for !ACCEL_COMPILER.
11436
11437 2015-05-28 Nick Clifton <nickc@redhat.com>
11438
11439 * config/rx/rx.c (push_regs): New function. Extracts code from...
11440 (rx_expand_prologue): ... here. Use push_regs to push even small
11441 spans of registers.
11442 (pop_regs): New function.
11443 (rx_expand_epilogue): Use pop_regs to pop even small spans of
11444 registers.
11445
11446 2015-05-28 Richard Biener <rguenther@suse.de>
11447
11448 * tree-vectorizer.h (struct _slp_instance): Remove body_cost_vec
11449 member.
11450 (SLP_INSTANCE_BODY_COST_VEC): Remove.
11451 (vect_update_slp_costs_according_to_vf): Likewise.
11452 (vect_slp_analyze_operations): Update prototype.
11453 * tree-vect-loop.c (vect_analyze_loop_2): Remove call to
11454 vect_update_slp_costs_according_to_vf, adjust.
11455 * tree-vect-slp.c (vect_free_slp_instance): Adjust.
11456 (vect_analyze_slp_cost_1): Likewise.
11457 (vect_analyze_slp_cost): Likewise. Properly deal with
11458 widening reduction ops. Commit body costs.
11459 (vect_analyze_slp_instance): Adjust. Do not analyze SLP
11460 cost for loops from here.
11461 (vect_slp_analyze_operations): But do it from here when
11462 the vectorization factor is known and stmts are analyzed.
11463 (vect_bb_vectorization_profitable_p): Simplify.
11464 (vect_slp_analyze_bb_1): Do not compute SLP cost here.
11465 (vect_update_slp_costs_according_to_vf): Remove.
11466
11467 2015-05-27 Magnus Granberg <zorry@gentoo.org>
11468 H.J. Lu <hongjiu.lu@intel.com>
11469
11470 * Makefile.in (COMPILER): Add @NO_PIE_CFLAGS@.
11471 (BUILD_CFLAGS): Likewise.
11472 (BUILD_CXXFLAGS): Likewise.
11473 (LINKER): Add @NO_PIE_FLAG@.
11474 (BUILD_LDFLAGS): Likewise.
11475 (libgcc.mvars): Set NO_PIE_CFLAGS to -fno-PIE for
11476 --enable-default-pie.
11477 * common.opt (fPIE): Initialize to -1.
11478 (fpie): Likewise.
11479 (no-pie): New option.
11480 (pie): Replace "Negative(shared)" with "Negative(no-pie)".
11481 * configure.ac: Add --enable-default-pie.
11482 (NO_PIE_CFLAGS): New. Check if -fno-PIE works. AC_SUBST.
11483 (NO_PIE_FLAG): New. Check if -no-pie works. AC_SUBST.
11484 * defaults.h (DEFAULT_FLAG_PIE): New. Default PIE to -fPIE.
11485 * gcc.c (NO_PIE_SPEC): New.
11486 (PIE_SPEC): Likewise.
11487 (NO_FPIE1_SPEC): Likewise.
11488 (FPIE1_SPEC): Likewise.
11489 (NO_FPIE2_SPEC): Likewise.
11490 (FPIE2_SPEC): Likewise.
11491 (NO_FPIE2_SPEC): Likewise.
11492 (FPIE_SPEC): Likewise.
11493 (NO_FPIE_SPEC): Likewise.
11494 (NO_FPIC1_SPEC): Likewise.
11495 (FPIC1_SPEC): Likewise.
11496 (NO_FPIC2_SPEC): Likewise.
11497 (FPIC2_SPEC): Likewise.
11498 (NO_FPIC2_SPEC): Likewise.
11499 (FPIC_SPEC): Likewise.
11500 (NO_FPIC_SPEC): Likewise.
11501 (NO_FPIE1_AND_FPIC1_SPEC): Likewise.
11502 (FPIE1_OR_FPIC1_SPEC): Likewise.
11503 (NO_FPIE2_AND_FPIC2_SPEC): Likewise.
11504 (FPIE2_OR_FPIC2_SPEC): Likewise.
11505 (NO_FPIE_AND_FPIC_SPEC): Likewise.
11506 (FPIE_OR_FPIC_SPEC): Likewise.
11507 (LD_PIE_SPEC): Likewise.
11508 (LINK_PIE_SPEC): Handle -no-pie. Use PIE_SPEC and LD_PIE_SPEC.
11509 * opts.c (finish_options): Update opts->x_flag_pie if it is -1.
11510 * config/darwin.h (PIE_SPEC): Renamed to ...
11511 (DARWIN_PIE_SPEC): This.
11512 (LINK_SPEC): Replace PIE_SPEC with DARWIN_PIE_SPEC.
11513 * config/darwin9.h (PIE_SPEC): Renamed to ...
11514 (DARWIN_PIE_SPEC): This.
11515 * config/gnu-user.h (GNU_USER_TARGET_STARTFILE_SPEC): Use
11516 PIE_SPEC and NO_PIE_SPEC if HAVE_LD_PIE is defined.
11517 * config/openbsd.h (ASM_SPEC): Use FPIE1_OR_FPIC1_SPEC and
11518 FPIE2_OR_FPIC2_SPEC.
11519 * config/m68k/netbsd-elf.h (ASM_SPEC): Likewise.
11520 * config/m68k/openbsd.h (ASM_SPEC): Likewise.
11521 * gcc/config/sol2.h (ASM_PIC_SPEC): Likewise.
11522 * config/arm/freebsd.h (SUBTARGET_EXTRA_ASM_SPEC): Likewise.
11523 * config/arm/netbsd-elf.h (SUBTARGET_EXTRA_ASM_SPEC): Likewise.
11524 * config/arm/semi.h (SUBTARGET_EXTRA_ASM_SPEC): Likewise.
11525 * config/cris/linux.h (CRIS_ASM_SUBTARGET_SPEC): Likewise.
11526 * config/m32r/m32r.h (ASM_SPEC): Likewise.
11527 * config/m68k/uclinux.h (DRIVER_SELF_SPECS): Likewise.
11528 * config/rs6000/linux64.h (ASM_SPEC32): Likewise.
11529 * config/rs6000/sysv4.h (ASM_SPEC): Likewise.
11530 * config/sparc/freebsd.h (ASM_SPEC): Likewise.
11531 * config/sparc/linux.h (ASM_SPEC): Likewise.
11532 * config/sparc/linux64.h (ASM_SPEC): Likewise.
11533 * config/sparc/netbsd-elf.h (ASM_SPEC): Likewise.
11534 * config/sparc/openbsd64.h (ASM_SPEC): Likewise.
11535 * config/sparc/sp-elf.h (ASM_SPEC): Likewise.
11536 * config/sparc/sp64-elf.h (ASM_SPEC): Likewise.
11537 * config/sparc/sparc.h (ASM_SPEC): Likewise.
11538 * config/sparc/sysv4.h (ASM_SPEC): Likewise.
11539 * config/sparc/vxworks.h (ASM_SPEC): Likewise.
11540 * config/c6x/elf-common.h (ASM_SPEC): Use NO_FPIC2_SPEC,
11541 FPIC2_SPEC, FPIC1_SPEC and FPIC2_SPEC.
11542 * config/c6x/uclinux-elf.h (LINK_SPEC): Use FPIE_SPEC.
11543 * config/frv/frv.h (DRIVER_SELF_SPECS): Use FPIC_SPEC,
11544 NO_FPIC_SPEC and NO_FPIE1_AND_FPIC1_SPEC.
11545 (ASM_SPEC): Use FPIE1_OR_FPIC1_SPEC and FPIE2_OR_FPIC2_SPEC.
11546 * config/m68k/m68k.h (ASM_PCREL_SPEC): Use FPIC_SPEC and NO_FPIC_SPEC.
11547 * config/mips/gnu-user.h (NO_SHARED_SPECS): Use NO_FPIE_AND_FPIC_SPEC.
11548 * config/mips/vxworks.h (SUBTARGET_ASM_SPEC): Use FPIC_SPEC.
11549 * config/rs6000/freebsd64.h (ASM_SPEC32): Likewise.
11550 * config/rs6000/vxworks.h (ASM_SPEC): Likewise.
11551 * config/vax/linux.h (ASM_SPEC): Likewise.
11552 * doc/install.texi: Document --enable-default-pie.
11553 * doc/invoke.texi: Document -no-pie.
11554 * config.in: Regenerated.
11555 * configure: Likewise.
11556
11557 2015-05-28 Thomas Preud'homme <thomas.preudhomme@arm.com>
11558
11559 PR rtl-optimization/66168
11560 * loop-invariant.c (move_invariant_reg): Pass dest rather than reg to
11561 can_move_invariant_reg.
11562
11563 2015-05-27 John David Anglin <danglin@gcc.gnu.org>
11564
11565 PR target/66148
11566 * config/pa/pa.c (pa_emit_move_sequence): Correct placement of
11567 REG_EQUAL note when doing insert.
11568
11569 * config/pa/pa.c (pa_print_operand): Use HOST_WIDE_INT_PRINT_DEC
11570 instead of "%d" for 'o' operand.
11571
11572 2015-05-27 Nathan Sidwell <nathan@acm.org>
11573
11574 PR c++/66270
11575 * tree.c (build_pointer_type_for_mode): Canonical type does not
11576 inherit can_alias_all.
11577 (build_reference_type_for_mode): Likewise.
11578
11579 2015-05-27 Eric Botcazou <ebotcazou@adacore.com>
11580
11581 * expr.h (array_at_struct_end_p): Move to...
11582 (array_ref_element_size): Likewise.
11583 (component_ref_field_offset): Likewise.
11584 * tree.h (array_ref_element_size): ...here.
11585 (array_at_struct_end_p): Likewise.
11586 (component_ref_field_offset): Likewise.
11587 * expr.c (array_ref_element_size): Move to...
11588 (array_ref_low_bound): Likewise.
11589 (array_at_struct_end_p): Likewise.
11590 (array_ref_up_bound): Likewise.
11591 (component_ref_field_offset): Likewise.
11592 * tree.c (array_ref_element_size): ...here.
11593 (array_ref_low_bound): Likewise.
11594 (array_ref_up_bound): Likewise.
11595 (array_at_struct_end_p): Likewise.
11596 (component_ref_field_offset): Likewise.
11597
11598 2015-05-27 Gregor Richards <gregor.richards@uwaterloo.ca>
11599 Szabolcs Nagy <szabolcs.nagy@arm.com>
11600
11601 * config/aarch64/aarch64-linux.h (MUSL_DYNAMIC_LINKER): Define.
11602
11603 2015-05-27 Jason Merrill <jason@redhat.com>
11604
11605 PR bootstrap/66304
11606 * configure.ac: Use ACX_PROG_CXX_WARNING_OPTS,
11607 ACX_PROG_CXX_WARNING_ALMOST_PEDANTIC, and
11608 ACX_PROG_CXX_WARNINGS_ARE_ERRORS.
11609
11610 2015-05-22 Aditya Kumar <hiraditya@msn.com>
11611
11612 * auto-profile.c (afdo_calculate_branch_prob): Break once has_sample
11613 is true.
11614
11615 * statistics.c (statistics_fini_pass): Print pass name.
11616
11617 2015-05-27 Richard Biener <rguenther@suse.de>
11618
11619 PR tree-optimization/66272
11620 Revert parts of
11621 2014-08-15 Richard Biener <rguenther@suse.de>
11622
11623 PR tree-optimization/62031
11624 * tree-data-ref.c (dr_analyze_indices): Do not set
11625 DR_UNCONSTRAINED_BASE.
11626 (dr_may_alias_p): All indirect accesses have to go the
11627 formerly DR_UNCONSTRAINED_BASE path.
11628 * tree-data-ref.h (struct indices): Remove
11629 unconstrained_base member.
11630 (DR_UNCONSTRAINED_BASE): Remove.
11631
11632 2015-05-27 Aldy Hernandez <aldyh@redhat.com>
11633
11634 * dwarf2out.c: Remove block_map.
11635 (gen_call_site_die): Replace block_map use with BLOCK_DIE.
11636 (gen_lexical_block_die): Same.
11637 (dwarf2out_function_decl): Remove block_map use.
11638 (dwarf2out_c_finalize): Same.
11639 * tree-core.h (struct tree_block): Add die field.
11640 * tree.h (BLOCK_DIE): New.
11641
11642 2015-05-27 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
11643
11644 PR target/65358
11645 * expr.c (memory_load_overlap): New function.
11646 (emit_push_insn): When pushing partial args to the stack would
11647 clobber the register part load the overlapping part into a pseudo
11648 and put it into the hard reg after pushing. Change return type
11649 to bool. Add bool argument.
11650 * expr.h (emit_push_insn): Change return type to bool.
11651 Add bool argument.
11652 * calls.c (expand_call): Cancel sibcall optimization when encountering
11653 partial argument on targets with ARGS_GROW_DOWNWARD and
11654 !STACK_GROWS_DOWNWARD.
11655 (emit_library_call_value_1): Update callsite of emit_push_insn.
11656 (store_one_arg): Likewise.
11657
11658 2015-05-27 Gregor Richards <gregor.richards@uwaterloo.ca>
11659
11660 * config/arm/linux-eabi.h (MUSL_DYNAMIC_LINKER): Define.
11661
11662 2015-05-27 Martin Liska <mliska@suse.cz>
11663
11664 * Makefile.in: Add additional dependencies related to memory report
11665 enhancement.
11666 * alloc-pool.c (allocate_pool_descriptor): Use new ctor.
11667 * bitmap.c (struct bitmap_descriptor_d): Remove.
11668 (struct loc): Likewise.
11669 (struct bitmap_desc_hasher): Likewise.
11670 (bitmap_desc_hasher::hash): Likewise.
11671 (bitmap_desc_hasher::equal): Likewise.
11672 (get_bitmap_descriptor): Likewise.
11673 (bitmap_register): User new memory descriptor API.
11674 (register_overhead): Likewise.
11675 (bitmap_find_bit): Register nsearches and search_iter statistics.
11676 (struct bitmap_output_info): Remove.
11677 (print_statistics): Likewise.
11678 (dump_bitmap_statistics): Use new memory descriptor.
11679 * bitmap.h (struct bitmap_usage): New class.
11680 * genmatch.c: Extend header file inclusion.
11681 * genpreds.c: Likewise.
11682 * ggc-common.c (struct ggc_usage): New class.
11683 (struct ggc_loc_desc_hasher): Remove.
11684 (ggc_loc_desc_hasher::hash): Likewise.
11685 (ggc_loc_desc_hasher::equal): Likewise.
11686 (struct ggc_ptr_hash_entry): Likewise.
11687 (struct ptr_hash_hasher): Likewise.
11688 (ptr_hash_hasher::hash): Likewise.
11689 (ptr_hash_hasher::equal): Likewise.
11690 (make_loc_descriptor): Likewise.
11691 (ggc_prune_ptr): Likewise.
11692 (dump_ggc_loc_statistics): Use new memory descriptor.
11693 (ggc_record_overhead): Likewise.
11694 (ggc_free_overhead): Likewise.
11695 (final_cmp_statistic): Remove.
11696 (cmp_statistic): Likewise.
11697 (ggc_add_statistics): Liekwise.
11698 (ggc_prune_overhead_list): Likewise.
11699 * hash-map-traits.h: New file.
11700 * hash-map.h (struct default_hashmap_traits): Move the traits to a
11701 separate header file.
11702 * hash-set.h: Pass memory statistics info to ctor.
11703 * hash-table.c (void dump_hash_table_loc_statistics): New function.
11704 * hash-table.h (hash_table::hash_table): Add new ctor arguments.
11705 (hash_table::~hash_table): Register memory release operation.
11706 (hash_table::alloc_entries): Handle memory allocation operation.
11707 (hash_table::expand): Likewise.
11708 * inchash.c (iterative_hash_hashval_t): Move implementation to header
11709 file.
11710 (iterative_hash_host_wide_int): Likewise.
11711 * inchash.h (class hash): Likewise.
11712 * mem-stats-traits.h: New file.
11713 * mem-stats.h: New file.
11714 (mem_location): Add new class.
11715 (mem_usage): Likewise.
11716 (mem_alloc_description): Likewise.
11717 * sese.c: Add new header file inclusision.
11718 * toplev.c (dump_memory_report): Add report for hash_table, hash_map
11719 and hash_set.
11720 * tree-sra.c: Add new header file inclusision.
11721 * vec.c (struct vec_descriptor): Remove.
11722 (hash_descriptor): Likewise.
11723 (struct vec_usage): Likewise.
11724 (struct ptr_hash_entry): Likewise.
11725 (hash_ptr): Likewise.
11726 (eq_ptr): Likewise.
11727 (vec_prefix::register_overhead): Use new memory descriptor API.
11728 (vec_prefix::release_overhead): Likewise.
11729 (add_statistics): Remove.
11730 (dump_vec_loc_statistics): Use new memory descriptor API.
11731 * vec.h (struct vec_prefix): Likewise.
11732 (va_heap::reserve): Likewise.
11733 (va_heap::release): Likewise.
11734 * emit-rtl.c (gen_raw_REG): Fix passing MEM_STAT.
11735
11736 2015-05-27 Richard Biener <rguenther@suse.de>
11737
11738 * tree-vect-stmts.c (vectorizable_load): Initialize slp_perm
11739 earlier and remove ??? comment.
11740 (vect_analyze_stmt): If we are analyzing a pure SLP stmt
11741 and got called from loop analysis bail out. Always pass the SLP
11742 node to the vectorizable_* functions.
11743 * tree-vect-loop.c (vect_analyze_loop_operations): Remove
11744 the premature SLP check here.
11745 * tree-vect-slp.c (vect_detect_hybrid_slp_stmts): Dump hybrid
11746 detected SLP stmts.
11747 (vect_detect_hybrid_slp_1): Likewise.
11748
11749 2015-05-26 Jeff Law <law@redhat.com>
11750
11751 * combine.c (find_split_point): Verify that the shift count is a
11752 constant when choosing (plus (ashift ...)) as a split point.
11753
11754 * tree-ssa-threadupdate.c: Replace 8 space sequences with tabs.
11755 No functional changes.
11756
11757 2015-05-26 Jan Hubicka <hubicka@ucw.cz>
11758
11759 * ipa-polymorphic-call.c
11760 (ipa_polymorphic_call_context::get_dynamic_type): Short circuit the
11761 case when call target is already known.
11762
11763 2015-05-26 Oleg Endo <olegendo@gcc.gnu.org>
11764
11765 PR target/65979
11766 * config/sh/sh.md (tstsi_t peephole2): Use gen_rtx_SET and
11767 take into account the case that operands[1] and operands[2]
11768 are the same register.
11769
11770 2015-05-26 Michael Matz <matz@suse.de>
11771
11772 PR middle-end/66251
11773
11774 * tree-vect-stmts.c (vect_model_store_cost): Handled strided group
11775 stores.
11776 (vect_create_vectorized_demotion_stmts): Always set
11777 STMT_VINFO_VEC_STMT, also with SLP.
11778 (vectorizable_store): Handle strided group stores.
11779
11780 2015-05-26 Venkataramanan Kumar <venkataramanan.kumar@amd.com>
11781
11782 PR target/66049
11783 * config/aarch64/aarch64.md
11784 (*adds_shift_imm_<mode>): New pattern.
11785 (*subs_shift_imm_<mode>): Likewise.
11786 (*adds_<optab><ALLX:mode>_shift_<GPI:mode>): Likewise.
11787 (*subs_<optab><ALLX:mode>_shift_<GPI:mode>): Likewise.
11788 (*add_uxt<mode>_shift2): Likewise.
11789 (*add_uxtsi_shift2_uxtw): Likewise.
11790 (*sub_uxt<mode>_shift2): Likewise.
11791 (*sub_uxtsi_shift2_uxtw): Likewise.
11792
11793 2015-05-26 David Edelsohn <dje.gcc@gmail.com>
11794
11795 * config/rs6000/constraints.md (Y, U): Use match_test.
11796
11797 2015-05-26 Christian Bruel <christian.bruel@st.com>
11798
11799 PR target/52144
11800 * config/arm/arm.c (arm_option_check_internal)
11801 (arm_option_params_internal): Check opts->target_flags to set macros.
11802 (TREE_TARGET_ARM, TREE_TARGET_THUMB)
11803 (TREE_TARGET_THUMB1, TREE_TARGET_THUMB2) Replace with...
11804 (TARGET_ARM_P, TARGET_THUMB_P, TARGET_THUMB1_P, TARGET_THUMB2_P)
11805 (builtin_define): Replaced with def_or_undef_macro.
11806 * config/arm/arm.h (TREE_TARGET_ARM, TREE_TARGET_THUMB)
11807 TREE_TARGET_THUMB1, TREE_TARGET_THUMB2) Redefine with...
11808 (TARGET_ARM_P, TARGET_THUMB_P, TARGET_THUMB1_P, TARGET_THUMB2_P)
11809 (TARGET_32BIT_P, TARGET_ARM_QBIT_P, TARGET_ARM_SAT_P, TARGET_IDIV_P)
11810 (TARGET_HAVE_LDREX_P, TARGET_HAVE_LDREXBH_P, TARGET_HAVE_LDREXD_P)
11811 (TARGET_ARM_FEATURE_LDREX_P)
11812 (TARGET_DSP_MULTIPLY_P, TARGET_INT_SIMD_P): New macros.
11813 * config/arm/arm-c.c (def_or_undef_macro): New function.
11814 (arm_cpu_cpp_builtins): Use def_or_undef_macro for macros definition.
11815
11816 2015-05-26 Christian Bruel <christian.bruel@st.com>
11817
11818 * c-common.h (builtin_define_with_int_value)
11819 (builtin_define_type_sizeof): Declare.
11820 * c-cppbuiltin.c (builtin_define_with_int_value)
11821 (builtin_define_type_sizeof): Externalize.
11822 (builtin_define_std): Cleanup declaration.
11823 * config/arm/arm-protos.h (arm_cpu_cpp_builtins): Declare.
11824 * config/arm/arm.h (TARGET_CPU_CPP_BUILTINS): Move macro defines into...
11825 * config/arm/arm-c.c (arm_cpu_cpp_builtins): New function.
11826 (builtin_define, builtin_assert): New macros.
11827
11828 2015-05-26 Richard Biener <rguenther@suse.de>
11829
11830 PR tree-optimization/66142
11831 * tree-ssa-sccvn.c (vn_reference_lookup_3): Manually compare
11832 MEM_REFs for the same base address.
11833
11834 2015-05-26 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
11835
11836 PR ipa/66181
11837 * tree.c (verify_type_variant): Do not check TYPE_NO_FORCE_BLK.
11838
11839 2015-05-26 Jason Merrill <jason@redhat.com>
11840
11841 * configure.ac: Set CXXFLAGS for ISL test.
11842 * configure: Regenerate.
11843
11844 * configure.ac: Use C++ for all tests. Use AC_CHECK_DECLS for
11845 strstr and basename.
11846 * configure: Regenerate.
11847
11848 2015-05-26 Richard Biener <rguenther@suse.de>
11849
11850 * fold-const.c (fold_binary_loc): Move X % -Y -> X % Y and
11851 X % C -> X & (C - 1) for C being a power-of two to ...
11852 * match.pd: ... patterns.
11853
11854 2015-05-26 Marc Glisse <marc.glisse@inria.fr>
11855
11856 * match.pd (swapped_tcc_comparison): New operator list.
11857 (-A CMP -B): New simplification.
11858 * fold-const.c (fold_comparison): Remove corresponding code.
11859
11860 2015-05-26 Richard Sandiford <richard.sandiford@arm.com>
11861
11862 * caller-save.c (init_caller_save): Base temporary register numbers
11863 on LAST_VIRTUAL_REGISTER + 1 rather than FIRST_PSEUDO_REGISTER.
11864 * cfgloopanal.c (init_set_costs): Likewise.
11865 * dojump.c (prefer_and_bit_test): Likewise.
11866 * expr.c (init_expr_target): Likewise.
11867 * ira.c (setup_prohibited_mode_move_regs): Likewise.
11868 * lower-subreg.c (init_lower_subreg): Likewise.
11869 * postreload.c (reload_cse_regs_1): Likewise.
11870
11871 2015-05-26 Richard Sandiford <richard.sandiford@arm.com>
11872
11873 * gensupport.h (compute_test_codes): Declare.
11874 * gensupport.c (compute_predicate_codes): Rename to...
11875 (compute_test_codes): ...this. Generalize error message.
11876 (process_define_predicate): Update accordingly.
11877 * genpreds.c (compute_maybe_allows): Delete.
11878 (add_constraint): Use compute_test_codes to determine whether
11879 something can accept a SUBREG, REG or MEM.
11880
11881 2015-05-26 Torvald Riegel <triegel@redhat.com>
11882
11883 * doc/extend.texi (__atomic Builtins): Use 'memory order' instead of
11884 'memory model' to align with C++11; fix description of memory orders;
11885 fix a few typos.
11886
11887 2015-05-26 Richard Biener <rguenther@suse.de>
11888
11889 * tree-vect-loop.c (vect_update_vf_for_slp): Split out from ...
11890 (vect_analyze_loop_operations): ... here. Remove slp parameter,
11891 detect whether we apply SLP. Remove call to
11892 vect_update_slp_costs_according_to_vf.
11893 (vect_analyze_loop_2): Call vect_update_vf_for_slp and
11894 vect_update_slp_costs_according_to_vf from here. Dispatch
11895 to vect_slp_analyze_operations to analyze SLP stmts.
11896 * tree-vect-slp.c (vect_slp_analyze_node_operations): Drop
11897 unused bb_vec_info parameter, adjust assert.
11898 (vect_slp_analyze_operations): Pass in the slp instance tree
11899 instead of bb_vec_info.
11900 (vect_slp_analyze_bb_1): Adjust call to vect_slp_analyze_operations.
11901 * tree-vectorizer.h (vect_slp_analyze_operations): Declare.
11902
11903 2015-05-25 Alexander Monakov <amonakov@ispras.ru>
11904
11905 * config/i386/i386.h (enum reg_class): Move CLOBBERED_REGS prior to
11906 Q_REGS. Expand comment.
11907 (REG_CLASS_NAMES): Ditto.
11908 (REG_CLASS_CONTENTS): Ditto.
11909
11910 2015-05-25 Uros Bizjak <ubizjak@gmail.com>
11911
11912 PR target/66274
11913 * config/i386/i386.c (print_reg): Only print "r" for TARGET_64BIT
11914 when LEGACY_INT_REGNO_P is processed.
11915
11916 2015-05-25 Alexander Monakov <amonakov@ispras.ru>
11917
11918 * config/i386/i386.c (ix86_function_ok_for_sibcall): Check flag_plt.
11919
11920 2015-05-25 Pitchumani Sivanupandi <pitchumani.s@atmel.com>
11921
11922 * config/avr/avr.c (avr_out_load_psi_reg_no_disp_tiny): Restore base
11923 register if not marked dead/unused, before return.
11924
11925 2015-05-24 Jan Hubicka <hubicka@ucw.cz>
11926
11927 PR lto/66180
11928 * ipa-devirt.c (type_with_linkage): Check that TYPE_STUB_DECL
11929 is set; check for assembler name at LTO time.
11930 (type_in_anonymous_namespace): Remove hacks, check that all
11931 anonymous types are called "<anon>"
11932 (odr_type_p): Simplify; add check for "<anon>"
11933 (odr_subtypes_equivalent): Add odr_type_p check.
11934 * tree.c (need_assembler_name_p): Even anonymous namespace needs
11935 assembler name.
11936
11937 2015-05-24 Jan Hubicka <hubicka@ucw.cz>
11938
11939 * ipa-utils.h (method_class_type): Remove.
11940 * cgraphunit.c (walk_polymorphic_call_targets): Use
11941 TYPE_METHOD_BASETYPE.
11942 * ipa-devirt.c (type_in_anonymous_namespace_p): Check that it is called
11943 on main variants only.
11944 (method_class_type): Remove.
11945 (update_type_inheritance_graph): Use TYPE_METHOD_BASETYPE.
11946 (build_type_inheritance_graph): Likewise.
11947 * ipa-icf.c (sem_function::equals_wpa): Likewise.
11948 * pa-polymorphic-call.c (decl_maybe_in_construction_p,
11949 check_stmt_for_type_change): Use TYPE_METHOD_BASETYPE.
11950
11951 2015-05-24 Jan Hubicka <hubicka@ucw.cz>
11952
11953 * tree.c (prototype_p, virtual_method_call_p, obj_type_ref_class,
11954 is_typedef_decl, typedef_variant_p): Constify.
11955 * tree.h (prototype_p, virtual_method_call_p, obj_type_ref_class,
11956 is_typedef_decl, typedef_variant_p): Constify.
11957
11958 2015-05-23 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
11959
11960 * defaults.h (gen_tablejump): New function.
11961 (HAVE_tablejump): Add default value.
11962 * expr.c: Adjust.
11963 * stmt.c: Likewise.
11964
11965 2015-05-23 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
11966
11967 * defaults.h (gen_store_multiple): New function.
11968 (HAVE_store_multiple): Add default value.
11969 * expr.c (move_block_from_reg): Adjust.
11970
11971 2015-05-23 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
11972
11973 * defaults.h (gen_load_multiple): New function.
11974 (HAVE_load_multiple): Add default value.
11975 * expr.c (move_block_to_reg): Adjust.
11976
11977 2015-05-23 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
11978
11979 * defaults.h (gen_mem_signal_fence): New function.
11980 (HAVE_mem_signal_fence): Add default value.
11981 * optabs.c: Adjust.
11982
11983 2015-05-23 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
11984
11985 * defaults.h (gen_memory_barrier): New function.
11986 (HAVE_memory_barrier): Add default value.
11987 * optabs.c: Adjust.
11988
11989 2015-05-23 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
11990
11991 * defaults.h (gen_mem_thread_fence): New function.
11992 (HAVE_mem_thread_fence): Add default definition.
11993 * optabs.c: Adjust.
11994
11995 2015-05-23 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
11996
11997 * combine.c (find_split_point): Check the value of HAVE_lo_sum
11998 instead of if it is defined.
11999 (combine_simplify_rtx): Likewise.
12000 * lra-constraints.c (process_address_1): Likewise.
12001 * config/darwin.c: Adjust.
12002 * genconfig.c (main): Always define HAVE_lo_sum.
12003
12004 2015-05-23 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
12005
12006 * genmatch.c (parser::parse_operation): Reject expanding
12007 operator-list inside 'for'.
12008
12009 2015-05-23 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
12010
12011 * genmatch.c (parser::parse_for): Reject iterator if used as
12012 operator-list.
12013
12014 2015-05-23 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
12015
12016 * genmatch.c (parser::parse_operator_list): Check for CPP_CLOSE_PAREN
12017 after end of id-list.
12018
12019 2015-05-22 Jan Hubicka <hubicka@ucw.cz>
12020
12021 * tree.c (gimple_canonical_types_compatible_p): Sanity check that
12022 we do not try to compute canonical type for type that does not need
12023 alias set.
12024 (verify_type): Drop FIXME for METHOD_TYPE, update FIXME for
12025 FUNCITON_TYPE.
12026 * tree.h (type_with_alias_set_p): New.
12027
12028 2015-05-22 Jan Hubicka <hubicka@ucw.cz>
12029
12030 * tree.c (gimple_canonical_types_compatible_p): Do not compare
12031 function attributes.
12032 (verify_type): Remove METHOD_TYPE FIXME; update FUNCTION_TYPE.
12033
12034 2015-05-22 Jim Wilson <jim.wilson@linaro.org>
12035
12036 * Makefile.in (check_gcc_parallelize): Delete.
12037 (lang_checks_parallelized): Update comment.
12038
12039 2015-05-22 Mikhail Maltsev <maltsevm@gmail.com>
12040
12041 PR rtl-optimization/66237
12042 * bb-reorder.c (fix_crossing_conditional_branches): Fix wrong
12043 location of an "as_a" cast.
12044
12045 2015-05-22 Jeff Law <law@redhat.com>
12046
12047 * config/pa/pa.md (non-canonical shift-add insns): Remove.
12048 (peepholes with non-canonical RTL sources): Remove.
12049 (peepholes for indexed stores of FP regs in integer modes): Match and
12050 generate canonical RTL.
12051
12052 2015-05-22 Marc Glisse <marc.glisse@inria.fr>
12053
12054 PR tree-optimization/63387
12055 * match.pd ((X /[ex] A) * A -> X): Remove unnecessary condition.
12056 ((x ord x) & (y ord y) -> (x ord y),
12057 (x ord x) & (x ord y) -> (x ord y)): New simplifications.
12058 * fold-const.c (tree_unary_nonnegative_warnv_p) <ABS_EXPR>: Handle
12059 vectors like scalars.
12060
12061 2015-05-22 Marc Glisse <marc.glisse@inria.fr>
12062
12063 * convert.c (convert_to_integer, convert_to_vector): Include the
12064 types in the error message.
12065
12066 2015-05-22 Marc Glisse <marc.glisse@inria.fr>
12067
12068 * match.pd ((x | y) & ~x -> y & ~x, (x & y) | ~x -> y | ~x): New
12069 simplifications.
12070
12071 2015-05-22 Jeff Law <law@redhat.com>
12072
12073 * config/pa/pa.md (integer_indexed_store splitters): Use
12074 mem_shadd_operand. Use ASHIFT rather than MULT in the resulting
12075 insns -- adjusting the constant 2nd operand accordingly.
12076
12077 * combine.c (try_combine): Canonicalize (plus (mult X pow2) Y) into
12078 (plus (ashift X log2) Y) if it is a split point.
12079
12080 * config/pa/pa.c (mem_shadd_or_shadd_rtx_p): New function factoredx
12081 out of hppa_legitimize_address to handle both forms of a multiply
12082 by 2, 4 or 8.
12083 (hppa_legitimize_address): Use mem_shadd_or_shadd_rtx_p.
12084 Always generate the ASHIFT variant as the result is not directly
12085 used in a MEM. Update comments and refactor slightly to improve
12086 readability.
12087
12088 2015-05-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
12089
12090 PR target/65491
12091 * config/aarch64/aarch64.c (aarch64_short_vector_p): Move above
12092 aarch64_composite_type_p. Remove check for aarch64_composite_type_p.
12093 (aarch64_composite_type_p): Return false if given type and mode are
12094 for a short vector.
12095
12096 2015-05-22 Richard Biener <rguenther@suse.de>
12097
12098 * tree-vectorizer.h (struct _slp_oprnd_info): Add second_pattern
12099 member.
12100 * tree-vect-loop.c (vect_analyze_loop_operations): Look at
12101 patterns when determining whether SLP is pure.
12102 (vect_is_slp_reduction): Remove check for pattern stmts.
12103 (vect_is_simple_reduction_1): Remove dead code.
12104 * tree-vect-slp.c (vect_create_oprnd_info): Initialize second_pattern.
12105 (vect_get_and_check_slp_defs): Pass in the stmt number.
12106 Allow the first def in a reduction to be not a pattern stmt when
12107 the rest of the stmts def are patterns.
12108 (vect_build_slp_tree_1): Allow tcc_expression codes like
12109 SAD_EXPR and DOT_PROD_EXPR.
12110 (vect_build_slp_tree): Adjust.
12111 (vect_analyze_slp): Refactor and move BB vect error message ...
12112 (vect_slp_analyze_bb_1): ... here.
12113
12114 2015-05-22 Aldy Hernandez <aldyh@redhat.com>
12115
12116 * tree-switch-conversion.c (build_one_array): Set DECL_IGNORED_P
12117 for CSWTCH temporary.
12118
12119 2015-05-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
12120
12121 * config/arm/arm.c (arm_new_rtx_costs): Handle UNSPEC_VOLATILE.
12122 (arm_unspec_cost): Allow UNSPEC_VOLATILE. Do not recurse inside
12123 unknown unspecs.
12124
12125 2015-05-22 Richard Biener <rguenther@suse.de>
12126
12127 PR tree-optimization/66251
12128 * tree-vect-stmts.c (vectorizable_conversion): Properly
12129 set STMT_VINFO_VEC_STMT even for the SLP case.
12130
12131 2015-05-22 Marek Polacek <polacek@redhat.com>
12132
12133 * doc/extend.texi: Use @pxref instead of @xref.
12134
12135 2015-05-22 hiraditya <hiraditya@msn.com>
12136
12137 * gimple.h (gimple_expr_type): Refactor to make it concise. Remove
12138 redundant if.
12139
12140 2015-05-22 Richard Biener <rguenther@suse.de>
12141
12142 PR tree-optimization/65701
12143 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment):
12144 Move peeling cost models into one place. Peel for alignment
12145 for single loads only if an aligned load is cheaper than
12146 an unaligned load.
12147
12148 2015-05-22 Marek Polacek <polacek@redhat.com>
12149
12150 PR c/47043
12151 * doc/extend.texi (Enumerator Attributes): New section.
12152 Document syntax of enumerator attributes.
12153
12154 2015-05-22 Richard Biener <rguenther@suse.de>
12155
12156 * tree-vect-loop.c (get_reduction_op): New function.
12157 (vect_model_reduction_cost): Use it, add reduc_index parameter.
12158 Make ready for BB reductions.
12159 (vect_create_epilog_for_reduction): Use get_reduction_op.
12160 (vectorizable_reduction): Init reduc_index to a valid value.
12161 Adjust vect_model_reduction_cost call.
12162 * tree-vect-slp.c (vect_get_constant_vectors): Use the proper
12163 operand for reduction defaults. Add SAD_EXPR support.
12164 Assert we have a neutral op for SLP reductions.
12165 * tree-vect-stmts.c (vect_mark_stmts_to_be_vectorized): When
12166 walking pattern stmt ops only recurse to SSA names.
12167
12168 2015-05-22 Richard Biener <rguenther@suse.de>
12169
12170 * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Replace
12171 assert with guard, remove check on detected reduction.
12172 (vect_recog_sad_pattern): Likewise.
12173 (vect_recog_widen_sum_pattern): Likewise.
12174
12175 2015-05-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
12176
12177 * config/aarch64/arm_neon.h (vaeseq_u8): Add __extension__ and
12178 __always_inline__ attribute.
12179 (vaesdq_u8): Likewise.
12180 (vaesmcq_u8): Likewise.
12181 (vaesimcq_u8): Likewise.
12182 (vsha1cq_u32): Likewise.
12183 (vsha1mq_u32): Likewise.
12184 (vsha1pq_u32): Likewise.
12185 (vsha1h_u32): Likewise.
12186 (vsha1su0q_u32): Likewise.
12187 (vsha1su1q_u32): Likewise.
12188 (vsha256hq_u32): Likewise.
12189 (vsha256h2q_u32): Likewise.
12190 (vsha256su0q_u32): Likewise.
12191 (vsha256su1q_u32): Likewise.
12192 (vmull_p64): Likewise.
12193 (vmull_high_p64): Likewise.
12194
12195 2015-05-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
12196
12197 * final.c (final_scan_insn): Don't check HAVE_peephole with the
12198 preprocessor.
12199 * output.h: Likewise.
12200 * genconfig.c (main): Alwways define HAVE_peephole.
12201 * genpeep.c: Don't emit checks of HAVE_peephole.
12202
12203 2015-05-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
12204
12205 * combine.c, expmed.c, expr.c, optabs.c optabs.h, toplev.c: DOn't
12206 check HAVE_conditional_move with the preprocessor.
12207
12208 2015-05-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
12209
12210 * genconfig.c (main): Always define HAVE_conditional_move.
12211 * combine.c, expmed.c, expr.c, ifcvt.c, optabs.c, optabs.h,
12212 toplev.c, tree-ssa-phiopt.c: Don't check if HAVE_conditional_move
12213 is defined.
12214
12215 2015-05-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
12216
12217 * combine.c, df-problems.c, df-scan.c, emit-rtl.c, reginfo.c,
12218 reload.c, rtlanal.c: Remove comparison of ARG_FRAME_POINTER_REGNUM
12219 and FRAME_POINTER_REGNUM with the preprocessor.
12220
12221 2015-05-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
12222
12223 * defaults.h: Add default for STACK_PUSH_CODE.
12224 * expr.c: Don't redefine STACK_PUSH_CODE.
12225 * recog.c: Likewise.
12226
12227 2015-05-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
12228
12229 * builtins.c, dwarf2cfi.c, explow.c, expr.c, recog.c,
12230 sched-deps.c: Use if instead of preprocessor checks with
12231 STACK_GROWS_DOWNWARD.
12232
12233 2015-05-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
12234
12235 * *.c: Check the value of STACK_GROWS_DOWNWARD rather than if it
12236 is defined.
12237 * config/**/*.h: Define STACK_GROWS_DOWNWARD to an integer.
12238 * defaults.h: Provide default for STACK_GROWS_DOWNWARD.
12239 * doc/tm.texi.in: Update references to STACK_GROWS_DOWNWARD.
12240 * doc/tm.texi: Regenerate.
12241
12242 2015-05-21 H.J. Lu <hongjiu.lu@intel.com>
12243
12244 PR target/66232
12245 * config/i386/constraints.md (Bg): New constraint for GOT memory
12246 operand.
12247 * config/i386/i386.md (*call_got_x32): New pattern.
12248 (*call_value_got_x32): Likewise.
12249 * config/i386/predicates.md (GOT_memory_operand): New predicate.
12250
12251 2015-05-21 Jakub Jelinek <jakub@redhat.com>
12252
12253 PR tree-optimization/66233
12254 * match.pd (ocvt (icvt@1 @0)): Don't handle vector types.
12255 Simplify.
12256
12257 2015-05-21 Jeff Law <law@redhat.com>
12258
12259 * config/pa/pa.md (add-with-constant splitter): Use ASHIFT rather
12260 than MULT for shadd sequences.
12261
12262 2015-05-08 Jan Hubicka <hubicka@ucw.cz>
12263
12264 * alias.c (alias_stats): New static var.
12265 (alias_sets_conflict_p, alias_sets_must_conflict_p): Update stats.
12266 (dump_alias_stats_in_alias_c): New function.
12267 * alias.h (dump_alias_stats_in_alias_c): Declare.
12268 * tree-ssa-alias.c (dump_alias_stats): Call it.
12269
12270 2015-05-08 Michael Matz <matz@suse.de>
12271
12272 * tree-vectorizer.h (struct _stmt_vec_info): Rename stride_load_p
12273 to strided_p.
12274 (STMT_VINFO_STRIDE_LOAD_P): Rename to ...
12275 (STMT_VINFO_STRIDED_P): ... this.
12276 * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Adjust.
12277 (vect_verify_datarefs_alignment): Likewise.
12278 (vect_enhance_data_refs_alignment): Likewise.
12279 (vect_analyze_data_ref_access): Likewise.
12280 (vect_analyze_data_refs): Accept strided stores.
12281 * tree-vect-stmts.c (vect_model_store_cost): Count strided stores.
12282 (vect_model_load_cost): Adjust for macro rename.
12283 (vectorizable_mask_load_store): Likewise.
12284 (vectorizable_load): Likewise.
12285 (vectorizable_store): Open code strided stores.
12286
12287 2015-05-21 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
12288
12289 * doc/sourcebuild.texi (7.2.3.9 Other hardware attributes):
12290 Document sqrt_insn.
12291
12292 2015-05-21 Richard Biener <rguenther@suse.de>
12293
12294 PR c++/66211
12295 * match.pd: Guard pattern optimzing (int)(float)int
12296 conversions to apply only on GIMPLE.
12297
12298 2015-05-21 Jeff Law <law@redhat.com>
12299
12300 * combine.c (find_split_point): Handle ASHIFT like MULT to encourage
12301 multiply-accumulate/shift-add insn generation.
12302
12303 2015-05-21 Oleg Endo <olegendo@gcc.gnu.org>
12304
12305 PR target/54236
12306 * config/sh/sh.md (*round_int_even): Reject pattern if operands[0] and
12307 operands[1] are the same.
12308
12309 2015-05-21 Ilya Enkovich <enkovich.gnu@gmail.com>
12310
12311 PR middle-end/66221
12312 * ipa-chkp.c (chkp_copy_function_type_adding_bounds): Use
12313 build_distinct_type_copy to copy bounds.
12314
12315 2015-05-21 Thomas Schwinge <thomas@codesourcery.com>
12316
12317 * genrecog.c (MAX_DEPTH, MIN_NUM_STATEMENTS, MAX_NUM_STATEMENTS):
12318 Change to unsigned int.
12319
12320 2015-05-20 Jeff Law <law@redhat.com>
12321
12322 * config/pa/pa.c (pa_print_operand): New 'o' output modifier.
12323 (pa_mem_shadd_constant_p): Renamed from pa_shadd_constant_p.
12324 (pa_shadd_constant_p): Allow constants for shadd insns rather
12325 than valid scaling constants for memory addresses.
12326 * config/pa/pa-protos.h (pa_mem_shadd_constant_p): Add prototype.
12327 * config/pa/predicates.md (mem_shadd_operand): New predicate.
12328 * config/pa/pa.md (shift-add insns using MULT): Use mem_shadd_operand.
12329 (shift-add insns using ASHIFT): New patterns.
12330
12331 2015-05-20 Mikhail Maltsev <maltsevm@gmail.com>
12332
12333 * bb-reorder.c (set_edge_can_fallthru_flag): Use rtx_jump_insn where
12334 feasible.
12335 (fix_up_fall_thru_edges): Likewise.
12336 (fix_crossing_conditional_branches): Likewise. Promote jump targets
12337 from to rtx_insn to rtx_code_label where feasible.
12338 * bt-load.c (move_btr_def): Remove as-a cast of the value returned by
12339 gen_move_insn (returned type changed to rtx_insn).
12340 * builtins.c (expand_errno_check): Fix arguments of
12341 do_compare_rtx_and_jump (now expects rtx_code_label).
12342 (expand_builtin_acc_on_device): Likewise.
12343 * cfgcleanup.c (try_simplify_condjump): Add cast when calling
12344 invert_jump (now exprects rtx_jump_insn).
12345 * cfgexpand.c (label_rtx_for_bb): Promote return type to rtx_code_label.
12346 (construct_init_block): Use rtx_code_label.
12347 * cfgrtl.c (block_label): Promote return type to rtx_code_label.
12348 (try_redirect_by_replacing_jump): Use cast to rtx_jump_insn when
12349 calling redirect_jump.
12350 (patch_jump_insn): Likewise.
12351 (redirect_branch_edge): Likewise.
12352 (force_nonfallthru_and_redirect): Likewise.
12353 (fixup_reorder_chain): Explicitly use rtx_jump_insn instead of rtx_insn
12354 when suitable.
12355 (rtl_lv_add_condition_to_bb): Update call of do_compare_rtx_and_jump.
12356 * cfgrtl.h: Promote return type of block_label to rtx_code_label.
12357 * config/bfin/bfin.c (hwloop_optimize): Fix call of emit_label_before.
12358 * config/i386/i386.c (ix86_emit_cmove): Explicitly use rtx_code_label
12359 to store the value retured by gen_label_rtx.
12360 * config/mips/mips.c (mips16_split_long_branches): Promote rtx_insn to
12361 rtx_jump_insn.
12362 * config/sh/sh.c (gen_far_branch): Likewise. Fix call of invert_jump.
12363 (split_branches): Fix calls of redirect_jump.
12364 * dojump.c (jumpifnot): Promote argument type from rtx to
12365 rtx_code_label.
12366 (jumpifnot_1): Likewise.
12367 (jumpif): Likewise.
12368 (jumpif_1): Likewise.
12369 (do_jump_1): Likewise.
12370 (do_jump): Likewise. Use rtx_code_label when feasible.
12371 (do_jump_by_parts_greater_rtx): Likewise.
12372 (do_jump_by_parts_zero_rtx): Likewise.
12373 (do_jump_by_parts_equality_rtx): Likewise.
12374 (do_compare_rtx_and_jump): Likewise.
12375 * dojump.h: Update function prototypes.
12376 * dse.c (emit_inc_dec_insn_before): Remove case (gen_move_insn now
12377 returns rtx_insn).
12378 * emit-rtl.c (emit_jump_insn_before_noloc): Promote return type to
12379 rtx_jump_insn.
12380 (emit_label_before): Likewise.
12381 (emit_jump_insn_after_noloc): Likewise.
12382 (emit_jump_insn_after_setloc): Likewise.
12383 (emit_jump_insn_after): Likewise
12384 (emit_jump_insn_before_setloc): Likewise.
12385 (emit_jump_insn_before): Likewise.
12386 (emit_label_before): Promote return type to rtx_code_label.
12387 (emit_label): Likewise.
12388 * except.c (sjlj_emit_dispatch_table): Use jump_target_rtx.
12389 * explow.c (emit_stack_save): Use gen_move_insn_uncast instead of
12390 gen_move_insn.
12391 (emit_stack_restore): Likewise.
12392 * expmed.c (emit_store_flag_force): Fix calls of do_compare_rtx_and_jump.
12393 (do_cmp_and_jump): Likewise.
12394 * expr.c (expand_expr_real_2): Likewise. Promote some local variables
12395 from rtx to rtx_code_label.
12396 (gen_move_insn_uncast): New function.
12397 * expr.h: Update return type of gen_move_insn (promote to rtx_insn).
12398 * function.c (convert_jumps_to_returns): Fix call of redirect_jump.
12399 * gcse.c (pre_insert_copy_insn): Use rtx_insn instead of rtx.
12400 * ifcvt.c (dead_or_predicable): Use rtx_jump_insn when calling
12401 invert_jump_1 and redirect_jump_1.
12402 * internal-fn.c (expand_arith_overflow_result_store): Fix call of
12403 do_compare_rtx_and_jump.
12404 (expand_addsub_overflow): Likewise.
12405 (expand_neg_overflow): Likewise.
12406 (expand_mul_overflow): Likewise.
12407 * ira.c (split_live_ranges_for_shrink_wrap): Use rtx_insn for
12408 return value of gen_move_insn.
12409 * jump.c (redirect_jump): Promote argument from rtx to rtx_jump_insn.
12410 * loop-doloop.c (add_test): Use rtx_code_label.
12411 (doloop_modify): Likewise.
12412 (doloop_optimize): Likewise.
12413 * loop-unroll.c (compare_and_jump_seq): Promote rtx to rtx_code_label.
12414 * lra-constraints.c (emit_spill_move): Remove cast of value returned
12415 by gen_move_insn.
12416 (inherit_reload_reg): Add cast when calling dump_insn_slim.
12417 (split_reg): Likewise.
12418 * modulo-sched.c (schedule_reg_moves): Remove cast of value returned by
12419 gen_move_insn.
12420 * optabs.c (expand_binop_directly): Remove casts of values returned by
12421 maybe_gen_insn.
12422 (expand_unop_direct): Likewise.
12423 (expand_abs): Likewise.
12424 (maybe_emit_unop_insn): Likewise.
12425 (maybe_gen_insn): Promote return type to rtx_insn.
12426 * optabs.h: Update prototype of maybe_gen_insn.
12427 * postreload-gcse.c (eliminate_partially_redundant_load): Remove
12428 redundant cast.
12429 * recog.c (struct peep2_insn_data): Promote type of insn field to
12430 rtx_insn.
12431 (peep2_reinit_state): Use NULL instead of NULL_RTX.
12432 (peep2_attempt): Remove casts of insn in peep2_insn_data.
12433 (peep2_fill_buffer): Promote argument from rtx to rtx_insn
12434 * recog.h (struct insn_gen_fn): Promote return types of function
12435 pointers and operator ().from rtx to rtx_insn.
12436 * reorg.c (fill_simple_delay_slots): Promote rtx_insn to rtx_jump_insn.
12437 (fill_eager_delay_slots): Likewise.
12438 (relax_delay_slots): Likewise.
12439 (make_return_insns): Likewise.
12440 (dbr_schedule): Likewise.
12441 (optimize_skips): Likewise.
12442 (reorg_redirect_jump): Likewise.
12443 (fill_slots_from_thread): Likewise.
12444 * reorg.h: Update prototypes.
12445 * resource.c (find_dead_or_set_registers): Use dyn_cast to
12446 rtx_jump_insn instead of check. Use it's jump_target method.
12447 * rtl.h (rtx_jump_insn::jump_label): Define new method.
12448 (rtx_jump_insn::jump_target): Define new method.
12449 (rtx_jump_insn::set_jump_target): Define new method.
12450 * rtlanal.c (tablejump_p): Promote type of one local variable.
12451 * sched-deps.c (sched_analyze_2): Promote rtx to rtx_insn_list.
12452 (sched_analyze_insn): Likewise.
12453 * sched-vis.c (print_insn_with_notes): Promote rtx to rtx_insn.
12454 (print_insn): Likewise.
12455 * stmt.c (label_rtx): Promote return type to rtx_insn.
12456 (force_label_rtx): Likewise.
12457 (jump_target_rtx): Define new function.
12458 (expand_label): Use it, get rid of one cast.
12459 (expand_naked_return): Promote rtx to rtx_code_label.
12460 (do_jump_if_equal): Fix do_compare_rtx_and_jump call.
12461 (expand_case): Use rtx_code_label instread of rtx where feasible.
12462 (expand_sjlj_dispatch_table): Likewise.
12463 (emit_case_nodes): Likewise.
12464 * stmt.h: Declare jump_target_rtx. Update prototypes. Fix comments.
12465 * store-motion.c (insert_store): Make use of new return type of
12466 gen_move_insn and remove a cast.
12467 (replace_store_insn): Likewise.
12468
12469 2015-05-20 Max Filippov <jcmvbkbc@gmail.com>
12470
12471 * config/xtensa/xtensa.c (init_alignment_context): Replace MULT
12472 by BITS_PER_UNIT with ASHIFT by exact_log2 (BITS_PER_UNIT).
12473
12474 2015-05-20 Jeff Law <law@redhat.com>
12475
12476 * tree-ssa-threadupdate.c (mark_threaded_blocks): Properly
12477 dispose of the jump thread path when the jump threading
12478 opportunity is cancelled.
12479
12480 2015-05-20 Manuel López-Ibáñez <manu@gcc.gnu.org>
12481
12482 * diagnostic.c (diagnostic_print_caret_line): Fix off-by-one error
12483 when printing the caret character.
12484
12485 2015-05-20 Marek Polacek <polacek@redhat.com>
12486
12487 * cfgexpand.c (expand_debug_expr): Use UNARY_CLASS_P.
12488
12489 2015-05-20 Marek Polacek <polacek@redhat.com>
12490
12491 * expr.c (expand_cond_expr_using_cmove): Use COMPARISON_CLASS_P.
12492 * gimple-expr.c (gimple_cond_get_ops_from_tree): Likewise.
12493 * gimple-fold.c (canonicalize_bool): Likewise.
12494 (same_bool_result_p): Likewise.
12495 * tree-if-conv.c (parse_predicate): Likewise.
12496
12497 2015-05-20 Marek Polacek <polacek@redhat.com>
12498
12499 * gimple-fold.c (fold_const_aggregate_ref_1): Use DECL_P.
12500 * gimplify.c (gimplify_modify_expr_rhs): Likewise.
12501
12502 2015-05-20 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
12503
12504 * config/aarch64/aarch64.c (aarch64_class_max_nregs):
12505 Use UNITS_PER_VREG and UNITS_PER_WORD instead of their direct
12506 values.
12507
12508 2015-05-20 Robert Suchanek <robert.suchanek@imgtec.com>
12509
12510 * config/mips/mips.h (micromips_globals): Declare.
12511
12512 2015-05-20 David Malcolm <dmalcolm@redhat.com>
12513
12514 * timevar.def (TV_INITIALIZE_RTL): New.
12515 * toplev.c (initialize_rtl): Use an auto_timevar to account this
12516 function's time to TV_INITIALIZE_RTL.
12517
12518 2015-05-20 Ilya Enkovich <enkovich.gnu@gmail.com>
12519
12520 * tree-chkp.c (chkp_maybe_copy_and_register_bounds): Remove useless
12521 gimple_build_nop calls.
12522 (chkp_find_bounds_for_elem): Likewise.
12523 (chkp_get_zero_bounds): Likewise.
12524 (chkp_get_none_bounds): Likewise.
12525 (chkp_get_bounds_by_definition): Likewise.
12526 (chkp_generate_extern_var_bounds): Likewise.
12527 (chkp_get_bounds_for_decl_addr): Likewise.
12528 (chkp_get_bounds_for_string_cst): Likewise.
12529
12530 2015-05-20 Bin Cheng <bin.cheng@arm.com>
12531
12532 PR tree-optimization/65447
12533 * tree-ssa-loop-ivopts.c (struct iv_use): New fields.
12534 (dump_use, dump_uses): Support to dump sub use.
12535 (record_use): New parameters to support sub use. Remove call to
12536 dump_use.
12537 (record_sub_use, record_group_use): New functions.
12538 (compute_max_addr_offset, split_all_small_groups): New functions.
12539 (group_address_uses, rewrite_use_address): New functions.
12540 (strip_offset): New declaration.
12541 (find_interesting_uses_address): Call record_group_use.
12542 (add_candidate): New assertion.
12543 (infinite_cost_p): Move definition forward.
12544 (add_costs): Check INFTY cost and return immediately.
12545 (get_computation_cost_at): Clear setup cost and dependent bitmap
12546 for sub uses.
12547 (determine_use_iv_cost_address): Compute cost for sub uses.
12548 (rewrite_use_address_1): Rename from old rewrite_use_address.
12549 (free_loop_data): Free sub uses.
12550 (tree_ssa_iv_optimize_loop): Call group_address_uses.
12551
12552 2015-05-20 Kugan Vivekanandarajah <kuganv@linaro.org>
12553 Jim Wilson <jim.wilson@linaro.org>
12554
12555 * config/arm/aarch-common-protos.h (struct mem_cost_table): Added
12556 new fields loadv and storev.
12557 * config/aarch64/aarch64-cost-tables.h (thunderx_extra_costs):
12558 Initialize loadv and storev.
12559 * config/arm/aarch-cost-tables.h (generic_extra_costs): Likewise.
12560 (cortexa53_extra_costs): Likewise.
12561 (cortexa57_extra_costs): Likewise.
12562 (xgene1_extra_costs): Likewise.
12563 * config/aarch64/aarch64.c (aarch64_rtx_costs): Update vector
12564 rtx_costs.
12565
12566 2015-05-20 Kugan Vivekanandarajah <kuganv@linaro.org>
12567
12568 * config/arm/arm.c (cortexa9_extra_costs): Initialize loadv and
12569 storev.
12570 (cortexa8_extra_costs): Likewise.
12571 (cortexa5_extra_costs): Likewise.
12572 (cortexa7_extra_costs): Likewise.
12573 (cortexa12_extra_costs): Likewise.
12574 (cortexa15_extra_costs): Likewise.
12575 (v7m_extra_costs): Likewise.
12576
12577 2015-05-20 Jeff Law <law@redhat.com>
12578
12579 * tree-ssa-threadupdate.c (thread_single_edge): Use delete_jump_thread
12580 instead of open-coded version. Also delete the jump thread created
12581 within this function.
12582
12583 2015-05-20 Alan Modra <amodra@gmail.com>
12584
12585 * config/rs6000/rs6000.c (rs6000_emit_allocate_stack): Return
12586 stack adjusting insn. Formatting.
12587 (rs6000_emit_prologue): Track stack adjusting insn, and use of
12588 r12. If possible, emit first -fsplit-stack arg pointer insn
12589 before stack adjust. Don't use r12 to save cr if split-stack.
12590
12591 2015-05-20 Alan Modra <amodra@gmail.com>
12592
12593 * common/config/rs6000/rs6000-common.c (TARGET_SUPPORTS_SPLIT_STACK):
12594 Define.
12595 (rs6000_supports_split_stack): New function.
12596 * gcc/config/rs6000/rs6000.c (machine_function): Add
12597 split_stack_arg_pointer.
12598 (TARGET_EXTRA_LIVE_ON_ENTRY, TARGET_INTERNAL_ARG_POINTER): Define.
12599 (setup_incoming_varargs): Use crtl->args.internal_arg_pointer
12600 rather than virtual_incoming_args_rtx.
12601 (rs6000_va_start): Likewise.
12602 (split_stack_arg_pointer_used_p): New function.
12603 (rs6000_emit_prologue): Set up arg pointer for -fsplit-stack.
12604 (morestack_ref): New var.
12605 (gen_add3_const, rs6000_expand_split_stack_prologue,
12606 rs6000_internal_arg_pointer, rs6000_live_on_entry,
12607 rs6000_split_stack_space_check): New functions.
12608 (rs6000_elf_file_end): Call file_end_indicate_split_stack.
12609 * gcc/config/rs6000/rs6000.md (UNSPEC_STACK_CHECK): Define.
12610 (UNSPECV_SPLIT_STACK_RETURN): Define.
12611 (split_stack_prologue, load_split_stack_limit,
12612 load_split_stack_limit_di, load_split_stack_limit_si,
12613 split_stack_return, split_stack_space_check): New expands and insns.
12614 * gcc/config/rs6000/rs6000-protos.h
12615 (rs6000_expand_split_stack_prologue): Declare.
12616 (rs6000_split_stack_space_check): Declare.
12617
12618 2015-05-20 Alan Modra <amodra@gmail.com>
12619
12620 * config/rs6000/rs6000.c (struct rs6000_stack): Correct comments.
12621 (direct_return): Test vrsave_size rather than vrsave_mask.
12622 (rs6000_emit_prologue): Likewise. Remove redundant altivec tests.
12623 (rs6000_emit_epilogue): Likewise.
12624
12625 2015-05-20 Alan Modra <amodra@gmail.com>
12626
12627 * config/rs6000/rs6000.c (rs6000_stack_info): Don't zero offsets
12628 when not saving registers.
12629 (debug_stack_info): Adjust to omit printing unused offsets,
12630 as before.
12631 (rs6000_emit_epilogue): Adjust use_backchain_to_restore_sp
12632 expression.
12633
12634 2015-05-19 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
12635
12636 PR c++/65835
12637 * config/i386/winnt.c (struct wrapped_symbol_hasher): Change
12638 value_type to const char *.
12639
12640 2015-05-19 Sandra Loosemore <sandra@codesourcery.com>
12641
12642 * config.gcc [powerpc*-*-linux*]: Allow --enable-targets=all
12643 to build a biarch toolchain again.
12644
12645 2015-05-19 Jan Hubicka <hubicka@ucw.cz>
12646
12647 * ipa-devirt.c (type_in_anonymous_namespace_p): Return true
12648 or implicit declarations.
12649 (odr_type_p): Check that TYPE_NAME is TYPE_DECL before looking
12650 into it.
12651 (get_odr_type): Check type has linkage before adding bases.
12652 (register_odr_type): Check that type has linkage before adding it.
12653 (type_known_to_have_no_deriavations_p): Rename to ..
12654 (type_known_to_have_no_derivations_p): This one.
12655 * ipa-utils.h (type_known_to_have_no_deriavations_p): Rename to ..
12656 (type_known_to_have_no_derivations_p): This one.
12657 * ipa-polymorphic-call.c
12658 (ipa_polymorphic_call_context::restrict_to_inner_type): Check that
12659 type has linkage.
12660
12661 2015-05-19 Eric Botcazou <ebotcazou@adacore.com>
12662
12663 * stor-layout.c (finalize_type_size): Use AGGREGATE_TYPE_P.
12664 (layout_type): Use RECORD_OR_UNION_TYPE_P.
12665
12666 2015-05-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
12667
12668 * config/s390/s390.c (s390_vector_bool_type_p): New function.
12669 (s390_invalid_binary_op): New function.
12670 (TARGET_INVALID_BINARY_OP): Define macro.
12671
12672 2015-05-19 David Sherwood <david.sherwood@arm.com>
12673
12674 * loop-invariant.c (create_new_invariant): Don't calculate address cost
12675 if mode is not a scalar integer.
12676 (get_inv_cost): Increase computational cost for unused invariants.
12677
12678 2015-05-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
12679
12680 * config.gcc: Add vecintrin.h to extra_headers. Add s390-c.o to
12681 c_target_objs and cxx_target_objs. Add t-s390 to tmake_file.
12682 * config/s390/s390-builtin-types.def: New file.
12683 * config/s390/s390-builtins.def: New file.
12684 * config/s390/s390-builtins.h: New file.
12685 * config/s390/s390-c.c: New file.
12686 * config/s390/s390-modes.def: Add modes CCVEQANY, CCVH,
12687 CCVHANY, CCVHU, CCVHUANY, CCVFHANY, CCVFHEANY.
12688 * config/s390/s390-protos.h (s390_expand_vec_compare_cc)
12689 (s390_cpu_cpp_builtins, s390_register_target_pragmas): Add
12690 prototypes.
12691 * config/s390/s390.c (s390-builtins.h, s390-builtins.def):
12692 Include.
12693 (flags_builtin, flags_overloaded_builtin_var, s390_builtin_types)
12694 (s390_builtin_fn_types, s390_builtin_decls, code_for_builtin): New
12695 variable definitions.
12696 (s390_const_operand_ok): New function.
12697 (s390_expand_builtin): Rewrite.
12698 (s390_init_builtins): New function.
12699 (s390_handle_vectorbool_attribute): New function.
12700 (s390_attribute_table): Add s390_vector_bool attribute.
12701 (s390_match_ccmode_set): Handle new cc modes CCVH, CCVHU.
12702 (s390_branch_condition_mask): Generate masks for new modes.
12703 (s390_expand_vec_compare_cc): New function.
12704 (s390_mangle_type): Add mangling for vector bool types.
12705 (enum s390_builtin): Remove.
12706 (s390_atomic_assign_expand_fenv): Rename constants for sfpc and
12707 efpc builtins.
12708 * config/s390/s390.h (TARGET_CPU_CPP_BUILTINS): Call
12709 s390_cpu_cpp_builtins.
12710 (REGISTER_TARGET_PRAGMAS): New macro.
12711 * config/s390/s390.md: Define more UNSPEC_VEC_* constants.
12712 (insn_cmp mode attribute): Add new CC modes.
12713 (s390_sfpc, s390_efpc): Rename patterns to sfpc and efpc.
12714 (lcbb): New pattern definition.
12715 * config/s390/s390intrin.h: Include vecintrin.h.
12716 * config/s390/t-s390: New file.
12717 * config/s390/vecintrin.h: New file.
12718 * config/s390/vector.md: Include vx-builtins.md.
12719 * config/s390/vx-builtins.md: New file.S/390 zvector builtin
12720 support.
12721
12722 2015-05-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
12723
12724 * config/s390/s390-modes.def: Add new modes CCVEQ, CCVFH, and
12725 CCVFHE.
12726 * config/s390/s390.c (s390_match_ccmode_set): Handle new modes.
12727 (s390_select_ccmode): Likewise.
12728 (s390_canonicalize_comparison): Swap operands if necessary.
12729 (s390_expand_vec_compare_scalar): Expand DFmode compare using
12730 single element vector instructions.
12731 (s390_emit_compare): Call s390_expand_vec_compare_scalar.
12732 (s390_branch_condition_mask): Generate CC masks for the new modes.
12733 * config/s390/s390.md (v0, vf, vd): New mode attributes.
12734 (VFCMP, asm_fcmp, insn_cmp): New mode iterator and attributes.
12735 (*vec_cmp<insn_cmp>df_cconly, *fixuns_truncdfdi2_z13)
12736 (*fix_trunc<BFP:mode><GPR:mode>2_bfp, *floatunsdidf2_z13)
12737 (*floatuns<GPR:mode><FP:mode>2, *extendsfdf2_z13)
12738 (*extend<DSF:mode><BFP:mode>2): New insn definition.
12739 (fix_trunc<BFP:mode><GPR:mode>2_bfp, loatuns<GPR:mode><FP:mode>2)
12740 (extend<DSF:mode><BFP:mode>2): Turn into expander.
12741 (floatdi<mode>2, truncdfsf2, add<mode>3, sub<mode>3, mul<mode>3)
12742 (div<mode>3, *neg<mode>2, *abs<mode>2, *negabs<mode>2)
12743 (sqrt<mode>2): Add vector instruction.
12744
12745 2015-05-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
12746
12747 * config/s390/constraints.md (j00, jm1, jxx, jyy, v): New
12748 constraints.
12749 * config/s390/predicates.md (const0_operand, constm1_operand)
12750 (constable_operand): Accept vector operands.
12751 * config/s390/s390-modes.def: Add supported vector modes.
12752 * config/s390/s390-protos.h (s390_cannot_change_mode_class)
12753 (s390_function_arg_vector, s390_contiguous_bitmask_vector_p)
12754 (s390_bytemask_vector_p, s390_expand_vec_strlen)
12755 (s390_expand_vec_compare, s390_expand_vcond)
12756 (s390_expand_vec_init): Add prototypes.
12757 * config/s390/s390.c (VEC_ARG_NUM_REG): New macro.
12758 (s390_vector_mode_supported_p): New function.
12759 (s390_contiguous_bitmask_p): Mask out the irrelevant bits.
12760 (s390_contiguous_bitmask_vector_p): New function.
12761 (s390_bytemask_vector_p): New function.
12762 (s390_split_ok_p): Vector regs don't work either.
12763 (regclass_map): Add VEC_REGS.
12764 (s390_legitimate_constant_p): Handle vector constants.
12765 (s390_cannot_force_const_mem): Handle CONST_VECTOR.
12766 (legitimate_reload_vector_constant_p): New function.
12767 (s390_preferred_reload_class): Handle CONST_VECTOR.
12768 (s390_reload_symref_address): Likewise.
12769 (s390_secondary_reload): Vector memory instructions only support
12770 short displacements. Rename reload*_nonoffmem* to reload*_la*.
12771 (s390_emit_ccraw_jump): New function.
12772 (s390_expand_vec_strlen): New function.
12773 (s390_expand_vec_compare): New function.
12774 (s390_expand_vcond): New function.
12775 (s390_expand_vec_init): New function.
12776 (s390_dwarf_frame_reg_mode): New function.
12777 (print_operand): Handle addresses with 'O' and 'R' constraints.
12778 (NR_C_MODES, constant_modes): Add vector modes.
12779 (s390_output_pool_entry): Handle vector constants.
12780 (s390_hard_regno_mode_ok): Handle vector registers.
12781 (s390_class_max_nregs): Likewise.
12782 (s390_cannot_change_mode_class): New function.
12783 (s390_invalid_arg_for_unprototyped_fn): New function.
12784 (s390_function_arg_vector): New function.
12785 (s390_function_arg_float): Remove size variable.
12786 (s390_pass_by_reference): Handle vector arguments.
12787 (s390_function_arg_advance): Likewise.
12788 (s390_function_arg): Likewise.
12789 (s390_return_in_memory): Vector values are returned in a VR if
12790 possible.
12791 (s390_function_and_libcall_value): Handle vector arguments.
12792 (s390_gimplify_va_arg): Likewise.
12793 (s390_call_saved_register_used): Consider the arguments named.
12794 (s390_conditional_register_usage): Disable v16-v31 for non-vec
12795 targets.
12796 (s390_preferred_simd_mode): New function.
12797 (s390_support_vector_misalignment): New function.
12798 (s390_vector_alignment): New function.
12799 (TARGET_STRICT_ARGUMENT_NAMING, TARGET_DWARF_FRAME_REG_MODE)
12800 (TARGET_VECTOR_MODE_SUPPORTED_P)
12801 (TARGET_INVALID_ARG_FOR_UNPROTOTYPED_FN)
12802 (TARGET_VECTORIZE_PREFERRED_SIMD_MODE)
12803 (TARGET_VECTORIZE_SUPPORT_VECTOR_MISALIGNMENT)
12804 (TARGET_VECTOR_ALIGNMENT): Define target macro.
12805 * config/s390/s390.h (FUNCTION_ARG_PADDING): Define macro.
12806 (FIRST_PSEUDO_REGISTER): Increase value.
12807 (VECTOR_NOFP_REGNO_P, VECTOR_REGNO_P, VECTOR_NOFP_REG_P)
12808 (VECTOR_REG_P): Define macros.
12809 (FIXED_REGISTERS, CALL_USED_REGISTERS)
12810 (CALL_REALLY_USED_REGISTERS, REG_ALLOC_ORDER)
12811 (HARD_REGNO_CALL_PART_CLOBBERED, REG_CLASS_NAMES)
12812 (FUNCTION_ARG_REGNO_P, FUNCTION_VALUE_REGNO_P, REGISTER_NAMES):
12813 Add vector registers.
12814 (CANNOT_CHANGE_MODE_CLASS): Call C function.
12815 (enum reg_class): Add VEC_REGS, ADDR_VEC_REGS, GENERAL_VEC_REGS.
12816 (SECONDARY_MEMORY_NEEDED): Allow SF<->SI mode moves without
12817 memory.
12818 (DBX_REGISTER_NUMBER, FIRST_VEC_ARG_REGNO, LAST_VEC_ARG_REGNO)
12819 (SHORT_DISP_IN_RANGE, VECTOR_STORE_FLAG_VALUE): Define macro.
12820 * config/s390/s390.md (UNSPEC_VEC_*): New constants.
12821 (VR*_REGNUM): New constants.
12822 (ALL): New mode iterator.
12823 (INTALL): Remove mode iterator.
12824 Include vector.md.
12825 (movti): Implement TImode moves for VRs.
12826 Disable TImode splitter for VR targets.
12827 Implement splitting TImode GPR<->VR moves.
12828 (reload*_tomem_z10, reload*_toreg_z10): Replace INTALL with ALL.
12829 (reload<mode>_nonoffmem_in, reload<mode>_nonoffmem_out): Rename to
12830 reload<mode>_la_in, reload<mode>_la_out.
12831 (*movdi_64, *movsi_zarch, *movhi, *movqi, *mov<mode>_64dfp)
12832 (*mov<mode>_64, *mov<mode>_31): Add vector instructions.
12833 (TD/TF mode splitter): Enable for GPRs only (formerly !FP).
12834 (mov<mode> SF SD): Prefer lder, lde for loading.
12835 Add lrl and strl instructions.
12836 Add vector instructions.
12837 (strlen<mode>): Rename old strlen<mode> to strlen_srst<mode>.
12838 Call s390_expand_vec_strlen on z13.
12839 (*cc_to_int): Change predicate to nonimmediate_operand.
12840 (addti3): Rename to *addti3. New expander.
12841 (subti3): Rename to *subti3. New expander.
12842 * config/s390/vector.md: New file.
12843
12844 2015-05-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
12845
12846 * common/config/s390/s390-common.c (processor_flags_table): Add
12847 z13.
12848 * config.gcc: Add z13.
12849 * config/s390/s390-opts.h (enum processor_type): Add
12850 PROCESSOR_2964_Z13.
12851 * config/s390/s390.c (s390_adjust_priority): Check for
12852 PROCESSOR_2964_Z13.
12853 (s390_reorg): Likewise.
12854 (s390_sched_reorder): Likewise.
12855 (s390_sched_variable_issue): Likewise.
12856 (s390_loop_unroll_adjust): Likewise.
12857 (s390_option_override): Likewise. Default to -mvx when available.
12858 * config/s390/s390.h (enum processor_flags): Add PF_Z13 and PF_VX.
12859 (TARGET_CPU_Z13, TARGET_CPU_VX, TARGET_Z13, TARGET_VX)
12860 (TARGET_VX_ABI): Define macros.
12861 macros.
12862 (TARGET_DEFAULT): Add MASK_OPT_VX.
12863 * config/s390/s390.md ("cpu" attribute): Add z13.
12864 ("cpu_facility" attribute): Add vec.
12865 * config/s390/s390.opt (processor_type): Add z13.
12866 (mvx): New options.
12867 * doc/invoke.texi: Add z13 option for -march.
12868
12869 2015-05-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
12870
12871 * config/s390/predicates.md (shift_count_or_setmem_operand): Add
12872 mode check to make sure that only scalar integer values are
12873 accepted.
12874
12875 2015-05-19 Jan Hubicka <hubicka@ucw.cz>
12876
12877 * tree.c (verify_type_variant): Fix #undef.
12878 (gimple_canonical_types_compatible_p): Move here from lto.c
12879 (verify_type): Verify TYPE_CANONICAL compatibility.
12880 * tree.h (gimple_canonical_types_compatible_p): Declare.
12881
12882 2015-05-19 Jakub Jelinek <jakub@redhat.com>
12883
12884 PR middle-end/66199
12885 * tree.h (OMP_TEAMS_COMBINED): Define.
12886 * gimplify.c (enum gimplify_omp_var_data): Add
12887 GOVD_LINEAR_LASTPRIVATE_NO_OUTER.
12888 (enum omp_region_type): Add ORT_COMBINED_TEAMS.
12889 (omp_notice_variable): Accept both ORT_TEAMS
12890 and ORT_COMBINED_TEAMS. Don't recurse if
12891 GOVD_LINEAR_LASTPRIVATE_NO_OUTER is set and either
12892 GOVD_LINEAR is set, or GOVD_LASTPRIVATE without
12893 GOVD_FIRSTPRIVATE.
12894 (omp_no_lastprivate): New function.
12895 (gimplify_scan_omp_clauses): For OMP_CLAUSE_LASTPRIVATE
12896 and OMP_CLAUSE_LINEAR, if omp_no_lastprivate, don't
12897 notice_outer and set appropriate bits, otherwise make
12898 sure default(none) combined constructs won't complain.
12899 (gimplify_adjust_omp_clauses): Remove OMP_CLAUSE_LINEAR
12900 outer special casing, for OMP_CLAUSE_LASTPRIVATE if
12901 omp_no_lastprivate either remove the clause or turn it
12902 into OMP_CLAUSE_PRIVATE.
12903 (gimplify_omp_for): Fix up handling of implicit
12904 lastprivate or linear iterators.
12905 (gimplify_omp_workshare): For OMP_TEAMS_COMBINED use
12906 ORT_COMBINED_TEAMS.
12907 * omp-low.c (lower_omp_for_lastprivate): For combined
12908 for simd use fd.loop.n2 from the for rather than simd.
12909
12910 2015-05-19 Richard Sandiford <richard.sandiford@arm.com>
12911
12912 * config/cris/cris.c (cris_expand_prologue): Use gen_raw_REG
12913 instead of gen_rtx_raw_REG.
12914 (cris_expand_epilogue): Likewise.
12915 * config/microblaze/microblaze.c (microblaze_classify_address):
12916 Likewise.
12917 * config/sparc/sparc.md: Likewise.
12918
12919 2015-05-19 Uros Bizjak <ubizjak@gmail.com>
12920
12921 * config/alpha/alpha.c (alpha_legitimize_reload_address)
12922 (alpha_preferred_reload_class, alpha_legitimate_constant_p): Use
12923 CONST_INT_P, CONST_SCALAR_INT_P and CONST_DOUBLE_P predicates.
12924 (alpha_split_reload_pair) <case CONST_INT, case CONST_WIDE_INT>:
12925 Use CASE_CONST_SCALAR_INT.
12926 (print_operand) <case 'M'>: Use mode_width_operand to check the
12927 value of the constant.
12928 * config/alpha/alpha.md (movti): Use CONST_SCALAR_INT_P predicate.
12929 * config/alpha/predicates.md (input_operand): Use general_operand
12930 instead of match_code as operand check.
12931 (symbolic_operand): Use match_code with subexpression digits.
12932 * config/alpha/constraints.md (Q): Ditto.
12933
12934 2015-05-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
12935
12936 * optabs.c (expand_vec_perm): Don't re-use SEL as target operand.
12937
12938 2015-05-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
12939
12940 * config/s390/s390.c (s390_secondary_reload): Fix check for
12941 load/store relative.
12942
12943 2015-05-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
12944
12945 * recog.h: Increase MAX_RECOG_ALTERNATIVES. Change type of
12946 alternative_mask to uint64_t.
12947
12948 2015-05-19 Jakub Jelinek <jakub@redhat.com>
12949
12950 PR tree-optimization/66187
12951 * match.pd ((bit_and (plus/minus (convert @0) (convert @1)) mask)):
12952 Pass TYPE_SIGN to tree_int_cst_min_precision. If
12953 !TYPE_OVERFLOW_WRAPS, ensure @4 is non-negative.
12954
12955 2015-05-19 David Malcolm <dmalcolm@redhat.com>
12956
12957 * diagnostic.c (diagnostic_report_current_module): Strengthen
12958 local "new_map" from const line_map * to
12959 const line_map_ordinary *.
12960 * genmatch.c (error_cb): Likewise for local "map".
12961 (output_line_directive): Likewise for local "map".
12962 * input.c (expand_location_1): Likewise for local "map".
12963 Pass NULL rather than &map to
12964 linemap_unwind_to_first_non_reserved_loc, since the value is never
12965 read from there, and the value written back not read from here.
12966 (is_location_from_builtin_token): Strengthen local "map" from
12967 const line_map * to const line_map_ordinary *.
12968 (dump_location_info): Strengthen locals "map" from
12969 line_map *, one to const line_map_ordinary *, the other
12970 to const line_map_macro *.
12971 * tree-diagnostic.c (loc_map_pair): Strengthen field "map" from
12972 const line_map * to const line_map_macro *.
12973 (maybe_unwind_expanded_macro_loc): Add a call to
12974 linemap_check_macro when writing to the "map" field of the
12975 loc_map_pair.
12976 Introduce local const line_map_ordinary * "ord_map", using it in
12977 place of "map" in the part of the function where we know we have
12978 an ordinary map. Strengthen local "m" from const line_map * to
12979 const line_map_ordinary *.
12980
12981 2015-05-19 Nick Clifton <nickc@redhat.com>
12982
12983 PR target/66156
12984 * config/msp430/msp430.md (zero_extendhisi2): Add support for
12985 separate source and destination registers.
12986
12987 2015-05-19 Richard Biener <rguenther@suse.de>
12988
12989 PR tree-optimization/66165
12990 * tree-vect-slp.c (vect_supported_load_permutation_p): Add guard
12991 for no load permutation.
12992
12993 PR tree-optimization/66185
12994 * tree-vect-slp.c (vect_build_slp_tree): Properly roll back
12995 when building the SLP node from scalars.
12996
12997 2015-05-19 Eric Botcazou <ebotcazou@adacore.com>
12998 Tristan Gingold <gingold@adacore.com>
12999
13000 * insn-notes.def (UPDATE_SJLJ_CONTEXT): New note.
13001 * builtins.c (expand_builtin_update_setjmp_buf): Make global.
13002 (expand_stack_restore): Call record_new_stack_level.
13003 (expand_stack_save): Do not call do_pending_stack_adjust.
13004 * builtins.h (expand_builtin_update_setjmp_buf): Declare.
13005 * calls.c (expand_call): Call record_new_stack_level for alloca.
13006 * except.c (sjlj_mark_call_sites): Expand builtin_update_setjmp_buf
13007 wherever a NOTE_INSN_UPDATE_SJLJ_CONTEXT note is present.
13008 (update_sjlj_context): New global function.
13009 * except.h (update_sjlj_context): Declare.
13010 * explow.c (record_new_stack_level): New global function.
13011 (allocate_dynamic_stack_space): Call record_new_stack_level.
13012 * explow.h (record_new_stack_level): Declare.
13013 * final.c (final_scan_insn): Deal with NOTE_INSN_UPDATE_SJLJ_CONTEXT.
13014 * cfgrtl.c (duplicate_insn_chain): Likewise.
13015
13016 2015-05-19 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
13017
13018 * calls.c: Always define STACK_GROWS_DOWNWARD as 0 or 1.
13019 (mem_overlaps_already_clobbered_arg_p): Rewrite ifdef
13020 STACK_GROWS_DOWNWARD as normal if.
13021 (expand_call): Likewise.
13022
13023 2015-05-19 Oleg Endo <olegendo@gcc.gnu.org>
13024
13025 PR target/54236
13026 * config/sh/sh.md (*round_int_even): New insn_and_split and
13027 accompanying new unnamed split.
13028
13029 2015-05-19 Richard Sandiford <richard.sandiford@arm.com>
13030
13031 * bitmap.c (bitmap_set_range): Handle count==1 specially.
13032 (bitmap_clear_range): Likewise.
13033 * cfgcleanup.c (mark_effect): Use bitmap_clear_range and
13034 bitmap_set_range unconditionally.
13035 * df-problems.c (df_simulate_one_insn_forwards): Likewise.
13036 * df-scan.c (df_mark_reg): Likewise.
13037 * haifa-sched.c (setup_ref_regs): Likewise.
13038 * sched-rgn.c (update_live_1): Likewise.
13039
13040 2015-05-19 Richard Sandiford <richard.sandiford@arm.com>
13041
13042 * regs.h (END_HARD_REGNO): Delete.
13043 (END_REGNO): Move to...
13044 * rtl.h: ...here.
13045 * bt-load.c (note_btr_set): Use END_REGNO instead of END_HARD_REGNO.
13046 * caller-save.c (mark_set_regs): Likewise.
13047 * combine.c (move_deaths, distribute_notes): Likewise.
13048 * cse.c (invalidate, invalidate_for_call): Likewise.
13049 * df-scan.c (df_ref_record): Likewise.
13050 * postreload-gcse.c (reg_changed_after_insn_p): Likewise.
13051 (record_last_reg_set_info): Likewise.
13052 * reg-stack.c (convert_regs_exit): Likewise.
13053 * reload.c (reg_overlap_mentioned_for_reload_p): Likewise.
13054 * resource.c (update_live_status): Likewise.
13055 * rtlanal.c (find_reg_fusage, find_regno_fusage): Likewise.
13056
13057 2015-05-19 Richard Sandiford <richard.sandiford@arm.com>
13058
13059 * rtl.h (reg_info): Add an nregs field.
13060 (REG_NREGS): Use it.
13061 (SET_REGNO_RAW): Delete.
13062 (set_regno_raw): New function.
13063 * regs.h (END_HARD_REGNO): Make equivalent to END_REGNO.
13064 (END_REGNO): Redefine in terms of REG_NREGS.
13065 * read-rtl.c (read_rtx_code): Call set_regno_raw instead of
13066 SET_REGNO_RAW.
13067 * emit-rtl.c (set_mode_and_regno): Likewise.
13068 * df-scan.c (df_ref_change_reg_with_loc): Use set_mode_and_regno
13069 instead of SET_REGNO_RAW.
13070
13071 2015-05-19 Richard Sandiford <richard.sandiford@arm.com>
13072
13073 * rtl.h (PUT_MODE_RAW): New macro.
13074 (PUT_REG_NOTE_KIND): Use it.
13075 (set_mode_and_regno): Declare.
13076 (gen_raw_REG): Change regno to "unsigned int".
13077 (gen_rtx_REG): Change "unsigned" to "unsigned int".
13078 (PUT_MODE): Forward to PUT_MODE_RAW for generators, otherwise
13079 use set_mode_and_regno to change the mode of registers.
13080 * gengenrtl.c (gendef): Use PUT_MODE_RAW.
13081 * emit-rtl.c (set_mode_and_regno): New function.
13082 (gen_raw_REG): Change regno to unsigned int. Use set_mode_and_regno.
13083 * caller-save.c (reg_save_code): Use set_mode_and_regno.
13084 * expr.c (init_expr_target): Likewise.
13085 * ira.c (setup_prohibited_mode_move_regs): Likewise.
13086 * postreload.c (reload_cse_simplify_operands): Likewise.
13087
13088 2015-05-19 Richard Sandiford <richard.sandiford@arm.com>
13089
13090 * caller-save.c (init_caller_save): Use word_mode and
13091 FIRST_PSEUDO_REGISTER when creating temporary rtxes.
13092 * expr.c (init_expr_target): Likewise.
13093 * ira.c (setup_prohibited_mode_move_regs): Likewise.
13094 * postreload.c (reload_cse_regs_1): Likewise.
13095
13096 2015-05-19 Richard Sandiford <richard.sandiford@arm.com>
13097
13098 * rtl.def (REG): Change format to "r".
13099 * rtl.h (rtunion): Remove rt_reg.
13100 (reg_info): New structure.
13101 (rtx_def): Add reg field to main union.
13102 (X0REGATTR): Delete.
13103 (REG_CHECK): New macro.
13104 (SET_REGNO_RAW, rhs_regno, REG_ATTRS): Use it.
13105 * rtl.c (rtx_format): Document "r".
13106 (rtx_code_size): Handle REG specially.
13107 * gengenrtl.c (special_format): Return true for formats
13108 that include 'r'.
13109 * gengtype.c (adjust_field_rtx_def): Handle 'r' fields.
13110 Deal with REG_ATTRS after the field loop.
13111 * emit-rtl.c (gen_raw_REG): Call rtx_alloc_stat directly.
13112 * expmed.c (init_expmed): Call gen_raw_REG instead of
13113 gen_rtx_raw_REG.
13114 * expr.c (init_expr_target): Likewise.
13115 * regcprop.c (maybe_mode_change): Likewise.
13116 * varasm.c (make_decl_rtl): Likewise.
13117 * final.c (leaf_renumber_regs_insn): Return early after
13118 handling REGs.
13119 * genemit.c (gen_exp): Handle 'r' fields.
13120 * genpeep.c (match_rtx): Likewise.
13121 * gensupport.c (subst_pattern_match): Likewise.
13122 (get_alternatives_number, collect_insn_data, alter_predicate_for_insn)
13123 (alter_constraints, subst_dup): Likewise.
13124 * read-rtl.c (read_rtx_code): Likewise.
13125 * print-rtl.c (print_rtx): Likewise.
13126 * genrecog.c (find_operand, find_matching_operand): Likewise.
13127 (validate_pattern, match_pattern_2): Likewise.
13128 (parameter::UINT, rtx_test::REGNO_FIELD): New enum values.
13129 (rtx_test::regno_field): New function.
13130 (operator ==, safe_to_hoist_p, transition_parameter_type)
13131 (parameter_type_string, print_parameter_value)
13132 (print_nonbool_test, print_test): Handle new enum values.
13133 * cselib.c (rtx_equal_for_cselib_1): Handle REG specially.
13134 * lra-constraints.c (operands_match_p): Likewise.
13135
13136 2015-05-19 Richard Sandiford <richard.sandiford@arm.com>
13137
13138 * df.h (df_ref_change_reg_with_loc): Remove old_regno parameter.
13139 Change type of new_regno to unsigned int.
13140 * df-scan.c (df_ref_change_reg_with_loc_1): Change type of
13141 new_regno to unsigned int.
13142 (df_ref_change_reg_with_loc): Remove old_regno parameter.
13143 Change type of new_regno to unsigned int. Use SET_REGNO_RAW.
13144 * rtl.h (SET_REGNO): Update call to df_ref_change_reg_with_loc.
13145 (SET_REGNO_RAW): Add space after ",".
13146
13147 2015-05-19 Richard Sandiford <richard.sandiford@arm.com>
13148
13149 * rtl.h (REG_NREGS): New macro
13150 * alias.c (record_set): Use it.
13151 * cfgcleanup.c (mark_effect): Likewise.
13152 * combine.c (likely_spilled_retval_1): Likewise.
13153 (likely_spilled_retval_p, can_change_dest_mode): Likewise.
13154 (move_deaths, distribute_notes): Likewise.
13155 * cselib.c (cselib_record_set): Likewise.
13156 * df-problems.c (df_simulate_one_insn_forwards): Likewise.
13157 * df-scan.c (df_mark_reg): Likewise.
13158 * dse.c (look_for_hardregs): Likewise.
13159 * dwarf2out.c (reg_loc_descriptor): Likewise.
13160 (multiple_reg_loc_descriptor): Likewise.
13161 * expr.c (write_complex_part, read_complex_part): Likewise.
13162 (emit_move_complex): Likewise.
13163 * haifa-sched.c (setup_ref_regs): Likewise.
13164 * ira-lives.c (mark_hard_reg_live): Likewise.
13165 * lra.c (lra_set_insn_recog_data): Likewise.
13166 * mode-switching.c (create_pre_exit): Likewise.
13167 * postreload.c (reload_combine_recognize_const_pattern): Likewise.
13168 (reload_combine_recognize_pattern): Likewise.
13169 (reload_combine_note_use, move2add_record_mode): Likewise.
13170 (reload_cse_move2add): Likewise.
13171 * reg-stack.c (subst_stack_regs_pat): Likewise.
13172 * regcprop.c (kill_value, copy_value): Likewise.
13173 (copyprop_hardreg_forward_1): Likewise.
13174 * regrename.c (verify_reg_in_set, scan_rtx_reg): Likewise.
13175 (build_def_use): Likewise.
13176 * sched-deps.c (mark_insn_reg_birth, mark_reg_death): Likewise.
13177 (deps_analyze_insn): Likewise.
13178 * sched-rgn.c (check_live_1, update_live_1): Likewise.
13179 * sel-sched.c (count_occurrences_equiv): Likewise.
13180 * valtrack.c (dead_debug_insert_temp): Likewise.
13181
13182 2015-05-19 Richard Sandiford <richard.sandiford@arm.com>
13183
13184 * cfgcleanup.c (mentions_nonequal_regs): Use END_REGNO.
13185 * dse.c (note_add_store): Likewise.
13186 * ira-lives.c (mark_hard_reg_dead): Likewise.
13187 * loop-invariant.c (mark_reg_store): Likewise.
13188 (mark_reg_death): Likewise.
13189 * postreload.c (reload_combine): Likewise.
13190 (reload_combine_note_store): Likewise.
13191 (reload_combine_note_use): Likewise.
13192 * recog.c (peep2_reg_dead_p): Likewise.
13193
13194 2015-05-19 Alan Modra <amodra@gmail.com>
13195
13196 * config/rs6000/predicates.md (gpc_reg_operand): Don't allow all
13197 hard registers numbered greater or equal to ARG_POINTER_REGNUM.
13198 (reg_or_neg_short_operand, fix_trunc_dest_operand): Delete
13199 unused predicates.
13200 * config/rs6000/altivec.md (save_vregs_*, restore_vregs_*):
13201 Use altivec_register_operand. Make insn predicate TARGET_ALTIVEC.
13202 * config/rs6000/rs6000.md (extzvdi_internal2): Use cc_reg_operand.
13203 * config/rs6000/vsx.md (vsx_float<VSi><mode>2): Expand comment.
13204
13205 2015-05-19 Sameera Deshpande <Sameera.Deshpande@imgtec.com>
13206
13207 * config/mips/mips.md (JOIN_MODE): New mode iterator.
13208 (join2_load_Store<JOIN_MODE:mode>): New pattern.
13209 (join2_loadhi): Likewise.
13210 (define_peehole2): Add peephole2 patterns to join 2 HI/SI/SF/DF-mode
13211 load-load and store-stores.
13212 * config/mips/mips.opt (mload-store-pairs): New option.
13213 (TARGET_LOAD_STORE_PAIRS): New macro.
13214 * config/mips/mips.h (ENABLE_LD_ST_PAIRS): Likewise.
13215 * config/mips/mips-protos.h (mips_load_store_bonding_p): New prototype.
13216 * config/mips/mips.c (mips_load_store_bonding_p): New function.
13217
13218 2015-05-19 Mikhail Maltsev <maltsevm@gmail.com>
13219
13220 * bb-reorder.c (fix_up_fall_thru_edges): Use std::swap instead of
13221 explicit swaps.
13222 * dojump.c (do_compare_rtx_and_jump): Likewise.
13223 * expmed.c (emit_store_flag_1): Likewise.
13224 * fibonacci_heap.h (fibonacci_heap::union_with): Likewise.
13225 * final.c (sprint_ul): Use std::reverse for reversing a string.
13226 * fold-const.c (extract_muldiv_1): Use std::swap.
13227 * genmodes.c (emit_mode_int_n): Likewise.
13228 * ifcvt.c (dead_or_predicable): Likewise.
13229 * ira-build.c (ira_merge_live_ranges): Likewise.
13230 (swap_allocno_copy_ends_if_necessary): Likewise.
13231 * ira.c (ira_setup_alts): Likewise.
13232 * loop-iv.c (iv_analyze_expr): Likewise.
13233 (implies_p): Likewise.
13234 (canon_condition): Likewise.
13235 * lra-constraints.c (swap_operands): Likewise.
13236 * lra-lives.c (lra_merge_live_ranges): Likewise.
13237 * omega.c (swap): Remove.
13238 (bswap): Remove.
13239 (omega_unprotect_1): Use std::swap.
13240 (omega_solve_geq): Likewise.
13241 * optabs.c (expand_binop_directly): Likewise.
13242 (expand_binop): Likewise.
13243 (emit_conditional_move): Likewise.
13244 (emit_conditional_add): Likewise.
13245 * postreload.c (reload_cse_simplify_operands): Likewise.
13246 * reg-stack.c (emit_swap_insn): Likewise.
13247 (swap_to_top): Likewise.
13248 (compare_for_stack_reg): Likewise.
13249 (subst_asm_stack_regs): Likewise.
13250 * reload.c (find_reloads): Likewise.
13251 * reload1.c (gen_reload_chain_without_interm_reg_p): Likewise.
13252 * sel-sched.c (invoke_reorder_hooks): Likewise.
13253 (create_block_for_bookkeeping): Likewise.
13254 * tree-data-ref.c (lambda_matrix_row_exchange): Remove.
13255 (lambda_matrix_right_hermite): Use std::swap.
13256 * tree-ssa-coalesce.c (sort_coalesce_list): Likewise.
13257 * tree-ssa-ifcombine.c (ifcombine_ifandif): Likewise.
13258 * tree-ssa-loop-ivopts.c (iv_ca_delta_reverse): Likewise.
13259 * tree-ssa-math-opts.c (is_widening_mult_p): Likewise.
13260 * tree-ssa-phiopt.c (hoist_adjacent_loads): Likewise.
13261 * tree-ssa-reassoc.c (linearize_expr_tree): Likewise.
13262 * tree-ssa-threadedge.c (simplify_control_stmt_condition): Likewise.
13263 * tree-vrp.c (compare_ranges): Likewise.
13264 * var-tracking.c (add_with_sets): Likewise.
13265 (vt_find_locations): Likewise.
13266
13267 2015-05-18 Andreas Tobler <andreast@gcc.gnu.org>
13268
13269 * config/freebsd-spec.h (FBSD_STARTFILE_SPEC): Add the bits to build
13270 pie executables.
13271 (FBSD_ENDFILE_SPEC): Likewise.
13272 * config/i386/freebsd.h (STARTFILE_SPEC): Remove and use the one from
13273 config/freebsd-spec.h.
13274 (ENDFILE_SPEC): Likewise.
13275
13276 2015-05-18 Uros Bizjak <ubizjak@gmail.com>
13277 Richard Henderson <rth@redhat.com>
13278
13279 PR target/57032
13280 * config/alpha/constraints.md (Q): Rewrite as define_memory_constraint.
13281 Check for a memory location that is not a reference (using an AND)
13282 to an unaligned location here.
13283 * config/alpha/predicates.md (normal_memory_operand): Remove.
13284
13285 2015-05-18 Alex Velenko <Alex.Velenko@arm.com>
13286
13287 * config/arm/arm.md (andsi_not_shiftsi_si_scc): New pattern.
13288 (andsi_not_shiftsi_si_scc_no_reuse): New pattern.
13289
13290 2015-05-18 Robert Suchanek <robert.suchanek@imgtec.com>
13291
13292 * config/mips/mips.c (micromips_globals): New variable.
13293 (mips_set_compression_mode): Save and reinitialize target-dependent
13294 state for microMIPS.
13295
13296 2015-05-18 Martin Liska <mliska@suse.cz>
13297
13298 * dbgcnt.def: Add new counter.
13299 * ipa-icf.c (sem_item_optimizer::merge_classes): Use the counter.
13300
13301 2015-05-18 Martin Liska <mliska@suse.cz>
13302
13303 * dbgcnt.def: Sort counters.
13304 * opts.c (common_handle_option): Do not compile if
13305 -fdbg-cnt-list is enabled.
13306
13307 2015-05-18 Tom de Vries <tom@codesourcery.com>
13308
13309 * gimplify.c (gimplify_modify_expr): Remove do_deref handling.
13310 (gimplify_va_arg_expr): Remove do_deref handling. Remove adding of
13311 address operator to va_list operand.
13312 * tree-stdarg.c (expand_ifn_va_arg_1): Do deref of va_list operand
13313 unconditionally.
13314 * config/i386/i386.c (ix86_gimplify_va_arg): Remove deref on va_list
13315 operand.
13316 * config/rs6000/rs6000.c (rs6000_gimplify_va_arg): Same.
13317 * config/s390/s390.c (s390_gimplify_va_arg): Same.
13318 * config/spu/spu.c (spu_gimplify_va_arg_expr): Same.
13319
13320 2015-05-18 Tom de Vries <tom@codesourcery.com>
13321
13322 * tree-ssa-tail-merge.c: Fix whitespace.
13323
13324 2015-05-17 Jim Wilson <jim.wilson@linaro.org>
13325
13326 * doc/invoke.texi (ARM Options, mtune): Add generic-armv7-a,
13327 cortex-a17, and cortex-a17.cortex-a7.
13328
13329 2015-05-17 Oleg Endo <olegendo@gcc.gnu.org>
13330
13331 PR target/54236
13332 * config/sh/sh.md (*addc_2r_t): Use ashift instead of mult.
13333
13334 2015-05-17 Uros Bizjak <ubizjak@gmail.com>
13335
13336 PR target/66174
13337 * config/i386/i386.c (expand_vec_perm_blend): Enable HImode and
13338 QImode inner modes for TARGET_AVX512BW. Force mask operand
13339 to a register for AVX512F modes.
13340
13341 2015-05-16 Jan Hubicka <hubicka@ucw.cz>
13342
13343 * toplev.c (emit_debug_global_declarations): Do not output debug info
13344 when doing slim LTO objects.
13345
13346 2015-05-16 Jan Hubicka <hubicka@ucw.cz>
13347
13348 * ipa-utils.h (warn_types_mismatch, odr_or_derived_type_p,
13349 odr_types_equivalent_p): Declare.
13350 (odr_type_p): Use gcc_checking_assert.
13351 (type_in_anonymous_namespace_p) Declare.
13352 (type_with_linkage_p): Declare.
13353 * common.opt (Wlto-type-mismatch): New warning.
13354 * ipa-devirt.c (compound_type_base): New function.
13355 (odr_or_derived_type_p): New function.
13356 (odr_types_equivalent_p): New function.
13357 (add_type_duplicate): Simplify.
13358 (type_with_linkage_p): Add hack to prevent false positives on C types
13359 (type_in_anonymous_namespace_p): Likewise.
13360 * tree.c (need_assembler_name_p): Use type_with_linkage.
13361 * tree.h (type_in_anonymous_namespace_p): Remove.
13362 * doc/invoke.texi (-Wlto-type-mismatch): Document
13363
13364 2015-05-16 Jan Hubicka <hubicka@ucw.cz>
13365
13366 * tree.c (verify_type_variant): Verify tree_base and type_common flags.
13367 (verify_type): Verify STRING_FLAG.
13368
13369 2015-05-16 Manuel López-Ibáñez <manu@gcc.gnu.org>
13370
13371 PR fortran/44054
13372 * tree-pretty-print.c (percent_K_format): Replace locus pointer
13373 with accessor function.
13374 * tree-diagnostic.c (diagnostic_report_current_function): Use
13375 diagnostic_location function.
13376 (maybe_unwind_expanded_macro_loc): Likewise.
13377 (virt_loc_aware_diagnostic_finalizer): Likewise.
13378 (default_tree_printer): Replace locus pointer with accessor function.
13379 * diagnostic.c (diagnostic_initialize): Initialize caret_chars array.
13380 (diagnostic_set_info_translated): Initialize second location.
13381 (diagnostic_build_prefix): Use CARET_LINE_MARGIN.
13382 (diagnostic_show_locus): Handle two locations. Call
13383 diagnostic_print_caret_line.
13384 (diagnostic_print_caret_line): New.
13385 (default_diagnostic_starter): Use diagnostic_location function.
13386 (diagnostic_report_diagnostic): Use diagnostic_location function.
13387 (verbatim): Do not set text.locus.
13388 * diagnostic.h (struct diagnostic_info): Remove location field.
13389 (struct diagnostic_context): Make caret_chars an array of two.
13390 (diagnostic_location): New inline.
13391 (diagnostic_expand_location): Handle two locations.
13392 (diagnostic_same_line): New inline.
13393 (diagnostic_print_caret_line): Declare.
13394 (CARET_LINE_MARGIN): New constant.
13395 * pretty-print.c (pp_printf): Do not set text.locus.
13396 (pp_verbatim): Do not set text.locus.
13397 * pretty-print.h (MAX_LOCATIONS_PER_MESSAGE): New constant.
13398 (struct text_info): Replace locus pointer with locations
13399 array. Add accessor functions.
13400
13401 2015-05-16 Kugan Vivekanandarajah <kuganv@linaro.org>
13402 Zhenqiang Chen <zhenqiang.chen@linaro.org>
13403
13404 PR target/65768
13405 * config/arm/arm.h (DONT_EARLY_SPLIT_CONSTANT): New macro.
13406 * config/arm/arm.md (subsi3, andsi3, iorsi3, xorsi3, movsi): Keep some
13407 large constants in register instead of splitting them.
13408
13409 2015-05-16 Uros Bizjak <ubizjak@gmail.com>
13410
13411 PR target/66140
13412 * config/alpha/alpha.c (get_aligned_mem): Also look for reload
13413 replacements in memory addresses.
13414 (get_unaligned_address): Ditto.
13415
13416 2015-05-16 James Bowman <james.bowman@ftdichip.com>
13417
13418 * config/ft32/*: New files for FT32 port.
13419 * doc/install.texi: Add FT32 information.
13420 * doc/invoke.texi: Add FT32 information.
13421 * doc/md.texi: Add FT32 information.
13422 * doc/contrib.texi: Self added.
13423
13424 2015-05-15 Marc Glisse <marc.glisse@inria.fr>
13425
13426 PR tree-optimization/64454
13427 * match.pd ((X % Y) % Y, (X % Y) < Y): New patterns.
13428 (-1 - A -> ~A): Remove unnecessary condition.
13429
13430 2015-05-15 Gregor Richards <gregor.richards@uwaterloo.ca>
13431
13432 * config/i386/linux.h (MUSL_DYNAMIC_LINKER): Define.
13433 * config/i386/linux64.h (MUSL_DYNAMIC_LINKER32): Define.
13434 (MUSL_DYNAMIC_LINKER64, MUSL_DYNAMIC_LINKERX32): Define.
13435
13436 2015-05-15 Ilya Enkovich <ilya.enkovich@intel.com>
13437
13438 * ipa-chkp.h (chkp_wrap_function): New.
13439 * ipa-chkp.c (chkp_wrap_function): Remove 'static'.
13440 (chkp_wrap_function_name): New.
13441 (chkp_build_instrumented_fndecl): Use chkp_wrap_function_name
13442 to get wrapper name.
13443 * lto-cgraph.c: Include ipa-chkp.h.
13444 (input_cgraph_1): Avoid alias chain for wrappers.
13445
13446 2015-05-15 Ilya Enkovich <enkovich.gnu@gmail.com>
13447
13448 PR middle-end/66134
13449 * tree-chkp.c (chkp_get_orginal_bounds_for_abnormal_copy): New.
13450 (chkp_maybe_copy_and_register_bounds): Don't copy abnormal copy.
13451
13452 2015-05-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
13453
13454 * config/aarch64/aarch64.h (AARCH64_TUNE_SLOWMUL): Delete.
13455 (AARCH64_FL_SLOWMUL): Delete.
13456 (AARCH64_FL_CRC): Redefine to 1<<3.
13457 (AARCH64_FL_USE_FMA_STEERING_PASS): Redefine to 1<<4.
13458
13459 2015-05-15 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
13460
13461 * config/arm/arm.h (LOGICAL_OP_NON_SHORT_CIRCUIT): Add appropriate
13462 casting.
13463
13464 2015-05-15 Uros Bizjak <ubizjak@gmail.com>
13465
13466 * config/alpha/alpha.md (extendqidi2): Use general_operand
13467 instead of some_operand for operand[1] predicate.
13468 (extendhidi2): Ditto.
13469 (cbranchdi4): Use general_operand instead of some_operand
13470 for operand[1] and operands[2] predicates.
13471 (cstoredi4): Ditto.
13472 * config/alpha/predicates.md (some_operand): Remove unused predicate.
13473 (some_ni_operand): Ditto.
13474
13475 2015-05-15 Uros Bizjak <ubizjak@gmail.com>
13476
13477 * config/alpha/alpha.c (alpha_extract_integer): Do not handle
13478 CONST_WIDE_INT and CONST_DOUBLE. Assert CONST_INT_P (x).
13479 (alpha_legitimate_constant_p) <case CONST_WIDE_INT>: Check high and
13480 low part of the constant using alpha_emit_set_const_1.
13481 (alpha_expand_mov): Do not handle CONST_WIDE_INT and CONST_DOUBLE.
13482
13483 2015-05-14 Rohit Arul Raj <rohitrulraj@freescale.com>
13484
13485 * varasm.c (output_constant_pool_1): Pass down alignment from
13486 constant pool entry's descriptor to output_constant_pool_2.
13487 (output_object_block): Add comment prior to call to
13488 output_constant_pool_1.
13489
13490 2015-05-14 Vladimir Makarov <vmakarov@redhat.com>
13491
13492 PR rtl-optimization/65862
13493 * target.def (ira_change_pseudo_allocno_class): New hook.
13494 * targhooks.c (default_ira_change_pseudo_allocno_class): Default
13495 value of the hook.
13496 * targhooks.h (default_ira_change_pseudo_allocno_class): New extern.
13497 * doc/tm.texi.in (TARGET_IRA_CHANGE_PSEUDO_ALLOCNO_CLASS): Add the
13498 hook.
13499 * ira-costs.c (find_costs_and_classes): Call the hook and change
13500 classes when it is necessary.
13501 * doc/tm.texi: Update.
13502
13503 2015-05-14 Alexander Monakov <amonakov@ispras.ru>
13504
13505 * config/i386/i386.md (sibcall_memory): Check that register with
13506 callee address is not also used as one of the arguments, instead
13507 of checking that it is not live after the sibcall.
13508 (sibcall_pop_memory): Ditto.
13509 (sibcall_value_memory): Ditto.
13510 (sibcall_value_pop_memory): Ditto.
13511
13512 2015-05-14 Marc Glisse <marc.glisse@inria.fr>
13513
13514 * generic-match-head.c (types_match): Handle non-types.
13515 * gimple-match-head.c (types_match): Likewise.
13516 * match.pd: Remove unnecessary TREE_TYPE for types_match.
13517
13518 2015-05-14 Wilco Dijkstra <wdijkstr@arm.com>
13519
13520 * config/aarch64/aarch64.md (absdi2): Optimize abs expansion.
13521 (csneg3<mode>_insn): Enable expansion of pattern.
13522
13523 2015-05-14 Nick Clifton <nickc@redhat.com>
13524
13525 * config/rl78/rl78.c (rl78_select_section): Select the correct
13526 default section based upon the category of the decl.
13527
13528 2015-05-13 Segher Boessenkool <segher@kernel.crashing.org>
13529
13530 PR rtl-optimization/30967
13531 * config/rs6000/rs6000.c (rs6000_rtx_costs): Don't consider
13532 destination mode for the cost of scc patterns.
13533
13534 2015-05-13 Uros Bizjak <ubizjak@gmail.com>
13535
13536 * config/i386/i386.md (*mul<mode>3_1): Merge with *mulhi3_1
13537 using SWIM248 mode iterator.
13538 (*mulv<mode>4): Use x86_64_sext_operand for operand[2] constraint.
13539 (*mulvhi4): mark operand[1] as commutative. Use nonimmediate_operand
13540 for operand[2] constraint.
13541 (*mulv<mode>4_1): Merge with *mulvhi4_1 using SWI248 mode iterator.
13542
13543 2015-05-13 Jakub Jelinek <jakub@redhat.com>
13544
13545 PR middle-end/66133
13546 * omp-low.c (expand_omp_taskreg): For GIMPLE_OMP_TASK expansion,
13547 make sure it is never noreturn, even when the task body does not
13548 return.
13549 (lower_omp_taskreg): For GIMPLE_OMP_TASK, emit GIMPLE_OMP_CONTINUE
13550 right before GIMPLE_OMP_RETURN.
13551 (make_gimple_omp_edges): Accept GIMPLE_OMP_CONTINUE as ->cont
13552 for GIMPLE_OMP_TASK. For GIMPLE_OMP_RETURN corresponding to
13553 GIMPLE_OMP_TASK add an EDGE_ABNORMAL edge from entry to exit.
13554
13555 2015-05-13 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
13556
13557 * params.def (PARAM_MAX_POW_SQRT_DEPTH): New param.
13558 * tree-ssa-math-opts.c: Include params.h
13559 (pow_synth_sqrt_info): New struct.
13560 (representable_as_half_series_p): New function.
13561 (get_fn_chain): Likewise.
13562 (print_nested_fn): Likewise.
13563 (dump_fractional_sqrt_sequence): Likewise.
13564 (dump_integer_part): Likewise.
13565 (expand_pow_as_sqrts): Likewise.
13566 (gimple_expand_builtin_pow): Use above to attempt to expand
13567 pow as series of square roots. Removed now unused variables.
13568
13569 2015-05-13 Uros Bizjak <ubizjak@gmail.com>
13570
13571 * config/alpha/alpha.c (alpha_emit_set_long_const): Remove c1 argument.
13572 (alpha_extract_integer): Redeclare as static HOST_WIDE_INT.
13573 Remove *p0 and *p1 arguments. Rewrite function.
13574 (alpha_legitimate_constant_p): Update call to alpha_extract_integer.
13575 (alpha_split_const_mov): Update calls to alpha_extract_integer and
13576 alpha_emit_set_long_const.
13577 (alpha_expand_epilogue): Update calls to alpha_emit_set_long_const.
13578 (alpha_output_mi_thunk_osf): Ditto.
13579 * config/alpha/alpha.md (movti): Do not check operands[1]
13580 for CONST_DOUBLE.
13581
13582 2015-05-13 Richard Biener <rguenther@suse.de>
13583
13584 PR tree-optimization/66129
13585 * tree-vect-slp.c (vect_build_slp_tree): Make sure all ops are
13586 commutative.
13587 (vect_schedule_slp_instance): Fix typo.
13588
13589 2015-05-13 David Malcolm <dmalcolm@redhat.com>
13590
13591 * common.opt (fdump-internal-locations): New option.
13592 * input.c: Include diagnostic-core.h.
13593 (get_end_location): New function.
13594 (write_digit): New function.
13595 (write_digit_row): New function.
13596 (dump_location_range): New function.
13597 (dump_labelled_location_range): New function.
13598 (dump_location_info): New function.
13599 * input.h (dump_location_info): New prototype.
13600 * toplev.c (compile_file): Handle flag_dump_locations.
13601
13602 2015-05-13 Eric Botcazou <ebotcazou@adacore.com>
13603
13604 * gimple-expr.h (is_gimple_constant): Reorder.
13605 * tree-ssa-propagate.c (before_dom_children): Use inline accessor.
13606
13607 2015-05-13 Segher Boessenkool <segher@kernel.crashing.org>
13608
13609 * combine.c (simplify_set): When generating a CC set, if the
13610 source already is in the correct mode, do not wrap it in a
13611 compare. Simplify the rest of that code.
13612
13613 2015-05-13 Richard Biener <rguenther@suse.de>
13614
13615 PR tree-optimization/66123
13616 * tree-ssa-dom.c (propagate_rhs_into_lhs): Check if we found
13617 a taken edge.
13618
13619 2015-05-13 Richard Biener <rguenther@suse.de>
13620
13621 PR middle-end/66110
13622 * alias.c (alias_sets_conflict_p): Do not treat has_zero_child
13623 specially.
13624 * Makefile.in (dfp.o-warn): Add -Wno-strict-aliasing.
13625
13626 2015-05-13 Michael Haubenwallner <michael.haubenwallner@ssi-schaefer.com>
13627
13628 * doc/install.texi: Bump latest automake 1.11 version to 1.11.6.
13629 * aclocal.m4: Regenerated with automake-1.11.6.
13630
13631 2015-05-13 Tom de Vries <tom@codesourcery.com>
13632
13633 PR tree-optimization/66010
13634 * gimplify.h (gimplify_va_arg_internal): Remove declaration.
13635 * gimplify.c (gimplify_va_arg_internal): Remove and inline into ...
13636 * tree-stdarg.c (expand_ifn_va_arg_1): ... here. Choose between lval
13637 and rval based on do_deref.
13638
13639 2015-05-13 Ilya Enkovich <ilya.enkovich@intel.com>
13640
13641 PR target/65103
13642 * config/i386/i386.c (ix86_rtx_costs): We want to propagate
13643 link time constants into adress expressions and therefore set
13644 their cost to 0.
13645
13646 2015-05-13 Jakub Jelinek <jakub@redhat.com>
13647
13648 PR target/66112
13649 * config/i386/i386.md (mulv<mode>4, umulv<mode>4, *umulv<mode>4):
13650 Use SWI248 iterator instead of SWI.
13651 (*mulv<mode>4_1): Use SWI48 instead of SWI. Simplify output template.
13652 Use eq_attr "alternative" "0" instead of match_test in
13653 length_immediate attribute computation.
13654 (*mulvhi4, *mulvhi4_1): New define_insns.
13655
13656 PR target/66112
13657 * internal-fn.c (get_min_precision): Use UNSIGNED instead of
13658 SIGNED to get precision of non-negative value.
13659
13660 2015-05-13 Ilya Enkovich <ilya.enkovich@intel.com>
13661
13662 PR target/66048
13663 * function.c (diddle_return_value_1): Process bounds first.
13664 * config/i38/i386.c (ix86_function_value_regno_p): Add bnd1
13665 register.
13666
13667 2015-05-13 Thomas Preud'homme <thomas.preudhomme@arm.com>
13668
13669 PR rtl-optimization/64616
13670 * loop-invariant.c (can_move_invariant_reg): New.
13671 (move_invariant_reg): Call above new function to decide whether
13672 instruction can just be moved, skipping creation of temporary
13673 register.
13674
13675 2015-05-12 Jan Hubicka <hubicka@ucw.cz>
13676
13677 PR target/pr66047.c
13678 * i386.c (ix86_function_sseregparm): Only return -1 if local function
13679 with implied regparm is called from -mno-sse function.
13680 (init_cumulative_args): Output error if ix86_function_sseregparm
13681 return -1 and SSE register would be needed.
13682 (function_arg_advance_32): Likewise.
13683 (function_arg_32): Likewise.
13684 * i386.h (ix86_args): Add decl field.
13685
13686 2015-05-12 Jan Hubicka <hubicka@ucw.cz>
13687
13688 PR ipa/65873
13689 * ipa-inline.c (can_inline_edge_p): Allow early inlining of always
13690 inlines across optimization boundary.
13691
13692 2015-05-12 Jason Merrill <jason@redhat.com>
13693
13694 * config/mmix/mmix.c, config/msp430/msp430.c: Add space between
13695 string literal and macro name.
13696
13697 2015-05-12 Steve Ellcey <sellcey@imgtec.com>
13698
13699 * config/mips/mips.c (mips_print_operand): Remove 'y' operand code.
13700 * config/mips/mips.md (<GPR:d>lsa): Rewrite with shift operator.
13701 * config/mips/predicates.md (const_immlsa_operand): Remove log call.
13702
13703 2015-05-12 David Malcolm <dmalcolm@redhat.com>
13704
13705 * doc/invoke.texi (Warning Options): Add -Wmisleading-indentation.
13706 (-Wmisleading-indentation): New option.
13707 * Makefile.in (C_COMMON_OBJS): Add c-family/c-indentation.o.
13708
13709 2015-05-12 Uros Bizjak <ubizjak@gmail.com>
13710
13711 * config/alpha/alpha.h (TARGET_SUPPORTS_WIDE_INT): New define.
13712 * config/alpha/alpha.c (alpha_rtx_costs): Handle CONST_WIDE_INT.
13713 (alpha_extract_integer): Ditto.
13714 (alpha_legitimate_constant_p): Ditto.
13715 (alpha_split_tmode_pair): Ditto.
13716 (alpha_preferred_reload_class): Add CONST_WIDE_INT.
13717 (alpha_expand_mov): Ditto.
13718 (print_operand): Remove handling of 'H' modifier.
13719 <case 'm'>: Remove CONST_DOUBLE handling.
13720 (summarize_insn): Handle CONST_WIDE_INT.
13721 * config/alpha/alpha.md (*andsi_internal): Remove H constraint.
13722 (anddi3): Ditto.
13723 (movti): Handle CONST_WIDE_INT.
13724 * config/alpha/constraints.md ('H'): Remove constraint definition.
13725 ('G'): Do not match MODE_FLOAT class.
13726 * config/alpha/predicates.md (const0_operand): Also match
13727 const_wide_int.
13728 (non_add_const_operand): Ditto.
13729 (non_zero_const_operand): Ditto.
13730 (some_operand): Ditto.
13731 (input_operand): Ditto. Handle CONST_WIDE_INT.
13732 (and_operand): Do not match const_double.
13733 * config/alpha/sync.md (fetchop_constr): Remove H constraint.
13734
13735 2015-05-12 Andrew MacLeod <amacleod@redhat.com>
13736
13737 PR target/65697
13738 * coretypes.h (MEMMODEL_SYNC, MEMMODEL_BASE_MASK): New macros.
13739 (enum memmodel): Add SYNC_{ACQUIRE,RELEASE,SEQ_CST}.
13740 * tree.h (memmodel_from_int, memmodel_base, is_mm_relaxed,
13741 is_mm_consume,is_mm_acquire, is_mm_release, is_mm_acq_rel,
13742 is_mm_seq_cst, is_mm_sync): New accessor functions.
13743 * builtins.c (expand_builtin_sync_operation,
13744 expand_builtin_compare_and_swap): Use MEMMODEL_SYNC_SEQ_CST.
13745 (expand_builtin_sync_lock_release): Use MEMMODEL_SYNC_RELEASE.
13746 (get_memmodel, expand_builtin_atomic_compare_exchange,
13747 expand_builtin_atomic_load, expand_builtin_atomic_store,
13748 expand_builtin_atomic_clear): Use new accessor routines.
13749 (expand_builtin_sync_synchronize): Use MEMMODEL_SYNC_SEQ_CST.
13750 * optabs.c (expand_compare_and_swap_loop): Use MEMMODEL_SYNC_SEQ_CST.
13751 (maybe_emit_sync_lock_test_and_set): Use new accessors and
13752 MEMMODEL_SYNC_ACQUIRE.
13753 (expand_sync_lock_test_and_set): Use MEMMODEL_SYNC_ACQUIRE.
13754 (expand_mem_thread_fence, expand_mem_signal_fence, expand_atomic_load,
13755 expand_atomic_store): Use new accessors.
13756 * emit-rtl.c (need_atomic_barrier_p): Add additional enum cases.
13757 * tsan.c (instrument_builtin_call): Update check for memory model beyond
13758 final enum to use MEMMODEL_LAST.
13759 * c-family/c-common.c: Use new accessor for memmodel_base.
13760 * config/aarch64/aarch64.c (aarch64_expand_compare_and_swap): Use new
13761 accessors.
13762 * config/aarch64/atomics.md (atomic_load<mode>,atomic_store<mode>,
13763 arch64_load_exclusive<mode>, aarch64_store_exclusive<mode>,
13764 mem_thread_fence, *dmb): Likewise.
13765 * config/alpha/alpha.c (alpha_split_compare_and_swap,
13766 alpha_split_compare_and_swap_12): Likewise.
13767 * config/arm/arm.c (arm_expand_compare_and_swap,
13768 arm_split_compare_and_swap, arm_split_atomic_op): Likewise.
13769 * config/arm/sync.md (atomic_load<mode>, atomic_store<mode>,
13770 atomic_loaddi): Likewise.
13771 * config/i386/i386.c (ix86_destroy_cost_data, ix86_memmodel_check):
13772 Likewise.
13773 * config/i386/sync.md (mem_thread_fence, atomic_store<mode>): Likewise.
13774 * config/ia64/ia64.c (ia64_expand_atomic_op): Add new memmodel cases and
13775 use new accessors.
13776 * config/ia64/sync.md (mem_thread_fence, atomic_load<mode>,
13777 atomic_store<mode>, atomic_compare_and_swap<mode>,
13778 atomic_exchange<mode>): Use new accessors.
13779 * config/mips/mips.c (mips_process_sync_loop): Likewise.
13780 * config/pa/pa.md (atomic_loaddi, atomic_storedi): Likewise.
13781 * config/rs6000/rs6000.c (rs6000_pre_atomic_barrier,
13782 rs6000_post_atomic_barrier): Add new cases.
13783 (rs6000_expand_atomic_compare_and_swap): Use new accessors.
13784 * config/rs6000/sync.md (mem_thread_fence): Add new cases.
13785 (atomic_load<mode>): Add new cases and use new accessors.
13786 (store_quadpti): Add new cases.
13787 * config/s390/s390.md (mem_thread_fence, atomic_store<mode>): Use new
13788 accessors.
13789 * config/sparc/sparc.c (sparc_emit_membar_for_model): Use new accessors.
13790 * doc/extend.texi: Update docs to indicate 16 bits are used for memory
13791 model, not 8.
13792
13793 2015-05-12 Jan Hubicka <hubicka@ucw.cz>
13794
13795 * ipa-devirt.c (type_with_linkage_p): New function.
13796 (type_in_anonymous_namespace_p): Move here from tree.c; assert that
13797 type has linkage.
13798 (odr_type_p): Move here from ipa-utils.h; use type_with_linkage_p.
13799 (can_be_name_hashed_p): Simplify.
13800 (hash_odr_name): Check that type has linkage before checking if it is
13801 anonymous.
13802 (types_same_for_odr): Likewise.
13803 (odr_name_hasher::equal): Likewise.
13804 (odr_subtypes_equivalent_p): Likewise.
13805 (warn_types_mismatch): Likewise.
13806 (get_odr_type): Likewise.
13807 (odr_types_equivalent_p): Fix checking of TYPE_MAIN_VARIANT.
13808 * ipa-utils.h (odr_type_p): Move offline.
13809 * tree.c (need_assembler_name_p): Fix handling of types
13810 without linkages.
13811 (type_in_anonymous_namespace_p): Move to ipa-devirt.c
13812
13813 2015-05-12 David Malcolm <dmalcolm@redhat.com>
13814
13815 * timevar.c (timevar_enable): Delete in favor of...
13816 (g_timer): New global.
13817 (struct timevar_def): Move to timevar.h inside class timer.
13818 (struct timevar_stack_def): Likewise.
13819 (timevars): Delete global in favor of field "m_timevars" within
13820 class timer in timevar.h
13821 (stack): Likewise, in favor of field "m_stack".
13822 (unused_stack_instances): Likewise, in favor of field
13823 "m_unused_stack_instances".
13824 (start_time): Likewise, in favor of field "m_start_time".
13825 (get_time): Eliminate check for timevar_enable.
13826 (timer::timer): New function, built from part of timevar_init.
13827 (timevar_init): Rewrite idempotency test from using
13828 "timevar_enable" bool to using dynamic allocation of "g_timer".
13829 Move rest of implementation into timer's constructor.
13830 (timevar_push_1): Rename to...
13831 (timer::push): ...this, adding "m_" prefixes to variables that
13832 are now fields of timer.
13833 (timevar_pop_1): Likewise, rename to...
13834 (timer::pop): ...this, and add "m_" prefixes.
13835 (timevar_start): Replace test for "timevar_enable" with one for
13836 "g_timer", and move bulk of implementation to...
13837 (timer::start): ...here, adding "m_" prefixes.
13838 (timevar_stop): Likewise, from here...
13839 (timer::stop): ...to here.
13840 (timevar_cond_start): Likewise, from here...
13841 (timer::cond_start): ...to here.
13842 (timevar_cond_stop): Likewise, from here...
13843 (timer::cond_stop): ...to here.
13844 (validate_phases): Rename to...
13845 (timer::validate_phases): ...this, and add "m_" prefixes. Make
13846 locals "total" and "tv" const.
13847 (timevar_print): Rename to...
13848 (timer::print): ...this, and add "m_" prefixes. Make locals
13849 "total" and "tv" const. Eliminate test for timevar_enable.
13850 * timevar.h (timevar_enable): Eliminate.
13851 (g_timer): New declaration.
13852 (timevar_push_1): Eliminate.
13853 (timevar_pop_1): Eliminate.
13854 (timevar_print): Eliminate.
13855 (class timer): New class.
13856 (timevar_push): Rewrite to use g_timer.
13857 (timevar_pop): Likewise.
13858 * toplev.c (toplev::~toplev): Likewise.
13859
13860 2015-05-12 Richard Earnshaw <rearnsha@arm.com>
13861
13862 * arm-protos.h (arm_sched_autopref): Delete.
13863 (tune_params): Re-organize, use enums for flag values.
13864 (FUSE_OPS): New macro.
13865 * arm.c (ARM_PREFETCH_NOT_BENEFICIAL): Update.
13866 (ARM_PREFETCH_BENEFICIAL): Likewise.
13867 (ARM_FUSE_NOTHING, ARM_FUSE_MOVW_MOVT): Delete.
13868 (arm_slowmul_tune, arm_fastmul_tune, arm_strongarm_tune)
13869 (arm_xscale_tune, arm_9e_tune, arm_marvell_pj4_tune)
13870 (arm_v6t2_tune, arm_cortex_tune, arm_cortex_a8_tune)
13871 (arm_cortex_a7_tune, arm_cortex_a15_tune, arm_cortex_a53_tune)
13872 (arm_cortex_a57_tune, arm_xgene1_tune, arm_cortex_a5_tune)
13873 (arm_cortex_a9_tune, arm_cortex_a12_tune, arm_v7m_tune)
13874 (arm_cortex_m7_tune, arm_v6m_tune, arm_fa726te_tune): Use new
13875 format.
13876 (arm_option_override, thumb2_reorg, arm_print_tune_info)
13877 (aarch_macro_fusion_pair_p): Update uses of current_tune.
13878 * arm.h (LOGICAL_OP_NON_SHORT_CIRCUIT): Likewise.
13879
13880 2015-05-12 Sandra Loosemore <sandra@codesourcery.com>
13881
13882 * config/nios2/nios2.md (trap, ctrapsi4): Use "trap" instead of
13883 "break".
13884
13885 2015-05-12 Chung-Lin Tang <cltang@codesourcery.com>
13886 Sandra Loosemore <sandra@codesourcery.com>
13887
13888 * config/nios2/nios2.h (enum reg_class): Add IJMP_REGS enum
13889 value.
13890 (REG_CLASS_NAMES): Add "IJMP_REGS".
13891 (REG_CLASS_CONTENTS): Add new entry for IJMP_REGS.
13892 * config/nios2/nios2.md (indirect_jump,*tablejump): Adjust to
13893 use new "c" register constraint.
13894 * config/nios2/constraint.md (c): New register constraint
13895 corresponding to IJMP_REGS.
13896
13897 2015-05-12 Segher Boessenkool <segher@kernel.crashing.org>
13898
13899 * config/rs6000/rs6000.md (*rotlsi3_internal4, *rotlsi3_internal5,
13900 *rotlsi3_internal6, rlwinm, 5 unnamed define_insns, and 6
13901 define_splits): Delete, revamp, transmogrify into ...
13902 (*rotlsi3_mask, *rotlsi3_mask_dot, *rotlsi3_mask_dot2,
13903 *ashlsi3_imm_mask, *ashlsi3_imm_mask_dot, *ashlsi3_imm_mask_dot2,
13904 *lshrsi3_imm_mask, *lshrsi3_imm_mask_dot, *lshrsi3_imm_mask_dot2):
13905 New.
13906
13907 2015-05-12 Segher Boessenkool <segher@kernel.crashing.org>
13908
13909 * config/rs6000/rs6000.md (rs6000_adjust_atomic_subword): Use
13910 gen_ashlsi3 and gen_andsi3 instead of gen_rlwinm.
13911
13912 2015-05-12 Segher Boessenkool <segher@kernel.crashing.org>
13913
13914 * config/rs6000/rs6000.md (extzv): FAIL for SImode.
13915 (extzvsi_internal, *extzvsi_internal1, *extzvsi_internal2,
13916 *rotlsi3_internal7le, *rotlsi3_internal7be, *rotlsi3_internal8le,
13917 *rotlsi3_internal8be, *rotlsi3_internal9le, *rotlsi3_internal9be,
13918 *rotlsi3_internal10le, *rotlsi3_internal10be, *rotlsi3_internal11le,
13919 *rotlsi3_internal11be, *rotlsi3_internal12le, *rotlsi3_internal12be,
13920 *lshiftrt_internal1le, *lshiftrt_internal1be, *lshiftrt_internal2le,
13921 *lshiftrt_internal2be, *lshiftrt_internal3le, *lshiftrt_internal3be,
13922 *lshiftrt_internal4le, *lshiftrt_internal4be, *lshiftrt_internal5le,
13923 *lshiftrt_internal5be, *lshiftrt_internal5le, *lshiftrt_internal5be,
13924 *rotldi3_internal7le, *rotldi3_internal7be, *rotldi3_internal8le,
13925 *rotldi3_internal8be, *rotldi3_internal9le, *rotldi3_internal9be,
13926 *rotldi3_internal10le, *rotldi3_internal10be, *rotldi3_internal11le,
13927 *rotldi3_internal11be, *rotldi3_internal12le, *rotldi3_internal12be,
13928 *rotldi3_internal13le, *rotldi3_internal13be, *rotldi3_internal14le,
13929 *rotldi3_internal14be, *rotldi3_internal15le, *rotldi3_internal15be,
13930 and 30 corresponding splitters): Delete.
13931
13932 2015-05-12 Segher Boessenkool <segher@kernel.crashing.org>
13933
13934 * config/rs6000/rs6000.md (define_split for bswaphi): Don't use
13935 zero_extract.
13936
13937 2015-05-12 Segher Boessenkool <segher@kernel.crashing.org>
13938
13939 * combine.c (recog_for_combine_1): New function, factored out
13940 from recog_for_combine.
13941 (change_zero_ext): New function.
13942 (recog_for_combine): If recog fails, try again with the pattern
13943 modified by change_zero_ext; if that still fails, restore the
13944 pattern.
13945
13946 2015-05-12 Segher Boessenkool <segher@kernel.crashing.org>
13947
13948 * combine.c (get_undo_marker): New function.
13949 (undo_to_marker): New function, largely factored out from ...
13950 (undo_all): ... this. Adjust.
13951
13952 2015-05-12 Richard Biener <rguenther@suse.de>
13953
13954 PR tree-optimization/66101
13955 * tree-ssa-dce.c (remove_dead_stmt): Properly mark loops for
13956 fixup if we turn a loop exit edge to a fallthru edge.
13957
13958 2015-05-12 Richard Biener <rguenther@suse.de>
13959
13960 PR tree-optimization/37021
13961 * tree-vectorizer.h (struct _slp_tree): Add two_operators flag.
13962 (SLP_TREE_TWO_OPERATORS): New define.
13963 * tree-vect-slp.c (vect_create_new_slp_node): Initialize
13964 SLP_TREE_TWO_OPERATORS.
13965 (vect_build_slp_tree_1): Allow two mixing plus/minus in an
13966 SLP node.
13967 (vect_build_slp_tree): Adjust.
13968 (vect_analyze_slp_cost_1): Likewise.
13969 (vect_schedule_slp_instance): Vectorize mixing plus/minus by
13970 emitting two vector stmts and mixing the results.
13971
13972 2015-05-12 Dominik Vogt <vogt@linux.vnet.ibm.com>
13973
13974 * call.c (print_z_candidates): Remove dead code.
13975
13976 2015-05-12 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
13977
13978 * config/s390/2827.md: Split zEC12_simple into zEC12_simple_int
13979 and zEC12_simple_fp.
13980 * config/s390/s390.c (s390_issue_rate): Set issue rate for zEC12
13981 to 1.
13982
13983 2015-05-12 Tom de Vries <tom@codesourcery.com>
13984
13985 PR tree-optimization/66010
13986 * gimplify.c (gimplify_modify_expr): Handle new do_deref argument of
13987 ifn_va_arg.
13988 * gimplify.h (gimplify_va_arg_internal): Remove loc parameter.
13989 (gimplify_va_arg_internal): Remove loc parameter. Assert no array-typed
13990 va_lists are passed, and remove corresponding handling.
13991 (gimplify_va_arg_expr): Only take address of ap if necessary. Add
13992 do_deref argument to ifn_va_arg.
13993 * tree-stdarg.c (expand_ifn_va_arg_1): Handle new do_deref argument of
13994 ifn_va_arg.
13995
13996 2015-05-12 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
13997
13998 PR target/65955
13999 * config/arm/arm.md (movcond_addsi): Check that operands[2] is a
14000 REG before taking its REGNO.
14001
14002 2015-05-12 Thomas Preud'homme <thomas.preudhomme@arm.com>
14003
14004 * combine.c i(set_nonzero_bits_and_sign_copies): Split code updating
14005 rsp->sign_bit_copies and rsp->nonzero_bits into ...
14006 (update_rsp_from_reg_equal): This. Also use REG_EQUAL note on src if
14007 present to get more accurate information about the number of sign bit
14008 copies and non zero bits.
14009
14010 2015-05-12 Richard Biener <rguenther@suse.de>
14011
14012 * tree-vect-slp.c (vect_build_slp_tree_1): For BB vectorization
14013 do not allow unrolling.
14014
14015 2015-05-11 Richard Henderson <rth@redhat.com>
14016
14017 * config/i386/i386-modes.def (CCP): New.
14018 * config/i386/i386.c (put_condition_code): Handle it.
14019 (ix86_match_ccmode, ix86_cc_modes_compatible): Likewise.
14020
14021 2015-05-11 Richard Henderson <rth@redhat.com>
14022
14023 * target.def (md_asm_clobbers): Replace with...
14024 (md_asm_adjust): this.
14025 * tm.texi.in (TARGET_MD_ASM_CLOBBERS): Remove.
14026 (TARGET_MD_ASM_ADJUST): New.
14027 * tm.texi: Rebuild.
14028 * hooks.c (hook_tree_tree_tree_tree_3rd_identity): Remove.
14029 * hooks.h (hook_tree_tree_tree_tree_3rd_identity): Remove.
14030 * system.h (TARGET_MD_ASM_CLOBBERS): Poison.
14031
14032 * cfgexpand.c (check_operand_nalternatives): Accept vector of
14033 constraints instead of lists of outputs and inputs.
14034 (expand_asm_stmt): Save and restore input_location around the
14035 body of the function. Move asm data into vectors instead of
14036 building tree lists. Generate cleanup sequences as needed,
14037 rather than waiting til the end. Use new md_asm_adjust hook.
14038
14039 * config/vxworks.c: Include vec.h before target.h.
14040 * gimple.c: Likewise.
14041 * incpath.c: Likewise.
14042 * mode-switching.c: Likewise.
14043
14044 * config/cris/cris.c (cris_md_asm_clobbers): Convert to...
14045 (cris_md_asm_adjust): this.
14046 (TARGET_MD_ASM_CLOBBERS): Remove.
14047 (TARGET_MD_ASM_ADJUST): New.
14048 * config/i386/i386.c (ix86_md_asm_clobbers): Convert to...
14049 (ix86_md_asm_adjust): this.
14050 (TARGET_MD_ASM_CLOBBERS): Remove.
14051 (TARGET_MD_ASM_ADJUST): New.
14052 * config/mn10300/mn10300.c (mn10300_md_asm_clobbers): Convert to...
14053 (mn10300_md_asm_adjust): this.
14054 (TARGET_MD_ASM_CLOBBERS): Remove.
14055 (TARGET_MD_ASM_ADJUST): New.
14056 * config/rs6000/rs6000.c (rs6000_md_asm_clobbers): Convert to...
14057 (rs6000_md_asm_adjust): this.
14058 (TARGET_MD_ASM_CLOBBERS): Remove.
14059 (TARGET_MD_ASM_ADJUST): New.
14060 * config/visium/visium.c (visium_md_asm_clobbers): Convert to...
14061 (visium_md_asm_adjust): this.
14062 (TARGET_MD_ASM_CLOBBERS): Remove.
14063 (TARGET_MD_ASM_ADJUST): New.
14064
14065 2015-05-11 Richard Henderson <rth@redhat.com>
14066
14067 * gimplify.c (gimplify_asm_expr): Set gimple_asm_volatile_p
14068 if noutputs is zero.
14069 * cfgexpand.c (expand_asm_stmt): Use gimple_asm_volatile_p unchanged.
14070
14071 * cfgexpand.c (expand_asm_operands): Merge into...
14072 (expand_asm_stmt): ... here.
14073
14074 * cfgexpand.c (expand_asm_operands): Don't call
14075 resolve_asm_operand_names.
14076 * stmt.c (resolve_asm_operand_names): Clarify block comment.
14077
14078 2015-05-11 Jan Hubicka <hubicka@ucw.cz>
14079
14080 * dwarf2out.c (gen_member_die): Sanity check that we access
14081 TYPE_MAIN_VARIANT for TYPE_METHODS.
14082 * function.c (use_register_for_decl): Look for TYPE_MAIN_VARIANT when
14083 checking TYPE_METHODS.
14084 * tree.c (free_lang_data_in_type): See TYPE_METHODS to error_mark_node
14085 if non-null.
14086 (build_distinct_type_copy): Clear TYPE_METHODS.
14087 (verify_type_variant): Verify that TYPE_METHODS is NULL for variants.
14088 (verify_type): Allow TYPE_METHODS to be error_mark_node.
14089 * tree.def: Update docs of TYPE_STUB_DECL and TYPE_METHODS.
14090
14091 2015-05-11 Eric Botcazou <ebotcazou@adacore.com>
14092
14093 * emit-rtl.c (emit_pattern_after_setloc): Add missing guard.
14094 (emit_pattern_before_setloc): Likewise.
14095
14096 2015-05-11 Richard Sandiford <richard.sandiford@arm.com>
14097
14098 * genrecog.c (match_pattern_1): Expect the pattern to be a SEQUENCE
14099 for define_peephole2s.
14100 (get_peephole2_pattern): New function.
14101 (main): Use it. Call validate_pattern.
14102
14103 2015-05-11 Pitchumani Sivanupandi <pitchumani.s@atmel.com>
14104
14105 * config/avr/avr.c (avr_hard_regno_call_part_clobbered): Use
14106 LAST_CALLEE_SAVED_REG instead of hard-coded register number.
14107 (Last callee saved reg is different for AVR_TINY architecture)
14108
14109 2015-05-11 Uros Bizjak <ubizjak@gmail.com>
14110
14111 * config/i386/i386.c (ix86_loop_unroll_adjust): Use PATTERN (insn)
14112 when looking for memory references.
14113
14114 2015-05-11 Alexander Monakov <amonakov@ispras.ru>
14115
14116 PR target/65753
14117 * config/i386/i386.c (ix86_function_ok_for_sibcall): Allow PIC sibcalls
14118 via function pointers.
14119
14120 2015-05-11 Alexander Monakov <amonakov@ispras.ru>
14121
14122 * calls.c (prepare_call_address): Transform PLT call to GOT lookup and
14123 indirect call by forcing address into a pseudo with -fno-plt.
14124 * common.opt (flag_plt): New option.
14125 * doc/invoke.texi (Code Generation Options): Add -fno-plt.
14126 ([-fno-plt]): Document.
14127
14128 2015-05-11 Markus Trippelsdorf <markus@trippelsdorf.de>
14129
14130 PR bootstrap/66105
14131 * config/rs6000/option-defaults.h: Add space between string literal
14132 and macro name.
14133
14134 2015-05-11 Thomas Preud'homme <thomas.preudhomme@arm.com>
14135
14136 * gcc.target/arm/pr64616.c: Test dump rather than assembly to work
14137 accross ARM targets.
14138
14139 2015-05-11 Christian Bruel <christian.bruel@st.com>
14140
14141 * config/arm/arm-protos.h (thumb_code, thumb1_code): Remove.
14142 * config/arm/vxworks.h (thumb_code): Replace with TARGET_THUMB.
14143
14144 2015-05-11 Richard Sandiford <richard.sandiford@arm.com>
14145
14146 PR rtl-optimization/66076
14147 * rtlanal.c (generic_subrtx_iterator <T>::add_single_to_queue):
14148 Don't grow the heap array if it is already big enough from a
14149 previous iteration.
14150
14151 2015-05-11 Christian Bruel <christian.bruel@st.com>
14152
14153 * config/arm/arm-protos.h (arm_declare_function_name): Declare.
14154 (is_called_in_ARM_mode): Remove.
14155 * config/arm/arm.c (is_called_in_ARM_mode): Declare static bool.
14156 (arm_declare_function_name): Moved from from ARM_DECLARE_FUNCTION_NAME.
14157 * config/arm/arm.h (ARM_DECLARE_FUNCTION_NAME): Call
14158 arm_declare_function_name.
14159
14160 2015-05-11 Christian Bruel <christian.bruel@st.com>
14161
14162 * config/arm/arm.c (arm_option_override): Reoganized and split into :
14163 (arm_option_params_internal); New function.
14164 (arm_option_check_internal): New function.
14165 (arm_option_override_internal): New function.
14166 (thumb_code, thumb1_code): Remove.
14167 * config/arm/arm.h (TREE_TARGET_THUMB, TREE_TARGET_THUMB1): New macros.
14168 (TREE_TARGET_THUM2, TREE_TARGET_ARM): Likewise.
14169 (thumb_code, thumb1_code): Remove.
14170 * config/arm/arm.md (is_thumb, is_thumb1): Check TARGET flag.
14171
14172 2015-05-11 Uros Bizjak <ubizjak@gmail.com>
14173
14174 * config/alpha/alpha.c (alpha_emit_set_const_1)
14175 (alpha_emit_set_long_const, alpha_extract_integer)
14176 (alpha_legitimate_constant_p, alpha_split_const_mov)
14177 (alpha_expand_block_clear, alpha_expand_zap_mask, print_operand):
14178 [HOST_BITS_PER_WIDE_INT < 64]: Remove dead code.
14179 (alpha_emit_set_const_1): Change "(HOST_WIDE_INT) 1" to
14180 HOST_WIDE_INT_1U.
14181 * config/alpha/predicates.md (mode_mask_operand): Do not match
14182 const_double RTX.
14183 [HOST_BITS_PER_WIDE_INT < 64]: Remove dead code.
14184 * config/alpha/alpha.md (abstf, *abstf_internal, UNSPEC_ZAP splitter):
14185 Change "(HOST_WIDE_INT) 1" to HOST_WIDE_INT_1U.
14186 [HOST_BITS_PER_WIDE_INT < 64]: Remove dead code.
14187 (*negtf_internal): Use gen_int_mode instead of immed_double_const.
14188
14189 2015-05-11 Jakub Jelinek <jakub@redhat.com>
14190
14191 PR target/65780
14192 * config/s390/linux.h (TARGET_BINDS_LOCAL_P): Define to
14193 default_binds_local_p_2.
14194 * config/arm/linux-elf.h (TARGET_BINDS_LOCAL_P): Likewise.
14195 * config/aarch64/aarch64-linux.h (TARGET_BINDS_LOCAL_P): Likewise.
14196
14197 2015-05-09 Jan Hubicka <hubicka@ucw.cz>
14198
14199 * tree.c (verify_type_variant): Check TYPE_VALUES_RAW and TYPE_PRECISION
14200
14201 2015-05-09 Jan Hubicka <hubicka@ucw.cz>
14202
14203 Patch by Richard Biener
14204 * coverage.c (coverage_obj_init): Delay building of type variant
14205 until the type is finished.
14206
14207 2015-05-09 Jan Hubicka <hubicka@ucw.cz>
14208
14209 * ipa-devirt.c (warn_types_mismatch): Do not ICE when warning about
14210 mismatch between C and C++ type; compoare correctly ARG_TYPES
14211 for non-prototypes and output correctly parameter index for METHOD_TYPE.
14212 (odr_types_equivalent_p): Fix wording of warning about attributes;
14213 it is OK to match prototype and non-prototype.
14214
14215 2015-05-09 Jan Hubicka <hubicka@ucw.cz>
14216
14217 * tree.c (free_lang_data_in_type): Free TREE_PURPOSE of
14218 TYPE_ARG_TYPES list.
14219 (verify_type): Permit non-NULL TREE_PURPOSE in non-LTO builds.
14220 * tree.def (FUNCTION_TYPE): Document TREE_PURPOSE in TYPE_ARG_TYPES
14221
14222 2015-05-09 Jan Hubicka <hubicka@ucw.cz>
14223
14224 * tree.c (verify_type): Verify TYPE_BINFO and TYPE_VALUES_RAW.
14225 * tree.h (is_lang_specific): Constify.
14226
14227 2015-05-09 Marc Glisse <marc.glisse@inria.fr>
14228
14229 PR tree-optimization/64454
14230 * tree-vrp.c (extract_range_from_binary_expr_1) <TRUNC_MOD_EXPR>:
14231 Rewrite.
14232
14233 2015-05-08 Jason Merrill <jason@redhat.com>
14234
14235 * bitmap.c, c/c-aux-info.c, cfg.c, cfghooks.c, cgraph.c,
14236 config/aarch64/aarch64.md config/alpha/vms.h, config/darwin.c,
14237 config/darwin.h, config/darwin9.h, config/elfos.h,
14238 config/i386/bsd.h, config/ia64/ia64.c, config/lm32/lm32.h,
14239 config/microblaze/microblaze.h, config/mips/mips.h,
14240 config/mmix/mmix.c, config/msp430/msp430.c, config/nios2/nios2.h,
14241 config/nvptx/nvptx.c, config/nvptx/nvptx.h, config/pa/pa.c,
14242 config/pa/pa.h, config/rs6000/rs6000.c, config/rs6000/sysv4.h,
14243 config/rs6000/xcoff.h, config/rx/rx.h, config/s390/s390.h,
14244 config/sparc/sol2.h, config/sparc/sparc.h, config/visium/visium.h,
14245 cppbuiltin.c, defaults.h, doc/invoke.texi, dwarf2cfi.c,
14246 dwarf2out.c, final.c, gcc.c, gcov-dump.c, gcov.c, ipa-cp.c,
14247 ipa-inline.c, ipa-polymorphic-call.c, ipa-profile.c, ipa-prop.c,
14248 ira-color.c, ira.c, loop-doloop.c, loop-iv.c, mcf.c,
14249 modulo-sched.c, predict.c, profile.c, stor-layout.c, toplev.c,
14250 tree-ssa-reassoc.c, value-prof.c, wide-int-print.cc: Add space
14251 between string literal and macro name.
14252
14253 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
14254
14255 * jump.c: Change argument types to rtx_insn *.
14256 * rtl.h: Adjust.
14257
14258 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
14259
14260 * lra-constraints.c: Change argument type to rtx_insn *.
14261
14262 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
14263
14264 * df-problems.c: Change argument type to rtx_insn *.
14265
14266 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
14267
14268 * combine.c: Change argument type to rtx_insn *.
14269
14270 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
14271
14272 * rtl.h: Adjust.
14273 * rtlanal.c: Change argument type to rtx_insn *.
14274
14275 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
14276
14277 * sched-deps.c: Change argument types to rtx_insn *.
14278 * sched-int.h: Adjust.
14279
14280 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
14281
14282 * dwarf2cfi.c: Change argument type to rtx_insn *.
14283
14284 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
14285
14286 * ira.c (decrease_live_ranges_number): Changetype of local
14287 variable to rtx_insn *.
14288 * recog.c: Change argument types to rtx_insn *.
14289 * recog.h: Adjust.
14290
14291 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
14292
14293 * reorg.c: Change argument types to rtx_insn *.
14294
14295 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
14296
14297 * ira-color.c: Change argument types to rtx_insn *.
14298 * lra-eliminations.c: Likewise.
14299 * ira.h: Adjust.
14300
14301 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
14302
14303 * gcse.c: Change argument types to rtx_insn *.
14304
14305 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
14306
14307 * cse.c (cse_change_cc0_mode): Change argument type to rtx_insn *.
14308
14309 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
14310
14311 * emit-rtl.c (emit_debug_insn_before): Change argument type to
14312 rtx_insn *.
14313 * rtl.h: Adjust.
14314
14315 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
14316
14317 * emit-rtl.c (emit_note_before): Change argument type to rtx_insn *.
14318 * rtl.h: Adjust.
14319
14320 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
14321
14322 * emit-rtl.c (emit_note_after): Change argument type to rtx_insn *.
14323 * rtl.h: Adjust.
14324
14325 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
14326
14327 * emit-rtl.c (prev_cc0_setter): Change argument type to rtx_insn *.
14328 * rtl.h: Adjust.
14329
14330 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
14331
14332 * rtlanal.c (noop_move_p): Change argument type to rtx_insn *.
14333 * rtl.h: Adjust.
14334
14335 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
14336
14337 * rtlanal.c (add_shallow_copy_of_reg_note): Change argument type
14338 to rtx_insn *.
14339 * rtl.h: Adjust.
14340
14341 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
14342
14343 * rtlanal.c (remove_reg_equal_equiv_notes): Change argument type
14344 to rtx_insn *.
14345 * rtl.h: Likewise.
14346
14347 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
14348
14349 * except.c (can_nonlocal_goto): Change type of argument to
14350 rtx_insn *.
14351 * rtl.h: Adjust.
14352
14353 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
14354
14355 * rtlanal.c (computed_jump_p): Cange argument type to rtx_insn *.
14356 * rtl.h: Adjust.
14357
14358 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
14359
14360 * rtlanal.c (in_insn_list_p): Renamed from in_expr_list_p.
14361 * cfgrtl.c (can_delete_label_p): Adjust.
14362 * rtl.h: likewise.
14363
14364 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
14365
14366 * reorg.c (stop_search_p): Change argument to rtx_insn *.
14367
14368 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
14369
14370 * except.c (make_reg_eh_region_note): Change argument to
14371 rtx_insn *.
14372 (make_reg_eh_region_note_nothrow_nononlocal): Likewise.
14373 * except.h: Adjust.
14374
14375 2015-05-08 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
14376
14377 * mode-switching.c (commit_mode_sets): Change type of local
14378 variable from rtx to rtx_insn *.
14379
14380 2015-05-08 Jim Wilson <jim.wilson@linaro.org>
14381
14382 * doc/install.texi (--enable-languages): Add missing jit and lto info.
14383 Add ^ to grep command.
14384 * doc/match-and-simplify.texi (GIMPLE API): Add missing fourth tree
14385 arg to last gimple_simplify declaration. Add missing gimple_build
14386 declaration for built-in function case with four tree args.
14387
14388 2015-05-08 Gregor Richards <gregor.richards@uwaterloo.ca>
14389 Szabolcs Nagy <szabolcs.nagy@arm.com>
14390
14391 * config/mips/linux.h (MUSL_DYNAMIC_LINKER32): Define.
14392 (MUSL_DYNAMIC_LINKER64, MUSL_DYNAMIC_LINKERN32): Define.
14393 (GNU_USER_DYNAMIC_LINKERN32): Update.
14394
14395 2015-05-08 Richard Biener <rguenther@suse.de>
14396
14397 PR tree-optimization/66036
14398 * tree-vect-data-refs.c (vect_compute_data_ref_alignment):
14399 Handle strided group loads.
14400 (vect_verify_datarefs_alignment): Likewise.
14401 (vect_enhance_data_refs_alignment): Likewise.
14402 (vect_analyze_group_access): Likewise.
14403 (vect_analyze_data_ref_access): Likewise.
14404 (vect_analyze_data_ref_accesses): Likewise.
14405 * tree-vect-stmts.c (vect_model_load_cost): Likewise.
14406 (vectorizable_load): Likewise.
14407
14408 2015-05-08 Segher Boessenkool <segher@kernel.crashing.org>
14409
14410 * config/rs6000/rs6000.md: Require operand inequality in one
14411 of the peepholes.
14412
14413 2015-05-08 Richard Sandiford <richard.sandiford@arm.com>
14414 Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
14415
14416 * config/i386/i386.md (<mode>_ldx, *<mode>_ldx): Remove mode
14417 from (set ...).
14418 * config/rx/rx.md (movdi, movdf): Likewise.
14419 Likewise for define_peephole2s.
14420
14421 2015-05-08 Alan Lawrence <alan.lawrence@arm.com>
14422
14423 * config/aarch64/arm_neon.h (vceq_s64, vceq_u64, vceqz_s64, vceqz_u64,
14424 vcge_s64, vcge_u64, vcgez_s64, vcgt_s64, vcgt_u64, vcgtz_s64, vcle_s64,
14425 vcle_u64, vclez_s64, vclt_s64, vclt_u64, vcltz_s64, vtst_s64,
14426 vtst_u64): Rewrite using gcc vector extensions.
14427
14428 2015-05-08 Alan Lawrence <alan.lawrence@arm.com>
14429
14430 * config/aarch64/aarch64-simd.md (aarch64_vcond_internal<mode><mode>,
14431 vcond<mode><mode>, vcondu<mode><mode>): Add DImode variant.
14432
14433 2015-05-08 Alan Lawrence <alan.lawrence@arm.com>
14434
14435 * optabs.c (vector_compare_rtx): Handle RTL operands having VOIDmode.
14436
14437 2015-05-08 Szabolcs Nagy <szabolcs.nagy@arm.com>
14438
14439 * config/glibc-stdint.h (OPTION_MUSL): Define.
14440 (INT_FAST16_TYPE, INT_FAST32_TYPE, UINT_FAST16_TYPE, UINT_FAST32_TYPE):
14441 Change the definition based on OPTION_MUSL for 64 bit targets.
14442 * config/linux.h (OPTION_MUSL): Redefine.
14443 * config/alpha/linux.h (OPTION_MUSL): Redefine.
14444 * config/rs6000/linux.h (OPTION_MUSL): Redefine.
14445 * config/rs6000/linux64.h (OPTION_MUSL): Redefine.
14446
14447 2015-05-08 Gregor Richards <gregor.richards@uwaterloo.ca>
14448 Szabolcs Nagy <szabolcs.nagy@arm.com>
14449
14450 * config.gcc (LIBC_MUSL): New tm_defines macro.
14451 * config/linux.h (OPTION_MUSL): Define.
14452 (MUSL_DYNAMIC_LINKER, MUSL_DYNAMIC_LINKER32,)
14453 (MUSL_DYNAMIC_LINKER64, MUSL_DYNAMIC_LINKERX32,)
14454 (INCLUDE_DEFAULTS_MUSL_GPP, INCLUDE_DEFAULTS_MUSL_LOCAL,)
14455 (INCLUDE_DEFAULTS_MUSL_PREFIX, INCLUDE_DEFAULTS_MUSL_CROSS,)
14456 (INCLUDE_DEFAULTS_MUSL_TOOL, INCLUDE_DEFAULTS_MUSL_NATIVE): Define.
14457 * config/linux.opt (mmusl): New option.
14458 * doc/invoke.texi (GNU/Linux Options): Document -mmusl.
14459 * configure.ac (gcc_cv_libc_provides_ssp): Add *-*-musl*.
14460 (gcc_cv_target_dl_iterate_phdr): Add *-linux-musl*.
14461 * configure: Regenerate.
14462
14463 2015-05-08 H.J. Lu <hongjiu.lu@intel.com>
14464 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
14465
14466 PR target/48904
14467 * config.gcc (x86_64-*-knetbsd*-gnu): Add i386/knetbsd-gnu64.h.
14468 * config/i386/knetbsd-gnu64.h: New file.
14469
14470 2015-05-08 Marek Polacek <polacek@redhat.com>
14471
14472 PR c/64918
14473 * doc/invoke.texi: Document -Woverride-init-side-effects.
14474
14475 2015-05-07 Marek Polacek <polacek@redhat.com>
14476
14477 PR c/65179
14478 * doc/invoke.texi: Document -Wshift-negative-value.
14479
14480 2015-05-06 Aditya Kumar <hiraditya@msn.com>
14481
14482 * gcov-tool.c (do_merge): Refactore to remove int ret.
14483 * ipa-icf.c (sem_item::hash_referenced_symbol_properties): Change
14484 !type == FUNC to type != FUNC.
14485 * reload.h (struct target_reload): Changee to type of
14486 x_spill_indirect_levels from bool to unsigned char.
14487
14488 2015-05-07 Richard Sandiford <richard.sandiford@arm.com>
14489
14490 * rtl.h (always_void_p): New function.
14491 * gengenrtl.c (always_void_p): Likewise.
14492 (genmacro): Don't add a mode parameter to gen_rtx_foo if rtxes
14493 with code foo are always VOIDmode.
14494 * genemit.c (gen_exp): Update gen_rtx_foo calls accordingly.
14495 * builtins.c, caller-save.c, calls.c, cfgexpand.c, combine.c,
14496 compare-elim.c, config/aarch64/aarch64.c,
14497 config/aarch64/aarch64.md, config/alpha/alpha.c,
14498 config/alpha/alpha.md, config/arc/arc.c, config/arc/arc.md,
14499 config/arm/arm-fixed.md, config/arm/arm.c, config/arm/arm.md,
14500 config/arm/ldrdstrd.md, config/arm/thumb2.md, config/arm/vfp.md,
14501 config/avr/avr.c, config/bfin/bfin.c, config/c6x/c6x.c,
14502 config/c6x/c6x.md, config/cr16/cr16.c, config/cris/cris.c,
14503 config/cris/cris.md, config/darwin.c, config/epiphany/epiphany.c,
14504 config/epiphany/epiphany.md, config/fr30/fr30.c, config/frv/frv.c,
14505 config/frv/frv.md, config/h8300/h8300.c, config/i386/i386.c,
14506 config/i386/i386.md, config/i386/sse.md, config/ia64/ia64.c,
14507 config/ia64/vect.md, config/iq2000/iq2000.c,
14508 config/iq2000/iq2000.md, config/lm32/lm32.c, config/lm32/lm32.md,
14509 config/m32c/m32c.c, config/m32r/m32r.c, config/m68k/m68k.c,
14510 config/m68k/m68k.md, config/mcore/mcore.c, config/mcore/mcore.md,
14511 config/mep/mep.c, config/microblaze/microblaze.c,
14512 config/mips/mips.c, config/mips/mips.md, config/mmix/mmix.c,
14513 config/mn10300/mn10300.c, config/msp430/msp430.c,
14514 config/nds32/nds32-memory-manipulation.c, config/nds32/nds32.c,
14515 config/nds32/nds32.md, config/nios2/nios2.c, config/nvptx/nvptx.c,
14516 config/pa/pa.c, config/pa/pa.md, config/rl78/rl78.c,
14517 config/rs6000/altivec.md, config/rs6000/rs6000.c,
14518 config/rs6000/rs6000.md, config/rs6000/vector.md,
14519 config/rs6000/vsx.md, config/rx/rx.c, config/rx/rx.md,
14520 config/s390/s390.c, config/s390/s390.md, config/sh/sh.c,
14521 config/sh/sh.md, config/sh/sh_treg_combine.cc,
14522 config/sparc/sparc.c, config/sparc/sparc.md, config/spu/spu.c,
14523 config/spu/spu.md, config/stormy16/stormy16.c,
14524 config/tilegx/tilegx.c, config/tilegx/tilegx.md,
14525 config/tilepro/tilepro.c, config/tilepro/tilepro.md,
14526 config/v850/v850.c, config/v850/v850.md, config/vax/vax.c,
14527 config/visium/visium.c, config/xtensa/xtensa.c, cprop.c, dse.c,
14528 expr.c, gcse.c, ifcvt.c, ira.c, jump.c, lower-subreg.c,
14529 lra-constraints.c, lra-eliminations.c, lra.c, postreload.c, ree.c,
14530 reg-stack.c, reload.c, reload1.c, reorg.c, sel-sched.c,
14531 var-tracking.c: Update calls accordingly.
14532
14533 2015-05-07 Segher Boessenkool <segher@kernel.crashing.org>
14534
14535 PR middle-end/192
14536 PR middle-end/54303
14537 * varasm.c (function_mergeable_rodata_prefix): New function.
14538 (mergeable_string_section): Use it.
14539 (mergeable_constant_section): Use it.
14540
14541 2015-05-07 Jeff Law <law@redhat.com>
14542
14543 PR target/39726
14544 * match.pd (bit_and (plus/minus (convert @0) (convert @1) mask): New
14545 simplifier to narrow arithmetic.
14546 * generic-match-head.c: (types_match, single_use): New functions.
14547 * gimple-match-head.c: (types_match, single_use): New functions.
14548
14549 2015-05-07 Venkataramanan Kumar <venkataramanan.kumar@amd.com>
14550
14551 * combine.c (make_compound_operation): Remove checks for PLUS/MINUS
14552 rtx type.
14553
14554 2015-05-07 Richard Biener <rguenther@suse.de>
14555
14556 PR tree-optimization/66002
14557 * passes.def: Schedule another pass_merge_phi after ifcombine, right
14558 before phiopt.
14559
14560 2015-05-07 Marek Polacek <polacek@redhat.com>
14561 Martin Uecker <uecker@eecs.berkeley.edu>
14562
14563 * doc/invoke.texi: Document -fsanitize=bounds-strict.
14564 * flag-types.h (enum sanitize_code): Add SANITIZE_BOUNDS_STRICT, or it
14565 into SANITIZE_NONDEFAULT.
14566 * opts.c (common_handle_option): Handle -fsanitize=bounds-strict.
14567
14568 2015-05-07 Uros Bizjak <ubizjak@gmail.com>
14569
14570 PR target/66015
14571 * config/alpha/alpha.c (alpha_override_options_after_change): New.
14572 (TARGET_OVERRIDE_OPTIONS_AFTER_CHANGE): New.
14573 (alpha_override_options): Move align_loops, align_jumps and
14574 align_functions handling into alpha_override_options_after_change.
14575
14576 2015-05-06 Sandra Loosemore <sandra@codesourcery.com>
14577 Chris Jones <chrisj@nvidia.com>
14578 Joshua Conner <jconner@nvidia.com>
14579
14580 * config/arm/unknown-elf.h (STARTFILE_SPEC): Add conditional
14581 linking of crtfastmath.o.
14582 * config/arm/linux-eabi.h (STARTFILE_SPEC): Likewise.
14583
14584 2015-05-06 Segher Boessenkool <segher@kernel.crashing.org>
14585
14586 * config/rs6000/rs6000.md (cstore<mode>4_signed_imm): New expander.
14587 (cstore<mode>4_unsigned_imm): New expander.
14588 (cstore<mode>4): Remove empty constraint strings. Use the new
14589 expanders.
14590
14591 2015-05-06 Yvan Roux <yvan.roux@linaro.org>
14592
14593 PR target/64208
14594 * config/arm/iwmmxt.md ("*iwmmxt_arm_movdi"): Cleanup redundant
14595 alternatives.
14596
14597 2015-05-06 Szabolcs Nagy <szabolcs.nagy@arm.com>
14598
14599 * config/aarch64/geniterators.sh: Use standard BRE in sed.
14600
14601 2015-05-06 Alan Modra <amodra@gmail.com>
14602
14603 PR target/66033
14604 * config/rs6000/rs6000.md (nop): Use an unspec pattern.
14605 (UNSPEC_NOP): Define.
14606 (reload_vsx_from_gpr<mode>): Add missing DONE.
14607 (reload_gpr_from_vsx<mode>): Likewise.
14608 * config/rs6000/vsx.md (vsx_mul_v2di): Likewise.
14609 (vsx_div_v2di, vsx_udiv_v2di): Likewise.
14610
14611 2015-05-06 Christian Bruel <christian.bruel@st.com>
14612
14613 PR target/66015
14614 * config/aarch64/aarch64.c (aarch64_override_options): Move align_loops,
14615 align_jumps, align_functions into aarch64_override_options_after_change.
14616
14617 2015-05-06 Richard Biener <rguenther@suse.de>
14618
14619 * tree-vect-slp.c (vect_supported_load_permutation_p): Use
14620 vect_transform_slp_perm_load to check if we support a permutation
14621 for basic-block vectorization.
14622
14623 2015-05-06 Nick Clifton <nickc@redhat.com>
14624
14625 * config/rl78/rl78.c (need_to_save): Save register 22 if it is
14626 used, even if it is not being used as a frame pointer.
14627
14628 2015-05-05 Jason Merrill <jason@redhat.com>
14629
14630 * dwarf2out.c (gen_member_die): Don't emit anything for an
14631 anonymous class constructor.
14632
14633 2015-05-05 David Malcolm <dmalcolm@redhat.com>
14634
14635 * auto-profile.c (afdo_find_equiv_class): Fix indentation so
14636 that it reflects the block structure.
14637 (afdo_propagate_edge): Likewise.
14638 (afdo_calculate_branch_prob): Likewise.
14639 (afdo_annotate_cfg): Likewise.
14640 * cfgcleanup.c (equal_different_set_p): Likewise.
14641 (try_crossjump_to_edge): Likewise.
14642 * cgraph.c (cgraph_node::verify_node): Likewise.
14643 * cgraphunit.c (expand_all_functions): Likewise.
14644 * config/i386/i386.c (ix86_expand_copysign): Likewise.
14645 (exact_dependency_1): Likewise.
14646 * dwarf2asm.c (dw2_output_indirect_constants): Likewise.
14647 * dwarf2out.c (tree_add_const_value_attribute_for_decl): Likewise.
14648 * gensupport.c (process_define_subst): Likewise.
14649 * lto-wrapper.c (merge_and_complain): Likewise.
14650 * tree-if-conv.c (if_convertible_bb_p): Likewise.
14651 * tree-ssa-loop-prefetch.c (find_or_create_group): Likewise.
14652 * tree-ssa-tail-merge.c (gsi_advance_fw_nondebug_nonlocal): Likewise.
14653 * tree-vect-data-refs.c (vect_grouped_load_supported): Likewise.
14654 * tree-vect-loop.c (vectorizable_reduction): Likewise.
14655 * tree-vect-slp.c (vect_transform_slp_perm_load): Likewise.
14656 * tree-vect-stmts.c (vectorizable_shift): Likewise.
14657 * tree-vrp.c (vrp_finalize): Likewise.
14658 * tree.c (variably_modified_type_p): Likewise.
14659
14660 2015-05-05 Jack Howarth <howarth.at.gcc@gmail.com>
14661
14662 * config.gcc: Use darwin9.h, darwin10.h and darwin12.h
14663 on darwin12 and later.
14664 * config/darwin12.h (LINK_GCC_C_SEQUENCE_SPEC): Add
14665 file to pass -rdynamic on darwin12 and later.
14666 * config/darwin.opt (rdynamic): Add.
14667
14668 2015-05-05 Uros Bizjak <ubizjak@gmail.com>
14669
14670 * doc/extend.texi (C Extensions): Update menu for moved Variable
14671 Attributes and Type Attributes sections.
14672
14673 2015-05-05 Uros Bizjak <ubizjak@gmail.com>
14674
14675 PR target/65990
14676 * config/i386/i386.c (ix86_parse_stringop_strategy_string): Error out
14677 if rep_8byte stringop strategy was specified for 32-bit target.
14678
14679 2015-05-05 Ilya Tocar <ilya.tocar@intel.com>
14680
14681 PR target/65915
14682 * config/i386/i386.md (vector convert to float spltiter): Check for
14683 xmm16+, when splitting scalar float conversion.
14684 * config/i386/sse.md (sse2_cvtsi2sd): Support EVEX version.
14685
14686 2015-05-05 Nick Clifton <nickc@redhat.com>
14687
14688 * config/msp430/msp430-opts.h (enum msp430_regions): New.
14689 * config/msp430/msp430.c (msp430_override_options): Complain if
14690 -mcode-region or -mdata-region is used on a non MSP430X.
14691 (msp430_section_attr): New function. Checks lower, upper and
14692 either attributes.
14693 (msp430_attribute_table): Add lower, upper and either.
14694 (gen_prefix): New function. Generates a prefix for a section
14695 name.
14696 (msp430_select_section): New function - handles the choice of
14697 section for an object. Takes into account memory region
14698 attributes and options.
14699 (msp430_function_section): Use gen_prefix.
14700 (TARGET_SECTION_TYPE_FLAGS): Define.
14701 (msp430_section_type_flags): New function.
14702 (TARGET_ASM_UNIQUE_SECTION): Define.
14703 (msp430_unique_section): New function.
14704 (msp430_output_aligned_decl_common): New function.
14705 (msp430_do_not_relax_short_jumps): New function.
14706 * config/msp430/msp430.h (USE_SELECT_SECTION_FOR_FUNCTIONS):
14707 Define.
14708 (ASM_OUTPUT_ALIGNED_DECL_COMMON): Define.
14709 * config/msp430/msp430-protos.h
14710 (msp430_do_not_relax_short_jumps): New prototype.
14711 (msp430_output_aligned_decl_common): New prototype.
14712 * config/msp430/msp430.md (length): New attribute.
14713 (cbranchhi4_real): If msp430_do_not_relax_short_jumps is true
14714 then use a long code sequence for short jumps.
14715 * config/msp430/msp430.opt (mcode-region): New.
14716 (mdata-region): New.
14717 * doc/invoke.texi: Document new options.
14718 * doc/extend.texi: Document new attributes.
14719
14720 2015-05-05 Matthew Wahab <matthew.wahab@arm.com>
14721
14722 * gcc/config/aarch64-protos.h (struct cpu_branch_cost): New.
14723 (tune_params): Add field branch_costs.
14724 (aarch64_branch_cost): Declare.
14725 * gcc/config/aarch64.c (generic_branch_cost): New.
14726 (generic_tunings): Set field cpu_branch_cost to generic_branch_cost.
14727 (cortexa53_tunings): Likewise.
14728 (cortexa57_tunings): Likewise.
14729 (thunderx_tunings): Likewise.
14730 (xgene1_tunings): Likewise.
14731 (aarch64_branch_cost): Define.
14732 * gcc/config/aarch64/aarch64.h (BRANCH_COST): Redefine.
14733
14734 2015-05-05 Uros Bizjak <ubizjak@gmail.com>
14735
14736 * config/i386/i386.c: Use HOST_WIDE_INT_1 instead of (HOST_WIDE_INT) 1
14737 and HOST_WIDE_INT_1U instead of (unsigned HOST_WIDE_INT) 1.
14738 * config/i386/i386.md: Ditto.
14739 * config/i386/winnt.c: Ditto.
14740
14741 2015-05-05 Matthew Wahab <matthew.wahab@arm.com>
14742
14743 * doc/extend.texi (__atomic Builtins): Move implementation details
14744 to the end of the description, rewrite opening paragraphs, state
14745 difference with __sync builtins, state C11/C++11 assumptions,
14746 weaken itemized descriptions, add explanation of memory model
14747 behaviour, expand description of compare-exchange, simplify text.
14748
14749 2015-05-05 Renlin Li <renlin.li@arm.com>
14750
14751 * config/aarch64/aarch64.md (add<mode>3): Use mov when allowed.
14752
14753 2015-05-05 Yvan Roux <yvan.roux@linaro.org>
14754
14755 * config/aarch64/aarch64-elf-raw.h (CA53_ERR_843419_SPEC): Define.
14756 (LINK_SPEC): Include CA53_ERR_843419_SPEC.
14757 * config/aarch64/aarch64-linux.h (CA53_ERR_843419_SPEC): Define.
14758 (LINK_SPEC): Include CA53_ERR_843419_SPEC.
14759 * config/aarch64/aarch64.opt (mfix-cortex-a53-843419): New option.
14760 * configure: Regenerate.
14761 * configure.ac: Add --enable-fix-cortex-a53-843419 option.
14762 * doc/install.texi (aarch64*-*-*): Document new
14763 --enable-fix-cortex-a53-843419 option.
14764 * doc/invoke.texi (AArch64 Options): Document -mfix-cortex-a53-843419
14765 and -mno-fix-cortex-a53-843419 options.
14766
14767 2015-05-05 Uros Bizjak <ubizjak@gmail.com>
14768
14769 PR target/65871
14770 * config/i386/i386.md (*bmi_andn_<mode>_ccno): New pattern.
14771
14772 2015-05-04 Jan Hubicka <hubicka@ucw.cz>
14773
14774 * tree.c (verify_type): Check various uses of TYPE_MAXVAL;
14775 fix overactive TYPE_MIN_VALUE check and add FIXME for type
14776 compatibility problems.
14777
14778 2015-05-04 Ajit Agarwal <ajitkum@xilinx.com>
14779
14780 * config/microblaze/microblaze.md (cbranchsi4): Added immediate
14781 constraints.
14782 (cbranchsi4_reg): New.
14783 * config/microblaze/microblaze.c
14784 (microblaze_expand_conditional_branch_reg): New.
14785 * config/microblaze/microblaze-protos.h
14786 (microblaze_expand_conditional_branch_reg): New prototype.
14787
14788 2015-05-04 Ajit Agarwal <ajitkum@xilinx.com>
14789
14790 * config/microblaze/microblaze.md (peephole2): New.
14791
14792 2015-05-04 Jeff Law <law@redhat.com>
14793
14794 Revert:
14795 2015-05-04 Jeff Law <law@redhat.com>
14796
14797 * match.pd (bit_and (plus/minus (convert @0) (convert @1) mask): New
14798 simplifier to narrow arithmetic.
14799 * generic-match-head.c: (types_match, single_use): New functions.
14800 * gimple-match-head.c: (types_match, single_use): New functions.
14801
14802 2015-05-04 Kaz Kojima <kkojima@gcc.gnu.org>
14803
14804 PR target/65987
14805 * config/sh/sh.c (output_far_jump): Take into account crossing jumps.
14806 (split_branches): Likewise.
14807
14808 2015-05-04 Sandra Loosemore <sandra@codesourcery.com>
14809
14810 * common.opt (fdelete-null-pointer-checks): Init to -1.
14811 * config/nios2/elf.h (SUBTARGET_OVERRIDE_OPTIONS): Define to
14812 override flag_delete_null_pointer_checks default.
14813 * doc/invoke.texi (-fdelete-null-pointer-checks): Clarify
14814 behavior re address zero. Better document target-specific behavior.
14815 (-fisolate-errneous-paths-dereference): Mention relationship to
14816 -fdelete-null-pointer-checks.
14817
14818 2015-05-04 Jakub Jelinek <jakub@redhat.com>
14819
14820 PR tree-optimization/65984
14821 * ubsan.c: Include tree-cfg.h.
14822 (instrument_bool_enum_load): Use stmt_ends_bb_p instead of
14823 stmt_could_throw_p test, rename can_throw variable to ends_bb.
14824
14825 2015-05-04 Uros Bizjak <ubizjak@gmail.com>
14826
14827 * config/i386/i386.c: Change GET_CODE (...) == CONST_DOUBLE check
14828 to CONST_DOUBLE_P predicate.
14829 (standard_sse_constant_p): Return 0 for !TARGET_SSE.
14830 (ix86_legitimate_constant_p) <case CONST_WIDE_INT>: For 32bit targets,
14831 allow only operands that satisfy standard_sse_constant_p predicate.
14832 * config/i386/i386.md: Change GET_CODE (...) == CONST_DOUBLE check
14833 to CONST_DOUBLE_P predicate.
14834
14835 2015-05-04 Jeff Law <law@redhat.com>
14836
14837 * match.pd (bit_and (plus/minus (convert @0) (convert @1) mask): New
14838 simplifier to narrow arithmetic.
14839 * generic-match-head.c: (types_match, single_use): New functions.
14840 * gimple-match-head.c: (types_match, single_use): New functions.
14841
14842 2015-05-04 Andreas Tobler <andreast@gcc.gnu.org>
14843
14844 * config/arm/arm.c: Restore bootstrap.
14845
14846 2015-05-04 Uros Bizjak <ubizjak@gmail.com>
14847
14848 * config/i386/i386.h (TARGET_SUPPORTS_WIDE_INT): New define.
14849 * config/i386/i386.c (ix86_legitimate_constant_p): Handle TImode
14850 as CONST_WIDE_INT, not CONST_DOUBLE.
14851 (ix86_cannot_force_const_mem): Handle CONST_WIDE_INT.
14852 (output_pic_addr_const): Do not handle VOIDmode CONST_DOUBLEs.
14853 (ix86_find_base_term): Do not check for CONST_DOUBLE.
14854 (ix86_print_operand): Do not handle non-FPmode CONST_DOUBLEs.
14855 (ix86_build_signbit_mask): Rewrite using wide ints.
14856 (ix86_split_to_parts) [HOST_BITS_PER_WIDE_INT < 64]: Remove.
14857 (ix86_rtx_costs): Handle CONST_WIDE_INT.
14858 (find_constant): Ditto.
14859 * config/i386/i386.md (bts, btr, btc peepholes): Rewrite
14860 using gen_int_mode.
14861 * config/i386/predicates.md (x86_64_immediate_operand)
14862 <case CONST_INT>: Remove HOST_BITS_PER_WIDE_INT == 32 code.
14863 (x86_64_zext_immediate_operand): Remove CONST_DOUBLE handling.
14864 <case CONST_INT>: Remove HOST_BITS_PER_WIDE_INT == 32 code.
14865 (const0_operand): Also match const_wide_int.
14866 (constm1_operand): Ditto.
14867 (const1_operand): Ditto.
14868
14869 2015-05-04 Richard Biener <rguenther@suse.de>
14870
14871 PR tree-optimization/65965
14872 * tree-vect-data-refs.c (vect_analyze_data_ref_accesses): Split
14873 store groups at gaps.
14874
14875 2015-05-04 Richard Biener <rguenther@suse.de>
14876
14877 PR tree-optimization/65935
14878 * tree-vect-slp.c (vect_build_slp_tree): If we swapped operands
14879 then make sure to apply that swapping to the IL.
14880
14881 2015-05-04 Jakub Jelinek <jakub@redhat.com>
14882
14883 * Makefile.in (PATCHLEVEL_c): New variable.
14884 (DATESTAMP_s, REVISION_s): If PATCHLEVEL_c is not 0,
14885 expand the same way as if DEVPHASE_c was non-empty.
14886
14887 2015-05-04 Kai Tietz <ktietz@redhat.com>
14888
14889 PR target/65559
14890 * lto-wrapper.c (run_gcc): Open filename
14891 in binary-mode.
14892
14893 2015-05-03 Sandra Loosemore <sandra@codesourcery.com>
14894
14895 * doc/extend.texi (Variable Attributes, Type Attributes): Move
14896 sections up in file, to immediately after the Function Attributes
14897 section.
14898
14899 2015-05-02 Jan Hubicka <hubicka@ucw.cz>
14900
14901 * tree.c (verify_type): Check various uses of TYPE_MINVAL.
14902
14903 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
14904
14905 * tree-outof-ssa.c (emit_partition_copy): Return rtx_insn *.
14906 (insert_partition_copy_on_edge): Adjust.
14907 (insert_rtx_to_part_on_edge): Likewise.
14908 (insert_part_to_rtx_on_edge): Likewise.
14909
14910 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
14911
14912 * function.c (set_return_jump_label): Change type of argument to
14913 rtx_insn *.
14914 * function.h (set_return_jump_label): Adjust.
14915
14916 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
14917
14918 * reload.h (struct reg_equivs_t): Change type of init to
14919 rtx_insn *.
14920 * ira.c (fix_reg_equiv_init): Adjust.
14921 * reload1.c (eliminate_regs_1): Likewise.
14922 (init_eliminable_invariants): Likewise.
14923
14924 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
14925
14926 * cselib.c (fp_setter_insn): Take a rtx_insn *.
14927 * cselib.h (fp_setter_insn): Adjust.
14928
14929 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
14930
14931 * recog.c (struct validate_replace_src_data): Change type of
14932 insn field to rtx_insn *.
14933 (validate_replace_src_group): Change type of argument to rtx_insn *.
14934 * recog.h (validate_replace_src_group): Adjust.
14935
14936 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
14937
14938 * haifa-sched.c: Change the type of some variables to rtx_insn *.
14939 * sched-deps.c: Likewise.
14940 * sched-int.h: Likewise.
14941 * sched-rgn.c: Likewise.
14942 * sel-sched.c: Likewise.
14943
14944 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
14945
14946 to rtx_insn *.
14947 * config/i386/i386.c: Change the type of some arguments to
14948 rtx_insn *.
14949 * config/arm/arm.c: Likewise.
14950
14951 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
14952
14953 * lra-constraints.c: Change type of some arguments to rtx_insn *.
14954
14955 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
14956
14957 * regcprop.c (kill_autoinc_value): Change type of argument to
14958 rtx_insn *.
14959
14960 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
14961
14962 * genrecog.c (print_subroutine): Adjust.
14963 * recog.c (get_bool_attr_mask_uncached): Likewise.
14964 * recog.h (struct recog_data_d): Change the type of insn to
14965 rtx_insn *.
14966
14967 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
14968
14969 * dwarf2cfi.c (add_cfi_insn): Change type to rtx_insn *.
14970
14971 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
14972
14973 * df-problems.c (df_set_note): Change type of argument to
14974 rtx_insn *.
14975
14976 2015-05-02 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
14977
14978 * builtins.c (expand_builtin_trap): Change type of local
14979 variable to rtx_insn *.
14980 (add_sched_insns_for_speculation): Likewise.
14981 (ix86_emit_save_regs): Likewise.
14982 (get_scratch_register_on_entry): Likewise.
14983 (ix86_emit_restore_reg_using_pop): Likewise.
14984 (ix86_emit_leave): Likewise.
14985 (ix86_emit_restore_regs_using_mov): Likewise.
14986 (ix86_expand_epilogue): Likewise.
14987 Likewise.
14988 (rl78_alloc_physical_registers_umul): Likewise.
14989 * cselib.c (discard_useless_locs): Likewise.
14990 (cselib_invalidate_regno): Likewise.
14991 (cselib_invalidate_mem): Likewise.
14992 * function.c (expand_function_start): Likewise.
14993 (emit_use_return_register_into_block): Likewise.
14994 * gcse.c: Likewise.
14995 * haifa-sched.c (ok_for_early_queue_removal): Likewise.
14996 * ifcvt.c (noce_get_alt_condition): Likewise.
14997 * loop-doloop.c (doloop_condition_get): Likewise.
14998 * lra-constraints.c (inherit_in_ebb): Likewise.
14999 * modulo-sched.c (sms_schedule_by_order): Likewise.
15000 * recog.c (next_insn_tests_no_inequality): Likewise.
15001 * reorg.c (emit_delay_sequence): Likewise.
15002 (update_reg_dead_notes): Likewise.
15003 (fix_reg_dead_note): Likewise.
15004 (fill_slots_from_thread): Likewise.
15005 (delete_computation): Likewise.
15006
15007 2015-05-01 Sandra Loosemore <sandra@codesourcery.com>
15008
15009 * doc/extend.texi (Variable Attributes): Add menu and proper
15010 @nodes to subsections. Move Microsoft Windows attributes to
15011 their own subsection.
15012 (Type Attributes): Reorganize introduction to remove duplicate
15013 list of attributes. Add menu and proper @nodes to subsections.
15014 Alphabetize the main table of common attributes.
15015
15016 2015-05-01 Rasmus Villemoes <rv@rasmusvillemoes.dk>
15017
15018 * match.pd: New simplification patterns.
15019 (x + (x & 1)) -> ((x + 1) & ~1)
15020 (x & ~(x & y)) -> ((x & ~y))
15021 (x | ~(x | y)) -> ((x | ~y))
15022
15023 2015-05-01 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
15024
15025 * target.def (attribute_table): Mention that struct attribute_spec
15026 is defined in tree-core.h rather than tree.h
15027 * doc/tm.texi: Regenerate.
15028
15029 2015-05-01 Richard Sandiford <richard.sandiford@arm.com>
15030
15031 * genrecog.c (test): Rename to rtx_test. Update rest of file
15032 accordingly.
15033
15034 2015-05-01 Andreas Schwab <schwab@linux-m68k.org>
15035
15036 PR translation/65959
15037 * params.h (DEFPARAM): Rename msgid to nocmsgid.
15038
15039 2015-05-01 Wilco Dijkstra <wdijkstr@arm.com>
15040
15041 * gcc/config/aarch64/aarch64-protos.h (tune_params):
15042 Add min_div_recip_mul_sf and min_div_recip_mul_df fields.
15043 * gcc/config/aarch64/aarch64.c (aarch64_min_divisions_for_recip_mul):
15044 Return value depending on target.
15045 (generic_tunings): Initialize new target settings.
15046 (cortexa53_tunings): Likewise.
15047 (cortexa57_tunings): Likewise.
15048 (thunderx_tunings): Likewise.
15049 (xgene1_tunings): Likewise.
15050
15051 2015-05-01 Wilco Dijkstra <wdijkstr@arm.com>
15052
15053 * gcc/config/arm/aarch-cost-tables.h (cortexa53_extra_costs):
15054 Make Cortex-A53 shift costs more accurate.
15055
15056 2015-05-01 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
15057
15058 * config/aarch64/aarch64.c (aarch64_rtx_costs): Handle FLOAT and
15059 UNSIGNED_FLOAT.
15060
15061 2015-05-01 Wilco Dijkstra <wdijkstr@arm.com>
15062
15063 * gcc/config/aarch64/aarch64.c (aarch64_rtx_costs):
15064 Calculate cost of op0 and op1 in PLUS and MINUS cases.
15065
15066 2015-05-01 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
15067
15068 * config/aarch64/aarch64.c (aarch64_rtx_costs, COMPARE case):
15069 Add cost of op0 in the compare-with-fpzero case.
15070
15071 2015-04-30 David Malcolm <dmalcolm@redhat.com>
15072
15073 * builtins.c (fold_builtin_1): Remove spurious second
15074 semicolon.
15075 * cgraph.h (symtab_node::get_availability): Likewise.
15076 * opts.c (common_handle_option): Remove spurious second semicolon.
15077 * tree-ssa-loop-ivopts.c (extract_cond_operands): Likewise.
15078 * tree-ssa-loop-niter.c (derive_constant_upper_bound_ops): Likewise.
15079
15080 2015-04-30 Caroline Tice <cmtice@google.com>
15081
15082 PR gcov-profile/65929
15083 * config/elfos.h (ASM_DECLARE_COLD_FUNCTION_NAME): New macro definition.
15084 (ASM_DECLARE_COLD_FUNCTION_SIZE): New macro definition.
15085 * doc/tm.texi.in (ASM_DECLARE_COLD_FUNCTION_NAME): Document new macro.
15086 (ASM_DECLARE_COLD_FUNCTION_SIZE): Document new macro.
15087 * doc/tm.texi: Regenerate.
15088 * final.c (final_scan_insn): Use ASM_DECLARE_COLD_FUNCTION_NAME
15089 instead of ASM_DECLARE_FUNCTION_NAME for cold partition name.
15090 * varasm.c (assemble_end_function): Use ASM_DECLARE_COLD_FUNCTION_SIZE
15091 instead of ASM_DECLARE_FUNCTION_SIZE for cold partition size.
15092
15093 2015-04-30 Marek Polacek <polacek@redhat.com>
15094
15095 * varasm.c (handle_cache_entry): Fix logic.
15096
15097 2015-04-30 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
15098
15099 * config/aarch64/aarch64.md (*extr<mode>5_insn_alt): New pattern.
15100 (*extrsi5_insn_uxtw_alt): Likewise.
15101 * config/aarch64/aarch64.c (aarch64_extr_rtx_p): New function.
15102 (aarch64_rtx_costs, IOR case): Use above to properly cost extr
15103 operations.
15104
15105 2015-04-30 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
15106
15107 * config/aarch64/aarch64.c (aarch64_rtx_costs): Handle pattern for
15108 fabd in ABS case.
15109
15110 2015-04-30 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
15111
15112 * config/aarch64/aarch64.md
15113 (*eor_one_cmpl_<SHIFT:optab><mode>3_alt): New pattern.
15114 (*eor_one_cmpl_<SHIFT:optab>sidi3_alt_ze): Likewise.
15115 * config/aarch64/aarch64.c (aarch64_rtx_costs): Handle MVN-shift
15116 appropriately. Handle alternative EON form.
15117
15118 2015-04-30 Renlin Li <renlin.li@arm.com>
15119
15120 * config/aarch64/aarch64-simd.md (vec_shr): Defined as an unspec.
15121 * config/aarch64/iterators.md (unspec): Add UNSPEC_VEC_SHR.
15122
15123 2015-04-30 Jan Hubicka <hubicka@ucw.cz>
15124
15125 PR ipa/65873
15126 * ipa-inline.c (can_inline_edge_p): It is safe to inline across
15127 -fstrict-aliasing boundaries.
15128
15129 2015-04-30 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
15130
15131 * config/aarch64/aarch64.c (aarch64_rtx_mult_cost): Handle MNEG
15132 and [SU]MNEGL patterns.
15133
15134 2015-04-30 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
15135
15136 * config/aarch64/aarch64.c (aarch64_shift_p): New function.
15137 (aarch64_rtx_mult_cost): Update comment to reflect that it also handles
15138 combined arithmetic-shift ops. Properly handle all shift and extend
15139 operations that can occur in combination with PLUS/MINUS.
15140 Rename maybe_fma to compound_p.
15141 (aarch64_rtx_costs): Use aarch64_shift_p when costing compound
15142 arithmetic and shift operations.
15143
15144 2015-04-30 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
15145
15146 * config/aarch64/aarch64.c (aarch64_rtx_costs): Use extend_arith
15147 rather than arith_shift cost when costing ADD/MINUS of an
15148 extended value.
15149
15150 2015-04-30 Jan Hubicka <hubicka@ucw.cz>
15151
15152 PR lto/65948
15153 * ipa-devirt.c (odr_types_equivalent_p): NULLPTR_TYPE is equivalent
15154 to itself.
15155
15156 2015-04-30 Richard Sandiford <richard.sandiford@arm.com>
15157
15158 * genrecog.c (simplify_tests): Check that CONST_INT and XWINT tests
15159 are for the same position.
15160
15161 2015-04-29 Aditya Kumar <hiraditya@hotmail.com>
15162
15163 * tree-vectorizer.c (set_uid_loop_bbs): New. Factored out of
15164 vectorize_loops.
15165 (vectorize_loops): Use it.
15166
15167 2015-04-29 Jan Hubicka <hubicka@ucw.cz>
15168
15169 * ipa-devirt.c (odr_subtypes_equivalent_p): Compare TYPE_NAME only
15170 for aggregate types.
15171 (register_odr_type): Be ready for MAIN_VARIANT of ODR type
15172 type to be non_ODR.
15173 * tree.c (need_assembler_name_p): Compute mangled name for
15174 non-fundamental types and integer types.
15175
15176 2015-04-29 Mikhail Maltsev <maltsevm@gmail.com>
15177
15178 * dojump.c (do_compare_rtx_and_jump): Use std::swap instead of
15179 manual swaps.
15180 * expr.c (expand_expr_real_2): Likewise.
15181
15182 2015-04-29 Jan Hubicka <hubicka@ucw.cz>
15183
15184 * tree.c (build_common_builtin_nodes): Do not build
15185 __builtin_alloca_with_align as equivalent of library alloca.
15186
15187 2015-04-29 Jan Hubicka <hubicka@ucw.cz>
15188
15189 * dwarf2out.c (gen_type_die_with_usage): Call verify_type.
15190 * ipa-chkp.c (chkp_copy_function_type_adding_bounds): Do not produce
15191 bugus variants.
15192 * tree.c: Include print-tree.h and ipa-utils.h
15193 (free_lang_data_in_type): Clear TYPE_VFIELD leaked by C FE.
15194 (free_lang_data_in_cgraph): Call verify_type.
15195 (verify_type_variant): New function.
15196 (verify_type): New function.
15197 * tree.h (verify_type): Declare.
15198
15199 2015-04-29 Steve Ellcey <sellcey@imgtec.com>
15200
15201 * config/mips/mips-cpus.def: (mips4): Change default processor
15202 from PROCESSOR_R8000 to PROCESSOR_R10000.
15203
15204 2015-04-29 Petar Jovanovic <petar.jovanovic@rt-rk.com>
15205
15206 * config/mips/mips.h (CRT_CALL_STATIC_FUNCTION): Fix the macro to use
15207 la/jalr instead of jal.
15208
15209 2015-04-29 Uros Bizjak <ubizjak@gmail.com>
15210
15211 PR target/65871
15212 * config/i386/i386.md (*bmi_bextr_<mode>_ccz): New pattern.
15213 (*bmi2_bzhi_<mode>3_1_ccz): Ditto.
15214 (setcc+movzbl peephole2): Check also clobbered reg.
15215 (setcc+andl peephole2): Ditto.
15216
15217 2015-04-29 Thomas Schwinge <thomas@codesourcery.com>
15218
15219 PR libgomp/65099
15220 * config/nvptx/mkoffload.c (target_ilp32): New variable.
15221 (main): Set it depending on "-foffload-abi=[...]".
15222 (compile_native, main): Use it to pass "-m32" or "-m64" to the
15223 compiler.
15224
15225 2015-04-29 Alan Lawrence <alan.lawrence@arm.com>
15226
15227 PR target/65770
15228 * config/aarch64/aarch64-simd.md (vec_store_lanesoi_lane<mode>,
15229 vec_store_lanesci_lane<mode>, vec_store_lanesxi_lane<mode>):
15230 Flip lane index back at assembly time for bigendian.
15231
15232 2015-04-29 Thomas Schwinge <thomas@codesourcery.com>
15233
15234 * tree.h (OMP_STANDALONE_CLAUSES): New macro.
15235 * gimplify.c (gimplify_omp_workshare): Use it.
15236
15237 2015-04-29 Richard Sandiford <richard.sandiford@arm.com>
15238
15239 * Makefile.in (build/genrecog.o): Depend on inchash.h.
15240 (build/genrecog$(build_exeext): Depend on build/hash-table.o and
15241 build/inchash.o
15242 * genrecog.c: Rewrite most of the code except for the third page.
15243
15244 2015-04-29 Richard Sandiford <richard.sandiford@arm.com>
15245
15246 * inchash.h, inchash.c: Include bconfig.h for build objects.
15247 * Makefile.in (build/inchash.o): New rule.
15248
15249 2015-04-29 Yvan Roux <yvan.roux@linaro.org>
15250
15251 PR target/65924
15252 * config/arm/thumb2.md (*thumb2_addsi3_compare0_scratch): Fix operand
15253 number in type attribute expression.
15254
15255 2015-04-29 Richard Sandiford <richard.sandiford@arm.com>
15256
15257 * loop-iv.c (canon_condition): Generalize to all types of integer
15258 constant.
15259
15260 2015-04-29 Bernhard Reuther-Fischer <aldot@gcc.gnu.org>
15261
15262 * gimple-walk.c: Prune duplicate or unneeded includes.
15263 (walk_gimple_asm): Only call parse_input_constraint or
15264 parse_output_constraint if their findings are used.
15265 Honour parse_input_constraint and parse_output_constraint
15266 result.
15267
15268 2015-04-29 Alan Lawrence <alan.lawrence@arm.com>
15269
15270 * config/arm/neon.md (vec_shl<mode>, vec_shr<mode>): Remove.
15271
15272 2015-04-29 Tom de Vries <tom@codesourcery.com>
15273
15274 PR tree-optimization/65893
15275 * passes.def (pass_all_optimizations): Move pass_stdarg to after
15276 pass_dce.
15277
15278 2015-04-29 Richard Biener <rguenther@suse.de>
15279
15280 * tree-vect-data-refs.c (vect_analyze_group_access): Properly
15281 compute GROUP_SIZE for basic-block SLP.
15282 * tree-vect-slp.c (vect_get_place_in_interleaving_chain): Properly
15283 take into account gaps.
15284 (vect_get_mask_element): Properly reject references to previous
15285 vectors.
15286 (vect_transform_slp_perm_load): Likewise.
15287
15288 2015-04-29 Christian Bruel <christian.bruel@st.com>
15289
15290 PR target/64835
15291 * config/i386/i386.c (ix86_default_align): New function.
15292 (ix86_override_options_after_change): Call ix86_default_align.
15293 (TARGET_OVERRIDE_OPTIONS_AFTER_CHANGE): New hook.
15294 (ix86_override_options_after_change): New function.
15295
15296 2015-04-28 Jeff Law <law@redhat.com>
15297
15298 * tree-ssa-dom.c (record_equality); Fix comment typos.
15299
15300 2015-04-28 Tom de Vries <tom@codesourcery.com>
15301
15302 PR tree-optimization/65887
15303 * gimplify.c (gimplify_modify_expr): Remove ifn_va_arg ap fixup.
15304
15305 2015-04-28 Sandra Loosemore <sandra@codesourcery.com>
15306
15307 * doc/extend.texi (Declaring Attributes of Functions): Split into
15308 subsections by target. Alphabetize the table of common attributes.
15309 Rewrite some of the introductory text to reflect the new structure.
15310 Update some cross-references to point to the new subsections.
15311 (Attribute Syntax): Put paragraph about "__" naming here. Remove
15312 duplicate copies in the discussion of function, label, and type
15313 attributes.
15314
15315 2015-04-28 Dominique d'Humieres <dominiq@lps.ens.fr>
15316
15317 PR bootstrap/65910
15318 * varasm.c (assemble_end_function): Guard ASM_DECLARE_FUNCTION_SIZE.
15319
15320 2015-04-28 Jason Merrill <jason@redhat.com>
15321
15322 PR c++/65734
15323 * stor-layout.c (layout_type): Layout the TYPE_MAIN_VARIANT.
15324 (finalize_type_size): Respect TYPE_USER_ALIGN.
15325 (layout_type) [ARRAY_TYPE]: Likewise.
15326
15327 2015-04-28 Yvan Roux <yvan.roux@linaro.org>
15328
15329 * config/arm/arm.md (*arm_movt): Fix type attribute.
15330 (*cmpsi_shiftsi): Likewise.
15331 (*cmpsi_shiftsi_swp): Likewise.
15332 (*movsicc_insn): Likewise.
15333 (*cond_move): Likewise.
15334 (*if_plus_move): Likewise.
15335 (*if_move_plus): Likewise.
15336 (*if_arith_move): Likewise.
15337 (*if_move_arith): Likewise.
15338 (*if_shift_move): Likewise.
15339 (*if_move_shift): Likewise.
15340 (*arm_movtas_ze): Likewise.
15341 * config/arm/thumb2.md (*thumb2_movsicc_insn): Fix alternative
15342 redundancy and type attribute.
15343 (*thumb2_movsi_insn): Fix type attribute.
15344 (*thumb2_addsi_short): Likewise.
15345 (thumb2_addsi3_compare0): Likewise.
15346 (*thumb2_addsi3_compare0_scratch): Merge alternatives and fix
15347 attributes accordingly.
15348
15349 2015-04-28 Markus Trippelsdorf <markus@trippelsdorf.de>
15350
15351 PR other/65911
15352 * function.c (pad_to_arg_alignment): Add parentheses.
15353
15354 2015-04-28 Uros Bizjak <ubizjak@gmail.com>
15355
15356 * config/frv/frv.h (CRT_GET_RFIB_DATA): Move definition to
15357 libgcc/config/frv/elf-lib.h.
15358
15359 2015-04-28 Tom de Vries <tom@codesourcery.com>
15360
15361 * tree-call-cdce.c: Fix example in header comment.
15362
15363 2015-04-28 Richard Biener <rguenther@suse.de>
15364
15365 PR tree-optimization/62283
15366 * tree-vect-slp.c (vect_build_slp_tree): When the SLP build
15367 fails fatally and we are vectorizing a basic-block simply
15368 cause the child to be constructed piecewise.
15369 (vect_analyze_slp_cost_1): Adjust.
15370 (vect_detect_hybrid_slp_stmts): Likewise.
15371 (vect_bb_slp_scalar_cost): Likewise.
15372 (vect_get_constant_vectors): For piecewise constructed
15373 constants place them after the last def.
15374 (vect_get_slp_defs): Adjust.
15375 * tree-vect-stmts.c (vect_is_simple_use): Detect in-BB
15376 externals for basic-block vectorization.
15377
15378 2015-04-28 Thomas Preud'homme <thomas.preudhomme@arm.com>
15379
15380 PR target/63503
15381 * config.gcc: Add cortex-a57-fma-steering.o to extra_objs for
15382 aarch64-*-*.
15383 * config/aarch64/t-aarch64: Add a rule for cortex-a57-fma-steering.o.
15384 * config/aarch64/aarch64.h (AARCH64_FL_USE_FMA_STEERING_PASS): Define.
15385 (AARCH64_TUNE_FMA_STEERING): Likewise.
15386 * config/aarch64/aarch64-cores.def: Set
15387 AARCH64_FL_USE_FMA_STEERING_PASS for cores with dynamic steering of
15388 FMUL/FMADD instructions.
15389 * config/aarch64/aarch64.c (aarch64_register_fma_steering): Declare.
15390 (aarch64_override_options): Include cortex-a57-fma-steering.h. Call
15391 aarch64_register_fma_steering () if AARCH64_TUNE_FMA_STEERING is true.
15392 * config/aarch64/cortex-a57-fma-steering.h: New file.
15393 * config/aarch64/cortex-a57-fma-steering.c: Likewise.
15394
15395 2015-04-28 Richard Sandiford <richard.sandiford@arm.com>
15396
15397 * gensupport.c (std_preds): Add missing codes to address_operand entry.
15398
15399 2015-04-28 Richard Biener <rguenther@suse.de>
15400
15401 PR tree-optimization/65851
15402 * tree-ssa-ccp.c (set_lattice_value): Perform a meet when
15403 changing CONSTANT to CONSTANT non-copy. Get new_val by reference.
15404 (ccp_lattice_meet): Remove stray argument. Use operand_equal_p
15405 rather than simple_cst_equal as the latter doesn't handle COMPLEX_CST.
15406 (ccp_visit_phi_node): Adjust.
15407 (evaluate_stmt): For simplifications to SSA names return its
15408 lattice value if that isn't VARYING. Return immediately when
15409 simplified to a constant.
15410 (visit_assignment): Adjust.
15411 (ccp_visit_stmt): Likewise.
15412
15413 2015-04-28 Tom de Vries <tom@codesourcery.com>
15414
15415 PR tree-optimization/65818
15416 * tree-stdarg.c (expand_ifn_va_arg_1): Ensure that side-effects are
15417 evaluated.
15418
15419 2015-04-27 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
15420
15421 * calls.c (save_fixed_argument_area): Don't check
15422 ARGS_GROW_DOWNWARD with the preprocessor.
15423 (restore_fixed_argument_area): Likewise.
15424 (mem_overlaps_already_clobbered_arg_p): Likewise.
15425 (check_sibcall_argument_overlap): Likewise.
15426 (expand_call): Likewise.
15427 (emit_library_call_value_1): Likewise.
15428 (store_one_arg): Likewise.
15429 * function.c (assign_parms): Likewise.
15430 (locate_and_pad_parm): Likewise.
15431 (pad_to_arg_alignment): Likewise.
15432 * targhooks.c (std_gimplify_va_arg_expr): Likewise.
15433
15434 2015-04-27 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
15435
15436 * config/pa/pa.h (ARGS_GROW_DOWNWARD): Define to 1.
15437 * defaults.h (ARGS_GROW_DOWNWARD): Define it to 0 by default.
15438 * calls.c (save_fixed_argument_area): Don't chekc if
15439 ARGS_GROW_DOWNWARD is defined.
15440 (restore_fixed_argument_area): Likewise.
15441 (mem_overlaps_already_clobbered_arg_p): Likewise.
15442 (check_sibcall_argument_overlap): Likewise.
15443 (expand_call): Likewise.
15444 (emit_library_call_value_1): Likewise.
15445 (store_one_arg): Likewise.
15446 * function.c (assign_parms): Likewise.
15447 (locate_and_pad_parm): Likewise.
15448 (pad_to_arg_alignment): Likewise.
15449 * targhooks.c (std_gimplify_va_arg_expr): Likewise.
15450
15451 2015-04-27 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
15452
15453 * defaults.h (gen_epilogue): New function.
15454 * alias.c (init_alias_analysis): don't check if HAVE_epilogue is
15455 defined.
15456 * cfgrtl.c (cfg_layout_finalize): Likewise.
15457 * df-scan.c: Likewise.
15458 * function.c (thread_prologue_and_epilogue_insns): Likewise.
15459 (reposition_prologue_and_epilogue_notes): Likewise.
15460 * reorg.c (find_end_label): Likewise.
15461 * toplev.c: Likewise.
15462
15463 2015-04-27 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
15464
15465 * bb-reorder.c (HAVE_return): Don't check if its undefined.
15466 * defaults.h (gen_simple_return): New function.
15467 (gen_simple_return): Likewise.
15468 (HAVE_return): Add default definition to false.
15469 (HAVE_simple_return): Likewise.
15470 * cfgrtl.c (force_nonfallthru_and_redirect): Remove checks if
15471 HAVE_return and HAVE_simple_return are defined.
15472 * function.c (gen_return_pattern): Likewise.
15473 (convert_jumps_to_returns): Likewise.
15474 (thread_prologue_and_epilogue_insns): Likewise.
15475 * reorg.c (find_end_label): Likewise.
15476 (dbr_schedule): Likewise.
15477 * shrink-wrap.c: Likewise.
15478 * shrink-wrap.h: Likewise.
15479
15480 2015-04-27 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
15481
15482 * defaults.h (EPILOGUE_USES): Add default definition of false.
15483 * df-scan.c (EPILOGUE_USES): Remove check if its undefined.
15484 * resource.c (init_resource_info): Likewise.
15485
15486 2015-04-27 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
15487
15488 * defaults.h (PCC_BITFIELD_TYPE_MATTERS): Add default definition
15489 to false.
15490 * dwarf2out.c (field_byte_offset): REmove check if
15491 PCC_BITFIELD_TYPE_MATTERS is defined.
15492 * stor-layout.c (layout_decl): Likewise.
15493 (update_alignment_for_field): Likewise.
15494 (place_field): Likewise.
15495
15496 2015-04-27 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
15497
15498 * defaults.h (HARD_REGNO_RENAME_OK): Add default definition to
15499 true.
15500 * regrename.c (check_new_reg_p): Remove check if
15501 HARD_REGNO_RENAME_OK is defined.
15502 * sel-sched.c (sel_hard_regno_rename_ok): Likewise.
15503
15504 2015-04-27 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
15505
15506 * calls.c (prepare_call_address): Remove ifdef NO_FUNCTION_CSE.
15507 * cse.c (fold_rtx): Likewise.
15508 * config/alpha/alpha.h (NO_FUNCTION_CSE): Define to 1.
15509 * config/arc/arc.h (NO_FUNCTION_CSE): Likewise.
15510 * config/avr/avr.h (NO_FUNCTION_CSE): Likewise.
15511 * config/cr16/cr16.h (NO_FUNCTION_CSE): Likewise.
15512 * config/epiphany/epiphany.h (NO_FUNCTION_CSE): Likewise.
15513 * config/frv/frv.h (NO_FUNCTION_CSE): Likewise.
15514 * config/h8300/h8300.h (NO_FUNCTION_CSE): Likewise.
15515 * config/i386/i386.h (NO_FUNCTION_CSE): Likewise.
15516 * config/ia64/ia64.h (NO_FUNCTION_CSE): Likewise.
15517 * config/lm32/lm32.h (enum reg_class) (NO_FUNCTION_CSE):
15518 * Likewise.
15519 * config/m32r/m32r.h (NO_FUNCTION_CSE): Likewise.
15520 * config/mep/mep.h (NO_FUNCTION_CSE): Likewise.
15521 * config/mn10300/mn10300.h (NO_FUNCTION_CSE): Likewise.
15522 * config/nds32/nds32.h (NO_FUNCTION_CSE): Likewise.
15523 * config/nios2/nios2.h (NO_FUNCTION_CSE): Likewise.
15524 * config/pa/pa.h (NO_FUNCTION_CSE): Likewise.
15525 * config/rs6000/rs6000.h (NO_FUNCTION_CSE): Likewise.
15526 * config/s390/s390.h (NO_FUNCTION_CSE): Likewise.
15527 * config/sparc/sparc.h (NO_FUNCTION_CSE): Likewise.
15528 * config/spu/spu.h (NO_FUNCTION_CSE): Likewise.
15529 * config/stormy16/stormy16.h (NO_FUNCTION_CSE): Likewise.
15530 * config/v850/v850.h (NO_FUNCTION_CSE): Likewise.
15531 * defaults.h (NO_FUNCTION_CSE): Provide default definition to 0.
15532 * doc/tm.texi: Regenerate.
15533 * doc/tm.texi.in: Document NO_FUNCTION_CSE is always defined to
15534 either true or false.
15535
15536 2015-04-27 Jeff Law <law@redhat.com>
15537
15538 PR tree-optimization/65217
15539 * tree-ssa-dom.c (record_equality): Given two SSA_NAMEs, if just one
15540 of them has a single use, make sure it is the LHS of the implied
15541 copy.
15542
15543 2015-04-28 Alan Modra <amodra@gmail.com>
15544
15545 PR target/65810
15546 * config/rs6000/rs6000.c (POWERPC64_TOC_POINTER_ALIGNMENT): Define.
15547 (offsettable_ok_by_alignment): Use minimum of decl and toc
15548 pointer alignment. Replace dead code with assertion.
15549 (use_toc_relative_ref): Add mode arg. Return false in -mcmodel=medium
15550 case if size exceeds toc pointer alignment.
15551 (rs6000_legitimize_reload_address): Update use_toc_relative_ref call.
15552 (rs6000_emit_move): Likewise.
15553 * configure.ac: Add linker toc pointer alignment check.
15554 * configure: Regenerate.
15555 * config.in: Regenerate.
15556
15557 2015-04-27 Yoshinori Sato <ysato@users.sourceforge.jp>
15558
15559 * config.gcc: Add h8300-*-linux.
15560 * config/h8300/linux.h: New.
15561 * config/h8300/t-linux: New.
15562 * config/h8300/h8300.c (h8300_option_override): Normal mode
15563 is not supported for h8300-*-linux.
15564 (h8300_file_start): Target priority change.
15565 (get_shift_alg): Likewise.
15566 (h8300_shift_need_scratch_p): Likewise.
15567 * config/h8300/h8300.h (TARGET_CPU_CPP_BUILTINS): Likewise.
15568 * config/h8300/h8300.md (define_peephole2): Remove duplicate condition.
15569
15570 2015-04-27 Caroline Tice <cmtice@google.com>
15571
15572 * final.c (final_scan_insn): Output cold_function_name as function
15573 type.
15574 * varasm.c (cold_function_name): Make global.
15575 (assemble_start_function): Re-set cold_function_name.
15576 (assemble_end_function): Output cold partition size.
15577 * varasm.h (cold_function_name): Declare global.
15578
15579 2015-04-27 Ilya Tocar <ilya.tocar@intel.com>
15580
15581 * config/i386/i386.h (EXT_REX_SSE_REG_P): New.
15582 * config/i386/i386.md (*cmpi<FPCMP:unord><MODEF:mode>_mixed): Use "v"
15583 constraint.
15584 (*movxi_internal_avx512f): Ditto.
15585 (define_split): Check for xmm16+, when splitting scalar float_extend.
15586 (*extendsfdf2_mixed): Use "v" constraint.
15587 (define_split): Check for xmm16+, when splitting scalar float_truncate.
15588 (*truncdfsf_fast_sse): Use "v" constraint.
15589 (fix_trunc<MODEF:mode><SWI48:mode>_sse): Ditto.
15590 (*float<SWI48:mode><MODEF:mode>2_sse): Ditto.
15591 (define_peephole2): Check for xmm16+, when converting scalar
15592 float_truncate.
15593 (define_peephole2): Check for xmm16+, when converting scalar
15594 float_extend.
15595 (*fop_<mode>_comm_mixed): Use "v" constraint.
15596 (*fop_<mode>_comm_sse): Ditto.
15597 (*fop_<mode>_1_mixed): Ditto.
15598 (*sqrt<mode>2_sse): Ditto.
15599 (*ieee_s<ieee_maxmin><mode>3): Ditto.
15600
15601 2015-04-27 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
15602
15603 * combine.c (simplify_if_then_else): Use std::swap instead
15604 of manually swapping.
15605 (known_cond): Likewise.
15606 (simplify_comparison): Likewise.
15607
15608 2015-04-27 Peter Bergner <bergner@vnet.ibm.com>
15609
15610 PR target/64579
15611 * config/rs6000/htm.md: Remove all define_expands.
15612 (UNSPECV_HTM_TABORTDC, UNSPECV_HTM_TABORTDCI, UNSPECV_HTM_TABORTWC,
15613 UNSPECV_HTM_TABORTWCI): Remove.
15614 (UNSPECV_HTM_TABORTXC, UNSPECV_HTM_TABORTXCI, UNSPECV_HTM_TTEST): New.
15615 (tabort_internal, tbegin_internal, tcheck_internal, tend_internal,
15616 trechkpt_internal, treclaim_internal, tsr_internal): Rename from this...
15617 (tabort, tbegin, tcheck, tend, trechkpt, treclaim, tsr): ...to this.
15618 (tabortdc_internal, tabortdci_internal, tabortwc_internal,
15619 tabortwci_internal): Remove define_insns.
15620 (tabort<wd>c, tabort<wd>ci): New define_insns.
15621 (tabort): Use gpc_reg_operand.
15622 (tcheck): Remove operand.
15623 (htm_mfspr_<mode>, htm_mtspr_<mode>): Use GPR mode macro.
15624 * config/rs6000/htmxlintrin.h (__TM_end): Use _HTM_TRANSACTIONAL as
15625 expected value.
15626 * config/rs6000/rs6000-builtin.def (BU_HTM_SPR0): Remove.
15627 (BU_HTM_SPR1): Rename to BU_HTM_V1. Remove use of RS6000_BTC_SPR.
15628 (tabort, tabortdc, tabortdci, tabortwc, tabortwci, tbegin,
15629 tcheck, tend, tendall, trechkpt, treclaim, tresume, tsuspend,
15630 tsr, ttest): Pass in the RS6000_BTC_CR attribute.
15631 (get_tfhar, set_tfhar, get_tfiar, set_tfiar, get_texasr, set_texasr,
15632 get_texasru, set_texasru): Pass in the RS6000_BTC_SPR attribute.
15633 (tcheck): Remove builtin argument.
15634 * config/rs6000/rs6000.c (rs6000_htm_spr_icode): Use TARGET_POWERPC64
15635 not TARGET_64BIT.
15636 (htm_expand_builtin): Fix usage of expandedp. Disallow usage of the
15637 tabortdc and tabortdci builtins when not in 64-bit mode.
15638 Modify code to handle the loss of the HTM define_expands.
15639 Emit code to copy the CR register to TARGET.
15640 (htm_init_builtins): Modify code to handle the loss of the HTM
15641 define_expands.
15642 * config/rs6000/rs6000.h (RS6000_BTC_32BIT): Delete.
15643 (RS6000_BTC_64BIT): Likewise.
15644 (RS6000_BTC_CR): New macro.
15645 * doc/extend.texi: Update documentation for htm builtins.
15646
15647 2015-04-27 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
15648
15649 * simplify-rtx.c (simplify_gen_binary): Use std::swap instead
15650 of manually swapping.
15651 (simplify_associative_operation): Likewise.
15652 (simplify_binary_operation): Likewise.
15653 (simplify_plus_minus): Likewise.
15654 (simplify_relational_operation): Likewise.
15655 (simplify_ternary_operation): Likewise.
15656
15657 2015-04-27 Richard Sandiford <richard.sandiford@arm.com>
15658
15659 * config/stormy16/predicates.md (xs_hi_general_operand): Delete.
15660 (xs_hi_nonmemory_operand): Remove error.
15661 * config/stormy16/stormy16.md (movhi, movhi_internal): Use
15662 general_operand rather than xs_hi_general_operand.
15663
15664 2015-04-27 Richard Biener <rguenther@suse.de>
15665
15666 * tree-ssa-dom.c (record_equivalences_from_phis): Valueize PHI arg.
15667 (record_equivalences_from_stmt): Valueize rhs.
15668 (record_equality): Canonicalize x and y order via
15669 tree_swap_operands_p. Do not swap operands for same loop depth.
15670
15671 2015-04-27 Georg-Johann Lay <avr@gjlay.de>
15672
15673 PR target/65296
15674 PR target/65895
15675 * config/avr/gen-avr-mmcu-specs.c (print_mcu): Close file.
15676 Add hint how to use own spec file.
15677
15678 2015-04-27 Jakub Jelinek <jakub@redhat.com>
15679
15680 PR tree-optimization/65875
15681 * tree-vrp.c (update_value_range): If in is_new case setting
15682 old_vr to VR_VARYING, also set new_vr to it. Remove
15683 old_vr->type == VR_VARYING test.
15684 (vrp_visit_phi_node): Return SSA_PROP_VARYING instead of
15685 SSA_PROP_INTERESTING if update_value_range returned true,
15686 but new range is VR_VARYING.
15687
15688 2015-04-27 Thomas Preud'homme <thomas.preudhomme@arm.com>
15689
15690 * combine.c (sign_extend_short_imm): New.
15691 (set_nonzero_bits_and_sign_copies): Use above new function for sign
15692 extension of src short immediate.
15693 (reg_nonzero_bits_for_combine): Likewise for tem.
15694
15695 2015-04-27 Eric Botcazou <ebotcazou@adacore.com>
15696
15697 * stor-layout.c (self_referential_component_ref_p): New predicate.
15698 (copy_self_referential_tree_r): Use it.
15699 (self_referential_size): Punt for simple operations directly involving
15700 self-referential component references.
15701 * tree-cfg.c (dump_function_to_file): Add missing final curly bracket.
15702
15703 2015-04-27 Eric Botcazou <ebotcazou@adacore.com>
15704
15705 * ipa-icf.c (icf_handled_component_p): Remove redundant tests.
15706
15707 2015-04-27 Richard Sandiford <richard.sandiford@arm.com>
15708
15709 * vec.h (vec): Make splice arguments const. Update definitions
15710 accordingly.
15711
15712 2015-04-27 Yvan Roux <yvan.roux@linaro.org>
15713
15714 * config/arm/arm.md (*arm_subsi3_insn): Fixed redundant
15715 alternatives.
15716
15717 2015-04-26 Tom de Vries <tom@codesourcery.com>
15718
15719 PR tree-optimization/65826
15720 * internal-fn.def: Mark VA_ARG with ECF_LEAF.
15721
15722 2015-04-24 Steve Ellcey <sellcey@imgtec.com>
15723
15724 * config/mips/mips.md: (*madd4<mode>) Remove accum_in attribute.
15725 (*madd3<mode>): Ditto.
15726 (*msub4<mode>): Ditto.
15727 (*msub3<mode>): Ditto.
15728 (*nmadd4<mode>): Ditto.
15729 (*nmadd3<mode>): Ditto.
15730 (*nmadd4<mode>_fastmath): Ditto.
15731 (*nmadd3<mode>_fastmath): Ditto.
15732 (*nmsub4<mode>): Ditto.
15733 (*nmsub3<mode>): Ditto.
15734 (*nmsub4<mode>_fastmath): Ditto.
15735 (*nmsub3<mode>_fastmath): Ditto.
15736
15737 2015-04-24 Jason Merrill <jason@redhat.com>
15738
15739 PR c++/50800
15740 * tree.c (build_reference_type_for_mode): Don't pass can_alias_all
15741 down when building TYPE_CANONICAL.
15742 (build_pointer_type_for_mode): Likewise.
15743
15744 2015-04-24 Chen Gang <gang.chen.5i5j@gmail.com>
15745
15746 * genrecog.c (validate_pattern): Check matching constraint refers
15747 to a lower numbered operand.
15748
15749 2015-04-24 Michael Meissner <meissner@linux.vnet.ibm.com>
15750
15751 PR target/65849
15752 * config/rs6000/rs6000.opt (-mvsx-align-128): Make options that
15753 save to independent variables use the Save attribute. This will
15754 allow these options to be modified with the #pragma/attribute
15755 target support.
15756 (-mallow-movmisalign): Likewise.
15757 (-mallow-df-permute): Likewise.
15758 (-msched-groups): Likewise.
15759 (-malways-hint): Likewise.
15760 (-malign-branch-targets): Likewise.
15761 (-mvectorize-builtins): Likewise.
15762 (-msave-toc-indirect): Likewise.
15763
15764 * config/rs6000/rs6000.c (rs6000_opt_masks): Add more options that
15765 can be set via the #pragma/attribute target support.
15766 (rs6000_opt_vars): Likewise.
15767 (rs6000_inner_target_options): If VSX was set, also set
15768 -mno-avoid-indexed-addresses.
15769
15770 2015-04-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
15771
15772 * config/arm/iterators.md (shiftable_ops): Rename to...
15773 (SHIFTABLE_OPS): ... This. Update use in comments.
15774 (ior_xor): Rename to...
15775 (IOR_XOR): ... This.
15776 (vqh_ops): Rename to...
15777 (VQH_OPS): ... This.
15778 (vqhs_ops): Rename to...
15779 (VQHS_OPS): ... This.
15780 (rshifts): Rename to...
15781 (RSHIFTS): ... This.
15782 (returns): Rename to...
15783 (RETURNS): ... This.
15784 * config/arm/arm.md: Update uses of the above.
15785 * config/arm/neon.md: Likewise.
15786
15787 2014-04-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
15788
15789 * config.host (case ${host}): Add aarch64*-*-linux case.
15790 * config/aarch64/aarch64-cores.def: Add IMPLEMENTER_ID and PART_NUMBER
15791 fields to all the cores.
15792 * config/aarch64/aarch64-elf.h (DRIVER_SELF_SPECS):
15793 Add MCPU_MTUNE_NATIVE_SPECS.
15794 * config/aarch64/aarch64-option-extensions.def: Add FEATURE_STRING
15795 field to all extensions.
15796 * config/aarch64/aarch64-opts.h: Adjust definition of AARCH64_CORE.
15797 * config/aarch64/aarch64.c: Adjust definition of AARCH64_CORE.
15798 Adjust definition of AARCH64_OPT_EXTENSION.
15799 * config/aarch64/aarch64.h: Adjust definition of AARCH64_CORE.
15800 (MCPU_MTUNE_NATIVE_SPECS): Define.
15801 * config/aarch64/driver-aarch64.c: New file.
15802 * config/aarch64/x-arch64: New file.
15803 * doc/invoke.texi (AArch64 Options): Document native value for -mcpu,
15804 -mtune and -march.
15805
15806 2015-04-24 Uros Bizjak <ubizjak@gmail.com>
15807 Wei Mi <wmi@google.com>
15808
15809 * config/i386/i386-protos.h (ix86_operands_ok_for_move_multiple): New.
15810 * config/i386/i386.c (extract_base_offset_in_addr): New function.
15811 (ix86_operands_ok_for_move_multiple): Ditto.
15812 * config/i386/sse.md (movsd/movhpd to movupd peephole2): New pattern.
15813 (movlpd/movhpd to movupd peephole2): Ditto.
15814
15815 2015-04-24 Marek Polacek <polacek@redhat.com>
15816
15817 PR c/61534
15818 * input.h (from_macro_expansion_at): Define.
15819
15820 PR c/63357
15821 * doc/invoke.texi: Update description of -Wlogical-op.
15822
15823 2015-04-24 Thomas Preud'homme <thomas.preudhomme@arm.com>
15824
15825 * config/arm/unknown-elf.h (ASM_OUTPUT_ALIGNED_DECL_LOCAL): fix
15826 ternary operator in fprintf and harmonize spacing.
15827
15828 2015-04-24 Uros Bizjak <ubizjak@gmail.com>
15829
15830 * config/i386/sse.md (*vec_widen_smult_even_v8si<mask_name>):
15831 Mark operand1 commutative.
15832
15833 2015-04-24 Uros Bizjak <ubizjak@gmail.com>
15834
15835 * config/i386/sse.md (*vec_concatv2sf_sse4_1): Do not allow both
15836 input operands in memory.
15837 (*vec_concatv2si_sse4_1): Ditto.
15838 (*vec_concatv2df): Ditto, except for SSE3 and equal input operands.
15839 (vec_extract_lo_<mode><mask_name>): Change operand 1 predicate to
15840 register_operand.
15841 (vec_extract_hi_v32hi): Ditto.
15842 (vec_extract_hi_v64hi): Ditto.
15843 (<mask_codefor>avx512f_unpckhpd512<mask_name>): Ditto.
15844
15845 2015-04-24 Thomas Preud'homme <thomas.preudhomme@arm.com>
15846 Steven Bosscher <steven@gcc.gnu.org>
15847
15848 PR rtl-optimization/34503
15849 * cprop.c (cprop_reg_p): New.
15850 (hash_scan_set): Use above function to check if register can be
15851 propagated.
15852 (find_avail_set): Return up to two sets, one whose source is a
15853 register and one whose source is a constant. Sets are returned in an
15854 array passed as parameter rather than as a return value.
15855 (cprop_insn): Use a do while loop rather than a goto. Try each of the
15856 sets returned by find_avail_set, starting with the one whose source is
15857 a constant. Use cprop_reg_p to check if register can be propagated.
15858 (do_local_cprop): Use cprop_reg_p to check if register can be
15859 propagated.
15860 (implicit_set_cond_p): Likewise.
15861
15862 2015-04-23 Jan Hubicka <hubicka@ucw.cz>
15863
15864 * ipa-icf.c (sem_function::equals_wpa): Compare thunk info.
15865 (sem_function::equals): IGNORED_NODES parameter is now unused;
15866 update call of equals_private.
15867 (sem_function::equals_private): Do not call equals_wpa; skip
15868 gimple body matching if there is no body.
15869 (sem_function::init): Add logic to hash tthunk info.
15870 (sem_function::parse): Also parse thunks.
15871 * ipa-icf.h (equals_private): Update declaration.
15872
15873 2015-04-23 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
15874
15875 * config/rs6000/altivec.md (*altivec_lvx_<mode>_internal): Remove
15876 asterisk from name so this can be generated directly.
15877 (*altivec_stvx_<mode>_internal): Likewise.
15878 * config/rs6000/rs6000.c (rs6000_emit_le_vsx_store): Add assert
15879 that this is never called during or after reload/lra.
15880 (rs6000_frame_related): Remove split_reg
15881 argument and logic that references it.
15882 (emit_frame_save): Remove last parameter from call to
15883 rs6000_frame_related.
15884 (rs6000_emit_prologue): Remove last parameter from eight calls to
15885 rs6000_frame_related. Force generation of stvx instruction for
15886 Altivec register saves. Remove split_reg handling, which is no
15887 longer needed.
15888 (rs6000_emit_epilogue): Force generation of lvx instruction for
15889 Altivec register restores.
15890
15891 2015-04-23 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
15892
15893 * config/rs6000/rs6000.opt (mcrypto): Change option description to
15894 match category changes in ISA 2.07B.
15895
15896 2015-04-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
15897
15898 * config/arm/iterators.md (GTGE, GTUGEU, COMPARISONS): New code
15899 iterators.
15900 (cmp_op, cmp_type): New code attributes.
15901 (NEON_VCMP, NEON_VACMP): New int iterators.
15902 (cmp_op_unsp): New int attribute.
15903 * config/arm/neon.md (neon_vc<cmp_op><mode>): New define_expand.
15904 (neon_vceq<mode>): Delete.
15905 (neon_vc<cmp_op><mode>_insn): New pattern.
15906 (neon_vc<cmp_op_unsp><mode>_insn_unspec): Likewise.
15907 (neon_vcgeu<mode>): Delete.
15908 (neon_vcle<mode>): Likewise.
15909 (neon_vclt<mode>: Likewise.
15910 (neon_vcage<mode>): Likewise.
15911 (neon_vcagt<mode>): Likewise.
15912 (neon_vca<cmp_op><mode>): New define_expand.
15913 (neon_vca<cmp_op><mode>_insn): New pattern.
15914 (neon_vca<cmp_op_unsp><mode>_insn_unspec): Likewise.
15915
15916 2015-04-23 Jan Hubicka <hubicka@ucw.cz>
15917
15918 * tree.h (attribute_value_equal): Declare.
15919 * tree.c (attribute_value_equal): Export.
15920
15921 2015-04-23 Jan Hubicka <hubicka@ucw.cz>
15922
15923 * ipa-icf.c (sem_item::compare_attributes): New function.
15924 (sem_item::compare_referenced_symbol_properties): Compare variable
15925 attributes.
15926 (sem_item::hash_referenced_symbol_properties): Record DECL_ALIGN.
15927 (sem_function::param_used_p): New function.
15928 (sem_function::equals_wpa): Fix attribute comparsion; match
15929 parameter type codes; do not compare paremter flags when
15930 they are not used; compare edge flags; compare indirect calls.
15931 (sem_item::update_hash_by_addr_refs): Hash reference type.
15932 (sem_function::equals_private): Do not match DECL_ATTRIBUTES.
15933 (sem_variable::equals_wpa): Do not match DECL_ALIGN; match
15934 reference use type.
15935 (sem_item_optimizer::update_hash_by_addr_refs): Use param_used_p.
15936 * ipa-icf.h (compare_attributes, param_used_p): Declare.
15937
15938 2015-04-23 Jan Hubicka <hubicka@ucw.cz>
15939
15940 * ipa-icf.c (symbol_compare_collection::symbol_compare_collection):
15941 cleanup.
15942 (sem_function::get_hash): Do not hash DECL_DISREGARD_INLINE_LIMITS,
15943 DECL_DECLARED_INLINE_P and DECL_IS_OPERATOR_NEW.
15944 (sem_item::compare_referenced_symbol_properties): New.
15945 (sem_item::hash_referenced_symbol_properties): New.
15946 (sem_item::compare_cgraph_references): Rename to ...
15947 (sem_item::compare_symbol_references): ... this one; use
15948 compare_referenced_symbol_properties.
15949 (sem_function::equals_wpa): Do not compare
15950 DECL_DISREGARD_INLINE_LIMITS, DECL_DECLARED_INLINE_P,
15951 DECL_IS_OPERATOR_NEW; compare pointer sizes.
15952 (sem_item::update_hash_by_addr_refs): Call
15953 hash_referenced_symbol_properties.
15954 (sem_item::update_hash_by_local_refs): Cleanup.
15955 (sem_function::merge): Do not mix up symbol properties.
15956 (sem_variable::equals_wpa): Use compare_symbol_references.
15957 * ipa-icf.h (sem_item::compare_referenced_symbol_properties): New.
15958 (sem_item::hash_referenced_symbol_properties): New.
15959 (sem_item::compare_symbol_references): New.
15960 (sem_item::compare_cgraph_references): Remove.
15961
15962 2015-04-23 Kwok Cheung Yeung <kcy@codesourcery.com>
15963
15964 PR target/26702
15965 * config/arm/unknown-elf.h (ASM_OUTPUT_ALIGNED_DECL_LOCAL):
15966 Emit size of local.
15967
15968 2015-04-23 Nick Clifton <nickc@redhat.com>
15969
15970 * config/rl78/rl78.c (rl78_preferred_reload_class): Add
15971 ATTRIBUTE_UNUSED to x parameter.
15972 * config/rl78/rl78-opts.h (enum rl78_mul_types): Remove unused MUL_RL78.
15973
15974 2015-04-23 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
15975
15976 * config/rs6000/crypto.md (crypto_vpmsum<CR_char>): Change
15977 TARGET_CRYPTO to TARGET_P8_VECTOR>
15978 (crypto_vpermxor_<mode>): Likewise.
15979 * config/rs6000/rs6000-builtin.def (BU_CRYPTO_2A): New #define.
15980 (BU_CRYPTO_3A): Likewise.
15981 (BU_CRYPTO_OVERLOAD_2A): Rename from BU_CRYPTO_OVERLOAD_2.
15982 (BU_CRYPTO_OVERLOAD_3A): New #define.
15983 (VPMSUMB): Change from BU_CRYPTO_2 to BU_CRYPTO_2A.
15984 (VPMSUMH): Likewise.
15985 (VPMSUMW): Likewise.
15986 (VPMSUMD): Likewise.
15987 (VPERMXOR_V2DI): Change from BU_CRYPTO_3 to BU_CRYPTO_3A.
15988 (VPERMXOR_V4SI): Likewise.
15989 (VPERMXOR_V8HI): Likewise.
15990 (VPERMXOR_V16QI): Likewise.
15991 (VPMSUM): Change from BU_CRYPTO_OVERLOAD_2 to
15992 BU_CRYPTO_OVERLOAD_2A.
15993 (VPERMXOR): Change from BU_CRYPTO_OVERLOAD3 to
15994 BU_CRYPTO_OVERLOAD_3A.
15995 * config/rs6000/rs6000.opt (mcrypto): Change description of
15996 option.
15997
15998 2015-04-23 Richard Biener <rguenther@suse.de>
15999
16000 * passes.def: Remove copy propagation passes run directly after CCP.
16001 * tree-ssa-ccp.c (get_value_for_expr): Fall back to a COPY for
16002 SSA names.
16003 (ccp_visit_phi_node): Rework to handle first executable edge
16004 specially.
16005
16006 2015-04-23 Matthew Wahab <matthew.wahab@arm.com>
16007
16008 * config/arm/arm.h (LEGITIMIZE_RELOAD_ADDRESS): Remove.
16009 (ARM_LEGITIMIZE_RELOAD_ADDRESS): Remove.
16010 (THUMB_LEGITIMIZE_RELOAD_ADDRESS): Remove.
16011 * config/arm/arm.c (arm_legimitimize_reload_address): Remove.
16012 (thumb_legimitimize_reload_address): Remove.
16013 * config/arm/arm-protos.h (arm_legimitimize_reload_address):
16014 Remove.
16015 (thumb_legimitimize_reload_address): Remove.
16016
16017 2015-04-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
16018
16019 * conditions.h (CC_STATUS_INIT): Gate on #ifndef CC_STATUS_INIT.
16020
16021 2015-04-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
16022
16023 * config/arm/arm.md (load_multiple): Reject operand 2 greater than
16024 MAX_LDM_STM_OPS.
16025 (store_multiple): Likewise.
16026
16027 2015-04-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
16028
16029 * config/arm/arm-protos.h (struct tune_params): Add issue_rate field.
16030 * config/arm/arm.c (arm_slowmul_tune, arm_fastmul_tune,
16031 arm_strongarm_tune, arm_xscale_tune, arm_9e_tune, arm_v6t2_tune,
16032 arm_cortex_tune, arm_cortex_a8_tune, arm_cortex_a7_tune,
16033 arm_cortex_a15_tune, arm_cortex_a53_tune, arm_cortex_a57_tune,
16034 arm_cortex_a9_tune, arm_cortex_a12_tune, arm_v7m_tune, arm_v6m_tune,
16035 arm_fa726te_tune arm_cortex_a5_tune, arm_xgene1_tune):
16036 Specify issue_rate value.
16037 (arm_issue_rate): Look up issue rate from tuning structs. Remove
16038 large switch statement.
16039 (arm_marvell_pj4_tune): New struct.
16040 * config/arm/arm-cores.def (marvell-pj4): Use arm_marvell_pj4_tune
16041 struct.
16042
16043 2015-04-23 Richard Biener <rguenther@suse.de>
16044
16045 * tree-vect-slp.c (vect_find_first_load_in_slp_instance): Remove.
16046 (vect_find_last_store_in_slp_instance): Rename to ...
16047 (vect_find_last_scalar_stmt_in_slp): ... this and generalize.
16048 (vect_analyze_slp_cost_1): Use vector_load for constant defs
16049 and vec_construct for external defs when estimating prologue cost.
16050 (vect_analyze_slp_instance): Do not init SLP_INSTANCE_FIRST_LOAD_STMT.
16051 Compute costs here only when vectorizing loops.
16052 (vect_slp_analyze_bb_1): Compute SLP cost here, after vector types
16053 have been determined.
16054 (vect_schedule_slp_instance): Simplify vectorized code placement
16055 and prepare for in-BB external defs.
16056 * tree-vectorizer.h (struct _slp_instance): Remove first_load member.
16057 (SLP_INSTANCE_FIRST_LOAD_STMT): Remove.
16058 * tree-vect-stmts.c (vect_model_store_cost): Remove PURE_SLP_STMT
16059 guard.
16060 (vect_model_load_cost): Likewise.
16061 (vectorizable_store): Instead add it here.
16062 (vectorizable_load): Likewise.
16063 (vect_is_simple_use): Dump def type textually.
16064
16065 2015-04-23 Richard Biener <rguenther@suse.de>
16066
16067 * cfgexpand.c (expand_gimple_stmt_1): Use ops.code.
16068 * cfgloop.c (verify_loop_structure): Verify the root loop node.
16069 * except.c (duplicate_eh_regions): Call get_eh_region_from_lp_number_fn
16070 instead of get_eh_region_from_lp_number.
16071 * loop-init.c (fix_loop_structure): If we removed a loop, reset
16072 the SCEV cache.
16073
16074 2015-04-23 Anton Blanchard <anton@samba.org>
16075
16076 * config/rs6000/rs6000.c (rs6000_output_function_prologue): No
16077 need for -mprofile-kernel to save LR to stack.
16078
16079 2015-04-22 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
16080
16081 * config/rs6000/rs6000.c (rtx_is_swappable_p): Commentary
16082 adjustments.
16083 (insn_is_swappable_p): Return 1 for a convert from double to
16084 single precision when all of its uses are splats of BE element
16085 zero.
16086
16087 2015-04-23 Kugan Vivekanandarajah <kuganv@linaro.org>
16088
16089 * ira-costs.c (record_operand_costs): Fix typo (remove redundant code).
16090
16091 2015-04-22 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
16092
16093 PR target/65456
16094 * config/rs6000/rs6000.c (rs6000_option_override_internal): For
16095 VSX + POWER8, enable TARGET_ALLOW_MOVMISALIGN and
16096 TARGET_EFFICIENT_UNALIGNED_VSX if not selected by command line
16097 option.
16098 (rs6000_builtin_mask_for_load): Return 0 for targets with
16099 efficient unaligned VSX accesses so that the vectorizer will use
16100 direct unaligned loads.
16101 (rs6000_builtin_support_vector_misalignment): Always return true
16102 for targets with efficient unaligned VSX accesses.
16103 (rs6000_builtin_vectorization_cost): Cost of unaligned loads and
16104 stores on targets with efficient unaligned VSX accesses is almost
16105 always the same as the cost of an aligned load or store, so model
16106 it that way.
16107 * config/rs6000/rs6000.h (SLOW_UNALIGNED_ACCESS): Return 0 for
16108 unaligned vectors if we have efficient unaligned VSX accesses.
16109 * config/rs6000/rs6000.opt (mefficient-unaligned-vector): New
16110 undocumented option.
16111
16112 2015-04-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
16113
16114 Revert:
16115 2015-04-22 Gregor Richards <gregor.richards@uwaterloo.ca>
16116
16117 * config.gcc (LIBC_MUSL): New tm_defines macro.
16118 * config/linux.h (OPTION_MUSL): Define.
16119 (INCLUDE_DEFAULTS_MUSL_GPP, INCLUDE_DEFAULTS_MUSL_LOCAL,)
16120 (INCLUDE_DEFAULTS_MUSL_PREFIX, INCLUDE_DEFAULTS_MUSL_CROSS,)
16121 (INCLUDE_DEFAULTS_MUSL_TOOL, INCLUDE_DEFAULTS_MUSL_NATIVE): Define.
16122
16123 * config/linux.opt (mmusl): New option.
16124 * configure.ac (gcc_cv_libc_provides_ssp): Add *-*-musl*.
16125 (gcc_cv_target_dl_iterate_phdr): Add *-linux-musl*.
16126
16127 * configure: Regenerate.
16128
16129 2015-04-22 Gregor Richards <gregor.richards@uwaterloo.ca>
16130
16131 * config.gcc (LIBC_MUSL): New tm_defines macro.
16132 * config/linux.h (OPTION_MUSL): Define.
16133 (INCLUDE_DEFAULTS_MUSL_GPP, INCLUDE_DEFAULTS_MUSL_LOCAL,)
16134 (INCLUDE_DEFAULTS_MUSL_PREFIX, INCLUDE_DEFAULTS_MUSL_CROSS,)
16135 (INCLUDE_DEFAULTS_MUSL_TOOL, INCLUDE_DEFAULTS_MUSL_NATIVE): Define.
16136
16137 * config/linux.opt (mmusl): New option.
16138 * configure.ac (gcc_cv_libc_provides_ssp): Add *-*-musl*.
16139 (gcc_cv_target_dl_iterate_phdr): Add *-linux-musl*.
16140
16141 * configure: Regenerate.
16142
16143 2015-04-22 Yury Gribov <y.gribov@samsung.com>
16144
16145 * doc/invoke.texi (-fsanitize-sections): Update description.
16146 * asan.c (set_sanitized_sections): Parse incoming arg.
16147 (section_sanitized_p): Support wildcards.
16148
16149 2015-04-22 Tom de Vries <tom@codesourcery.com>
16150
16151 PR tree-optimization/65823
16152 * gimplify.c (gimplify_modify_expr): Use operand_equal_p to test for
16153 equality between ap_copy and ap.
16154
16155 2015-04-22 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
16156
16157 PR target/47098
16158 * config/openbsd-oldgas.h (OBSD_LIB_SPEC): Add.
16159
16160 2015-04-22 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
16161
16162 PR target/47122
16163 * config.gcc (vax-*-openbsd*): Fix name of pthread spec header.
16164
16165 2015-04-22 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
16166
16167 PR target/55144
16168 * config.gcc (bfin*-linux-uclibc*): Prepend tmake_file and
16169 remove already contained t-files.
16170
16171 2015-04-22 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
16172
16173 * tree-tailcall.c (suitable_for_tail_opt_p, find_tail_calls):
16174 Remove unneeded forward declarations.
16175 (suitable_for_tail_call_opt_p): Commentary typo fix.
16176
16177 2015-04-22 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
16178
16179 * varasm.c (emit_bss): Remove redundant guard.
16180
16181 2015-04-22 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
16182
16183 * config/c6x/c6x.h (TARGET_CPU_CPP_BUILTINS): Add unk_isa.
16184
16185 2015-04-22 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
16186
16187 * config/bfin/bfin.h (TARGET_CPU_CPP_BUILTINS): Add BFIN_CPU_UNKNOWN.
16188
16189 2015-04-22 Hale Wang <hale.wang@arm.com>
16190 Terry Guo <terry.guo@arm.com>
16191
16192 PR rtl-optimization/64818
16193 * combine.c (can_combine_p): Don't combine user-specified
16194 register if it is in an asm input.
16195
16196 2015-04-21 Jan Hubicka <hubicka@ucw.cz>
16197
16198 PR ipa/65076
16199 * passes.def (early_optimizations): Add pass_dse.
16200
16201 2015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
16202
16203 * defaults.h (INSN_REFERENCES_ARE_DELAYED): New definition.
16204 * reorg.c (redundant_insn): Remove ifdef
16205 INSN_REFERENCES_ARE_DELAYED.
16206 * resource.c (mark_referenced_resources): Likewise.
16207
16208 2015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
16209
16210 * defaults.h (INSN_SETS_ARE_DELAYED): New definition.
16211 * reorg.c (redundant_insn): Remove ifdef INSN_SETS_ARE_DELAYED.
16212 * resource.c (mark_set_resources): Likewise.
16213
16214 2015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
16215
16216 * caller-save.c (insert_one_insn): Remove ifdef HAVE_cc0.
16217 * cfgcleanup.c (flow_find_cross_jump): Likewise.
16218 (flow_find_head_matching_sequence): Likewise.
16219 (try_head_merge_bb): Likewise.
16220 * combine.c (can_combine_p): Likewise.
16221 (try_combine): Likewise.
16222 (distribute_notes): Likewise.
16223 * df-problems.c (can_move_insns_across): Likewise.
16224 * final.c (final): Likewise.
16225 * gcse.c (insert_insn_end_basic_block): Likewise.
16226 * ira.c (find_moveable_pseudos): Likewise.
16227 * reorg.c (try_merge_delay_insns): Likewise.
16228 (fill_simple_delay_slots): Likewise.
16229 (fill_slots_from_thread): Likewise.
16230 * sched-deps.c (sched_analyze_2): Likewise.
16231
16232 2015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
16233
16234 * df-scan.c (df_get_entry_block_def_set): Remove #ifdef
16235 PIC_OFFSET_TABLE_REGNUM.
16236
16237 2015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
16238
16239 * alias.c (init_alias_target): Remove ifdef
16240 * HARD_FRAME_POINTER_IS_FRAME_POINTER.
16241 * df-scan.c (df_insn_refs_collect): Likewise.
16242 (df_get_regular_block_artificial_uses): Likewise.
16243 (df_get_eh_block_artificial_uses): Likewise.
16244 (df_get_entry_block_def_set): Likewise.
16245 (df_get_exit_block_use_set): Likewise.
16246 * emit-rtl.c (gen_rtx_REG): Likewise.
16247 * ira.c (ira_setup_eliminable_regset): Likewise.
16248 * reginfo.c (init_reg_sets_1): Likewise.
16249 * regrename.c (rename_chains): Likewise.
16250 * reload1.c (reload): Likewise.
16251 (eliminate_regs_in_insn): Likewise.
16252 * resource.c (mark_referenced_resources): Likewise.
16253 (init_resource_info): Likewise.
16254
16255 2015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
16256
16257 * defaults.h (MASK_RETURN_ADDR): New definition.
16258 * except.c (expand_builtin_extract_return_addr): Remove ifdef
16259 MASK_RETURN_ADDR.
16260
16261 2015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
16262
16263 * defaults.h (RETURN_ADDR_OFFSET): New definition.
16264 * except.c (expand_builtin_extract_return_addr): Remove ifdef
16265 RETURN_ADDR_OFFSET.
16266 (expand_builtin_frob_return_addr): Likewise.
16267
16268 2015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
16269
16270 * cfgrtl.c (rtl_merge_blocks): Change #if HAVE_cc0 to if (HAVE_cc0)
16271 (try_redirect_by_replacing_jump): Likewise.
16272 (rtl_tidy_fallthru_edge): Likewise.
16273 * combine.c (insn_a_feeds_b): Likewise.
16274 (find_split_point): Likewise.
16275 (simplify_set): Likewise.
16276 * cprop.c (cprop_jump): Likewise.
16277 * cse.c (cse_extended_basic_block): Likewise.
16278 * df-problems.c (can_move_insns_across): Likewise.
16279 * function.c (emit_use_return_register_into_block): Likewise.
16280 * haifa-sched.c (sched_init): Likewise.
16281 * ira.c (find_moveable_pseudos): Likewise.
16282 * loop-invariant.c (find_invariant_insn): Likewise.
16283 * lra-constraints.c (curr_insn_transform): Likewise.
16284 * postreload.c (reload_combine_recognize_const_pattern):
16285 * Likewise.
16286 * reload.c (find_reloads): Likewise.
16287 * reorg.c (delete_scheduled_jump): Likewise.
16288 (steal_delay_list_from_target): Likewise.
16289 (steal_delay_list_from_fallthrough): Likewise.
16290 (redundant_insn): Likewise.
16291 (fill_simple_delay_slots): Likewise.
16292 (fill_slots_from_thread): Likewise.
16293 (delete_computation): Likewise.
16294 * sched-rgn.c (add_branch_dependences): Likewise.
16295
16296 2015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
16297
16298 * genconfig.c (main): Always define HAVE_cc0.
16299 * caller-save.c (insert_one_insn): Change ifdef HAVE_cc0 to #if
16300 HAVE_cc0.
16301 * cfgcleanup.c (flow_find_cross_jump): Likewise.
16302 (flow_find_head_matching_sequence): Likewise.
16303 (try_head_merge_bb): Likewise.
16304 * cfgrtl.c (rtl_merge_blocks): Likewise.
16305 (try_redirect_by_replacing_jump): Likewise.
16306 (rtl_tidy_fallthru_edge): Likewise.
16307 * combine.c (do_SUBST_MODE): Likewise.
16308 (insn_a_feeds_b): Likewise.
16309 (combine_instructions): Likewise.
16310 (can_combine_p): Likewise.
16311 (try_combine): Likewise.
16312 (find_split_point): Likewise.
16313 (subst): Likewise.
16314 (simplify_set): Likewise.
16315 (distribute_notes): Likewise.
16316 * cprop.c (cprop_jump): Likewise.
16317 * cse.c (cse_extended_basic_block): Likewise.
16318 * df-problems.c (can_move_insns_across): Likewise.
16319 * final.c (final): Likewise.
16320 (final_scan_insn): Likewise.
16321 * function.c (emit_use_return_register_into_block): Likewise.
16322 * gcse.c (insert_insn_end_basic_block): Likewise.
16323 * haifa-sched.c (sched_init): Likewise.
16324 * ira.c (find_moveable_pseudos): Likewise.
16325 * loop-invariant.c (find_invariant_insn): Likewise.
16326 * lra-constraints.c (curr_insn_transform): Likewise.
16327 * optabs.c (prepare_cmp_insn): Likewise.
16328 * postreload.c (reload_combine_recognize_const_pattern):
16329 * Likewise.
16330 * reload.c (find_reloads): Likewise.
16331 (find_reloads_address_1): Likewise.
16332 * reorg.c (delete_scheduled_jump): Likewise.
16333 (steal_delay_list_from_target): Likewise.
16334 (steal_delay_list_from_fallthrough): Likewise.
16335 (try_merge_delay_insns): Likewise.
16336 (redundant_insn): Likewise.
16337 (fill_simple_delay_slots): Likewise.
16338 (fill_slots_from_thread): Likewise.
16339 (delete_computation): Likewise.
16340 (relax_delay_slots): Likewise.
16341 * sched-deps.c (sched_analyze_2): Likewise.
16342 * sched-rgn.c (add_branch_dependences): Likewise.
16343
16344 2015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
16345
16346 * combine.c (find_single_use): Remove HAVE_cc0 ifdef for code
16347 that is trivially ded on non cc0 targets.
16348 (simplify_set): Likewise.
16349 (mark_used_regs_combine): Likewise.
16350 * cse.c (new_basic_block): Likewise.
16351 (fold_rtx): Likewise.
16352 (cse_insn): Likewise.
16353 (cse_extended_basic_block): Likewise.
16354 (set_live_p): Likewise.
16355 * rtlanal.c (canonicalize_condition): Likewise.
16356 * simplify-rtx.c (simplify_binary_operation_1): Likewise.
16357
16358 2015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
16359
16360 * conditions.h: Define macros even if HAVE_cc0 is undefined.
16361 * emit-rtl.c: Define functions even if HAVE_cc0 is undefined.
16362 * final.c: Likewise.
16363 * jump.c: Likewise.
16364 * recog.c: Likewise.
16365 * recog.h: Declare functions even when HAVE_cc0 is undefined.
16366 * sched-deps.c (sched_analyze_2): Always compile case for cc0.
16367
16368 2015-04-21 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
16369
16370 * defaults.h: New definition of EH_RETURN_DATA_REGNO.
16371 * except.c: Remove definition of EH_RETURN_DATA_REGNO.
16372 * builtins.c (expand_builtin): Remove check if
16373 EH_RETURN_DATA_REGNO is defined.
16374 * df-scan.c (df_bb_refs_collect): Likewise.
16375 (df_get_exit_block_use_set): Likewise.
16376 * haifa-sched.c (initiate_bb_reg_pressure_info): Likewise.
16377 * ira-lives.c (process_bb_node_lives): Likewise.
16378 * lra-lives.c (process_bb_lives): Likewise.
16379
16380 2015-04-21 Uros Bizjak <ubizjak@gmail.com>
16381
16382 * config/i386/i386.md (ARGP_REG, FRAME_REG, BND2_REG, BND3_REG,
16383 FIRST_PSEUDO_REG): New.
16384 * config/i386/i386.h (STACK_POINTER_REGNUM): Define to SP_REG.
16385 (ARG_POINTER_REGNUM): Define to ARGP_REG.
16386 (FRAME_POINTER_REGNUM): Define to FRAME_REG.
16387 (HARD_FRAME_POINTER_REGNUM): Define to BP_REG.
16388 (FIRST_PSEUDO_REGISTER): Define to FIRST_PSEUDO_REG.
16389 (FIRST_INT_REG): New.
16390 (LAST_INT_REG): New.
16391 (FIRST_*_REG): Define using *_REG.
16392 (LAST_*_REG): Ditto.
16393 (QI_REGNO_P): Define using FIRST_QU_REG and LAST_QI_REG.
16394 (LEGACY_INT_REGNO_P): Define using FIRST_INT_REG and LAST_INT_REG.
16395 (FIRST_FLOAT_REG): Define to FIRST_STACK_REG.
16396
16397 2015-04-21 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
16398
16399 * expmed.c: (synth_mult): Only assume overlapping
16400 shift with previous steps in alg_sub_t_m2 case.
16401
16402 2015-04-21 Richard Biener <rguenther@suse.de>
16403
16404 PR tree-optimization/65650
16405 * tree-ssa-ccp.c (valid_lattice_transition): Allow lattice
16406 transitions involving copies.
16407 (set_lattice_value): Adjust for copy lattice state.
16408 (ccp_lattice_meet): Do not merge UNDEFINED and a copy to the copy
16409 if that doesn't dominate the merge point.
16410 (bit_value_unop): Adjust what we treat as varying mask.
16411 (bit_value_binop): Likewise.
16412 (bit_value_assume_aligned): Likewise.
16413 (evaluate_stmt): When we simplified to a SSA name record a copy
16414 instead of dropping to varying.
16415 (visit_assignment): Simplify.
16416
16417 * gimple-match.h (gimple_simplify): Add another callback.
16418 * gimple-fold.c (fold_stmt_1): Adjust caller.
16419 (gimple_fold_stmt_to_constant_1): Likewise - pass valueize
16420 for the 2nd callback.
16421 * gimple-match-head.c (gimple_simplify): Add a callback that is
16422 used to valueize the stmt operands and use it that way.
16423
16424 2015-04-21 Richard Biener <rguenther@suse.de>
16425
16426 PR tree-optimization/65788
16427 * tree-ssa-ccp.c (evaluate_stmt): Evaluate to UNDEFINED early.
16428
16429 2015-04-21 Richard Biener <rguenther@suse.de>
16430
16431 * config/i386/i386.c (ix86_builtin_vectorization_cost): Scale
16432 vec_construct cost by vec_stmt_cost.
16433
16434 2015-04-21 Richard Biener <rguenther@suse.de>
16435
16436 * cfghooks.h (create_basic_block): Replace with two overloads
16437 for RTL and GIMPLE.
16438 (split_block): Likewise.
16439 * cfghooks.c (split_block): Rename to ...
16440 (split_block_1): ... this.
16441 (split_block): Add two type-safe overloads for RTL and GIMPLE.
16442 (split_block_after_labels): Call split_block_1.
16443 (create_basic_block): Rename to ...
16444 (create_basic_block_1): ... this.
16445 (create_basic_block): Add two type-safe overloads for RTL and GIMPLE.
16446 (create_empty_bb): Call create_basic_block_1.
16447 * cfgrtl.c (fixup_fallthru_exit_predecessor): Use
16448 split_block_after_labels.
16449 * omp-low.c (expand_parallel_call): Likewise.
16450 (expand_omp_target): Likewise.
16451 (simd_clone_adjust): Likewise.
16452 * tree-chkp.c (chkp_get_entry_block): Likewise.
16453 * cgraphunit.c (init_lowered_empty_function): Use the GIMPLE
16454 create_basic_block overload.
16455 (cgraph_node::expand_thunk): Likewise.
16456 * tree-cfg.c (make_blocks): Likewise.
16457 (handle_abnormal_edges): Likewise.
16458 * tree-inline.c (copy_bb): Likewise.
16459
16460 2015-04-21 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
16461
16462 * config/aarch64/aarch64.md (*<NLOGICAL:optab>_one_cmplsidi3_ze):
16463 New pattern.
16464 (*xor_one_cmplsidi3_ze): Likewise.
16465
16466 2015-04-21 Thomas Preud'homme <thomas.preudhomme@arm.com>
16467
16468 * df-core.c (df_finish_pass): Iterate over df->problems_by_index[] and
16469 use df_remove_problem rather than manually removing problems, leaving
16470 holes in df->problems_in_order[].
16471
16472 2015-04-21 Tom de Vries <tom@codesourcery.com>
16473
16474 PR tree-optimization/65802
16475 * internal-fn.def (VA_ARG): Add ECF_NOTROW to flags.
16476
16477 2015-04-21 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
16478
16479 * common/config/aarch64/aarch64-common.c (AARCH64_CPU_NAME_LENGTH):
16480 Increase to 128.
16481 (aarch64_rewrite_selected_cpu): Do not chop off extensions starting
16482 at '.'. Assert that there's enough space for everything.
16483
16484 2015-04-21 Uros Bizjak <ubizjak@gmail.com>
16485
16486 PR tree-optimization/64950
16487 Revert:
16488 2010-08-02 Uros Bizjak <ubizjak@gmail.com>
16489
16490 PR target/41089
16491 * config/alpha/alpha.c (alpha_build_builtin_va_list): Mark __offset
16492 as volatile.
16493
16494 2015-04-20 Shiva Chen <shiva0217@gmail.com>
16495
16496 PR rtl-optimization/64916
16497 * cfgcleanup.c (values_equal_p): New function.
16498 (can_replace_by): Use it.
16499
16500 2015-04-20 Paolo Carlini <paolo.carlini@oracle.com>
16501
16502 PR c++/65801
16503 * doc/invoke.texi ([-Wnarrowing]): Update.
16504
16505 2015-04-20 Jeff Law <law@redhat.com>
16506
16507 PR tree-optimization/65658
16508 * tree-ssa-threadupdate.c (redirection_block_p): Remove
16509 redundant test for GIMPLE_ASSIGN in last change.
16510
16511 2015-04-20 Uros Bizjak <ubizjak@gmail.com>
16512
16513 * config/i386/i386.c (set_pic_reg_ever_live): Remove.
16514 (legitimize_pic_address): Do not call set_pic_reg_ever_live.
16515 (legitimize_tls_address): Ditto.
16516 (ix86_expand_move): Ditto.
16517 (ix86_expand_binary_operator): Remove reload_in_progress checks.
16518 (ix86_expand_unary_operator): Ditto.
16519 * config/i386/predicates.md (index_register_operand): Ditto.
16520
16521 2015-04-20 Selim Belbachir <selim.belbachir@fr.thalesgroup.com>
16522
16523 * reorg.c (try_merge_delay_insns): Improve correctness checking
16524 for targets with multiple delay slots.
16525
16526 2015-04-20 Jeff Law <law@redhat.com>
16527
16528 PR tree-optimization/65658
16529 * tree-ssa-threadupdate.c (redirection_block_p): Ignore clobber
16530 statements too.
16531
16532 2015-04-20 Alan Lawrence <alan.lawrence@arm.com>
16533
16534 * config/aarch64/aarch64.c (aarch64_simd_emit_pair_result_insn): Delete.
16535 * config/aarch64/aarch64-protos.h (aarch64_simd_emit_pair_result_insn):
16536 Delete.
16537
16538 2015-04-20 Jakub Jelinek <jakub@redhat.com>
16539
16540 PR debug/65807
16541 * dwarf2out.c (add_AT_wide): Clear attr.dw_attr_val.val_entry.
16542
16543 2015-04-20 Richard Biener <rguenther@suse.de>
16544
16545 * gimple-fold.h (gimple_build): Remove optional valueize arguments.
16546 * gimple-fold.c (gimple_build_valueize): New function.
16547 (gimple_build): Always use gimple_build_valueize as valueize hook.
16548
16549 2015-04-20 Alan Lawrence <alan.lawrence@arm.com>
16550
16551 PR target/64134
16552 * config/aarch64/aarch64.c (aarch64_expand_vector_init): Load constant
16553 and overwrite variable parts if <= 1/2 the elements are variable.
16554
16555 2015-04-19 Vladimir Makarov <vmakarov@redhat.com>
16556
16557 PR rtl-optimization/65805
16558 * lra-eliminations.c (lra_eliminate_regs_1): Add new assert.
16559 Don't use difference of offset and previous offset if
16560 update_sp_offset is non-zero.
16561 (eliminate_regs_in_insn): Ditto.
16562 * lra-spills.c (remove_pseudos): Exchange 4th and 6th args in
16563 lra_eliminate_regs_1 call.
16564 * lra-constraints.c (get_equiv_with_elimination): Ditto.
16565
16566 2015-04-18 Trevor Saunders <tsaunders@mozilla.com>
16567
16568 * hash-table.h: Remove version of hash_table that stored value_type *.
16569 * asan.c, attribs.c, bitmap.c, cfg.c, cgraph.h, config/arm/arm.c,
16570 config/i386/winnt.c, config/ia64/ia64.c, config/mips/mips.c,
16571 config/sol2.c, coverage.c, cselib.c, dse.c, dwarf2cfi.c,
16572 dwarf2out.c, except.c, gcse.c, genmatch.c, ggc-common.c,
16573 gimple-ssa-strength-reduction.c, gimplify.c, haifa-sched.c,
16574 hard-reg-set.h, hash-map.h, hash-set.h, ipa-devirt.c, ipa-icf.h,
16575 ipa-profile.c, ira-color.c, ira-costs.c, loop-invariant.c,
16576 loop-iv.c, loop-unroll.c, lto-streamer.h, plugin.c, postreload-gcse.c,
16577 reginfo.c, statistics.c, store-motion.c, trans-mem.c, tree-cfg.c,
16578 tree-eh.c, tree-hasher.h, tree-into-ssa.c, tree-parloops.c,
16579 tree-sra.c, tree-ssa-coalesce.c, tree-ssa-dom.c, tree-ssa-live.c,
16580 tree-ssa-loop-im.c, tree-ssa-loop-ivopts.c, tree-ssa-phiopt.c,
16581 tree-ssa-pre.c, tree-ssa-reassoc.c, tree-ssa-sccvn.c,
16582 tree-ssa-structalias.c, tree-ssa-tail-merge.c,
16583 tree-ssa-threadupdate.c, tree-vectorizer.c, tree-vectorizer.h,
16584 valtrack.h, var-tracking.c, vtable-verify.c, vtable-verify.h: Adjust.
16585
16586 2015-04-17 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
16587 Jakub Jelinek <jakub@redhat.com>
16588
16589 PR target/65787
16590 * config/rs6000/rs6000.c (rtx_is_swappable_p): Ensure that a
16591 subsequent SH_NONE operand does not overwrite an existing *special
16592 value.
16593 (adjust_extract): Handle case where a vec_extract operation is
16594 wrapped in a PARALLEL.
16595
16596 2015-04-17 H.J. Lu <hongjiu.lu@intel.com>
16597
16598 PR target/65780
16599 * config/i386/i386.c (ix86_binds_local_p): Define only if
16600 TARGET_MACHO and TARGET_DLLIMPORT_DECL_ATTRIBUTES are false.
16601
16602 2015-04-17 Jeff Law <law@redhat.com>
16603
16604 PR tree-optimization/47679
16605 * Makefile.in (OBJS); Add tree-ssa-scopedtables.o.
16606 * tree-ssa-scopedtables.c: New file.
16607 * tree-ssa-scopedtables.h: New file.
16608 * tree-ssa-dom.c: Include tree-ssa-scopedtables.h.
16609 (const_and_copies): Change name/type.
16610 (record_const_or_copy): Move into tree-ssa-scopedtables.c
16611 (record_const_or_copy_1): Similarly.
16612 (restore_vars_to_original_value): Similarly.
16613 (pass_dominator::execute): Create and destroy const_and_copies table.
16614 (thread_across_edge): Update passing of const_and_copies.
16615 (record_temporary_equivalence): Use method calls rather than
16616 manipulating const_and_copies directly.
16617 (record_equality, cprop_into_successor_phis): Similarly.
16618 (dom_opt_dom_walker::before_dom_children): Similarly.
16619 (dom_opt_dom_walker::after_dom_children): Similarly.
16620 (eliminate_redundant_computations): Similarly.
16621 * tree-ssa-threadedge.c (remove_temporary_equivalences): Delete.
16622 (record_temporary_equivalence): Likewise.
16623 (invalidate_equivalences): Likewise.
16624 (record_temporary_equivalences_from_phis): Update due to type
16625 change of const_and_copies. Use method calls rather than
16626 manipulating the stack directly.
16627 (record_temporary_equivalences_from_stmts_at_dest): Likewise.
16628 (thread_through_normal_block, thread_across_edge): Likewise.
16629 (thread_across_edge): Likewise.
16630 * tree-ssa-threadedge.h (thread_across_edge): Update prototype.
16631 * tree-vrp.c: Include tree-ssa-scopedtables.h. Change type
16632 of equiv_stack.
16633 (identify_jump_threads): Update due to type change of equiv_stack.
16634 (finalize_jump_threads): Delete the equiv_stack when complete.
16635
16636 2015-04-17 Uros Bizjak <ubizjak@gmail.com>
16637
16638 * config/i386/i386.h (LEGITIMIZE_RELOAD_ADDRESS): Remove.
16639 * config/i386/i386.c (ix86_legitimize_reload_address): Ditto.
16640 * config/i386/i386-protos.h (ix86_legitimize_reload_address): Ditto.
16641
16642 2015-04-17 Andreas Tobler <andreast@gcc.gnu.org>
16643
16644 PR target/65535
16645 * config.gcc: Exit with a comment when we do not have a major version
16646 number for the FreeBSD target.
16647
16648 2015-04-17 Jakub Jelinek <jakub@redhat.com>
16649
16650 PR target/65689
16651 * genpreds.c (struct constraint_data): Add maybe_allows_reg and
16652 maybe_allows_mem bitfields.
16653 (maybe_allows_none_start, maybe_allows_none_end,
16654 maybe_allows_reg_start, maybe_allows_reg_end, maybe_allows_mem_start,
16655 maybe_allows_mem_end): New variables.
16656 (compute_maybe_allows): New function.
16657 (add_constraint): Use it to initialize maybe_allows_reg and
16658 maybe_allows_mem fields.
16659 (choose_enum_order): Sort the non-is_register/is_const_int/is_memory/
16660 is_address constraints such that those that allow neither mem nor
16661 reg come first, then those that only allow reg but not mem, then
16662 those that only allow mem but not reg, then the rest.
16663 (write_allows_reg_mem_function): New function.
16664 (write_tm_preds_h): Call it.
16665 * stmt.c (parse_output_constraint, parse_input_constraint): Use
16666 the generated insn_extra_constraint_allows_reg_mem function
16667 instead of always setting *allows_reg = true; *allows_mem = true;
16668 for unknown extra constraints.
16669
16670 2015-04-17 H.J. Lu <hongjiu.lu@intel.com>
16671
16672 PR target/65780
16673 * output.h (default_binds_local_p_3): New.
16674 * varasm.c (default_binds_local_p_3): Make it public. Take an
16675 argument to indicate if common symbol may be local. If common
16676 symbol may be local, treat non-external variable as defined
16677 locally.
16678 (default_binds_local_p_2): Pass !flag_pic to default_binds_local_p_3.
16679 (default_binds_local_p_1): Pass false to default_binds_local_p_3.
16680 * config/i386/i386.c (ix86_binds_local_p): New.
16681 (TARGET_BINDS_LOCAL_P): Replace default_binds_local_p_2 with
16682 ix86_binds_local_p.
16683
16684 2015-04-17 Jakub Jelinek <jakub@redhat.com>
16685
16686 PR debug/65771
16687 * dwarf2out.c (mem_loc_descriptor): For CONST, fallback to
16688 trying mem_loc_descriptor on XEXP (rtl, 0).
16689
16690 2015-04-17 Martin Liska <mliska@suse.cz>
16691
16692 * ipa-icf.c (sem_item_optimizer::subdivide_classes_by_sensitive_refs):
16693 Release symbol_compare_collection.
16694 * ipa-reference.c: Add TODO that a vector should be released.
16695
16696 2015-04-17 Sivanupandi Pitchumani <Pitchumani.Sivanupandi@atmel.com>
16697
16698 PR target/65296
16699 * config/avr/gen-avr-mmcu-specs.c (*avrlibc_startfile): Adjust
16700 to new AVR-LibC file layout (bug #44574).
16701 (*avrlibc_devicelib): Same.
16702 * config/avr/avr-mcus.def: Adjust comments.
16703 * config/avr/avr.opt (nodevicelib): Adjust help.
16704
16705 2015-04-17 Alan Lawrence <alan.lawrence@arm.com>
16706
16707 * config/aarch64/arm_neon.h (vdup_n_f32): Remove forward declaration.
16708
16709 2015-04-17 Patrick Palka <ppalka@gcc.gnu.org>
16710
16711 PR c++/64527
16712 * gimplify.c (gimplify_init_constructor): Always emit a
16713 side-effecting constructor.
16714
16715 2015-04-17 Tom de Vries <tom@codesourcery.com>
16716
16717 PR tree-optimization/64950
16718 * gimplify.c (gimplify_function_tree): Tentatively set PROP_gimple_lva
16719 in cfun->curr_properties.
16720 (gimplify_va_arg_expr): Clear PROP_gimple_lva in cfun->curr_properties
16721 if we generate an IFN_VA_ARG.
16722 * tree-inline.c (expand_call_inline): Reset PROP_gimple_lva in dest
16723 function if PROP_gimple_lva is not set in src function.
16724
16725 2015-04-17 Tom de Vries <tom@codesourcery.com>
16726 Michael Matz <matz@suse.de>
16727
16728 PR tree-optimization/64950
16729 * gimple-iterator.c (update_modified_stmts): Remove static.
16730 * gimple-iterator.h (update_modified_stmts): Declare.
16731 * gimplify.c (gimplify_modify_expr): Handle IFN_VA_ARG.
16732 (gimplify_va_arg_internal): New function.
16733 (gimplify_va_arg_expr): Use IFN_VA_ARG.
16734 * gimplify.h (gimplify_va_arg_internal): Declare.
16735 * internal-fn.c (expand_VA_ARG): New unreachable function.
16736 * internal-fn.def (VA_ARG): New DEF_INTERNAL_FN.
16737 * tree-stdarg.c (gimple_call_ifn_va_arg_p, expand_ifn_va_arg_1)
16738 (expand_ifn_va_arg): New function.
16739 (pass_data_stdarg): Add PROP_gimple_lva to properties_provided field.
16740 (pass_stdarg::execute): Call expand_ifn_va_arg.
16741 (pass_data_lower_vaarg): New pass_data.
16742 (pass_lower_vaarg): New gimple_opt_pass.
16743 (pass_lower_vaarg::gate, pass_lower_vaarg::execute)
16744 (make_pass_lower_vaarg): New function.
16745 * cfgexpand.c (pass_data_expand): Add PROP_gimple_lva to
16746 properties_required field.
16747 * passes.def (all_passes): Add pass_lower_vaarg.
16748 * tree-pass.h (PROP_gimple_lva): Add define.
16749 (make_pass_lower_vaarg): Declare.
16750
16751 2015-04-17 Tom de Vries <tom@codesourcery.com>
16752
16753 * fold-const.c (operand_equal_p): Handle INTERNAL_FNs.
16754 * calls.c (call_expr_flags): Same.
16755
16756 2015-04-17 Tom de Vries <tom@codesourcery.com>
16757
16758 * tree-stdarg.c (optimize_va_list_gpr_fpr_size): Factor out of ...
16759 (pass_stdarg::execute): ... here.
16760
16761 2015-04-17 Tom de Vries <tom@codesourcery.com>
16762 Michael Matz <matz@suse.de>
16763
16764 * tree-cfg.c (make_blocks_1): Factor out of ...
16765 (make_blocks): ... here.
16766 (make_edges_bb): Factor out of ...
16767 (make_edges): ... here.
16768 (gimple_find_sub_bbs): New function.
16769 * tree-cfg.h (gimple_find_sub_bbs): Declare.
16770
16771 2015-04-17 Tom de Vries <tom@codesourcery.com>
16772
16773 * tree.c (free_lang_data): Disable lang_hooks.gimplify_expr.
16774
16775 2015-04-17 Yury Gribov <y.gribov@samsung.com>
16776
16777 * asan.c (set_sanitized_sections): New function.
16778 (section_sanitized_p): Ditto.
16779 (asan_protect_global): Optionally sanitize user-defined
16780 sections.
16781 * asan.h (set_sanitized_sections): Declare new function.
16782 * common.opt (fsanitize-sections): New option.
16783 * doc/invoke.texi (-fsanitize-sections): Document new option.
16784 * opts-global.c (handle_common_deferred_options): Handle new
16785 option.
16786
16787 2015-04-17 Jakub Jelinek <jakub@redhat.com>
16788
16789 PR debug/65771
16790 * dwarf2out.c (loc_list_from_tree): Return NULL
16791 for DEBUG_EXPR_DECL.
16792
16793 2015-04-17 Christian Bruel <christian.bruel@st.com>
16794
16795 * ipa-inline.c (can_inline_edge_p): Allow inlining of functions with
16796 same attributes.
16797
16798 2015-04-16 Zhouyi Zhou <yizhouzhou@ict.ac.cn>
16799
16800 * ira-color.c (setup_left_conflict_sizes_p): Do not process
16801 node itself when computing left conflict subnode size.
16802
16803 2015-04-16 Uros Bizjak <ubizjak@gmail.com>
16804
16805 * config/i386/predicates.md (register_mixssei387nonimm_operand): New.
16806 * config/i386/i386.md (*fop_<mode>_1_mixed): Merge with
16807 *fop_<mode>_1_sse using enabled attribute. Use
16808 register_mixssei387nonimm_operand operand 1 predicate. Change
16809 alternative 3 constraints from "x" to "v".
16810
16811 2015-04-16 Richard Biener <rguenther@suse.de>
16812
16813 PR tree-optimization/65774
16814 * tree-ssa-ccp.c (evaluate_stmt): Constrain types we invoke
16815 bit-value tracking on.
16816
16817 2015-04-16 Richard Biener <rguenther@suse.de>
16818
16819 PR tree-optimization/64277
16820 * tree-vrp.c (check_array_ref): Fix anti-range handling,
16821 simplify upper bound handling.
16822 (search_for_addr_array): Simplify.
16823 (check_array_bounds): Handle ADDR_EXPRs here.
16824 (check_all_array_refs): Simplify.
16825
16826 2015-04-16 Uros Bizjak <ubizjak@gmail.com>
16827
16828 * config/i386/i386.c (print_reg): Rewrite function.
16829
16830 2015-04-16 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
16831
16832 * config/s390/s390.h (IRA_HARD_REGNO_ADD_COST_MULTIPLIER):
16833 Invert the condition.
16834
16835 2015-04-16 Renlin Li <renlin.li@arm.com>
16836
16837 * simplify-rtx.c (simplify_unary_operation_1): Fix a typo. Enable two
16838 simplifications for UNSIGNED_FLOAT.
16839
16840 2015-04-16 Nick Clifton <nickc@redhat.com>
16841
16842 * config/rl78/rl78-opts.h (enum rl78_mul_types): Add MUL_G14 and
16843 MUL_UNINIT.
16844 (enum rl78_cpu_type): New.
16845 * config/rl78/rl78-virt.md (attr valloc): Add divhi and divsi.
16846 (umulhi3_shift_virt): Remove m constraint from operand 1.
16847 (umulqihi3_virt): Likewise.
16848 * config/rl78/rl78.c (rl78_option_override): Add code to process
16849 -mcpu and -mmul options.
16850 (rl78_alloc_physical_registers): Add code to handle divhi and
16851 divsi valloc attributes.
16852 (set_origin): Likewise.
16853 * config/rl78/rl78.h (RL78_MUL_G14): Define.
16854 (TARGET_G10, TARGET_G13, TARGET_G14): Define.
16855 (TARGET_CPU_CPP_BUILTINS): Define __RL78_MUL_xxx__ and
16856 __RL78_Gxx__.
16857 (ASM_SPEC): Pass -mcpu on to assembler.
16858 * config/rl78/rl78.md (mulqi3): Add a clobber of AX.
16859 (mulqi3_rl78): Likewise.
16860 (mulhi3_g13): Likewise.
16861 (mulhi3): Generate the G13 or G14 versions of the insn directly.
16862 (mulsi3): Likewise.
16863 (mulhi3_g14): Add clobbers of AX and BC.
16864 (mulsi3_g14): Likewise.
16865 (mulsi3_g13): Likewise.
16866 (udivmodhi4, udivmodhi4_g14, udivmodsi4): New patterns.
16867 (udivmodsi4_g14, udivmodsi4_g13): New patterns.
16868 * config/rl78/rl78.opt (mmul): Initialise value to
16869 RL78_MUL_UNINIT.
16870 (mcpu): New option.
16871 (m13, m14, mrl78): New option aliases.
16872 * config/rl78/t-rl78 (MULTILIB_OPTIONS): Add mg13 and mg14.
16873 (MULTILIB_DIRNAMES): Add g13 and g14.
16874 * doc/invoke.texi: Document -mcpu and -mmul options.
16875
16876 2015-04-16 Richard Biener <rguenther@suse.de>
16877
16878 * tree-ssa-ccp.c (likely_value): See if we have operands that
16879 are marked as never simulate again and return CONSTANT in this
16880 case.
16881 * tree-ssa-propagate.c (simulate_stmt): Mark stmts that do
16882 not have any operands that will be simulated again as
16883 not being simulated again.
16884
16885 2015-04-15 Uros Bizjak <ubizjak@gmail.com>
16886
16887 * config/i386/i386.md (*cmpi<FPCMP:unord><MODEF:mode>_mixed):
16888 Merge with *cmpi<FPCMP:unord><MODEF:mode>_sse using enabled attribute.
16889 (*extendsfdf2_mixed): Merge with *extendsfdf2_sse using enabled
16890 attribute.
16891 (*truncdfsf_fast_mixed): Merge with *truncdfsf_fast_sse using
16892 enabled attribute.
16893 (*float<SWI48:mode><MODEF:mode>2_mixed): Rename from
16894 *float<SWI48:mode><MODEF:mode>2_sse.
16895 (*absneg<mode>2_mixed): Merge with *absneg<mode>2_sse using
16896 enabled attribute.
16897 (*fop_<mode>_comm_mixed): Merge with *fop_<mode>_comm_sse using
16898 enabled attribute.
16899
16900 2015-04-15 Tom de Vries <tom@codesourcery.com>
16901
16902 PR other/65487
16903 * function.c (push_dummy_function): New function.
16904 (init_dummy_function_start): Use push_dummy_function.
16905 (pop_dummy_function): New function. Factored out of ...
16906 (expand_dummy_function_end): ... here.
16907 * function.h (push_dummy_function, pop_dummy_function): Declare.
16908 * passes.c (pass_manager::dump_passes): Use push_dummy_function and
16909 pop_dummy_function.
16910 * tree-chkp.c (chkp_gate): Handle cgraph_node::get (cfun->decl) == NULL.
16911
16912 2015-04-15 Jeff Law <law@redhat.com>
16913
16914 PR tree-optimization/47679
16915 * tree-ssa-dom.c (build_and_record_new_cond): Moved to avoid
16916 need for forward declaration in upcoming changes.
16917 (record_conditions, record_edge_info): Likewise.
16918
16919 PR rtl-optimization/42522
16920 * cse.c (fold_rtx): Try to simplify a ZERO_EXTRACT or
16921 SIGN_EXTRACT as a whole object rather than simplifying
16922 its operand.
16923
16924 2015-04-15 Jakub Jelinek <jakub@redhat.com>
16925
16926 PR ipa/65765
16927 * ipa-icf-gimple.c (func_checker::compare_bb): For GIMPLE_NOP
16928 and GIMPLE_PREDICT use break instead of return true. For
16929 GIMPLE_EH_DISPATCH, compare dispatch region.
16930
16931 2015-04-14 Matthew Wahab <matthew.wahab@arm.com>
16932
16933 * doc/extend.texi (__sync Builtins): Simplify some text. Update
16934 details about the implementation. Make clear preference for
16935 __atomic builtins. Reduce possibility of future change.
16936
16937 2015-04-15 Nick Clifton <nickc@redhat.com>
16938
16939 * config/rx/rx.opt (mallow-string-insns): New option.
16940 * config/rx/rx.c (RX_BUILTIN_RMPA): Disable the use of this
16941 builtin if string instructions are denied.
16942 * config/rx/rx.h (TARGET_CPU_CPP_BUILTINS): Define
16943 __RX_ALLOW_STRING_INSNS__ or __RX_DISALLOW_STRING_INSNS__, as
16944 appropriate.
16945 (ASM_SPEC): Pass -mno-allow-string-insns on to the assembler.
16946 * config/rx/rx.md (movstr): Enable pattern only if string
16947 instructions are allowed.
16948 (rx_movstr, rx_strend, movmemsi, rx_movmem): Likewise.
16949 (cmpstrnsi, cmpstrsi, rx_cmpstrn, rmpa): Likewise.
16950 * config/rx/t-rx (MULTILIB_OPTIONS): Add mno-allow-string-insns.
16951 (MULTILIB_DIRNAMES): Add no-strings.
16952 * doc/invoke.texi: Document -mno-allow-string-insns.
16953
16954 2015-04-15 Alan Modra <amodra@gmail.com>
16955
16956 PR target/65408
16957 PR target/58744
16958 PR middle-end/36043
16959 * calls.c (load_register_parameters): Don't load past end of
16960 mem unless suitably aligned.
16961
16962 2015-04-15 Nick Clifton <nickc@redhat.com>
16963
16964 * config/rl78/rl78.c (rl78_expand_prologue): Mark large stack
16965 decrement instruction as being frame related.
16966 (rl78_print_operand_1): Handle 'p' modifier to add +0 to HL
16967 based addresses.
16968 If zero extending a function address enclose the operation in
16969 %code(...).
16970 (rl78_preferred_reload_class): New function.
16971 (TARGET_PREFERRED_RELOAD_CLASS): Define.
16972 * config/rl78/rl78.md: Remove useless constraints in expanders.
16973 (mulqi3_rl78): Remove + qualifier on input-only operand 1.
16974 (mulhi3_rl78): Likewise.
16975 (mulhi3_g13): Likewise.
16976 (mulsi3_rl78): Likewise.
16977 (es_addr): Move to before the multiply patterns.
16978
16979 2015-04-15 Alan Modra <amodra@gmail.com>
16980
16981 * function.h (struct emit_status): Delete x_first_insn, x_last_insn
16982 and sequence_stack. Add seq.
16983 (seq_stack): Delete.
16984 * function.c (prepare_function_start): Don't access x_last_insn.
16985 * emit-rtl.h (get_current_sequence, get_topmost_sequence): New.
16986 (get_insns, set_first_insn, get_last_insn, set_last_insn): Use them.
16987 * emit_rtl.c (start_sequence, push_topmost_sequence,
16988 pop_topmost_sequence, end_sequence, in_sequence_p, init_emit): Use
16989 sequence accessors.
16990 (get_last_insn_anywhere, add_insn_after_nobb, add_insn_before_nobb,
16991 remove_insn): Likewise. Simplify.
16992 * config/m32c/m32c.c (m32c_leaf_function_p): Use push_topmost_sequence
16993 and pop_topmost_sequence.
16994 (m32c_function_needs_enter): Use get_topmost_sequence. Ignore
16995 debug insns.
16996 * config/rs6000/rs6000.c (rs6000_call_aix): Use get_current_sequence.
16997
16998 2015-04-14 Yvan Roux <yvan.roux@linaro.org>
16999
17000 PR target/65729
17001 * lra-constraints.c (prohibited_class_reg_set_mode_p): Restore and fix
17002 the assertiion.
17003
17004 2015-04-14 Uros Bizjak <ubizjak@gmail.com>
17005
17006 * config/i386/i386.h (LEGACY_INT_REG_P): New define.
17007 (LEGACY_INT_REGNO_P): Ditto.
17008 (GENERAL_REGNO_P): Use LEGACY_INT_REGNO_P.
17009 (ANY_MASK_REG_P): Remove.
17010 (BND_REG_P): Rename from ANY_BND_REG_P.
17011 * config/i386/i386.c (print_reg): Use LEGACY_INT_REG_P to print
17012 legacy integer registers. Do not handle MMX_REG_P in a special way.
17013 Merge 64byte and 32byte SSE handling.
17014
17015 2015-04-14 Nick Clifton <nickc@redhat.com>
17016
17017 * expr.c (expand_assignment): Force an address offset computation
17018 into a register before changing its mode.
17019 (expand_expr_real_1): Likewise.
17020
17021 2015-04-14 Alan Lawrence <alan.lawrence@arm.com>
17022
17023 * config/aarch64/arm_neon.h (vst1_lane_f32, vst1_lane_f64,
17024 vst1_lane_p8, vst1_lane_p16, vst1_lane_s8, vst1_lane_s16,
17025 vst1_lane_s32, vst1_lane_s64, vst1_lane_u8, vst1_lane_u16,
17026 vst1_lane_u32, vst1_lane_u64, vst1q_lane_f32, vst1q_lane_f64,
17027 vst1q_lane_p8, vst1q_lane_p16, vst1q_lane_s8, vst1q_lane_s16,
17028 vst1q_lane_s32, vst1q_lane_s64, vst1q_lane_u8, vst1q_lane_u16,
17029 vst1q_lane_u32, vst1q_lane_u64): Reimplement with pointer dereference
17030 and __aarch64_vget_lane_any.
17031
17032 2015-04-14 Jakub Jelinek <jakub@redhat.com>
17033
17034 PR rtl-optimization/65761
17035 * cfgrtl.c (rtl_split_edge): For EDGE_CROSSING split, use
17036 get_last_bb_insn (after) instead of NEXT_INSN (BB_END (after)).
17037
17038 2015-04-14 Richard Biener <rguenther@suse.de>
17039
17040 * graphite-scop-detection.c: Do not include cp/cp-tree.h.
17041 (graphite_can_represent_scev): Use POINTER_TYPE_P.
17042
17043 2015-04-14 Richard Biener <rguenther@suse.de>
17044
17045 PR tree-optimization/65758
17046 * tree-ssa-ccp.c (get_value_from_alignment): Adjust mask test
17047 against -1.
17048 (ccp_lattice_meet): Likewise.
17049 (bit_value_unop): Likewise.
17050 (bit_value_binop): Likewise.
17051 (bit_value_assume_aligned): Likewise.
17052
17053 2015-04-14 Christian Bruel <christian.bruel@st.com>
17054
17055 * execute_dwarf2_frame (dw_frame_pointer_regnum): Reinitialize for each
17056 function.
17057
17058 2015-04-14 Marc Glisse <marc.glisse@inria.fr>
17059
17060 PR tree-optimization/63387
17061 * match.pd ((x unord x) | (y unord y) -> (x unord y),
17062 (x unord x) | (x unord y) -> (x unord y)): New simplifications.
17063
17064 2015-04-14 Uros Bizjak <ubizjak@gmail.com>
17065
17066 * config/i386/predicates.md (any_QIreg_operand): Rename from
17067 q_regs_operand. Do not process subregs.
17068 (QIreg_operand): Use QI_REGNO_P predicate.
17069 (ext_QIreg_operand): Ditto.
17070 (ext_register_operand): Ditto.
17071 * config/i386/i386.md (TEST splitters): Use QIreg_operand predicate.
17072 (AND splitters): Ditto.
17073 (AND with -65536 splitter): Add SWI48 mode for operand 0.
17074 (AND with -256 splitter): Use any_QIreg_operand predicate and
17075 SWI248 mode for operand 0.
17076 (AND with -65281 splitter): Use QIreg_operand predicate and SWI248
17077 mode for operand 0.
17078 (SETCC + MOVZBL peepholes): Update for renamed any_QIreg_operand.
17079
17080 2015-04-13 Gerald Pfeifer <gerald@pfeifer.com>
17081
17082 * doc/plugins.texi: Rewrite first introductory paragraph.
17083
17084 2015-04-12 Jan Hubicka <hubicka@ucw.cz>
17085
17086 * tree-vrp.c (nonnull_arg_p): THIS pointers and references are non-zero.
17087 (gimple_stmt_nonzero_warnv_p): Reference return values are non-zero.
17088
17089 2015-04-12 Jan Hubicka <hubicka@ucw.cz>
17090
17091 * ipa-profie.c (ipa_profile): Check number of parameters
17092 and possible polymorphic call targets before
17093 devirtualizing.
17094
17095 2015-04-13 Uros Bizjak <ubizjak@gmail.com>
17096
17097 * config/i386/i386.md (*bmi2_umul<mode><dwi>3_1): Merge from
17098 *bmi2_umulsidi3_1 and *bmi2_umulditi3_1 using DWIH mode iterator.
17099
17100 2015-04-13 Richard Biener <rguenther@suse.de>
17101
17102 PR tree-optimization/65204
17103 * tree-ssa-ccp.c (evaluate_stmt): Always evaluate address
17104 takens for bit-CCP.
17105
17106 2015-04-13 Richard Biener <rguenther@suse.de>
17107
17108 PR target/65660
17109 * config/i386/i386.c (bdver1_cost): Double cond_taken_branch_cost
17110 and cond_not_taken_branch_cost to 4 and 2.
17111 (bdver2_cost): Likewise.
17112 (bdver3_cost): Likewise.
17113 (bdver4_cost): Likewise.
17114
17115 2015-04-12 Jan Hubicka <hubicka@ucw.cz>
17116
17117 * hash-table.h (hash_table constructor): Add mem stats.
17118 (alloc_entries): Likewise.
17119
17120 2015-04-12 Jan Hubicka <hubicka@ucw.cz>
17121
17122 * ipa-cp.c (ipcp_driver): Relase prev_edge.
17123 * passes.c (execute_one_pass): Only add transform if pass has one.
17124
17125 2015-04-12 Joseph Myers <joseph@codesourcery.com>
17126
17127 * config/i386/i386.c (ix86_option_override_internal): Don't set
17128 -fprefetch-loop-arrays if optimizing for size.
17129
17130 2015-04-12 Jan Hubicka <hubicka@ucw.cz>
17131 Gerald Pfeifer <gerald@pfeifer.com>
17132
17133 * doc/contrib.texi (Contributors): Add Martin Jambor and
17134 Michael Matz.
17135
17136 2015-04-12 Jakub Jelinek <jakub@redhat.com>
17137
17138 * BASE-VER: Set to 6.0.0.
17139
17140 PR tree-optimization/65747
17141 * ipa-icf-gimple.c (func_checker::compare_operand): Use compare_operand
17142 rather than compare_ssa_name for OBJ_TYPE_REF_OBJECT.
17143
17144 2015-04-12 Gerald Pfeifer <gerald@pfeifer.com>
17145
17146 * doc/invoke.texi (-Wmemset-transposed-args): Break a long
17147 sentence. Improve grammar.
17148
17149 2015-04-12 Gerald Pfeifer <gerald@pfeifer.com>
17150
17151 * doc/contrib.texi (Contributors): Add Maxim Kuvyrkov.
17152
17153 2015-04-11 Jan Hubicka <hubicka@ucw.cz>
17154
17155 PR ipa/65743
17156 * ipa-inline-transform.c (speculation_removed): Remove static var.
17157 (check_speculations): New function.
17158 (clone_inlined_nodes): Do not check spculations.
17159 (inline_call): Call check_speculations.
17160 * ipa-prop.c (ipa_make_edge_direct_to_target): Do not
17161 consider non-invariants.
17162
17163 2015-04-11 Jan Hubicka <hubicka@ucw.cz>
17164 Martin Liska <mliska@suse.cz>
17165
17166 PR ipa/65722
17167 * ipa-icf.c (sem_item::compare_cgraph_references): function and
17168 variable can not match.
17169 (sem_item::update_hash_by_addr_refs): Fix handling of virtual tables.
17170 (sem_variable::equals_wpa): Fix checking of DECL_FINAL_P patch.
17171
17172 2015-04-11 Jakub Jelinek <jakub@redhat.com>
17173
17174 PR tree-optimization/65735
17175 * tree-ssa-threadedge.c (fsm_find_control_statement_thread_paths):
17176 Remove visited_phis argument, add visited_bbs, avoid recursing into the
17177 same bb rather than just into the same phi node.
17178 (thread_through_normal_block): Adjust caller.
17179
17180 2015-04-11 Gerald Pfeifer <gerald@pfeifer.com>
17181
17182 * doc/contrib.texi (Contributors): Add Ira Rosen.
17183
17184 2015-04-11 Benno Schulenberg <bensberg@justemail.net>
17185
17186 * gcov.c (find_source): Fix miswording in error message.
17187 * config/i386/i386.c (ix86_handle_cconv_attribute): Likewise.
17188 (ix86_expand_sse_comi_round): Fix typo in error message.
17189
17190 2015-04-11 Gerald Pfeifer <gerald@pfeifer.com>
17191
17192 * doc/contrib.texi (Contributors): Add Laurynas Biveinis.
17193
17194 2015-04-10 Gerald Pfeifer <gerald@pfeifer.com>
17195
17196 * doc/contrib.texi (Contributors): Update Joe Buck's entry.
17197
17198 2015-04-10 Vladimir Makarov <vmakarov@redhat.com>
17199
17200 PR target/65710
17201 * lra-assigns.c (spill_for): Update smallest_bad_spills_num.
17202 Print bad_spills_num and insn_pseudos_num.
17203
17204 2015-04-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
17205
17206 PR target/65694
17207 * config/arm/arm.c (arm_canonicalize_comparison): Use ARM_SIGN_EXTEND
17208 when creating +1 values for SImode.
17209
17210 2015-04-10 Vladimir Makarov <vmakarov@redhat.com>
17211
17212 PR target/65729
17213 * lra-constraints.c (prohibited_class_reg_set_mode_p): Comment the
17214 assert.
17215
17216 2015-04-10 Jakub Jelinek <jakub@redhat.com>
17217 Iain Sandoe <iain@codesourcery.com>
17218
17219 PR target/65351
17220 * configure: Regenerate.
17221
17222 2015-04-09 Kirill Yukhin <kirill.yukhin@intel.com>
17223
17224 PR target/65671
17225 * config/i386/sse.md: Generate vextract32x4 if AVX-512DQ is disabled.
17226
17227 2015-04-09 Gerald Pfeifer <gerald@pfeifer.com>
17228
17229 * doc/contrib.texi (Contributors): Add John Marino.
17230
17231 2015-04-09 Jakub Jelinek <jakub@redhat.com>
17232
17233 PR tree-optimization/65709
17234 * ubsan.c (instrument_mem_ref): Use TREE_TYPE (base) instead of
17235 TREE_TYPE (TREE_TYPE (t)).
17236
17237 2015-04-09 Vladimir Makarov <vmakarov@redhat.com>
17238
17239 PR target/65710
17240 * lra-int.h (lra_bad_spill_regno_start): New.
17241 * lra.c (lra_bad_spill_regno_start): New.
17242 (lra): Set up lra_bad_spill_regno_start. Set up
17243 lra_constraint_new_regno_start unconditionally.
17244 * lra-assigns.c (spill_for): Use lra_bad_spill_regno_start for
17245 spill preferences.
17246
17247 2015-04-09 Marek Polacek <polacek@redhat.com>
17248 Jakub Jelinek <jakub@redhat.com>
17249
17250 PR middle-end/65554
17251 * gimple-fold.c (gimple_fold_builtin_memory_op): Update comment.
17252 (fold_ctor_reference): Use STRIP_USELESS_TYPE_CONVERSION instead
17253 of STRIP_NOPS.
17254
17255 2015-04-09 Segher Boessenkool <segher@kernel.crashing.org>
17256
17257 PR rtl-optimization/65693
17258 * combine.c (is_parallel_of_n_reg_sets): Move outside of
17259 #ifndef HAVE_cc0.
17260
17261 2015-04-09 Georg-Johann Lay <avr@gjlay.de>
17262
17263 PR target/65296
17264 * config/avr/driver-avr.c (avr_devicespecs_file): Don't specify a
17265 device specs file if "device-specs%s" didn't resolve to a path.
17266
17267 2015-04-09 Kirill Yukhin <kirill.yukhin@intel.com>
17268
17269 PR target/65676
17270 * config/i386/i386.c (fixup_modeless_constant): New.
17271 (ix86_expand_args_builtin): Fixup modeless constant operand.
17272 (ix86_expand_round_builtin): Ditto.
17273 (ix86_expand_special_args_builtin): Ditto.
17274 (ix86_expand_builtin): Ditto.
17275
17276 2015-04-09 Jakub Jelinek <jakub@redhat.com>
17277
17278 PR target/65693
17279 * config/i386/i386.md (*udivmod<mode>4_pow2): Allow
17280 any pow2 integer in between 2 and 0x80000000U inclusive.
17281
17282 2015-04-08 Segher Boessenkool <segher@kernel.crashing.org>
17283
17284 PR rtl-optimization/65693
17285 * combine.c (is_parallel_of_n_reg_sets): Change first argument
17286 from an rtx_insn * to an rtx.
17287 (try_combine): Adjust both callers. Use it once more.
17288
17289 2015-04-08 Ilya Enkovich <ilya.enkovich@intel.com>
17290
17291 * tree-chkp.c (chkp_find_const_bounds_var): Remove.
17292 (chkp_make_static_const_bounds): Search existing
17293 symbol by assembler name. Use make_decl_one_only.
17294 (chkp_get_zero_bounds_var): Remove node search which
17295 is now performed in chkp_make_static_const_bounds.
17296 (chkp_get_none_bounds_var): Likewise.
17297
17298 2015-04-08 Michael Witten <mfwitten@gmail.com>
17299
17300 * doc/extend.texi (Attribute Syntax): Add a trailing semicolon
17301 to an example.
17302
17303 2015-04-08 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
17304
17305 * tree.h (CONVERT_EXPR_P): Commentary typo fix.
17306
17307 2015-04-08 Gerald Pfeifer <gerald@pfeifer.com>
17308
17309 * doc/extend.texi (__sync Builtins): Fix grammar.
17310
17311 2015-04-08 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
17312
17313 * doc/cfg.texi (GIMPLE statement iterators): Fix typo.
17314
17315 2015-04-08 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
17316
17317 * varasm.c (emit_local): Move definition of align.
17318
17319 2015-04-08 Julian Brown <julian@codesourcery.com>
17320
17321 * config/nvptx/mkoffload.c (process): Support variable mapping.
17322
17323 2015-03-27 Trevor Saunders <tbsaunde@tbsaunde.org>
17324
17325 * config/alpha/alpha.c (alpha_use_linkage): Change type of slot to
17326 alpha_links **.
17327 (alpha_write_one_linkage): Correct typo.
17328
17329 2015-04-08 Ilya Enkovich <ilya.enkovich@intel.com>
17330
17331 * ipa-comdats.c (propagate_comdat_group): Walk through thunks.
17332
17333 2015-04-08 Gerald Pfeifer <gerald@pfeifer.com>
17334
17335 * doc/install.texi (bootstrap-lto-noplugin): Rewrite.
17336
17337 2015-04-08 Ilya Enkovich <ilya.enkovich@intel.com>
17338
17339 * tree-chkp.h (chkp_insert_retbnd_call): New.
17340 * tree-chkp.c (chkp_insert_retbnd_call): New.
17341 * ipa-split.c (insert_bndret_call_after): Remove.
17342 (split_function): Use chkp_insert_retbnd_call.
17343 * cgraphunit.c (cgraph_node::expand_thunk): Build returned
17344 bounds for instrumented functions.
17345
17346 2015-04-07 Jan Hubicka <hubicka@ucw.cz>
17347
17348 PR ipa/65540
17349 * calls.c (initialize_argument_information): When producing tail
17350 call also turn SSA_NAMES passed by references to original PARM_DECLs
17351
17352 2015-04-07 Vladimir Makarov <vmakarov@redhat.com>
17353
17354 PR target/65648
17355 * lra-remat.c (do_remat): Process input and non-input insn
17356 registers separately.
17357
17358 2015-04-07 Jakub Jelinek <jakub@redhat.com>
17359
17360 PR debug/65678
17361 * valtrack.c (debug_lowpart_subreg): New function.
17362 (dead_debug_insert_temp): Use it.
17363
17364 PR middle-end/65680
17365 * expr.c (get_inner_reference): Handle bit_offset that doesn't fit
17366 into signed HOST_WIDE_INT the same as negative bit_offset.
17367
17368 2015-04-07 Ilya Enkovich <ilya.enkovich@intel.com>
17369
17370 * ipa-comdats.c (ipa_comdats): Visit all thunks
17371 to set proper comdat group.
17372
17373 2015-04-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
17374
17375 PR target/65489
17376 * config/arm/arm.c (arm_legitimate_constant_p_1): Remove restriction
17377 on constants for NEON VSTRUCT modes.
17378
17379 2015-04-07 Jakub Jelinek <jakub@redhat.com>
17380 Iain Sandoe <iain@codesourcery.com>
17381
17382 PR target/65351
17383 * configure: Regenerate.
17384
17385 2015-04-06 Michael Meissner <meissner@linux.vnet.ibm.com>
17386
17387 PR target/65614
17388 * config/rs6000/rs6000.c (struct processor_costs): Add cost field
17389 for SF->DF conversions to make FLOAT_EXTEND more expensive, so
17390 that LFD is used to load double constants instead of LFS. Add
17391 defaults for all costs structures. Add comments for missing
17392 initialization fields.
17393 (size32_cost): Likewise.
17394 (size64_cost): Likewise.
17395 (rs64a_cost): Likewise.
17396 (mpccore_cost): Likewise.
17397 (ppc403_cost): Likewise.
17398 (ppc405_cost): Likewise.
17399 (ppc440_cost): Likewise.
17400 (ppc476_cost): Likewise.
17401 (ppc601_cost): Likewise.
17402 (ppc603_cost): Likewise.
17403 (ppc604_cost): Likewise.
17404 (ppc604e_cost): Likewise.
17405 (ppc620_cost): Likewise.
17406 (ppc630_cost): Likewise.
17407 (ppccell_cost): Likewise.
17408 (ppc750_cost): Likewise.
17409 (ppc7450_cost): Likewise.
17410 (ppc8540_cost): Likewise.
17411 (ppce300c2c3_cost): Likewise.
17412 (ppce500mc_cost): Likewise.
17413 (ppce500mc64_cost): Likewise.
17414 (ppce5500_cost): Likewise.
17415 (ppce6500_cost): Likewise.
17416 (titan_cost): Likewise.
17417 (power4_cost): Likewise.
17418 (power6_cost): Likewise.
17419 (power7_cost): Likewise.
17420 (power8_cost): Likewise.
17421 (ppca2_cost): Likewise.
17422 (rs6000_rtx_costs): Make FLOAT_EXTEND use SFDF_convert field.
17423
17424 * config/rs6000/rs6000.md (extendsfdf2_fpr): Generate XSCPSGNDP
17425 instead of XXLOR to copy SFmode to clear out dirty bits created
17426 when SFmode denormals are generated.
17427 (mov<mode>_hardfloat, FMOVE32 case): Likewise.
17428 (truncdfsf2_fpr): Add support for ISA 2.07 XSRSP instruction.
17429
17430 2015-04-06 Evandro Menezes <e.menezes@samsung.com>
17431
17432 * doc/invoke.texi (AARCH64/mtune): Add exynos-m1 as an option.
17433 * config/aarch64/aarch64-cores.def (exynos-m1): New core.
17434 * config/aarch64/aarch64-tune.md: Regenerate.
17435
17436 2015-04-06 Evandro Menezes <e.menezes@samsung.com>
17437
17438 * doc/invoke.texi (ARM/mtune): Add "exynos-m1" as an option.
17439 * config/arm/arm.c (arm_issue_rate): Specify "3" for "exynosm1".
17440 * config/arm/arm-cores.def (exynos-m1): New core.
17441 * config/arm/arm-tune.md: Regenerate.
17442 * config/arm/arm-tables.opt: Add entry for "exynos-m1".
17443 * config/arm/bpabi.h: Likewise.
17444
17445 2015-04-06 Ilya Enkovich <ilya.enkovich@intel.com>
17446
17447 * ipa-cp (set_single_call_flag): Remove too
17448 restrictive assert.
17449
17450 2015-04-06 Ilya Verbin <ilya.verbin@intel.com>
17451
17452 * config/i386/intelmic-mkoffload.c (generate_host_descr_file): Call
17453 GOMP_offload_unregister from the destructor.
17454
17455 2015-04-06 Ilya Enkovich <ilya.enkovich@intel.com>
17456
17457 * ipa-chkp.c (chkp_maybe_create_clone): Reset cdtor
17458 flags for instrumentation thunk.
17459 (chkp_produce_thunks): Likewise.
17460
17461 2015-04-05 Martin Liska <mliska@suse.cz>
17462
17463 PR ipa/65665
17464 * ipa-icf.c (sem_function::equals_wpa): Verify that IPA CP
17465 has computed data structure.
17466 (sem_item_optimizer::update_hash_by_addr_refs): Likewise.
17467
17468 2015-04-04 Jan Hubicka <hubicka@ucw.cz>
17469
17470 * invoke.texi (inline-unit-growth): Increase growth to 20%
17471 * params.def (PARAM_INLINE_UNIT_GROWTH): Likewise.
17472
17473 2015-04-04 Vladimir Makarov <vmakarov@redhat.com>
17474
17475 PR target/65647
17476 * lra-int.h (LRA_MAX_REMATERIALIZATION_PASSES): New. Add its
17477 value checking.
17478 (lra_rematerialization_iter): New.
17479 * lra.c (lra): Initialize lra_rematerialization_iter.
17480 Stop updating lra_constraint_new_regno_start after switching of
17481 inheritance and rematerialization.
17482 * lra-remat.c (lra_rematerialization_iter): New.
17483 (lra_remat): Add printing pass iteration. Do rematerialization
17484 only first LRA_MAX_REMATERIALIZATION_PASSES iterations.
17485
17486 2015-04-04 Richard Biener <rguenther@suse.de>
17487
17488 PR tree-optimization/64909
17489 PR tree-optimization/65660
17490 * tree-vectorizer.h (vect_get_known_peeling_cost): Adjust
17491 to take a cost vector for scalar iteration cost.
17492 (vect_get_single_scalar_iteration_cost): Likewise.
17493 * tree-vect-loop.c (vect_get_single_scalar_iteration_cost):
17494 Compute the scalar iteration cost into a cost vector.
17495 (vect_get_known_peeling_cost): Use the scalar cost vector to
17496 account for the cost of the peeled iterations.
17497 (vect_estimate_min_profitable_iters): Likewise.
17498 * tree-vect-data-refs.c (vect_peeling_hash_get_lowest_cost):
17499 Likewise.
17500
17501 2015-04-04 Alan Modra <amodra@gmail.com>
17502
17503 PR target/65576
17504 PR target/65240
17505 * config/rs6000/predicates.md (zero_reg_mem_operand): Exclude
17506 0.0 constant unless TARGET_VSX.
17507 * config/rs6000/rs6000.md (extenddftf2_internal): Remove last
17508 alternative.
17509
17510 2015-04-03 Jan Hubicka <hubicka@ucw.cz>
17511
17512 PR ipa/65654
17513 * ipa-inline-transform.c (inline_call): Skip sanity check to work
17514 around the ICE
17515
17516 2015-04-03 Jan Hubicka <hubicka@ucw.cz>
17517
17518 PR ipa/65655
17519 * ipa-inline-analysis.c (edge_set_predicate): Do not redirect
17520 speculative indirect edges to avoid ordering issue.
17521
17522 2015-04-03 Jan Hubicka <hubicka@ucw.cz>
17523
17524 PR ipa/65076
17525 * ipa-inline.c (edge_badness): Add combined size to the denominator.
17526
17527 2015-04-03 Jakub Jelinek <jakub@redhat.com>
17528
17529 * omp-low.c (scan_omp_parallel, scan_omp_task, scan_omp_target): Set
17530 TYPE_ARTIFICIAL on the .omp_data* types.
17531
17532 2015-04-02 Ilya Enkovich <ilya.enkovich@intel.com>
17533
17534 * cgraphunit.c (cgraph_node::expand_thunk): Don't expand
17535 instrumentation thunks.
17536
17537 2015-04-02 Ilya Enkovich <ilya.enkovich@intel.com>
17538
17539 * config/i386/i386.c (ix86_expand_call): Avoid nested
17540 PARALLEL in returned call value.
17541
17542 2015-04-02 Ilya Enkovich <ilya.enkovich@intel.com>
17543
17544 * lto-cgraph.c (input_cgraph_1): Always link instrumented
17545 assembler name with original one.
17546
17547 2015-04-02 Uros Bizjak <ubizjak@gmail.com>
17548
17549 * config/i386/i386.c (ix86_register_priority): Use AX_REG.
17550
17551 2015-04-02 Uros Bizjak <ubizjak@gmail.com>
17552
17553 Revert parts of r216820.
17554 * config/i386/i386.md (movqi_internal): Correct type calculation
17555 for alternatives 3 and 5.
17556
17557 2015-04-02 Jakub Jelinek <jakub@redhat.com>
17558
17559 PR preprocessor/61977
17560 * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Don't
17561 predefine __vector/__bool/__pixel macros nor context sensitive
17562 macros for CLK_ASM.
17563 * config/spu/spu-c.c (spu_cpu_cpp_builtins): Similarly.
17564
17565 2015-04-02 John David Anglin <danglin@gcc.gnu.org>
17566
17567 * config/pa/pa.c (pa_output_move_double): Directly handle register
17568 indexed memory operand. Simplify handling of scaled register indexed
17569 memory operands.
17570
17571 2015-04-02 Ilya Enkovich <ilya.enkovich@intel.com>
17572
17573 PR driver/65444
17574 * config/i386/linux-common.h (MPX_SPEC): New.
17575 (CHKP_SPEC): Add MPX_SPEC.
17576 * doc/invoke.texi (-fcheck-pointer-boudns): Document
17577 possible issues with '-z bndplt' support in linker.
17578
17579 2015-04-02 Uros Bizjak <ubizjak@gmail.com>
17580
17581 * config/i386/sync.md (UNSPEC_FILD_ATOMIC, UNSPEC_FIST_ATOMIC): New.
17582 (loaddi_via_fpu): Use UNSPEC_FILD_ATOMIC.
17583 (storedi_via_fpu): Use UNSPEC_FIST_ATOMIC.
17584 * reg-stack.c (get_true_reg): Change UNSPEC_LDA to UNSPEC_FILD_ATOMIC.
17585 (subst_stack_regs_pat): Change UNSPEC_STA to UNSPEC_FIST_ATOMIC.
17586
17587 2015-04-01 Uros Bizjak <ubizjak@gmail.com>
17588
17589 * config/i386/sync.md (UNSPEC_MOVA): Remove.
17590 (atomic_load<mode>): Change operand 0 predicate to
17591 nonimmediate_operand and fix up the destination when needed.
17592 Use UNSPEC_LDA.
17593 (atomic_loaddi_fpu): Use UNSPEC_LDA.
17594 (atomic_store<mode>): Change operand 1 predicate to
17595 nonimmendate_operand and move the source to register when needed.
17596 Use UNSPEC_STA.
17597 (atomic_store<mode>_1): Use UNSPEC_STA.
17598 (atomic_storedi_fpu): Change operand 1 to nonimmediate_operand.
17599 Fix moves from memory operand. Use UNSPEC_STA.
17600
17601 2015-04-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
17602
17603 * expmed.c (strict_volatile_bitfield_p): Check that the access will
17604 not cross a MODESIZE boundary.
17605 (store_bit_field, extract_bit_field): Added assertions in the
17606 strict volatile bitfields code path.
17607
17608 2015-04-01 Max Ostapenko <m.ostapenko@partner.samsung.com>
17609
17610 PR target/65624
17611 * config/aarch64/aarch64-builtins.c (aarch64_simd_expand_builtin):
17612 Increase args array size by one to avoid buffer overflow.
17613
17614 2015-03-31 Jan Hubicka <hubicka@ucw.cz>
17615
17616 * lto-cgraph.c (lto_output_node, input_overwrite_node): Stream
17617 split_part.
17618 * ipa-inline.c (edge_badness): Add wrapper penalty.
17619 (sum_callers): Move up.
17620 (inline_small_functions): Set single_caller.
17621 * ipa-inline.h (inline_summary): Add single_caller.
17622 * ipa-split.c (split_function): Set split_part.
17623 (cgraph_node::create_clone): Do not shadow decl; copy split_part.
17624 * cgraph.h (cgraph_node): Add split_part.
17625
17626 2015-03-31 Uros Bizjak <ubizjak@gmail.com>
17627
17628 PR target/58945
17629 * config/i386/sync.md (atomic_compare_and_swap<dwi>_doubleword):
17630 Do not split operands 0 and operands 2 to halfmode.
17631 (atomic_compare_and_swap<mode>): Update for
17632 atomic_compare_and_swap<dwi>_doubleword changes.
17633
17634 2015-03-31 Jan Hubicka <hubicka@ucw.cz>
17635
17636 * tree.c (need_assembler_name_p): Artificial types have no ODR names.
17637 * ipa-devirt.c (warn_odr): Do not try to apply ODR cache when
17638 no caching is done.
17639
17640 2015-03-31 Martin Liska <mliska@suse.cz>
17641
17642 PR ipa/65557
17643 * ipa-icf.c (sem_function::equals_wpa): Check if IPA CP
17644 has already filled up function summary.
17645 (sem_item_optimizer::update_hash_by_addr_refs): Likewise.
17646
17647 2015-03-31 Richard Biener <rguenther@suse.de>
17648
17649 * tree-sra.c (create_access_replacement): Drop under-/over-alignment
17650 of types.
17651
17652 2015-03-31 Dominik Vogt <vogt@linux.vnet.ibm.com>
17653
17654 * config/s390/s390.c (s390_function_num_hotpatch_hw): Allow hotpatching
17655 nested functions.
17656 (s390_reorg): Adapt to new signature of s390_function_num_hotpatch_hw.
17657 (s390_asm_output_function_label): Adapt to new signature of
17658 s390_function_num_hotpatch_hw
17659 Optimise the code generating assembler output.
17660 Add comments to assembler file.
17661
17662 2015-03-31 Richard Biener <rguenther@suse.de>
17663
17664 PR middle-end/65626
17665 * tree-cfgcleanup.c (fixup_noreturn_call): Only split the block
17666 of the noreturn call so it is last and cleanup_control_flow_bb
17667 can do the CFG part.
17668
17669 2015-03-31 Ilya Enkovich <ilya.enkovich@intel.com>
17670
17671 PR target/65531
17672 * ipa-chkp.c (chkp_maybe_create_clone): Don't set
17673 same_comdat_group for external symbols.
17674 * symtab.c (symtab_node::verify_symtab_nodes): Avoid
17675 infinite same_comdat_group traversal loop.
17676
17677 2015-03-31 Jakub Jelinek <jakub@redhat.com>
17678
17679 PR plugins/61176
17680 * Makefile.in (install-plugin): Add all gcc/*.{h,def} files
17681 automatically to $headers.
17682
17683 2015-03-30 Jakub Jelinek <jakub@redhat.com>
17684
17685 PR ipa/65610
17686 * ipa-utils.h (inlined_polymorphic_ctor_dtor_block_p): Declare.
17687 * ipa-polymorphic-call.c (inlined_polymorphic_ctor_dtor_block_p): New
17688 function.
17689 (decl_maybe_in_construction_p, noncall_stmt_may_be_vtbl_ptr_store):
17690 Use it.
17691 * ipa-prop.c (param_type_may_change_p): Likewise.
17692 * tree-ssa-live.c: Include ipa-utils.h and its dependencies.
17693 (remove_unused_scope_block_p): Add in_ctor_dtor_block
17694 argument. Before inlining, preserve
17695 inlined_polymorphic_ctor_dtor_block_p blocks and the outermost block
17696 with FUNCTION_DECL BLOCK_ABSTRACT_ORIGIN inside of them. Adjust
17697 recursive calls.
17698 (remove_unused_locals): Adjust remove_unused_scope_block_p caller.
17699
17700 2015-03-27 Jan Hubicka <hubicka@ucw.cz>
17701
17702 PR ipa/65076
17703 * ipa-inline.c (edge_badness): Base denominator on callee's
17704 grwoth squared.
17705
17706 2015-03-27 Martin Jambor <mjambor@suse.cz>
17707
17708 PR ipa/65478
17709 * params.def (PARAM_IPA_CP_RECURSION_PENALTY) : New.
17710 (PARAM_IPA_CP_SINGLE_CALL_PENALTY): Likewise.
17711 * ipa-prop.h (ipa_node_params): New flags node_within_scc and
17712 node_calling_single_call.
17713 * ipa-cp.c (count_callers): New function.
17714 (set_single_call_flag): Likewise.
17715 (initialize_node_lattices): Count callers and set single_flag_call if
17716 necessary.
17717 (incorporate_penalties): New function.
17718 (good_cloning_opportunity_p): Use it, dump new flags.
17719 (propagate_constants_topo): Set node_within_scc flag if appropriate.
17720 * doc/invoke.texi (ipa-cp-recursion-penalty,
17721 ipa-cp-single-call-pentalty): Document.
17722
17723 2015-03-27 Jan Hubicka <hubicka@ucw.cz>
17724
17725 PR ipa/65588
17726 * symtab.c (symtab_node::get_partitioning_class): Register vars
17727 are duplicated.
17728 * varpool.c (symbol_table::output_variables) Do not assemble unefined
17729 decls for non-symbols.
17730
17731 2015-03-27 H.J. Lu <hongjiu.lu@intel.com>
17732
17733 PR target/65248
17734 * output.h (default_binds_local_p_2): New.
17735 * varasm.c (default_binds_local_p_2): Renamed to ...
17736 (default_binds_local_p_3): This. Don't return true on protected
17737 data symbol if protected data may be external.
17738 (default_binds_local_p): Use default_binds_local_p_3.
17739 (default_binds_local_p_1): Likewise.
17740 (default_binds_local_p_2): New.
17741 * config/i386/i386.c (TARGET_BINDS_LOCAL_P): Set to
17742 default_binds_local_p_2 if TARGET_MACHO is undefined.
17743
17744 2015-03-27 Jakub Jelinek <jakub@redhat.com>
17745
17746 PR target/65593
17747 * config/i386/i386.c (legitimize_pic_address): If base
17748 is SYMBOL_REF or LABEL_REF using %rip addressing, force
17749 it to reg to avoid PLUS of SYMBOL_REF/LABEL_REF and register.
17750
17751 2015-03-27 Jan Hubicka <hubicka@ucw.cz>
17752
17753 PR target/65531
17754 * symtab.c (symtab_node::verify_symtab_nodes): Fix verification of
17755 comdat groups.
17756
17757 2015-03-27 Jan Hubicka <hubicka@ucw.cz>
17758
17759 PR ipa/65600
17760 * cgraph.c (cgraph_update_edges_for_call_stmt_node): Fix the case
17761 of optimized out indirect call.
17762 (redirect_to_unreachable): Always build symbol table node for
17763 BUILT_IN_UNREACHABLE
17764
17765 2015-03-27 Vladimir Makarov <vmakarov@redhat.com>
17766
17767 PR target/65407
17768 * ira-costs.c (record_reg_classes): Process all constraint string
17769 containing 0-9.
17770
17771 2015-03-27 Bernd Schmidt <bernds@codesourcery.com>
17772
17773 * config/c6x/c6x.md (movmisalign<mode>): Use MEM_P, not
17774 memory_operand.
17775
17776 PR target/65052
17777 * config/c6x/constraints.md (S3): New constraint.
17778 * config/c6x/c6x.md (real_jump): Use it.
17779
17780 2015-03-26 Jan Hubicka <hubicka@ucw.cz>
17781
17782 PR middle-end/65595
17783 * cgraph.c (cgraph_update_edges_for_call_stmt_node): Only
17784 do redirection if the call is not optimized out.
17785
17786 2015-03-27 Ilya Enkovich <ilya.enkovich@intel.com>
17787
17788 PR target/65495
17789 * c-family/c.opt (fcheck-pointer-bounds): List supported languages.
17790 (fchkp-check-incomplete-type): Add LTO.
17791 (fchkp-zero-input-bounds-for-main): Likewise.
17792 (fchkp-first-field-has-own-bounds): Likewise.
17793 (fchkp-narrow-bounds): Likewise.
17794 (fchkp-narrow-to-innermost-array): Likewise.
17795 (fchkp-use-static-bounds): Likewise.
17796 (fchkp-use-static-const-bounds): Likewise.
17797 (fchkp-treat-zero-dynamic-size-as-infinite): Likewise.
17798
17799 2015-03-27 Marek Polacek <polacek@redhat.com>
17800
17801 * gimple-iterator.h (gsi_prev_nondebug): Fix typo.
17802
17803 2015-03-27 Marek Polacek <polacek@redhat.com>
17804
17805 PR sanitizer/65583
17806 * ubsan.c (ubsan_create_edge): New function.
17807 (instrument_bool_enum_load): Call it.
17808 (instrument_nonnull_arg): Likewise.
17809 (instrument_nonnull_return): Likewise.
17810 (instrument_object_size): Likewise.
17811
17812 2015-03-26 Jan Hubicka <hubicka@ucw.cz>
17813
17814 * lto-streamer.h (class lto_location_cache): Turn loc_cache into
17815 auto_vec.
17816
17817 2015-03-26 Jan Hubicka <hubicka@ucw.cz>
17818
17819 PR lto/65536
17820 * lto-streamer.h (class lto_location_cache): New.
17821 (struct data_in): Add location_cache.
17822 (lto_input_location): Update prototype.
17823 (stream_input_location_now): New.
17824 * streamer-hooks.h (struct streamer_hooks): Make input_location to take
17825 pointer to location.
17826 (stream_input_location): Update.
17827 * ipa-devirt.c: Include streamer-hooks.h and lto-streamer.h
17828 (warn_odr): Apply location cache before warning.
17829 (lto_input_location): Update prototype.
17830 * gimple-streamer-in.c (input_phi, input_gimple_stmt):
17831 Use stream_input_location_now.
17832 * lto-streamer-in.c (lto_location_cache::current_cache): New static
17833 variable.
17834 (lto_location_cache::cmp_loc): New function.
17835 (lto_location_cache::apply_location_cache): New function.
17836 (lto_location_cache::accept_location_cache): New function.
17837 (lto_location_cache::revert_location_cache): New function.
17838 (lto_location_cache::input_location): New function.
17839 (lto_input_location): Do location caching.
17840 (stream_input_location_now): New function.
17841 (input_eh_region, input_struct_function_base): Use
17842 stream_input_location_now.
17843 (lto_data_in_create): use new.
17844 (lto_data_in_delete): Use delete.
17845 * tree-streamer-in.c (unpack_ts_block_value_fields,
17846 unpack_ts_omp_clause_value_fields, streamer_read_tree_bitfields,
17847 lto_input_ts_exp_tree_pointers): Update for cached location api.
17848
17849 2015-03-26 Jan Hubicka <hubicka@ucw.cz>
17850
17851 PR ipa/65076
17852 * passes.def: Add pass_nothrow.
17853 * ipa-pure-const.c: (pass_data_nothrow): New.
17854 (pass_nothrow): New.
17855 (pass_nothrow::execute): New.
17856 (make_pass_nothrow): New.
17857 * tree-pass.h (make_pass_nothrow): Declare.
17858
17859 2015-03-26 Jan Hubicka <hubicka@ucw.cz>
17860
17861 * ipa-inline-analysis.c (redirect_to_unreachable): Be prepared for
17862 edge to change by speculation resolution or redirection.
17863 (edge_set_predicate): Likewise.
17864 (inline_summary_t::duplicate): Likewise.
17865 (remap_edge_summaries): Likewise.
17866
17867 2015-03-26 Jan Hubicka <hubicka@ucw.cz>
17868
17869 * ipa-inline.c (check_maybe_up, check_maybe_down, check_match):
17870 New macros.
17871 (can_inline_edge_p): Relax option matching for always inline functions.
17872
17873 2015-03-26 Uros Bizjak <ubizjak@gmail.com>
17874
17875 PR target/65561
17876 * config/i386/sse.md (avx512dq_vextract<shuffletype>64x2_1_maskm):
17877 Check operand 4 and operand 0 for equality.
17878 (avx512f_vextract<shuffletype>32x4_1_maskm):
17879 Check operand 6 and operand 0 for equality.
17880 (vec_extract_lo_<mode>_maskm): Check operand 2 and operand 0
17881 for equality.
17882 (vec_extract_hi_<mode>_maskm): Ditto.
17883
17884 2015-03-26 Jan Hubicka <hubicka@ucw.cz>
17885
17886 * cgraph.c (cgraph_update_edges_for_call_stmt_node): Do not bring
17887 dead calls back to live.
17888 (cgraph_edge::verify_count_and_frequency): Move cgraph/cfg frequency
17889 cross check to ...
17890 (cgraph_node::verify_node): ... here; verify only callee edges,
17891 not caller.
17892 * cif-code.def (CILK_SPAWN): New code.
17893
17894 2015-03-26 Jan Hubicka <hubicka@ucw.cz>
17895
17896 * ipa-inline-analysis.c (redirect_to_unreachable): New function.
17897 (edge_set_predicate): Use it to mark unreachable edges.
17898 (inline_summary_t::duplicate): Remove unnecesary code.
17899 (remap_edge_summaries): Likewise.
17900 (dump_inline_summary): Report contains_cilk_spawn.
17901 (compute_inline_parameters): Compute contains_cilk_spawn.
17902 (inline_read_section, inline_write_summary): Stream
17903 contains_cilk_spawn.
17904 * ipa-inline.c (can_inline_edge_p): Do not touch
17905 DECL_STRUCT_FUNCTION that may not be available;
17906 use CIF_CILK_SPAWN for cilk; fix optimization attribute checks;
17907 remove check for callee_fun->can_throw_non_call_exceptions and
17908 replace it by optimization attribute check; check for flag_exceptions.
17909 * ipa-inline-transform.c (inline_call): Maintain
17910 DECL_FUNCTION_PERSONALITY
17911 * ipa-inline.h (inline_summary): Add contains_cilk_spawn.
17912
17913 2015-03-26 Jakub Jelinek <jakub@redhat.com>
17914
17915 PR tree-optimization/65551
17916 * tree-ssa-sccvn.c (fully_constant_vn_reference_p): Use
17917 TYPE_PRECISION only for INTEGRAL_TYPE_P types.
17918
17919 2015-03-26 Richard Biener <rguenther@suse.de>
17920
17921 PR middle-end/65555
17922 * tree-cfg.c (verify_gimple_call): Do not require a call to
17923 have no LHS if it wasn't recognized as control altering yet.
17924
17925 2015-03-26 Jakub Jelinek <jakub@redhat.com>
17926
17927 PR tree-optimization/64715
17928 * passes.def: Add another instance of pass_object_sizes before ccp1.
17929 * tree-object-size.c (pass_object_sizes::execute): In
17930 first_pass_instance, only handle __bos (, 1) and __bos (, 3)
17931 calls, and keep the call in the IL, as {MIN,MAX}_EXPR of the
17932 __bos result and the computed constant. Remove redundant
17933 checks, obsoleted by gimple_call_builtin_p test.
17934
17935 * var-tracking.c (variable_tracking_main_1): Don't track
17936 variables for targetm.no_register_allocation targets.
17937
17938 2015-03-26 Oleg Endo <olegendo@gcc.gnu.org>
17939
17940 * config/sh/t-linux (DEFAULT_ENDIAN, MULTILIB_EXCEPTIONS): Remove.
17941 * config/sh/t-sh (MULTILIB_EXCEPTIONS): Handle default endian.
17942
17943 2015-03-25 Michael Meissner <meissner@linux.vnet.ibm.com>
17944
17945 PR target/65569
17946 * config/rs6000/rs6000.md (extenddftf2_fprs): On VSX systems use
17947 XXLXOR to create 0.0. On pre-VSX systems make sure the constant
17948 0.0 is correctly setup.
17949 (extenddftf2_internal): Likewise.
17950
17951 2015-03-25 Sebastian Pop <s.pop@samsung.com>
17952
17953 PR tree-optimization/65177
17954 * tree-ssa-threadupdate.c (verify_seme): Renamed verify_jump_thread.
17955 (bb_in_bbs): New.
17956 (duplicate_seme_region): Renamed duplicate_thread_path. Redirect all
17957 edges not adjacent on the path to the original code.
17958
17959 2015-03-25 Uros Bizjak <ubizjak@gmail.com>
17960
17961 PR bootstrap/65537
17962 * doc/install.texi (Building a native compiler): Document new
17963 bootstrap-lto-noplugin configuration. Mention that bootstrap-lto
17964 configuration assumes that the host supports the linker plugin.
17965
17966 2015-03-25 Ilya Enkovich <ilya.enkovich@intel.com>
17967
17968 PR target/65508
17969 * tree-chkp.c (chkp_add_bounds_to_call_stmt): Set static
17970 chain for generated call.
17971
17972 2015-03-25 Richard Biener <rguenther@suse.de>
17973
17974 * passes.c (pass_manager::execute_early_local_passes): Guard
17975 execution of pass_chkp_instrumentation_passes with
17976 flag_check_pointer_bounds.
17977 (pass_chkp_instrumentation_passes::gate): Likewise.
17978
17979 2015-03-25 Martin Liska <mliska@suse.cz>
17980
17981 PR tree-optimization/65538
17982 * symbol-summary.h (function_summary::~function_summary):
17983 Relese memory for allocated summaries.
17984 (function_summary::release): New function.
17985
17986 2015-03-25 Jakub Jelinek <jakub@redhat.com>
17987
17988 PR lto/65515
17989 * lto-streamer-out.c (DFS::worklist): New struct.
17990 (DFS::worklist_vec): New data member.
17991 (DFS::next_dfs_num): Remove.
17992 (DFS::DFS): Rewritten using worklist instead of recursion,
17993 using most of code from DFS::DFS_write_tree.
17994 (DFS::DFS_write_tree_body): Remove SINGLE_P argument, don't
17995 pass it to DFS_write_tree calls.
17996 (DFS::DFS_write_tree): Remove SINGLE_P argument, after
17997 quick initial checks push it into worklist_vec and return.
17998
17999 2015-03-25 Richard Biener <rguenther@suse.de>
18000
18001 PR middle-end/65519
18002 * genmatch.c (expr::gen_transform): Re-write to avoid
18003 using gimple_build.
18004
18005 2015-03-25 Bin Cheng <bin.cheng@arm.com>
18006
18007 * doc/sourcebuild.texi (arm_tune_string_ops_prefer_neon): New.
18008
18009 2015-03-25 Bin Cheng <bin.cheng@arm.com>
18010
18011 * config/arm/arm.opt (print_tune_info): New option.
18012 * config/arm/arm.c (arm_print_tune_info): New function.
18013 (arm_file_start): Call arm_print_tune_info.
18014 * config/arm/arm-protos.h (struct tune_params): Add comment.
18015 * doc/invoke.texi (@item -mprint-tune-info): New item.
18016 (-mtune): mention it in ARM Option Summary.
18017
18018 2015-03-25 DJ Delorie <dj@redhat.com>
18019
18020 * config/rl78/rl78.c (rl78_print_operand_1): Move 'p' test to
18021 correct clause.
18022
18023 2015-03-24 Jan Hubicka <hubicka@ucw.cz>
18024 Martin Liska <mliska@suse.cz>
18025
18026 * ipa-icf-gimple.h (return_with_result): Add missing colon to dump.
18027 * ipa-icf.c (sem_function::get_hash): Hash new declaration properties.
18028 (sem_item::add_type): New function.
18029 (sem_function::hash_stmt): Add TREE_TYPE of gimple_op.
18030 (sem_function::compare_polymorphic_p): Do not consider indirect calls.
18031 (sem_item_optimizer::update_hash_by_addr_refs): Add ODR type to hash.
18032 (sem_function::equals_wpa): Fix typo.
18033 * ipa-icf.h (sem_item::add_type): New function.
18034 (symbol_compare_hashmap_traits): Replace hashing of pointer with symbol
18035 order.
18036
18037 2015-03-24 Jakub Jelinek <jakub@redhat.com>
18038
18039 PR tree-optimization/65533
18040 * tree-vect-slp.c (vect_build_slp_tree): Before re-trying
18041 with swapped operands, call vect_free_slp_tree on
18042 SLP_TREE_CHILDREN of child and truncate the SLP_TREE_CHILDREN
18043 vector.
18044
18045 2015-03-24 Richard Biener <rguenther@suse.de>
18046
18047 PR middle-end/65517
18048 * tree-cfg.c (remove_edge_and_dominated_blocks): Mark loops
18049 for fixup if necessary.
18050
18051 2015-03-23 Sandra Loosemore <sandra@codesourcery.com>
18052
18053 * doc/extend.texi (Function Attributes): Add @cindex entries
18054 for all attributes and regularize their format. Delete text
18055 about long-obsolete 68HC11 and 68HC12 targets. Move misplaced
18056 information about "eightbit_data", "tiny_data", and "model"
18057 variable attributes to the Variable Attributes section. Fix
18058 some obvious typos and copy-editing issues.
18059 (Variable Attributes, Type Attributes): Likewise add/fix
18060 @cindex entries for all attributes.
18061
18062 2015-03-23 Jakub Jelinek <jakub@redhat.com>
18063
18064 PR target/65523
18065 * tree-chkp.c (chkp_build_returned_bound): Ignore
18066 ERF_RETURNS_ARG calls if they have fewer than needed arguments.
18067
18068 2015-03-23 Oleg Endo <olegendo@gcc.gnu.org>
18069
18070 PR target/65505
18071 * config/sh/predicates.md (simple_mem_operand,
18072 displacement_mem_operand): Add test for reg.
18073 (short_displacement_mem_operand): Test for displacement_mem_operand
18074 before invoking sh_disp_addr_displacement.
18075 * config/sh/constraints.md (Sdd, Sra): Simplify.
18076 * config/sh/sync.md (atomic_mem_operand_0, atomic_mem_operand_1):
18077 Remove redundant displacement_mem_operand tests.
18078
18079 2015-03-23 Georg-Johann Lay <avr@gjlay.de>
18080
18081 PR target/65296
18082 * config/avr/driver-avr.c (avr_devicespecs_file): Allow to specify
18083 the same -mmcu=MCU more than once.
18084
18085 2015-03-23 Jakub Jelinek <jakub@redhat.com>
18086
18087 PR bootstrap/65522
18088 * ipa-devirt.c: Remove duplicate demangle.h include.
18089
18090 PR target/65504
18091 * config/i386/i386.c (ix86_copy_addr_to_reg): Set REG_POINTER
18092 on the pseudo.
18093 (expand_set_or_movmem_prologue_epilogue_by_misaligned_moves): Set
18094 REG_POINTER on *destptr after adjusting it for prologue size.
18095
18096 PR ipa/65521
18097 * ipa-icf.c (sem_item::update_hash_by_addr_refs): Hash
18098 ultimate_alias_target ()->order ints instead of
18099 ultimate_alias_target () pointers.
18100
18101 2015-03-23 Richard Biener <rguenther@suse.de>
18102
18103 PR tree-optimization/65518
18104 * tree-vect-stmts.c (vectorizable_load): Reject single-element
18105 interleaving cases we generate absymal code for.
18106
18107 2015-03-23 Richard Biener <rguenther@suse.de>
18108
18109 PR tree-optimization/65494
18110 * tree-vect-slp.c (vect_build_slp_tree): Do not (re-)allocate
18111 matches here.
18112 (vect_analyze_slp_instance): But do that here, always and once.
18113
18114 2015-03-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
18115
18116 * expmed.c (synth_mult): Fix comment about multiplying by T-1 and
18117 adding T or multiplying by T+1 and subracting T.
18118
18119 2015-03-22 Jeff Law <law@redhat.com>
18120
18121 PR rtl-optimization/64317
18122 * Makefile.in (OBJS): Add gcse-common.c
18123 * gcse.c: Include gcse-common.h
18124 (struct modify_pair_s): Move structure definition to gcse-common.h
18125 (compute_transp): Move function to gcse-common.c.
18126 (canon_list_insert): Similarly.
18127 (record_last_mem_set_info): Break out some code and put it into
18128 gcse-common.c. Call into the new common code.
18129 (compute_local_properties): Pass additional arguments to compute_transp.
18130 * postreload-gcse.c: Include gcse-common.h and df.h
18131 (modify_mem_list_set, blocks_with_calls): New variables.
18132 (modify_mem_list, canon_modify_mem_list, transp): Likewise.
18133 (get_bb_avail_insn): Pass in the expression index too.
18134 (alloc_mem): Allocate memory for the new bitmaps and lists.
18135 (free_mem): Free memory for the new bitmaps and lists.
18136 (insert_expr_in_table): Record a bitmap index for each entry we
18137 add to the table.
18138 (record_last_mem_set_info): Call into common code in gcse-common.c.
18139 (get_bb_avail_insn): If no available insn was found in the requested
18140 BB. If BB has a single predecessor, see if the expression is
18141 transparent in BB and available in that single predecessor.
18142 (compute_expr_transp): New wrapper for compute_transp.
18143 (eliminate_partially_redundant_load): Pass expression's bitmap_index
18144 to get_bb_avail_insn. Compute next_pred_bb_end a bit later.
18145 (gcse_after_reload_main): If there are elements in the hash table,
18146 then compute transparency for all the elements in the hash table.
18147 * gcse-common.h: New file.
18148 * gcse-common.c: New file.
18149
18150 2015-03-22 Sandra Loosemore <sandra@codesourcery.com>
18151
18152 * doc/cpp.texi (Search Path): Hyphenate "command-line" when used
18153 as an adjective.
18154 (System Headers): Likewise.
18155 (Ifdef): Likewise.
18156 (Traditional macros): Likewise.
18157 (Invocation): Likewise.
18158 (Option Index): Likewise.
18159 * doc/cppopts.texi (-M): Likewise.
18160 (-finput-charset): Likewise.
18161 (--help): Likewise.
18162 * doc.invoke.texi (AVR Options): Likewise.
18163 (V850 Options): Likewise.
18164
18165 2015-03-22 Jan Hubicka <hubicka@ucw.cz>
18166
18167 PR ipa/65475
18168 * ipa-devirt.c: Include demangle.h
18169 (odr_type_d): Add field rtti_broken.
18170 (odr_subtypes_equivalent_p): Do not require name to match.
18171 (compare_virtual_tables): Fix typo; if type already has ODR violation,
18172 bypass the tests; be ready for function referneces in vtables that are
18173 not DECL_VIRTUAL; make warnings to be OPT_Wodr.
18174 (warn_odr): Give up for nameless types.
18175 (warn_types_mismatch): Report mismatch in mangled names;
18176 report mismatch in anonymous namespaces; look into component types to
18177 give useful error; report when mismatch is dragged in from other ODR
18178 type.
18179 (odr_types_equivalent_p): Match types for being polymorphic; avoid
18180 duplicated diagnostics.
18181 (add_type_duplicate): Reorder checks so more informative ones come
18182 first; fix typo; do not output "the extra base is defined here" when
18183 we did not warn.
18184 (BINFO_N_BASE_BINFOS): Relax sanity check.
18185
18186 2015-03-22 Martin Liska <mliska@suse.cz>
18187 Jakub Jelinek <jakub@redhat.com>
18188
18189 * config/i386/i386.c (def_builtin): Set deferred_isa_values for
18190 masks that can potentially include a builtin.
18191 (ix86_add_new_builtins): Introduce fast filter for isa values
18192 that cannot trigger builtin inclusion.
18193
18194 2015-03-22 Martin Liska <mliska@suse.cz>
18195
18196 * ipa-icf.c (sem_item::update_hash_by_addr_refs): New function.
18197 (sem_item::update_hash_by_local_refs): Likewise.
18198 (sem_variable::get_hash): Empty line is fixed.
18199 (sem_item_optimizer::execute): Include adding of hash references.
18200 (sem_item_optimizer::update_hash_by_addr_refs): New function.
18201 (sem_item_optimizer::build_hash_based_classes): Use local hash.
18202 * ipa-icf.h (sem_item::update_hash_by_addr_refs): New function.
18203 (sem_item::update_hash_by_local_refs): Likewise.
18204
18205 2015-03-20 Jan Hubicka <hubicka@ucw.cz>
18206
18207 PR ipa/65502
18208 * ipa-comdats.c (enqueue_references): Walk through thunks.
18209 (ipa_comdats): Likewise.
18210 (set_comdat_group_1): New function.
18211
18212 2015-03-20 Jan Hubicka <hubicka@ucw.cz>
18213
18214 PR ipa/65475
18215 * ipa-devirt.c (add_type_duplicate): Prevail polymorphic type over
18216 non-polymorphic
18217
18218 2015-03-22 Dave Korn <dave.korn.cygwin@gmail.com>
18219 Gerald Pfeifer <gerald@pfeifer.com>
18220
18221 * doc/contrib.texi (Contributors): Update entry for Danny Smith.
18222
18223 2015-03-21 Chung-Lin Tang <cltang@codesourcery.com>
18224 Sandra Loosemore <sandra@codesourcery.com>
18225
18226 * config/nios2/nios2-protos.h (nios2_adjust_call_address): Adjust
18227 function parameter declaration.
18228 * config/nios2/nios2.md (call,call_value,sibcall,sibcall_value):
18229 Update arguments to nios2_adjust_call_address().
18230 (sibcall_internal): Rename from *sibcall.
18231 (sibcall_value_internal): Rename from *sibcall_value.
18232 * config/nios2/nios2.c (nios2_emit_add_constant): New function.
18233 (nios2_large_got_address): Add target temp reg parameter.
18234 (nios2_got_address): Adjust call to nios2_large_got_address, add
18235 force_reg around it.
18236 (nios2_load_pic_address): Add target temp reg parameter, replace call
18237 to nios2_got_address with corresponding code.
18238 (nios2_legitimize_constant_address): Update call to
18239 nios2_load_pic_address.
18240 (nios2_adjust_call_address): Add temp reg parameter, update PIC case
18241 to use temp reg for PIC loading purposes.
18242 (nios2_asm_output_mi_thunk): Implement TARGET_ASM_OUTPUT_MI_THUNK.
18243 (TARGET_ASM_CAN_OUTPUT_MI_THUNK): Define.
18244 (TARGET_ASM_OUTPUT_MI_THUNK): Likewise.
18245
18246 2015-03-21 Sandra Loosemore <sandra@codesourcery.com>
18247
18248 * doc/invoke.texi (-fno-diagnostics-show-caret): Fix
18249 usage of "the @option{...}".
18250 (-Wopenmp-simd): Likewise.
18251 (-fsanitize-recover): Likewise.
18252 (-fsanitize-undefined-trap-on-error): Likewise.
18253 (-flto): Likewise.
18254 (tracer-dynamic-coverage-feedback): Likewise.
18255 (reorder-block-duplicate-feedback): Likewise.
18256 (loop-unroll-jam-size): Likewise.
18257 (-B): Likewise.
18258 (-I-): Likewise.
18259 (-mabs=legacy): Likewise.
18260 (-mupper-regs-df): Likewise.
18261 (-mupper-regs-sf): Likewise.
18262 (-mpointers-to-nested-functions): Likewise.
18263
18264 2015-03-21 Sandra Loosemore <sandra@codesourcery.com>
18265
18266 * doc/extend.texi (Cilk Plus Builtins): Add markup.
18267
18268 2015-03-21 Sandra Loosemore <sandra@codesourcery.com>
18269
18270 * doc/invoke.texi (-fcheck-pointer-bounds): Copy-edit, add
18271 additional index entries and cross-references.
18272 (-fchkp-check-incomplete-type): Likewise.
18273 (-fchkp-first-field-has-own-bounds): Likewise.
18274 (-fchkp-narrow-to-innermost-array): Likewise.
18275 (-fchkp-use-fast-string-functions): Likewise.
18276 (-fchkp-use-nochk-string-functions): Likewise.
18277 (-fchkp-use-static-const-bounds): Likewise.
18278 (-fchkp-treat-zero-dynamic-size-as-infinite): Likewise.
18279 (-fchkp-instrument-marked-only): Likewise.
18280 (-fchkp-use-wrappers): Likewise.
18281 (-static-libmpx): Likewise.
18282 (-static-libmpxwrappers): Likewise.
18283 * doc/extend.texi (bnd_legacy): Likewise.
18284 (bnd_instrument): Likewise.
18285 (bnd_variable_size): Likewise.
18286 (Pointer Bounds Checker builtins): Likewise.
18287
18288 2015-03-21 Tom de Vries <tom@codesourcery.com>
18289
18290 PR tree-optimization/65458
18291 * cgraph.c (cgraph_node::dump): Handle parallelized_function field.
18292 * cgraph.h (cgraph_node): Add parallelized_function field.
18293 * lto-cgraph.c (lto_output_node): Write parallelized_function field.
18294 (input_overwrite_node): Read parallelized_function field.
18295 * omp-low.c (expand_omp_taskreg, finalize_task_copyfn): Set
18296 parallelized_function on cgraph_node for child_fn.
18297 * tree-parloops.c: Add include of plugin-api.h, ipa-ref.h and cgraph.h.
18298 Remove include of gt-tree-parloops.h.
18299 (parallelized_functions): Remove static variable.
18300 (parallelized_function_p): Rewrite using parallelized_function field of
18301 cgraph_node.
18302 (create_loop_fn): Remove adding to parallelized_functions.
18303 * Makefile.in (GTFILES): Remove tree-parloops.c
18304
18305 2015-03-20 Vladimir Makarov <vmakarov@redhat.com>
18306
18307 PR rtl-optimization/64366
18308 * lra.c (lra_update_insn_regno_info): Consider regs in
18309 CALL_INSN_FUNCTION_USAGE memory.
18310
18311 2015-03-20 Richard Biener <rguenther@suse.de>
18312
18313 PR middle-end/64715
18314 * tree-chrec.c (chrec_fold_poly_cst): Use useless_type_conversion_p
18315 for type comparison and gcc_checking_assert.
18316 (chrec_fold_plus_poly_poly): Likewise.
18317 (chrec_fold_multiply_poly_poly): Likewise.
18318 (chrec_convert_1): Likewise.
18319 * gimplify.c (gimplify_expr): Remove premature folding of
18320 &X + CST to &MEM[&X, CST].
18321
18322 2015-03-20 Jan Hubicka <hubicka@ucw.cz>
18323
18324 * ipa-inline.c (can_inline_edge_p): Short circuit if inline_failed
18325 already is final.
18326 (ipa_inline): Recompute inline_failed codes.
18327 * cif-code.def (FUNCTION_NOT_OPTIMIZED, REDEFINED_EXTERN_INLINE,
18328 USES_COMDAT_LOCAL, ATTRIBUTE_MISMATCH, UNREACHABLE): Declare as
18329 CIF_FINAL_ERROR.
18330
18331 2015-03-20 Uros Bizjak <ubizjak@gmail.com>
18332
18333 PR rtl-optimization/60851
18334 * recog.c (constrain_operands): Accept a pseudo register before reload
18335 for LRA enabled targets.
18336
18337 2015-03-19 Michael Meissner <meissner@linux.vnet.ibm.com>
18338
18339 PR target/65240
18340 * config/rs6000/predicates.md (easy_fp_constant): Remove special
18341 -ffast-math handling that kept non-0 constants live in the RTL
18342 until reload. Remove logic testing the number of instructions it
18343 took to create a constant in a GPR that was never used, due to a
18344 test for soft-float earlier.
18345 (memory_fp_constant): Delete, no longer used.
18346
18347 * config/rs6000/rs6000.md (mov<MODE>_hardfloat): Remove
18348 alternatives for loading non-0 constants into GPRs for hard
18349 floating point that is no longer needed due to changes in
18350 easy_fp_constant. Add support for loading 0.0 into GPRs.
18351 (mov<mode>_hardfloat32): Likewise.
18352 (mov<mode>_hardfloat64): Likewise.
18353 (mov<mode>_64bit_dm): Likewise.
18354 (movtd_64bit_nodm): Likewise.
18355 (pre-reload move FP constant define_split): Delete define_split,
18356 since it is no longer used.
18357 (extenddftf2_internal): Remove GHF constraints that are not valid
18358 for extenddftf2.
18359
18360 2015-03-19 Vladimir Makarov <vmakarov@redhat.com>
18361
18362 PR rtl-optimization/63491
18363 * lra-constraints.c (check_and_process_move): Use src instead of
18364 sreg. Remove some dead code.
18365
18366 2015-03-19 Jan Hubicka <hubicka@ucw.cz>
18367
18368 PR ipa/65380
18369 * ipa-icf.c (sem_function::merge): Do not merge DECL_EXTERNAL symbols.
18370 (sem_variable::merge): Likewise.
18371
18372 2015-03-19 Martin Liska <mliska@suse.cz>
18373
18374 PR ipa/65465
18375 * cgraphunit.c (cgraph_node::create_wrapper): Correctly reset
18376 all fields of cgraph_thunk_info.
18377
18378 2015-03-19 Ilya Enkovich <ilya.enkovich@intel.com>
18379
18380 * ipa-chkp.c (chkp_maybe_create_clone): Don't try to
18381 clone instrumented thunks.
18382
18383 2015-03-19 Richard Biener <rguenther@suse.de>
18384
18385 Revert
18386 2015-03-10 Richard Biener <rguenther@suse.de>
18387
18388 PR middle-end/63155
18389 * tree-ssa-coalesce.h (verify_ssa_coalescing): Declare.
18390 * tree-ssa-coalesce.c: Include timevar.h.
18391 (attempt_coalesce): Handle graph being NULL.
18392 (coalesce_partitions): Call verify_ssa_coalescing if ENABLE_CHECKING.
18393 Split out abnormal coalescing to ...
18394 (perform_abnormal_coalescing): ... this function.
18395 (coalesce_ssa_name): Perform abnormal coalescing without computing
18396 live/conflict.
18397 (verify_ssa_coalescing_worker): New function.
18398 (verify_ssa_coalescing): Likewise.
18399
18400 2015-03-19 Bernd Edlinger <bernd.edlinger@hotmail.de>
18401 Jakub Jelinek <jakub@redhat.com>
18402
18403 PR sanitizer/65400
18404 * tsan.c (instrument_gimple): Clear tail call flag on
18405 calls.
18406
18407 2015-03-19 Jakub Jelinek <jakub@redhat.com>
18408
18409 PR sanitizer/65400
18410 * ipa-split.c (find_return_bb): Allow TSAN_FUNC_EXIT internal
18411 call in the return bb.
18412 (find_split_points): Add RETURN_BB argument, don't call
18413 find_return_bb.
18414 (split_function): Likewise. Add ADD_TSAN_FUNC_EXIT argument,
18415 if true append TSAN_FUNC_EXIT internal call after the call to
18416 the split off function.
18417 (execute_split_functions): Call find_return_bb here.
18418 Don't optimize if TSAN_FUNC_EXIT is found in unexpected places.
18419 Adjust find_split_points and split_function calls.
18420
18421 2015-03-18 DJ Delorie <dj@redhat.com>
18422
18423 * config/rl78/rl78-virt.md (andqi3_virt): Allow far operands.
18424 (iorqi3_virt): Likewise.
18425
18426 2015-03-18 Tom de Vries <tom@codesourcery.com>
18427
18428 * tree-parloops.c (parallelize_loops): Make static.
18429 * tree-parloops.h (parallelize_loops): Remove extern declaration.
18430
18431 2015-03-18 Andrew Stubbs <ams@codesourcery.com>
18432
18433 PR middle-end/64491
18434 Revert:
18435 2014-11-20 Andrew Stubbs <ams@codesourcery.com>
18436
18437 * tree-ssa-loop-niter.c (maybe_lower_iteration_bound): Warn if a loop
18438 condition would be removed due to undefined behaviour.
18439
18440 2015-03-18 Martin Liska <mliska@suse.cz>
18441
18442 PR ipa/65432
18443 * cgraph.c (cgraph_node::get_create): Remove unnecessary
18444 xstrdup_for_dump wrapper.
18445 * ipa-icf.c (sem_item::dump): Use symtab_node::name instead of
18446 sem_item::name.
18447 (sem_function::equals): Wrap symtab_node::name and symtab_node::asm_name
18448 with xstrdup_for_dump.
18449 (sem_variable::equals): Likewise.
18450 (sem_item_optimizer::read_section): Use symtab_node::name instead of
18451 sem_item::name.
18452 (sem_item_optimizer::parse_funcs_and_vars): Likewise.
18453 (sem_item_optimizer::merge_classes): Wrap symtab_node::name and
18454 symtab_node::asm_name with xstrdup_for_dump.
18455 (congruence_class::dump): Use symtab_node::name instead of
18456 sem_item::name.
18457 * ipa-icf.h (symtab_node::name): Remove.
18458 (symtab_node::asm_name): Likewise.
18459
18460 2015-03-18 Jakub Jelinek <jakub@redhat.com>
18461
18462 PR tree-optimization/65450
18463 * tree-vect-data-refs.c (vect_duplicate_ssa_name_ptr_info): New
18464 function.
18465 (vect_create_addr_base_for_vector_ref, vect_create_data_ref_ptr): Use
18466 it instead of duplicate_ssa_name_ptr_info.
18467
18468 PR target/65222
18469 * doc/invoke.texi: Add knl as x86 -march=/-mtune= CPU type.
18470
18471 2015-03-18 Richard Biener <rguenther@suse.de>
18472
18473 * tree-data-ref.h (struct access_matrix): Remove.
18474 (AM_LOOP_NEST, AM_NB_INDUCTION_VARS, AM_PARAMETERS, AM_MATRIX,
18475 AM_NB_PARAMETERS, AM_CONST_COLUMN_INDEX, AM_NB_COLUMNS,
18476 AM_GET_SUBSCRIPT_ACCESS_VECTOR, AM_GET_ACCESS_MATRIX_ELEMENT): Likewise.
18477 (am_vector_index_for_loop): Likewise.
18478 (struct data_reference): Remove access_matrix member.
18479 (DR_ACCESS_MATRIX): Remove.
18480 (lambda_vector_new): Add comment.
18481 (lambda_matrix_new): Use XOBNEWVEC.
18482
18483 2015-03-18 Richard Biener <rguenther@suse.de>
18484
18485 * tree-ssa-loop-ch.c (pass_data_ch): Remove TODO_cleanup_cfg.
18486 (pass_ch::execute): Cleanup the CFG only if we did sth.
18487 * tree-vect-generic.c (pass_data_lower_vector): Remove TODO_cleanup_cfg.
18488
18489 2015-03-18 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
18490
18491 * expmed.c (synth_mult): Use std::swap instead of manually
18492 swapping algorithms.
18493
18494 2015-03-18 Jakub Jelinek <jakub@redhat.com>
18495
18496 PR target/65078
18497 * config/i386/sse.md (movsi/movdi -> vec_extract_*_0 splitter): New.
18498
18499 2015-03-16 Georg-Johann Lay <avr@gjlay.de>
18500
18501 PR target/65296
18502 * config/avr/avr.opt (-nodevicelib): New option.
18503 * doc/invoke.texi (AVR Options): Document it.
18504 * config/avr/avrlibc.h (LIB_SPEC, LIBGCC_SPEC) [avr1]: Don't link
18505 libgcc.a, libc.a, libm.a.
18506 * config/avr/specs.h: Same.
18507 * config/avr/gen-avr-mmcu-specs.c (print_mcu): Don't print specs
18508 which don't (directly) depend on the device. Print more help.
18509 (*avrlibc_devicelib) [-nodevicelib]: Don't link libdev.a.
18510 (*cpp): Don't define __AVR_DEV_LIB_NAME__.
18511 * config/avr/driver-avr.c: Remove -nodevicelib from option list in
18512 case of an error.
18513 (avr_devicespecs_file): Use suffix "%s" instead of absolute path
18514 for specs file name.
18515 * config/avr/avr-arch.h (avr_mcu_t) [.library_name]: Remove.
18516 * config/avr/avr-mcus.def: Adjust initializers and comments.
18517
18518 2015-03-16 Jan Hubicka <hubicka@ucw.cz>
18519
18520 * tree-sra.c (ipa_sra_preliminary_function_checks): Use
18521 DECL_ONE_ONLY to check if decl is one only.
18522 * ipa-split.c (consider_split): Limit splitt of one only functions.
18523
18524 2015-03-16 Jakub Jelinek <jakub@redhat.com>
18525
18526 PR tree-optimization/65427
18527 * tree-vect-generic.c (do_cond, expand_vector_scalar_condition): New
18528 functions.
18529 (expand_vector_operations_1): Handle BLKmode vector COND_EXPR.
18530
18531 2015-03-16 Marek Polacek <polacek@redhat.com>
18532
18533 * cgraph.h (add_new_static_var): Remove declaration.
18534 * varpool.c (add_new_static_var): Remove function.
18535
18536 2015-03-16 Jakub Jelinek <jakub@redhat.com>
18537
18538 * omp-low.c (expand_omp_target): Use auto_vec<tree, 11>
18539 instead of vec<tree> * with vec_alloc and release for args.
18540 Adjust all users.
18541
18542 PR middle-end/65431
18543 * omp-low.c (delete_omp_context): Only splay_tree_delete
18544 reduction_map in GIMPLE_OMP_TARGET is_gimple_omp_offloaded
18545 is_gimple_omp_oacc contexts. Don't look at ctx->outer.
18546
18547 2015-03-16 Max Ostapenko <m.ostapenko@partner.samsung.com>
18548
18549 PR sanitizer/64820
18550 * cfgexpand.c (align_base): New function.
18551 (alloc_stack_frame_space): Call it.
18552 (expand_stack_vars): Align prev_frame to be sure
18553 data->asan_vec elements aligned properly.
18554
18555 2015-03-16 Eric Botcazou <ebotcazou@adacore.com>
18556
18557 PR middle-end/65409
18558 * expr.c (store_field): Do not do a direct block copy if the source is
18559 a PARALLEL with BLKmode.
18560
18561 2015-03-16 Tom de Vries <tom@codesourcery.com>
18562
18563 PR middle-end/65414
18564 Revert:
18565 2015-03-12 Tom de Vries <tom@codesourcery.com>
18566
18567 PR rtl-optimization/64895
18568 * lra-lives.c (check_pseudos_live_through_calls): Use
18569 actual_call_used_reg_set instead of call_used_reg_set, if available.
18570
18571 2015-03-16 Alan Modra <amodra@gmail.com>
18572
18573 PR target/63150
18574 * config/rs6000/rs6000.md (bswapdi2): Remove one scratch reg.
18575 Modify Z->r bswapdi splitter to use dest in place of scratch.
18576 In r->Z and Z->r bswapdi splitter rename word_high, word_low
18577 to word1, word2 and rearrange logic to suit.
18578 (bswapdi2_64bit): Remove early clobber on Z->r alternative.
18579 (bswapdi2_ldbrx): Likewise. Remove '??' on r->r.
18580 (bswapdi2_32bit): Remove early clobber on Z->r alternative.
18581 Add one '?' on r->r. Modify Z->r splitter to avoid need for
18582 early clobber.
18583
18584 2015-03-14 Jakub Jelinek <jakub@redhat.com>
18585
18586 PR tree-optimization/65369
18587 * tree-vect-stmts.c (vectorizable_load) <case dr_explicit_realign>:
18588 Set bump to vs * TYPE_SIZE_UNIT (elem_type) - 1 instead of
18589 (vs - 1) * TYPE_SIZE_UNIT (elem_type).
18590
18591 PR tree-optimization/65418
18592 * tree-ssa-reassoc.c (extract_bit_test_mask): If there
18593 are casts in the first PLUS_EXPR operand, ensure tbias and
18594 *totallowp are in the inner type.
18595
18596 PR rtl-optimization/65401
18597 * combine.c (rtx_equal_for_field_assignment_p): Add widen_x
18598 argument. If true, adjust_address_nv of x with big-endian
18599 correction for the mode widening to GET_MODE (y).
18600 (make_field_assignment): Don't do MEM mode widening here.
18601 Use MEM_P instead of GET_CODE == MEM.
18602
18603 2015-03-13 Ilya Verbin <ilya.verbin@intel.com>
18604
18605 * varpool.c (varpool_node::get_create): Don't set 'offloadable' flag for
18606 the external decls.
18607
18608 2015-03-13 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
18609
18610 PR target/64600
18611 * config/arm/arm.c (arm_gen_constant, AND case): Use
18612 ARM_SIGN_EXTEND when constructing AND mask.
18613
18614 2015-03-13 Thomas Preud'homme <thomas.preudhomme@arm.com>
18615
18616 * graph.c (print_graph_cfg): Make function names visible and append
18617 parenthesis to it. Also make groups of basic blocks belonging to the
18618 same function visible.
18619
18620 2015-03-12 Richard Biener <rguenther@suse.de>
18621
18622 PR middle-end/44563
18623 * tree-inline.c (gimple_expand_calls_inline): Walk BB backwards
18624 to avoid quadratic behavior with inline expansion splitting blocks.
18625 * tree-cfgcleanup.c (cleanup_tree_cfg_bb): Do not merge block
18626 with the successor if the predecessor will be merged with it.
18627 * tree-cfg.c (gimple_can_merge_blocks_p): We can't merge the
18628 entry block with its successor.
18629
18630 2015-03-13 Richard Biener <rguenther@suse.de>
18631
18632 PR middle-end/44563
18633 * tree-cfgcleanup.c (split_bb_on_noreturn_calls): Remove.
18634 (cleanup_tree_cfg_1): Do not call it.
18635 (execute_cleanup_cfg_post_optimizing): Fixup the CFG here.
18636 (fixup_noreturn_call): Mark the stmt as control altering.
18637 * tree-cfg.c (execute_fixup_cfg): Do not dump the function
18638 here.
18639 (pass_data_fixup_cfg): Produce a dump file.
18640 * tree-ssa-dom.c: Include tree-cfgcleanup.h.
18641 (need_noreturn_fixup): New global.
18642 (pass_dominator::execute): Fixup queued noreturn calls.
18643 (optimize_stmt): Queue calls that became noreturn for fixup.
18644 * tree-ssa-forwprop.c (pass_forwprop::execute): Likewise.
18645 * tree-ssa-pre.c: Include tree-cfgcleanup.h.
18646 (el_to_fixup): New global.
18647 (eliminate_dom_walker::before_dom_childre): Queue calls that
18648 became noreturn for fixup.
18649 (eliminate): Fixup queued noreturn calls.
18650 * tree-ssa-propagate.c: Include tree-cfgcleanup.h.
18651 (substitute_and_fold_dom_walker): New member stmts_to_fixup.
18652 (substitute_and_fold_dom_walker::before_dom_children): Queue
18653 alls that became noreturn for fixup.
18654 (substitute_and_fold): Fixup queued noreturn calls.
18655
18656 2015-03-12 Jan Hubicka <hubicka@ucw.cz>
18657
18658 * ipa-icf.c (sem_function::equals_wpa): Match CXX_CONSTRUCTOR_P
18659 and CXX_DESTURCTOR_P. For consutrctors match ODR type of class they
18660 are building; for methods check ODR type of class they belong to if
18661 they may lead to a polymorphic call.
18662 (sem_function::compare_polymorphic_p): Be bit smarter about testing
18663 when function may lead to a polymorphic call.
18664 (sem_function::compare_type_list): Remove.
18665 (sem_variable::equals): Update use of compatible_types_p.
18666 (sem_variable::parse_tree_refs): Remove.
18667 (sem_item_optimizer::filter_removed_items): Do not filter out CXX
18668 cdtor.
18669 * ipa-icf-gimple.c (func_checker::compare_decl): Do polymorphic
18670 matching here.
18671 (func_checker::compatible_polymorphic_types_p): Break out from ...
18672 (unc_checker::compatible_types_p): ... here.
18673 * ipa-icf-gimple.h (func_checker::compatible_polymorphic_types_p):
18674 Declare.
18675 (unc_checker::compatible_types_p): Update.
18676 * ipa-icf.h (compare_type_list, parse_tree_refs, compare_sections):
18677 Remove.
18678
18679 2015-03-12 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
18680
18681 PR rtl-optimization/65235
18682 * simplify-rtx.c (simplify_binary_operation_1, VEC_SELECT case):
18683 When first element of vec_concat is const_int, calculate its size
18684 using second element.
18685
18686 2015-03-12 Richard Biener <rguenther@suse.de>
18687
18688 PR middle-end/65270
18689 * fold-const.c (operand_equal_p): Fix ordering of resetting
18690 OEP_ADDRESS_OF and checking for it in the [TARGET_]MEM_REF case.
18691
18692 2015-03-12 Dominik Vogt <vogt@linux.vnet.ibm.com>
18693
18694 * config/s390/s390.c (s390_reorg): Move code to output nops after label
18695 to s390_reorg ().
18696 (s390_asm_output_function_label): Likewise.
18697 * config/s390/s390.c (s390_asm_output_function_label):
18698 Fix function label alignment with -mhtopatch.
18699 * config/s390/s390.md ("unspecv"): New values UNSPECV_NOP_2_BYTE,
18700 UNSPECV_NOP_4_BYTE and UNSPECV_NOP_6_BYTE
18701 ("nop_2_byte"): New define_insn.
18702 ("nop_4_byte"): Likewise.
18703 ("nop_6_byte"): Likewise.
18704 * doc/extend.texi (hotpatch): hotpatch attribute doc fixes.
18705 * doc/invoke.texi (-mhotpatch): -mhotpatch doc fixes.
18706
18707 2015-03-12 Ilya Enkovich <ilya.enkovich@intel.com>
18708
18709 PR target/65103
18710 * config/i386/i386.c (ix86_address_cost): Fix cost of a PIC
18711 register.
18712
18713 2015-03-12 Ilya Enkovich <ilya.enkovich@intel.com>
18714
18715 PR target/65044
18716 * toplev.c (process_options): Restrict Pointer Bounds Checker
18717 usage with Address Sanitizer.
18718
18719 2015-03-12 Richard Biener <rguenther@suse.de>
18720
18721 * tree-cfg.c (gimple_split_block): Remove loop finding stmt
18722 to split on.
18723 * omp-low.c (expand_omp_taskreg): Split block before removing
18724 the stmt.
18725 (expand_omp_target): Likewise.
18726 * ubsan.c (ubsan_expand_null_ifn): Adjust stmt if we replaced it.
18727 * tree-parloops.c (create_call_for_reduction_1): Pass a proper
18728 stmt to split_block.
18729
18730 2015-03-12 Tom de Vries <tom@codesourcery.com>
18731
18732 PR rtl-optimization/64895
18733 * lra-lives.c (check_pseudos_live_through_calls): Use
18734 actual_call_used_reg_set instead of call_used_reg_set, if available.
18735
18736 2015-03-10 Jan Hubicka <hubicka@ucw.cz>
18737
18738 * cgraph.c (cgraph_node::release_body): Free function_in_decl_state.
18739 (cgraph_node::remove): Likewise.
18740 (cgraph_node::get_untransformed_body): Likewise.
18741 * varpool.c (varpool_node::remove): Likewise.
18742 (varpool_node::get_constructor): Add sanity check.
18743
18744 2015-03-11 Sandra Loosemore <sandra@codesourcery.com>
18745
18746 * doc/invoke.texi (-fgnu89-inline): Remove discussion about
18747 old GCC versions.
18748 (-fabi-compat-version): Likewise.
18749 (-ffriend-injection): Likewise.
18750 (-Wdeclaration-after-statement): Likewise.
18751 (-fomit-frame-pointer): Likewise.
18752 (-ftree-coalesce-inlined-vars): Likewise.
18753 (-fvisibility=): Likewise.
18754 * doc/extend.texi (Typeof): Likewise.
18755 (Zero Length): Likewise.
18756 (Escaped Newlines): Likewise.
18757 (Compound Literals): Likewise.
18758 (Function Attributes): Likewise.
18759 (Label Attributes): Likewise.
18760 (Type Attributes): Likewise.
18761 (Function Names): Likewise.
18762 (Other Builtins): Likewise.
18763 (Function Specific Option Pragmas): Likewise.
18764 (C++ Interface): Likewise.
18765
18766 2015-03-11 Thomas Schwinge <thomas@codesourcery.com>
18767
18768 * config/nvptx/nvptx.h (LIBSTDCXX): Define to "gcc".
18769
18770 2015-03-11 Marek Polacek <polacek@redhat.com>
18771
18772 PR tree-optimization/65388
18773 * tree-ssa-tail-merge.c (same_succ_def::equal): Fix typo in comparison.
18774
18775 2015-03-10 Georg-Johann Lay <avr@gjlay.de>
18776
18777 PR target/65296
18778 * configure.ac [avr]: Check as for options -mrmw, --mlink-relax.
18779 * configure: Regenerate.
18780 * config.in: Regenerate.
18781 * doc/invoke.texi (AVR Options) [-mrmw]: Document it.
18782 [-mn-flash]: Document it.
18783 [__AVR_ARCH__]: Document avrtiny.
18784
18785 * config/avr/gen-avr-mmcu-specs.c (config.h): Include it.
18786 (*asm_relax): Only define spec if HAVE_AS_AVR_MLINK_RELAX_OPTION.
18787 (*asm_rmw): Only define spec if HAVE_AS_AVR_MRMW_OPTION.
18788
18789 2015-03-11 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
18790
18791 * doc/invoke.texi: Add missing cpu values (z196, zEC12).
18792
18793 2015-03-11 Michael Meissner <meissner@linux.vnet.ibm.com>
18794
18795 PR target/65242
18796 * config/rs6000/rs6000.c (rs6000_preferred_reload_class): Do not
18797 allow reloads of PLUS in floating point/VSX registers.
18798
18799 2015-03-11 Junmo Park <junmoz.park@samsung.com>
18800
18801 * config/arm/cortex-a57.md (cortex_a57_crypto_simple): Add
18802 crypto_sha256_fast.
18803 (cortex_a57_crypto_complex): Add crypto_sha256_slow.
18804
18805 2015-03-11 Richard Biener <rguenther@suse.de>
18806
18807 PR tree-optimization/65310
18808 * tree-sra.c (build_ref_for_offset): Also preserve larger
18809 alignment.
18810
18811 2015-03-11 Marat Zakirov <m.zakirov@samsung.com>
18812
18813 * asan.c (instrument_derefs): Disable instrumentation on asan-globals=0.
18814
18815 2015-03-10 Jakub Jelinek <jakub@redhat.com>
18816
18817 PR target/65368
18818 * config/i386/i386.md (bmi2_bzhi_<mode>3): Removed define_insn,
18819 new define_expand.
18820 (*bmi2_bzhi_<mode>3, *bmi2_bzhi_<mode>3_1): New define_insns.
18821
18822 2015-03-10 Jan Hubicka <hubicka@ucw.cz>
18823
18824 * ipa-icf.c (sem_function::equals_wpa): Move here some checks from ...
18825 (sem_function::equals_wpa): ... here.
18826
18827 2015-03-10 Marek Polacek <polacek@redhat.com>
18828 Jakub Jelinek <jakub@redhat.com>
18829
18830 PR sanitizer/65367
18831 * ubsan.c (ubsan_expand_objsize_ifn): Update GSI instead of GSI_ORIG
18832 when only removing the statement. Handle expanding UBSAN_OBJECT_SIZE
18833 separately.
18834
18835 2015-03-10 Jakub Jelinek <jakub@redhat.com>
18836
18837 PR target/65286
18838 * config/rs6000/t-linux: For powerpc64* target set
18839 MULTILIB_OSDIRNAMES instead of MULTIARCH_DIRNAME.
18840
18841 2015-03-10 Richard Biener <rguenther@suse.de>
18842
18843 PR middle-end/44563
18844 * tree-inline.c (copy_cfg_body): Skip block mapped to entry/exit
18845 for redirect_all_calls.
18846
18847 2015-03-10 Marek Polacek <polacek@redhat.com>
18848
18849 * gdbinit.in (pcfun): Define and document.
18850
18851 2015-03-10 Ilya Verbin <ilya.verbin@intel.com>
18852
18853 * config/i386/intelmic-mkoffload.c: Include intelmic-offload.h instead
18854 of libgomp-plugin.h.
18855 (find_target_compiler): Support a case when the path to gcc is
18856 specified in the PATH env var, so COLLECT_GCC doesn't contain a path.
18857 (generate_host_descr_file): Use GOMP_DEVICE_INTEL_MIC from
18858 intelmic-offload.h instead of OFFLOAD_TARGET_TYPE_INTEL_MIC from
18859 libgomp-plugin.h.
18860 (main): Use GCC_INSTALL_NAME as target_driver_name.
18861 * config/i386/t-intelmic (CFLAGS-mkoffload.o): Add GCC_INSTALL_NAME
18862 define.
18863 (mkoffload.o): Remove obsolete include path and defines.
18864 (mkoffload$(exeext)): Use $(LINKER) instead of $(COMPILER).
18865
18866 2015-03-10 Richard Biener <rguenther@suse.de>
18867
18868 PR middle-end/63155
18869 * tree-ssa-coalesce.h (verify_ssa_coalescing): Declare.
18870 * tree-ssa-coalesce.c: Include timevar.h.
18871 (attempt_coalesce): Handle graph being NULL.
18872 (coalesce_partitions): Call verify_ssa_coalescing if ENABLE_CHECKING.
18873 Split out abnormal coalescing to ...
18874 (perform_abnormal_coalescing): ... this function.
18875 (coalesce_ssa_name): Perform abnormal coalescing without computing
18876 live/conflict.
18877 (verify_ssa_coalescing_worker): New function.
18878 (verify_ssa_coalescing): Likewise.
18879
18880 2015-03-10 Georg-Johann Lay <avr@gjlay.de>
18881
18882 PR target/65296
18883 * config.gcc (extra_options) [avr]: Remove.
18884 (extra_gcc_objs) [avr]: Use driver-avr.o, avr-devices.o.
18885 (tm_file) [avr]: Add avr/specs.h after avr/avr.h.
18886 (tm_defines) [avr-*-rtems*]: Add WITH_RTEMS.
18887
18888 * config/avr/avr.opt (config/avr/avr-arch.h): Remove include.
18889 (-mmcu=): Add Var and MissingArgError properties.
18890 (-march=): Remove.
18891 * config/avr/genmultilib.awk: Use -mmcu= instead of -march=.
18892 * config/avr/t-multilib: Regenerate.
18893 * config/avr/specs.h: New file.
18894 * config/avr/driver-avr.c: New file.
18895 * config/avr/genopt.sh: Remove file.
18896 * config/avr/avr-tables.opt: Remove file.
18897 * config/avr/predicates.md (avr_current_arch): Rename to avr_arch.
18898 * config/avr/avr-c.c: Same.
18899 * avr-arch.h: Same.
18900 (avr_current_device): Remove proto.
18901 * config/avr/avr.h (avr_current_arch): Rename to avr_arch.
18902 (AVR_HAVE_8BIT_SP): Don't depend on avr_current_device.
18903 (EXTRA_SPEC_FUNCTIONS): Define.
18904 (avr_devicespecs_file): New specs function proto.
18905 (DRIVER_SELF_SPECS): Use device-specs-file spec function.
18906 * config/avr/avr.c (avr_current_arch): Rename to avr_arch.
18907 (avr_current_device): Remove definition and usage.
18908 (avr_set_core_architecture): New static function.
18909 (avr_option_override): Use it.
18910 * config/avr/avr-devices.c (diagnostic.h, avr-arch.h): Include them.
18911 (mcu_name): New static array.
18912 (comparator, avr_archs_str, avr_mcus_str): New static functions.
18913 (avr_inform_devices, avr_inform_core_architectures): New functions.
18914 * config/avr/gen-avr-mmcu-specs.c (avr-arch.h, specs.h): Include.
18915 (avrlibc.h) [WITH_AVRLIBC]: Include.
18916 (../rtems.h, rtems.h) [WITH_RTEMS]: Include.
18917 (print_mcu): Rewrite from scratch.
18918 * config/avr/avrlibc.h (LIB_SPEC, LIBGCC_SPEC, STARTFILE_SPEC):
18919 Forward to avr-specific specs defined in device-specs file.
18920 * config/avr/t-avr (driver-avr.o): New rule.
18921 (avr-devices.o): Depend on avr-arch.h.
18922 (avr-mcus): No more depend on avr-tables.opt.
18923 (avr-tables.opt): Remove rule.
18924 (install-device-specs): Use INSTALL_DATA, not INSTALL_PROGRAM.
18925
18926 2015-03-10 Ilya Enkovich <ilya.enkovich@intel.com>
18927
18928 * c-family/c.opt (fchkp-use-wrappers): New.
18929 * ipa-chkp.c (CHKP_WRAPPER_SYMBOL_PREFIX): New.
18930 (chkp_wrap_function): New.
18931 (chkp_build_instrumented_fndecl): Support wrapped
18932 functions.
18933 * doc/invoke.texi (-fcheck-pointer-bounds): New.
18934 (-fchkp-check-incomplete-type): New.
18935 (-fchkp-first-field-has-own-bounds): New.
18936 (-fchkp-narrow-bounds): New.
18937 (-fchkp-narrow-to-innermost-array): New.
18938 (-fchkp-optimize): New.
18939 (-fchkp-use-fast-string-functions): New.
18940 (-fchkp-use-nochk-string-functions): New.
18941 (-fchkp-use-static-bounds): New.
18942 (-fchkp-use-static-const-bounds): New.
18943 (-fchkp-treat-zero-dynamic-size-as-infinite): New.
18944 (-fchkp-check-read): New.
18945 (-fchkp-check-write): New.
18946 (-fchkp-store-bounds): New.
18947 (-fchkp-instrument-calls): New.
18948 (-fchkp-instrument-marked-only): New.
18949 (-fchkp-use-wrappers): New.
18950 (-static-libmpx): New.
18951 (-static-libmpxwrappers): New.
18952
18953 2015-03-10 Ilya Enkovich <ilya.enkovich@intel.com>
18954
18955 * config/i386/linux-common.h (LIBMPX_WRAPPERSSPEC): New.
18956 (CHKP_SPEC): Add wrappers library.
18957 * c-family/c.opt (static-libmpxwrappers): New.
18958
18959 2015-03-10 Ilya Enkovich <ilya.enkovich@intel.com>
18960
18961 * config/i386/linux-common.h (LIBMPX_LIBS): New.
18962 (LIBMPX_SPEC): New.
18963 (CHKP_SPEC): New.
18964 * gcc.c (CHKP_SPEC): New.
18965 (LINK_COMMAND_SPEC): Add CHKP_SPEC.
18966 * c-family/c.opt (static-libmpx): New.
18967
18968 2015-03-10 Richard Biener <rguenther@suse.de>
18969
18970 PR middle-end/44563
18971 * cgraph.h (struct cgraph_edge_hasher): Add hash overload
18972 for compare_type.
18973 * cgraph.c (cgraph_edge_hasher::hash): Inline htab_hash_pointer.
18974 (cgraph_update_edge_in_call_site_hash): Use cgraph_edge_hasher::hash.
18975 (cgraph_add_edge_to_call_site_hash): Likewise.
18976 (cgraph_node::get_edge): Likewise.
18977 (cgraph_edge::set_call_stmt): Likewise.
18978 (cgraph_edge::remove_caller): Likewise.
18979
18980 2015-03-10 Chung-Ju Wu <jasonwucj@gmail.com>
18981
18982 * config/nds32/nds32.h (callee_saved_regs_size): Rename to ...
18983 (callee_saved_gpr_regs_size): ... this.
18984 (callee_saved_regs_first_regno): Rename to ...
18985 (callee_saved_first_gpr_regno): ... this.
18986 (callee_saved_regs_last_regno) Rename to ...
18987 (callee_saved_last_gpr_regno): ... this.
18988 * config/nds32/nds32.c (nds32_compute_stack_frame): Adjust renamed
18989 variables.
18990 (nds32_initial_elimination_offset): Likewise.
18991 (nds32_expand_prologue): Likewise.
18992 (nds32_expand_epilogue): Likewise.
18993 (nds32_expand_prologue_v3push): Likewise.
18994 (nds32_expand_epilogue_v3pop): Likewise.
18995 * config/nds32/nds32-md-auxiliary.c (nds32_output_stack_push):
18996 Adjust renamed variables.
18997 (nds32_output_stack_pop): Likewise.
18998
18999 2015-03-10 Thomas Preud'homme <thomas.preudhomme@arm.com>
19000
19001 * dominance.c (nearest_common_dominator_for_set): Fix A_Dominated_by_B
19002 code in comment.
19003
19004 2015-03-10 Jakub Jelinek <jakub@redhat.com>
19005
19006 PR rtl-optimization/65321
19007 * cfgexpand.c (expand_debug_expr): Ensure shift amount isn't wider
19008 than shift mode.
19009 * var-tracking.c (use_narrower_mode): Likewise.
19010
19011 2015-03-10 Jan Hubicka <hubicka@ucw.cz>
19012
19013 PR tree-optimization/65355
19014 * varasm.c (notice_global_symbol): Do not produce RTL.
19015 * symtab.c (symtab_node::can_increase_alignment_p): Check for section
19016 anchor.
19017 * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Do not
19018 check for section anchors.
19019
19020 2015-03-10 Alan Modra <amodra@gmail.com>
19021
19022 PR target/65286
19023 * config.gcc (powerpc*-*-linux*): Arrange for powerpc64le-linux
19024 to be single-arch by default. Set cpu_is_64bit for powerpc64
19025 given --with-cpu=native.
19026 * config/rs6000/t-fprules: Do not set default MULTILIB vars.
19027 * config/rs6000/t-linux (MULTIARCH_DIRNAME): Support powerpc64
19028 and powerpc64le.
19029 * config/rs6000/linux64.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Test
19030 rs6000_isa_flags rather than TARGET_64BIT.
19031
19032 2015-03-09 Yoshinori Sato <ysato@users.sourceforge.jp>
19033 Kaz Kojima <kkojima@gcc.gnu.org>
19034
19035 * config/sh/t-linux (MULTILIB_EXCEPTIONS): Define for m2a cases.
19036
19037 2015-03-09 Jakub Jelinek <jakub@redhat.com>
19038
19039 PR lto/65361
19040 * ipa-devirt.c (add_type_duplicate): Don't use DECL_CONTEXT
19041 on a TREE_BINFO, instead use BINFO_TYPE.
19042
19043 2015-03-09 Richard Biener <rguenther@suse.de>
19044
19045 PR middle-end/65270
19046 * tree-core.h (enum operand_equal_flag): Add OEP_ADDRESS_OF.
19047 * fold-const.c (operand_equal_p): When recursing for ADDR_EXPRs
19048 operand set OEP_ADDRESS_OF. Clear it when recursing to non-bases
19049 of that. When comparing dereferences compare alignment.
19050 When comparing MEM_REFs or TARGET_MEM_REFs compare dependence info.
19051
19052 2015-03-08 Jan Hubicka <hubicka@ucw.cz>
19053
19054 * ipa-inline-analysis.c (check_callers): Check
19055 node->can_remove_if_no_direct_calls_and_refs_p.
19056 (growth_likely_positive): Reorganize to call
19057 can_remove_if_no_direct_calls_p later.
19058 * cgraph.h (will_be_removed_from_program_if_no_direct_calls_p,
19059 will_be_removed_from_program_if_no_direct_calls_p): Add
19060 will_inline parameter.
19061 * cgraph.c (cgraph_node::can_remove_if_no_direct_calls_p,
19062 cgraph_node::will_be_removed_from_program_if_no_direct_calls_p):
19063 Handle inliner case correctly.
19064
19065 2015-03-09 Thomas Preud'homme <thomas.preudhomme@arm.com>
19066
19067 PR tree-optimization/63743
19068 * cfgexpand.c (reorder_operands): Also reorder if only second operand
19069 had its definition forwarded by TER.
19070
19071 2015-03-08 Jan Hubicka <hubicka@ucw.cz>
19072
19073 PR lto/65316
19074 * ipa-utils.h (types_odr_comparable): Add strict argument.
19075 * ipa-devirt.c: Fix whitespace;
19076 (odr_hasher): Remove.
19077 (odr_name_hasher, odr_vtable_hasher): New hashers.
19078 (can_be_name_hashed_p): New predicate.
19079 (hash_type_name): remove.
19080 (hash_odr_name): New.
19081 (odr_name_hasher::hash): new.
19082 (can_be_vtable_hashed_p): New.
19083 (hash_odr_vtable): New.
19084 (odr_vtable_hasher::hash): New.
19085 (types_same_for_odr): Add strict parameter.
19086 (types_odr_comparable): Likewise.
19087 (odr_name_hasher::equal): New.
19088 (odr_vtable_hasher::equal): New.
19089 (odr_name_hasher::remove): New.
19090 (odr_hash_type): Change to hash_table<odr_name_hasher>.
19091 (odr_vtable_hash_type): New.
19092 (odr_vtable_hash): New.
19093 (odr_subtypes_equivalent_p): Do strict comparsion.
19094 (add_type_duplicate): Merge type names; cleanup; avoid type
19095 duplicates.
19096 (register_odr_type): Initialize vtable hash.
19097 (build_type_inheritance_graph): Likewise
19098 (get_odr_type): Reorg to use two hashes.
19099 (dump_possible_polymorphic_call_targets): Move sanity check after debug
19100 output.
19101 (ipa_devirt): Dump type_inheritance_graph.
19102 (types_same_for_odr): Add strict mode.
19103
19104 2015-03-05 Jan Hubicka <hubicka@ucw.cz>
19105
19106 PR ipa/65334
19107 * cgraph.h (symtab_node): Add definition_alignment,
19108 can_increase_alignment_p and increase_alignment.
19109 * symtab.c (symtab_node::can_increase_alignment_p,
19110 increase_alignment_1, symtab_node::increase_alignment,
19111 symtab_node::definition_alignment): New.
19112 * tree-vect-data-refs.c (vect_can_force_dr_alignment_p): Use
19113 can_increase_alignment_p.
19114 * tree-vectorizer.c (increase_alignment): Use increase_alignment.
19115 * tree-vect-stmts.c (ensure_base_align): Likewise.
19116 * varasm.c (function_section_1): Use definition_alignment.
19117 (assemble_start_function): Likewise.
19118 (emit_local): likewise.
19119 (build_constant_desc): Likewsie.
19120 (output_constant_def_contents): Likewise.
19121 (place_block_symbol): Likewise.
19122 (output_object_block): Likewise.
19123
19124 2015-03-05 Jan Hubicka <hubicka@ucw.cz>
19125
19126 PR ipa/65316
19127 * tree.c (free_lang_data_in_type): Be sure to keep BINFO_VTABLE
19128 when outputting debug.
19129
19130 2015-03-07 Marek Polacek <polacek@redhat.com>
19131 Martin Uecker <uecker@eecs.berkeley.edu>
19132
19133 PR sanitizer/65280
19134 * doc/invoke.texi: Update description of -fsanitize=bounds.
19135
19136 2015-03-06 Wilco Dijkstra <wilco.dijkstra@arm.com>
19137
19138 * tree-ssa-phiopt.c (neg_replacement): Remove.
19139 (tree_ssa_phiopt_worker): Remove negate optimization.
19140
19141 2015-03-05 Jan Hubicka <hubicka@ucw.cz>
19142
19143 PR ipa/65302
19144 * value-prof.c (gimple_ic): Pure dead eh edges when needed.
19145
19146 2015-03-06 Richard Biener <rguenther@suse.de>
19147
19148 PR middle-end/64928
19149 * tree-ssa-live.h (struct tree_live_info_d): Add livein_obstack
19150 and liveout_obstack members.
19151 (calculate_live_on_exit): Remove.
19152 (calculate_live_ranges): Change declaration.
19153 * tree-ssa-live.c (liveness_bitmap_obstack): Remove global var.
19154 (new_tree_live_info): Adjust.
19155 (calculate_live_ranges): Delete livein when not wanted.
19156 (calculate_live_ranges): Do not initialize liveness_bitmap_obstack.
19157 Deal with partly deleted live info.
19158 (loe_visit_block): Remove temporary bitmap by using
19159 bitmap_ior_and_compl_into.
19160 (live_worklist): Adjust accordingly.
19161 (calculate_live_on_exit): Make static.
19162 * tree-ssa-coalesce.c (coalesce_ssa_name): Tell calculate_live_ranges
19163 we do not need livein.
19164
19165 2015-03-06 Jonathan Wakely <jwakely@redhat.com>
19166
19167 * real.c (real_from_string): Fix typo in assertion.
19168
19169 2015-03-06 Alex Velenko <alex.velenko@arm.com>
19170
19171 * ChangeLog (2015-03-05): Reflect Richard Henderson as actual author of
19172 the patch.
19173
19174 2015-03-05 Jan Hubicka <hubicka@ucw.cz>
19175
19176 * ipa-icf.c (sem_variable::equals_wpa): Check FINAL flags.
19177
19178 2015-03-05 Vladimir Makarov <vmakarov@redhat.com>
19179
19180 PR target/64342
19181 * lra-assigns.c (find_hard_regno_for): Rename to
19182 find_hard_regno_for_1. Add a new parameter.
19183 (find_hard_regno_for): New function using find_hard_regno_for_1.
19184
19185 2015-03-05 Bernd Edlinger <bernd.edlinger@hotmail.de>
19186
19187 PR rtl-optimization/65067
19188 * expmed.c (store_bit_field, extract_bit_field): Reworked the
19189 strict volatile bitfield handling.
19190
19191 2015-03-05 Martin Liska <mliska@suse.cz>
19192
19193 PR ipa/65318
19194 * ipa-icf.c (sem_variable::equals): Compare variables types.
19195
19196 2015-03-05 Richard Henderson <rth@redhat.com>
19197
19198 PR target/65121
19199 * config/arm/arm.c (arm_function_in_section_p): Fix predicate to
19200 correctly check weak symbol binding.
19201
19202 2015-03-05 Steve Ellcey <sellcey@imgtec.com>
19203
19204 PR middle-end/65315
19205 * cfgexpand.c (expand_stack_vars): Update large_align to maximum
19206 needed alignment.
19207
19208 2015-03-05 Martin Liska <mliska@suse.cz>
19209
19210 * ipa-inline.c (inline_small_functions): Set default value to
19211 prevent warning during bootstrap.
19212 * tree.h: Add pragma guard that ignores false positives during
19213 bootstrap.
19214
19215 2015-03-05 Richard Biener <rguenther@suse.de>
19216
19217 PR tree-optimization/65310
19218 * tree-vect-data-refs.c (vect_compute_data_ref_alignment):
19219 Properly preserve alignment of the base of the access.
19220
19221 2015-03-05 Richard Biener <rguenther@suse.de>
19222
19223 PR ipa/65270
19224 * ipa-icf-gimple.c (func_checker::compare_memory_operand):
19225 Compare dependence info.
19226
19227 2015-03-05 Richard Biener <rguenther@suse.de>
19228
19229 PR middle-end/65233
19230 * ipa-polymorphic-call.c: Include tree-ssa-operands.h and
19231 tree-into-ssa.h.
19232 (walk_ssa_copies): Revert last chage. Instead do not walk
19233 SSA names registered for SSA update.
19234
19235 2015-03-03 Jan Hubicka <hubicka@ucw.cz>
19236
19237 PR ipa/65270
19238 * ipa-icf.c (sem_item::compare_cgraph_references): Compare
19239 vtable references for their containing type.
19240 (sem_function::equals_wpa): Compare TYPE_RESTRICT
19241 and type attributes.
19242
19243 2015-03-04 Eric Botcazou <ebotcazou@adacore.com>
19244
19245 * fold-const.c (round_up_loc): Cast divisor to signed on all paths
19246 before negating it.
19247 * stor-layout.c (finalize_record_size): Revert latest change.
19248
19249 2015-03-04 Andreas Tobler <andreast@gcc.gnu.org>
19250
19251 * config/rs6000/t-freebsd64: Remove 32-bit soft-float multilibs.
19252
19253 2015-03-03 Jan Hubicka <hubicka@ucw.cz>
19254
19255 * cgraph.c (cgraph_node::can_remove_if_no_direct_calls_p): Rewrite
19256 for correct comdat handling.
19257 (cgraph_node::will_be_removed_from_program_if_no_direct_calls_p):
19258 Likewise.
19259 * cgraph.h (call_for_symbol_and_aliases): Fix formating.
19260 (used_from_object_file_p_worker): Remove.
19261 (cgraph_node::only_called_directly_or_alised): Add
19262 used_from_object_file_p.
19263 * ipa-inline-analysis.c (growth_likely_positive): Optimie.
19264 * ipa-inline-transform.c (can_remove_node_now_p_1): Use
19265 can_remove_if_no_direct_calls_and_refs_p.
19266
19267 2015-03-04 Nick Clifton <nickc@redhat.com>
19268
19269 * config/rl78/rl78.h (enum reg_class): Remove real registers from
19270 General register class.
19271 * config/rl78/rl78-real.md: Replace general register constraints
19272 with real+virtual register constraints.
19273
19274 2015-03-04 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
19275
19276 * config/s390/s390.c (s390_expand_builtin): Exlude non-htm builtins
19277 from checking for -mhtm option.
19278
19279 2015-03-03 Jan Hubicka <hubicka@ucw.cz>
19280
19281 * tree-sra.c (convert_callers): Use call_for_symbol_and_aliases.
19282 (struct ipa_sra_check_caller_data): Add has_thunk field.
19283 (ipa_sra_check_caller): Check for thunk.
19284 (ipa_sra_preliminary_function_checks): Give up on function with
19285 thunks.
19286 (ipa_early_sra): Use call_for_symbol_and_aliases.
19287
19288 2015-03-03 Kaz Kojima <kkojima@gcc.gnu.org>
19289
19290 PR target/65249
19291 * config/sh/sh.md (symGOT_load): Use R0 reg for operands[2] when
19292 called for __stack_chk_guard symbol.
19293
19294 2015-03-03 DJ Delorie <dj@redhat.com>
19295
19296 * config/rl78/rl78-real.md (*addqi_real): Allow SADDR types for
19297 inc/dec.
19298 (*addhi3_real): Likewise.
19299 * config/rl78/rl78-virt.md (*inc<mode>3_virt): Additional
19300 pattern to match incrementing memory.
19301 * config/rl78/predicates.md (rl78_1_2_operand): New.
19302 * config/rl78/rl78.c (rl78_force_nonfar_3): Allow far mem-mem if
19303 it's the same and only mem.
19304 (rl78_alloc_physical_registers_op2): If there's effectively only
19305 one MEM, transcode it into HL.
19306 (rl78_far_p): Reject addresses that aren't legitimate.
19307
19308 2015-03-03 Eric Botcazou <ebotcazou@adacore.com>
19309
19310 * fold-const.c (round_up_loc): Cast divisor to HOST_WIDE_INT before
19311 negating it.
19312
19313 * tree-sra.c (pa_sra_preliminary_function_checks): Fix typo in message.
19314
19315 2015-03-03 Max Filippov <jcmvbkbc@gmail.com>
19316
19317 Implement call0 ABI for xtensa
19318 * config/xtensa/constraints.md ("a" constraint): Include stack
19319 pointer in case of call0 ABI.
19320 ("q" constraint): Make empty in case of call0 ABI.
19321 ("D" constraint): Include stack pointer in case of call0 ABI.
19322 * config/xtensa/xtensa-protos.h (xtensa_set_return_address,
19323 xtensa_expand_epilogue, xtensa_regno_to_class): Add new function
19324 prototypes.
19325 * config/xtensa/xtensa.c (xtensa_callee_save_size): New
19326 variable.
19327 (xtensa_regno_to_class): Make it a local variable in the
19328 function xtensa_regno_to_class.
19329 (xtensa_function_epilogue, TARGET_ASM_FUNCTION_EPILOGUE): Remove
19330 macro, function prototype and implementation.
19331 (reg_nonleaf_alloc_order): Make it a local variable in the
19332 function order_regs_for_local_alloc.
19333 (xtensa_conditional_register_usage): New function.
19334 (TARGET_CONDITIONAL_REGISTER_USAGE): Define macro.
19335 (xtensa_valid_move): Allow direct moves to stack pointer
19336 register in call0 ABI.
19337 (xtensa_setup_frame_addresses): Only spill register windows in
19338 windowed ABI.
19339 (xtensa_emit_call): Emit call(x)8 or call(x)0 in windowed and
19340 call0 ABI respectively.
19341 (xtensa_function_arg_1): Only mark a7 register for copying in
19342 windowed ABI.
19343 (xtensa_call_save_reg): New function.
19344 (compute_frame_size): Add space for callee saved register
19345 storage to the frame size in call0 ABI.
19346 (xtensa_expand_prologue): Generate code to set up stack frame
19347 and save callee-saved registers in call0 ABI.
19348 (xtensa_expand_epilogue): New function.
19349 (xtensa_set_return_address): New function.
19350 (xtensa_return_addr): Calculate return address in call0 ABI.
19351 (xtensa_builtin_saveregs): Only mark a7 register for copying and
19352 emit copying code in windowed ABI.
19353 (order_regs_for_local_alloc): Add preferred register allocation
19354 order for non-leaf function in call0 ABI.
19355 (xtensa_static_chain): Add atatic chain passing for call0 ABI.
19356 (xtensa_asm_trampoline_template): Add trampoline generation for
19357 call0 ABI.
19358 (xtensa_trampoline_init): Add trampoline initialization for
19359 call0 ABI.
19360 (xtensa_conditional_register_usage, xtensa_regno_to_class): New
19361 functions.
19362 * config/xtensa/xtensa.h (TARGET_WINDOWED_ABI): New macro.
19363 (TARGET_CPU_CPP_BUILTINS): Add built-in define for call0 ABI.
19364 (CALL_USED_REGISTERS): Modify to encode both windowed and call0
19365 ABI call-used registers.
19366 (HARD_FRAME_POINTER_REGNUM): Add frame pointer for call0 ABI.
19367 (INCOMING_REGNO, OUTGOING_REGNO): Use argument unchanged in
19368 call0 ABI.
19369 (REG_CLASS_CONTENTS): Include all registers into the preferred
19370 reload registers set, adjust the set in the
19371 xtensa_conditional_register_usage.
19372 (xtensa_regno_to_class): Drop variable declaration.
19373 (REGNO_REG_CLASS): Redefine to use xtensa_regno_to_class
19374 function.
19375 (WINDOW_SIZE): Define as 8 or 0 for windowed and call0 ABI
19376 respectively.
19377 (FUNCTION_PROFILER): Add _mcount call for call0 ABI.
19378 (TRAMPOLINE_SIZE): Define trampoline size for call0 ABI.
19379 (RETURN_ADDR_IN_PREVIOUS_FRAME): Define to 0 in call0 ABI.
19380 (ASM_OUTPUT_POOL_PROLOGUE): Always generate literal pool
19381 location in call0 ABI.
19382 (EH_RETURN_STACKADJ_RTX): New definition, use a10 for passing
19383 stack adjustment size when handling exception.
19384 (CRT_CALL_STATIC_FUNCTION): Add definition for call0 ABI.
19385 * config/xtensa/xtensa.md (A9_REG, UNSPECV_BLOCKAGE): New
19386 definitions.
19387 ("return" pattern): Generate ret.n/ret in call0 ABI.
19388 ("epilogue" pattern): Expand epilogue.
19389 ("nonlocal_goto" pattern): Use default in call0 ABI.
19390 ("eh_return" pattern): Move implementation to eh_set_a0_windowed,
19391 emit eh_set_a0_* depending on ABI.
19392 ("eh_set_a0_windowed" pattern): Former eh_return pattern.
19393 ("eh_set_a0_call0", "blockage"): New patterns.
19394
19395 2015-03-03 Martin Liska <mliska@suse.cz>
19396
19397 PR ipa/65287
19398 * ipa-icf.c (sem_variable::parse): Skip all alias variables.
19399
19400 2015-03-03 Michael Meissner <meissner@linux.vnet.ibm.com>
19401
19402 PR 65138/target
19403 * config/rs6000/rs6000-tables.opt: Regenerate table.
19404
19405 2015-03-03 Renlin Li <renlin.li@arm.com>
19406
19407 * doc/md.texi (@item ^): Change ? into ^.
19408
19409 2015-03-03 H.J. Lu <hongjiu.lu@intel.com>
19410
19411 * doc/tm.texi: Regenerated.
19412
19413 2015-03-03 Max Filippov <jcmvbkbc@gmail.com>
19414
19415 * builtins.c (expand_builtin_return_addr): Add
19416 RETURN_ADDR_IN_PREVIOUS_FRAME to 'if' condition, remove
19417 surrounding #ifdef.
19418 * config/sparc/sparc.h (RETURN_ADDR_IN_PREVIOUS_FRAME): Change
19419 definition to 1.
19420 * config/xtensa/xtensa.h (RETURN_ADDR_IN_PREVIOUS_FRAME):
19421 Likewise.
19422 * defaults.h (RETURN_ADDR_IN_PREVIOUS_FRAME): Define to 0 if
19423 undefined.
19424 * doc/tm.texi.in (RETURN_ADDR_IN_PREVIOUS_FRAME): Update
19425 paragraph.
19426
19427 2015-03-03 Martin Jambor <mjambor@suse.cz>
19428 Eric Botcazou <ebotcazou@adacore.com>
19429
19430 * tree-sra.c (ipa_sra_check_caller_data): New type.
19431 (has_caller_p): Removed.
19432 (ipa_sra_check_caller): New function.
19433 (ipa_sra_preliminary_function_checks): Use it.
19434
19435 2015-03-03 Martin Liska <mliska@suse.cz>
19436
19437 * ipa-icf.c (sem_item_optimizer::merge_classes): Use bit or
19438 instead of if branch.
19439
19440 2015-03-03 Martin Liska <mliska@suse.cz>
19441
19442 PR ipa/65282
19443 * ipa-icf.c (sem_variable::equals): Fix wrong condition.
19444
19445 2015-03-23 Jeff Law <law@redhat.com>
19446
19447 PR tree-optimization/65241
19448 * tree-ssa-dom.c (lookup_avail_expr): Only modify the avail_expr
19449 hash table if INSERT is true.
19450
19451 2015-03-03 Georg-Johann Lay <avr@gjlay.de>
19452
19453 PR target/65296
19454 * config.gcc (extra_gcc_objs) [avr-*-rtems*]: Remove.
19455
19456 2015-03-03 Georg-Johann Lay <avr@gjlay.de>
19457
19458 PR target/64331
19459 * config/avr/avr.c (context.h, tree-pass.h): Include them.
19460 (avr_pass_data_recompute_notes): New static variable.
19461 (avr_pass_recompute_notes): New class.
19462 (avr_register_passes): New static function.
19463 (avr_option_override): Call it.
19464
19465 2015-03-03 Georg-Johann Lay <avr@gjlay.de>
19466
19467 Fix various problems with specs file generation.
19468
19469 PR target/65296
19470 * config.gcc (extra_gcc_objs) [avr]: Remove.
19471 * config/avr/driver-avr.c: Remove file.
19472 * config/avr/t-avr (driver-avr.o): Remove rule.
19473 (gen-avr-mmcu-specs): Use CXX_FOR_BUILD, CXXFLAGS_FOR_BUILD and
19474 INCLUDES to build. Depend on TM_H.
19475 * config/avr/gen-avr-mmcu-specs.c: Tidy up code. Fix various
19476 build warnings. Fix non-matching types and non-existing %-codes.
19477 (tm.h): Include.
19478 (*lib) [!WITH_AVRLIBC]: Don't link libdev.a.
19479 (*libgcc) [WITH_AVRLIBC]: Add "-lm".
19480 * config/avr/avrlibc.h (LIBGCC_SPEC): Remove definition.
19481 * config/avr/avr.h (DRIVER_SELF_SPECS): Fix handling of -march=.
19482 (CPP_SPEC, CC1PLUS_SPEC, ASM_SPEC, LINK_SPEC, LIB_SPEC)
19483 (LIBGCC_SPEC): Remove definitions.
19484
19485 2015-03-03 Eric Botcazou <ebotcazou@adacore.com>
19486
19487 * config/ia64/ia64.c (expand_vec_perm_interleave_2): Use gen_raw_REG
19488 to create a register in testing mode.
19489
19490 2015-03-03 Martin Liska <mliska@suse.cz>
19491 Jan Hubicka <hubicka@ucw.cz>
19492
19493 PR ipa/65263
19494 * cgraph.c (cgraph_node::has_thunk_p): New function.
19495 * cgraph.h (cgraph_node::has_thunk_p: Likewise.
19496 * ipa-icf.c (redirect_all_callers): Do not redirect thunks.
19497 (sem_function::merge): Assert is changed.
19498
19499 2015-03-03 Martin Liska <mliska@suse.cz>
19500 Martin Jambor <mjambor@suse.cz>
19501
19502 PR ipa/65087
19503 * ipa-icf.c (sem_item_optimizer::execute): Change function
19504 return value to boolean.
19505 (sem_item_optimizer::merge_classes): Likewise.
19506 (ipa_icf_driver): Return TODO_remove_functions in case there's
19507 a merge operation processed.
19508 * ipa-icf.h: Change function return value to boolean.
19509
19510 2015-03-02 Michael Meissner <meissner@linux.vnet.ibm.com>
19511
19512 PR 65138/target
19513 * config/rs6000/rs6000-cpus.def (powerpc64le): Add new generic
19514 processor type for 64-bit little endian PowerPC.
19515
19516 * config/rs6000/rs6000.c (rs6000_option_override_internal): If
19517 -mdebug=reg, print TARGET_DEFAULT. Fix logic to use
19518 TARGET_DEFAULT if there is no default cpu. Fix -mdebug=reg
19519 printing built-in mask so it does not pass NULL pointers.
19520
19521 * doc/invoke.texi (IBM RS/6000 and PowerPC options): Document
19522 -mcpu=powerpc64le.
19523
19524 2015-03-02 Steve Ellcey <sellcey@imgtec.com>
19525
19526 PR target/58158
19527 * config/mips/mips.md (mov<mode>cc): Change ISA_HAS_SEL check to
19528 !ISA_HAS_FP_CONDMOVE.
19529
19530 2015-03-02 Aldy Hernandez <aldyh@redhat.com>
19531
19532 * config/i386/i386.md (*udivmod<mode>4_pow2): Remove
19533 reload_completed.
19534
19535 2015-03-02 Ulrich Drepper <drepper@gmail.com>
19536
19537 * doc/invoke.texi (Options for Code Generation Conventions):
19538 Fix URL of DSO paper.
19539
19540 2015-03-02 Jan Hubicka <hubicka@ucw.cz>
19541
19542 PR ipa/65130
19543 * ipa-inline.c (check_callers): Looks for recursion.
19544 (inline_to_all_callers): Give up on uninlinable or recursive edges.
19545 * ipa-inline-analysis.c (inline_summary_t::duplicate): Do not update
19546 summary of inline clones.
19547 (do_estimate_growth_1): Fix recursion check.
19548
19549 2015-03-02 Jan Hubicka <hubicka@ucw.cz>
19550
19551 PR ipa/64988
19552 * ipa-inline-transform.c (clone_inlined_nodes): Do not dissolve
19553 comdat groups.
19554
19555 2015-03-02 Jan Hubicka <hubicka@ucw.cz>
19556 Aldy Hernandez <aldyh@redhat.com>
19557
19558 PR lto/65276
19559 * ipa-devirt.c (add_type_duplicate): Remove odr_violated assert
19560 when checking TYPE_BINFO.
19561
19562 2015-03-02 Richard Biener <rguenther@suse.de>
19563
19564 PR ipa/65270
19565 * ipa-icf-gimple.c: Include builtins.h.
19566 (func_checker::compare_memory_operand): Compare base alignment.
19567
19568 2015-03-02 Ilya Enkovich <ilya.enkovich@intel.com>
19569
19570 PR target/65184
19571 * gcc/config/i386/i386.c (ix86_pass_by_reference) Bounds
19572 are never passed by reference.
19573
19574 2015-03-02 Ilya Enkovich <ilya.enkovich@intel.com>
19575
19576 PR target/65183
19577 * tree-chkp.c (chkp_check_lower): Don't check against
19578 zero bounds for already instrumented functions.
19579 (chkp_check_upper): Likewise.
19580 (chkp_fini): Clean pass local data to avoid wrong reusage.
19581
19582 2015-02-28 Martin Liska <mliska@suse.cz>
19583 Jan Hubicka <hubicka@ucw.cz>
19584
19585 * ipa-icf.c (sem_variable::equals): Improve debug output;
19586 get variable constructor.
19587 (sem_variable::parse): Do not filter out too early; give up on
19588 volatile and register vars.
19589 (sem_item_optimizer::filter_removed_items): Filter out nonreadonly
19590 variables.
19591 * ipa-icf.h (sem_variable::init): Do not set ctor.
19592 (sem_variable::ctor): Remove.
19593
19594 2015-03-01 Aldy Hernandez <aldyh@redhat.com>
19595
19596 PR middle-end/65233
19597 * ipa-polymorphic-call.c (walk_ssa_copies): Handle empty PHIs.
19598
19599 2015-02-28 Jan Hubicka <hubicka@ucw.cz>
19600
19601 * ipa-icf.c: Include stor-layout.h
19602 (sem_function::compare_cgraph_references): Rename to ...
19603 (sem_item::compare_cgraph_references): ... this one.
19604 (sem_variable::equals_wpa): New function
19605 (sem_variable::equals): Do not check stuff already verified by
19606 equals_wpa.
19607 (sem_variable::equals): Reorg based on varasm.c:compare_constant.
19608 * ipa-icf.h (sem_item): Add compare_cgraph_references.
19609 (sem_function): Remove compare_cgraph_references.
19610 (sem_variable): Turns equals_wpa into non-inline.
19611
19612 2015-02-28 Jan Hubicka <hubicka@ucw.cz>
19613
19614 * ipa-icf.c (sem_function::init): Fix formating; skip GIMPLE_PREDICT.
19615 (sem_item::add_expr): New function.
19616 (sem_function::hash_stmt): Handle operands of most statements.
19617 (sem_variable::get_hash): Hash the actual constructor.
19618 * ipa-icf.h (sem_item): Add add_expr.
19619 (sem_function): Update prototype of hash_stmt
19620
19621 2015-02-28 Martin Liska <mliska@suse.cz>
19622 Jan Hubicka <hubicka@ucw.cz>
19623
19624 PR ipa/65245
19625 * ipa-icf-gimple.c (func_checker::compare_function_decl):
19626 Remove.
19627 (func_checker::compare_variable_decl): Skip symtab vars.
19628 (func_checker::compare_cst_or_decl): Update.
19629 * ipa-icf.c (sem_function::parse): Do not consider aliases.
19630 (sem_function::compare_cgraph_references): Add ADDRESS parameter;
19631 use correct symtab predicates.
19632 (sem_function::equals_wpa): Update uses of compare_cgraph_references.
19633 (sem_variable::parse): Update comment.
19634 (sem_item_optimizer::build_graph): Consider ultimate aliases
19635 for references.
19636
19637 2015-02-28 Jan Hubicka <hubicka@ucw.cz>
19638
19639 * ipa-icf-gimple.c (func_checker::compare_operand): Fix handling
19640 of OBJ_TYPE_REF.
19641
19642 2015-02-28 Jan Hubicka <hubicka@ucw.cz>
19643
19644 * ipa-icf.c (sem_function::merge): Fix handling of COMDAT.
19645 (sem_variable::merge) Likewise.
19646
19647 2015-02-28 Jan Hubicka <hubicka@ucw.cz>
19648
19649 * ipa-inline.c (can_inline_edge_p): Match opt_for_fn on inline
19650 target; also match flag_ipa_devirt.
19651
19652 2015-03-01 Martin Liska <mliska@suse.cz>
19653 Jan Hubicka <hubicka@ucw.cz>
19654
19655 * ipa-icf-gimple.c (func_checker::compare_variable_decl):
19656 Validate variable alignment.
19657 * ipa-icf.c (sem_function::equals_private): Be more precise
19658 about non-common function attributes.
19659 (sem_variable::equals): Likewise.
19660
19661 2015-02-28 Jan Hubicka <hubicka@ucw.cz>
19662
19663 PR ipa/65237
19664 * ipa-icf.c (sem_function::merge): Do not attempt to produce alias
19665 across COMDAT group boundary.
19666
19667 2015-02-28 Jan Hubicka <hubicka@ucw.cz>
19668
19669 PR ipa/65232
19670 * ipa-icf.c (clear_decl_rtl): New function.
19671 (sem_function::merge): Clear RTL before forming alias.
19672 (sem_variable::merge): Clear RTL before forming alias.
19673
19674 2015-02-28 Jan Hubicka <hubicka@ucw.cz>
19675
19676 PR ipa/65236
19677 * cgraphunit.c (cgraph_node::expand_thunk): Enable return slot opt.
19678
19679 2015-02-28 Xingxing Pan <xxingpan@marvell.com>
19680
19681 * config/aarch64/aarch64.md: (mov<mode>_aarch64): Change type
19682 to neon_to_gp<q>.
19683
19684 2015-02-27 Vladimir Makarov <vmakarov@redhat.com>
19685
19686 * params.def (PARAM_LRA_INHERITANCE_EBB_PROBABILITY_CUTOFF): Fix
19687 a typo in the description.
19688
19689 2015-02-27 Vladimir Makarov <vmakarov@redhat.com>
19690
19691 PR target/64317
19692 * params.def (PARAM_LRA_INHERITANCE_EBB_PROBABILITY_CUTOFF): New.
19693 * params.h (LRA_INHERITANCE_EBB_PROBABILITY_CUTOFF): New.
19694 * lra-constraints.c: Include "params.h".
19695 (EBB_PROBABILITY_CUTOFF): Use
19696 LRA_INHERITANCE_EBB_PROBABILITY_CUTOFF.
19697 (lra_inheritance): Use '<' instead of '<=' for
19698 EBB_PROBABILITY_CUTOFF.
19699 * doc/invoke.texi (lra-inheritance-ebb-probability-cutoff):
19700 Document change.
19701
19702 2015-02-27 Martin Liska <mliska@suse.cz>
19703
19704 * ipa-icf.h (struct symbol_compare_hashmap_traits): Add missing
19705 vector length condition.
19706
19707 2015-02-27 Sandra Loosemore <sandra@codesourcery.com>
19708
19709 * doc/extend.texi (x86 transactional memory intrinsics):
19710 Reorganize discussion of _xbegin. Clarify that the return
19711 value is a bit mask. Expand example and move to end of section.
19712
19713 2015-02-26 Jakub Jelinek <jakub@redhat.com>
19714 Aldy Hernandez <aldyh@redhat.com>
19715
19716 PR rtl-optimization/65220
19717 * config/i386/i386.md (*udivmod<mode>4_pow2): New.
19718
19719 2015-02-27 Vladimir Makarov <vmakarov@redhat.com>
19720
19721 PR target/65032
19722 * lra-remat.c (update_scratch_ops): New.
19723 (do_remat): Call it.
19724 * lra.c (lra_register_new_scratch_op): New. Take code from ...
19725 (remove_scratches): ... here.
19726 * lra-int.h (lra_register_new_scratch_op): New prototype.
19727
19728 2015-02-27 Marek Polacek <polacek@redhat.com>
19729
19730 PR c/65040
19731 * doc/invoke.texi: Update to reflect that -Wformat=2 doesn't enable
19732 -Wformat-signedness anymore.
19733
19734 2015-02-27 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
19735
19736 * config/s390/s390.c: (s390_atomic_assign_expand_fenv): New
19737 function.
19738 (TARGET_ATOMIC_ASSIGN_EXPAND_FENV): Define macro.
19739
19740 2015-02-27 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
19741
19742 * config/s390/s390.c (enum s390_builtin):
19743 Add S390_BUILTIN_S390_SFPC and S390_BUILTIN_S390_EFPC.
19744 (code_for_builtin): Add CODE_FOR_s390_sfpc and CODE_FOR_s390_efpc.
19745 (s390_init_builtins): Generate new builtin functions.
19746 * config/s390/s390.md (UNSPECV_SFPC, UNSPECV_EFPC): New constants.
19747 (s390_sfpc, s390_efpc): New pattern definitions.
19748
19749 2015-02-27 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
19750
19751 * config/s390/s390.c: (enum s390_builtin, s390_expand_builtin):
19752 Rename S390_BUILTIN_max to S390_BUILTIN_MAX.
19753 (s390_builtin_decls): New array.
19754 (s390_init_builtins): Put builtin decls into s390_builtin_decls.
19755 (s390_builtin_decl): New function.
19756 (TARGET_BUILTIN_DECL): Define macro.
19757
19758 2015-02-27 Richard Biener <rguenther@suse.de>
19759
19760 PR middle-end/63175
19761 * builtins.c (get_object_alignment_2): Make sure to re-apply
19762 the ANDed mask after recursing to its operand gets us a new
19763 misalignment bit position.
19764
19765 2015-02-26 Jan Hubicka <hubicka@ucw.cz>
19766 Martin Liska <mliska@suse.cz>
19767
19768 PR bootstrap/65150
19769 * ipa-icf.c (symbol_compare_collection::symbol_compare_colleciton):
19770 Use address_matters_p.
19771 (redirect_all_callers, set_addressable): New functions.
19772 (sem_function::merge): Reorganize and fix merging issues.
19773 (sem_variable::merge): Likewise.
19774 (sem_variable::compare_sections): Remove.
19775 * common.opt (fmerge-all-constants, fmerge-constants): Remove
19776 Optimization flag.
19777 * symtab.c (symtab_node::resolve_alias): When alias has aliases,
19778 redirect them.
19779 (symtab_node::make_decl_local): Set ADDRESSABLE bit when
19780 decl is used.
19781 (address_matters_1): New function.
19782 (symtab_node::address_matters_p): New function.
19783 * cgraph.c (cgraph_edge::verify_corresponds_to_fndecl): Fix
19784 check for merged flag.
19785 * cgraph.h (address_matters_p): Declare.
19786 (symtab_node::address_taken_from_non_vtable_p): Remove.
19787 (symtab_node::address_can_be_compared_p): New method.
19788 (ipa_ref::address_matters_p): Move here from ipa-ref.c; simplify.
19789 * ipa-visibility.c (symtab_node::address_taken_from_non_vtable_p):
19790 Remove.
19791 (comdat_can_be_unshared_p_1) Use address_matters_p.
19792 (update_vtable_references): Fix formating.
19793 * ipa-ref.c (ipa_ref::address_matters_p): Move inline.
19794 * cgraphunit.c (cgraph_node::create_wrapper): Drop UNINLINABLE flag.
19795 * cgraphclones.c: Preserve merged and icf_merged flags.
19796
19797 2015-02-26 Sandra Loosemore <sandra@codesourcery.com>
19798
19799 * doc/extend.texi (Function Attributes): Fix spelling and typos.
19800 (Label Attributes): Likewise.
19801 (Cilk Plus Builtins): Likewise.
19802 (ARC SIMD Built-in Functions): Likewise.
19803 (ARM C Language Extensions (ACLE)): Likewise.
19804 (PowerPC Built-in Functions): Likewise.
19805 (PowerPC Hardware Transactional Memory Built-in Functions):
19806 Likewise.
19807
19808 2015-02-26 Jakub Jelinek <jakub@redhat.com>
19809
19810 PR tree-optimization/65216
19811 * tree-ssa-reassoc.c (rewrite_expr_tree): Force creation of
19812 new stmt and new SSA_NAME for lhs whenever the arguments have
19813 changed and weren't just swapped. Fix comment typo.
19814
19815 PR tree-optimization/65215
19816 * tree-ssa-math-opts.c (find_bswap_or_nop_load): Return false
19817 for PDP endian targets.
19818 (perform_symbolic_merge, find_bswap_or_nop_1, find_bswap_or_nop):
19819 Fix up formatting issues.
19820 (bswap_replace): Likewise. For BYTES_BIG_ENDIAN, if the final access
19821 size is smaller than the original, adjust MEM_REF offset by the
19822 difference of sizes. Use is_gimple_mem_ref_addr instead of
19823 is_gimple_min_invariant test to avoid adding address temporaries.
19824
19825 2015-02-26 Martin Liska <mliska@suse.cz>
19826 Jan Hubicka <hubicka@ucw.cz>
19827
19828 PR ipa/64693
19829 * ipa-icf.c (symbol_compare_collection::symbol_compare_collection): New.
19830 (sem_item_optimizer::subdivide_classes_by_sensitive_refs): New function.
19831 (sem_item_optimizer::process_cong_reduction): Include division by
19832 sensitive references.
19833 * ipa-icf.h (struct symbol_compare_hashmap_traits): New class.
19834 * ipa-ref.c (ipa_ref::address_matters_p): New function.
19835 * ipa-ref.h (ipa_ref::address_matters_p): Likewise.
19836
19837 2015-02-26 Georg-Johann Lay <avr@gjlay.de>
19838
19839 PR target/65192
19840 * config/avr/avr-protos.h (tiny_valid_direct_memory_access_range):
19841 Remove.
19842 * config/avr/avr.c: Same.
19843 (avr_legitimate_address_p) <AVR_TINY, CONSTANT_ADDRESS_P>:
19844 Refuse any constant address not in 0..0xbf.
19845 * config/avr/avr.md (*mov<mode>, *movsf): Remove
19846 tiny_valid_direct_memory_access_range from insn conditions.
19847 (mov<mode>): Don't special-case expansion of avrtiny addresses.
19848
19849 2015-02-26 Oleg Endo <olegendo@gcc.gnu.org>
19850
19851 PR target/61142
19852 * config/sh/sh.c (sh_check_add_incdec_notes): New function.
19853 * config/sh/sh-protos.h (sh_check_add_incdec_notes): Declare it.
19854 * config/sh/predicates.md (const_logical_operand): New predicate.
19855 * config/sh/sh.md: Add new peephole2 patterns.
19856
19857 2015-02-26 Marek Polacek <polacek@redhat.com>
19858
19859 PR ipa/65008
19860 * ipa-inline.c (early_inliner): Recompute inline parameters.
19861
19862 2015-02-26 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
19863
19864 PR target/65171
19865 * config/rs6000/rs6000.c (rs6000_analyze_swaps): Ensure
19866 instructions with TImode operands are included in the analysis.
19867
19868 2015-02-26 Sebastian Pop <s.pop@samsung.com>
19869
19870 * tree-ssa-threadupdate.c (dump_jump_thread_path): Print all edges
19871 of an EDGE_FSM_THREAD.
19872
19873 2015-02-25 Adhemerval Zanella <azanella@linux.vnet.ibm.com>
19874
19875 * config/rs6000/htm.md (tcheck): Fix assembly encoding.
19876
19877 2015-02-25 Aldy Hernandez <aldyh@redhat.com>
19878
19879 PR debug/46102
19880 * dwarf2out.c (dwarf2out_init): Disable -feliminate-dwarf2-dups.
19881
19882 2015-02-26 Sebastian Pop <s.pop@samsung.com>
19883
19884 PR tree-optimization/65048
19885 * tree-ssa-threadupdate.c (valid_jump_thread_path): New.
19886 (thread_through_all_blocks): Call valid_jump_thread_path.
19887 Remove invalid FSM jump-thread paths.
19888
19889 2015-02-26 Jakub Jelinek <jakub@redhat.com>
19890
19891 * passes.c (ipa_write_summaries_1): Call lto_output_init_mode_table.
19892 (ipa_write_optimization_summaries): Likewise.
19893 * tree-streamer.h: Include data-streamer.h.
19894 (streamer_mode_table): Declare extern variable.
19895 (bp_pack_machine_mode, bp_unpack_machine_mode): New inline functions.
19896 * lto-streamer-out.c (lto_output_init_mode_table,
19897 lto_write_mode_table): New functions.
19898 (produce_asm_for_decls): Call lto_write_mode_table when streaming
19899 offloading LTO.
19900 * lto-section-in.c (lto_section_name): Add "mode_table" entry.
19901 (lto_create_simple_input_block): Add mode_table argument to the
19902 lto_input_block constructors.
19903 * ipa-prop.c (ipa_prop_read_section, read_replacements_section):
19904 Likewise.
19905 * data-streamer-in.c (string_for_index): Likewise.
19906 * ipa-inline-analysis.c (inline_read_section): Likewise.
19907 * ipa-icf.c (sem_item_optimizer::read_section): Likewise.
19908 * lto-cgraph.c (input_cgraph_opt_section): Likewise.
19909 * lto-streamer-in.c (lto_read_body_or_constructor,
19910 lto_input_toplevel_asms): Likewise.
19911 (lto_input_mode_table): New function.
19912 * tree-streamer-out.c (pack_ts_fixed_cst_value_fields,
19913 pack_ts_decl_common_value_fields, pack_ts_type_common_value_fields):
19914 Use bp_pack_machine_mode.
19915 * real.h (struct real_format): Add name field.
19916 * lto-streamer.h (enum lto_section_type): Add LTO_section_mode_table.
19917 (class lto_input_block): Add mode_table member.
19918 (lto_input_block::lto_input_block): Add mode_table_ argument,
19919 initialize mode_table.
19920 (struct lto_file_decl_data): Add mode_table field.
19921 (lto_input_mode_table, lto_output_init_mode_table): New prototypes.
19922 * tree-streamer-in.c (unpack_ts_fixed_cst_value_fields,
19923 unpack_ts_decl_common_value_fields,
19924 unpack_ts_type_common_value_fields): Call bp_unpack_machine_mode.
19925 * tree-streamer.c (streamer_mode_table): New variable.
19926 * real.c (ieee_single_format, mips_single_format,
19927 motorola_single_format, spu_single_format, ieee_double_format,
19928 mips_double_format, motorola_double_format,
19929 ieee_extended_motorola_format, ieee_extended_intel_96_format,
19930 ieee_extended_intel_128_format, ieee_extended_intel_96_round_53_format,
19931 ibm_extended_format, mips_extended_format, ieee_quad_format,
19932 mips_quad_format, vax_f_format, vax_d_format, vax_g_format,
19933 decimal_single_format, decimal_double_format, decimal_quad_format,
19934 ieee_half_format, arm_half_format, real_internal_format): Add name
19935 field.
19936 * config/pdp11/pdp11.c (pdp11_f_format, pdp11_d_format): Likewise.
19937
19938 2015-02-26 Yuri Rumyantsev <ysrumyan@gmail.com>
19939
19940 PR target/65161
19941 * config/i386/i386.c (ix86_sched_reorder): Skip instruction
19942 reordering for selective scheduling.
19943
19944 2015-02-26 Terry Guo <terry.guo@arm.com>
19945
19946 * config/arm/arm-cores.def (cortex-m7): Add flag FL_NO_VOLATILE_CE.
19947 * config/arm/arm-protos.h (FL_NO_VOLATILE_CE): New flag.
19948 (arm_arch_no_volatile_ce): Declare new global variable.
19949 * config/arm/arm.c (arm_arch_no_volatile_ce): New global variable.
19950 (arm_option_override): Assign value to arm_arch_no_volatile_ce.
19951 * config/arm/arm.h (arm_arch_no_volatile_ce): Declare it.
19952 (TARGET_NO_VOLATILE_CE): New macro.
19953 * config/arm/arm.md (arm_comparison_operator): Disabled if not allow
19954 volatile memory access in IT block
19955
19956 2015-02-25 Kai Tietz <ktietz@redhat.com>
19957
19958 PR tree-optimization/61917
19959 * tree-vect-loop.c (vectorizable_reduction): Handle obvious case
19960 that reduc_def_stmt is null.
19961
19962 2015-02-25 Martin Liska <mliska@suse.cz>
19963
19964 * ipa-icf-gimple.c (func_checker::compare_variable_decl): Compare
19965 hard register variables.
19966
19967 2015-02-25 Kai Tietz <ktietz@redhat.com>
19968
19969 PR target/64212
19970 * symtab.c (symtab::make_decl_local): Set DECL_IMPORT_P explicit to 0.
19971 (symtab::noninterposable_alias): Likewise.
19972
19973 2015-02-25 Ilya Enkovich <ilya.enkovich@intel.com>
19974
19975 PR target/65167
19976 * gcc/config/i386/i386.c (ix86_function_arg_regno_p): Support
19977 bounds registers.
19978 (avoid_func_arg_motion): Add dependencies for BNDSTX insns.
19979
19980 2015-02-25 Alan Lawrence <alan.lawrence@arm.com>
19981
19982 PR target/64997
19983 * config/aarch64/aarch64.md (*xor_one_cmpl<mode>3): Use FP_REGNUM_P
19984 as split condition; force split via '#' in output pattern.
19985
19986 2015-02-25 Richard Biener <rguenther@suse.de>
19987 Kai Tietz <ktietz@redhat.com>
19988
19989 PR tree-optimization/61917
19990 * tree-vect-loop.c (vectorizable_reduction): Allow
19991 vect_internal_def without reduction to exit graceful.
19992
19993 2015-02-25 Georg-Johann Lay <avr@gjlay.de>
19994
19995 PR target/65196
19996 * config/avr/avr.c (avr_adjust_insn_length): Call recog_memoized
19997 only with NONDEBUG_INSN_P.
19998
19999 2015-02-25 Georg-Johann Lay <avr@gjlay.de>
20000
20001 Use variadic macros with avr-log.c.
20002
20003 * config/avr/avr-protos.h (avr_vdump): New prototype.
20004 (avr_log_set_caller_e, avr_log_set_caller_f): Remove protos.
20005 (avr_edump, avr_fdump, avr_dump): (Re)define to use avr_vdump.
20006 * config/avr/avr-log.c: Adjust comments.
20007 (avr_vdump): New function.
20008 (avr_vadump): Pass caller as 2nd argument instead of format string.
20009 (avr_log_caller, avr_log_fdump_e, avr_log_fdump_f)
20010 (avr_log_set_caller_e, avr_log_set_caller_f): Remove.
20011
20012 2015-02-25 Jakub Jelinek <jakub@redhat.com>
20013
20014 PR lto/64374
20015 * target.def (target_option_stream_in): New target hook.
20016 * tree-streamer-in.c (streamer_read_tree_bitfields): Invoke
20017 targetm.target_option.post_stream_in if non-NULL.
20018 * doc/tm.texi.in: Add @hook TARGET_OPTION_POST_STREAM_IN.
20019 * doc/tm.texi: Updated.
20020 * config/i386/i386.c (ix86_function_specific_post_stream_in): New
20021 function.
20022 (TARGET_OPTION_POST_STREAM_IN): Redefine.
20023
20024 2015-02-24 Jeff Law <law@redhat.com>
20025
20026 PR target/65117
20027 * config/xtensa/xtensa.md (zero_cost_loop_start): Reverse numbering
20028 of operand 0 and operand 2.
20029 (zero_cost_loop_end, loop_end): Similarly.
20030
20031 2015-02-24 Aldy Hernandez <aldyh@redhat.com>
20032
20033 * gimple.h (gimple_build_assign): Rename CXX_MEM_STAT_DECL to
20034 CXX_MEM_STAT_INFO.
20035
20036 2015-02-24 DJ Delorie <dj@redhat.com>
20037
20038 * config/rl78/rl78-protos.h (rl78_split_movsi): Accept a mode as well.
20039 * config/rl78/rl78-expand.md (movsf): New, same as movsi.
20040 * config/rl78/rl78.c (rl78_split_movsi): Accept a mode, use it
20041 instead of hardcoding SImode.
20042
20043 2015-02-24 Bernd Schmidt <bernds@codesourcery.com>
20044
20045 * omp-low.c (create_omp_child_function): Tag entrypoint
20046 functions with a special attribute.
20047
20048 2015-02-24 Michael Haubenwallner <michael.haubenwallner@ssi-schaefer.com>
20049
20050 PR target/65058
20051 * config/rs6000/xcoff.h (ASM_OUTPUT_EXTERNAL): Drop unused variable.
20052
20053 2015-02-24 Vladimir Makarov <vmakarov@redhat.com>
20054
20055 PR rtl-optimization/65123
20056 * lra-remat.c (operand_to_remat): Check hard regs in insn
20057 definition too.
20058
20059 2015-02-24 Nick Clifton <nickc@redhat.com>
20060
20061 * config/v850/v850.h (ASM_SPEC): Pass -msoft-float/-mhard-float on
20062 to the assembler.
20063
20064 2015-02-24 Thomas Schwinge <thomas@codesourcery.com>
20065
20066 PR libgomp/64625
20067 * omp-builtins.def (BUILT_IN_GOACC_DATA_START): Specify as
20068 BT_FN_VOID_INT_SIZE_PTR_PTR_PTR, not
20069 BT_FN_VOID_INT_PTR_SIZE_PTR_PTR_PTR.
20070 (BUILT_IN_GOACC_ENTER_EXIT_DATA, BUILT_IN_GOACC_UPDATE): Specify as
20071 BT_FN_VOID_INT_SIZE_PTR_PTR_PTR_INT_INT_VAR, not
20072 BT_FN_VOID_INT_PTR_SIZE_PTR_PTR_PTR_INT_INT_VAR.
20073 (BUILT_IN_GOACC_PARALLEL): Specify as
20074 BT_FN_VOID_INT_OMPFN_SIZE_PTR_PTR_PTR_INT_INT_INT_INT_INT_VAR, not
20075 BT_FN_VOID_INT_OMPFN_PTR_SIZE_PTR_PTR_PTR_INT_INT_INT_INT_INT_VAR.
20076 * builtin-types.def
20077 (BT_FN_VOID_INT_PTR_SIZE_PTR_PTR_PTR_INT_INT_VAR)
20078 (BT_FN_VOID_INT_OMPFN_PTR_SIZE_PTR_PTR_PTR_INT_INT_INT_INT_INT_VAR):
20079 Remove function types.
20080 (BT_FN_VOID_INT_SIZE_PTR_PTR_PTR)
20081 (BT_FN_VOID_INT_SIZE_PTR_PTR_PTR_INT_INT_VAR)
20082 (BT_FN_VOID_INT_OMPFN_SIZE_PTR_PTR_PTR_INT_INT_INT_INT_INT_VAR):
20083 New function types.
20084
20085 2015-02-24 Georg-Johann Lay <avr@gjlay.de>
20086
20087 * config/avr/stdfix.h [__WITH_AVRLIBC__]: Include <stdfix-avrlibc.h>.
20088
20089 2015-02-24 Jakub Jelinek <jakub@redhat.com>
20090
20091 PR tree-optimization/65170
20092 * wide-int.cc (wi::mul_internal): For the umul_ppmm optimization,
20093 if val[1] < 0, clear also val[2] and return 3.
20094
20095 2015-02-24 Alan Modra <amodra@gmail.com>
20096
20097 PR target/65172
20098 * config/rs6000/rs6000.c (get_memref_parts): Only return true
20099 when *base is a reg. Handle nested plus addresses. Simplify
20100 pre_modify test.
20101
20102 2015-02-22 Max Filippov <jcmvbkbc@gmail.com>
20103
20104 * config/xtensa/xtensa.h (CONSTANT_ALIGNMENT, DATA_ALIGNMENT):
20105 use natural alignment when optimizing for size.
20106
20107 2015-02-23 Kaz Kojima <kkojima@gcc.gnu.org>
20108
20109 PR target/65153
20110 * config/sh/sh.md (movsicc_true+3): Remove peephole.
20111 * config/sh/sh-protos.h (replace_n_hard_rtx): Don't declare.
20112 * config/sh/sh.c (replace_n_hard_rtx): Remove.
20113
20114 2015-02-23 Richard Sandiford <richard.sandiford@arm.com>
20115
20116 PR fortran/63427
20117 * wide-int.cc (wi::from_mpz): Cope with unwrapped values that are
20118 too big for a wide_int. Implement missing wrapping operation.
20119
20120 2015-02-23 Oleg Endo <olegendo@gcc.gnu.org>
20121
20122 PR target/65163
20123 * config/sh/sh.md (swapbsi2, related peephole2): Use const_int -65536
20124 instead of const_int 4294901760.
20125
20126 2015-02-23 Georg-Johann Lay <avr@gjlay.de>
20127
20128 * config/avr/t-avr: Fix typo in comment.
20129
20130 2015-02-21 Richard Sandiford <richard.sandiford@arm.com>
20131
20132 * doc/rtl.texi (fma): Clarify documentation.
20133
20134 2015-02-20 Aldy Hernandez <aldyh@redhat.com>
20135
20136 PR debug/58123
20137 * gimplify.c (gimplify_expr): Prefer location of TRY_FINALLY_EXPR
20138 over input_location.
20139
20140 2015-02-20 Bernd Schmidt <bernds@codesourcery.com>
20141
20142 * tree-streamer-in.c (unpack_ts_decl_common_value_fields,
20143 unpack_ts_type_common_value_fields): If ACCEL_COMPILER,
20144 restrict alignments to absolute_biggest_alignment.
20145 * config/i386/i386.c (TARGET_ABSOLUTE_BIGGEST_ALIGNMENT):
20146 Define.
20147 * doc/tm.texi.in (TARGET_ABSOLUTE_BIGGEST_ALIGNMENT): Add.
20148 * doc/tm.texi: Regenerate.
20149 * target.def (absolute_biggest_alignment): New DEFHOOKPOD.
20150
20151 2015-02-20 Vladimir Makarov <vmakarov@redhat.com>
20152
20153 PR target/64172
20154 * ira-color.c (color_pass): Prevent splitting multi-register pseudos.
20155
20156 2015-02-20 Richard Biener <rguenther@suse.de>
20157
20158 PR tree-optimization/65136
20159 * tree-ssa-propagate.c: Include cfgloop.h.
20160 (replace_phi_args_in): Avoid replacing loop latch edge PHI
20161 arguments with constants.
20162
20163 2015-02-20 Jakub Jelinek <jakub@redhat.com>
20164 Martin Liska <mliska@suse.cz>
20165
20166 PR target/63892
20167 * ipa-icf.c (sem_function::merge): If DECL_COMDAT_GROUP (alias->decl),
20168 don't try to create_thunk if stdarg_p. If
20169 !sem_item::target_supports_symbol_aliases_p (), similarly, and try to
20170 redirect_callers if possible.
20171 (sem_item_optimizer::execute): Call unregister_hooks here...
20172 (ipa_icf_driver): ... instead of here.
20173
20174 2015-02-20 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
20175
20176 * config/aarch64/aarch64.md (*aarch64_lshr_sisd_or_int_<mode>3):
20177 Mark operand 0 as earlyclobber in 2nd alternative.
20178 (1st define_split below *aarch64_lshr_sisd_or_int_<mode>3):
20179 Write negated shift amount into QI lowpart operand 0 and use it
20180 in the shift step.
20181 (2nd define_split below *aarch64_lshr_sisd_or_int_<mode>3): Likewise.
20182
20183 2015-02-20 Bernd Schmidt <bernds@codesourcery.com>
20184
20185 * cgraph.h (clone_function_name_1): Declare.
20186 * cgraphclones.c (clone_function_name_1): New function.
20187 (clone_function_name): Use it.
20188 * lto-partition.c: Include "stringpool.h".
20189 (must_not_rename, maybe_rewrite_identifier)
20190 (validize_symbol_for_target): New static functions.
20191 (privatize_symbol_name): Use must_not_rename.
20192 (promote_symbol): Call validize_symbol_for_target.
20193 (lto_promote_cross_file_statics): Likewise.
20194 (lto_promote_statics_nonwpa): Likewise.
20195
20196 2015-02-20 Georg-Johann Lay <avr@gjlay.de>
20197
20198 PR target/64452
20199 * config/avr/avr.md (pushhi_insn): New insn.
20200 (push<mode>1): Push virtual regs in one chunk using pushhi1_insn.
20201
20202 2015-02-20 Bernd Schmidt <bernds@codesourcery.com>
20203 Jakub Jelinek <jakub@redhat.com>
20204
20205 * tree-streamer.c (preload_common_nodes): Don't preload
20206 TI_VA_LIST* for offloading.
20207 * tree-stdarg.c (pass_stdarg::gate): Disable for ACCEL_COMPILER
20208 in_lto_p.
20209
20210 2015-02-19 John David Anglin <danlgin@gcc.gnu.org>
20211
20212 * config/pa/pa.c (pa_emit_move_sequence): Always force
20213 (const (plus (symbol) (const_int))) to const mem. Put REG_EQUAL
20214 note on insn.
20215
20216 * config/pa/pa.c (pa_reloc_rw_mask): New function.
20217 (TARGET_ASM_RELOC_RW_MASK): Define.
20218 (pa_cannot_force_const_mem): Revert previous change.
20219
20220 2015-02-19 Martin Jambor <mjmabor@suse.cz>
20221 Jan Hubicka <hubicka@ucw.cz>
20222
20223 PR ipa/65028
20224 * ipa-cp.c (propagate_alignment_accross_jump_function): Fix propagation
20225 across jump functions.
20226
20227 2015-02-19 Uros Bizjak <ubizjak@gmail.com>
20228
20229 * config/alpha/alpha.c (alpha_in_small_data_p): Reject common symbols.
20230
20231 2015-02-19 Sandra Loosemore <sandra@codesourcery.com>
20232
20233 * doc/extend.texi (x86 transactional memory intrinsics): Copy-edit.
20234
20235 2015-02-19 Richard Henderson <rth@redhat.com>
20236
20237 PR middle-end/65074
20238 * varasm.c (default_binds_local_p_2): Don't test node->definition;
20239 test DECL_EXTERNAL independent of symtab_node.
20240
20241 2015-02-19 Jakub Jelinek <jakub@redhat.com>
20242
20243 PR lto/65012
20244 * varpool.c (varpool_node::get_constructor): Return early
20245 if this->lto_file_data is NULL.
20246
20247 2015-02-19 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
20248
20249 * haifa-sched.c (enum rfs_decision, rfs_str): Remove RFS_DEBUG.
20250 (rank_for_schedule_debug): Update.
20251 (ready_sort): Make static. Move sorting logic to ...
20252 (ready_sort_debug, ready_sort_real): New static functions.
20253 (schedule_block): Sort both debug insns and real insns in preparation
20254 for ready list trimming. Improve debug output.
20255 * sched-int.h (ready_sort): Remove global declaration.
20256
20257 2015-02-18 Trevor Saunders <tsaunders@mozilla.com>
20258
20259 * ipa-icf.c (sem_function::equals_private): Adjust.
20260 (sem_function::bb_dict_test): Take a vec<int> * instead of
20261 auto_vec<int>.
20262 * ipa-icf.h (bb_dict_test): Likewise.
20263
20264 2015-02-18 Jakub Jelinek <jakub@redhat.com>
20265
20266 PR gcov-profile/64634
20267 * tree-eh.c (frob_into_branch_around): Fix up typos
20268 in function comment.
20269 (lower_catch): Put eh_seq resulting from EH lowering of
20270 the cleanup sequence after the cleanup rather than before it.
20271
20272 2015-02-18 Tom de Vries <tom@codesourcery.com>
20273
20274 * common.opt (fstdarg-opt): New option.
20275 * tree-stdarg.c (pass_stdarg::gate): Use flag_stdarg_opt.
20276 * doc/invoke.texi (@item Optimization Options): Add -fstdarg-opt.
20277 (@item -fstdarg-opt): New item.
20278
20279 2015-02-18 H.J. Lu <hongjiu.lu@intel.com>
20280
20281 PR target/65064
20282 * config/ia64/predicates.md (sdata_symbolic_operand): Return false
20283 for common symbols.
20284
20285 2015-02-18 Jakub Jelinek <jakub@redhat.com>
20286
20287 * config/i386/t-intelmic (mkoffload.o): Remove dependency on
20288 insn-modes.h.
20289 (ALL_HOST_OBJS): Add mkoffload.o.
20290 * config/nvptx/t-nvptx (ALL_HOST_OBJS): Likewise.
20291
20292 2015-02-18 Jan Hubicka <hubicka@ucw.cz>
20293
20294 * ipa-devirt.c (odr_subtypes_equivalent_p): Fix formating.
20295 (compare_virtual_tables): Be smarter about skipping typeinfos;
20296 do sane output on virtual table table mismatch.
20297 (warn_odr): Be ready for forward declarations of enums;
20298 output sane info on base mismatch and virtual table mismatch.
20299 (add_type_duplicate): Fix code choosing prevailing type; do not ICE
20300 when only one type is polymorphic.
20301 (get_odr_type): Fix hashtable corruption.
20302 (dump_odr_type): Dump mangled names.
20303
20304 2015-02-18 Richard Biener <rguenther@suse.de>
20305
20306 PR tree-optimization/65063
20307 * tree-predcom.c (determine_unroll_factor): Return 1 if we
20308 have replaced looparound PHIs.
20309
20310 2015-02-18 Martin Liska <mliska@suse.cz>
20311
20312 * lto-streamer.c (lto_streamer_init): Encapsulate
20313 streamer_check_handled_ts_structures with checking macro.
20314
20315 2015-02-18 Jakub Jelinek <jakub@redhat.com>
20316
20317 PR ipa/65087
20318 * cgraphclones.c (cgraph_node::create_virtual_clone): Only copy
20319 section if !implicit_section.
20320 (cgraph_node::create_version_clone_with_body): Likewise.
20321 * trans-mem.c (ipa_tm_create_version): Likewise.
20322
20323 2015-02-18 Richard Biener <rguenther@suse.de>
20324
20325 PR tree-optimization/62217
20326 * tree-ssa-dom.c (cprop_operand): Avoid propagating copies
20327 into BIVs.
20328
20329 2015-02-18 Marek Polacek <polacek@redhat.com>
20330
20331 PR sanitizer/65081
20332 * ubsan.c (OBJSZ_MAX_OFFSET): Define.
20333 (ubsan_expand_objsize_ifn): Don't emit run-time check if the offset
20334 is in range [-16K, -1]. Don't issue run-time error if
20335 (ptr > ptr + offset).
20336
20337 2015-02-18 Thomas Schwinge <thomas@codesourcery.com>
20338
20339 * doc/install.texi (nvptx-*-none): New section.
20340 * doc/invoke.texi (Nvidia PTX Options): Likewise.
20341 * config/nvptx/nvptx.opt: Update.
20342
20343 * config/nvptx/mkoffload.c (parse_env_var, free_array_of_ptrs)
20344 (access_check): New functions, copied from
20345 config/i386/intelmic-mkoffload.c.
20346 (main): For non-installed testing, look in all COMPILER_PATHs for
20347 GCC_INSTALL_NAME.
20348
20349 * config/nvptx/nvptx.h (GOMP_SELF_SPECS): Define macro.
20350
20351 2015-02-18 Andrew Pinski <apinski@cavium.com>
20352 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
20353
20354 * config/aarch64/aarch64.c (*aarch64_load_symref_appropriately):
20355 Check whether the destination of SYMBOL_SMALL_TPREL is Pmode.
20356
20357 2015-02-17 Jan Hubicka <hubicka@ucw.cz>
20358
20359 * ipa-visibility.c (function_and_variable_visibility): Only
20360 check locality if node is not already local.
20361 * ipa-inline.c (want_inline_function_to_all_callers_p): Use
20362 call_for_symbol_and_aliases instead of
20363 call_for_symbol_thunks_and_aliases.
20364 (ipa_inline): Likewise.
20365 * cgraph.c (cgraph_node::call_for_symbol_thunks_and_aliases):
20366 first walk aliases.
20367 * ipa.c (symbol_table::remove_unreachable_nodes): Use
20368 call_for_symbol_and_aliases.
20369 * ipa-profile.c (ipa_propagate_frequency_data): Add function_symbol.
20370 (ipa_propagate_frequency_1): Use it; use opt_for_fn
20371 (ipa_propagate_frequency): Update.
20372 (ipa_profile): Add opt_for_fn gueards.
20373
20374 2015-02-17 Oleg Endo <olegendo@gcc.gnu.org>
20375
20376 * config/sh/sh.opt (mcbranch-force-delay-slot): New option.
20377 * doc/invoke.texi (SH options): Document it.
20378 * config/sh/sh.c (sh_insn_length_adjustment): Check
20379 TARGET_CBRANCH_FORCE_DELAY_SLOT instead of sh_cpu_attr == CPU_SH2E.
20380
20381 2015-02-17 H.J. Lu <hongjiu.lu@intel.com>
20382
20383 * common.opt (fipa-cp-alignment): New.
20384 * ipa-cp.c (ipcp_store_alignment_results): Check
20385 flag_ipa_cp_alignment.
20386 * opts.c (default_options_table): Enable -fipa-cp-alignment for
20387 -O2.
20388 (enable_fdo_optimizations): Set x_flag_ipa_cp_alignment.
20389 * doc/invoke.texi: Document -fipa-cp-alignment.
20390
20391 2015-02-17 Oleg Endo <olegendo@gcc.gnu.org>
20392
20393 PR target/64793
20394 * config/sh/sh.md (cbranch define_delay): Set annulled true branch insn
20395 to nil. Adjust comments.
20396
20397 2015-02-17 Jan Hubicka <hubicka@ucw.cz>
20398
20399 * ipa-visibility.c (function_and_variable_visibility): Only
20400 check locality if node is not already local.
20401 * ipa-inline.c (want_inline_function_to_all_callers_p): Use
20402 call_for_symbol_and_aliases instead of
20403 call_for_symbol_thunks_and_aliases.
20404 (ipa_inline): Likewise.
20405 * cgraph.c (cgraph_node::call_for_symbol_thunks_and_aliases):
20406 first walk aliases.
20407 * ipa.c (symbol_table::remove_unreachable_nodes): Use
20408 call_for_symbol_and_aliases.
20409 * ipa-profile.c (ipa_propagate_frequency_data): Add function_symbol.
20410 (ipa_propagate_frequency_1): Use it; use opt_for_fn
20411 (ipa_propagate_frequency): Update.
20412 (ipa_profile): Add opt_for_fn guards.
20413
20414 2015-02-17 Thomas Schwinge <thomas@codesourcery.com>
20415
20416 * config/nvptx/mkoffload.c (parse_file): Fix logic error in
20417 skipping of "strange" tokens.
20418
20419 2015-02-17 Jeff Law <law@redhat.com>
20420
20421 * tree-vrp.c (identify_jump_threads): Use last_stmt. Remove
20422 obsolete comment.
20423
20424 2015-02-17 James Greenhalgh <james.greenhalgh@arm.com>
20425
20426 * haifa-sched.c (recompute_todo_spec): Treat SCHED_GROUP_P
20427 as forcing a HARD_DEP between instructions, thereby
20428 disallowing rewriting to break dependencies.
20429
20430 2015-02-16 Jan Hubicka <hubicka@ucw.cz>
20431
20432 * symtab.c (symtab_node::verify_base): Verify body_removed->!definiton
20433 * lto-cgraph.c (lto_output_varpool_node): Do not keep definition of
20434 variables in boundary that have no inlitalizer encoded and are
20435 not aliases.
20436 * varasm.c (default_binds_local_p_2): External definitions do not
20437 count as definitions here.
20438
20439 2015-02-16 Jeff Law <law@redhat.com>
20440
20441 PR tree-optimization/64823
20442 * tree-vrp.c (identify_jump_threads): Handle blocks with no real
20443 statements.
20444 * tree-ssa-threadedge.c (potentially_threadable_block): Allow
20445 threading through blocks with PHIs, but no statements.
20446 (thread_through_normal_block): Distinguish between blocks where
20447 we did not process all the statements and blocks with no statements.
20448
20449 2015-02-16 Jakub Jelinek <jakub@redhat.com>
20450 James Greenhalgh <james.greenhalgh@arm.com>
20451
20452 PR ipa/64963
20453 * cgraphclones.c (cgraph_node::create_virtual_clone): Copy
20454 section if not linkonce. Fix up formatting.
20455 (cgraph_node::create_version_clone_with_body): Copy section.
20456 * trans-mem.c (ipa_tm_create_version): Likewise.
20457
20458 2015-02-16 Richard Biener <rguenther@suse.de>
20459
20460 PR tree-optimization/65077
20461 * tree-ssa-structalias.c (get_constraint_for_1): Handle
20462 IMAGPART_EXPR, REALPART_EXPR and BIT_FIELD_REF.
20463 (find_func_aliases): Allow float values to carry pointers again.
20464
20465 2015-02-16 James Greenhalgh <james.greenhalgh@arm.com>
20466
20467 * doc/install.texi (Specific): Reorder targets list to put
20468 aarch64 in alphabetical order. Add a link to aarch64*-*-*
20469 from the top menu.
20470
20471 2015-02-16 Michael Haubenwallner <michael.haubenwallner@ssi-schaefer.com>
20472 David Edelsohn <dje.gcc@gmail.com>
20473
20474 PR target/65058
20475 * config/rs6000/rs6000.c (rs6000_output_symbol_ref): Append storage
20476 mapping class to external variable or function reference.
20477 * config/rs6000/xcoff.h (ASM_OUTPUT_EXTERNAL): Do not append storage
20478 mapping class.
20479
20480 2015-02-16 David Eelsohn <dje.gcc@gmail.com>
20481
20482 PR target/53348
20483 * config/rs6000/rs6000.c (rs6000_declare_alias): Only use
20484 ASM_WEAKEN_DECL if defined.
20485
20486 2015-02-16 Richard Biener <rguenther@suse.de>
20487
20488 PR lto/65015
20489 * varasm.c (default_file_start): For LTO produced units
20490 emit <artificial> as file directive.
20491
20492 2015-02-16 Richard Biener <rguenther@suse.de>
20493
20494 PR tree-optimization/63593
20495 * tree-predcom.c (execute_pred_commoning_chain): Delay removing
20496 stmts and releasing SSA names until...
20497 (execute_pred_commoning): ... after processing all chains.
20498
20499 2015-02-16 Jan Hubicka <hubicka@ucw.cz>
20500
20501 PR ipa/65059
20502 * ipa-comdats.c (ipa_comdats): Do not categorize thunks to
20503 external functions.
20504
20505 2015-02-15 Sandra Loosemore <sandra@codesourcery.com>
20506
20507 * doc/bugreport.texi: Adjust section titles throughout the file
20508 to use "Title Case".
20509 * doc/extend.texi: Likewise.
20510 * doc/gcov.texi: Likewise.
20511 * doc/implement-c.texi: Likewise.
20512 * doc/implement-cxx.texi: Likewise.
20513 * doc/invoke.texi: Likewise.
20514 * doc/objc.texi: Likewise.
20515 * doc/standards.texi: Likewise.
20516 * doc/trouble.texi: Likewise.
20517
20518 2015-02-15 Jan Hubicka <hubicka@ucw.cz>
20519
20520 * cgraph.h (symtab_node::has_aliases_p): Simplify.
20521 (symtab_node::call_for_symbol_and_aliases): Use has_aliases_p
20522 * tree.c (lookup_binfo_at_offset): Make static.
20523 (get_binfo_at_offset): Do not shadow offset; add explanatory
20524 comment.
20525
20526 2015-02-15 John David Anglin <danglin@gcc.gnu.org>
20527
20528 * config/pa/pa.c (pa_secondary_reload): Request a secondary reload
20529 for all floading point loads and stores except those using a register
20530 index address.
20531 * config/pa/pa.md: Add new patterns to load a lo_sum DLT operand
20532 to a register.
20533
20534 2015-02-14 Jan Hubicka <hubicka@ucw.cz>
20535
20536 * ipa-inline-analysis.c (growth_data): Add uninlinable field.
20537 (do_estimate_growth_1): Record if any uninlinable edge was seen.
20538 (estimate_growth): Handle uninlinable edges correctly.
20539 (check_callers): New.
20540 (growth_likely_positive): Handle aliases correctly.
20541
20542 2015-02-14 Jan Hubicka <hubicka@ucw.cz>
20543
20544 * ipa-chkp.c: Use iterate_direct_aliases.
20545 * symtab.c (resolution_used_from_other_file_p): Move inline.
20546 (symtab_node::create_reference): Fix formating.
20547 (symtab_node::has_aliases_p): Move inline; use iterate_direct_aliases.
20548 (symtab_node::iterate_reference): Move inline.
20549 (symtab_node::iterate_referring): Move inline.
20550 (symtab_node::iterate_direct_aliases): Move inline.
20551 (symtab_node::used_from_object_file_p_worker): Inline into ...
20552 (symtab_node::used_from_object_file_p): ... this one; move inline.
20553 (symtab_node::call_for_symbol_and_aliases): Move inline;
20554 use iterate_direct_aliases.
20555 (symtab_node::call_for_symbol_and_aliases_1): New method.
20556 (cgraph_node::call_for_symbol_and_aliases): Move inline;
20557 use iterate_direct_aliases.
20558 (cgraph_node::call_for_symbol_and_aliases_1): New method.
20559 (varpool_node::call_for_node_and_aliases): Rename to ...
20560 (varpool_node::call_for_symbol_and_aliases): ... this one; Move inline;
20561 use iterate_direct_aliases.
20562 (varpool_node::call_for_symbol_and_aliases_1): New method.
20563 * ipa.c (ipa_single_use): Use iterate_direct_aliases.
20564 (ipa_discover_readonly_nonaddressable_var): Update.
20565 * ipa-devirt.c: Fix formating.
20566 * cgraph.c (cgraph_node::can_remove_if_no_direct_calls_and_refs_p):
20567 Move inline.
20568 (cgraph_node::call_for_symbol_and_aliases): Move inline.
20569 (cgraph_node::call_for_symbol_and_aliases_1): New function..
20570 * cgraph.h (used_from_object_file_p_worker): Remove.
20571 (resolution_used_from_other_file_p): Move inline.
20572 (symtab_node::has_aliases_p): Move inline; use iterate_direct_aliases.
20573 (symtab_node::iterate_reference): Move inline.
20574 (symtab_node::iterate_referring): Move inline.
20575 (symtab_node::iterate_direct_aliases): Move inline.
20576 (symtab_node::used_from_object_file_p_worker): Inline into ...
20577 (symtab_node::used_from_object_file_p): Move inline.
20578 * tree-emutls.c (ipa_lower_emutls): Update.
20579 * varpool.c (varpool_node::call_for_symbol_and_aliases_1): New method.
20580 (varpool_node::call_for_node_and_aliases): Remove.
20581
20582 2015-02-14 Jakub Jelinek <jakub@redhat.com>
20583
20584 PR tree-optimization/62209
20585 * tree-ssa-reassoc.c (update_range_test): If stmt is a PHI and
20586 op == range->exp, insert seq and gimplified code after labels
20587 instead of after the phi.
20588
20589 2015-02-13 Jeff Law <law@redhat.com>
20590
20591 PR bootstrap/65060
20592 Revert my change for tree-optimization/64823.
20593
20594 2015-02-13 Jakub Jelinek <jakub@redhat.com>
20595
20596 PR tree-optimization/65053
20597 * tree-ssa-phiopt.c (value_replacement): When moving assign before
20598 cond, either reset VR on lhs or set it to phi result VR.
20599
20600 2015-02-13 Jeff Law <law@redhat.com>
20601
20602 PR tree-optimization/64823
20603 * tree-vrp.c (identify_jump_threads): Handle blocks with no statements.
20604 * tree-ssa-threadedge.c (potentially_threadable_block): Allow
20605 threading through blocks with PHIs, but no statements.
20606 (thread_through_normal_block): Distinguish between blocks where
20607 we did not process all the statements and blocks with no statements.
20608
20609 PR rtl-optimization/47477
20610 * match.pd (convert (plus/minus (convert @0) (convert @1): New
20611 simplifier to narrow arithmetic.
20612
20613 2015-02-13 Jan Hubicka <hubicka@ucw.cz>
20614
20615 PR ipa/65028
20616 * ipa-prop.c (update_indirect_edges_after_inlining): Do not drop
20617 polymorphic call info when type is not known to be preserved.
20618
20619 2015-02-13 Maritn Jambor <mjambor@suse.cz>
20620
20621 PR ipa/65028
20622 * ipa-inline-transform.c (mark_all_inlined_calls_cdtor): New function.
20623 (inline_call): Use it.
20624
20625 2015-02-13 Thomas Schwinge <thomas@codesourcery.com>
20626
20627 * config/nvptx/offload.h (ACCEL_COMPILER_acc_device): Define to
20628 GOMP_DEVICE_NVIDIA_PTX.
20629
20630 2015-02-13 Jakub Jelinek <jakub@redhat.com>
20631
20632 PR ipa/65034
20633 * stmt.c (emit_case_nodes): Use void_type_node instead of
20634 NULL_TREE as LABEL_DECL type.
20635
20636 2015-02-13 John David Anglin <danglin@gcc.gnu.org>
20637
20638 * config/pa/constraints.md: Change "Q" and "T" constraints to memory
20639 constraints.
20640 * config/pa/pa.c (pa_cannot_force_const_mem): Don't allow constant
20641 symbolic references to data to be forced to constant memory on the
20642 SOM target.
20643
20644 2015-02-13 Ilya Enkovich <ilya.enkovich@intel.com>
20645
20646 PR tree-optimization/65002
20647 * tree-cfg.c (pass_data_fixup_cfg): Don't update
20648 SSA on start.
20649 * tree-sra.c (some_callers_have_no_vuse_p): New.
20650 (ipa_early_sra): Reject functions whose callers
20651 assume function is read only.
20652
20653 2015-02-13 Richard Biener <rguenther@suse.de>
20654
20655 PR lto/65015
20656 * dwarf2out.c (dwarf2out_finish): Use <artificial> as DW_AT_name
20657 for LTO produced CUs.
20658
20659 2015-02-13 Bin Cheng <bin.cheng@arm.com>
20660
20661 PR tree-optimization/64705
20662 * tree-ssa-loop-niter.h (expand_simple_operations): New parameter.
20663 * tree-ssa-loop-niter.c (expand_simple_operations): New parameter.
20664 * tree-ssa-loop-ivopts.c (extract_single_var_from_expr): New.
20665 (find_bivs, find_givs_in_stmt_scev): Pass new argument to
20666 expand_simple_operations.
20667
20668 2015-02-13 H.J. Lu <hongjiu.lu@intel.com>
20669 Richard Henderson <rth@redhat.com>
20670
20671 PR rtl/32219
20672 * cgraphunit.c (cgraph_node::finalize_function): Set definition
20673 before notice_global_symbol.
20674 (varpool_node::finalize_decl): Likewise.
20675 * varasm.c (default_binds_local_p_2): Rename from
20676 default_binds_local_p_1, add weak_dominate argument. Use direct
20677 returns instead of assigning to local variable. Unify varpool and
20678 cgraph paths via symtab_node. Reject undef weak variables before
20679 testing visibility. Reorder tests for simplicity.
20680 (default_binds_local_p): Use default_binds_local_p_2.
20681 (default_binds_local_p_1): Likewise.
20682 (decl_binds_to_current_def_p): Unify varpool and cgraph paths
20683 via symtab_node.
20684 (default_elf_asm_output_external): Emit visibility when specified.
20685
20686 2015-02-13 Alan Modra <amodra@gmail.com>
20687
20688 * config/rs6000/rs6000.c (rs6000_emit_epilogue): Fix typo in
20689 code setting up r11 for out-of-line fp restore.
20690
20691 2015-02-13 Eric Botcazou <ebotcazou@adacore.com>
20692
20693 * config/visium/visium.opt (msv-mode): Add RejectNegative and Report.
20694 (muser-mode): Likewise.
20695
20696 2015-02-13 Alan Modra <amodra@gmail.com>
20697
20698 * config/rs6000/rs6000.c (rs6000_emit_epilogue): Use addsi3_carry
20699 or adddi3_carry when restoring frame_reg_rtx from r0 after restvr.
20700
20701 2015-02-12 David Howells <dhowells@redhat.com>
20702
20703 * tree-sra.c (dump_dereferences_table): Avoid -Wformat-security
20704 warning.
20705 * tree-ssa-uninit.c (dump_predicates): Likewise.
20706 * opts.c (print_filtered_help): Likewise.
20707
20708 2015-02-12 Jakub Jelinek <jakub@redhat.com>
20709
20710 * dwarf2out.c (output_die): Use "%s", name instead of name to
20711 avoid -Wformat-security warning.
20712
20713 * dwarf2asm.c (dw2_asm_output_vms_delta): Only define
20714 if ASM_OUTPUT_DWARF_VMS_DELTA is defined.
20715 * dwarf2out.c (output_die): Use dw2_asm_output_vms_delta
20716 only if ASM_OUTPUT_DWARF_VMS_DELTA is defined.
20717
20718 2015-02-12 Jason Merrill <jason@redhat.com>
20719
20720 * common.opt (-flifetime-dse): New.
20721
20722 2015-02-12 Jakub Jelinek <jakub@redhat.com>
20723
20724 PR sanitizer/65019
20725 * ubsan.c (ubsan_expand_objsize_ifn): Always return true.
20726
20727 PR tree-optimization/65014
20728 * fold-const.c (fold_binary_loc): When creating {L,R}ROTATE_EXPR,
20729 use original second operand of arg0 or arg1 instead of
20730 that adjusted by STRIP_NOPS.
20731
20732 2015-02-11 Jeff Law <law@redhat.com>
20733
20734 PR target/63347
20735 * haifa-sched.c (prune_ready_list): If we have a SCHED_GROUP_P insn
20736 that needs to be queued, just queue it for a single cycle.
20737
20738 2015-02-11 Jan Hubicka <hubicka@ucw.cz>
20739
20740 * ipa.c (symbol_table::remove_unreachable_nodes): Avoid releasing
20741 bodies of thunks; comment on why.
20742 * symtab.c (symtab_node::get_partitioning_class): Aliases of extern
20743 symbols are extern.
20744
20745 2015-02-11 Richard Henderson <rth@redhat.com>
20746
20747 PR sanitize/65000
20748 * tree-eh.c (mark_reachable_handlers): Mark source and destination
20749 regions of __builtin_eh_copy_values.
20750
20751 2015-02-11 Jakub Jelinek <jakub@redhat.com>
20752
20753 PR middle-end/65003
20754 * varasm.c (place_block_symbol): Assert that DECL_RTL of the
20755 ultimate alias is MEM with SYMBOL_REF satisfying
20756 SYMBOL_REF_HAS_BLOCK_INFO_P as its operand. Don't pass the MEM
20757 to place_block_symbol, but instead pass the SYMBOL_REF operand of it.
20758
20759 2015-02-11 Thomas Schwinge <thomas@codesourcery.com>
20760
20761 * config/nvptx/mkoffload.c: Include "diagnostic.h" instead of
20762 "diagnostic-core.h".
20763 (main): Initialize progname, and call diagnostic_initialize.
20764
20765 * config/nvptx/mkoffload.c (process): Refer to __OFFLOAD_TABLE__
20766 instead of __OPENMP_TARGET__.
20767
20768 * config/nvptx/mkoffload.c: Include "gomp-constants.h".
20769 (process): Use its GOMP_DEVICE_NVIDIA_PTX instead of (wrongly)
20770 hard-coding PTX_ID.
20771
20772 2015-02-11 H.J. Lu <hongjiu.lu@intel.com>
20773
20774 * doc/sourcebuild.texi (pie_enabled): Document.
20775
20776 2015-02-11 Martin Liska <mliska@suse.cz>
20777
20778 PR ipa/64813
20779 * cgraphunit.c (cgraph_node::expand_thunk): Do not create
20780 a return value for call to a function that is noreturn.
20781
20782 2015-02-11 Richard Biener <rguenther@suse.de>
20783
20784 PR lto/65015
20785 * dwarf2out.c (gen_producer_string): Drop -fltrans-output-list
20786 and -fresolution.
20787
20788 2015-02-11 Andrew Pinski <apinski@cavium.com>
20789
20790 PR target/64893
20791 * config/aarch64/aarch64-builtins.c (aarch64_init_simd_builtins):
20792 Change the first argument type to size_type_node and add another
20793 size_type_node.
20794 (aarch64_simd_expand_builtin): Handle the new argument to
20795 AARCH64_SIMD_BUILTIN_LANE_CHECK and don't ICE but rather
20796 print an out when the first two arguments are not
20797 nonzero integer constants.
20798 * config/aarch64/arm_neon.h (__AARCH64_LANE_CHECK):
20799 Pass the sizeof directly to __builtin_aarch64_im_lane_boundsi.
20800
20801 2015-02-11 Jakub Jelinek <jakub@redhat.com>
20802
20803 PR target/61925
20804 * config/i386/i386.c (ix86_reset_to_default_globals): Removed.
20805 (ix86_reset_previous_fndecl): Restore it here, unconditionally.
20806 (ix86_set_current_function): Rewritten.
20807 (ix86_add_new_builtins): Temporarily clear current_target_pragma
20808 when creating builtin fndecls.
20809
20810 2015-02-10 Jan Hubicka <hubicka@ucw.cz>
20811
20812 PR ipa/65005
20813 * ipa-visibility.c (cgraph_node::non_local_p): Turn into static
20814 function.
20815 * symtab.c (symtab_node::verify_base): Remove check that non-definitions
20816 have no comdat group.
20817 * lto-cgraph.c (lto_output_node): Always output thunk and alias info.
20818 (lto_output_varpool_node): Always output alias info.
20819 (output_refs): Output refs of boundary aliases, too.
20820 (compute_ltrans_boundary): Add alias and thunk target into boundaries.
20821 (output_symtab): Output call eges in thunks in boundary.
20822 (get_alias_symbol): Remove.
20823 (input_node, input_varpool_node): Do not special case weakrefs.
20824 * ipa.c (symbol_table::remove_unreachable_nodes): Do not remove
20825 alias and thunks targets in the boundary; do not take removed symbols
20826 from their comdat groups.
20827 * cgraph.c (cgraph_node::local_info): Look through aliases and thunks.
20828 (cgraph_node::global_info): Remove.
20829 (cgraph_node::rtl_info): Look through aliases and thunks.
20830 * cgrpah.h (global_info): Remove.
20831 (non_local_p): Remove.
20832
20833 2015-02-10 David Wohlferd <dw@LimeGreenSocks.com>
20834 Sandra Loosemore <sandra@codesourcery.com>
20835
20836 * doc/invoke.texi (x86 Options [-masm=dialect]): Add cross-references
20837 to inline asm. List dialects in proper order.
20838
20839 2015-02-10 David Wohlferd <dw@LimeGreenSocks.com>
20840 Sandra Loosemore <sandra@codesourcery.com>
20841
20842 * doc/extend.texi (Loop-Specific Pragmas): Fix grammar error.
20843
20844 2015-02-10 David Wohlferd <dw@LimeGreenSocks.com>
20845
20846 * doc/extend.texi (Symbol-Renaming Pragmas): Restore (slightly
20847 modified) reference to Solaris.
20848
20849 2015-02-10 Sandra Loosemore <sandra@codesourcery.com>
20850
20851 * doc/extend.texi (Extended Asm): Fix typos.
20852
20853 2015-02-10 Jakub Jelinek <jakub@redhat.com>
20854
20855 PR sanitizer/65004
20856 * ubsan.c (ubsan_expand_vptr_ifn): Always return true.
20857
20858 2015-02-10 Oleg Endo <olegendo@gcc.gnu.org>
20859
20860 PR target/64661
20861 * config/sh/sh-protos.h (TARGET_ATOMIC_ANY, TARGET_ATOMIC_STRICT,
20862 TARGET_ATOMIC_SOFT_GUSA, TARGET_ATOMIC_HARD_LLCS,
20863 TARGET_ATOMIC_SOFT_TCB, TARGET_ATOMIC_SOFT_IMASK): Add parentheses.
20864 * config/sh/constraints.md (Ara, Add): New constraints.
20865 * config/sh/sync.md (atomic_mem_operand_0, atomic_mem_operand_1): New
20866 predicates.
20867 (atomic_compare_and_swap<mode>, atomic_exchange<mode>): Use
20868 atomic_mem_operand_0. Don't use force_reg on the memory address.
20869 (atomic_compare_and_swapsi_hard): Use atomic_mem_operand_0 predicate and
20870 Sra constraint. Convert to insn_and_split. Add workaround for
20871 PR 64974.
20872 (atomic_compare_and_swap<mode>_hard): Copy to
20873 atomic_compare_and_swap<mode>_hard_1. Convert to insn_and_split.
20874 Use atomic_mem_operand_0 predicate.
20875 (atomic_compare_and_swap<mode>_soft_gusa,
20876 atomic_exchange<mode>_soft_gusa): Use atomic_mem_operand_0 predicate and
20877 AraAdd constraints.
20878 (atomic_compare_and_swap<mode>_soft_tcb,
20879 atomic_compare_and_swap<mode>_soft_imask,
20880 atomic_exchange<mode>_soft_tcb, atomic_exchange<mode>_soft_imask): Use
20881 atomic_mem_operand_0 predicate and SraSdd constraints.
20882 (atomic_exchangesi_hard) Use atomic_mem_operand_0 predicate and Sra
20883 constraint.
20884 (atomic_exchange<mode>_hard): Copy to atomic_exchange<mode>_hard_1.
20885 Convert to insn_and_split. Use atomic_mem_operand_0 predicate.
20886 (atomic_fetch_<fetchop_name><mode>, atomic_fetch_nand<mode>,
20887 atomic_<fetchop_name>_fetch<mode>): Use atomic_mem_operand_1. Don't use
20888 force_reg on the memory address.
20889 (atomic_fetch_<fetchop_name>si_hard, atomic_fetch_notsi_hard,
20890 atomic_fetch_nandsi_hard, atomic_<fetchop_name>_fetchsi_hard,
20891 atomic_not_fetchsi_hard, atomic_nand_fetchsi_hard): Use
20892 atomic_mem_operand_1 predicate and Sra constraint.
20893 (atomic_fetch_<fetchop_name><mode>_hard): Copy to
20894 atomic_fetch_<fetchop_name><mode>_hard_1. Convert to insn_and_split.
20895 Use atomic_mem_operand_1 predicate.
20896 (atomic_<fetchop_name><mode>_hard): Copy to
20897 atomic_<fetchop_name><mode>_hard_1. Convert to insn_and_split.
20898 Use atomic_mem_operand_1 predicate.
20899 (atomic_fetch_nand<mode>_hard): Copy to atomic_fetch_nand<mode>_hard_1.
20900 Convert to insn_and_split. Use atomic_mem_operand_1 predicate.
20901 (atomic_nand<mode>_hard): Copy to atomic_nand<mode>_hard_1. Convert to
20902 insn_and_split. Use atomic_mem_operand_1 predicate.
20903 (atomic_<fetchop_name>_fetch<mode>_hard): Copy to
20904 atomic_<fetchop_name>_fetch<mode>_hard_1. Convert to insn_and_split.
20905 Use atomic_mem_operand_1 predicate.
20906 (atomic_nand_fetch<mode>_hard): Copy to atomic_nand_fetch<mode>_hard_1.
20907 Convert to insn_and_split. Use atomic_mem_operand_1 predicate.
20908 (atomic_fetch_not<mode>_hard, atomic_not_fetch<mode>_hard): Replace mems
20909 in generated insn with original mem operand before emitting the insn.
20910 (atomic_fetch_<fetchop_name><mode>_soft_gusa,
20911 atomic_fetch_not<mode>_soft_gusa, atomic_fetch_nand<mode>_soft_gusa,
20912 atomic_<fetchop_name>_fetch<mode>_soft_gusa,
20913 atomic_not_fetch<mode>_soft_gusa, atomic_nand_fetch<mode>_soft_gusa):
20914 Use atomic_mem_operand_1 predicate and AraAdd constraints.
20915 (atomic_fetch_<fetchop_name><mode>_soft_tcb,
20916 atomic_<fetchop_name><mode>_soft_tcb, atomic_fetch_not<mode>_soft_tcb,
20917 atomic_not<mode>_soft_tcb, atomic_fetch_<fetchop_name><mode>_soft_imask,
20918 atomic_fetch_not<mode>_soft_imask, atomic_fetch_nand<mode>_soft_tcb,
20919 atomic_nand<mode>_soft_tcb, atomic_fetch_nand<mode>_soft_imask,
20920 atomic_<fetchop_name>_fetch<mode>_soft_tcb,
20921 atomic_not_fetch<mode>_soft_tcb,
20922 atomic_<fetchop_name>_fetch<mode>_soft_imask,
20923 atomic_not_fetch<mode>_soft_imask, atomic_nand_fetch<mode>,
20924 atomic_nand_fetch<mode>_soft_tcb, atomic_nand_fetch<mode>_soft_imask):
20925 Use atomic_mem_operand_1 predicate and SraSdd constraints.
20926
20927 2015-02-10 Uros Bizjak <ubizjak@gmail.com>
20928
20929 * config/alpha/alpha.md (reload_out<mode>_aligned): Make operands 2
20930 and 3 earlyclobber operands.
20931
20932 2015-02-10 Jan Hubicka <hubicka@ucw.cz>
20933
20934 * common.opt (fstack-reuse): Mark as optimization.
20935
20936 2015-02-10 Jan Hubicka <hubicka@ucw.cz>
20937
20938 PR ipa/64982
20939 * cgraphunit.c (cgraph_node::expand_thunk): Look for stdarg thunks.
20940
20941 2015-02-10 Trevor Saunders <tsaunders@mozilla.com>
20942
20943 PR tree-optimization/64326
20944 * cfghooks.c (make_forwarder_block): Cap frequency of created block.
20945
20946 2015-02-10 Rainer Emrich <rainer@emrich-ebersheim.de>
20947
20948 PR gcov-profile/61889
20949 * gcov-tool.c: Remove wrong #if !defined(_WIN32)
20950
20951 2015-02-10 Richard Biener <rguenther@suse.de>
20952
20953 PR tree-optimization/64995
20954 * tree-ssa-sccvn.c (set_ssa_val_to): Assert that the
20955 value we use is final.
20956 (visit_reference_op_store): Always valueize op.
20957 (visit_use): Properly valueize vuses.
20958
20959 2015-02-10 Richard Biener <rguenther@suse.de>
20960
20961 PR tree-optimization/64909
20962 * tree-vect-loop.c (vect_estimate_min_profitable_iters): Properly
20963 pass a scalar-stmt count estimate to the cost model.
20964 * tree-vect-data-refs.c (vect_peeling_hash_get_lowest_cost): Likewise.
20965
20966 2015-02-10 Alexander Monakov <amonakov@ispras.ru>
20967
20968 * doc/invoke.texi (-fvar-tracking-assignments): Clarify that VTA is
20969 enabled by default together with var-tracking.
20970
20971 2015-02-10 Nick Clifton <nickc@redhat.com>
20972
20973 * config/rl78/rl78.c: Remove DIV attribute code accidentally
20974 included in previous rl78 commit.
20975
20976 2015-02-10 Richard Biener <rguenther@suse.de>
20977
20978 * tree-streamer.h (streamer_read_tree_bitfields): Adjust.
20979 * tree-streamer-in.c (streamer_read_tree_bitfields): Do not
20980 return the bitpack.
20981
20982 2015-02-09 Trevor Saunders <tsaunders@mozilla.com>
20983
20984 PR gcov-profile/61889
20985 * config.in: regenerate.
20986 * configure.in: Likewise.
20987 * configure.ac: Check for ftw.h.
20988 * gcov-tool.c: Check for ftw.h before using nftw.
20989
20990 2015-02-09 Trevor Saunders <tsaunders@mozilla.com>
20991
20992 PR lto/64076
20993 * ipa-visibility.c (update_visibility_by_resolution_info): Only
20994 assert when not in lto mode.
20995
20996 2015-02-09 Zhouyi Zhou <yizhouzhou@ict.ac.cn>
20997
20998 * ira-color.c (setup_left_conflict_sizes_p): Simplify
20999 initialization/assignment of conflict_size.
21000
21001 2015-02-09 Jan Hubicka <hubicka@ucw.cz>
21002
21003 PR ipa/64978
21004 * ipa-cp.c (gather_caller_stats): Skip thunks.
21005 (propagate_constants_topo): Skip aliases.
21006
21007 2015-02-09 Kaz Kojima <kkojima@gcc.gnu.org>
21008
21009 PR target/64761
21010 * config/sh/sh.c (sh_option_override): Don't change
21011 -freorder-blocks-and-partition to -freorder-blocks even when
21012 unwinding is enabled.
21013 (sh_can_follow_jump): Return false if the followee jump is
21014 a crossing jump when -freorder-blocks-and-partition is specified.
21015 * config/sh/sh.md (*jump_compact_crossing): New insn.
21016
21017 2015-02-09 Joern Rennecke <joern.rennecke@embecosm.com>
21018 Kaz Kojima <kkojima@gcc.gnu.org>
21019
21020 PR target/64761
21021 * config/sh/sh-protos.h (sh_can_redirect_branch): Don't declare.
21022 * config/sh/sh.c (TARGET_CAN_FOLLOW_JUMP): Redefine.
21023 (sh_can_redirect_branch): Rename to ...
21024 (sh_can_follow_jump): ... this. Constify argument types.
21025 * config/sh/sh.h (MD_CAN_REDIRECT_BRANCH): Don't define.
21026 * doc/tm.texi.in (MD_CAN_REDIRECT_BRANCH): Remove documentation.
21027 * reorg.c (steal_delay_list_from_target): Use targetm.can_follow_jump.
21028 * doc/tm.texi: Regenerate.
21029
21030 2015-02-09 Jakub Jelinek <jakub@redhat.com>
21031
21032 PR sanitizer/64981
21033 * builtins.c (expand_builtin): Call targetm.expand_builtin
21034 for BUILT_IN_MD builtins regardless of asan_intercepted_p.
21035
21036 2015-02-08 Jan Hubicka <hubicka@ucw.cz>
21037
21038 PR ipa/61548
21039 * tree-emutls.c (ipa_lower_emutls): Avoid duplicates in TLS_VARS.
21040
21041 2015-02-08 Jan Hubicka <hubicka@ucw.cz>
21042
21043 PR ipa/63566
21044 * ipa-icf.c (set_local): New function.
21045 (sem_function::merge): Use it.
21046
21047 2015-02-08 Jan Hubicka <hubicka@ucw.cz>
21048
21049 * ipa-devirt.c (odr_types_equivalent_p): Fix formating.
21050 (add_type_duplicate): Fix comparison of BINFOs.
21051
21052 2015-02-08 Jan Hubicka <hubicka@ucw.cz>
21053
21054 * ipa-polymorphic-call.c (ipa_polymorphic_call_context): Avoid ICE
21055 on getting VOID pointer.
21056
21057 2015-02-09 Jakub Jelinek <jakub@redhat.com>
21058
21059 PR target/64979
21060 * tree-stdarg.c (pass_stdarg::execute): Scan phi node args for
21061 va_list escapes.
21062
21063 2015-02-09 Richard Biener <rguenther@suse.de>
21064
21065 * genmatch.c (replace_id): Copy expr_type.
21066
21067 2015-02-09 Richard Biener <rguenther@suse.de>
21068
21069 * tree-streamer.h (streamer_pack_tree_bitfields): Remove.
21070 (streamer_write_tree_bitfields): Declare.
21071 * tree-streamer-in.c (unpack_ts_base_value_fields): Inline,
21072 properly unpack padding.
21073 (unpack_value_fields): Inline ...
21074 (streamer_read_tree_bitfields): ... here.
21075 * tree-streamer-out.c (pack_ts_base_value_fields): Inline
21076 and properly add padding bits.
21077 (streamer_pack_tree_bitfields): Fold into ...
21078 (streamer_write_tree_bitfields): ... this new function,
21079 exposing the bitpack object.
21080 * lto-streamer-out.c (lto_write_tree_1): Call
21081 streamer_write_tree_bitfields.
21082
21083 2015-02-09 Richard Biener <rguenther@suse.de>
21084
21085 PR tree-optimization/54000
21086 * tree-ssa-looo-ivopts.c: Include tree-vectorizer.h.
21087 (struct ivopts_data): Add loop_loc member.
21088 (tree_ssa_iv_optimize_loop): Dump loop location.
21089 (create_new_ivs): Likewise, also dump number of IVs generated.
21090
21091 2015-02-09 Martin Liska <mliska@suse.cz>
21092
21093 * ipa-icf.c (sem_item_optimizer::register_hooks): Register hooks
21094 just if not yet registered.
21095 (ipa_icf_generate_summary): Register callgraph hooks.
21096
21097 2015-02-08 Andrew Pinski <apinski@cavium.com>
21098
21099 * config/aarch64/aarch64.c (gty_dummy): Delete.
21100
21101 2015-02-08 Jan Hubicka <hubicka@ucw.cz>
21102
21103 PR ipa/63566
21104 * ipa-visibility.c (cgraph_node::non_local_p): Accept aliases.
21105 (cgraph_node::local_p): Remove thunk related FIXME.
21106
21107 2015-02-08 Jan Hubicka <hubicka@ucw.cz>
21108
21109 PR ipa/63566
21110 * i386.c (ix86_function_regparm): Look through aliases to see if callee
21111 is local and optimized.
21112 (ix86_function_sseregparm): Likewise; also use target's SSE math
21113 settings; error out instead of silently generating wrong code
21114 on mismatches.
21115 (init_cumulative_args): Look through aliases.
21116
21117 2015-02-08 Jan Hubicka <hubicka@ucw.cz>
21118
21119 PR ipa/63566
21120 * ipa-split.c (execute_split_functions): Split if function has aliases.
21121
21122 2015-02-08 Jan Hubicka <hubicka@ucw.cz>
21123
21124 PR ipa/63566
21125 * cgraphunit.c (cgraph_node::analyze): Be sure target of thunk is
21126 aliases before trying to expand it.
21127 (cgraph_node::expand_thunk): Fix formating.
21128
21129 2015-02-07 Sandra Loosemore <sandra@codesourcery.com>
21130
21131 * doc/extend.texi (Function Attributes [naked]): Copy-edit.
21132 (Using Assembly Language with C): Expand introduction.
21133 (Basic Asm): Copy-edit. Add more information about uses of
21134 basic asm.
21135 (Extended Asm): Copy-edit. Document new escape syntax and
21136 %l[label] syntax.
21137 (Global Reg Vars): Copy-edit.
21138 (Local Reg Vars): Likewise.
21139
21140 2015-02-06 David Edelsohn <dje.gcc@gmail.com>
21141
21142 PR debug/2714
21143 PR bootstrap/64256
21144 * xcoffout.h (DBX_CONTIN_LENGTH): Define as 16384.
21145 (DBX_CONTIN_CHAR): Define.
21146
21147 2015-02-06 Sebastian Pop <s.pop@samsung.com>
21148 Brian Rzycki <b.rzycki@samsung.com>
21149
21150 PR tree-optimization/64878
21151 * tree-ssa-threadedge.c: Include tree-ssa-loop.h.
21152 (fsm_find_control_statement_thread_paths): Add parameter seen_loop_phi.
21153 Stop recursion at loop phi nodes after having visited a loop phi node.
21154
21155 2015-02-06 Jakub Jelinek <jakub@redhat.com>
21156
21157 * toplev.c (process_options): Change flag_ipa_ra before creating
21158 optimization_{default,current}_node.
21159
21160 PR ipa/64896
21161 * cgraphunit.c (cgraph_node::expand_thunk): If
21162 restype is not is_gimple_reg_type nor the thunk_fndecl
21163 returns aggregate_value_p, set restmp to a temporary variable
21164 instead of resdecl.
21165
21166 2015-02-06 Vladimir Makarov <vmakarov@redhat.com>
21167
21168 * lra.c (lra_emit_add): Fix a typo in using disp instead of base.
21169
21170 2015-02-06 Michael Meissner <meissner@linux.vnet.ibm.com>
21171
21172 PR target/64205
21173 * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Do not
21174 add a general secondary reload handler for SDmode, unless we have
21175 both read/write support for SDmode.
21176
21177 2015-02-06 Jakub Jelinek <jakub@redhat.com>
21178
21179 PR middle-end/64937
21180 * dwarf2out.c (set_block_abstract_flags, set_decl_abstract_flags):
21181 Replace setting argument with abstract_vec, always set BLOCK_ABSTRACT
21182 or DECL_ABSTRACT_P flags to 1 rather than to setting, and if it wasn't
21183 1 before, push it to abstract_vec.
21184 (dwarf2out_abstract_function): Adjust caller. Don't call
21185 set_decl_abstract_flags second time, instead clear BLOCK_ABSTRACT or
21186 DECL_ABSTRACT_P flags for all abstract_vec elts.
21187
21188 2015-02-06 Renlin Li <renlin.li@arm.com>
21189
21190 * tree-ssa-forwprop.c (execute): Keep location info while rewrite
21191 complex gimple.
21192 * tree-ssa.c (execute_update_addresses_taken): Likewise.
21193
21194 2015-02-06 Jeff Law <law@redhat.com>
21195
21196 PR target/64889
21197 * config/h8300/h8300.c (push): New argument "in_prologue".
21198 Pass "in_prologue" along to "F".
21199 (h8300_push_pop): Corresponding changes.
21200 (h8300_expand_prologue): Likewise.
21201 (h8300_swap_into_er6): Likewise. Do not set RTX_FRAME_RELATED_P.
21202
21203 2015-02-06 Jakub Jelinek <jakub@redhat.com>
21204
21205 PR rtl-optimization/64957
21206 PR debug/64817
21207 * simplify-rtx.c (simplify_binary_operation_1): Use ~cval for
21208 IOR rather than for AND.
21209
21210 2015-02-06 Eric Botcazou <ebotcazou@adacore.com>
21211
21212 PR target/62631
21213 * tree-ssa-loop-ivopts.c (get_shiftadd_cost): Use the mininum of costs
21214 of shift-add and (add + shift) operations. Rename local variable.
21215
21216 2015-02-05 Jeff Law <law@redhat.com>
21217
21218 PR target/17306
21219 * config/h8300/constraints.md (U): Correctly dectect
21220 "eightbit_data" memory addresses.
21221 * config/h8300/h8300.c (eightbit_constant_address_p): Also
21222 handle (const (plus (symbol_ref (x)))) where x is declared
21223 as an 8-bit data memory address.
21224 * config/h8300/h8300.md (call, call_value): Correctly detect
21225 "funcvec" functions.
21226
21227 PR target/43264
21228 * config/h8300/h8300.c (get_shift_alg): Fix ASHIFTRT by
21229 24 to 28 bits for the H8/300.
21230
21231 2015-02-06 Alan Modra <amodra@gmail.com>
21232
21233 PR target/64876
21234 * config/rs6000/rs6000.c (chain_already_loaded): New function.
21235 (rs6000_call_aix): Use it.
21236
21237 2015-02-05 Jan Hubicka <hubicka@ucw.cz>
21238
21239 * ipa-cp.c (ipa_value_from_jfunc, ipa_context_from_jfunc): Add bounds
21240 check.
21241
21242 2015-02-05 Joern Rennecke <joern.rennecke@embecosm.com>
21243
21244 * config/h8300/constraints.md ("U" constraint): Use strict
21245 variant of REG_OK_FOR_BASE_P after reload has started.
21246
21247 2015-02-04 Mantas Mikaitis <mantas.mikaitis@arm.com>
21248
21249 * config/arm/arm.h (TARGET_NEON_FP): Removed conditional definition,
21250 define to zero if !TARGET_NEON.
21251 (TARGET_ARM_FP): Added !TARGET_SOFT_FLOAT into conditional definition.
21252
21253 2015-02-04 Jan Hubicka <hubicka@ucw.cz>
21254 Trevor Saunders <tsaunders@mozilla.com>
21255
21256 PR ipa/61548
21257 * tree-emultls.c (new_emutls_decl): Resolve alias after creating it.
21258
21259 2015-02-04 Jan Hubicka <hubicka@ucw.cz>
21260
21261 PR ipa/61548
21262 * ipa.c (symbol_table::remove_unreachable_nodes): Fix ordering issue
21263 when removing varpool nodes.
21264
21265 2015-02-04 Jan Hubicka <hubicka@ucw.cz>
21266
21267 PR ipa/61548
21268 * varpool.c (varpool_node::remove): Fix order of variables.
21269
21270 2015-02-04 Jan Hubicka <hubicka@ucw.cz>
21271
21272 PR ipa/64686
21273 * ipa-inline.c (inline_small_functions): Fix ordering issue between
21274 speculation resolution and key updates.
21275
21276 2015-02-04 Jan Hubicka <hubicka@ucw.cz>
21277
21278 * ipa-prop.c (update_indirect_edges_after_inlining): By more careful
21279 about not letting any speculative edges unupdated.
21280
21281 2015-02-04 Jan Hubicka <hubicka@ucw.cz>
21282
21283 PR gcov/64123
21284 * gcov-io.c (gcov_var): Export.
21285
21286 2015-02-04 Jan Hubicka <hubicka@ucw.cz>
21287
21288 PR middle-end/64922
21289 * ipa-prop.c (update_indirect_edges_after_inlining): Correctly update
21290 edges that become speculative.
21291
21292 2015-02-04 Jakub Jelinek <jakub@redhat.com>
21293
21294 * dwarf2out.c (is_fortran): Also return true for DW_LANG_Fortran03
21295 or DW_LANG_Fortran08.
21296 (lower_bound_default): Return 1 for DW_LANG_Fortran03 or
21297 DW_LANG_Fortran08.
21298 (gen_compile_unit_die): Handle "GNU Fortran2003" and
21299 "GNU Fortran2008" language strings.
21300 * dbxout.c (get_lang_number): Use lang_GNU_Fortran.
21301 * langhooks.h (lang_GNU_Fortran): New prototype.
21302 * langhooks.c (lang_GNU_Fortran): New function.
21303 * config/rs6000/rs6000.c (rs6000_output_function_epilogue): Use
21304 lang_GNU_Fortran.
21305
21306 2015-02-04 Eric Botcazou <ebotcazou@adacore.com>
21307
21308 * config/sparc/sparc.c (RTX_OK_FOR_OFFSET_P): Fix off-by-one error.
21309 (RTX_OK_FOR_OLO10_P): Likewise.
21310
21311 2015-02-04 Eric Botcazou <ebotcazou@adacore.com>
21312
21313 * tree-ssa-loop-ivopts.c (get_address_cost): Use right mode for offset.
21314
21315 2015-02-04 Jan Hubicka <hubicka@ucw.cz>
21316
21317 PR middle-end/64922
21318 * gimple.c: Include gimple-ssa.h.
21319 (maybe_remove_unused_call_args): New function.
21320 * gimple.h (maybe_remove_unused_call_args): Declare.
21321 * cgraph.c (cgraph_edge::redirect_call_stmt_to_callee): Use it.
21322 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children): Likewise.
21323 * gimple-fold.c (gimple_fold_call): Likewise.
21324
21325 2015-02-04 H.J. Lu <hongjiu.lu@intel.com>
21326
21327 PR rtl-optimization/64905
21328 * lra-eliminations.c (setup_can_eliminate): Clear hard frame
21329 pointer alignment if it isn't needed.
21330
21331 2015-02-04 Matthew Wahab <matthew.wahab@arm.com>
21332
21333 * config/aarch64/aarch64-cores.def: Add cortex-a72 and
21334 cortex-a72.cortex-a53.
21335 * config/aarch64/aarch64-tune.md: Regenerate.
21336 * doc/invoke.texi (AArch64 Options/-mtune): Add "cortex-a72".
21337
21338 2015-02-04 Nick Clifton <nickc@redhat.com>
21339
21340 * config/rl78/rl78.c (rl78_note_reg_set): Note the use of REGs
21341 inside a MEM.
21342
21343 2015-02-04 Jakub Jelinek <jakub@redhat.com>
21344
21345 * builtins.def (DEF_BUILTIN_CHKP): Define if not defined.
21346 (DEF_LIB_BUILTIN_CHKP, DEF_EXT_LIB_BUILTIN_CHKP): Redefine.
21347 (DEF_CHKP_BUILTIN): Define using DEF_BUILTIN_CHKP instead
21348 of DEF_BUILTIN.
21349 (BUILT_IN_MEMCPY, BUILT_IN_MEMMOVE, BUILT_IN_MEMSET, BUILT_IN_STRCAT,
21350 BUILT_IN_STRCHR, BUILT_IN_STRCPY, BUILT_IN_STRLEN): Use
21351 DEF_LIB_BUILTIN_CHKP macro instead of DEF_LIB_BUILTIN.
21352 (BUILT_IN_MEMCPY_CHK, BUILT_IN_MEMMOVE_CHK, BUILT_IN_MEMPCPY_CHK,
21353 BUILT_IN_MEMPCPY, BUILT_IN_MEMSET_CHK, BUILT_IN_STPCPY_CHK,
21354 BUILT_IN_STPCPY, BUILT_IN_STRCAT_CHK, BUILT_IN_STRCPY_CHK): Use
21355 DEF_EXT_LIB_BUILTIN_CHKP macro instead of DEF_EXT_LIB_BUILTIN.
21356 * tree-core.h (enum built_in_function): In between
21357 BEGIN_CHKP_BUILTINS and END_CHKP_BUILTINS only define enum values
21358 for builtins that use DEF_BUILTIN_CHKP macro.
21359
21360 2015-02-04 Alexandre Oliva <aoliva@redhat.com>
21361
21362 PR debug/64817
21363 * cfgexpand.c (expand_debug_expr): Compute unsignedp from
21364 operands for tcc_comparison exprs. Fix typos.
21365
21366 PR debug/64817
21367 * simplify-rtx.c (simplify_binary_operation_1): Simplify one
21368 of two XORs that have an intervening AND or IOR.
21369
21370 PR debug/64817
21371 * simplify-rtx.c (simplify_binary_operation_1): Rewrite
21372 simplification of XOR of AND to not allocate new rtx before
21373 committing to a simplification.
21374
21375 2015-02-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
21376
21377 * config/aarch64/aarch64-ldpstp.md: Use std::swap instead of
21378 manual swaps in all peepholes.
21379
21380 2015-02-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
21381
21382 * config/aarch64/aarch64.c (aarch64_evpc_ext): Use std::swap instead
21383 of manual swapping implementation.
21384 (aarch64_expand_vec_perm_const_1): Likewise.
21385
21386 2015-02-04 James Greenhalgh <james.greenhalgh@arm.com>
21387
21388 * config/aarch64/aarch64.c (NAMED_PARAM): Delete it.
21389 (generic_addrcost_table): Remove NAMED_PARAM.
21390 (cortexa57_addrcost_table): Likewise.
21391 (xgene1_addrcost_table): Likewise.
21392 (generic_regmove_table): Likewise.
21393 (cortexa53_regmove_table): Likewise.
21394 (xgene1_regmove_table): Likewise.
21395 (generic_vector_table): Likewise.
21396 (cortexa57_vector_table): Likewise.
21397 (xgene1_vector_table): Likewise.
21398 (generic_tunings): Likewise.
21399 (cortexa53_tunings): Likewise.
21400 (cortexa57_tunings): Likewise.
21401 (xgene1_tunings): Likewise.
21402
21403 2015-02-04 Matthew Wahab <matthew.wahab@arm.com>
21404
21405 * config/arm/arm-cores.def: Add cortex-a72 and
21406 cortex-a72.cortex-a53.
21407 * config/arm/bpabi.h (BE8_LINK_SPEC): Likewise.
21408 * config/arm/t-aprofile (MULTILIB_MATCHES): Likewise.
21409 * config/arm/arm-tune.md: Regenerate.
21410 * config/arm/arm-tables.opt: Add entries for "cortex-a72" and
21411 "cortex-a72.cortex-a53".
21412 * doc/invoke.texi (ARM Options/-mtune): Likewise.
21413
21414 2015-02-04 Nick Clifton <nickc@redhat.com>
21415
21416 PR target/64408
21417 * config/fr30/predicates.md (di_operand): Add SUBREG to the list
21418 of accepted codes.
21419 (nonimmediate_di_operand): Likewise.
21420
21421 * config/msp430/msp430.c (msp430_use_f5_series_hwmult): Add more
21422 prefixes of known F5 using MSP430 MCUs.
21423
21424 2015-02-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
21425
21426 * config/aarch64/aarch64-simd-builtins.def (sqrt): Use BUILTIN_VDQF_DF.
21427 * config/aarch64/arm_neon.h (vsqrt_f64): Use __builtin_aarch64_sqrtdf
21428 instead of __builtin_sqrt.
21429
21430 2015-02-04 Ilya Enkovich <ilya.enkovich@intel.com>
21431
21432 * varasm.c (do_assemble_alias): Follow transparent alias
21433 chain for target.
21434 (default_assemble_visibility): Follow transparent alias
21435 chain for decl name.
21436
21437 2015-02-04 Thomas Preud'homme <thomas.preudhomme@arm.com>
21438
21439 PR middle-end/62103
21440 * tree-ssa-sccvn.c (fully_constant_vn_reference_p): Use TYPE_PRECISION
21441 to compute size of referenced value in the constant case.
21442
21443 2015-02-03 Jakub Jelinek <jakub@redhat.com>
21444
21445 PR rtl-optimization/64756
21446 * cse.c (invalidate_dest): New function.
21447 (cse_insn): Use it. If dest != SET_DEST (sets[i].rtl) and
21448 HASH (SET_DEST (sets[i].rtl), mode) computation sets do_not_record,
21449 invalidate and do not record it.
21450
21451 2015-02-03 Oleg Endo <olegendo@gcc.gnu.org>
21452
21453 PR target/64660
21454 * config/sh/sync.md (atomic_<fetchop_name><mode>_hard,
21455 atomic_not<mode>_hard, atomic_<fetchop_name><mode>_soft_tcb,
21456 atomic_not<mode>_soft_tcb, atomic_nand<mode>_hard,
21457 atomic_nand<mode>_soft_tcb): New insns.
21458 (atomic_fetch_<fetchop_name>si_hard): Convert to insn_and_split.
21459 Split into atomic_<fetchop_name>_fetchsi_hard if operands[0] is unused.
21460 (define_insn "atomic_fetch_notsi_hard): Convert to insn_and_split.
21461 Split into atomic_not_fetchsi_hard if operands[0] is unused.
21462 (atomic_fetch_<fetchop_name><mode>_hard): Convert to insn_and_split.
21463 Split into atomic_<fetchop_name><mode>_hard if operands[0] is unused.
21464 (atomic_fetch_not<mode>_hard): Convert to insn_and_split. Split into
21465 atomic_not<mode>_hard if operands[0] is unused.
21466 (atomic_fetch_<fetchop_name><mode>_soft_gusa): Convert to
21467 insn_and_split. Split into atomic_<fetchop_name>_fetch<mode>_soft_gusa
21468 if operands[0] is unused.
21469 (atomic_fetch_not<mode>_soft_gusa): Convert to insn_and_split. Split
21470 into atomic_not_fetch<mode>_soft_gusa if operands[0] is unused.
21471 (atomic_fetch_<fetchop_name><mode>_soft_tcb): Convert to insn_and_split.
21472 Split into atomic_<fetchop_name><mode>_soft_tcb if operands[0] is
21473 unused.
21474 (atomic_fetch_not<mode>_soft_tcb): Convert to insn_and_split. Split
21475 into atomic_not<mode>_soft_tcb if operands[0] is unused.
21476 (atomic_fetch_<fetchop_name><mode>_soft_imask): Convert to
21477 insn_and_split. Split into atomic_<fetchop_name>_fetch<mode>_soft_imask
21478 if operands[0] is unused.
21479 (atomic_fetch_not<mode>_soft_imask): Convert to insn_and_split. Split
21480 into atomic_not_fetch<mode>_soft_imask is operands[0] is unused.
21481 (atomic_fetch_nandsi_hard): Convert to insn_and_split. Split into
21482 atomic_nand_fetchsi_hard if operands[0] is unused.
21483 (atomic_fetch_nand<mode>_hard): Convert to insn_and_split. Split into
21484 atomic_nand<mode>_hard if operands[0] is unused.
21485 (atomic_fetch_nand<mode>_soft_gusa): Convert to insn_and_split. Split
21486 into atomic_nand_fetch<mode>_soft_gusa if operands[0] is unused.
21487 (atomic_fetch_nand<mode>_soft_tcb): Convert to insn_and_split. Split
21488 into atomic_nand<mode>_soft_tcb if operands[0] is unused.
21489 (atomic_fetch_nand<mode>_soft_imask): Convert to insn_and_split. Split
21490 into atomic_nand_fetch<mode>_soft_imask if operands[0] is unused.
21491 (atomic_<fetchop_name>_fetch<mode>_hard): Convert to insn_and_split.
21492 Split into atomic_<fetchop_name><mode>_hard if operands[0] is unused.
21493 (atomic_not_fetch<mode>_hard): Convert to insn_and_split. Split into
21494 atomic_not<mode>_hard if operands[0] is unused.
21495 (atomic_<fetchop_name>_fetch<mode>_soft_tcb): Convert to insn_and_split.
21496 Split into atomic_<fetchop_name><mode>_soft_tcb if operands[0] is
21497 unused.
21498 (atomic_not_fetch<mode>_soft_tcb): Convert to insn_and_split. Split
21499 into atomic_not<mode>_soft_tcb if operands[0] is unused.
21500 (atomic_nand_fetch<mode>_hard): Convert to insn_and_split. Split into
21501 atomic_nand<mode>_hard if operands[0] is unused.
21502 (atomic_nand_fetch<mode>_soft_tcb): Convert to insn_and_split. Split
21503 into atomic_nand<mode>_soft_tcb if operands[0] is unused.
21504
21505 2015-02-03 David Malcolm <dmalcolm@redhat.com>
21506
21507 PR jit/64810
21508 * Makefile.in (GCC_OBJS): Add gcc-main.o.
21509 * gcc-main.c: New file, containing "main" taken from gcc.c.
21510 * gcc.c (do_self_spec): Free decoded_options.
21511 (class driver): Move declaration to gcc.h.
21512 (main): Move declaration and implementation to new file
21513 gcc-main.c.
21514 (driver_get_configure_time_options): New function.
21515 * gcc.h (class driver): Move this declaration here, from
21516 gcc.c.
21517 (driver_get_configure_time_options): New declaration.
21518
21519 2015-02-03 Jan Hubicka <hubicka@ucw.cz>
21520
21521 * ipa-inline-analysis.c (simple_edge_hints): Fix check for
21522 cross-module inlining.
21523 * cgraph.h (cgraph_node): Add flag merged.
21524 * ipa-icf.c (sem_function::merge): Maintain it.
21525
21526 2015-02-03 Richard Sandiford <richard.sandiford@arm.com>
21527
21528 * config/arm/arm.c (thumb2_reorg): Test UNARY_P and BINARY_P
21529 instead of OBJECT_P.
21530
21531 2015-02-03 Eric Botcazou <ebotcazou@adacore.com>
21532
21533 PR target/62631
21534 * config/sparc/sparc.h (TARGET_HARD_MUL): Remove TARGET_V8PLUS.
21535 (TARGET_HARD_MUL32): Rewrite based on TARGET_HARD_MUL.
21536 * config/sparc/sparc.c (sparc_rtx_costs) <MULT>: Return costs based on
21537 int_mulX for integers in 64-bit mode if TARGET_HARD_MUL is not set.
21538
21539 2015-02-03 Jakub Jelinek <jakub@redhat.com>
21540
21541 PR other/63504
21542 * combine.c (reg_n_sets_max): New variable.
21543 (can_change_dest_mode, reg_nonzero_bits_for_combine,
21544 reg_num_sign_bit_copies_for_combine, get_last_value_validate,
21545 get_last_value): Use REG_N_SETS only on pseudos < reg_n_sets_max.
21546 (try_combine): Use INC_REG_N_SETS only on pseudos < reg_n_sets_max.
21547 (rest_of_handle_combine): Initialize reg_n_sets_max.
21548
21549 2015-02-02 Jan Hubicka <hubicka@ucw.cz>
21550
21551 * ipa-inline.c (early_inliner): Skip inlining only in always_inlined;
21552 if some always_inline was inlined, apply changes before inlining
21553 heuristically.
21554
21555 2015-02-02 David Malcolm <dmalcolm@redhat.com>
21556
21557 PR jit/64810
21558 * config/arm/arm.c (arm_option_override): Set
21559 arm_selected_arch/cpu/tune to NULL on entry.
21560
21561 2015-02-02 Tejas Belagod <tejas.belagod@arm.com>
21562 Andrew Pinski <pinskia@gcc.gnu.org>
21563 Jakub Jelinek <jakub@gcc.gnu.org>
21564
21565 PR target/64231
21566 * config/aarch64/aarch64.c (aarch64_classify_symbol): Fix large
21567 integer typing for small model. Use IN_RANGE.
21568
21569 2015-02-02 Richard Biener <rguenther@suse.de>
21570
21571 * tree-ssa-ccp.c (valueize_op_1): Always allow valueizing default-defs.
21572 * tree-vrp.c (vrp_valueize_1): Likewise.
21573
21574 2015-02-02 Alan Modra <amodra@gmail.com>
21575
21576 * config/rs6000/rs6000.c (rs6000_call_aix): Use unspec rather
21577 than mem for toc_restore.
21578 * config/rs6000/rs6000.md (UNSPEC_TOCSLOT): Define.
21579 (call_indirect_aix, call_value_indirect_aix): Adjust to suit.
21580 (call_indirect_elfv2, call_value_indirect_elfv2): Likewise.
21581
21582 2015-02-01 David Edelsohn <dje.gcc@gmail.com>
21583
21584 PR target/64047
21585 * config/rs6000/rs6000.c (rs6000_set_current_function): Handle
21586 explicit default options.
21587
21588 2015-02-01 Jan Hubicka <hubicka@ucw.cz>
21589
21590 PR ipa/64872
21591 * ipa-utils.c (ipa_merge_profiles): Add release argument.
21592 * ipa-icf.c (sem_function::merge): Do not release body when merging.
21593 * ipa-utils.h (ipa_merge_profiles): Update prototype.
21594
21595 2015-02-01 Jakub Jelinek <jakub@redhat.com>
21596
21597 PR debug/64817
21598 * cfgexpand.c (deep_ter_debug_map): New variable.
21599 (avoid_deep_ter_for_debug): New function.
21600 (expand_debug_expr): If TERed SSA_NAME is in
21601 deep_ter_debug_map, use the corresponding DEBUG_EXPR_DECL
21602 instead of trying to expand SSA_NAME's def stmt.
21603 (expand_debug_locations): When expanding debug bind
21604 of a DEBUG_EXPR_DECL to corresponding SSA_NAME,
21605 temporarily remove the DEBUG_EXPR_DECL from deep_ter_debug_map's
21606 value.
21607 (pass_expand::execute): Call avoid_deep_ter_for_debug on
21608 all debug bind stmts. Delete deep_ter_debug_map after
21609 expand_debug_location if non-NULL and clear it.
21610
21611 2015-02-01 Oleg Endo <olegendo@gcc.gnu.org>
21612
21613 PR target/64851
21614 * config/sh/sync.md (atomic_fetch_notsi_hard,
21615 atomic_fetch_not<mode>_hard, atomic_fetch_not<mode>_soft_gusa,
21616 atomic_fetch_not<mode>_soft_tcb, atomic_fetch_not<mode>_soft_imask,
21617 atomic_not_fetchsi_hard, atomic_not_fetch<mode>_hard,
21618 atomic_not_fetch<mode>_soft_gusa, atomic_not_fetch<mode>_soft_tcb,
21619 atomic_not_fetch<mode>_soft_imask): New insns.
21620
21621 2015-02-01 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
21622
21623 * haifa-sched.c (INSN_RFS_DEBUG_ORIG_ORDER): New access macro.
21624 (rank_for_schedule_debug): Split from ...
21625 (rank_for_schedule): ... this.
21626 (ready_sort): Sort DEBUG_INSNs separately from normal INSNs.
21627 * sched-int.h (struct _haifa_insn_data): New field rfs_debug_orig_order.
21628
21629 2015-01-31 Sandra Loosemore <sandra@codesourcery.com>
21630
21631 * doc/md.texi (Machine Constraints): Alphabetize table by target.
21632 * doc/extend.texi (x86 Variable Attributes): Move section to
21633 correct alphabetization after renaming.
21634 (x86 Type Attributes): Likewise.
21635 (Target Builtins): Re-alphabetize menu.
21636 (x86 Built-in Functions): Move section to correct alphabetization
21637 after renaming.
21638 (x86 transactional memory intrinsics): Likewise.
21639 * doc/invoke.texi (Option Summary): Re-alphabetize x86 Options
21640 and x86 Windows Options in table and menu.
21641 (x86 Options): Move section to correct alphabetization after
21642 renaming.
21643 (x86 Windows Options): Likewise.
21644
21645 2015-01-31 Sandra Loosemore <sandra@codesourcery.com>
21646
21647 * doc/extend.texi: Use "x86", "x86-32", and "x86-64" as the
21648 preferred names of the architecture and its 32- and 64-bit
21649 variants.
21650 * doc/invoke.texi: Likewise.
21651 * doc/md.texi: Likewise.
21652
21653 2015-01-31 Uros Bizjak <ubizjak@gmail.com>
21654
21655 PR target/64882
21656 * config/i386/predicates.md (address_no_seg_operand): Reject
21657 non-CONST_INT_P operands in invalid mode.
21658
21659 2015-01-31 Uros Bizjak <ubizjak@gmail.com>
21660
21661 * config/i386/i386.md (*prefetch_prefetchw1): Remove mode of
21662 address_operand 0. Rename from *prefetch_prefetchwt1_<mode>.
21663 * config/i386/predicates.md (address_no_seg_operand): Call
21664 address_operand with VOIDmode.
21665 (vsib_address_operand): Ditto.
21666 (address_mpx_no_base_operand): Ditto.
21667 (address_mpx_no_index_operand): Ditto.
21668
21669 2015-01-30 Vladimir Makarov <vmakarov@redhat.com>
21670
21671 PR target/64688
21672 * lra-constraints.c (original_subreg_reg_mode): New.
21673 (simplify_operand_subreg): Try to simplify subreg of const. Use
21674 original_subreg_reg_mode for it.
21675 (swap_operands): Update original_subreg_reg_mode.
21676 (curr_insn_transform): Set up original_subreg_reg_mode.
21677
21678 2015-01-30 Vladimir Makarov <vmakarov@redhat.com>
21679
21680 PR target/64617
21681 * lra-constraints.c (prohibited_class_reg_set_mode_p): New
21682 function.
21683 (process_alt_operands): Use it.
21684 (curr_insn_transform): Check the optional reload pseudo class is
21685 ok for the mode.
21686
21687 2015-01-30 Joseph Myers <joseph@codesourcery.com>
21688
21689 * diagnostic.c (fatal_error (const char *, ...)): Remove function.
21690 * diagnostic-core.h (fatal_error (const char *, ...)): Remove
21691 prototype.
21692 * toplev.h (init_asm_output): Update comment on use of
21693 UNKNOWN_LOCATION with fatal_error.
21694 * cgraph.c, collect-utils.c, collect2.c, config/arc/arc.c,
21695 config/arc/arc.md, config/avr/avr.c, config/c6x/c6x.h,
21696 config/darwin.c, config/host-darwin.c, config/i386/host-cygwin.c,
21697 config/i386/intelmic-mkoffload.c, config/nios2/nios2.c,
21698 config/nvptx/mkoffload.c, config/nvptx/nvptx.h,
21699 config/rs6000/host-darwin.c, config/rs6000/rs6000.c,
21700 config/s390/s390.c, gcc.c, gcov-io.h, gcov-tool.c, ggc-common.c,
21701 ggc-page.c, graph.c, ipa-inline-analysis.c, ipa-reference.c,
21702 lto-cgraph.c, lto-section-in.c, lto-streamer-in.c, lto-streamer.c,
21703 lto-wrapper.c, objc/objc-act.c, opts.c, passes.c, plugin.c,
21704 tlink.c, toplev.c, tree-streamer-in.c, varpool.c: All callers of
21705 fatal_error changed to pass input_location as first argument.
21706
21707 2015-01-30 Martin Liska <mliska@suse.cz>
21708
21709 * tree.h: Change GCC_VERSION >= 4004 to GCC_VERSION >= 4006
21710 in #pragma GCC diagnostic guards.
21711
21712 2015-01-30 Richard Biener <rguenther@suse.de>
21713
21714 PR tree-optimization/64829
21715 * tree-vect-patterns.c (vect_handle_widen_op_by_const): Do
21716 not add a widening conversion pattern but hand off extra
21717 widenings to callers.
21718 (vect_recog_widen_mult_pattern): Handle extra widening produced
21719 by vect_handle_widen_op_by_const.
21720 (vect_recog_widen_shift_pattern): Likewise.
21721 (vect_pattern_recog_1): Remove excess vertical space in dumping.
21722 * tree-vect-stmts.c (vect_mark_stmts_to_be_vectorized): Likewise.
21723 (vect_init_vector_1): Likewise.
21724 (vect_get_vec_def_for_operand): Likewise.
21725 (vect_finish_stmt_generation): Likewise.
21726 (vectorizable_load): Likewise.
21727 (vect_analyze_stmt): Likewise.
21728 (vect_is_simple_use): Likewise.
21729
21730 2015-01-29 Jeff Law <law@redhat.com>
21731
21732 * combine.c (try_combine): Fix typo in comment.
21733
21734 2015-01-29 Segher Boessenkool <segher@kernel.crashing.org>
21735
21736 PR target/64580
21737 * config.rs6000/rs6000.c (compute_vrsave_mask): Reverse loop order.
21738 (rs6000_stack_info): Add assert.
21739 (rs6000_output_savres_externs): New function, split off from...
21740 (rs6000_output_function_prologue): ... here. Do not call it for
21741 thunks.
21742
21743 2015-01-29 Jeff Law <law@redhat.com>
21744
21745 PR target/15184
21746 * combine.c (try_combine): If I0 is a memory load and I3 a store
21747 to a related address, increase the "goodness" of doing a 4-insn
21748 combination with I0-I3.
21749 (make_field_assignment): Handle SUBREGs in the ior+and case.
21750
21751 2015-01-29 Yuri Rumyantsev <ysrumyan@gmail.com>
21752
21753 PR tree-optimization/64746
21754 * tree-if-conv.c (mask_exists): New function.
21755 (predicate_mem_writes): Save created mask with given size for further
21756 use.
21757 (stmt_is_root_of_bool_pattern): Remove argument VAR and store to it.
21758 (ifcvt_repair_bool_pattern): Collect all statements that are root
21759 of bool pattern and use iterative algorithm to remove multiple uses
21760 of predicates, display number of required iterations.
21761
21762 2015-01-29 Richard Biener <rguenther@suse.de>
21763
21764 PR tree-optimization/64853
21765 * tree-vrp.c (vrp_valueize_1): Do not return anything if the
21766 stmt will get simulated again.
21767 * tree-ssa-ccp.c (valueize_op_1): Likewise.
21768
21769 2015-01-29 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
21770
21771 * config/arm/arm.c (arm_emit_multi_reg_pop): Simplify definition of
21772 return_in_pc. Remove redundant assignments.
21773 (thumb2_emit_ldrd_pop): Simplify definition of return_in_pc.
21774 (arm_expand_epilogue): Don't compare boolean with true in if condition.
21775
21776 2015-01-29 Uros Bizjak <ubizjak@gmail.com>
21777
21778 * config/i386/i386.c (ix86_mode_after): Make static.
21779
21780 2015-01-29 Richard Biener <rguenther@suse.de>
21781
21782 PR tree-optimization/64844
21783 * tree-vect-loop.c (vect_estimate_min_profitable_iters): Always
21784 dump cost model analysis.
21785 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment):
21786 Do not register adjusted load/store costs here.
21787
21788 2015-01-29 Ilya Enkovich <ilya.enkovich@intel.com>
21789 Uros Bizjak <ubizjak@gmail.com>
21790
21791 * config/i386/i386-protos.h (ix86_use_pseudo_pic_reg): New.
21792 * config/i386/i386.h (PIC_OFFSET_TABLE_REGNUM): Simplify by
21793 using x86_use_pseudo_pic_reg.
21794 * config/i386/i386.c (ix86_conditional_register_usage): Remove
21795 support for fixed PIC register.
21796 (ix86_use_pseudo_pic_reg): Not static any more.
21797
21798 2015-01-29 Ilya Enkovich <ilya.enkovich@intel.com>
21799
21800 PR middle-end/64805
21801 * ipa-inline.c (early_inliner): Rebuild IPA_REF_CHKP reference
21802 to avoid error in cgraph node verification.
21803
21804 2015-01-29 Marek Polacek <polacek@redhat.com>
21805
21806 * doc/standards.texi: Reflect that the default for C is gnu11.
21807
21808 2015-01-29 Kaz Kojima <kkojima@gcc.gnu.org>
21809
21810 PR target/64761
21811 * reorg.c (switch_text_sections_between_p): New function.
21812 (relax_delay_slots): Call it when testing if the jump insn
21813 is removable. Use targetm.can_follow_jump when testing if
21814 the conditional branch can follow an unconditional jump.
21815
21816 2015-01-27 Caroline Tice <cmtice@google.com>
21817
21818 Committing VTV Cywin/Ming patch for Patrick Wollgast
21819 * config/i386/cygwin.h (STARTFILE_SPEC): Add vtv_start.o,
21820 if -fvtable-verify=preinit/std is used.
21821 * config/i386/mingw-w64.h (STARTFILE_SPEC): Likewise.
21822 * config/i386/mingw32.h (STARTFILE_SPEC): Likewise.
21823 * config/i386/cygwin.h (ENDFILE_SPEC): Add vtv_end.o,
21824 if -fvtable-verify=preinit/std is used.
21825 * config/i386/mingw32.h (ENDFILE_SPEC): Likewise.
21826 * config/i386/cygwin.h (LIB_SPEC): Pass -lvtv and -lpsapi,
21827 if -fvtable-verify=preinit/std is used.
21828 * config/i386/mingw-w64.h (LIB_SPEC): Likewise.
21829 * config/i386/mingw32.h (LIB_SPEC): Likewise.
21830 * varasm.c (assemble_variable): Add code to properly set the comdat
21831 section and name for the .vtable_map_vars section in case the
21832 target is PE or COFF.
21833
21834 2015-01-29 Jan Hubicka <hubicka@ucw.cz>
21835
21836 PR ipa/64801
21837 * cgraphunit.c (init_lowered_empty_function): Add CoUNT parameter;
21838 make sane BB profile.
21839 (cgraph_node::expand_thunk): Make sane BB profile.
21840 (cgraph_node::create_wrapper): Do not set call_stmt_cannot_inline_p.
21841 * cgraph.h (init_lowered_empty_function): Update prototype.
21842 * config/i386/i386.c (make_resolver_func): Update call.
21843 * predict.c (gate): Disable branch prediction pass if
21844 profile is already there.
21845
21846 2015-01-29 Jan Hubicka <hubicka@ucw.cz>
21847
21848 * optc-save-gen.awk: flag_fp_contract_mode is no longer speical.
21849 * opth-gen.awk: Likewise.
21850 * common.opt: Mark flag_fp_contract_mode as Optimization.
21851
21852 2015-01-29 Bernd Edlinger <bernd.edlinger@hotmail.de>
21853
21854 * config/i386/cygwin.h (LIBGCJ_SONAME): Set libgcj version to -16.
21855 * config/i386/mingw32.h (LIBGCJ_SONAME): Set libgcj version to -16.
21856
21857 2015-01-28 Oleg Endo <olegendo@gcc.gnu.org>
21858
21859 PR target/64659
21860 * config/sh/predicates.md (atomic_arith_operand,
21861 atomic_logical_operand): Remove.
21862 * config/sh/sync.md (fetchop_predicate, fetchop_constraint): Remove.
21863 (atomic_arith_operand_0): New predicate.
21864 (atomic_compare_and_swap<mode>): Use arith_reg_dest for output values.
21865 Use atomic_arith_operand_0 for input values.
21866 (atomic_compare_and_swapsi_hard, atomic_compare_and_swap<mode>_hard,
21867 atomic_compare_and_swap<mode>_soft_gusa,
21868 atomic_compare_and_swap<mode>_soft_tcb,
21869 atomic_compare_and_swap<mode>_soft_imask): Use arith_reg_dest and
21870 arith_reg_operand instead of register_operand.
21871 (atomic_exchange<mode>): Use arith_reg_dest for output value. Use
21872 atomic_arith_operand_0 for newval input.
21873 (atomic_exchangesi_hard, atomic_exchange<mode>_hard,
21874 atomic_exchange<mode>_soft_gusa, atomic_exchange<mode>_soft_tcb,
21875 atomic_exchange<mode>_soft_imask): Use arith_reg_dest and
21876 arith_reg_operand instead of register_operand.
21877 (atomic_arith_operand_1, atomic_logical_operand_1): New predicates.
21878 fetchop_predicate_1, fetchop_constraint_1_llcs,
21879 fetchop_constraint_1_gusa, fetchop_constraint_1_tcb,
21880 fetchop_constraint_1_imask): New code iterator attributes.
21881 (atomic_fetch_<fetchop_name><mode>): Use arith_reg_dest instead of
21882 register_operand. Use fetchop_predicate_1.
21883 (atomic_fetch_<fetchop_name>si_hard,
21884 atomic_fetch_<fetchop_name><mode>_hard): Use arith_reg_dest instead of
21885 register_operand. Use fetchop_predicate_1, fetchop_constraint_1_llcs.
21886 (atomic_fetch_<fetchop_name><mode>_soft_gusa): Use arith_reg_dest
21887 and arith_reg_operand instead of register_operand. Use
21888 fetchop_predicate_1, fetchop_constraint_1_gusa.
21889 (atomic_fetch_<fetchop_name><mode>_soft_tcb): Use arith_reg_dest
21890 and arith_reg_operand instead of register_operand. Use
21891 fetchop_predicate_1, fetchop_constraint_1_tcb. Adjust asm sequence
21892 to allow R0 usage.
21893 (atomic_fetch_<fetchop_name><mode>_soft_imask): Use arith_reg_dest
21894 and arith_reg_operand instead of register_operand. Use
21895 fetchop_predicate_1, fetchop_constraint_1_imask. Adjust asm sequence
21896 to allow R0 usage.
21897 (atomic_fetch_nand<mode>): Use arith_reg_dest instead of
21898 register_operand. Use atomic_logical_operand_1.
21899 (atomic_fetch_nandsi_hard, atomic_fetch_nand<mode>_hard,
21900 atomic_fetch_nand<mode>_soft_gusa): Use arith_reg_dest and
21901 arith_reg_operand instead of register_operand.
21902 (atomic_fetch_nand<mode>_soft_tcb, atomic_fetch_nand<mode>_soft_imask):
21903 Use arith_reg_dest and arith_reg_operand instead of register_operand.
21904 Use logical_operand and rK08. Adjust asm sequence to allow R0 usage.
21905 (atomic_<fetchop_name>_fetch<mode>): Use arith_reg_dest instead of
21906 register_operand. Use fetchop_predicate_1.
21907 (atomic_<fetchop_name>_fetchsi_hard,
21908 atomic_<fetchop_name>_fetch<mode>_hard): Use arith_reg_dest and
21909 arith_reg_operand instead of register_operand. Use fetchop_predicate_1,
21910 fetchop_constraint_1_llcs.
21911 (atomic_<fetchop_name>_fetch<mode>_soft_gusa): Use arith_reg_dest and
21912 arith_reg_operand instead of register_operand. Use fetchop_predicate_1,
21913 fetchop_constraint_1_gusa.
21914 (atomic_<fetchop_name>_fetch<mode>_soft_tcb): Use arith_reg_dest and
21915 arith_reg_operand instead of register_operand. Use fetchop_predicate_1,
21916 fetchop_constraint_1_tcb. Adjust asm sequence to allow R0 usage.
21917 (atomic_<fetchop_name>_fetch<mode>_soft_imask): Use arith_reg_dest and
21918 arith_reg_operand instead of register_operand. Use fetchop_predicate_1,
21919 fetchop_constraint_1_imask. Adjust asm sequence to allow R0 usage.
21920 (atomic_nand_fetch<mode>): Use arith_reg_dest instead of
21921 register_operand. Use atomic_logical_operand_1.
21922 (atomic_nand_fetchsi_hard, atomic_nand_fetch<mode>_hard,
21923 atomic_nand_fetch<mode>_soft_gusa): Use arith_reg_dest and
21924 arith_reg_operand instead of register_operand.
21925 (atomic_nand_fetch<mode>_soft_tcb): Use arith_reg_dest and
21926 arith_reg_operand instead of register_operand. Use logical_operand
21927 and K08. Adjust asm sequence to allow R0 usage.
21928 (atomic_nand_fetch<mode>_soft_imask): Use arith_reg_dest and
21929 arith_reg_operand instead of register_operand. Use logical_operand
21930 and K08.
21931
21932 2015-01-28 Jakub Jelinek <jakub@redhat.com>
21933
21934 PR other/63504
21935 * dwarf2out.c (add_AT_wide, mem_loc_descriptor, loc_descriptor):
21936 Use ggc_alloc<wide_int> instead of ggc_cleared_alloc<wide_int>.
21937 (attr_checksum, attr_checksum_ordered, hash_loc_operands): Checksum
21938 only get_full_len HOST_WIDE_INTs from get_val () array rather than
21939 all bits in *val_wide.
21940
21941 2015-01-28 Jan Hubicka <hubicka@ucw.cz>
21942
21943 * varpool.c (tls_model_names): Fix names.
21944 (varpool_node::dump): Dump tls- prefix for tls models.
21945
21946 2015-01-28 Thomas Schwinge <thomas@codesourcery.com>
21947 Bernd Schmidt <bernds@codesourcery.com>
21948 Nathan Sidwell <nathan@codesourcery.com>
21949
21950 * config/nvptx/mkoffload.c: New file.
21951 * config/nvptx/t-nvptx: Add build rules for it.
21952 * config.gcc <nvptx-*> [$enable_as_accelerator = yes]
21953 (extra_programs): Add mkoffload.
21954 * config/nvptx/nvptx.c (nvptx_record_offload_symbol): New
21955 function.
21956 (TARGET_RECORD_OFFLOAD_SYMBOL): Define macro to use it.
21957
21958 2015-01-28 Yuri Rumyantsev <ysrumyan@gmail.com>
21959
21960 PR middle-end/64809
21961 * cfgexpand.c (reorder_operands): Skip debug gimples.
21962
21963 2015-01-28 Ilya Enkovich <ilya.enkovich@intel.com>
21964
21965 PR tree-optimization/64277
21966 * tree-ssa-loop-niter.c (record_nonwrapping_iv): Use base
21967 range info when possible to refine estimation.
21968
21969 2015-01-28 Thomas Preud'homme <thomas.preudhomme@arm.com>
21970
21971 PR tree-optimization/64718
21972 * tree-ssa-math-opts.c (pass_optimize_bswap::execute): Make bswap_type
21973 be a 16bit unsigned integer when n->range is 16.
21974 (bswap_replace): Convert src to that type if necessary for all bswap
21975 sizes. Fix rotation right notation in nearby comment. Use bswap_type
21976 set in pass_optimize_bswap::execute ().
21977
21978 2015-01-28 James Greenhalgh <james.greenhalgh@arm.com>
21979
21980 * config/aarch64/aarch64-simd.md (aarch64_abs<mode>): New.
21981 * config/aarch64/aarch64-simd-builtins.def (abs): Split by
21982 integer and floating point variants.
21983 * config/aarch64/iterators.md (unspec): Add UNSPEC_ABS.
21984
21985 2015-01-28 Robert Suchanek <robert.suchanek@imgtec.com>
21986
21987 * config/mips/mips.c (mips_hard_regno_mode_ok_p): Prohibit accumulators
21988 for all vector modes.
21989
21990 2015-01-28 Jakub Jelinek <jakub@redhat.com>
21991
21992 PR bootstrap/64612
21993 * doc/sourcebuild.texi (comdat_group): Document.
21994
21995 2015-01-28 Terry Guo <terry.guo@arm.com>
21996
21997 * config/arm/thumb1.md (*thumb1_movpc_insn): New insn pattern.
21998
21999 2015-01-27 David Malcolm <dmalcolm@redhat.com>
22000
22001 * toplev.c (print_version): Add param "show_global_state", and
22002 only print GGC and plugin information if it is true.
22003 (init_asm_output): Pass in "true" for the new param when calling
22004 print_version.
22005 (process_options): Likewise.
22006 (toplev::main): Likewise.
22007 * toplev.h (print_version): Add new param to decl.
22008
22009 2015-01-27 Jan Hubicka <hubicka@ucw.cz>
22010
22011 PR ipa/60871
22012 PR ipa/64139
22013 * tree.c (lookup_binfo_at_offset): New function.
22014 (get_binfo_at_offset): Use it.
22015
22016 2015-01-27 Jan Hubicka <hubicka@ucw.cz>
22017
22018 PR ipa/64282
22019 * gimple-fold.c (gimple_get_virt_method_for_vtable): Remove assert
22020 on vtable being vtable.
22021
22022 2015-01-27 Dominik Vogt <vogt@linux.vnet.ibm.com>
22023
22024 * doc/extend.texi: s/390: Update documentation of hotpatch attribute.
22025 * doc/invoke.texi (-mhotpatch): s/390: Update documentation of
22026 -mhotpatch= option.
22027 * config/s390/s390.opt (mhotpatch): s/390: Remove -mhotpatch and
22028 -mno-hotpatch options. Change syntax of -mhotpatch= option.
22029 * config/s390/s390.c (s390_hotpatch_trampoline_halfwords_default):
22030 Renamed.
22031 (s390_hotpatch_trampoline_halfwords_max): Renamed.
22032 (s390_hotpatch_hw_max): New name.
22033 (s390_hotpatch_trampoline_halfwords): Renamed.
22034 (s390_hotpatch_hw_before_label): New name.
22035 (get_hotpatch_attribute): Removed.
22036 (s390_hotpatch_hw_after_label): New name.
22037 (s390_handle_hotpatch_attribute): Add second parameter to hotpatch
22038 attribute.
22039 (s390_attribute_table): Ditto.
22040 (s390_function_num_hotpatch_trampoline_halfwords): Renamed.
22041 (s390_function_num_hotpatch_hw): New name.
22042 Remove special handling of inline functions and hotpatching.
22043 Return number of nops before and after the function label.
22044 (s390_can_inline_p): Removed.
22045 (s390_asm_output_function_label): Emit a configurable number of nops
22046 after the function label.
22047 (s390_option_override): Update -mhotpatch= syntax and remove -mhotpatch.
22048 (TARGET_CAN_INLINE_P) Removed.
22049 (TARGET_FUNCTION_ATTRIBUTE_INLINABLE_P): New.
22050
22051 2015-01-27 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
22052 Jiong Wang <jiong.wang@arm.com>
22053
22054 * config/aarch64/aarch64.md (tb<optab><mode>1): Clobber CC reg instead
22055 of scratch reg.
22056 (cb<optab><mode>1): Likewise.
22057 * config/aarch64/iterators.md (bcond): New define_code_attr.
22058
22059 2015-01-27 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
22060
22061 * config/s390/s390.c (s390_memory_move_cost): Increase costs for
22062 memory accesses.
22063
22064 2015-01-27 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
22065
22066 * config/s390/s390.c (s390_register_move_cost): Increase costs for
22067 FPR->GPR moves.
22068
22069 2015-01-27 Richard Biener <rguenther@suse.de>
22070
22071 * tree-vrp.c (update_value_range): Intersect the range with
22072 old recorded SSA name range information.
22073
22074 2015-01-27 Nick Clifton <nickc@redhat.com>
22075
22076 * config/rl78/rl78.c (rl78_expand_prologue): In G10 mode push the
22077 BC, DE and HL registers directly, not via AX.
22078 When decrementing the stack pointer by a large amount, transfer SP
22079 into AX and perform the subtraction there.
22080 (rl78_expand_epilogue): Perform the inverse of the above
22081 enhancements.
22082
22083 2015-01-27 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
22084
22085 * config/i386/sysv4.h (CRT_GET_RFIB_DATA): Remove.
22086
22087 2015-01-27 Jakub Jelinek <jakub@redhat.com>
22088 Yury Gribov <y.gribov@samsung.com>
22089
22090 PR ubsan/64741
22091 * ubsan.c (ubsan_source_location): Refactor code.
22092 (ubsan_type_descriptor): Update type size. Refactor code.
22093
22094 2015-01-27 Richard Biener <rguenther@suse.de>
22095
22096 PR tree-optimization/56273
22097 PR tree-optimization/59124
22098 PR tree-optimization/64277
22099 * tree-vrp.c (vrp_finalize): Emit array-bound warnings only
22100 from the first VRP pass.
22101
22102 2015-01-27 Jakub Jelinek <jakub@redhat.com>
22103
22104 PR ipa/64776
22105 * cgraphunit.c (cgraph_node::expand_thunk): If not this_adjusting,
22106 handle the first argument in the same loop as all the other arguments.
22107
22108 PR rtl-optimization/61058
22109 * jump.c (cleanup_barriers): Update basic block boundaries
22110 if BLOCK_FOR_INSN is non-NULL on PREV.
22111
22112 2015-01-27 Ilya Enkovich <ilya.enkovich@intel.com>
22113
22114 * tree-chkp.c (chkp_call_returns_bounds_p): Fix handling of
22115 bounds narrowing, already instrumented calls and calls to
22116 not instrumentable functions.
22117
22118 2015-01-27 Jakub Jelinek <jakub@redhat.com>
22119
22120 PR tree-optimization/64807
22121 * wide-int.cc (wi::divmod_internal): Clear
22122 b_dividend[dividend_blocks_needed].
22123
22124 2015-01-26 DJ Delorie <dj@redhat.com>
22125
22126 * config/rl78/rl78.c (move_elim_pass): Don't optimize away
22127 volatile memory references.
22128
22129 2015-01-26 Oleg Endo <olegendo@gcc.gnu.org>
22130
22131 PR target/49263
22132 * config/sh/sh.c (sh_split_treg_set_expr): Invoke emit_insn before
22133 remove_insn.
22134 * config/sh/sh.md (tstsi_t): Don't try to optimize constant with right
22135 shifts if it already fits into K08.
22136
22137 2015-01-26 Jakub Jelinek <jakub@redhat.com>
22138
22139 PR ipa/64730
22140 * ipa-inline.c (inline_small_functions): Print "unknown" even
22141 if edge->call_stmt is non-NULL, but has builtins or unknown
22142 location.
22143
22144 PR middle-end/64421
22145 * omp-low.c (simd_clone_mangle): If DECL_ASSEMBLER_NAME starts
22146 with asterisk, skip the first character.
22147
22148 2015-01-26 H.J. Lu <hongjiu.lu@intel.com>
22149
22150 PR target/64806
22151 * config/i386/i386 (feature_priority): Revert the last P_POPCNT
22152 order change.
22153
22154 2015-01-26 Uros Bizjak <ubizjak@gmail.com>
22155
22156 PR target/64795
22157 * config/i386/i386.md (*movdi_internal): Also check operand 0
22158 to determine TYPE_LEA operand.
22159 (*movsi_internal): Ditto.
22160
22161 2015-01-26 Jakub Jelinek <jakub@redhat.com>
22162
22163 * config/rs6000/rs6000-cpus.def (POWERPC_MASKS): Add
22164 OPTION_MASK_QUAD_MEMORY_ATOMIC.
22165
22166 2015-01-26 Renlin Li <renlin.li@arm.com>
22167
22168 * config/aarch64/aarch64.c (aarch64_load_symref_appropriately): Correct
22169 the comment.
22170 * config/aarch64/aarch64.md (tlsle_small_<mode>): Add left shift 12-bit
22171 for higher part.
22172
22173 2015-01-26 Richard Biener <rguenther@suse.de>
22174
22175 PR middle-end/64764
22176 * tree-ssa-uninit.c (is_pred_expr_subset_of): Handle
22177 combining two BIT_AND_EXPR predicates.
22178
22179 2015-01-26 H.J. Lu <hongjiu.lu@intel.com>
22180
22181 PR bootstrap/64754
22182 * tree-ssa-structalias.c (new_var_info): Initialize ruid.
22183
22184 2015-01-26 Terry Guo <terry.guo@arm.com>
22185
22186 * config/arm/arm.c (arm_file_start): Update the assignment of
22187 Tag_ABI_HardFP_use.
22188
22189 2015-01-25 James Greenhalgh <james.greenhalgh@arm.com>
22190
22191 * config/arm/arm-cores.def (cortex-a57): Use the new Cortex-A57
22192 pipeline model.
22193 config/arm/arm.md: Include the new Cortex-A57 model.
22194 (generic_sched): Don't use generic_sched when tuning for
22195 Cortex-A57.
22196
22197 2015-01-25 Allan Sandfeld Jensen <sandfeld@kde.org>
22198 Uros Bizjak <ubizjak@gmail.com>
22199
22200 * config/i386/i386.c (get_builtin_code_for_version): Add
22201 support for BMI and BMI2 multiversion functions.
22202
22203 2015-01-25 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
22204
22205 * emit-rtl.h (store_bit_field): Move prototype to expmed.h.
22206 (extract_bit_field): Likewise.
22207 (extract_low_bits): Likewise.
22208 (expand_mult): Likewise.
22209 (expand_mult_highpart_adjust): Likewise.
22210
22211 2015-01-24 H.J. Lu <hongjiu.lu@intel.com>
22212
22213 * config/i386/driver-i386.c (host_detect_local_cpu): Check new
22214 Silvermont, Haswell, Broadwell and Knights Landing model numbers.
22215 * config/i386/i386.c (processor_model): Add
22216 M_INTEL_COREI7_BROADWELL.
22217 (arch_names_table): Add "broadwell".
22218
22219 2015-01-24 Oleg Endo <olegendo@gcc.gnu.org>
22220
22221 PR target/49263
22222 PR target/53987
22223 PR target/64345
22224 PR target/59533
22225 PR target/52933
22226 PR target/54236
22227 PR target/51244
22228 * config/sh/sh-protos.h
22229 (sh_extending_set_of_reg::can_use_as_unextended_reg,
22230 sh_extending_set_of_reg::use_as_unextended_reg,
22231 sh_is_nott_insn, sh_movt_set_dest, sh_movrt_set_dest, sh_is_movt_insn,
22232 sh_is_movrt_insn, sh_insn_operands_modified_between_p,
22233 sh_reg_dead_or_unused_after_insn, sh_in_recog_treg_set_expr,
22234 sh_recog_treg_set_expr, sh_split_treg_set_expr): New functions.
22235 (sh_treg_insns): New class.
22236 * config/sh/sh.c (TARGET_LEGITIMATE_COMBINED_INSN): Define target hook.
22237 (scope_counter): New class.
22238 (sh_legitimate_combined_insn, sh_is_nott_insn, sh_movt_set_dest,
22239 sh_movrt_set_dest, sh_reg_dead_or_unused_after_insn,
22240 sh_extending_set_of_reg::can_use_as_unextended_reg,
22241 sh_extending_set_of_reg::use_as_unextended_reg, sh_recog_treg_set_expr,
22242 sh_in_recog_treg_set_expr, sh_try_split_insn_simple,
22243 sh_split_treg_set_expr): New functions.
22244 (addsubcosts): Handle treg_set_expr.
22245 (sh_rtx_costs): Handle IF_THEN_ELSE and ZERO_EXTRACT.
22246 (sh_rtx_costs): Use arith_reg_operand in SIGN_EXTEND and ZERO_EXTEND.
22247 (sh_rtx_costs): Handle additional bit test patterns in EQ and AND cases.
22248 (sh_insn_operands_modified_between_p): Make non-static.
22249 * config/sh/predicates.md (zero_extend_movu_operand): Allow
22250 simple_mem_operand in addition to displacement_mem_operand.
22251 (zero_extend_operand): Don't allow zero_extend_movu_operand.
22252 (treg_set_expr, treg_set_expr_not_const01,
22253 arith_reg_or_treg_set_expr): New predicates.
22254 * config/sh/sh.md (tstsi_t): Use arith_reg_operand and
22255 arith_or_int_operand instead of logical_operand. Convert to
22256 insn_and_split. Try to optimize constant operand in splitter.
22257 (tsthi_t, tstqi_t): Fold into *tst<mode>_t. Convert to insn_and_split.
22258 (*tstqi_t_zero): Delete.
22259 (*tst<mode>_t_subregs): Add !sh_in_recog_treg_set_expr split condition.
22260 (tstsi_t_and_not): Delete.
22261 (tst<mode>_t_zero_extract_eq): Rename to *tst<mode>_t_zero_extract.
22262 Convert to insn_and_split.
22263 (unnamed split, tstsi_t_zero_extract_xor,
22264 tstsi_t_zero_extract_subreg_xor_little,
22265 tstsi_t_zero_extract_subreg_xor_big): Delete.
22266 (*tstsi_t_shift_mask): New insn_and_split.
22267 (cmpeqsi_t, cmpgesi_t): Add new split for const_int 0 operands and try
22268 to recombine with surrounding insns when splitting.
22269 (*negtstsi): Add !sh_in_recog_treg_set_expr condition.
22270 (cmp_div0s_0, cmp_div0s_1, *cmp_div0s_0, *cmp_div0s_1): Rewrite as ...
22271 (cmp_div0s, *cmp_div0s_1, *cmp_div0s_2, *cmp_div0s_3, *cmp_div0s_4,
22272 *cmp_div0s_5, *cmp_div0s_6): ... these new insn_and_split patterns.
22273 (*cbranch_div0s: Delete.
22274 (*addc): Convert to insn_and_split. Use treg_set_expr as 3rd operand.
22275 Try to recombine with surrounding insns when splitting. Add operand
22276 order variants.
22277 (*addc_t_r, *addc_r_t): Use treg_set_expr_not_const01.
22278 (*addc_r_r_1, *addc_r_lsb, *addc_r_r_lsb, *addc_r_lsb_r, *addc_r_msb,
22279 *addc_r_r_msb, *addc_2r_msb): Delete.
22280 (*addc_2r_lsb): Rename to *addc_2r_t. Use treg_set_expr. Add operand
22281 order variant.
22282 (*addc_negreg_t): New insn_and_split.
22283 (*subc): Convert to insn_and_split. Use treg_set_expr as 3rd operand.
22284 Try to recombine with surrounding insns when splitting.
22285 Add operand order variants.
22286 (*subc_negt_reg, *subc_negreg_t, *reg_lsb_t, *reg_msb_t): New
22287 insn_and_split patterns.
22288 (*rotcr): Use arith_reg_or_treg_set_expr. Try to recombine with
22289 surrounding insns when splitting.
22290 (unnamed rotcr split): Use arith_reg_or_treg_set_expr.
22291 (*rotcl): Likewise. Add zero_extract variant.
22292 (*ashrsi2_31): New insn_and_split.
22293 (*negc): Convert to insn_and_split. Use treg_set_expr.
22294 (*zero_extend<mode>si2_disp_mem): Update comment.
22295 (movrt_negc, *movrt_negc, nott): Add !sh_in_recog_treg_set_expr split
22296 condition.
22297 (*mov_t_msb_neg, mov_neg_si_t): Use treg_set_expr. Try to recombine
22298 with surrounding insns when splitting.
22299 (any_treg_expr_to_reg): New insn_and_split.
22300 (*neg_zero_extract_0, *neg_zero_extract_1, *neg_zero_extract_2,
22301 *neg_zero_extract_3, *neg_zero_extract_4, *neg_zero_extract_5,
22302 *neg_zero_extract_6, *zero_extract_0, *zero_extract_1,
22303 *zero_extract_2): New single bit zero extract patterns.
22304 (bld_reg, *bld_regqi): Fold into bld<mode>_reg.
22305 (*get_thread_pointersi, store_gbr, *mov<mode>_gbr_load,
22306 *mov<mode>_gbr_load, *mov<mode>_gbr_load, *mov<mode>_gbr_load,
22307 *movdi_gbr_load): Use arith_reg_dest instead of register_operand for
22308 set destination.
22309 (set_thread_pointersi, load_gbr): Use arith_reg_operand instead of
22310 register_operand for set source.
22311
22312 2015-01-23 Jan Hubicka <hubicka@ucw.cz>
22313
22314 * i386.opt (prefetch_sse): New targetsave.
22315 * i386.c (ix86_function_specific_save): Save prefetch_sse.
22316 (ix86_function_specific_restore): Restore prefetch_sse and initialize
22317 ix86_cost/ix86_tune_cost.
22318
22319 2015-01-23 David Malcolm <dmalcolm@redhat.com>
22320
22321 * config/rs6000/rs6000.c (rs6000_output_function_epilogue):
22322 Support the JIT by using 0 as the language type.
22323
22324 2015-01-23 Vladimir Makarov <vmakarov@redhat.com>
22325
22326 PR target/64317
22327 * lra-lives.c (make_hard_regno_born): Add parameter. Don't make
22328 REAL_PIC_OFFSET_TABLE_REGNUM conflicting with pic offset pseudo.
22329 (mark_regno_live, process_bb_lives): Pass new parameter value to
22330 make_hard_regno_born.
22331
22332 2015-01-23 Jakub Jelinek <jakub@redhat.com>
22333
22334 PR rtl-optimization/63637
22335 PR rtl-optimization/60663
22336 * cse.c (merge_equiv_classes): Set new_elt->cost to MAX_COST
22337 if elt->cost is MAX_COST for ASM_OPERANDS.
22338 (find_sets_in_insn): Fix up comment typo.
22339 (cse_insn): Don't set src_volatile for all non-volatile
22340 ASM_OPERANDS in PARALLELs, but just those with multiple outputs
22341 or with "memory" clobber. Set elt->cost to MAX_COST
22342 for ASM_OPERANDS in PARALLEL. Set src_elt->cost to MAX_COST
22343 if new_src is ASM_OPERANDS and elt->cost is MAX_COST.
22344
22345 2015-01-23 Uros Bizjak <ubizjak@gmail.com>
22346
22347 * config/i386/sse.md (sse2_loadld): Set attribute isa to sse2 for
22348 alternative 1.
22349
22350 2015-01-23 Uros Bizjak <ubizjak@gmail.com>
22351
22352 * config/i386/gnu-user.h (CRT_GET_RFIB_DATA): Move definition to
22353 libgcc/config/i386/elf-lib.h.
22354
22355 2015-01-23 Jakub Jelinek <jakub@redhat.com>
22356
22357 PR driver/64737
22358 * gcc.c (print_configuration): Don't print a blank line at the end
22359 here...
22360 (run_attempt): ... but here unstead.
22361
22362 PR middle-end/64734
22363 * omp-low.c (scan_sharing_clauses): Don't ignore
22364 OMP_CLAUSE_MAP_ZERO_BIAS_ARRAY_SECTION GOMP_MAP_POINTER clauses
22365 on target data/update constructs.
22366
22367 2015-01-23 Bernd Edlinger <bernd.edlinger@hotmail.de>
22368
22369 PR target/50928
22370 * config/m32c/m32c.c (encode_pattern_1): Removed gcc_unreachable here.
22371 (DEBUG_RELOAD): Removed define.
22372 (m32c_limit_reload_class): Enable traces with if DEBUG0.
22373 (m32c_function_arg): Added a type cast.
22374 (m32c_legitimize_reload_address): Push A_REGS reload with PSImode.
22375 * config/m32c/addsub.md (addsi3_1): Specify the mode of all arguments.
22376 * config/m32c/bitops.md (andqi3_16): Likewise.
22377 * config/m32c/mov.md (m32c_immd_dbl_mov): Likewise.
22378 (push_a01_l): Likewise.
22379
22380 2015-01-23 David Malcolm <dmalcolm@redhat.com>
22381
22382 PR jit/64721
22383 * main.c (main): Construct toplev instances with init_signals=true.
22384 * toplev.c (general_init): Add param "init_signals", and use it to
22385 conditionalize the calls to signal and host_hooks.extra_signals.
22386 (toplev::toplev): Add param "init_signals".
22387 (toplev::main): When invoking general_init, pass m_init_signals
22388 to control whether signal-handlers are installed.
22389 * toplev.h (toplev::toplev): Add param "init_signals".
22390 (toplev::m_init_signals): New field.
22391
22392 2015-01-23 David Malcolm <dmalcolm@redhat.com>
22393
22394 PR jit/64722
22395 * emit-rtl.c (init_emit_regs): Set pic_offset_table_rtx to
22396 NULL_RTX before testing PIC_OFFSET_TABLE_REGNUM, since the
22397 latter may be affected by the former (e.g. on i686).
22398
22399 2015-01-23 Martin Liska <mliska@suse.cz>
22400
22401 * tree.h (tree_vec_elt_check): Workaround -Wstrict-overflow
22402 false positive during profiledbootstrap.
22403
22404 2015-01-23 Tom de Vries <tom@codesourcery.com>
22405
22406 PR libgomp/64672
22407 * lto-opts.c (lto_write_options): Output non-explicit conservative
22408 -fno-openacc.
22409 * lto-wrapper.c (merge_and_complain): Handle merging -fopenacc.
22410 (append_compiler_options): Pass -fopenacc through.
22411
22412 2015-01-23 Tom de Vries <tom@codesourcery.com>
22413
22414 PR libgomp/64707
22415 * lto-opts.c (lto_write_options): Output non-explicit conservative
22416 -fno-openmp.
22417 * lto-wrapper.c (merge_and_complain): Handle merging -fopenmp.
22418 (append_compiler_options): Pass -fopenmp through.
22419
22420 2015-01-23 Jakub Jelinek <jakub@redhat.com>
22421
22422 PR debug/64511
22423 * dwarf2out.c (struct dw_loc_descr_node): Add chain_next
22424 GTY markup.
22425
22426 * diagnostic-core.h (internal_error_no_backtrace): New prototype.
22427 * diagnostic.def (DK_ICE_NOBT): New kind.
22428 * diagnostic.c (diagnostic_action_after_output): Handle DK_ICE_NOBT
22429 like DK_ICE, but never print backtrace.
22430 (diagnostic_report_diagnostic): Handle DK_ICE_NOBT like DK_ICE.
22431 (internal_error_no_backtrace): New function.
22432 * gcc.c (execute): Use internal_error_no_backtrace instead of
22433 internal_error.
22434
22435 2015-01-22 Jeff Law <law@redhat.com>
22436
22437 PR target/52076
22438 * config/m68k/m68k.md (xorsi3_internal): Twiddle constraints to
22439 improve code density for small immediate to memory case.
22440 (insv): Better handle bitfield assignments when the field is
22441 being set to all ones.
22442 * config/m68k/predicates.md (reg_or_pow2_m1_operand): New
22443 operand predicate.
22444
22445 2015-01-22 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
22446 Jakub Jelinek <jakub@redhat.com>
22447
22448 PR middle-end/64729
22449 * gcc.c (LINK_SSP_SPEC): Handle -fstack-protector-explicit
22450 for !TARGET_LIBC_PROVIDES_SSP version and
22451 -fstack-protector-{all,strong,explicit} otherwise.
22452 * config/freebsd.h (LINK_SSP_SPEC): Handle
22453 -fstack-protector-{strong,explicit}.
22454
22455 2015-01-22 Jan Hubicka <hubicka@ucw.cz>
22456 H.J. Lu <hongjiu.lu@intel.com>
22457
22458 PR ipa/64694
22459 * ipa-inline.c (inline_small_functions): Fix thinko in maintenance of
22460 heap.
22461
22462 2015-01-22 Wei Mi <wmi@google.com>
22463
22464 PR rtl-optimization/64557
22465 * dse.c (record_store): Call get_addr for mem_addr.
22466 (check_mem_read_rtx): Likewise.
22467
22468 2015-01-22 Eric Botcazou <ebotcazou@adacore.com>
22469
22470 * fold-const.c (const_binop): Add early return for non-tcc_binary.
22471
22472 2015-01-22 Chen Gang <gang.chen.5i5j@gmail.com>
22473
22474 * toplev.c (init_local_tick): Process the failure when read
22475 fails for random_seed.
22476
22477 * ubsan.c (ubsan_type_descriptor): Use 'pretty_print' for
22478 'pretty_name' to avoid memory overflow.
22479
22480 2015-01-22 Richard Biener <rguenther@suse.de>
22481
22482 PR middle-end/64728
22483 * tree-ssa-coalesce.c (coalesce_partitions): Do not perform
22484 abnormal coalescing on undefined SSA names.
22485
22486 2015-22-01 Uros Bizjak <ubizjak@gmail.com>
22487
22488 PR target/64688
22489 PR target/64477
22490 * config/i386/sse.md (vec_set<mode>_0): Use (Yi/r/C) constraints
22491 for alternative 3.
22492 (*vec_dup<mode>): Use (Yi/$r) constraints for alternative 1.
22493
22494 2015-01-22 Trevor Saunders <tsaunders@mozilla.com>
22495
22496 PR middle-end/63325
22497 * fold-const.c (fold_checksum_tree): Don't include value of
22498 expr->decl_with_vis.symtab_node in the checksum.
22499
22500 2015-01-22 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
22501
22502 * config/s390/s390.md (atomic code attribute): Fix typo "ior" -> "or".
22503
22504 2015-01-22 Max Ostapenko <m.ostapenko@partner.samsung.com>
22505
22506 PR driver/64690
22507 * gcc.c (insert_comments): New function.
22508 (try_generate_repro): Call it.
22509 (append_text): Removed.
22510
22511 2015-01-22 Richard Biener <rguenther@suse.de>
22512
22513 * ipa-inline.c (can_inline_edge_p): Disable inlining of edges
22514 with IL incompatible options. Properly honor user optimize
22515 attributes.
22516
22517 2015-01-21 Segher Boessenkool <segher@kernel.crashing.org>
22518
22519 PR rtl-optimization/64682
22520 * combine.c (distribute_notes): When moving a death note for
22521 a register that is set in the new I2, make sure to put it
22522 before that new I2.
22523
22524 2015-01-21 David Edelsohn <dje.gcc@gmail.com>
22525
22526 * config/rs6000/rs6000.c (rs6000_file_start): Use rs6000_isa_flags
22527 not TARGET_DEFAULT.
22528
22529 2015-01-21 Jakub Jelinek <jakub@redhat.com>
22530
22531 PR debug/64511
22532 * simplify-rtx.c (simplify_relational_operation_1): Don't try to
22533 optimize (eq/ne (and (side_effects) (const_int 0)) (const_int 0))
22534 into (eq/ne (and (not (side_effects)) (const_int 0)) (const_int 0)).
22535
22536 PR sanitizer/64706
22537 * doc/invoke.texi (-fsanitize=vptr): Document.
22538
22539 PR rtl-optimization/62078
22540 * dse.c: Include cfgcleanup.h.
22541 (rest_of_handle_dse): For -fnon-call-exceptions, if DSE removed
22542 anything call purge_all_dead_edges and cleanup_cfg at the end
22543 of the pass.
22544
22545 2015-01-21 Jan Hubicka <hubicka@ucw.cz>
22546
22547 * ipa-utils.c (ipa_merge_profiles): Avoid ICE on mismatch in indirect
22548 edges.
22549
22550 2015-01-21 Bernd Edlinger <bernd.edlinger@hotmail.de>
22551
22552 * gimplify.c (gimplify_function_tree): Check the no_sanitize_thread
22553 decl attribute.
22554
22555 2015-01-21 David Sherwood <david.sherwood@arm.com>
22556 Tejas Belagod <Tejas.Belagod@arm.com>
22557
22558 * config/aarch64/aarch64.h (CANNOT_CHANGE_MODE_CLASS): Removed.
22559 * config/aarch64/aarch64.c (aarch64_cannot_change_mode_class): Removed.
22560 * config/aarch64/aarch64-protos.h (aarch64_cannot_change_mode_class):
22561 Removed.
22562
22563 2015-01-21 David Sherwood <david.sherwood@arm.com>
22564 Tejas Belagod <Tejas.Belagod@arm.com>
22565
22566 * config/aarch64/aarch64-protos.h (aarch64_simd_attr_length_rglist)
22567 (aarch64_reverse_mask): New decls.
22568 * config/aarch64/iterators.md (UNSPEC_REV_REGLIST): New enum.
22569 (insn_count): New mode_attr.
22570 * config/aarch64/aarch64-simd.md (vec_store_lanesoi, vec_store_lanesci)
22571 (vec_store_lanesxi, vec_load_lanesoi, vec_load_lanesci)
22572 (vec_load_lanesxi): Made ABI compliant for Big Endian targets.
22573 (aarch64_rev_reglist, aarch64_simd_ld2, aarch64_simd_ld3)
22574 (aarch64_simd_ld4, aarch64_simd_st2, aarch64_simd_st3)
22575 (aarch64_simd_st4): New patterns.
22576 * config/aarch64/aarch64.c (aarch64_simd_attr_length_rglist)
22577 (aarch64_reverse_mask): New functions.
22578
22579 2015-01-21 Richard Sandiford <richard.sandiford@arm.com>
22580
22581 * config/aarch64/aarch64-protos.h (aarch64_simd_disambiguate_copy):
22582 Declare.
22583 * config/aarch64/aarch64.c (aarch64_classify_address): Allow extra
22584 addressing modes for BE.
22585 (aarch64_print_operand): Add 'R' specifier.
22586 (aarch64_simd_disambiguate_copy): Delete.
22587 (aarch64_simd_emit_reg_reg_move): New function.
22588 * config/aarch64/aarch64-simd.md: Use aarch64_simd_emit_reg_reg_move
22589 in define_splits for structural moves.
22590 (mov<mode>): Use less restrictive predicates.
22591 (*aarch64_mov<mode>): Simplify and only allow for LE.
22592 (*aarch64_be_movoi, *aarch64_be_movci, *aarch64_be_movxi): New.
22593
22594 2015-01-21 Alan Hayward <alan.hayward@arm.com>
22595
22596 * rtlanal.c (subreg_get_info): Exit early for simple and common cases.
22597
22598 2015-01-21 Richard Henderson <rth@redhat.com>
22599
22600 PR target/64669
22601 * ccmp.c (used_in_cond_stmt_p): Remove.
22602 (expand_ccmp_expr): Don't use it.
22603
22604 2015-01-21 Nick Clifton <nickc@redhat.com>
22605
22606 * config/rl78/rl78.c (rl78_calculate_death_notes): Look inside
22607 PARALLELs.
22608
22609 2015-01-21 Richard Biener <rguenther@suse.de>
22610
22611 PR middle-end/64313
22612 * tree-core.h (builtin_info, builtin_info_type): Turn from
22613 an object with two arrays into an array of an object with
22614 decl and two flags, implicit_p and declared_p.
22615 * tree.h (builtin_decl_explicit, builtin_decl_implicit,
22616 set_builtin_decl, set_builtin_decl_implicit_p,
22617 builtin_decl_explicit_p, builtin_decl_implicit_p): Adjust.
22618 (set_builtin_decl_declared_p, builtin_decl_declared_p): New functions.
22619 * builtins.c (builtin_info): Adjust.
22620 * gimplify.c (gimplify_addr_expr): References to builtins
22621 that have been declared by the user makes them eligible for
22622 use by the compiler. Call set_builtin_decl_implicit_p on them.
22623
22624 2015-01-20 Jeff Law <law@redhat.com>
22625
22626 PR target/59946
22627 * config/m68k/m68k.md (Comparison expanders and patterns): Do not
22628 allow pc-relative addresses in operand predicates or constraints.
22629
22630 2015-01-21 Bin Cheng <bin.cheng@arm.com>
22631
22632 * config/arm/arm.c (arm_cortex_a53_tune, arm_cortex_a57_tune): Prefer
22633 neon on aarch32 processors for stringops.
22634
22635 2015-01-19 Jan Hubicka <hubicka@ucw.cz>
22636
22637 PR ipa/63576
22638 * ipa-utils.c (ipa_merge_profiles): Merge speculative edges.
22639
22640 2015-01-19 Jan Hubicka <hubicka@ucw.cz>
22641
22642 PR lto/45375
22643 * ipa-inline.c: Include lto-streamer.h
22644 (report_inline_failed_reason): Output source file differences and
22645 flags on optimization/target node mismatch.
22646 (can_inline_edge_p): Consider caller to be the outer inline function;
22647 be less restrictive about matching opimize and optimize_size attributes.
22648 (inline_account_function_p): Break out from ...
22649 (inline_small_functions): ... here.
22650 * ipa-inline-transform.c (clone_inlined_nodes): Use
22651 inline_account_function_p.
22652 (inline_call): Use optimize attribution; use inline_account_function_p.
22653 (inline_transform): Use opt_for_fn.
22654 * ipa-inline.h (inline_account_function_p): Declare.
22655
22656 2015-01-20 Jakub Jelinek <jakub@redhat.com>
22657
22658 PR debug/64663
22659 * dwarf2out.c (decl_piece_node): Don't put bitsize into
22660 mode if bitsize <= 0.
22661 (decl_piece_bitsize, adjust_piece_list, add_var_loc_to_decl,
22662 dw_sra_loc_expr): Use HOST_WIDE_INT instead of int for bit
22663 sizes and positions.
22664
22665 2015-01-20 Chung-Lin Tang <cltang@codesourcery.com>
22666
22667 * config/nios2/nios2.c (nios2_asm_file_end): Implement
22668 TARGET_ASM_FILE_END hook for adding .note.GNU-stack section when
22669 needed.
22670 (TARGET_ASM_FILE_END): Define.
22671
22672 2015-01-20 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
22673
22674 * config/arm/arm-protos.h (enum arm_sched_autopref): New constants.
22675 (struct tune_params): Use the enum.
22676 * arm.c (arm_*_tune): Update.
22677 (arm_option_override): Update.
22678
22679 2015-01-20 Richard Biener <rguenther@suse.de>
22680
22681 PR ipa/64684
22682 * ipa-reference.c (add_static_var): Inline ...
22683 (analyze_function): ... here after splitting out from ...
22684 (is_proper_for_analysis): ... this.
22685
22686 2015-01-20 Matthew Wahab <matthew.wahab@arm.com>
22687
22688 PR target/64149
22689 * config/arm/arm.opt: Remove lra option and arm_lra_flag variablesle.
22690 * config/arm/arm.h (MODE_BASE_REG_CLASS): Remove use of arm_lra_flagag,
22691 replace the conditional with it's true branch.
22692 * config/arm/arm.config (TARGET_LRA_P): Set to hook_bool_void_true.
22693 (arm_lra_p): Remove.
22694
22695 2015-01-20 Eric Botcazou <ebotcazou@adacore.com>
22696
22697 * config/visium/visium.h (LIB_SPEC): Adjust in default case.
22698
22699 2015-01-20 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
22700
22701 * config/tilegx/mul-tables.c: Move symtab.h include after
22702 coretypes.h include.
22703 * config/tilepro/mul-tables.c: Add includes hashtab.h, hash-set.h,
22704 vec.h, machmode.h, tm.h, hard-reg-set.h, input.h, function.h, rtl.h,
22705 flags.h, statistics.h, double-int.h, real.h, fixed-value.h, alias.h,
22706 wide-int.h, inchash.h, tree.h, insn-config.h, expmed.h, dojump.h,
22707 explow.h, calls.h, emit-rtl.h, varasm.h, stmt.h.
22708
22709 2015-01-20 Igor Zamyatin <igor.zamyatin@intel.com>
22710
22711 PR bootstrap/64676
22712 Revert:
22713 2015-01-19 Igor Zamyatin <igor.zamyatin@intel.com>
22714
22715 PR rtl-optimization/64081
22716 * loop-iv.c (def_pred_latch_p): New function.
22717 (latch_dominating_def): Allow specific cases with non-single
22718 definitions.
22719 (iv_get_reaching_def): Likewise.
22720 (check_complex_exit_p): New function.
22721 (check_simple_exit): Use check_complex_exit_p to allow certain cases
22722 with exits not executing on any iteration.
22723
22724 2015-01-19 Jan Hubicka <hubicka@ucw.cz>
22725
22726 PR lto/45375
22727 * i386.c (ix86_option_override_internal): Use ix86_tune_cost
22728 to set branch cost.
22729
22730 2015-01-19 Jan Hubicka <hubicka@ucw.cz>
22731
22732 PR lto/45375
22733 * i386.c (gate): Check flag_expensive_optimizations and
22734 optimize_size.
22735 (ix86_option_override_internal): Drop optimize_size condition
22736 on MASK_ACCUMULATE_OUTGOING_ARGS, MASK_VZEROUPPER,
22737 MASK_AVX256_SPLIT_UNALIGNED_LOAD, MASK_AVX256_SPLIT_UNALIGNED_STORE,
22738 MASK_PREFER_AVX128.
22739 (ix86_avx256_split_vector_move_misalign,
22740 ix86_avx256_split_vector_move_misalign): Check optimize_insn_for_speed.
22741 * sse.md (all uses of TARGET_PREFER_AVX128): Add
22742 optimize_insn_for_speed_p check.
22743
22744 2015-01-19 Matthew Fortune <matthew.fortune@imgtec.com>
22745
22746 * config/mips/mips.h (FP_ASM_SPEC): New define.
22747 (ASM_SPEC): Remove floating-point options and use FP_ASM_SPEC
22748 instead.
22749
22750 2015-01-19 Oleg Endo <olegendo@gcc.gnu.org>
22751
22752 PR target/53988
22753 * config/sh/sh-protos.h (sh_find_set_of_reg): Make sure not to return
22754 nullptr for insn when reaching the first insn.
22755 * config/sh/sh.c (sh_unspec_insn_p): Rewrite using subrtx_iterator.
22756 (sh_insn_operands_modified_between_p): Add nullptr check.
22757 (sh_find_extending_set_of_reg): Fix log message. Don't accept
22758 sign extending mem load if the insn contains any UNSPEC or
22759 UNSPEC_VOLATILE.
22760
22761 2015-01-19 Jan Hubicka <hubicka@ucw.cz>
22762
22763 * params.def (inline-unit-growth): Drop to 15%.
22764 * invoke.texi (inline-unit-growth): Document change.
22765
22766 2015-01-19 Martin Liska <mliska@suse.cz>
22767
22768 PR ipa/64668
22769 * ipa-icf-gimple.c (func_checker::compare_operand): Call proper
22770 function for second argument of OBJ_TYPE_REF.
22771
22772 2015-01-19 Jan Hubicka <hubicka@ucw.cz>
22773
22774 PR ipa/64218
22775 * ipa-inline.c (want_inline_function_to_all_callers_p): Fix check
22776 whether function is an alias.
22777
22778 2015-01-19 Jan Hubicka <hubicka@ucw.cz>
22779
22780 * ipa-devirt.c (ipa_devirt): Drop polymorphic call info in hopeless
22781 cases.
22782
22783 2015-01-19 Vladimir Makarov <vmakarov@redhat.com>
22784
22785 PR rtl-optimization/64671
22786 * lra-remat.c (operand_to_remat): Don't consider jump and call
22787 insns.
22788
22789 2015-01-19 David Edelsohn <dje.gcc@gmail.com>
22790
22791 PR target/59828
22792 * config/rs6000/default64.h: Include rs6000-cpus.def.
22793 (TARGET_DEFAULT) [LITTLE_ENDIAN]: Use ISA 2.7 (POWER8).
22794 (TARGET_DEFAULT) [BIG_ENDIAN]: Use POWER4.
22795 * config/rs6000/driver-rs6000.c (detect_processor_aix): Add POWER7
22796 and POWER8.
22797 * config/rs6000/linux64.h (PROCESSOR_DEFAULT64): Always default to
22798 POWER8.
22799 * config/rs6000/rs6000.c (rs6000_file_start): Emit .machine
22800 pseudo-op to specify assembler dialect.
22801
22802 2015-01-19 Martin Liska <mliska@suse.cz>
22803
22804 PR ipa/64664
22805 * ipa-icf.c (sem_item_optimizer::filter_removed_items):
22806 Handle safe potentially removed nodes during filtering.
22807
22808 2015-01-19 Martin Liska <mliska@suse.cz>
22809
22810 * doc/extend.texi (no_icf): Add new attribute description.
22811 * ipa-icf.c (sem_item_optimizer::merge_classes): Handle cases
22812 where the pass attempts to merge a function with no_icf attribute.
22813
22814 2015-01-19 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
22815
22816 PR target/64532
22817 * doc/md.texi (ARM Options): Document register constraints.
22818
22819 2015-01-19 Jiong Wang <jiong.wang@arm.com>
22820 Andrew Pinski <apinski@cavium.com>
22821
22822 PR target/64304
22823 * config/aarch64/aarch64.md (define_insn "*ashl<mode>3_insn"): Deleted.
22824 (ashl<mode>3): Don't expand if operands[2] is not constant.
22825
22826 2015-01-19 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
22827
22828 PR target/64448
22829 * config/aarch64/aarch64-simd.md (aarch64_simd_bsl<mode>_internal):
22830 Match xor-and-xor RTL pattern.
22831
22832 2015-01-19 Igor Zamyatin <igor.zamyatin@intel.com>
22833
22834 PR rtl-optimization/64081
22835 * loop-iv.c (def_pred_latch_p): New function.
22836 (latch_dominating_def): Allow specific cases with non-single
22837 definitions.
22838 (iv_get_reaching_def): Likewise.
22839 (check_complex_exit_p): New function.
22840 (check_simple_exit): Use check_complex_exit_p to allow certain cases
22841 with exits not executing on any iteration.
22842
22843 2015-01-19 Jakub Jelinek <jakub@redhat.com>
22844
22845 * common.opt (fgraphite): Fix a typo.
22846
22847 2015-01-19 Felix Yang <felix.yang@huawei.com>
22848
22849 * config/aarch64/aarch64-simd.md (aarch64_<maxmin_uns>p<mode>): New
22850 pattern.
22851 * config/aarch64/aarch64-simd-builtins.def (smaxp, sminp, umaxp,
22852 uminp, smax_nanp, smin_nanp): New builtins.
22853 * config/aarch64/arm_neon.h (vpmax_s8, vpmax_s16, vpmax_s32,
22854 vpmax_u8, vpmax_u16, vpmax_u32, vpmaxq_s8, vpmaxq_s16, vpmaxq_s32,
22855 vpmaxq_u8, vpmaxq_u16, vpmaxq_u32, vpmax_f32, vpmaxq_f32, vpmaxq_f64,
22856 vpmaxqd_f64, vpmaxs_f32, vpmaxnm_f32, vpmaxnmq_f32, vpmaxnmq_f64,
22857 vpmaxnmqd_f64, vpmaxnms_f32, vpmin_s8, vpmin_s16, vpmin_s32, vpmin_u8,
22858 vpmin_u16, vpmin_u32, vpminq_s8, vpminq_s16, vpminq_s32, vpminq_u8,
22859 vpminq_u16, vpminq_u32, vpmin_f32, vpminq_f32, vpminq_f64, vpminqd_f64,
22860 vpmins_f32, vpminnm_f32, vpminnmq_f32, vpminnmq_f64, vpminnmqd_f64,
22861 vpminnms_f32): Rewrite using builtin functions.
22862
22863 2015-01-19 Thomas Schwinge <thomas@codesourcery.com>
22864
22865 PR libgomp/64625
22866 * omp-low.c (offload_symbol_decl): Remove variable.
22867 (get_offload_symbol_decl): Remove function.
22868 (expand_omp_target): For BUILT_IN_GOMP_TARGET,
22869 BUILT_IN_GOMP_TARGET_DATA, BUILT_IN_GOMP_TARGET_UPDATE pass NULL
22870 instead of &__OFFLOAD_TABLE__, for BUILT_IN_GOACC_DATA_START,
22871 BUILT_IN_GOACC_ENTER_EXIT_DATA, BUILT_IN_GOACC_PARALLEL,
22872 BUILT_IN_GOACC_UPDATE don't pass it at all.
22873
22874 2015-01-19 Ilya Enkovich <ilya.enkovich@intel.com>
22875
22876 * tree-sra.c (some_callers_have_mismatched_arguments_p): Allow thunk
22877 callers.
22878
22879 2015-01-19 Ilya Enkovich <ilya.enkovich@intel.com>
22880
22881 * ipa-chkp.c (chkp_produce_thunks): Add early param
22882 to split thunks production into two passes. Keep
22883 'always_inline' function bodies after the first pass.
22884 (pass_data_ipa_chkp_early_produce_thunks): New.
22885 (pass_ipa_chkp_early_produce_thunks): New.
22886 (pass_ipa_chkp_produce_thunks::execute): Adjust to new
22887 chkp_produce_thunks signature.
22888 (make_pass_ipa_chkp_early_produce_thunks): New.
22889 * passes.def (pass_ipa_chkp_early_produce_thunks): New.
22890 (pass_ipa_chkp_produce_thunks): Move after local optimizations.
22891 * tree-pass.h (make_pass_ipa_chkp_early_produce_thunks): New.
22892
22893 2015-01-18 Jan Hubicka <hubicka@ucw.cz>
22894
22895 * cgraph.c (cgraph_node::dump): Dump profile flags.
22896
22897 2015-01-18 Oleg Endo <olegendo@gcc.gnu.org>
22898
22899 PR target/64652
22900 * config/sh/sh.md (udivsi3_i4, divsi3_i4): Make use of sfunc address
22901 reg appear first in the parallel.
22902
22903 2015-01-18 Jan Hubicka <hubicka@ucw.cz>
22904
22905 * ipa-reference.c (set_reference_optimization_summary,
22906 ipa_reference_get_not_written_global): Do nothing if ipa-reference is
22907 disabled.
22908 (ignore_module_statics): New static var.
22909 (propagate_bits): If ipa-reference is disabled, do not look into local
22910 properties.
22911 (analyze_function): Disable analysis when ipa_reference is disabled.
22912 (generate_summary): Do not dump when reference is disabled;
22913 collect vars accessed from functions with ipa-reference disabled.
22914 (get_read_write_all_from_node): When ipa-reference is disabled, use the
22915 node flags.
22916 (gate): Enable for LTO.
22917 (ignore_edge_p): New function.
22918 (propagate): Skip functions w/o ipa-reference analysis.
22919 * optc-save-gen.awk: Handle optimize_debug correctly.
22920 * opth-gen.awk: Likewise.
22921 * common.opt (fauto-inc-dec, fdelete-dead-exceptions, ffunction-cse,
22922 fgraphite, fstrict-volatile-bitfields, fira-algorithm, fira-region,
22923 fira-share-save-slots, fira-share-spill-slots,
22924 fmodulo-sched-allow-regmoves, fpartial-inlining,
22925 sched-stalled-insns, fsched-stalled-insns-dep, fstrict-overflow,
22926 ftracer, ftree-parallelize-loops, fassociative-math,
22927 freciprocal-math, fvect-cost-model, fsimd-cost-model): Mark as
22928 Optimization
22929 (fauto-profile, fcommon, fdata-sections, fipa-icf-variables,
22930 ftoplevel-reorder, funit-at-a-time, fwhole-program): Do not mark as
22931 Optimization.
22932 * ipa-icf.c (gate, sem_item_optimizer::filter_removed_items):
22933 Fix for IPA.
22934
22935 2015-01-18 Jan Hubicka <hubicka@ucw.cz>
22936
22937 PR ipa/64378
22938 * ipa-prop.c (try_make_edge_direct_virtual_call): Clear speculative
22939 flag correctly.
22940 * ipa-cp.c (ipa_get_indirect_edge_target_1): Handle speculation.
22941
22942 2015-01-18 Sandra Loosemore <sandra@codesourcery.com>
22943
22944 * doc/invoke.texi ([-funroll-loops], [-funroll-all-loops]):
22945 Remove duplicate option listings.
22946
22947 2015-01-18 Felix Yang <felix.yang@huawei.com>
22948
22949 * auto-profile.c (afdo_find_equiv_class): Remove unnecessary test.
22950 (autofdo_source_profile::get_callsite_total_count,
22951 function_instance::get_function_instance_by_decl,
22952 string_table::get_index, string_table::get_index_by_decl,
22953 afdo_vpt_for_early_inline, afdo_callsite_hot_enough_for_early_inline):
22954 Fix comment typos. Reformatting and minor code rearrangement.
22955
22956 2015-01-17 Segher Boessenkool <segher@kernel.crashing.org>
22957
22958 * config/rs6000/rs6000.md (probe_stack): Delete.
22959 (probe_stack_address): New.
22960
22961 2015-01-17 Segher Boessenkool <segher@kernel.crashing.org>
22962
22963 * config/rs6000/rs6000.c (rs6000_gimplify_va_arg): Use TARGET_32BIT
22964 to test for 32-bit ABIs, not !TARGET_POWERPC64.
22965
22966 2015-01-17 Segher Boessenkool <segher@kernel.crashing.org>
22967
22968 * config/rs6000/rs6000.c (rs6000_parallel_return): New function.
22969 (rs6000_function_value): Use it. Handle SCmode and TCmode as well,
22970 for TARGET_32BIT && TARGET_POWERPC64. Fix another BITS_PER_WORD
22971 snafu.
22972 (rs6000_libcall_value): Use the new function.
22973
22974 2015-01-17 Sandra Loosemore <sandra@codesourcery.com>
22975
22976 * doc/invoke.texi ([-ftracer]): Remove duplicate option listing.
22977
22978 2015-01-17 Eric Botcazou <ebotcazou@adacore.com>
22979
22980 * reorg.c (fill_simple_delay_slots): If TARGET_FLAGS_REGNUM is valid,
22981 implement a more precise life analysis for it during backward scan.
22982
22983 2015-01-17 Jan Kratochvil <jan.kratochvil@redhat.com>
22984
22985 * dwarf2out.c (gen_producer_string): Ignore also OPT_fpreprocessed.
22986
22987 2015-01-17 Bernd Schmidt <bernds@codesourcery.com>
22988
22989 PR rtl-optimization/52773
22990 * calls.c (emit_library_call_value): When pushing arguments use
22991 stack_pointer_rtx rather than virtual_outgoing_args_rtx in
22992 CALL_INSN_FUNCTION_USAGE. Only emit one of use of the magic
22993 stack pointer reference into CALL_INSN_FUNCTION_USAGE.
22994
22995 2015-01-17 Jeff Law <law@redhat.com>
22996
22997 PR rtl-optimization/32790
22998 * reginfo.c (reg_scan_mark_refs): Look for ZERO_EXTRACT,
22999 not ZERO_EXTEND in SET_DESTs.
23000
23001 2015-01-17 Alan Modra <amodra@gmail.com>
23002
23003 * cprop.c (do_local_cprop): Revert last change.
23004
23005 2015-01-16 DJ Delorie <dj@redhat.com>
23006 Nick Clifton <nickc@redhat.com>
23007
23008 * config/rl78/rl78-real.md (addqi3_real): Allow volatiles.
23009 (addhi3_real): Likewise. Fix [HL+0] syntax.
23010 (subqi3_real): Likewise.
23011 (subhi3_real): Likewise.
23012 (cbranchqi4_real): Likewise. Allow saddr,#imm.
23013 (cbranchhi4_real): Likewise.
23014 (cbranchhi4_real_inverted): Likewise.
23015 (cbranchsi4_real_lt): Likewise.
23016 (cbranchsi4_real_ge): Likewise.
23017 (cbranchsi4_real_ge): Likewise.
23018 * config/rl78/rl78-virt.md (add<mode>3_virt): Likewise.
23019 (sub<mode>3_virt): Likewise.
23020 (cbranchqi4_virt): Likewise.
23021 (cbranchhi4_virt): Likewise.
23022 * config/rl78/rl78.c (rl78_print_operand_1): 'p' modifier means
23023 always use '[reg+imm]' even when imm is zero.
23024 * config/rl78/predicates.md (rl78_volatile_memory_operand): New.
23025 (rl78_general_operand): New.
23026 (rl78_nonimmediate_operand): New.
23027 (rl78_nonfar_operand): Use them.
23028 (rl78_nonfar_nonimm_operand): Likewise.
23029 (rl78_stack_based_mem): Fix.
23030 * config/rl78/constraints.md (Ibqi): New.
23031 (IBqi): New.
23032 (Wsa): New.
23033 (Wsf): New.
23034 (Cs1): Fix.
23035 * config/rl78/rl78-expand.md (andqi3): Accept volatiles.
23036 (iorqi3): Likewise.
23037 (xorqi3): Likewise.
23038 * config/rl78/rl78-protos.h (rl78_sfr_p): New.
23039
23040 * config/rl78/constrains (Qs8): New constraint.
23041 * config/rl78/rl78.c (rl78_flags_already_set): New function.
23042 * config/rl78/rl78-protos.h (rl78_flags_already_set): New prototype.
23043 * config/rl78/rl78-real.md (update_Z): New attribute.
23044 Update patterns to set it.
23045 (cbranchqi4_real): Call rl78_flags_already_set() to determine if a
23046 shorter compare and branch sequence can be used.
23047 (cbranchhi4_real): Likewise.
23048 (cbranchhi4_real_inverted): Likewise.
23049
23050 * config/rl78/predicates.md (uword_operand): Allow symbol_refs.
23051 * config/rl78/rl78-c.c (rl78_register_pragmas): Register __near
23052 address space.
23053 * config/rl78/rl78.c (rl78_get_name_encoding): New.
23054 (rl78_option_override): Allow -mes0 only if C.
23055 (characterize_address): Support subregs of symbol_refs.
23056 (rl78_addr_space_address_mode): Move. Add __near.
23057 (rl78_far_p): Likewise.
23058 (rl78_addr_space_pointer_mode): Likewise.
23059 (rl78_as_legitimate_address): Likewise.
23060 (rl78_addr_space_subset_p): Likewise.
23061 (rl78_addr_space_convert): Likewise.
23062 (rl78_print_operand_1): Support 16-bit addressing of 32-bit
23063 symbols with -mes0.
23064 (transcode_memory_rtx): Don't copy ES if -mes0. Allow symbol[BC]
23065 addressing.
23066 (rl78_alloc_physical_registers_op1): Change logic to prefer
23067 symbol[BC] addressing.
23068 (frodata_section): New.
23069 (rl78_asm_init_sections): Initialize it.
23070 (rl78_select_section): Put __far readonly symbols in .frodata.
23071 (rl78_make_type_far): New.
23072 (rl78_insert_attributes): Force all readonly symbols to be
23073 __far when -mes0.
23074 (rl78_asm_out_integer): New.
23075 * config/rl78/rl78.h (ADDR_SPACE_NEAR): New.
23076 * config/rl78/rl78.opt (-mes0): New.
23077
23078 * config/rl78/rl78.h (ASM_OUTPUT_LABELREF): New.
23079 (ASM_OUTPUT_ALIGNED_DECL_COMMON): New.
23080 (ASM_OUTPUT_ALIGNED_DECL_LOCAL): New.
23081 * config/rl78/rl78-protos.h (rl78_output_labelref): New.
23082 (rl78_saddr_p): New.
23083 (rl78_output_aligned_common): New.
23084 * config/rl78/rl78.c (rl78_output_symbol_ref): Strip encodings.
23085 (rl78_handle_saddr_attribute): New.
23086 (rl78_handle_naked_attribute): New.
23087 (rl78_attribute_table): Add saddr.
23088 (rl78_print_operand_1): Don't print '!' on saddr operands.
23089 (rl78_print_operand_1): Strip encodings.
23090 (rl78_sfr_p): New.
23091 (rl78_strip_name_encoding): New.
23092 (rl78_attrlist_to_encoding): New.
23093 (rl78_encode_section_info): New.
23094 (rl78_asm_init_sections): New.
23095 (rl78_select_section): New.
23096 (rl78_output_labelref): New.
23097 (rl78_output_aligned_common): New.
23098 (rl78_asm_out_integer): New.
23099 (rl78_asm_ctor_dtor): New.
23100 (rl78_asm_constructor): New.
23101 (rl78_asm_destructor): New.
23102
23103 * config/rl78/rl78-real.md (movqi_es): Rename to movqi_to_es.
23104 * config/rl78/rl78.c (rl78_expand_epilogue): Update.
23105 (transcode_memory_rtx): Update.
23106 (rl78_expand_epilogue): Use A_REG instead of 0.
23107
23108 2015-01-17 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
23109
23110 * config/arm/arm-protos.h (struct tune_params): New field
23111 sched_autopref_queue_depth.
23112 * config/arm/arm.c (sched-int.h): Include header.
23113 (arm_first_cycle_multipass_dfa_lookahead_guard,)
23114 (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD): Define hook.
23115 (arm_slowmul_tune, arm_fastmul_tune, arm_strongarm_tune,)
23116 (arm_xscale_tune, arm_9e_tune, arm_v6t2_tune, arm_cortex_tune,)
23117 (arm_cortex_a8_tune, arm_cortex_a7_tune, arm_cortex_a15_tune,)
23118 (arm_cortex_a53_tune, arm_cortex_a57_tune, arm_xgene1_tune,)
23119 (arm_cortex_a5_tune, arm_cortex_a9_tune, arm_cortex_a12_tune,)
23120 (arm_v7m_tune, arm_cortex_m7_tune, arm_v6m_tune, arm_fa726te_tune):
23121 Specify sched_autopref_queue_depth value. Enabled for A15 and A57.
23122 * config/arm/t-arm (arm.o): Update.
23123 * haifa-sched.c (update_insn_after_change): Update.
23124 (rank_for_schedule): Use auto-prefetcher model, if requested.
23125 (autopref_multipass_init): New static function.
23126 (autopref_rank_for_schedule): New rank_for_schedule heuristic.
23127 (autopref_multipass_dfa_lookahead_guard_started_dump_p): New static
23128 variable for debug dumps.
23129 (autopref_multipass_dfa_lookahead_guard_1): New static helper function.
23130 (autopref_multipass_dfa_lookahead_guard): New global function that
23131 implements TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD hook.
23132 (init_h_i_d): Update.
23133 * params.def (PARAM_SCHED_AUTOPREF_QUEUE_DEPTH): New tuning knob.
23134 * sched-int.h (enum autopref_multipass_data_status): New const enum.
23135 (autopref_multipass_data_): Structure for auto-prefetcher data.
23136 (autopref_multipass_data_def, autopref_multipass_data_t): New typedefs.
23137 (struct _haifa_insn_data:autopref_multipass_data): New field.
23138 (INSN_AUTOPREF_MULTIPASS_DATA): New access macro.
23139 (autopref_multipass_dfa_lookahead_guard): Declare.
23140
23141 2015-01-17 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
23142
23143 * rtlanal.c (get_base_term): Handle SCRATCH.
23144
23145 2015-01-17 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
23146
23147 * config/aarch64/aarch64.c
23148 (aarch64_sched_first_cycle_multipass_dfa_lookahead): Implement hook.
23149 (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD): Define.
23150 * config/arm/arm.c
23151 (arm_first_cycle_multipass_dfa_lookahead): Implement hook.
23152 (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD): Define.
23153
23154 2015-01-17 Alan Modra <amodra@gmail.com>
23155
23156 * cprop.c (do_local_cprop): Disallow replacement of fixed
23157 hard registers.
23158
23159 2015-01-16 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
23160
23161 PR target/62066
23162 * config/arm/arm-builtins.c (arm_expand_neon_args): Call va_end before
23163 early return 0.
23164
23165 2015-01-16 Bernd Edlinger <bernd.edlinger@hotmail.de>
23166
23167 * sanitizer.def (BUILT_IN_TSAN_VPTR_UPDATE): Fixed parameters.
23168 * tsan.c (instrument_expr): Fixed parameters of __tsan_vptr_update.
23169
23170 2015-01-16 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
23171
23172 * config/arm/arm.md: Move comment about splitting Thumb1 patterns to...
23173 * config/arm/thumb1.md: ... Here.
23174
23175 2015-01-16 Segher Boessenkool <segher@kernel.crashing.org>
23176
23177 * config/rs6000/rs6000.c (rs6000_scalar_mode_supported_p): Disallow
23178 TImode for TARGET_32BIT.
23179
23180 2015-01-16 Segher Boessenkool <segher@kernel.crashing.org>
23181
23182 * config/rs6000/rs6000.c (TARGET_LIBGCC_CMP_RETURN_MODE,
23183 TARGET_LIBGCC_SHIFT_COUNT_MODE, TARGET_UNWIND_WORD_MODE): Implement
23184 as ...
23185 (rs6000_abi_word_mode): New function.
23186
23187 2015-01-16 Segher Boessenkool <segher@kernel.crashing.org>
23188
23189 * config/rs6000/rs6000.c (rs6000_va_start): Use MIN_UNITS_PER_WORD
23190 instead of UNITS_PER_WORD to describe the size of stack slots.
23191
23192 2015-01-16 Segher Boessenkool <segher@kernel.crashing.org>
23193
23194 * config/rs6000/rs6000.c (TARGET_PROMOTE_FUNCTION_MODE): Implement
23195 as rs6000_promote_function_mode. Move comment to there.
23196 (rs6000_promote_function_mode): New function.
23197
23198 2015-01-16 Segher Boessenkool <segher@kernel.crashing.org>
23199
23200 * config/rs6000/rs6000.h (PROMOTE_MODE): Correct test for when -m32
23201 -mpowerpc64 is active.
23202
23203 2015-01-16 Ilya Enkovich <ilya.enkovich@intel.com>
23204
23205 PR middle-end/64353
23206 * tree-cfg.c (pass_data_fixup_cfg): Update SSA for
23207 virtuals on start.
23208
23209 2015-01-16 James Greenhalgh <james.greenhalgh@arm.com>
23210
23211 * config/arm/cortex-a57.md: Remove duplicate of file accidentally
23212 introduced in revision 219724.
23213
23214 2015-01-16 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
23215 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
23216
23217 PR target/64263
23218 * config/aarch64/aarch64.md (*movsi_aarch64): Don't split if the
23219 destination is not a GP reg.
23220 (*movdi_aarch64): Likewise.
23221
23222 2015-01-16 David Edelsohn <dje.gcc@gmail.com>
23223
23224 PR target/64623
23225 * config/rs6000/default64.h: Revert ISA change.
23226
23227 2015-01-16 Richard Biener <rguenther@suse.de>
23228
23229 PR middle-end/64614
23230 * tree-ssa-uninit.c: Include tree-cfg.h.
23231 (MAX_SWITCH_CASES): New define.
23232 (convert_control_dep_chain_into_preds): Handle switch statements.
23233 (is_pred_expr_subset_of): Handle x == CST vs. (x & CST) != 0.
23234 (normalize_one_pred_1): Do not split bit-manipulations.
23235 Record (x & CST).
23236
23237 2015-01-16 Richard Biener <rguenther@suse.de>
23238
23239 PR tree-optimization/64568
23240 * tree-ssa-forwprop.c (pass_forwprop::execute): Guard
23241 complex load rewriting for TARGET_MEM_REFs.
23242
23243 2015-01-16 Uros Bizjak <ubizjak@gmail.com>
23244
23245 * builtins.c (expand_builtin_acc_on_device): Check target for NULL.
23246
23247 2015-01-16 Matthew Wahab <matthew.wahab@arm.com>
23248
23249 PR target/64149
23250 * config/aarch64/aarch64.opt: Remove lra option and aarch64_lra_flag
23251 variable.
23252 * config/aarch64/aarch64.c (TARGET_LRA_P): Set to hook_bool_void_true.
23253 (aarch64_lra_p): Remove.
23254
23255 2015-01-16 Ilya Enkovich <ilya.enkovich@intel.com>
23256
23257 PR target/64363
23258 * ipa-chkp.h (chkp_instrumentable_p): New.
23259 * ipa-chkp.c: Include tree-inline.h.
23260 (chkp_instrumentable_p): New.
23261 (chkp_maybe_create_clone): Use chkp_instrumentable_p.
23262 Fix processing of not instrumentable functions.
23263 (chkp_versioning): Use chkp_instrumentable_p. Warn about
23264 not instrumentable functions.
23265 * tree-chkp.c (chkp_add_bounds_to_call_stmt): Use
23266 chkp_instrumentable_p.
23267 * tree-inline.h (copy_forbidden): New.
23268 * tree-inline.c (copy_forbidden): Not static anymore.
23269
23270 2015-01-16 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
23271
23272 * optc-save-gen.awk (cl_target_option_print_diff): Mark indent,
23273 ptr1, ptr2 unused.
23274
23275 2015-01-16 Robert Suchanek <robert.suchanek@imgtec.com>
23276
23277 * lra-constraints.c (curr_insn_transform): Change a reload pseudo of
23278 type OP_OUT to OP_INOUT.
23279
23280 2015-01-16 Robert Suchanek <robert.suchanek@imgtec.com>
23281
23282 * simplify-rtx.c (simplify_replace_fn_rtx): Simplify (lo_sum
23283 (high x) y) to y if x and y have the same base.
23284
23285 2015-01-16 James Greenhalgh <james.greenhalgh@arm.com>
23286
23287 * config/arm/cortex-a57.md: New.
23288 * config/aarch64/aarch64.md: Include it.
23289 * config/aarch64/aarch64-cores.def (cortex-a57): Tune for it.
23290 * config/aarch64/aarch64-tune.md: Regenerate.
23291
23292 2015-01-16 Zhenqiang Chen <zhenqiang.chen@arm.com>
23293
23294 PR target/64015
23295 * ccmp.c (expand_ccmp_next): New function.
23296 (expand_ccmp_expr_1, expand_ccmp_expr): Handle operand insn sequence
23297 and compare insn sequence.
23298 * config/aarch64/aarch64.c (aarch64_code_to_ccmode,
23299 aarch64_gen_ccmp_first, aarch64_gen_ccmp_next): New functions.
23300 (TARGET_GEN_CCMP_FIRST, TARGET_GEN_CCMP_NEXT): New MICRO.
23301 * config/aarch64/aarch64.md (*ccmp_and): Changed to ccmp_and<mode>.
23302 (*ccmp_ior): Changed to ccmp_ior<mode>.
23303 (cmp<mode>): New pattern.
23304 * doc/tm.texi (TARGET_GEN_CCMP_FIRST, TARGET_GEN_CCMP_NEXT): Update
23305 parameters.
23306 * target.def (gen_ccmp_first, gen_ccmp_next): Update parameters.
23307
23308 2015-01-16 Ilya Tocar <ilya.tocar@intel.com>
23309
23310 * config/i386/avx2intrin.h (_mm256_bslli_epi128,
23311 _mm256_bsrli_epi128): New.
23312 * config/i386/emmintrin.h (_mm_bsrli_si128, _mm_bslli_si128): Ditto.
23313
23314 2015-01-15 Jiong Wang <jiong.wang@arm.com>
23315
23316 * expmed.c (store_bit_field_using_insv): Improve warning message.
23317 Use %wu instead of HOST_WIDE_INT_PRINT_UNSIGNED.
23318
23319 2015-01-15 Jiong Wang <jiong.wang@arm.com>
23320
23321 PR rtl-optimization/64011
23322 * expmed.c (store_bit_field_using_insv): Warn and truncate bitsize when
23323 there is partial overflow.
23324
23325 2015-01-16 Chung-Ju Wu <jasonwucj@gmail.com>
23326
23327 * config/nds32/nds32-protos.h (nds32_expand_epilogue): Change
23328 prototype.
23329 (nds32_expand_epilogue_v3pop): Likewise.
23330 * config/nds32/nds32.md (sibcall): Define this for sibling call
23331 optimization.
23332 (sibcall_register): Likewise.
23333 (sibcall_immediate): Likewise.
23334 (sibcall_value): Likewise.
23335 (sibcall_value_register): Likewise.
23336 (sibcall_value_immediate): Likewise.
23337 (sibcall_epilogue): Likewise.
23338 (epilogue): Pass false to indicate this is not a sibcall epilogue.
23339 * config/nds32/nds32.c (nds32_expand_epilogue): Consider sibcall case.
23340 (nds32_expand_epilogue_v3pop): Likewise.
23341
23342 2015-01-16 Chung-Ju Wu <jasonwucj@gmail.com>
23343
23344 * config/nds32/nds32-protos.h (nds32_can_use_return_insn): New.
23345 * config/nds32/nds32.md (unspec_volatile_func_return): Remove.
23346 (return_internal): New.
23347 (return): Define this named pattern.
23348 (simple_return): Define this named pattern.
23349 * config/nds32/nds32.c (nds32_expand_epilogue): Emit return_internal
23350 pattern instead of unspec_volatile_func_return.
23351 (nds32_expand_epilogue_v3pop): Likewise.
23352 (nds32_can_use_return_insn): New function.
23353
23354 2015-01-16 Chung-Ju Wu <jasonwucj@gmail.com>
23355
23356 * config/nds32/constants.md (UNSPEC_VOLATILE_POP25_RETURN): New.
23357 * config/nds32/nds32.md (pop25return): New.
23358 * config/nds32/nds32.c (nds32_expand_epilogue_v3pop): Emit
23359 pop25return pattern.
23360
23361 2015-01-16 Chung-Ju Wu <jasonwucj@gmail.com>
23362
23363 * doc/invoke.texi (NDS32 Options): Remove -mforce-fp-as-gp,
23364 -mforbid-fp-as-gp, and -mex9 options.
23365
23366 2015-01-16 Chung-Ju Wu <jasonwucj@gmail.com>
23367
23368 * doc/invoke.texi (NDS32 Options): Add -mcmodel= option and
23369 remove -mgp-direct option.
23370
23371 2015-01-15 Jan Hubicka <hubicka@ucw.cz>
23372
23373 * doc/invoke.texi (--param early-inlining-insns): Update default value.
23374 * params.def (PARAM_EARLY_INLINING_INSNS): Set to 14.
23375
23376 2015-01-15 Jan Hubicka <hubicka@ucw.cz>
23377
23378 * ipa-inline.c (inline_small_functions): Work around hints
23379 cache issue.
23380
23381 2015-01-15 Sandra Loosemore <sandra@codesourcery.com>
23382
23383 PR target/59710
23384 * doc/invoke.texi (Option Summary): Document new Nios II
23385 -mgpopt= syntax.
23386 (Nios II Options): Likewise.
23387 * config/nios2/nios2.opt: Add -mgpopt= option support.
23388 Modify existing -mgpopt and -mno-gpopt options to be aliases.
23389 * config/nios2/nios2-opts.h (enum nios2_gpopt_type): New.
23390 * config/nios2/nios2.c (nios2_option_override): Adjust
23391 -mgpopt defaulting.
23392 (nios2_in_small_data_p): Return true for explicit small data
23393 sections even with -G0.
23394 (nios2_symbol_ref_in_small_data_p): Adjust to handle new -mgpopt=
23395 option choices.
23396
23397 2015-01-15 Jan Hubicka <hubicka@ucw.cz>
23398
23399 PR ipa/64612
23400 * ipa-inline-transform.c (can_remove_node_now_p): Fix handling
23401 of comdat locals.
23402 (inline_call): Fix removal of aliases.
23403
23404 2015-01-15 Jakub Jelinek <jakub@redhat.com>
23405
23406 * flag-types.h (enum sanitize_code): Add SANITIZE_VPTR,
23407 include SANITIZE_VPTR in SANITIZE_UNDEFINED.
23408 * opts.c (common_handle_option): Add -fsanitize=vptr.
23409 * sanitizer.def (BUILT_IN_UBSAN_HANDLE_DYNAMIC_TYPE_CACHE_MISS,
23410 BUILT_IN_UBSAN_HANDLE_DYNAMIC_TYPE_CACHE_MISS_ABORT): New.
23411 * ubsan.h (enum ubsan_null_ckind): Add UBSAN_DOWNCAST_POINTER,
23412 UBSAN_DOWNCAST_REFERENCE, UBSAN_UPCAST and UBSAN_CAST_TO_VBASE.
23413 (ubsan_expand_vptr_ifn): New prototype.
23414 * internal-fn.c (expand_ANNOTATE, expand_GOMP_SIMD_LANE,
23415 expand_GOMP_SIMD_VF, expand_GOMP_SIMD_LAST_LANE, expand_UBSAN_NULL,
23416 expand_UBSAN_BOUNDS, expand_UBSAN_OBJECT_SIZE, expand_ASAN_CHECK,
23417 expand_LOOP_VECTORIZED): Make argument nameless, remove
23418 ATTRIBUTE_UNUSED.
23419 (expand_UBSAN_VPTR): New function.
23420 * internal-fn.def (UBSAN_NULL, ASAN_CHECK): Use R instead of W
23421 in fn spec.
23422 (UBSAN_VPTR): New internal function.
23423 * sanopt.c (tree_map_traits): Renamed to ...
23424 (sanopt_tree_map_traits): ... this.
23425 (sanopt_tree_triplet, sanopt_tree_triplet_map_traits): New classes.
23426 (sanopt_ctx): Adjust asan_check_map type for tree_map_traits
23427 to sanopt_tree_map_traits renaming. Add vptr_check_map field.
23428 (maybe_optimize_ubsan_vptr_ifn): New function.
23429 (sanopt_optimize_walker): Handle IFN_UBSAN_VPTR.
23430 (pass_sanopt::execute): Likewise. Call sanopt_optimize even for
23431 -fsanitize=vptr.
23432 * tree-ssa-alias.c (call_may_clobber_ref_p_1): Handle certain
23433 internal calls like pure functions for aliasing, even when they
23434 have other side-effects that prevent making them ECF_PURE.
23435 * ubsan.c (ubsan_vptr_type_cache_decl): New variable.
23436 (ubsan_expand_vptr_ifn): New function.
23437
23438 2015-01-15 Vladimir Makarov <vmakarov@redhat.com>
23439
23440 PR rtl-optimization/64110
23441 * stmt.c (parse_output_constraint): Process '^' and '$'.
23442 (parse_input_constraint): Ditto.
23443 * lra-constraints.c (process_alt_operands): Process the new
23444 constraints.
23445 * ira-costs.c (record_reg_classes): Process the new constraint
23446 '^'.
23447 * genoutput.c (indep_constraints): Add '^' and '$'.
23448 * config/i386/sse.md (*vec_dup<mode>): Use '$' instead of '!'.
23449 * doc/md.texi: Add description of the new constraints.
23450
23451 2015-01-15 Thomas Schwinge <thomas@codesourcery.com>
23452 Bernd Schmidt <bernds@codesourcery.com>
23453 Cesar Philippidis <cesar@codesourcery.com>
23454 James Norris <jnorris@codesourcery.com>
23455 Tom de Vries <tom@codesourcery.com>
23456 Ilmir Usmanov <i.usmanov@samsung.com>
23457 Dmitry Bocharnikov <dmitry.b@samsung.com>
23458 Evgeny Gavrin <e.gavrin@samsung.com>
23459 Jakub Jelinek <jakub@redhat.com>
23460
23461 * builtin-types.def (BT_FN_VOID_INT_INT_VAR)
23462 (BT_FN_VOID_INT_PTR_SIZE_PTR_PTR_PTR_INT_INT_VAR)
23463 (BT_FN_VOID_INT_OMPFN_PTR_SIZE_PTR_PTR_PTR_INT_INT_INT_INT_INT_VAR):
23464 New function types.
23465 * builtins.c: Include "gomp-constants.h".
23466 (expand_builtin_acc_on_device): New function.
23467 (expand_builtin, is_inexpensive_builtin): Handle
23468 BUILT_IN_ACC_ON_DEVICE.
23469 * builtins.def (DEF_GOACC_BUILTIN, DEF_GOACC_BUILTIN_COMPILER):
23470 New macros.
23471 * cgraph.c (cgraph_node::create): Consider flag_openacc next to
23472 flag_openmp.
23473 * config.gcc <nvptx-*> (tm_file): Add nvptx/offload.h.
23474 <*-intelmic-* | *-intelmicemul-*> (tm_file): Add
23475 i386/intelmic-offload.h.
23476 * gcc.c (LINK_COMMAND_SPEC, GOMP_SELF_SPECS): For -fopenacc, link
23477 to libgomp and its dependencies.
23478 * config/arc/arc.h (LINK_COMMAND_SPEC): Likewise.
23479 * config/darwin.h (LINK_COMMAND_SPEC_A): Likewise.
23480 * config/i386/mingw32.h (GOMP_SELF_SPECS): Likewise.
23481 * config/ia64/hpux.h (LIB_SPEC): Likewise.
23482 * config/pa/pa-hpux11.h (LIB_SPEC): Likewise.
23483 * config/pa/pa64-hpux.h (LIB_SPEC): Likewise.
23484 * doc/generic.texi: Update for OpenACC changes.
23485 * doc/gimple.texi: Likewise.
23486 * doc/invoke.texi: Likewise.
23487 * doc/sourcebuild.texi: Likewise.
23488 * gimple-pretty-print.c (dump_gimple_omp_for): Handle
23489 GF_OMP_FOR_KIND_OACC_LOOP.
23490 (dump_gimple_omp_target): Handle GF_OMP_TARGET_KIND_OACC_KERNELS,
23491 GF_OMP_TARGET_KIND_OACC_PARALLEL, GF_OMP_TARGET_KIND_OACC_DATA,
23492 GF_OMP_TARGET_KIND_OACC_UPDATE,
23493 GF_OMP_TARGET_KIND_OACC_ENTER_EXIT_DATA.
23494 Dump more data.
23495 * gimple.c: Update comments for OpenACC changes.
23496 * gimple.def: Likewise.
23497 * gimple.h: Likewise.
23498 (enum gf_mask): Add GF_OMP_FOR_KIND_OACC_LOOP,
23499 GF_OMP_TARGET_KIND_OACC_PARALLEL, GF_OMP_TARGET_KIND_OACC_KERNELS,
23500 GF_OMP_TARGET_KIND_OACC_DATA, GF_OMP_TARGET_KIND_OACC_UPDATE,
23501 GF_OMP_TARGET_KIND_OACC_ENTER_EXIT_DATA.
23502 (gimple_omp_for_cond, gimple_omp_for_set_cond): Sort in the
23503 appropriate place.
23504 (is_gimple_omp_oacc, is_gimple_omp_offloaded): New functions.
23505 * gimplify.c: Include "gomp-constants.h".
23506 Update comments for OpenACC changes.
23507 (is_gimple_stmt): Handle OACC_PARALLEL, OACC_KERNELS, OACC_DATA,
23508 OACC_HOST_DATA, OACC_DECLARE, OACC_UPDATE, OACC_ENTER_DATA,
23509 OACC_EXIT_DATA, OACC_CACHE, OACC_LOOP.
23510 (gimplify_scan_omp_clauses, gimplify_adjust_omp_clauses): Handle
23511 OMP_CLAUSE__CACHE_, OMP_CLAUSE_ASYNC, OMP_CLAUSE_WAIT,
23512 OMP_CLAUSE_NUM_GANGS, OMP_CLAUSE_NUM_WORKERS,
23513 OMP_CLAUSE_VECTOR_LENGTH, OMP_CLAUSE_GANG, OMP_CLAUSE_WORKER,
23514 OMP_CLAUSE_VECTOR, OMP_CLAUSE_DEVICE_RESIDENT,
23515 OMP_CLAUSE_USE_DEVICE, OMP_CLAUSE_INDEPENDENT, OMP_CLAUSE_AUTO,
23516 OMP_CLAUSE_SEQ.
23517 (gimplify_adjust_omp_clauses_1, gimplify_adjust_omp_clauses): Use
23518 GOMP_MAP_* instead of OMP_CLAUSE_MAP_*. Use
23519 OMP_CLAUSE_SET_MAP_KIND.
23520 (gimplify_oacc_cache): New function.
23521 (gimplify_omp_for): Handle OACC_LOOP.
23522 (gimplify_omp_workshare): Handle OACC_KERNELS, OACC_PARALLEL,
23523 OACC_DATA.
23524 (gimplify_omp_target_update): Handle OACC_ENTER_DATA,
23525 OACC_EXIT_DATA, OACC_UPDATE.
23526 (gimplify_expr): Handle OACC_LOOP, OACC_CACHE, OACC_HOST_DATA,
23527 OACC_DECLARE, OACC_KERNELS, OACC_PARALLEL, OACC_DATA,
23528 OACC_ENTER_DATA, OACC_EXIT_DATA, OACC_UPDATE.
23529 (gimplify_body): Consider flag_openacc next to flag_openmp.
23530 * lto-streamer-out.c: Include "gomp-constants.h".
23531 * omp-builtins.def (BUILT_IN_ACC_GET_DEVICE_TYPE)
23532 (BUILT_IN_GOACC_DATA_START, BUILT_IN_GOACC_DATA_END)
23533 (BUILT_IN_GOACC_ENTER_EXIT_DATA, BUILT_IN_GOACC_PARALLEL)
23534 (BUILT_IN_GOACC_UPDATE, BUILT_IN_GOACC_WAIT)
23535 (BUILT_IN_GOACC_GET_THREAD_NUM, BUILT_IN_GOACC_GET_NUM_THREADS)
23536 (BUILT_IN_ACC_ON_DEVICE): New builtins.
23537 * omp-low.c: Include "gomp-constants.h".
23538 Update comments for OpenACC changes.
23539 (struct omp_context): Add reduction_map, gwv_below, gwv_this
23540 members.
23541 (extract_omp_for_data, use_pointer_for_field, install_var_field)
23542 (new_omp_context, delete_omp_context, scan_sharing_clauses)
23543 (create_omp_child_function, scan_omp_for, scan_omp_target)
23544 (check_omp_nesting_restrictions, lower_reduction_clauses)
23545 (build_omp_regions_1, diagnose_sb_0, make_gimple_omp_edges):
23546 Update for OpenACC changes.
23547 (scan_sharing_clauses): Handle OMP_CLAUSE_NUM_GANGS:
23548 OMP_CLAUSE_NUM_WORKERS: OMP_CLAUSE_VECTOR_LENGTH,
23549 OMP_CLAUSE_ASYNC, OMP_CLAUSE_WAIT, OMP_CLAUSE_GANG,
23550 OMP_CLAUSE_WORKER, OMP_CLAUSE_VECTOR, OMP_CLAUSE_DEVICE_RESIDENT,
23551 OMP_CLAUSE_USE_DEVICE, OMP_CLAUSE__CACHE_, OMP_CLAUSE_INDEPENDENT,
23552 OMP_CLAUSE_AUTO, OMP_CLAUSE_SEQ. Use GOMP_MAP_* instead of
23553 OMP_CLAUSE_MAP_*.
23554 (expand_omp_for_static_nochunk, expand_omp_for_static_chunk):
23555 Handle GF_OMP_FOR_KIND_OACC_LOOP.
23556 (expand_omp_target, lower_omp_target): Handle
23557 GF_OMP_TARGET_KIND_OACC_PARALLEL, GF_OMP_TARGET_KIND_OACC_KERNELS,
23558 GF_OMP_TARGET_KIND_OACC_UPDATE,
23559 GF_OMP_TARGET_KIND_OACC_ENTER_EXIT_DATA,
23560 GF_OMP_TARGET_KIND_OACC_DATA.
23561 (pass_expand_omp::execute, execute_lower_omp)
23562 (pass_diagnose_omp_blocks::gate): Consider flag_openacc next to
23563 flag_openmp.
23564 (offload_symbol_decl): New variable.
23565 (oacc_get_reduction_array_id, oacc_max_threads)
23566 (get_offload_symbol_decl, get_base_type, lookup_oacc_reduction)
23567 (maybe_lookup_oacc_reduction, enclosing_target_ctx)
23568 (oacc_loop_or_target_p, oacc_lower_reduction_var_helper)
23569 (oacc_gimple_assign, oacc_initialize_reduction_data)
23570 (oacc_finalize_reduction_data, oacc_process_reduction_data): New
23571 functions.
23572 (is_targetreg_ctx): Remove function.
23573 * tree-core.h (enum omp_clause_code): Add OMP_CLAUSE__CACHE_,
23574 OMP_CLAUSE_DEVICE_RESIDENT, OMP_CLAUSE_USE_DEVICE,
23575 OMP_CLAUSE_GANG, OMP_CLAUSE_ASYNC, OMP_CLAUSE_WAIT,
23576 OMP_CLAUSE_AUTO, OMP_CLAUSE_SEQ, OMP_CLAUSE_INDEPENDENT,
23577 OMP_CLAUSE_WORKER, OMP_CLAUSE_VECTOR, OMP_CLAUSE_NUM_GANGS,
23578 OMP_CLAUSE_NUM_WORKERS, OMP_CLAUSE_VECTOR_LENGTH.
23579 * tree.c (omp_clause_code_name, walk_tree_1): Update accordingly.
23580 * tree.h (OMP_CLAUSE_GANG_EXPR, OMP_CLAUSE_GANG_STATIC_EXPR)
23581 (OMP_CLAUSE_ASYNC_EXPR, OMP_CLAUSE_WAIT_EXPR)
23582 (OMP_CLAUSE_VECTOR_EXPR, OMP_CLAUSE_WORKER_EXPR)
23583 (OMP_CLAUSE_NUM_GANGS_EXPR, OMP_CLAUSE_NUM_WORKERS_EXPR)
23584 (OMP_CLAUSE_VECTOR_LENGTH_EXPR): New macros.
23585 * tree-core.h: Update comments for OpenACC changes.
23586 (enum omp_clause_map_kind): Remove.
23587 (struct tree_omp_clause): Change type of map_kind member from enum
23588 omp_clause_map_kind to unsigned char.
23589 * tree-inline.c: Update comments for OpenACC changes.
23590 * tree-nested.c: Likewise. Include "gomp-constants.h".
23591 (convert_nonlocal_reference_stmt, convert_local_reference_stmt)
23592 (convert_tramp_reference_stmt, convert_gimple_call): Update for
23593 OpenACC changes. Use GOMP_MAP_* instead of OMP_CLAUSE_MAP_*. Use
23594 OMP_CLAUSE_SET_MAP_KIND.
23595 * tree-pretty-print.c: Include "gomp-constants.h".
23596 (dump_omp_clause): Handle OMP_CLAUSE_DEVICE_RESIDENT,
23597 OMP_CLAUSE_USE_DEVICE, OMP_CLAUSE__CACHE_, OMP_CLAUSE_GANG,
23598 OMP_CLAUSE_ASYNC, OMP_CLAUSE_AUTO, OMP_CLAUSE_SEQ,
23599 OMP_CLAUSE_WAIT, OMP_CLAUSE_WORKER, OMP_CLAUSE_VECTOR,
23600 OMP_CLAUSE_NUM_GANGS, OMP_CLAUSE_NUM_WORKERS,
23601 OMP_CLAUSE_VECTOR_LENGTH, OMP_CLAUSE_INDEPENDENT. Use GOMP_MAP_*
23602 instead of OMP_CLAUSE_MAP_*.
23603 (dump_generic_node): Handle OACC_PARALLEL, OACC_KERNELS,
23604 OACC_DATA, OACC_HOST_DATA, OACC_DECLARE, OACC_UPDATE,
23605 OACC_ENTER_DATA, OACC_EXIT_DATA, OACC_CACHE, OACC_LOOP.
23606 * tree-streamer-in.c: Include "gomp-constants.h".
23607 (unpack_ts_omp_clause_value_fields) Use GOMP_MAP_* instead of
23608 OMP_CLAUSE_MAP_*. Use OMP_CLAUSE_SET_MAP_KIND.
23609 * tree-streamer-out.c: Include "gomp-constants.h".
23610 (pack_ts_omp_clause_value_fields): Use GOMP_MAP_* instead of
23611 OMP_CLAUSE_MAP_*.
23612 * tree.def (OACC_PARALLEL, OACC_KERNELS, OACC_DATA)
23613 (OACC_HOST_DATA, OACC_LOOP, OACC_CACHE, OACC_DECLARE)
23614 (OACC_ENTER_DATA, OACC_EXIT_DATA, OACC_UPDATE): New tree codes.
23615 * tree.c (omp_clause_num_ops): Update accordingly.
23616 * tree.h (OMP_BODY, OMP_CLAUSES, OMP_LOOP_CHECK, OMP_CLAUSE_SIZE):
23617 Likewise.
23618 (OACC_PARALLEL_BODY, OACC_PARALLEL_CLAUSES, OACC_KERNELS_BODY)
23619 (OACC_KERNELS_CLAUSES, OACC_DATA_BODY, OACC_DATA_CLAUSES)
23620 (OACC_HOST_DATA_BODY, OACC_HOST_DATA_CLAUSES, OACC_CACHE_CLAUSES)
23621 (OACC_DECLARE_CLAUSES, OACC_ENTER_DATA_CLAUSES)
23622 (OACC_EXIT_DATA_CLAUSES, OACC_UPDATE_CLAUSES)
23623 (OACC_KERNELS_COMBINED, OACC_PARALLEL_COMBINED): New macros.
23624 * tree.h (OMP_CLAUSE_MAP_KIND): Cast it to enum gomp_map_kind.
23625 (OMP_CLAUSE_SET_MAP_KIND): New macro.
23626 * varpool.c (varpool_node::get_create): Consider flag_openacc next
23627 to flag_openmp.
23628 * config/i386/intelmic-offload.h: New file.
23629 * config/nvptx/offload.h: Likewise.
23630
23631 2015-01-15 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
23632
23633 * explow.h: Remove duplicate contents.
23634 * dojump.h: Likewise.
23635
23636 2015-01-15 Richard Earnshaw <rearnsha@arm.com>
23637
23638 * arm.c (arm_xgene_tune): Add default initializer for instruction
23639 fusion.
23640
23641 2015-01-15 Jan Hubicka <hubicka@ucw.cz>
23642
23643 PR ipa/64068
23644 PR ipa/64559
23645 * ipa.c (symbol_table::remove_unreachable_nodes):
23646 Do not put abstract origins into boundary.
23647
23648 2015-01-15 Evgeny Stupachenko <evstupac@gmail.com>
23649
23650 * config/i386/gnu-user.h (CRT_GET_RFIB_DATA): Remove EBX register usage.
23651 * config/i386/sysv4.h (CRT_GET_RFIB_DATA): Ditto.
23652
23653 2015-01-15 Steve Ellcey <sellcey@mips.com>
23654
23655 * Makefile.in (PLUGIN_HEADERS): Add dominance.h, cfg.h, cfgrtl.h,
23656 cfganal.h, cfgbuild.h, cfgcleanup.h, lcm.h, cfgloopmanip.h,
23657 builtins.def, and chkp-builtins.def.
23658
23659 2015-01-15 David Edelsohn <dje.gcc@gmail.com>
23660
23661 * config/rs6000/default64.h (TARGET_DEFAULT) [LITTLE_ENDIAN]: Use
23662 ISA 2.7 (POWER8).
23663
23664 2015-01-15 Richard Biener <rguenther@suse.de>
23665
23666 PR tree-optimization/61743
23667 * tree-ssa-pre.c (insert_into_preds_of_block): Preserve range
23668 information on PHIs for some simple cases.
23669
23670 2015-01-15 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
23671
23672 * config/arm/arm.md (generic_sched): Specify xgene1 in 'no' list.
23673 Include xgene1.md.
23674 * config/arm/arm.c (arm_issue_rate): Specify 4 for xgene1.
23675 * config/arm/arm-cores.def (xgene1): New entry.
23676 * config/arm/arm-tables.opt: Regenerate.
23677 * config/arm/arm-tune.md: Regenerate.
23678 * config/arm/bpabi.h (BE8_LINK_SPEC): Specify mcpu=xgene1.
23679
23680 2015-01-15 Yuri Rumyantsev <ysrumyan@gmail.com>
23681
23682 * tree-if-conv.c: Include hash-map.h.
23683 (aggressive_if_conv): New variable.
23684 (fold_build_cond_expr): Add simplification of non-zero condition.
23685 (add_to_dst_predicate_list): Invoke add_to_predicate_list if edge
23686 destination block is not always executed.
23687 (if_convertible_phi_p): Fix commentary, allow phi nodes have more
23688 than two predecessors if AGGRESSIVE_IF_CONV is true.
23689 (if_convertible_stmt_p): Fix commentary.
23690 (all_preds_critical_p): New function.
23691 (has_pred_critical_p): New function.
23692 (if_convertible_bb_p): Fix commentary, if AGGRESSIVE_IF_CONV is true
23693 BB can have more than two predecessors and all incoming edges can be
23694 critical.
23695 (predicate_bbs): Skip predication for loop exit block, use build2_loc
23696 to compute predicate for true edge.
23697 (find_phi_replacement_condition): Delete this function.
23698 (is_cond_scalar_reduction): Add arguments ARG_0, ARG_1 and EXTENDED.
23699 Allow interchange PHI arguments if EXTENDED is false.
23700 Change check that block containing reduction statement candidate
23701 is predecessor of phi-block since phi may have more than two arguments.
23702 (phi_args_hash_traits): New helper structure.
23703 (struct phi_args_hash_traits): New type.
23704 (phi_args_hash_traits::hash): New function.
23705 (phi_args_hash_traits::equal_keys): New function.
23706 (gen_phi_arg_condition): New function.
23707 (predicate_scalar_phi): Add handling of phi nodes with more than two
23708 arguments, delete COND and TRUE_BB arguments, insert body of
23709 find_phi_replacement_condition to predicate ordinary phi nodes.
23710 (predicate_all_scalar_phis): Skip blocks with the only predecessor,
23711 delete call of find_phi_replacement_condition and invoke
23712 predicate_scalar_phi with two arguments.
23713 (insert_gimplified_predicates): Add assert that non-predicated block
23714 don't have statements to insert.
23715 (ifcvt_split_critical_edges): New function.
23716 (ifcvt_split_def_stmt): Likewise.
23717 (ifcvt_walk_pattern_tree): Likewise.
23718 (stmt_is_root_of_bool_pattern): Likewise.
23719 (ifcvt_repair_bool_pattern): Likewise.
23720 (ifcvt_local_dce): Likewise.
23721 (tree_if_conversion): Add initialization of AGGRESSIVE_IF_CONV which
23722 is copy of inner or outer loop force_vectorize field, invoke
23723 ifcvt_split_critical_edges, ifcvt_local_dce and
23724 ifcvt_repair_bool_pattern for aggressive if-conversion.
23725
23726 2015-01-15 Philipp Tomsich <ptomsich@theobroma-systems.com>
23727
23728 * config/aarch64/aarch64.md: Include xgene1.md.
23729 * config/aarch64/xgene1.md: New file.
23730
23731 2015-01-15 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
23732
23733 * config/aarch64/aarch64-cores.def (xgene1): Update/add the
23734 xgene1 (APM XGene-1) core definition.
23735 * gcc/config/aarch64/aarch64.c: Add cost tables for APM XGene-1
23736 * config/arm/aarch-cost-tables.h: Add cost tables for APM XGene-1
23737 * doc/invoke.texi: Document -mcpu=xgene1.
23738
23739 2015-01-15 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
23740
23741 * dojump.h: New header file.
23742 * explow.h: Likewise.
23743 * expr.h: Remove includes.
23744 Move expmed.c prototypes to expmed.h.
23745 Move dojump.c prototypes to dojump.h.
23746 Move alias.c prototypes to alias.h.
23747 Move explow.c prototypes to explow.h.
23748 Move calls.c prototypes to calls.h.
23749 Move emit-rtl.c prototypes to emit-rtl.h.
23750 Move varasm.c prototypes to varasm.h.
23751 Move stmt.c prototypes to stmt.h.
23752 (saved_pending_stack_adjust): Move to dojump.h.
23753 (adjust_address): Move to explow.h.
23754 (adjust_address_nv): Move to emit-rtl.h.
23755 (adjust_bitfield_address): Likewise.
23756 (adjust_bitfield_address_size): Likewise.
23757 (adjust_bitfield_address_nv): Likewise.
23758 (adjust_automodify_address_nv): Likewise.
23759 * explow.c (expr_size): Move to expr.c.
23760 (int_expr_size): Likewise.
23761 (tree_expr_size): Likewise.
23762 Include calls.h dojump.h emit-rtl.h explow.h expmed.h
23763 fixed-value.h hashtab.h statistics.h stmt.h varasm.h.
23764 * genemit.c (main): Generate includes statistics.h, real.h,
23765 fixed-value.h, insn-config.h, expmed.h, dojump.h, explow.h, emit-rtl.h,
23766 stmt.h.
23767 * genopinit.c (main): Generate includes hashtab.h, hard-reg-set.h,
23768 function.h, statistics.h, real.h, fixed-value.h, expmed.h, dojump.h,
23769 explow.h, emit-rtl.h, stmt.h.
23770 * genoutput.c (main): Generate includes hashtab.h, statistics.h, real.h,
23771 fixed-value.h, expmed.h, dojump.h, explow.h, emit-rtl.h, stmt.h.
23772 * genemit.c (open_base_files): Generate includes flags.h, statistics.h,
23773 real.h, fixed-value.h, tree.h, expmed.h, dojump.h, explow.h, calls.h,
23774 emit-rtl.h, varasm.h, stmt.h.
23775 * config/tilepro/gen-mul-tables.cc: Generate includes hashtab.h,
23776 hash-set.h, vec.h, machmode.h, tm.h, hard-reg-set.h, input.h,
23777 function.h, rtl.h, flags.h, statistics.h, double-int.h, real.h,
23778 fixed-value.h, alias.h, wide-int.h, inchash.h, tree.h, insn-config.h,
23779 expmed.h, dojump.h, explow.h, calls.h, emit-rtl.h, varasm.h, stmt.h.
23780 * config/tilegx/mul-tables.c: Include alias.h calls.h dojump.h
23781 double-int.h emit-rtl.h explow.h expmed.h fixed-value.h flags.h
23782 function.h hard-reg-set.h hash-set.h hashtab.h inchash.h input.h
23783 insn-config.h machmode.h real.h rtl.h statistics.h stmt.h symtab.h
23784 tm.h tree.h varasm.h vec.h wide-int.h.
23785 * rtlhooks.c: Include alias.h calls.h dojump.h double-int.h emit-rtl.h
23786 explow.h expmed.h fixed-value.h flags.h function.h hard-reg-set.h
23787 hash-set.h hashtab.h inchash.h input.h insn-config.h machmode.h
23788 real.h statistics.h stmt.h tree.h varasm.h vec.h wide-int.h.
23789 * cfgloopanal.c: Include alias.h calls.h dojump.h double-int.h
23790 emit-rtl.h explow.h expmed.h fixed-value.h flags.h inchash.h
23791 insn-config.h real.h statistics.h stmt.h tree.h varasm.h wide-int.h.
23792 * loop-iv.c: Likewise.
23793 * lra-assigns.c: Include alias.h calls.h dojump.h double-int.h
23794 emit-rtl.h explow.h expmed.h fixed-value.h flags.h inchash.h real.h
23795 statistics.h stmt.h tree.h varasm.h wide-int.h.
23796 * lra-constraints.c: Likewise.
23797 * lra-eliminations.c: Likewise.
23798 * lra-lives.c: Likewise.
23799 * lra-remat.c: Likewise.
23800 * bt-load.c: Include alias.h calls.h dojump.h double-int.h emit-rtl.h
23801 explow.h expmed.h fixed-value.h inchash.h insn-config.h real.h
23802 statistics.h stmt.h tree.h varasm.h wide-int.h.
23803 * hw-doloop.c: Likewise.
23804 * ira-color.c: Likewise.
23805 * ira-emit.c: Likewise.
23806 * loop-doloop.c: Likewise.
23807 * loop-invariant.c: Likewise.
23808 * reload.c: Include alias.h calls.h dojump.h double-int.h emit-rtl.h
23809 explow.h expmed.h fixed-value.h inchash.h real.h rtl.h
23810 statistics.h stmt.h tree.h varasm.h wide-int.h.
23811 * caller-save.c: Include alias.h calls.h dojump.h double-int.h
23812 emit-rtl.h explow.h expmed.h fixed-value.h inchash.h real.h
23813 statistics.h stmt.h tree.h varasm.h wide-int.h.
23814 * combine-stack-adj.c: Likewise.
23815 * cse.c: Likewise.
23816 * ddg.c: Likewise.
23817 * ifcvt.c: Likewise.
23818 * ira-costs.c: Likewise.
23819 * jump.c: Likewise.
23820 * lra-coalesce.c: Likewise.
23821 * lra-spills.c: Likewise.
23822 * profile.c: Include alias.h calls.h dojump.h double-int.h emit-rtl.h
23823 explow.h expmed.h fixed-value.h insn-config.h real.h statistics.h
23824 stmt.h varasm.h wide-int.h.
23825 * lra.c: Include alias.h calls.h dojump.h double-int.h emit-rtl.h
23826 explow.h expmed.h fixed-value.h real.h statistics.h stmt.h
23827 varasm.h.
23828 * config/sh/sh_treg_combine.cc: Include alias.h calls.h dojump.h
23829 double-int.h explow.h expmed.h fixed-value.h flags.h real.h
23830 statistics.h stmt.h varasm.h wide-int.h.
23831 * reorg.c: Include alias.h calls.h dojump.h double-int.h explow.h
23832 expmed.h fixed-value.h inchash.h real.h statistics.h stmt.h tree.h
23833 varasm.h wide-int.h.
23834 * reload1.c: Include alias.h calls.h dojump.h double-int.h explow.h
23835 expmed.h fixed-value.h real.h rtl.h statistics.h stmt.h varasm.h.
23836 * config/tilegx/tilegx.c: Include alias.h dojump.h double-int.h
23837 emit-rtl.h explow.h expmed.h fixed-value.h flags.h real.h
23838 statistics.h stmt.h.
23839 * config/tilepro/tilepro.c: Likewise.
23840 * config/mmix/mmix.c: Include alias.h dojump.h double-int.h emit-rtl.h
23841 explow.h expmed.h fixed-value.h real.h statistics.h stmt.h.
23842 * config/pdp11/pdp11.c: Likewise.
23843 * config/xtensa/xtensa.c: Likewise.
23844 * config/lm32/lm32.c: Include alias.h dojump.h double-int.h emit-rtl.h
23845 explow.h expmed.h fixed-value.h real.h statistics.h stmt.h
23846 varasm.h.
23847 * tree-chkp.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
23848 fixed-value.h flags.h function.h hard-reg-set.h hashtab.h
23849 insn-config.h real.h rtl.h statistics.h stmt.h tm.h.
23850 * cilk-common.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
23851 fixed-value.h flags.h function.h hard-reg-set.h hashtab.h
23852 insn-config.h real.h rtl.h statistics.h stmt.h tm.h varasm.h.
23853 * rtl-chkp.c: Likewise.
23854 * tree-chkp-opt.c: Likewise.
23855 * config/arm/arm-builtins.c: Include calls.h dojump.h emit-rtl.h
23856 explow.h expmed.h fixed-value.h flags.h function.h hard-reg-set.h
23857 hashtab.h insn-config.h real.h statistics.h stmt.h varasm.h.
23858 * ipa-icf.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
23859 fixed-value.h flags.h hashtab.h insn-config.h real.h rtl.h
23860 statistics.h stmt.h.
23861 * tree-vect-data-refs.c: Likewise.
23862 * graphite-sese-to-poly.c: Include calls.h dojump.h emit-rtl.h explow.h
23863 expmed.h fixed-value.h flags.h hashtab.h insn-config.h real.h
23864 rtl.h statistics.h stmt.h varasm.h.
23865 * internal-fn.c: Likewise.
23866 * ipa-icf-gimple.c: Likewise.
23867 * lto-section-out.c: Likewise.
23868 * tree-data-ref.c: Likewise.
23869 * tree-nested.c: Likewise.
23870 * tree-outof-ssa.c: Likewise.
23871 * tree-predcom.c: Likewise.
23872 * tree-pretty-print.c: Likewise.
23873 * tree-scalar-evolution.c: Likewise.
23874 * tree-ssa-strlen.c: Likewise.
23875 * tree-vect-loop.c: Likewise.
23876 * tree-vect-patterns.c: Likewise.
23877 * tree-vect-slp.c: Likewise.
23878 * tree-vect-stmts.c: Likewise.
23879 * tsan.c: Likewise.
23880 * targhooks.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
23881 fixed-value.h flags.h hashtab.h insn-config.h real.h statistics.h
23882 stmt.h.
23883 * config/sh/sh-mem.cc: Include calls.h dojump.h emit-rtl.h explow.h
23884 expmed.h fixed-value.h flags.h hashtab.h insn-config.h real.h
23885 statistics.h stmt.h varasm.h.
23886 * loop-unroll.c: Likewise.
23887 * ubsan.c: Likewise.
23888 * tree-ssa-loop-prefetch.c: Include calls.h dojump.h emit-rtl.h explow.h
23889 expmed.h fixed-value.h flags.h hashtab.h real.h rtl.h statistics.h
23890 stmt.h varasm.h.
23891 * dse.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
23892 fixed-value.h function.h hashtab.h statistics.h stmt.h varasm.h.
23893 * tree-switch-conversion.c: Include calls.h dojump.h emit-rtl.h explow.h
23894 expmed.h fixed-value.h hashtab.h insn-config.h real.h rtl.h
23895 statistics.h stmt.h.
23896 * generic-match-head.c: Include calls.h dojump.h emit-rtl.h explow.h
23897 expmed.h fixed-value.h hashtab.h insn-config.h real.h rtl.h
23898 statistics.h stmt.h varasm.h.
23899 * gimple-match-head.c: Likewise.
23900 * lto-cgraph.c: Likewise.
23901 * lto-section-in.c: Likewise.
23902 * lto-streamer-in.c: Likewise.
23903 * lto-streamer-out.c: Likewise.
23904 * tree-affine.c: Likewise.
23905 * tree-cfg.c: Likewise.
23906 * tree-cfgcleanup.c: Likewise.
23907 * tree-if-conv.c: Likewise.
23908 * tree-into-ssa.c: Likewise.
23909 * tree-ssa-alias.c: Likewise.
23910 * tree-ssa-copyrename.c: Likewise.
23911 * tree-ssa-dse.c: Likewise.
23912 * tree-ssa-forwprop.c: Likewise.
23913 * tree-ssa-live.c: Likewise.
23914 * tree-ssa-math-opts.c: Likewise.
23915 * tree-ssa-pre.c: Likewise.
23916 * tree-ssa-sccvn.c: Likewise.
23917 * tree-tailcall.c: Likewise.
23918 * tree-vect-generic.c: Likewise.
23919 * tree-sra.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
23920 fixed-value.h hashtab.h insn-config.h real.h rtl.h stmt.h varasm.h.
23921 * stor-layout.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
23922 fixed-value.h hashtab.h insn-config.h real.h statistics.h stmt.h.
23923 * varasm.c: Likewise.
23924 * coverage.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
23925 fixed-value.h hashtab.h insn-config.h real.h statistics.h stmt.h
23926 varasm.h.
23927 * init-regs.c: Likewise.
23928 * ira.c: Likewise.
23929 * omp-low.c: Likewise.
23930 * stack-ptr-mod.c: Likewise.
23931 * tree-ssa-reassoc.c: Likewise.
23932 * tree-complex.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
23933 fixed-value.h hashtab.h insn-config.h rtl.h statistics.h stmt.h
23934 varasm.h.
23935 * dwarf2cfi.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
23936 fixed-value.h hashtab.h insn-config.h statistics.h stmt.h varasm.h.
23937 * shrink-wrap.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
23938 fixed-value.h hashtab.h real.h rtl.h statistics.h stmt.h.
23939 * recog.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
23940 fixed-value.h hashtab.h real.h rtl.h statistics.h stmt.h varasm.h.
23941 * tree-ssa-phiopt.c: Likewise.
23942 * config/darwin.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
23943 fixed-value.h hashtab.h real.h statistics.h stmt.h.
23944 * config/fr30/fr30.c: Likewise.
23945 * config/frv/frv.c: Likewise.
23946 * expr.c: Likewise.
23947 * final.c: Likewise.
23948 * optabs.c: Likewise.
23949 * passes.c: Likewise.
23950 * simplify-rtx.c: Likewise.
23951 * stmt.c: Likewise.
23952 * toplev.c: Likewise.
23953 * var-tracking.c: Likewise.
23954 * gcse.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
23955 fixed-value.h hashtab.h real.h statistics.h stmt.h varasm.h.
23956 * lower-subreg.c: Likewise.
23957 * postreload-gcse.c: Likewise.
23958 * ree.c: Likewise.
23959 * reginfo.c: Likewise.
23960 * store-motion.c: Likewise.
23961 * combine.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
23962 fixed-value.h hashtab.h real.h stmt.h varasm.h.
23963 * emit-rtl.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
23964 fixed-value.h hashtab.h statistics.h stmt.h.
23965 * dojump.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
23966 fixed-value.h hashtab.h statistics.h stmt.h varasm.h.
23967 * except.c: Likewise.
23968 * explow.c: Likewise.
23969 * tree-dfa.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
23970 fixed-value.h insn-config.h real.h rtl.h statistics.h stmt.h
23971 varasm.h.
23972 * gimple-fold.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
23973 fixed-value.h insn-config.h real.h rtl.h statistics.h varasm.h.
23974 * tree-ssa-structalias.c: Likewise.
23975 * cfgexpand.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
23976 fixed-value.h insn-config.h real.h statistics.h.
23977 * calls.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
23978 fixed-value.h insn-config.h real.h statistics.h stmt.h.
23979 * bb-reorder.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
23980 fixed-value.h insn-config.h real.h statistics.h stmt.h varasm.h.
23981 * cfgbuild.c: Likewise.
23982 * function.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
23983 fixed-value.h real.h rtl.h statistics.h stmt.h.
23984 * cfgrtl.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
23985 fixed-value.h real.h rtl.h statistics.h stmt.h varasm.h.
23986 * dbxout.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
23987 fixed-value.h real.h statistics.h stmt.h.
23988 * auto-inc-dec.c: Include calls.h dojump.h emit-rtl.h explow.h expmed.h
23989 fixed-value.h real.h statistics.h stmt.h varasm.h.
23990 * cprop.c: Likewise.
23991 * modulo-sched.c: Likewise.
23992 * postreload.c: Likewise.
23993 * ccmp.c: Include calls.h dojump.h emit-rtl.h explow.h fixed-value.h
23994 flags.h function.h hard-reg-set.h hashtab.h insn-config.h real.h
23995 statistics.h stmt.h varasm.h.
23996 * gimple-ssa-strength-reduction.c: Include calls.h dojump.h emit-rtl.h
23997 explow.h fixed-value.h flags.h hashtab.h insn-config.h real.h
23998 rtl.h statistics.h stmt.h varasm.h.
23999 * tree-ssa-loop-ivopts.c: Include calls.h dojump.h emit-rtl.h explow.h
24000 fixed-value.h flags.h hashtab.h real.h rtl.h statistics.h stmt.h
24001 varasm.h.
24002 * expmed.c: Include calls.h dojump.h emit-rtl.h explow.h fixed-value.h
24003 function.h hard-reg-set.h hashtab.h real.h statistics.h stmt.h
24004 varasm.h.
24005 * target-globals.c: Include calls.h dojump.h emit-rtl.h explow.h
24006 fixed-value.h function.h hashtab.h real.h statistics.h stmt.h
24007 varasm.h.
24008 * tree-ssa-address.c: Include calls.h dojump.h emit-rtl.h explow.h
24009 fixed-value.h hashtab.h real.h statistics.h stmt.h varasm.h.
24010 * cfgcleanup.c: Include calls.h dojump.h explow.h expmed.h fixed-value.h
24011 function.h real.h statistics.h stmt.h varasm.h.
24012 * alias.c: Include calls.h dojump.h explow.h expmed.h fixed-value.h
24013 insn-config.h real.h statistics.h stmt.h.
24014 * dwarf2out.c: Include calls.h dojump.h explow.h expmed.h fixed-value.h
24015 statistics.h stmt.h.
24016 * config/nvptx/nvptx.c: Include dojump.h emit-rtl.h explow.h expmed.h
24017 fixed-value.h flags.h hard-reg-set.h insn-config.h real.h
24018 statistics.h stmt.h varasm.h.
24019 * gimplify.c: Include dojump.h emit-rtl.h explow.h expmed.h
24020 fixed-value.h flags.h hashtab.h insn-config.h real.h rtl.h statistics.h.
24021 * asan.c: Include dojump.h emit-rtl.h explow.h expmed.h fixed-value.h
24022 flags.h hashtab.h insn-config.h real.h rtl.h statistics.h stmt.h.
24023 * ipa-devirt.c: Include dojump.h emit-rtl.h explow.h expmed.h
24024 fixed-value.h flags.h hashtab.h insn-config.h real.h rtl.h
24025 statistics.h stmt.h varasm.h.
24026 * ipa-polymorphic-call.c: Likewise.
24027 * config/aarch64/aarch64.c: Include dojump.h emit-rtl.h explow.h
24028 expmed.h fixed-value.h flags.h hashtab.h insn-config.h real.h
24029 statistics.h stmt.h.
24030 * config/c6x/c6x.c: Likewise.
24031 * config/aarch64/aarch64-builtins.c: Include dojump.h emit-rtl.h
24032 explow.h expmed.h fixed-value.h flags.h hashtab.h insn-config.h real.h
24033 statistics.h stmt.h varasm.h.
24034 * ipa-prop.c: Include dojump.h emit-rtl.h explow.h expmed.h
24035 fixed-value.h hashtab.h insn-config.h real.h rtl.h statistics.h
24036 stmt.h varasm.h.
24037 * ipa-split.c: Likewise.
24038 * tree-eh.c: Likewise.
24039 * tree-ssa-dce.c: Likewise.
24040 * tree-ssa-loop-niter.c: Likewise.
24041 * tree-vrp.c: Likewise.
24042 * config/nds32/nds32-cost.c: Include dojump.h emit-rtl.h explow.h
24043 expmed.h fixed-value.h hashtab.h insn-config.h real.h statistics.h
24044 stmt.h.
24045 * config/nds32/nds32-fp-as-gp.c: Likewise.
24046 * config/nds32/nds32-intrinsic.c: Likewise.
24047 * config/nds32/nds32-isr.c: Likewise.
24048 * config/nds32/nds32-md-auxiliary.c: Likewise.
24049 * config/nds32/nds32-memory-manipulation.c: Likewise.
24050 * config/nds32/nds32-pipelines-auxiliary.c: Likewise.
24051 * config/nds32/nds32-predicates.c: Likewise.
24052 * config/nds32/nds32.c: Likewise.
24053 * config/cris/cris.c: Include dojump.h emit-rtl.h explow.h expmed.h
24054 fixed-value.h hashtab.h real.h statistics.h.
24055 * config/alpha/alpha.c: Include dojump.h emit-rtl.h explow.h expmed.h
24056 fixed-value.h hashtab.h real.h statistics.h stmt.h.
24057 * config/arm/arm.c: Likewise.
24058 * config/avr/avr.c: Likewise.
24059 * config/bfin/bfin.c: Likewise.
24060 * config/h8300/h8300.c: Likewise.
24061 * config/i386/i386.c: Likewise.
24062 * config/ia64/ia64.c: Likewise.
24063 * config/iq2000/iq2000.c: Likewise.
24064 * config/m32c/m32c.c: Likewise.
24065 * config/m32r/m32r.c: Likewise.
24066 * config/m68k/m68k.c: Likewise.
24067 * config/mcore/mcore.c: Likewise.
24068 * config/mep/mep.c: Likewise.
24069 * config/mips/mips.c: Likewise.
24070 * config/mn10300/mn10300.c: Likewise.
24071 * config/moxie/moxie.c: Likewise.
24072 * config/pa/pa.c: Likewise.
24073 * config/rl78/rl78.c: Likewise.
24074 * config/rx/rx.c: Likewise.
24075 * config/s390/s390.c: Likewise.
24076 * config/sh/sh.c: Likewise.
24077 * config/sparc/sparc.c: Likewise.
24078 * config/spu/spu.c: Likewise.
24079 * config/stormy16/stormy16.c: Likewise.
24080 * config/v850/v850.c: Likewise.
24081 * config/vax/vax.c: Likewise.
24082 * config/cr16/cr16.c: Include dojump.h emit-rtl.h explow.h expmed.h
24083 fixed-value.h hashtab.h real.h statistics.h stmt.h varasm.h.
24084 * config/msp430/msp430.c: Likewise.
24085 * predict.c: Likewise.
24086 * value-prof.c: Likewise.
24087 * config/epiphany/epiphany.c: Include dojump.h emit-rtl.h explow.h
24088 expmed.h fixed-value.h hashtab.h statistics.h stmt.h.
24089 * config/microblaze/microblaze.c: Likewise.
24090 * config/nios2/nios2.c: Likewise.
24091 * config/rs6000/rs6000.c: Likewise.
24092 * tree.c: Include dojump.h emit-rtl.h explow.h expmed.h fixed-value.h
24093 insn-config.h real.h rtl.h statistics.h stmt.h.
24094 * cgraph.c: Include dojump.h emit-rtl.h explow.h expmed.h fixed-value.h
24095 insn-config.h real.h statistics.h stmt.h.
24096 * fold-const.c: Include dojump.h emit-rtl.h explow.h expmed.h
24097 fixed-value.h insn-config.h real.h statistics.h stmt.h varasm.h.
24098 * tree-inline.c: Include dojump.h emit-rtl.h explow.h expmed.h
24099 fixed-value.h real.h rtl.h statistics.h stmt.h varasm.h.
24100 * builtins.c: Include dojump.h emit-rtl.h explow.h expmed.h
24101 fixed-value.h real.h statistics.h stmt.h.
24102 * config/arc/arc.c: Include dojump.h emit-rtl.h explow.h expmed.h
24103 fixed-value.h statistics.h stmt.h.
24104 * config/visium/visium.c: Include dojump.h emit-rtl.h explow.h expmed.h
24105 stmt.h.
24106
24107 2015-01-15 Jakub Jelinek <jakub@redhat.com>
24108
24109 * gengtype.c (create_user_defined_type): Workaround
24110 -Wmaybe-uninitialized false positives.
24111 * cse.c (fold_rtx): Likewise.
24112 * loop-invariant.c (gain_for_invariant): Likewise.
24113
24114 2015-01-15 Eric Botcazou <ebotcazou@adacore.com>
24115
24116 * expr.c (expand_expr_real_1) <normal_inner_ref>: Use the expression to
24117 set the memory attributes in all cases but clear MEM_EXPR if need be.
24118
24119 2015-01-15 Yuri Rumyantsev <ysrumyan@gmail.com>
24120
24121 PR tree-optimization/64434
24122 * cfgexpand.c (reorder_operands): New function.
24123 (expand_gimple_basic_block): Insert call of reorder_operands if
24124 optimized is true.
24125
24126 2015-01-15 Matthew Fortune <matthew.fortune@imgtec.com>
24127
24128 * config/mips/micromips.md (*swp): Remove explicit parallel.
24129 (jraddiusp, *movep<MOVEP1:mode><MOVEP2:mode>): Likewise.
24130 * config/mips/mips-dsp.md (add<DSPV:mode>3): Likewise.
24131 (mips_add<DSP:dspfmt1>_s_<DSP:dspfmt2>, sub<DSPV:mode>3): Likewise.
24132 (mips_sub<DSP:dspfmt1>_s_<DSP:dspfmt2>, mips_addsc): Likewise.
24133 (mips_addwc, mips_absq_s_<DSPQ:dspfmt2>): Likewise.
24134 (mips_precrq_rs_ph_w, mips_precrqu_s_qb_ph): Likewise.
24135 (mips_shll_<DSPV:dspfmt2>, mips_shll_s_<DSPQ:dspfmt2>): Likewise.
24136 (mips_muleu_s_ph_qbl, mips_muleu_s_ph_qbr): Likewise.
24137 (mips_mulq_rs_ph, mips_muleq_s_w_phl, mips_muleq_s_w_phr): Likewise.
24138 (mips_dpaq_s_w_ph, mips_dpsq_s_w_ph, mips_mulsaq_s_w_ph): Likewise.
24139 (mips_dpaq_sa_l_w, mips_dpsq_sa_l_w, mips_maq_s_w_phl): Likewise.
24140 (mips_maq_s_w_phr, mips_maq_sa_w_phl, mips_maq_sa_w_phr): Likewise.
24141 (mips_extr_w, mips_extr_r_w, mips_extr_rs_w): Likewise.
24142 (mips_extr_s_h, mips_extp, mips_extpdp, mips_mthlip): Likewise.
24143 (mips_wrdsp): Likewise.
24144 * config/mips/mips-dspr2.md (mips_absq_s_qb): Remove explicit
24145 parallel.
24146 (mips_addu_ph, mips_addu_s_ph, mips_cmpgdu_eq_qb): Likewise.
24147 (mips_cmpgdu_lt_qb, mips_cmpgdu_le_qb, mulv2hi3): Likewise.
24148 (mips_mul_s_ph, mips_mulq_rs_w, mips_mulq_s_ph): Likewise.
24149 (mips_mulq_s_w, mips_subu_ph, mips_subu_s_ph): Likewise.
24150 (mips_dpaqx_s_w_ph, mips_dpaqx_sa_w_ph): Likewise.
24151 (mips_dpsqx_s_w_ph, mips_dpsqx_sa_w_ph): Likewise.
24152 * config/mips/mips-fixed.md (usadd<mode>3): Remove explicit parallel.
24153 (ssadd<mode>3, ussub<mode>3, sssub<mode>3, ssmul<mode>3): Likewise.
24154 (ssmaddsqdq4, ssmsubsqdq4): Likewise.
24155
24156 2015-01-14 Matthew Fortune <matthew.fortune@imgtec.com>
24157
24158 * config/mips/mips.c (mips_rtx_costs): Set costs for LSA/DLSA.
24159 (mips_print_operand): Support 'y' to print exact log2 in decimal
24160 of a const_int.
24161 * config/mips/mips.h (ISA_HAS_LSA): New define.
24162 (ISA_HAS_DLSA): Likewise.
24163 * config/mips/mips.md (<GPR:d>lsa): New define_insn.
24164 * config/mips/predicates.md (const_immlsa_operand): New predicate.
24165
24166 2015-01-15 Martin Liska <mliska@suse.cz>
24167
24168 PR target/64377
24169 * optc-save-gen.awk: Add support for array types.
24170
24171 2015-01-15 Richard Biener <rguenther@suse.de>
24172
24173 PR middle-end/64365
24174 * tree-data-ref.c (dr_analyze_indices): Make sure that accesses
24175 for MEM_REF access functions with the same base can never partially
24176 overlap.
24177
24178 2015-01-14 Marcos Diaz <marcos.diaz@tallertechnologies.com>
24179
24180 * common.opt: New option -fstack-protector-explicit.
24181 * cfgexpand.c (SPCT_FLAG_EXPLICIT): New enum.
24182 (stack_protect_decl_phase): Handle stack_protect attribute for
24183 explicit stack protection requests.
24184 (expand_used_vars): Similarly.
24185 * doc/cpp.texi (__SSP_EXPLICIT__): Document predefined macro.
24186 * doc/extend.texi: Add documentation for "stack_protect" attribute.
24187 * doc/invoke.texi: Add documentation for -fstack-protector-explicit.
24188
24189 2015-01-14 Oleg Endo <olegendo@gcc.gnu.org>
24190
24191 PR target/53988
24192 * config/sh/sh-protos.h (sh_find_set_of_reg): Add option to ignore
24193 reg-reg copies.
24194 (sh_extending_set_of_reg): New struct.
24195 (sh_find_extending_set_of_reg, sh_split_tst_subregs,
24196 sh_remove_reg_dead_or_unused_notes): New Declarations.
24197 * config/sh/sh.c (sh_remove_reg_dead_or_unused_notes,
24198 sh_find_extending_set_of_reg, sh_split_tst_subregs,
24199 sh_extending_set_of_reg::use_as_extended_reg): New functions.
24200 * config/sh/sh.md (*tst<mode>_t_zero): Rename to *tst<mode>_t_subregs,
24201 convert to insn_and_split and use new function sh_split_tst_subregs.
24202
24203 2015-01-14 Sandra Loosemore <sandra@codesourcery.com>
24204
24205 * doc/invoke.texi (Option Summary): Reclassify -fuse-ld as a linker
24206 option.
24207 (Optimization Options): Move -fuse-ld documentation to...
24208 (Link Options): ...here.
24209
24210 2015-01-14 Matthew Fortune <matthew.fortune@imgtec.com>
24211
24212 * config/mips/constraints.md (ZC): Add support for R6 LL/SC
24213 offsets.
24214 (ZD): Update to use ISA_HAS_9BIT_DISPLACEMENT.
24215 * config/mips/mips.h (ISA_HAS_PREFETCH_9BIT): Rename to...
24216 (ISA_HAS_9BIT_DISPLACEMENT): ... this. New macro.
24217 * config/mips/sync.md (sync_compare_and_swap<mode>): Use ZC
24218 instead of ZR for the memory operand of LL/SC.
24219 (compare_and_swap_12, sync_add<mode>): Likewise.
24220 (sync_<optab>_12, sync_old_<optab>_12): Likewise.
24221 (sync_new_<optab>_12, sync_nand_12): Likewise.
24222 (sync_old_nand_12, sync_new_nand_12): Likewise.
24223 (sync_sub<mode>, sync_old_add<mode>): Likewise.
24224 (sync_old_sub<mode>, sync_new_add<mode>): Likewise.
24225 (sync_new_sub<mode>, sync_<optab><mode>): Likewise.
24226 (sync_old_<optab><mode>, sync_new_<optab><mode>"): Likewise.
24227 (sync_nand<mode>, sync_old_nand<mode>): Likewise.
24228 (sync_new_nand<mode>, sync_lock_test_and_set<mode>): Likewise.
24229 (test_and_set_12, atomic_compare_and_swap<mode>): Likewise.
24230 (atomic_exchange<mode>_llsc, atomic_fetch_add<mode>_llsc): Likewise.
24231 * doc/md.texi (ZC): Update description.
24232
24233 2015-01-14 Andrew MacLeod <amacleod@redhat.com>
24234
24235 * builtins.c (expand_builtin_atomic_exchange): Remove error when
24236 memory model is CONSUME.
24237 (expand_builtin_atomic_compare_exchange, expand_builtin_atomic_load,
24238 expand_builtin_atomic_store): Change invalid memory model errors to
24239 warnings.
24240 (expand_builtin_atomic_clear): Change invalid model errors to warnings
24241 and issue warning for CONSUME.
24242
24243 2015-01-14 Aldy Hernandez <aldyh@redhat.com>
24244
24245 * lto-cgraph: Update function comments for
24246 lto_symtab_encoder_encode_*.
24247
24248 2015-01-14 Ilya Verbin <ilya.verbin@intel.com>
24249
24250 * Makefile.in (site.exp): Do not set ENABLE_LTO.
24251
24252 2015-01-14 Ilya Verbin <ilya.verbin@intel.com>
24253
24254 * cgraphunit.c (ipa_passes): Remove argument from ipa_write_summaries.
24255 * lto-cgraph.c (select_what_to_stream): Remove argument, use
24256 lto_stream_offload_p instead.
24257 * lto-streamer.h (select_what_to_stream): Remove argument.
24258 * passes.c (ipa_write_summaries): Likewise.
24259 * tree-pass.h (ipa_write_summaries): Likewise.
24260
24261 2015-01-14 Richard Biener <rguenther@suse.de>
24262
24263 PR tree-optimization/59354
24264 * tree-vect-slp.c (vect_build_slp_tree_1): Treat loads from
24265 groups larger than the slp group size as having gaps.
24266
24267 2015-01-14 Andrew MacLeod <amacleod@redhat.com>
24268
24269 PR middle-end/59448
24270 * builtins.c (get_memmodel): Promote consume to acquire always.
24271
24272 2015-01-14 Ilya Tocar <ilya.tocar@intel.com>
24273
24274 PR target/64386
24275 * config/i386/i386.c (ix86_expand_sse_cmp): Handle V64QImode,
24276 V32HImode.
24277
24278 2015-01-14 Ilya Tocar <ilya.tocar@intel.com>
24279
24280 PR target/64393
24281 * common/config/i386/i386-common.c (OPTION_MASK_ISA_AVX512VBMI_SET):
24282 Enable AVX512BW.
24283 (OPTION_MASK_ISA_AVX512BW_UNSET): Disable AVX512VBMI.
24284 * config/i386/i386.c (ix86_hard_regno_mode_ok): Don't check
24285 AVX512VBMI, as it implies AVX512BW.
24286
24287 2015-01-14 Ilya Tocar <ilya.tocar@intel.com>
24288
24289 PR target/64387
24290 * config/i386/sse.md (vec_unpacks_hi_v8sf): Fix predicate.
24291 (vec_unpacks_hi_v16sf): Ditto.
24292
24293 2015-01-14 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
24294
24295 * config/aarch64/arm_neon.h: Error out if AdvancedSIMD
24296 is not available.
24297
24298 2015-01-14 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
24299
24300 * doc/invoke.texi (mapcs): Mention deprecation.
24301 (mapcs-frame): Likewise.
24302
24303 2015-01-14 Thomas Preud'homme <thomas.preudhomme@arm.com>
24304
24305 PR target/64453
24306 * config/arm/arm.c (callee_saved_reg_p): Define.
24307 (arm_compute_save_reg0_reg12_mask): Use callee_saved_reg_p to check if
24308 register is callee saved instead of !call_used_regs[reg].
24309 (thumb1_compute_save_reg_mask): Likewise.
24310
24311 2015-01-14 Hale Wang <hale.wang@arm.com>
24312
24313 * config/arm/arm.c: Tune the max_cond_insns/branch_cost for
24314 Cortex-M7.
24315
24316 2015-01-14 Richard Biener <rguenther@suse.de>
24317
24318 PR lto/64415
24319 * tree-inline.c (insert_debug_decl_map): Check destination
24320 function MAY_HAVE_DEBUG_STMTS.
24321 (insert_init_debug_bind): Likewise.
24322 (insert_init_stmt): Remove redundant check.
24323 (remap_gimple_stmt): Drop debug stmts if the destination
24324 function has var-tracking assignments disabled.
24325
24326 2015-01-14 Martin Liska <mliska@suse.cz>
24327
24328 * ipa-icf-gimple.c (func_checker::compare_operand): Add support for
24329 IMAGPART_EXPR and REALPART_EXPR and fix BIT_FIELD_REF comparison.
24330
24331 2015-01-14 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
24332
24333 PR target/64460
24334 * config/arm/arm.md (*<arith_shift_insn>_multsi): Set 'shift' to 2.
24335 (*<arith_shift_insn>_shiftsi): Set 'shift' attr to 3.
24336
24337 2015-01-14 Matthew Fortune <matthew.fortune@imgtec.com>
24338
24339 * config/mips/mips.h (MIPS_ISA_LEVEL_SPEC): Only infer an ISA
24340 level from an ARCH; do not inject the default.
24341 (MIPS_DEFAULT_ISA_LEVEL_SPEC): New macro split out from
24342 MIPS_ISA_LEVEL_SPEC.
24343 (MIPS_ISA_NAN2008_SPEC): Update comment.
24344 (BASE_DRIVER_SELF_SPECS): Likewise.
24345 * config/mips/elfoabi.h (DRIVER_SELF_SPECS): Add
24346 MIPS_DEFAULT_ISA_LEVEL_SPEC.
24347 * config/mips/mti-elf.h (DRIVER_SELF_SPECS): Likewise.
24348 * config/mips/mti-linux.h (DRIVER_SELF_SPECS): Likewise.
24349 * config/mips/sde.h (DRIVER_SELF_SPECS): Likewise.
24350
24351 2015-01-14 Richard Biener <rguenther@suse.de>
24352
24353 PR tree-optimization/64493
24354 PR tree-optimization/64495
24355 * tree-vect-loop.c (vect_finalize_reduction): For double-reductions
24356 assign the proper vectorized PHI to the inner loop exit PHIs.
24357
24358 2015-01-14 Joey Ye <joey.ye@arm.com>
24359
24360 * config/arm/arm.c (arm_compute_save_reg_mask):
24361 Do not save lr in case of tail call.
24362 * config/arm/thumb2.md (*thumb2_pop_single): New pattern.
24363
24364 2015-01-14 Martin Uecker <uecker@eecs.berkeley.edu>
24365
24366 * tree-vrp.c (check_array_ref): Emit more warnings
24367 for warn_array_bounds >= 2.
24368 * common.opt: New option -Warray-bounds=.
24369 * doc/invoke.texi: Document -Warray-bounds=.
24370
24371 2015-01-14 Chung-Ju Wu <jasonwucj@gmail.com>
24372
24373 * config/nds32/nds32.opt (mforce-fp-as-gp): Remove.
24374 (mforbid-fp-as-gp): Remove.
24375 (mex9): Remove.
24376 * config/nds32/nds32-fp-as-gp.c (nds32_have_prologue_p): Remove.
24377 (nds32_symbol_load_store_p): Remove.
24378 (nds32_fp_as_gp_check_available): Clean up implementation.
24379 * config/nds32/nds32.h (LINK_SPEC): Remove -mforce-as-gp and -mex9
24380 cases.
24381 * config/nds32/nds32.c (nds32_asm_file_start): No need to consider
24382 fp-as-gp and ex9 cases.
24383
24384 2015-01-13 Jan Hubicka <hubicka@ucw.cz>
24385
24386 * tree-profile.c (init_ic_make_global_vars): Drop workaround
24387 for bintuils bug 14342.
24388 (init_ic_make_global_vars): Likewise.
24389 (gimple_init_edge_profiler): Likewise.
24390 (gimple_gen_ic_func_profiler): Likewise.
24391
24392 2015-01-13 Naveen H.S <Naveen.Hurugalawadi@caviumnetworks.com>
24393
24394 * ipa-inline.c (inline_small_functions): Swap the operands in
24395 enum.
24396
24397 2015-01-13 Jan Hubicka <hubicka@ucw.cz>
24398
24399 PR ipa/64481
24400 * ipa-inline-analysis.c (node_growth_cache): Remove.
24401 (initialize_growth_caches): Do not initialize it.
24402 (free_growth_caches): Do not free it.
24403 (do_estimate_growth): Rename to ...
24404 (estimate_growth): ... this one; drop growth cache code.
24405 (growth_likely_positive): Always go the heuristics way.
24406 * ipa-inline.c (can_inline_edge_p): Walk through aliases.
24407 (reset_edge_caches): Do not reset node growth.
24408 (heap_edge_removal_hook): Do not maintain cache.
24409 (inline_small_functions): Likewise; strenghten sanity check.
24410 (ipa_inline): Do not maintain caches.
24411 * ipa-inline.h (node_growth_cache): Remove.
24412 (do_estimate_growth): Remove to ...
24413 (estimate_growth): this one; remove inline version.
24414 (reset_node_growth_cache): Remove.
24415
24416 2015-01-13 Jan Hubicka <hubicka@ucw.cz>
24417
24418 PR ipa/64565
24419 * ipa-inline.c (inline_small_functions): Update callee keys after
24420 resolving speculation
24421 (inline_small_functions): Always check monotonicity of the queue.
24422
24423 2015-01-13 Marek Polacek <polacek@redhat.com>
24424
24425 PR middle-end/64391
24426 * trans-mem.c (get_attrs_for): Return NULL_TREE if X is NULL_TREE.
24427
24428 2015-01-13 Jakub Jelinek <jakub@redhat.com>
24429
24430 PR rtl-optimization/64286
24431 * ree.c (combine_reaching_defs): Move part of comment earlier,
24432 remove !SCALAR_INT_MODE_P check.
24433 (add_removable_extension): Don't add vector mode
24434 extensions if all uses of the source register aren't the same
24435 vector extensions.
24436
24437 2015-01-13 Renlin Li <renlin.li@arm.com>
24438
24439 * config/arm/arm.h (CLZ_DEFINED_VALUE_AT_ZERO): Return 2.
24440 (CTZ_DEFINED_VALUE_AT_ZERO): Ditto.
24441
24442 2015-01-13 Martin Liska <mliska@suse.cz>
24443
24444 * ipa-icf.c (sem_function::equals_private): Call new functions
24445 cl_target_option_print_diff and cl_optimization_print_diff.
24446 * optc-save-gen.awk (cl_target_option_print_diff): New function.
24447 (cl_optimization_print_diff): Likewise.
24448 * opth-gen.awk: Likewise.
24449
24450 2015-01-13 Richard Sandiford <richard.sandiford@arm.com>
24451
24452 * config/aarch64/aarch64.md (subsi3, *subsi3_uxtw, subdi3)
24453 (*sub_<optab><ALLX:mode>_<GPI:mode>, *sub_<optab><SHORT:mode>_si_uxtw)
24454 (*sub_<optab><ALLX:mode>_shft_<GPI:mode>)
24455 (*sub_<optab><SHORT:mode>_shft_si_uxtw, *sub_<optab><mode>_multp2)
24456 (*sub_<optab>si_multp2_uxtw, *sub_uxt<mode>_multp2)
24457 (*sub_uxtsi_multp2_uxtw): Add stack pointer sources.
24458
24459 2015-01-13 Andrew Pinski <apinski@cavium.com>
24460
24461 * config/aarch64/aarch64.c (fusion_load_store): Check dest mode
24462 instead of src mode.
24463
24464 2015-01-13 Richard Biener <rguenther@suse.de>
24465
24466 PR lto/64373
24467 * lto-streamer-out.c (tree_is_indexable): Guard for NULL
24468 DECL_CONTEXT.
24469
24470 2015-01-13 Andrew Pinski <apinski@cavium.com>
24471
24472 * config/aarch64/aarch64.c (aarch64_operands_ok_for_ldpstp): Reject
24473 volatile mems.
24474 (aarch64_operands_adjust_ok_for_ldpstp): Likewise.
24475
24476 2015-01-13 Jakub Jelinek <jakub@redhat.com>
24477
24478 PR middle-end/63974
24479 * cfgexpand.c (expand_computed_goto): Don't call
24480 convert_memory_address here.
24481
24482 2015-01-13 Richard Biener <rguenther@suse.de>
24483
24484 PR tree-optimization/64406
24485 * tree-loop-distibution.c (pass_loop_distribution::execute):
24486 Reset the SCEV hashtable if we distributed anything.
24487
24488 2015-01-13 Richard Biener <rguenther@suse.de>
24489
24490 PR tree-optimization/64404
24491 * tree-vect-stmts.c (vectorizable_load): Reject conflicting
24492 SLP types for CSEd loads.
24493
24494 2015-01-13 Thomas Preud'homme <thomas.preudhomme@arm.com>
24495
24496 PR tree-optimization/64436
24497 * tree-ssa-math-opts.c (find_bswap_or_nop_1): Move code performing the
24498 merge of two symbolic numbers for a bitwise OR to ...
24499 (perform_symbolic_merge): This. Also fix computation of the range and
24500 end of the symbolic number corresponding to the result of a bitwise OR.
24501
24502 2015-01-13 Richard Biener <rguenther@suse.de>
24503
24504 PR tree-optimization/64568
24505 * tree-ssa-forwprop.c (pass_forwprop::execute): Properly
24506 release defs of removed stmts, avoid splitting TARGET_MEM_REFs.
24507
24508 2015-01-13 Chung-Ju Wu <jasonwucj@gmail.com>
24509
24510 * config/nds32/nds32.c (nds32_legitimate_address_p): Consider
24511 TARGET_CMODEL_LARGE and TARGET_CMODEL_MEDIUM cases.
24512
24513 2015-01-13 Chung-Ju Wu <jasonwucj@gmail.com>
24514
24515 * config/nds32/nds32.h (NDS32_SYMBOL_FLAG_RODATA): Define our own
24516 target-specific symbol_ref flag.
24517 (NDS32_SYMBOL_REF_RODATA_P): Define it to check if the symbol_ref
24518 resides in rodata section.
24519 * config/nds32/nds32.c (TARGET_ENCODE_SECTION_INFO): Define.
24520 (nds32_encode_section_info): New function.
24521
24522 2015-01-13 Chung-Ju Wu <jasonwucj@gmail.com>
24523
24524 * config/nds32/nds32.md (call): Use pseudo instruction bal which
24525 clobbers TA_REGNUM if large code model is specified.
24526 (call_register): Likewise.
24527 (call_immediate): Likewise.
24528 (call_value): Likewise.
24529 (call_value_register): Likewise.
24530 (call_value_immediate): Likewise.
24531
24532 2015-01-13 Chung-Ju Wu <jasonwucj@gmail.com>
24533
24534 * config/nds32/nds32.h (TARGET_CMODEL_SMALL): New macro.
24535 (TARGET_CMODEL_MEDIUM): New macro.
24536 (TARGET_CMODEL_LARGE): New macro.
24537 * config/nds32/nds32.c (nds32_asm_file_start): Display corresponding
24538 code model setting in assembly code.
24539
24540 2015-01-13 Chung-Ju Wu <jasonwucj@gmail.com>
24541
24542 * common/config/nds32/nds32-common.c (TARGET_DEFAULT_TARGET_FLAGS):
24543 Remove MASK_GP_DIRECT flag.
24544 * config/nds32/nds32.h (MULTILIB_DEFAULTS): Have -mcmodel=medium as
24545 one of the multilib default options.
24546 * config/nds32/nds32.opt (mgp-direct): Remove.
24547 * config/nds32/t-mlibs (MULTILIB_OPTIONS): Use -mcmodel instead of
24548 -mgp-direct. We also remove unnecessary -mlittle-endian/-mbig-endian.
24549
24550 2015-01-13 Chung-Ju Wu <jasonwucj@gmail.com>
24551
24552 * config/nds32/nds32.opt (mcmodel): Add new option.
24553 * config/nds32/nds32-opts.h (nds32_cmodel_type): Add new enum type
24554 to describe code model.
24555
24556 2015-01-13 Oleg Endo <olegendo@gcc.gnu.org>
24557
24558 PR target/64479
24559 * rtlanal.c (set_reg_p): Handle SEQUENCE constructs.
24560
24561 2015-01-12 Kaz Kojima <kkojima@gcc.gnu.org>
24562
24563 * config/sh/sh.c (sh_atomic_assign_expand_fenv): New function.
24564 (TARGET_ATOMIC_ASSIGN_EXPAND_FENV): Define.
24565 (sh_builtin_get_fpscr, sh_builtin_set_fpscr): New variables.
24566 (sh_init_builtins): Record decls for __builtin_sh_get_fpscr and
24567 __builtin_sh_set_fpscr.
24568
24569 2015-01-12 Sandra Loosemore <sandra@codesourcery.com>
24570
24571 * doc/invoke.texi ([-Wsuggest-attribute=]): Don't use parentheses
24572 after a funtion name just to indicate it is a function.
24573 ([-fsanitize-undefined-trap-on-error]): Likewise.
24574 ([-fdbg-cnt=]): Likewise.
24575 ([-mmemcpy]): Likewise.
24576 ([-mflush-func]): Likewise.
24577 ([-msynci]): Likewise.
24578
24579 2015-01-12 Sandra Loosemore <sandra@codesourcery.com>
24580
24581 * doc/invoke.texi ([-Wbad-function-cast]): Rewrite to avoid confusing
24582 example.
24583
24584 2015-01-12 Jakub Jelinek <jakub@redhat.com>
24585
24586 PR tree-optimization/64563
24587 * tree-vrp.c (vrp_evaluate_conditional): Check for VR_RANGE
24588 instead of != VR_VARYING.
24589
24590 PR target/64513
24591 * config/i386/i386.c (ix86_expand_prologue): Add
24592 REG_FRAME_RELATED_EXPR to %rax and %r10 pushes.
24593
24594 PR tree-optimization/64454
24595 * tree-vrp.c (simplify_div_or_mod_using_ranges): Optimize
24596 op0 % op1 into op0 if op0 is in range [-op1 + 1, op1 - 1]
24597 for signed or [0, op1 - 1] for unsigned modulo.
24598 (simplify_stmt_using_ranges): Call simplify_div_or_mod_using_ranges
24599 even if op1 does not satisfy integer_pow2p.
24600
24601 PR other/64370
24602 * sreal.c (sreal::to_double): Use ldexp instead of scalbnl.
24603
24604 2015-01-12 Jeff Law <law@redhat.com>
24605
24606 PR target/64461
24607 * config/m68k/m68k.md (truncsiqi2): Disable for TARGET_COLDFIRE.
24608 (trunchiqi2, truncsihi2): Similarly.
24609
24610 * config/h8300/h8300.c (Fpa): Use RTX_FRAME_RELATED_P directly
24611 rather than calling F.
24612
24613 2015-01-12 Bernd Edlinger <bernd.edlinger@hotmail.de>
24614
24615 * tsan.c (instrument_expr): Use force_gimple_operand.
24616 Use may_be_nonaddressable_p instead of is_gimple_addressable.
24617
24618 2015-01-12 Richard Biener <rguenther@suse.de>
24619
24620 PR tree-optimization/64530
24621 * tree-loop-distribution.c (pg_add_dependence_edges): Shuffle
24622 back dr1.
24623
24624 2015-01-12 Richard Biener <rguenther@suse.de>
24625
24626 PR middle-end/64357
24627 * tree-cfg.c (gimple_can_merge_blocks_p): Protect simple
24628 latches properly.
24629
24630 2015-01-12 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
24631
24632 * config/arm/arm.c (arm_cortex_a12_tune): Update entries to match
24633 Cortex-A17 tuning parameters.
24634 * config/arm/arm-cores.def (cortex-a12): Schedule for cortex-a17.
24635
24636 2015-01-12 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
24637
24638 * config/arm/arm-protos.h (tune_params): Add fuseable_ops field.
24639 * config/arm/arm.c (arm_macro_fusion_p): New function.
24640 (arm_macro_fusion_pair_p): Likewise.
24641 (TARGET_SCHED_MACRO_FUSION_P): Define.
24642 (TARGET_SCHED_MACRO_FUSION_PAIR_P): Likewise.
24643 (ARM_FUSE_NOTHING): Likewise.
24644 (ARM_FUSE_MOVW_MOVT): Likewise.
24645 (arm_slowmul_tune, arm_fastmul_tune, arm_strongarm_tune,
24646 arm_xscale_tune, arm_9e_tune, arm_v6t2_tune, arm_cortex_tune,
24647 arm_cortex_a8_tune, arm_cortex_a7_tune, arm_cortex_a15_tune,
24648 arm_cortex_a53_tune, arm_cortex_a57_tune, arm_cortex_a9_tune,
24649 arm_cortex_a12_tune, arm_v7m_tune, arm_v6m_tune, arm_fa726te_tune
24650 arm_cortex_a5_tune): Specify fuseable_ops value.
24651
24652 2015-01-12 H.J. Lu <hongjiu.lu@intel.com>
24653
24654 PR bootstrap/64561
24655 * configure.ac (HAVE_LD_PIE_COPYRELOC): Update Linux/x86-64 linker
24656 test for PIE with copy reloc.
24657 * configure: Regenerated.
24658
24659 2015-01-12 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
24660
24661 * config/arm/arm.c (arm_load_tp): Use R0_REGNUM instead of constant 0
24662 in gen_rtx_REG.
24663 (arm_tls_descseq_addr): Likewise.
24664 (arm_gen_movmemqi): Likewise.
24665 (arm_expand_epilogue_apcs_frame): Likewise.
24666 (arm_expand_epilogue): Likewise.
24667 (arm_expand_prologue): Likewise. Use R1_REGNUM instead of constant 1
24668 in gen_rtx_REG.
24669
24670 2015-01-12 Martin Liska <mliska@suse.cz>
24671
24672 PR ipa/64550
24673 * ipa-icf-gimple.c (func_checker::compare_memory_operand): Compare
24674 volatility for correct operands.
24675
24676 2015-01-12 Martin Liska <mliska@suse.cz>
24677
24678 * ipa-icf.c (sem_function::equals_wpa): Add indirect_calls as
24679 indication that a function is not leaf.
24680 (sem_function::compare_polymorphic_p): Likewise.
24681
24682 2015-01-12 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
24683
24684 * config/visium/visium.c: Add includes hashtab.h, hash-set.h,
24685 machmode.h, input.h, statistics.h, vec.h, double-int.h, real.h,
24686 fixed-value.h, alias.h, symtab.h, tree-core.h, wide-int.h, inchash.h,
24687 fold-const.h, tree-check.h.
24688
24689 2015-01-12 Jan Hubicka <hubicka@ucw.cz>
24690
24691 PR ipa/63967
24692 PR ipa/64425
24693 * ipa-inline.c (compute_uninlined_call_time,
24694 compute_inlined_call_time): Use counts for extra precision when
24695 needed possible.
24696 (big_speedup_p): Fix formating.
24697 (RELATIVE_TIME_BENEFIT_RANGE): Remove.
24698 (relative_time_benefit): Remove.
24699 (edge_badness): Turn DECL_DISREGARD_INLINE_LIMITS into hint;
24700 merge guessed and read profile paths.
24701 (inline_small_functions): Count only !optimize_size functions into
24702 initial size; be more lax about sanity check when profile is used;
24703 be sure to update inlined function profile when profile is read.
24704
24705 2015-01-12 Jan Hubicka <hubicka@ucw.cz>
24706
24707 PR ipa/63470
24708 * ipa-inline-analysis.c (inline_edge_duplication_hook): Adjust
24709 cost when edge becomes direct.
24710 * ipa-prop.c (make_edge_direct): Do not adjust when speculation
24711 is resolved or when introducing new speculation.
24712
24713 2015-01-12 Chen Gang <gang.chen.5i5j@gmail.com>
24714
24715 PR ipa/64551
24716 PR ipa/64552
24717 * ipa-icf.c (sem_function::equals_private): Use '&&' instead of
24718 '||' to fix typo issue.
24719
24720 * gcc/tree.h (target_opts_for_fn): Check NULL_TREE since it can
24721 accept and return NULL.
24722
24723 2015-01-12 Martin Liska <mliska@suse.cz>
24724
24725 * cgraph.c (cgraph_edge::remove_callee): Move function to header
24726 file for being inlined.
24727 (cgraph_set_edge_callee): Delete.
24728 (cgraph_edge::redirect_callee): Move function to header file
24729 for being inlined.
24730 (cgraph_edge::make_direct): Use new function.
24731 (cgraph_edge::dump_edge_flags): New function created from
24732 static dump_edge_flags function.
24733 (cgraph_node::dump): Use new function.
24734 (cgraph_edge::verify_count_and_frequency): New function created
24735 from verify_edge_count_and_frequency.
24736 (cgraph_edge::verify_corresponds_to_fndecl): New function created
24737 from verify_edge_corresponds_to_fndecl.
24738 (verify_edge_corresponds_to_fndecl): Delete.
24739 (cgraph_node::verify_node): Use new function.
24740 * cgraph.h (cgraph_edge::set_callee): New function.
24741 (cgraph_edge::dump_edge_flags): Likewise.
24742 (cgraph_edge::verify_corresponds_to_fndecl): Likewise.
24743
24744 2015-01-11 Jan Hubicka <hubicka@ucw.cz>
24745
24746 * ipa-utils.c (estimate_function_body_sizes): Do not
24747 free node params when called late with early=true.
24748
24749 2015-01-11 James Greenhalgh <james.greenhalgh@arm.com>
24750
24751 * doc/md.texi (Instruction Patterns): Rewrite text for
24752 clarity.
24753 (Example): Likewise.
24754
24755 2015-01-10 Sandra Loosemore <sandra@codesourcery.com>
24756
24757 * doc/invoke.texi (Option Summary): Break long lines.
24758 [(-fdiagnostics-color)]: Put long literal in @smallexample
24759 instead of inline.
24760 [(-fsanitize-recover)]: Likewise.
24761 [(-fdump-rtl-split*)]: Rewrite to fix over-full hbox.
24762 [(-ffast-math)]: Likewise.
24763 [(--param max-inline-insns-recursive)]: Likewise.
24764 [(--param max-inline-recursive-depth)]: Likewise.
24765 [(-mno-text-section-literals)]: Likewise.
24766
24767 2015-01-10 Thomas Schwinge <thomas@codesourcery.com>
24768
24769 * doc/install.texi: Update for libgomp being renamed from "GNU
24770 OpenMP Runtime Library" to "GNU Offloading and Multi Processing
24771 Runtime Library".
24772 * doc/sourcebuild.texi: Likewise.
24773
24774 2015-01-10 Anthony Green <green@moxielogic.com>
24775
24776 * config/moxie/moxie.c (moxie_option_override): Fix forcing of
24777 mul.x availability for moxiebox configuration.
24778
24779 2015-01-09 Anthony Green <green@moxielogic.com>
24780
24781 * config/moxie/moxie.md: Tabify assembly output.
24782
24783 2015-01-09 Anthony Green <green@moxielogic.com>
24784
24785 * config/moxie/moxie.md (CC_REG): Correct register definition.
24786
24787 2015-01-09 Sandra Loosemore <sandra@codesourcery.com>
24788
24789 * doc/invoke.texi ([-fvtable-verify]): Copy-edit and fix markup.
24790 ([-fvtv-debug], [-fvtv-counts]): Likewise. Correct location
24791 of log files.
24792
24793 2015-01-09 Andreas Tobler <andreast@gcc.gnu.org>
24794
24795 * config/arm/arm.h (MAX_SYNC_LIBFUNC_SIZE): Delete semicolon.
24796
24797 2015-01-09 Bernd Schmidt <bernds@codesourcery.com>
24798 Jakub Jelinek <jakub@redhat.com>
24799
24800 PR middle-end/64412
24801 * lto-streamer.h (lto_stream_offload_p): New declaration.
24802 * lto-streamer.c (lto_stream_offload_p): New variable.
24803 * cgraphunit.c (ipa_passes): Set lto_stream_offload_p
24804 at the same time as section_name_prefix.
24805 * lto-streamer-out.c (hash_tree): Don't hash TREE_TARGET_OPTION
24806 if lto_stream_offload_p.
24807 * tree-streamer-out.c (streamer_pack_tree_bitfields): Don't
24808 stream TREE_TARGET_OPTION if lto_stream_offload_p.
24809 (write_ts_function_decl_tree_pointers): Don't
24810 stream DECL_FUNCTION_SPECIFIC_TARGET if lto_stream_offload_p.
24811 * tree-streamer-in.c (unpack_value_fields): Don't stream
24812 TREE_TARGET_OPTION in if ACCEL_COMPILER.
24813 (lto_input_ts_function_decl_tree_pointers): Don't stream
24814 DECL_FUNCTION_SPECIFIC_TARGET in if ACCEL_COMPILER.
24815 * lto-opts.c (lto_write_options): Use lto_stream_offload_p
24816 instead of section_name_prefix string comparisons.
24817
24818 2015-01-09 Jakub Jelinek <jakub@redhat.com>
24819
24820 PR rtl-optimization/64536
24821 * cfgrtl.c (rtl_tidy_fallthru_edge): Handle removal of degenerate
24822 tablejumps.
24823
24824 2015-01-09 Michael Collison <michael.collison@linaro.org>
24825
24826 PR tree-optimization/64322
24827 * tree-vrp.c (extract_range_from_binary_expr_1): Attempt to derive
24828 range for RSHIFT_EXPR even if vr0 range is not VR_RANGE or is symbolic.
24829
24830 2015-01-09 Tom de Vries <tom@codesourcery.com>
24831
24832 PR rtl-optimization/64539
24833 * regcprop.c (kill_clobbered_values): Factor out of ...
24834 (copyprop_hardreg_forward_1): ... here. Use kill_clobbered_values
24835 instead of note_stores with kill_clobbered_value.
24836
24837 2015-01-09 Andreas Tobler <andreast@gcc.gnu.org>
24838
24839 * ginclude/unwind-arm-common.h: Revert previous commit.
24840
24841 2015-01-09 Andreas Tobler <andreast@gcc.gnu.org>
24842
24843 * config.gcc (arm*-*-freebsd*): New configuration.
24844 * config/arm/freebsd.h: New file.
24845 * config.host: Add extra components for arm*-*-freebsd*.
24846 * config/arm/arm.h: Introduce MAX_SYNC_LIBFUNC_SIZE.
24847 * config/arm/arm.c (arm_init_libfuncs): Use MAX_SYNC_LIBFUNC_SIZE.
24848
24849 2015-01-09 Sebastian Huber <sebastian.huber@embedded-brains.de>
24850
24851 * config/rs6000/rtems.h (CPP_OS_RTEMS_SPEC): Define __PPC_CPU_E6500__
24852 for -mcpu=e6500.
24853 * config/rs6000/t-rtems: Add e6500 multilibs.
24854
24855 2015-01-09 Sebastian Huber <sebastian.huber@embedded-brains.de>
24856
24857 * config/rs6000/t-rtems: Add -mno-spe to soft-float multilib for
24858 MPC8540.
24859
24860 2015-01-09 Sebastian Huber <sebastian.huber@embedded-brains.de>
24861
24862 * config/rs6000/t-rtems: Use MULTILIB_REQUIRED instead of
24863 MULTILIB_EXCEPTIONS.
24864
24865 2015-01-09 Sebastian Huber <sebastian.huber@embedded-brains.de>
24866
24867 * config/arm/t-rtems: Use MULTILIB_REQUIRED instead of
24868 MULTILIB_EXCEPTIONS.
24869
24870 2015-01-09 Sebastian Huber <sebastian.huber@embedded-brains.de>
24871
24872 * config/arm/t-rtems-eabi: Rename to...
24873 * config/arm/t-rtems: ...this.
24874 * config/arm/rtems-eabi.h: Rename to...
24875 * config/arm/rtems.h: ...this.
24876 * config.gcc (arm*-*-rtems*): Reflect changes above.
24877
24878 2015-01-09 Richard Biener <rguenther@suse.de>
24879
24880 PR tree-optimization/64410
24881 * tree-ssa.c (non_rewritable_lvalue_p): Allow REALPART/IMAGPART_EXPR
24882 on the LHS.
24883 (execute_update_addresses_taken): Deal with that.
24884 * tree-ssa-forwprop.c (pass_forwprop::execute): Use component-wise
24885 loads/stores for complex variables.
24886
24887 2015-01-09 Martin Liska <mliska@suse.cz>
24888
24889 * ipa-icf-gimple.c (func_checker::compare_ssa_name): Enhance SSA
24890 name comparison.
24891 (func_checker::compare_memory_operand): New function.
24892 (func_checker::compare_operand): Split case to newly
24893 added functions.
24894 (func_checker::compare_cst_or_decl): New function.
24895 (func_checker::compare_gimple_call): Identify
24896 memory operands.
24897 (func_checker::compare_gimple_assign): Likewise.
24898 * ipa-icf-gimple.h: New function.
24899
24900 2015-01-09 Martin Liska <mliska@suse.cz>
24901
24902 PR ipa/64503
24903 * sreal.c (sreal::dump): Change unsigned format to signed for
24904 m_exp value.
24905 (sreal::to_double): Replace exp2 with scalbln.
24906
24907 2015-01-09 Martin Liska <mliska@suse.cz>
24908
24909 * cgraphunit.c (cgraph_node::create_wrapper): Fix level of indentation.
24910 * ipa-icf.c (sem_function::equals_private): Add support for target and
24911 (sem_item_optimizer::merge_classes): Remove redundant function
24912 optimization flags comparison.
24913 * tree.h (target_opts_for_fn): New function.
24914
24915 2015-01-09 Tom de Vries <tom@codesourcery.com>
24916
24917 * omp-low.c (expand_omp_for_static_chunk): Fix assert.
24918
24919 2015-01-09 Kito Cheng <kito@0xlab.org>
24920
24921 PR rtl-optimization/64348
24922 * lra-constraints.c (split_reg): Fix caller-save store/restore
24923 instruction generation.
24924
24925 2015-01-08 John David Anglin <danglin@gcc.gnu.org>
24926
24927 PR gcov-profile/61790
24928 * gcov-tool.c (do_rewrite): Use strtoll instead of atoll if host has
24929 long long. Fallback to int64_t if host doesn't have long long and
24930 use strtol if int64_t is long. Otherwise, use sscanf for conversion.
24931
24932 2015-01-08 Jakub Jelinek <jakub@redhat.com>
24933
24934 PR tree-optimization/63989
24935 * params.def (PARAM_MAX_TRACKED_STRLENS): Increment default
24936 from 1000 to 10000.
24937 * tree-ssa-strlen.c (get_strinfo): Moved earlier.
24938 (get_stridx): If we don't have a record for certain SSA_NAME,
24939 but it is POINTER_PLUS_EXPR of some SSA_NAME we do with
24940 constant offset, call get_stridx_plus_constant.
24941 (get_stridx_plus_constant): New function.
24942 (zero_length_string): Don't use get_stridx here.
24943
24944 PR target/55023
24945 PR middle-end/64388
24946 * dse.c (struct insn_info): Mention frame_read set also
24947 before reload for tail calls on some targets.
24948 (scan_insn): Revert 2014-12-22 change. Set frame_read
24949 also before reload for tail calls if
24950 HARD_FRAME_POINTER_IS_ARG_POINTER. Call add_wild_read
24951 instead of add_non_frame_wild_read for non-const/memset
24952 tail calls after reload.
24953
24954 2015-01-08 Jason Merrill <jason@redhat.com>
24955
24956 * ubsan.c (do_ubsan_in_current_function): New.
24957 (pass_ubsan::gate): Use it.
24958 * ubsan.h: Declare it.
24959 * convert.c (convert_to_integer): Use it.
24960
24961 2015-01-08 Jakub Jelinek <jakub@redhat.com>
24962
24963 PR target/64338
24964 * config/i386/i386.c (ix86_expand_int_movcc): Don't reverse
24965 compare_code when it is unconditionally overwritten afterwards.
24966 Use ix86_reverse_condition instead of reverse_condition. Don't
24967 change code if *reverse_condition* returned UNKNOWN and don't
24968 swap ct/cf and negate diff in that case.
24969
24970 2015-01-08 Mike Stump <mikestump@comcast.net>
24971
24972 * tsan.c (pass_tsan::gate): Add no_sanitize_thread support.
24973 (pass_tsan_O0::gate): Likewise.
24974 * extend.texi (Function Attributes): Add no_sanitize_thread
24975 documentation.
24976
24977 2015-01-08 Thomas Schwinge <thomas@codesourcery.com>
24978
24979 * builtins.def (DEF_GOMP_BUILTIN): Also consider flag_offload_abi
24980 for registering builtins.
24981 * config/i386/intelmic-mkoffload.c (prepare_target_image): Don't
24982 add -fopenmp to the argv_obstack used when invoking
24983 compile_for_target.
24984
24985 * config/i386/intelmic-mkoffload.c (compile_for_target): Always
24986 add "-m32" or "-m64" to argv_obstack.
24987 (generate_host_descr_file): Likewise, when invoking host_compiler.
24988 (main): Always add "-m elf_i386" or "-m elf_x86_64" when invoking
24989 ld.
24990
24991 2015-01-08 Oleg Endo <olegendo@gcc.gnu.org>
24992
24993 * config/sh/sh-mem.cc: Use constant as second operand when emitting
24994 tstsi_t insns.
24995
24996 2015-01-08 Oleg Endo <olegendo@gcc.gnu.org>
24997
24998 PR target/55212
24999 * config/sh/sh.md (*addsi3_compact): Emit reg-reg copy instead of
25000 constant load if constant operand fits into I08.
25001
25002 2015-01-08 Jakub Jelinek <jakub@redhat.com>
25003
25004 PR sanitizer/64336
25005 * tree.c (build2_stat): Fix up initialization of TREE_READONLY
25006 and TREE_THIS_VOLATILE for MEM_REFs.
25007 (build5_stat): Fix up initialization of TREE_READONLY and
25008 TREE_THIS_VOLATILE for TARGET_MEM_REFs.
25009
25010 2015-01-08 Kaz Kojima <kkojima@gcc.gnu.org>
25011
25012 PR target/64533
25013 * config/sh/sh.md (*addsi3_compact): Use u constraint instead
25014 of r for the second alternative of the destination operand.
25015
25016 2015-01-07 Segher Boessenkool <segher@kernel.crashing.org>
25017
25018 PR target/36557
25019 * config/rs6000/rs6000.md (*eqsi3_ext<mode>, *nesi3_ext<mode>): New.
25020
25021 2015-01-07 Sandra Loosemore <sandra@codesourcery.com>
25022
25023 * doc/invoke.texi ([-fvtable-verify]): Fix markup on option
25024 keywords.
25025 ([-fivar-visibility], [-fvisibility]): Likewise.
25026
25027 2015-01-07 Sandra Loosemore <sandra@codesourcery.com>
25028
25029 * doc/invoke.texi: Fix incorrect uses of @samp markup throughout
25030 the file where @code, @command, etc is more appropriate.
25031
25032 2015-01-06 Sandra Loosemore <sandra@codesourcery.com>
25033
25034 * doc/invoke.texi (RS/6000 and PowerPC Options): Tidy formatting
25035 of -mrecip= documentation.
25036
25037 2015-01-06 Michael Meissner <meissner@linux.vnet.ibm.com>
25038
25039 PR target/64505
25040 * config/rs6000/rs6000.c (rs6000_secondary_reload): Return the
25041 correct reload handler if -m32 -mpowerpc64 is used.
25042
25043 2015-01-06 Tom de Vries <tom@codesourcery.com>
25044
25045 * tree-ssa-tail-merge.c: Fix typo in struct same_succ_def comment.
25046
25047 2015-01-08 Christian Bruel <christian.bruel@st.com>
25048
25049 PR target/64507
25050 * config/sh/sh-mem.cc (sh_expand_cmpnstr): Check 0 length.
25051
25052 2015-01-06 Thomas Preud'homme <thomas.preudhomme@arm.com>
25053
25054 PR tree-optimization/63259
25055 * tree-ssa-math-opts.c (pass_optimize_bswap::execute): Stop checking
25056 if optab exists for 16bit byteswap.
25057
25058 2015-01-06 Jakub Jelinek <jakub@redhat.com>
25059
25060 * opts.c (common_handle_option): Add support for
25061 -fno-sanitize=all and -f{,no-}sanitize-recover=all.
25062 * doc/invoke.texi: Document -fno-sanitize=all,
25063 -f{,no-}sanitize-recover=all. Document that
25064 -fsanitize=float-cast-overflow is not enabled
25065 by -fsanitize=undefined. Fix up documentation
25066 of -f{,no-}sanitize-recover.
25067
25068 2015-01-06 Eric Botcazou <ebotcazou@adacore.com>
25069
25070 * config.gcc: Add Visium support.
25071 * configure.ac: Likewise.
25072 * configure: Regenerate.
25073 * doc/extend.texi (interrupt attribute): Add Visium.
25074 * doc/invoke.texi: Document Visium options.
25075 * doc/install.texi: Document Visium target.
25076 * doc/md.texi: Document Visium constraints.
25077 * common/config/visium: New directory.
25078 * config/visium: Likewise.
25079
25080 2015-01-05 Segher Boessenkool <segher@kernel.crashing.org>
25081
25082 * simplify-rtx.c (simplify_binary_operation_1): Handle more cases
25083 for the "(and X (ior (not X) Y) -> (and X Y)" transform.
25084
25085 2015-01-05 Segher Boessenkool <segher@kernel.crashing.org>
25086
25087 * combine.c (combine_validate_cost): Do not count the cost of a
25088 split I2 twice. Do not display it twice in the dump, either.
25089
25090 2015-01-05 Sandra Loosemore <sandra@codesourcery.com>
25091
25092 Revert parts of r219199.
25093 * doc/invoke.texi ([-Wliteral-suffix]): Restore markup on
25094 <inttypes.h>.
25095 ([-Wtraditional]): Restore markup on <limits.h>.
25096
25097 2015-01-05 Trevor Saunders <tsaunders@mozilla.com>
25098
25099 PR c++/31397
25100 * doc/invoke.texi: Document -Wsuggest-override.
25101
25102 2015-01-05 Radovan Obradovic <radovan.obradovic@imgtec.com>
25103
25104 PR rtl-optimization/64287
25105 * toplev.c (HAVE_epilogue, HAVE_prologue): Provide default.
25106 (process_options): Disable flag_ipa_ra if profiling.
25107
25108 2015-01-05 Eric Botcazou <ebotcazou@adacore.com>
25109
25110 * config/nds32/nds32-peephole2.md: Do not mention define_peephole.
25111
25112 2015-01-05 Max Filippov <jcmvbkbc@gmail.com>
25113
25114 * config/xtensa/xtensa.c (hwloop_optimize, hwloop_fail,
25115 hwloop_pattern_reg, xtensa_doloop_hooks, xtensa_reorg_loops):
25116 put under #if TARGET_LOOPS guard.
25117
25118 2015-01-05 Uros Bizjak <ubizjak@gmail.com>
25119
25120 * config/i386/i386.c (output_387_binary_op): Use std::swap.
25121
25122 2015-01-05 Oleg Endo <olegendo@gcc.gnu.org>
25123
25124 * rtlanal.c (refers_to_regno_p): Change return value from int to bool.
25125 * rtl.h (refers_to_regno_p): Add overload.
25126 * cse.c: Use it.
25127 * bt-load.c: Likewise.
25128 * combine.c: Likewise.
25129 * df-scan.c: Likewise.
25130 * sched-deps.c: Likewise.
25131 * config/s390/s390.c: Likewise.
25132 * config/m32r/m32r.c: Likewise.
25133 * config/rs6000/spe.md: Likewise.
25134 * config/rs6000/rs6000.c: Likewise.
25135 * config/pa/pa.c: Likewise.
25136 * config/stormy16/stormy16.c: Likewise.
25137 * config/cris/cris.c: Likewise.
25138 * config/arc/arc.md: Likewise.
25139 * config/arc/arc.c: Likewise.
25140 * config/sh/sh.md: Likewise.
25141 * config/sh/sh.c: Likewise.
25142 * config/frv/frv.c: Likewise.
25143
25144 2015-01-05 Jakub Jelinek <jakub@redhat.com>
25145
25146 PR sanitizer/64265
25147 * gimplify.c (gimplify_function_tree): Add TSAN_FUNC_EXIT internal
25148 call as cleanup of the whole body.
25149 * internal-fn.def (TSAN_FUNC_EXIT): New internal call.
25150 * tsan.c (replace_func_exit): New function.
25151 (instrument_func_exit): Moved earlier.
25152 (instrument_memory_accesses): Adjust TSAN_FUNC_EXIT internal calls.
25153 Call instrument_func_exit if no TSAN_FUNC_EXIT internal calls have
25154 been found.
25155 (tsan_pass): Don't call instrument_func_exit.
25156 * internal-fn.c (expand_TSAN_FUNC_EXIT): New function.
25157 * tree-inline.c (copy_bb): Drop TSAN_FUNC_EXIT internal calls during
25158 inlining.
25159
25160 PR sanitizer/64344
25161 * ubsan.h (ubsan_instrument_float_cast): Add ARG argument.
25162 * ubsan.c (ubsan_instrument_float_cast): Add ARG argument, pass
25163 it to libubsan handler instead of EXPR. Fold comparisons earlier,
25164 if the result is integer_zerop, return NULL_TREE.
25165 * convert.c (convert_to_integer): Pass expr as ARG.
25166
25167 PR tree-optimization/64465
25168 * tree-inline.c (redirect_all_calls): During inlining
25169 clean up EH stmts and EH edges if redirect_call_stmt_to_callee
25170 changed the stmt to a non-throwing call.
25171
25172 2015-01-05 Sandra Loosemore <sandra@codesourcery.com>
25173
25174 * doc/invoke.texi: Fix incorrect uses of @code, @option, @samp,
25175 etc markup throughout the file.
25176
25177 2015-01-05 Bernd Edlinger <bernd.edlinger@hotmail.de>
25178
25179 Enable experimental TSAN support for Ada.
25180 * tsan.c (instrument_expr): Handle VIEW_CONVERT_EXPR.
25181
25182 2015-01-05 Jakub Jelinek <jakub@redhat.com>
25183
25184 PR tree-optimization/64494
25185 * tree-ssa-loop-im.c (move_computations_dom_walker::before_dom): Also
25186 clear SSA_NAME_ANTI_RANGE_P flag.
25187
25188 2015-01-05 Marek Polacek <polacek@redhat.com>
25189
25190 * doc/extend.texi (Arrays of Length Zero): Add missing comma.
25191
25192 2015-01-05 Jakub Jelinek <jakub@redhat.com>
25193
25194 Update copyright years.
25195
25196 * gcc.c (process_command): Update copyright notice dates.
25197 * gcov-dump.c: Ditto.
25198 * gcov.c: Ditto.
25199 * doc/cpp.texi: Bump @copying's copyright year.
25200 * doc/cppinternals.texi: Ditto.
25201 * doc/gcc.texi: Ditto.
25202 * doc/gccint.texi: Ditto.
25203 * doc/gcov.texi: Ditto.
25204 * doc/install.texi: Ditto.
25205 * doc/invoke.texi: Ditto.
25206
25207 * auto-profile.c, auto-profile.h: Fix up Copyright line.
25208
25209 2015-01-04 Sandra Loosemore <sandra@codesourcery.com>
25210
25211 * doc/invoke.texi ([-fsized-deallocation]): Copy-edit to fix
25212 verb tense, etc.
25213 ([-fvtable-verify], [-fvtv-debug]): Likewise.
25214 ([-Wabi]): Likewise.
25215 ([-fmessage-length]): Likewise.
25216 ([-Wsuggest-final-types], [-Wsuggest-final-methods]): Likewise.
25217 ([-Wno-discarded-qualifiers]): Likewise.
25218 ([-Wnodiscarded-array-qualifiers]): Likewise.
25219 ([-Wno-virtual-move-assign]): Likewise.
25220 ([-fsanitize=address], [-fsanitize=thread]): Likewise.
25221 ([-fsanitize=leak], [-fsanitize=undefined]): Likewise.
25222 ([-fsanitize=unreachable], [-fsanitize-recover]): Likewise.
25223 ([-fsanitize-undefined-trap-on-error]): Likewise.
25224 ([-floop-interchange]): Likewise.
25225 ([-ftree-coalesce-inlined-vars]): Likewise.
25226 ([-fvect-cost-model]): Likewise.
25227 ([-flto]): Likewise.
25228 ([--param]): Likewise.
25229 (Spec Files): Likewise.
25230 ([-mstrict-align]): Likewise.
25231 ([-mfix-cortex-a53-835769]): Likewise.
25232 ([-march], [-mtune]): Likewise.
25233 ([-mpic-register]): Likewise.
25234 ([-munaligned-access]): Likewise.
25235 ([-msp8]): Likewise.
25236 (EIND and Devices with more than 128 Ki Bytes of Flash): Likewise.
25237 (AVR Built-in Macros): Likewise.
25238 ([-mpreferred-stack-boundary]): Likewise.
25239 ([-mtune-crtl]): Likewise.
25240 ([-mashf]): Likewise.
25241 ([-mmcu=]): Likewise.
25242 ([-minrt]): Likewise.
25243 ([-maltivec], [-maltivec=be], [-maltivec=le]): Likewise.
25244 ([-mupper-regs]): Likewise.
25245 ([-matomic-model]): Likewise.
25246 ([-mdiv]): Likewise.
25247 ([-mzdcbranch]): Likewise.
25248 ([-mdisable-callt]): Likewise.
25249 ([-msoft-float]): Likewise.
25250 ([-m8byte-align]): Likewise.
25251 ([-fstack-reuse]): Likewise.
25252
25253 2015-01-03 Sandra Loosemore <sandra@codesourcery.com>
25254
25255 * doc/invoke.texi ([-fprofile-generate], [-fprofile-use]):
25256 Fix markup, light copy-editing.
25257 ([-fauto-profile]): Rewrite to fix formatting and content
25258 problems.
25259
25260 2015-01-03 Sandra Loosemore <sandra@codesourcery.com>
25261
25262 * doc/invoke.texi ([-fisolate-erroneous-paths-dereference]):
25263 Copy-edit description.
25264 ([-fisolate-erroneous-paths-attribute]): Likewise.
25265 * common.opt (fisolate-erroneous-paths-dereference):
25266 Copy-edit description.
25267 (fisolate-erroneous-paths-attribute): Likewise.
25268
25269 2015-01-03 Sandra Loosemore <sandra@codesourcery.com>
25270
25271 * doc/invoke.texi ([-fsemantic-interposition]): Fix typos and
25272 tidy grammar.
25273
25274 2015-01-03 Sandra Loosemore <sandra@codesourcery.com>
25275
25276 * doc/invoke.texi ([-fplan9-extensions]): Add/fix @opindex.
25277 ([-fvtv-debug]): Likewise.
25278 ([-Wc++-compat]): Likewise.
25279 ([-Wc++11-compat]): Likewise.
25280 ([-Wc++14-compat]): Likewise.
25281 ([-Wno-sized-deallocation]): Likewise.
25282 ([-femit-class-debug-always]): Likewise.
25283 ([-femit-struct-debug-detailed]): Likewise.
25284 ([-fno-keep-inline-dllexport]): Likewise.
25285 ([-fira-algorithm]): Likewise.
25286 ([-fira-region]): Likewise.
25287 ([-flra-remat]): Likewise.
25288 ([-fipa-ra]): Likewise.
25289 ([-fhoist-adjacent-loads]): Likewise.
25290 ([-fisolate-erroneous-paths-dereference]): Likewise.
25291 ([-fisolate-erroneous-paths-attribute]): Likewise.
25292 ([-ftree-switch-conversion]): Likewise.
25293 ([-ftree-tail-merge]): Likewise.
25294 ([-ftree-loop-if-convert]): Likewise.
25295 ([-ftree-loop-if-convert-stores]): Likewise.
25296 ([-ftree-loop-distribution]): Likewise.
25297 ([-ftree-loop-distribute-patterns]): Likewise.
25298 ([-flto-compression-level]): Likewise.
25299 ([-flto-report]): Likewise.
25300 ([-flto-report-wpa]): Likewise.
25301 ([-fuse-linker-plugin]): Likewise.
25302 ([-mfix-cortex-a53-835769]): Likewise.
25303 ([-mno-fix-cortex-a53-835769]): Likewise.
25304 ([-mmmx]...[-mno-3dnow]): Remove the -mno- forms from the
25305 explicit listing; add a note to the discussion indicating they
25306 exist. Reorder table to group similar options. Add missing
25307 @opindex entries. Add @need commands throughout the table to
25308 allow it to be split across multiple pages.
25309 ([-m8bit-idiv]): Fix @opindex.
25310 ([-mavx256-split-unaligned-load]): Likewise.
25311 ([-mavx256-split-unaligned-store]): Likewise.
25312 ([-mstack-protector-guard]): Likewise.
25313 ([-mcpu=]): Likewise.
25314 ([-mcpu]): Likewise.
25315 ([-mpointer-size=]): Likewise.
25316
25317 2015-01-03 John David Anglin <danglin@gcc.gnu.org>
25318
25319 * config/pa/pa.md (decrement_and_branch_until_zero): Use `Q' constraint
25320 instead of `m' constraint. Likewise for unnamed movb comparison
25321 patterns using reg_before_reload_operand predicate.
25322 * config/pa/predicates.md (reg_before_reload_operand): Tighten
25323 predicate to reject register index and LO_SUM DLT memory forms
25324 after reload.
25325
25326 2015-01-02 Sandra Loosemore <sandra@codesourcery.com>
25327
25328 * doc/invoke.texi (Option Summary): Fix spelling of
25329 -fdevirtualize-at-ltrans.
25330 ([-fdevirtualize]): Fix markup.
25331 ([-fdevirtualize-speculatively]): Fix typo.
25332 ([-fdevirtualize-at-ltrans]): Likewise. Make description less
25333 implementor-speaky.
25334 * common.opt (fdevirtualize-at-ltrans): Likewise.
25335 * ipa-devirt.c: Fix typos in comments throughout the file.
25336 (ipa_devirt): Fix typos in format strings for dump output.
25337
25338 2015-01-02 Sandra Loosemore <sandra@codesourcery.com>
25339
25340 * doc/invoke.texi ([-fopt-info]): Fix markup, consolidate
25341 discussion of defaults, light copy-editing.
25342
25343 2015-01-02 Bernd Edlinger <bernd.edlinger@hotmail.de>
25344
25345 * tsan.c (instrument_expr): corrected previous checkin.
25346
25347 2015-01-02 Bernd Edlinger <bernd.edlinger@hotmail.de>
25348
25349 Instrument bit field and unaligned accesses for TSAN.
25350 * sanitizer.def (BUILT_IN_TSAN_READ_RANGE): New built-in function.
25351 (BUILT_IN_TSAN_WRITE_RANGE): New built-in function.
25352 * tsan.c (instrument_expr): Handle COMPONENT_REF and BIT_FIELD_REF.
25353 Use BUILT_IN_TSAN_READ_RANGE and BUILT_IN_TSAN_WRITE_RANGE for
25354 unaligned memory regions.
25355
25356 2015-01-01 Anthony Green <green@moxielogic.com>
25357
25358 * config/moxie/predicates.md (moxie_general_movsrc_operand):
25359 Restrict move source register offsets to 16 bits.
25360 \f
25361 Copyright (C) 2015 Free Software Foundation, Inc.
25362
25363 Copying and distribution of this file, with or without modification,
25364 are permitted in any medium without royalty provided the copyright
25365 notice and this notice are preserved.